@eternalheart/vue-file-preview 1.6.13 → 1.7.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 +2 -0
- package/README.zh-CN.md +2 -0
- package/lib/FilePreviewContent.vue.d.ts +17 -6
- package/lib/FilePreviewEmbed.vue.d.ts +14 -6
- package/lib/FilePreviewModal.vue.d.ts +14 -6
- package/lib/chunks/{EmptyState.vue_vue_type_script_setup_true_lang-C7qk6wj0.mjs → EmptyState.vue_vue_type_script_setup_true_lang--ZOobbGi.mjs} +1 -1
- package/lib/chunks/{avifLoader-CAUzjn-d-C0KRpetN.mjs → avifLoader-CAUzjn-d-CnJpGYJ2.mjs} +1 -1
- package/lib/chunks/{heicLoader-D_9PukkA-Czof_5FJ.mjs → heicLoader-D_9PukkA-g_dLrWLP.mjs} +1 -1
- package/lib/chunks/index-6XZXYqbp.mjs +125 -0
- package/lib/chunks/{index-B21EAyWz.mjs → index-BPSzwMOC.mjs} +51 -51
- package/lib/chunks/index-BYQ9S7Mk.mjs +104 -0
- package/lib/chunks/{index-8Vpbg2kS.mjs → index-Bf94DwQu.mjs} +105 -104
- package/lib/chunks/index-BfOWoMpY.mjs +359 -0
- package/lib/chunks/index-Bg8poMIm.mjs +117 -0
- package/lib/chunks/index-BzwJ0VWu.mjs +108 -0
- package/lib/chunks/index-C41YET0_.mjs +51 -0
- package/lib/chunks/{index-BvBqDq3O.mjs → index-C4hIk6pa.mjs} +2023 -2023
- package/lib/chunks/{index-BASg1cr4.mjs → index-C8lyQPe3.mjs} +1018 -1018
- package/lib/chunks/{index-C9mAajbD.mjs → index-CWPdNhoe.mjs} +200 -200
- package/lib/chunks/{index-BuqPb5mP.mjs → index-CrVQPnFj.mjs} +112 -112
- package/lib/chunks/{index-D30L8tm9.mjs → index-D5IF9F-D.mjs} +57 -57
- package/lib/chunks/{index-DN4Ui0Gh.mjs → index-DFeKS8tR.mjs} +120 -120
- package/lib/chunks/index-DM8Dfl-m.mjs +52 -0
- package/lib/chunks/index-DZe0BxAB.mjs +90 -0
- package/lib/chunks/{index-BlrFFeqc.mjs → index-GFcSJEwj.mjs} +75 -75
- package/lib/chunks/{index-Dkro_8Fy.mjs → index-LPGxJDnT.mjs} +32 -32
- package/lib/chunks/index-aKiIuKKx.mjs +157 -0
- package/lib/chunks/{index-DZZN3kYi.mjs → index-c-pYJEmH.mjs} +1589 -1394
- package/lib/chunks/{index-CxKZKUJj.mjs → index-z9RqL2wI.mjs} +1651 -1651
- package/lib/chunks/index-zLQlyNR2.mjs +383 -0
- package/lib/chunks/{jp2Loader-Dig19xyo-CKUaGhPl.mjs → jp2Loader-Dig19xyo-fCO1knZ0.mjs} +1 -1
- package/lib/chunks/{psdLoader-C0tKUXXl-CYWoQis5.mjs → psdLoader-C0tKUXXl-DihMskai.mjs} +1 -1
- package/lib/chunks/{rawLoader-C-tPeFAB-C35zC8nZ.mjs → rawLoader-C-tPeFAB-BSfDPl-z.mjs} +5 -5
- package/lib/chunks/{tiffLoader-BlhByX8w-BOxg_Du5.mjs → tiffLoader-BlhByX8w-JY5DaTre.mjs} +1 -1
- package/lib/chunks/{useShikiHighlight-BPmcxA-h.mjs → useShikiHighlight-C-ztcJBE.mjs} +1 -1
- package/lib/composables/useAudioPlayer.d.ts +1 -1
- package/lib/composables/usePreviewEvents.d.ts +27 -0
- package/lib/composables/useRequest.d.ts +16 -4
- package/lib/composables/useThemeMode.d.ts +1 -1
- package/lib/composables/useTranslator.d.ts +2 -2
- package/lib/core/events.d.ts +52 -0
- package/lib/core/i18n/index.d.ts +29 -0
- package/lib/core/i18n/messages/en-US.d.ts +5 -0
- package/lib/core/i18n/messages/index.d.ts +9 -0
- package/lib/core/i18n/messages/zh-CN.d.ts +5 -0
- package/lib/core/i18n/types.d.ts +23 -0
- package/lib/core/index.d.ts +34 -0
- package/lib/core/loaders/avifLoader.d.ts +22 -0
- package/lib/core/loaders/heicLoader.d.ts +21 -0
- package/lib/core/loaders/jp2Loader.d.ts +16 -0
- package/lib/core/loaders/jp2Worker.d.ts +1 -0
- package/lib/core/loaders/psdLoader.d.ts +14 -0
- package/lib/core/loaders/rawLoader.d.ts +14 -0
- package/lib/core/loaders/registry.d.ts +32 -0
- package/lib/core/loaders/tiffLoader.d.ts +28 -0
- package/lib/core/loaders/types.d.ts +56 -0
- package/lib/core/types.d.ts +89 -0
- package/lib/core/utils/csvParser.d.ts +31 -0
- package/lib/core/utils/emptyState.d.ts +28 -0
- package/lib/core/utils/excelDataConverter.d.ts +61 -0
- package/lib/core/utils/fileNormalizer.d.ts +21 -0
- package/lib/core/utils/fileType.d.ts +21 -0
- package/lib/core/utils/legacy-office/doc.d.ts +25 -0
- package/lib/core/utils/legacy-office/index.d.ts +8 -0
- package/lib/core/utils/legacy-office/ole.d.ts +8 -0
- package/lib/core/utils/legacy-office/ppt.d.ts +79 -0
- package/lib/core/utils/legacy-office/xls.d.ts +28 -0
- package/lib/core/utils/mimeTypes.d.ts +29 -0
- package/lib/core/utils/ooxml/docx.d.ts +17 -0
- package/lib/core/utils/ooxml/index.d.ts +4 -0
- package/lib/core/utils/ooxml/pptx.d.ts +7 -0
- package/lib/core/utils/ooxml/xml.d.ts +15 -0
- package/lib/core/utils/ooxml/zip.d.ts +3 -0
- package/lib/core/utils/pdfWorker.d.ts +61 -0
- package/lib/core/utils/previewMode.d.ts +7 -0
- package/lib/core/utils/request.d.ts +49 -0
- package/lib/core/utils/subtitleParser.d.ts +44 -0
- package/lib/core/utils/textDecoder.d.ts +30 -0
- package/lib/core/utils/uint8ArrayPolyfill.d.ts +18 -0
- package/lib/core/utils/zipReader.d.ts +51 -0
- package/lib/core/workers/imageDecoder.worker.d.ts +31 -0
- package/lib/core/workers/workerClient.d.ts +14 -0
- package/lib/i18n/localeKey.d.ts +1 -1
- package/lib/index.cjs +60 -60
- package/lib/index.css +1 -1
- package/lib/index.d.ts +11 -9
- package/lib/index.mjs +15 -12
- package/lib/renderers/Audio/index.vue.d.ts +1 -1
- package/lib/renderers/Cad/index.vue.d.ts +1 -1
- package/lib/renderers/Cad/toolbar.d.ts +2 -2
- package/lib/renderers/Csv/index.vue.d.ts +1 -1
- package/lib/renderers/Doc/index.vue.d.ts +1 -1
- package/lib/renderers/Docx/index.vue.d.ts +1 -1
- package/lib/renderers/Epub/index.vue.d.ts +1 -1
- package/lib/renderers/Font/index.vue.d.ts +1 -1
- package/lib/renderers/Image/index.vue.d.ts +2 -2
- package/lib/renderers/Json/index.vue.d.ts +2 -2
- package/lib/renderers/Markdown/index.vue.d.ts +1 -1
- package/lib/renderers/Mobi/index.vue.d.ts +1 -1
- package/lib/renderers/Msg/index.vue.d.ts +1 -1
- package/lib/renderers/Pdf/index.vue.d.ts +1 -1
- package/lib/renderers/Ppt/index.vue.d.ts +1 -1
- package/lib/renderers/Pptx/index.vue.d.ts +2 -2
- package/lib/renderers/Subtitle/index.vue.d.ts +1 -1
- package/lib/renderers/Text/index.vue.d.ts +2 -2
- package/lib/renderers/Unsupported/index.vue.d.ts +1 -1
- package/lib/renderers/Video/index.vue.d.ts +1 -1
- package/lib/renderers/Xlsx/index.vue.d.ts +2 -2
- package/lib/renderers/Xml/index.vue.d.ts +1 -1
- package/lib/renderers/Zip/TreeItem.vue.d.ts +1 -1
- package/lib/renderers/Zip/index.vue.d.ts +1 -1
- package/lib/renderers/base.types.d.ts +1 -1
- package/lib/renderers/registry.d.ts +1 -1
- package/lib/types.d.ts +3 -3
- package/package.json +2 -2
- package/lib/chunks/index--612Smof.mjs +0 -383
- package/lib/chunks/index-BB0i4QqI.mjs +0 -117
- package/lib/chunks/index-BVdrGK3Q.mjs +0 -356
- package/lib/chunks/index-Bp9CuvMZ.mjs +0 -157
- package/lib/chunks/index-Bxpf9v5j.mjs +0 -104
- package/lib/chunks/index-CDg6vIbT.mjs +0 -51
- package/lib/chunks/index-CWE-hKSs.mjs +0 -90
- package/lib/chunks/index-CY3xzGgt.mjs +0 -108
- package/lib/chunks/index-VdzIFJJW.mjs +0 -118
- package/lib/chunks/index-aoXgVLBb.mjs +0 -52
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as er, ref as qe, watch as tr, computed as te, openBlock as J, createElementBlock as Q, createElementVNode as
|
|
2
|
-
import { u as cr,
|
|
3
|
-
import { User as
|
|
4
|
-
import { _ as
|
|
1
|
+
import { defineComponent as er, ref as qe, watch as tr, computed as te, openBlock as J, createElementBlock as Q, createElementVNode as F, toDisplayString as ne, unref as ae, createBlock as rr, createVNode as he, createCommentVNode as oe, normalizeStyle as ir, Fragment as nr, renderList as ar, createTextVNode as sr, normalizeClass as or } from "vue";
|
|
2
|
+
import { u as cr, a as fr, b as ur, J as hr, e as lr } from "./index-c-pYJEmH.mjs";
|
|
3
|
+
import { User as dr, Users as Ve, Calendar as mt, Clock as Et, Tag as gt, Mail as pr, Paperclip as yr, Hash as br } from "lucide-vue-next";
|
|
4
|
+
import { _ as vr } from "./RendererError.vue_vue_type_script_setup_true_lang-FmkMQHB8.mjs";
|
|
5
5
|
var fe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
6
|
-
function
|
|
6
|
+
function mr(e) {
|
|
7
7
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function Er(e) {
|
|
10
10
|
if (e.__esModule) return e;
|
|
11
11
|
var t = e.default;
|
|
12
12
|
if (typeof t == "function") {
|
|
@@ -27,18 +27,18 @@ function mr(e) {
|
|
|
27
27
|
}
|
|
28
28
|
var Vt = {}, nt = {}, Fe = {}, re = {};
|
|
29
29
|
Object.defineProperty(re, "__esModule", { value: !0 });
|
|
30
|
-
re.arraysEqual =
|
|
31
|
-
re.uInt2int =
|
|
32
|
-
re.toHexStr =
|
|
30
|
+
re.arraysEqual = gr;
|
|
31
|
+
re.uInt2int = _r;
|
|
32
|
+
re.toHexStr = wr;
|
|
33
33
|
re.toHex1 = ee;
|
|
34
|
-
re.toHex2 =
|
|
35
|
-
re.toHex4 =
|
|
36
|
-
re.msftUuidStringify =
|
|
37
|
-
re.emptyToNull =
|
|
38
|
-
re.readSystemTime =
|
|
39
|
-
re.readTransitionSystemTime =
|
|
40
|
-
re.bin2HexUpper =
|
|
41
|
-
function
|
|
34
|
+
re.toHex2 = Ar;
|
|
35
|
+
re.toHex4 = xr;
|
|
36
|
+
re.msftUuidStringify = Ir;
|
|
37
|
+
re.emptyToNull = Tr;
|
|
38
|
+
re.readSystemTime = Sr;
|
|
39
|
+
re.readTransitionSystemTime = Br;
|
|
40
|
+
re.bin2HexUpper = Ur;
|
|
41
|
+
function gr(e, t) {
|
|
42
42
|
if (e === t)
|
|
43
43
|
return !0;
|
|
44
44
|
if (e == null || t == null || e.length != t.length)
|
|
@@ -48,12 +48,12 @@ function Er(e, t) {
|
|
|
48
48
|
return !1;
|
|
49
49
|
return !0;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function _r(e) {
|
|
52
52
|
for (var t = new Array(e.length), a = 0; a < e.length; a++)
|
|
53
53
|
t[a] = e[a] << 24 >> 24;
|
|
54
54
|
return t;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function wr(e, t) {
|
|
57
57
|
for (var a = ""; e != 0; )
|
|
58
58
|
a = "0123456789abcdef"[e & 15] + a, e >>= 4, a = "0123456789abcdef"[e & 15] + a, e >>= 4;
|
|
59
59
|
for (; a.length < t; )
|
|
@@ -64,22 +64,22 @@ var ce = "0123456789abcdef";
|
|
|
64
64
|
function ee(e) {
|
|
65
65
|
return ce[e >> 4 & 15] + ce[e & 15];
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function Ar(e) {
|
|
68
68
|
return ce[e >> 12 & 15] + ce[e >> 8 & 15] + ce[e >> 4 & 15] + ce[e & 15];
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function xr(e) {
|
|
71
71
|
return ce[e >> 28 & 15] + ce[e >> 24 & 15] + ce[e >> 20 & 15] + ce[e >> 16 & 15] + ce[e >> 12 & 15] + ce[e >> 8 & 15] + ce[e >> 4 & 15] + ce[e & 15];
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function Ir(e, t) {
|
|
74
74
|
return "" + ee(e[t + 3]) + ee(e[t + 2]) + ee(e[t + 1]) + ee(e[t + 0]) + "-" + ee(e[t + 5]) + ee(e[t + 4]) + "-" + ee(e[t + 7]) + ee(e[t + 6]) + "-" + ee(e[t + 8]) + ee(e[t + 9]) + "-" + ee(e[t + 10]) + ee(e[t + 11]) + ee(e[t + 12]) + ee(e[t + 13]) + ee(e[t + 14]) + ee(e[t + 15]);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Tr(e) {
|
|
77
77
|
return e === "" ? null : e;
|
|
78
78
|
}
|
|
79
79
|
function Ie(e, t) {
|
|
80
80
|
return ("" + e).padStart(t, "0");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Sr(e) {
|
|
83
83
|
var t = e.readUint16(), a = e.readUint16();
|
|
84
84
|
e.readUint16();
|
|
85
85
|
var n = e.readUint16(), c = e.readUint16(), u = e.readUint16(), f = e.readUint16();
|
|
@@ -87,7 +87,7 @@ function Tr(e) {
|
|
|
87
87
|
var s = "".concat(Ie(t, 4), "-").concat(Ie(a, 2), "-").concat(Ie(n, 2), "T").concat(Ie(c, 2), ":").concat(Ie(u, 2), ":").concat(Ie(f, 2), "Z");
|
|
88
88
|
return s === "0000-00-00T00:00:00Z" ? null : new Date(s);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function Br(e) {
|
|
91
91
|
var t = e.readUint16(), a = e.readUint16(), n = e.readUint16(), c = e.readUint16(), u = e.readUint16(), f = e.readUint16();
|
|
92
92
|
return e.readUint16(), e.readUint16(), {
|
|
93
93
|
year: t,
|
|
@@ -98,15 +98,15 @@ function Sr(e) {
|
|
|
98
98
|
minute: f
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function Ur(e) {
|
|
102
102
|
for (var t = ""; !e.isEof(); )
|
|
103
103
|
t += ee(e.readUint8());
|
|
104
104
|
return t.toUpperCase();
|
|
105
105
|
}
|
|
106
106
|
Object.defineProperty(Fe, "__esModule", { value: !0 });
|
|
107
|
-
var
|
|
107
|
+
var Nr = re;
|
|
108
108
|
Fe.default = {
|
|
109
|
-
FILE_HEADER: (0,
|
|
109
|
+
FILE_HEADER: (0, Nr.uInt2int)([208, 207, 17, 224, 161, 177, 26, 225]),
|
|
110
110
|
MSG: {
|
|
111
111
|
UNUSED_BLOCK: -1,
|
|
112
112
|
END_OF_CHAIN: -2,
|
|
@@ -295,11 +295,11 @@ Fe.default = {
|
|
|
295
295
|
}
|
|
296
296
|
};
|
|
297
297
|
var Le = {}, zt = { exports: {} }, at = {}, Pe = {};
|
|
298
|
-
Pe.byteLength =
|
|
299
|
-
Pe.toByteArray =
|
|
300
|
-
Pe.fromByteArray =
|
|
301
|
-
var be = [], le = [],
|
|
302
|
-
for (var Te = 0,
|
|
298
|
+
Pe.byteLength = Fr;
|
|
299
|
+
Pe.toByteArray = Rr;
|
|
300
|
+
Pe.fromByteArray = kr;
|
|
301
|
+
var be = [], le = [], Lr = typeof Uint8Array < "u" ? Uint8Array : Array, ze = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
302
|
+
for (var Te = 0, Dr = ze.length; Te < Dr; ++Te)
|
|
303
303
|
be[Te] = ze[Te], le[ze.charCodeAt(Te)] = Te;
|
|
304
304
|
le[45] = 62;
|
|
305
305
|
le[95] = 63;
|
|
@@ -312,30 +312,30 @@ function Wt(e) {
|
|
|
312
312
|
var n = a === t ? 0 : 4 - a % 4;
|
|
313
313
|
return [a, n];
|
|
314
314
|
}
|
|
315
|
-
function
|
|
315
|
+
function Fr(e) {
|
|
316
316
|
var t = Wt(e), a = t[0], n = t[1];
|
|
317
317
|
return (a + n) * 3 / 4 - n;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function Or(e, t, a) {
|
|
320
320
|
return (t + a) * 3 / 4 - a;
|
|
321
321
|
}
|
|
322
|
-
function Or(e) {
|
|
323
|
-
var t, a = Wt(e), n = a[0], c = a[1], u = new Nr(Fr(e, n, c)), f = 0, s = c > 0 ? n - 4 : n, p;
|
|
324
|
-
for (p = 0; p < s; p += 4)
|
|
325
|
-
t = le[e.charCodeAt(p)] << 18 | le[e.charCodeAt(p + 1)] << 12 | le[e.charCodeAt(p + 2)] << 6 | le[e.charCodeAt(p + 3)], u[f++] = t >> 16 & 255, u[f++] = t >> 8 & 255, u[f++] = t & 255;
|
|
326
|
-
return c === 2 && (t = le[e.charCodeAt(p)] << 2 | le[e.charCodeAt(p + 1)] >> 4, u[f++] = t & 255), c === 1 && (t = le[e.charCodeAt(p)] << 10 | le[e.charCodeAt(p + 1)] << 4 | le[e.charCodeAt(p + 2)] >> 2, u[f++] = t >> 8 & 255, u[f++] = t & 255), u;
|
|
327
|
-
}
|
|
328
322
|
function Rr(e) {
|
|
323
|
+
var t, a = Wt(e), n = a[0], c = a[1], u = new Lr(Or(e, n, c)), f = 0, s = c > 0 ? n - 4 : n, d;
|
|
324
|
+
for (d = 0; d < s; d += 4)
|
|
325
|
+
t = le[e.charCodeAt(d)] << 18 | le[e.charCodeAt(d + 1)] << 12 | le[e.charCodeAt(d + 2)] << 6 | le[e.charCodeAt(d + 3)], u[f++] = t >> 16 & 255, u[f++] = t >> 8 & 255, u[f++] = t & 255;
|
|
326
|
+
return c === 2 && (t = le[e.charCodeAt(d)] << 2 | le[e.charCodeAt(d + 1)] >> 4, u[f++] = t & 255), c === 1 && (t = le[e.charCodeAt(d)] << 10 | le[e.charCodeAt(d + 1)] << 4 | le[e.charCodeAt(d + 2)] >> 2, u[f++] = t >> 8 & 255, u[f++] = t & 255), u;
|
|
327
|
+
}
|
|
328
|
+
function Mr(e) {
|
|
329
329
|
return be[e >> 18 & 63] + be[e >> 12 & 63] + be[e >> 6 & 63] + be[e & 63];
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function Cr(e, t, a) {
|
|
332
332
|
for (var n, c = [], u = t; u < a; u += 3)
|
|
333
|
-
n = (e[u] << 16 & 16711680) + (e[u + 1] << 8 & 65280) + (e[u + 2] & 255), c.push(
|
|
333
|
+
n = (e[u] << 16 & 16711680) + (e[u + 1] << 8 & 65280) + (e[u + 2] & 255), c.push(Mr(n));
|
|
334
334
|
return c.join("");
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function kr(e) {
|
|
337
337
|
for (var t, a = e.length, n = a % 3, c = [], u = 16383, f = 0, s = a - n; f < s; f += u)
|
|
338
|
-
c.push(
|
|
338
|
+
c.push(Cr(e, f, f + u > s ? s : f + u));
|
|
339
339
|
return n === 1 ? (t = e[a - 1], c.push(
|
|
340
340
|
be[t >> 2] + be[t << 4 & 63] + "=="
|
|
341
341
|
)) : n === 2 && (t = (e[a - 2] << 8) + e[a - 1], c.push(
|
|
@@ -345,23 +345,23 @@ function Cr(e) {
|
|
|
345
345
|
var st = {};
|
|
346
346
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
347
347
|
st.read = function(e, t, a, n, c) {
|
|
348
|
-
var u, f, s = c * 8 - n - 1,
|
|
349
|
-
for (_ += g, u = E & (1 << -
|
|
348
|
+
var u, f, s = c * 8 - n - 1, d = (1 << s) - 1, l = d >> 1, b = -7, _ = a ? c - 1 : 0, g = a ? -1 : 1, E = e[t + _];
|
|
349
|
+
for (_ += g, u = E & (1 << -b) - 1, E >>= -b, b += s; b > 0; u = u * 256 + e[t + _], _ += g, b -= 8)
|
|
350
350
|
;
|
|
351
|
-
for (f = u & (1 << -
|
|
351
|
+
for (f = u & (1 << -b) - 1, u >>= -b, b += n; b > 0; f = f * 256 + e[t + _], _ += g, b -= 8)
|
|
352
352
|
;
|
|
353
353
|
if (u === 0)
|
|
354
354
|
u = 1 - l;
|
|
355
355
|
else {
|
|
356
|
-
if (u ===
|
|
356
|
+
if (u === d)
|
|
357
357
|
return f ? NaN : (E ? -1 : 1) * (1 / 0);
|
|
358
358
|
f = f + Math.pow(2, n), u = u - l;
|
|
359
359
|
}
|
|
360
360
|
return (E ? -1 : 1) * f * Math.pow(2, u - n);
|
|
361
361
|
};
|
|
362
362
|
st.write = function(e, t, a, n, c, u) {
|
|
363
|
-
var f, s,
|
|
364
|
-
for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (s = isNaN(t) ? 1 : 0, f =
|
|
363
|
+
var f, s, d, l = u * 8 - c - 1, b = (1 << l) - 1, _ = b >> 1, g = c === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, E = n ? 0 : u - 1, x = n ? 1 : -1, A = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
|
|
364
|
+
for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (s = isNaN(t) ? 1 : 0, f = b) : (f = Math.floor(Math.log(t) / Math.LN2), t * (d = Math.pow(2, -f)) < 1 && (f--, d *= 2), f + _ >= 1 ? t += g / d : t += g * Math.pow(2, 1 - _), t * d >= 2 && (f++, d /= 2), f + _ >= b ? (s = 0, f = b) : f + _ >= 1 ? (s = (t * d - 1) * Math.pow(2, c), f = f + _) : (s = t * Math.pow(2, _ - 1) * Math.pow(2, c), f = 0)); c >= 8; e[a + E] = s & 255, E += x, s /= 256, c -= 8)
|
|
365
365
|
;
|
|
366
366
|
for (f = f << c | s, l += c; l > 0; e[a + E] = f & 255, E += x, f /= 256, l -= 8)
|
|
367
367
|
;
|
|
@@ -375,7 +375,7 @@ st.write = function(e, t, a, n, c, u) {
|
|
|
375
375
|
*/
|
|
376
376
|
(function(e) {
|
|
377
377
|
var t = Pe, a = st, n = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
378
|
-
e.Buffer = s, e.SlowBuffer =
|
|
378
|
+
e.Buffer = s, e.SlowBuffer = m, e.INSPECT_MAX_BYTES = 50;
|
|
379
379
|
var c = 2147483647;
|
|
380
380
|
e.kMaxLength = c, s.TYPED_ARRAY_SUPPORT = u(), !s.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
381
381
|
"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
|
|
@@ -417,10 +417,10 @@ st.write = function(e, t, a, n, c, u) {
|
|
|
417
417
|
);
|
|
418
418
|
return _(o);
|
|
419
419
|
}
|
|
420
|
-
return
|
|
420
|
+
return d(o, r, i);
|
|
421
421
|
}
|
|
422
422
|
s.poolSize = 8192;
|
|
423
|
-
function
|
|
423
|
+
function d(o, r, i) {
|
|
424
424
|
if (typeof o == "string")
|
|
425
425
|
return g(o, r);
|
|
426
426
|
if (ArrayBuffer.isView(o))
|
|
@@ -451,7 +451,7 @@ st.write = function(e, t, a, n, c, u) {
|
|
|
451
451
|
);
|
|
452
452
|
}
|
|
453
453
|
s.from = function(o, r, i) {
|
|
454
|
-
return
|
|
454
|
+
return d(o, r, i);
|
|
455
455
|
}, Object.setPrototypeOf(s.prototype, Uint8Array.prototype), Object.setPrototypeOf(s, Uint8Array);
|
|
456
456
|
function l(o) {
|
|
457
457
|
if (typeof o != "number")
|
|
@@ -459,14 +459,14 @@ st.write = function(e, t, a, n, c, u) {
|
|
|
459
459
|
if (o < 0)
|
|
460
460
|
throw new RangeError('The value "' + o + '" is invalid for option "size"');
|
|
461
461
|
}
|
|
462
|
-
function
|
|
462
|
+
function b(o, r, i) {
|
|
463
463
|
return l(o), o <= 0 ? f(o) : r !== void 0 ? typeof i == "string" ? f(o).fill(r, i) : f(o).fill(r) : f(o);
|
|
464
464
|
}
|
|
465
465
|
s.alloc = function(o, r, i) {
|
|
466
|
-
return
|
|
466
|
+
return b(o, r, i);
|
|
467
467
|
};
|
|
468
468
|
function _(o) {
|
|
469
|
-
return l(o), f(o < 0 ? 0 :
|
|
469
|
+
return l(o), f(o < 0 ? 0 : p(o) | 0);
|
|
470
470
|
}
|
|
471
471
|
s.allocUnsafe = function(o) {
|
|
472
472
|
return _(o);
|
|
@@ -476,11 +476,11 @@ st.write = function(e, t, a, n, c, u) {
|
|
|
476
476
|
function g(o, r) {
|
|
477
477
|
if ((typeof r != "string" || r === "") && (r = "utf8"), !s.isEncoding(r))
|
|
478
478
|
throw new TypeError("Unknown encoding: " + r);
|
|
479
|
-
var i =
|
|
479
|
+
var i = v(o, r) | 0, h = f(i), w = h.write(o, r);
|
|
480
480
|
return w !== i && (h = h.slice(0, w)), h;
|
|
481
481
|
}
|
|
482
482
|
function E(o) {
|
|
483
|
-
for (var r = o.length < 0 ? 0 :
|
|
483
|
+
for (var r = o.length < 0 ? 0 : p(o.length) | 0, i = f(r), h = 0; h < r; h += 1)
|
|
484
484
|
i[h] = o[h] & 255;
|
|
485
485
|
return i;
|
|
486
486
|
}
|
|
@@ -501,7 +501,7 @@ st.write = function(e, t, a, n, c, u) {
|
|
|
501
501
|
}
|
|
502
502
|
function T(o) {
|
|
503
503
|
if (s.isBuffer(o)) {
|
|
504
|
-
var r =
|
|
504
|
+
var r = p(o.length) | 0, i = f(r);
|
|
505
505
|
return i.length === 0 || o.copy(i, 0, 0, r), i;
|
|
506
506
|
}
|
|
507
507
|
if (o.length !== void 0)
|
|
@@ -509,12 +509,12 @@ st.write = function(e, t, a, n, c, u) {
|
|
|
509
509
|
if (o.type === "Buffer" && Array.isArray(o.data))
|
|
510
510
|
return E(o.data);
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function p(o) {
|
|
513
513
|
if (o >= c)
|
|
514
514
|
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + c.toString(16) + " bytes");
|
|
515
515
|
return o | 0;
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function m(o) {
|
|
518
518
|
return +o != o && (o = 0), s.alloc(+o);
|
|
519
519
|
}
|
|
520
520
|
s.isBuffer = function(r) {
|
|
@@ -574,7 +574,7 @@ st.write = function(e, t, a, n, c, u) {
|
|
|
574
574
|
}
|
|
575
575
|
return w;
|
|
576
576
|
};
|
|
577
|
-
function
|
|
577
|
+
function v(o, r) {
|
|
578
578
|
if (s.isBuffer(o))
|
|
579
579
|
return o.length;
|
|
580
580
|
if (ArrayBuffer.isView(o) || ye(o, ArrayBuffer))
|
|
@@ -609,7 +609,7 @@ st.write = function(e, t, a, n, c, u) {
|
|
|
609
609
|
r = ("" + r).toLowerCase(), w = !0;
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
|
-
s.byteLength =
|
|
612
|
+
s.byteLength = v;
|
|
613
613
|
function y(o, r, i) {
|
|
614
614
|
var h = !1;
|
|
615
615
|
if ((r === void 0 || r < 0) && (r = 0), r > this.length || ((i === void 0 || i > this.length) && (i = this.length), i <= 0) || (i >>>= 0, r >>>= 0, i <= r))
|
|
@@ -617,22 +617,22 @@ st.write = function(e, t, a, n, c, u) {
|
|
|
617
617
|
for (o || (o = "utf8"); ; )
|
|
618
618
|
switch (o) {
|
|
619
619
|
case "hex":
|
|
620
|
-
return
|
|
620
|
+
return V(this, r, i);
|
|
621
621
|
case "utf8":
|
|
622
622
|
case "utf-8":
|
|
623
|
-
return
|
|
623
|
+
return $(this, r, i);
|
|
624
624
|
case "ascii":
|
|
625
|
-
return
|
|
625
|
+
return S(this, r, i);
|
|
626
626
|
case "latin1":
|
|
627
627
|
case "binary":
|
|
628
|
-
return
|
|
628
|
+
return L(this, r, i);
|
|
629
629
|
case "base64":
|
|
630
630
|
return q(this, r, i);
|
|
631
631
|
case "ucs2":
|
|
632
632
|
case "ucs-2":
|
|
633
633
|
case "utf16le":
|
|
634
634
|
case "utf-16le":
|
|
635
|
-
return
|
|
635
|
+
return G(this, r, i);
|
|
636
636
|
default:
|
|
637
637
|
if (h) throw new TypeError("Unknown encoding: " + o);
|
|
638
638
|
o = (o + "").toLowerCase(), h = !0;
|
|
@@ -666,7 +666,7 @@ st.write = function(e, t, a, n, c, u) {
|
|
|
666
666
|
return this;
|
|
667
667
|
}, s.prototype.toString = function() {
|
|
668
668
|
var r = this.length;
|
|
669
|
-
return r === 0 ? "" : arguments.length === 0 ?
|
|
669
|
+
return r === 0 ? "" : arguments.length === 0 ? $(this, 0, r) : y.apply(this, arguments);
|
|
670
670
|
}, s.prototype.toLocaleString = s.prototype.toString, s.prototype.equals = function(r) {
|
|
671
671
|
if (!s.isBuffer(r)) throw new TypeError("Argument must be a Buffer");
|
|
672
672
|
return this === r ? !0 : s.compare(this, r) === 0;
|
|
@@ -687,12 +687,12 @@ st.write = function(e, t, a, n, c, u) {
|
|
|
687
687
|
if (i >= h)
|
|
688
688
|
return 1;
|
|
689
689
|
if (i >>>= 0, h >>>= 0, w >>>= 0, B >>>= 0, this === r) return 0;
|
|
690
|
-
for (var U = B - w,
|
|
691
|
-
if (
|
|
692
|
-
U =
|
|
690
|
+
for (var U = B - w, P = h - i, z = Math.min(U, P), Z = this.slice(w, B), ie = r.slice(i, h), K = 0; K < z; ++K)
|
|
691
|
+
if (Z[K] !== ie[K]) {
|
|
692
|
+
U = Z[K], P = ie[K];
|
|
693
693
|
break;
|
|
694
694
|
}
|
|
695
|
-
return U <
|
|
695
|
+
return U < P ? -1 : P < U ? 1 : 0;
|
|
696
696
|
};
|
|
697
697
|
function N(o, r, i, h, w) {
|
|
698
698
|
if (o.length === 0) return -1;
|
|
@@ -703,37 +703,37 @@ st.write = function(e, t, a, n, c, u) {
|
|
|
703
703
|
if (w) i = 0;
|
|
704
704
|
else return -1;
|
|
705
705
|
if (typeof r == "string" && (r = s.from(r, h)), s.isBuffer(r))
|
|
706
|
-
return r.length === 0 ? -1 :
|
|
706
|
+
return r.length === 0 ? -1 : D(o, r, i, h, w);
|
|
707
707
|
if (typeof r == "number")
|
|
708
|
-
return r = r & 255, typeof Uint8Array.prototype.indexOf == "function" ? w ? Uint8Array.prototype.indexOf.call(o, r, i) : Uint8Array.prototype.lastIndexOf.call(o, r, i) :
|
|
708
|
+
return r = r & 255, typeof Uint8Array.prototype.indexOf == "function" ? w ? Uint8Array.prototype.indexOf.call(o, r, i) : Uint8Array.prototype.lastIndexOf.call(o, r, i) : D(o, [r], i, h, w);
|
|
709
709
|
throw new TypeError("val must be string, number or Buffer");
|
|
710
710
|
}
|
|
711
|
-
function
|
|
712
|
-
var B = 1, U = o.length,
|
|
711
|
+
function D(o, r, i, h, w) {
|
|
712
|
+
var B = 1, U = o.length, P = r.length;
|
|
713
713
|
if (h !== void 0 && (h = String(h).toLowerCase(), h === "ucs2" || h === "ucs-2" || h === "utf16le" || h === "utf-16le")) {
|
|
714
714
|
if (o.length < 2 || r.length < 2)
|
|
715
715
|
return -1;
|
|
716
|
-
B = 2, U /= 2,
|
|
716
|
+
B = 2, U /= 2, P /= 2, i /= 2;
|
|
717
717
|
}
|
|
718
|
-
function
|
|
718
|
+
function z(bt, vt) {
|
|
719
719
|
return B === 1 ? bt[vt] : bt.readUInt16BE(vt * B);
|
|
720
720
|
}
|
|
721
|
-
var
|
|
721
|
+
var Z;
|
|
722
722
|
if (w) {
|
|
723
723
|
var ie = -1;
|
|
724
|
-
for (
|
|
725
|
-
if (
|
|
726
|
-
if (ie === -1 && (ie =
|
|
724
|
+
for (Z = i; Z < U; Z++)
|
|
725
|
+
if (z(o, Z) === z(r, ie === -1 ? 0 : Z - ie)) {
|
|
726
|
+
if (ie === -1 && (ie = Z), Z - ie + 1 === P) return ie * B;
|
|
727
727
|
} else
|
|
728
|
-
ie !== -1 && (
|
|
728
|
+
ie !== -1 && (Z -= Z - ie), ie = -1;
|
|
729
729
|
} else
|
|
730
|
-
for (i +
|
|
731
|
-
for (var
|
|
732
|
-
if (
|
|
733
|
-
|
|
730
|
+
for (i + P > U && (i = U - P), Z = i; Z >= 0; Z--) {
|
|
731
|
+
for (var K = !0, Re = 0; Re < P; Re++)
|
|
732
|
+
if (z(o, Z + Re) !== z(r, Re)) {
|
|
733
|
+
K = !1;
|
|
734
734
|
break;
|
|
735
735
|
}
|
|
736
|
-
if (
|
|
736
|
+
if (K) return Z;
|
|
737
737
|
}
|
|
738
738
|
return -1;
|
|
739
739
|
}
|
|
@@ -744,16 +744,16 @@ st.write = function(e, t, a, n, c, u) {
|
|
|
744
744
|
}, s.prototype.lastIndexOf = function(r, i, h) {
|
|
745
745
|
return N(this, r, i, h, !1);
|
|
746
746
|
};
|
|
747
|
-
function
|
|
747
|
+
function C(o, r, i, h) {
|
|
748
748
|
i = Number(i) || 0;
|
|
749
749
|
var w = o.length - i;
|
|
750
750
|
h ? (h = Number(h), h > w && (h = w)) : h = w;
|
|
751
751
|
var B = r.length;
|
|
752
752
|
h > B / 2 && (h = B / 2);
|
|
753
753
|
for (var U = 0; U < h; ++U) {
|
|
754
|
-
var
|
|
755
|
-
if (je(
|
|
756
|
-
o[i + U] =
|
|
754
|
+
var P = parseInt(r.substr(U * 2, 2), 16);
|
|
755
|
+
if (je(P)) return U;
|
|
756
|
+
o[i + U] = P;
|
|
757
757
|
}
|
|
758
758
|
return U;
|
|
759
759
|
}
|
|
@@ -763,10 +763,10 @@ st.write = function(e, t, a, n, c, u) {
|
|
|
763
763
|
function R(o, r, i, h) {
|
|
764
764
|
return Oe(Xt(r), o, i, h);
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function k(o, r, i, h) {
|
|
767
767
|
return Oe(yt(r), o, i, h);
|
|
768
768
|
}
|
|
769
|
-
function
|
|
769
|
+
function Y(o, r, i, h) {
|
|
770
770
|
return Oe(Jt(r, o.length - i), o, i, h);
|
|
771
771
|
}
|
|
772
772
|
s.prototype.write = function(r, i, h, w) {
|
|
@@ -787,7 +787,7 @@ st.write = function(e, t, a, n, c, u) {
|
|
|
787
787
|
for (var U = !1; ; )
|
|
788
788
|
switch (w) {
|
|
789
789
|
case "hex":
|
|
790
|
-
return
|
|
790
|
+
return C(this, r, i, h);
|
|
791
791
|
case "utf8":
|
|
792
792
|
case "utf-8":
|
|
793
793
|
return O(this, r, i, h);
|
|
@@ -796,12 +796,12 @@ st.write = function(e, t, a, n, c, u) {
|
|
|
796
796
|
case "binary":
|
|
797
797
|
return R(this, r, i, h);
|
|
798
798
|
case "base64":
|
|
799
|
-
return
|
|
799
|
+
return k(this, r, i, h);
|
|
800
800
|
case "ucs2":
|
|
801
801
|
case "ucs-2":
|
|
802
802
|
case "utf16le":
|
|
803
803
|
case "utf-16le":
|
|
804
|
-
return
|
|
804
|
+
return Y(this, r, i, h);
|
|
805
805
|
default:
|
|
806
806
|
if (U) throw new TypeError("Unknown encoding: " + w);
|
|
807
807
|
w = ("" + w).toLowerCase(), U = !0;
|
|
@@ -815,32 +815,32 @@ st.write = function(e, t, a, n, c, u) {
|
|
|
815
815
|
function q(o, r, i) {
|
|
816
816
|
return r === 0 && i === o.length ? t.fromByteArray(o) : t.fromByteArray(o.slice(r, i));
|
|
817
817
|
}
|
|
818
|
-
function
|
|
818
|
+
function $(o, r, i) {
|
|
819
819
|
i = Math.min(o.length, i);
|
|
820
820
|
for (var h = [], w = r; w < i; ) {
|
|
821
|
-
var B = o[w], U = null,
|
|
822
|
-
if (w +
|
|
823
|
-
var
|
|
824
|
-
switch (
|
|
821
|
+
var B = o[w], U = null, P = B > 239 ? 4 : B > 223 ? 3 : B > 191 ? 2 : 1;
|
|
822
|
+
if (w + P <= i) {
|
|
823
|
+
var z, Z, ie, K;
|
|
824
|
+
switch (P) {
|
|
825
825
|
case 1:
|
|
826
826
|
B < 128 && (U = B);
|
|
827
827
|
break;
|
|
828
828
|
case 2:
|
|
829
|
-
|
|
829
|
+
z = o[w + 1], (z & 192) === 128 && (K = (B & 31) << 6 | z & 63, K > 127 && (U = K));
|
|
830
830
|
break;
|
|
831
831
|
case 3:
|
|
832
|
-
|
|
832
|
+
z = o[w + 1], Z = o[w + 2], (z & 192) === 128 && (Z & 192) === 128 && (K = (B & 15) << 12 | (z & 63) << 6 | Z & 63, K > 2047 && (K < 55296 || K > 57343) && (U = K));
|
|
833
833
|
break;
|
|
834
834
|
case 4:
|
|
835
|
-
|
|
835
|
+
z = o[w + 1], Z = o[w + 2], ie = o[w + 3], (z & 192) === 128 && (Z & 192) === 128 && (ie & 192) === 128 && (K = (B & 15) << 18 | (z & 63) << 12 | (Z & 63) << 6 | ie & 63, K > 65535 && K < 1114112 && (U = K));
|
|
836
836
|
}
|
|
837
837
|
}
|
|
838
|
-
U === null ? (U = 65533,
|
|
838
|
+
U === null ? (U = 65533, P = 1) : U > 65535 && (U -= 65536, h.push(U >>> 10 & 1023 | 55296), U = 56320 | U & 1023), h.push(U), w += P;
|
|
839
839
|
}
|
|
840
|
-
return
|
|
840
|
+
return j(h);
|
|
841
841
|
}
|
|
842
842
|
var W = 4096;
|
|
843
|
-
function
|
|
843
|
+
function j(o) {
|
|
844
844
|
var r = o.length;
|
|
845
845
|
if (r <= W)
|
|
846
846
|
return String.fromCharCode.apply(String, o);
|
|
@@ -851,28 +851,28 @@ st.write = function(e, t, a, n, c, u) {
|
|
|
851
851
|
);
|
|
852
852
|
return i;
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function S(o, r, i) {
|
|
855
855
|
var h = "";
|
|
856
856
|
i = Math.min(o.length, i);
|
|
857
857
|
for (var w = r; w < i; ++w)
|
|
858
858
|
h += String.fromCharCode(o[w] & 127);
|
|
859
859
|
return h;
|
|
860
860
|
}
|
|
861
|
-
function
|
|
861
|
+
function L(o, r, i) {
|
|
862
862
|
var h = "";
|
|
863
863
|
i = Math.min(o.length, i);
|
|
864
864
|
for (var w = r; w < i; ++w)
|
|
865
865
|
h += String.fromCharCode(o[w]);
|
|
866
866
|
return h;
|
|
867
867
|
}
|
|
868
|
-
function
|
|
868
|
+
function V(o, r, i) {
|
|
869
869
|
var h = o.length;
|
|
870
870
|
(!r || r < 0) && (r = 0), (!i || i < 0 || i > h) && (i = h);
|
|
871
871
|
for (var w = "", B = r; B < i; ++B)
|
|
872
872
|
w += Qt[o[B]];
|
|
873
873
|
return w;
|
|
874
874
|
}
|
|
875
|
-
function
|
|
875
|
+
function G(o, r, i) {
|
|
876
876
|
for (var h = o.slice(r, i), w = "", B = 0; B < h.length - 1; B += 2)
|
|
877
877
|
w += String.fromCharCode(h[B] + h[B + 1] * 256);
|
|
878
878
|
return w;
|
|
@@ -883,62 +883,62 @@ st.write = function(e, t, a, n, c, u) {
|
|
|
883
883
|
var w = this.subarray(r, i);
|
|
884
884
|
return Object.setPrototypeOf(w, s.prototype), w;
|
|
885
885
|
};
|
|
886
|
-
function
|
|
886
|
+
function H(o, r, i) {
|
|
887
887
|
if (o % 1 !== 0 || o < 0) throw new RangeError("offset is not uint");
|
|
888
888
|
if (o + r > i) throw new RangeError("Trying to access beyond buffer length");
|
|
889
889
|
}
|
|
890
890
|
s.prototype.readUintLE = s.prototype.readUIntLE = function(r, i, h) {
|
|
891
|
-
r = r >>> 0, i = i >>> 0, h ||
|
|
891
|
+
r = r >>> 0, i = i >>> 0, h || H(r, i, this.length);
|
|
892
892
|
for (var w = this[r], B = 1, U = 0; ++U < i && (B *= 256); )
|
|
893
893
|
w += this[r + U] * B;
|
|
894
894
|
return w;
|
|
895
895
|
}, s.prototype.readUintBE = s.prototype.readUIntBE = function(r, i, h) {
|
|
896
|
-
r = r >>> 0, i = i >>> 0, h ||
|
|
896
|
+
r = r >>> 0, i = i >>> 0, h || H(r, i, this.length);
|
|
897
897
|
for (var w = this[r + --i], B = 1; i > 0 && (B *= 256); )
|
|
898
898
|
w += this[r + --i] * B;
|
|
899
899
|
return w;
|
|
900
900
|
}, s.prototype.readUint8 = s.prototype.readUInt8 = function(r, i) {
|
|
901
|
-
return r = r >>> 0, i ||
|
|
901
|
+
return r = r >>> 0, i || H(r, 1, this.length), this[r];
|
|
902
902
|
}, s.prototype.readUint16LE = s.prototype.readUInt16LE = function(r, i) {
|
|
903
|
-
return r = r >>> 0, i ||
|
|
903
|
+
return r = r >>> 0, i || H(r, 2, this.length), this[r] | this[r + 1] << 8;
|
|
904
904
|
}, s.prototype.readUint16BE = s.prototype.readUInt16BE = function(r, i) {
|
|
905
|
-
return r = r >>> 0, i ||
|
|
905
|
+
return r = r >>> 0, i || H(r, 2, this.length), this[r] << 8 | this[r + 1];
|
|
906
906
|
}, s.prototype.readUint32LE = s.prototype.readUInt32LE = function(r, i) {
|
|
907
|
-
return r = r >>> 0, i ||
|
|
907
|
+
return r = r >>> 0, i || H(r, 4, this.length), (this[r] | this[r + 1] << 8 | this[r + 2] << 16) + this[r + 3] * 16777216;
|
|
908
908
|
}, s.prototype.readUint32BE = s.prototype.readUInt32BE = function(r, i) {
|
|
909
|
-
return r = r >>> 0, i ||
|
|
909
|
+
return r = r >>> 0, i || H(r, 4, this.length), this[r] * 16777216 + (this[r + 1] << 16 | this[r + 2] << 8 | this[r + 3]);
|
|
910
910
|
}, s.prototype.readIntLE = function(r, i, h) {
|
|
911
|
-
r = r >>> 0, i = i >>> 0, h ||
|
|
911
|
+
r = r >>> 0, i = i >>> 0, h || H(r, i, this.length);
|
|
912
912
|
for (var w = this[r], B = 1, U = 0; ++U < i && (B *= 256); )
|
|
913
913
|
w += this[r + U] * B;
|
|
914
914
|
return B *= 128, w >= B && (w -= Math.pow(2, 8 * i)), w;
|
|
915
915
|
}, s.prototype.readIntBE = function(r, i, h) {
|
|
916
|
-
r = r >>> 0, i = i >>> 0, h ||
|
|
916
|
+
r = r >>> 0, i = i >>> 0, h || H(r, i, this.length);
|
|
917
917
|
for (var w = i, B = 1, U = this[r + --w]; w > 0 && (B *= 256); )
|
|
918
918
|
U += this[r + --w] * B;
|
|
919
919
|
return B *= 128, U >= B && (U -= Math.pow(2, 8 * i)), U;
|
|
920
920
|
}, s.prototype.readInt8 = function(r, i) {
|
|
921
|
-
return r = r >>> 0, i ||
|
|
921
|
+
return r = r >>> 0, i || H(r, 1, this.length), this[r] & 128 ? (255 - this[r] + 1) * -1 : this[r];
|
|
922
922
|
}, s.prototype.readInt16LE = function(r, i) {
|
|
923
|
-
r = r >>> 0, i ||
|
|
923
|
+
r = r >>> 0, i || H(r, 2, this.length);
|
|
924
924
|
var h = this[r] | this[r + 1] << 8;
|
|
925
925
|
return h & 32768 ? h | 4294901760 : h;
|
|
926
926
|
}, s.prototype.readInt16BE = function(r, i) {
|
|
927
|
-
r = r >>> 0, i ||
|
|
927
|
+
r = r >>> 0, i || H(r, 2, this.length);
|
|
928
928
|
var h = this[r + 1] | this[r] << 8;
|
|
929
929
|
return h & 32768 ? h | 4294901760 : h;
|
|
930
930
|
}, s.prototype.readInt32LE = function(r, i) {
|
|
931
|
-
return r = r >>> 0, i ||
|
|
931
|
+
return r = r >>> 0, i || H(r, 4, this.length), this[r] | this[r + 1] << 8 | this[r + 2] << 16 | this[r + 3] << 24;
|
|
932
932
|
}, s.prototype.readInt32BE = function(r, i) {
|
|
933
|
-
return r = r >>> 0, i ||
|
|
933
|
+
return r = r >>> 0, i || H(r, 4, this.length), this[r] << 24 | this[r + 1] << 16 | this[r + 2] << 8 | this[r + 3];
|
|
934
934
|
}, s.prototype.readFloatLE = function(r, i) {
|
|
935
|
-
return r = r >>> 0, i ||
|
|
935
|
+
return r = r >>> 0, i || H(r, 4, this.length), a.read(this, r, !0, 23, 4);
|
|
936
936
|
}, s.prototype.readFloatBE = function(r, i) {
|
|
937
|
-
return r = r >>> 0, i ||
|
|
937
|
+
return r = r >>> 0, i || H(r, 4, this.length), a.read(this, r, !1, 23, 4);
|
|
938
938
|
}, s.prototype.readDoubleLE = function(r, i) {
|
|
939
|
-
return r = r >>> 0, i ||
|
|
939
|
+
return r = r >>> 0, i || H(r, 8, this.length), a.read(this, r, !0, 52, 8);
|
|
940
940
|
}, s.prototype.readDoubleBE = function(r, i) {
|
|
941
|
-
return r = r >>> 0, i ||
|
|
941
|
+
return r = r >>> 0, i || H(r, 8, this.length), a.read(this, r, !1, 52, 8);
|
|
942
942
|
};
|
|
943
943
|
function X(o, r, i, h, w, B) {
|
|
944
944
|
if (!s.isBuffer(o)) throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
@@ -950,18 +950,18 @@ st.write = function(e, t, a, n, c, u) {
|
|
|
950
950
|
var B = Math.pow(2, 8 * h) - 1;
|
|
951
951
|
X(this, r, i, h, B, 0);
|
|
952
952
|
}
|
|
953
|
-
var U = 1,
|
|
954
|
-
for (this[i] = r & 255; ++
|
|
955
|
-
this[i +
|
|
953
|
+
var U = 1, P = 0;
|
|
954
|
+
for (this[i] = r & 255; ++P < h && (U *= 256); )
|
|
955
|
+
this[i + P] = r / U & 255;
|
|
956
956
|
return i + h;
|
|
957
957
|
}, s.prototype.writeUintBE = s.prototype.writeUIntBE = function(r, i, h, w) {
|
|
958
958
|
if (r = +r, i = i >>> 0, h = h >>> 0, !w) {
|
|
959
959
|
var B = Math.pow(2, 8 * h) - 1;
|
|
960
960
|
X(this, r, i, h, B, 0);
|
|
961
961
|
}
|
|
962
|
-
var U = h - 1,
|
|
963
|
-
for (this[i + U] = r & 255; --U >= 0 && (
|
|
964
|
-
this[i + U] = r /
|
|
962
|
+
var U = h - 1, P = 1;
|
|
963
|
+
for (this[i + U] = r & 255; --U >= 0 && (P *= 256); )
|
|
964
|
+
this[i + U] = r / P & 255;
|
|
965
965
|
return i + h;
|
|
966
966
|
}, s.prototype.writeUint8 = s.prototype.writeUInt8 = function(r, i, h) {
|
|
967
967
|
return r = +r, i = i >>> 0, h || X(this, r, i, 1, 255, 0), this[i] = r & 255, i + 1;
|
|
@@ -978,18 +978,18 @@ st.write = function(e, t, a, n, c, u) {
|
|
|
978
978
|
var B = Math.pow(2, 8 * h - 1);
|
|
979
979
|
X(this, r, i, h, B - 1, -B);
|
|
980
980
|
}
|
|
981
|
-
var U = 0,
|
|
982
|
-
for (this[i] = r & 255; ++U < h && (
|
|
983
|
-
r < 0 &&
|
|
981
|
+
var U = 0, P = 1, z = 0;
|
|
982
|
+
for (this[i] = r & 255; ++U < h && (P *= 256); )
|
|
983
|
+
r < 0 && z === 0 && this[i + U - 1] !== 0 && (z = 1), this[i + U] = (r / P >> 0) - z & 255;
|
|
984
984
|
return i + h;
|
|
985
985
|
}, s.prototype.writeIntBE = function(r, i, h, w) {
|
|
986
986
|
if (r = +r, i = i >>> 0, !w) {
|
|
987
987
|
var B = Math.pow(2, 8 * h - 1);
|
|
988
988
|
X(this, r, i, h, B - 1, -B);
|
|
989
989
|
}
|
|
990
|
-
var U = h - 1,
|
|
991
|
-
for (this[i + U] = r & 255; --U >= 0 && (
|
|
992
|
-
r < 0 &&
|
|
990
|
+
var U = h - 1, P = 1, z = 0;
|
|
991
|
+
for (this[i + U] = r & 255; --U >= 0 && (P *= 256); )
|
|
992
|
+
r < 0 && z === 0 && this[i + U + 1] !== 0 && (z = 1), this[i + U] = (r / P >> 0) - z & 255;
|
|
993
993
|
return i + h;
|
|
994
994
|
}, s.prototype.writeInt8 = function(r, i, h) {
|
|
995
995
|
return r = +r, i = i >>> 0, h || X(this, r, i, 1, 127, -128), r < 0 && (r = 255 + r + 1), this[i] = r & 255, i + 1;
|
|
@@ -1056,11 +1056,11 @@ st.write = function(e, t, a, n, c, u) {
|
|
|
1056
1056
|
for (U = i; U < h; ++U)
|
|
1057
1057
|
this[U] = r;
|
|
1058
1058
|
else {
|
|
1059
|
-
var
|
|
1060
|
-
if (
|
|
1059
|
+
var P = s.isBuffer(r) ? r : s.from(r, w), z = P.length;
|
|
1060
|
+
if (z === 0)
|
|
1061
1061
|
throw new TypeError('The value "' + r + '" is invalid for argument "value"');
|
|
1062
1062
|
for (U = 0; U < h - i; ++U)
|
|
1063
|
-
this[U + i] =
|
|
1063
|
+
this[U + i] = P[U % z];
|
|
1064
1064
|
}
|
|
1065
1065
|
return this;
|
|
1066
1066
|
};
|
|
@@ -1205,26 +1205,26 @@ ft.prototype.end = function() {
|
|
|
1205
1205
|
return this.decoder.end();
|
|
1206
1206
|
};
|
|
1207
1207
|
var We = {}, Ze = {}, Me = { exports: {} }, _t;
|
|
1208
|
-
function
|
|
1208
|
+
function Pr() {
|
|
1209
1209
|
return _t || (_t = 1, function(e, t) {
|
|
1210
1210
|
var a = at, n = a.Buffer;
|
|
1211
1211
|
function c(f, s) {
|
|
1212
|
-
for (var
|
|
1213
|
-
s[
|
|
1212
|
+
for (var d in f)
|
|
1213
|
+
s[d] = f[d];
|
|
1214
1214
|
}
|
|
1215
1215
|
n.from && n.alloc && n.allocUnsafe && n.allocUnsafeSlow ? e.exports = a : (c(a, t), t.Buffer = u);
|
|
1216
|
-
function u(f, s,
|
|
1217
|
-
return n(f, s,
|
|
1216
|
+
function u(f, s, d) {
|
|
1217
|
+
return n(f, s, d);
|
|
1218
1218
|
}
|
|
1219
|
-
c(n, u), u.from = function(f, s,
|
|
1219
|
+
c(n, u), u.from = function(f, s, d) {
|
|
1220
1220
|
if (typeof f == "number")
|
|
1221
1221
|
throw new TypeError("Argument must not be a number");
|
|
1222
|
-
return n(f, s,
|
|
1223
|
-
}, u.alloc = function(f, s,
|
|
1222
|
+
return n(f, s, d);
|
|
1223
|
+
}, u.alloc = function(f, s, d) {
|
|
1224
1224
|
if (typeof f != "number")
|
|
1225
1225
|
throw new TypeError("Argument must be a number");
|
|
1226
1226
|
var l = n(f);
|
|
1227
|
-
return s !== void 0 ? typeof
|
|
1227
|
+
return s !== void 0 ? typeof d == "string" ? l.fill(s, d) : l.fill(s) : l.fill(0), l;
|
|
1228
1228
|
}, u.allocUnsafe = function(f) {
|
|
1229
1229
|
if (typeof f != "number")
|
|
1230
1230
|
throw new TypeError("Argument must be a number");
|
|
@@ -1237,11 +1237,11 @@ function kr() {
|
|
|
1237
1237
|
}(Me, Me.exports)), Me.exports;
|
|
1238
1238
|
}
|
|
1239
1239
|
var wt;
|
|
1240
|
-
function
|
|
1240
|
+
function Gr() {
|
|
1241
1241
|
if (wt) return Ze;
|
|
1242
1242
|
wt = 1;
|
|
1243
|
-
var e =
|
|
1244
|
-
switch (
|
|
1243
|
+
var e = Pr().Buffer, t = e.isEncoding || function(p) {
|
|
1244
|
+
switch (p = "" + p, p && p.toLowerCase()) {
|
|
1245
1245
|
case "hex":
|
|
1246
1246
|
case "utf8":
|
|
1247
1247
|
case "utf-8":
|
|
@@ -1258,10 +1258,10 @@ function Pr() {
|
|
|
1258
1258
|
return !1;
|
|
1259
1259
|
}
|
|
1260
1260
|
};
|
|
1261
|
-
function a(
|
|
1262
|
-
if (!
|
|
1263
|
-
for (var
|
|
1264
|
-
switch (
|
|
1261
|
+
function a(p) {
|
|
1262
|
+
if (!p) return "utf8";
|
|
1263
|
+
for (var m; ; )
|
|
1264
|
+
switch (p) {
|
|
1265
1265
|
case "utf8":
|
|
1266
1266
|
case "utf-8":
|
|
1267
1267
|
return "utf8";
|
|
@@ -1276,126 +1276,126 @@ function Pr() {
|
|
|
1276
1276
|
case "base64":
|
|
1277
1277
|
case "ascii":
|
|
1278
1278
|
case "hex":
|
|
1279
|
-
return
|
|
1279
|
+
return p;
|
|
1280
1280
|
default:
|
|
1281
|
-
if (
|
|
1282
|
-
|
|
1281
|
+
if (m) return;
|
|
1282
|
+
p = ("" + p).toLowerCase(), m = !0;
|
|
1283
1283
|
}
|
|
1284
1284
|
}
|
|
1285
|
-
function n(
|
|
1286
|
-
var
|
|
1287
|
-
if (typeof
|
|
1288
|
-
return
|
|
1285
|
+
function n(p) {
|
|
1286
|
+
var m = a(p);
|
|
1287
|
+
if (typeof m != "string" && (e.isEncoding === t || !t(p))) throw new Error("Unknown encoding: " + p);
|
|
1288
|
+
return m || p;
|
|
1289
1289
|
}
|
|
1290
1290
|
Ze.StringDecoder = c;
|
|
1291
|
-
function c(
|
|
1292
|
-
this.encoding = n(
|
|
1293
|
-
var
|
|
1291
|
+
function c(p) {
|
|
1292
|
+
this.encoding = n(p);
|
|
1293
|
+
var m;
|
|
1294
1294
|
switch (this.encoding) {
|
|
1295
1295
|
case "utf16le":
|
|
1296
|
-
this.text = _, this.end = g,
|
|
1296
|
+
this.text = _, this.end = g, m = 4;
|
|
1297
1297
|
break;
|
|
1298
1298
|
case "utf8":
|
|
1299
|
-
this.fillLast =
|
|
1299
|
+
this.fillLast = d, m = 4;
|
|
1300
1300
|
break;
|
|
1301
1301
|
case "base64":
|
|
1302
|
-
this.text = E, this.end = x,
|
|
1302
|
+
this.text = E, this.end = x, m = 3;
|
|
1303
1303
|
break;
|
|
1304
1304
|
default:
|
|
1305
1305
|
this.write = A, this.end = T;
|
|
1306
1306
|
return;
|
|
1307
1307
|
}
|
|
1308
|
-
this.lastNeed = 0, this.lastTotal = 0, this.lastChar = e.allocUnsafe(
|
|
1308
|
+
this.lastNeed = 0, this.lastTotal = 0, this.lastChar = e.allocUnsafe(m);
|
|
1309
1309
|
}
|
|
1310
|
-
c.prototype.write = function(
|
|
1311
|
-
if (
|
|
1312
|
-
var
|
|
1310
|
+
c.prototype.write = function(p) {
|
|
1311
|
+
if (p.length === 0) return "";
|
|
1312
|
+
var m, v;
|
|
1313
1313
|
if (this.lastNeed) {
|
|
1314
|
-
if (
|
|
1315
|
-
|
|
1314
|
+
if (m = this.fillLast(p), m === void 0) return "";
|
|
1315
|
+
v = this.lastNeed, this.lastNeed = 0;
|
|
1316
1316
|
} else
|
|
1317
|
-
|
|
1318
|
-
return
|
|
1319
|
-
}, c.prototype.end =
|
|
1320
|
-
if (this.lastNeed <=
|
|
1321
|
-
return
|
|
1322
|
-
|
|
1317
|
+
v = 0;
|
|
1318
|
+
return v < p.length ? m ? m + this.text(p, v) : this.text(p, v) : m || "";
|
|
1319
|
+
}, c.prototype.end = b, c.prototype.text = l, c.prototype.fillLast = function(p) {
|
|
1320
|
+
if (this.lastNeed <= p.length)
|
|
1321
|
+
return p.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
1322
|
+
p.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, p.length), this.lastNeed -= p.length;
|
|
1323
1323
|
};
|
|
1324
|
-
function u(
|
|
1325
|
-
return
|
|
1324
|
+
function u(p) {
|
|
1325
|
+
return p <= 127 ? 0 : p >> 5 === 6 ? 2 : p >> 4 === 14 ? 3 : p >> 3 === 30 ? 4 : p >> 6 === 2 ? -1 : -2;
|
|
1326
1326
|
}
|
|
1327
|
-
function f(
|
|
1328
|
-
var y =
|
|
1329
|
-
if (y <
|
|
1330
|
-
var I = u(
|
|
1331
|
-
return I >= 0 ? (I > 0 && (
|
|
1327
|
+
function f(p, m, v) {
|
|
1328
|
+
var y = m.length - 1;
|
|
1329
|
+
if (y < v) return 0;
|
|
1330
|
+
var I = u(m[y]);
|
|
1331
|
+
return I >= 0 ? (I > 0 && (p.lastNeed = I - 1), I) : --y < v || I === -2 ? 0 : (I = u(m[y]), I >= 0 ? (I > 0 && (p.lastNeed = I - 2), I) : --y < v || I === -2 ? 0 : (I = u(m[y]), I >= 0 ? (I > 0 && (I === 2 ? I = 0 : p.lastNeed = I - 3), I) : 0));
|
|
1332
1332
|
}
|
|
1333
|
-
function s(
|
|
1334
|
-
if ((
|
|
1335
|
-
return
|
|
1336
|
-
if (
|
|
1337
|
-
if ((
|
|
1338
|
-
return
|
|
1339
|
-
if (
|
|
1340
|
-
return
|
|
1333
|
+
function s(p, m, v) {
|
|
1334
|
+
if ((m[0] & 192) !== 128)
|
|
1335
|
+
return p.lastNeed = 0, "�";
|
|
1336
|
+
if (p.lastNeed > 1 && m.length > 1) {
|
|
1337
|
+
if ((m[1] & 192) !== 128)
|
|
1338
|
+
return p.lastNeed = 1, "�";
|
|
1339
|
+
if (p.lastNeed > 2 && m.length > 2 && (m[2] & 192) !== 128)
|
|
1340
|
+
return p.lastNeed = 2, "�";
|
|
1341
1341
|
}
|
|
1342
1342
|
}
|
|
1343
|
-
function p
|
|
1344
|
-
var
|
|
1345
|
-
if (
|
|
1346
|
-
if (this.lastNeed <=
|
|
1347
|
-
return
|
|
1348
|
-
|
|
1343
|
+
function d(p) {
|
|
1344
|
+
var m = this.lastTotal - this.lastNeed, v = s(this, p);
|
|
1345
|
+
if (v !== void 0) return v;
|
|
1346
|
+
if (this.lastNeed <= p.length)
|
|
1347
|
+
return p.copy(this.lastChar, m, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
1348
|
+
p.copy(this.lastChar, m, 0, p.length), this.lastNeed -= p.length;
|
|
1349
1349
|
}
|
|
1350
|
-
function l(
|
|
1351
|
-
var
|
|
1352
|
-
if (!this.lastNeed) return
|
|
1353
|
-
this.lastTotal =
|
|
1354
|
-
var y =
|
|
1355
|
-
return
|
|
1350
|
+
function l(p, m) {
|
|
1351
|
+
var v = f(this, p, m);
|
|
1352
|
+
if (!this.lastNeed) return p.toString("utf8", m);
|
|
1353
|
+
this.lastTotal = v;
|
|
1354
|
+
var y = p.length - (v - this.lastNeed);
|
|
1355
|
+
return p.copy(this.lastChar, 0, y), p.toString("utf8", m, y);
|
|
1356
1356
|
}
|
|
1357
|
-
function
|
|
1358
|
-
var
|
|
1359
|
-
return this.lastNeed ?
|
|
1357
|
+
function b(p) {
|
|
1358
|
+
var m = p && p.length ? this.write(p) : "";
|
|
1359
|
+
return this.lastNeed ? m + "�" : m;
|
|
1360
1360
|
}
|
|
1361
|
-
function _(
|
|
1362
|
-
if ((
|
|
1363
|
-
var
|
|
1364
|
-
if (
|
|
1365
|
-
var y =
|
|
1361
|
+
function _(p, m) {
|
|
1362
|
+
if ((p.length - m) % 2 === 0) {
|
|
1363
|
+
var v = p.toString("utf16le", m);
|
|
1364
|
+
if (v) {
|
|
1365
|
+
var y = v.charCodeAt(v.length - 1);
|
|
1366
1366
|
if (y >= 55296 && y <= 56319)
|
|
1367
|
-
return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] =
|
|
1367
|
+
return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = p[p.length - 2], this.lastChar[1] = p[p.length - 1], v.slice(0, -1);
|
|
1368
1368
|
}
|
|
1369
|
-
return
|
|
1369
|
+
return v;
|
|
1370
1370
|
}
|
|
1371
|
-
return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] =
|
|
1371
|
+
return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = p[p.length - 1], p.toString("utf16le", m, p.length - 1);
|
|
1372
1372
|
}
|
|
1373
|
-
function g(
|
|
1374
|
-
var
|
|
1373
|
+
function g(p) {
|
|
1374
|
+
var m = p && p.length ? this.write(p) : "";
|
|
1375
1375
|
if (this.lastNeed) {
|
|
1376
|
-
var
|
|
1377
|
-
return
|
|
1376
|
+
var v = this.lastTotal - this.lastNeed;
|
|
1377
|
+
return m + this.lastChar.toString("utf16le", 0, v);
|
|
1378
1378
|
}
|
|
1379
|
-
return
|
|
1379
|
+
return m;
|
|
1380
1380
|
}
|
|
1381
|
-
function E(
|
|
1382
|
-
var
|
|
1383
|
-
return
|
|
1381
|
+
function E(p, m) {
|
|
1382
|
+
var v = (p.length - m) % 3;
|
|
1383
|
+
return v === 0 ? p.toString("base64", m) : (this.lastNeed = 3 - v, this.lastTotal = 3, v === 1 ? this.lastChar[0] = p[p.length - 1] : (this.lastChar[0] = p[p.length - 2], this.lastChar[1] = p[p.length - 1]), p.toString("base64", m, p.length - v));
|
|
1384
1384
|
}
|
|
1385
|
-
function x(
|
|
1386
|
-
var
|
|
1387
|
-
return this.lastNeed ?
|
|
1385
|
+
function x(p) {
|
|
1386
|
+
var m = p && p.length ? this.write(p) : "";
|
|
1387
|
+
return this.lastNeed ? m + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : m;
|
|
1388
1388
|
}
|
|
1389
|
-
function A(
|
|
1390
|
-
return
|
|
1389
|
+
function A(p) {
|
|
1390
|
+
return p.toString(this.encoding);
|
|
1391
1391
|
}
|
|
1392
|
-
function T(
|
|
1393
|
-
return
|
|
1392
|
+
function T(p) {
|
|
1393
|
+
return p && p.length ? this.write(p) : "";
|
|
1394
1394
|
}
|
|
1395
1395
|
return Ze;
|
|
1396
1396
|
}
|
|
1397
1397
|
var $e, At;
|
|
1398
|
-
function
|
|
1398
|
+
function Hr() {
|
|
1399
1399
|
if (At) return $e;
|
|
1400
1400
|
At = 1;
|
|
1401
1401
|
var e = _e.Buffer;
|
|
@@ -1412,84 +1412,84 @@ function Gr() {
|
|
|
1412
1412
|
// Codec.
|
|
1413
1413
|
_internal: t
|
|
1414
1414
|
};
|
|
1415
|
-
function t(
|
|
1416
|
-
this.enc =
|
|
1415
|
+
function t(d, l) {
|
|
1416
|
+
this.enc = d.encodingName, this.bomAware = d.bomAware, this.enc === "base64" ? this.encoder = u : this.enc === "cesu8" && (this.enc = "utf8", this.encoder = f, e.from("eda0bdedb2a9", "hex").toString() !== "💩" && (this.decoder = s, this.defaultCharUnicode = l.defaultCharUnicode));
|
|
1417
1417
|
}
|
|
1418
1418
|
t.prototype.encoder = c, t.prototype.decoder = n;
|
|
1419
|
-
var a =
|
|
1419
|
+
var a = Gr().StringDecoder;
|
|
1420
1420
|
a.prototype.end || (a.prototype.end = function() {
|
|
1421
1421
|
});
|
|
1422
|
-
function n(
|
|
1422
|
+
function n(d, l) {
|
|
1423
1423
|
this.decoder = new a(l.enc);
|
|
1424
1424
|
}
|
|
1425
|
-
n.prototype.write = function(
|
|
1426
|
-
return e.isBuffer(
|
|
1425
|
+
n.prototype.write = function(d) {
|
|
1426
|
+
return e.isBuffer(d) || (d = e.from(d)), this.decoder.write(d);
|
|
1427
1427
|
}, n.prototype.end = function() {
|
|
1428
1428
|
return this.decoder.end();
|
|
1429
1429
|
};
|
|
1430
|
-
function c(
|
|
1430
|
+
function c(d, l) {
|
|
1431
1431
|
this.enc = l.enc;
|
|
1432
1432
|
}
|
|
1433
|
-
c.prototype.write = function(
|
|
1434
|
-
return e.from(
|
|
1433
|
+
c.prototype.write = function(d) {
|
|
1434
|
+
return e.from(d, this.enc);
|
|
1435
1435
|
}, c.prototype.end = function() {
|
|
1436
1436
|
};
|
|
1437
|
-
function u(
|
|
1437
|
+
function u(d, l) {
|
|
1438
1438
|
this.prevStr = "";
|
|
1439
1439
|
}
|
|
1440
|
-
u.prototype.write = function(
|
|
1441
|
-
|
|
1442
|
-
var l =
|
|
1443
|
-
return this.prevStr =
|
|
1440
|
+
u.prototype.write = function(d) {
|
|
1441
|
+
d = this.prevStr + d;
|
|
1442
|
+
var l = d.length - d.length % 4;
|
|
1443
|
+
return this.prevStr = d.slice(l), d = d.slice(0, l), e.from(d, "base64");
|
|
1444
1444
|
}, u.prototype.end = function() {
|
|
1445
1445
|
return e.from(this.prevStr, "base64");
|
|
1446
1446
|
};
|
|
1447
|
-
function f(
|
|
1447
|
+
function f(d, l) {
|
|
1448
1448
|
}
|
|
1449
|
-
f.prototype.write = function(
|
|
1450
|
-
for (var l = e.alloc(
|
|
1451
|
-
var g =
|
|
1452
|
-
g < 128 ? l[
|
|
1449
|
+
f.prototype.write = function(d) {
|
|
1450
|
+
for (var l = e.alloc(d.length * 3), b = 0, _ = 0; _ < d.length; _++) {
|
|
1451
|
+
var g = d.charCodeAt(_);
|
|
1452
|
+
g < 128 ? l[b++] = g : g < 2048 ? (l[b++] = 192 + (g >>> 6), l[b++] = 128 + (g & 63)) : (l[b++] = 224 + (g >>> 12), l[b++] = 128 + (g >>> 6 & 63), l[b++] = 128 + (g & 63));
|
|
1453
1453
|
}
|
|
1454
|
-
return l.slice(0,
|
|
1454
|
+
return l.slice(0, b);
|
|
1455
1455
|
}, f.prototype.end = function() {
|
|
1456
1456
|
};
|
|
1457
|
-
function s(
|
|
1457
|
+
function s(d, l) {
|
|
1458
1458
|
this.acc = 0, this.contBytes = 0, this.accBytes = 0, this.defaultCharUnicode = l.defaultCharUnicode;
|
|
1459
1459
|
}
|
|
1460
|
-
return s.prototype.write = function(
|
|
1461
|
-
for (var l = this.acc,
|
|
1462
|
-
var x =
|
|
1463
|
-
(x & 192) !== 128 ? (
|
|
1460
|
+
return s.prototype.write = function(d) {
|
|
1461
|
+
for (var l = this.acc, b = this.contBytes, _ = this.accBytes, g = "", E = 0; E < d.length; E++) {
|
|
1462
|
+
var x = d[E];
|
|
1463
|
+
(x & 192) !== 128 ? (b > 0 && (g += this.defaultCharUnicode, b = 0), x < 128 ? g += String.fromCharCode(x) : x < 224 ? (l = x & 31, b = 1, _ = 1) : x < 240 ? (l = x & 15, b = 2, _ = 1) : g += this.defaultCharUnicode) : b > 0 ? (l = l << 6 | x & 63, b--, _++, b === 0 && (_ === 2 && l < 128 && l > 0 ? g += this.defaultCharUnicode : _ === 3 && l < 2048 ? g += this.defaultCharUnicode : g += String.fromCharCode(l))) : g += this.defaultCharUnicode;
|
|
1464
1464
|
}
|
|
1465
|
-
return this.acc = l, this.contBytes =
|
|
1465
|
+
return this.acc = l, this.contBytes = b, this.accBytes = _, g;
|
|
1466
1466
|
}, s.prototype.end = function() {
|
|
1467
|
-
var
|
|
1468
|
-
return this.contBytes > 0 && (
|
|
1467
|
+
var d = 0;
|
|
1468
|
+
return this.contBytes > 0 && (d += this.defaultCharUnicode), d;
|
|
1469
1469
|
}, $e;
|
|
1470
1470
|
}
|
|
1471
1471
|
var me = {}, xt;
|
|
1472
|
-
function
|
|
1472
|
+
function Yr() {
|
|
1473
1473
|
if (xt) return me;
|
|
1474
1474
|
xt = 1;
|
|
1475
1475
|
var e = _e.Buffer;
|
|
1476
1476
|
me._utf32 = t;
|
|
1477
|
-
function t(l,
|
|
1478
|
-
this.iconv =
|
|
1477
|
+
function t(l, b) {
|
|
1478
|
+
this.iconv = b, this.bomAware = !0, this.isLE = l.isLE;
|
|
1479
1479
|
}
|
|
1480
1480
|
me.utf32le = { type: "_utf32", isLE: !0 }, me.utf32be = { type: "_utf32", isLE: !1 }, me.ucs4le = "utf32le", me.ucs4be = "utf32be", t.prototype.encoder = a, t.prototype.decoder = n;
|
|
1481
|
-
function a(l,
|
|
1482
|
-
this.isLE =
|
|
1481
|
+
function a(l, b) {
|
|
1482
|
+
this.isLE = b.isLE, this.highSurrogate = 0;
|
|
1483
1483
|
}
|
|
1484
1484
|
a.prototype.write = function(l) {
|
|
1485
|
-
for (var
|
|
1486
|
-
var A =
|
|
1485
|
+
for (var b = e.from(l, "ucs2"), _ = e.alloc(b.length * 2), g = this.isLE ? _.writeUInt32LE : _.writeUInt32BE, E = 0, x = 0; x < b.length; x += 2) {
|
|
1486
|
+
var A = b.readUInt16LE(x), T = 55296 <= A && A < 56320, p = 56320 <= A && A < 57344;
|
|
1487
1487
|
if (this.highSurrogate)
|
|
1488
|
-
if (T || !
|
|
1488
|
+
if (T || !p)
|
|
1489
1489
|
g.call(_, this.highSurrogate, E), E += 4;
|
|
1490
1490
|
else {
|
|
1491
|
-
var
|
|
1492
|
-
g.call(_,
|
|
1491
|
+
var m = (this.highSurrogate - 55296 << 10 | A - 56320) + 65536;
|
|
1492
|
+
g.call(_, m, E), E += 4, this.highSurrogate = 0;
|
|
1493
1493
|
continue;
|
|
1494
1494
|
}
|
|
1495
1495
|
T ? this.highSurrogate = A : (g.call(_, A, E), E += 4, this.highSurrogate = 0);
|
|
@@ -1501,57 +1501,57 @@ function Hr() {
|
|
|
1501
1501
|
return this.isLE ? l.writeUInt32LE(this.highSurrogate, 0) : l.writeUInt32BE(this.highSurrogate, 0), this.highSurrogate = 0, l;
|
|
1502
1502
|
}
|
|
1503
1503
|
};
|
|
1504
|
-
function n(l,
|
|
1505
|
-
this.isLE =
|
|
1504
|
+
function n(l, b) {
|
|
1505
|
+
this.isLE = b.isLE, this.badChar = b.iconv.defaultCharUnicode.charCodeAt(0), this.overflow = [];
|
|
1506
1506
|
}
|
|
1507
1507
|
n.prototype.write = function(l) {
|
|
1508
1508
|
if (l.length === 0)
|
|
1509
1509
|
return "";
|
|
1510
|
-
var
|
|
1510
|
+
var b = 0, _ = 0, g = e.alloc(l.length + 4), E = 0, x = this.isLE, A = this.overflow, T = this.badChar;
|
|
1511
1511
|
if (A.length > 0) {
|
|
1512
|
-
for (;
|
|
1513
|
-
A.push(l[
|
|
1514
|
-
A.length === 4 && (x ? _ = A[
|
|
1512
|
+
for (; b < l.length && A.length < 4; b++)
|
|
1513
|
+
A.push(l[b]);
|
|
1514
|
+
A.length === 4 && (x ? _ = A[b] | A[b + 1] << 8 | A[b + 2] << 16 | A[b + 3] << 24 : _ = A[b + 3] | A[b + 2] << 8 | A[b + 1] << 16 | A[b] << 24, A.length = 0, E = c(g, E, _, T));
|
|
1515
1515
|
}
|
|
1516
|
-
for (;
|
|
1517
|
-
x ? _ = l[
|
|
1518
|
-
for (;
|
|
1519
|
-
A.push(l[
|
|
1516
|
+
for (; b < l.length - 3; b += 4)
|
|
1517
|
+
x ? _ = l[b] | l[b + 1] << 8 | l[b + 2] << 16 | l[b + 3] << 24 : _ = l[b + 3] | l[b + 2] << 8 | l[b + 1] << 16 | l[b] << 24, E = c(g, E, _, T);
|
|
1518
|
+
for (; b < l.length; b++)
|
|
1519
|
+
A.push(l[b]);
|
|
1520
1520
|
return g.slice(0, E).toString("ucs2");
|
|
1521
1521
|
};
|
|
1522
|
-
function c(l,
|
|
1522
|
+
function c(l, b, _, g) {
|
|
1523
1523
|
if ((_ < 0 || _ > 1114111) && (_ = g), _ >= 65536) {
|
|
1524
1524
|
_ -= 65536;
|
|
1525
1525
|
var E = 55296 | _ >> 10;
|
|
1526
|
-
l[
|
|
1526
|
+
l[b++] = E & 255, l[b++] = E >> 8;
|
|
1527
1527
|
var _ = 56320 | _ & 1023;
|
|
1528
1528
|
}
|
|
1529
|
-
return l[
|
|
1529
|
+
return l[b++] = _ & 255, l[b++] = _ >> 8, b;
|
|
1530
1530
|
}
|
|
1531
1531
|
n.prototype.end = function() {
|
|
1532
1532
|
this.overflow.length = 0;
|
|
1533
1533
|
}, me.utf32 = u, me.ucs4 = "utf32";
|
|
1534
|
-
function u(l,
|
|
1535
|
-
this.iconv =
|
|
1534
|
+
function u(l, b) {
|
|
1535
|
+
this.iconv = b;
|
|
1536
1536
|
}
|
|
1537
1537
|
u.prototype.encoder = f, u.prototype.decoder = s;
|
|
1538
|
-
function f(l,
|
|
1539
|
-
l = l || {}, l.addBOM === void 0 && (l.addBOM = !0), this.encoder =
|
|
1538
|
+
function f(l, b) {
|
|
1539
|
+
l = l || {}, l.addBOM === void 0 && (l.addBOM = !0), this.encoder = b.iconv.getEncoder(l.defaultEncoding || "utf-32le", l);
|
|
1540
1540
|
}
|
|
1541
1541
|
f.prototype.write = function(l) {
|
|
1542
1542
|
return this.encoder.write(l);
|
|
1543
1543
|
}, f.prototype.end = function() {
|
|
1544
1544
|
return this.encoder.end();
|
|
1545
1545
|
};
|
|
1546
|
-
function s(l,
|
|
1547
|
-
this.decoder = null, this.initialBufs = [], this.initialBufsLen = 0, this.options = l || {}, this.iconv =
|
|
1546
|
+
function s(l, b) {
|
|
1547
|
+
this.decoder = null, this.initialBufs = [], this.initialBufsLen = 0, this.options = l || {}, this.iconv = b.iconv;
|
|
1548
1548
|
}
|
|
1549
1549
|
s.prototype.write = function(l) {
|
|
1550
1550
|
if (!this.decoder) {
|
|
1551
1551
|
if (this.initialBufs.push(l), this.initialBufsLen += l.length, this.initialBufsLen < 32)
|
|
1552
1552
|
return "";
|
|
1553
|
-
var
|
|
1554
|
-
this.decoder = this.iconv.getDecoder(
|
|
1553
|
+
var b = d(this.initialBufs, this.options.defaultEncoding);
|
|
1554
|
+
this.decoder = this.iconv.getDecoder(b, this.options);
|
|
1555
1555
|
for (var _ = "", g = 0; g < this.initialBufs.length; g++)
|
|
1556
1556
|
_ += this.decoder.write(this.initialBufs[g]);
|
|
1557
1557
|
return this.initialBufs.length = this.initialBufsLen = 0, _;
|
|
@@ -1559,21 +1559,21 @@ function Hr() {
|
|
|
1559
1559
|
return this.decoder.write(l);
|
|
1560
1560
|
}, s.prototype.end = function() {
|
|
1561
1561
|
if (!this.decoder) {
|
|
1562
|
-
var l =
|
|
1562
|
+
var l = d(this.initialBufs, this.options.defaultEncoding);
|
|
1563
1563
|
this.decoder = this.iconv.getDecoder(l, this.options);
|
|
1564
|
-
for (var
|
|
1565
|
-
|
|
1564
|
+
for (var b = "", _ = 0; _ < this.initialBufs.length; _++)
|
|
1565
|
+
b += this.decoder.write(this.initialBufs[_]);
|
|
1566
1566
|
var g = this.decoder.end();
|
|
1567
|
-
return g && (
|
|
1567
|
+
return g && (b += g), this.initialBufs.length = this.initialBufsLen = 0, b;
|
|
1568
1568
|
}
|
|
1569
1569
|
return this.decoder.end();
|
|
1570
1570
|
};
|
|
1571
|
-
function
|
|
1571
|
+
function d(l, b) {
|
|
1572
1572
|
var _ = [], g = 0, E = 0, x = 0, A = 0, T = 0;
|
|
1573
1573
|
e:
|
|
1574
|
-
for (var
|
|
1575
|
-
for (var
|
|
1576
|
-
if (_.push(v
|
|
1574
|
+
for (var p = 0; p < l.length; p++)
|
|
1575
|
+
for (var m = l[p], v = 0; v < m.length; v++)
|
|
1576
|
+
if (_.push(m[v]), _.length === 4) {
|
|
1577
1577
|
if (g === 0) {
|
|
1578
1578
|
if (_[0] === 255 && _[1] === 254 && _[2] === 0 && _[3] === 0)
|
|
1579
1579
|
return "utf-32le";
|
|
@@ -1583,12 +1583,12 @@ function Hr() {
|
|
|
1583
1583
|
if ((_[0] !== 0 || _[1] > 16) && x++, (_[3] !== 0 || _[2] > 16) && E++, _[0] === 0 && _[1] === 0 && (_[2] !== 0 || _[3] !== 0) && T++, (_[0] !== 0 || _[1] !== 0) && _[2] === 0 && _[3] === 0 && A++, _.length = 0, g++, g >= 100)
|
|
1584
1584
|
break e;
|
|
1585
1585
|
}
|
|
1586
|
-
return T - x > A - E ? "utf-32be" : T - x < A - E ? "utf-32le" :
|
|
1586
|
+
return T - x > A - E ? "utf-32be" : T - x < A - E ? "utf-32le" : b || "utf-32le";
|
|
1587
1587
|
}
|
|
1588
1588
|
return me;
|
|
1589
1589
|
}
|
|
1590
1590
|
var Ce = {}, It;
|
|
1591
|
-
function
|
|
1591
|
+
function jr() {
|
|
1592
1592
|
if (It) return Ce;
|
|
1593
1593
|
It = 1;
|
|
1594
1594
|
var e = _e.Buffer;
|
|
@@ -1598,10 +1598,10 @@ function Yr() {
|
|
|
1598
1598
|
t.prototype.encoder = a, t.prototype.decoder = n, t.prototype.bomAware = !0;
|
|
1599
1599
|
function a() {
|
|
1600
1600
|
}
|
|
1601
|
-
a.prototype.write = function(
|
|
1602
|
-
for (var l = e.from(
|
|
1603
|
-
var _ = l[
|
|
1604
|
-
l[
|
|
1601
|
+
a.prototype.write = function(d) {
|
|
1602
|
+
for (var l = e.from(d, "ucs2"), b = 0; b < l.length; b += 2) {
|
|
1603
|
+
var _ = l[b];
|
|
1604
|
+
l[b] = l[b + 1], l[b + 1] = _;
|
|
1605
1605
|
}
|
|
1606
1606
|
return l;
|
|
1607
1607
|
}, a.prototype.end = function() {
|
|
@@ -1609,64 +1609,64 @@ function Yr() {
|
|
|
1609
1609
|
function n() {
|
|
1610
1610
|
this.overflowByte = -1;
|
|
1611
1611
|
}
|
|
1612
|
-
n.prototype.write = function(
|
|
1613
|
-
if (
|
|
1612
|
+
n.prototype.write = function(d) {
|
|
1613
|
+
if (d.length == 0)
|
|
1614
1614
|
return "";
|
|
1615
|
-
var l = e.alloc(
|
|
1616
|
-
for (this.overflowByte !== -1 && (l[0] =
|
|
1617
|
-
l[_] =
|
|
1618
|
-
return this.overflowByte =
|
|
1615
|
+
var l = e.alloc(d.length + 1), b = 0, _ = 0;
|
|
1616
|
+
for (this.overflowByte !== -1 && (l[0] = d[0], l[1] = this.overflowByte, b = 1, _ = 2); b < d.length - 1; b += 2, _ += 2)
|
|
1617
|
+
l[_] = d[b + 1], l[_ + 1] = d[b];
|
|
1618
|
+
return this.overflowByte = b == d.length - 1 ? d[d.length - 1] : -1, l.slice(0, _).toString("ucs2");
|
|
1619
1619
|
}, n.prototype.end = function() {
|
|
1620
1620
|
this.overflowByte = -1;
|
|
1621
1621
|
}, Ce.utf16 = c;
|
|
1622
|
-
function c(
|
|
1622
|
+
function c(d, l) {
|
|
1623
1623
|
this.iconv = l;
|
|
1624
1624
|
}
|
|
1625
1625
|
c.prototype.encoder = u, c.prototype.decoder = f;
|
|
1626
|
-
function u(
|
|
1627
|
-
|
|
1626
|
+
function u(d, l) {
|
|
1627
|
+
d = d || {}, d.addBOM === void 0 && (d.addBOM = !0), this.encoder = l.iconv.getEncoder("utf-16le", d);
|
|
1628
1628
|
}
|
|
1629
|
-
u.prototype.write = function(
|
|
1630
|
-
return this.encoder.write(
|
|
1629
|
+
u.prototype.write = function(d) {
|
|
1630
|
+
return this.encoder.write(d);
|
|
1631
1631
|
}, u.prototype.end = function() {
|
|
1632
1632
|
return this.encoder.end();
|
|
1633
1633
|
};
|
|
1634
|
-
function f(
|
|
1635
|
-
this.decoder = null, this.initialBufs = [], this.initialBufsLen = 0, this.options =
|
|
1634
|
+
function f(d, l) {
|
|
1635
|
+
this.decoder = null, this.initialBufs = [], this.initialBufsLen = 0, this.options = d || {}, this.iconv = l.iconv;
|
|
1636
1636
|
}
|
|
1637
|
-
f.prototype.write = function(
|
|
1637
|
+
f.prototype.write = function(d) {
|
|
1638
1638
|
if (!this.decoder) {
|
|
1639
|
-
if (this.initialBufs.push(
|
|
1639
|
+
if (this.initialBufs.push(d), this.initialBufsLen += d.length, this.initialBufsLen < 16)
|
|
1640
1640
|
return "";
|
|
1641
1641
|
var l = s(this.initialBufs, this.options.defaultEncoding);
|
|
1642
1642
|
this.decoder = this.iconv.getDecoder(l, this.options);
|
|
1643
|
-
for (var
|
|
1644
|
-
|
|
1645
|
-
return this.initialBufs.length = this.initialBufsLen = 0,
|
|
1643
|
+
for (var b = "", _ = 0; _ < this.initialBufs.length; _++)
|
|
1644
|
+
b += this.decoder.write(this.initialBufs[_]);
|
|
1645
|
+
return this.initialBufs.length = this.initialBufsLen = 0, b;
|
|
1646
1646
|
}
|
|
1647
|
-
return this.decoder.write(
|
|
1647
|
+
return this.decoder.write(d);
|
|
1648
1648
|
}, f.prototype.end = function() {
|
|
1649
1649
|
if (!this.decoder) {
|
|
1650
|
-
var
|
|
1651
|
-
this.decoder = this.iconv.getDecoder(
|
|
1652
|
-
for (var l = "",
|
|
1653
|
-
l += this.decoder.write(this.initialBufs[
|
|
1650
|
+
var d = s(this.initialBufs, this.options.defaultEncoding);
|
|
1651
|
+
this.decoder = this.iconv.getDecoder(d, this.options);
|
|
1652
|
+
for (var l = "", b = 0; b < this.initialBufs.length; b++)
|
|
1653
|
+
l += this.decoder.write(this.initialBufs[b]);
|
|
1654
1654
|
var _ = this.decoder.end();
|
|
1655
1655
|
return _ && (l += _), this.initialBufs.length = this.initialBufsLen = 0, l;
|
|
1656
1656
|
}
|
|
1657
1657
|
return this.decoder.end();
|
|
1658
1658
|
};
|
|
1659
|
-
function s(
|
|
1660
|
-
var
|
|
1659
|
+
function s(d, l) {
|
|
1660
|
+
var b = [], _ = 0, g = 0, E = 0;
|
|
1661
1661
|
e:
|
|
1662
|
-
for (var x = 0; x <
|
|
1663
|
-
for (var A =
|
|
1664
|
-
if (
|
|
1662
|
+
for (var x = 0; x < d.length; x++)
|
|
1663
|
+
for (var A = d[x], T = 0; T < A.length; T++)
|
|
1664
|
+
if (b.push(A[T]), b.length === 2) {
|
|
1665
1665
|
if (_ === 0) {
|
|
1666
|
-
if (
|
|
1667
|
-
if (
|
|
1666
|
+
if (b[0] === 255 && b[1] === 254) return "utf-16le";
|
|
1667
|
+
if (b[0] === 254 && b[1] === 255) return "utf-16be";
|
|
1668
1668
|
}
|
|
1669
|
-
if (
|
|
1669
|
+
if (b[0] === 0 && b[1] !== 0 && E++, b[0] !== 0 && b[1] === 0 && g++, b.length = 0, _++, _ >= 100)
|
|
1670
1670
|
break e;
|
|
1671
1671
|
}
|
|
1672
1672
|
return E > g ? "utf-16be" : E < g ? "utf-16le" : l || "utf-16le";
|
|
@@ -1674,7 +1674,7 @@ function Yr() {
|
|
|
1674
1674
|
return Ce;
|
|
1675
1675
|
}
|
|
1676
1676
|
var De = {}, Tt;
|
|
1677
|
-
function
|
|
1677
|
+
function qr() {
|
|
1678
1678
|
if (Tt) return De;
|
|
1679
1679
|
Tt = 1;
|
|
1680
1680
|
var e = _e.Buffer;
|
|
@@ -1698,27 +1698,27 @@ function jr() {
|
|
|
1698
1698
|
}
|
|
1699
1699
|
for (var u = /[A-Za-z0-9\/+]/, f = [], s = 0; s < 256; s++)
|
|
1700
1700
|
f[s] = u.test(String.fromCharCode(s));
|
|
1701
|
-
var
|
|
1701
|
+
var d = 43, l = 45, b = 38;
|
|
1702
1702
|
c.prototype.write = function(A) {
|
|
1703
|
-
for (var T = "",
|
|
1704
|
-
if (!
|
|
1705
|
-
A[y] ==
|
|
1703
|
+
for (var T = "", p = 0, m = this.inBase64, v = this.base64Accum, y = 0; y < A.length; y++)
|
|
1704
|
+
if (!m)
|
|
1705
|
+
A[y] == d && (T += this.iconv.decode(A.slice(p, y), "ascii"), p = y + 1, m = !0);
|
|
1706
1706
|
else if (!f[A[y]]) {
|
|
1707
|
-
if (y ==
|
|
1707
|
+
if (y == p && A[y] == l)
|
|
1708
1708
|
T += "+";
|
|
1709
1709
|
else {
|
|
1710
|
-
var I =
|
|
1710
|
+
var I = v + this.iconv.decode(A.slice(p, y), "ascii");
|
|
1711
1711
|
T += this.iconv.decode(e.from(I, "base64"), "utf16-be");
|
|
1712
1712
|
}
|
|
1713
|
-
A[y] != l && y--,
|
|
1713
|
+
A[y] != l && y--, p = y + 1, m = !1, v = "";
|
|
1714
1714
|
}
|
|
1715
|
-
if (!
|
|
1716
|
-
T += this.iconv.decode(A.slice(
|
|
1715
|
+
if (!m)
|
|
1716
|
+
T += this.iconv.decode(A.slice(p), "ascii");
|
|
1717
1717
|
else {
|
|
1718
|
-
var I =
|
|
1719
|
-
|
|
1718
|
+
var I = v + this.iconv.decode(A.slice(p), "ascii"), N = I.length - I.length % 8;
|
|
1719
|
+
v = I.slice(N), I = I.slice(0, N), T += this.iconv.decode(e.from(I, "base64"), "utf16-be");
|
|
1720
1720
|
}
|
|
1721
|
-
return this.inBase64 =
|
|
1721
|
+
return this.inBase64 = m, this.base64Accum = v, T;
|
|
1722
1722
|
}, c.prototype.end = function() {
|
|
1723
1723
|
var A = "";
|
|
1724
1724
|
return this.inBase64 && this.base64Accum.length > 0 && (A = this.iconv.decode(e.from(this.base64Accum, "base64"), "utf16-be")), this.inBase64 = !1, this.base64Accum = "", A;
|
|
@@ -1731,11 +1731,11 @@ function jr() {
|
|
|
1731
1731
|
this.iconv = T.iconv, this.inBase64 = !1, this.base64Accum = e.alloc(6), this.base64AccumIdx = 0;
|
|
1732
1732
|
}
|
|
1733
1733
|
g.prototype.write = function(A) {
|
|
1734
|
-
for (var T = this.inBase64,
|
|
1734
|
+
for (var T = this.inBase64, p = this.base64Accum, m = this.base64AccumIdx, v = e.alloc(A.length * 5 + 10), y = 0, I = 0; I < A.length; I++) {
|
|
1735
1735
|
var N = A.charCodeAt(I);
|
|
1736
|
-
32 <= N && N <= 126 ? (T && (
|
|
1736
|
+
32 <= N && N <= 126 ? (T && (m > 0 && (y += v.write(p.slice(0, m).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), y), m = 0), v[y++] = l, T = !1), T || (v[y++] = N, N === b && (v[y++] = l))) : (T || (v[y++] = b, T = !0), T && (p[m++] = N >> 8, p[m++] = N & 255, m == p.length && (y += v.write(p.toString("base64").replace(/\//g, ","), y), m = 0)));
|
|
1737
1737
|
}
|
|
1738
|
-
return this.inBase64 = T, this.base64AccumIdx =
|
|
1738
|
+
return this.inBase64 = T, this.base64AccumIdx = m, v.slice(0, y);
|
|
1739
1739
|
}, g.prototype.end = function() {
|
|
1740
1740
|
var A = e.alloc(10), T = 0;
|
|
1741
1741
|
return this.inBase64 && (this.base64AccumIdx > 0 && (T += A.write(this.base64Accum.slice(0, this.base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), T), this.base64AccumIdx = 0), A[T++] = l, this.inBase64 = !1), A.slice(0, T);
|
|
@@ -1745,32 +1745,32 @@ function jr() {
|
|
|
1745
1745
|
}
|
|
1746
1746
|
var x = f.slice();
|
|
1747
1747
|
return x[44] = !0, E.prototype.write = function(A) {
|
|
1748
|
-
for (var T = "",
|
|
1749
|
-
if (!
|
|
1750
|
-
A[y] ==
|
|
1748
|
+
for (var T = "", p = 0, m = this.inBase64, v = this.base64Accum, y = 0; y < A.length; y++)
|
|
1749
|
+
if (!m)
|
|
1750
|
+
A[y] == b && (T += this.iconv.decode(A.slice(p, y), "ascii"), p = y + 1, m = !0);
|
|
1751
1751
|
else if (!x[A[y]]) {
|
|
1752
|
-
if (y ==
|
|
1752
|
+
if (y == p && A[y] == l)
|
|
1753
1753
|
T += "&";
|
|
1754
1754
|
else {
|
|
1755
|
-
var I =
|
|
1755
|
+
var I = v + this.iconv.decode(A.slice(p, y), "ascii").replace(/,/g, "/");
|
|
1756
1756
|
T += this.iconv.decode(e.from(I, "base64"), "utf16-be");
|
|
1757
1757
|
}
|
|
1758
|
-
A[y] != l && y--,
|
|
1758
|
+
A[y] != l && y--, p = y + 1, m = !1, v = "";
|
|
1759
1759
|
}
|
|
1760
|
-
if (!
|
|
1761
|
-
T += this.iconv.decode(A.slice(
|
|
1760
|
+
if (!m)
|
|
1761
|
+
T += this.iconv.decode(A.slice(p), "ascii");
|
|
1762
1762
|
else {
|
|
1763
|
-
var I =
|
|
1764
|
-
|
|
1763
|
+
var I = v + this.iconv.decode(A.slice(p), "ascii").replace(/,/g, "/"), N = I.length - I.length % 8;
|
|
1764
|
+
v = I.slice(N), I = I.slice(0, N), T += this.iconv.decode(e.from(I, "base64"), "utf16-be");
|
|
1765
1765
|
}
|
|
1766
|
-
return this.inBase64 =
|
|
1766
|
+
return this.inBase64 = m, this.base64Accum = v, T;
|
|
1767
1767
|
}, E.prototype.end = function() {
|
|
1768
1768
|
var A = "";
|
|
1769
1769
|
return this.inBase64 && this.base64Accum.length > 0 && (A = this.iconv.decode(e.from(this.base64Accum, "base64"), "utf16-be")), this.inBase64 = !1, this.base64Accum = "", A;
|
|
1770
1770
|
}, De;
|
|
1771
1771
|
}
|
|
1772
1772
|
var Ke = {}, St;
|
|
1773
|
-
function
|
|
1773
|
+
function Vr() {
|
|
1774
1774
|
if (St) return Ke;
|
|
1775
1775
|
St = 1;
|
|
1776
1776
|
var e = _e.Buffer;
|
|
@@ -1786,9 +1786,9 @@ function qr() {
|
|
|
1786
1786
|
c.chars = f + c.chars;
|
|
1787
1787
|
}
|
|
1788
1788
|
this.decodeBuf = e.from(c.chars, "ucs2");
|
|
1789
|
-
for (var
|
|
1790
|
-
|
|
1791
|
-
this.encodeBuf =
|
|
1789
|
+
for (var d = e.alloc(65536, u.defaultCharSingleByte.charCodeAt(0)), s = 0; s < c.chars.length; s++)
|
|
1790
|
+
d[c.chars.charCodeAt(s)] = s;
|
|
1791
|
+
this.encodeBuf = d;
|
|
1792
1792
|
}
|
|
1793
1793
|
t.prototype.encoder = a, t.prototype.decoder = n;
|
|
1794
1794
|
function a(c, u) {
|
|
@@ -1804,14 +1804,14 @@ function qr() {
|
|
|
1804
1804
|
this.decodeBuf = u.decodeBuf;
|
|
1805
1805
|
}
|
|
1806
1806
|
return n.prototype.write = function(c) {
|
|
1807
|
-
for (var u = this.decodeBuf, f = e.alloc(c.length * 2), s = 0,
|
|
1808
|
-
s = c[l] * 2,
|
|
1807
|
+
for (var u = this.decodeBuf, f = e.alloc(c.length * 2), s = 0, d = 0, l = 0; l < c.length; l++)
|
|
1808
|
+
s = c[l] * 2, d = l * 2, f[d] = u[s], f[d + 1] = u[s + 1];
|
|
1809
1809
|
return f.toString("ucs2");
|
|
1810
1810
|
}, n.prototype.end = function() {
|
|
1811
1811
|
}, Ke;
|
|
1812
1812
|
}
|
|
1813
1813
|
var Xe, Bt;
|
|
1814
|
-
function
|
|
1814
|
+
function zr() {
|
|
1815
1815
|
return Bt || (Bt = 1, Xe = {
|
|
1816
1816
|
// Not supported by iconv, not sure why.
|
|
1817
1817
|
10029: "maccenteuro",
|
|
@@ -1960,7 +1960,7 @@ function Vr() {
|
|
|
1960
1960
|
}), Xe;
|
|
1961
1961
|
}
|
|
1962
1962
|
var Je, Ut;
|
|
1963
|
-
function
|
|
1963
|
+
function Wr() {
|
|
1964
1964
|
return Ut || (Ut = 1, Je = {
|
|
1965
1965
|
437: "cp437",
|
|
1966
1966
|
737: "cp737",
|
|
@@ -2416,14 +2416,14 @@ function zr() {
|
|
|
2416
2416
|
}), Je;
|
|
2417
2417
|
}
|
|
2418
2418
|
var Qe = {}, Nt;
|
|
2419
|
-
function
|
|
2419
|
+
function Zr() {
|
|
2420
2420
|
if (Nt) return Qe;
|
|
2421
2421
|
Nt = 1;
|
|
2422
2422
|
var e = _e.Buffer;
|
|
2423
|
-
Qe._dbcs =
|
|
2423
|
+
Qe._dbcs = d;
|
|
2424
2424
|
for (var t = -1, a = -2, n = -10, c = -1e3, u = new Array(256), f = -1, s = 0; s < 256; s++)
|
|
2425
2425
|
u[s] = t;
|
|
2426
|
-
function
|
|
2426
|
+
function d(g, E) {
|
|
2427
2427
|
if (this.encodingName = g.encodingName, !g)
|
|
2428
2428
|
throw new Error("DBCS codec is called without the data.");
|
|
2429
2429
|
if (!g.table)
|
|
@@ -2436,25 +2436,25 @@ function Wr() {
|
|
|
2436
2436
|
this.gb18030 = g.gb18030();
|
|
2437
2437
|
var T = this.decodeTables.length;
|
|
2438
2438
|
this.decodeTables.push(u.slice(0));
|
|
2439
|
-
var
|
|
2439
|
+
var p = this.decodeTables.length;
|
|
2440
2440
|
this.decodeTables.push(u.slice(0));
|
|
2441
|
-
for (var
|
|
2442
|
-
for (var
|
|
2443
|
-
if (
|
|
2444
|
-
|
|
2445
|
-
else if (
|
|
2441
|
+
for (var m = this.decodeTables[0], A = 129; A <= 254; A++)
|
|
2442
|
+
for (var v = this.decodeTables[c - m[A]], y = 48; y <= 57; y++) {
|
|
2443
|
+
if (v[y] === t)
|
|
2444
|
+
v[y] = c - T;
|
|
2445
|
+
else if (v[y] > c)
|
|
2446
2446
|
throw new Error("gb18030 decode tables conflict at byte 2");
|
|
2447
|
-
for (var I = this.decodeTables[c -
|
|
2447
|
+
for (var I = this.decodeTables[c - v[y]], N = 129; N <= 254; N++) {
|
|
2448
2448
|
if (I[N] === t)
|
|
2449
|
-
I[N] = c -
|
|
2449
|
+
I[N] = c - p;
|
|
2450
2450
|
else {
|
|
2451
|
-
if (I[N] === c -
|
|
2451
|
+
if (I[N] === c - p)
|
|
2452
2452
|
continue;
|
|
2453
2453
|
if (I[N] > c)
|
|
2454
2454
|
throw new Error("gb18030 decode tables conflict at byte 3");
|
|
2455
2455
|
}
|
|
2456
|
-
for (var
|
|
2457
|
-
|
|
2456
|
+
for (var D = this.decodeTables[c - I[N]], C = 48; C <= 57; C++)
|
|
2457
|
+
D[C] === t && (D[C] = a);
|
|
2458
2458
|
}
|
|
2459
2459
|
}
|
|
2460
2460
|
}
|
|
@@ -2470,11 +2470,11 @@ function Wr() {
|
|
|
2470
2470
|
O[y] = !0;
|
|
2471
2471
|
}
|
|
2472
2472
|
if (this._fillEncodeTable(0, 0, O), g.encodeAdd)
|
|
2473
|
-
for (var
|
|
2474
|
-
Object.prototype.hasOwnProperty.call(g.encodeAdd,
|
|
2473
|
+
for (var k in g.encodeAdd)
|
|
2474
|
+
Object.prototype.hasOwnProperty.call(g.encodeAdd, k) && this._setEncodeChar(k.charCodeAt(0), g.encodeAdd[k]);
|
|
2475
2475
|
this.defCharSB = this.encodeTable[0][E.defaultCharSingleByte.charCodeAt(0)], this.defCharSB === t && (this.defCharSB = this.encodeTable[0]["?"]), this.defCharSB === t && (this.defCharSB = 63);
|
|
2476
2476
|
}
|
|
2477
|
-
|
|
2477
|
+
d.prototype.encoder = l, d.prototype.decoder = b, d.prototype._getDecodeTrieNode = function(g) {
|
|
2478
2478
|
for (var E = []; g > 0; g >>>= 8)
|
|
2479
2479
|
E.push(g & 255);
|
|
2480
2480
|
E.length == 0 && E.push(0);
|
|
@@ -2488,62 +2488,62 @@ function Wr() {
|
|
|
2488
2488
|
throw new Error("Overwrite byte in " + this.encodingName + ", addr: " + g.toString(16));
|
|
2489
2489
|
}
|
|
2490
2490
|
return x;
|
|
2491
|
-
},
|
|
2491
|
+
}, d.prototype._addDecodeChunk = function(g) {
|
|
2492
2492
|
var E = parseInt(g[0], 16), x = this._getDecodeTrieNode(E);
|
|
2493
2493
|
E = E & 255;
|
|
2494
2494
|
for (var A = 1; A < g.length; A++) {
|
|
2495
2495
|
var T = g[A];
|
|
2496
2496
|
if (typeof T == "string")
|
|
2497
|
-
for (var
|
|
2498
|
-
var
|
|
2499
|
-
if (55296 <=
|
|
2500
|
-
var
|
|
2501
|
-
if (56320 <=
|
|
2502
|
-
x[E++] = 65536 + (
|
|
2497
|
+
for (var p = 0; p < T.length; ) {
|
|
2498
|
+
var m = T.charCodeAt(p++);
|
|
2499
|
+
if (55296 <= m && m < 56320) {
|
|
2500
|
+
var v = T.charCodeAt(p++);
|
|
2501
|
+
if (56320 <= v && v < 57344)
|
|
2502
|
+
x[E++] = 65536 + (m - 55296) * 1024 + (v - 56320);
|
|
2503
2503
|
else
|
|
2504
2504
|
throw new Error("Incorrect surrogate pair in " + this.encodingName + " at chunk " + g[0]);
|
|
2505
|
-
} else if (4080 <
|
|
2506
|
-
for (var y = 4095 -
|
|
2507
|
-
I.push(T.charCodeAt(
|
|
2505
|
+
} else if (4080 < m && m <= 4095) {
|
|
2506
|
+
for (var y = 4095 - m + 2, I = [], N = 0; N < y; N++)
|
|
2507
|
+
I.push(T.charCodeAt(p++));
|
|
2508
2508
|
x[E++] = n - this.decodeTableSeq.length, this.decodeTableSeq.push(I);
|
|
2509
2509
|
} else
|
|
2510
|
-
x[E++] =
|
|
2510
|
+
x[E++] = m;
|
|
2511
2511
|
}
|
|
2512
2512
|
else if (typeof T == "number")
|
|
2513
|
-
for (var
|
|
2514
|
-
x[E++] =
|
|
2513
|
+
for (var D = x[E - 1] + 1, p = 0; p < T; p++)
|
|
2514
|
+
x[E++] = D++;
|
|
2515
2515
|
else
|
|
2516
2516
|
throw new Error("Incorrect type '" + typeof T + "' given in " + this.encodingName + " at chunk " + g[0]);
|
|
2517
2517
|
}
|
|
2518
2518
|
if (E > 255)
|
|
2519
2519
|
throw new Error("Incorrect chunk in " + this.encodingName + " at addr " + g[0] + ": too long" + E);
|
|
2520
|
-
},
|
|
2520
|
+
}, d.prototype._getEncodeBucket = function(g) {
|
|
2521
2521
|
var E = g >> 8;
|
|
2522
2522
|
return this.encodeTable[E] === void 0 && (this.encodeTable[E] = u.slice(0)), this.encodeTable[E];
|
|
2523
|
-
},
|
|
2523
|
+
}, d.prototype._setEncodeChar = function(g, E) {
|
|
2524
2524
|
var x = this._getEncodeBucket(g), A = g & 255;
|
|
2525
2525
|
x[A] <= n ? this.encodeTableSeq[n - x[A]][f] = E : x[A] == t && (x[A] = E);
|
|
2526
|
-
},
|
|
2527
|
-
var x = g[0], A = this._getEncodeBucket(x), T = x & 255,
|
|
2528
|
-
A[T] <= n ?
|
|
2529
|
-
for (var
|
|
2530
|
-
var
|
|
2531
|
-
typeof
|
|
2526
|
+
}, d.prototype._setEncodeSequence = function(g, E) {
|
|
2527
|
+
var x = g[0], A = this._getEncodeBucket(x), T = x & 255, p;
|
|
2528
|
+
A[T] <= n ? p = this.encodeTableSeq[n - A[T]] : (p = {}, A[T] !== t && (p[f] = A[T]), A[T] = n - this.encodeTableSeq.length, this.encodeTableSeq.push(p));
|
|
2529
|
+
for (var m = 1; m < g.length - 1; m++) {
|
|
2530
|
+
var v = p[x];
|
|
2531
|
+
typeof v == "object" ? p = v : (p = p[x] = {}, v !== void 0 && (p[f] = v));
|
|
2532
2532
|
}
|
|
2533
|
-
x = g[g.length - 1],
|
|
2534
|
-
},
|
|
2535
|
-
for (var A = this.decodeTables[g], T = !1,
|
|
2536
|
-
var
|
|
2533
|
+
x = g[g.length - 1], p[x] = E;
|
|
2534
|
+
}, d.prototype._fillEncodeTable = function(g, E, x) {
|
|
2535
|
+
for (var A = this.decodeTables[g], T = !1, p = {}, m = 0; m < 256; m++) {
|
|
2536
|
+
var v = A[m], y = E + m;
|
|
2537
2537
|
if (!x[y])
|
|
2538
|
-
if (
|
|
2539
|
-
this._setEncodeChar(
|
|
2540
|
-
else if (
|
|
2541
|
-
var I = c -
|
|
2542
|
-
if (!
|
|
2538
|
+
if (v >= 0)
|
|
2539
|
+
this._setEncodeChar(v, y), T = !0;
|
|
2540
|
+
else if (v <= c) {
|
|
2541
|
+
var I = c - v;
|
|
2542
|
+
if (!p[I]) {
|
|
2543
2543
|
var N = y << 8 >>> 0;
|
|
2544
|
-
this._fillEncodeTable(I, N, x) ? T = !0 :
|
|
2544
|
+
this._fillEncodeTable(I, N, x) ? T = !0 : p[I] = !0;
|
|
2545
2545
|
}
|
|
2546
|
-
} else
|
|
2546
|
+
} else v <= n && (this._setEncodeSequence(this.decodeTableSeq[n - v], y), T = !0);
|
|
2547
2547
|
}
|
|
2548
2548
|
return T;
|
|
2549
2549
|
};
|
|
@@ -2551,50 +2551,50 @@ function Wr() {
|
|
|
2551
2551
|
this.leadSurrogate = -1, this.seqObj = void 0, this.encodeTable = E.encodeTable, this.encodeTableSeq = E.encodeTableSeq, this.defaultCharSingleByte = E.defCharSB, this.gb18030 = E.gb18030;
|
|
2552
2552
|
}
|
|
2553
2553
|
l.prototype.write = function(g) {
|
|
2554
|
-
for (var E = e.alloc(g.length * (this.gb18030 ? 4 : 3)), x = this.leadSurrogate, A = this.seqObj, T = -1,
|
|
2554
|
+
for (var E = e.alloc(g.length * (this.gb18030 ? 4 : 3)), x = this.leadSurrogate, A = this.seqObj, T = -1, p = 0, m = 0; ; ) {
|
|
2555
2555
|
if (T === -1) {
|
|
2556
|
-
if (
|
|
2557
|
-
var
|
|
2556
|
+
if (p == g.length) break;
|
|
2557
|
+
var v = g.charCodeAt(p++);
|
|
2558
2558
|
} else {
|
|
2559
|
-
var
|
|
2559
|
+
var v = T;
|
|
2560
2560
|
T = -1;
|
|
2561
2561
|
}
|
|
2562
|
-
if (55296 <=
|
|
2563
|
-
if (
|
|
2562
|
+
if (55296 <= v && v < 57344)
|
|
2563
|
+
if (v < 56320)
|
|
2564
2564
|
if (x === -1) {
|
|
2565
|
-
x =
|
|
2565
|
+
x = v;
|
|
2566
2566
|
continue;
|
|
2567
2567
|
} else
|
|
2568
|
-
x =
|
|
2568
|
+
x = v, v = t;
|
|
2569
2569
|
else
|
|
2570
|
-
x !== -1 ? (
|
|
2571
|
-
else x !== -1 && (T =
|
|
2570
|
+
x !== -1 ? (v = 65536 + (x - 55296) * 1024 + (v - 56320), x = -1) : v = t;
|
|
2571
|
+
else x !== -1 && (T = v, v = t, x = -1);
|
|
2572
2572
|
var y = t;
|
|
2573
|
-
if (A !== void 0 &&
|
|
2574
|
-
var I = A[
|
|
2573
|
+
if (A !== void 0 && v != t) {
|
|
2574
|
+
var I = A[v];
|
|
2575
2575
|
if (typeof I == "object") {
|
|
2576
2576
|
A = I;
|
|
2577
2577
|
continue;
|
|
2578
|
-
} else typeof I == "number" ? y = I : I == null && (I = A[f], I !== void 0 && (y = I, T =
|
|
2578
|
+
} else typeof I == "number" ? y = I : I == null && (I = A[f], I !== void 0 && (y = I, T = v));
|
|
2579
2579
|
A = void 0;
|
|
2580
|
-
} else if (
|
|
2581
|
-
var N = this.encodeTable[
|
|
2582
|
-
if (N !== void 0 && (y = N[
|
|
2580
|
+
} else if (v >= 0) {
|
|
2581
|
+
var N = this.encodeTable[v >> 8];
|
|
2582
|
+
if (N !== void 0 && (y = N[v & 255]), y <= n) {
|
|
2583
2583
|
A = this.encodeTableSeq[n - y];
|
|
2584
2584
|
continue;
|
|
2585
2585
|
}
|
|
2586
2586
|
if (y == t && this.gb18030) {
|
|
2587
|
-
var
|
|
2588
|
-
if (
|
|
2589
|
-
var y = this.gb18030.gbChars[
|
|
2590
|
-
E[
|
|
2587
|
+
var D = _(this.gb18030.uChars, v);
|
|
2588
|
+
if (D != -1) {
|
|
2589
|
+
var y = this.gb18030.gbChars[D] + (v - this.gb18030.uChars[D]);
|
|
2590
|
+
E[m++] = 129 + Math.floor(y / 12600), y = y % 12600, E[m++] = 48 + Math.floor(y / 1260), y = y % 1260, E[m++] = 129 + Math.floor(y / 10), y = y % 10, E[m++] = 48 + y;
|
|
2591
2591
|
continue;
|
|
2592
2592
|
}
|
|
2593
2593
|
}
|
|
2594
2594
|
}
|
|
2595
|
-
y === t && (y = this.defaultCharSingleByte), y < 256 ? E[
|
|
2595
|
+
y === t && (y = this.defaultCharSingleByte), y < 256 ? E[m++] = y : y < 65536 ? (E[m++] = y >> 8, E[m++] = y & 255) : y < 16777216 ? (E[m++] = y >> 16, E[m++] = y >> 8 & 255, E[m++] = y & 255) : (E[m++] = y >>> 24, E[m++] = y >>> 16 & 255, E[m++] = y >>> 8 & 255, E[m++] = y & 255);
|
|
2596
2596
|
}
|
|
2597
|
-
return this.seqObj = A, this.leadSurrogate = x, E.slice(0,
|
|
2597
|
+
return this.seqObj = A, this.leadSurrogate = x, E.slice(0, m);
|
|
2598
2598
|
}, l.prototype.end = function() {
|
|
2599
2599
|
if (!(this.leadSurrogate === -1 && this.seqObj === void 0)) {
|
|
2600
2600
|
var g = e.alloc(10), E = 0;
|
|
@@ -2605,39 +2605,39 @@ function Wr() {
|
|
|
2605
2605
|
return this.leadSurrogate !== -1 && (g[E++] = this.defaultCharSingleByte, this.leadSurrogate = -1), g.slice(0, E);
|
|
2606
2606
|
}
|
|
2607
2607
|
}, l.prototype.findIdx = _;
|
|
2608
|
-
function
|
|
2608
|
+
function b(g, E) {
|
|
2609
2609
|
this.nodeIdx = 0, this.prevBytes = [], this.decodeTables = E.decodeTables, this.decodeTableSeq = E.decodeTableSeq, this.defaultCharUnicode = E.defaultCharUnicode, this.gb18030 = E.gb18030;
|
|
2610
2610
|
}
|
|
2611
|
-
|
|
2612
|
-
for (var E = e.alloc(g.length * 2), x = this.nodeIdx, A = this.prevBytes, T = this.prevBytes.length,
|
|
2613
|
-
var I =
|
|
2614
|
-
if (!(
|
|
2615
|
-
|
|
2616
|
-
else if (
|
|
2617
|
-
if (
|
|
2618
|
-
var N = (g[
|
|
2611
|
+
b.prototype.write = function(g) {
|
|
2612
|
+
for (var E = e.alloc(g.length * 2), x = this.nodeIdx, A = this.prevBytes, T = this.prevBytes.length, p = -this.prevBytes.length, m, v = 0, y = 0; v < g.length; v++) {
|
|
2613
|
+
var I = v >= 0 ? g[v] : A[v + T], m = this.decodeTables[x][I];
|
|
2614
|
+
if (!(m >= 0)) if (m === t)
|
|
2615
|
+
m = this.defaultCharUnicode.charCodeAt(0), v = p;
|
|
2616
|
+
else if (m === a) {
|
|
2617
|
+
if (v >= 3)
|
|
2618
|
+
var N = (g[v - 3] - 129) * 12600 + (g[v - 2] - 48) * 1260 + (g[v - 1] - 129) * 10 + (I - 48);
|
|
2619
2619
|
else
|
|
2620
|
-
var N = (A[
|
|
2621
|
-
var
|
|
2622
|
-
|
|
2623
|
-
} else if (
|
|
2624
|
-
x = c -
|
|
2620
|
+
var N = (A[v - 3 + T] - 129) * 12600 + ((v - 2 >= 0 ? g[v - 2] : A[v - 2 + T]) - 48) * 1260 + ((v - 1 >= 0 ? g[v - 1] : A[v - 1 + T]) - 129) * 10 + (I - 48);
|
|
2621
|
+
var D = _(this.gb18030.gbChars, N);
|
|
2622
|
+
m = this.gb18030.uChars[D] + N - this.gb18030.gbChars[D];
|
|
2623
|
+
} else if (m <= c) {
|
|
2624
|
+
x = c - m;
|
|
2625
2625
|
continue;
|
|
2626
|
-
} else if (
|
|
2627
|
-
for (var
|
|
2628
|
-
|
|
2629
|
-
|
|
2626
|
+
} else if (m <= n) {
|
|
2627
|
+
for (var C = this.decodeTableSeq[n - m], O = 0; O < C.length - 1; O++)
|
|
2628
|
+
m = C[O], E[y++] = m & 255, E[y++] = m >> 8;
|
|
2629
|
+
m = C[C.length - 1];
|
|
2630
2630
|
} else
|
|
2631
|
-
throw new Error("iconv-lite internal error: invalid decoding table value " +
|
|
2632
|
-
if (
|
|
2633
|
-
|
|
2634
|
-
var R = 55296 |
|
|
2635
|
-
E[y++] = R & 255, E[y++] = R >> 8,
|
|
2631
|
+
throw new Error("iconv-lite internal error: invalid decoding table value " + m + " at " + x + "/" + I);
|
|
2632
|
+
if (m >= 65536) {
|
|
2633
|
+
m -= 65536;
|
|
2634
|
+
var R = 55296 | m >> 10;
|
|
2635
|
+
E[y++] = R & 255, E[y++] = R >> 8, m = 56320 | m & 1023;
|
|
2636
2636
|
}
|
|
2637
|
-
E[y++] =
|
|
2637
|
+
E[y++] = m & 255, E[y++] = m >> 8, x = 0, p = v + 1;
|
|
2638
2638
|
}
|
|
2639
|
-
return this.nodeIdx = x, this.prevBytes =
|
|
2640
|
-
},
|
|
2639
|
+
return this.nodeIdx = x, this.prevBytes = p >= 0 ? Array.prototype.slice.call(g, p) : A.slice(p + T).concat(Array.prototype.slice.call(g)), E.slice(0, y).toString("ucs2");
|
|
2640
|
+
}, b.prototype.end = function() {
|
|
2641
2641
|
for (var g = ""; this.prevBytes.length > 0; ) {
|
|
2642
2642
|
g += this.defaultCharUnicode;
|
|
2643
2643
|
var E = this.prevBytes.slice(1);
|
|
@@ -2656,7 +2656,7 @@ function Wr() {
|
|
|
2656
2656
|
}
|
|
2657
2657
|
return Qe;
|
|
2658
2658
|
}
|
|
2659
|
-
const
|
|
2659
|
+
const $r = [
|
|
2660
2660
|
[
|
|
2661
2661
|
"0",
|
|
2662
2662
|
"\0",
|
|
@@ -3201,7 +3201,7 @@ const Zr = [
|
|
|
3201
3201
|
"fc40",
|
|
3202
3202
|
"髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"
|
|
3203
3203
|
]
|
|
3204
|
-
],
|
|
3204
|
+
], Kr = [
|
|
3205
3205
|
[
|
|
3206
3206
|
"0",
|
|
3207
3207
|
"\0",
|
|
@@ -6899,7 +6899,7 @@ const Zr = [
|
|
|
6899
6899
|
"8135f437",
|
|
6900
6900
|
""
|
|
6901
6901
|
]
|
|
6902
|
-
],
|
|
6902
|
+
], Xr = [
|
|
6903
6903
|
128,
|
|
6904
6904
|
165,
|
|
6905
6905
|
169,
|
|
@@ -7107,7 +7107,7 @@ const Zr = [
|
|
|
7107
7107
|
65375,
|
|
7108
7108
|
65510,
|
|
7109
7109
|
65536
|
|
7110
|
-
],
|
|
7110
|
+
], Jr = [
|
|
7111
7111
|
0,
|
|
7112
7112
|
36,
|
|
7113
7113
|
38,
|
|
@@ -7315,10 +7315,10 @@ const Zr = [
|
|
|
7315
7315
|
39265,
|
|
7316
7316
|
39394,
|
|
7317
7317
|
189e3
|
|
7318
|
-
],
|
|
7319
|
-
uChars:
|
|
7320
|
-
gbChars:
|
|
7321
|
-
},
|
|
7318
|
+
], Qr = {
|
|
7319
|
+
uChars: Xr,
|
|
7320
|
+
gbChars: Jr
|
|
7321
|
+
}, ei = [
|
|
7322
7322
|
[
|
|
7323
7323
|
"0",
|
|
7324
7324
|
"\0",
|
|
@@ -10421,7 +10421,7 @@ const Zr = [
|
|
|
10421
10421
|
"f9a1",
|
|
10422
10422
|
"龤灨灥糷虪蠾蠽蠿讞貜躩軉靋顳顴飌饡馫驤驦驧鬤鸕鸗齈戇欞爧虌躨钂钀钁驩驨鬮鸙爩虋讟钃鱹麷癵驫鱺鸝灩灪麤齾齉龘碁銹裏墻恒粧嫺╔╦╗╠╬╣╚╩╝╒╤╕╞╪╡╘╧╛╓╥╖╟╫╢╙╨╜║═╭╮╰╯▓"
|
|
10423
10423
|
]
|
|
10424
|
-
],
|
|
10424
|
+
], ti = [
|
|
10425
10425
|
[
|
|
10426
10426
|
"8740",
|
|
10427
10427
|
"䏰䰲䘃䖦䕸𧉧䵷䖳𧲱䳢𧳅㮕䜶䝄䱇䱀𤊿𣘗𧍒𦺋𧃒䱗𪍑䝏䗚䲅𧱬䴇䪤䚡𦬣爥𥩔𡩣𣸆𣽡晍囻"
|
|
@@ -10926,7 +10926,7 @@ const Zr = [
|
|
|
10926
10926
|
]
|
|
10927
10927
|
];
|
|
10928
10928
|
var tt, Ft;
|
|
10929
|
-
function
|
|
10929
|
+
function ri() {
|
|
10930
10930
|
return Ft || (Ft = 1, tt = {
|
|
10931
10931
|
// == Japanese/ShiftJIS ====================================================
|
|
10932
10932
|
// All japanese encodings are based on JIS X set of standards:
|
|
@@ -10961,7 +10961,7 @@ function ti() {
|
|
|
10961
10961
|
shiftjis: {
|
|
10962
10962
|
type: "_dbcs",
|
|
10963
10963
|
table: function() {
|
|
10964
|
-
return
|
|
10964
|
+
return $r;
|
|
10965
10965
|
},
|
|
10966
10966
|
encodeAdd: { "¥": 92, "‾": 126 },
|
|
10967
10967
|
encodeSkipVals: [{ from: 60736, to: 63808 }]
|
|
@@ -10979,7 +10979,7 @@ function ti() {
|
|
|
10979
10979
|
eucjp: {
|
|
10980
10980
|
type: "_dbcs",
|
|
10981
10981
|
table: function() {
|
|
10982
|
-
return
|
|
10982
|
+
return Kr;
|
|
10983
10983
|
},
|
|
10984
10984
|
encodeAdd: { "¥": 92, "‾": 126 }
|
|
10985
10985
|
},
|
|
@@ -11026,7 +11026,7 @@ function ti() {
|
|
|
11026
11026
|
return et.concat(Lt);
|
|
11027
11027
|
},
|
|
11028
11028
|
gb18030: function() {
|
|
11029
|
-
return
|
|
11029
|
+
return Qr;
|
|
11030
11030
|
},
|
|
11031
11031
|
encodeSkipVals: [128],
|
|
11032
11032
|
encodeAdd: { "€": 41699 }
|
|
@@ -11040,7 +11040,7 @@ function ti() {
|
|
|
11040
11040
|
cp949: {
|
|
11041
11041
|
type: "_dbcs",
|
|
11042
11042
|
table: function() {
|
|
11043
|
-
return
|
|
11043
|
+
return ei;
|
|
11044
11044
|
}
|
|
11045
11045
|
},
|
|
11046
11046
|
cseuckr: "cp949",
|
|
@@ -11087,7 +11087,7 @@ function ti() {
|
|
|
11087
11087
|
big5hkscs: {
|
|
11088
11088
|
type: "_dbcs",
|
|
11089
11089
|
table: function() {
|
|
11090
|
-
return Dt.concat(
|
|
11090
|
+
return Dt.concat(ti);
|
|
11091
11091
|
},
|
|
11092
11092
|
encodeSkipVals: [
|
|
11093
11093
|
// Although Encoding Standard says we should avoid encoding to HKSCS area (See Step 1 of
|
|
@@ -11169,10 +11169,9 @@ function ti() {
|
|
|
11169
11169
|
}), tt;
|
|
11170
11170
|
}
|
|
11171
11171
|
var Ot;
|
|
11172
|
-
function
|
|
11172
|
+
function ii() {
|
|
11173
11173
|
return Ot || (Ot = 1, function(e) {
|
|
11174
11174
|
for (var t = [
|
|
11175
|
-
Gr(),
|
|
11176
11175
|
Hr(),
|
|
11177
11176
|
Yr(),
|
|
11178
11177
|
jr(),
|
|
@@ -11180,7 +11179,8 @@ function ri() {
|
|
|
11180
11179
|
Vr(),
|
|
11181
11180
|
zr(),
|
|
11182
11181
|
Wr(),
|
|
11183
|
-
|
|
11182
|
+
Zr(),
|
|
11183
|
+
ri()
|
|
11184
11184
|
], a = 0; a < t.length; a++) {
|
|
11185
11185
|
var n = t[a];
|
|
11186
11186
|
for (var c in n)
|
|
@@ -11189,7 +11189,7 @@ function ri() {
|
|
|
11189
11189
|
}(We)), We;
|
|
11190
11190
|
}
|
|
11191
11191
|
var rt, Rt;
|
|
11192
|
-
function
|
|
11192
|
+
function ni() {
|
|
11193
11193
|
if (Rt) return rt;
|
|
11194
11194
|
Rt = 1;
|
|
11195
11195
|
var e = _e.Buffer;
|
|
@@ -11204,8 +11204,8 @@ function ii() {
|
|
|
11204
11204
|
if (typeof u != "string")
|
|
11205
11205
|
return s(new Error("Iconv encoding stream needs strings as its input."));
|
|
11206
11206
|
try {
|
|
11207
|
-
var
|
|
11208
|
-
|
|
11207
|
+
var d = this.conv.write(u);
|
|
11208
|
+
d && d.length && this.push(d), s();
|
|
11209
11209
|
} catch (l) {
|
|
11210
11210
|
s(l);
|
|
11211
11211
|
}
|
|
@@ -11233,8 +11233,8 @@ function ii() {
|
|
|
11233
11233
|
if (!e.isBuffer(u) && !(u instanceof Uint8Array))
|
|
11234
11234
|
return s(new Error("Iconv decoding stream needs buffers as its input."));
|
|
11235
11235
|
try {
|
|
11236
|
-
var
|
|
11237
|
-
|
|
11236
|
+
var d = this.conv.write(u);
|
|
11237
|
+
d && d.length && this.push(d, this.encoding), s();
|
|
11238
11238
|
} catch (l) {
|
|
11239
11239
|
s(l);
|
|
11240
11240
|
}
|
|
@@ -11258,25 +11258,25 @@ function ii() {
|
|
|
11258
11258
|
};
|
|
11259
11259
|
}, rt;
|
|
11260
11260
|
}
|
|
11261
|
-
const
|
|
11261
|
+
const ai = void 0, si = void 0, oi = void 0, ci = void 0, fi = void 0, ui = {}, hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11262
11262
|
__proto__: null,
|
|
11263
|
-
Duplex:
|
|
11264
|
-
PassThrough:
|
|
11265
|
-
Readable:
|
|
11266
|
-
Transform:
|
|
11267
|
-
Writable:
|
|
11268
|
-
default:
|
|
11269
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
11263
|
+
Duplex: ci,
|
|
11264
|
+
PassThrough: fi,
|
|
11265
|
+
Readable: si,
|
|
11266
|
+
Transform: ai,
|
|
11267
|
+
Writable: oi,
|
|
11268
|
+
default: ui
|
|
11269
|
+
}, Symbol.toStringTag, { value: "Module" })), li = /* @__PURE__ */ Er(hi);
|
|
11270
11270
|
(function(e) {
|
|
11271
11271
|
var t = _e.Buffer, a = ot, n = e.exports;
|
|
11272
|
-
n.encodings = null, n.defaultCharUnicode = "�", n.defaultCharSingleByte = "?", n.encode = function(f, s,
|
|
11272
|
+
n.encodings = null, n.defaultCharUnicode = "�", n.defaultCharSingleByte = "?", n.encode = function(f, s, d) {
|
|
11273
11273
|
f = "" + (f || "");
|
|
11274
|
-
var l = n.getEncoder(s,
|
|
11275
|
-
return _ && _.length > 0 ? t.concat([
|
|
11276
|
-
}, n.decode = function(f, s,
|
|
11274
|
+
var l = n.getEncoder(s, d), b = l.write(f), _ = l.end();
|
|
11275
|
+
return _ && _.length > 0 ? t.concat([b, _]) : b;
|
|
11276
|
+
}, n.decode = function(f, s, d) {
|
|
11277
11277
|
typeof f == "string" && (n.skipDecodeWarning || (console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding"), n.skipDecodeWarning = !0), f = t.from("" + (f || ""), "binary"));
|
|
11278
|
-
var l = n.getDecoder(s,
|
|
11279
|
-
return _ ?
|
|
11278
|
+
var l = n.getDecoder(s, d), b = l.write(f), _ = l.end();
|
|
11279
|
+
return _ ? b + _ : b;
|
|
11280
11280
|
}, n.encodingExists = function(f) {
|
|
11281
11281
|
try {
|
|
11282
11282
|
return n.getCodec(f), !0;
|
|
@@ -11284,23 +11284,23 @@ const ni = void 0, ai = void 0, si = void 0, oi = void 0, ci = void 0, fi = {},
|
|
|
11284
11284
|
return !1;
|
|
11285
11285
|
}
|
|
11286
11286
|
}, n.toEncoding = n.encode, n.fromEncoding = n.decode, n._codecDataCache = {}, n.getCodec = function(f) {
|
|
11287
|
-
n.encodings || (n.encodings =
|
|
11288
|
-
for (var s = n._canonicalizeEncoding(f),
|
|
11287
|
+
n.encodings || (n.encodings = ii());
|
|
11288
|
+
for (var s = n._canonicalizeEncoding(f), d = {}; ; ) {
|
|
11289
11289
|
var l = n._codecDataCache[s];
|
|
11290
11290
|
if (l)
|
|
11291
11291
|
return l;
|
|
11292
|
-
var
|
|
11293
|
-
switch (typeof
|
|
11292
|
+
var b = n.encodings[s];
|
|
11293
|
+
switch (typeof b) {
|
|
11294
11294
|
case "string":
|
|
11295
|
-
s =
|
|
11295
|
+
s = b;
|
|
11296
11296
|
break;
|
|
11297
11297
|
case "object":
|
|
11298
|
-
for (var _ in
|
|
11299
|
-
|
|
11300
|
-
|
|
11298
|
+
for (var _ in b)
|
|
11299
|
+
d[_] = b[_];
|
|
11300
|
+
d.encodingName || (d.encodingName = s), s = b.type;
|
|
11301
11301
|
break;
|
|
11302
11302
|
case "function":
|
|
11303
|
-
return
|
|
11303
|
+
return d.encodingName || (d.encodingName = s), l = new b(d, n), n._codecDataCache[d.encodingName] = l, l;
|
|
11304
11304
|
default:
|
|
11305
11305
|
throw new Error("Encoding not recognized: '" + f + "' (searched as: '" + s + "')");
|
|
11306
11306
|
}
|
|
@@ -11308,33 +11308,33 @@ const ni = void 0, ai = void 0, si = void 0, oi = void 0, ci = void 0, fi = {},
|
|
|
11308
11308
|
}, n._canonicalizeEncoding = function(u) {
|
|
11309
11309
|
return ("" + u).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g, "");
|
|
11310
11310
|
}, n.getEncoder = function(f, s) {
|
|
11311
|
-
var
|
|
11312
|
-
return
|
|
11311
|
+
var d = n.getCodec(f), l = new d.encoder(s, d);
|
|
11312
|
+
return d.bomAware && s && s.addBOM && (l = new a.PrependBOM(l, s)), l;
|
|
11313
11313
|
}, n.getDecoder = function(f, s) {
|
|
11314
|
-
var
|
|
11315
|
-
return
|
|
11314
|
+
var d = n.getCodec(f), l = new d.decoder(s, d);
|
|
11315
|
+
return d.bomAware && !(s && s.stripBOM === !1) && (l = new a.StripBOM(l, s)), l;
|
|
11316
11316
|
}, n.enableStreamingAPI = function(f) {
|
|
11317
11317
|
if (!n.supportsStreams) {
|
|
11318
|
-
var s =
|
|
11319
|
-
n.IconvLiteEncoderStream = s.IconvLiteEncoderStream, n.IconvLiteDecoderStream = s.IconvLiteDecoderStream, n.encodeStream = function(l,
|
|
11320
|
-
return new n.IconvLiteEncoderStream(n.getEncoder(l,
|
|
11321
|
-
}, n.decodeStream = function(l,
|
|
11322
|
-
return new n.IconvLiteDecoderStream(n.getDecoder(l,
|
|
11318
|
+
var s = ni()(f);
|
|
11319
|
+
n.IconvLiteEncoderStream = s.IconvLiteEncoderStream, n.IconvLiteDecoderStream = s.IconvLiteDecoderStream, n.encodeStream = function(l, b) {
|
|
11320
|
+
return new n.IconvLiteEncoderStream(n.getEncoder(l, b), b);
|
|
11321
|
+
}, n.decodeStream = function(l, b) {
|
|
11322
|
+
return new n.IconvLiteDecoderStream(n.getDecoder(l, b), b);
|
|
11323
11323
|
}, n.supportsStreams = !0;
|
|
11324
11324
|
}
|
|
11325
11325
|
};
|
|
11326
11326
|
var c;
|
|
11327
11327
|
try {
|
|
11328
|
-
c =
|
|
11328
|
+
c = li;
|
|
11329
11329
|
} catch {
|
|
11330
11330
|
}
|
|
11331
11331
|
c && c.Transform ? n.enableStreamingAPI(c) : n.encodeStream = n.decodeStream = function() {
|
|
11332
11332
|
throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.");
|
|
11333
11333
|
};
|
|
11334
11334
|
})(zt);
|
|
11335
|
-
var
|
|
11335
|
+
var di = zt.exports;
|
|
11336
11336
|
Object.defineProperty(Le, "__esModule", { value: !0 });
|
|
11337
|
-
var Mt =
|
|
11337
|
+
var Mt = di, pi = (
|
|
11338
11338
|
/** @class */
|
|
11339
11339
|
function() {
|
|
11340
11340
|
function e(t, a, n) {
|
|
@@ -11677,12 +11677,12 @@ var Mt = li, di = (
|
|
|
11677
11677
|
return this.readStruct(t);
|
|
11678
11678
|
var n = null, c = null, u = "ASCII", f = this.position, s;
|
|
11679
11679
|
if (typeof t == "string" && /:/.test(t)) {
|
|
11680
|
-
var
|
|
11681
|
-
t =
|
|
11680
|
+
var d = t.split(":");
|
|
11681
|
+
t = d[0], s = d[1], a[s] != null ? c = parseInt(a[s]) : c = parseInt(d[1]);
|
|
11682
11682
|
}
|
|
11683
11683
|
if (typeof t == "string" && /,/.test(t)) {
|
|
11684
|
-
var
|
|
11685
|
-
t =
|
|
11684
|
+
var d = t.split(",");
|
|
11685
|
+
t = d[0], u = parseInt(d[1]).toString();
|
|
11686
11686
|
}
|
|
11687
11687
|
switch (t) {
|
|
11688
11688
|
case "uint8":
|
|
@@ -11762,38 +11762,38 @@ var Mt = li, di = (
|
|
|
11762
11762
|
break;
|
|
11763
11763
|
default:
|
|
11764
11764
|
if (t.length == 3) {
|
|
11765
|
-
var l = t[1], s = t[2],
|
|
11766
|
-
if (typeof s == "function" ?
|
|
11765
|
+
var l = t[1], s = t[2], b = 0;
|
|
11766
|
+
if (typeof s == "function" ? b = s(a, this, t) : typeof s == "string" && a[s] != null ? b = parseInt(a[s]) : b = parseInt(s), typeof l == "string") {
|
|
11767
11767
|
var _ = l.replace(/(le|be)$/, ""), g = null;
|
|
11768
|
-
switch (/le$/.test(l) ? g = e.LITTLE_ENDIAN : /be$/.test(l) && (g = e.BIG_ENDIAN), s == "*" && (
|
|
11768
|
+
switch (/le$/.test(l) ? g = e.LITTLE_ENDIAN : /be$/.test(l) && (g = e.BIG_ENDIAN), s == "*" && (b = null), _) {
|
|
11769
11769
|
case "uint8":
|
|
11770
|
-
n = this.readUint8Array(
|
|
11770
|
+
n = this.readUint8Array(b);
|
|
11771
11771
|
break;
|
|
11772
11772
|
case "uint16":
|
|
11773
|
-
n = this.readUint16Array(
|
|
11773
|
+
n = this.readUint16Array(b, g);
|
|
11774
11774
|
break;
|
|
11775
11775
|
case "uint32":
|
|
11776
|
-
n = this.readUint32Array(
|
|
11776
|
+
n = this.readUint32Array(b, g);
|
|
11777
11777
|
break;
|
|
11778
11778
|
case "int8":
|
|
11779
|
-
n = this.readInt8Array(
|
|
11779
|
+
n = this.readInt8Array(b);
|
|
11780
11780
|
break;
|
|
11781
11781
|
case "int16":
|
|
11782
|
-
n = this.readInt16Array(
|
|
11782
|
+
n = this.readInt16Array(b, g);
|
|
11783
11783
|
break;
|
|
11784
11784
|
case "int32":
|
|
11785
|
-
n = this.readInt32Array(
|
|
11785
|
+
n = this.readInt32Array(b, g);
|
|
11786
11786
|
break;
|
|
11787
11787
|
case "float32":
|
|
11788
|
-
n = this.readFloat32Array(
|
|
11788
|
+
n = this.readFloat32Array(b, g);
|
|
11789
11789
|
break;
|
|
11790
11790
|
case "float64":
|
|
11791
|
-
n = this.readFloat64Array(
|
|
11791
|
+
n = this.readFloat64Array(b, g);
|
|
11792
11792
|
break;
|
|
11793
11793
|
case "cstring":
|
|
11794
11794
|
case "utf16string":
|
|
11795
11795
|
case "string":
|
|
11796
|
-
if (
|
|
11796
|
+
if (b == null)
|
|
11797
11797
|
for (n = []; !this.isEof(); ) {
|
|
11798
11798
|
var E = this.readType(l, a);
|
|
11799
11799
|
if (E == null)
|
|
@@ -11801,8 +11801,8 @@ var Mt = li, di = (
|
|
|
11801
11801
|
n.push(E);
|
|
11802
11802
|
}
|
|
11803
11803
|
else {
|
|
11804
|
-
n = new Array(
|
|
11805
|
-
for (var x = 0; x <
|
|
11804
|
+
n = new Array(b);
|
|
11805
|
+
for (var x = 0; x < b; x++)
|
|
11806
11806
|
n[x] = this.readType(l, a);
|
|
11807
11807
|
}
|
|
11808
11808
|
break;
|
|
@@ -11823,8 +11823,8 @@ var Mt = li, di = (
|
|
|
11823
11823
|
}
|
|
11824
11824
|
}
|
|
11825
11825
|
else {
|
|
11826
|
-
n = new Array(
|
|
11827
|
-
for (var x = 0; x <
|
|
11826
|
+
n = new Array(b);
|
|
11827
|
+
for (var x = 0; x < b; x++) {
|
|
11828
11828
|
var E = this.readType(l, a);
|
|
11829
11829
|
if (E == null)
|
|
11830
11830
|
return null;
|
|
@@ -11932,8 +11932,8 @@ var Mt = li, di = (
|
|
|
11932
11932
|
break;
|
|
11933
11933
|
default:
|
|
11934
11934
|
if (t.length == 3) {
|
|
11935
|
-
for (var
|
|
11936
|
-
this.writeType(
|
|
11935
|
+
for (var d = t[1], l = 0; l < a.length; l++)
|
|
11936
|
+
this.writeType(d, a[l], t[2]);
|
|
11937
11937
|
break;
|
|
11938
11938
|
} else {
|
|
11939
11939
|
this.writeStruct(t, a);
|
|
@@ -11944,52 +11944,52 @@ var Mt = li, di = (
|
|
|
11944
11944
|
}, e.BIG_ENDIAN = !1, e.LITTLE_ENDIAN = !0, e.endianness = new Int8Array(new Int16Array([1]).buffer)[0] > 0, e;
|
|
11945
11945
|
}()
|
|
11946
11946
|
);
|
|
11947
|
-
Le.default =
|
|
11947
|
+
Le.default = pi;
|
|
11948
11948
|
Uint8Array.prototype.BYTES_PER_ELEMENT === void 0 && (Object.defineProperties(Uint8Array.prototype, { BYTES_PER_ELEMENT: { value: Uint8Array.BYTES_PER_ELEMENT } }), Object.defineProperties(Int8Array.prototype, { BYTES_PER_ELEMENT: { value: Int8Array.BYTES_PER_ELEMENT } }), Object.defineProperties(Uint8ClampedArray.prototype, { BYTES_PER_ELEMENT: { value: Uint8ClampedArray.BYTES_PER_ELEMENT } }), Object.defineProperties(Uint16Array.prototype, { BYTES_PER_ELEMENT: { value: Uint16Array.BYTES_PER_ELEMENT } }), Object.defineProperties(Int16Array.prototype, { BYTES_PER_ELEMENT: { value: Int16Array.BYTES_PER_ELEMENT } }), Object.defineProperties(Uint32Array.prototype, { BYTES_PER_ELEMENT: { value: Uint32Array.BYTES_PER_ELEMENT } }), Object.defineProperties(Int32Array.prototype, { BYTES_PER_ELEMENT: { value: Int32Array.BYTES_PER_ELEMENT } }), Object.defineProperties(Float64Array.prototype, { BYTES_PER_ELEMENT: { value: Float64Array.BYTES_PER_ELEMENT } }));
|
|
11949
11949
|
var Ae = {}, $t = fe && fe.__importDefault || function(e) {
|
|
11950
11950
|
return e && e.__esModule ? e : { default: e };
|
|
11951
11951
|
};
|
|
11952
11952
|
Object.defineProperty(Ae, "__esModule", { value: !0 });
|
|
11953
11953
|
Ae.Reader = Ae.TypeEnum = void 0;
|
|
11954
|
-
var Ct = $t(Le),
|
|
11954
|
+
var Ct = $t(Le), yi = re, M = $t(Fe), Be;
|
|
11955
11955
|
(function(e) {
|
|
11956
11956
|
e[e.DIRECTORY = 1] = "DIRECTORY", e[e.DOCUMENT = 2] = "DOCUMENT", e[e.ROOT = 5] = "ROOT";
|
|
11957
11957
|
})(Be || (Ae.TypeEnum = Be = {}));
|
|
11958
|
-
var
|
|
11958
|
+
var bi = (
|
|
11959
11959
|
/** @class */
|
|
11960
11960
|
function() {
|
|
11961
11961
|
function e(t) {
|
|
11962
11962
|
this.ds = new Ct.default(t, 0, Ct.default.LITTLE_ENDIAN);
|
|
11963
11963
|
}
|
|
11964
11964
|
return e.prototype.isMSGFile = function() {
|
|
11965
|
-
return this.ds.seek(0), (0,
|
|
11965
|
+
return this.ds.seek(0), (0, yi.arraysEqual)(M.default.FILE_HEADER, this.ds.readInt8Array(M.default.FILE_HEADER.length));
|
|
11966
11966
|
}, e.prototype.headerData = function() {
|
|
11967
|
-
this.bigBlockSize = this.ds.readByte(30) ==
|
|
11967
|
+
this.bigBlockSize = this.ds.readByte(30) == M.default.MSG.L_BIG_BLOCK_MARK ? M.default.MSG.L_BIG_BLOCK_SIZE : M.default.MSG.S_BIG_BLOCK_SIZE, this.bigBlockLength = this.bigBlockSize / 4, this.xBlockLength = this.bigBlockLength - 1, this.batCount = this.ds.readInt(M.default.MSG.HEADER.BAT_COUNT_OFFSET), this.propertyStart = this.ds.readInt(M.default.MSG.HEADER.PROPERTY_START_OFFSET), this.sbatStart = this.ds.readInt(M.default.MSG.HEADER.SBAT_START_OFFSET), this.sbatCount = this.ds.readInt(M.default.MSG.HEADER.SBAT_COUNT_OFFSET), this.xbatStart = this.ds.readInt(M.default.MSG.HEADER.XBAT_START_OFFSET), this.xbatCount = this.ds.readInt(M.default.MSG.HEADER.XBAT_COUNT_OFFSET);
|
|
11968
11968
|
}, e.prototype.convertName = function(t) {
|
|
11969
|
-
var a = this.ds.readShort(t +
|
|
11969
|
+
var a = this.ds.readShort(t + M.default.MSG.PROP.NAME_SIZE_OFFSET);
|
|
11970
11970
|
return a < 1 ? "" : this.ds.readStringAt(t, a / 2).split("\0")[0];
|
|
11971
11971
|
}, e.prototype.convertProperty = function(t) {
|
|
11972
11972
|
return {
|
|
11973
|
-
type: this.ds.readByte(t +
|
|
11973
|
+
type: this.ds.readByte(t + M.default.MSG.PROP.TYPE_OFFSET),
|
|
11974
11974
|
name: this.convertName(t),
|
|
11975
11975
|
// hierarchy
|
|
11976
|
-
previousProperty: this.ds.readInt(t +
|
|
11977
|
-
nextProperty: this.ds.readInt(t +
|
|
11978
|
-
childProperty: this.ds.readInt(t +
|
|
11976
|
+
previousProperty: this.ds.readInt(t + M.default.MSG.PROP.PREVIOUS_PROPERTY_OFFSET),
|
|
11977
|
+
nextProperty: this.ds.readInt(t + M.default.MSG.PROP.NEXT_PROPERTY_OFFSET),
|
|
11978
|
+
childProperty: this.ds.readInt(t + M.default.MSG.PROP.CHILD_PROPERTY_OFFSET),
|
|
11979
11979
|
// data offset
|
|
11980
|
-
startBlock: this.ds.readInt(t +
|
|
11981
|
-
sizeBlock: this.ds.readInt(t +
|
|
11980
|
+
startBlock: this.ds.readInt(t + M.default.MSG.PROP.START_BLOCK_OFFSET),
|
|
11981
|
+
sizeBlock: this.ds.readInt(t + M.default.MSG.PROP.SIZE_OFFSET)
|
|
11982
11982
|
};
|
|
11983
11983
|
}, e.prototype.convertBlockToProperties = function(t, a) {
|
|
11984
|
-
for (var n = this.bigBlockSize /
|
|
11985
|
-
var f = this.ds.readByte(c +
|
|
11984
|
+
for (var n = this.bigBlockSize / M.default.MSG.PROP.PROPERTY_SIZE, c = this.getBlockOffsetAt(t), u = 0; u < n && !(this.ds.byteLength < c + M.default.MSG.PROP.TYPE_OFFSET); u++) {
|
|
11985
|
+
var f = this.ds.readByte(c + M.default.MSG.PROP.TYPE_OFFSET);
|
|
11986
11986
|
switch (f) {
|
|
11987
|
-
case
|
|
11988
|
-
case
|
|
11989
|
-
case
|
|
11987
|
+
case M.default.MSG.PROP.TYPE_ENUM.ROOT:
|
|
11988
|
+
case M.default.MSG.PROP.TYPE_ENUM.DIRECTORY:
|
|
11989
|
+
case M.default.MSG.PROP.TYPE_ENUM.DOCUMENT:
|
|
11990
11990
|
a.push(this.convertProperty(c));
|
|
11991
11991
|
break;
|
|
11992
|
-
case
|
|
11992
|
+
case M.default.MSG.PROP.TYPE_ENUM.UNALLOCATED:
|
|
11993
11993
|
default:
|
|
11994
11994
|
a.push({
|
|
11995
11995
|
type: f,
|
|
@@ -12002,28 +12002,28 @@ var yi = (
|
|
|
12002
12002
|
});
|
|
12003
12003
|
break;
|
|
12004
12004
|
}
|
|
12005
|
-
c +=
|
|
12005
|
+
c += M.default.MSG.PROP.PROPERTY_SIZE;
|
|
12006
12006
|
}
|
|
12007
12007
|
}, e.prototype.createPropertyHierarchy = function(t, a) {
|
|
12008
|
-
if (!(!a || a.childProperty ==
|
|
12008
|
+
if (!(!a || a.childProperty == M.default.MSG.PROP.NO_INDEX)) {
|
|
12009
12009
|
a.children = [];
|
|
12010
12010
|
for (var n = [{ currentMode: "walk", currentIndex: a.childProperty }]; n.length != 0; ) {
|
|
12011
12011
|
var c = n.pop(), u = c.currentMode, f = c.currentIndex, s = t[f];
|
|
12012
|
-
u === "push" ? a.children.push(f) : (s.type ==
|
|
12012
|
+
u === "push" ? a.children.push(f) : (s.type == M.default.MSG.PROP.TYPE_ENUM.DIRECTORY && this.createPropertyHierarchy(t, s), s.nextProperty != M.default.MSG.PROP.NO_INDEX && n.push({ currentMode: "walk", currentIndex: s.nextProperty }), n.push({ currentMode: "push", currentIndex: f }), s.previousProperty != M.default.MSG.PROP.NO_INDEX && n.push({ currentMode: "walk", currentIndex: s.previousProperty }));
|
|
12013
12013
|
}
|
|
12014
12014
|
}
|
|
12015
12015
|
}, e.prototype.propertyDataReader = function(t) {
|
|
12016
|
-
for (var a = [], n = t; n !=
|
|
12016
|
+
for (var a = [], n = t; n != M.default.MSG.END_OF_CHAIN; )
|
|
12017
12017
|
this.convertBlockToProperties(n, a), n = this.getNextBlock(n);
|
|
12018
12018
|
return this.createPropertyHierarchy(a, a[0]), a;
|
|
12019
12019
|
}, e.prototype.parse = function() {
|
|
12020
12020
|
this.headerData(), this.batData = this.batDataReader(), this.xbatCount > 0 && this.xbatDataReader(), this.sbatData = this.sbatDataReader(), this.propertyData = this.propertyDataReader(this.propertyStart), this.bigBlockTable = this.readBigBlockTable();
|
|
12021
12021
|
}, e.prototype.batCountInHeader = function() {
|
|
12022
|
-
var t = (
|
|
12022
|
+
var t = (M.default.MSG.S_BIG_BLOCK_SIZE - M.default.MSG.HEADER.BAT_START_OFFSET) / 4;
|
|
12023
12023
|
return Math.min(this.batCount, t);
|
|
12024
12024
|
}, e.prototype.batDataReader = function() {
|
|
12025
12025
|
var t = new Array(this.batCountInHeader());
|
|
12026
|
-
this.ds.seek(
|
|
12026
|
+
this.ds.seek(M.default.MSG.HEADER.BAT_START_OFFSET);
|
|
12027
12027
|
for (var a = 0; a < t.length; a++)
|
|
12028
12028
|
t[a] = this.ds.readInt32();
|
|
12029
12029
|
return t;
|
|
@@ -12037,46 +12037,46 @@ var yi = (
|
|
|
12037
12037
|
return this.ds.seek(n + 4 * a), this.ds.readInt32();
|
|
12038
12038
|
}, e.prototype.getNextBlockInner = function(t, a) {
|
|
12039
12039
|
var n = Math.floor(t / this.bigBlockLength), c = t % this.bigBlockLength, u = a[n];
|
|
12040
|
-
return typeof u > "u" ?
|
|
12040
|
+
return typeof u > "u" ? M.default.MSG.END_OF_CHAIN : this.getBlockValueAt(u, c);
|
|
12041
12041
|
}, e.prototype.getNextBlock = function(t) {
|
|
12042
12042
|
return this.getNextBlockInner(t, this.batData);
|
|
12043
12043
|
}, e.prototype.sbatDataReader = function() {
|
|
12044
|
-
for (var t = [], a = this.sbatStart, n = 0; n < this.sbatCount && a && a !=
|
|
12044
|
+
for (var t = [], a = this.sbatStart, n = 0; n < this.sbatCount && a && a != M.default.MSG.END_OF_CHAIN; n++)
|
|
12045
12045
|
t.push(a), a = this.getNextBlock(a);
|
|
12046
12046
|
return t;
|
|
12047
12047
|
}, e.prototype.xbatDataReader = function() {
|
|
12048
12048
|
for (var t = this.batCountInHeader(), a = this.batCount, n = a - t, c = this.xbatStart, u = 0; u < this.xbatCount; u++) {
|
|
12049
|
-
for (var f = this.getBlockAt(c), s = Math.min(n, this.xBlockLength),
|
|
12050
|
-
var l = f[
|
|
12051
|
-
if (l ==
|
|
12049
|
+
for (var f = this.getBlockAt(c), s = Math.min(n, this.xBlockLength), d = 0; d < s; d++) {
|
|
12050
|
+
var l = f[d];
|
|
12051
|
+
if (l == M.default.MSG.UNUSED_BLOCK || l == M.default.MSG.END_OF_CHAIN)
|
|
12052
12052
|
break;
|
|
12053
12053
|
this.batData.push(l);
|
|
12054
12054
|
}
|
|
12055
|
-
if (n -= s, c = f[this.xBlockLength], c ==
|
|
12055
|
+
if (n -= s, c = f[this.xBlockLength], c == M.default.MSG.UNUSED_BLOCK || c == M.default.MSG.END_OF_CHAIN)
|
|
12056
12056
|
break;
|
|
12057
12057
|
}
|
|
12058
12058
|
}, e.prototype.getNextBlockSmall = function(t) {
|
|
12059
12059
|
return this.getNextBlockInner(t, this.sbatData);
|
|
12060
12060
|
}, e.prototype.getChainByBlockSmall = function(t) {
|
|
12061
|
-
for (var a = [], n = t.startBlock; n !=
|
|
12061
|
+
for (var a = [], n = t.startBlock; n != M.default.MSG.END_OF_CHAIN; )
|
|
12062
12062
|
a.push(n), n = this.getNextBlockSmall(n);
|
|
12063
12063
|
return a;
|
|
12064
12064
|
}, e.prototype.readBigBlockTable = function() {
|
|
12065
|
-
for (var t = this.propertyData[0], a = [], n = t.startBlock, c = 0; n !=
|
|
12065
|
+
for (var t = this.propertyData[0], a = [], n = t.startBlock, c = 0; n != M.default.MSG.END_OF_CHAIN; c++)
|
|
12066
12066
|
a.push(n), n = this.getNextBlock(n);
|
|
12067
12067
|
return a;
|
|
12068
12068
|
}, e.prototype.readDataByBlockSmall = function(t, a, n, c) {
|
|
12069
|
-
var u = t *
|
|
12069
|
+
var u = t * M.default.MSG.SMALL_BLOCK_SIZE, f = Math.floor(u / this.bigBlockSize), s = u % this.bigBlockSize, d = this.bigBlockTable[f], l = this.getBlockOffsetAt(d);
|
|
12070
12070
|
return this.ds.seek(l + s), this.ds.readToUint8Array(a, n, c);
|
|
12071
12071
|
}, e.prototype.readChainDataByBlockSmall = function(t, a) {
|
|
12072
12072
|
for (var n = new Uint8Array(t.sizeBlock), c = 0, u = 0; c < a.length; c++) {
|
|
12073
|
-
var f = n.length < u +
|
|
12073
|
+
var f = n.length < u + M.default.MSG.SMALL_BLOCK_SIZE ? n.length - u : M.default.MSG.SMALL_BLOCK_SIZE;
|
|
12074
12074
|
this.readDataByBlockSmall(a[c], f, n, u), u += f;
|
|
12075
12075
|
}
|
|
12076
12076
|
return n;
|
|
12077
12077
|
}, e.prototype.readProperty = function(t) {
|
|
12078
12078
|
if (t.sizeBlock)
|
|
12079
|
-
if (t.sizeBlock <
|
|
12079
|
+
if (t.sizeBlock < M.default.MSG.BIG_BLOCK_MIN_DOC_SIZE) {
|
|
12080
12080
|
var a = this.getChainByBlockSmall(t);
|
|
12081
12081
|
if (a.length == 1) {
|
|
12082
12082
|
var n = new Uint8Array(t.sizeBlock);
|
|
@@ -12088,8 +12088,8 @@ var yi = (
|
|
|
12088
12088
|
for (var c = t.startBlock, u = t.sizeBlock, f = 0, n = new Uint8Array(t.sizeBlock); 1 <= u; ) {
|
|
12089
12089
|
var s = this.getBlockOffsetAt(c);
|
|
12090
12090
|
this.ds.seek(s);
|
|
12091
|
-
var
|
|
12092
|
-
n.set(l, f), f +=
|
|
12091
|
+
var d = Math.min(u, this.bigBlockSize), l = this.ds.readUint8Array(d);
|
|
12092
|
+
n.set(l, f), f += d, u -= d, c = this.getNextBlock(c);
|
|
12093
12093
|
}
|
|
12094
12094
|
return n;
|
|
12095
12095
|
}
|
|
@@ -12145,10 +12145,10 @@ var yi = (
|
|
|
12145
12145
|
readFile: function(u) {
|
|
12146
12146
|
var f = c.children;
|
|
12147
12147
|
if (f)
|
|
12148
|
-
for (var s = 0,
|
|
12149
|
-
var l =
|
|
12150
|
-
if (
|
|
12151
|
-
return a.readProperty(
|
|
12148
|
+
for (var s = 0, d = f; s < d.length; s++) {
|
|
12149
|
+
var l = d[s], b = n[l];
|
|
12150
|
+
if (b && b.type === Be.DOCUMENT && b.name === u)
|
|
12151
|
+
return a.readProperty(b);
|
|
12152
12152
|
}
|
|
12153
12153
|
return null;
|
|
12154
12154
|
}
|
|
@@ -12158,17 +12158,17 @@ var yi = (
|
|
|
12158
12158
|
}, e;
|
|
12159
12159
|
}()
|
|
12160
12160
|
);
|
|
12161
|
-
Ae.Reader =
|
|
12161
|
+
Ae.Reader = bi;
|
|
12162
12162
|
var ut = {}, Kt = fe && fe.__importDefault || function(e) {
|
|
12163
12163
|
return e && e.__esModule ? e : { default: e };
|
|
12164
12164
|
};
|
|
12165
12165
|
Object.defineProperty(ut, "__esModule", { value: !0 });
|
|
12166
|
-
ut.burn =
|
|
12167
|
-
var we = Ae, kt = Kt(Le),
|
|
12166
|
+
ut.burn = gi;
|
|
12167
|
+
var we = Ae, kt = Kt(Le), vi = Kt(Fe);
|
|
12168
12168
|
function Se(e) {
|
|
12169
12169
|
return e + 511 & -512;
|
|
12170
12170
|
}
|
|
12171
|
-
function
|
|
12171
|
+
function mi(e) {
|
|
12172
12172
|
return e + 63 & -64;
|
|
12173
12173
|
}
|
|
12174
12174
|
var Pt = (
|
|
@@ -12195,81 +12195,81 @@ var Pt = (
|
|
|
12195
12195
|
return this.sectors.length;
|
|
12196
12196
|
}, e;
|
|
12197
12197
|
}()
|
|
12198
|
-
),
|
|
12198
|
+
), Ei = (
|
|
12199
12199
|
/** @class */
|
|
12200
12200
|
function() {
|
|
12201
12201
|
function e(t) {
|
|
12202
|
-
this.fat = new Pt([]), this.miniFat = new Pt([]), this.liteEnts = t.map(function(
|
|
12202
|
+
this.fat = new Pt([]), this.miniFat = new Pt([]), this.liteEnts = t.map(function(j) {
|
|
12203
12203
|
return {
|
|
12204
|
-
entry:
|
|
12204
|
+
entry: j,
|
|
12205
12205
|
left: -1,
|
|
12206
12206
|
right: -1,
|
|
12207
12207
|
child: -1,
|
|
12208
12208
|
firstSector: 0,
|
|
12209
|
-
isMini:
|
|
12209
|
+
isMini: j.length < 4096,
|
|
12210
12210
|
isRed: !1
|
|
12211
12211
|
};
|
|
12212
12212
|
}), this.buildTree(0);
|
|
12213
|
-
for (var a = this.fat.allocate(Se(128 * this.liteEnts.length) / 512), n = 0, c = this.liteEnts.filter(function(
|
|
12214
|
-
return
|
|
12213
|
+
for (var a = this.fat.allocate(Se(128 * this.liteEnts.length) / 512), n = 0, c = this.liteEnts.filter(function(j) {
|
|
12214
|
+
return j.entry.type == we.TypeEnum.DOCUMENT && j.isMini === !1;
|
|
12215
12215
|
}); n < c.length; n++) {
|
|
12216
12216
|
var u = c[n];
|
|
12217
12217
|
u.firstSector = u.entry.length === 0 ? -2 : this.fat.allocate(Se(u.entry.length) / 512);
|
|
12218
12218
|
}
|
|
12219
|
-
for (var f = 0, s = this.liteEnts.filter(function(
|
|
12220
|
-
return
|
|
12219
|
+
for (var f = 0, s = this.liteEnts.filter(function(j) {
|
|
12220
|
+
return j.entry.type == we.TypeEnum.DOCUMENT && j.isMini === !0;
|
|
12221
12221
|
}); f < s.length; f++) {
|
|
12222
12222
|
var u = s[f];
|
|
12223
|
-
u.firstSector = u.entry.length === 0 ? -2 : this.miniFat.allocate(
|
|
12223
|
+
u.firstSector = u.entry.length === 0 ? -2 : this.miniFat.allocate(mi(u.entry.length) / 64);
|
|
12224
12224
|
}
|
|
12225
|
-
var
|
|
12225
|
+
var d = Se(4 * this.miniFat.count()) / 512, l = d !== 0 ? this.fat.allocate(d) : -2, b = 64 * this.miniFat.count(), _ = this.fat.allocate(Se(b) / 512);
|
|
12226
12226
|
this.liteEnts[0].firstSector = _;
|
|
12227
|
-
var g = this.fat.allocateAs(Se(4 * (this.fat.count() + this.fat.count() / 128 + this.fat.count() / (128 * 109))) / 512, -3), E = this.fat.count() - g, x = E > 109 ? Se(4 * Math.floor((E - 109) / 127 * 128)) / 512 : 0, A = x !== 0 ? this.fat.allocateAs(x, -4) : -2, T = new ArrayBuffer(512 * (1 + this.fat.count())),
|
|
12228
|
-
|
|
12229
|
-
var
|
|
12227
|
+
var g = this.fat.allocateAs(Se(4 * (this.fat.count() + this.fat.count() / 128 + this.fat.count() / (128 * 109))) / 512, -3), E = this.fat.count() - g, x = E > 109 ? Se(4 * Math.floor((E - 109) / 127 * 128)) / 512 : 0, A = x !== 0 ? this.fat.allocateAs(x, -4) : -2, T = new ArrayBuffer(512 * (1 + this.fat.count())), p = new kt.default(T, 0, kt.default.LITTLE_ENDIAN);
|
|
12228
|
+
p.dynamicSize = !1, this.miniFat.finalize(512 / 4, -1);
|
|
12229
|
+
var m = [], v = [];
|
|
12230
12230
|
{
|
|
12231
12231
|
for (var y = 0; y < 109 && y < E; y++)
|
|
12232
|
-
|
|
12232
|
+
m.push(g + y);
|
|
12233
12233
|
for (var I = A + 1; y < E; y++) {
|
|
12234
|
-
|
|
12235
|
-
var N =
|
|
12236
|
-
N === 127 && (
|
|
12234
|
+
v.push(g + y);
|
|
12235
|
+
var N = v.length & 127;
|
|
12236
|
+
N === 127 && (v.push(I), I++);
|
|
12237
12237
|
}
|
|
12238
12238
|
for (; ; ) {
|
|
12239
|
-
var N =
|
|
12239
|
+
var N = v.length & 127;
|
|
12240
12240
|
if (N === 0)
|
|
12241
12241
|
break;
|
|
12242
|
-
|
|
12242
|
+
v.push(N === 127 ? -2 : -1);
|
|
12243
12243
|
}
|
|
12244
12244
|
}
|
|
12245
12245
|
{
|
|
12246
|
-
|
|
12247
|
-
for (var y = 0; y <
|
|
12248
|
-
|
|
12246
|
+
p.seek(0), p.writeUint8Array(vi.default.FILE_HEADER), p.seek(24), p.writeUint16(62), p.writeUint16(3), p.writeUint16(65534), p.writeUint16(9), p.writeUint16(6), p.seek(44), p.writeInt32(E), p.writeInt32(a), p.seek(56), p.writeInt32(4096), p.writeInt32(l), p.writeInt32(d), p.writeInt32(A), p.writeInt32(x);
|
|
12247
|
+
for (var y = 0; y < m.length; y++)
|
|
12248
|
+
p.writeInt32(m[y]);
|
|
12249
12249
|
for (; y < 109; y++)
|
|
12250
|
-
|
|
12250
|
+
p.writeInt32(-1);
|
|
12251
12251
|
}
|
|
12252
12252
|
for (var y = 0; y < this.liteEnts.length; y++) {
|
|
12253
|
-
var u = this.liteEnts[y],
|
|
12254
|
-
|
|
12255
|
-
var
|
|
12256
|
-
|
|
12257
|
-
var O = y === 0 ?
|
|
12258
|
-
|
|
12253
|
+
var u = this.liteEnts[y], D = 512 * (1 + a) + 128 * y;
|
|
12254
|
+
p.seek(D), p.writeUCS2String(u.entry.name, null, null);
|
|
12255
|
+
var C = p.position - D;
|
|
12256
|
+
p.seek(D + 64), p.writeUint16(Math.min(64, C + 2)), p.writeUint8(u.entry.type), p.writeUint8(u.isRed ? 0 : 1), p.writeInt32(u.left), p.writeInt32(u.right), p.writeInt32(u.child), y === 0 && (p.seek(D + 80), p.writeUint8Array([11, 13, 2, 0, 0, 0, 0, 0, 192, 0, 0, 0, 0, 0, 0, 70]));
|
|
12257
|
+
var O = y === 0 ? b : u.entry.length, R = O !== 0 ? u.firstSector : u.entry.type === we.TypeEnum.DIRECTORY ? 0 : -2;
|
|
12258
|
+
p.seek(D + 116), p.writeInt32(R), p.writeInt32(O);
|
|
12259
12259
|
}
|
|
12260
|
-
for (var
|
|
12261
|
-
return
|
|
12262
|
-
});
|
|
12263
|
-
var u =
|
|
12264
|
-
|
|
12260
|
+
for (var k = 0, Y = this.liteEnts.filter(function(j) {
|
|
12261
|
+
return j.entry.type == we.TypeEnum.DOCUMENT && j.isMini === !1;
|
|
12262
|
+
}); k < Y.length; k++) {
|
|
12263
|
+
var u = Y[k], q = u.entry.binaryProvider();
|
|
12264
|
+
p.seek(512 * (1 + u.firstSector)), p.writeUint8Array(q);
|
|
12265
12265
|
}
|
|
12266
|
-
for (var
|
|
12267
|
-
return
|
|
12268
|
-
});
|
|
12269
|
-
var u = W[
|
|
12270
|
-
|
|
12266
|
+
for (var $ = 0, W = this.liteEnts.filter(function(j) {
|
|
12267
|
+
return j.entry.type == we.TypeEnum.DOCUMENT && j.isMini === !0;
|
|
12268
|
+
}); $ < W.length; $++) {
|
|
12269
|
+
var u = W[$], q = u.entry.binaryProvider();
|
|
12270
|
+
p.seek(512 * (1 + _) + 64 * u.firstSector), p.writeUint8Array(q);
|
|
12271
12271
|
}
|
|
12272
|
-
|
|
12272
|
+
p.seek(512 * (1 + l)), p.writeInt32Array(this.miniFat.sectors), this.fat.finalize(512 / 4, -1), p.seek(512 * (1 + g)), p.writeInt32Array(this.fat.sectors), x >= 1 && (p.seek(512 * (1 + A)), p.writeInt32Array(v)), this.array = T;
|
|
12273
12273
|
}
|
|
12274
12274
|
return e.prototype.compareName = function(t, a) {
|
|
12275
12275
|
var n = t.length - a.length;
|
|
@@ -12298,26 +12298,26 @@ var Pt = (
|
|
|
12298
12298
|
return E.isRed = !1, E.left = f(0, _, !0), E.right = f(_ + 1, u.length, !0), g;
|
|
12299
12299
|
};
|
|
12300
12300
|
c.child = s();
|
|
12301
|
-
for (var
|
|
12301
|
+
for (var d = 0, l = u.filter(function(_) {
|
|
12302
12302
|
return n[_].entry.type === we.TypeEnum.DIRECTORY;
|
|
12303
|
-
});
|
|
12304
|
-
var
|
|
12305
|
-
this.buildTree(
|
|
12303
|
+
}); d < l.length; d++) {
|
|
12304
|
+
var b = l[d];
|
|
12305
|
+
this.buildTree(b);
|
|
12306
12306
|
}
|
|
12307
12307
|
}
|
|
12308
12308
|
}, e;
|
|
12309
12309
|
}()
|
|
12310
12310
|
);
|
|
12311
|
-
function
|
|
12312
|
-
return new Uint8Array(new
|
|
12311
|
+
function gi(e) {
|
|
12312
|
+
return new Uint8Array(new Ei(e).array);
|
|
12313
12313
|
}
|
|
12314
|
-
var ht = {},
|
|
12314
|
+
var ht = {}, _i = fe && fe.__importDefault || function(e) {
|
|
12315
12315
|
return e && e.__esModule ? e : { default: e };
|
|
12316
12316
|
};
|
|
12317
12317
|
Object.defineProperty(ht, "__esModule", { value: !0 });
|
|
12318
|
-
ht.parse =
|
|
12319
|
-
var Gt =
|
|
12320
|
-
function
|
|
12318
|
+
ht.parse = wi;
|
|
12319
|
+
var Gt = _i(Le);
|
|
12320
|
+
function wi(e) {
|
|
12321
12321
|
for (var t = new Gt.default(e, 0, Gt.default.LITTLE_ENDIAN), a = []; !t.isEof(); ) {
|
|
12322
12322
|
var n = t.readUint32(), c = t.readUint16(), u = t.readUint16();
|
|
12323
12323
|
a.push({
|
|
@@ -12331,24 +12331,24 @@ function _i(e) {
|
|
|
12331
12331
|
}
|
|
12332
12332
|
var lt = {};
|
|
12333
12333
|
Object.defineProperty(lt, "__esModule", { value: !0 });
|
|
12334
|
-
lt.parse =
|
|
12335
|
-
function
|
|
12334
|
+
lt.parse = Ai;
|
|
12335
|
+
function Ai(e) {
|
|
12336
12336
|
for (var t = [], a = 0; !e.isEof(); ) {
|
|
12337
12337
|
var n = e.readUint16();
|
|
12338
12338
|
if (n === 258) {
|
|
12339
12339
|
a = e.readUint16(), e.readUint16();
|
|
12340
12340
|
for (var c = 0; c < a; c += 1) {
|
|
12341
|
-
var u = e.readInt32(), f = e.readUint8(), s = e.readString(f),
|
|
12342
|
-
e.readString(
|
|
12341
|
+
var u = e.readInt32(), f = e.readUint8(), s = e.readString(f), d = e.readUint8();
|
|
12342
|
+
e.readString(d);
|
|
12343
12343
|
var l = e.readUint8();
|
|
12344
12344
|
e.readString(l);
|
|
12345
|
-
var
|
|
12346
|
-
e.readString(
|
|
12345
|
+
var b = e.readUint8();
|
|
12346
|
+
e.readString(b), e.readInt32(), e.readUint8(), e.readInt32(), e.readInt32(), e.readInt32(), e.readInt32(), e.readInt32(), e.readInt32(), t.push({ VerbType: u, DisplayName: s });
|
|
12347
12347
|
}
|
|
12348
12348
|
} else if (n === 260)
|
|
12349
12349
|
for (var c = 0; c < a; c += 1) {
|
|
12350
|
-
var f = e.readUint8(), s = e.readUCS2String(f),
|
|
12351
|
-
e.readUCS2String(
|
|
12350
|
+
var f = e.readUint8(), s = e.readUCS2String(f), b = e.readUint8();
|
|
12351
|
+
e.readUCS2String(b), t[c].DisplayName = s;
|
|
12352
12352
|
}
|
|
12353
12353
|
}
|
|
12354
12354
|
return t.filter(function(_) {
|
|
@@ -12359,9 +12359,9 @@ function wi(e) {
|
|
|
12359
12359
|
}
|
|
12360
12360
|
var dt = {};
|
|
12361
12361
|
Object.defineProperty(dt, "__esModule", { value: !0 });
|
|
12362
|
-
dt.parse =
|
|
12363
|
-
var it = re,
|
|
12364
|
-
function
|
|
12362
|
+
dt.parse = Ti;
|
|
12363
|
+
var it = re, xi = 1, Ii = 2;
|
|
12364
|
+
function Ti(e) {
|
|
12365
12365
|
var t = { rules: [] };
|
|
12366
12366
|
if (!e.isEof()) {
|
|
12367
12367
|
var a = e.readUint8();
|
|
@@ -12370,35 +12370,35 @@ function Ii(e) {
|
|
|
12370
12370
|
if (e.readUint8(), a < 1)
|
|
12371
12371
|
throw new Error("TZDEFINITION minor version not supported");
|
|
12372
12372
|
var n = e.readUint16(), c = e.readUint16();
|
|
12373
|
-
if (c &
|
|
12373
|
+
if (c & xi && (e.readInt32(), e.readInt32(), e.readInt32(), e.readInt32()), c & Ii) {
|
|
12374
12374
|
var u = e.readUint16();
|
|
12375
12375
|
t.keyName = e.readUCS2String(u);
|
|
12376
12376
|
}
|
|
12377
12377
|
var f = e.readUint16();
|
|
12378
12378
|
e.seek(4 + n);
|
|
12379
12379
|
for (var s = 0; s < f; s++) {
|
|
12380
|
-
var
|
|
12381
|
-
if (
|
|
12380
|
+
var d = e.readUint8();
|
|
12381
|
+
if (d !== 2 || (e.readUint8(), d < 1))
|
|
12382
12382
|
break;
|
|
12383
|
-
var l = e.readUint16(),
|
|
12383
|
+
var l = e.readUint16(), b = e.position, _ = e.readUint16(), g = (0, it.readSystemTime)(e), E = e.readInt32(), x = e.readInt32(), A = e.readInt32(), T = (0, it.readTransitionSystemTime)(e), p = (0, it.readTransitionSystemTime)(e), m = Object.assign({}, {
|
|
12384
12384
|
flags: _,
|
|
12385
12385
|
start: (g == null ? void 0 : g.toUTCString()) || null,
|
|
12386
12386
|
bias: E,
|
|
12387
12387
|
standardBias: x,
|
|
12388
12388
|
daylightBias: A,
|
|
12389
12389
|
standardDate: T,
|
|
12390
|
-
daylightDate:
|
|
12390
|
+
daylightDate: p
|
|
12391
12391
|
});
|
|
12392
|
-
t.rules.push(
|
|
12392
|
+
t.rules.push(m), e.seek(b + l);
|
|
12393
12393
|
}
|
|
12394
12394
|
}
|
|
12395
12395
|
return t;
|
|
12396
12396
|
}
|
|
12397
12397
|
var pt = {};
|
|
12398
12398
|
Object.defineProperty(pt, "__esModule", { value: !0 });
|
|
12399
|
-
pt.parse =
|
|
12399
|
+
pt.parse = Si;
|
|
12400
12400
|
var Ht = re;
|
|
12401
|
-
function
|
|
12401
|
+
function Si(e) {
|
|
12402
12402
|
if (!e.isEof()) {
|
|
12403
12403
|
var t = e.readInt32(), a = e.readInt32(), n = e.readInt32(), c = e.readUint16(), u = (0, Ht.readTransitionSystemTime)(e), f = e.readUint16(), s = (0, Ht.readTransitionSystemTime)(e);
|
|
12404
12404
|
return Object.assign({}, {
|
|
@@ -12416,7 +12416,7 @@ function Ti(e) {
|
|
|
12416
12416
|
var ue = {};
|
|
12417
12417
|
Object.defineProperty(ue, "__esModule", { value: !0 });
|
|
12418
12418
|
ue.OverrideFlags = ue.EndType = ue.CalendarType = ue.PatternType = ue.RecurFrequency = void 0;
|
|
12419
|
-
ue.parse =
|
|
12419
|
+
ue.parse = Ui;
|
|
12420
12420
|
var Yt;
|
|
12421
12421
|
(function(e) {
|
|
12422
12422
|
e[e.Daily = 8202] = "Daily", e[e.Weekly = 8203] = "Weekly", e[e.Monthly = 8204] = "Monthly", e[e.Yearly = 8205] = "Yearly";
|
|
@@ -12437,60 +12437,60 @@ var se;
|
|
|
12437
12437
|
(function(e) {
|
|
12438
12438
|
e[e.ARO_SUBJECT = 1] = "ARO_SUBJECT", e[e.ARO_MEETINGTYPE = 2] = "ARO_MEETINGTYPE", e[e.ARO_REMINDERDELTA = 4] = "ARO_REMINDERDELTA", e[e.ARO_REMINDER = 8] = "ARO_REMINDER", e[e.ARO_LOCATION = 16] = "ARO_LOCATION", e[e.ARO_BUSYSTATUS = 32] = "ARO_BUSYSTATUS", e[e.ARO_ATTACHMENT = 64] = "ARO_ATTACHMENT", e[e.ARO_SUBTYPE = 128] = "ARO_SUBTYPE", e[e.ARO_APPTCOLOR = 256] = "ARO_APPTCOLOR", e[e.ARO_EXCEPTIONAL_BODY = 512] = "ARO_EXCEPTIONAL_BODY";
|
|
12439
12439
|
})(se || (ue.OverrideFlags = se = {}));
|
|
12440
|
-
function
|
|
12440
|
+
function Bi(e) {
|
|
12441
12441
|
var t = e.readUint16();
|
|
12442
12442
|
if (t !== 12292)
|
|
12443
12443
|
throw new Error("ReaderVersion not supported");
|
|
12444
12444
|
var a = e.readUint16();
|
|
12445
12445
|
if (a !== 12292)
|
|
12446
12446
|
throw new Error("WriterVersion not supported");
|
|
12447
|
-
var n = e.readUint16(), c = e.readUint16(), u = e.readUint16(), f = e.readUint32(), s = e.readUint32(),
|
|
12447
|
+
var n = e.readUint16(), c = e.readUint16(), u = e.readUint16(), f = e.readUint32(), s = e.readUint32(), d = e.readUint32(), l = void 0, b = void 0, _ = void 0;
|
|
12448
12448
|
c === Ee.Week ? l = {
|
|
12449
12449
|
dayOfWeekBits: e.readUint32()
|
|
12450
|
-
} : c === Ee.Month || c === Ee.MonthEnd || c === Ee.HjMonth || c === Ee.HjMonthEnd ?
|
|
12450
|
+
} : c === Ee.Month || c === Ee.MonthEnd || c === Ee.HjMonth || c === Ee.HjMonthEnd ? b = {
|
|
12451
12451
|
day: e.readUint32()
|
|
12452
12452
|
} : (c === Ee.MonthNth || c === Ee.HjMonthNth) && (_ = {
|
|
12453
12453
|
dayOfWeekBits: e.readUint32(),
|
|
12454
12454
|
n: e.readUint32()
|
|
12455
12455
|
});
|
|
12456
|
-
var g = e.readUint32(), E = e.readUint32(), x = e.readUint32(), A = e.readUint32(), T = Array.from(e.readUint32Array(A)),
|
|
12456
|
+
var g = e.readUint32(), E = e.readUint32(), x = e.readUint32(), A = e.readUint32(), T = Array.from(e.readUint32Array(A)), p = e.readUint32(), m = Array.from(e.readUint32Array(p)), v = e.readUint32(), y = e.readUint32();
|
|
12457
12457
|
return Object.assign({
|
|
12458
12458
|
recurFrequency: n,
|
|
12459
12459
|
patternType: c,
|
|
12460
12460
|
calendarType: u,
|
|
12461
12461
|
firstDateTime: f,
|
|
12462
12462
|
period: s,
|
|
12463
|
-
slidingFlag:
|
|
12463
|
+
slidingFlag: d,
|
|
12464
12464
|
endType: g,
|
|
12465
12465
|
occurrenceCount: E,
|
|
12466
12466
|
firstDOW: x,
|
|
12467
12467
|
deletedInstanceDates: T,
|
|
12468
|
-
modifiedInstanceDates:
|
|
12469
|
-
startDate:
|
|
12468
|
+
modifiedInstanceDates: m,
|
|
12469
|
+
startDate: v,
|
|
12470
12470
|
endDate: y
|
|
12471
|
-
}, l ? { patternTypeWeek: l } : {},
|
|
12471
|
+
}, l ? { patternTypeWeek: l } : {}, b ? { patternTypeMonth: b } : {}, _ ? { patternTypeMonthNth: _ } : {});
|
|
12472
12472
|
}
|
|
12473
|
-
function
|
|
12474
|
-
var a =
|
|
12473
|
+
function Ui(e, t) {
|
|
12474
|
+
var a = Bi(e), n = e.readUint32();
|
|
12475
12475
|
if (n !== 12294)
|
|
12476
12476
|
throw new Error("ReaderVersion2 not supported");
|
|
12477
12477
|
var c = e.readUint32();
|
|
12478
12478
|
if (c < 12294)
|
|
12479
12479
|
throw new Error("WriterVersion2 not supported");
|
|
12480
|
-
for (var u = e.readUint32(), f = e.readUint32(), s = e.readUint16(),
|
|
12481
|
-
var
|
|
12480
|
+
for (var u = e.readUint32(), f = e.readUint32(), s = e.readUint16(), d = [], l = 0; l < s; l++) {
|
|
12481
|
+
var b = e.readUint32(), _ = e.readUint32(), g = e.readUint32(), E = e.readUint16(), x = void 0;
|
|
12482
12482
|
if (E & se.ARO_SUBJECT) {
|
|
12483
12483
|
var A = e.readUint16(), T = e.readUint16();
|
|
12484
12484
|
if (A - 1 !== T)
|
|
12485
12485
|
throw new Error("subjectLength ".concat(A, " and subjectLength2 ").concat(T, " are not close!"));
|
|
12486
12486
|
x = e.readString(T, t);
|
|
12487
12487
|
}
|
|
12488
|
-
var
|
|
12489
|
-
E & se.ARO_MEETINGTYPE && (
|
|
12488
|
+
var p = void 0;
|
|
12489
|
+
E & se.ARO_MEETINGTYPE && (p = e.readUint32());
|
|
12490
|
+
var m = void 0;
|
|
12491
|
+
E & se.ARO_REMINDERDELTA && (m = e.readUint32());
|
|
12490
12492
|
var v = void 0;
|
|
12491
|
-
E & se.
|
|
12492
|
-
var b = void 0;
|
|
12493
|
-
E & se.ARO_REMINDER && (b = e.readUint32());
|
|
12493
|
+
E & se.ARO_REMINDER && (v = e.readUint32());
|
|
12494
12494
|
var y = void 0;
|
|
12495
12495
|
if (E & se.ARO_LOCATION) {
|
|
12496
12496
|
var I = e.readUint16(), N = e.readUint16();
|
|
@@ -12498,63 +12498,63 @@ function Bi(e, t) {
|
|
|
12498
12498
|
throw new Error("locationLength ".concat(I, " and locationLength2 ").concat(N, " are not close!"));
|
|
12499
12499
|
y = e.readString(N, t);
|
|
12500
12500
|
}
|
|
12501
|
-
var
|
|
12502
|
-
E & se.ARO_BUSYSTATUS && (
|
|
12503
|
-
var
|
|
12504
|
-
E & se.ARO_ATTACHMENT && (
|
|
12501
|
+
var D = void 0;
|
|
12502
|
+
E & se.ARO_BUSYSTATUS && (D = e.readUint32());
|
|
12503
|
+
var C = void 0;
|
|
12504
|
+
E & se.ARO_ATTACHMENT && (C = e.readUint32());
|
|
12505
12505
|
var O = void 0;
|
|
12506
12506
|
E & se.ARO_SUBTYPE && (O = e.readUint32());
|
|
12507
12507
|
var R = void 0;
|
|
12508
|
-
E & se.ARO_APPTCOLOR && (R = e.readUint32()),
|
|
12509
|
-
startDateTime:
|
|
12508
|
+
E & se.ARO_APPTCOLOR && (R = e.readUint32()), d.push(Object.assign({
|
|
12509
|
+
startDateTime: b,
|
|
12510
12510
|
endDateTime: _,
|
|
12511
12511
|
originalStartTime: g,
|
|
12512
12512
|
overrideFlags: E
|
|
12513
|
-
}, x ? { subject: x } : {},
|
|
12513
|
+
}, x ? { subject: x } : {}, p ? { meetingType: p } : {}, m ? { reminderDelta: m } : {}, v ? { reminderSet: v } : {}, y ? { location: y } : {}, D ? { busyStatus: D } : {}, C ? { attachment: C } : {}, O ? { subType: O } : {}, R ? { appointmentColor: R } : {}));
|
|
12514
12514
|
}
|
|
12515
|
-
var
|
|
12516
|
-
if (
|
|
12517
|
-
throw new Error("reservedBlock1Size ".concat(
|
|
12515
|
+
var k = e.readUint32();
|
|
12516
|
+
if (k !== 0)
|
|
12517
|
+
throw new Error("reservedBlock1Size ".concat(k, " is not zero, AppointmentRecur is broken"));
|
|
12518
12518
|
for (var l = 0; l < s; l++) {
|
|
12519
|
-
var
|
|
12519
|
+
var Y = d[l];
|
|
12520
12520
|
if (12297 <= c) {
|
|
12521
12521
|
var q = e.readUint32();
|
|
12522
|
-
|
|
12522
|
+
Y.changeHighlight = e.readUint32(), e.position += q - 4;
|
|
12523
12523
|
}
|
|
12524
|
-
var
|
|
12525
|
-
if (
|
|
12526
|
-
throw new Error("reservedBlockEE1Size ".concat(
|
|
12527
|
-
if (
|
|
12528
|
-
var
|
|
12529
|
-
if (e.readUint32(),
|
|
12524
|
+
var $ = e.readUint32();
|
|
12525
|
+
if ($ !== 0)
|
|
12526
|
+
throw new Error("reservedBlockEE1Size ".concat($, " is not zero, AppointmentRecur is broken"));
|
|
12527
|
+
if (Y.overrideFlags & (se.ARO_SUBJECT | se.ARO_LOCATION)) {
|
|
12528
|
+
var b = e.readUint32(), _ = e.readUint32();
|
|
12529
|
+
if (e.readUint32(), Y.overrideFlags & se.ARO_SUBJECT) {
|
|
12530
12530
|
var W = e.readUint16();
|
|
12531
|
-
|
|
12531
|
+
Y.subject = e.readUCS2String(W);
|
|
12532
12532
|
}
|
|
12533
|
-
if (
|
|
12534
|
-
var
|
|
12535
|
-
|
|
12533
|
+
if (Y.overrideFlags & se.ARO_LOCATION) {
|
|
12534
|
+
var j = e.readUint16();
|
|
12535
|
+
Y.location = e.readUCS2String(j);
|
|
12536
12536
|
}
|
|
12537
|
-
var
|
|
12538
|
-
if (
|
|
12539
|
-
throw new Error("reservedBlockEE2Size ".concat(
|
|
12537
|
+
var S = e.readUint32();
|
|
12538
|
+
if (S !== 0)
|
|
12539
|
+
throw new Error("reservedBlockEE2Size ".concat(S, " is not zero, AppointmentRecur is broken"));
|
|
12540
12540
|
}
|
|
12541
12541
|
}
|
|
12542
|
-
var
|
|
12543
|
-
if (
|
|
12544
|
-
throw new Error("reservedBlock2Size ".concat(
|
|
12542
|
+
var L = e.readUint32();
|
|
12543
|
+
if (L !== 0)
|
|
12544
|
+
throw new Error("reservedBlock2Size ".concat(L, " is not zero, AppointmentRecur is broken"));
|
|
12545
12545
|
return {
|
|
12546
12546
|
recurrencePattern: a,
|
|
12547
12547
|
startTimeOffset: u,
|
|
12548
12548
|
endTimeOffset: f,
|
|
12549
|
-
exceptionInfo:
|
|
12549
|
+
exceptionInfo: d
|
|
12550
12550
|
};
|
|
12551
12551
|
}
|
|
12552
12552
|
(function(e) {
|
|
12553
|
-
var t = fe && fe.__importDefault || function(
|
|
12554
|
-
return
|
|
12553
|
+
var t = fe && fe.__importDefault || function(m) {
|
|
12554
|
+
return m && m.__esModule ? m : { default: m };
|
|
12555
12555
|
};
|
|
12556
12556
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.OverrideFlags = e.EndType = e.CalendarType = e.PatternType = e.RecurFrequency = void 0;
|
|
12557
|
-
var a = t(Fe), n = t(Le), c = Ae, u = ut, f = re, s = ht,
|
|
12557
|
+
var a = t(Fe), n = t(Le), c = Ae, u = ut, f = re, s = ht, d = lt, l = dt, b = pt, _ = ue, g = ue;
|
|
12558
12558
|
Object.defineProperty(e, "RecurFrequency", { enumerable: !0, get: function() {
|
|
12559
12559
|
return g.RecurFrequency;
|
|
12560
12560
|
} }), Object.defineProperty(e, "PatternType", { enumerable: !0, get: function() {
|
|
@@ -12567,118 +12567,118 @@ function Bi(e, t) {
|
|
|
12567
12567
|
return g.OverrideFlags;
|
|
12568
12568
|
} });
|
|
12569
12569
|
var E;
|
|
12570
|
-
(function(
|
|
12571
|
-
|
|
12570
|
+
(function(m) {
|
|
12571
|
+
m[m.DIRECTORY = 1] = "DIRECTORY", m[m.DOCUMENT = 2] = "DOCUMENT", m[m.ROOT = 5] = "ROOT";
|
|
12572
12572
|
})(E || (E = {}));
|
|
12573
12573
|
var x;
|
|
12574
|
-
(function(
|
|
12575
|
-
|
|
12574
|
+
(function(m) {
|
|
12575
|
+
m[m.root = 0] = "root", m[m.toSub = 1] = "toSub", m[m.named = 2] = "named";
|
|
12576
12576
|
})(x || (x = {}));
|
|
12577
|
-
function A(
|
|
12578
|
-
return (
|
|
12577
|
+
function A(m) {
|
|
12578
|
+
return (m - 116444736e9) / 1e4;
|
|
12579
12579
|
}
|
|
12580
|
-
function T(
|
|
12581
|
-
var
|
|
12582
|
-
return
|
|
12580
|
+
function T(m) {
|
|
12581
|
+
var v = m.indexOf("\0");
|
|
12582
|
+
return v !== -1 ? m.substring(0, v) : m;
|
|
12583
12583
|
}
|
|
12584
|
-
var
|
|
12584
|
+
var p = (
|
|
12585
12585
|
/** @class */
|
|
12586
12586
|
function() {
|
|
12587
|
-
function v
|
|
12588
|
-
this.reader = new c.Reader(
|
|
12587
|
+
function m(v) {
|
|
12588
|
+
this.reader = new c.Reader(v);
|
|
12589
12589
|
}
|
|
12590
|
-
return
|
|
12591
|
-
var
|
|
12592
|
-
if (
|
|
12593
|
-
var W = this.privatePidToKeyed[
|
|
12590
|
+
return m.prototype.decodeField = function(v, y, I, N, D) {
|
|
12591
|
+
var C = I(), O = new n.default(C, 0, n.default.LITTLE_ENDIAN), R = a.default.MSG.FIELD.FULL_NAME_MAPPING["".concat(v).concat(y)] || a.default.MSG.FIELD.NAME_MAPPING[v], k = x.root, Y = void 0, q = void 0, $ = parseInt("0x".concat(v));
|
|
12592
|
+
if ($ >= 32768) {
|
|
12593
|
+
var W = this.privatePidToKeyed[$];
|
|
12594
12594
|
if (W)
|
|
12595
12595
|
if (W.useName)
|
|
12596
|
-
R = W.name,
|
|
12596
|
+
R = W.name, k = x.named;
|
|
12597
12597
|
else {
|
|
12598
|
-
|
|
12599
|
-
var
|
|
12600
|
-
if (
|
|
12601
|
-
var
|
|
12602
|
-
|
|
12598
|
+
Y = W.propertySet, q = (0, f.toHex4)(W.propertyLid);
|
|
12599
|
+
var j = a.default.MSG.FIELD.PIDLID_MAPPING[W.propertySet];
|
|
12600
|
+
if (j !== void 0) {
|
|
12601
|
+
var S = j[W.propertyLid];
|
|
12602
|
+
S !== void 0 && (S.dispid !== void 0 ? (R = S.dispid, k = x.root) : (R = S.id, k = x.toSub));
|
|
12603
12603
|
}
|
|
12604
12604
|
}
|
|
12605
12605
|
}
|
|
12606
|
-
var
|
|
12607
|
-
if (
|
|
12608
|
-
|
|
12609
|
-
else if (
|
|
12610
|
-
|
|
12611
|
-
else if (
|
|
12612
|
-
|
|
12613
|
-
else if (
|
|
12614
|
-
|
|
12615
|
-
else if (
|
|
12616
|
-
|
|
12617
|
-
else if (
|
|
12618
|
-
var
|
|
12619
|
-
|
|
12606
|
+
var L = C, V = !1, G = a.default.MSG.FIELD.TYPE_MAPPING[y];
|
|
12607
|
+
if (G === "string")
|
|
12608
|
+
L = T(O.readString(C.length, N)), V = D;
|
|
12609
|
+
else if (G === "unicode")
|
|
12610
|
+
L = T(O.readUCS2String(C.length / 2)), V = D;
|
|
12611
|
+
else if (G === "binary")
|
|
12612
|
+
V = D;
|
|
12613
|
+
else if (G === "integer")
|
|
12614
|
+
L = O.readUint32();
|
|
12615
|
+
else if (G === "boolean")
|
|
12616
|
+
L = !!O.readUint16();
|
|
12617
|
+
else if (G === "time") {
|
|
12618
|
+
var H = O.readUint32(), X = H + 4294967296 * O.readUint32();
|
|
12619
|
+
L = new Date(A(X)).toUTCString();
|
|
12620
12620
|
}
|
|
12621
|
-
if (
|
|
12622
|
-
R = "votingOptions",
|
|
12621
|
+
if (V && (R = void 0), R === "PidLidVerbStream")
|
|
12622
|
+
R = "votingOptions", k = x.root, L = (0, d.parse)(O);
|
|
12623
12623
|
else if (R === "apptTZDefStartDisplay" || R === "apptTZDefEndDisplay" || R === "apptTZDefRecur")
|
|
12624
|
-
|
|
12624
|
+
k = x.root, L = (0, l.parse)(O);
|
|
12625
12625
|
else if (R === "timeZoneStruct")
|
|
12626
|
-
|
|
12626
|
+
L = (0, b.parse)(O);
|
|
12627
12627
|
else if (R === "apptRecur")
|
|
12628
12628
|
try {
|
|
12629
|
-
|
|
12629
|
+
L = (0, _.parse)(O, N);
|
|
12630
12630
|
} catch (He) {
|
|
12631
12631
|
console.debug(He), R = void 0;
|
|
12632
12632
|
}
|
|
12633
12633
|
else if (R === "recipType") {
|
|
12634
12634
|
var ge = 1, ve = 2, xe = 3;
|
|
12635
|
-
|
|
12636
|
-
} else R === "globalAppointmentID" && (
|
|
12637
|
-
var Ge = "".concat(
|
|
12638
|
-
return { key: R, keyType:
|
|
12639
|
-
},
|
|
12640
|
-
var N = y.name.substring(12).toLowerCase(),
|
|
12641
|
-
|
|
12642
|
-
},
|
|
12643
|
-
var N = I.key,
|
|
12644
|
-
N !== void 0 &&
|
|
12635
|
+
L === ge ? L = "to" : L === ve ? L = "cc" : L === xe && (L = "bcc");
|
|
12636
|
+
} else R === "globalAppointmentID" && (L = (0, f.bin2HexUpper)(O));
|
|
12637
|
+
var Ge = "".concat(v).concat(y);
|
|
12638
|
+
return { key: R, keyType: k, value: L, notForRawProp: V, propertyTag: Ge, propertySet: Y, propertyLid: q };
|
|
12639
|
+
}, m.prototype.fieldsDataDocument = function(v, y, I) {
|
|
12640
|
+
var N = y.name.substring(12).toLowerCase(), D = N.substring(0, 4), C = N.substring(4, 8);
|
|
12641
|
+
v.propertyObserver && v.propertyObserver(I, parseInt(N.substring(0, 8), 16), y.provider()), D == a.default.MSG.FIELD.CLASS_MAPPING.ATTACHMENT_DATA ? (I.dataId = y.dataId, I.contentLength = y.length) : this.setDecodedFieldTo(v, I, this.decodeField(D, C, y.provider, v.ansiEncoding, !1));
|
|
12642
|
+
}, m.prototype.setDecodedFieldTo = function(v, y, I) {
|
|
12643
|
+
var N = I.key, D = I.keyType, C = I.value;
|
|
12644
|
+
N !== void 0 && D === x.root && (y[N] = C), v.includeRawProps === !0 && (y.rawProps = y.rawProps || [], I.notForRawProp || y.rawProps.push({
|
|
12645
12645
|
propertyTag: I.propertyTag,
|
|
12646
12646
|
propertySet: I.propertySet,
|
|
12647
12647
|
propertyLid: I.propertyLid,
|
|
12648
12648
|
propertyName: I.keyType === x.named ? I.key : void 0,
|
|
12649
|
-
value:
|
|
12649
|
+
value: C
|
|
12650
12650
|
}));
|
|
12651
|
-
},
|
|
12652
|
-
var y =
|
|
12651
|
+
}, m.prototype.getFieldType = function(v) {
|
|
12652
|
+
var y = v.name.substring(12).toLowerCase();
|
|
12653
12653
|
return y.substring(4, 8);
|
|
12654
|
-
},
|
|
12655
|
-
var
|
|
12654
|
+
}, m.prototype.fieldsDataDirInner = function(v, y, I, N) {
|
|
12655
|
+
var D = this;
|
|
12656
12656
|
if (y.name.indexOf(a.default.MSG.FIELD.PREFIX.ATTACHMENT) == 0) {
|
|
12657
|
-
var
|
|
12657
|
+
var C = {
|
|
12658
12658
|
dataType: "attachment"
|
|
12659
12659
|
};
|
|
12660
|
-
N.attachments.push(
|
|
12660
|
+
N.attachments.push(C), this.fieldsDataDir(v, y, I, C, "attachment");
|
|
12661
12661
|
} else if (y.name.indexOf(a.default.MSG.FIELD.PREFIX.RECIPIENT) == 0) {
|
|
12662
12662
|
var O = {
|
|
12663
12663
|
dataType: "recipient"
|
|
12664
12664
|
};
|
|
12665
|
-
N.recipients.push(O), this.fieldsDataDir(
|
|
12665
|
+
N.recipients.push(O), this.fieldsDataDir(v, y, I, O, "recip");
|
|
12666
12666
|
} else if (y.name.indexOf(a.default.MSG.FIELD.PREFIX.NAMEID) == 0)
|
|
12667
|
-
this.fieldsNameIdDir(
|
|
12667
|
+
this.fieldsNameIdDir(v, y, I, N);
|
|
12668
12668
|
else {
|
|
12669
12669
|
var R = this.getFieldType(y);
|
|
12670
12670
|
if (R == a.default.MSG.FIELD.DIR_TYPE.INNER_MSG) {
|
|
12671
|
-
var
|
|
12671
|
+
var k = {
|
|
12672
12672
|
dataType: "msg",
|
|
12673
12673
|
attachments: [],
|
|
12674
12674
|
recipients: []
|
|
12675
12675
|
};
|
|
12676
|
-
this.fieldsDataDir(
|
|
12677
|
-
return
|
|
12676
|
+
this.fieldsDataDir(v, y, I, k, "sub"), N.innerMsgContentFields = k, N.innerMsgContent = !0, N.folderId = y.dataId, this.innerMsgBurners[y.dataId] = function() {
|
|
12677
|
+
return D.burnMsg(y, I);
|
|
12678
12678
|
};
|
|
12679
12679
|
}
|
|
12680
12680
|
}
|
|
12681
|
-
},
|
|
12681
|
+
}, m.prototype.burnMsg = function(v, y) {
|
|
12682
12682
|
var I = [
|
|
12683
12683
|
{
|
|
12684
12684
|
name: "Root Entry",
|
|
@@ -12687,116 +12687,116 @@ function Bi(e, t) {
|
|
|
12687
12687
|
length: 0
|
|
12688
12688
|
}
|
|
12689
12689
|
];
|
|
12690
|
-
return this.registerFolder(I, 0,
|
|
12691
|
-
},
|
|
12692
|
-
for (var
|
|
12693
|
-
var
|
|
12694
|
-
if (
|
|
12695
|
-
var ge =
|
|
12696
|
-
ve.set(ge.subarray(0, 24), 0), ve.set(ge.subarray(24), 32),
|
|
12690
|
+
return this.registerFolder(I, 0, v, y, 0), (0, u.burn)(I);
|
|
12691
|
+
}, m.prototype.registerFolder = function(v, y, I, N, D) {
|
|
12692
|
+
for (var C = function(G) {
|
|
12693
|
+
var H = G.provider, X = G.length;
|
|
12694
|
+
if (D === 0 && G.name === "__properties_version1.0") {
|
|
12695
|
+
var ge = H(), ve = new Uint8Array(ge.length + 8);
|
|
12696
|
+
ve.set(ge.subarray(0, 24), 0), ve.set(ge.subarray(24), 32), H = function() {
|
|
12697
12697
|
return ve;
|
|
12698
12698
|
}, X = ve.length;
|
|
12699
12699
|
}
|
|
12700
|
-
var xe =
|
|
12701
|
-
|
|
12702
|
-
name:
|
|
12700
|
+
var xe = v.length;
|
|
12701
|
+
v[y].children.push(xe), v.push({
|
|
12702
|
+
name: G.name,
|
|
12703
12703
|
type: E.DOCUMENT,
|
|
12704
|
-
binaryProvider:
|
|
12704
|
+
binaryProvider: H,
|
|
12705
12705
|
length: X
|
|
12706
12706
|
});
|
|
12707
12707
|
}, O = 0, R = I.fileNameSets(); O < R.length; O++) {
|
|
12708
|
-
var
|
|
12709
|
-
|
|
12708
|
+
var k = R[O];
|
|
12709
|
+
C(k);
|
|
12710
12710
|
}
|
|
12711
|
-
if (
|
|
12712
|
-
for (var
|
|
12713
|
-
return
|
|
12714
|
-
}), q = 0,
|
|
12715
|
-
var W =
|
|
12716
|
-
|
|
12711
|
+
if (D === 0)
|
|
12712
|
+
for (var Y = N.subFolders().filter(function(G) {
|
|
12713
|
+
return G.name === a.default.MSG.FIELD.PREFIX.NAMEID;
|
|
12714
|
+
}), q = 0, $ = Y; q < $.length; q++) {
|
|
12715
|
+
var W = $[q], j = v.length;
|
|
12716
|
+
v[y].children.push(j), v.push({
|
|
12717
12717
|
name: W.name,
|
|
12718
12718
|
type: E.DIRECTORY,
|
|
12719
12719
|
children: [],
|
|
12720
12720
|
length: 0
|
|
12721
|
-
}), this.registerFolder(
|
|
12721
|
+
}), this.registerFolder(v, j, W, N, D + 1);
|
|
12722
12722
|
}
|
|
12723
|
-
for (var
|
|
12724
|
-
var
|
|
12725
|
-
|
|
12726
|
-
name:
|
|
12723
|
+
for (var S = 0, L = I.subFolders(); S < L.length; S++) {
|
|
12724
|
+
var V = L[S], j = v.length;
|
|
12725
|
+
v[y].children.push(j), v.push({
|
|
12726
|
+
name: V.name,
|
|
12727
12727
|
type: E.DIRECTORY,
|
|
12728
12728
|
children: [],
|
|
12729
12729
|
length: 0
|
|
12730
|
-
}), this.registerFolder(
|
|
12730
|
+
}), this.registerFolder(v, j, V, N, D + 1);
|
|
12731
12731
|
}
|
|
12732
|
-
},
|
|
12733
|
-
var N = y.provider(),
|
|
12734
|
-
this.importPropertiesFromFile(
|
|
12735
|
-
},
|
|
12732
|
+
}, m.prototype.fieldsRecipAndAttachmentProperties = function(v, y, I) {
|
|
12733
|
+
var N = y.provider(), D = new n.default(N, 8, n.default.LITTLE_ENDIAN);
|
|
12734
|
+
this.importPropertiesFromFile(v, D, I);
|
|
12735
|
+
}, m.prototype.importPropertiesFromFile = function(v, y, I) {
|
|
12736
12736
|
for (var N = function() {
|
|
12737
12737
|
var O = y.readUint32();
|
|
12738
12738
|
if (O === 0)
|
|
12739
12739
|
return "break";
|
|
12740
12740
|
y.readUint32();
|
|
12741
12741
|
var R = y.readUint8Array(8);
|
|
12742
|
-
|
|
12743
|
-
var
|
|
12744
|
-
|
|
12742
|
+
v.propertyObserver(I, O, R);
|
|
12743
|
+
var k = (0, f.toHex2)(O / 65536 & 65535), Y = (0, f.toHex2)(O & 65535);
|
|
12744
|
+
D.setDecodedFieldTo(v, I, D.decodeField(k, Y, function() {
|
|
12745
12745
|
return R;
|
|
12746
|
-
},
|
|
12747
|
-
},
|
|
12748
|
-
var
|
|
12749
|
-
if (
|
|
12746
|
+
}, v.ansiEncoding, !0));
|
|
12747
|
+
}, D = this; !y.isEof(); ) {
|
|
12748
|
+
var C = N();
|
|
12749
|
+
if (C === "break")
|
|
12750
12750
|
break;
|
|
12751
12751
|
}
|
|
12752
|
-
},
|
|
12753
|
-
var N = y.provider(),
|
|
12754
|
-
this.importPropertiesFromFile(
|
|
12755
|
-
},
|
|
12756
|
-
for (var
|
|
12757
|
-
var R = O[
|
|
12758
|
-
this.fieldsDataDirInner(
|
|
12752
|
+
}, m.prototype.fieldsRootProperties = function(v, y, I) {
|
|
12753
|
+
var N = y.provider(), D = new n.default(N, 32, n.default.LITTLE_ENDIAN);
|
|
12754
|
+
this.importPropertiesFromFile(v, D, I);
|
|
12755
|
+
}, m.prototype.fieldsDataDir = function(v, y, I, N, D) {
|
|
12756
|
+
for (var C = 0, O = y.subFolders(); C < O.length; C++) {
|
|
12757
|
+
var R = O[C];
|
|
12758
|
+
this.fieldsDataDirInner(v, R, I, N);
|
|
12759
12759
|
}
|
|
12760
|
-
for (var
|
|
12761
|
-
var q =
|
|
12762
|
-
q.name.indexOf(a.default.MSG.FIELD.PREFIX.DOCUMENT) == 0 ? this.fieldsDataDocument(
|
|
12760
|
+
for (var k = 0, Y = y.fileNameSets(); k < Y.length; k++) {
|
|
12761
|
+
var q = Y[k];
|
|
12762
|
+
q.name.indexOf(a.default.MSG.FIELD.PREFIX.DOCUMENT) == 0 ? this.fieldsDataDocument(v, q, N) : q.name === "__properties_version1.0" && (D === "recip" || D === "attachment" || D === "sub" ? this.fieldsRecipAndAttachmentProperties(v, q, N) : D === "root" && this.fieldsRootProperties(v, q, N));
|
|
12763
12763
|
}
|
|
12764
|
-
},
|
|
12765
|
-
for (var
|
|
12766
|
-
var
|
|
12767
|
-
if (
|
|
12768
|
-
var q =
|
|
12769
|
-
|
|
12764
|
+
}, m.prototype.fieldsNameIdDir = function(v, y, I, N) {
|
|
12765
|
+
for (var D = void 0, C = void 0, O = void 0, R = 0, k = y.fileNameSets(); R < k.length; R++) {
|
|
12766
|
+
var Y = k[R];
|
|
12767
|
+
if (Y.name.indexOf(a.default.MSG.FIELD.PREFIX.DOCUMENT) == 0) {
|
|
12768
|
+
var q = Y.name.substring(12).toLowerCase(), $ = q.substring(0, 4), W = q.substring(4, 8);
|
|
12769
|
+
$ === "0002" && W === "0102" ? D = Y.provider() : $ === "0003" && W === "0102" ? O = Y.provider() : $ === "0004" && W === "0102" && (C = Y.provider());
|
|
12770
12770
|
}
|
|
12771
12771
|
}
|
|
12772
|
-
if (
|
|
12773
|
-
for (var
|
|
12774
|
-
var
|
|
12775
|
-
if (
|
|
12776
|
-
|
|
12777
|
-
var
|
|
12778
|
-
this.privatePidToKeyed[32768 |
|
|
12772
|
+
if (D !== void 0 && C !== void 0 && O !== void 0)
|
|
12773
|
+
for (var j = (0, s.parse)(O), S = new n.default(C, 0, n.default.LITTLE_ENDIAN), L = 0, V = j; L < V.length; L++) {
|
|
12774
|
+
var G = V[L];
|
|
12775
|
+
if (G.isStringProperty) {
|
|
12776
|
+
S.seek(G.key);
|
|
12777
|
+
var H = S.readUint32();
|
|
12778
|
+
this.privatePidToKeyed[32768 | G.propertyIndex] = {
|
|
12779
12779
|
useName: !0,
|
|
12780
|
-
name:
|
|
12780
|
+
name: S.readUCS2String(H / 2)
|
|
12781
12781
|
};
|
|
12782
12782
|
} else
|
|
12783
|
-
this.privatePidToKeyed[32768 |
|
|
12783
|
+
this.privatePidToKeyed[32768 | G.propertyIndex] = {
|
|
12784
12784
|
useName: !1,
|
|
12785
|
-
propertySet:
|
|
12786
|
-
propertyLid:
|
|
12785
|
+
propertySet: G.guidIndex === 1 ? "00020328-00000-0000-C000-00000000046" : G.guidIndex === 2 ? "00020329-00000-0000-C000-00000000046" : (0, f.msftUuidStringify)(D, 16 * (G.guidIndex - 3)),
|
|
12786
|
+
propertyLid: G.key
|
|
12787
12787
|
};
|
|
12788
12788
|
}
|
|
12789
|
-
},
|
|
12789
|
+
}, m.prototype.fieldsDataReader = function(v) {
|
|
12790
12790
|
var y = {
|
|
12791
12791
|
dataType: "msg",
|
|
12792
12792
|
attachments: [],
|
|
12793
12793
|
recipients: []
|
|
12794
12794
|
};
|
|
12795
|
-
return this.fieldsDataDir(
|
|
12796
|
-
},
|
|
12797
|
-
return this.reader.parse(), this.fieldsDataReader(
|
|
12798
|
-
},
|
|
12799
|
-
var
|
|
12795
|
+
return this.fieldsDataDir(v, this.reader.rootFolder(), this.reader.rootFolder(), y, "root"), y;
|
|
12796
|
+
}, m.prototype.parseMsgData = function(v) {
|
|
12797
|
+
return this.reader.parse(), this.fieldsDataReader(v);
|
|
12798
|
+
}, m.prototype.getFileData = function() {
|
|
12799
|
+
var v, y, I;
|
|
12800
12800
|
if (this.fieldsData === void 0) {
|
|
12801
12801
|
if (!this.reader.isMSGFile())
|
|
12802
12802
|
return {
|
|
@@ -12804,33 +12804,33 @@ function Bi(e, t) {
|
|
|
12804
12804
|
error: "Unsupported file type!"
|
|
12805
12805
|
};
|
|
12806
12806
|
this.innerMsgBurners = {}, this.privatePidToKeyed = {}, this.fieldsData = this.parseMsgData({
|
|
12807
|
-
propertyObserver: ((
|
|
12807
|
+
propertyObserver: ((v = this.parserConfig) === null || v === void 0 ? void 0 : v.propertyObserver) || function() {
|
|
12808
12808
|
},
|
|
12809
12809
|
includeRawProps: !!(!((y = this.parserConfig) === null || y === void 0) && y.includeRawProps),
|
|
12810
12810
|
ansiEncoding: (0, f.emptyToNull)((I = this.parserConfig) === null || I === void 0 ? void 0 : I.ansiEncoding)
|
|
12811
12811
|
});
|
|
12812
12812
|
}
|
|
12813
12813
|
return this.fieldsData;
|
|
12814
|
-
},
|
|
12815
|
-
var y = typeof
|
|
12814
|
+
}, m.prototype.getAttachment = function(v) {
|
|
12815
|
+
var y = typeof v == "number" ? this.fieldsData.attachments[v] : v;
|
|
12816
12816
|
if (y.innerMsgContent === !0 && typeof y.folderId == "number")
|
|
12817
12817
|
return { fileName: y.name + ".msg", content: this.innerMsgBurners[y.folderId]() };
|
|
12818
12818
|
var I = this.reader.readFileOf(y.dataId);
|
|
12819
12819
|
return { fileName: y.fileName, content: I };
|
|
12820
|
-
},
|
|
12820
|
+
}, m;
|
|
12821
12821
|
}()
|
|
12822
12822
|
);
|
|
12823
|
-
e.default =
|
|
12823
|
+
e.default = p;
|
|
12824
12824
|
})(nt);
|
|
12825
12825
|
(function(e) {
|
|
12826
|
-
var t = fe && fe.__createBinding || (Object.create ? function(u, f, s,
|
|
12827
|
-
|
|
12826
|
+
var t = fe && fe.__createBinding || (Object.create ? function(u, f, s, d) {
|
|
12827
|
+
d === void 0 && (d = s);
|
|
12828
12828
|
var l = Object.getOwnPropertyDescriptor(f, s);
|
|
12829
12829
|
(!l || ("get" in l ? !f.__esModule : l.writable || l.configurable)) && (l = { enumerable: !0, get: function() {
|
|
12830
12830
|
return f[s];
|
|
12831
|
-
} }), Object.defineProperty(u,
|
|
12832
|
-
} : function(u, f, s,
|
|
12833
|
-
|
|
12831
|
+
} }), Object.defineProperty(u, d, l);
|
|
12832
|
+
} : function(u, f, s, d) {
|
|
12833
|
+
d === void 0 && (d = s), u[d] = f[s];
|
|
12834
12834
|
}), a = fe && fe.__exportStar || function(u, f) {
|
|
12835
12835
|
for (var s in u) s !== "default" && !Object.prototype.hasOwnProperty.call(f, s) && t(f, u, s);
|
|
12836
12836
|
}, n = fe && fe.__importDefault || function(u) {
|
|
@@ -12840,66 +12840,66 @@ function Bi(e, t) {
|
|
|
12840
12840
|
var c = n(nt);
|
|
12841
12841
|
a(nt, e), e.default = c.default;
|
|
12842
12842
|
})(Vt);
|
|
12843
|
-
const
|
|
12843
|
+
const Ni = /* @__PURE__ */ mr(Vt), Li = {
|
|
12844
12844
|
key: 0,
|
|
12845
12845
|
class: "vfp-renderer-loading"
|
|
12846
|
-
},
|
|
12846
|
+
}, Di = { class: "vfp-renderer-loading-content" }, Fi = { class: "vfp-renderer-loading-text" }, Oi = {
|
|
12847
12847
|
key: 2,
|
|
12848
12848
|
class: "vfp-w-full vfp-h-full vfp-overflow-auto",
|
|
12849
12849
|
style: { background: "white" }
|
|
12850
|
-
},
|
|
12850
|
+
}, Ri = { class: "msg-container" }, Mi = { class: "msg-header" }, Ci = { class: "msg-subject" }, ki = { class: "msg-meta" }, Pi = {
|
|
12851
12851
|
key: 0,
|
|
12852
12852
|
class: "msg-row"
|
|
12853
|
-
},
|
|
12853
|
+
}, Gi = { class: "msg-icon-wrap" }, Hi = { class: "msg-row-content" }, Yi = { class: "msg-value" }, ji = {
|
|
12854
12854
|
key: 1,
|
|
12855
12855
|
class: "msg-row"
|
|
12856
|
-
},
|
|
12856
|
+
}, qi = { class: "msg-icon-wrap" }, Vi = { class: "msg-row-content" }, zi = { class: "msg-value" }, Wi = {
|
|
12857
12857
|
key: 2,
|
|
12858
12858
|
class: "msg-row"
|
|
12859
|
-
},
|
|
12859
|
+
}, Zi = { class: "msg-icon-wrap" }, $i = { class: "msg-row-content" }, Ki = { class: "msg-value" }, Xi = {
|
|
12860
12860
|
key: 3,
|
|
12861
12861
|
class: "msg-row"
|
|
12862
|
-
},
|
|
12862
|
+
}, Ji = { class: "msg-icon-wrap" }, Qi = { class: "msg-row-content" }, en = { class: "msg-value" }, tn = {
|
|
12863
12863
|
key: 4,
|
|
12864
12864
|
class: "msg-row"
|
|
12865
|
-
},
|
|
12865
|
+
}, rn = { class: "msg-icon-wrap" }, nn = { class: "msg-row-content" }, an = { class: "msg-value" }, sn = {
|
|
12866
12866
|
key: 5,
|
|
12867
12867
|
class: "msg-row"
|
|
12868
|
-
},
|
|
12868
|
+
}, on = { class: "msg-icon-wrap" }, cn = { class: "msg-row-content" }, fn = { class: "msg-value" }, un = {
|
|
12869
12869
|
key: 6,
|
|
12870
12870
|
class: "msg-row"
|
|
12871
|
-
},
|
|
12871
|
+
}, hn = { class: "msg-icon-wrap" }, ln = { class: "msg-row-content" }, dn = { class: "msg-value" }, pn = {
|
|
12872
12872
|
key: 7,
|
|
12873
12873
|
class: "msg-row"
|
|
12874
|
-
},
|
|
12874
|
+
}, yn = { class: "msg-icon-wrap" }, bn = { class: "msg-row-content" }, vn = {
|
|
12875
12875
|
key: 8,
|
|
12876
12876
|
class: "msg-row"
|
|
12877
|
-
},
|
|
12877
|
+
}, mn = { class: "msg-icon-wrap" }, En = { class: "msg-row-content" }, gn = { class: "msg-value" }, _n = {
|
|
12878
12878
|
key: 9,
|
|
12879
12879
|
class: "msg-row"
|
|
12880
|
-
},
|
|
12880
|
+
}, wn = { class: "msg-icon-wrap" }, An = { class: "msg-row-content" }, xn = { class: "msg-value" }, In = {
|
|
12881
12881
|
key: 10,
|
|
12882
12882
|
class: "msg-row msg-row-bordered"
|
|
12883
|
-
},
|
|
12883
|
+
}, Tn = { class: "msg-icon-wrap" }, Sn = { class: "msg-row-content" }, Bn = { class: "msg-value msg-attachments" }, Un = {
|
|
12884
12884
|
key: 0,
|
|
12885
12885
|
class: "msg-attachment-size"
|
|
12886
|
-
},
|
|
12886
|
+
}, Nn = { class: "msg-icon-wrap" }, Ln = { class: "msg-row-content" }, Dn = { class: "msg-value msg-id" }, Fn = {
|
|
12887
12887
|
key: 12,
|
|
12888
12888
|
class: "msg-row"
|
|
12889
|
-
},
|
|
12889
|
+
}, On = { class: "msg-icon-wrap" }, Rn = { class: "msg-row-content" }, Mn = { class: "msg-value msg-id" }, Cn = ["innerHTML"], kn = /* @__PURE__ */ er({
|
|
12890
12890
|
__name: "index",
|
|
12891
12891
|
props: {
|
|
12892
12892
|
url: {}
|
|
12893
12893
|
},
|
|
12894
12894
|
setup(e, { expose: t }) {
|
|
12895
|
-
const a = e, { t: n } = cr(), c = fr(), u = qe(!0),
|
|
12896
|
-
function
|
|
12897
|
-
return S ? S.filter((
|
|
12898
|
-
const
|
|
12899
|
-
return
|
|
12895
|
+
const a = e, { t: n } = cr(), c = fr(), u = ur(), f = qe(!0), s = qe(null), d = qe(null);
|
|
12896
|
+
function l(S, L) {
|
|
12897
|
+
return S ? S.filter((V) => V.recipType === L).map((V) => {
|
|
12898
|
+
const G = V.name || "", H = V.smtpAddress || V.email || "";
|
|
12899
|
+
return G && H && G !== H ? `${G} <${H}>` : G || H;
|
|
12900
12900
|
}).filter(Boolean).join("; ") : "";
|
|
12901
12901
|
}
|
|
12902
|
-
function
|
|
12902
|
+
function b(S) {
|
|
12903
12903
|
if (!S) return "";
|
|
12904
12904
|
try {
|
|
12905
12905
|
const L = new Date(S);
|
|
@@ -12908,7 +12908,7 @@ const Ui = /* @__PURE__ */ vr(Vt), Ni = {
|
|
|
12908
12908
|
return S;
|
|
12909
12909
|
}
|
|
12910
12910
|
}
|
|
12911
|
-
function
|
|
12911
|
+
function _(S, L) {
|
|
12912
12912
|
if (S.bodyHtml) return S.bodyHtml;
|
|
12913
12913
|
if (S.html)
|
|
12914
12914
|
try {
|
|
@@ -12917,7 +12917,7 @@ const Ui = /* @__PURE__ */ vr(Vt), Ni = {
|
|
|
12917
12917
|
}
|
|
12918
12918
|
return S.body ? `<pre style="white-space: pre-wrap; word-wrap: break-word; font-family: system-ui, sans-serif;">${S.body.replace(/&/g, "&").replace(/\x3c/g, "<").replace(/>/g, ">")}</pre>` : `<p style="color: #999;">${L}</p>`;
|
|
12919
12919
|
}
|
|
12920
|
-
function
|
|
12920
|
+
function g(S) {
|
|
12921
12921
|
return S ? {
|
|
12922
12922
|
"IPM.Note": "Email",
|
|
12923
12923
|
"IPM.Note.SMIME": "Encrypted Email",
|
|
@@ -12930,265 +12930,265 @@ const Ui = /* @__PURE__ */ vr(Vt), Ni = {
|
|
|
12930
12930
|
"IPM.StickyNote": "Sticky Note"
|
|
12931
12931
|
}[S] || S : "";
|
|
12932
12932
|
}
|
|
12933
|
-
const
|
|
12934
|
-
u.value = !0,
|
|
12933
|
+
const E = async () => {
|
|
12934
|
+
u.begin(a.url), f.value = !0, s.value = null, d.value = null;
|
|
12935
12935
|
try {
|
|
12936
12936
|
const S = await c.value(a.url);
|
|
12937
|
-
if (!S.ok) throw new
|
|
12938
|
-
const L = await S.arrayBuffer(),
|
|
12939
|
-
|
|
12937
|
+
if (!S.ok) throw new hr("file.load_failed");
|
|
12938
|
+
const L = await S.arrayBuffer(), V = new Ni(L);
|
|
12939
|
+
d.value = V.getFileData();
|
|
12940
12940
|
} catch (S) {
|
|
12941
|
-
console.error(n.value("msg.parse_failed") + ":", S),
|
|
12941
|
+
console.error(n.value("msg.parse_failed") + ":", S), s.value = n.value("msg.parse_failed"), u.error(S);
|
|
12942
12942
|
} finally {
|
|
12943
|
-
|
|
12943
|
+
f.value = !1;
|
|
12944
12944
|
}
|
|
12945
12945
|
};
|
|
12946
12946
|
tr(() => a.url, (S) => {
|
|
12947
|
-
S &&
|
|
12947
|
+
S && E();
|
|
12948
12948
|
}, { immediate: !0 });
|
|
12949
|
-
const
|
|
12949
|
+
const x = te(() => {
|
|
12950
12950
|
var S;
|
|
12951
|
-
return ((S =
|
|
12952
|
-
}), x = te(() => {
|
|
12953
|
-
if (!s.value) return "";
|
|
12954
|
-
const S = s.value.senderName || "", L = s.value.senderSmtpAddress || s.value.senderEmail || "";
|
|
12955
|
-
return S && L && S !== L ? `${S} <${L}>` : S || L;
|
|
12951
|
+
return ((S = d.value) == null ? void 0 : S.subject) || n.value("msg.no_subject");
|
|
12956
12952
|
}), A = te(() => {
|
|
12957
|
-
|
|
12958
|
-
|
|
12953
|
+
if (!d.value) return "";
|
|
12954
|
+
const S = d.value.senderName || "", L = d.value.senderSmtpAddress || d.value.senderEmail || "";
|
|
12955
|
+
return S && L && S !== L ? `${S} <${L}>` : S || L;
|
|
12959
12956
|
}), T = te(() => {
|
|
12960
12957
|
var S;
|
|
12961
|
-
return
|
|
12962
|
-
}),
|
|
12958
|
+
return l((S = d.value) == null ? void 0 : S.recipients, "to");
|
|
12959
|
+
}), p = te(() => {
|
|
12963
12960
|
var S;
|
|
12964
|
-
return
|
|
12965
|
-
}),
|
|
12961
|
+
return l((S = d.value) == null ? void 0 : S.recipients, "cc");
|
|
12962
|
+
}), m = te(() => {
|
|
12966
12963
|
var S;
|
|
12967
|
-
return l((S =
|
|
12968
|
-
}),
|
|
12964
|
+
return l((S = d.value) == null ? void 0 : S.recipients, "bcc");
|
|
12965
|
+
}), v = te(() => {
|
|
12969
12966
|
var S;
|
|
12970
|
-
return
|
|
12967
|
+
return b((S = d.value) == null ? void 0 : S.clientSubmitTime);
|
|
12971
12968
|
}), y = te(() => {
|
|
12972
12969
|
var S;
|
|
12973
|
-
return
|
|
12970
|
+
return b((S = d.value) == null ? void 0 : S.messageDeliveryTime);
|
|
12974
12971
|
}), I = te(() => {
|
|
12975
12972
|
var S;
|
|
12976
|
-
return
|
|
12973
|
+
return b((S = d.value) == null ? void 0 : S.creationTime);
|
|
12977
12974
|
}), N = te(() => {
|
|
12978
12975
|
var S;
|
|
12979
|
-
return ((
|
|
12980
|
-
}),
|
|
12976
|
+
return b((S = d.value) == null ? void 0 : S.lastModificationTime);
|
|
12977
|
+
}), D = te(() => {
|
|
12981
12978
|
var S;
|
|
12982
|
-
return
|
|
12983
|
-
}), O = te(() => {
|
|
12979
|
+
return (((S = d.value) == null ? void 0 : S.attachments) || []).filter((L) => !L.attachmentHidden);
|
|
12980
|
+
}), C = te(() => d.value ? _(d.value, n.value("msg.empty_body")) : ""), O = te(() => {
|
|
12984
12981
|
var S;
|
|
12985
|
-
return ((S =
|
|
12982
|
+
return g((S = d.value) == null ? void 0 : S.messageClass);
|
|
12986
12983
|
}), R = te(() => {
|
|
12987
|
-
|
|
12984
|
+
var S;
|
|
12985
|
+
return ((S = d.value) == null ? void 0 : S.messageId) || "";
|
|
12986
|
+
}), k = te(() => {
|
|
12987
|
+
const S = d.value;
|
|
12988
12988
|
return S && typeof S.importance == "number" ? S.importance : void 0;
|
|
12989
|
-
}),
|
|
12990
|
-
const S =
|
|
12989
|
+
}), Y = te(() => k.value === 2 ? "High" : k.value === 0 ? "Low" : ""), q = te(() => {
|
|
12990
|
+
const S = d.value;
|
|
12991
12991
|
return S && typeof S.sensitivity == "number" ? S.sensitivity : void 0;
|
|
12992
|
-
}),
|
|
12992
|
+
}), $ = te(() => q.value === void 0 || q.value === 0 ? "" : {
|
|
12993
12993
|
1: "Personal",
|
|
12994
12994
|
2: "Private",
|
|
12995
12995
|
3: "Confidential"
|
|
12996
|
-
}[
|
|
12996
|
+
}[q.value] || ""), W = (S) => S ? S > 1048576 ? `${(S / 1048576).toFixed(1)} MB` : S > 1024 ? `${(S / 1024).toFixed(0)} KB` : `${S} B` : "";
|
|
12997
12997
|
return t({
|
|
12998
12998
|
getToolbarGroups: () => []
|
|
12999
|
-
}), (S, L) =>
|
|
13000
|
-
|
|
13001
|
-
L[0] || (L[0] =
|
|
13002
|
-
|
|
12999
|
+
}), (S, L) => f.value ? (J(), Q("div", Li, [
|
|
13000
|
+
F("div", Di, [
|
|
13001
|
+
L[0] || (L[0] = F("div", { class: "vfp-renderer-spinner" }, null, -1)),
|
|
13002
|
+
F("span", Fi, ne(ae(n)("common.loading")), 1)
|
|
13003
13003
|
])
|
|
13004
|
-
])) :
|
|
13004
|
+
])) : s.value || !d.value ? (J(), rr(vr, {
|
|
13005
13005
|
key: 1,
|
|
13006
|
-
message:
|
|
13007
|
-
}, null, 8, ["message"])) : (J(), Q("div",
|
|
13008
|
-
|
|
13009
|
-
|
|
13010
|
-
|
|
13011
|
-
|
|
13012
|
-
|
|
13013
|
-
|
|
13014
|
-
he(ae(
|
|
13006
|
+
message: s.value || ae(n)("msg.parse_failed_short")
|
|
13007
|
+
}, null, 8, ["message"])) : (J(), Q("div", Oi, [
|
|
13008
|
+
F("div", Ri, [
|
|
13009
|
+
F("div", Mi, [
|
|
13010
|
+
F("h2", Ci, ne(x.value), 1),
|
|
13011
|
+
F("div", ki, [
|
|
13012
|
+
A.value ? (J(), Q("div", Pi, [
|
|
13013
|
+
F("span", Gi, [
|
|
13014
|
+
he(ae(dr), {
|
|
13015
13015
|
size: 16,
|
|
13016
13016
|
class: "msg-icon"
|
|
13017
13017
|
})
|
|
13018
13018
|
]),
|
|
13019
|
-
|
|
13020
|
-
L[1] || (L[1] =
|
|
13021
|
-
|
|
13019
|
+
F("div", Hi, [
|
|
13020
|
+
L[1] || (L[1] = F("span", { class: "msg-label" }, "From", -1)),
|
|
13021
|
+
F("span", Yi, ne(A.value), 1)
|
|
13022
13022
|
])
|
|
13023
13023
|
])) : oe("", !0),
|
|
13024
|
-
|
|
13025
|
-
|
|
13024
|
+
T.value ? (J(), Q("div", ji, [
|
|
13025
|
+
F("span", qi, [
|
|
13026
13026
|
he(ae(Ve), {
|
|
13027
13027
|
size: 16,
|
|
13028
13028
|
class: "msg-icon"
|
|
13029
13029
|
})
|
|
13030
13030
|
]),
|
|
13031
|
-
|
|
13032
|
-
L[2] || (L[2] =
|
|
13033
|
-
|
|
13031
|
+
F("div", Vi, [
|
|
13032
|
+
L[2] || (L[2] = F("span", { class: "msg-label" }, "To", -1)),
|
|
13033
|
+
F("span", zi, ne(T.value), 1)
|
|
13034
13034
|
])
|
|
13035
13035
|
])) : oe("", !0),
|
|
13036
|
-
|
|
13037
|
-
|
|
13036
|
+
p.value ? (J(), Q("div", Wi, [
|
|
13037
|
+
F("span", Zi, [
|
|
13038
13038
|
he(ae(Ve), {
|
|
13039
13039
|
size: 16,
|
|
13040
13040
|
class: "msg-icon"
|
|
13041
13041
|
})
|
|
13042
13042
|
]),
|
|
13043
|
-
|
|
13044
|
-
L[3] || (L[3] =
|
|
13045
|
-
|
|
13043
|
+
F("div", $i, [
|
|
13044
|
+
L[3] || (L[3] = F("span", { class: "msg-label" }, "Cc", -1)),
|
|
13045
|
+
F("span", Ki, ne(p.value), 1)
|
|
13046
13046
|
])
|
|
13047
13047
|
])) : oe("", !0),
|
|
13048
|
-
|
|
13049
|
-
|
|
13048
|
+
m.value ? (J(), Q("div", Xi, [
|
|
13049
|
+
F("span", Ji, [
|
|
13050
13050
|
he(ae(Ve), {
|
|
13051
13051
|
size: 16,
|
|
13052
13052
|
class: "msg-icon"
|
|
13053
13053
|
})
|
|
13054
13054
|
]),
|
|
13055
|
-
|
|
13056
|
-
L[4] || (L[4] =
|
|
13057
|
-
|
|
13055
|
+
F("div", Qi, [
|
|
13056
|
+
L[4] || (L[4] = F("span", { class: "msg-label" }, "Bcc", -1)),
|
|
13057
|
+
F("span", en, ne(m.value), 1)
|
|
13058
13058
|
])
|
|
13059
13059
|
])) : oe("", !0),
|
|
13060
|
-
v.value ? (J(), Q("div",
|
|
13061
|
-
|
|
13060
|
+
v.value ? (J(), Q("div", tn, [
|
|
13061
|
+
F("span", rn, [
|
|
13062
13062
|
he(ae(mt), {
|
|
13063
13063
|
size: 16,
|
|
13064
13064
|
class: "msg-icon"
|
|
13065
13065
|
})
|
|
13066
13066
|
]),
|
|
13067
|
-
|
|
13068
|
-
L[5] || (L[5] =
|
|
13069
|
-
|
|
13067
|
+
F("div", nn, [
|
|
13068
|
+
L[5] || (L[5] = F("span", { class: "msg-label" }, "Sent", -1)),
|
|
13069
|
+
F("span", an, ne(v.value), 1)
|
|
13070
13070
|
])
|
|
13071
13071
|
])) : oe("", !0),
|
|
13072
|
-
|
|
13073
|
-
|
|
13072
|
+
y.value && y.value !== v.value ? (J(), Q("div", sn, [
|
|
13073
|
+
F("span", on, [
|
|
13074
13074
|
he(ae(Et), {
|
|
13075
13075
|
size: 16,
|
|
13076
13076
|
class: "msg-icon"
|
|
13077
13077
|
})
|
|
13078
13078
|
]),
|
|
13079
|
-
|
|
13080
|
-
L[6] || (L[6] =
|
|
13081
|
-
|
|
13079
|
+
F("div", cn, [
|
|
13080
|
+
L[6] || (L[6] = F("span", { class: "msg-label" }, "Received", -1)),
|
|
13081
|
+
F("span", fn, ne(y.value), 1)
|
|
13082
13082
|
])
|
|
13083
13083
|
])) : oe("", !0),
|
|
13084
|
-
!v.value && !
|
|
13085
|
-
|
|
13084
|
+
!v.value && !y.value && I.value ? (J(), Q("div", un, [
|
|
13085
|
+
F("span", hn, [
|
|
13086
13086
|
he(ae(mt), {
|
|
13087
13087
|
size: 16,
|
|
13088
13088
|
class: "msg-icon"
|
|
13089
13089
|
})
|
|
13090
13090
|
]),
|
|
13091
|
-
|
|
13092
|
-
L[7] || (L[7] =
|
|
13093
|
-
|
|
13091
|
+
F("div", ln, [
|
|
13092
|
+
L[7] || (L[7] = F("span", { class: "msg-label" }, "Date", -1)),
|
|
13093
|
+
F("span", dn, ne(I.value), 1)
|
|
13094
13094
|
])
|
|
13095
13095
|
])) : oe("", !0),
|
|
13096
|
-
|
|
13097
|
-
|
|
13096
|
+
Y.value ? (J(), Q("div", pn, [
|
|
13097
|
+
F("span", yn, [
|
|
13098
13098
|
he(ae(gt), {
|
|
13099
13099
|
size: 16,
|
|
13100
13100
|
class: "msg-icon"
|
|
13101
13101
|
})
|
|
13102
13102
|
]),
|
|
13103
|
-
|
|
13104
|
-
L[8] || (L[8] =
|
|
13105
|
-
|
|
13103
|
+
F("div", bn, [
|
|
13104
|
+
L[8] || (L[8] = F("span", { class: "msg-label" }, "Importance", -1)),
|
|
13105
|
+
F("span", {
|
|
13106
13106
|
class: "msg-value",
|
|
13107
|
-
style: ir({ color:
|
|
13108
|
-
}, ne(
|
|
13107
|
+
style: ir({ color: k.value === 2 ? "#dc2626" : "#2563eb", fontWeight: 500 })
|
|
13108
|
+
}, ne(Y.value), 5)
|
|
13109
13109
|
])
|
|
13110
13110
|
])) : oe("", !0),
|
|
13111
|
-
|
|
13112
|
-
|
|
13111
|
+
$.value ? (J(), Q("div", vn, [
|
|
13112
|
+
F("span", mn, [
|
|
13113
13113
|
he(ae(gt), {
|
|
13114
13114
|
size: 16,
|
|
13115
13115
|
class: "msg-icon"
|
|
13116
13116
|
})
|
|
13117
13117
|
]),
|
|
13118
|
-
|
|
13119
|
-
L[9] || (L[9] =
|
|
13120
|
-
|
|
13118
|
+
F("div", En, [
|
|
13119
|
+
L[9] || (L[9] = F("span", { class: "msg-label" }, "Sensitivity", -1)),
|
|
13120
|
+
F("span", gn, ne($.value), 1)
|
|
13121
13121
|
])
|
|
13122
13122
|
])) : oe("", !0),
|
|
13123
|
-
|
|
13124
|
-
|
|
13125
|
-
he(ae(
|
|
13123
|
+
O.value && O.value !== "Email" ? (J(), Q("div", _n, [
|
|
13124
|
+
F("span", wn, [
|
|
13125
|
+
he(ae(pr), {
|
|
13126
13126
|
size: 16,
|
|
13127
13127
|
class: "msg-icon"
|
|
13128
13128
|
})
|
|
13129
13129
|
]),
|
|
13130
|
-
|
|
13131
|
-
L[10] || (L[10] =
|
|
13132
|
-
|
|
13130
|
+
F("div", An, [
|
|
13131
|
+
L[10] || (L[10] = F("span", { class: "msg-label" }, "Type", -1)),
|
|
13132
|
+
F("span", xn, ne(O.value), 1)
|
|
13133
13133
|
])
|
|
13134
13134
|
])) : oe("", !0),
|
|
13135
|
-
|
|
13136
|
-
|
|
13137
|
-
he(ae(
|
|
13135
|
+
D.value.length > 0 ? (J(), Q("div", In, [
|
|
13136
|
+
F("span", Tn, [
|
|
13137
|
+
he(ae(yr), {
|
|
13138
13138
|
size: 16,
|
|
13139
13139
|
class: "msg-icon"
|
|
13140
13140
|
})
|
|
13141
13141
|
]),
|
|
13142
|
-
|
|
13143
|
-
L[11] || (L[11] =
|
|
13144
|
-
|
|
13145
|
-
(J(!0), Q(nr, null, ar(
|
|
13146
|
-
key:
|
|
13142
|
+
F("div", Sn, [
|
|
13143
|
+
L[11] || (L[11] = F("span", { class: "msg-label" }, "Attachments", -1)),
|
|
13144
|
+
F("div", Bn, [
|
|
13145
|
+
(J(!0), Q(nr, null, ar(D.value, (V, G) => (J(), Q("span", {
|
|
13146
|
+
key: G,
|
|
13147
13147
|
class: "msg-attachment"
|
|
13148
13148
|
}, [
|
|
13149
|
-
sr(ne(
|
|
13150
|
-
|
|
13149
|
+
sr(ne(V.fileName || V.name || ae(n)("common.unknown_file")) + " ", 1),
|
|
13150
|
+
W(V.contentLength) ? (J(), Q("span", Un, " (" + ne(W(V.contentLength)) + ") ", 1)) : oe("", !0)
|
|
13151
13151
|
]))), 128))
|
|
13152
13152
|
])
|
|
13153
13153
|
])
|
|
13154
13154
|
])) : oe("", !0),
|
|
13155
|
-
|
|
13155
|
+
R.value ? (J(), Q("div", {
|
|
13156
13156
|
key: 11,
|
|
13157
|
-
class: or(["msg-row", { "msg-row-bordered":
|
|
13157
|
+
class: or(["msg-row", { "msg-row-bordered": D.value.length === 0 }])
|
|
13158
13158
|
}, [
|
|
13159
|
-
|
|
13160
|
-
he(ae(
|
|
13159
|
+
F("span", Nn, [
|
|
13160
|
+
he(ae(br), {
|
|
13161
13161
|
size: 16,
|
|
13162
13162
|
class: "msg-icon"
|
|
13163
13163
|
})
|
|
13164
13164
|
]),
|
|
13165
|
-
|
|
13166
|
-
L[12] || (L[12] =
|
|
13167
|
-
|
|
13165
|
+
F("div", Ln, [
|
|
13166
|
+
L[12] || (L[12] = F("span", { class: "msg-label" }, "Message-ID", -1)),
|
|
13167
|
+
F("span", Dn, ne(R.value), 1)
|
|
13168
13168
|
])
|
|
13169
13169
|
], 2)) : oe("", !0),
|
|
13170
|
-
|
|
13171
|
-
|
|
13170
|
+
N.value && N.value !== v.value && N.value !== y.value ? (J(), Q("div", Fn, [
|
|
13171
|
+
F("span", On, [
|
|
13172
13172
|
he(ae(Et), {
|
|
13173
13173
|
size: 16,
|
|
13174
13174
|
class: "msg-icon"
|
|
13175
13175
|
})
|
|
13176
13176
|
]),
|
|
13177
|
-
|
|
13178
|
-
L[13] || (L[13] =
|
|
13179
|
-
|
|
13177
|
+
F("div", Rn, [
|
|
13178
|
+
L[13] || (L[13] = F("span", { class: "msg-label" }, "Modified", -1)),
|
|
13179
|
+
F("span", Mn, ne(N.value), 1)
|
|
13180
13180
|
])
|
|
13181
13181
|
])) : oe("", !0)
|
|
13182
13182
|
])
|
|
13183
13183
|
]),
|
|
13184
|
-
|
|
13184
|
+
F("div", {
|
|
13185
13185
|
class: "msg-body",
|
|
13186
|
-
innerHTML:
|
|
13187
|
-
}, null, 8,
|
|
13186
|
+
innerHTML: C.value
|
|
13187
|
+
}, null, 8, Cn)
|
|
13188
13188
|
])
|
|
13189
13189
|
]));
|
|
13190
13190
|
}
|
|
13191
|
-
}),
|
|
13191
|
+
}), jn = /* @__PURE__ */ lr(kn, [["__scopeId", "data-v-99709ce0"]]);
|
|
13192
13192
|
export {
|
|
13193
|
-
|
|
13193
|
+
jn as default
|
|
13194
13194
|
};
|