superdoc 0.30.0-next.3 → 0.30.0-next.5
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-YWtbYClb.es.js → PdfViewer-8rHRTfmB.es.js} +2 -2
- package/dist/chunks/{PdfViewer-BIJ6vJck.cjs → PdfViewer-DlTGU48f.cjs} +2 -2
- package/dist/chunks/{eventemitter3-BvTILlBo.cjs → eventemitter3-DmHNHvFX.cjs} +1 -1
- package/dist/chunks/{eventemitter3-D4gv5QOO.es.js → eventemitter3-hYlnBzSA.es.js} +1 -1
- package/dist/chunks/{index-Br4fKccD.cjs → index-1OJ4hRlJ.cjs} +6 -6
- package/dist/chunks/{index-Bh45DPpT.es.js → index-BAQ7G8ip.es.js} +6 -6
- package/dist/chunks/{index-D9ggxe26-Dk1kDrfi.es.js → index-DuZ0Zcpx-CD37LqbK.es.js} +1 -1
- package/dist/chunks/{index-D9ggxe26-BbC5rNDO.cjs → index-DuZ0Zcpx-DkylYv_-.cjs} +1 -1
- package/dist/chunks/{jszip-B0BPx_cv.cjs → jszip-BP2FTbpi.cjs} +7 -7
- package/dist/chunks/{jszip-Bhl-Iudl.es.js → jszip-jKrsZoMS.es.js} +7 -7
- package/dist/chunks/{super-editor.es-4me2z6up.cjs → super-editor.es-CItbU3fH.cjs} +850 -851
- package/dist/chunks/{super-editor.es-FtXwm03k.es.js → super-editor.es-D0SDU51r.es.js} +850 -851
- package/dist/chunks/{vue-D1vcEBAQ.es.js → vue-CKmzTNVs.es.js} +2 -2
- package/dist/chunks/{vue-BQxRC6G7.cjs → vue-Cwv-wUpm.cjs} +2 -2
- package/dist/chunks/xml-js-BSDu25I7.cjs +3 -0
- package/dist/chunks/xml-js-CBrRls0f.es.js +2 -0
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-SZ8xM5Dw.js → converter-DlG29jx8.js} +491 -497
- package/dist/super-editor/chunks/{docx-zipper-GNdwONoA.js → docx-zipper-DGDhr6WV.js} +2 -2
- package/dist/super-editor/chunks/{editor-Bb8HzfEh.js → editor-Bp_OjOzF.js} +10 -5
- package/dist/super-editor/chunks/{index-D9ggxe26.js → index-DuZ0Zcpx.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-DtCz6r-y.js → toolbar-DWYE9phW.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/extensions/paragraph/paragraph.d.ts.map +1 -1
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +2 -2
- package/dist/super-editor.es.js +2 -2
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist/superdoc.umd.js +615 -616
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/xml-js-cO2Q8Wfu.cjs +0 -3
- package/dist/chunks/xml-js-jMPlIVKT.es.js +0 -2
- package/dist/images/altText_add.svg +0 -3
- package/dist/images/altText_disclaimer.svg +0 -3
- package/dist/images/altText_done.svg +0 -3
- package/dist/images/altText_spinner.svg +0 -30
- package/dist/images/altText_warning.svg +0 -3
- package/dist/images/annotation-check.svg +0 -11
- package/dist/images/annotation-comment.svg +0 -16
- package/dist/images/annotation-help.svg +0 -26
- package/dist/images/annotation-insert.svg +0 -10
- package/dist/images/annotation-key.svg +0 -11
- package/dist/images/annotation-newparagraph.svg +0 -11
- package/dist/images/annotation-noicon.svg +0 -7
- package/dist/images/annotation-note.svg +0 -42
- package/dist/images/annotation-paperclip.svg +0 -6
- package/dist/images/annotation-paragraph.svg +0 -16
- package/dist/images/annotation-pushpin.svg +0 -7
- package/dist/images/cursor-editorFreeHighlight.svg +0 -6
- package/dist/images/cursor-editorFreeText.svg +0 -3
- package/dist/images/cursor-editorInk.svg +0 -4
- package/dist/images/cursor-editorTextHighlight.svg +0 -8
- package/dist/images/editor-toolbar-delete.svg +0 -5
- package/dist/images/loading-icon.gif +0 -0
- package/dist/images/messageBar_closingButton.svg +0 -3
- package/dist/images/messageBar_warning.svg +0 -3
- package/dist/images/toolbarButton-editorHighlight.svg +0 -6
- package/dist/images/toolbarButton-menuArrow.svg +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as global$2, r as ref$1, c as createApp, a as computed, b as createElementBlock, o as openBlock, F as Fragment$1, d as renderList, n as normalizeClass, w as withModifiers, e as createCommentVNode, t as toDisplayString, f as createBaseVNode, i as inject, h as onBeforeMount, j as onMounted, k as onBeforeUnmount, l as watch, m as defineComponent, p as getCurrentInstance, q as onDeactivated, s as nextTick, u as createBlock, v as createVNode, x as unref, y as h$1, z as mergeProps, A as shallowRef, B as withCtx, C as createTextVNode, D as normalizeStyle, E as toRef, G as provide, H as cloneVNode, T as Text$2, I as withDirectives, J as watchEffect, K as vModelText, L as withKeys, M as reactive, N as readonly, O as Transition, P as vShow, Q as Comment, R as renderSlot, S as onActivated, U as Teleport, V as isVNode, W as onUnmounted, X as resolveDynamicComponent, Y as normalizeProps, Z as guardReactiveProps, _ as markRaw } from "./vue-
|
|
1
|
+
import { g as global$2, r as ref$1, c as createApp, a as computed, b as createElementBlock, o as openBlock, F as Fragment$1, d as renderList, n as normalizeClass, w as withModifiers, e as createCommentVNode, t as toDisplayString, f as createBaseVNode, i as inject, h as onBeforeMount, j as onMounted, k as onBeforeUnmount, l as watch, m as defineComponent, p as getCurrentInstance, q as onDeactivated, s as nextTick, u as createBlock, v as createVNode, x as unref, y as h$1, z as mergeProps, A as shallowRef, B as withCtx, C as createTextVNode, D as normalizeStyle, E as toRef, G as provide, H as cloneVNode, T as Text$2, I as withDirectives, J as watchEffect, K as vModelText, L as withKeys, M as reactive, N as readonly, O as Transition, P as vShow, Q as Comment, R as renderSlot, S as onActivated, U as Teleport, V as isVNode, W as onUnmounted, X as resolveDynamicComponent, Y as normalizeProps, Z as guardReactiveProps, _ as markRaw } from "./vue-CKmzTNVs.es.js";
|
|
2
2
|
import * as Y from "yjs";
|
|
3
3
|
import { UndoManager, Item as Item$2, ContentType, Text as Text$1, XmlElement, encodeStateAsUpdate } from "yjs";
|
|
4
4
|
var __defProp$2 = Object.defineProperty;
|
|
@@ -190,15 +190,15 @@ ieee754.write = function(buffer2, value, offset2, isLE, mLen, nBytes) {
|
|
|
190
190
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
191
191
|
* @license MIT
|
|
192
192
|
*/
|
|
193
|
-
(function(
|
|
193
|
+
(function(exports$1) {
|
|
194
194
|
const base64 = base64Js;
|
|
195
195
|
const ieee754$1 = ieee754;
|
|
196
196
|
const customInspectSymbol = typeof Symbol === "function" && typeof Symbol["for"] === "function" ? Symbol["for"]("nodejs.util.inspect.custom") : null;
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
197
|
+
exports$1.Buffer = Buffer3;
|
|
198
|
+
exports$1.SlowBuffer = SlowBuffer;
|
|
199
|
+
exports$1.INSPECT_MAX_BYTES = 50;
|
|
200
200
|
const K_MAX_LENGTH = 2147483647;
|
|
201
|
-
|
|
201
|
+
exports$1.kMaxLength = K_MAX_LENGTH;
|
|
202
202
|
const { Uint8Array: GlobalUint8Array, ArrayBuffer: GlobalArrayBuffer, SharedArrayBuffer: GlobalSharedArrayBuffer } = globalThis;
|
|
203
203
|
Buffer3.TYPED_ARRAY_SUPPORT = typedArraySupport();
|
|
204
204
|
if (!Buffer3.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function") {
|
|
@@ -416,17 +416,17 @@ ieee754.write = function(buffer2, value, offset2, isLE, mLen, nBytes) {
|
|
|
416
416
|
);
|
|
417
417
|
}
|
|
418
418
|
if (a === b2) return 0;
|
|
419
|
-
let
|
|
419
|
+
let x = a.length;
|
|
420
420
|
let y2 = b2.length;
|
|
421
|
-
for (let i = 0, len = Math.min(
|
|
421
|
+
for (let i = 0, len = Math.min(x, y2); i < len; ++i) {
|
|
422
422
|
if (a[i] !== b2[i]) {
|
|
423
|
-
|
|
423
|
+
x = a[i];
|
|
424
424
|
y2 = b2[i];
|
|
425
425
|
break;
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
-
if (
|
|
429
|
-
if (y2 <
|
|
428
|
+
if (x < y2) return -1;
|
|
429
|
+
if (y2 < x) return 1;
|
|
430
430
|
return 0;
|
|
431
431
|
};
|
|
432
432
|
Buffer3.isEncoding = function isEncoding(encoding) {
|
|
@@ -629,7 +629,7 @@ ieee754.write = function(buffer2, value, offset2, isLE, mLen, nBytes) {
|
|
|
629
629
|
};
|
|
630
630
|
Buffer3.prototype.inspect = function inspect() {
|
|
631
631
|
let str = "";
|
|
632
|
-
const max2 =
|
|
632
|
+
const max2 = exports$1.INSPECT_MAX_BYTES;
|
|
633
633
|
str = this.toString("hex", 0, max2).replace(/(.{2})/g, "$1 ").trim();
|
|
634
634
|
if (this.length > max2) str += " ... ";
|
|
635
635
|
return "<Buffer " + str + ">";
|
|
@@ -675,20 +675,20 @@ ieee754.write = function(buffer2, value, offset2, isLE, mLen, nBytes) {
|
|
|
675
675
|
thisStart >>>= 0;
|
|
676
676
|
thisEnd >>>= 0;
|
|
677
677
|
if (this === target) return 0;
|
|
678
|
-
let
|
|
678
|
+
let x = thisEnd - thisStart;
|
|
679
679
|
let y2 = end2 - start2;
|
|
680
|
-
const len = Math.min(
|
|
680
|
+
const len = Math.min(x, y2);
|
|
681
681
|
const thisCopy = this.slice(thisStart, thisEnd);
|
|
682
682
|
const targetCopy = target.slice(start2, end2);
|
|
683
683
|
for (let i = 0; i < len; ++i) {
|
|
684
684
|
if (thisCopy[i] !== targetCopy[i]) {
|
|
685
|
-
|
|
685
|
+
x = thisCopy[i];
|
|
686
686
|
y2 = targetCopy[i];
|
|
687
687
|
break;
|
|
688
688
|
}
|
|
689
689
|
}
|
|
690
|
-
if (
|
|
691
|
-
if (y2 <
|
|
690
|
+
if (x < y2) return -1;
|
|
691
|
+
if (y2 < x) return 1;
|
|
692
692
|
return 0;
|
|
693
693
|
};
|
|
694
694
|
function bidirectionalIndexOf(buffer2, val, byteOffset, encoding, dir) {
|
|
@@ -1778,8 +1778,8 @@ ieee754.write = function(buffer2, value, offset2, isLE, mLen, nBytes) {
|
|
|
1778
1778
|
})(buffer);
|
|
1779
1779
|
const Buffer2 = buffer.Buffer;
|
|
1780
1780
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global$2 !== "undefined" ? global$2 : typeof self !== "undefined" ? self : {};
|
|
1781
|
-
function getDefaultExportFromCjs$2(
|
|
1782
|
-
return
|
|
1781
|
+
function getDefaultExportFromCjs$2(x) {
|
|
1782
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
1783
1783
|
}
|
|
1784
1784
|
var sax = {};
|
|
1785
1785
|
var events$1 = { exports: {} };
|
|
@@ -1787,13 +1787,13 @@ var hasRequiredEvents;
|
|
|
1787
1787
|
function requireEvents() {
|
|
1788
1788
|
if (hasRequiredEvents) return events$1.exports;
|
|
1789
1789
|
hasRequiredEvents = 1;
|
|
1790
|
-
var
|
|
1791
|
-
var ReflectApply =
|
|
1790
|
+
var R2 = typeof Reflect === "object" ? Reflect : null;
|
|
1791
|
+
var ReflectApply = R2 && typeof R2.apply === "function" ? R2.apply : function ReflectApply2(target, receiver, args) {
|
|
1792
1792
|
return Function.prototype.apply.call(target, receiver, args);
|
|
1793
1793
|
};
|
|
1794
1794
|
var ReflectOwnKeys;
|
|
1795
|
-
if (
|
|
1796
|
-
ReflectOwnKeys =
|
|
1795
|
+
if (R2 && typeof R2.ownKeys === "function") {
|
|
1796
|
+
ReflectOwnKeys = R2.ownKeys;
|
|
1797
1797
|
} else if (Object.getOwnPropertySymbols) {
|
|
1798
1798
|
ReflectOwnKeys = function ReflectOwnKeys2(target) {
|
|
1799
1799
|
return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
|
|
@@ -2183,8 +2183,8 @@ function requireInherits_browser() {
|
|
|
2183
2183
|
}
|
|
2184
2184
|
return inherits_browser.exports;
|
|
2185
2185
|
}
|
|
2186
|
-
function getDefaultExportFromCjs$1(
|
|
2187
|
-
return
|
|
2186
|
+
function getDefaultExportFromCjs$1(x) {
|
|
2187
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
2188
2188
|
}
|
|
2189
2189
|
var browser$1 = { exports: {} };
|
|
2190
2190
|
var process$1 = browser$1.exports = {};
|
|
@@ -2358,8 +2358,8 @@ var hasRequiredDist;
|
|
|
2358
2358
|
function requireDist() {
|
|
2359
2359
|
if (hasRequiredDist) return dist;
|
|
2360
2360
|
hasRequiredDist = 1;
|
|
2361
|
-
(function(
|
|
2362
|
-
Object.defineProperties(
|
|
2361
|
+
(function(exports$1) {
|
|
2362
|
+
Object.defineProperties(exports$1, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
2363
2363
|
var buffer2 = {};
|
|
2364
2364
|
var base64Js2 = {};
|
|
2365
2365
|
base64Js2.byteLength = byteLength2;
|
|
@@ -2539,15 +2539,15 @@ function requireDist() {
|
|
|
2539
2539
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
2540
2540
|
* @license MIT
|
|
2541
2541
|
*/
|
|
2542
|
-
(function(
|
|
2542
|
+
(function(exports$12) {
|
|
2543
2543
|
const base64 = base64Js2;
|
|
2544
2544
|
const ieee754$1 = ieee7542;
|
|
2545
2545
|
const customInspectSymbol = typeof Symbol === "function" && typeof Symbol["for"] === "function" ? Symbol["for"]("nodejs.util.inspect.custom") : null;
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2546
|
+
exports$12.Buffer = Buffer4;
|
|
2547
|
+
exports$12.SlowBuffer = SlowBuffer;
|
|
2548
|
+
exports$12.INSPECT_MAX_BYTES = 50;
|
|
2549
2549
|
const K_MAX_LENGTH = 2147483647;
|
|
2550
|
-
|
|
2550
|
+
exports$12.kMaxLength = K_MAX_LENGTH;
|
|
2551
2551
|
const { Uint8Array: GlobalUint8Array, ArrayBuffer: GlobalArrayBuffer, SharedArrayBuffer: GlobalSharedArrayBuffer } = globalThis;
|
|
2552
2552
|
Buffer4.TYPED_ARRAY_SUPPORT = typedArraySupport();
|
|
2553
2553
|
if (!Buffer4.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function") {
|
|
@@ -2765,17 +2765,17 @@ function requireDist() {
|
|
|
2765
2765
|
);
|
|
2766
2766
|
}
|
|
2767
2767
|
if (a === b2) return 0;
|
|
2768
|
-
let
|
|
2768
|
+
let x = a.length;
|
|
2769
2769
|
let y2 = b2.length;
|
|
2770
|
-
for (let i2 = 0, len2 = Math.min(
|
|
2770
|
+
for (let i2 = 0, len2 = Math.min(x, y2); i2 < len2; ++i2) {
|
|
2771
2771
|
if (a[i2] !== b2[i2]) {
|
|
2772
|
-
|
|
2772
|
+
x = a[i2];
|
|
2773
2773
|
y2 = b2[i2];
|
|
2774
2774
|
break;
|
|
2775
2775
|
}
|
|
2776
2776
|
}
|
|
2777
|
-
if (
|
|
2778
|
-
if (y2 <
|
|
2777
|
+
if (x < y2) return -1;
|
|
2778
|
+
if (y2 < x) return 1;
|
|
2779
2779
|
return 0;
|
|
2780
2780
|
};
|
|
2781
2781
|
Buffer4.isEncoding = function isEncoding(encoding) {
|
|
@@ -2978,7 +2978,7 @@ function requireDist() {
|
|
|
2978
2978
|
};
|
|
2979
2979
|
Buffer4.prototype.inspect = function inspect() {
|
|
2980
2980
|
let str = "";
|
|
2981
|
-
const max2 =
|
|
2981
|
+
const max2 = exports$12.INSPECT_MAX_BYTES;
|
|
2982
2982
|
str = this.toString("hex", 0, max2).replace(/(.{2})/g, "$1 ").trim();
|
|
2983
2983
|
if (this.length > max2) str += " ... ";
|
|
2984
2984
|
return "<Buffer " + str + ">";
|
|
@@ -3024,20 +3024,20 @@ function requireDist() {
|
|
|
3024
3024
|
thisStart >>>= 0;
|
|
3025
3025
|
thisEnd >>>= 0;
|
|
3026
3026
|
if (this === target) return 0;
|
|
3027
|
-
let
|
|
3027
|
+
let x = thisEnd - thisStart;
|
|
3028
3028
|
let y2 = end2 - start2;
|
|
3029
|
-
const len2 = Math.min(
|
|
3029
|
+
const len2 = Math.min(x, y2);
|
|
3030
3030
|
const thisCopy = this.slice(thisStart, thisEnd);
|
|
3031
3031
|
const targetCopy = target.slice(start2, end2);
|
|
3032
3032
|
for (let i2 = 0; i2 < len2; ++i2) {
|
|
3033
3033
|
if (thisCopy[i2] !== targetCopy[i2]) {
|
|
3034
|
-
|
|
3034
|
+
x = thisCopy[i2];
|
|
3035
3035
|
y2 = targetCopy[i2];
|
|
3036
3036
|
break;
|
|
3037
3037
|
}
|
|
3038
3038
|
}
|
|
3039
|
-
if (
|
|
3040
|
-
if (y2 <
|
|
3039
|
+
if (x < y2) return -1;
|
|
3040
|
+
if (y2 < x) return 1;
|
|
3041
3041
|
return 0;
|
|
3042
3042
|
};
|
|
3043
3043
|
function bidirectionalIndexOf(buffer3, val, byteOffset, encoding, dir) {
|
|
@@ -4126,24 +4126,24 @@ function requireDist() {
|
|
|
4126
4126
|
}
|
|
4127
4127
|
})(buffer2);
|
|
4128
4128
|
const Buffer3 = buffer2.Buffer;
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4129
|
+
exports$1.Blob = buffer2.Blob;
|
|
4130
|
+
exports$1.BlobOptions = buffer2.BlobOptions;
|
|
4131
|
+
exports$1.Buffer = buffer2.Buffer;
|
|
4132
|
+
exports$1.File = buffer2.File;
|
|
4133
|
+
exports$1.FileOptions = buffer2.FileOptions;
|
|
4134
|
+
exports$1.INSPECT_MAX_BYTES = buffer2.INSPECT_MAX_BYTES;
|
|
4135
|
+
exports$1.SlowBuffer = buffer2.SlowBuffer;
|
|
4136
|
+
exports$1.TranscodeEncoding = buffer2.TranscodeEncoding;
|
|
4137
|
+
exports$1.atob = buffer2.atob;
|
|
4138
|
+
exports$1.btoa = buffer2.btoa;
|
|
4139
|
+
exports$1.constants = buffer2.constants;
|
|
4140
|
+
exports$1.default = Buffer3;
|
|
4141
|
+
exports$1.isAscii = buffer2.isAscii;
|
|
4142
|
+
exports$1.isUtf8 = buffer2.isUtf8;
|
|
4143
|
+
exports$1.kMaxLength = buffer2.kMaxLength;
|
|
4144
|
+
exports$1.kStringMaxLength = buffer2.kStringMaxLength;
|
|
4145
|
+
exports$1.resolveObjectURL = buffer2.resolveObjectURL;
|
|
4146
|
+
exports$1.transcode = buffer2.transcode;
|
|
4147
4147
|
})(dist);
|
|
4148
4148
|
return dist;
|
|
4149
4149
|
}
|
|
@@ -4609,15 +4609,15 @@ function requireGetProto() {
|
|
|
4609
4609
|
var reflectGetProto = requireReflect_getPrototypeOf();
|
|
4610
4610
|
var originalGetProto = requireObject_getPrototypeOf();
|
|
4611
4611
|
var getDunderProto = /* @__PURE__ */ requireGet();
|
|
4612
|
-
getProto = reflectGetProto ? function getProto2(
|
|
4613
|
-
return reflectGetProto(
|
|
4614
|
-
} : originalGetProto ? function getProto2(
|
|
4615
|
-
if (!
|
|
4612
|
+
getProto = reflectGetProto ? function getProto2(O2) {
|
|
4613
|
+
return reflectGetProto(O2);
|
|
4614
|
+
} : originalGetProto ? function getProto2(O2) {
|
|
4615
|
+
if (!O2 || typeof O2 !== "object" && typeof O2 !== "function") {
|
|
4616
4616
|
throw new TypeError("getProto: not an object");
|
|
4617
4617
|
}
|
|
4618
|
-
return originalGetProto(
|
|
4619
|
-
} : getDunderProto ? function getProto2(
|
|
4620
|
-
return getDunderProto(
|
|
4618
|
+
return originalGetProto(O2);
|
|
4619
|
+
} : getDunderProto ? function getProto2(O2) {
|
|
4620
|
+
return getDunderProto(O2);
|
|
4621
4621
|
} : null;
|
|
4622
4622
|
return getProto;
|
|
4623
4623
|
}
|
|
@@ -5295,8 +5295,8 @@ function requireForEach() {
|
|
|
5295
5295
|
}
|
|
5296
5296
|
}
|
|
5297
5297
|
};
|
|
5298
|
-
function isArray2(
|
|
5299
|
-
return toStr.call(
|
|
5298
|
+
function isArray2(x) {
|
|
5299
|
+
return toStr.call(x) === "[object Array]";
|
|
5300
5300
|
}
|
|
5301
5301
|
forEach = function forEach22(list, iterator, thisArg) {
|
|
5302
5302
|
if (!isCallable2(iterator)) {
|
|
@@ -5645,7 +5645,7 @@ var hasRequiredTypes;
|
|
|
5645
5645
|
function requireTypes() {
|
|
5646
5646
|
if (hasRequiredTypes) return types;
|
|
5647
5647
|
hasRequiredTypes = 1;
|
|
5648
|
-
(function(
|
|
5648
|
+
(function(exports$1) {
|
|
5649
5649
|
var isArgumentsObject = /* @__PURE__ */ requireIsArguments();
|
|
5650
5650
|
var isGeneratorFunction2 = requireIsGeneratorFunction();
|
|
5651
5651
|
var whichTypedArray2 = /* @__PURE__ */ requireWhichTypedArray();
|
|
@@ -5676,64 +5676,64 @@ function requireTypes() {
|
|
|
5676
5676
|
return false;
|
|
5677
5677
|
}
|
|
5678
5678
|
}
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5679
|
+
exports$1.isArgumentsObject = isArgumentsObject;
|
|
5680
|
+
exports$1.isGeneratorFunction = isGeneratorFunction2;
|
|
5681
|
+
exports$1.isTypedArray = isTypedArray2;
|
|
5682
5682
|
function isPromise(input) {
|
|
5683
5683
|
return typeof Promise !== "undefined" && input instanceof Promise || input !== null && typeof input === "object" && typeof input.then === "function" && typeof input.catch === "function";
|
|
5684
5684
|
}
|
|
5685
|
-
|
|
5685
|
+
exports$1.isPromise = isPromise;
|
|
5686
5686
|
function isArrayBufferView(value) {
|
|
5687
5687
|
if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
|
|
5688
5688
|
return ArrayBuffer.isView(value);
|
|
5689
5689
|
}
|
|
5690
5690
|
return isTypedArray2(value) || isDataView(value);
|
|
5691
5691
|
}
|
|
5692
|
-
|
|
5692
|
+
exports$1.isArrayBufferView = isArrayBufferView;
|
|
5693
5693
|
function isUint8Array(value) {
|
|
5694
5694
|
return whichTypedArray2(value) === "Uint8Array";
|
|
5695
5695
|
}
|
|
5696
|
-
|
|
5696
|
+
exports$1.isUint8Array = isUint8Array;
|
|
5697
5697
|
function isUint8ClampedArray(value) {
|
|
5698
5698
|
return whichTypedArray2(value) === "Uint8ClampedArray";
|
|
5699
5699
|
}
|
|
5700
|
-
|
|
5700
|
+
exports$1.isUint8ClampedArray = isUint8ClampedArray;
|
|
5701
5701
|
function isUint16Array(value) {
|
|
5702
5702
|
return whichTypedArray2(value) === "Uint16Array";
|
|
5703
5703
|
}
|
|
5704
|
-
|
|
5704
|
+
exports$1.isUint16Array = isUint16Array;
|
|
5705
5705
|
function isUint32Array(value) {
|
|
5706
5706
|
return whichTypedArray2(value) === "Uint32Array";
|
|
5707
5707
|
}
|
|
5708
|
-
|
|
5708
|
+
exports$1.isUint32Array = isUint32Array;
|
|
5709
5709
|
function isInt8Array(value) {
|
|
5710
5710
|
return whichTypedArray2(value) === "Int8Array";
|
|
5711
5711
|
}
|
|
5712
|
-
|
|
5712
|
+
exports$1.isInt8Array = isInt8Array;
|
|
5713
5713
|
function isInt16Array(value) {
|
|
5714
5714
|
return whichTypedArray2(value) === "Int16Array";
|
|
5715
5715
|
}
|
|
5716
|
-
|
|
5716
|
+
exports$1.isInt16Array = isInt16Array;
|
|
5717
5717
|
function isInt32Array(value) {
|
|
5718
5718
|
return whichTypedArray2(value) === "Int32Array";
|
|
5719
5719
|
}
|
|
5720
|
-
|
|
5720
|
+
exports$1.isInt32Array = isInt32Array;
|
|
5721
5721
|
function isFloat32Array(value) {
|
|
5722
5722
|
return whichTypedArray2(value) === "Float32Array";
|
|
5723
5723
|
}
|
|
5724
|
-
|
|
5724
|
+
exports$1.isFloat32Array = isFloat32Array;
|
|
5725
5725
|
function isFloat64Array(value) {
|
|
5726
5726
|
return whichTypedArray2(value) === "Float64Array";
|
|
5727
5727
|
}
|
|
5728
|
-
|
|
5728
|
+
exports$1.isFloat64Array = isFloat64Array;
|
|
5729
5729
|
function isBigInt64Array(value) {
|
|
5730
5730
|
return whichTypedArray2(value) === "BigInt64Array";
|
|
5731
5731
|
}
|
|
5732
|
-
|
|
5732
|
+
exports$1.isBigInt64Array = isBigInt64Array;
|
|
5733
5733
|
function isBigUint64Array(value) {
|
|
5734
5734
|
return whichTypedArray2(value) === "BigUint64Array";
|
|
5735
5735
|
}
|
|
5736
|
-
|
|
5736
|
+
exports$1.isBigUint64Array = isBigUint64Array;
|
|
5737
5737
|
function isMapToString(value) {
|
|
5738
5738
|
return ObjectToString(value) === "[object Map]";
|
|
5739
5739
|
}
|
|
@@ -5744,7 +5744,7 @@ function requireTypes() {
|
|
|
5744
5744
|
}
|
|
5745
5745
|
return isMapToString.working ? isMapToString(value) : value instanceof Map;
|
|
5746
5746
|
}
|
|
5747
|
-
|
|
5747
|
+
exports$1.isMap = isMap;
|
|
5748
5748
|
function isSetToString(value) {
|
|
5749
5749
|
return ObjectToString(value) === "[object Set]";
|
|
5750
5750
|
}
|
|
@@ -5755,7 +5755,7 @@ function requireTypes() {
|
|
|
5755
5755
|
}
|
|
5756
5756
|
return isSetToString.working ? isSetToString(value) : value instanceof Set;
|
|
5757
5757
|
}
|
|
5758
|
-
|
|
5758
|
+
exports$1.isSet = isSet;
|
|
5759
5759
|
function isWeakMapToString(value) {
|
|
5760
5760
|
return ObjectToString(value) === "[object WeakMap]";
|
|
5761
5761
|
}
|
|
@@ -5766,7 +5766,7 @@ function requireTypes() {
|
|
|
5766
5766
|
}
|
|
5767
5767
|
return isWeakMapToString.working ? isWeakMapToString(value) : value instanceof WeakMap;
|
|
5768
5768
|
}
|
|
5769
|
-
|
|
5769
|
+
exports$1.isWeakMap = isWeakMap;
|
|
5770
5770
|
function isWeakSetToString(value) {
|
|
5771
5771
|
return ObjectToString(value) === "[object WeakSet]";
|
|
5772
5772
|
}
|
|
@@ -5774,7 +5774,7 @@ function requireTypes() {
|
|
|
5774
5774
|
function isWeakSet(value) {
|
|
5775
5775
|
return isWeakSetToString(value);
|
|
5776
5776
|
}
|
|
5777
|
-
|
|
5777
|
+
exports$1.isWeakSet = isWeakSet;
|
|
5778
5778
|
function isArrayBufferToString(value) {
|
|
5779
5779
|
return ObjectToString(value) === "[object ArrayBuffer]";
|
|
5780
5780
|
}
|
|
@@ -5785,7 +5785,7 @@ function requireTypes() {
|
|
|
5785
5785
|
}
|
|
5786
5786
|
return isArrayBufferToString.working ? isArrayBufferToString(value) : value instanceof ArrayBuffer;
|
|
5787
5787
|
}
|
|
5788
|
-
|
|
5788
|
+
exports$1.isArrayBuffer = isArrayBuffer;
|
|
5789
5789
|
function isDataViewToString(value) {
|
|
5790
5790
|
return ObjectToString(value) === "[object DataView]";
|
|
5791
5791
|
}
|
|
@@ -5796,7 +5796,7 @@ function requireTypes() {
|
|
|
5796
5796
|
}
|
|
5797
5797
|
return isDataViewToString.working ? isDataViewToString(value) : value instanceof DataView;
|
|
5798
5798
|
}
|
|
5799
|
-
|
|
5799
|
+
exports$1.isDataView = isDataView;
|
|
5800
5800
|
var SharedArrayBufferCopy = typeof SharedArrayBuffer !== "undefined" ? SharedArrayBuffer : void 0;
|
|
5801
5801
|
function isSharedArrayBufferToString(value) {
|
|
5802
5802
|
return ObjectToString(value) === "[object SharedArrayBuffer]";
|
|
@@ -5810,57 +5810,57 @@ function requireTypes() {
|
|
|
5810
5810
|
}
|
|
5811
5811
|
return isSharedArrayBufferToString.working ? isSharedArrayBufferToString(value) : value instanceof SharedArrayBufferCopy;
|
|
5812
5812
|
}
|
|
5813
|
-
|
|
5813
|
+
exports$1.isSharedArrayBuffer = isSharedArrayBuffer;
|
|
5814
5814
|
function isAsyncFunction(value) {
|
|
5815
5815
|
return ObjectToString(value) === "[object AsyncFunction]";
|
|
5816
5816
|
}
|
|
5817
|
-
|
|
5817
|
+
exports$1.isAsyncFunction = isAsyncFunction;
|
|
5818
5818
|
function isMapIterator(value) {
|
|
5819
5819
|
return ObjectToString(value) === "[object Map Iterator]";
|
|
5820
5820
|
}
|
|
5821
|
-
|
|
5821
|
+
exports$1.isMapIterator = isMapIterator;
|
|
5822
5822
|
function isSetIterator(value) {
|
|
5823
5823
|
return ObjectToString(value) === "[object Set Iterator]";
|
|
5824
5824
|
}
|
|
5825
|
-
|
|
5825
|
+
exports$1.isSetIterator = isSetIterator;
|
|
5826
5826
|
function isGeneratorObject(value) {
|
|
5827
5827
|
return ObjectToString(value) === "[object Generator]";
|
|
5828
5828
|
}
|
|
5829
|
-
|
|
5829
|
+
exports$1.isGeneratorObject = isGeneratorObject;
|
|
5830
5830
|
function isWebAssemblyCompiledModule(value) {
|
|
5831
5831
|
return ObjectToString(value) === "[object WebAssembly.Module]";
|
|
5832
5832
|
}
|
|
5833
|
-
|
|
5833
|
+
exports$1.isWebAssemblyCompiledModule = isWebAssemblyCompiledModule;
|
|
5834
5834
|
function isNumberObject(value) {
|
|
5835
5835
|
return checkBoxedPrimitive(value, numberValue);
|
|
5836
5836
|
}
|
|
5837
|
-
|
|
5837
|
+
exports$1.isNumberObject = isNumberObject;
|
|
5838
5838
|
function isStringObject(value) {
|
|
5839
5839
|
return checkBoxedPrimitive(value, stringValue);
|
|
5840
5840
|
}
|
|
5841
|
-
|
|
5841
|
+
exports$1.isStringObject = isStringObject;
|
|
5842
5842
|
function isBooleanObject(value) {
|
|
5843
5843
|
return checkBoxedPrimitive(value, booleanValue);
|
|
5844
5844
|
}
|
|
5845
|
-
|
|
5845
|
+
exports$1.isBooleanObject = isBooleanObject;
|
|
5846
5846
|
function isBigIntObject(value) {
|
|
5847
5847
|
return BigIntSupported && checkBoxedPrimitive(value, bigIntValue);
|
|
5848
5848
|
}
|
|
5849
|
-
|
|
5849
|
+
exports$1.isBigIntObject = isBigIntObject;
|
|
5850
5850
|
function isSymbolObject(value) {
|
|
5851
5851
|
return SymbolSupported && checkBoxedPrimitive(value, symbolValue);
|
|
5852
5852
|
}
|
|
5853
|
-
|
|
5853
|
+
exports$1.isSymbolObject = isSymbolObject;
|
|
5854
5854
|
function isBoxedPrimitive(value) {
|
|
5855
5855
|
return isNumberObject(value) || isStringObject(value) || isBooleanObject(value) || isBigIntObject(value) || isSymbolObject(value);
|
|
5856
5856
|
}
|
|
5857
|
-
|
|
5857
|
+
exports$1.isBoxedPrimitive = isBoxedPrimitive;
|
|
5858
5858
|
function isAnyArrayBuffer(value) {
|
|
5859
5859
|
return typeof Uint8Array !== "undefined" && (isArrayBuffer(value) || isSharedArrayBuffer(value));
|
|
5860
5860
|
}
|
|
5861
|
-
|
|
5861
|
+
exports$1.isAnyArrayBuffer = isAnyArrayBuffer;
|
|
5862
5862
|
["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(method) {
|
|
5863
|
-
Object.defineProperty(
|
|
5863
|
+
Object.defineProperty(exports$1, method, {
|
|
5864
5864
|
enumerable: false,
|
|
5865
5865
|
value: function() {
|
|
5866
5866
|
throw new Error(method + " is not supported in userland");
|
|
@@ -5884,7 +5884,7 @@ var hasRequiredUtil;
|
|
|
5884
5884
|
function requireUtil() {
|
|
5885
5885
|
if (hasRequiredUtil) return util;
|
|
5886
5886
|
hasRequiredUtil = 1;
|
|
5887
|
-
(function(
|
|
5887
|
+
(function(exports$1) {
|
|
5888
5888
|
var getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors || function getOwnPropertyDescriptors2(obj) {
|
|
5889
5889
|
var keys2 = Object.keys(obj);
|
|
5890
5890
|
var descriptors = {};
|
|
@@ -5894,7 +5894,7 @@ function requireUtil() {
|
|
|
5894
5894
|
return descriptors;
|
|
5895
5895
|
};
|
|
5896
5896
|
var formatRegExp = /%[sdj%]/g;
|
|
5897
|
-
|
|
5897
|
+
exports$1.format = function(f2) {
|
|
5898
5898
|
if (!isString(f2)) {
|
|
5899
5899
|
var objects = [];
|
|
5900
5900
|
for (var i = 0; i < arguments.length; i++) {
|
|
@@ -5905,10 +5905,10 @@ function requireUtil() {
|
|
|
5905
5905
|
var i = 1;
|
|
5906
5906
|
var args = arguments;
|
|
5907
5907
|
var len = args.length;
|
|
5908
|
-
var str = String(f2).replace(formatRegExp, function(
|
|
5909
|
-
if (
|
|
5910
|
-
if (i >= len) return
|
|
5911
|
-
switch (
|
|
5908
|
+
var str = String(f2).replace(formatRegExp, function(x2) {
|
|
5909
|
+
if (x2 === "%%") return "%";
|
|
5910
|
+
if (i >= len) return x2;
|
|
5911
|
+
switch (x2) {
|
|
5912
5912
|
case "%s":
|
|
5913
5913
|
return String(args[i++]);
|
|
5914
5914
|
case "%d":
|
|
@@ -5920,25 +5920,25 @@ function requireUtil() {
|
|
|
5920
5920
|
return "[Circular]";
|
|
5921
5921
|
}
|
|
5922
5922
|
default:
|
|
5923
|
-
return
|
|
5923
|
+
return x2;
|
|
5924
5924
|
}
|
|
5925
5925
|
});
|
|
5926
|
-
for (var
|
|
5927
|
-
if (isNull(
|
|
5928
|
-
str += " " +
|
|
5926
|
+
for (var x = args[i]; i < len; x = args[++i]) {
|
|
5927
|
+
if (isNull(x) || !isObject2(x)) {
|
|
5928
|
+
str += " " + x;
|
|
5929
5929
|
} else {
|
|
5930
|
-
str += " " + inspect(
|
|
5930
|
+
str += " " + inspect(x);
|
|
5931
5931
|
}
|
|
5932
5932
|
}
|
|
5933
5933
|
return str;
|
|
5934
5934
|
};
|
|
5935
|
-
|
|
5935
|
+
exports$1.deprecate = function(fn2, msg2) {
|
|
5936
5936
|
if (typeof process$1$1 !== "undefined" && process$1$1.noDeprecation === true) {
|
|
5937
5937
|
return fn2;
|
|
5938
5938
|
}
|
|
5939
5939
|
if (typeof process$1$1 === "undefined") {
|
|
5940
5940
|
return function() {
|
|
5941
|
-
return
|
|
5941
|
+
return exports$1.deprecate(fn2, msg2).apply(this, arguments);
|
|
5942
5942
|
};
|
|
5943
5943
|
}
|
|
5944
5944
|
var warned = false;
|
|
@@ -5964,13 +5964,13 @@ function requireUtil() {
|
|
|
5964
5964
|
debugEnv = debugEnv.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase();
|
|
5965
5965
|
debugEnvRegex = new RegExp("^" + debugEnv + "$", "i");
|
|
5966
5966
|
}
|
|
5967
|
-
|
|
5967
|
+
exports$1.debuglog = function(set) {
|
|
5968
5968
|
set = set.toUpperCase();
|
|
5969
5969
|
if (!debugs[set]) {
|
|
5970
5970
|
if (debugEnvRegex.test(set)) {
|
|
5971
5971
|
var pid = process$1$1.pid;
|
|
5972
5972
|
debugs[set] = function() {
|
|
5973
|
-
var msg2 =
|
|
5973
|
+
var msg2 = exports$1.format.apply(exports$1, arguments);
|
|
5974
5974
|
console.error("%s %d: %s", set, pid, msg2);
|
|
5975
5975
|
};
|
|
5976
5976
|
} else {
|
|
@@ -5990,7 +5990,7 @@ function requireUtil() {
|
|
|
5990
5990
|
if (isBoolean(opts)) {
|
|
5991
5991
|
ctx2.showHidden = opts;
|
|
5992
5992
|
} else if (opts) {
|
|
5993
|
-
|
|
5993
|
+
exports$1._extend(ctx2, opts);
|
|
5994
5994
|
}
|
|
5995
5995
|
if (isUndefined(ctx2.showHidden)) ctx2.showHidden = false;
|
|
5996
5996
|
if (isUndefined(ctx2.depth)) ctx2.depth = 2;
|
|
@@ -5999,7 +5999,7 @@ function requireUtil() {
|
|
|
5999
5999
|
if (ctx2.colors) ctx2.stylize = stylizeWithColor;
|
|
6000
6000
|
return formatValue(ctx2, obj, ctx2.depth);
|
|
6001
6001
|
}
|
|
6002
|
-
|
|
6002
|
+
exports$1.inspect = inspect;
|
|
6003
6003
|
inspect.colors = {
|
|
6004
6004
|
"bold": [1, 22],
|
|
6005
6005
|
"italic": [3, 23],
|
|
@@ -6046,7 +6046,7 @@ function requireUtil() {
|
|
|
6046
6046
|
}
|
|
6047
6047
|
function formatValue(ctx2, value, recurseTimes) {
|
|
6048
6048
|
if (ctx2.customInspect && value && isFunction2(value.inspect) && // Filter out the util module, it's inspect function is special
|
|
6049
|
-
value.inspect !==
|
|
6049
|
+
value.inspect !== exports$1.inspect && // Also filter out any prototype objects using the circular check.
|
|
6050
6050
|
!(value.constructor && value.constructor.prototype === value)) {
|
|
6051
6051
|
var ret = value.inspect(recurseTimes, ctx2);
|
|
6052
6052
|
if (!isString(ret)) {
|
|
@@ -6140,7 +6140,7 @@ function requireUtil() {
|
|
|
6140
6140
|
}
|
|
6141
6141
|
function formatArray(ctx2, value, recurseTimes, visibleKeys, keys2) {
|
|
6142
6142
|
var output = [];
|
|
6143
|
-
for (var i = 0,
|
|
6143
|
+
for (var i = 0, l3 = value.length; i < l3; ++i) {
|
|
6144
6144
|
if (hasOwnProperty2(value, String(i))) {
|
|
6145
6145
|
output.push(formatProperty(
|
|
6146
6146
|
ctx2,
|
|
@@ -6232,68 +6232,68 @@ function requireUtil() {
|
|
|
6232
6232
|
}
|
|
6233
6233
|
return braces[0] + base2 + " " + output.join(", ") + " " + braces[1];
|
|
6234
6234
|
}
|
|
6235
|
-
|
|
6235
|
+
exports$1.types = requireTypes();
|
|
6236
6236
|
function isArray2(ar) {
|
|
6237
6237
|
return Array.isArray(ar);
|
|
6238
6238
|
}
|
|
6239
|
-
|
|
6239
|
+
exports$1.isArray = isArray2;
|
|
6240
6240
|
function isBoolean(arg) {
|
|
6241
6241
|
return typeof arg === "boolean";
|
|
6242
6242
|
}
|
|
6243
|
-
|
|
6243
|
+
exports$1.isBoolean = isBoolean;
|
|
6244
6244
|
function isNull(arg) {
|
|
6245
6245
|
return arg === null;
|
|
6246
6246
|
}
|
|
6247
|
-
|
|
6247
|
+
exports$1.isNull = isNull;
|
|
6248
6248
|
function isNullOrUndefined(arg) {
|
|
6249
6249
|
return arg == null;
|
|
6250
6250
|
}
|
|
6251
|
-
|
|
6251
|
+
exports$1.isNullOrUndefined = isNullOrUndefined;
|
|
6252
6252
|
function isNumber(arg) {
|
|
6253
6253
|
return typeof arg === "number";
|
|
6254
6254
|
}
|
|
6255
|
-
|
|
6255
|
+
exports$1.isNumber = isNumber;
|
|
6256
6256
|
function isString(arg) {
|
|
6257
6257
|
return typeof arg === "string";
|
|
6258
6258
|
}
|
|
6259
|
-
|
|
6259
|
+
exports$1.isString = isString;
|
|
6260
6260
|
function isSymbol2(arg) {
|
|
6261
6261
|
return typeof arg === "symbol";
|
|
6262
6262
|
}
|
|
6263
|
-
|
|
6263
|
+
exports$1.isSymbol = isSymbol2;
|
|
6264
6264
|
function isUndefined(arg) {
|
|
6265
6265
|
return arg === void 0;
|
|
6266
6266
|
}
|
|
6267
|
-
|
|
6267
|
+
exports$1.isUndefined = isUndefined;
|
|
6268
6268
|
function isRegExp2(re2) {
|
|
6269
6269
|
return isObject2(re2) && objectToString2(re2) === "[object RegExp]";
|
|
6270
6270
|
}
|
|
6271
|
-
|
|
6272
|
-
|
|
6271
|
+
exports$1.isRegExp = isRegExp2;
|
|
6272
|
+
exports$1.types.isRegExp = isRegExp2;
|
|
6273
6273
|
function isObject2(arg) {
|
|
6274
6274
|
return typeof arg === "object" && arg !== null;
|
|
6275
6275
|
}
|
|
6276
|
-
|
|
6276
|
+
exports$1.isObject = isObject2;
|
|
6277
6277
|
function isDate(d2) {
|
|
6278
6278
|
return isObject2(d2) && objectToString2(d2) === "[object Date]";
|
|
6279
6279
|
}
|
|
6280
|
-
|
|
6281
|
-
|
|
6280
|
+
exports$1.isDate = isDate;
|
|
6281
|
+
exports$1.types.isDate = isDate;
|
|
6282
6282
|
function isError(e) {
|
|
6283
6283
|
return isObject2(e) && (objectToString2(e) === "[object Error]" || e instanceof Error);
|
|
6284
6284
|
}
|
|
6285
|
-
|
|
6286
|
-
|
|
6285
|
+
exports$1.isError = isError;
|
|
6286
|
+
exports$1.types.isNativeError = isError;
|
|
6287
6287
|
function isFunction2(arg) {
|
|
6288
6288
|
return typeof arg === "function";
|
|
6289
6289
|
}
|
|
6290
|
-
|
|
6290
|
+
exports$1.isFunction = isFunction2;
|
|
6291
6291
|
function isPrimitive(arg) {
|
|
6292
6292
|
return arg === null || typeof arg === "boolean" || typeof arg === "number" || typeof arg === "string" || typeof arg === "symbol" || // ES6 symbol
|
|
6293
6293
|
typeof arg === "undefined";
|
|
6294
6294
|
}
|
|
6295
|
-
|
|
6296
|
-
|
|
6295
|
+
exports$1.isPrimitive = isPrimitive;
|
|
6296
|
+
exports$1.isBuffer = requireIsBufferBrowser();
|
|
6297
6297
|
function objectToString2(o) {
|
|
6298
6298
|
return Object.prototype.toString.call(o);
|
|
6299
6299
|
}
|
|
@@ -6323,11 +6323,11 @@ function requireUtil() {
|
|
|
6323
6323
|
].join(":");
|
|
6324
6324
|
return [d2.getDate(), months[d2.getMonth()], time2].join(" ");
|
|
6325
6325
|
}
|
|
6326
|
-
|
|
6327
|
-
console.log("%s - %s", timestamp(),
|
|
6326
|
+
exports$1.log = function() {
|
|
6327
|
+
console.log("%s - %s", timestamp(), exports$1.format.apply(exports$1, arguments));
|
|
6328
6328
|
};
|
|
6329
|
-
|
|
6330
|
-
|
|
6329
|
+
exports$1.inherits = requireInherits_browser();
|
|
6330
|
+
exports$1._extend = function(origin, add) {
|
|
6331
6331
|
if (!add || !isObject2(add)) return origin;
|
|
6332
6332
|
var keys2 = Object.keys(add);
|
|
6333
6333
|
var i = keys2.length;
|
|
@@ -6340,7 +6340,7 @@ function requireUtil() {
|
|
|
6340
6340
|
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
6341
6341
|
}
|
|
6342
6342
|
var kCustomPromisifiedSymbol = typeof Symbol !== "undefined" ? Symbol("util.promisify.custom") : void 0;
|
|
6343
|
-
|
|
6343
|
+
exports$1.promisify = function promisify(original) {
|
|
6344
6344
|
if (typeof original !== "function")
|
|
6345
6345
|
throw new TypeError('The "original" argument must be of type Function');
|
|
6346
6346
|
if (kCustomPromisifiedSymbol && original[kCustomPromisifiedSymbol]) {
|
|
@@ -6392,7 +6392,7 @@ function requireUtil() {
|
|
|
6392
6392
|
getOwnPropertyDescriptors(original)
|
|
6393
6393
|
);
|
|
6394
6394
|
};
|
|
6395
|
-
|
|
6395
|
+
exports$1.promisify.custom = kCustomPromisifiedSymbol;
|
|
6396
6396
|
function callbackifyOnRejected(reason, cb) {
|
|
6397
6397
|
if (!reason) {
|
|
6398
6398
|
var newReason = new Error("Promise was rejected with a falsy value");
|
|
@@ -6434,7 +6434,7 @@ function requireUtil() {
|
|
|
6434
6434
|
);
|
|
6435
6435
|
return callbackified;
|
|
6436
6436
|
}
|
|
6437
|
-
|
|
6437
|
+
exports$1.callbackify = callbackify;
|
|
6438
6438
|
})(util);
|
|
6439
6439
|
return util;
|
|
6440
6440
|
}
|
|
@@ -7239,8 +7239,8 @@ function require_stream_writable() {
|
|
|
7239
7239
|
state2.bufferProcessing = true;
|
|
7240
7240
|
var entry = state2.bufferedRequest;
|
|
7241
7241
|
if (stream._writev && entry && entry.next) {
|
|
7242
|
-
var
|
|
7243
|
-
var buffer2 = new Array(
|
|
7242
|
+
var l3 = state2.bufferedRequestCount;
|
|
7243
|
+
var buffer2 = new Array(l3);
|
|
7244
7244
|
var holder = state2.corkedRequestsFree;
|
|
7245
7245
|
holder.entry = entry;
|
|
7246
7246
|
var count = 0;
|
|
@@ -7496,7 +7496,7 @@ var hasRequiredSafeBuffer;
|
|
|
7496
7496
|
function requireSafeBuffer() {
|
|
7497
7497
|
if (hasRequiredSafeBuffer) return safeBuffer.exports;
|
|
7498
7498
|
hasRequiredSafeBuffer = 1;
|
|
7499
|
-
(function(module2,
|
|
7499
|
+
(function(module2, exports$1) {
|
|
7500
7500
|
var buffer2 = requireDist();
|
|
7501
7501
|
var Buffer3 = buffer2.Buffer;
|
|
7502
7502
|
function copyProps(src, dst) {
|
|
@@ -7507,8 +7507,8 @@ function requireSafeBuffer() {
|
|
|
7507
7507
|
if (Buffer3.from && Buffer3.alloc && Buffer3.allocUnsafe && Buffer3.allocUnsafeSlow) {
|
|
7508
7508
|
module2.exports = buffer2;
|
|
7509
7509
|
} else {
|
|
7510
|
-
copyProps(buffer2,
|
|
7511
|
-
|
|
7510
|
+
copyProps(buffer2, exports$1);
|
|
7511
|
+
exports$1.Buffer = SafeBuffer;
|
|
7512
7512
|
}
|
|
7513
7513
|
function SafeBuffer(arg, encodingOrOffset, length2) {
|
|
7514
7514
|
return Buffer3(arg, encodingOrOffset, length2);
|
|
@@ -8790,9 +8790,9 @@ function require_stream_readable() {
|
|
|
8790
8790
|
return from2(Readable, iterable, opts);
|
|
8791
8791
|
};
|
|
8792
8792
|
}
|
|
8793
|
-
function indexOf(xs,
|
|
8794
|
-
for (var i = 0,
|
|
8795
|
-
if (xs[i] ===
|
|
8793
|
+
function indexOf(xs, x) {
|
|
8794
|
+
for (var i = 0, l3 = xs.length; i < l3; i++) {
|
|
8795
|
+
if (xs[i] === x) return i;
|
|
8796
8796
|
}
|
|
8797
8797
|
return -1;
|
|
8798
8798
|
}
|
|
@@ -9077,7 +9077,7 @@ var hasRequiredSax;
|
|
|
9077
9077
|
function requireSax() {
|
|
9078
9078
|
if (hasRequiredSax) return sax;
|
|
9079
9079
|
hasRequiredSax = 1;
|
|
9080
|
-
(function(
|
|
9080
|
+
(function(exports$1) {
|
|
9081
9081
|
(function(sax2) {
|
|
9082
9082
|
sax2.parser = function(strict, opt) {
|
|
9083
9083
|
return new SAXParser(strict, opt);
|
|
@@ -9171,7 +9171,7 @@ function requireSax() {
|
|
|
9171
9171
|
function checkBufferLength(parser) {
|
|
9172
9172
|
var maxAllowed = Math.max(sax2.MAX_BUFFER_LENGTH, 10);
|
|
9173
9173
|
var maxActual = 0;
|
|
9174
|
-
for (var i = 0,
|
|
9174
|
+
for (var i = 0, l3 = buffers.length; i < l3; i++) {
|
|
9175
9175
|
var len = parser[buffers[i]].length;
|
|
9176
9176
|
if (len > maxAllowed) {
|
|
9177
9177
|
switch (buffers[i]) {
|
|
@@ -9196,7 +9196,7 @@ function requireSax() {
|
|
|
9196
9196
|
parser.bufferCheckPosition = m2 + parser.position;
|
|
9197
9197
|
}
|
|
9198
9198
|
function clearBuffers(parser) {
|
|
9199
|
-
for (var i = 0,
|
|
9199
|
+
for (var i = 0, l3 = buffers.length; i < l3; i++) {
|
|
9200
9200
|
parser[buffers[i]] = "";
|
|
9201
9201
|
}
|
|
9202
9202
|
}
|
|
@@ -9250,27 +9250,27 @@ function requireSax() {
|
|
|
9250
9250
|
this._parser = new SAXParser(strict, opt);
|
|
9251
9251
|
this.writable = true;
|
|
9252
9252
|
this.readable = true;
|
|
9253
|
-
var
|
|
9253
|
+
var me = this;
|
|
9254
9254
|
this._parser.onend = function() {
|
|
9255
|
-
|
|
9255
|
+
me.emit("end");
|
|
9256
9256
|
};
|
|
9257
9257
|
this._parser.onerror = function(er) {
|
|
9258
|
-
|
|
9259
|
-
|
|
9258
|
+
me.emit("error", er);
|
|
9259
|
+
me._parser.error = null;
|
|
9260
9260
|
};
|
|
9261
9261
|
this._decoder = null;
|
|
9262
9262
|
streamWraps.forEach(function(ev) {
|
|
9263
|
-
Object.defineProperty(
|
|
9263
|
+
Object.defineProperty(me, "on" + ev, {
|
|
9264
9264
|
get: function() {
|
|
9265
|
-
return
|
|
9265
|
+
return me._parser["on" + ev];
|
|
9266
9266
|
},
|
|
9267
9267
|
set: function(h2) {
|
|
9268
9268
|
if (!h2) {
|
|
9269
|
-
|
|
9270
|
-
|
|
9269
|
+
me.removeAllListeners(ev);
|
|
9270
|
+
me._parser["on" + ev] = h2;
|
|
9271
9271
|
return h2;
|
|
9272
9272
|
}
|
|
9273
|
-
|
|
9273
|
+
me.on(ev, h2);
|
|
9274
9274
|
},
|
|
9275
9275
|
enumerable: true,
|
|
9276
9276
|
configurable: false
|
|
@@ -9302,15 +9302,15 @@ function requireSax() {
|
|
|
9302
9302
|
return true;
|
|
9303
9303
|
};
|
|
9304
9304
|
SAXStream.prototype.on = function(ev, handler2) {
|
|
9305
|
-
var
|
|
9306
|
-
if (!
|
|
9307
|
-
|
|
9305
|
+
var me = this;
|
|
9306
|
+
if (!me._parser["on" + ev] && streamWraps.indexOf(ev) !== -1) {
|
|
9307
|
+
me._parser["on" + ev] = function() {
|
|
9308
9308
|
var args = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
|
|
9309
9309
|
args.splice(0, 0, ev);
|
|
9310
|
-
|
|
9310
|
+
me.emit.apply(me, args);
|
|
9311
9311
|
};
|
|
9312
9312
|
}
|
|
9313
|
-
return Stream.prototype.on.call(
|
|
9313
|
+
return Stream.prototype.on.call(me, ev, handler2);
|
|
9314
9314
|
};
|
|
9315
9315
|
var CDATA = "[CDATA[";
|
|
9316
9316
|
var DOCTYPE = "DOCTYPE";
|
|
@@ -9816,7 +9816,7 @@ function requireSax() {
|
|
|
9816
9816
|
});
|
|
9817
9817
|
});
|
|
9818
9818
|
}
|
|
9819
|
-
for (var i = 0,
|
|
9819
|
+
for (var i = 0, l3 = parser.attribList.length; i < l3; i++) {
|
|
9820
9820
|
var nv = parser.attribList[i];
|
|
9821
9821
|
var name = nv[0];
|
|
9822
9822
|
var value = nv[1];
|
|
@@ -9902,9 +9902,9 @@ function requireSax() {
|
|
|
9902
9902
|
var tag = parser.tag = parser.tags.pop();
|
|
9903
9903
|
parser.tagName = parser.tag.name;
|
|
9904
9904
|
emitNode(parser, "onclosetag", parser.tagName);
|
|
9905
|
-
var
|
|
9905
|
+
var x = {};
|
|
9906
9906
|
for (var i in tag.ns) {
|
|
9907
|
-
|
|
9907
|
+
x[i] = tag.ns[i];
|
|
9908
9908
|
}
|
|
9909
9909
|
var parent = parser.tags[parser.tags.length - 1] || parser;
|
|
9910
9910
|
if (parser.opt.xmlns && tag.ns !== parent.ns) {
|
|
@@ -10555,7 +10555,7 @@ function requireSax() {
|
|
|
10555
10555
|
}
|
|
10556
10556
|
})();
|
|
10557
10557
|
}
|
|
10558
|
-
})(
|
|
10558
|
+
})(exports$1);
|
|
10559
10559
|
})(sax);
|
|
10560
10560
|
return sax;
|
|
10561
10561
|
}
|
|
@@ -11384,8 +11384,8 @@ function v4(options, buf, offset2) {
|
|
|
11384
11384
|
rnds[8] = rnds[8] & 63 | 128;
|
|
11385
11385
|
return unsafeStringify(rnds);
|
|
11386
11386
|
}
|
|
11387
|
-
function getDefaultExportFromCjs(
|
|
11388
|
-
return
|
|
11387
|
+
function getDefaultExportFromCjs(x) {
|
|
11388
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
11389
11389
|
}
|
|
11390
11390
|
const CRC_TABLE = new Int32Array([
|
|
11391
11391
|
0,
|
|
@@ -15209,8 +15209,8 @@ function polygonToObj(polygonNode) {
|
|
|
15209
15209
|
const points = [];
|
|
15210
15210
|
polygonNode.elements.forEach((element) => {
|
|
15211
15211
|
if (["wp:start", "wp:lineTo"].includes(element.name)) {
|
|
15212
|
-
const { x
|
|
15213
|
-
points.push([polygonUnitsToPixels(
|
|
15212
|
+
const { x, y: y2 } = element.attributes;
|
|
15213
|
+
points.push([polygonUnitsToPixels(x), polygonUnitsToPixels(y2)]);
|
|
15214
15214
|
}
|
|
15215
15215
|
});
|
|
15216
15216
|
if (points.length > 1) {
|
|
@@ -15233,13 +15233,13 @@ function objToPolygon(points) {
|
|
|
15233
15233
|
elements: []
|
|
15234
15234
|
};
|
|
15235
15235
|
points.forEach((point, index2) => {
|
|
15236
|
-
const [
|
|
15236
|
+
const [x, y2] = point;
|
|
15237
15237
|
const tagName = index2 === 0 ? "wp:start" : "wp:lineTo";
|
|
15238
15238
|
const pointNode = {
|
|
15239
15239
|
name: tagName,
|
|
15240
15240
|
type: tagName,
|
|
15241
15241
|
attributes: {
|
|
15242
|
-
x: pixelsToPolygonUnits(
|
|
15242
|
+
x: pixelsToPolygonUnits(x),
|
|
15243
15243
|
y: pixelsToPolygonUnits(y2)
|
|
15244
15244
|
}
|
|
15245
15245
|
};
|
|
@@ -22585,13 +22585,17 @@ function canCut(node, start2, end2) {
|
|
|
22585
22585
|
function liftTarget(range2) {
|
|
22586
22586
|
let parent = range2.parent;
|
|
22587
22587
|
let content = parent.content.cutByIndex(range2.startIndex, range2.endIndex);
|
|
22588
|
-
for (let depth = range2.depth; ; --depth) {
|
|
22588
|
+
for (let depth = range2.depth, contentBefore = 0, contentAfter = 0; ; --depth) {
|
|
22589
22589
|
let node = range2.$from.node(depth);
|
|
22590
|
-
let index2 = range2.$from.index(depth), endIndex = range2.$to.indexAfter(depth);
|
|
22590
|
+
let index2 = range2.$from.index(depth) + contentBefore, endIndex = range2.$to.indexAfter(depth) - contentAfter;
|
|
22591
22591
|
if (depth < range2.depth && node.canReplace(index2, endIndex, content))
|
|
22592
22592
|
return depth;
|
|
22593
22593
|
if (depth == 0 || node.type.spec.isolating || !canCut(node, index2, endIndex))
|
|
22594
22594
|
break;
|
|
22595
|
+
if (index2)
|
|
22596
|
+
contentBefore = 1;
|
|
22597
|
+
if (endIndex < node.childCount)
|
|
22598
|
+
contentAfter = 1;
|
|
22595
22599
|
}
|
|
22596
22600
|
return null;
|
|
22597
22601
|
}
|
|
@@ -23102,7 +23106,7 @@ function replaceRange(tr, from2, to, slice2) {
|
|
|
23102
23106
|
let $from = tr.doc.resolve(from2), $to = tr.doc.resolve(to);
|
|
23103
23107
|
if (fitsTrivially($from, $to, slice2))
|
|
23104
23108
|
return tr.step(new ReplaceStep(from2, to, slice2));
|
|
23105
|
-
let targetDepths = coveredDepths($from,
|
|
23109
|
+
let targetDepths = coveredDepths($from, $to);
|
|
23106
23110
|
if (targetDepths[targetDepths.length - 1] == 0)
|
|
23107
23111
|
targetDepths.pop();
|
|
23108
23112
|
let preferredTarget = -($from.depth + 1);
|
|
@@ -24898,18 +24902,18 @@ const handleShapeGroup = (params2, node, graphicData, size2, padding, marginOffs
|
|
|
24898
24902
|
const rawY = shapeOff?.attributes?.["y"] ? parseFloat(shapeOff.attributes["y"]) : 0;
|
|
24899
24903
|
const rawWidth = shapeExt?.attributes?.["cx"] ? parseFloat(shapeExt.attributes["cx"]) : 914400;
|
|
24900
24904
|
const rawHeight = shapeExt?.attributes?.["cy"] ? parseFloat(shapeExt.attributes["cy"]) : 914400;
|
|
24901
|
-
let
|
|
24905
|
+
let x, y2, width, height;
|
|
24902
24906
|
if (groupTransform.childWidth && groupTransform.childHeight) {
|
|
24903
24907
|
const scaleX = groupTransform.width / groupTransform.childWidth;
|
|
24904
24908
|
const scaleY = groupTransform.height / groupTransform.childHeight;
|
|
24905
24909
|
const childOriginX = groupTransform.childOriginXEmu || 0;
|
|
24906
24910
|
const childOriginY = groupTransform.childOriginYEmu || 0;
|
|
24907
|
-
|
|
24911
|
+
x = groupTransform.x + emuToPixels((rawX - childOriginX) * scaleX);
|
|
24908
24912
|
y2 = groupTransform.y + emuToPixels((rawY - childOriginY) * scaleY);
|
|
24909
24913
|
width = emuToPixels(rawWidth * scaleX);
|
|
24910
24914
|
height = emuToPixels(rawHeight * scaleY);
|
|
24911
24915
|
} else {
|
|
24912
|
-
|
|
24916
|
+
x = emuToPixels(rawX);
|
|
24913
24917
|
y2 = emuToPixels(rawY);
|
|
24914
24918
|
width = emuToPixels(rawWidth);
|
|
24915
24919
|
height = emuToPixels(rawHeight);
|
|
@@ -24928,7 +24932,7 @@ const handleShapeGroup = (params2, node, graphicData, size2, padding, marginOffs
|
|
|
24928
24932
|
shapeType: "vectorShape",
|
|
24929
24933
|
attrs: {
|
|
24930
24934
|
kind: shapeKind,
|
|
24931
|
-
x
|
|
24935
|
+
x,
|
|
24932
24936
|
y: y2,
|
|
24933
24937
|
width,
|
|
24934
24938
|
height,
|
|
@@ -25550,7 +25554,7 @@ function posToDOMRect(view, from2, to) {
|
|
|
25550
25554
|
const right2 = Math.max(start2.right, end2.right);
|
|
25551
25555
|
const width = right2 - left2;
|
|
25552
25556
|
const height = bottom2 - top2;
|
|
25553
|
-
const
|
|
25557
|
+
const x = left2;
|
|
25554
25558
|
const y2 = top2;
|
|
25555
25559
|
const data = {
|
|
25556
25560
|
top: top2,
|
|
@@ -25559,7 +25563,7 @@ function posToDOMRect(view, from2, to) {
|
|
|
25559
25563
|
right: right2,
|
|
25560
25564
|
width,
|
|
25561
25565
|
height,
|
|
25562
|
-
x
|
|
25566
|
+
x,
|
|
25563
25567
|
y: y2
|
|
25564
25568
|
};
|
|
25565
25569
|
return {
|
|
@@ -28694,39 +28698,39 @@ function createDocFromHTML(content, editor, options = {}) {
|
|
|
28694
28698
|
function L() {
|
|
28695
28699
|
return { async: false, breaks: false, extensions: null, gfm: true, hooks: null, pedantic: false, renderer: null, silent: false, tokenizer: null, walkTokens: null };
|
|
28696
28700
|
}
|
|
28697
|
-
var
|
|
28698
|
-
function G(
|
|
28699
|
-
|
|
28701
|
+
var O = L();
|
|
28702
|
+
function G(l3) {
|
|
28703
|
+
O = l3;
|
|
28700
28704
|
}
|
|
28701
|
-
var
|
|
28702
|
-
function h(
|
|
28703
|
-
let t = typeof
|
|
28705
|
+
var E = { exec: () => null };
|
|
28706
|
+
function h(l3, e = "") {
|
|
28707
|
+
let t = typeof l3 == "string" ? l3 : l3.source, n = { replace: (r2, i) => {
|
|
28704
28708
|
let s2 = typeof i == "string" ? i : i.source;
|
|
28705
28709
|
return s2 = s2.replace(m.caret, "$1"), t = t.replace(r2, s2), n;
|
|
28706
28710
|
}, getRegex: () => new RegExp(t, e) };
|
|
28707
28711
|
return n;
|
|
28708
28712
|
}
|
|
28709
|
-
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: (
|
|
28710
|
-
]`).replace("lheading",
|
|
28711
|
-
var
|
|
28712
|
-
function w(
|
|
28713
|
+
var m = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ xX]\] +/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (l3) => new RegExp(`^( {0,3}${l3})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}#`), htmlBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}<(?:[a-z].*>|!--)`, "i") }, xe = /^(?:[ \t]*(?:\n|$))+/, be = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Re = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, C = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Oe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, j = /(?:[*+-]|\d{1,9}[.)])/, se = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ie$2 = h(se).replace(/bull/g, j).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Te = h(se).replace(/bull/g, j).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), F = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, we = /^[^\n]+/, Q = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, ye = h(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Q).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Pe = h(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, j).getRegex(), v = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", U = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Se = h("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", U).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), oe = h(F).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), $e = h(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", oe).getRegex(), K$1 = { blockquote: $e, code: be, def: ye, fences: Re, heading: Oe, hr: C, html: Se, lheading: ie$2, list: Pe, newline: xe, paragraph: oe, table: E, text: we }, re = h("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), _e = { ...K$1, lheading: Te, table: re, paragraph: h(F).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", re).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex() }, Le = { ...K$1, html: h(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", U).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: E, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: h(F).replace("hr", C).replace("heading", ` *#{1,6} *[^
|
|
28714
|
+
]`).replace("lheading", ie$2).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Me = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ze = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ae = /^( {2,}|\\)\n(?!\s*$)/, Ae = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, D = /[\p{P}\p{S}]/u, W = /[\s\p{P}\p{S}]/u, le = /[^\s\p{P}\p{S}]/u, Ee = h(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), ue = /(?!~)[\p{P}\p{S}]/u, Ce = /(?!~)[\s\p{P}\p{S}]/u, Ie = /(?:[^\s\p{P}\p{S}]|~)/u, Be = /\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g, pe = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, qe = h(pe, "u").replace(/punct/g, D).getRegex(), ve = h(pe, "u").replace(/punct/g, ue).getRegex(), ce = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", De = h(ce, "gu").replace(/notPunctSpace/g, le).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), He = h(ce, "gu").replace(/notPunctSpace/g, Ie).replace(/punctSpace/g, Ce).replace(/punct/g, ue).getRegex(), Ze = h("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, le).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ge = h(/\\(punct)/, "gu").replace(/punct/g, D).getRegex(), Ne = h(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), je = h(U).replace("(?:-->|$)", "-->").getRegex(), Fe = h("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", je).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/, Qe = h(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), he$3 = h(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", Q).getRegex(), de = h(/^!?\[(ref)\](?:\[\])?/).replace("ref", Q).getRegex(), Ue = h("reflink|nolink(?!\\()", "g").replace("reflink", he$3).replace("nolink", de).getRegex(), X = { _backpedal: E, anyPunctuation: Ge, autolink: Ne, blockSkip: Be, br: ae, code: ze, del: E, emStrongLDelim: qe, emStrongRDelimAst: De, emStrongRDelimUnd: Ze, escape: Me, link: Qe, nolink: de, punctuation: Ee, reflink: he$3, reflinkSearch: Ue, tag: Fe, text: Ae, url: E }, Ke = { ...X, link: h(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(), reflink: h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex() }, N = { ...X, emStrongRDelimAst: He, emStrongLDelim: ve, url: h(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/ }, We = { ...N, br: h(ae).replace("{2,}", "*").getRegex(), text: h(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, I = { normal: K$1, gfm: _e, pedantic: Le }, M$1 = { normal: X, gfm: N, breaks: We, pedantic: Ke };
|
|
28715
|
+
var Xe = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, ke = (l3) => Xe[l3];
|
|
28716
|
+
function w(l3, e) {
|
|
28713
28717
|
if (e) {
|
|
28714
|
-
if (m.escapeTest.test(
|
|
28715
|
-
} else if (m.escapeTestNoEncode.test(
|
|
28716
|
-
return
|
|
28718
|
+
if (m.escapeTest.test(l3)) return l3.replace(m.escapeReplace, ke);
|
|
28719
|
+
} else if (m.escapeTestNoEncode.test(l3)) return l3.replace(m.escapeReplaceNoEncode, ke);
|
|
28720
|
+
return l3;
|
|
28717
28721
|
}
|
|
28718
|
-
function J(
|
|
28722
|
+
function J(l3) {
|
|
28719
28723
|
try {
|
|
28720
|
-
|
|
28724
|
+
l3 = encodeURI(l3).replace(m.percentDecode, "%");
|
|
28721
28725
|
} catch {
|
|
28722
28726
|
return null;
|
|
28723
28727
|
}
|
|
28724
|
-
return
|
|
28728
|
+
return l3;
|
|
28725
28729
|
}
|
|
28726
|
-
function V(
|
|
28727
|
-
let t =
|
|
28728
|
-
let a = false,
|
|
28729
|
-
for (; --
|
|
28730
|
+
function V(l3, e) {
|
|
28731
|
+
let t = l3.replace(m.findPipe, (i, s2, o) => {
|
|
28732
|
+
let a = false, u = s2;
|
|
28733
|
+
for (; --u >= 0 && o[u] === "\\"; ) a = !a;
|
|
28730
28734
|
return a ? "|" : " |";
|
|
28731
28735
|
}), n = t.split(m.splitPipe), r2 = 0;
|
|
28732
28736
|
if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), e) if (n.length > e) n.splice(e);
|
|
@@ -28734,33 +28738,33 @@ function V(u3, e) {
|
|
|
28734
28738
|
for (; r2 < n.length; r2++) n[r2] = n[r2].trim().replace(m.slashPipe, "|");
|
|
28735
28739
|
return n;
|
|
28736
28740
|
}
|
|
28737
|
-
function z(
|
|
28738
|
-
let n =
|
|
28741
|
+
function z(l3, e, t) {
|
|
28742
|
+
let n = l3.length;
|
|
28739
28743
|
if (n === 0) return "";
|
|
28740
28744
|
let r2 = 0;
|
|
28741
28745
|
for (; r2 < n; ) {
|
|
28742
|
-
let i =
|
|
28746
|
+
let i = l3.charAt(n - r2 - 1);
|
|
28743
28747
|
if (i === e && true) r2++;
|
|
28744
28748
|
else break;
|
|
28745
28749
|
}
|
|
28746
|
-
return
|
|
28750
|
+
return l3.slice(0, n - r2);
|
|
28747
28751
|
}
|
|
28748
|
-
function
|
|
28749
|
-
if (
|
|
28752
|
+
function ge(l3, e) {
|
|
28753
|
+
if (l3.indexOf(e[1]) === -1) return -1;
|
|
28750
28754
|
let t = 0;
|
|
28751
|
-
for (let n = 0; n <
|
|
28752
|
-
else if (
|
|
28753
|
-
else if (
|
|
28755
|
+
for (let n = 0; n < l3.length; n++) if (l3[n] === "\\") n++;
|
|
28756
|
+
else if (l3[n] === e[0]) t++;
|
|
28757
|
+
else if (l3[n] === e[1] && (t--, t < 0)) return n;
|
|
28754
28758
|
return t > 0 ? -2 : -1;
|
|
28755
28759
|
}
|
|
28756
|
-
function
|
|
28757
|
-
let i = e.href, s2 = e.title || null, o =
|
|
28760
|
+
function fe(l3, e, t, n, r2) {
|
|
28761
|
+
let i = e.href, s2 = e.title || null, o = l3[1].replace(r2.other.outputLinkReplace, "$1");
|
|
28758
28762
|
n.state.inLink = true;
|
|
28759
|
-
let a = { type:
|
|
28763
|
+
let a = { type: l3[0].charAt(0) === "!" ? "image" : "link", raw: t, href: i, title: s2, text: o, tokens: n.inlineTokens(o) };
|
|
28760
28764
|
return n.state.inLink = false, a;
|
|
28761
28765
|
}
|
|
28762
|
-
function
|
|
28763
|
-
let n =
|
|
28766
|
+
function Je(l3, e, t) {
|
|
28767
|
+
let n = l3.match(t.other.indentCodeCompensation);
|
|
28764
28768
|
if (n === null) return e;
|
|
28765
28769
|
let r2 = n[1];
|
|
28766
28770
|
return e.split(`
|
|
@@ -28777,7 +28781,7 @@ var y = class {
|
|
|
28777
28781
|
__publicField$2(this, "options");
|
|
28778
28782
|
__publicField$2(this, "rules");
|
|
28779
28783
|
__publicField$2(this, "lexer");
|
|
28780
|
-
this.options = e ||
|
|
28784
|
+
this.options = e || O;
|
|
28781
28785
|
}
|
|
28782
28786
|
space(e) {
|
|
28783
28787
|
let t = this.rules.block.newline.exec(e);
|
|
@@ -28794,7 +28798,7 @@ var y = class {
|
|
|
28794
28798
|
fences(e) {
|
|
28795
28799
|
let t = this.rules.block.fences.exec(e);
|
|
28796
28800
|
if (t) {
|
|
28797
|
-
let n = t[0], r2 =
|
|
28801
|
+
let n = t[0], r2 = Je(n, t[3] || "", this.rules);
|
|
28798
28802
|
return { type: "code", raw: n, lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2], text: r2 };
|
|
28799
28803
|
}
|
|
28800
28804
|
}
|
|
@@ -28821,32 +28825,32 @@ var y = class {
|
|
|
28821
28825
|
`).split(`
|
|
28822
28826
|
`), r2 = "", i = "", s2 = [];
|
|
28823
28827
|
for (; n.length > 0; ) {
|
|
28824
|
-
let o = false, a = [],
|
|
28825
|
-
for (
|
|
28826
|
-
else if (!o) a.push(n[
|
|
28828
|
+
let o = false, a = [], u;
|
|
28829
|
+
for (u = 0; u < n.length; u++) if (this.rules.other.blockquoteStart.test(n[u])) a.push(n[u]), o = true;
|
|
28830
|
+
else if (!o) a.push(n[u]);
|
|
28827
28831
|
else break;
|
|
28828
|
-
n = n.slice(
|
|
28829
|
-
let
|
|
28830
|
-
`),
|
|
28832
|
+
n = n.slice(u);
|
|
28833
|
+
let p = a.join(`
|
|
28834
|
+
`), c2 = p.replace(this.rules.other.blockquoteSetextReplace, `
|
|
28831
28835
|
$1`).replace(this.rules.other.blockquoteSetextReplace2, "");
|
|
28832
28836
|
r2 = r2 ? `${r2}
|
|
28833
|
-
${
|
|
28834
|
-
${
|
|
28835
|
-
let
|
|
28836
|
-
if (this.lexer.state.top = true, this.lexer.blockTokens(
|
|
28837
|
-
let
|
|
28838
|
-
if (
|
|
28839
|
-
if (
|
|
28840
|
-
let
|
|
28837
|
+
${p}` : p, i = i ? `${i}
|
|
28838
|
+
${c2}` : c2;
|
|
28839
|
+
let f2 = this.lexer.state.top;
|
|
28840
|
+
if (this.lexer.state.top = true, this.lexer.blockTokens(c2, s2, true), this.lexer.state.top = f2, n.length === 0) break;
|
|
28841
|
+
let k2 = s2.at(-1);
|
|
28842
|
+
if (k2?.type === "code") break;
|
|
28843
|
+
if (k2?.type === "blockquote") {
|
|
28844
|
+
let x = k2, g = x.raw + `
|
|
28841
28845
|
` + n.join(`
|
|
28842
|
-
`),
|
|
28843
|
-
s2[s2.length - 1] =
|
|
28846
|
+
`), T = this.blockquote(g);
|
|
28847
|
+
s2[s2.length - 1] = T, r2 = r2.substring(0, r2.length - x.raw.length) + T.raw, i = i.substring(0, i.length - x.text.length) + T.text;
|
|
28844
28848
|
break;
|
|
28845
|
-
} else if (
|
|
28846
|
-
let
|
|
28849
|
+
} else if (k2?.type === "list") {
|
|
28850
|
+
let x = k2, g = x.raw + `
|
|
28847
28851
|
` + n.join(`
|
|
28848
|
-
`),
|
|
28849
|
-
s2[s2.length - 1] =
|
|
28852
|
+
`), T = this.list(g);
|
|
28853
|
+
s2[s2.length - 1] = T, r2 = r2.substring(0, r2.length - k2.raw.length) + T.raw, i = i.substring(0, i.length - x.raw.length) + T.raw, n = g.substring(s2.at(-1).raw.length).split(`
|
|
28850
28854
|
`);
|
|
28851
28855
|
continue;
|
|
28852
28856
|
}
|
|
@@ -28861,43 +28865,43 @@ ${p}` : p;
|
|
|
28861
28865
|
n = r2 ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r2 ? n : "[*+-]");
|
|
28862
28866
|
let s2 = this.rules.other.listItemRegex(n), o = false;
|
|
28863
28867
|
for (; e; ) {
|
|
28864
|
-
let
|
|
28868
|
+
let u = false, p = "", c2 = "";
|
|
28865
28869
|
if (!(t = s2.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
28866
|
-
|
|
28867
|
-
let
|
|
28868
|
-
`, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)),
|
|
28869
|
-
`, 1)[0],
|
|
28870
|
-
if (this.options.pedantic ? (
|
|
28871
|
-
`, e = e.substring(
|
|
28872
|
-
let H = this.rules.other.nextBulletRegex(
|
|
28870
|
+
p = t[0], e = e.substring(p.length);
|
|
28871
|
+
let f2 = t[2].split(`
|
|
28872
|
+
`, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)), k2 = e.split(`
|
|
28873
|
+
`, 1)[0], x = !f2.trim(), g = 0;
|
|
28874
|
+
if (this.options.pedantic ? (g = 2, c2 = f2.trimStart()) : x ? g = t[1].length + 1 : (g = t[2].search(this.rules.other.nonSpaceChar), g = g > 4 ? 1 : g, c2 = f2.slice(g), g += t[1].length), x && this.rules.other.blankLine.test(k2) && (p += k2 + `
|
|
28875
|
+
`, e = e.substring(k2.length + 1), u = true), !u) {
|
|
28876
|
+
let H = this.rules.other.nextBulletRegex(g), ee = this.rules.other.hrRegex(g), te = this.rules.other.fencesBeginRegex(g), ne = this.rules.other.headingBeginRegex(g), me = this.rules.other.htmlBeginRegex(g);
|
|
28873
28877
|
for (; e; ) {
|
|
28874
28878
|
let Z = e.split(`
|
|
28875
28879
|
`, 1)[0], A2;
|
|
28876
|
-
if (
|
|
28877
|
-
if (A2.search(this.rules.other.nonSpaceChar) >=
|
|
28878
|
-
` + A2.slice(
|
|
28880
|
+
if (k2 = Z, this.options.pedantic ? (k2 = k2.replace(this.rules.other.listReplaceNesting, " "), A2 = k2) : A2 = k2.replace(this.rules.other.tabCharGlobal, " "), te.test(k2) || ne.test(k2) || me.test(k2) || H.test(k2) || ee.test(k2)) break;
|
|
28881
|
+
if (A2.search(this.rules.other.nonSpaceChar) >= g || !k2.trim()) c2 += `
|
|
28882
|
+
` + A2.slice(g);
|
|
28879
28883
|
else {
|
|
28880
|
-
if (
|
|
28881
|
-
|
|
28882
|
-
` +
|
|
28884
|
+
if (x || f2.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || te.test(f2) || ne.test(f2) || ee.test(f2)) break;
|
|
28885
|
+
c2 += `
|
|
28886
|
+
` + k2;
|
|
28883
28887
|
}
|
|
28884
|
-
!
|
|
28885
|
-
`, e = e.substring(Z.length + 1),
|
|
28888
|
+
!x && !k2.trim() && (x = true), p += Z + `
|
|
28889
|
+
`, e = e.substring(Z.length + 1), f2 = A2.slice(g);
|
|
28886
28890
|
}
|
|
28887
28891
|
}
|
|
28888
|
-
i.loose || (o ? i.loose = true : this.rules.other.doubleBlankLine.test(
|
|
28889
|
-
let
|
|
28890
|
-
this.options.gfm && (
|
|
28892
|
+
i.loose || (o ? i.loose = true : this.rules.other.doubleBlankLine.test(p) && (o = true));
|
|
28893
|
+
let T = null, Y2;
|
|
28894
|
+
this.options.gfm && (T = this.rules.other.listIsTask.exec(c2), T && (Y2 = T[0] !== "[ ] ", c2 = c2.replace(this.rules.other.listReplaceTask, ""))), i.items.push({ type: "list_item", raw: p, task: !!T, checked: Y2, loose: false, text: c2, tokens: [] }), i.raw += p;
|
|
28891
28895
|
}
|
|
28892
28896
|
let a = i.items.at(-1);
|
|
28893
28897
|
if (a) a.raw = a.raw.trimEnd(), a.text = a.text.trimEnd();
|
|
28894
28898
|
else return;
|
|
28895
28899
|
i.raw = i.raw.trimEnd();
|
|
28896
|
-
for (let
|
|
28897
|
-
let
|
|
28898
|
-
i.loose =
|
|
28900
|
+
for (let u = 0; u < i.items.length; u++) if (this.lexer.state.top = false, i.items[u].tokens = this.lexer.blockTokens(i.items[u].text, []), !i.loose) {
|
|
28901
|
+
let p = i.items[u].tokens.filter((f2) => f2.type === "space"), c2 = p.length > 0 && p.some((f2) => this.rules.other.anyLine.test(f2.raw));
|
|
28902
|
+
i.loose = c2;
|
|
28899
28903
|
}
|
|
28900
|
-
if (i.loose) for (let
|
|
28904
|
+
if (i.loose) for (let u = 0; u < i.items.length; u++) i.items[u].loose = true;
|
|
28901
28905
|
return i;
|
|
28902
28906
|
}
|
|
28903
28907
|
}
|
|
@@ -28920,7 +28924,7 @@ ${p}` : p;
|
|
|
28920
28924
|
if (n.length === r2.length) {
|
|
28921
28925
|
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);
|
|
28922
28926
|
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] });
|
|
28923
|
-
for (let o of i) s2.rows.push(V(o, s2.header.length).map((a,
|
|
28927
|
+
for (let o of i) s2.rows.push(V(o, s2.header.length).map((a, u) => ({ text: a, tokens: this.lexer.inline(a), header: false, align: s2.align[u] })));
|
|
28924
28928
|
return s2;
|
|
28925
28929
|
}
|
|
28926
28930
|
}
|
|
@@ -28957,7 +28961,7 @@ ${p}` : p;
|
|
|
28957
28961
|
let s2 = z(n.slice(0, -1), "\\");
|
|
28958
28962
|
if ((n.length - s2.length) % 2 === 0) return;
|
|
28959
28963
|
} else {
|
|
28960
|
-
let s2 =
|
|
28964
|
+
let s2 = ge(t[2], "()");
|
|
28961
28965
|
if (s2 === -2) return;
|
|
28962
28966
|
if (s2 > -1) {
|
|
28963
28967
|
let a = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + s2;
|
|
@@ -28969,7 +28973,7 @@ ${p}` : p;
|
|
|
28969
28973
|
let s2 = this.rules.other.pedanticHrefTitle.exec(r2);
|
|
28970
28974
|
s2 && (r2 = s2[1], i = s2[3]);
|
|
28971
28975
|
} else i = t[3] ? t[3].slice(1, -1) : "";
|
|
28972
|
-
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)),
|
|
28976
|
+
return r2 = r2.trim(), this.rules.other.startAngleBracket.test(r2) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r2 = r2.slice(1) : r2 = r2.slice(1, -1)), fe(t, { href: r2 && r2.replace(this.rules.inline.anyPunctuation, "$1"), title: i && i.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
|
|
28973
28977
|
}
|
|
28974
28978
|
}
|
|
28975
28979
|
reflink(e, t) {
|
|
@@ -28980,32 +28984,32 @@ ${p}` : p;
|
|
|
28980
28984
|
let s2 = n[0].charAt(0);
|
|
28981
28985
|
return { type: "text", raw: s2, text: s2 };
|
|
28982
28986
|
}
|
|
28983
|
-
return
|
|
28987
|
+
return fe(n, i, n[0], this.lexer, this.rules);
|
|
28984
28988
|
}
|
|
28985
28989
|
}
|
|
28986
28990
|
emStrong(e, t, n = "") {
|
|
28987
28991
|
let r2 = this.rules.inline.emStrongLDelim.exec(e);
|
|
28988
28992
|
if (!r2 || r2[3] && n.match(this.rules.other.unicodeAlphaNumeric)) return;
|
|
28989
28993
|
if (!(r2[1] || r2[2] || "") || !n || this.rules.inline.punctuation.exec(n)) {
|
|
28990
|
-
let s2 = [...r2[0]].length - 1, o, a,
|
|
28991
|
-
for (
|
|
28994
|
+
let s2 = [...r2[0]].length - 1, o, a, u = s2, p = 0, c2 = r2[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
|
28995
|
+
for (c2.lastIndex = 0, t = t.slice(-1 * e.length + s2); (r2 = c2.exec(t)) != null; ) {
|
|
28992
28996
|
if (o = r2[1] || r2[2] || r2[3] || r2[4] || r2[5] || r2[6], !o) continue;
|
|
28993
28997
|
if (a = [...o].length, r2[3] || r2[4]) {
|
|
28994
|
-
|
|
28998
|
+
u += a;
|
|
28995
28999
|
continue;
|
|
28996
29000
|
} else if ((r2[5] || r2[6]) && s2 % 3 && !((s2 + a) % 3)) {
|
|
28997
|
-
|
|
29001
|
+
p += a;
|
|
28998
29002
|
continue;
|
|
28999
29003
|
}
|
|
29000
|
-
if (
|
|
29001
|
-
a = Math.min(a, a +
|
|
29002
|
-
let
|
|
29004
|
+
if (u -= a, u > 0) continue;
|
|
29005
|
+
a = Math.min(a, a + u + p);
|
|
29006
|
+
let f2 = [...r2[0]][0].length, k2 = e.slice(0, s2 + r2.index + f2 + a);
|
|
29003
29007
|
if (Math.min(s2, a) % 2) {
|
|
29004
|
-
let
|
|
29005
|
-
return { type: "em", raw:
|
|
29008
|
+
let g = k2.slice(1, -1);
|
|
29009
|
+
return { type: "em", raw: k2, text: g, tokens: this.lexer.inlineTokens(g) };
|
|
29006
29010
|
}
|
|
29007
|
-
let
|
|
29008
|
-
return { type: "strong", raw:
|
|
29011
|
+
let x = k2.slice(2, -2);
|
|
29012
|
+
return { type: "strong", raw: k2, text: x, tokens: this.lexer.inlineTokens(x) };
|
|
29009
29013
|
}
|
|
29010
29014
|
}
|
|
29011
29015
|
}
|
|
@@ -29054,25 +29058,25 @@ ${p}` : p;
|
|
|
29054
29058
|
}
|
|
29055
29059
|
}
|
|
29056
29060
|
};
|
|
29057
|
-
var
|
|
29061
|
+
var b = class l {
|
|
29058
29062
|
constructor(e) {
|
|
29059
29063
|
__publicField$2(this, "tokens");
|
|
29060
29064
|
__publicField$2(this, "options");
|
|
29061
29065
|
__publicField$2(this, "state");
|
|
29062
29066
|
__publicField$2(this, "tokenizer");
|
|
29063
29067
|
__publicField$2(this, "inlineQueue");
|
|
29064
|
-
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e ||
|
|
29065
|
-
let t = { other: m, block:
|
|
29066
|
-
this.options.pedantic ? (t.block =
|
|
29068
|
+
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || O, this.options.tokenizer = this.options.tokenizer || new y(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: false, inRawBlock: false, top: true };
|
|
29069
|
+
let t = { other: m, block: I.normal, inline: M$1.normal };
|
|
29070
|
+
this.options.pedantic ? (t.block = I.pedantic, t.inline = M$1.pedantic) : this.options.gfm && (t.block = I.gfm, this.options.breaks ? t.inline = M$1.breaks : t.inline = M$1.gfm), this.tokenizer.rules = t;
|
|
29067
29071
|
}
|
|
29068
29072
|
static get rules() {
|
|
29069
|
-
return { block:
|
|
29073
|
+
return { block: I, inline: M$1 };
|
|
29070
29074
|
}
|
|
29071
29075
|
static lex(e, t) {
|
|
29072
|
-
return new
|
|
29076
|
+
return new l(t).lex(e);
|
|
29073
29077
|
}
|
|
29074
29078
|
static lexInline(e, t) {
|
|
29075
|
-
return new
|
|
29079
|
+
return new l(t).inlineTokens(e);
|
|
29076
29080
|
}
|
|
29077
29081
|
lex(e) {
|
|
29078
29082
|
e = e.replace(m.carriageReturn, `
|
|
@@ -29147,8 +29151,8 @@ var x = class u {
|
|
|
29147
29151
|
let i = e;
|
|
29148
29152
|
if (this.options.extensions?.startBlock) {
|
|
29149
29153
|
let s2 = 1 / 0, o = e.slice(1), a;
|
|
29150
|
-
this.options.extensions.startBlock.forEach((
|
|
29151
|
-
a =
|
|
29154
|
+
this.options.extensions.startBlock.forEach((u) => {
|
|
29155
|
+
a = u.call({ lexer: this }, o), typeof a == "number" && a >= 0 && (s2 = Math.min(s2, a));
|
|
29152
29156
|
}), s2 < 1 / 0 && s2 >= 0 && (i = e.substring(0, s2 + 1));
|
|
29153
29157
|
}
|
|
29154
29158
|
if (this.state.top && (r2 = this.tokenizer.paragraph(i))) {
|
|
@@ -29194,7 +29198,7 @@ var x = class u {
|
|
|
29194
29198
|
for (; e; ) {
|
|
29195
29199
|
i || (s2 = ""), i = false;
|
|
29196
29200
|
let o;
|
|
29197
|
-
if (this.options.extensions?.inline?.some((
|
|
29201
|
+
if (this.options.extensions?.inline?.some((u) => (o = u.call({ lexer: this }, e, t)) ? (e = e.substring(o.raw.length), t.push(o), true) : false)) continue;
|
|
29198
29202
|
if (o = this.tokenizer.escape(e)) {
|
|
29199
29203
|
e = e.substring(o.raw.length), t.push(o);
|
|
29200
29204
|
continue;
|
|
@@ -29209,8 +29213,8 @@ var x = class u {
|
|
|
29209
29213
|
}
|
|
29210
29214
|
if (o = this.tokenizer.reflink(e, this.tokens.links)) {
|
|
29211
29215
|
e = e.substring(o.raw.length);
|
|
29212
|
-
let
|
|
29213
|
-
o.type === "text" &&
|
|
29216
|
+
let u = t.at(-1);
|
|
29217
|
+
o.type === "text" && u?.type === "text" ? (u.raw += o.raw, u.text += o.text) : t.push(o);
|
|
29214
29218
|
continue;
|
|
29215
29219
|
}
|
|
29216
29220
|
if (o = this.tokenizer.emStrong(e, n, s2)) {
|
|
@@ -29239,23 +29243,23 @@ var x = class u {
|
|
|
29239
29243
|
}
|
|
29240
29244
|
let a = e;
|
|
29241
29245
|
if (this.options.extensions?.startInline) {
|
|
29242
|
-
let
|
|
29243
|
-
this.options.extensions.startInline.forEach((
|
|
29244
|
-
|
|
29245
|
-
}),
|
|
29246
|
+
let u = 1 / 0, p = e.slice(1), c2;
|
|
29247
|
+
this.options.extensions.startInline.forEach((f2) => {
|
|
29248
|
+
c2 = f2.call({ lexer: this }, p), typeof c2 == "number" && c2 >= 0 && (u = Math.min(u, c2));
|
|
29249
|
+
}), u < 1 / 0 && u >= 0 && (a = e.substring(0, u + 1));
|
|
29246
29250
|
}
|
|
29247
29251
|
if (o = this.tokenizer.inlineText(a)) {
|
|
29248
29252
|
e = e.substring(o.raw.length), o.raw.slice(-1) !== "_" && (s2 = o.raw.slice(-1)), i = true;
|
|
29249
|
-
let
|
|
29250
|
-
|
|
29253
|
+
let u = t.at(-1);
|
|
29254
|
+
u?.type === "text" ? (u.raw += o.raw, u.text += o.text) : t.push(o);
|
|
29251
29255
|
continue;
|
|
29252
29256
|
}
|
|
29253
29257
|
if (e) {
|
|
29254
|
-
let
|
|
29258
|
+
let u = "Infinite loop on byte: " + e.charCodeAt(0);
|
|
29255
29259
|
if (this.options.silent) {
|
|
29256
|
-
console.error(
|
|
29260
|
+
console.error(u);
|
|
29257
29261
|
break;
|
|
29258
|
-
} else throw new Error(
|
|
29262
|
+
} else throw new Error(u);
|
|
29259
29263
|
}
|
|
29260
29264
|
}
|
|
29261
29265
|
return t;
|
|
@@ -29265,7 +29269,7 @@ var P = class {
|
|
|
29265
29269
|
constructor(e) {
|
|
29266
29270
|
__publicField$2(this, "options");
|
|
29267
29271
|
__publicField$2(this, "parser");
|
|
29268
|
-
this.options = e ||
|
|
29272
|
+
this.options = e || O;
|
|
29269
29273
|
}
|
|
29270
29274
|
space(e) {
|
|
29271
29275
|
return "";
|
|
@@ -29413,18 +29417,18 @@ var $ = class {
|
|
|
29413
29417
|
return "";
|
|
29414
29418
|
}
|
|
29415
29419
|
};
|
|
29416
|
-
var
|
|
29420
|
+
var R = class l2 {
|
|
29417
29421
|
constructor(e) {
|
|
29418
29422
|
__publicField$2(this, "options");
|
|
29419
29423
|
__publicField$2(this, "renderer");
|
|
29420
29424
|
__publicField$2(this, "textRenderer");
|
|
29421
|
-
this.options = e ||
|
|
29425
|
+
this.options = e || O, this.options.renderer = this.options.renderer || new P(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new $();
|
|
29422
29426
|
}
|
|
29423
29427
|
static parse(e, t) {
|
|
29424
|
-
return new
|
|
29428
|
+
return new l2(t).parse(e);
|
|
29425
29429
|
}
|
|
29426
29430
|
static parseInline(e, t) {
|
|
29427
|
-
return new
|
|
29431
|
+
return new l2(t).parseInline(e);
|
|
29428
29432
|
}
|
|
29429
29433
|
parse(e, t = true) {
|
|
29430
29434
|
let n = "";
|
|
@@ -29562,7 +29566,7 @@ var S = (_a = class {
|
|
|
29562
29566
|
constructor(e) {
|
|
29563
29567
|
__publicField$2(this, "options");
|
|
29564
29568
|
__publicField$2(this, "block");
|
|
29565
|
-
this.options = e ||
|
|
29569
|
+
this.options = e || O;
|
|
29566
29570
|
}
|
|
29567
29571
|
preprocess(e) {
|
|
29568
29572
|
return e;
|
|
@@ -29577,10 +29581,10 @@ var S = (_a = class {
|
|
|
29577
29581
|
return e;
|
|
29578
29582
|
}
|
|
29579
29583
|
provideLexer() {
|
|
29580
|
-
return this.block ?
|
|
29584
|
+
return this.block ? b.lex : b.lexInline;
|
|
29581
29585
|
}
|
|
29582
29586
|
provideParser() {
|
|
29583
|
-
return this.block ?
|
|
29587
|
+
return this.block ? R.parse : R.parseInline;
|
|
29584
29588
|
}
|
|
29585
29589
|
}, __publicField$2(_a, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), __publicField$2(_a, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), _a);
|
|
29586
29590
|
var B = class {
|
|
@@ -29589,10 +29593,10 @@ var B = class {
|
|
|
29589
29593
|
__publicField$2(this, "options", this.setOptions);
|
|
29590
29594
|
__publicField$2(this, "parse", this.parseMarkdown(true));
|
|
29591
29595
|
__publicField$2(this, "parseInline", this.parseMarkdown(false));
|
|
29592
|
-
__publicField$2(this, "Parser",
|
|
29596
|
+
__publicField$2(this, "Parser", R);
|
|
29593
29597
|
__publicField$2(this, "Renderer", P);
|
|
29594
29598
|
__publicField$2(this, "TextRenderer", $);
|
|
29595
|
-
__publicField$2(this, "Lexer",
|
|
29599
|
+
__publicField$2(this, "Lexer", b);
|
|
29596
29600
|
__publicField$2(this, "Tokenizer", y);
|
|
29597
29601
|
__publicField$2(this, "Hooks", S);
|
|
29598
29602
|
this.use(...e);
|
|
@@ -29645,10 +29649,10 @@ var B = class {
|
|
|
29645
29649
|
for (let s2 in n.renderer) {
|
|
29646
29650
|
if (!(s2 in i)) throw new Error(`renderer '${s2}' does not exist`);
|
|
29647
29651
|
if (["options", "parser"].includes(s2)) continue;
|
|
29648
|
-
let o = s2, a = n.renderer[o],
|
|
29649
|
-
i[o] = (...
|
|
29650
|
-
let
|
|
29651
|
-
return
|
|
29652
|
+
let o = s2, a = n.renderer[o], u = i[o];
|
|
29653
|
+
i[o] = (...p) => {
|
|
29654
|
+
let c2 = a.apply(i, p);
|
|
29655
|
+
return c2 === false && (c2 = u.apply(i, p)), c2 || "";
|
|
29652
29656
|
};
|
|
29653
29657
|
}
|
|
29654
29658
|
r2.renderer = i;
|
|
@@ -29658,10 +29662,10 @@ var B = class {
|
|
|
29658
29662
|
for (let s2 in n.tokenizer) {
|
|
29659
29663
|
if (!(s2 in i)) throw new Error(`tokenizer '${s2}' does not exist`);
|
|
29660
29664
|
if (["options", "rules", "lexer"].includes(s2)) continue;
|
|
29661
|
-
let o = s2, a = n.tokenizer[o],
|
|
29662
|
-
i[o] = (...
|
|
29663
|
-
let
|
|
29664
|
-
return
|
|
29665
|
+
let o = s2, a = n.tokenizer[o], u = i[o];
|
|
29666
|
+
i[o] = (...p) => {
|
|
29667
|
+
let c2 = a.apply(i, p);
|
|
29668
|
+
return c2 === false && (c2 = u.apply(i, p)), c2;
|
|
29665
29669
|
};
|
|
29666
29670
|
}
|
|
29667
29671
|
r2.tokenizer = i;
|
|
@@ -29671,21 +29675,14 @@ var B = class {
|
|
|
29671
29675
|
for (let s2 in n.hooks) {
|
|
29672
29676
|
if (!(s2 in i)) throw new Error(`hook '${s2}' does not exist`);
|
|
29673
29677
|
if (["options", "block"].includes(s2)) continue;
|
|
29674
|
-
let o = s2, a = n.hooks[o],
|
|
29675
|
-
S.passThroughHooks.has(s2) ? i[o] = (
|
|
29676
|
-
if (this.defaults.async && S.passThroughHooksRespectAsync.has(s2)) return (
|
|
29677
|
-
|
|
29678
|
-
|
|
29679
|
-
|
|
29680
|
-
let
|
|
29681
|
-
return
|
|
29682
|
-
} : i[o] = (...c2) => {
|
|
29683
|
-
if (this.defaults.async) return (async () => {
|
|
29684
|
-
let g = await a.apply(i, c2);
|
|
29685
|
-
return g === false && (g = await l.apply(i, c2)), g;
|
|
29686
|
-
})();
|
|
29687
|
-
let p = a.apply(i, c2);
|
|
29688
|
-
return p === false && (p = l.apply(i, c2)), p;
|
|
29678
|
+
let o = s2, a = n.hooks[o], u = i[o];
|
|
29679
|
+
S.passThroughHooks.has(s2) ? i[o] = (p) => {
|
|
29680
|
+
if (this.defaults.async && S.passThroughHooksRespectAsync.has(s2)) return Promise.resolve(a.call(i, p)).then((f2) => u.call(i, f2));
|
|
29681
|
+
let c2 = a.call(i, p);
|
|
29682
|
+
return u.call(i, c2);
|
|
29683
|
+
} : i[o] = (...p) => {
|
|
29684
|
+
let c2 = a.apply(i, p);
|
|
29685
|
+
return c2 === false && (c2 = u.apply(i, p)), c2;
|
|
29689
29686
|
};
|
|
29690
29687
|
}
|
|
29691
29688
|
r2.hooks = i;
|
|
@@ -29704,10 +29701,10 @@ var B = class {
|
|
|
29704
29701
|
return this.defaults = { ...this.defaults, ...e }, this;
|
|
29705
29702
|
}
|
|
29706
29703
|
lexer(e, t) {
|
|
29707
|
-
return
|
|
29704
|
+
return b.lex(e, t ?? this.defaults);
|
|
29708
29705
|
}
|
|
29709
29706
|
parser(e, t) {
|
|
29710
|
-
return
|
|
29707
|
+
return R.parse(e, t ?? this.defaults);
|
|
29711
29708
|
}
|
|
29712
29709
|
parseMarkdown(e) {
|
|
29713
29710
|
return (n, r2) => {
|
|
@@ -29715,20 +29712,17 @@ var B = class {
|
|
|
29715
29712
|
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."));
|
|
29716
29713
|
if (typeof n > "u" || n === null) return o(new Error("marked(): input parameter is undefined or null"));
|
|
29717
29714
|
if (typeof n != "string") return o(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
|
|
29718
|
-
|
|
29719
|
-
|
|
29720
|
-
|
|
29721
|
-
let d2 = await (s2.hooks ? await s2.hooks.provideParser() : e ? b.parse : b.parseInline)(p, s2);
|
|
29722
|
-
return s2.hooks ? await s2.hooks.postprocess(d2) : d2;
|
|
29723
|
-
})().catch(o);
|
|
29715
|
+
s2.hooks && (s2.hooks.options = s2, s2.hooks.block = e);
|
|
29716
|
+
let a = s2.hooks ? s2.hooks.provideLexer() : e ? b.lex : b.lexInline, u = s2.hooks ? s2.hooks.provideParser() : e ? R.parse : R.parseInline;
|
|
29717
|
+
if (s2.async) return Promise.resolve(s2.hooks ? s2.hooks.preprocess(n) : n).then((p) => a(p, s2)).then((p) => s2.hooks ? s2.hooks.processAllTokens(p) : p).then((p) => s2.walkTokens ? Promise.all(this.walkTokens(p, s2.walkTokens)).then(() => p) : p).then((p) => u(p, s2)).then((p) => s2.hooks ? s2.hooks.postprocess(p) : p).catch(o);
|
|
29724
29718
|
try {
|
|
29725
29719
|
s2.hooks && (n = s2.hooks.preprocess(n));
|
|
29726
|
-
let
|
|
29727
|
-
s2.hooks && (
|
|
29728
|
-
let
|
|
29729
|
-
return s2.hooks && (
|
|
29730
|
-
} catch (
|
|
29731
|
-
return o(
|
|
29720
|
+
let p = a(n, s2);
|
|
29721
|
+
s2.hooks && (p = s2.hooks.processAllTokens(p)), s2.walkTokens && this.walkTokens(p, s2.walkTokens);
|
|
29722
|
+
let c2 = u(p, s2);
|
|
29723
|
+
return s2.hooks && (c2 = s2.hooks.postprocess(c2)), c2;
|
|
29724
|
+
} catch (p) {
|
|
29725
|
+
return o(p);
|
|
29732
29726
|
}
|
|
29733
29727
|
};
|
|
29734
29728
|
}
|
|
@@ -29745,38 +29739,38 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
29745
29739
|
}
|
|
29746
29740
|
};
|
|
29747
29741
|
var _ = new B();
|
|
29748
|
-
function
|
|
29749
|
-
return _.parse(
|
|
29750
|
-
}
|
|
29751
|
-
|
|
29752
|
-
return _.setOptions(
|
|
29753
|
-
};
|
|
29754
|
-
|
|
29755
|
-
|
|
29756
|
-
|
|
29757
|
-
return _.use(...
|
|
29758
|
-
};
|
|
29759
|
-
|
|
29760
|
-
return _.walkTokens(
|
|
29761
|
-
};
|
|
29762
|
-
|
|
29763
|
-
|
|
29764
|
-
|
|
29765
|
-
|
|
29766
|
-
|
|
29767
|
-
|
|
29768
|
-
|
|
29769
|
-
|
|
29770
|
-
|
|
29771
|
-
|
|
29772
|
-
|
|
29773
|
-
|
|
29774
|
-
|
|
29775
|
-
|
|
29776
|
-
|
|
29777
|
-
|
|
29778
|
-
|
|
29779
|
-
|
|
29742
|
+
function d$1(l3, e) {
|
|
29743
|
+
return _.parse(l3, e);
|
|
29744
|
+
}
|
|
29745
|
+
d$1.options = d$1.setOptions = function(l3) {
|
|
29746
|
+
return _.setOptions(l3), d$1.defaults = _.defaults, G(d$1.defaults), d$1;
|
|
29747
|
+
};
|
|
29748
|
+
d$1.getDefaults = L;
|
|
29749
|
+
d$1.defaults = O;
|
|
29750
|
+
d$1.use = function(...l3) {
|
|
29751
|
+
return _.use(...l3), d$1.defaults = _.defaults, G(d$1.defaults), d$1;
|
|
29752
|
+
};
|
|
29753
|
+
d$1.walkTokens = function(l3, e) {
|
|
29754
|
+
return _.walkTokens(l3, e);
|
|
29755
|
+
};
|
|
29756
|
+
d$1.parseInline = _.parseInline;
|
|
29757
|
+
d$1.Parser = R;
|
|
29758
|
+
d$1.parser = R.parse;
|
|
29759
|
+
d$1.Renderer = P;
|
|
29760
|
+
d$1.TextRenderer = $;
|
|
29761
|
+
d$1.Lexer = b;
|
|
29762
|
+
d$1.lexer = b.lex;
|
|
29763
|
+
d$1.Tokenizer = y;
|
|
29764
|
+
d$1.Hooks = S;
|
|
29765
|
+
d$1.parse = d$1;
|
|
29766
|
+
d$1.options;
|
|
29767
|
+
d$1.setOptions;
|
|
29768
|
+
d$1.use;
|
|
29769
|
+
d$1.walkTokens;
|
|
29770
|
+
d$1.parseInline;
|
|
29771
|
+
R.parse;
|
|
29772
|
+
b.lex;
|
|
29773
|
+
d$1.use({
|
|
29780
29774
|
breaks: false,
|
|
29781
29775
|
// Use proper paragraphs, not <br> tags
|
|
29782
29776
|
gfm: true
|
|
@@ -29787,7 +29781,7 @@ function createDocFromMarkdown(markdown, editor, options = {}) {
|
|
|
29787
29781
|
return createDocFromHTML(html, editor, options);
|
|
29788
29782
|
}
|
|
29789
29783
|
function convertMarkdownToHTML(markdown) {
|
|
29790
|
-
let html =
|
|
29784
|
+
let html = d$1.parse(markdown, { async: false });
|
|
29791
29785
|
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");
|
|
29792
29786
|
}
|
|
29793
29787
|
function processContent({ content, type: type2, editor }) {
|
|
@@ -30473,9 +30467,9 @@ var hasRequiredHe;
|
|
|
30473
30467
|
function requireHe() {
|
|
30474
30468
|
if (hasRequiredHe) return he$2.exports;
|
|
30475
30469
|
hasRequiredHe = 1;
|
|
30476
|
-
(function(module2,
|
|
30470
|
+
(function(module2, exports$1) {
|
|
30477
30471
|
(function(root2) {
|
|
30478
|
-
var freeExports2 =
|
|
30472
|
+
var freeExports2 = exports$1;
|
|
30479
30473
|
var freeModule2 = module2 && module2.exports == freeExports2 && module2;
|
|
30480
30474
|
var freeGlobal2 = typeof commonjsGlobal == "object" && commonjsGlobal;
|
|
30481
30475
|
if (freeGlobal2.global === freeGlobal2 || freeGlobal2.window === freeGlobal2) {
|
|
@@ -35252,7 +35246,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
35252
35246
|
static getStoredSuperdocVersion(docx) {
|
|
35253
35247
|
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
35254
35248
|
}
|
|
35255
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.30.0-next.
|
|
35249
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.30.0-next.5") {
|
|
35256
35250
|
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
35257
35251
|
}
|
|
35258
35252
|
/**
|
|
@@ -35646,7 +35640,7 @@ prepareCommentsXmlFilesForExport_fn = function({ defs, exportType, commentsWithP
|
|
|
35646
35640
|
};
|
|
35647
35641
|
exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
|
|
35648
35642
|
const relsData = this.convertedXml["word/_rels/document.xml.rels"];
|
|
35649
|
-
const relationships = relsData.elements.find((
|
|
35643
|
+
const relationships = relsData.elements.find((x) => x.name === "Relationships");
|
|
35650
35644
|
const newDocRels = [];
|
|
35651
35645
|
Object.entries(this.headers).forEach(([id, header], index2) => {
|
|
35652
35646
|
const fileName = relationships.elements.find((el) => el.attributes.Id === id)?.attributes.Target || `header${index2 + 1}.xml`;
|
|
@@ -35687,7 +35681,7 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
|
|
|
35687
35681
|
}
|
|
35688
35682
|
this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
|
|
35689
35683
|
if (params2.relationships.length) {
|
|
35690
|
-
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((
|
|
35684
|
+
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x) => x.name === "Relationships")?.elements || [];
|
|
35691
35685
|
this.convertedXml[`word/_rels/${fileName}.rels`] = {
|
|
35692
35686
|
declaration: this.initialJSON?.declaration,
|
|
35693
35687
|
elements: [
|
|
@@ -35741,7 +35735,7 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
|
|
|
35741
35735
|
}
|
|
35742
35736
|
this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
|
|
35743
35737
|
if (params2.relationships.length) {
|
|
35744
|
-
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((
|
|
35738
|
+
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x) => x.name === "Relationships")?.elements || [];
|
|
35745
35739
|
this.convertedXml[`word/_rels/${fileName}.rels`] = {
|
|
35746
35740
|
declaration: this.initialJSON?.declaration,
|
|
35747
35741
|
elements: [
|
|
@@ -35760,7 +35754,7 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
|
|
|
35760
35754
|
};
|
|
35761
35755
|
exportProcessNewRelationships_fn = function(rels = []) {
|
|
35762
35756
|
const relsData = this.convertedXml["word/_rels/document.xml.rels"];
|
|
35763
|
-
const relationships = relsData.elements.find((
|
|
35757
|
+
const relationships = relsData.elements.find((x) => x.name === "Relationships");
|
|
35764
35758
|
relationships.elements = mergeRelationshipElements(relationships.elements, rels);
|
|
35765
35759
|
};
|
|
35766
35760
|
exportProcessMediaFiles_fn = async function(media = {}) {
|
|
@@ -35840,42 +35834,42 @@ var hasRequiredJszip_min;
|
|
|
35840
35834
|
function requireJszip_min() {
|
|
35841
35835
|
if (hasRequiredJszip_min) return jszip_min.exports;
|
|
35842
35836
|
hasRequiredJszip_min = 1;
|
|
35843
|
-
(function(module2,
|
|
35837
|
+
(function(module2, exports$1) {
|
|
35844
35838
|
!(function(e) {
|
|
35845
35839
|
module2.exports = e();
|
|
35846
35840
|
})(function() {
|
|
35847
35841
|
return (function s2(a, o, h2) {
|
|
35848
|
-
function
|
|
35842
|
+
function u(r2, e2) {
|
|
35849
35843
|
if (!o[r2]) {
|
|
35850
35844
|
if (!a[r2]) {
|
|
35851
35845
|
var t = "function" == typeof commonjsRequire && commonjsRequire;
|
|
35852
35846
|
if (!e2 && t) return t(r2, true);
|
|
35853
|
-
if (
|
|
35847
|
+
if (l3) return l3(r2, true);
|
|
35854
35848
|
var n = new Error("Cannot find module '" + r2 + "'");
|
|
35855
35849
|
throw n.code = "MODULE_NOT_FOUND", n;
|
|
35856
35850
|
}
|
|
35857
35851
|
var i = o[r2] = { exports: {} };
|
|
35858
35852
|
a[r2][0].call(i.exports, function(e3) {
|
|
35859
35853
|
var t2 = a[r2][1][e3];
|
|
35860
|
-
return
|
|
35854
|
+
return u(t2 || e3);
|
|
35861
35855
|
}, i, i.exports, s2, a, o, h2);
|
|
35862
35856
|
}
|
|
35863
35857
|
return o[r2].exports;
|
|
35864
35858
|
}
|
|
35865
|
-
for (var
|
|
35866
|
-
return
|
|
35859
|
+
for (var l3 = "function" == typeof commonjsRequire && commonjsRequire, e = 0; e < h2.length; e++) u(h2[e]);
|
|
35860
|
+
return u;
|
|
35867
35861
|
})({ 1: [function(e, t, r2) {
|
|
35868
35862
|
var d2 = e("./utils"), c2 = e("./support"), p = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
35869
35863
|
r2.encode = function(e2) {
|
|
35870
|
-
for (var t2, r22, n, i, s2, a, o, h2 = [],
|
|
35864
|
+
for (var t2, r22, n, i, s2, a, o, h2 = [], u = 0, l3 = e2.length, f2 = l3, c22 = "string" !== d2.getTypeOf(e2); u < e2.length; ) f2 = l3 - u, n = c22 ? (t2 = e2[u++], r22 = u < l3 ? e2[u++] : 0, u < l3 ? e2[u++] : 0) : (t2 = e2.charCodeAt(u++), r22 = u < l3 ? e2.charCodeAt(u++) : 0, u < l3 ? e2.charCodeAt(u++) : 0), i = t2 >> 2, s2 = (3 & t2) << 4 | r22 >> 4, a = 1 < f2 ? (15 & r22) << 2 | n >> 6 : 64, o = 2 < f2 ? 63 & n : 64, h2.push(p.charAt(i) + p.charAt(s2) + p.charAt(a) + p.charAt(o));
|
|
35871
35865
|
return h2.join("");
|
|
35872
35866
|
}, r2.decode = function(e2) {
|
|
35873
|
-
var t2, r22, n, i, s2, a, o = 0, h2 = 0,
|
|
35874
|
-
if (e2.substr(0,
|
|
35875
|
-
var
|
|
35867
|
+
var t2, r22, n, i, s2, a, o = 0, h2 = 0, u = "data:";
|
|
35868
|
+
if (e2.substr(0, u.length) === u) throw new Error("Invalid base64 input, it looks like a data url.");
|
|
35869
|
+
var l3, f2 = 3 * (e2 = e2.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
|
|
35876
35870
|
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.");
|
|
35877
|
-
for (
|
|
35878
|
-
return
|
|
35871
|
+
for (l3 = c2.uint8array ? new Uint8Array(0 | f2) : new Array(0 | f2); o < e2.length; ) t2 = p.indexOf(e2.charAt(o++)) << 2 | (i = p.indexOf(e2.charAt(o++))) >> 4, r22 = (15 & i) << 4 | (s2 = p.indexOf(e2.charAt(o++))) >> 2, n = (3 & s2) << 6 | (a = p.indexOf(e2.charAt(o++))), l3[h2++] = t2, 64 !== s2 && (l3[h2++] = r22), 64 !== a && (l3[h2++] = n);
|
|
35872
|
+
return l3;
|
|
35879
35873
|
};
|
|
35880
35874
|
}, { "./support": 30, "./utils": 32 }], 2: [function(e, t, r2) {
|
|
35881
35875
|
var n = e("./external"), i = e("./stream/DataWorker"), s2 = e("./stream/Crc32Probe"), a = e("./stream/DataLengthProbe");
|
|
@@ -35956,10 +35950,10 @@ function requireJszip_min() {
|
|
|
35956
35950
|
return n2;
|
|
35957
35951
|
}
|
|
35958
35952
|
function n(e2, t2, r22, n2, i2, s22) {
|
|
35959
|
-
var a, o, h2 = e2.file,
|
|
35960
|
-
t2 && !r22 || (
|
|
35953
|
+
var a, o, h2 = e2.file, u = e2.compression, l3 = s22 !== O2.utf8encode, f2 = I2.transformTo("string", s22(h2.name)), c2 = I2.transformTo("string", O2.utf8encode(h2.name)), d2 = h2.comment, p = I2.transformTo("string", s22(d2)), m2 = I2.transformTo("string", O2.utf8encode(d2)), _2 = c2.length !== h2.name.length, g = m2.length !== d2.length, b2 = "", v2 = "", y2 = "", w2 = h2.dir, k2 = h2.date, x = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
35954
|
+
t2 && !r22 || (x.crc32 = e2.crc32, x.compressedSize = e2.compressedSize, x.uncompressedSize = e2.uncompressedSize);
|
|
35961
35955
|
var S2 = 0;
|
|
35962
|
-
t2 && (S2 |= 8),
|
|
35956
|
+
t2 && (S2 |= 8), l3 || !_2 && !g || (S2 |= 2048);
|
|
35963
35957
|
var z2 = 0, C2 = 0;
|
|
35964
35958
|
w2 && (z2 |= 16), "UNIX" === i2 ? (C2 = 798, z2 |= (function(e3, t3) {
|
|
35965
35959
|
var r3 = e3;
|
|
@@ -35968,9 +35962,9 @@ function requireJszip_min() {
|
|
|
35968
35962
|
return 63 & (e3 || 0);
|
|
35969
35963
|
})(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);
|
|
35970
35964
|
var E2 = "";
|
|
35971
|
-
return E2 += "\n\0", E2 += A2(S2, 2), E2 +=
|
|
35965
|
+
return E2 += "\n\0", E2 += A2(S2, 2), E2 += u.magic, E2 += A2(a, 2), E2 += A2(o, 2), E2 += A2(x.crc32, 4), E2 += A2(x.compressedSize, 4), E2 += A2(x.uncompressedSize, 4), E2 += A2(f2.length, 2), E2 += A2(b2.length, 2), { fileRecord: R2.LOCAL_FILE_HEADER + E2 + f2 + b2, dirRecord: R2.CENTRAL_FILE_HEADER + A2(C2, 2) + E2 + A2(p.length, 2) + "\0\0\0\0" + A2(z2, 4) + A2(n2, 4) + f2 + b2 + p };
|
|
35972
35966
|
}
|
|
35973
|
-
var I2 = e("../utils"), i = e("../stream/GenericWorker"),
|
|
35967
|
+
var I2 = e("../utils"), i = e("../stream/GenericWorker"), O2 = e("../utf8"), B2 = e("../crc32"), R2 = e("../signature");
|
|
35974
35968
|
function s2(e2, t2, r22, n2) {
|
|
35975
35969
|
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 = [];
|
|
35976
35970
|
}
|
|
@@ -35988,7 +35982,7 @@ function requireJszip_min() {
|
|
|
35988
35982
|
this.accumulate = false;
|
|
35989
35983
|
var t2 = this.streamFiles && !e2.file.dir, r22 = n(e2, t2, true, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
35990
35984
|
if (this.dirRecords.push(r22.dirRecord), t2) this.push({ data: (function(e3) {
|
|
35991
|
-
return
|
|
35985
|
+
return R2.DATA_DESCRIPTOR + A2(e3.crc32, 4) + A2(e3.compressedSize, 4) + A2(e3.uncompressedSize, 4);
|
|
35992
35986
|
})(e2), meta: { percent: 100 } });
|
|
35993
35987
|
else for (this.push({ data: r22.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
|
|
35994
35988
|
this.currentFile = null;
|
|
@@ -35996,7 +35990,7 @@ function requireJszip_min() {
|
|
|
35996
35990
|
for (var e2 = this.bytesWritten, t2 = 0; t2 < this.dirRecords.length; t2++) this.push({ data: this.dirRecords[t2], meta: { percent: 100 } });
|
|
35997
35991
|
var r22 = this.bytesWritten - e2, n2 = (function(e3, t3, r3, n3, i2) {
|
|
35998
35992
|
var s22 = I2.transformTo("string", i2(n3));
|
|
35999
|
-
return
|
|
35993
|
+
return R2.CENTRAL_DIRECTORY_END + "\0\0\0\0" + A2(e3, 2) + A2(e3, 2) + A2(t3, 4) + A2(r3, 4) + A2(s22.length, 2) + s22;
|
|
36000
35994
|
})(this.dirRecords.length, r22, e2, this.zipComment, this.encodeFileName);
|
|
36001
35995
|
this.push({ data: n2, meta: { percent: 100 } });
|
|
36002
35996
|
}, s2.prototype.prepareNextSource = function() {
|
|
@@ -36026,14 +36020,14 @@ function requireJszip_min() {
|
|
|
36026
36020
|
for (var e2 = this._sources, t2 = 0; t2 < e2.length; t2++) e2[t2].lock();
|
|
36027
36021
|
}, t.exports = s2;
|
|
36028
36022
|
}, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(e, t, r2) {
|
|
36029
|
-
var
|
|
36023
|
+
var u = e("../compressions"), n = e("./ZipFileWorker");
|
|
36030
36024
|
r2.generateWorker = function(e2, a, t2) {
|
|
36031
36025
|
var o = new n(a.streamFiles, t2, a.platform, a.encodeFileName), h2 = 0;
|
|
36032
36026
|
try {
|
|
36033
36027
|
e2.forEach(function(e3, t3) {
|
|
36034
36028
|
h2++;
|
|
36035
36029
|
var r22 = (function(e4, t4) {
|
|
36036
|
-
var r3 = e4 || t4, n3 =
|
|
36030
|
+
var r3 = e4 || t4, n3 = u[r3];
|
|
36037
36031
|
if (!n3) throw new Error(r3 + " is not a valid compression method !");
|
|
36038
36032
|
return n3;
|
|
36039
36033
|
})(t3.options.compression, a.compression), n2 = t3.options.compressionOptions || a.compressionOptions || {}, i = t3.dir, s2 = t3.date;
|
|
@@ -36058,7 +36052,7 @@ function requireJszip_min() {
|
|
|
36058
36052
|
return new n().loadAsync(e2, t2);
|
|
36059
36053
|
}, n.external = e("./external"), t.exports = n;
|
|
36060
36054
|
}, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(e, t, r2) {
|
|
36061
|
-
var
|
|
36055
|
+
var u = e("./utils"), i = e("./external"), n = e("./utf8"), s2 = e("./zipEntries"), a = e("./stream/Crc32Probe"), l3 = e("./nodejsUtils");
|
|
36062
36056
|
function f2(n2) {
|
|
36063
36057
|
return new i.Promise(function(e2, t2) {
|
|
36064
36058
|
var r22 = n2.decompressed.getContentWorker().pipe(new a());
|
|
@@ -36071,7 +36065,7 @@ function requireJszip_min() {
|
|
|
36071
36065
|
}
|
|
36072
36066
|
t.exports = function(e2, o) {
|
|
36073
36067
|
var h2 = this;
|
|
36074
|
-
return o =
|
|
36068
|
+
return o = u.extend(o || {}, { base64: false, checkCRC32: false, optimizedBinaryString: false, createFolders: false, decodeFileName: n.utf8decode }), l3.isNode && l3.isStream(e2) ? i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : u.prepareContent("the loaded zip file", e2, true, o.optimizedBinaryString, o.base64).then(function(e3) {
|
|
36075
36069
|
var t2 = new s2(o);
|
|
36076
36070
|
return t2.load(e3), t2;
|
|
36077
36071
|
}).then(function(e3) {
|
|
@@ -36080,7 +36074,7 @@ function requireJszip_min() {
|
|
|
36080
36074
|
return i.Promise.all(t2);
|
|
36081
36075
|
}).then(function(e3) {
|
|
36082
36076
|
for (var t2 = e3.shift(), r22 = t2.files, n2 = 0; n2 < r22.length; n2++) {
|
|
36083
|
-
var i2 = r22[n2], s22 = i2.fileNameStr, a2 =
|
|
36077
|
+
var i2 = r22[n2], s22 = i2.fileNameStr, a2 = u.resolve(i2.fileNameStr);
|
|
36084
36078
|
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);
|
|
36085
36079
|
}
|
|
36086
36080
|
return t2.zipComment.length && (h2.comment = t2.zipComment), h2;
|
|
@@ -36137,16 +36131,16 @@ function requireJszip_min() {
|
|
|
36137
36131
|
} };
|
|
36138
36132
|
}, {}], 15: [function(e, t, r2) {
|
|
36139
36133
|
function s2(e2, t2, r22) {
|
|
36140
|
-
var n2, i2 =
|
|
36134
|
+
var n2, i2 = u.getTypeOf(t2), s22 = u.extend(r22 || {}, f2);
|
|
36141
36135
|
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);
|
|
36142
36136
|
var a2 = "string" === i2 && false === s22.binary && false === s22.base64;
|
|
36143
36137
|
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");
|
|
36144
36138
|
var o2 = null;
|
|
36145
|
-
o2 = t2 instanceof c2 || t2 instanceof
|
|
36139
|
+
o2 = t2 instanceof c2 || t2 instanceof l3 ? t2 : p.isNode && p.isStream(t2) ? new m2(e2, t2) : u.prepareContent(e2, t2, s22.binary, s22.optimizedBinaryString, s22.base64);
|
|
36146
36140
|
var h22 = new d2(e2, o2, s22);
|
|
36147
36141
|
this.files[e2] = h22;
|
|
36148
36142
|
}
|
|
36149
|
-
var i = e("./utf8"),
|
|
36143
|
+
var i = e("./utf8"), u = e("./utils"), l3 = e("./stream/GenericWorker"), a = e("./stream/StreamHelper"), f2 = e("./defaults"), c2 = e("./compressedObject"), d2 = e("./zipObject"), o = e("./generate"), p = e("./nodejsUtils"), m2 = e("./nodejs/NodejsStreamInputAdapter"), _2 = function(e2) {
|
|
36150
36144
|
"/" === e2.slice(-1) && (e2 = e2.substring(0, e2.length - 1));
|
|
36151
36145
|
var t2 = e2.lastIndexOf("/");
|
|
36152
36146
|
return 0 < t2 ? e2.substring(0, t2) : "";
|
|
@@ -36198,12 +36192,12 @@ function requireJszip_min() {
|
|
|
36198
36192
|
}, generateInternalStream: function(e2) {
|
|
36199
36193
|
var t2, r22 = {};
|
|
36200
36194
|
try {
|
|
36201
|
-
if ((r22 =
|
|
36202
|
-
|
|
36195
|
+
if ((r22 = u.extend(e2 || {}, { streamFiles: false, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName: i.utf8encode })).type = r22.type.toLowerCase(), r22.compression = r22.compression.toUpperCase(), "binarystring" === r22.type && (r22.type = "string"), !r22.type) throw new Error("No output type specified.");
|
|
36196
|
+
u.checkSupport(r22.type), "darwin" !== r22.platform && "freebsd" !== r22.platform && "linux" !== r22.platform && "sunos" !== r22.platform || (r22.platform = "UNIX"), "win32" === r22.platform && (r22.platform = "DOS");
|
|
36203
36197
|
var n2 = r22.comment || this.comment || "";
|
|
36204
36198
|
t2 = o.generateWorker(this, r22, n2);
|
|
36205
36199
|
} catch (e3) {
|
|
36206
|
-
(t2 = new
|
|
36200
|
+
(t2 = new l3("error")).error(e3);
|
|
36207
36201
|
}
|
|
36208
36202
|
return new a(t2, r22.type || "string", r22.mimeType);
|
|
36209
36203
|
}, generateAsync: function(e2, t2) {
|
|
@@ -36423,12 +36417,12 @@ function requireJszip_min() {
|
|
|
36423
36417
|
return this.previous ? this.previous + " -> " + e2 : e2;
|
|
36424
36418
|
} }, t.exports = n;
|
|
36425
36419
|
}, {}], 29: [function(e, t, r2) {
|
|
36426
|
-
var h2 = e("../utils"), i = e("./ConvertWorker"), s2 = e("./GenericWorker"),
|
|
36420
|
+
var h2 = e("../utils"), i = e("./ConvertWorker"), s2 = e("./GenericWorker"), u = e("../base64"), n = e("../support"), a = e("../external"), o = null;
|
|
36427
36421
|
if (n.nodestream) try {
|
|
36428
36422
|
o = e("../nodejs/NodejsStreamOutputAdapter");
|
|
36429
36423
|
} catch (e2) {
|
|
36430
36424
|
}
|
|
36431
|
-
function
|
|
36425
|
+
function l3(e2, o2) {
|
|
36432
36426
|
return new a.Promise(function(t2, r22) {
|
|
36433
36427
|
var n2 = [], i2 = e2._internalType, s22 = e2._outputType, a2 = e2._mimeType;
|
|
36434
36428
|
e2.on("data", function(e3, t3) {
|
|
@@ -36442,7 +36436,7 @@ function requireJszip_min() {
|
|
|
36442
36436
|
case "blob":
|
|
36443
36437
|
return h2.newBlob(h2.transformTo("arraybuffer", t3), r3);
|
|
36444
36438
|
case "base64":
|
|
36445
|
-
return
|
|
36439
|
+
return u.encode(t3);
|
|
36446
36440
|
default:
|
|
36447
36441
|
return h2.transformTo(e4, t3);
|
|
36448
36442
|
}
|
|
@@ -36488,7 +36482,7 @@ function requireJszip_min() {
|
|
|
36488
36482
|
}
|
|
36489
36483
|
}
|
|
36490
36484
|
f2.prototype = { accumulate: function(e2) {
|
|
36491
|
-
return
|
|
36485
|
+
return l3(this, e2);
|
|
36492
36486
|
}, on: function(e2, t2) {
|
|
36493
36487
|
var r22 = this;
|
|
36494
36488
|
return "data" === e2 ? this._worker.on(e2, function(e3) {
|
|
@@ -36525,12 +36519,12 @@ function requireJszip_min() {
|
|
|
36525
36519
|
r2.nodestream = false;
|
|
36526
36520
|
}
|
|
36527
36521
|
}, { "readable-stream": 16 }], 31: [function(e, t, s2) {
|
|
36528
|
-
for (var o = e("./utils"), h2 = e("./support"), r2 = e("./nodejsUtils"), n = e("./stream/GenericWorker"),
|
|
36529
|
-
|
|
36522
|
+
for (var o = e("./utils"), h2 = e("./support"), r2 = e("./nodejsUtils"), n = e("./stream/GenericWorker"), u = new Array(256), i = 0; i < 256; i++) u[i] = 252 <= i ? 6 : 248 <= i ? 5 : 240 <= i ? 4 : 224 <= i ? 3 : 192 <= i ? 2 : 1;
|
|
36523
|
+
u[254] = u[254] = 1;
|
|
36530
36524
|
function a() {
|
|
36531
36525
|
n.call(this, "utf-8 decode"), this.leftOver = null;
|
|
36532
36526
|
}
|
|
36533
|
-
function
|
|
36527
|
+
function l3() {
|
|
36534
36528
|
n.call(this, "utf-8 encode");
|
|
36535
36529
|
}
|
|
36536
36530
|
s2.utf8encode = function(e2) {
|
|
@@ -36544,7 +36538,7 @@ function requireJszip_min() {
|
|
|
36544
36538
|
return h2.nodebuffer ? o.transformTo("nodebuffer", e2).toString("utf-8") : (function(e3) {
|
|
36545
36539
|
var t2, r22, n2, i2, s22 = e3.length, a2 = new Array(2 * s22);
|
|
36546
36540
|
for (t2 = r22 = 0; t2 < s22; ) if ((n2 = e3[t2++]) < 128) a2[r22++] = n2;
|
|
36547
|
-
else if (4 < (i2 =
|
|
36541
|
+
else if (4 < (i2 = u[n2])) a2[r22++] = 65533, t2 += i2 - 1;
|
|
36548
36542
|
else {
|
|
36549
36543
|
for (n2 &= 2 === i2 ? 31 : 3 === i2 ? 15 : 7; 1 < i2 && t2 < s22; ) n2 = n2 << 6 | 63 & e3[t2++], i2--;
|
|
36550
36544
|
1 < i2 ? a2[r22++] = 65533 : n2 < 65536 ? a2[r22++] = n2 : (n2 -= 65536, a2[r22++] = 55296 | n2 >> 10 & 1023, a2[r22++] = 56320 | 1023 & n2);
|
|
@@ -36563,20 +36557,20 @@ function requireJszip_min() {
|
|
|
36563
36557
|
var n2 = (function(e3, t3) {
|
|
36564
36558
|
var r3;
|
|
36565
36559
|
for ((t3 = t3 || e3.length) > e3.length && (t3 = e3.length), r3 = t3 - 1; 0 <= r3 && 128 == (192 & e3[r3]); ) r3--;
|
|
36566
|
-
return r3 < 0 ? t3 : 0 === r3 ? t3 : r3 +
|
|
36560
|
+
return r3 < 0 ? t3 : 0 === r3 ? t3 : r3 + u[e3[r3]] > t3 ? r3 : t3;
|
|
36567
36561
|
})(t2), i2 = t2;
|
|
36568
36562
|
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 });
|
|
36569
36563
|
}, a.prototype.flush = function() {
|
|
36570
36564
|
this.leftOver && this.leftOver.length && (this.push({ data: s2.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
|
|
36571
|
-
}, s2.Utf8DecodeWorker = a, o.inherits(
|
|
36565
|
+
}, s2.Utf8DecodeWorker = a, o.inherits(l3, n), l3.prototype.processChunk = function(e2) {
|
|
36572
36566
|
this.push({ data: s2.utf8encode(e2.data), meta: e2.meta });
|
|
36573
|
-
}, s2.Utf8EncodeWorker =
|
|
36567
|
+
}, s2.Utf8EncodeWorker = l3;
|
|
36574
36568
|
}, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(e, t, a) {
|
|
36575
|
-
var o = e("./support"), h2 = e("./base64"), r2 = e("./nodejsUtils"),
|
|
36569
|
+
var o = e("./support"), h2 = e("./base64"), r2 = e("./nodejsUtils"), u = e("./external");
|
|
36576
36570
|
function n(e2) {
|
|
36577
36571
|
return e2;
|
|
36578
36572
|
}
|
|
36579
|
-
function
|
|
36573
|
+
function l3(e2, t2) {
|
|
36580
36574
|
for (var r22 = 0; r22 < e2.length; ++r22) t2[r22] = 255 & e2.charCodeAt(r22);
|
|
36581
36575
|
return t2;
|
|
36582
36576
|
}
|
|
@@ -36630,13 +36624,13 @@ function requireJszip_min() {
|
|
|
36630
36624
|
a.applyFromCharCode = s2;
|
|
36631
36625
|
var c2 = {};
|
|
36632
36626
|
c2.string = { string: n, array: function(e2) {
|
|
36633
|
-
return
|
|
36627
|
+
return l3(e2, new Array(e2.length));
|
|
36634
36628
|
}, arraybuffer: function(e2) {
|
|
36635
36629
|
return c2.string.uint8array(e2).buffer;
|
|
36636
36630
|
}, uint8array: function(e2) {
|
|
36637
|
-
return
|
|
36631
|
+
return l3(e2, new Uint8Array(e2.length));
|
|
36638
36632
|
}, nodebuffer: function(e2) {
|
|
36639
|
-
return
|
|
36633
|
+
return l3(e2, r2.allocBuffer(e2.length));
|
|
36640
36634
|
} }, c2.array = { string: s2, array: n, arraybuffer: function(e2) {
|
|
36641
36635
|
return new Uint8Array(e2).buffer;
|
|
36642
36636
|
}, uint8array: function(e2) {
|
|
@@ -36695,8 +36689,8 @@ function requireJszip_min() {
|
|
|
36695
36689
|
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]);
|
|
36696
36690
|
return r22;
|
|
36697
36691
|
}, a.prepareContent = function(r22, e2, n2, i2, s22) {
|
|
36698
|
-
return
|
|
36699
|
-
return o.blob && (n3 instanceof Blob || -1 !== ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(n3))) && "undefined" != typeof FileReader ? new
|
|
36692
|
+
return u.Promise.resolve(e2).then(function(n3) {
|
|
36693
|
+
return o.blob && (n3 instanceof Blob || -1 !== ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(n3))) && "undefined" != typeof FileReader ? new u.Promise(function(t2, r3) {
|
|
36700
36694
|
var e3 = new FileReader();
|
|
36701
36695
|
e3.onload = function(e4) {
|
|
36702
36696
|
t2(e4.target.result);
|
|
@@ -36707,8 +36701,8 @@ function requireJszip_min() {
|
|
|
36707
36701
|
}).then(function(e3) {
|
|
36708
36702
|
var t2 = a.getTypeOf(e3);
|
|
36709
36703
|
return t2 ? ("arraybuffer" === t2 ? e3 = a.transformTo("uint8array", e3) : "string" === t2 && (s22 ? e3 = h2.decode(e3) : n2 && true !== i2 && (e3 = (function(e4) {
|
|
36710
|
-
return
|
|
36711
|
-
})(e3))), e3) :
|
|
36704
|
+
return l3(e4, o.uint8array ? new Uint8Array(e4.length) : new Array(e4.length));
|
|
36705
|
+
})(e3))), e3) : u.Promise.reject(new Error("Can't read the data of '" + r22 + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
|
|
36712
36706
|
});
|
|
36713
36707
|
};
|
|
36714
36708
|
}, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(e, t, r2) {
|
|
@@ -36764,11 +36758,11 @@ function requireJszip_min() {
|
|
|
36764
36758
|
this.prepareReader(e2), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
|
|
36765
36759
|
} }, t.exports = h2;
|
|
36766
36760
|
}, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(e, t, r2) {
|
|
36767
|
-
var n = e("./reader/readerFor"), s2 = e("./utils"), i = e("./compressedObject"), a = e("./crc32"), o = e("./utf8"), h2 = e("./compressions"),
|
|
36768
|
-
function
|
|
36761
|
+
var n = e("./reader/readerFor"), s2 = e("./utils"), i = e("./compressedObject"), a = e("./crc32"), o = e("./utf8"), h2 = e("./compressions"), u = e("./support");
|
|
36762
|
+
function l3(e2, t2) {
|
|
36769
36763
|
this.options = e2, this.loadOptions = t2;
|
|
36770
36764
|
}
|
|
36771
|
-
|
|
36765
|
+
l3.prototype = { isEncrypted: function() {
|
|
36772
36766
|
return 1 == (1 & this.bitFlag);
|
|
36773
36767
|
}, useUTF8: function() {
|
|
36774
36768
|
return 2048 == (2048 & this.bitFlag);
|
|
@@ -36799,7 +36793,7 @@ function requireJszip_min() {
|
|
|
36799
36793
|
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 };
|
|
36800
36794
|
e2.setIndex(i2);
|
|
36801
36795
|
}, handleUTF8: function() {
|
|
36802
|
-
var e2 =
|
|
36796
|
+
var e2 = u.uint8array ? "uint8array" : "array";
|
|
36803
36797
|
if (this.useUTF8()) this.fileNameStr = o.utf8decode(this.fileName), this.fileCommentStr = o.utf8decode(this.fileComment);
|
|
36804
36798
|
else {
|
|
36805
36799
|
var t2 = this.findExtraFieldUnicodePath();
|
|
@@ -36829,7 +36823,7 @@ function requireJszip_min() {
|
|
|
36829
36823
|
return 1 !== t2.readInt(1) ? null : a(this.fileComment) !== t2.readInt(4) ? null : o.utf8decode(t2.readData(e2.length - 5));
|
|
36830
36824
|
}
|
|
36831
36825
|
return null;
|
|
36832
|
-
} }, t.exports =
|
|
36826
|
+
} }, t.exports = l3;
|
|
36833
36827
|
}, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(e, t, r2) {
|
|
36834
36828
|
function n(e2, t2, r22) {
|
|
36835
36829
|
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 };
|
|
@@ -36858,34 +36852,34 @@ function requireJszip_min() {
|
|
|
36858
36852
|
}, _decompressWorker: function() {
|
|
36859
36853
|
return this._data instanceof o ? this._data.getContentWorker() : this._data instanceof h2 ? this._data : new i(this._data);
|
|
36860
36854
|
} };
|
|
36861
|
-
for (var
|
|
36855
|
+
for (var u = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], l3 = function() {
|
|
36862
36856
|
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
36863
|
-
}, f2 = 0; f2 <
|
|
36857
|
+
}, f2 = 0; f2 < u.length; f2++) n.prototype[u[f2]] = l3;
|
|
36864
36858
|
t.exports = n;
|
|
36865
|
-
}, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(e,
|
|
36859
|
+
}, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(e, l3, t) {
|
|
36866
36860
|
(function(t2) {
|
|
36867
36861
|
var r2, n, e2 = t2.MutationObserver || t2.WebKitMutationObserver;
|
|
36868
36862
|
if (e2) {
|
|
36869
|
-
var i = 0, s2 = new e2(
|
|
36863
|
+
var i = 0, s2 = new e2(u), a = t2.document.createTextNode("");
|
|
36870
36864
|
s2.observe(a, { characterData: true }), r2 = function() {
|
|
36871
36865
|
a.data = i = ++i % 2;
|
|
36872
36866
|
};
|
|
36873
36867
|
} else if (t2.setImmediate || void 0 === t2.MessageChannel) r2 = "document" in t2 && "onreadystatechange" in t2.document.createElement("script") ? function() {
|
|
36874
36868
|
var e3 = t2.document.createElement("script");
|
|
36875
36869
|
e3.onreadystatechange = function() {
|
|
36876
|
-
|
|
36870
|
+
u(), e3.onreadystatechange = null, e3.parentNode.removeChild(e3), e3 = null;
|
|
36877
36871
|
}, t2.document.documentElement.appendChild(e3);
|
|
36878
36872
|
} : function() {
|
|
36879
|
-
setTimeout(
|
|
36873
|
+
setTimeout(u, 0);
|
|
36880
36874
|
};
|
|
36881
36875
|
else {
|
|
36882
36876
|
var o = new t2.MessageChannel();
|
|
36883
|
-
o.port1.onmessage =
|
|
36877
|
+
o.port1.onmessage = u, r2 = function() {
|
|
36884
36878
|
o.port2.postMessage(0);
|
|
36885
36879
|
};
|
|
36886
36880
|
}
|
|
36887
36881
|
var h2 = [];
|
|
36888
|
-
function
|
|
36882
|
+
function u() {
|
|
36889
36883
|
var e3, t3;
|
|
36890
36884
|
n = true;
|
|
36891
36885
|
for (var r22 = h2.length; r22; ) {
|
|
@@ -36894,18 +36888,18 @@ function requireJszip_min() {
|
|
|
36894
36888
|
}
|
|
36895
36889
|
n = false;
|
|
36896
36890
|
}
|
|
36897
|
-
|
|
36891
|
+
l3.exports = function(e3) {
|
|
36898
36892
|
1 !== h2.push(e3) || n || r2();
|
|
36899
36893
|
};
|
|
36900
36894
|
}).call(this, "undefined" != typeof commonjsGlobal ? commonjsGlobal : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {});
|
|
36901
36895
|
}, {}], 37: [function(e, t, r2) {
|
|
36902
36896
|
var i = e("immediate");
|
|
36903
|
-
function
|
|
36897
|
+
function u() {
|
|
36904
36898
|
}
|
|
36905
|
-
var
|
|
36899
|
+
var l3 = {}, s2 = ["REJECTED"], a = ["FULFILLED"], n = ["PENDING"];
|
|
36906
36900
|
function o(e2) {
|
|
36907
36901
|
if ("function" != typeof e2) throw new TypeError("resolver must be a function");
|
|
36908
|
-
this.state = n, this.queue = [], this.outcome = void 0, e2 !==
|
|
36902
|
+
this.state = n, this.queue = [], this.outcome = void 0, e2 !== u && d2(this, e2);
|
|
36909
36903
|
}
|
|
36910
36904
|
function h2(e2, t2, r22) {
|
|
36911
36905
|
this.promise = e2, "function" == typeof t2 && (this.onFulfilled = t2, this.callFulfilled = this.otherCallFulfilled), "function" == typeof r22 && (this.onRejected = r22, this.callRejected = this.otherCallRejected);
|
|
@@ -36916,9 +36910,9 @@ function requireJszip_min() {
|
|
|
36916
36910
|
try {
|
|
36917
36911
|
e2 = r22(n2);
|
|
36918
36912
|
} catch (e3) {
|
|
36919
|
-
return
|
|
36913
|
+
return l3.reject(t2, e3);
|
|
36920
36914
|
}
|
|
36921
|
-
e2 === t2 ?
|
|
36915
|
+
e2 === t2 ? l3.reject(t2, new TypeError("Cannot resolve promise with itself")) : l3.resolve(t2, e2);
|
|
36922
36916
|
});
|
|
36923
36917
|
}
|
|
36924
36918
|
function c2(e2) {
|
|
@@ -36930,10 +36924,10 @@ function requireJszip_min() {
|
|
|
36930
36924
|
function d2(t2, e2) {
|
|
36931
36925
|
var r22 = false;
|
|
36932
36926
|
function n2(e3) {
|
|
36933
|
-
r22 || (r22 = true,
|
|
36927
|
+
r22 || (r22 = true, l3.reject(t2, e3));
|
|
36934
36928
|
}
|
|
36935
36929
|
function i2(e3) {
|
|
36936
|
-
r22 || (r22 = true,
|
|
36930
|
+
r22 || (r22 = true, l3.resolve(t2, e3));
|
|
36937
36931
|
}
|
|
36938
36932
|
var s22 = p(function() {
|
|
36939
36933
|
e2(i2, n2);
|
|
@@ -36965,20 +36959,20 @@ function requireJszip_min() {
|
|
|
36965
36959
|
return this.then(null, e2);
|
|
36966
36960
|
}, o.prototype.then = function(e2, t2) {
|
|
36967
36961
|
if ("function" != typeof e2 && this.state === a || "function" != typeof t2 && this.state === s2) return this;
|
|
36968
|
-
var r22 = new this.constructor(
|
|
36962
|
+
var r22 = new this.constructor(u);
|
|
36969
36963
|
this.state !== n ? f2(r22, this.state === a ? e2 : t2, this.outcome) : this.queue.push(new h2(r22, e2, t2));
|
|
36970
36964
|
return r22;
|
|
36971
36965
|
}, h2.prototype.callFulfilled = function(e2) {
|
|
36972
|
-
|
|
36966
|
+
l3.resolve(this.promise, e2);
|
|
36973
36967
|
}, h2.prototype.otherCallFulfilled = function(e2) {
|
|
36974
36968
|
f2(this.promise, this.onFulfilled, e2);
|
|
36975
36969
|
}, h2.prototype.callRejected = function(e2) {
|
|
36976
|
-
|
|
36970
|
+
l3.reject(this.promise, e2);
|
|
36977
36971
|
}, h2.prototype.otherCallRejected = function(e2) {
|
|
36978
36972
|
f2(this.promise, this.onRejected, e2);
|
|
36979
|
-
},
|
|
36973
|
+
}, l3.resolve = function(e2, t2) {
|
|
36980
36974
|
var r22 = p(c2, t2);
|
|
36981
|
-
if ("error" === r22.status) return
|
|
36975
|
+
if ("error" === r22.status) return l3.reject(e2, r22.value);
|
|
36982
36976
|
var n2 = r22.value;
|
|
36983
36977
|
if (n2) d2(e2, n2);
|
|
36984
36978
|
else {
|
|
@@ -36986,29 +36980,29 @@ function requireJszip_min() {
|
|
|
36986
36980
|
for (var i2 = -1, s22 = e2.queue.length; ++i2 < s22; ) e2.queue[i2].callFulfilled(t2);
|
|
36987
36981
|
}
|
|
36988
36982
|
return e2;
|
|
36989
|
-
},
|
|
36983
|
+
}, l3.reject = function(e2, t2) {
|
|
36990
36984
|
e2.state = s2, e2.outcome = t2;
|
|
36991
36985
|
for (var r22 = -1, n2 = e2.queue.length; ++r22 < n2; ) e2.queue[r22].callRejected(t2);
|
|
36992
36986
|
return e2;
|
|
36993
36987
|
}, o.resolve = function(e2) {
|
|
36994
36988
|
if (e2 instanceof this) return e2;
|
|
36995
|
-
return
|
|
36989
|
+
return l3.resolve(new this(u), e2);
|
|
36996
36990
|
}, o.reject = function(e2) {
|
|
36997
|
-
var t2 = new this(
|
|
36998
|
-
return
|
|
36991
|
+
var t2 = new this(u);
|
|
36992
|
+
return l3.reject(t2, e2);
|
|
36999
36993
|
}, o.all = function(e2) {
|
|
37000
36994
|
var r22 = this;
|
|
37001
36995
|
if ("[object Array]" !== Object.prototype.toString.call(e2)) return this.reject(new TypeError("must be an array"));
|
|
37002
36996
|
var n2 = e2.length, i2 = false;
|
|
37003
36997
|
if (!n2) return this.resolve([]);
|
|
37004
|
-
var s22 = new Array(n2), a2 = 0, t2 = -1, o2 = new this(
|
|
36998
|
+
var s22 = new Array(n2), a2 = 0, t2 = -1, o2 = new this(u);
|
|
37005
36999
|
for (; ++t2 < n2; ) h22(e2[t2], t2);
|
|
37006
37000
|
return o2;
|
|
37007
37001
|
function h22(e3, t3) {
|
|
37008
37002
|
r22.resolve(e3).then(function(e4) {
|
|
37009
|
-
s22[t3] = e4, ++a2 !== n2 || i2 || (i2 = true,
|
|
37003
|
+
s22[t3] = e4, ++a2 !== n2 || i2 || (i2 = true, l3.resolve(o2, s22));
|
|
37010
37004
|
}, function(e4) {
|
|
37011
|
-
i2 || (i2 = true,
|
|
37005
|
+
i2 || (i2 = true, l3.reject(o2, e4));
|
|
37012
37006
|
});
|
|
37013
37007
|
}
|
|
37014
37008
|
}, o.race = function(e2) {
|
|
@@ -37016,11 +37010,11 @@ function requireJszip_min() {
|
|
|
37016
37010
|
if ("[object Array]" !== Object.prototype.toString.call(e2)) return this.reject(new TypeError("must be an array"));
|
|
37017
37011
|
var r22 = e2.length, n2 = false;
|
|
37018
37012
|
if (!r22) return this.resolve([]);
|
|
37019
|
-
var i2 = -1, s22 = new this(
|
|
37013
|
+
var i2 = -1, s22 = new this(u);
|
|
37020
37014
|
for (; ++i2 < r22; ) a2 = e2[i2], t2.resolve(a2).then(function(e3) {
|
|
37021
|
-
n2 || (n2 = true,
|
|
37015
|
+
n2 || (n2 = true, l3.resolve(s22, e3));
|
|
37022
37016
|
}, function(e3) {
|
|
37023
|
-
n2 || (n2 = true,
|
|
37017
|
+
n2 || (n2 = true, l3.reject(s22, e3));
|
|
37024
37018
|
});
|
|
37025
37019
|
var a2;
|
|
37026
37020
|
return s22;
|
|
@@ -37029,17 +37023,17 @@ function requireJszip_min() {
|
|
|
37029
37023
|
var n = {};
|
|
37030
37024
|
(0, e("./lib/utils/common").assign)(n, e("./lib/deflate"), e("./lib/inflate"), e("./lib/zlib/constants")), t.exports = n;
|
|
37031
37025
|
}, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(e, t, r2) {
|
|
37032
|
-
var a = e("./zlib/deflate"), o = e("./utils/common"), h2 = e("./utils/strings"), i = e("./zlib/messages"), s2 = e("./zlib/zstream"),
|
|
37026
|
+
var a = e("./zlib/deflate"), o = e("./utils/common"), h2 = e("./utils/strings"), i = e("./zlib/messages"), s2 = e("./zlib/zstream"), u = Object.prototype.toString, l3 = 0, f2 = -1, c2 = 0, d2 = 8;
|
|
37033
37027
|
function p(e2) {
|
|
37034
37028
|
if (!(this instanceof p)) return new p(e2);
|
|
37035
37029
|
this.options = o.assign({ level: f2, method: d2, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: c2, to: "" }, e2 || {});
|
|
37036
37030
|
var t2 = this.options;
|
|
37037
37031
|
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;
|
|
37038
37032
|
var r22 = a.deflateInit2(this.strm, t2.level, t2.method, t2.windowBits, t2.memLevel, t2.strategy);
|
|
37039
|
-
if (r22 !==
|
|
37033
|
+
if (r22 !== l3) throw new Error(i[r22]);
|
|
37040
37034
|
if (t2.header && a.deflateSetHeader(this.strm, t2.header), t2.dictionary) {
|
|
37041
37035
|
var n2;
|
|
37042
|
-
if (n2 = "string" == typeof t2.dictionary ? h2.string2buf(t2.dictionary) : "[object ArrayBuffer]" ===
|
|
37036
|
+
if (n2 = "string" == typeof t2.dictionary ? h2.string2buf(t2.dictionary) : "[object ArrayBuffer]" === u.call(t2.dictionary) ? new Uint8Array(t2.dictionary) : t2.dictionary, (r22 = a.deflateSetDictionary(this.strm, n2)) !== l3) throw new Error(i[r22]);
|
|
37043
37037
|
this._dict_set = true;
|
|
37044
37038
|
}
|
|
37045
37039
|
}
|
|
@@ -37051,16 +37045,16 @@ function requireJszip_min() {
|
|
|
37051
37045
|
p.prototype.push = function(e2, t2) {
|
|
37052
37046
|
var r22, n2, i2 = this.strm, s22 = this.options.chunkSize;
|
|
37053
37047
|
if (this.ended) return false;
|
|
37054
|
-
n2 = t2 === ~~t2 ? t2 : true === t2 ? 4 : 0, "string" == typeof e2 ? i2.input = h2.string2buf(e2) : "[object ArrayBuffer]" ===
|
|
37048
|
+
n2 = t2 === ~~t2 ? t2 : true === t2 ? 4 : 0, "string" == typeof e2 ? i2.input = h2.string2buf(e2) : "[object ArrayBuffer]" === u.call(e2) ? i2.input = new Uint8Array(e2) : i2.input = e2, i2.next_in = 0, i2.avail_in = i2.input.length;
|
|
37055
37049
|
do {
|
|
37056
|
-
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 !==
|
|
37050
|
+
if (0 === i2.avail_out && (i2.output = new o.Buf8(s22), i2.next_out = 0, i2.avail_out = s22), 1 !== (r22 = a.deflate(i2, n2)) && r22 !== l3) return this.onEnd(r22), !(this.ended = true);
|
|
37057
37051
|
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)));
|
|
37058
37052
|
} while ((0 < i2.avail_in || 0 === i2.avail_out) && 1 !== r22);
|
|
37059
|
-
return 4 === n2 ? (r22 = a.deflateEnd(this.strm), this.onEnd(r22), this.ended = true, r22 ===
|
|
37053
|
+
return 4 === n2 ? (r22 = a.deflateEnd(this.strm), this.onEnd(r22), this.ended = true, r22 === l3) : 2 !== n2 || (this.onEnd(l3), !(i2.avail_out = 0));
|
|
37060
37054
|
}, p.prototype.onData = function(e2) {
|
|
37061
37055
|
this.chunks.push(e2);
|
|
37062
37056
|
}, p.prototype.onEnd = function(e2) {
|
|
37063
|
-
e2 ===
|
|
37057
|
+
e2 === l3 && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = e2, this.msg = this.strm.msg;
|
|
37064
37058
|
}, r2.Deflate = p, r2.deflate = n, r2.deflateRaw = function(e2, t2) {
|
|
37065
37059
|
return (t2 = t2 || {}).raw = true, n(e2, t2);
|
|
37066
37060
|
}, r2.gzip = function(e2, t2) {
|
|
@@ -37083,12 +37077,12 @@ function requireJszip_min() {
|
|
|
37083
37077
|
return r22.result;
|
|
37084
37078
|
}
|
|
37085
37079
|
a.prototype.push = function(e2, t2) {
|
|
37086
|
-
var r22, n2, i2, s22, a2, o2, h2 = this.strm,
|
|
37080
|
+
var r22, n2, i2, s22, a2, o2, h2 = this.strm, u = this.options.chunkSize, l3 = this.options.dictionary, f2 = false;
|
|
37087
37081
|
if (this.ended) return false;
|
|
37088
37082
|
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;
|
|
37089
37083
|
do {
|
|
37090
|
-
if (0 === h2.avail_out && (h2.output = new d2.Buf8(
|
|
37091
|
-
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 =
|
|
37084
|
+
if (0 === h2.avail_out && (h2.output = new d2.Buf8(u), h2.next_out = 0, h2.avail_out = u), (r22 = c2.inflate(h2, m2.Z_NO_FLUSH)) === m2.Z_NEED_DICT && l3 && (o2 = "string" == typeof l3 ? p.string2buf(l3) : "[object ArrayBuffer]" === _2.call(l3) ? new Uint8Array(l3) : l3, r22 = c2.inflateSetDictionary(this.strm, o2)), r22 === m2.Z_BUF_ERROR && true === f2 && (r22 = m2.Z_OK, f2 = false), r22 !== m2.Z_STREAM_END && r22 !== m2.Z_OK) return this.onEnd(r22), !(this.ended = true);
|
|
37085
|
+
h2.next_out && (0 !== h2.avail_out && r22 !== m2.Z_STREAM_END && (0 !== h2.avail_in || n2 !== m2.Z_FINISH && n2 !== m2.Z_SYNC_FLUSH) || ("string" === this.options.to ? (i2 = p.utf8border(h2.output, h2.next_out), s22 = h2.next_out - i2, a2 = p.buf2string(h2.output, i2), h2.next_out = s22, h2.avail_out = u - s22, s22 && d2.arraySet(h2.output, h2.output, i2, s22, 0), this.onData(a2)) : this.onData(d2.shrinkBuf(h2.output, h2.next_out)))), 0 === h2.avail_in && 0 === h2.avail_out && (f2 = true);
|
|
37092
37086
|
} while ((0 < h2.avail_in || 0 === h2.avail_out) && r22 !== m2.Z_STREAM_END);
|
|
37093
37087
|
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));
|
|
37094
37088
|
}, a.prototype.onData = function(e2) {
|
|
@@ -37140,35 +37134,35 @@ function requireJszip_min() {
|
|
|
37140
37134
|
} catch (e2) {
|
|
37141
37135
|
s2 = false;
|
|
37142
37136
|
}
|
|
37143
|
-
for (var
|
|
37144
|
-
function
|
|
37137
|
+
for (var u = new h2.Buf8(256), n = 0; n < 256; n++) u[n] = 252 <= n ? 6 : 248 <= n ? 5 : 240 <= n ? 4 : 224 <= n ? 3 : 192 <= n ? 2 : 1;
|
|
37138
|
+
function l3(e2, t2) {
|
|
37145
37139
|
if (t2 < 65537 && (e2.subarray && s2 || !e2.subarray && i)) return String.fromCharCode.apply(null, h2.shrinkBuf(e2, t2));
|
|
37146
37140
|
for (var r22 = "", n2 = 0; n2 < t2; n2++) r22 += String.fromCharCode(e2[n2]);
|
|
37147
37141
|
return r22;
|
|
37148
37142
|
}
|
|
37149
|
-
|
|
37143
|
+
u[254] = u[254] = 1, r2.string2buf = function(e2) {
|
|
37150
37144
|
var t2, r22, n2, i2, s22, a = e2.length, o = 0;
|
|
37151
37145
|
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;
|
|
37152
37146
|
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);
|
|
37153
37147
|
return t2;
|
|
37154
37148
|
}, r2.buf2binstring = function(e2) {
|
|
37155
|
-
return
|
|
37149
|
+
return l3(e2, e2.length);
|
|
37156
37150
|
}, r2.binstring2buf = function(e2) {
|
|
37157
37151
|
for (var t2 = new h2.Buf8(e2.length), r22 = 0, n2 = t2.length; r22 < n2; r22++) t2[r22] = e2.charCodeAt(r22);
|
|
37158
37152
|
return t2;
|
|
37159
37153
|
}, r2.buf2string = function(e2, t2) {
|
|
37160
37154
|
var r22, n2, i2, s22, a = t2 || e2.length, o = new Array(2 * a);
|
|
37161
37155
|
for (r22 = n2 = 0; r22 < a; ) if ((i2 = e2[r22++]) < 128) o[n2++] = i2;
|
|
37162
|
-
else if (4 < (s22 =
|
|
37156
|
+
else if (4 < (s22 = u[i2])) o[n2++] = 65533, r22 += s22 - 1;
|
|
37163
37157
|
else {
|
|
37164
37158
|
for (i2 &= 2 === s22 ? 31 : 3 === s22 ? 15 : 7; 1 < s22 && r22 < a; ) i2 = i2 << 6 | 63 & e2[r22++], s22--;
|
|
37165
37159
|
1 < s22 ? o[n2++] = 65533 : i2 < 65536 ? o[n2++] = i2 : (i2 -= 65536, o[n2++] = 55296 | i2 >> 10 & 1023, o[n2++] = 56320 | 1023 & i2);
|
|
37166
37160
|
}
|
|
37167
|
-
return
|
|
37161
|
+
return l3(o, n2);
|
|
37168
37162
|
}, r2.utf8border = function(e2, t2) {
|
|
37169
37163
|
var r22;
|
|
37170
37164
|
for ((t2 = t2 || e2.length) > e2.length && (t2 = e2.length), r22 = t2 - 1; 0 <= r22 && 128 == (192 & e2[r22]); ) r22--;
|
|
37171
|
-
return r22 < 0 ? t2 : 0 === r22 ? t2 : r22 +
|
|
37165
|
+
return r22 < 0 ? t2 : 0 === r22 ? t2 : r22 + u[e2[r22]] > t2 ? r22 : t2;
|
|
37172
37166
|
};
|
|
37173
37167
|
}, { "./common": 41 }], 43: [function(e, t, r2) {
|
|
37174
37168
|
t.exports = function(e2, t2, r22, n) {
|
|
@@ -37196,11 +37190,11 @@ function requireJszip_min() {
|
|
|
37196
37190
|
return -1 ^ e2;
|
|
37197
37191
|
};
|
|
37198
37192
|
}, {}], 46: [function(e, t, r2) {
|
|
37199
|
-
var h2, c2 = e("../utils/common"),
|
|
37200
|
-
function
|
|
37193
|
+
var h2, c2 = e("../utils/common"), u = e("./trees"), d2 = e("./adler32"), p = e("./crc32"), n = e("./messages"), l3 = 0, f2 = 4, m2 = 0, _2 = -2, g = -1, b2 = 4, i = 2, v2 = 8, y2 = 9, s2 = 286, a = 30, o = 19, w2 = 2 * s2 + 1, k2 = 15, x = 3, S2 = 258, z2 = S2 + x + 1, C2 = 42, E2 = 113, A2 = 1, I2 = 2, O2 = 3, B2 = 4;
|
|
37194
|
+
function R2(e2, t2) {
|
|
37201
37195
|
return e2.msg = n[t2], t2;
|
|
37202
37196
|
}
|
|
37203
|
-
function
|
|
37197
|
+
function T(e2) {
|
|
37204
37198
|
return (e2 << 1) - (4 < e2 ? 9 : 0);
|
|
37205
37199
|
}
|
|
37206
37200
|
function D2(e2) {
|
|
@@ -37211,7 +37205,7 @@ function requireJszip_min() {
|
|
|
37211
37205
|
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));
|
|
37212
37206
|
}
|
|
37213
37207
|
function N2(e2, t2) {
|
|
37214
|
-
|
|
37208
|
+
u._tr_flush_block(e2, 0 <= e2.block_start ? e2.block_start : -1, e2.strstart - e2.block_start, t2), e2.block_start = e2.strstart, F2(e2.strm);
|
|
37215
37209
|
}
|
|
37216
37210
|
function U2(e2, t2) {
|
|
37217
37211
|
e2.pending_buf[e2.pending++] = t2;
|
|
@@ -37220,23 +37214,23 @@ function requireJszip_min() {
|
|
|
37220
37214
|
e2.pending_buf[e2.pending++] = t2 >>> 8 & 255, e2.pending_buf[e2.pending++] = 255 & t2;
|
|
37221
37215
|
}
|
|
37222
37216
|
function L2(e2, t2) {
|
|
37223
|
-
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,
|
|
37217
|
+
var r22, n2, i2 = e2.max_chain_length, s22 = e2.strstart, a2 = e2.prev_length, o2 = e2.nice_match, h22 = e2.strstart > e2.w_size - z2 ? e2.strstart - (e2.w_size - z2) : 0, u2 = e2.window, l22 = e2.w_mask, f22 = e2.prev, c22 = e2.strstart + S2, d22 = u2[s22 + a2 - 1], p2 = u2[s22 + a2];
|
|
37224
37218
|
e2.prev_length >= e2.good_match && (i2 >>= 2), o2 > e2.lookahead && (o2 = e2.lookahead);
|
|
37225
37219
|
do {
|
|
37226
|
-
if (
|
|
37220
|
+
if (u2[(r22 = t2) + a2] === p2 && u2[r22 + a2 - 1] === d22 && u2[r22] === u2[s22] && u2[++r22] === u2[s22 + 1]) {
|
|
37227
37221
|
s22 += 2, r22++;
|
|
37228
37222
|
do {
|
|
37229
|
-
} while (
|
|
37223
|
+
} while (u2[++s22] === u2[++r22] && u2[++s22] === u2[++r22] && u2[++s22] === u2[++r22] && u2[++s22] === u2[++r22] && u2[++s22] === u2[++r22] && u2[++s22] === u2[++r22] && u2[++s22] === u2[++r22] && u2[++s22] === u2[++r22] && s22 < c22);
|
|
37230
37224
|
if (n2 = S2 - (c22 - s22), s22 = c22 - S2, a2 < n2) {
|
|
37231
37225
|
if (e2.match_start = t2, o2 <= (a2 = n2)) break;
|
|
37232
|
-
d22 =
|
|
37226
|
+
d22 = u2[s22 + a2 - 1], p2 = u2[s22 + a2];
|
|
37233
37227
|
}
|
|
37234
37228
|
}
|
|
37235
|
-
} while ((t2 = f22[t2 &
|
|
37229
|
+
} while ((t2 = f22[t2 & l22]) > h22 && 0 != --i2);
|
|
37236
37230
|
return a2 <= e2.lookahead ? a2 : e2.lookahead;
|
|
37237
37231
|
}
|
|
37238
37232
|
function j2(e2) {
|
|
37239
|
-
var t2, r22, n2, i2, s22, a2, o2, h22,
|
|
37233
|
+
var t2, r22, n2, i2, s22, a2, o2, h22, u2, l22, f22 = e2.w_size;
|
|
37240
37234
|
do {
|
|
37241
37235
|
if (i2 = e2.window_size - e2.lookahead - e2.strstart, e2.strstart >= f22 + (f22 - z2)) {
|
|
37242
37236
|
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; ) ;
|
|
@@ -37244,38 +37238,38 @@ function requireJszip_min() {
|
|
|
37244
37238
|
i2 += f22;
|
|
37245
37239
|
}
|
|
37246
37240
|
if (0 === e2.strm.avail_in) break;
|
|
37247
|
-
if (a2 = e2.strm, o2 = e2.window, h22 = e2.strstart + e2.lookahead,
|
|
37241
|
+
if (a2 = e2.strm, o2 = e2.window, h22 = e2.strstart + e2.lookahead, u2 = i2, l22 = void 0, l22 = a2.avail_in, u2 < l22 && (l22 = u2), r22 = 0 === l22 ? 0 : (a2.avail_in -= l22, c2.arraySet(o2, a2.input, a2.next_in, l22, h22), 1 === a2.state.wrap ? a2.adler = d2(a2.adler, o2, l22, h22) : 2 === a2.state.wrap && (a2.adler = p(a2.adler, o2, l22, h22)), a2.next_in += l22, a2.total_in += l22, l22), e2.lookahead += r22, e2.lookahead + e2.insert >= x) for (s22 = e2.strstart - e2.insert, e2.ins_h = e2.window[s22], e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s22 + 1]) & e2.hash_mask; e2.insert && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s22 + x - 1]) & e2.hash_mask, e2.prev[s22 & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = s22, s22++, e2.insert--, !(e2.lookahead + e2.insert < x)); ) ;
|
|
37248
37242
|
} while (e2.lookahead < z2 && 0 !== e2.strm.avail_in);
|
|
37249
37243
|
}
|
|
37250
37244
|
function Z(e2, t2) {
|
|
37251
37245
|
for (var r22, n2; ; ) {
|
|
37252
37246
|
if (e2.lookahead < z2) {
|
|
37253
|
-
if (j2(e2), e2.lookahead < z2 && t2 ===
|
|
37247
|
+
if (j2(e2), e2.lookahead < z2 && t2 === l3) return A2;
|
|
37254
37248
|
if (0 === e2.lookahead) break;
|
|
37255
37249
|
}
|
|
37256
|
-
if (r22 = 0, e2.lookahead >=
|
|
37257
|
-
for (e2.match_length--; e2.strstart++, e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart +
|
|
37250
|
+
if (r22 = 0, e2.lookahead >= x && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 !== r22 && e2.strstart - r22 <= e2.w_size - z2 && (e2.match_length = L2(e2, r22)), e2.match_length >= x) if (n2 = u._tr_tally(e2, e2.strstart - e2.match_start, e2.match_length - x), e2.lookahead -= e2.match_length, e2.match_length <= e2.max_lazy_match && e2.lookahead >= x) {
|
|
37251
|
+
for (e2.match_length--; e2.strstart++, e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart, 0 != --e2.match_length; ) ;
|
|
37258
37252
|
e2.strstart++;
|
|
37259
37253
|
} 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;
|
|
37260
|
-
else n2 =
|
|
37254
|
+
else n2 = u._tr_tally(e2, 0, e2.window[e2.strstart]), e2.lookahead--, e2.strstart++;
|
|
37261
37255
|
if (n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
37262
37256
|
}
|
|
37263
|
-
return e2.insert = e2.strstart <
|
|
37257
|
+
return e2.insert = e2.strstart < x - 1 ? e2.strstart : x - 1, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O2 : B2) : e2.last_lit && (N2(e2, false), 0 === e2.strm.avail_out) ? A2 : I2;
|
|
37264
37258
|
}
|
|
37265
37259
|
function W2(e2, t2) {
|
|
37266
37260
|
for (var r22, n2, i2; ; ) {
|
|
37267
37261
|
if (e2.lookahead < z2) {
|
|
37268
|
-
if (j2(e2), e2.lookahead < z2 && t2 ===
|
|
37262
|
+
if (j2(e2), e2.lookahead < z2 && t2 === l3) return A2;
|
|
37269
37263
|
if (0 === e2.lookahead) break;
|
|
37270
37264
|
}
|
|
37271
|
-
if (r22 = 0, e2.lookahead >=
|
|
37272
|
-
for (i2 = e2.strstart + e2.lookahead -
|
|
37273
|
-
if (e2.match_available = 0, e2.match_length =
|
|
37265
|
+
if (r22 = 0, e2.lookahead >= x && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), e2.prev_length = e2.match_length, e2.prev_match = e2.match_start, e2.match_length = x - 1, 0 !== r22 && e2.prev_length < e2.max_lazy_match && e2.strstart - r22 <= e2.w_size - z2 && (e2.match_length = L2(e2, r22), e2.match_length <= 5 && (1 === e2.strategy || e2.match_length === x && 4096 < e2.strstart - e2.match_start) && (e2.match_length = x - 1)), e2.prev_length >= x && e2.match_length <= e2.prev_length) {
|
|
37266
|
+
for (i2 = e2.strstart + e2.lookahead - x, n2 = u._tr_tally(e2, e2.strstart - 1 - e2.prev_match, e2.prev_length - x), e2.lookahead -= e2.prev_length - 1, e2.prev_length -= 2; ++e2.strstart <= i2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 != --e2.prev_length; ) ;
|
|
37267
|
+
if (e2.match_available = 0, e2.match_length = x - 1, e2.strstart++, n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
37274
37268
|
} else if (e2.match_available) {
|
|
37275
|
-
if ((n2 =
|
|
37269
|
+
if ((n2 = u._tr_tally(e2, 0, e2.window[e2.strstart - 1])) && N2(e2, false), e2.strstart++, e2.lookahead--, 0 === e2.strm.avail_out) return A2;
|
|
37276
37270
|
} else e2.match_available = 1, e2.strstart++, e2.lookahead--;
|
|
37277
37271
|
}
|
|
37278
|
-
return e2.match_available && (n2 =
|
|
37272
|
+
return e2.match_available && (n2 = u._tr_tally(e2, 0, e2.window[e2.strstart - 1]), e2.match_available = 0), e2.insert = e2.strstart < x - 1 ? e2.strstart : x - 1, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O2 : B2) : e2.last_lit && (N2(e2, false), 0 === e2.strm.avail_out) ? A2 : I2;
|
|
37279
37273
|
}
|
|
37280
37274
|
function M2(e2, t2, r22, n2, i2) {
|
|
37281
37275
|
this.good_length = e2, this.max_lazy = t2, this.nice_length = r22, this.max_chain = n2, this.func = i2;
|
|
@@ -37285,27 +37279,27 @@ function requireJszip_min() {
|
|
|
37285
37279
|
}
|
|
37286
37280
|
function G2(e2) {
|
|
37287
37281
|
var t2;
|
|
37288
|
-
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 =
|
|
37282
|
+
return e2 && e2.state ? (e2.total_in = e2.total_out = 0, e2.data_type = i, (t2 = e2.state).pending = 0, t2.pending_out = 0, t2.wrap < 0 && (t2.wrap = -t2.wrap), t2.status = t2.wrap ? C2 : E2, e2.adler = 2 === t2.wrap ? 0 : 1, t2.last_flush = l3, u._tr_init(t2), m2) : R2(e2, _2);
|
|
37289
37283
|
}
|
|
37290
37284
|
function K2(e2) {
|
|
37291
37285
|
var t2 = G2(e2);
|
|
37292
37286
|
return t2 === m2 && (function(e3) {
|
|
37293
|
-
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 =
|
|
37287
|
+
e3.window_size = 2 * e3.w_size, D2(e3.head), e3.max_lazy_match = h2[e3.level].max_lazy, e3.good_match = h2[e3.level].good_length, e3.nice_match = h2[e3.level].nice_length, e3.max_chain_length = h2[e3.level].max_chain, e3.strstart = 0, e3.block_start = 0, e3.lookahead = 0, e3.insert = 0, e3.match_length = e3.prev_length = x - 1, e3.match_available = 0, e3.ins_h = 0;
|
|
37294
37288
|
})(e2.state), t2;
|
|
37295
37289
|
}
|
|
37296
37290
|
function Y2(e2, t2, r22, n2, i2, s22) {
|
|
37297
37291
|
if (!e2) return _2;
|
|
37298
37292
|
var a2 = 1;
|
|
37299
|
-
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
|
|
37293
|
+
if (t2 === g && (t2 = 6), n2 < 0 ? (a2 = 0, n2 = -n2) : 15 < n2 && (a2 = 2, n2 -= 16), i2 < 1 || y2 < i2 || r22 !== v2 || n2 < 8 || 15 < n2 || t2 < 0 || 9 < t2 || s22 < 0 || b2 < s22) return R2(e2, _2);
|
|
37300
37294
|
8 === n2 && (n2 = 9);
|
|
37301
37295
|
var o2 = new H();
|
|
37302
|
-
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 +
|
|
37296
|
+
return (e2.state = o2).strm = e2, o2.wrap = a2, o2.gzhead = null, o2.w_bits = n2, o2.w_size = 1 << o2.w_bits, o2.w_mask = o2.w_size - 1, o2.hash_bits = i2 + 7, o2.hash_size = 1 << o2.hash_bits, o2.hash_mask = o2.hash_size - 1, o2.hash_shift = ~~((o2.hash_bits + x - 1) / x), o2.window = new c2.Buf8(2 * o2.w_size), o2.head = new c2.Buf16(o2.hash_size), o2.prev = new c2.Buf16(o2.w_size), o2.lit_bufsize = 1 << i2 + 6, o2.pending_buf_size = 4 * o2.lit_bufsize, o2.pending_buf = new c2.Buf8(o2.pending_buf_size), o2.d_buf = 1 * o2.lit_bufsize, o2.l_buf = 3 * o2.lit_bufsize, o2.level = t2, o2.strategy = s22, o2.method = r22, K2(e2);
|
|
37303
37297
|
}
|
|
37304
37298
|
h2 = [new M2(0, 0, 0, 0, function(e2, t2) {
|
|
37305
37299
|
var r22 = 65535;
|
|
37306
37300
|
for (r22 > e2.pending_buf_size - 5 && (r22 = e2.pending_buf_size - 5); ; ) {
|
|
37307
37301
|
if (e2.lookahead <= 1) {
|
|
37308
|
-
if (j2(e2), 0 === e2.lookahead && t2 ===
|
|
37302
|
+
if (j2(e2), 0 === e2.lookahead && t2 === l3) return A2;
|
|
37309
37303
|
if (0 === e2.lookahead) break;
|
|
37310
37304
|
}
|
|
37311
37305
|
e2.strstart += e2.lookahead, e2.lookahead = 0;
|
|
@@ -37313,15 +37307,15 @@ function requireJszip_min() {
|
|
|
37313
37307
|
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;
|
|
37314
37308
|
if (e2.strstart - e2.block_start >= e2.w_size - z2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
37315
37309
|
}
|
|
37316
|
-
return e2.insert = 0, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ?
|
|
37310
|
+
return e2.insert = 0, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O2 : B2) : (e2.strstart > e2.block_start && (N2(e2, false), e2.strm.avail_out), A2);
|
|
37317
37311
|
}), 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) {
|
|
37318
37312
|
return Y2(e2, t2, v2, 15, 8, 0);
|
|
37319
37313
|
}, r2.deflateInit2 = Y2, r2.deflateReset = K2, r2.deflateResetKeep = G2, r2.deflateSetHeader = function(e2, t2) {
|
|
37320
37314
|
return e2 && e2.state ? 2 !== e2.state.wrap ? _2 : (e2.state.gzhead = t2, m2) : _2;
|
|
37321
37315
|
}, r2.deflate = function(e2, t2) {
|
|
37322
37316
|
var r22, n2, i2, s22;
|
|
37323
|
-
if (!e2 || !e2.state || 5 < t2 || t2 < 0) return e2 ?
|
|
37324
|
-
if (n2 = e2.state, !e2.output || !e2.input && 0 !== e2.avail_in || 666 === n2.status && t2 !== f2) return
|
|
37317
|
+
if (!e2 || !e2.state || 5 < t2 || t2 < 0) return e2 ? R2(e2, _2) : _2;
|
|
37318
|
+
if (n2 = e2.state, !e2.output || !e2.input && 0 !== e2.avail_in || 666 === n2.status && t2 !== f2) return R2(e2, 0 === e2.avail_out ? -5 : _2);
|
|
37325
37319
|
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);
|
|
37326
37320
|
else {
|
|
37327
37321
|
var a2 = v2 + (n2.w_bits - 8 << 4) << 8;
|
|
@@ -37355,50 +37349,50 @@ function requireJszip_min() {
|
|
|
37355
37349
|
} else n2.status = 103;
|
|
37356
37350
|
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) {
|
|
37357
37351
|
if (F2(e2), 0 === e2.avail_out) return n2.last_flush = -1, m2;
|
|
37358
|
-
} else if (0 === e2.avail_in &&
|
|
37359
|
-
if (666 === n2.status && 0 !== e2.avail_in) return
|
|
37360
|
-
if (0 !== e2.avail_in || 0 !== n2.lookahead || t2 !==
|
|
37352
|
+
} else if (0 === e2.avail_in && T(t2) <= T(r22) && t2 !== f2) return R2(e2, -5);
|
|
37353
|
+
if (666 === n2.status && 0 !== e2.avail_in) return R2(e2, -5);
|
|
37354
|
+
if (0 !== e2.avail_in || 0 !== n2.lookahead || t2 !== l3 && 666 !== n2.status) {
|
|
37361
37355
|
var o2 = 2 === n2.strategy ? (function(e3, t3) {
|
|
37362
37356
|
for (var r3; ; ) {
|
|
37363
37357
|
if (0 === e3.lookahead && (j2(e3), 0 === e3.lookahead)) {
|
|
37364
|
-
if (t3 ===
|
|
37358
|
+
if (t3 === l3) return A2;
|
|
37365
37359
|
break;
|
|
37366
37360
|
}
|
|
37367
|
-
if (e3.match_length = 0, r3 =
|
|
37361
|
+
if (e3.match_length = 0, r3 = u._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++, r3 && (N2(e3, false), 0 === e3.strm.avail_out)) return A2;
|
|
37368
37362
|
}
|
|
37369
|
-
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ?
|
|
37363
|
+
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ? O2 : B2) : e3.last_lit && (N2(e3, false), 0 === e3.strm.avail_out) ? A2 : I2;
|
|
37370
37364
|
})(n2, t2) : 3 === n2.strategy ? (function(e3, t3) {
|
|
37371
37365
|
for (var r3, n3, i3, s3, a3 = e3.window; ; ) {
|
|
37372
37366
|
if (e3.lookahead <= S2) {
|
|
37373
|
-
if (j2(e3), e3.lookahead <= S2 && t3 ===
|
|
37367
|
+
if (j2(e3), e3.lookahead <= S2 && t3 === l3) return A2;
|
|
37374
37368
|
if (0 === e3.lookahead) break;
|
|
37375
37369
|
}
|
|
37376
|
-
if (e3.match_length = 0, e3.lookahead >=
|
|
37370
|
+
if (e3.match_length = 0, e3.lookahead >= x && 0 < e3.strstart && (n3 = a3[i3 = e3.strstart - 1]) === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3]) {
|
|
37377
37371
|
s3 = e3.strstart + S2;
|
|
37378
37372
|
do {
|
|
37379
37373
|
} 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);
|
|
37380
37374
|
e3.match_length = S2 - (s3 - i3), e3.match_length > e3.lookahead && (e3.match_length = e3.lookahead);
|
|
37381
37375
|
}
|
|
37382
|
-
if (e3.match_length >=
|
|
37376
|
+
if (e3.match_length >= x ? (r3 = u._tr_tally(e3, 1, e3.match_length - x), e3.lookahead -= e3.match_length, e3.strstart += e3.match_length, e3.match_length = 0) : (r3 = u._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++), r3 && (N2(e3, false), 0 === e3.strm.avail_out)) return A2;
|
|
37383
37377
|
}
|
|
37384
|
-
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ?
|
|
37378
|
+
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ? O2 : B2) : e3.last_lit && (N2(e3, false), 0 === e3.strm.avail_out) ? A2 : I2;
|
|
37385
37379
|
})(n2, t2) : h2[n2.level].func(n2, t2);
|
|
37386
|
-
if (o2 !==
|
|
37387
|
-
if (o2 === I2 && (1 === t2 ?
|
|
37380
|
+
if (o2 !== O2 && o2 !== B2 || (n2.status = 666), o2 === A2 || o2 === O2) return 0 === e2.avail_out && (n2.last_flush = -1), m2;
|
|
37381
|
+
if (o2 === I2 && (1 === t2 ? u._tr_align(n2) : 5 !== t2 && (u._tr_stored_block(n2, 0, 0, false), 3 === t2 && (D2(n2.head), 0 === n2.lookahead && (n2.strstart = 0, n2.block_start = 0, n2.insert = 0))), F2(e2), 0 === e2.avail_out)) return n2.last_flush = -1, m2;
|
|
37388
37382
|
}
|
|
37389
37383
|
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);
|
|
37390
37384
|
}, r2.deflateEnd = function(e2) {
|
|
37391
37385
|
var t2;
|
|
37392
|
-
return e2 && e2.state ? (t2 = e2.state.status) !== C2 && 69 !== t2 && 73 !== t2 && 91 !== t2 && 103 !== t2 && t2 !== E2 && 666 !== t2 ?
|
|
37386
|
+
return e2 && e2.state ? (t2 = e2.state.status) !== C2 && 69 !== t2 && 73 !== t2 && 91 !== t2 && 103 !== t2 && t2 !== E2 && 666 !== t2 ? R2(e2, _2) : (e2.state = null, t2 === E2 ? R2(e2, -3) : m2) : _2;
|
|
37393
37387
|
}, r2.deflateSetDictionary = function(e2, t2) {
|
|
37394
|
-
var r22, n2, i2, s22, a2, o2, h22,
|
|
37388
|
+
var r22, n2, i2, s22, a2, o2, h22, u2, l22 = t2.length;
|
|
37395
37389
|
if (!e2 || !e2.state) return _2;
|
|
37396
37390
|
if (2 === (s22 = (r22 = e2.state).wrap) || 1 === s22 && r22.status !== C2 || r22.lookahead) return _2;
|
|
37397
|
-
for (1 === s22 && (e2.adler = d2(e2.adler, t2,
|
|
37398
|
-
for (n2 = r22.strstart, i2 = r22.lookahead - (
|
|
37399
|
-
r22.strstart = n2, r22.lookahead =
|
|
37391
|
+
for (1 === s22 && (e2.adler = d2(e2.adler, t2, l22, 0)), r22.wrap = 0, l22 >= r22.w_size && (0 === s22 && (D2(r22.head), r22.strstart = 0, r22.block_start = 0, r22.insert = 0), u2 = new c2.Buf8(r22.w_size), c2.arraySet(u2, t2, l22 - r22.w_size, r22.w_size, 0), t2 = u2, l22 = r22.w_size), a2 = e2.avail_in, o2 = e2.next_in, h22 = e2.input, e2.avail_in = l22, e2.next_in = 0, e2.input = t2, j2(r22); r22.lookahead >= x; ) {
|
|
37392
|
+
for (n2 = r22.strstart, i2 = r22.lookahead - (x - 1); r22.ins_h = (r22.ins_h << r22.hash_shift ^ r22.window[n2 + x - 1]) & r22.hash_mask, r22.prev[n2 & r22.w_mask] = r22.head[r22.ins_h], r22.head[r22.ins_h] = n2, n2++, --i2; ) ;
|
|
37393
|
+
r22.strstart = n2, r22.lookahead = x - 1, j2(r22);
|
|
37400
37394
|
}
|
|
37401
|
-
return r22.strstart += r22.lookahead, r22.block_start = r22.strstart, r22.insert = r22.lookahead, r22.lookahead = 0, r22.match_length = r22.prev_length =
|
|
37395
|
+
return r22.strstart += r22.lookahead, r22.block_start = r22.strstart, r22.insert = r22.lookahead, r22.lookahead = 0, r22.match_length = r22.prev_length = x - 1, r22.match_available = 0, e2.next_in = o2, e2.input = h22, e2.avail_in = a2, r22.wrap = s22, m2;
|
|
37402
37396
|
}, r2.deflateInfo = "pako deflate (from Nodeca project)";
|
|
37403
37397
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(e, t, r2) {
|
|
37404
37398
|
t.exports = function() {
|
|
@@ -37406,8 +37400,8 @@ function requireJszip_min() {
|
|
|
37406
37400
|
};
|
|
37407
37401
|
}, {}], 48: [function(e, t, r2) {
|
|
37408
37402
|
t.exports = function(e2, t2) {
|
|
37409
|
-
var r22, n, i, s2, a, o, h2,
|
|
37410
|
-
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,
|
|
37403
|
+
var r22, n, i, s2, a, o, h2, u, l3, f2, c2, d2, p, m2, _2, g, b2, v2, y2, w2, k2, x, S2, z2, C2;
|
|
37404
|
+
r22 = e2.state, n = e2.next_in, z2 = e2.input, i = n + (e2.avail_in - 5), s2 = e2.next_out, C2 = e2.output, a = s2 - (t2 - e2.avail_out), o = s2 + (e2.avail_out - 257), h2 = r22.dmax, u = r22.wsize, l3 = r22.whave, f2 = r22.wnext, c2 = r22.window, d2 = r22.hold, p = r22.bits, m2 = r22.lencode, _2 = r22.distcode, g = (1 << r22.lenbits) - 1, b2 = (1 << r22.distbits) - 1;
|
|
37411
37405
|
e: do {
|
|
37412
37406
|
p < 15 && (d2 += z2[n++] << p, p += 8, d2 += z2[n++] << p, p += 8), v2 = m2[d2 & g];
|
|
37413
37407
|
t: for (; ; ) {
|
|
@@ -37440,32 +37434,32 @@ function requireJszip_min() {
|
|
|
37440
37434
|
break e;
|
|
37441
37435
|
}
|
|
37442
37436
|
if (d2 >>>= y2, p -= y2, (y2 = s2 - a) < k2) {
|
|
37443
|
-
if (
|
|
37437
|
+
if (l3 < (y2 = k2 - y2) && r22.sane) {
|
|
37444
37438
|
e2.msg = "invalid distance too far back", r22.mode = 30;
|
|
37445
37439
|
break e;
|
|
37446
37440
|
}
|
|
37447
|
-
if (S2 = c2, (
|
|
37448
|
-
if (
|
|
37449
|
-
for (w2 -= y2; C2[s2++] = c2[
|
|
37450
|
-
|
|
37441
|
+
if (S2 = c2, (x = 0) === f2) {
|
|
37442
|
+
if (x += u - y2, y2 < w2) {
|
|
37443
|
+
for (w2 -= y2; C2[s2++] = c2[x++], --y2; ) ;
|
|
37444
|
+
x = s2 - k2, S2 = C2;
|
|
37451
37445
|
}
|
|
37452
37446
|
} else if (f2 < y2) {
|
|
37453
|
-
if (
|
|
37454
|
-
for (w2 -= y2; C2[s2++] = c2[
|
|
37455
|
-
if (
|
|
37456
|
-
for (w2 -= y2 = f2; C2[s2++] = c2[
|
|
37457
|
-
|
|
37447
|
+
if (x += u + f2 - y2, (y2 -= f2) < w2) {
|
|
37448
|
+
for (w2 -= y2; C2[s2++] = c2[x++], --y2; ) ;
|
|
37449
|
+
if (x = 0, f2 < w2) {
|
|
37450
|
+
for (w2 -= y2 = f2; C2[s2++] = c2[x++], --y2; ) ;
|
|
37451
|
+
x = s2 - k2, S2 = C2;
|
|
37458
37452
|
}
|
|
37459
37453
|
}
|
|
37460
|
-
} else if (
|
|
37461
|
-
for (w2 -= y2; C2[s2++] = c2[
|
|
37462
|
-
|
|
37454
|
+
} else if (x += f2 - y2, y2 < w2) {
|
|
37455
|
+
for (w2 -= y2; C2[s2++] = c2[x++], --y2; ) ;
|
|
37456
|
+
x = s2 - k2, S2 = C2;
|
|
37463
37457
|
}
|
|
37464
|
-
for (; 2 < w2; ) C2[s2++] = S2[
|
|
37465
|
-
w2 && (C2[s2++] = S2[
|
|
37458
|
+
for (; 2 < w2; ) C2[s2++] = S2[x++], C2[s2++] = S2[x++], C2[s2++] = S2[x++], w2 -= 3;
|
|
37459
|
+
w2 && (C2[s2++] = S2[x++], 1 < w2 && (C2[s2++] = S2[x++]));
|
|
37466
37460
|
} else {
|
|
37467
|
-
for (
|
|
37468
|
-
w2 && (C2[s2++] = C2[
|
|
37461
|
+
for (x = s2 - k2; C2[s2++] = C2[x++], C2[s2++] = C2[x++], C2[s2++] = C2[x++], 2 < (w2 -= 3); ) ;
|
|
37462
|
+
w2 && (C2[s2++] = C2[x++], 1 < w2 && (C2[s2++] = C2[x++]));
|
|
37469
37463
|
}
|
|
37470
37464
|
break;
|
|
37471
37465
|
}
|
|
@@ -37476,7 +37470,7 @@ function requireJszip_min() {
|
|
|
37476
37470
|
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;
|
|
37477
37471
|
};
|
|
37478
37472
|
}, {}], 49: [function(e, t, r2) {
|
|
37479
|
-
var I2 = e("../utils/common"),
|
|
37473
|
+
var I2 = e("../utils/common"), O2 = e("./adler32"), B2 = e("./crc32"), R2 = e("./inffast"), T = e("./inftrees"), D2 = 1, F2 = 2, N2 = 0, U2 = -2, P2 = 1, n = 852, i = 592;
|
|
37480
37474
|
function L2(e2) {
|
|
37481
37475
|
return (e2 >>> 24 & 255) + (e2 >>> 8 & 65280) + ((65280 & e2) << 8) + ((255 & e2) << 24);
|
|
37482
37476
|
}
|
|
@@ -37495,68 +37489,68 @@ function requireJszip_min() {
|
|
|
37495
37489
|
var r22, n2;
|
|
37496
37490
|
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;
|
|
37497
37491
|
}
|
|
37498
|
-
function
|
|
37492
|
+
function u(e2, t2) {
|
|
37499
37493
|
var r22, n2;
|
|
37500
37494
|
return e2 ? (n2 = new s2(), (e2.state = n2).window = null, (r22 = h2(e2, t2)) !== N2 && (e2.state = null), r22) : U2;
|
|
37501
37495
|
}
|
|
37502
|
-
var
|
|
37496
|
+
var l3, f2, c2 = true;
|
|
37503
37497
|
function j2(e2) {
|
|
37504
37498
|
if (c2) {
|
|
37505
37499
|
var t2;
|
|
37506
|
-
for (
|
|
37500
|
+
for (l3 = new I2.Buf32(512), f2 = new I2.Buf32(32), t2 = 0; t2 < 144; ) e2.lens[t2++] = 8;
|
|
37507
37501
|
for (; t2 < 256; ) e2.lens[t2++] = 9;
|
|
37508
37502
|
for (; t2 < 280; ) e2.lens[t2++] = 7;
|
|
37509
37503
|
for (; t2 < 288; ) e2.lens[t2++] = 8;
|
|
37510
|
-
for (
|
|
37511
|
-
|
|
37504
|
+
for (T(D2, e2.lens, 0, 288, l3, 0, e2.work, { bits: 9 }), t2 = 0; t2 < 32; ) e2.lens[t2++] = 5;
|
|
37505
|
+
T(F2, e2.lens, 0, 32, f2, 0, e2.work, { bits: 5 }), c2 = false;
|
|
37512
37506
|
}
|
|
37513
|
-
e2.lencode =
|
|
37507
|
+
e2.lencode = l3, e2.lenbits = 9, e2.distcode = f2, e2.distbits = 5;
|
|
37514
37508
|
}
|
|
37515
37509
|
function Z(e2, t2, r22, n2) {
|
|
37516
37510
|
var i2, s22 = e2.state;
|
|
37517
37511
|
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;
|
|
37518
37512
|
}
|
|
37519
37513
|
r2.inflateReset = o, r2.inflateReset2 = h2, r2.inflateResetKeep = a, r2.inflateInit = function(e2) {
|
|
37520
|
-
return
|
|
37521
|
-
}, r2.inflateInit2 =
|
|
37522
|
-
var r22, n2, i2, s22, a2, o2, h22,
|
|
37514
|
+
return u(e2, 15);
|
|
37515
|
+
}, r2.inflateInit2 = u, r2.inflate = function(e2, t2) {
|
|
37516
|
+
var r22, n2, i2, s22, a2, o2, h22, u2, l22, f22, c22, d2, p, m2, _2, g, b2, v2, y2, w2, k2, x, S2, z2, C2 = 0, E2 = new I2.Buf8(4), A2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
37523
37517
|
if (!e2 || !e2.state || !e2.output || !e2.input && 0 !== e2.avail_in) return U2;
|
|
37524
|
-
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,
|
|
37518
|
+
12 === (r22 = e2.state).mode && (r22.mode = 13), a2 = e2.next_out, i2 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l22 = r22.bits, f22 = o2, c22 = h22, x = N2;
|
|
37525
37519
|
e: for (; ; ) switch (r22.mode) {
|
|
37526
37520
|
case P2:
|
|
37527
37521
|
if (0 === r22.wrap) {
|
|
37528
37522
|
r22.mode = 13;
|
|
37529
37523
|
break;
|
|
37530
37524
|
}
|
|
37531
|
-
for (;
|
|
37525
|
+
for (; l22 < 16; ) {
|
|
37532
37526
|
if (0 === o2) break e;
|
|
37533
|
-
o2--,
|
|
37527
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37534
37528
|
}
|
|
37535
|
-
if (2 & r22.wrap && 35615 ===
|
|
37536
|
-
E2[r22.check = 0] = 255 &
|
|
37529
|
+
if (2 & r22.wrap && 35615 === u2) {
|
|
37530
|
+
E2[r22.check = 0] = 255 & u2, E2[1] = u2 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0), l22 = u2 = 0, r22.mode = 2;
|
|
37537
37531
|
break;
|
|
37538
37532
|
}
|
|
37539
|
-
if (r22.flags = 0, r22.head && (r22.head.done = false), !(1 & r22.wrap) || (((255 &
|
|
37533
|
+
if (r22.flags = 0, r22.head && (r22.head.done = false), !(1 & r22.wrap) || (((255 & u2) << 8) + (u2 >> 8)) % 31) {
|
|
37540
37534
|
e2.msg = "incorrect header check", r22.mode = 30;
|
|
37541
37535
|
break;
|
|
37542
37536
|
}
|
|
37543
|
-
if (8 != (15 &
|
|
37537
|
+
if (8 != (15 & u2)) {
|
|
37544
37538
|
e2.msg = "unknown compression method", r22.mode = 30;
|
|
37545
37539
|
break;
|
|
37546
37540
|
}
|
|
37547
|
-
if (
|
|
37541
|
+
if (l22 -= 4, k2 = 8 + (15 & (u2 >>>= 4)), 0 === r22.wbits) r22.wbits = k2;
|
|
37548
37542
|
else if (k2 > r22.wbits) {
|
|
37549
37543
|
e2.msg = "invalid window size", r22.mode = 30;
|
|
37550
37544
|
break;
|
|
37551
37545
|
}
|
|
37552
|
-
r22.dmax = 1 << k2, e2.adler = r22.check = 1, r22.mode = 512 &
|
|
37546
|
+
r22.dmax = 1 << k2, e2.adler = r22.check = 1, r22.mode = 512 & u2 ? 10 : 12, l22 = u2 = 0;
|
|
37553
37547
|
break;
|
|
37554
37548
|
case 2:
|
|
37555
|
-
for (;
|
|
37549
|
+
for (; l22 < 16; ) {
|
|
37556
37550
|
if (0 === o2) break e;
|
|
37557
|
-
o2--,
|
|
37551
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37558
37552
|
}
|
|
37559
|
-
if (r22.flags =
|
|
37553
|
+
if (r22.flags = u2, 8 != (255 & r22.flags)) {
|
|
37560
37554
|
e2.msg = "unknown compression method", r22.mode = 30;
|
|
37561
37555
|
break;
|
|
37562
37556
|
}
|
|
@@ -37564,26 +37558,26 @@ function requireJszip_min() {
|
|
|
37564
37558
|
e2.msg = "unknown header flags set", r22.mode = 30;
|
|
37565
37559
|
break;
|
|
37566
37560
|
}
|
|
37567
|
-
r22.head && (r22.head.text =
|
|
37561
|
+
r22.head && (r22.head.text = u2 >> 8 & 1), 512 & r22.flags && (E2[0] = 255 & u2, E2[1] = u2 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0)), l22 = u2 = 0, r22.mode = 3;
|
|
37568
37562
|
case 3:
|
|
37569
|
-
for (;
|
|
37563
|
+
for (; l22 < 32; ) {
|
|
37570
37564
|
if (0 === o2) break e;
|
|
37571
|
-
o2--,
|
|
37565
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37572
37566
|
}
|
|
37573
|
-
r22.head && (r22.head.time =
|
|
37567
|
+
r22.head && (r22.head.time = u2), 512 & r22.flags && (E2[0] = 255 & u2, E2[1] = u2 >>> 8 & 255, E2[2] = u2 >>> 16 & 255, E2[3] = u2 >>> 24 & 255, r22.check = B2(r22.check, E2, 4, 0)), l22 = u2 = 0, r22.mode = 4;
|
|
37574
37568
|
case 4:
|
|
37575
|
-
for (;
|
|
37569
|
+
for (; l22 < 16; ) {
|
|
37576
37570
|
if (0 === o2) break e;
|
|
37577
|
-
o2--,
|
|
37571
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37578
37572
|
}
|
|
37579
|
-
r22.head && (r22.head.xflags = 255 &
|
|
37573
|
+
r22.head && (r22.head.xflags = 255 & u2, r22.head.os = u2 >> 8), 512 & r22.flags && (E2[0] = 255 & u2, E2[1] = u2 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0)), l22 = u2 = 0, r22.mode = 5;
|
|
37580
37574
|
case 5:
|
|
37581
37575
|
if (1024 & r22.flags) {
|
|
37582
|
-
for (;
|
|
37576
|
+
for (; l22 < 16; ) {
|
|
37583
37577
|
if (0 === o2) break e;
|
|
37584
|
-
o2--,
|
|
37578
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37585
37579
|
}
|
|
37586
|
-
r22.length =
|
|
37580
|
+
r22.length = u2, r22.head && (r22.head.extra_len = u2), 512 & r22.flags && (E2[0] = 255 & u2, E2[1] = u2 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0)), l22 = u2 = 0;
|
|
37587
37581
|
} else r22.head && (r22.head.extra = null);
|
|
37588
37582
|
r22.mode = 6;
|
|
37589
37583
|
case 6:
|
|
@@ -37605,45 +37599,45 @@ function requireJszip_min() {
|
|
|
37605
37599
|
r22.mode = 9;
|
|
37606
37600
|
case 9:
|
|
37607
37601
|
if (512 & r22.flags) {
|
|
37608
|
-
for (;
|
|
37602
|
+
for (; l22 < 16; ) {
|
|
37609
37603
|
if (0 === o2) break e;
|
|
37610
|
-
o2--,
|
|
37604
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37611
37605
|
}
|
|
37612
|
-
if (
|
|
37606
|
+
if (u2 !== (65535 & r22.check)) {
|
|
37613
37607
|
e2.msg = "header crc mismatch", r22.mode = 30;
|
|
37614
37608
|
break;
|
|
37615
37609
|
}
|
|
37616
|
-
|
|
37610
|
+
l22 = u2 = 0;
|
|
37617
37611
|
}
|
|
37618
37612
|
r22.head && (r22.head.hcrc = r22.flags >> 9 & 1, r22.head.done = true), e2.adler = r22.check = 0, r22.mode = 12;
|
|
37619
37613
|
break;
|
|
37620
37614
|
case 10:
|
|
37621
|
-
for (;
|
|
37615
|
+
for (; l22 < 32; ) {
|
|
37622
37616
|
if (0 === o2) break e;
|
|
37623
|
-
o2--,
|
|
37617
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37624
37618
|
}
|
|
37625
|
-
e2.adler = r22.check = L2(
|
|
37619
|
+
e2.adler = r22.check = L2(u2), l22 = u2 = 0, r22.mode = 11;
|
|
37626
37620
|
case 11:
|
|
37627
|
-
if (0 === r22.havedict) return e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold =
|
|
37621
|
+
if (0 === r22.havedict) return e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l22, 2;
|
|
37628
37622
|
e2.adler = r22.check = 1, r22.mode = 12;
|
|
37629
37623
|
case 12:
|
|
37630
37624
|
if (5 === t2 || 6 === t2) break e;
|
|
37631
37625
|
case 13:
|
|
37632
37626
|
if (r22.last) {
|
|
37633
|
-
|
|
37627
|
+
u2 >>>= 7 & l22, l22 -= 7 & l22, r22.mode = 27;
|
|
37634
37628
|
break;
|
|
37635
37629
|
}
|
|
37636
|
-
for (;
|
|
37630
|
+
for (; l22 < 3; ) {
|
|
37637
37631
|
if (0 === o2) break e;
|
|
37638
|
-
o2--,
|
|
37632
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37639
37633
|
}
|
|
37640
|
-
switch (r22.last = 1 &
|
|
37634
|
+
switch (r22.last = 1 & u2, l22 -= 1, 3 & (u2 >>>= 1)) {
|
|
37641
37635
|
case 0:
|
|
37642
37636
|
r22.mode = 14;
|
|
37643
37637
|
break;
|
|
37644
37638
|
case 1:
|
|
37645
37639
|
if (j2(r22), r22.mode = 20, 6 !== t2) break;
|
|
37646
|
-
|
|
37640
|
+
u2 >>>= 2, l22 -= 2;
|
|
37647
37641
|
break e;
|
|
37648
37642
|
case 2:
|
|
37649
37643
|
r22.mode = 17;
|
|
@@ -37651,18 +37645,18 @@ function requireJszip_min() {
|
|
|
37651
37645
|
case 3:
|
|
37652
37646
|
e2.msg = "invalid block type", r22.mode = 30;
|
|
37653
37647
|
}
|
|
37654
|
-
|
|
37648
|
+
u2 >>>= 2, l22 -= 2;
|
|
37655
37649
|
break;
|
|
37656
37650
|
case 14:
|
|
37657
|
-
for (
|
|
37651
|
+
for (u2 >>>= 7 & l22, l22 -= 7 & l22; l22 < 32; ) {
|
|
37658
37652
|
if (0 === o2) break e;
|
|
37659
|
-
o2--,
|
|
37653
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37660
37654
|
}
|
|
37661
|
-
if ((65535 &
|
|
37655
|
+
if ((65535 & u2) != (u2 >>> 16 ^ 65535)) {
|
|
37662
37656
|
e2.msg = "invalid stored block lengths", r22.mode = 30;
|
|
37663
37657
|
break;
|
|
37664
37658
|
}
|
|
37665
|
-
if (r22.length = 65535 &
|
|
37659
|
+
if (r22.length = 65535 & u2, l22 = u2 = 0, r22.mode = 15, 6 === t2) break e;
|
|
37666
37660
|
case 15:
|
|
37667
37661
|
r22.mode = 16;
|
|
37668
37662
|
case 16:
|
|
@@ -37674,59 +37668,59 @@ function requireJszip_min() {
|
|
|
37674
37668
|
r22.mode = 12;
|
|
37675
37669
|
break;
|
|
37676
37670
|
case 17:
|
|
37677
|
-
for (;
|
|
37671
|
+
for (; l22 < 14; ) {
|
|
37678
37672
|
if (0 === o2) break e;
|
|
37679
|
-
o2--,
|
|
37673
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37680
37674
|
}
|
|
37681
|
-
if (r22.nlen = 257 + (31 &
|
|
37675
|
+
if (r22.nlen = 257 + (31 & u2), u2 >>>= 5, l22 -= 5, r22.ndist = 1 + (31 & u2), u2 >>>= 5, l22 -= 5, r22.ncode = 4 + (15 & u2), u2 >>>= 4, l22 -= 4, 286 < r22.nlen || 30 < r22.ndist) {
|
|
37682
37676
|
e2.msg = "too many length or distance symbols", r22.mode = 30;
|
|
37683
37677
|
break;
|
|
37684
37678
|
}
|
|
37685
37679
|
r22.have = 0, r22.mode = 18;
|
|
37686
37680
|
case 18:
|
|
37687
37681
|
for (; r22.have < r22.ncode; ) {
|
|
37688
|
-
for (;
|
|
37682
|
+
for (; l22 < 3; ) {
|
|
37689
37683
|
if (0 === o2) break e;
|
|
37690
|
-
o2--,
|
|
37684
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37691
37685
|
}
|
|
37692
|
-
r22.lens[A2[r22.have++]] = 7 &
|
|
37686
|
+
r22.lens[A2[r22.have++]] = 7 & u2, u2 >>>= 3, l22 -= 3;
|
|
37693
37687
|
}
|
|
37694
37688
|
for (; r22.have < 19; ) r22.lens[A2[r22.have++]] = 0;
|
|
37695
|
-
if (r22.lencode = r22.lendyn, r22.lenbits = 7, S2 = { bits: r22.lenbits },
|
|
37689
|
+
if (r22.lencode = r22.lendyn, r22.lenbits = 7, S2 = { bits: r22.lenbits }, x = T(0, r22.lens, 0, 19, r22.lencode, 0, r22.work, S2), r22.lenbits = S2.bits, x) {
|
|
37696
37690
|
e2.msg = "invalid code lengths set", r22.mode = 30;
|
|
37697
37691
|
break;
|
|
37698
37692
|
}
|
|
37699
37693
|
r22.have = 0, r22.mode = 19;
|
|
37700
37694
|
case 19:
|
|
37701
37695
|
for (; r22.have < r22.nlen + r22.ndist; ) {
|
|
37702
|
-
for (; g = (C2 = r22.lencode[
|
|
37696
|
+
for (; g = (C2 = r22.lencode[u2 & (1 << r22.lenbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l22); ) {
|
|
37703
37697
|
if (0 === o2) break e;
|
|
37704
|
-
o2--,
|
|
37698
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37705
37699
|
}
|
|
37706
|
-
if (b2 < 16)
|
|
37700
|
+
if (b2 < 16) u2 >>>= _2, l22 -= _2, r22.lens[r22.have++] = b2;
|
|
37707
37701
|
else {
|
|
37708
37702
|
if (16 === b2) {
|
|
37709
|
-
for (z2 = _2 + 2;
|
|
37703
|
+
for (z2 = _2 + 2; l22 < z2; ) {
|
|
37710
37704
|
if (0 === o2) break e;
|
|
37711
|
-
o2--,
|
|
37705
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37712
37706
|
}
|
|
37713
|
-
if (
|
|
37707
|
+
if (u2 >>>= _2, l22 -= _2, 0 === r22.have) {
|
|
37714
37708
|
e2.msg = "invalid bit length repeat", r22.mode = 30;
|
|
37715
37709
|
break;
|
|
37716
37710
|
}
|
|
37717
|
-
k2 = r22.lens[r22.have - 1], d2 = 3 + (3 &
|
|
37711
|
+
k2 = r22.lens[r22.have - 1], d2 = 3 + (3 & u2), u2 >>>= 2, l22 -= 2;
|
|
37718
37712
|
} else if (17 === b2) {
|
|
37719
|
-
for (z2 = _2 + 3;
|
|
37713
|
+
for (z2 = _2 + 3; l22 < z2; ) {
|
|
37720
37714
|
if (0 === o2) break e;
|
|
37721
|
-
o2--,
|
|
37715
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37722
37716
|
}
|
|
37723
|
-
|
|
37717
|
+
l22 -= _2, k2 = 0, d2 = 3 + (7 & (u2 >>>= _2)), u2 >>>= 3, l22 -= 3;
|
|
37724
37718
|
} else {
|
|
37725
|
-
for (z2 = _2 + 7;
|
|
37719
|
+
for (z2 = _2 + 7; l22 < z2; ) {
|
|
37726
37720
|
if (0 === o2) break e;
|
|
37727
|
-
o2--,
|
|
37721
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37728
37722
|
}
|
|
37729
|
-
|
|
37723
|
+
l22 -= _2, k2 = 0, d2 = 11 + (127 & (u2 >>>= _2)), u2 >>>= 7, l22 -= 7;
|
|
37730
37724
|
}
|
|
37731
37725
|
if (r22.have + d2 > r22.nlen + r22.ndist) {
|
|
37732
37726
|
e2.msg = "invalid bit length repeat", r22.mode = 30;
|
|
@@ -37740,11 +37734,11 @@ function requireJszip_min() {
|
|
|
37740
37734
|
e2.msg = "invalid code -- missing end-of-block", r22.mode = 30;
|
|
37741
37735
|
break;
|
|
37742
37736
|
}
|
|
37743
|
-
if (r22.lenbits = 9, S2 = { bits: r22.lenbits },
|
|
37737
|
+
if (r22.lenbits = 9, S2 = { bits: r22.lenbits }, x = T(D2, r22.lens, 0, r22.nlen, r22.lencode, 0, r22.work, S2), r22.lenbits = S2.bits, x) {
|
|
37744
37738
|
e2.msg = "invalid literal/lengths set", r22.mode = 30;
|
|
37745
37739
|
break;
|
|
37746
37740
|
}
|
|
37747
|
-
if (r22.distbits = 6, r22.distcode = r22.distdyn, S2 = { bits: r22.distbits },
|
|
37741
|
+
if (r22.distbits = 6, r22.distcode = r22.distdyn, S2 = { bits: r22.distbits }, x = T(F2, r22.lens, r22.nlen, r22.ndist, r22.distcode, 0, r22.work, S2), r22.distbits = S2.bits, x) {
|
|
37748
37742
|
e2.msg = "invalid distances set", r22.mode = 30;
|
|
37749
37743
|
break;
|
|
37750
37744
|
}
|
|
@@ -37753,21 +37747,21 @@ function requireJszip_min() {
|
|
|
37753
37747
|
r22.mode = 21;
|
|
37754
37748
|
case 21:
|
|
37755
37749
|
if (6 <= o2 && 258 <= h22) {
|
|
37756
|
-
e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold =
|
|
37750
|
+
e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l22, R2(e2, c22), a2 = e2.next_out, i2 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l22 = r22.bits, 12 === r22.mode && (r22.back = -1);
|
|
37757
37751
|
break;
|
|
37758
37752
|
}
|
|
37759
|
-
for (r22.back = 0; g = (C2 = r22.lencode[
|
|
37753
|
+
for (r22.back = 0; g = (C2 = r22.lencode[u2 & (1 << r22.lenbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l22); ) {
|
|
37760
37754
|
if (0 === o2) break e;
|
|
37761
|
-
o2--,
|
|
37755
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37762
37756
|
}
|
|
37763
37757
|
if (g && 0 == (240 & g)) {
|
|
37764
|
-
for (v2 = _2, y2 = g, w2 = b2; g = (C2 = r22.lencode[w2 + ((
|
|
37758
|
+
for (v2 = _2, y2 = g, w2 = b2; g = (C2 = r22.lencode[w2 + ((u2 & (1 << v2 + y2) - 1) >> v2)]) >>> 16 & 255, b2 = 65535 & C2, !(v2 + (_2 = C2 >>> 24) <= l22); ) {
|
|
37765
37759
|
if (0 === o2) break e;
|
|
37766
|
-
o2--,
|
|
37760
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37767
37761
|
}
|
|
37768
|
-
|
|
37762
|
+
u2 >>>= v2, l22 -= v2, r22.back += v2;
|
|
37769
37763
|
}
|
|
37770
|
-
if (
|
|
37764
|
+
if (u2 >>>= _2, l22 -= _2, r22.back += _2, r22.length = b2, 0 === g) {
|
|
37771
37765
|
r22.mode = 26;
|
|
37772
37766
|
break;
|
|
37773
37767
|
}
|
|
@@ -37782,37 +37776,37 @@ function requireJszip_min() {
|
|
|
37782
37776
|
r22.extra = 15 & g, r22.mode = 22;
|
|
37783
37777
|
case 22:
|
|
37784
37778
|
if (r22.extra) {
|
|
37785
|
-
for (z2 = r22.extra;
|
|
37779
|
+
for (z2 = r22.extra; l22 < z2; ) {
|
|
37786
37780
|
if (0 === o2) break e;
|
|
37787
|
-
o2--,
|
|
37781
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37788
37782
|
}
|
|
37789
|
-
r22.length +=
|
|
37783
|
+
r22.length += u2 & (1 << r22.extra) - 1, u2 >>>= r22.extra, l22 -= r22.extra, r22.back += r22.extra;
|
|
37790
37784
|
}
|
|
37791
37785
|
r22.was = r22.length, r22.mode = 23;
|
|
37792
37786
|
case 23:
|
|
37793
|
-
for (; g = (C2 = r22.distcode[
|
|
37787
|
+
for (; g = (C2 = r22.distcode[u2 & (1 << r22.distbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l22); ) {
|
|
37794
37788
|
if (0 === o2) break e;
|
|
37795
|
-
o2--,
|
|
37789
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37796
37790
|
}
|
|
37797
37791
|
if (0 == (240 & g)) {
|
|
37798
|
-
for (v2 = _2, y2 = g, w2 = b2; g = (C2 = r22.distcode[w2 + ((
|
|
37792
|
+
for (v2 = _2, y2 = g, w2 = b2; g = (C2 = r22.distcode[w2 + ((u2 & (1 << v2 + y2) - 1) >> v2)]) >>> 16 & 255, b2 = 65535 & C2, !(v2 + (_2 = C2 >>> 24) <= l22); ) {
|
|
37799
37793
|
if (0 === o2) break e;
|
|
37800
|
-
o2--,
|
|
37794
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37801
37795
|
}
|
|
37802
|
-
|
|
37796
|
+
u2 >>>= v2, l22 -= v2, r22.back += v2;
|
|
37803
37797
|
}
|
|
37804
|
-
if (
|
|
37798
|
+
if (u2 >>>= _2, l22 -= _2, r22.back += _2, 64 & g) {
|
|
37805
37799
|
e2.msg = "invalid distance code", r22.mode = 30;
|
|
37806
37800
|
break;
|
|
37807
37801
|
}
|
|
37808
37802
|
r22.offset = b2, r22.extra = 15 & g, r22.mode = 24;
|
|
37809
37803
|
case 24:
|
|
37810
37804
|
if (r22.extra) {
|
|
37811
|
-
for (z2 = r22.extra;
|
|
37805
|
+
for (z2 = r22.extra; l22 < z2; ) {
|
|
37812
37806
|
if (0 === o2) break e;
|
|
37813
|
-
o2--,
|
|
37807
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37814
37808
|
}
|
|
37815
|
-
r22.offset +=
|
|
37809
|
+
r22.offset += u2 & (1 << r22.extra) - 1, u2 >>>= r22.extra, l22 -= r22.extra, r22.back += r22.extra;
|
|
37816
37810
|
}
|
|
37817
37811
|
if (r22.offset > r22.dmax) {
|
|
37818
37812
|
e2.msg = "invalid distance too far back", r22.mode = 30;
|
|
@@ -37837,35 +37831,35 @@ function requireJszip_min() {
|
|
|
37837
37831
|
break;
|
|
37838
37832
|
case 27:
|
|
37839
37833
|
if (r22.wrap) {
|
|
37840
|
-
for (;
|
|
37834
|
+
for (; l22 < 32; ) {
|
|
37841
37835
|
if (0 === o2) break e;
|
|
37842
|
-
o2--,
|
|
37836
|
+
o2--, u2 |= n2[s22++] << l22, l22 += 8;
|
|
37843
37837
|
}
|
|
37844
|
-
if (c22 -= h22, e2.total_out += c22, r22.total += c22, c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i2, c22, a2 - c22) :
|
|
37838
|
+
if (c22 -= h22, e2.total_out += c22, r22.total += c22, c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i2, c22, a2 - c22) : O2(r22.check, i2, c22, a2 - c22)), c22 = h22, (r22.flags ? u2 : L2(u2)) !== r22.check) {
|
|
37845
37839
|
e2.msg = "incorrect data check", r22.mode = 30;
|
|
37846
37840
|
break;
|
|
37847
37841
|
}
|
|
37848
|
-
|
|
37842
|
+
l22 = u2 = 0;
|
|
37849
37843
|
}
|
|
37850
37844
|
r22.mode = 28;
|
|
37851
37845
|
case 28:
|
|
37852
37846
|
if (r22.wrap && r22.flags) {
|
|
37853
|
-
for (;
|
|
37847
|
+
for (; l22 < 32; ) {
|
|
37854
37848
|
if (0 === o2) break e;
|
|
37855
|
-
o2--,
|
|
37849
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37856
37850
|
}
|
|
37857
|
-
if (
|
|
37851
|
+
if (u2 !== (4294967295 & r22.total)) {
|
|
37858
37852
|
e2.msg = "incorrect length check", r22.mode = 30;
|
|
37859
37853
|
break;
|
|
37860
37854
|
}
|
|
37861
|
-
|
|
37855
|
+
l22 = u2 = 0;
|
|
37862
37856
|
}
|
|
37863
37857
|
r22.mode = 29;
|
|
37864
37858
|
case 29:
|
|
37865
|
-
|
|
37859
|
+
x = 1;
|
|
37866
37860
|
break e;
|
|
37867
37861
|
case 30:
|
|
37868
|
-
|
|
37862
|
+
x = -3;
|
|
37869
37863
|
break e;
|
|
37870
37864
|
case 31:
|
|
37871
37865
|
return -4;
|
|
@@ -37873,7 +37867,7 @@ function requireJszip_min() {
|
|
|
37873
37867
|
default:
|
|
37874
37868
|
return U2;
|
|
37875
37869
|
}
|
|
37876
|
-
return e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold =
|
|
37870
|
+
return e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l22, (r22.wsize || c22 !== e2.avail_out && r22.mode < 30 && (r22.mode < 27 || 4 !== t2)) && Z(e2, e2.output, e2.next_out, c22 - e2.avail_out) ? (r22.mode = 31, -4) : (f22 -= e2.avail_in, c22 -= e2.avail_out, e2.total_in += f22, e2.total_out += c22, r22.total += c22, r22.wrap && c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i2, c22, e2.next_out - c22) : O2(r22.check, i2, c22, e2.next_out - c22)), e2.data_type = r22.bits + (r22.last ? 64 : 0) + (12 === r22.mode ? 128 : 0) + (20 === r22.mode || 15 === r22.mode ? 256 : 0), (0 == f22 && 0 === c22 || 4 === t2) && x === N2 && (x = -5), x);
|
|
37877
37871
|
}, r2.inflateEnd = function(e2) {
|
|
37878
37872
|
if (!e2 || !e2.state) return U2;
|
|
37879
37873
|
var t2 = e2.state;
|
|
@@ -37883,33 +37877,33 @@ function requireJszip_min() {
|
|
|
37883
37877
|
return e2 && e2.state ? 0 == (2 & (r22 = e2.state).wrap) ? U2 : ((r22.head = t2).done = false, N2) : U2;
|
|
37884
37878
|
}, r2.inflateSetDictionary = function(e2, t2) {
|
|
37885
37879
|
var r22, n2 = t2.length;
|
|
37886
|
-
return e2 && e2.state ? 0 !== (r22 = e2.state).wrap && 11 !== r22.mode ? U2 : 11 === r22.mode &&
|
|
37880
|
+
return e2 && e2.state ? 0 !== (r22 = e2.state).wrap && 11 !== r22.mode ? U2 : 11 === r22.mode && O2(1, t2, n2, 0) !== r22.check ? -3 : Z(e2, t2, n2, n2) ? (r22.mode = 31, -4) : (r22.havedict = 1, N2) : U2;
|
|
37887
37881
|
}, r2.inflateInfo = "pako inflate (from Nodeca project)";
|
|
37888
37882
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(e, t, r2) {
|
|
37889
37883
|
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];
|
|
37890
37884
|
t.exports = function(e2, t2, r22, n, i, s2, a, o) {
|
|
37891
|
-
var h2,
|
|
37892
|
-
for (b2 = 0; b2 <= 15; b2++)
|
|
37893
|
-
for (v2 = 0; v2 < n; v2++)
|
|
37894
|
-
for (k2 = g, w2 = 15; 1 <= w2 && 0 ===
|
|
37885
|
+
var h2, u, l3, f2, c2, d2, p, m2, _2, g = o.bits, b2 = 0, v2 = 0, y2 = 0, w2 = 0, k2 = 0, x = 0, S2 = 0, z2 = 0, C2 = 0, E2 = 0, A2 = null, I2 = 0, O2 = new D2.Buf16(16), B2 = new D2.Buf16(16), R2 = null, T = 0;
|
|
37886
|
+
for (b2 = 0; b2 <= 15; b2++) O2[b2] = 0;
|
|
37887
|
+
for (v2 = 0; v2 < n; v2++) O2[t2[r22 + v2]]++;
|
|
37888
|
+
for (k2 = g, w2 = 15; 1 <= w2 && 0 === O2[w2]; w2--) ;
|
|
37895
37889
|
if (w2 < k2 && (k2 = w2), 0 === w2) return i[s2++] = 20971520, i[s2++] = 20971520, o.bits = 1, 0;
|
|
37896
|
-
for (y2 = 1; y2 < w2 && 0 ===
|
|
37897
|
-
for (k2 < y2 && (k2 = y2), b2 = z2 = 1; b2 <= 15; b2++) if (z2 <<= 1, (z2 -=
|
|
37890
|
+
for (y2 = 1; y2 < w2 && 0 === O2[y2]; y2++) ;
|
|
37891
|
+
for (k2 < y2 && (k2 = y2), b2 = z2 = 1; b2 <= 15; b2++) if (z2 <<= 1, (z2 -= O2[b2]) < 0) return -1;
|
|
37898
37892
|
if (0 < z2 && (0 === e2 || 1 !== w2)) return -1;
|
|
37899
|
-
for (B2[1] = 0, b2 = 1; b2 < 15; b2++) B2[b2 + 1] = B2[b2] +
|
|
37893
|
+
for (B2[1] = 0, b2 = 1; b2 < 15; b2++) B2[b2 + 1] = B2[b2] + O2[b2];
|
|
37900
37894
|
for (v2 = 0; v2 < n; v2++) 0 !== t2[r22 + v2] && (a[B2[t2[r22 + v2]]++] = v2);
|
|
37901
|
-
if (d2 = 0 === e2 ? (A2 =
|
|
37895
|
+
if (d2 = 0 === e2 ? (A2 = R2 = a, 19) : 1 === e2 ? (A2 = F2, I2 -= 257, R2 = N2, T -= 257, 256) : (A2 = U2, R2 = P2, -1), b2 = y2, c2 = s2, S2 = v2 = E2 = 0, l3 = -1, f2 = (C2 = 1 << (x = k2)) - 1, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
|
|
37902
37896
|
for (; ; ) {
|
|
37903
|
-
for (p = b2 - S2, _2 = a[v2] < d2 ? (m2 = 0, a[v2]) : a[v2] > d2 ? (m2 =
|
|
37897
|
+
for (p = b2 - S2, _2 = a[v2] < d2 ? (m2 = 0, a[v2]) : a[v2] > d2 ? (m2 = R2[T + a[v2]], A2[I2 + a[v2]]) : (m2 = 96, 0), h2 = 1 << b2 - S2, y2 = u = 1 << x; i[c2 + (E2 >> S2) + (u -= h2)] = p << 24 | m2 << 16 | _2 | 0, 0 !== u; ) ;
|
|
37904
37898
|
for (h2 = 1 << b2 - 1; E2 & h2; ) h2 >>= 1;
|
|
37905
|
-
if (0 !== h2 ? (E2 &= h2 - 1, E2 += h2) : E2 = 0, v2++, 0 == --
|
|
37899
|
+
if (0 !== h2 ? (E2 &= h2 - 1, E2 += h2) : E2 = 0, v2++, 0 == --O2[b2]) {
|
|
37906
37900
|
if (b2 === w2) break;
|
|
37907
37901
|
b2 = t2[r22 + a[v2]];
|
|
37908
37902
|
}
|
|
37909
|
-
if (k2 < b2 && (E2 & f2) !==
|
|
37910
|
-
for (0 === S2 && (S2 = k2), c2 += y2, z2 = 1 << (
|
|
37911
|
-
if (C2 += 1 <<
|
|
37912
|
-
i[
|
|
37903
|
+
if (k2 < b2 && (E2 & f2) !== l3) {
|
|
37904
|
+
for (0 === S2 && (S2 = k2), c2 += y2, z2 = 1 << (x = b2 - S2); x + S2 < w2 && !((z2 -= O2[x + S2]) <= 0); ) x++, z2 <<= 1;
|
|
37905
|
+
if (C2 += 1 << x, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
|
|
37906
|
+
i[l3 = E2 & f2] = k2 << 24 | x << 16 | c2 - s2 | 0;
|
|
37913
37907
|
}
|
|
37914
37908
|
}
|
|
37915
37909
|
return 0 !== E2 && (i[c2 + E2] = b2 - S2 << 24 | 64 << 16 | 0), o.bits = k2, 0;
|
|
@@ -37921,7 +37915,7 @@ function requireJszip_min() {
|
|
|
37921
37915
|
function n(e2) {
|
|
37922
37916
|
for (var t2 = e2.length; 0 <= --t2; ) e2[t2] = 0;
|
|
37923
37917
|
}
|
|
37924
|
-
var s2 = 0, a = 29,
|
|
37918
|
+
var s2 = 0, a = 29, u = 256, l3 = u + 1 + a, f2 = 30, c2 = 19, _2 = 2 * l3 + 1, g = 15, d2 = 16, p = 7, m2 = 256, b2 = 16, v2 = 17, y2 = 18, w2 = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], k2 = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], x = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], S2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], z2 = new Array(2 * (l3 + 2));
|
|
37925
37919
|
n(z2);
|
|
37926
37920
|
var C2 = new Array(2 * f2);
|
|
37927
37921
|
n(C2);
|
|
@@ -37931,7 +37925,7 @@ function requireJszip_min() {
|
|
|
37931
37925
|
n(A2);
|
|
37932
37926
|
var I2 = new Array(a);
|
|
37933
37927
|
n(I2);
|
|
37934
|
-
var
|
|
37928
|
+
var O2, B2, R2, T = new Array(f2);
|
|
37935
37929
|
function D2(e2, t2, r22, n2, i2) {
|
|
37936
37930
|
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;
|
|
37937
37931
|
}
|
|
@@ -37964,7 +37958,7 @@ function requireJszip_min() {
|
|
|
37964
37958
|
}
|
|
37965
37959
|
function W2(e2) {
|
|
37966
37960
|
var t2;
|
|
37967
|
-
for (t2 = 0; t2 <
|
|
37961
|
+
for (t2 = 0; t2 < l3; t2++) e2.dyn_ltree[2 * t2] = 0;
|
|
37968
37962
|
for (t2 = 0; t2 < f2; t2++) e2.dyn_dtree[2 * t2] = 0;
|
|
37969
37963
|
for (t2 = 0; t2 < c2; t2++) e2.bl_tree[2 * t2] = 0;
|
|
37970
37964
|
e2.dyn_ltree[2 * m2] = 1, e2.opt_len = e2.static_len = 0, e2.last_lit = e2.matches = 0;
|
|
@@ -37982,41 +37976,41 @@ function requireJszip_min() {
|
|
|
37982
37976
|
}
|
|
37983
37977
|
function K2(e2, t2, r22) {
|
|
37984
37978
|
var n2, i2, s22, a2, o2 = 0;
|
|
37985
|
-
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]) +
|
|
37979
|
+
if (0 !== e2.last_lit) for (; n2 = e2.pending_buf[e2.d_buf + 2 * o2] << 8 | e2.pending_buf[e2.d_buf + 2 * o2 + 1], i2 = e2.pending_buf[e2.l_buf + o2], o2++, 0 === n2 ? L2(e2, i2, t2) : (L2(e2, (s22 = A2[i2]) + u + 1, t2), 0 !== (a2 = w2[s22]) && P2(e2, i2 -= I2[s22], a2), L2(e2, s22 = N2(--n2), r22), 0 !== (a2 = k2[s22]) && P2(e2, n2 -= T[s22], a2)), o2 < e2.last_lit; ) ;
|
|
37986
37980
|
L2(e2, m2, t2);
|
|
37987
37981
|
}
|
|
37988
37982
|
function Y2(e2, t2) {
|
|
37989
|
-
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,
|
|
37990
|
-
for (e2.heap_len = 0, e2.heap_max = _2, r22 = 0; r22 < h22; r22++) 0 !== s22[2 * r22] ? (e2.heap[++e2.heap_len] =
|
|
37991
|
-
for (; e2.heap_len < 2; ) s22[2 * (i2 = e2.heap[++e2.heap_len] =
|
|
37992
|
-
for (t2.max_code =
|
|
37983
|
+
var r22, n2, i2, s22 = t2.dyn_tree, a2 = t2.stat_desc.static_tree, o2 = t2.stat_desc.has_stree, h22 = t2.stat_desc.elems, u2 = -1;
|
|
37984
|
+
for (e2.heap_len = 0, e2.heap_max = _2, r22 = 0; r22 < h22; r22++) 0 !== s22[2 * r22] ? (e2.heap[++e2.heap_len] = u2 = r22, e2.depth[r22] = 0) : s22[2 * r22 + 1] = 0;
|
|
37985
|
+
for (; e2.heap_len < 2; ) s22[2 * (i2 = e2.heap[++e2.heap_len] = u2 < 2 ? ++u2 : 0)] = 1, e2.depth[i2] = 0, e2.opt_len--, o2 && (e2.static_len -= a2[2 * i2 + 1]);
|
|
37986
|
+
for (t2.max_code = u2, r22 = e2.heap_len >> 1; 1 <= r22; r22--) G2(e2, s22, r22);
|
|
37993
37987
|
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; ) ;
|
|
37994
37988
|
e2.heap[--e2.heap_max] = e2.heap[1], (function(e3, t3) {
|
|
37995
|
-
var r3, n3, i3, s3, a3, o3, h3 = t3.dyn_tree,
|
|
37989
|
+
var r3, n3, i3, s3, a3, o3, h3 = t3.dyn_tree, u3 = t3.max_code, l22 = t3.stat_desc.static_tree, f22 = t3.stat_desc.has_stree, c22 = t3.stat_desc.extra_bits, d22 = t3.stat_desc.extra_base, p2 = t3.stat_desc.max_length, m22 = 0;
|
|
37996
37990
|
for (s3 = 0; s3 <= g; s3++) e3.bl_count[s3] = 0;
|
|
37997
|
-
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,
|
|
37991
|
+
for (h3[2 * e3.heap[e3.heap_max] + 1] = 0, r3 = e3.heap_max + 1; r3 < _2; r3++) p2 < (s3 = h3[2 * h3[2 * (n3 = e3.heap[r3]) + 1] + 1] + 1) && (s3 = p2, m22++), h3[2 * n3 + 1] = s3, u3 < n3 || (e3.bl_count[s3]++, a3 = 0, d22 <= n3 && (a3 = c22[n3 - d22]), o3 = h3[2 * n3], e3.opt_len += o3 * (s3 + a3), f22 && (e3.static_len += o3 * (l22[2 * n3 + 1] + a3)));
|
|
37998
37992
|
if (0 !== m22) {
|
|
37999
37993
|
do {
|
|
38000
37994
|
for (s3 = p2 - 1; 0 === e3.bl_count[s3]; ) s3--;
|
|
38001
37995
|
e3.bl_count[s3]--, e3.bl_count[s3 + 1] += 2, e3.bl_count[p2]--, m22 -= 2;
|
|
38002
37996
|
} while (0 < m22);
|
|
38003
|
-
for (s3 = p2; 0 !== s3; s3--) for (n3 = e3.bl_count[s3]; 0 !== n3; )
|
|
37997
|
+
for (s3 = p2; 0 !== s3; s3--) for (n3 = e3.bl_count[s3]; 0 !== n3; ) u3 < (i3 = e3.heap[--r3]) || (h3[2 * i3 + 1] !== s3 && (e3.opt_len += (s3 - h3[2 * i3 + 1]) * h3[2 * i3], h3[2 * i3 + 1] = s3), n3--);
|
|
38004
37998
|
}
|
|
38005
|
-
})(e2, t2), Z(s22,
|
|
37999
|
+
})(e2, t2), Z(s22, u2, e2.bl_count);
|
|
38006
38000
|
}
|
|
38007
38001
|
function X2(e2, t2, r22) {
|
|
38008
|
-
var n2, i2, s22 = -1, a2 = t2[1], o2 = 0, h22 = 7,
|
|
38009
|
-
for (0 === a2 && (h22 = 138,
|
|
38002
|
+
var n2, i2, s22 = -1, a2 = t2[1], o2 = 0, h22 = 7, u2 = 4;
|
|
38003
|
+
for (0 === a2 && (h22 = 138, u2 = 3), t2[2 * (r22 + 1) + 1] = 65535, n2 = 0; n2 <= r22; n2++) i2 = a2, a2 = t2[2 * (n2 + 1) + 1], ++o2 < h22 && i2 === a2 || (o2 < u2 ? e2.bl_tree[2 * i2] += o2 : 0 !== i2 ? (i2 !== s22 && e2.bl_tree[2 * i2]++, e2.bl_tree[2 * b2]++) : o2 <= 10 ? e2.bl_tree[2 * v2]++ : e2.bl_tree[2 * y2]++, s22 = i2, u2 = (o2 = 0) === a2 ? (h22 = 138, 3) : i2 === a2 ? (h22 = 6, 3) : (h22 = 7, 4));
|
|
38010
38004
|
}
|
|
38011
38005
|
function V2(e2, t2, r22) {
|
|
38012
|
-
var n2, i2, s22 = -1, a2 = t2[1], o2 = 0, h22 = 7,
|
|
38013
|
-
for (0 === a2 && (h22 = 138,
|
|
38014
|
-
if (o2 <
|
|
38006
|
+
var n2, i2, s22 = -1, a2 = t2[1], o2 = 0, h22 = 7, u2 = 4;
|
|
38007
|
+
for (0 === a2 && (h22 = 138, u2 = 3), n2 = 0; n2 <= r22; n2++) if (i2 = a2, a2 = t2[2 * (n2 + 1) + 1], !(++o2 < h22 && i2 === a2)) {
|
|
38008
|
+
if (o2 < u2) for (; L2(e2, i2, e2.bl_tree), 0 != --o2; ) ;
|
|
38015
38009
|
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));
|
|
38016
|
-
s22 = i2,
|
|
38010
|
+
s22 = i2, u2 = (o2 = 0) === a2 ? (h22 = 138, 3) : i2 === a2 ? (h22 = 6, 3) : (h22 = 7, 4);
|
|
38017
38011
|
}
|
|
38018
38012
|
}
|
|
38019
|
-
n(
|
|
38013
|
+
n(T);
|
|
38020
38014
|
var q2 = false;
|
|
38021
38015
|
function J2(e2, t2, r22, n2) {
|
|
38022
38016
|
P2(e2, (s2 << 1) + (n2 ? 1 : 0), 3), (function(e3, t3, r3, n3) {
|
|
@@ -38027,23 +38021,23 @@ function requireJszip_min() {
|
|
|
38027
38021
|
q2 || ((function() {
|
|
38028
38022
|
var e3, t2, r22, n2, i2, s22 = new Array(g + 1);
|
|
38029
38023
|
for (n2 = r22 = 0; n2 < a - 1; n2++) for (I2[n2] = r22, e3 = 0; e3 < 1 << w2[n2]; e3++) A2[r22++] = n2;
|
|
38030
|
-
for (A2[r22 - 1] = n2, n2 = i2 = 0; n2 < 16; n2++) for (
|
|
38031
|
-
for (i2 >>= 7; n2 < f2; n2++) for (
|
|
38024
|
+
for (A2[r22 - 1] = n2, n2 = i2 = 0; n2 < 16; n2++) for (T[n2] = i2, e3 = 0; e3 < 1 << k2[n2]; e3++) E2[i2++] = n2;
|
|
38025
|
+
for (i2 >>= 7; n2 < f2; n2++) for (T[n2] = i2 << 7, e3 = 0; e3 < 1 << k2[n2] - 7; e3++) E2[256 + i2++] = n2;
|
|
38032
38026
|
for (t2 = 0; t2 <= g; t2++) s22[t2] = 0;
|
|
38033
38027
|
for (e3 = 0; e3 <= 143; ) z2[2 * e3 + 1] = 8, e3++, s22[8]++;
|
|
38034
38028
|
for (; e3 <= 255; ) z2[2 * e3 + 1] = 9, e3++, s22[9]++;
|
|
38035
38029
|
for (; e3 <= 279; ) z2[2 * e3 + 1] = 7, e3++, s22[7]++;
|
|
38036
38030
|
for (; e3 <= 287; ) z2[2 * e3 + 1] = 8, e3++, s22[8]++;
|
|
38037
|
-
for (Z(z2,
|
|
38038
|
-
|
|
38039
|
-
})(), q2 = true), e2.l_desc = new F2(e2.dyn_ltree,
|
|
38031
|
+
for (Z(z2, l3 + 1, s22), e3 = 0; e3 < f2; e3++) C2[2 * e3 + 1] = 5, C2[2 * e3] = j2(e3, 5);
|
|
38032
|
+
O2 = new D2(z2, w2, u + 1, l3, g), B2 = new D2(C2, k2, 0, f2, g), R2 = new D2(new Array(0), x, 0, c2, p);
|
|
38033
|
+
})(), q2 = true), e2.l_desc = new F2(e2.dyn_ltree, O2), e2.d_desc = new F2(e2.dyn_dtree, B2), e2.bl_desc = new F2(e2.bl_tree, R2), e2.bi_buf = 0, e2.bi_valid = 0, W2(e2);
|
|
38040
38034
|
}, r2._tr_stored_block = J2, r2._tr_flush_block = function(e2, t2, r22, n2) {
|
|
38041
38035
|
var i2, s22, a2 = 0;
|
|
38042
38036
|
0 < e2.level ? (2 === e2.strm.data_type && (e2.strm.data_type = (function(e3) {
|
|
38043
38037
|
var t3, r3 = 4093624447;
|
|
38044
38038
|
for (t3 = 0; t3 <= 31; t3++, r3 >>>= 1) if (1 & r3 && 0 !== e3.dyn_ltree[2 * t3]) return o;
|
|
38045
38039
|
if (0 !== e3.dyn_ltree[18] || 0 !== e3.dyn_ltree[20] || 0 !== e3.dyn_ltree[26]) return h2;
|
|
38046
|
-
for (t3 = 32; t3 <
|
|
38040
|
+
for (t3 = 32; t3 < u; t3++) if (0 !== e3.dyn_ltree[2 * t3]) return h2;
|
|
38047
38041
|
return o;
|
|
38048
38042
|
})(e2)), Y2(e2, e2.l_desc), Y2(e2, e2.d_desc), a2 = (function(e3) {
|
|
38049
38043
|
var t3;
|
|
@@ -38055,7 +38049,7 @@ function requireJszip_min() {
|
|
|
38055
38049
|
V2(e3, e3.dyn_ltree, t3 - 1), V2(e3, e3.dyn_dtree, r3 - 1);
|
|
38056
38050
|
})(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);
|
|
38057
38051
|
}, r2._tr_tally = function(e2, t2, r22) {
|
|
38058
|
-
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] +
|
|
38052
|
+
return e2.pending_buf[e2.d_buf + 2 * e2.last_lit] = t2 >>> 8 & 255, e2.pending_buf[e2.d_buf + 2 * e2.last_lit + 1] = 255 & t2, e2.pending_buf[e2.l_buf + e2.last_lit] = 255 & r22, e2.last_lit++, 0 === t2 ? e2.dyn_ltree[2 * r22]++ : (e2.matches++, t2--, e2.dyn_ltree[2 * (A2[r22] + u + 1)]++, e2.dyn_dtree[2 * N2(t2)]++), e2.last_lit === e2.lit_bufsize - 1;
|
|
38059
38053
|
}, r2._tr_align = function(e2) {
|
|
38060
38054
|
P2(e2, 2, 3), L2(e2, m2, z2), (function(e3) {
|
|
38061
38055
|
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);
|
|
@@ -38069,7 +38063,7 @@ function requireJszip_min() {
|
|
|
38069
38063
|
(function(e2) {
|
|
38070
38064
|
!(function(r22, n) {
|
|
38071
38065
|
if (!r22.setImmediate) {
|
|
38072
|
-
var i, s2, t2, a, o = 1, h2 = {},
|
|
38066
|
+
var i, s2, t2, a, o = 1, h2 = {}, u = false, l3 = r22.document, e3 = Object.getPrototypeOf && Object.getPrototypeOf(r22);
|
|
38073
38067
|
e3 = e3 && e3.setTimeout ? e3 : r22, i = "[object process]" === {}.toString.call(r22.process) ? function(e4) {
|
|
38074
38068
|
process$1$1.nextTick(function() {
|
|
38075
38069
|
c2(e4);
|
|
@@ -38087,8 +38081,8 @@ function requireJszip_min() {
|
|
|
38087
38081
|
c2(e4.data);
|
|
38088
38082
|
}, function(e4) {
|
|
38089
38083
|
t2.port2.postMessage(e4);
|
|
38090
|
-
}) :
|
|
38091
|
-
var t3 =
|
|
38084
|
+
}) : l3 && "onreadystatechange" in l3.createElement("script") ? (s2 = l3.documentElement, function(e4) {
|
|
38085
|
+
var t3 = l3.createElement("script");
|
|
38092
38086
|
t3.onreadystatechange = function() {
|
|
38093
38087
|
c2(e4), t3.onreadystatechange = null, s2.removeChild(t3), t3 = null;
|
|
38094
38088
|
}, s2.appendChild(t3);
|
|
@@ -38105,11 +38099,11 @@ function requireJszip_min() {
|
|
|
38105
38099
|
delete h2[e4];
|
|
38106
38100
|
}
|
|
38107
38101
|
function c2(e4) {
|
|
38108
|
-
if (
|
|
38102
|
+
if (u) setTimeout(c2, 0, e4);
|
|
38109
38103
|
else {
|
|
38110
38104
|
var t3 = h2[e4];
|
|
38111
38105
|
if (t3) {
|
|
38112
|
-
|
|
38106
|
+
u = true;
|
|
38113
38107
|
try {
|
|
38114
38108
|
!(function(e5) {
|
|
38115
38109
|
var t4 = e5.callback, r3 = e5.args;
|
|
@@ -38131,7 +38125,7 @@ function requireJszip_min() {
|
|
|
38131
38125
|
}
|
|
38132
38126
|
})(t3);
|
|
38133
38127
|
} finally {
|
|
38134
|
-
f2(e4),
|
|
38128
|
+
f2(e4), u = false;
|
|
38135
38129
|
}
|
|
38136
38130
|
}
|
|
38137
38131
|
}
|
|
@@ -39112,17 +39106,17 @@ function deepActiveElement(doc2) {
|
|
|
39112
39106
|
elt = elt.shadowRoot.activeElement;
|
|
39113
39107
|
return elt;
|
|
39114
39108
|
}
|
|
39115
|
-
function caretFromPoint(doc2,
|
|
39109
|
+
function caretFromPoint(doc2, x, y2) {
|
|
39116
39110
|
if (doc2.caretPositionFromPoint) {
|
|
39117
39111
|
try {
|
|
39118
|
-
let pos = doc2.caretPositionFromPoint(
|
|
39112
|
+
let pos = doc2.caretPositionFromPoint(x, y2);
|
|
39119
39113
|
if (pos)
|
|
39120
39114
|
return { node: pos.offsetNode, offset: Math.min(nodeSize(pos.offsetNode), pos.offset) };
|
|
39121
39115
|
} catch (_2) {
|
|
39122
39116
|
}
|
|
39123
39117
|
}
|
|
39124
39118
|
if (doc2.caretRangeFromPoint) {
|
|
39125
|
-
let range2 = doc2.caretRangeFromPoint(
|
|
39119
|
+
let range2 = doc2.caretRangeFromPoint(x, y2);
|
|
39126
39120
|
if (range2)
|
|
39127
39121
|
return { node: range2.startContainer, offset: Math.min(nodeSize(range2.startContainer), range2.startOffset) };
|
|
39128
39122
|
}
|
|
@@ -39221,8 +39215,8 @@ function scrollRectIntoView(view, rect, startDOM) {
|
|
|
39221
39215
|
function storeScrollPos(view) {
|
|
39222
39216
|
let rect = view.dom.getBoundingClientRect(), startY = Math.max(0, rect.top);
|
|
39223
39217
|
let refDOM, refTop;
|
|
39224
|
-
for (let
|
|
39225
|
-
let dom = view.root.elementFromPoint(
|
|
39218
|
+
for (let x = (rect.left + rect.right) / 2, y2 = startY + 1; y2 < Math.min(innerHeight, rect.bottom); y2 += 5) {
|
|
39219
|
+
let dom = view.root.elementFromPoint(x, y2);
|
|
39226
39220
|
if (!dom || dom == view.dom || !view.dom.contains(dom))
|
|
39227
39221
|
continue;
|
|
39228
39222
|
let localRect = dom.getBoundingClientRect();
|
|
@@ -39518,8 +39512,8 @@ function coordsAtPos(view, pos, side) {
|
|
|
39518
39512
|
function flattenV(rect, left2) {
|
|
39519
39513
|
if (rect.width == 0)
|
|
39520
39514
|
return rect;
|
|
39521
|
-
let
|
|
39522
|
-
return { top: rect.top, bottom: rect.bottom, left:
|
|
39515
|
+
let x = left2 ? rect.left : rect.right;
|
|
39516
|
+
return { top: rect.top, bottom: rect.bottom, left: x, right: x };
|
|
39523
39517
|
}
|
|
39524
39518
|
function flattenH(rect, top2) {
|
|
39525
39519
|
if (rect.height == 0)
|
|
@@ -44526,10 +44520,10 @@ const createTimeoutClass = (clearFunction) => class TT {
|
|
|
44526
44520
|
const Timeout = createTimeoutClass(clearTimeout);
|
|
44527
44521
|
const timeout = (timeout2, callback) => new Timeout(setTimeout(callback, timeout2));
|
|
44528
44522
|
const rotr = (w2, shift2) => w2 >>> shift2 | w2 << 32 - shift2;
|
|
44529
|
-
const sum0to256 = (
|
|
44530
|
-
const sum1to256 = (
|
|
44531
|
-
const sigma0to256 = (
|
|
44532
|
-
const sigma1to256 = (
|
|
44523
|
+
const sum0to256 = (x) => rotr(x, 2) ^ rotr(x, 13) ^ rotr(x, 22);
|
|
44524
|
+
const sum1to256 = (x) => rotr(x, 6) ^ rotr(x, 11) ^ rotr(x, 25);
|
|
44525
|
+
const sigma0to256 = (x) => rotr(x, 7) ^ rotr(x, 18) ^ x >>> 3;
|
|
44526
|
+
const sigma1to256 = (x) => rotr(x, 17) ^ rotr(x, 19) ^ x >>> 10;
|
|
44533
44527
|
const K = new Uint32Array([
|
|
44534
44528
|
1116352408,
|
|
44535
44529
|
1899447441,
|
|
@@ -45358,9 +45352,9 @@ const equalAttrs = (pattrs, yattrs) => {
|
|
|
45358
45352
|
let eq2 = keys2.length === (yattrs == null ? 0 : Object.keys(yattrs).filter((key2) => yattrs[key2] !== null).length);
|
|
45359
45353
|
for (let i = 0; i < keys2.length && eq2; i++) {
|
|
45360
45354
|
const key2 = keys2[i];
|
|
45361
|
-
const
|
|
45355
|
+
const l3 = pattrs[key2];
|
|
45362
45356
|
const r2 = yattrs[key2];
|
|
45363
|
-
eq2 = key2 === "ychange" ||
|
|
45357
|
+
eq2 = key2 === "ychange" || l3 === r2 || isObject$1(l3) && isObject$1(r2) && equalAttrs(l3, r2);
|
|
45364
45358
|
}
|
|
45365
45359
|
return eq2;
|
|
45366
45360
|
};
|
|
@@ -52574,7 +52568,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
52574
52568
|
{ default: remarkStringify },
|
|
52575
52569
|
{ default: remarkGfm }
|
|
52576
52570
|
] = await Promise.all([
|
|
52577
|
-
import("./index-
|
|
52571
|
+
import("./index-DuZ0Zcpx-CD37LqbK.es.js"),
|
|
52578
52572
|
import("./index-DRCvimau-Cw339678.es.js"),
|
|
52579
52573
|
import("./index-C_x_N6Uh-DJn8hIEt.es.js"),
|
|
52580
52574
|
import("./index-D_sWOSiG-DE96TaT5.es.js"),
|
|
@@ -52792,7 +52786,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
52792
52786
|
* @returns {Object | void} Migration results
|
|
52793
52787
|
*/
|
|
52794
52788
|
processCollaborationMigrations() {
|
|
52795
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.30.0-next.
|
|
52789
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.30.0-next.5");
|
|
52796
52790
|
if (!this.options.ydoc) return;
|
|
52797
52791
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
52798
52792
|
let docVersion = metaMap.get("version");
|
|
@@ -54668,16 +54662,16 @@ function getCursorPositionRelativeToContainer(view, eventLocation) {
|
|
|
54668
54662
|
const { state: state2, dom } = view;
|
|
54669
54663
|
const { selection } = state2;
|
|
54670
54664
|
const containerRect = dom.getBoundingClientRect();
|
|
54671
|
-
let
|
|
54665
|
+
let x, y2;
|
|
54672
54666
|
if (typeof eventLocation.clientX === "number" && typeof eventLocation.clientY === "number") {
|
|
54673
|
-
|
|
54667
|
+
x = eventLocation.clientX - containerRect.left;
|
|
54674
54668
|
y2 = eventLocation.clientY - containerRect.top;
|
|
54675
54669
|
} else {
|
|
54676
54670
|
const cursorCoords = view.coordsAtPos(selection.from);
|
|
54677
|
-
|
|
54671
|
+
x = cursorCoords.left - containerRect.left;
|
|
54678
54672
|
y2 = cursorCoords.top - containerRect.top;
|
|
54679
54673
|
}
|
|
54680
|
-
return { left:
|
|
54674
|
+
return { left: x, top: y2 };
|
|
54681
54675
|
}
|
|
54682
54676
|
const SlashMenuPluginKey = new PluginKey("slashMenu");
|
|
54683
54677
|
const SlashMenu = Extension.create({
|
|
@@ -54956,17 +54950,17 @@ class StructuredContentViewBase {
|
|
|
54956
54950
|
if (!this.dom || this.contentDOM?.contains(target) || !dragHandle) {
|
|
54957
54951
|
return;
|
|
54958
54952
|
}
|
|
54959
|
-
let
|
|
54953
|
+
let x = 0;
|
|
54960
54954
|
let y2 = 0;
|
|
54961
54955
|
if (this.dom !== dragHandle) {
|
|
54962
54956
|
const domBox = this.dom.getBoundingClientRect();
|
|
54963
54957
|
const handleBox = dragHandle.getBoundingClientRect();
|
|
54964
54958
|
const offsetX = event.offsetX ?? event.nativeEvent?.offsetX;
|
|
54965
54959
|
const offsetY = event.offsetY ?? event.nativeEvent?.offsetY;
|
|
54966
|
-
|
|
54960
|
+
x = handleBox.x - domBox.x + offsetX;
|
|
54967
54961
|
y2 = handleBox.y - domBox.y + offsetY;
|
|
54968
54962
|
}
|
|
54969
|
-
event.dataTransfer?.setDragImage(this.dom,
|
|
54963
|
+
event.dataTransfer?.setDragImage(this.dom, x, y2);
|
|
54970
54964
|
const pos = this.getPos();
|
|
54971
54965
|
if (typeof pos !== "number") {
|
|
54972
54966
|
return;
|
|
@@ -58056,7 +58050,12 @@ const Paragraph = OxmlNode.create({
|
|
|
58056
58050
|
return null;
|
|
58057
58051
|
}
|
|
58058
58052
|
},
|
|
58059
|
-
styleId: {
|
|
58053
|
+
styleId: {
|
|
58054
|
+
renderDOM: (attrs) => {
|
|
58055
|
+
if (!attrs.styleId) return {};
|
|
58056
|
+
return { styleid: attrs.styleId };
|
|
58057
|
+
}
|
|
58058
|
+
},
|
|
58060
58059
|
sdBlockId: {
|
|
58061
58060
|
default: null,
|
|
58062
58061
|
keepOnSplit: false,
|
|
@@ -62810,24 +62809,24 @@ function parseToRgba(color) {
|
|
|
62810
62809
|
const reducedHexMatch = reducedHexRegex.exec(normalizedColor);
|
|
62811
62810
|
if (reducedHexMatch) {
|
|
62812
62811
|
const arr = Array.from(reducedHexMatch).slice(1);
|
|
62813
|
-
return [...arr.slice(0, 3).map((
|
|
62812
|
+
return [...arr.slice(0, 3).map((x) => parseInt(r$1(x, 2), 16)), parseInt(r$1(arr[3] || "f", 2), 16) / 255];
|
|
62814
62813
|
}
|
|
62815
62814
|
const hexMatch = hexRegex$1.exec(normalizedColor);
|
|
62816
62815
|
if (hexMatch) {
|
|
62817
62816
|
const arr = Array.from(hexMatch).slice(1);
|
|
62818
|
-
return [...arr.slice(0, 3).map((
|
|
62817
|
+
return [...arr.slice(0, 3).map((x) => parseInt(x, 16)), parseInt(arr[3] || "ff", 16) / 255];
|
|
62819
62818
|
}
|
|
62820
62819
|
const rgbaMatch = rgbaRegex$1.exec(normalizedColor);
|
|
62821
62820
|
if (rgbaMatch) {
|
|
62822
62821
|
const arr = Array.from(rgbaMatch).slice(1);
|
|
62823
|
-
return [...arr.slice(0, 3).map((
|
|
62822
|
+
return [...arr.slice(0, 3).map((x) => parseInt(x, 10)), parseFloat(arr[3] || "1")];
|
|
62824
62823
|
}
|
|
62825
62824
|
const hslaMatch = hslaRegex$1.exec(normalizedColor);
|
|
62826
62825
|
if (hslaMatch) {
|
|
62827
|
-
const [h2, s2,
|
|
62826
|
+
const [h2, s2, l3, a] = Array.from(hslaMatch).slice(1).map(parseFloat);
|
|
62828
62827
|
if (guard(0, 100, s2) !== s2) throw new ColorError$1(color);
|
|
62829
|
-
if (guard(0, 100,
|
|
62830
|
-
return [...hslToRgb(h2, s2,
|
|
62828
|
+
if (guard(0, 100, l3) !== l3) throw new ColorError$1(color);
|
|
62829
|
+
return [...hslToRgb(h2, s2, l3), Number.isNaN(a) ? 1 : a];
|
|
62831
62830
|
}
|
|
62832
62831
|
throw new ColorError$1(color);
|
|
62833
62832
|
}
|
|
@@ -62839,7 +62838,7 @@ function hash$2(str) {
|
|
|
62839
62838
|
}
|
|
62840
62839
|
return (hash2 >>> 0) % 2341;
|
|
62841
62840
|
}
|
|
62842
|
-
const colorToInt = (
|
|
62841
|
+
const colorToInt = (x) => parseInt(x.replace(/_/g, ""), 36);
|
|
62843
62842
|
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) => {
|
|
62844
62843
|
const key2 = colorToInt(next.substring(0, 3));
|
|
62845
62844
|
const hex2 = colorToInt(next.substring(3)).toString(16);
|
|
@@ -62866,12 +62865,12 @@ const roundColor = (color) => {
|
|
|
62866
62865
|
return Math.round(color * 255);
|
|
62867
62866
|
};
|
|
62868
62867
|
const hslToRgb = (hue, saturation, lightness) => {
|
|
62869
|
-
let
|
|
62868
|
+
let l3 = lightness / 100;
|
|
62870
62869
|
if (saturation === 0) {
|
|
62871
|
-
return [
|
|
62870
|
+
return [l3, l3, l3].map(roundColor);
|
|
62872
62871
|
}
|
|
62873
62872
|
const huePrime = (hue % 360 + 360) % 360 / 60;
|
|
62874
|
-
const chroma = (1 - Math.abs(2 *
|
|
62873
|
+
const chroma = (1 - Math.abs(2 * l3 - 1)) * (saturation / 100);
|
|
62875
62874
|
const secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));
|
|
62876
62875
|
let red = 0;
|
|
62877
62876
|
let green = 0;
|
|
@@ -62895,7 +62894,7 @@ const hslToRgb = (hue, saturation, lightness) => {
|
|
|
62895
62894
|
red = chroma;
|
|
62896
62895
|
blue = secondComponent;
|
|
62897
62896
|
}
|
|
62898
|
-
const lightnessModification =
|
|
62897
|
+
const lightnessModification = l3 - chroma / 2;
|
|
62899
62898
|
const finalRed = red + lightnessModification;
|
|
62900
62899
|
const finalGreen = green + lightnessModification;
|
|
62901
62900
|
const finalBlue = blue + lightnessModification;
|
|
@@ -62903,8 +62902,8 @@ const hslToRgb = (hue, saturation, lightness) => {
|
|
|
62903
62902
|
};
|
|
62904
62903
|
function toHex(color) {
|
|
62905
62904
|
const [r2, g, b2, a] = parseToRgba(color);
|
|
62906
|
-
let hex2 = (
|
|
62907
|
-
const h2 = guard(0, 255,
|
|
62905
|
+
let hex2 = (x) => {
|
|
62906
|
+
const h2 = guard(0, 255, x).toString(16);
|
|
62908
62907
|
return h2.length === 1 ? `0${h2}` : h2;
|
|
62909
62908
|
};
|
|
62910
62909
|
return `#${hex2(r2)}${hex2(g)}${hex2(b2)}${a < 1 ? hex2(Math.round(a * 255)) : ""}`;
|
|
@@ -65026,10 +65025,10 @@ const Image = Node$1.create({
|
|
|
65026
65025
|
let minX = 0;
|
|
65027
65026
|
let minY = 0;
|
|
65028
65027
|
let maxY = 0;
|
|
65029
|
-
attrs.polygon.forEach(([
|
|
65030
|
-
if (floatRight &&
|
|
65031
|
-
if (
|
|
65032
|
-
if (
|
|
65028
|
+
attrs.polygon.forEach(([x, y2]) => {
|
|
65029
|
+
if (floatRight && x < horizontalOffset) horizontalOffset = x;
|
|
65030
|
+
if (x > maxX) maxX = x;
|
|
65031
|
+
if (x < minX) minX = x;
|
|
65033
65032
|
if (y2 > maxY) maxY = y2;
|
|
65034
65033
|
if (y2 < minY) minY = y2;
|
|
65035
65034
|
});
|
|
@@ -65038,7 +65037,7 @@ const Image = Node$1.create({
|
|
|
65038
65037
|
const scaleWidth = Math.min(1, size2.width / originalWidth);
|
|
65039
65038
|
const scaleHeight = Math.min(1, size2.height / originalHeight);
|
|
65040
65039
|
const verticalOffset = Math.max(0, marginOffset.top);
|
|
65041
|
-
const points = attrs.polygon.map(([
|
|
65040
|
+
const points = attrs.polygon.map(([x, y2]) => `${horizontalOffset + x * scaleWidth}px ${verticalOffset + y2 * scaleHeight}px`).join(", ");
|
|
65042
65041
|
style2 += `shape-outside: polygon(${points});`;
|
|
65043
65042
|
}
|
|
65044
65043
|
break;
|
|
@@ -68405,42 +68404,42 @@ var M = ["fill", "stroke", "strokeWidth", "fillRule", "clipRule"], d = s;
|
|
|
68405
68404
|
function r(t) {
|
|
68406
68405
|
if (!t) return null;
|
|
68407
68406
|
let e = {};
|
|
68408
|
-
return M.forEach((
|
|
68409
|
-
let L2 = t[
|
|
68407
|
+
return M.forEach((l3) => {
|
|
68408
|
+
let L2 = t[l3];
|
|
68410
68409
|
if (L2 !== void 0)
|
|
68411
|
-
if (
|
|
68410
|
+
if (l3 === "strokeWidth") {
|
|
68412
68411
|
if (typeof L2 == "number") e.strokeWidth = L2;
|
|
68413
68412
|
else if (typeof L2 == "string") {
|
|
68414
68413
|
let o = Number(L2);
|
|
68415
68414
|
Number.isFinite(o) && (e.strokeWidth = o);
|
|
68416
68415
|
}
|
|
68417
|
-
} else typeof L2 == "string" && (e[
|
|
68416
|
+
} else typeof L2 == "string" && (e[l3] = L2);
|
|
68418
68417
|
}), Object.keys(e).length ? e : null;
|
|
68419
68418
|
}
|
|
68420
68419
|
function A(t, e) {
|
|
68421
|
-
let
|
|
68422
|
-
if (!e) return
|
|
68420
|
+
let l3 = t.map((o) => ({ ...o }));
|
|
68421
|
+
if (!e) return l3;
|
|
68423
68422
|
let L2 = (o, i) => typeof e == "function" ? r(e(o, i)) : Array.isArray(e) ? r(e[i]) : r(e);
|
|
68424
|
-
return
|
|
68423
|
+
return l3.map((o, i) => {
|
|
68425
68424
|
let n = L2(o, i);
|
|
68426
68425
|
return n ? { ...o, ...n } : o;
|
|
68427
68426
|
});
|
|
68428
68427
|
}
|
|
68429
68428
|
function f(t) {
|
|
68430
|
-
let { preset: e, styleOverrides:
|
|
68429
|
+
let { preset: e, styleOverrides: l3 } = t;
|
|
68431
68430
|
if (!e) throw new Error("createPresetShape requires a preset name.");
|
|
68432
68431
|
let L2 = d[e];
|
|
68433
68432
|
if (!L2) throw new Error(`Unknown preset shape: ${e}`);
|
|
68434
|
-
return { preset: e, viewBox: L2.viewBox, paths: A(L2.paths,
|
|
68433
|
+
return { preset: e, viewBox: L2.viewBox, paths: A(L2.paths, l3) };
|
|
68435
68434
|
}
|
|
68436
68435
|
function k(t) {
|
|
68437
|
-
let e = f(t),
|
|
68436
|
+
let e = f(t), l3 = e.paths.map((L2) => {
|
|
68438
68437
|
let o = [`d="${L2.d}"`];
|
|
68439
68438
|
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(" ")} />`;
|
|
68440
68439
|
}).join(`
|
|
68441
68440
|
`);
|
|
68442
68441
|
return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="${e.viewBox}" preserveAspectRatio="none">
|
|
68443
|
-
${
|
|
68442
|
+
${l3}
|
|
68444
68443
|
</svg>`;
|
|
68445
68444
|
}
|
|
68446
68445
|
class VectorShapeView {
|
|
@@ -68691,13 +68690,13 @@ class ShapeGroupView {
|
|
|
68691
68690
|
createShapeElement(shape) {
|
|
68692
68691
|
const attrs = shape.attrs;
|
|
68693
68692
|
if (!attrs) return null;
|
|
68694
|
-
const
|
|
68693
|
+
const x = attrs.x || 0;
|
|
68695
68694
|
const y2 = attrs.y || 0;
|
|
68696
68695
|
const width = attrs.width || 100;
|
|
68697
68696
|
const height = attrs.height || 100;
|
|
68698
68697
|
const g = document.createElementNS("http://www.w3.org/2000/svg", "g");
|
|
68699
68698
|
const transforms = [];
|
|
68700
|
-
transforms.push(`translate(${
|
|
68699
|
+
transforms.push(`translate(${x}, ${y2})`);
|
|
68701
68700
|
if (attrs.rotation !== 0) {
|
|
68702
68701
|
transforms.push(`rotate(${attrs.rotation} ${width / 2} ${height / 2})`);
|
|
68703
68702
|
}
|
|
@@ -70439,7 +70438,7 @@ function getBoundingClientRect$1(element, includeScale, isFixedStrategy) {
|
|
|
70439
70438
|
}
|
|
70440
70439
|
var _ref = isElement$2(element) ? getWindow$1(element) : window, visualViewport = _ref.visualViewport;
|
|
70441
70440
|
var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
|
|
70442
|
-
var
|
|
70441
|
+
var x = (clientRect2.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
|
|
70443
70442
|
var y2 = (clientRect2.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
|
|
70444
70443
|
var width = clientRect2.width / scaleX;
|
|
70445
70444
|
var height = clientRect2.height / scaleY;
|
|
@@ -70447,10 +70446,10 @@ function getBoundingClientRect$1(element, includeScale, isFixedStrategy) {
|
|
|
70447
70446
|
width,
|
|
70448
70447
|
height,
|
|
70449
70448
|
top: y2,
|
|
70450
|
-
right:
|
|
70449
|
+
right: x + width,
|
|
70451
70450
|
bottom: y2 + height,
|
|
70452
|
-
left:
|
|
70453
|
-
x
|
|
70451
|
+
left: x,
|
|
70452
|
+
x,
|
|
70454
70453
|
y: y2
|
|
70455
70454
|
};
|
|
70456
70455
|
}
|
|
@@ -70651,25 +70650,25 @@ var unsetSides = {
|
|
|
70651
70650
|
left: "auto"
|
|
70652
70651
|
};
|
|
70653
70652
|
function roundOffsetsByDPR(_ref, win) {
|
|
70654
|
-
var
|
|
70653
|
+
var x = _ref.x, y2 = _ref.y;
|
|
70655
70654
|
var dpr = win.devicePixelRatio || 1;
|
|
70656
70655
|
return {
|
|
70657
|
-
x: round$1(
|
|
70656
|
+
x: round$1(x * dpr) / dpr || 0,
|
|
70658
70657
|
y: round$1(y2 * dpr) / dpr || 0
|
|
70659
70658
|
};
|
|
70660
70659
|
}
|
|
70661
70660
|
function mapToStyles(_ref2) {
|
|
70662
70661
|
var _Object$assign2;
|
|
70663
70662
|
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;
|
|
70664
|
-
var _offsets$x = offsets.x,
|
|
70663
|
+
var _offsets$x = offsets.x, x = _offsets$x === void 0 ? 0 : _offsets$x, _offsets$y = offsets.y, y2 = _offsets$y === void 0 ? 0 : _offsets$y;
|
|
70665
70664
|
var _ref3 = typeof roundOffsets === "function" ? roundOffsets({
|
|
70666
|
-
x
|
|
70665
|
+
x,
|
|
70667
70666
|
y: y2
|
|
70668
70667
|
}) : {
|
|
70669
|
-
x
|
|
70668
|
+
x,
|
|
70670
70669
|
y: y2
|
|
70671
70670
|
};
|
|
70672
|
-
|
|
70671
|
+
x = _ref3.x;
|
|
70673
70672
|
y2 = _ref3.y;
|
|
70674
70673
|
var hasX = offsets.hasOwnProperty("x");
|
|
70675
70674
|
var hasY = offsets.hasOwnProperty("y");
|
|
@@ -70703,27 +70702,27 @@ function mapToStyles(_ref2) {
|
|
|
70703
70702
|
// $FlowFixMe[prop-missing]
|
|
70704
70703
|
offsetParent[widthProp]
|
|
70705
70704
|
);
|
|
70706
|
-
|
|
70707
|
-
|
|
70705
|
+
x -= offsetX - popperRect.width;
|
|
70706
|
+
x *= gpuAcceleration ? 1 : -1;
|
|
70708
70707
|
}
|
|
70709
70708
|
}
|
|
70710
70709
|
var commonStyles = Object.assign({
|
|
70711
70710
|
position
|
|
70712
70711
|
}, adaptive && unsetSides);
|
|
70713
70712
|
var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
|
|
70714
|
-
x
|
|
70713
|
+
x,
|
|
70715
70714
|
y: y2
|
|
70716
70715
|
}, getWindow$1(popper2)) : {
|
|
70717
|
-
x
|
|
70716
|
+
x,
|
|
70718
70717
|
y: y2
|
|
70719
70718
|
};
|
|
70720
|
-
|
|
70719
|
+
x = _ref4.x;
|
|
70721
70720
|
y2 = _ref4.y;
|
|
70722
70721
|
if (gpuAcceleration) {
|
|
70723
70722
|
var _Object$assign;
|
|
70724
|
-
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" +
|
|
70723
|
+
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y2 + "px)" : "translate3d(" + x + "px, " + y2 + "px, 0)", _Object$assign));
|
|
70725
70724
|
}
|
|
70726
|
-
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y2 + "px" : "", _Object$assign2[sideX] = hasX ?
|
|
70725
|
+
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y2 + "px" : "", _Object$assign2[sideX] = hasX ? x + "px" : "", _Object$assign2.transform = "", _Object$assign2));
|
|
70727
70726
|
}
|
|
70728
70727
|
function computeStyles(_ref5) {
|
|
70729
70728
|
var state2 = _ref5.state, options = _ref5.options;
|
|
@@ -70837,21 +70836,21 @@ function getViewportRect$1(element, strategy) {
|
|
|
70837
70836
|
var visualViewport = win.visualViewport;
|
|
70838
70837
|
var width = html.clientWidth;
|
|
70839
70838
|
var height = html.clientHeight;
|
|
70840
|
-
var
|
|
70839
|
+
var x = 0;
|
|
70841
70840
|
var y2 = 0;
|
|
70842
70841
|
if (visualViewport) {
|
|
70843
70842
|
width = visualViewport.width;
|
|
70844
70843
|
height = visualViewport.height;
|
|
70845
70844
|
var layoutViewport = isLayoutViewport();
|
|
70846
70845
|
if (layoutViewport || !layoutViewport && strategy === "fixed") {
|
|
70847
|
-
|
|
70846
|
+
x = visualViewport.offsetLeft;
|
|
70848
70847
|
y2 = visualViewport.offsetTop;
|
|
70849
70848
|
}
|
|
70850
70849
|
}
|
|
70851
70850
|
return {
|
|
70852
70851
|
width,
|
|
70853
70852
|
height,
|
|
70854
|
-
x:
|
|
70853
|
+
x: x + getWindowScrollBarX$1(element),
|
|
70855
70854
|
y: y2
|
|
70856
70855
|
};
|
|
70857
70856
|
}
|
|
@@ -70862,15 +70861,15 @@ function getDocumentRect$1(element) {
|
|
|
70862
70861
|
var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
70863
70862
|
var width = max$1(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
70864
70863
|
var height = max$1(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
70865
|
-
var
|
|
70864
|
+
var x = -winScroll.scrollLeft + getWindowScrollBarX$1(element);
|
|
70866
70865
|
var y2 = -winScroll.scrollTop;
|
|
70867
70866
|
if (getComputedStyle$2(body || html).direction === "rtl") {
|
|
70868
|
-
|
|
70867
|
+
x += max$1(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
70869
70868
|
}
|
|
70870
70869
|
return {
|
|
70871
70870
|
width,
|
|
70872
70871
|
height,
|
|
70873
|
-
x
|
|
70872
|
+
x,
|
|
70874
70873
|
y: y2
|
|
70875
70874
|
};
|
|
70876
70875
|
}
|
|
@@ -71247,9 +71246,9 @@ function offset(_ref2) {
|
|
|
71247
71246
|
acc[placement] = distanceAndSkiddingToXY(placement, state2.rects, offset2);
|
|
71248
71247
|
return acc;
|
|
71249
71248
|
}, {});
|
|
71250
|
-
var _data$state$placement = data[state2.placement],
|
|
71249
|
+
var _data$state$placement = data[state2.placement], x = _data$state$placement.x, y2 = _data$state$placement.y;
|
|
71251
71250
|
if (state2.modifiersData.popperOffsets != null) {
|
|
71252
|
-
state2.modifiersData.popperOffsets.x +=
|
|
71251
|
+
state2.modifiersData.popperOffsets.x += x;
|
|
71253
71252
|
state2.modifiersData.popperOffsets.y += y2;
|
|
71254
71253
|
}
|
|
71255
71254
|
state2.modifiersData[name] = data;
|
|
@@ -73200,7 +73199,7 @@ function getPaddingObject(padding) {
|
|
|
73200
73199
|
}
|
|
73201
73200
|
function rectToClientRect(rect) {
|
|
73202
73201
|
const {
|
|
73203
|
-
x
|
|
73202
|
+
x,
|
|
73204
73203
|
y: y2,
|
|
73205
73204
|
width,
|
|
73206
73205
|
height
|
|
@@ -73209,10 +73208,10 @@ function rectToClientRect(rect) {
|
|
|
73209
73208
|
width,
|
|
73210
73209
|
height,
|
|
73211
73210
|
top: y2,
|
|
73212
|
-
left:
|
|
73213
|
-
right:
|
|
73211
|
+
left: x,
|
|
73212
|
+
right: x + width,
|
|
73214
73213
|
bottom: y2 + height,
|
|
73215
|
-
x
|
|
73214
|
+
x,
|
|
73216
73215
|
y: y2
|
|
73217
73216
|
};
|
|
73218
73217
|
}
|
|
@@ -73286,7 +73285,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
|
|
|
73286
73285
|
strategy
|
|
73287
73286
|
});
|
|
73288
73287
|
let {
|
|
73289
|
-
x
|
|
73288
|
+
x,
|
|
73290
73289
|
y: y2
|
|
73291
73290
|
} = computeCoordsFromPlacement(rects, placement, rtl);
|
|
73292
73291
|
let statefulPlacement = placement;
|
|
@@ -73303,7 +73302,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
|
|
|
73303
73302
|
data,
|
|
73304
73303
|
reset
|
|
73305
73304
|
} = await fn2({
|
|
73306
|
-
x
|
|
73305
|
+
x,
|
|
73307
73306
|
y: y2,
|
|
73308
73307
|
initialPlacement: placement,
|
|
73309
73308
|
placement: statefulPlacement,
|
|
@@ -73316,7 +73315,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
|
|
|
73316
73315
|
floating
|
|
73317
73316
|
}
|
|
73318
73317
|
});
|
|
73319
|
-
|
|
73318
|
+
x = nextX != null ? nextX : x;
|
|
73320
73319
|
y2 = nextY != null ? nextY : y2;
|
|
73321
73320
|
middlewareData = {
|
|
73322
73321
|
...middlewareData,
|
|
@@ -73339,7 +73338,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
|
|
|
73339
73338
|
}) : reset.rects;
|
|
73340
73339
|
}
|
|
73341
73340
|
({
|
|
73342
|
-
x
|
|
73341
|
+
x,
|
|
73343
73342
|
y: y2
|
|
73344
73343
|
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
|
73345
73344
|
}
|
|
@@ -73347,7 +73346,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
|
|
|
73347
73346
|
}
|
|
73348
73347
|
}
|
|
73349
73348
|
return {
|
|
73350
|
-
x
|
|
73349
|
+
x,
|
|
73351
73350
|
y: y2,
|
|
73352
73351
|
placement: statefulPlacement,
|
|
73353
73352
|
strategy,
|
|
@@ -73360,7 +73359,7 @@ async function detectOverflow(state2, options) {
|
|
|
73360
73359
|
options = {};
|
|
73361
73360
|
}
|
|
73362
73361
|
const {
|
|
73363
|
-
x
|
|
73362
|
+
x,
|
|
73364
73363
|
y: y2,
|
|
73365
73364
|
platform: platform2,
|
|
73366
73365
|
rects,
|
|
@@ -73384,7 +73383,7 @@ async function detectOverflow(state2, options) {
|
|
|
73384
73383
|
strategy
|
|
73385
73384
|
}));
|
|
73386
73385
|
const rect = elementContext === "floating" ? {
|
|
73387
|
-
x
|
|
73386
|
+
x,
|
|
73388
73387
|
y: y2,
|
|
73389
73388
|
width: rects.floating.width,
|
|
73390
73389
|
height: rects.floating.height
|
|
@@ -73653,16 +73652,16 @@ function getScale(element) {
|
|
|
73653
73652
|
height,
|
|
73654
73653
|
$: $2
|
|
73655
73654
|
} = getCssDimensions(domElement);
|
|
73656
|
-
let
|
|
73655
|
+
let x = ($2 ? round(rect.width) : rect.width) / width;
|
|
73657
73656
|
let y2 = ($2 ? round(rect.height) : rect.height) / height;
|
|
73658
|
-
if (!
|
|
73659
|
-
|
|
73657
|
+
if (!x || !Number.isFinite(x)) {
|
|
73658
|
+
x = 1;
|
|
73660
73659
|
}
|
|
73661
73660
|
if (!y2 || !Number.isFinite(y2)) {
|
|
73662
73661
|
y2 = 1;
|
|
73663
73662
|
}
|
|
73664
73663
|
return {
|
|
73665
|
-
x
|
|
73664
|
+
x,
|
|
73666
73665
|
y: y2
|
|
73667
73666
|
};
|
|
73668
73667
|
}
|
|
@@ -73706,7 +73705,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
73706
73705
|
}
|
|
73707
73706
|
}
|
|
73708
73707
|
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
|
73709
|
-
let
|
|
73708
|
+
let x = (clientRect2.left + visualOffsets.x) / scale.x;
|
|
73710
73709
|
let y2 = (clientRect2.top + visualOffsets.y) / scale.y;
|
|
73711
73710
|
let width = clientRect2.width / scale.x;
|
|
73712
73711
|
let height = clientRect2.height / scale.y;
|
|
@@ -73721,11 +73720,11 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
73721
73720
|
const css = getComputedStyle$1(currentIFrame);
|
|
73722
73721
|
const left2 = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
73723
73722
|
const top2 = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
73724
|
-
|
|
73723
|
+
x *= iframeScale.x;
|
|
73725
73724
|
y2 *= iframeScale.y;
|
|
73726
73725
|
width *= iframeScale.x;
|
|
73727
73726
|
height *= iframeScale.y;
|
|
73728
|
-
|
|
73727
|
+
x += left2;
|
|
73729
73728
|
y2 += top2;
|
|
73730
73729
|
currentWin = getWindow(currentIFrame);
|
|
73731
73730
|
currentIFrame = getFrameElement(currentWin);
|
|
@@ -73734,7 +73733,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
73734
73733
|
return rectToClientRect({
|
|
73735
73734
|
width,
|
|
73736
73735
|
height,
|
|
73737
|
-
x
|
|
73736
|
+
x,
|
|
73738
73737
|
y: y2
|
|
73739
73738
|
});
|
|
73740
73739
|
}
|
|
@@ -73747,10 +73746,10 @@ function getWindowScrollBarX(element, rect) {
|
|
|
73747
73746
|
}
|
|
73748
73747
|
function getHTMLOffset(documentElement, scroll) {
|
|
73749
73748
|
const htmlRect = documentElement.getBoundingClientRect();
|
|
73750
|
-
const
|
|
73749
|
+
const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
|
|
73751
73750
|
const y2 = htmlRect.top + scroll.scrollTop;
|
|
73752
73751
|
return {
|
|
73753
|
-
x
|
|
73752
|
+
x,
|
|
73754
73753
|
y: y2
|
|
73755
73754
|
};
|
|
73756
73755
|
}
|
|
@@ -73802,15 +73801,15 @@ function getDocumentRect(element) {
|
|
|
73802
73801
|
const body = element.ownerDocument.body;
|
|
73803
73802
|
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
|
73804
73803
|
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
|
73805
|
-
let
|
|
73804
|
+
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
73806
73805
|
const y2 = -scroll.scrollTop;
|
|
73807
73806
|
if (getComputedStyle$1(body).direction === "rtl") {
|
|
73808
|
-
|
|
73807
|
+
x += max(html.clientWidth, body.clientWidth) - width;
|
|
73809
73808
|
}
|
|
73810
73809
|
return {
|
|
73811
73810
|
width,
|
|
73812
73811
|
height,
|
|
73813
|
-
x
|
|
73812
|
+
x,
|
|
73814
73813
|
y: y2
|
|
73815
73814
|
};
|
|
73816
73815
|
}
|
|
@@ -73821,14 +73820,14 @@ function getViewportRect(element, strategy) {
|
|
|
73821
73820
|
const visualViewport = win.visualViewport;
|
|
73822
73821
|
let width = html.clientWidth;
|
|
73823
73822
|
let height = html.clientHeight;
|
|
73824
|
-
let
|
|
73823
|
+
let x = 0;
|
|
73825
73824
|
let y2 = 0;
|
|
73826
73825
|
if (visualViewport) {
|
|
73827
73826
|
width = visualViewport.width;
|
|
73828
73827
|
height = visualViewport.height;
|
|
73829
73828
|
const visualViewportBased = isWebKit();
|
|
73830
73829
|
if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
|
|
73831
|
-
|
|
73830
|
+
x = visualViewport.offsetLeft;
|
|
73832
73831
|
y2 = visualViewport.offsetTop;
|
|
73833
73832
|
}
|
|
73834
73833
|
}
|
|
@@ -73848,7 +73847,7 @@ function getViewportRect(element, strategy) {
|
|
|
73848
73847
|
return {
|
|
73849
73848
|
width,
|
|
73850
73849
|
height,
|
|
73851
|
-
x
|
|
73850
|
+
x,
|
|
73852
73851
|
y: y2
|
|
73853
73852
|
};
|
|
73854
73853
|
}
|
|
@@ -73860,12 +73859,12 @@ function getInnerBoundingClientRect(element, strategy) {
|
|
|
73860
73859
|
const scale = isHTMLElement$2(element) ? getScale(element) : createCoords(1);
|
|
73861
73860
|
const width = element.clientWidth * scale.x;
|
|
73862
73861
|
const height = element.clientHeight * scale.y;
|
|
73863
|
-
const
|
|
73862
|
+
const x = left2 * scale.x;
|
|
73864
73863
|
const y2 = top2 * scale.y;
|
|
73865
73864
|
return {
|
|
73866
73865
|
width,
|
|
73867
73866
|
height,
|
|
73868
|
-
x
|
|
73867
|
+
x,
|
|
73869
73868
|
y: y2
|
|
73870
73869
|
};
|
|
73871
73870
|
}
|
|
@@ -73985,10 +73984,10 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
73985
73984
|
setLeftRTLScrollbarOffset();
|
|
73986
73985
|
}
|
|
73987
73986
|
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
73988
|
-
const
|
|
73987
|
+
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
73989
73988
|
const y2 = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
73990
73989
|
return {
|
|
73991
|
-
x
|
|
73990
|
+
x,
|
|
73992
73991
|
y: y2,
|
|
73993
73992
|
width: rect.width,
|
|
73994
73993
|
height: rect.height
|
|
@@ -74867,22 +74866,22 @@ function createFloatingSeparator(separator, editor) {
|
|
|
74867
74866
|
const rect = elements.reference.getBoundingClientRect();
|
|
74868
74867
|
const containerRect = editorElement.getBoundingClientRect();
|
|
74869
74868
|
const scaleFactor = getScaleFactor(editorElement);
|
|
74870
|
-
const
|
|
74869
|
+
const x = Math.round((rect.left - containerRect.left) / scaleFactor);
|
|
74871
74870
|
const y2 = Math.round((rect.top - containerRect.top) / scaleFactor);
|
|
74872
74871
|
const width = Math.round(rect.width / scaleFactor);
|
|
74873
74872
|
const height = Math.round(rect.height / scaleFactor);
|
|
74874
74873
|
return {
|
|
74875
|
-
x
|
|
74874
|
+
x,
|
|
74876
74875
|
y: y2,
|
|
74877
74876
|
data: { width, height }
|
|
74878
74877
|
};
|
|
74879
74878
|
}
|
|
74880
74879
|
}
|
|
74881
74880
|
]
|
|
74882
|
-
}).then(({ x
|
|
74881
|
+
}).then(({ x, y: y2, middlewareData }) => {
|
|
74883
74882
|
Object.assign(floatingSeparator.style, {
|
|
74884
74883
|
top: `${y2}px`,
|
|
74885
|
-
left: `${
|
|
74884
|
+
left: `${x}px`,
|
|
74886
74885
|
width: `${middlewareData.copy.width}px`,
|
|
74887
74886
|
height: `${middlewareData.copy.height}px`,
|
|
74888
74887
|
visibility: middlewareData.hide?.referenceHidden ? "hidden" : "visible"
|
|
@@ -76995,11 +76994,11 @@ function hsv2rgb(h2, s2, v2) {
|
|
|
76995
76994
|
let f2 = (n, k2 = (n + h2 / 60) % 6) => v2 - v2 * s2 * Math.max(Math.min(k2, 4 - k2, 1), 0);
|
|
76996
76995
|
return [f2(5) * 255, f2(3) * 255, f2(1) * 255];
|
|
76997
76996
|
}
|
|
76998
|
-
function hsl2rgb(h2, s2,
|
|
76997
|
+
function hsl2rgb(h2, s2, l3) {
|
|
76999
76998
|
s2 /= 100;
|
|
77000
|
-
|
|
77001
|
-
let a = s2 * Math.min(
|
|
77002
|
-
let f2 = (n, k2 = (n + h2 / 30) % 12) =>
|
|
76999
|
+
l3 /= 100;
|
|
77000
|
+
let a = s2 * Math.min(l3, 1 - l3);
|
|
77001
|
+
let f2 = (n, k2 = (n + h2 / 30) % 12) => l3 - a * Math.max(Math.min(k2 - 3, 9 - k2, 1), -1);
|
|
77003
77002
|
return [f2(0) * 255, f2(8) * 255, f2(4) * 255];
|
|
77004
77003
|
}
|
|
77005
77004
|
const prefix = "^\\s*";
|
|
@@ -77095,8 +77094,8 @@ function rgba(color) {
|
|
|
77095
77094
|
} else if (color in colors) {
|
|
77096
77095
|
return rgba(colors[color]);
|
|
77097
77096
|
} else if (hslRegex.test(color) || hslaRegex.test(color)) {
|
|
77098
|
-
const [h2, s2,
|
|
77099
|
-
return [...hsl2rgb(h2, s2,
|
|
77097
|
+
const [h2, s2, l3, a] = hsla(color);
|
|
77098
|
+
return [...hsl2rgb(h2, s2, l3), a];
|
|
77100
77099
|
} else if (hsvRegex.test(color) || hsvaRegex.test(color)) {
|
|
77101
77100
|
const [h2, s2, v2, a] = hsva(color);
|
|
77102
77101
|
return [...hsv2rgb(h2, s2, v2), a];
|
|
@@ -77895,14 +77894,14 @@ function ensureViewBoundingRect() {
|
|
|
77895
77894
|
}
|
|
77896
77895
|
return viewMeasurer.getBoundingClientRect();
|
|
77897
77896
|
}
|
|
77898
|
-
function getPointRect(
|
|
77897
|
+
function getPointRect(x, y2) {
|
|
77899
77898
|
const viewRect = ensureViewBoundingRect();
|
|
77900
77899
|
return {
|
|
77901
77900
|
top: y2,
|
|
77902
|
-
left:
|
|
77901
|
+
left: x,
|
|
77903
77902
|
height: 0,
|
|
77904
77903
|
width: 0,
|
|
77905
|
-
right: viewRect.width -
|
|
77904
|
+
right: viewRect.width - x,
|
|
77906
77905
|
bottom: viewRect.height - y2
|
|
77907
77906
|
};
|
|
77908
77907
|
}
|
|
@@ -78740,8 +78739,8 @@ const VFollower = defineComponent({
|
|
|
78740
78739
|
if (follower === null)
|
|
78741
78740
|
return;
|
|
78742
78741
|
const target = VBinder.targetRef;
|
|
78743
|
-
const { x
|
|
78744
|
-
const targetRect =
|
|
78742
|
+
const { x, y: y2, overlap } = props;
|
|
78743
|
+
const targetRect = x !== void 0 && y2 !== void 0 ? getPointRect(x, y2) : getRect(target);
|
|
78745
78744
|
follower.style.setProperty("--v-target-width", `${Math.round(targetRect.width)}px`);
|
|
78746
78745
|
follower.style.setProperty("--v-target-height", `${Math.round(targetRect.height)}px`);
|
|
78747
78746
|
const { width, minWidth, placement, internalShift, flip: flip2 } = props;
|
|
@@ -78911,8 +78910,8 @@ var ResizeObserverSize = /* @__PURE__ */ (function() {
|
|
|
78911
78910
|
return ResizeObserverSize2;
|
|
78912
78911
|
})();
|
|
78913
78912
|
var DOMRectReadOnly = (function() {
|
|
78914
|
-
function DOMRectReadOnly2(
|
|
78915
|
-
this.x =
|
|
78913
|
+
function DOMRectReadOnly2(x, y2, width, height) {
|
|
78914
|
+
this.x = x;
|
|
78916
78915
|
this.y = y2;
|
|
78917
78916
|
this.width = width;
|
|
78918
78917
|
this.height = height;
|
|
@@ -78923,8 +78922,8 @@ var DOMRectReadOnly = (function() {
|
|
|
78923
78922
|
return freeze(this);
|
|
78924
78923
|
}
|
|
78925
78924
|
DOMRectReadOnly2.prototype.toJSON = function() {
|
|
78926
|
-
var _a2 = this,
|
|
78927
|
-
return { x
|
|
78925
|
+
var _a2 = this, x = _a2.x, y2 = _a2.y, top2 = _a2.top, right2 = _a2.right, bottom2 = _a2.bottom, left2 = _a2.left, width = _a2.width, height = _a2.height;
|
|
78926
|
+
return { x, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
|
|
78928
78927
|
};
|
|
78929
78928
|
DOMRectReadOnly2.fromRect = function(rectangle) {
|
|
78930
78929
|
return new DOMRectReadOnly2(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
|
|
@@ -82758,10 +82757,10 @@ function getFirstAvailableNode(nodes) {
|
|
|
82758
82757
|
}
|
|
82759
82758
|
function rawGetNext(node, loop) {
|
|
82760
82759
|
const sibs = node.siblings;
|
|
82761
|
-
const
|
|
82760
|
+
const l3 = sibs.length;
|
|
82762
82761
|
const { index: index2 } = node;
|
|
82763
82762
|
if (loop) {
|
|
82764
|
-
return sibs[(index2 + 1) %
|
|
82763
|
+
return sibs[(index2 + 1) % l3];
|
|
82765
82764
|
} else {
|
|
82766
82765
|
if (index2 === sibs.length - 1)
|
|
82767
82766
|
return null;
|
|
@@ -82817,10 +82816,10 @@ function move(fromNode, dir, { loop = false, includeDisabled = false } = {}) {
|
|
|
82817
82816
|
}
|
|
82818
82817
|
function rawGetPrev(node, loop) {
|
|
82819
82818
|
const sibs = node.siblings;
|
|
82820
|
-
const
|
|
82819
|
+
const l3 = sibs.length;
|
|
82821
82820
|
const { index: index2 } = node;
|
|
82822
82821
|
if (loop) {
|
|
82823
|
-
return sibs[(index2 - 1 +
|
|
82822
|
+
return sibs[(index2 - 1 + l3) % l3];
|
|
82824
82823
|
} else {
|
|
82825
82824
|
if (index2 === 0)
|
|
82826
82825
|
return null;
|
|
@@ -86544,7 +86543,7 @@ function requireEventemitter3() {
|
|
|
86544
86543
|
var evt = prefix2 ? prefix2 + event : event, handlers2 = this._events[evt];
|
|
86545
86544
|
if (!handlers2) return [];
|
|
86546
86545
|
if (handlers2.fn) return [handlers2.fn];
|
|
86547
|
-
for (var i2 = 0,
|
|
86546
|
+
for (var i2 = 0, l3 = handlers2.length, ee = new Array(l3); i2 < l3; i2++) {
|
|
86548
86547
|
ee[i2] = handlers2[i2].fn;
|
|
86549
86548
|
}
|
|
86550
86549
|
return ee;
|