@per-diem-calculator/vanilla 1.0.16 → 1.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -174,12 +174,12 @@ function oa() {
174
174
  HTMLTemplateElement: s,
175
175
  Node: o,
176
176
  Element: d,
177
- NodeFilter: p,
178
- NamedNodeMap: g = r.NamedNodeMap || r.MozNamedAttrMap,
179
- HTMLFormElement: v,
177
+ NodeFilter: f,
178
+ NamedNodeMap: v = r.NamedNodeMap || r.MozNamedAttrMap,
179
+ HTMLFormElement: b,
180
180
  DOMParser: _,
181
- trustedTypes: f
182
- } = r, m = d.prototype, h = Nn(m, "cloneNode"), w = Nn(m, "remove"), b = Nn(m, "nextSibling"), y = Nn(m, "childNodes"), S = Nn(m, "parentNode");
181
+ trustedTypes: p
182
+ } = r, m = d.prototype, h = Nn(m, "cloneNode"), w = Nn(m, "remove"), g = Nn(m, "nextSibling"), y = Nn(m, "childNodes"), S = Nn(m, "parentNode");
183
183
  if (typeof s == "function") {
184
184
  const ct = t.createElement("template");
185
185
  ct.content && ct.content.ownerDocument && (t = ct.content.ownerDocument);
@@ -258,7 +258,7 @@ function oa() {
258
258
  throw Mn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
259
259
  A = L.TRUSTED_TYPES_POLICY, T = A.createHTML("");
260
260
  } else
261
- A === void 0 && (A = Qs(f, i)), A !== null && typeof T == "string" && (T = A.createHTML(""));
261
+ A === void 0 && (A = Qs(p, i)), A !== null && typeof T == "string" && (T = A.createHTML(""));
262
262
  Zt && Zt(L), mn = L;
263
263
  }
264
264
  }, Q0 = bt({}, [...Kr, ...Jr, ...Us]), ti = bt({}, [...Qr, ...js]), gs = function(L) {
@@ -330,11 +330,11 @@ function oa() {
330
330
  L.ownerDocument || L,
331
331
  L,
332
332
  // eslint-disable-next-line no-bitwise
333
- p.SHOW_ELEMENT | p.SHOW_COMMENT | p.SHOW_TEXT | p.SHOW_PROCESSING_INSTRUCTION | p.SHOW_CDATA_SECTION,
333
+ f.SHOW_ELEMENT | f.SHOW_COMMENT | f.SHOW_TEXT | f.SHOW_PROCESSING_INSTRUCTION | f.SHOW_CDATA_SECTION,
334
334
  null
335
335
  );
336
336
  }, Gr = function(L) {
337
- return L instanceof v && (typeof L.nodeName != "string" || typeof L.textContent != "string" || typeof L.removeChild != "function" || !(L.attributes instanceof g) || typeof L.removeAttribute != "function" || typeof L.setAttribute != "function" || typeof L.namespaceURI != "string" || typeof L.insertBefore != "function" || typeof L.hasChildNodes != "function");
337
+ return L instanceof b && (typeof L.nodeName != "string" || typeof L.textContent != "string" || typeof L.removeChild != "function" || !(L.attributes instanceof v) || typeof L.removeAttribute != "function" || typeof L.setAttribute != "function" || typeof L.namespaceURI != "string" || typeof L.insertBefore != "function" || typeof L.hasChildNodes != "function");
338
338
  }, ri = function(L) {
339
339
  return typeof o == "function" && L instanceof o;
340
340
  };
@@ -362,7 +362,7 @@ function oa() {
362
362
  const zt = Pt.length;
363
363
  for (let te = zt - 1; te >= 0; --te) {
364
364
  const Ee = h(Pt[te], !0);
365
- Ee.__removalCount = (L.__removalCount || 0) + 1, kt.insertBefore(Ee, b(L));
365
+ Ee.__removalCount = (L.__removalCount || 0) + 1, kt.insertBefore(Ee, g(L));
366
366
  }
367
367
  }
368
368
  }
@@ -439,8 +439,8 @@ function oa() {
439
439
  });
440
440
  const li = Ft(L.nodeName);
441
441
  if (ai(li, In, Vt)) {
442
- if (A && typeof f == "object" && typeof f.getAttributeType == "function" && !te)
443
- switch (f.getAttributeType(li, In)) {
442
+ if (A && typeof p == "object" && typeof p.getAttributeType == "function" && !te)
443
+ switch (p.getAttributeType(li, In)) {
444
444
  case "TrustedHTML": {
445
445
  Vt = A.createHTML(Vt);
446
446
  break;
@@ -571,53 +571,53 @@ function no() {
571
571
  r.exports = t();
572
572
  })(function() {
573
573
  return function t(n, i, a) {
574
- function s(p, g) {
575
- if (!i[p]) {
576
- if (!n[p]) {
577
- var v = typeof or == "function" && or;
578
- if (!g && v) return v(p, !0);
579
- if (o) return o(p, !0);
580
- var _ = new Error("Cannot find module '" + p + "'");
574
+ function s(f, v) {
575
+ if (!i[f]) {
576
+ if (!n[f]) {
577
+ var b = typeof or == "function" && or;
578
+ if (!v && b) return b(f, !0);
579
+ if (o) return o(f, !0);
580
+ var _ = new Error("Cannot find module '" + f + "'");
581
581
  throw _.code = "MODULE_NOT_FOUND", _;
582
582
  }
583
- var f = i[p] = { exports: {} };
584
- n[p][0].call(f.exports, function(m) {
585
- var h = n[p][1][m];
583
+ var p = i[f] = { exports: {} };
584
+ n[f][0].call(p.exports, function(m) {
585
+ var h = n[f][1][m];
586
586
  return s(h || m);
587
- }, f, f.exports, t, n, i, a);
587
+ }, p, p.exports, t, n, i, a);
588
588
  }
589
- return i[p].exports;
589
+ return i[f].exports;
590
590
  }
591
591
  for (var o = typeof or == "function" && or, d = 0; d < a.length; d++) s(a[d]);
592
592
  return s;
593
593
  }({ 1: [function(t, n, i) {
594
594
  var a = t("./utils"), s = t("./support"), o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
595
595
  i.encode = function(d) {
596
- for (var p, g, v, _, f, m, h, w = [], b = 0, y = d.length, S = y, A = a.getTypeOf(d) !== "string"; b < d.length; ) S = y - b, v = A ? (p = d[b++], g = b < y ? d[b++] : 0, b < y ? d[b++] : 0) : (p = d.charCodeAt(b++), g = b < y ? d.charCodeAt(b++) : 0, b < y ? d.charCodeAt(b++) : 0), _ = p >> 2, f = (3 & p) << 4 | g >> 4, m = 1 < S ? (15 & g) << 2 | v >> 6 : 64, h = 2 < S ? 63 & v : 64, w.push(o.charAt(_) + o.charAt(f) + o.charAt(m) + o.charAt(h));
596
+ for (var f, v, b, _, p, m, h, w = [], g = 0, y = d.length, S = y, A = a.getTypeOf(d) !== "string"; g < d.length; ) S = y - g, b = A ? (f = d[g++], v = g < y ? d[g++] : 0, g < y ? d[g++] : 0) : (f = d.charCodeAt(g++), v = g < y ? d.charCodeAt(g++) : 0, g < y ? d.charCodeAt(g++) : 0), _ = f >> 2, p = (3 & f) << 4 | v >> 4, m = 1 < S ? (15 & v) << 2 | b >> 6 : 64, h = 2 < S ? 63 & b : 64, w.push(o.charAt(_) + o.charAt(p) + o.charAt(m) + o.charAt(h));
597
597
  return w.join("");
598
598
  }, i.decode = function(d) {
599
- var p, g, v, _, f, m, h = 0, w = 0, b = "data:";
600
- if (d.substr(0, b.length) === b) throw new Error("Invalid base64 input, it looks like a data url.");
599
+ var f, v, b, _, p, m, h = 0, w = 0, g = "data:";
600
+ if (d.substr(0, g.length) === g) throw new Error("Invalid base64 input, it looks like a data url.");
601
601
  var y, S = 3 * (d = d.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
602
602
  if (d.charAt(d.length - 1) === o.charAt(64) && S--, d.charAt(d.length - 2) === o.charAt(64) && S--, S % 1 != 0) throw new Error("Invalid base64 input, bad content length.");
603
- for (y = s.uint8array ? new Uint8Array(0 | S) : new Array(0 | S); h < d.length; ) p = o.indexOf(d.charAt(h++)) << 2 | (_ = o.indexOf(d.charAt(h++))) >> 4, g = (15 & _) << 4 | (f = o.indexOf(d.charAt(h++))) >> 2, v = (3 & f) << 6 | (m = o.indexOf(d.charAt(h++))), y[w++] = p, f !== 64 && (y[w++] = g), m !== 64 && (y[w++] = v);
603
+ for (y = s.uint8array ? new Uint8Array(0 | S) : new Array(0 | S); h < d.length; ) f = o.indexOf(d.charAt(h++)) << 2 | (_ = o.indexOf(d.charAt(h++))) >> 4, v = (15 & _) << 4 | (p = o.indexOf(d.charAt(h++))) >> 2, b = (3 & p) << 6 | (m = o.indexOf(d.charAt(h++))), y[w++] = f, p !== 64 && (y[w++] = v), m !== 64 && (y[w++] = b);
604
604
  return y;
605
605
  };
606
606
  }, { "./support": 30, "./utils": 32 }], 2: [function(t, n, i) {
607
607
  var a = t("./external"), s = t("./stream/DataWorker"), o = t("./stream/Crc32Probe"), d = t("./stream/DataLengthProbe");
608
- function p(g, v, _, f, m) {
609
- this.compressedSize = g, this.uncompressedSize = v, this.crc32 = _, this.compression = f, this.compressedContent = m;
608
+ function f(v, b, _, p, m) {
609
+ this.compressedSize = v, this.uncompressedSize = b, this.crc32 = _, this.compression = p, this.compressedContent = m;
610
610
  }
611
- p.prototype = { getContentWorker: function() {
612
- var g = new s(a.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new d("data_length")), v = this;
613
- return g.on("end", function() {
614
- if (this.streamInfo.data_length !== v.uncompressedSize) throw new Error("Bug : uncompressed data size mismatch");
615
- }), g;
611
+ f.prototype = { getContentWorker: function() {
612
+ var v = new s(a.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new d("data_length")), b = this;
613
+ return v.on("end", function() {
614
+ if (this.streamInfo.data_length !== b.uncompressedSize) throw new Error("Bug : uncompressed data size mismatch");
615
+ }), v;
616
616
  }, getCompressedWorker: function() {
617
617
  return new s(a.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression);
618
- } }, p.createWorkerFrom = function(g, v, _) {
619
- return g.pipe(new o()).pipe(new d("uncompressedSize")).pipe(v.compressWorker(_)).pipe(new d("compressedSize")).withStreamInfo("compression", v);
620
- }, n.exports = p;
618
+ } }, f.createWorkerFrom = function(v, b, _) {
619
+ return v.pipe(new o()).pipe(new d("uncompressedSize")).pipe(b.compressWorker(_)).pipe(new d("compressedSize")).withStreamInfo("compression", b);
620
+ }, n.exports = f;
621
621
  }, { "./external": 6, "./stream/Crc32Probe": 25, "./stream/DataLengthProbe": 26, "./stream/DataWorker": 27 }], 3: [function(t, n, i) {
622
622
  var a = t("./stream/GenericWorker");
623
623
  i.STORE = { magic: "\0\0", compressWorker: function() {
@@ -627,24 +627,24 @@ function no() {
627
627
  } }, i.DEFLATE = t("./flate");
628
628
  }, { "./flate": 7, "./stream/GenericWorker": 28 }], 4: [function(t, n, i) {
629
629
  var a = t("./utils"), s = function() {
630
- for (var o, d = [], p = 0; p < 256; p++) {
631
- o = p;
632
- for (var g = 0; g < 8; g++) o = 1 & o ? 3988292384 ^ o >>> 1 : o >>> 1;
633
- d[p] = o;
630
+ for (var o, d = [], f = 0; f < 256; f++) {
631
+ o = f;
632
+ for (var v = 0; v < 8; v++) o = 1 & o ? 3988292384 ^ o >>> 1 : o >>> 1;
633
+ d[f] = o;
634
634
  }
635
635
  return d;
636
636
  }();
637
637
  n.exports = function(o, d) {
638
- return o !== void 0 && o.length ? a.getTypeOf(o) !== "string" ? function(p, g, v, _) {
639
- var f = s, m = _ + v;
640
- p ^= -1;
641
- for (var h = _; h < m; h++) p = p >>> 8 ^ f[255 & (p ^ g[h])];
642
- return -1 ^ p;
643
- }(0 | d, o, o.length, 0) : function(p, g, v, _) {
644
- var f = s, m = _ + v;
645
- p ^= -1;
646
- for (var h = _; h < m; h++) p = p >>> 8 ^ f[255 & (p ^ g.charCodeAt(h))];
647
- return -1 ^ p;
638
+ return o !== void 0 && o.length ? a.getTypeOf(o) !== "string" ? function(f, v, b, _) {
639
+ var p = s, m = _ + b;
640
+ f ^= -1;
641
+ for (var h = _; h < m; h++) f = f >>> 8 ^ p[255 & (f ^ v[h])];
642
+ return -1 ^ f;
643
+ }(0 | d, o, o.length, 0) : function(f, v, b, _) {
644
+ var p = s, m = _ + b;
645
+ f ^= -1;
646
+ for (var h = _; h < m; h++) f = f >>> 8 ^ p[255 & (f ^ v.charCodeAt(h))];
647
+ return -1 ^ f;
648
648
  }(0 | d, o, o.length, 0) : 0;
649
649
  };
650
650
  }, { "./utils": 32 }], 5: [function(t, n, i) {
@@ -653,122 +653,122 @@ function no() {
653
653
  var a = null;
654
654
  a = typeof Promise < "u" ? Promise : t("lie"), n.exports = { Promise: a };
655
655
  }, { lie: 37 }], 7: [function(t, n, i) {
656
- var a = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Uint32Array < "u", s = t("pako"), o = t("./utils"), d = t("./stream/GenericWorker"), p = a ? "uint8array" : "array";
657
- function g(v, _) {
658
- d.call(this, "FlateWorker/" + v), this._pako = null, this._pakoAction = v, this._pakoOptions = _, this.meta = {};
656
+ var a = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Uint32Array < "u", s = t("pako"), o = t("./utils"), d = t("./stream/GenericWorker"), f = a ? "uint8array" : "array";
657
+ function v(b, _) {
658
+ d.call(this, "FlateWorker/" + b), this._pako = null, this._pakoAction = b, this._pakoOptions = _, this.meta = {};
659
659
  }
660
- i.magic = "\b\0", o.inherits(g, d), g.prototype.processChunk = function(v) {
661
- this.meta = v.meta, this._pako === null && this._createPako(), this._pako.push(o.transformTo(p, v.data), !1);
662
- }, g.prototype.flush = function() {
660
+ i.magic = "\b\0", o.inherits(v, d), v.prototype.processChunk = function(b) {
661
+ this.meta = b.meta, this._pako === null && this._createPako(), this._pako.push(o.transformTo(f, b.data), !1);
662
+ }, v.prototype.flush = function() {
663
663
  d.prototype.flush.call(this), this._pako === null && this._createPako(), this._pako.push([], !0);
664
- }, g.prototype.cleanUp = function() {
664
+ }, v.prototype.cleanUp = function() {
665
665
  d.prototype.cleanUp.call(this), this._pako = null;
666
- }, g.prototype._createPako = function() {
666
+ }, v.prototype._createPako = function() {
667
667
  this._pako = new s[this._pakoAction]({ raw: !0, level: this._pakoOptions.level || -1 });
668
- var v = this;
668
+ var b = this;
669
669
  this._pako.onData = function(_) {
670
- v.push({ data: _, meta: v.meta });
670
+ b.push({ data: _, meta: b.meta });
671
671
  };
672
- }, i.compressWorker = function(v) {
673
- return new g("Deflate", v);
672
+ }, i.compressWorker = function(b) {
673
+ return new v("Deflate", b);
674
674
  }, i.uncompressWorker = function() {
675
- return new g("Inflate", {});
675
+ return new v("Inflate", {});
676
676
  };
677
677
  }, { "./stream/GenericWorker": 28, "./utils": 32, pako: 38 }], 8: [function(t, n, i) {
678
- function a(f, m) {
678
+ function a(p, m) {
679
679
  var h, w = "";
680
- for (h = 0; h < m; h++) w += String.fromCharCode(255 & f), f >>>= 8;
680
+ for (h = 0; h < m; h++) w += String.fromCharCode(255 & p), p >>>= 8;
681
681
  return w;
682
682
  }
683
- function s(f, m, h, w, b, y) {
684
- var S, A, T = f.file, U = f.compression, C = y !== p.utf8encode, P = o.transformTo("string", y(T.name)), O = o.transformTo("string", p.utf8encode(T.name)), V = T.comment, G = o.transformTo("string", y(V)), E = o.transformTo("string", p.utf8encode(V)), N = O.length !== T.name.length, u = E.length !== V.length, j = "", ut = "", X = "", pt = T.dir, Z = T.date, dt = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
685
- m && !h || (dt.crc32 = f.crc32, dt.compressedSize = f.compressedSize, dt.uncompressedSize = f.uncompressedSize);
683
+ function s(p, m, h, w, g, y) {
684
+ var S, A, T = p.file, U = p.compression, C = y !== f.utf8encode, P = o.transformTo("string", y(T.name)), O = o.transformTo("string", f.utf8encode(T.name)), V = T.comment, G = o.transformTo("string", y(V)), E = o.transformTo("string", f.utf8encode(V)), N = O.length !== T.name.length, u = E.length !== V.length, j = "", ut = "", X = "", pt = T.dir, Z = T.date, dt = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
685
+ m && !h || (dt.crc32 = p.crc32, dt.compressedSize = p.compressedSize, dt.uncompressedSize = p.uncompressedSize);
686
686
  var F = 0;
687
687
  m && (F |= 8), C || !N && !u || (F |= 2048);
688
688
  var z = 0, it = 0;
689
- pt && (z |= 16), b === "UNIX" ? (it = 798, z |= function(W, yt) {
689
+ pt && (z |= 16), g === "UNIX" ? (it = 798, z |= function(W, yt) {
690
690
  var Ot = W;
691
691
  return W || (Ot = yt ? 16893 : 33204), (65535 & Ot) << 16;
692
692
  }(T.unixPermissions, pt)) : (it = 20, z |= function(W) {
693
693
  return 63 & (W || 0);
694
- }(T.dosPermissions)), S = Z.getUTCHours(), S <<= 6, S |= Z.getUTCMinutes(), S <<= 5, S |= Z.getUTCSeconds() / 2, A = Z.getUTCFullYear() - 1980, A <<= 4, A |= Z.getUTCMonth() + 1, A <<= 5, A |= Z.getUTCDate(), N && (ut = a(1, 1) + a(g(P), 4) + O, j += "up" + a(ut.length, 2) + ut), u && (X = a(1, 1) + a(g(G), 4) + E, j += "uc" + a(X.length, 2) + X);
694
+ }(T.dosPermissions)), S = Z.getUTCHours(), S <<= 6, S |= Z.getUTCMinutes(), S <<= 5, S |= Z.getUTCSeconds() / 2, A = Z.getUTCFullYear() - 1980, A <<= 4, A |= Z.getUTCMonth() + 1, A <<= 5, A |= Z.getUTCDate(), N && (ut = a(1, 1) + a(v(P), 4) + O, j += "up" + a(ut.length, 2) + ut), u && (X = a(1, 1) + a(v(G), 4) + E, j += "uc" + a(X.length, 2) + X);
695
695
  var nt = "";
696
696
  return nt += `
697
- \0`, nt += a(F, 2), nt += U.magic, nt += a(S, 2), nt += a(A, 2), nt += a(dt.crc32, 4), nt += a(dt.compressedSize, 4), nt += a(dt.uncompressedSize, 4), nt += a(P.length, 2), nt += a(j.length, 2), { fileRecord: v.LOCAL_FILE_HEADER + nt + P + j, dirRecord: v.CENTRAL_FILE_HEADER + a(it, 2) + nt + a(G.length, 2) + "\0\0\0\0" + a(z, 4) + a(w, 4) + P + j + G };
697
+ \0`, nt += a(F, 2), nt += U.magic, nt += a(S, 2), nt += a(A, 2), nt += a(dt.crc32, 4), nt += a(dt.compressedSize, 4), nt += a(dt.uncompressedSize, 4), nt += a(P.length, 2), nt += a(j.length, 2), { fileRecord: b.LOCAL_FILE_HEADER + nt + P + j, dirRecord: b.CENTRAL_FILE_HEADER + a(it, 2) + nt + a(G.length, 2) + "\0\0\0\0" + a(z, 4) + a(w, 4) + P + j + G };
698
698
  }
699
- var o = t("../utils"), d = t("../stream/GenericWorker"), p = t("../utf8"), g = t("../crc32"), v = t("../signature");
700
- function _(f, m, h, w) {
701
- d.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = m, this.zipPlatform = h, this.encodeFileName = w, this.streamFiles = f, this.accumulate = !1, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
699
+ var o = t("../utils"), d = t("../stream/GenericWorker"), f = t("../utf8"), v = t("../crc32"), b = t("../signature");
700
+ function _(p, m, h, w) {
701
+ d.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = m, this.zipPlatform = h, this.encodeFileName = w, this.streamFiles = p, this.accumulate = !1, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
702
702
  }
703
- o.inherits(_, d), _.prototype.push = function(f) {
704
- var m = f.meta.percent || 0, h = this.entriesCount, w = this._sources.length;
705
- this.accumulate ? this.contentBuffer.push(f) : (this.bytesWritten += f.data.length, d.prototype.push.call(this, { data: f.data, meta: { currentFile: this.currentFile, percent: h ? (m + 100 * (h - w - 1)) / h : 100 } }));
706
- }, _.prototype.openedSource = function(f) {
707
- this.currentSourceOffset = this.bytesWritten, this.currentFile = f.file.name;
708
- var m = this.streamFiles && !f.file.dir;
703
+ o.inherits(_, d), _.prototype.push = function(p) {
704
+ var m = p.meta.percent || 0, h = this.entriesCount, w = this._sources.length;
705
+ this.accumulate ? this.contentBuffer.push(p) : (this.bytesWritten += p.data.length, d.prototype.push.call(this, { data: p.data, meta: { currentFile: this.currentFile, percent: h ? (m + 100 * (h - w - 1)) / h : 100 } }));
706
+ }, _.prototype.openedSource = function(p) {
707
+ this.currentSourceOffset = this.bytesWritten, this.currentFile = p.file.name;
708
+ var m = this.streamFiles && !p.file.dir;
709
709
  if (m) {
710
- var h = s(f, m, !1, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
710
+ var h = s(p, m, !1, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
711
711
  this.push({ data: h.fileRecord, meta: { percent: 0 } });
712
712
  } else this.accumulate = !0;
713
- }, _.prototype.closedSource = function(f) {
713
+ }, _.prototype.closedSource = function(p) {
714
714
  this.accumulate = !1;
715
- var m = this.streamFiles && !f.file.dir, h = s(f, m, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
715
+ var m = this.streamFiles && !p.file.dir, h = s(p, m, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
716
716
  if (this.dirRecords.push(h.dirRecord), m) this.push({ data: function(w) {
717
- return v.DATA_DESCRIPTOR + a(w.crc32, 4) + a(w.compressedSize, 4) + a(w.uncompressedSize, 4);
718
- }(f), meta: { percent: 100 } });
717
+ return b.DATA_DESCRIPTOR + a(w.crc32, 4) + a(w.compressedSize, 4) + a(w.uncompressedSize, 4);
718
+ }(p), meta: { percent: 100 } });
719
719
  else for (this.push({ data: h.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
720
720
  this.currentFile = null;
721
721
  }, _.prototype.flush = function() {
722
- for (var f = this.bytesWritten, m = 0; m < this.dirRecords.length; m++) this.push({ data: this.dirRecords[m], meta: { percent: 100 } });
723
- var h = this.bytesWritten - f, w = function(b, y, S, A, T) {
722
+ for (var p = this.bytesWritten, m = 0; m < this.dirRecords.length; m++) this.push({ data: this.dirRecords[m], meta: { percent: 100 } });
723
+ var h = this.bytesWritten - p, w = function(g, y, S, A, T) {
724
724
  var U = o.transformTo("string", T(A));
725
- return v.CENTRAL_DIRECTORY_END + "\0\0\0\0" + a(b, 2) + a(b, 2) + a(y, 4) + a(S, 4) + a(U.length, 2) + U;
726
- }(this.dirRecords.length, h, f, this.zipComment, this.encodeFileName);
725
+ return b.CENTRAL_DIRECTORY_END + "\0\0\0\0" + a(g, 2) + a(g, 2) + a(y, 4) + a(S, 4) + a(U.length, 2) + U;
726
+ }(this.dirRecords.length, h, p, this.zipComment, this.encodeFileName);
727
727
  this.push({ data: w, meta: { percent: 100 } });
728
728
  }, _.prototype.prepareNextSource = function() {
729
729
  this.previous = this._sources.shift(), this.openedSource(this.previous.streamInfo), this.isPaused ? this.previous.pause() : this.previous.resume();
730
- }, _.prototype.registerPrevious = function(f) {
731
- this._sources.push(f);
730
+ }, _.prototype.registerPrevious = function(p) {
731
+ this._sources.push(p);
732
732
  var m = this;
733
- return f.on("data", function(h) {
733
+ return p.on("data", function(h) {
734
734
  m.processChunk(h);
735
- }), f.on("end", function() {
735
+ }), p.on("end", function() {
736
736
  m.closedSource(m.previous.streamInfo), m._sources.length ? m.prepareNextSource() : m.end();
737
- }), f.on("error", function(h) {
737
+ }), p.on("error", function(h) {
738
738
  m.error(h);
739
739
  }), this;
740
740
  }, _.prototype.resume = function() {
741
741
  return !!d.prototype.resume.call(this) && (!this.previous && this._sources.length ? (this.prepareNextSource(), !0) : this.previous || this._sources.length || this.generatedError ? void 0 : (this.end(), !0));
742
- }, _.prototype.error = function(f) {
742
+ }, _.prototype.error = function(p) {
743
743
  var m = this._sources;
744
- if (!d.prototype.error.call(this, f)) return !1;
744
+ if (!d.prototype.error.call(this, p)) return !1;
745
745
  for (var h = 0; h < m.length; h++) try {
746
- m[h].error(f);
746
+ m[h].error(p);
747
747
  } catch {
748
748
  }
749
749
  return !0;
750
750
  }, _.prototype.lock = function() {
751
751
  d.prototype.lock.call(this);
752
- for (var f = this._sources, m = 0; m < f.length; m++) f[m].lock();
752
+ for (var p = this._sources, m = 0; m < p.length; m++) p[m].lock();
753
753
  }, n.exports = _;
754
754
  }, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(t, n, i) {
755
755
  var a = t("../compressions"), s = t("./ZipFileWorker");
756
- i.generateWorker = function(o, d, p) {
757
- var g = new s(d.streamFiles, p, d.platform, d.encodeFileName), v = 0;
756
+ i.generateWorker = function(o, d, f) {
757
+ var v = new s(d.streamFiles, f, d.platform, d.encodeFileName), b = 0;
758
758
  try {
759
- o.forEach(function(_, f) {
760
- v++;
759
+ o.forEach(function(_, p) {
760
+ b++;
761
761
  var m = function(y, S) {
762
762
  var A = y || S, T = a[A];
763
763
  if (!T) throw new Error(A + " is not a valid compression method !");
764
764
  return T;
765
- }(f.options.compression, d.compression), h = f.options.compressionOptions || d.compressionOptions || {}, w = f.dir, b = f.date;
766
- f._compressWorker(m, h).withStreamInfo("file", { name: _, dir: w, date: b, comment: f.comment || "", unixPermissions: f.unixPermissions, dosPermissions: f.dosPermissions }).pipe(g);
767
- }), g.entriesCount = v;
765
+ }(p.options.compression, d.compression), h = p.options.compressionOptions || d.compressionOptions || {}, w = p.dir, g = p.date;
766
+ p._compressWorker(m, h).withStreamInfo("file", { name: _, dir: w, date: g, comment: p.comment || "", unixPermissions: p.unixPermissions, dosPermissions: p.dosPermissions }).pipe(v);
767
+ }), v.entriesCount = b;
768
768
  } catch (_) {
769
- g.error(_);
769
+ v.error(_);
770
770
  }
771
- return g;
771
+ return v;
772
772
  };
773
773
  }, { "../compressions": 3, "./ZipFileWorker": 8 }], 10: [function(t, n, i) {
774
774
  function a() {
@@ -784,47 +784,47 @@ function no() {
784
784
  return new a().loadAsync(s, o);
785
785
  }, a.external = t("./external"), n.exports = a;
786
786
  }, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(t, n, i) {
787
- var a = t("./utils"), s = t("./external"), o = t("./utf8"), d = t("./zipEntries"), p = t("./stream/Crc32Probe"), g = t("./nodejsUtils");
788
- function v(_) {
789
- return new s.Promise(function(f, m) {
790
- var h = _.decompressed.getContentWorker().pipe(new p());
787
+ var a = t("./utils"), s = t("./external"), o = t("./utf8"), d = t("./zipEntries"), f = t("./stream/Crc32Probe"), v = t("./nodejsUtils");
788
+ function b(_) {
789
+ return new s.Promise(function(p, m) {
790
+ var h = _.decompressed.getContentWorker().pipe(new f());
791
791
  h.on("error", function(w) {
792
792
  m(w);
793
793
  }).on("end", function() {
794
- h.streamInfo.crc32 !== _.decompressed.crc32 ? m(new Error("Corrupted zip : CRC32 mismatch")) : f();
794
+ h.streamInfo.crc32 !== _.decompressed.crc32 ? m(new Error("Corrupted zip : CRC32 mismatch")) : p();
795
795
  }).resume();
796
796
  });
797
797
  }
798
- n.exports = function(_, f) {
798
+ n.exports = function(_, p) {
799
799
  var m = this;
800
- return f = a.extend(f || {}, { base64: !1, checkCRC32: !1, optimizedBinaryString: !1, createFolders: !1, decodeFileName: o.utf8decode }), g.isNode && g.isStream(_) ? s.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : a.prepareContent("the loaded zip file", _, !0, f.optimizedBinaryString, f.base64).then(function(h) {
801
- var w = new d(f);
800
+ return p = a.extend(p || {}, { base64: !1, checkCRC32: !1, optimizedBinaryString: !1, createFolders: !1, decodeFileName: o.utf8decode }), v.isNode && v.isStream(_) ? s.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : a.prepareContent("the loaded zip file", _, !0, p.optimizedBinaryString, p.base64).then(function(h) {
801
+ var w = new d(p);
802
802
  return w.load(h), w;
803
803
  }).then(function(h) {
804
- var w = [s.Promise.resolve(h)], b = h.files;
805
- if (f.checkCRC32) for (var y = 0; y < b.length; y++) w.push(v(b[y]));
804
+ var w = [s.Promise.resolve(h)], g = h.files;
805
+ if (p.checkCRC32) for (var y = 0; y < g.length; y++) w.push(b(g[y]));
806
806
  return s.Promise.all(w);
807
807
  }).then(function(h) {
808
- for (var w = h.shift(), b = w.files, y = 0; y < b.length; y++) {
809
- var S = b[y], A = S.fileNameStr, T = a.resolve(S.fileNameStr);
810
- m.file(T, S.decompressed, { binary: !0, optimizedBinaryString: !0, date: S.date, dir: S.dir, comment: S.fileCommentStr.length ? S.fileCommentStr : null, unixPermissions: S.unixPermissions, dosPermissions: S.dosPermissions, createFolders: f.createFolders }), S.dir || (m.file(T).unsafeOriginalName = A);
808
+ for (var w = h.shift(), g = w.files, y = 0; y < g.length; y++) {
809
+ var S = g[y], A = S.fileNameStr, T = a.resolve(S.fileNameStr);
810
+ m.file(T, S.decompressed, { binary: !0, optimizedBinaryString: !0, date: S.date, dir: S.dir, comment: S.fileCommentStr.length ? S.fileCommentStr : null, unixPermissions: S.unixPermissions, dosPermissions: S.dosPermissions, createFolders: p.createFolders }), S.dir || (m.file(T).unsafeOriginalName = A);
811
811
  }
812
812
  return w.zipComment.length && (m.comment = w.zipComment), m;
813
813
  });
814
814
  };
815
815
  }, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(t, n, i) {
816
816
  var a = t("../utils"), s = t("../stream/GenericWorker");
817
- function o(d, p) {
818
- s.call(this, "Nodejs stream input adapter for " + d), this._upstreamEnded = !1, this._bindStream(p);
817
+ function o(d, f) {
818
+ s.call(this, "Nodejs stream input adapter for " + d), this._upstreamEnded = !1, this._bindStream(f);
819
819
  }
820
820
  a.inherits(o, s), o.prototype._bindStream = function(d) {
821
- var p = this;
822
- (this._stream = d).pause(), d.on("data", function(g) {
823
- p.push({ data: g, meta: { percent: 0 } });
824
- }).on("error", function(g) {
825
- p.isPaused ? this.generatedError = g : p.error(g);
821
+ var f = this;
822
+ (this._stream = d).pause(), d.on("data", function(v) {
823
+ f.push({ data: v, meta: { percent: 0 } });
824
+ }).on("error", function(v) {
825
+ f.isPaused ? this.generatedError = v : f.error(v);
826
826
  }).on("end", function() {
827
- p.isPaused ? p._upstreamEnded = !0 : p.end();
827
+ f.isPaused ? f._upstreamEnded = !0 : f.end();
828
828
  });
829
829
  }, o.prototype.pause = function() {
830
830
  return !!s.prototype.pause.call(this) && (this._stream.pause(), !0);
@@ -833,15 +833,15 @@ function no() {
833
833
  }, n.exports = o;
834
834
  }, { "../stream/GenericWorker": 28, "../utils": 32 }], 13: [function(t, n, i) {
835
835
  var a = t("readable-stream").Readable;
836
- function s(o, d, p) {
836
+ function s(o, d, f) {
837
837
  a.call(this, d), this._helper = o;
838
- var g = this;
839
- o.on("data", function(v, _) {
840
- g.push(v) || g._helper.pause(), p && p(_);
841
- }).on("error", function(v) {
842
- g.emit("error", v);
838
+ var v = this;
839
+ o.on("data", function(b, _) {
840
+ v.push(b) || v._helper.pause(), f && f(_);
841
+ }).on("error", function(b) {
842
+ v.emit("error", b);
843
843
  }).on("end", function() {
844
- g.push(null);
844
+ v.push(null);
845
845
  });
846
846
  }
847
847
  t("../utils").inherits(s, a), s.prototype._read = function() {
@@ -863,23 +863,23 @@ function no() {
863
863
  } };
864
864
  }, {}], 15: [function(t, n, i) {
865
865
  function a(T, U, C) {
866
- var P, O = o.getTypeOf(U), V = o.extend(C || {}, g);
867
- V.date = V.date || /* @__PURE__ */ new Date(), V.compression !== null && (V.compression = V.compression.toUpperCase()), typeof V.unixPermissions == "string" && (V.unixPermissions = parseInt(V.unixPermissions, 8)), V.unixPermissions && 16384 & V.unixPermissions && (V.dir = !0), V.dosPermissions && 16 & V.dosPermissions && (V.dir = !0), V.dir && (T = b(T)), V.createFolders && (P = w(T)) && y.call(this, P, !0);
866
+ var P, O = o.getTypeOf(U), V = o.extend(C || {}, v);
867
+ V.date = V.date || /* @__PURE__ */ new Date(), V.compression !== null && (V.compression = V.compression.toUpperCase()), typeof V.unixPermissions == "string" && (V.unixPermissions = parseInt(V.unixPermissions, 8)), V.unixPermissions && 16384 & V.unixPermissions && (V.dir = !0), V.dosPermissions && 16 & V.dosPermissions && (V.dir = !0), V.dir && (T = g(T)), V.createFolders && (P = w(T)) && y.call(this, P, !0);
868
868
  var G = O === "string" && V.binary === !1 && V.base64 === !1;
869
- C && C.binary !== void 0 || (V.binary = !G), (U instanceof v && U.uncompressedSize === 0 || V.dir || !U || U.length === 0) && (V.base64 = !1, V.binary = !0, U = "", V.compression = "STORE", O = "string");
869
+ C && C.binary !== void 0 || (V.binary = !G), (U instanceof b && U.uncompressedSize === 0 || V.dir || !U || U.length === 0) && (V.base64 = !1, V.binary = !0, U = "", V.compression = "STORE", O = "string");
870
870
  var E = null;
871
- E = U instanceof v || U instanceof d ? U : m.isNode && m.isStream(U) ? new h(T, U) : o.prepareContent(T, U, V.binary, V.optimizedBinaryString, V.base64);
871
+ E = U instanceof b || U instanceof d ? U : m.isNode && m.isStream(U) ? new h(T, U) : o.prepareContent(T, U, V.binary, V.optimizedBinaryString, V.base64);
872
872
  var N = new _(T, E, V);
873
873
  this.files[T] = N;
874
874
  }
875
- var s = t("./utf8"), o = t("./utils"), d = t("./stream/GenericWorker"), p = t("./stream/StreamHelper"), g = t("./defaults"), v = t("./compressedObject"), _ = t("./zipObject"), f = t("./generate"), m = t("./nodejsUtils"), h = t("./nodejs/NodejsStreamInputAdapter"), w = function(T) {
875
+ var s = t("./utf8"), o = t("./utils"), d = t("./stream/GenericWorker"), f = t("./stream/StreamHelper"), v = t("./defaults"), b = t("./compressedObject"), _ = t("./zipObject"), p = t("./generate"), m = t("./nodejsUtils"), h = t("./nodejs/NodejsStreamInputAdapter"), w = function(T) {
876
876
  T.slice(-1) === "/" && (T = T.substring(0, T.length - 1));
877
877
  var U = T.lastIndexOf("/");
878
878
  return 0 < U ? T.substring(0, U) : "";
879
- }, b = function(T) {
879
+ }, g = function(T) {
880
880
  return T.slice(-1) !== "/" && (T += "/"), T;
881
881
  }, y = function(T, U) {
882
- return U = U !== void 0 ? U : g.createFolders, T = b(T), this.files[T] || a.call(this, T, null, { dir: !0, createFolders: U }), this.files[T];
882
+ return U = U !== void 0 ? U : v.createFolders, T = g(T), this.files[T] || a.call(this, T, null, { dir: !0, createFolders: U }), this.files[T];
883
883
  };
884
884
  function S(T) {
885
885
  return Object.prototype.toString.call(T) === "[object RegExp]";
@@ -927,11 +927,11 @@ function no() {
927
927
  if ((C = o.extend(T || {}, { streamFiles: !1, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName: s.utf8encode })).type = C.type.toLowerCase(), C.compression = C.compression.toUpperCase(), C.type === "binarystring" && (C.type = "string"), !C.type) throw new Error("No output type specified.");
928
928
  o.checkSupport(C.type), C.platform !== "darwin" && C.platform !== "freebsd" && C.platform !== "linux" && C.platform !== "sunos" || (C.platform = "UNIX"), C.platform === "win32" && (C.platform = "DOS");
929
929
  var P = C.comment || this.comment || "";
930
- U = f.generateWorker(this, C, P);
930
+ U = p.generateWorker(this, C, P);
931
931
  } catch (O) {
932
932
  (U = new d("error")).error(O);
933
933
  }
934
- return new p(U, C.type || "string", C.mimeType);
934
+ return new f(U, C.type || "string", C.mimeType);
935
935
  }, generateAsync: function(T, U) {
936
936
  return this.generateInternalStream(T).accumulate(U);
937
937
  }, generateNodeStream: function(T, U) {
@@ -949,11 +949,11 @@ function no() {
949
949
  t("../utils").inherits(s, a), s.prototype.byteAt = function(o) {
950
950
  return this.data[this.zero + o];
951
951
  }, s.prototype.lastIndexOfSignature = function(o) {
952
- for (var d = o.charCodeAt(0), p = o.charCodeAt(1), g = o.charCodeAt(2), v = o.charCodeAt(3), _ = this.length - 4; 0 <= _; --_) if (this.data[_] === d && this.data[_ + 1] === p && this.data[_ + 2] === g && this.data[_ + 3] === v) return _ - this.zero;
952
+ for (var d = o.charCodeAt(0), f = o.charCodeAt(1), v = o.charCodeAt(2), b = o.charCodeAt(3), _ = this.length - 4; 0 <= _; --_) if (this.data[_] === d && this.data[_ + 1] === f && this.data[_ + 2] === v && this.data[_ + 3] === b) return _ - this.zero;
953
953
  return -1;
954
954
  }, s.prototype.readAndCheckSignature = function(o) {
955
- var d = o.charCodeAt(0), p = o.charCodeAt(1), g = o.charCodeAt(2), v = o.charCodeAt(3), _ = this.readData(4);
956
- return d === _[0] && p === _[1] && g === _[2] && v === _[3];
955
+ var d = o.charCodeAt(0), f = o.charCodeAt(1), v = o.charCodeAt(2), b = o.charCodeAt(3), _ = this.readData(4);
956
+ return d === _[0] && f === _[1] && v === _[2] && b === _[3];
957
957
  }, s.prototype.readData = function(o) {
958
958
  if (this.checkOffset(o), o === 0) return [];
959
959
  var d = this.data.slice(this.zero + this.index, this.zero + this.index + o);
@@ -974,9 +974,9 @@ function no() {
974
974
  this.setIndex(this.index + o);
975
975
  }, byteAt: function() {
976
976
  }, readInt: function(o) {
977
- var d, p = 0;
978
- for (this.checkOffset(o), d = this.index + o - 1; d >= this.index; d--) p = (p << 8) + this.byteAt(d);
979
- return this.index += o, p;
977
+ var d, f = 0;
978
+ for (this.checkOffset(o), d = this.index + o - 1; d >= this.index; d--) f = (f << 8) + this.byteAt(d);
979
+ return this.index += o, f;
980
980
  }, readString: function(o) {
981
981
  return a.transformTo("string", this.readData(o));
982
982
  }, readData: function() {
@@ -1023,10 +1023,10 @@ function no() {
1023
1023
  return this.index += o, d;
1024
1024
  }, n.exports = s;
1025
1025
  }, { "../utils": 32, "./ArrayReader": 17 }], 22: [function(t, n, i) {
1026
- var a = t("../utils"), s = t("../support"), o = t("./ArrayReader"), d = t("./StringReader"), p = t("./NodeBufferReader"), g = t("./Uint8ArrayReader");
1027
- n.exports = function(v) {
1028
- var _ = a.getTypeOf(v);
1029
- return a.checkSupport(_), _ !== "string" || s.uint8array ? _ === "nodebuffer" ? new p(v) : s.uint8array ? new g(a.transformTo("uint8array", v)) : new o(a.transformTo("array", v)) : new d(v);
1026
+ var a = t("../utils"), s = t("../support"), o = t("./ArrayReader"), d = t("./StringReader"), f = t("./NodeBufferReader"), v = t("./Uint8ArrayReader");
1027
+ n.exports = function(b) {
1028
+ var _ = a.getTypeOf(b);
1029
+ return a.checkSupport(_), _ !== "string" || s.uint8array ? _ === "nodebuffer" ? new f(b) : s.uint8array ? new v(a.transformTo("uint8array", b)) : new o(a.transformTo("array", b)) : new d(b);
1030
1030
  };
1031
1031
  }, { "../support": 30, "../utils": 32, "./ArrayReader": 17, "./NodeBufferReader": 19, "./StringReader": 20, "./Uint8ArrayReader": 21 }], 23: [function(t, n, i) {
1032
1032
  i.LOCAL_FILE_HEADER = "PK", i.CENTRAL_FILE_HEADER = "PK", i.CENTRAL_DIRECTORY_END = "PK", i.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x07", i.ZIP64_CENTRAL_DIRECTORY_END = "PK", i.DATA_DESCRIPTOR = "PK\x07\b";
@@ -1053,8 +1053,8 @@ function no() {
1053
1053
  }
1054
1054
  a.inherits(o, s), o.prototype.processChunk = function(d) {
1055
1055
  if (d) {
1056
- var p = this.streamInfo[this.propName] || 0;
1057
- this.streamInfo[this.propName] = p + d.data.length;
1056
+ var f = this.streamInfo[this.propName] || 0;
1057
+ this.streamInfo[this.propName] = f + d.data.length;
1058
1058
  }
1059
1059
  s.prototype.processChunk.call(this, d);
1060
1060
  }, n.exports = o;
@@ -1062,11 +1062,11 @@ function no() {
1062
1062
  var a = t("../utils"), s = t("./GenericWorker");
1063
1063
  function o(d) {
1064
1064
  s.call(this, "DataWorker");
1065
- var p = this;
1066
- this.dataIsReady = !1, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = !1, d.then(function(g) {
1067
- p.dataIsReady = !0, p.data = g, p.max = g && g.length || 0, p.type = a.getTypeOf(g), p.isPaused || p._tickAndRepeat();
1068
- }, function(g) {
1069
- p.error(g);
1065
+ var f = this;
1066
+ this.dataIsReady = !1, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = !1, d.then(function(v) {
1067
+ f.dataIsReady = !0, f.data = v, f.max = v && v.length || 0, f.type = a.getTypeOf(v), f.isPaused || f._tickAndRepeat();
1068
+ }, function(v) {
1069
+ f.error(v);
1070
1070
  });
1071
1071
  }
1072
1072
  a.inherits(o, s), o.prototype.cleanUp = function() {
@@ -1077,20 +1077,20 @@ function no() {
1077
1077
  this._tickScheduled = !1, this.isPaused || this.isFinished || (this._tick(), this.isFinished || (a.delay(this._tickAndRepeat, [], this), this._tickScheduled = !0));
1078
1078
  }, o.prototype._tick = function() {
1079
1079
  if (this.isPaused || this.isFinished) return !1;
1080
- var d = null, p = Math.min(this.max, this.index + 16384);
1080
+ var d = null, f = Math.min(this.max, this.index + 16384);
1081
1081
  if (this.index >= this.max) return this.end();
1082
1082
  switch (this.type) {
1083
1083
  case "string":
1084
- d = this.data.substring(this.index, p);
1084
+ d = this.data.substring(this.index, f);
1085
1085
  break;
1086
1086
  case "uint8array":
1087
- d = this.data.subarray(this.index, p);
1087
+ d = this.data.subarray(this.index, f);
1088
1088
  break;
1089
1089
  case "array":
1090
1090
  case "nodebuffer":
1091
- d = this.data.slice(this.index, p);
1091
+ d = this.data.slice(this.index, f);
1092
1092
  }
1093
- return this.index = p, this.push({ data: d, meta: { percent: this.max ? this.index / this.max * 100 : 0 } });
1093
+ return this.index = f, this.push({ data: d, meta: { percent: this.max ? this.index / this.max * 100 : 0 } });
1094
1094
  }, n.exports = o;
1095
1095
  }, { "../utils": 32, "./GenericWorker": 28 }], 28: [function(t, n, i) {
1096
1096
  function a(s) {
@@ -1149,18 +1149,18 @@ function no() {
1149
1149
  return this.previous ? this.previous + " -> " + s : s;
1150
1150
  } }, n.exports = a;
1151
1151
  }, {}], 29: [function(t, n, i) {
1152
- var a = t("../utils"), s = t("./ConvertWorker"), o = t("./GenericWorker"), d = t("../base64"), p = t("../support"), g = t("../external"), v = null;
1153
- if (p.nodestream) try {
1154
- v = t("../nodejs/NodejsStreamOutputAdapter");
1152
+ var a = t("../utils"), s = t("./ConvertWorker"), o = t("./GenericWorker"), d = t("../base64"), f = t("../support"), v = t("../external"), b = null;
1153
+ if (f.nodestream) try {
1154
+ b = t("../nodejs/NodejsStreamOutputAdapter");
1155
1155
  } catch {
1156
1156
  }
1157
1157
  function _(m, h) {
1158
- return new g.Promise(function(w, b) {
1158
+ return new v.Promise(function(w, g) {
1159
1159
  var y = [], S = m._internalType, A = m._outputType, T = m._mimeType;
1160
1160
  m.on("data", function(U, C) {
1161
1161
  y.push(U), h && h(C);
1162
1162
  }).on("error", function(U) {
1163
- y = [], b(U);
1163
+ y = [], g(U);
1164
1164
  }).on("end", function() {
1165
1165
  try {
1166
1166
  var U = function(C, P, O) {
@@ -1191,34 +1191,34 @@ function no() {
1191
1191
  }(S, y), T);
1192
1192
  w(U);
1193
1193
  } catch (C) {
1194
- b(C);
1194
+ g(C);
1195
1195
  }
1196
1196
  y = [];
1197
1197
  }).resume();
1198
1198
  });
1199
1199
  }
1200
- function f(m, h, w) {
1201
- var b = h;
1200
+ function p(m, h, w) {
1201
+ var g = h;
1202
1202
  switch (h) {
1203
1203
  case "blob":
1204
1204
  case "arraybuffer":
1205
- b = "uint8array";
1205
+ g = "uint8array";
1206
1206
  break;
1207
1207
  case "base64":
1208
- b = "string";
1208
+ g = "string";
1209
1209
  }
1210
1210
  try {
1211
- this._internalType = b, this._outputType = h, this._mimeType = w, a.checkSupport(b), this._worker = m.pipe(new s(b)), m.lock();
1211
+ this._internalType = g, this._outputType = h, this._mimeType = w, a.checkSupport(g), this._worker = m.pipe(new s(g)), m.lock();
1212
1212
  } catch (y) {
1213
1213
  this._worker = new o("error"), this._worker.error(y);
1214
1214
  }
1215
1215
  }
1216
- f.prototype = { accumulate: function(m) {
1216
+ p.prototype = { accumulate: function(m) {
1217
1217
  return _(this, m);
1218
1218
  }, on: function(m, h) {
1219
1219
  var w = this;
1220
- return m === "data" ? this._worker.on(m, function(b) {
1221
- h.call(w, b.data, b.meta);
1220
+ return m === "data" ? this._worker.on(m, function(g) {
1221
+ h.call(w, g.data, g.meta);
1222
1222
  }) : this._worker.on(m, function() {
1223
1223
  a.delay(h, arguments, w);
1224
1224
  }), this;
@@ -1228,8 +1228,8 @@ function no() {
1228
1228
  return this._worker.pause(), this;
1229
1229
  }, toNodejsStream: function(m) {
1230
1230
  if (a.checkSupport("nodestream"), this._outputType !== "nodebuffer") throw new Error(this._outputType + " is not supported by this method");
1231
- return new v(this, { objectMode: this._outputType !== "nodebuffer" }, m);
1232
- } }, n.exports = f;
1231
+ return new b(this, { objectMode: this._outputType !== "nodebuffer" }, m);
1232
+ } }, n.exports = p;
1233
1233
  }, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(t, n, i) {
1234
1234
  if (i.base64 = !0, i.array = !0, i.string = !0, i.arraybuffer = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", i.nodebuffer = typeof Buffer < "u", i.uint8array = typeof Uint8Array < "u", typeof ArrayBuffer > "u") i.blob = !1;
1235
1235
  else {
@@ -1251,34 +1251,34 @@ function no() {
1251
1251
  i.nodestream = !1;
1252
1252
  }
1253
1253
  }, { "readable-stream": 16 }], 31: [function(t, n, i) {
1254
- for (var a = t("./utils"), s = t("./support"), o = t("./nodejsUtils"), d = t("./stream/GenericWorker"), p = new Array(256), g = 0; g < 256; g++) p[g] = 252 <= g ? 6 : 248 <= g ? 5 : 240 <= g ? 4 : 224 <= g ? 3 : 192 <= g ? 2 : 1;
1255
- p[254] = p[254] = 1;
1256
- function v() {
1254
+ for (var a = t("./utils"), s = t("./support"), o = t("./nodejsUtils"), d = t("./stream/GenericWorker"), f = new Array(256), v = 0; v < 256; v++) f[v] = 252 <= v ? 6 : 248 <= v ? 5 : 240 <= v ? 4 : 224 <= v ? 3 : 192 <= v ? 2 : 1;
1255
+ f[254] = f[254] = 1;
1256
+ function b() {
1257
1257
  d.call(this, "utf-8 decode"), this.leftOver = null;
1258
1258
  }
1259
1259
  function _() {
1260
1260
  d.call(this, "utf-8 encode");
1261
1261
  }
1262
- i.utf8encode = function(f) {
1263
- return s.nodebuffer ? o.newBufferFrom(f, "utf-8") : function(m) {
1264
- var h, w, b, y, S, A = m.length, T = 0;
1265
- for (y = 0; y < A; y++) (64512 & (w = m.charCodeAt(y))) == 55296 && y + 1 < A && (64512 & (b = m.charCodeAt(y + 1))) == 56320 && (w = 65536 + (w - 55296 << 10) + (b - 56320), y++), T += w < 128 ? 1 : w < 2048 ? 2 : w < 65536 ? 3 : 4;
1266
- for (h = s.uint8array ? new Uint8Array(T) : new Array(T), y = S = 0; S < T; y++) (64512 & (w = m.charCodeAt(y))) == 55296 && y + 1 < A && (64512 & (b = m.charCodeAt(y + 1))) == 56320 && (w = 65536 + (w - 55296 << 10) + (b - 56320), y++), w < 128 ? h[S++] = w : (w < 2048 ? h[S++] = 192 | w >>> 6 : (w < 65536 ? h[S++] = 224 | w >>> 12 : (h[S++] = 240 | w >>> 18, h[S++] = 128 | w >>> 12 & 63), h[S++] = 128 | w >>> 6 & 63), h[S++] = 128 | 63 & w);
1262
+ i.utf8encode = function(p) {
1263
+ return s.nodebuffer ? o.newBufferFrom(p, "utf-8") : function(m) {
1264
+ var h, w, g, y, S, A = m.length, T = 0;
1265
+ for (y = 0; y < A; y++) (64512 & (w = m.charCodeAt(y))) == 55296 && y + 1 < A && (64512 & (g = m.charCodeAt(y + 1))) == 56320 && (w = 65536 + (w - 55296 << 10) + (g - 56320), y++), T += w < 128 ? 1 : w < 2048 ? 2 : w < 65536 ? 3 : 4;
1266
+ for (h = s.uint8array ? new Uint8Array(T) : new Array(T), y = S = 0; S < T; y++) (64512 & (w = m.charCodeAt(y))) == 55296 && y + 1 < A && (64512 & (g = m.charCodeAt(y + 1))) == 56320 && (w = 65536 + (w - 55296 << 10) + (g - 56320), y++), w < 128 ? h[S++] = w : (w < 2048 ? h[S++] = 192 | w >>> 6 : (w < 65536 ? h[S++] = 224 | w >>> 12 : (h[S++] = 240 | w >>> 18, h[S++] = 128 | w >>> 12 & 63), h[S++] = 128 | w >>> 6 & 63), h[S++] = 128 | 63 & w);
1267
1267
  return h;
1268
- }(f);
1269
- }, i.utf8decode = function(f) {
1270
- return s.nodebuffer ? a.transformTo("nodebuffer", f).toString("utf-8") : function(m) {
1271
- var h, w, b, y, S = m.length, A = new Array(2 * S);
1272
- for (h = w = 0; h < S; ) if ((b = m[h++]) < 128) A[w++] = b;
1273
- else if (4 < (y = p[b])) A[w++] = 65533, h += y - 1;
1268
+ }(p);
1269
+ }, i.utf8decode = function(p) {
1270
+ return s.nodebuffer ? a.transformTo("nodebuffer", p).toString("utf-8") : function(m) {
1271
+ var h, w, g, y, S = m.length, A = new Array(2 * S);
1272
+ for (h = w = 0; h < S; ) if ((g = m[h++]) < 128) A[w++] = g;
1273
+ else if (4 < (y = f[g])) A[w++] = 65533, h += y - 1;
1274
1274
  else {
1275
- for (b &= y === 2 ? 31 : y === 3 ? 15 : 7; 1 < y && h < S; ) b = b << 6 | 63 & m[h++], y--;
1276
- 1 < y ? A[w++] = 65533 : b < 65536 ? A[w++] = b : (b -= 65536, A[w++] = 55296 | b >> 10 & 1023, A[w++] = 56320 | 1023 & b);
1275
+ for (g &= y === 2 ? 31 : y === 3 ? 15 : 7; 1 < y && h < S; ) g = g << 6 | 63 & m[h++], y--;
1276
+ 1 < y ? A[w++] = 65533 : g < 65536 ? A[w++] = g : (g -= 65536, A[w++] = 55296 | g >> 10 & 1023, A[w++] = 56320 | 1023 & g);
1277
1277
  }
1278
1278
  return A.length !== w && (A.subarray ? A = A.subarray(0, w) : A.length = w), a.applyFromCharCode(A);
1279
- }(f = a.transformTo(s.uint8array ? "uint8array" : "array", f));
1280
- }, a.inherits(v, d), v.prototype.processChunk = function(f) {
1281
- var m = a.transformTo(s.uint8array ? "uint8array" : "array", f.data);
1279
+ }(p = a.transformTo(s.uint8array ? "uint8array" : "array", p));
1280
+ }, a.inherits(b, d), b.prototype.processChunk = function(p) {
1281
+ var m = a.transformTo(s.uint8array ? "uint8array" : "array", p.data);
1282
1282
  if (this.leftOver && this.leftOver.length) {
1283
1283
  if (s.uint8array) {
1284
1284
  var h = m;
@@ -1289,21 +1289,21 @@ function no() {
1289
1289
  var w = function(y, S) {
1290
1290
  var A;
1291
1291
  for ((S = S || y.length) > y.length && (S = y.length), A = S - 1; 0 <= A && (192 & y[A]) == 128; ) A--;
1292
- return A < 0 || A === 0 ? S : A + p[y[A]] > S ? A : S;
1293
- }(m), b = m;
1294
- w !== m.length && (s.uint8array ? (b = m.subarray(0, w), this.leftOver = m.subarray(w, m.length)) : (b = m.slice(0, w), this.leftOver = m.slice(w, m.length))), this.push({ data: i.utf8decode(b), meta: f.meta });
1295
- }, v.prototype.flush = function() {
1292
+ return A < 0 || A === 0 ? S : A + f[y[A]] > S ? A : S;
1293
+ }(m), g = m;
1294
+ w !== m.length && (s.uint8array ? (g = m.subarray(0, w), this.leftOver = m.subarray(w, m.length)) : (g = m.slice(0, w), this.leftOver = m.slice(w, m.length))), this.push({ data: i.utf8decode(g), meta: p.meta });
1295
+ }, b.prototype.flush = function() {
1296
1296
  this.leftOver && this.leftOver.length && (this.push({ data: i.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
1297
- }, i.Utf8DecodeWorker = v, a.inherits(_, d), _.prototype.processChunk = function(f) {
1298
- this.push({ data: i.utf8encode(f.data), meta: f.meta });
1297
+ }, i.Utf8DecodeWorker = b, a.inherits(_, d), _.prototype.processChunk = function(p) {
1298
+ this.push({ data: i.utf8encode(p.data), meta: p.meta });
1299
1299
  }, i.Utf8EncodeWorker = _;
1300
1300
  }, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(t, n, i) {
1301
1301
  var a = t("./support"), s = t("./base64"), o = t("./nodejsUtils"), d = t("./external");
1302
- function p(h) {
1302
+ function f(h) {
1303
1303
  return h;
1304
1304
  }
1305
- function g(h, w) {
1306
- for (var b = 0; b < h.length; ++b) w[b] = 255 & h.charCodeAt(b);
1305
+ function v(h, w) {
1306
+ for (var g = 0; g < h.length; ++g) w[g] = 255 & h.charCodeAt(g);
1307
1307
  return w;
1308
1308
  }
1309
1309
  t("setimmediate"), i.newBlob = function(h, w) {
@@ -1312,20 +1312,20 @@ function no() {
1312
1312
  return new Blob([h], { type: w });
1313
1313
  } catch {
1314
1314
  try {
1315
- var b = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
1316
- return b.append(h), b.getBlob(w);
1315
+ var g = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
1316
+ return g.append(h), g.getBlob(w);
1317
1317
  } catch {
1318
1318
  throw new Error("Bug : can't construct the Blob.");
1319
1319
  }
1320
1320
  }
1321
1321
  };
1322
- var v = { stringifyByChunk: function(h, w, b) {
1322
+ var b = { stringifyByChunk: function(h, w, g) {
1323
1323
  var y = [], S = 0, A = h.length;
1324
- if (A <= b) return String.fromCharCode.apply(null, h);
1325
- for (; S < A; ) w === "array" || w === "nodebuffer" ? y.push(String.fromCharCode.apply(null, h.slice(S, Math.min(S + b, A)))) : y.push(String.fromCharCode.apply(null, h.subarray(S, Math.min(S + b, A)))), S += b;
1324
+ if (A <= g) return String.fromCharCode.apply(null, h);
1325
+ for (; S < A; ) w === "array" || w === "nodebuffer" ? y.push(String.fromCharCode.apply(null, h.slice(S, Math.min(S + g, A)))) : y.push(String.fromCharCode.apply(null, h.subarray(S, Math.min(S + g, A)))), S += g;
1326
1326
  return y.join("");
1327
1327
  }, stringifyByChar: function(h) {
1328
- for (var w = "", b = 0; b < h.length; b++) w += String.fromCharCode(h[b]);
1328
+ for (var w = "", g = 0; g < h.length; g++) w += String.fromCharCode(h[g]);
1329
1329
  return w;
1330
1330
  }, applyCanBeUsed: { uint8array: function() {
1331
1331
  try {
@@ -1341,29 +1341,29 @@ function no() {
1341
1341
  }
1342
1342
  }() } };
1343
1343
  function _(h) {
1344
- var w = 65536, b = i.getTypeOf(h), y = !0;
1345
- if (b === "uint8array" ? y = v.applyCanBeUsed.uint8array : b === "nodebuffer" && (y = v.applyCanBeUsed.nodebuffer), y) for (; 1 < w; ) try {
1346
- return v.stringifyByChunk(h, b, w);
1344
+ var w = 65536, g = i.getTypeOf(h), y = !0;
1345
+ if (g === "uint8array" ? y = b.applyCanBeUsed.uint8array : g === "nodebuffer" && (y = b.applyCanBeUsed.nodebuffer), y) for (; 1 < w; ) try {
1346
+ return b.stringifyByChunk(h, g, w);
1347
1347
  } catch {
1348
1348
  w = Math.floor(w / 2);
1349
1349
  }
1350
- return v.stringifyByChar(h);
1350
+ return b.stringifyByChar(h);
1351
1351
  }
1352
- function f(h, w) {
1353
- for (var b = 0; b < h.length; b++) w[b] = h[b];
1352
+ function p(h, w) {
1353
+ for (var g = 0; g < h.length; g++) w[g] = h[g];
1354
1354
  return w;
1355
1355
  }
1356
1356
  i.applyFromCharCode = _;
1357
1357
  var m = {};
1358
- m.string = { string: p, array: function(h) {
1359
- return g(h, new Array(h.length));
1358
+ m.string = { string: f, array: function(h) {
1359
+ return v(h, new Array(h.length));
1360
1360
  }, arraybuffer: function(h) {
1361
1361
  return m.string.uint8array(h).buffer;
1362
1362
  }, uint8array: function(h) {
1363
- return g(h, new Uint8Array(h.length));
1363
+ return v(h, new Uint8Array(h.length));
1364
1364
  }, nodebuffer: function(h) {
1365
- return g(h, o.allocBuffer(h.length));
1366
- } }, m.array = { string: _, array: p, arraybuffer: function(h) {
1365
+ return v(h, o.allocBuffer(h.length));
1366
+ } }, m.array = { string: _, array: f, arraybuffer: function(h) {
1367
1367
  return new Uint8Array(h).buffer;
1368
1368
  }, uint8array: function(h) {
1369
1369
  return new Uint8Array(h);
@@ -1372,55 +1372,55 @@ function no() {
1372
1372
  } }, m.arraybuffer = { string: function(h) {
1373
1373
  return _(new Uint8Array(h));
1374
1374
  }, array: function(h) {
1375
- return f(new Uint8Array(h), new Array(h.byteLength));
1376
- }, arraybuffer: p, uint8array: function(h) {
1375
+ return p(new Uint8Array(h), new Array(h.byteLength));
1376
+ }, arraybuffer: f, uint8array: function(h) {
1377
1377
  return new Uint8Array(h);
1378
1378
  }, nodebuffer: function(h) {
1379
1379
  return o.newBufferFrom(new Uint8Array(h));
1380
1380
  } }, m.uint8array = { string: _, array: function(h) {
1381
- return f(h, new Array(h.length));
1381
+ return p(h, new Array(h.length));
1382
1382
  }, arraybuffer: function(h) {
1383
1383
  return h.buffer;
1384
- }, uint8array: p, nodebuffer: function(h) {
1384
+ }, uint8array: f, nodebuffer: function(h) {
1385
1385
  return o.newBufferFrom(h);
1386
1386
  } }, m.nodebuffer = { string: _, array: function(h) {
1387
- return f(h, new Array(h.length));
1387
+ return p(h, new Array(h.length));
1388
1388
  }, arraybuffer: function(h) {
1389
1389
  return m.nodebuffer.uint8array(h).buffer;
1390
1390
  }, uint8array: function(h) {
1391
- return f(h, new Uint8Array(h.length));
1392
- }, nodebuffer: p }, i.transformTo = function(h, w) {
1391
+ return p(h, new Uint8Array(h.length));
1392
+ }, nodebuffer: f }, i.transformTo = function(h, w) {
1393
1393
  if (w = w || "", !h) return w;
1394
1394
  i.checkSupport(h);
1395
- var b = i.getTypeOf(w);
1396
- return m[b][h](w);
1395
+ var g = i.getTypeOf(w);
1396
+ return m[g][h](w);
1397
1397
  }, i.resolve = function(h) {
1398
- for (var w = h.split("/"), b = [], y = 0; y < w.length; y++) {
1398
+ for (var w = h.split("/"), g = [], y = 0; y < w.length; y++) {
1399
1399
  var S = w[y];
1400
- S === "." || S === "" && y !== 0 && y !== w.length - 1 || (S === ".." ? b.pop() : b.push(S));
1400
+ S === "." || S === "" && y !== 0 && y !== w.length - 1 || (S === ".." ? g.pop() : g.push(S));
1401
1401
  }
1402
- return b.join("/");
1402
+ return g.join("/");
1403
1403
  }, i.getTypeOf = function(h) {
1404
1404
  return typeof h == "string" ? "string" : Object.prototype.toString.call(h) === "[object Array]" ? "array" : a.nodebuffer && o.isBuffer(h) ? "nodebuffer" : a.uint8array && h instanceof Uint8Array ? "uint8array" : a.arraybuffer && h instanceof ArrayBuffer ? "arraybuffer" : void 0;
1405
1405
  }, i.checkSupport = function(h) {
1406
1406
  if (!a[h.toLowerCase()]) throw new Error(h + " is not supported by this platform");
1407
1407
  }, i.MAX_VALUE_16BITS = 65535, i.MAX_VALUE_32BITS = -1, i.pretty = function(h) {
1408
- var w, b, y = "";
1409
- for (b = 0; b < (h || "").length; b++) y += "\\x" + ((w = h.charCodeAt(b)) < 16 ? "0" : "") + w.toString(16).toUpperCase();
1408
+ var w, g, y = "";
1409
+ for (g = 0; g < (h || "").length; g++) y += "\\x" + ((w = h.charCodeAt(g)) < 16 ? "0" : "") + w.toString(16).toUpperCase();
1410
1410
  return y;
1411
- }, i.delay = function(h, w, b) {
1411
+ }, i.delay = function(h, w, g) {
1412
1412
  setImmediate(function() {
1413
- h.apply(b || null, w || []);
1413
+ h.apply(g || null, w || []);
1414
1414
  });
1415
1415
  }, i.inherits = function(h, w) {
1416
- function b() {
1416
+ function g() {
1417
1417
  }
1418
- b.prototype = w.prototype, h.prototype = new b();
1418
+ g.prototype = w.prototype, h.prototype = new g();
1419
1419
  }, i.extend = function() {
1420
- var h, w, b = {};
1421
- for (h = 0; h < arguments.length; h++) for (w in arguments[h]) Object.prototype.hasOwnProperty.call(arguments[h], w) && b[w] === void 0 && (b[w] = arguments[h][w]);
1422
- return b;
1423
- }, i.prepareContent = function(h, w, b, y, S) {
1420
+ var h, w, g = {};
1421
+ for (h = 0; h < arguments.length; h++) for (w in arguments[h]) Object.prototype.hasOwnProperty.call(arguments[h], w) && g[w] === void 0 && (g[w] = arguments[h][w]);
1422
+ return g;
1423
+ }, i.prepareContent = function(h, w, g, y, S) {
1424
1424
  return d.Promise.resolve(w).then(function(A) {
1425
1425
  return a.blob && (A instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(A)) !== -1) && typeof FileReader < "u" ? new d.Promise(function(T, U) {
1426
1426
  var C = new FileReader();
@@ -1432,127 +1432,127 @@ function no() {
1432
1432
  }) : A;
1433
1433
  }).then(function(A) {
1434
1434
  var T = i.getTypeOf(A);
1435
- return T ? (T === "arraybuffer" ? A = i.transformTo("uint8array", A) : T === "string" && (S ? A = s.decode(A) : b && y !== !0 && (A = function(U) {
1436
- return g(U, a.uint8array ? new Uint8Array(U.length) : new Array(U.length));
1435
+ return T ? (T === "arraybuffer" ? A = i.transformTo("uint8array", A) : T === "string" && (S ? A = s.decode(A) : g && y !== !0 && (A = function(U) {
1436
+ return v(U, a.uint8array ? new Uint8Array(U.length) : new Array(U.length));
1437
1437
  }(A))), A) : d.Promise.reject(new Error("Can't read the data of '" + h + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
1438
1438
  });
1439
1439
  };
1440
1440
  }, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(t, n, i) {
1441
- var a = t("./reader/readerFor"), s = t("./utils"), o = t("./signature"), d = t("./zipEntry"), p = t("./support");
1442
- function g(v) {
1443
- this.files = [], this.loadOptions = v;
1441
+ var a = t("./reader/readerFor"), s = t("./utils"), o = t("./signature"), d = t("./zipEntry"), f = t("./support");
1442
+ function v(b) {
1443
+ this.files = [], this.loadOptions = b;
1444
1444
  }
1445
- g.prototype = { checkSignature: function(v) {
1446
- if (!this.reader.readAndCheckSignature(v)) {
1445
+ v.prototype = { checkSignature: function(b) {
1446
+ if (!this.reader.readAndCheckSignature(b)) {
1447
1447
  this.reader.index -= 4;
1448
1448
  var _ = this.reader.readString(4);
1449
- throw new Error("Corrupted zip or bug: unexpected signature (" + s.pretty(_) + ", expected " + s.pretty(v) + ")");
1449
+ throw new Error("Corrupted zip or bug: unexpected signature (" + s.pretty(_) + ", expected " + s.pretty(b) + ")");
1450
1450
  }
1451
- }, isSignature: function(v, _) {
1452
- var f = this.reader.index;
1453
- this.reader.setIndex(v);
1451
+ }, isSignature: function(b, _) {
1452
+ var p = this.reader.index;
1453
+ this.reader.setIndex(b);
1454
1454
  var m = this.reader.readString(4) === _;
1455
- return this.reader.setIndex(f), m;
1455
+ return this.reader.setIndex(p), m;
1456
1456
  }, readBlockEndOfCentral: function() {
1457
1457
  this.diskNumber = this.reader.readInt(2), this.diskWithCentralDirStart = this.reader.readInt(2), this.centralDirRecordsOnThisDisk = this.reader.readInt(2), this.centralDirRecords = this.reader.readInt(2), this.centralDirSize = this.reader.readInt(4), this.centralDirOffset = this.reader.readInt(4), this.zipCommentLength = this.reader.readInt(2);
1458
- var v = this.reader.readData(this.zipCommentLength), _ = p.uint8array ? "uint8array" : "array", f = s.transformTo(_, v);
1459
- this.zipComment = this.loadOptions.decodeFileName(f);
1458
+ var b = this.reader.readData(this.zipCommentLength), _ = f.uint8array ? "uint8array" : "array", p = s.transformTo(_, b);
1459
+ this.zipComment = this.loadOptions.decodeFileName(p);
1460
1460
  }, readBlockZip64EndOfCentral: function() {
1461
1461
  this.zip64EndOfCentralSize = this.reader.readInt(8), this.reader.skip(4), this.diskNumber = this.reader.readInt(4), this.diskWithCentralDirStart = this.reader.readInt(4), this.centralDirRecordsOnThisDisk = this.reader.readInt(8), this.centralDirRecords = this.reader.readInt(8), this.centralDirSize = this.reader.readInt(8), this.centralDirOffset = this.reader.readInt(8), this.zip64ExtensibleData = {};
1462
- for (var v, _, f, m = this.zip64EndOfCentralSize - 44; 0 < m; ) v = this.reader.readInt(2), _ = this.reader.readInt(4), f = this.reader.readData(_), this.zip64ExtensibleData[v] = { id: v, length: _, value: f };
1462
+ for (var b, _, p, m = this.zip64EndOfCentralSize - 44; 0 < m; ) b = this.reader.readInt(2), _ = this.reader.readInt(4), p = this.reader.readData(_), this.zip64ExtensibleData[b] = { id: b, length: _, value: p };
1463
1463
  }, readBlockZip64EndOfCentralLocator: function() {
1464
1464
  if (this.diskWithZip64CentralDirStart = this.reader.readInt(4), this.relativeOffsetEndOfZip64CentralDir = this.reader.readInt(8), this.disksCount = this.reader.readInt(4), 1 < this.disksCount) throw new Error("Multi-volumes zip are not supported");
1465
1465
  }, readLocalFiles: function() {
1466
- var v, _;
1467
- for (v = 0; v < this.files.length; v++) _ = this.files[v], this.reader.setIndex(_.localHeaderOffset), this.checkSignature(o.LOCAL_FILE_HEADER), _.readLocalPart(this.reader), _.handleUTF8(), _.processAttributes();
1466
+ var b, _;
1467
+ for (b = 0; b < this.files.length; b++) _ = this.files[b], this.reader.setIndex(_.localHeaderOffset), this.checkSignature(o.LOCAL_FILE_HEADER), _.readLocalPart(this.reader), _.handleUTF8(), _.processAttributes();
1468
1468
  }, readCentralDir: function() {
1469
- var v;
1470
- for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER); ) (v = new d({ zip64: this.zip64 }, this.loadOptions)).readCentralPart(this.reader), this.files.push(v);
1469
+ var b;
1470
+ for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER); ) (b = new d({ zip64: this.zip64 }, this.loadOptions)).readCentralPart(this.reader), this.files.push(b);
1471
1471
  if (this.centralDirRecords !== this.files.length && this.centralDirRecords !== 0 && this.files.length === 0) throw new Error("Corrupted zip or bug: expected " + this.centralDirRecords + " records in central dir, got " + this.files.length);
1472
1472
  }, readEndOfCentral: function() {
1473
- var v = this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);
1474
- if (v < 0) throw this.isSignature(0, o.LOCAL_FILE_HEADER) ? new Error("Corrupted zip: can't find end of central directory") : new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");
1475
- this.reader.setIndex(v);
1476
- var _ = v;
1473
+ var b = this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);
1474
+ if (b < 0) throw this.isSignature(0, o.LOCAL_FILE_HEADER) ? new Error("Corrupted zip: can't find end of central directory") : new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");
1475
+ this.reader.setIndex(b);
1476
+ var _ = b;
1477
1477
  if (this.checkSignature(o.CENTRAL_DIRECTORY_END), this.readBlockEndOfCentral(), this.diskNumber === s.MAX_VALUE_16BITS || this.diskWithCentralDirStart === s.MAX_VALUE_16BITS || this.centralDirRecordsOnThisDisk === s.MAX_VALUE_16BITS || this.centralDirRecords === s.MAX_VALUE_16BITS || this.centralDirSize === s.MAX_VALUE_32BITS || this.centralDirOffset === s.MAX_VALUE_32BITS) {
1478
- if (this.zip64 = !0, (v = this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR)) < 0) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");
1479
- if (this.reader.setIndex(v), this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR), this.readBlockZip64EndOfCentralLocator(), !this.isSignature(this.relativeOffsetEndOfZip64CentralDir, o.ZIP64_CENTRAL_DIRECTORY_END) && (this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END), this.relativeOffsetEndOfZip64CentralDir < 0)) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");
1478
+ if (this.zip64 = !0, (b = this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR)) < 0) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");
1479
+ if (this.reader.setIndex(b), this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR), this.readBlockZip64EndOfCentralLocator(), !this.isSignature(this.relativeOffsetEndOfZip64CentralDir, o.ZIP64_CENTRAL_DIRECTORY_END) && (this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END), this.relativeOffsetEndOfZip64CentralDir < 0)) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");
1480
1480
  this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir), this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END), this.readBlockZip64EndOfCentral();
1481
1481
  }
1482
- var f = this.centralDirOffset + this.centralDirSize;
1483
- this.zip64 && (f += 20, f += 12 + this.zip64EndOfCentralSize);
1484
- var m = _ - f;
1482
+ var p = this.centralDirOffset + this.centralDirSize;
1483
+ this.zip64 && (p += 20, p += 12 + this.zip64EndOfCentralSize);
1484
+ var m = _ - p;
1485
1485
  if (0 < m) this.isSignature(_, o.CENTRAL_FILE_HEADER) || (this.reader.zero = m);
1486
1486
  else if (m < 0) throw new Error("Corrupted zip: missing " + Math.abs(m) + " bytes.");
1487
- }, prepareReader: function(v) {
1488
- this.reader = a(v);
1489
- }, load: function(v) {
1490
- this.prepareReader(v), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
1491
- } }, n.exports = g;
1487
+ }, prepareReader: function(b) {
1488
+ this.reader = a(b);
1489
+ }, load: function(b) {
1490
+ this.prepareReader(b), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
1491
+ } }, n.exports = v;
1492
1492
  }, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(t, n, i) {
1493
- var a = t("./reader/readerFor"), s = t("./utils"), o = t("./compressedObject"), d = t("./crc32"), p = t("./utf8"), g = t("./compressions"), v = t("./support");
1494
- function _(f, m) {
1495
- this.options = f, this.loadOptions = m;
1493
+ var a = t("./reader/readerFor"), s = t("./utils"), o = t("./compressedObject"), d = t("./crc32"), f = t("./utf8"), v = t("./compressions"), b = t("./support");
1494
+ function _(p, m) {
1495
+ this.options = p, this.loadOptions = m;
1496
1496
  }
1497
1497
  _.prototype = { isEncrypted: function() {
1498
1498
  return (1 & this.bitFlag) == 1;
1499
1499
  }, useUTF8: function() {
1500
1500
  return (2048 & this.bitFlag) == 2048;
1501
- }, readLocalPart: function(f) {
1501
+ }, readLocalPart: function(p) {
1502
1502
  var m, h;
1503
- if (f.skip(22), this.fileNameLength = f.readInt(2), h = f.readInt(2), this.fileName = f.readData(this.fileNameLength), f.skip(h), 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)");
1503
+ if (p.skip(22), this.fileNameLength = p.readInt(2), h = p.readInt(2), this.fileName = p.readData(this.fileNameLength), p.skip(h), 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)");
1504
1504
  if ((m = function(w) {
1505
- for (var b in g) if (Object.prototype.hasOwnProperty.call(g, b) && g[b].magic === w) return g[b];
1505
+ for (var g in v) if (Object.prototype.hasOwnProperty.call(v, g) && v[g].magic === w) return v[g];
1506
1506
  return null;
1507
1507
  }(this.compressionMethod)) === null) throw new Error("Corrupted zip : compression " + s.pretty(this.compressionMethod) + " unknown (inner file : " + s.transformTo("string", this.fileName) + ")");
1508
- this.decompressed = new o(this.compressedSize, this.uncompressedSize, this.crc32, m, f.readData(this.compressedSize));
1509
- }, readCentralPart: function(f) {
1510
- this.versionMadeBy = f.readInt(2), f.skip(2), this.bitFlag = f.readInt(2), this.compressionMethod = f.readString(2), this.date = f.readDate(), this.crc32 = f.readInt(4), this.compressedSize = f.readInt(4), this.uncompressedSize = f.readInt(4);
1511
- var m = f.readInt(2);
1512
- if (this.extraFieldsLength = f.readInt(2), this.fileCommentLength = f.readInt(2), this.diskNumberStart = f.readInt(2), this.internalFileAttributes = f.readInt(2), this.externalFileAttributes = f.readInt(4), this.localHeaderOffset = f.readInt(4), this.isEncrypted()) throw new Error("Encrypted zip are not supported");
1513
- f.skip(m), this.readExtraFields(f), this.parseZIP64ExtraField(f), this.fileComment = f.readData(this.fileCommentLength);
1508
+ this.decompressed = new o(this.compressedSize, this.uncompressedSize, this.crc32, m, p.readData(this.compressedSize));
1509
+ }, readCentralPart: function(p) {
1510
+ this.versionMadeBy = p.readInt(2), p.skip(2), this.bitFlag = p.readInt(2), this.compressionMethod = p.readString(2), this.date = p.readDate(), this.crc32 = p.readInt(4), this.compressedSize = p.readInt(4), this.uncompressedSize = p.readInt(4);
1511
+ var m = p.readInt(2);
1512
+ if (this.extraFieldsLength = p.readInt(2), this.fileCommentLength = p.readInt(2), this.diskNumberStart = p.readInt(2), this.internalFileAttributes = p.readInt(2), this.externalFileAttributes = p.readInt(4), this.localHeaderOffset = p.readInt(4), this.isEncrypted()) throw new Error("Encrypted zip are not supported");
1513
+ p.skip(m), this.readExtraFields(p), this.parseZIP64ExtraField(p), this.fileComment = p.readData(this.fileCommentLength);
1514
1514
  }, processAttributes: function() {
1515
1515
  this.unixPermissions = null, this.dosPermissions = null;
1516
- var f = this.versionMadeBy >> 8;
1517
- this.dir = !!(16 & this.externalFileAttributes), f == 0 && (this.dosPermissions = 63 & this.externalFileAttributes), f == 3 && (this.unixPermissions = this.externalFileAttributes >> 16 & 65535), this.dir || this.fileNameStr.slice(-1) !== "/" || (this.dir = !0);
1516
+ var p = this.versionMadeBy >> 8;
1517
+ this.dir = !!(16 & this.externalFileAttributes), p == 0 && (this.dosPermissions = 63 & this.externalFileAttributes), p == 3 && (this.unixPermissions = this.externalFileAttributes >> 16 & 65535), this.dir || this.fileNameStr.slice(-1) !== "/" || (this.dir = !0);
1518
1518
  }, parseZIP64ExtraField: function() {
1519
1519
  if (this.extraFields[1]) {
1520
- var f = a(this.extraFields[1].value);
1521
- this.uncompressedSize === s.MAX_VALUE_32BITS && (this.uncompressedSize = f.readInt(8)), this.compressedSize === s.MAX_VALUE_32BITS && (this.compressedSize = f.readInt(8)), this.localHeaderOffset === s.MAX_VALUE_32BITS && (this.localHeaderOffset = f.readInt(8)), this.diskNumberStart === s.MAX_VALUE_32BITS && (this.diskNumberStart = f.readInt(4));
1520
+ var p = a(this.extraFields[1].value);
1521
+ this.uncompressedSize === s.MAX_VALUE_32BITS && (this.uncompressedSize = p.readInt(8)), this.compressedSize === s.MAX_VALUE_32BITS && (this.compressedSize = p.readInt(8)), this.localHeaderOffset === s.MAX_VALUE_32BITS && (this.localHeaderOffset = p.readInt(8)), this.diskNumberStart === s.MAX_VALUE_32BITS && (this.diskNumberStart = p.readInt(4));
1522
1522
  }
1523
- }, readExtraFields: function(f) {
1524
- var m, h, w, b = f.index + this.extraFieldsLength;
1525
- for (this.extraFields || (this.extraFields = {}); f.index + 4 < b; ) m = f.readInt(2), h = f.readInt(2), w = f.readData(h), this.extraFields[m] = { id: m, length: h, value: w };
1526
- f.setIndex(b);
1523
+ }, readExtraFields: function(p) {
1524
+ var m, h, w, g = p.index + this.extraFieldsLength;
1525
+ for (this.extraFields || (this.extraFields = {}); p.index + 4 < g; ) m = p.readInt(2), h = p.readInt(2), w = p.readData(h), this.extraFields[m] = { id: m, length: h, value: w };
1526
+ p.setIndex(g);
1527
1527
  }, handleUTF8: function() {
1528
- var f = v.uint8array ? "uint8array" : "array";
1529
- if (this.useUTF8()) this.fileNameStr = p.utf8decode(this.fileName), this.fileCommentStr = p.utf8decode(this.fileComment);
1528
+ var p = b.uint8array ? "uint8array" : "array";
1529
+ if (this.useUTF8()) this.fileNameStr = f.utf8decode(this.fileName), this.fileCommentStr = f.utf8decode(this.fileComment);
1530
1530
  else {
1531
1531
  var m = this.findExtraFieldUnicodePath();
1532
1532
  if (m !== null) this.fileNameStr = m;
1533
1533
  else {
1534
- var h = s.transformTo(f, this.fileName);
1534
+ var h = s.transformTo(p, this.fileName);
1535
1535
  this.fileNameStr = this.loadOptions.decodeFileName(h);
1536
1536
  }
1537
1537
  var w = this.findExtraFieldUnicodeComment();
1538
1538
  if (w !== null) this.fileCommentStr = w;
1539
1539
  else {
1540
- var b = s.transformTo(f, this.fileComment);
1541
- this.fileCommentStr = this.loadOptions.decodeFileName(b);
1540
+ var g = s.transformTo(p, this.fileComment);
1541
+ this.fileCommentStr = this.loadOptions.decodeFileName(g);
1542
1542
  }
1543
1543
  }
1544
1544
  }, findExtraFieldUnicodePath: function() {
1545
- var f = this.extraFields[28789];
1546
- if (f) {
1547
- var m = a(f.value);
1548
- return m.readInt(1) !== 1 || d(this.fileName) !== m.readInt(4) ? null : p.utf8decode(m.readData(f.length - 5));
1545
+ var p = this.extraFields[28789];
1546
+ if (p) {
1547
+ var m = a(p.value);
1548
+ return m.readInt(1) !== 1 || d(this.fileName) !== m.readInt(4) ? null : f.utf8decode(m.readData(p.length - 5));
1549
1549
  }
1550
1550
  return null;
1551
1551
  }, findExtraFieldUnicodeComment: function() {
1552
- var f = this.extraFields[25461];
1553
- if (f) {
1554
- var m = a(f.value);
1555
- return m.readInt(1) !== 1 || d(this.fileComment) !== m.readInt(4) ? null : p.utf8decode(m.readData(f.length - 5));
1552
+ var p = this.extraFields[25461];
1553
+ if (p) {
1554
+ var m = a(p.value);
1555
+ return m.readInt(1) !== 1 || d(this.fileComment) !== m.readInt(4) ? null : f.utf8decode(m.readData(p.length - 5));
1556
1556
  }
1557
1557
  return null;
1558
1558
  } }, n.exports = _;
@@ -1560,17 +1560,17 @@ function no() {
1560
1560
  function a(m, h, w) {
1561
1561
  this.name = m, this.dir = w.dir, this.date = w.date, this.comment = w.comment, this.unixPermissions = w.unixPermissions, this.dosPermissions = w.dosPermissions, this._data = h, this._dataBinary = w.binary, this.options = { compression: w.compression, compressionOptions: w.compressionOptions };
1562
1562
  }
1563
- var s = t("./stream/StreamHelper"), o = t("./stream/DataWorker"), d = t("./utf8"), p = t("./compressedObject"), g = t("./stream/GenericWorker");
1563
+ var s = t("./stream/StreamHelper"), o = t("./stream/DataWorker"), d = t("./utf8"), f = t("./compressedObject"), v = t("./stream/GenericWorker");
1564
1564
  a.prototype = { internalStream: function(m) {
1565
1565
  var h = null, w = "string";
1566
1566
  try {
1567
1567
  if (!m) throw new Error("No output type specified.");
1568
- var b = (w = m.toLowerCase()) === "string" || w === "text";
1568
+ var g = (w = m.toLowerCase()) === "string" || w === "text";
1569
1569
  w !== "binarystring" && w !== "text" || (w = "string"), h = this._decompressWorker();
1570
1570
  var y = !this._dataBinary;
1571
- y && !b && (h = h.pipe(new d.Utf8EncodeWorker())), !y && b && (h = h.pipe(new d.Utf8DecodeWorker()));
1571
+ y && !g && (h = h.pipe(new d.Utf8EncodeWorker())), !y && g && (h = h.pipe(new d.Utf8DecodeWorker()));
1572
1572
  } catch (S) {
1573
- (h = new g("error")).error(S);
1573
+ (h = new v("error")).error(S);
1574
1574
  }
1575
1575
  return new s(h, w, "");
1576
1576
  }, async: function(m, h) {
@@ -1578,23 +1578,23 @@ function no() {
1578
1578
  }, nodeStream: function(m, h) {
1579
1579
  return this.internalStream(m || "nodebuffer").toNodejsStream(h);
1580
1580
  }, _compressWorker: function(m, h) {
1581
- if (this._data instanceof p && this._data.compression.magic === m.magic) return this._data.getCompressedWorker();
1581
+ if (this._data instanceof f && this._data.compression.magic === m.magic) return this._data.getCompressedWorker();
1582
1582
  var w = this._decompressWorker();
1583
- return this._dataBinary || (w = w.pipe(new d.Utf8EncodeWorker())), p.createWorkerFrom(w, m, h);
1583
+ return this._dataBinary || (w = w.pipe(new d.Utf8EncodeWorker())), f.createWorkerFrom(w, m, h);
1584
1584
  }, _decompressWorker: function() {
1585
- return this._data instanceof p ? this._data.getContentWorker() : this._data instanceof g ? this._data : new o(this._data);
1585
+ return this._data instanceof f ? this._data.getContentWorker() : this._data instanceof v ? this._data : new o(this._data);
1586
1586
  } };
1587
- for (var v = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], _ = function() {
1587
+ for (var b = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], _ = function() {
1588
1588
  throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
1589
- }, f = 0; f < v.length; f++) a.prototype[v[f]] = _;
1589
+ }, p = 0; p < b.length; p++) a.prototype[b[p]] = _;
1590
1590
  n.exports = a;
1591
1591
  }, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(t, n, i) {
1592
1592
  (function(a) {
1593
1593
  var s, o, d = a.MutationObserver || a.WebKitMutationObserver;
1594
1594
  if (d) {
1595
- var p = 0, g = new d(m), v = a.document.createTextNode("");
1596
- g.observe(v, { characterData: !0 }), s = function() {
1597
- v.data = p = ++p % 2;
1595
+ var f = 0, v = new d(m), b = a.document.createTextNode("");
1596
+ v.observe(b, { characterData: !0 }), s = function() {
1597
+ b.data = f = ++f % 2;
1598
1598
  };
1599
1599
  } else if (a.setImmediate || a.MessageChannel === void 0) s = "document" in a && "onreadystatechange" in a.document.createElement("script") ? function() {
1600
1600
  var h = a.document.createElement("script");
@@ -1610,122 +1610,122 @@ function no() {
1610
1610
  _.port2.postMessage(0);
1611
1611
  };
1612
1612
  }
1613
- var f = [];
1613
+ var p = [];
1614
1614
  function m() {
1615
1615
  var h, w;
1616
1616
  o = !0;
1617
- for (var b = f.length; b; ) {
1618
- for (w = f, f = [], h = -1; ++h < b; ) w[h]();
1619
- b = f.length;
1617
+ for (var g = p.length; g; ) {
1618
+ for (w = p, p = [], h = -1; ++h < g; ) w[h]();
1619
+ g = p.length;
1620
1620
  }
1621
1621
  o = !1;
1622
1622
  }
1623
1623
  n.exports = function(h) {
1624
- f.push(h) !== 1 || o || s();
1624
+ p.push(h) !== 1 || o || s();
1625
1625
  };
1626
1626
  }).call(this, typeof sr < "u" ? sr : typeof self < "u" ? self : typeof window < "u" ? window : {});
1627
1627
  }, {}], 37: [function(t, n, i) {
1628
1628
  var a = t("immediate");
1629
1629
  function s() {
1630
1630
  }
1631
- var o = {}, d = ["REJECTED"], p = ["FULFILLED"], g = ["PENDING"];
1632
- function v(b) {
1633
- if (typeof b != "function") throw new TypeError("resolver must be a function");
1634
- this.state = g, this.queue = [], this.outcome = void 0, b !== s && h(this, b);
1631
+ var o = {}, d = ["REJECTED"], f = ["FULFILLED"], v = ["PENDING"];
1632
+ function b(g) {
1633
+ if (typeof g != "function") throw new TypeError("resolver must be a function");
1634
+ this.state = v, this.queue = [], this.outcome = void 0, g !== s && h(this, g);
1635
1635
  }
1636
- function _(b, y, S) {
1637
- this.promise = b, typeof y == "function" && (this.onFulfilled = y, this.callFulfilled = this.otherCallFulfilled), typeof S == "function" && (this.onRejected = S, this.callRejected = this.otherCallRejected);
1636
+ function _(g, y, S) {
1637
+ this.promise = g, typeof y == "function" && (this.onFulfilled = y, this.callFulfilled = this.otherCallFulfilled), typeof S == "function" && (this.onRejected = S, this.callRejected = this.otherCallRejected);
1638
1638
  }
1639
- function f(b, y, S) {
1639
+ function p(g, y, S) {
1640
1640
  a(function() {
1641
1641
  var A;
1642
1642
  try {
1643
1643
  A = y(S);
1644
1644
  } catch (T) {
1645
- return o.reject(b, T);
1645
+ return o.reject(g, T);
1646
1646
  }
1647
- A === b ? o.reject(b, new TypeError("Cannot resolve promise with itself")) : o.resolve(b, A);
1647
+ A === g ? o.reject(g, new TypeError("Cannot resolve promise with itself")) : o.resolve(g, A);
1648
1648
  });
1649
1649
  }
1650
- function m(b) {
1651
- var y = b && b.then;
1652
- if (b && (typeof b == "object" || typeof b == "function") && typeof y == "function") return function() {
1653
- y.apply(b, arguments);
1650
+ function m(g) {
1651
+ var y = g && g.then;
1652
+ if (g && (typeof g == "object" || typeof g == "function") && typeof y == "function") return function() {
1653
+ y.apply(g, arguments);
1654
1654
  };
1655
1655
  }
1656
- function h(b, y) {
1656
+ function h(g, y) {
1657
1657
  var S = !1;
1658
1658
  function A(C) {
1659
- S || (S = !0, o.reject(b, C));
1659
+ S || (S = !0, o.reject(g, C));
1660
1660
  }
1661
1661
  function T(C) {
1662
- S || (S = !0, o.resolve(b, C));
1662
+ S || (S = !0, o.resolve(g, C));
1663
1663
  }
1664
1664
  var U = w(function() {
1665
1665
  y(T, A);
1666
1666
  });
1667
1667
  U.status === "error" && A(U.value);
1668
1668
  }
1669
- function w(b, y) {
1669
+ function w(g, y) {
1670
1670
  var S = {};
1671
1671
  try {
1672
- S.value = b(y), S.status = "success";
1672
+ S.value = g(y), S.status = "success";
1673
1673
  } catch (A) {
1674
1674
  S.status = "error", S.value = A;
1675
1675
  }
1676
1676
  return S;
1677
1677
  }
1678
- (n.exports = v).prototype.finally = function(b) {
1679
- if (typeof b != "function") return this;
1678
+ (n.exports = b).prototype.finally = function(g) {
1679
+ if (typeof g != "function") return this;
1680
1680
  var y = this.constructor;
1681
1681
  return this.then(function(S) {
1682
- return y.resolve(b()).then(function() {
1682
+ return y.resolve(g()).then(function() {
1683
1683
  return S;
1684
1684
  });
1685
1685
  }, function(S) {
1686
- return y.resolve(b()).then(function() {
1686
+ return y.resolve(g()).then(function() {
1687
1687
  throw S;
1688
1688
  });
1689
1689
  });
1690
- }, v.prototype.catch = function(b) {
1691
- return this.then(null, b);
1692
- }, v.prototype.then = function(b, y) {
1693
- if (typeof b != "function" && this.state === p || typeof y != "function" && this.state === d) return this;
1690
+ }, b.prototype.catch = function(g) {
1691
+ return this.then(null, g);
1692
+ }, b.prototype.then = function(g, y) {
1693
+ if (typeof g != "function" && this.state === f || typeof y != "function" && this.state === d) return this;
1694
1694
  var S = new this.constructor(s);
1695
- return this.state !== g ? f(S, this.state === p ? b : y, this.outcome) : this.queue.push(new _(S, b, y)), S;
1696
- }, _.prototype.callFulfilled = function(b) {
1697
- o.resolve(this.promise, b);
1698
- }, _.prototype.otherCallFulfilled = function(b) {
1699
- f(this.promise, this.onFulfilled, b);
1700
- }, _.prototype.callRejected = function(b) {
1701
- o.reject(this.promise, b);
1702
- }, _.prototype.otherCallRejected = function(b) {
1703
- f(this.promise, this.onRejected, b);
1704
- }, o.resolve = function(b, y) {
1695
+ return this.state !== v ? p(S, this.state === f ? g : y, this.outcome) : this.queue.push(new _(S, g, y)), S;
1696
+ }, _.prototype.callFulfilled = function(g) {
1697
+ o.resolve(this.promise, g);
1698
+ }, _.prototype.otherCallFulfilled = function(g) {
1699
+ p(this.promise, this.onFulfilled, g);
1700
+ }, _.prototype.callRejected = function(g) {
1701
+ o.reject(this.promise, g);
1702
+ }, _.prototype.otherCallRejected = function(g) {
1703
+ p(this.promise, this.onRejected, g);
1704
+ }, o.resolve = function(g, y) {
1705
1705
  var S = w(m, y);
1706
- if (S.status === "error") return o.reject(b, S.value);
1706
+ if (S.status === "error") return o.reject(g, S.value);
1707
1707
  var A = S.value;
1708
- if (A) h(b, A);
1708
+ if (A) h(g, A);
1709
1709
  else {
1710
- b.state = p, b.outcome = y;
1711
- for (var T = -1, U = b.queue.length; ++T < U; ) b.queue[T].callFulfilled(y);
1710
+ g.state = f, g.outcome = y;
1711
+ for (var T = -1, U = g.queue.length; ++T < U; ) g.queue[T].callFulfilled(y);
1712
1712
  }
1713
- return b;
1714
- }, o.reject = function(b, y) {
1715
- b.state = d, b.outcome = y;
1716
- for (var S = -1, A = b.queue.length; ++S < A; ) b.queue[S].callRejected(y);
1717
- return b;
1718
- }, v.resolve = function(b) {
1719
- return b instanceof this ? b : o.resolve(new this(s), b);
1720
- }, v.reject = function(b) {
1713
+ return g;
1714
+ }, o.reject = function(g, y) {
1715
+ g.state = d, g.outcome = y;
1716
+ for (var S = -1, A = g.queue.length; ++S < A; ) g.queue[S].callRejected(y);
1717
+ return g;
1718
+ }, b.resolve = function(g) {
1719
+ return g instanceof this ? g : o.resolve(new this(s), g);
1720
+ }, b.reject = function(g) {
1721
1721
  var y = new this(s);
1722
- return o.reject(y, b);
1723
- }, v.all = function(b) {
1722
+ return o.reject(y, g);
1723
+ }, b.all = function(g) {
1724
1724
  var y = this;
1725
- if (Object.prototype.toString.call(b) !== "[object Array]") return this.reject(new TypeError("must be an array"));
1726
- var S = b.length, A = !1;
1725
+ if (Object.prototype.toString.call(g) !== "[object Array]") return this.reject(new TypeError("must be an array"));
1726
+ var S = g.length, A = !1;
1727
1727
  if (!S) return this.resolve([]);
1728
- for (var T = new Array(S), U = 0, C = -1, P = new this(s); ++C < S; ) O(b[C], C);
1728
+ for (var T = new Array(S), U = 0, C = -1, P = new this(s); ++C < S; ) O(g[C], C);
1729
1729
  return P;
1730
1730
  function O(V, G) {
1731
1731
  y.resolve(V).then(function(E) {
@@ -1734,12 +1734,12 @@ function no() {
1734
1734
  A || (A = !0, o.reject(P, E));
1735
1735
  });
1736
1736
  }
1737
- }, v.race = function(b) {
1737
+ }, b.race = function(g) {
1738
1738
  var y = this;
1739
- if (Object.prototype.toString.call(b) !== "[object Array]") return this.reject(new TypeError("must be an array"));
1740
- var S = b.length, A = !1;
1739
+ if (Object.prototype.toString.call(g) !== "[object Array]") return this.reject(new TypeError("must be an array"));
1740
+ var S = g.length, A = !1;
1741
1741
  if (!S) return this.resolve([]);
1742
- for (var T = -1, U = new this(s); ++T < S; ) C = b[T], y.resolve(C).then(function(P) {
1742
+ for (var T = -1, U = new this(s); ++T < S; ) C = g[T], y.resolve(C).then(function(P) {
1743
1743
  A || (A = !0, o.resolve(U, P));
1744
1744
  }, function(P) {
1745
1745
  A || (A = !0, o.reject(U, P));
@@ -1751,99 +1751,99 @@ function no() {
1751
1751
  var a = {};
1752
1752
  (0, t("./lib/utils/common").assign)(a, t("./lib/deflate"), t("./lib/inflate"), t("./lib/zlib/constants")), n.exports = a;
1753
1753
  }, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(t, n, i) {
1754
- var a = t("./zlib/deflate"), s = t("./utils/common"), o = t("./utils/strings"), d = t("./zlib/messages"), p = t("./zlib/zstream"), g = Object.prototype.toString, v = 0, _ = -1, f = 0, m = 8;
1755
- function h(b) {
1756
- if (!(this instanceof h)) return new h(b);
1757
- this.options = s.assign({ level: _, method: m, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: f, to: "" }, b || {});
1754
+ var a = t("./zlib/deflate"), s = t("./utils/common"), o = t("./utils/strings"), d = t("./zlib/messages"), f = t("./zlib/zstream"), v = Object.prototype.toString, b = 0, _ = -1, p = 0, m = 8;
1755
+ function h(g) {
1756
+ if (!(this instanceof h)) return new h(g);
1757
+ this.options = s.assign({ level: _, method: m, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: p, to: "" }, g || {});
1758
1758
  var y = this.options;
1759
- y.raw && 0 < y.windowBits ? y.windowBits = -y.windowBits : y.gzip && 0 < y.windowBits && y.windowBits < 16 && (y.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new p(), this.strm.avail_out = 0;
1759
+ y.raw && 0 < y.windowBits ? y.windowBits = -y.windowBits : y.gzip && 0 < y.windowBits && y.windowBits < 16 && (y.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new f(), this.strm.avail_out = 0;
1760
1760
  var S = a.deflateInit2(this.strm, y.level, y.method, y.windowBits, y.memLevel, y.strategy);
1761
- if (S !== v) throw new Error(d[S]);
1761
+ if (S !== b) throw new Error(d[S]);
1762
1762
  if (y.header && a.deflateSetHeader(this.strm, y.header), y.dictionary) {
1763
1763
  var A;
1764
- if (A = typeof y.dictionary == "string" ? o.string2buf(y.dictionary) : g.call(y.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(y.dictionary) : y.dictionary, (S = a.deflateSetDictionary(this.strm, A)) !== v) throw new Error(d[S]);
1764
+ if (A = typeof y.dictionary == "string" ? o.string2buf(y.dictionary) : v.call(y.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(y.dictionary) : y.dictionary, (S = a.deflateSetDictionary(this.strm, A)) !== b) throw new Error(d[S]);
1765
1765
  this._dict_set = !0;
1766
1766
  }
1767
1767
  }
1768
- function w(b, y) {
1768
+ function w(g, y) {
1769
1769
  var S = new h(y);
1770
- if (S.push(b, !0), S.err) throw S.msg || d[S.err];
1770
+ if (S.push(g, !0), S.err) throw S.msg || d[S.err];
1771
1771
  return S.result;
1772
1772
  }
1773
- h.prototype.push = function(b, y) {
1773
+ h.prototype.push = function(g, y) {
1774
1774
  var S, A, T = this.strm, U = this.options.chunkSize;
1775
1775
  if (this.ended) return !1;
1776
- A = y === ~~y ? y : y === !0 ? 4 : 0, typeof b == "string" ? T.input = o.string2buf(b) : g.call(b) === "[object ArrayBuffer]" ? T.input = new Uint8Array(b) : T.input = b, T.next_in = 0, T.avail_in = T.input.length;
1776
+ A = y === ~~y ? y : y === !0 ? 4 : 0, typeof g == "string" ? T.input = o.string2buf(g) : v.call(g) === "[object ArrayBuffer]" ? T.input = new Uint8Array(g) : T.input = g, T.next_in = 0, T.avail_in = T.input.length;
1777
1777
  do {
1778
- if (T.avail_out === 0 && (T.output = new s.Buf8(U), T.next_out = 0, T.avail_out = U), (S = a.deflate(T, A)) !== 1 && S !== v) return this.onEnd(S), !(this.ended = !0);
1778
+ if (T.avail_out === 0 && (T.output = new s.Buf8(U), T.next_out = 0, T.avail_out = U), (S = a.deflate(T, A)) !== 1 && S !== b) return this.onEnd(S), !(this.ended = !0);
1779
1779
  T.avail_out !== 0 && (T.avail_in !== 0 || A !== 4 && A !== 2) || (this.options.to === "string" ? this.onData(o.buf2binstring(s.shrinkBuf(T.output, T.next_out))) : this.onData(s.shrinkBuf(T.output, T.next_out)));
1780
1780
  } while ((0 < T.avail_in || T.avail_out === 0) && S !== 1);
1781
- return A === 4 ? (S = a.deflateEnd(this.strm), this.onEnd(S), this.ended = !0, S === v) : A !== 2 || (this.onEnd(v), !(T.avail_out = 0));
1782
- }, h.prototype.onData = function(b) {
1783
- this.chunks.push(b);
1784
- }, h.prototype.onEnd = function(b) {
1785
- b === v && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = s.flattenChunks(this.chunks)), this.chunks = [], this.err = b, this.msg = this.strm.msg;
1786
- }, i.Deflate = h, i.deflate = w, i.deflateRaw = function(b, y) {
1787
- return (y = y || {}).raw = !0, w(b, y);
1788
- }, i.gzip = function(b, y) {
1789
- return (y = y || {}).gzip = !0, w(b, y);
1781
+ return A === 4 ? (S = a.deflateEnd(this.strm), this.onEnd(S), this.ended = !0, S === b) : A !== 2 || (this.onEnd(b), !(T.avail_out = 0));
1782
+ }, h.prototype.onData = function(g) {
1783
+ this.chunks.push(g);
1784
+ }, h.prototype.onEnd = function(g) {
1785
+ g === b && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = s.flattenChunks(this.chunks)), this.chunks = [], this.err = g, this.msg = this.strm.msg;
1786
+ }, i.Deflate = h, i.deflate = w, i.deflateRaw = function(g, y) {
1787
+ return (y = y || {}).raw = !0, w(g, y);
1788
+ }, i.gzip = function(g, y) {
1789
+ return (y = y || {}).gzip = !0, w(g, y);
1790
1790
  };
1791
1791
  }, { "./utils/common": 41, "./utils/strings": 42, "./zlib/deflate": 46, "./zlib/messages": 51, "./zlib/zstream": 53 }], 40: [function(t, n, i) {
1792
- var a = t("./zlib/inflate"), s = t("./utils/common"), o = t("./utils/strings"), d = t("./zlib/constants"), p = t("./zlib/messages"), g = t("./zlib/zstream"), v = t("./zlib/gzheader"), _ = Object.prototype.toString;
1793
- function f(h) {
1794
- if (!(this instanceof f)) return new f(h);
1792
+ var a = t("./zlib/inflate"), s = t("./utils/common"), o = t("./utils/strings"), d = t("./zlib/constants"), f = t("./zlib/messages"), v = t("./zlib/zstream"), b = t("./zlib/gzheader"), _ = Object.prototype.toString;
1793
+ function p(h) {
1794
+ if (!(this instanceof p)) return new p(h);
1795
1795
  this.options = s.assign({ chunkSize: 16384, windowBits: 0, to: "" }, h || {});
1796
1796
  var w = this.options;
1797
- w.raw && 0 <= w.windowBits && w.windowBits < 16 && (w.windowBits = -w.windowBits, w.windowBits === 0 && (w.windowBits = -15)), !(0 <= w.windowBits && w.windowBits < 16) || h && h.windowBits || (w.windowBits += 32), 15 < w.windowBits && w.windowBits < 48 && (15 & w.windowBits) == 0 && (w.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new g(), this.strm.avail_out = 0;
1798
- var b = a.inflateInit2(this.strm, w.windowBits);
1799
- if (b !== d.Z_OK) throw new Error(p[b]);
1800
- this.header = new v(), a.inflateGetHeader(this.strm, this.header);
1797
+ w.raw && 0 <= w.windowBits && w.windowBits < 16 && (w.windowBits = -w.windowBits, w.windowBits === 0 && (w.windowBits = -15)), !(0 <= w.windowBits && w.windowBits < 16) || h && h.windowBits || (w.windowBits += 32), 15 < w.windowBits && w.windowBits < 48 && (15 & w.windowBits) == 0 && (w.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new v(), this.strm.avail_out = 0;
1798
+ var g = a.inflateInit2(this.strm, w.windowBits);
1799
+ if (g !== d.Z_OK) throw new Error(f[g]);
1800
+ this.header = new b(), a.inflateGetHeader(this.strm, this.header);
1801
1801
  }
1802
1802
  function m(h, w) {
1803
- var b = new f(w);
1804
- if (b.push(h, !0), b.err) throw b.msg || p[b.err];
1805
- return b.result;
1803
+ var g = new p(w);
1804
+ if (g.push(h, !0), g.err) throw g.msg || f[g.err];
1805
+ return g.result;
1806
1806
  }
1807
- f.prototype.push = function(h, w) {
1808
- var b, y, S, A, T, U, C = this.strm, P = this.options.chunkSize, O = this.options.dictionary, V = !1;
1807
+ p.prototype.push = function(h, w) {
1808
+ var g, y, S, A, T, U, C = this.strm, P = this.options.chunkSize, O = this.options.dictionary, V = !1;
1809
1809
  if (this.ended) return !1;
1810
1810
  y = w === ~~w ? w : w === !0 ? d.Z_FINISH : d.Z_NO_FLUSH, typeof h == "string" ? C.input = o.binstring2buf(h) : _.call(h) === "[object ArrayBuffer]" ? C.input = new Uint8Array(h) : C.input = h, C.next_in = 0, C.avail_in = C.input.length;
1811
1811
  do {
1812
- if (C.avail_out === 0 && (C.output = new s.Buf8(P), C.next_out = 0, C.avail_out = P), (b = a.inflate(C, d.Z_NO_FLUSH)) === d.Z_NEED_DICT && O && (U = typeof O == "string" ? o.string2buf(O) : _.call(O) === "[object ArrayBuffer]" ? new Uint8Array(O) : O, b = a.inflateSetDictionary(this.strm, U)), b === d.Z_BUF_ERROR && V === !0 && (b = d.Z_OK, V = !1), b !== d.Z_STREAM_END && b !== d.Z_OK) return this.onEnd(b), !(this.ended = !0);
1813
- C.next_out && (C.avail_out !== 0 && b !== d.Z_STREAM_END && (C.avail_in !== 0 || y !== d.Z_FINISH && y !== d.Z_SYNC_FLUSH) || (this.options.to === "string" ? (S = o.utf8border(C.output, C.next_out), A = C.next_out - S, T = o.buf2string(C.output, S), C.next_out = A, C.avail_out = P - A, A && s.arraySet(C.output, C.output, S, A, 0), this.onData(T)) : this.onData(s.shrinkBuf(C.output, C.next_out)))), C.avail_in === 0 && C.avail_out === 0 && (V = !0);
1814
- } while ((0 < C.avail_in || C.avail_out === 0) && b !== d.Z_STREAM_END);
1815
- return b === d.Z_STREAM_END && (y = d.Z_FINISH), y === d.Z_FINISH ? (b = a.inflateEnd(this.strm), this.onEnd(b), this.ended = !0, b === d.Z_OK) : y !== d.Z_SYNC_FLUSH || (this.onEnd(d.Z_OK), !(C.avail_out = 0));
1816
- }, f.prototype.onData = function(h) {
1812
+ if (C.avail_out === 0 && (C.output = new s.Buf8(P), C.next_out = 0, C.avail_out = P), (g = a.inflate(C, d.Z_NO_FLUSH)) === d.Z_NEED_DICT && O && (U = typeof O == "string" ? o.string2buf(O) : _.call(O) === "[object ArrayBuffer]" ? new Uint8Array(O) : O, g = a.inflateSetDictionary(this.strm, U)), g === d.Z_BUF_ERROR && V === !0 && (g = d.Z_OK, V = !1), g !== d.Z_STREAM_END && g !== d.Z_OK) return this.onEnd(g), !(this.ended = !0);
1813
+ C.next_out && (C.avail_out !== 0 && g !== d.Z_STREAM_END && (C.avail_in !== 0 || y !== d.Z_FINISH && y !== d.Z_SYNC_FLUSH) || (this.options.to === "string" ? (S = o.utf8border(C.output, C.next_out), A = C.next_out - S, T = o.buf2string(C.output, S), C.next_out = A, C.avail_out = P - A, A && s.arraySet(C.output, C.output, S, A, 0), this.onData(T)) : this.onData(s.shrinkBuf(C.output, C.next_out)))), C.avail_in === 0 && C.avail_out === 0 && (V = !0);
1814
+ } while ((0 < C.avail_in || C.avail_out === 0) && g !== d.Z_STREAM_END);
1815
+ return g === d.Z_STREAM_END && (y = d.Z_FINISH), y === d.Z_FINISH ? (g = a.inflateEnd(this.strm), this.onEnd(g), this.ended = !0, g === d.Z_OK) : y !== d.Z_SYNC_FLUSH || (this.onEnd(d.Z_OK), !(C.avail_out = 0));
1816
+ }, p.prototype.onData = function(h) {
1817
1817
  this.chunks.push(h);
1818
- }, f.prototype.onEnd = function(h) {
1818
+ }, p.prototype.onEnd = function(h) {
1819
1819
  h === d.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = s.flattenChunks(this.chunks)), this.chunks = [], this.err = h, this.msg = this.strm.msg;
1820
- }, i.Inflate = f, i.inflate = m, i.inflateRaw = function(h, w) {
1820
+ }, i.Inflate = p, i.inflate = m, i.inflateRaw = function(h, w) {
1821
1821
  return (w = w || {}).raw = !0, m(h, w);
1822
1822
  }, i.ungzip = m;
1823
1823
  }, { "./utils/common": 41, "./utils/strings": 42, "./zlib/constants": 44, "./zlib/gzheader": 47, "./zlib/inflate": 49, "./zlib/messages": 51, "./zlib/zstream": 53 }], 41: [function(t, n, i) {
1824
1824
  var a = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Int32Array < "u";
1825
1825
  i.assign = function(d) {
1826
- for (var p = Array.prototype.slice.call(arguments, 1); p.length; ) {
1827
- var g = p.shift();
1828
- if (g) {
1829
- if (typeof g != "object") throw new TypeError(g + "must be non-object");
1830
- for (var v in g) g.hasOwnProperty(v) && (d[v] = g[v]);
1826
+ for (var f = Array.prototype.slice.call(arguments, 1); f.length; ) {
1827
+ var v = f.shift();
1828
+ if (v) {
1829
+ if (typeof v != "object") throw new TypeError(v + "must be non-object");
1830
+ for (var b in v) v.hasOwnProperty(b) && (d[b] = v[b]);
1831
1831
  }
1832
1832
  }
1833
1833
  return d;
1834
- }, i.shrinkBuf = function(d, p) {
1835
- return d.length === p ? d : d.subarray ? d.subarray(0, p) : (d.length = p, d);
1834
+ }, i.shrinkBuf = function(d, f) {
1835
+ return d.length === f ? d : d.subarray ? d.subarray(0, f) : (d.length = f, d);
1836
1836
  };
1837
- var s = { arraySet: function(d, p, g, v, _) {
1838
- if (p.subarray && d.subarray) d.set(p.subarray(g, g + v), _);
1839
- else for (var f = 0; f < v; f++) d[_ + f] = p[g + f];
1837
+ var s = { arraySet: function(d, f, v, b, _) {
1838
+ if (f.subarray && d.subarray) d.set(f.subarray(v, v + b), _);
1839
+ else for (var p = 0; p < b; p++) d[_ + p] = f[v + p];
1840
1840
  }, flattenChunks: function(d) {
1841
- var p, g, v, _, f, m;
1842
- for (p = v = 0, g = d.length; p < g; p++) v += d[p].length;
1843
- for (m = new Uint8Array(v), p = _ = 0, g = d.length; p < g; p++) f = d[p], m.set(f, _), _ += f.length;
1841
+ var f, v, b, _, p, m;
1842
+ for (f = b = 0, v = d.length; f < v; f++) b += d[f].length;
1843
+ for (m = new Uint8Array(b), f = _ = 0, v = d.length; f < v; f++) p = d[f], m.set(p, _), _ += p.length;
1844
1844
  return m;
1845
- } }, o = { arraySet: function(d, p, g, v, _) {
1846
- for (var f = 0; f < v; f++) d[_ + f] = p[g + f];
1845
+ } }, o = { arraySet: function(d, f, v, b, _) {
1846
+ for (var p = 0; p < b; p++) d[_ + p] = f[v + p];
1847
1847
  }, flattenChunks: function(d) {
1848
1848
  return [].concat.apply([], d);
1849
1849
  } };
@@ -1862,43 +1862,43 @@ function no() {
1862
1862
  } catch {
1863
1863
  o = !1;
1864
1864
  }
1865
- for (var d = new a.Buf8(256), p = 0; p < 256; p++) d[p] = 252 <= p ? 6 : 248 <= p ? 5 : 240 <= p ? 4 : 224 <= p ? 3 : 192 <= p ? 2 : 1;
1866
- function g(v, _) {
1867
- if (_ < 65537 && (v.subarray && o || !v.subarray && s)) return String.fromCharCode.apply(null, a.shrinkBuf(v, _));
1868
- for (var f = "", m = 0; m < _; m++) f += String.fromCharCode(v[m]);
1869
- return f;
1865
+ for (var d = new a.Buf8(256), f = 0; f < 256; f++) d[f] = 252 <= f ? 6 : 248 <= f ? 5 : 240 <= f ? 4 : 224 <= f ? 3 : 192 <= f ? 2 : 1;
1866
+ function v(b, _) {
1867
+ if (_ < 65537 && (b.subarray && o || !b.subarray && s)) return String.fromCharCode.apply(null, a.shrinkBuf(b, _));
1868
+ for (var p = "", m = 0; m < _; m++) p += String.fromCharCode(b[m]);
1869
+ return p;
1870
1870
  }
1871
- d[254] = d[254] = 1, i.string2buf = function(v) {
1872
- var _, f, m, h, w, b = v.length, y = 0;
1873
- for (h = 0; h < b; h++) (64512 & (f = v.charCodeAt(h))) == 55296 && h + 1 < b && (64512 & (m = v.charCodeAt(h + 1))) == 56320 && (f = 65536 + (f - 55296 << 10) + (m - 56320), h++), y += f < 128 ? 1 : f < 2048 ? 2 : f < 65536 ? 3 : 4;
1874
- for (_ = new a.Buf8(y), h = w = 0; w < y; h++) (64512 & (f = v.charCodeAt(h))) == 55296 && h + 1 < b && (64512 & (m = v.charCodeAt(h + 1))) == 56320 && (f = 65536 + (f - 55296 << 10) + (m - 56320), h++), f < 128 ? _[w++] = f : (f < 2048 ? _[w++] = 192 | f >>> 6 : (f < 65536 ? _[w++] = 224 | f >>> 12 : (_[w++] = 240 | f >>> 18, _[w++] = 128 | f >>> 12 & 63), _[w++] = 128 | f >>> 6 & 63), _[w++] = 128 | 63 & f);
1871
+ d[254] = d[254] = 1, i.string2buf = function(b) {
1872
+ var _, p, m, h, w, g = b.length, y = 0;
1873
+ for (h = 0; h < g; h++) (64512 & (p = b.charCodeAt(h))) == 55296 && h + 1 < g && (64512 & (m = b.charCodeAt(h + 1))) == 56320 && (p = 65536 + (p - 55296 << 10) + (m - 56320), h++), y += p < 128 ? 1 : p < 2048 ? 2 : p < 65536 ? 3 : 4;
1874
+ for (_ = new a.Buf8(y), h = w = 0; w < y; h++) (64512 & (p = b.charCodeAt(h))) == 55296 && h + 1 < g && (64512 & (m = b.charCodeAt(h + 1))) == 56320 && (p = 65536 + (p - 55296 << 10) + (m - 56320), h++), p < 128 ? _[w++] = p : (p < 2048 ? _[w++] = 192 | p >>> 6 : (p < 65536 ? _[w++] = 224 | p >>> 12 : (_[w++] = 240 | p >>> 18, _[w++] = 128 | p >>> 12 & 63), _[w++] = 128 | p >>> 6 & 63), _[w++] = 128 | 63 & p);
1875
1875
  return _;
1876
- }, i.buf2binstring = function(v) {
1877
- return g(v, v.length);
1878
- }, i.binstring2buf = function(v) {
1879
- for (var _ = new a.Buf8(v.length), f = 0, m = _.length; f < m; f++) _[f] = v.charCodeAt(f);
1876
+ }, i.buf2binstring = function(b) {
1877
+ return v(b, b.length);
1878
+ }, i.binstring2buf = function(b) {
1879
+ for (var _ = new a.Buf8(b.length), p = 0, m = _.length; p < m; p++) _[p] = b.charCodeAt(p);
1880
1880
  return _;
1881
- }, i.buf2string = function(v, _) {
1882
- var f, m, h, w, b = _ || v.length, y = new Array(2 * b);
1883
- for (f = m = 0; f < b; ) if ((h = v[f++]) < 128) y[m++] = h;
1884
- else if (4 < (w = d[h])) y[m++] = 65533, f += w - 1;
1881
+ }, i.buf2string = function(b, _) {
1882
+ var p, m, h, w, g = _ || b.length, y = new Array(2 * g);
1883
+ for (p = m = 0; p < g; ) if ((h = b[p++]) < 128) y[m++] = h;
1884
+ else if (4 < (w = d[h])) y[m++] = 65533, p += w - 1;
1885
1885
  else {
1886
- for (h &= w === 2 ? 31 : w === 3 ? 15 : 7; 1 < w && f < b; ) h = h << 6 | 63 & v[f++], w--;
1886
+ for (h &= w === 2 ? 31 : w === 3 ? 15 : 7; 1 < w && p < g; ) h = h << 6 | 63 & b[p++], w--;
1887
1887
  1 < w ? y[m++] = 65533 : h < 65536 ? y[m++] = h : (h -= 65536, y[m++] = 55296 | h >> 10 & 1023, y[m++] = 56320 | 1023 & h);
1888
1888
  }
1889
- return g(y, m);
1890
- }, i.utf8border = function(v, _) {
1891
- var f;
1892
- for ((_ = _ || v.length) > v.length && (_ = v.length), f = _ - 1; 0 <= f && (192 & v[f]) == 128; ) f--;
1893
- return f < 0 || f === 0 ? _ : f + d[v[f]] > _ ? f : _;
1889
+ return v(y, m);
1890
+ }, i.utf8border = function(b, _) {
1891
+ var p;
1892
+ for ((_ = _ || b.length) > b.length && (_ = b.length), p = _ - 1; 0 <= p && (192 & b[p]) == 128; ) p--;
1893
+ return p < 0 || p === 0 ? _ : p + d[b[p]] > _ ? p : _;
1894
1894
  };
1895
1895
  }, { "./common": 41 }], 43: [function(t, n, i) {
1896
1896
  n.exports = function(a, s, o, d) {
1897
- for (var p = 65535 & a | 0, g = a >>> 16 & 65535 | 0, v = 0; o !== 0; ) {
1898
- for (o -= v = 2e3 < o ? 2e3 : o; g = g + (p = p + s[d++] | 0) | 0, --v; ) ;
1899
- p %= 65521, g %= 65521;
1897
+ for (var f = 65535 & a | 0, v = a >>> 16 & 65535 | 0, b = 0; o !== 0; ) {
1898
+ for (o -= b = 2e3 < o ? 2e3 : o; v = v + (f = f + s[d++] | 0) | 0, --b; ) ;
1899
+ f %= 65521, v %= 65521;
1900
1900
  }
1901
- return p | g << 16 | 0;
1901
+ return f | v << 16 | 0;
1902
1902
  };
1903
1903
  }, {}], 44: [function(t, n, i) {
1904
1904
  n.exports = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 };
@@ -1906,21 +1906,21 @@ function no() {
1906
1906
  var a = function() {
1907
1907
  for (var s, o = [], d = 0; d < 256; d++) {
1908
1908
  s = d;
1909
- for (var p = 0; p < 8; p++) s = 1 & s ? 3988292384 ^ s >>> 1 : s >>> 1;
1909
+ for (var f = 0; f < 8; f++) s = 1 & s ? 3988292384 ^ s >>> 1 : s >>> 1;
1910
1910
  o[d] = s;
1911
1911
  }
1912
1912
  return o;
1913
1913
  }();
1914
- n.exports = function(s, o, d, p) {
1915
- var g = a, v = p + d;
1914
+ n.exports = function(s, o, d, f) {
1915
+ var v = a, b = f + d;
1916
1916
  s ^= -1;
1917
- for (var _ = p; _ < v; _++) s = s >>> 8 ^ g[255 & (s ^ o[_])];
1917
+ for (var _ = f; _ < b; _++) s = s >>> 8 ^ v[255 & (s ^ o[_])];
1918
1918
  return -1 ^ s;
1919
1919
  };
1920
1920
  }, {}], 46: [function(t, n, i) {
1921
- var a, s = t("../utils/common"), o = t("./trees"), d = t("./adler32"), p = t("./crc32"), g = t("./messages"), v = 0, _ = 4, f = 0, m = -2, h = -1, w = 4, b = 2, y = 8, S = 9, A = 286, T = 30, U = 19, C = 2 * A + 1, P = 15, O = 3, V = 258, G = V + O + 1, E = 42, N = 113, u = 1, j = 2, ut = 3, X = 4;
1921
+ var a, s = t("../utils/common"), o = t("./trees"), d = t("./adler32"), f = t("./crc32"), v = t("./messages"), b = 0, _ = 4, p = 0, m = -2, h = -1, w = 4, g = 2, y = 8, S = 9, A = 286, T = 30, U = 19, C = 2 * A + 1, P = 15, O = 3, V = 258, G = V + O + 1, E = 42, N = 113, u = 1, j = 2, ut = 3, X = 4;
1922
1922
  function pt(l, B) {
1923
- return l.msg = g[B], B;
1923
+ return l.msg = v[B], B;
1924
1924
  }
1925
1925
  function Z(l) {
1926
1926
  return (l << 1) - (4 < l ? 9 : 0);
@@ -1967,13 +1967,13 @@ function no() {
1967
1967
  x += J;
1968
1968
  }
1969
1969
  if (l.strm.avail_in === 0) break;
1970
- if (Y = l.strm, q = l.window, I = l.strstart + l.lookahead, K = x, et = void 0, et = Y.avail_in, K < et && (et = K), R = et === 0 ? 0 : (Y.avail_in -= et, s.arraySet(q, Y.input, Y.next_in, et, I), Y.state.wrap === 1 ? Y.adler = d(Y.adler, q, et, I) : Y.state.wrap === 2 && (Y.adler = p(Y.adler, q, et, I)), Y.next_in += et, Y.total_in += et, et), l.lookahead += R, l.lookahead + l.insert >= O) for (D = l.strstart - l.insert, l.ins_h = l.window[D], l.ins_h = (l.ins_h << l.hash_shift ^ l.window[D + 1]) & l.hash_mask; l.insert && (l.ins_h = (l.ins_h << l.hash_shift ^ l.window[D + O - 1]) & l.hash_mask, l.prev[D & l.w_mask] = l.head[l.ins_h], l.head[l.ins_h] = D, D++, l.insert--, !(l.lookahead + l.insert < O)); ) ;
1970
+ if (Y = l.strm, q = l.window, I = l.strstart + l.lookahead, K = x, et = void 0, et = Y.avail_in, K < et && (et = K), R = et === 0 ? 0 : (Y.avail_in -= et, s.arraySet(q, Y.input, Y.next_in, et, I), Y.state.wrap === 1 ? Y.adler = d(Y.adler, q, et, I) : Y.state.wrap === 2 && (Y.adler = f(Y.adler, q, et, I)), Y.next_in += et, Y.total_in += et, et), l.lookahead += R, l.lookahead + l.insert >= O) for (D = l.strstart - l.insert, l.ins_h = l.window[D], l.ins_h = (l.ins_h << l.hash_shift ^ l.window[D + 1]) & l.hash_mask; l.insert && (l.ins_h = (l.ins_h << l.hash_shift ^ l.window[D + O - 1]) & l.hash_mask, l.prev[D & l.w_mask] = l.head[l.ins_h], l.head[l.ins_h] = D, D++, l.insert--, !(l.lookahead + l.insert < O)); ) ;
1971
1971
  } while (l.lookahead < G && l.strm.avail_in !== 0);
1972
1972
  }
1973
1973
  function Ot(l, B) {
1974
1974
  for (var R, k; ; ) {
1975
1975
  if (l.lookahead < G) {
1976
- if (yt(l), l.lookahead < G && B === v) return u;
1976
+ if (yt(l), l.lookahead < G && B === b) return u;
1977
1977
  if (l.lookahead === 0) break;
1978
1978
  }
1979
1979
  if (R = 0, l.lookahead >= O && (l.ins_h = (l.ins_h << l.hash_shift ^ l.window[l.strstart + O - 1]) & l.hash_mask, R = l.prev[l.strstart & l.w_mask] = l.head[l.ins_h], l.head[l.ins_h] = l.strstart), R !== 0 && l.strstart - R <= l.w_size - G && (l.match_length = W(l, R)), l.match_length >= O) if (k = o._tr_tally(l, l.strstart - l.match_start, l.match_length - O), l.lookahead -= l.match_length, l.match_length <= l.max_lazy_match && l.lookahead >= O) {
@@ -1988,7 +1988,7 @@ function no() {
1988
1988
  function mt(l, B) {
1989
1989
  for (var R, k, x; ; ) {
1990
1990
  if (l.lookahead < G) {
1991
- if (yt(l), l.lookahead < G && B === v) return u;
1991
+ if (yt(l), l.lookahead < G && B === b) return u;
1992
1992
  if (l.lookahead === 0) break;
1993
1993
  }
1994
1994
  if (R = 0, l.lookahead >= O && (l.ins_h = (l.ins_h << l.hash_shift ^ l.window[l.strstart + O - 1]) & l.hash_mask, R = l.prev[l.strstart & l.w_mask] = l.head[l.ins_h], l.head[l.ins_h] = l.strstart), l.prev_length = l.match_length, l.prev_match = l.match_start, l.match_length = O - 1, R !== 0 && l.prev_length < l.max_lazy_match && l.strstart - R <= l.w_size - G && (l.match_length = W(l, R), l.match_length <= 5 && (l.strategy === 1 || l.match_length === O && 4096 < l.strstart - l.match_start) && (l.match_length = O - 1)), l.prev_length >= O && l.match_length <= l.prev_length) {
@@ -2008,11 +2008,11 @@ function no() {
2008
2008
  }
2009
2009
  function xt(l) {
2010
2010
  var B;
2011
- return l && l.state ? (l.total_in = l.total_out = 0, l.data_type = b, (B = l.state).pending = 0, B.pending_out = 0, B.wrap < 0 && (B.wrap = -B.wrap), B.status = B.wrap ? E : N, l.adler = B.wrap === 2 ? 0 : 1, B.last_flush = v, o._tr_init(B), f) : pt(l, m);
2011
+ return l && l.state ? (l.total_in = l.total_out = 0, l.data_type = g, (B = l.state).pending = 0, B.pending_out = 0, B.wrap < 0 && (B.wrap = -B.wrap), B.status = B.wrap ? E : N, l.adler = B.wrap === 2 ? 0 : 1, B.last_flush = b, o._tr_init(B), p) : pt(l, m);
2012
2012
  }
2013
2013
  function It(l) {
2014
2014
  var B = xt(l);
2015
- return B === f && function(R) {
2015
+ return B === p && function(R) {
2016
2016
  R.window_size = 2 * R.w_size, dt(R.head), R.max_lazy_match = a[R.level].max_lazy, R.good_match = a[R.level].good_length, R.nice_match = a[R.level].nice_length, R.max_chain_length = a[R.level].max_chain, R.strstart = 0, R.block_start = 0, R.lookahead = 0, R.insert = 0, R.match_length = R.prev_length = O - 1, R.match_available = 0, R.ins_h = 0;
2017
2017
  }(l.state), B;
2018
2018
  }
@@ -2028,7 +2028,7 @@ function no() {
2028
2028
  var R = 65535;
2029
2029
  for (R > l.pending_buf_size - 5 && (R = l.pending_buf_size - 5); ; ) {
2030
2030
  if (l.lookahead <= 1) {
2031
- if (yt(l), l.lookahead === 0 && B === v) return u;
2031
+ if (yt(l), l.lookahead === 0 && B === b) return u;
2032
2032
  if (l.lookahead === 0) break;
2033
2033
  }
2034
2034
  l.strstart += l.lookahead, l.lookahead = 0;
@@ -2039,51 +2039,51 @@ function no() {
2039
2039
  }), new vt(4, 4, 8, 4, Ot), new vt(4, 5, 16, 8, Ot), new vt(4, 6, 32, 32, Ot), new vt(4, 4, 16, 16, mt), new vt(8, 16, 32, 32, mt), new vt(8, 16, 128, 128, mt), new vt(8, 32, 128, 256, mt), new vt(32, 128, 258, 1024, mt), new vt(32, 258, 258, 4096, mt)], i.deflateInit = function(l, B) {
2040
2040
  return jt(l, B, y, 15, 8, 0);
2041
2041
  }, i.deflateInit2 = jt, i.deflateReset = It, i.deflateResetKeep = xt, i.deflateSetHeader = function(l, B) {
2042
- return l && l.state ? l.state.wrap !== 2 ? m : (l.state.gzhead = B, f) : m;
2042
+ return l && l.state ? l.state.wrap !== 2 ? m : (l.state.gzhead = B, p) : m;
2043
2043
  }, i.deflate = function(l, B) {
2044
2044
  var R, k, x, D;
2045
2045
  if (!l || !l.state || 5 < B || B < 0) return l ? pt(l, m) : m;
2046
2046
  if (k = l.state, !l.output || !l.input && l.avail_in !== 0 || k.status === 666 && B !== _) return pt(l, l.avail_out === 0 ? -5 : m);
2047
- if (k.strm = l, R = k.last_flush, k.last_flush = B, k.status === E) if (k.wrap === 2) l.adler = 0, it(k, 31), it(k, 139), it(k, 8), k.gzhead ? (it(k, (k.gzhead.text ? 1 : 0) + (k.gzhead.hcrc ? 2 : 0) + (k.gzhead.extra ? 4 : 0) + (k.gzhead.name ? 8 : 0) + (k.gzhead.comment ? 16 : 0)), it(k, 255 & k.gzhead.time), it(k, k.gzhead.time >> 8 & 255), it(k, k.gzhead.time >> 16 & 255), it(k, k.gzhead.time >> 24 & 255), it(k, k.level === 9 ? 2 : 2 <= k.strategy || k.level < 2 ? 4 : 0), it(k, 255 & k.gzhead.os), k.gzhead.extra && k.gzhead.extra.length && (it(k, 255 & k.gzhead.extra.length), it(k, k.gzhead.extra.length >> 8 & 255)), k.gzhead.hcrc && (l.adler = p(l.adler, k.pending_buf, k.pending, 0)), k.gzindex = 0, k.status = 69) : (it(k, 0), it(k, 0), it(k, 0), it(k, 0), it(k, 0), it(k, k.level === 9 ? 2 : 2 <= k.strategy || k.level < 2 ? 4 : 0), it(k, 3), k.status = N);
2047
+ if (k.strm = l, R = k.last_flush, k.last_flush = B, k.status === E) if (k.wrap === 2) l.adler = 0, it(k, 31), it(k, 139), it(k, 8), k.gzhead ? (it(k, (k.gzhead.text ? 1 : 0) + (k.gzhead.hcrc ? 2 : 0) + (k.gzhead.extra ? 4 : 0) + (k.gzhead.name ? 8 : 0) + (k.gzhead.comment ? 16 : 0)), it(k, 255 & k.gzhead.time), it(k, k.gzhead.time >> 8 & 255), it(k, k.gzhead.time >> 16 & 255), it(k, k.gzhead.time >> 24 & 255), it(k, k.level === 9 ? 2 : 2 <= k.strategy || k.level < 2 ? 4 : 0), it(k, 255 & k.gzhead.os), k.gzhead.extra && k.gzhead.extra.length && (it(k, 255 & k.gzhead.extra.length), it(k, k.gzhead.extra.length >> 8 & 255)), k.gzhead.hcrc && (l.adler = f(l.adler, k.pending_buf, k.pending, 0)), k.gzindex = 0, k.status = 69) : (it(k, 0), it(k, 0), it(k, 0), it(k, 0), it(k, 0), it(k, k.level === 9 ? 2 : 2 <= k.strategy || k.level < 2 ? 4 : 0), it(k, 3), k.status = N);
2048
2048
  else {
2049
2049
  var Y = y + (k.w_bits - 8 << 4) << 8;
2050
2050
  Y |= (2 <= k.strategy || k.level < 2 ? 0 : k.level < 6 ? 1 : k.level === 6 ? 2 : 3) << 6, k.strstart !== 0 && (Y |= 32), Y += 31 - Y % 31, k.status = N, nt(k, Y), k.strstart !== 0 && (nt(k, l.adler >>> 16), nt(k, 65535 & l.adler)), l.adler = 1;
2051
2051
  }
2052
2052
  if (k.status === 69) if (k.gzhead.extra) {
2053
- for (x = k.pending; k.gzindex < (65535 & k.gzhead.extra.length) && (k.pending !== k.pending_buf_size || (k.gzhead.hcrc && k.pending > x && (l.adler = p(l.adler, k.pending_buf, k.pending - x, x)), F(l), x = k.pending, k.pending !== k.pending_buf_size)); ) it(k, 255 & k.gzhead.extra[k.gzindex]), k.gzindex++;
2054
- k.gzhead.hcrc && k.pending > x && (l.adler = p(l.adler, k.pending_buf, k.pending - x, x)), k.gzindex === k.gzhead.extra.length && (k.gzindex = 0, k.status = 73);
2053
+ for (x = k.pending; k.gzindex < (65535 & k.gzhead.extra.length) && (k.pending !== k.pending_buf_size || (k.gzhead.hcrc && k.pending > x && (l.adler = f(l.adler, k.pending_buf, k.pending - x, x)), F(l), x = k.pending, k.pending !== k.pending_buf_size)); ) it(k, 255 & k.gzhead.extra[k.gzindex]), k.gzindex++;
2054
+ k.gzhead.hcrc && k.pending > x && (l.adler = f(l.adler, k.pending_buf, k.pending - x, x)), k.gzindex === k.gzhead.extra.length && (k.gzindex = 0, k.status = 73);
2055
2055
  } else k.status = 73;
2056
2056
  if (k.status === 73) if (k.gzhead.name) {
2057
2057
  x = k.pending;
2058
2058
  do {
2059
- if (k.pending === k.pending_buf_size && (k.gzhead.hcrc && k.pending > x && (l.adler = p(l.adler, k.pending_buf, k.pending - x, x)), F(l), x = k.pending, k.pending === k.pending_buf_size)) {
2059
+ if (k.pending === k.pending_buf_size && (k.gzhead.hcrc && k.pending > x && (l.adler = f(l.adler, k.pending_buf, k.pending - x, x)), F(l), x = k.pending, k.pending === k.pending_buf_size)) {
2060
2060
  D = 1;
2061
2061
  break;
2062
2062
  }
2063
2063
  D = k.gzindex < k.gzhead.name.length ? 255 & k.gzhead.name.charCodeAt(k.gzindex++) : 0, it(k, D);
2064
2064
  } while (D !== 0);
2065
- k.gzhead.hcrc && k.pending > x && (l.adler = p(l.adler, k.pending_buf, k.pending - x, x)), D === 0 && (k.gzindex = 0, k.status = 91);
2065
+ k.gzhead.hcrc && k.pending > x && (l.adler = f(l.adler, k.pending_buf, k.pending - x, x)), D === 0 && (k.gzindex = 0, k.status = 91);
2066
2066
  } else k.status = 91;
2067
2067
  if (k.status === 91) if (k.gzhead.comment) {
2068
2068
  x = k.pending;
2069
2069
  do {
2070
- if (k.pending === k.pending_buf_size && (k.gzhead.hcrc && k.pending > x && (l.adler = p(l.adler, k.pending_buf, k.pending - x, x)), F(l), x = k.pending, k.pending === k.pending_buf_size)) {
2070
+ if (k.pending === k.pending_buf_size && (k.gzhead.hcrc && k.pending > x && (l.adler = f(l.adler, k.pending_buf, k.pending - x, x)), F(l), x = k.pending, k.pending === k.pending_buf_size)) {
2071
2071
  D = 1;
2072
2072
  break;
2073
2073
  }
2074
2074
  D = k.gzindex < k.gzhead.comment.length ? 255 & k.gzhead.comment.charCodeAt(k.gzindex++) : 0, it(k, D);
2075
2075
  } while (D !== 0);
2076
- k.gzhead.hcrc && k.pending > x && (l.adler = p(l.adler, k.pending_buf, k.pending - x, x)), D === 0 && (k.status = 103);
2076
+ k.gzhead.hcrc && k.pending > x && (l.adler = f(l.adler, k.pending_buf, k.pending - x, x)), D === 0 && (k.status = 103);
2077
2077
  } else k.status = 103;
2078
2078
  if (k.status === 103 && (k.gzhead.hcrc ? (k.pending + 2 > k.pending_buf_size && F(l), k.pending + 2 <= k.pending_buf_size && (it(k, 255 & l.adler), it(k, l.adler >> 8 & 255), l.adler = 0, k.status = N)) : k.status = N), k.pending !== 0) {
2079
- if (F(l), l.avail_out === 0) return k.last_flush = -1, f;
2079
+ if (F(l), l.avail_out === 0) return k.last_flush = -1, p;
2080
2080
  } else if (l.avail_in === 0 && Z(B) <= Z(R) && B !== _) return pt(l, -5);
2081
2081
  if (k.status === 666 && l.avail_in !== 0) return pt(l, -5);
2082
- if (l.avail_in !== 0 || k.lookahead !== 0 || B !== v && k.status !== 666) {
2082
+ if (l.avail_in !== 0 || k.lookahead !== 0 || B !== b && k.status !== 666) {
2083
2083
  var q = k.strategy === 2 ? function(I, K) {
2084
2084
  for (var et; ; ) {
2085
2085
  if (I.lookahead === 0 && (yt(I), I.lookahead === 0)) {
2086
- if (K === v) return u;
2086
+ if (K === b) return u;
2087
2087
  break;
2088
2088
  }
2089
2089
  if (I.match_length = 0, et = o._tr_tally(I, 0, I.window[I.strstart]), I.lookahead--, I.strstart++, et && (z(I, !1), I.strm.avail_out === 0)) return u;
@@ -2092,7 +2092,7 @@ function no() {
2092
2092
  }(k, B) : k.strategy === 3 ? function(I, K) {
2093
2093
  for (var et, J, st, wt, gt = I.window; ; ) {
2094
2094
  if (I.lookahead <= V) {
2095
- if (yt(I), I.lookahead <= V && K === v) return u;
2095
+ if (yt(I), I.lookahead <= V && K === b) return u;
2096
2096
  if (I.lookahead === 0) break;
2097
2097
  }
2098
2098
  if (I.match_length = 0, I.lookahead >= O && 0 < I.strstart && (J = gt[st = I.strstart - 1]) === gt[++st] && J === gt[++st] && J === gt[++st]) {
@@ -2106,13 +2106,13 @@ function no() {
2106
2106
  }
2107
2107
  return I.insert = 0, K === _ ? (z(I, !0), I.strm.avail_out === 0 ? ut : X) : I.last_lit && (z(I, !1), I.strm.avail_out === 0) ? u : j;
2108
2108
  }(k, B) : a[k.level].func(k, B);
2109
- if (q !== ut && q !== X || (k.status = 666), q === u || q === ut) return l.avail_out === 0 && (k.last_flush = -1), f;
2110
- if (q === j && (B === 1 ? o._tr_align(k) : B !== 5 && (o._tr_stored_block(k, 0, 0, !1), B === 3 && (dt(k.head), k.lookahead === 0 && (k.strstart = 0, k.block_start = 0, k.insert = 0))), F(l), l.avail_out === 0)) return k.last_flush = -1, f;
2109
+ if (q !== ut && q !== X || (k.status = 666), q === u || q === ut) return l.avail_out === 0 && (k.last_flush = -1), p;
2110
+ if (q === j && (B === 1 ? o._tr_align(k) : B !== 5 && (o._tr_stored_block(k, 0, 0, !1), B === 3 && (dt(k.head), k.lookahead === 0 && (k.strstart = 0, k.block_start = 0, k.insert = 0))), F(l), l.avail_out === 0)) return k.last_flush = -1, p;
2111
2111
  }
2112
- return B !== _ ? f : k.wrap <= 0 ? 1 : (k.wrap === 2 ? (it(k, 255 & l.adler), it(k, l.adler >> 8 & 255), it(k, l.adler >> 16 & 255), it(k, l.adler >> 24 & 255), it(k, 255 & l.total_in), it(k, l.total_in >> 8 & 255), it(k, l.total_in >> 16 & 255), it(k, l.total_in >> 24 & 255)) : (nt(k, l.adler >>> 16), nt(k, 65535 & l.adler)), F(l), 0 < k.wrap && (k.wrap = -k.wrap), k.pending !== 0 ? f : 1);
2112
+ return B !== _ ? p : k.wrap <= 0 ? 1 : (k.wrap === 2 ? (it(k, 255 & l.adler), it(k, l.adler >> 8 & 255), it(k, l.adler >> 16 & 255), it(k, l.adler >> 24 & 255), it(k, 255 & l.total_in), it(k, l.total_in >> 8 & 255), it(k, l.total_in >> 16 & 255), it(k, l.total_in >> 24 & 255)) : (nt(k, l.adler >>> 16), nt(k, 65535 & l.adler)), F(l), 0 < k.wrap && (k.wrap = -k.wrap), k.pending !== 0 ? p : 1);
2113
2113
  }, i.deflateEnd = function(l) {
2114
2114
  var B;
2115
- return l && l.state ? (B = l.state.status) !== E && B !== 69 && B !== 73 && B !== 91 && B !== 103 && B !== N && B !== 666 ? pt(l, m) : (l.state = null, B === N ? pt(l, -3) : f) : m;
2115
+ return l && l.state ? (B = l.state.status) !== E && B !== 69 && B !== 73 && B !== 91 && B !== 103 && B !== N && B !== 666 ? pt(l, m) : (l.state = null, B === N ? pt(l, -3) : p) : m;
2116
2116
  }, i.deflateSetDictionary = function(l, B) {
2117
2117
  var R, k, x, D, Y, q, I, K, et = B.length;
2118
2118
  if (!l || !l.state || (D = (R = l.state).wrap) === 2 || D === 1 && R.status !== E || R.lookahead) return m;
@@ -2120,7 +2120,7 @@ function no() {
2120
2120
  for (k = R.strstart, x = R.lookahead - (O - 1); R.ins_h = (R.ins_h << R.hash_shift ^ R.window[k + O - 1]) & R.hash_mask, R.prev[k & R.w_mask] = R.head[R.ins_h], R.head[R.ins_h] = k, k++, --x; ) ;
2121
2121
  R.strstart = k, R.lookahead = O - 1, yt(R);
2122
2122
  }
2123
- return R.strstart += R.lookahead, R.block_start = R.strstart, R.insert = R.lookahead, R.lookahead = 0, R.match_length = R.prev_length = O - 1, R.match_available = 0, l.next_in = q, l.input = I, l.avail_in = Y, R.wrap = D, f;
2123
+ return R.strstart += R.lookahead, R.block_start = R.strstart, R.insert = R.lookahead, R.lookahead = 0, R.match_length = R.prev_length = O - 1, R.match_available = 0, l.next_in = q, l.input = I, l.avail_in = Y, R.wrap = D, p;
2124
2124
  }, i.deflateInfo = "pako deflate (from Nodeca project)";
2125
2125
  }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(t, n, i) {
2126
2126
  n.exports = function() {
@@ -2128,12 +2128,12 @@ function no() {
2128
2128
  };
2129
2129
  }, {}], 48: [function(t, n, i) {
2130
2130
  n.exports = function(a, s) {
2131
- var o, d, p, g, v, _, f, m, h, w, b, y, S, A, T, U, C, P, O, V, G, E, N, u, j;
2132
- o = a.state, d = a.next_in, u = a.input, p = d + (a.avail_in - 5), g = a.next_out, j = a.output, v = g - (s - a.avail_out), _ = g + (a.avail_out - 257), f = o.dmax, m = o.wsize, h = o.whave, w = o.wnext, b = o.window, y = o.hold, S = o.bits, A = o.lencode, T = o.distcode, U = (1 << o.lenbits) - 1, C = (1 << o.distbits) - 1;
2131
+ var o, d, f, v, b, _, p, m, h, w, g, y, S, A, T, U, C, P, O, V, G, E, N, u, j;
2132
+ o = a.state, d = a.next_in, u = a.input, f = d + (a.avail_in - 5), v = a.next_out, j = a.output, b = v - (s - a.avail_out), _ = v + (a.avail_out - 257), p = o.dmax, m = o.wsize, h = o.whave, w = o.wnext, g = o.window, y = o.hold, S = o.bits, A = o.lencode, T = o.distcode, U = (1 << o.lenbits) - 1, C = (1 << o.distbits) - 1;
2133
2133
  t: do {
2134
2134
  S < 15 && (y += u[d++] << S, S += 8, y += u[d++] << S, S += 8), P = A[y & U];
2135
2135
  e: for (; ; ) {
2136
- if (y >>>= O = P >>> 24, S -= O, (O = P >>> 16 & 255) === 0) j[g++] = 65535 & P;
2136
+ if (y >>>= O = P >>> 24, S -= O, (O = P >>> 16 & 255) === 0) j[v++] = 65535 & P;
2137
2137
  else {
2138
2138
  if (!(16 & O)) {
2139
2139
  if ((64 & O) == 0) {
@@ -2157,49 +2157,49 @@ function no() {
2157
2157
  a.msg = "invalid distance code", o.mode = 30;
2158
2158
  break t;
2159
2159
  }
2160
- if (G = 65535 & P, S < (O &= 15) && (y += u[d++] << S, (S += 8) < O && (y += u[d++] << S, S += 8)), f < (G += y & (1 << O) - 1)) {
2160
+ if (G = 65535 & P, S < (O &= 15) && (y += u[d++] << S, (S += 8) < O && (y += u[d++] << S, S += 8)), p < (G += y & (1 << O) - 1)) {
2161
2161
  a.msg = "invalid distance too far back", o.mode = 30;
2162
2162
  break t;
2163
2163
  }
2164
- if (y >>>= O, S -= O, (O = g - v) < G) {
2164
+ if (y >>>= O, S -= O, (O = v - b) < G) {
2165
2165
  if (h < (O = G - O) && o.sane) {
2166
2166
  a.msg = "invalid distance too far back", o.mode = 30;
2167
2167
  break t;
2168
2168
  }
2169
- if (N = b, (E = 0) === w) {
2169
+ if (N = g, (E = 0) === w) {
2170
2170
  if (E += m - O, O < V) {
2171
- for (V -= O; j[g++] = b[E++], --O; ) ;
2172
- E = g - G, N = j;
2171
+ for (V -= O; j[v++] = g[E++], --O; ) ;
2172
+ E = v - G, N = j;
2173
2173
  }
2174
2174
  } else if (w < O) {
2175
2175
  if (E += m + w - O, (O -= w) < V) {
2176
- for (V -= O; j[g++] = b[E++], --O; ) ;
2176
+ for (V -= O; j[v++] = g[E++], --O; ) ;
2177
2177
  if (E = 0, w < V) {
2178
- for (V -= O = w; j[g++] = b[E++], --O; ) ;
2179
- E = g - G, N = j;
2178
+ for (V -= O = w; j[v++] = g[E++], --O; ) ;
2179
+ E = v - G, N = j;
2180
2180
  }
2181
2181
  }
2182
2182
  } else if (E += w - O, O < V) {
2183
- for (V -= O; j[g++] = b[E++], --O; ) ;
2184
- E = g - G, N = j;
2183
+ for (V -= O; j[v++] = g[E++], --O; ) ;
2184
+ E = v - G, N = j;
2185
2185
  }
2186
- for (; 2 < V; ) j[g++] = N[E++], j[g++] = N[E++], j[g++] = N[E++], V -= 3;
2187
- V && (j[g++] = N[E++], 1 < V && (j[g++] = N[E++]));
2186
+ for (; 2 < V; ) j[v++] = N[E++], j[v++] = N[E++], j[v++] = N[E++], V -= 3;
2187
+ V && (j[v++] = N[E++], 1 < V && (j[v++] = N[E++]));
2188
2188
  } else {
2189
- for (E = g - G; j[g++] = j[E++], j[g++] = j[E++], j[g++] = j[E++], 2 < (V -= 3); ) ;
2190
- V && (j[g++] = j[E++], 1 < V && (j[g++] = j[E++]));
2189
+ for (E = v - G; j[v++] = j[E++], j[v++] = j[E++], j[v++] = j[E++], 2 < (V -= 3); ) ;
2190
+ V && (j[v++] = j[E++], 1 < V && (j[v++] = j[E++]));
2191
2191
  }
2192
2192
  break;
2193
2193
  }
2194
2194
  }
2195
2195
  break;
2196
2196
  }
2197
- } while (d < p && g < _);
2198
- d -= V = S >> 3, y &= (1 << (S -= V << 3)) - 1, a.next_in = d, a.next_out = g, a.avail_in = d < p ? p - d + 5 : 5 - (d - p), a.avail_out = g < _ ? _ - g + 257 : 257 - (g - _), o.hold = y, o.bits = S;
2197
+ } while (d < f && v < _);
2198
+ d -= V = S >> 3, y &= (1 << (S -= V << 3)) - 1, a.next_in = d, a.next_out = v, a.avail_in = d < f ? f - d + 5 : 5 - (d - f), a.avail_out = v < _ ? _ - v + 257 : 257 - (v - _), o.hold = y, o.bits = S;
2199
2199
  };
2200
2200
  }, {}], 49: [function(t, n, i) {
2201
- var a = t("../utils/common"), s = t("./adler32"), o = t("./crc32"), d = t("./inffast"), p = t("./inftrees"), g = 1, v = 2, _ = 0, f = -2, m = 1, h = 852, w = 592;
2202
- function b(E) {
2201
+ var a = t("../utils/common"), s = t("./adler32"), o = t("./crc32"), d = t("./inffast"), f = t("./inftrees"), v = 1, b = 2, _ = 0, p = -2, m = 1, h = 852, w = 592;
2202
+ function g(E) {
2203
2203
  return (E >>> 24 & 255) + (E >>> 8 & 65280) + ((65280 & E) << 8) + ((255 & E) << 24);
2204
2204
  }
2205
2205
  function y() {
@@ -2207,19 +2207,19 @@ function no() {
2207
2207
  }
2208
2208
  function S(E) {
2209
2209
  var N;
2210
- return E && E.state ? (N = E.state, E.total_in = E.total_out = N.total = 0, E.msg = "", N.wrap && (E.adler = 1 & N.wrap), N.mode = m, N.last = 0, N.havedict = 0, N.dmax = 32768, N.head = null, N.hold = 0, N.bits = 0, N.lencode = N.lendyn = new a.Buf32(h), N.distcode = N.distdyn = new a.Buf32(w), N.sane = 1, N.back = -1, _) : f;
2210
+ return E && E.state ? (N = E.state, E.total_in = E.total_out = N.total = 0, E.msg = "", N.wrap && (E.adler = 1 & N.wrap), N.mode = m, N.last = 0, N.havedict = 0, N.dmax = 32768, N.head = null, N.hold = 0, N.bits = 0, N.lencode = N.lendyn = new a.Buf32(h), N.distcode = N.distdyn = new a.Buf32(w), N.sane = 1, N.back = -1, _) : p;
2211
2211
  }
2212
2212
  function A(E) {
2213
2213
  var N;
2214
- return E && E.state ? ((N = E.state).wsize = 0, N.whave = 0, N.wnext = 0, S(E)) : f;
2214
+ return E && E.state ? ((N = E.state).wsize = 0, N.whave = 0, N.wnext = 0, S(E)) : p;
2215
2215
  }
2216
2216
  function T(E, N) {
2217
2217
  var u, j;
2218
- return E && E.state ? (j = E.state, N < 0 ? (u = 0, N = -N) : (u = 1 + (N >> 4), N < 48 && (N &= 15)), N && (N < 8 || 15 < N) ? f : (j.window !== null && j.wbits !== N && (j.window = null), j.wrap = u, j.wbits = N, A(E))) : f;
2218
+ return E && E.state ? (j = E.state, N < 0 ? (u = 0, N = -N) : (u = 1 + (N >> 4), N < 48 && (N &= 15)), N && (N < 8 || 15 < N) ? p : (j.window !== null && j.wbits !== N && (j.window = null), j.wrap = u, j.wbits = N, A(E))) : p;
2219
2219
  }
2220
2220
  function U(E, N) {
2221
2221
  var u, j;
2222
- return E ? (j = new y(), (E.state = j).window = null, (u = T(E, N)) !== _ && (E.state = null), u) : f;
2222
+ return E ? (j = new y(), (E.state = j).window = null, (u = T(E, N)) !== _ && (E.state = null), u) : p;
2223
2223
  }
2224
2224
  var C, P, O = !0;
2225
2225
  function V(E) {
@@ -2229,8 +2229,8 @@ function no() {
2229
2229
  for (; N < 256; ) E.lens[N++] = 9;
2230
2230
  for (; N < 280; ) E.lens[N++] = 7;
2231
2231
  for (; N < 288; ) E.lens[N++] = 8;
2232
- for (p(g, E.lens, 0, 288, C, 0, E.work, { bits: 9 }), N = 0; N < 32; ) E.lens[N++] = 5;
2233
- p(v, E.lens, 0, 32, P, 0, E.work, { bits: 5 }), O = !1;
2232
+ for (f(v, E.lens, 0, 288, C, 0, E.work, { bits: 9 }), N = 0; N < 32; ) E.lens[N++] = 5;
2233
+ f(b, E.lens, 0, 32, P, 0, E.work, { bits: 5 }), O = !1;
2234
2234
  }
2235
2235
  E.lencode = C, E.lenbits = 9, E.distcode = P, E.distbits = 5;
2236
2236
  }
@@ -2242,7 +2242,7 @@ function no() {
2242
2242
  return U(E, 15);
2243
2243
  }, i.inflateInit2 = U, i.inflate = function(E, N) {
2244
2244
  var u, j, ut, X, pt, Z, dt, F, z, it, nt, W, yt, Ot, mt, vt, At, xt, It, jt, l, B, R, k, x = 0, D = new a.Buf8(4), Y = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
2245
- if (!E || !E.state || !E.output || !E.input && E.avail_in !== 0) return f;
2245
+ if (!E || !E.state || !E.output || !E.input && E.avail_in !== 0) return p;
2246
2246
  (u = E.state).mode === 12 && (u.mode = 13), pt = E.next_out, ut = E.output, dt = E.avail_out, X = E.next_in, j = E.input, Z = E.avail_in, F = u.hold, z = u.bits, it = Z, nt = dt, B = _;
2247
2247
  t: for (; ; ) switch (u.mode) {
2248
2248
  case m:
@@ -2344,7 +2344,7 @@ function no() {
2344
2344
  if (Z === 0) break t;
2345
2345
  Z--, F += j[X++] << z, z += 8;
2346
2346
  }
2347
- E.adler = u.check = b(F), z = F = 0, u.mode = 11;
2347
+ E.adler = u.check = g(F), z = F = 0, u.mode = 11;
2348
2348
  case 11:
2349
2349
  if (u.havedict === 0) return E.next_out = pt, E.avail_out = dt, E.next_in = X, E.avail_in = Z, u.hold = F, u.bits = z, 2;
2350
2350
  E.adler = u.check = 1, u.mode = 12;
@@ -2414,7 +2414,7 @@ function no() {
2414
2414
  u.lens[Y[u.have++]] = 7 & F, F >>>= 3, z -= 3;
2415
2415
  }
2416
2416
  for (; u.have < 19; ) u.lens[Y[u.have++]] = 0;
2417
- if (u.lencode = u.lendyn, u.lenbits = 7, R = { bits: u.lenbits }, B = p(0, u.lens, 0, 19, u.lencode, 0, u.work, R), u.lenbits = R.bits, B) {
2417
+ if (u.lencode = u.lendyn, u.lenbits = 7, R = { bits: u.lenbits }, B = f(0, u.lens, 0, 19, u.lencode, 0, u.work, R), u.lenbits = R.bits, B) {
2418
2418
  E.msg = "invalid code lengths set", u.mode = 30;
2419
2419
  break;
2420
2420
  }
@@ -2462,11 +2462,11 @@ function no() {
2462
2462
  E.msg = "invalid code -- missing end-of-block", u.mode = 30;
2463
2463
  break;
2464
2464
  }
2465
- if (u.lenbits = 9, R = { bits: u.lenbits }, B = p(g, u.lens, 0, u.nlen, u.lencode, 0, u.work, R), u.lenbits = R.bits, B) {
2465
+ if (u.lenbits = 9, R = { bits: u.lenbits }, B = f(v, u.lens, 0, u.nlen, u.lencode, 0, u.work, R), u.lenbits = R.bits, B) {
2466
2466
  E.msg = "invalid literal/lengths set", u.mode = 30;
2467
2467
  break;
2468
2468
  }
2469
- if (u.distbits = 6, u.distcode = u.distdyn, R = { bits: u.distbits }, B = p(v, u.lens, u.nlen, u.ndist, u.distcode, 0, u.work, R), u.distbits = R.bits, B) {
2469
+ if (u.distbits = 6, u.distcode = u.distdyn, R = { bits: u.distbits }, B = f(b, u.lens, u.nlen, u.ndist, u.distcode, 0, u.work, R), u.distbits = R.bits, B) {
2470
2470
  E.msg = "invalid distances set", u.mode = 30;
2471
2471
  break;
2472
2472
  }
@@ -2563,7 +2563,7 @@ function no() {
2563
2563
  if (Z === 0) break t;
2564
2564
  Z--, F |= j[X++] << z, z += 8;
2565
2565
  }
2566
- if (nt -= dt, E.total_out += nt, u.total += nt, nt && (E.adler = u.check = u.flags ? o(u.check, ut, nt, pt - nt) : s(u.check, ut, nt, pt - nt)), nt = dt, (u.flags ? F : b(F)) !== u.check) {
2566
+ if (nt -= dt, E.total_out += nt, u.total += nt, nt && (E.adler = u.check = u.flags ? o(u.check, ut, nt, pt - nt) : s(u.check, ut, nt, pt - nt)), nt = dt, (u.flags ? F : g(F)) !== u.check) {
2567
2567
  E.msg = "incorrect data check", u.mode = 30;
2568
2568
  break;
2569
2569
  }
@@ -2593,48 +2593,48 @@ function no() {
2593
2593
  return -4;
2594
2594
  case 32:
2595
2595
  default:
2596
- return f;
2596
+ return p;
2597
2597
  }
2598
2598
  return E.next_out = pt, E.avail_out = dt, E.next_in = X, E.avail_in = Z, u.hold = F, u.bits = z, (u.wsize || nt !== E.avail_out && u.mode < 30 && (u.mode < 27 || N !== 4)) && G(E, E.output, E.next_out, nt - E.avail_out) ? (u.mode = 31, -4) : (it -= E.avail_in, nt -= E.avail_out, E.total_in += it, E.total_out += nt, u.total += nt, u.wrap && nt && (E.adler = u.check = u.flags ? o(u.check, ut, nt, E.next_out - nt) : s(u.check, ut, nt, E.next_out - nt)), E.data_type = u.bits + (u.last ? 64 : 0) + (u.mode === 12 ? 128 : 0) + (u.mode === 20 || u.mode === 15 ? 256 : 0), (it == 0 && nt === 0 || N === 4) && B === _ && (B = -5), B);
2599
2599
  }, i.inflateEnd = function(E) {
2600
- if (!E || !E.state) return f;
2600
+ if (!E || !E.state) return p;
2601
2601
  var N = E.state;
2602
2602
  return N.window && (N.window = null), E.state = null, _;
2603
2603
  }, i.inflateGetHeader = function(E, N) {
2604
2604
  var u;
2605
- return E && E.state ? (2 & (u = E.state).wrap) == 0 ? f : ((u.head = N).done = !1, _) : f;
2605
+ return E && E.state ? (2 & (u = E.state).wrap) == 0 ? p : ((u.head = N).done = !1, _) : p;
2606
2606
  }, i.inflateSetDictionary = function(E, N) {
2607
2607
  var u, j = N.length;
2608
- return E && E.state ? (u = E.state).wrap !== 0 && u.mode !== 11 ? f : u.mode === 11 && s(1, N, j, 0) !== u.check ? -3 : G(E, N, j, j) ? (u.mode = 31, -4) : (u.havedict = 1, _) : f;
2608
+ return E && E.state ? (u = E.state).wrap !== 0 && u.mode !== 11 ? p : u.mode === 11 && s(1, N, j, 0) !== u.check ? -3 : G(E, N, j, j) ? (u.mode = 31, -4) : (u.havedict = 1, _) : p;
2609
2609
  }, i.inflateInfo = "pako inflate (from Nodeca project)";
2610
2610
  }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(t, n, i) {
2611
- var a = t("../utils/common"), s = [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], o = [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], d = [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], p = [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];
2612
- n.exports = function(g, v, _, f, m, h, w, b) {
2613
- var y, S, A, T, U, C, P, O, V, G = b.bits, E = 0, N = 0, u = 0, j = 0, ut = 0, X = 0, pt = 0, Z = 0, dt = 0, F = 0, z = null, it = 0, nt = new a.Buf16(16), W = new a.Buf16(16), yt = null, Ot = 0;
2611
+ var a = t("../utils/common"), s = [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], o = [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], d = [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], f = [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];
2612
+ n.exports = function(v, b, _, p, m, h, w, g) {
2613
+ var y, S, A, T, U, C, P, O, V, G = g.bits, E = 0, N = 0, u = 0, j = 0, ut = 0, X = 0, pt = 0, Z = 0, dt = 0, F = 0, z = null, it = 0, nt = new a.Buf16(16), W = new a.Buf16(16), yt = null, Ot = 0;
2614
2614
  for (E = 0; E <= 15; E++) nt[E] = 0;
2615
- for (N = 0; N < f; N++) nt[v[_ + N]]++;
2615
+ for (N = 0; N < p; N++) nt[b[_ + N]]++;
2616
2616
  for (ut = G, j = 15; 1 <= j && nt[j] === 0; j--) ;
2617
- if (j < ut && (ut = j), j === 0) return m[h++] = 20971520, m[h++] = 20971520, b.bits = 1, 0;
2617
+ if (j < ut && (ut = j), j === 0) return m[h++] = 20971520, m[h++] = 20971520, g.bits = 1, 0;
2618
2618
  for (u = 1; u < j && nt[u] === 0; u++) ;
2619
2619
  for (ut < u && (ut = u), E = Z = 1; E <= 15; E++) if (Z <<= 1, (Z -= nt[E]) < 0) return -1;
2620
- if (0 < Z && (g === 0 || j !== 1)) return -1;
2620
+ if (0 < Z && (v === 0 || j !== 1)) return -1;
2621
2621
  for (W[1] = 0, E = 1; E < 15; E++) W[E + 1] = W[E] + nt[E];
2622
- for (N = 0; N < f; N++) v[_ + N] !== 0 && (w[W[v[_ + N]]++] = N);
2623
- if (C = g === 0 ? (z = yt = w, 19) : g === 1 ? (z = s, it -= 257, yt = o, Ot -= 257, 256) : (z = d, yt = p, -1), E = u, U = h, pt = N = F = 0, A = -1, T = (dt = 1 << (X = ut)) - 1, g === 1 && 852 < dt || g === 2 && 592 < dt) return 1;
2622
+ for (N = 0; N < p; N++) b[_ + N] !== 0 && (w[W[b[_ + N]]++] = N);
2623
+ if (C = v === 0 ? (z = yt = w, 19) : v === 1 ? (z = s, it -= 257, yt = o, Ot -= 257, 256) : (z = d, yt = f, -1), E = u, U = h, pt = N = F = 0, A = -1, T = (dt = 1 << (X = ut)) - 1, v === 1 && 852 < dt || v === 2 && 592 < dt) return 1;
2624
2624
  for (; ; ) {
2625
2625
  for (P = E - pt, V = w[N] < C ? (O = 0, w[N]) : w[N] > C ? (O = yt[Ot + w[N]], z[it + w[N]]) : (O = 96, 0), y = 1 << E - pt, u = S = 1 << X; m[U + (F >> pt) + (S -= y)] = P << 24 | O << 16 | V | 0, S !== 0; ) ;
2626
2626
  for (y = 1 << E - 1; F & y; ) y >>= 1;
2627
2627
  if (y !== 0 ? (F &= y - 1, F += y) : F = 0, N++, --nt[E] == 0) {
2628
2628
  if (E === j) break;
2629
- E = v[_ + w[N]];
2629
+ E = b[_ + w[N]];
2630
2630
  }
2631
2631
  if (ut < E && (F & T) !== A) {
2632
2632
  for (pt === 0 && (pt = ut), U += u, Z = 1 << (X = E - pt); X + pt < j && !((Z -= nt[X + pt]) <= 0); ) X++, Z <<= 1;
2633
- if (dt += 1 << X, g === 1 && 852 < dt || g === 2 && 592 < dt) return 1;
2633
+ if (dt += 1 << X, v === 1 && 852 < dt || v === 2 && 592 < dt) return 1;
2634
2634
  m[A = F & T] = ut << 24 | X << 16 | U - h | 0;
2635
2635
  }
2636
2636
  }
2637
- return F !== 0 && (m[U + F] = E - pt << 24 | 64 << 16 | 0), b.bits = ut, 0;
2637
+ return F !== 0 && (m[U + F] = E - pt << 24 | 64 << 16 | 0), g.bits = ut, 0;
2638
2638
  };
2639
2639
  }, { "../utils/common": 41 }], 51: [function(t, n, i) {
2640
2640
  n.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" };
@@ -2643,17 +2643,17 @@ function no() {
2643
2643
  function d(x) {
2644
2644
  for (var D = x.length; 0 <= --D; ) x[D] = 0;
2645
2645
  }
2646
- var p = 0, g = 29, v = 256, _ = v + 1 + g, f = 30, m = 19, h = 2 * _ + 1, w = 15, b = 16, y = 7, S = 256, A = 16, T = 17, U = 18, C = [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], P = [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], O = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], V = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], G = new Array(2 * (_ + 2));
2646
+ var f = 0, v = 29, b = 256, _ = b + 1 + v, p = 30, m = 19, h = 2 * _ + 1, w = 15, g = 16, y = 7, S = 256, A = 16, T = 17, U = 18, C = [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], P = [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], O = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], V = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], G = new Array(2 * (_ + 2));
2647
2647
  d(G);
2648
- var E = new Array(2 * f);
2648
+ var E = new Array(2 * p);
2649
2649
  d(E);
2650
2650
  var N = new Array(512);
2651
2651
  d(N);
2652
2652
  var u = new Array(256);
2653
2653
  d(u);
2654
- var j = new Array(g);
2654
+ var j = new Array(v);
2655
2655
  d(j);
2656
- var ut, X, pt, Z = new Array(f);
2656
+ var ut, X, pt, Z = new Array(p);
2657
2657
  function dt(x, D, Y, q, I) {
2658
2658
  this.static_tree = x, this.extra_bits = D, this.extra_base = Y, this.elems = q, this.max_length = I, this.has_stree = x && x.length;
2659
2659
  }
@@ -2667,7 +2667,7 @@ function no() {
2667
2667
  x.pending_buf[x.pending++] = 255 & D, x.pending_buf[x.pending++] = D >>> 8 & 255;
2668
2668
  }
2669
2669
  function nt(x, D, Y) {
2670
- x.bi_valid > b - Y ? (x.bi_buf |= D << x.bi_valid & 65535, it(x, x.bi_buf), x.bi_buf = D >> b - x.bi_valid, x.bi_valid += Y - b) : (x.bi_buf |= D << x.bi_valid & 65535, x.bi_valid += Y);
2670
+ x.bi_valid > g - Y ? (x.bi_buf |= D << x.bi_valid & 65535, it(x, x.bi_buf), x.bi_buf = D >> g - x.bi_valid, x.bi_valid += Y - g) : (x.bi_buf |= D << x.bi_valid & 65535, x.bi_valid += Y);
2671
2671
  }
2672
2672
  function W(x, D, Y) {
2673
2673
  nt(x, Y[2 * D], Y[2 * D + 1]);
@@ -2687,7 +2687,7 @@ function no() {
2687
2687
  function mt(x) {
2688
2688
  var D;
2689
2689
  for (D = 0; D < _; D++) x.dyn_ltree[2 * D] = 0;
2690
- for (D = 0; D < f; D++) x.dyn_dtree[2 * D] = 0;
2690
+ for (D = 0; D < p; D++) x.dyn_dtree[2 * D] = 0;
2691
2691
  for (D = 0; D < m; D++) x.bl_tree[2 * D] = 0;
2692
2692
  x.dyn_ltree[2 * S] = 1, x.opt_len = x.static_len = 0, x.last_lit = x.matches = 0;
2693
2693
  }
@@ -2704,7 +2704,7 @@ function no() {
2704
2704
  }
2705
2705
  function It(x, D, Y) {
2706
2706
  var q, I, K, et, J = 0;
2707
- if (x.last_lit !== 0) for (; q = x.pending_buf[x.d_buf + 2 * J] << 8 | x.pending_buf[x.d_buf + 2 * J + 1], I = x.pending_buf[x.l_buf + J], J++, q === 0 ? W(x, I, D) : (W(x, (K = u[I]) + v + 1, D), (et = C[K]) !== 0 && nt(x, I -= j[K], et), W(x, K = z(--q), Y), (et = P[K]) !== 0 && nt(x, q -= Z[K], et)), J < x.last_lit; ) ;
2707
+ if (x.last_lit !== 0) for (; q = x.pending_buf[x.d_buf + 2 * J] << 8 | x.pending_buf[x.d_buf + 2 * J + 1], I = x.pending_buf[x.l_buf + J], J++, q === 0 ? W(x, I, D) : (W(x, (K = u[I]) + b + 1, D), (et = C[K]) !== 0 && nt(x, I -= j[K], et), W(x, K = z(--q), Y), (et = P[K]) !== 0 && nt(x, q -= Z[K], et)), J < x.last_lit; ) ;
2708
2708
  W(x, S, D);
2709
2709
  }
2710
2710
  function jt(x, D) {
@@ -2741,23 +2741,23 @@ function no() {
2741
2741
  d(Z);
2742
2742
  var R = !1;
2743
2743
  function k(x, D, Y, q) {
2744
- nt(x, (p << 1) + (q ? 1 : 0), 3), function(I, K, et, J) {
2744
+ nt(x, (f << 1) + (q ? 1 : 0), 3), function(I, K, et, J) {
2745
2745
  vt(I), it(I, et), it(I, ~et), a.arraySet(I.pending_buf, I.window, K, et, I.pending), I.pending += et;
2746
2746
  }(x, D, Y);
2747
2747
  }
2748
2748
  i._tr_init = function(x) {
2749
2749
  R || (function() {
2750
2750
  var D, Y, q, I, K, et = new Array(w + 1);
2751
- for (I = q = 0; I < g - 1; I++) for (j[I] = q, D = 0; D < 1 << C[I]; D++) u[q++] = I;
2751
+ for (I = q = 0; I < v - 1; I++) for (j[I] = q, D = 0; D < 1 << C[I]; D++) u[q++] = I;
2752
2752
  for (u[q - 1] = I, I = K = 0; I < 16; I++) for (Z[I] = K, D = 0; D < 1 << P[I]; D++) N[K++] = I;
2753
- for (K >>= 7; I < f; I++) for (Z[I] = K << 7, D = 0; D < 1 << P[I] - 7; D++) N[256 + K++] = I;
2753
+ for (K >>= 7; I < p; I++) for (Z[I] = K << 7, D = 0; D < 1 << P[I] - 7; D++) N[256 + K++] = I;
2754
2754
  for (Y = 0; Y <= w; Y++) et[Y] = 0;
2755
2755
  for (D = 0; D <= 143; ) G[2 * D + 1] = 8, D++, et[8]++;
2756
2756
  for (; D <= 255; ) G[2 * D + 1] = 9, D++, et[9]++;
2757
2757
  for (; D <= 279; ) G[2 * D + 1] = 7, D++, et[7]++;
2758
2758
  for (; D <= 287; ) G[2 * D + 1] = 8, D++, et[8]++;
2759
- for (Ot(G, _ + 1, et), D = 0; D < f; D++) E[2 * D + 1] = 5, E[2 * D] = yt(D, 5);
2760
- ut = new dt(G, C, v + 1, _, w), X = new dt(E, P, 0, f, w), pt = new dt(new Array(0), O, 0, m, y);
2759
+ for (Ot(G, _ + 1, et), D = 0; D < p; D++) E[2 * D + 1] = 5, E[2 * D] = yt(D, 5);
2760
+ ut = new dt(G, C, b + 1, _, w), X = new dt(E, P, 0, p, w), pt = new dt(new Array(0), O, 0, m, y);
2761
2761
  }(), R = !0), x.l_desc = new F(x.dyn_ltree, ut), x.d_desc = new F(x.dyn_dtree, X), x.bl_desc = new F(x.bl_tree, pt), x.bi_buf = 0, x.bi_valid = 0, mt(x);
2762
2762
  }, i._tr_stored_block = k, i._tr_flush_block = function(x, D, Y, q) {
2763
2763
  var I, K, et = 0;
@@ -2765,7 +2765,7 @@ function no() {
2765
2765
  var st, wt = 4093624447;
2766
2766
  for (st = 0; st <= 31; st++, wt >>>= 1) if (1 & wt && J.dyn_ltree[2 * st] !== 0) return s;
2767
2767
  if (J.dyn_ltree[18] !== 0 || J.dyn_ltree[20] !== 0 || J.dyn_ltree[26] !== 0) return o;
2768
- for (st = 32; st < v; st++) if (J.dyn_ltree[2 * st] !== 0) return o;
2768
+ for (st = 32; st < b; st++) if (J.dyn_ltree[2 * st] !== 0) return o;
2769
2769
  return s;
2770
2770
  }(x)), jt(x, x.l_desc), jt(x, x.d_desc), et = function(J) {
2771
2771
  var st;
@@ -2777,7 +2777,7 @@ function no() {
2777
2777
  B(J, J.dyn_ltree, st - 1), B(J, J.dyn_dtree, wt - 1);
2778
2778
  }(x, x.l_desc.max_code + 1, x.d_desc.max_code + 1, et + 1), It(x, x.dyn_ltree, x.dyn_dtree)), mt(x), q && vt(x);
2779
2779
  }, i._tr_tally = function(x, D, Y) {
2780
- return x.pending_buf[x.d_buf + 2 * x.last_lit] = D >>> 8 & 255, x.pending_buf[x.d_buf + 2 * x.last_lit + 1] = 255 & D, x.pending_buf[x.l_buf + x.last_lit] = 255 & Y, x.last_lit++, D === 0 ? x.dyn_ltree[2 * Y]++ : (x.matches++, D--, x.dyn_ltree[2 * (u[Y] + v + 1)]++, x.dyn_dtree[2 * z(D)]++), x.last_lit === x.lit_bufsize - 1;
2780
+ return x.pending_buf[x.d_buf + 2 * x.last_lit] = D >>> 8 & 255, x.pending_buf[x.d_buf + 2 * x.last_lit + 1] = 255 & D, x.pending_buf[x.l_buf + x.last_lit] = 255 & Y, x.last_lit++, D === 0 ? x.dyn_ltree[2 * Y]++ : (x.matches++, D--, x.dyn_ltree[2 * (u[Y] + b + 1)]++, x.dyn_dtree[2 * z(D)]++), x.last_lit === x.lit_bufsize - 1;
2781
2781
  }, i._tr_align = function(x) {
2782
2782
  nt(x, 2, 3), W(x, S, G), function(D) {
2783
2783
  D.bi_valid === 16 ? (it(D, D.bi_buf), D.bi_buf = 0, D.bi_valid = 0) : 8 <= D.bi_valid && (D.pending_buf[D.pending++] = 255 & D.bi_buf, D.bi_buf >>= 8, D.bi_valid -= 8);
@@ -2791,7 +2791,7 @@ function no() {
2791
2791
  (function(a) {
2792
2792
  (function(s, o) {
2793
2793
  if (!s.setImmediate) {
2794
- var d, p, g, v, _ = 1, f = {}, m = !1, h = s.document, w = Object.getPrototypeOf && Object.getPrototypeOf(s);
2794
+ var d, f, v, b, _ = 1, p = {}, m = !1, h = s.document, w = Object.getPrototypeOf && Object.getPrototypeOf(s);
2795
2795
  w = w && w.setTimeout ? w : s, d = {}.toString.call(s.process) === "[object process]" ? function(A) {
2796
2796
  process.nextTick(function() {
2797
2797
  y(A);
@@ -2803,33 +2803,33 @@ function no() {
2803
2803
  A = !1;
2804
2804
  }, s.postMessage("", "*"), s.onmessage = T, A;
2805
2805
  }
2806
- }() ? (v = "setImmediate$" + Math.random() + "$", s.addEventListener ? s.addEventListener("message", S, !1) : s.attachEvent("onmessage", S), function(A) {
2807
- s.postMessage(v + A, "*");
2808
- }) : s.MessageChannel ? ((g = new MessageChannel()).port1.onmessage = function(A) {
2806
+ }() ? (b = "setImmediate$" + Math.random() + "$", s.addEventListener ? s.addEventListener("message", S, !1) : s.attachEvent("onmessage", S), function(A) {
2807
+ s.postMessage(b + A, "*");
2808
+ }) : s.MessageChannel ? ((v = new MessageChannel()).port1.onmessage = function(A) {
2809
2809
  y(A.data);
2810
2810
  }, function(A) {
2811
- g.port2.postMessage(A);
2812
- }) : h && "onreadystatechange" in h.createElement("script") ? (p = h.documentElement, function(A) {
2811
+ v.port2.postMessage(A);
2812
+ }) : h && "onreadystatechange" in h.createElement("script") ? (f = h.documentElement, function(A) {
2813
2813
  var T = h.createElement("script");
2814
2814
  T.onreadystatechange = function() {
2815
- y(A), T.onreadystatechange = null, p.removeChild(T), T = null;
2816
- }, p.appendChild(T);
2815
+ y(A), T.onreadystatechange = null, f.removeChild(T), T = null;
2816
+ }, f.appendChild(T);
2817
2817
  }) : function(A) {
2818
2818
  setTimeout(y, 0, A);
2819
2819
  }, w.setImmediate = function(A) {
2820
2820
  typeof A != "function" && (A = new Function("" + A));
2821
2821
  for (var T = new Array(arguments.length - 1), U = 0; U < T.length; U++) T[U] = arguments[U + 1];
2822
2822
  var C = { callback: A, args: T };
2823
- return f[_] = C, d(_), _++;
2824
- }, w.clearImmediate = b;
2823
+ return p[_] = C, d(_), _++;
2824
+ }, w.clearImmediate = g;
2825
2825
  }
2826
- function b(A) {
2827
- delete f[A];
2826
+ function g(A) {
2827
+ delete p[A];
2828
2828
  }
2829
2829
  function y(A) {
2830
2830
  if (m) setTimeout(y, 0, A);
2831
2831
  else {
2832
- var T = f[A];
2832
+ var T = p[A];
2833
2833
  if (T) {
2834
2834
  m = !0;
2835
2835
  try {
@@ -2853,13 +2853,13 @@ function no() {
2853
2853
  }
2854
2854
  })(T);
2855
2855
  } finally {
2856
- b(A), m = !1;
2856
+ g(A), m = !1;
2857
2857
  }
2858
2858
  }
2859
2859
  }
2860
2860
  }
2861
2861
  function S(A) {
2862
- A.source === s && typeof A.data == "string" && A.data.indexOf(v) === 0 && y(+A.data.slice(v.length));
2862
+ A.source === s && typeof A.data == "string" && A.data.indexOf(b) === 0 && y(+A.data.slice(b.length));
2863
2863
  }
2864
2864
  })(typeof self > "u" ? a === void 0 ? this : a : self);
2865
2865
  }).call(this, typeof sr < "u" ? sr : typeof self < "u" ? self : typeof window < "u" ? window : {});
@@ -3275,21 +3275,21 @@ const Sn = (r, e) => r.includes(e), Qn = (r) => ({ pointerStartX: r.clientX, poi
3275
3275
  r,
3276
3276
  `//record[country_name[text()="${e.toUpperCase()}"]]`
3277
3277
  ), Mo = (r, e, t) => r.reduce((n, i) => {
3278
- var _, f, m;
3279
- const a = (_ = i.querySelector("location_name")) == null ? void 0 : _.textContent, s = (f = i.querySelector("exp_date")) == null ? void 0 : f.textContent, o = (m = i.querySelector("eff_date")) == null ? void 0 : m.textContent;
3278
+ var _, p, m;
3279
+ const a = (_ = i.querySelector("location_name")) == null ? void 0 : _.textContent, s = (p = i.querySelector("exp_date")) == null ? void 0 : p.textContent, o = (m = i.querySelector("eff_date")) == null ? void 0 : m.textContent;
3280
3280
  if (!a || !s || !o) return n;
3281
3281
  const d = /* @__PURE__ */ new Date(
3282
3282
  `${s.split("/")[2]}-${s.split("/")[0]}-${s.split("/")[1]}`
3283
- ), p = /* @__PURE__ */ new Date(
3283
+ ), f = /* @__PURE__ */ new Date(
3284
3284
  `${o.split("/")[2]}-${o.split("/")[0]}-${o.split("/")[1]}`
3285
- ), g = new Date(e);
3286
- if (g > d || g < p) return n;
3287
- const v = {
3285
+ ), v = new Date(e);
3286
+ if (v > d || v < f) return n;
3287
+ const b = {
3288
3288
  city: a,
3289
3289
  country: t,
3290
3290
  label: a
3291
3291
  };
3292
- return n.push(v), n;
3292
+ return n.push(b), n;
3293
3293
  }, []), No = async (r, e) => {
3294
3294
  try {
3295
3295
  return await X0(cn(r)).then((t) => Ro(t, e)).then((t) => Mo(t, r, e)).then((t) => jr(t, "city")).then((t) => Yr(t, "city"));
@@ -3364,8 +3364,8 @@ const Sn = (r, e) => r.includes(e), Qn = (r) => ({ pointerStartX: r.clientX, poi
3364
3364
  );
3365
3365
  }
3366
3366
  }, jo = (r) => {
3367
- var s, o, d, p, g;
3368
- const e = (s = r.querySelector("country_name")) == null ? void 0 : s.textContent, t = (o = r.querySelector("eff_date")) == null ? void 0 : o.textContent, n = (d = r.querySelector("exp_date")) == null ? void 0 : d.textContent, i = (p = r.querySelector("start_date")) == null ? void 0 : p.textContent, a = (g = r.querySelector("end_date")) == null ? void 0 : g.textContent;
3367
+ var s, o, d, f, v;
3368
+ const e = (s = r.querySelector("country_name")) == null ? void 0 : s.textContent, t = (o = r.querySelector("eff_date")) == null ? void 0 : o.textContent, n = (d = r.querySelector("exp_date")) == null ? void 0 : d.textContent, i = (f = r.querySelector("start_date")) == null ? void 0 : f.textContent, a = (v = r.querySelector("end_date")) == null ? void 0 : v.textContent;
3369
3369
  if (!(e && t && n && i && a))
3370
3370
  throw new Error(
3371
3371
  "Failed to pull country_name, eff_date, exp_date, start_date, end_date from XML records."
@@ -3382,30 +3382,30 @@ const Sn = (r, e) => r.includes(e), Qn = (r) => ({ pointerStartX: r.clientX, poi
3382
3382
  `${t.split("/")[2]}-${t.split("/")[0]}-${t.split("/")[1]}`
3383
3383
  ), d = /* @__PURE__ */ new Date(
3384
3384
  `${n.split("/")[2]}-${n.split("/")[0]}-${n.split("/")[1]}`
3385
- ), p = /* @__PURE__ */ new Date(`${r}-${i == null ? void 0 : i.replace("/", "-")}`), g = /* @__PURE__ */ new Date(`${r}-${a == null ? void 0 : a.replace("/", "-")}`);
3386
- if (!(s && o && d && p && g))
3385
+ ), f = /* @__PURE__ */ new Date(`${r}-${i == null ? void 0 : i.replace("/", "-")}`), v = /* @__PURE__ */ new Date(`${r}-${a == null ? void 0 : a.replace("/", "-")}`);
3386
+ if (!(s && o && d && f && v))
3387
3387
  throw new Error(
3388
3388
  "Failed to create Date objects using date columns from XML records."
3389
3389
  );
3390
- return { date: s, effDate: o, expDate: d, startDate: p, endDate: g };
3390
+ return { date: s, effDate: o, expDate: d, startDate: f, endDate: v };
3391
3391
  }, Vo = (r, e, t) => t.find((n) => {
3392
3392
  const i = le(r), {
3393
3393
  countryText: a,
3394
3394
  effDateText: s,
3395
3395
  expDateText: o,
3396
3396
  startDateText: d,
3397
- endDateText: p
3397
+ endDateText: f
3398
3398
  } = jo(n);
3399
3399
  if (a !== e) return !1;
3400
- const { date: g, effDate: v, expDate: _, startDate: f, endDate: m } = Yo(
3400
+ const { date: v, effDate: b, expDate: _, startDate: p, endDate: m } = Yo(
3401
3401
  i,
3402
3402
  r,
3403
3403
  s,
3404
3404
  o,
3405
3405
  d,
3406
- p
3406
+ f
3407
3407
  );
3408
- return g >= v && g <= _ ? m < f && (m.setUTCFullYear(+i + 1), g >= f && g <= m || (f.setUTCFullYear(+i - 1), m.setUTCFullYear(+i), g >= f && g <= m)) || g >= f && g <= m : !1;
3408
+ return v >= b && v <= _ ? m < p && (m.setUTCFullYear(+i + 1), v >= p && v <= m || (p.setUTCFullYear(+i - 1), m.setUTCFullYear(+i), v >= p && v <= m)) || v >= p && v <= m : !1;
3409
3409
  }), qo = async (r) => {
3410
3410
  const e = await X0(cn(r.date));
3411
3411
  if (!e) throw new Error("Error getting rates from XML");
@@ -6005,9 +6005,8 @@ const Sn = (r, e) => r.includes(e), Qn = (r) => ({ pointerStartX: r.clientX, poi
6005
6005
  <!-- Details -->
6006
6006
  <div
6007
6007
  data-pdc="expense-row-details"
6008
- class="absolute top-0 left-[-100%] h-0 w-full
6009
- [transform:translateX(0%)] overflow-hidden border-l-2
6010
- border-l-neutral-200 opacity-0
6008
+ class="absolute top-0 left-[-100%] w-full [transform:translateX(0%)]
6009
+ overflow-hidden border-l-2 border-l-neutral-200 opacity-0
6011
6010
  [transition:height_0.35s_ease,transform_0.35s_ease-in,opacity_0.35s_ease-out]
6012
6011
  lg:grid lg:[transform:translateX(100%)] lg:grid-cols-5
6013
6012
  lg:opacity-100"
@@ -7337,33 +7336,33 @@ const Fl = (r) => {
7337
7336
  for (let n = 0; n < r.length; n++) {
7338
7337
  let a = r.substring(n).match(Ta);
7339
7338
  const s = r.substring(n, n + 1), o = a ? a[0] : null;
7340
- let d = [], p = /* @__PURE__ */ new Set();
7341
- for (const g of t) {
7342
- const v = g.last();
7343
- if (!v || v.length == 1 || v.end <= n)
7339
+ let d = [], f = /* @__PURE__ */ new Set();
7340
+ for (const v of t) {
7341
+ const b = v.last();
7342
+ if (!b || b.length == 1 || b.end <= n)
7344
7343
  if (o) {
7345
7344
  const _ = o.length;
7346
- g.add({ start: n, end: n + _, length: _, substr: o }), p.add("1");
7345
+ v.add({ start: n, end: n + _, length: _, substr: o }), f.add("1");
7347
7346
  } else
7348
- g.add({ start: n, end: n + 1, length: 1, substr: s }), p.add("2");
7347
+ v.add({ start: n, end: n + 1, length: 1, substr: s }), f.add("2");
7349
7348
  else if (o) {
7350
- let _ = g.clone(n, v);
7351
- const f = o.length;
7352
- _.add({ start: n, end: n + f, length: f, substr: o }), d.push(_);
7349
+ let _ = v.clone(n, b);
7350
+ const p = o.length;
7351
+ _.add({ start: n, end: n + p, length: p, substr: o }), d.push(_);
7353
7352
  } else
7354
- p.add("3");
7353
+ f.add("3");
7355
7354
  }
7356
7355
  if (d.length > 0) {
7357
- d = d.sort((g, v) => g.length() - v.length());
7358
- for (let g of d)
7359
- Cl(g, t) || t.push(g);
7356
+ d = d.sort((v, b) => v.length() - b.length());
7357
+ for (let v of d)
7358
+ Cl(v, t) || t.push(v);
7360
7359
  continue;
7361
7360
  }
7362
- if (n > 0 && p.size == 1 && !p.has("3")) {
7361
+ if (n > 0 && f.size == 1 && !f.has("3")) {
7363
7362
  e += Ii(t, !1);
7364
- let g = new Tr();
7365
- const v = t[0];
7366
- v && g.add(v.last()), t = [g];
7363
+ let v = new Tr();
7364
+ const b = t[0];
7365
+ b && v.add(b.last()), t = [v];
7367
7366
  }
7368
7367
  }
7369
7368
  return e += Ii(t, !0), e;
@@ -7415,11 +7414,11 @@ class Ml {
7415
7414
  const i = [], a = e.split(/\s+/);
7416
7415
  var s;
7417
7416
  return n && (s = new RegExp("^(" + Object.keys(n).map(Vn).join("|") + "):(.*)$")), a.forEach((o) => {
7418
- let d, p = null, g = null;
7419
- s && (d = o.match(s)) && (p = d[1], o = d[2]), o.length > 0 && (this.settings.diacritics ? g = Fl(o) || null : g = Vn(o), g && t && (g = "\\b" + g)), i.push({
7417
+ let d, f = null, v = null;
7418
+ s && (d = o.match(s)) && (f = d[1], o = d[2]), o.length > 0 && (this.settings.diacritics ? v = Fl(o) || null : v = Vn(o), v && t && (v = "\\b" + v)), i.push({
7420
7419
  string: o,
7421
- regex: g ? new RegExp(g, "iu") : null,
7422
- field: p
7420
+ regex: v ? new RegExp(v, "iu") : null,
7421
+ field: f
7423
7422
  });
7424
7423
  }), i;
7425
7424
  }
@@ -7451,36 +7450,36 @@ class Ml {
7451
7450
  return 1;
7452
7451
  };
7453
7452
  const d = /* @__PURE__ */ function() {
7454
- return s === 1 ? function(p, g) {
7455
- const v = i[0].field;
7456
- return o0(o(g, v), p, a[v] || 1);
7457
- } : function(p, g) {
7458
- var v = 0;
7459
- if (p.field) {
7460
- const _ = o(g, p.field);
7461
- !p.regex && _ ? v += 1 / s : v += o0(_, p, 1);
7453
+ return s === 1 ? function(f, v) {
7454
+ const b = i[0].field;
7455
+ return o0(o(v, b), f, a[b] || 1);
7456
+ } : function(f, v) {
7457
+ var b = 0;
7458
+ if (f.field) {
7459
+ const _ = o(v, f.field);
7460
+ !f.regex && _ ? b += 1 / s : b += o0(_, f, 1);
7462
7461
  } else
7463
- lr(a, (_, f) => {
7464
- v += o0(o(g, f), p, _);
7462
+ lr(a, (_, p) => {
7463
+ b += o0(o(v, p), f, _);
7465
7464
  });
7466
- return v / s;
7465
+ return b / s;
7467
7466
  };
7468
7467
  }();
7469
- return n === 1 ? function(p) {
7470
- return d(t[0], p);
7471
- } : e.options.conjunction === "and" ? function(p) {
7472
- var g, v = 0;
7468
+ return n === 1 ? function(f) {
7469
+ return d(t[0], f);
7470
+ } : e.options.conjunction === "and" ? function(f) {
7471
+ var v, b = 0;
7473
7472
  for (let _ of t) {
7474
- if (g = d(_, p), g <= 0)
7473
+ if (v = d(_, f), v <= 0)
7475
7474
  return 0;
7476
- v += g;
7475
+ b += v;
7477
7476
  }
7478
- return v / n;
7479
- } : function(p) {
7480
- var g = 0;
7481
- return lr(t, (v) => {
7482
- g += d(v, p);
7483
- }), g / n;
7477
+ return b / n;
7478
+ } : function(f) {
7479
+ var v = 0;
7480
+ return lr(t, (b) => {
7481
+ v += d(b, f);
7482
+ }), v / n;
7484
7483
  };
7485
7484
  }
7486
7485
  /**
@@ -7499,27 +7498,27 @@ class Ml {
7499
7498
  const i = this, a = e.options, s = !e.query && a.sort_empty ? a.sort_empty : a.sort;
7500
7499
  if (typeof s == "function")
7501
7500
  return s.bind(this);
7502
- const o = function(p, g) {
7503
- return p === "$score" ? g.score : e.getAttrFn(i.items[g.id], p);
7501
+ const o = function(f, v) {
7502
+ return f === "$score" ? v.score : e.getAttrFn(i.items[v.id], f);
7504
7503
  };
7505
7504
  if (s)
7506
- for (let p of s)
7507
- (e.query || p.field !== "$score") && n.push(p);
7505
+ for (let f of s)
7506
+ (e.query || f.field !== "$score") && n.push(f);
7508
7507
  if (e.query) {
7509
7508
  t = !0;
7510
- for (let p of n)
7511
- if (p.field === "$score") {
7509
+ for (let f of n)
7510
+ if (f.field === "$score") {
7512
7511
  t = !1;
7513
7512
  break;
7514
7513
  }
7515
7514
  t && n.unshift({ field: "$score", direction: "desc" });
7516
7515
  } else
7517
- n = n.filter((p) => p.field !== "$score");
7518
- return n.length ? function(p, g) {
7519
- var v, _;
7520
- for (let f of n)
7521
- if (_ = f.field, v = (f.direction === "desc" ? -1 : 1) * Rl(o(_, p), o(_, g)), v)
7522
- return v;
7516
+ n = n.filter((f) => f.field !== "$score");
7517
+ return n.length ? function(f, v) {
7518
+ var b, _;
7519
+ for (let p of n)
7520
+ if (_ = p.field, b = (p.direction === "desc" ? -1 : 1) * Rl(o(_, f), o(_, v)), b)
7521
+ return b;
7523
7522
  return 0;
7524
7523
  } : null;
7525
7524
  }
@@ -7557,10 +7556,10 @@ class Ml {
7557
7556
  var n = this, i, a;
7558
7557
  a = this.prepareSearch(e, t), t = a.options, e = a.query;
7559
7558
  const s = t.score || n._getScoreFunction(a);
7560
- e.length ? lr(n.items, (d, p) => {
7561
- i = s(d), (t.filter === !1 || i > 0) && a.items.push({ score: i, id: p });
7562
- }) : lr(n.items, (d, p) => {
7563
- a.items.push({ score: 1, id: p });
7559
+ e.length ? lr(n.items, (d, f) => {
7560
+ i = s(d), (t.filter === !1 || i > 0) && a.items.push({ score: i, id: f });
7561
+ }) : lr(n.items, (d, f) => {
7562
+ a.items.push({ score: 1, id: f });
7564
7563
  });
7565
7564
  const o = n._getSortFunction(a);
7566
7565
  return o && a.items.sort(o), a.total = a.items.length, typeof t.limit == "number" && (a.items = a.items.slice(0, t.limit)), a;
@@ -7677,8 +7676,8 @@ const ge = (r) => typeof r > "u" || r === null ? null : br(r), br = (r) => typeo
7677
7676
  o.className = "highlight";
7678
7677
  var d = a.splitText(s.index);
7679
7678
  d.splitText(s[0].length);
7680
- var p = d.cloneNode(!0);
7681
- return o.appendChild(p), S0(d, o), 1;
7679
+ var f = d.cloneNode(!0);
7680
+ return o.appendChild(f), S0(d, o), 1;
7682
7681
  }
7683
7682
  return 0;
7684
7683
  }, n = (a) => {
@@ -7777,19 +7776,19 @@ const ge = (r) => typeof r > "u" || r === null ? null : br(r), br = (r) => typeo
7777
7776
  }
7778
7777
  };
7779
7778
  function Hi(r, e) {
7780
- var t = Object.assign({}, Bi, e), n = t.dataAttr, i = t.labelField, a = t.valueField, s = t.disabledField, o = t.optgroupField, d = t.optgroupLabelField, p = t.optgroupValueField, g = r.tagName.toLowerCase(), v = r.getAttribute("placeholder") || r.getAttribute("data-placeholder");
7781
- if (!v && !t.allowEmptyOption) {
7779
+ var t = Object.assign({}, Bi, e), n = t.dataAttr, i = t.labelField, a = t.valueField, s = t.disabledField, o = t.optgroupField, d = t.optgroupLabelField, f = t.optgroupValueField, v = r.tagName.toLowerCase(), b = r.getAttribute("placeholder") || r.getAttribute("data-placeholder");
7780
+ if (!b && !t.allowEmptyOption) {
7782
7781
  let h = r.querySelector('option[value=""]');
7783
- h && (v = h.textContent);
7782
+ h && (b = h.textContent);
7784
7783
  }
7785
7784
  var _ = {
7786
- placeholder: v,
7785
+ placeholder: b,
7787
7786
  options: [],
7788
7787
  optgroups: [],
7789
7788
  items: [],
7790
7789
  maxItems: null
7791
- }, f = () => {
7792
- var h, w = _.options, b = {}, y = 1;
7790
+ }, p = () => {
7791
+ var h, w = _.options, g = {}, y = 1;
7793
7792
  let S = 0;
7794
7793
  var A = (C) => {
7795
7794
  var P = Object.assign({}, C.dataset), O = n && P[n];
@@ -7797,20 +7796,20 @@ function Hi(r, e) {
7797
7796
  }, T = (C, P) => {
7798
7797
  var O = ge(C.value);
7799
7798
  if (O != null && !(!O && !t.allowEmptyOption)) {
7800
- if (b.hasOwnProperty(O)) {
7799
+ if (g.hasOwnProperty(O)) {
7801
7800
  if (P) {
7802
- var V = b[O][o];
7803
- V ? Array.isArray(V) ? V.push(P) : b[O][o] = [V, P] : b[O][o] = P;
7801
+ var V = g[O][o];
7802
+ V ? Array.isArray(V) ? V.push(P) : g[O][o] = [V, P] : g[O][o] = P;
7804
7803
  }
7805
7804
  } else {
7806
7805
  var G = A(C);
7807
- G[i] = G[i] || C.textContent, G[a] = G[a] || O, G[s] = G[s] || C.disabled, G[o] = G[o] || P, G.$option = C, G.$order = G.$order || ++S, b[O] = G, w.push(G);
7806
+ G[i] = G[i] || C.textContent, G[a] = G[a] || O, G[s] = G[s] || C.disabled, G[o] = G[o] || P, G.$option = C, G.$order = G.$order || ++S, g[O] = G, w.push(G);
7808
7807
  }
7809
7808
  C.selected && _.items.push(O);
7810
7809
  }
7811
7810
  }, U = (C) => {
7812
7811
  var P, O;
7813
- O = A(C), O[d] = O[d] || C.getAttribute("label") || "", O[p] = O[p] || y++, O[s] = O[s] || C.disabled, O.$order = O.$order || ++S, _.optgroups.push(O), P = O[p], Nt(C.children, (V) => {
7812
+ O = A(C), O[d] = O[d] || C.getAttribute("label") || "", O[f] = O[f] || y++, O[s] = O[s] || C.disabled, O.$order = O.$order || ++S, _.optgroups.push(O), P = O[f], Nt(C.children, (V) => {
7814
7813
  T(V, P);
7815
7814
  });
7816
7815
  };
@@ -7820,21 +7819,21 @@ function Hi(r, e) {
7820
7819
  }, m = () => {
7821
7820
  const h = r.getAttribute(n);
7822
7821
  if (h)
7823
- _.options = JSON.parse(h), Nt(_.options, (b) => {
7824
- _.items.push(b[a]);
7822
+ _.options = JSON.parse(h), Nt(_.options, (g) => {
7823
+ _.items.push(g[a]);
7825
7824
  });
7826
7825
  else {
7827
7826
  var w = r.value.trim() || "";
7828
7827
  if (!t.allowEmptyOption && !w.length)
7829
7828
  return;
7830
- const b = w.split(t.delimiter);
7831
- Nt(b, (y) => {
7829
+ const g = w.split(t.delimiter);
7830
+ Nt(g, (y) => {
7832
7831
  const S = {};
7833
7832
  S[i] = y, S[a] = y, _.options.push(S);
7834
- }), _.items = b;
7833
+ }), _.items = g;
7835
7834
  }
7836
7835
  };
7837
- return g === "select" ? f() : m(), Object.assign({}, Bi, _, e);
7836
+ return v === "select" ? p() : m(), Object.assign({}, Bi, _, e);
7838
7837
  }
7839
7838
  var Ui = 0;
7840
7839
  class Jt extends gl(ml) {
@@ -7850,36 +7849,36 @@ class Jt extends gl(ml) {
7850
7849
  this.settings = s, this.input = i, this.tabIndex = i.tabIndex || 0, this.is_select_tag = i.tagName.toLowerCase() === "select", this.rtl = /rtl/i.test(n), this.inputId = d0(i, "tomselect-" + Ui), this.isRequired = i.required, this.sifter = new Ml(this.options, { diacritics: s.diacritics }), s.mode = s.mode || (s.maxItems === 1 ? "single" : "multi"), typeof s.hideSelected != "boolean" && (s.hideSelected = s.mode === "multi"), typeof s.hidePlaceholder != "boolean" && (s.hidePlaceholder = s.mode !== "multi");
7851
7850
  var o = s.createFilter;
7852
7851
  typeof o != "function" && (typeof o == "string" && (o = new RegExp(o)), o instanceof RegExp ? s.createFilter = (w) => o.test(w) : s.createFilter = (w) => this.settings.duplicates || !this.options[w]), this.initializePlugins(s.plugins), this.setupCallbacks(), this.setupTemplates();
7853
- const d = Se("<div>"), p = Se("<div>"), g = this._render("dropdown"), v = Se('<div role="listbox" tabindex="-1">'), _ = this.input.getAttribute("class") || "", f = s.mode;
7852
+ const d = Se("<div>"), f = Se("<div>"), v = this._render("dropdown"), b = Se('<div role="listbox" tabindex="-1">'), _ = this.input.getAttribute("class") || "", p = s.mode;
7854
7853
  var m;
7855
- if (ae(d, s.wrapperClass, _, f), ae(p, s.controlClass), qe(d, p), ae(g, s.dropdownClass, f), s.copyClassesToDropdown && ae(g, _), ae(v, s.dropdownContentClass), qe(g, v), Se(s.dropdownParent || d).appendChild(g), Oa(s.controlInput)) {
7854
+ if (ae(d, s.wrapperClass, _, p), ae(f, s.controlClass), qe(d, f), ae(v, s.dropdownClass, p), s.copyClassesToDropdown && ae(v, _), ae(b, s.dropdownContentClass), qe(v, b), Se(s.dropdownParent || d).appendChild(v), Oa(s.controlInput)) {
7856
7855
  m = Se(s.controlInput);
7857
7856
  var h = ["autocorrect", "autocapitalize", "autocomplete", "spellcheck"];
7858
7857
  Nt(h, (w) => {
7859
7858
  i.getAttribute(w) && Et(m, { [w]: i.getAttribute(w) });
7860
- }), m.tabIndex = -1, p.appendChild(m), this.focus_node = m;
7861
- } else s.controlInput ? (m = Se(s.controlInput), this.focus_node = m) : (m = Se("<input/>"), this.focus_node = p);
7862
- this.wrapper = d, this.dropdown = g, this.dropdown_content = v, this.control = p, this.control_input = m, this.setup();
7859
+ }), m.tabIndex = -1, f.appendChild(m), this.focus_node = m;
7860
+ } else s.controlInput ? (m = Se(s.controlInput), this.focus_node = m) : (m = Se("<input/>"), this.focus_node = f);
7861
+ this.wrapper = d, this.dropdown = v, this.dropdown_content = b, this.control = f, this.control_input = m, this.setup();
7863
7862
  }
7864
7863
  /**
7865
7864
  * set up event bindings.
7866
7865
  *
7867
7866
  */
7868
7867
  setup() {
7869
- const e = this, t = e.settings, n = e.control_input, i = e.dropdown, a = e.dropdown_content, s = e.wrapper, o = e.control, d = e.input, p = e.focus_node, g = { passive: !0 }, v = e.inputId + "-ts-dropdown";
7868
+ const e = this, t = e.settings, n = e.control_input, i = e.dropdown, a = e.dropdown_content, s = e.wrapper, o = e.control, d = e.input, f = e.focus_node, v = { passive: !0 }, b = e.inputId + "-ts-dropdown";
7870
7869
  Et(a, {
7871
- id: v
7872
- }), Et(p, {
7870
+ id: b
7871
+ }), Et(f, {
7873
7872
  role: "combobox",
7874
7873
  "aria-haspopup": "listbox",
7875
7874
  "aria-expanded": "false",
7876
- "aria-controls": v
7875
+ "aria-controls": b
7877
7876
  });
7878
- const _ = d0(p, e.inputId + "-ts-control"), f = "label[for='" + Bl(e.inputId) + "']", m = document.querySelector(f), h = e.focus.bind(e);
7877
+ const _ = d0(f, e.inputId + "-ts-control"), p = "label[for='" + Bl(e.inputId) + "']", m = document.querySelector(p), h = e.focus.bind(e);
7879
7878
  if (m) {
7880
7879
  Wt(m, "click", h), Et(m, { for: _ });
7881
7880
  const y = d0(m, e.inputId + "-ts-label");
7882
- Et(p, { "aria-labelledby": y }), Et(a, { "aria-labelledby": y });
7881
+ Et(f, { "aria-labelledby": y }), Et(a, { "aria-labelledby": y });
7883
7882
  }
7884
7883
  if (s.style.width = d.style.width, e.plugins.names.length) {
7885
7884
  const y = "plugin-" + e.plugins.names.join(" plugin-");
@@ -7900,7 +7899,7 @@ class Jt extends gl(ml) {
7900
7899
  return;
7901
7900
  }
7902
7901
  n.value == "" && (e.onClick(), Lt(y, !0));
7903
- }), Wt(p, "keydown", (y) => e.onKeyDown(y)), Wt(n, "keypress", (y) => e.onKeyPress(y)), Wt(n, "input", (y) => e.onInput(y)), Wt(p, "blur", (y) => e.onBlur(y)), Wt(p, "focus", (y) => e.onFocus(y)), Wt(n, "paste", (y) => e.onPaste(y));
7902
+ }), Wt(f, "keydown", (y) => e.onKeyDown(y)), Wt(n, "keypress", (y) => e.onKeyPress(y)), Wt(n, "input", (y) => e.onInput(y)), Wt(f, "blur", (y) => e.onBlur(y)), Wt(f, "focus", (y) => e.onFocus(y)), Wt(n, "paste", (y) => e.onPaste(y));
7904
7903
  const w = (y) => {
7905
7904
  const S = y.composedPath()[0];
7906
7905
  if (!s.contains(S) && !i.contains(S)) {
@@ -7908,11 +7907,11 @@ class Jt extends gl(ml) {
7908
7907
  return;
7909
7908
  }
7910
7909
  S == n && e.isOpen ? y.stopPropagation() : Lt(y, !0);
7911
- }, b = () => {
7910
+ }, g = () => {
7912
7911
  e.isOpen && e.positionDropdown();
7913
7912
  };
7914
- Wt(document, "mousedown", w), Wt(window, "scroll", b, g), Wt(window, "resize", b, g), this._destroy = () => {
7915
- document.removeEventListener("mousedown", w), window.removeEventListener("scroll", b), window.removeEventListener("resize", b), m && m.removeEventListener("click", h);
7913
+ Wt(document, "mousedown", w), Wt(window, "scroll", g, v), Wt(window, "resize", g, v), this._destroy = () => {
7914
+ document.removeEventListener("mousedown", w), window.removeEventListener("scroll", g), window.removeEventListener("resize", g), m && m.removeEventListener("click", h);
7916
7915
  }, this.revertSettings = {
7917
7916
  innerHTML: d.innerHTML,
7918
7917
  tabIndex: d.tabIndex
@@ -8281,14 +8280,14 @@ class Jt extends gl(ml) {
8281
8280
  *
8282
8281
  */
8283
8282
  setActiveItem(e, t) {
8284
- var n = this, i, a, s, o, d, p;
8283
+ var n = this, i, a, s, o, d, f;
8285
8284
  if (n.settings.mode !== "single") {
8286
8285
  if (!e) {
8287
8286
  n.clearActiveItems(), n.isFocused && n.inputState();
8288
8287
  return;
8289
8288
  }
8290
8289
  if (i = t && t.type.toLowerCase(), i === "click" && Ve("shiftKey", t) && n.activeItems.length) {
8291
- for (p = n.getLastActive(), s = Array.prototype.indexOf.call(n.control.children, p), o = Array.prototype.indexOf.call(n.control.children, e), s > o && (d = s, s = o, o = d), a = s; a <= o; a++)
8290
+ for (f = n.getLastActive(), s = Array.prototype.indexOf.call(n.control.children, f), o = Array.prototype.indexOf.call(n.control.children, e), s > o && (d = s, s = o, o = d), a = s; a <= o; a++)
8292
8291
  e = n.control.children[a], n.activeItems.indexOf(e) === -1 && n.setActiveItemClass(e);
8293
8292
  Lt(t);
8294
8293
  } else i === "click" && Ve(dr, t) || i === "keydown" && Ve("shiftKey", t) ? e.classList.contains("active") ? n.removeActiveItem(e) : n.setActiveItemClass(e) : (n.clearActiveItems(), n.setActiveItemClass(e));
@@ -8439,24 +8438,24 @@ class Jt extends gl(ml) {
8439
8438
  *
8440
8439
  */
8441
8440
  refreshOptions(e = !0) {
8442
- var t, n, i, a, s, o, d, p, g, v;
8443
- const _ = {}, f = [];
8441
+ var t, n, i, a, s, o, d, f, v, b;
8442
+ const _ = {}, p = [];
8444
8443
  var m = this, h = m.inputValue();
8445
8444
  const w = h === m.lastQuery || h == "" && m.lastQuery == null;
8446
- var b = m.search(h), y = null, S = m.settings.shouldOpen || !1, A = m.dropdown_content;
8447
- w && (y = m.activeOption, y && (g = y.closest("[data-group]"))), a = b.items.length, typeof m.settings.maxOptions == "number" && (a = Math.min(a, m.settings.maxOptions)), a > 0 && (S = !0);
8445
+ var g = m.search(h), y = null, S = m.settings.shouldOpen || !1, A = m.dropdown_content;
8446
+ w && (y = m.activeOption, y && (v = y.closest("[data-group]"))), a = g.items.length, typeof m.settings.maxOptions == "number" && (a = Math.min(a, m.settings.maxOptions)), a > 0 && (S = !0);
8448
8447
  const T = (C, P) => {
8449
8448
  let O = _[C];
8450
8449
  if (O !== void 0) {
8451
- let G = f[O];
8450
+ let G = p[O];
8452
8451
  if (G !== void 0)
8453
8452
  return [O, G.fragment];
8454
8453
  }
8455
8454
  let V = document.createDocumentFragment();
8456
- return O = f.length, f.push({ fragment: V, order: P, optgroup: C }), [O, V];
8455
+ return O = p.length, p.push({ fragment: V, order: P, optgroup: C }), [O, V];
8457
8456
  };
8458
8457
  for (t = 0; t < a; t++) {
8459
- let C = b.items[t];
8458
+ let C = g.items[t];
8460
8459
  if (!C)
8461
8460
  continue;
8462
8461
  let P = C.id, O = m.options[P];
@@ -8468,10 +8467,10 @@ class Jt extends gl(ml) {
8468
8467
  let E = O.$order, N = m.optgroups[s];
8469
8468
  N === void 0 ? s = "" : E = N.$order;
8470
8469
  const [u, j] = T(s, E);
8471
- n > 0 && (G = G.cloneNode(!0), Et(G, { id: O.$id + "-clone-" + n, "aria-selected": null }), G.classList.add("ts-cloned"), Re(G, "active"), m.activeOption && m.activeOption.dataset.value == P && g && g.dataset.group === s.toString() && (y = G)), j.appendChild(G), s != "" && (_[s] = u);
8470
+ n > 0 && (G = G.cloneNode(!0), Et(G, { id: O.$id + "-clone-" + n, "aria-selected": null }), G.classList.add("ts-cloned"), Re(G, "active"), m.activeOption && m.activeOption.dataset.value == P && v && v.dataset.group === s.toString() && (y = G)), j.appendChild(G), s != "" && (_[s] = u);
8472
8471
  }
8473
8472
  }
8474
- m.settings.lockOptgroupOrder && f.sort((C, P) => C.order - P.order), d = document.createDocumentFragment(), Nt(f, (C) => {
8473
+ m.settings.lockOptgroupOrder && p.sort((C, P) => C.order - P.order), d = document.createDocumentFragment(), Nt(p, (C) => {
8475
8474
  let P = C.fragment, O = C.optgroup;
8476
8475
  if (!P || !P.children.length)
8477
8476
  return;
@@ -8483,20 +8482,20 @@ class Jt extends gl(ml) {
8483
8482
  qe(d, N);
8484
8483
  } else
8485
8484
  qe(d, P);
8486
- }), A.innerHTML = "", qe(A, d), m.settings.highlight && (jl(A), b.query.length && b.tokens.length && Nt(b.tokens, (C) => {
8485
+ }), A.innerHTML = "", qe(A, d), m.settings.highlight && (jl(A), g.query.length && g.tokens.length && Nt(g.tokens, (C) => {
8487
8486
  Ul(A, C.regex);
8488
8487
  }));
8489
8488
  var U = (C) => {
8490
8489
  let P = m.render(C, { input: h });
8491
8490
  return P && (S = !0, A.insertBefore(P, A.firstChild)), P;
8492
8491
  };
8493
- if (m.loading ? U("loading") : m.settings.shouldLoad.call(m, h) ? b.items.length === 0 && U("no_results") : U("not_loading"), p = m.canCreate(h), p && (v = U("option_create")), m.hasOptions = b.items.length > 0 || p, S) {
8494
- if (b.items.length > 0) {
8492
+ if (m.loading ? U("loading") : m.settings.shouldLoad.call(m, h) ? g.items.length === 0 && U("no_results") : U("not_loading"), f = m.canCreate(h), f && (b = U("option_create")), m.hasOptions = g.items.length > 0 || f, S) {
8493
+ if (g.items.length > 0) {
8495
8494
  if (!y && m.settings.mode === "single" && m.items[0] != null && (y = m.getOption(m.items[0])), !A.contains(y)) {
8496
8495
  let C = 0;
8497
- v && !m.settings.addPrecedence && (C = 1), y = m.selectable()[C];
8496
+ b && !m.settings.addPrecedence && (C = 1), y = m.selectable()[C];
8498
8497
  }
8499
- } else v && (y = v);
8498
+ } else b && (y = b);
8500
8499
  e && !m.isOpen && (m.open(), m.scrollToOption(y, "auto")), m.setActiveOption(y);
8501
8500
  } else
8502
8501
  m.clearActiveOption(), e && m.isOpen && m.close(!1);
@@ -8589,15 +8588,15 @@ class Jt extends gl(ml) {
8589
8588
  return;
8590
8589
  if (typeof o != "string")
8591
8590
  throw new Error("Value must be set in option data");
8592
- const p = n.getOption(s), g = n.getItem(s);
8593
- if (t.$order = t.$order || d.$order, delete n.options[s], n.uncacheValue(o), n.options[o] = t, p) {
8594
- if (n.dropdown_content.contains(p)) {
8595
- const v = n._render("option", t);
8596
- S0(p, v), n.activeOption === p && n.setActiveOption(v);
8591
+ const f = n.getOption(s), v = n.getItem(s);
8592
+ if (t.$order = t.$order || d.$order, delete n.options[s], n.uncacheValue(o), n.options[o] = t, f) {
8593
+ if (n.dropdown_content.contains(f)) {
8594
+ const b = n._render("option", t);
8595
+ S0(f, b), n.activeOption === f && n.setActiveOption(b);
8597
8596
  }
8598
- p.remove();
8597
+ f.remove();
8599
8598
  }
8600
- g && (a = n.items.indexOf(s), a !== -1 && n.items.splice(a, 1, o), i = n._render("item", t), g.classList.contains("active") && ae(i, "active"), S0(g, i)), n.lastQuery = null;
8599
+ v && (a = n.items.indexOf(s), a !== -1 && n.items.splice(a, 1, o), i = n._render("item", t), v.classList.contains("active") && ae(i, "active"), S0(v, i)), n.lastQuery = null;
8601
8600
  }
8602
8601
  /**
8603
8602
  * Removes a single option.
@@ -8696,8 +8695,8 @@ class Jt extends gl(ml) {
8696
8695
  if (!(d && s.items.indexOf(d) !== -1 && (o === "single" && s.close(), o === "single" || !s.settings.duplicates)) && !(d === null || !s.options.hasOwnProperty(d)) && (o === "single" && s.clear(t), !(o === "multi" && s.isFull()))) {
8697
8696
  if (i = s._render("item", s.options[d]), s.control.contains(i) && (i = i.cloneNode(!0)), a = s.isFull(), s.items.splice(s.caretPos, 0, d), s.insertAtCaret(i), s.isSetup) {
8698
8697
  if (!s.isPending && s.settings.hideSelected) {
8699
- let p = s.getOption(d), g = s.getAdjacent(p, 1);
8700
- g && s.setActiveOption(g);
8698
+ let f = s.getOption(d), v = s.getAdjacent(f, 1);
8699
+ v && s.setActiveOption(v);
8701
8700
  }
8702
8701
  !s.isPending && !s.settings.closeAfterSelect && s.refreshOptions(s.isFocused && o !== "single"), s.settings.closeAfterSelect != !1 && s.isFull() ? s.close() : s.isPending || s.positionDropdown(), s.trigger("item_add", d, i), s.isPending || s.updateOriginalInput({ silent: t });
8703
8702
  }
@@ -8738,10 +8737,10 @@ class Jt extends gl(ml) {
8738
8737
  var s = !1, o = (d) => {
8739
8738
  if (n.unlock(), !d || typeof d != "object")
8740
8739
  return t();
8741
- var p = ge(d[n.settings.valueField]);
8742
- if (typeof p != "string")
8740
+ var f = ge(d[n.settings.valueField]);
8741
+ if (typeof f != "string")
8743
8742
  return t();
8744
- n.setTextboxValue(), n.addOption(d, !0), n.setCaret(i), n.addItem(p), t(d), s = !0;
8743
+ n.setTextboxValue(), n.addOption(d, !0), n.setCaret(i), n.addItem(f), t(d), s = !0;
8745
8744
  };
8746
8745
  return typeof n.settings.create == "function" ? a = n.settings.create.call(this, e, o) : a = {
8747
8746
  [n.settings.labelField]: e,
@@ -8798,19 +8797,18 @@ class Jt extends gl(ml) {
8798
8797
  var n, i;
8799
8798
  const a = t.input.querySelector('option[value=""]');
8800
8799
  if (t.is_select_tag) {
8801
- let p = function(g, v, _) {
8802
- return g || (g = Se('<option value="' + c0(v) + '">' + c0(_) + "</option>")), g != a && t.input.append(g), o.push(g), (g != a || d > 0) && (g.selected = !0), g;
8800
+ let d = function(f, v, b) {
8801
+ return f || (f = Se('<option value="' + c0(v) + '">' + c0(b) + "</option>")), f != a && t.input.append(f), s.push(f), (f != a || o > 0) && (f.selected = !0), f;
8803
8802
  };
8804
- var s = p;
8805
- const o = [], d = t.input.querySelectorAll("option:checked").length;
8806
- t.input.querySelectorAll("option:checked").forEach((g) => {
8807
- g.selected = !1;
8808
- }), t.items.length == 0 && t.settings.mode == "single" ? p(a, "", "") : t.items.forEach((g) => {
8809
- if (n = t.options[g], i = n[t.settings.labelField] || "", o.includes(n.$option)) {
8810
- const v = t.input.querySelector(`option[value="${Ri(g)}"]:not(:checked)`);
8811
- p(v, g, i);
8803
+ const s = [], o = t.input.querySelectorAll("option:checked").length;
8804
+ t.input.querySelectorAll("option:checked").forEach((f) => {
8805
+ f.selected = !1;
8806
+ }), t.items.length == 0 && t.settings.mode == "single" ? d(a, "", "") : t.items.forEach((f) => {
8807
+ if (n = t.options[f], i = n[t.settings.labelField] || "", s.includes(n.$option)) {
8808
+ const v = t.input.querySelector(`option[value="${Ri(f)}"]:not(:checked)`);
8809
+ d(v, f, i);
8812
8810
  } else
8813
- n.$option = p(n.$option, g, i);
8811
+ n.$option = d(n.$option, f, i);
8814
8812
  });
8815
8813
  } else
8816
8814
  t.input.value = t.getValue();
@@ -8881,8 +8879,8 @@ class Jt extends gl(ml) {
8881
8879
  a = Mi(s.activeItems, t), i = Ni(a), t > 0 && i++, Nt(s.activeItems, (d) => o.push(d));
8882
8880
  else if ((s.isFocused || s.settings.mode === "single") && s.items.length) {
8883
8881
  const d = s.controlChildren();
8884
- let p;
8885
- t < 0 && n.start === 0 && n.length === 0 ? p = d[s.caretPos - 1] : t > 0 && n.start === s.inputValue().length && (p = d[s.caretPos]), p !== void 0 && o.push(p);
8882
+ let f;
8883
+ t < 0 && n.start === 0 && n.length === 0 ? f = d[s.caretPos - 1] : t > 0 && n.start === s.inputValue().length && (f = d[s.caretPos]), f !== void 0 && o.push(f);
8886
8884
  }
8887
8885
  if (!s.shouldDelete(o, e))
8888
8886
  return !1;
@@ -9101,12 +9099,12 @@ function a1(r) {
9101
9099
  e.hook("after", "setupTemplates", () => {
9102
9100
  var s = e.settings.render.option;
9103
9101
  e.settings.render.option = (o, d) => {
9104
- var p = r1(s.call(e, o, d)), g = document.createElement("input");
9105
- n.className && g.classList.add(n.className), g.addEventListener("click", function(_) {
9102
+ var f = r1(s.call(e, o, d)), v = document.createElement("input");
9103
+ n.className && v.classList.add(n.className), v.addEventListener("click", function(_) {
9106
9104
  ji(_);
9107
- }), g.type = "checkbox";
9108
- const v = e1(o[e.settings.valueField]);
9109
- return i(g, !!(v && e.items.indexOf(v) > -1)), p.prepend(g), p;
9105
+ }), v.type = "checkbox";
9106
+ const b = e1(o[e.settings.valueField]);
9107
+ return i(v, !!(b && e.items.indexOf(b) > -1)), f.prepend(v), f;
9110
9108
  };
9111
9109
  }), e.on("item_remove", (s) => {
9112
9110
  var o = e.getOption(s);
@@ -9196,30 +9194,30 @@ function b1() {
9196
9194
  f1(d, {
9197
9195
  draggable: "true"
9198
9196
  });
9199
- const p = (h) => {
9197
+ const f = (h) => {
9200
9198
  n || c1(h), h.stopPropagation();
9201
- }, g = (h) => {
9199
+ }, v = (h) => {
9202
9200
  i = d, setTimeout(() => {
9203
9201
  d.classList.add("ts-dragging");
9204
9202
  }, 0);
9205
- }, v = (h) => {
9206
- h.preventDefault(), d.classList.add("ts-drag-over"), f(d, i);
9203
+ }, b = (h) => {
9204
+ h.preventDefault(), d.classList.add("ts-drag-over"), p(d, i);
9207
9205
  }, _ = () => {
9208
9206
  d.classList.remove("ts-drag-over");
9209
- }, f = (h, w) => {
9207
+ }, p = (h, w) => {
9210
9208
  w !== void 0 && (g1(w, d) ? p1(h, w) : m1(h, w));
9211
9209
  }, m = () => {
9212
9210
  var h;
9213
- document.querySelectorAll(".ts-drag-over").forEach((b) => b.classList.remove("ts-drag-over")), (h = i) == null || h.classList.remove("ts-dragging"), i = void 0;
9211
+ document.querySelectorAll(".ts-drag-over").forEach((g) => g.classList.remove("ts-drag-over")), (h = i) == null || h.classList.remove("ts-dragging"), i = void 0;
9214
9212
  var w = [];
9215
- r.control.querySelectorAll("[data-value]").forEach((b) => {
9216
- if (b.dataset.value) {
9217
- let y = b.dataset.value;
9213
+ r.control.querySelectorAll("[data-value]").forEach((g) => {
9214
+ if (g.dataset.value) {
9215
+ let y = g.dataset.value;
9218
9216
  y && w.push(y);
9219
9217
  }
9220
9218
  }), r.setValue(w);
9221
9219
  };
9222
- return bn(d, "mousedown", p), bn(d, "dragstart", g), bn(d, "dragenter", v), bn(d, "dragover", v), bn(d, "dragleave", _), bn(d, "dragend", m), d;
9220
+ return bn(d, "mousedown", f), bn(d, "dragstart", v), bn(d, "dragenter", b), bn(d, "dragover", b), bn(d, "dragleave", _), bn(d, "dragend", m), d;
9223
9221
  };
9224
9222
  }), r.hook("instead", "lock", () => (n = !1, e.call(r))), r.hook("instead", "unlock", () => (n = !0, t.call(r)));
9225
9223
  }
@@ -9438,10 +9436,10 @@ function W1(r) {
9438
9436
  var i = t.settings.render.item;
9439
9437
  t.settings.render.item = (a, s) => {
9440
9438
  var o = Gi(i.call(t, a, s)), d = Gi(n);
9441
- return o.appendChild(d), Wi(d, "mousedown", (p) => {
9442
- qi(p, !0);
9443
- }), Wi(d, "click", (p) => {
9444
- t.isLocked || (qi(p, !0), !t.isLocked && t.shouldDelete([o], p) && (t.removeItem(o), t.refreshOptions(!1), t.inputState()));
9439
+ return o.appendChild(d), Wi(d, "mousedown", (f) => {
9440
+ qi(f, !0);
9441
+ }), Wi(d, "click", (f) => {
9442
+ t.isLocked || (qi(f, !0), !t.isLocked && t.shouldDelete([o], f) && (t.removeItem(o), t.refreshOptions(!1), t.inputState()));
9445
9443
  }), o;
9446
9444
  };
9447
9445
  });
@@ -9484,8 +9482,8 @@ function Q1() {
9484
9482
  if (a.clientHeight / (a.scrollHeight - a.scrollTop) > 0.9)
9485
9483
  return !0;
9486
9484
  if (r.activeOption) {
9487
- var _ = r.selectable(), f = Array.from(_).indexOf(r.activeOption);
9488
- if (f >= _.length - 2)
9485
+ var _ = r.selectable(), p = Array.from(_).indexOf(r.activeOption);
9486
+ if (p >= _.length - 2)
9489
9487
  return !0;
9490
9488
  }
9491
9489
  return !1;
@@ -9496,42 +9494,42 @@ function Q1() {
9496
9494
  }, {
9497
9495
  field: "$score"
9498
9496
  }];
9499
- const p = (v) => typeof r.settings.maxOptions == "number" && a.children.length >= r.settings.maxOptions ? !1 : !!(v in i && i[v]), g = (v, _) => r.items.indexOf(_) >= 0 || d.indexOf(_) >= 0;
9500
- r.setNextUrl = (v, _) => {
9501
- i[v] = _;
9502
- }, r.getUrl = (v) => {
9503
- if (v in i) {
9504
- const _ = i[v];
9505
- return i[v] = !1, _;
9497
+ const f = (b) => typeof r.settings.maxOptions == "number" && a.children.length >= r.settings.maxOptions ? !1 : !!(b in i && i[b]), v = (b, _) => r.items.indexOf(_) >= 0 || d.indexOf(_) >= 0;
9498
+ r.setNextUrl = (b, _) => {
9499
+ i[b] = _;
9500
+ }, r.getUrl = (b) => {
9501
+ if (b in i) {
9502
+ const _ = i[b];
9503
+ return i[b] = !1, _;
9506
9504
  }
9507
- return r.clearPagination(), r.settings.firstUrl.call(r, v);
9505
+ return r.clearPagination(), r.settings.firstUrl.call(r, b);
9508
9506
  }, r.clearPagination = () => {
9509
9507
  i = {};
9510
9508
  }, r.hook("instead", "clearActiveOption", () => {
9511
9509
  if (!s)
9512
9510
  return t.call(r);
9513
- }), r.hook("instead", "canLoad", (v) => v in i ? p(v) : e.call(r, v)), r.hook("instead", "loadCallback", (v, _) => {
9511
+ }), r.hook("instead", "canLoad", (b) => b in i ? f(b) : e.call(r, b)), r.hook("instead", "loadCallback", (b, _) => {
9514
9512
  if (!s)
9515
- r.clearOptions(g);
9513
+ r.clearOptions(v);
9516
9514
  else if (o) {
9517
- const f = v[0];
9518
- f !== void 0 && (o.dataset.value = f[r.settings.valueField]);
9515
+ const p = b[0];
9516
+ p !== void 0 && (o.dataset.value = p[r.settings.valueField]);
9519
9517
  }
9520
- n.call(r, v, _), s = !1;
9518
+ n.call(r, b, _), s = !1;
9521
9519
  }), r.hook("after", "refreshOptions", () => {
9522
- const v = r.lastValue;
9520
+ const b = r.lastValue;
9523
9521
  var _;
9524
- p(v) ? (_ = r.render("loading_more", {
9525
- query: v
9526
- }), _ && (_.setAttribute("data-selectable", ""), o = _)) : v in i && !a.querySelector(".no-results") && (_ = r.render("no_more_results", {
9527
- query: v
9522
+ f(b) ? (_ = r.render("loading_more", {
9523
+ query: b
9524
+ }), _ && (_.setAttribute("data-selectable", ""), o = _)) : b in i && !a.querySelector(".no-results") && (_ = r.render("no_more_results", {
9525
+ query: b
9528
9526
  })), _ && (Z1(_, r.settings.optionClass), a.append(_));
9529
9527
  }), r.on("initialize", () => {
9530
9528
  d = Object.keys(r.options), a = r.dropdown_content, r.settings.render = Object.assign({}, {
9531
9529
  loading_more: () => '<div class="loading-more-results">Loading more results ... </div>',
9532
9530
  no_more_results: () => '<div class="no-more-results">No more results</div>'
9533
9531
  }, r.settings.render), a.addEventListener("scroll", () => {
9534
- r.settings.shouldLoadMore.call(r) && p(r.lastValue) && (s || (s = !0, r.load.call(r, r.lastValue)));
9532
+ r.settings.shouldLoadMore.call(r) && f(r.lastValue) && (s || (s = !0, r.load.call(r, r.lastValue)));
9535
9533
  });
9536
9534
  });
9537
9535
  }
@@ -10126,10 +10124,10 @@ class Ya extends HTMLElement {
10126
10124
  }
10127
10125
  async createExpenseTable(t) {
10128
10126
  let n = 0, i = 0, a = 0, s = "";
10129
- t.forEach((o, d, p) => {
10127
+ t.forEach((o, d, f) => {
10130
10128
  n += o.mieAmount, i += o.lodgingAmount, a += o.totalAmount;
10131
- const g = `<span class="font-semibold">${o.city}, ${o.country}</span>` + M(this, rt, Ka).call(this, o, d, p.length);
10132
- s += M(this, rt, Ja).call(this, o, g);
10129
+ const v = `<span class="font-semibold">${o.city}, ${o.country}</span>` + M(this, rt, Ka).call(this, o, d, f.length);
10130
+ s += M(this, rt, Ja).call(this, o, v);
10133
10131
  }), s += /* HTML */
10134
10132
  `
10135
10133
  <tr class="border-t-3 *:text-lg *:font-semibold">
@@ -10151,13 +10149,13 @@ class Ya extends HTMLElement {
10151
10149
  const o = s.attributeName;
10152
10150
  if (!(o && s.target instanceof Element))
10153
10151
  return;
10154
- const d = s.target, p = d.getAttribute(o);
10152
+ const d = s.target, f = d.getAttribute(o);
10155
10153
  if (o === "table") {
10156
- p && (c(this, rt, Xe).removeAttribute("table"), n());
10154
+ f && (c(this, rt, Xe).removeAttribute("table"), n());
10157
10155
  return;
10158
10156
  }
10159
- const g = M(this, rt, Qa).call(this, d);
10160
- t(g);
10157
+ const v = M(this, rt, Qa).call(this, d);
10158
+ t(v);
10161
10159
  });
10162
10160
  };
10163
10161
  c(this, nn) === null && ht(this, nn, new MutationObserver(i)), c(this, nn).disconnect(), c(this, nn).observe(c(this, rt, Xe), {
@@ -10313,7 +10311,7 @@ Ga = function() {
10313
10311
  );
10314
10312
  }, Ka = function(t, n, i) {
10315
10313
  const { breakfastProvided: a, lunchProvided: s, dinnerProvided: o } = t.deductions, d = [];
10316
- return n === 0 && d.push("First Day"), n === i - 1 && d.push("Last Day"), a && d.push("Breakfast"), s && d.push("Lunch"), o && d.push("Dinner"), d.length === 0 ? "" : d.reduce((p, g) => p === "" ? `<br>${g}` : `${p}, ${g}`, "");
10314
+ return n === 0 && d.push("First Day"), n === i - 1 && d.push("Last Day"), a && d.push("Breakfast"), s && d.push("Lunch"), o && d.push("Dinner"), d.length === 0 ? "" : d.reduce((f, v) => f === "" ? `<br>${v}` : `${f}, ${v}`, "");
10317
10315
  }, Ja = function(t, n) {
10318
10316
  return (
10319
10317
  /*HTML*/
@@ -10711,19 +10709,19 @@ class ts extends HTMLElement {
10711
10709
  const n = t.closest('[data-pdc="location-row"]');
10712
10710
  if (!n) throw new Error("Failed to get row.");
10713
10711
  const i = (_) => {
10714
- var f;
10715
- return (f = n.querySelector(`[pdc="${_}"]`)) == null ? void 0 : f.pdcValue;
10716
- }, a = M(this, H, Sr).call(this, n), s = i("start"), o = i("end"), d = i("category"), p = i("country"), g = i("city"), v = {
10712
+ var p;
10713
+ return (p = n.querySelector(`[pdc="${_}"]`)) == null ? void 0 : p.pdcValue;
10714
+ }, a = M(this, H, Sr).call(this, n), s = i("start"), o = i("end"), d = i("category"), f = i("country"), v = i("city"), b = {
10717
10715
  index: a,
10718
10716
  ...s && oe(s) && { start: s },
10719
10717
  ...o && oe(o) && { end: o },
10720
10718
  ...(d === "domestic" || d === "intl") && {
10721
10719
  category: d
10722
10720
  },
10723
- ...p && { country: p },
10724
- ...g && { city: g }
10721
+ ...f && { country: f },
10722
+ ...v && { city: v }
10725
10723
  };
10726
- return M(this, H, rs).call(this, v), v;
10724
+ return M(this, H, rs).call(this, b), b;
10727
10725
  });
10728
10726
  ot(this, Rr, () => {
10729
10727
  const t = [...c(this, H, be)].map((n) => c(this, an).call(this, n));
@@ -10879,8 +10877,8 @@ es = function() {
10879
10877
  details: s
10880
10878
  };
10881
10879
  }, Ze = function() {
10882
- var a, s, o, d, p;
10883
- const t = (s = (a = this.shadowRoot) == null ? void 0 : a.querySelector("#add-row")) == null ? void 0 : s.closest("div"), n = (o = this.shadowRoot) == null ? void 0 : o.querySelector("#expense-category"), i = (p = (d = this.shadowRoot) == null ? void 0 : d.querySelector("#calculate-expenses")) == null ? void 0 : p.closest("div");
10880
+ var a, s, o, d, f;
10881
+ const t = (s = (a = this.shadowRoot) == null ? void 0 : a.querySelector("#add-row")) == null ? void 0 : s.closest("div"), n = (o = this.shadowRoot) == null ? void 0 : o.querySelector("#expense-category"), i = (f = (d = this.shadowRoot) == null ? void 0 : d.querySelector("#calculate-expenses")) == null ? void 0 : f.closest("div");
10884
10882
  if (!(t && n && i))
10885
10883
  throw new Error("Failed to render buttons for location View.");
10886
10884
  return {
@@ -10920,17 +10918,17 @@ U0 = function(t = null) {
10920
10918
  const n = t.previousElementSibling, i = t.nextElementSibling;
10921
10919
  await M(this, H, Ie).call(this, t, "delete", i), n && (M(this, H, ee).call(this, n).start.restrictStartInput(), M(this, H, ee).call(this, n).end.restrictStartInput()), i && (M(this, H, ee).call(this, i).start.restrictStartInput(), M(this, H, ee).call(this, i).end.restrictStartInput()), c(this, H, Ae).setAttribute("update-state", "true");
10922
10920
  }, rs = function(t) {
10923
- const { index: n, start: i, end: a, country: s, city: o } = t, d = M(this, H, Er).call(this, n), p = d.querySelector(
10921
+ const { index: n, start: i, end: a, country: s, city: o } = t, d = M(this, H, Er).call(this, n), f = d.querySelector(
10924
10922
  '[data-pdc="location-row-number"]'
10925
- ), g = d.querySelector(
10926
- '[data-pdc="location-row-summary-dates"]'
10927
10923
  ), v = d.querySelector(
10924
+ '[data-pdc="location-row-summary-dates"]'
10925
+ ), b = d.querySelector(
10928
10926
  '[data-pdc="location-row-summary-countrycity"]'
10929
10927
  );
10930
- if (!(p && g && v))
10928
+ if (!(f && v && b))
10931
10929
  throw new Error("Failed to render row summary elements.");
10932
- const _ = (n + 1).toString().padStart(2, "0"), f = i ? `${ze(i)}/${jn(i)}/${Cn(i)}` : " ", m = a ? ` to ${ze(a)}/${jn(a)}/${Cn(a)}` : " ", h = o && s ? `${o} (${s})` : " ";
10933
- p.textContent = _, g.textContent = f + m, v.textContent = h;
10930
+ const _ = (n + 1).toString().padStart(2, "0"), p = i ? `${ze(i)}/${jn(i)}/${Cn(i)}` : " ", m = a ? ` to ${ze(a)}/${jn(a)}/${Cn(a)}` : " ", h = o && s ? `${o} (${s})` : " ";
10931
+ f.textContent = _, v.textContent = p + m, b.textContent = h;
10934
10932
  }, is = function(t, n) {
10935
10933
  Object.values(M(this, H, ee).call(this, t)).forEach(
10936
10934
  (i) => i.isEnabled && i.enableTabIndex(n)
@@ -10997,30 +10995,30 @@ ss = function() {
10997
10995
  }
10998
10996
  return !1;
10999
10997
  }, cs = function(t, n, i, a, s, o) {
11000
- const p = Lr((v) => {
11001
- v.forEach((_) => {
11002
- const f = _.attributeName;
11003
- if (!(f && _.target instanceof Element))
10998
+ const f = Lr((b) => {
10999
+ b.forEach((_) => {
11000
+ const p = _.attributeName;
11001
+ if (!(p && _.target instanceof Element))
11004
11002
  return;
11005
- const m = _.target, h = m.getAttribute(f);
11006
- if (f === "validate" && h) {
11003
+ const m = _.target, h = m.getAttribute(p);
11004
+ if (p === "validate" && h) {
11007
11005
  const w = o();
11008
11006
  i(w);
11009
11007
  return;
11010
11008
  }
11011
- if (f === "update-state" && h) {
11009
+ if (p === "update-state" && h) {
11012
11010
  const w = s();
11013
11011
  n(w);
11014
11012
  return;
11015
11013
  }
11016
- if (Sn(Li, f)) {
11014
+ if (Sn(Li, p)) {
11017
11015
  const w = a(m);
11018
- t(w, f, h);
11016
+ t(w, p, h);
11019
11017
  return;
11020
11018
  }
11021
11019
  });
11022
- }), g = new MutationObserver(p);
11023
- this.shadowRoot && g.observe(this.shadowRoot, {
11020
+ }), v = new MutationObserver(f);
11021
+ this.shadowRoot && v.observe(this.shadowRoot, {
11024
11022
  subtree: !0,
11025
11023
  attributeFilter: ["update-state", "validate", ...Li]
11026
11024
  });
@@ -11037,7 +11035,7 @@ ss = function() {
11037
11035
  customElements.define("pdc-expense-view", Ya);
11038
11036
  customElements.define("pdc-location-view", ts);
11039
11037
  var Tn, sn, Mt, Ht, On, on, ln, Y0, Nr, Pr, Ue, $r, fs, Br, Hr;
11040
- class ec {
11038
+ class nc {
11041
11039
  constructor(e, t = null) {
11042
11040
  ot(this, ln);
11043
11041
  /* SETUP
@@ -11056,9 +11054,9 @@ class ec {
11056
11054
  !d && o && (c(this, Mt).restrictRow(n, "country"), await c(this, Ue).call(this, t)), !o && s && (c(this, Mt).restrictRow(n, "category"), await c(this, Ue).call(this, t)), !a && i && c(this, Mt).restrictRow(n, "end"), i && !a && c(this, Mt).restrictRow(n, "start");
11057
11055
  });
11058
11056
  ot(this, Pr, async (e, t, n) => {
11059
- const { index: i, start: a, end: s, category: o, country: d, city: p } = e;
11057
+ const { index: i, start: a, end: s, category: o, country: d, city: f } = e;
11060
11058
  c(this, Ht).renderEmtpy(), ol(e);
11061
- let g, v;
11059
+ let v, b;
11062
11060
  switch (!0) {
11063
11061
  case (!n && !!d && !!o && !!s && !!a):
11064
11062
  c(this, Mt).restrictRow(i, "country"), await c(this, Ue).call(this, e);
@@ -11073,8 +11071,8 @@ class ec {
11073
11071
  c(this, Mt).restrictRow(i, "start");
11074
11072
  return;
11075
11073
  case ((t === "start" || t === "end") && // To account for when rows are deleted and the only updates are to the start/end dates of prev/next rows
11076
- !!a && !!s && !!o && !!d && !!p):
11077
- if (g = new Date(a), v = new Date(s), g <= v)
11074
+ !!a && !!s && !!o && !!d && !!f):
11075
+ if (v = new Date(a), b = new Date(s), v <= b)
11078
11076
  return;
11079
11077
  c(this, Mt).restrictRow(i, t);
11080
11078
  return;
@@ -11140,10 +11138,6 @@ Tn = new WeakMap(), sn = new WeakMap(), Mt = new WeakMap(), Ht = new WeakMap(),
11140
11138
  console.error(t);
11141
11139
  }
11142
11140
  }, Br = new WeakMap(), Hr = new WeakMap();
11143
- const nc = document.querySelector("#perDiemCalc");
11144
- new ec(nc, {
11145
- expense: {
11146
- headingPrint: "Per Diem Report",
11147
- bodyPrint: 'Generated by <a href="https://perdiemcalc.org">https://perdiemcalc.org</a>'
11148
- }
11149
- });
11141
+ export {
11142
+ nc as Pdc
11143
+ };