@qaecy/cue-sdk 0.0.2 → 0.0.3

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/node.js CHANGED
@@ -1,9 +1,9 @@
1
- var qn = Object.defineProperty;
2
- var Hn = (n, t, e) => t in n ? qn(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
- var wt = (n, t, e) => Hn(n, typeof t != "symbol" ? t + "" : t, e);
4
- import { _ as rn, C as sn, r as se, S as Gn, a as an, F as Wn, g as Zn, b as Pt, c as Vn, d as Kn, i as on, p as Xn, u as Yn, e as Qn, f as Jn, h as tr } from "./index-BnBbVXtu.js";
5
- import { j as zs, k as Bs } from "./index-BnBbVXtu.js";
6
- import { readFile as er } from "fs/promises";
1
+ var jn = Object.defineProperty;
2
+ var $n = (n, t, e) => t in n ? jn(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
+ var wt = (n, t, e) => $n(n, typeof t != "symbol" ? t + "" : t, e);
4
+ import { _ as en, C as nn, r as ye, S as qn, a as rn, F as Hn, g as Gn, b as Pt, c as Wn, d as Zn, i as sn, p as Vn, u as Kn, e as Xn, f as Yn, h as Qn } from "./index-CV1OX3eG.js";
5
+ import { j as Ps, k as Bs } from "./index-CV1OX3eG.js";
6
+ import { readFile as Jn } from "fs/promises";
7
7
  import "path";
8
8
  import "fs";
9
9
  /**
@@ -22,7 +22,7 @@ import "fs";
22
22
  * See the License for the specific language governing permissions and
23
23
  * limitations under the License.
24
24
  */
25
- const un = "firebasestorage.googleapis.com", ln = "storageBucket", nr = 120 * 1e3, rr = 600 * 1e3, ir = 1e3;
25
+ const an = "firebasestorage.googleapis.com", on = "storageBucket", tr = 120 * 1e3, er = 600 * 1e3, nr = 1e3;
26
26
  /**
27
27
  * @license
28
28
  * Copyright 2017 Google LLC
@@ -39,7 +39,7 @@ const un = "firebasestorage.googleapis.com", ln = "storageBucket", nr = 120 * 1e
39
39
  * See the License for the specific language governing permissions and
40
40
  * limitations under the License.
41
41
  */
42
- class ot extends Wn {
42
+ class ft extends Hn {
43
43
  /**
44
44
  * @param code - A `StorageErrorCode` string to be prefixed with 'storage/' and
45
45
  * added to the end of the message.
@@ -47,7 +47,7 @@ class ot extends Wn {
47
47
  * @param status_ - Corresponding HTTP Status Code
48
48
  */
49
49
  constructor(t, e, s = 0) {
50
- super(he(t), `Firebase Storage: ${e} (${he(t)})`), this.status_ = s, this.customData = { serverResponse: null }, this._baseMessage = this.message, Object.setPrototypeOf(this, ot.prototype);
50
+ super(ce(t), `Firebase Storage: ${e} (${ce(t)})`), this.status_ = s, this.customData = { serverResponse: null }, this._baseMessage = this.message, Object.setPrototypeOf(this, ft.prototype);
51
51
  }
52
52
  get status() {
53
53
  return this.status_;
@@ -59,7 +59,7 @@ class ot extends Wn {
59
59
  * Compares a `StorageErrorCode` against this error's code, filtering out the prefix.
60
60
  */
61
61
  _codeEquals(t) {
62
- return he(t) === this.code;
62
+ return ce(t) === this.code;
63
63
  }
64
64
  /**
65
65
  * Optional response message that was added by the server.
@@ -76,67 +76,64 @@ var at;
76
76
  (function(n) {
77
77
  n.UNKNOWN = "unknown", n.OBJECT_NOT_FOUND = "object-not-found", n.BUCKET_NOT_FOUND = "bucket-not-found", n.PROJECT_NOT_FOUND = "project-not-found", n.QUOTA_EXCEEDED = "quota-exceeded", n.UNAUTHENTICATED = "unauthenticated", n.UNAUTHORIZED = "unauthorized", n.UNAUTHORIZED_APP = "unauthorized-app", n.RETRY_LIMIT_EXCEEDED = "retry-limit-exceeded", n.INVALID_CHECKSUM = "invalid-checksum", n.CANCELED = "canceled", n.INVALID_EVENT_NAME = "invalid-event-name", n.INVALID_URL = "invalid-url", n.INVALID_DEFAULT_BUCKET = "invalid-default-bucket", n.NO_DEFAULT_BUCKET = "no-default-bucket", n.CANNOT_SLICE_BLOB = "cannot-slice-blob", n.SERVER_FILE_WRONG_SIZE = "server-file-wrong-size", n.NO_DOWNLOAD_URL = "no-download-url", n.INVALID_ARGUMENT = "invalid-argument", n.INVALID_ARGUMENT_COUNT = "invalid-argument-count", n.APP_DELETED = "app-deleted", n.INVALID_ROOT_OPERATION = "invalid-root-operation", n.INVALID_FORMAT = "invalid-format", n.INTERNAL_ERROR = "internal-error", n.UNSUPPORTED_ENVIRONMENT = "unsupported-environment";
78
78
  })(at || (at = {}));
79
- function he(n) {
79
+ function ce(n) {
80
80
  return "storage/" + n;
81
81
  }
82
82
  function Te() {
83
83
  const n = "An unknown error occurred, please check the error payload for server response.";
84
- return new ot(at.UNKNOWN, n);
84
+ return new ft(at.UNKNOWN, n);
85
85
  }
86
- function sr(n) {
87
- return new ot(at.OBJECT_NOT_FOUND, "Object '" + n + "' does not exist.");
86
+ function rr(n) {
87
+ return new ft(at.OBJECT_NOT_FOUND, "Object '" + n + "' does not exist.");
88
88
  }
89
- function ar(n) {
90
- return new ot(at.QUOTA_EXCEEDED, "Quota for bucket '" + n + "' exceeded, please view quota on https://firebase.google.com/pricing/.");
89
+ function ir(n) {
90
+ return new ft(at.QUOTA_EXCEEDED, "Quota for bucket '" + n + "' exceeded, please view quota on https://firebase.google.com/pricing/.");
91
91
  }
92
- function or() {
92
+ function sr() {
93
93
  const n = "User is not authenticated, please authenticate using Firebase Authentication and try again.";
94
- return new ot(at.UNAUTHENTICATED, n);
95
- }
96
- function ur() {
97
- return new ot(at.UNAUTHORIZED_APP, "This app does not have permission to access Firebase Storage on this project.");
94
+ return new ft(at.UNAUTHENTICATED, n);
98
95
  }
99
- function lr(n) {
100
- return new ot(at.UNAUTHORIZED, "User does not have permission to access '" + n + "'.");
96
+ function ar() {
97
+ return new ft(at.UNAUTHORIZED_APP, "This app does not have permission to access Firebase Storage on this project.");
101
98
  }
102
- function cn() {
103
- return new ot(at.RETRY_LIMIT_EXCEEDED, "Max retry time for operation exceeded, please try again.");
99
+ function or(n) {
100
+ return new ft(at.UNAUTHORIZED, "User does not have permission to access '" + n + "'.");
104
101
  }
105
- function hn() {
106
- return new ot(at.CANCELED, "User canceled the upload/download.");
102
+ function un() {
103
+ return new ft(at.RETRY_LIMIT_EXCEEDED, "Max retry time for operation exceeded, please try again.");
107
104
  }
108
- function cr(n) {
109
- return new ot(at.INVALID_URL, "Invalid URL '" + n + "'.");
105
+ function ln() {
106
+ return new ft(at.CANCELED, "User canceled the upload/download.");
110
107
  }
111
- function hr(n) {
112
- return new ot(at.INVALID_DEFAULT_BUCKET, "Invalid default bucket '" + n + "'.");
108
+ function ur(n) {
109
+ return new ft(at.INVALID_URL, "Invalid URL '" + n + "'.");
113
110
  }
114
- function fr() {
115
- return new ot(at.NO_DEFAULT_BUCKET, "No default bucket found. Did you set the '" + ln + "' property when initializing the app?");
111
+ function lr(n) {
112
+ return new ft(at.INVALID_DEFAULT_BUCKET, "Invalid default bucket '" + n + "'.");
116
113
  }
117
- function fn() {
118
- return new ot(at.CANNOT_SLICE_BLOB, "Cannot slice blob for upload. Please retry the upload.");
114
+ function cr() {
115
+ return new ft(at.NO_DEFAULT_BUCKET, "No default bucket found. Did you set the '" + on + "' property when initializing the app?");
119
116
  }
120
- function dr() {
121
- return new ot(at.SERVER_FILE_WRONG_SIZE, "Server recorded incorrect upload file size, please retry the upload.");
117
+ function cn() {
118
+ return new ft(at.CANNOT_SLICE_BLOB, "Cannot slice blob for upload. Please retry the upload.");
122
119
  }
123
- function pr(n) {
124
- return new ot(at.UNSUPPORTED_ENVIRONMENT, `${n} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`);
120
+ function fr() {
121
+ return new ft(at.SERVER_FILE_WRONG_SIZE, "Server recorded incorrect upload file size, please retry the upload.");
125
122
  }
126
123
  function be(n) {
127
- return new ot(at.INVALID_ARGUMENT, n);
124
+ return new ft(at.INVALID_ARGUMENT, n);
128
125
  }
129
- function dn() {
130
- return new ot(at.APP_DELETED, "The Firebase app was deleted.");
126
+ function fn() {
127
+ return new ft(at.APP_DELETED, "The Firebase app was deleted.");
131
128
  }
132
- function mr(n) {
133
- return new ot(at.INVALID_ROOT_OPERATION, "The operation '" + n + "' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').");
129
+ function hr(n) {
130
+ return new ft(at.INVALID_ROOT_OPERATION, "The operation '" + n + "' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').");
134
131
  }
135
- function Vt(n, t) {
136
- return new ot(at.INVALID_FORMAT, "String does not match format '" + n + "': " + t);
132
+ function zt(n, t) {
133
+ return new ft(at.INVALID_FORMAT, "String does not match format '" + n + "': " + t);
137
134
  }
138
- function $t(n) {
139
- throw new ot(at.INTERNAL_ERROR, "Internal error: " + n);
135
+ function Zt(n) {
136
+ throw new ft(at.INTERNAL_ERROR, "Internal error: " + n);
140
137
  }
141
138
  /**
142
139
  * @license
@@ -180,7 +177,7 @@ class _t {
180
177
  }
181
178
  if (s.path === "")
182
179
  return s;
183
- throw hr(t);
180
+ throw lr(t);
184
181
  }
185
182
  static makeFromUrl(t, e) {
186
183
  let s = null;
@@ -192,7 +189,7 @@ class _t {
192
189
  function w(c) {
193
190
  c.path_ = decodeURIComponent(c.path);
194
191
  }
195
- const v = "v[A-Za-z0-9_]+", E = e.replace(/[.]/g, "\\."), T = "(/([^?#]*).*)?$", _ = new RegExp(`^https?://${E}/${v}/b/${r}/o${T}`, "i"), k = { bucket: 1, path: 3 }, g = e === un ? "(?:storage.googleapis.com|storage.cloud.google.com)" : e, y = "([^?#]*)", h = new RegExp(`^https?://${g}/${r}/${y}`, "i"), a = [
192
+ const v = "v[A-Za-z0-9_]+", E = e.replace(/[.]/g, "\\."), T = "(/([^?#]*).*)?$", _ = new RegExp(`^https?://${E}/${v}/b/${r}/o${T}`, "i"), k = { bucket: 1, path: 3 }, g = e === an ? "(?:storage.googleapis.com|storage.cloud.google.com)" : e, y = "([^?#]*)", f = new RegExp(`^https?://${g}/${r}/${y}`, "i"), a = [
196
193
  { regex: l, indices: p, postModify: i },
197
194
  {
198
195
  regex: _,
@@ -200,7 +197,7 @@ class _t {
200
197
  postModify: w
201
198
  },
202
199
  {
203
- regex: h,
200
+ regex: f,
204
201
  indices: { bucket: 1, path: 2 },
205
202
  postModify: w
206
203
  }
@@ -215,11 +212,11 @@ class _t {
215
212
  }
216
213
  }
217
214
  if (s == null)
218
- throw cr(t);
215
+ throw ur(t);
219
216
  return s;
220
217
  }
221
218
  }
222
- class _r {
219
+ class dr {
223
220
  constructor(t) {
224
221
  this.promise_ = Promise.reject(t);
225
222
  }
@@ -247,7 +244,7 @@ class _r {
247
244
  * See the License for the specific language governing permissions and
248
245
  * limitations under the License.
249
246
  */
250
- function gr(n, t, e) {
247
+ function pr(n, t, e) {
251
248
  let s = 1, r = null, i = null, u = !1, l = 0;
252
249
  function p() {
253
250
  return l === 2;
@@ -264,17 +261,17 @@ function gr(n, t, e) {
264
261
  function T() {
265
262
  i && clearTimeout(i);
266
263
  }
267
- function _(y, ...h) {
264
+ function _(y, ...f) {
268
265
  if (w) {
269
266
  T();
270
267
  return;
271
268
  }
272
269
  if (y) {
273
- T(), v.call(null, y, ...h);
270
+ T(), v.call(null, y, ...f);
274
271
  return;
275
272
  }
276
273
  if (p() || u) {
277
- T(), v.call(null, y, ...h);
274
+ T(), v.call(null, y, ...f);
278
275
  return;
279
276
  }
280
277
  s < 64 && (s *= 2);
@@ -289,7 +286,7 @@ function gr(n, t, e) {
289
286
  u = !0, g(!0);
290
287
  }, e), g;
291
288
  }
292
- function yr(n) {
289
+ function mr(n) {
293
290
  n(!1);
294
291
  }
295
292
  /**
@@ -308,19 +305,19 @@ function yr(n) {
308
305
  * See the License for the specific language governing permissions and
309
306
  * limitations under the License.
310
307
  */
311
- function br(n) {
308
+ function _r(n) {
312
309
  return n !== void 0;
313
310
  }
314
- function wr(n) {
311
+ function gr(n) {
315
312
  return typeof n == "function";
316
313
  }
317
- function vr(n) {
314
+ function yr(n) {
318
315
  return typeof n == "object" && !Array.isArray(n);
319
316
  }
320
317
  function Ie(n) {
321
318
  return typeof n == "string" || n instanceof String;
322
319
  }
323
- function ze(n) {
320
+ function Pe(n) {
324
321
  return Re() && n instanceof Blob;
325
322
  }
326
323
  function Re() {
@@ -348,11 +345,11 @@ function we(n, t, e, s) {
348
345
  * See the License for the specific language governing permissions and
349
346
  * limitations under the License.
350
347
  */
351
- function le(n, t, e) {
348
+ function ue(n, t, e) {
352
349
  let s = t;
353
350
  return e == null && (s = `https://${t}`), `${e}://${s}/v0${n}`;
354
351
  }
355
- function xr(n) {
352
+ function br(n) {
356
353
  const t = encodeURIComponent;
357
354
  let e = "?";
358
355
  for (const s in n)
@@ -382,7 +379,7 @@ var Ct;
382
379
  * See the License for the specific language governing permissions and
383
380
  * limitations under the License.
384
381
  */
385
- function pn(n, t) {
382
+ function hn(n, t) {
386
383
  const e = n >= 500 && n < 600, r = [
387
384
  // Request Timeout: web server didn't receive full request in time.
388
385
  408,
@@ -407,7 +404,7 @@ function pn(n, t) {
407
404
  * See the License for the specific language governing permissions and
408
405
  * limitations under the License.
409
406
  */
410
- class Er {
407
+ class wr {
411
408
  constructor(t, e, s, r, i, u, l, p, w, v, E, T = !0, _ = !1) {
412
409
  this.url_ = t, this.method_ = e, this.headers_ = s, this.body_ = r, this.successCodes_ = i, this.additionalRetryCodes_ = u, this.callback_ = l, this.errorCallback_ = p, this.timeout_ = w, this.progressCallback_ = v, this.connectionFactory_ = E, this.retry = T, this.isUsingEmulator = _, this.pendingConnection_ = null, this.backoffId_ = null, this.canceled_ = !1, this.appDelete_ = !1, this.promise_ = new Promise((k, g) => {
413
410
  this.resolve_ = k, this.reject_ = g, this.start_();
@@ -431,7 +428,7 @@ class Er {
431
428
  this.progressCallback_ !== null && i.addUploadProgressListener(u), i.send(this.url_, this.method_, this.isUsingEmulator, this.body_, this.headers_).then(() => {
432
429
  this.progressCallback_ !== null && i.removeUploadProgressListener(u), this.pendingConnection_ = null;
433
430
  const l = i.getErrorCode() === Ct.NO_ERROR, p = i.getStatus();
434
- if (!l || pn(p, this.additionalRetryCodes_) && this.retry) {
431
+ if (!l || hn(p, this.additionalRetryCodes_) && this.retry) {
435
432
  const v = i.getErrorCode() === Ct.ABORT;
436
433
  s(!1, new Jt(!1, null, v));
437
434
  return;
@@ -444,7 +441,7 @@ class Er {
444
441
  if (r.wasSuccessCode)
445
442
  try {
446
443
  const p = this.callback_(l, l.getResponse());
447
- br(p) ? i(p) : i();
444
+ _r(p) ? i(p) : i();
448
445
  } catch (p) {
449
446
  u(p);
450
447
  }
@@ -452,14 +449,14 @@ class Er {
452
449
  const p = Te();
453
450
  p.serverResponse = l.getErrorText(), this.errorCallback_ ? u(this.errorCallback_(l, p)) : u(p);
454
451
  } else if (r.canceled) {
455
- const p = this.appDelete_ ? dn() : hn();
452
+ const p = this.appDelete_ ? fn() : ln();
456
453
  u(p);
457
454
  } else {
458
- const p = cn();
455
+ const p = un();
459
456
  u(p);
460
457
  }
461
458
  };
462
- this.canceled_ ? e(!1, new Jt(!1, null, !0)) : this.backoffId_ = gr(t, e, this.timeout_);
459
+ this.canceled_ ? e(!1, new Jt(!1, null, !0)) : this.backoffId_ = pr(t, e, this.timeout_);
463
460
  }
464
461
  /** @inheritDoc */
465
462
  getPromise() {
@@ -467,7 +464,7 @@ class Er {
467
464
  }
468
465
  /** @inheritDoc */
469
466
  cancel(t) {
470
- this.canceled_ = !0, this.appDelete_ = t || !1, this.backoffId_ !== null && yr(this.backoffId_), this.pendingConnection_ !== null && this.pendingConnection_.abort();
467
+ this.canceled_ = !0, this.appDelete_ = t || !1, this.backoffId_ !== null && mr(this.backoffId_), this.pendingConnection_ !== null && this.pendingConnection_.abort();
471
468
  }
472
469
  }
473
470
  class Jt {
@@ -475,21 +472,21 @@ class Jt {
475
472
  this.wasSuccessCode = t, this.connection = e, this.canceled = !!s;
476
473
  }
477
474
  }
478
- function kr(n, t) {
475
+ function vr(n, t) {
479
476
  t !== null && t.length > 0 && (n.Authorization = "Firebase " + t);
480
477
  }
481
- function Ar(n, t) {
478
+ function xr(n, t) {
482
479
  n["X-Firebase-Storage-Version"] = "webjs/" + (t ?? "AppManager");
483
480
  }
484
- function Tr(n, t) {
481
+ function Er(n, t) {
485
482
  t && (n["X-Firebase-GMPID"] = t);
486
483
  }
487
- function Ir(n, t) {
484
+ function kr(n, t) {
488
485
  t !== null && (n["X-Firebase-AppCheck"] = t);
489
486
  }
490
- function Rr(n, t, e, s, r, i, u = !0, l = !1) {
491
- const p = xr(n.urlParams), w = n.url + p, v = Object.assign({}, n.headers);
492
- return Tr(v, t), kr(v, e), Ar(v, i), Ir(v, s), new Er(w, n.method, v, n.body, n.successCodes, n.additionalRetryCodes, n.handler, n.errorHandler, n.timeout, n.progressCallback, r, u, l);
487
+ function Ar(n, t, e, s, r, i, u = !0, l = !1) {
488
+ const p = br(n.urlParams), w = n.url + p, v = Object.assign({}, n.headers);
489
+ return Er(v, t), vr(v, e), xr(v, i), kr(v, s), new wr(w, n.method, v, n.body, n.successCodes, n.additionalRetryCodes, n.handler, n.errorHandler, n.timeout, n.progressCallback, r, u, l);
493
490
  }
494
491
  /**
495
492
  * @license
@@ -507,11 +504,11 @@ function Rr(n, t, e, s, r, i, u = !0, l = !1) {
507
504
  * See the License for the specific language governing permissions and
508
505
  * limitations under the License.
509
506
  */
510
- function Sr() {
507
+ function Tr() {
511
508
  return typeof BlobBuilder < "u" ? BlobBuilder : typeof WebKitBlobBuilder < "u" ? WebKitBlobBuilder : void 0;
512
509
  }
513
- function Cr(...n) {
514
- const t = Sr();
510
+ function Ir(...n) {
511
+ const t = Tr();
515
512
  if (t !== void 0) {
516
513
  const e = new t();
517
514
  for (let s = 0; s < n.length; s++)
@@ -520,10 +517,10 @@ function Cr(...n) {
520
517
  } else {
521
518
  if (Re())
522
519
  return new Blob(n);
523
- throw new ot(at.UNSUPPORTED_ENVIRONMENT, "This browser doesn't seem to support creating Blobs");
520
+ throw new ft(at.UNSUPPORTED_ENVIRONMENT, "This browser doesn't seem to support creating Blobs");
524
521
  }
525
522
  }
526
- function Ur(n, t, e) {
523
+ function Rr(n, t, e) {
527
524
  return n.webkitSlice ? n.webkitSlice(t, e) : n.mozSlice ? n.mozSlice(t, e) : n.slice ? n.slice(t, e) : null;
528
525
  }
529
526
  /**
@@ -542,10 +539,10 @@ function Ur(n, t, e) {
542
539
  * See the License for the specific language governing permissions and
543
540
  * limitations under the License.
544
541
  */
545
- function Or(n) {
546
- if (typeof atob > "u")
547
- throw pr("base-64");
548
- return atob(n);
542
+ function Sr(n) {
543
+ if (/[^-A-Za-z0-9+/=]/.test(n))
544
+ throw zt("base64", "Invalid character found");
545
+ return Buffer.from(n, "base64").toString("binary");
549
546
  }
550
547
  /**
551
548
  * @license
@@ -602,19 +599,19 @@ class fe {
602
599
  this.data = t, this.contentType = e || null;
603
600
  }
604
601
  }
605
- function Dr(n, t) {
602
+ function Cr(n, t) {
606
603
  switch (n) {
607
604
  case kt.RAW:
608
- return new fe(mn(t));
605
+ return new fe(dn(t));
609
606
  case kt.BASE64:
610
607
  case kt.BASE64URL:
611
- return new fe(_n(n, t));
608
+ return new fe(pn(n, t));
612
609
  case kt.DATA_URL:
613
- return new fe(Pr(t), zr(t));
610
+ return new fe(Or(t), Dr(t));
614
611
  }
615
612
  throw Te();
616
613
  }
617
- function mn(n) {
614
+ function dn(n) {
618
615
  const t = [];
619
616
  for (let e = 0; e < n.length; e++) {
620
617
  let s = n.charCodeAt(e);
@@ -634,60 +631,60 @@ function mn(n) {
634
631
  }
635
632
  return new Uint8Array(t);
636
633
  }
637
- function Nr(n) {
634
+ function Ur(n) {
638
635
  let t;
639
636
  try {
640
637
  t = decodeURIComponent(n);
641
638
  } catch {
642
- throw Vt(kt.DATA_URL, "Malformed data URL.");
639
+ throw zt(kt.DATA_URL, "Malformed data URL.");
643
640
  }
644
- return mn(t);
641
+ return dn(t);
645
642
  }
646
- function _n(n, t) {
643
+ function pn(n, t) {
647
644
  switch (n) {
648
645
  case kt.BASE64: {
649
646
  const r = t.indexOf("-") !== -1, i = t.indexOf("_") !== -1;
650
647
  if (r || i)
651
- throw Vt(n, "Invalid character '" + (r ? "-" : "_") + "' found: is it base64url encoded?");
648
+ throw zt(n, "Invalid character '" + (r ? "-" : "_") + "' found: is it base64url encoded?");
652
649
  break;
653
650
  }
654
651
  case kt.BASE64URL: {
655
652
  const r = t.indexOf("+") !== -1, i = t.indexOf("/") !== -1;
656
653
  if (r || i)
657
- throw Vt(n, "Invalid character '" + (r ? "+" : "/") + "' found: is it base64 encoded?");
654
+ throw zt(n, "Invalid character '" + (r ? "+" : "/") + "' found: is it base64 encoded?");
658
655
  t = t.replace(/-/g, "+").replace(/_/g, "/");
659
656
  break;
660
657
  }
661
658
  }
662
659
  let e;
663
660
  try {
664
- e = Or(t);
661
+ e = Sr(t);
665
662
  } catch (r) {
666
- throw r.message.includes("polyfill") ? r : Vt(n, "Invalid character found");
663
+ throw r.message.includes("polyfill") ? r : zt(n, "Invalid character found");
667
664
  }
668
665
  const s = new Uint8Array(e.length);
669
666
  for (let r = 0; r < e.length; r++)
670
667
  s[r] = e.charCodeAt(r);
671
668
  return s;
672
669
  }
673
- class gn {
670
+ class mn {
674
671
  constructor(t) {
675
672
  this.base64 = !1, this.contentType = null;
676
673
  const e = t.match(/^data:([^,]+)?,/);
677
674
  if (e === null)
678
- throw Vt(kt.DATA_URL, "Must be formatted 'data:[<mediatype>][;base64],<data>");
675
+ throw zt(kt.DATA_URL, "Must be formatted 'data:[<mediatype>][;base64],<data>");
679
676
  const s = e[1] || null;
680
- s != null && (this.base64 = Br(s, ";base64"), this.contentType = this.base64 ? s.substring(0, s.length - 7) : s), this.rest = t.substring(t.indexOf(",") + 1);
677
+ s != null && (this.base64 = Nr(s, ";base64"), this.contentType = this.base64 ? s.substring(0, s.length - 7) : s), this.rest = t.substring(t.indexOf(",") + 1);
681
678
  }
682
679
  }
683
- function Pr(n) {
684
- const t = new gn(n);
685
- return t.base64 ? _n(kt.BASE64, t.rest) : Nr(t.rest);
680
+ function Or(n) {
681
+ const t = new mn(n);
682
+ return t.base64 ? pn(kt.BASE64, t.rest) : Ur(t.rest);
686
683
  }
687
- function zr(n) {
688
- return new gn(n).contentType;
684
+ function Dr(n) {
685
+ return new mn(n).contentType;
689
686
  }
690
- function Br(n, t) {
687
+ function Nr(n, t) {
691
688
  return n.length >= t.length ? n.substring(n.length - t.length) === t : !1;
692
689
  }
693
690
  /**
@@ -709,7 +706,7 @@ function Br(n, t) {
709
706
  class It {
710
707
  constructor(t, e) {
711
708
  let s = 0, r = "";
712
- ze(t) ? (this.data_ = t, s = t.size, r = t.type) : t instanceof ArrayBuffer ? (e ? this.data_ = new Uint8Array(t) : (this.data_ = new Uint8Array(t.byteLength), this.data_.set(new Uint8Array(t))), s = this.data_.length) : t instanceof Uint8Array && (e ? this.data_ = t : (this.data_ = new Uint8Array(t.length), this.data_.set(t)), s = t.length), this.size_ = s, this.type_ = r;
709
+ Pe(t) ? (this.data_ = t, s = t.size, r = t.type) : t instanceof ArrayBuffer ? (e ? this.data_ = new Uint8Array(t) : (this.data_ = new Uint8Array(t.byteLength), this.data_.set(new Uint8Array(t))), s = this.data_.length) : t instanceof Uint8Array && (e ? this.data_ = t : (this.data_ = new Uint8Array(t.length), this.data_.set(t)), s = t.length), this.size_ = s, this.type_ = r;
713
710
  }
714
711
  size() {
715
712
  return this.size_;
@@ -718,8 +715,8 @@ class It {
718
715
  return this.type_;
719
716
  }
720
717
  slice(t, e) {
721
- if (ze(this.data_)) {
722
- const s = this.data_, r = Ur(s, t, e);
718
+ if (Pe(this.data_)) {
719
+ const s = this.data_, r = Rr(s, t, e);
723
720
  return r === null ? null : new It(r);
724
721
  } else {
725
722
  const s = new Uint8Array(this.data_.buffer, t, e - t);
@@ -729,9 +726,9 @@ class It {
729
726
  static getBlob(...t) {
730
727
  if (Re()) {
731
728
  const e = t.map((s) => s instanceof It ? s.data_ : s);
732
- return new It(Cr.apply(null, e));
729
+ return new It(Ir.apply(null, e));
733
730
  } else {
734
- const e = t.map((u) => Ie(u) ? Dr(kt.RAW, u).data : u.data_);
731
+ const e = t.map((u) => Ie(u) ? Cr(kt.RAW, u).data : u.data_);
735
732
  let s = 0;
736
733
  e.forEach((u) => {
737
734
  s += u.byteLength;
@@ -764,14 +761,14 @@ class It {
764
761
  * See the License for the specific language governing permissions and
765
762
  * limitations under the License.
766
763
  */
767
- function yn(n) {
764
+ function _n(n) {
768
765
  let t;
769
766
  try {
770
767
  t = JSON.parse(n);
771
768
  } catch {
772
769
  return null;
773
770
  }
774
- return vr(t) ? t : null;
771
+ return yr(t) ? t : null;
775
772
  }
776
773
  /**
777
774
  * @license
@@ -789,17 +786,17 @@ function yn(n) {
789
786
  * See the License for the specific language governing permissions and
790
787
  * limitations under the License.
791
788
  */
792
- function Lr(n) {
789
+ function zr(n) {
793
790
  if (n.length === 0)
794
791
  return null;
795
792
  const t = n.lastIndexOf("/");
796
793
  return t === -1 ? "" : n.slice(0, t);
797
794
  }
798
- function Fr(n, t) {
795
+ function Pr(n, t) {
799
796
  const e = t.split("/").filter((s) => s.length > 0).join("/");
800
797
  return n.length === 0 ? e : n + "/" + e;
801
798
  }
802
- function bn(n) {
799
+ function gn(n) {
803
800
  const t = n.lastIndexOf("/", n.length - 2);
804
801
  return t === -1 ? n : n.slice(t + 1);
805
802
  }
@@ -819,17 +816,17 @@ function bn(n) {
819
816
  * See the License for the specific language governing permissions and
820
817
  * limitations under the License.
821
818
  */
822
- function Mr(n, t) {
819
+ function Br(n, t) {
823
820
  return t;
824
821
  }
825
822
  class mt {
826
823
  constructor(t, e, s, r) {
827
- this.server = t, this.local = e || t, this.writable = !!s, this.xform = r || Mr;
824
+ this.server = t, this.local = e || t, this.writable = !!s, this.xform = r || Br;
828
825
  }
829
826
  }
830
827
  let te = null;
831
- function jr(n) {
832
- return !Ie(n) || n.length < 2 ? n : bn(n);
828
+ function Lr(n) {
829
+ return !Ie(n) || n.length < 2 ? n : gn(n);
833
830
  }
834
831
  function Se() {
835
832
  if (te)
@@ -837,7 +834,7 @@ function Se() {
837
834
  const n = [];
838
835
  n.push(new mt("bucket")), n.push(new mt("generation")), n.push(new mt("metageneration")), n.push(new mt("name", "fullPath", !0));
839
836
  function t(i, u) {
840
- return jr(u);
837
+ return Lr(u);
841
838
  }
842
839
  const e = new mt("name");
843
840
  e.xform = t, n.push(e);
@@ -847,14 +844,14 @@ function Se() {
847
844
  const r = new mt("size");
848
845
  return r.xform = s, n.push(r), n.push(new mt("timeCreated")), n.push(new mt("updated")), n.push(new mt("md5Hash", null, !0)), n.push(new mt("cacheControl", null, !0)), n.push(new mt("contentDisposition", null, !0)), n.push(new mt("contentEncoding", null, !0)), n.push(new mt("contentLanguage", null, !0)), n.push(new mt("contentType", null, !0)), n.push(new mt("metadata", "customMetadata", !0)), te = n, te;
849
846
  }
850
- function $r(n, t) {
847
+ function Fr(n, t) {
851
848
  function e() {
852
849
  const s = n.bucket, r = n.fullPath, i = new _t(s, r);
853
850
  return t._makeStorageReference(i);
854
851
  }
855
852
  Object.defineProperty(n, "ref", { get: e });
856
853
  }
857
- function qr(n, t, e) {
854
+ function Mr(n, t, e) {
858
855
  const s = {};
859
856
  s.type = "file";
860
857
  const r = e.length;
@@ -862,13 +859,13 @@ function qr(n, t, e) {
862
859
  const u = e[i];
863
860
  s[u.local] = u.xform(s, t[u.server]);
864
861
  }
865
- return $r(s, n), s;
862
+ return Fr(s, n), s;
866
863
  }
867
- function Hr(n, t, e) {
868
- const s = yn(t);
869
- return s === null ? null : qr(n, s, e);
864
+ function jr(n, t, e) {
865
+ const s = _n(t);
866
+ return s === null ? null : Mr(n, s, e);
870
867
  }
871
- function wn(n, t) {
868
+ function yn(n, t) {
872
869
  const e = {}, s = t.length;
873
870
  for (let r = 0; r < s; r++) {
874
871
  const i = t[r];
@@ -893,7 +890,7 @@ function wn(n, t) {
893
890
  * limitations under the License.
894
891
  */
895
892
  const Be = "prefixes", Le = "items";
896
- function Gr(n, t, e) {
893
+ function $r(n, t, e) {
897
894
  const s = {
898
895
  prefixes: [],
899
896
  items: [],
@@ -911,11 +908,11 @@ function Gr(n, t, e) {
911
908
  }
912
909
  return s;
913
910
  }
914
- function Wr(n, t, e) {
915
- const s = yn(e);
916
- return s === null ? null : Gr(n, t, s);
911
+ function qr(n, t, e) {
912
+ const s = _n(e);
913
+ return s === null ? null : $r(n, t, s);
917
914
  }
918
- class zt {
915
+ class Bt {
919
916
  constructor(t, e, s, r) {
920
917
  this.url = t, this.method = e, this.handler = s, this.timeout = r, this.urlParams = {}, this.headers = {}, this.body = null, this.errorHandler = null, this.progressCallback = null, this.successCodes = [200], this.additionalRetryCodes = [];
921
918
  }
@@ -942,51 +939,51 @@ function Rt(n) {
942
939
  }
943
940
  function Ce(n, t) {
944
941
  function e(s, r) {
945
- const i = Hr(n, r, t);
942
+ const i = jr(n, r, t);
946
943
  return Rt(i !== null), i;
947
944
  }
948
945
  return e;
949
946
  }
950
- function Zr(n, t) {
947
+ function Hr(n, t) {
951
948
  function e(s, r) {
952
- const i = Wr(n, t, r);
949
+ const i = qr(n, t, r);
953
950
  return Rt(i !== null), i;
954
951
  }
955
952
  return e;
956
953
  }
957
- function Bt(n) {
954
+ function Lt(n) {
958
955
  function t(e, s) {
959
956
  let r;
960
- return e.getStatus() === 401 ? /* This exact message string is the only consistent part of the */ /* server's error response that identifies it as an App Check error. */ e.getErrorText().includes("Firebase App Check token is invalid") ? r = ur() : r = or() : e.getStatus() === 402 ? r = ar(n.bucket) : e.getStatus() === 403 ? r = lr(n.path) : r = s, r.status = e.getStatus(), r.serverResponse = s.serverResponse, r;
957
+ return e.getStatus() === 401 ? /* This exact message string is the only consistent part of the */ /* server's error response that identifies it as an App Check error. */ e.getErrorText().includes("Firebase App Check token is invalid") ? r = ar() : r = sr() : e.getStatus() === 402 ? r = ir(n.bucket) : e.getStatus() === 403 ? r = or(n.path) : r = s, r.status = e.getStatus(), r.serverResponse = s.serverResponse, r;
961
958
  }
962
959
  return t;
963
960
  }
964
- function Vr(n) {
965
- const t = Bt(n);
961
+ function Gr(n) {
962
+ const t = Lt(n);
966
963
  function e(s, r) {
967
964
  let i = t(s, r);
968
- return s.getStatus() === 404 && (i = sr(n.path)), i.serverResponse = r.serverResponse, i;
965
+ return s.getStatus() === 404 && (i = rr(n.path)), i.serverResponse = r.serverResponse, i;
969
966
  }
970
967
  return e;
971
968
  }
972
- function vn(n, t, e) {
973
- const s = t.fullServerUrl(), r = le(s, n.host, n._protocol), i = "GET", u = n.maxOperationRetryTime, l = new zt(r, i, Ce(n, e), u);
974
- return l.errorHandler = Vr(t), l;
969
+ function bn(n, t, e) {
970
+ const s = t.fullServerUrl(), r = ue(s, n.host, n._protocol), i = "GET", u = n.maxOperationRetryTime, l = new Bt(r, i, Ce(n, e), u);
971
+ return l.errorHandler = Gr(t), l;
975
972
  }
976
- function Kr(n, t, e, s, r) {
973
+ function Wr(n, t, e, s, r) {
977
974
  const i = {};
978
975
  t.isRoot ? i.prefix = "" : i.prefix = t.path + "/", e.length > 0 && (i.delimiter = e), s && (i.pageToken = s), r && (i.maxResults = r);
979
- const u = t.bucketOnlyServerUrl(), l = le(u, n.host, n._protocol), p = "GET", w = n.maxOperationRetryTime, v = new zt(l, p, Zr(n, t.bucket), w);
980
- return v.urlParams = i, v.errorHandler = Bt(t), v;
976
+ const u = t.bucketOnlyServerUrl(), l = ue(u, n.host, n._protocol), p = "GET", w = n.maxOperationRetryTime, v = new Bt(l, p, Hr(n, t.bucket), w);
977
+ return v.urlParams = i, v.errorHandler = Lt(t), v;
981
978
  }
982
- function Xr(n, t) {
979
+ function Zr(n, t) {
983
980
  return n && n.contentType || t && t.type() || "application/octet-stream";
984
981
  }
985
- function xn(n, t, e) {
982
+ function wn(n, t, e) {
986
983
  const s = Object.assign({}, e);
987
- return s.fullPath = n.path, s.size = t.size(), s.contentType || (s.contentType = Xr(null, t)), s;
984
+ return s.fullPath = n.path, s.size = t.size(), s.contentType || (s.contentType = Zr(null, t)), s;
988
985
  }
989
- function En(n, t, e, s, r) {
986
+ function vn(n, t, e, s, r) {
990
987
  const i = t.bucketOnlyServerUrl(), u = {
991
988
  "X-Goog-Upload-Protocol": "multipart"
992
989
  };
@@ -998,7 +995,7 @@ function En(n, t, e, s, r) {
998
995
  }
999
996
  const p = l();
1000
997
  u["Content-Type"] = "multipart/related; boundary=" + p;
1001
- const w = xn(t, s, r), v = wn(w, e), E = "--" + p + `\r
998
+ const w = wn(t, s, r), v = yn(w, e), E = "--" + p + `\r
1002
999
  Content-Type: application/json; charset=utf-8\r
1003
1000
  \r
1004
1001
  ` + v + `\r
@@ -1008,11 +1005,11 @@ Content-Type: ` + w.contentType + `\r
1008
1005
  `, T = `\r
1009
1006
  --` + p + "--", _ = It.getBlob(E, s, T);
1010
1007
  if (_ === null)
1011
- throw fn();
1012
- const k = { name: w.fullPath }, g = le(i, n.host, n._protocol), y = "POST", h = n.maxUploadRetryTime, f = new zt(g, y, Ce(n, e), h);
1013
- return f.urlParams = k, f.headers = u, f.body = _.uploadData(), f.errorHandler = Bt(t), f;
1008
+ throw cn();
1009
+ const k = { name: w.fullPath }, g = ue(i, n.host, n._protocol), y = "POST", f = n.maxUploadRetryTime, h = new Bt(g, y, Ce(n, e), f);
1010
+ return h.urlParams = k, h.headers = u, h.body = _.uploadData(), h.errorHandler = Lt(t), h;
1014
1011
  }
1015
- class ae {
1012
+ class se {
1016
1013
  constructor(t, e, s, r) {
1017
1014
  this.current = t, this.total = e, this.finalized = !!s, this.metadata = r || null;
1018
1015
  }
@@ -1026,14 +1023,14 @@ function Ue(n, t) {
1026
1023
  }
1027
1024
  return Rt(!!e && (t || ["active"]).indexOf(e) !== -1), e;
1028
1025
  }
1029
- function Yr(n, t, e, s, r) {
1030
- const i = t.bucketOnlyServerUrl(), u = xn(t, s, r), l = { name: u.fullPath }, p = le(i, n.host, n._protocol), w = "POST", v = {
1026
+ function Vr(n, t, e, s, r) {
1027
+ const i = t.bucketOnlyServerUrl(), u = wn(t, s, r), l = { name: u.fullPath }, p = ue(i, n.host, n._protocol), w = "POST", v = {
1031
1028
  "X-Goog-Upload-Protocol": "resumable",
1032
1029
  "X-Goog-Upload-Command": "start",
1033
1030
  "X-Goog-Upload-Header-Content-Length": `${s.size()}`,
1034
1031
  "X-Goog-Upload-Header-Content-Type": u.contentType,
1035
1032
  "Content-Type": "application/json; charset=utf-8"
1036
- }, E = wn(u, e), T = n.maxUploadRetryTime;
1033
+ }, E = yn(u, e), T = n.maxUploadRetryTime;
1037
1034
  function _(g) {
1038
1035
  Ue(g);
1039
1036
  let y;
@@ -1044,10 +1041,10 @@ function Yr(n, t, e, s, r) {
1044
1041
  }
1045
1042
  return Rt(Ie(y)), y;
1046
1043
  }
1047
- const k = new zt(p, w, _, T);
1048
- return k.urlParams = l, k.headers = v, k.body = E, k.errorHandler = Bt(t), k;
1044
+ const k = new Bt(p, w, _, T);
1045
+ return k.urlParams = l, k.headers = v, k.body = E, k.errorHandler = Lt(t), k;
1049
1046
  }
1050
- function Qr(n, t, e, s) {
1047
+ function Kr(n, t, e, s) {
1051
1048
  const r = { "X-Goog-Upload-Command": "query" };
1052
1049
  function i(w) {
1053
1050
  const v = Ue(w, ["active", "final"]);
@@ -1059,16 +1056,16 @@ function Qr(n, t, e, s) {
1059
1056
  }
1060
1057
  E || Rt(!1);
1061
1058
  const T = Number(E);
1062
- return Rt(!isNaN(T)), new ae(T, s.size(), v === "final");
1059
+ return Rt(!isNaN(T)), new se(T, s.size(), v === "final");
1063
1060
  }
1064
- const u = "POST", l = n.maxUploadRetryTime, p = new zt(e, u, i, l);
1065
- return p.headers = r, p.errorHandler = Bt(t), p;
1061
+ const u = "POST", l = n.maxUploadRetryTime, p = new Bt(e, u, i, l);
1062
+ return p.headers = r, p.errorHandler = Lt(t), p;
1066
1063
  }
1067
1064
  const Fe = 256 * 1024;
1068
- function Jr(n, t, e, s, r, i, u, l) {
1069
- const p = new ae(0, 0);
1065
+ function Xr(n, t, e, s, r, i, u, l) {
1066
+ const p = new se(0, 0);
1070
1067
  if (u ? (p.current = u.current, p.total = u.total) : (p.current = 0, p.total = s.size()), s.size() !== p.total)
1071
- throw dr();
1068
+ throw fr();
1072
1069
  const w = p.total - p.current;
1073
1070
  let v = w;
1074
1071
  r > 0 && (v = Math.min(v, r));
@@ -1080,14 +1077,14 @@ function Jr(n, t, e, s, r, i, u, l) {
1080
1077
  "X-Goog-Upload-Offset": `${p.current}`
1081
1078
  }, g = s.slice(E, T);
1082
1079
  if (g === null)
1083
- throw fn();
1080
+ throw cn();
1084
1081
  function y(c, m) {
1085
1082
  const b = Ue(c, ["active", "final"]), O = p.current + v, F = s.size();
1086
1083
  let D;
1087
- return b === "final" ? D = Ce(t, i)(c, m) : D = null, new ae(O, F, b === "final", D);
1084
+ return b === "final" ? D = Ce(t, i)(c, m) : D = null, new se(O, F, b === "final", D);
1088
1085
  }
1089
- const h = "POST", f = t.maxUploadRetryTime, a = new zt(e, h, y, f);
1090
- return a.headers = k, a.body = g.uploadData(), a.progressCallback = l || null, a.errorHandler = Bt(n), a;
1086
+ const f = "POST", h = t.maxUploadRetryTime, a = new Bt(e, f, y, h);
1087
+ return a.headers = k, a.body = g.uploadData(), a.progressCallback = l || null, a.errorHandler = Lt(n), a;
1091
1088
  }
1092
1089
  const gt = {
1093
1090
  /** The task is currently transferring data. */
@@ -1101,7 +1098,7 @@ const gt = {
1101
1098
  /** The task failed with an error. */
1102
1099
  ERROR: "error"
1103
1100
  };
1104
- function de(n) {
1101
+ function he(n) {
1105
1102
  switch (n) {
1106
1103
  case "running":
1107
1104
  case "pausing":
@@ -1135,9 +1132,9 @@ function de(n) {
1135
1132
  * See the License for the specific language governing permissions and
1136
1133
  * limitations under the License.
1137
1134
  */
1138
- class ti {
1135
+ class Yr {
1139
1136
  constructor(t, e, s) {
1140
- if (wr(t) || e != null || s != null)
1137
+ if (gr(t) || e != null || s != null)
1141
1138
  this.next = t, this.error = e ?? void 0, this.complete = s ?? void 0;
1142
1139
  else {
1143
1140
  const i = t;
@@ -1166,71 +1163,63 @@ function Ot(n) {
1166
1163
  Promise.resolve().then(() => n(...t));
1167
1164
  };
1168
1165
  }
1169
- class ei {
1166
+ class Qr {
1170
1167
  constructor() {
1171
- this.sent_ = !1, this.xhr_ = new XMLHttpRequest(), this.initXhr(), this.errorCode_ = Ct.NO_ERROR, this.sendPromise_ = new Promise((t) => {
1172
- this.xhr_.addEventListener("abort", () => {
1173
- this.errorCode_ = Ct.ABORT, t();
1174
- }), this.xhr_.addEventListener("error", () => {
1175
- this.errorCode_ = Ct.NETWORK_ERROR, t();
1176
- }), this.xhr_.addEventListener("load", () => {
1177
- t();
1178
- });
1179
- });
1168
+ this.errorText_ = "", this.sent_ = !1, this.errorCode_ = Ct.NO_ERROR;
1180
1169
  }
1181
- send(t, e, s, r, i) {
1170
+ async send(t, e, s, r, i) {
1182
1171
  if (this.sent_)
1183
- throw $t("cannot .send() more than once");
1184
- if (on(t) && s && (this.xhr_.withCredentials = !0), this.sent_ = !0, this.xhr_.open(e, t, !0), i !== void 0)
1185
- for (const u in i)
1186
- i.hasOwnProperty(u) && this.xhr_.setRequestHeader(u, i[u].toString());
1187
- return r !== void 0 ? this.xhr_.send(r) : this.xhr_.send(), this.sendPromise_;
1172
+ throw Zt("cannot .send() more than once");
1173
+ this.sent_ = !0;
1174
+ try {
1175
+ const u = await ti(t, e, s, i, r);
1176
+ this.headers_ = u.headers, this.statusCode_ = u.status, this.errorCode_ = Ct.NO_ERROR, this.body_ = await u.arrayBuffer();
1177
+ } catch (u) {
1178
+ this.errorText_ = u == null ? void 0 : u.message, this.statusCode_ = 0, this.errorCode_ = Ct.NETWORK_ERROR;
1179
+ }
1188
1180
  }
1189
1181
  getErrorCode() {
1190
- if (!this.sent_)
1191
- throw $t("cannot .getErrorCode() before sending");
1182
+ if (this.errorCode_ === void 0)
1183
+ throw Zt("cannot .getErrorCode() before receiving response");
1192
1184
  return this.errorCode_;
1193
1185
  }
1194
1186
  getStatus() {
1195
- if (!this.sent_)
1196
- throw $t("cannot .getStatus() before sending");
1197
- try {
1198
- return this.xhr_.status;
1199
- } catch {
1200
- return -1;
1201
- }
1202
- }
1203
- getResponse() {
1204
- if (!this.sent_)
1205
- throw $t("cannot .getResponse() before sending");
1206
- return this.xhr_.response;
1187
+ if (this.statusCode_ === void 0)
1188
+ throw Zt("cannot .getStatus() before receiving response");
1189
+ return this.statusCode_;
1207
1190
  }
1208
1191
  getErrorText() {
1209
- if (!this.sent_)
1210
- throw $t("cannot .getErrorText() before sending");
1211
- return this.xhr_.statusText;
1192
+ return this.errorText_;
1212
1193
  }
1213
- /** Aborts the request. */
1214
1194
  abort() {
1215
- this.xhr_.abort();
1216
1195
  }
1217
1196
  getResponseHeader(t) {
1218
- return this.xhr_.getResponseHeader(t);
1197
+ if (!this.headers_)
1198
+ throw Zt("cannot .getResponseHeader() before receiving response");
1199
+ return this.headers_.get(t);
1219
1200
  }
1220
1201
  addUploadProgressListener(t) {
1221
- this.xhr_.upload != null && this.xhr_.upload.addEventListener("progress", t);
1222
1202
  }
1223
1203
  removeUploadProgressListener(t) {
1224
- this.xhr_.upload != null && this.xhr_.upload.removeEventListener("progress", t);
1225
1204
  }
1226
1205
  }
1227
- class ni extends ei {
1228
- initXhr() {
1229
- this.xhr_.responseType = "text";
1206
+ class Jr extends Qr {
1207
+ getResponse() {
1208
+ if (!this.body_)
1209
+ throw Zt("cannot .getResponse() before receiving response");
1210
+ return Buffer.from(this.body_).toString("utf-8");
1230
1211
  }
1231
1212
  }
1232
1213
  function St() {
1233
- return new ni();
1214
+ return new Jr();
1215
+ }
1216
+ function ti(n, t, e, s, r) {
1217
+ const i = {
1218
+ method: t,
1219
+ headers: s || {},
1220
+ body: r
1221
+ };
1222
+ return sn(n) && e && (i.credentials = "include"), fetch(n, i);
1234
1223
  }
1235
1224
  /**
1236
1225
  * @license
@@ -1248,7 +1237,7 @@ function St() {
1248
1237
  * See the License for the specific language governing permissions and
1249
1238
  * limitations under the License.
1250
1239
  */
1251
- class ri {
1240
+ class ei {
1252
1241
  isExponentialBackoffExpired() {
1253
1242
  return this.sleepTime > this.maxSleepTime;
1254
1243
  }
@@ -1263,11 +1252,11 @@ class ri {
1263
1252
  this._needToFetchStatus = !0, this.completeTransitions_();
1264
1253
  else {
1265
1254
  const i = this.isExponentialBackoffExpired();
1266
- if (pn(r.status, []))
1255
+ if (hn(r.status, []))
1267
1256
  if (i)
1268
- r = cn();
1257
+ r = un();
1269
1258
  else {
1270
- this.sleepTime = Math.max(this.sleepTime * 2, ir), this._needToFetchStatus = !0, this.completeTransitions_();
1259
+ this.sleepTime = Math.max(this.sleepTime * 2, nr), this._needToFetchStatus = !0, this.completeTransitions_();
1271
1260
  return;
1272
1261
  }
1273
1262
  this._error = r, this._transition(
@@ -1324,7 +1313,7 @@ class ri {
1324
1313
  // TODO(andysoto): assert false
1325
1314
  _createResumable() {
1326
1315
  this._resolveToken((t, e) => {
1327
- const s = Yr(this._ref.storage, this._ref._location, this._mappings, this._blob, this._metadata), r = this._ref.storage._makeRequest(s, St, t, e);
1316
+ const s = Vr(this._ref.storage, this._ref._location, this._mappings, this._blob, this._metadata), r = this._ref.storage._makeRequest(s, St, t, e);
1328
1317
  this._request = r, r.getPromise().then((i) => {
1329
1318
  this._request = void 0, this._uploadUrl = i, this._needToFetchStatus = !1, this.completeTransitions_();
1330
1319
  }, this._errorHandler);
@@ -1333,18 +1322,18 @@ class ri {
1333
1322
  _fetchStatus() {
1334
1323
  const t = this._uploadUrl;
1335
1324
  this._resolveToken((e, s) => {
1336
- const r = Qr(this._ref.storage, this._ref._location, t, this._blob), i = this._ref.storage._makeRequest(r, St, e, s);
1325
+ const r = Kr(this._ref.storage, this._ref._location, t, this._blob), i = this._ref.storage._makeRequest(r, St, e, s);
1337
1326
  this._request = i, i.getPromise().then((u) => {
1338
1327
  u = u, this._request = void 0, this._updateProgress(u.current), this._needToFetchStatus = !1, u.finalized && (this._needToFetchMetadata = !0), this.completeTransitions_();
1339
1328
  }, this._errorHandler);
1340
1329
  });
1341
1330
  }
1342
1331
  _continueUpload() {
1343
- const t = Fe * this._chunkMultiplier, e = new ae(this._transferred, this._blob.size()), s = this._uploadUrl;
1332
+ const t = Fe * this._chunkMultiplier, e = new se(this._transferred, this._blob.size()), s = this._uploadUrl;
1344
1333
  this._resolveToken((r, i) => {
1345
1334
  let u;
1346
1335
  try {
1347
- u = Jr(this._ref._location, this._ref.storage, s, this._blob, t, this._mappings, e, this._makeProgressCallback());
1336
+ u = Xr(this._ref._location, this._ref.storage, s, this._blob, t, this._mappings, e, this._makeProgressCallback());
1348
1337
  } catch (p) {
1349
1338
  this._error = p, this._transition(
1350
1339
  "error"
@@ -1374,7 +1363,7 @@ class ri {
1374
1363
  }
1375
1364
  _fetchMetadata() {
1376
1365
  this._resolveToken((t, e) => {
1377
- const s = vn(this._ref.storage, this._ref._location, this._mappings), r = this._ref.storage._makeRequest(s, St, t, e);
1366
+ const s = bn(this._ref.storage, this._ref._location, this._mappings), r = this._ref.storage._makeRequest(s, St, t, e);
1378
1367
  this._request = r, r.getPromise().then((i) => {
1379
1368
  this._request = void 0, this._metadata = i, this._transition(
1380
1369
  "success"
@@ -1385,7 +1374,7 @@ class ri {
1385
1374
  }
1386
1375
  _oneShotUpload() {
1387
1376
  this._resolveToken((t, e) => {
1388
- const s = En(this._ref.storage, this._ref._location, this._mappings, this._blob, this._metadata), r = this._ref.storage._makeRequest(s, St, t, e);
1377
+ const s = vn(this._ref.storage, this._ref._location, this._mappings, this._blob, this._metadata), r = this._ref.storage._makeRequest(s, St, t, e);
1389
1378
  this._request = r, r.getPromise().then((i) => {
1390
1379
  this._request = void 0, this._metadata = i, this._updateProgress(this._blob.size()), this._transition(
1391
1380
  "success"
@@ -1413,7 +1402,7 @@ class ri {
1413
1402
  this._state = t, this._notifyObservers();
1414
1403
  break;
1415
1404
  case "canceled":
1416
- this._error = hn(), this._state = t, this._notifyObservers();
1405
+ this._error = ln(), this._state = t, this._notifyObservers();
1417
1406
  break;
1418
1407
  case "error":
1419
1408
  this._state = t, this._notifyObservers();
@@ -1446,7 +1435,7 @@ class ri {
1446
1435
  * A snapshot of the current task state.
1447
1436
  */
1448
1437
  get snapshot() {
1449
- const t = de(this._state);
1438
+ const t = he(this._state);
1450
1439
  return {
1451
1440
  bytesTransferred: this._transferred,
1452
1441
  totalBytes: this._blob.size(),
@@ -1474,7 +1463,7 @@ class ri {
1474
1463
  * callbacks.
1475
1464
  */
1476
1465
  on(t, e, s, r) {
1477
- const i = new ti(e || void 0, s || void 0, r || void 0);
1466
+ const i = new Yr(e || void 0, s || void 0, r || void 0);
1478
1467
  return this._addObserver(i), () => {
1479
1468
  this._removeObserver(i);
1480
1469
  };
@@ -1515,7 +1504,7 @@ class ri {
1515
1504
  _finishPromise() {
1516
1505
  if (this._resolve !== void 0) {
1517
1506
  let t = !0;
1518
- switch (de(this._state)) {
1507
+ switch (he(this._state)) {
1519
1508
  case gt.SUCCESS:
1520
1509
  Ot(this._resolve.bind(null, this.snapshot))();
1521
1510
  break;
@@ -1532,7 +1521,7 @@ class ri {
1532
1521
  }
1533
1522
  }
1534
1523
  _notifyObserver(t) {
1535
- switch (de(this._state)) {
1524
+ switch (he(this._state)) {
1536
1525
  case gt.RUNNING:
1537
1526
  case gt.PAUSED:
1538
1527
  t.next && Ot(t.next.bind(t, this.snapshot))();
@@ -1638,7 +1627,7 @@ class Ut {
1638
1627
  * For example, if fullPath is 'full/path/image.png', name is 'image.png'.
1639
1628
  */
1640
1629
  get name() {
1641
- return bn(this._location.path);
1630
+ return gn(this._location.path);
1642
1631
  }
1643
1632
  /**
1644
1633
  * The `StorageService` instance this `StorageReference` is associated with.
@@ -1651,7 +1640,7 @@ class Ut {
1651
1640
  * this reference is the root.
1652
1641
  */
1653
1642
  get parent() {
1654
- const t = Lr(this._location.path);
1643
+ const t = zr(this._location.path);
1655
1644
  if (t === null)
1656
1645
  return null;
1657
1646
  const e = new _t(this._location.bucket, t);
@@ -1662,35 +1651,35 @@ class Ut {
1662
1651
  */
1663
1652
  _throwIfRoot(t) {
1664
1653
  if (this._location.path === "")
1665
- throw mr(t);
1654
+ throw hr(t);
1666
1655
  }
1667
1656
  }
1668
- function ii(n, t, e) {
1657
+ function ni(n, t, e) {
1669
1658
  n._throwIfRoot("uploadBytes");
1670
- const s = En(n.storage, n._location, Se(), new It(t, !0), e);
1659
+ const s = vn(n.storage, n._location, Se(), new It(t, !0), e);
1671
1660
  return n.storage.makeRequestWithTokens(s, St).then((r) => ({
1672
1661
  metadata: r,
1673
1662
  ref: n
1674
1663
  }));
1675
1664
  }
1676
- function si(n, t, e) {
1677
- return n._throwIfRoot("uploadBytesResumable"), new ri(n, new It(t), e);
1665
+ function ri(n, t, e) {
1666
+ return n._throwIfRoot("uploadBytesResumable"), new ei(n, new It(t), e);
1678
1667
  }
1679
- function ai(n) {
1668
+ function ii(n) {
1680
1669
  const t = {
1681
1670
  prefixes: [],
1682
1671
  items: []
1683
1672
  };
1684
- return kn(n, t).then(() => t);
1673
+ return xn(n, t).then(() => t);
1685
1674
  }
1686
- async function kn(n, t, e) {
1687
- const r = await oi(n, {
1675
+ async function xn(n, t, e) {
1676
+ const r = await si(n, {
1688
1677
  // maxResults is 1000 by default.
1689
1678
  pageToken: e
1690
1679
  });
1691
- t.prefixes.push(...r.prefixes), t.items.push(...r.items), r.nextPageToken != null && await kn(n, t, r.nextPageToken);
1680
+ t.prefixes.push(...r.prefixes), t.items.push(...r.items), r.nextPageToken != null && await xn(n, t, r.nextPageToken);
1692
1681
  }
1693
- function oi(n, t) {
1682
+ function si(n, t) {
1694
1683
  t != null && typeof t.maxResults == "number" && we(
1695
1684
  "options.maxResults",
1696
1685
  /* minValue= */
@@ -1699,7 +1688,7 @@ function oi(n, t) {
1699
1688
  1e3,
1700
1689
  t.maxResults
1701
1690
  );
1702
- const e = t || {}, s = Kr(
1691
+ const e = t || {}, s = Wr(
1703
1692
  n.storage,
1704
1693
  n._location,
1705
1694
  /*delimiter= */
@@ -1709,13 +1698,13 @@ function oi(n, t) {
1709
1698
  );
1710
1699
  return n.storage.makeRequestWithTokens(s, St);
1711
1700
  }
1712
- function ui(n) {
1701
+ function ai(n) {
1713
1702
  n._throwIfRoot("getMetadata");
1714
- const t = vn(n.storage, n._location, Se());
1703
+ const t = bn(n.storage, n._location, Se());
1715
1704
  return n.storage.makeRequestWithTokens(t, St);
1716
1705
  }
1717
- function li(n, t) {
1718
- const e = Fr(n._location.path, t), s = new _t(n._location.bucket, e);
1706
+ function oi(n, t) {
1707
+ const e = Pr(n._location.path, t), s = new _t(n._location.bucket, e);
1719
1708
  return new Ut(n.storage, s);
1720
1709
  }
1721
1710
  /**
@@ -1734,44 +1723,44 @@ function li(n, t) {
1734
1723
  * See the License for the specific language governing permissions and
1735
1724
  * limitations under the License.
1736
1725
  */
1737
- function ci(n) {
1726
+ function ui(n) {
1738
1727
  return /^[A-Za-z]+:\/\//.test(n);
1739
1728
  }
1740
- function hi(n, t) {
1729
+ function li(n, t) {
1741
1730
  return new Ut(n, t);
1742
1731
  }
1743
- function An(n, t) {
1732
+ function En(n, t) {
1744
1733
  if (n instanceof Oe) {
1745
1734
  const e = n;
1746
1735
  if (e._bucket == null)
1747
- throw fr();
1736
+ throw cr();
1748
1737
  const s = new Ut(e, e._bucket);
1749
- return t != null ? An(s, t) : s;
1738
+ return t != null ? En(s, t) : s;
1750
1739
  } else
1751
- return t !== void 0 ? li(n, t) : n;
1740
+ return t !== void 0 ? oi(n, t) : n;
1752
1741
  }
1753
- function fi(n, t) {
1754
- if (t && ci(t)) {
1742
+ function ci(n, t) {
1743
+ if (t && ui(t)) {
1755
1744
  if (n instanceof Oe)
1756
- return hi(n, t);
1745
+ return li(n, t);
1757
1746
  throw be("To use ref(service, url), the first argument must be a Storage instance.");
1758
1747
  } else
1759
- return An(n, t);
1748
+ return En(n, t);
1760
1749
  }
1761
1750
  function Me(n, t) {
1762
- const e = t == null ? void 0 : t[ln];
1751
+ const e = t == null ? void 0 : t[on];
1763
1752
  return e == null ? null : _t.makeFromBucketSpec(e, n);
1764
1753
  }
1765
- function di(n, t, e, s = {}) {
1754
+ function fi(n, t, e, s = {}) {
1766
1755
  n.host = `${t}:${e}`;
1767
- const r = on(t);
1768
- r && (Xn(`https://${n.host}/b`), Yn("Storage", !0)), n._isUsingEmulator = !0, n._protocol = r ? "https" : "http";
1756
+ const r = sn(t);
1757
+ r && (Vn(`https://${n.host}/b`), Kn("Storage", !0)), n._isUsingEmulator = !0, n._protocol = r ? "https" : "http";
1769
1758
  const { mockUserToken: i } = s;
1770
- i && (n._overrideAuthToken = typeof i == "string" ? i : Qn(i, n.app.options.projectId));
1759
+ i && (n._overrideAuthToken = typeof i == "string" ? i : Xn(i, n.app.options.projectId));
1771
1760
  }
1772
1761
  class Oe {
1773
1762
  constructor(t, e, s, r, i, u = !1) {
1774
- this.app = t, this._authProvider = e, this._appCheckProvider = s, this._url = r, this._firebaseVersion = i, this._isUsingEmulator = u, this._bucket = null, this._host = un, this._protocol = "https", this._appId = null, this._deleted = !1, this._maxOperationRetryTime = nr, this._maxUploadRetryTime = rr, this._requests = /* @__PURE__ */ new Set(), r != null ? this._bucket = _t.makeFromBucketSpec(r, this._host) : this._bucket = Me(this._host, this.app.options);
1763
+ this.app = t, this._authProvider = e, this._appCheckProvider = s, this._url = r, this._firebaseVersion = i, this._isUsingEmulator = u, this._bucket = null, this._host = an, this._protocol = "https", this._appId = null, this._deleted = !1, this._maxOperationRetryTime = tr, this._maxUploadRetryTime = er, this._requests = /* @__PURE__ */ new Set(), r != null ? this._bucket = _t.makeFromBucketSpec(r, this._host) : this._bucket = Me(this._host, this.app.options);
1775
1764
  }
1776
1765
  /**
1777
1766
  * The host string for this service, in the form of `host` or
@@ -1828,7 +1817,7 @@ class Oe {
1828
1817
  return null;
1829
1818
  }
1830
1819
  async _getAppCheckToken() {
1831
- if (an(this.app) && this.app.settings.appCheckToken)
1820
+ if (rn(this.app) && this.app.settings.appCheckToken)
1832
1821
  return this.app.settings.appCheckToken;
1833
1822
  const t = this._appCheckProvider.getImmediate({ optional: !0 });
1834
1823
  return t ? (await t.getToken()).token : null;
@@ -1852,9 +1841,9 @@ class Oe {
1852
1841
  */
1853
1842
  _makeRequest(t, e, s, r, i = !0) {
1854
1843
  if (this._deleted)
1855
- return new _r(dn());
1844
+ return new dr(fn());
1856
1845
  {
1857
- const u = Rr(t, this._appId, s, r, e, this._firebaseVersion, i, this._isUsingEmulator);
1846
+ const u = Ar(t, this._appId, s, r, e, this._firebaseVersion, i, this._isUsingEmulator);
1858
1847
  return this._requests.add(u), u.getPromise().then(() => this._requests.delete(u), () => this._requests.delete(u)), u;
1859
1848
  }
1860
1849
  }
@@ -1866,7 +1855,7 @@ class Oe {
1866
1855
  return this._makeRequest(t, e, s, r).getPromise();
1867
1856
  }
1868
1857
  }
1869
- const je = "@firebase/storage", $e = "0.14.0";
1858
+ const hi = "@firebase/storage", di = "0.14.0";
1870
1859
  /**
1871
1860
  * @license
1872
1861
  * Copyright 2020 Google LLC
@@ -1883,53 +1872,53 @@ const je = "@firebase/storage", $e = "0.14.0";
1883
1872
  * See the License for the specific language governing permissions and
1884
1873
  * limitations under the License.
1885
1874
  */
1886
- const Tn = "storage";
1875
+ const kn = "storage";
1887
1876
  function pi(n, t, e) {
1888
- return n = Pt(n), ii(n, t, e);
1877
+ return n = Pt(n), ni(n, t, e);
1889
1878
  }
1890
1879
  function mi(n, t, e) {
1891
- return n = Pt(n), si(n, t, e);
1880
+ return n = Pt(n), ri(n, t, e);
1892
1881
  }
1893
1882
  function _i(n) {
1894
- return n = Pt(n), ui(n);
1883
+ return n = Pt(n), ai(n);
1895
1884
  }
1896
1885
  function gi(n) {
1897
- return n = Pt(n), ai(n);
1886
+ return n = Pt(n), ii(n);
1898
1887
  }
1899
- function pe(n, t) {
1900
- return n = Pt(n), fi(n, t);
1888
+ function de(n, t) {
1889
+ return n = Pt(n), ci(n, t);
1901
1890
  }
1902
- function qe(n = Zn(), t) {
1891
+ function je(n = Gn(), t) {
1903
1892
  n = Pt(n);
1904
- const s = Vn(n, Tn).getImmediate({
1893
+ const s = Wn(n, kn).getImmediate({
1905
1894
  identifier: t
1906
- }), r = Kn("storage");
1895
+ }), r = Zn("storage");
1907
1896
  return r && ve(s, ...r), s;
1908
1897
  }
1909
1898
  function ve(n, t, e, s = {}) {
1910
- di(n, t, e, s);
1899
+ fi(n, t, e, s);
1911
1900
  }
1912
1901
  function yi(n, { instanceIdentifier: t }) {
1913
1902
  const e = n.getProvider("app").getImmediate(), s = n.getProvider("auth-internal"), r = n.getProvider("app-check-internal");
1914
- return new Oe(e, s, r, t, Gn);
1903
+ return new Oe(e, s, r, t, qn);
1915
1904
  }
1916
1905
  function bi() {
1917
- rn(new sn(
1918
- Tn,
1906
+ en(new nn(
1907
+ kn,
1919
1908
  yi,
1920
1909
  "PUBLIC"
1921
1910
  /* ComponentType.PUBLIC */
1922
- ).setMultipleInstances(!0)), se(je, $e, ""), se(je, $e, "esm2020");
1911
+ ).setMultipleInstances(!0)), ye(hi, di);
1923
1912
  }
1924
1913
  bi();
1925
- const oe = class oe {
1914
+ const ae = class ae {
1926
1915
  constructor(t) {
1927
1916
  wt(this, "queryEndpoint");
1928
1917
  wt(this, "updateEndpoint");
1929
1918
  wt(this, "baseHeaders");
1930
1919
  this.queryEndpoint = t.queryEndpoint, this.updateEndpoint = t.updateEndpoint, this.baseHeaders = Object.fromEntries(
1931
1920
  Object.entries(t.originalHeaders || {}).filter(
1932
- ([e]) => oe.RELEVANT_HEADER_KEYS.includes(e)
1921
+ ([e]) => ae.RELEVANT_HEADER_KEYS.includes(e)
1933
1922
  )
1934
1923
  ), t.authHeader !== void 0 && (this.baseHeaders.Authorization = t.authHeader);
1935
1924
  }
@@ -1992,20 +1981,20 @@ const oe = class oe {
1992
1981
  };
1993
1982
  }
1994
1983
  };
1995
- wt(oe, "RELEVANT_HEADER_KEYS", [
1984
+ wt(ae, "RELEVANT_HEADER_KEYS", [
1996
1985
  "authorization",
1997
1986
  "Authorization",
1998
1987
  "x-project-id"
1999
1988
  ]);
2000
- let xe = oe;
2001
- const ue = class ue {
1989
+ let xe = ae;
1990
+ const oe = class oe {
2002
1991
  constructor(t) {
2003
1992
  wt(this, "queryEndpoint");
2004
1993
  wt(this, "updateEndpoint");
2005
1994
  wt(this, "baseHeaders");
2006
1995
  this.queryEndpoint = t.queryEndpoint, this.updateEndpoint = t.updateEndpoint, this.baseHeaders = Object.fromEntries(
2007
1996
  Object.entries(t.originalHeaders || {}).filter(
2008
- ([e]) => ue.RELEVANT_HEADER_KEYS.includes(e)
1997
+ ([e]) => oe.RELEVANT_HEADER_KEYS.includes(e)
2009
1998
  )
2010
1999
  );
2011
2000
  }
@@ -2062,14 +2051,14 @@ const ue = class ue {
2062
2051
  return await e.json();
2063
2052
  }
2064
2053
  };
2065
- wt(ue, "RELEVANT_HEADER_KEYS", [
2054
+ wt(oe, "RELEVANT_HEADER_KEYS", [
2066
2055
  "authorization",
2067
2056
  "Authorization",
2068
2057
  "x-project-id",
2069
2058
  "x-user-roles"
2070
2059
  // add more if needed
2071
2060
  ]);
2072
- let Ee = ue;
2061
+ let Ee = oe;
2073
2062
  class wi {
2074
2063
  constructor(t) {
2075
2064
  wt(this, "_db");
@@ -2112,7 +2101,7 @@ class vi {
2112
2101
  * Upload binary data to the raw storage bucket with retry logic.
2113
2102
  */
2114
2103
  async uploadRaw(t, e, s, r = 3) {
2115
- const i = pe(this.options.storageRaw, t);
2104
+ const i = de(this.options.storageRaw, t);
2116
2105
  let u = 0, l;
2117
2106
  for (; u < r; )
2118
2107
  try {
@@ -2132,26 +2121,26 @@ class vi {
2132
2121
  * Skips upload and returns `false` if the blob already exists.
2133
2122
  */
2134
2123
  async uploadProcessed(t, e, s) {
2135
- const r = pe(this.options.storageProcessed, t);
2124
+ const r = de(this.options.storageProcessed, t);
2136
2125
  return await _i(r).catch(() => null) ? !1 : (await pi(r, e, { customMetadata: s }), !0);
2137
2126
  }
2138
2127
  /**
2139
2128
  * List all blob names directly under `prefix` in the raw storage bucket.
2140
2129
  */
2141
2130
  async listRaw(t) {
2142
- const e = pe(this.options.storageRaw, t);
2131
+ const e = de(this.options.storageRaw, t);
2143
2132
  return (await gi(e)).items.map((r) => r.name);
2144
2133
  }
2145
2134
  }
2146
2135
  function xi(n, t) {
2147
2136
  return new Promise((e) => {
2148
- var h, f;
2137
+ var f, h;
2149
2138
  const s = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
2150
2139
  for (const a of n)
2151
- s.has(a.contentUUID) || s.set(a.contentUUID, []), (h = s.get(a.contentUUID)) == null || h.push(a), r.set(a.locationUUID, a);
2140
+ s.has(a.contentUUID) || s.set(a.contentUUID, []), (f = s.get(a.contentUUID)) == null || f.push(a), r.set(a.locationUUID, a);
2152
2141
  const i = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map();
2153
2142
  for (const a of t)
2154
- i.has(a.contentUUID) || i.set(a.contentUUID, []), (f = i.get(a.contentUUID)) == null || f.push(a), a.locationUUID && u.set(a.locationUUID, a);
2143
+ i.has(a.contentUUID) || i.set(a.contentUUID, []), (h = i.get(a.contentUUID)) == null || h.push(a), a.locationUUID && u.set(a.locationUUID, a);
2155
2144
  const l = [], p = [];
2156
2145
  for (const a of n)
2157
2146
  i.has(a.contentUUID) ? (i.get(a.contentUUID) || []).some((b) => b.locationUUID === a.locationUUID) || p.push(a) : l.push(a);
@@ -2214,7 +2203,7 @@ const Ei = "functions";
2214
2203
  */
2215
2204
  class ki {
2216
2205
  constructor(t, e, s, r) {
2217
- this.app = t, this.auth = null, this.messaging = null, this.appCheck = null, this.serverAppAppCheckToken = null, an(t) && t.settings.appCheckToken && (this.serverAppAppCheckToken = t.settings.appCheckToken), this.auth = e.getImmediate({ optional: !0 }), this.messaging = s.getImmediate({
2206
+ this.app = t, this.auth = null, this.messaging = null, this.appCheck = null, this.serverAppAppCheckToken = null, rn(t) && t.settings.appCheckToken && (this.serverAppAppCheckToken = t.settings.appCheckToken), this.auth = e.getImmediate({ optional: !0 }), this.messaging = s.getImmediate({
2218
2207
  optional: !0
2219
2208
  }), this.auth || e.get().then((i) => this.auth = i, () => {
2220
2209
  }), this.messaging || s.get().then((i) => this.messaging = i, () => {
@@ -2268,19 +2257,19 @@ class ki {
2268
2257
  * See the License for the specific language governing permissions and
2269
2258
  * limitations under the License.
2270
2259
  */
2271
- const He = "us-central1";
2260
+ const $e = "us-central1";
2272
2261
  class Ai {
2273
2262
  /**
2274
2263
  * Creates a new Functions service for the given app.
2275
2264
  * @param app - The FirebaseApp to use.
2276
2265
  */
2277
- constructor(t, e, s, r, i = He, u = (...l) => fetch(...l)) {
2266
+ constructor(t, e, s, r, i = $e, u = (...l) => fetch(...l)) {
2278
2267
  this.app = t, this.fetchImpl = u, this.emulatorOrigin = null, this.contextProvider = new ki(t, e, s, r), this.cancelAllRequests = new Promise((l) => {
2279
2268
  this.deleteService = () => Promise.resolve(l());
2280
2269
  });
2281
2270
  try {
2282
2271
  const l = new URL(i);
2283
- this.customDomain = l.origin + (l.pathname === "/" ? "" : l.pathname), this.region = He;
2272
+ this.customDomain = l.origin + (l.pathname === "/" ? "" : l.pathname), this.region = $e;
2284
2273
  } catch {
2285
2274
  this.customDomain = null, this.region = i;
2286
2275
  }
@@ -2298,7 +2287,7 @@ class Ai {
2298
2287
  return this.emulatorOrigin !== null ? `${this.emulatorOrigin}/${e}/${this.region}/${t}` : this.customDomain !== null ? `${this.customDomain}/${t}` : `https://${this.region}-${e}.cloudfunctions.net/${t}`;
2299
2288
  }
2300
2289
  }
2301
- const Ge = "@firebase/functions", We = "0.13.1";
2290
+ const qe = "@firebase/functions", He = "0.13.1";
2302
2291
  /**
2303
2292
  * @license
2304
2293
  * Copyright 2019 Google LLC
@@ -2321,12 +2310,12 @@ function Si(n) {
2321
2310
  const r = e.getProvider("app").getImmediate(), i = e.getProvider(Ti), u = e.getProvider(Ri), l = e.getProvider(Ii);
2322
2311
  return new Ai(r, i, u, l, s);
2323
2312
  };
2324
- rn(new sn(
2313
+ en(new nn(
2325
2314
  Ei,
2326
2315
  t,
2327
2316
  "PUBLIC"
2328
2317
  /* ComponentType.PUBLIC */
2329
- ).setMultipleInstances(!0)), se(Ge, We, n), se(Ge, We, "esm2020");
2318
+ ).setMultipleInstances(!0)), ye(qe, He, n), ye(qe, He, "esm2020");
2330
2319
  }
2331
2320
  Si();
2332
2321
  const Ci = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
@@ -2353,7 +2342,7 @@ function Ni(n) {
2353
2342
  t.push(n.charCodeAt(e));
2354
2343
  return t;
2355
2344
  }
2356
- const Pi = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", zi = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
2345
+ const zi = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", Pi = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
2357
2346
  function Bi(n, t, e) {
2358
2347
  function s(r, i, u, l) {
2359
2348
  var p;
@@ -2372,7 +2361,7 @@ function Bi(n, t, e) {
2372
2361
  s.name = n;
2373
2362
  } catch {
2374
2363
  }
2375
- return s.DNS = Pi, s.URL = zi, s;
2364
+ return s.DNS = zi, s.URL = Pi, s;
2376
2365
  }
2377
2366
  function Li(n, t, e, s) {
2378
2367
  switch (n) {
@@ -2386,7 +2375,7 @@ function Li(n, t, e, s) {
2386
2375
  return t ^ e ^ s;
2387
2376
  }
2388
2377
  }
2389
- function me(n, t) {
2378
+ function pe(n, t) {
2390
2379
  return n << t | n >>> 32 - t;
2391
2380
  }
2392
2381
  function Fi(n) {
@@ -2411,11 +2400,11 @@ function Fi(n) {
2411
2400
  for (let _ = 0; _ < 16; ++_)
2412
2401
  l[_] = i[u][_];
2413
2402
  for (let _ = 16; _ < 80; ++_)
2414
- l[_] = me(l[_ - 3] ^ l[_ - 8] ^ l[_ - 14] ^ l[_ - 16], 1);
2403
+ l[_] = pe(l[_ - 3] ^ l[_ - 8] ^ l[_ - 14] ^ l[_ - 16], 1);
2415
2404
  let p = e[0], w = e[1], v = e[2], E = e[3], T = e[4];
2416
2405
  for (let _ = 0; _ < 80; ++_) {
2417
- const k = Math.floor(_ / 20), g = me(p, 5) + Li(k, w, v, E) + T + t[k] + l[_] >>> 0;
2418
- T = E, E = v, v = me(w, 30) >>> 0, w = p, p = g;
2406
+ const k = Math.floor(_ / 20), g = pe(p, 5) + Li(k, w, v, E) + T + t[k] + l[_] >>> 0;
2407
+ T = E, E = v, v = pe(w, 30) >>> 0, w = p, p = g;
2419
2408
  }
2420
2409
  e[0] = e[0] + p >>> 0, e[1] = e[1] + w >>> 0, e[2] = e[2] + v >>> 0, e[3] = e[3] + E >>> 0, e[4] = e[4] + T >>> 0;
2421
2410
  }
@@ -2426,7 +2415,7 @@ const Mi = Bi("v5", 80, Fi), ke = {
2426
2415
  "qcy-e": "https://dev.qaecy.com/enum#"
2427
2416
  }, ji = {
2428
2417
  xsd: "http://www.w3.org/2001/XMLSchema#"
2429
- }, Ze = {
2418
+ }, Ge = {
2430
2419
  ä: "ae",
2431
2420
  ä: "ae",
2432
2421
  Ä: "AE",
@@ -2460,129 +2449,129 @@ const Mi = Bi("v5", 80, Fi), ke = {
2460
2449
  þ: "th",
2461
2450
  Þ: "Th"
2462
2451
  };
2463
- function In(n, t = !1) {
2452
+ function An(n, t = !1) {
2464
2453
  const e = "daca0510-72b5-48ba-9091-b918ca18136b";
2465
2454
  return n = $i(n, t), Mi(n, e);
2466
2455
  }
2467
2456
  function $i(n, t = !1) {
2468
2457
  let e = n;
2469
- for (const s in Ze)
2470
- e = e.replace(new RegExp(s, "g"), Ze[s]);
2458
+ for (const s in Ge)
2459
+ e = e.replace(new RegExp(s, "g"), Ge[s]);
2471
2460
  return t && e !== n && console.info(`${n} -> ${e}`), e;
2472
2461
  }
2473
- function Rn(n, t = "") {
2474
- return In(`${t}${n}`);
2462
+ function Tn(n, t = "") {
2463
+ return An(`${t}${n}`);
2475
2464
  }
2476
- const Sn = (n) => {
2465
+ const In = (n) => {
2477
2466
  var u;
2478
2467
  n.startsWith("/") && (n = n.slice(1));
2479
2468
  const t = n.split("/"), e = t[0], s = t.pop() ?? "", r = `.${(u = s.split(".").pop()) == null ? void 0 : u.toLowerCase()}`, i = s.replace(/\.[^.]+$/, "");
2480
2469
  return { projectId: e, documentUUID: i, suffix: r };
2481
2470
  };
2482
- var ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, _e = { exports: {} }, Ve;
2471
+ var ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, me = { exports: {} }, We;
2483
2472
  function qi() {
2484
- return Ve || (Ve = 1, (function(n, t) {
2473
+ return We || (We = 1, (function(n, t) {
2485
2474
  (function(e) {
2486
2475
  n.exports = e();
2487
2476
  })(function(e) {
2488
2477
  var s = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"];
2489
- function r(h, f) {
2490
- var a = h[0], c = h[1], m = h[2], b = h[3];
2491
- a += (c & m | ~c & b) + f[0] - 680876936 | 0, a = (a << 7 | a >>> 25) + c | 0, b += (a & c | ~a & m) + f[1] - 389564586 | 0, b = (b << 12 | b >>> 20) + a | 0, m += (b & a | ~b & c) + f[2] + 606105819 | 0, m = (m << 17 | m >>> 15) + b | 0, c += (m & b | ~m & a) + f[3] - 1044525330 | 0, c = (c << 22 | c >>> 10) + m | 0, a += (c & m | ~c & b) + f[4] - 176418897 | 0, a = (a << 7 | a >>> 25) + c | 0, b += (a & c | ~a & m) + f[5] + 1200080426 | 0, b = (b << 12 | b >>> 20) + a | 0, m += (b & a | ~b & c) + f[6] - 1473231341 | 0, m = (m << 17 | m >>> 15) + b | 0, c += (m & b | ~m & a) + f[7] - 45705983 | 0, c = (c << 22 | c >>> 10) + m | 0, a += (c & m | ~c & b) + f[8] + 1770035416 | 0, a = (a << 7 | a >>> 25) + c | 0, b += (a & c | ~a & m) + f[9] - 1958414417 | 0, b = (b << 12 | b >>> 20) + a | 0, m += (b & a | ~b & c) + f[10] - 42063 | 0, m = (m << 17 | m >>> 15) + b | 0, c += (m & b | ~m & a) + f[11] - 1990404162 | 0, c = (c << 22 | c >>> 10) + m | 0, a += (c & m | ~c & b) + f[12] + 1804603682 | 0, a = (a << 7 | a >>> 25) + c | 0, b += (a & c | ~a & m) + f[13] - 40341101 | 0, b = (b << 12 | b >>> 20) + a | 0, m += (b & a | ~b & c) + f[14] - 1502002290 | 0, m = (m << 17 | m >>> 15) + b | 0, c += (m & b | ~m & a) + f[15] + 1236535329 | 0, c = (c << 22 | c >>> 10) + m | 0, a += (c & b | m & ~b) + f[1] - 165796510 | 0, a = (a << 5 | a >>> 27) + c | 0, b += (a & m | c & ~m) + f[6] - 1069501632 | 0, b = (b << 9 | b >>> 23) + a | 0, m += (b & c | a & ~c) + f[11] + 643717713 | 0, m = (m << 14 | m >>> 18) + b | 0, c += (m & a | b & ~a) + f[0] - 373897302 | 0, c = (c << 20 | c >>> 12) + m | 0, a += (c & b | m & ~b) + f[5] - 701558691 | 0, a = (a << 5 | a >>> 27) + c | 0, b += (a & m | c & ~m) + f[10] + 38016083 | 0, b = (b << 9 | b >>> 23) + a | 0, m += (b & c | a & ~c) + f[15] - 660478335 | 0, m = (m << 14 | m >>> 18) + b | 0, c += (m & a | b & ~a) + f[4] - 405537848 | 0, c = (c << 20 | c >>> 12) + m | 0, a += (c & b | m & ~b) + f[9] + 568446438 | 0, a = (a << 5 | a >>> 27) + c | 0, b += (a & m | c & ~m) + f[14] - 1019803690 | 0, b = (b << 9 | b >>> 23) + a | 0, m += (b & c | a & ~c) + f[3] - 187363961 | 0, m = (m << 14 | m >>> 18) + b | 0, c += (m & a | b & ~a) + f[8] + 1163531501 | 0, c = (c << 20 | c >>> 12) + m | 0, a += (c & b | m & ~b) + f[13] - 1444681467 | 0, a = (a << 5 | a >>> 27) + c | 0, b += (a & m | c & ~m) + f[2] - 51403784 | 0, b = (b << 9 | b >>> 23) + a | 0, m += (b & c | a & ~c) + f[7] + 1735328473 | 0, m = (m << 14 | m >>> 18) + b | 0, c += (m & a | b & ~a) + f[12] - 1926607734 | 0, c = (c << 20 | c >>> 12) + m | 0, a += (c ^ m ^ b) + f[5] - 378558 | 0, a = (a << 4 | a >>> 28) + c | 0, b += (a ^ c ^ m) + f[8] - 2022574463 | 0, b = (b << 11 | b >>> 21) + a | 0, m += (b ^ a ^ c) + f[11] + 1839030562 | 0, m = (m << 16 | m >>> 16) + b | 0, c += (m ^ b ^ a) + f[14] - 35309556 | 0, c = (c << 23 | c >>> 9) + m | 0, a += (c ^ m ^ b) + f[1] - 1530992060 | 0, a = (a << 4 | a >>> 28) + c | 0, b += (a ^ c ^ m) + f[4] + 1272893353 | 0, b = (b << 11 | b >>> 21) + a | 0, m += (b ^ a ^ c) + f[7] - 155497632 | 0, m = (m << 16 | m >>> 16) + b | 0, c += (m ^ b ^ a) + f[10] - 1094730640 | 0, c = (c << 23 | c >>> 9) + m | 0, a += (c ^ m ^ b) + f[13] + 681279174 | 0, a = (a << 4 | a >>> 28) + c | 0, b += (a ^ c ^ m) + f[0] - 358537222 | 0, b = (b << 11 | b >>> 21) + a | 0, m += (b ^ a ^ c) + f[3] - 722521979 | 0, m = (m << 16 | m >>> 16) + b | 0, c += (m ^ b ^ a) + f[6] + 76029189 | 0, c = (c << 23 | c >>> 9) + m | 0, a += (c ^ m ^ b) + f[9] - 640364487 | 0, a = (a << 4 | a >>> 28) + c | 0, b += (a ^ c ^ m) + f[12] - 421815835 | 0, b = (b << 11 | b >>> 21) + a | 0, m += (b ^ a ^ c) + f[15] + 530742520 | 0, m = (m << 16 | m >>> 16) + b | 0, c += (m ^ b ^ a) + f[2] - 995338651 | 0, c = (c << 23 | c >>> 9) + m | 0, a += (m ^ (c | ~b)) + f[0] - 198630844 | 0, a = (a << 6 | a >>> 26) + c | 0, b += (c ^ (a | ~m)) + f[7] + 1126891415 | 0, b = (b << 10 | b >>> 22) + a | 0, m += (a ^ (b | ~c)) + f[14] - 1416354905 | 0, m = (m << 15 | m >>> 17) + b | 0, c += (b ^ (m | ~a)) + f[5] - 57434055 | 0, c = (c << 21 | c >>> 11) + m | 0, a += (m ^ (c | ~b)) + f[12] + 1700485571 | 0, a = (a << 6 | a >>> 26) + c | 0, b += (c ^ (a | ~m)) + f[3] - 1894986606 | 0, b = (b << 10 | b >>> 22) + a | 0, m += (a ^ (b | ~c)) + f[10] - 1051523 | 0, m = (m << 15 | m >>> 17) + b | 0, c += (b ^ (m | ~a)) + f[1] - 2054922799 | 0, c = (c << 21 | c >>> 11) + m | 0, a += (m ^ (c | ~b)) + f[8] + 1873313359 | 0, a = (a << 6 | a >>> 26) + c | 0, b += (c ^ (a | ~m)) + f[15] - 30611744 | 0, b = (b << 10 | b >>> 22) + a | 0, m += (a ^ (b | ~c)) + f[6] - 1560198380 | 0, m = (m << 15 | m >>> 17) + b | 0, c += (b ^ (m | ~a)) + f[13] + 1309151649 | 0, c = (c << 21 | c >>> 11) + m | 0, a += (m ^ (c | ~b)) + f[4] - 145523070 | 0, a = (a << 6 | a >>> 26) + c | 0, b += (c ^ (a | ~m)) + f[11] - 1120210379 | 0, b = (b << 10 | b >>> 22) + a | 0, m += (a ^ (b | ~c)) + f[2] + 718787259 | 0, m = (m << 15 | m >>> 17) + b | 0, c += (b ^ (m | ~a)) + f[9] - 343485551 | 0, c = (c << 21 | c >>> 11) + m | 0, h[0] = a + h[0] | 0, h[1] = c + h[1] | 0, h[2] = m + h[2] | 0, h[3] = b + h[3] | 0;
2478
+ function r(f, h) {
2479
+ var a = f[0], c = f[1], m = f[2], b = f[3];
2480
+ a += (c & m | ~c & b) + h[0] - 680876936 | 0, a = (a << 7 | a >>> 25) + c | 0, b += (a & c | ~a & m) + h[1] - 389564586 | 0, b = (b << 12 | b >>> 20) + a | 0, m += (b & a | ~b & c) + h[2] + 606105819 | 0, m = (m << 17 | m >>> 15) + b | 0, c += (m & b | ~m & a) + h[3] - 1044525330 | 0, c = (c << 22 | c >>> 10) + m | 0, a += (c & m | ~c & b) + h[4] - 176418897 | 0, a = (a << 7 | a >>> 25) + c | 0, b += (a & c | ~a & m) + h[5] + 1200080426 | 0, b = (b << 12 | b >>> 20) + a | 0, m += (b & a | ~b & c) + h[6] - 1473231341 | 0, m = (m << 17 | m >>> 15) + b | 0, c += (m & b | ~m & a) + h[7] - 45705983 | 0, c = (c << 22 | c >>> 10) + m | 0, a += (c & m | ~c & b) + h[8] + 1770035416 | 0, a = (a << 7 | a >>> 25) + c | 0, b += (a & c | ~a & m) + h[9] - 1958414417 | 0, b = (b << 12 | b >>> 20) + a | 0, m += (b & a | ~b & c) + h[10] - 42063 | 0, m = (m << 17 | m >>> 15) + b | 0, c += (m & b | ~m & a) + h[11] - 1990404162 | 0, c = (c << 22 | c >>> 10) + m | 0, a += (c & m | ~c & b) + h[12] + 1804603682 | 0, a = (a << 7 | a >>> 25) + c | 0, b += (a & c | ~a & m) + h[13] - 40341101 | 0, b = (b << 12 | b >>> 20) + a | 0, m += (b & a | ~b & c) + h[14] - 1502002290 | 0, m = (m << 17 | m >>> 15) + b | 0, c += (m & b | ~m & a) + h[15] + 1236535329 | 0, c = (c << 22 | c >>> 10) + m | 0, a += (c & b | m & ~b) + h[1] - 165796510 | 0, a = (a << 5 | a >>> 27) + c | 0, b += (a & m | c & ~m) + h[6] - 1069501632 | 0, b = (b << 9 | b >>> 23) + a | 0, m += (b & c | a & ~c) + h[11] + 643717713 | 0, m = (m << 14 | m >>> 18) + b | 0, c += (m & a | b & ~a) + h[0] - 373897302 | 0, c = (c << 20 | c >>> 12) + m | 0, a += (c & b | m & ~b) + h[5] - 701558691 | 0, a = (a << 5 | a >>> 27) + c | 0, b += (a & m | c & ~m) + h[10] + 38016083 | 0, b = (b << 9 | b >>> 23) + a | 0, m += (b & c | a & ~c) + h[15] - 660478335 | 0, m = (m << 14 | m >>> 18) + b | 0, c += (m & a | b & ~a) + h[4] - 405537848 | 0, c = (c << 20 | c >>> 12) + m | 0, a += (c & b | m & ~b) + h[9] + 568446438 | 0, a = (a << 5 | a >>> 27) + c | 0, b += (a & m | c & ~m) + h[14] - 1019803690 | 0, b = (b << 9 | b >>> 23) + a | 0, m += (b & c | a & ~c) + h[3] - 187363961 | 0, m = (m << 14 | m >>> 18) + b | 0, c += (m & a | b & ~a) + h[8] + 1163531501 | 0, c = (c << 20 | c >>> 12) + m | 0, a += (c & b | m & ~b) + h[13] - 1444681467 | 0, a = (a << 5 | a >>> 27) + c | 0, b += (a & m | c & ~m) + h[2] - 51403784 | 0, b = (b << 9 | b >>> 23) + a | 0, m += (b & c | a & ~c) + h[7] + 1735328473 | 0, m = (m << 14 | m >>> 18) + b | 0, c += (m & a | b & ~a) + h[12] - 1926607734 | 0, c = (c << 20 | c >>> 12) + m | 0, a += (c ^ m ^ b) + h[5] - 378558 | 0, a = (a << 4 | a >>> 28) + c | 0, b += (a ^ c ^ m) + h[8] - 2022574463 | 0, b = (b << 11 | b >>> 21) + a | 0, m += (b ^ a ^ c) + h[11] + 1839030562 | 0, m = (m << 16 | m >>> 16) + b | 0, c += (m ^ b ^ a) + h[14] - 35309556 | 0, c = (c << 23 | c >>> 9) + m | 0, a += (c ^ m ^ b) + h[1] - 1530992060 | 0, a = (a << 4 | a >>> 28) + c | 0, b += (a ^ c ^ m) + h[4] + 1272893353 | 0, b = (b << 11 | b >>> 21) + a | 0, m += (b ^ a ^ c) + h[7] - 155497632 | 0, m = (m << 16 | m >>> 16) + b | 0, c += (m ^ b ^ a) + h[10] - 1094730640 | 0, c = (c << 23 | c >>> 9) + m | 0, a += (c ^ m ^ b) + h[13] + 681279174 | 0, a = (a << 4 | a >>> 28) + c | 0, b += (a ^ c ^ m) + h[0] - 358537222 | 0, b = (b << 11 | b >>> 21) + a | 0, m += (b ^ a ^ c) + h[3] - 722521979 | 0, m = (m << 16 | m >>> 16) + b | 0, c += (m ^ b ^ a) + h[6] + 76029189 | 0, c = (c << 23 | c >>> 9) + m | 0, a += (c ^ m ^ b) + h[9] - 640364487 | 0, a = (a << 4 | a >>> 28) + c | 0, b += (a ^ c ^ m) + h[12] - 421815835 | 0, b = (b << 11 | b >>> 21) + a | 0, m += (b ^ a ^ c) + h[15] + 530742520 | 0, m = (m << 16 | m >>> 16) + b | 0, c += (m ^ b ^ a) + h[2] - 995338651 | 0, c = (c << 23 | c >>> 9) + m | 0, a += (m ^ (c | ~b)) + h[0] - 198630844 | 0, a = (a << 6 | a >>> 26) + c | 0, b += (c ^ (a | ~m)) + h[7] + 1126891415 | 0, b = (b << 10 | b >>> 22) + a | 0, m += (a ^ (b | ~c)) + h[14] - 1416354905 | 0, m = (m << 15 | m >>> 17) + b | 0, c += (b ^ (m | ~a)) + h[5] - 57434055 | 0, c = (c << 21 | c >>> 11) + m | 0, a += (m ^ (c | ~b)) + h[12] + 1700485571 | 0, a = (a << 6 | a >>> 26) + c | 0, b += (c ^ (a | ~m)) + h[3] - 1894986606 | 0, b = (b << 10 | b >>> 22) + a | 0, m += (a ^ (b | ~c)) + h[10] - 1051523 | 0, m = (m << 15 | m >>> 17) + b | 0, c += (b ^ (m | ~a)) + h[1] - 2054922799 | 0, c = (c << 21 | c >>> 11) + m | 0, a += (m ^ (c | ~b)) + h[8] + 1873313359 | 0, a = (a << 6 | a >>> 26) + c | 0, b += (c ^ (a | ~m)) + h[15] - 30611744 | 0, b = (b << 10 | b >>> 22) + a | 0, m += (a ^ (b | ~c)) + h[6] - 1560198380 | 0, m = (m << 15 | m >>> 17) + b | 0, c += (b ^ (m | ~a)) + h[13] + 1309151649 | 0, c = (c << 21 | c >>> 11) + m | 0, a += (m ^ (c | ~b)) + h[4] - 145523070 | 0, a = (a << 6 | a >>> 26) + c | 0, b += (c ^ (a | ~m)) + h[11] - 1120210379 | 0, b = (b << 10 | b >>> 22) + a | 0, m += (a ^ (b | ~c)) + h[2] + 718787259 | 0, m = (m << 15 | m >>> 17) + b | 0, c += (b ^ (m | ~a)) + h[9] - 343485551 | 0, c = (c << 21 | c >>> 11) + m | 0, f[0] = a + f[0] | 0, f[1] = c + f[1] | 0, f[2] = m + f[2] | 0, f[3] = b + f[3] | 0;
2492
2481
  }
2493
- function i(h) {
2494
- var f = [], a;
2482
+ function i(f) {
2483
+ var h = [], a;
2495
2484
  for (a = 0; a < 64; a += 4)
2496
- f[a >> 2] = h.charCodeAt(a) + (h.charCodeAt(a + 1) << 8) + (h.charCodeAt(a + 2) << 16) + (h.charCodeAt(a + 3) << 24);
2497
- return f;
2485
+ h[a >> 2] = f.charCodeAt(a) + (f.charCodeAt(a + 1) << 8) + (f.charCodeAt(a + 2) << 16) + (f.charCodeAt(a + 3) << 24);
2486
+ return h;
2498
2487
  }
2499
- function u(h) {
2500
- var f = [], a;
2488
+ function u(f) {
2489
+ var h = [], a;
2501
2490
  for (a = 0; a < 64; a += 4)
2502
- f[a >> 2] = h[a] + (h[a + 1] << 8) + (h[a + 2] << 16) + (h[a + 3] << 24);
2503
- return f;
2491
+ h[a >> 2] = f[a] + (f[a + 1] << 8) + (f[a + 2] << 16) + (f[a + 3] << 24);
2492
+ return h;
2504
2493
  }
2505
- function l(h) {
2506
- var f = h.length, a = [1732584193, -271733879, -1732584194, 271733878], c, m, b, O, F, D;
2507
- for (c = 64; c <= f; c += 64)
2508
- r(a, i(h.substring(c - 64, c)));
2509
- for (h = h.substring(c - 64), m = h.length, b = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], c = 0; c < m; c += 1)
2510
- b[c >> 2] |= h.charCodeAt(c) << (c % 4 << 3);
2494
+ function l(f) {
2495
+ var h = f.length, a = [1732584193, -271733879, -1732584194, 271733878], c, m, b, O, F, D;
2496
+ for (c = 64; c <= h; c += 64)
2497
+ r(a, i(f.substring(c - 64, c)));
2498
+ for (f = f.substring(c - 64), m = f.length, b = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], c = 0; c < m; c += 1)
2499
+ b[c >> 2] |= f.charCodeAt(c) << (c % 4 << 3);
2511
2500
  if (b[c >> 2] |= 128 << (c % 4 << 3), c > 55)
2512
2501
  for (r(a, b), c = 0; c < 16; c += 1)
2513
2502
  b[c] = 0;
2514
- return O = f * 8, O = O.toString(16).match(/(.*?)(.{0,8})$/), F = parseInt(O[2], 16), D = parseInt(O[1], 16) || 0, b[14] = F, b[15] = D, r(a, b), a;
2503
+ return O = h * 8, O = O.toString(16).match(/(.*?)(.{0,8})$/), F = parseInt(O[2], 16), D = parseInt(O[1], 16) || 0, b[14] = F, b[15] = D, r(a, b), a;
2515
2504
  }
2516
- function p(h) {
2517
- var f = h.length, a = [1732584193, -271733879, -1732584194, 271733878], c, m, b, O, F, D;
2518
- for (c = 64; c <= f; c += 64)
2519
- r(a, u(h.subarray(c - 64, c)));
2520
- for (h = c - 64 < f ? h.subarray(c - 64) : new Uint8Array(0), m = h.length, b = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], c = 0; c < m; c += 1)
2521
- b[c >> 2] |= h[c] << (c % 4 << 3);
2505
+ function p(f) {
2506
+ var h = f.length, a = [1732584193, -271733879, -1732584194, 271733878], c, m, b, O, F, D;
2507
+ for (c = 64; c <= h; c += 64)
2508
+ r(a, u(f.subarray(c - 64, c)));
2509
+ for (f = c - 64 < h ? f.subarray(c - 64) : new Uint8Array(0), m = f.length, b = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], c = 0; c < m; c += 1)
2510
+ b[c >> 2] |= f[c] << (c % 4 << 3);
2522
2511
  if (b[c >> 2] |= 128 << (c % 4 << 3), c > 55)
2523
2512
  for (r(a, b), c = 0; c < 16; c += 1)
2524
2513
  b[c] = 0;
2525
- return O = f * 8, O = O.toString(16).match(/(.*?)(.{0,8})$/), F = parseInt(O[2], 16), D = parseInt(O[1], 16) || 0, b[14] = F, b[15] = D, r(a, b), a;
2514
+ return O = h * 8, O = O.toString(16).match(/(.*?)(.{0,8})$/), F = parseInt(O[2], 16), D = parseInt(O[1], 16) || 0, b[14] = F, b[15] = D, r(a, b), a;
2526
2515
  }
2527
- function w(h) {
2528
- var f = "", a;
2516
+ function w(f) {
2517
+ var h = "", a;
2529
2518
  for (a = 0; a < 4; a += 1)
2530
- f += s[h >> a * 8 + 4 & 15] + s[h >> a * 8 & 15];
2531
- return f;
2519
+ h += s[f >> a * 8 + 4 & 15] + s[f >> a * 8 & 15];
2520
+ return h;
2532
2521
  }
2533
- function v(h) {
2534
- var f;
2535
- for (f = 0; f < h.length; f += 1)
2536
- h[f] = w(h[f]);
2537
- return h.join("");
2522
+ function v(f) {
2523
+ var h;
2524
+ for (h = 0; h < f.length; h += 1)
2525
+ f[h] = w(f[h]);
2526
+ return f.join("");
2538
2527
  }
2539
2528
  v(l("hello")), typeof ArrayBuffer < "u" && !ArrayBuffer.prototype.slice && (function() {
2540
- function h(f, a) {
2541
- return f = f | 0 || 0, f < 0 ? Math.max(f + a, 0) : Math.min(f, a);
2529
+ function f(h, a) {
2530
+ return h = h | 0 || 0, h < 0 ? Math.max(h + a, 0) : Math.min(h, a);
2542
2531
  }
2543
- ArrayBuffer.prototype.slice = function(f, a) {
2544
- var c = this.byteLength, m = h(f, c), b = c, O, F, D, H;
2545
- return a !== e && (b = h(a, c)), m > b ? new ArrayBuffer(0) : (O = b - m, F = new ArrayBuffer(O), D = new Uint8Array(F), H = new Uint8Array(this, m, O), D.set(H), F);
2532
+ ArrayBuffer.prototype.slice = function(h, a) {
2533
+ var c = this.byteLength, m = f(h, c), b = c, O, F, D, H;
2534
+ return a !== e && (b = f(a, c)), m > b ? new ArrayBuffer(0) : (O = b - m, F = new ArrayBuffer(O), D = new Uint8Array(F), H = new Uint8Array(this, m, O), D.set(H), F);
2546
2535
  };
2547
2536
  })();
2548
- function E(h) {
2549
- return /[\u0080-\uFFFF]/.test(h) && (h = unescape(encodeURIComponent(h))), h;
2537
+ function E(f) {
2538
+ return /[\u0080-\uFFFF]/.test(f) && (f = unescape(encodeURIComponent(f))), f;
2550
2539
  }
2551
- function T(h, f) {
2552
- var a = h.length, c = new ArrayBuffer(a), m = new Uint8Array(c), b;
2540
+ function T(f, h) {
2541
+ var a = f.length, c = new ArrayBuffer(a), m = new Uint8Array(c), b;
2553
2542
  for (b = 0; b < a; b += 1)
2554
- m[b] = h.charCodeAt(b);
2555
- return f ? m : c;
2543
+ m[b] = f.charCodeAt(b);
2544
+ return h ? m : c;
2556
2545
  }
2557
- function _(h) {
2558
- return String.fromCharCode.apply(null, new Uint8Array(h));
2546
+ function _(f) {
2547
+ return String.fromCharCode.apply(null, new Uint8Array(f));
2559
2548
  }
2560
- function k(h, f, a) {
2561
- var c = new Uint8Array(h.byteLength + f.byteLength);
2562
- return c.set(new Uint8Array(h)), c.set(new Uint8Array(f), h.byteLength), c;
2549
+ function k(f, h, a) {
2550
+ var c = new Uint8Array(f.byteLength + h.byteLength);
2551
+ return c.set(new Uint8Array(f)), c.set(new Uint8Array(h), f.byteLength), c;
2563
2552
  }
2564
- function g(h) {
2565
- var f = [], a = h.length, c;
2553
+ function g(f) {
2554
+ var h = [], a = f.length, c;
2566
2555
  for (c = 0; c < a - 1; c += 2)
2567
- f.push(parseInt(h.substr(c, 2), 16));
2568
- return String.fromCharCode.apply(String, f);
2556
+ h.push(parseInt(f.substr(c, 2), 16));
2557
+ return String.fromCharCode.apply(String, h);
2569
2558
  }
2570
2559
  function y() {
2571
2560
  this.reset();
2572
2561
  }
2573
- return y.prototype.append = function(h) {
2574
- return this.appendBinary(E(h)), this;
2575
- }, y.prototype.appendBinary = function(h) {
2576
- this._buff += h, this._length += h.length;
2577
- var f = this._buff.length, a;
2578
- for (a = 64; a <= f; a += 64)
2562
+ return y.prototype.append = function(f) {
2563
+ return this.appendBinary(E(f)), this;
2564
+ }, y.prototype.appendBinary = function(f) {
2565
+ this._buff += f, this._length += f.length;
2566
+ var h = this._buff.length, a;
2567
+ for (a = 64; a <= h; a += 64)
2579
2568
  r(this._hash, i(this._buff.substring(a - 64, a)));
2580
2569
  return this._buff = this._buff.substring(a - 64), this;
2581
- }, y.prototype.end = function(h) {
2582
- var f = this._buff, a = f.length, c, m = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], b;
2570
+ }, y.prototype.end = function(f) {
2571
+ var h = this._buff, a = h.length, c, m = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], b;
2583
2572
  for (c = 0; c < a; c += 1)
2584
- m[c >> 2] |= f.charCodeAt(c) << (c % 4 << 3);
2585
- return this._finish(m, a), b = v(this._hash), h && (b = g(b)), this.reset(), b;
2573
+ m[c >> 2] |= h.charCodeAt(c) << (c % 4 << 3);
2574
+ return this._finish(m, a), b = v(this._hash), f && (b = g(b)), this.reset(), b;
2586
2575
  }, y.prototype.reset = function() {
2587
2576
  return this._buff = "", this._length = 0, this._hash = [1732584193, -271733879, -1732584194, 271733878], this;
2588
2577
  }, y.prototype.getState = function() {
@@ -2591,52 +2580,52 @@ function qi() {
2591
2580
  length: this._length,
2592
2581
  hash: this._hash.slice()
2593
2582
  };
2594
- }, y.prototype.setState = function(h) {
2595
- return this._buff = h.buff, this._length = h.length, this._hash = h.hash, this;
2583
+ }, y.prototype.setState = function(f) {
2584
+ return this._buff = f.buff, this._length = f.length, this._hash = f.hash, this;
2596
2585
  }, y.prototype.destroy = function() {
2597
2586
  delete this._hash, delete this._buff, delete this._length;
2598
- }, y.prototype._finish = function(h, f) {
2599
- var a = f, c, m, b;
2600
- if (h[a >> 2] |= 128 << (a % 4 << 3), a > 55)
2601
- for (r(this._hash, h), a = 0; a < 16; a += 1)
2602
- h[a] = 0;
2603
- c = this._length * 8, c = c.toString(16).match(/(.*?)(.{0,8})$/), m = parseInt(c[2], 16), b = parseInt(c[1], 16) || 0, h[14] = m, h[15] = b, r(this._hash, h);
2604
- }, y.hash = function(h, f) {
2605
- return y.hashBinary(E(h), f);
2606
- }, y.hashBinary = function(h, f) {
2607
- var a = l(h), c = v(a);
2608
- return f ? g(c) : c;
2587
+ }, y.prototype._finish = function(f, h) {
2588
+ var a = h, c, m, b;
2589
+ if (f[a >> 2] |= 128 << (a % 4 << 3), a > 55)
2590
+ for (r(this._hash, f), a = 0; a < 16; a += 1)
2591
+ f[a] = 0;
2592
+ c = this._length * 8, c = c.toString(16).match(/(.*?)(.{0,8})$/), m = parseInt(c[2], 16), b = parseInt(c[1], 16) || 0, f[14] = m, f[15] = b, r(this._hash, f);
2593
+ }, y.hash = function(f, h) {
2594
+ return y.hashBinary(E(f), h);
2595
+ }, y.hashBinary = function(f, h) {
2596
+ var a = l(f), c = v(a);
2597
+ return h ? g(c) : c;
2609
2598
  }, y.ArrayBuffer = function() {
2610
2599
  this.reset();
2611
- }, y.ArrayBuffer.prototype.append = function(h) {
2612
- var f = k(this._buff.buffer, h), a = f.length, c;
2613
- for (this._length += h.byteLength, c = 64; c <= a; c += 64)
2614
- r(this._hash, u(f.subarray(c - 64, c)));
2615
- return this._buff = c - 64 < a ? new Uint8Array(f.buffer.slice(c - 64)) : new Uint8Array(0), this;
2616
- }, y.ArrayBuffer.prototype.end = function(h) {
2617
- var f = this._buff, a = f.length, c = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], m, b;
2600
+ }, y.ArrayBuffer.prototype.append = function(f) {
2601
+ var h = k(this._buff.buffer, f), a = h.length, c;
2602
+ for (this._length += f.byteLength, c = 64; c <= a; c += 64)
2603
+ r(this._hash, u(h.subarray(c - 64, c)));
2604
+ return this._buff = c - 64 < a ? new Uint8Array(h.buffer.slice(c - 64)) : new Uint8Array(0), this;
2605
+ }, y.ArrayBuffer.prototype.end = function(f) {
2606
+ var h = this._buff, a = h.length, c = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], m, b;
2618
2607
  for (m = 0; m < a; m += 1)
2619
- c[m >> 2] |= f[m] << (m % 4 << 3);
2620
- return this._finish(c, a), b = v(this._hash), h && (b = g(b)), this.reset(), b;
2608
+ c[m >> 2] |= h[m] << (m % 4 << 3);
2609
+ return this._finish(c, a), b = v(this._hash), f && (b = g(b)), this.reset(), b;
2621
2610
  }, y.ArrayBuffer.prototype.reset = function() {
2622
2611
  return this._buff = new Uint8Array(0), this._length = 0, this._hash = [1732584193, -271733879, -1732584194, 271733878], this;
2623
2612
  }, y.ArrayBuffer.prototype.getState = function() {
2624
- var h = y.prototype.getState.call(this);
2625
- return h.buff = _(h.buff), h;
2626
- }, y.ArrayBuffer.prototype.setState = function(h) {
2627
- return h.buff = T(h.buff, !0), y.prototype.setState.call(this, h);
2628
- }, y.ArrayBuffer.prototype.destroy = y.prototype.destroy, y.ArrayBuffer.prototype._finish = y.prototype._finish, y.ArrayBuffer.hash = function(h, f) {
2629
- var a = p(new Uint8Array(h)), c = v(a);
2630
- return f ? g(c) : c;
2613
+ var f = y.prototype.getState.call(this);
2614
+ return f.buff = _(f.buff), f;
2615
+ }, y.ArrayBuffer.prototype.setState = function(f) {
2616
+ return f.buff = T(f.buff, !0), y.prototype.setState.call(this, f);
2617
+ }, y.ArrayBuffer.prototype.destroy = y.prototype.destroy, y.ArrayBuffer.prototype._finish = y.prototype._finish, y.ArrayBuffer.hash = function(f, h) {
2618
+ var a = p(new Uint8Array(f)), c = v(a);
2619
+ return h ? g(c) : c;
2631
2620
  }, y;
2632
2621
  });
2633
- })(_e)), _e.exports;
2622
+ })(me)), me.exports;
2634
2623
  }
2635
2624
  qi();
2636
2625
  function ne(n) {
2637
2626
  throw new Error('Could not dynamically require "' + n + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
2638
2627
  }
2639
- var ge = { exports: {} };
2628
+ var _e = { exports: {} };
2640
2629
  /*!
2641
2630
 
2642
2631
  JSZip v3.10.1 - A JavaScript class for generating and reading zip files
@@ -2648,9 +2637,9 @@ Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/js
2648
2637
  JSZip uses the library pako released under the MIT license :
2649
2638
  https://github.com/nodeca/pako/blob/main/LICENSE
2650
2639
  */
2651
- var Ke;
2640
+ var Ze;
2652
2641
  function Hi() {
2653
- return Ke || (Ke = 1, (function(n, t) {
2642
+ return Ze || (Ze = 1, (function(n, t) {
2654
2643
  (function(e) {
2655
2644
  n.exports = e();
2656
2645
  })(function() {
@@ -2677,15 +2666,15 @@ function Hi() {
2677
2666
  })({ 1: [function(e, s, r) {
2678
2667
  var i = e("./utils"), u = e("./support"), l = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
2679
2668
  r.encode = function(p) {
2680
- for (var w, v, E, T, _, k, g, y = [], h = 0, f = p.length, a = f, c = i.getTypeOf(p) !== "string"; h < p.length; ) a = f - h, E = c ? (w = p[h++], v = h < f ? p[h++] : 0, h < f ? p[h++] : 0) : (w = p.charCodeAt(h++), v = h < f ? p.charCodeAt(h++) : 0, h < f ? p.charCodeAt(h++) : 0), T = w >> 2, _ = (3 & w) << 4 | v >> 4, k = 1 < a ? (15 & v) << 2 | E >> 6 : 64, g = 2 < a ? 63 & E : 64, y.push(l.charAt(T) + l.charAt(_) + l.charAt(k) + l.charAt(g));
2669
+ for (var w, v, E, T, _, k, g, y = [], f = 0, h = p.length, a = h, c = i.getTypeOf(p) !== "string"; f < p.length; ) a = h - f, E = c ? (w = p[f++], v = f < h ? p[f++] : 0, f < h ? p[f++] : 0) : (w = p.charCodeAt(f++), v = f < h ? p.charCodeAt(f++) : 0, f < h ? p.charCodeAt(f++) : 0), T = w >> 2, _ = (3 & w) << 4 | v >> 4, k = 1 < a ? (15 & v) << 2 | E >> 6 : 64, g = 2 < a ? 63 & E : 64, y.push(l.charAt(T) + l.charAt(_) + l.charAt(k) + l.charAt(g));
2681
2670
  return y.join("");
2682
2671
  }, r.decode = function(p) {
2683
- var w, v, E, T, _, k, g = 0, y = 0, h = "data:";
2684
- if (p.substr(0, h.length) === h) throw new Error("Invalid base64 input, it looks like a data url.");
2685
- var f, a = 3 * (p = p.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
2672
+ var w, v, E, T, _, k, g = 0, y = 0, f = "data:";
2673
+ if (p.substr(0, f.length) === f) throw new Error("Invalid base64 input, it looks like a data url.");
2674
+ var h, a = 3 * (p = p.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
2686
2675
  if (p.charAt(p.length - 1) === l.charAt(64) && a--, p.charAt(p.length - 2) === l.charAt(64) && a--, a % 1 != 0) throw new Error("Invalid base64 input, bad content length.");
2687
- for (f = u.uint8array ? new Uint8Array(0 | a) : new Array(0 | a); g < p.length; ) w = l.indexOf(p.charAt(g++)) << 2 | (T = l.indexOf(p.charAt(g++))) >> 4, v = (15 & T) << 4 | (_ = l.indexOf(p.charAt(g++))) >> 2, E = (3 & _) << 6 | (k = l.indexOf(p.charAt(g++))), f[y++] = w, _ !== 64 && (f[y++] = v), k !== 64 && (f[y++] = E);
2688
- return f;
2676
+ for (h = u.uint8array ? new Uint8Array(0 | a) : new Array(0 | a); g < p.length; ) w = l.indexOf(p.charAt(g++)) << 2 | (T = l.indexOf(p.charAt(g++))) >> 4, v = (15 & T) << 4 | (_ = l.indexOf(p.charAt(g++))) >> 2, E = (3 & _) << 6 | (k = l.indexOf(p.charAt(g++))), h[y++] = w, _ !== 64 && (h[y++] = v), k !== 64 && (h[y++] = E);
2677
+ return h;
2689
2678
  };
2690
2679
  }, { "./support": 30, "./utils": 32 }], 2: [function(e, s, r) {
2691
2680
  var i = e("./external"), u = e("./stream/DataWorker"), l = e("./stream/Crc32Probe"), p = e("./stream/DataLengthProbe");
@@ -2764,18 +2753,18 @@ function Hi() {
2764
2753
  for (g = 0; g < k; g++) y += String.fromCharCode(255 & _), _ >>>= 8;
2765
2754
  return y;
2766
2755
  }
2767
- function u(_, k, g, y, h, f) {
2768
- var a, c, m = _.file, b = _.compression, O = f !== w.utf8encode, F = l.transformTo("string", f(m.name)), D = l.transformTo("string", w.utf8encode(m.name)), H = m.comment, Q = l.transformTo("string", f(H)), I = l.transformTo("string", w.utf8encode(H)), z = D.length !== m.name.length, d = I.length !== H.length, L = "", tt = "", $ = "", et = m.dir, q = m.date, J = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
2756
+ function u(_, k, g, y, f, h) {
2757
+ var a, c, m = _.file, b = _.compression, O = h !== w.utf8encode, F = l.transformTo("string", h(m.name)), D = l.transformTo("string", w.utf8encode(m.name)), H = m.comment, Q = l.transformTo("string", h(H)), I = l.transformTo("string", w.utf8encode(H)), P = D.length !== m.name.length, d = I.length !== H.length, L = "", tt = "", $ = "", et = m.dir, q = m.date, J = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
2769
2758
  k && !g || (J.crc32 = _.crc32, J.compressedSize = _.compressedSize, J.uncompressedSize = _.uncompressedSize);
2770
2759
  var N = 0;
2771
- k && (N |= 8), O || !z && !d || (N |= 2048);
2760
+ k && (N |= 8), O || !P && !d || (N |= 2048);
2772
2761
  var U = 0, Y = 0;
2773
- et && (U |= 16), h === "UNIX" ? (Y = 798, U |= (function(Z, ut) {
2762
+ et && (U |= 16), f === "UNIX" ? (Y = 798, U |= (function(Z, ot) {
2774
2763
  var pt = Z;
2775
- return Z || (pt = ut ? 16893 : 33204), (65535 & pt) << 16;
2764
+ return Z || (pt = ot ? 16893 : 33204), (65535 & pt) << 16;
2776
2765
  })(m.unixPermissions, et)) : (Y = 20, U |= (function(Z) {
2777
2766
  return 63 & (Z || 0);
2778
- })(m.dosPermissions)), a = q.getUTCHours(), a <<= 6, a |= q.getUTCMinutes(), a <<= 5, a |= q.getUTCSeconds() / 2, c = q.getUTCFullYear() - 1980, c <<= 4, c |= q.getUTCMonth() + 1, c <<= 5, c |= q.getUTCDate(), z && (tt = i(1, 1) + i(v(F), 4) + D, L += "up" + i(tt.length, 2) + tt), d && ($ = i(1, 1) + i(v(Q), 4) + I, L += "uc" + i($.length, 2) + $);
2767
+ })(m.dosPermissions)), a = q.getUTCHours(), a <<= 6, a |= q.getUTCMinutes(), a <<= 5, a |= q.getUTCSeconds() / 2, c = q.getUTCFullYear() - 1980, c <<= 4, c |= q.getUTCMonth() + 1, c <<= 5, c |= q.getUTCDate(), P && (tt = i(1, 1) + i(v(F), 4) + D, L += "up" + i(tt.length, 2) + tt), d && ($ = i(1, 1) + i(v(Q), 4) + I, L += "uc" + i($.length, 2) + $);
2779
2768
  var V = "";
2780
2769
  return V += `
2781
2770
  \0`, V += i(N, 2), V += b.magic, V += i(a, 2), V += i(c, 2), V += i(J.crc32, 4), V += i(J.compressedSize, 4), V += i(J.uncompressedSize, 4), V += i(F.length, 2), V += i(L.length, 2), { fileRecord: E.LOCAL_FILE_HEADER + V + F + L, dirRecord: E.CENTRAL_FILE_HEADER + i(Y, 2) + V + i(Q.length, 2) + "\0\0\0\0" + i(U, 4) + i(y, 4) + F + L + Q };
@@ -2804,9 +2793,9 @@ function Hi() {
2804
2793
  this.currentFile = null;
2805
2794
  }, T.prototype.flush = function() {
2806
2795
  for (var _ = this.bytesWritten, k = 0; k < this.dirRecords.length; k++) this.push({ data: this.dirRecords[k], meta: { percent: 100 } });
2807
- var g = this.bytesWritten - _, y = (function(h, f, a, c, m) {
2796
+ var g = this.bytesWritten - _, y = (function(f, h, a, c, m) {
2808
2797
  var b = l.transformTo("string", m(c));
2809
- return E.CENTRAL_DIRECTORY_END + "\0\0\0\0" + i(h, 2) + i(h, 2) + i(f, 4) + i(a, 4) + i(b.length, 2) + b;
2798
+ return E.CENTRAL_DIRECTORY_END + "\0\0\0\0" + i(f, 2) + i(f, 2) + i(h, 4) + i(a, 4) + i(b.length, 2) + b;
2810
2799
  })(this.dirRecords.length, g, _, this.zipComment, this.encodeFileName);
2811
2800
  this.push({ data: y, meta: { percent: 100 } });
2812
2801
  }, T.prototype.prepareNextSource = function() {
@@ -2842,12 +2831,12 @@ function Hi() {
2842
2831
  try {
2843
2832
  l.forEach(function(T, _) {
2844
2833
  E++;
2845
- var k = (function(f, a) {
2846
- var c = f || a, m = i[c];
2834
+ var k = (function(h, a) {
2835
+ var c = h || a, m = i[c];
2847
2836
  if (!m) throw new Error(c + " is not a valid compression method !");
2848
2837
  return m;
2849
- })(_.options.compression, p.compression), g = _.options.compressionOptions || p.compressionOptions || {}, y = _.dir, h = _.date;
2850
- _._compressWorker(k, g).withStreamInfo("file", { name: T, dir: y, date: h, comment: _.comment || "", unixPermissions: _.unixPermissions, dosPermissions: _.dosPermissions }).pipe(v);
2838
+ })(_.options.compression, p.compression), g = _.options.compressionOptions || p.compressionOptions || {}, y = _.dir, f = _.date;
2839
+ _._compressWorker(k, g).withStreamInfo("file", { name: T, dir: y, date: f, comment: _.comment || "", unixPermissions: _.unixPermissions, dosPermissions: _.dosPermissions }).pipe(v);
2851
2840
  }), v.entriesCount = E;
2852
2841
  } catch (T) {
2853
2842
  v.error(T);
@@ -2885,12 +2874,12 @@ function Hi() {
2885
2874
  var y = new p(_);
2886
2875
  return y.load(g), y;
2887
2876
  }).then(function(g) {
2888
- var y = [u.Promise.resolve(g)], h = g.files;
2889
- if (_.checkCRC32) for (var f = 0; f < h.length; f++) y.push(E(h[f]));
2877
+ var y = [u.Promise.resolve(g)], f = g.files;
2878
+ if (_.checkCRC32) for (var h = 0; h < f.length; h++) y.push(E(f[h]));
2890
2879
  return u.Promise.all(y);
2891
2880
  }).then(function(g) {
2892
- for (var y = g.shift(), h = y.files, f = 0; f < h.length; f++) {
2893
- var a = h[f], c = a.fileNameStr, m = i.resolve(a.fileNameStr);
2881
+ for (var y = g.shift(), f = y.files, h = 0; h < f.length; h++) {
2882
+ var a = f[h], c = a.fileNameStr, m = i.resolve(a.fileNameStr);
2894
2883
  k.file(m, a.decompressed, { binary: !0, optimizedBinaryString: !0, date: a.date, dir: a.dir, comment: a.fileCommentStr.length ? a.fileCommentStr : null, unixPermissions: a.unixPermissions, dosPermissions: a.dosPermissions, createFolders: _.createFolders }), a.dir || (k.file(m).unsafeOriginalName = c);
2895
2884
  }
2896
2885
  return y.zipComment.length && (k.comment = y.zipComment), k;
@@ -2948,22 +2937,22 @@ function Hi() {
2948
2937
  }, {}], 15: [function(e, s, r) {
2949
2938
  function i(m, b, O) {
2950
2939
  var F, D = l.getTypeOf(b), H = l.extend(O || {}, v);
2951
- H.date = H.date || /* @__PURE__ */ new Date(), H.compression !== null && (H.compression = H.compression.toUpperCase()), typeof H.unixPermissions == "string" && (H.unixPermissions = parseInt(H.unixPermissions, 8)), H.unixPermissions && 16384 & H.unixPermissions && (H.dir = !0), H.dosPermissions && 16 & H.dosPermissions && (H.dir = !0), H.dir && (m = h(m)), H.createFolders && (F = y(m)) && f.call(this, F, !0);
2940
+ H.date = H.date || /* @__PURE__ */ new Date(), H.compression !== null && (H.compression = H.compression.toUpperCase()), typeof H.unixPermissions == "string" && (H.unixPermissions = parseInt(H.unixPermissions, 8)), H.unixPermissions && 16384 & H.unixPermissions && (H.dir = !0), H.dosPermissions && 16 & H.dosPermissions && (H.dir = !0), H.dir && (m = f(m)), H.createFolders && (F = y(m)) && h.call(this, F, !0);
2952
2941
  var Q = D === "string" && H.binary === !1 && H.base64 === !1;
2953
2942
  O && O.binary !== void 0 || (H.binary = !Q), (b instanceof E && b.uncompressedSize === 0 || H.dir || !b || b.length === 0) && (H.base64 = !1, H.binary = !0, b = "", H.compression = "STORE", D = "string");
2954
2943
  var I = null;
2955
2944
  I = b instanceof E || b instanceof p ? b : k.isNode && k.isStream(b) ? new g(m, b) : l.prepareContent(m, b, H.binary, H.optimizedBinaryString, H.base64);
2956
- var z = new T(m, I, H);
2957
- this.files[m] = z;
2945
+ var P = new T(m, I, H);
2946
+ this.files[m] = P;
2958
2947
  }
2959
2948
  var u = e("./utf8"), l = e("./utils"), p = e("./stream/GenericWorker"), w = e("./stream/StreamHelper"), v = e("./defaults"), E = e("./compressedObject"), T = e("./zipObject"), _ = e("./generate"), k = e("./nodejsUtils"), g = e("./nodejs/NodejsStreamInputAdapter"), y = function(m) {
2960
2949
  m.slice(-1) === "/" && (m = m.substring(0, m.length - 1));
2961
2950
  var b = m.lastIndexOf("/");
2962
2951
  return 0 < b ? m.substring(0, b) : "";
2963
- }, h = function(m) {
2952
+ }, f = function(m) {
2964
2953
  return m.slice(-1) !== "/" && (m += "/"), m;
2965
- }, f = function(m, b) {
2966
- return b = b !== void 0 ? b : v.createFolders, m = h(m), this.files[m] || i.call(this, m, null, { dir: !0, createFolders: b }), this.files[m];
2954
+ }, h = function(m, b) {
2955
+ return b = b !== void 0 ? b : v.createFolders, m = f(m), this.files[m] || i.call(this, m, null, { dir: !0, createFolders: b }), this.files[m];
2967
2956
  };
2968
2957
  function a(m) {
2969
2958
  return Object.prototype.toString.call(m) === "[object RegExp]";
@@ -2993,7 +2982,7 @@ function Hi() {
2993
2982
  if (a(m)) return this.filter(function(D, H) {
2994
2983
  return H.dir && m.test(D);
2995
2984
  });
2996
- var b = this.root + m, O = f.call(this, b), F = this.clone();
2985
+ var b = this.root + m, O = h.call(this, b), F = this.clone();
2997
2986
  return F.root = O.name, F;
2998
2987
  }, remove: function(m) {
2999
2988
  m = this.root + m;
@@ -3239,12 +3228,12 @@ function Hi() {
3239
3228
  } catch {
3240
3229
  }
3241
3230
  function T(k, g) {
3242
- return new v.Promise(function(y, h) {
3243
- var f = [], a = k._internalType, c = k._outputType, m = k._mimeType;
3231
+ return new v.Promise(function(y, f) {
3232
+ var h = [], a = k._internalType, c = k._outputType, m = k._mimeType;
3244
3233
  k.on("data", function(b, O) {
3245
- f.push(b), g && g(O);
3234
+ h.push(b), g && g(O);
3246
3235
  }).on("error", function(b) {
3247
- f = [], h(b);
3236
+ h = [], f(b);
3248
3237
  }).on("end", function() {
3249
3238
  try {
3250
3239
  var b = (function(O, F, D) {
@@ -3272,37 +3261,37 @@ function Hi() {
3272
3261
  default:
3273
3262
  throw new Error("concat : unsupported type '" + O + "'");
3274
3263
  }
3275
- })(a, f), m);
3264
+ })(a, h), m);
3276
3265
  y(b);
3277
3266
  } catch (O) {
3278
- h(O);
3267
+ f(O);
3279
3268
  }
3280
- f = [];
3269
+ h = [];
3281
3270
  }).resume();
3282
3271
  });
3283
3272
  }
3284
3273
  function _(k, g, y) {
3285
- var h = g;
3274
+ var f = g;
3286
3275
  switch (g) {
3287
3276
  case "blob":
3288
3277
  case "arraybuffer":
3289
- h = "uint8array";
3278
+ f = "uint8array";
3290
3279
  break;
3291
3280
  case "base64":
3292
- h = "string";
3281
+ f = "string";
3293
3282
  }
3294
3283
  try {
3295
- this._internalType = h, this._outputType = g, this._mimeType = y, i.checkSupport(h), this._worker = k.pipe(new u(h)), k.lock();
3296
- } catch (f) {
3297
- this._worker = new l("error"), this._worker.error(f);
3284
+ this._internalType = f, this._outputType = g, this._mimeType = y, i.checkSupport(f), this._worker = k.pipe(new u(f)), k.lock();
3285
+ } catch (h) {
3286
+ this._worker = new l("error"), this._worker.error(h);
3298
3287
  }
3299
3288
  }
3300
3289
  _.prototype = { accumulate: function(k) {
3301
3290
  return T(this, k);
3302
3291
  }, on: function(k, g) {
3303
3292
  var y = this;
3304
- return k === "data" ? this._worker.on(k, function(h) {
3305
- g.call(y, h.data, h.meta);
3293
+ return k === "data" ? this._worker.on(k, function(f) {
3294
+ g.call(y, f.data, f.meta);
3306
3295
  }) : this._worker.on(k, function() {
3307
3296
  i.delay(g, arguments, y);
3308
3297
  }), this;
@@ -3345,19 +3334,19 @@ function Hi() {
3345
3334
  }
3346
3335
  r.utf8encode = function(_) {
3347
3336
  return u.nodebuffer ? l.newBufferFrom(_, "utf-8") : (function(k) {
3348
- var g, y, h, f, a, c = k.length, m = 0;
3349
- for (f = 0; f < c; f++) (64512 & (y = k.charCodeAt(f))) == 55296 && f + 1 < c && (64512 & (h = k.charCodeAt(f + 1))) == 56320 && (y = 65536 + (y - 55296 << 10) + (h - 56320), f++), m += y < 128 ? 1 : y < 2048 ? 2 : y < 65536 ? 3 : 4;
3350
- for (g = u.uint8array ? new Uint8Array(m) : new Array(m), f = a = 0; a < m; f++) (64512 & (y = k.charCodeAt(f))) == 55296 && f + 1 < c && (64512 & (h = k.charCodeAt(f + 1))) == 56320 && (y = 65536 + (y - 55296 << 10) + (h - 56320), f++), y < 128 ? g[a++] = y : (y < 2048 ? g[a++] = 192 | y >>> 6 : (y < 65536 ? g[a++] = 224 | y >>> 12 : (g[a++] = 240 | y >>> 18, g[a++] = 128 | y >>> 12 & 63), g[a++] = 128 | y >>> 6 & 63), g[a++] = 128 | 63 & y);
3337
+ var g, y, f, h, a, c = k.length, m = 0;
3338
+ for (h = 0; h < c; h++) (64512 & (y = k.charCodeAt(h))) == 55296 && h + 1 < c && (64512 & (f = k.charCodeAt(h + 1))) == 56320 && (y = 65536 + (y - 55296 << 10) + (f - 56320), h++), m += y < 128 ? 1 : y < 2048 ? 2 : y < 65536 ? 3 : 4;
3339
+ for (g = u.uint8array ? new Uint8Array(m) : new Array(m), h = a = 0; a < m; h++) (64512 & (y = k.charCodeAt(h))) == 55296 && h + 1 < c && (64512 & (f = k.charCodeAt(h + 1))) == 56320 && (y = 65536 + (y - 55296 << 10) + (f - 56320), h++), y < 128 ? g[a++] = y : (y < 2048 ? g[a++] = 192 | y >>> 6 : (y < 65536 ? g[a++] = 224 | y >>> 12 : (g[a++] = 240 | y >>> 18, g[a++] = 128 | y >>> 12 & 63), g[a++] = 128 | y >>> 6 & 63), g[a++] = 128 | 63 & y);
3351
3340
  return g;
3352
3341
  })(_);
3353
3342
  }, r.utf8decode = function(_) {
3354
3343
  return u.nodebuffer ? i.transformTo("nodebuffer", _).toString("utf-8") : (function(k) {
3355
- var g, y, h, f, a = k.length, c = new Array(2 * a);
3356
- for (g = y = 0; g < a; ) if ((h = k[g++]) < 128) c[y++] = h;
3357
- else if (4 < (f = w[h])) c[y++] = 65533, g += f - 1;
3344
+ var g, y, f, h, a = k.length, c = new Array(2 * a);
3345
+ for (g = y = 0; g < a; ) if ((f = k[g++]) < 128) c[y++] = f;
3346
+ else if (4 < (h = w[f])) c[y++] = 65533, g += h - 1;
3358
3347
  else {
3359
- for (h &= f === 2 ? 31 : f === 3 ? 15 : 7; 1 < f && g < a; ) h = h << 6 | 63 & k[g++], f--;
3360
- 1 < f ? c[y++] = 65533 : h < 65536 ? c[y++] = h : (h -= 65536, c[y++] = 55296 | h >> 10 & 1023, c[y++] = 56320 | 1023 & h);
3348
+ for (f &= h === 2 ? 31 : h === 3 ? 15 : 7; 1 < h && g < a; ) f = f << 6 | 63 & k[g++], h--;
3349
+ 1 < h ? c[y++] = 65533 : f < 65536 ? c[y++] = f : (f -= 65536, c[y++] = 55296 | f >> 10 & 1023, c[y++] = 56320 | 1023 & f);
3361
3350
  }
3362
3351
  return c.length !== y && (c.subarray ? c = c.subarray(0, y) : c.length = y), i.applyFromCharCode(c);
3363
3352
  })(_ = i.transformTo(u.uint8array ? "uint8array" : "array", _));
@@ -3370,12 +3359,12 @@ function Hi() {
3370
3359
  } else k = this.leftOver.concat(k);
3371
3360
  this.leftOver = null;
3372
3361
  }
3373
- var y = (function(f, a) {
3362
+ var y = (function(h, a) {
3374
3363
  var c;
3375
- for ((a = a || f.length) > f.length && (a = f.length), c = a - 1; 0 <= c && (192 & f[c]) == 128; ) c--;
3376
- return c < 0 || c === 0 ? a : c + w[f[c]] > a ? c : a;
3377
- })(k), h = k;
3378
- y !== k.length && (u.uint8array ? (h = k.subarray(0, y), this.leftOver = k.subarray(y, k.length)) : (h = k.slice(0, y), this.leftOver = k.slice(y, k.length))), this.push({ data: r.utf8decode(h), meta: _.meta });
3364
+ for ((a = a || h.length) > h.length && (a = h.length), c = a - 1; 0 <= c && (192 & h[c]) == 128; ) c--;
3365
+ return c < 0 || c === 0 ? a : c + w[h[c]] > a ? c : a;
3366
+ })(k), f = k;
3367
+ y !== k.length && (u.uint8array ? (f = k.subarray(0, y), this.leftOver = k.subarray(y, k.length)) : (f = k.slice(0, y), this.leftOver = k.slice(y, k.length))), this.push({ data: r.utf8decode(f), meta: _.meta });
3379
3368
  }, E.prototype.flush = function() {
3380
3369
  this.leftOver && this.leftOver.length && (this.push({ data: r.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
3381
3370
  }, r.Utf8DecodeWorker = E, i.inherits(T, p), T.prototype.processChunk = function(_) {
@@ -3387,7 +3376,7 @@ function Hi() {
3387
3376
  return g;
3388
3377
  }
3389
3378
  function v(g, y) {
3390
- for (var h = 0; h < g.length; ++h) y[h] = 255 & g.charCodeAt(h);
3379
+ for (var f = 0; f < g.length; ++f) y[f] = 255 & g.charCodeAt(f);
3391
3380
  return y;
3392
3381
  }
3393
3382
  e("setimmediate"), r.newBlob = function(g, y) {
@@ -3396,20 +3385,20 @@ function Hi() {
3396
3385
  return new Blob([g], { type: y });
3397
3386
  } catch {
3398
3387
  try {
3399
- var h = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
3400
- return h.append(g), h.getBlob(y);
3388
+ var f = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
3389
+ return f.append(g), f.getBlob(y);
3401
3390
  } catch {
3402
3391
  throw new Error("Bug : can't construct the Blob.");
3403
3392
  }
3404
3393
  }
3405
3394
  };
3406
- var E = { stringifyByChunk: function(g, y, h) {
3407
- var f = [], a = 0, c = g.length;
3408
- if (c <= h) return String.fromCharCode.apply(null, g);
3409
- for (; a < c; ) y === "array" || y === "nodebuffer" ? f.push(String.fromCharCode.apply(null, g.slice(a, Math.min(a + h, c)))) : f.push(String.fromCharCode.apply(null, g.subarray(a, Math.min(a + h, c)))), a += h;
3410
- return f.join("");
3395
+ var E = { stringifyByChunk: function(g, y, f) {
3396
+ var h = [], a = 0, c = g.length;
3397
+ if (c <= f) return String.fromCharCode.apply(null, g);
3398
+ for (; a < c; ) y === "array" || y === "nodebuffer" ? h.push(String.fromCharCode.apply(null, g.slice(a, Math.min(a + f, c)))) : h.push(String.fromCharCode.apply(null, g.subarray(a, Math.min(a + f, c)))), a += f;
3399
+ return h.join("");
3411
3400
  }, stringifyByChar: function(g) {
3412
- for (var y = "", h = 0; h < g.length; h++) y += String.fromCharCode(g[h]);
3401
+ for (var y = "", f = 0; f < g.length; f++) y += String.fromCharCode(g[f]);
3413
3402
  return y;
3414
3403
  }, applyCanBeUsed: { uint8array: (function() {
3415
3404
  try {
@@ -3425,16 +3414,16 @@ function Hi() {
3425
3414
  }
3426
3415
  })() } };
3427
3416
  function T(g) {
3428
- var y = 65536, h = r.getTypeOf(g), f = !0;
3429
- if (h === "uint8array" ? f = E.applyCanBeUsed.uint8array : h === "nodebuffer" && (f = E.applyCanBeUsed.nodebuffer), f) for (; 1 < y; ) try {
3430
- return E.stringifyByChunk(g, h, y);
3417
+ var y = 65536, f = r.getTypeOf(g), h = !0;
3418
+ if (f === "uint8array" ? h = E.applyCanBeUsed.uint8array : f === "nodebuffer" && (h = E.applyCanBeUsed.nodebuffer), h) for (; 1 < y; ) try {
3419
+ return E.stringifyByChunk(g, f, y);
3431
3420
  } catch {
3432
3421
  y = Math.floor(y / 2);
3433
3422
  }
3434
3423
  return E.stringifyByChar(g);
3435
3424
  }
3436
3425
  function _(g, y) {
3437
- for (var h = 0; h < g.length; h++) y[h] = g[h];
3426
+ for (var f = 0; f < g.length; f++) y[f] = g[f];
3438
3427
  return y;
3439
3428
  }
3440
3429
  r.applyFromCharCode = T;
@@ -3476,35 +3465,35 @@ function Hi() {
3476
3465
  }, nodebuffer: w }, r.transformTo = function(g, y) {
3477
3466
  if (y = y || "", !g) return y;
3478
3467
  r.checkSupport(g);
3479
- var h = r.getTypeOf(y);
3480
- return k[h][g](y);
3468
+ var f = r.getTypeOf(y);
3469
+ return k[f][g](y);
3481
3470
  }, r.resolve = function(g) {
3482
- for (var y = g.split("/"), h = [], f = 0; f < y.length; f++) {
3483
- var a = y[f];
3484
- a === "." || a === "" && f !== 0 && f !== y.length - 1 || (a === ".." ? h.pop() : h.push(a));
3471
+ for (var y = g.split("/"), f = [], h = 0; h < y.length; h++) {
3472
+ var a = y[h];
3473
+ a === "." || a === "" && h !== 0 && h !== y.length - 1 || (a === ".." ? f.pop() : f.push(a));
3485
3474
  }
3486
- return h.join("/");
3475
+ return f.join("/");
3487
3476
  }, r.getTypeOf = function(g) {
3488
3477
  return typeof g == "string" ? "string" : Object.prototype.toString.call(g) === "[object Array]" ? "array" : i.nodebuffer && l.isBuffer(g) ? "nodebuffer" : i.uint8array && g instanceof Uint8Array ? "uint8array" : i.arraybuffer && g instanceof ArrayBuffer ? "arraybuffer" : void 0;
3489
3478
  }, r.checkSupport = function(g) {
3490
3479
  if (!i[g.toLowerCase()]) throw new Error(g + " is not supported by this platform");
3491
3480
  }, r.MAX_VALUE_16BITS = 65535, r.MAX_VALUE_32BITS = -1, r.pretty = function(g) {
3492
- var y, h, f = "";
3493
- for (h = 0; h < (g || "").length; h++) f += "\\x" + ((y = g.charCodeAt(h)) < 16 ? "0" : "") + y.toString(16).toUpperCase();
3494
- return f;
3495
- }, r.delay = function(g, y, h) {
3481
+ var y, f, h = "";
3482
+ for (f = 0; f < (g || "").length; f++) h += "\\x" + ((y = g.charCodeAt(f)) < 16 ? "0" : "") + y.toString(16).toUpperCase();
3483
+ return h;
3484
+ }, r.delay = function(g, y, f) {
3496
3485
  setImmediate(function() {
3497
- g.apply(h || null, y || []);
3486
+ g.apply(f || null, y || []);
3498
3487
  });
3499
3488
  }, r.inherits = function(g, y) {
3500
- function h() {
3489
+ function f() {
3501
3490
  }
3502
- h.prototype = y.prototype, g.prototype = new h();
3491
+ f.prototype = y.prototype, g.prototype = new f();
3503
3492
  }, r.extend = function() {
3504
- var g, y, h = {};
3505
- for (g = 0; g < arguments.length; g++) for (y in arguments[g]) Object.prototype.hasOwnProperty.call(arguments[g], y) && h[y] === void 0 && (h[y] = arguments[g][y]);
3506
- return h;
3507
- }, r.prepareContent = function(g, y, h, f, a) {
3493
+ var g, y, f = {};
3494
+ for (g = 0; g < arguments.length; g++) for (y in arguments[g]) Object.prototype.hasOwnProperty.call(arguments[g], y) && f[y] === void 0 && (f[y] = arguments[g][y]);
3495
+ return f;
3496
+ }, r.prepareContent = function(g, y, f, h, a) {
3508
3497
  return p.Promise.resolve(y).then(function(c) {
3509
3498
  return i.blob && (c instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(c)) !== -1) && typeof FileReader < "u" ? new p.Promise(function(m, b) {
3510
3499
  var O = new FileReader();
@@ -3516,7 +3505,7 @@ function Hi() {
3516
3505
  }) : c;
3517
3506
  }).then(function(c) {
3518
3507
  var m = r.getTypeOf(c);
3519
- return m ? (m === "arraybuffer" ? c = r.transformTo("uint8array", c) : m === "string" && (a ? c = u.decode(c) : h && f !== !0 && (c = (function(b) {
3508
+ return m ? (m === "arraybuffer" ? c = r.transformTo("uint8array", c) : m === "string" && (a ? c = u.decode(c) : f && h !== !0 && (c = (function(b) {
3520
3509
  return v(b, i.uint8array ? new Uint8Array(b.length) : new Array(b.length));
3521
3510
  })(c))), c) : p.Promise.reject(new Error("Can't read the data of '" + g + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
3522
3511
  });
@@ -3586,7 +3575,7 @@ function Hi() {
3586
3575
  var k, g;
3587
3576
  if (_.skip(22), this.fileNameLength = _.readInt(2), g = _.readInt(2), this.fileName = _.readData(this.fileNameLength), _.skip(g), 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)");
3588
3577
  if ((k = (function(y) {
3589
- for (var h in v) if (Object.prototype.hasOwnProperty.call(v, h) && v[h].magic === y) return v[h];
3578
+ for (var f in v) if (Object.prototype.hasOwnProperty.call(v, f) && v[f].magic === y) return v[f];
3590
3579
  return null;
3591
3580
  })(this.compressionMethod)) === null) throw new Error("Corrupted zip : compression " + u.pretty(this.compressionMethod) + " unknown (inner file : " + u.transformTo("string", this.fileName) + ")");
3592
3581
  this.decompressed = new l(this.compressedSize, this.uncompressedSize, this.crc32, k, _.readData(this.compressedSize));
@@ -3605,9 +3594,9 @@ function Hi() {
3605
3594
  this.uncompressedSize === u.MAX_VALUE_32BITS && (this.uncompressedSize = _.readInt(8)), this.compressedSize === u.MAX_VALUE_32BITS && (this.compressedSize = _.readInt(8)), this.localHeaderOffset === u.MAX_VALUE_32BITS && (this.localHeaderOffset = _.readInt(8)), this.diskNumberStart === u.MAX_VALUE_32BITS && (this.diskNumberStart = _.readInt(4));
3606
3595
  }
3607
3596
  }, readExtraFields: function(_) {
3608
- var k, g, y, h = _.index + this.extraFieldsLength;
3609
- for (this.extraFields || (this.extraFields = {}); _.index + 4 < h; ) k = _.readInt(2), g = _.readInt(2), y = _.readData(g), this.extraFields[k] = { id: k, length: g, value: y };
3610
- _.setIndex(h);
3597
+ var k, g, y, f = _.index + this.extraFieldsLength;
3598
+ for (this.extraFields || (this.extraFields = {}); _.index + 4 < f; ) k = _.readInt(2), g = _.readInt(2), y = _.readData(g), this.extraFields[k] = { id: k, length: g, value: y };
3599
+ _.setIndex(f);
3611
3600
  }, handleUTF8: function() {
3612
3601
  var _ = E.uint8array ? "uint8array" : "array";
3613
3602
  if (this.useUTF8()) this.fileNameStr = w.utf8decode(this.fileName), this.fileCommentStr = w.utf8decode(this.fileComment);
@@ -3621,8 +3610,8 @@ function Hi() {
3621
3610
  var y = this.findExtraFieldUnicodeComment();
3622
3611
  if (y !== null) this.fileCommentStr = y;
3623
3612
  else {
3624
- var h = u.transformTo(_, this.fileComment);
3625
- this.fileCommentStr = this.loadOptions.decodeFileName(h);
3613
+ var f = u.transformTo(_, this.fileComment);
3614
+ this.fileCommentStr = this.loadOptions.decodeFileName(f);
3626
3615
  }
3627
3616
  }
3628
3617
  }, findExtraFieldUnicodePath: function() {
@@ -3649,10 +3638,10 @@ function Hi() {
3649
3638
  var g = null, y = "string";
3650
3639
  try {
3651
3640
  if (!k) throw new Error("No output type specified.");
3652
- var h = (y = k.toLowerCase()) === "string" || y === "text";
3641
+ var f = (y = k.toLowerCase()) === "string" || y === "text";
3653
3642
  y !== "binarystring" && y !== "text" || (y = "string"), g = this._decompressWorker();
3654
- var f = !this._dataBinary;
3655
- f && !h && (g = g.pipe(new p.Utf8EncodeWorker())), !f && h && (g = g.pipe(new p.Utf8DecodeWorker()));
3643
+ var h = !this._dataBinary;
3644
+ h && !f && (g = g.pipe(new p.Utf8EncodeWorker())), !h && f && (g = g.pipe(new p.Utf8DecodeWorker()));
3656
3645
  } catch (a) {
3657
3646
  (g = new v("error")).error(a);
3658
3647
  }
@@ -3698,9 +3687,9 @@ function Hi() {
3698
3687
  function k() {
3699
3688
  var g, y;
3700
3689
  l = !0;
3701
- for (var h = _.length; h; ) {
3702
- for (y = _, _ = [], g = -1; ++g < h; ) y[g]();
3703
- h = _.length;
3690
+ for (var f = _.length; f; ) {
3691
+ for (y = _, _ = [], g = -1; ++g < f; ) y[g]();
3692
+ f = _.length;
3704
3693
  }
3705
3694
  l = !1;
3706
3695
  }
@@ -3713,117 +3702,117 @@ function Hi() {
3713
3702
  function u() {
3714
3703
  }
3715
3704
  var l = {}, p = ["REJECTED"], w = ["FULFILLED"], v = ["PENDING"];
3716
- function E(h) {
3717
- if (typeof h != "function") throw new TypeError("resolver must be a function");
3718
- this.state = v, this.queue = [], this.outcome = void 0, h !== u && g(this, h);
3705
+ function E(f) {
3706
+ if (typeof f != "function") throw new TypeError("resolver must be a function");
3707
+ this.state = v, this.queue = [], this.outcome = void 0, f !== u && g(this, f);
3719
3708
  }
3720
- function T(h, f, a) {
3721
- this.promise = h, typeof f == "function" && (this.onFulfilled = f, this.callFulfilled = this.otherCallFulfilled), typeof a == "function" && (this.onRejected = a, this.callRejected = this.otherCallRejected);
3709
+ function T(f, h, a) {
3710
+ this.promise = f, typeof h == "function" && (this.onFulfilled = h, this.callFulfilled = this.otherCallFulfilled), typeof a == "function" && (this.onRejected = a, this.callRejected = this.otherCallRejected);
3722
3711
  }
3723
- function _(h, f, a) {
3712
+ function _(f, h, a) {
3724
3713
  i(function() {
3725
3714
  var c;
3726
3715
  try {
3727
- c = f(a);
3716
+ c = h(a);
3728
3717
  } catch (m) {
3729
- return l.reject(h, m);
3718
+ return l.reject(f, m);
3730
3719
  }
3731
- c === h ? l.reject(h, new TypeError("Cannot resolve promise with itself")) : l.resolve(h, c);
3720
+ c === f ? l.reject(f, new TypeError("Cannot resolve promise with itself")) : l.resolve(f, c);
3732
3721
  });
3733
3722
  }
3734
- function k(h) {
3735
- var f = h && h.then;
3736
- if (h && (typeof h == "object" || typeof h == "function") && typeof f == "function") return function() {
3737
- f.apply(h, arguments);
3723
+ function k(f) {
3724
+ var h = f && f.then;
3725
+ if (f && (typeof f == "object" || typeof f == "function") && typeof h == "function") return function() {
3726
+ h.apply(f, arguments);
3738
3727
  };
3739
3728
  }
3740
- function g(h, f) {
3729
+ function g(f, h) {
3741
3730
  var a = !1;
3742
3731
  function c(O) {
3743
- a || (a = !0, l.reject(h, O));
3732
+ a || (a = !0, l.reject(f, O));
3744
3733
  }
3745
3734
  function m(O) {
3746
- a || (a = !0, l.resolve(h, O));
3735
+ a || (a = !0, l.resolve(f, O));
3747
3736
  }
3748
3737
  var b = y(function() {
3749
- f(m, c);
3738
+ h(m, c);
3750
3739
  });
3751
3740
  b.status === "error" && c(b.value);
3752
3741
  }
3753
- function y(h, f) {
3742
+ function y(f, h) {
3754
3743
  var a = {};
3755
3744
  try {
3756
- a.value = h(f), a.status = "success";
3745
+ a.value = f(h), a.status = "success";
3757
3746
  } catch (c) {
3758
3747
  a.status = "error", a.value = c;
3759
3748
  }
3760
3749
  return a;
3761
3750
  }
3762
- (s.exports = E).prototype.finally = function(h) {
3763
- if (typeof h != "function") return this;
3764
- var f = this.constructor;
3751
+ (s.exports = E).prototype.finally = function(f) {
3752
+ if (typeof f != "function") return this;
3753
+ var h = this.constructor;
3765
3754
  return this.then(function(a) {
3766
- return f.resolve(h()).then(function() {
3755
+ return h.resolve(f()).then(function() {
3767
3756
  return a;
3768
3757
  });
3769
3758
  }, function(a) {
3770
- return f.resolve(h()).then(function() {
3759
+ return h.resolve(f()).then(function() {
3771
3760
  throw a;
3772
3761
  });
3773
3762
  });
3774
- }, E.prototype.catch = function(h) {
3775
- return this.then(null, h);
3776
- }, E.prototype.then = function(h, f) {
3777
- if (typeof h != "function" && this.state === w || typeof f != "function" && this.state === p) return this;
3763
+ }, E.prototype.catch = function(f) {
3764
+ return this.then(null, f);
3765
+ }, E.prototype.then = function(f, h) {
3766
+ if (typeof f != "function" && this.state === w || typeof h != "function" && this.state === p) return this;
3778
3767
  var a = new this.constructor(u);
3779
- return this.state !== v ? _(a, this.state === w ? h : f, this.outcome) : this.queue.push(new T(a, h, f)), a;
3780
- }, T.prototype.callFulfilled = function(h) {
3781
- l.resolve(this.promise, h);
3782
- }, T.prototype.otherCallFulfilled = function(h) {
3783
- _(this.promise, this.onFulfilled, h);
3784
- }, T.prototype.callRejected = function(h) {
3785
- l.reject(this.promise, h);
3786
- }, T.prototype.otherCallRejected = function(h) {
3787
- _(this.promise, this.onRejected, h);
3788
- }, l.resolve = function(h, f) {
3789
- var a = y(k, f);
3790
- if (a.status === "error") return l.reject(h, a.value);
3768
+ return this.state !== v ? _(a, this.state === w ? f : h, this.outcome) : this.queue.push(new T(a, f, h)), a;
3769
+ }, T.prototype.callFulfilled = function(f) {
3770
+ l.resolve(this.promise, f);
3771
+ }, T.prototype.otherCallFulfilled = function(f) {
3772
+ _(this.promise, this.onFulfilled, f);
3773
+ }, T.prototype.callRejected = function(f) {
3774
+ l.reject(this.promise, f);
3775
+ }, T.prototype.otherCallRejected = function(f) {
3776
+ _(this.promise, this.onRejected, f);
3777
+ }, l.resolve = function(f, h) {
3778
+ var a = y(k, h);
3779
+ if (a.status === "error") return l.reject(f, a.value);
3791
3780
  var c = a.value;
3792
- if (c) g(h, c);
3781
+ if (c) g(f, c);
3793
3782
  else {
3794
- h.state = w, h.outcome = f;
3795
- for (var m = -1, b = h.queue.length; ++m < b; ) h.queue[m].callFulfilled(f);
3783
+ f.state = w, f.outcome = h;
3784
+ for (var m = -1, b = f.queue.length; ++m < b; ) f.queue[m].callFulfilled(h);
3796
3785
  }
3797
- return h;
3798
- }, l.reject = function(h, f) {
3799
- h.state = p, h.outcome = f;
3800
- for (var a = -1, c = h.queue.length; ++a < c; ) h.queue[a].callRejected(f);
3801
- return h;
3802
- }, E.resolve = function(h) {
3803
- return h instanceof this ? h : l.resolve(new this(u), h);
3804
- }, E.reject = function(h) {
3805
- var f = new this(u);
3806
- return l.reject(f, h);
3807
- }, E.all = function(h) {
3808
- var f = this;
3809
- if (Object.prototype.toString.call(h) !== "[object Array]") return this.reject(new TypeError("must be an array"));
3810
- var a = h.length, c = !1;
3786
+ return f;
3787
+ }, l.reject = function(f, h) {
3788
+ f.state = p, f.outcome = h;
3789
+ for (var a = -1, c = f.queue.length; ++a < c; ) f.queue[a].callRejected(h);
3790
+ return f;
3791
+ }, E.resolve = function(f) {
3792
+ return f instanceof this ? f : l.resolve(new this(u), f);
3793
+ }, E.reject = function(f) {
3794
+ var h = new this(u);
3795
+ return l.reject(h, f);
3796
+ }, E.all = function(f) {
3797
+ var h = this;
3798
+ if (Object.prototype.toString.call(f) !== "[object Array]") return this.reject(new TypeError("must be an array"));
3799
+ var a = f.length, c = !1;
3811
3800
  if (!a) return this.resolve([]);
3812
- for (var m = new Array(a), b = 0, O = -1, F = new this(u); ++O < a; ) D(h[O], O);
3801
+ for (var m = new Array(a), b = 0, O = -1, F = new this(u); ++O < a; ) D(f[O], O);
3813
3802
  return F;
3814
3803
  function D(H, Q) {
3815
- f.resolve(H).then(function(I) {
3804
+ h.resolve(H).then(function(I) {
3816
3805
  m[Q] = I, ++b !== a || c || (c = !0, l.resolve(F, m));
3817
3806
  }, function(I) {
3818
3807
  c || (c = !0, l.reject(F, I));
3819
3808
  });
3820
3809
  }
3821
- }, E.race = function(h) {
3822
- var f = this;
3823
- if (Object.prototype.toString.call(h) !== "[object Array]") return this.reject(new TypeError("must be an array"));
3824
- var a = h.length, c = !1;
3810
+ }, E.race = function(f) {
3811
+ var h = this;
3812
+ if (Object.prototype.toString.call(f) !== "[object Array]") return this.reject(new TypeError("must be an array"));
3813
+ var a = f.length, c = !1;
3825
3814
  if (!a) return this.resolve([]);
3826
- for (var m = -1, b = new this(u); ++m < a; ) O = h[m], f.resolve(O).then(function(F) {
3815
+ for (var m = -1, b = new this(u); ++m < a; ) O = f[m], h.resolve(O).then(function(F) {
3827
3816
  c || (c = !0, l.resolve(b, F));
3828
3817
  }, function(F) {
3829
3818
  c || (c = !0, l.reject(b, F));
@@ -3836,41 +3825,41 @@ function Hi() {
3836
3825
  (0, e("./lib/utils/common").assign)(i, e("./lib/deflate"), e("./lib/inflate"), e("./lib/zlib/constants")), s.exports = i;
3837
3826
  }, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(e, s, r) {
3838
3827
  var i = e("./zlib/deflate"), u = e("./utils/common"), l = e("./utils/strings"), p = e("./zlib/messages"), w = e("./zlib/zstream"), v = Object.prototype.toString, E = 0, T = -1, _ = 0, k = 8;
3839
- function g(h) {
3840
- if (!(this instanceof g)) return new g(h);
3841
- this.options = u.assign({ level: T, method: k, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: _, to: "" }, h || {});
3842
- var f = this.options;
3843
- f.raw && 0 < f.windowBits ? f.windowBits = -f.windowBits : f.gzip && 0 < f.windowBits && f.windowBits < 16 && (f.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new w(), this.strm.avail_out = 0;
3844
- var a = i.deflateInit2(this.strm, f.level, f.method, f.windowBits, f.memLevel, f.strategy);
3828
+ function g(f) {
3829
+ if (!(this instanceof g)) return new g(f);
3830
+ this.options = u.assign({ level: T, method: k, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: _, to: "" }, f || {});
3831
+ var h = this.options;
3832
+ h.raw && 0 < h.windowBits ? h.windowBits = -h.windowBits : h.gzip && 0 < h.windowBits && h.windowBits < 16 && (h.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new w(), this.strm.avail_out = 0;
3833
+ var a = i.deflateInit2(this.strm, h.level, h.method, h.windowBits, h.memLevel, h.strategy);
3845
3834
  if (a !== E) throw new Error(p[a]);
3846
- if (f.header && i.deflateSetHeader(this.strm, f.header), f.dictionary) {
3835
+ if (h.header && i.deflateSetHeader(this.strm, h.header), h.dictionary) {
3847
3836
  var c;
3848
- if (c = typeof f.dictionary == "string" ? l.string2buf(f.dictionary) : v.call(f.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(f.dictionary) : f.dictionary, (a = i.deflateSetDictionary(this.strm, c)) !== E) throw new Error(p[a]);
3837
+ if (c = typeof h.dictionary == "string" ? l.string2buf(h.dictionary) : v.call(h.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(h.dictionary) : h.dictionary, (a = i.deflateSetDictionary(this.strm, c)) !== E) throw new Error(p[a]);
3849
3838
  this._dict_set = !0;
3850
3839
  }
3851
3840
  }
3852
- function y(h, f) {
3853
- var a = new g(f);
3854
- if (a.push(h, !0), a.err) throw a.msg || p[a.err];
3841
+ function y(f, h) {
3842
+ var a = new g(h);
3843
+ if (a.push(f, !0), a.err) throw a.msg || p[a.err];
3855
3844
  return a.result;
3856
3845
  }
3857
- g.prototype.push = function(h, f) {
3846
+ g.prototype.push = function(f, h) {
3858
3847
  var a, c, m = this.strm, b = this.options.chunkSize;
3859
3848
  if (this.ended) return !1;
3860
- c = f === ~~f ? f : f === !0 ? 4 : 0, typeof h == "string" ? m.input = l.string2buf(h) : v.call(h) === "[object ArrayBuffer]" ? m.input = new Uint8Array(h) : m.input = h, m.next_in = 0, m.avail_in = m.input.length;
3849
+ c = h === ~~h ? h : h === !0 ? 4 : 0, typeof f == "string" ? m.input = l.string2buf(f) : v.call(f) === "[object ArrayBuffer]" ? m.input = new Uint8Array(f) : m.input = f, m.next_in = 0, m.avail_in = m.input.length;
3861
3850
  do {
3862
3851
  if (m.avail_out === 0 && (m.output = new u.Buf8(b), m.next_out = 0, m.avail_out = b), (a = i.deflate(m, c)) !== 1 && a !== E) return this.onEnd(a), !(this.ended = !0);
3863
3852
  m.avail_out !== 0 && (m.avail_in !== 0 || c !== 4 && c !== 2) || (this.options.to === "string" ? this.onData(l.buf2binstring(u.shrinkBuf(m.output, m.next_out))) : this.onData(u.shrinkBuf(m.output, m.next_out)));
3864
3853
  } while ((0 < m.avail_in || m.avail_out === 0) && a !== 1);
3865
3854
  return c === 4 ? (a = i.deflateEnd(this.strm), this.onEnd(a), this.ended = !0, a === E) : c !== 2 || (this.onEnd(E), !(m.avail_out = 0));
3866
- }, g.prototype.onData = function(h) {
3867
- this.chunks.push(h);
3868
- }, g.prototype.onEnd = function(h) {
3869
- h === E && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = u.flattenChunks(this.chunks)), this.chunks = [], this.err = h, this.msg = this.strm.msg;
3870
- }, r.Deflate = g, r.deflate = y, r.deflateRaw = function(h, f) {
3871
- return (f = f || {}).raw = !0, y(h, f);
3872
- }, r.gzip = function(h, f) {
3873
- return (f = f || {}).gzip = !0, y(h, f);
3855
+ }, g.prototype.onData = function(f) {
3856
+ this.chunks.push(f);
3857
+ }, g.prototype.onEnd = function(f) {
3858
+ f === E && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = u.flattenChunks(this.chunks)), this.chunks = [], this.err = f, this.msg = this.strm.msg;
3859
+ }, r.Deflate = g, r.deflate = y, r.deflateRaw = function(f, h) {
3860
+ return (h = h || {}).raw = !0, y(f, h);
3861
+ }, r.gzip = function(f, h) {
3862
+ return (h = h || {}).gzip = !0, y(f, h);
3874
3863
  };
3875
3864
  }, { "./utils/common": 41, "./utils/strings": 42, "./zlib/deflate": 46, "./zlib/messages": 51, "./zlib/zstream": 53 }], 40: [function(e, s, r) {
3876
3865
  var i = e("./zlib/inflate"), u = e("./utils/common"), l = e("./utils/strings"), p = e("./zlib/constants"), w = e("./zlib/messages"), v = e("./zlib/zstream"), E = e("./zlib/gzheader"), T = Object.prototype.toString;
@@ -3879,24 +3868,24 @@ function Hi() {
3879
3868
  this.options = u.assign({ chunkSize: 16384, windowBits: 0, to: "" }, g || {});
3880
3869
  var y = this.options;
3881
3870
  y.raw && 0 <= y.windowBits && y.windowBits < 16 && (y.windowBits = -y.windowBits, y.windowBits === 0 && (y.windowBits = -15)), !(0 <= y.windowBits && y.windowBits < 16) || g && g.windowBits || (y.windowBits += 32), 15 < y.windowBits && y.windowBits < 48 && (15 & y.windowBits) == 0 && (y.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new v(), this.strm.avail_out = 0;
3882
- var h = i.inflateInit2(this.strm, y.windowBits);
3883
- if (h !== p.Z_OK) throw new Error(w[h]);
3871
+ var f = i.inflateInit2(this.strm, y.windowBits);
3872
+ if (f !== p.Z_OK) throw new Error(w[f]);
3884
3873
  this.header = new E(), i.inflateGetHeader(this.strm, this.header);
3885
3874
  }
3886
3875
  function k(g, y) {
3887
- var h = new _(y);
3888
- if (h.push(g, !0), h.err) throw h.msg || w[h.err];
3889
- return h.result;
3876
+ var f = new _(y);
3877
+ if (f.push(g, !0), f.err) throw f.msg || w[f.err];
3878
+ return f.result;
3890
3879
  }
3891
3880
  _.prototype.push = function(g, y) {
3892
- var h, f, a, c, m, b, O = this.strm, F = this.options.chunkSize, D = this.options.dictionary, H = !1;
3881
+ var f, h, a, c, m, b, O = this.strm, F = this.options.chunkSize, D = this.options.dictionary, H = !1;
3893
3882
  if (this.ended) return !1;
3894
- f = y === ~~y ? y : y === !0 ? p.Z_FINISH : p.Z_NO_FLUSH, typeof g == "string" ? O.input = l.binstring2buf(g) : T.call(g) === "[object ArrayBuffer]" ? O.input = new Uint8Array(g) : O.input = g, O.next_in = 0, O.avail_in = O.input.length;
3883
+ h = y === ~~y ? y : y === !0 ? p.Z_FINISH : p.Z_NO_FLUSH, typeof g == "string" ? O.input = l.binstring2buf(g) : T.call(g) === "[object ArrayBuffer]" ? O.input = new Uint8Array(g) : O.input = g, O.next_in = 0, O.avail_in = O.input.length;
3895
3884
  do {
3896
- if (O.avail_out === 0 && (O.output = new u.Buf8(F), O.next_out = 0, O.avail_out = F), (h = i.inflate(O, p.Z_NO_FLUSH)) === p.Z_NEED_DICT && D && (b = typeof D == "string" ? l.string2buf(D) : T.call(D) === "[object ArrayBuffer]" ? new Uint8Array(D) : D, h = i.inflateSetDictionary(this.strm, b)), h === p.Z_BUF_ERROR && H === !0 && (h = p.Z_OK, H = !1), h !== p.Z_STREAM_END && h !== p.Z_OK) return this.onEnd(h), !(this.ended = !0);
3897
- O.next_out && (O.avail_out !== 0 && h !== p.Z_STREAM_END && (O.avail_in !== 0 || f !== p.Z_FINISH && f !== p.Z_SYNC_FLUSH) || (this.options.to === "string" ? (a = l.utf8border(O.output, O.next_out), c = O.next_out - a, m = l.buf2string(O.output, a), O.next_out = c, O.avail_out = F - c, c && u.arraySet(O.output, O.output, a, c, 0), this.onData(m)) : this.onData(u.shrinkBuf(O.output, O.next_out)))), O.avail_in === 0 && O.avail_out === 0 && (H = !0);
3898
- } while ((0 < O.avail_in || O.avail_out === 0) && h !== p.Z_STREAM_END);
3899
- return h === p.Z_STREAM_END && (f = p.Z_FINISH), f === p.Z_FINISH ? (h = i.inflateEnd(this.strm), this.onEnd(h), this.ended = !0, h === p.Z_OK) : f !== p.Z_SYNC_FLUSH || (this.onEnd(p.Z_OK), !(O.avail_out = 0));
3885
+ if (O.avail_out === 0 && (O.output = new u.Buf8(F), O.next_out = 0, O.avail_out = F), (f = i.inflate(O, p.Z_NO_FLUSH)) === p.Z_NEED_DICT && D && (b = typeof D == "string" ? l.string2buf(D) : T.call(D) === "[object ArrayBuffer]" ? new Uint8Array(D) : D, f = i.inflateSetDictionary(this.strm, b)), f === p.Z_BUF_ERROR && H === !0 && (f = p.Z_OK, H = !1), f !== p.Z_STREAM_END && f !== p.Z_OK) return this.onEnd(f), !(this.ended = !0);
3886
+ O.next_out && (O.avail_out !== 0 && f !== p.Z_STREAM_END && (O.avail_in !== 0 || h !== p.Z_FINISH && h !== p.Z_SYNC_FLUSH) || (this.options.to === "string" ? (a = l.utf8border(O.output, O.next_out), c = O.next_out - a, m = l.buf2string(O.output, a), O.next_out = c, O.avail_out = F - c, c && u.arraySet(O.output, O.output, a, c, 0), this.onData(m)) : this.onData(u.shrinkBuf(O.output, O.next_out)))), O.avail_in === 0 && O.avail_out === 0 && (H = !0);
3887
+ } while ((0 < O.avail_in || O.avail_out === 0) && f !== p.Z_STREAM_END);
3888
+ return f === p.Z_STREAM_END && (h = p.Z_FINISH), h === p.Z_FINISH ? (f = i.inflateEnd(this.strm), this.onEnd(f), this.ended = !0, f === p.Z_OK) : h !== p.Z_SYNC_FLUSH || (this.onEnd(p.Z_OK), !(O.avail_out = 0));
3900
3889
  }, _.prototype.onData = function(g) {
3901
3890
  this.chunks.push(g);
3902
3891
  }, _.prototype.onEnd = function(g) {
@@ -3953,9 +3942,9 @@ function Hi() {
3953
3942
  return _;
3954
3943
  }
3955
3944
  p[254] = p[254] = 1, r.string2buf = function(E) {
3956
- var T, _, k, g, y, h = E.length, f = 0;
3957
- for (g = 0; g < h; g++) (64512 & (_ = E.charCodeAt(g))) == 55296 && g + 1 < h && (64512 & (k = E.charCodeAt(g + 1))) == 56320 && (_ = 65536 + (_ - 55296 << 10) + (k - 56320), g++), f += _ < 128 ? 1 : _ < 2048 ? 2 : _ < 65536 ? 3 : 4;
3958
- for (T = new i.Buf8(f), g = y = 0; y < f; g++) (64512 & (_ = E.charCodeAt(g))) == 55296 && g + 1 < h && (64512 & (k = E.charCodeAt(g + 1))) == 56320 && (_ = 65536 + (_ - 55296 << 10) + (k - 56320), g++), _ < 128 ? T[y++] = _ : (_ < 2048 ? T[y++] = 192 | _ >>> 6 : (_ < 65536 ? T[y++] = 224 | _ >>> 12 : (T[y++] = 240 | _ >>> 18, T[y++] = 128 | _ >>> 12 & 63), T[y++] = 128 | _ >>> 6 & 63), T[y++] = 128 | 63 & _);
3945
+ var T, _, k, g, y, f = E.length, h = 0;
3946
+ for (g = 0; g < f; g++) (64512 & (_ = E.charCodeAt(g))) == 55296 && g + 1 < f && (64512 & (k = E.charCodeAt(g + 1))) == 56320 && (_ = 65536 + (_ - 55296 << 10) + (k - 56320), g++), h += _ < 128 ? 1 : _ < 2048 ? 2 : _ < 65536 ? 3 : 4;
3947
+ for (T = new i.Buf8(h), g = y = 0; y < h; g++) (64512 & (_ = E.charCodeAt(g))) == 55296 && g + 1 < f && (64512 & (k = E.charCodeAt(g + 1))) == 56320 && (_ = 65536 + (_ - 55296 << 10) + (k - 56320), g++), _ < 128 ? T[y++] = _ : (_ < 2048 ? T[y++] = 192 | _ >>> 6 : (_ < 65536 ? T[y++] = 224 | _ >>> 12 : (T[y++] = 240 | _ >>> 18, T[y++] = 128 | _ >>> 12 & 63), T[y++] = 128 | _ >>> 6 & 63), T[y++] = 128 | 63 & _);
3959
3948
  return T;
3960
3949
  }, r.buf2binstring = function(E) {
3961
3950
  return v(E, E.length);
@@ -3963,14 +3952,14 @@ function Hi() {
3963
3952
  for (var T = new i.Buf8(E.length), _ = 0, k = T.length; _ < k; _++) T[_] = E.charCodeAt(_);
3964
3953
  return T;
3965
3954
  }, r.buf2string = function(E, T) {
3966
- var _, k, g, y, h = T || E.length, f = new Array(2 * h);
3967
- for (_ = k = 0; _ < h; ) if ((g = E[_++]) < 128) f[k++] = g;
3968
- else if (4 < (y = p[g])) f[k++] = 65533, _ += y - 1;
3955
+ var _, k, g, y, f = T || E.length, h = new Array(2 * f);
3956
+ for (_ = k = 0; _ < f; ) if ((g = E[_++]) < 128) h[k++] = g;
3957
+ else if (4 < (y = p[g])) h[k++] = 65533, _ += y - 1;
3969
3958
  else {
3970
- for (g &= y === 2 ? 31 : y === 3 ? 15 : 7; 1 < y && _ < h; ) g = g << 6 | 63 & E[_++], y--;
3971
- 1 < y ? f[k++] = 65533 : g < 65536 ? f[k++] = g : (g -= 65536, f[k++] = 55296 | g >> 10 & 1023, f[k++] = 56320 | 1023 & g);
3959
+ for (g &= y === 2 ? 31 : y === 3 ? 15 : 7; 1 < y && _ < f; ) g = g << 6 | 63 & E[_++], y--;
3960
+ 1 < y ? h[k++] = 65533 : g < 65536 ? h[k++] = g : (g -= 65536, h[k++] = 55296 | g >> 10 & 1023, h[k++] = 56320 | 1023 & g);
3972
3961
  }
3973
- return v(f, k);
3962
+ return v(h, k);
3974
3963
  }, r.utf8border = function(E, T) {
3975
3964
  var _;
3976
3965
  for ((T = T || E.length) > E.length && (T = E.length), _ = T - 1; 0 <= _ && (192 & E[_]) == 128; ) _--;
@@ -4002,7 +3991,7 @@ function Hi() {
4002
3991
  return -1 ^ u;
4003
3992
  };
4004
3993
  }, {}], 46: [function(e, s, r) {
4005
- var i, u = e("../utils/common"), l = e("./trees"), p = e("./adler32"), w = e("./crc32"), v = e("./messages"), E = 0, T = 4, _ = 0, k = -2, g = -1, y = 4, h = 2, f = 8, a = 9, c = 286, m = 30, b = 19, O = 2 * c + 1, F = 15, D = 3, H = 258, Q = H + D + 1, I = 42, z = 113, d = 1, L = 2, tt = 3, $ = 4;
3994
+ var i, u = e("../utils/common"), l = e("./trees"), p = e("./adler32"), w = e("./crc32"), v = e("./messages"), E = 0, T = 4, _ = 0, k = -2, g = -1, y = 4, f = 2, h = 8, a = 9, c = 286, m = 30, b = 19, O = 2 * c + 1, F = 15, D = 3, H = 258, Q = H + D + 1, I = 42, P = 113, d = 1, L = 2, tt = 3, $ = 4;
4006
3995
  function et(o, B) {
4007
3996
  return o.msg = v[B], B;
4008
3997
  }
@@ -4013,8 +4002,8 @@ function Hi() {
4013
4002
  for (var B = o.length; 0 <= --B; ) o[B] = 0;
4014
4003
  }
4015
4004
  function N(o) {
4016
- var B = o.state, P = B.pending;
4017
- P > o.avail_out && (P = o.avail_out), P !== 0 && (u.arraySet(o.output, B.pending_buf, B.pending_out, P, o.next_out), o.next_out += P, B.pending_out += P, o.total_out += P, o.avail_out -= P, B.pending -= P, B.pending === 0 && (B.pending_out = 0));
4005
+ var B = o.state, z = B.pending;
4006
+ z > o.avail_out && (z = o.avail_out), z !== 0 && (u.arraySet(o.output, B.pending_buf, B.pending_out, z, o.next_out), o.next_out += z, B.pending_out += z, o.total_out += z, o.avail_out -= z, B.pending -= z, B.pending === 0 && (B.pending_out = 0));
4018
4007
  }
4019
4008
  function U(o, B) {
4020
4009
  l._tr_flush_block(o, 0 <= o.block_start ? o.block_start : -1, o.strstart - o.block_start, B), o.block_start = o.strstart, N(o.strm);
@@ -4026,14 +4015,14 @@ function Hi() {
4026
4015
  o.pending_buf[o.pending++] = B >>> 8 & 255, o.pending_buf[o.pending++] = 255 & B;
4027
4016
  }
4028
4017
  function Z(o, B) {
4029
- var P, A, x = o.max_chain_length, R = o.strstart, M = o.prev_length, j = o.nice_match, C = o.strstart > o.w_size - Q ? o.strstart - (o.w_size - Q) : 0, G = o.window, K = o.w_mask, W = o.prev, X = o.strstart + H, st = G[R + M - 1], rt = G[R + M];
4018
+ var z, A, x = o.max_chain_length, R = o.strstart, M = o.prev_length, j = o.nice_match, C = o.strstart > o.w_size - Q ? o.strstart - (o.w_size - Q) : 0, G = o.window, K = o.w_mask, W = o.prev, X = o.strstart + H, st = G[R + M - 1], rt = G[R + M];
4030
4019
  o.prev_length >= o.good_match && (x >>= 2), j > o.lookahead && (j = o.lookahead);
4031
4020
  do
4032
- if (G[(P = B) + M] === rt && G[P + M - 1] === st && G[P] === G[R] && G[++P] === G[R + 1]) {
4033
- R += 2, P++;
4021
+ if (G[(z = B) + M] === rt && G[z + M - 1] === st && G[z] === G[R] && G[++z] === G[R + 1]) {
4022
+ R += 2, z++;
4034
4023
  do
4035
4024
  ;
4036
- while (G[++R] === G[++P] && G[++R] === G[++P] && G[++R] === G[++P] && G[++R] === G[++P] && G[++R] === G[++P] && G[++R] === G[++P] && G[++R] === G[++P] && G[++R] === G[++P] && R < X);
4025
+ while (G[++R] === G[++z] && G[++R] === G[++z] && G[++R] === G[++z] && G[++R] === G[++z] && G[++R] === G[++z] && G[++R] === G[++z] && G[++R] === G[++z] && G[++R] === G[++z] && R < X);
4037
4026
  if (A = H - (X - R), R = X - H, M < A) {
4038
4027
  if (o.match_start = B, j <= (M = A)) break;
4039
4028
  st = G[R + M - 1], rt = G[R + M];
@@ -4042,26 +4031,26 @@ function Hi() {
4042
4031
  while ((B = W[B & K]) > C && --x != 0);
4043
4032
  return M <= o.lookahead ? M : o.lookahead;
4044
4033
  }
4045
- function ut(o) {
4046
- var B, P, A, x, R, M, j, C, G, K, W = o.w_size;
4034
+ function ot(o) {
4035
+ var B, z, A, x, R, M, j, C, G, K, W = o.w_size;
4047
4036
  do {
4048
4037
  if (x = o.window_size - o.lookahead - o.strstart, o.strstart >= W + (W - Q)) {
4049
- for (u.arraySet(o.window, o.window, W, W, 0), o.match_start -= W, o.strstart -= W, o.block_start -= W, B = P = o.hash_size; A = o.head[--B], o.head[B] = W <= A ? A - W : 0, --P; ) ;
4050
- for (B = P = W; A = o.prev[--B], o.prev[B] = W <= A ? A - W : 0, --P; ) ;
4038
+ for (u.arraySet(o.window, o.window, W, W, 0), o.match_start -= W, o.strstart -= W, o.block_start -= W, B = z = o.hash_size; A = o.head[--B], o.head[B] = W <= A ? A - W : 0, --z; ) ;
4039
+ for (B = z = W; A = o.prev[--B], o.prev[B] = W <= A ? A - W : 0, --z; ) ;
4051
4040
  x += W;
4052
4041
  }
4053
4042
  if (o.strm.avail_in === 0) break;
4054
- if (M = o.strm, j = o.window, C = o.strstart + o.lookahead, G = x, K = void 0, K = M.avail_in, G < K && (K = G), P = K === 0 ? 0 : (M.avail_in -= K, u.arraySet(j, M.input, M.next_in, K, C), M.state.wrap === 1 ? M.adler = p(M.adler, j, K, C) : M.state.wrap === 2 && (M.adler = w(M.adler, j, K, C)), M.next_in += K, M.total_in += K, K), o.lookahead += P, o.lookahead + o.insert >= D) for (R = o.strstart - o.insert, o.ins_h = o.window[R], o.ins_h = (o.ins_h << o.hash_shift ^ o.window[R + 1]) & o.hash_mask; o.insert && (o.ins_h = (o.ins_h << o.hash_shift ^ o.window[R + D - 1]) & o.hash_mask, o.prev[R & o.w_mask] = o.head[o.ins_h], o.head[o.ins_h] = R, R++, o.insert--, !(o.lookahead + o.insert < D)); ) ;
4043
+ if (M = o.strm, j = o.window, C = o.strstart + o.lookahead, G = x, K = void 0, K = M.avail_in, G < K && (K = G), z = K === 0 ? 0 : (M.avail_in -= K, u.arraySet(j, M.input, M.next_in, K, C), M.state.wrap === 1 ? M.adler = p(M.adler, j, K, C) : M.state.wrap === 2 && (M.adler = w(M.adler, j, K, C)), M.next_in += K, M.total_in += K, K), o.lookahead += z, o.lookahead + o.insert >= D) for (R = o.strstart - o.insert, o.ins_h = o.window[R], o.ins_h = (o.ins_h << o.hash_shift ^ o.window[R + 1]) & o.hash_mask; o.insert && (o.ins_h = (o.ins_h << o.hash_shift ^ o.window[R + D - 1]) & o.hash_mask, o.prev[R & o.w_mask] = o.head[o.ins_h], o.head[o.ins_h] = R, R++, o.insert--, !(o.lookahead + o.insert < D)); ) ;
4055
4044
  } while (o.lookahead < Q && o.strm.avail_in !== 0);
4056
4045
  }
4057
4046
  function pt(o, B) {
4058
- for (var P, A; ; ) {
4047
+ for (var z, A; ; ) {
4059
4048
  if (o.lookahead < Q) {
4060
- if (ut(o), o.lookahead < Q && B === E) return d;
4049
+ if (ot(o), o.lookahead < Q && B === E) return d;
4061
4050
  if (o.lookahead === 0) break;
4062
4051
  }
4063
- if (P = 0, o.lookahead >= D && (o.ins_h = (o.ins_h << o.hash_shift ^ o.window[o.strstart + D - 1]) & o.hash_mask, P = o.prev[o.strstart & o.w_mask] = o.head[o.ins_h], o.head[o.ins_h] = o.strstart), P !== 0 && o.strstart - P <= o.w_size - Q && (o.match_length = Z(o, P)), o.match_length >= D) if (A = l._tr_tally(o, o.strstart - o.match_start, o.match_length - D), o.lookahead -= o.match_length, o.match_length <= o.max_lazy_match && o.lookahead >= D) {
4064
- for (o.match_length--; o.strstart++, o.ins_h = (o.ins_h << o.hash_shift ^ o.window[o.strstart + D - 1]) & o.hash_mask, P = o.prev[o.strstart & o.w_mask] = o.head[o.ins_h], o.head[o.ins_h] = o.strstart, --o.match_length != 0; ) ;
4052
+ if (z = 0, o.lookahead >= D && (o.ins_h = (o.ins_h << o.hash_shift ^ o.window[o.strstart + D - 1]) & o.hash_mask, z = o.prev[o.strstart & o.w_mask] = o.head[o.ins_h], o.head[o.ins_h] = o.strstart), z !== 0 && o.strstart - z <= o.w_size - Q && (o.match_length = Z(o, z)), o.match_length >= D) if (A = l._tr_tally(o, o.strstart - o.match_start, o.match_length - D), o.lookahead -= o.match_length, o.match_length <= o.max_lazy_match && o.lookahead >= D) {
4053
+ for (o.match_length--; o.strstart++, o.ins_h = (o.ins_h << o.hash_shift ^ o.window[o.strstart + D - 1]) & o.hash_mask, z = o.prev[o.strstart & o.w_mask] = o.head[o.ins_h], o.head[o.ins_h] = o.strstart, --o.match_length != 0; ) ;
4065
4054
  o.strstart++;
4066
4055
  } else o.strstart += o.match_length, o.match_length = 0, o.ins_h = o.window[o.strstart], o.ins_h = (o.ins_h << o.hash_shift ^ o.window[o.strstart + 1]) & o.hash_mask;
4067
4056
  else A = l._tr_tally(o, 0, o.window[o.strstart]), o.lookahead--, o.strstart++;
@@ -4070,13 +4059,13 @@ function Hi() {
4070
4059
  return o.insert = o.strstart < D - 1 ? o.strstart : D - 1, B === T ? (U(o, !0), o.strm.avail_out === 0 ? tt : $) : o.last_lit && (U(o, !1), o.strm.avail_out === 0) ? d : L;
4071
4060
  }
4072
4061
  function nt(o, B) {
4073
- for (var P, A, x; ; ) {
4062
+ for (var z, A, x; ; ) {
4074
4063
  if (o.lookahead < Q) {
4075
- if (ut(o), o.lookahead < Q && B === E) return d;
4064
+ if (ot(o), o.lookahead < Q && B === E) return d;
4076
4065
  if (o.lookahead === 0) break;
4077
4066
  }
4078
- if (P = 0, o.lookahead >= D && (o.ins_h = (o.ins_h << o.hash_shift ^ o.window[o.strstart + D - 1]) & o.hash_mask, P = o.prev[o.strstart & o.w_mask] = o.head[o.ins_h], o.head[o.ins_h] = o.strstart), o.prev_length = o.match_length, o.prev_match = o.match_start, o.match_length = D - 1, P !== 0 && o.prev_length < o.max_lazy_match && o.strstart - P <= o.w_size - Q && (o.match_length = Z(o, P), o.match_length <= 5 && (o.strategy === 1 || o.match_length === D && 4096 < o.strstart - o.match_start) && (o.match_length = D - 1)), o.prev_length >= D && o.match_length <= o.prev_length) {
4079
- for (x = o.strstart + o.lookahead - D, A = l._tr_tally(o, o.strstart - 1 - o.prev_match, o.prev_length - D), o.lookahead -= o.prev_length - 1, o.prev_length -= 2; ++o.strstart <= x && (o.ins_h = (o.ins_h << o.hash_shift ^ o.window[o.strstart + D - 1]) & o.hash_mask, P = o.prev[o.strstart & o.w_mask] = o.head[o.ins_h], o.head[o.ins_h] = o.strstart), --o.prev_length != 0; ) ;
4067
+ if (z = 0, o.lookahead >= D && (o.ins_h = (o.ins_h << o.hash_shift ^ o.window[o.strstart + D - 1]) & o.hash_mask, z = o.prev[o.strstart & o.w_mask] = o.head[o.ins_h], o.head[o.ins_h] = o.strstart), o.prev_length = o.match_length, o.prev_match = o.match_start, o.match_length = D - 1, z !== 0 && o.prev_length < o.max_lazy_match && o.strstart - z <= o.w_size - Q && (o.match_length = Z(o, z), o.match_length <= 5 && (o.strategy === 1 || o.match_length === D && 4096 < o.strstart - o.match_start) && (o.match_length = D - 1)), o.prev_length >= D && o.match_length <= o.prev_length) {
4068
+ for (x = o.strstart + o.lookahead - D, A = l._tr_tally(o, o.strstart - 1 - o.prev_match, o.prev_length - D), o.lookahead -= o.prev_length - 1, o.prev_length -= 2; ++o.strstart <= x && (o.ins_h = (o.ins_h << o.hash_shift ^ o.window[o.strstart + D - 1]) & o.hash_mask, z = o.prev[o.strstart & o.w_mask] = o.head[o.ins_h], o.head[o.ins_h] = o.strstart), --o.prev_length != 0; ) ;
4080
4069
  if (o.match_available = 0, o.match_length = D - 1, o.strstart++, A && (U(o, !1), o.strm.avail_out === 0)) return d;
4081
4070
  } else if (o.match_available) {
4082
4071
  if ((A = l._tr_tally(o, 0, o.window[o.strstart - 1])) && U(o, !1), o.strstart++, o.lookahead--, o.strm.avail_out === 0) return d;
@@ -4084,54 +4073,54 @@ function Hi() {
4084
4073
  }
4085
4074
  return o.match_available && (A = l._tr_tally(o, 0, o.window[o.strstart - 1]), o.match_available = 0), o.insert = o.strstart < D - 1 ? o.strstart : D - 1, B === T ? (U(o, !0), o.strm.avail_out === 0 ? tt : $) : o.last_lit && (U(o, !1), o.strm.avail_out === 0) ? d : L;
4086
4075
  }
4087
- function it(o, B, P, A, x) {
4088
- this.good_length = o, this.max_lazy = B, this.nice_length = P, this.max_chain = A, this.func = x;
4076
+ function it(o, B, z, A, x) {
4077
+ this.good_length = o, this.max_lazy = B, this.nice_length = z, this.max_chain = A, this.func = x;
4089
4078
  }
4090
- function ft() {
4091
- this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = f, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new u.Buf16(2 * O), this.dyn_dtree = new u.Buf16(2 * (2 * m + 1)), this.bl_tree = new u.Buf16(2 * (2 * b + 1)), J(this.dyn_ltree), J(this.dyn_dtree), J(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new u.Buf16(F + 1), this.heap = new u.Buf16(2 * c + 1), J(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new u.Buf16(2 * c + 1), J(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
4079
+ function ht() {
4080
+ this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = h, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new u.Buf16(2 * O), this.dyn_dtree = new u.Buf16(2 * (2 * m + 1)), this.bl_tree = new u.Buf16(2 * (2 * b + 1)), J(this.dyn_ltree), J(this.dyn_dtree), J(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new u.Buf16(F + 1), this.heap = new u.Buf16(2 * c + 1), J(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new u.Buf16(2 * c + 1), J(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
4092
4081
  }
4093
- function lt(o) {
4082
+ function ut(o) {
4094
4083
  var B;
4095
- return o && o.state ? (o.total_in = o.total_out = 0, o.data_type = h, (B = o.state).pending = 0, B.pending_out = 0, B.wrap < 0 && (B.wrap = -B.wrap), B.status = B.wrap ? I : z, o.adler = B.wrap === 2 ? 0 : 1, B.last_flush = E, l._tr_init(B), _) : et(o, k);
4084
+ return o && o.state ? (o.total_in = o.total_out = 0, o.data_type = f, (B = o.state).pending = 0, B.pending_out = 0, B.wrap < 0 && (B.wrap = -B.wrap), B.status = B.wrap ? I : P, o.adler = B.wrap === 2 ? 0 : 1, B.last_flush = E, l._tr_init(B), _) : et(o, k);
4096
4085
  }
4097
4086
  function vt(o) {
4098
- var B = lt(o);
4099
- return B === _ && (function(P) {
4100
- P.window_size = 2 * P.w_size, J(P.head), P.max_lazy_match = i[P.level].max_lazy, P.good_match = i[P.level].good_length, P.nice_match = i[P.level].nice_length, P.max_chain_length = i[P.level].max_chain, P.strstart = 0, P.block_start = 0, P.lookahead = 0, P.insert = 0, P.match_length = P.prev_length = D - 1, P.match_available = 0, P.ins_h = 0;
4087
+ var B = ut(o);
4088
+ return B === _ && (function(z) {
4089
+ z.window_size = 2 * z.w_size, J(z.head), z.max_lazy_match = i[z.level].max_lazy, z.good_match = i[z.level].good_length, z.nice_match = i[z.level].nice_length, z.max_chain_length = i[z.level].max_chain, z.strstart = 0, z.block_start = 0, z.lookahead = 0, z.insert = 0, z.match_length = z.prev_length = D - 1, z.match_available = 0, z.ins_h = 0;
4101
4090
  })(o.state), B;
4102
4091
  }
4103
- function bt(o, B, P, A, x, R) {
4092
+ function bt(o, B, z, A, x, R) {
4104
4093
  if (!o) return k;
4105
4094
  var M = 1;
4106
- if (B === g && (B = 6), A < 0 ? (M = 0, A = -A) : 15 < A && (M = 2, A -= 16), x < 1 || a < x || P !== f || A < 8 || 15 < A || B < 0 || 9 < B || R < 0 || y < R) return et(o, k);
4095
+ if (B === g && (B = 6), A < 0 ? (M = 0, A = -A) : 15 < A && (M = 2, A -= 16), x < 1 || a < x || z !== h || A < 8 || 15 < A || B < 0 || 9 < B || R < 0 || y < R) return et(o, k);
4107
4096
  A === 8 && (A = 9);
4108
- var j = new ft();
4109
- return (o.state = j).strm = o, j.wrap = M, j.gzhead = null, j.w_bits = A, j.w_size = 1 << j.w_bits, j.w_mask = j.w_size - 1, j.hash_bits = x + 7, j.hash_size = 1 << j.hash_bits, j.hash_mask = j.hash_size - 1, j.hash_shift = ~~((j.hash_bits + D - 1) / D), j.window = new u.Buf8(2 * j.w_size), j.head = new u.Buf16(j.hash_size), j.prev = new u.Buf16(j.w_size), j.lit_bufsize = 1 << x + 6, j.pending_buf_size = 4 * j.lit_bufsize, j.pending_buf = new u.Buf8(j.pending_buf_size), j.d_buf = 1 * j.lit_bufsize, j.l_buf = 3 * j.lit_bufsize, j.level = B, j.strategy = R, j.method = P, vt(o);
4097
+ var j = new ht();
4098
+ return (o.state = j).strm = o, j.wrap = M, j.gzhead = null, j.w_bits = A, j.w_size = 1 << j.w_bits, j.w_mask = j.w_size - 1, j.hash_bits = x + 7, j.hash_size = 1 << j.hash_bits, j.hash_mask = j.hash_size - 1, j.hash_shift = ~~((j.hash_bits + D - 1) / D), j.window = new u.Buf8(2 * j.w_size), j.head = new u.Buf16(j.hash_size), j.prev = new u.Buf16(j.w_size), j.lit_bufsize = 1 << x + 6, j.pending_buf_size = 4 * j.lit_bufsize, j.pending_buf = new u.Buf8(j.pending_buf_size), j.d_buf = 1 * j.lit_bufsize, j.l_buf = 3 * j.lit_bufsize, j.level = B, j.strategy = R, j.method = z, vt(o);
4110
4099
  }
4111
4100
  i = [new it(0, 0, 0, 0, function(o, B) {
4112
- var P = 65535;
4113
- for (P > o.pending_buf_size - 5 && (P = o.pending_buf_size - 5); ; ) {
4101
+ var z = 65535;
4102
+ for (z > o.pending_buf_size - 5 && (z = o.pending_buf_size - 5); ; ) {
4114
4103
  if (o.lookahead <= 1) {
4115
- if (ut(o), o.lookahead === 0 && B === E) return d;
4104
+ if (ot(o), o.lookahead === 0 && B === E) return d;
4116
4105
  if (o.lookahead === 0) break;
4117
4106
  }
4118
4107
  o.strstart += o.lookahead, o.lookahead = 0;
4119
- var A = o.block_start + P;
4108
+ var A = o.block_start + z;
4120
4109
  if ((o.strstart === 0 || o.strstart >= A) && (o.lookahead = o.strstart - A, o.strstart = A, U(o, !1), o.strm.avail_out === 0) || o.strstart - o.block_start >= o.w_size - Q && (U(o, !1), o.strm.avail_out === 0)) return d;
4121
4110
  }
4122
4111
  return o.insert = 0, B === T ? (U(o, !0), o.strm.avail_out === 0 ? tt : $) : (o.strstart > o.block_start && (U(o, !1), o.strm.avail_out), d);
4123
4112
  }), new it(4, 4, 8, 4, pt), new it(4, 5, 16, 8, pt), new it(4, 6, 32, 32, pt), new it(4, 4, 16, 16, nt), new it(8, 16, 32, 32, nt), new it(8, 16, 128, 128, nt), new it(8, 32, 128, 256, nt), new it(32, 128, 258, 1024, nt), new it(32, 258, 258, 4096, nt)], r.deflateInit = function(o, B) {
4124
- return bt(o, B, f, 15, 8, 0);
4125
- }, r.deflateInit2 = bt, r.deflateReset = vt, r.deflateResetKeep = lt, r.deflateSetHeader = function(o, B) {
4113
+ return bt(o, B, h, 15, 8, 0);
4114
+ }, r.deflateInit2 = bt, r.deflateReset = vt, r.deflateResetKeep = ut, r.deflateSetHeader = function(o, B) {
4126
4115
  return o && o.state ? o.state.wrap !== 2 ? k : (o.state.gzhead = B, _) : k;
4127
4116
  }, r.deflate = function(o, B) {
4128
- var P, A, x, R;
4117
+ var z, A, x, R;
4129
4118
  if (!o || !o.state || 5 < B || B < 0) return o ? et(o, k) : k;
4130
4119
  if (A = o.state, !o.output || !o.input && o.avail_in !== 0 || A.status === 666 && B !== T) return et(o, o.avail_out === 0 ? -5 : k);
4131
- if (A.strm = o, P = A.last_flush, A.last_flush = B, A.status === I) if (A.wrap === 2) o.adler = 0, Y(A, 31), Y(A, 139), Y(A, 8), A.gzhead ? (Y(A, (A.gzhead.text ? 1 : 0) + (A.gzhead.hcrc ? 2 : 0) + (A.gzhead.extra ? 4 : 0) + (A.gzhead.name ? 8 : 0) + (A.gzhead.comment ? 16 : 0)), Y(A, 255 & A.gzhead.time), Y(A, A.gzhead.time >> 8 & 255), Y(A, A.gzhead.time >> 16 & 255), Y(A, A.gzhead.time >> 24 & 255), Y(A, A.level === 9 ? 2 : 2 <= A.strategy || A.level < 2 ? 4 : 0), Y(A, 255 & A.gzhead.os), A.gzhead.extra && A.gzhead.extra.length && (Y(A, 255 & A.gzhead.extra.length), Y(A, A.gzhead.extra.length >> 8 & 255)), A.gzhead.hcrc && (o.adler = w(o.adler, A.pending_buf, A.pending, 0)), A.gzindex = 0, A.status = 69) : (Y(A, 0), Y(A, 0), Y(A, 0), Y(A, 0), Y(A, 0), Y(A, A.level === 9 ? 2 : 2 <= A.strategy || A.level < 2 ? 4 : 0), Y(A, 3), A.status = z);
4120
+ if (A.strm = o, z = A.last_flush, A.last_flush = B, A.status === I) if (A.wrap === 2) o.adler = 0, Y(A, 31), Y(A, 139), Y(A, 8), A.gzhead ? (Y(A, (A.gzhead.text ? 1 : 0) + (A.gzhead.hcrc ? 2 : 0) + (A.gzhead.extra ? 4 : 0) + (A.gzhead.name ? 8 : 0) + (A.gzhead.comment ? 16 : 0)), Y(A, 255 & A.gzhead.time), Y(A, A.gzhead.time >> 8 & 255), Y(A, A.gzhead.time >> 16 & 255), Y(A, A.gzhead.time >> 24 & 255), Y(A, A.level === 9 ? 2 : 2 <= A.strategy || A.level < 2 ? 4 : 0), Y(A, 255 & A.gzhead.os), A.gzhead.extra && A.gzhead.extra.length && (Y(A, 255 & A.gzhead.extra.length), Y(A, A.gzhead.extra.length >> 8 & 255)), A.gzhead.hcrc && (o.adler = w(o.adler, A.pending_buf, A.pending, 0)), A.gzindex = 0, A.status = 69) : (Y(A, 0), Y(A, 0), Y(A, 0), Y(A, 0), Y(A, 0), Y(A, A.level === 9 ? 2 : 2 <= A.strategy || A.level < 2 ? 4 : 0), Y(A, 3), A.status = P);
4132
4121
  else {
4133
- var M = f + (A.w_bits - 8 << 4) << 8;
4134
- M |= (2 <= A.strategy || A.level < 2 ? 0 : A.level < 6 ? 1 : A.level === 6 ? 2 : 3) << 6, A.strstart !== 0 && (M |= 32), M += 31 - M % 31, A.status = z, V(A, M), A.strstart !== 0 && (V(A, o.adler >>> 16), V(A, 65535 & o.adler)), o.adler = 1;
4122
+ var M = h + (A.w_bits - 8 << 4) << 8;
4123
+ M |= (2 <= A.strategy || A.level < 2 ? 0 : A.level < 6 ? 1 : A.level === 6 ? 2 : 3) << 6, A.strstart !== 0 && (M |= 32), M += 31 - M % 31, A.status = P, V(A, M), A.strstart !== 0 && (V(A, o.adler >>> 16), V(A, 65535 & o.adler)), o.adler = 1;
4135
4124
  }
4136
4125
  if (A.status === 69) if (A.gzhead.extra) {
4137
4126
  for (x = A.pending; A.gzindex < (65535 & A.gzhead.extra.length) && (A.pending !== A.pending_buf_size || (A.gzhead.hcrc && A.pending > x && (o.adler = w(o.adler, A.pending_buf, A.pending - x, x)), N(o), x = A.pending, A.pending !== A.pending_buf_size)); ) Y(A, 255 & A.gzhead.extra[A.gzindex]), A.gzindex++;
@@ -4159,14 +4148,14 @@ function Hi() {
4159
4148
  } while (R !== 0);
4160
4149
  A.gzhead.hcrc && A.pending > x && (o.adler = w(o.adler, A.pending_buf, A.pending - x, x)), R === 0 && (A.status = 103);
4161
4150
  } else A.status = 103;
4162
- if (A.status === 103 && (A.gzhead.hcrc ? (A.pending + 2 > A.pending_buf_size && N(o), A.pending + 2 <= A.pending_buf_size && (Y(A, 255 & o.adler), Y(A, o.adler >> 8 & 255), o.adler = 0, A.status = z)) : A.status = z), A.pending !== 0) {
4151
+ if (A.status === 103 && (A.gzhead.hcrc ? (A.pending + 2 > A.pending_buf_size && N(o), A.pending + 2 <= A.pending_buf_size && (Y(A, 255 & o.adler), Y(A, o.adler >> 8 & 255), o.adler = 0, A.status = P)) : A.status = P), A.pending !== 0) {
4163
4152
  if (N(o), o.avail_out === 0) return A.last_flush = -1, _;
4164
- } else if (o.avail_in === 0 && q(B) <= q(P) && B !== T) return et(o, -5);
4153
+ } else if (o.avail_in === 0 && q(B) <= q(z) && B !== T) return et(o, -5);
4165
4154
  if (A.status === 666 && o.avail_in !== 0) return et(o, -5);
4166
4155
  if (o.avail_in !== 0 || A.lookahead !== 0 || B !== E && A.status !== 666) {
4167
4156
  var j = A.strategy === 2 ? (function(C, G) {
4168
4157
  for (var K; ; ) {
4169
- if (C.lookahead === 0 && (ut(C), C.lookahead === 0)) {
4158
+ if (C.lookahead === 0 && (ot(C), C.lookahead === 0)) {
4170
4159
  if (G === E) return d;
4171
4160
  break;
4172
4161
  }
@@ -4176,7 +4165,7 @@ function Hi() {
4176
4165
  })(A, B) : A.strategy === 3 ? (function(C, G) {
4177
4166
  for (var K, W, X, st, rt = C.window; ; ) {
4178
4167
  if (C.lookahead <= H) {
4179
- if (ut(C), C.lookahead <= H && G === E) return d;
4168
+ if (ot(C), C.lookahead <= H && G === E) return d;
4180
4169
  if (C.lookahead === 0) break;
4181
4170
  }
4182
4171
  if (C.match_length = 0, C.lookahead >= D && 0 < C.strstart && (W = rt[X = C.strstart - 1]) === rt[++X] && W === rt[++X] && W === rt[++X]) {
@@ -4196,15 +4185,15 @@ function Hi() {
4196
4185
  return B !== T ? _ : A.wrap <= 0 ? 1 : (A.wrap === 2 ? (Y(A, 255 & o.adler), Y(A, o.adler >> 8 & 255), Y(A, o.adler >> 16 & 255), Y(A, o.adler >> 24 & 255), Y(A, 255 & o.total_in), Y(A, o.total_in >> 8 & 255), Y(A, o.total_in >> 16 & 255), Y(A, o.total_in >> 24 & 255)) : (V(A, o.adler >>> 16), V(A, 65535 & o.adler)), N(o), 0 < A.wrap && (A.wrap = -A.wrap), A.pending !== 0 ? _ : 1);
4197
4186
  }, r.deflateEnd = function(o) {
4198
4187
  var B;
4199
- return o && o.state ? (B = o.state.status) !== I && B !== 69 && B !== 73 && B !== 91 && B !== 103 && B !== z && B !== 666 ? et(o, k) : (o.state = null, B === z ? et(o, -3) : _) : k;
4188
+ return o && o.state ? (B = o.state.status) !== I && B !== 69 && B !== 73 && B !== 91 && B !== 103 && B !== P && B !== 666 ? et(o, k) : (o.state = null, B === P ? et(o, -3) : _) : k;
4200
4189
  }, r.deflateSetDictionary = function(o, B) {
4201
- var P, A, x, R, M, j, C, G, K = B.length;
4202
- if (!o || !o.state || (R = (P = o.state).wrap) === 2 || R === 1 && P.status !== I || P.lookahead) return k;
4203
- for (R === 1 && (o.adler = p(o.adler, B, K, 0)), P.wrap = 0, K >= P.w_size && (R === 0 && (J(P.head), P.strstart = 0, P.block_start = 0, P.insert = 0), G = new u.Buf8(P.w_size), u.arraySet(G, B, K - P.w_size, P.w_size, 0), B = G, K = P.w_size), M = o.avail_in, j = o.next_in, C = o.input, o.avail_in = K, o.next_in = 0, o.input = B, ut(P); P.lookahead >= D; ) {
4204
- for (A = P.strstart, x = P.lookahead - (D - 1); P.ins_h = (P.ins_h << P.hash_shift ^ P.window[A + D - 1]) & P.hash_mask, P.prev[A & P.w_mask] = P.head[P.ins_h], P.head[P.ins_h] = A, A++, --x; ) ;
4205
- P.strstart = A, P.lookahead = D - 1, ut(P);
4190
+ var z, A, x, R, M, j, C, G, K = B.length;
4191
+ if (!o || !o.state || (R = (z = o.state).wrap) === 2 || R === 1 && z.status !== I || z.lookahead) return k;
4192
+ for (R === 1 && (o.adler = p(o.adler, B, K, 0)), z.wrap = 0, K >= z.w_size && (R === 0 && (J(z.head), z.strstart = 0, z.block_start = 0, z.insert = 0), G = new u.Buf8(z.w_size), u.arraySet(G, B, K - z.w_size, z.w_size, 0), B = G, K = z.w_size), M = o.avail_in, j = o.next_in, C = o.input, o.avail_in = K, o.next_in = 0, o.input = B, ot(z); z.lookahead >= D; ) {
4193
+ for (A = z.strstart, x = z.lookahead - (D - 1); z.ins_h = (z.ins_h << z.hash_shift ^ z.window[A + D - 1]) & z.hash_mask, z.prev[A & z.w_mask] = z.head[z.ins_h], z.head[z.ins_h] = A, A++, --x; ) ;
4194
+ z.strstart = A, z.lookahead = D - 1, ot(z);
4206
4195
  }
4207
- return P.strstart += P.lookahead, P.block_start = P.strstart, P.insert = P.lookahead, P.lookahead = 0, P.match_length = P.prev_length = D - 1, P.match_available = 0, o.next_in = j, o.input = C, o.avail_in = M, P.wrap = R, _;
4196
+ return z.strstart += z.lookahead, z.block_start = z.strstart, z.insert = z.lookahead, z.lookahead = 0, z.match_length = z.prev_length = D - 1, z.match_available = 0, o.next_in = j, o.input = C, o.avail_in = M, z.wrap = R, _;
4208
4197
  }, r.deflateInfo = "pako deflate (from Nodeca project)";
4209
4198
  }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(e, s, r) {
4210
4199
  s.exports = function() {
@@ -4212,16 +4201,16 @@ function Hi() {
4212
4201
  };
4213
4202
  }, {}], 48: [function(e, s, r) {
4214
4203
  s.exports = function(i, u) {
4215
- var l, p, w, v, E, T, _, k, g, y, h, f, a, c, m, b, O, F, D, H, Q, I, z, d, L;
4216
- l = i.state, p = i.next_in, d = i.input, w = p + (i.avail_in - 5), v = i.next_out, L = i.output, E = v - (u - i.avail_out), T = v + (i.avail_out - 257), _ = l.dmax, k = l.wsize, g = l.whave, y = l.wnext, h = l.window, f = l.hold, a = l.bits, c = l.lencode, m = l.distcode, b = (1 << l.lenbits) - 1, O = (1 << l.distbits) - 1;
4204
+ var l, p, w, v, E, T, _, k, g, y, f, h, a, c, m, b, O, F, D, H, Q, I, P, d, L;
4205
+ l = i.state, p = i.next_in, d = i.input, w = p + (i.avail_in - 5), v = i.next_out, L = i.output, E = v - (u - i.avail_out), T = v + (i.avail_out - 257), _ = l.dmax, k = l.wsize, g = l.whave, y = l.wnext, f = l.window, h = l.hold, a = l.bits, c = l.lencode, m = l.distcode, b = (1 << l.lenbits) - 1, O = (1 << l.distbits) - 1;
4217
4206
  t: do {
4218
- a < 15 && (f += d[p++] << a, a += 8, f += d[p++] << a, a += 8), F = c[f & b];
4207
+ a < 15 && (h += d[p++] << a, a += 8, h += d[p++] << a, a += 8), F = c[h & b];
4219
4208
  e: for (; ; ) {
4220
- if (f >>>= D = F >>> 24, a -= D, (D = F >>> 16 & 255) === 0) L[v++] = 65535 & F;
4209
+ if (h >>>= D = F >>> 24, a -= D, (D = F >>> 16 & 255) === 0) L[v++] = 65535 & F;
4221
4210
  else {
4222
4211
  if (!(16 & D)) {
4223
4212
  if ((64 & D) == 0) {
4224
- F = c[(65535 & F) + (f & (1 << D) - 1)];
4213
+ F = c[(65535 & F) + (h & (1 << D) - 1)];
4225
4214
  continue e;
4226
4215
  }
4227
4216
  if (32 & D) {
@@ -4231,44 +4220,44 @@ function Hi() {
4231
4220
  i.msg = "invalid literal/length code", l.mode = 30;
4232
4221
  break t;
4233
4222
  }
4234
- H = 65535 & F, (D &= 15) && (a < D && (f += d[p++] << a, a += 8), H += f & (1 << D) - 1, f >>>= D, a -= D), a < 15 && (f += d[p++] << a, a += 8, f += d[p++] << a, a += 8), F = m[f & O];
4223
+ H = 65535 & F, (D &= 15) && (a < D && (h += d[p++] << a, a += 8), H += h & (1 << D) - 1, h >>>= D, a -= D), a < 15 && (h += d[p++] << a, a += 8, h += d[p++] << a, a += 8), F = m[h & O];
4235
4224
  n: for (; ; ) {
4236
- if (f >>>= D = F >>> 24, a -= D, !(16 & (D = F >>> 16 & 255))) {
4225
+ if (h >>>= D = F >>> 24, a -= D, !(16 & (D = F >>> 16 & 255))) {
4237
4226
  if ((64 & D) == 0) {
4238
- F = m[(65535 & F) + (f & (1 << D) - 1)];
4227
+ F = m[(65535 & F) + (h & (1 << D) - 1)];
4239
4228
  continue n;
4240
4229
  }
4241
4230
  i.msg = "invalid distance code", l.mode = 30;
4242
4231
  break t;
4243
4232
  }
4244
- if (Q = 65535 & F, a < (D &= 15) && (f += d[p++] << a, (a += 8) < D && (f += d[p++] << a, a += 8)), _ < (Q += f & (1 << D) - 1)) {
4233
+ if (Q = 65535 & F, a < (D &= 15) && (h += d[p++] << a, (a += 8) < D && (h += d[p++] << a, a += 8)), _ < (Q += h & (1 << D) - 1)) {
4245
4234
  i.msg = "invalid distance too far back", l.mode = 30;
4246
4235
  break t;
4247
4236
  }
4248
- if (f >>>= D, a -= D, (D = v - E) < Q) {
4237
+ if (h >>>= D, a -= D, (D = v - E) < Q) {
4249
4238
  if (g < (D = Q - D) && l.sane) {
4250
4239
  i.msg = "invalid distance too far back", l.mode = 30;
4251
4240
  break t;
4252
4241
  }
4253
- if (z = h, (I = 0) === y) {
4242
+ if (P = f, (I = 0) === y) {
4254
4243
  if (I += k - D, D < H) {
4255
- for (H -= D; L[v++] = h[I++], --D; ) ;
4256
- I = v - Q, z = L;
4244
+ for (H -= D; L[v++] = f[I++], --D; ) ;
4245
+ I = v - Q, P = L;
4257
4246
  }
4258
4247
  } else if (y < D) {
4259
4248
  if (I += k + y - D, (D -= y) < H) {
4260
- for (H -= D; L[v++] = h[I++], --D; ) ;
4249
+ for (H -= D; L[v++] = f[I++], --D; ) ;
4261
4250
  if (I = 0, y < H) {
4262
- for (H -= D = y; L[v++] = h[I++], --D; ) ;
4263
- I = v - Q, z = L;
4251
+ for (H -= D = y; L[v++] = f[I++], --D; ) ;
4252
+ I = v - Q, P = L;
4264
4253
  }
4265
4254
  }
4266
4255
  } else if (I += y - D, D < H) {
4267
- for (H -= D; L[v++] = h[I++], --D; ) ;
4268
- I = v - Q, z = L;
4256
+ for (H -= D; L[v++] = f[I++], --D; ) ;
4257
+ I = v - Q, P = L;
4269
4258
  }
4270
- for (; 2 < H; ) L[v++] = z[I++], L[v++] = z[I++], L[v++] = z[I++], H -= 3;
4271
- H && (L[v++] = z[I++], 1 < H && (L[v++] = z[I++]));
4259
+ for (; 2 < H; ) L[v++] = P[I++], L[v++] = P[I++], L[v++] = P[I++], H -= 3;
4260
+ H && (L[v++] = P[I++], 1 < H && (L[v++] = P[I++]));
4272
4261
  } else {
4273
4262
  for (I = v - Q; L[v++] = L[I++], L[v++] = L[I++], L[v++] = L[I++], 2 < (H -= 3); ) ;
4274
4263
  H && (L[v++] = L[I++], 1 < H && (L[v++] = L[I++]));
@@ -4279,53 +4268,53 @@ function Hi() {
4279
4268
  break;
4280
4269
  }
4281
4270
  } while (p < w && v < T);
4282
- p -= H = a >> 3, f &= (1 << (a -= H << 3)) - 1, i.next_in = p, i.next_out = v, i.avail_in = p < w ? w - p + 5 : 5 - (p - w), i.avail_out = v < T ? T - v + 257 : 257 - (v - T), l.hold = f, l.bits = a;
4271
+ p -= H = a >> 3, h &= (1 << (a -= H << 3)) - 1, i.next_in = p, i.next_out = v, i.avail_in = p < w ? w - p + 5 : 5 - (p - w), i.avail_out = v < T ? T - v + 257 : 257 - (v - T), l.hold = h, l.bits = a;
4283
4272
  };
4284
4273
  }, {}], 49: [function(e, s, r) {
4285
4274
  var i = e("../utils/common"), u = e("./adler32"), l = e("./crc32"), p = e("./inffast"), w = e("./inftrees"), v = 1, E = 2, T = 0, _ = -2, k = 1, g = 852, y = 592;
4286
- function h(I) {
4275
+ function f(I) {
4287
4276
  return (I >>> 24 & 255) + (I >>> 8 & 65280) + ((65280 & I) << 8) + ((255 & I) << 24);
4288
4277
  }
4289
- function f() {
4278
+ function h() {
4290
4279
  this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new i.Buf16(320), this.work = new i.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
4291
4280
  }
4292
4281
  function a(I) {
4293
- var z;
4294
- return I && I.state ? (z = I.state, I.total_in = I.total_out = z.total = 0, I.msg = "", z.wrap && (I.adler = 1 & z.wrap), z.mode = k, z.last = 0, z.havedict = 0, z.dmax = 32768, z.head = null, z.hold = 0, z.bits = 0, z.lencode = z.lendyn = new i.Buf32(g), z.distcode = z.distdyn = new i.Buf32(y), z.sane = 1, z.back = -1, T) : _;
4282
+ var P;
4283
+ return I && I.state ? (P = I.state, I.total_in = I.total_out = P.total = 0, I.msg = "", P.wrap && (I.adler = 1 & P.wrap), P.mode = k, P.last = 0, P.havedict = 0, P.dmax = 32768, P.head = null, P.hold = 0, P.bits = 0, P.lencode = P.lendyn = new i.Buf32(g), P.distcode = P.distdyn = new i.Buf32(y), P.sane = 1, P.back = -1, T) : _;
4295
4284
  }
4296
4285
  function c(I) {
4297
- var z;
4298
- return I && I.state ? ((z = I.state).wsize = 0, z.whave = 0, z.wnext = 0, a(I)) : _;
4286
+ var P;
4287
+ return I && I.state ? ((P = I.state).wsize = 0, P.whave = 0, P.wnext = 0, a(I)) : _;
4299
4288
  }
4300
- function m(I, z) {
4289
+ function m(I, P) {
4301
4290
  var d, L;
4302
- return I && I.state ? (L = I.state, z < 0 ? (d = 0, z = -z) : (d = 1 + (z >> 4), z < 48 && (z &= 15)), z && (z < 8 || 15 < z) ? _ : (L.window !== null && L.wbits !== z && (L.window = null), L.wrap = d, L.wbits = z, c(I))) : _;
4291
+ return I && I.state ? (L = I.state, P < 0 ? (d = 0, P = -P) : (d = 1 + (P >> 4), P < 48 && (P &= 15)), P && (P < 8 || 15 < P) ? _ : (L.window !== null && L.wbits !== P && (L.window = null), L.wrap = d, L.wbits = P, c(I))) : _;
4303
4292
  }
4304
- function b(I, z) {
4293
+ function b(I, P) {
4305
4294
  var d, L;
4306
- return I ? (L = new f(), (I.state = L).window = null, (d = m(I, z)) !== T && (I.state = null), d) : _;
4295
+ return I ? (L = new h(), (I.state = L).window = null, (d = m(I, P)) !== T && (I.state = null), d) : _;
4307
4296
  }
4308
4297
  var O, F, D = !0;
4309
4298
  function H(I) {
4310
4299
  if (D) {
4311
- var z;
4312
- for (O = new i.Buf32(512), F = new i.Buf32(32), z = 0; z < 144; ) I.lens[z++] = 8;
4313
- for (; z < 256; ) I.lens[z++] = 9;
4314
- for (; z < 280; ) I.lens[z++] = 7;
4315
- for (; z < 288; ) I.lens[z++] = 8;
4316
- for (w(v, I.lens, 0, 288, O, 0, I.work, { bits: 9 }), z = 0; z < 32; ) I.lens[z++] = 5;
4300
+ var P;
4301
+ for (O = new i.Buf32(512), F = new i.Buf32(32), P = 0; P < 144; ) I.lens[P++] = 8;
4302
+ for (; P < 256; ) I.lens[P++] = 9;
4303
+ for (; P < 280; ) I.lens[P++] = 7;
4304
+ for (; P < 288; ) I.lens[P++] = 8;
4305
+ for (w(v, I.lens, 0, 288, O, 0, I.work, { bits: 9 }), P = 0; P < 32; ) I.lens[P++] = 5;
4317
4306
  w(E, I.lens, 0, 32, F, 0, I.work, { bits: 5 }), D = !1;
4318
4307
  }
4319
4308
  I.lencode = O, I.lenbits = 9, I.distcode = F, I.distbits = 5;
4320
4309
  }
4321
- function Q(I, z, d, L) {
4310
+ function Q(I, P, d, L) {
4322
4311
  var tt, $ = I.state;
4323
- return $.window === null && ($.wsize = 1 << $.wbits, $.wnext = 0, $.whave = 0, $.window = new i.Buf8($.wsize)), L >= $.wsize ? (i.arraySet($.window, z, d - $.wsize, $.wsize, 0), $.wnext = 0, $.whave = $.wsize) : (L < (tt = $.wsize - $.wnext) && (tt = L), i.arraySet($.window, z, d - L, tt, $.wnext), (L -= tt) ? (i.arraySet($.window, z, d - L, L, 0), $.wnext = L, $.whave = $.wsize) : ($.wnext += tt, $.wnext === $.wsize && ($.wnext = 0), $.whave < $.wsize && ($.whave += tt))), 0;
4312
+ return $.window === null && ($.wsize = 1 << $.wbits, $.wnext = 0, $.whave = 0, $.window = new i.Buf8($.wsize)), L >= $.wsize ? (i.arraySet($.window, P, d - $.wsize, $.wsize, 0), $.wnext = 0, $.whave = $.wsize) : (L < (tt = $.wsize - $.wnext) && (tt = L), i.arraySet($.window, P, d - L, tt, $.wnext), (L -= tt) ? (i.arraySet($.window, P, d - L, L, 0), $.wnext = L, $.whave = $.wsize) : ($.wnext += tt, $.wnext === $.wsize && ($.wnext = 0), $.whave < $.wsize && ($.whave += tt))), 0;
4324
4313
  }
4325
4314
  r.inflateReset = c, r.inflateReset2 = m, r.inflateResetKeep = a, r.inflateInit = function(I) {
4326
4315
  return b(I, 15);
4327
- }, r.inflateInit2 = b, r.inflate = function(I, z) {
4328
- var d, L, tt, $, et, q, J, N, U, Y, V, Z, ut, pt, nt, it, ft, lt, vt, bt, o, B, P, A, x = 0, R = new i.Buf8(4), M = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
4316
+ }, r.inflateInit2 = b, r.inflate = function(I, P) {
4317
+ var d, L, tt, $, et, q, J, N, U, Y, V, Z, ot, pt, nt, it, ht, ut, vt, bt, o, B, z, A, x = 0, R = new i.Buf8(4), M = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
4329
4318
  if (!I || !I.state || !I.output || !I.input && I.avail_in !== 0) return _;
4330
4319
  (d = I.state).mode === 12 && (d.mode = 13), et = I.next_out, tt = I.output, J = I.avail_out, $ = I.next_in, L = I.input, q = I.avail_in, N = d.hold, U = d.bits, Y = q, V = J, B = T;
4331
4320
  t: for (; ; ) switch (d.mode) {
@@ -4428,12 +4417,12 @@ function Hi() {
4428
4417
  if (q === 0) break t;
4429
4418
  q--, N += L[$++] << U, U += 8;
4430
4419
  }
4431
- I.adler = d.check = h(N), U = N = 0, d.mode = 11;
4420
+ I.adler = d.check = f(N), U = N = 0, d.mode = 11;
4432
4421
  case 11:
4433
4422
  if (d.havedict === 0) return I.next_out = et, I.avail_out = J, I.next_in = $, I.avail_in = q, d.hold = N, d.bits = U, 2;
4434
4423
  I.adler = d.check = 1, d.mode = 12;
4435
4424
  case 12:
4436
- if (z === 5 || z === 6) break t;
4425
+ if (P === 5 || P === 6) break t;
4437
4426
  case 13:
4438
4427
  if (d.last) {
4439
4428
  N >>>= 7 & U, U -= 7 & U, d.mode = 27;
@@ -4448,7 +4437,7 @@ function Hi() {
4448
4437
  d.mode = 14;
4449
4438
  break;
4450
4439
  case 1:
4451
- if (H(d), d.mode = 20, z !== 6) break;
4440
+ if (H(d), d.mode = 20, P !== 6) break;
4452
4441
  N >>>= 2, U -= 2;
4453
4442
  break t;
4454
4443
  case 2:
@@ -4468,7 +4457,7 @@ function Hi() {
4468
4457
  I.msg = "invalid stored block lengths", d.mode = 30;
4469
4458
  break;
4470
4459
  }
4471
- if (d.length = 65535 & N, U = N = 0, d.mode = 15, z === 6) break t;
4460
+ if (d.length = 65535 & N, U = N = 0, d.mode = 15, P === 6) break t;
4472
4461
  case 15:
4473
4462
  d.mode = 16;
4474
4463
  case 16:
@@ -4498,20 +4487,20 @@ function Hi() {
4498
4487
  d.lens[M[d.have++]] = 7 & N, N >>>= 3, U -= 3;
4499
4488
  }
4500
4489
  for (; d.have < 19; ) d.lens[M[d.have++]] = 0;
4501
- if (d.lencode = d.lendyn, d.lenbits = 7, P = { bits: d.lenbits }, B = w(0, d.lens, 0, 19, d.lencode, 0, d.work, P), d.lenbits = P.bits, B) {
4490
+ if (d.lencode = d.lendyn, d.lenbits = 7, z = { bits: d.lenbits }, B = w(0, d.lens, 0, 19, d.lencode, 0, d.work, z), d.lenbits = z.bits, B) {
4502
4491
  I.msg = "invalid code lengths set", d.mode = 30;
4503
4492
  break;
4504
4493
  }
4505
4494
  d.have = 0, d.mode = 19;
4506
4495
  case 19:
4507
4496
  for (; d.have < d.nlen + d.ndist; ) {
4508
- for (; it = (x = d.lencode[N & (1 << d.lenbits) - 1]) >>> 16 & 255, ft = 65535 & x, !((nt = x >>> 24) <= U); ) {
4497
+ for (; it = (x = d.lencode[N & (1 << d.lenbits) - 1]) >>> 16 & 255, ht = 65535 & x, !((nt = x >>> 24) <= U); ) {
4509
4498
  if (q === 0) break t;
4510
4499
  q--, N += L[$++] << U, U += 8;
4511
4500
  }
4512
- if (ft < 16) N >>>= nt, U -= nt, d.lens[d.have++] = ft;
4501
+ if (ht < 16) N >>>= nt, U -= nt, d.lens[d.have++] = ht;
4513
4502
  else {
4514
- if (ft === 16) {
4503
+ if (ht === 16) {
4515
4504
  for (A = nt + 2; U < A; ) {
4516
4505
  if (q === 0) break t;
4517
4506
  q--, N += L[$++] << U, U += 8;
@@ -4521,7 +4510,7 @@ function Hi() {
4521
4510
  break;
4522
4511
  }
4523
4512
  o = d.lens[d.have - 1], Z = 3 + (3 & N), N >>>= 2, U -= 2;
4524
- } else if (ft === 17) {
4513
+ } else if (ht === 17) {
4525
4514
  for (A = nt + 3; U < A; ) {
4526
4515
  if (q === 0) break t;
4527
4516
  q--, N += L[$++] << U, U += 8;
@@ -4546,15 +4535,15 @@ function Hi() {
4546
4535
  I.msg = "invalid code -- missing end-of-block", d.mode = 30;
4547
4536
  break;
4548
4537
  }
4549
- if (d.lenbits = 9, P = { bits: d.lenbits }, B = w(v, d.lens, 0, d.nlen, d.lencode, 0, d.work, P), d.lenbits = P.bits, B) {
4538
+ if (d.lenbits = 9, z = { bits: d.lenbits }, B = w(v, d.lens, 0, d.nlen, d.lencode, 0, d.work, z), d.lenbits = z.bits, B) {
4550
4539
  I.msg = "invalid literal/lengths set", d.mode = 30;
4551
4540
  break;
4552
4541
  }
4553
- if (d.distbits = 6, d.distcode = d.distdyn, P = { bits: d.distbits }, B = w(E, d.lens, d.nlen, d.ndist, d.distcode, 0, d.work, P), d.distbits = P.bits, B) {
4542
+ if (d.distbits = 6, d.distcode = d.distdyn, z = { bits: d.distbits }, B = w(E, d.lens, d.nlen, d.ndist, d.distcode, 0, d.work, z), d.distbits = z.bits, B) {
4554
4543
  I.msg = "invalid distances set", d.mode = 30;
4555
4544
  break;
4556
4545
  }
4557
- if (d.mode = 20, z === 6) break t;
4546
+ if (d.mode = 20, P === 6) break t;
4558
4547
  case 20:
4559
4548
  d.mode = 21;
4560
4549
  case 21:
@@ -4562,18 +4551,18 @@ function Hi() {
4562
4551
  I.next_out = et, I.avail_out = J, I.next_in = $, I.avail_in = q, d.hold = N, d.bits = U, p(I, V), et = I.next_out, tt = I.output, J = I.avail_out, $ = I.next_in, L = I.input, q = I.avail_in, N = d.hold, U = d.bits, d.mode === 12 && (d.back = -1);
4563
4552
  break;
4564
4553
  }
4565
- for (d.back = 0; it = (x = d.lencode[N & (1 << d.lenbits) - 1]) >>> 16 & 255, ft = 65535 & x, !((nt = x >>> 24) <= U); ) {
4554
+ for (d.back = 0; it = (x = d.lencode[N & (1 << d.lenbits) - 1]) >>> 16 & 255, ht = 65535 & x, !((nt = x >>> 24) <= U); ) {
4566
4555
  if (q === 0) break t;
4567
4556
  q--, N += L[$++] << U, U += 8;
4568
4557
  }
4569
4558
  if (it && (240 & it) == 0) {
4570
- for (lt = nt, vt = it, bt = ft; it = (x = d.lencode[bt + ((N & (1 << lt + vt) - 1) >> lt)]) >>> 16 & 255, ft = 65535 & x, !(lt + (nt = x >>> 24) <= U); ) {
4559
+ for (ut = nt, vt = it, bt = ht; it = (x = d.lencode[bt + ((N & (1 << ut + vt) - 1) >> ut)]) >>> 16 & 255, ht = 65535 & x, !(ut + (nt = x >>> 24) <= U); ) {
4571
4560
  if (q === 0) break t;
4572
4561
  q--, N += L[$++] << U, U += 8;
4573
4562
  }
4574
- N >>>= lt, U -= lt, d.back += lt;
4563
+ N >>>= ut, U -= ut, d.back += ut;
4575
4564
  }
4576
- if (N >>>= nt, U -= nt, d.back += nt, d.length = ft, it === 0) {
4565
+ if (N >>>= nt, U -= nt, d.back += nt, d.length = ht, it === 0) {
4577
4566
  d.mode = 26;
4578
4567
  break;
4579
4568
  }
@@ -4596,22 +4585,22 @@ function Hi() {
4596
4585
  }
4597
4586
  d.was = d.length, d.mode = 23;
4598
4587
  case 23:
4599
- for (; it = (x = d.distcode[N & (1 << d.distbits) - 1]) >>> 16 & 255, ft = 65535 & x, !((nt = x >>> 24) <= U); ) {
4588
+ for (; it = (x = d.distcode[N & (1 << d.distbits) - 1]) >>> 16 & 255, ht = 65535 & x, !((nt = x >>> 24) <= U); ) {
4600
4589
  if (q === 0) break t;
4601
4590
  q--, N += L[$++] << U, U += 8;
4602
4591
  }
4603
4592
  if ((240 & it) == 0) {
4604
- for (lt = nt, vt = it, bt = ft; it = (x = d.distcode[bt + ((N & (1 << lt + vt) - 1) >> lt)]) >>> 16 & 255, ft = 65535 & x, !(lt + (nt = x >>> 24) <= U); ) {
4593
+ for (ut = nt, vt = it, bt = ht; it = (x = d.distcode[bt + ((N & (1 << ut + vt) - 1) >> ut)]) >>> 16 & 255, ht = 65535 & x, !(ut + (nt = x >>> 24) <= U); ) {
4605
4594
  if (q === 0) break t;
4606
4595
  q--, N += L[$++] << U, U += 8;
4607
4596
  }
4608
- N >>>= lt, U -= lt, d.back += lt;
4597
+ N >>>= ut, U -= ut, d.back += ut;
4609
4598
  }
4610
4599
  if (N >>>= nt, U -= nt, d.back += nt, 64 & it) {
4611
4600
  I.msg = "invalid distance code", d.mode = 30;
4612
4601
  break;
4613
4602
  }
4614
- d.offset = ft, d.extra = 15 & it, d.mode = 24;
4603
+ d.offset = ht, d.extra = 15 & it, d.mode = 24;
4615
4604
  case 24:
4616
4605
  if (d.extra) {
4617
4606
  for (A = d.extra; U < A; ) {
@@ -4632,9 +4621,9 @@ function Hi() {
4632
4621
  I.msg = "invalid distance too far back", d.mode = 30;
4633
4622
  break;
4634
4623
  }
4635
- ut = Z > d.wnext ? (Z -= d.wnext, d.wsize - Z) : d.wnext - Z, Z > d.length && (Z = d.length), pt = d.window;
4636
- } else pt = tt, ut = et - d.offset, Z = d.length;
4637
- for (J < Z && (Z = J), J -= Z, d.length -= Z; tt[et++] = pt[ut++], --Z; ) ;
4624
+ ot = Z > d.wnext ? (Z -= d.wnext, d.wsize - Z) : d.wnext - Z, Z > d.length && (Z = d.length), pt = d.window;
4625
+ } else pt = tt, ot = et - d.offset, Z = d.length;
4626
+ for (J < Z && (Z = J), J -= Z, d.length -= Z; tt[et++] = pt[ot++], --Z; ) ;
4638
4627
  d.length === 0 && (d.mode = 21);
4639
4628
  break;
4640
4629
  case 26:
@@ -4647,7 +4636,7 @@ function Hi() {
4647
4636
  if (q === 0) break t;
4648
4637
  q--, N |= L[$++] << U, U += 8;
4649
4638
  }
4650
- if (V -= J, I.total_out += V, d.total += V, V && (I.adler = d.check = d.flags ? l(d.check, tt, V, et - V) : u(d.check, tt, V, et - V)), V = J, (d.flags ? N : h(N)) !== d.check) {
4639
+ if (V -= J, I.total_out += V, d.total += V, V && (I.adler = d.check = d.flags ? l(d.check, tt, V, et - V) : u(d.check, tt, V, et - V)), V = J, (d.flags ? N : f(N)) !== d.check) {
4651
4640
  I.msg = "incorrect data check", d.mode = 30;
4652
4641
  break;
4653
4642
  }
@@ -4679,38 +4668,38 @@ function Hi() {
4679
4668
  default:
4680
4669
  return _;
4681
4670
  }
4682
- return I.next_out = et, I.avail_out = J, I.next_in = $, I.avail_in = q, d.hold = N, d.bits = U, (d.wsize || V !== I.avail_out && d.mode < 30 && (d.mode < 27 || z !== 4)) && Q(I, I.output, I.next_out, V - I.avail_out) ? (d.mode = 31, -4) : (Y -= I.avail_in, V -= I.avail_out, I.total_in += Y, I.total_out += V, d.total += V, d.wrap && V && (I.adler = d.check = d.flags ? l(d.check, tt, V, I.next_out - V) : u(d.check, tt, V, I.next_out - V)), I.data_type = d.bits + (d.last ? 64 : 0) + (d.mode === 12 ? 128 : 0) + (d.mode === 20 || d.mode === 15 ? 256 : 0), (Y == 0 && V === 0 || z === 4) && B === T && (B = -5), B);
4671
+ return I.next_out = et, I.avail_out = J, I.next_in = $, I.avail_in = q, d.hold = N, d.bits = U, (d.wsize || V !== I.avail_out && d.mode < 30 && (d.mode < 27 || P !== 4)) && Q(I, I.output, I.next_out, V - I.avail_out) ? (d.mode = 31, -4) : (Y -= I.avail_in, V -= I.avail_out, I.total_in += Y, I.total_out += V, d.total += V, d.wrap && V && (I.adler = d.check = d.flags ? l(d.check, tt, V, I.next_out - V) : u(d.check, tt, V, I.next_out - V)), I.data_type = d.bits + (d.last ? 64 : 0) + (d.mode === 12 ? 128 : 0) + (d.mode === 20 || d.mode === 15 ? 256 : 0), (Y == 0 && V === 0 || P === 4) && B === T && (B = -5), B);
4683
4672
  }, r.inflateEnd = function(I) {
4684
4673
  if (!I || !I.state) return _;
4685
- var z = I.state;
4686
- return z.window && (z.window = null), I.state = null, T;
4687
- }, r.inflateGetHeader = function(I, z) {
4674
+ var P = I.state;
4675
+ return P.window && (P.window = null), I.state = null, T;
4676
+ }, r.inflateGetHeader = function(I, P) {
4688
4677
  var d;
4689
- return I && I.state ? (2 & (d = I.state).wrap) == 0 ? _ : ((d.head = z).done = !1, T) : _;
4690
- }, r.inflateSetDictionary = function(I, z) {
4691
- var d, L = z.length;
4692
- return I && I.state ? (d = I.state).wrap !== 0 && d.mode !== 11 ? _ : d.mode === 11 && u(1, z, L, 0) !== d.check ? -3 : Q(I, z, L, L) ? (d.mode = 31, -4) : (d.havedict = 1, T) : _;
4678
+ return I && I.state ? (2 & (d = I.state).wrap) == 0 ? _ : ((d.head = P).done = !1, T) : _;
4679
+ }, r.inflateSetDictionary = function(I, P) {
4680
+ var d, L = P.length;
4681
+ return I && I.state ? (d = I.state).wrap !== 0 && d.mode !== 11 ? _ : d.mode === 11 && u(1, P, L, 0) !== d.check ? -3 : Q(I, P, L, L) ? (d.mode = 31, -4) : (d.havedict = 1, T) : _;
4693
4682
  }, r.inflateInfo = "pako inflate (from Nodeca project)";
4694
4683
  }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(e, s, r) {
4695
4684
  var i = e("../utils/common"), u = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], l = [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], p = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], w = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
4696
- s.exports = function(v, E, T, _, k, g, y, h) {
4697
- var f, a, c, m, b, O, F, D, H, Q = h.bits, I = 0, z = 0, d = 0, L = 0, tt = 0, $ = 0, et = 0, q = 0, J = 0, N = 0, U = null, Y = 0, V = new i.Buf16(16), Z = new i.Buf16(16), ut = null, pt = 0;
4685
+ s.exports = function(v, E, T, _, k, g, y, f) {
4686
+ var h, a, c, m, b, O, F, D, H, Q = f.bits, I = 0, P = 0, d = 0, L = 0, tt = 0, $ = 0, et = 0, q = 0, J = 0, N = 0, U = null, Y = 0, V = new i.Buf16(16), Z = new i.Buf16(16), ot = null, pt = 0;
4698
4687
  for (I = 0; I <= 15; I++) V[I] = 0;
4699
- for (z = 0; z < _; z++) V[E[T + z]]++;
4688
+ for (P = 0; P < _; P++) V[E[T + P]]++;
4700
4689
  for (tt = Q, L = 15; 1 <= L && V[L] === 0; L--) ;
4701
- if (L < tt && (tt = L), L === 0) return k[g++] = 20971520, k[g++] = 20971520, h.bits = 1, 0;
4690
+ if (L < tt && (tt = L), L === 0) return k[g++] = 20971520, k[g++] = 20971520, f.bits = 1, 0;
4702
4691
  for (d = 1; d < L && V[d] === 0; d++) ;
4703
4692
  for (tt < d && (tt = d), I = q = 1; I <= 15; I++) if (q <<= 1, (q -= V[I]) < 0) return -1;
4704
4693
  if (0 < q && (v === 0 || L !== 1)) return -1;
4705
4694
  for (Z[1] = 0, I = 1; I < 15; I++) Z[I + 1] = Z[I] + V[I];
4706
- for (z = 0; z < _; z++) E[T + z] !== 0 && (y[Z[E[T + z]]++] = z);
4707
- if (O = v === 0 ? (U = ut = y, 19) : v === 1 ? (U = u, Y -= 257, ut = l, pt -= 257, 256) : (U = p, ut = w, -1), I = d, b = g, et = z = N = 0, c = -1, m = (J = 1 << ($ = tt)) - 1, v === 1 && 852 < J || v === 2 && 592 < J) return 1;
4695
+ for (P = 0; P < _; P++) E[T + P] !== 0 && (y[Z[E[T + P]]++] = P);
4696
+ if (O = v === 0 ? (U = ot = y, 19) : v === 1 ? (U = u, Y -= 257, ot = l, pt -= 257, 256) : (U = p, ot = w, -1), I = d, b = g, et = P = N = 0, c = -1, m = (J = 1 << ($ = tt)) - 1, v === 1 && 852 < J || v === 2 && 592 < J) return 1;
4708
4697
  for (; ; ) {
4709
- for (F = I - et, H = y[z] < O ? (D = 0, y[z]) : y[z] > O ? (D = ut[pt + y[z]], U[Y + y[z]]) : (D = 96, 0), f = 1 << I - et, d = a = 1 << $; k[b + (N >> et) + (a -= f)] = F << 24 | D << 16 | H | 0, a !== 0; ) ;
4710
- for (f = 1 << I - 1; N & f; ) f >>= 1;
4711
- if (f !== 0 ? (N &= f - 1, N += f) : N = 0, z++, --V[I] == 0) {
4698
+ for (F = I - et, H = y[P] < O ? (D = 0, y[P]) : y[P] > O ? (D = ot[pt + y[P]], U[Y + y[P]]) : (D = 96, 0), h = 1 << I - et, d = a = 1 << $; k[b + (N >> et) + (a -= h)] = F << 24 | D << 16 | H | 0, a !== 0; ) ;
4699
+ for (h = 1 << I - 1; N & h; ) h >>= 1;
4700
+ if (h !== 0 ? (N &= h - 1, N += h) : N = 0, P++, --V[I] == 0) {
4712
4701
  if (I === L) break;
4713
- I = E[T + y[z]];
4702
+ I = E[T + y[P]];
4714
4703
  }
4715
4704
  if (tt < I && (N & m) !== c) {
4716
4705
  for (et === 0 && (et = tt), b += d, q = 1 << ($ = I - et); $ + et < L && !((q -= V[$ + et]) <= 0); ) $++, q <<= 1;
@@ -4718,7 +4707,7 @@ function Hi() {
4718
4707
  k[c = N & m] = tt << 24 | $ << 16 | b - g | 0;
4719
4708
  }
4720
4709
  }
4721
- return N !== 0 && (k[b + N] = I - et << 24 | 64 << 16 | 0), h.bits = tt, 0;
4710
+ return N !== 0 && (k[b + N] = I - et << 24 | 64 << 16 | 0), f.bits = tt, 0;
4722
4711
  };
4723
4712
  }, { "../utils/common": 41 }], 51: [function(e, s, r) {
4724
4713
  s.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" };
@@ -4727,12 +4716,12 @@ function Hi() {
4727
4716
  function p(x) {
4728
4717
  for (var R = x.length; 0 <= --R; ) x[R] = 0;
4729
4718
  }
4730
- var w = 0, v = 29, E = 256, T = E + 1 + v, _ = 30, k = 19, g = 2 * T + 1, y = 15, h = 16, f = 7, a = 256, c = 16, m = 17, b = 18, O = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], F = [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], D = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], H = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], Q = new Array(2 * (T + 2));
4719
+ var w = 0, v = 29, E = 256, T = E + 1 + v, _ = 30, k = 19, g = 2 * T + 1, y = 15, f = 16, h = 7, a = 256, c = 16, m = 17, b = 18, O = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], F = [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], D = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], H = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], Q = new Array(2 * (T + 2));
4731
4720
  p(Q);
4732
4721
  var I = new Array(2 * _);
4733
4722
  p(I);
4734
- var z = new Array(512);
4735
- p(z);
4723
+ var P = new Array(512);
4724
+ p(P);
4736
4725
  var d = new Array(256);
4737
4726
  p(d);
4738
4727
  var L = new Array(v);
@@ -4745,18 +4734,18 @@ function Hi() {
4745
4734
  this.dyn_tree = x, this.max_code = 0, this.stat_desc = R;
4746
4735
  }
4747
4736
  function U(x) {
4748
- return x < 256 ? z[x] : z[256 + (x >>> 7)];
4737
+ return x < 256 ? P[x] : P[256 + (x >>> 7)];
4749
4738
  }
4750
4739
  function Y(x, R) {
4751
4740
  x.pending_buf[x.pending++] = 255 & R, x.pending_buf[x.pending++] = R >>> 8 & 255;
4752
4741
  }
4753
4742
  function V(x, R, M) {
4754
- x.bi_valid > h - M ? (x.bi_buf |= R << x.bi_valid & 65535, Y(x, x.bi_buf), x.bi_buf = R >> h - x.bi_valid, x.bi_valid += M - h) : (x.bi_buf |= R << x.bi_valid & 65535, x.bi_valid += M);
4743
+ x.bi_valid > f - M ? (x.bi_buf |= R << x.bi_valid & 65535, Y(x, x.bi_buf), x.bi_buf = R >> f - x.bi_valid, x.bi_valid += M - f) : (x.bi_buf |= R << x.bi_valid & 65535, x.bi_valid += M);
4755
4744
  }
4756
4745
  function Z(x, R, M) {
4757
4746
  V(x, M[2 * R], M[2 * R + 1]);
4758
4747
  }
4759
- function ut(x, R) {
4748
+ function ot(x, R) {
4760
4749
  for (var M = 0; M |= 1 & x, x >>>= 1, M <<= 1, 0 < --R; ) ;
4761
4750
  return M >>> 1;
4762
4751
  }
@@ -4765,7 +4754,7 @@ function Hi() {
4765
4754
  for (j = 1; j <= y; j++) G[j] = K = K + M[j - 1] << 1;
4766
4755
  for (C = 0; C <= R; C++) {
4767
4756
  var W = x[2 * C + 1];
4768
- W !== 0 && (x[2 * C] = ut(G[W]++, W));
4757
+ W !== 0 && (x[2 * C] = ot(G[W]++, W));
4769
4758
  }
4770
4759
  }
4771
4760
  function nt(x) {
@@ -4778,12 +4767,12 @@ function Hi() {
4778
4767
  function it(x) {
4779
4768
  8 < x.bi_valid ? Y(x, x.bi_buf) : 0 < x.bi_valid && (x.pending_buf[x.pending++] = x.bi_buf), x.bi_buf = 0, x.bi_valid = 0;
4780
4769
  }
4781
- function ft(x, R, M, j) {
4770
+ function ht(x, R, M, j) {
4782
4771
  var C = 2 * R, G = 2 * M;
4783
4772
  return x[C] < x[G] || x[C] === x[G] && j[R] <= j[M];
4784
4773
  }
4785
- function lt(x, R, M) {
4786
- for (var j = x.heap[M], C = M << 1; C <= x.heap_len && (C < x.heap_len && ft(R, x.heap[C + 1], x.heap[C], x.depth) && C++, !ft(R, j, x.heap[C], x.depth)); ) x.heap[M] = x.heap[C], M = C, C <<= 1;
4774
+ function ut(x, R, M) {
4775
+ for (var j = x.heap[M], C = M << 1; C <= x.heap_len && (C < x.heap_len && ht(R, x.heap[C + 1], x.heap[C], x.depth) && C++, !ht(R, j, x.heap[C], x.depth)); ) x.heap[M] = x.heap[C], M = C, C <<= 1;
4787
4776
  x.heap[M] = j;
4788
4777
  }
4789
4778
  function vt(x, R, M) {
@@ -4795,18 +4784,18 @@ function Hi() {
4795
4784
  var M, j, C, G = R.dyn_tree, K = R.stat_desc.static_tree, W = R.stat_desc.has_stree, X = R.stat_desc.elems, st = -1;
4796
4785
  for (x.heap_len = 0, x.heap_max = g, M = 0; M < X; M++) G[2 * M] !== 0 ? (x.heap[++x.heap_len] = st = M, x.depth[M] = 0) : G[2 * M + 1] = 0;
4797
4786
  for (; x.heap_len < 2; ) G[2 * (C = x.heap[++x.heap_len] = st < 2 ? ++st : 0)] = 1, x.depth[C] = 0, x.opt_len--, W && (x.static_len -= K[2 * C + 1]);
4798
- for (R.max_code = st, M = x.heap_len >> 1; 1 <= M; M--) lt(x, G, M);
4799
- for (C = X; M = x.heap[1], x.heap[1] = x.heap[x.heap_len--], lt(x, G, 1), j = x.heap[1], x.heap[--x.heap_max] = M, x.heap[--x.heap_max] = j, G[2 * C] = G[2 * M] + G[2 * j], x.depth[C] = (x.depth[M] >= x.depth[j] ? x.depth[M] : x.depth[j]) + 1, G[2 * M + 1] = G[2 * j + 1] = C, x.heap[1] = C++, lt(x, G, 1), 2 <= x.heap_len; ) ;
4787
+ for (R.max_code = st, M = x.heap_len >> 1; 1 <= M; M--) ut(x, G, M);
4788
+ for (C = X; M = x.heap[1], x.heap[1] = x.heap[x.heap_len--], ut(x, G, 1), j = x.heap[1], x.heap[--x.heap_max] = M, x.heap[--x.heap_max] = j, G[2 * C] = G[2 * M] + G[2 * j], x.depth[C] = (x.depth[M] >= x.depth[j] ? x.depth[M] : x.depth[j]) + 1, G[2 * M + 1] = G[2 * j + 1] = C, x.heap[1] = C++, ut(x, G, 1), 2 <= x.heap_len; ) ;
4800
4789
  x.heap[--x.heap_max] = x.heap[1], (function(rt, yt) {
4801
- var Ft, xt, Mt, ct, Yt, ce, Tt = yt.dyn_tree, Ne = yt.max_code, Mn = yt.stat_desc.static_tree, jn = yt.stat_desc.has_stree, $n = yt.stat_desc.extra_bits, Pe = yt.stat_desc.extra_base, jt = yt.stat_desc.max_length, Qt = 0;
4802
- for (ct = 0; ct <= y; ct++) rt.bl_count[ct] = 0;
4803
- for (Tt[2 * rt.heap[rt.heap_max] + 1] = 0, Ft = rt.heap_max + 1; Ft < g; Ft++) jt < (ct = Tt[2 * Tt[2 * (xt = rt.heap[Ft]) + 1] + 1] + 1) && (ct = jt, Qt++), Tt[2 * xt + 1] = ct, Ne < xt || (rt.bl_count[ct]++, Yt = 0, Pe <= xt && (Yt = $n[xt - Pe]), ce = Tt[2 * xt], rt.opt_len += ce * (ct + Yt), jn && (rt.static_len += ce * (Mn[2 * xt + 1] + Yt)));
4790
+ var Mt, xt, jt, lt, Yt, le, Tt = yt.dyn_tree, Ne = yt.max_code, Ln = yt.stat_desc.static_tree, Fn = yt.stat_desc.has_stree, Mn = yt.stat_desc.extra_bits, ze = yt.stat_desc.extra_base, $t = yt.stat_desc.max_length, Qt = 0;
4791
+ for (lt = 0; lt <= y; lt++) rt.bl_count[lt] = 0;
4792
+ for (Tt[2 * rt.heap[rt.heap_max] + 1] = 0, Mt = rt.heap_max + 1; Mt < g; Mt++) $t < (lt = Tt[2 * Tt[2 * (xt = rt.heap[Mt]) + 1] + 1] + 1) && (lt = $t, Qt++), Tt[2 * xt + 1] = lt, Ne < xt || (rt.bl_count[lt]++, Yt = 0, ze <= xt && (Yt = Mn[xt - ze]), le = Tt[2 * xt], rt.opt_len += le * (lt + Yt), Fn && (rt.static_len += le * (Ln[2 * xt + 1] + Yt)));
4804
4793
  if (Qt !== 0) {
4805
4794
  do {
4806
- for (ct = jt - 1; rt.bl_count[ct] === 0; ) ct--;
4807
- rt.bl_count[ct]--, rt.bl_count[ct + 1] += 2, rt.bl_count[jt]--, Qt -= 2;
4795
+ for (lt = $t - 1; rt.bl_count[lt] === 0; ) lt--;
4796
+ rt.bl_count[lt]--, rt.bl_count[lt + 1] += 2, rt.bl_count[$t]--, Qt -= 2;
4808
4797
  } while (0 < Qt);
4809
- for (ct = jt; ct !== 0; ct--) for (xt = rt.bl_count[ct]; xt !== 0; ) Ne < (Mt = rt.heap[--Ft]) || (Tt[2 * Mt + 1] !== ct && (rt.opt_len += (ct - Tt[2 * Mt + 1]) * Tt[2 * Mt], Tt[2 * Mt + 1] = ct), xt--);
4798
+ for (lt = $t; lt !== 0; lt--) for (xt = rt.bl_count[lt]; xt !== 0; ) Ne < (jt = rt.heap[--Mt]) || (Tt[2 * jt + 1] !== lt && (rt.opt_len += (lt - Tt[2 * jt + 1]) * Tt[2 * jt], Tt[2 * jt + 1] = lt), xt--);
4810
4799
  }
4811
4800
  })(x, R), pt(G, st, x.bl_count);
4812
4801
  }
@@ -4823,26 +4812,26 @@ function Hi() {
4823
4812
  }
4824
4813
  }
4825
4814
  p(q);
4826
- var P = !1;
4815
+ var z = !1;
4827
4816
  function A(x, R, M, j) {
4828
4817
  V(x, (w << 1) + (j ? 1 : 0), 3), (function(C, G, K, W) {
4829
4818
  it(C), Y(C, K), Y(C, ~K), i.arraySet(C.pending_buf, C.window, G, K, C.pending), C.pending += K;
4830
4819
  })(x, R, M);
4831
4820
  }
4832
4821
  r._tr_init = function(x) {
4833
- P || ((function() {
4822
+ z || ((function() {
4834
4823
  var R, M, j, C, G, K = new Array(y + 1);
4835
4824
  for (C = j = 0; C < v - 1; C++) for (L[C] = j, R = 0; R < 1 << O[C]; R++) d[j++] = C;
4836
- for (d[j - 1] = C, C = G = 0; C < 16; C++) for (q[C] = G, R = 0; R < 1 << F[C]; R++) z[G++] = C;
4837
- for (G >>= 7; C < _; C++) for (q[C] = G << 7, R = 0; R < 1 << F[C] - 7; R++) z[256 + G++] = C;
4825
+ for (d[j - 1] = C, C = G = 0; C < 16; C++) for (q[C] = G, R = 0; R < 1 << F[C]; R++) P[G++] = C;
4826
+ for (G >>= 7; C < _; C++) for (q[C] = G << 7, R = 0; R < 1 << F[C] - 7; R++) P[256 + G++] = C;
4838
4827
  for (M = 0; M <= y; M++) K[M] = 0;
4839
4828
  for (R = 0; R <= 143; ) Q[2 * R + 1] = 8, R++, K[8]++;
4840
4829
  for (; R <= 255; ) Q[2 * R + 1] = 9, R++, K[9]++;
4841
4830
  for (; R <= 279; ) Q[2 * R + 1] = 7, R++, K[7]++;
4842
4831
  for (; R <= 287; ) Q[2 * R + 1] = 8, R++, K[8]++;
4843
- for (pt(Q, T + 1, K), R = 0; R < _; R++) I[2 * R + 1] = 5, I[2 * R] = ut(R, 5);
4844
- tt = new J(Q, O, E + 1, T, y), $ = new J(I, F, 0, _, y), et = new J(new Array(0), D, 0, k, f);
4845
- })(), P = !0), x.l_desc = new N(x.dyn_ltree, tt), x.d_desc = new N(x.dyn_dtree, $), x.bl_desc = new N(x.bl_tree, et), x.bi_buf = 0, x.bi_valid = 0, nt(x);
4832
+ for (pt(Q, T + 1, K), R = 0; R < _; R++) I[2 * R + 1] = 5, I[2 * R] = ot(R, 5);
4833
+ tt = new J(Q, O, E + 1, T, y), $ = new J(I, F, 0, _, y), et = new J(new Array(0), D, 0, k, h);
4834
+ })(), z = !0), x.l_desc = new N(x.dyn_ltree, tt), x.d_desc = new N(x.dyn_dtree, $), x.bl_desc = new N(x.bl_tree, et), x.bi_buf = 0, x.bi_valid = 0, nt(x);
4846
4835
  }, r._tr_stored_block = A, r._tr_flush_block = function(x, R, M, j) {
4847
4836
  var C, G, K = 0;
4848
4837
  0 < x.level ? (x.strm.data_type === 2 && (x.strm.data_type = (function(W) {
@@ -4878,7 +4867,7 @@ function Hi() {
4878
4867
  var p, w, v, E, T = 1, _ = {}, k = !1, g = u.document, y = Object.getPrototypeOf && Object.getPrototypeOf(u);
4879
4868
  y = y && y.setTimeout ? y : u, p = {}.toString.call(u.process) === "[object process]" ? function(c) {
4880
4869
  process.nextTick(function() {
4881
- f(c);
4870
+ h(c);
4882
4871
  });
4883
4872
  } : (function() {
4884
4873
  if (u.postMessage && !u.importScripts) {
@@ -4890,28 +4879,28 @@ function Hi() {
4890
4879
  })() ? (E = "setImmediate$" + Math.random() + "$", u.addEventListener ? u.addEventListener("message", a, !1) : u.attachEvent("onmessage", a), function(c) {
4891
4880
  u.postMessage(E + c, "*");
4892
4881
  }) : u.MessageChannel ? ((v = new MessageChannel()).port1.onmessage = function(c) {
4893
- f(c.data);
4882
+ h(c.data);
4894
4883
  }, function(c) {
4895
4884
  v.port2.postMessage(c);
4896
4885
  }) : g && "onreadystatechange" in g.createElement("script") ? (w = g.documentElement, function(c) {
4897
4886
  var m = g.createElement("script");
4898
4887
  m.onreadystatechange = function() {
4899
- f(c), m.onreadystatechange = null, w.removeChild(m), m = null;
4888
+ h(c), m.onreadystatechange = null, w.removeChild(m), m = null;
4900
4889
  }, w.appendChild(m);
4901
4890
  }) : function(c) {
4902
- setTimeout(f, 0, c);
4891
+ setTimeout(h, 0, c);
4903
4892
  }, y.setImmediate = function(c) {
4904
4893
  typeof c != "function" && (c = new Function("" + c));
4905
4894
  for (var m = new Array(arguments.length - 1), b = 0; b < m.length; b++) m[b] = arguments[b + 1];
4906
4895
  var O = { callback: c, args: m };
4907
4896
  return _[T] = O, p(T), T++;
4908
- }, y.clearImmediate = h;
4897
+ }, y.clearImmediate = f;
4909
4898
  }
4910
- function h(c) {
4899
+ function f(c) {
4911
4900
  delete _[c];
4912
4901
  }
4913
- function f(c) {
4914
- if (k) setTimeout(f, 0, c);
4902
+ function h(c) {
4903
+ if (k) setTimeout(h, 0, c);
4915
4904
  else {
4916
4905
  var m = _[c];
4917
4906
  if (m) {
@@ -4937,23 +4926,23 @@ function Hi() {
4937
4926
  }
4938
4927
  })(m);
4939
4928
  } finally {
4940
- h(c), k = !1;
4929
+ f(c), k = !1;
4941
4930
  }
4942
4931
  }
4943
4932
  }
4944
4933
  }
4945
4934
  function a(c) {
4946
- c.source === u && typeof c.data == "string" && c.data.indexOf(E) === 0 && f(+c.data.slice(E.length));
4935
+ c.source === u && typeof c.data == "string" && c.data.indexOf(E) === 0 && h(+c.data.slice(E.length));
4947
4936
  }
4948
4937
  })(typeof self > "u" ? i === void 0 ? this : i : self);
4949
4938
  }).call(this, typeof ee < "u" ? ee : typeof self < "u" ? self : typeof window < "u" ? window : {});
4950
4939
  }, {}] }, {}, [10])(10);
4951
4940
  });
4952
- })(ge)), ge.exports;
4941
+ })(_e)), _e.exports;
4953
4942
  }
4954
4943
  Hi();
4955
4944
  var S = /* @__PURE__ */ ((n) => (n.AUTOMATION = "automation", n.ARCHIVE = "archive", n.AUDIO = "audio", n.BACKUP = "backup", n.BINARY = "binary", n.BIM = "bim", n.CAD = "cad", n.DATA = "data", n.EMAIL = "email", n.FONT = "font", n.GEOSPATIAL = "geospatial", n.IMAGE = "image", n.INSTALLER = "installer", n.MARKUP = "markup", n.MULTIMEDIA = "multimedia", n.PLANNING = "planning", n.PRESENTATION = "presentation", n.SCRIPT = "script", n.SPREADSHEET = "spreadsheet", n.TEXT = "text", n.THREE_D = "3d", n.UNKNOWN = "unknown", n.VIDEO = "video", n))(S || {});
4956
- const Cn = {
4945
+ const Rn = {
4957
4946
  ".aac": {
4958
4947
  type: S.AUDIO,
4959
4948
  open: !0,
@@ -5838,8 +5827,8 @@ const Cn = {
5838
5827
  [S.UNKNOWN]: "UnknownFileContent"
5839
5828
  /* UNKNOWN */
5840
5829
  };
5841
- var Un = /* @__PURE__ */ ((n) => (n.Azure = "Azure", n.AWS = "AWS", n.LocalProvider = "LocalProvider", n.GCP = "GCP", n))(Un || {});
5842
- const qt = "http://www.w3.org/1999/02/22-rdf-syntax-ns#", Ht = "http://www.w3.org/2001/XMLSchema#", re = "http://www.w3.org/2000/10/swap/", On = {
5830
+ var Sn = /* @__PURE__ */ ((n) => (n.Azure = "Azure", n.AWS = "AWS", n.LocalProvider = "LocalProvider", n.GCP = "GCP", n))(Sn || {});
5831
+ const qt = "http://www.w3.org/1999/02/22-rdf-syntax-ns#", Ht = "http://www.w3.org/2001/XMLSchema#", re = "http://www.w3.org/2000/10/swap/", Cn = {
5843
5832
  xsd: {
5844
5833
  decimal: `${Ht}decimal`,
5845
5834
  boolean: `${Ht}boolean`,
@@ -5865,18 +5854,18 @@ const qt = "http://www.w3.org/1999/02/22-rdf-syntax-ns#", Ht = "http://www.w3.or
5865
5854
  implies: `${re}log#implies`,
5866
5855
  isImpliedBy: `${re}log#isImpliedBy`
5867
5856
  }
5868
- }, { rdf: Wi, xsd: Nt } = On;
5857
+ }, { rdf: Wi, xsd: Nt } = Cn;
5869
5858
  let Xt, Zi = 0;
5870
- const Lt = {
5871
- namedNode: Pn,
5872
- blankNode: zn,
5873
- variable: Ln,
5874
- literal: Bn,
5859
+ const Ft = {
5860
+ namedNode: Dn,
5861
+ blankNode: Nn,
5862
+ variable: Pn,
5863
+ literal: zn,
5875
5864
  defaultGraph: Yi,
5876
5865
  quad: Ae,
5877
5866
  triple: Ae,
5878
- fromTerm: Zt,
5879
- fromQuad: Fn
5867
+ fromTerm: Vt,
5868
+ fromQuad: Bn
5880
5869
  };
5881
5870
  class At {
5882
5871
  constructor(t) {
@@ -5903,7 +5892,7 @@ class At {
5903
5892
  };
5904
5893
  }
5905
5894
  }
5906
- class Dn extends At {
5895
+ class Un extends At {
5907
5896
  // ### The term type of this term
5908
5897
  get termType() {
5909
5898
  return "NamedNode";
@@ -5926,7 +5915,7 @@ class Kt extends At {
5926
5915
  }
5927
5916
  // ### The datatype IRI of this literal
5928
5917
  get datatype() {
5929
- return new Dn(this.datatypeString);
5918
+ return new Un(this.datatypeString);
5930
5919
  }
5931
5920
  // ### The datatype string of this literal
5932
5921
  get datatypeString() {
@@ -5989,7 +5978,7 @@ class Xi extends At {
5989
5978
  }
5990
5979
  }
5991
5980
  Xt = new Xi();
5992
- class Nn extends At {
5981
+ class On extends At {
5993
5982
  constructor(t, e, s, r) {
5994
5983
  super(""), this._subject = t, this._predicate = e, this._object = s, this._graph = r || Xt;
5995
5984
  }
@@ -6024,53 +6013,53 @@ class Nn extends At {
6024
6013
  return !!t && this._subject.equals(t.subject) && this._predicate.equals(t.predicate) && this._object.equals(t.object) && this._graph.equals(t.graph);
6025
6014
  }
6026
6015
  }
6027
- function Pn(n) {
6028
- return new Dn(n);
6016
+ function Dn(n) {
6017
+ return new Un(n);
6029
6018
  }
6030
- function zn(n) {
6019
+ function Nn(n) {
6031
6020
  return new Vi(n || `n3-${Zi++}`);
6032
6021
  }
6033
- function Bn(n, t) {
6022
+ function zn(n, t) {
6034
6023
  if (typeof t == "string")
6035
6024
  return new Kt(`"${n}"@${t.toLowerCase()}`);
6036
6025
  let e = t ? t.value : "";
6037
6026
  return e === "" && (typeof n == "boolean" ? e = Nt.boolean : typeof n == "number" && (Number.isFinite(n) ? e = Number.isInteger(n) ? Nt.integer : Nt.double : (e = Nt.double, Number.isNaN(n) || (n = n > 0 ? "INF" : "-INF")))), e === "" || e === Nt.string ? new Kt(`"${n}"`) : new Kt(`"${n}"^^${e}`);
6038
6027
  }
6039
- function Ln(n) {
6028
+ function Pn(n) {
6040
6029
  return new Ki(n);
6041
6030
  }
6042
6031
  function Yi() {
6043
6032
  return Xt;
6044
6033
  }
6045
6034
  function Ae(n, t, e, s) {
6046
- return new Nn(n, t, e, s);
6035
+ return new On(n, t, e, s);
6047
6036
  }
6048
- function Zt(n) {
6037
+ function Vt(n) {
6049
6038
  if (n instanceof At)
6050
6039
  return n;
6051
6040
  switch (n.termType) {
6052
6041
  case "NamedNode":
6053
- return Pn(n.value);
6042
+ return Dn(n.value);
6054
6043
  case "BlankNode":
6055
- return zn(n.value);
6044
+ return Nn(n.value);
6056
6045
  case "Variable":
6057
- return Ln(n.value);
6046
+ return Pn(n.value);
6058
6047
  case "DefaultGraph":
6059
6048
  return Xt;
6060
6049
  case "Literal":
6061
- return Bn(n.value, n.language || n.datatype);
6050
+ return zn(n.value, n.language || n.datatype);
6062
6051
  case "Quad":
6063
- return Fn(n);
6052
+ return Bn(n);
6064
6053
  default:
6065
6054
  throw new Error(`Unexpected termType: ${n.termType}`);
6066
6055
  }
6067
6056
  }
6068
- function Fn(n) {
6069
- if (n instanceof Nn)
6057
+ function Bn(n) {
6058
+ if (n instanceof On)
6070
6059
  return n;
6071
6060
  if (n.termType !== "Quad")
6072
6061
  throw new Error(`Unexpected termType: ${n.termType}`);
6073
- return Ae(Zt(n.subject), Zt(n.predicate), Zt(n.object), Zt(n.graph));
6062
+ return Ae(Vt(n.subject), Vt(n.predicate), Vt(n.object), Vt(n.graph));
6074
6063
  }
6075
6064
  function Qi(n) {
6076
6065
  return !!n && n.termType === "DefaultGraph";
@@ -6078,7 +6067,7 @@ function Qi(n) {
6078
6067
  function ie(n) {
6079
6068
  return n.replace(/[\]\/\(\)\*\+\?\.\\\$]/g, "\\$&");
6080
6069
  }
6081
- const Ji = /^:?[^:?#]*(?:[?#]|$)|^file:|^[^:]*:\/*[^?#]+?\/(?:\.\.?(?:\/|$)|\/)/i, ts = /^(?:(?:[^/?#]{3,}|\.?[^/?#.]\.?)(?:\/[^/?#]{3,}|\.?[^/?#.]\.?)*\/?)?(?:[?#]|$)/, Xe = "./", es = "../", ye = "?", Ye = "#";
6070
+ const Ji = /^:?[^:?#]*(?:[?#]|$)|^file:|^[^:]*:\/*[^?#]+?\/(?:\.\.?(?:\/|$)|\/)/i, ts = /^(?:(?:[^/?#]{3,}|\.?[^/?#.]\.?)(?:\/[^/?#]{3,}|\.?[^/?#.]\.?)*\/?)?(?:[?#]|$)/, Ve = "./", es = "../", ge = "?", Ke = "#";
6082
6071
  class De {
6083
6072
  constructor(t) {
6084
6073
  this.base = t, this._baseLength = 0, this._baseMatcher = null, this._pathReplacements = new Array(t.length + 1);
@@ -6094,10 +6083,10 @@ class De {
6094
6083
  const t = /^[^:]*:\/*/.exec(this.base)[0], e = ["^", ie(t)], s = [], r = [], i = /[^/?#]*([/?#])/y;
6095
6084
  let u, l = 0, p = 0, w = i.lastIndex = t.length;
6096
6085
  for (; !l && !p && (u = i.exec(this.base)); )
6097
- u[1] === Ye ? p = i.lastIndex - 1 : (e.push(ie(u[0]), "(?:"), s.push(")?"), u[1] !== ye ? r.push(w = i.lastIndex) : (l = w = i.lastIndex, p = this.base.indexOf(Ye, l), this._pathReplacements[l] = ye));
6086
+ u[1] === Ke ? p = i.lastIndex - 1 : (e.push(ie(u[0]), "(?:"), s.push(")?"), u[1] !== ge ? r.push(w = i.lastIndex) : (l = w = i.lastIndex, p = this.base.indexOf(Ke, l), this._pathReplacements[l] = ge));
6098
6087
  for (let v = 0; v < r.length; v++)
6099
6088
  this._pathReplacements[r[v]] = es.repeat(r.length - v - 1);
6100
- return this._pathReplacements[r[r.length - 1]] = Xe, this._baseLength = p > 0 ? p : this.base.length, e.push(
6089
+ return this._pathReplacements[r[r.length - 1]] = Ve, this._baseLength = p > 0 ? p : this.base.length, e.push(
6101
6090
  ie(this.base.substring(w, this._baseLength)),
6102
6091
  l ? "(?:#|$)" : "(?:[?#]|$)"
6103
6092
  ), this._baseMatcher = new RegExp([...e, ...s].join(""));
@@ -6112,12 +6101,12 @@ class De {
6112
6101
  const r = this._pathReplacements[s];
6113
6102
  if (r) {
6114
6103
  const i = t.substring(s);
6115
- return r !== ye && !ts.test(i) ? t : r === Xe && /^[^?#]/.test(i) ? i : r + i;
6104
+ return r !== ge && !ts.test(i) ? t : r === Ve && /^[^?#]/.test(i) ? i : r + i;
6116
6105
  }
6117
6106
  return t.substring(s - 1);
6118
6107
  }
6119
6108
  }
6120
- const Gt = Lt.defaultGraph(), { rdf: ns, xsd: Dt } = On, Qe = /["\\\t\n\r\b\f\u0000-\u0019\ud800-\udbff]/, Je = /["\\\t\n\r\b\f\u0000-\u0019]|[\ud800-\udbff][\udc00-\udfff]/g, rs = {
6109
+ const Gt = Ft.defaultGraph(), { rdf: ns, xsd: Dt } = Cn, Xe = /["\\\t\n\r\b\f\u0000-\u0019\ud800-\udbff]/, Ye = /["\\\t\n\r\b\f\u0000-\u0019]|[\ud800-\udbff][\udc00-\udfff]/g, rs = {
6121
6110
  "\\": "\\\\",
6122
6111
  '"': '\\"',
6123
6112
  " ": "\\t",
@@ -6199,14 +6188,14 @@ class is {
6199
6188
  if (t.termType !== "NamedNode")
6200
6189
  return this._lists && t.value in this._lists && (t = this.list(this._lists[t.value])), "id" in t ? t.id : `_:${t.value}`;
6201
6190
  let e = t.value;
6202
- this._baseIri && (e = this._baseIri.toRelative(e)), Qe.test(e) && (e = e.replace(Je, tn));
6191
+ this._baseIri && (e = this._baseIri.toRelative(e)), Xe.test(e) && (e = e.replace(Ye, Qe));
6203
6192
  const s = this._prefixRegex.exec(e);
6204
6193
  return s ? s[1] ? this._prefixIRIs[s[1]] + s[2] : e : `<${e}>`;
6205
6194
  }
6206
6195
  // ### `_encodeLiteral` represents a literal
6207
6196
  _encodeLiteral(t) {
6208
6197
  let e = t.value;
6209
- if (Qe.test(e) && (e = e.replace(Je, tn)), t.language)
6198
+ if (Xe.test(e) && (e = e.replace(Ye, Qe)), t.language)
6210
6199
  return `"${e}"@${t.language}`;
6211
6200
  if (this._lineMode) {
6212
6201
  if (t.datatype.value === Dt.string)
@@ -6339,16 +6328,16 @@ class is {
6339
6328
  e && e();
6340
6329
  }
6341
6330
  }
6342
- function tn(n) {
6331
+ function Qe(n) {
6343
6332
  let t = rs[n];
6344
6333
  return t === void 0 && (n.length === 1 ? (t = n.charCodeAt(0).toString(16), t = "\\u0000".substr(0, 6 - t.length) + t) : (t = ((n.charCodeAt(0) - 55296) * 1024 + n.charCodeAt(1) + 9216).toString(16), t = "\\U00000000".substr(0, 10 - t.length) + t)), t;
6345
6334
  }
6346
- const { namedNode: ht, literal: Et } = Lt, en = ht("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"), ss = {
6335
+ const { namedNode: ct, literal: Et } = Ft, Je = ct("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"), ss = {
6347
6336
  qcy: ke.qcy,
6348
6337
  "qcy-e": ke["qcy-e"],
6349
6338
  xsd: ji.xsd
6350
6339
  };
6351
- function as(n, t, e = ["qcy:FileContent"], s = new is({ prefixes: ss }), r = Un.GCP) {
6340
+ function as(n, t, e = ["qcy:FileContent"], s = new is({ prefixes: ss }), r = Sn.GCP) {
6352
6341
  if (n.md5_hash === void 0)
6353
6342
  throw new Error("md5_hash must be specified");
6354
6343
  if (n.blob_name === void 0)
@@ -6356,52 +6345,52 @@ function as(n, t, e = ["qcy:FileContent"], s = new is({ prefixes: ss }), r = Un.
6356
6345
  if (n.suffix === void 0)
6357
6346
  throw new Error("suffix must be specified");
6358
6347
  if (n.name === void 0) throw new Error("name must be specified");
6359
- const i = Sn(n.blob_name), u = os(n.suffix), l = Gi[u.type], p = n.name.split("/").pop() ?? n.name, w = ht(i.documentUUID), v = Rn(
6348
+ const i = In(n.blob_name), u = os(n.suffix), l = Gi[u.type], p = n.name.split("/").pop() ?? n.name, w = ct(i.documentUUID), v = Tn(
6360
6349
  n.name,
6361
6350
  n.provider_id ?? ""
6362
- ), E = ht(v);
6351
+ ), E = ct(v);
6363
6352
  return e.forEach((T) => {
6364
- s.addQuad(w, en, ht(T));
6353
+ s.addQuad(w, Je, ct(T));
6365
6354
  }), s.addQuad(
6366
6355
  w,
6367
- ht("qcy:hasMimeCategory"),
6368
- ht(`qcy-e:${l}`)
6356
+ ct("qcy:hasMimeCategory"),
6357
+ ct(`qcy-e:${l}`)
6369
6358
  ), s.addQuad(
6370
6359
  w,
6371
- ht("qcy:md5Hash"),
6360
+ ct("qcy:md5Hash"),
6372
6361
  Et(n.md5_hash)
6373
- ), s.addQuad(w, ht("qcy:mime"), Et(u.mime)), s.addQuad(
6362
+ ), s.addQuad(w, ct("qcy:mime"), Et(u.mime)), s.addQuad(
6374
6363
  w,
6375
- ht("qcy:openFormat"),
6364
+ ct("qcy:openFormat"),
6376
6365
  Et(u == null ? void 0 : u.open)
6377
- ), s.addQuad(w, ht("qcy:sizeBytes"), Et(t)), s.addQuad(w, ht("qcy:hasFileLocation"), E), s.addQuad(E, en, ht("qcy:FileLocation")), s.addQuad(
6366
+ ), s.addQuad(w, ct("qcy:sizeBytes"), Et(t)), s.addQuad(w, ct("qcy:hasFileLocation"), E), s.addQuad(E, Je, ct("qcy:FileLocation")), s.addQuad(
6378
6367
  E,
6379
- ht("qcy:filePath"),
6368
+ ct("qcy:filePath"),
6380
6369
  Et(n.name)
6381
6370
  ), s.addQuad(
6382
6371
  E,
6383
- ht("qcy:remoteProviderType"),
6384
- ht(`qcy-e:${r}`)
6372
+ ct("qcy:remoteProviderType"),
6373
+ ct(`qcy-e:${r}`)
6385
6374
  ), s.addQuad(
6386
6375
  E,
6387
- ht("qcy:remoteProviderId"),
6376
+ ct("qcy:remoteProviderId"),
6388
6377
  Et(n.provider_id ?? "")
6389
6378
  ), s.addQuad(
6390
6379
  E,
6391
- ht("qcy:remoteRelativePath"),
6380
+ ct("qcy:remoteRelativePath"),
6392
6381
  Et(n.blob_name)
6393
6382
  ), s.addQuad(
6394
6383
  E,
6395
- ht("qcy:suffix"),
6384
+ ct("qcy:suffix"),
6396
6385
  Et(n.suffix)
6397
6386
  ), s.addQuad(
6398
6387
  E,
6399
- ht("qcy:dateCreated"),
6400
- Et((/* @__PURE__ */ new Date()).toISOString(), ht("xsd:dateTime"))
6401
- ), s.addQuad(E, ht("qcy:value"), Et(p)), s;
6388
+ ct("qcy:dateCreated"),
6389
+ Et((/* @__PURE__ */ new Date()).toISOString(), ct("xsd:dateTime"))
6390
+ ), s.addQuad(E, ct("qcy:value"), Et(p)), s;
6402
6391
  }
6403
6392
  function os(n) {
6404
- let t = Cn[n];
6393
+ let t = Rn[n];
6405
6394
  return t === void 0 && (t = {
6406
6395
  type: S.UNKNOWN,
6407
6396
  open: !1,
@@ -6409,16 +6398,16 @@ function os(n) {
6409
6398
  mime: "application/octet-stream"
6410
6399
  }), t;
6411
6400
  }
6412
- const { namedNode: Ss } = Lt, { namedNode: us, literal: Cs } = Lt;
6401
+ const { namedNode: Ss } = Ft, { namedNode: us, literal: Cs } = Ft;
6413
6402
  us("http://www.w3.org/1999/02/22-rdf-syntax-ns#type");
6414
6403
  function ls(n) {
6415
6404
  var e;
6416
6405
  const t = n.split(".");
6417
6406
  return t.length > 1 ? "." + ((e = t.pop()) == null ? void 0 : e.toLowerCase()) : "";
6418
6407
  }
6419
- const { namedNode: cs, literal: Us } = Lt;
6408
+ const { namedNode: cs, literal: Us } = Ft;
6420
6409
  cs("http://www.w3.org/1999/02/22-rdf-syntax-ns#type");
6421
- async function hs(n, t, e = "ttl") {
6410
+ async function fs(n, t, e = "ttl") {
6422
6411
  return new Promise((s, r) => {
6423
6412
  t.end((i, u) => {
6424
6413
  i && r(i), s(e === "ttl" && n !== "" ? `@base <${n}>.
@@ -6426,15 +6415,15 @@ ${u}` : u);
6426
6415
  });
6427
6416
  });
6428
6417
  }
6429
- const { namedNode: fs, literal: Os } = Lt;
6430
- fs("http://www.w3.org/1999/02/22-rdf-syntax-ns#type");
6431
- function nn(n, t, e, s, r, i, u, l = !1, p = !1) {
6432
- const w = ls(n), v = In(s), E = `${t}/${v}${w}`;
6418
+ const { namedNode: hs, literal: Os } = Ft;
6419
+ hs("http://www.w3.org/1999/02/22-rdf-syntax-ns#type");
6420
+ function tn(n, t, e, s, r, i, u, l = !1, p = !1) {
6421
+ const w = ls(n), v = An(s), E = `${t}/${v}${w}`;
6433
6422
  if (u === void 0) {
6434
- const _ = Cn[w];
6423
+ const _ = Rn[w];
6435
6424
  u = (_ == null ? void 0 : _.mime) ?? "application/octet-stream";
6436
6425
  }
6437
- const T = Rn(n, r);
6426
+ const T = Tn(n, r);
6438
6427
  return {
6439
6428
  name: n,
6440
6429
  blob_name: E,
@@ -6455,7 +6444,7 @@ function nn(n, t, e, s, r, i, u, l = !1, p = !1) {
6455
6444
  };
6456
6445
  }
6457
6446
  function ds(n, t, e, s = !1) {
6458
- const r = Sn(n), i = e !== void 0 ? `${r.projectId}/triples/${r.documentUUID}_${e}_${t}.ttl` : `${r.projectId}/triples/${r.documentUUID}_${t}.ttl`, u = e !== void 0 ? `${r.documentUUID}_${e}` : r.documentUUID;
6447
+ const r = In(n), i = e !== void 0 ? `${r.projectId}/triples/${r.documentUUID}_${e}_${t}.ttl` : `${r.projectId}/triples/${r.documentUUID}_${t}.ttl`, u = e !== void 0 ? `${r.documentUUID}_${e}` : r.documentUUID;
6459
6448
  return {
6460
6449
  blob_name: i,
6461
6450
  processor: t,
@@ -6485,36 +6474,36 @@ class vs {
6485
6474
  let E = v.syncCount, T = v.syncSize, _ = 0, k = !1;
6486
6475
  const g = v.localNotOnRemote ?? [];
6487
6476
  u && g.length && console.info("Syncing missing files ⏳");
6488
- for (const h of g)
6477
+ for (const f of g)
6489
6478
  try {
6490
- const f = nn(
6491
- h.relativePath,
6479
+ const h = tn(
6480
+ f.relativePath,
6492
6481
  s,
6493
6482
  i,
6494
- h.md5,
6483
+ f.md5,
6495
6484
  r
6496
6485
  );
6497
- if (!f.blob_name) throw new Error(`blob_name missing for ${h.relativePath}`);
6498
- const a = await er(h.fullPath);
6486
+ if (!h.blob_name) throw new Error(`blob_name missing for ${f.relativePath}`);
6487
+ const a = await Jn(f.fullPath);
6499
6488
  await this._blob.uploadRaw(
6500
- f.blob_name,
6489
+ h.blob_name,
6501
6490
  new Uint8Array(a),
6502
- f
6503
- ), await this._uploadRdfMetadata(h, f, u) && (k = !0), E += 1, T += h.size || 0, this._logProgress(E, v.totalCount, T, v.totalSize, u);
6504
- } catch (f) {
6505
- _ += 1, console.error(`[CueSyncApi] Failed to upload file: ${h.fullPath}`), u && console.error("[CueSyncApi] Upload error details:", f);
6491
+ h
6492
+ ), await this._uploadRdfMetadata(f, h, u) && (k = !0), E += 1, T += f.size || 0, this._logProgress(E, v.totalCount, T, v.totalSize, u);
6493
+ } catch (h) {
6494
+ _ += 1, console.error(`[CueSyncApi] Failed to upload file: ${f.fullPath}`), u && console.error("[CueSyncApi] Upload error details:", h);
6506
6495
  }
6507
6496
  u && v.localNotOnRemotePathOnly.length && console.info(`Syncing missing file locations (on provider "${r}") ⏳`);
6508
- for (const h of v.localNotOnRemotePathOnly) {
6509
- const f = nn(
6510
- h.relativePath,
6497
+ for (const f of v.localNotOnRemotePathOnly) {
6498
+ const h = tn(
6499
+ f.relativePath,
6511
6500
  s,
6512
6501
  i,
6513
- h.md5,
6502
+ f.md5,
6514
6503
  r
6515
6504
  );
6516
- if (!f.blob_name) throw new Error(`blob_name missing for ${h.relativePath}`);
6517
- await this._uploadRdfMetadata(h, f, u) && (k = !0), E += 1, T += h.size || 0, this._logProgress(E, v.totalCount, T, v.totalSize, u);
6505
+ if (!h.blob_name) throw new Error(`blob_name missing for ${f.relativePath}`);
6506
+ await this._uploadRdfMetadata(f, h, u) && (k = !0), E += 1, T += f.size || 0, this._logProgress(E, v.totalCount, T, v.totalSize, u);
6518
6507
  }
6519
6508
  return {
6520
6509
  syncCount: E,
@@ -6589,7 +6578,7 @@ WHERE {
6589
6578
  t.locationUUID
6590
6579
  );
6591
6580
  if (!r.blob_name) throw new Error(`ttl blob_name missing for ${e.blob_name}`);
6592
- const i = as(e, t.size), u = `${this._rdfBase}${r.space_id}/`, l = await hs(u, i), p = await this._blob.uploadProcessed(
6581
+ const i = as(e, t.size), u = `${this._rdfBase}${r.space_id}/`, l = await fs(u, i), p = await this._blob.uploadProcessed(
6593
6582
  r.blob_name,
6594
6583
  new Uint8Array(Buffer.from(l, "utf-8")),
6595
6584
  r
@@ -6607,21 +6596,24 @@ WHERE {
6607
6596
  }
6608
6597
  }
6609
6598
  const xs = "spaces_raw_eu_west6", Es = "spaces_processed_eu_west6";
6610
- class Ds extends Jn {
6599
+ class Ds extends Yn {
6611
6600
  constructor(t) {
6612
6601
  super(t);
6613
6602
  }
6614
6603
  _buildApi(t) {
6615
- const e = qe(this._app, xs), s = qe(this._app, Es);
6616
- this._isEmulator && (ve(e, "localhost", 9199), ve(s, "localhost", 9199));
6604
+ const e = je(this._app, xs), s = je(this._app, Es);
6605
+ if (this._isEmulator) {
6606
+ const u = this._endpoints.storageEmulatorHost, l = this._endpoints.storageEmulatorPort;
6607
+ ve(e, u, l), ve(s, u, l);
6608
+ }
6617
6609
  const r = new vi({ storageRaw: e, storageProcessed: s }), i = new vs(this.auth, t, r, this._endpoints.gatewayUrl);
6618
- return new tr(this.auth, this._endpoints.gatewayUrl, t, i);
6610
+ return new Qn(this.auth, this._endpoints.gatewayUrl, t, i);
6619
6611
  }
6620
6612
  }
6621
6613
  export {
6622
- Jn as Cue,
6623
- tr as CueApi,
6624
- zs as CueAuth,
6614
+ Yn as Cue,
6615
+ Qn as CueApi,
6616
+ Ps as CueAuth,
6625
6617
  Ds as CueNode,
6626
6618
  Bs as CueProjects,
6627
6619
  vs as CueSyncApi