@forsakringskassan/vite-lib-config 4.3.5 → 4.3.7

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.
@@ -2656,16 +2656,16 @@ var ce = (n7, t) => {
2656
2656
  return e ? e[0] : null;
2657
2657
  };
2658
2658
  var ss = (n7, t, e) => {
2659
- let s, i, r, o, h, a = e.indexOf(n7), l = e.indexOf(t, a + 1), f = a;
2659
+ let s, i, r, o, h, a = e.indexOf(n7), l = e.indexOf(t, a + 1), u = a;
2660
2660
  if (a >= 0 && l > 0) {
2661
2661
  if (n7 === t) return [a, l];
2662
- for (s = [], r = e.length; f >= 0 && !h; ) {
2663
- if (f === a) s.push(f), a = e.indexOf(n7, f + 1);
2662
+ for (s = [], r = e.length; u >= 0 && !h; ) {
2663
+ if (u === a) s.push(u), a = e.indexOf(n7, u + 1);
2664
2664
  else if (s.length === 1) {
2665
2665
  let c = s.pop();
2666
2666
  c !== void 0 && (h = [c, l]);
2667
- } else i = s.pop(), i !== void 0 && i < r && (r = i, o = l), l = e.indexOf(t, f + 1);
2668
- f = a < l && a >= 0 ? a : l;
2667
+ } else i = s.pop(), i !== void 0 && i < r && (r = i, o = l), l = e.indexOf(t, u + 1);
2668
+ u = a < l && a >= 0 ? a : l;
2669
2669
  }
2670
2670
  s.length && o !== void 0 && (h = [r, o]);
2671
2671
  }
@@ -2731,18 +2731,18 @@ function ht(n7, t, e) {
2731
2731
  s.push(a);
2732
2732
  }
2733
2733
  else {
2734
- let h = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body), a = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body), l = h || a, f = i.body.indexOf(",") >= 0;
2735
- if (!l && !f) return i.post.match(/,(?!,).*\}/) ? (n7 = i.pre + "{" + i.body + qt + i.post, ht(n7, t, true)) : [n7];
2734
+ let h = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body), a = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body), l = h || a, u = i.body.indexOf(",") >= 0;
2735
+ if (!l && !u) return i.post.match(/,(?!,).*\}/) ? (n7 = i.pre + "{" + i.body + qt + i.post, ht(n7, t, true)) : [n7];
2736
2736
  let c;
2737
2737
  if (l) c = i.body.split(/\.\./);
2738
- else if (c = me(i.body), c.length === 1 && c[0] !== void 0 && (c = ht(c[0], t, false).map(gs), c.length === 1)) return o.map((u) => i.pre + c[0] + u);
2738
+ else if (c = me(i.body), c.length === 1 && c[0] !== void 0 && (c = ht(c[0], t, false).map(gs), c.length === 1)) return o.map((f) => i.pre + c[0] + f);
2739
2739
  let d;
2740
2740
  if (l && c[0] !== void 0 && c[1] !== void 0) {
2741
- let u = Ht(c[0]), m = Ht(c[1]), p = Math.max(c[0].length, c[1].length), w = c.length === 3 && c[2] !== void 0 ? Math.abs(Ht(c[2])) : 1, g = ys;
2742
- m < u && (w *= -1, g = bs);
2741
+ let f = Ht(c[0]), m = Ht(c[1]), p = Math.max(c[0].length, c[1].length), w = c.length === 3 && c[2] !== void 0 ? Math.abs(Ht(c[2])) : 1, g = ys;
2742
+ m < f && (w *= -1, g = bs);
2743
2743
  let E = c.some(ws);
2744
2744
  d = [];
2745
- for (let y = u; g(y, m); y += w) {
2745
+ for (let y = f; g(y, m); y += w) {
2746
2746
  let b;
2747
2747
  if (a) b = String.fromCharCode(y), b === "\\" && (b = "");
2748
2748
  else if (b = String(y), E) {
@@ -2756,10 +2756,10 @@ function ht(n7, t, e) {
2756
2756
  }
2757
2757
  } else {
2758
2758
  d = [];
2759
- for (let u = 0; u < c.length; u++) d.push.apply(d, ht(c[u], t, false));
2759
+ for (let f = 0; f < c.length; f++) d.push.apply(d, ht(c[f], t, false));
2760
2760
  }
2761
- for (let u = 0; u < d.length; u++) for (let m = 0; m < o.length && s.length < t; m++) {
2762
- let p = r + d[u] + o[m];
2761
+ for (let f = 0; f < d.length; f++) for (let m = 0; m < o.length && s.length < t; m++) {
2762
+ let p = r + d[f] + o[m];
2763
2763
  (!e || l || p) && s.push(p);
2764
2764
  }
2765
2765
  }
@@ -2776,7 +2776,7 @@ var we = (n7) => n7.join("");
2776
2776
  var ye = (n7, t) => {
2777
2777
  let e = t;
2778
2778
  if (n7.charAt(e) !== "[") throw new Error("not in a brace expression");
2779
- let s = [], i = [], r = e + 1, o = false, h = false, a = false, l = false, f = e, c = "";
2779
+ let s = [], i = [], r = e + 1, o = false, h = false, a = false, l = false, u = e, c = "";
2780
2780
  t: for (; r < n7.length; ) {
2781
2781
  let p = n7.charAt(r);
2782
2782
  if ((p === "!" || p === "^") && r === e + 1) {
@@ -2784,7 +2784,7 @@ var ye = (n7, t) => {
2784
2784
  continue;
2785
2785
  }
2786
2786
  if (p === "]" && o && !a) {
2787
- f = r + 1;
2787
+ u = r + 1;
2788
2788
  break;
2789
2789
  }
2790
2790
  if (o = true, p === "\\" && !a) {
@@ -2812,14 +2812,14 @@ var ye = (n7, t) => {
2812
2812
  }
2813
2813
  s.push(lt(p)), r++;
2814
2814
  }
2815
- if (f < r) return ["", false, 0, false];
2815
+ if (u < r) return ["", false, 0, false];
2816
2816
  if (!s.length && !i.length) return ["$.", false, n7.length - e, true];
2817
2817
  if (i.length === 0 && s.length === 1 && /^\\?.$/.test(s[0]) && !l) {
2818
2818
  let p = s[0].length === 2 ? s[0].slice(-1) : s[0];
2819
- return [Es(p), false, f - e, false];
2819
+ return [Es(p), false, u - e, false];
2820
2820
  }
2821
- let d = "[" + (l ? "^" : "") + we(s) + "]", u = "[" + (l ? "" : "^") + we(i) + "]";
2822
- return [s.length && i.length ? "(" + d + "|" + u + ")" : s.length ? d : u, h, f - e, true];
2821
+ let d = "[" + (l ? "^" : "") + we(s) + "]", f = "[" + (l ? "" : "^") + we(i) + "]";
2822
+ return [s.length && i.length ? "(" + d + "|" + f + ")" : s.length ? d : f, h, u - e, true];
2823
2823
  };
2824
2824
  var W = (n7, { windowsPathsNoEscape: t = false, magicalBraces: e = true } = {}) => e ? t ? n7.replace(/\[([^\/\\])\]/g, "$1") : n7.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1") : t ? n7.replace(/\[([^\/\\{}])\]/g, "$1") : n7.replace(/((?!\\).|^)\[([^\/\\{}])\]/g, "$1$2").replace(/\\([^\/{}])/g, "$1");
2825
2825
  var xs = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
@@ -2914,56 +2914,56 @@ var Q = class n {
2914
2914
  static #i(t, e, s, i) {
2915
2915
  let r = false, o = false, h = -1, a = false;
2916
2916
  if (e.type === null) {
2917
- let u = s, m = "";
2918
- for (; u < t.length; ) {
2919
- let p = t.charAt(u++);
2917
+ let f = s, m = "";
2918
+ for (; f < t.length; ) {
2919
+ let p = t.charAt(f++);
2920
2920
  if (r || p === "\\") {
2921
2921
  r = !r, m += p;
2922
2922
  continue;
2923
2923
  }
2924
2924
  if (o) {
2925
- u === h + 1 ? (p === "^" || p === "!") && (a = true) : p === "]" && !(u === h + 2 && a) && (o = false), m += p;
2925
+ f === h + 1 ? (p === "^" || p === "!") && (a = true) : p === "]" && !(f === h + 2 && a) && (o = false), m += p;
2926
2926
  continue;
2927
2927
  } else if (p === "[") {
2928
- o = true, h = u, a = false, m += p;
2928
+ o = true, h = f, a = false, m += p;
2929
2929
  continue;
2930
2930
  }
2931
- if (!i.noext && be(p) && t.charAt(u) === "(") {
2931
+ if (!i.noext && be(p) && t.charAt(f) === "(") {
2932
2932
  e.push(m), m = "";
2933
2933
  let w = new n(p, e);
2934
- u = n.#i(t, w, u, i), e.push(w);
2934
+ f = n.#i(t, w, f, i), e.push(w);
2935
2935
  continue;
2936
2936
  }
2937
2937
  m += p;
2938
2938
  }
2939
- return e.push(m), u;
2939
+ return e.push(m), f;
2940
2940
  }
2941
- let l = s + 1, f = new n(null, e), c = [], d = "";
2941
+ let l = s + 1, u = new n(null, e), c = [], d = "";
2942
2942
  for (; l < t.length; ) {
2943
- let u = t.charAt(l++);
2944
- if (r || u === "\\") {
2945
- r = !r, d += u;
2943
+ let f = t.charAt(l++);
2944
+ if (r || f === "\\") {
2945
+ r = !r, d += f;
2946
2946
  continue;
2947
2947
  }
2948
2948
  if (o) {
2949
- l === h + 1 ? (u === "^" || u === "!") && (a = true) : u === "]" && !(l === h + 2 && a) && (o = false), d += u;
2949
+ l === h + 1 ? (f === "^" || f === "!") && (a = true) : f === "]" && !(l === h + 2 && a) && (o = false), d += f;
2950
2950
  continue;
2951
- } else if (u === "[") {
2952
- o = true, h = l, a = false, d += u;
2951
+ } else if (f === "[") {
2952
+ o = true, h = l, a = false, d += f;
2953
2953
  continue;
2954
2954
  }
2955
- if (be(u) && t.charAt(l) === "(") {
2956
- f.push(d), d = "";
2957
- let m = new n(u, f);
2958
- f.push(m), l = n.#i(t, m, l, i);
2955
+ if (be(f) && t.charAt(l) === "(") {
2956
+ u.push(d), d = "";
2957
+ let m = new n(f, u);
2958
+ u.push(m), l = n.#i(t, m, l, i);
2959
2959
  continue;
2960
2960
  }
2961
- if (u === "|") {
2962
- f.push(d), d = "", c.push(f), f = new n(null, e);
2961
+ if (f === "|") {
2962
+ u.push(d), d = "", c.push(u), u = new n(null, e);
2963
2963
  continue;
2964
2964
  }
2965
- if (u === ")") return d === "" && e.#r.length === 0 && (e.#f = true), f.push(d), d = "", e.push(...c, f), l;
2966
- d += u;
2965
+ if (f === ")") return d === "" && e.#r.length === 0 && (e.#f = true), u.push(d), d = "", e.push(...c, u), l;
2966
+ d += f;
2967
2967
  }
2968
2968
  return e.type = null, e.#s = void 0, e.#r = [t.substring(s - 1)], l;
2969
2969
  }
@@ -2984,16 +2984,16 @@ var Q = class n {
2984
2984
  toRegExpSource(t) {
2985
2985
  let e = t ?? !!this.#h.dot;
2986
2986
  if (this.#t === this && this.#a(), !this.type) {
2987
- let a = this.isStart() && this.isEnd() && !this.#r.some((u) => typeof u != "string"), l = this.#r.map((u) => {
2988
- let [m, p, w, g] = typeof u == "string" ? n.#E(u, this.#s, a) : u.toRegExpSource(t);
2987
+ let a = this.isStart() && this.isEnd() && !this.#r.some((f) => typeof f != "string"), l = this.#r.map((f) => {
2988
+ let [m, p, w, g] = typeof f == "string" ? n.#E(f, this.#s, a) : f.toRegExpSource(t);
2989
2989
  return this.#s = this.#s || w, this.#n = this.#n || g, m;
2990
- }).join(""), f = "";
2990
+ }).join(""), u = "";
2991
2991
  if (this.isStart() && typeof this.#r[0] == "string" && !(this.#r.length === 1 && Ts.has(this.#r[0]))) {
2992
2992
  let m = Cs, p = e && m.has(l.charAt(0)) || l.startsWith("\\.") && m.has(l.charAt(2)) || l.startsWith("\\.\\.") && m.has(l.charAt(4)), w = !e && !t && m.has(l.charAt(0));
2993
- f = p ? vs : w ? Ct : "";
2993
+ u = p ? vs : w ? Ct : "";
2994
2994
  }
2995
2995
  let c = "";
2996
- return this.isEnd() && this.#t.#c && this.#o?.type === "!" && (c = "(?:$|\\/)"), [f + l + c, W(l), this.#s = !!this.#s, this.#n];
2996
+ return this.isEnd() && this.#t.#c && this.#o?.type === "!" && (c = "(?:$|\\/)"), [u + l + c, W(l), this.#s = !!this.#s, this.#n];
2997
2997
  }
2998
2998
  let s = this.type === "*" || this.type === "+", i = this.type === "!" ? "(?:(?!(?:" : "(?:", r = this.#d(e);
2999
2999
  if (this.isStart() && this.isEnd() && !r && this.type !== "!") {
@@ -3018,33 +3018,34 @@ var Q = class n {
3018
3018
  }).filter((e) => !(this.isStart() && this.isEnd()) || !!e).join("|");
3019
3019
  }
3020
3020
  static #E(t, e, s = false) {
3021
- let i = false, r = "", o = false;
3022
- for (let h = 0; h < t.length; h++) {
3023
- let a = t.charAt(h);
3021
+ let i = false, r = "", o = false, h = false;
3022
+ for (let a = 0; a < t.length; a++) {
3023
+ let l = t.charAt(a);
3024
3024
  if (i) {
3025
- i = false, r += (As.has(a) ? "\\" : "") + a;
3025
+ i = false, r += (As.has(l) ? "\\" : "") + l;
3026
3026
  continue;
3027
3027
  }
3028
- if (a === "\\") {
3029
- h === t.length - 1 ? r += "\\\\" : i = true;
3028
+ if (l === "*") {
3029
+ if (h) continue;
3030
+ h = true, r += s && /^[*]+$/.test(t) ? Ee : Se, e = true;
3031
+ continue;
3032
+ } else h = false;
3033
+ if (l === "\\") {
3034
+ a === t.length - 1 ? r += "\\\\" : i = true;
3030
3035
  continue;
3031
3036
  }
3032
- if (a === "[") {
3033
- let [l, f, c, d] = ye(t, h);
3034
- if (c) {
3035
- r += l, o = o || f, h += c - 1, e = e || d;
3037
+ if (l === "[") {
3038
+ let [u, c, d, f] = ye(t, a);
3039
+ if (d) {
3040
+ r += u, o = o || c, a += d - 1, e = e || f;
3036
3041
  continue;
3037
3042
  }
3038
3043
  }
3039
- if (a === "*") {
3040
- r += s && t === "*" ? Ee : Se, e = true;
3041
- continue;
3042
- }
3043
- if (a === "?") {
3044
+ if (l === "?") {
3044
3045
  r += Kt, e = true;
3045
3046
  continue;
3046
3047
  }
3047
- r += ks(a);
3048
+ r += ks(l);
3048
3049
  }
3049
3050
  return [r, W(t), !!e, o];
3050
3051
  }
@@ -3179,8 +3180,8 @@ var D = class {
3179
3180
  let i = this.globParts.map((r, o, h) => {
3180
3181
  if (this.isWindows && this.windowsNoMagicRoot) {
3181
3182
  let a = r[0] === "" && r[1] === "" && (r[2] === "?" || !ve.test(r[2])) && !ve.test(r[3]), l = /^[a-z]:/i.test(r[0]);
3182
- if (a) return [...r.slice(0, 4), ...r.slice(4).map((f) => this.parse(f))];
3183
- if (l) return [r[0], ...r.slice(1).map((f) => this.parse(f))];
3183
+ if (a) return [...r.slice(0, 4), ...r.slice(4).map((u) => this.parse(u))];
3184
+ if (l) return [r[0], ...r.slice(1).map((u) => this.parse(u))];
3184
3185
  }
3185
3186
  return r.map((a) => this.parse(a));
3186
3187
  });
@@ -3244,8 +3245,8 @@ var D = class {
3244
3245
  let h = s[i + 1], a = s[i + 2], l = s[i + 3];
3245
3246
  if (h !== ".." || !a || a === "." || a === ".." || !l || l === "." || l === "..") continue;
3246
3247
  e = true, s.splice(i, 1);
3247
- let f = s.slice(0);
3248
- f[i] = "**", t.push(f), i--;
3248
+ let u = s.slice(0);
3249
+ u[i] = "**", t.push(u), i--;
3249
3250
  }
3250
3251
  if (!this.preserveMultipleSlashes) {
3251
3252
  for (let o = 1; o < s.length - 1; o++) {
@@ -3310,30 +3311,30 @@ var D = class {
3310
3311
  r >= 2 && (t = this.levelTwoFileOptimize(t)), this.debug("matchOne", this, { file: t, pattern: e }), this.debug("matchOne", t.length, e.length);
3311
3312
  for (var o = 0, h = 0, a = t.length, l = e.length; o < a && h < l; o++, h++) {
3312
3313
  this.debug("matchOne loop");
3313
- var f = e[h], c = t[o];
3314
- if (this.debug(e, f, c), f === false) return false;
3315
- if (f === A) {
3316
- this.debug("GLOBSTAR", [e, f, c]);
3317
- var d = o, u = h + 1;
3318
- if (u === l) {
3314
+ var u = e[h], c = t[o];
3315
+ if (this.debug(e, u, c), u === false) return false;
3316
+ if (u === A) {
3317
+ this.debug("GLOBSTAR", [e, u, c]);
3318
+ var d = o, f = h + 1;
3319
+ if (f === l) {
3319
3320
  for (this.debug("** at the end"); o < a; o++) if (t[o] === "." || t[o] === ".." || !i.dot && t[o].charAt(0) === ".") return false;
3320
3321
  return true;
3321
3322
  }
3322
3323
  for (; d < a; ) {
3323
3324
  var m = t[d];
3324
3325
  if (this.debug(`
3325
- globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) return this.debug("globstar found match!", d, a, m), true;
3326
+ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) return this.debug("globstar found match!", d, a, m), true;
3326
3327
  if (m === "." || m === ".." || !i.dot && m.charAt(0) === ".") {
3327
- this.debug("dot detected!", t, d, e, u);
3328
+ this.debug("dot detected!", t, d, e, f);
3328
3329
  break;
3329
3330
  }
3330
3331
  this.debug("globstar swallow a segment, and continue"), d++;
3331
3332
  }
3332
3333
  return !!(s && (this.debug(`
3333
- >>> no match, partial?`, t, d, e, u), d === a));
3334
+ >>> no match, partial?`, t, d, e, f), d === a));
3334
3335
  }
3335
3336
  let p;
3336
- if (typeof f == "string" ? (p = c === f, this.debug("string match", f, c, p)) : (p = f.test(c), this.debug("pattern match", f, c, p)), !p) return false;
3337
+ if (typeof u == "string" ? (p = c === u, this.debug("string match", u, c, p)) : (p = u.test(c), this.debug("pattern match", u, c, p)), !p) return false;
3337
3338
  }
3338
3339
  if (o === a && h === l) return true;
3339
3340
  if (o === a) return s;
@@ -3363,16 +3364,16 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
3363
3364
  return typeof c == "string" ? ei(c) : c === A ? A : c._src;
3364
3365
  });
3365
3366
  l.forEach((c, d) => {
3366
- let u = l[d + 1], m = l[d - 1];
3367
- c !== A || m === A || (m === void 0 ? u !== void 0 && u !== A ? l[d + 1] = "(?:\\/|" + s + "\\/)?" + u : l[d] = s : u === void 0 ? l[d - 1] = m + "(?:\\/|\\/" + s + ")?" : u !== A && (l[d - 1] = m + "(?:\\/|\\/" + s + "\\/)" + u, l[d + 1] = A));
3367
+ let f = l[d + 1], m = l[d - 1];
3368
+ c !== A || m === A || (m === void 0 ? f !== void 0 && f !== A ? l[d + 1] = "(?:\\/|" + s + "\\/)?" + f : l[d] = s : f === void 0 ? l[d - 1] = m + "(?:\\/|\\/" + s + ")?" : f !== A && (l[d - 1] = m + "(?:\\/|\\/" + s + "\\/)" + f, l[d + 1] = A));
3368
3369
  });
3369
- let f = l.filter((c) => c !== A);
3370
- if (this.partial && f.length >= 1) {
3370
+ let u = l.filter((c) => c !== A);
3371
+ if (this.partial && u.length >= 1) {
3371
3372
  let c = [];
3372
- for (let d = 1; d <= f.length; d++) c.push(f.slice(0, d).join("/"));
3373
+ for (let d = 1; d <= u.length; d++) c.push(u.slice(0, d).join("/"));
3373
3374
  return "(?:" + c.join("|") + ")";
3374
3375
  }
3375
- return f.join("/");
3376
+ return u.join("/");
3376
3377
  }).join("|"), [o, h] = t.length > 1 ? ["(?:", ")"] : ["", ""];
3377
3378
  r = "^" + o + r + h + "$", this.partial && (r = "^(?:\\/|" + o + r.slice(1, -1) + h + ")$"), this.negate && (r = "^(?!" + r + ").+$");
3378
3379
  try {
@@ -3556,7 +3557,7 @@ var ft = class Me {
3556
3557
  return this.#o;
3557
3558
  }
3558
3559
  constructor(t) {
3559
- let { max: e = 0, ttl: s, ttlResolution: i = 1, ttlAutopurge: r, updateAgeOnGet: o, updateAgeOnHas: h, allowStale: a, dispose: l, onInsert: f, disposeAfter: c, noDisposeOnSet: d, noUpdateTTL: u, maxSize: m = 0, maxEntrySize: p = 0, sizeCalculation: w, fetchMethod: g, memoMethod: S, noDeleteOnFetchRejection: E, noDeleteOnStaleGet: y, allowStaleOnFetchRejection: b, allowStaleOnFetchAbort: z, ignoreFetchAbort: $, perf: J } = t;
3560
+ let { max: e = 0, ttl: s, ttlResolution: i = 1, ttlAutopurge: r, updateAgeOnGet: o, updateAgeOnHas: h, allowStale: a, dispose: l, onInsert: u, disposeAfter: c, noDisposeOnSet: d, noUpdateTTL: f, maxSize: m = 0, maxEntrySize: p = 0, sizeCalculation: w, fetchMethod: g, memoMethod: S, noDeleteOnFetchRejection: E, noDeleteOnStaleGet: y, allowStaleOnFetchRejection: b, allowStaleOnFetchAbort: z, ignoreFetchAbort: $, perf: J } = t;
3560
3561
  if (J !== void 0 && typeof J?.now != "function") throw new TypeError("perf option must have a now() method if specified");
3561
3562
  if (this.#c = J ?? si, e !== 0 && !q(e)) throw new TypeError("max option must be a nonnegative integer");
3562
3563
  let Z = e ? De(e) : Array;
@@ -3567,7 +3568,7 @@ var ft = class Me {
3567
3568
  }
3568
3569
  if (S !== void 0 && typeof S != "function") throw new TypeError("memoMethod must be a function if defined");
3569
3570
  if (this.#w = S, g !== void 0 && typeof g != "function") throw new TypeError("fetchMethod must be a function if specified");
3570
- if (this.#S = g, this.#A = !!g, this.#f = /* @__PURE__ */ new Map(), this.#a = new Array(e).fill(void 0), this.#i = new Array(e).fill(void 0), this.#d = new Z(e), this.#E = new Z(e), this.#b = 0, this.#p = 0, this.#R = ri.create(e), this.#h = 0, this.#u = 0, typeof l == "function" && (this.#n = l), typeof f == "function" && (this.#r = f), typeof c == "function" ? (this.#o = c, this.#m = []) : (this.#o = void 0, this.#m = void 0), this.#x = !!this.#n, this.#_ = !!this.#r, this.#e = !!this.#o, this.noDisposeOnSet = !!d, this.noUpdateTTL = !!u, this.noDeleteOnFetchRejection = !!E, this.allowStaleOnFetchRejection = !!b, this.allowStaleOnFetchAbort = !!z, this.ignoreFetchAbort = !!$, this.maxEntrySize !== 0) {
3571
+ if (this.#S = g, this.#A = !!g, this.#f = /* @__PURE__ */ new Map(), this.#a = new Array(e).fill(void 0), this.#i = new Array(e).fill(void 0), this.#d = new Z(e), this.#E = new Z(e), this.#b = 0, this.#p = 0, this.#R = ri.create(e), this.#h = 0, this.#u = 0, typeof l == "function" && (this.#n = l), typeof u == "function" && (this.#r = u), typeof c == "function" ? (this.#o = c, this.#m = []) : (this.#o = void 0, this.#m = void 0), this.#x = !!this.#n, this.#_ = !!this.#r, this.#e = !!this.#o, this.noDisposeOnSet = !!d, this.noUpdateTTL = !!f, this.noDeleteOnFetchRejection = !!E, this.allowStaleOnFetchRejection = !!b, this.allowStaleOnFetchAbort = !!z, this.ignoreFetchAbort = !!$, this.maxEntrySize !== 0) {
3571
3572
  if (this.#s !== 0 && !q(this.#s)) throw new TypeError("maxSize must be a positive integer if specified");
3572
3573
  if (!q(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
3573
3574
  this.#G();
@@ -3603,8 +3604,8 @@ var ft = class Me {
3603
3604
  let a = t[h], l = e[h];
3604
3605
  if (!a || !l) return;
3605
3606
  o.ttl = a, o.start = l, o.now = i || r();
3606
- let f = o.now - l;
3607
- o.remainingTTL = a - f;
3607
+ let u = o.now - l;
3608
+ o.remainingTTL = a - u;
3608
3609
  }
3609
3610
  };
3610
3611
  let i = 0, r = () => {
@@ -3621,8 +3622,8 @@ var ft = class Me {
3621
3622
  if (h === void 0) return 0;
3622
3623
  let a = t[h], l = e[h];
3623
3624
  if (!a || !l) return 1 / 0;
3624
- let f = (i || r()) - l;
3625
- return a - f;
3625
+ let u = (i || r()) - l;
3626
+ return a - u;
3626
3627
  }, this.#v = (o) => {
3627
3628
  let h = e[o], a = t[o];
3628
3629
  return !!a && !!h && (i || r()) - h > a;
@@ -3764,30 +3765,30 @@ var ft = class Me {
3764
3765
  }
3765
3766
  set(t, e, s = {}) {
3766
3767
  if (e === void 0) return this.delete(t), this;
3767
- let { ttl: i = this.ttl, start: r, noDisposeOnSet: o = this.noDisposeOnSet, sizeCalculation: h = this.sizeCalculation, status: a } = s, { noUpdateTTL: l = this.noUpdateTTL } = s, f = this.#I(t, e, s.size || 0, h);
3768
- if (this.maxEntrySize && f > this.maxEntrySize) return a && (a.set = "miss", a.maxEntrySizeExceeded = true), this.#O(t, "set"), this;
3768
+ let { ttl: i = this.ttl, start: r, noDisposeOnSet: o = this.noDisposeOnSet, sizeCalculation: h = this.sizeCalculation, status: a } = s, { noUpdateTTL: l = this.noUpdateTTL } = s, u = this.#I(t, e, s.size || 0, h);
3769
+ if (this.maxEntrySize && u > this.maxEntrySize) return a && (a.set = "miss", a.maxEntrySizeExceeded = true), this.#O(t, "set"), this;
3769
3770
  let c = this.#h === 0 ? void 0 : this.#f.get(t);
3770
- if (c === void 0) c = this.#h === 0 ? this.#p : this.#R.length !== 0 ? this.#R.pop() : this.#h === this.#t ? this.#B(false) : this.#h, this.#a[c] = t, this.#i[c] = e, this.#f.set(t, c), this.#d[this.#p] = c, this.#E[c] = this.#p, this.#p = c, this.#h++, this.#L(c, f, a), a && (a.set = "add"), l = false, this.#_ && this.#r?.(e, t, "add");
3771
+ if (c === void 0) c = this.#h === 0 ? this.#p : this.#R.length !== 0 ? this.#R.pop() : this.#h === this.#t ? this.#B(false) : this.#h, this.#a[c] = t, this.#i[c] = e, this.#f.set(t, c), this.#d[this.#p] = c, this.#E[c] = this.#p, this.#p = c, this.#h++, this.#L(c, u, a), a && (a.set = "add"), l = false, this.#_ && this.#r?.(e, t, "add");
3771
3772
  else {
3772
3773
  this.#W(c);
3773
3774
  let d = this.#i[c];
3774
3775
  if (e !== d) {
3775
3776
  if (this.#A && this.#l(d)) {
3776
3777
  d.__abortController.abort(new Error("replaced"));
3777
- let { __staleWhileFetching: u } = d;
3778
- u !== void 0 && !o && (this.#x && this.#n?.(u, t, "set"), this.#e && this.#m?.push([u, t, "set"]));
3778
+ let { __staleWhileFetching: f } = d;
3779
+ f !== void 0 && !o && (this.#x && this.#n?.(f, t, "set"), this.#e && this.#m?.push([f, t, "set"]));
3779
3780
  } else o || (this.#x && this.#n?.(d, t, "set"), this.#e && this.#m?.push([d, t, "set"]));
3780
- if (this.#P(c), this.#L(c, f, a), this.#i[c] = e, a) {
3781
+ if (this.#P(c), this.#L(c, u, a), this.#i[c] = e, a) {
3781
3782
  a.set = "replace";
3782
- let u = d && this.#l(d) ? d.__staleWhileFetching : d;
3783
- u !== void 0 && (a.oldValue = u);
3783
+ let f = d && this.#l(d) ? d.__staleWhileFetching : d;
3784
+ f !== void 0 && (a.oldValue = f);
3784
3785
  }
3785
3786
  } else a && (a.set = "update");
3786
3787
  this.#_ && this.onInsert?.(e, t, e === d ? "update" : "replace");
3787
3788
  }
3788
3789
  if (i !== 0 && !this.#g && this.#M(), this.#g && (l || this.#j(c, i, r), a && this.#N(a, c)), !o && this.#e && this.#m) {
3789
- let d = this.#m, u;
3790
- for (; u = d?.shift(); ) this.#o?.(...u);
3790
+ let d = this.#m, f;
3791
+ for (; f = d?.shift(); ) this.#o?.(...f);
3791
3792
  }
3792
3793
  return this;
3793
3794
  }
@@ -3834,11 +3835,11 @@ var ft = class Me {
3834
3835
  let a = { signal: o.signal, options: s, context: i }, l = (p, w = false) => {
3835
3836
  let { aborted: g } = o.signal, S = s.ignoreFetchAbort && p !== void 0, E = s.ignoreFetchAbort || !!(s.allowStaleOnFetchAbort && p !== void 0);
3836
3837
  if (s.status && (g && !w ? (s.status.fetchAborted = true, s.status.fetchError = o.signal.reason, S && (s.status.fetchAbortIgnored = true)) : s.status.fetchResolved = true), g && !S && !w) return c(o.signal.reason, E);
3837
- let y = u, b = this.#i[e];
3838
- return (b === u || S && w && b === void 0) && (p === void 0 ? y.__staleWhileFetching !== void 0 ? this.#i[e] = y.__staleWhileFetching : this.#O(t, "fetch") : (s.status && (s.status.fetchUpdated = true), this.set(t, p, a.options))), p;
3839
- }, f = (p) => (s.status && (s.status.fetchRejected = true, s.status.fetchError = p), c(p, false)), c = (p, w) => {
3840
- let { aborted: g } = o.signal, S = g && s.allowStaleOnFetchAbort, E = S || s.allowStaleOnFetchRejection, y = E || s.noDeleteOnFetchRejection, b = u;
3841
- if (this.#i[e] === u && (!y || !w && b.__staleWhileFetching === void 0 ? this.#O(t, "fetch") : S || (this.#i[e] = b.__staleWhileFetching)), E) return s.status && b.__staleWhileFetching !== void 0 && (s.status.returnedStale = true), b.__staleWhileFetching;
3838
+ let y = f, b = this.#i[e];
3839
+ return (b === f || S && w && b === void 0) && (p === void 0 ? y.__staleWhileFetching !== void 0 ? this.#i[e] = y.__staleWhileFetching : this.#O(t, "fetch") : (s.status && (s.status.fetchUpdated = true), this.set(t, p, a.options))), p;
3840
+ }, u = (p) => (s.status && (s.status.fetchRejected = true, s.status.fetchError = p), c(p, false)), c = (p, w) => {
3841
+ let { aborted: g } = o.signal, S = g && s.allowStaleOnFetchAbort, E = S || s.allowStaleOnFetchRejection, y = E || s.noDeleteOnFetchRejection, b = f;
3842
+ if (this.#i[e] === f && (!y || !w && b.__staleWhileFetching === void 0 ? this.#O(t, "fetch") : S || (this.#i[e] = b.__staleWhileFetching)), E) return s.status && b.__staleWhileFetching !== void 0 && (s.status.returnedStale = true), b.__staleWhileFetching;
3842
3843
  if (b.__returned === b) throw p;
3843
3844
  }, d = (p, w) => {
3844
3845
  let g = this.#S?.(t, r, a);
@@ -3847,7 +3848,7 @@ var ft = class Me {
3847
3848
  });
3848
3849
  };
3849
3850
  s.status && (s.status.fetchDispatched = true);
3850
- let u = new Promise(d).then(l, f), m = Object.assign(u, { __abortController: o, __staleWhileFetching: r, __returned: void 0 });
3851
+ let f = new Promise(d).then(l, u), m = Object.assign(f, { __abortController: o, __staleWhileFetching: r, __returned: void 0 });
3851
3852
  return e === void 0 ? (this.set(t, m, { ...a.options, status: void 0 }), e = this.#f.get(t)) : this.#i[e] = m, m;
3852
3853
  }
3853
3854
  #l(t) {
@@ -3856,9 +3857,9 @@ var ft = class Me {
3856
3857
  return !!e && e instanceof Promise && e.hasOwnProperty("__staleWhileFetching") && e.__abortController instanceof At;
3857
3858
  }
3858
3859
  async fetch(t, e = {}) {
3859
- let { allowStale: s = this.allowStale, updateAgeOnGet: i = this.updateAgeOnGet, noDeleteOnStaleGet: r = this.noDeleteOnStaleGet, ttl: o = this.ttl, noDisposeOnSet: h = this.noDisposeOnSet, size: a = 0, sizeCalculation: l = this.sizeCalculation, noUpdateTTL: f = this.noUpdateTTL, noDeleteOnFetchRejection: c = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: d = this.allowStaleOnFetchRejection, ignoreFetchAbort: u = this.ignoreFetchAbort, allowStaleOnFetchAbort: m = this.allowStaleOnFetchAbort, context: p, forceRefresh: w = false, status: g, signal: S } = e;
3860
+ let { allowStale: s = this.allowStale, updateAgeOnGet: i = this.updateAgeOnGet, noDeleteOnStaleGet: r = this.noDeleteOnStaleGet, ttl: o = this.ttl, noDisposeOnSet: h = this.noDisposeOnSet, size: a = 0, sizeCalculation: l = this.sizeCalculation, noUpdateTTL: u = this.noUpdateTTL, noDeleteOnFetchRejection: c = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: d = this.allowStaleOnFetchRejection, ignoreFetchAbort: f = this.ignoreFetchAbort, allowStaleOnFetchAbort: m = this.allowStaleOnFetchAbort, context: p, forceRefresh: w = false, status: g, signal: S } = e;
3860
3861
  if (!this.#A) return g && (g.fetch = "get"), this.get(t, { allowStale: s, updateAgeOnGet: i, noDeleteOnStaleGet: r, status: g });
3861
- let E = { allowStale: s, updateAgeOnGet: i, noDeleteOnStaleGet: r, ttl: o, noDisposeOnSet: h, size: a, sizeCalculation: l, noUpdateTTL: f, noDeleteOnFetchRejection: c, allowStaleOnFetchRejection: d, allowStaleOnFetchAbort: m, ignoreFetchAbort: u, status: g, signal: S }, y = this.#f.get(t);
3862
+ let E = { allowStale: s, updateAgeOnGet: i, noDeleteOnStaleGet: r, ttl: o, noDisposeOnSet: h, size: a, sizeCalculation: l, noUpdateTTL: u, noDeleteOnFetchRejection: c, allowStaleOnFetchRejection: d, allowStaleOnFetchAbort: m, ignoreFetchAbort: f, status: g, signal: S }, y = this.#f.get(t);
3862
3863
  if (y === void 0) {
3863
3864
  g && (g.fetch = "miss");
3864
3865
  let b = this.#U(t, y, E, p);
@@ -4014,7 +4015,7 @@ var te = class extends Mt {
4014
4015
  this.src.removeListener("error", this.proxyErrors), super.unpipe();
4015
4016
  }
4016
4017
  constructor(t, e, s) {
4017
- super(t, e, s), this.proxyErrors = (i) => e.emit("error", i), t.on("error", this.proxyErrors);
4018
+ super(t, e, s), this.proxyErrors = (i) => this.dest.emit("error", i), t.on("error", this.proxyErrors);
4018
4019
  }
4019
4020
  };
4020
4021
  var di = (n7) => !!n7.objectMode;
@@ -4255,17 +4256,18 @@ var V = class extends import_node_events.EventEmitter {
4255
4256
  if (i !== null) return Promise.resolve({ done: false, value: i });
4256
4257
  if (this[G]) return e();
4257
4258
  let r, o, h = (c) => {
4258
- this.off("data", a), this.off("end", l), this.off(x, f), e(), o(c);
4259
+ this.off("data", a), this.off("end", l), this.off(x, u), e(), o(c);
4259
4260
  }, a = (c) => {
4260
- this.off("error", h), this.off("end", l), this.off(x, f), this.pause(), r({ value: c, done: !!this[G] });
4261
+ this.off("error", h), this.off("end", l), this.off(x, u), this.pause(), r({ value: c, done: !!this[G] });
4261
4262
  }, l = () => {
4262
- this.off("error", h), this.off("data", a), this.off(x, f), e(), r({ done: true, value: void 0 });
4263
- }, f = () => h(new Error("stream destroyed"));
4263
+ this.off("error", h), this.off("data", a), this.off(x, u), e(), r({ done: true, value: void 0 });
4264
+ }, u = () => h(new Error("stream destroyed"));
4264
4265
  return new Promise((c, d) => {
4265
- o = d, r = c, this.once(x, f), this.once("error", h), this.once("end", l), this.once("data", a);
4266
+ o = d, r = c, this.once(x, u), this.once("error", h), this.once("end", l), this.once("data", a);
4266
4267
  });
4267
4268
  }, throw: e, return: e, [Symbol.asyncIterator]() {
4268
4269
  return this;
4270
+ }, [Symbol.asyncDispose]: async () => {
4269
4271
  } };
4270
4272
  }
4271
4273
  [Symbol.iterator]() {
@@ -4277,6 +4279,7 @@ var V = class extends import_node_events.EventEmitter {
4277
4279
  };
4278
4280
  return this.once("end", e), this.once(Xt, e), this.once(x, e), { next: s, throw: e, return: e, [Symbol.iterator]() {
4279
4281
  return this;
4282
+ }, [Symbol.dispose]: () => {
4280
4283
  } };
4281
4284
  }
4282
4285
  destroy(t) {
@@ -4647,8 +4650,8 @@ var R = class {
4647
4650
  }
4648
4651
  }
4649
4652
  #$(t) {
4650
- let { atime: e, atimeMs: s, birthtime: i, birthtimeMs: r, blksize: o, blocks: h, ctime: a, ctimeMs: l, dev: f, gid: c, ino: d, mode: u, mtime: m, mtimeMs: p, nlink: w, rdev: g, size: S, uid: E } = t;
4651
- this.#b = e, this.#a = s, this.#m = i, this.#E = r, this.#c = o, this.#f = h, this.#R = a, this.#d = l, this.#s = f, this.#S = c, this.#h = d, this.#n = u, this.#p = m, this.#i = p, this.#r = w, this.#w = g, this.#u = S, this.#o = E;
4653
+ let { atime: e, atimeMs: s, birthtime: i, birthtimeMs: r, blksize: o, blocks: h, ctime: a, ctimeMs: l, dev: u, gid: c, ino: d, mode: f, mtime: m, mtimeMs: p, nlink: w, rdev: g, size: S, uid: E } = t;
4654
+ this.#b = e, this.#a = s, this.#m = i, this.#E = r, this.#c = o, this.#f = h, this.#R = a, this.#d = l, this.#s = u, this.#S = c, this.#h = d, this.#n = f, this.#p = m, this.#i = p, this.#r = w, this.#w = g, this.#u = S, this.#o = E;
4652
4655
  let y = ie(t);
4653
4656
  this.#e = this.#e & gt | y | je, y !== L && y !== U && y !== X && (this.#e |= yt);
4654
4657
  }
@@ -4804,10 +4807,10 @@ var It = class {
4804
4807
  let a = h.substring(this.rootPath.length).split(s);
4805
4808
  if (a.length === 1 && !a[0] && a.pop(), i === void 0) throw new TypeError("must provide nocase setting to PathScurryBase ctor");
4806
4809
  this.nocase = i, this.root = this.newRoot(this.#r), this.roots[this.rootPath] = this.root;
4807
- let l = this.root, f = a.length - 1, c = e.sep, d = this.rootPath, u = false;
4810
+ let l = this.root, u = a.length - 1, c = e.sep, d = this.rootPath, f = false;
4808
4811
  for (let m of a) {
4809
- let p = f--;
4810
- l = l.child(m, { relative: new Array(p).fill("..").join(c), relativePosix: new Array(p).fill("..").join("/"), fullpath: d += (u ? "" : c) + m }), u = true;
4812
+ let p = u--;
4813
+ l = l.child(m, { relative: new Array(p).fill("..").join(c), relativePosix: new Array(p).fill("..").join("/"), fullpath: d += (f ? "" : c) + m }), f = true;
4811
4814
  }
4812
4815
  this.cwd = l;
4813
4816
  }
@@ -4895,8 +4898,8 @@ var It = class {
4895
4898
  let { withFileTypes: s = true, follow: i = false, filter: r, walkFilter: o } = e, h = [];
4896
4899
  (!r || r(t)) && h.push(s ? t : t.fullpath());
4897
4900
  let a = /* @__PURE__ */ new Set(), l = (c, d) => {
4898
- a.add(c), c.readdirCB((u, m) => {
4899
- if (u) return d(u);
4901
+ a.add(c), c.readdirCB((f, m) => {
4902
+ if (f) return d(f);
4900
4903
  let p = m.length;
4901
4904
  if (!p) return d();
4902
4905
  let w = () => {
@@ -4904,10 +4907,10 @@ var It = class {
4904
4907
  };
4905
4908
  for (let g of m) (!r || r(g)) && h.push(s ? g : g.fullpath()), i && g.isSymbolicLink() ? g.realpath().then((S) => S?.isUnknown() ? S.lstat() : S).then((S) => S?.shouldWalk(a, o) ? l(S, w) : w()) : g.shouldWalk(a, o) ? l(g, w) : w();
4906
4909
  }, true);
4907
- }, f = t;
4910
+ }, u = t;
4908
4911
  return new Promise((c, d) => {
4909
- l(f, (u) => {
4910
- if (u) return d(u);
4912
+ l(u, (f) => {
4913
+ if (f) return d(f);
4911
4914
  c(h);
4912
4915
  });
4913
4916
  });
@@ -4918,8 +4921,8 @@ var It = class {
4918
4921
  (!r || r(t)) && h.push(s ? t : t.fullpath());
4919
4922
  let a = /* @__PURE__ */ new Set([t]);
4920
4923
  for (let l of a) {
4921
- let f = l.readdirSync();
4922
- for (let c of f) {
4924
+ let u = l.readdirSync();
4925
+ for (let c of u) {
4923
4926
  (!r || r(c)) && h.push(s ? c : c.fullpath());
4924
4927
  let d = c;
4925
4928
  if (c.isSymbolicLink()) {
@@ -4947,11 +4950,11 @@ var It = class {
4947
4950
  let h = /* @__PURE__ */ new Set([t]);
4948
4951
  for (let a of h) {
4949
4952
  let l = a.readdirSync();
4950
- for (let f of l) {
4951
- (!r || r(f)) && (yield s ? f : f.fullpath());
4952
- let c = f;
4953
- if (f.isSymbolicLink()) {
4954
- if (!(i && (c = f.realpathSync()))) continue;
4953
+ for (let u of l) {
4954
+ (!r || r(u)) && (yield s ? u : u.fullpath());
4955
+ let c = u;
4956
+ if (u.isSymbolicLink()) {
4957
+ if (!(i && (c = u.realpathSync()))) continue;
4955
4958
  c.isUnknown() && c.lstatSync();
4956
4959
  }
4957
4960
  c.shouldWalk(h, o) && h.add(c);
@@ -4962,15 +4965,15 @@ var It = class {
4962
4965
  typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t, t = this.cwd);
4963
4966
  let { withFileTypes: s = true, follow: i = false, filter: r, walkFilter: o } = e, h = new V({ objectMode: true });
4964
4967
  (!r || r(t)) && h.write(s ? t : t.fullpath());
4965
- let a = /* @__PURE__ */ new Set(), l = [t], f = 0, c = () => {
4968
+ let a = /* @__PURE__ */ new Set(), l = [t], u = 0, c = () => {
4966
4969
  let d = false;
4967
4970
  for (; !d; ) {
4968
- let u = l.shift();
4969
- if (!u) {
4970
- f === 0 && h.end();
4971
+ let f = l.shift();
4972
+ if (!f) {
4973
+ u === 0 && h.end();
4971
4974
  return;
4972
4975
  }
4973
- f++, a.add(u);
4976
+ u++, a.add(f);
4974
4977
  let m = (w, g, S = false) => {
4975
4978
  if (w) return h.emit("error", w);
4976
4979
  if (i && !S) {
@@ -4982,14 +4985,14 @@ var It = class {
4982
4985
  }
4983
4986
  }
4984
4987
  for (let E of g) E && (!r || r(E)) && (h.write(s ? E : E.fullpath()) || (d = true));
4985
- f--;
4988
+ u--;
4986
4989
  for (let E of g) {
4987
4990
  let y = E.realpathCached() || E;
4988
4991
  y.shouldWalk(a, o) && l.push(y);
4989
4992
  }
4990
4993
  d && !h.flowing ? h.once("drain", c) : p || c();
4991
4994
  }, p = true;
4992
- u.readdirCB(m, true), p = false;
4995
+ f.readdirCB(m, true), p = false;
4993
4996
  }
4994
4997
  };
4995
4998
  return c(), h;
@@ -4998,18 +5001,18 @@ var It = class {
4998
5001
  typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t, t = this.cwd);
4999
5002
  let { withFileTypes: s = true, follow: i = false, filter: r, walkFilter: o } = e, h = new V({ objectMode: true }), a = /* @__PURE__ */ new Set();
5000
5003
  (!r || r(t)) && h.write(s ? t : t.fullpath());
5001
- let l = [t], f = 0, c = () => {
5004
+ let l = [t], u = 0, c = () => {
5002
5005
  let d = false;
5003
5006
  for (; !d; ) {
5004
- let u = l.shift();
5005
- if (!u) {
5006
- f === 0 && h.end();
5007
+ let f = l.shift();
5008
+ if (!f) {
5009
+ u === 0 && h.end();
5007
5010
  return;
5008
5011
  }
5009
- f++, a.add(u);
5010
- let m = u.readdirSync();
5012
+ u++, a.add(f);
5013
+ let m = f.readdirSync();
5011
5014
  for (let p of m) (!r || r(p)) && (h.write(s ? p : p.fullpath()) || (d = true));
5012
- f--;
5015
+ u--;
5013
5016
  for (let p of m) {
5014
5017
  let w = p;
5015
5018
  if (p.isSymbolicLink()) {
@@ -5067,10 +5070,11 @@ var St = class extends rt {
5067
5070
  super(t, { ...e, nocase: s });
5068
5071
  }
5069
5072
  };
5070
- var vr = process.platform === "win32" ? Pt : jt;
5073
+ var Cr = process.platform === "win32" ? Pt : jt;
5071
5074
  var Xe = process.platform === "win32" ? it : process.platform === "darwin" ? St : rt;
5072
5075
  var Di = (n7) => n7.length >= 1;
5073
5076
  var Mi = (n7) => n7.length >= 1;
5077
+ var Ni = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
5074
5078
  var nt = class n4 {
5075
5079
  #t;
5076
5080
  #s;
@@ -5090,18 +5094,21 @@ var nt = class n4 {
5090
5094
  if (this.length = t.length, s < 0 || s >= this.length) throw new TypeError("index out of range");
5091
5095
  if (this.#t = t, this.#s = e, this.#n = s, this.#r = i, this.#n === 0) {
5092
5096
  if (this.isUNC()) {
5093
- let [r, o, h, a, ...l] = this.#t, [f, c, d, u, ...m] = this.#s;
5097
+ let [r, o, h, a, ...l] = this.#t, [u, c, d, f, ...m] = this.#s;
5094
5098
  l[0] === "" && (l.shift(), m.shift());
5095
- let p = [r, o, h, a, ""].join("/"), w = [f, c, d, u, ""].join("/");
5099
+ let p = [r, o, h, a, ""].join("/"), w = [u, c, d, f, ""].join("/");
5096
5100
  this.#t = [p, ...l], this.#s = [w, ...m], this.length = this.#t.length;
5097
5101
  } else if (this.isDrive() || this.isAbsolute()) {
5098
5102
  let [r, ...o] = this.#t, [h, ...a] = this.#s;
5099
5103
  o[0] === "" && (o.shift(), a.shift());
5100
- let l = r + "/", f = h + "/";
5101
- this.#t = [l, ...o], this.#s = [f, ...a], this.length = this.#t.length;
5104
+ let l = r + "/", u = h + "/";
5105
+ this.#t = [l, ...o], this.#s = [u, ...a], this.length = this.#t.length;
5102
5106
  }
5103
5107
  }
5104
5108
  }
5109
+ [Ni]() {
5110
+ return "Pattern <" + this.#s.slice(this.#n).join("/") + ">";
5111
+ }
5105
5112
  pattern() {
5106
5113
  return this.#t[this.#n];
5107
5114
  }
@@ -5146,7 +5153,7 @@ var nt = class n4 {
5146
5153
  return this.#n === 0 || !this.isGlobstar() || !this.#u ? false : (this.#u = false, true);
5147
5154
  }
5148
5155
  };
5149
- var Ni = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux";
5156
+ var _i = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux";
5150
5157
  var ot = class {
5151
5158
  relative;
5152
5159
  relativeChildren;
@@ -5154,7 +5161,7 @@ var ot = class {
5154
5161
  absoluteChildren;
5155
5162
  platform;
5156
5163
  mmopts;
5157
- constructor(t, { nobrace: e, nocase: s, noext: i, noglobstar: r, platform: o = Ni }) {
5164
+ constructor(t, { nobrace: e, nocase: s, noext: i, noglobstar: r, platform: o = _i }) {
5158
5165
  this.relative = [], this.absolute = [], this.relativeChildren = [], this.absoluteChildren = [], this.platform = o, this.mmopts = { dot: true, nobrace: e, nocase: s, noext: i, noglobstar: r, optimizationLevel: 2, platform: o, nocomment: true, nonegate: true };
5159
5166
  for (let h of t) this.add(h);
5160
5167
  }
@@ -5253,9 +5260,9 @@ var Et = class n6 {
5253
5260
  }
5254
5261
  }
5255
5262
  if (i.isENOENT()) continue;
5256
- let a, l, f = false;
5257
- for (; typeof (a = r.pattern()) == "string" && (l = r.rest()); ) i = i.resolve(a), r = l, f = true;
5258
- if (a = r.pattern(), l = r.rest(), f) {
5263
+ let a, l, u = false;
5264
+ for (; typeof (a = r.pattern()) == "string" && (l = r.rest()); ) i = i.resolve(a), r = l, u = true;
5265
+ if (a = r.pattern(), l = r.rest(), u) {
5259
5266
  if (this.hasWalkedCache.hasWalked(i, r)) continue;
5260
5267
  this.hasWalkedCache.storeWalked(i, r);
5261
5268
  }
@@ -5268,8 +5275,8 @@ var Et = class n6 {
5268
5275
  let c = l?.pattern(), d = l?.rest();
5269
5276
  if (!l || (c === "" || c === ".") && !d) this.matches.add(i, h, c === "" || c === ".");
5270
5277
  else if (c === "..") {
5271
- let u = i.parent || i;
5272
- d ? this.hasWalkedCache.hasWalked(u, d) || this.subwalks.add(u, d) : this.matches.add(u, h, true);
5278
+ let f = i.parent || i;
5279
+ d ? this.hasWalkedCache.hasWalked(f, d) || this.subwalks.add(f, d) : this.matches.add(f, h, true);
5273
5280
  }
5274
5281
  } else a instanceof RegExp && this.subwalks.add(i, r);
5275
5282
  }
@@ -5306,7 +5313,7 @@ var Et = class n6 {
5306
5313
  t.isNamed(e) && (s ? this.subwalks.add(t, s) : this.matches.add(t, i, false));
5307
5314
  }
5308
5315
  };
5309
- var _i = (n7, t) => typeof n7 == "string" ? new ot([n7], t) : Array.isArray(n7) ? new ot(n7, t) : n7;
5316
+ var Li = (n7, t) => typeof n7 == "string" ? new ot([n7], t) : Array.isArray(n7) ? new ot(n7, t) : n7;
5310
5317
  var zt = class {
5311
5318
  path;
5312
5319
  patterns;
@@ -5321,7 +5328,7 @@ var zt = class {
5321
5328
  maxDepth;
5322
5329
  includeChildMatches;
5323
5330
  constructor(t, e, s) {
5324
- if (this.patterns = t, this.path = e, this.opts = s, this.#n = !s.posix && s.platform === "win32" ? "\\" : "/", this.includeChildMatches = s.includeChildMatches !== false, (s.ignore || !this.includeChildMatches) && (this.#s = _i(s.ignore ?? [], s), !this.includeChildMatches && typeof this.#s.add != "function")) {
5331
+ if (this.patterns = t, this.path = e, this.opts = s, this.#n = !s.posix && s.platform === "win32" ? "\\" : "/", this.includeChildMatches = s.includeChildMatches !== false, (s.ignore || !this.includeChildMatches) && (this.#s = Li(s.ignore ?? [], s), !this.includeChildMatches && typeof this.#s.add != "function")) {
5325
5332
  let i = "cannot ignore child matches, ignore lacks add() method.";
5326
5333
  throw new Error(i);
5327
5334
  }
@@ -5422,7 +5429,7 @@ var zt = class {
5422
5429
  if (this.maxDepth !== 1 / 0 && h.depth() >= this.maxDepth) continue;
5423
5430
  r++;
5424
5431
  let a = h.readdirCached();
5425
- h.calledReaddir() ? this.walkCB3(h, a, s, o) : h.readdirCB((l, f) => this.walkCB3(h, f, s, o), true);
5432
+ h.calledReaddir() ? this.walkCB3(h, a, s, o) : h.readdirCB((l, u) => this.walkCB3(h, u, s, o), true);
5426
5433
  }
5427
5434
  o();
5428
5435
  }
@@ -5508,7 +5515,7 @@ var vt = class extends zt {
5508
5515
  return this.path.isUnknown() && this.path.lstatSync(), this.walkCBSync(this.path, this.patterns, () => this.results.end()), this.results;
5509
5516
  }
5510
5517
  };
5511
- var Wi = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux";
5518
+ var Pi = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux";
5512
5519
  var I = class {
5513
5520
  absolute;
5514
5521
  cwd;
@@ -5544,18 +5551,18 @@ var I = class {
5544
5551
  if (e.noglobstar) throw new TypeError("base matching requires globstar");
5545
5552
  t = t.map((a) => a.includes("/") ? a : `./**/${a}`);
5546
5553
  }
5547
- if (this.pattern = t, this.platform = e.platform || Wi, this.opts = { ...e, platform: this.platform }, e.scurry) {
5554
+ if (this.pattern = t, this.platform = e.platform || Pi, this.opts = { ...e, platform: this.platform }, e.scurry) {
5548
5555
  if (this.scurry = e.scurry, e.nocase !== void 0 && e.nocase !== e.scurry.nocase) throw new Error("nocase option contradicts provided scurry option");
5549
5556
  } else {
5550
5557
  let a = e.platform === "win32" ? it : e.platform === "darwin" ? St : e.platform ? rt : Xe;
5551
5558
  this.scurry = new a(this.cwd, { nocase: e.nocase, fs: e.fs });
5552
5559
  }
5553
5560
  this.nocase = this.scurry.nocase;
5554
- let s = this.platform === "darwin" || this.platform === "win32", i = { ...e, dot: this.dot, matchBase: this.matchBase, nobrace: this.nobrace, nocase: this.nocase, nocaseMagicOnly: s, nocomment: true, noext: this.noext, nonegate: true, optimizationLevel: 2, platform: this.platform, windowsPathsNoEscape: this.windowsPathsNoEscape, debug: !!this.opts.debug }, r = this.pattern.map((a) => new D(a, i)), [o, h] = r.reduce((a, l) => (a[0].push(...l.set), a[1].push(...l.globParts), a), [[], []]);
5561
+ let s = this.platform === "darwin" || this.platform === "win32", i = { braceExpandMax: 1e4, ...e, dot: this.dot, matchBase: this.matchBase, nobrace: this.nobrace, nocase: this.nocase, nocaseMagicOnly: s, nocomment: true, noext: this.noext, nonegate: true, optimizationLevel: 2, platform: this.platform, windowsPathsNoEscape: this.windowsPathsNoEscape, debug: !!this.opts.debug }, r = this.pattern.map((a) => new D(a, i)), [o, h] = r.reduce((a, l) => (a[0].push(...l.set), a[1].push(...l.globParts), a), [[], []]);
5555
5562
  this.patterns = o.map((a, l) => {
5556
- let f = h[l];
5557
- if (!f) throw new Error("invalid pattern object");
5558
- return new nt(a, f, 0, this.platform);
5563
+ let u = h[l];
5564
+ if (!u) throw new Error("invalid pattern object");
5565
+ return new nt(a, u, 0, this.platform);
5559
5566
  });
5560
5567
  }
5561
5568
  async walk() {
@@ -5606,12 +5613,12 @@ function Ut(n7, t = {}) {
5606
5613
  function es(n7, t = {}) {
5607
5614
  return new I(n7, t).iterate();
5608
5615
  }
5609
- var Pi = Bt;
5610
- var ji = Object.assign(Qe, { sync: Bt });
5611
- var Ii = Ut;
5612
- var zi = Object.assign(es, { sync: Ut });
5613
- var Bi = Object.assign(ts, { stream: Bt, iterate: Ut });
5614
- var Ze = Object.assign(Je, { glob: Je, globSync: ts, sync: Bi, globStream: Qe, stream: ji, globStreamSync: Bt, streamSync: Pi, globIterate: es, iterate: zi, globIterateSync: Ut, iterateSync: Ii, Glob: I, hasMagic: le, escape: tt, unescape: W });
5616
+ var ji = Bt;
5617
+ var Ii = Object.assign(Qe, { sync: Bt });
5618
+ var zi = Ut;
5619
+ var Bi = Object.assign(es, { sync: Ut });
5620
+ var Ui = Object.assign(ts, { stream: Bt, iterate: Ut });
5621
+ var Ze = Object.assign(Je, { glob: Je, globSync: ts, sync: Ui, globStream: Qe, stream: Ii, globStreamSync: Bt, streamSync: ji, globIterate: es, iterate: Bi, globIterateSync: Ut, iterateSync: zi, Glob: I, hasMagic: le, escape: tt, unescape: W });
5615
5622
  Ze.glob = Ze;
5616
5623
 
5617
5624
  // src/api-extractor.ts
@@ -5711,7 +5718,7 @@ function createDedent(options) {
5711
5718
  result = result.trim();
5712
5719
  }
5713
5720
  if (escapeSpecialCharacters) {
5714
- result = result.replace(/\\n/g, "\n");
5721
+ result = result.replace(/\\n/g, "\n").replace(/\\t/g, " ").replace(/\\r/g, "\r").replace(/\\v/g, "\v").replace(/\\b/g, "\b").replace(/\\f/g, "\f").replace(/\\0/g, "\0").replace(/\\x([\da-fA-F]{2})/g, (_2, h) => String.fromCharCode(parseInt(h, 16))).replace(/\\u\{([\da-fA-F]{1,6})\}/g, (_2, h) => String.fromCodePoint(parseInt(h, 16))).replace(/\\u([\da-fA-F]{4})/g, (_2, h) => String.fromCharCode(parseInt(h, 16)));
5715
5722
  }
5716
5723
  if (typeof Bun !== "undefined") {
5717
5724
  result = result.replace(