updates 16.5.1 → 16.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +7 -6
  2. package/dist/index.js +258 -258
  3. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,26 +1,26 @@
1
1
  #!/usr/bin/env node
2
- import { argv as Vi, env as be, stdout as qr, stderr as Xi, platform as Er, versions as Ki, exit as Wi, cwd as zi } from "node:process";
2
+ import { argv as Xi, env as be, stdout as qr, stderr as Ki, platform as Er, versions as Wi, exit as zi, cwd as Yi } from "node:process";
3
3
  import { dirname as br, resolve as Be, basename as He, join as Ar } from "node:path";
4
- import { readFileSync as Fr, lstatSync as Br, truncateSync as Yi, writeFileSync as Qi, accessSync as Ji } from "node:fs";
5
- import { styleText as Zi, stripVTControlCharacters as es } from "node:util";
6
- import { execFileSync as ts } from "node:child_process";
4
+ import { readFileSync as Fr, lstatSync as Br, truncateSync as Qi, writeFileSync as Ji, accessSync as Zi } from "node:fs";
5
+ import { styleText as es, stripVTControlCharacters as ts } from "node:util";
6
+ import { execFileSync as rs } from "node:child_process";
7
7
  import Ce from "fs";
8
8
  import me from "path";
9
- import rs from "constants";
10
- import Ii from "stream";
11
- import ns from "util";
12
- import is from "assert";
13
- import ss from "events";
14
- import Ni from "url";
15
- import os from "http";
16
- import as from "os";
17
- import { rootCertificates as us } from "node:tls";
9
+ import ns from "constants";
10
+ import Ni from "stream";
11
+ import is from "util";
12
+ import ss from "assert";
13
+ import os from "events";
14
+ import Li from "url";
15
+ import as from "http";
16
+ import us from "os";
17
+ import { rootCertificates as cs } from "node:tls";
18
18
  var et = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
19
19
  function Ue(e) {
20
20
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
21
21
  }
22
22
  var tt, Hr;
23
- function Li() {
23
+ function Ci() {
24
24
  if (Hr) return tt;
25
25
  Hr = 1;
26
26
  function e(o, c) {
@@ -137,18 +137,18 @@ function Li() {
137
137
  }), a;
138
138
  }, tt;
139
139
  }
140
- var cs = Li();
141
- const ls = /* @__PURE__ */ Ue(cs);
142
- class fs extends Error {
140
+ var ls = Ci();
141
+ const fs = /* @__PURE__ */ Ue(ls);
142
+ class ps extends Error {
143
143
  constructor(i) {
144
144
  super(), this.name = "AbortError", this.message = i;
145
145
  }
146
146
  }
147
- const Gr = (e) => globalThis.DOMException === void 0 ? new fs(e) : new DOMException(e), Mr = (e) => {
147
+ const Gr = (e) => globalThis.DOMException === void 0 ? new ps(e) : new DOMException(e), Mr = (e) => {
148
148
  const i = e.reason === void 0 ? Gr("This operation was aborted.") : e.reason;
149
149
  return i instanceof Error ? i : Gr(i);
150
150
  };
151
- async function ps(e, i, {
151
+ async function hs(e, i, {
152
152
  concurrency: s = Number.POSITIVE_INFINITY,
153
153
  stopOnError: o = !0,
154
154
  signal: c
@@ -226,7 +226,7 @@ async function ps(e, i, {
226
226
  }
227
227
  const Ur = Symbol("skip");
228
228
  async function kr(e, i) {
229
- return ps(e, (s) => s(), i);
229
+ return hs(e, (s) => s(), i);
230
230
  }
231
231
  var rt = {}, nt, Vr;
232
232
  function ke() {
@@ -437,7 +437,7 @@ function Ve() {
437
437
  }(rt)), rt;
438
438
  }
439
439
  var it, Kr;
440
- function hs() {
440
+ function ds() {
441
441
  if (Kr) return it;
442
442
  Kr = 1;
443
443
  const e = /* @__PURE__ */ Ve(), {
@@ -623,7 +623,7 @@ function hs() {
623
623
  }, it;
624
624
  }
625
625
  var st, Wr;
626
- function ds() {
626
+ function gs() {
627
627
  if (Wr) return st;
628
628
  Wr = 1;
629
629
  const e = /* @__PURE__ */ ke(), i = /* @__PURE__ */ Ve(), {
@@ -1072,10 +1072,10 @@ function ds() {
1072
1072
  }, st = a, st;
1073
1073
  }
1074
1074
  var ot, zr;
1075
- function gs() {
1075
+ function ms() {
1076
1076
  if (zr) return ot;
1077
1077
  zr = 1;
1078
- const e = /* @__PURE__ */ hs(), i = /* @__PURE__ */ ds(), s = /* @__PURE__ */ Ve(), o = /* @__PURE__ */ ke(), c = (t) => t && typeof t == "object" && !Array.isArray(t), r = (t, n, u = !1) => {
1078
+ const e = /* @__PURE__ */ ds(), i = /* @__PURE__ */ gs(), s = /* @__PURE__ */ Ve(), o = /* @__PURE__ */ ke(), c = (t) => t && typeof t == "object" && !Array.isArray(t), r = (t, n, u = !1) => {
1079
1079
  if (Array.isArray(t)) {
1080
1080
  const p = t.map((A) => r(A, n, u));
1081
1081
  return (A) => {
@@ -1134,21 +1134,21 @@ function gs() {
1134
1134
  }, r.constants = o, ot = r, ot;
1135
1135
  }
1136
1136
  var at, Yr;
1137
- function ms() {
1137
+ function vs() {
1138
1138
  if (Yr) return at;
1139
1139
  Yr = 1;
1140
- const e = /* @__PURE__ */ gs(), i = /* @__PURE__ */ Ve();
1140
+ const e = /* @__PURE__ */ ms(), i = /* @__PURE__ */ Ve();
1141
1141
  function s(o, c, r = !1) {
1142
1142
  return c && (c.windows === null || c.windows === void 0) && (c = { ...c, windows: i.isWindows() }), e(o, c, r);
1143
1143
  }
1144
1144
  return Object.assign(s, e), at = s, at;
1145
1145
  }
1146
- var vs = /* @__PURE__ */ ms();
1147
- const Qr = /* @__PURE__ */ Ue(vs), ys = "16.5.1", Es = {
1148
- version: ys
1146
+ var ys = /* @__PURE__ */ vs();
1147
+ const Qr = /* @__PURE__ */ Ue(ys), Es = "16.5.3", Rs = {
1148
+ version: Es
1149
1149
  };
1150
1150
  var ye = {}, ge = {}, Jr;
1151
- function Ci() {
1151
+ function Pi() {
1152
1152
  if (Jr) return ge;
1153
1153
  Jr = 1, ge.parse = ge.decode = o, ge.stringify = ge.encode = i, ge.safe = r, ge.unsafe = t;
1154
1154
  var e = typeof process < "u" && process.platform === "win32" ? `\r
@@ -1254,7 +1254,7 @@ function Ci() {
1254
1254
  return ge;
1255
1255
  }
1256
1256
  var ut, Zr;
1257
- function Rs() {
1257
+ function ws() {
1258
1258
  if (Zr) return ut;
1259
1259
  Zr = 1;
1260
1260
  var e = 1, i = 2;
@@ -1294,10 +1294,10 @@ function Rs() {
1294
1294
  }, ut;
1295
1295
  }
1296
1296
  var en;
1297
- function ws() {
1297
+ function $s() {
1298
1298
  if (en) return ye;
1299
1299
  en = 1;
1300
- var e = Ce, i = Ci(), s = me, o = Rs(), c = ye.parse = function(t) {
1300
+ var e = Ce, i = Pi(), s = me, o = ws(), c = ye.parse = function(t) {
1301
1301
  return /^\s*{/.test(t) ? JSON.parse(o(t)) : i.parse(t);
1302
1302
  }, r = ye.file = function() {
1303
1303
  var t = [].slice.call(arguments).filter(function(a) {
@@ -1345,7 +1345,7 @@ function ws() {
1345
1345
  }
1346
1346
  var ct = { exports: {} };
1347
1347
  var tn;
1348
- function $s() {
1348
+ function Ss() {
1349
1349
  if (tn) return ct.exports;
1350
1350
  tn = 1;
1351
1351
  function e(r) {
@@ -1403,14 +1403,14 @@ function $s() {
1403
1403
  return ct.exports;
1404
1404
  }
1405
1405
  var lt, rn;
1406
- function Ss() {
1406
+ function bs() {
1407
1407
  if (rn) return lt;
1408
1408
  rn = 1;
1409
- var e = ws(), i = me.join, s = $s(), o = "/etc", c = process.platform === "win32", r = c ? process.env.USERPROFILE : process.env.HOME;
1409
+ var e = $s(), i = me.join, s = Ss(), o = "/etc", c = process.platform === "win32", r = c ? process.env.USERPROFILE : process.env.HOME;
1410
1410
  return lt = function(t, n, u, a) {
1411
1411
  if (typeof t != "string")
1412
1412
  throw new Error("rc(name): name *must* be string");
1413
- u || (u = Li()(process.argv.slice(2))), n = (typeof n == "string" ? e.json(n) : n) || {}, a = a || e.parse;
1413
+ u || (u = Ci()(process.argv.slice(2))), n = (typeof n == "string" ? e.json(n) : n) || {}, a = a || e.parse;
1414
1414
  var l = e.env(t + "_"), d = [n], f = [];
1415
1415
  function h(g) {
1416
1416
  if (!(f.indexOf(g) >= 0)) {
@@ -1433,13 +1433,13 @@ function Ss() {
1433
1433
  ]));
1434
1434
  }, lt;
1435
1435
  }
1436
- var bs = Ss();
1437
- const As = /* @__PURE__ */ Ue(bs);
1436
+ var As = bs();
1437
+ const _s = /* @__PURE__ */ Ue(As);
1438
1438
  var ft = { exports: {} }, Ee = {}, Re = {}, pt, nn;
1439
- function _s() {
1439
+ function Os() {
1440
1440
  if (nn) return pt;
1441
1441
  nn = 1;
1442
- var e = rs, i = process.cwd, s = null, o = process.env.GRACEFUL_FS_PLATFORM || process.platform;
1442
+ var e = ns, i = process.cwd, s = null, o = process.env.GRACEFUL_FS_PLATFORM || process.platform;
1443
1443
  process.cwd = function() {
1444
1444
  return s || (s = i.call(process)), s;
1445
1445
  };
@@ -1628,10 +1628,10 @@ function _s() {
1628
1628
  return pt;
1629
1629
  }
1630
1630
  var ht, sn;
1631
- function Os() {
1631
+ function xs() {
1632
1632
  if (sn) return ht;
1633
1633
  sn = 1;
1634
- var e = Ii.Stream;
1634
+ var e = Ni.Stream;
1635
1635
  ht = i;
1636
1636
  function i(s) {
1637
1637
  return {
@@ -1692,7 +1692,7 @@ function Os() {
1692
1692
  return ht;
1693
1693
  }
1694
1694
  var dt, on;
1695
- function xs() {
1695
+ function Ts() {
1696
1696
  if (on) return dt;
1697
1697
  on = 1, dt = i;
1698
1698
  var e = Object.getPrototypeOf || function(s) {
@@ -1712,10 +1712,10 @@ function xs() {
1712
1712
  return dt;
1713
1713
  }
1714
1714
  var qe, an;
1715
- function Ts() {
1715
+ function Is() {
1716
1716
  if (an) return qe;
1717
1717
  an = 1;
1718
- var e = Ce, i = _s(), s = Os(), o = xs(), c = ns, r, t;
1718
+ var e = Ce, i = Os(), s = xs(), o = Ts(), c = is, r, t;
1719
1719
  typeof Symbol == "function" && typeof Symbol.for == "function" ? (r = Symbol.for("graceful-fs.queue"), t = Symbol.for("graceful-fs.previous")) : (r = "___graceful-fs.queue", t = "___graceful-fs.previous");
1720
1720
  function n() {
1721
1721
  }
@@ -1750,7 +1750,7 @@ GFS4: `), console.error(p);
1750
1750
  value: p
1751
1751
  }), E;
1752
1752
  }(e.closeSync), /\bgfs4\b/i.test(process.env.NODE_DEBUG || "") && process.on("exit", function() {
1753
- a(e[r]), is.equal(e[r].length, 0);
1753
+ a(e[r]), ss.equal(e[r].length, 0);
1754
1754
  });
1755
1755
  }
1756
1756
  et[r] || u(et, e[r]), qe = d(o(e)), process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !e.__patched && (qe = d(e), e.__patched = !0);
@@ -1941,14 +1941,14 @@ GFS4: `), console.error(p);
1941
1941
  return qe;
1942
1942
  }
1943
1943
  var un;
1944
- function Is() {
1944
+ function Ns() {
1945
1945
  if (un) return Re;
1946
1946
  un = 1;
1947
1947
  var e = Re && Re.__importDefault || function(o) {
1948
1948
  return o && o.__esModule ? o : { default: o };
1949
1949
  };
1950
1950
  Object.defineProperty(Re, "__esModule", { value: !0 }), Re.readCAFileSync = void 0;
1951
- const i = e(Ts());
1951
+ const i = e(Is());
1952
1952
  function s(o) {
1953
1953
  try {
1954
1954
  const c = i.default.readFileSync(o, "utf8"), r = "-----END CERTIFICATE-----";
@@ -1962,7 +1962,7 @@ function Is() {
1962
1962
  return Re.readCAFileSync = s, Re;
1963
1963
  }
1964
1964
  var cn;
1965
- function Ns() {
1965
+ function Ls() {
1966
1966
  return cn || (cn = 1, function(e) {
1967
1967
  var i = Ee && Ee.__createBinding || (Object.create ? function(o, c, r, t) {
1968
1968
  t === void 0 && (t = r);
@@ -1975,11 +1975,11 @@ function Ns() {
1975
1975
  }), s = Ee && Ee.__exportStar || function(o, c) {
1976
1976
  for (var r in o) r !== "default" && !Object.prototype.hasOwnProperty.call(c, r) && i(c, o, r);
1977
1977
  };
1978
- Object.defineProperty(e, "__esModule", { value: !0 }), s(Is(), e);
1978
+ Object.defineProperty(e, "__esModule", { value: !0 }), s(Ns(), e);
1979
1979
  }(Ee)), Ee;
1980
1980
  }
1981
1981
  var gt = { exports: {} }, mt, ln;
1982
- function Ls() {
1982
+ function Cs() {
1983
1983
  if (ln) return mt;
1984
1984
  ln = 1, mt = i;
1985
1985
  function e(s, o) {
@@ -2051,10 +2051,10 @@ function Ls() {
2051
2051
  }, mt;
2052
2052
  }
2053
2053
  var fn;
2054
- function Cs() {
2054
+ function Ps() {
2055
2055
  if (fn) return gt.exports;
2056
2056
  fn = 1;
2057
- var e = Ls(), i = me, s = Ce, o = Ci(), c = ss.EventEmitter, r = Ni, t = os, n = gt.exports = function() {
2057
+ var e = Cs(), i = me, s = Ce, o = Pi(), c = os.EventEmitter, r = Li, t = as, n = gt.exports = function() {
2058
2058
  for (var f = [].slice.call(arguments), h = new l(); f.length; ) {
2059
2059
  var g = f.shift();
2060
2060
  g && h.push(typeof g == "string" ? a(g) : g);
@@ -2194,7 +2194,7 @@ function Cs() {
2194
2194
  }, gt.exports;
2195
2195
  }
2196
2196
  var vt, pn;
2197
- function Ps() {
2197
+ function Ds() {
2198
2198
  if (pn) return vt;
2199
2199
  pn = 1, vt = function(i) {
2200
2200
  const s = i.indexOf(":");
@@ -2213,7 +2213,7 @@ function Ps() {
2213
2213
  return vt;
2214
2214
  }
2215
2215
  var $e = {}, yt = {}, Ie = {}, hn;
2216
- function Ds() {
2216
+ function js() {
2217
2217
  if (hn) return Ie;
2218
2218
  hn = 1, Object.defineProperty(Ie, "__esModule", { value: !0 }), Ie.envReplace = void 0;
2219
2219
  const e = /(?<!\\)(\\*)\$\{([^${}]+)\}/g;
@@ -2240,20 +2240,20 @@ function Ds() {
2240
2240
  return Ie;
2241
2241
  }
2242
2242
  var dn;
2243
- function js() {
2243
+ function qs() {
2244
2244
  return dn || (dn = 1, function(e) {
2245
2245
  Object.defineProperty(e, "__esModule", { value: !0 }), e.envReplace = void 0;
2246
- var i = Ds();
2246
+ var i = js();
2247
2247
  Object.defineProperty(e, "envReplace", { enumerable: !0, get: function() {
2248
2248
  return i.envReplace;
2249
2249
  } });
2250
2250
  }(yt)), yt;
2251
2251
  }
2252
2252
  var gn;
2253
- function qs() {
2253
+ function Fs() {
2254
2254
  if (gn) return $e;
2255
2255
  gn = 1;
2256
- const e = Ce, i = me, { envReplace: s } = js(), o = (t) => typeof t != "string" ? t : s(t, process.env), c = (t, n, u) => {
2256
+ const e = Ce, i = me, { envReplace: s } = qs(), o = (t) => typeof t != "string" ? t : s(t, process.env), c = (t, n, u) => {
2257
2257
  if (typeof n != "string")
2258
2258
  return n;
2259
2259
  const a = [].concat(t[u]), l = a.indexOf(i) !== -1, d = a.indexOf(Boolean) !== -1, f = a.indexOf(String) !== -1, h = a.indexOf(Number) !== -1;
@@ -2308,10 +2308,10 @@ function qs() {
2308
2308
  return $e.envReplace = s, $e.findPrefix = r, $e.parseField = c, $e.parseKey = o, $e;
2309
2309
  }
2310
2310
  var Et = {}, mn;
2311
- function Fs() {
2311
+ function Bs() {
2312
2312
  if (mn) return Et;
2313
2313
  mn = 1;
2314
- const e = me, i = Ii.Stream, s = Ni, o = () => {
2314
+ const e = me, i = Ni.Stream, s = Li, o = () => {
2315
2315
  }, c = () => [], r = () => {
2316
2316
  };
2317
2317
  return Et.types = {
@@ -2440,14 +2440,14 @@ function Fs() {
2440
2440
  }, Et;
2441
2441
  }
2442
2442
  var Rt, vn;
2443
- function Bs() {
2443
+ function Hs() {
2444
2444
  if (vn) return Rt;
2445
2445
  vn = 1;
2446
- const { readCAFileSync: e } = Ns(), i = Ce, s = me, { ConfigChain: o } = Cs(), c = Ps(), r = qs();
2446
+ const { readCAFileSync: e } = Ls(), i = Ce, s = me, { ConfigChain: o } = Ps(), c = Ds(), r = Fs();
2447
2447
  class t extends o {
2448
2448
  // https://github.com/npm/cli/blob/latest/lib/config/core.js#L203-L217
2449
2449
  constructor(a, l) {
2450
- super(a), this.root = a, this._parseField = r.parseField.bind(null, l || Fs());
2450
+ super(a), this.root = a, this._parseField = r.parseField.bind(null, l || Bs());
2451
2451
  }
2452
2452
  // https://github.com/npm/cli/blob/latest/lib/config/core.js#L326-L338
2453
2453
  add(a, l) {
@@ -2566,9 +2566,9 @@ function Bs() {
2566
2566
  return Rt = t, Rt;
2567
2567
  }
2568
2568
  var wt = {}, yn;
2569
- function Hs() {
2569
+ function Gs() {
2570
2570
  return yn || (yn = 1, function(e) {
2571
- const i = as, s = me, o = i.tmpdir(), c = process.getuid ? process.getuid() : process.pid, r = () => !0, t = process.platform === "win32", n = {
2571
+ const i = us, s = me, o = i.tmpdir(), c = process.getuid ? process.getuid() : process.pid, r = () => !0, t = process.platform === "win32", n = {
2572
2572
  editor: () => process.env.EDITOR || process.env.VISUAL || (t ? "notepad.exe" : "vi"),
2573
2573
  shell: () => t ? process.env.COMSPEC || "cmd.exe" : process.env.SHELL || "/bin/bash"
2574
2574
  }, u = {
@@ -2706,9 +2706,9 @@ function Hs() {
2706
2706
  }(wt)), wt;
2707
2707
  }
2708
2708
  var En;
2709
- function Gs() {
2709
+ function Ms() {
2710
2710
  return En || (En = 1, function(e) {
2711
- const i = me, s = Bs(), o = Hs();
2711
+ const i = me, s = Hs(), o = Gs();
2712
2712
  e.exports = (c, r, t) => {
2713
2713
  const n = new s(Object.assign({}, o.defaults, t), r);
2714
2714
  n.add(Object.assign({}, c), "cli");
@@ -2750,10 +2750,10 @@ function Gs() {
2750
2750
  }(ft)), ft.exports;
2751
2751
  }
2752
2752
  var $t, Rn;
2753
- function Ms() {
2753
+ function Us() {
2754
2754
  if (Rn) return $t;
2755
2755
  Rn = 1;
2756
- const e = Gs(), i = ":_authToken", s = ":_auth", o = ":username", c = ":_password";
2756
+ const e = Ms(), i = ":_authToken", s = ":_auth", o = ":username", c = ":_password";
2757
2757
  $t = function() {
2758
2758
  let y, p;
2759
2759
  arguments.length >= 2 ? (y = arguments[0], p = Object.assign({}, arguments[1])) : typeof arguments[0] == "string" ? y = arguments[0] : p = Object.assign({}, arguments[0]), p = p || {};
@@ -2825,13 +2825,13 @@ function Ms() {
2825
2825
  }
2826
2826
  return $t;
2827
2827
  }
2828
- var Us = Ms();
2829
- const St = /* @__PURE__ */ Ue(Us);
2830
- function ks(e, i) {
2828
+ var ks = Us();
2829
+ const St = /* @__PURE__ */ Ue(ks);
2830
+ function Vs(e, i) {
2831
2831
  let s = e.slice(0, i).split(/\r\n|\n|\r/g);
2832
2832
  return [s.length, s.pop().length + 1];
2833
2833
  }
2834
- function Vs(e, i, s) {
2834
+ function Xs(e, i, s) {
2835
2835
  let o = e.split(/\r\n|\n|\r/g), c = "", r = (Math.log10(i + 1) | 0) + 1;
2836
2836
  for (let t = i - 1; t <= i + 1; t++) {
2837
2837
  let n = o[t - 1];
@@ -2846,7 +2846,7 @@ class Y extends Error {
2846
2846
  column;
2847
2847
  codeblock;
2848
2848
  constructor(i, s) {
2849
- const [o, c] = ks(s.toml, s.ptr), r = Vs(s.toml, o, c);
2849
+ const [o, c] = Vs(s.toml, s.ptr), r = Xs(s.toml, o, c);
2850
2850
  super(`Invalid TOML document: ${i}
2851
2851
 
2852
2852
  ${r}`, s), this.line = o, this.column = c, this.codeblock = r;
@@ -2903,7 +2903,7 @@ function wn(e, i, s, o, c = !1) {
2903
2903
  ptr: i
2904
2904
  });
2905
2905
  }
2906
- function Pi(e, i) {
2906
+ function Di(e, i) {
2907
2907
  let s = e[i], o = s === e[i + 1] && e[i + 1] === e[i + 2] ? e.slice(i, i + 3) : s;
2908
2908
  i += o.length - 1;
2909
2909
  do
@@ -2911,7 +2911,7 @@ function Pi(e, i) {
2911
2911
  while (i > -1 && s !== "'" && e[i - 1] === "\\" && (e[i - 2] !== "\\" || e[i - 3] === "\\"));
2912
2912
  return i > -1 && (i += o.length, o.length > 1 && (e[i] === s && i++, e[i] === s && i++)), i;
2913
2913
  }
2914
- let Xs = /^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}:\d{2}(?:\.\d+)?)?(Z|[-+]\d{2}:\d{2})?$/i;
2914
+ let Ks = /^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}:\d{2}(?:\.\d+)?)?(Z|[-+]\d{2}:\d{2})?$/i;
2915
2915
  class Ae extends Date {
2916
2916
  #t = !1;
2917
2917
  #r = !1;
@@ -2919,7 +2919,7 @@ class Ae extends Date {
2919
2919
  constructor(i) {
2920
2920
  let s = !0, o = !0, c = "Z";
2921
2921
  if (typeof i == "string") {
2922
- let r = i.match(Xs);
2922
+ let r = i.match(Ks);
2923
2923
  r ? (r[1] || (s = !1, i = `0000-01-01T${i}`), o = !!r[2], o && i[10] === " " && (i = i.replace(" ", "T")), r[2] && +r[2] > 23 ? i = "" : (c = r[3] || null, i = i.toUpperCase(), !c && o && (i += "Z"))) : i = "";
2924
2924
  }
2925
2925
  super(i), isNaN(this.getTime()) || (this.#t = s, this.#r = o, this.#e = c);
@@ -2969,7 +2969,7 @@ class Ae extends Date {
2969
2969
  return s.#t = !1, s.#e = null, s;
2970
2970
  }
2971
2971
  }
2972
- let Ks = /^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/, Ws = /^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/, zs = /^[+-]?0[0-9_]/, Ys = /^[0-9a-f]{4,8}$/i, $n = {
2972
+ let Ws = /^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/, zs = /^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/, Ys = /^[+-]?0[0-9_]/, Qs = /^[0-9a-f]{4,8}$/i, $n = {
2973
2973
  b: "\b",
2974
2974
  t: " ",
2975
2975
  n: `
@@ -2979,7 +2979,7 @@ let Ks = /^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/, Ws = /^
2979
2979
  '"': '"',
2980
2980
  "\\": "\\"
2981
2981
  };
2982
- function Di(e, i = 0, s = e.length) {
2982
+ function ji(e, i = 0, s = e.length) {
2983
2983
  let o = e[i] === "'", c = e[i++] === e[i] && e[i] === e[i + 1];
2984
2984
  c && (s -= 2, e[i += 2] === "\r" && i++, e[i] === `
2985
2985
  ` && i++);
@@ -3002,7 +3002,7 @@ function Di(e, i = 0, s = e.length) {
3002
3002
  if (t) {
3003
3003
  if (t = !1, a === "u" || a === "U") {
3004
3004
  let l = e.slice(i, i += a === "u" ? 4 : 8);
3005
- if (!Ys.test(l))
3005
+ if (!Qs.test(l))
3006
3006
  throw new Y("invalid unicode escape", {
3007
3007
  toml: e,
3008
3008
  ptr: r
@@ -3036,7 +3036,7 @@ function Di(e, i = 0, s = e.length) {
3036
3036
  }
3037
3037
  return n + e.slice(u, s - 1);
3038
3038
  }
3039
- function Qs(e, i, s, o) {
3039
+ function Js(e, i, s, o) {
3040
3040
  if (e === "true")
3041
3041
  return !0;
3042
3042
  if (e === "false")
@@ -3049,9 +3049,9 @@ function Qs(e, i, s, o) {
3049
3049
  return NaN;
3050
3050
  if (e === "-0")
3051
3051
  return o ? 0n : 0;
3052
- let c = Ks.test(e);
3053
- if (c || Ws.test(e)) {
3054
- if (zs.test(e))
3052
+ let c = Ws.test(e);
3053
+ if (c || zs.test(e)) {
3054
+ if (Ys.test(e))
3055
3055
  throw new Y("leading zeroes are not allowed", {
3056
3056
  toml: i,
3057
3057
  ptr: s
@@ -3081,7 +3081,7 @@ function Qs(e, i, s, o) {
3081
3081
  });
3082
3082
  return r;
3083
3083
  }
3084
- function Js(e, i, s, o) {
3084
+ function Zs(e, i, s, o) {
3085
3085
  let c = e.slice(i, s), r = c.indexOf("#");
3086
3086
  r > -1 && (_r(e, r), c = c.slice(0, r));
3087
3087
  let t = c.trimEnd();
@@ -3104,7 +3104,7 @@ function Or(e, i, s, o, c) {
3104
3104
  });
3105
3105
  let r = e[i];
3106
3106
  if (r === "[" || r === "{") {
3107
- let [u, a] = r === "[" ? to(e, i, o, c) : eo(e, i, o, c), l = s ? wn(e, a, ",", s) : a;
3107
+ let [u, a] = r === "[" ? ro(e, i, o, c) : to(e, i, o, c), l = s ? wn(e, a, ",", s) : a;
3108
3108
  if (a - l && s === "}") {
3109
3109
  let d = Me(e, a, l);
3110
3110
  if (d > -1)
@@ -3117,8 +3117,8 @@ function Or(e, i, s, o, c) {
3117
3117
  }
3118
3118
  let t;
3119
3119
  if (r === '"' || r === "'") {
3120
- t = Pi(e, i);
3121
- let u = Di(e, i, t);
3120
+ t = Di(e, i);
3121
+ let u = ji(e, i, t);
3122
3122
  if (s) {
3123
3123
  if (t = de(e, t, s !== "]"), e[t] && e[t] !== "," && e[t] !== s && e[t] !== `
3124
3124
  ` && e[t] !== "\r")
@@ -3131,18 +3131,18 @@ function Or(e, i, s, o, c) {
3131
3131
  return [u, t];
3132
3132
  }
3133
3133
  t = wn(e, i, ",", s);
3134
- let n = Js(e, i, t - +(e[t - 1] === ","), s === "]");
3134
+ let n = Zs(e, i, t - +(e[t - 1] === ","), s === "]");
3135
3135
  if (!n[0])
3136
3136
  throw new Y("incomplete key-value declaration: no value specified", {
3137
3137
  toml: e,
3138
3138
  ptr: i
3139
3139
  });
3140
3140
  return s && n[1] > -1 && (t = de(e, i + n[1]), t += +(e[t] === ",")), [
3141
- Qs(n[0], e, i, c),
3141
+ Js(n[0], e, i, c),
3142
3142
  t
3143
3143
  ];
3144
3144
  }
3145
- let Zs = /^[a-zA-Z0-9-_]+[ \t]*$/;
3145
+ let eo = /^[a-zA-Z0-9-_]+[ \t]*$/;
3146
3146
  function Rr(e, i, s = "=") {
3147
3147
  let o = i - 1, c = [], r = e.indexOf(s, i);
3148
3148
  if (r < 0)
@@ -3159,7 +3159,7 @@ function Rr(e, i, s = "=") {
3159
3159
  toml: e,
3160
3160
  ptr: i
3161
3161
  });
3162
- let n = Pi(e, i);
3162
+ let n = Di(e, i);
3163
3163
  if (n < 0)
3164
3164
  throw new Y("unfinished string encountered", {
3165
3165
  toml: e,
@@ -3182,11 +3182,11 @@ function Rr(e, i, s = "=") {
3182
3182
  toml: e,
3183
3183
  ptr: i
3184
3184
  });
3185
- c.push(Di(e, i, n));
3185
+ c.push(ji(e, i, n));
3186
3186
  } else {
3187
3187
  o = e.indexOf(".", i);
3188
3188
  let n = e.slice(i, o < 0 || o > r ? r : o);
3189
- if (!Zs.test(n))
3189
+ if (!eo.test(n))
3190
3190
  throw new Y("only letter, numbers, dashes and underscores are allowed in keys", {
3191
3191
  toml: e,
3192
3192
  ptr: i
@@ -3196,7 +3196,7 @@ function Rr(e, i, s = "=") {
3196
3196
  } while (o + 1 && o < r);
3197
3197
  return [c, de(e, r + 1, !0, !0)];
3198
3198
  }
3199
- function eo(e, i, s, o) {
3199
+ function to(e, i, s, o) {
3200
3200
  let c = {}, r = /* @__PURE__ */ new Set(), t, n = 0;
3201
3201
  for (i++; (t = e[i++]) !== "}" && t; ) {
3202
3202
  let u = { toml: e, ptr: i - 1 };
@@ -3238,7 +3238,7 @@ function eo(e, i, s, o) {
3238
3238
  });
3239
3239
  return [c, i];
3240
3240
  }
3241
- function to(e, i, s, o) {
3241
+ function ro(e, i, s, o) {
3242
3242
  let c = [], r;
3243
3243
  for (i++; (r = e[i++]) !== "]" && r; ) {
3244
3244
  if (r === ",")
@@ -3289,7 +3289,7 @@ function Sn(e, i, s, o) {
3289
3289
  return null;
3290
3290
  return [t, c, u.c];
3291
3291
  }
3292
- function ro(e, { maxDepth: i = 1e3, integersAsBigInt: s } = {}) {
3292
+ function no(e, { maxDepth: i = 1e3, integersAsBigInt: s } = {}) {
3293
3293
  let o = {}, c = {}, r = o, t = c;
3294
3294
  for (let n = de(e, 0); n < e.length; ) {
3295
3295
  if (e[n] === "[") {
@@ -3381,7 +3381,7 @@ function We() {
3381
3381
  return _t = (s) => s ? typeof s != "object" ? { loose: !0 } : e.filter((o) => s[o]).reduce((o, c) => (o[c] = !0, o), {}) : {}, _t;
3382
3382
  }
3383
3383
  var Ot, xn;
3384
- function ji() {
3384
+ function qi() {
3385
3385
  if (xn) return Ot;
3386
3386
  xn = 1;
3387
3387
  const e = /^[0-9]+$/, i = (o, c) => {
@@ -3397,7 +3397,7 @@ var xt, Tn;
3397
3397
  function le() {
3398
3398
  if (Tn) return xt;
3399
3399
  Tn = 1;
3400
- const e = Ke(), { MAX_LENGTH: i, MAX_SAFE_INTEGER: s } = Xe(), { re: o, t: c } = xe(), r = We(), { compareIdentifiers: t } = ji();
3400
+ const e = Ke(), { MAX_LENGTH: i, MAX_SAFE_INTEGER: s } = Xe(), { re: o, t: c } = xe(), r = We(), { compareIdentifiers: t } = qi();
3401
3401
  class n {
3402
3402
  constructor(a, l) {
3403
3403
  if (l = r(l), a instanceof n) {
@@ -3549,7 +3549,7 @@ function Te() {
3549
3549
  }, Tt;
3550
3550
  }
3551
3551
  var It, Nn;
3552
- function no() {
3552
+ function io() {
3553
3553
  if (Nn) return It;
3554
3554
  Nn = 1;
3555
3555
  const e = Te();
@@ -3559,7 +3559,7 @@ function no() {
3559
3559
  }, It;
3560
3560
  }
3561
3561
  var Nt, Ln;
3562
- function io() {
3562
+ function so() {
3563
3563
  if (Ln) return Nt;
3564
3564
  Ln = 1;
3565
3565
  const e = Te();
@@ -3569,7 +3569,7 @@ function io() {
3569
3569
  }, Nt;
3570
3570
  }
3571
3571
  var Lt, Cn;
3572
- function so() {
3572
+ function oo() {
3573
3573
  if (Cn) return Lt;
3574
3574
  Cn = 1;
3575
3575
  const e = le();
@@ -3600,7 +3600,7 @@ function xr() {
3600
3600
  return Pt = (s, o, c) => e(s, o, c) === 0, Pt;
3601
3601
  }
3602
3602
  var Dt, jn;
3603
- function oo() {
3603
+ function ao() {
3604
3604
  if (jn) return Dt;
3605
3605
  jn = 1;
3606
3606
  const e = Te(), i = xr();
@@ -3617,28 +3617,28 @@ function oo() {
3617
3617
  }, Dt;
3618
3618
  }
3619
3619
  var jt, qn;
3620
- function ao() {
3620
+ function uo() {
3621
3621
  if (qn) return jt;
3622
3622
  qn = 1;
3623
3623
  const e = le();
3624
3624
  return jt = (s, o) => new e(s, o).major, jt;
3625
3625
  }
3626
3626
  var qt, Fn;
3627
- function uo() {
3627
+ function co() {
3628
3628
  if (Fn) return qt;
3629
3629
  Fn = 1;
3630
3630
  const e = le();
3631
3631
  return qt = (s, o) => new e(s, o).minor, qt;
3632
3632
  }
3633
3633
  var Ft, Bn;
3634
- function co() {
3634
+ function lo() {
3635
3635
  if (Bn) return Ft;
3636
3636
  Bn = 1;
3637
3637
  const e = le();
3638
3638
  return Ft = (s, o) => new e(s, o).patch, Ft;
3639
3639
  }
3640
3640
  var Bt, Hn;
3641
- function lo() {
3641
+ function fo() {
3642
3642
  if (Hn) return Bt;
3643
3643
  Hn = 1;
3644
3644
  const e = Te();
@@ -3648,14 +3648,14 @@ function lo() {
3648
3648
  }, Bt;
3649
3649
  }
3650
3650
  var Ht, Gn;
3651
- function fo() {
3651
+ function po() {
3652
3652
  if (Gn) return Ht;
3653
3653
  Gn = 1;
3654
3654
  const e = pe();
3655
3655
  return Ht = (s, o, c) => e(o, s, c), Ht;
3656
3656
  }
3657
3657
  var Gt, Mn;
3658
- function po() {
3658
+ function ho() {
3659
3659
  if (Mn) return Gt;
3660
3660
  Mn = 1;
3661
3661
  const e = pe();
@@ -3672,14 +3672,14 @@ function Tr() {
3672
3672
  }, Mt;
3673
3673
  }
3674
3674
  var Ut, kn;
3675
- function ho() {
3675
+ function go() {
3676
3676
  if (kn) return Ut;
3677
3677
  kn = 1;
3678
3678
  const e = Tr();
3679
3679
  return Ut = (s, o) => s.sort((c, r) => e(c, r, o)), Ut;
3680
3680
  }
3681
3681
  var kt, Vn;
3682
- function go() {
3682
+ function mo() {
3683
3683
  if (Vn) return kt;
3684
3684
  Vn = 1;
3685
3685
  const e = Tr();
@@ -3700,7 +3700,7 @@ function Ir() {
3700
3700
  return Xt = (s, o, c) => e(s, o, c) < 0, Xt;
3701
3701
  }
3702
3702
  var Kt, Wn;
3703
- function qi() {
3703
+ function Fi() {
3704
3704
  if (Wn) return Kt;
3705
3705
  Wn = 1;
3706
3706
  const e = pe();
@@ -3721,10 +3721,10 @@ function Lr() {
3721
3721
  return zt = (s, o, c) => e(s, o, c) <= 0, zt;
3722
3722
  }
3723
3723
  var Yt, Qn;
3724
- function Fi() {
3724
+ function Bi() {
3725
3725
  if (Qn) return Yt;
3726
3726
  Qn = 1;
3727
- const e = xr(), i = qi(), s = ze(), o = Nr(), c = Ir(), r = Lr();
3727
+ const e = xr(), i = Fi(), s = ze(), o = Nr(), c = Ir(), r = Lr();
3728
3728
  return Yt = (n, u, a, l) => {
3729
3729
  switch (u) {
3730
3730
  case "===":
@@ -3751,7 +3751,7 @@ function Fi() {
3751
3751
  }, Yt;
3752
3752
  }
3753
3753
  var Qt, Jn;
3754
- function mo() {
3754
+ function vo() {
3755
3755
  if (Jn) return Qt;
3756
3756
  Jn = 1;
3757
3757
  const e = le(), i = Te(), { re: s, t: o } = xe();
@@ -3774,7 +3774,7 @@ function mo() {
3774
3774
  }, Qt;
3775
3775
  }
3776
3776
  var Jt, Zn;
3777
- function vo() {
3777
+ function yo() {
3778
3778
  return Zn || (Zn = 1, Jt = function(e) {
3779
3779
  e.prototype[Symbol.iterator] = function* () {
3780
3780
  for (let i = this.head; i; i = i.next)
@@ -3783,7 +3783,7 @@ function vo() {
3783
3783
  }), Jt;
3784
3784
  }
3785
3785
  var Zt, ei;
3786
- function yo() {
3786
+ function Eo() {
3787
3787
  if (ei) return Zt;
3788
3788
  ei = 1, Zt = e, e.Node = c, e.create = e;
3789
3789
  function e(r) {
@@ -3945,16 +3945,16 @@ function yo() {
3945
3945
  this.list = u, this.value = r, t ? (t.next = this, this.prev = t) : this.prev = null, n ? (n.prev = this, this.next = n) : this.next = null;
3946
3946
  }
3947
3947
  try {
3948
- vo()(e);
3948
+ yo()(e);
3949
3949
  } catch {
3950
3950
  }
3951
3951
  return Zt;
3952
3952
  }
3953
3953
  var er, ti;
3954
- function Eo() {
3954
+ function Ro() {
3955
3955
  if (ti) return er;
3956
3956
  ti = 1;
3957
- const e = yo(), i = Symbol("max"), s = Symbol("length"), o = Symbol("lengthCalculator"), c = Symbol("allowStale"), r = Symbol("maxAge"), t = Symbol("dispose"), n = Symbol("noDisposeOnSet"), u = Symbol("lruList"), a = Symbol("cache"), l = Symbol("updateAgeOnGet"), d = () => 1;
3957
+ const e = Eo(), i = Symbol("max"), s = Symbol("length"), o = Symbol("lengthCalculator"), c = Symbol("allowStale"), r = Symbol("maxAge"), t = Symbol("dispose"), n = Symbol("noDisposeOnSet"), u = Symbol("lruList"), a = Symbol("cache"), l = Symbol("updateAgeOnGet"), d = () => 1;
3958
3958
  class f {
3959
3959
  constructor(m) {
3960
3960
  if (typeof m == "number" && (m = { max: m }), m || (m = {}), m.max && (typeof m.max != "number" || m.max < 0))
@@ -4196,7 +4196,7 @@ function he() {
4196
4196
  }
4197
4197
  }
4198
4198
  tr = e;
4199
- const i = Eo(), s = new i({ max: 1e3 }), o = We(), c = Ye(), r = Ke(), t = le(), {
4199
+ const i = Ro(), s = new i({ max: 1e3 }), o = We(), c = Ye(), r = Ke(), t = le(), {
4200
4200
  re: n,
4201
4201
  t: u,
4202
4202
  comparatorTrimReplace: a,
@@ -4301,7 +4301,7 @@ function Ye() {
4301
4301
  }
4302
4302
  }
4303
4303
  rr = i;
4304
- const s = We(), { re: o, t: c } = xe(), r = Fi(), t = Ke(), n = le(), u = he();
4304
+ const s = We(), { re: o, t: c } = xe(), r = Bi(), t = Ke(), n = le(), u = he();
4305
4305
  return rr;
4306
4306
  }
4307
4307
  var nr, ii;
@@ -4319,14 +4319,14 @@ function Qe() {
4319
4319
  }, nr;
4320
4320
  }
4321
4321
  var ir, si;
4322
- function Ro() {
4322
+ function wo() {
4323
4323
  if (si) return ir;
4324
4324
  si = 1;
4325
4325
  const e = he();
4326
4326
  return ir = (s, o) => new e(s, o).set.map((c) => c.map((r) => r.value).join(" ").trim().split(" ")), ir;
4327
4327
  }
4328
4328
  var sr, oi;
4329
- function wo() {
4329
+ function $o() {
4330
4330
  if (oi) return sr;
4331
4331
  oi = 1;
4332
4332
  const e = le(), i = he();
@@ -4343,7 +4343,7 @@ function wo() {
4343
4343
  }, sr;
4344
4344
  }
4345
4345
  var or, ai;
4346
- function $o() {
4346
+ function So() {
4347
4347
  if (ai) return or;
4348
4348
  ai = 1;
4349
4349
  const e = le(), i = he();
@@ -4360,7 +4360,7 @@ function $o() {
4360
4360
  }, or;
4361
4361
  }
4362
4362
  var ar, ui;
4363
- function So() {
4363
+ function bo() {
4364
4364
  if (ui) return ar;
4365
4365
  ui = 1;
4366
4366
  const e = le(), i = he(), s = ze();
@@ -4396,7 +4396,7 @@ function So() {
4396
4396
  }, ar;
4397
4397
  }
4398
4398
  var ur, ci;
4399
- function bo() {
4399
+ function Ao() {
4400
4400
  if (ci) return ur;
4401
4401
  ci = 1;
4402
4402
  const e = he();
@@ -4442,28 +4442,28 @@ function Cr() {
4442
4442
  }, cr;
4443
4443
  }
4444
4444
  var lr, fi;
4445
- function Ao() {
4445
+ function _o() {
4446
4446
  if (fi) return lr;
4447
4447
  fi = 1;
4448
4448
  const e = Cr();
4449
4449
  return lr = (s, o, c) => e(s, o, ">", c), lr;
4450
4450
  }
4451
4451
  var fr, pi;
4452
- function _o() {
4452
+ function Oo() {
4453
4453
  if (pi) return fr;
4454
4454
  pi = 1;
4455
4455
  const e = Cr();
4456
4456
  return fr = (s, o, c) => e(s, o, "<", c), fr;
4457
4457
  }
4458
4458
  var pr, hi;
4459
- function Oo() {
4459
+ function xo() {
4460
4460
  if (hi) return pr;
4461
4461
  hi = 1;
4462
4462
  const e = he();
4463
4463
  return pr = (s, o, c) => (s = new e(s, c), o = new e(o, c), s.intersects(o)), pr;
4464
4464
  }
4465
4465
  var hr, di;
4466
- function xo() {
4466
+ function To() {
4467
4467
  if (di) return hr;
4468
4468
  di = 1;
4469
4469
  const e = Qe(), i = pe();
@@ -4482,7 +4482,7 @@ function xo() {
4482
4482
  }, hr;
4483
4483
  }
4484
4484
  var dr, gi;
4485
- function To() {
4485
+ function Io() {
4486
4486
  if (gi) return dr;
4487
4487
  gi = 1;
4488
4488
  const e = he(), i = Ye(), { ANY: s } = i, o = Qe(), c = pe(), r = (a, l, d = {}) => {
@@ -4569,10 +4569,10 @@ function To() {
4569
4569
  return dr = r, dr;
4570
4570
  }
4571
4571
  var gr, mi;
4572
- function Io() {
4572
+ function No() {
4573
4573
  if (mi) return gr;
4574
4574
  mi = 1;
4575
- const e = xe(), i = Xe(), s = le(), o = ji(), c = Te(), r = no(), t = io(), n = so(), u = oo(), a = ao(), l = uo(), d = co(), f = lo(), h = pe(), g = fo(), y = po(), p = Tr(), E = ho(), A = go(), v = ze(), m = Ir(), b = xr(), w = qi(), x = Nr(), B = Lr(), M = Fi(), G = mo(), T = Ye(), _ = he(), L = Qe(), F = Ro(), H = wo(), O = $o(), I = So(), D = bo(), C = Cr(), $ = Ao(), X = _o(), k = Oo(), ne = xo(), S = To();
4575
+ const e = xe(), i = Xe(), s = le(), o = qi(), c = Te(), r = io(), t = so(), n = oo(), u = ao(), a = uo(), l = co(), d = lo(), f = fo(), h = pe(), g = po(), y = ho(), p = Tr(), E = go(), A = mo(), v = ze(), m = Ir(), b = xr(), w = Fi(), x = Nr(), B = Lr(), M = Bi(), G = vo(), T = Ye(), _ = he(), L = Qe(), F = wo(), H = $o(), O = So(), I = bo(), D = Ao(), C = Cr(), $ = _o(), X = Oo(), k = xo(), ne = To(), S = Io();
4576
4576
  return gr = {
4577
4577
  parse: c,
4578
4578
  valid: r,
@@ -4620,8 +4620,8 @@ function Io() {
4620
4620
  rcompareIdentifiers: o.rcompareIdentifiers
4621
4621
  }, gr;
4622
4622
  }
4623
- var oe = Io();
4624
- const No = [
4623
+ var oe = No();
4624
+ const Lo = [
4625
4625
  [1e3, 6e4, "sec"],
4626
4626
  [6e4, 36e5, "min"],
4627
4627
  [36e5, 864e5, "hour"],
@@ -4629,7 +4629,7 @@ const No = [
4629
4629
  [6048e5, 2628e6, "week"],
4630
4630
  [2628e6, 31536e6, "month"],
4631
4631
  [31536e6, 1 / 0, "year"]
4632
- ], Lo = {
4632
+ ], Co = {
4633
4633
  "1 day ago": "yesterday",
4634
4634
  "1 week ago": "last week",
4635
4635
  "1 month ago": "last month",
@@ -4638,14 +4638,14 @@ const No = [
4638
4638
  "in 1 week": "next week",
4639
4639
  "in 1 month": "next month",
4640
4640
  "in 1 year": "next year"
4641
- }, Co = {
4641
+ }, Po = {
4642
4642
  sec: "second",
4643
4643
  min: "minute"
4644
4644
  };
4645
4645
  function vi(e) {
4646
4646
  return e instanceof Date ? e.getTime() : typeof e == "string" ? Date.parse(e) : e;
4647
4647
  }
4648
- function yi(e, { now: i, noAffix: s = !1, times: o = No, nowThreshold: c = 2e3, nowString: r = "now", unknownString: t = "", aliases: n = !1, aliasesMap: u = Lo, longUnits: a = !1 } = {}) {
4648
+ function yi(e, { now: i, noAffix: s = !1, times: o = Lo, nowThreshold: c = 2e3, nowString: r = "now", unknownString: t = "", aliases: n = !1, aliasesMap: u = Co, longUnits: a = !1 } = {}) {
4649
4649
  const l = vi(e);
4650
4650
  if (i = i !== void 0 ? vi(i) : Date.now(), Number.isNaN(l)) return t || String(e);
4651
4651
  let d = !1, f = i - l;
@@ -4654,14 +4654,14 @@ function yi(e, { now: i, noAffix: s = !1, times: o = No, nowThreshold: c = 2e3,
4654
4654
  for (let p = 0, E = o.length; p < E; p++) {
4655
4655
  const A = o[p];
4656
4656
  if (!(f >= A[1])) {
4657
- h = Math.floor(f / A[0]), g = (a && Co[A[2]] || A[2]) + (h > 1 ? "s" : "");
4657
+ h = Math.floor(f / A[0]), g = (a && Po[A[2]] || A[2]) + (h > 1 ? "s" : "");
4658
4658
  break;
4659
4659
  }
4660
4660
  }
4661
4661
  const y = `${d && !s ? "in " : ""}${h} ${g}${!d && !s ? " ago" : ""}`;
4662
4662
  return n ? u[y] ?? y : y;
4663
4663
  }
4664
- function Po(e) {
4664
+ function Do(e) {
4665
4665
  const i = [];
4666
4666
  for (const s of e) {
4667
4667
  const [o, c] = s.replaceAll(/\s+/g, "").split(/[<>=~]+/);
@@ -4669,11 +4669,29 @@ function Po(e) {
4669
4669
  }
4670
4670
  return i;
4671
4671
  }
4672
- const Do = /^.*?:\/\/(.*?@)?(github\.com[:/])/i, jo = /^([^/]+)\/([^/#]+)?.*?\/([0-9a-f]+|v?[0-9]+\.[0-9]+\.[0-9]+)$/i, wr = /^[0-9a-f]{7,}$/i, Ei = /[0-9]+(\.[0-9]+)?(\.[0-9]+)?/g, _e = (e) => e.replace(/[|\\{}()[\]^$+*?.-]/g, "\\$&"), Pe = (e) => e.endsWith("/") ? e.substring(0, e.length - 1) : e, Bi = Es.version, fe = "\0", $r = {
4672
+ const jo = [
4673
+ "dependencies",
4674
+ "devDependencies",
4675
+ "peerDependencies",
4676
+ "optionalDependencies",
4677
+ "resolutions"
4678
+ ], qo = [
4679
+ "tool.poetry.dependencies",
4680
+ "tool.poetry.dev-dependencies",
4681
+ "tool.poetry.test-dependencies",
4682
+ "tool.poetry.group.dev.dependencies",
4683
+ "tool.poetry.group.test.dependencies"
4684
+ ], Fo = [
4685
+ "project.dependencies",
4686
+ "project.optional-dependencies",
4687
+ "dependency-groups.dev",
4688
+ "dependency-groups.lint",
4689
+ "dependency-groups.test"
4690
+ ], Bo = /^.*?:\/\/(.*?@)?(github\.com[:/])/i, Ho = /^([^/]+)\/([^/#]+)?.*?\/([0-9a-f]+|v?[0-9]+\.[0-9]+\.[0-9]+)$/i, wr = /^[0-9a-f]{7,}$/i, Ei = /[0-9]+(\.[0-9]+)?(\.[0-9]+)?/g, _e = (e) => e.replace(/[|\\{}()[\]^$+*?.-]/g, "\\$&"), Pe = (e) => e.endsWith("/") ? e.substring(0, e.length - 1) : e, Hi = Rs.version, fe = "\0", $r = {
4673
4691
  "package.json": "npm",
4674
4692
  "pyproject.toml": "pypi",
4675
4693
  "go.mod": "go"
4676
- }, Z = ls(Vi.slice(2), {
4694
+ }, Z = fs(Xi.slice(2), {
4677
4695
  boolean: [
4678
4696
  "E",
4679
4697
  "error-on-outdated",
@@ -4744,37 +4762,37 @@ const Do = /^.*?:\/\/(.*?@)?(github\.com[:/])/i, jo = /^([^/]+)\/([^/#]+)?.*?\/(
4744
4762
  v: "version",
4745
4763
  V: "verbose"
4746
4764
  }
4747
- }), [qo, Pr, Dr] = ["magenta", "red", "green"].map((e) => Z["no-color"] ? String : (i) => Zi(e, String(i))), Se = De(ve(Z.greatest)), mr = De(ve(Z.prerelease)), vr = De(ve(Z.release)), Ri = De(ve(Z.patch)), wi = De(ve(Z.minor)), $i = ve(Z["allow-downgrade"]), Fo = ve(Z.modes) || /* @__PURE__ */ new Set(["npm", "pypi"]), Hi = Z.githubapi ? Pe(Z.githubapi) : "https://api.github.com", Si = Z.pypiapi ? Pe(Z.pypiapi) : "https://pypi.org", Bo = "https://proxy.golang.org", Ho = Z.goproxy ? Pe(Z.goproxy) : Mo(), Oe = (e) => e.replace(/^v/, "");
4765
+ }), [Go, Pr, Dr] = ["magenta", "red", "green"].map((e) => Z["no-color"] ? String : (i) => es(e, String(i))), Se = De(ve(Z.greatest)), mr = De(ve(Z.prerelease)), vr = De(ve(Z.release)), Ri = De(ve(Z.patch)), wi = De(ve(Z.minor)), $i = ve(Z["allow-downgrade"]), Mo = ve(Z.modes) || /* @__PURE__ */ new Set(["npm", "pypi"]), Gi = Z.githubapi ? Pe(Z.githubapi) : "https://api.github.com", Si = Z.pypiapi ? Pe(Z.pypiapi) : "https://pypi.org", Uo = "https://proxy.golang.org", ko = Z.goproxy ? Pe(Z.goproxy) : Xo(), Oe = (e) => e.replace(/^v/, "");
4748
4766
  function we(e, i) {
4749
4767
  for (const s of i instanceof Set ? i : [])
4750
4768
  if (s.test(e)) return !0;
4751
4769
  return !1;
4752
4770
  }
4753
- function Go(e, i) {
4771
+ function Vo(e, i) {
4754
4772
  const s = i[`${e}:registry`] || i.registry;
4755
4773
  return s.endsWith("/") ? s : `${s}/`;
4756
4774
  }
4757
- function Mo() {
4758
- return be.GOPROXY ? be.GOPROXY.split(/[,|]/).map((e) => e.trim()).filter((e) => !!e && e !== "direct") : [Bo];
4775
+ function Xo() {
4776
+ return be.GOPROXY ? be.GOPROXY.split(/[,|]/).map((e) => e.trim()).filter((e) => !!e && e !== "direct") : [Uo];
4759
4777
  }
4760
- function Uo(e, i) {
4778
+ function Ko(e, i) {
4761
4779
  return i.split(".").reduce((s, o) => s?.[o] ?? null, e);
4762
4780
  }
4763
4781
  function Ge(e) {
4764
4782
  return e.split(",").filter(Boolean);
4765
4783
  }
4766
- function Gi(e, i) {
4784
+ function Mi(e, i) {
4767
4785
  const s = Ar(i, e);
4768
4786
  try {
4769
- return Ji(s), s;
4787
+ return Zi(s), s;
4770
4788
  } catch {
4771
4789
  }
4772
4790
  const o = br(i);
4773
- return o === i ? null : Gi(e, o);
4791
+ return o === i ? null : Mi(e, o);
4774
4792
  }
4775
- function ko(e, i, s, o) {
4793
+ function Wo(e, i, s, o) {
4776
4794
  if (e.startsWith("@")) {
4777
- const c = (/@[a-z0-9][\w-.]+/.exec(e) || [""])[0], r = Pe(Go(c, o));
4795
+ const c = (/@[a-z0-9][\w-.]+/.exec(e) || [""])[0], r = Pe(Vo(c, o));
4778
4796
  if (r !== i)
4779
4797
  try {
4780
4798
  const t = St(r, s);
@@ -4789,46 +4807,46 @@ function jr(e, i, s) {
4789
4807
  return {
4790
4808
  ...Object.keys(e).length && { agentOpts: e },
4791
4809
  headers: {
4792
- "user-agent": `updates/${Bi}`,
4810
+ "user-agent": `updates/${Hi}`,
4793
4811
  ...s && { Authorization: `${i} ${s}` }
4794
4812
  }
4795
4813
  };
4796
4814
  }
4797
4815
  async function Je(e, i) {
4798
- Z.verbose && console.error(`${qo("fetch")} ${e}`);
4816
+ Z.verbose && console.error(`${Go("fetch")} ${e}`);
4799
4817
  const s = await fetch(e, i);
4800
4818
  return Z.verbose && console.error(`${s.ok ? Dr(s.status) : Pr(s.status)} ${e}`), s;
4801
4819
  }
4802
- async function Vo(e, i, s, o, c, r) {
4803
- const { auth: t, registry: n } = ko(e, s, c, r), u = i === "resolutions" ? He(e) : e, a = `${n}/${u.replace(/\//g, "%2f")}`, l = await Je(a, jr(o, t?.type, t?.token));
4820
+ async function zo(e, i, s, o, c, r) {
4821
+ const { auth: t, registry: n } = Wo(e, s, c, r), u = i === "resolutions" ? He(e) : e, a = `${n}/${u.replace(/\//g, "%2f")}`, l = await Je(a, jr(o, t?.type, t?.token));
4804
4822
  if (l?.ok)
4805
4823
  return [await l.json(), i, n, e];
4806
4824
  throw l?.status && l?.statusText ? new Error(`Received ${l.status} ${l.statusText} from ${a}`) : new Error(`Unable to fetch ${e} from ${n}`);
4807
4825
  }
4808
- async function Xo(e, i, s) {
4826
+ async function Yo(e, i, s) {
4809
4827
  const o = `${Si}/pypi/${e}/json`, c = await Je(o, jr(s));
4810
4828
  if (c?.ok)
4811
4829
  return [await c.json(), i, null, e];
4812
4830
  throw c?.status && c?.statusText ? new Error(`Received ${c.status} ${c.statusText} from ${o}`) : new Error(`Unable to fetch ${e} from ${Si}`);
4813
4831
  }
4814
- function Ko(e) {
4832
+ function Qo(e) {
4815
4833
  return e.split(/\r?\n/).map((i) => i.trim()).filter(Boolean);
4816
4834
  }
4817
- async function Mi(e, i, s, o) {
4835
+ async function Ui(e, i, s, o) {
4818
4836
  const c = o.shift();
4819
4837
  if (!c)
4820
4838
  throw new Error("No more go proxies available");
4821
4839
  const r = `${c}/${e.toLowerCase()}/@latest`, t = await Je(r, jr(s));
4822
4840
  if ([404, 410].includes(t.status) && o.length)
4823
- return Mi(e, i, s, o);
4841
+ return Ui(e, i, s, o);
4824
4842
  if (t?.ok)
4825
4843
  return t.json();
4826
4844
  throw t?.status && t?.statusText ? new Error(`Received ${t.status} ${t.statusText} from ${r}`) : new Error(`Unable to fetch ${e} from ${c}`);
4827
4845
  }
4828
- function Wo(e) {
4846
+ function Jo(e) {
4829
4847
  return e = e.replace("git@", "").replace(/.+?\/\//, "https://").replace(/\.git$/, ""), /^[a-z]+:[a-z0-9-]\/[a-z0-9-]$/.test(e) ? e.replace(/^(.+?):/, (i, s) => `https://${s}.com/`) : /^[a-z0-9-]\/[a-z0-9-]$/.test(e) ? `https://github.com/${e}` : e;
4830
4848
  }
4831
- function zo(e) {
4849
+ function Zo(e) {
4832
4850
  return e.startsWith("https://bitbucket.org") ? "src/HEAD" : "tree/HEAD";
4833
4851
  }
4834
4852
  function bi({ repository: e, homepage: i, info: s }, o, c) {
@@ -4838,7 +4856,7 @@ function bi({ repository: e, homepage: i, info: s }, o, c) {
4838
4856
  return `https://github.com/${c.replace(/^@/, "")}`;
4839
4857
  if (e) {
4840
4858
  const t = typeof e == "string" ? e : e.url;
4841
- r = Wo(t), r && typeof e != "string" && e.directory && (r = `${r}/${zo(r)}/${e.directory}`);
4859
+ r = Jo(t), r && typeof e != "string" && e.directory && (r = `${r}/${Zo(r)}/${e.directory}`);
4842
4860
  }
4843
4861
  return r || i || "";
4844
4862
  }
@@ -4850,9 +4868,9 @@ async function Ne(e, i) {
4850
4868
  const s = e.stack ?? e.message;
4851
4869
  console.info(Z.json ? JSON.stringify({ error: s }) : Pr(s));
4852
4870
  }
4853
- Er === "win32" && Number(Ki?.node?.split(".")[0]) >= 23 && await new Promise((s) => setTimeout(s, 50)), Wi(i || e ? 1 : 0);
4871
+ Er === "win32" && Number(Wi?.node?.split(".")[0]) >= 23 && await new Promise((s) => setTimeout(s, 50)), zi(i || e ? 1 : 0);
4854
4872
  }
4855
- function Yo(e = {}) {
4873
+ function ea(e = {}) {
4856
4874
  for (const s of Object.keys(e))
4857
4875
  for (const o of Object.values(e[s]))
4858
4876
  typeof o.oldPrint == "string" && (o.old = o.oldPrint, delete o.oldPrint), typeof o.newPrint == "string" && (o.new = o.newPrint, delete o.newPrint), typeof o.oldOriginal == "string" && (o.old = o.oldOriginal, delete o.oldOriginal);
@@ -4867,11 +4885,11 @@ function Yo(e = {}) {
4867
4885
  s.results[o] || (s.results[o] = {}), s.results[o][t] || (s.results[o][t] = {}), s.results[o][t][n] = r;
4868
4886
  }
4869
4887
  console.info(JSON.stringify(s));
4870
- } else i && console.info(ea(e));
4888
+ } else i && console.info(ia(e));
4871
4889
  return Z["error-on-outdated"] ? i ? 2 : 0 : Z["error-on-unchanged"] ? i ? 0 : 2 : 0;
4872
4890
  }
4873
- function Qo(e, i) {
4874
- Er === "win32" && Yi(e, 0), Qi(e, i, Er === "win32" ? { flag: "r+" } : void 0);
4891
+ function ta(e, i) {
4892
+ Er === "win32" && Qi(e, 0), Ji(e, i, Er === "win32" ? { flag: "r+" } : void 0);
4875
4893
  }
4876
4894
  function _i(e, i, s) {
4877
4895
  if (e === i) return e;
@@ -4885,8 +4903,8 @@ function _i(e, i, s) {
4885
4903
  t += `${o[n]}.`;
4886
4904
  return t.replace(/\.$/, "");
4887
4905
  }
4888
- const Oi = (e) => es(e).length;
4889
- function Jo(e, i = " ") {
4906
+ const Oi = (e) => ts(e).length;
4907
+ function ra(e, i = " ") {
4890
4908
  let s = "";
4891
4909
  const o = new Array(e[0].length).fill(0);
4892
4910
  for (const c of e)
@@ -4905,25 +4923,25 @@ function Jo(e, i = " ") {
4905
4923
  }
4906
4924
  return s;
4907
4925
  }
4908
- function Zo(e) {
4926
+ function na(e) {
4909
4927
  return /\/v[0-9]$/.test(e) && (e = br(e)), e;
4910
4928
  }
4911
- function ea(e) {
4929
+ function ia(e) {
4912
4930
  const i = [["NAME", "OLD", "NEW", "AGE", "INFO"]], s = /* @__PURE__ */ new Set();
4913
4931
  for (const o of Object.keys(e))
4914
4932
  for (const [c, r] of Object.entries(e[o])) {
4915
4933
  const t = c.split(fe)[1], n = `${o}|${t}`;
4916
4934
  s.has(n) || (s.add(n), i.push([
4917
- o === "go" ? Zo(t) : t,
4935
+ o === "go" ? na(t) : t,
4918
4936
  _i(r.old, r.new, Pr),
4919
4937
  _i(r.new, r.old, Dr),
4920
4938
  r.age || "",
4921
4939
  r.info || ""
4922
4940
  ]));
4923
4941
  }
4924
- return Jo(i);
4942
+ return ra(i);
4925
4943
  }
4926
- function ta(e, i) {
4944
+ function sa(e, i) {
4927
4945
  let s = e;
4928
4946
  for (const o of Object.keys(i)) {
4929
4947
  const c = o.split(fe)[1], r = i[o].oldOriginal || i[o].old, t = new RegExp(`"${_e(c)}": *"${_e(r)}"`, "g");
@@ -4931,7 +4949,7 @@ function ta(e, i) {
4931
4949
  }
4932
4950
  return s;
4933
4951
  }
4934
- function ra(e, i) {
4952
+ function oa(e, i) {
4935
4953
  let s = e;
4936
4954
  for (const o of Object.keys(i)) {
4937
4955
  const c = o.split(fe)[1], r = i[o].oldOriginal || i[o].old;
@@ -4947,7 +4965,7 @@ function ra(e, i) {
4947
4965
  }
4948
4966
  return s;
4949
4967
  }
4950
- function na(e, i, s) {
4968
+ function aa(e, i, s) {
4951
4969
  let o = e.replace(/[0-9]+\.[0-9]+\.[0-9]+(-.+)?/g, i);
4952
4970
  if (s && s !== e && /^[\^~]/.test(o)) {
4953
4971
  const c = s.substring(1).split("."), r = o.substring(1).split(".");
@@ -4959,7 +4977,7 @@ function yr(e) {
4959
4977
  const i = oe.parse(e);
4960
4978
  return i ? !!i.prerelease.length : !1;
4961
4979
  }
4962
- function Ui(e) {
4980
+ function ki(e) {
4963
4981
  return /[0-9]+\.[0-9]+\.[0-9]+-.+/.test(e);
4964
4982
  }
4965
4983
  function Le(e) {
@@ -4969,9 +4987,9 @@ function Le(e) {
4969
4987
  return "";
4970
4988
  }
4971
4989
  }
4972
- function ia(e, i, { range: s, semvers: o, usePre: c, useRel: r, useGreatest: t }) {
4990
+ function ua(e, i, { range: s, semvers: o, usePre: c, useRel: r, useGreatest: t }) {
4973
4991
  let n = Le(s), u = 0;
4974
- c = Ui(s) || c, c && (o.add("prerelease"), o.has("patch") && o.add("prepatch"), o.has("minor") && o.add("preminor"), o.has("major") && o.add("premajor"));
4992
+ c = ki(s) || c, c && (o.add("prerelease"), o.has("patch") && o.add("prepatch"), o.has("minor") && o.add("preminor"), o.has("major") && o.add("premajor"));
4975
4993
  for (const a of i) {
4976
4994
  const l = oe.parse(a);
4977
4995
  if (!l || !n || l.prerelease.length && (!c || r)) continue;
@@ -4986,20 +5004,20 @@ function ia(e, i, { range: s, semvers: o, usePre: c, useRel: r, useGreatest: t }
4986
5004
  }
4987
5005
  return n || null;
4988
5006
  }
4989
- function sa(e, { mode: i, range: s, useGreatest: o, useRel: c, usePre: r, semvers: t }) {
5007
+ function ca(e, { mode: i, range: s, useGreatest: o, useRel: c, usePre: r, semvers: t }) {
4990
5008
  if (i === "go")
4991
5009
  return oe.gt(Oe(e.Version), Oe(s)) ? e.Version : null;
4992
5010
  if (s === "*" || s.includes("||")) return null;
4993
5011
  let n = [];
4994
5012
  i === "pypi" ? n = Object.keys(e.releases).filter((a) => oe.valid(a)) : i === "npm" && (n = Object.keys(e.versions).filter((a) => oe.valid(a)));
4995
- const u = ia(e, n, { range: s, semvers: t, usePre: r, useRel: c, useGreatest: o });
5013
+ const u = ua(e, n, { range: s, semvers: t, usePre: r, useRel: c, useGreatest: o });
4996
5014
  if (!u) return null;
4997
5015
  if (o)
4998
5016
  return u;
4999
5017
  {
5000
5018
  let a = "", l = "";
5001
5019
  i === "pypi" ? (l = e.info.version, a = Le(e.info.version)) : a = e["dist-tags"].latest;
5002
- const d = Le(s), f = Ui(s), h = yr(u), g = yr(a), y = oe.gt(u, d);
5020
+ const d = Le(s), f = ki(s), h = yr(u), g = yr(a), y = oe.gt(u, d);
5003
5021
  if (!c && r || f && h || c && !y && f && !h || f && !h && y)
5004
5022
  return u;
5005
5023
  if (f && !h && !y)
@@ -5008,21 +5026,21 @@ function sa(e, { mode: i, range: s, useGreatest: o, useRel: c, usePre: r, semver
5008
5026
  return p && p !== "prerelease" && !t.has(p.replace(/^pre/, "")) || c && yr(a) ? u : oe.lt(a, d) && !g ? $i === !0 || we(e.name, $i) ? a : null : l || a;
5009
5027
  }
5010
5028
  }
5011
- function ki(e) {
5029
+ function Vi(e) {
5012
5030
  const i = {}, s = be.UPDATES_GITHUB_API_TOKEN || be.GITHUB_API_TOKEN || be.GH_TOKEN || be.HOMEBREW_GITHUB_API_TOKEN;
5013
5031
  return s && (i.headers = { Authorization: `Bearer ${s}` }), Je(e, i);
5014
5032
  }
5015
- async function oa(e, i) {
5016
- const s = `${Hi}/repos/${e}/${i}/commits`, o = await ki(s);
5033
+ async function la(e, i) {
5034
+ const s = `${Gi}/repos/${e}/${i}/commits`, o = await Vi(s);
5017
5035
  if (!o?.ok) return { hash: "", commit: {} };
5018
5036
  const c = await o.json(), { sha: r, commit: t } = c[0];
5019
5037
  return { hash: r, commit: t };
5020
5038
  }
5021
- async function aa(e, i) {
5022
- const s = await ki(`${Hi}/repos/${e}/${i}/git/refs/tags`);
5039
+ async function fa(e, i) {
5040
+ const s = await Vi(`${Gi}/repos/${e}/${i}/git/refs/tags`);
5023
5041
  return s?.ok ? (await s.json()).map((r) => r.ref.replace(/^refs\/tags\//, "")) : [];
5024
5042
  }
5025
- function ua(e, i, s) {
5043
+ function pa(e, i, s) {
5026
5044
  const o = Oe(i);
5027
5045
  if (oe.valid(o))
5028
5046
  if (s) {
@@ -5042,11 +5060,11 @@ function ua(e, i, s) {
5042
5060
  return c;
5043
5061
  }
5044
5062
  }
5045
- async function ca(e, i, s) {
5046
- const o = i.old.replace(Do, ""), [c, r, t, n] = jo.exec(o) || [];
5063
+ async function ha(e, i, s) {
5064
+ const o = i.old.replace(Bo, ""), [c, r, t, n] = Ho.exec(o) || [];
5047
5065
  if (!(!r || !t || !n))
5048
5066
  if (wr.test(n)) {
5049
- const { hash: u, commit: a } = await oa(r, t);
5067
+ const { hash: u, commit: a } = await la(r, t);
5050
5068
  if (!u) return;
5051
5069
  const l = a?.committer?.date ?? a?.author?.date, d = u.substring(0, n.length);
5052
5070
  if (n !== d) {
@@ -5054,25 +5072,25 @@ async function ca(e, i, s) {
5054
5072
  return { key: e, newRange: f, user: r, repo: t, oldRef: n, newRef: d, newDate: l };
5055
5073
  }
5056
5074
  } else {
5057
- const u = await aa(r, t), a = ua(u, n, s);
5075
+ const u = await fa(r, t), a = pa(u, n, s);
5058
5076
  if (a)
5059
5077
  return { key: e, newRange: a, user: r, repo: t, oldRef: n, newRef: a };
5060
5078
  }
5061
5079
  }
5062
- function la(e) {
5080
+ function da(e) {
5063
5081
  return e.replace(/-.*/, "");
5064
5082
  }
5065
- function fa(e) {
5083
+ function xi(e) {
5066
5084
  const i = e.match(Ei);
5067
5085
  return i?.length !== 1 ? e : e.replace(Ei, Le(i[0]));
5068
5086
  }
5069
5087
  function ve(e) {
5070
5088
  return e === void 0 ? !1 : e === "" ? !0 : typeof e == "string" ? e.includes(",") ? new Set(Ge(e)) : /* @__PURE__ */ new Set([e]) : Array.isArray(e) ? new Set(e) : !1;
5071
5089
  }
5072
- function pa(e) {
5090
+ function ga(e) {
5073
5091
  return Array.from(e.matchAll(/(----BEGIN CERT[^]+?IFICATE----)/g), (i) => i[0]);
5074
5092
  }
5075
- function ha(e) {
5093
+ function ma(e) {
5076
5094
  return Array.from(e.matchAll(/(----BEGIN [^]+?PRIVATE KEY----)/g), (i) => i[0]);
5077
5095
  }
5078
5096
  function Sr(e, i) {
@@ -5087,7 +5105,7 @@ function De(e) {
5087
5105
  }
5088
5106
  return e;
5089
5107
  }
5090
- function xi(e, i) {
5108
+ function Ti(e, i) {
5091
5109
  const s = /* @__PURE__ */ new Set();
5092
5110
  for (const o of e || [])
5093
5111
  s.add(Sr(o, !0));
@@ -5095,7 +5113,7 @@ function xi(e, i) {
5095
5113
  s.add(Sr(o, !1));
5096
5114
  return s;
5097
5115
  }
5098
- function Ti(e, i, s, o) {
5116
+ function Ii(e, i, s, o) {
5099
5117
  if (i === "pypi" && e === "python") return !1;
5100
5118
  if (!s.size && !o.size) return !0;
5101
5119
  for (const c of o)
@@ -5104,7 +5122,7 @@ function Ti(e, i, s, o) {
5104
5122
  if (c.test(e)) return !0;
5105
5123
  return !s.size;
5106
5124
  }
5107
- function da(e) {
5125
+ function va(e) {
5108
5126
  const i = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
5109
5127
  if (e)
5110
5128
  for (const o of e) {
@@ -5120,7 +5138,7 @@ function da(e) {
5120
5138
  } else if (c?.isDirectory())
5121
5139
  for (const r of Object.keys($r)) {
5122
5140
  const t = Ar(o, r);
5123
- let n;
5141
+ let n = null;
5124
5142
  try {
5125
5143
  n = Br(t);
5126
5144
  } catch {
@@ -5132,12 +5150,12 @@ function da(e) {
5132
5150
  }
5133
5151
  else
5134
5152
  for (const o of Object.keys($r)) {
5135
- const c = Gi(o, zi());
5153
+ const c = Mi(o, Yi());
5136
5154
  c && i.add(Be(c));
5137
5155
  }
5138
5156
  return [i, s];
5139
5157
  }
5140
- async function ga(e) {
5158
+ async function ya(e) {
5141
5159
  const i = [];
5142
5160
  for (const o of ["", ".config/"])
5143
5161
  for (const c of ["js", "ts", "mjs", "mts"])
@@ -5149,8 +5167,8 @@ async function ga(e) {
5149
5167
  }
5150
5168
  return s;
5151
5169
  }
5152
- async function ma() {
5153
- for (const p of [qr, Xi])
5170
+ async function Ea() {
5171
+ for (const p of [qr, Ki])
5154
5172
  p?._handle?.setBlocking?.(!0);
5155
5173
  const e = 96, i = typeof Z.sockets == "number" ? Z.sockets : e, { help: s, version: o, file: c, types: r, update: t } = Z;
5156
5174
  s && (qr.write(`usage: updates [options]
@@ -5185,49 +5203,31 @@ async function ma() {
5185
5203
  $ updates -e '/^react-(dom)?/'
5186
5204
  $ updates -f package.json
5187
5205
  $ updates -f pyproject.toml
5188
- `), await Ne()), o && (console.info(Bi), await Ne());
5206
+ `), await Ne()), o && (console.info(Hi), await Ne());
5189
5207
  const n = {}, u = {}, a = {}, l = {};
5190
5208
  let d = 0;
5191
- const [f, h] = da(ve(c));
5209
+ const [f, h] = va(ve(c));
5192
5210
  for (const p of f) {
5193
5211
  const E = br(Be(p)), A = He(p), v = $r[A];
5194
- if (!Fo.has(v) && !h.has(p)) continue;
5212
+ if (!Mo.has(v) && !h.has(p)) continue;
5195
5213
  l[v] = p, n[v] || (n[v] = {});
5196
- const m = await ga(E);
5214
+ const m = await ya(E);
5197
5215
  let b = [], w = [];
5198
5216
  Z.include && Z.include !== !0 && (b = (Array.isArray(Z.include) ? Z.include : [Z.include]).flatMap((O) => Ge(O))), Z.exclude && Z.exclude !== !0 && (w = (Array.isArray(Z.exclude) ? Z.exclude : [Z.exclude]).flatMap((O) => Ge(O)));
5199
- const x = xi(b, m?.include ?? []), B = xi(w, m?.exclude ?? []), M = {}, G = As("npm", { registry: "https://registry.npmjs.org" }) || {}, T = { npmrc: G, recursive: !0 };
5217
+ const x = Ti(b, m?.include ?? []), B = Ti(w, m?.exclude ?? []), M = {}, G = _s("npm", { registry: "https://registry.npmjs.org" }) || {}, T = { npmrc: G, recursive: !0 };
5200
5218
  if (v === "npm") {
5201
5219
  G["strict-ssl"] === !1 && (M.rejectUnauthorized = !1);
5202
5220
  for (const O of ["cert", "ca", "key"]) {
5203
- const I = O === "key" ? ha : pa;
5221
+ const I = O === "key" ? ma : ga;
5204
5222
  let D = [];
5205
- G[O] && (D = (Array.isArray(G[O]) ? G[O] : [G[O]]).flatMap((C) => I(C))), G[`${O}file`] && (D = Array.from(I(Fr(G[`opt${p}`], "utf8")))), D.length && (M[O] = O === "ca" ? [...us, ...D] : D);
5223
+ G[O] && (D = (Array.isArray(G[O]) ? G[O] : [G[O]]).flatMap((C) => I(C))), G[`${O}file`] && (D = Array.from(I(Fr(G[`opt${p}`], "utf8")))), D.length && (M[O] = O === "ca" ? [...cs, ...D] : D);
5206
5224
  }
5207
5225
  }
5208
5226
  let _ = [];
5209
- r ? _ = Array.isArray(r) ? r : Ge(r) : "types" in m && Array.isArray(m.types) ? _ = m.types : v === "npm" ? _ = [
5210
- "dependencies",
5211
- "devDependencies",
5212
- "optionalDependencies",
5213
- "peerDependencies",
5214
- "resolutions"
5215
- ] : v === "pypi" ? _ = [
5216
- "project.dependencies",
5217
- // uv
5218
- "project.dependency-groups.dev",
5219
- // uv
5220
- "tool.poetry.dependencies",
5221
- "tool.poetry.dev-dependencies",
5222
- "tool.poetry.test-dependencies",
5223
- "tool.poetry.group.dev.dependencies",
5224
- "tool.poetry.group.test.dependencies"
5225
- ] : v === "go" && (_ = [
5226
- "deps"
5227
- ]);
5227
+ r ? _ = Array.isArray(r) ? r : Ge(r) : "types" in m && Array.isArray(m.types) ? _ = m.types : v === "npm" ? _ = jo : v === "pypi" ? _ = [...Fo, ...qo] : v === "go" && (_ = ["deps"]);
5228
5228
  let L = {};
5229
5229
  if (v === "go")
5230
- a[v] = ts("go", [
5230
+ a[v] = rs("go", [
5231
5231
  "list",
5232
5232
  "-m",
5233
5233
  "-f",
@@ -5244,10 +5244,10 @@ async function ma() {
5244
5244
  if (v === "npm")
5245
5245
  L = JSON.parse(a[v]);
5246
5246
  else if (v === "pypi")
5247
- L = ro(a[v]);
5247
+ L = no(a[v]);
5248
5248
  else {
5249
5249
  L.deps = {};
5250
- for (const O of Ko(a[v])) {
5250
+ for (const O of Qo(a[v])) {
5251
5251
  const [I, D] = O.split("@");
5252
5252
  D && (L.deps[I] = D);
5253
5253
  }
@@ -5257,21 +5257,21 @@ async function ma() {
5257
5257
  }
5258
5258
  for (const O of _) {
5259
5259
  let I;
5260
- if (v === "npm" || v === "go" ? I = L[O] || {} : I = Uo(L, O) || {}, Array.isArray(I) && v === "pypi")
5261
- for (const { name: D, version: C } of Po(I))
5260
+ if (v === "npm" || v === "go" ? I = L[O] || {} : I = Ko(L, O) || {}, Array.isArray(I) && v === "pypi")
5261
+ for (const { name: D, version: C } of Do(I))
5262
5262
  n[v][`${O}${fe}${D}`] = {
5263
- old: C,
5263
+ old: xi(C),
5264
5264
  oldOriginal: C
5265
5265
  };
5266
5266
  else
5267
5267
  for (const [D, C] of Object.entries(I))
5268
- v !== "go" && oe.validRange(C) && Ti(D, v, x, B) ? n[v][`${O}${fe}${D}`] = {
5269
- old: fa(C),
5268
+ v !== "go" && oe.validRange(C) && Ii(D, v, x, B) ? n[v][`${O}${fe}${D}`] = {
5269
+ old: xi(C),
5270
5270
  oldOriginal: C
5271
- } : v === "npm" && Ti(D, v, x, B) ? u[`${O}${fe}${D}`] = {
5271
+ } : v === "npm" && Ii(D, v, x, B) ? u[`${O}${fe}${D}`] = {
5272
5272
  old: C
5273
5273
  } : v === "go" && (n[v][`${O}${fe}${D}`] = {
5274
- old: la(C),
5274
+ old: da(C),
5275
5275
  oldOriginal: C
5276
5276
  });
5277
5277
  }
@@ -5281,12 +5281,12 @@ async function ma() {
5281
5281
  const H = await kr(Object.keys(n[v]).map((O) => async () => {
5282
5282
  const [I, D] = O.split(fe);
5283
5283
  if (v === "npm")
5284
- return Vo(D, I, F, M, T, G);
5284
+ return zo(D, I, F, M, T, G);
5285
5285
  if (v === "pypi")
5286
- return Xo(D, I, M);
5286
+ return Yo(D, I, M);
5287
5287
  {
5288
- const C = Array.from(Ho);
5289
- return [await Mi(D, "latest", M, C), "deps", null, D];
5288
+ const C = Array.from(ko);
5289
+ return [await Ui(D, "latest", M, C), "deps", null, D];
5290
5290
  }
5291
5291
  }), { concurrency: i });
5292
5292
  for (const [O, I, D, C] of H) {
@@ -5294,7 +5294,7 @@ async function ma() {
5294
5294
  const $ = typeof Se == "boolean" ? Se : we(O.name, Se), X = typeof mr == "boolean" ? mr : we(O.name, mr), k = typeof vr == "boolean" ? vr : we(O.name, vr);
5295
5295
  let ne;
5296
5296
  Ri === !0 || we(O.name, Ri) ? ne = /* @__PURE__ */ new Set(["patch"]) : wi === !0 || we(O.name, wi) ? ne = /* @__PURE__ */ new Set(["patch", "minor"]) : ne = /* @__PURE__ */ new Set(["patch", "minor", "major"]);
5297
- const S = `${I}${fe}${C}`, R = n[v][S].old, V = n[v][S].oldOriginal, N = sa(O, {
5297
+ const S = `${I}${fe}${C}`, R = n[v][S].old, V = n[v][S].oldOriginal, N = ca(O, {
5298
5298
  usePre: X,
5299
5299
  useRel: k,
5300
5300
  useGreatest: $,
@@ -5303,7 +5303,7 @@ async function ma() {
5303
5303
  mode: v
5304
5304
  });
5305
5305
  let U = "";
5306
- if (v === "go" && N ? U = N : N && (U = na(R, N, V)), !N || V && V === U)
5306
+ if (["go", "pypi"].includes(v) && N ? U = N : N && (U = aa(R, N, V)), !N || V && V === U)
5307
5307
  delete n[v][S];
5308
5308
  else {
5309
5309
  n[v][S].new = U, v === "npm" ? n[v][S].info = bi(O?.versions?.[N], D, O.name) : v === "pypi" ? n[v][S].info = bi(O, D, O.info.name) : n[v][S].info = O?.Origin?.URL ?? `https://${C}`;
@@ -5312,11 +5312,11 @@ async function ma() {
5312
5312
  }
5313
5313
  }
5314
5314
  if (Object.keys(u).length) {
5315
- const O = await kr(Object.entries(u).map(([I, D]) => () => {
5315
+ const O = (await kr(Object.entries(u).map(([I, D]) => () => {
5316
5316
  const C = I.split(fe)[1], $ = typeof Se == "boolean" ? Se : we(C, Se);
5317
- return ca(I, D, $);
5318
- }), { concurrency: i });
5319
- for (const I of (O || []).filter(Boolean)) {
5317
+ return ha(I, D, $);
5318
+ }), { concurrency: i })).filter((I) => I !== void 0);
5319
+ for (const I of O) {
5320
5320
  const { key: D, newRange: C, user: $, repo: X, oldRef: k, newRef: ne, newDate: S } = I;
5321
5321
  n[v][D] = {
5322
5322
  old: u[D].old,
@@ -5334,13 +5334,13 @@ async function ma() {
5334
5334
  for (const p of Object.keys(n))
5335
5335
  g += Object.keys(n[p]).length;
5336
5336
  g || Ai("All dependencies are up to date.");
5337
- const y = Yo(n);
5337
+ const y = ea(n);
5338
5338
  if (t) {
5339
5339
  for (const p of Object.keys(n))
5340
5340
  if (Object.keys(n[p]).length) {
5341
5341
  try {
5342
- const E = p === "npm" ? ta : ra;
5343
- Qo(l[p], E(a[p], n[p]));
5342
+ const E = p === "npm" ? sa : oa;
5343
+ ta(l[p], E(a[p], n[p]));
5344
5344
  } catch (E) {
5345
5345
  throw new Error(`Error writing ${He(l[p])}: ${E.message}`);
5346
5346
  }
@@ -5350,7 +5350,7 @@ async function ma() {
5350
5350
  await Ne(void 0, y);
5351
5351
  }
5352
5352
  try {
5353
- await ma();
5353
+ await Ea();
5354
5354
  } catch (e) {
5355
5355
  await Ne(e);
5356
5356
  }