@pristy/pristy-libvue 2.18.2 → 2.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -0
- package/dist/{ActivityHistory-Ceg-TT2z.js → ActivityHistory-_0tW0rvq.js} +46 -36
- package/dist/ActivityHistory-_0tW0rvq.js.map +1 -0
- package/dist/{BookmarksComponent-B9Cs5W3M.js → BookmarksComponent-Cho18tdw.js} +2 -2
- package/dist/{BookmarksComponent-B9Cs5W3M.js.map → BookmarksComponent-Cho18tdw.js.map} +1 -1
- package/dist/{ChartWrapper-FvxEDgfp.js → ChartWrapper-SxW9ySdd.js} +2 -2
- package/dist/{ChartWrapper-FvxEDgfp.js.map → ChartWrapper-SxW9ySdd.js.map} +1 -1
- package/dist/{DisplayFileInDashboardComponent-CNJXyoYF.js → DisplayFileInDashboardComponent-DybH5peP.js} +2 -2
- package/dist/{DisplayFileInDashboardComponent-CNJXyoYF.js.map → DisplayFileInDashboardComponent-DybH5peP.js.map} +1 -1
- package/dist/{ExternalApps-C7affsUK.js → ExternalApps-CAgQ4Fj6.js} +2 -2
- package/dist/{ExternalApps-C7affsUK.js.map → ExternalApps-CAgQ4Fj6.js.map} +1 -1
- package/dist/{FavoriteList-By-5ScJW.js → FavoriteList-CIvIXlWH.js} +2 -2
- package/dist/{FavoriteList-By-5ScJW.js.map → FavoriteList-CIvIXlWH.js.map} +1 -1
- package/dist/{MarkdownComponent-D3pdlWVI.js → MarkdownComponent-ClspMFPD.js} +2 -2
- package/dist/{MarkdownComponent-D3pdlWVI.js.map → MarkdownComponent-ClspMFPD.js.map} +1 -1
- package/dist/{SearchInput-DzA1MVbI.js → SearchInput-DqVul-dd.js} +2 -2
- package/dist/{SearchInput-DzA1MVbI.js.map → SearchInput-DqVul-dd.js.map} +1 -1
- package/dist/{UnknownBlockType-BfQLAxi6.js → UnknownBlockType-GuPCc_3z.js} +2 -2
- package/dist/{UnknownBlockType-BfQLAxi6.js.map → UnknownBlockType-GuPCc_3z.js.map} +1 -1
- package/dist/{index-B82yEdg6.js → index-Bat41R_Q.js} +10703 -9896
- package/dist/index-Bat41R_Q.js.map +1 -0
- package/dist/{jszip.min-BrmBkVmG.js → jszip.min-BNqdRFyY.js} +445 -443
- package/dist/jszip.min-BNqdRFyY.js.map +1 -0
- package/dist/pristy-libvue.css +1 -1
- package/dist/pristy-libvue.es.js +190 -186
- package/dist/pristy-libvue.umd.js +30 -22
- package/dist/pristy-libvue.umd.js.map +1 -1
- package/dist/src/components/classification/AdminClassificationPage.vue.d.ts +3 -0
- package/dist/src/components/classification/FieldForm.vue.d.ts +3 -0
- package/dist/src/components/classification/FieldForm.vue.d.ts.map +1 -1
- package/dist/src/components/config/ListVersionConfig.vue.d.ts +1 -1
- package/dist/src/components/dashboard/DashboardAdminPage.vue.d.ts +72 -0
- package/dist/src/components/dashboard/DashboardComponent.vue.d.ts +11 -0
- package/dist/src/components/dashboard/editor/BlockConfigEditor.vue.d.ts +61 -0
- package/dist/src/components/dashboard/editor/DashboardEditor.vue.d.ts +72 -0
- package/dist/src/components/dashboard/editor/block-configs/MyActivityConfig.vue.d.ts +66 -0
- package/dist/src/components/dashboard/editor/block-configs/MyActivityConfig.vue.d.ts.map +1 -0
- package/dist/src/components/dashboard/widgets/ActivityHistory.vue.d.ts +11 -0
- package/dist/src/components/layouts/AppSubmenu.vue.d.ts +4 -2
- package/dist/src/components/layouts/AppSubmenu.vue.d.ts.map +1 -1
- package/dist/src/components/layouts/AppSwitcher.vue.d.ts +63 -0
- package/dist/src/components/layouts/AppSwitcher.vue.d.ts.map +1 -0
- package/dist/src/components/navigation/DynamicContentView.vue.d.ts +29 -5
- package/dist/src/components/navigation/DynamicContentView.vue.d.ts.map +1 -1
- package/dist/src/components/navigation/PreviewPanel.vue.d.ts +10 -0
- package/dist/src/components/popup/SendMailPopup.vue.d.ts +31 -5
- package/dist/src/components/popup/SendMailPopup.vue.d.ts.map +1 -1
- package/dist/src/components/search/AdvancedSearchPanel.vue.d.ts +1 -1
- package/dist/src/components/search/AdvancedSearchPanel.vue.d.ts.map +1 -1
- package/dist/src/components/search/AdvancedViewPanel.vue.d.ts +1 -1
- package/dist/src/components/search/ExactSearch.vue.d.ts.map +1 -1
- package/dist/src/components/search/SaveViewPopup.vue.d.ts +1 -1
- package/dist/src/components/viewer/PDFComponent.vue.d.ts +10 -0
- package/dist/src/components/viewer/PDFComponent.vue.d.ts.map +1 -1
- package/dist/src/components/viewer/PdfSignaturePanel.vue.d.ts +9 -0
- package/dist/src/components/viewer/PdfSignaturePanel.vue.d.ts.map +1 -0
- package/dist/src/composables/useClassificationPlan.d.ts.map +1 -1
- package/dist/src/i18n/index.d.ts +96 -0
- package/dist/src/i18n/index.d.ts.map +1 -1
- package/dist/src/index.d.ts +3 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/services/AppSwitcherService.d.ts +36 -0
- package/dist/src/services/AppSwitcherService.d.ts.map +1 -0
- package/dist/src/services/PdfSignatureService.d.ts +2 -0
- package/dist/src/services/PdfSignatureService.d.ts.map +1 -0
- package/dist/src/services/userSearchQuery.d.ts +31 -0
- package/dist/src/services/userSearchQuery.d.ts.map +1 -0
- package/dist/src/stores/config.d.ts +3 -0
- package/dist/src/stores/config.d.ts.map +1 -1
- package/dist/src/stores/search.d.ts +2 -0
- package/dist/src/stores/search.d.ts.map +1 -1
- package/dist/src/utils/classificationPlanUtils.d.ts +16 -0
- package/dist/src/utils/classificationPlanUtils.d.ts.map +1 -1
- package/package.json +16 -13
- package/dist/ActivityHistory-Ceg-TT2z.js.map +0 -1
- package/dist/index-B82yEdg6.js.map +0 -1
- package/dist/jszip.min-BrmBkVmG.js.map +0 -1
|
@@ -4,8 +4,8 @@ function Bt(ut, wt) {
|
|
|
4
4
|
if (typeof N != "string" && !Array.isArray(N)) {
|
|
5
5
|
for (const w in N)
|
|
6
6
|
if (w !== "default" && !(w in ut)) {
|
|
7
|
-
const
|
|
8
|
-
|
|
7
|
+
const l = Object.getOwnPropertyDescriptor(N, w);
|
|
8
|
+
l && Object.defineProperty(ut, w, l.get ? l : {
|
|
9
9
|
enumerable: !0,
|
|
10
10
|
get: () => N[w]
|
|
11
11
|
});
|
|
@@ -28,8 +28,8 @@ function Tt() {
|
|
|
28
28
|
(function(_) {
|
|
29
29
|
ut.exports = _();
|
|
30
30
|
})(function() {
|
|
31
|
-
return (function _(N, w,
|
|
32
|
-
function
|
|
31
|
+
return (function _(N, w, l) {
|
|
32
|
+
function u(g, y) {
|
|
33
33
|
if (!w[g]) {
|
|
34
34
|
if (!N[g]) {
|
|
35
35
|
var p = typeof yt == "function" && yt;
|
|
@@ -41,50 +41,50 @@ function Tt() {
|
|
|
41
41
|
var i = w[g] = { exports: {} };
|
|
42
42
|
N[g][0].call(i.exports, function(d) {
|
|
43
43
|
var r = N[g][1][d];
|
|
44
|
-
return
|
|
45
|
-
}, i, i.exports, _, N, w,
|
|
44
|
+
return u(r || d);
|
|
45
|
+
}, i, i.exports, _, N, w, l);
|
|
46
46
|
}
|
|
47
47
|
return w[g].exports;
|
|
48
48
|
}
|
|
49
|
-
for (var n = typeof yt == "function" && yt, h = 0; h <
|
|
50
|
-
return
|
|
49
|
+
for (var n = typeof yt == "function" && yt, h = 0; h < l.length; h++) u(l[h]);
|
|
50
|
+
return u;
|
|
51
51
|
})({ 1: [function(_, N, w) {
|
|
52
|
-
var
|
|
52
|
+
var l = _("./utils"), u = _("./support"), n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
53
53
|
w.encode = function(h) {
|
|
54
|
-
for (var g, y, p, b, i, d, r,
|
|
55
|
-
return
|
|
54
|
+
for (var g, y, p, b, i, d, r, o = [], a = 0, c = h.length, v = c, S = l.getTypeOf(h) !== "string"; a < h.length; ) v = c - a, p = S ? (g = h[a++], y = a < c ? h[a++] : 0, a < c ? h[a++] : 0) : (g = h.charCodeAt(a++), y = a < c ? h.charCodeAt(a++) : 0, a < c ? h.charCodeAt(a++) : 0), b = g >> 2, i = (3 & g) << 4 | y >> 4, d = 1 < v ? (15 & y) << 2 | p >> 6 : 64, r = 2 < v ? 63 & p : 64, o.push(n.charAt(b) + n.charAt(i) + n.charAt(d) + n.charAt(r));
|
|
55
|
+
return o.join("");
|
|
56
56
|
}, w.decode = function(h) {
|
|
57
|
-
var g, y, p, b, i, d, r = 0,
|
|
57
|
+
var g, y, p, b, i, d, r = 0, o = 0, a = "data:";
|
|
58
58
|
if (h.substr(0, a.length) === a) throw new Error("Invalid base64 input, it looks like a data url.");
|
|
59
59
|
var c, v = 3 * (h = h.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
|
|
60
60
|
if (h.charAt(h.length - 1) === n.charAt(64) && v--, h.charAt(h.length - 2) === n.charAt(64) && v--, v % 1 != 0) throw new Error("Invalid base64 input, bad content length.");
|
|
61
|
-
for (c =
|
|
61
|
+
for (c = u.uint8array ? new Uint8Array(0 | v) : new Array(0 | v); r < h.length; ) g = n.indexOf(h.charAt(r++)) << 2 | (b = n.indexOf(h.charAt(r++))) >> 4, y = (15 & b) << 4 | (i = n.indexOf(h.charAt(r++))) >> 2, p = (3 & i) << 6 | (d = n.indexOf(h.charAt(r++))), c[o++] = g, i !== 64 && (c[o++] = y), d !== 64 && (c[o++] = p);
|
|
62
62
|
return c;
|
|
63
63
|
};
|
|
64
64
|
}, { "./support": 30, "./utils": 32 }], 2: [function(_, N, w) {
|
|
65
|
-
var
|
|
65
|
+
var l = _("./external"), u = _("./stream/DataWorker"), n = _("./stream/Crc32Probe"), h = _("./stream/DataLengthProbe");
|
|
66
66
|
function g(y, p, b, i, d) {
|
|
67
67
|
this.compressedSize = y, this.uncompressedSize = p, this.crc32 = b, this.compression = i, this.compressedContent = d;
|
|
68
68
|
}
|
|
69
69
|
g.prototype = { getContentWorker: function() {
|
|
70
|
-
var y = new
|
|
70
|
+
var y = new u(l.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new h("data_length")), p = this;
|
|
71
71
|
return y.on("end", function() {
|
|
72
72
|
if (this.streamInfo.data_length !== p.uncompressedSize) throw new Error("Bug : uncompressed data size mismatch");
|
|
73
73
|
}), y;
|
|
74
74
|
}, getCompressedWorker: function() {
|
|
75
|
-
return new
|
|
75
|
+
return new u(l.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression);
|
|
76
76
|
} }, g.createWorkerFrom = function(y, p, b) {
|
|
77
77
|
return y.pipe(new n()).pipe(new h("uncompressedSize")).pipe(p.compressWorker(b)).pipe(new h("compressedSize")).withStreamInfo("compression", p);
|
|
78
78
|
}, N.exports = g;
|
|
79
79
|
}, { "./external": 6, "./stream/Crc32Probe": 25, "./stream/DataLengthProbe": 26, "./stream/DataWorker": 27 }], 3: [function(_, N, w) {
|
|
80
|
-
var
|
|
80
|
+
var l = _("./stream/GenericWorker");
|
|
81
81
|
w.STORE = { magic: "\0\0", compressWorker: function() {
|
|
82
|
-
return new
|
|
82
|
+
return new l("STORE compression");
|
|
83
83
|
}, uncompressWorker: function() {
|
|
84
|
-
return new
|
|
84
|
+
return new l("STORE decompression");
|
|
85
85
|
} }, w.DEFLATE = _("./flate");
|
|
86
86
|
}, { "./flate": 7, "./stream/GenericWorker": 28 }], 4: [function(_, N, w) {
|
|
87
|
-
var
|
|
87
|
+
var l = _("./utils"), u = (function() {
|
|
88
88
|
for (var n, h = [], g = 0; g < 256; g++) {
|
|
89
89
|
n = g;
|
|
90
90
|
for (var y = 0; y < 8; y++) n = 1 & n ? 3988292384 ^ n >>> 1 : n >>> 1;
|
|
@@ -93,13 +93,13 @@ function Tt() {
|
|
|
93
93
|
return h;
|
|
94
94
|
})();
|
|
95
95
|
N.exports = function(n, h) {
|
|
96
|
-
return n !== void 0 && n.length ?
|
|
97
|
-
var i =
|
|
96
|
+
return n !== void 0 && n.length ? l.getTypeOf(n) !== "string" ? (function(g, y, p, b) {
|
|
97
|
+
var i = u, d = b + p;
|
|
98
98
|
g ^= -1;
|
|
99
99
|
for (var r = b; r < d; r++) g = g >>> 8 ^ i[255 & (g ^ y[r])];
|
|
100
100
|
return -1 ^ g;
|
|
101
101
|
})(0 | h, n, n.length, 0) : (function(g, y, p, b) {
|
|
102
|
-
var i =
|
|
102
|
+
var i = u, d = b + p;
|
|
103
103
|
g ^= -1;
|
|
104
104
|
for (var r = b; r < d; r++) g = g >>> 8 ^ i[255 & (g ^ y.charCodeAt(r))];
|
|
105
105
|
return -1 ^ g;
|
|
@@ -108,10 +108,10 @@ function Tt() {
|
|
|
108
108
|
}, { "./utils": 32 }], 5: [function(_, N, w) {
|
|
109
109
|
w.base64 = !1, w.binary = !1, w.dir = !1, w.createFolders = !0, w.date = null, w.compression = null, w.compressionOptions = null, w.comment = null, w.unixPermissions = null, w.dosPermissions = null;
|
|
110
110
|
}, {}], 6: [function(_, N, w) {
|
|
111
|
-
var
|
|
112
|
-
|
|
111
|
+
var l = null;
|
|
112
|
+
l = typeof Promise < "u" ? Promise : _("lie"), N.exports = { Promise: l };
|
|
113
113
|
}, { lie: 37 }], 7: [function(_, N, w) {
|
|
114
|
-
var
|
|
114
|
+
var l = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Uint32Array < "u", u = _("pako"), n = _("./utils"), h = _("./stream/GenericWorker"), g = l ? "uint8array" : "array";
|
|
115
115
|
function y(p, b) {
|
|
116
116
|
h.call(this, "FlateWorker/" + p), this._pako = null, this._pakoAction = p, this._pakoOptions = b, this.meta = {};
|
|
117
117
|
}
|
|
@@ -122,7 +122,7 @@ function Tt() {
|
|
|
122
122
|
}, y.prototype.cleanUp = function() {
|
|
123
123
|
h.prototype.cleanUp.call(this), this._pako = null;
|
|
124
124
|
}, y.prototype._createPako = function() {
|
|
125
|
-
this._pako = new
|
|
125
|
+
this._pako = new u[this._pakoAction]({ raw: !0, level: this._pakoOptions.level || -1 });
|
|
126
126
|
var p = this;
|
|
127
127
|
this._pako.onData = function(b) {
|
|
128
128
|
p.push({ data: b, meta: p.meta });
|
|
@@ -133,12 +133,12 @@ function Tt() {
|
|
|
133
133
|
return new y("Inflate", {});
|
|
134
134
|
};
|
|
135
135
|
}, { "./stream/GenericWorker": 28, "./utils": 32, pako: 38 }], 8: [function(_, N, w) {
|
|
136
|
-
function
|
|
137
|
-
var r,
|
|
138
|
-
for (r = 0; r < d; r++)
|
|
139
|
-
return
|
|
136
|
+
function l(i, d) {
|
|
137
|
+
var r, o = "";
|
|
138
|
+
for (r = 0; r < d; r++) o += String.fromCharCode(255 & i), i >>>= 8;
|
|
139
|
+
return o;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function u(i, d, r, o, a, c) {
|
|
142
142
|
var v, S, x = i.file, D = i.compression, O = c !== g.utf8encode, j = n.transformTo("string", c(x.name)), I = n.transformTo("string", g.utf8encode(x.name)), W = x.comment, q = n.transformTo("string", c(W)), m = n.transformTo("string", g.utf8encode(W)), B = I.length !== x.name.length, e = m.length !== W.length, T = "", J = "", U = "", $ = x.dir, L = x.date, V = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
143
143
|
d && !r || (V.crc32 = i.crc32, V.compressedSize = i.compressedSize, V.uncompressedSize = i.uncompressedSize);
|
|
144
144
|
var E = 0;
|
|
@@ -149,40 +149,40 @@ function Tt() {
|
|
|
149
149
|
return H || (ot = nt ? 16893 : 33204), (65535 & ot) << 16;
|
|
150
150
|
})(x.unixPermissions, $)) : (X = 20, C |= (function(H) {
|
|
151
151
|
return 63 & (H || 0);
|
|
152
|
-
})(x.dosPermissions)), v = L.getUTCHours(), v <<= 6, v |= L.getUTCMinutes(), v <<= 5, v |= L.getUTCSeconds() / 2, S = L.getUTCFullYear() - 1980, S <<= 4, S |= L.getUTCMonth() + 1, S <<= 5, S |= L.getUTCDate(), B && (J =
|
|
152
|
+
})(x.dosPermissions)), v = L.getUTCHours(), v <<= 6, v |= L.getUTCMinutes(), v <<= 5, v |= L.getUTCSeconds() / 2, S = L.getUTCFullYear() - 1980, S <<= 4, S |= L.getUTCMonth() + 1, S <<= 5, S |= L.getUTCDate(), B && (J = l(1, 1) + l(y(j), 4) + I, T += "up" + l(J.length, 2) + J), e && (U = l(1, 1) + l(y(q), 4) + m, T += "uc" + l(U.length, 2) + U);
|
|
153
153
|
var G = "";
|
|
154
154
|
return G += `
|
|
155
|
-
\0`, G +=
|
|
155
|
+
\0`, G += l(E, 2), G += D.magic, G += l(v, 2), G += l(S, 2), G += l(V.crc32, 4), G += l(V.compressedSize, 4), G += l(V.uncompressedSize, 4), G += l(j.length, 2), G += l(T.length, 2), { fileRecord: p.LOCAL_FILE_HEADER + G + j + T, dirRecord: p.CENTRAL_FILE_HEADER + l(X, 2) + G + l(q.length, 2) + "\0\0\0\0" + l(C, 4) + l(o, 4) + j + T + q };
|
|
156
156
|
}
|
|
157
157
|
var n = _("../utils"), h = _("../stream/GenericWorker"), g = _("../utf8"), y = _("../crc32"), p = _("../signature");
|
|
158
|
-
function b(i, d, r,
|
|
159
|
-
h.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = d, this.zipPlatform = r, this.encodeFileName =
|
|
158
|
+
function b(i, d, r, o) {
|
|
159
|
+
h.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = d, this.zipPlatform = r, this.encodeFileName = o, this.streamFiles = i, this.accumulate = !1, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
|
|
160
160
|
}
|
|
161
161
|
n.inherits(b, h), b.prototype.push = function(i) {
|
|
162
|
-
var d = i.meta.percent || 0, r = this.entriesCount,
|
|
163
|
-
this.accumulate ? this.contentBuffer.push(i) : (this.bytesWritten += i.data.length, h.prototype.push.call(this, { data: i.data, meta: { currentFile: this.currentFile, percent: r ? (d + 100 * (r -
|
|
162
|
+
var d = i.meta.percent || 0, r = this.entriesCount, o = this._sources.length;
|
|
163
|
+
this.accumulate ? this.contentBuffer.push(i) : (this.bytesWritten += i.data.length, h.prototype.push.call(this, { data: i.data, meta: { currentFile: this.currentFile, percent: r ? (d + 100 * (r - o - 1)) / r : 100 } }));
|
|
164
164
|
}, b.prototype.openedSource = function(i) {
|
|
165
165
|
this.currentSourceOffset = this.bytesWritten, this.currentFile = i.file.name;
|
|
166
166
|
var d = this.streamFiles && !i.file.dir;
|
|
167
167
|
if (d) {
|
|
168
|
-
var r =
|
|
168
|
+
var r = u(i, d, !1, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
169
169
|
this.push({ data: r.fileRecord, meta: { percent: 0 } });
|
|
170
170
|
} else this.accumulate = !0;
|
|
171
171
|
}, b.prototype.closedSource = function(i) {
|
|
172
172
|
this.accumulate = !1;
|
|
173
|
-
var d = this.streamFiles && !i.file.dir, r =
|
|
174
|
-
if (this.dirRecords.push(r.dirRecord), d) this.push({ data: (function(
|
|
175
|
-
return p.DATA_DESCRIPTOR +
|
|
173
|
+
var d = this.streamFiles && !i.file.dir, r = u(i, d, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
174
|
+
if (this.dirRecords.push(r.dirRecord), d) this.push({ data: (function(o) {
|
|
175
|
+
return p.DATA_DESCRIPTOR + l(o.crc32, 4) + l(o.compressedSize, 4) + l(o.uncompressedSize, 4);
|
|
176
176
|
})(i), meta: { percent: 100 } });
|
|
177
177
|
else for (this.push({ data: r.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
|
|
178
178
|
this.currentFile = null;
|
|
179
179
|
}, b.prototype.flush = function() {
|
|
180
180
|
for (var i = this.bytesWritten, d = 0; d < this.dirRecords.length; d++) this.push({ data: this.dirRecords[d], meta: { percent: 100 } });
|
|
181
|
-
var r = this.bytesWritten - i,
|
|
181
|
+
var r = this.bytesWritten - i, o = (function(a, c, v, S, x) {
|
|
182
182
|
var D = n.transformTo("string", x(S));
|
|
183
|
-
return p.CENTRAL_DIRECTORY_END + "\0\0\0\0" +
|
|
183
|
+
return p.CENTRAL_DIRECTORY_END + "\0\0\0\0" + l(a, 2) + l(a, 2) + l(c, 4) + l(v, 4) + l(D.length, 2) + D;
|
|
184
184
|
})(this.dirRecords.length, r, i, this.zipComment, this.encodeFileName);
|
|
185
|
-
this.push({ data:
|
|
185
|
+
this.push({ data: o, meta: { percent: 100 } });
|
|
186
186
|
}, b.prototype.prepareNextSource = function() {
|
|
187
187
|
this.previous = this._sources.shift(), this.openedSource(this.previous.streamInfo), this.isPaused ? this.previous.pause() : this.previous.resume();
|
|
188
188
|
}, b.prototype.registerPrevious = function(i) {
|
|
@@ -210,18 +210,18 @@ function Tt() {
|
|
|
210
210
|
for (var i = this._sources, d = 0; d < i.length; d++) i[d].lock();
|
|
211
211
|
}, N.exports = b;
|
|
212
212
|
}, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(_, N, w) {
|
|
213
|
-
var
|
|
213
|
+
var l = _("../compressions"), u = _("./ZipFileWorker");
|
|
214
214
|
w.generateWorker = function(n, h, g) {
|
|
215
|
-
var y = new
|
|
215
|
+
var y = new u(h.streamFiles, g, h.platform, h.encodeFileName), p = 0;
|
|
216
216
|
try {
|
|
217
217
|
n.forEach(function(b, i) {
|
|
218
218
|
p++;
|
|
219
219
|
var d = (function(c, v) {
|
|
220
|
-
var S = c || v, x =
|
|
220
|
+
var S = c || v, x = l[S];
|
|
221
221
|
if (!x) throw new Error(S + " is not a valid compression method !");
|
|
222
222
|
return x;
|
|
223
|
-
})(i.options.compression, h.compression), r = i.options.compressionOptions || h.compressionOptions || {},
|
|
224
|
-
i._compressWorker(d, r).withStreamInfo("file", { name: b, dir:
|
|
223
|
+
})(i.options.compression, h.compression), r = i.options.compressionOptions || h.compressionOptions || {}, o = i.dir, a = i.date;
|
|
224
|
+
i._compressWorker(d, r).withStreamInfo("file", { name: b, dir: o, date: a, comment: i.comment || "", unixPermissions: i.unixPermissions, dosPermissions: i.dosPermissions }).pipe(y);
|
|
225
225
|
}), y.entriesCount = p;
|
|
226
226
|
} catch (b) {
|
|
227
227
|
y.error(b);
|
|
@@ -229,25 +229,25 @@ function Tt() {
|
|
|
229
229
|
return y;
|
|
230
230
|
};
|
|
231
231
|
}, { "../compressions": 3, "./ZipFileWorker": 8 }], 10: [function(_, N, w) {
|
|
232
|
-
function
|
|
233
|
-
if (!(this instanceof
|
|
232
|
+
function l() {
|
|
233
|
+
if (!(this instanceof l)) return new l();
|
|
234
234
|
if (arguments.length) throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
235
235
|
this.files = /* @__PURE__ */ Object.create(null), this.comment = null, this.root = "", this.clone = function() {
|
|
236
|
-
var
|
|
237
|
-
for (var n in this) typeof this[n] != "function" && (
|
|
238
|
-
return
|
|
236
|
+
var u = new l();
|
|
237
|
+
for (var n in this) typeof this[n] != "function" && (u[n] = this[n]);
|
|
238
|
+
return u;
|
|
239
239
|
};
|
|
240
240
|
}
|
|
241
|
-
(
|
|
242
|
-
return new
|
|
243
|
-
},
|
|
241
|
+
(l.prototype = _("./object")).loadAsync = _("./load"), l.support = _("./support"), l.defaults = _("./defaults"), l.version = "3.10.2", l.loadAsync = function(u, n) {
|
|
242
|
+
return new l().loadAsync(u, n);
|
|
243
|
+
}, l.external = _("./external"), N.exports = l;
|
|
244
244
|
}, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(_, N, w) {
|
|
245
|
-
var
|
|
245
|
+
var l = _("./utils"), u = _("./external"), n = _("./utf8"), h = _("./zipEntries"), g = _("./stream/Crc32Probe"), y = _("./nodejsUtils");
|
|
246
246
|
function p(b) {
|
|
247
|
-
return new
|
|
247
|
+
return new u.Promise(function(i, d) {
|
|
248
248
|
var r = b.decompressed.getContentWorker().pipe(new g());
|
|
249
|
-
r.on("error", function(
|
|
250
|
-
d(
|
|
249
|
+
r.on("error", function(o) {
|
|
250
|
+
d(o);
|
|
251
251
|
}).on("end", function() {
|
|
252
252
|
r.streamInfo.crc32 !== b.decompressed.crc32 ? d(new Error("Corrupted zip : CRC32 mismatch")) : i();
|
|
253
253
|
}).resume();
|
|
@@ -255,27 +255,27 @@ function Tt() {
|
|
|
255
255
|
}
|
|
256
256
|
N.exports = function(b, i) {
|
|
257
257
|
var d = this;
|
|
258
|
-
return i =
|
|
259
|
-
var
|
|
260
|
-
return
|
|
258
|
+
return i = l.extend(i || {}, { base64: !1, checkCRC32: !1, optimizedBinaryString: !1, createFolders: !1, decodeFileName: n.utf8decode }), y.isNode && y.isStream(b) ? u.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : l.prepareContent("the loaded zip file", b, !0, i.optimizedBinaryString, i.base64).then(function(r) {
|
|
259
|
+
var o = new h(i);
|
|
260
|
+
return o.load(r), o;
|
|
261
261
|
}).then(function(r) {
|
|
262
|
-
var
|
|
263
|
-
if (i.checkCRC32) for (var c = 0; c < a.length; c++)
|
|
264
|
-
return
|
|
262
|
+
var o = [u.Promise.resolve(r)], a = r.files;
|
|
263
|
+
if (i.checkCRC32) for (var c = 0; c < a.length; c++) o.push(p(a[c]));
|
|
264
|
+
return u.Promise.all(o);
|
|
265
265
|
}).then(function(r) {
|
|
266
|
-
for (var
|
|
267
|
-
var v = a[c], S = v.fileNameStr, x =
|
|
266
|
+
for (var o = r.shift(), a = o.files, c = 0; c < a.length; c++) {
|
|
267
|
+
var v = a[c], S = v.fileNameStr, x = l.resolve(v.fileNameStr);
|
|
268
268
|
d.file(x, v.decompressed, { binary: !0, optimizedBinaryString: !0, date: v.date, dir: v.dir, comment: v.fileCommentStr.length ? v.fileCommentStr : null, unixPermissions: v.unixPermissions, dosPermissions: v.dosPermissions, createFolders: i.createFolders }), v.dir || (d.file(x).unsafeOriginalName = S);
|
|
269
269
|
}
|
|
270
|
-
return
|
|
270
|
+
return o.zipComment.length && (d.comment = o.zipComment), d;
|
|
271
271
|
});
|
|
272
272
|
};
|
|
273
273
|
}, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(_, N, w) {
|
|
274
|
-
var
|
|
274
|
+
var l = _("../utils"), u = _("../stream/GenericWorker");
|
|
275
275
|
function n(h, g) {
|
|
276
|
-
|
|
276
|
+
u.call(this, "Nodejs stream input adapter for " + h), this._upstreamEnded = !1, this._bindStream(g);
|
|
277
277
|
}
|
|
278
|
-
|
|
278
|
+
l.inherits(n, u), n.prototype._bindStream = function(h) {
|
|
279
279
|
var g = this;
|
|
280
280
|
(this._stream = h).pause(), h.on("data", function(y) {
|
|
281
281
|
g.push({ data: y, meta: { percent: 0 } });
|
|
@@ -285,14 +285,14 @@ function Tt() {
|
|
|
285
285
|
g.isPaused ? g._upstreamEnded = !0 : g.end();
|
|
286
286
|
});
|
|
287
287
|
}, n.prototype.pause = function() {
|
|
288
|
-
return !!
|
|
288
|
+
return !!u.prototype.pause.call(this) && (this._stream.pause(), !0);
|
|
289
289
|
}, n.prototype.resume = function() {
|
|
290
|
-
return !!
|
|
290
|
+
return !!u.prototype.resume.call(this) && (this._upstreamEnded ? this.end() : this._stream.resume(), !0);
|
|
291
291
|
}, N.exports = n;
|
|
292
292
|
}, { "../stream/GenericWorker": 28, "../utils": 32 }], 13: [function(_, N, w) {
|
|
293
|
-
var
|
|
294
|
-
function
|
|
295
|
-
|
|
293
|
+
var l = _("readable-stream").Readable;
|
|
294
|
+
function u(n, h, g) {
|
|
295
|
+
l.call(this, h), this._helper = n;
|
|
296
296
|
var y = this;
|
|
297
297
|
n.on("data", function(p, b) {
|
|
298
298
|
y.push(p) || y._helper.pause(), g && g(b);
|
|
@@ -302,27 +302,27 @@ function Tt() {
|
|
|
302
302
|
y.push(null);
|
|
303
303
|
});
|
|
304
304
|
}
|
|
305
|
-
_("../utils").inherits(
|
|
305
|
+
_("../utils").inherits(u, l), u.prototype._read = function() {
|
|
306
306
|
this._helper.resume();
|
|
307
|
-
}, N.exports =
|
|
307
|
+
}, N.exports = u;
|
|
308
308
|
}, { "../utils": 32, "readable-stream": 16 }], 14: [function(_, N, w) {
|
|
309
|
-
N.exports = { isNode: typeof Buffer < "u", newBufferFrom: function(
|
|
310
|
-
if (Buffer.from && Buffer.from !== Uint8Array.from) return Buffer.from(
|
|
311
|
-
if (typeof
|
|
312
|
-
return new Buffer(
|
|
313
|
-
}, allocBuffer: function(
|
|
314
|
-
if (Buffer.alloc) return Buffer.alloc(
|
|
315
|
-
var
|
|
316
|
-
return
|
|
317
|
-
}, isBuffer: function(
|
|
318
|
-
return Buffer.isBuffer(
|
|
319
|
-
}, isStream: function(
|
|
320
|
-
return
|
|
309
|
+
N.exports = { isNode: typeof Buffer < "u", newBufferFrom: function(l, u) {
|
|
310
|
+
if (Buffer.from && Buffer.from !== Uint8Array.from) return Buffer.from(l, u);
|
|
311
|
+
if (typeof l == "number") throw new Error('The "data" argument must not be a number');
|
|
312
|
+
return new Buffer(l, u);
|
|
313
|
+
}, allocBuffer: function(l) {
|
|
314
|
+
if (Buffer.alloc) return Buffer.alloc(l);
|
|
315
|
+
var u = new Buffer(l);
|
|
316
|
+
return u.fill(0), u;
|
|
317
|
+
}, isBuffer: function(l) {
|
|
318
|
+
return Buffer.isBuffer(l);
|
|
319
|
+
}, isStream: function(l) {
|
|
320
|
+
return l && typeof l.on == "function" && typeof l.pause == "function" && typeof l.resume == "function";
|
|
321
321
|
} };
|
|
322
322
|
}, {}], 15: [function(_, N, w) {
|
|
323
|
-
function
|
|
323
|
+
function l(x, D, O) {
|
|
324
324
|
var j, I = n.getTypeOf(D), W = n.extend(O || {}, y);
|
|
325
|
-
W.date = W.date || /* @__PURE__ */ new Date(), W.compression !== null && (W.compression = W.compression.toUpperCase()), typeof W.unixPermissions == "string" && (W.unixPermissions = parseInt(W.unixPermissions, 8)), W.unixPermissions && 16384 & W.unixPermissions && (W.dir = !0), W.dosPermissions && 16 & W.dosPermissions && (W.dir = !0), W.dir && (x = a(x)), W.createFolders && (j =
|
|
325
|
+
W.date = W.date || /* @__PURE__ */ new Date(), W.compression !== null && (W.compression = W.compression.toUpperCase()), typeof W.unixPermissions == "string" && (W.unixPermissions = parseInt(W.unixPermissions, 8)), W.unixPermissions && 16384 & W.unixPermissions && (W.dir = !0), W.dosPermissions && 16 & W.dosPermissions && (W.dir = !0), W.dir && (x = a(x)), W.createFolders && (j = o(x)) && c.call(this, j, !0);
|
|
326
326
|
var q = I === "string" && W.binary === !1 && W.base64 === !1;
|
|
327
327
|
O && O.binary !== void 0 || (W.binary = !q), (D instanceof p && D.uncompressedSize === 0 || W.dir || !D || D.length === 0) && (W.base64 = !1, W.binary = !0, D = "", W.compression = "STORE", I = "string");
|
|
328
328
|
var m = null;
|
|
@@ -330,14 +330,14 @@ function Tt() {
|
|
|
330
330
|
var B = new b(x, m, W);
|
|
331
331
|
this.files[x] = B;
|
|
332
332
|
}
|
|
333
|
-
var
|
|
333
|
+
var u = _("./utf8"), n = _("./utils"), h = _("./stream/GenericWorker"), g = _("./stream/StreamHelper"), y = _("./defaults"), p = _("./compressedObject"), b = _("./zipObject"), i = _("./generate"), d = _("./nodejsUtils"), r = _("./nodejs/NodejsStreamInputAdapter"), o = function(x) {
|
|
334
334
|
x.slice(-1) === "/" && (x = x.substring(0, x.length - 1));
|
|
335
335
|
var D = x.lastIndexOf("/");
|
|
336
336
|
return 0 < D ? x.substring(0, D) : "";
|
|
337
337
|
}, a = function(x) {
|
|
338
338
|
return x.slice(-1) !== "/" && (x += "/"), x;
|
|
339
339
|
}, c = function(x, D) {
|
|
340
|
-
return D = D !== void 0 ? D : y.createFolders, x = a(x), this.files[x] ||
|
|
340
|
+
return D = D !== void 0 ? D : y.createFolders, x = a(x), this.files[x] || l.call(this, x, null, { dir: !0, createFolders: D }), this.files[x];
|
|
341
341
|
};
|
|
342
342
|
function v(x) {
|
|
343
343
|
return Object.prototype.toString.call(x) === "[object RegExp]";
|
|
@@ -353,7 +353,7 @@ function Tt() {
|
|
|
353
353
|
x(O, j) && D.push(j);
|
|
354
354
|
}), D;
|
|
355
355
|
}, file: function(x, D, O) {
|
|
356
|
-
if (arguments.length !== 1) return x = this.root + x,
|
|
356
|
+
if (arguments.length !== 1) return x = this.root + x, l.call(this, x, D, O), this;
|
|
357
357
|
if (v(x)) {
|
|
358
358
|
var j = x;
|
|
359
359
|
return this.filter(function(W, q) {
|
|
@@ -382,7 +382,7 @@ function Tt() {
|
|
|
382
382
|
}, generateInternalStream: function(x) {
|
|
383
383
|
var D, O = {};
|
|
384
384
|
try {
|
|
385
|
-
if ((O = n.extend(x || {}, { streamFiles: !1, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName:
|
|
385
|
+
if ((O = n.extend(x || {}, { streamFiles: !1, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName: u.utf8encode })).type = O.type.toLowerCase(), O.compression = O.compression.toUpperCase(), O.type === "binarystring" && (O.type = "string"), !O.type) throw new Error("No output type specified.");
|
|
386
386
|
n.checkSupport(O.type), O.platform !== "darwin" && O.platform !== "freebsd" && O.platform !== "linux" && O.platform !== "sunos" || (O.platform = "UNIX"), O.platform === "win32" && (O.platform = "DOS");
|
|
387
387
|
var j = O.comment || this.comment || "";
|
|
388
388
|
D = i.generateWorker(this, O, j);
|
|
@@ -399,30 +399,30 @@ function Tt() {
|
|
|
399
399
|
}, { "./compressedObject": 2, "./defaults": 5, "./generate": 9, "./nodejs/NodejsStreamInputAdapter": 12, "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31, "./utils": 32, "./zipObject": 35 }], 16: [function(_, N, w) {
|
|
400
400
|
N.exports = _("stream");
|
|
401
401
|
}, { stream: void 0 }], 17: [function(_, N, w) {
|
|
402
|
-
var
|
|
403
|
-
function
|
|
404
|
-
|
|
402
|
+
var l = _("./DataReader");
|
|
403
|
+
function u(n) {
|
|
404
|
+
l.call(this, n);
|
|
405
405
|
for (var h = 0; h < this.data.length; h++) n[h] = 255 & n[h];
|
|
406
406
|
}
|
|
407
|
-
_("../utils").inherits(
|
|
407
|
+
_("../utils").inherits(u, l), u.prototype.byteAt = function(n) {
|
|
408
408
|
return this.data[this.zero + n];
|
|
409
|
-
},
|
|
409
|
+
}, u.prototype.lastIndexOfSignature = function(n) {
|
|
410
410
|
for (var h = n.charCodeAt(0), g = n.charCodeAt(1), y = n.charCodeAt(2), p = n.charCodeAt(3), b = this.length - 4; 0 <= b; --b) if (this.data[b] === h && this.data[b + 1] === g && this.data[b + 2] === y && this.data[b + 3] === p) return b - this.zero;
|
|
411
411
|
return -1;
|
|
412
|
-
},
|
|
412
|
+
}, u.prototype.readAndCheckSignature = function(n) {
|
|
413
413
|
var h = n.charCodeAt(0), g = n.charCodeAt(1), y = n.charCodeAt(2), p = n.charCodeAt(3), b = this.readData(4);
|
|
414
414
|
return h === b[0] && g === b[1] && y === b[2] && p === b[3];
|
|
415
|
-
},
|
|
415
|
+
}, u.prototype.readData = function(n) {
|
|
416
416
|
if (this.checkOffset(n), n === 0) return [];
|
|
417
417
|
var h = this.data.slice(this.zero + this.index, this.zero + this.index + n);
|
|
418
418
|
return this.index += n, h;
|
|
419
|
-
}, N.exports =
|
|
419
|
+
}, N.exports = u;
|
|
420
420
|
}, { "../utils": 32, "./DataReader": 18 }], 18: [function(_, N, w) {
|
|
421
|
-
var
|
|
422
|
-
function
|
|
421
|
+
var l = _("../utils");
|
|
422
|
+
function u(n) {
|
|
423
423
|
this.data = n, this.length = n.length, this.index = 0, this.zero = 0;
|
|
424
424
|
}
|
|
425
|
-
|
|
425
|
+
u.prototype = { checkOffset: function(n) {
|
|
426
426
|
this.checkIndex(this.index + n);
|
|
427
427
|
}, checkIndex: function(n) {
|
|
428
428
|
if (this.length < this.zero + n || n < 0) throw new Error("End of data reached (data length = " + this.length + ", asked index = " + n + "). Corrupted zip ?");
|
|
@@ -436,103 +436,103 @@ function Tt() {
|
|
|
436
436
|
for (this.checkOffset(n), h = this.index + n - 1; h >= this.index; h--) g = (g << 8) + this.byteAt(h);
|
|
437
437
|
return this.index += n, g;
|
|
438
438
|
}, readString: function(n) {
|
|
439
|
-
return
|
|
439
|
+
return l.transformTo("string", this.readData(n));
|
|
440
440
|
}, readData: function() {
|
|
441
441
|
}, lastIndexOfSignature: function() {
|
|
442
442
|
}, readAndCheckSignature: function() {
|
|
443
443
|
}, readDate: function() {
|
|
444
444
|
var n = this.readInt(4);
|
|
445
445
|
return new Date(Date.UTC(1980 + (n >> 25 & 127), (n >> 21 & 15) - 1, n >> 16 & 31, n >> 11 & 31, n >> 5 & 63, (31 & n) << 1));
|
|
446
|
-
} }, N.exports =
|
|
446
|
+
} }, N.exports = u;
|
|
447
447
|
}, { "../utils": 32 }], 19: [function(_, N, w) {
|
|
448
|
-
var
|
|
449
|
-
function
|
|
450
|
-
|
|
448
|
+
var l = _("./Uint8ArrayReader");
|
|
449
|
+
function u(n) {
|
|
450
|
+
l.call(this, n);
|
|
451
451
|
}
|
|
452
|
-
_("../utils").inherits(
|
|
452
|
+
_("../utils").inherits(u, l), u.prototype.readData = function(n) {
|
|
453
453
|
this.checkOffset(n);
|
|
454
454
|
var h = this.data.slice(this.zero + this.index, this.zero + this.index + n);
|
|
455
455
|
return this.index += n, h;
|
|
456
|
-
}, N.exports =
|
|
456
|
+
}, N.exports = u;
|
|
457
457
|
}, { "../utils": 32, "./Uint8ArrayReader": 21 }], 20: [function(_, N, w) {
|
|
458
|
-
var
|
|
459
|
-
function
|
|
460
|
-
|
|
458
|
+
var l = _("./DataReader");
|
|
459
|
+
function u(n) {
|
|
460
|
+
l.call(this, n);
|
|
461
461
|
}
|
|
462
|
-
_("../utils").inherits(
|
|
462
|
+
_("../utils").inherits(u, l), u.prototype.byteAt = function(n) {
|
|
463
463
|
return this.data.charCodeAt(this.zero + n);
|
|
464
|
-
},
|
|
464
|
+
}, u.prototype.lastIndexOfSignature = function(n) {
|
|
465
465
|
return this.data.lastIndexOf(n) - this.zero;
|
|
466
|
-
},
|
|
466
|
+
}, u.prototype.readAndCheckSignature = function(n) {
|
|
467
467
|
return n === this.readData(4);
|
|
468
|
-
},
|
|
468
|
+
}, u.prototype.readData = function(n) {
|
|
469
469
|
this.checkOffset(n);
|
|
470
470
|
var h = this.data.slice(this.zero + this.index, this.zero + this.index + n);
|
|
471
471
|
return this.index += n, h;
|
|
472
|
-
}, N.exports =
|
|
472
|
+
}, N.exports = u;
|
|
473
473
|
}, { "../utils": 32, "./DataReader": 18 }], 21: [function(_, N, w) {
|
|
474
|
-
var
|
|
475
|
-
function
|
|
476
|
-
|
|
474
|
+
var l = _("./ArrayReader");
|
|
475
|
+
function u(n) {
|
|
476
|
+
l.call(this, n);
|
|
477
477
|
}
|
|
478
|
-
_("../utils").inherits(
|
|
478
|
+
_("../utils").inherits(u, l), u.prototype.readData = function(n) {
|
|
479
479
|
if (this.checkOffset(n), n === 0) return new Uint8Array(0);
|
|
480
480
|
var h = this.data.subarray(this.zero + this.index, this.zero + this.index + n);
|
|
481
481
|
return this.index += n, h;
|
|
482
|
-
}, N.exports =
|
|
482
|
+
}, N.exports = u;
|
|
483
483
|
}, { "../utils": 32, "./ArrayReader": 17 }], 22: [function(_, N, w) {
|
|
484
|
-
var
|
|
484
|
+
var l = _("../utils"), u = _("../support"), n = _("./ArrayReader"), h = _("./StringReader"), g = _("./NodeBufferReader"), y = _("./Uint8ArrayReader");
|
|
485
485
|
N.exports = function(p) {
|
|
486
|
-
var b =
|
|
487
|
-
return
|
|
486
|
+
var b = l.getTypeOf(p);
|
|
487
|
+
return l.checkSupport(b), b !== "string" || u.uint8array ? b === "nodebuffer" ? new g(p) : u.uint8array ? new y(l.transformTo("uint8array", p)) : new n(l.transformTo("array", p)) : new h(p);
|
|
488
488
|
};
|
|
489
489
|
}, { "../support": 30, "../utils": 32, "./ArrayReader": 17, "./NodeBufferReader": 19, "./StringReader": 20, "./Uint8ArrayReader": 21 }], 23: [function(_, N, w) {
|
|
490
490
|
w.LOCAL_FILE_HEADER = "PK", w.CENTRAL_FILE_HEADER = "PK", w.CENTRAL_DIRECTORY_END = "PK", w.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x07", w.ZIP64_CENTRAL_DIRECTORY_END = "PK", w.DATA_DESCRIPTOR = "PK\x07\b";
|
|
491
491
|
}, {}], 24: [function(_, N, w) {
|
|
492
|
-
var
|
|
492
|
+
var l = _("./GenericWorker"), u = _("../utils");
|
|
493
493
|
function n(h) {
|
|
494
|
-
|
|
494
|
+
l.call(this, "ConvertWorker to " + h), this.destType = h;
|
|
495
495
|
}
|
|
496
|
-
|
|
497
|
-
this.push({ data:
|
|
496
|
+
u.inherits(n, l), n.prototype.processChunk = function(h) {
|
|
497
|
+
this.push({ data: u.transformTo(this.destType, h.data), meta: h.meta });
|
|
498
498
|
}, N.exports = n;
|
|
499
499
|
}, { "../utils": 32, "./GenericWorker": 28 }], 25: [function(_, N, w) {
|
|
500
|
-
var
|
|
500
|
+
var l = _("./GenericWorker"), u = _("../crc32");
|
|
501
501
|
function n() {
|
|
502
|
-
|
|
502
|
+
l.call(this, "Crc32Probe"), this.withStreamInfo("crc32", 0);
|
|
503
503
|
}
|
|
504
|
-
_("../utils").inherits(n,
|
|
505
|
-
this.streamInfo.crc32 =
|
|
504
|
+
_("../utils").inherits(n, l), n.prototype.processChunk = function(h) {
|
|
505
|
+
this.streamInfo.crc32 = u(h.data, this.streamInfo.crc32 || 0), this.push(h);
|
|
506
506
|
}, N.exports = n;
|
|
507
507
|
}, { "../crc32": 4, "../utils": 32, "./GenericWorker": 28 }], 26: [function(_, N, w) {
|
|
508
|
-
var
|
|
508
|
+
var l = _("../utils"), u = _("./GenericWorker");
|
|
509
509
|
function n(h) {
|
|
510
|
-
|
|
510
|
+
u.call(this, "DataLengthProbe for " + h), this.propName = h, this.withStreamInfo(h, 0);
|
|
511
511
|
}
|
|
512
|
-
|
|
512
|
+
l.inherits(n, u), n.prototype.processChunk = function(h) {
|
|
513
513
|
if (h) {
|
|
514
514
|
var g = this.streamInfo[this.propName] || 0;
|
|
515
515
|
this.streamInfo[this.propName] = g + h.data.length;
|
|
516
516
|
}
|
|
517
|
-
|
|
517
|
+
u.prototype.processChunk.call(this, h);
|
|
518
518
|
}, N.exports = n;
|
|
519
519
|
}, { "../utils": 32, "./GenericWorker": 28 }], 27: [function(_, N, w) {
|
|
520
|
-
var
|
|
520
|
+
var l = _("../utils"), u = _("./GenericWorker");
|
|
521
521
|
function n(h) {
|
|
522
|
-
|
|
522
|
+
u.call(this, "DataWorker");
|
|
523
523
|
var g = this;
|
|
524
524
|
this.dataIsReady = !1, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = !1, h.then(function(y) {
|
|
525
|
-
g.dataIsReady = !0, g.data = y, g.max = y && y.length || 0, g.type =
|
|
525
|
+
g.dataIsReady = !0, g.data = y, g.max = y && y.length || 0, g.type = l.getTypeOf(y), g.isPaused || g._tickAndRepeat();
|
|
526
526
|
}, function(y) {
|
|
527
527
|
g.error(y);
|
|
528
528
|
});
|
|
529
529
|
}
|
|
530
|
-
|
|
531
|
-
|
|
530
|
+
l.inherits(n, u), n.prototype.cleanUp = function() {
|
|
531
|
+
u.prototype.cleanUp.call(this), this.data = null;
|
|
532
532
|
}, n.prototype.resume = function() {
|
|
533
|
-
return !!
|
|
533
|
+
return !!u.prototype.resume.call(this) && (!this._tickScheduled && this.dataIsReady && (this._tickScheduled = !0, l.delay(this._tickAndRepeat, [], this)), !0);
|
|
534
534
|
}, n.prototype._tickAndRepeat = function() {
|
|
535
|
-
this._tickScheduled = !1, this.isPaused || this.isFinished || (this._tick(), this.isFinished || (
|
|
535
|
+
this._tickScheduled = !1, this.isPaused || this.isFinished || (this._tick(), this.isFinished || (l.delay(this._tickAndRepeat, [], this), this._tickScheduled = !0));
|
|
536
536
|
}, n.prototype._tick = function() {
|
|
537
537
|
if (this.isPaused || this.isFinished) return !1;
|
|
538
538
|
var h = null, g = Math.min(this.max, this.index + 16384);
|
|
@@ -551,69 +551,69 @@ function Tt() {
|
|
|
551
551
|
return this.index = g, this.push({ data: h, meta: { percent: this.max ? this.index / this.max * 100 : 0 } });
|
|
552
552
|
}, N.exports = n;
|
|
553
553
|
}, { "../utils": 32, "./GenericWorker": 28 }], 28: [function(_, N, w) {
|
|
554
|
-
function u
|
|
555
|
-
this.name =
|
|
554
|
+
function l(u) {
|
|
555
|
+
this.name = u || "default", this.streamInfo = {}, this.generatedError = null, this.extraStreamInfo = {}, this.isPaused = !0, this.isFinished = !1, this.isLocked = !1, this._listeners = { data: [], end: [], error: [] }, this.previous = null;
|
|
556
556
|
}
|
|
557
|
-
|
|
558
|
-
this.emit("data",
|
|
557
|
+
l.prototype = { push: function(u) {
|
|
558
|
+
this.emit("data", u);
|
|
559
559
|
}, end: function() {
|
|
560
560
|
if (this.isFinished) return !1;
|
|
561
561
|
this.flush();
|
|
562
562
|
try {
|
|
563
563
|
this.emit("end"), this.cleanUp(), this.isFinished = !0;
|
|
564
|
-
} catch (
|
|
565
|
-
this.emit("error",
|
|
564
|
+
} catch (u) {
|
|
565
|
+
this.emit("error", u);
|
|
566
566
|
}
|
|
567
567
|
return !0;
|
|
568
|
-
}, error: function(
|
|
569
|
-
return !this.isFinished && (this.isPaused ? this.generatedError =
|
|
570
|
-
}, on: function(
|
|
571
|
-
return this._listeners[
|
|
568
|
+
}, error: function(u) {
|
|
569
|
+
return !this.isFinished && (this.isPaused ? this.generatedError = u : (this.isFinished = !0, this.emit("error", u), this.previous && this.previous.error(u), this.cleanUp()), !0);
|
|
570
|
+
}, on: function(u, n) {
|
|
571
|
+
return this._listeners[u].push(n), this;
|
|
572
572
|
}, cleanUp: function() {
|
|
573
573
|
this.streamInfo = this.generatedError = this.extraStreamInfo = null, this._listeners = [];
|
|
574
|
-
}, emit: function(
|
|
575
|
-
if (this._listeners[
|
|
576
|
-
}, pipe: function(
|
|
577
|
-
return
|
|
578
|
-
}, registerPrevious: function(
|
|
574
|
+
}, emit: function(u, n) {
|
|
575
|
+
if (this._listeners[u]) for (var h = 0; h < this._listeners[u].length; h++) this._listeners[u][h].call(this, n);
|
|
576
|
+
}, pipe: function(u) {
|
|
577
|
+
return u.registerPrevious(this);
|
|
578
|
+
}, registerPrevious: function(u) {
|
|
579
579
|
if (this.isLocked) throw new Error("The stream '" + this + "' has already been used.");
|
|
580
|
-
this.streamInfo =
|
|
580
|
+
this.streamInfo = u.streamInfo, this.mergeStreamInfo(), this.previous = u;
|
|
581
581
|
var n = this;
|
|
582
|
-
return
|
|
582
|
+
return u.on("data", function(h) {
|
|
583
583
|
n.processChunk(h);
|
|
584
|
-
}),
|
|
584
|
+
}), u.on("end", function() {
|
|
585
585
|
n.end();
|
|
586
|
-
}),
|
|
586
|
+
}), u.on("error", function(h) {
|
|
587
587
|
n.error(h);
|
|
588
588
|
}), this;
|
|
589
589
|
}, pause: function() {
|
|
590
590
|
return !this.isPaused && !this.isFinished && (this.isPaused = !0, this.previous && this.previous.pause(), !0);
|
|
591
591
|
}, resume: function() {
|
|
592
592
|
if (!this.isPaused || this.isFinished) return !1;
|
|
593
|
-
var
|
|
594
|
-
return this.generatedError && (this.error(this.generatedError),
|
|
593
|
+
var u = this.isPaused = !1;
|
|
594
|
+
return this.generatedError && (this.error(this.generatedError), u = !0), this.previous && this.previous.resume(), !u;
|
|
595
595
|
}, flush: function() {
|
|
596
|
-
}, processChunk: function(
|
|
597
|
-
this.push(
|
|
598
|
-
}, withStreamInfo: function(
|
|
599
|
-
return this.extraStreamInfo[
|
|
596
|
+
}, processChunk: function(u) {
|
|
597
|
+
this.push(u);
|
|
598
|
+
}, withStreamInfo: function(u, n) {
|
|
599
|
+
return this.extraStreamInfo[u] = n, this.mergeStreamInfo(), this;
|
|
600
600
|
}, mergeStreamInfo: function() {
|
|
601
|
-
for (var
|
|
601
|
+
for (var u in this.extraStreamInfo) Object.prototype.hasOwnProperty.call(this.extraStreamInfo, u) && (this.streamInfo[u] = this.extraStreamInfo[u]);
|
|
602
602
|
}, lock: function() {
|
|
603
603
|
if (this.isLocked) throw new Error("The stream '" + this + "' has already been used.");
|
|
604
604
|
this.isLocked = !0, this.previous && this.previous.lock();
|
|
605
605
|
}, toString: function() {
|
|
606
|
-
var
|
|
607
|
-
return this.previous ? this.previous + " -> " +
|
|
608
|
-
} }, N.exports =
|
|
606
|
+
var u = "Worker " + this.name;
|
|
607
|
+
return this.previous ? this.previous + " -> " + u : u;
|
|
608
|
+
} }, N.exports = l;
|
|
609
609
|
}, {}], 29: [function(_, N, w) {
|
|
610
|
-
var
|
|
610
|
+
var l = _("../utils"), u = _("./ConvertWorker"), n = _("./GenericWorker"), h = _("../base64"), g = _("../support"), y = _("../external"), p = null;
|
|
611
611
|
if (g.nodestream) try {
|
|
612
612
|
p = _("../nodejs/NodejsStreamOutputAdapter");
|
|
613
613
|
} catch {
|
|
614
614
|
}
|
|
615
615
|
function b(d, r) {
|
|
616
|
-
return new y.Promise(function(
|
|
616
|
+
return new y.Promise(function(o, a) {
|
|
617
617
|
var c = [], v = d._internalType, S = d._outputType, x = d._mimeType;
|
|
618
618
|
d.on("data", function(D, O) {
|
|
619
619
|
c.push(D), r && r(O);
|
|
@@ -624,11 +624,11 @@ function Tt() {
|
|
|
624
624
|
var D = (function(O, j, I) {
|
|
625
625
|
switch (O) {
|
|
626
626
|
case "blob":
|
|
627
|
-
return
|
|
627
|
+
return l.newBlob(l.transformTo("arraybuffer", j), I);
|
|
628
628
|
case "base64":
|
|
629
629
|
return h.encode(j);
|
|
630
630
|
default:
|
|
631
|
-
return
|
|
631
|
+
return l.transformTo(O, j);
|
|
632
632
|
}
|
|
633
633
|
})(S, (function(O, j) {
|
|
634
634
|
var I, W = 0, q = null, m = 0;
|
|
@@ -647,7 +647,7 @@ function Tt() {
|
|
|
647
647
|
throw new Error("concat : unsupported type '" + O + "'");
|
|
648
648
|
}
|
|
649
649
|
})(v, c), x);
|
|
650
|
-
|
|
650
|
+
o(D);
|
|
651
651
|
} catch (O) {
|
|
652
652
|
a(O);
|
|
653
653
|
}
|
|
@@ -655,7 +655,7 @@ function Tt() {
|
|
|
655
655
|
}).resume();
|
|
656
656
|
});
|
|
657
657
|
}
|
|
658
|
-
function i(d, r,
|
|
658
|
+
function i(d, r, o) {
|
|
659
659
|
var a = r;
|
|
660
660
|
switch (r) {
|
|
661
661
|
case "blob":
|
|
@@ -666,7 +666,7 @@ function Tt() {
|
|
|
666
666
|
a = "string";
|
|
667
667
|
}
|
|
668
668
|
try {
|
|
669
|
-
this._internalType = a, this._outputType = r, this._mimeType =
|
|
669
|
+
this._internalType = a, this._outputType = r, this._mimeType = o, l.checkSupport(a), this._worker = d.pipe(new u(a)), d.lock();
|
|
670
670
|
} catch (c) {
|
|
671
671
|
this._worker = new n("error"), this._worker.error(c);
|
|
672
672
|
}
|
|
@@ -674,30 +674,30 @@ function Tt() {
|
|
|
674
674
|
i.prototype = { accumulate: function(d) {
|
|
675
675
|
return b(this, d);
|
|
676
676
|
}, on: function(d, r) {
|
|
677
|
-
var
|
|
677
|
+
var o = this;
|
|
678
678
|
return d === "data" ? this._worker.on(d, function(a) {
|
|
679
|
-
r.call(
|
|
679
|
+
r.call(o, a.data, a.meta);
|
|
680
680
|
}) : this._worker.on(d, function() {
|
|
681
|
-
|
|
681
|
+
l.delay(r, arguments, o);
|
|
682
682
|
}), this;
|
|
683
683
|
}, resume: function() {
|
|
684
|
-
return
|
|
684
|
+
return l.delay(this._worker.resume, [], this._worker), this;
|
|
685
685
|
}, pause: function() {
|
|
686
686
|
return this._worker.pause(), this;
|
|
687
687
|
}, toNodejsStream: function(d) {
|
|
688
|
-
if (
|
|
688
|
+
if (l.checkSupport("nodestream"), this._outputType !== "nodebuffer") throw new Error(this._outputType + " is not supported by this method");
|
|
689
689
|
return new p(this, { objectMode: this._outputType !== "nodebuffer" }, d);
|
|
690
690
|
} }, N.exports = i;
|
|
691
691
|
}, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(_, N, w) {
|
|
692
692
|
if (w.base64 = !0, w.array = !0, w.string = !0, w.arraybuffer = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", w.nodebuffer = typeof Buffer < "u", w.uint8array = typeof Uint8Array < "u", typeof ArrayBuffer > "u") w.blob = !1;
|
|
693
693
|
else {
|
|
694
|
-
var
|
|
694
|
+
var l = new ArrayBuffer(0);
|
|
695
695
|
try {
|
|
696
|
-
w.blob = new Blob([
|
|
696
|
+
w.blob = new Blob([l], { type: "application/zip" }).size === 0;
|
|
697
697
|
} catch {
|
|
698
698
|
try {
|
|
699
|
-
var
|
|
700
|
-
|
|
699
|
+
var u = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
|
|
700
|
+
u.append(l), w.blob = u.getBlob("application/zip").size === 0;
|
|
701
701
|
} catch {
|
|
702
702
|
w.blob = !1;
|
|
703
703
|
}
|
|
@@ -709,7 +709,7 @@ function Tt() {
|
|
|
709
709
|
w.nodestream = !1;
|
|
710
710
|
}
|
|
711
711
|
}, { "readable-stream": 16 }], 31: [function(_, N, w) {
|
|
712
|
-
for (var
|
|
712
|
+
for (var l = _("./utils"), u = _("./support"), n = _("./nodejsUtils"), h = _("./stream/GenericWorker"), g = new Array(256), y = 0; y < 256; y++) g[y] = 252 <= y ? 6 : 248 <= y ? 5 : 240 <= y ? 4 : 224 <= y ? 3 : 192 <= y ? 2 : 1;
|
|
713
713
|
g[254] = g[254] = 1;
|
|
714
714
|
function p() {
|
|
715
715
|
h.call(this, "utf-8 decode"), this.leftOver = null;
|
|
@@ -718,98 +718,98 @@ function Tt() {
|
|
|
718
718
|
h.call(this, "utf-8 encode");
|
|
719
719
|
}
|
|
720
720
|
w.utf8encode = function(i) {
|
|
721
|
-
return
|
|
722
|
-
var r,
|
|
723
|
-
for (c = 0; c < S; c++) (64512 & (
|
|
724
|
-
for (r =
|
|
721
|
+
return u.nodebuffer ? n.newBufferFrom(i, "utf-8") : (function(d) {
|
|
722
|
+
var r, o, a, c, v, S = d.length, x = 0;
|
|
723
|
+
for (c = 0; c < S; c++) (64512 & (o = d.charCodeAt(c))) == 55296 && c + 1 < S && (64512 & (a = d.charCodeAt(c + 1))) == 56320 && (o = 65536 + (o - 55296 << 10) + (a - 56320), c++), x += o < 128 ? 1 : o < 2048 ? 2 : o < 65536 ? 3 : 4;
|
|
724
|
+
for (r = u.uint8array ? new Uint8Array(x) : new Array(x), c = v = 0; v < x; c++) (64512 & (o = d.charCodeAt(c))) == 55296 && c + 1 < S && (64512 & (a = d.charCodeAt(c + 1))) == 56320 && (o = 65536 + (o - 55296 << 10) + (a - 56320), c++), o < 128 ? r[v++] = o : (o < 2048 ? r[v++] = 192 | o >>> 6 : (o < 65536 ? r[v++] = 224 | o >>> 12 : (r[v++] = 240 | o >>> 18, r[v++] = 128 | o >>> 12 & 63), r[v++] = 128 | o >>> 6 & 63), r[v++] = 128 | 63 & o);
|
|
725
725
|
return r;
|
|
726
726
|
})(i);
|
|
727
727
|
}, w.utf8decode = function(i) {
|
|
728
|
-
return
|
|
729
|
-
var r,
|
|
730
|
-
for (r =
|
|
731
|
-
else if (4 < (c = g[a])) S[
|
|
728
|
+
return u.nodebuffer ? l.transformTo("nodebuffer", i).toString("utf-8") : (function(d) {
|
|
729
|
+
var r, o, a, c, v = d.length, S = new Array(2 * v);
|
|
730
|
+
for (r = o = 0; r < v; ) if ((a = d[r++]) < 128) S[o++] = a;
|
|
731
|
+
else if (4 < (c = g[a])) S[o++] = 65533, r += c - 1;
|
|
732
732
|
else {
|
|
733
733
|
for (a &= c === 2 ? 31 : c === 3 ? 15 : 7; 1 < c && r < v; ) a = a << 6 | 63 & d[r++], c--;
|
|
734
|
-
1 < c ? S[
|
|
734
|
+
1 < c ? S[o++] = 65533 : a < 65536 ? S[o++] = a : (a -= 65536, S[o++] = 55296 | a >> 10 & 1023, S[o++] = 56320 | 1023 & a);
|
|
735
735
|
}
|
|
736
|
-
return S.length !==
|
|
737
|
-
})(i =
|
|
738
|
-
},
|
|
739
|
-
var d =
|
|
736
|
+
return S.length !== o && (S.subarray ? S = S.subarray(0, o) : S.length = o), l.applyFromCharCode(S);
|
|
737
|
+
})(i = l.transformTo(u.uint8array ? "uint8array" : "array", i));
|
|
738
|
+
}, l.inherits(p, h), p.prototype.processChunk = function(i) {
|
|
739
|
+
var d = l.transformTo(u.uint8array ? "uint8array" : "array", i.data);
|
|
740
740
|
if (this.leftOver && this.leftOver.length) {
|
|
741
|
-
if (
|
|
741
|
+
if (u.uint8array) {
|
|
742
742
|
var r = d;
|
|
743
743
|
(d = new Uint8Array(r.length + this.leftOver.length)).set(this.leftOver, 0), d.set(r, this.leftOver.length);
|
|
744
744
|
} else d = this.leftOver.concat(d);
|
|
745
745
|
this.leftOver = null;
|
|
746
746
|
}
|
|
747
|
-
var
|
|
747
|
+
var o = (function(c, v) {
|
|
748
748
|
var S;
|
|
749
749
|
for ((v = v || c.length) > c.length && (v = c.length), S = v - 1; 0 <= S && (192 & c[S]) == 128; ) S--;
|
|
750
750
|
return S < 0 || S === 0 ? v : S + g[c[S]] > v ? S : v;
|
|
751
751
|
})(d), a = d;
|
|
752
|
-
|
|
752
|
+
o !== d.length && (u.uint8array ? (a = d.subarray(0, o), this.leftOver = d.subarray(o, d.length)) : (a = d.slice(0, o), this.leftOver = d.slice(o, d.length))), this.push({ data: w.utf8decode(a), meta: i.meta });
|
|
753
753
|
}, p.prototype.flush = function() {
|
|
754
754
|
this.leftOver && this.leftOver.length && (this.push({ data: w.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
|
|
755
|
-
}, w.Utf8DecodeWorker = p,
|
|
755
|
+
}, w.Utf8DecodeWorker = p, l.inherits(b, h), b.prototype.processChunk = function(i) {
|
|
756
756
|
this.push({ data: w.utf8encode(i.data), meta: i.meta });
|
|
757
757
|
}, w.Utf8EncodeWorker = b;
|
|
758
758
|
}, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(_, N, w) {
|
|
759
|
-
var
|
|
759
|
+
var l = _("./support"), u = _("./base64"), n = _("./nodejsUtils"), h = _("./external");
|
|
760
760
|
function g(r) {
|
|
761
761
|
return r;
|
|
762
762
|
}
|
|
763
|
-
function y(r,
|
|
764
|
-
for (var a = 0; a < r.length; ++a)
|
|
765
|
-
return
|
|
763
|
+
function y(r, o) {
|
|
764
|
+
for (var a = 0; a < r.length; ++a) o[a] = 255 & r.charCodeAt(a);
|
|
765
|
+
return o;
|
|
766
766
|
}
|
|
767
|
-
_("setimmediate"), w.newBlob = function(r,
|
|
767
|
+
_("setimmediate"), w.newBlob = function(r, o) {
|
|
768
768
|
w.checkSupport("blob");
|
|
769
769
|
try {
|
|
770
|
-
return new Blob([r], { type:
|
|
770
|
+
return new Blob([r], { type: o });
|
|
771
771
|
} catch {
|
|
772
772
|
try {
|
|
773
773
|
var a = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
|
|
774
|
-
return a.append(r), a.getBlob(
|
|
774
|
+
return a.append(r), a.getBlob(o);
|
|
775
775
|
} catch {
|
|
776
776
|
throw new Error("Bug : can't construct the Blob.");
|
|
777
777
|
}
|
|
778
778
|
}
|
|
779
779
|
};
|
|
780
|
-
var p = { stringifyByChunk: function(r,
|
|
780
|
+
var p = { stringifyByChunk: function(r, o, a) {
|
|
781
781
|
var c = [], v = 0, S = r.length;
|
|
782
782
|
if (S <= a) return String.fromCharCode.apply(null, r);
|
|
783
|
-
for (; v < S; )
|
|
783
|
+
for (; v < S; ) o === "array" || o === "nodebuffer" ? c.push(String.fromCharCode.apply(null, r.slice(v, Math.min(v + a, S)))) : c.push(String.fromCharCode.apply(null, r.subarray(v, Math.min(v + a, S)))), v += a;
|
|
784
784
|
return c.join("");
|
|
785
785
|
}, stringifyByChar: function(r) {
|
|
786
|
-
for (var
|
|
787
|
-
return
|
|
786
|
+
for (var o = "", a = 0; a < r.length; a++) o += String.fromCharCode(r[a]);
|
|
787
|
+
return o;
|
|
788
788
|
}, applyCanBeUsed: { uint8array: (function() {
|
|
789
789
|
try {
|
|
790
|
-
return
|
|
790
|
+
return l.uint8array && String.fromCharCode.apply(null, new Uint8Array(1)).length === 1;
|
|
791
791
|
} catch {
|
|
792
792
|
return !1;
|
|
793
793
|
}
|
|
794
794
|
})(), nodebuffer: (function() {
|
|
795
795
|
try {
|
|
796
|
-
return
|
|
796
|
+
return l.nodebuffer && String.fromCharCode.apply(null, n.allocBuffer(1)).length === 1;
|
|
797
797
|
} catch {
|
|
798
798
|
return !1;
|
|
799
799
|
}
|
|
800
800
|
})() } };
|
|
801
801
|
function b(r) {
|
|
802
|
-
var
|
|
803
|
-
if (a === "uint8array" ? c = p.applyCanBeUsed.uint8array : a === "nodebuffer" && (c = p.applyCanBeUsed.nodebuffer), c) for (; 1 <
|
|
804
|
-
return p.stringifyByChunk(r, a,
|
|
802
|
+
var o = 65536, a = w.getTypeOf(r), c = !0;
|
|
803
|
+
if (a === "uint8array" ? c = p.applyCanBeUsed.uint8array : a === "nodebuffer" && (c = p.applyCanBeUsed.nodebuffer), c) for (; 1 < o; ) try {
|
|
804
|
+
return p.stringifyByChunk(r, a, o);
|
|
805
805
|
} catch {
|
|
806
|
-
|
|
806
|
+
o = Math.floor(o / 2);
|
|
807
807
|
}
|
|
808
808
|
return p.stringifyByChar(r);
|
|
809
809
|
}
|
|
810
|
-
function i(r,
|
|
811
|
-
for (var a = 0; a < r.length; a++)
|
|
812
|
-
return
|
|
810
|
+
function i(r, o) {
|
|
811
|
+
for (var a = 0; a < r.length; a++) o[a] = r[a];
|
|
812
|
+
return o;
|
|
813
813
|
}
|
|
814
814
|
w.applyFromCharCode = b;
|
|
815
815
|
var d = {};
|
|
@@ -847,56 +847,58 @@ function Tt() {
|
|
|
847
847
|
return d.nodebuffer.uint8array(r).buffer;
|
|
848
848
|
}, uint8array: function(r) {
|
|
849
849
|
return i(r, new Uint8Array(r.length));
|
|
850
|
-
}, nodebuffer: g }, w.transformTo = function(r,
|
|
851
|
-
if (
|
|
850
|
+
}, nodebuffer: g }, w.transformTo = function(r, o) {
|
|
851
|
+
if (o = o || "", !r) return o;
|
|
852
852
|
w.checkSupport(r);
|
|
853
|
-
var a = w.getTypeOf(
|
|
854
|
-
return d[a][r](
|
|
853
|
+
var a = w.getTypeOf(o);
|
|
854
|
+
return d[a][r](o);
|
|
855
855
|
}, w.resolve = function(r) {
|
|
856
|
-
for (var
|
|
857
|
-
var v =
|
|
858
|
-
v === "." || v === "" && c !== 0 && c !==
|
|
856
|
+
for (var o = r.split("/"), a = [], c = 0; c < o.length; c++) {
|
|
857
|
+
var v = o[c];
|
|
858
|
+
v === "." || v === "" && c !== 0 && c !== o.length - 1 || (v === ".." ? a.pop() : a.push(v));
|
|
859
859
|
}
|
|
860
860
|
return a.join("/");
|
|
861
861
|
}, w.getTypeOf = function(r) {
|
|
862
|
-
|
|
862
|
+
if (typeof r == "string") return "string";
|
|
863
|
+
var o = Object.prototype.toString.call(r);
|
|
864
|
+
return o === "[object Array]" ? "array" : l.nodebuffer && n.isBuffer(r) ? "nodebuffer" : l.uint8array && o === "[object Uint8Array]" ? "uint8array" : l.arraybuffer && o === "[object ArrayBuffer]" ? "arraybuffer" : void 0;
|
|
863
865
|
}, w.checkSupport = function(r) {
|
|
864
|
-
if (!
|
|
866
|
+
if (!l[r.toLowerCase()]) throw new Error(r + " is not supported by this platform");
|
|
865
867
|
}, w.MAX_VALUE_16BITS = 65535, w.MAX_VALUE_32BITS = -1, w.pretty = function(r) {
|
|
866
|
-
var
|
|
867
|
-
for (a = 0; a < (r || "").length; a++) c += "\\x" + ((
|
|
868
|
+
var o, a, c = "";
|
|
869
|
+
for (a = 0; a < (r || "").length; a++) c += "\\x" + ((o = r.charCodeAt(a)) < 16 ? "0" : "") + o.toString(16).toUpperCase();
|
|
868
870
|
return c;
|
|
869
|
-
}, w.delay = function(r,
|
|
871
|
+
}, w.delay = function(r, o, a) {
|
|
870
872
|
setImmediate(function() {
|
|
871
|
-
r.apply(a || null,
|
|
873
|
+
r.apply(a || null, o || []);
|
|
872
874
|
});
|
|
873
|
-
}, w.inherits = function(r,
|
|
875
|
+
}, w.inherits = function(r, o) {
|
|
874
876
|
function a() {
|
|
875
877
|
}
|
|
876
|
-
a.prototype =
|
|
878
|
+
a.prototype = o.prototype, r.prototype = new a();
|
|
877
879
|
}, w.extend = function() {
|
|
878
|
-
var r,
|
|
879
|
-
for (r = 0; r < arguments.length; r++) for (
|
|
880
|
+
var r, o, a = {};
|
|
881
|
+
for (r = 0; r < arguments.length; r++) for (o in arguments[r]) Object.prototype.hasOwnProperty.call(arguments[r], o) && a[o] === void 0 && (a[o] = arguments[r][o]);
|
|
880
882
|
return a;
|
|
881
|
-
}, w.prepareContent = function(r,
|
|
882
|
-
return h.Promise.resolve(
|
|
883
|
-
return
|
|
883
|
+
}, w.prepareContent = function(r, o, a, c, v) {
|
|
884
|
+
return h.Promise.resolve(o).then(function(S) {
|
|
885
|
+
return l.blob && (S instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(S)) !== -1) ? Blob.prototype.arrayBuffer !== void 0 ? S.arrayBuffer() : typeof FileReader < "u" ? new h.Promise(function(x, D) {
|
|
884
886
|
var O = new FileReader();
|
|
885
887
|
O.onload = function(j) {
|
|
886
888
|
x(j.target.result);
|
|
887
889
|
}, O.onerror = function(j) {
|
|
888
890
|
D(j.target.error);
|
|
889
891
|
}, O.readAsArrayBuffer(S);
|
|
890
|
-
}) : S;
|
|
892
|
+
}) : h.Promise.reject(new Error(r + " is a Blob, but we have no way of reading it.")) : S;
|
|
891
893
|
}).then(function(S) {
|
|
892
894
|
var x = w.getTypeOf(S);
|
|
893
|
-
return x ? (x === "arraybuffer" ? S = w.transformTo("uint8array", S) : x === "string" && (v ? S =
|
|
894
|
-
return y(D,
|
|
895
|
+
return x ? (x === "arraybuffer" ? S = w.transformTo("uint8array", S) : x === "string" && (v ? S = u.decode(S) : a && c !== !0 && (S = (function(D) {
|
|
896
|
+
return y(D, l.uint8array ? new Uint8Array(D.length) : new Array(D.length));
|
|
895
897
|
})(S))), S) : h.Promise.reject(new Error("Can't read the data of '" + r + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
|
|
896
898
|
});
|
|
897
899
|
};
|
|
898
900
|
}, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(_, N, w) {
|
|
899
|
-
var
|
|
901
|
+
var l = _("./reader/readerFor"), u = _("./utils"), n = _("./signature"), h = _("./zipEntry"), g = _("./support");
|
|
900
902
|
function y(p) {
|
|
901
903
|
this.files = [], this.loadOptions = p;
|
|
902
904
|
}
|
|
@@ -904,7 +906,7 @@ function Tt() {
|
|
|
904
906
|
if (!this.reader.readAndCheckSignature(p)) {
|
|
905
907
|
this.reader.index -= 4;
|
|
906
908
|
var b = this.reader.readString(4);
|
|
907
|
-
throw new Error("Corrupted zip or bug: unexpected signature (" +
|
|
909
|
+
throw new Error("Corrupted zip or bug: unexpected signature (" + u.pretty(b) + ", expected " + u.pretty(p) + ")");
|
|
908
910
|
}
|
|
909
911
|
}, isSignature: function(p, b) {
|
|
910
912
|
var i = this.reader.index;
|
|
@@ -913,7 +915,7 @@ function Tt() {
|
|
|
913
915
|
return this.reader.setIndex(i), d;
|
|
914
916
|
}, readBlockEndOfCentral: function() {
|
|
915
917
|
this.diskNumber = this.reader.readInt(2), this.diskWithCentralDirStart = this.reader.readInt(2), this.centralDirRecordsOnThisDisk = this.reader.readInt(2), this.centralDirRecords = this.reader.readInt(2), this.centralDirSize = this.reader.readInt(4), this.centralDirOffset = this.reader.readInt(4), this.zipCommentLength = this.reader.readInt(2);
|
|
916
|
-
var p = this.reader.readData(this.zipCommentLength), b = g.uint8array ? "uint8array" : "array", i =
|
|
918
|
+
var p = this.reader.readData(this.zipCommentLength), b = g.uint8array ? "uint8array" : "array", i = u.transformTo(b, p);
|
|
917
919
|
this.zipComment = this.loadOptions.decodeFileName(i);
|
|
918
920
|
}, readBlockZip64EndOfCentral: function() {
|
|
919
921
|
this.zip64EndOfCentralSize = this.reader.readInt(8), this.reader.skip(4), this.diskNumber = this.reader.readInt(4), this.diskWithCentralDirStart = this.reader.readInt(4), this.centralDirRecordsOnThisDisk = this.reader.readInt(8), this.centralDirRecords = this.reader.readInt(8), this.centralDirSize = this.reader.readInt(8), this.centralDirOffset = this.reader.readInt(8), this.zip64ExtensibleData = {};
|
|
@@ -932,7 +934,7 @@ function Tt() {
|
|
|
932
934
|
if (p < 0) throw this.isSignature(0, n.LOCAL_FILE_HEADER) ? new Error("Corrupted zip: can't find end of central directory") : new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");
|
|
933
935
|
this.reader.setIndex(p);
|
|
934
936
|
var b = p;
|
|
935
|
-
if (this.checkSignature(n.CENTRAL_DIRECTORY_END), this.readBlockEndOfCentral(), this.diskNumber ===
|
|
937
|
+
if (this.checkSignature(n.CENTRAL_DIRECTORY_END), this.readBlockEndOfCentral(), this.diskNumber === u.MAX_VALUE_16BITS || this.diskWithCentralDirStart === u.MAX_VALUE_16BITS || this.centralDirRecordsOnThisDisk === u.MAX_VALUE_16BITS || this.centralDirRecords === u.MAX_VALUE_16BITS || this.centralDirSize === u.MAX_VALUE_32BITS || this.centralDirOffset === u.MAX_VALUE_32BITS) {
|
|
936
938
|
if (this.zip64 = !0, (p = this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR)) < 0) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");
|
|
937
939
|
if (this.reader.setIndex(p), this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR), this.readBlockZip64EndOfCentralLocator(), !this.isSignature(this.relativeOffsetEndOfZip64CentralDir, n.ZIP64_CENTRAL_DIRECTORY_END) && (this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_END), this.relativeOffsetEndOfZip64CentralDir < 0)) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");
|
|
938
940
|
this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir), this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_END), this.readBlockZip64EndOfCentral();
|
|
@@ -943,12 +945,12 @@ function Tt() {
|
|
|
943
945
|
if (0 < d) this.isSignature(b, n.CENTRAL_FILE_HEADER) || (this.reader.zero = d);
|
|
944
946
|
else if (d < 0) throw new Error("Corrupted zip: missing " + Math.abs(d) + " bytes.");
|
|
945
947
|
}, prepareReader: function(p) {
|
|
946
|
-
this.reader =
|
|
948
|
+
this.reader = l(p);
|
|
947
949
|
}, load: function(p) {
|
|
948
950
|
this.prepareReader(p), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
|
|
949
951
|
} }, N.exports = y;
|
|
950
952
|
}, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(_, N, w) {
|
|
951
|
-
var
|
|
953
|
+
var l = _("./reader/readerFor"), u = _("./utils"), n = _("./compressedObject"), h = _("./crc32"), g = _("./utf8"), y = _("./compressions"), p = _("./support");
|
|
952
954
|
function b(i, d) {
|
|
953
955
|
this.options = i, this.loadOptions = d;
|
|
954
956
|
}
|
|
@@ -959,10 +961,10 @@ function Tt() {
|
|
|
959
961
|
}, readLocalPart: function(i) {
|
|
960
962
|
var d, r;
|
|
961
963
|
if (i.skip(22), this.fileNameLength = i.readInt(2), r = i.readInt(2), this.fileName = i.readData(this.fileNameLength), i.skip(r), this.compressedSize === -1 || this.uncompressedSize === -1) throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");
|
|
962
|
-
if ((d = (function(
|
|
963
|
-
for (var a in y) if (Object.prototype.hasOwnProperty.call(y, a) && y[a].magic ===
|
|
964
|
+
if ((d = (function(o) {
|
|
965
|
+
for (var a in y) if (Object.prototype.hasOwnProperty.call(y, a) && y[a].magic === o) return y[a];
|
|
964
966
|
return null;
|
|
965
|
-
})(this.compressionMethod)) === null) throw new Error("Corrupted zip : compression " +
|
|
967
|
+
})(this.compressionMethod)) === null) throw new Error("Corrupted zip : compression " + u.pretty(this.compressionMethod) + " unknown (inner file : " + u.transformTo("string", this.fileName) + ")");
|
|
966
968
|
this.decompressed = new n(this.compressedSize, this.uncompressedSize, this.crc32, d, i.readData(this.compressedSize));
|
|
967
969
|
}, readCentralPart: function(i) {
|
|
968
970
|
this.versionMadeBy = i.readInt(2), i.skip(2), this.bitFlag = i.readInt(2), this.compressionMethod = i.readString(2), this.date = i.readDate(), this.crc32 = i.readInt(4), this.compressedSize = i.readInt(4), this.uncompressedSize = i.readInt(4);
|
|
@@ -975,12 +977,12 @@ function Tt() {
|
|
|
975
977
|
this.dir = !!(16 & this.externalFileAttributes), i == 0 && (this.dosPermissions = 63 & this.externalFileAttributes), i == 3 && (this.unixPermissions = this.externalFileAttributes >> 16 & 65535), this.dir || this.fileNameStr.slice(-1) !== "/" || (this.dir = !0);
|
|
976
978
|
}, parseZIP64ExtraField: function() {
|
|
977
979
|
if (this.extraFields[1]) {
|
|
978
|
-
var i =
|
|
979
|
-
this.uncompressedSize ===
|
|
980
|
+
var i = l(this.extraFields[1].value);
|
|
981
|
+
this.uncompressedSize === u.MAX_VALUE_32BITS && (this.uncompressedSize = i.readInt(8)), this.compressedSize === u.MAX_VALUE_32BITS && (this.compressedSize = i.readInt(8)), this.localHeaderOffset === u.MAX_VALUE_32BITS && (this.localHeaderOffset = i.readInt(8)), this.diskNumberStart === u.MAX_VALUE_32BITS && (this.diskNumberStart = i.readInt(4));
|
|
980
982
|
}
|
|
981
983
|
}, readExtraFields: function(i) {
|
|
982
|
-
var d, r,
|
|
983
|
-
for (this.extraFields || (this.extraFields = {}); i.index + 4 < a; ) d = i.readInt(2), r = i.readInt(2),
|
|
984
|
+
var d, r, o, a = i.index + this.extraFieldsLength;
|
|
985
|
+
for (this.extraFields || (this.extraFields = {}); i.index + 4 < a; ) d = i.readInt(2), r = i.readInt(2), o = i.readData(r), this.extraFields[d] = { id: d, length: r, value: o };
|
|
984
986
|
i.setIndex(a);
|
|
985
987
|
}, handleUTF8: function() {
|
|
986
988
|
var i = p.uint8array ? "uint8array" : "array";
|
|
@@ -989,113 +991,113 @@ function Tt() {
|
|
|
989
991
|
var d = this.findExtraFieldUnicodePath();
|
|
990
992
|
if (d !== null) this.fileNameStr = d;
|
|
991
993
|
else {
|
|
992
|
-
var r =
|
|
994
|
+
var r = u.transformTo(i, this.fileName);
|
|
993
995
|
this.fileNameStr = this.loadOptions.decodeFileName(r);
|
|
994
996
|
}
|
|
995
|
-
var
|
|
996
|
-
if (
|
|
997
|
+
var o = this.findExtraFieldUnicodeComment();
|
|
998
|
+
if (o !== null) this.fileCommentStr = o;
|
|
997
999
|
else {
|
|
998
|
-
var a =
|
|
1000
|
+
var a = u.transformTo(i, this.fileComment);
|
|
999
1001
|
this.fileCommentStr = this.loadOptions.decodeFileName(a);
|
|
1000
1002
|
}
|
|
1001
1003
|
}
|
|
1002
1004
|
}, findExtraFieldUnicodePath: function() {
|
|
1003
1005
|
var i = this.extraFields[28789];
|
|
1004
1006
|
if (i) {
|
|
1005
|
-
var d =
|
|
1007
|
+
var d = l(i.value);
|
|
1006
1008
|
return d.readInt(1) !== 1 || h(this.fileName) !== d.readInt(4) ? null : g.utf8decode(d.readData(i.length - 5));
|
|
1007
1009
|
}
|
|
1008
1010
|
return null;
|
|
1009
1011
|
}, findExtraFieldUnicodeComment: function() {
|
|
1010
1012
|
var i = this.extraFields[25461];
|
|
1011
1013
|
if (i) {
|
|
1012
|
-
var d =
|
|
1014
|
+
var d = l(i.value);
|
|
1013
1015
|
return d.readInt(1) !== 1 || h(this.fileComment) !== d.readInt(4) ? null : g.utf8decode(d.readData(i.length - 5));
|
|
1014
1016
|
}
|
|
1015
1017
|
return null;
|
|
1016
1018
|
} }, N.exports = b;
|
|
1017
1019
|
}, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(_, N, w) {
|
|
1018
|
-
function
|
|
1019
|
-
this.name = d, this.dir =
|
|
1020
|
+
function l(d, r, o) {
|
|
1021
|
+
this.name = d, this.dir = o.dir, this.date = o.date, this.comment = o.comment, this.unixPermissions = o.unixPermissions, this.dosPermissions = o.dosPermissions, this._data = r, this._dataBinary = o.binary, this.options = { compression: o.compression, compressionOptions: o.compressionOptions };
|
|
1020
1022
|
}
|
|
1021
|
-
var
|
|
1022
|
-
|
|
1023
|
-
var r = null,
|
|
1023
|
+
var u = _("./stream/StreamHelper"), n = _("./stream/DataWorker"), h = _("./utf8"), g = _("./compressedObject"), y = _("./stream/GenericWorker");
|
|
1024
|
+
l.prototype = { internalStream: function(d) {
|
|
1025
|
+
var r = null, o = "string";
|
|
1024
1026
|
try {
|
|
1025
1027
|
if (!d) throw new Error("No output type specified.");
|
|
1026
|
-
var a = (
|
|
1027
|
-
|
|
1028
|
+
var a = (o = d.toLowerCase()) === "string" || o === "text";
|
|
1029
|
+
o !== "binarystring" && o !== "text" || (o = "string"), r = this._decompressWorker();
|
|
1028
1030
|
var c = !this._dataBinary;
|
|
1029
1031
|
c && !a && (r = r.pipe(new h.Utf8EncodeWorker())), !c && a && (r = r.pipe(new h.Utf8DecodeWorker()));
|
|
1030
1032
|
} catch (v) {
|
|
1031
1033
|
(r = new y("error")).error(v);
|
|
1032
1034
|
}
|
|
1033
|
-
return new
|
|
1035
|
+
return new u(r, o, "");
|
|
1034
1036
|
}, async: function(d, r) {
|
|
1035
1037
|
return this.internalStream(d).accumulate(r);
|
|
1036
1038
|
}, nodeStream: function(d, r) {
|
|
1037
1039
|
return this.internalStream(d || "nodebuffer").toNodejsStream(r);
|
|
1038
1040
|
}, _compressWorker: function(d, r) {
|
|
1039
1041
|
if (this._data instanceof g && this._data.compression.magic === d.magic) return this._data.getCompressedWorker();
|
|
1040
|
-
var
|
|
1041
|
-
return this._dataBinary || (
|
|
1042
|
+
var o = this._decompressWorker();
|
|
1043
|
+
return this._dataBinary || (o = o.pipe(new h.Utf8EncodeWorker())), g.createWorkerFrom(o, d, r);
|
|
1042
1044
|
}, _decompressWorker: function() {
|
|
1043
1045
|
return this._data instanceof g ? this._data.getContentWorker() : this._data instanceof y ? this._data : new n(this._data);
|
|
1044
1046
|
} };
|
|
1045
1047
|
for (var p = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], b = function() {
|
|
1046
1048
|
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
1047
|
-
}, i = 0; i < p.length; i++)
|
|
1048
|
-
N.exports =
|
|
1049
|
+
}, i = 0; i < p.length; i++) l.prototype[p[i]] = b;
|
|
1050
|
+
N.exports = l;
|
|
1049
1051
|
}, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(_, N, w) {
|
|
1050
|
-
(function(
|
|
1051
|
-
var
|
|
1052
|
+
(function(l) {
|
|
1053
|
+
var u, n, h = l.MutationObserver || l.WebKitMutationObserver;
|
|
1052
1054
|
if (h) {
|
|
1053
|
-
var g = 0, y = new h(d), p =
|
|
1054
|
-
y.observe(p, { characterData: !0 }),
|
|
1055
|
+
var g = 0, y = new h(d), p = l.document.createTextNode("");
|
|
1056
|
+
y.observe(p, { characterData: !0 }), u = function() {
|
|
1055
1057
|
p.data = g = ++g % 2;
|
|
1056
1058
|
};
|
|
1057
|
-
} else if (
|
|
1058
|
-
var r =
|
|
1059
|
+
} else if (l.setImmediate || l.MessageChannel === void 0) u = "document" in l && "onreadystatechange" in l.document.createElement("script") ? function() {
|
|
1060
|
+
var r = l.document.createElement("script");
|
|
1059
1061
|
r.onreadystatechange = function() {
|
|
1060
1062
|
d(), r.onreadystatechange = null, r.parentNode.removeChild(r), r = null;
|
|
1061
|
-
},
|
|
1063
|
+
}, l.document.documentElement.appendChild(r);
|
|
1062
1064
|
} : function() {
|
|
1063
1065
|
setTimeout(d, 0);
|
|
1064
1066
|
};
|
|
1065
1067
|
else {
|
|
1066
|
-
var b = new
|
|
1067
|
-
b.port1.onmessage = d,
|
|
1068
|
+
var b = new l.MessageChannel();
|
|
1069
|
+
b.port1.onmessage = d, u = function() {
|
|
1068
1070
|
b.port2.postMessage(0);
|
|
1069
1071
|
};
|
|
1070
1072
|
}
|
|
1071
1073
|
var i = [];
|
|
1072
1074
|
function d() {
|
|
1073
|
-
var r,
|
|
1075
|
+
var r, o;
|
|
1074
1076
|
n = !0;
|
|
1075
1077
|
for (var a = i.length; a; ) {
|
|
1076
|
-
for (
|
|
1078
|
+
for (o = i, i = [], r = -1; ++r < a; ) o[r]();
|
|
1077
1079
|
a = i.length;
|
|
1078
1080
|
}
|
|
1079
1081
|
n = !1;
|
|
1080
1082
|
}
|
|
1081
1083
|
N.exports = function(r) {
|
|
1082
|
-
i.push(r) !== 1 || n ||
|
|
1084
|
+
i.push(r) !== 1 || n || u();
|
|
1083
1085
|
};
|
|
1084
1086
|
}).call(this, typeof vt < "u" ? vt : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
1085
1087
|
}, {}], 37: [function(_, N, w) {
|
|
1086
|
-
var
|
|
1087
|
-
function
|
|
1088
|
+
var l = _("immediate");
|
|
1089
|
+
function u() {
|
|
1088
1090
|
}
|
|
1089
1091
|
var n = {}, h = ["REJECTED"], g = ["FULFILLED"], y = ["PENDING"];
|
|
1090
1092
|
function p(a) {
|
|
1091
1093
|
if (typeof a != "function") throw new TypeError("resolver must be a function");
|
|
1092
|
-
this.state = y, this.queue = [], this.outcome = void 0, a !==
|
|
1094
|
+
this.state = y, this.queue = [], this.outcome = void 0, a !== u && r(this, a);
|
|
1093
1095
|
}
|
|
1094
1096
|
function b(a, c, v) {
|
|
1095
1097
|
this.promise = a, typeof c == "function" && (this.onFulfilled = c, this.callFulfilled = this.otherCallFulfilled), typeof v == "function" && (this.onRejected = v, this.callRejected = this.otherCallRejected);
|
|
1096
1098
|
}
|
|
1097
1099
|
function i(a, c, v) {
|
|
1098
|
-
|
|
1100
|
+
l(function() {
|
|
1099
1101
|
var S;
|
|
1100
1102
|
try {
|
|
1101
1103
|
S = c(v);
|
|
@@ -1119,12 +1121,12 @@ function Tt() {
|
|
|
1119
1121
|
function x(O) {
|
|
1120
1122
|
v || (v = !0, n.resolve(a, O));
|
|
1121
1123
|
}
|
|
1122
|
-
var D =
|
|
1124
|
+
var D = o(function() {
|
|
1123
1125
|
c(x, S);
|
|
1124
1126
|
});
|
|
1125
1127
|
D.status === "error" && S(D.value);
|
|
1126
1128
|
}
|
|
1127
|
-
function
|
|
1129
|
+
function o(a, c) {
|
|
1128
1130
|
var v = {};
|
|
1129
1131
|
try {
|
|
1130
1132
|
v.value = a(c), v.status = "success";
|
|
@@ -1149,7 +1151,7 @@ function Tt() {
|
|
|
1149
1151
|
return this.then(null, a);
|
|
1150
1152
|
}, p.prototype.then = function(a, c) {
|
|
1151
1153
|
if (typeof a != "function" && this.state === g || typeof c != "function" && this.state === h) return this;
|
|
1152
|
-
var v = new this.constructor(
|
|
1154
|
+
var v = new this.constructor(u);
|
|
1153
1155
|
return this.state !== y ? i(v, this.state === g ? a : c, this.outcome) : this.queue.push(new b(v, a, c)), v;
|
|
1154
1156
|
}, b.prototype.callFulfilled = function(a) {
|
|
1155
1157
|
n.resolve(this.promise, a);
|
|
@@ -1160,7 +1162,7 @@ function Tt() {
|
|
|
1160
1162
|
}, b.prototype.otherCallRejected = function(a) {
|
|
1161
1163
|
i(this.promise, this.onRejected, a);
|
|
1162
1164
|
}, n.resolve = function(a, c) {
|
|
1163
|
-
var v =
|
|
1165
|
+
var v = o(d, c);
|
|
1164
1166
|
if (v.status === "error") return n.reject(a, v.value);
|
|
1165
1167
|
var S = v.value;
|
|
1166
1168
|
if (S) r(a, S);
|
|
@@ -1174,16 +1176,16 @@ function Tt() {
|
|
|
1174
1176
|
for (var v = -1, S = a.queue.length; ++v < S; ) a.queue[v].callRejected(c);
|
|
1175
1177
|
return a;
|
|
1176
1178
|
}, p.resolve = function(a) {
|
|
1177
|
-
return a instanceof this ? a : n.resolve(new this(
|
|
1179
|
+
return a instanceof this ? a : n.resolve(new this(u), a);
|
|
1178
1180
|
}, p.reject = function(a) {
|
|
1179
|
-
var c = new this(
|
|
1181
|
+
var c = new this(u);
|
|
1180
1182
|
return n.reject(c, a);
|
|
1181
1183
|
}, p.all = function(a) {
|
|
1182
1184
|
var c = this;
|
|
1183
1185
|
if (Object.prototype.toString.call(a) !== "[object Array]") return this.reject(new TypeError("must be an array"));
|
|
1184
1186
|
var v = a.length, S = !1;
|
|
1185
1187
|
if (!v) return this.resolve([]);
|
|
1186
|
-
for (var x = new Array(v), D = 0, O = -1, j = new this(
|
|
1188
|
+
for (var x = new Array(v), D = 0, O = -1, j = new this(u); ++O < v; ) I(a[O], O);
|
|
1187
1189
|
return j;
|
|
1188
1190
|
function I(W, q) {
|
|
1189
1191
|
c.resolve(W).then(function(m) {
|
|
@@ -1197,7 +1199,7 @@ function Tt() {
|
|
|
1197
1199
|
if (Object.prototype.toString.call(a) !== "[object Array]") return this.reject(new TypeError("must be an array"));
|
|
1198
1200
|
var v = a.length, S = !1;
|
|
1199
1201
|
if (!v) return this.resolve([]);
|
|
1200
|
-
for (var x = -1, D = new this(
|
|
1202
|
+
for (var x = -1, D = new this(u); ++x < v; ) O = a[x], c.resolve(O).then(function(j) {
|
|
1201
1203
|
S || (S = !0, n.resolve(D, j));
|
|
1202
1204
|
}, function(j) {
|
|
1203
1205
|
S || (S = !0, n.reject(D, j));
|
|
@@ -1206,24 +1208,24 @@ function Tt() {
|
|
|
1206
1208
|
return D;
|
|
1207
1209
|
};
|
|
1208
1210
|
}, { immediate: 36 }], 38: [function(_, N, w) {
|
|
1209
|
-
var
|
|
1210
|
-
(0, _("./lib/utils/common").assign)(
|
|
1211
|
+
var l = {};
|
|
1212
|
+
(0, _("./lib/utils/common").assign)(l, _("./lib/deflate"), _("./lib/inflate"), _("./lib/zlib/constants")), N.exports = l;
|
|
1211
1213
|
}, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(_, N, w) {
|
|
1212
|
-
var
|
|
1214
|
+
var l = _("./zlib/deflate"), u = _("./utils/common"), n = _("./utils/strings"), h = _("./zlib/messages"), g = _("./zlib/zstream"), y = Object.prototype.toString, p = 0, b = -1, i = 0, d = 8;
|
|
1213
1215
|
function r(a) {
|
|
1214
1216
|
if (!(this instanceof r)) return new r(a);
|
|
1215
|
-
this.options =
|
|
1217
|
+
this.options = u.assign({ level: b, method: d, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: i, to: "" }, a || {});
|
|
1216
1218
|
var c = this.options;
|
|
1217
1219
|
c.raw && 0 < c.windowBits ? c.windowBits = -c.windowBits : c.gzip && 0 < c.windowBits && c.windowBits < 16 && (c.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new g(), this.strm.avail_out = 0;
|
|
1218
|
-
var v =
|
|
1220
|
+
var v = l.deflateInit2(this.strm, c.level, c.method, c.windowBits, c.memLevel, c.strategy);
|
|
1219
1221
|
if (v !== p) throw new Error(h[v]);
|
|
1220
|
-
if (c.header &&
|
|
1222
|
+
if (c.header && l.deflateSetHeader(this.strm, c.header), c.dictionary) {
|
|
1221
1223
|
var S;
|
|
1222
|
-
if (S = typeof c.dictionary == "string" ? n.string2buf(c.dictionary) : y.call(c.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(c.dictionary) : c.dictionary, (v =
|
|
1224
|
+
if (S = typeof c.dictionary == "string" ? n.string2buf(c.dictionary) : y.call(c.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(c.dictionary) : c.dictionary, (v = l.deflateSetDictionary(this.strm, S)) !== p) throw new Error(h[v]);
|
|
1223
1225
|
this._dict_set = !0;
|
|
1224
1226
|
}
|
|
1225
1227
|
}
|
|
1226
|
-
function
|
|
1228
|
+
function o(a, c) {
|
|
1227
1229
|
var v = new r(c);
|
|
1228
1230
|
if (v.push(a, !0), v.err) throw v.msg || h[v.err];
|
|
1229
1231
|
return v.result;
|
|
@@ -1233,53 +1235,53 @@ function Tt() {
|
|
|
1233
1235
|
if (this.ended) return !1;
|
|
1234
1236
|
S = c === ~~c ? c : c === !0 ? 4 : 0, typeof a == "string" ? x.input = n.string2buf(a) : y.call(a) === "[object ArrayBuffer]" ? x.input = new Uint8Array(a) : x.input = a, x.next_in = 0, x.avail_in = x.input.length;
|
|
1235
1237
|
do {
|
|
1236
|
-
if (x.avail_out === 0 && (x.output = new
|
|
1237
|
-
x.avail_out !== 0 && (x.avail_in !== 0 || S !== 4 && S !== 2) || (this.options.to === "string" ? this.onData(n.buf2binstring(
|
|
1238
|
+
if (x.avail_out === 0 && (x.output = new u.Buf8(D), x.next_out = 0, x.avail_out = D), (v = l.deflate(x, S)) !== 1 && v !== p) return this.onEnd(v), !(this.ended = !0);
|
|
1239
|
+
x.avail_out !== 0 && (x.avail_in !== 0 || S !== 4 && S !== 2) || (this.options.to === "string" ? this.onData(n.buf2binstring(u.shrinkBuf(x.output, x.next_out))) : this.onData(u.shrinkBuf(x.output, x.next_out)));
|
|
1238
1240
|
} while ((0 < x.avail_in || x.avail_out === 0) && v !== 1);
|
|
1239
|
-
return S === 4 ? (v =
|
|
1241
|
+
return S === 4 ? (v = l.deflateEnd(this.strm), this.onEnd(v), this.ended = !0, v === p) : S !== 2 || (this.onEnd(p), !(x.avail_out = 0));
|
|
1240
1242
|
}, r.prototype.onData = function(a) {
|
|
1241
1243
|
this.chunks.push(a);
|
|
1242
1244
|
}, r.prototype.onEnd = function(a) {
|
|
1243
|
-
a === p && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result =
|
|
1244
|
-
}, w.Deflate = r, w.deflate =
|
|
1245
|
-
return (c = c || {}).raw = !0,
|
|
1245
|
+
a === p && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = u.flattenChunks(this.chunks)), this.chunks = [], this.err = a, this.msg = this.strm.msg;
|
|
1246
|
+
}, w.Deflate = r, w.deflate = o, w.deflateRaw = function(a, c) {
|
|
1247
|
+
return (c = c || {}).raw = !0, o(a, c);
|
|
1246
1248
|
}, w.gzip = function(a, c) {
|
|
1247
|
-
return (c = c || {}).gzip = !0,
|
|
1249
|
+
return (c = c || {}).gzip = !0, o(a, c);
|
|
1248
1250
|
};
|
|
1249
1251
|
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/deflate": 46, "./zlib/messages": 51, "./zlib/zstream": 53 }], 40: [function(_, N, w) {
|
|
1250
|
-
var
|
|
1252
|
+
var l = _("./zlib/inflate"), u = _("./utils/common"), n = _("./utils/strings"), h = _("./zlib/constants"), g = _("./zlib/messages"), y = _("./zlib/zstream"), p = _("./zlib/gzheader"), b = Object.prototype.toString;
|
|
1251
1253
|
function i(r) {
|
|
1252
1254
|
if (!(this instanceof i)) return new i(r);
|
|
1253
|
-
this.options =
|
|
1254
|
-
var
|
|
1255
|
-
|
|
1256
|
-
var a =
|
|
1255
|
+
this.options = u.assign({ chunkSize: 16384, windowBits: 0, to: "" }, r || {});
|
|
1256
|
+
var o = this.options;
|
|
1257
|
+
o.raw && 0 <= o.windowBits && o.windowBits < 16 && (o.windowBits = -o.windowBits, o.windowBits === 0 && (o.windowBits = -15)), !(0 <= o.windowBits && o.windowBits < 16) || r && r.windowBits || (o.windowBits += 32), 15 < o.windowBits && o.windowBits < 48 && (15 & o.windowBits) == 0 && (o.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new y(), this.strm.avail_out = 0;
|
|
1258
|
+
var a = l.inflateInit2(this.strm, o.windowBits);
|
|
1257
1259
|
if (a !== h.Z_OK) throw new Error(g[a]);
|
|
1258
|
-
this.header = new p(),
|
|
1260
|
+
this.header = new p(), l.inflateGetHeader(this.strm, this.header);
|
|
1259
1261
|
}
|
|
1260
|
-
function d(r,
|
|
1261
|
-
var a = new i(
|
|
1262
|
+
function d(r, o) {
|
|
1263
|
+
var a = new i(o);
|
|
1262
1264
|
if (a.push(r, !0), a.err) throw a.msg || g[a.err];
|
|
1263
1265
|
return a.result;
|
|
1264
1266
|
}
|
|
1265
|
-
i.prototype.push = function(r,
|
|
1267
|
+
i.prototype.push = function(r, o) {
|
|
1266
1268
|
var a, c, v, S, x, D, O = this.strm, j = this.options.chunkSize, I = this.options.dictionary, W = !1;
|
|
1267
1269
|
if (this.ended) return !1;
|
|
1268
|
-
c =
|
|
1270
|
+
c = o === ~~o ? o : o === !0 ? h.Z_FINISH : h.Z_NO_FLUSH, typeof r == "string" ? O.input = n.binstring2buf(r) : b.call(r) === "[object ArrayBuffer]" ? O.input = new Uint8Array(r) : O.input = r, O.next_in = 0, O.avail_in = O.input.length;
|
|
1269
1271
|
do {
|
|
1270
|
-
if (O.avail_out === 0 && (O.output = new
|
|
1271
|
-
O.next_out && (O.avail_out !== 0 && a !== h.Z_STREAM_END && (O.avail_in !== 0 || c !== h.Z_FINISH && c !== h.Z_SYNC_FLUSH) || (this.options.to === "string" ? (v = n.utf8border(O.output, O.next_out), S = O.next_out - v, x = n.buf2string(O.output, v), O.next_out = S, O.avail_out = j - S, S &&
|
|
1272
|
+
if (O.avail_out === 0 && (O.output = new u.Buf8(j), O.next_out = 0, O.avail_out = j), (a = l.inflate(O, h.Z_NO_FLUSH)) === h.Z_NEED_DICT && I && (D = typeof I == "string" ? n.string2buf(I) : b.call(I) === "[object ArrayBuffer]" ? new Uint8Array(I) : I, a = l.inflateSetDictionary(this.strm, D)), a === h.Z_BUF_ERROR && W === !0 && (a = h.Z_OK, W = !1), a !== h.Z_STREAM_END && a !== h.Z_OK) return this.onEnd(a), !(this.ended = !0);
|
|
1273
|
+
O.next_out && (O.avail_out !== 0 && a !== h.Z_STREAM_END && (O.avail_in !== 0 || c !== h.Z_FINISH && c !== h.Z_SYNC_FLUSH) || (this.options.to === "string" ? (v = n.utf8border(O.output, O.next_out), S = O.next_out - v, x = n.buf2string(O.output, v), O.next_out = S, O.avail_out = j - S, S && u.arraySet(O.output, O.output, v, S, 0), this.onData(x)) : this.onData(u.shrinkBuf(O.output, O.next_out)))), O.avail_in === 0 && O.avail_out === 0 && (W = !0);
|
|
1272
1274
|
} while ((0 < O.avail_in || O.avail_out === 0) && a !== h.Z_STREAM_END);
|
|
1273
|
-
return a === h.Z_STREAM_END && (c = h.Z_FINISH), c === h.Z_FINISH ? (a =
|
|
1275
|
+
return a === h.Z_STREAM_END && (c = h.Z_FINISH), c === h.Z_FINISH ? (a = l.inflateEnd(this.strm), this.onEnd(a), this.ended = !0, a === h.Z_OK) : c !== h.Z_SYNC_FLUSH || (this.onEnd(h.Z_OK), !(O.avail_out = 0));
|
|
1274
1276
|
}, i.prototype.onData = function(r) {
|
|
1275
1277
|
this.chunks.push(r);
|
|
1276
1278
|
}, i.prototype.onEnd = function(r) {
|
|
1277
|
-
r === h.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result =
|
|
1278
|
-
}, w.Inflate = i, w.inflate = d, w.inflateRaw = function(r,
|
|
1279
|
-
return (
|
|
1279
|
+
r === h.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = u.flattenChunks(this.chunks)), this.chunks = [], this.err = r, this.msg = this.strm.msg;
|
|
1280
|
+
}, w.Inflate = i, w.inflate = d, w.inflateRaw = function(r, o) {
|
|
1281
|
+
return (o = o || {}).raw = !0, d(r, o);
|
|
1280
1282
|
}, w.ungzip = d;
|
|
1281
1283
|
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/constants": 44, "./zlib/gzheader": 47, "./zlib/inflate": 49, "./zlib/messages": 51, "./zlib/zstream": 53 }], 41: [function(_, N, w) {
|
|
1282
|
-
var
|
|
1284
|
+
var l = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Int32Array < "u";
|
|
1283
1285
|
w.assign = function(h) {
|
|
1284
1286
|
for (var g = Array.prototype.slice.call(arguments, 1); g.length; ) {
|
|
1285
1287
|
var y = g.shift();
|
|
@@ -1292,7 +1294,7 @@ function Tt() {
|
|
|
1292
1294
|
}, w.shrinkBuf = function(h, g) {
|
|
1293
1295
|
return h.length === g ? h : h.subarray ? h.subarray(0, g) : (h.length = g, h);
|
|
1294
1296
|
};
|
|
1295
|
-
var
|
|
1297
|
+
var u = { arraySet: function(h, g, y, p, b) {
|
|
1296
1298
|
if (g.subarray && h.subarray) h.set(g.subarray(y, y + p), b);
|
|
1297
1299
|
else for (var i = 0; i < p; i++) h[b + i] = g[y + i];
|
|
1298
1300
|
}, flattenChunks: function(h) {
|
|
@@ -1306,43 +1308,43 @@ function Tt() {
|
|
|
1306
1308
|
return [].concat.apply([], h);
|
|
1307
1309
|
} };
|
|
1308
1310
|
w.setTyped = function(h) {
|
|
1309
|
-
h ? (w.Buf8 = Uint8Array, w.Buf16 = Uint16Array, w.Buf32 = Int32Array, w.assign(w,
|
|
1310
|
-
}, w.setTyped(
|
|
1311
|
+
h ? (w.Buf8 = Uint8Array, w.Buf16 = Uint16Array, w.Buf32 = Int32Array, w.assign(w, u)) : (w.Buf8 = Array, w.Buf16 = Array, w.Buf32 = Array, w.assign(w, n));
|
|
1312
|
+
}, w.setTyped(l);
|
|
1311
1313
|
}, {}], 42: [function(_, N, w) {
|
|
1312
|
-
var
|
|
1314
|
+
var l = _("./common"), u = !0, n = !0;
|
|
1313
1315
|
try {
|
|
1314
1316
|
String.fromCharCode.apply(null, [0]);
|
|
1315
1317
|
} catch {
|
|
1316
|
-
|
|
1318
|
+
u = !1;
|
|
1317
1319
|
}
|
|
1318
1320
|
try {
|
|
1319
1321
|
String.fromCharCode.apply(null, new Uint8Array(1));
|
|
1320
1322
|
} catch {
|
|
1321
1323
|
n = !1;
|
|
1322
1324
|
}
|
|
1323
|
-
for (var h = new
|
|
1325
|
+
for (var h = new l.Buf8(256), g = 0; g < 256; g++) h[g] = 252 <= g ? 6 : 248 <= g ? 5 : 240 <= g ? 4 : 224 <= g ? 3 : 192 <= g ? 2 : 1;
|
|
1324
1326
|
function y(p, b) {
|
|
1325
|
-
if (b < 65537 && (p.subarray && n || !p.subarray &&
|
|
1327
|
+
if (b < 65537 && (p.subarray && n || !p.subarray && u)) return String.fromCharCode.apply(null, l.shrinkBuf(p, b));
|
|
1326
1328
|
for (var i = "", d = 0; d < b; d++) i += String.fromCharCode(p[d]);
|
|
1327
1329
|
return i;
|
|
1328
1330
|
}
|
|
1329
1331
|
h[254] = h[254] = 1, w.string2buf = function(p) {
|
|
1330
|
-
var b, i, d, r,
|
|
1332
|
+
var b, i, d, r, o, a = p.length, c = 0;
|
|
1331
1333
|
for (r = 0; r < a; r++) (64512 & (i = p.charCodeAt(r))) == 55296 && r + 1 < a && (64512 & (d = p.charCodeAt(r + 1))) == 56320 && (i = 65536 + (i - 55296 << 10) + (d - 56320), r++), c += i < 128 ? 1 : i < 2048 ? 2 : i < 65536 ? 3 : 4;
|
|
1332
|
-
for (b = new
|
|
1334
|
+
for (b = new l.Buf8(c), r = o = 0; o < c; r++) (64512 & (i = p.charCodeAt(r))) == 55296 && r + 1 < a && (64512 & (d = p.charCodeAt(r + 1))) == 56320 && (i = 65536 + (i - 55296 << 10) + (d - 56320), r++), i < 128 ? b[o++] = i : (i < 2048 ? b[o++] = 192 | i >>> 6 : (i < 65536 ? b[o++] = 224 | i >>> 12 : (b[o++] = 240 | i >>> 18, b[o++] = 128 | i >>> 12 & 63), b[o++] = 128 | i >>> 6 & 63), b[o++] = 128 | 63 & i);
|
|
1333
1335
|
return b;
|
|
1334
1336
|
}, w.buf2binstring = function(p) {
|
|
1335
1337
|
return y(p, p.length);
|
|
1336
1338
|
}, w.binstring2buf = function(p) {
|
|
1337
|
-
for (var b = new
|
|
1339
|
+
for (var b = new l.Buf8(p.length), i = 0, d = b.length; i < d; i++) b[i] = p.charCodeAt(i);
|
|
1338
1340
|
return b;
|
|
1339
1341
|
}, w.buf2string = function(p, b) {
|
|
1340
|
-
var i, d, r,
|
|
1342
|
+
var i, d, r, o, a = b || p.length, c = new Array(2 * a);
|
|
1341
1343
|
for (i = d = 0; i < a; ) if ((r = p[i++]) < 128) c[d++] = r;
|
|
1342
|
-
else if (4 < (
|
|
1344
|
+
else if (4 < (o = h[r])) c[d++] = 65533, i += o - 1;
|
|
1343
1345
|
else {
|
|
1344
|
-
for (r &=
|
|
1345
|
-
1 <
|
|
1346
|
+
for (r &= o === 2 ? 31 : o === 3 ? 15 : 7; 1 < o && i < a; ) r = r << 6 | 63 & p[i++], o--;
|
|
1347
|
+
1 < o ? c[d++] = 65533 : r < 65536 ? c[d++] = r : (r -= 65536, c[d++] = 55296 | r >> 10 & 1023, c[d++] = 56320 | 1023 & r);
|
|
1346
1348
|
}
|
|
1347
1349
|
return y(c, d);
|
|
1348
1350
|
}, w.utf8border = function(p, b) {
|
|
@@ -1351,9 +1353,9 @@ function Tt() {
|
|
|
1351
1353
|
return i < 0 || i === 0 ? b : i + h[p[i]] > b ? i : b;
|
|
1352
1354
|
};
|
|
1353
1355
|
}, { "./common": 41 }], 43: [function(_, N, w) {
|
|
1354
|
-
N.exports = function(
|
|
1355
|
-
for (var g = 65535 &
|
|
1356
|
-
for (n -= p = 2e3 < n ? 2e3 : n; y = y + (g = g +
|
|
1356
|
+
N.exports = function(l, u, n, h) {
|
|
1357
|
+
for (var g = 65535 & l | 0, y = l >>> 16 & 65535 | 0, p = 0; n !== 0; ) {
|
|
1358
|
+
for (n -= p = 2e3 < n ? 2e3 : n; y = y + (g = g + u[h++] | 0) | 0, --p; ) ;
|
|
1357
1359
|
g %= 65521, y %= 65521;
|
|
1358
1360
|
}
|
|
1359
1361
|
return g | y << 16 | 0;
|
|
@@ -1361,22 +1363,22 @@ function Tt() {
|
|
|
1361
1363
|
}, {}], 44: [function(_, N, w) {
|
|
1362
1364
|
N.exports = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 };
|
|
1363
1365
|
}, {}], 45: [function(_, N, w) {
|
|
1364
|
-
var
|
|
1365
|
-
for (var
|
|
1366
|
-
|
|
1367
|
-
for (var g = 0; g < 8; g++)
|
|
1368
|
-
n[h] =
|
|
1366
|
+
var l = (function() {
|
|
1367
|
+
for (var u, n = [], h = 0; h < 256; h++) {
|
|
1368
|
+
u = h;
|
|
1369
|
+
for (var g = 0; g < 8; g++) u = 1 & u ? 3988292384 ^ u >>> 1 : u >>> 1;
|
|
1370
|
+
n[h] = u;
|
|
1369
1371
|
}
|
|
1370
1372
|
return n;
|
|
1371
1373
|
})();
|
|
1372
|
-
N.exports = function(
|
|
1373
|
-
var y =
|
|
1374
|
-
|
|
1375
|
-
for (var b = g; b < p; b++)
|
|
1376
|
-
return -1 ^
|
|
1374
|
+
N.exports = function(u, n, h, g) {
|
|
1375
|
+
var y = l, p = g + h;
|
|
1376
|
+
u ^= -1;
|
|
1377
|
+
for (var b = g; b < p; b++) u = u >>> 8 ^ y[255 & (u ^ n[b])];
|
|
1378
|
+
return -1 ^ u;
|
|
1377
1379
|
};
|
|
1378
1380
|
}, {}], 46: [function(_, N, w) {
|
|
1379
|
-
var
|
|
1381
|
+
var l, u = _("../utils/common"), n = _("./trees"), h = _("./adler32"), g = _("./crc32"), y = _("./messages"), p = 0, b = 4, i = 0, d = -2, r = -1, o = 4, a = 2, c = 8, v = 9, S = 286, x = 30, D = 19, O = 2 * S + 1, j = 15, I = 3, W = 258, q = W + I + 1, m = 42, B = 113, e = 1, T = 2, J = 3, U = 4;
|
|
1380
1382
|
function $(t, R) {
|
|
1381
1383
|
return t.msg = y[R], R;
|
|
1382
1384
|
}
|
|
@@ -1388,7 +1390,7 @@ function Tt() {
|
|
|
1388
1390
|
}
|
|
1389
1391
|
function E(t) {
|
|
1390
1392
|
var R = t.state, A = R.pending;
|
|
1391
|
-
A > t.avail_out && (A = t.avail_out), A !== 0 && (
|
|
1393
|
+
A > t.avail_out && (A = t.avail_out), A !== 0 && (u.arraySet(t.output, R.pending_buf, R.pending_out, A, t.next_out), t.next_out += A, R.pending_out += A, t.total_out += A, t.avail_out -= A, R.pending -= A, R.pending === 0 && (R.pending_out = 0));
|
|
1392
1394
|
}
|
|
1393
1395
|
function C(t, R) {
|
|
1394
1396
|
n._tr_flush_block(t, 0 <= t.block_start ? t.block_start : -1, t.strstart - t.block_start, R), t.block_start = t.strstart, E(t.strm);
|
|
@@ -1420,12 +1422,12 @@ function Tt() {
|
|
|
1420
1422
|
var R, A, f, s, k, F, P, z, Z, K, M = t.w_size;
|
|
1421
1423
|
do {
|
|
1422
1424
|
if (s = t.window_size - t.lookahead - t.strstart, t.strstart >= M + (M - q)) {
|
|
1423
|
-
for (
|
|
1425
|
+
for (u.arraySet(t.window, t.window, M, M, 0), t.match_start -= M, t.strstart -= M, t.block_start -= M, R = A = t.hash_size; f = t.head[--R], t.head[R] = M <= f ? f - M : 0, --A; ) ;
|
|
1424
1426
|
for (R = A = M; f = t.prev[--R], t.prev[R] = M <= f ? f - M : 0, --A; ) ;
|
|
1425
1427
|
s += M;
|
|
1426
1428
|
}
|
|
1427
1429
|
if (t.strm.avail_in === 0) break;
|
|
1428
|
-
if (F = t.strm, P = t.window, z = t.strstart + t.lookahead, Z = s, K = void 0, K = F.avail_in, Z < K && (K = Z), A = K === 0 ? 0 : (F.avail_in -= K,
|
|
1430
|
+
if (F = t.strm, P = t.window, z = t.strstart + t.lookahead, Z = s, K = void 0, K = F.avail_in, Z < K && (K = Z), A = K === 0 ? 0 : (F.avail_in -= K, u.arraySet(P, F.input, F.next_in, K, z), F.state.wrap === 1 ? F.adler = h(F.adler, P, K, z) : F.state.wrap === 2 && (F.adler = g(F.adler, P, K, z)), F.next_in += K, F.total_in += K, K), t.lookahead += A, t.lookahead + t.insert >= I) for (k = t.strstart - t.insert, t.ins_h = t.window[k], t.ins_h = (t.ins_h << t.hash_shift ^ t.window[k + 1]) & t.hash_mask; t.insert && (t.ins_h = (t.ins_h << t.hash_shift ^ t.window[k + I - 1]) & t.hash_mask, t.prev[k & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = k, k++, t.insert--, !(t.lookahead + t.insert < I)); ) ;
|
|
1429
1431
|
} while (t.lookahead < q && t.strm.avail_in !== 0);
|
|
1430
1432
|
}
|
|
1431
1433
|
function ot(t, R) {
|
|
@@ -1462,7 +1464,7 @@ function Tt() {
|
|
|
1462
1464
|
this.good_length = t, this.max_lazy = R, this.nice_length = A, this.max_chain = f, this.func = s;
|
|
1463
1465
|
}
|
|
1464
1466
|
function st() {
|
|
1465
|
-
this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = c, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new
|
|
1467
|
+
this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = c, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new u.Buf16(2 * O), this.dyn_dtree = new u.Buf16(2 * (2 * x + 1)), this.bl_tree = new u.Buf16(2 * (2 * D + 1)), V(this.dyn_ltree), V(this.dyn_dtree), V(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new u.Buf16(j + 1), this.heap = new u.Buf16(2 * S + 1), V(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new u.Buf16(2 * S + 1), V(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
|
|
1466
1468
|
}
|
|
1467
1469
|
function it(t) {
|
|
1468
1470
|
var R;
|
|
@@ -1471,18 +1473,18 @@ function Tt() {
|
|
|
1471
1473
|
function ft(t) {
|
|
1472
1474
|
var R = it(t);
|
|
1473
1475
|
return R === i && (function(A) {
|
|
1474
|
-
A.window_size = 2 * A.w_size, V(A.head), A.max_lazy_match =
|
|
1476
|
+
A.window_size = 2 * A.w_size, V(A.head), A.max_lazy_match = l[A.level].max_lazy, A.good_match = l[A.level].good_length, A.nice_match = l[A.level].nice_length, A.max_chain_length = l[A.level].max_chain, A.strstart = 0, A.block_start = 0, A.lookahead = 0, A.insert = 0, A.match_length = A.prev_length = I - 1, A.match_available = 0, A.ins_h = 0;
|
|
1475
1477
|
})(t.state), R;
|
|
1476
1478
|
}
|
|
1477
1479
|
function lt(t, R, A, f, s, k) {
|
|
1478
1480
|
if (!t) return d;
|
|
1479
1481
|
var F = 1;
|
|
1480
|
-
if (R === r && (R = 6), f < 0 ? (F = 0, f = -f) : 15 < f && (F = 2, f -= 16), s < 1 || v < s || A !== c || f < 8 || 15 < f || R < 0 || 9 < R || k < 0 ||
|
|
1482
|
+
if (R === r && (R = 6), f < 0 ? (F = 0, f = -f) : 15 < f && (F = 2, f -= 16), s < 1 || v < s || A !== c || f < 8 || 15 < f || R < 0 || 9 < R || k < 0 || o < k) return $(t, d);
|
|
1481
1483
|
f === 8 && (f = 9);
|
|
1482
1484
|
var P = new st();
|
|
1483
|
-
return (t.state = P).strm = t, P.wrap = F, P.gzhead = null, P.w_bits = f, P.w_size = 1 << P.w_bits, P.w_mask = P.w_size - 1, P.hash_bits = s + 7, P.hash_size = 1 << P.hash_bits, P.hash_mask = P.hash_size - 1, P.hash_shift = ~~((P.hash_bits + I - 1) / I), P.window = new
|
|
1485
|
+
return (t.state = P).strm = t, P.wrap = F, P.gzhead = null, P.w_bits = f, P.w_size = 1 << P.w_bits, P.w_mask = P.w_size - 1, P.hash_bits = s + 7, P.hash_size = 1 << P.hash_bits, P.hash_mask = P.hash_size - 1, P.hash_shift = ~~((P.hash_bits + I - 1) / I), P.window = new u.Buf8(2 * P.w_size), P.head = new u.Buf16(P.hash_size), P.prev = new u.Buf16(P.w_size), P.lit_bufsize = 1 << s + 6, P.pending_buf_size = 4 * P.lit_bufsize, P.pending_buf = new u.Buf8(P.pending_buf_size), P.d_buf = 1 * P.lit_bufsize, P.l_buf = 3 * P.lit_bufsize, P.level = R, P.strategy = k, P.method = A, ft(t);
|
|
1484
1486
|
}
|
|
1485
|
-
|
|
1487
|
+
l = [new et(0, 0, 0, 0, function(t, R) {
|
|
1486
1488
|
var A = 65535;
|
|
1487
1489
|
for (A > t.pending_buf_size - 5 && (A = t.pending_buf_size - 5); ; ) {
|
|
1488
1490
|
if (t.lookahead <= 1) {
|
|
@@ -1563,7 +1565,7 @@ function Tt() {
|
|
|
1563
1565
|
if (z.match_length >= I ? (K = n._tr_tally(z, 1, z.match_length - I), z.lookahead -= z.match_length, z.strstart += z.match_length, z.match_length = 0) : (K = n._tr_tally(z, 0, z.window[z.strstart]), z.lookahead--, z.strstart++), K && (C(z, !1), z.strm.avail_out === 0)) return e;
|
|
1564
1566
|
}
|
|
1565
1567
|
return z.insert = 0, Z === b ? (C(z, !0), z.strm.avail_out === 0 ? J : U) : z.last_lit && (C(z, !1), z.strm.avail_out === 0) ? e : T;
|
|
1566
|
-
})(f, R) :
|
|
1568
|
+
})(f, R) : l[f.level].func(f, R);
|
|
1567
1569
|
if (P !== J && P !== U || (f.status = 666), P === e || P === J) return t.avail_out === 0 && (f.last_flush = -1), i;
|
|
1568
1570
|
if (P === T && (R === 1 ? n._tr_align(f) : R !== 5 && (n._tr_stored_block(f, 0, 0, !1), R === 3 && (V(f.head), f.lookahead === 0 && (f.strstart = 0, f.block_start = 0, f.insert = 0))), E(t), t.avail_out === 0)) return f.last_flush = -1, i;
|
|
1569
1571
|
}
|
|
@@ -1574,7 +1576,7 @@ function Tt() {
|
|
|
1574
1576
|
}, w.deflateSetDictionary = function(t, R) {
|
|
1575
1577
|
var A, f, s, k, F, P, z, Z, K = R.length;
|
|
1576
1578
|
if (!t || !t.state || (k = (A = t.state).wrap) === 2 || k === 1 && A.status !== m || A.lookahead) return d;
|
|
1577
|
-
for (k === 1 && (t.adler = h(t.adler, R, K, 0)), A.wrap = 0, K >= A.w_size && (k === 0 && (V(A.head), A.strstart = 0, A.block_start = 0, A.insert = 0), Z = new
|
|
1579
|
+
for (k === 1 && (t.adler = h(t.adler, R, K, 0)), A.wrap = 0, K >= A.w_size && (k === 0 && (V(A.head), A.strstart = 0, A.block_start = 0, A.insert = 0), Z = new u.Buf8(A.w_size), u.arraySet(Z, R, K - A.w_size, A.w_size, 0), R = Z, K = A.w_size), F = t.avail_in, P = t.next_in, z = t.input, t.avail_in = K, t.next_in = 0, t.input = R, nt(A); A.lookahead >= I; ) {
|
|
1578
1580
|
for (f = A.strstart, s = A.lookahead - (I - 1); A.ins_h = (A.ins_h << A.hash_shift ^ A.window[f + I - 1]) & A.hash_mask, A.prev[f & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = f, f++, --s; ) ;
|
|
1579
1581
|
A.strstart = f, A.lookahead = I - 1, nt(A);
|
|
1580
1582
|
}
|
|
@@ -1585,9 +1587,9 @@ function Tt() {
|
|
|
1585
1587
|
this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = !1;
|
|
1586
1588
|
};
|
|
1587
1589
|
}, {}], 48: [function(_, N, w) {
|
|
1588
|
-
N.exports = function(
|
|
1589
|
-
var n, h, g, y, p, b, i, d, r,
|
|
1590
|
-
n =
|
|
1590
|
+
N.exports = function(l, u) {
|
|
1591
|
+
var n, h, g, y, p, b, i, d, r, o, a, c, v, S, x, D, O, j, I, W, q, m, B, e, T;
|
|
1592
|
+
n = l.state, h = l.next_in, e = l.input, g = h + (l.avail_in - 5), y = l.next_out, T = l.output, p = y - (u - l.avail_out), b = y + (l.avail_out - 257), i = n.dmax, d = n.wsize, r = n.whave, o = n.wnext, a = n.window, c = n.hold, v = n.bits, S = n.lencode, x = n.distcode, D = (1 << n.lenbits) - 1, O = (1 << n.distbits) - 1;
|
|
1591
1593
|
t: do {
|
|
1592
1594
|
v < 15 && (c += e[h++] << v, v += 8, c += e[h++] << v, v += 8), j = S[c & D];
|
|
1593
1595
|
e: for (; ; ) {
|
|
@@ -1602,7 +1604,7 @@ function Tt() {
|
|
|
1602
1604
|
n.mode = 12;
|
|
1603
1605
|
break t;
|
|
1604
1606
|
}
|
|
1605
|
-
|
|
1607
|
+
l.msg = "invalid literal/length code", n.mode = 30;
|
|
1606
1608
|
break t;
|
|
1607
1609
|
}
|
|
1608
1610
|
W = 65535 & j, (I &= 15) && (v < I && (c += e[h++] << v, v += 8), W += c & (1 << I) - 1, c >>>= I, v -= I), v < 15 && (c += e[h++] << v, v += 8, c += e[h++] << v, v += 8), j = x[c & O];
|
|
@@ -1612,32 +1614,32 @@ function Tt() {
|
|
|
1612
1614
|
j = x[(65535 & j) + (c & (1 << I) - 1)];
|
|
1613
1615
|
continue r;
|
|
1614
1616
|
}
|
|
1615
|
-
|
|
1617
|
+
l.msg = "invalid distance code", n.mode = 30;
|
|
1616
1618
|
break t;
|
|
1617
1619
|
}
|
|
1618
1620
|
if (q = 65535 & j, v < (I &= 15) && (c += e[h++] << v, (v += 8) < I && (c += e[h++] << v, v += 8)), i < (q += c & (1 << I) - 1)) {
|
|
1619
|
-
|
|
1621
|
+
l.msg = "invalid distance too far back", n.mode = 30;
|
|
1620
1622
|
break t;
|
|
1621
1623
|
}
|
|
1622
1624
|
if (c >>>= I, v -= I, (I = y - p) < q) {
|
|
1623
1625
|
if (r < (I = q - I) && n.sane) {
|
|
1624
|
-
|
|
1626
|
+
l.msg = "invalid distance too far back", n.mode = 30;
|
|
1625
1627
|
break t;
|
|
1626
1628
|
}
|
|
1627
|
-
if (B = a, (m = 0) ===
|
|
1629
|
+
if (B = a, (m = 0) === o) {
|
|
1628
1630
|
if (m += d - I, I < W) {
|
|
1629
1631
|
for (W -= I; T[y++] = a[m++], --I; ) ;
|
|
1630
1632
|
m = y - q, B = T;
|
|
1631
1633
|
}
|
|
1632
|
-
} else if (
|
|
1633
|
-
if (m += d +
|
|
1634
|
+
} else if (o < I) {
|
|
1635
|
+
if (m += d + o - I, (I -= o) < W) {
|
|
1634
1636
|
for (W -= I; T[y++] = a[m++], --I; ) ;
|
|
1635
|
-
if (m = 0,
|
|
1636
|
-
for (W -= I =
|
|
1637
|
+
if (m = 0, o < W) {
|
|
1638
|
+
for (W -= I = o; T[y++] = a[m++], --I; ) ;
|
|
1637
1639
|
m = y - q, B = T;
|
|
1638
1640
|
}
|
|
1639
1641
|
}
|
|
1640
|
-
} else if (m +=
|
|
1642
|
+
} else if (m += o - I, I < W) {
|
|
1641
1643
|
for (W -= I; T[y++] = a[m++], --I; ) ;
|
|
1642
1644
|
m = y - q, B = T;
|
|
1643
1645
|
}
|
|
@@ -1653,19 +1655,19 @@ function Tt() {
|
|
|
1653
1655
|
break;
|
|
1654
1656
|
}
|
|
1655
1657
|
} while (h < g && y < b);
|
|
1656
|
-
h -= W = v >> 3, c &= (1 << (v -= W << 3)) - 1,
|
|
1658
|
+
h -= W = v >> 3, c &= (1 << (v -= W << 3)) - 1, l.next_in = h, l.next_out = y, l.avail_in = h < g ? g - h + 5 : 5 - (h - g), l.avail_out = y < b ? b - y + 257 : 257 - (y - b), n.hold = c, n.bits = v;
|
|
1657
1659
|
};
|
|
1658
1660
|
}, {}], 49: [function(_, N, w) {
|
|
1659
|
-
var
|
|
1661
|
+
var l = _("../utils/common"), u = _("./adler32"), n = _("./crc32"), h = _("./inffast"), g = _("./inftrees"), y = 1, p = 2, b = 0, i = -2, d = 1, r = 852, o = 592;
|
|
1660
1662
|
function a(m) {
|
|
1661
1663
|
return (m >>> 24 & 255) + (m >>> 8 & 65280) + ((65280 & m) << 8) + ((255 & m) << 24);
|
|
1662
1664
|
}
|
|
1663
1665
|
function c() {
|
|
1664
|
-
this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new
|
|
1666
|
+
this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new l.Buf16(320), this.work = new l.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
|
|
1665
1667
|
}
|
|
1666
1668
|
function v(m) {
|
|
1667
1669
|
var B;
|
|
1668
|
-
return m && m.state ? (B = m.state, m.total_in = m.total_out = B.total = 0, m.msg = "", B.wrap && (m.adler = 1 & B.wrap), B.mode = d, B.last = 0, B.havedict = 0, B.dmax = 32768, B.head = null, B.hold = 0, B.bits = 0, B.lencode = B.lendyn = new
|
|
1670
|
+
return m && m.state ? (B = m.state, m.total_in = m.total_out = B.total = 0, m.msg = "", B.wrap && (m.adler = 1 & B.wrap), B.mode = d, B.last = 0, B.havedict = 0, B.dmax = 32768, B.head = null, B.hold = 0, B.bits = 0, B.lencode = B.lendyn = new l.Buf32(r), B.distcode = B.distdyn = new l.Buf32(o), B.sane = 1, B.back = -1, b) : i;
|
|
1669
1671
|
}
|
|
1670
1672
|
function S(m) {
|
|
1671
1673
|
var B;
|
|
@@ -1683,7 +1685,7 @@ function Tt() {
|
|
|
1683
1685
|
function W(m) {
|
|
1684
1686
|
if (I) {
|
|
1685
1687
|
var B;
|
|
1686
|
-
for (O = new
|
|
1688
|
+
for (O = new l.Buf32(512), j = new l.Buf32(32), B = 0; B < 144; ) m.lens[B++] = 8;
|
|
1687
1689
|
for (; B < 256; ) m.lens[B++] = 9;
|
|
1688
1690
|
for (; B < 280; ) m.lens[B++] = 7;
|
|
1689
1691
|
for (; B < 288; ) m.lens[B++] = 8;
|
|
@@ -1694,12 +1696,12 @@ function Tt() {
|
|
|
1694
1696
|
}
|
|
1695
1697
|
function q(m, B, e, T) {
|
|
1696
1698
|
var J, U = m.state;
|
|
1697
|
-
return U.window === null && (U.wsize = 1 << U.wbits, U.wnext = 0, U.whave = 0, U.window = new
|
|
1699
|
+
return U.window === null && (U.wsize = 1 << U.wbits, U.wnext = 0, U.whave = 0, U.window = new l.Buf8(U.wsize)), T >= U.wsize ? (l.arraySet(U.window, B, e - U.wsize, U.wsize, 0), U.wnext = 0, U.whave = U.wsize) : (T < (J = U.wsize - U.wnext) && (J = T), l.arraySet(U.window, B, e - T, J, U.wnext), (T -= J) ? (l.arraySet(U.window, B, e - T, T, 0), U.wnext = T, U.whave = U.wsize) : (U.wnext += J, U.wnext === U.wsize && (U.wnext = 0), U.whave < U.wsize && (U.whave += J))), 0;
|
|
1698
1700
|
}
|
|
1699
1701
|
w.inflateReset = S, w.inflateReset2 = x, w.inflateResetKeep = v, w.inflateInit = function(m) {
|
|
1700
1702
|
return D(m, 15);
|
|
1701
1703
|
}, w.inflateInit2 = D, w.inflate = function(m, B) {
|
|
1702
|
-
var e, T, J, U, $, L, V, E, C, X, G, H, nt, ot, Q, et, st, it, ft, lt, t, R, A, f, s = 0, k = new
|
|
1704
|
+
var e, T, J, U, $, L, V, E, C, X, G, H, nt, ot, Q, et, st, it, ft, lt, t, R, A, f, s = 0, k = new l.Buf8(4), F = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
1703
1705
|
if (!m || !m.state || !m.output || !m.input && m.avail_in !== 0) return i;
|
|
1704
1706
|
(e = m.state).mode === 12 && (e.mode = 13), $ = m.next_out, J = m.output, V = m.avail_out, U = m.next_in, T = m.input, L = m.avail_in, E = e.hold, C = e.bits, X = L, G = V, R = b;
|
|
1705
1707
|
t: for (; ; ) switch (e.mode) {
|
|
@@ -1767,7 +1769,7 @@ function Tt() {
|
|
|
1767
1769
|
} else e.head && (e.head.extra = null);
|
|
1768
1770
|
e.mode = 6;
|
|
1769
1771
|
case 6:
|
|
1770
|
-
if (1024 & e.flags && (L < (H = e.length) && (H = L), H && (e.head && (t = e.head.extra_len - e.length, e.head.extra || (e.head.extra = new Array(e.head.extra_len)),
|
|
1772
|
+
if (1024 & e.flags && (L < (H = e.length) && (H = L), H && (e.head && (t = e.head.extra_len - e.length, e.head.extra || (e.head.extra = new Array(e.head.extra_len)), l.arraySet(e.head.extra, T, U, H, t)), 512 & e.flags && (e.check = n(e.check, T, H, U)), L -= H, U += H, e.length -= H), e.length)) break t;
|
|
1771
1773
|
e.length = 0, e.mode = 7;
|
|
1772
1774
|
case 7:
|
|
1773
1775
|
if (2048 & e.flags) {
|
|
@@ -1848,7 +1850,7 @@ function Tt() {
|
|
|
1848
1850
|
case 16:
|
|
1849
1851
|
if (H = e.length) {
|
|
1850
1852
|
if (L < H && (H = L), V < H && (H = V), H === 0) break t;
|
|
1851
|
-
|
|
1853
|
+
l.arraySet(J, T, U, H, $), L -= H, U += H, V -= H, $ += H, e.length -= H;
|
|
1852
1854
|
break;
|
|
1853
1855
|
}
|
|
1854
1856
|
e.mode = 12;
|
|
@@ -2021,7 +2023,7 @@ function Tt() {
|
|
|
2021
2023
|
if (L === 0) break t;
|
|
2022
2024
|
L--, E |= T[U++] << C, C += 8;
|
|
2023
2025
|
}
|
|
2024
|
-
if (G -= V, m.total_out += G, e.total += G, G && (m.adler = e.check = e.flags ? n(e.check, J, G, $ - G) :
|
|
2026
|
+
if (G -= V, m.total_out += G, e.total += G, G && (m.adler = e.check = e.flags ? n(e.check, J, G, $ - G) : u(e.check, J, G, $ - G)), G = V, (e.flags ? E : a(E)) !== e.check) {
|
|
2025
2027
|
m.msg = "incorrect data check", e.mode = 30;
|
|
2026
2028
|
break;
|
|
2027
2029
|
}
|
|
@@ -2052,7 +2054,7 @@ function Tt() {
|
|
|
2052
2054
|
default:
|
|
2053
2055
|
return i;
|
|
2054
2056
|
}
|
|
2055
|
-
return m.next_out = $, m.avail_out = V, m.next_in = U, m.avail_in = L, e.hold = E, e.bits = C, (e.wsize || G !== m.avail_out && e.mode < 30 && (e.mode < 27 || B !== 4)) && q(m, m.output, m.next_out, G - m.avail_out) ? (e.mode = 31, -4) : (X -= m.avail_in, G -= m.avail_out, m.total_in += X, m.total_out += G, e.total += G, e.wrap && G && (m.adler = e.check = e.flags ? n(e.check, J, G, m.next_out - G) :
|
|
2057
|
+
return m.next_out = $, m.avail_out = V, m.next_in = U, m.avail_in = L, e.hold = E, e.bits = C, (e.wsize || G !== m.avail_out && e.mode < 30 && (e.mode < 27 || B !== 4)) && q(m, m.output, m.next_out, G - m.avail_out) ? (e.mode = 31, -4) : (X -= m.avail_in, G -= m.avail_out, m.total_in += X, m.total_out += G, e.total += G, e.wrap && G && (m.adler = e.check = e.flags ? n(e.check, J, G, m.next_out - G) : u(e.check, J, G, m.next_out - G)), m.data_type = e.bits + (e.last ? 64 : 0) + (e.mode === 12 ? 128 : 0) + (e.mode === 20 || e.mode === 15 ? 256 : 0), (X == 0 && G === 0 || B === 4) && R === b && (R = -5), R);
|
|
2056
2058
|
}, w.inflateEnd = function(m) {
|
|
2057
2059
|
if (!m || !m.state) return i;
|
|
2058
2060
|
var B = m.state;
|
|
@@ -2062,12 +2064,12 @@ function Tt() {
|
|
|
2062
2064
|
return m && m.state ? (2 & (e = m.state).wrap) == 0 ? i : ((e.head = B).done = !1, b) : i;
|
|
2063
2065
|
}, w.inflateSetDictionary = function(m, B) {
|
|
2064
2066
|
var e, T = B.length;
|
|
2065
|
-
return m && m.state ? (e = m.state).wrap !== 0 && e.mode !== 11 ? i : e.mode === 11 &&
|
|
2067
|
+
return m && m.state ? (e = m.state).wrap !== 0 && e.mode !== 11 ? i : e.mode === 11 && u(1, B, T, 0) !== e.check ? -3 : q(m, B, T, T) ? (e.mode = 31, -4) : (e.havedict = 1, b) : i;
|
|
2066
2068
|
}, w.inflateInfo = "pako inflate (from Nodeca project)";
|
|
2067
2069
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(_, N, w) {
|
|
2068
|
-
var
|
|
2069
|
-
N.exports = function(y, p, b, i, d, r,
|
|
2070
|
-
var c, v, S, x, D, O, j, I, W, q = a.bits, m = 0, B = 0, e = 0, T = 0, J = 0, U = 0, $ = 0, L = 0, V = 0, E = 0, C = null, X = 0, G = new
|
|
2070
|
+
var l = _("../utils/common"), u = [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], n = [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], h = [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], g = [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];
|
|
2071
|
+
N.exports = function(y, p, b, i, d, r, o, a) {
|
|
2072
|
+
var c, v, S, x, D, O, j, I, W, q = a.bits, m = 0, B = 0, e = 0, T = 0, J = 0, U = 0, $ = 0, L = 0, V = 0, E = 0, C = null, X = 0, G = new l.Buf16(16), H = new l.Buf16(16), nt = null, ot = 0;
|
|
2071
2073
|
for (m = 0; m <= 15; m++) G[m] = 0;
|
|
2072
2074
|
for (B = 0; B < i; B++) G[p[b + B]]++;
|
|
2073
2075
|
for (J = q, T = 15; 1 <= T && G[T] === 0; T--) ;
|
|
@@ -2076,14 +2078,14 @@ function Tt() {
|
|
|
2076
2078
|
for (J < e && (J = e), m = L = 1; m <= 15; m++) if (L <<= 1, (L -= G[m]) < 0) return -1;
|
|
2077
2079
|
if (0 < L && (y === 0 || T !== 1)) return -1;
|
|
2078
2080
|
for (H[1] = 0, m = 1; m < 15; m++) H[m + 1] = H[m] + G[m];
|
|
2079
|
-
for (B = 0; B < i; B++) p[b + B] !== 0 && (
|
|
2080
|
-
if (O = y === 0 ? (C = nt =
|
|
2081
|
+
for (B = 0; B < i; B++) p[b + B] !== 0 && (o[H[p[b + B]]++] = B);
|
|
2082
|
+
if (O = y === 0 ? (C = nt = o, 19) : y === 1 ? (C = u, X -= 257, nt = n, ot -= 257, 256) : (C = h, nt = g, -1), m = e, D = r, $ = B = E = 0, S = -1, x = (V = 1 << (U = J)) - 1, y === 1 && 852 < V || y === 2 && 592 < V) return 1;
|
|
2081
2083
|
for (; ; ) {
|
|
2082
|
-
for (j = m - $, W =
|
|
2084
|
+
for (j = m - $, W = o[B] < O ? (I = 0, o[B]) : o[B] > O ? (I = nt[ot + o[B]], C[X + o[B]]) : (I = 96, 0), c = 1 << m - $, e = v = 1 << U; d[D + (E >> $) + (v -= c)] = j << 24 | I << 16 | W | 0, v !== 0; ) ;
|
|
2083
2085
|
for (c = 1 << m - 1; E & c; ) c >>= 1;
|
|
2084
2086
|
if (c !== 0 ? (E &= c - 1, E += c) : E = 0, B++, --G[m] == 0) {
|
|
2085
2087
|
if (m === T) break;
|
|
2086
|
-
m = p[b +
|
|
2088
|
+
m = p[b + o[B]];
|
|
2087
2089
|
}
|
|
2088
2090
|
if (J < m && (E & x) !== S) {
|
|
2089
2091
|
for ($ === 0 && ($ = J), D += e, L = 1 << (U = m - $); U + $ < T && !((L -= G[U + $]) <= 0); ) U++, L <<= 1;
|
|
@@ -2096,11 +2098,11 @@ function Tt() {
|
|
|
2096
2098
|
}, { "../utils/common": 41 }], 51: [function(_, N, w) {
|
|
2097
2099
|
N.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" };
|
|
2098
2100
|
}, {}], 52: [function(_, N, w) {
|
|
2099
|
-
var
|
|
2101
|
+
var l = _("../utils/common"), u = 0, n = 1;
|
|
2100
2102
|
function h(s) {
|
|
2101
2103
|
for (var k = s.length; 0 <= --k; ) s[k] = 0;
|
|
2102
2104
|
}
|
|
2103
|
-
var g = 0, y = 29, p = 256, b = p + 1 + y, i = 30, d = 19, r = 2 * b + 1,
|
|
2105
|
+
var g = 0, y = 29, p = 256, b = p + 1 + y, i = 30, d = 19, r = 2 * b + 1, o = 15, a = 16, c = 7, v = 256, S = 16, x = 17, D = 18, O = [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], j = [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], I = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], W = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], q = new Array(2 * (b + 2));
|
|
2104
2106
|
h(q);
|
|
2105
2107
|
var m = new Array(2 * i);
|
|
2106
2108
|
h(m);
|
|
@@ -2134,8 +2136,8 @@ function Tt() {
|
|
|
2134
2136
|
return F >>> 1;
|
|
2135
2137
|
}
|
|
2136
2138
|
function ot(s, k, F) {
|
|
2137
|
-
var P, z, Z = new Array(
|
|
2138
|
-
for (P = 1; P <=
|
|
2139
|
+
var P, z, Z = new Array(o + 1), K = 0;
|
|
2140
|
+
for (P = 1; P <= o; P++) Z[P] = K = K + F[P - 1] << 1;
|
|
2139
2141
|
for (z = 0; z <= k; z++) {
|
|
2140
2142
|
var M = s[2 * z + 1];
|
|
2141
2143
|
M !== 0 && (s[2 * z] = nt(Z[M]++, M));
|
|
@@ -2172,7 +2174,7 @@ function Tt() {
|
|
|
2172
2174
|
for (z = Y; F = s.heap[1], s.heap[1] = s.heap[s.heap_len--], it(s, Z, 1), P = s.heap[1], s.heap[--s.heap_max] = F, s.heap[--s.heap_max] = P, Z[2 * z] = Z[2 * F] + Z[2 * P], s.depth[z] = (s.depth[F] >= s.depth[P] ? s.depth[F] : s.depth[P]) + 1, Z[2 * F + 1] = Z[2 * P + 1] = z, s.heap[1] = z++, it(s, Z, 1), 2 <= s.heap_len; ) ;
|
|
2173
2175
|
s.heap[--s.heap_max] = s.heap[1], (function(tt, ht) {
|
|
2174
2176
|
var pt, dt, mt, at, gt, kt, ct = ht.dyn_tree, St = ht.max_code, At = ht.stat_desc.static_tree, It = ht.stat_desc.has_stree, Ot = ht.stat_desc.extra_bits, zt = ht.stat_desc.extra_base, _t = ht.stat_desc.max_length, bt = 0;
|
|
2175
|
-
for (at = 0; at <=
|
|
2177
|
+
for (at = 0; at <= o; at++) tt.bl_count[at] = 0;
|
|
2176
2178
|
for (ct[2 * tt.heap[tt.heap_max] + 1] = 0, pt = tt.heap_max + 1; pt < r; pt++) _t < (at = ct[2 * ct[2 * (dt = tt.heap[pt]) + 1] + 1] + 1) && (at = _t, bt++), ct[2 * dt + 1] = at, St < dt || (tt.bl_count[at]++, gt = 0, zt <= dt && (gt = Ot[dt - zt]), kt = ct[2 * dt], tt.opt_len += kt * (at + gt), It && (tt.static_len += kt * (At[2 * dt + 1] + gt)));
|
|
2177
2179
|
if (bt !== 0) {
|
|
2178
2180
|
do {
|
|
@@ -2199,31 +2201,31 @@ function Tt() {
|
|
|
2199
2201
|
var A = !1;
|
|
2200
2202
|
function f(s, k, F, P) {
|
|
2201
2203
|
G(s, (g << 1) + (P ? 1 : 0), 3), (function(z, Z, K, M) {
|
|
2202
|
-
et(z), X(z, K), X(z, ~K),
|
|
2204
|
+
et(z), X(z, K), X(z, ~K), l.arraySet(z.pending_buf, z.window, Z, K, z.pending), z.pending += K;
|
|
2203
2205
|
})(s, k, F);
|
|
2204
2206
|
}
|
|
2205
2207
|
w._tr_init = function(s) {
|
|
2206
2208
|
A || ((function() {
|
|
2207
|
-
var k, F, P, z, Z, K = new Array(
|
|
2209
|
+
var k, F, P, z, Z, K = new Array(o + 1);
|
|
2208
2210
|
for (z = P = 0; z < y - 1; z++) for (T[z] = P, k = 0; k < 1 << O[z]; k++) e[P++] = z;
|
|
2209
2211
|
for (e[P - 1] = z, z = Z = 0; z < 16; z++) for (L[z] = Z, k = 0; k < 1 << j[z]; k++) B[Z++] = z;
|
|
2210
2212
|
for (Z >>= 7; z < i; z++) for (L[z] = Z << 7, k = 0; k < 1 << j[z] - 7; k++) B[256 + Z++] = z;
|
|
2211
|
-
for (F = 0; F <=
|
|
2213
|
+
for (F = 0; F <= o; F++) K[F] = 0;
|
|
2212
2214
|
for (k = 0; k <= 143; ) q[2 * k + 1] = 8, k++, K[8]++;
|
|
2213
2215
|
for (; k <= 255; ) q[2 * k + 1] = 9, k++, K[9]++;
|
|
2214
2216
|
for (; k <= 279; ) q[2 * k + 1] = 7, k++, K[7]++;
|
|
2215
2217
|
for (; k <= 287; ) q[2 * k + 1] = 8, k++, K[8]++;
|
|
2216
2218
|
for (ot(q, b + 1, K), k = 0; k < i; k++) m[2 * k + 1] = 5, m[2 * k] = nt(k, 5);
|
|
2217
|
-
J = new V(q, O, p + 1, b,
|
|
2219
|
+
J = new V(q, O, p + 1, b, o), U = new V(m, j, 0, i, o), $ = new V(new Array(0), I, 0, d, c);
|
|
2218
2220
|
})(), A = !0), s.l_desc = new E(s.dyn_ltree, J), s.d_desc = new E(s.dyn_dtree, U), s.bl_desc = new E(s.bl_tree, $), s.bi_buf = 0, s.bi_valid = 0, Q(s);
|
|
2219
2221
|
}, w._tr_stored_block = f, w._tr_flush_block = function(s, k, F, P) {
|
|
2220
2222
|
var z, Z, K = 0;
|
|
2221
2223
|
0 < s.level ? (s.strm.data_type === 2 && (s.strm.data_type = (function(M) {
|
|
2222
2224
|
var Y, rt = 4093624447;
|
|
2223
|
-
for (Y = 0; Y <= 31; Y++, rt >>>= 1) if (1 & rt && M.dyn_ltree[2 * Y] !== 0) return
|
|
2225
|
+
for (Y = 0; Y <= 31; Y++, rt >>>= 1) if (1 & rt && M.dyn_ltree[2 * Y] !== 0) return u;
|
|
2224
2226
|
if (M.dyn_ltree[18] !== 0 || M.dyn_ltree[20] !== 0 || M.dyn_ltree[26] !== 0) return n;
|
|
2225
2227
|
for (Y = 32; Y < p; Y++) if (M.dyn_ltree[2 * Y] !== 0) return n;
|
|
2226
|
-
return
|
|
2228
|
+
return u;
|
|
2227
2229
|
})(s)), lt(s, s.l_desc), lt(s, s.d_desc), K = (function(M) {
|
|
2228
2230
|
var Y;
|
|
2229
2231
|
for (t(M, M.dyn_ltree, M.l_desc.max_code), t(M, M.dyn_dtree, M.d_desc.max_code), lt(M, M.bl_desc), Y = d - 1; 3 <= Y && M.bl_tree[2 * W[Y] + 1] === 0; Y--) ;
|
|
@@ -2245,24 +2247,24 @@ function Tt() {
|
|
|
2245
2247
|
this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
|
|
2246
2248
|
};
|
|
2247
2249
|
}, {}], 54: [function(_, N, w) {
|
|
2248
|
-
(function(
|
|
2249
|
-
(function(
|
|
2250
|
-
if (!
|
|
2251
|
-
var h, g, y, p, b = 1, i = {}, d = !1, r =
|
|
2252
|
-
|
|
2250
|
+
(function(l) {
|
|
2251
|
+
(function(u, n) {
|
|
2252
|
+
if (!u.setImmediate) {
|
|
2253
|
+
var h, g, y, p, b = 1, i = {}, d = !1, r = u.document, o = Object.getPrototypeOf && Object.getPrototypeOf(u);
|
|
2254
|
+
o = o && o.setTimeout ? o : u, h = {}.toString.call(u.process) === "[object process]" ? function(S) {
|
|
2253
2255
|
process.nextTick(function() {
|
|
2254
2256
|
c(S);
|
|
2255
2257
|
});
|
|
2256
2258
|
} : (function() {
|
|
2257
|
-
if (
|
|
2258
|
-
var S = !0, x =
|
|
2259
|
-
return
|
|
2259
|
+
if (u.postMessage && !u.importScripts) {
|
|
2260
|
+
var S = !0, x = u.onmessage;
|
|
2261
|
+
return u.onmessage = function() {
|
|
2260
2262
|
S = !1;
|
|
2261
|
-
},
|
|
2263
|
+
}, u.postMessage("", "*"), u.onmessage = x, S;
|
|
2262
2264
|
}
|
|
2263
|
-
})() ? (p = "setImmediate$" + Math.random() + "$",
|
|
2264
|
-
|
|
2265
|
-
}) :
|
|
2265
|
+
})() ? (p = "setImmediate$" + Math.random() + "$", u.addEventListener ? u.addEventListener("message", v, !1) : u.attachEvent("onmessage", v), function(S) {
|
|
2266
|
+
u.postMessage(p + S, "*");
|
|
2267
|
+
}) : u.MessageChannel ? ((y = new MessageChannel()).port1.onmessage = function(S) {
|
|
2266
2268
|
c(S.data);
|
|
2267
2269
|
}, function(S) {
|
|
2268
2270
|
y.port2.postMessage(S);
|
|
@@ -2273,12 +2275,12 @@ function Tt() {
|
|
|
2273
2275
|
}, g.appendChild(x);
|
|
2274
2276
|
}) : function(S) {
|
|
2275
2277
|
setTimeout(c, 0, S);
|
|
2276
|
-
},
|
|
2278
|
+
}, o.setImmediate = function(S) {
|
|
2277
2279
|
typeof S != "function" && (S = new Function("" + S));
|
|
2278
2280
|
for (var x = new Array(arguments.length - 1), D = 0; D < x.length; D++) x[D] = arguments[D + 1];
|
|
2279
2281
|
var O = { callback: S, args: x };
|
|
2280
2282
|
return i[b] = O, h(b), b++;
|
|
2281
|
-
},
|
|
2283
|
+
}, o.clearImmediate = a;
|
|
2282
2284
|
}
|
|
2283
2285
|
function a(S) {
|
|
2284
2286
|
delete i[S];
|
|
@@ -2316,9 +2318,9 @@ function Tt() {
|
|
|
2316
2318
|
}
|
|
2317
2319
|
}
|
|
2318
2320
|
function v(S) {
|
|
2319
|
-
S.source ===
|
|
2321
|
+
S.source === u && typeof S.data == "string" && S.data.indexOf(p) === 0 && c(+S.data.slice(p.length));
|
|
2320
2322
|
}
|
|
2321
|
-
})(typeof self > "u" ?
|
|
2323
|
+
})(typeof self > "u" ? l === void 0 ? this : l : self);
|
|
2322
2324
|
}).call(this, typeof vt < "u" ? vt : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2323
2325
|
}, {}] }, {}, [10])(10);
|
|
2324
2326
|
});
|
|
@@ -2332,4 +2334,4 @@ const Dt = /* @__PURE__ */ Rt(Et), Ft = /* @__PURE__ */ Bt({
|
|
|
2332
2334
|
export {
|
|
2333
2335
|
Ft as j
|
|
2334
2336
|
};
|
|
2335
|
-
//# sourceMappingURL=jszip.min-
|
|
2337
|
+
//# sourceMappingURL=jszip.min-BNqdRFyY.js.map
|