@treinetic/treinetic-epub-reader 2.0.3 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  var Zt = Object.defineProperty;
2
- var Mt = (H, l, e) => l in H ? Zt(H, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : H[l] = e;
3
- var $ = (H, l, e) => Mt(H, typeof l != "symbol" ? l + "" : l, e);
2
+ var Mt = (M, l, e) => l in M ? Zt(M, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : M[l] = e;
3
+ var $ = (M, l, e) => Mt(M, typeof l != "symbol" ? l + "" : l, e);
4
4
  const zt = () => {
5
5
  try {
6
6
  return window.localStorage ? (localStorage.setItem("_isLocalStorageEnabled", "?"), localStorage.removeItem("_isLocalStorageEnabled"), !0) : !1;
@@ -8,34 +8,34 @@ const zt = () => {
8
8
  return !1;
9
9
  }
10
10
  }, Ct = {
11
- put: (H, l, e) => {
11
+ put: (M, l, e) => {
12
12
  if (!zt()) {
13
13
  e && e();
14
14
  return;
15
15
  }
16
- const p = JSON.stringify(l);
17
- localStorage.setItem(H, p), e && e();
16
+ const f = JSON.stringify(l);
17
+ localStorage.setItem(M, f), e && e();
18
18
  },
19
- clear: (H, l) => {
19
+ clear: (M, l) => {
20
20
  if (!zt()) {
21
21
  l && l();
22
22
  return;
23
23
  }
24
- localStorage.removeItem(H), l && l();
24
+ localStorage.removeItem(M), l && l();
25
25
  },
26
- get: (H, l) => {
26
+ get: (M, l) => {
27
27
  if (!zt())
28
28
  return l && l(null), null;
29
- const e = localStorage.getItem(H), p = e ? JSON.parse(e) : null;
30
- return l && l(p), p;
29
+ const e = localStorage.getItem(M), f = e ? JSON.parse(e) : null;
30
+ return l && l(f), f;
31
31
  },
32
- getMultiple: (H, l) => {
32
+ getMultiple: (M, l) => {
33
33
  if (!zt())
34
34
  return l && l({}), {};
35
35
  const e = {};
36
- for (const p of H) {
37
- const u = localStorage.getItem(p);
38
- u && (e[p] = u);
36
+ for (const f of M) {
37
+ const u = localStorage.getItem(f);
38
+ u && (e[f] = u);
39
39
  }
40
40
  return l && l(e), e;
41
41
  }
@@ -122,37 +122,37 @@ const zt = () => {
122
122
  $(kt, "instance");
123
123
  let Pt = kt;
124
124
  const wt = {
125
- updateReader: (H, l) => {
126
- if (H) {
127
- if (H.updateSettings(l), l.theme) {
125
+ updateReader: (M, l) => {
126
+ if (M) {
127
+ if (M.updateSettings(l), l.theme) {
128
128
  document.documentElement.setAttribute("data-theme", l.theme);
129
129
  const e = wt.getBookStyles(l.theme);
130
- H.setBookStyles(e);
131
- const p = document.querySelector("#reader-wrapper");
132
- p && e[0].declarations.backgroundColor && (p.style.backgroundColor = e[0].declarations.backgroundColor);
130
+ M.setBookStyles(e);
131
+ const f = document.querySelector("#reader-wrapper");
132
+ f && e[0].declarations.backgroundColor && (f.style.backgroundColor = e[0].declarations.backgroundColor);
133
133
  }
134
134
  Ct.put("reader", l);
135
135
  }
136
136
  },
137
- getBookStyles: (H) => {
138
- const l = H === "author-theme", e = wt.getPropertyFromThemeClass(H, "background-color"), p = wt.getPropertyFromThemeClass(H, "color"), u = wt.getPropertyFromThemeClass(H, "font-family");
137
+ getBookStyles: (M) => {
138
+ const l = M === "author-theme", e = wt.getPropertyFromThemeClass(M, "background-color"), f = wt.getPropertyFromThemeClass(M, "color"), u = wt.getPropertyFromThemeClass(M, "font-family");
139
139
  return [{
140
140
  selector: ":not(a):not(hypothesis-highlight)",
141
141
  declarations: {
142
142
  backgroundColor: l ? "" : e,
143
- color: l ? "" : p,
143
+ color: l ? "" : f,
144
144
  fontFamily: l ? "" : u || ""
145
145
  }
146
146
  }, {
147
147
  selector: "a",
148
148
  declarations: {
149
149
  backgroundColor: l ? "" : e,
150
- color: l ? "" : p
150
+ color: l ? "" : f
151
151
  }
152
152
  }];
153
153
  },
154
- getPropertyFromThemeClass: (H, l) => {
155
- const e = Pt.getInstance().getTheme(H);
154
+ getPropertyFromThemeClass: (M, l) => {
155
+ const e = Pt.getInstance().getTheme(M);
156
156
  return e ? e.properties[l] : null;
157
157
  }
158
158
  }, vt = class vt {
@@ -174,8 +174,8 @@ const wt = {
174
174
  vt.instance = new vt();
175
175
  }
176
176
  // Methods
177
- epubLoaded(l, e, p) {
178
- this.metadata = l, this.reader = p, this.currentPackageDocument = e, Ct.get("reader", (u) => {
177
+ epubLoaded(l, e, f) {
178
+ this.metadata = l, this.reader = f, this.currentPackageDocument = e, Ct.get("reader", (u) => {
179
179
  this.readerSettings = u || this.readerSettings;
180
180
  }), this.callbackFunctions.onEpubLoadSuccess && this.callbackFunctions.onEpubLoadSuccess();
181
181
  }
@@ -243,9 +243,9 @@ const wt = {
243
243
  this.readerSettings = this.cloneUpdate(this.readerSettings, "scroll", l), this.reader && wt.updateReader(this.reader, this.readerSettings);
244
244
  }
245
245
  // ... helpers
246
- cloneUpdate(l, e, p) {
246
+ cloneUpdate(l, e, f) {
247
247
  const u = l ? JSON.parse(JSON.stringify(l)) : {};
248
- return u[e] = p, u;
248
+ return u[e] = f, u;
249
249
  }
250
250
  };
251
251
  $(vt, "instance", null);
@@ -256,32 +256,32 @@ const ft = {
256
256
  init: () => {
257
257
  document.addEventListener("keydown", ft.handleKey);
258
258
  },
259
- on: (H, l, e) => {
260
- const p = `${l}:${H} `;
261
- ft.handlers[p] || (ft.handlers[p] = []), ft.handlers[p].push(e);
259
+ on: (M, l, e) => {
260
+ const f = `${l}:${M} `;
261
+ ft.handlers[f] || (ft.handlers[f] = []), ft.handlers[f].push(e);
262
262
  },
263
- handleKey: (H) => {
263
+ handleKey: (M) => {
264
264
  let l = "";
265
- H.key === "ArrowRight" && (l = "PageNext"), H.key === "ArrowLeft" && (l = "PagePrevious"), l && ft.dispatch(l);
265
+ M.key === "ArrowRight" && (l = "PageNext"), M.key === "ArrowLeft" && (l = "PagePrevious"), l && ft.dispatch(l);
266
266
  },
267
- dispatch: (H) => {
268
- const l = `${ft.scope}:${H} `;
267
+ dispatch: (M) => {
268
+ const l = `${ft.scope}:${M} `;
269
269
  ft.handlers[l] && ft.handlers[l].forEach((e) => e());
270
270
  },
271
271
  // Constants matching legacy
272
272
  PagePrevious: "PagePrevious",
273
273
  PageNext: "PageNext",
274
274
  NightTheme: "NightTheme",
275
- applySettings: (H) => {
275
+ applySettings: (M) => {
276
276
  }
277
277
  };
278
278
  ft.init();
279
279
  var Ot = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
280
- function Ht(H) {
281
- return H && H.__esModule && Object.prototype.hasOwnProperty.call(H, "default") ? H.default : H;
280
+ function Ht(M) {
281
+ return M && M.__esModule && Object.prototype.hasOwnProperty.call(M, "default") ? M.default : M;
282
282
  }
283
- function Tt(H) {
284
- throw new Error('Could not dynamically require "' + H + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
283
+ function Tt(M) {
284
+ throw new Error('Could not dynamically require "' + M + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
285
285
  }
286
286
  var Nt = { exports: {} };
287
287
  /*!
@@ -295,14 +295,14 @@ Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/js
295
295
  JSZip uses the library pako released under the MIT license :
296
296
  https://github.com/nodeca/pako/blob/main/LICENSE
297
297
  */
298
- (function(H, l) {
298
+ (function(M, l) {
299
299
  (function(e) {
300
- H.exports = e();
300
+ M.exports = e();
301
301
  })(function() {
302
- return function e(p, u, s) {
302
+ return function e(f, u, s) {
303
303
  function o(w, b) {
304
304
  if (!u[w]) {
305
- if (!p[w]) {
305
+ if (!f[w]) {
306
306
  var _ = typeof Tt == "function" && Tt;
307
307
  if (!b && _) return _(w, !0);
308
308
  if (n) return n(w, !0);
@@ -310,29 +310,29 @@ https://github.com/nodeca/pako/blob/main/LICENSE
310
310
  throw v.code = "MODULE_NOT_FOUND", v;
311
311
  }
312
312
  var a = u[w] = { exports: {} };
313
- p[w][0].call(a.exports, function(g) {
314
- var i = p[w][1][g];
313
+ f[w][0].call(a.exports, function(g) {
314
+ var i = f[w][1][g];
315
315
  return o(i || g);
316
- }, a, a.exports, e, p, u, s);
316
+ }, a, a.exports, e, f, u, s);
317
317
  }
318
318
  return u[w].exports;
319
319
  }
320
320
  for (var n = typeof Tt == "function" && Tt, h = 0; h < s.length; h++) o(s[h]);
321
321
  return o;
322
- }({ 1: [function(e, p, u) {
322
+ }({ 1: [function(e, f, u) {
323
323
  var s = e("./utils"), o = e("./support"), n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
324
324
  u.encode = function(h) {
325
- for (var w, b, _, v, a, g, i, f = [], c = 0, y = h.length, x = y, C = s.getTypeOf(h) !== "string"; c < h.length; ) x = y - c, _ = C ? (w = h[c++], b = c < y ? h[c++] : 0, c < y ? h[c++] : 0) : (w = h.charCodeAt(c++), b = c < y ? h.charCodeAt(c++) : 0, c < y ? h.charCodeAt(c++) : 0), v = w >> 2, a = (3 & w) << 4 | b >> 4, g = 1 < x ? (15 & b) << 2 | _ >> 6 : 64, i = 2 < x ? 63 & _ : 64, f.push(n.charAt(v) + n.charAt(a) + n.charAt(g) + n.charAt(i));
326
- return f.join("");
325
+ for (var w, b, _, v, a, g, i, p = [], c = 0, y = h.length, x = y, C = s.getTypeOf(h) !== "string"; c < h.length; ) x = y - c, _ = C ? (w = h[c++], b = c < y ? h[c++] : 0, c < y ? h[c++] : 0) : (w = h.charCodeAt(c++), b = c < y ? h.charCodeAt(c++) : 0, c < y ? h.charCodeAt(c++) : 0), v = w >> 2, a = (3 & w) << 4 | b >> 4, g = 1 < x ? (15 & b) << 2 | _ >> 6 : 64, i = 2 < x ? 63 & _ : 64, p.push(n.charAt(v) + n.charAt(a) + n.charAt(g) + n.charAt(i));
326
+ return p.join("");
327
327
  }, u.decode = function(h) {
328
- var w, b, _, v, a, g, i = 0, f = 0, c = "data:";
328
+ var w, b, _, v, a, g, i = 0, p = 0, c = "data:";
329
329
  if (h.substr(0, c.length) === c) throw new Error("Invalid base64 input, it looks like a data url.");
330
330
  var y, x = 3 * (h = h.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
331
331
  if (h.charAt(h.length - 1) === n.charAt(64) && x--, h.charAt(h.length - 2) === n.charAt(64) && x--, x % 1 != 0) throw new Error("Invalid base64 input, bad content length.");
332
- for (y = o.uint8array ? new Uint8Array(0 | x) : new Array(0 | x); i < h.length; ) w = n.indexOf(h.charAt(i++)) << 2 | (v = n.indexOf(h.charAt(i++))) >> 4, b = (15 & v) << 4 | (a = n.indexOf(h.charAt(i++))) >> 2, _ = (3 & a) << 6 | (g = n.indexOf(h.charAt(i++))), y[f++] = w, a !== 64 && (y[f++] = b), g !== 64 && (y[f++] = _);
332
+ for (y = o.uint8array ? new Uint8Array(0 | x) : new Array(0 | x); i < h.length; ) w = n.indexOf(h.charAt(i++)) << 2 | (v = n.indexOf(h.charAt(i++))) >> 4, b = (15 & v) << 4 | (a = n.indexOf(h.charAt(i++))) >> 2, _ = (3 & a) << 6 | (g = n.indexOf(h.charAt(i++))), y[p++] = w, a !== 64 && (y[p++] = b), g !== 64 && (y[p++] = _);
333
333
  return y;
334
334
  };
335
- }, { "./support": 30, "./utils": 32 }], 2: [function(e, p, u) {
335
+ }, { "./support": 30, "./utils": 32 }], 2: [function(e, f, u) {
336
336
  var s = e("./external"), o = e("./stream/DataWorker"), n = e("./stream/Crc32Probe"), h = e("./stream/DataLengthProbe");
337
337
  function w(b, _, v, a, g) {
338
338
  this.compressedSize = b, this.uncompressedSize = _, this.crc32 = v, this.compression = a, this.compressedContent = g;
@@ -346,15 +346,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
346
346
  return new o(s.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression);
347
347
  } }, w.createWorkerFrom = function(b, _, v) {
348
348
  return b.pipe(new n()).pipe(new h("uncompressedSize")).pipe(_.compressWorker(v)).pipe(new h("compressedSize")).withStreamInfo("compression", _);
349
- }, p.exports = w;
350
- }, { "./external": 6, "./stream/Crc32Probe": 25, "./stream/DataLengthProbe": 26, "./stream/DataWorker": 27 }], 3: [function(e, p, u) {
349
+ }, f.exports = w;
350
+ }, { "./external": 6, "./stream/Crc32Probe": 25, "./stream/DataLengthProbe": 26, "./stream/DataWorker": 27 }], 3: [function(e, f, u) {
351
351
  var s = e("./stream/GenericWorker");
352
352
  u.STORE = { magic: "\0\0", compressWorker: function() {
353
353
  return new s("STORE compression");
354
354
  }, uncompressWorker: function() {
355
355
  return new s("STORE decompression");
356
356
  } }, u.DEFLATE = e("./flate");
357
- }, { "./flate": 7, "./stream/GenericWorker": 28 }], 4: [function(e, p, u) {
357
+ }, { "./flate": 7, "./stream/GenericWorker": 28 }], 4: [function(e, f, u) {
358
358
  var s = e("./utils"), o = function() {
359
359
  for (var n, h = [], w = 0; w < 256; w++) {
360
360
  n = w;
@@ -363,7 +363,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
363
363
  }
364
364
  return h;
365
365
  }();
366
- p.exports = function(n, h) {
366
+ f.exports = function(n, h) {
367
367
  return n !== void 0 && n.length ? s.getTypeOf(n) !== "string" ? function(w, b, _, v) {
368
368
  var a = o, g = v + _;
369
369
  w ^= -1;
@@ -376,12 +376,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
376
376
  return -1 ^ w;
377
377
  }(0 | h, n, n.length, 0) : 0;
378
378
  };
379
- }, { "./utils": 32 }], 5: [function(e, p, u) {
379
+ }, { "./utils": 32 }], 5: [function(e, f, u) {
380
380
  u.base64 = !1, u.binary = !1, u.dir = !1, u.createFolders = !0, u.date = null, u.compression = null, u.compressionOptions = null, u.comment = null, u.unixPermissions = null, u.dosPermissions = null;
381
- }, {}], 6: [function(e, p, u) {
381
+ }, {}], 6: [function(e, f, u) {
382
382
  var s = null;
383
- s = typeof Promise < "u" ? Promise : e("lie"), p.exports = { Promise: s };
384
- }, { lie: 37 }], 7: [function(e, p, u) {
383
+ s = typeof Promise < "u" ? Promise : e("lie"), f.exports = { Promise: s };
384
+ }, { lie: 37 }], 7: [function(e, f, u) {
385
385
  var s = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Uint32Array < "u", o = e("pako"), n = e("./utils"), h = e("./stream/GenericWorker"), w = s ? "uint8array" : "array";
386
386
  function b(_, v) {
387
387
  h.call(this, "FlateWorker/" + _), this._pako = null, this._pakoAction = _, this._pakoOptions = v, this.meta = {};
@@ -403,14 +403,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
403
403
  }, u.uncompressWorker = function() {
404
404
  return new b("Inflate", {});
405
405
  };
406
- }, { "./stream/GenericWorker": 28, "./utils": 32, pako: 38 }], 8: [function(e, p, u) {
406
+ }, { "./stream/GenericWorker": 28, "./utils": 32, pako: 38 }], 8: [function(e, f, u) {
407
407
  function s(a, g) {
408
- var i, f = "";
409
- for (i = 0; i < g; i++) f += String.fromCharCode(255 & a), a >>>= 8;
410
- return f;
408
+ var i, p = "";
409
+ for (i = 0; i < g; i++) p += String.fromCharCode(255 & a), a >>>= 8;
410
+ return p;
411
411
  }
412
- function o(a, g, i, f, c, y) {
413
- var x, C, E = a.file, D = a.compression, P = y !== w.utf8encode, U = n.transformTo("string", y(E.name)), T = n.transformTo("string", w.utf8encode(E.name)), M = E.comment, X = n.transformTo("string", y(M)), k = n.transformTo("string", w.utf8encode(M)), R = T.length !== E.name.length, r = k.length !== M.length, B = "", tt = "", W = "", et = E.dir, j = E.date, Q = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
412
+ function o(a, g, i, p, c, y) {
413
+ var x, C, E = a.file, D = a.compression, P = y !== w.utf8encode, U = n.transformTo("string", y(E.name)), T = n.transformTo("string", w.utf8encode(E.name)), H = E.comment, X = n.transformTo("string", y(H)), k = n.transformTo("string", w.utf8encode(H)), R = T.length !== E.name.length, r = k.length !== H.length, B = "", tt = "", W = "", et = E.dir, j = E.date, Q = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
414
414
  g && !i || (Q.crc32 = a.crc32, Q.compressedSize = a.compressedSize, Q.uncompressedSize = a.uncompressedSize);
415
415
  var z = 0;
416
416
  g && (z |= 8), P || !R && !r || (z |= 2048);
@@ -423,15 +423,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
423
423
  }(E.dosPermissions)), x = j.getUTCHours(), x <<= 6, x |= j.getUTCMinutes(), x <<= 5, x |= j.getUTCSeconds() / 2, C = j.getUTCFullYear() - 1980, C <<= 4, C |= j.getUTCMonth() + 1, C <<= 5, C |= j.getUTCDate(), R && (tt = s(1, 1) + s(b(U), 4) + T, B += "up" + s(tt.length, 2) + tt), r && (W = s(1, 1) + s(b(X), 4) + k, B += "uc" + s(W.length, 2) + W);
424
424
  var V = "";
425
425
  return V += `
426
- \0`, V += s(z, 2), V += D.magic, V += s(x, 2), V += s(C, 2), V += s(Q.crc32, 4), V += s(Q.compressedSize, 4), V += s(Q.uncompressedSize, 4), V += s(U.length, 2), V += s(B.length, 2), { fileRecord: _.LOCAL_FILE_HEADER + V + U + B, dirRecord: _.CENTRAL_FILE_HEADER + s(J, 2) + V + s(X.length, 2) + "\0\0\0\0" + s(I, 4) + s(f, 4) + U + B + X };
426
+ \0`, V += s(z, 2), V += D.magic, V += s(x, 2), V += s(C, 2), V += s(Q.crc32, 4), V += s(Q.compressedSize, 4), V += s(Q.uncompressedSize, 4), V += s(U.length, 2), V += s(B.length, 2), { fileRecord: _.LOCAL_FILE_HEADER + V + U + B, dirRecord: _.CENTRAL_FILE_HEADER + s(J, 2) + V + s(X.length, 2) + "\0\0\0\0" + s(I, 4) + s(p, 4) + U + B + X };
427
427
  }
428
428
  var n = e("../utils"), h = e("../stream/GenericWorker"), w = e("../utf8"), b = e("../crc32"), _ = e("../signature");
429
- function v(a, g, i, f) {
430
- h.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = g, this.zipPlatform = i, this.encodeFileName = f, this.streamFiles = a, this.accumulate = !1, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
429
+ function v(a, g, i, p) {
430
+ h.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = g, this.zipPlatform = i, this.encodeFileName = p, this.streamFiles = a, this.accumulate = !1, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
431
431
  }
432
432
  n.inherits(v, h), v.prototype.push = function(a) {
433
- var g = a.meta.percent || 0, i = this.entriesCount, f = this._sources.length;
434
- this.accumulate ? this.contentBuffer.push(a) : (this.bytesWritten += a.data.length, h.prototype.push.call(this, { data: a.data, meta: { currentFile: this.currentFile, percent: i ? (g + 100 * (i - f - 1)) / i : 100 } }));
433
+ var g = a.meta.percent || 0, i = this.entriesCount, p = this._sources.length;
434
+ this.accumulate ? this.contentBuffer.push(a) : (this.bytesWritten += a.data.length, h.prototype.push.call(this, { data: a.data, meta: { currentFile: this.currentFile, percent: i ? (g + 100 * (i - p - 1)) / i : 100 } }));
435
435
  }, v.prototype.openedSource = function(a) {
436
436
  this.currentSourceOffset = this.bytesWritten, this.currentFile = a.file.name;
437
437
  var g = this.streamFiles && !a.file.dir;
@@ -442,18 +442,18 @@ https://github.com/nodeca/pako/blob/main/LICENSE
442
442
  }, v.prototype.closedSource = function(a) {
443
443
  this.accumulate = !1;
444
444
  var g = this.streamFiles && !a.file.dir, i = o(a, g, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
445
- if (this.dirRecords.push(i.dirRecord), g) this.push({ data: function(f) {
446
- return _.DATA_DESCRIPTOR + s(f.crc32, 4) + s(f.compressedSize, 4) + s(f.uncompressedSize, 4);
445
+ if (this.dirRecords.push(i.dirRecord), g) this.push({ data: function(p) {
446
+ return _.DATA_DESCRIPTOR + s(p.crc32, 4) + s(p.compressedSize, 4) + s(p.uncompressedSize, 4);
447
447
  }(a), meta: { percent: 100 } });
448
448
  else for (this.push({ data: i.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
449
449
  this.currentFile = null;
450
450
  }, v.prototype.flush = function() {
451
451
  for (var a = this.bytesWritten, g = 0; g < this.dirRecords.length; g++) this.push({ data: this.dirRecords[g], meta: { percent: 100 } });
452
- var i = this.bytesWritten - a, f = function(c, y, x, C, E) {
452
+ var i = this.bytesWritten - a, p = function(c, y, x, C, E) {
453
453
  var D = n.transformTo("string", E(C));
454
454
  return _.CENTRAL_DIRECTORY_END + "\0\0\0\0" + s(c, 2) + s(c, 2) + s(y, 4) + s(x, 4) + s(D.length, 2) + D;
455
455
  }(this.dirRecords.length, i, a, this.zipComment, this.encodeFileName);
456
- this.push({ data: f, meta: { percent: 100 } });
456
+ this.push({ data: p, meta: { percent: 100 } });
457
457
  }, v.prototype.prepareNextSource = function() {
458
458
  this.previous = this._sources.shift(), this.openedSource(this.previous.streamInfo), this.isPaused ? this.previous.pause() : this.previous.resume();
459
459
  }, v.prototype.registerPrevious = function(a) {
@@ -479,8 +479,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
479
479
  }, v.prototype.lock = function() {
480
480
  h.prototype.lock.call(this);
481
481
  for (var a = this._sources, g = 0; g < a.length; g++) a[g].lock();
482
- }, p.exports = v;
483
- }, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(e, p, u) {
482
+ }, f.exports = v;
483
+ }, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(e, f, u) {
484
484
  var s = e("../compressions"), o = e("./ZipFileWorker");
485
485
  u.generateWorker = function(n, h, w) {
486
486
  var b = new o(h.streamFiles, w, h.platform, h.encodeFileName), _ = 0;
@@ -491,15 +491,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
491
491
  var C = y || x, E = s[C];
492
492
  if (!E) throw new Error(C + " is not a valid compression method !");
493
493
  return E;
494
- }(a.options.compression, h.compression), i = a.options.compressionOptions || h.compressionOptions || {}, f = a.dir, c = a.date;
495
- a._compressWorker(g, i).withStreamInfo("file", { name: v, dir: f, date: c, comment: a.comment || "", unixPermissions: a.unixPermissions, dosPermissions: a.dosPermissions }).pipe(b);
494
+ }(a.options.compression, h.compression), i = a.options.compressionOptions || h.compressionOptions || {}, p = a.dir, c = a.date;
495
+ a._compressWorker(g, i).withStreamInfo("file", { name: v, dir: p, date: c, comment: a.comment || "", unixPermissions: a.unixPermissions, dosPermissions: a.dosPermissions }).pipe(b);
496
496
  }), b.entriesCount = _;
497
497
  } catch (v) {
498
498
  b.error(v);
499
499
  }
500
500
  return b;
501
501
  };
502
- }, { "../compressions": 3, "./ZipFileWorker": 8 }], 10: [function(e, p, u) {
502
+ }, { "../compressions": 3, "./ZipFileWorker": 8 }], 10: [function(e, f, u) {
503
503
  function s() {
504
504
  if (!(this instanceof s)) return new s();
505
505
  if (arguments.length) throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");
@@ -511,37 +511,37 @@ https://github.com/nodeca/pako/blob/main/LICENSE
511
511
  }
512
512
  (s.prototype = e("./object")).loadAsync = e("./load"), s.support = e("./support"), s.defaults = e("./defaults"), s.version = "3.10.1", s.loadAsync = function(o, n) {
513
513
  return new s().loadAsync(o, n);
514
- }, s.external = e("./external"), p.exports = s;
515
- }, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(e, p, u) {
514
+ }, s.external = e("./external"), f.exports = s;
515
+ }, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(e, f, u) {
516
516
  var s = e("./utils"), o = e("./external"), n = e("./utf8"), h = e("./zipEntries"), w = e("./stream/Crc32Probe"), b = e("./nodejsUtils");
517
517
  function _(v) {
518
518
  return new o.Promise(function(a, g) {
519
519
  var i = v.decompressed.getContentWorker().pipe(new w());
520
- i.on("error", function(f) {
521
- g(f);
520
+ i.on("error", function(p) {
521
+ g(p);
522
522
  }).on("end", function() {
523
523
  i.streamInfo.crc32 !== v.decompressed.crc32 ? g(new Error("Corrupted zip : CRC32 mismatch")) : a();
524
524
  }).resume();
525
525
  });
526
526
  }
527
- p.exports = function(v, a) {
527
+ f.exports = function(v, a) {
528
528
  var g = this;
529
529
  return a = s.extend(a || {}, { base64: !1, checkCRC32: !1, optimizedBinaryString: !1, createFolders: !1, decodeFileName: n.utf8decode }), b.isNode && b.isStream(v) ? o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : s.prepareContent("the loaded zip file", v, !0, a.optimizedBinaryString, a.base64).then(function(i) {
530
- var f = new h(a);
531
- return f.load(i), f;
530
+ var p = new h(a);
531
+ return p.load(i), p;
532
532
  }).then(function(i) {
533
- var f = [o.Promise.resolve(i)], c = i.files;
534
- if (a.checkCRC32) for (var y = 0; y < c.length; y++) f.push(_(c[y]));
535
- return o.Promise.all(f);
533
+ var p = [o.Promise.resolve(i)], c = i.files;
534
+ if (a.checkCRC32) for (var y = 0; y < c.length; y++) p.push(_(c[y]));
535
+ return o.Promise.all(p);
536
536
  }).then(function(i) {
537
- for (var f = i.shift(), c = f.files, y = 0; y < c.length; y++) {
537
+ for (var p = i.shift(), c = p.files, y = 0; y < c.length; y++) {
538
538
  var x = c[y], C = x.fileNameStr, E = s.resolve(x.fileNameStr);
539
539
  g.file(E, x.decompressed, { binary: !0, optimizedBinaryString: !0, date: x.date, dir: x.dir, comment: x.fileCommentStr.length ? x.fileCommentStr : null, unixPermissions: x.unixPermissions, dosPermissions: x.dosPermissions, createFolders: a.createFolders }), x.dir || (g.file(E).unsafeOriginalName = C);
540
540
  }
541
- return f.zipComment.length && (g.comment = f.zipComment), g;
541
+ return p.zipComment.length && (g.comment = p.zipComment), g;
542
542
  });
543
543
  };
544
- }, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(e, p, u) {
544
+ }, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(e, f, u) {
545
545
  var s = e("../utils"), o = e("../stream/GenericWorker");
546
546
  function n(h, w) {
547
547
  o.call(this, "Nodejs stream input adapter for " + h), this._upstreamEnded = !1, this._bindStream(w);
@@ -559,8 +559,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
559
559
  return !!o.prototype.pause.call(this) && (this._stream.pause(), !0);
560
560
  }, n.prototype.resume = function() {
561
561
  return !!o.prototype.resume.call(this) && (this._upstreamEnded ? this.end() : this._stream.resume(), !0);
562
- }, p.exports = n;
563
- }, { "../stream/GenericWorker": 28, "../utils": 32 }], 13: [function(e, p, u) {
562
+ }, f.exports = n;
563
+ }, { "../stream/GenericWorker": 28, "../utils": 32 }], 13: [function(e, f, u) {
564
564
  var s = e("readable-stream").Readable;
565
565
  function o(n, h, w) {
566
566
  s.call(this, h), this._helper = n;
@@ -575,9 +575,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
575
575
  }
576
576
  e("../utils").inherits(o, s), o.prototype._read = function() {
577
577
  this._helper.resume();
578
- }, p.exports = o;
579
- }, { "../utils": 32, "readable-stream": 16 }], 14: [function(e, p, u) {
580
- p.exports = { isNode: typeof Buffer < "u", newBufferFrom: function(s, o) {
578
+ }, f.exports = o;
579
+ }, { "../utils": 32, "readable-stream": 16 }], 14: [function(e, f, u) {
580
+ f.exports = { isNode: typeof Buffer < "u", newBufferFrom: function(s, o) {
581
581
  if (Buffer.from && Buffer.from !== Uint8Array.from) return Buffer.from(s, o);
582
582
  if (typeof s == "number") throw new Error('The "data" argument must not be a number');
583
583
  return new Buffer(s, o);
@@ -590,18 +590,18 @@ https://github.com/nodeca/pako/blob/main/LICENSE
590
590
  }, isStream: function(s) {
591
591
  return s && typeof s.on == "function" && typeof s.pause == "function" && typeof s.resume == "function";
592
592
  } };
593
- }, {}], 15: [function(e, p, u) {
593
+ }, {}], 15: [function(e, f, u) {
594
594
  function s(E, D, P) {
595
- var U, T = n.getTypeOf(D), M = n.extend(P || {}, b);
596
- M.date = M.date || /* @__PURE__ */ new Date(), M.compression !== null && (M.compression = M.compression.toUpperCase()), typeof M.unixPermissions == "string" && (M.unixPermissions = parseInt(M.unixPermissions, 8)), M.unixPermissions && 16384 & M.unixPermissions && (M.dir = !0), M.dosPermissions && 16 & M.dosPermissions && (M.dir = !0), M.dir && (E = c(E)), M.createFolders && (U = f(E)) && y.call(this, U, !0);
597
- var X = T === "string" && M.binary === !1 && M.base64 === !1;
598
- P && P.binary !== void 0 || (M.binary = !X), (D instanceof _ && D.uncompressedSize === 0 || M.dir || !D || D.length === 0) && (M.base64 = !1, M.binary = !0, D = "", M.compression = "STORE", T = "string");
595
+ var U, T = n.getTypeOf(D), H = n.extend(P || {}, b);
596
+ H.date = H.date || /* @__PURE__ */ new Date(), H.compression !== null && (H.compression = H.compression.toUpperCase()), typeof H.unixPermissions == "string" && (H.unixPermissions = parseInt(H.unixPermissions, 8)), H.unixPermissions && 16384 & H.unixPermissions && (H.dir = !0), H.dosPermissions && 16 & H.dosPermissions && (H.dir = !0), H.dir && (E = c(E)), H.createFolders && (U = p(E)) && y.call(this, U, !0);
597
+ var X = T === "string" && H.binary === !1 && H.base64 === !1;
598
+ P && P.binary !== void 0 || (H.binary = !X), (D instanceof _ && D.uncompressedSize === 0 || H.dir || !D || D.length === 0) && (H.base64 = !1, H.binary = !0, D = "", H.compression = "STORE", T = "string");
599
599
  var k = null;
600
- k = D instanceof _ || D instanceof h ? D : g.isNode && g.isStream(D) ? new i(E, D) : n.prepareContent(E, D, M.binary, M.optimizedBinaryString, M.base64);
601
- var R = new v(E, k, M);
600
+ k = D instanceof _ || D instanceof h ? D : g.isNode && g.isStream(D) ? new i(E, D) : n.prepareContent(E, D, H.binary, H.optimizedBinaryString, H.base64);
601
+ var R = new v(E, k, H);
602
602
  this.files[E] = R;
603
603
  }
604
- var o = e("./utf8"), n = e("./utils"), h = e("./stream/GenericWorker"), w = e("./stream/StreamHelper"), b = e("./defaults"), _ = e("./compressedObject"), v = e("./zipObject"), a = e("./generate"), g = e("./nodejsUtils"), i = e("./nodejs/NodejsStreamInputAdapter"), f = function(E) {
604
+ var o = e("./utf8"), n = e("./utils"), h = e("./stream/GenericWorker"), w = e("./stream/StreamHelper"), b = e("./defaults"), _ = e("./compressedObject"), v = e("./zipObject"), a = e("./generate"), g = e("./nodejsUtils"), i = e("./nodejs/NodejsStreamInputAdapter"), p = function(E) {
605
605
  E.slice(-1) === "/" && (E = E.substring(0, E.length - 1));
606
606
  var D = E.lastIndexOf("/");
607
607
  return 0 < D ? E.substring(0, D) : "";
@@ -627,16 +627,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
627
627
  if (arguments.length !== 1) return E = this.root + E, s.call(this, E, D, P), this;
628
628
  if (x(E)) {
629
629
  var U = E;
630
- return this.filter(function(M, X) {
631
- return !X.dir && U.test(M);
630
+ return this.filter(function(H, X) {
631
+ return !X.dir && U.test(H);
632
632
  });
633
633
  }
634
634
  var T = this.files[this.root + E];
635
635
  return T && !T.dir ? T : null;
636
636
  }, folder: function(E) {
637
637
  if (!E) return this;
638
- if (x(E)) return this.filter(function(T, M) {
639
- return M.dir && E.test(T);
638
+ if (x(E)) return this.filter(function(T, H) {
639
+ return H.dir && E.test(T);
640
640
  });
641
641
  var D = this.root + E, P = y.call(this, D), U = this.clone();
642
642
  return U.root = P.name, U;
@@ -644,8 +644,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
644
644
  E = this.root + E;
645
645
  var D = this.files[E];
646
646
  if (D || (E.slice(-1) !== "/" && (E += "/"), D = this.files[E]), D && !D.dir) delete this.files[E];
647
- else for (var P = this.filter(function(T, M) {
648
- return M.name.slice(0, E.length) === E;
647
+ else for (var P = this.filter(function(T, H) {
648
+ return H.name.slice(0, E.length) === E;
649
649
  }), U = 0; U < P.length; U++) delete this.files[P[U].name];
650
650
  return this;
651
651
  }, generate: function() {
@@ -666,10 +666,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
666
666
  }, generateNodeStream: function(E, D) {
667
667
  return (E = E || {}).type || (E.type = "nodebuffer"), this.generateInternalStream(E).toNodejsStream(D);
668
668
  } };
669
- p.exports = C;
670
- }, { "./compressedObject": 2, "./defaults": 5, "./generate": 9, "./nodejs/NodejsStreamInputAdapter": 12, "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31, "./utils": 32, "./zipObject": 35 }], 16: [function(e, p, u) {
671
- p.exports = e("stream");
672
- }, { stream: void 0 }], 17: [function(e, p, u) {
669
+ f.exports = C;
670
+ }, { "./compressedObject": 2, "./defaults": 5, "./generate": 9, "./nodejs/NodejsStreamInputAdapter": 12, "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31, "./utils": 32, "./zipObject": 35 }], 16: [function(e, f, u) {
671
+ f.exports = e("stream");
672
+ }, { stream: void 0 }], 17: [function(e, f, u) {
673
673
  var s = e("./DataReader");
674
674
  function o(n) {
675
675
  s.call(this, n);
@@ -687,8 +687,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
687
687
  if (this.checkOffset(n), n === 0) return [];
688
688
  var h = this.data.slice(this.zero + this.index, this.zero + this.index + n);
689
689
  return this.index += n, h;
690
- }, p.exports = o;
691
- }, { "../utils": 32, "./DataReader": 18 }], 18: [function(e, p, u) {
690
+ }, f.exports = o;
691
+ }, { "../utils": 32, "./DataReader": 18 }], 18: [function(e, f, u) {
692
692
  var s = e("../utils");
693
693
  function o(n) {
694
694
  this.data = n, this.length = n.length, this.index = 0, this.zero = 0;
@@ -714,8 +714,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
714
714
  }, readDate: function() {
715
715
  var n = this.readInt(4);
716
716
  return new Date(Date.UTC(1980 + (n >> 25 & 127), (n >> 21 & 15) - 1, n >> 16 & 31, n >> 11 & 31, n >> 5 & 63, (31 & n) << 1));
717
- } }, p.exports = o;
718
- }, { "../utils": 32 }], 19: [function(e, p, u) {
717
+ } }, f.exports = o;
718
+ }, { "../utils": 32 }], 19: [function(e, f, u) {
719
719
  var s = e("./Uint8ArrayReader");
720
720
  function o(n) {
721
721
  s.call(this, n);
@@ -724,8 +724,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
724
724
  this.checkOffset(n);
725
725
  var h = this.data.slice(this.zero + this.index, this.zero + this.index + n);
726
726
  return this.index += n, h;
727
- }, p.exports = o;
728
- }, { "../utils": 32, "./Uint8ArrayReader": 21 }], 20: [function(e, p, u) {
727
+ }, f.exports = o;
728
+ }, { "../utils": 32, "./Uint8ArrayReader": 21 }], 20: [function(e, f, u) {
729
729
  var s = e("./DataReader");
730
730
  function o(n) {
731
731
  s.call(this, n);
@@ -740,8 +740,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
740
740
  this.checkOffset(n);
741
741
  var h = this.data.slice(this.zero + this.index, this.zero + this.index + n);
742
742
  return this.index += n, h;
743
- }, p.exports = o;
744
- }, { "../utils": 32, "./DataReader": 18 }], 21: [function(e, p, u) {
743
+ }, f.exports = o;
744
+ }, { "../utils": 32, "./DataReader": 18 }], 21: [function(e, f, u) {
745
745
  var s = e("./ArrayReader");
746
746
  function o(n) {
747
747
  s.call(this, n);
@@ -750,32 +750,32 @@ https://github.com/nodeca/pako/blob/main/LICENSE
750
750
  if (this.checkOffset(n), n === 0) return new Uint8Array(0);
751
751
  var h = this.data.subarray(this.zero + this.index, this.zero + this.index + n);
752
752
  return this.index += n, h;
753
- }, p.exports = o;
754
- }, { "../utils": 32, "./ArrayReader": 17 }], 22: [function(e, p, u) {
753
+ }, f.exports = o;
754
+ }, { "../utils": 32, "./ArrayReader": 17 }], 22: [function(e, f, u) {
755
755
  var s = e("../utils"), o = e("../support"), n = e("./ArrayReader"), h = e("./StringReader"), w = e("./NodeBufferReader"), b = e("./Uint8ArrayReader");
756
- p.exports = function(_) {
756
+ f.exports = function(_) {
757
757
  var v = s.getTypeOf(_);
758
758
  return s.checkSupport(v), v !== "string" || o.uint8array ? v === "nodebuffer" ? new w(_) : o.uint8array ? new b(s.transformTo("uint8array", _)) : new n(s.transformTo("array", _)) : new h(_);
759
759
  };
760
- }, { "../support": 30, "../utils": 32, "./ArrayReader": 17, "./NodeBufferReader": 19, "./StringReader": 20, "./Uint8ArrayReader": 21 }], 23: [function(e, p, u) {
760
+ }, { "../support": 30, "../utils": 32, "./ArrayReader": 17, "./NodeBufferReader": 19, "./StringReader": 20, "./Uint8ArrayReader": 21 }], 23: [function(e, f, u) {
761
761
  u.LOCAL_FILE_HEADER = "PK", u.CENTRAL_FILE_HEADER = "PK", u.CENTRAL_DIRECTORY_END = "PK", u.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x07", u.ZIP64_CENTRAL_DIRECTORY_END = "PK", u.DATA_DESCRIPTOR = "PK\x07\b";
762
- }, {}], 24: [function(e, p, u) {
762
+ }, {}], 24: [function(e, f, u) {
763
763
  var s = e("./GenericWorker"), o = e("../utils");
764
764
  function n(h) {
765
765
  s.call(this, "ConvertWorker to " + h), this.destType = h;
766
766
  }
767
767
  o.inherits(n, s), n.prototype.processChunk = function(h) {
768
768
  this.push({ data: o.transformTo(this.destType, h.data), meta: h.meta });
769
- }, p.exports = n;
770
- }, { "../utils": 32, "./GenericWorker": 28 }], 25: [function(e, p, u) {
769
+ }, f.exports = n;
770
+ }, { "../utils": 32, "./GenericWorker": 28 }], 25: [function(e, f, u) {
771
771
  var s = e("./GenericWorker"), o = e("../crc32");
772
772
  function n() {
773
773
  s.call(this, "Crc32Probe"), this.withStreamInfo("crc32", 0);
774
774
  }
775
775
  e("../utils").inherits(n, s), n.prototype.processChunk = function(h) {
776
776
  this.streamInfo.crc32 = o(h.data, this.streamInfo.crc32 || 0), this.push(h);
777
- }, p.exports = n;
778
- }, { "../crc32": 4, "../utils": 32, "./GenericWorker": 28 }], 26: [function(e, p, u) {
777
+ }, f.exports = n;
778
+ }, { "../crc32": 4, "../utils": 32, "./GenericWorker": 28 }], 26: [function(e, f, u) {
779
779
  var s = e("../utils"), o = e("./GenericWorker");
780
780
  function n(h) {
781
781
  o.call(this, "DataLengthProbe for " + h), this.propName = h, this.withStreamInfo(h, 0);
@@ -786,8 +786,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
786
786
  this.streamInfo[this.propName] = w + h.data.length;
787
787
  }
788
788
  o.prototype.processChunk.call(this, h);
789
- }, p.exports = n;
790
- }, { "../utils": 32, "./GenericWorker": 28 }], 27: [function(e, p, u) {
789
+ }, f.exports = n;
790
+ }, { "../utils": 32, "./GenericWorker": 28 }], 27: [function(e, f, u) {
791
791
  var s = e("../utils"), o = e("./GenericWorker");
792
792
  function n(h) {
793
793
  o.call(this, "DataWorker");
@@ -820,8 +820,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
820
820
  h = this.data.slice(this.index, w);
821
821
  }
822
822
  return this.index = w, this.push({ data: h, meta: { percent: this.max ? this.index / this.max * 100 : 0 } });
823
- }, p.exports = n;
824
- }, { "../utils": 32, "./GenericWorker": 28 }], 28: [function(e, p, u) {
823
+ }, f.exports = n;
824
+ }, { "../utils": 32, "./GenericWorker": 28 }], 28: [function(e, f, u) {
825
825
  function s(o) {
826
826
  this.name = o || "default", this.streamInfo = {}, this.generatedError = null, this.extraStreamInfo = {}, this.isPaused = !0, this.isFinished = !1, this.isLocked = !1, this._listeners = { data: [], end: [], error: [] }, this.previous = null;
827
827
  }
@@ -876,15 +876,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
876
876
  }, toString: function() {
877
877
  var o = "Worker " + this.name;
878
878
  return this.previous ? this.previous + " -> " + o : o;
879
- } }, p.exports = s;
880
- }, {}], 29: [function(e, p, u) {
879
+ } }, f.exports = s;
880
+ }, {}], 29: [function(e, f, u) {
881
881
  var s = e("../utils"), o = e("./ConvertWorker"), n = e("./GenericWorker"), h = e("../base64"), w = e("../support"), b = e("../external"), _ = null;
882
882
  if (w.nodestream) try {
883
883
  _ = e("../nodejs/NodejsStreamOutputAdapter");
884
884
  } catch {
885
885
  }
886
886
  function v(g, i) {
887
- return new b.Promise(function(f, c) {
887
+ return new b.Promise(function(p, c) {
888
888
  var y = [], x = g._internalType, C = g._outputType, E = g._mimeType;
889
889
  g.on("data", function(D, P) {
890
890
  y.push(D), i && i(P);
@@ -902,7 +902,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
902
902
  return s.transformTo(P, U);
903
903
  }
904
904
  }(C, function(P, U) {
905
- var T, M = 0, X = null, k = 0;
905
+ var T, H = 0, X = null, k = 0;
906
906
  for (T = 0; T < U.length; T++) k += U[T].length;
907
907
  switch (P) {
908
908
  case "string":
@@ -910,7 +910,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
910
910
  case "array":
911
911
  return Array.prototype.concat.apply([], U);
912
912
  case "uint8array":
913
- for (X = new Uint8Array(k), T = 0; T < U.length; T++) X.set(U[T], M), M += U[T].length;
913
+ for (X = new Uint8Array(k), T = 0; T < U.length; T++) X.set(U[T], H), H += U[T].length;
914
914
  return X;
915
915
  case "nodebuffer":
916
916
  return Buffer.concat(U);
@@ -918,7 +918,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
918
918
  throw new Error("concat : unsupported type '" + P + "'");
919
919
  }
920
920
  }(x, y), E);
921
- f(D);
921
+ p(D);
922
922
  } catch (P) {
923
923
  c(P);
924
924
  }
@@ -926,7 +926,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
926
926
  }).resume();
927
927
  });
928
928
  }
929
- function a(g, i, f) {
929
+ function a(g, i, p) {
930
930
  var c = i;
931
931
  switch (i) {
932
932
  case "blob":
@@ -937,7 +937,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
937
937
  c = "string";
938
938
  }
939
939
  try {
940
- this._internalType = c, this._outputType = i, this._mimeType = f, s.checkSupport(c), this._worker = g.pipe(new o(c)), g.lock();
940
+ this._internalType = c, this._outputType = i, this._mimeType = p, s.checkSupport(c), this._worker = g.pipe(new o(c)), g.lock();
941
941
  } catch (y) {
942
942
  this._worker = new n("error"), this._worker.error(y);
943
943
  }
@@ -945,11 +945,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
945
945
  a.prototype = { accumulate: function(g) {
946
946
  return v(this, g);
947
947
  }, on: function(g, i) {
948
- var f = this;
948
+ var p = this;
949
949
  return g === "data" ? this._worker.on(g, function(c) {
950
- i.call(f, c.data, c.meta);
950
+ i.call(p, c.data, c.meta);
951
951
  }) : this._worker.on(g, function() {
952
- s.delay(i, arguments, f);
952
+ s.delay(i, arguments, p);
953
953
  }), this;
954
954
  }, resume: function() {
955
955
  return s.delay(this._worker.resume, [], this._worker), this;
@@ -958,8 +958,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
958
958
  }, toNodejsStream: function(g) {
959
959
  if (s.checkSupport("nodestream"), this._outputType !== "nodebuffer") throw new Error(this._outputType + " is not supported by this method");
960
960
  return new _(this, { objectMode: this._outputType !== "nodebuffer" }, g);
961
- } }, p.exports = a;
962
- }, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(e, p, u) {
961
+ } }, f.exports = a;
962
+ }, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(e, f, u) {
963
963
  if (u.base64 = !0, u.array = !0, u.string = !0, u.arraybuffer = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", u.nodebuffer = typeof Buffer < "u", u.uint8array = typeof Uint8Array < "u", typeof ArrayBuffer > "u") u.blob = !1;
964
964
  else {
965
965
  var s = new ArrayBuffer(0);
@@ -979,7 +979,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
979
979
  } catch {
980
980
  u.nodestream = !1;
981
981
  }
982
- }, { "readable-stream": 16 }], 31: [function(e, p, u) {
982
+ }, { "readable-stream": 16 }], 31: [function(e, f, u) {
983
983
  for (var s = e("./utils"), o = e("./support"), n = e("./nodejsUtils"), h = e("./stream/GenericWorker"), w = new Array(256), b = 0; b < 256; b++) w[b] = 252 <= b ? 6 : 248 <= b ? 5 : 240 <= b ? 4 : 224 <= b ? 3 : 192 <= b ? 2 : 1;
984
984
  w[254] = w[254] = 1;
985
985
  function _() {
@@ -990,21 +990,21 @@ https://github.com/nodeca/pako/blob/main/LICENSE
990
990
  }
991
991
  u.utf8encode = function(a) {
992
992
  return o.nodebuffer ? n.newBufferFrom(a, "utf-8") : function(g) {
993
- var i, f, c, y, x, C = g.length, E = 0;
994
- for (y = 0; y < C; y++) (64512 & (f = g.charCodeAt(y))) == 55296 && y + 1 < C && (64512 & (c = g.charCodeAt(y + 1))) == 56320 && (f = 65536 + (f - 55296 << 10) + (c - 56320), y++), E += f < 128 ? 1 : f < 2048 ? 2 : f < 65536 ? 3 : 4;
995
- for (i = o.uint8array ? new Uint8Array(E) : new Array(E), y = x = 0; x < E; y++) (64512 & (f = g.charCodeAt(y))) == 55296 && y + 1 < C && (64512 & (c = g.charCodeAt(y + 1))) == 56320 && (f = 65536 + (f - 55296 << 10) + (c - 56320), y++), f < 128 ? i[x++] = f : (f < 2048 ? i[x++] = 192 | f >>> 6 : (f < 65536 ? i[x++] = 224 | f >>> 12 : (i[x++] = 240 | f >>> 18, i[x++] = 128 | f >>> 12 & 63), i[x++] = 128 | f >>> 6 & 63), i[x++] = 128 | 63 & f);
993
+ var i, p, c, y, x, C = g.length, E = 0;
994
+ for (y = 0; y < C; y++) (64512 & (p = g.charCodeAt(y))) == 55296 && y + 1 < C && (64512 & (c = g.charCodeAt(y + 1))) == 56320 && (p = 65536 + (p - 55296 << 10) + (c - 56320), y++), E += p < 128 ? 1 : p < 2048 ? 2 : p < 65536 ? 3 : 4;
995
+ for (i = o.uint8array ? new Uint8Array(E) : new Array(E), y = x = 0; x < E; y++) (64512 & (p = g.charCodeAt(y))) == 55296 && y + 1 < C && (64512 & (c = g.charCodeAt(y + 1))) == 56320 && (p = 65536 + (p - 55296 << 10) + (c - 56320), y++), p < 128 ? i[x++] = p : (p < 2048 ? i[x++] = 192 | p >>> 6 : (p < 65536 ? i[x++] = 224 | p >>> 12 : (i[x++] = 240 | p >>> 18, i[x++] = 128 | p >>> 12 & 63), i[x++] = 128 | p >>> 6 & 63), i[x++] = 128 | 63 & p);
996
996
  return i;
997
997
  }(a);
998
998
  }, u.utf8decode = function(a) {
999
999
  return o.nodebuffer ? s.transformTo("nodebuffer", a).toString("utf-8") : function(g) {
1000
- var i, f, c, y, x = g.length, C = new Array(2 * x);
1001
- for (i = f = 0; i < x; ) if ((c = g[i++]) < 128) C[f++] = c;
1002
- else if (4 < (y = w[c])) C[f++] = 65533, i += y - 1;
1000
+ var i, p, c, y, x = g.length, C = new Array(2 * x);
1001
+ for (i = p = 0; i < x; ) if ((c = g[i++]) < 128) C[p++] = c;
1002
+ else if (4 < (y = w[c])) C[p++] = 65533, i += y - 1;
1003
1003
  else {
1004
1004
  for (c &= y === 2 ? 31 : y === 3 ? 15 : 7; 1 < y && i < x; ) c = c << 6 | 63 & g[i++], y--;
1005
- 1 < y ? C[f++] = 65533 : c < 65536 ? C[f++] = c : (c -= 65536, C[f++] = 55296 | c >> 10 & 1023, C[f++] = 56320 | 1023 & c);
1005
+ 1 < y ? C[p++] = 65533 : c < 65536 ? C[p++] = c : (c -= 65536, C[p++] = 55296 | c >> 10 & 1023, C[p++] = 56320 | 1023 & c);
1006
1006
  }
1007
- return C.length !== f && (C.subarray ? C = C.subarray(0, f) : C.length = f), s.applyFromCharCode(C);
1007
+ return C.length !== p && (C.subarray ? C = C.subarray(0, p) : C.length = p), s.applyFromCharCode(C);
1008
1008
  }(a = s.transformTo(o.uint8array ? "uint8array" : "array", a));
1009
1009
  }, s.inherits(_, h), _.prototype.processChunk = function(a) {
1010
1010
  var g = s.transformTo(o.uint8array ? "uint8array" : "array", a.data);
@@ -1015,47 +1015,47 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1015
1015
  } else g = this.leftOver.concat(g);
1016
1016
  this.leftOver = null;
1017
1017
  }
1018
- var f = function(y, x) {
1018
+ var p = function(y, x) {
1019
1019
  var C;
1020
1020
  for ((x = x || y.length) > y.length && (x = y.length), C = x - 1; 0 <= C && (192 & y[C]) == 128; ) C--;
1021
1021
  return C < 0 || C === 0 ? x : C + w[y[C]] > x ? C : x;
1022
1022
  }(g), c = g;
1023
- f !== g.length && (o.uint8array ? (c = g.subarray(0, f), this.leftOver = g.subarray(f, g.length)) : (c = g.slice(0, f), this.leftOver = g.slice(f, g.length))), this.push({ data: u.utf8decode(c), meta: a.meta });
1023
+ p !== g.length && (o.uint8array ? (c = g.subarray(0, p), this.leftOver = g.subarray(p, g.length)) : (c = g.slice(0, p), this.leftOver = g.slice(p, g.length))), this.push({ data: u.utf8decode(c), meta: a.meta });
1024
1024
  }, _.prototype.flush = function() {
1025
1025
  this.leftOver && this.leftOver.length && (this.push({ data: u.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
1026
1026
  }, u.Utf8DecodeWorker = _, s.inherits(v, h), v.prototype.processChunk = function(a) {
1027
1027
  this.push({ data: u.utf8encode(a.data), meta: a.meta });
1028
1028
  }, u.Utf8EncodeWorker = v;
1029
- }, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(e, p, u) {
1029
+ }, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(e, f, u) {
1030
1030
  var s = e("./support"), o = e("./base64"), n = e("./nodejsUtils"), h = e("./external");
1031
1031
  function w(i) {
1032
1032
  return i;
1033
1033
  }
1034
- function b(i, f) {
1035
- for (var c = 0; c < i.length; ++c) f[c] = 255 & i.charCodeAt(c);
1036
- return f;
1034
+ function b(i, p) {
1035
+ for (var c = 0; c < i.length; ++c) p[c] = 255 & i.charCodeAt(c);
1036
+ return p;
1037
1037
  }
1038
- e("setimmediate"), u.newBlob = function(i, f) {
1038
+ e("setimmediate"), u.newBlob = function(i, p) {
1039
1039
  u.checkSupport("blob");
1040
1040
  try {
1041
- return new Blob([i], { type: f });
1041
+ return new Blob([i], { type: p });
1042
1042
  } catch {
1043
1043
  try {
1044
1044
  var c = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
1045
- return c.append(i), c.getBlob(f);
1045
+ return c.append(i), c.getBlob(p);
1046
1046
  } catch {
1047
1047
  throw new Error("Bug : can't construct the Blob.");
1048
1048
  }
1049
1049
  }
1050
1050
  };
1051
- var _ = { stringifyByChunk: function(i, f, c) {
1051
+ var _ = { stringifyByChunk: function(i, p, c) {
1052
1052
  var y = [], x = 0, C = i.length;
1053
1053
  if (C <= c) return String.fromCharCode.apply(null, i);
1054
- for (; x < C; ) f === "array" || f === "nodebuffer" ? y.push(String.fromCharCode.apply(null, i.slice(x, Math.min(x + c, C)))) : y.push(String.fromCharCode.apply(null, i.subarray(x, Math.min(x + c, C)))), x += c;
1054
+ for (; x < C; ) p === "array" || p === "nodebuffer" ? y.push(String.fromCharCode.apply(null, i.slice(x, Math.min(x + c, C)))) : y.push(String.fromCharCode.apply(null, i.subarray(x, Math.min(x + c, C)))), x += c;
1055
1055
  return y.join("");
1056
1056
  }, stringifyByChar: function(i) {
1057
- for (var f = "", c = 0; c < i.length; c++) f += String.fromCharCode(i[c]);
1058
- return f;
1057
+ for (var p = "", c = 0; c < i.length; c++) p += String.fromCharCode(i[c]);
1058
+ return p;
1059
1059
  }, applyCanBeUsed: { uint8array: function() {
1060
1060
  try {
1061
1061
  return s.uint8array && String.fromCharCode.apply(null, new Uint8Array(1)).length === 1;
@@ -1070,17 +1070,17 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1070
1070
  }
1071
1071
  }() } };
1072
1072
  function v(i) {
1073
- var f = 65536, c = u.getTypeOf(i), y = !0;
1074
- if (c === "uint8array" ? y = _.applyCanBeUsed.uint8array : c === "nodebuffer" && (y = _.applyCanBeUsed.nodebuffer), y) for (; 1 < f; ) try {
1075
- return _.stringifyByChunk(i, c, f);
1073
+ var p = 65536, c = u.getTypeOf(i), y = !0;
1074
+ if (c === "uint8array" ? y = _.applyCanBeUsed.uint8array : c === "nodebuffer" && (y = _.applyCanBeUsed.nodebuffer), y) for (; 1 < p; ) try {
1075
+ return _.stringifyByChunk(i, c, p);
1076
1076
  } catch {
1077
- f = Math.floor(f / 2);
1077
+ p = Math.floor(p / 2);
1078
1078
  }
1079
1079
  return _.stringifyByChar(i);
1080
1080
  }
1081
- function a(i, f) {
1082
- for (var c = 0; c < i.length; c++) f[c] = i[c];
1083
- return f;
1081
+ function a(i, p) {
1082
+ for (var c = 0; c < i.length; c++) p[c] = i[c];
1083
+ return p;
1084
1084
  }
1085
1085
  u.applyFromCharCode = v;
1086
1086
  var g = {};
@@ -1118,15 +1118,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1118
1118
  return g.nodebuffer.uint8array(i).buffer;
1119
1119
  }, uint8array: function(i) {
1120
1120
  return a(i, new Uint8Array(i.length));
1121
- }, nodebuffer: w }, u.transformTo = function(i, f) {
1122
- if (f = f || "", !i) return f;
1121
+ }, nodebuffer: w }, u.transformTo = function(i, p) {
1122
+ if (p = p || "", !i) return p;
1123
1123
  u.checkSupport(i);
1124
- var c = u.getTypeOf(f);
1125
- return g[c][i](f);
1124
+ var c = u.getTypeOf(p);
1125
+ return g[c][i](p);
1126
1126
  }, u.resolve = function(i) {
1127
- for (var f = i.split("/"), c = [], y = 0; y < f.length; y++) {
1128
- var x = f[y];
1129
- x === "." || x === "" && y !== 0 && y !== f.length - 1 || (x === ".." ? c.pop() : c.push(x));
1127
+ for (var p = i.split("/"), c = [], y = 0; y < p.length; y++) {
1128
+ var x = p[y];
1129
+ x === "." || x === "" && y !== 0 && y !== p.length - 1 || (x === ".." ? c.pop() : c.push(x));
1130
1130
  }
1131
1131
  return c.join("/");
1132
1132
  }, u.getTypeOf = function(i) {
@@ -1134,23 +1134,23 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1134
1134
  }, u.checkSupport = function(i) {
1135
1135
  if (!s[i.toLowerCase()]) throw new Error(i + " is not supported by this platform");
1136
1136
  }, u.MAX_VALUE_16BITS = 65535, u.MAX_VALUE_32BITS = -1, u.pretty = function(i) {
1137
- var f, c, y = "";
1138
- for (c = 0; c < (i || "").length; c++) y += "\\x" + ((f = i.charCodeAt(c)) < 16 ? "0" : "") + f.toString(16).toUpperCase();
1137
+ var p, c, y = "";
1138
+ for (c = 0; c < (i || "").length; c++) y += "\\x" + ((p = i.charCodeAt(c)) < 16 ? "0" : "") + p.toString(16).toUpperCase();
1139
1139
  return y;
1140
- }, u.delay = function(i, f, c) {
1140
+ }, u.delay = function(i, p, c) {
1141
1141
  setImmediate(function() {
1142
- i.apply(c || null, f || []);
1142
+ i.apply(c || null, p || []);
1143
1143
  });
1144
- }, u.inherits = function(i, f) {
1144
+ }, u.inherits = function(i, p) {
1145
1145
  function c() {
1146
1146
  }
1147
- c.prototype = f.prototype, i.prototype = new c();
1147
+ c.prototype = p.prototype, i.prototype = new c();
1148
1148
  }, u.extend = function() {
1149
- var i, f, c = {};
1150
- for (i = 0; i < arguments.length; i++) for (f in arguments[i]) Object.prototype.hasOwnProperty.call(arguments[i], f) && c[f] === void 0 && (c[f] = arguments[i][f]);
1149
+ var i, p, c = {};
1150
+ for (i = 0; i < arguments.length; i++) for (p in arguments[i]) Object.prototype.hasOwnProperty.call(arguments[i], p) && c[p] === void 0 && (c[p] = arguments[i][p]);
1151
1151
  return c;
1152
- }, u.prepareContent = function(i, f, c, y, x) {
1153
- return h.Promise.resolve(f).then(function(C) {
1152
+ }, u.prepareContent = function(i, p, c, y, x) {
1153
+ return h.Promise.resolve(p).then(function(C) {
1154
1154
  return s.blob && (C instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(C)) !== -1) && typeof FileReader < "u" ? new h.Promise(function(E, D) {
1155
1155
  var P = new FileReader();
1156
1156
  P.onload = function(U) {
@@ -1166,7 +1166,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1166
1166
  }(C))), C) : h.Promise.reject(new Error("Can't read the data of '" + i + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
1167
1167
  });
1168
1168
  };
1169
- }, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(e, p, u) {
1169
+ }, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(e, f, u) {
1170
1170
  var s = e("./reader/readerFor"), o = e("./utils"), n = e("./signature"), h = e("./zipEntry"), w = e("./support");
1171
1171
  function b(_) {
1172
1172
  this.files = [], this.loadOptions = _;
@@ -1217,8 +1217,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1217
1217
  this.reader = s(_);
1218
1218
  }, load: function(_) {
1219
1219
  this.prepareReader(_), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
1220
- } }, p.exports = b;
1221
- }, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(e, p, u) {
1220
+ } }, f.exports = b;
1221
+ }, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(e, f, u) {
1222
1222
  var s = e("./reader/readerFor"), o = e("./utils"), n = e("./compressedObject"), h = e("./crc32"), w = e("./utf8"), b = e("./compressions"), _ = e("./support");
1223
1223
  function v(a, g) {
1224
1224
  this.options = a, this.loadOptions = g;
@@ -1230,8 +1230,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1230
1230
  }, readLocalPart: function(a) {
1231
1231
  var g, i;
1232
1232
  if (a.skip(22), this.fileNameLength = a.readInt(2), i = a.readInt(2), this.fileName = a.readData(this.fileNameLength), a.skip(i), this.compressedSize === -1 || this.uncompressedSize === -1) throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");
1233
- if ((g = function(f) {
1234
- for (var c in b) if (Object.prototype.hasOwnProperty.call(b, c) && b[c].magic === f) return b[c];
1233
+ if ((g = function(p) {
1234
+ for (var c in b) if (Object.prototype.hasOwnProperty.call(b, c) && b[c].magic === p) return b[c];
1235
1235
  return null;
1236
1236
  }(this.compressionMethod)) === null) throw new Error("Corrupted zip : compression " + o.pretty(this.compressionMethod) + " unknown (inner file : " + o.transformTo("string", this.fileName) + ")");
1237
1237
  this.decompressed = new n(this.compressedSize, this.uncompressedSize, this.crc32, g, a.readData(this.compressedSize));
@@ -1250,8 +1250,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1250
1250
  this.uncompressedSize === o.MAX_VALUE_32BITS && (this.uncompressedSize = a.readInt(8)), this.compressedSize === o.MAX_VALUE_32BITS && (this.compressedSize = a.readInt(8)), this.localHeaderOffset === o.MAX_VALUE_32BITS && (this.localHeaderOffset = a.readInt(8)), this.diskNumberStart === o.MAX_VALUE_32BITS && (this.diskNumberStart = a.readInt(4));
1251
1251
  }
1252
1252
  }, readExtraFields: function(a) {
1253
- var g, i, f, c = a.index + this.extraFieldsLength;
1254
- for (this.extraFields || (this.extraFields = {}); a.index + 4 < c; ) g = a.readInt(2), i = a.readInt(2), f = a.readData(i), this.extraFields[g] = { id: g, length: i, value: f };
1253
+ var g, i, p, c = a.index + this.extraFieldsLength;
1254
+ for (this.extraFields || (this.extraFields = {}); a.index + 4 < c; ) g = a.readInt(2), i = a.readInt(2), p = a.readData(i), this.extraFields[g] = { id: g, length: i, value: p };
1255
1255
  a.setIndex(c);
1256
1256
  }, handleUTF8: function() {
1257
1257
  var a = _.uint8array ? "uint8array" : "array";
@@ -1263,8 +1263,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1263
1263
  var i = o.transformTo(a, this.fileName);
1264
1264
  this.fileNameStr = this.loadOptions.decodeFileName(i);
1265
1265
  }
1266
- var f = this.findExtraFieldUnicodeComment();
1267
- if (f !== null) this.fileCommentStr = f;
1266
+ var p = this.findExtraFieldUnicodeComment();
1267
+ if (p !== null) this.fileCommentStr = p;
1268
1268
  else {
1269
1269
  var c = o.transformTo(a, this.fileComment);
1270
1270
  this.fileCommentStr = this.loadOptions.decodeFileName(c);
@@ -1284,40 +1284,40 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1284
1284
  return g.readInt(1) !== 1 || h(this.fileComment) !== g.readInt(4) ? null : w.utf8decode(g.readData(a.length - 5));
1285
1285
  }
1286
1286
  return null;
1287
- } }, p.exports = v;
1288
- }, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(e, p, u) {
1289
- function s(g, i, f) {
1290
- this.name = g, this.dir = f.dir, this.date = f.date, this.comment = f.comment, this.unixPermissions = f.unixPermissions, this.dosPermissions = f.dosPermissions, this._data = i, this._dataBinary = f.binary, this.options = { compression: f.compression, compressionOptions: f.compressionOptions };
1287
+ } }, f.exports = v;
1288
+ }, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(e, f, u) {
1289
+ function s(g, i, p) {
1290
+ this.name = g, this.dir = p.dir, this.date = p.date, this.comment = p.comment, this.unixPermissions = p.unixPermissions, this.dosPermissions = p.dosPermissions, this._data = i, this._dataBinary = p.binary, this.options = { compression: p.compression, compressionOptions: p.compressionOptions };
1291
1291
  }
1292
1292
  var o = e("./stream/StreamHelper"), n = e("./stream/DataWorker"), h = e("./utf8"), w = e("./compressedObject"), b = e("./stream/GenericWorker");
1293
1293
  s.prototype = { internalStream: function(g) {
1294
- var i = null, f = "string";
1294
+ var i = null, p = "string";
1295
1295
  try {
1296
1296
  if (!g) throw new Error("No output type specified.");
1297
- var c = (f = g.toLowerCase()) === "string" || f === "text";
1298
- f !== "binarystring" && f !== "text" || (f = "string"), i = this._decompressWorker();
1297
+ var c = (p = g.toLowerCase()) === "string" || p === "text";
1298
+ p !== "binarystring" && p !== "text" || (p = "string"), i = this._decompressWorker();
1299
1299
  var y = !this._dataBinary;
1300
1300
  y && !c && (i = i.pipe(new h.Utf8EncodeWorker())), !y && c && (i = i.pipe(new h.Utf8DecodeWorker()));
1301
1301
  } catch (x) {
1302
1302
  (i = new b("error")).error(x);
1303
1303
  }
1304
- return new o(i, f, "");
1304
+ return new o(i, p, "");
1305
1305
  }, async: function(g, i) {
1306
1306
  return this.internalStream(g).accumulate(i);
1307
1307
  }, nodeStream: function(g, i) {
1308
1308
  return this.internalStream(g || "nodebuffer").toNodejsStream(i);
1309
1309
  }, _compressWorker: function(g, i) {
1310
1310
  if (this._data instanceof w && this._data.compression.magic === g.magic) return this._data.getCompressedWorker();
1311
- var f = this._decompressWorker();
1312
- return this._dataBinary || (f = f.pipe(new h.Utf8EncodeWorker())), w.createWorkerFrom(f, g, i);
1311
+ var p = this._decompressWorker();
1312
+ return this._dataBinary || (p = p.pipe(new h.Utf8EncodeWorker())), w.createWorkerFrom(p, g, i);
1313
1313
  }, _decompressWorker: function() {
1314
1314
  return this._data instanceof w ? this._data.getContentWorker() : this._data instanceof b ? this._data : new n(this._data);
1315
1315
  } };
1316
1316
  for (var _ = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], v = function() {
1317
1317
  throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
1318
1318
  }, a = 0; a < _.length; a++) s.prototype[_[a]] = v;
1319
- p.exports = s;
1320
- }, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(e, p, u) {
1319
+ f.exports = s;
1320
+ }, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(e, f, u) {
1321
1321
  (function(s) {
1322
1322
  var o, n, h = s.MutationObserver || s.WebKitMutationObserver;
1323
1323
  if (h) {
@@ -1341,19 +1341,19 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1341
1341
  }
1342
1342
  var a = [];
1343
1343
  function g() {
1344
- var i, f;
1344
+ var i, p;
1345
1345
  n = !0;
1346
1346
  for (var c = a.length; c; ) {
1347
- for (f = a, a = [], i = -1; ++i < c; ) f[i]();
1347
+ for (p = a, a = [], i = -1; ++i < c; ) p[i]();
1348
1348
  c = a.length;
1349
1349
  }
1350
1350
  n = !1;
1351
1351
  }
1352
- p.exports = function(i) {
1352
+ f.exports = function(i) {
1353
1353
  a.push(i) !== 1 || n || o();
1354
1354
  };
1355
1355
  }).call(this, typeof Ot < "u" ? Ot : typeof self < "u" ? self : typeof window < "u" ? window : {});
1356
- }, {}], 37: [function(e, p, u) {
1356
+ }, {}], 37: [function(e, f, u) {
1357
1357
  var s = e("immediate");
1358
1358
  function o() {
1359
1359
  }
@@ -1390,12 +1390,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1390
1390
  function E(P) {
1391
1391
  x || (x = !0, n.resolve(c, P));
1392
1392
  }
1393
- var D = f(function() {
1393
+ var D = p(function() {
1394
1394
  y(E, C);
1395
1395
  });
1396
1396
  D.status === "error" && C(D.value);
1397
1397
  }
1398
- function f(c, y) {
1398
+ function p(c, y) {
1399
1399
  var x = {};
1400
1400
  try {
1401
1401
  x.value = c(y), x.status = "success";
@@ -1404,7 +1404,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1404
1404
  }
1405
1405
  return x;
1406
1406
  }
1407
- (p.exports = _).prototype.finally = function(c) {
1407
+ (f.exports = _).prototype.finally = function(c) {
1408
1408
  if (typeof c != "function") return this;
1409
1409
  var y = this.constructor;
1410
1410
  return this.then(function(x) {
@@ -1431,7 +1431,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1431
1431
  }, v.prototype.otherCallRejected = function(c) {
1432
1432
  a(this.promise, this.onRejected, c);
1433
1433
  }, n.resolve = function(c, y) {
1434
- var x = f(g, y);
1434
+ var x = p(g, y);
1435
1435
  if (x.status === "error") return n.reject(c, x.value);
1436
1436
  var C = x.value;
1437
1437
  if (C) i(c, C);
@@ -1456,8 +1456,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1456
1456
  if (!x) return this.resolve([]);
1457
1457
  for (var E = new Array(x), D = 0, P = -1, U = new this(o); ++P < x; ) T(c[P], P);
1458
1458
  return U;
1459
- function T(M, X) {
1460
- y.resolve(M).then(function(k) {
1459
+ function T(H, X) {
1460
+ y.resolve(H).then(function(k) {
1461
1461
  E[X] = k, ++D !== x || C || (C = !0, n.resolve(U, E));
1462
1462
  }, function(k) {
1463
1463
  C || (C = !0, n.reject(U, k));
@@ -1476,10 +1476,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1476
1476
  var P;
1477
1477
  return D;
1478
1478
  };
1479
- }, { immediate: 36 }], 38: [function(e, p, u) {
1479
+ }, { immediate: 36 }], 38: [function(e, f, u) {
1480
1480
  var s = {};
1481
- (0, e("./lib/utils/common").assign)(s, e("./lib/deflate"), e("./lib/inflate"), e("./lib/zlib/constants")), p.exports = s;
1482
- }, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(e, p, u) {
1481
+ (0, e("./lib/utils/common").assign)(s, e("./lib/deflate"), e("./lib/inflate"), e("./lib/zlib/constants")), f.exports = s;
1482
+ }, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(e, f, u) {
1483
1483
  var s = e("./zlib/deflate"), o = e("./utils/common"), n = e("./utils/strings"), h = e("./zlib/messages"), w = e("./zlib/zstream"), b = Object.prototype.toString, _ = 0, v = -1, a = 0, g = 8;
1484
1484
  function i(c) {
1485
1485
  if (!(this instanceof i)) return new i(c);
@@ -1494,7 +1494,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1494
1494
  this._dict_set = !0;
1495
1495
  }
1496
1496
  }
1497
- function f(c, y) {
1497
+ function p(c, y) {
1498
1498
  var x = new i(y);
1499
1499
  if (x.push(c, !0), x.err) throw x.msg || h[x.err];
1500
1500
  return x.result;
@@ -1512,44 +1512,44 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1512
1512
  this.chunks.push(c);
1513
1513
  }, i.prototype.onEnd = function(c) {
1514
1514
  c === _ && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = c, this.msg = this.strm.msg;
1515
- }, u.Deflate = i, u.deflate = f, u.deflateRaw = function(c, y) {
1516
- return (y = y || {}).raw = !0, f(c, y);
1515
+ }, u.Deflate = i, u.deflate = p, u.deflateRaw = function(c, y) {
1516
+ return (y = y || {}).raw = !0, p(c, y);
1517
1517
  }, u.gzip = function(c, y) {
1518
- return (y = y || {}).gzip = !0, f(c, y);
1518
+ return (y = y || {}).gzip = !0, p(c, y);
1519
1519
  };
1520
- }, { "./utils/common": 41, "./utils/strings": 42, "./zlib/deflate": 46, "./zlib/messages": 51, "./zlib/zstream": 53 }], 40: [function(e, p, u) {
1520
+ }, { "./utils/common": 41, "./utils/strings": 42, "./zlib/deflate": 46, "./zlib/messages": 51, "./zlib/zstream": 53 }], 40: [function(e, f, u) {
1521
1521
  var s = e("./zlib/inflate"), o = e("./utils/common"), n = e("./utils/strings"), h = e("./zlib/constants"), w = e("./zlib/messages"), b = e("./zlib/zstream"), _ = e("./zlib/gzheader"), v = Object.prototype.toString;
1522
1522
  function a(i) {
1523
1523
  if (!(this instanceof a)) return new a(i);
1524
1524
  this.options = o.assign({ chunkSize: 16384, windowBits: 0, to: "" }, i || {});
1525
- var f = this.options;
1526
- f.raw && 0 <= f.windowBits && f.windowBits < 16 && (f.windowBits = -f.windowBits, f.windowBits === 0 && (f.windowBits = -15)), !(0 <= f.windowBits && f.windowBits < 16) || i && i.windowBits || (f.windowBits += 32), 15 < f.windowBits && f.windowBits < 48 && !(15 & f.windowBits) && (f.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new b(), this.strm.avail_out = 0;
1527
- var c = s.inflateInit2(this.strm, f.windowBits);
1525
+ var p = this.options;
1526
+ p.raw && 0 <= p.windowBits && p.windowBits < 16 && (p.windowBits = -p.windowBits, p.windowBits === 0 && (p.windowBits = -15)), !(0 <= p.windowBits && p.windowBits < 16) || i && i.windowBits || (p.windowBits += 32), 15 < p.windowBits && p.windowBits < 48 && !(15 & p.windowBits) && (p.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new b(), this.strm.avail_out = 0;
1527
+ var c = s.inflateInit2(this.strm, p.windowBits);
1528
1528
  if (c !== h.Z_OK) throw new Error(w[c]);
1529
1529
  this.header = new _(), s.inflateGetHeader(this.strm, this.header);
1530
1530
  }
1531
- function g(i, f) {
1532
- var c = new a(f);
1531
+ function g(i, p) {
1532
+ var c = new a(p);
1533
1533
  if (c.push(i, !0), c.err) throw c.msg || w[c.err];
1534
1534
  return c.result;
1535
1535
  }
1536
- a.prototype.push = function(i, f) {
1537
- var c, y, x, C, E, D, P = this.strm, U = this.options.chunkSize, T = this.options.dictionary, M = !1;
1536
+ a.prototype.push = function(i, p) {
1537
+ var c, y, x, C, E, D, P = this.strm, U = this.options.chunkSize, T = this.options.dictionary, H = !1;
1538
1538
  if (this.ended) return !1;
1539
- y = f === ~~f ? f : f === !0 ? h.Z_FINISH : h.Z_NO_FLUSH, typeof i == "string" ? P.input = n.binstring2buf(i) : v.call(i) === "[object ArrayBuffer]" ? P.input = new Uint8Array(i) : P.input = i, P.next_in = 0, P.avail_in = P.input.length;
1539
+ y = p === ~~p ? p : p === !0 ? h.Z_FINISH : h.Z_NO_FLUSH, typeof i == "string" ? P.input = n.binstring2buf(i) : v.call(i) === "[object ArrayBuffer]" ? P.input = new Uint8Array(i) : P.input = i, P.next_in = 0, P.avail_in = P.input.length;
1540
1540
  do {
1541
- if (P.avail_out === 0 && (P.output = new o.Buf8(U), P.next_out = 0, P.avail_out = U), (c = s.inflate(P, h.Z_NO_FLUSH)) === h.Z_NEED_DICT && T && (D = typeof T == "string" ? n.string2buf(T) : v.call(T) === "[object ArrayBuffer]" ? new Uint8Array(T) : T, c = s.inflateSetDictionary(this.strm, D)), c === h.Z_BUF_ERROR && M === !0 && (c = h.Z_OK, M = !1), c !== h.Z_STREAM_END && c !== h.Z_OK) return this.onEnd(c), !(this.ended = !0);
1542
- P.next_out && (P.avail_out !== 0 && c !== h.Z_STREAM_END && (P.avail_in !== 0 || y !== h.Z_FINISH && y !== h.Z_SYNC_FLUSH) || (this.options.to === "string" ? (x = n.utf8border(P.output, P.next_out), C = P.next_out - x, E = n.buf2string(P.output, x), P.next_out = C, P.avail_out = U - C, C && o.arraySet(P.output, P.output, x, C, 0), this.onData(E)) : this.onData(o.shrinkBuf(P.output, P.next_out)))), P.avail_in === 0 && P.avail_out === 0 && (M = !0);
1541
+ if (P.avail_out === 0 && (P.output = new o.Buf8(U), P.next_out = 0, P.avail_out = U), (c = s.inflate(P, h.Z_NO_FLUSH)) === h.Z_NEED_DICT && T && (D = typeof T == "string" ? n.string2buf(T) : v.call(T) === "[object ArrayBuffer]" ? new Uint8Array(T) : T, c = s.inflateSetDictionary(this.strm, D)), c === h.Z_BUF_ERROR && H === !0 && (c = h.Z_OK, H = !1), c !== h.Z_STREAM_END && c !== h.Z_OK) return this.onEnd(c), !(this.ended = !0);
1542
+ P.next_out && (P.avail_out !== 0 && c !== h.Z_STREAM_END && (P.avail_in !== 0 || y !== h.Z_FINISH && y !== h.Z_SYNC_FLUSH) || (this.options.to === "string" ? (x = n.utf8border(P.output, P.next_out), C = P.next_out - x, E = n.buf2string(P.output, x), P.next_out = C, P.avail_out = U - C, C && o.arraySet(P.output, P.output, x, C, 0), this.onData(E)) : this.onData(o.shrinkBuf(P.output, P.next_out)))), P.avail_in === 0 && P.avail_out === 0 && (H = !0);
1543
1543
  } while ((0 < P.avail_in || P.avail_out === 0) && c !== h.Z_STREAM_END);
1544
1544
  return c === h.Z_STREAM_END && (y = h.Z_FINISH), y === h.Z_FINISH ? (c = s.inflateEnd(this.strm), this.onEnd(c), this.ended = !0, c === h.Z_OK) : y !== h.Z_SYNC_FLUSH || (this.onEnd(h.Z_OK), !(P.avail_out = 0));
1545
1545
  }, a.prototype.onData = function(i) {
1546
1546
  this.chunks.push(i);
1547
1547
  }, a.prototype.onEnd = function(i) {
1548
1548
  i === h.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = i, this.msg = this.strm.msg;
1549
- }, u.Inflate = a, u.inflate = g, u.inflateRaw = function(i, f) {
1550
- return (f = f || {}).raw = !0, g(i, f);
1549
+ }, u.Inflate = a, u.inflate = g, u.inflateRaw = function(i, p) {
1550
+ return (p = p || {}).raw = !0, g(i, p);
1551
1551
  }, u.ungzip = g;
1552
- }, { "./utils/common": 41, "./utils/strings": 42, "./zlib/constants": 44, "./zlib/gzheader": 47, "./zlib/inflate": 49, "./zlib/messages": 51, "./zlib/zstream": 53 }], 41: [function(e, p, u) {
1552
+ }, { "./utils/common": 41, "./utils/strings": 42, "./zlib/constants": 44, "./zlib/gzheader": 47, "./zlib/inflate": 49, "./zlib/messages": 51, "./zlib/zstream": 53 }], 41: [function(e, f, u) {
1553
1553
  var s = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Int32Array < "u";
1554
1554
  u.assign = function(h) {
1555
1555
  for (var w = Array.prototype.slice.call(arguments, 1); w.length; ) {
@@ -1579,7 +1579,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1579
1579
  u.setTyped = function(h) {
1580
1580
  h ? (u.Buf8 = Uint8Array, u.Buf16 = Uint16Array, u.Buf32 = Int32Array, u.assign(u, o)) : (u.Buf8 = Array, u.Buf16 = Array, u.Buf32 = Array, u.assign(u, n));
1581
1581
  }, u.setTyped(s);
1582
- }, {}], 42: [function(e, p, u) {
1582
+ }, {}], 42: [function(e, f, u) {
1583
1583
  var s = e("./common"), o = !0, n = !0;
1584
1584
  try {
1585
1585
  String.fromCharCode.apply(null, [0]);
@@ -1598,9 +1598,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1598
1598
  return a;
1599
1599
  }
1600
1600
  h[254] = h[254] = 1, u.string2buf = function(_) {
1601
- var v, a, g, i, f, c = _.length, y = 0;
1601
+ var v, a, g, i, p, c = _.length, y = 0;
1602
1602
  for (i = 0; i < c; i++) (64512 & (a = _.charCodeAt(i))) == 55296 && i + 1 < c && (64512 & (g = _.charCodeAt(i + 1))) == 56320 && (a = 65536 + (a - 55296 << 10) + (g - 56320), i++), y += a < 128 ? 1 : a < 2048 ? 2 : a < 65536 ? 3 : 4;
1603
- for (v = new s.Buf8(y), i = f = 0; f < y; i++) (64512 & (a = _.charCodeAt(i))) == 55296 && i + 1 < c && (64512 & (g = _.charCodeAt(i + 1))) == 56320 && (a = 65536 + (a - 55296 << 10) + (g - 56320), i++), a < 128 ? v[f++] = a : (a < 2048 ? v[f++] = 192 | a >>> 6 : (a < 65536 ? v[f++] = 224 | a >>> 12 : (v[f++] = 240 | a >>> 18, v[f++] = 128 | a >>> 12 & 63), v[f++] = 128 | a >>> 6 & 63), v[f++] = 128 | 63 & a);
1603
+ for (v = new s.Buf8(y), i = p = 0; p < y; i++) (64512 & (a = _.charCodeAt(i))) == 55296 && i + 1 < c && (64512 & (g = _.charCodeAt(i + 1))) == 56320 && (a = 65536 + (a - 55296 << 10) + (g - 56320), i++), a < 128 ? v[p++] = a : (a < 2048 ? v[p++] = 192 | a >>> 6 : (a < 65536 ? v[p++] = 224 | a >>> 12 : (v[p++] = 240 | a >>> 18, v[p++] = 128 | a >>> 12 & 63), v[p++] = 128 | a >>> 6 & 63), v[p++] = 128 | 63 & a);
1604
1604
  return v;
1605
1605
  }, u.buf2binstring = function(_) {
1606
1606
  return b(_, _.length);
@@ -1608,12 +1608,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1608
1608
  for (var v = new s.Buf8(_.length), a = 0, g = v.length; a < g; a++) v[a] = _.charCodeAt(a);
1609
1609
  return v;
1610
1610
  }, u.buf2string = function(_, v) {
1611
- var a, g, i, f, c = v || _.length, y = new Array(2 * c);
1611
+ var a, g, i, p, c = v || _.length, y = new Array(2 * c);
1612
1612
  for (a = g = 0; a < c; ) if ((i = _[a++]) < 128) y[g++] = i;
1613
- else if (4 < (f = h[i])) y[g++] = 65533, a += f - 1;
1613
+ else if (4 < (p = h[i])) y[g++] = 65533, a += p - 1;
1614
1614
  else {
1615
- for (i &= f === 2 ? 31 : f === 3 ? 15 : 7; 1 < f && a < c; ) i = i << 6 | 63 & _[a++], f--;
1616
- 1 < f ? y[g++] = 65533 : i < 65536 ? y[g++] = i : (i -= 65536, y[g++] = 55296 | i >> 10 & 1023, y[g++] = 56320 | 1023 & i);
1615
+ for (i &= p === 2 ? 31 : p === 3 ? 15 : 7; 1 < p && a < c; ) i = i << 6 | 63 & _[a++], p--;
1616
+ 1 < p ? y[g++] = 65533 : i < 65536 ? y[g++] = i : (i -= 65536, y[g++] = 55296 | i >> 10 & 1023, y[g++] = 56320 | 1023 & i);
1617
1617
  }
1618
1618
  return b(y, g);
1619
1619
  }, u.utf8border = function(_, v) {
@@ -1621,17 +1621,17 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1621
1621
  for ((v = v || _.length) > _.length && (v = _.length), a = v - 1; 0 <= a && (192 & _[a]) == 128; ) a--;
1622
1622
  return a < 0 || a === 0 ? v : a + h[_[a]] > v ? a : v;
1623
1623
  };
1624
- }, { "./common": 41 }], 43: [function(e, p, u) {
1625
- p.exports = function(s, o, n, h) {
1624
+ }, { "./common": 41 }], 43: [function(e, f, u) {
1625
+ f.exports = function(s, o, n, h) {
1626
1626
  for (var w = 65535 & s | 0, b = s >>> 16 & 65535 | 0, _ = 0; n !== 0; ) {
1627
1627
  for (n -= _ = 2e3 < n ? 2e3 : n; b = b + (w = w + o[h++] | 0) | 0, --_; ) ;
1628
1628
  w %= 65521, b %= 65521;
1629
1629
  }
1630
1630
  return w | b << 16 | 0;
1631
1631
  };
1632
- }, {}], 44: [function(e, p, u) {
1633
- p.exports = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 };
1634
- }, {}], 45: [function(e, p, u) {
1632
+ }, {}], 44: [function(e, f, u) {
1633
+ f.exports = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 };
1634
+ }, {}], 45: [function(e, f, u) {
1635
1635
  var s = function() {
1636
1636
  for (var o, n = [], h = 0; h < 256; h++) {
1637
1637
  o = h;
@@ -1640,14 +1640,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1640
1640
  }
1641
1641
  return n;
1642
1642
  }();
1643
- p.exports = function(o, n, h, w) {
1643
+ f.exports = function(o, n, h, w) {
1644
1644
  var b = s, _ = w + h;
1645
1645
  o ^= -1;
1646
1646
  for (var v = w; v < _; v++) o = o >>> 8 ^ b[255 & (o ^ n[v])];
1647
1647
  return -1 ^ o;
1648
1648
  };
1649
- }, {}], 46: [function(e, p, u) {
1650
- var s, o = e("../utils/common"), n = e("./trees"), h = e("./adler32"), w = e("./crc32"), b = e("./messages"), _ = 0, v = 4, a = 0, g = -2, i = -1, f = 4, c = 2, y = 8, x = 9, C = 286, E = 30, D = 19, P = 2 * C + 1, U = 15, T = 3, M = 258, X = M + T + 1, k = 42, R = 113, r = 1, B = 2, tt = 3, W = 4;
1649
+ }, {}], 46: [function(e, f, u) {
1650
+ var s, o = e("../utils/common"), n = e("./trees"), h = e("./adler32"), w = e("./crc32"), b = e("./messages"), _ = 0, v = 4, a = 0, g = -2, i = -1, p = 4, c = 2, y = 8, x = 9, C = 286, E = 30, D = 19, P = 2 * C + 1, U = 15, T = 3, H = 258, X = H + T + 1, k = 42, R = 113, r = 1, B = 2, tt = 3, W = 4;
1651
1651
  function et(t, F) {
1652
1652
  return t.msg = b[F], F;
1653
1653
  }
@@ -1671,7 +1671,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1671
1671
  t.pending_buf[t.pending++] = F >>> 8 & 255, t.pending_buf[t.pending++] = 255 & F;
1672
1672
  }
1673
1673
  function q(t, F) {
1674
- var O, m, d = t.max_chain_length, S = t.strstart, L = t.prev_length, N = t.nice_match, A = t.strstart > t.w_size - X ? t.strstart - (t.w_size - X) : 0, Z = t.window, K = t.w_mask, G = t.prev, Y = t.strstart + M, at = Z[S + L - 1], nt = Z[S + L];
1674
+ var O, m, d = t.max_chain_length, S = t.strstart, L = t.prev_length, N = t.nice_match, A = t.strstart > t.w_size - X ? t.strstart - (t.w_size - X) : 0, Z = t.window, K = t.w_mask, G = t.prev, Y = t.strstart + H, at = Z[S + L - 1], nt = Z[S + L];
1675
1675
  t.prev_length >= t.good_match && (d >>= 2), N > t.lookahead && (N = t.lookahead);
1676
1676
  do
1677
1677
  if (Z[(O = F) + L] === nt && Z[O + L - 1] === at && Z[O] === Z[S] && Z[++O] === Z[S + 1]) {
@@ -1679,7 +1679,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1679
1679
  do
1680
1680
  ;
1681
1681
  while (Z[++S] === Z[++O] && Z[++S] === Z[++O] && Z[++S] === Z[++O] && Z[++S] === Z[++O] && Z[++S] === Z[++O] && Z[++S] === Z[++O] && Z[++S] === Z[++O] && Z[++S] === Z[++O] && S < Y);
1682
- if (m = M - (Y - S), S = Y - M, L < m) {
1682
+ if (m = H - (Y - S), S = Y - H, L < m) {
1683
1683
  if (t.match_start = F, N <= (L = m)) break;
1684
1684
  at = Z[S + L - 1], nt = Z[S + L];
1685
1685
  }
@@ -1748,7 +1748,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1748
1748
  function gt(t, F, O, m, d, S) {
1749
1749
  if (!t) return g;
1750
1750
  var L = 1;
1751
- if (F === i && (F = 6), m < 0 ? (L = 0, m = -m) : 15 < m && (L = 2, m -= 16), d < 1 || x < d || O !== y || m < 8 || 15 < m || F < 0 || 9 < F || S < 0 || f < S) return et(t, g);
1751
+ if (F === i && (F = 6), m < 0 ? (L = 0, m = -m) : 15 < m && (L = 2, m -= 16), d < 1 || x < d || O !== y || m < 8 || 15 < m || F < 0 || 9 < F || S < 0 || p < S) return et(t, g);
1752
1752
  m === 8 && (m = 9);
1753
1753
  var N = new ut();
1754
1754
  return (t.state = N).strm = t, N.wrap = L, N.gzhead = null, N.w_bits = m, N.w_size = 1 << N.w_bits, N.w_mask = N.w_size - 1, N.hash_bits = d + 7, N.hash_size = 1 << N.hash_bits, N.hash_mask = N.hash_size - 1, N.hash_shift = ~~((N.hash_bits + T - 1) / T), N.window = new o.Buf8(2 * N.w_size), N.head = new o.Buf16(N.hash_size), N.prev = new o.Buf16(N.w_size), N.lit_bufsize = 1 << d + 6, N.pending_buf_size = 4 * N.lit_bufsize, N.pending_buf = new o.Buf8(N.pending_buf_size), N.d_buf = 1 * N.lit_bufsize, N.l_buf = 3 * N.lit_bufsize, N.level = F, N.strategy = S, N.method = O, _t(t);
@@ -1820,16 +1820,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1820
1820
  return A.insert = 0, Z === v ? (I(A, !0), A.strm.avail_out === 0 ? tt : W) : A.last_lit && (I(A, !1), A.strm.avail_out === 0) ? r : B;
1821
1821
  }(m, F) : m.strategy === 3 ? function(A, Z) {
1822
1822
  for (var K, G, Y, at, nt = A.window; ; ) {
1823
- if (A.lookahead <= M) {
1824
- if (ot(A), A.lookahead <= M && Z === _) return r;
1823
+ if (A.lookahead <= H) {
1824
+ if (ot(A), A.lookahead <= H && Z === _) return r;
1825
1825
  if (A.lookahead === 0) break;
1826
1826
  }
1827
1827
  if (A.match_length = 0, A.lookahead >= T && 0 < A.strstart && (G = nt[Y = A.strstart - 1]) === nt[++Y] && G === nt[++Y] && G === nt[++Y]) {
1828
- at = A.strstart + M;
1828
+ at = A.strstart + H;
1829
1829
  do
1830
1830
  ;
1831
1831
  while (G === nt[++Y] && G === nt[++Y] && G === nt[++Y] && G === nt[++Y] && G === nt[++Y] && G === nt[++Y] && G === nt[++Y] && G === nt[++Y] && Y < at);
1832
- A.match_length = M - (at - Y), A.match_length > A.lookahead && (A.match_length = A.lookahead);
1832
+ A.match_length = H - (at - Y), A.match_length > A.lookahead && (A.match_length = A.lookahead);
1833
1833
  }
1834
1834
  if (A.match_length >= T ? (K = n._tr_tally(A, 1, A.match_length - T), A.lookahead -= A.match_length, A.strstart += A.match_length, A.match_length = 0) : (K = n._tr_tally(A, 0, A.window[A.strstart]), A.lookahead--, A.strstart++), K && (I(A, !1), A.strm.avail_out === 0)) return r;
1835
1835
  }
@@ -1851,14 +1851,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1851
1851
  }
1852
1852
  return O.strstart += O.lookahead, O.block_start = O.strstart, O.insert = O.lookahead, O.lookahead = 0, O.match_length = O.prev_length = T - 1, O.match_available = 0, t.next_in = N, t.input = A, t.avail_in = L, O.wrap = S, a;
1853
1853
  }, u.deflateInfo = "pako deflate (from Nodeca project)";
1854
- }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(e, p, u) {
1855
- p.exports = function() {
1854
+ }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(e, f, u) {
1855
+ f.exports = function() {
1856
1856
  this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = !1;
1857
1857
  };
1858
- }, {}], 48: [function(e, p, u) {
1859
- p.exports = function(s, o) {
1860
- var n, h, w, b, _, v, a, g, i, f, c, y, x, C, E, D, P, U, T, M, X, k, R, r, B;
1861
- n = s.state, h = s.next_in, r = s.input, w = h + (s.avail_in - 5), b = s.next_out, B = s.output, _ = b - (o - s.avail_out), v = b + (s.avail_out - 257), a = n.dmax, g = n.wsize, i = n.whave, f = n.wnext, c = n.window, y = n.hold, x = n.bits, C = n.lencode, E = n.distcode, D = (1 << n.lenbits) - 1, P = (1 << n.distbits) - 1;
1858
+ }, {}], 48: [function(e, f, u) {
1859
+ f.exports = function(s, o) {
1860
+ var n, h, w, b, _, v, a, g, i, p, c, y, x, C, E, D, P, U, T, H, X, k, R, r, B;
1861
+ n = s.state, h = s.next_in, r = s.input, w = h + (s.avail_in - 5), b = s.next_out, B = s.output, _ = b - (o - s.avail_out), v = b + (s.avail_out - 257), a = n.dmax, g = n.wsize, i = n.whave, p = n.wnext, c = n.window, y = n.hold, x = n.bits, C = n.lencode, E = n.distcode, D = (1 << n.lenbits) - 1, P = (1 << n.distbits) - 1;
1862
1862
  t: do {
1863
1863
  x < 15 && (y += r[h++] << x, x += 8, y += r[h++] << x, x += 8), U = C[y & D];
1864
1864
  e: for (; ; ) {
@@ -1876,7 +1876,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1876
1876
  s.msg = "invalid literal/length code", n.mode = 30;
1877
1877
  break t;
1878
1878
  }
1879
- M = 65535 & U, (T &= 15) && (x < T && (y += r[h++] << x, x += 8), M += y & (1 << T) - 1, y >>>= T, x -= T), x < 15 && (y += r[h++] << x, x += 8, y += r[h++] << x, x += 8), U = E[y & P];
1879
+ H = 65535 & U, (T &= 15) && (x < T && (y += r[h++] << x, x += 8), H += y & (1 << T) - 1, y >>>= T, x -= T), x < 15 && (y += r[h++] << x, x += 8, y += r[h++] << x, x += 8), U = E[y & P];
1880
1880
  r: for (; ; ) {
1881
1881
  if (y >>>= T = U >>> 24, x -= T, !(16 & (T = U >>> 16 & 255))) {
1882
1882
  if (!(64 & T)) {
@@ -1895,28 +1895,28 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1895
1895
  s.msg = "invalid distance too far back", n.mode = 30;
1896
1896
  break t;
1897
1897
  }
1898
- if (R = c, (k = 0) === f) {
1899
- if (k += g - T, T < M) {
1900
- for (M -= T; B[b++] = c[k++], --T; ) ;
1898
+ if (R = c, (k = 0) === p) {
1899
+ if (k += g - T, T < H) {
1900
+ for (H -= T; B[b++] = c[k++], --T; ) ;
1901
1901
  k = b - X, R = B;
1902
1902
  }
1903
- } else if (f < T) {
1904
- if (k += g + f - T, (T -= f) < M) {
1905
- for (M -= T; B[b++] = c[k++], --T; ) ;
1906
- if (k = 0, f < M) {
1907
- for (M -= T = f; B[b++] = c[k++], --T; ) ;
1903
+ } else if (p < T) {
1904
+ if (k += g + p - T, (T -= p) < H) {
1905
+ for (H -= T; B[b++] = c[k++], --T; ) ;
1906
+ if (k = 0, p < H) {
1907
+ for (H -= T = p; B[b++] = c[k++], --T; ) ;
1908
1908
  k = b - X, R = B;
1909
1909
  }
1910
1910
  }
1911
- } else if (k += f - T, T < M) {
1912
- for (M -= T; B[b++] = c[k++], --T; ) ;
1911
+ } else if (k += p - T, T < H) {
1912
+ for (H -= T; B[b++] = c[k++], --T; ) ;
1913
1913
  k = b - X, R = B;
1914
1914
  }
1915
- for (; 2 < M; ) B[b++] = R[k++], B[b++] = R[k++], B[b++] = R[k++], M -= 3;
1916
- M && (B[b++] = R[k++], 1 < M && (B[b++] = R[k++]));
1915
+ for (; 2 < H; ) B[b++] = R[k++], B[b++] = R[k++], B[b++] = R[k++], H -= 3;
1916
+ H && (B[b++] = R[k++], 1 < H && (B[b++] = R[k++]));
1917
1917
  } else {
1918
- for (k = b - X; B[b++] = B[k++], B[b++] = B[k++], B[b++] = B[k++], 2 < (M -= 3); ) ;
1919
- M && (B[b++] = B[k++], 1 < M && (B[b++] = B[k++]));
1918
+ for (k = b - X; B[b++] = B[k++], B[b++] = B[k++], B[b++] = B[k++], 2 < (H -= 3); ) ;
1919
+ H && (B[b++] = B[k++], 1 < H && (B[b++] = B[k++]));
1920
1920
  }
1921
1921
  break;
1922
1922
  }
@@ -1924,10 +1924,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1924
1924
  break;
1925
1925
  }
1926
1926
  } while (h < w && b < v);
1927
- h -= M = x >> 3, y &= (1 << (x -= M << 3)) - 1, s.next_in = h, s.next_out = b, s.avail_in = h < w ? w - h + 5 : 5 - (h - w), s.avail_out = b < v ? v - b + 257 : 257 - (b - v), n.hold = y, n.bits = x;
1927
+ h -= H = x >> 3, y &= (1 << (x -= H << 3)) - 1, s.next_in = h, s.next_out = b, s.avail_in = h < w ? w - h + 5 : 5 - (h - w), s.avail_out = b < v ? v - b + 257 : 257 - (b - v), n.hold = y, n.bits = x;
1928
1928
  };
1929
- }, {}], 49: [function(e, p, u) {
1930
- var s = e("../utils/common"), o = e("./adler32"), n = e("./crc32"), h = e("./inffast"), w = e("./inftrees"), b = 1, _ = 2, v = 0, a = -2, g = 1, i = 852, f = 592;
1929
+ }, {}], 49: [function(e, f, u) {
1930
+ var s = e("../utils/common"), o = e("./adler32"), n = e("./crc32"), h = e("./inffast"), w = e("./inftrees"), b = 1, _ = 2, v = 0, a = -2, g = 1, i = 852, p = 592;
1931
1931
  function c(k) {
1932
1932
  return (k >>> 24 & 255) + (k >>> 8 & 65280) + ((65280 & k) << 8) + ((255 & k) << 24);
1933
1933
  }
@@ -1936,7 +1936,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1936
1936
  }
1937
1937
  function x(k) {
1938
1938
  var R;
1939
- return k && k.state ? (R = k.state, k.total_in = k.total_out = R.total = 0, k.msg = "", R.wrap && (k.adler = 1 & R.wrap), R.mode = g, R.last = 0, R.havedict = 0, R.dmax = 32768, R.head = null, R.hold = 0, R.bits = 0, R.lencode = R.lendyn = new s.Buf32(i), R.distcode = R.distdyn = new s.Buf32(f), R.sane = 1, R.back = -1, v) : a;
1939
+ return k && k.state ? (R = k.state, k.total_in = k.total_out = R.total = 0, k.msg = "", R.wrap && (k.adler = 1 & R.wrap), R.mode = g, R.last = 0, R.havedict = 0, R.dmax = 32768, R.head = null, R.hold = 0, R.bits = 0, R.lencode = R.lendyn = new s.Buf32(i), R.distcode = R.distdyn = new s.Buf32(p), R.sane = 1, R.back = -1, v) : a;
1940
1940
  }
1941
1941
  function C(k) {
1942
1942
  var R;
@@ -1951,7 +1951,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1951
1951
  return k ? (B = new y(), (k.state = B).window = null, (r = E(k, R)) !== v && (k.state = null), r) : a;
1952
1952
  }
1953
1953
  var P, U, T = !0;
1954
- function M(k) {
1954
+ function H(k) {
1955
1955
  if (T) {
1956
1956
  var R;
1957
1957
  for (P = new s.Buf32(512), U = new s.Buf32(32), R = 0; R < 144; ) k.lens[R++] = 8;
@@ -2093,7 +2093,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2093
2093
  r.mode = 14;
2094
2094
  break;
2095
2095
  case 1:
2096
- if (M(r), r.mode = 20, R !== 6) break;
2096
+ if (H(r), r.mode = 20, R !== 6) break;
2097
2097
  z >>>= 2, I -= 2;
2098
2098
  break t;
2099
2099
  case 2:
@@ -2336,10 +2336,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2336
2336
  var r, B = R.length;
2337
2337
  return k && k.state ? (r = k.state).wrap !== 0 && r.mode !== 11 ? a : r.mode === 11 && o(1, R, B, 0) !== r.check ? -3 : X(k, R, B, B) ? (r.mode = 31, -4) : (r.havedict = 1, v) : a;
2338
2338
  }, u.inflateInfo = "pako inflate (from Nodeca project)";
2339
- }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(e, p, u) {
2339
+ }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(e, f, u) {
2340
2340
  var s = e("../utils/common"), o = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], n = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], h = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], w = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
2341
- p.exports = function(b, _, v, a, g, i, f, c) {
2342
- var y, x, C, E, D, P, U, T, M, X = c.bits, k = 0, R = 0, r = 0, B = 0, tt = 0, W = 0, et = 0, j = 0, Q = 0, z = 0, I = null, J = 0, V = new s.Buf16(16), q = new s.Buf16(16), ot = null, dt = 0;
2341
+ f.exports = function(b, _, v, a, g, i, p, c) {
2342
+ var y, x, C, E, D, P, U, T, H, X = c.bits, k = 0, R = 0, r = 0, B = 0, tt = 0, W = 0, et = 0, j = 0, Q = 0, z = 0, I = null, J = 0, V = new s.Buf16(16), q = new s.Buf16(16), ot = null, dt = 0;
2343
2343
  for (k = 0; k <= 15; k++) V[k] = 0;
2344
2344
  for (R = 0; R < a; R++) V[_[v + R]]++;
2345
2345
  for (tt = X, B = 15; 1 <= B && V[B] === 0; B--) ;
@@ -2348,14 +2348,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2348
2348
  for (tt < r && (tt = r), k = j = 1; k <= 15; k++) if (j <<= 1, (j -= V[k]) < 0) return -1;
2349
2349
  if (0 < j && (b === 0 || B !== 1)) return -1;
2350
2350
  for (q[1] = 0, k = 1; k < 15; k++) q[k + 1] = q[k] + V[k];
2351
- for (R = 0; R < a; R++) _[v + R] !== 0 && (f[q[_[v + R]]++] = R);
2352
- if (P = b === 0 ? (I = ot = f, 19) : b === 1 ? (I = o, J -= 257, ot = n, dt -= 257, 256) : (I = h, ot = w, -1), k = r, D = i, et = R = z = 0, C = -1, E = (Q = 1 << (W = tt)) - 1, b === 1 && 852 < Q || b === 2 && 592 < Q) return 1;
2351
+ for (R = 0; R < a; R++) _[v + R] !== 0 && (p[q[_[v + R]]++] = R);
2352
+ if (P = b === 0 ? (I = ot = p, 19) : b === 1 ? (I = o, J -= 257, ot = n, dt -= 257, 256) : (I = h, ot = w, -1), k = r, D = i, et = R = z = 0, C = -1, E = (Q = 1 << (W = tt)) - 1, b === 1 && 852 < Q || b === 2 && 592 < Q) return 1;
2353
2353
  for (; ; ) {
2354
- for (U = k - et, M = f[R] < P ? (T = 0, f[R]) : f[R] > P ? (T = ot[dt + f[R]], I[J + f[R]]) : (T = 96, 0), y = 1 << k - et, r = x = 1 << W; g[D + (z >> et) + (x -= y)] = U << 24 | T << 16 | M | 0, x !== 0; ) ;
2354
+ for (U = k - et, H = p[R] < P ? (T = 0, p[R]) : p[R] > P ? (T = ot[dt + p[R]], I[J + p[R]]) : (T = 96, 0), y = 1 << k - et, r = x = 1 << W; g[D + (z >> et) + (x -= y)] = U << 24 | T << 16 | H | 0, x !== 0; ) ;
2355
2355
  for (y = 1 << k - 1; z & y; ) y >>= 1;
2356
2356
  if (y !== 0 ? (z &= y - 1, z += y) : z = 0, R++, --V[k] == 0) {
2357
2357
  if (k === B) break;
2358
- k = _[v + f[R]];
2358
+ k = _[v + p[R]];
2359
2359
  }
2360
2360
  if (tt < k && (z & E) !== C) {
2361
2361
  for (et === 0 && (et = tt), D += r, j = 1 << (W = k - et); W + et < B && !((j -= V[W + et]) <= 0); ) W++, j <<= 1;
@@ -2365,14 +2365,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2365
2365
  }
2366
2366
  return z !== 0 && (g[D + z] = k - et << 24 | 64 << 16 | 0), c.bits = tt, 0;
2367
2367
  };
2368
- }, { "../utils/common": 41 }], 51: [function(e, p, u) {
2369
- p.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" };
2370
- }, {}], 52: [function(e, p, u) {
2368
+ }, { "../utils/common": 41 }], 51: [function(e, f, u) {
2369
+ f.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" };
2370
+ }, {}], 52: [function(e, f, u) {
2371
2371
  var s = e("../utils/common"), o = 0, n = 1;
2372
2372
  function h(d) {
2373
2373
  for (var S = d.length; 0 <= --S; ) d[S] = 0;
2374
2374
  }
2375
- var w = 0, b = 29, _ = 256, v = _ + 1 + b, a = 30, g = 19, i = 2 * v + 1, f = 15, c = 16, y = 7, x = 256, C = 16, E = 17, D = 18, P = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], U = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], T = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], M = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], X = new Array(2 * (v + 2));
2375
+ var w = 0, b = 29, _ = 256, v = _ + 1 + b, a = 30, g = 19, i = 2 * v + 1, p = 15, c = 16, y = 7, x = 256, C = 16, E = 17, D = 18, P = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], U = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], T = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], H = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], X = new Array(2 * (v + 2));
2376
2376
  h(X);
2377
2377
  var k = new Array(2 * a);
2378
2378
  h(k);
@@ -2406,8 +2406,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2406
2406
  return L >>> 1;
2407
2407
  }
2408
2408
  function dt(d, S, L) {
2409
- var N, A, Z = new Array(f + 1), K = 0;
2410
- for (N = 1; N <= f; N++) Z[N] = K = K + L[N - 1] << 1;
2409
+ var N, A, Z = new Array(p + 1), K = 0;
2410
+ for (N = 1; N <= p; N++) Z[N] = K = K + L[N - 1] << 1;
2411
2411
  for (A = 0; A <= S; A++) {
2412
2412
  var G = d[2 * A + 1];
2413
2413
  G !== 0 && (d[2 * A] = ot(Z[G]++, G));
@@ -2444,7 +2444,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2444
2444
  for (A = Y; L = d.heap[1], d.heap[1] = d.heap[d.heap_len--], lt(d, Z, 1), N = d.heap[1], d.heap[--d.heap_max] = L, d.heap[--d.heap_max] = N, Z[2 * A] = Z[2 * L] + Z[2 * N], d.depth[A] = (d.depth[L] >= d.depth[N] ? d.depth[L] : d.depth[N]) + 1, Z[2 * L + 1] = Z[2 * N + 1] = A, d.heap[1] = A++, lt(d, Z, 1), 2 <= d.heap_len; ) ;
2445
2445
  d.heap[--d.heap_max] = d.heap[1], function(nt, mt) {
2446
2446
  var xt, yt, St, ht, At, Dt, bt = mt.dyn_tree, Bt = mt.max_code, Ut = mt.stat_desc.static_tree, Wt = mt.stat_desc.has_stree, jt = mt.stat_desc.extra_bits, Lt = mt.stat_desc.extra_base, Et = mt.stat_desc.max_length, It = 0;
2447
- for (ht = 0; ht <= f; ht++) nt.bl_count[ht] = 0;
2447
+ for (ht = 0; ht <= p; ht++) nt.bl_count[ht] = 0;
2448
2448
  for (bt[2 * nt.heap[nt.heap_max] + 1] = 0, xt = nt.heap_max + 1; xt < i; xt++) Et < (ht = bt[2 * bt[2 * (yt = nt.heap[xt]) + 1] + 1] + 1) && (ht = Et, It++), bt[2 * yt + 1] = ht, Bt < yt || (nt.bl_count[ht]++, At = 0, Lt <= yt && (At = jt[yt - Lt]), Dt = bt[2 * yt], nt.opt_len += Dt * (ht + At), Wt && (nt.static_len += Dt * (Ut[2 * yt + 1] + At)));
2449
2449
  if (It !== 0) {
2450
2450
  do {
@@ -2476,17 +2476,17 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2476
2476
  }
2477
2477
  u._tr_init = function(d) {
2478
2478
  O || (function() {
2479
- var S, L, N, A, Z, K = new Array(f + 1);
2479
+ var S, L, N, A, Z, K = new Array(p + 1);
2480
2480
  for (A = N = 0; A < b - 1; A++) for (B[A] = N, S = 0; S < 1 << P[A]; S++) r[N++] = A;
2481
2481
  for (r[N - 1] = A, A = Z = 0; A < 16; A++) for (j[A] = Z, S = 0; S < 1 << U[A]; S++) R[Z++] = A;
2482
2482
  for (Z >>= 7; A < a; A++) for (j[A] = Z << 7, S = 0; S < 1 << U[A] - 7; S++) R[256 + Z++] = A;
2483
- for (L = 0; L <= f; L++) K[L] = 0;
2483
+ for (L = 0; L <= p; L++) K[L] = 0;
2484
2484
  for (S = 0; S <= 143; ) X[2 * S + 1] = 8, S++, K[8]++;
2485
2485
  for (; S <= 255; ) X[2 * S + 1] = 9, S++, K[9]++;
2486
2486
  for (; S <= 279; ) X[2 * S + 1] = 7, S++, K[7]++;
2487
2487
  for (; S <= 287; ) X[2 * S + 1] = 8, S++, K[8]++;
2488
2488
  for (dt(X, v + 1, K), S = 0; S < a; S++) k[2 * S + 1] = 5, k[2 * S] = ot(S, 5);
2489
- tt = new Q(X, P, _ + 1, v, f), W = new Q(k, U, 0, a, f), et = new Q(new Array(0), T, 0, g, y);
2489
+ tt = new Q(X, P, _ + 1, v, p), W = new Q(k, U, 0, a, p), et = new Q(new Array(0), T, 0, g, y);
2490
2490
  }(), O = !0), d.l_desc = new z(d.dyn_ltree, tt), d.d_desc = new z(d.dyn_dtree, W), d.bl_desc = new z(d.bl_tree, et), d.bi_buf = 0, d.bi_valid = 0, rt(d);
2491
2491
  }, u._tr_stored_block = m, u._tr_flush_block = function(d, S, L, N) {
2492
2492
  var A, Z, K = 0;
@@ -2498,11 +2498,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2498
2498
  return o;
2499
2499
  }(d)), gt(d, d.l_desc), gt(d, d.d_desc), K = function(G) {
2500
2500
  var Y;
2501
- for (t(G, G.dyn_ltree, G.l_desc.max_code), t(G, G.dyn_dtree, G.d_desc.max_code), gt(G, G.bl_desc), Y = g - 1; 3 <= Y && G.bl_tree[2 * M[Y] + 1] === 0; Y--) ;
2501
+ for (t(G, G.dyn_ltree, G.l_desc.max_code), t(G, G.dyn_dtree, G.d_desc.max_code), gt(G, G.bl_desc), Y = g - 1; 3 <= Y && G.bl_tree[2 * H[Y] + 1] === 0; Y--) ;
2502
2502
  return G.opt_len += 3 * (Y + 1) + 5 + 5 + 4, Y;
2503
2503
  }(d), A = d.opt_len + 3 + 7 >>> 3, (Z = d.static_len + 3 + 7 >>> 3) <= A && (A = Z)) : A = Z = L + 5, L + 4 <= A && S !== -1 ? m(d, S, L, N) : d.strategy === 4 || Z === A ? (V(d, 2 + (N ? 1 : 0), 3), _t(d, X, k)) : (V(d, 4 + (N ? 1 : 0), 3), function(G, Y, at, nt) {
2504
2504
  var mt;
2505
- for (V(G, Y - 257, 5), V(G, at - 1, 5), V(G, nt - 4, 4), mt = 0; mt < nt; mt++) V(G, G.bl_tree[2 * M[mt] + 1], 3);
2505
+ for (V(G, Y - 257, 5), V(G, at - 1, 5), V(G, nt - 4, 4), mt = 0; mt < nt; mt++) V(G, G.bl_tree[2 * H[mt] + 1], 3);
2506
2506
  F(G, G.dyn_ltree, Y - 1), F(G, G.dyn_dtree, at - 1);
2507
2507
  }(d, d.l_desc.max_code + 1, d.d_desc.max_code + 1, K + 1), _t(d, d.dyn_ltree, d.dyn_dtree)), rt(d), N && st(d);
2508
2508
  }, u._tr_tally = function(d, S, L) {
@@ -2512,16 +2512,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2512
2512
  S.bi_valid === 16 ? (J(S, S.bi_buf), S.bi_buf = 0, S.bi_valid = 0) : 8 <= S.bi_valid && (S.pending_buf[S.pending++] = 255 & S.bi_buf, S.bi_buf >>= 8, S.bi_valid -= 8);
2513
2513
  }(d);
2514
2514
  };
2515
- }, { "../utils/common": 41 }], 53: [function(e, p, u) {
2516
- p.exports = function() {
2515
+ }, { "../utils/common": 41 }], 53: [function(e, f, u) {
2516
+ f.exports = function() {
2517
2517
  this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
2518
2518
  };
2519
- }, {}], 54: [function(e, p, u) {
2519
+ }, {}], 54: [function(e, f, u) {
2520
2520
  (function(s) {
2521
2521
  (function(o, n) {
2522
2522
  if (!o.setImmediate) {
2523
- var h, w, b, _, v = 1, a = {}, g = !1, i = o.document, f = Object.getPrototypeOf && Object.getPrototypeOf(o);
2524
- f = f && f.setTimeout ? f : o, h = {}.toString.call(o.process) === "[object process]" ? function(C) {
2523
+ var h, w, b, _, v = 1, a = {}, g = !1, i = o.document, p = Object.getPrototypeOf && Object.getPrototypeOf(o);
2524
+ p = p && p.setTimeout ? p : o, h = {}.toString.call(o.process) === "[object process]" ? function(C) {
2525
2525
  process.nextTick(function() {
2526
2526
  y(C);
2527
2527
  });
@@ -2545,12 +2545,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2545
2545
  }, w.appendChild(E);
2546
2546
  }) : function(C) {
2547
2547
  setTimeout(y, 0, C);
2548
- }, f.setImmediate = function(C) {
2548
+ }, p.setImmediate = function(C) {
2549
2549
  typeof C != "function" && (C = new Function("" + C));
2550
2550
  for (var E = new Array(arguments.length - 1), D = 0; D < E.length; D++) E[D] = arguments[D + 1];
2551
2551
  var P = { callback: C, args: E };
2552
2552
  return a[v] = P, h(v), v++;
2553
- }, f.clearImmediate = c;
2553
+ }, p.clearImmediate = c;
2554
2554
  }
2555
2555
  function c(C) {
2556
2556
  delete a[C];
@@ -2597,7 +2597,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2597
2597
  })(Nt);
2598
2598
  var Gt = Nt.exports;
2599
2599
  const qt = /* @__PURE__ */ Ht(Gt), ct = class ct {
2600
- constructor(l, e, p) {
2600
+ constructor(l, e, f) {
2601
2601
  $(this, "idref");
2602
2602
  $(this, "href");
2603
2603
  $(this, "cfi");
@@ -2612,7 +2612,7 @@ const qt = /* @__PURE__ */ Ht(Gt), ct = class ct {
2612
2612
  $(this, "media_type");
2613
2613
  $(this, "index");
2614
2614
  $(this, "spine");
2615
- this.idref = l.idref, this.href = l.href, this.cfi = l.cfi, this.linear = l.linear ? l.linear.toLowerCase() : "yes", this.page_spread = l.page_spread, this.index = e, this.spine = p, this.rendition_viewport = l.rendition_viewport, this.rendition_spread = l.rendition_spread, this.rendition_layout = l.rendition_layout, this.rendition_flow = l.rendition_flow, this.media_type = l.media_type, this.media_overlay_id = l.media_overlay_id, this.validateSpread();
2615
+ this.idref = l.idref, this.href = l.href, this.cfi = l.cfi, this.linear = l.linear ? l.linear.toLowerCase() : "yes", this.page_spread = l.page_spread, this.index = e, this.spine = f, this.rendition_viewport = l.rendition_viewport, this.rendition_spread = l.rendition_spread, this.rendition_layout = l.rendition_layout, this.rendition_flow = l.rendition_flow, this.media_type = l.media_type, this.media_overlay_id = l.media_overlay_id, this.validateSpread();
2616
2616
  }
2617
2617
  validateSpread() {
2618
2618
  this.page_spread && this.page_spread !== ct.SPREAD_LEFT && this.page_spread !== ct.SPREAD_RIGHT && this.page_spread !== ct.SPREAD_CENTER && console.warn(`${this.page_spread} is not a recognized spread type`);
@@ -2642,8 +2642,8 @@ class $t {
2642
2642
  $(this, "items", []);
2643
2643
  $(this, "direction", "ltr");
2644
2644
  $(this, "handleLinear", !0);
2645
- this.package = l, e && (this.direction = e.direction || "ltr", e.items && e.items.forEach((p, u) => {
2646
- this.items.push(new Ft(p, u, this));
2645
+ this.package = l, e && (this.direction = e.direction || "ltr", e.items && e.items.forEach((f, u) => {
2646
+ this.items.push(new Ft(f, u, this));
2647
2647
  }));
2648
2648
  }
2649
2649
  isValidLinearItem(l) {
@@ -2731,9 +2731,9 @@ class Kt {
2731
2731
  if (this.zip) {
2732
2732
  let e = this.zip.file(l);
2733
2733
  if (e) return await e.async("string");
2734
- const p = this.resolveRelativeUrl(l), u = p.indexOf(".epub");
2734
+ const f = this.resolveRelativeUrl(l), u = f.indexOf(".epub");
2735
2735
  if (u !== -1) {
2736
- let s = p.substring(u + 5);
2736
+ let s = f.substring(u + 5);
2737
2737
  if (s.startsWith("/") && (s = s.substring(1)), e = this.zip.file(s), e) return await e.async("string");
2738
2738
  }
2739
2739
  if (l.startsWith("/")) {
@@ -2742,60 +2742,60 @@ class Kt {
2742
2742
  }
2743
2743
  return console.warn("File not found in zip:", l), null;
2744
2744
  } else {
2745
- const e = this.resolveRelativeUrl(l), p = await fetch(e);
2746
- return p.ok ? await p.text() : null;
2745
+ const e = this.resolveRelativeUrl(l), f = await fetch(e);
2746
+ return f.ok ? await f.text() : null;
2747
2747
  }
2748
2748
  }
2749
2749
  async loadBlob(l) {
2750
2750
  if (this.zip) {
2751
2751
  let e = this.zip.file(l);
2752
2752
  if (!e) {
2753
- const p = this.resolveRelativeUrl(l), u = p.indexOf(".epub");
2753
+ const f = this.resolveRelativeUrl(l), u = f.indexOf(".epub");
2754
2754
  if (u !== -1) {
2755
- let s = p.substring(u + 5);
2755
+ let s = f.substring(u + 5);
2756
2756
  s.startsWith("/") && (s = s.substring(1)), e = this.zip.file(s);
2757
2757
  }
2758
2758
  }
2759
2759
  return !e && l.startsWith("/") && (e = this.zip.file(l.substring(1))), e ? await e.async("blob") : null;
2760
2760
  } else {
2761
- const e = this.resolveRelativeUrl(l), p = await fetch(e);
2762
- return p.ok ? await p.blob() : null;
2761
+ const e = this.resolveRelativeUrl(l), f = await fetch(e);
2762
+ return f.ok ? await f.blob() : null;
2763
2763
  }
2764
2764
  }
2765
2765
  }
2766
2766
  class Rt {
2767
2767
  static async load(l) {
2768
- let e = null, p = async (_) => {
2768
+ let e = null, f = async (_) => {
2769
2769
  const v = await fetch(l + (l.endsWith("/") ? "" : "/") + _);
2770
2770
  return v.ok ? v.text() : null;
2771
2771
  };
2772
2772
  if (l.toLowerCase().endsWith(".epub"))
2773
2773
  try {
2774
2774
  const v = await (await fetch(l)).arrayBuffer();
2775
- e = await qt.loadAsync(v), p = async (g) => {
2775
+ e = await qt.loadAsync(v), f = async (g) => {
2776
2776
  const i = e == null ? void 0 : e.file(g);
2777
2777
  return i ? await i.async("string") : null;
2778
2778
  };
2779
2779
  } catch (_) {
2780
2780
  console.warn("Retrying as unzipped folder...", _);
2781
2781
  }
2782
- const u = await p("META-INF/container.xml");
2782
+ const u = await f("META-INF/container.xml");
2783
2783
  if (!u) throw new Error("Could not find META-INF/container.xml");
2784
2784
  const s = new DOMParser(), n = s.parseFromString(u, "application/xml").querySelector("rootfile");
2785
2785
  if (!n) throw new Error("No rootfile in container.xml");
2786
2786
  const h = n.getAttribute("full-path");
2787
2787
  if (!h) throw new Error("No full-path in rootfile");
2788
- const w = await p(h);
2788
+ const w = await f(h);
2789
2789
  if (!w) throw new Error("Could not find OPF: " + h);
2790
2790
  const b = s.parseFromString(w, "application/xml");
2791
- return await Rt.parseOpf(b, l, h, p, e);
2791
+ return await Rt.parseOpf(b, l, h, f, e);
2792
2792
  }
2793
- static async parseOpf(l, e, p, u, s) {
2794
- var f, c, y, x, C, E;
2793
+ static async parseOpf(l, e, f, u, s) {
2794
+ var p, c, y, x, C, E;
2795
2795
  const o = l.querySelector("metadata"), n = l.querySelector("manifest"), h = l.querySelector("spine");
2796
2796
  if (!o || !n || !h) throw new Error("Invalid OPF");
2797
2797
  const w = {
2798
- title: ((f = o.querySelector("title")) == null ? void 0 : f.textContent) || "Unknown Title",
2798
+ title: ((p = o.querySelector("title")) == null ? void 0 : p.textContent) || "Unknown Title",
2799
2799
  creator: ((c = o.querySelector("creator")) == null ? void 0 : c.textContent) || "",
2800
2800
  language: ((y = o.querySelector("language")) == null ? void 0 : y.textContent) || "",
2801
2801
  identifier: ((x = o.querySelector("identifier")) == null ? void 0 : x.textContent) || "",
@@ -2805,7 +2805,7 @@ class Rt {
2805
2805
  const P = D.getAttribute("id"), U = D.getAttribute("href");
2806
2806
  P && U && (b[P] = U);
2807
2807
  });
2808
- const _ = [], v = p.substring(0, p.lastIndexOf("/") + 1), a = e + v;
2808
+ const _ = [], v = f.substring(0, f.lastIndexOf("/") + 1), a = e + v;
2809
2809
  h.querySelectorAll("itemref").forEach((D) => {
2810
2810
  const P = D.getAttribute("idref");
2811
2811
  P && b[P] && _.push({
@@ -2818,7 +2818,7 @@ class Rt {
2818
2818
  let g = [];
2819
2819
  const i = h.getAttribute("toc");
2820
2820
  if (i && b[i]) {
2821
- const D = b[i], U = p.substring(0, p.lastIndexOf("/") + 1) + D;
2821
+ const D = b[i], U = f.substring(0, f.lastIndexOf("/") + 1) + D;
2822
2822
  try {
2823
2823
  const T = await u(U);
2824
2824
  if (T) {
@@ -2844,17 +2844,17 @@ class Rt {
2844
2844
  static parseNcx(l) {
2845
2845
  const e = l.querySelector("navMap");
2846
2846
  if (!e) return [];
2847
- const p = (u) => {
2847
+ const f = (u) => {
2848
2848
  const s = [];
2849
2849
  return Array.from(u.children).forEach((o) => {
2850
2850
  var n, h;
2851
2851
  if (o.tagName.toLowerCase() === "navpoint") {
2852
- const w = ((n = o.querySelector("navLabel > text")) == null ? void 0 : n.textContent) || "Untitled", b = ((h = o.querySelector("content")) == null ? void 0 : h.getAttribute("src")) || "", _ = p(o);
2852
+ const w = ((n = o.querySelector("navLabel > text")) == null ? void 0 : n.textContent) || "Untitled", b = ((h = o.querySelector("content")) == null ? void 0 : h.getAttribute("src")) || "", _ = f(o);
2853
2853
  s.push({ name: w, Id_link: b, sub: _ });
2854
2854
  }
2855
2855
  }), s;
2856
2856
  };
2857
- return p(e);
2857
+ return f(e);
2858
2858
  }
2859
2859
  }
2860
2860
  class Yt {
@@ -2886,12 +2886,12 @@ class Yt {
2886
2886
  let l = null;
2887
2887
  const e = this.currentSettings.scroll !== "scroll-continuous";
2888
2888
  if (e && this.iframe.contentDocument && (l = this.getVisibleElement()), this.updatePagination(this.iframe), l ? this.scrollToElement(l) : e && this.scrollToPage(this.currentPageIndex), this.currentSettings.scroll === "scroll-continuous" && this.isSingleImageMode) {
2889
- const p = this.container.clientHeight, u = this.container.clientWidth;
2890
- if (this.iframe.style.height = `${p}px`, this.iframe.contentDocument) {
2889
+ const f = this.container.clientHeight, u = this.container.clientWidth;
2890
+ if (this.iframe.style.height = `${f}px`, this.iframe.contentDocument) {
2891
2891
  const s = this.iframe.contentDocument.getElementsByTagName("svg");
2892
2892
  if (s.length > 0) {
2893
2893
  const n = s[0];
2894
- n.style.height = `${p}px`, n.style.width = `${u}px`, n.style.maxHeight = "100%", n.style.maxWidth = "100%";
2894
+ n.style.height = `${f}px`, n.style.width = `${u}px`, n.style.maxHeight = "100%", n.style.maxWidth = "100%";
2895
2895
  }
2896
2896
  const o = this.iframe.contentDocument.getElementsByTagName("img");
2897
2897
  if (o.length > 0) {
@@ -2899,7 +2899,7 @@ class Yt {
2899
2899
  n.style.maxHeight = "100%", n.style.maxWidth = "100%";
2900
2900
  }
2901
2901
  }
2902
- console.log("Syncing Single Image Height:", p);
2902
+ console.log("Syncing Single Image Height:", f);
2903
2903
  }
2904
2904
  }
2905
2905
  openBook(l) {
@@ -2929,8 +2929,8 @@ class Yt {
2929
2929
  }
2930
2930
  async openSpineItem(l, e = !1) {
2931
2931
  e || (this.internalWrapper.innerHTML = "", this.frames = [], this.iframe = void 0);
2932
- const p = document.createElement("iframe");
2933
- if (p.style.width = "100%", p.style.border = "none", this.currentSettings.scroll === "scroll-continuous" ? (p.style.height = "100vh", p.scrolling = "no", this.container.style.overflowY = "auto") : (p.style.height = "100%", this.container.style.overflowY = "hidden"), this.internalWrapper.appendChild(p), this.frames.push({ item: l, element: p }), e || (this.iframe = p), this.epubPackage) {
2932
+ const f = document.createElement("iframe");
2933
+ if (f.style.width = "100%", f.style.border = "none", this.currentSettings.scroll === "scroll-continuous" ? (f.style.height = "100vh", f.scrolling = "no", this.container.style.overflowY = "auto") : (f.style.height = "100%", this.container.style.overflowY = "hidden"), this.internalWrapper.appendChild(f), this.frames.push({ item: l, element: f }), e || (this.iframe = f), this.epubPackage) {
2934
2934
  let u = null;
2935
2935
  if (l.media_type && l.media_type.startsWith("image/")) {
2936
2936
  const s = await this.epubPackage.loadBlob(l.href);
@@ -2947,15 +2947,15 @@ class Yt {
2947
2947
  </body></html>`);
2948
2948
  } else
2949
2949
  u = await this.epubPackage.loadFile(l.href), u && this.epubPackage.zip && (u = await this.injectResources(u, l.href));
2950
- u ? (p.srcdoc = u, p.onload = () => {
2951
- this.initFrameContent(p);
2950
+ u ? (f.srcdoc = u, f.onload = () => {
2951
+ this.initFrameContent(f);
2952
2952
  }, console.log(`Loading spine item: ${l.href}`), e || (this.currentItem = l)) : console.error("Failed to load content for", l.href);
2953
2953
  }
2954
2954
  }
2955
2955
  onContainerScroll() {
2956
2956
  if (this.currentSettings.scroll !== "scroll-continuous" || this.isLoadingNext) return;
2957
- const { scrollTop: l, scrollHeight: e, clientHeight: p } = this.container;
2958
- l + p > e - 500 && this.loadNextChapter();
2957
+ const { scrollTop: l, scrollHeight: e, clientHeight: f } = this.container;
2958
+ l + f > e - 500 && this.loadNextChapter();
2959
2959
  }
2960
2960
  async loadNextChapter() {
2961
2961
  if (!this.epubPackage || !this.frames.length) return;
@@ -2964,7 +2964,7 @@ class Yt {
2964
2964
  }
2965
2965
  initFrameContent(l) {
2966
2966
  if (!l || !l.contentDocument) return;
2967
- const e = l.contentDocument, p = e.documentElement, u = e.body;
2967
+ const e = l.contentDocument, f = e.documentElement, u = e.body;
2968
2968
  u.addEventListener("click", (b) => {
2969
2969
  let _ = b.target;
2970
2970
  for (; _ && _ !== u && _.tagName !== "A"; )
@@ -2977,7 +2977,7 @@ class Yt {
2977
2977
  const s = u.getElementsByTagName("img"), o = u.getElementsByTagName("svg"), h = (u.textContent || "").replace(/\s/g, "").length < 50;
2978
2978
  let w = !1;
2979
2979
  if (s.length === 1 && o.length === 0 && h || o.length === 1 && s.length === 0 && h) {
2980
- if (w = !0, console.log("Detected Single Image / Cover Page. Applying 'Contain' styles."), p.style.height = "100%", u.style.height = "100%", u.style.margin = "0", u.style.display = "flex", u.style.flexDirection = "column", u.style.justifyContent = "center", u.style.alignItems = "center", u.style.overflow = "hidden", s.length > 0) {
2980
+ if (w = !0, console.log("Detected Single Image / Cover Page. Applying 'Contain' styles."), f.style.height = "100%", u.style.height = "100%", u.style.margin = "0", u.style.display = "flex", u.style.flexDirection = "column", u.style.justifyContent = "center", u.style.alignItems = "center", u.style.overflow = "hidden", s.length > 0) {
2981
2981
  const b = s[0];
2982
2982
  b.style.maxWidth = "100%", b.style.maxHeight = "100%", b.style.objectFit = "contain", b.style.margin = "0 auto", b.style.display = "block";
2983
2983
  } else if (o.length > 0) {
@@ -2991,36 +2991,36 @@ class Yt {
2991
2991
  }
2992
2992
  updateSettings(l) {
2993
2993
  let e = null;
2994
- this.currentSettings.scroll !== "scroll-continuous" && this.iframe && (e = this.getVisibleElement()), this.currentSettings = { ...this.currentSettings, ...l }, this.frames.forEach((p) => {
2995
- p.element.contentDocument && (this.setupFrameHeightLogic(p.element, this.isSingleImageMode), this.applySettingsToDoc(p.element.contentDocument, p.element), this.updatePagination(p.element));
2994
+ this.currentSettings.scroll !== "scroll-continuous" && this.iframe && (e = this.getVisibleElement()), this.currentSettings = { ...this.currentSettings, ...l }, this.frames.forEach((f) => {
2995
+ f.element.contentDocument && (this.setupFrameHeightLogic(f.element, this.isSingleImageMode), this.applySettingsToDoc(f.element.contentDocument, f.element), this.updatePagination(f.element));
2996
2996
  }), e && this.iframe && (console.log("Restoring position to anchor element:", e), this.scrollToElement(e)), this.currentSettings.scroll === "scroll-continuous" ? this.container.style.overflowY = "auto" : (this.container.style.overflowY = "hidden", this.activeFrameObserver && (this.activeFrameObserver.disconnect(), this.activeFrameObserver = null));
2997
2997
  }
2998
2998
  getVisibleElement() {
2999
2999
  if (!this.iframe || !this.iframe.contentDocument) return null;
3000
- const e = this.iframe.contentDocument.body, p = this.iframe.clientWidth, u = Array.from(e.querySelectorAll("p, h1, h2, h3, h4, h5, h6, li, blockquote, div"));
3000
+ const e = this.iframe.contentDocument.body, f = this.iframe.clientWidth, u = Array.from(e.querySelectorAll("p, h1, h2, h3, h4, h5, h6, li, blockquote, div"));
3001
3001
  for (const s of u) {
3002
3002
  const o = s.getBoundingClientRect();
3003
- if (o.left >= -50 && o.top >= 0 && o.left < p)
3003
+ if (o.left >= -50 && o.top >= 0 && o.left < f)
3004
3004
  return s;
3005
3005
  }
3006
3006
  return null;
3007
3007
  }
3008
3008
  scrollToElement(l) {
3009
3009
  if (!this.iframe || !this.iframe.contentDocument) return;
3010
- const e = this.iframe.contentDocument.documentElement, p = Math.abs(parseFloat(e.style.left || "0")), s = l.getBoundingClientRect().left + p, n = this.iframe.clientWidth + this.columnGap, h = Math.floor(s / n);
3010
+ const e = this.iframe.contentDocument.documentElement, f = Math.abs(parseFloat(e.style.left || "0")), s = l.getBoundingClientRect().left + f, n = this.iframe.clientWidth + this.columnGap, h = Math.floor(s / n);
3011
3011
  console.log(`Restoring Element: absoluteLeft=${s}, newPageIndex=${h}`), this.currentPageIndex = h, this.currentPageIndex >= this.pageCount && (this.currentPageIndex = this.pageCount - 1), this.currentPageIndex < 0 && (this.currentPageIndex = 0), this.scrollToPage(this.currentPageIndex);
3012
3012
  }
3013
3013
  setBookStyles(l) {
3014
3014
  this.currentBookStyles = l;
3015
- const e = document.querySelector(".tr-epub-reader-element"), p = l.find((u) => u.selector === "body" || u.selector === ":not(a):not(hypothesis-highlight)") || (l.length > 0 ? l[0] : null);
3016
- console.log("setBookStyles: Applying styles to container. Found element:", !!e, e), console.log("setBookStyles: Body style found:", p), e ? p && p.declarations && p.declarations.backgroundColor ? (console.log("setBookStyles: Setting background color to", p.declarations.backgroundColor), e.style.backgroundColor = p.declarations.backgroundColor) : (console.log("setBookStyles: Clearing background color"), e.style.backgroundColor = "") : console.warn("setBookStyles: .tr-epub-reader-element NOT FOUND in DOM"), this.frames.forEach((u) => {
3015
+ const e = document.querySelector(".tr-epub-reader-element"), f = l.find((u) => u.selector === "body" || u.selector === ":not(a):not(hypothesis-highlight)") || (l.length > 0 ? l[0] : null);
3016
+ console.log("setBookStyles: Applying styles to container. Found element:", !!e, e), console.log("setBookStyles: Body style found:", f), e ? f && f.declarations && f.declarations.backgroundColor ? (console.log("setBookStyles: Setting background color to", f.declarations.backgroundColor), e.style.backgroundColor = f.declarations.backgroundColor) : (console.log("setBookStyles: Clearing background color"), e.style.backgroundColor = "") : console.warn("setBookStyles: .tr-epub-reader-element NOT FOUND in DOM"), this.frames.forEach((u) => {
3017
3017
  this.applyStylesToFrame(u.element);
3018
3018
  });
3019
3019
  }
3020
3020
  applyStylesToFrame(l) {
3021
3021
  if (!l || !l.contentDocument) return;
3022
- const e = l.contentDocument, p = e.getElementById("readium-theme-style");
3023
- p && p.remove();
3022
+ const e = l.contentDocument, f = e.getElementById("readium-theme-style");
3023
+ f && f.remove();
3024
3024
  const u = e.createElement("style");
3025
3025
  u.id = "readium-theme-style";
3026
3026
  let s = "";
@@ -3050,34 +3050,34 @@ class Yt {
3050
3050
  `, u.textContent = s, e.head.appendChild(u);
3051
3051
  }
3052
3052
  applySettingsToDoc(l, e) {
3053
- const p = l.documentElement, u = l.body;
3054
- this.currentSettings.fontSize && (p.style.fontSize = `${this.currentSettings.fontSize}%`);
3053
+ const f = l.documentElement, u = l.body;
3054
+ this.currentSettings.fontSize && (f.style.fontSize = `${this.currentSettings.fontSize}%`);
3055
3055
  const s = this.iframe.clientWidth, o = this.iframe.clientHeight, n = this.currentSettings.scroll === "scroll-continuous";
3056
3056
  if (e.style.borderLeft = "0", e.style.borderRight = "0", n) {
3057
3057
  if (this.isSingleImageMode) {
3058
- p.style.height = "100%", p.style.width = "100%", p.style.overflow = "hidden", u.style.height = "100%", u.style.overflow = "hidden";
3058
+ f.style.height = "100%", f.style.width = "100%", f.style.overflow = "hidden", u.style.height = "100%", u.style.overflow = "hidden";
3059
3059
  const h = u.querySelector("svg");
3060
3060
  h && (h.style.height = "100vh", h.style.maxHeight = "100vh");
3061
3061
  } else
3062
- p.style.height = "auto", p.style.width = "100vw", p.style.overflowY = "auto";
3063
- p.style.overflowX = "hidden", u.style.height = "auto", u.style.overflowY = "visible", p.style.columnWidth = "auto", p.style.columnGap = "0", p.style.position = "static", p.style.left = "0", e.style.overflow = "hidden";
3062
+ f.style.height = "auto", f.style.width = "100vw", f.style.overflowY = "auto";
3063
+ f.style.overflowX = "hidden", u.style.height = "auto", u.style.overflowY = "visible", f.style.columnWidth = "auto", f.style.columnGap = "0", f.style.position = "static", f.style.left = "0", e.style.overflow = "hidden";
3064
3064
  } else {
3065
- e.style.height = "100%", p.style.height = `${o}px`, p.style.width = "100%", p.style.position = "relative", p.style.margin = "0", p.style.padding = "0", p.style.top = "0", p.style.left = "0";
3065
+ e.style.height = "100%", f.style.height = `${o}px`, f.style.width = "100%", f.style.position = "relative", f.style.margin = "0", f.style.padding = "0", f.style.top = "0", f.style.left = "0";
3066
3066
  const h = s > o, w = this.currentSettings.syntheticSpread;
3067
3067
  let b = w === "double";
3068
3068
  if ((!w || w === "auto") && (b = h && s > 800), b) {
3069
3069
  const _ = (s - this.columnGap) / 2;
3070
- p.style.columnWidth = `${_}px`;
3070
+ f.style.columnWidth = `${_}px`;
3071
3071
  } else
3072
- p.style.columnWidth = `${s - this.columnGap}px`;
3073
- p.style.columnGap = `${this.columnGap}px`, p.style.columnFill = "auto", u.style.margin = "0", u.style.padding = "0", e && (e.style.overflow = "hidden");
3072
+ f.style.columnWidth = `${s - this.columnGap}px`;
3073
+ f.style.columnGap = `${this.columnGap}px`, f.style.columnFill = "auto", u.style.margin = "0", u.style.padding = "0", e && (e.style.overflow = "hidden");
3074
3074
  }
3075
3075
  }
3076
3076
  setupFrameHeightLogic(l, e) {
3077
3077
  var s;
3078
- const p = l.contentDocument;
3079
- if (!p) return;
3080
- const u = p.body;
3078
+ const f = l.contentDocument;
3079
+ if (!f) return;
3080
+ const u = f.body;
3081
3081
  if (this.currentSettings.scroll === "scroll-continuous")
3082
3082
  if (e)
3083
3083
  this.activeFrameObserver && (this.activeFrameObserver.disconnect(), this.activeFrameObserver = null), l.style.height = "100%", l.scrolling = "no";
@@ -3114,38 +3114,38 @@ class Yt {
3114
3114
  updatePagination(l) {
3115
3115
  if (!l || !l.contentDocument || this.currentSettings.scroll === "scroll-continuous") return;
3116
3116
  console.log("updatePagination executing..."), l.style.height = "100%", l.style.width = "100%";
3117
- const e = l.contentDocument.documentElement, p = l.clientWidth, u = e.scrollWidth;
3118
- this.pageCount = Math.ceil(u / (p + this.columnGap)), this.pageCount === 0 && (this.pageCount = 1), console.log(`Pagination: ${u} / ${p} = ${this.pageCount} pages`), this.currentPageIndex >= this.pageCount && (this.currentPageIndex = this.pageCount - 1), this.currentPageIndex < 0 && (this.currentPageIndex = 0), this.scrollToPage(this.currentPageIndex);
3117
+ const e = l.contentDocument.documentElement, f = l.clientWidth, u = e.scrollWidth;
3118
+ this.pageCount = Math.ceil(u / (f + this.columnGap)), this.pageCount === 0 && (this.pageCount = 1), console.log(`Pagination: ${u} / ${f} = ${this.pageCount} pages`), this.currentPageIndex >= this.pageCount && (this.currentPageIndex = this.pageCount - 1), this.currentPageIndex < 0 && (this.currentPageIndex = 0), this.scrollToPage(this.currentPageIndex);
3119
3119
  }
3120
3120
  scrollToPage(l) {
3121
3121
  if (!this.iframe || !this.iframe.contentDocument) return;
3122
- const e = this.iframe.contentDocument.documentElement, p = this.iframe.clientWidth, u = l * (p + this.columnGap);
3122
+ const e = this.iframe.contentDocument.documentElement, f = this.iframe.clientWidth, u = l * (f + this.columnGap);
3123
3123
  console.log(`scrollToPage: index=${l}, offset=${u}`), e.style.left = `-${u}px`;
3124
3124
  }
3125
3125
  async openContentUrl(l) {
3126
3126
  if (!this.epubPackage) return;
3127
3127
  console.log("ReaderView.openContentUrl called with:", l);
3128
- const [e, p] = l.split("#");
3128
+ const [e, f] = l.split("#");
3129
3129
  console.log("Looking for spine item with path:", e);
3130
3130
  const u = this.epubPackage.spine.getItemByHref(e);
3131
3131
  if (u) {
3132
3132
  if (console.log("Found item:", u), this.currentItem && this.currentItem.href === u.href) {
3133
- p && this.scrollToAnchor(p);
3133
+ f && this.scrollToAnchor(f);
3134
3134
  return;
3135
3135
  }
3136
- this.currentPageIndex = 0, await this.openSpineItem(u), p && setTimeout(() => {
3137
- this.scrollToAnchor(p);
3136
+ this.currentPageIndex = 0, await this.openSpineItem(u), f && setTimeout(() => {
3137
+ this.scrollToAnchor(f);
3138
3138
  }, 100);
3139
3139
  } else
3140
3140
  console.warn("Item not found for href", l), console.log("Available spine items:", this.epubPackage.spine.items.map((s) => s.href));
3141
3141
  }
3142
3142
  scrollToAnchor(l) {
3143
3143
  if (!this.iframe || !this.iframe.contentDocument) return;
3144
- const e = this.iframe.contentDocument, p = e.getElementById(l);
3145
- if (p) {
3146
- const u = e.documentElement, s = Math.abs(parseFloat(u.style.left || "0")), n = p.getBoundingClientRect().left + s, w = this.iframe.clientWidth + this.columnGap;
3144
+ const e = this.iframe.contentDocument, f = e.getElementById(l);
3145
+ if (f) {
3146
+ const u = e.documentElement, s = Math.abs(parseFloat(u.style.left || "0")), n = f.getBoundingClientRect().left + s, w = this.iframe.clientWidth + this.columnGap;
3147
3147
  if (this.currentSettings.scroll === "scroll-continuous") {
3148
- p.scrollIntoView();
3148
+ f.scrollIntoView();
3149
3149
  return;
3150
3150
  }
3151
3151
  let b = Math.floor(n / w);
@@ -3187,12 +3187,12 @@ class Yt {
3187
3187
  resolvePath(l, e) {
3188
3188
  try {
3189
3189
  if (e.startsWith("/")) return e.substring(1);
3190
- const p = l.split("/");
3191
- p.pop();
3190
+ const f = l.split("/");
3191
+ f.pop();
3192
3192
  const u = e.split("/");
3193
3193
  for (const s of u)
3194
- s !== "." && (s === ".." ? p.pop() : p.push(s));
3195
- return p.join("/");
3194
+ s !== "." && (s === ".." ? f.pop() : f.push(s));
3195
+ return f.join("/");
3196
3196
  } catch {
3197
3197
  return console.error("Path resolution error", l, e), e;
3198
3198
  }
@@ -3205,77 +3205,78 @@ const it = {
3205
3205
  currentPackageDocument: null,
3206
3206
  ebookURL_filepath: null,
3207
3207
  embeded: !0,
3208
- init: (H) => {
3208
+ init: (M) => {
3209
3209
  console.log("Initializing Modern TreineticEpubReader..."), ft.init();
3210
3210
  let l;
3211
- return typeof H == "string" ? l = document.querySelector(H) : l = H, l ? (it.initReader(l), pt.getInstance()) : (console.error("TreineticEpubReader: Element not found", H), null);
3211
+ return typeof M == "string" ? l = document.querySelector(M) : l = M, l ? (it.initReader(l), pt.getInstance()) : (console.error("TreineticEpubReader: Element not found", M), null);
3212
3212
  },
3213
3213
  /**
3214
3214
  * Alias for init() to align with standard library patterns.
3215
3215
  */
3216
- create: (H) => it.init(H),
3217
- open: (H) => {
3218
- console.log("Opening: ", H);
3216
+ create: (M) => it.init(M),
3217
+ open: (M) => {
3218
+ console.log("Opening: ", M);
3219
3219
  const l = it.setReaderPreferences();
3220
- it.ebookURL_filepath = H;
3221
- const e = it.getOpenPageRequest(l, H);
3222
- let p = { syntheticSpread: "auto", scroll: "auto" };
3223
- it.embeded && l && l.reader && (p = l.reader), it.loadEpub(p, H, e);
3220
+ it.ebookURL_filepath = M;
3221
+ const e = it.getOpenPageRequest(l, M);
3222
+ let f = { syntheticSpread: "auto", scroll: "auto" };
3223
+ it.embeded && l && l.reader && (f = l.reader), it.loadEpub(f, M, e);
3224
3224
  },
3225
- initReader: (H) => {
3226
- H.classList.add("tr-epub-reader-element");
3227
- const l = it.setReaderPreferences();
3228
- it.readerView = new Yt(H), ft.init(), ft.on(ft.PageNext, "reader", () => it.nextPage()), ft.on(ft.PagePrevious, "reader", () => it.prevPage());
3229
- let e = { syntheticSpread: "auto", scroll: "auto" };
3230
- it.embeded && l && l.reader && (e = l.reader), wt.updateReader(it.readerView, e);
3225
+ initReader: (M) => {
3226
+ const l = M.querySelector(".tr-internal-wrapper");
3227
+ l && (console.log("TreineticEpubReader: Cleaning up existing instance before re-init."), l.remove()), M.classList.add("tr-epub-reader-element");
3228
+ const e = it.setReaderPreferences();
3229
+ it.readerView = new Yt(M), ft.init(), ft.on(ft.PageNext, "reader", () => it.nextPage()), ft.on(ft.PagePrevious, "reader", () => it.prevPage());
3230
+ let f = { syntheticSpread: "auto", scroll: "auto" };
3231
+ it.embeded && e && e.reader && (f = e.reader), wt.updateReader(it.readerView, f);
3231
3232
  },
3232
3233
  handleReaderEvents: () => {
3233
3234
  var u, s, o;
3234
3235
  if (!it.readium) return;
3235
- const H = it.readium.reader, l = ((u = ReadiumSDK == null ? void 0 : ReadiumSDK.Events) == null ? void 0 : u.CONTENT_DOCUMENT_LOAD_START) || "CONTENT_DOCUMENT_LOAD_START", e = ((s = ReadiumSDK == null ? void 0 : ReadiumSDK.Events) == null ? void 0 : s.CONTENT_DOCUMENT_LOADED) || "CONTENT_DOCUMENT_LOADED", p = ((o = ReadiumSDK == null ? void 0 : ReadiumSDK.Events) == null ? void 0 : o.PAGINATION_CHANGED) || "PAGINATION_CHANGED";
3236
- H.on(l, (n, h) => {
3236
+ const M = it.readium.reader, l = ((u = ReadiumSDK == null ? void 0 : ReadiumSDK.Events) == null ? void 0 : u.CONTENT_DOCUMENT_LOAD_START) || "CONTENT_DOCUMENT_LOAD_START", e = ((s = ReadiumSDK == null ? void 0 : ReadiumSDK.Events) == null ? void 0 : s.CONTENT_DOCUMENT_LOADED) || "CONTENT_DOCUMENT_LOADED", f = ((o = ReadiumSDK == null ? void 0 : ReadiumSDK.Events) == null ? void 0 : o.PAGINATION_CHANGED) || "PAGINATION_CHANGED";
3237
+ M.on(l, (n, h) => {
3237
3238
  console.log("Event: Load Start");
3238
- }), H.on(e, (n, h) => {
3239
+ }), M.on(e, (n, h) => {
3239
3240
  console.log("Event: Loaded");
3240
- }), H.on(p, (n) => {
3241
+ }), M.on(f, (n) => {
3241
3242
  console.log("Event: Pagination Changed"), pt.getInstance().isAutoBookmark() && it.savePlace();
3242
3243
  });
3243
3244
  },
3244
- loadEpub: async (H, l, e) => {
3245
+ loadEpub: async (M, l, e) => {
3245
3246
  try {
3246
3247
  console.log("Loading epub via modern parser:", l);
3247
- const p = await Rt.load(l);
3248
- it.readerView && (it.readerView.openBook(p), it.currentPackageDocument = p, p.toc && pt.getInstance().onTOCLoad(p.toc), pt.getInstance().epubLoaded(
3249
- p.metadata,
3250
- p,
3248
+ const f = await Rt.load(l);
3249
+ it.readerView && (it.readerView.openBook(f), it.currentPackageDocument = f, f.toc && pt.getInstance().onTOCLoad(f.toc), pt.getInstance().epubLoaded(
3250
+ f.metadata,
3251
+ f,
3251
3252
  it.readerView
3252
3253
  ));
3253
- } catch (p) {
3254
- console.error("Failed to load epub", p), pt.getInstance().epubFailed("Indeterminate error");
3254
+ } catch (f) {
3255
+ console.error("Failed to load epub", f), pt.getInstance().epubFailed("Indeterminate error");
3255
3256
  }
3256
3257
  },
3257
3258
  setReaderPreferences: () => {
3258
- let H = Ct.get("reader") || { fontSize: 100, theme: "default-theme", scroll: "auto" };
3259
- return H.scroll === "scroll-continuous" && (H.scroll = "auto"), Ct.put("reader", H), { reader: H };
3259
+ let M = Ct.get("reader") || { fontSize: 100, theme: "default-theme", scroll: "auto" };
3260
+ return M.scroll === "scroll-continuous" && (M.scroll = "auto"), Ct.put("reader", M), { reader: M };
3260
3261
  },
3261
- getOpenPageRequest: (H, l) => null,
3262
+ getOpenPageRequest: (M, l) => null,
3262
3263
  savePlace: () => {
3263
3264
  },
3264
3265
  // Public API Methods (proxied to handler/helpers)
3265
3266
  nextPage: () => pt.getInstance().nextPage(),
3266
3267
  prevPage: () => pt.getInstance().prevPage(),
3267
- goToPage: (H) => pt.getInstance().goToPage(H),
3268
- setTheme: (H) => {
3269
- pt.getInstance().setTheme(H);
3268
+ goToPage: (M) => pt.getInstance().goToPage(M),
3269
+ setTheme: (M) => {
3270
+ pt.getInstance().setTheme(M);
3270
3271
  },
3271
- registerTheme: (H) => {
3272
- Pt.getInstance().registerTheme(H);
3272
+ registerTheme: (M) => {
3273
+ Pt.getInstance().registerTheme(M);
3273
3274
  },
3274
- setFontSize: (H) => {
3275
- pt.getInstance().changeFontSize(H);
3275
+ setFontSize: (M) => {
3276
+ pt.getInstance().changeFontSize(M);
3276
3277
  },
3277
- setScrollOption: (H) => {
3278
- pt.getInstance().setScrollOption(H);
3278
+ setScrollOption: (M) => {
3279
+ pt.getInstance().setScrollOption(M);
3279
3280
  },
3280
3281
  clearSettings: () => {
3281
3282
  Ct.clear("reader"), console.log("Reader settings cleared.");