@spaceandtimelabs/makeinfinite-ui 0.33.0 → 0.34.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.
@@ -1,4 +1,4 @@
1
- import Oe, { useContext as Jn, createElement as ph, createContext as fu, useState as ht, useCallback as hc, useEffect as du, useMemo as mh } from "react";
1
+ import Oe, { useContext as Jn, createElement as ph, createContext as fu, useState as ct, useCallback as hc, useEffect as du, useMemo as mh } from "react";
2
2
  import * as hu from "@babel/standalone";
3
3
  import pu from "react-dom";
4
4
  var Hi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
@@ -45,21 +45,21 @@ function gh(e) {
45
45
  for (var _ = 0, R = Math.min(256 * 256, y.length + 1), O = new Uint16Array(R), x = [], C = 0; ; ) {
46
46
  var k = _ < y.length;
47
47
  if (!k || C >= R - 1) {
48
- var S = O.subarray(0, C), P = S;
49
- if (x.push(String.fromCharCode.apply(null, P)), !k) return x.join("");
48
+ var S = O.subarray(0, C), $ = S;
49
+ if (x.push(String.fromCharCode.apply(null, $)), !k) return x.join("");
50
50
  y = y.subarray(_), _ = 0, C = 0;
51
51
  }
52
52
  var A = y[_++];
53
53
  if (!(A & 128)) O[C++] = A;
54
54
  else if ((A & 224) === 192) {
55
- var B = y[_++] & 63;
56
- O[C++] = (A & 31) << 6 | B;
55
+ var I = y[_++] & 63;
56
+ O[C++] = (A & 31) << 6 | I;
57
57
  } else if ((A & 240) === 224) {
58
- var B = y[_++] & 63, M = y[_++] & 63;
59
- O[C++] = (A & 31) << 12 | B << 6 | M;
58
+ var I = y[_++] & 63, M = y[_++] & 63;
59
+ O[C++] = (A & 31) << 12 | I << 6 | M;
60
60
  } else if ((A & 248) === 240) {
61
- var B = y[_++] & 63, M = y[_++] & 63, U = y[_++] & 63, Z = (A & 7) << 18 | B << 12 | M << 6 | U;
62
- Z > 65535 && (Z -= 65536, O[C++] = Z >>> 10 & 1023 | 55296, Z = 56320 | Z & 1023), O[C++] = Z;
61
+ var I = y[_++] & 63, M = y[_++] & 63, H = y[_++] & 63, Y = (A & 7) << 18 | I << 12 | M << 6 | H;
62
+ Y > 65535 && (Y -= 65536, O[C++] = Y >>> 10 & 1023 | 55296, Y = 56320 | Y & 1023), O[C++] = Y;
63
63
  }
64
64
  }
65
65
  }
@@ -75,8 +75,8 @@ function gh(e) {
75
75
  }
76
76
  if (O + 4 > C.length) {
77
77
  x += 8, x *= 1 + _ / y.length * 2, x = x >>> 3 << 3;
78
- var P = new Uint8Array(x);
79
- P.set(C), C = P;
78
+ var $ = new Uint8Array(x);
79
+ $.set(C), C = $;
80
80
  }
81
81
  if (k & 4294967168)
82
82
  if (!(k & 4294965248)) C[O++] = k >>> 6 & 31 | 192;
@@ -1220,14 +1220,14 @@ ws.write = function(e, t, r, n, i, a) {
1220
1220
  return Ye(this, f, h);
1221
1221
  case "utf8":
1222
1222
  case "utf-8":
1223
- return Z(this, f, h);
1223
+ return Y(this, f, h);
1224
1224
  case "ascii":
1225
1225
  return me(this, f, h);
1226
1226
  case "latin1":
1227
1227
  case "binary":
1228
1228
  return be(this, f, h);
1229
1229
  case "base64":
1230
- return U(this, f, h);
1230
+ return H(this, f, h);
1231
1231
  case "ucs2":
1232
1232
  case "ucs-2":
1233
1233
  case "utf16le":
@@ -1266,7 +1266,7 @@ ws.write = function(e, t, r, n, i, a) {
1266
1266
  return this;
1267
1267
  }, s.prototype.toString = function() {
1268
1268
  const f = this.length;
1269
- return f === 0 ? "" : arguments.length === 0 ? Z(this, 0, f) : O.apply(this, arguments);
1269
+ return f === 0 ? "" : arguments.length === 0 ? Y(this, 0, f) : O.apply(this, arguments);
1270
1270
  }, s.prototype.toLocaleString = s.prototype.toString, s.prototype.equals = function(f) {
1271
1271
  if (!s.isBuffer(f)) throw new TypeError("Argument must be a Buffer");
1272
1272
  return this === f ? !0 : s.compare(this, f) === 0;
@@ -1362,13 +1362,13 @@ ws.write = function(e, t, r, n, i, a) {
1362
1362
  }
1363
1363
  return z;
1364
1364
  }
1365
- function P(w, f, h, E) {
1365
+ function $(w, f, h, E) {
1366
1366
  return yt(re(f, w.length - h), w, h, E);
1367
1367
  }
1368
1368
  function A(w, f, h, E) {
1369
1369
  return yt(ne(f), w, h, E);
1370
1370
  }
1371
- function B(w, f, h, E) {
1371
+ function I(w, f, h, E) {
1372
1372
  return yt(_e(f), w, h, E);
1373
1373
  }
1374
1374
  function M(w, f, h, E) {
@@ -1396,13 +1396,13 @@ ws.write = function(e, t, r, n, i, a) {
1396
1396
  return S(this, f, h, E);
1397
1397
  case "utf8":
1398
1398
  case "utf-8":
1399
- return P(this, f, h, E);
1399
+ return $(this, f, h, E);
1400
1400
  case "ascii":
1401
1401
  case "latin1":
1402
1402
  case "binary":
1403
1403
  return A(this, f, h, E);
1404
1404
  case "base64":
1405
- return B(this, f, h, E);
1405
+ return I(this, f, h, E);
1406
1406
  case "ucs2":
1407
1407
  case "ucs-2":
1408
1408
  case "utf16le":
@@ -1418,10 +1418,10 @@ ws.write = function(e, t, r, n, i, a) {
1418
1418
  data: Array.prototype.slice.call(this._arr || this, 0)
1419
1419
  };
1420
1420
  };
1421
- function U(w, f, h) {
1421
+ function H(w, f, h) {
1422
1422
  return f === 0 && h === w.length ? t.fromByteArray(w) : t.fromByteArray(w.slice(f, h));
1423
1423
  }
1424
- function Z(w, f, h) {
1424
+ function Y(w, f, h) {
1425
1425
  h = Math.min(w.length, h);
1426
1426
  const E = [];
1427
1427
  let T = f;
@@ -1448,16 +1448,16 @@ ws.write = function(e, t, r, n, i, a) {
1448
1448
  }
1449
1449
  return Pe(E);
1450
1450
  }
1451
- const fe = 4096;
1451
+ const oe = 4096;
1452
1452
  function Pe(w) {
1453
1453
  const f = w.length;
1454
- if (f <= fe)
1454
+ if (f <= oe)
1455
1455
  return String.fromCharCode.apply(String, w);
1456
1456
  let h = "", E = 0;
1457
1457
  for (; E < f; )
1458
1458
  h += String.fromCharCode.apply(
1459
1459
  String,
1460
- w.slice(E, E += fe)
1460
+ w.slice(E, E += oe)
1461
1461
  );
1462
1462
  return h;
1463
1463
  }
@@ -1496,32 +1496,32 @@ ws.write = function(e, t, r, n, i, a) {
1496
1496
  const T = this.subarray(f, h);
1497
1497
  return Object.setPrototypeOf(T, s.prototype), T;
1498
1498
  };
1499
- function le(w, f, h) {
1499
+ function ue(w, f, h) {
1500
1500
  if (w % 1 !== 0 || w < 0) throw new RangeError("offset is not uint");
1501
1501
  if (w + f > h) throw new RangeError("Trying to access beyond buffer length");
1502
1502
  }
1503
1503
  s.prototype.readUintLE = s.prototype.readUIntLE = function(f, h, E) {
1504
- f = f >>> 0, h = h >>> 0, E || le(f, h, this.length);
1504
+ f = f >>> 0, h = h >>> 0, E || ue(f, h, this.length);
1505
1505
  let T = this[f], j = 1, z = 0;
1506
1506
  for (; ++z < h && (j *= 256); )
1507
1507
  T += this[f + z] * j;
1508
1508
  return T;
1509
1509
  }, s.prototype.readUintBE = s.prototype.readUIntBE = function(f, h, E) {
1510
- f = f >>> 0, h = h >>> 0, E || le(f, h, this.length);
1510
+ f = f >>> 0, h = h >>> 0, E || ue(f, h, this.length);
1511
1511
  let T = this[f + --h], j = 1;
1512
1512
  for (; h > 0 && (j *= 256); )
1513
1513
  T += this[f + --h] * j;
1514
1514
  return T;
1515
1515
  }, s.prototype.readUint8 = s.prototype.readUInt8 = function(f, h) {
1516
- return f = f >>> 0, h || le(f, 1, this.length), this[f];
1516
+ return f = f >>> 0, h || ue(f, 1, this.length), this[f];
1517
1517
  }, s.prototype.readUint16LE = s.prototype.readUInt16LE = function(f, h) {
1518
- return f = f >>> 0, h || le(f, 2, this.length), this[f] | this[f + 1] << 8;
1518
+ return f = f >>> 0, h || ue(f, 2, this.length), this[f] | this[f + 1] << 8;
1519
1519
  }, s.prototype.readUint16BE = s.prototype.readUInt16BE = function(f, h) {
1520
- return f = f >>> 0, h || le(f, 2, this.length), this[f] << 8 | this[f + 1];
1520
+ return f = f >>> 0, h || ue(f, 2, this.length), this[f] << 8 | this[f + 1];
1521
1521
  }, s.prototype.readUint32LE = s.prototype.readUInt32LE = function(f, h) {
1522
- return f = f >>> 0, h || le(f, 4, this.length), (this[f] | this[f + 1] << 8 | this[f + 2] << 16) + this[f + 3] * 16777216;
1522
+ return f = f >>> 0, h || ue(f, 4, this.length), (this[f] | this[f + 1] << 8 | this[f + 2] << 16) + this[f + 3] * 16777216;
1523
1523
  }, s.prototype.readUint32BE = s.prototype.readUInt32BE = function(f, h) {
1524
- return f = f >>> 0, h || le(f, 4, this.length), this[f] * 16777216 + (this[f + 1] << 16 | this[f + 2] << 8 | this[f + 3]);
1524
+ return f = f >>> 0, h || ue(f, 4, this.length), this[f] * 16777216 + (this[f + 1] << 16 | this[f + 2] << 8 | this[f + 3]);
1525
1525
  }, s.prototype.readBigUInt64LE = xe(function(f) {
1526
1526
  f = f >>> 0, V(f, "offset");
1527
1527
  const h = this[f], E = this[f + 7];
@@ -1535,31 +1535,31 @@ ws.write = function(e, t, r, n, i, a) {
1535
1535
  const T = h * 2 ** 24 + this[++f] * 2 ** 16 + this[++f] * 2 ** 8 + this[++f], j = this[++f] * 2 ** 24 + this[++f] * 2 ** 16 + this[++f] * 2 ** 8 + E;
1536
1536
  return (BigInt(T) << BigInt(32)) + BigInt(j);
1537
1537
  }), s.prototype.readIntLE = function(f, h, E) {
1538
- f = f >>> 0, h = h >>> 0, E || le(f, h, this.length);
1538
+ f = f >>> 0, h = h >>> 0, E || ue(f, h, this.length);
1539
1539
  let T = this[f], j = 1, z = 0;
1540
1540
  for (; ++z < h && (j *= 256); )
1541
1541
  T += this[f + z] * j;
1542
1542
  return j *= 128, T >= j && (T -= Math.pow(2, 8 * h)), T;
1543
1543
  }, s.prototype.readIntBE = function(f, h, E) {
1544
- f = f >>> 0, h = h >>> 0, E || le(f, h, this.length);
1544
+ f = f >>> 0, h = h >>> 0, E || ue(f, h, this.length);
1545
1545
  let T = h, j = 1, z = this[f + --T];
1546
1546
  for (; T > 0 && (j *= 256); )
1547
1547
  z += this[f + --T] * j;
1548
1548
  return j *= 128, z >= j && (z -= Math.pow(2, 8 * h)), z;
1549
1549
  }, s.prototype.readInt8 = function(f, h) {
1550
- return f = f >>> 0, h || le(f, 1, this.length), this[f] & 128 ? (255 - this[f] + 1) * -1 : this[f];
1550
+ return f = f >>> 0, h || ue(f, 1, this.length), this[f] & 128 ? (255 - this[f] + 1) * -1 : this[f];
1551
1551
  }, s.prototype.readInt16LE = function(f, h) {
1552
- f = f >>> 0, h || le(f, 2, this.length);
1552
+ f = f >>> 0, h || ue(f, 2, this.length);
1553
1553
  const E = this[f] | this[f + 1] << 8;
1554
1554
  return E & 32768 ? E | 4294901760 : E;
1555
1555
  }, s.prototype.readInt16BE = function(f, h) {
1556
- f = f >>> 0, h || le(f, 2, this.length);
1556
+ f = f >>> 0, h || ue(f, 2, this.length);
1557
1557
  const E = this[f + 1] | this[f] << 8;
1558
1558
  return E & 32768 ? E | 4294901760 : E;
1559
1559
  }, s.prototype.readInt32LE = function(f, h) {
1560
- return f = f >>> 0, h || le(f, 4, this.length), this[f] | this[f + 1] << 8 | this[f + 2] << 16 | this[f + 3] << 24;
1560
+ return f = f >>> 0, h || ue(f, 4, this.length), this[f] | this[f + 1] << 8 | this[f + 2] << 16 | this[f + 3] << 24;
1561
1561
  }, s.prototype.readInt32BE = function(f, h) {
1562
- return f = f >>> 0, h || le(f, 4, this.length), this[f] << 24 | this[f + 1] << 16 | this[f + 2] << 8 | this[f + 3];
1562
+ return f = f >>> 0, h || ue(f, 4, this.length), this[f] << 24 | this[f + 1] << 16 | this[f + 2] << 8 | this[f + 3];
1563
1563
  }, s.prototype.readBigInt64LE = xe(function(f) {
1564
1564
  f = f >>> 0, V(f, "offset");
1565
1565
  const h = this[f], E = this[f + 7];
@@ -1574,13 +1574,13 @@ ws.write = function(e, t, r, n, i, a) {
1574
1574
  this[++f] * 2 ** 16 + this[++f] * 2 ** 8 + this[++f];
1575
1575
  return (BigInt(T) << BigInt(32)) + BigInt(this[++f] * 2 ** 24 + this[++f] * 2 ** 16 + this[++f] * 2 ** 8 + E);
1576
1576
  }), s.prototype.readFloatLE = function(f, h) {
1577
- return f = f >>> 0, h || le(f, 4, this.length), r.read(this, f, !0, 23, 4);
1577
+ return f = f >>> 0, h || ue(f, 4, this.length), r.read(this, f, !0, 23, 4);
1578
1578
  }, s.prototype.readFloatBE = function(f, h) {
1579
- return f = f >>> 0, h || le(f, 4, this.length), r.read(this, f, !1, 23, 4);
1579
+ return f = f >>> 0, h || ue(f, 4, this.length), r.read(this, f, !1, 23, 4);
1580
1580
  }, s.prototype.readDoubleLE = function(f, h) {
1581
- return f = f >>> 0, h || le(f, 8, this.length), r.read(this, f, !0, 52, 8);
1581
+ return f = f >>> 0, h || ue(f, 8, this.length), r.read(this, f, !0, 52, 8);
1582
1582
  }, s.prototype.readDoubleBE = function(f, h) {
1583
- return f = f >>> 0, h || le(f, 8, this.length), r.read(this, f, !1, 52, 8);
1583
+ return f = f >>> 0, h || ue(f, 8, this.length), r.read(this, f, !1, 52, 8);
1584
1584
  };
1585
1585
  function F(w, f, h, E, T, j) {
1586
1586
  if (!s.isBuffer(w)) throw new TypeError('"buffer" argument must be a Buffer instance');
@@ -1671,13 +1671,13 @@ ws.write = function(e, t, r, n, i, a) {
1671
1671
  if (h + E > w.length) throw new RangeError("Index out of range");
1672
1672
  if (h < 0) throw new RangeError("Index out of range");
1673
1673
  }
1674
- function I(w, f, h, E, T) {
1674
+ function B(w, f, h, E, T) {
1675
1675
  return f = +f, h = h >>> 0, T || ee(w, f, h, 4), r.write(w, f, h, E, 23, 4), h + 4;
1676
1676
  }
1677
1677
  s.prototype.writeFloatLE = function(f, h, E) {
1678
- return I(this, f, h, !0, E);
1678
+ return B(this, f, h, !0, E);
1679
1679
  }, s.prototype.writeFloatBE = function(f, h, E) {
1680
- return I(this, f, h, !1, E);
1680
+ return B(this, f, h, !1, E);
1681
1681
  };
1682
1682
  function Q(w, f, h, E, T) {
1683
1683
  return f = +f, h = h >>> 0, T || ee(w, f, h, 8), r.write(w, f, h, E, 52, 8), h + 8;
@@ -1782,7 +1782,7 @@ ws.write = function(e, t, r, n, i, a) {
1782
1782
  f = `_${w.slice(h - 3, h)}${f}`;
1783
1783
  return `${w.slice(0, h)}${f}`;
1784
1784
  }
1785
- function Y(w, f, h) {
1785
+ function Z(w, f, h) {
1786
1786
  V(f, "offset"), (w[f] === void 0 || w[f + h] === void 0) && te(f, w.length - (h + 1));
1787
1787
  }
1788
1788
  function L(w, f, h, E, T, j) {
@@ -1791,7 +1791,7 @@ ws.write = function(e, t, r, n, i, a) {
1791
1791
  let he;
1792
1792
  throw f === 0 || f === BigInt(0) ? he = `>= 0${z} and < 2${z} ** ${(j + 1) * 8}${z}` : he = `>= -(2${z} ** ${(j + 1) * 8 - 1}${z}) and < 2 ** ${(j + 1) * 8 - 1}${z}`, new D.ERR_OUT_OF_RANGE("value", he, w);
1793
1793
  }
1794
- Y(E, T, j);
1794
+ Z(E, T, j);
1795
1795
  }
1796
1796
  function V(w, f) {
1797
1797
  if (typeof w != "number")
@@ -1805,7 +1805,7 @@ ws.write = function(e, t, r, n, i, a) {
1805
1805
  );
1806
1806
  }
1807
1807
  const J = /[^+/0-9A-Za-z-_]/g;
1808
- function oe(w) {
1808
+ function se(w) {
1809
1809
  if (w = w.split("=")[0], w = w.trim().replace(J, ""), w.length < 2) return "";
1810
1810
  for (; w.length % 4 !== 0; )
1811
1811
  w = w + "=";
@@ -1879,7 +1879,7 @@ ws.write = function(e, t, r, n, i, a) {
1879
1879
  return j;
1880
1880
  }
1881
1881
  function _e(w) {
1882
- return t.toByteArray(oe(w));
1882
+ return t.toByteArray(se(w));
1883
1883
  }
1884
1884
  function yt(w, f, h, E) {
1885
1885
  let T;
@@ -2396,33 +2396,33 @@ var N = Jr, ku = {};
2396
2396
  })(function(t) {
2397
2397
  t.version = "1.2.2";
2398
2398
  function r() {
2399
- for (var S = 0, P = new Array(256), A = 0; A != 256; ++A)
2400
- S = A, S = S & 1 ? -306674912 ^ S >>> 1 : S >>> 1, S = S & 1 ? -306674912 ^ S >>> 1 : S >>> 1, S = S & 1 ? -306674912 ^ S >>> 1 : S >>> 1, S = S & 1 ? -306674912 ^ S >>> 1 : S >>> 1, S = S & 1 ? -306674912 ^ S >>> 1 : S >>> 1, S = S & 1 ? -306674912 ^ S >>> 1 : S >>> 1, S = S & 1 ? -306674912 ^ S >>> 1 : S >>> 1, S = S & 1 ? -306674912 ^ S >>> 1 : S >>> 1, P[A] = S;
2401
- return typeof Int32Array < "u" ? new Int32Array(P) : P;
2399
+ for (var S = 0, $ = new Array(256), A = 0; A != 256; ++A)
2400
+ S = A, S = S & 1 ? -306674912 ^ S >>> 1 : S >>> 1, S = S & 1 ? -306674912 ^ S >>> 1 : S >>> 1, S = S & 1 ? -306674912 ^ S >>> 1 : S >>> 1, S = S & 1 ? -306674912 ^ S >>> 1 : S >>> 1, S = S & 1 ? -306674912 ^ S >>> 1 : S >>> 1, S = S & 1 ? -306674912 ^ S >>> 1 : S >>> 1, S = S & 1 ? -306674912 ^ S >>> 1 : S >>> 1, S = S & 1 ? -306674912 ^ S >>> 1 : S >>> 1, $[A] = S;
2401
+ return typeof Int32Array < "u" ? new Int32Array($) : $;
2402
2402
  }
2403
2403
  var n = r();
2404
2404
  function i(S) {
2405
- var P = 0, A = 0, B = 0, M = typeof Int32Array < "u" ? new Int32Array(4096) : new Array(4096);
2406
- for (B = 0; B != 256; ++B) M[B] = S[B];
2407
- for (B = 0; B != 256; ++B)
2408
- for (A = S[B], P = 256 + B; P < 4096; P += 256) A = M[P] = A >>> 8 ^ S[A & 255];
2409
- var U = [];
2410
- for (B = 1; B != 16; ++B) U[B - 1] = typeof Int32Array < "u" ? M.subarray(B * 256, B * 256 + 256) : M.slice(B * 256, B * 256 + 256);
2411
- return U;
2405
+ var $ = 0, A = 0, I = 0, M = typeof Int32Array < "u" ? new Int32Array(4096) : new Array(4096);
2406
+ for (I = 0; I != 256; ++I) M[I] = S[I];
2407
+ for (I = 0; I != 256; ++I)
2408
+ for (A = S[I], $ = 256 + I; $ < 4096; $ += 256) A = M[$] = A >>> 8 ^ S[A & 255];
2409
+ var H = [];
2410
+ for (I = 1; I != 16; ++I) H[I - 1] = typeof Int32Array < "u" ? M.subarray(I * 256, I * 256 + 256) : M.slice(I * 256, I * 256 + 256);
2411
+ return H;
2412
2412
  }
2413
2413
  var a = i(n), o = a[0], s = a[1], l = a[2], c = a[3], u = a[4], d = a[5], p = a[6], m = a[7], g = a[8], b = a[9], v = a[10], y = a[11], _ = a[12], R = a[13], O = a[14];
2414
- function x(S, P) {
2415
- for (var A = P ^ -1, B = 0, M = S.length; B < M; ) A = A >>> 8 ^ n[(A ^ S.charCodeAt(B++)) & 255];
2414
+ function x(S, $) {
2415
+ for (var A = $ ^ -1, I = 0, M = S.length; I < M; ) A = A >>> 8 ^ n[(A ^ S.charCodeAt(I++)) & 255];
2416
2416
  return ~A;
2417
2417
  }
2418
- function C(S, P) {
2419
- for (var A = P ^ -1, B = S.length - 15, M = 0; M < B; ) A = O[S[M++] ^ A & 255] ^ R[S[M++] ^ A >> 8 & 255] ^ _[S[M++] ^ A >> 16 & 255] ^ y[S[M++] ^ A >>> 24] ^ v[S[M++]] ^ b[S[M++]] ^ g[S[M++]] ^ m[S[M++]] ^ p[S[M++]] ^ d[S[M++]] ^ u[S[M++]] ^ c[S[M++]] ^ l[S[M++]] ^ s[S[M++]] ^ o[S[M++]] ^ n[S[M++]];
2420
- for (B += 15; M < B; ) A = A >>> 8 ^ n[(A ^ S[M++]) & 255];
2418
+ function C(S, $) {
2419
+ for (var A = $ ^ -1, I = S.length - 15, M = 0; M < I; ) A = O[S[M++] ^ A & 255] ^ R[S[M++] ^ A >> 8 & 255] ^ _[S[M++] ^ A >> 16 & 255] ^ y[S[M++] ^ A >>> 24] ^ v[S[M++]] ^ b[S[M++]] ^ g[S[M++]] ^ m[S[M++]] ^ p[S[M++]] ^ d[S[M++]] ^ u[S[M++]] ^ c[S[M++]] ^ l[S[M++]] ^ s[S[M++]] ^ o[S[M++]] ^ n[S[M++]];
2420
+ for (I += 15; M < I; ) A = A >>> 8 ^ n[(A ^ S[M++]) & 255];
2421
2421
  return ~A;
2422
2422
  }
2423
- function k(S, P) {
2424
- for (var A = P ^ -1, B = 0, M = S.length, U = 0, Z = 0; B < M; )
2425
- U = S.charCodeAt(B++), U < 128 ? A = A >>> 8 ^ n[(A ^ U) & 255] : U < 2048 ? (A = A >>> 8 ^ n[(A ^ (192 | U >> 6 & 31)) & 255], A = A >>> 8 ^ n[(A ^ (128 | U & 63)) & 255]) : U >= 55296 && U < 57344 ? (U = (U & 1023) + 64, Z = S.charCodeAt(B++) & 1023, A = A >>> 8 ^ n[(A ^ (240 | U >> 8 & 7)) & 255], A = A >>> 8 ^ n[(A ^ (128 | U >> 2 & 63)) & 255], A = A >>> 8 ^ n[(A ^ (128 | Z >> 6 & 15 | (U & 3) << 4)) & 255], A = A >>> 8 ^ n[(A ^ (128 | Z & 63)) & 255]) : (A = A >>> 8 ^ n[(A ^ (224 | U >> 12 & 15)) & 255], A = A >>> 8 ^ n[(A ^ (128 | U >> 6 & 63)) & 255], A = A >>> 8 ^ n[(A ^ (128 | U & 63)) & 255]);
2423
+ function k(S, $) {
2424
+ for (var A = $ ^ -1, I = 0, M = S.length, H = 0, Y = 0; I < M; )
2425
+ H = S.charCodeAt(I++), H < 128 ? A = A >>> 8 ^ n[(A ^ H) & 255] : H < 2048 ? (A = A >>> 8 ^ n[(A ^ (192 | H >> 6 & 31)) & 255], A = A >>> 8 ^ n[(A ^ (128 | H & 63)) & 255]) : H >= 55296 && H < 57344 ? (H = (H & 1023) + 64, Y = S.charCodeAt(I++) & 1023, A = A >>> 8 ^ n[(A ^ (240 | H >> 8 & 7)) & 255], A = A >>> 8 ^ n[(A ^ (128 | H >> 2 & 63)) & 255], A = A >>> 8 ^ n[(A ^ (128 | Y >> 6 & 15 | (H & 3) << 4)) & 255], A = A >>> 8 ^ n[(A ^ (128 | Y & 63)) & 255]) : (A = A >>> 8 ^ n[(A ^ (224 | H >> 12 & 15)) & 255], A = A >>> 8 ^ n[(A ^ (128 | H >> 6 & 63)) & 255], A = A >>> 8 ^ n[(A ^ (128 | H & 63)) & 255]);
2426
2426
  return ~A;
2427
2427
  }
2428
2428
  t.table = n, t.bstr = x, t.buf = C, t.str = k;
@@ -2520,11 +2520,11 @@ function Bu(e) {
2520
2520
  function Yn(e, t) {
2521
2521
  e.pending_buf[e.pending++] = t & 255, e.pending_buf[e.pending++] = t >>> 8 & 255;
2522
2522
  }
2523
- function ct(e, t, r) {
2523
+ function lt(e, t, r) {
2524
2524
  e.bi_valid > Ka - r ? (e.bi_buf |= t << e.bi_valid & 65535, Yn(e, e.bi_buf), e.bi_buf = t >> Ka - e.bi_valid, e.bi_valid += r - Ka) : (e.bi_buf |= t << e.bi_valid & 65535, e.bi_valid += r);
2525
2525
  }
2526
2526
  function Nt(e, t, r) {
2527
- ct(
2527
+ lt(
2528
2528
  e,
2529
2529
  r[t * 2],
2530
2530
  r[t * 2 + 1]
@@ -2621,7 +2621,7 @@ function Ec(e, t, r) {
2621
2621
  var n, i, a = 0, o, s;
2622
2622
  if (e.last_lit !== 0)
2623
2623
  do
2624
- n = e.pending_buf[e.d_buf + a * 2] << 8 | e.pending_buf[e.d_buf + a * 2 + 1], i = e.pending_buf[e.l_buf + a], a++, n === 0 ? Nt(e, i, t) : (o = Gn[i], Nt(e, o + ri + 1, t), s = jo[o], s !== 0 && (i -= vs[o], ct(e, i, s)), n--, o = Bu(n), Nt(e, o, r), s = Wi[o], s !== 0 && (n -= Ji[o], ct(e, n, s)));
2624
+ n = e.pending_buf[e.d_buf + a * 2] << 8 | e.pending_buf[e.d_buf + a * 2 + 1], i = e.pending_buf[e.l_buf + a], a++, n === 0 ? Nt(e, i, t) : (o = Gn[i], Nt(e, o + ri + 1, t), s = jo[o], s !== 0 && (i -= vs[o], lt(e, i, s)), n--, o = Bu(n), Nt(e, o, r), s = Wi[o], s !== 0 && (n -= Ji[o], lt(e, n, s)));
2625
2625
  while (a < e.last_lit);
2626
2626
  Nt(e, _s, t);
2627
2627
  }
@@ -2677,7 +2677,7 @@ function kc(e, t, r) {
2677
2677
  do
2678
2678
  Nt(e, a, e.bl_tree);
2679
2679
  while (--s !== 0);
2680
- else a !== 0 ? (a !== i && (Nt(e, a, e.bl_tree), s--), Nt(e, Cu, e.bl_tree), ct(e, s - 3, 2)) : s <= 10 ? (Nt(e, Pu, e.bl_tree), ct(e, s - 3, 3)) : (Nt(e, $u, e.bl_tree), ct(e, s - 11, 7));
2680
+ else a !== 0 ? (a !== i && (Nt(e, a, e.bl_tree), s--), Nt(e, Cu, e.bl_tree), lt(e, s - 3, 2)) : s <= 10 ? (Nt(e, Pu, e.bl_tree), lt(e, s - 3, 3)) : (Nt(e, $u, e.bl_tree), lt(e, s - 11, 7));
2681
2681
  s = 0, i = a, o === 0 ? (l = 138, c = 3) : a === o ? (l = 6, c = 3) : (l = 7, c = 4);
2682
2682
  }
2683
2683
  }
@@ -2689,8 +2689,8 @@ function e0(e) {
2689
2689
  }
2690
2690
  function t0(e, t, r, n) {
2691
2691
  var i;
2692
- for (ct(e, t - 257, 5), ct(e, r - 1, 5), ct(e, n - 4, 4), i = 0; i < n; i++)
2693
- ct(e, e.bl_tree[Tu[i] * 2 + 1], 3);
2692
+ for (lt(e, t - 257, 5), lt(e, r - 1, 5), lt(e, n - 4, 4), i = 0; i < n; i++)
2693
+ lt(e, e.bl_tree[Tu[i] * 2 + 1], 3);
2694
2694
  kc(e, e.dyn_ltree, t - 1), kc(e, e.dyn_dtree, r - 1);
2695
2695
  }
2696
2696
  function r0(e) {
@@ -2710,14 +2710,14 @@ function n0(e) {
2710
2710
  Rc || (Jp(), Rc = !0), e.l_desc = new Qa(e.dyn_ltree, Au), e.d_desc = new Qa(e.dyn_dtree, Du), e.bl_desc = new Qa(e.bl_tree, Iu), e.bi_buf = 0, e.bi_valid = 0, Nu(e);
2711
2711
  }
2712
2712
  function Lu(e, t, r, n) {
2713
- ct(e, (Hp << 1) + (n ? 1 : 0), 3), Qp(e, t, r);
2713
+ lt(e, (Hp << 1) + (n ? 1 : 0), 3), Qp(e, t, r);
2714
2714
  }
2715
2715
  function i0(e) {
2716
- ct(e, Ru << 1, 3), Nt(e, _s, Yt), Vp(e);
2716
+ lt(e, Ru << 1, 3), Nt(e, _s, Yt), Vp(e);
2717
2717
  }
2718
2718
  function a0(e, t, r, n) {
2719
2719
  var i, a, o = 0;
2720
- e.level > 0 ? (e.strm.data_type === Up && (e.strm.data_type = r0(e)), zo(e, e.l_desc), zo(e, e.d_desc), o = e0(e), i = e.opt_len + 3 + 7 >>> 3, a = e.static_len + 3 + 7 >>> 3, a <= i && (i = a)) : i = a = r + 5, r + 4 <= i && t !== -1 ? Lu(e, t, r, n) : e.strategy === Fp || a === i ? (ct(e, (Ru << 1) + (n ? 1 : 0), 3), Ec(e, Yt, zn)) : (ct(e, (Wp << 1) + (n ? 1 : 0), 3), t0(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, o + 1), Ec(e, e.dyn_ltree, e.dyn_dtree)), Nu(e), n && Mu(e);
2720
+ e.level > 0 ? (e.strm.data_type === Up && (e.strm.data_type = r0(e)), zo(e, e.l_desc), zo(e, e.d_desc), o = e0(e), i = e.opt_len + 3 + 7 >>> 3, a = e.static_len + 3 + 7 >>> 3, a <= i && (i = a)) : i = a = r + 5, r + 4 <= i && t !== -1 ? Lu(e, t, r, n) : e.strategy === Fp || a === i ? (lt(e, (Ru << 1) + (n ? 1 : 0), 3), Ec(e, Yt, zn)) : (lt(e, (Wp << 1) + (n ? 1 : 0), 3), t0(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, o + 1), Ec(e, e.dyn_ltree, e.dyn_dtree)), Nu(e), n && Mu(e);
2721
2721
  }
2722
2722
  function o0(e, t, r) {
2723
2723
  return e.pending_buf[e.d_buf + e.last_lit * 2] = t >>> 8 & 255, e.pending_buf[e.d_buf + e.last_lit * 2 + 1] = t & 255, e.pending_buf[e.l_buf + e.last_lit] = r & 255, e.last_lit++, t === 0 ? e.dyn_ltree[r * 2]++ : (e.matches++, t--, e.dyn_ltree[(Gn[r] + ri + 1) * 2]++, e.dyn_dtree[Bu(t) * 2]++), e.last_lit === e.lit_bufsize - 1;
@@ -3218,15 +3218,15 @@ ti.deflate = Es;
3218
3218
  ti.deflateRaw = X0;
3219
3219
  ti.gzip = V0;
3220
3220
  var ii = {}, Ct = {}, $i = 30, K0 = 12, J0 = function(t, r) {
3221
- var n, i, a, o, s, l, c, u, d, p, m, g, b, v, y, _, R, O, x, C, k, S, P, A, B;
3222
- n = t.state, i = t.next_in, A = t.input, a = i + (t.avail_in - 5), o = t.next_out, B = t.output, s = o - (r - t.avail_out), l = o + (t.avail_out - 257), c = n.dmax, u = n.wsize, d = n.whave, p = n.wnext, m = n.window, g = n.hold, b = n.bits, v = n.lencode, y = n.distcode, _ = (1 << n.lenbits) - 1, R = (1 << n.distbits) - 1;
3221
+ var n, i, a, o, s, l, c, u, d, p, m, g, b, v, y, _, R, O, x, C, k, S, $, A, I;
3222
+ n = t.state, i = t.next_in, A = t.input, a = i + (t.avail_in - 5), o = t.next_out, I = t.output, s = o - (r - t.avail_out), l = o + (t.avail_out - 257), c = n.dmax, u = n.wsize, d = n.whave, p = n.wnext, m = n.window, g = n.hold, b = n.bits, v = n.lencode, y = n.distcode, _ = (1 << n.lenbits) - 1, R = (1 << n.distbits) - 1;
3223
3223
  e:
3224
3224
  do {
3225
3225
  b < 15 && (g += A[i++] << b, b += 8, g += A[i++] << b, b += 8), O = v[g & _];
3226
3226
  t:
3227
3227
  for (; ; ) {
3228
3228
  if (x = O >>> 24, g >>>= x, b -= x, x = O >>> 16 & 255, x === 0)
3229
- B[o++] = O & 65535;
3229
+ I[o++] = O & 65535;
3230
3230
  else if (x & 16) {
3231
3231
  C = O & 65535, x &= 15, x && (b < x && (g += A[i++] << b, b += 8), C += g & (1 << x) - 1, g >>>= x, b -= x), b < 15 && (g += A[i++] << b, b += 8, g += A[i++] << b, b += 8), O = y[g & R];
3232
3232
  r:
@@ -3241,44 +3241,44 @@ var ii = {}, Ct = {}, $i = 30, K0 = 12, J0 = function(t, r) {
3241
3241
  t.msg = "invalid distance too far back", n.mode = $i;
3242
3242
  break e;
3243
3243
  }
3244
- if (S = 0, P = m, p === 0) {
3244
+ if (S = 0, $ = m, p === 0) {
3245
3245
  if (S += u - x, x < C) {
3246
3246
  C -= x;
3247
3247
  do
3248
- B[o++] = m[S++];
3248
+ I[o++] = m[S++];
3249
3249
  while (--x);
3250
- S = o - k, P = B;
3250
+ S = o - k, $ = I;
3251
3251
  }
3252
3252
  } else if (p < x) {
3253
3253
  if (S += u + p - x, x -= p, x < C) {
3254
3254
  C -= x;
3255
3255
  do
3256
- B[o++] = m[S++];
3256
+ I[o++] = m[S++];
3257
3257
  while (--x);
3258
3258
  if (S = 0, p < C) {
3259
3259
  x = p, C -= x;
3260
3260
  do
3261
- B[o++] = m[S++];
3261
+ I[o++] = m[S++];
3262
3262
  while (--x);
3263
- S = o - k, P = B;
3263
+ S = o - k, $ = I;
3264
3264
  }
3265
3265
  }
3266
3266
  } else if (S += p - x, x < C) {
3267
3267
  C -= x;
3268
3268
  do
3269
- B[o++] = m[S++];
3269
+ I[o++] = m[S++];
3270
3270
  while (--x);
3271
- S = o - k, P = B;
3271
+ S = o - k, $ = I;
3272
3272
  }
3273
3273
  for (; C > 2; )
3274
- B[o++] = P[S++], B[o++] = P[S++], B[o++] = P[S++], C -= 3;
3275
- C && (B[o++] = P[S++], C > 1 && (B[o++] = P[S++]));
3274
+ I[o++] = $[S++], I[o++] = $[S++], I[o++] = $[S++], C -= 3;
3275
+ C && (I[o++] = $[S++], C > 1 && (I[o++] = $[S++]));
3276
3276
  } else {
3277
3277
  S = o - k;
3278
3278
  do
3279
- B[o++] = B[S++], B[o++] = B[S++], B[o++] = B[S++], C -= 3;
3279
+ I[o++] = I[S++], I[o++] = I[S++], I[o++] = I[S++], C -= 3;
3280
3280
  while (C > 2);
3281
- C && (B[o++] = B[S++], C > 1 && (B[o++] = B[S++]));
3281
+ C && (I[o++] = I[S++], C > 1 && (I[o++] = I[S++]));
3282
3282
  }
3283
3283
  } else if (x & 64) {
3284
3284
  t.msg = "invalid distance code", n.mode = $i;
@@ -3440,7 +3440,7 @@ var ii = {}, Ct = {}, $i = 30, K0 = 12, J0 = function(t, r) {
3440
3440
  64,
3441
3441
  64
3442
3442
  ], nm = function(t, r, n, i, a, o, s, l) {
3443
- var c = l.bits, u = 0, d = 0, p = 0, m = 0, g = 0, b = 0, v = 0, y = 0, _ = 0, R = 0, O, x, C, k, S, P = null, A = 0, B, M = new Ac.Buf16(Wr + 1), U = new Ac.Buf16(Wr + 1), Z = null, fe = 0, Pe, me, be;
3443
+ var c = l.bits, u = 0, d = 0, p = 0, m = 0, g = 0, b = 0, v = 0, y = 0, _ = 0, R = 0, O, x, C, k, S, $ = null, A = 0, I, M = new Ac.Buf16(Wr + 1), H = new Ac.Buf16(Wr + 1), Y = null, oe = 0, Pe, me, be;
3444
3444
  for (u = 0; u <= Wr; u++)
3445
3445
  M[u] = 0;
3446
3446
  for (d = 0; d < i; d++)
@@ -3456,14 +3456,14 @@ var ii = {}, Ct = {}, $i = 30, K0 = 12, J0 = function(t, r) {
3456
3456
  return -1;
3457
3457
  if (y > 0 && (t === Bc || m !== 1))
3458
3458
  return -1;
3459
- for (U[1] = 0, u = 1; u < Wr; u++)
3460
- U[u + 1] = U[u] + M[u];
3459
+ for (H[1] = 0, u = 1; u < Wr; u++)
3460
+ H[u + 1] = H[u] + M[u];
3461
3461
  for (d = 0; d < i; d++)
3462
- r[n + d] !== 0 && (s[U[r[n + d]]++] = d);
3463
- if (t === Bc ? (P = Z = s, B = 19) : t === io ? (P = Q0, A -= 257, Z = em, fe -= 257, B = 256) : (P = tm, Z = rm, B = -1), R = 0, d = 0, u = p, S = o, b = g, v = 0, C = -1, _ = 1 << g, k = _ - 1, t === io && _ > Dc || t === jc && _ > Ic)
3462
+ r[n + d] !== 0 && (s[H[r[n + d]]++] = d);
3463
+ if (t === Bc ? ($ = Y = s, I = 19) : t === io ? ($ = Q0, A -= 257, Y = em, oe -= 257, I = 256) : ($ = tm, Y = rm, I = -1), R = 0, d = 0, u = p, S = o, b = g, v = 0, C = -1, _ = 1 << g, k = _ - 1, t === io && _ > Dc || t === jc && _ > Ic)
3464
3464
  return 1;
3465
3465
  for (; ; ) {
3466
- Pe = u - v, s[d] < B ? (me = 0, be = s[d]) : s[d] > B ? (me = Z[fe + s[d]], be = P[A + s[d]]) : (me = 96, be = 0), O = 1 << u - v, x = 1 << b, p = x;
3466
+ Pe = u - v, s[d] < I ? (me = 0, be = s[d]) : s[d] > I ? (me = Y[oe + s[d]], be = $[A + s[d]]) : (me = 96, be = 0), O = 1 << u - v, x = 1 << b, p = x;
3467
3467
  do
3468
3468
  x -= O, a[S + (R >> v) + x] = Pe << 24 | me << 16 | be | 0;
3469
3469
  while (x !== 0);
@@ -3532,7 +3532,7 @@ function uf(e, t, r, n) {
3532
3532
  return a.window === null && (a.wsize = 1 << a.wbits, a.wnext = 0, a.whave = 0, a.window = new mt.Buf8(a.wsize)), n >= a.wsize ? (mt.arraySet(a.window, t, r - a.wsize, a.wsize, 0), a.wnext = 0, a.whave = a.wsize) : (i = a.wsize - a.wnext, i > n && (i = n), mt.arraySet(a.window, t, r - n, i, a.wnext), n -= i, n ? (mt.arraySet(a.window, t, r - n, n, 0), a.wnext = n, a.whave = a.wsize) : (a.wnext += i, a.wnext === a.wsize && (a.wnext = 0), a.whave < a.wsize && (a.whave += i))), 0;
3533
3533
  }
3534
3534
  function ym(e, t) {
3535
- var r, n, i, a, o, s, l, c, u, d, p, m, g, b, v = 0, y, _, R, O, x, C, k, S, P = new mt.Buf8(4), A, B, M = (
3535
+ var r, n, i, a, o, s, l, c, u, d, p, m, g, b, v = 0, y, _, R, O, x, C, k, S, $ = new mt.Buf8(4), A, I, M = (
3536
3536
  /* permutation of code lengths */
3537
3537
  [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]
3538
3538
  );
@@ -3553,7 +3553,7 @@ function ym(e, t) {
3553
3553
  s--, c += n[a++] << u, u += 8;
3554
3554
  }
3555
3555
  if (r.wrap & 2 && c === 35615) {
3556
- r.check = 0, P[0] = c & 255, P[1] = c >>> 8 & 255, r.check = Dt(r.check, P, 2, 0), c = 0, u = 0, r.mode = Mc;
3556
+ r.check = 0, $[0] = c & 255, $[1] = c >>> 8 & 255, r.check = Dt(r.check, $, 2, 0), c = 0, u = 0, r.mode = Mc;
3557
3557
  break;
3558
3558
  }
3559
3559
  if (r.flags = 0, r.head && (r.head.done = !1), !(r.wrap & 1) || /* check if zlib header allowed */
@@ -3587,21 +3587,21 @@ function ym(e, t) {
3587
3587
  e.msg = "unknown header flags set", r.mode = Te;
3588
3588
  break;
3589
3589
  }
3590
- r.head && (r.head.text = c >> 8 & 1), r.flags & 512 && (P[0] = c & 255, P[1] = c >>> 8 & 255, r.check = Dt(r.check, P, 2, 0)), c = 0, u = 0, r.mode = Lc;
3590
+ r.head && (r.head.text = c >> 8 & 1), r.flags & 512 && ($[0] = c & 255, $[1] = c >>> 8 & 255, r.check = Dt(r.check, $, 2, 0)), c = 0, u = 0, r.mode = Lc;
3591
3591
  case Lc:
3592
3592
  for (; u < 32; ) {
3593
3593
  if (s === 0)
3594
3594
  break e;
3595
3595
  s--, c += n[a++] << u, u += 8;
3596
3596
  }
3597
- r.head && (r.head.time = c), r.flags & 512 && (P[0] = c & 255, P[1] = c >>> 8 & 255, P[2] = c >>> 16 & 255, P[3] = c >>> 24 & 255, r.check = Dt(r.check, P, 4, 0)), c = 0, u = 0, r.mode = Fc;
3597
+ r.head && (r.head.time = c), r.flags & 512 && ($[0] = c & 255, $[1] = c >>> 8 & 255, $[2] = c >>> 16 & 255, $[3] = c >>> 24 & 255, r.check = Dt(r.check, $, 4, 0)), c = 0, u = 0, r.mode = Fc;
3598
3598
  case Fc:
3599
3599
  for (; u < 16; ) {
3600
3600
  if (s === 0)
3601
3601
  break e;
3602
3602
  s--, c += n[a++] << u, u += 8;
3603
3603
  }
3604
- r.head && (r.head.xflags = c & 255, r.head.os = c >> 8), r.flags & 512 && (P[0] = c & 255, P[1] = c >>> 8 & 255, r.check = Dt(r.check, P, 2, 0)), c = 0, u = 0, r.mode = Uc;
3604
+ r.head && (r.head.xflags = c & 255, r.head.os = c >> 8), r.flags & 512 && ($[0] = c & 255, $[1] = c >>> 8 & 255, r.check = Dt(r.check, $, 2, 0)), c = 0, u = 0, r.mode = Uc;
3605
3605
  case Uc:
3606
3606
  if (r.flags & 1024) {
3607
3607
  for (; u < 16; ) {
@@ -3609,7 +3609,7 @@ function ym(e, t) {
3609
3609
  break e;
3610
3610
  s--, c += n[a++] << u, u += 8;
3611
3611
  }
3612
- r.length = c, r.head && (r.head.extra_len = c), r.flags & 512 && (P[0] = c & 255, P[1] = c >>> 8 & 255, r.check = Dt(r.check, P, 2, 0)), c = 0, u = 0;
3612
+ r.length = c, r.head && (r.head.extra_len = c), r.flags & 512 && ($[0] = c & 255, $[1] = c >>> 8 & 255, r.check = Dt(r.check, $, 2, 0)), c = 0, u = 0;
3613
3613
  } else r.head && (r.head.extra = null);
3614
3614
  r.mode = Hc;
3615
3615
  case Hc:
@@ -3767,7 +3767,7 @@ function ym(e, t) {
3767
3767
  c >>>= y, u -= y, r.lens[r.have++] = R;
3768
3768
  else {
3769
3769
  if (R === 16) {
3770
- for (B = y + 2; u < B; ) {
3770
+ for (I = y + 2; u < I; ) {
3771
3771
  if (s === 0)
3772
3772
  break e;
3773
3773
  s--, c += n[a++] << u, u += 8;
@@ -3778,14 +3778,14 @@ function ym(e, t) {
3778
3778
  }
3779
3779
  k = r.lens[r.have - 1], m = 3 + (c & 3), c >>>= 2, u -= 2;
3780
3780
  } else if (R === 17) {
3781
- for (B = y + 3; u < B; ) {
3781
+ for (I = y + 3; u < I; ) {
3782
3782
  if (s === 0)
3783
3783
  break e;
3784
3784
  s--, c += n[a++] << u, u += 8;
3785
3785
  }
3786
3786
  c >>>= y, u -= y, k = 0, m = 3 + (c & 7), c >>>= 3, u -= 3;
3787
3787
  } else {
3788
- for (B = y + 7; u < B; ) {
3788
+ for (I = y + 7; u < I; ) {
3789
3789
  if (s === 0)
3790
3790
  break e;
3791
3791
  s--, c += n[a++] << u, u += 8;
@@ -3851,7 +3851,7 @@ function ym(e, t) {
3851
3851
  r.extra = _ & 15, r.mode = Qc;
3852
3852
  case Qc:
3853
3853
  if (r.extra) {
3854
- for (B = r.extra; u < B; ) {
3854
+ for (I = r.extra; u < I; ) {
3855
3855
  if (s === 0)
3856
3856
  break e;
3857
3857
  s--, c += n[a++] << u, u += 8;
@@ -3880,7 +3880,7 @@ function ym(e, t) {
3880
3880
  r.offset = R, r.extra = _ & 15, r.mode = tl;
3881
3881
  case tl:
3882
3882
  if (r.extra) {
3883
- for (B = r.extra; u < B; ) {
3883
+ for (I = r.extra; u < I; ) {
3884
3884
  if (s === 0)
3885
3885
  break e;
3886
3886
  s--, c += n[a++] << u, u += 8;
@@ -4433,27 +4433,27 @@ const Ft = /* @__PURE__ */ Ot(rw);
4433
4433
  var nw = function(e, t) {
4434
4434
  var r = e, n = t, i = r.length, a = n.length, o = !1, s = null, l = i + 1, c = [], u = [], d = [], p = "", m = -1, g = 0, b = 1, v, y, _ = function() {
4435
4435
  i >= a && (v = r, y = i, r = n, n = v, i = a, a = y, o = !0, l = i + 1);
4436
- }, R = function(k, S, P) {
4436
+ }, R = function(k, S, $) {
4437
4437
  return {
4438
4438
  x: k,
4439
4439
  y: S,
4440
- k: P
4440
+ k: $
4441
4441
  };
4442
4442
  }, O = function(k, S) {
4443
4443
  return {
4444
4444
  elem: k,
4445
4445
  t: S
4446
4446
  };
4447
- }, x = function(k, S, P) {
4448
- var A, B, M;
4449
- for (S > P ? A = c[k - 1 + l] : A = c[k + 1 + l], M = Math.max(S, P), B = M - k; B < i && M < a && r[B] === n[M]; )
4450
- ++B, ++M;
4451
- return c[k + l] = u.length, u[u.length] = new R(B, M, A), M;
4447
+ }, x = function(k, S, $) {
4448
+ var A, I, M;
4449
+ for (S > $ ? A = c[k - 1 + l] : A = c[k + 1 + l], M = Math.max(S, $), I = M - k; I < i && M < a && r[I] === n[M]; )
4450
+ ++I, ++M;
4451
+ return c[k + l] = u.length, u[u.length] = new R(I, M, A), M;
4452
4452
  }, C = function(k) {
4453
- var S, P, A;
4454
- for (S = P = 0, A = k.length - 1; A >= 0; --A)
4455
- for (; S < k[A].x || P < k[A].y; )
4456
- k[A].y - k[A].x > P - S ? (o ? d[d.length] = new O(n[P], m) : d[d.length] = new O(n[P], b), ++P) : k[A].y - k[A].x < P - S ? (o ? d[d.length] = new O(r[S], b) : d[d.length] = new O(r[S], m), ++S) : (d[d.length] = new O(r[S], g), p += r[S], ++S, ++P);
4453
+ var S, $, A;
4454
+ for (S = $ = 0, A = k.length - 1; A >= 0; --A)
4455
+ for (; S < k[A].x || $ < k[A].y; )
4456
+ k[A].y - k[A].x > $ - S ? (o ? d[d.length] = new O(n[$], m) : d[d.length] = new O(n[$], b), ++$) : k[A].y - k[A].x < $ - S ? (o ? d[d.length] = new O(r[S], b) : d[d.length] = new O(r[S], m), ++S) : (d[d.length] = new O(r[S], g), p += r[S], ++S, ++$);
4457
4457
  };
4458
4458
  return _(), {
4459
4459
  SES_DELETE: -1,
@@ -4469,19 +4469,19 @@ var nw = function(e, t) {
4469
4469
  return d;
4470
4470
  },
4471
4471
  compose: function() {
4472
- var k, S, P, A, B, M, U, Z;
4473
- for (k = a - i, S = i + a + 3, P = {}, U = 0; U < S; ++U)
4474
- P[U] = -1, c[U] = -1;
4472
+ var k, S, $, A, I, M, H, Y;
4473
+ for (k = a - i, S = i + a + 3, $ = {}, H = 0; H < S; ++H)
4474
+ $[H] = -1, c[H] = -1;
4475
4475
  A = -1;
4476
4476
  do {
4477
- for (++A, Z = -A; Z <= k - 1; ++Z)
4478
- P[Z + l] = x(Z, P[Z - 1 + l] + 1, P[Z + 1 + l]);
4479
- for (Z = k + A; Z >= k + 1; --Z)
4480
- P[Z + l] = x(Z, P[Z - 1 + l] + 1, P[Z + 1 + l]);
4481
- P[k + l] = x(k, P[k - 1 + l] + 1, P[k + 1 + l]);
4482
- } while (P[k + l] !== a);
4483
- for (s = k + 2 * A, B = c[k + l], M = []; B !== -1; )
4484
- M[M.length] = new R(u[B].x, u[B].y, null), B = u[B].k;
4477
+ for (++A, Y = -A; Y <= k - 1; ++Y)
4478
+ $[Y + l] = x(Y, $[Y - 1 + l] + 1, $[Y + 1 + l]);
4479
+ for (Y = k + A; Y >= k + 1; --Y)
4480
+ $[Y + l] = x(Y, $[Y - 1 + l] + 1, $[Y + 1 + l]);
4481
+ $[k + l] = x(k, $[k - 1 + l] + 1, $[k + 1 + l]);
4482
+ } while ($[k + l] !== a);
4483
+ for (s = k + 2 * A, I = c[k + l], M = []; I !== -1; )
4484
+ M[M.length] = new R(u[I].x, u[I].y, null), I = u[I].k;
4485
4485
  C(M);
4486
4486
  }
4487
4487
  };
@@ -4518,19 +4518,19 @@ function hl(e, t) {
4518
4518
  }
4519
4519
  function ow(e, t, r) {
4520
4520
  var n, i = hl(t, e), a = hl(t, r), o = [];
4521
- function s(U, Z) {
4522
- o.push([U.file1[0], Z, U.file1[1], U.file2[0], U.file2[1]]);
4521
+ function s(H, Y) {
4522
+ o.push([H.file1[0], Y, H.file1[1], H.file2[0], H.file2[1]]);
4523
4523
  }
4524
4524
  for (n = 0; n < i.length; n++)
4525
4525
  s(i[n], 0);
4526
4526
  for (n = 0; n < a.length; n++)
4527
4527
  s(a[n], 2);
4528
- o.sort(function(U, Z) {
4529
- return U[0] - Z[0];
4528
+ o.sort(function(H, Y) {
4529
+ return H[0] - Y[0];
4530
4530
  });
4531
4531
  var l = [], c = 0;
4532
- function u(U) {
4533
- U > c && (l.push([1, c, U - c]), c = U);
4532
+ function u(H) {
4533
+ H > c && (l.push([1, c, H - c]), c = H);
4534
4534
  }
4535
4535
  for (var d = 0; d < o.length; d++) {
4536
4536
  for (var p = d, m = o[d], g = m[0], b = g + m[2]; d < o.length - 1; ) {
@@ -4550,15 +4550,15 @@ function ow(e, t, r) {
4550
4550
  var R = m[1], O = _[R], x = m[0], C = x + m[2], k = m[3], S = k + m[4];
4551
4551
  O[0] = Math.min(k, O[0]), O[1] = Math.max(S, O[1]), O[2] = Math.min(x, O[2]), O[3] = Math.max(C, O[3]);
4552
4552
  }
4553
- var P = _[0][0] + (g - _[0][2]), A = _[0][1] + (b - _[0][3]), B = _[2][0] + (g - _[2][2]), M = _[2][1] + (b - _[2][3]);
4553
+ var $ = _[0][0] + (g - _[0][2]), A = _[0][1] + (b - _[0][3]), I = _[2][0] + (g - _[2][2]), M = _[2][1] + (b - _[2][3]);
4554
4554
  l.push([
4555
4555
  -1,
4556
- P,
4557
- A - P,
4556
+ $,
4557
+ A - $,
4558
4558
  g,
4559
4559
  b - g,
4560
- B,
4561
- M - B
4560
+ I,
4561
+ M - I
4562
4562
  ]);
4563
4563
  }
4564
4564
  c = b;
@@ -4631,17 +4631,17 @@ class ai extends we {
4631
4631
  }
4632
4632
  }
4633
4633
  ai.code = "UnmergedPathsError";
4634
- class se extends we {
4634
+ class ce extends we {
4635
4635
  /**
4636
4636
  * @param {string} message
4637
4637
  */
4638
4638
  constructor(t) {
4639
4639
  super(
4640
4640
  `An internal error caused this command to fail. Please file a bug report at https://github.com/isomorphic-git/isomorphic-git/issues with this error message: ${t}`
4641
- ), this.code = this.name = se.code, this.data = { message: t };
4641
+ ), this.code = this.name = ce.code, this.data = { message: t };
4642
4642
  }
4643
4643
  }
4644
- se.code = "InternalError";
4644
+ ce.code = "InternalError";
4645
4645
  class bn extends we {
4646
4646
  /**
4647
4647
  * @param {string} filepath
@@ -4809,22 +4809,22 @@ class Sr {
4809
4809
  return Sr.fromBuffer(t);
4810
4810
  if (t === null)
4811
4811
  return new Sr(null);
4812
- throw new se("invalid type passed to GitIndex.from");
4812
+ throw new ce("invalid type passed to GitIndex.from");
4813
4813
  }
4814
4814
  static async fromBuffer(t) {
4815
4815
  if (t.length === 0)
4816
- throw new se("Index file is empty (.git/index)");
4816
+ throw new ce("Index file is empty (.git/index)");
4817
4817
  const r = new Sr(), n = new Lt(t), i = n.toString("utf8", 4);
4818
4818
  if (i !== "DIRC")
4819
- throw new se(`Invalid dircache magic file number: ${i}`);
4819
+ throw new ce(`Invalid dircache magic file number: ${i}`);
4820
4820
  const a = await Qt(t.slice(0, -20)), o = t.slice(-20).toString("hex");
4821
4821
  if (o !== a)
4822
- throw new se(
4822
+ throw new ce(
4823
4823
  `Invalid checksum in GitIndex buffer: expected ${o} but saw ${a}`
4824
4824
  );
4825
4825
  const s = n.readUInt32BE();
4826
4826
  if (s !== 2)
4827
- throw new se(`Unsupported dircache version: ${s}`);
4827
+ throw new ce(`Unsupported dircache version: ${s}`);
4828
4828
  const l = n.readUInt32BE();
4829
4829
  let c = 0;
4830
4830
  for (; !n.eof() && c < l; ) {
@@ -4834,18 +4834,18 @@ class Sr {
4834
4834
  u.flags = hw(d);
4835
4835
  const p = t.indexOf(0, n.tell() + 1) - n.tell();
4836
4836
  if (p < 1)
4837
- throw new se(`Got a path length of: ${p}`);
4837
+ throw new ce(`Got a path length of: ${p}`);
4838
4838
  if (u.path = n.toString("utf8", p), u.path.includes("..\\") || u.path.includes("../"))
4839
4839
  throw new bn(u.path);
4840
4840
  let m = 8 - (n.tell() - 12) % 8;
4841
4841
  for (m === 0 && (m = 8); m--; ) {
4842
4842
  const g = n.readUInt8();
4843
4843
  if (g !== 0)
4844
- throw new se(
4844
+ throw new ce(
4845
4845
  `Expected 1-8 null characters but got '${g}' after ${u.path}`
4846
4846
  );
4847
4847
  if (n.eof())
4848
- throw new se("Unexpected end of file");
4848
+ throw new ce("Unexpected end of file");
4849
4849
  }
4850
4850
  u.stages = [], r._addEntry(u), c++;
4851
4851
  }
@@ -5044,7 +5044,7 @@ function yw(e) {
5044
5044
  case 57344:
5045
5045
  return "commit";
5046
5046
  }
5047
- throw new se(`Unexpected GitTree entry mode: ${e.toString(8)}`);
5047
+ throw new ce(`Unexpected GitTree entry mode: ${e.toString(8)}`);
5048
5048
  }
5049
5049
  class bw {
5050
5050
  constructor({ fs: t, gitdir: r, cache: n }) {
@@ -5215,7 +5215,7 @@ class ia {
5215
5215
  o
5216
5216
  ] = t.match(/^(\+?)(.*?)(\*?):(.*?)(\*?)$/).slice(1), s = r === "+", l = i === "*";
5217
5217
  if (l !== (o === "*"))
5218
- throw new se("Invalid refspec");
5218
+ throw new ce("Invalid refspec");
5219
5219
  return new ia({
5220
5220
  remotePath: n,
5221
5221
  localPath: a,
@@ -5443,7 +5443,7 @@ let wo;
5443
5443
  async function nr(e, t) {
5444
5444
  return wo === void 0 && (wo = new Hn()), wo.acquire(e, t);
5445
5445
  }
5446
- class H {
5446
+ class U {
5447
5447
  static async updateRemoteRefs({
5448
5448
  fs: t,
5449
5449
  gitdir: r,
@@ -5466,12 +5466,12 @@ class H {
5466
5466
  }
5467
5467
  const d = Os.from(s), p = /* @__PURE__ */ new Map();
5468
5468
  if (c) {
5469
- const v = await H.listRefs({
5469
+ const v = await U.listRefs({
5470
5470
  fs: t,
5471
5471
  gitdir: r,
5472
5472
  filepath: "refs/tags"
5473
5473
  });
5474
- await H.deleteRefs({
5474
+ await U.deleteRefs({
5475
5475
  fs: t,
5476
5476
  gitdir: r,
5477
5477
  refs: v.map((y) => `refs/tags/${y}`)
@@ -5479,7 +5479,7 @@ class H {
5479
5479
  }
5480
5480
  if (o) {
5481
5481
  for (const v of i.keys())
5482
- if (v.startsWith("refs/tags") && !v.endsWith("^{}") && !await H.exists({ fs: t, gitdir: r, ref: v })) {
5482
+ if (v.startsWith("refs/tags") && !v.endsWith("^{}") && !await U.exists({ fs: t, gitdir: r, ref: v })) {
5483
5483
  const y = i.get(v);
5484
5484
  p.set(v, y);
5485
5485
  }
@@ -5497,7 +5497,7 @@ class H {
5497
5497
  const b = [];
5498
5498
  if (l) {
5499
5499
  for (const v of d.localNamespaces()) {
5500
- const y = (await H.listRefs({
5500
+ const y = (await U.listRefs({
5501
5501
  fs: t,
5502
5502
  gitdir: r,
5503
5503
  filepath: v
@@ -5505,7 +5505,7 @@ class H {
5505
5505
  for (const _ of y)
5506
5506
  p.has(_) || b.push(_);
5507
5507
  }
5508
- b.length > 0 && await H.deleteRefs({ fs: t, gitdir: r, refs: b });
5508
+ b.length > 0 && await U.deleteRefs({ fs: t, gitdir: r, refs: b });
5509
5509
  }
5510
5510
  for (const [v, y] of p)
5511
5511
  await nr(
@@ -5533,7 +5533,7 @@ class H {
5533
5533
  );
5534
5534
  }
5535
5535
  static async deleteRef({ fs: t, gitdir: r, ref: n }) {
5536
- return H.deleteRefs({ fs: t, gitdir: r, refs: [n] });
5536
+ return U.deleteRefs({ fs: t, gitdir: r, refs: [n] });
5537
5537
  }
5538
5538
  static async deleteRefs({ fs: t, gitdir: r, refs: n }) {
5539
5539
  await Promise.all(n.map((s) => t.rm(N.join(r, s))));
@@ -5561,23 +5561,23 @@ class H {
5561
5561
  if (i !== void 0 && (i--, i === -1))
5562
5562
  return n;
5563
5563
  if (n.startsWith("ref: "))
5564
- return n = n.slice(5), H.resolve({ fs: t, gitdir: r, ref: n, depth: i });
5564
+ return n = n.slice(5), U.resolve({ fs: t, gitdir: r, ref: n, depth: i });
5565
5565
  if (n.length === 40 && /[0-9a-f]{40}/.test(n))
5566
5566
  return n;
5567
- const a = await H.packedRefs({ fs: t, gitdir: r }), o = Ii(n).filter((s) => !Aw.includes(s));
5567
+ const a = await U.packedRefs({ fs: t, gitdir: r }), o = Ii(n).filter((s) => !Aw.includes(s));
5568
5568
  for (const s of o) {
5569
5569
  const l = await nr(
5570
5570
  s,
5571
5571
  async () => await t.read(`${r}/${s}`, { encoding: "utf8" }) || a.get(s)
5572
5572
  );
5573
5573
  if (l)
5574
- return H.resolve({ fs: t, gitdir: r, ref: l.trim(), depth: i });
5574
+ return U.resolve({ fs: t, gitdir: r, ref: l.trim(), depth: i });
5575
5575
  }
5576
5576
  throw new ke(n);
5577
5577
  }
5578
5578
  static async exists({ fs: t, gitdir: r, ref: n }) {
5579
5579
  try {
5580
- return await H.expand({ fs: t, gitdir: r, ref: n }), !0;
5580
+ return await U.expand({ fs: t, gitdir: r, ref: n }), !0;
5581
5581
  } catch {
5582
5582
  return !1;
5583
5583
  }
@@ -5585,7 +5585,7 @@ class H {
5585
5585
  static async expand({ fs: t, gitdir: r, ref: n }) {
5586
5586
  if (n.length === 40 && /[0-9a-f]{40}/.test(n))
5587
5587
  return n;
5588
- const i = await H.packedRefs({ fs: t, gitdir: r }), a = Ii(n);
5588
+ const i = await U.packedRefs({ fs: t, gitdir: r }), a = Ii(n);
5589
5589
  for (const o of a)
5590
5590
  if (await nr(
5591
5591
  o,
@@ -5603,14 +5603,14 @@ class H {
5603
5603
  if (n !== void 0 && (n--, n === -1))
5604
5604
  return { fullref: r, oid: t };
5605
5605
  if (t.startsWith("ref: "))
5606
- return t = t.slice(5), H.resolveAgainstMap({ ref: t, fullref: r, depth: n, map: i });
5606
+ return t = t.slice(5), U.resolveAgainstMap({ ref: t, fullref: r, depth: n, map: i });
5607
5607
  if (t.length === 40 && /[0-9a-f]{40}/.test(t))
5608
5608
  return { fullref: r, oid: t };
5609
5609
  const a = Ii(t);
5610
5610
  for (const o of a) {
5611
5611
  const s = i.get(o);
5612
5612
  if (s)
5613
- return H.resolveAgainstMap({
5613
+ return U.resolveAgainstMap({
5614
5614
  ref: s.trim(),
5615
5615
  fullref: o,
5616
5616
  depth: n,
@@ -5628,7 +5628,7 @@ class H {
5628
5628
  }
5629
5629
  // List all the refs that match the `filepath` prefix
5630
5630
  static async listRefs({ fs: t, gitdir: r, filepath: n }) {
5631
- const i = H.packedRefs({ fs: t, gitdir: r });
5631
+ const i = U.packedRefs({ fs: t, gitdir: r });
5632
5632
  let a = null;
5633
5633
  try {
5634
5634
  a = await t.readdirDeep(`${r}/${n}`), a = a.map((o) => o.replace(`${r}/${n}/`, ""));
@@ -5640,14 +5640,14 @@ class H {
5640
5640
  return a.sort(_w), a;
5641
5641
  }
5642
5642
  static async listBranches({ fs: t, gitdir: r, remote: n }) {
5643
- return n ? H.listRefs({
5643
+ return n ? U.listRefs({
5644
5644
  fs: t,
5645
5645
  gitdir: r,
5646
5646
  filepath: `refs/remotes/${n}`
5647
- }) : H.listRefs({ fs: t, gitdir: r, filepath: "refs/heads" });
5647
+ }) : U.listRefs({ fs: t, gitdir: r, filepath: "refs/heads" });
5648
5648
  }
5649
5649
  static async listTags({ fs: t, gitdir: r }) {
5650
- return (await H.listRefs({
5650
+ return (await U.listRefs({
5651
5651
  fs: t,
5652
5652
  gitdir: r,
5653
5653
  filepath: "refs/tags"
@@ -5673,7 +5673,7 @@ function vf(e) {
5673
5673
  case "160000":
5674
5674
  return "commit";
5675
5675
  }
5676
- throw new se(`Unexpected GitTree entry mode: ${e}`);
5676
+ throw new ce(`Unexpected GitTree entry mode: ${e}`);
5677
5677
  }
5678
5678
  function Iw(e) {
5679
5679
  const t = [];
@@ -5681,12 +5681,12 @@ function Iw(e) {
5681
5681
  for (; r < e.length; ) {
5682
5682
  const n = e.indexOf(32, r);
5683
5683
  if (n === -1)
5684
- throw new se(
5684
+ throw new ce(
5685
5685
  `GitTree: Error parsing buffer at byte location ${r}: Could not find the next space character.`
5686
5686
  );
5687
5687
  const i = e.indexOf(0, r);
5688
5688
  if (i === -1)
5689
- throw new se(
5689
+ throw new ce(
5690
5690
  `GitTree: Error parsing buffer at byte location ${r}: Could not find the next null character.`
5691
5691
  );
5692
5692
  let a = e.slice(r, n).toString("utf8");
@@ -5705,23 +5705,23 @@ function Bw(e) {
5705
5705
  if (e.match(/^1007.*/)) return "100755";
5706
5706
  if (e.match(/^120.*/)) return "120000";
5707
5707
  if (e.match(/^160.*/)) return "160000";
5708
- throw new se(`Could not understand file mode: ${e}`);
5708
+ throw new ce(`Could not understand file mode: ${e}`);
5709
5709
  }
5710
5710
  function jw(e) {
5711
5711
  return !e.oid && e.sha && (e.oid = e.sha), e.mode = Bw(e.mode), e.type || (e.type = vf(e.mode)), e;
5712
5712
  }
5713
- class ut {
5713
+ class ft {
5714
5714
  constructor(t) {
5715
5715
  if (Buffer.isBuffer(t))
5716
5716
  this._entries = Iw(t);
5717
5717
  else if (Array.isArray(t))
5718
5718
  this._entries = t.map(jw);
5719
5719
  else
5720
- throw new se("invalid type passed to GitTree constructor");
5720
+ throw new ce("invalid type passed to GitTree constructor");
5721
5721
  this._entries.sort(gf);
5722
5722
  }
5723
5723
  static from(t) {
5724
- return new ut(t);
5724
+ return new ft(t);
5725
5725
  }
5726
5726
  render() {
5727
5727
  return this._entries.map((t) => `${t.mode} ${t.type} ${t.oid} ${t.path}`).join(`
@@ -5757,7 +5757,7 @@ class vn {
5757
5757
  static unwrap(t) {
5758
5758
  const r = t.indexOf(32), n = t.indexOf(0), i = t.slice(0, r).toString("utf8"), a = t.slice(r + 1, n).toString("utf8"), o = t.length - (n + 1);
5759
5759
  if (parseInt(a) !== o)
5760
- throw new se(
5760
+ throw new ce(
5761
5761
  `Length mismatch: expected ${a} bytes but got ${o} instead.`
5762
5762
  );
5763
5763
  return {
@@ -5773,7 +5773,7 @@ async function xf({ fs: e, gitdir: t, oid: r }) {
5773
5773
  function zw(e, t) {
5774
5774
  const r = new Lt(e), n = _l(r);
5775
5775
  if (n !== t.byteLength)
5776
- throw new se(
5776
+ throw new ce(
5777
5777
  `applyDelta expected source buffer to be ${n} bytes but the provided buffer was ${t.length} bytes`
5778
5778
  );
5779
5779
  const i = _l(r);
@@ -5788,7 +5788,7 @@ function zw(e, t) {
5788
5788
  s.copy(xl(r, t));
5789
5789
  const l = s.tell();
5790
5790
  if (i !== l)
5791
- throw new se(
5791
+ throw new ce(
5792
5792
  `applyDelta expected target buffer to be ${i} bytes but the resulting buffer was ${l} bytes`
5793
5793
  );
5794
5794
  }
@@ -5898,10 +5898,10 @@ async function Lw(e, t) {
5898
5898
  const r = new Sf(e);
5899
5899
  let n = await r.read(4);
5900
5900
  if (n = n.toString("utf8"), n !== "PACK")
5901
- throw new se(`Invalid PACK header '${n}'`);
5901
+ throw new ce(`Invalid PACK header '${n}'`);
5902
5902
  let i = await r.read(4);
5903
5903
  if (i = i.readUInt32BE(0), i !== 2)
5904
- throw new se(`Invalid packfile version: ${i}`);
5904
+ throw new ce(`Invalid packfile version: ${i}`);
5905
5905
  let a = await r.read(4);
5906
5906
  if (a = a.readUInt32BE(0), !(a < 1))
5907
5907
  for (; !r.eof() && a--; ) {
@@ -5910,10 +5910,10 @@ async function Lw(e, t) {
5910
5910
  const p = await r.chunk();
5911
5911
  if (!p) break;
5912
5912
  if (d.push(p, !1), d.err)
5913
- throw new se(`Pako error: ${d.msg}`);
5913
+ throw new ce(`Pako error: ${d.msg}`);
5914
5914
  if (d.result) {
5915
5915
  if (d.result.length !== l)
5916
- throw new se(
5916
+ throw new ce(
5917
5917
  "Inflated object size is different from that stated in packfile."
5918
5918
  );
5919
5919
  await r.undo(), await r.read(p.length - d.strm.avail_in);
@@ -5983,11 +5983,11 @@ class on {
5983
5983
  return;
5984
5984
  const a = n.readUInt32BE();
5985
5985
  if (a !== 2)
5986
- throw new se(
5986
+ throw new ce(
5987
5987
  `Unable to read version ${a} packfile IDX. (Only version 2 supported)`
5988
5988
  );
5989
5989
  if (t.byteLength > 2048 * 1024 * 1024)
5990
- throw new se(
5990
+ throw new ce(
5991
5991
  "To keep implementation simple, I haven't implemented the layer 5 feature needed to support packfiles > 2GB in size."
5992
5992
  );
5993
5993
  n.seek(n.tell() + 4 * 255);
@@ -6113,7 +6113,7 @@ class on {
6113
6113
  if (!this.offsets.get(t)) {
6114
6114
  if (this.getExternalRefDelta)
6115
6115
  return this.externalReadDepth++, this.getExternalRefDelta(t);
6116
- throw new se(`Could not read object ${t} from packfile`);
6116
+ throw new ce(`Could not read object ${t} from packfile`);
6117
6117
  }
6118
6118
  const r = this.offsets.get(t);
6119
6119
  return this.readSlice({ start: r });
@@ -6131,13 +6131,13 @@ class on {
6131
6131
  112: "ref_delta"
6132
6132
  };
6133
6133
  if (!this.pack)
6134
- throw new se(
6134
+ throw new ce(
6135
6135
  "Tried to read from a GitPackIndex with no packfile loaded into memory"
6136
6136
  );
6137
6137
  const n = (await this.pack).slice(t), i = new Lt(n), a = i.readUInt8(), o = a & 112;
6138
6138
  let s = r[o];
6139
6139
  if (s === void 0)
6140
- throw new se("Unrecognized type: 0b" + o.toString(2));
6140
+ throw new ce("Unrecognized type: 0b" + o.toString(2));
6141
6141
  const l = a & 15;
6142
6142
  let c = l;
6143
6143
  a & 128 && (c = Hw(i, l));
@@ -6152,7 +6152,7 @@ class on {
6152
6152
  }
6153
6153
  const m = n.slice(i.tell());
6154
6154
  if (p = Buffer.from(await kf(m)), p.byteLength !== c)
6155
- throw new se(
6155
+ throw new ce(
6156
6156
  `Packfile told us object would have length ${c} but it had length ${p.byteLength}`
6157
6157
  );
6158
6158
  return d && (p = Buffer.from(zw(p, d))), this.readDepth > 3 && (this.offsetCache[t] = { type: s, object: p }), { type: s, format: "content", object: p };
@@ -6204,7 +6204,7 @@ async function qw({
6204
6204
  filename: l,
6205
6205
  getExternalRefDelta: a
6206
6206
  });
6207
- if (c.error) throw new se(c.error);
6207
+ if (c.error) throw new ce(c.error);
6208
6208
  if (c.offsets.has(n)) {
6209
6209
  if (!c.pack) {
6210
6210
  const d = l.replace(/idx$/, "pack");
@@ -6240,13 +6240,13 @@ async function De({
6240
6240
  return o;
6241
6241
  const s = await Qt(o.object);
6242
6242
  if (s !== n)
6243
- throw new se(
6243
+ throw new ce(
6244
6244
  `SHA check failed! Expected ${n}, computed ${s}`
6245
6245
  );
6246
6246
  const { object: l, type: c } = vn.unwrap(o.object);
6247
6247
  if (o.type = c, o.object = l, o.format = "content", i === "content")
6248
6248
  return o;
6249
- throw new se(`invalid requested format "${i}"`);
6249
+ throw new ce(`invalid requested format "${i}"`);
6250
6250
  }
6251
6251
  class Pt extends we {
6252
6252
  /**
@@ -6397,17 +6397,17 @@ class Je extends we {
6397
6397
  }
6398
6398
  }
6399
6399
  Je.code = "MissingNameError";
6400
- class lt extends we {
6400
+ class ut extends we {
6401
6401
  /**
6402
6402
  * @param {string} parameter
6403
6403
  */
6404
6404
  constructor(t) {
6405
6405
  super(
6406
6406
  `The function requires a "${t}" parameter but none was provided.`
6407
- ), this.code = this.name = lt.code, this.data = { parameter: t };
6407
+ ), this.code = this.name = ut.code, this.data = { parameter: t };
6408
6408
  }
6409
6409
  }
6410
- lt.code = "MissingParameterError";
6410
+ ut.code = "MissingParameterError";
6411
6411
  class pi extends we {
6412
6412
  /**
6413
6413
  * @param {Error[]} errors
@@ -6524,7 +6524,7 @@ var Gw = /* @__PURE__ */ Object.freeze({
6524
6524
  FastForwardError: fi,
6525
6525
  GitPushError: di,
6526
6526
  HttpError: sn,
6527
- InternalError: se,
6527
+ InternalError: ce,
6528
6528
  InvalidFilepathError: mr,
6529
6529
  InvalidOidError: pr,
6530
6530
  InvalidRefNameError: Rt,
@@ -6532,7 +6532,7 @@ var Gw = /* @__PURE__ */ Object.freeze({
6532
6532
  MergeNotSupportedError: xn,
6533
6533
  MergeConflictError: En,
6534
6534
  MissingNameError: Je,
6535
- MissingParameterError: lt,
6535
+ MissingParameterError: ut,
6536
6536
  MultipleGitError: pi,
6537
6537
  NoRefspecError: oi,
6538
6538
  NotFoundError: ke,
@@ -6597,7 +6597,7 @@ class nt {
6597
6597
  else if (typeof t == "object")
6598
6598
  this._tag = nt.render(t);
6599
6599
  else
6600
- throw new se(
6600
+ throw new ce(
6601
6601
  "invalid type passed to GitAnnotatedTag constructor"
6602
6602
  );
6603
6603
  }
@@ -6696,7 +6696,7 @@ class Ae {
6696
6696
  else if (typeof t == "object")
6697
6697
  this._commit = Ae.render(t);
6698
6698
  else
6699
- throw new se("invalid type passed to GitCommit constructor");
6699
+ throw new ce("invalid type passed to GitCommit constructor");
6700
6700
  }
6701
6701
  static fromPayloadSignature({ payload: t, signature: r }) {
6702
6702
  const n = Ae.justHeaders(t), i = Ae.justMessage(t), a = Zt(
@@ -6754,7 +6754,7 @@ gpgsig` + go(r) + `
6754
6754
  ` : r += `tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904
6755
6755
  `, t.parent) {
6756
6756
  if (t.parent.length === void 0)
6757
- throw new se("commit 'parent' property should be an array");
6757
+ throw new ce("commit 'parent' property should be an array");
6758
6758
  for (const a of t.parent)
6759
6759
  r += `parent ${a}
6760
6760
  `;
@@ -6804,7 +6804,7 @@ gpgsig` + go(o) + `
6804
6804
  }
6805
6805
  async function ln({ fs: e, cache: t, gitdir: r, oid: n }) {
6806
6806
  if (n === "4b825dc642cb6eb9a060e54bf8d69288fbee4904")
6807
- return { tree: ut.from([]), oid: n };
6807
+ return { tree: ft.from([]), oid: n };
6808
6808
  const { type: i, object: a } = await De({ fs: e, cache: t, gitdir: r, oid: n });
6809
6809
  if (i === "tag")
6810
6810
  return n = nt.from(a).parse().object, ln({ fs: e, cache: t, gitdir: r, oid: n });
@@ -6812,7 +6812,7 @@ async function ln({ fs: e, cache: t, gitdir: r, oid: n }) {
6812
6812
  return n = Ae.from(a).parse().tree, ln({ fs: e, cache: t, gitdir: r, oid: n });
6813
6813
  if (i !== "tree")
6814
6814
  throw new it(n, i, "tree");
6815
- return { tree: ut.from(a), oid: n };
6815
+ return { tree: ft.from(a), oid: n };
6816
6816
  }
6817
6817
  class Qw {
6818
6818
  constructor({ fs: t, gitdir: r, ref: n, cache: i }) {
@@ -6820,7 +6820,7 @@ class Qw {
6820
6820
  const o = /* @__PURE__ */ new Map();
6821
6821
  let s;
6822
6822
  try {
6823
- s = await H.resolve({ fs: t, gitdir: r, ref: n });
6823
+ s = await U.resolve({ fs: t, gitdir: r, ref: n });
6824
6824
  } catch (c) {
6825
6825
  c instanceof ke && (s = "4b825dc642cb6eb9a060e54bf8d69288fbee4904");
6826
6826
  }
@@ -6859,7 +6859,7 @@ class Qw {
6859
6859
  const { type: c, object: u } = await De({ fs: n, cache: i, gitdir: a, oid: l });
6860
6860
  if (c !== s.type)
6861
6861
  throw new it(l, c, s.type);
6862
- const d = ut.from(u);
6862
+ const d = ft.from(u);
6863
6863
  for (const p of d)
6864
6864
  o.set(N.join(r, p.path), p);
6865
6865
  return d.entries().map((p) => N.join(r, p.path));
@@ -7262,9 +7262,9 @@ class K {
7262
7262
  return this._symlink(r.toString("utf8"), t);
7263
7263
  }
7264
7264
  }
7265
- function $(e, t) {
7265
+ function P(e, t) {
7266
7266
  if (t === void 0)
7267
- throw new lt(e);
7267
+ throw new ut(e);
7268
7268
  }
7269
7269
  async function oa(e, t) {
7270
7270
  return !e && !t ? !1 : e && !t || !e && t ? !0 : !(await e.type() === "tree" && await t.type() === "tree" || await e.type() === await t.type() && await e.mode() === await t.mode() && await e.oid() === await t.oid());
@@ -7277,7 +7277,7 @@ async function og({
7277
7277
  cache: i = {}
7278
7278
  }) {
7279
7279
  try {
7280
- $("fs", e), $("dir", t), $("gitdir", r);
7280
+ P("fs", e), P("dir", t), P("gitdir", r);
7281
7281
  const a = new K(e), o = [_t({ ref: n }), _i(), _n()];
7282
7282
  let s = [];
7283
7283
  await Ue.acquire({ fs: a, gitdir: r, cache: i }, async function(c) {
@@ -7363,7 +7363,7 @@ class kn {
7363
7363
  }
7364
7364
  async function sg({ fs: e, gitdir: t, object: r, format: n, oid: i }) {
7365
7365
  if (n !== "deflated")
7366
- throw new se(
7366
+ throw new ce(
7367
7367
  "GitObjectStoreLoose expects objects to write to be in deflated format"
7368
7368
  );
7369
7369
  const a = `objects/${i.slice(0, 2)}/${i.slice(2)}`, o = `${t}/${a}`;
@@ -7384,7 +7384,7 @@ function lg() {
7384
7384
  return !1;
7385
7385
  }
7386
7386
  }
7387
- async function ft({
7387
+ async function dt({
7388
7388
  fs: e,
7389
7389
  gitdir: t,
7390
7390
  type: r,
@@ -7410,7 +7410,7 @@ async function ug({
7410
7410
  parallel: o = !0
7411
7411
  }) {
7412
7412
  try {
7413
- $("fs", e), $("dir", t), $("gitdir", r), $("filepath", n);
7413
+ P("fs", e), P("dir", t), P("gitdir", r), P("filepath", n);
7414
7414
  const s = new K(e);
7415
7415
  await Ue.acquire({ fs: s, gitdir: r, cache: i }, async (l) => Zo({
7416
7416
  dir: t,
@@ -7474,7 +7474,7 @@ async function Zo({
7474
7474
  } else {
7475
7475
  const g = await (await Me.get({ fs: r, gitdir: t })).get("core.autocrlf"), b = p.isSymbolicLink() ? await r.readlink(N.join(e, d)).then(Cf) : await r.read(N.join(e, d), { autocrlf: g });
7476
7476
  if (b === null) throw new ke(d);
7477
- const v = await ft({ fs: r, gitdir: t, type: "blob", object: b });
7477
+ const v = await dt({ fs: r, gitdir: t, type: "blob", object: b });
7478
7478
  i.insert({ filepath: d, stats: p, oid: v });
7479
7479
  }
7480
7480
  }), l = await Promise.allSettled(s), c = l.filter((d) => d.status === "rejected").map((d) => d.reason);
@@ -7573,7 +7573,7 @@ async function Sa({
7573
7573
  tree: m
7574
7574
  }) {
7575
7575
  let g = !1;
7576
- d || (d = await H.resolve({
7576
+ d || (d = await U.resolve({
7577
7577
  fs: e,
7578
7578
  gitdir: n,
7579
7579
  ref: "HEAD",
@@ -7581,7 +7581,7 @@ async function Sa({
7581
7581
  }));
7582
7582
  let b, v;
7583
7583
  try {
7584
- b = await H.resolve({
7584
+ b = await U.resolve({
7585
7585
  fs: e,
7586
7586
  gitdir: n,
7587
7587
  ref: d
@@ -7616,12 +7616,12 @@ async function Sa({
7616
7616
  async function(R) {
7617
7617
  const x = _f(R.entries).get(".");
7618
7618
  if (m || (m = await Tf({ fs: e, gitdir: n, inode: x, dryRun: c })), p ? p = await Promise.all(
7619
- p.map((S) => H.resolve({ fs: e, gitdir: n, ref: S }))
7619
+ p.map((S) => U.resolve({ fs: e, gitdir: n, ref: S }))
7620
7620
  ) : l ? p = v.commit.parent : p = b ? [b] : [], !i)
7621
7621
  if (l)
7622
7622
  i = v.commit.message;
7623
7623
  else
7624
- throw new lt("message");
7624
+ throw new ut("message");
7625
7625
  let C = Ae.from({
7626
7626
  tree: m,
7627
7627
  parent: p,
@@ -7630,14 +7630,14 @@ async function Sa({
7630
7630
  message: i
7631
7631
  });
7632
7632
  s && (C = await Ae.sign(C, r, s));
7633
- const k = await ft({
7633
+ const k = await dt({
7634
7634
  fs: e,
7635
7635
  gitdir: n,
7636
7636
  type: "commit",
7637
7637
  object: C.toObject(),
7638
7638
  dryRun: c
7639
7639
  });
7640
- return !u && !c && await H.writeRef({
7640
+ return !u && !c && await U.writeRef({
7641
7641
  fs: e,
7642
7642
  gitdir: n,
7643
7643
  ref: d,
@@ -7655,8 +7655,8 @@ async function Tf({ fs: e, gitdir: t, inode: r, dryRun: n }) {
7655
7655
  path: l.basename,
7656
7656
  oid: l.metadata.oid,
7657
7657
  type: l.type
7658
- })), o = ut.from(a);
7659
- return await ft({
7658
+ })), o = ft.from(a);
7659
+ return await dt({
7660
7660
  fs: e,
7661
7661
  gitdir: t,
7662
7662
  type: "tree",
@@ -7709,7 +7709,7 @@ async function Af({
7709
7709
  });
7710
7710
  if (c !== "tree")
7711
7711
  throw new it(a, c, "tree", o);
7712
- return n = ut.from(u), Af({
7712
+ return n = ft.from(u), Af({
7713
7713
  fs: e,
7714
7714
  cache: t,
7715
7715
  gitdir: r,
@@ -7737,8 +7737,8 @@ async function Rn({
7737
7737
  };
7738
7738
  }
7739
7739
  async function xi({ fs: e, gitdir: t, tree: r }) {
7740
- const n = ut.from(r).toObject();
7741
- return await ft({
7740
+ const n = ft.from(r).toObject();
7741
+ return await dt({
7742
7742
  fs: e,
7743
7743
  gitdir: t,
7744
7744
  type: "tree",
@@ -7761,7 +7761,7 @@ async function fg({
7761
7761
  }) {
7762
7762
  let d;
7763
7763
  try {
7764
- d = await H.resolve({ gitdir: n, fs: e, ref: i });
7764
+ d = await U.resolve({ gitdir: n, fs: e, ref: i });
7765
7765
  } catch (y) {
7766
7766
  if (!(y instanceof ke))
7767
7767
  throw y;
@@ -7779,7 +7779,7 @@ async function fg({
7779
7779
  if (y.path === a)
7780
7780
  throw new Pt("note", a);
7781
7781
  typeof o == "string" && (o = Buffer.from(o, "utf8"));
7782
- const g = await ft({
7782
+ const g = await dt({
7783
7783
  fs: e,
7784
7784
  gitdir: n,
7785
7785
  type: "blob",
@@ -7822,7 +7822,7 @@ async function dg({
7822
7822
  cache: d = {}
7823
7823
  }) {
7824
7824
  try {
7825
- $("fs", e), $("gitdir", n), $("oid", a), $("note", o), u && $("onSign", t);
7825
+ P("fs", e), P("gitdir", n), P("oid", a), P("note", o), u && P("onSign", t);
7826
7826
  const p = new K(e), m = await gr({ fs: p, gitdir: n, author: l });
7827
7827
  if (!m) throw new Je("author");
7828
7828
  const g = await un({
@@ -7869,7 +7869,7 @@ async function hg({
7869
7869
  force: a = !1
7870
7870
  }) {
7871
7871
  try {
7872
- return $("fs", e), $("gitdir", r), $("remote", n), $("url", i), await Df({
7872
+ return P("fs", e), P("gitdir", r), P("remote", n), P("url", i), await Df({
7873
7873
  fs: new K(e),
7874
7874
  gitdir: r,
7875
7875
  remote: n,
@@ -7893,9 +7893,9 @@ async function pg({
7893
7893
  signingKey: c,
7894
7894
  force: u = !1
7895
7895
  }) {
7896
- if (i = i.startsWith("refs/tags/") ? i : `refs/tags/${i}`, !u && await H.exists({ fs: e, gitdir: n, ref: i }))
7896
+ if (i = i.startsWith("refs/tags/") ? i : `refs/tags/${i}`, !u && await U.exists({ fs: e, gitdir: n, ref: i }))
7897
7897
  throw new Pt("tag", i);
7898
- const d = await H.resolve({
7898
+ const d = await U.resolve({
7899
7899
  fs: e,
7900
7900
  gitdir: n,
7901
7901
  ref: l || "HEAD"
@@ -7909,13 +7909,13 @@ async function pg({
7909
7909
  gpgsig: s
7910
7910
  });
7911
7911
  c && (m = await nt.sign(m, r, c));
7912
- const g = await ft({
7912
+ const g = await dt({
7913
7913
  fs: e,
7914
7914
  gitdir: n,
7915
7915
  type: "tag",
7916
7916
  object: m.toObject()
7917
7917
  });
7918
- await H.writeRef({ fs: e, gitdir: n, ref: i, value: g });
7918
+ await U.writeRef({ fs: e, gitdir: n, ref: i, value: g });
7919
7919
  }
7920
7920
  async function mg({
7921
7921
  fs: e,
@@ -7932,7 +7932,7 @@ async function mg({
7932
7932
  cache: d = {}
7933
7933
  }) {
7934
7934
  try {
7935
- $("fs", e), $("gitdir", n), $("ref", i), c && $("onSign", t);
7935
+ P("fs", e), P("gitdir", n), P("ref", i), c && P("onSign", t);
7936
7936
  const p = new K(e), m = await gr({ fs: p, gitdir: n, author: a });
7937
7937
  if (!m) throw new Je("tagger");
7938
7938
  return await pg({
@@ -7963,14 +7963,14 @@ async function wg({
7963
7963
  if (r !== Ft.clean(r))
7964
7964
  throw new Rt(r, Ft.clean(r));
7965
7965
  const o = `refs/heads/${r}`;
7966
- if (!a && await H.exists({ fs: e, gitdir: t, ref: o }))
7966
+ if (!a && await U.exists({ fs: e, gitdir: t, ref: o }))
7967
7967
  throw new Pt("branch", r, !1);
7968
7968
  let s;
7969
7969
  try {
7970
- s = await H.resolve({ fs: e, gitdir: t, ref: n || "HEAD" });
7970
+ s = await U.resolve({ fs: e, gitdir: t, ref: n || "HEAD" });
7971
7971
  } catch {
7972
7972
  }
7973
- s && await H.writeRef({ fs: e, gitdir: t, ref: o, value: s }), i && await H.writeSymbolicRef({
7973
+ s && await U.writeRef({ fs: e, gitdir: t, ref: o, value: s }), i && await U.writeSymbolicRef({
7974
7974
  fs: e,
7975
7975
  gitdir: t,
7976
7976
  ref: "HEAD",
@@ -7987,7 +7987,7 @@ async function gg({
7987
7987
  force: o = !1
7988
7988
  }) {
7989
7989
  try {
7990
- return $("fs", e), $("gitdir", r), $("ref", n), await wg({
7990
+ return P("fs", e), P("gitdir", r), P("ref", n), await wg({
7991
7991
  fs: new K(e),
7992
7992
  gitdir: r,
7993
7993
  ref: n,
@@ -8019,17 +8019,17 @@ async function $s({
8019
8019
  let g;
8020
8020
  if (n)
8021
8021
  try {
8022
- g = await H.resolve({ fs: e, gitdir: a, ref: "HEAD" });
8022
+ g = await U.resolve({ fs: e, gitdir: a, ref: "HEAD" });
8023
8023
  } catch {
8024
8024
  g = "0000000000000000000000000000000000000000";
8025
8025
  }
8026
8026
  let b;
8027
8027
  try {
8028
- b = await H.resolve({ fs: e, gitdir: a, ref: s });
8028
+ b = await U.resolve({ fs: e, gitdir: a, ref: s });
8029
8029
  } catch (v) {
8030
8030
  if (s === "HEAD") throw v;
8031
8031
  const y = `${o}/${s}`;
8032
- if (b = await H.resolve({
8032
+ if (b = await U.resolve({
8033
8033
  fs: e,
8034
8034
  gitdir: a,
8035
8035
  ref: y
@@ -8037,7 +8037,7 @@ async function $s({
8037
8037
  const _ = await Me.get({ fs: e, gitdir: a });
8038
8038
  await _.set(`branch.${s}.remote`, o), await _.set(`branch.${s}.merge`, `refs/heads/${s}`), await Me.save({ fs: e, gitdir: a, config: _ });
8039
8039
  }
8040
- await H.writeRef({
8040
+ await U.writeRef({
8041
8041
  fs: e,
8042
8042
  gitdir: a,
8043
8043
  ref: `refs/heads/${s}`,
@@ -8065,7 +8065,7 @@ async function $s({
8065
8065
  throw new ci(y);
8066
8066
  const _ = v.filter(([x]) => x === "error").map(([x, C]) => C);
8067
8067
  if (_.length > 0)
8068
- throw new se(_.join(", "));
8068
+ throw new ce(_.join(", "));
8069
8069
  if (d) {
8070
8070
  n && await n({
8071
8071
  previousHead: g,
@@ -8099,13 +8099,13 @@ async function $s({
8099
8099
  loaded: ++R,
8100
8100
  total: O
8101
8101
  });
8102
- } catch (P) {
8103
- if (P.code === "ENOTEMPTY")
8102
+ } catch ($) {
8103
+ if ($.code === "ENOTEMPTY")
8104
8104
  console.log(
8105
8105
  `Did not delete ${k} because directory is not empty`
8106
8106
  );
8107
8107
  else
8108
- throw P;
8108
+ throw $;
8109
8109
  }
8110
8110
  }
8111
8111
  }), await Promise.all(
@@ -8121,24 +8121,24 @@ async function $s({
8121
8121
  await Promise.all(
8122
8122
  v.filter(
8123
8123
  ([C]) => C === "create" || C === "create-index" || C === "update" || C === "mkdir-index"
8124
- ).map(async function([C, k, S, P, A]) {
8125
- const B = `${i}/${k}`;
8124
+ ).map(async function([C, k, S, $, A]) {
8125
+ const I = `${i}/${k}`;
8126
8126
  try {
8127
8127
  if (C !== "create-index" && C !== "mkdir-index") {
8128
- const { object: U } = await De({ fs: e, cache: t, gitdir: a, oid: S });
8129
- if (A && await e.rm(B), P === 33188)
8130
- await e.write(B, U);
8131
- else if (P === 33261)
8132
- await e.write(B, U, { mode: 511 });
8133
- else if (P === 40960)
8134
- await e.writelink(B, U);
8128
+ const { object: H } = await De({ fs: e, cache: t, gitdir: a, oid: S });
8129
+ if (A && await e.rm(I), $ === 33188)
8130
+ await e.write(I, H);
8131
+ else if ($ === 33261)
8132
+ await e.write(I, H, { mode: 511 });
8133
+ else if ($ === 40960)
8134
+ await e.writelink(I, H);
8135
8135
  else
8136
- throw new se(
8137
- `Invalid mode 0o${P.toString(8)} detected in blob ${S}`
8136
+ throw new ce(
8137
+ `Invalid mode 0o${$.toString(8)} detected in blob ${S}`
8138
8138
  );
8139
8139
  }
8140
- const M = await e.lstat(B);
8141
- P === 33261 && (M.mode = 493), C === "mkdir-index" && (M.mode = 57344), x.insert({
8140
+ const M = await e.lstat(I);
8141
+ $ === 33261 && (M.mode = 493), C === "mkdir-index" && (M.mode = 57344), x.insert({
8142
8142
  filepath: k,
8143
8143
  stats: M,
8144
8144
  oid: S
@@ -8159,13 +8159,13 @@ async function $s({
8159
8159
  });
8160
8160
  }
8161
8161
  if (!u) {
8162
- const v = await H.expand({ fs: e, gitdir: a, ref: s });
8163
- v.startsWith("refs/heads") ? await H.writeSymbolicRef({
8162
+ const v = await U.expand({ fs: e, gitdir: a, ref: s });
8163
+ v.startsWith("refs/heads") ? await U.writeSymbolicRef({
8164
8164
  fs: e,
8165
8165
  gitdir: a,
8166
8166
  ref: "HEAD",
8167
8167
  value: v
8168
- }) : await H.writeRef({ fs: e, gitdir: a, ref: "HEAD", value: b });
8168
+ }) : await U.writeRef({ fs: e, gitdir: a, ref: "HEAD", value: b });
8169
8169
  }
8170
8170
  }
8171
8171
  async function yg({
@@ -8348,7 +8348,7 @@ async function Bf({
8348
8348
  cache: m = {}
8349
8349
  }) {
8350
8350
  try {
8351
- $("fs", e), $("dir", n), $("gitdir", i);
8351
+ P("fs", e), P("dir", n), P("gitdir", i);
8352
8352
  const g = o || "HEAD";
8353
8353
  return await $s({
8354
8354
  fs: new K(e),
@@ -8381,7 +8381,7 @@ async function br({
8381
8381
  fullname: r = !1,
8382
8382
  test: n = !1
8383
8383
  }) {
8384
- const i = await H.resolve({
8384
+ const i = await U.resolve({
8385
8385
  fs: e,
8386
8386
  gitdir: t,
8387
8387
  ref: "HEAD",
@@ -8389,7 +8389,7 @@ async function br({
8389
8389
  });
8390
8390
  if (n)
8391
8391
  try {
8392
- await H.resolve({ fs: e, gitdir: t, ref: i });
8392
+ await U.resolve({ fs: e, gitdir: t, ref: i });
8393
8393
  } catch {
8394
8394
  return;
8395
8395
  }
@@ -8718,7 +8718,7 @@ async function Eg({
8718
8718
  filename: s,
8719
8719
  getExternalRefDelta: i
8720
8720
  });
8721
- if (l.error) throw new se(l.error);
8721
+ if (l.error) throw new ce(l.error);
8722
8722
  if (l.offsets.has(n))
8723
8723
  return !0;
8724
8724
  }
@@ -8991,12 +8991,12 @@ async function Ts({
8991
8991
  prune: x = !1,
8992
8992
  pruneTags: C = !1
8993
8993
  }) {
8994
- const k = c || await br({ fs: e, gitdir: l, test: !0 }), S = await Me.get({ fs: e, gitdir: l }), P = d || k && await S.get(`branch.${k}.remote`) || "origin", A = p || await S.get(`remote.${P}.url`);
8994
+ const k = c || await br({ fs: e, gitdir: l, test: !0 }), S = await Me.get({ fs: e, gitdir: l }), $ = d || k && await S.get(`branch.${k}.remote`) || "origin", A = p || await S.get(`remote.${$}.url`);
8995
8995
  if (typeof A > "u")
8996
- throw new lt("remote OR url");
8997
- const B = u || k && await S.get(`branch.${k}.merge`) || c || "HEAD";
8996
+ throw new ut("remote OR url");
8997
+ const I = u || k && await S.get(`branch.${k}.merge`) || c || "HEAD";
8998
8998
  m === void 0 && (m = await S.get("http.corsProxy"));
8999
- const M = ka.getRemoteHelperFor({ url: A }), U = await M.discover({
8999
+ const M = ka.getRemoteHelperFor({ url: A }), H = await M.discover({
9000
9000
  http: r,
9001
9001
  onAuth: a,
9002
9002
  onAuthSuccess: o,
@@ -9006,29 +9006,29 @@ async function Ts({
9006
9006
  url: A,
9007
9007
  headers: O,
9008
9008
  protocolVersion: 1
9009
- }), Z = U.auth, fe = U.refs;
9010
- if (fe.size === 0)
9009
+ }), Y = H.auth, oe = H.refs;
9010
+ if (oe.size === 0)
9011
9011
  return {
9012
9012
  defaultBranch: null,
9013
9013
  fetchHead: null,
9014
9014
  fetchHeadDescription: null
9015
9015
  };
9016
- if (g !== null && !U.capabilities.has("shallow"))
9016
+ if (g !== null && !H.capabilities.has("shallow"))
9017
9017
  throw new fr("shallow", "depth");
9018
- if (b !== null && !U.capabilities.has("deepen-since"))
9018
+ if (b !== null && !H.capabilities.has("deepen-since"))
9019
9019
  throw new fr("deepen-since", "since");
9020
- if (v.length > 0 && !U.capabilities.has("deepen-not"))
9020
+ if (v.length > 0 && !H.capabilities.has("deepen-not"))
9021
9021
  throw new fr("deepen-not", "exclude");
9022
- if (y === !0 && !U.capabilities.has("deepen-relative"))
9022
+ if (y === !0 && !H.capabilities.has("deepen-relative"))
9023
9023
  throw new fr("deepen-relative", "relative");
9024
- const { oid: Pe, fullref: me } = H.resolveAgainstMap({
9025
- ref: B,
9026
- map: fe
9024
+ const { oid: Pe, fullref: me } = U.resolveAgainstMap({
9025
+ ref: I,
9026
+ map: oe
9027
9027
  });
9028
- for (const L of fe.keys())
9029
- L === me || L === "HEAD" || L.startsWith("refs/heads/") || _ && L.startsWith("refs/tags/") || fe.delete(L);
9028
+ for (const L of oe.keys())
9029
+ L === me || L === "HEAD" || L.startsWith("refs/heads/") || _ && L.startsWith("refs/tags/") || oe.delete(L);
9030
9030
  const be = zf(
9031
- [...U.capabilities],
9031
+ [...H.capabilities],
9032
9032
  [
9033
9033
  "multi_ack_detailed",
9034
9034
  "no-done",
@@ -9043,39 +9043,39 @@ async function Ts({
9043
9043
  ]
9044
9044
  );
9045
9045
  y && be.push("deepen-relative");
9046
- const Ye = R ? [Pe] : fe.values(), Ze = R ? [k] : await H.listRefs({
9046
+ const Ye = R ? [Pe] : oe.values(), Ze = R ? [k] : await U.listRefs({
9047
9047
  fs: e,
9048
9048
  gitdir: l,
9049
9049
  filepath: "refs"
9050
9050
  });
9051
- let le = [];
9051
+ let ue = [];
9052
9052
  for (let L of Ze)
9053
9053
  try {
9054
- L = await H.expand({ fs: e, gitdir: l, ref: L });
9055
- const V = await H.resolve({ fs: e, gitdir: l, ref: L });
9056
- await Al({ fs: e, cache: t, gitdir: l, oid: V }) && le.push(V);
9054
+ L = await U.expand({ fs: e, gitdir: l, ref: L });
9055
+ const V = await U.resolve({ fs: e, gitdir: l, ref: L });
9056
+ await Al({ fs: e, cache: t, gitdir: l, oid: V }) && ue.push(V);
9057
9057
  } catch {
9058
9058
  }
9059
- le = [...new Set(le)];
9060
- const F = await Vn.read({ fs: e, gitdir: l }), q = U.capabilities.has("shallow") ? [...F] : [], W = Og({
9059
+ ue = [...new Set(ue)];
9060
+ const F = await Vn.read({ fs: e, gitdir: l }), q = H.capabilities.has("shallow") ? [...F] : [], W = Og({
9061
9061
  capabilities: be,
9062
9062
  wants: Ye,
9063
- haves: le,
9063
+ haves: ue,
9064
9064
  shallows: q,
9065
9065
  depth: g,
9066
9066
  since: b,
9067
9067
  exclude: v
9068
- }), ee = Buffer.from(await sa(W)), I = await M.connect({
9068
+ }), ee = Buffer.from(await sa(W)), B = await M.connect({
9069
9069
  http: r,
9070
9070
  onProgress: n,
9071
9071
  corsProxy: m,
9072
9072
  service: "git-upload-pack",
9073
9073
  url: A,
9074
- auth: Z,
9074
+ auth: Y,
9075
9075
  body: [ee],
9076
9076
  headers: O
9077
- }), Q = await Rg(I.body);
9078
- I.headers && (Q.headers = I.headers);
9077
+ }), Q = await Rg(B.body);
9078
+ B.headers && (Q.headers = B.headers);
9079
9079
  for (const L of Q.shallows)
9080
9080
  if (!F.has(L))
9081
9081
  try {
@@ -9092,16 +9092,16 @@ async function Ts({
9092
9092
  const L = /* @__PURE__ */ new Map([[me, Pe]]), V = /* @__PURE__ */ new Map();
9093
9093
  let te = 10, J = me;
9094
9094
  for (; te--; ) {
9095
- const ne = U.symrefs.get(J);
9095
+ const ne = H.symrefs.get(J);
9096
9096
  if (ne === void 0) break;
9097
9097
  V.set(J, ne), J = ne;
9098
9098
  }
9099
- const oe = fe.get(J);
9100
- oe && L.set(J, oe);
9101
- const { pruned: re } = await H.updateRemoteRefs({
9099
+ const se = oe.get(J);
9100
+ se && L.set(J, se);
9101
+ const { pruned: re } = await U.updateRemoteRefs({
9102
9102
  fs: e,
9103
9103
  gitdir: l,
9104
- remote: P,
9104
+ remote: $,
9105
9105
  refs: L,
9106
9106
  symrefs: V,
9107
9107
  tags: _,
@@ -9109,24 +9109,24 @@ async function Ts({
9109
9109
  });
9110
9110
  x && (Q.pruned = re);
9111
9111
  } else {
9112
- const { pruned: L } = await H.updateRemoteRefs({
9112
+ const { pruned: L } = await U.updateRemoteRefs({
9113
9113
  fs: e,
9114
9114
  gitdir: l,
9115
- remote: P,
9116
- refs: fe,
9117
- symrefs: U.symrefs,
9115
+ remote: $,
9116
+ refs: oe,
9117
+ symrefs: H.symrefs,
9118
9118
  tags: _,
9119
9119
  prune: x,
9120
9120
  pruneTags: C
9121
9121
  });
9122
9122
  x && (Q.pruned = L);
9123
9123
  }
9124
- if (Q.HEAD = U.symrefs.get("HEAD"), Q.HEAD === void 0) {
9125
- const { oid: L } = H.resolveAgainstMap({
9124
+ if (Q.HEAD = H.symrefs.get("HEAD"), Q.HEAD === void 0) {
9125
+ const { oid: L } = U.resolveAgainstMap({
9126
9126
  ref: "HEAD",
9127
- map: fe
9127
+ map: oe
9128
9128
  });
9129
- for (const [V, te] of fe.entries())
9129
+ for (const [V, te] of oe.entries())
9130
9130
  if (V !== "HEAD" && te === L) {
9131
9131
  Q.HEAD = V;
9132
9132
  break;
@@ -9150,15 +9150,15 @@ async function Ts({
9150
9150
  });
9151
9151
  }
9152
9152
  const G = Buffer.from(await sa(Q.packfile));
9153
- if (I.body.error) throw I.body.error;
9154
- const X = G.slice(-20).toString("hex"), Y = {
9153
+ if (B.body.error) throw B.body.error;
9154
+ const X = G.slice(-20).toString("hex"), Z = {
9155
9155
  defaultBranch: Q.HEAD,
9156
9156
  fetchHead: Q.FETCH_HEAD.oid,
9157
9157
  fetchHeadDescription: Q.FETCH_HEAD.description
9158
9158
  };
9159
- if (Q.headers && (Y.headers = Q.headers), x && (Y.pruned = Q.pruned), X !== "" && !Sg(G)) {
9160
- Y.packfile = `objects/pack/pack-${X}.pack`;
9161
- const L = N.join(l, Y.packfile);
9159
+ if (Q.headers && (Z.headers = Q.headers), x && (Z.pruned = Q.pruned), X !== "" && !Sg(G)) {
9160
+ Z.packfile = `objects/pack/pack-${X}.pack`;
9161
+ const L = N.join(l, Z.packfile);
9162
9162
  await e.write(L, G);
9163
9163
  const V = (J) => De({ fs: e, cache: t, gitdir: l, oid: J }), te = await on.fromPack({
9164
9164
  pack: G,
@@ -9167,7 +9167,7 @@ async function Ts({
9167
9167
  });
9168
9168
  await e.write(L.replace(/\.pack$/, ".idx"), await te.toBuffer());
9169
9169
  }
9170
- return Y;
9170
+ return Z;
9171
9171
  }
9172
9172
  async function Lf({
9173
9173
  fs: e,
@@ -9228,8 +9228,8 @@ async function Cg({
9228
9228
  }) {
9229
9229
  try {
9230
9230
  if (await Lf({ fs: e, gitdir: u }), await Df({ fs: e, gitdir: u, remote: g, url: d, force: !1 }), p) {
9231
- const P = await Me.get({ fs: e, gitdir: u });
9232
- await P.set("http.corsProxy", p), await Me.save({ fs: e, gitdir: u, config: P });
9231
+ const $ = await Me.get({ fs: e, gitdir: u });
9232
+ await $.set("http.corsProxy", p), await Me.save({ fs: e, gitdir: u, config: $ });
9233
9233
  }
9234
9234
  const { defaultBranch: k, fetchHead: S } = await Ts({
9235
9235
  fs: e,
@@ -9295,7 +9295,7 @@ async function Pg({
9295
9295
  cache: C = {}
9296
9296
  }) {
9297
9297
  try {
9298
- return $("fs", e), $("http", t), $("gitdir", c), R || $("dir", l), $("url", u), await Cg({
9298
+ return P("fs", e), P("http", t), P("gitdir", c), R || P("dir", l), P("url", u), await Cg({
9299
9299
  fs: new K(e),
9300
9300
  cache: C,
9301
9301
  http: t,
@@ -9342,7 +9342,7 @@ async function $g({
9342
9342
  cache: g = {}
9343
9343
  }) {
9344
9344
  try {
9345
- $("fs", e), l || $("message", i), s && $("onSign", t);
9345
+ P("fs", e), l || P("message", i), s && P("onSign", t);
9346
9346
  const b = new K(e);
9347
9347
  return await Sa({
9348
9348
  fs: b,
@@ -9372,7 +9372,7 @@ async function Tg({
9372
9372
  test: i = !1
9373
9373
  }) {
9374
9374
  try {
9375
- return $("fs", e), $("gitdir", r), await br({
9375
+ return P("fs", e), P("gitdir", r), await br({
9376
9376
  fs: new K(e),
9377
9377
  gitdir: r,
9378
9378
  fullname: n,
@@ -9383,14 +9383,14 @@ async function Tg({
9383
9383
  }
9384
9384
  }
9385
9385
  async function Ag({ fs: e, gitdir: t, ref: r }) {
9386
- if (r = r.startsWith("refs/heads/") ? r : `refs/heads/${r}`, !await H.exists({ fs: e, gitdir: t, ref: r }))
9386
+ if (r = r.startsWith("refs/heads/") ? r : `refs/heads/${r}`, !await U.exists({ fs: e, gitdir: t, ref: r }))
9387
9387
  throw new ke(r);
9388
- const i = await H.expand({ fs: e, gitdir: t, ref: r }), a = await br({ fs: e, gitdir: t, fullname: !0 });
9388
+ const i = await U.expand({ fs: e, gitdir: t, ref: r }), a = await br({ fs: e, gitdir: t, fullname: !0 });
9389
9389
  if (i === a) {
9390
- const l = await H.resolve({ fs: e, gitdir: t, ref: i });
9391
- await H.writeRef({ fs: e, gitdir: t, ref: "HEAD", value: l });
9390
+ const l = await U.resolve({ fs: e, gitdir: t, ref: i });
9391
+ await U.writeRef({ fs: e, gitdir: t, ref: "HEAD", value: l });
9392
9392
  }
9393
- await H.deleteRef({ fs: e, gitdir: t, ref: i });
9393
+ await U.deleteRef({ fs: e, gitdir: t, ref: i });
9394
9394
  const o = Or(r), s = await Me.get({ fs: e, gitdir: t });
9395
9395
  await s.deleteSection("branch", o), await Me.save({ fs: e, gitdir: t, config: s });
9396
9396
  }
@@ -9401,7 +9401,7 @@ async function Dg({
9401
9401
  ref: n
9402
9402
  }) {
9403
9403
  try {
9404
- return $("fs", e), $("ref", n), await Ag({
9404
+ return P("fs", e), P("ref", n), await Ag({
9405
9405
  fs: new K(e),
9406
9406
  gitdir: r,
9407
9407
  ref: n
@@ -9412,7 +9412,7 @@ async function Dg({
9412
9412
  }
9413
9413
  async function Ig({ fs: e, dir: t, gitdir: r = N.join(t, ".git"), ref: n }) {
9414
9414
  try {
9415
- $("fs", e), $("ref", n), await H.deleteRef({ fs: new K(e), gitdir: r, ref: n });
9415
+ P("fs", e), P("ref", n), await U.deleteRef({ fs: new K(e), gitdir: r, ref: n });
9416
9416
  } catch (i) {
9417
9417
  throw i.caller = "git.deleteRef", i;
9418
9418
  }
@@ -9428,7 +9428,7 @@ async function jg({
9428
9428
  remote: n
9429
9429
  }) {
9430
9430
  try {
9431
- return $("fs", e), $("remote", n), await Bg({
9431
+ return P("fs", e), P("remote", n), await Bg({
9432
9432
  fs: new K(e),
9433
9433
  gitdir: r,
9434
9434
  remote: n
@@ -9438,11 +9438,11 @@ async function jg({
9438
9438
  }
9439
9439
  }
9440
9440
  async function zg({ fs: e, gitdir: t, ref: r }) {
9441
- r = r.startsWith("refs/tags/") ? r : `refs/tags/${r}`, await H.deleteRef({ fs: e, gitdir: t, ref: r });
9441
+ r = r.startsWith("refs/tags/") ? r : `refs/tags/${r}`, await U.deleteRef({ fs: e, gitdir: t, ref: r });
9442
9442
  }
9443
9443
  async function Ng({ fs: e, dir: t, gitdir: r = N.join(t, ".git"), ref: n }) {
9444
9444
  try {
9445
- return $("fs", e), $("ref", n), await zg({
9445
+ return P("fs", e), P("ref", n), await zg({
9446
9446
  fs: new K(e),
9447
9447
  gitdir: r,
9448
9448
  ref: n
@@ -9472,7 +9472,7 @@ async function Lg({
9472
9472
  filename: l,
9473
9473
  getExternalRefDelta: i
9474
9474
  });
9475
- if (c.error) throw new se(c.error);
9475
+ if (c.error) throw new ce(c.error);
9476
9476
  for (const u of c.offsets.keys())
9477
9477
  u.startsWith(n) && a.push(u);
9478
9478
  }
@@ -9500,7 +9500,7 @@ async function Ug({
9500
9500
  cache: i = {}
9501
9501
  }) {
9502
9502
  try {
9503
- return $("fs", e), $("gitdir", r), $("oid", n), await Fg({
9503
+ return P("fs", e), P("gitdir", r), P("oid", n), await Fg({
9504
9504
  fs: new K(e),
9505
9505
  cache: i,
9506
9506
  gitdir: r,
@@ -9512,7 +9512,7 @@ async function Ug({
9512
9512
  }
9513
9513
  async function Hg({ fs: e, dir: t, gitdir: r = N.join(t, ".git"), ref: n }) {
9514
9514
  try {
9515
- return $("fs", e), $("gitdir", r), $("ref", n), await H.expand({
9515
+ return P("fs", e), P("gitdir", r), P("ref", n), await U.expand({
9516
9516
  fs: new K(e),
9517
9517
  gitdir: r,
9518
9518
  ref: n
@@ -9575,9 +9575,9 @@ async function qg({
9575
9575
  dir: r,
9576
9576
  gitdir: n,
9577
9577
  trees: [g, b, v],
9578
- map: async function(C, [k, S, P]) {
9579
- const A = ra(C), B = await oa(k, S), M = await oa(P, S);
9580
- switch (`${B}-${M}`) {
9578
+ map: async function(C, [k, S, $]) {
9579
+ const A = ra(C), I = await oa(k, S), M = await oa($, S);
9580
+ switch (`${I}-${M}`) {
9581
9581
  case "false-false":
9582
9582
  return {
9583
9583
  mode: await S.mode(),
@@ -9586,11 +9586,11 @@ async function qg({
9586
9586
  type: await S.type()
9587
9587
  };
9588
9588
  case "false-true":
9589
- return P ? {
9590
- mode: await P.mode(),
9589
+ return $ ? {
9590
+ mode: await $.mode(),
9591
9591
  path: A,
9592
- oid: await P.oid(),
9593
- type: await P.type()
9592
+ oid: await $.oid(),
9593
+ type: await $.type()
9594
9594
  } : void 0;
9595
9595
  case "true-false":
9596
9596
  return k ? {
@@ -9600,43 +9600,43 @@ async function qg({
9600
9600
  type: await k.type()
9601
9601
  } : void 0;
9602
9602
  case "true-true": {
9603
- if (k && S && P && await k.type() === "blob" && await S.type() === "blob" && await P.type() === "blob")
9603
+ if (k && S && $ && await k.type() === "blob" && await S.type() === "blob" && await $.type() === "blob")
9604
9604
  return Gg({
9605
9605
  fs: e,
9606
9606
  gitdir: n,
9607
9607
  path: A,
9608
9608
  ours: k,
9609
9609
  base: S,
9610
- theirs: P,
9610
+ theirs: $,
9611
9611
  ourName: l,
9612
9612
  baseName: c,
9613
9613
  theirName: u,
9614
9614
  mergeDriver: m
9615
- }).then(async (U) => {
9616
- if (U.cleanMerge)
9617
- p || i.insert({ filepath: C, oid: U.mergeResult.oid, stage: 0 });
9615
+ }).then(async (H) => {
9616
+ if (H.cleanMerge)
9617
+ p || i.insert({ filepath: C, oid: H.mergeResult.oid, stage: 0 });
9618
9618
  else if (y.push(C), _.push(C), !p) {
9619
- const Z = await S.oid(), fe = await k.oid(), Pe = await P.oid();
9620
- i.delete({ filepath: C }), i.insert({ filepath: C, oid: Z, stage: 1 }), i.insert({ filepath: C, oid: fe, stage: 2 }), i.insert({ filepath: C, oid: Pe, stage: 3 });
9619
+ const Y = await S.oid(), oe = await k.oid(), Pe = await $.oid();
9620
+ i.delete({ filepath: C }), i.insert({ filepath: C, oid: Y, stage: 1 }), i.insert({ filepath: C, oid: oe, stage: 2 }), i.insert({ filepath: C, oid: Pe, stage: 3 });
9621
9621
  }
9622
- return U.mergeResult;
9622
+ return H.mergeResult;
9623
9623
  });
9624
- if (S && !k && P && await S.type() === "blob" && await P.type() === "blob") {
9624
+ if (S && !k && $ && await S.type() === "blob" && await $.type() === "blob") {
9625
9625
  if (y.push(C), R.push(C), !p) {
9626
- const U = await S.oid(), Z = await P.oid();
9627
- i.delete({ filepath: C }), i.insert({ filepath: C, oid: U, stage: 1 }), i.insert({ filepath: C, oid: Z, stage: 3 });
9626
+ const H = await S.oid(), Y = await $.oid();
9627
+ i.delete({ filepath: C }), i.insert({ filepath: C, oid: H, stage: 1 }), i.insert({ filepath: C, oid: Y, stage: 3 });
9628
9628
  }
9629
9629
  return {
9630
- mode: await P.mode(),
9631
- oid: await P.oid(),
9630
+ mode: await $.mode(),
9631
+ oid: await $.oid(),
9632
9632
  type: "blob",
9633
9633
  path: A
9634
9634
  };
9635
9635
  }
9636
- if (S && k && !P && await S.type() === "blob" && await k.type() === "blob") {
9636
+ if (S && k && !$ && await S.type() === "blob" && await k.type() === "blob") {
9637
9637
  if (y.push(C), O.push(C), !p) {
9638
- const U = await S.oid(), Z = await k.oid();
9639
- i.delete({ filepath: C }), i.insert({ filepath: C, oid: U, stage: 1 }), i.insert({ filepath: C, oid: Z, stage: 2 });
9638
+ const H = await S.oid(), Y = await k.oid();
9639
+ i.delete({ filepath: C }), i.insert({ filepath: C, oid: H, stage: 1 }), i.insert({ filepath: C, oid: Y, stage: 2 });
9640
9640
  }
9641
9641
  return {
9642
9642
  mode: await k.mode(),
@@ -9645,7 +9645,7 @@ async function qg({
9645
9645
  path: A
9646
9646
  };
9647
9647
  }
9648
- if (S && !k && !P && await S.type() === "blob")
9648
+ if (S && !k && !$ && await S.type() === "blob")
9649
9649
  return;
9650
9650
  throw new xn();
9651
9651
  }
@@ -9659,14 +9659,14 @@ async function qg({
9659
9659
  const S = k.filter(Boolean);
9660
9660
  if (C && !(C && C.type === "tree" && S.length === 0)) {
9661
9661
  if (S.length > 0) {
9662
- const A = new ut(S).toObject(), B = await ft({
9662
+ const A = new ft(S).toObject(), I = await dt({
9663
9663
  fs: e,
9664
9664
  gitdir: n,
9665
9665
  type: "tree",
9666
9666
  object: A,
9667
9667
  dryRun: d
9668
9668
  });
9669
- C.oid = B;
9669
+ C.oid = I;
9670
9670
  }
9671
9671
  return C;
9672
9672
  }
@@ -9681,8 +9681,8 @@ async function qg({
9681
9681
  map: async function(C, [k]) {
9682
9682
  const S = `${r}/${C}`;
9683
9683
  if (await k.type() === "blob") {
9684
- const P = await k.mode(), A = new TextDecoder().decode(await k.content());
9685
- await e.write(S, A, { mode: P });
9684
+ const $ = await k.mode(), A = new TextDecoder().decode(await k.content());
9685
+ await e.write(S, A, { mode: $ });
9686
9686
  }
9687
9687
  return !0;
9688
9688
  }
@@ -9726,7 +9726,7 @@ async function Gg({
9726
9726
  branches: [l, o, s],
9727
9727
  contents: [g, m, b],
9728
9728
  path: r
9729
- }), _ = await ft({
9729
+ }), _ = await dt({
9730
9730
  fs: e,
9731
9731
  gitdir: t,
9732
9732
  type: "blob",
@@ -9754,20 +9754,20 @@ async function Ff({
9754
9754
  onSign: b,
9755
9755
  mergeDriver: v
9756
9756
  }) {
9757
- i === void 0 && (i = await br({ fs: e, gitdir: n, fullname: !0 })), i = await H.expand({
9757
+ i === void 0 && (i = await br({ fs: e, gitdir: n, fullname: !0 })), i = await U.expand({
9758
9758
  fs: e,
9759
9759
  gitdir: n,
9760
9760
  ref: i
9761
- }), a = await H.expand({
9761
+ }), a = await U.expand({
9762
9762
  fs: e,
9763
9763
  gitdir: n,
9764
9764
  ref: a
9765
9765
  });
9766
- const y = await H.resolve({
9766
+ const y = await U.resolve({
9767
9767
  fs: e,
9768
9768
  gitdir: n,
9769
9769
  ref: i
9770
- }), _ = await H.resolve({
9770
+ }), _ = await U.resolve({
9771
9771
  fs: e,
9772
9772
  gitdir: n,
9773
9773
  ref: a
@@ -9786,7 +9786,7 @@ async function Ff({
9786
9786
  alreadyMerged: !0
9787
9787
  };
9788
9788
  if (o && O === y)
9789
- return !l && !c && await H.writeRef({ fs: e, gitdir: n, ref: i, value: _ }), {
9789
+ return !l && !c && await U.writeRef({ fs: e, gitdir: n, ref: i, value: _ }), {
9790
9790
  oid: _,
9791
9791
  fastForward: !0
9792
9792
  };
@@ -9866,10 +9866,10 @@ async function Uf({
9866
9866
  if (!u) {
9867
9867
  const A = await br({ fs: e, gitdir: c });
9868
9868
  if (!A)
9869
- throw new lt("ref");
9869
+ throw new ut("ref");
9870
9870
  u = A;
9871
9871
  }
9872
- const { fetchHead: S, fetchHeadDescription: P } = await Ts({
9872
+ const { fetchHead: S, fetchHeadDescription: $ } = await Ts({
9873
9873
  fs: e,
9874
9874
  cache: t,
9875
9875
  http: r,
@@ -9897,7 +9897,7 @@ async function Uf({
9897
9897
  theirs: S,
9898
9898
  fastForward: v,
9899
9899
  fastForwardOnly: y,
9900
- message: `Merge ${P}`,
9900
+ message: `Merge ${$}`,
9901
9901
  author: x,
9902
9902
  committer: C,
9903
9903
  signingKey: k,
@@ -9937,7 +9937,7 @@ async function Yg({
9937
9937
  cache: v = {}
9938
9938
  }) {
9939
9939
  try {
9940
- $("fs", e), $("http", t), $("gitdir", l);
9940
+ P("fs", e), P("http", t), P("gitdir", l);
9941
9941
  const y = {
9942
9942
  name: "",
9943
9943
  email: "",
@@ -9997,7 +9997,7 @@ async function Zg({
9997
9997
  cache: k = {}
9998
9998
  }) {
9999
9999
  try {
10000
- return $("fs", e), $("http", t), $("gitdir", l), await Ts({
10000
+ return P("fs", e), P("http", t), P("gitdir", l), await Ts({
10001
10001
  fs: new K(e),
10002
10002
  cache: k,
10003
10003
  http: t,
@@ -10034,7 +10034,7 @@ async function Xg({
10034
10034
  cache: i = {}
10035
10035
  }) {
10036
10036
  try {
10037
- return $("fs", e), $("gitdir", r), $("oids", n), await As({
10037
+ return P("fs", e), P("gitdir", r), P("oids", n), await As({
10038
10038
  fs: new K(e),
10039
10039
  cache: i,
10040
10040
  gitdir: r,
@@ -10056,14 +10056,14 @@ async function Hf({ fs: e, filepath: t }) {
10056
10056
  }
10057
10057
  async function Vg({ fs: e, filepath: t }) {
10058
10058
  try {
10059
- return $("fs", e), $("filepath", t), await Hf({ fs: new K(e), filepath: t });
10059
+ return P("fs", e), P("filepath", t), await Hf({ fs: new K(e), filepath: t });
10060
10060
  } catch (r) {
10061
10061
  throw r.caller = "git.findRoot", r;
10062
10062
  }
10063
10063
  }
10064
10064
  async function Kg({ fs: e, dir: t, gitdir: r = N.join(t, ".git"), path: n }) {
10065
10065
  try {
10066
- return $("fs", e), $("gitdir", r), $("path", n), await Xn({
10066
+ return P("fs", e), P("gitdir", r), P("path", n), await Xn({
10067
10067
  fs: new K(e),
10068
10068
  gitdir: r,
10069
10069
  path: n
@@ -10082,7 +10082,7 @@ async function Qg({
10082
10082
  path: n
10083
10083
  }) {
10084
10084
  try {
10085
- return $("fs", e), $("gitdir", r), $("path", n), await Jg({
10085
+ return P("fs", e), P("gitdir", r), P("path", n), await Jg({
10086
10086
  fs: new K(e),
10087
10087
  gitdir: r,
10088
10088
  path: n
@@ -10102,7 +10102,7 @@ async function ey({
10102
10102
  forPush: s = !1
10103
10103
  }) {
10104
10104
  try {
10105
- $("http", e), $("url", a);
10105
+ P("http", e), P("url", a);
10106
10106
  const c = await ka.getRemoteHelperFor({ url: a }).discover({
10107
10107
  http: e,
10108
10108
  onAuth: t,
@@ -10165,7 +10165,7 @@ async function ty({
10165
10165
  protocolVersion: l = 2
10166
10166
  }) {
10167
10167
  try {
10168
- $("http", e), $("url", a);
10168
+ P("http", e), P("url", a);
10169
10169
  const u = await ka.getRemoteHelperFor({ url: a }).discover({
10170
10170
  http: e,
10171
10171
  onAuth: t,
@@ -10206,7 +10206,7 @@ async function ry({
10206
10206
  }
10207
10207
  async function ny({ object: e }) {
10208
10208
  try {
10209
- $("object", e), typeof e == "string" ? e = Buffer.from(e, "utf8") : e = Buffer.from(e);
10209
+ P("object", e), typeof e == "string" ? e = Buffer.from(e, "utf8") : e = Buffer.from(e);
10210
10210
  const t = "blob", { oid: r, object: n } = await ry({
10211
10211
  type: "blob",
10212
10212
  format: "content",
@@ -10248,7 +10248,7 @@ async function ay({
10248
10248
  cache: a = {}
10249
10249
  }) {
10250
10250
  try {
10251
- return $("fs", e), $("dir", r), $("gitdir", r), $("filepath", i), await iy({
10251
+ return P("fs", e), P("dir", r), P("gitdir", r), P("filepath", i), await iy({
10252
10252
  fs: new K(e),
10253
10253
  cache: a,
10254
10254
  onProgress: t,
@@ -10268,7 +10268,7 @@ async function oy({
10268
10268
  defaultBranch: i = "master"
10269
10269
  }) {
10270
10270
  try {
10271
- return $("fs", e), $("gitdir", n), t || $("dir", r), await Lf({
10271
+ return P("fs", e), P("gitdir", n), t || P("dir", r), await Lf({
10272
10272
  fs: new K(e),
10273
10273
  bare: t,
10274
10274
  dir: r,
@@ -10289,9 +10289,9 @@ async function qf({
10289
10289
  }) {
10290
10290
  const o = await Vn.read({ fs: e, gitdir: r });
10291
10291
  if (!n)
10292
- throw new lt("oid");
10292
+ throw new ut("oid");
10293
10293
  if (!i)
10294
- throw new lt("ancestor");
10294
+ throw new ut("ancestor");
10295
10295
  if (n === i) return !1;
10296
10296
  const s = [n], l = /* @__PURE__ */ new Set();
10297
10297
  let c = 0;
@@ -10325,7 +10325,7 @@ async function sy({
10325
10325
  cache: o = {}
10326
10326
  }) {
10327
10327
  try {
10328
- return $("fs", e), $("gitdir", r), $("oid", n), $("ancestor", i), await qf({
10328
+ return P("fs", e), P("gitdir", r), P("oid", n), P("ancestor", i), await qf({
10329
10329
  fs: new K(e),
10330
10330
  cache: o,
10331
10331
  gitdir: r,
@@ -10344,7 +10344,7 @@ async function cy({
10344
10344
  filepath: n
10345
10345
  }) {
10346
10346
  try {
10347
- return $("fs", e), $("dir", t), $("gitdir", r), $("filepath", n), kn.isIgnored({
10347
+ return P("fs", e), P("dir", t), P("gitdir", r), P("filepath", n), kn.isIgnored({
10348
10348
  fs: new K(e),
10349
10349
  dir: t,
10350
10350
  gitdir: r,
@@ -10361,7 +10361,7 @@ async function ly({
10361
10361
  remote: n
10362
10362
  }) {
10363
10363
  try {
10364
- return $("fs", e), $("gitdir", r), H.listBranches({
10364
+ return P("fs", e), P("gitdir", r), U.listBranches({
10365
10365
  fs: new K(e),
10366
10366
  gitdir: r,
10367
10367
  remote: n
@@ -10372,7 +10372,7 @@ async function ly({
10372
10372
  }
10373
10373
  async function uy({ fs: e, gitdir: t, ref: r, cache: n }) {
10374
10374
  if (r) {
10375
- const i = await H.resolve({ gitdir: t, fs: e, ref: r }), a = [];
10375
+ const i = await U.resolve({ gitdir: t, fs: e, ref: r }), a = [];
10376
10376
  return await Gf({
10377
10377
  fs: e,
10378
10378
  cache: n,
@@ -10413,7 +10413,7 @@ async function fy({
10413
10413
  cache: i = {}
10414
10414
  }) {
10415
10415
  try {
10416
- return $("fs", e), $("gitdir", r), await uy({
10416
+ return P("fs", e), P("gitdir", r), await uy({
10417
10417
  fs: new K(e),
10418
10418
  cache: i,
10419
10419
  gitdir: r,
@@ -10426,7 +10426,7 @@ async function fy({
10426
10426
  async function dy({ fs: e, cache: t, gitdir: r, ref: n }) {
10427
10427
  let i;
10428
10428
  try {
10429
- i = await H.resolve({ gitdir: r, fs: e, ref: n });
10429
+ i = await U.resolve({ gitdir: r, fs: e, ref: n });
10430
10430
  } catch (s) {
10431
10431
  if (s instanceof ke)
10432
10432
  return [];
@@ -10449,7 +10449,7 @@ async function hy({
10449
10449
  cache: i = {}
10450
10450
  }) {
10451
10451
  try {
10452
- return $("fs", e), $("gitdir", r), $("ref", n), await dy({
10452
+ return P("fs", e), P("gitdir", r), P("ref", n), await dy({
10453
10453
  fs: new K(e),
10454
10454
  cache: i,
10455
10455
  gitdir: r,
@@ -10466,7 +10466,7 @@ async function py({
10466
10466
  filepath: n
10467
10467
  }) {
10468
10468
  try {
10469
- return $("fs", e), $("gitdir", r), H.listRefs({ fs: new K(e), gitdir: r, filepath: n });
10469
+ return P("fs", e), P("gitdir", r), U.listRefs({ fs: new K(e), gitdir: r, filepath: n });
10470
10470
  } catch (i) {
10471
10471
  throw i.caller = "git.listRefs", i;
10472
10472
  }
@@ -10482,7 +10482,7 @@ async function my({ fs: e, gitdir: t }) {
10482
10482
  }
10483
10483
  async function wy({ fs: e, dir: t, gitdir: r = N.join(t, ".git") }) {
10484
10484
  try {
10485
- return $("fs", e), $("gitdir", r), await my({
10485
+ return P("fs", e), P("gitdir", r), await my({
10486
10486
  fs: new K(e),
10487
10487
  gitdir: r
10488
10488
  });
@@ -10526,7 +10526,7 @@ async function by({
10526
10526
  peelTags: d
10527
10527
  }) {
10528
10528
  try {
10529
- $("http", e), $("url", a);
10529
+ P("http", e), P("url", a);
10530
10530
  const p = await ca.discover({
10531
10531
  http: e,
10532
10532
  onAuth: t,
@@ -10556,7 +10556,7 @@ async function by({
10556
10556
  }
10557
10557
  async function _y({ fs: e, dir: t, gitdir: r = N.join(t, ".git") }) {
10558
10558
  try {
10559
- return $("fs", e), $("gitdir", r), H.listTags({ fs: new K(e), gitdir: r });
10559
+ return P("fs", e), P("gitdir", r), U.listTags({ fs: new K(e), gitdir: r });
10560
10560
  } catch (n) {
10561
10561
  throw n.caller = "git.listTags", n;
10562
10562
  }
@@ -10601,7 +10601,7 @@ async function Yf({
10601
10601
  fs: e,
10602
10602
  cache: t,
10603
10603
  gitdir: r,
10604
- tree: ut.from(d),
10604
+ tree: ft.from(d),
10605
10605
  fileId: i,
10606
10606
  oid: a,
10607
10607
  filepaths: o,
@@ -10622,7 +10622,7 @@ async function Ey({
10622
10622
  force: s,
10623
10623
  follow: l
10624
10624
  }) {
10625
- const c = typeof o > "u" ? void 0 : Math.floor(o.valueOf() / 1e3), u = [], d = await Vn.read({ fs: e, gitdir: r }), p = await H.resolve({ fs: e, gitdir: r, ref: i }), m = [await fn({ fs: e, cache: t, gitdir: r, oid: p })];
10625
+ const c = typeof o > "u" ? void 0 : Math.floor(o.valueOf() / 1e3), u = [], d = await Vn.read({ fs: e, gitdir: r }), p = await U.resolve({ fs: e, gitdir: r, ref: i }), m = [await fn({ fs: e, cache: t, gitdir: r, oid: p })];
10626
10626
  let g, b, v;
10627
10627
  function y(_) {
10628
10628
  v && n && u.push(_);
@@ -10707,7 +10707,7 @@ async function Sy({
10707
10707
  cache: c = {}
10708
10708
  }) {
10709
10709
  try {
10710
- return $("fs", e), $("gitdir", r), $("ref", i), await Ey({
10710
+ return P("fs", e), P("gitdir", r), P("ref", i), await Ey({
10711
10711
  fs: new K(e),
10712
10712
  cache: c,
10713
10713
  gitdir: r,
@@ -10742,7 +10742,7 @@ async function ky({
10742
10742
  mergeDriver: v
10743
10743
  }) {
10744
10744
  try {
10745
- $("fs", e), g && $("onSign", t);
10745
+ P("fs", e), g && P("onSign", t);
10746
10746
  const y = new K(e), _ = await gr({ fs: y, gitdir: n, author: p });
10747
10747
  if (!_ && (!s || !o))
10748
10748
  throw new Je("author");
@@ -10831,7 +10831,7 @@ async function Cy({
10831
10831
  cache: a = {}
10832
10832
  }) {
10833
10833
  try {
10834
- return $("fs", e), $("gitdir", r), $("oids", n), await Oy({
10834
+ return P("fs", e), P("gitdir", r), P("oids", n), await Oy({
10835
10835
  fs: new K(e),
10836
10836
  cache: a,
10837
10837
  gitdir: r,
@@ -10869,13 +10869,13 @@ async function Py({
10869
10869
  cache: k = {}
10870
10870
  }) {
10871
10871
  try {
10872
- $("fs", e), $("gitdir", l);
10873
- const S = new K(e), P = await gr({ fs: S, gitdir: l, author: O });
10874
- if (!P) throw new Je("author");
10872
+ P("fs", e), P("gitdir", l);
10873
+ const S = new K(e), $ = await gr({ fs: S, gitdir: l, author: O });
10874
+ if (!$) throw new Je("author");
10875
10875
  const A = await un({
10876
10876
  fs: S,
10877
10877
  gitdir: l,
10878
- author: P,
10878
+ author: $,
10879
10879
  committer: x
10880
10880
  });
10881
10881
  if (!A) throw new Je("committer");
@@ -10899,7 +10899,7 @@ async function Py({
10899
10899
  corsProxy: y,
10900
10900
  singleBranch: _,
10901
10901
  headers: R,
10902
- author: P,
10902
+ author: $,
10903
10903
  committer: A,
10904
10904
  signingKey: C,
10905
10905
  prune: m,
@@ -10919,10 +10919,10 @@ async function $y({
10919
10919
  }) {
10920
10920
  const o = await Vn.read({ fs: e, gitdir: n }), s = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Set();
10921
10921
  for (const d of i)
10922
- s.add(await H.resolve({ fs: e, gitdir: n, ref: d }));
10922
+ s.add(await U.resolve({ fs: e, gitdir: n, ref: d }));
10923
10923
  for (const d of a)
10924
10924
  try {
10925
- const p = await H.resolve({ fs: e, gitdir: n, ref: d });
10925
+ const p = await U.resolve({ fs: e, gitdir: n, ref: d });
10926
10926
  l.add(p);
10927
10927
  } catch {
10928
10928
  }
@@ -10965,7 +10965,7 @@ async function xo({
10965
10965
  const d = Ae.from(c).headers().tree;
10966
10966
  await o(d);
10967
10967
  } else if (l === "tree") {
10968
- const u = ut.from(c);
10968
+ const u = ft.from(c);
10969
10969
  for (const d of u)
10970
10970
  d.type === "blob" && a.add(d.oid), d.type === "tree" && await o(d.oid);
10971
10971
  }
@@ -11037,17 +11037,17 @@ async function Dy({
11037
11037
  }) {
11038
11038
  const _ = u || await br({ fs: e, gitdir: c });
11039
11039
  if (typeof _ > "u")
11040
- throw new lt("ref");
11040
+ throw new ut("ref");
11041
11041
  const R = await Me.get({ fs: e, gitdir: c });
11042
11042
  p = p || await R.get(`branch.${_}.pushRemote`) || await R.get("remote.pushDefault") || await R.get(`branch.${_}.remote`) || "origin";
11043
11043
  const O = m || await R.get(`remote.${p}.pushurl`) || await R.get(`remote.${p}.url`);
11044
11044
  if (typeof O > "u")
11045
- throw new lt("remote OR url");
11045
+ throw new ut("remote OR url");
11046
11046
  const x = d || await R.get(`branch.${_}.merge`);
11047
11047
  if (typeof O > "u")
11048
- throw new lt("remoteRef");
11048
+ throw new ut("remoteRef");
11049
11049
  v === void 0 && (v = await R.get("http.corsProxy"));
11050
- const C = await H.expand({ fs: e, gitdir: c, ref: _ }), k = b ? "0000000000000000000000000000000000000000" : await H.resolve({ fs: e, gitdir: c, ref: C }), S = ka.getRemoteHelperFor({ url: O }), P = await S.discover({
11050
+ const C = await U.expand({ fs: e, gitdir: c, ref: _ }), k = b ? "0000000000000000000000000000000000000000" : await U.resolve({ fs: e, gitdir: c, ref: C }), S = ka.getRemoteHelperFor({ url: O }), $ = await S.discover({
11051
11051
  http: r,
11052
11052
  onAuth: a,
11053
11053
  onAuthSuccess: o,
@@ -11057,34 +11057,34 @@ async function Dy({
11057
11057
  url: O,
11058
11058
  headers: y,
11059
11059
  protocolVersion: 1
11060
- }), A = P.auth;
11061
- let B;
11060
+ }), A = $.auth;
11061
+ let I;
11062
11062
  if (!x)
11063
- B = C;
11063
+ I = C;
11064
11064
  else
11065
11065
  try {
11066
- B = await H.expandAgainstMap({
11066
+ I = await U.expandAgainstMap({
11067
11067
  ref: x,
11068
- map: P.refs
11068
+ map: $.refs
11069
11069
  });
11070
11070
  } catch (F) {
11071
11071
  if (F instanceof ke)
11072
- B = x.startsWith("refs/") ? x : `refs/heads/${x}`;
11072
+ I = x.startsWith("refs/") ? x : `refs/heads/${x}`;
11073
11073
  else
11074
11074
  throw F;
11075
11075
  }
11076
- const M = P.refs.get(B) || "0000000000000000000000000000000000000000";
11076
+ const M = $.refs.get(I) || "0000000000000000000000000000000000000000";
11077
11077
  if (l && !await l({
11078
11078
  remote: p,
11079
11079
  url: O,
11080
11080
  localRef: { ref: b ? "(delete)" : C, oid: k },
11081
- remoteRef: { ref: B, oid: M }
11081
+ remoteRef: { ref: I, oid: M }
11082
11082
  }))
11083
11083
  throw new Sn();
11084
- const U = !P.capabilities.has("no-thin");
11085
- let Z = /* @__PURE__ */ new Set();
11084
+ const H = !$.capabilities.has("no-thin");
11085
+ let Y = /* @__PURE__ */ new Set();
11086
11086
  if (!b) {
11087
- const F = [...P.refs.values()];
11087
+ const F = [...$.refs.values()];
11088
11088
  let q = /* @__PURE__ */ new Set();
11089
11089
  if (M !== "0000000000000000000000000000000000000000") {
11090
11090
  const W = await As({
@@ -11094,7 +11094,7 @@ async function Dy({
11094
11094
  oids: [k, M]
11095
11095
  });
11096
11096
  for (const ee of W) F.push(ee);
11097
- U && (q = await xo({ fs: e, cache: t, gitdir: c, oids: W }));
11097
+ H && (q = await xo({ fs: e, cache: t, gitdir: c, oids: W }));
11098
11098
  }
11099
11099
  if (!F.includes(k)) {
11100
11100
  const W = await $y({
@@ -11104,26 +11104,26 @@ async function Dy({
11104
11104
  start: [k],
11105
11105
  finish: F
11106
11106
  });
11107
- Z = await xo({ fs: e, cache: t, gitdir: c, oids: W });
11107
+ Y = await xo({ fs: e, cache: t, gitdir: c, oids: W });
11108
11108
  }
11109
- if (U) {
11109
+ if (H) {
11110
11110
  try {
11111
- const W = await H.resolve({
11111
+ const W = await U.resolve({
11112
11112
  fs: e,
11113
11113
  gitdir: c,
11114
11114
  ref: `refs/remotes/${p}/HEAD`,
11115
11115
  depth: 2
11116
- }), { oid: ee } = await H.resolveAgainstMap({
11116
+ }), { oid: ee } = await U.resolveAgainstMap({
11117
11117
  ref: W.replace(`refs/remotes/${p}/`, ""),
11118
11118
  fullref: W,
11119
- map: P.refs
11120
- }), I = [ee];
11121
- for (const Q of await xo({ fs: e, cache: t, gitdir: c, oids: I }))
11119
+ map: $.refs
11120
+ }), B = [ee];
11121
+ for (const Q of await xo({ fs: e, cache: t, gitdir: c, oids: B }))
11122
11122
  q.add(Q);
11123
11123
  } catch {
11124
11124
  }
11125
11125
  for (const W of q)
11126
- Z.delete(W);
11126
+ Y.delete(W);
11127
11127
  }
11128
11128
  if (k === M && (g = !0), !g) {
11129
11129
  if (C.startsWith("refs/tags") && M !== "0000000000000000000000000000000000000000")
@@ -11139,17 +11139,17 @@ async function Dy({
11139
11139
  throw new cn("not-fast-forward");
11140
11140
  }
11141
11141
  }
11142
- const fe = zf(
11143
- [...P.capabilities],
11142
+ const oe = zf(
11143
+ [...$.capabilities],
11144
11144
  ["report-status", "side-band-64k", `agent=${Ra.agent}`]
11145
11145
  ), Pe = await Ay({
11146
- capabilities: fe,
11147
- triplets: [{ oldoid: M, oid: k, fullRef: B }]
11146
+ capabilities: oe,
11147
+ triplets: [{ oldoid: M, oid: k, fullRef: I }]
11148
11148
  }), me = b ? [] : await Zf({
11149
11149
  fs: e,
11150
11150
  cache: t,
11151
11151
  gitdir: c,
11152
- oids: [...Z]
11152
+ oids: [...Y]
11153
11153
  }), be = await S.connect({
11154
11154
  http: r,
11155
11155
  onProgress: n,
@@ -11166,20 +11166,20 @@ async function Dy({
11166
11166
  await i(q);
11167
11167
  });
11168
11168
  }
11169
- const le = await Ty(Ye);
11170
- if (be.headers && (le.headers = be.headers), p && le.ok && le.refs[B].ok && !C.startsWith("refs/tags")) {
11171
- const F = `refs/remotes/${p}/${B.replace(
11169
+ const ue = await Ty(Ye);
11170
+ if (be.headers && (ue.headers = be.headers), p && ue.ok && ue.refs[I].ok && !C.startsWith("refs/tags")) {
11171
+ const F = `refs/remotes/${p}/${I.replace(
11172
11172
  "refs/heads",
11173
11173
  ""
11174
11174
  )}`;
11175
- b ? await H.deleteRef({ fs: e, gitdir: c, ref: F }) : await H.writeRef({ fs: e, gitdir: c, ref: F, value: k });
11175
+ b ? await U.deleteRef({ fs: e, gitdir: c, ref: F }) : await U.writeRef({ fs: e, gitdir: c, ref: F, value: k });
11176
11176
  }
11177
- if (le.ok && Object.values(le.refs).every((F) => F.ok))
11178
- return le;
11177
+ if (ue.ok && Object.values(ue.refs).every((F) => F.ok))
11178
+ return ue;
11179
11179
  {
11180
- const F = Object.entries(le.refs).filter(([q, W]) => !W.ok).map(([q, W]) => `
11180
+ const F = Object.entries(ue.refs).filter(([q, W]) => !W.ok).map(([q, W]) => `
11181
11181
  - ${q}: ${W.error}`).join("");
11182
- throw new di(F, le);
11182
+ throw new di(F, ue);
11183
11183
  }
11184
11184
  }
11185
11185
  async function Iy({
@@ -11204,7 +11204,7 @@ async function Iy({
11204
11204
  cache: _ = {}
11205
11205
  }) {
11206
11206
  try {
11207
- return $("fs", e), $("http", t), $("gitdir", c), await Dy({
11207
+ return P("fs", e), P("http", t), P("gitdir", c), await Dy({
11208
11208
  fs: new K(e),
11209
11209
  cache: _,
11210
11210
  http: t,
@@ -11259,7 +11259,7 @@ async function By({
11259
11259
  cache: a = {}
11260
11260
  }) {
11261
11261
  try {
11262
- return $("fs", e), $("gitdir", r), $("oid", n), await Vf({
11262
+ return P("fs", e), P("gitdir", r), P("oid", n), await Vf({
11263
11263
  fs: new K(e),
11264
11264
  cache: a,
11265
11265
  gitdir: r,
@@ -11278,7 +11278,7 @@ async function Kf({
11278
11278
  cache: i = {}
11279
11279
  }) {
11280
11280
  try {
11281
- return $("fs", e), $("gitdir", r), $("oid", n), await fn({
11281
+ return P("fs", e), P("gitdir", r), P("oid", n), await fn({
11282
11282
  fs: new K(e),
11283
11283
  cache: i,
11284
11284
  gitdir: r,
@@ -11295,7 +11295,7 @@ async function jy({
11295
11295
  ref: n = "refs/notes/commits",
11296
11296
  oid: i
11297
11297
  }) {
11298
- const a = await H.resolve({ gitdir: r, fs: e, ref: n }), { blob: o } = await Vf({
11298
+ const a = await U.resolve({ gitdir: r, fs: e, ref: n }), { blob: o } = await Vf({
11299
11299
  fs: e,
11300
11300
  cache: t,
11301
11301
  gitdir: r,
@@ -11313,7 +11313,7 @@ async function zy({
11313
11313
  cache: a = {}
11314
11314
  }) {
11315
11315
  try {
11316
- return $("fs", e), $("gitdir", r), $("ref", n), $("oid", i), await jy({
11316
+ return P("fs", e), P("gitdir", r), P("ref", n), P("oid", i), await jy({
11317
11317
  fs: new K(e),
11318
11318
  cache: a,
11319
11319
  gitdir: r,
@@ -11335,7 +11335,7 @@ async function Ny({
11335
11335
  cache: s = {}
11336
11336
  }) {
11337
11337
  try {
11338
- $("fs", e), $("gitdir", r), $("oid", n);
11338
+ P("fs", e), P("gitdir", r), P("oid", n);
11339
11339
  const l = new K(e);
11340
11340
  a !== void 0 && (n = await vi({
11341
11341
  fs: l,
@@ -11357,7 +11357,7 @@ async function Ny({
11357
11357
  u.object = Ae.from(u.object).parse();
11358
11358
  break;
11359
11359
  case "tree":
11360
- u.object = ut.from(u.object).entries();
11360
+ u.object = ft.from(u.object).entries();
11361
11361
  break;
11362
11362
  case "blob":
11363
11363
  o ? u.object = u.object.toString(o) : (u.object = new Uint8Array(u.object), u.format = "content");
@@ -11403,7 +11403,7 @@ async function Ly({
11403
11403
  cache: i = {}
11404
11404
  }) {
11405
11405
  try {
11406
- return $("fs", e), $("gitdir", r), $("oid", n), await My({
11406
+ return P("fs", e), P("gitdir", r), P("oid", n), await My({
11407
11407
  fs: new K(e),
11408
11408
  cache: i,
11409
11409
  gitdir: r,
@@ -11422,7 +11422,7 @@ async function Fy({
11422
11422
  cache: a = {}
11423
11423
  }) {
11424
11424
  try {
11425
- return $("fs", e), $("gitdir", r), $("oid", n), await Rn({
11425
+ return P("fs", e), P("gitdir", r), P("oid", n), await Rn({
11426
11426
  fs: new K(e),
11427
11427
  cache: a,
11428
11428
  gitdir: r,
@@ -11441,7 +11441,7 @@ async function Uy({
11441
11441
  cache: i = {}
11442
11442
  }) {
11443
11443
  try {
11444
- $("fs", e), $("gitdir", r), $("filepath", n), await Ue.acquire(
11444
+ P("fs", e), P("gitdir", r), P("filepath", n), await Ue.acquire(
11445
11445
  { fs: new K(e), gitdir: r, cache: i },
11446
11446
  async function(a) {
11447
11447
  a.delete({ filepath: n });
@@ -11464,7 +11464,7 @@ async function Hy({
11464
11464
  }) {
11465
11465
  let c;
11466
11466
  try {
11467
- c = await H.resolve({ gitdir: n, fs: e, ref: i });
11467
+ c = await U.resolve({ gitdir: n, fs: e, ref: i });
11468
11468
  } catch (g) {
11469
11469
  if (!(g instanceof ke))
11470
11470
  throw g;
@@ -11508,7 +11508,7 @@ async function Wy({
11508
11508
  cache: c = {}
11509
11509
  }) {
11510
11510
  try {
11511
- $("fs", e), $("gitdir", n), $("oid", a);
11511
+ P("fs", e), P("gitdir", n), P("oid", a);
11512
11512
  const u = new K(e), d = await gr({ fs: u, gitdir: n, author: o });
11513
11513
  if (!d) throw new Je("author");
11514
11514
  const p = await un({
@@ -11545,21 +11545,21 @@ async function qy({
11545
11545
  if (r !== Ft.clean(r))
11546
11546
  throw new Rt(r, Ft.clean(r));
11547
11547
  const a = `refs/heads/${r}`, o = `refs/heads/${n}`;
11548
- if (await H.exists({ fs: e, gitdir: t, ref: o }))
11548
+ if (await U.exists({ fs: e, gitdir: t, ref: o }))
11549
11549
  throw new Pt("branch", n, !1);
11550
- const l = await H.resolve({
11550
+ const l = await U.resolve({
11551
11551
  fs: e,
11552
11552
  gitdir: t,
11553
11553
  ref: a,
11554
11554
  depth: 1
11555
11555
  });
11556
- await H.writeRef({ fs: e, gitdir: t, ref: o, value: l }), await H.deleteRef({ fs: e, gitdir: t, ref: a });
11556
+ await U.writeRef({ fs: e, gitdir: t, ref: o, value: l }), await U.deleteRef({ fs: e, gitdir: t, ref: a });
11557
11557
  const u = await br({
11558
11558
  fs: e,
11559
11559
  gitdir: t,
11560
11560
  fullname: !0
11561
11561
  }) === a;
11562
- (i || u) && await H.writeSymbolicRef({
11562
+ (i || u) && await U.writeSymbolicRef({
11563
11563
  fs: e,
11564
11564
  gitdir: t,
11565
11565
  ref: "HEAD",
@@ -11575,7 +11575,7 @@ async function Gy({
11575
11575
  checkout: a = !1
11576
11576
  }) {
11577
11577
  try {
11578
- return $("fs", e), $("gitdir", r), $("ref", n), $("oldref", i), await qy({
11578
+ return P("fs", e), P("gitdir", r), P("ref", n), P("oldref", i), await qy({
11579
11579
  fs: new K(e),
11580
11580
  gitdir: r,
11581
11581
  ref: n,
@@ -11598,11 +11598,11 @@ async function Yy({
11598
11598
  cache: a = {}
11599
11599
  }) {
11600
11600
  try {
11601
- $("fs", e), $("gitdir", r), $("filepath", n);
11601
+ P("fs", e), P("gitdir", r), P("filepath", n);
11602
11602
  const o = new K(e);
11603
11603
  let s, l;
11604
11604
  try {
11605
- s = await H.resolve({ fs: o, gitdir: r, ref: i || "HEAD" });
11605
+ s = await U.resolve({ fs: o, gitdir: r, ref: i || "HEAD" });
11606
11606
  } catch (d) {
11607
11607
  if (i)
11608
11608
  throw d;
@@ -11649,7 +11649,7 @@ async function Zy({
11649
11649
  depth: i
11650
11650
  }) {
11651
11651
  try {
11652
- return $("fs", e), $("gitdir", r), $("ref", n), await H.resolve({
11652
+ return P("fs", e), P("gitdir", r), P("ref", n), await U.resolve({
11653
11653
  fs: new K(e),
11654
11654
  gitdir: r,
11655
11655
  ref: n,
@@ -11668,7 +11668,7 @@ async function Xy({
11668
11668
  append: a = !1
11669
11669
  }) {
11670
11670
  try {
11671
- $("fs", e), $("gitdir", r), $("path", n);
11671
+ P("fs", e), P("gitdir", r), P("path", n);
11672
11672
  const o = new K(e), s = await Me.get({ fs: o, gitdir: r });
11673
11673
  a ? await s.append(n, i) : await s.set(n, i), await Me.save({ fs: o, gitdir: r, config: s });
11674
11674
  } catch (o) {
@@ -11677,7 +11677,7 @@ async function Xy({
11677
11677
  }
11678
11678
  async function Qf({ fs: e, gitdir: t, commit: r }) {
11679
11679
  const n = Ae.from(r).toObject();
11680
- return await ft({
11680
+ return await dt({
11681
11681
  fs: e,
11682
11682
  gitdir: t,
11683
11683
  type: "commit",
@@ -11715,7 +11715,7 @@ async function Ky(e, t, r, n, i = null) {
11715
11715
  const a = N.join(r, n), o = await e.lstat(a);
11716
11716
  if (!o) throw new ke(a);
11717
11717
  if (o.isDirectory())
11718
- throw new se(
11718
+ throw new ce(
11719
11719
  `${a}: file expected, but found directory`
11720
11720
  );
11721
11721
  const s = i ? await xf({ fs: e, gitdir: t, oid: i }) : void 0;
@@ -11723,7 +11723,7 @@ async function Ky(e, t, r, n, i = null) {
11723
11723
  return s || await dn({ fs: e, gitdir: t, currentFilepath: a }, async () => {
11724
11724
  const c = o.isSymbolicLink() ? await e.readlink(a).then(Cf) : await e.read(a);
11725
11725
  if (c === null) throw new ke(a);
11726
- l = await ft({ fs: e, gitdir: t, type: "blob", object: c });
11726
+ l = await dt({ fs: e, gitdir: t, type: "blob", object: c });
11727
11727
  }), l;
11728
11728
  }
11729
11729
  async function Jy({ fs: e, dir: t, gitdir: r, entries: n }) {
@@ -11928,7 +11928,7 @@ class Vt {
11928
11928
  }) : {};
11929
11929
  }
11930
11930
  async writeStashRef(t) {
11931
- return H.writeRef({
11931
+ return U.writeRef({
11932
11932
  fs: this.fs,
11933
11933
  gitdir: this.gitdir,
11934
11934
  ref: Vt.refStash,
@@ -11960,7 +11960,7 @@ async function eb({ fs: e, dir: t, gitdir: r, message: n = "" }) {
11960
11960
  fs: e,
11961
11961
  gitdir: r,
11962
11962
  fullname: !1
11963
- }), o = await H.resolve({
11963
+ }), o = await U.resolve({
11964
11964
  fs: e,
11965
11965
  gitdir: r,
11966
11966
  ref: "HEAD"
@@ -12085,7 +12085,7 @@ async function ib({
12085
12085
  message: i = "",
12086
12086
  refIdx: a = 0
12087
12087
  }) {
12088
- $("fs", e), $("dir", t), $("gitdir", r), $("op", n);
12088
+ P("fs", e), P("dir", t), P("gitdir", r), P("op", n);
12089
12089
  const o = {
12090
12090
  push: eb,
12091
12091
  apply: ed,
@@ -12121,7 +12121,7 @@ async function ab({
12121
12121
  cache: i = {}
12122
12122
  }) {
12123
12123
  try {
12124
- $("fs", e), $("gitdir", r), $("filepath", n);
12124
+ P("fs", e), P("gitdir", r), P("filepath", n);
12125
12125
  const a = new K(e);
12126
12126
  if (await kn.isIgnored({
12127
12127
  fs: a,
@@ -12189,7 +12189,7 @@ async function rd({ fs: e, cache: t, gitdir: r, tree: n, path: i }) {
12189
12189
  oid: o.oid
12190
12190
  });
12191
12191
  if (s === "tree") {
12192
- const c = ut.from(l);
12192
+ const c = ft.from(l);
12193
12193
  return rd({ fs: e, cache: t, gitdir: r, tree: c, path: i });
12194
12194
  }
12195
12195
  if (s === "blob")
@@ -12200,7 +12200,7 @@ async function rd({ fs: e, cache: t, gitdir: r, tree: n, path: i }) {
12200
12200
  async function ob({ fs: e, cache: t, gitdir: r }) {
12201
12201
  let n;
12202
12202
  try {
12203
- n = await H.resolve({ fs: e, gitdir: r, ref: "HEAD" });
12203
+ n = await U.resolve({ fs: e, gitdir: r, ref: "HEAD" });
12204
12204
  } catch (a) {
12205
12205
  if (a instanceof ke)
12206
12206
  return [];
@@ -12219,7 +12219,7 @@ async function sb({
12219
12219
  ignored: s = !1
12220
12220
  }) {
12221
12221
  try {
12222
- $("fs", e), $("gitdir", r), $("ref", n);
12222
+ P("fs", e), P("gitdir", r), P("ref", n);
12223
12223
  const l = new K(e);
12224
12224
  return await wr({
12225
12225
  fs: l,
@@ -12267,19 +12267,19 @@ async function cb({
12267
12267
  force: a = !1
12268
12268
  }) {
12269
12269
  try {
12270
- $("fs", e), $("gitdir", r), $("ref", n);
12270
+ P("fs", e), P("gitdir", r), P("ref", n);
12271
12271
  const o = new K(e);
12272
12272
  if (n === void 0)
12273
- throw new lt("ref");
12273
+ throw new ut("ref");
12274
12274
  n = n.startsWith("refs/tags/") ? n : `refs/tags/${n}`;
12275
- const s = await H.resolve({
12275
+ const s = await U.resolve({
12276
12276
  fs: o,
12277
12277
  gitdir: r,
12278
12278
  ref: i || "HEAD"
12279
12279
  });
12280
- if (!a && await H.exists({ fs: o, gitdir: r, ref: n }))
12280
+ if (!a && await U.exists({ fs: o, gitdir: r, ref: n }))
12281
12281
  throw new Pt("tag", n);
12282
- await H.writeRef({ fs: o, gitdir: r, ref: n, value: s });
12282
+ await U.writeRef({ fs: o, gitdir: r, ref: n, value: s });
12283
12283
  } catch (o) {
12284
12284
  throw o.caller = "git.tag", o;
12285
12285
  }
@@ -12297,7 +12297,7 @@ async function lb({
12297
12297
  force: c
12298
12298
  }) {
12299
12299
  try {
12300
- $("fs", e), $("gitdir", r), $("filepath", i);
12300
+ P("fs", e), P("gitdir", r), P("filepath", i);
12301
12301
  const u = new K(e);
12302
12302
  if (l)
12303
12303
  return await Ue.acquire(
@@ -12341,7 +12341,7 @@ async function lb({
12341
12341
  if (!a) {
12342
12342
  m = d;
12343
12343
  const g = m.isSymbolicLink() ? await u.readlink(N.join(t, i)) : await u.read(N.join(t, i));
12344
- a = await ft({
12344
+ a = await dt({
12345
12345
  fs: u,
12346
12346
  gitdir: r,
12347
12347
  type: "blob",
@@ -12377,7 +12377,7 @@ async function fb({
12377
12377
  cache: s = {}
12378
12378
  }) {
12379
12379
  try {
12380
- return $("fs", e), $("gitdir", r), $("trees", n), await wr({
12380
+ return P("fs", e), P("gitdir", r), P("trees", n), await wr({
12381
12381
  fs: new K(e),
12382
12382
  cache: s,
12383
12383
  dir: t,
@@ -12393,7 +12393,7 @@ async function fb({
12393
12393
  }
12394
12394
  async function db({ fs: e, dir: t, gitdir: r = N.join(t, ".git"), blob: n }) {
12395
12395
  try {
12396
- return $("fs", e), $("gitdir", r), $("blob", n), await ft({
12396
+ return P("fs", e), P("gitdir", r), P("blob", n), await dt({
12397
12397
  fs: new K(e),
12398
12398
  gitdir: r,
12399
12399
  type: "blob",
@@ -12411,7 +12411,7 @@ async function hb({
12411
12411
  commit: n
12412
12412
  }) {
12413
12413
  try {
12414
- return $("fs", e), $("gitdir", r), $("commit", n), await Qf({
12414
+ return P("fs", e), P("gitdir", r), P("commit", n), await Qf({
12415
12415
  fs: new K(e),
12416
12416
  gitdir: r,
12417
12417
  commit: n
@@ -12438,7 +12438,7 @@ async function pb({
12438
12438
  i = Ae.from(i).toObject();
12439
12439
  break;
12440
12440
  case "tree":
12441
- i = ut.from(i).toObject();
12441
+ i = ft.from(i).toObject();
12442
12442
  break;
12443
12443
  case "blob":
12444
12444
  i = Buffer.from(i, s);
@@ -12451,7 +12451,7 @@ async function pb({
12451
12451
  }
12452
12452
  a = "content";
12453
12453
  }
12454
- return o = await ft({
12454
+ return o = await dt({
12455
12455
  fs: l,
12456
12456
  gitdir: r,
12457
12457
  type: n,
@@ -12473,22 +12473,22 @@ async function mb({
12473
12473
  symbolic: o = !1
12474
12474
  }) {
12475
12475
  try {
12476
- $("fs", e), $("gitdir", r), $("ref", n), $("value", i);
12476
+ P("fs", e), P("gitdir", r), P("ref", n), P("value", i);
12477
12477
  const s = new K(e);
12478
12478
  if (n !== Ft.clean(n))
12479
12479
  throw new Rt(n, Ft.clean(n));
12480
- if (!a && await H.exists({ fs: s, gitdir: r, ref: n }))
12480
+ if (!a && await U.exists({ fs: s, gitdir: r, ref: n }))
12481
12481
  throw new Pt("ref", n);
12482
- o ? await H.writeSymbolicRef({
12482
+ o ? await U.writeSymbolicRef({
12483
12483
  fs: s,
12484
12484
  gitdir: r,
12485
12485
  ref: n,
12486
12486
  value: i
12487
- }) : (i = await H.resolve({
12487
+ }) : (i = await U.resolve({
12488
12488
  fs: s,
12489
12489
  gitdir: r,
12490
12490
  ref: i
12491
- }), await H.writeRef({
12491
+ }), await U.writeRef({
12492
12492
  fs: s,
12493
12493
  gitdir: r,
12494
12494
  ref: n,
@@ -12500,7 +12500,7 @@ async function mb({
12500
12500
  }
12501
12501
  async function wb({ fs: e, gitdir: t, tag: r }) {
12502
12502
  const n = nt.from(r).toObject();
12503
- return await ft({
12503
+ return await dt({
12504
12504
  fs: e,
12505
12505
  gitdir: t,
12506
12506
  type: "tag",
@@ -12510,7 +12510,7 @@ async function wb({ fs: e, gitdir: t, tag: r }) {
12510
12510
  }
12511
12511
  async function gb({ fs: e, dir: t, gitdir: r = N.join(t, ".git"), tag: n }) {
12512
12512
  try {
12513
- return $("fs", e), $("gitdir", r), $("tag", n), await wb({
12513
+ return P("fs", e), P("gitdir", r), P("tag", n), await wb({
12514
12514
  fs: new K(e),
12515
12515
  gitdir: r,
12516
12516
  tag: n
@@ -12521,7 +12521,7 @@ async function gb({ fs: e, dir: t, gitdir: r = N.join(t, ".git"), tag: n }) {
12521
12521
  }
12522
12522
  async function yb({ fs: e, dir: t, gitdir: r = N.join(t, ".git"), tree: n }) {
12523
12523
  try {
12524
- return $("fs", e), $("gitdir", r), $("tree", n), await xi({
12524
+ return P("fs", e), P("gitdir", r), P("tree", n), await xi({
12525
12525
  fs: new K(e),
12526
12526
  gitdir: r,
12527
12527
  tree: n
@@ -13014,8 +13014,8 @@ Se.typeOf = gt;
13014
13014
  ld.exports = Se;
13015
13015
  var zs = ld.exports;
13016
13016
  function Ub(e) {
13017
- function t(F, q, W, ee, I) {
13018
- for (var Q = 0, D = 0, G = 0, X = 0, Y, L, V = 0, te = 0, J, oe = J = Y = 0, re = 0, ne = 0, Ee = 0, _e = 0, yt = W.length, Le = yt - 1, Ce, ie = "", xe = "", On = "", w = "", f; re < yt; ) {
13017
+ function t(F, q, W, ee, B) {
13018
+ for (var Q = 0, D = 0, G = 0, X = 0, Z, L, V = 0, te = 0, J, se = J = Z = 0, re = 0, ne = 0, Ee = 0, _e = 0, yt = W.length, Le = yt - 1, Ce, ie = "", xe = "", On = "", w = "", f; re < yt; ) {
13019
13019
  if (L = W.charCodeAt(re), re === Le && D + X + G + Q !== 0 && (D !== 0 && (L = D === 47 ? 10 : 47), X = G = Q = 0, yt++, Le++), D + X + G + Q === 0) {
13020
13020
  if (re === Le && (0 < ne && (ie = ie.replace(p, "")), 0 < ie.trim().length)) {
13021
13021
  switch (L) {
@@ -13032,7 +13032,7 @@ function Ub(e) {
13032
13032
  }
13033
13033
  switch (L) {
13034
13034
  case 123:
13035
- for (ie = ie.trim(), Y = ie.charCodeAt(0), J = 1, _e = ++re; re < yt; ) {
13035
+ for (ie = ie.trim(), Z = ie.charCodeAt(0), J = 1, _e = ++re; re < yt; ) {
13036
13036
  switch (L = W.charCodeAt(re)) {
13037
13037
  case 123:
13038
13038
  J++;
@@ -13045,21 +13045,21 @@ function Ub(e) {
13045
13045
  case 42:
13046
13046
  case 47:
13047
13047
  e: {
13048
- for (oe = re + 1; oe < Le; ++oe)
13049
- switch (W.charCodeAt(oe)) {
13048
+ for (se = re + 1; se < Le; ++se)
13049
+ switch (W.charCodeAt(se)) {
13050
13050
  case 47:
13051
- if (L === 42 && W.charCodeAt(oe - 1) === 42 && re + 2 !== oe) {
13052
- re = oe + 1;
13051
+ if (L === 42 && W.charCodeAt(se - 1) === 42 && re + 2 !== se) {
13052
+ re = se + 1;
13053
13053
  break e;
13054
13054
  }
13055
13055
  break;
13056
13056
  case 10:
13057
13057
  if (L === 47) {
13058
- re = oe + 1;
13058
+ re = se + 1;
13059
13059
  break e;
13060
13060
  }
13061
13061
  }
13062
- re = oe;
13062
+ re = se;
13063
13063
  }
13064
13064
  }
13065
13065
  break;
@@ -13075,7 +13075,7 @@ function Ub(e) {
13075
13075
  if (J === 0) break;
13076
13076
  re++;
13077
13077
  }
13078
- switch (J = W.substring(_e, re), Y === 0 && (Y = (ie = ie.replace(d, "").trim()).charCodeAt(0)), Y) {
13078
+ switch (J = W.substring(_e, re), Z === 0 && (Z = (ie = ie.replace(d, "").trim()).charCodeAt(0)), Z) {
13079
13079
  case 64:
13080
13080
  switch (0 < ne && (ie = ie.replace(p, "")), L = ie.charCodeAt(1), L) {
13081
13081
  case 100:
@@ -13087,7 +13087,7 @@ function Ub(e) {
13087
13087
  default:
13088
13088
  ne = Pe;
13089
13089
  }
13090
- if (J = t(q, ne, J, L, I + 1), _e = J.length, 0 < be && (ne = r(Pe, ie, Ee), f = s(3, J, ne, q, U, M, _e, L, I, ee), ie = ne.join(""), f !== void 0 && (_e = (J = f.trim()).length) === 0 && (L = 0, J = "")), 0 < _e) switch (L) {
13090
+ if (J = t(q, ne, J, L, B + 1), _e = J.length, 0 < be && (ne = r(Pe, ie, Ee), f = s(3, J, ne, q, H, M, _e, L, B, ee), ie = ne.join(""), f !== void 0 && (_e = (J = f.trim()).length) === 0 && (L = 0, J = "")), 0 < _e) switch (L) {
13091
13091
  case 115:
13092
13092
  ie = ie.replace(C, o);
13093
13093
  case 100:
@@ -13096,7 +13096,7 @@ function Ub(e) {
13096
13096
  J = ie + "{" + J + "}";
13097
13097
  break;
13098
13098
  case 107:
13099
- ie = ie.replace(_, "$1 $2"), J = ie + "{" + J + "}", J = fe === 1 || fe === 2 && a("@" + J, 3) ? "@-webkit-" + J + "@" + J : "@" + J;
13099
+ ie = ie.replace(_, "$1 $2"), J = ie + "{" + J + "}", J = oe === 1 || oe === 2 && a("@" + J, 3) ? "@-webkit-" + J + "@" + J : "@" + J;
13100
13100
  break;
13101
13101
  default:
13102
13102
  J = ie + J, ee === 112 && (J = (xe += J, ""));
@@ -13104,13 +13104,13 @@ function Ub(e) {
13104
13104
  else J = "";
13105
13105
  break;
13106
13106
  default:
13107
- J = t(q, r(q, ie, Ee), J, ee, I + 1);
13107
+ J = t(q, r(q, ie, Ee), J, ee, B + 1);
13108
13108
  }
13109
- On += J, J = Ee = ne = oe = Y = 0, ie = "", L = W.charCodeAt(++re);
13109
+ On += J, J = Ee = ne = se = Z = 0, ie = "", L = W.charCodeAt(++re);
13110
13110
  break;
13111
13111
  case 125:
13112
13112
  case 59:
13113
- if (ie = (0 < ne ? ie.replace(p, "") : ie).trim(), 1 < (_e = ie.length)) switch (oe === 0 && (Y = ie.charCodeAt(0), Y === 45 || 96 < Y && 123 > Y) && (_e = (ie = ie.replace(" ", ":")).length), 0 < be && (f = s(1, ie, q, F, U, M, xe.length, ee, I, ee)) !== void 0 && (_e = (ie = f.trim()).length) === 0 && (ie = "\0\0"), Y = ie.charCodeAt(0), L = ie.charCodeAt(1), Y) {
13113
+ if (ie = (0 < ne ? ie.replace(p, "") : ie).trim(), 1 < (_e = ie.length)) switch (se === 0 && (Z = ie.charCodeAt(0), Z === 45 || 96 < Z && 123 > Z) && (_e = (ie = ie.replace(" ", ":")).length), 0 < be && (f = s(1, ie, q, F, H, M, xe.length, ee, B, ee)) !== void 0 && (_e = (ie = f.trim()).length) === 0 && (ie = "\0\0"), Z = ie.charCodeAt(0), L = ie.charCodeAt(1), Z) {
13114
13114
  case 0:
13115
13115
  break;
13116
13116
  case 64:
@@ -13119,15 +13119,15 @@ function Ub(e) {
13119
13119
  break;
13120
13120
  }
13121
13121
  default:
13122
- ie.charCodeAt(_e - 1) !== 58 && (xe += i(ie, Y, L, ie.charCodeAt(2)));
13122
+ ie.charCodeAt(_e - 1) !== 58 && (xe += i(ie, Z, L, ie.charCodeAt(2)));
13123
13123
  }
13124
- Ee = ne = oe = Y = 0, ie = "", L = W.charCodeAt(++re);
13124
+ Ee = ne = se = Z = 0, ie = "", L = W.charCodeAt(++re);
13125
13125
  }
13126
13126
  }
13127
13127
  switch (L) {
13128
13128
  case 13:
13129
13129
  case 10:
13130
- D === 47 ? D = 0 : 1 + Y === 0 && ee !== 107 && 0 < ie.length && (ne = 1, ie += "\0"), 0 < be * Ze && s(0, ie, q, F, U, M, xe.length, ee, I, ee), M = 1, U++;
13130
+ D === 47 ? D = 0 : 1 + Z === 0 && ee !== 107 && 0 < ie.length && (ne = 1, ie += "\0"), 0 < be * Ze && s(0, ie, q, F, H, M, xe.length, ee, B, ee), M = 1, H++;
13131
13131
  break;
13132
13132
  case 59:
13133
13133
  case 125:
@@ -13163,15 +13163,15 @@ function Ub(e) {
13163
13163
  X + D + Q === 0 && (ne = Ee = 1, Ce = "\f" + Ce);
13164
13164
  break;
13165
13165
  case 108:
13166
- if (X + D + Q + Z === 0 && 0 < oe) switch (re - oe) {
13166
+ if (X + D + Q + Y === 0 && 0 < se) switch (re - se) {
13167
13167
  case 2:
13168
- V === 112 && W.charCodeAt(re - 3) === 58 && (Z = V);
13168
+ V === 112 && W.charCodeAt(re - 3) === 58 && (Y = V);
13169
13169
  case 8:
13170
- te === 111 && (Z = te);
13170
+ te === 111 && (Y = te);
13171
13171
  }
13172
13172
  break;
13173
13173
  case 58:
13174
- X + D + Q === 0 && (oe = re);
13174
+ X + D + Q === 0 && (se = re);
13175
13175
  break;
13176
13176
  case 44:
13177
13177
  D + G + X + Q === 0 && (ne = 1, Ce += "\r");
@@ -13191,17 +13191,17 @@ function Ub(e) {
13191
13191
  break;
13192
13192
  case 40:
13193
13193
  if (X + D + Q === 0) {
13194
- if (Y === 0) switch (2 * V + 3 * te) {
13194
+ if (Z === 0) switch (2 * V + 3 * te) {
13195
13195
  case 533:
13196
13196
  break;
13197
13197
  default:
13198
- Y = 1;
13198
+ Z = 1;
13199
13199
  }
13200
13200
  G++;
13201
13201
  }
13202
13202
  break;
13203
13203
  case 64:
13204
- D + G + X + Q + oe + J === 0 && (J = 1);
13204
+ D + G + X + Q + se + J === 0 && (J = 1);
13205
13205
  break;
13206
13206
  case 42:
13207
13207
  case 47:
@@ -13224,16 +13224,16 @@ function Ub(e) {
13224
13224
  te = V, V = L, re++;
13225
13225
  }
13226
13226
  if (_e = xe.length, 0 < _e) {
13227
- if (ne = q, 0 < be && (f = s(2, xe, ne, F, U, M, _e, ee, I, ee), f !== void 0 && (xe = f).length === 0)) return w + xe + On;
13228
- if (xe = ne.join(",") + "{" + xe + "}", fe * Z !== 0) {
13229
- switch (fe !== 2 || a(xe, 2) || (Z = 0), Z) {
13227
+ if (ne = q, 0 < be && (f = s(2, xe, ne, F, H, M, _e, ee, B, ee), f !== void 0 && (xe = f).length === 0)) return w + xe + On;
13228
+ if (xe = ne.join(",") + "{" + xe + "}", oe * Y !== 0) {
13229
+ switch (oe !== 2 || a(xe, 2) || (Y = 0), Y) {
13230
13230
  case 111:
13231
13231
  xe = xe.replace(O, ":-moz-$1") + xe;
13232
13232
  break;
13233
13233
  case 112:
13234
13234
  xe = xe.replace(R, "::-webkit-input-$1") + xe.replace(R, "::-moz-$1") + xe.replace(R, ":-ms-input-$1") + xe;
13235
13235
  }
13236
- Z = 0;
13236
+ Y = 0;
13237
13237
  }
13238
13238
  }
13239
13239
  return w + xe + On;
@@ -13241,17 +13241,17 @@ function Ub(e) {
13241
13241
  function r(F, q, W) {
13242
13242
  var ee = q.trim().split(v);
13243
13243
  q = ee;
13244
- var I = ee.length, Q = F.length;
13244
+ var B = ee.length, Q = F.length;
13245
13245
  switch (Q) {
13246
13246
  case 0:
13247
13247
  case 1:
13248
13248
  var D = 0;
13249
- for (F = Q === 0 ? "" : F[0] + " "; D < I; ++D)
13249
+ for (F = Q === 0 ? "" : F[0] + " "; D < B; ++D)
13250
13250
  q[D] = n(F, q[D], W).trim();
13251
13251
  break;
13252
13252
  default:
13253
13253
  var G = D = 0;
13254
- for (q = []; D < I; ++D)
13254
+ for (q = []; D < B; ++D)
13255
13255
  for (var X = 0; X < Q; ++X)
13256
13256
  q[G++] = n(F[X] + " ", ee[D], W).trim();
13257
13257
  }
@@ -13270,113 +13270,113 @@ function Ub(e) {
13270
13270
  return F + q;
13271
13271
  }
13272
13272
  function i(F, q, W, ee) {
13273
- var I = F + ";", Q = 2 * q + 3 * W + 4 * ee;
13273
+ var B = F + ";", Q = 2 * q + 3 * W + 4 * ee;
13274
13274
  if (Q === 944) {
13275
- F = I.indexOf(":", 9) + 1;
13276
- var D = I.substring(F, I.length - 1).trim();
13277
- return D = I.substring(0, F).trim() + D + ";", fe === 1 || fe === 2 && a(D, 1) ? "-webkit-" + D + D : D;
13275
+ F = B.indexOf(":", 9) + 1;
13276
+ var D = B.substring(F, B.length - 1).trim();
13277
+ return D = B.substring(0, F).trim() + D + ";", oe === 1 || oe === 2 && a(D, 1) ? "-webkit-" + D + D : D;
13278
13278
  }
13279
- if (fe === 0 || fe === 2 && !a(I, 1)) return I;
13279
+ if (oe === 0 || oe === 2 && !a(B, 1)) return B;
13280
13280
  switch (Q) {
13281
13281
  case 1015:
13282
- return I.charCodeAt(10) === 97 ? "-webkit-" + I + I : I;
13282
+ return B.charCodeAt(10) === 97 ? "-webkit-" + B + B : B;
13283
13283
  case 951:
13284
- return I.charCodeAt(3) === 116 ? "-webkit-" + I + I : I;
13284
+ return B.charCodeAt(3) === 116 ? "-webkit-" + B + B : B;
13285
13285
  case 963:
13286
- return I.charCodeAt(5) === 110 ? "-webkit-" + I + I : I;
13286
+ return B.charCodeAt(5) === 110 ? "-webkit-" + B + B : B;
13287
13287
  case 1009:
13288
- if (I.charCodeAt(4) !== 100) break;
13288
+ if (B.charCodeAt(4) !== 100) break;
13289
13289
  case 969:
13290
13290
  case 942:
13291
- return "-webkit-" + I + I;
13291
+ return "-webkit-" + B + B;
13292
13292
  case 978:
13293
- return "-webkit-" + I + "-moz-" + I + I;
13293
+ return "-webkit-" + B + "-moz-" + B + B;
13294
13294
  case 1019:
13295
13295
  case 983:
13296
- return "-webkit-" + I + "-moz-" + I + "-ms-" + I + I;
13296
+ return "-webkit-" + B + "-moz-" + B + "-ms-" + B + B;
13297
13297
  case 883:
13298
- if (I.charCodeAt(8) === 45) return "-webkit-" + I + I;
13299
- if (0 < I.indexOf("image-set(", 11)) return I.replace(B, "$1-webkit-$2") + I;
13298
+ if (B.charCodeAt(8) === 45) return "-webkit-" + B + B;
13299
+ if (0 < B.indexOf("image-set(", 11)) return B.replace(I, "$1-webkit-$2") + B;
13300
13300
  break;
13301
13301
  case 932:
13302
- if (I.charCodeAt(4) === 45) switch (I.charCodeAt(5)) {
13302
+ if (B.charCodeAt(4) === 45) switch (B.charCodeAt(5)) {
13303
13303
  case 103:
13304
- return "-webkit-box-" + I.replace("-grow", "") + "-webkit-" + I + "-ms-" + I.replace("grow", "positive") + I;
13304
+ return "-webkit-box-" + B.replace("-grow", "") + "-webkit-" + B + "-ms-" + B.replace("grow", "positive") + B;
13305
13305
  case 115:
13306
- return "-webkit-" + I + "-ms-" + I.replace("shrink", "negative") + I;
13306
+ return "-webkit-" + B + "-ms-" + B.replace("shrink", "negative") + B;
13307
13307
  case 98:
13308
- return "-webkit-" + I + "-ms-" + I.replace("basis", "preferred-size") + I;
13308
+ return "-webkit-" + B + "-ms-" + B.replace("basis", "preferred-size") + B;
13309
13309
  }
13310
- return "-webkit-" + I + "-ms-" + I + I;
13310
+ return "-webkit-" + B + "-ms-" + B + B;
13311
13311
  case 964:
13312
- return "-webkit-" + I + "-ms-flex-" + I + I;
13312
+ return "-webkit-" + B + "-ms-flex-" + B + B;
13313
13313
  case 1023:
13314
- if (I.charCodeAt(8) !== 99) break;
13315
- return D = I.substring(I.indexOf(":", 15)).replace("flex-", "").replace("space-between", "justify"), "-webkit-box-pack" + D + "-webkit-" + I + "-ms-flex-pack" + D + I;
13314
+ if (B.charCodeAt(8) !== 99) break;
13315
+ return D = B.substring(B.indexOf(":", 15)).replace("flex-", "").replace("space-between", "justify"), "-webkit-box-pack" + D + "-webkit-" + B + "-ms-flex-pack" + D + B;
13316
13316
  case 1005:
13317
- return g.test(I) ? I.replace(m, ":-webkit-") + I.replace(m, ":-moz-") + I : I;
13317
+ return g.test(B) ? B.replace(m, ":-webkit-") + B.replace(m, ":-moz-") + B : B;
13318
13318
  case 1e3:
13319
- switch (D = I.substring(13).trim(), q = D.indexOf("-") + 1, D.charCodeAt(0) + D.charCodeAt(q)) {
13319
+ switch (D = B.substring(13).trim(), q = D.indexOf("-") + 1, D.charCodeAt(0) + D.charCodeAt(q)) {
13320
13320
  case 226:
13321
- D = I.replace(x, "tb");
13321
+ D = B.replace(x, "tb");
13322
13322
  break;
13323
13323
  case 232:
13324
- D = I.replace(x, "tb-rl");
13324
+ D = B.replace(x, "tb-rl");
13325
13325
  break;
13326
13326
  case 220:
13327
- D = I.replace(x, "lr");
13327
+ D = B.replace(x, "lr");
13328
13328
  break;
13329
13329
  default:
13330
- return I;
13330
+ return B;
13331
13331
  }
13332
- return "-webkit-" + I + "-ms-" + D + I;
13332
+ return "-webkit-" + B + "-ms-" + D + B;
13333
13333
  case 1017:
13334
- if (I.indexOf("sticky", 9) === -1) break;
13334
+ if (B.indexOf("sticky", 9) === -1) break;
13335
13335
  case 975:
13336
- switch (q = (I = F).length - 10, D = (I.charCodeAt(q) === 33 ? I.substring(0, q) : I).substring(F.indexOf(":", 7) + 1).trim(), Q = D.charCodeAt(0) + (D.charCodeAt(7) | 0)) {
13336
+ switch (q = (B = F).length - 10, D = (B.charCodeAt(q) === 33 ? B.substring(0, q) : B).substring(F.indexOf(":", 7) + 1).trim(), Q = D.charCodeAt(0) + (D.charCodeAt(7) | 0)) {
13337
13337
  case 203:
13338
13338
  if (111 > D.charCodeAt(8)) break;
13339
13339
  case 115:
13340
- I = I.replace(D, "-webkit-" + D) + ";" + I;
13340
+ B = B.replace(D, "-webkit-" + D) + ";" + B;
13341
13341
  break;
13342
13342
  case 207:
13343
13343
  case 102:
13344
- I = I.replace(D, "-webkit-" + (102 < Q ? "inline-" : "") + "box") + ";" + I.replace(D, "-webkit-" + D) + ";" + I.replace(D, "-ms-" + D + "box") + ";" + I;
13344
+ B = B.replace(D, "-webkit-" + (102 < Q ? "inline-" : "") + "box") + ";" + B.replace(D, "-webkit-" + D) + ";" + B.replace(D, "-ms-" + D + "box") + ";" + B;
13345
13345
  }
13346
- return I + ";";
13346
+ return B + ";";
13347
13347
  case 938:
13348
- if (I.charCodeAt(5) === 45) switch (I.charCodeAt(6)) {
13348
+ if (B.charCodeAt(5) === 45) switch (B.charCodeAt(6)) {
13349
13349
  case 105:
13350
- return D = I.replace("-items", ""), "-webkit-" + I + "-webkit-box-" + D + "-ms-flex-" + D + I;
13350
+ return D = B.replace("-items", ""), "-webkit-" + B + "-webkit-box-" + D + "-ms-flex-" + D + B;
13351
13351
  case 115:
13352
- return "-webkit-" + I + "-ms-flex-item-" + I.replace(S, "") + I;
13352
+ return "-webkit-" + B + "-ms-flex-item-" + B.replace(S, "") + B;
13353
13353
  default:
13354
- return "-webkit-" + I + "-ms-flex-line-pack" + I.replace("align-content", "").replace(S, "") + I;
13354
+ return "-webkit-" + B + "-ms-flex-line-pack" + B.replace("align-content", "").replace(S, "") + B;
13355
13355
  }
13356
13356
  break;
13357
13357
  case 973:
13358
13358
  case 989:
13359
- if (I.charCodeAt(3) !== 45 || I.charCodeAt(4) === 122) break;
13359
+ if (B.charCodeAt(3) !== 45 || B.charCodeAt(4) === 122) break;
13360
13360
  case 931:
13361
13361
  case 953:
13362
- if (A.test(F) === !0) return (D = F.substring(F.indexOf(":") + 1)).charCodeAt(0) === 115 ? i(F.replace("stretch", "fill-available"), q, W, ee).replace(":fill-available", ":stretch") : I.replace(D, "-webkit-" + D) + I.replace(D, "-moz-" + D.replace("fill-", "")) + I;
13362
+ if (A.test(F) === !0) return (D = F.substring(F.indexOf(":") + 1)).charCodeAt(0) === 115 ? i(F.replace("stretch", "fill-available"), q, W, ee).replace(":fill-available", ":stretch") : B.replace(D, "-webkit-" + D) + B.replace(D, "-moz-" + D.replace("fill-", "")) + B;
13363
13363
  break;
13364
13364
  case 962:
13365
- if (I = "-webkit-" + I + (I.charCodeAt(5) === 102 ? "-ms-" + I : "") + I, W + ee === 211 && I.charCodeAt(13) === 105 && 0 < I.indexOf("transform", 10)) return I.substring(0, I.indexOf(";", 27) + 1).replace(b, "$1-webkit-$2") + I;
13365
+ if (B = "-webkit-" + B + (B.charCodeAt(5) === 102 ? "-ms-" + B : "") + B, W + ee === 211 && B.charCodeAt(13) === 105 && 0 < B.indexOf("transform", 10)) return B.substring(0, B.indexOf(";", 27) + 1).replace(b, "$1-webkit-$2") + B;
13366
13366
  }
13367
- return I;
13367
+ return B;
13368
13368
  }
13369
13369
  function a(F, q) {
13370
13370
  var W = F.indexOf(q === 1 ? ":" : "{"), ee = F.substring(0, q !== 3 ? W : 10);
13371
- return W = F.substring(W + 1, F.length - 1), Ye(q !== 2 ? ee : ee.replace(P, "$1"), W, q);
13371
+ return W = F.substring(W + 1, F.length - 1), Ye(q !== 2 ? ee : ee.replace($, "$1"), W, q);
13372
13372
  }
13373
13373
  function o(F, q) {
13374
13374
  var W = i(q, q.charCodeAt(0), q.charCodeAt(1), q.charCodeAt(2));
13375
13375
  return W !== q + ";" ? W.replace(k, " or ($1)").substring(4) : "(" + q + ")";
13376
13376
  }
13377
- function s(F, q, W, ee, I, Q, D, G, X, Y) {
13377
+ function s(F, q, W, ee, B, Q, D, G, X, Z) {
13378
13378
  for (var L = 0, V = q, te; L < be; ++L)
13379
- switch (te = me[L].call(u, F, V, W, ee, I, Q, D, G, X, Y)) {
13379
+ switch (te = me[L].call(u, F, V, W, ee, B, Q, D, G, X, Z)) {
13380
13380
  case void 0:
13381
13381
  case !1:
13382
13382
  case !0:
@@ -13402,18 +13402,18 @@ function Ub(e) {
13402
13402
  return l;
13403
13403
  }
13404
13404
  function c(F) {
13405
- return F = F.prefix, F !== void 0 && (Ye = null, F ? typeof F != "function" ? fe = 1 : (fe = 2, Ye = F) : fe = 0), c;
13405
+ return F = F.prefix, F !== void 0 && (Ye = null, F ? typeof F != "function" ? oe = 1 : (oe = 2, Ye = F) : oe = 0), c;
13406
13406
  }
13407
13407
  function u(F, q) {
13408
13408
  var W = F;
13409
- if (33 > W.charCodeAt(0) && (W = W.trim()), le = W, W = [le], 0 < be) {
13410
- var ee = s(-1, q, W, W, U, M, 0, 0, 0, 0);
13409
+ if (33 > W.charCodeAt(0) && (W = W.trim()), ue = W, W = [ue], 0 < be) {
13410
+ var ee = s(-1, q, W, W, H, M, 0, 0, 0, 0);
13411
13411
  ee !== void 0 && typeof ee == "string" && (q = ee);
13412
13412
  }
13413
- var I = t(Pe, W, q, 0, 0);
13414
- return 0 < be && (ee = s(-2, I, W, W, U, M, I.length, 0, 0, 0), ee !== void 0 && (I = ee)), le = "", Z = 0, M = U = 1, I;
13413
+ var B = t(Pe, W, q, 0, 0);
13414
+ return 0 < be && (ee = s(-2, B, W, W, H, M, B.length, 0, 0, 0), ee !== void 0 && (B = ee)), ue = "", Y = 0, M = H = 1, B;
13415
13415
  }
13416
- var d = /^\0+/g, p = /[\0\r\f]/g, m = /: */g, g = /zoo|gra/, b = /([,: ])(transform)/g, v = /,\r+?/g, y = /([\t\r\n ])*\f?&/g, _ = /@(k\w+)\s*(\S*)\s*/, R = /::(place)/g, O = /:(read-only)/g, x = /[svh]\w+-[tblr]{2}/, C = /\(\s*(.*)\s*\)/g, k = /([\s\S]*?);/g, S = /-self|flex-/g, P = /[^]*?(:[rp][el]a[\w-]+)[^]*/, A = /stretch|:\s*\w+\-(?:conte|avail)/, B = /([^-])(image-set\()/, M = 1, U = 1, Z = 0, fe = 1, Pe = [], me = [], be = 0, Ye = null, Ze = 0, le = "";
13416
+ var d = /^\0+/g, p = /[\0\r\f]/g, m = /: */g, g = /zoo|gra/, b = /([,: ])(transform)/g, v = /,\r+?/g, y = /([\t\r\n ])*\f?&/g, _ = /@(k\w+)\s*(\S*)\s*/, R = /::(place)/g, O = /:(read-only)/g, x = /[svh]\w+-[tblr]{2}/, C = /\(\s*(.*)\s*\)/g, k = /([\s\S]*?);/g, S = /-self|flex-/g, $ = /[^]*?(:[rp][el]a[\w-]+)[^]*/, A = /stretch|:\s*\w+\-(?:conte|avail)/, I = /([^-])(image-set\()/, M = 1, H = 1, Y = 0, oe = 1, Pe = [], me = [], be = 0, Ye = null, Ze = 0, ue = "";
13417
13417
  return u.use = l, u.set = c, e !== void 0 && c(e), u;
13418
13418
  }
13419
13419
  var Hb = {
@@ -13803,10 +13803,10 @@ function __(e) {
13803
13803
  } catch {
13804
13804
  }
13805
13805
  }
13806
- return function(y, _, R, O, x, C, k, S, P, A) {
13806
+ return function(y, _, R, O, x, C, k, S, $, A) {
13807
13807
  switch (y) {
13808
13808
  case 1:
13809
- if (P === 0 && _.charCodeAt(0) === 64) return b(_ + ";"), "";
13809
+ if ($ === 0 && _.charCodeAt(0) === 64) return b(_ + ";"), "";
13810
13810
  break;
13811
13811
  case 2:
13812
13812
  if (S === 0) return _ + "/*|*/";
@@ -13948,26 +13948,26 @@ function _d(e, t, r) {
13948
13948
  } : e.shouldForwardProp);
13949
13949
  var g, b = new g_(r, d, n ? e.componentStyle : void 0), v = b.isStatic && o.length === 0, y = function(_, R) {
13950
13950
  return function(O, x, C, k) {
13951
- var S = O.attrs, P = O.componentStyle, A = O.defaultProps, B = O.foldedComponentIds, M = O.shouldForwardProp, U = O.styledComponentId, Z = O.target, fe = function(ee, I, Q) {
13951
+ var S = O.attrs, $ = O.componentStyle, A = O.defaultProps, I = O.foldedComponentIds, M = O.shouldForwardProp, H = O.styledComponentId, Y = O.target, oe = function(ee, B, Q) {
13952
13952
  ee === void 0 && (ee = hr);
13953
- var D = Xt({}, I, { theme: ee }), G = {};
13953
+ var D = Xt({}, B, { theme: ee }), G = {};
13954
13954
  return Q.forEach(function(X) {
13955
- var Y, L, V, te = X;
13956
- for (Y in Kn(te) && (te = te(D)), te) D[Y] = G[Y] = Y === "className" ? (L = G[Y], V = te[Y], L && V ? L + " " + V : L || V) : te[Y];
13955
+ var Z, L, V, te = X;
13956
+ for (Z in Kn(te) && (te = te(D)), te) D[Z] = G[Z] = Z === "className" ? (L = G[Z], V = te[Z], L && V ? L + " " + V : L || V) : te[Z];
13957
13957
  }), [D, G];
13958
- }($_(x, Jn(bd), A) || hr, x, S), Pe = fe[0], me = fe[1], be = function(ee, I, Q, D) {
13959
- var G = x_(), X = E_(), Y = I ? ee.generateAndInjectStyles(hr, G, X) : ee.generateAndInjectStyles(Q, G, X);
13960
- return Y;
13961
- }(P, k, Pe), Ye = C, Ze = me.$as || x.$as || me.as || x.as || Z, le = zi(Ze), F = me !== x ? Xt({}, x, {}, me) : x, q = {};
13962
- for (var W in F) W[0] !== "$" && W !== "as" && (W === "forwardedAs" ? q.as = F[W] : (M ? M(W, zl, Ze) : !le || zl(W)) && (q[W] = F[W]));
13963
- return x.style && me.style !== x.style && (q.style = Xt({}, x.style, {}, me.style)), q.className = Array.prototype.concat(B, U, be !== U ? be : null, x.className, me.className).filter(Boolean).join(" "), q.ref = Ye, ph(Ze, q);
13958
+ }($_(x, Jn(bd), A) || hr, x, S), Pe = oe[0], me = oe[1], be = function(ee, B, Q, D) {
13959
+ var G = x_(), X = E_(), Z = B ? ee.generateAndInjectStyles(hr, G, X) : ee.generateAndInjectStyles(Q, G, X);
13960
+ return Z;
13961
+ }($, k, Pe), Ye = C, Ze = me.$as || x.$as || me.as || x.as || Y, ue = zi(Ze), F = me !== x ? Xt({}, x, {}, me) : x, q = {};
13962
+ for (var W in F) W[0] !== "$" && W !== "as" && (W === "forwardedAs" ? q.as = F[W] : (M ? M(W, zl, Ze) : !ue || zl(W)) && (q[W] = F[W]));
13963
+ return x.style && me.style !== x.style && (q.style = Xt({}, x.style, {}, me.style)), q.className = Array.prototype.concat(I, H, be !== H ? be : null, x.className, me.className).filter(Boolean).join(" "), q.ref = Ye, ph(Ze, q);
13964
13964
  }(g, _, R, v);
13965
13965
  };
13966
13966
  return y.displayName = u, (g = Oe.forwardRef(y)).attrs = p, g.componentStyle = b, g.displayName = u, g.shouldForwardProp = m, g.foldedComponentIds = n ? Array.prototype.concat(e.foldedComponentIds, e.styledComponentId) : fa, g.styledComponentId = d, g.target = n ? e.target : e, g.withComponent = function(_) {
13967
13967
  var R = t.componentId, O = function(C, k) {
13968
13968
  if (C == null) return {};
13969
- var S, P, A = {}, B = Object.keys(C);
13970
- for (P = 0; P < B.length; P++) S = B[P], k.indexOf(S) >= 0 || (A[S] = C[S]);
13969
+ var S, $, A = {}, I = Object.keys(C);
13970
+ for ($ = 0; $ < I.length; $++) S = I[$], k.indexOf(S) >= 0 || (A[S] = C[S]);
13971
13971
  return A;
13972
13972
  }(t, ["componentId"]), x = R && R + "-" + (zi(_) ? _ : So(Ul(_)));
13973
13973
  return _d(_, Xt({}, O, { attrs: p, componentId: x }), r);
@@ -14028,7 +14028,7 @@ const j_ = yr.div`
14028
14028
  throw new Error("useAPI must be used within an APIProvider");
14029
14029
  return e;
14030
14030
  }, M_ = ({ children: e }) => {
14031
- const [t, r] = ht(0), n = hc(
14031
+ const [t, r] = ct(0), n = hc(
14032
14032
  async (a) => {
14033
14033
  r((o) => o + 1);
14034
14034
  try {
@@ -14079,7 +14079,7 @@ const j_ = yr.div`
14079
14079
  const t = e;
14080
14080
  return {
14081
14081
  createProject: async (k, S) => {
14082
- const P = {
14082
+ const $ = {
14083
14083
  description: k,
14084
14084
  component_namespace: S
14085
14085
  };
@@ -14088,7 +14088,7 @@ const j_ = yr.div`
14088
14088
  headers: {
14089
14089
  "Content-Type": "application/json"
14090
14090
  },
14091
- body: JSON.stringify(P)
14091
+ body: JSON.stringify($)
14092
14092
  });
14093
14093
  },
14094
14094
  getProjects: async () => await fetch(`${t}/fetch_projects`, {
@@ -14107,7 +14107,7 @@ const j_ = yr.div`
14107
14107
  }
14108
14108
  ),
14109
14109
  allocateSubdomain: async (k, S) => {
14110
- const P = {
14110
+ const $ = {
14111
14111
  project_name: k,
14112
14112
  subdomain: S
14113
14113
  };
@@ -14116,11 +14116,11 @@ const j_ = yr.div`
14116
14116
  headers: {
14117
14117
  "Content-Type": "application/json"
14118
14118
  },
14119
- body: JSON.stringify(P)
14119
+ body: JSON.stringify($)
14120
14120
  });
14121
14121
  },
14122
14122
  updateSubdomain: async (k, S) => {
14123
- const P = {
14123
+ const $ = {
14124
14124
  project_name: k,
14125
14125
  subdomain: S
14126
14126
  };
@@ -14129,11 +14129,11 @@ const j_ = yr.div`
14129
14129
  headers: {
14130
14130
  "Content-Type": "application/json"
14131
14131
  },
14132
- body: JSON.stringify(P)
14132
+ body: JSON.stringify($)
14133
14133
  });
14134
14134
  },
14135
14135
  releaseSubdomain: async (k, S) => {
14136
- const P = {
14136
+ const $ = {
14137
14137
  project_name: k,
14138
14138
  subdomain: S
14139
14139
  };
@@ -14142,11 +14142,11 @@ const j_ = yr.div`
14142
14142
  headers: {
14143
14143
  "Content-Type": "application/json"
14144
14144
  },
14145
- body: JSON.stringify(P)
14145
+ body: JSON.stringify($)
14146
14146
  });
14147
14147
  },
14148
14148
  publishProject: async (k, S) => {
14149
- const P = {
14149
+ const $ = {
14150
14150
  project_name: k,
14151
14151
  git_ref: S
14152
14152
  };
@@ -14155,7 +14155,7 @@ const j_ = yr.div`
14155
14155
  headers: {
14156
14156
  "Content-Type": "application/json"
14157
14157
  },
14158
- body: JSON.stringify(P)
14158
+ body: JSON.stringify($)
14159
14159
  });
14160
14160
  },
14161
14161
  unpublishProject: async (k) => {
@@ -14170,11 +14170,11 @@ const j_ = yr.div`
14170
14170
  body: JSON.stringify(S)
14171
14171
  });
14172
14172
  },
14173
- tagCommit: async (k, S, P) => {
14173
+ tagCommit: async (k, S, $) => {
14174
14174
  const A = {
14175
14175
  project_name: k,
14176
14176
  commit_hash: S,
14177
- tag_name: P
14177
+ tag_name: $
14178
14178
  };
14179
14179
  return await fetch(`${t}/tag_project_commit`, {
14180
14180
  method: "POST",
@@ -14193,11 +14193,11 @@ const j_ = yr.div`
14193
14193
  }
14194
14194
  }
14195
14195
  ),
14196
- addProjectComponent: async (k, S, P, A) => {
14197
- const B = {
14196
+ addProjectComponent: async (k, S, $, A) => {
14197
+ const I = {
14198
14198
  project_name: k,
14199
14199
  component_namespace: S,
14200
- component_name: P,
14200
+ component_name: $,
14201
14201
  layout_metadata: A
14202
14202
  };
14203
14203
  return await fetch(`${t}/add_project_component`, {
@@ -14205,14 +14205,14 @@ const j_ = yr.div`
14205
14205
  headers: {
14206
14206
  "Content-Type": "application/json"
14207
14207
  },
14208
- body: JSON.stringify(B)
14208
+ body: JSON.stringify(I)
14209
14209
  });
14210
14210
  },
14211
- addProjectChart: async (k, S, P) => {
14211
+ addProjectChart: async (k, S, $) => {
14212
14212
  const A = {
14213
14213
  project_name: k,
14214
14214
  visual_id: S,
14215
- layout_metadata: P
14215
+ layout_metadata: $
14216
14216
  };
14217
14217
  return await fetch(`${t}/add_project_chart`, {
14218
14218
  method: "POST",
@@ -14222,11 +14222,11 @@ const j_ = yr.div`
14222
14222
  body: JSON.stringify(A)
14223
14223
  });
14224
14224
  },
14225
- updateProjectComponentLayoutMetadata: async (k, S, P) => {
14225
+ updateProjectComponentLayoutMetadata: async (k, S, $) => {
14226
14226
  const A = {
14227
14227
  project_name: k,
14228
14228
  component_id: S,
14229
- layout_metadata: P
14229
+ layout_metadata: $
14230
14230
  };
14231
14231
  return await fetch(
14232
14232
  `${t}/update_project_component_layout_metadata`,
@@ -14239,11 +14239,11 @@ const j_ = yr.div`
14239
14239
  }
14240
14240
  );
14241
14241
  },
14242
- updateProjectComponentSourceCode: async (k, S, P) => {
14242
+ updateProjectComponentSourceCode: async (k, S, $) => {
14243
14243
  const A = {
14244
14244
  project_name: k,
14245
14245
  component_id: S,
14246
- source_code: P
14246
+ source_code: $
14247
14247
  };
14248
14248
  return await fetch(`${t}/update_project_component_source_code`, {
14249
14249
  method: "POST",
@@ -14253,11 +14253,11 @@ const j_ = yr.div`
14253
14253
  body: JSON.stringify(A)
14254
14254
  });
14255
14255
  },
14256
- updateApplicationMetadata: async (k, S, P, A) => {
14257
- const B = {
14256
+ updateApplicationMetadata: async (k, S, $, A) => {
14257
+ const I = {
14258
14258
  project_name: k,
14259
14259
  application_name: S,
14260
- application_description: P,
14260
+ application_description: $,
14261
14261
  application_category: A
14262
14262
  };
14263
14263
  return await fetch(`${t}/update_application_metadata`, {
@@ -14265,11 +14265,11 @@ const j_ = yr.div`
14265
14265
  headers: {
14266
14266
  "Content-Type": "application/json"
14267
14267
  },
14268
- body: JSON.stringify(B)
14268
+ body: JSON.stringify(I)
14269
14269
  });
14270
14270
  },
14271
14271
  updateApplicationSettings: async (k, S) => {
14272
- const P = {
14272
+ const $ = {
14273
14273
  project_name: k,
14274
14274
  application_login_enabled: S
14275
14275
  };
@@ -14278,11 +14278,11 @@ const j_ = yr.div`
14278
14278
  headers: {
14279
14279
  "Content-Type": "application/json"
14280
14280
  },
14281
- body: JSON.stringify(P)
14281
+ body: JSON.stringify($)
14282
14282
  });
14283
14283
  },
14284
14284
  deleteProjectFile: async (k, S) => {
14285
- const P = {
14285
+ const $ = {
14286
14286
  project_name: k,
14287
14287
  file_path: S
14288
14288
  };
@@ -14291,16 +14291,16 @@ const j_ = yr.div`
14291
14291
  headers: {
14292
14292
  "Content-Type": "application/json"
14293
14293
  },
14294
- body: JSON.stringify(P)
14294
+ body: JSON.stringify($)
14295
14295
  });
14296
14296
  },
14297
- resetProjectFile: async (k, S, P, A, B) => {
14297
+ resetProjectFile: async (k, S, $, A, I) => {
14298
14298
  let M = {
14299
14299
  project_name: k,
14300
14300
  file_path: S,
14301
- git_ref: P
14301
+ git_ref: $
14302
14302
  };
14303
- return A && (M.prune = A), B && (M.extra_metadata = B), await fetch(`${t}/reset_project_file`, {
14303
+ return A && (M.prune = A), I && (M.extra_metadata = I), await fetch(`${t}/reset_project_file`, {
14304
14304
  method: "POST",
14305
14305
  headers: {
14306
14306
  "Content-Type": "application/json"
@@ -14320,11 +14320,11 @@ const j_ = yr.div`
14320
14320
  body: JSON.stringify(S)
14321
14321
  });
14322
14322
  },
14323
- requestErrorCorrection: async (k, S, P) => {
14323
+ requestErrorCorrection: async (k, S, $) => {
14324
14324
  const A = {
14325
14325
  project_name: k,
14326
14326
  component_id: S,
14327
- error_message: P
14327
+ error_message: $
14328
14328
  };
14329
14329
  return await fetch(`${t}/error_correction`, {
14330
14330
  method: "POST",
@@ -14425,40 +14425,40 @@ const q_ = (e) => {
14425
14425
  }, Us = fu(null);
14426
14426
  Us.Consumer;
14427
14427
  const G_ = (e) => {
14428
- const [t, r] = ht({
14428
+ const [t, r] = ct({
14429
14429
  projectName: null,
14430
14430
  projectURL: null
14431
- }), [n, i] = ht({
14431
+ }), [n, i] = ct({
14432
14432
  API_BASE_URL: null,
14433
14433
  WS_BASE_URL: null,
14434
14434
  GW_BASE_URL: null
14435
- }), [a, o] = ht(
14435
+ }), [a, o] = ct(
14436
14436
  () => Zl(e.config.GW_BASE_URL)
14437
- ), [s, l] = ht(""), [c, u] = ht(""), [d, p] = ht(""), [m, g] = ht(Vl()), b = q_(e.config.API_BASE_URL), v = Ed(e.config.API_BASE_URL), y = b || v, [_, R] = ht(), [O, x] = ht(!1), C = () => {
14438
- g(Vl());
14439
- }, k = (S, P) => {
14440
- if (!S) return;
14441
- _ && (_.close(), x(!1));
14442
- const A = localStorage.getItem("accessToken") || "", B = `${n.WS_BASE_URL}/ws/chat/${S}?token=${A}`;
14443
- if (!B.startsWith("ws://") && !B.startsWith("wss://")) {
14444
- P.onerror({
14437
+ ), [s, l] = ct(!1), [c, u] = ct(""), [d, p] = ct(""), [m, g] = ct(""), [b, v] = ct(Vl()), y = q_(e.config.API_BASE_URL), _ = Ed(e.config.API_BASE_URL), R = y || _, [O, x] = ct(), [C, k] = ct(!1), S = () => {
14438
+ v(Vl());
14439
+ }, $ = (A, I) => {
14440
+ if (!A) return;
14441
+ O && (O.close(), k(!1));
14442
+ const M = localStorage.getItem("accessToken") || "", H = `${n.WS_BASE_URL}/ws/chat/${A}?token=${M}`;
14443
+ if (!H.startsWith("ws://") && !H.startsWith("wss://")) {
14444
+ I.onerror({
14445
14445
  customWebsocketError: "INVALID_URL"
14446
14446
  });
14447
14447
  return;
14448
14448
  }
14449
- const M = new WebSocket(B);
14450
- M.onopen = () => {
14451
- x(!0), P.onopen();
14452
- }, M.onclose = (U) => {
14453
- x(!1), P.onclose(U);
14454
- }, M.onerror = (U) => {
14455
- P.onerror(U);
14456
- }, M.onmessage = (U) => {
14457
- P.onmessage(U);
14458
- }, R(M);
14449
+ const Y = new WebSocket(H);
14450
+ Y.onopen = () => {
14451
+ k(!0), I.onopen();
14452
+ }, Y.onclose = (oe) => {
14453
+ k(!1), I.onclose(oe);
14454
+ }, Y.onerror = (oe) => {
14455
+ I.onerror(oe);
14456
+ }, Y.onmessage = (oe) => {
14457
+ I.onmessage(oe);
14458
+ }, x(Y);
14459
14459
  };
14460
14460
  return du(() => (i(e.config), o(Zl(e.config.GW_BASE_URL)), e.metadata && r(e.metadata), () => {
14461
- _ && _.close();
14461
+ O && O.close();
14462
14462
  }), [e.config]), /* @__PURE__ */ ge.jsx(
14463
14463
  Us.Provider,
14464
14464
  {
@@ -14466,19 +14466,21 @@ const G_ = (e) => {
14466
14466
  config: n,
14467
14467
  projectMetadata: t,
14468
14468
  setProjectMetadata: r,
14469
- syncToken: m,
14470
- setSyncToken: C,
14471
- selectedComponentId: s,
14472
- setSelectedComponentId: l,
14473
- selectedComponentXPath: c,
14474
- setSelectedComponentXPath: u,
14475
- selectedComponentHTML: d,
14476
- setSelectedComponentHTML: p,
14477
- APIHandler: y,
14469
+ syncToken: b,
14470
+ setSyncToken: S,
14471
+ selectedComponentId: c,
14472
+ setSelectedComponentId: u,
14473
+ selectedComponentXPath: d,
14474
+ setSelectedComponentXPath: p,
14475
+ selectedComponentHTML: m,
14476
+ setSelectedComponentHTML: g,
14477
+ isComponentSubselected: s,
14478
+ setIsComponentSubselected: l,
14479
+ APIHandler: R,
14478
14480
  gwAPIHandler: a,
14479
- startChatbot: k,
14480
- chatbotWebsocket: _,
14481
- chatbotWebsocketConnected: O
14481
+ startChatbot: $,
14482
+ chatbotWebsocket: O,
14483
+ chatbotWebsocketConnected: C
14482
14484
  },
14483
14485
  children: e.children
14484
14486
  }
@@ -14674,28 +14676,28 @@ var kd = { exports: {} }, Ri = {}, es = { exports: {} };
14674
14676
  n(t);
14675
14677
  })(Hi, function(r) {
14676
14678
  function n(D) {
14677
- return function(X, Y, L, V, te, J, oe) {
14678
- return D(X, Y, oe);
14679
+ return function(X, Z, L, V, te, J, se) {
14680
+ return D(X, Z, se);
14679
14681
  };
14680
14682
  }
14681
14683
  function i(D) {
14682
- return function(X, Y, L, V) {
14683
- if (!X || !Y || typeof X != "object" || typeof Y != "object")
14684
- return D(X, Y, L, V);
14685
- var te = V.get(X), J = V.get(Y);
14684
+ return function(X, Z, L, V) {
14685
+ if (!X || !Z || typeof X != "object" || typeof Z != "object")
14686
+ return D(X, Z, L, V);
14687
+ var te = V.get(X), J = V.get(Z);
14686
14688
  if (te && J)
14687
- return te === Y && J === X;
14688
- V.set(X, Y), V.set(Y, X);
14689
- var oe = D(X, Y, L, V);
14690
- return V.delete(X), V.delete(Y), oe;
14689
+ return te === Z && J === X;
14690
+ V.set(X, Z), V.set(Z, X);
14691
+ var se = D(X, Z, L, V);
14692
+ return V.delete(X), V.delete(Z), se;
14691
14693
  };
14692
14694
  }
14693
14695
  function a(D, G) {
14694
14696
  var X = {};
14695
- for (var Y in D)
14696
- X[Y] = D[Y];
14697
- for (var Y in G)
14698
- X[Y] = G[Y];
14697
+ for (var Z in D)
14698
+ X[Z] = D[Z];
14699
+ for (var Z in G)
14700
+ X[Z] = G[Z];
14699
14701
  return X;
14700
14702
  }
14701
14703
  function o(D) {
@@ -14709,28 +14711,28 @@ var kd = { exports: {} }, Ri = {}, es = { exports: {} };
14709
14711
  }
14710
14712
  var c = "[object Arguments]", u = "[object Boolean]", d = "[object Date]", p = "[object RegExp]", m = "[object Map]", g = "[object Number]", b = "[object Object]", v = "[object Set]", y = "[object String]", _ = Object.prototype.toString;
14711
14713
  function R(D) {
14712
- var G = D.areArraysEqual, X = D.areDatesEqual, Y = D.areMapsEqual, L = D.areObjectsEqual, V = D.areRegExpsEqual, te = D.areSetsEqual, J = D.createIsNestedEqual, oe = J(re);
14714
+ var G = D.areArraysEqual, X = D.areDatesEqual, Z = D.areMapsEqual, L = D.areObjectsEqual, V = D.areRegExpsEqual, te = D.areSetsEqual, J = D.createIsNestedEqual, se = J(re);
14713
14715
  function re(ne, Ee, _e) {
14714
14716
  if (ne === Ee)
14715
14717
  return !0;
14716
14718
  if (!ne || !Ee || typeof ne != "object" || typeof Ee != "object")
14717
14719
  return ne !== ne && Ee !== Ee;
14718
14720
  if (o(ne) && o(Ee))
14719
- return L(ne, Ee, oe, _e);
14721
+ return L(ne, Ee, se, _e);
14720
14722
  var yt = Array.isArray(ne), Le = Array.isArray(Ee);
14721
14723
  if (yt || Le)
14722
- return yt === Le && G(ne, Ee, oe, _e);
14724
+ return yt === Le && G(ne, Ee, se, _e);
14723
14725
  var Ce = _.call(ne);
14724
- return Ce !== _.call(Ee) ? !1 : Ce === d ? X(ne, Ee, oe, _e) : Ce === p ? V(ne, Ee, oe, _e) : Ce === m ? Y(ne, Ee, oe, _e) : Ce === v ? te(ne, Ee, oe, _e) : Ce === b || Ce === c ? s(ne) || s(Ee) ? !1 : L(ne, Ee, oe, _e) : Ce === u || Ce === g || Ce === y ? l(ne.valueOf(), Ee.valueOf()) : !1;
14726
+ return Ce !== _.call(Ee) ? !1 : Ce === d ? X(ne, Ee, se, _e) : Ce === p ? V(ne, Ee, se, _e) : Ce === m ? Z(ne, Ee, se, _e) : Ce === v ? te(ne, Ee, se, _e) : Ce === b || Ce === c ? s(ne) || s(Ee) ? !1 : L(ne, Ee, se, _e) : Ce === u || Ce === g || Ce === y ? l(ne.valueOf(), Ee.valueOf()) : !1;
14725
14727
  }
14726
14728
  return re;
14727
14729
  }
14728
- function O(D, G, X, Y) {
14730
+ function O(D, G, X, Z) {
14729
14731
  var L = D.length;
14730
14732
  if (G.length !== L)
14731
14733
  return !1;
14732
14734
  for (; L-- > 0; )
14733
- if (!X(D[L], G[L], L, L, D, G, Y))
14735
+ if (!X(D[L], G[L], L, L, D, G, Z))
14734
14736
  return !1;
14735
14737
  return !0;
14736
14738
  }
@@ -14738,43 +14740,43 @@ var kd = { exports: {} }, Ri = {}, es = { exports: {} };
14738
14740
  function C(D, G) {
14739
14741
  return l(D.valueOf(), G.valueOf());
14740
14742
  }
14741
- function k(D, G, X, Y) {
14743
+ function k(D, G, X, Z) {
14742
14744
  var L = D.size === G.size;
14743
14745
  if (!L)
14744
14746
  return !1;
14745
14747
  if (!D.size)
14746
14748
  return !0;
14747
14749
  var V = {}, te = 0;
14748
- return D.forEach(function(J, oe) {
14750
+ return D.forEach(function(J, se) {
14749
14751
  if (L) {
14750
14752
  var re = !1, ne = 0;
14751
14753
  G.forEach(function(Ee, _e) {
14752
- !re && !V[ne] && (re = X(oe, _e, te, ne, D, G, Y) && X(J, Ee, oe, _e, D, G, Y)) && (V[ne] = !0), ne++;
14754
+ !re && !V[ne] && (re = X(se, _e, te, ne, D, G, Z) && X(J, Ee, se, _e, D, G, Z)) && (V[ne] = !0), ne++;
14753
14755
  }), te++, L = re;
14754
14756
  }
14755
14757
  }), L;
14756
14758
  }
14757
- var S = i(k), P = "_owner", A = Object.prototype.hasOwnProperty;
14758
- function B(D, G, X, Y) {
14759
+ var S = i(k), $ = "_owner", A = Object.prototype.hasOwnProperty;
14760
+ function I(D, G, X, Z) {
14759
14761
  var L = Object.keys(D), V = L.length;
14760
14762
  if (Object.keys(G).length !== V)
14761
14763
  return !1;
14762
14764
  for (var te; V-- > 0; ) {
14763
- if (te = L[V], te === P) {
14764
- var J = !!D.$$typeof, oe = !!G.$$typeof;
14765
- if ((J || oe) && J !== oe)
14765
+ if (te = L[V], te === $) {
14766
+ var J = !!D.$$typeof, se = !!G.$$typeof;
14767
+ if ((J || se) && J !== se)
14766
14768
  return !1;
14767
14769
  }
14768
- if (!A.call(G, te) || !X(D[te], G[te], te, te, D, G, Y))
14770
+ if (!A.call(G, te) || !X(D[te], G[te], te, te, D, G, Z))
14769
14771
  return !1;
14770
14772
  }
14771
14773
  return !0;
14772
14774
  }
14773
- var M = i(B);
14774
- function U(D, G) {
14775
+ var M = i(I);
14776
+ function H(D, G) {
14775
14777
  return D.source === G.source && D.flags === G.flags;
14776
14778
  }
14777
- function Z(D, G, X, Y) {
14779
+ function Y(D, G, X, Z) {
14778
14780
  var L = D.size === G.size;
14779
14781
  if (!L)
14780
14782
  return !1;
@@ -14783,28 +14785,28 @@ var kd = { exports: {} }, Ri = {}, es = { exports: {} };
14783
14785
  var V = {};
14784
14786
  return D.forEach(function(te, J) {
14785
14787
  if (L) {
14786
- var oe = !1, re = 0;
14788
+ var se = !1, re = 0;
14787
14789
  G.forEach(function(ne, Ee) {
14788
- !oe && !V[re] && (oe = X(te, ne, J, Ee, D, G, Y)) && (V[re] = !0), re++;
14789
- }), L = oe;
14790
+ !se && !V[re] && (se = X(te, ne, J, Ee, D, G, Z)) && (V[re] = !0), re++;
14791
+ }), L = se;
14790
14792
  }
14791
14793
  }), L;
14792
14794
  }
14793
- var fe = i(Z), Pe = Object.freeze({
14795
+ var oe = i(Y), Pe = Object.freeze({
14794
14796
  areArraysEqual: O,
14795
14797
  areDatesEqual: C,
14796
14798
  areMapsEqual: k,
14797
- areObjectsEqual: B,
14798
- areRegExpsEqual: U,
14799
- areSetsEqual: Z,
14799
+ areObjectsEqual: I,
14800
+ areRegExpsEqual: H,
14801
+ areSetsEqual: Y,
14800
14802
  createIsNestedEqual: n
14801
14803
  }), me = Object.freeze({
14802
14804
  areArraysEqual: x,
14803
14805
  areDatesEqual: C,
14804
14806
  areMapsEqual: S,
14805
14807
  areObjectsEqual: M,
14806
- areRegExpsEqual: U,
14807
- areSetsEqual: fe,
14808
+ areRegExpsEqual: H,
14809
+ areSetsEqual: oe,
14808
14810
  createIsNestedEqual: n
14809
14811
  }), be = R(Pe);
14810
14812
  function Ye(D, G) {
@@ -14813,7 +14815,7 @@ var kd = { exports: {} }, Ri = {}, es = { exports: {} };
14813
14815
  var Ze = R(a(Pe, { createIsNestedEqual: function() {
14814
14816
  return l;
14815
14817
  } }));
14816
- function le(D, G) {
14818
+ function ue(D, G) {
14817
14819
  return Ze(D, G, void 0);
14818
14820
  }
14819
14821
  var F = R(me);
@@ -14828,16 +14830,16 @@ var kd = { exports: {} }, Ri = {}, es = { exports: {} };
14828
14830
  function ee(D, G) {
14829
14831
  return W(D, G, /* @__PURE__ */ new WeakMap());
14830
14832
  }
14831
- function I(D) {
14833
+ function B(D) {
14832
14834
  return R(a(Pe, D(Pe)));
14833
14835
  }
14834
14836
  function Q(D) {
14835
14837
  var G = R(a(me, D(me)));
14836
- return function(X, Y, L) {
14837
- return L === void 0 && (L = /* @__PURE__ */ new WeakMap()), G(X, Y, L);
14838
+ return function(X, Z, L) {
14839
+ return L === void 0 && (L = /* @__PURE__ */ new WeakMap()), G(X, Z, L);
14838
14840
  };
14839
14841
  }
14840
- r.circularDeepEqual = q, r.circularShallowEqual = ee, r.createCustomCircularEqual = Q, r.createCustomEqual = I, r.deepEqual = Ye, r.sameValueZeroEqual = l, r.shallowEqual = le, Object.defineProperty(r, "__esModule", { value: !0 });
14842
+ r.circularDeepEqual = q, r.circularShallowEqual = ee, r.createCustomCircularEqual = Q, r.createCustomEqual = B, r.deepEqual = Ye, r.sameValueZeroEqual = l, r.shallowEqual = ue, Object.defineProperty(r, "__esModule", { value: !0 });
14841
14843
  });
14842
14844
  })(es, es.exports);
14843
14845
  var Hs = es.exports, ts = { exports: {} };
@@ -15575,7 +15577,7 @@ qt.createDraggableData = Jv;
15575
15577
  qt.getBoundPosition = Gv;
15576
15578
  qt.getControlPosition = Vv;
15577
15579
  qt.snapToGrid = Yv;
15578
- var dt = Wt, Kr = je;
15580
+ var ht = Wt, Kr = je;
15579
15581
  function Gv(e, t, r) {
15580
15582
  if (!e.props.bounds) return [t, r];
15581
15583
  let {
@@ -15592,13 +15594,13 @@ function Gv(e, t, r) {
15592
15594
  throw new Error('Bounds selector "' + n + '" could not find an element.');
15593
15595
  const l = s, c = o.getComputedStyle(i), u = o.getComputedStyle(l);
15594
15596
  n = {
15595
- left: -i.offsetLeft + (0, dt.int)(u.paddingLeft) + (0, dt.int)(c.marginLeft),
15596
- top: -i.offsetTop + (0, dt.int)(u.paddingTop) + (0, dt.int)(c.marginTop),
15597
- right: (0, Kr.innerWidth)(l) - (0, Kr.outerWidth)(i) - i.offsetLeft + (0, dt.int)(u.paddingRight) - (0, dt.int)(c.marginRight),
15598
- bottom: (0, Kr.innerHeight)(l) - (0, Kr.outerHeight)(i) - i.offsetTop + (0, dt.int)(u.paddingBottom) - (0, dt.int)(c.marginBottom)
15597
+ left: -i.offsetLeft + (0, ht.int)(u.paddingLeft) + (0, ht.int)(c.marginLeft),
15598
+ top: -i.offsetTop + (0, ht.int)(u.paddingTop) + (0, ht.int)(c.marginTop),
15599
+ right: (0, Kr.innerWidth)(l) - (0, Kr.outerWidth)(i) - i.offsetLeft + (0, ht.int)(u.paddingRight) - (0, ht.int)(c.marginRight),
15600
+ bottom: (0, Kr.innerHeight)(l) - (0, Kr.outerHeight)(i) - i.offsetTop + (0, ht.int)(u.paddingBottom) - (0, ht.int)(c.marginBottom)
15599
15601
  };
15600
15602
  }
15601
- return (0, dt.isNum)(n.right) && (t = Math.min(t, n.right)), (0, dt.isNum)(n.bottom) && (r = Math.min(r, n.bottom)), (0, dt.isNum)(n.left) && (t = Math.max(t, n.left)), (0, dt.isNum)(n.top) && (r = Math.max(r, n.top)), [t, r];
15603
+ return (0, ht.isNum)(n.right) && (t = Math.min(t, n.right)), (0, ht.isNum)(n.bottom) && (r = Math.min(r, n.bottom)), (0, ht.isNum)(n.left) && (t = Math.max(t, n.left)), (0, ht.isNum)(n.top) && (r = Math.max(r, n.top)), [t, r];
15602
15604
  }
15603
15605
  function Yv(e, t, r) {
15604
15606
  const n = Math.round(t / e[0]) * e[0], i = Math.round(r / e[1]) * e[1];
@@ -15617,7 +15619,7 @@ function Vv(e, t, r) {
15617
15619
  return (0, Kr.offsetXYFromParent)(n || e, a, r.props.scale);
15618
15620
  }
15619
15621
  function Kv(e, t, r) {
15620
- const n = !(0, dt.isNum)(e.lastX), i = tc(e);
15622
+ const n = !(0, ht.isNum)(e.lastX), i = tc(e);
15621
15623
  return n ? {
15622
15624
  node: i,
15623
15625
  deltaX: 0,
@@ -16071,12 +16073,12 @@ et(Ha, "defaultProps", {
16071
16073
  };
16072
16074
  if (this.props.bounds) {
16073
16075
  const {
16074
- x: P,
16076
+ x: $,
16075
16077
  y: A
16076
16078
  } = k;
16077
16079
  k.x += this.state.slackX, k.y += this.state.slackY;
16078
- const [B, M] = (0, o.getBoundPosition)(this, k.x, k.y);
16079
- k.x = B, k.y = M, k.slackX = this.state.slackX + (P - k.x), k.slackY = this.state.slackY + (A - k.y), C.x = k.x, C.y = k.y, C.deltaX = k.x - this.state.x, C.deltaY = k.y - this.state.y;
16080
+ const [I, M] = (0, o.getBoundPosition)(this, k.x, k.y);
16081
+ k.x = I, k.y = M, k.slackX = this.state.slackX + ($ - k.x), k.slackY = this.state.slackY + (A - k.y), C.x = k.x, C.y = k.y, C.deltaX = k.x - this.state.x, C.deltaY = k.y - this.state.y;
16080
16082
  }
16081
16083
  if (this.props.onDrag(O, C) === !1) return !1;
16082
16084
  this.setState(k);
@@ -16090,10 +16092,10 @@ et(Ha, "defaultProps", {
16090
16092
  };
16091
16093
  if (!!this.props.position) {
16092
16094
  const {
16093
- x: P,
16095
+ x: $,
16094
16096
  y: A
16095
16097
  } = this.props.position;
16096
- k.x = P, k.y = A;
16098
+ k.x = $, k.y = A;
16097
16099
  }
16098
16100
  this.setState(k);
16099
16101
  }), this.state = {
@@ -16138,25 +16140,25 @@ et(Ha, "defaultProps", {
16138
16140
  defaultPosition: C,
16139
16141
  defaultClassName: k,
16140
16142
  defaultClassNameDragging: S,
16141
- defaultClassNameDragged: P,
16143
+ defaultClassNameDragged: $,
16142
16144
  position: A,
16143
- positionOffset: B,
16145
+ positionOffset: I,
16144
16146
  scale: M,
16145
- ...U
16147
+ ...H
16146
16148
  } = this.props;
16147
- let Z = {}, fe = null;
16149
+ let Y = {}, oe = null;
16148
16150
  const me = !!!A || this.state.dragging, be = A || C, Ye = {
16149
16151
  // Set left if horizontal drag is enabled
16150
16152
  x: (0, o.canDragX)(this) && me ? this.state.x : be.x,
16151
16153
  // Set top if vertical drag is enabled
16152
16154
  y: (0, o.canDragY)(this) && me ? this.state.y : be.y
16153
16155
  };
16154
- this.state.isElementSVG ? fe = (0, a.createSVGTransform)(Ye, B) : Z = (0, a.createCSSTransform)(Ye, B);
16156
+ this.state.isElementSVG ? oe = (0, a.createSVGTransform)(Ye, I) : Y = (0, a.createCSSTransform)(Ye, I);
16155
16157
  const Ze = (0, i.default)(x.props.className || "", k, {
16156
16158
  [S]: this.state.dragging,
16157
- [P]: this.state.dragged
16159
+ [$]: this.state.dragged
16158
16160
  });
16159
- return /* @__PURE__ */ t.createElement(l.default, m({}, U, {
16161
+ return /* @__PURE__ */ t.createElement(l.default, m({}, H, {
16160
16162
  onStart: this.onDragStart,
16161
16163
  onDrag: this.onDrag,
16162
16164
  onStop: this.onDragStop
@@ -16164,9 +16166,9 @@ et(Ha, "defaultProps", {
16164
16166
  className: Ze,
16165
16167
  style: {
16166
16168
  ...x.props.style,
16167
- ...Z
16169
+ ...Y
16168
16170
  },
16169
- transform: fe
16171
+ transform: oe
16170
16172
  }));
16171
16173
  }
16172
16174
  }
@@ -16349,7 +16351,7 @@ function f1(e, t) {
16349
16351
  var Ci = {};
16350
16352
  Ci.__esModule = !0;
16351
16353
  Ci.resizableProps = void 0;
16352
- var ce = d1(_r);
16354
+ var le = d1(_r);
16353
16355
  function d1(e) {
16354
16356
  return e && e.__esModule ? e : { default: e };
16355
16357
  }
@@ -16361,30 +16363,30 @@ var h1 = {
16361
16363
  * 'y' - only allows the height to be changed
16362
16364
  * 'none' - disables resizing altogether
16363
16365
  * */
16364
- axis: ce.default.oneOf(["both", "x", "y", "none"]),
16365
- className: ce.default.string,
16366
+ axis: le.default.oneOf(["both", "x", "y", "none"]),
16367
+ className: le.default.string,
16366
16368
  /*
16367
16369
  * Require that one and only one child be present.
16368
16370
  * */
16369
- children: ce.default.element.isRequired,
16371
+ children: le.default.element.isRequired,
16370
16372
  /*
16371
16373
  * These will be passed wholesale to react-draggable's DraggableCore
16372
16374
  * */
16373
- draggableOpts: ce.default.shape({
16374
- allowAnyClick: ce.default.bool,
16375
- cancel: ce.default.string,
16376
- children: ce.default.node,
16377
- disabled: ce.default.bool,
16378
- enableUserSelectHack: ce.default.bool,
16379
- offsetParent: ce.default.node,
16380
- grid: ce.default.arrayOf(ce.default.number),
16381
- handle: ce.default.string,
16382
- nodeRef: ce.default.object,
16383
- onStart: ce.default.func,
16384
- onDrag: ce.default.func,
16385
- onStop: ce.default.func,
16386
- onMouseDown: ce.default.func,
16387
- scale: ce.default.number
16375
+ draggableOpts: le.default.shape({
16376
+ allowAnyClick: le.default.bool,
16377
+ cancel: le.default.string,
16378
+ children: le.default.node,
16379
+ disabled: le.default.bool,
16380
+ enableUserSelectHack: le.default.bool,
16381
+ offsetParent: le.default.node,
16382
+ grid: le.default.arrayOf(le.default.number),
16383
+ handle: le.default.string,
16384
+ nodeRef: le.default.object,
16385
+ onStart: le.default.func,
16386
+ onDrag: le.default.func,
16387
+ onStop: le.default.func,
16388
+ onMouseDown: le.default.func,
16389
+ scale: le.default.number
16388
16390
  }),
16389
16391
  /*
16390
16392
  * Initial height
@@ -16395,39 +16397,39 @@ var h1 = {
16395
16397
  var i = r[0];
16396
16398
  if (i.axis === "both" || i.axis === "y") {
16397
16399
  var a;
16398
- return (a = ce.default.number).isRequired.apply(a, r);
16400
+ return (a = le.default.number).isRequired.apply(a, r);
16399
16401
  }
16400
- return ce.default.number.apply(ce.default, r);
16402
+ return le.default.number.apply(le.default, r);
16401
16403
  },
16402
16404
  /*
16403
16405
  * Customize cursor resize handle
16404
16406
  * */
16405
- handle: ce.default.oneOfType([ce.default.node, ce.default.func]),
16407
+ handle: le.default.oneOfType([le.default.node, le.default.func]),
16406
16408
  /*
16407
16409
  * If you change this, be sure to update your css
16408
16410
  * */
16409
- handleSize: ce.default.arrayOf(ce.default.number),
16410
- lockAspectRatio: ce.default.bool,
16411
+ handleSize: le.default.arrayOf(le.default.number),
16412
+ lockAspectRatio: le.default.bool,
16411
16413
  /*
16412
16414
  * Max X & Y measure
16413
16415
  * */
16414
- maxConstraints: ce.default.arrayOf(ce.default.number),
16416
+ maxConstraints: le.default.arrayOf(le.default.number),
16415
16417
  /*
16416
16418
  * Min X & Y measure
16417
16419
  * */
16418
- minConstraints: ce.default.arrayOf(ce.default.number),
16420
+ minConstraints: le.default.arrayOf(le.default.number),
16419
16421
  /*
16420
16422
  * Called on stop resize event
16421
16423
  * */
16422
- onResizeStop: ce.default.func,
16424
+ onResizeStop: le.default.func,
16423
16425
  /*
16424
16426
  * Called on start resize event
16425
16427
  * */
16426
- onResizeStart: ce.default.func,
16428
+ onResizeStart: le.default.func,
16427
16429
  /*
16428
16430
  * Called on resize event
16429
16431
  * */
16430
- onResize: ce.default.func,
16432
+ onResize: le.default.func,
16431
16433
  /*
16432
16434
  * Defines which resize handles should be rendered (default: 'se')
16433
16435
  * 's' - South handle (bottom-center)
@@ -16439,11 +16441,11 @@ var h1 = {
16439
16441
  * 'se' - Southeast handle (bottom-right)
16440
16442
  * 'ne' - Northeast handle (top-center)
16441
16443
  * */
16442
- resizeHandles: ce.default.arrayOf(ce.default.oneOf(["s", "w", "e", "n", "sw", "nw", "se", "ne"])),
16444
+ resizeHandles: le.default.arrayOf(le.default.oneOf(["s", "w", "e", "n", "sw", "nw", "se", "ne"])),
16443
16445
  /*
16444
16446
  * If `transform: scale(n)` is set on the parent, this should be set to `n`.
16445
16447
  * */
16446
- transformScale: ce.default.number,
16448
+ transformScale: le.default.number,
16447
16449
  /*
16448
16450
  * Initial width
16449
16451
  */
@@ -16453,9 +16455,9 @@ var h1 = {
16453
16455
  var i = r[0];
16454
16456
  if (i.axis === "both" || i.axis === "x") {
16455
16457
  var a;
16456
- return (a = ce.default.number).isRequired.apply(a, r);
16458
+ return (a = le.default.number).isRequired.apply(a, r);
16457
16459
  }
16458
- return ce.default.number.apply(ce.default, r);
16460
+ return le.default.number.apply(le.default, r);
16459
16461
  }
16460
16462
  };
16461
16463
  Ci.resizableProps = h1;
@@ -16810,35 +16812,35 @@ Object.defineProperty(Kt, "__esModule", {
16810
16812
  value: !0
16811
16813
  });
16812
16814
  Kt.resizeHandleType = Kt.resizeHandleAxesType = Kt.default = void 0;
16813
- var ue = rh(_r), B1 = rh(Oe);
16815
+ var fe = rh(_r), B1 = rh(Oe);
16814
16816
  function rh(e) {
16815
16817
  return e && e.__esModule ? e : { default: e };
16816
16818
  }
16817
- const j1 = Kt.resizeHandleAxesType = ue.default.arrayOf(ue.default.oneOf(["s", "w", "e", "n", "sw", "nw", "se", "ne"])), z1 = Kt.resizeHandleType = ue.default.oneOfType([ue.default.node, ue.default.func]);
16819
+ const j1 = Kt.resizeHandleAxesType = fe.default.arrayOf(fe.default.oneOf(["s", "w", "e", "n", "sw", "nw", "se", "ne"])), z1 = Kt.resizeHandleType = fe.default.oneOfType([fe.default.node, fe.default.func]);
16818
16820
  Kt.default = {
16819
16821
  //
16820
16822
  // Basic props
16821
16823
  //
16822
- className: ue.default.string,
16823
- style: ue.default.object,
16824
+ className: fe.default.string,
16825
+ style: fe.default.object,
16824
16826
  // This can be set explicitly. If it is not set, it will automatically
16825
16827
  // be set to the container width. Note that resizes will *not* cause this to adjust.
16826
16828
  // If you need that behavior, use WidthProvider.
16827
- width: ue.default.number,
16829
+ width: fe.default.number,
16828
16830
  // If true, the container height swells and contracts to fit contents
16829
- autoSize: ue.default.bool,
16831
+ autoSize: fe.default.bool,
16830
16832
  // # of cols.
16831
- cols: ue.default.number,
16833
+ cols: fe.default.number,
16832
16834
  // A selector that will not be draggable.
16833
- draggableCancel: ue.default.string,
16835
+ draggableCancel: fe.default.string,
16834
16836
  // A selector for the draggable handler
16835
- draggableHandle: ue.default.string,
16837
+ draggableHandle: fe.default.string,
16836
16838
  // Deprecated
16837
16839
  verticalCompact: function(e) {
16838
16840
  e.verticalCompact;
16839
16841
  },
16840
16842
  // Choose vertical or hotizontal compaction
16841
- compactType: ue.default.oneOf(["vertical", "horizontal"]),
16843
+ compactType: fe.default.oneOf(["vertical", "horizontal"]),
16842
16844
  // layout is an array of object with the format:
16843
16845
  // {x: Number, y: Number, w: Number, h: Number, i: String}
16844
16846
  layout: function(e) {
@@ -16849,33 +16851,33 @@ Kt.default = {
16849
16851
  // Grid Dimensions
16850
16852
  //
16851
16853
  // Margin between items [x, y] in px
16852
- margin: ue.default.arrayOf(ue.default.number),
16854
+ margin: fe.default.arrayOf(fe.default.number),
16853
16855
  // Padding inside the container [x, y] in px
16854
- containerPadding: ue.default.arrayOf(ue.default.number),
16856
+ containerPadding: fe.default.arrayOf(fe.default.number),
16855
16857
  // Rows have a static height, but you can change this based on breakpoints if you like
16856
- rowHeight: ue.default.number,
16858
+ rowHeight: fe.default.number,
16857
16859
  // Default Infinity, but you can specify a max here if you like.
16858
16860
  // Note that this isn't fully fleshed out and won't error if you specify a layout that
16859
16861
  // extends beyond the row capacity. It will, however, not allow users to drag/resize
16860
16862
  // an item past the barrier. They can push items beyond the barrier, though.
16861
16863
  // Intentionally not documented for this reason.
16862
- maxRows: ue.default.number,
16864
+ maxRows: fe.default.number,
16863
16865
  //
16864
16866
  // Flags
16865
16867
  //
16866
- isBounded: ue.default.bool,
16867
- isDraggable: ue.default.bool,
16868
- isResizable: ue.default.bool,
16868
+ isBounded: fe.default.bool,
16869
+ isDraggable: fe.default.bool,
16870
+ isResizable: fe.default.bool,
16869
16871
  // If true, grid can be placed one over the other.
16870
- allowOverlap: ue.default.bool,
16872
+ allowOverlap: fe.default.bool,
16871
16873
  // If true, grid items won't change position when being dragged over.
16872
- preventCollision: ue.default.bool,
16874
+ preventCollision: fe.default.bool,
16873
16875
  // Use CSS transforms instead of top/left
16874
- useCSSTransforms: ue.default.bool,
16876
+ useCSSTransforms: fe.default.bool,
16875
16877
  // parent layout transform scale
16876
- transformScale: ue.default.number,
16878
+ transformScale: fe.default.number,
16877
16879
  // If true, an external element can trigger onDrop callback with a specific grid position as a parameter
16878
- isDroppable: ue.default.bool,
16880
+ isDroppable: fe.default.bool,
16879
16881
  // Resize handle options
16880
16882
  resizeHandles: j1,
16881
16883
  resizeHandle: z1,
@@ -16883,29 +16885,29 @@ Kt.default = {
16883
16885
  // Callbacks
16884
16886
  //
16885
16887
  // Callback so you can save the layout. Calls after each drag & resize stops.
16886
- onLayoutChange: ue.default.func,
16888
+ onLayoutChange: fe.default.func,
16887
16889
  // Calls when drag starts. Callback is of the signature (layout, oldItem, newItem, placeholder, e, ?node).
16888
16890
  // All callbacks below have the same signature. 'start' and 'stop' callbacks omit the 'placeholder'.
16889
- onDragStart: ue.default.func,
16891
+ onDragStart: fe.default.func,
16890
16892
  // Calls on each drag movement.
16891
- onDrag: ue.default.func,
16893
+ onDrag: fe.default.func,
16892
16894
  // Calls when drag is complete.
16893
- onDragStop: ue.default.func,
16895
+ onDragStop: fe.default.func,
16894
16896
  //Calls when resize starts.
16895
- onResizeStart: ue.default.func,
16897
+ onResizeStart: fe.default.func,
16896
16898
  // Calls when resize movement happens.
16897
- onResize: ue.default.func,
16899
+ onResize: fe.default.func,
16898
16900
  // Calls when resize is complete.
16899
- onResizeStop: ue.default.func,
16901
+ onResizeStop: fe.default.func,
16900
16902
  // Calls when some element is dropped.
16901
- onDrop: ue.default.func,
16903
+ onDrop: fe.default.func,
16902
16904
  //
16903
16905
  // Other validations
16904
16906
  //
16905
- droppingItem: ue.default.shape({
16906
- i: ue.default.string.isRequired,
16907
- w: ue.default.number.isRequired,
16908
- h: ue.default.number.isRequired
16907
+ droppingItem: fe.default.shape({
16908
+ i: fe.default.string.isRequired,
16909
+ w: fe.default.number.isRequired,
16910
+ h: fe.default.number.isRequired
16909
16911
  }),
16910
16912
  // Children must not have duplicate keys.
16911
16913
  children: function(e, t) {
@@ -16919,7 +16921,7 @@ Kt.default = {
16919
16921
  });
16920
16922
  },
16921
16923
  // Optional ref for getting a reference for the wrapping div.
16922
- innerRef: ue.default.any
16924
+ innerRef: fe.default.any
16923
16925
  };
16924
16926
  Object.defineProperty(Ma, "__esModule", {
16925
16927
  value: !0
@@ -18597,7 +18599,7 @@ const hh = /* @__PURE__ */ Ot(dc), $x = dc.WidthProvider(hh), Tx = yr.div`
18597
18599
  overflow: auto;
18598
18600
  }
18599
18601
  `, uE = () => {
18600
- const [e, t] = ht([]), [r, n] = ht([]), [i, a] = ht(!1), { projectMetadata: o } = Sd(), s = async () => {
18602
+ const [e, t] = ct([]), [r, n] = ct([]), [i, a] = ct(!1), { projectMetadata: o } = Sd(), s = async () => {
18601
18603
  a(!0), await Cb(o.projectName, o.projectURL), a(!1), await ad(o.projectName, o.projectURL), await Sb(o.projectName);
18602
18604
  const l = await Z_(
18603
18605
  o.projectName