@animaapp/anima-sdk 0.24.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -31,12 +31,12 @@ var k = (e, t, n) => new Promise((r, o) => {
31
31
  s((n = n.apply(e, t)).next());
32
32
  });
33
33
  /*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
34
- function Je(e) {
34
+ function Be(e) {
35
35
  let t = e.length;
36
36
  for (; --t >= 0; )
37
37
  e[t] = 0;
38
38
  }
39
- const xo = 0, _r = 1, Ao = 2, Io = 3, No = 258, fn = 29, lt = 256, tt = lt + 1 + fn, Re = 30, dn = 19, gr = 2 * tt + 1, Se = 15, Ct = 16, Po = 7, hn = 256, mr = 16, yr = 17, br = 18, Wt = (
39
+ const xo = 0, _r = 1, Ao = 2, Io = 3, No = 258, fn = 29, lt = 256, nt = lt + 1 + fn, Re = 30, dn = 19, gr = 2 * nt + 1, Se = 15, Ct = 16, Po = 7, hn = 256, mr = 16, yr = 17, br = 18, Wt = (
40
40
  /* extra bits for each length code */
41
41
  new Uint8Array([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])
42
42
  ), wt = (
@@ -45,18 +45,18 @@ const xo = 0, _r = 1, Ao = 2, Io = 3, No = 258, fn = 29, lt = 256, tt = lt + 1 +
45
45
  ), Ro = (
46
46
  /* extra bits for each bit length code */
47
47
  new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7])
48
- ), wr = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), Do = 512, fe = new Array((tt + 2) * 2);
49
- Je(fe);
50
- const Qe = new Array(Re * 2);
51
- Je(Qe);
52
- const nt = new Array(Do);
53
- Je(nt);
54
- const rt = new Array(No - Io + 1);
55
- Je(rt);
48
+ ), wr = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), Do = 512, fe = new Array((nt + 2) * 2);
49
+ Be(fe);
50
+ const et = new Array(Re * 2);
51
+ Be(et);
52
+ const rt = new Array(Do);
53
+ Be(rt);
54
+ const ot = new Array(No - Io + 1);
55
+ Be(ot);
56
56
  const pn = new Array(fn);
57
- Je(pn);
57
+ Be(pn);
58
58
  const zt = new Array(Re);
59
- Je(zt);
59
+ Be(zt);
60
60
  function Ft(e, t, n, r, o) {
61
61
  this.static_tree = e, this.extra_bits = t, this.extra_base = n, this.elems = r, this.max_length = o, this.has_stree = e && e.length;
62
62
  }
@@ -64,10 +64,10 @@ let vr, kr, zr;
64
64
  function jt(e, t) {
65
65
  this.dyn_tree = e, this.max_code = 0, this.stat_desc = t;
66
66
  }
67
- const Sr = (e) => e < 256 ? nt[e] : nt[256 + (e >>> 7)], ot = (e, t) => {
67
+ const Sr = (e) => e < 256 ? rt[e] : rt[256 + (e >>> 7)], it = (e, t) => {
68
68
  e.pending_buf[e.pending++] = t & 255, e.pending_buf[e.pending++] = t >>> 8 & 255;
69
69
  }, B = (e, t, n) => {
70
- e.bi_valid > Ct - n ? (e.bi_buf |= t << e.bi_valid & 65535, ot(e, e.bi_buf), e.bi_buf = t >> Ct - e.bi_valid, e.bi_valid += n - Ct) : (e.bi_buf |= t << e.bi_valid & 65535, e.bi_valid += n);
70
+ e.bi_valid > Ct - n ? (e.bi_buf |= t << e.bi_valid & 65535, it(e, e.bi_buf), e.bi_buf = t >> Ct - e.bi_valid, e.bi_valid += n - Ct) : (e.bi_buf |= t << e.bi_valid & 65535, e.bi_valid += n);
71
71
  }, ie = (e, t, n) => {
72
72
  B(
73
73
  e,
@@ -82,7 +82,7 @@ const Sr = (e) => e < 256 ? nt[e] : nt[256 + (e >>> 7)], ot = (e, t) => {
82
82
  while (--t > 0);
83
83
  return n >>> 1;
84
84
  }, Co = (e) => {
85
- e.bi_valid === 16 ? (ot(e, e.bi_buf), e.bi_buf = 0, e.bi_valid = 0) : e.bi_valid >= 8 && (e.pending_buf[e.pending++] = e.bi_buf & 255, e.bi_buf >>= 8, e.bi_valid -= 8);
85
+ e.bi_valid === 16 ? (it(e, e.bi_buf), e.bi_buf = 0, e.bi_valid = 0) : e.bi_valid >= 8 && (e.pending_buf[e.pending++] = e.bi_buf & 255, e.bi_buf >>= 8, e.bi_valid -= 8);
86
86
  }, Fo = (e, t) => {
87
87
  const n = t.dyn_tree, r = t.max_code, o = t.stat_desc.static_tree, i = t.stat_desc.has_stree, a = t.stat_desc.extra_bits, s = t.stat_desc.extra_base, c = t.stat_desc.max_length;
88
88
  let u, l, d, f, _, m, w = 0;
@@ -114,13 +114,13 @@ const Sr = (e) => e < 256 ? nt[e] : nt[256 + (e >>> 7)], ot = (e, t) => {
114
114
  const i = new Array(Se + 1);
115
115
  for (n = 0, r = 0; r < fn - 1; r++)
116
116
  for (pn[r] = n, e = 0; e < 1 << Wt[r]; e++)
117
- rt[n++] = r;
118
- for (rt[n - 1] = r, o = 0, r = 0; r < 16; r++)
117
+ ot[n++] = r;
118
+ for (ot[n - 1] = r, o = 0, r = 0; r < 16; r++)
119
119
  for (zt[r] = o, e = 0; e < 1 << wt[r]; e++)
120
- nt[o++] = r;
120
+ rt[o++] = r;
121
121
  for (o >>= 7; r < Re; r++)
122
122
  for (zt[r] = o << 7, e = 0; e < 1 << wt[r] - 7; e++)
123
- nt[256 + o++] = r;
123
+ rt[256 + o++] = r;
124
124
  for (t = 0; t <= Se; t++)
125
125
  i[t] = 0;
126
126
  for (e = 0; e <= 143; )
@@ -131,12 +131,12 @@ const Sr = (e) => e < 256 ? nt[e] : nt[256 + (e >>> 7)], ot = (e, t) => {
131
131
  fe[e * 2 + 1] = 7, e++, i[7]++;
132
132
  for (; e <= 287; )
133
133
  fe[e * 2 + 1] = 8, e++, i[8]++;
134
- for (Tr(fe, tt + 1, i), e = 0; e < Re; e++)
135
- Qe[e * 2 + 1] = 5, Qe[e * 2] = Er(e, 5);
136
- vr = new Ft(fe, Wt, lt + 1, tt, Se), kr = new Ft(Qe, wt, 0, Re, Se), zr = new Ft(new Array(0), Ro, 0, dn, Po);
134
+ for (Tr(fe, nt + 1, i), e = 0; e < Re; e++)
135
+ et[e * 2 + 1] = 5, et[e * 2] = Er(e, 5);
136
+ vr = new Ft(fe, Wt, lt + 1, nt, Se), kr = new Ft(et, wt, 0, Re, Se), zr = new Ft(new Array(0), Ro, 0, dn, Po);
137
137
  }, $r = (e) => {
138
138
  let t;
139
- for (t = 0; t < tt; t++)
139
+ for (t = 0; t < nt; t++)
140
140
  e.dyn_ltree[t * 2] = 0;
141
141
  for (t = 0; t < Re; t++)
142
142
  e.dyn_dtree[t * 2] = 0;
@@ -144,7 +144,7 @@ const Sr = (e) => e < 256 ? nt[e] : nt[256 + (e >>> 7)], ot = (e, t) => {
144
144
  e.bl_tree[t * 2] = 0;
145
145
  e.dyn_ltree[hn * 2] = 1, e.opt_len = e.static_len = 0, e.sym_next = e.matches = 0;
146
146
  }, Zr = (e) => {
147
- e.bi_valid > 8 ? ot(e, e.bi_buf) : e.bi_valid > 0 && (e.pending_buf[e.pending++] = e.bi_buf), e.bi_buf = 0, e.bi_valid = 0;
147
+ e.bi_valid > 8 ? it(e, e.bi_buf) : e.bi_valid > 0 && (e.pending_buf[e.pending++] = e.bi_buf), e.bi_buf = 0, e.bi_valid = 0;
148
148
  }, Zn = (e, t, n, r) => {
149
149
  const o = t * 2, i = n * 2;
150
150
  return e[o] < e[i] || e[o] === e[i] && r[t] <= r[n];
@@ -158,7 +158,7 @@ const Sr = (e) => e < 256 ? nt[e] : nt[256 + (e >>> 7)], ot = (e, t) => {
158
158
  let r, o, i = 0, a, s;
159
159
  if (e.sym_next !== 0)
160
160
  do
161
- r = e.pending_buf[e.sym_buf + i++] & 255, r += (e.pending_buf[e.sym_buf + i++] & 255) << 8, o = e.pending_buf[e.sym_buf + i++], r === 0 ? ie(e, o, t) : (a = rt[o], ie(e, a + lt + 1, t), s = Wt[a], s !== 0 && (o -= pn[a], B(e, o, s)), r--, a = Sr(r), ie(e, a, n), s = wt[a], s !== 0 && (r -= zt[a], B(e, r, s)));
161
+ r = e.pending_buf[e.sym_buf + i++] & 255, r += (e.pending_buf[e.sym_buf + i++] & 255) << 8, o = e.pending_buf[e.sym_buf + i++], r === 0 ? ie(e, o, t) : (a = ot[o], ie(e, a + lt + 1, t), s = Wt[a], s !== 0 && (o -= pn[a], B(e, o, s)), r--, a = Sr(r), ie(e, a, n), s = wt[a], s !== 0 && (r -= zt[a], B(e, r, s)));
162
162
  while (i < e.sym_next);
163
163
  ie(e, hn, t);
164
164
  }, Ht = (e, t) => {
@@ -241,13 +241,13 @@ let In = !1;
241
241
  const Jo = (e) => {
242
242
  In || (jo(), In = !0), e.l_desc = new jt(e.dyn_ltree, vr), e.d_desc = new jt(e.dyn_dtree, kr), e.bl_desc = new jt(e.bl_tree, zr), e.bi_buf = 0, e.bi_valid = 0, $r(e);
243
243
  }, Or = (e, t, n, r) => {
244
- B(e, (xo << 1) + (r ? 1 : 0), 3), Zr(e), ot(e, n), ot(e, ~n), n && e.pending_buf.set(e.window.subarray(t, t + n), e.pending), e.pending += n;
244
+ B(e, (xo << 1) + (r ? 1 : 0), 3), Zr(e), it(e, n), it(e, ~n), n && e.pending_buf.set(e.window.subarray(t, t + n), e.pending), e.pending += n;
245
245
  }, Bo = (e) => {
246
246
  B(e, _r << 1, 3), ie(e, hn, fe), Co(e);
247
247
  }, Vo = (e, t, n, r) => {
248
248
  let o, i, a = 0;
249
- e.level > 0 ? (e.strm.data_type === 2 && (e.strm.data_type = Mo(e)), Ht(e, e.l_desc), Ht(e, e.d_desc), a = Uo(e), o = e.opt_len + 3 + 7 >>> 3, i = e.static_len + 3 + 7 >>> 3, i <= o && (o = i)) : o = i = n + 5, n + 4 <= o && t !== -1 ? Or(e, t, n, r) : e.strategy === 4 || i === o ? (B(e, (_r << 1) + (r ? 1 : 0), 3), On(e, fe, Qe)) : (B(e, (Ao << 1) + (r ? 1 : 0), 3), Lo(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, a + 1), On(e, e.dyn_ltree, e.dyn_dtree)), $r(e), r && Zr(e);
250
- }, Wo = (e, t, n) => (e.pending_buf[e.sym_buf + e.sym_next++] = t, e.pending_buf[e.sym_buf + e.sym_next++] = t >> 8, e.pending_buf[e.sym_buf + e.sym_next++] = n, t === 0 ? e.dyn_ltree[n * 2]++ : (e.matches++, t--, e.dyn_ltree[(rt[n] + lt + 1) * 2]++, e.dyn_dtree[Sr(t) * 2]++), e.sym_next === e.sym_end);
249
+ e.level > 0 ? (e.strm.data_type === 2 && (e.strm.data_type = Mo(e)), Ht(e, e.l_desc), Ht(e, e.d_desc), a = Uo(e), o = e.opt_len + 3 + 7 >>> 3, i = e.static_len + 3 + 7 >>> 3, i <= o && (o = i)) : o = i = n + 5, n + 4 <= o && t !== -1 ? Or(e, t, n, r) : e.strategy === 4 || i === o ? (B(e, (_r << 1) + (r ? 1 : 0), 3), On(e, fe, et)) : (B(e, (Ao << 1) + (r ? 1 : 0), 3), Lo(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, a + 1), On(e, e.dyn_ltree, e.dyn_dtree)), $r(e), r && Zr(e);
250
+ }, Wo = (e, t, n) => (e.pending_buf[e.sym_buf + e.sym_next++] = t, e.pending_buf[e.sym_buf + e.sym_next++] = t >> 8, e.pending_buf[e.sym_buf + e.sym_next++] = n, t === 0 ? e.dyn_ltree[n * 2]++ : (e.matches++, t--, e.dyn_ltree[(ot[n] + lt + 1) * 2]++, e.dyn_dtree[Sr(t) * 2]++), e.sym_next === e.sym_end);
251
251
  var Ho = Jo, Ko = Or, Go = Vo, qo = Wo, Xo = Bo, Yo = {
252
252
  _tr_init: Ho,
253
253
  _tr_stored_block: Ko,
@@ -283,7 +283,7 @@ const ei = () => {
283
283
  e = e >>> 8 ^ o[(e ^ t[a]) & 255];
284
284
  return e ^ -1;
285
285
  };
286
- var he = ni, St = {
286
+ var pe = ni, St = {
287
287
  2: "need dictionary",
288
288
  /* Z_NEED_DICT 2 */
289
289
  1: "stream end",
@@ -330,8 +330,8 @@ var he = ni, St = {
330
330
  Z_DEFLATED: 8
331
331
  //Z_NULL: null // Use -1 or null inline, depending on var type
332
332
  };
333
- const { _tr_init: ri, _tr_stored_block: Kt, _tr_flush_block: oi, _tr_tally: ge, _tr_align: ii } = Yo, {
334
- Z_NO_FLUSH: me,
333
+ const { _tr_init: ri, _tr_stored_block: Kt, _tr_flush_block: oi, _tr_tally: me, _tr_align: ii } = Yo, {
334
+ Z_NO_FLUSH: ye,
335
335
  Z_PARTIAL_FLUSH: ai,
336
336
  Z_FULL_FLUSH: si,
337
337
  Z_FINISH: ee,
@@ -349,7 +349,7 @@ const { _tr_init: ri, _tr_stored_block: Kt, _tr_flush_block: oi, _tr_tally: ge,
349
349
  Z_DEFAULT_STRATEGY: hi,
350
350
  Z_UNKNOWN: pi,
351
351
  Z_DEFLATED: xt
352
- } = Ar, _i = 9, gi = 15, mi = 8, yi = 29, bi = 256, Gt = bi + 1 + yi, wi = 30, vi = 19, ki = 2 * Gt + 1, zi = 15, z = 3, _e = 258, ce = _e + z + 1, Si = 32, Fe = 42, _n = 57, qt = 69, Xt = 73, Yt = 91, Qt = 103, Ee = 113, Ke = 666, J = 1, Be = 2, $e = 3, Ve = 4, Ei = 3, Te = (e, t) => (e.msg = St[t], t), Rn = (e) => e * 2 - (e > 4 ? 9 : 0), pe = (e) => {
352
+ } = Ar, _i = 9, gi = 15, mi = 8, yi = 29, bi = 256, Gt = bi + 1 + yi, wi = 30, vi = 19, ki = 2 * Gt + 1, zi = 15, z = 3, ge = 258, ce = ge + z + 1, Si = 32, je = 42, _n = 57, qt = 69, Xt = 73, Yt = 91, Qt = 103, Ee = 113, Ge = 666, J = 1, Ve = 2, $e = 3, We = 4, Ei = 3, Te = (e, t) => (e.msg = St[t], t), Rn = (e) => e * 2 - (e > 4 ? 9 : 0), _e = (e) => {
353
353
  let t = e.length;
354
354
  for (; --t >= 0; )
355
355
  e[t] = 0;
@@ -364,7 +364,7 @@ const { _tr_init: ri, _tr_stored_block: Kt, _tr_flush_block: oi, _tr_tally: ge,
364
364
  n = e.prev[--r], e.prev[r] = n >= o ? n - o : 0;
365
365
  while (--t);
366
366
  };
367
- let $i = (e, t, n) => (t << e.hash_shift ^ n) & e.hash_mask, ye = $i;
367
+ let $i = (e, t, n) => (t << e.hash_shift ^ n) & e.hash_mask, be = $i;
368
368
  const G = (e) => {
369
369
  const t = e.state;
370
370
  let n = t.pending;
@@ -373,14 +373,14 @@ const G = (e) => {
373
373
  oi(e, e.block_start >= 0 ? e.block_start : -1, e.strstart - e.block_start, t), e.block_start = e.strstart, G(e.strm);
374
374
  }, $ = (e, t) => {
375
375
  e.pending_buf[e.pending++] = t;
376
- }, He = (e, t) => {
376
+ }, Ke = (e, t) => {
377
377
  e.pending_buf[e.pending++] = t >>> 8 & 255, e.pending_buf[e.pending++] = t & 255;
378
378
  }, en = (e, t, n, r) => {
379
379
  let o = e.avail_in;
380
- return o > r && (o = r), o === 0 ? 0 : (e.avail_in -= o, t.set(e.input.subarray(e.next_in, e.next_in + o), n), e.state.wrap === 1 ? e.adler = xr(e.adler, t, o, n) : e.state.wrap === 2 && (e.adler = he(e.adler, t, o, n)), e.next_in += o, e.total_in += o, o);
380
+ return o > r && (o = r), o === 0 ? 0 : (e.avail_in -= o, t.set(e.input.subarray(e.next_in, e.next_in + o), n), e.state.wrap === 1 ? e.adler = xr(e.adler, t, o, n) : e.state.wrap === 2 && (e.adler = pe(e.adler, t, o, n)), e.next_in += o, e.total_in += o, o);
381
381
  }, Ir = (e, t) => {
382
382
  let n = e.max_chain_length, r = e.strstart, o, i, a = e.prev_length, s = e.nice_match;
383
- const c = e.strstart > e.w_size - ce ? e.strstart - (e.w_size - ce) : 0, u = e.window, l = e.w_mask, d = e.prev, f = e.strstart + _e;
383
+ const c = e.strstart > e.w_size - ce ? e.strstart - (e.w_size - ce) : 0, u = e.window, l = e.w_mask, d = e.prev, f = e.strstart + ge;
384
384
  let _ = u[r + a - 1], m = u[r + a];
385
385
  e.prev_length >= e.good_match && (n >>= 2), s > e.lookahead && (s = e.lookahead);
386
386
  do
@@ -389,7 +389,7 @@ const G = (e) => {
389
389
  do
390
390
  ;
391
391
  while (u[++r] === u[++o] && u[++r] === u[++o] && u[++r] === u[++o] && u[++r] === u[++o] && u[++r] === u[++o] && u[++r] === u[++o] && u[++r] === u[++o] && u[++r] === u[++o] && r < f);
392
- if (i = _e - (f - r), r = f - _e, i > a) {
392
+ if (i = ge - (f - r), r = f - ge, i > a) {
393
393
  if (e.match_start = t, a = i, i >= s)
394
394
  break;
395
395
  _ = u[r + a - 1], m = u[r + a];
@@ -397,109 +397,109 @@ const G = (e) => {
397
397
  }
398
398
  while ((t = d[t & l]) > c && --n !== 0);
399
399
  return a <= e.lookahead ? a : e.lookahead;
400
- }, je = (e) => {
400
+ }, Ue = (e) => {
401
401
  const t = e.w_size;
402
402
  let n, r, o;
403
403
  do {
404
404
  if (r = e.window_size - e.lookahead - e.strstart, e.strstart >= t + (t - ce) && (e.window.set(e.window.subarray(t, t + t - r), 0), e.match_start -= t, e.strstart -= t, e.block_start -= t, e.insert > e.strstart && (e.insert = e.strstart), Ti(e), r += t), e.strm.avail_in === 0)
405
405
  break;
406
406
  if (n = en(e.strm, e.window, e.strstart + e.lookahead, r), e.lookahead += n, e.lookahead + e.insert >= z)
407
- for (o = e.strstart - e.insert, e.ins_h = e.window[o], e.ins_h = ye(e, e.ins_h, e.window[o + 1]); e.insert && (e.ins_h = ye(e, e.ins_h, e.window[o + z - 1]), e.prev[o & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = o, o++, e.insert--, !(e.lookahead + e.insert < z)); )
407
+ for (o = e.strstart - e.insert, e.ins_h = e.window[o], e.ins_h = be(e, e.ins_h, e.window[o + 1]); e.insert && (e.ins_h = be(e, e.ins_h, e.window[o + z - 1]), e.prev[o & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = o, o++, e.insert--, !(e.lookahead + e.insert < z)); )
408
408
  ;
409
409
  } while (e.lookahead < ce && e.strm.avail_in !== 0);
410
410
  }, Nr = (e, t) => {
411
411
  let n = e.pending_buf_size - 5 > e.w_size ? e.w_size : e.pending_buf_size - 5, r, o, i, a = 0, s = e.strm.avail_in;
412
412
  do {
413
- if (r = 65535, i = e.bi_valid + 42 >> 3, e.strm.avail_out < i || (i = e.strm.avail_out - i, o = e.strstart - e.block_start, r > o + e.strm.avail_in && (r = o + e.strm.avail_in), r > i && (r = i), r < n && (r === 0 && t !== ee || t === me || r !== o + e.strm.avail_in)))
413
+ if (r = 65535, i = e.bi_valid + 42 >> 3, e.strm.avail_out < i || (i = e.strm.avail_out - i, o = e.strstart - e.block_start, r > o + e.strm.avail_in && (r = o + e.strm.avail_in), r > i && (r = i), r < n && (r === 0 && t !== ee || t === ye || r !== o + e.strm.avail_in)))
414
414
  break;
415
415
  a = t === ee && r === o + e.strm.avail_in ? 1 : 0, Kt(e, 0, 0, a), e.pending_buf[e.pending - 4] = r, e.pending_buf[e.pending - 3] = r >> 8, e.pending_buf[e.pending - 2] = ~r, e.pending_buf[e.pending - 1] = ~r >> 8, G(e.strm), o && (o > r && (o = r), e.strm.output.set(e.window.subarray(e.block_start, e.block_start + o), e.strm.next_out), e.strm.next_out += o, e.strm.avail_out -= o, e.strm.total_out += o, e.block_start += o, r -= o), r && (en(e.strm, e.strm.output, e.strm.next_out, r), e.strm.next_out += r, e.strm.avail_out -= r, e.strm.total_out += r);
416
416
  } while (a === 0);
417
- return s -= e.strm.avail_in, s && (s >= e.w_size ? (e.matches = 2, e.window.set(e.strm.input.subarray(e.strm.next_in - e.w_size, e.strm.next_in), 0), e.strstart = e.w_size, e.insert = e.strstart) : (e.window_size - e.strstart <= s && (e.strstart -= e.w_size, e.window.set(e.window.subarray(e.w_size, e.w_size + e.strstart), 0), e.matches < 2 && e.matches++, e.insert > e.strstart && (e.insert = e.strstart)), e.window.set(e.strm.input.subarray(e.strm.next_in - s, e.strm.next_in), e.strstart), e.strstart += s, e.insert += s > e.w_size - e.insert ? e.w_size - e.insert : s), e.block_start = e.strstart), e.high_water < e.strstart && (e.high_water = e.strstart), a ? Ve : t !== me && t !== ee && e.strm.avail_in === 0 && e.strstart === e.block_start ? Be : (i = e.window_size - e.strstart, e.strm.avail_in > i && e.block_start >= e.w_size && (e.block_start -= e.w_size, e.strstart -= e.w_size, e.window.set(e.window.subarray(e.w_size, e.w_size + e.strstart), 0), e.matches < 2 && e.matches++, i += e.w_size, e.insert > e.strstart && (e.insert = e.strstart)), i > e.strm.avail_in && (i = e.strm.avail_in), i && (en(e.strm, e.window, e.strstart, i), e.strstart += i, e.insert += i > e.w_size - e.insert ? e.w_size - e.insert : i), e.high_water < e.strstart && (e.high_water = e.strstart), i = e.bi_valid + 42 >> 3, i = e.pending_buf_size - i > 65535 ? 65535 : e.pending_buf_size - i, n = i > e.w_size ? e.w_size : i, o = e.strstart - e.block_start, (o >= n || (o || t === ee) && t !== me && e.strm.avail_in === 0 && o <= i) && (r = o > i ? i : o, a = t === ee && e.strm.avail_in === 0 && r === o ? 1 : 0, Kt(e, e.block_start, r, a), e.block_start += r, G(e.strm)), a ? $e : J);
417
+ return s -= e.strm.avail_in, s && (s >= e.w_size ? (e.matches = 2, e.window.set(e.strm.input.subarray(e.strm.next_in - e.w_size, e.strm.next_in), 0), e.strstart = e.w_size, e.insert = e.strstart) : (e.window_size - e.strstart <= s && (e.strstart -= e.w_size, e.window.set(e.window.subarray(e.w_size, e.w_size + e.strstart), 0), e.matches < 2 && e.matches++, e.insert > e.strstart && (e.insert = e.strstart)), e.window.set(e.strm.input.subarray(e.strm.next_in - s, e.strm.next_in), e.strstart), e.strstart += s, e.insert += s > e.w_size - e.insert ? e.w_size - e.insert : s), e.block_start = e.strstart), e.high_water < e.strstart && (e.high_water = e.strstart), a ? We : t !== ye && t !== ee && e.strm.avail_in === 0 && e.strstart === e.block_start ? Ve : (i = e.window_size - e.strstart, e.strm.avail_in > i && e.block_start >= e.w_size && (e.block_start -= e.w_size, e.strstart -= e.w_size, e.window.set(e.window.subarray(e.w_size, e.w_size + e.strstart), 0), e.matches < 2 && e.matches++, i += e.w_size, e.insert > e.strstart && (e.insert = e.strstart)), i > e.strm.avail_in && (i = e.strm.avail_in), i && (en(e.strm, e.window, e.strstart, i), e.strstart += i, e.insert += i > e.w_size - e.insert ? e.w_size - e.insert : i), e.high_water < e.strstart && (e.high_water = e.strstart), i = e.bi_valid + 42 >> 3, i = e.pending_buf_size - i > 65535 ? 65535 : e.pending_buf_size - i, n = i > e.w_size ? e.w_size : i, o = e.strstart - e.block_start, (o >= n || (o || t === ee) && t !== ye && e.strm.avail_in === 0 && o <= i) && (r = o > i ? i : o, a = t === ee && e.strm.avail_in === 0 && r === o ? 1 : 0, Kt(e, e.block_start, r, a), e.block_start += r, G(e.strm)), a ? $e : J);
418
418
  }, Mt = (e, t) => {
419
419
  let n, r;
420
420
  for (; ; ) {
421
421
  if (e.lookahead < ce) {
422
- if (je(e), e.lookahead < ce && t === me)
422
+ if (Ue(e), e.lookahead < ce && t === ye)
423
423
  return J;
424
424
  if (e.lookahead === 0)
425
425
  break;
426
426
  }
427
- if (n = 0, e.lookahead >= z && (e.ins_h = ye(e, e.ins_h, e.window[e.strstart + z - 1]), n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), n !== 0 && e.strstart - n <= e.w_size - ce && (e.match_length = Ir(e, n)), e.match_length >= z)
428
- if (r = ge(e, e.strstart - e.match_start, e.match_length - z), e.lookahead -= e.match_length, e.match_length <= e.max_lazy_match && e.lookahead >= z) {
427
+ if (n = 0, e.lookahead >= z && (e.ins_h = be(e, e.ins_h, e.window[e.strstart + z - 1]), n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), n !== 0 && e.strstart - n <= e.w_size - ce && (e.match_length = Ir(e, n)), e.match_length >= z)
428
+ if (r = me(e, e.strstart - e.match_start, e.match_length - z), e.lookahead -= e.match_length, e.match_length <= e.max_lazy_match && e.lookahead >= z) {
429
429
  e.match_length--;
430
430
  do
431
- e.strstart++, e.ins_h = ye(e, e.ins_h, e.window[e.strstart + z - 1]), n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart;
431
+ e.strstart++, e.ins_h = be(e, e.ins_h, e.window[e.strstart + z - 1]), n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart;
432
432
  while (--e.match_length !== 0);
433
433
  e.strstart++;
434
434
  } else
435
- e.strstart += e.match_length, e.match_length = 0, e.ins_h = e.window[e.strstart], e.ins_h = ye(e, e.ins_h, e.window[e.strstart + 1]);
435
+ e.strstart += e.match_length, e.match_length = 0, e.ins_h = e.window[e.strstart], e.ins_h = be(e, e.ins_h, e.window[e.strstart + 1]);
436
436
  else
437
- r = ge(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++;
437
+ r = me(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++;
438
438
  if (r && (q(e, !1), e.strm.avail_out === 0))
439
439
  return J;
440
440
  }
441
- return e.insert = e.strstart < z - 1 ? e.strstart : z - 1, t === ee ? (q(e, !0), e.strm.avail_out === 0 ? $e : Ve) : e.sym_next && (q(e, !1), e.strm.avail_out === 0) ? J : Be;
441
+ return e.insert = e.strstart < z - 1 ? e.strstart : z - 1, t === ee ? (q(e, !0), e.strm.avail_out === 0 ? $e : We) : e.sym_next && (q(e, !1), e.strm.avail_out === 0) ? J : Ve;
442
442
  }, xe = (e, t) => {
443
443
  let n, r, o;
444
444
  for (; ; ) {
445
445
  if (e.lookahead < ce) {
446
- if (je(e), e.lookahead < ce && t === me)
446
+ if (Ue(e), e.lookahead < ce && t === ye)
447
447
  return J;
448
448
  if (e.lookahead === 0)
449
449
  break;
450
450
  }
451
- if (n = 0, e.lookahead >= z && (e.ins_h = ye(e, e.ins_h, e.window[e.strstart + z - 1]), n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), e.prev_length = e.match_length, e.prev_match = e.match_start, e.match_length = z - 1, n !== 0 && e.prev_length < e.max_lazy_match && e.strstart - n <= e.w_size - ce && (e.match_length = Ir(e, n), e.match_length <= 5 && (e.strategy === li || e.match_length === z && e.strstart - e.match_start > 4096) && (e.match_length = z - 1)), e.prev_length >= z && e.match_length <= e.prev_length) {
452
- o = e.strstart + e.lookahead - z, r = ge(e, e.strstart - 1 - e.prev_match, e.prev_length - z), e.lookahead -= e.prev_length - 1, e.prev_length -= 2;
451
+ if (n = 0, e.lookahead >= z && (e.ins_h = be(e, e.ins_h, e.window[e.strstart + z - 1]), n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), e.prev_length = e.match_length, e.prev_match = e.match_start, e.match_length = z - 1, n !== 0 && e.prev_length < e.max_lazy_match && e.strstart - n <= e.w_size - ce && (e.match_length = Ir(e, n), e.match_length <= 5 && (e.strategy === li || e.match_length === z && e.strstart - e.match_start > 4096) && (e.match_length = z - 1)), e.prev_length >= z && e.match_length <= e.prev_length) {
452
+ o = e.strstart + e.lookahead - z, r = me(e, e.strstart - 1 - e.prev_match, e.prev_length - z), e.lookahead -= e.prev_length - 1, e.prev_length -= 2;
453
453
  do
454
- ++e.strstart <= o && (e.ins_h = ye(e, e.ins_h, e.window[e.strstart + z - 1]), n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart);
454
+ ++e.strstart <= o && (e.ins_h = be(e, e.ins_h, e.window[e.strstart + z - 1]), n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart);
455
455
  while (--e.prev_length !== 0);
456
456
  if (e.match_available = 0, e.match_length = z - 1, e.strstart++, r && (q(e, !1), e.strm.avail_out === 0))
457
457
  return J;
458
458
  } else if (e.match_available) {
459
- if (r = ge(e, 0, e.window[e.strstart - 1]), r && q(e, !1), e.strstart++, e.lookahead--, e.strm.avail_out === 0)
459
+ if (r = me(e, 0, e.window[e.strstart - 1]), r && q(e, !1), e.strstart++, e.lookahead--, e.strm.avail_out === 0)
460
460
  return J;
461
461
  } else
462
462
  e.match_available = 1, e.strstart++, e.lookahead--;
463
463
  }
464
- return e.match_available && (r = ge(e, 0, e.window[e.strstart - 1]), e.match_available = 0), e.insert = e.strstart < z - 1 ? e.strstart : z - 1, t === ee ? (q(e, !0), e.strm.avail_out === 0 ? $e : Ve) : e.sym_next && (q(e, !1), e.strm.avail_out === 0) ? J : Be;
464
+ return e.match_available && (r = me(e, 0, e.window[e.strstart - 1]), e.match_available = 0), e.insert = e.strstart < z - 1 ? e.strstart : z - 1, t === ee ? (q(e, !0), e.strm.avail_out === 0 ? $e : We) : e.sym_next && (q(e, !1), e.strm.avail_out === 0) ? J : Ve;
465
465
  }, Zi = (e, t) => {
466
466
  let n, r, o, i;
467
467
  const a = e.window;
468
468
  for (; ; ) {
469
- if (e.lookahead <= _e) {
470
- if (je(e), e.lookahead <= _e && t === me)
469
+ if (e.lookahead <= ge) {
470
+ if (Ue(e), e.lookahead <= ge && t === ye)
471
471
  return J;
472
472
  if (e.lookahead === 0)
473
473
  break;
474
474
  }
475
475
  if (e.match_length = 0, e.lookahead >= z && e.strstart > 0 && (o = e.strstart - 1, r = a[o], r === a[++o] && r === a[++o] && r === a[++o])) {
476
- i = e.strstart + _e;
476
+ i = e.strstart + ge;
477
477
  do
478
478
  ;
479
479
  while (r === a[++o] && r === a[++o] && r === a[++o] && r === a[++o] && r === a[++o] && r === a[++o] && r === a[++o] && r === a[++o] && o < i);
480
- e.match_length = _e - (i - o), e.match_length > e.lookahead && (e.match_length = e.lookahead);
480
+ e.match_length = ge - (i - o), e.match_length > e.lookahead && (e.match_length = e.lookahead);
481
481
  }
482
- if (e.match_length >= z ? (n = ge(e, 1, e.match_length - z), e.lookahead -= e.match_length, e.strstart += e.match_length, e.match_length = 0) : (n = ge(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++), n && (q(e, !1), e.strm.avail_out === 0))
482
+ if (e.match_length >= z ? (n = me(e, 1, e.match_length - z), e.lookahead -= e.match_length, e.strstart += e.match_length, e.match_length = 0) : (n = me(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++), n && (q(e, !1), e.strm.avail_out === 0))
483
483
  return J;
484
484
  }
485
- return e.insert = 0, t === ee ? (q(e, !0), e.strm.avail_out === 0 ? $e : Ve) : e.sym_next && (q(e, !1), e.strm.avail_out === 0) ? J : Be;
485
+ return e.insert = 0, t === ee ? (q(e, !0), e.strm.avail_out === 0 ? $e : We) : e.sym_next && (q(e, !1), e.strm.avail_out === 0) ? J : Ve;
486
486
  }, Oi = (e, t) => {
487
487
  let n;
488
488
  for (; ; ) {
489
- if (e.lookahead === 0 && (je(e), e.lookahead === 0)) {
490
- if (t === me)
489
+ if (e.lookahead === 0 && (Ue(e), e.lookahead === 0)) {
490
+ if (t === ye)
491
491
  return J;
492
492
  break;
493
493
  }
494
- if (e.match_length = 0, n = ge(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++, n && (q(e, !1), e.strm.avail_out === 0))
494
+ if (e.match_length = 0, n = me(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++, n && (q(e, !1), e.strm.avail_out === 0))
495
495
  return J;
496
496
  }
497
- return e.insert = 0, t === ee ? (q(e, !0), e.strm.avail_out === 0 ? $e : Ve) : e.sym_next && (q(e, !1), e.strm.avail_out === 0) ? J : Be;
497
+ return e.insert = 0, t === ee ? (q(e, !0), e.strm.avail_out === 0 ? $e : We) : e.sym_next && (q(e, !1), e.strm.avail_out === 0) ? J : Ve;
498
498
  };
499
499
  function oe(e, t, n, r, o) {
500
500
  this.good_length = e, this.max_lazy = t, this.nice_length = n, this.max_chain = r, this.func = o;
501
501
  }
502
- const Ge = [
502
+ const qe = [
503
503
  /* good lazy nice chain */
504
504
  new oe(0, 0, 0, 0, Nr),
505
505
  /* 0 store only */
@@ -522,18 +522,18 @@ const Ge = [
522
522
  new oe(32, 258, 258, 4096, xe)
523
523
  /* 9 max compression */
524
524
  ], xi = (e) => {
525
- e.window_size = 2 * e.w_size, pe(e.head), e.max_lazy_match = Ge[e.level].max_lazy, e.good_match = Ge[e.level].good_length, e.nice_match = Ge[e.level].nice_length, e.max_chain_length = Ge[e.level].max_chain, e.strstart = 0, e.block_start = 0, e.lookahead = 0, e.insert = 0, e.match_length = e.prev_length = z - 1, e.match_available = 0, e.ins_h = 0;
525
+ e.window_size = 2 * e.w_size, _e(e.head), e.max_lazy_match = qe[e.level].max_lazy, e.good_match = qe[e.level].good_length, e.nice_match = qe[e.level].nice_length, e.max_chain_length = qe[e.level].max_chain, e.strstart = 0, e.block_start = 0, e.lookahead = 0, e.insert = 0, e.match_length = e.prev_length = z - 1, e.match_available = 0, e.ins_h = 0;
526
526
  };
527
527
  function Ai() {
528
- 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 = xt, 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 Uint16Array(ki * 2), this.dyn_dtree = new Uint16Array((2 * wi + 1) * 2), this.bl_tree = new Uint16Array((2 * vi + 1) * 2), pe(this.dyn_ltree), pe(this.dyn_dtree), pe(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new Uint16Array(zi + 1), this.heap = new Uint16Array(2 * Gt + 1), pe(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new Uint16Array(2 * Gt + 1), pe(this.depth), this.sym_buf = 0, this.lit_bufsize = 0, this.sym_next = 0, this.sym_end = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
528
+ 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 = xt, 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 Uint16Array(ki * 2), this.dyn_dtree = new Uint16Array((2 * wi + 1) * 2), this.bl_tree = new Uint16Array((2 * vi + 1) * 2), _e(this.dyn_ltree), _e(this.dyn_dtree), _e(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new Uint16Array(zi + 1), this.heap = new Uint16Array(2 * Gt + 1), _e(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new Uint16Array(2 * Gt + 1), _e(this.depth), this.sym_buf = 0, this.lit_bufsize = 0, this.sym_next = 0, this.sym_end = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
529
529
  }
530
530
  const ft = (e) => {
531
531
  if (!e)
532
532
  return 1;
533
533
  const t = e.state;
534
- return !t || t.strm !== e || t.status !== Fe && //#ifdef GZIP
534
+ return !t || t.strm !== e || t.status !== je && //#ifdef GZIP
535
535
  t.status !== _n && //#endif
536
- t.status !== qt && t.status !== Xt && t.status !== Yt && t.status !== Qt && t.status !== Ee && t.status !== Ke ? 1 : 0;
536
+ t.status !== qt && t.status !== Xt && t.status !== Yt && t.status !== Qt && t.status !== Ee && t.status !== Ge ? 1 : 0;
537
537
  }, Pr = (e) => {
538
538
  if (ft(e))
539
539
  return Te(e, se);
@@ -542,7 +542,7 @@ const ft = (e) => {
542
542
  return t.pending = 0, t.pending_out = 0, t.wrap < 0 && (t.wrap = -t.wrap), t.status = //#ifdef GZIP
543
543
  t.wrap === 2 ? _n : (
544
544
  //#endif
545
- t.wrap ? Fe : Ee
545
+ t.wrap ? je : Ee
546
546
  ), e.adler = t.wrap === 2 ? 0 : 1, t.last_flush = -2, ri(t), F;
547
547
  }, Rr = (e) => {
548
548
  const t = Pr(e);
@@ -555,12 +555,12 @@ const ft = (e) => {
555
555
  return Te(e, se);
556
556
  r === 8 && (r = 9);
557
557
  const s = new Ai();
558
- return e.state = s, s.strm = e, s.status = Fe, s.wrap = a, s.gzhead = null, s.w_bits = r, s.w_size = 1 << s.w_bits, s.w_mask = s.w_size - 1, s.hash_bits = o + 7, s.hash_size = 1 << s.hash_bits, s.hash_mask = s.hash_size - 1, s.hash_shift = ~~((s.hash_bits + z - 1) / z), s.window = new Uint8Array(s.w_size * 2), s.head = new Uint16Array(s.hash_size), s.prev = new Uint16Array(s.w_size), s.lit_bufsize = 1 << o + 6, s.pending_buf_size = s.lit_bufsize * 4, s.pending_buf = new Uint8Array(s.pending_buf_size), s.sym_buf = s.lit_bufsize, s.sym_end = (s.lit_bufsize - 1) * 3, s.level = t, s.strategy = i, s.method = n, Rr(e);
558
+ return e.state = s, s.strm = e, s.status = je, s.wrap = a, s.gzhead = null, s.w_bits = r, s.w_size = 1 << s.w_bits, s.w_mask = s.w_size - 1, s.hash_bits = o + 7, s.hash_size = 1 << s.hash_bits, s.hash_mask = s.hash_size - 1, s.hash_shift = ~~((s.hash_bits + z - 1) / z), s.window = new Uint8Array(s.w_size * 2), s.head = new Uint16Array(s.hash_size), s.prev = new Uint16Array(s.w_size), s.lit_bufsize = 1 << o + 6, s.pending_buf_size = s.lit_bufsize * 4, s.pending_buf = new Uint8Array(s.pending_buf_size), s.sym_buf = s.lit_bufsize, s.sym_end = (s.lit_bufsize - 1) * 3, s.level = t, s.strategy = i, s.method = n, Rr(e);
559
559
  }, Ni = (e, t) => Dr(e, t, xt, gi, mi, hi), Pi = (e, t) => {
560
560
  if (ft(e) || t > Nn || t < 0)
561
561
  return e ? Te(e, se) : se;
562
562
  const n = e.state;
563
- if (!e.output || e.avail_in !== 0 && !e.input || n.status === Ke && t !== ee)
563
+ if (!e.output || e.avail_in !== 0 && !e.input || n.status === Ge && t !== ee)
564
564
  return Te(e, e.avail_out === 0 ? Lt : se);
565
565
  const r = n.last_flush;
566
566
  if (n.last_flush = t, n.pending !== 0) {
@@ -568,11 +568,11 @@ const ft = (e) => {
568
568
  return n.last_flush = -1, F;
569
569
  } else if (e.avail_in === 0 && Rn(t) <= Rn(r) && t !== ee)
570
570
  return Te(e, Lt);
571
- if (n.status === Ke && e.avail_in !== 0)
571
+ if (n.status === Ge && e.avail_in !== 0)
572
572
  return Te(e, Lt);
573
- if (n.status === Fe && n.wrap === 0 && (n.status = Ee), n.status === Fe) {
573
+ if (n.status === je && n.wrap === 0 && (n.status = Ee), n.status === je) {
574
574
  let o = xt + (n.w_bits - 8 << 4) << 8, i = -1;
575
- if (n.strategy >= _t || n.level < 2 ? i = 0 : n.level < 6 ? i = 1 : n.level === 6 ? i = 2 : i = 3, o |= i << 6, n.strstart !== 0 && (o |= Si), o += 31 - o % 31, He(n, o), n.strstart !== 0 && (He(n, e.adler >>> 16), He(n, e.adler & 65535)), e.adler = 1, n.status = Ee, G(e), n.pending !== 0)
575
+ if (n.strategy >= _t || n.level < 2 ? i = 0 : n.level < 6 ? i = 1 : n.level === 6 ? i = 2 : i = 3, o |= i << 6, n.strstart !== 0 && (o |= Si), o += 31 - o % 31, Ke(n, o), n.strstart !== 0 && (Ke(n, e.adler >>> 16), Ke(n, e.adler & 65535)), e.adler = 1, n.status = Ee, G(e), n.pending !== 0)
576
576
  return n.last_flush = -1, F;
577
577
  }
578
578
  if (n.status === _n) {
@@ -580,7 +580,7 @@ const ft = (e) => {
580
580
  $(
581
581
  n,
582
582
  (n.gzhead.text ? 1 : 0) + (n.gzhead.hcrc ? 2 : 0) + (n.gzhead.extra ? 4 : 0) + (n.gzhead.name ? 8 : 0) + (n.gzhead.comment ? 16 : 0)
583
- ), $(n, n.gzhead.time & 255), $(n, n.gzhead.time >> 8 & 255), $(n, n.gzhead.time >> 16 & 255), $(n, n.gzhead.time >> 24 & 255), $(n, n.level === 9 ? 2 : n.strategy >= _t || n.level < 2 ? 4 : 0), $(n, n.gzhead.os & 255), n.gzhead.extra && n.gzhead.extra.length && ($(n, n.gzhead.extra.length & 255), $(n, n.gzhead.extra.length >> 8 & 255)), n.gzhead.hcrc && (e.adler = he(e.adler, n.pending_buf, n.pending, 0)), n.gzindex = 0, n.status = qt;
583
+ ), $(n, n.gzhead.time & 255), $(n, n.gzhead.time >> 8 & 255), $(n, n.gzhead.time >> 16 & 255), $(n, n.gzhead.time >> 24 & 255), $(n, n.level === 9 ? 2 : n.strategy >= _t || n.level < 2 ? 4 : 0), $(n, n.gzhead.os & 255), n.gzhead.extra && n.gzhead.extra.length && ($(n, n.gzhead.extra.length & 255), $(n, n.gzhead.extra.length >> 8 & 255)), n.gzhead.hcrc && (e.adler = pe(e.adler, n.pending_buf, n.pending, 0)), n.gzindex = 0, n.status = qt;
584
584
  else if ($(n, 0), $(n, 0), $(n, 0), $(n, 0), $(n, 0), $(n, n.level === 9 ? 2 : n.strategy >= _t || n.level < 2 ? 4 : 0), $(n, Ei), n.status = Ee, G(e), n.pending !== 0)
585
585
  return n.last_flush = -1, F;
586
586
  }
@@ -589,12 +589,12 @@ const ft = (e) => {
589
589
  let o = n.pending, i = (n.gzhead.extra.length & 65535) - n.gzindex;
590
590
  for (; n.pending + i > n.pending_buf_size; ) {
591
591
  let s = n.pending_buf_size - n.pending;
592
- if (n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex, n.gzindex + s), n.pending), n.pending = n.pending_buf_size, n.gzhead.hcrc && n.pending > o && (e.adler = he(e.adler, n.pending_buf, n.pending - o, o)), n.gzindex += s, G(e), n.pending !== 0)
592
+ if (n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex, n.gzindex + s), n.pending), n.pending = n.pending_buf_size, n.gzhead.hcrc && n.pending > o && (e.adler = pe(e.adler, n.pending_buf, n.pending - o, o)), n.gzindex += s, G(e), n.pending !== 0)
593
593
  return n.last_flush = -1, F;
594
594
  o = 0, i -= s;
595
595
  }
596
596
  let a = new Uint8Array(n.gzhead.extra);
597
- n.pending_buf.set(a.subarray(n.gzindex, n.gzindex + i), n.pending), n.pending += i, n.gzhead.hcrc && n.pending > o && (e.adler = he(e.adler, n.pending_buf, n.pending - o, o)), n.gzindex = 0;
597
+ n.pending_buf.set(a.subarray(n.gzindex, n.gzindex + i), n.pending), n.pending += i, n.gzhead.hcrc && n.pending > o && (e.adler = pe(e.adler, n.pending_buf, n.pending - o, o)), n.gzindex = 0;
598
598
  }
599
599
  n.status = Xt;
600
600
  }
@@ -603,13 +603,13 @@ const ft = (e) => {
603
603
  let o = n.pending, i;
604
604
  do {
605
605
  if (n.pending === n.pending_buf_size) {
606
- if (n.gzhead.hcrc && n.pending > o && (e.adler = he(e.adler, n.pending_buf, n.pending - o, o)), G(e), n.pending !== 0)
606
+ if (n.gzhead.hcrc && n.pending > o && (e.adler = pe(e.adler, n.pending_buf, n.pending - o, o)), G(e), n.pending !== 0)
607
607
  return n.last_flush = -1, F;
608
608
  o = 0;
609
609
  }
610
610
  n.gzindex < n.gzhead.name.length ? i = n.gzhead.name.charCodeAt(n.gzindex++) & 255 : i = 0, $(n, i);
611
611
  } while (i !== 0);
612
- n.gzhead.hcrc && n.pending > o && (e.adler = he(e.adler, n.pending_buf, n.pending - o, o)), n.gzindex = 0;
612
+ n.gzhead.hcrc && n.pending > o && (e.adler = pe(e.adler, n.pending_buf, n.pending - o, o)), n.gzindex = 0;
613
613
  }
614
614
  n.status = Yt;
615
615
  }
@@ -618,13 +618,13 @@ const ft = (e) => {
618
618
  let o = n.pending, i;
619
619
  do {
620
620
  if (n.pending === n.pending_buf_size) {
621
- if (n.gzhead.hcrc && n.pending > o && (e.adler = he(e.adler, n.pending_buf, n.pending - o, o)), G(e), n.pending !== 0)
621
+ if (n.gzhead.hcrc && n.pending > o && (e.adler = pe(e.adler, n.pending_buf, n.pending - o, o)), G(e), n.pending !== 0)
622
622
  return n.last_flush = -1, F;
623
623
  o = 0;
624
624
  }
625
625
  n.gzindex < n.gzhead.comment.length ? i = n.gzhead.comment.charCodeAt(n.gzindex++) & 255 : i = 0, $(n, i);
626
626
  } while (i !== 0);
627
- n.gzhead.hcrc && n.pending > o && (e.adler = he(e.adler, n.pending_buf, n.pending - o, o));
627
+ n.gzhead.hcrc && n.pending > o && (e.adler = pe(e.adler, n.pending_buf, n.pending - o, o));
628
628
  }
629
629
  n.status = Qt;
630
630
  }
@@ -637,14 +637,14 @@ const ft = (e) => {
637
637
  if (n.status = Ee, G(e), n.pending !== 0)
638
638
  return n.last_flush = -1, F;
639
639
  }
640
- if (e.avail_in !== 0 || n.lookahead !== 0 || t !== me && n.status !== Ke) {
641
- let o = n.level === 0 ? Nr(n, t) : n.strategy === _t ? Oi(n, t) : n.strategy === fi ? Zi(n, t) : Ge[n.level].func(n, t);
642
- if ((o === $e || o === Ve) && (n.status = Ke), o === J || o === $e)
640
+ if (e.avail_in !== 0 || n.lookahead !== 0 || t !== ye && n.status !== Ge) {
641
+ let o = n.level === 0 ? Nr(n, t) : n.strategy === _t ? Oi(n, t) : n.strategy === fi ? Zi(n, t) : qe[n.level].func(n, t);
642
+ if ((o === $e || o === We) && (n.status = Ge), o === J || o === $e)
643
643
  return e.avail_out === 0 && (n.last_flush = -1), F;
644
- if (o === Be && (t === ai ? ii(n) : t !== Nn && (Kt(n, 0, 0, !1), t === si && (pe(n.head), n.lookahead === 0 && (n.strstart = 0, n.block_start = 0, n.insert = 0))), G(e), e.avail_out === 0))
644
+ if (o === Ve && (t === ai ? ii(n) : t !== Nn && (Kt(n, 0, 0, !1), t === si && (_e(n.head), n.lookahead === 0 && (n.strstart = 0, n.block_start = 0, n.insert = 0))), G(e), e.avail_out === 0))
645
645
  return n.last_flush = -1, F;
646
646
  }
647
- return t !== ee ? F : n.wrap <= 0 ? Pn : (n.wrap === 2 ? ($(n, e.adler & 255), $(n, e.adler >> 8 & 255), $(n, e.adler >> 16 & 255), $(n, e.adler >> 24 & 255), $(n, e.total_in & 255), $(n, e.total_in >> 8 & 255), $(n, e.total_in >> 16 & 255), $(n, e.total_in >> 24 & 255)) : (He(n, e.adler >>> 16), He(n, e.adler & 65535)), G(e), n.wrap > 0 && (n.wrap = -n.wrap), n.pending !== 0 ? F : Pn);
647
+ return t !== ee ? F : n.wrap <= 0 ? Pn : (n.wrap === 2 ? ($(n, e.adler & 255), $(n, e.adler >> 8 & 255), $(n, e.adler >> 16 & 255), $(n, e.adler >> 24 & 255), $(n, e.total_in & 255), $(n, e.total_in >> 8 & 255), $(n, e.total_in >> 16 & 255), $(n, e.total_in >> 24 & 255)) : (Ke(n, e.adler >>> 16), Ke(n, e.adler & 65535)), G(e), n.wrap > 0 && (n.wrap = -n.wrap), n.pending !== 0 ? F : Pn);
648
648
  }, Ri = (e) => {
649
649
  if (ft(e))
650
650
  return se;
@@ -655,24 +655,24 @@ const ft = (e) => {
655
655
  if (ft(e))
656
656
  return se;
657
657
  const r = e.state, o = r.wrap;
658
- if (o === 2 || o === 1 && r.status !== Fe || r.lookahead)
658
+ if (o === 2 || o === 1 && r.status !== je || r.lookahead)
659
659
  return se;
660
660
  if (o === 1 && (e.adler = xr(e.adler, t, n, 0)), r.wrap = 0, n >= r.w_size) {
661
- o === 0 && (pe(r.head), r.strstart = 0, r.block_start = 0, r.insert = 0);
661
+ o === 0 && (_e(r.head), r.strstart = 0, r.block_start = 0, r.insert = 0);
662
662
  let c = new Uint8Array(r.w_size);
663
663
  c.set(t.subarray(n - r.w_size, n), 0), t = c, n = r.w_size;
664
664
  }
665
665
  const i = e.avail_in, a = e.next_in, s = e.input;
666
- for (e.avail_in = n, e.next_in = 0, e.input = t, je(r); r.lookahead >= z; ) {
666
+ for (e.avail_in = n, e.next_in = 0, e.input = t, Ue(r); r.lookahead >= z; ) {
667
667
  let c = r.strstart, u = r.lookahead - (z - 1);
668
668
  do
669
- r.ins_h = ye(r, r.ins_h, r.window[c + z - 1]), r.prev[c & r.w_mask] = r.head[r.ins_h], r.head[r.ins_h] = c, c++;
669
+ r.ins_h = be(r, r.ins_h, r.window[c + z - 1]), r.prev[c & r.w_mask] = r.head[r.ins_h], r.head[r.ins_h] = c, c++;
670
670
  while (--u);
671
- r.strstart = c, r.lookahead = z - 1, je(r);
671
+ r.strstart = c, r.lookahead = z - 1, Ue(r);
672
672
  }
673
673
  return r.strstart += r.lookahead, r.block_start = r.strstart, r.insert = r.lookahead, r.lookahead = 0, r.match_length = r.prev_length = z - 1, r.match_available = 0, e.next_in = a, e.input = s, e.avail_in = i, r.wrap = o, F;
674
674
  };
675
- var Ci = Ni, Fi = Dr, ji = Rr, Ui = Pr, Li = Ii, Mi = Pi, Ji = Ri, Bi = Di, Vi = "pako deflate (from Nodeca project)", et = {
675
+ var Ci = Ni, Fi = Dr, ji = Rr, Ui = Pr, Li = Ii, Mi = Pi, Ji = Ri, Bi = Di, Vi = "pako deflate (from Nodeca project)", tt = {
676
676
  deflateInit: Ci,
677
677
  deflateInit2: Fi,
678
678
  deflateReset: ji,
@@ -716,10 +716,10 @@ try {
716
716
  } catch (e) {
717
717
  Fr = !1;
718
718
  }
719
- const it = new Uint8Array(256);
719
+ const at = new Uint8Array(256);
720
720
  for (let e = 0; e < 256; e++)
721
- it[e] = e >= 252 ? 6 : e >= 248 ? 5 : e >= 240 ? 4 : e >= 224 ? 3 : e >= 192 ? 2 : 1;
722
- it[254] = it[254] = 1;
721
+ at[e] = e >= 252 ? 6 : e >= 248 ? 5 : e >= 240 ? 4 : e >= 224 ? 3 : e >= 192 ? 2 : 1;
722
+ at[254] = at[254] = 1;
723
723
  var Gi = (e) => {
724
724
  if (typeof TextEncoder == "function" && TextEncoder.prototype.encode)
725
725
  return new TextEncoder().encode(e);
@@ -750,7 +750,7 @@ var Xi = (e, t) => {
750
750
  i[o++] = a;
751
751
  continue;
752
752
  }
753
- let s = it[a];
753
+ let s = at[a];
754
754
  if (s > 4) {
755
755
  i[o++] = 65533, r += s - 1;
756
756
  continue;
@@ -769,7 +769,7 @@ var Xi = (e, t) => {
769
769
  let n = t - 1;
770
770
  for (; n >= 0 && (e[n] & 192) === 128; )
771
771
  n--;
772
- return n < 0 || n === 0 ? t : n + it[e[n]] > t ? n : t;
772
+ return n < 0 || n === 0 ? t : n + at[e[n]] > t ? n : t;
773
773
  }, jr = {
774
774
  string2buf: Gi,
775
775
  buf2string: Xi,
@@ -801,7 +801,7 @@ function At(e) {
801
801
  }, e || {});
802
802
  let t = this.options;
803
803
  t.raw && t.windowBits > 0 ? t.windowBits = -t.windowBits : t.gzip && t.windowBits > 0 && t.windowBits < 16 && (t.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new ea(), this.strm.avail_out = 0;
804
- let n = et.deflateInit2(
804
+ let n = tt.deflateInit2(
805
805
  this.strm,
806
806
  t.level,
807
807
  t.method,
@@ -811,9 +811,9 @@ function At(e) {
811
811
  );
812
812
  if (n !== Et)
813
813
  throw new Error(St[n]);
814
- if (t.header && et.deflateSetHeader(this.strm, t.header), t.dictionary) {
814
+ if (t.header && tt.deflateSetHeader(this.strm, t.header), t.dictionary) {
815
815
  let r;
816
- if (typeof t.dictionary == "string" ? r = jr.string2buf(t.dictionary) : Ur.call(t.dictionary) === "[object ArrayBuffer]" ? r = new Uint8Array(t.dictionary) : r = t.dictionary, n = et.deflateSetDictionary(this.strm, r), n !== Et)
816
+ if (typeof t.dictionary == "string" ? r = jr.string2buf(t.dictionary) : Ur.call(t.dictionary) === "[object ArrayBuffer]" ? r = new Uint8Array(t.dictionary) : r = t.dictionary, n = tt.deflateSetDictionary(this.strm, r), n !== Et)
817
817
  throw new Error(St[n]);
818
818
  this._dict_set = !0;
819
819
  }
@@ -828,8 +828,8 @@ At.prototype.push = function(e, t) {
828
828
  this.onData(n.output.subarray(0, n.next_out)), n.avail_out = 0;
829
829
  continue;
830
830
  }
831
- if (o = et.deflate(n, i), o === ia)
832
- return n.next_out > 0 && this.onData(n.output.subarray(0, n.next_out)), o = et.deflateEnd(this.strm), this.onEnd(o), this.ended = !0, o === Et;
831
+ if (o = tt.deflate(n, i), o === ia)
832
+ return n.next_out > 0 && this.onData(n.output.subarray(0, n.next_out)), o = tt.deflateEnd(this.strm), this.onEnd(o), this.ended = !0, o === Et;
833
833
  if (n.avail_out === 0) {
834
834
  this.onData(n.output);
835
835
  continue;
@@ -862,7 +862,7 @@ var fa = la, da = {
862
862
  };
863
863
  const { gzip: ha } = da;
864
864
  var pa = ha;
865
- class ze extends Error {
865
+ class he extends Error {
866
866
  constructor({
867
867
  name: t,
868
868
  reason: n,
@@ -977,7 +977,7 @@ class Vr extends Error {
977
977
  }
978
978
  }
979
979
  const Wr = {};
980
- function be(e) {
980
+ function we(e) {
981
981
  return Wr;
982
982
  }
983
983
  function Hr(e) {
@@ -1039,7 +1039,7 @@ function Ze(e, t, n) {
1039
1039
  configurable: !0
1040
1040
  });
1041
1041
  }
1042
- function ve(...e) {
1042
+ function ke(...e) {
1043
1043
  const t = {};
1044
1044
  for (const n of e) {
1045
1045
  const r = Object.getOwnPropertyDescriptors(n);
@@ -1069,7 +1069,7 @@ const ka = gn(() => {
1069
1069
  return !1;
1070
1070
  }
1071
1071
  });
1072
- function Ue(e) {
1072
+ function Le(e) {
1073
1073
  if (Tt(e) === !1)
1074
1074
  return !1;
1075
1075
  const t = e.constructor;
@@ -1079,13 +1079,13 @@ function Ue(e) {
1079
1079
  return !(Tt(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
1080
1080
  }
1081
1081
  function Gr(e) {
1082
- return Ue(e) ? p({}, e) : Array.isArray(e) ? [...e] : e;
1082
+ return Le(e) ? p({}, e) : Array.isArray(e) ? [...e] : e;
1083
1083
  }
1084
1084
  const za = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
1085
- function Le(e) {
1085
+ function Me(e) {
1086
1086
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1087
1087
  }
1088
- function ke(e, t, n) {
1088
+ function ze(e, t, n) {
1089
1089
  const r = new e._zod.constr(t != null ? t : e._zod.def);
1090
1090
  return (!t || n != null && n.parent) && (r._zod.parent = e), r;
1091
1091
  }
@@ -1116,7 +1116,7 @@ function Ta(e, t) {
1116
1116
  const n = e._zod.def, r = n.checks;
1117
1117
  if (r && r.length > 0)
1118
1118
  throw new Error(".pick() cannot be used on object schemas containing refinements");
1119
- const i = ve(e._zod.def, {
1119
+ const i = ke(e._zod.def, {
1120
1120
  get shape() {
1121
1121
  const a = {};
1122
1122
  for (const s in t) {
@@ -1128,13 +1128,13 @@ function Ta(e, t) {
1128
1128
  },
1129
1129
  checks: []
1130
1130
  });
1131
- return ke(e, i);
1131
+ return ze(e, i);
1132
1132
  }
1133
1133
  function $a(e, t) {
1134
1134
  const n = e._zod.def, r = n.checks;
1135
1135
  if (r && r.length > 0)
1136
1136
  throw new Error(".omit() cannot be used on object schemas containing refinements");
1137
- const i = ve(e._zod.def, {
1137
+ const i = ke(e._zod.def, {
1138
1138
  get shape() {
1139
1139
  const a = p({}, e._zod.def.shape);
1140
1140
  for (const s in t) {
@@ -1146,10 +1146,10 @@ function $a(e, t) {
1146
1146
  },
1147
1147
  checks: []
1148
1148
  });
1149
- return ke(e, i);
1149
+ return ze(e, i);
1150
1150
  }
1151
1151
  function Za(e, t) {
1152
- if (!Ue(t))
1152
+ if (!Le(t))
1153
1153
  throw new Error("Invalid input to extend: expected a plain object");
1154
1154
  const n = e._zod.def.checks;
1155
1155
  if (n && n.length > 0) {
@@ -1158,27 +1158,27 @@ function Za(e, t) {
1158
1158
  if (Object.getOwnPropertyDescriptor(i, a) !== void 0)
1159
1159
  throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
1160
1160
  }
1161
- const o = ve(e._zod.def, {
1161
+ const o = ke(e._zod.def, {
1162
1162
  get shape() {
1163
1163
  const i = p(p({}, e._zod.def.shape), t);
1164
1164
  return Ze(this, "shape", i), i;
1165
1165
  }
1166
1166
  });
1167
- return ke(e, o);
1167
+ return ze(e, o);
1168
1168
  }
1169
1169
  function Oa(e, t) {
1170
- if (!Ue(t))
1170
+ if (!Le(t))
1171
1171
  throw new Error("Invalid input to safeExtend: expected a plain object");
1172
- const n = ve(e._zod.def, {
1172
+ const n = ke(e._zod.def, {
1173
1173
  get shape() {
1174
1174
  const r = p(p({}, e._zod.def.shape), t);
1175
1175
  return Ze(this, "shape", r), r;
1176
1176
  }
1177
1177
  });
1178
- return ke(e, n);
1178
+ return ze(e, n);
1179
1179
  }
1180
1180
  function xa(e, t) {
1181
- const n = ve(e._zod.def, {
1181
+ const n = ke(e._zod.def, {
1182
1182
  get shape() {
1183
1183
  const r = p(p({}, e._zod.def.shape), t._zod.def.shape);
1184
1184
  return Ze(this, "shape", r), r;
@@ -1189,13 +1189,13 @@ function xa(e, t) {
1189
1189
  checks: []
1190
1190
  // delete existing checks
1191
1191
  });
1192
- return ke(e, n);
1192
+ return ze(e, n);
1193
1193
  }
1194
1194
  function Aa(e, t, n) {
1195
1195
  const o = t._zod.def.checks;
1196
1196
  if (o && o.length > 0)
1197
1197
  throw new Error(".partial() cannot be used on object schemas containing refinements");
1198
- const a = ve(t._zod.def, {
1198
+ const a = ke(t._zod.def, {
1199
1199
  get shape() {
1200
1200
  const s = t._zod.def.shape, c = p({}, s);
1201
1201
  if (n)
@@ -1217,10 +1217,10 @@ function Aa(e, t, n) {
1217
1217
  },
1218
1218
  checks: []
1219
1219
  });
1220
- return ke(t, a);
1220
+ return ze(t, a);
1221
1221
  }
1222
1222
  function Ia(e, t, n) {
1223
- const r = ve(t._zod.def, {
1223
+ const r = ke(t._zod.def, {
1224
1224
  get shape() {
1225
1225
  const o = t._zod.def.shape, i = p({}, o);
1226
1226
  if (n)
@@ -1241,7 +1241,7 @@ function Ia(e, t, n) {
1241
1241
  return Ze(this, "shape", i), i;
1242
1242
  }
1243
1243
  });
1244
- return ke(t, r);
1244
+ return ze(t, r);
1245
1245
  }
1246
1246
  function Ne(e, t = 0) {
1247
1247
  var n;
@@ -1262,7 +1262,7 @@ function Pe(e, t) {
1262
1262
  function gt(e) {
1263
1263
  return typeof e == "string" ? e : e == null ? void 0 : e.message;
1264
1264
  }
1265
- function we(e, t, n) {
1265
+ function ve(e, t, n) {
1266
1266
  var o, i, a, s, c, u, l, d, f, _, m;
1267
1267
  const r = y(p({}, e), { path: (o = e.path) != null ? o : [] });
1268
1268
  if (!e.message) {
@@ -1274,7 +1274,7 @@ function we(e, t, n) {
1274
1274
  function bn(e) {
1275
1275
  return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
1276
1276
  }
1277
- function at(...e) {
1277
+ function st(...e) {
1278
1278
  const [t, n, r] = e;
1279
1279
  return typeof t == "string" ? {
1280
1280
  message: t,
@@ -1328,7 +1328,7 @@ const wn = (e) => (t, n, r, o) => {
1328
1328
  if (a instanceof Promise)
1329
1329
  throw new De();
1330
1330
  if (a.issues.length) {
1331
- const c = new ((s = o == null ? void 0 : o.Err) != null ? s : e)(a.issues.map((u) => we(u, i, be())));
1331
+ const c = new ((s = o == null ? void 0 : o.Err) != null ? s : e)(a.issues.map((u) => ve(u, i, we())));
1332
1332
  throw Kr(c, o == null ? void 0 : o.callee), c;
1333
1333
  }
1334
1334
  return a.value;
@@ -1337,7 +1337,7 @@ const wn = (e) => (t, n, r, o) => {
1337
1337
  const i = r ? Object.assign(r, { async: !0 }) : { async: !0 };
1338
1338
  let a = t._zod.run({ value: n, issues: [] }, i);
1339
1339
  if (a instanceof Promise && (a = yield a), a.issues.length) {
1340
- const c = new ((s = o == null ? void 0 : o.Err) != null ? s : e)(a.issues.map((u) => we(u, i, be())));
1340
+ const c = new ((s = o == null ? void 0 : o.Err) != null ? s : e)(a.issues.map((u) => ve(u, i, we())));
1341
1341
  throw Kr(c, o == null ? void 0 : o.callee), c;
1342
1342
  }
1343
1343
  return a.value;
@@ -1347,14 +1347,14 @@ const wn = (e) => (t, n, r, o) => {
1347
1347
  throw new De();
1348
1348
  return i.issues.length ? {
1349
1349
  success: !1,
1350
- error: new (e != null ? e : Xr)(i.issues.map((a) => we(a, o, be())))
1350
+ error: new (e != null ? e : Xr)(i.issues.map((a) => ve(a, o, we())))
1351
1351
  } : { success: !0, data: i.value };
1352
1352
  }, Ra = /* @__PURE__ */ It(Yr), Nt = (e) => (t, n, r) => k(null, null, function* () {
1353
1353
  const o = r ? Object.assign(r, { async: !0 }) : { async: !0 };
1354
1354
  let i = t._zod.run({ value: n, issues: [] }, o);
1355
1355
  return i instanceof Promise && (i = yield i), i.issues.length ? {
1356
1356
  success: !1,
1357
- error: new e(i.issues.map((a) => we(a, o, be())))
1357
+ error: new e(i.issues.map((a) => ve(a, o, we())))
1358
1358
  } : { success: !0, data: i.value };
1359
1359
  }), Da = /* @__PURE__ */ Nt(Yr), Ca = (e) => (t, n, r) => {
1360
1360
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
@@ -1630,7 +1630,7 @@ const fs = (e) => {
1630
1630
  (n = t.pattern) != null || (t.pattern = _s), Pt.init(e, t);
1631
1631
  }), Ss = /* @__PURE__ */ h("$ZodCheckIncludes", (e, t) => {
1632
1632
  W.init(e, t);
1633
- const n = Le(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
1633
+ const n = Me(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
1634
1634
  t.pattern = r, e._zod.onattach.push((o) => {
1635
1635
  var a;
1636
1636
  const i = o._zod.bag;
@@ -1649,7 +1649,7 @@ const fs = (e) => {
1649
1649
  }), Es = /* @__PURE__ */ h("$ZodCheckStartsWith", (e, t) => {
1650
1650
  var r;
1651
1651
  W.init(e, t);
1652
- const n = new RegExp(`^${Le(t.prefix)}.*`);
1652
+ const n = new RegExp(`^${Me(t.prefix)}.*`);
1653
1653
  (r = t.pattern) != null || (t.pattern = n), e._zod.onattach.push((o) => {
1654
1654
  var a;
1655
1655
  const i = o._zod.bag;
@@ -1668,7 +1668,7 @@ const fs = (e) => {
1668
1668
  }), Ts = /* @__PURE__ */ h("$ZodCheckEndsWith", (e, t) => {
1669
1669
  var r;
1670
1670
  W.init(e, t);
1671
- const n = new RegExp(`.*${Le(t.suffix)}$`);
1671
+ const n = new RegExp(`.*${Me(t.suffix)}$`);
1672
1672
  (r = t.pattern) != null || (t.pattern = n), e._zod.onattach.push((o) => {
1673
1673
  var a;
1674
1674
  const i = o._zod.bag;
@@ -2258,7 +2258,7 @@ function Vn(e, t, n, r) {
2258
2258
  code: "invalid_union",
2259
2259
  input: t.value,
2260
2260
  inst: n,
2261
- errors: e.map((i) => i.issues.map((a) => we(a, r, be())))
2261
+ errors: e.map((i) => i.issues.map((a) => ve(a, r, we())))
2262
2262
  }), t);
2263
2263
  }
2264
2264
  const cc = /* @__PURE__ */ h("$ZodUnion", (e, t) => {
@@ -2303,7 +2303,7 @@ function nn(e, t) {
2303
2303
  return { valid: !0, data: e };
2304
2304
  if (e instanceof Date && t instanceof Date && +e == +t)
2305
2305
  return { valid: !0, data: e };
2306
- if (Ue(e) && Ue(t)) {
2306
+ if (Le(e) && Le(t)) {
2307
2307
  const n = Object.keys(t), r = Object.keys(e).filter((i) => n.indexOf(i) !== -1), o = p(p({}, e), t);
2308
2308
  for (const i of r) {
2309
2309
  const a = nn(e[i], t[i]);
@@ -2360,7 +2360,7 @@ function Wn(e, t, n) {
2360
2360
  const lc = /* @__PURE__ */ h("$ZodRecord", (e, t) => {
2361
2361
  I.init(e, t), e._zod.parse = (n, r) => {
2362
2362
  const o = n.value;
2363
- if (!Ue(o))
2363
+ if (!Le(o))
2364
2364
  return n.issues.push({
2365
2365
  expected: "record",
2366
2366
  code: "invalid_type",
@@ -2406,7 +2406,7 @@ const lc = /* @__PURE__ */ h("$ZodRecord", (e, t) => {
2406
2406
  t.mode === "loose" ? n.value[s] = o[s] : n.issues.push({
2407
2407
  code: "invalid_key",
2408
2408
  origin: "record",
2409
- issues: c.issues.map((d) => we(d, r, be())),
2409
+ issues: c.issues.map((d) => ve(d, r, we())),
2410
2410
  input: s,
2411
2411
  path: [s],
2412
2412
  inst: e
@@ -2424,7 +2424,7 @@ const lc = /* @__PURE__ */ h("$ZodRecord", (e, t) => {
2424
2424
  }), fc = /* @__PURE__ */ h("$ZodEnum", (e, t) => {
2425
2425
  I.init(e, t);
2426
2426
  const n = Hr(t.entries), r = new Set(n);
2427
- e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.filter((o) => za.has(typeof o)).map((o) => typeof o == "string" ? Le(o) : o.toString()).join("|")})$`), e._zod.parse = (o, i) => {
2427
+ e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.filter((o) => za.has(typeof o)).map((o) => typeof o == "string" ? Me(o) : o.toString()).join("|")})$`), e._zod.parse = (o, i) => {
2428
2428
  const a = o.value;
2429
2429
  return r.has(a) || o.issues.push({
2430
2430
  code: "invalid_value",
@@ -2437,7 +2437,7 @@ const lc = /* @__PURE__ */ h("$ZodRecord", (e, t) => {
2437
2437
  if (I.init(e, t), t.values.length === 0)
2438
2438
  throw new Error("Cannot create literal schema with no valid values");
2439
2439
  const n = new Set(t.values);
2440
- e._zod.values = n, e._zod.pattern = new RegExp(`^(${t.values.map((r) => typeof r == "string" ? Le(r) : r ? Le(r.toString()) : String(r)).join("|")})$`), e._zod.parse = (r, o) => {
2440
+ e._zod.values = n, e._zod.pattern = new RegExp(`^(${t.values.map((r) => typeof r == "string" ? Me(r) : r ? Me(r.toString()) : String(r)).join("|")})$`), e._zod.parse = (r, o) => {
2441
2441
  const i = r.value;
2442
2442
  return n.has(i) || r.issues.push({
2443
2443
  code: "invalid_value",
@@ -2518,12 +2518,12 @@ const bc = /* @__PURE__ */ h("$ZodCatch", (e, t) => {
2518
2518
  const o = t.innerType._zod.run(n, r);
2519
2519
  return o instanceof Promise ? o.then((i) => (n.value = i.value, i.issues.length && (n.value = t.catchValue(y(p({}, n), {
2520
2520
  error: {
2521
- issues: i.issues.map((a) => we(a, r, be()))
2521
+ issues: i.issues.map((a) => ve(a, r, we()))
2522
2522
  },
2523
2523
  input: n.value
2524
2524
  })), n.issues = []), n)) : (n.value = o.value, o.issues.length && (n.value = t.catchValue(y(p({}, n), {
2525
2525
  error: {
2526
- issues: o.issues.map((i) => we(i, r, be()))
2526
+ issues: o.issues.map((i) => ve(i, r, we()))
2527
2527
  },
2528
2528
  input: n.value
2529
2529
  })), n.issues = []), n);
@@ -2579,7 +2579,7 @@ function Xn(e, t, n, r) {
2579
2579
  continue: !r._zod.def.abort
2580
2580
  // params: inst._zod.def.params,
2581
2581
  };
2582
- r._zod.def.params && (i.params = r._zod.def.params), t.issues.push(at(i));
2582
+ r._zod.def.params && (i.params = r._zod.def.params), t.issues.push(st(i));
2583
2583
  }
2584
2584
  }
2585
2585
  var Yn;
@@ -2618,7 +2618,7 @@ function Sc() {
2618
2618
  }
2619
2619
  var pr;
2620
2620
  (pr = (Yn = globalThis).__zod_globalRegistry) != null || (Yn.__zod_globalRegistry = Sc());
2621
- const qe = globalThis.__zod_globalRegistry;
2621
+ const Xe = globalThis.__zod_globalRegistry;
2622
2622
  // @__NO_SIDE_EFFECTS__
2623
2623
  function Ec(e, t) {
2624
2624
  return new e(p({
@@ -3015,7 +3015,7 @@ function su(e, t) {
3015
3015
  }));
3016
3016
  }
3017
3017
  // @__NO_SIDE_EFFECTS__
3018
- function We(e) {
3018
+ function He(e) {
3019
3019
  return new $s({
3020
3020
  check: "overwrite",
3021
3021
  tx: e
@@ -3023,23 +3023,23 @@ function We(e) {
3023
3023
  }
3024
3024
  // @__NO_SIDE_EFFECTS__
3025
3025
  function cu(e) {
3026
- return /* @__PURE__ */ We((t) => t.normalize(e));
3026
+ return /* @__PURE__ */ He((t) => t.normalize(e));
3027
3027
  }
3028
3028
  // @__NO_SIDE_EFFECTS__
3029
3029
  function uu() {
3030
- return /* @__PURE__ */ We((e) => e.trim());
3030
+ return /* @__PURE__ */ He((e) => e.trim());
3031
3031
  }
3032
3032
  // @__NO_SIDE_EFFECTS__
3033
3033
  function lu() {
3034
- return /* @__PURE__ */ We((e) => e.toLowerCase());
3034
+ return /* @__PURE__ */ He((e) => e.toLowerCase());
3035
3035
  }
3036
3036
  // @__NO_SIDE_EFFECTS__
3037
3037
  function fu() {
3038
- return /* @__PURE__ */ We((e) => e.toUpperCase());
3038
+ return /* @__PURE__ */ He((e) => e.toUpperCase());
3039
3039
  }
3040
3040
  // @__NO_SIDE_EFFECTS__
3041
3041
  function du() {
3042
- return /* @__PURE__ */ We((e) => va(e));
3042
+ return /* @__PURE__ */ He((e) => va(e));
3043
3043
  }
3044
3044
  // @__NO_SIDE_EFFECTS__
3045
3045
  function hu(e, t, n) {
@@ -3061,10 +3061,10 @@ function _u(e) {
3061
3061
  const t = /* @__PURE__ */ gu((n) => (n.addIssue = (r) => {
3062
3062
  var o, i, a, s;
3063
3063
  if (typeof r == "string")
3064
- n.issues.push(at(r, n.value, t._zod.def));
3064
+ n.issues.push(st(r, n.value, t._zod.def));
3065
3065
  else {
3066
3066
  const c = r;
3067
- c.fatal && (c.continue = !1), (o = c.code) != null || (c.code = "custom"), (i = c.input) != null || (c.input = n.value), (a = c.inst) != null || (c.inst = t), (s = c.continue) != null || (c.continue = !t._zod.def.abort), n.issues.push(at(c));
3067
+ c.fatal && (c.continue = !1), (o = c.code) != null || (c.code = "custom"), (i = c.input) != null || (c.input = n.value), (a = c.inst) != null || (c.inst = t), (s = c.continue) != null || (c.continue = !t._zod.def.abort), n.issues.push(st(c));
3068
3068
  }
3069
3069
  }, e(n.value, n)));
3070
3070
  return t;
@@ -3081,7 +3081,7 @@ function po(e) {
3081
3081
  let t = (n = e == null ? void 0 : e.target) != null ? n : "draft-2020-12";
3082
3082
  return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
3083
3083
  processors: (r = e.processors) != null ? r : {},
3084
- metadataRegistry: (o = e == null ? void 0 : e.metadata) != null ? o : qe,
3084
+ metadataRegistry: (o = e == null ? void 0 : e.metadata) != null ? o : Xe,
3085
3085
  target: t,
3086
3086
  unrepresentable: (i = e == null ? void 0 : e.unrepresentable) != null ? i : "throw",
3087
3087
  override: (a = e == null ? void 0 : e.override) != null ? a : (() => {
@@ -3530,7 +3530,7 @@ const Ku = (e, t) => {
3530
3530
  }
3531
3531
  }), e.toJSONSchema = mu(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => {
3532
3532
  var r;
3533
- return e.clone(ve(t, {
3533
+ return e.clone(ke(t, {
3534
3534
  checks: [
3535
3535
  ...(r = t.checks) != null ? r : [],
3536
3536
  ...n.map((o) => typeof o == "function" ? { _zod: { check: o, def: { check: "custom" }, onattach: [] } } : o)
@@ -3538,7 +3538,7 @@ const Ku = (e, t) => {
3538
3538
  }), {
3539
3539
  parent: !0
3540
3540
  });
3541
- }, e.with = e.check, e.clone = (n, r) => ke(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => Gu(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => Xu(e, n, r), e.parseAsync = (n, r) => k(null, null, function* () {
3541
+ }, e.with = e.check, e.clone = (n, r) => ze(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => Gu(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => Xu(e, n, r), e.parseAsync = (n, r) => k(null, null, function* () {
3542
3542
  return qu(e, n, r, { callee: e.parseAsync });
3543
3543
  }), e.safeParseAsync = (n, r) => k(null, null, function* () {
3544
3544
  return Yu(e, n, r);
@@ -3550,20 +3550,20 @@ const Ku = (e, t) => {
3550
3550
  return il(e, n, r);
3551
3551
  }), e.safeDecodeAsync = (n, r) => k(null, null, function* () {
3552
3552
  return al(e, n, r);
3553
- }), e.refine = (n, r) => e.check(tf(n, r)), e.superRefine = (n) => e.check(nf(n)), e.overwrite = (n) => e.check(/* @__PURE__ */ We(n)), e.optional = () => ar(e), e.exactOptional = () => Ml(e), e.nullable = () => sr(e), e.nullish = () => ar(sr(e)), e.nonoptional = (n) => Kl(e, n), e.array = () => on(e), e.or = (n) => wo([e, n]), e.and = (n) => Rl(e, n), e.transform = (n) => cr(e, Ul(n)), e.default = (n) => Vl(e, n), e.prefault = (n) => Hl(e, n), e.catch = (n) => ql(e, n), e.pipe = (n) => cr(e, n), e.readonly = () => Ql(e), e.describe = (n) => {
3553
+ }), e.refine = (n, r) => e.check(tf(n, r)), e.superRefine = (n) => e.check(nf(n)), e.overwrite = (n) => e.check(/* @__PURE__ */ He(n)), e.optional = () => ar(e), e.exactOptional = () => Ml(e), e.nullable = () => sr(e), e.nullish = () => ar(sr(e)), e.nonoptional = (n) => Kl(e, n), e.array = () => on(e), e.or = (n) => wo([e, n]), e.and = (n) => Rl(e, n), e.transform = (n) => cr(e, Ul(n)), e.default = (n) => Vl(e, n), e.prefault = (n) => Hl(e, n), e.catch = (n) => ql(e, n), e.pipe = (n) => cr(e, n), e.readonly = () => Ql(e), e.describe = (n) => {
3554
3554
  const r = e.clone();
3555
- return qe.add(r, { description: n }), r;
3555
+ return Xe.add(r, { description: n }), r;
3556
3556
  }, Object.defineProperty(e, "description", {
3557
3557
  get() {
3558
3558
  var n;
3559
- return (n = qe.get(e)) == null ? void 0 : n.description;
3559
+ return (n = Xe.get(e)) == null ? void 0 : n.description;
3560
3560
  },
3561
3561
  configurable: !0
3562
3562
  }), e.meta = (...n) => {
3563
3563
  if (n.length === 0)
3564
- return qe.get(e);
3564
+ return Xe.get(e);
3565
3565
  const r = e.clone();
3566
- return qe.add(r, n[0]), r;
3566
+ return Xe.add(r, n[0]), r;
3567
3567
  }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (n) => n(e), e)), yo = /* @__PURE__ */ h("_ZodString", (e, t) => {
3568
3568
  var r, o, i;
3569
3569
  kn.init(e, t), N.init(e, t), e._zod.processJSONSchema = (a, s, c) => bu(e, a, s);
@@ -3655,7 +3655,7 @@ function on(e, t) {
3655
3655
  return /* @__PURE__ */ hu(Al, e, t);
3656
3656
  }
3657
3657
  const Il = /* @__PURE__ */ h("ZodObject", (e, t) => {
3658
- sc.init(e, t), N.init(e, t), e._zod.processJSONSchema = (n, r, o) => Ou(e, n, r, o), Z(e, "shape", () => t.shape), e.keyof = () => Xe(Object.keys(e._zod.def.shape)), e.catchall = (n) => e.clone(y(p({}, e._zod.def), { catchall: n })), e.passthrough = () => e.clone(y(p({}, e._zod.def), { catchall: rn() })), e.loose = () => e.clone(y(p({}, e._zod.def), { catchall: rn() })), e.strict = () => e.clone(y(p({}, e._zod.def), { catchall: xl() })), e.strip = () => e.clone(y(p({}, e._zod.def), { catchall: void 0 })), e.extend = (n) => Za(e, n), e.safeExtend = (n) => Oa(e, n), e.merge = (n) => xa(e, n), e.pick = (n) => Ta(e, n), e.omit = (n) => $a(e, n), e.partial = (...n) => Aa(vo, e, n[0]), e.required = (...n) => Ia(ko, e, n[0]);
3658
+ sc.init(e, t), N.init(e, t), e._zod.processJSONSchema = (n, r, o) => Ou(e, n, r, o), Z(e, "shape", () => t.shape), e.keyof = () => Ye(Object.keys(e._zod.def.shape)), e.catchall = (n) => e.clone(y(p({}, e._zod.def), { catchall: n })), e.passthrough = () => e.clone(y(p({}, e._zod.def), { catchall: rn() })), e.loose = () => e.clone(y(p({}, e._zod.def), { catchall: rn() })), e.strict = () => e.clone(y(p({}, e._zod.def), { catchall: xl() })), e.strip = () => e.clone(y(p({}, e._zod.def), { catchall: void 0 })), e.extend = (n) => Za(e, n), e.safeExtend = (n) => Oa(e, n), e.merge = (n) => xa(e, n), e.pick = (n) => Ta(e, n), e.omit = (n) => $a(e, n), e.partial = (...n) => Aa(vo, e, n[0]), e.required = (...n) => Ia(ko, e, n[0]);
3659
3659
  });
3660
3660
  function bt(e, t) {
3661
3661
  const n = p({
@@ -3722,7 +3722,7 @@ const an = /* @__PURE__ */ h("ZodEnum", (e, t) => {
3722
3722
  }));
3723
3723
  };
3724
3724
  });
3725
- function Xe(e, t) {
3725
+ function Ye(e, t) {
3726
3726
  const n = Array.isArray(e) ? Object.fromEntries(e.map((r) => [r, r])) : e;
3727
3727
  return new an(p({
3728
3728
  type: "enum",
@@ -3751,10 +3751,10 @@ const jl = /* @__PURE__ */ h("ZodTransform", (e, t) => {
3751
3751
  n.addIssue = (i) => {
3752
3752
  var a, s, c;
3753
3753
  if (typeof i == "string")
3754
- n.issues.push(at(i, n.value, t));
3754
+ n.issues.push(st(i, n.value, t));
3755
3755
  else {
3756
3756
  const u = i;
3757
- u.fatal && (u.continue = !1), (a = u.code) != null || (u.code = "custom"), (s = u.input) != null || (u.input = n.value), (c = u.inst) != null || (u.inst = e), n.issues.push(at(u));
3757
+ u.fatal && (u.continue = !1), (a = u.code) != null || (u.code = "custom"), (s = u.input) != null || (u.input = n.value), (c = u.inst) != null || (u.inst = e), n.issues.push(st(u));
3758
3758
  }
3759
3759
  };
3760
3760
  const o = t.transform(n.value, n);
@@ -3867,7 +3867,7 @@ function nf(e) {
3867
3867
  return /* @__PURE__ */ _u(e);
3868
3868
  }
3869
3869
  const rf = bt({
3870
- language: Xe(["typescript", "javascript"]).optional(),
3870
+ language: Ye(["typescript", "javascript"]).optional(),
3871
3871
  disableMarkedForExport: Y().optional(),
3872
3872
  allowAutoSelectFirstNode: Y().optional().default(!0),
3873
3873
  enableDisplayDataId: Y().optional(),
@@ -3878,8 +3878,8 @@ const rf = bt({
3878
3878
  bt({
3879
3879
  framework: ir("react"),
3880
3880
  model: Ae().optional(),
3881
- styling: Xe(["plain_css", "tailwind", "inline_styles"]),
3882
- uiLibrary: Xe(["mui", "antd", "radix", "shadcn", "clean_react", "custom_design_system"]).optional(),
3881
+ styling: Ye(["plain_css", "tailwind", "inline_styles"]),
3882
+ uiLibrary: Ye(["mui", "antd", "radix", "shadcn", "clean_react", "custom_design_system"]).optional(),
3883
3883
  responsivePages: on(
3884
3884
  bt({
3885
3885
  name: Ae(),
@@ -3899,7 +3899,7 @@ const rf = bt({
3899
3899
  }),
3900
3900
  bt({
3901
3901
  framework: ir("html"),
3902
- styling: Xe(["plain_css", "inline_styles", "tailwind"]),
3902
+ styling: Ye(["plain_css", "inline_styles", "tailwind"]),
3903
3903
  enableTranslation: Y().optional()
3904
3904
  })
3905
3905
  ])
@@ -4076,7 +4076,7 @@ const ff = /* @__PURE__ */ sf(lf), zn = typeof Buffer != "undefined", df = zn &&
4076
4076
  return t;
4077
4077
  }
4078
4078
  );
4079
- function Me(e) {
4079
+ function Je(e) {
4080
4080
  return hf(e) ? "Buffer" : ff(e);
4081
4081
  }
4082
4082
  const _f = /* @__PURE__ */ new Set([
@@ -4087,7 +4087,7 @@ const _f = /* @__PURE__ */ new Set([
4087
4087
  "Set"
4088
4088
  ]);
4089
4089
  function gf(e, t, n = null) {
4090
- switch (n || Me(e)) {
4090
+ switch (n || Je(e)) {
4091
4091
  case "Arguments":
4092
4092
  case "Array":
4093
4093
  case "Object":
@@ -4102,7 +4102,7 @@ function sn(e) {
4102
4102
  return _f.has(e);
4103
4103
  }
4104
4104
  function fr(e, t, n, r = null) {
4105
- switch (r || Me(e)) {
4105
+ switch (r || Je(e)) {
4106
4106
  case "Arguments":
4107
4107
  case "Array":
4108
4108
  case "Object":
@@ -4221,7 +4221,7 @@ function If() {
4221
4221
  }
4222
4222
  function cn(e, t = null, n = If) {
4223
4223
  arguments.length === 2 && typeof t == "function" && (n = t, t = null);
4224
- const r = t || Me(e), o = Af.get(r);
4224
+ const r = t || Je(e), o = Af.get(r);
4225
4225
  if (r === "Object") {
4226
4226
  const i = n(e, r);
4227
4227
  if (i !== void 0)
@@ -4238,14 +4238,14 @@ function hr(e, t = {}) {
4238
4238
  customizer: n
4239
4239
  // TODO: max depth
4240
4240
  // depth = Infinity,
4241
- } = t, r = Me(e);
4241
+ } = t, r = Je(e);
4242
4242
  if (!sn(r))
4243
4243
  return un(e, null, null, null);
4244
4244
  const o = cn(e, r, n), i = new WeakMap([[e, o]]), a = new WeakSet([e]);
4245
4245
  return un(e, o, i, a);
4246
4246
  }
4247
4247
  function un(e, t, n, r, o) {
4248
- const i = Me(e), a = cn(e, i);
4248
+ const i = Je(e), a = cn(e, i);
4249
4249
  if (!sn(i))
4250
4250
  return a;
4251
4251
  let s;
@@ -4267,7 +4267,7 @@ function un(e, t, n, r, o) {
4267
4267
  if (r.has(u))
4268
4268
  fr(t, c, n.get(u), i);
4269
4269
  else {
4270
- const l = Me(u), d = cn(u, l);
4270
+ const l = Je(u), d = cn(u, l);
4271
4271
  sn(l) && (n.set(u, d), r.add(u)), fr(
4272
4272
  t,
4273
4273
  c,
@@ -4283,7 +4283,7 @@ function un(e, t, n, r, o) {
4283
4283
  }
4284
4284
  return t;
4285
4285
  }
4286
- var st, Ce, de, Q, V, ln, kt, Ye;
4286
+ var ct, Ce, de, Q, V, ln, kt, Qe;
4287
4287
  class Nf {
4288
4288
  constructor({
4289
4289
  fetch: t = globalThis.fetch.bind(globalThis),
@@ -4291,11 +4291,11 @@ class Nf {
4291
4291
  defaultOptions: r = {}
4292
4292
  } = {}) {
4293
4293
  re(this, V);
4294
- re(this, st);
4294
+ re(this, ct);
4295
4295
  re(this, Ce);
4296
4296
  re(this, de);
4297
4297
  re(this, Q);
4298
- X(this, st, n), X(this, Ce, t), X(this, Q, r), X(this, de, v(this, Q)), r.token && j(this, V, ln).call(this, r.token);
4298
+ X(this, ct, n), X(this, Ce, t), X(this, Q, r), X(this, de, v(this, Q)), r.token && j(this, V, ln).call(this, r.token);
4299
4299
  }
4300
4300
  hasDefaultToken() {
4301
4301
  return !!v(this, Q).token;
@@ -4330,7 +4330,7 @@ class Nf {
4330
4330
  });
4331
4331
  n.length > 0 && i.append("ids", n.join(",")), r && i.append("depth", `${r}`);
4332
4332
  const a = i.toString(), s = `v1/files/${t}?${a}`;
4333
- return yield j(this, V, Ye).call(this, s);
4333
+ return yield j(this, V, Qe).call(this, s);
4334
4334
  });
4335
4335
  }
4336
4336
  getNodeImages(a) {
@@ -4341,7 +4341,7 @@ class Nf {
4341
4341
  as: o = "arrayBuffer",
4342
4342
  format: i = "jpg"
4343
4343
  }) {
4344
- const c = (yield j(this, V, Ye).call(this, `v1/images/${t}?ids=${n}&format=${i}&scale=${r}`)).images;
4344
+ const c = (yield j(this, V, Qe).call(this, `v1/images/${t}?ids=${n}&format=${i}&scale=${r}`)).images;
4345
4345
  if (o === "links")
4346
4346
  return c;
4347
4347
  const u = n.map((f) => k(this, null, function* () {
@@ -4366,16 +4366,16 @@ class Nf {
4366
4366
  }) {
4367
4367
  var i, a;
4368
4368
  const r = `v1/files/${t}/images`;
4369
- return (a = (i = (yield j(this, V, Ye).call(this, r)).meta) == null ? void 0 : i.images) != null ? a : {};
4369
+ return (a = (i = (yield j(this, V, Qe).call(this, r)).meta) == null ? void 0 : i.images) != null ? a : {};
4370
4370
  });
4371
4371
  }
4372
4372
  getMe() {
4373
4373
  return k(this, null, function* () {
4374
- return yield j(this, V, Ye).call(this, "v1/me");
4374
+ return yield j(this, V, Qe).call(this, "v1/me");
4375
4375
  });
4376
4376
  }
4377
4377
  }
4378
- st = new WeakMap(), Ce = new WeakMap(), de = new WeakMap(), Q = new WeakMap(), V = new WeakSet(), ln = function(t) {
4378
+ ct = new WeakMap(), Ce = new WeakMap(), de = new WeakMap(), Q = new WeakMap(), V = new WeakSet(), ln = function(t) {
4379
4379
  if (!t.startsWith("figd_") && !t.startsWith("figu_"))
4380
4380
  throw new _a();
4381
4381
  }, kt = function(t, n) {
@@ -4428,12 +4428,12 @@ st = new WeakMap(), Ce = new WeakMap(), de = new WeakMap(), Q = new WeakMap(), V
4428
4428
  }
4429
4429
  return r;
4430
4430
  });
4431
- }, Ye = function(t) {
4431
+ }, Qe = function(t) {
4432
4432
  return k(this, null, function* () {
4433
4433
  const n = hr(v(this, de));
4434
4434
  X(this, de, hr(v(this, Q)));
4435
4435
  const r = () => k(this, null, function* () {
4436
- return yield v(this, Ce).call(this, `${v(this, st)}${t}`, {
4436
+ return yield v(this, Ce).call(this, `${v(this, ct)}${t}`, {
4437
4437
  method: "GET",
4438
4438
  headers: this.getHeaders(n.token),
4439
4439
  signal: n.abortSignal
@@ -4456,7 +4456,7 @@ const Pf = {
4456
4456
  l2c: "l2c",
4457
4457
  p2c: "p2c"
4458
4458
  };
4459
- var x, ct, ut, ae, So, Ie;
4459
+ var x, Fe, ut, ae, So, Ie;
4460
4460
  class Gf {
4461
4461
  constructor({
4462
4462
  auth: t,
@@ -4465,9 +4465,9 @@ class Gf {
4465
4465
  } = {}) {
4466
4466
  re(this, ae);
4467
4467
  re(this, x);
4468
- re(this, ct);
4468
+ re(this, Fe);
4469
4469
  re(this, ut);
4470
- X(this, ct, n), X(this, ut, r), t && (this.auth = t);
4470
+ X(this, Fe, n), X(this, ut, r), t && (this.auth = t);
4471
4471
  }
4472
4472
  hasAuth() {
4473
4473
  return !!v(this, x);
@@ -4579,12 +4579,43 @@ class Gf {
4579
4579
  type: "bundled"
4580
4580
  },
4581
4581
  engine: s,
4582
- htmlOptimizations: t.htmlOptimizations
4582
+ htmlOptimizations: t.htmlOptimizations,
4583
+ subpages: t.subpages
4583
4584
  }, (u = t.settings.codegenSettings) != null ? u : {})
4584
4585
  };
4585
4586
  return j(this, ae, Ie).call(this, "POST", "/v1/l2c", c, n, "l2c", r);
4586
4587
  });
4587
4588
  }
4589
+ discoverSubpages(t, n) {
4590
+ return k(this, null, function* () {
4591
+ if (this.hasAuth() === !1)
4592
+ throw new Error('It needs to set "auth" before calling this method.');
4593
+ const r = yield fetch(
4594
+ `${v(this, Fe)}/v1/l2c/discover-subpages`,
4595
+ {
4596
+ method: "POST",
4597
+ headers: this.headers,
4598
+ body: JSON.stringify(t),
4599
+ signal: n
4600
+ }
4601
+ );
4602
+ if (!r.ok) {
4603
+ const o = yield r.text();
4604
+ let i = o;
4605
+ try {
4606
+ const a = JSON.parse(o);
4607
+ typeof (a == null ? void 0 : a.error) == "string" ? i = a.error : typeof (a == null ? void 0 : a.message) == "string" && (i = a.message);
4608
+ } catch (a) {
4609
+ }
4610
+ throw new he({
4611
+ name: "HTTP error from Anima API",
4612
+ reason: i || "Failed to discover website subpages",
4613
+ status: r.status
4614
+ });
4615
+ }
4616
+ return r.json();
4617
+ });
4618
+ }
4588
4619
  /**
4589
4620
  * Generates code from a text prompt using AI.
4590
4621
  *
@@ -4636,7 +4667,8 @@ class Gf {
4636
4667
  uiLibrary: t.settings.uiLibrary
4637
4668
  },
4638
4669
  dsId: t.settings.dsId,
4639
- fastMode: t.settings.fastMode
4670
+ fastMode: t.settings.fastMode,
4671
+ imageMode: t.settings.imageMode
4640
4672
  }, (s = t.settings.codegenSettings) != null ? s : {}),
4641
4673
  webhookUrl: t.webhookUrl
4642
4674
  };
@@ -4665,7 +4697,7 @@ class Gf {
4665
4697
  });
4666
4698
  }
4667
4699
  }
4668
- x = new WeakMap(), ct = new WeakMap(), ut = new WeakMap(), ae = new WeakSet(), So = function(t, n, r) {
4700
+ x = new WeakMap(), Fe = new WeakMap(), ut = new WeakMap(), ae = new WeakSet(), So = function(t, n, r) {
4669
4701
  return k(this, null, function* () {
4670
4702
  const i = n.map(
4671
4703
  (a) => af(t, a, r)
@@ -4673,7 +4705,7 @@ x = new WeakMap(), ct = new WeakMap(), ut = new WeakMap(), ae = new WeakSet(), S
4673
4705
  (a) => !a.isValid
4674
4706
  );
4675
4707
  if (i)
4676
- throw new ze({
4708
+ throw new he({
4677
4709
  name: "Task Crashed",
4678
4710
  reason: i.reason
4679
4711
  });
@@ -4697,7 +4729,7 @@ x = new WeakMap(), ct = new WeakMap(), ut = new WeakMap(), ae = new WeakSet(), S
4697
4729
  "Content-Type": "application/json"
4698
4730
  });
4699
4731
  }
4700
- const u = yield fetch(`${v(this, ct)}${n}`, c);
4732
+ const u = yield fetch(`${v(this, Fe)}${n}`, c);
4701
4733
  if (!u.ok) {
4702
4734
  const D = yield u.text();
4703
4735
  let ne;
@@ -4708,23 +4740,23 @@ x = new WeakMap(), ct = new WeakMap(), ut = new WeakMap(), ae = new WeakSet(), S
4708
4740
  throw ((w = ne == null ? void 0 : ne.error) == null ? void 0 : w.name) === "ZodError" ? (console.log(
4709
4741
  "Zod validation error:",
4710
4742
  JSON.stringify(ne.error.issues, null, 2)
4711
- ), new ze({
4743
+ ), new he({
4712
4744
  name: "HTTP error from Anima API",
4713
4745
  reason: "Invalid body payload",
4714
4746
  detail: ne.error.issues,
4715
4747
  status: u.status
4716
- })) : typeof ne == "object" ? new ze({
4748
+ })) : typeof ne == "object" ? new he({
4717
4749
  name: `Error "${ne}"`,
4718
4750
  reason: "Unknown",
4719
4751
  status: u.status
4720
- }) : new ze({
4752
+ }) : new he({
4721
4753
  name: "HTTP error from Anima API",
4722
4754
  reason: D,
4723
4755
  status: u.status
4724
4756
  });
4725
4757
  }
4726
4758
  if (!u.body)
4727
- throw new ze({
4759
+ throw new he({
4728
4760
  name: "Stream Error",
4729
4761
  reason: "Response body is null",
4730
4762
  status: u.status
@@ -4807,7 +4839,7 @@ x = new WeakMap(), ct = new WeakMap(), ut = new WeakMap(), ae = new WeakSet(), S
4807
4839
  break;
4808
4840
  }
4809
4841
  case "error":
4810
- throw new ze({
4842
+ throw new he({
4811
4843
  name: E.payload.errorName,
4812
4844
  reason: E.payload.reason
4813
4845
  });
@@ -4819,7 +4851,7 @@ x = new WeakMap(), ct = new WeakMap(), ut = new WeakMap(), ae = new WeakSet(), S
4819
4851
  } finally {
4820
4852
  f.cancel();
4821
4853
  }
4822
- throw new ze({
4854
+ throw new he({
4823
4855
  name: "Connection",
4824
4856
  reason: "Connection closed before the 'done' message",
4825
4857
  status: 500
@@ -4985,7 +5017,7 @@ const ed = (e, t) => k(null, null, function* () {
4985
5017
  });
4986
5018
  export {
4987
5019
  Gf as Anima,
4988
- ze as CodegenError,
5020
+ he as CodegenError,
4989
5021
  Cn as ExpiredFigmaToken,
4990
5022
  Nf as FigmaRestApi,
4991
5023
  Fn as FileNotExportable,