@sourcegraph/amp 0.0.1749556889-gbc568f → 0.0.1749571294-gef5aa3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
- import { O as qe, s as $r, c as bh, a as _r, b as ti, f as Ue, d as Nt, p as Ft, m as Ee, e as Wn, g as wr, h as qt, i as mp, j as wh, o as ue, l as we, k as oe, n as re, q as be, r as Ge, t as Ke, u as He, v as ni, w as ot, x as _h, y as gp, z as ii, A as vp, M as Je, B as Sh, C as J, N as Hn, D as ai, E as Jr, F as Rs, G as yp, H as bp, I as xs, J as wp, K as Eh, L as _p, P as cl, Q as jt, R as Sp, S as Ep, T as Pp, U as Cp, V as Tp, W as Rp, X as xp, Y as Op, Z as Ap, _ as Lp, $ as Ip, a0 as $p, a1 as Dp, a2 as Mp, a3 as kp, a4 as Fp, a5 as qp, a6 as jp, a7 as Np, a8 as Ph, a9 as Up, aa as Gn, ab as Hp, ac as Bp, ad as zp, ae as st, af as Vp, ag as Wp, ah as Ch, ai as Ct, aj as ss, ak as ls, al as Yr, am as Gp, an as Kp, ao as Jp, ap as Yp, aq as Os, ar as Si, as as As, at as jr, au as us, av as Qp, aw as Zp, ax as fl, ay as Xp, az as em, aA as cs, aB as Th, aC as rm } from "./console-DMpfGJFj.js";
2
+ import { O as qe, s as $r, c as bh, a as _r, b as ti, f as Ue, d as Nt, p as Ft, m as Ee, e as Wn, g as wr, h as qt, i as mp, j as wh, o as ue, l as we, k as oe, n as re, q as be, r as Ge, t as Ke, u as He, v as ni, w as ot, x as _h, y as gp, z as ii, A as vp, M as Je, B as Sh, C as J, N as Hn, D as ai, E as Jr, F as Rs, G as yp, H as bp, I as xs, J as wp, K as Eh, L as _p, P as cl, Q as jt, R as Sp, S as Ep, T as Pp, U as Cp, V as Tp, W as Rp, X as xp, Y as Op, Z as Ap, _ as Lp, $ as Ip, a0 as $p, a1 as Dp, a2 as Mp, a3 as kp, a4 as Fp, a5 as qp, a6 as jp, a7 as Np, a8 as Ph, a9 as Up, aa as Gn, ab as Hp, ac as Bp, ad as zp, ae as st, af as Vp, ag as Wp, ah as Ch, ai as Ct, aj as ss, ak as ls, al as Yr, am as Gp, an as Kp, ao as Jp, ap as Yp, aq as Os, ar as Si, as as As, at as jr, au as us, av as Qp, aw as Zp, ax as fl, ay as Xp, az as em, aA as cs, aB as Th, aC as rm } from "./console-DK0gDzNQ.js";
3
3
  import * as tm from "node:fs/promises";
4
4
  import nt, { readdir as Rh, stat as xh, readFile as Or, mkdir as Kn, writeFile as Lt, unlink as nm, readlink as im, open as am } from "node:fs/promises";
5
5
  import * as om from "node:path";
6
6
  import ge, { join as Ve, dirname as hl } from "node:path";
7
- import { i as dl, F as Ei, f as cr, a as sm, s as lm } from "./client-jPIT0xZX.js";
7
+ import { i as dl, F as Ei, f as cr, a as sm, s as lm } from "./client-C1WG2nEf.js";
8
8
  import Ls from "node:events";
9
9
  import * as um from "node:child_process";
10
10
  import cm, { execFile as Oh, spawn as oi, exec as Nr } from "node:child_process";
@@ -18,7 +18,7 @@ import Sm, { createGzip as Em } from "node:zlib";
18
18
  import Pm from "node:string_decoder";
19
19
  import Cm, { createServer as Ah } from "node:http";
20
20
  import Tm from "node:https";
21
- import { r as Rm } from "./executable-DHpRbG2D.js";
21
+ import { r as Rm } from "./executable-5cBRGrsC.js";
22
22
  import { pipeline as xm } from "node:stream/promises";
23
23
  import { lookup as Om } from "node:dns";
24
24
  const Ir = Symbol.for("@@pendingOperation");
@@ -1146,8 +1146,8 @@ function Ag() {
1146
1146
  i(e);
1147
1147
  })(Og, function(n) {
1148
1148
  function i() {
1149
- for (var H = arguments.length, N = Array(H), V = 0; V < H; V++)
1150
- N[V] = arguments[V];
1149
+ for (var H = arguments.length, N = Array(H), z = 0; z < H; z++)
1150
+ N[z] = arguments[z];
1151
1151
  if (N.length > 1) {
1152
1152
  N[0] = N[0].slice(0, -1);
1153
1153
  for (var Q = N.length - 1, Y = 1; Y < Q; ++Y)
@@ -1169,20 +1169,20 @@ function Ag() {
1169
1169
  return H != null ? H instanceof Array ? H : typeof H.length != "number" || H.split || H.setInterval || H.call ? [H] : Array.prototype.slice.call(H) : [];
1170
1170
  }
1171
1171
  function s(H, N) {
1172
- var V = H;
1172
+ var z = H;
1173
1173
  if (N)
1174
1174
  for (var Q in N)
1175
- V[Q] = N[Q];
1176
- return V;
1175
+ z[Q] = N[Q];
1176
+ return z;
1177
1177
  }
1178
1178
  function c(H) {
1179
- var N = "[A-Za-z]", V = "[0-9]", Q = i(V, "[A-Fa-f]"), Y = r(r("%[EFef]" + Q + "%" + Q + Q + "%" + Q + Q) + "|" + r("%[89A-Fa-f]" + Q + "%" + Q + Q) + "|" + r("%" + Q + Q)), ce = "[\\:\\/\\?\\#\\[\\]\\@]", fe = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", _e = i(ce, fe), xe = H ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", De = H ? "[\\uE000-\\uF8FF]" : "[]", ye = i(N, V, "[\\-\\.\\_\\~]", xe);
1180
- r(N + i(N, V, "[\\+\\-\\.]") + "*"), r(r(Y + "|" + i(ye, fe, "[\\:]")) + "*");
1181
- var Ce = r(r("25[0-5]") + "|" + r("2[0-4]" + V) + "|" + r("1" + V + V) + "|" + r("0?[1-9]" + V) + "|0?0?" + V), Me = r(Ce + "\\." + Ce + "\\." + Ce + "\\." + Ce), pe = r(Q + "{1,4}"), Oe = r(r(pe + "\\:" + pe) + "|" + Me), ke = r(r(pe + "\\:") + "{6}" + Oe), Ae = r("\\:\\:" + r(pe + "\\:") + "{5}" + Oe), Cr = r(r(pe) + "?\\:\\:" + r(pe + "\\:") + "{4}" + Oe), or = r(r(r(pe + "\\:") + "{0,1}" + pe) + "?\\:\\:" + r(pe + "\\:") + "{3}" + Oe), sr = r(r(r(pe + "\\:") + "{0,2}" + pe) + "?\\:\\:" + r(pe + "\\:") + "{2}" + Oe), Vr = r(r(r(pe + "\\:") + "{0,3}" + pe) + "?\\:\\:" + pe + "\\:" + Oe), Fr = r(r(r(pe + "\\:") + "{0,4}" + pe) + "?\\:\\:" + Oe), Xe = r(r(r(pe + "\\:") + "{0,5}" + pe) + "?\\:\\:" + pe), lr = r(r(r(pe + "\\:") + "{0,6}" + pe) + "?\\:\\:"), qr = r([ke, Ae, Cr, or, sr, Vr, Fr, Xe, lr].join("|")), gr = r(r(ye + "|" + Y) + "+");
1179
+ var N = "[A-Za-z]", z = "[0-9]", Q = i(z, "[A-Fa-f]"), Y = r(r("%[EFef]" + Q + "%" + Q + Q + "%" + Q + Q) + "|" + r("%[89A-Fa-f]" + Q + "%" + Q + Q) + "|" + r("%" + Q + Q)), ce = "[\\:\\/\\?\\#\\[\\]\\@]", fe = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", _e = i(ce, fe), xe = H ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", De = H ? "[\\uE000-\\uF8FF]" : "[]", ye = i(N, z, "[\\-\\.\\_\\~]", xe);
1180
+ r(N + i(N, z, "[\\+\\-\\.]") + "*"), r(r(Y + "|" + i(ye, fe, "[\\:]")) + "*");
1181
+ var Ce = r(r("25[0-5]") + "|" + r("2[0-4]" + z) + "|" + r("1" + z + z) + "|" + r("0?[1-9]" + z) + "|0?0?" + z), Me = r(Ce + "\\." + Ce + "\\." + Ce + "\\." + Ce), pe = r(Q + "{1,4}"), Oe = r(r(pe + "\\:" + pe) + "|" + Me), ke = r(r(pe + "\\:") + "{6}" + Oe), Ae = r("\\:\\:" + r(pe + "\\:") + "{5}" + Oe), Cr = r(r(pe) + "?\\:\\:" + r(pe + "\\:") + "{4}" + Oe), or = r(r(r(pe + "\\:") + "{0,1}" + pe) + "?\\:\\:" + r(pe + "\\:") + "{3}" + Oe), sr = r(r(r(pe + "\\:") + "{0,2}" + pe) + "?\\:\\:" + r(pe + "\\:") + "{2}" + Oe), Vr = r(r(r(pe + "\\:") + "{0,3}" + pe) + "?\\:\\:" + pe + "\\:" + Oe), Fr = r(r(r(pe + "\\:") + "{0,4}" + pe) + "?\\:\\:" + Oe), Xe = r(r(r(pe + "\\:") + "{0,5}" + pe) + "?\\:\\:" + pe), lr = r(r(r(pe + "\\:") + "{0,6}" + pe) + "?\\:\\:"), qr = r([ke, Ae, Cr, or, sr, Vr, Fr, Xe, lr].join("|")), gr = r(r(ye + "|" + Y) + "+");
1182
1182
  r("[vV]" + Q + "+\\." + i(ye, fe, "[\\:]") + "+"), r(r(Y + "|" + i(ye, fe)) + "*");
1183
1183
  var yt = r(Y + "|" + i(ye, fe, "[\\:\\@]"));
1184
1184
  return r(r(Y + "|" + i(ye, fe, "[\\@]")) + "+"), r(r(yt + "|" + i("[\\/\\?]", De)) + "*"), {
1185
- NOT_SCHEME: new RegExp(i("[^]", N, V, "[\\+\\-\\.]"), "g"),
1185
+ NOT_SCHEME: new RegExp(i("[^]", N, z, "[\\+\\-\\.]"), "g"),
1186
1186
  NOT_USERINFO: new RegExp(i("[^\\%\\:]", ye, fe), "g"),
1187
1187
  NOT_HOST: new RegExp(i("[^\\%\\[\\]\\:]", ye, fe), "g"),
1188
1188
  NOT_PATH: new RegExp(i("[^\\%\\/\\:\\@]", ye, fe), "g"),
@@ -1199,10 +1199,10 @@ function Ag() {
1199
1199
  };
1200
1200
  }
1201
1201
  var f = c(!1), y = c(!0), g = /* @__PURE__ */ function() {
1202
- function H(N, V) {
1202
+ function H(N, z) {
1203
1203
  var Q = [], Y = !0, ce = !1, fe = void 0;
1204
1204
  try {
1205
- for (var _e = N[Symbol.iterator](), xe; !(Y = (xe = _e.next()).done) && (Q.push(xe.value), !(V && Q.length === V)); Y = !0)
1205
+ for (var _e = N[Symbol.iterator](), xe; !(Y = (xe = _e.next()).done) && (Q.push(xe.value), !(z && Q.length === z)); Y = !0)
1206
1206
  ;
1207
1207
  } catch (De) {
1208
1208
  ce = !0, fe = De;
@@ -1215,17 +1215,17 @@ function Ag() {
1215
1215
  }
1216
1216
  return Q;
1217
1217
  }
1218
- return function(N, V) {
1218
+ return function(N, z) {
1219
1219
  if (Array.isArray(N))
1220
1220
  return N;
1221
1221
  if (Symbol.iterator in Object(N))
1222
- return H(N, V);
1222
+ return H(N, z);
1223
1223
  throw new TypeError("Invalid attempt to destructure non-iterable instance");
1224
1224
  };
1225
1225
  }(), d = function(H) {
1226
1226
  if (Array.isArray(H)) {
1227
- for (var N = 0, V = Array(H.length); N < H.length; N++) V[N] = H[N];
1228
- return V;
1227
+ for (var N = 0, z = Array(H.length); N < H.length; N++) z[N] = H[N];
1228
+ return z;
1229
1229
  } else
1230
1230
  return Array.from(H);
1231
1231
  }, p = 2147483647, m = 36, v = 1, l = 26, h = 38, b = 700, w = 72, _ = 128, A = "-", P = /^xn--/, T = /[^\0-\x7E]/, R = /[\x2E\u3002\uFF0E\uFF61]/g, x = {
@@ -1237,22 +1237,22 @@ function Ag() {
1237
1237
  throw new RangeError(x[H]);
1238
1238
  }
1239
1239
  function $(H, N) {
1240
- for (var V = [], Q = H.length; Q--; )
1241
- V[Q] = N(H[Q]);
1242
- return V;
1240
+ for (var z = [], Q = H.length; Q--; )
1241
+ z[Q] = N(H[Q]);
1242
+ return z;
1243
1243
  }
1244
1244
  function L(H, N) {
1245
- var V = H.split("@"), Q = "";
1246
- V.length > 1 && (Q = V[0] + "@", H = V[1]), H = H.replace(R, ".");
1245
+ var z = H.split("@"), Q = "";
1246
+ z.length > 1 && (Q = z[0] + "@", H = z[1]), H = H.replace(R, ".");
1247
1247
  var Y = H.split("."), ce = $(Y, N).join(".");
1248
1248
  return Q + ce;
1249
1249
  }
1250
1250
  function k(H) {
1251
- for (var N = [], V = 0, Q = H.length; V < Q; ) {
1252
- var Y = H.charCodeAt(V++);
1253
- if (Y >= 55296 && Y <= 56319 && V < Q) {
1254
- var ce = H.charCodeAt(V++);
1255
- (ce & 64512) == 56320 ? N.push(((Y & 1023) << 10) + (ce & 1023) + 65536) : (N.push(Y), V--);
1251
+ for (var N = [], z = 0, Q = H.length; z < Q; ) {
1252
+ var Y = H.charCodeAt(z++);
1253
+ if (Y >= 55296 && Y <= 56319 && z < Q) {
1254
+ var ce = H.charCodeAt(z++);
1255
+ (ce & 64512) == 56320 ? N.push(((Y & 1023) << 10) + (ce & 1023) + 65536) : (N.push(Y), z--);
1256
1256
  } else
1257
1257
  N.push(Y);
1258
1258
  }
@@ -1262,12 +1262,12 @@ function Ag() {
1262
1262
  return String.fromCodePoint.apply(String, d(N));
1263
1263
  }, F = function(N) {
1264
1264
  return N - 48 < 10 ? N - 22 : N - 65 < 26 ? N - 65 : N - 97 < 26 ? N - 97 : m;
1265
- }, j = function(N, V) {
1266
- return N + 22 + 75 * (N < 26) - ((V != 0) << 5);
1267
- }, B = function(N, V, Q) {
1265
+ }, j = function(N, z) {
1266
+ return N + 22 + 75 * (N < 26) - ((z != 0) << 5);
1267
+ }, V = function(N, z, Q) {
1268
1268
  var Y = 0;
1269
1269
  for (
1270
- N = Q ? S(N / b) : N >> 1, N += S(N / V);
1270
+ N = Q ? S(N / b) : N >> 1, N += S(N / z);
1271
1271
  /* no initialization */
1272
1272
  N > C * l >> 1;
1273
1273
  Y += m
@@ -1275,10 +1275,10 @@ function Ag() {
1275
1275
  N = S(N / C);
1276
1276
  return S(Y + (C + 1) * N / (N + h));
1277
1277
  }, G = function(N) {
1278
- var V = [], Q = N.length, Y = 0, ce = _, fe = w, _e = N.lastIndexOf(A);
1278
+ var z = [], Q = N.length, Y = 0, ce = _, fe = w, _e = N.lastIndexOf(A);
1279
1279
  _e < 0 && (_e = 0);
1280
1280
  for (var xe = 0; xe < _e; ++xe)
1281
- N.charCodeAt(xe) >= 128 && E("not-basic"), V.push(N.charCodeAt(xe));
1281
+ N.charCodeAt(xe) >= 128 && E("not-basic"), z.push(N.charCodeAt(xe));
1282
1282
  for (var De = _e > 0 ? _e + 1 : 0; De < Q; ) {
1283
1283
  for (
1284
1284
  var ye = Y, Ce = 1, Me = m;
@@ -1295,18 +1295,18 @@ function Ag() {
1295
1295
  var ke = m - Oe;
1296
1296
  Ce > S(p / ke) && E("overflow"), Ce *= ke;
1297
1297
  }
1298
- var Ae = V.length + 1;
1299
- fe = B(Y - ye, Ae, ye == 0), S(Y / Ae) > p - ce && E("overflow"), ce += S(Y / Ae), Y %= Ae, V.splice(Y++, 0, ce);
1298
+ var Ae = z.length + 1;
1299
+ fe = V(Y - ye, Ae, ye == 0), S(Y / Ae) > p - ce && E("overflow"), ce += S(Y / Ae), Y %= Ae, z.splice(Y++, 0, ce);
1300
1300
  }
1301
- return String.fromCodePoint.apply(String, V);
1301
+ return String.fromCodePoint.apply(String, z);
1302
1302
  }, X = function(N) {
1303
- var V = [];
1303
+ var z = [];
1304
1304
  N = k(N);
1305
1305
  var Q = N.length, Y = _, ce = 0, fe = w, _e = !0, xe = !1, De = void 0;
1306
1306
  try {
1307
1307
  for (var ye = N[Symbol.iterator](), Ce; !(_e = (Ce = ye.next()).done); _e = !0) {
1308
1308
  var Me = Ce.value;
1309
- Me < 128 && V.push(D(Me));
1309
+ Me < 128 && z.push(D(Me));
1310
1310
  }
1311
1311
  } catch (bt) {
1312
1312
  xe = !0, De = bt;
@@ -1318,8 +1318,8 @@ function Ag() {
1318
1318
  throw De;
1319
1319
  }
1320
1320
  }
1321
- var pe = V.length, Oe = pe;
1322
- for (pe && V.push(A); Oe < Q; ) {
1321
+ var pe = z.length, Oe = pe;
1322
+ for (pe && z.push(A); Oe < Q; ) {
1323
1323
  var ke = p, Ae = !0, Cr = !1, or = void 0;
1324
1324
  try {
1325
1325
  for (var sr = N[Symbol.iterator](), Vr; !(Ae = (Vr = sr.next()).done); Ae = !0) {
@@ -1353,9 +1353,9 @@ function Ag() {
1353
1353
  if (Gt < Jt)
1354
1354
  break;
1355
1355
  var ll = Gt - Jt, ul = m - Jt;
1356
- V.push(D(j(Jt + ll % ul, 0))), Gt = S(ll / ul);
1356
+ z.push(D(j(Jt + ll % ul, 0))), Gt = S(ll / ul);
1357
1357
  }
1358
- V.push(D(j(Gt, 0))), fe = B(ce, Xe, Oe == pe), ce = 0, ++Oe;
1358
+ z.push(D(j(Gt, 0))), fe = V(ce, Xe, Oe == pe), ce = 0, ++Oe;
1359
1359
  }
1360
1360
  }
1361
1361
  } catch (bt) {
@@ -1370,14 +1370,14 @@ function Ag() {
1370
1370
  }
1371
1371
  ++ce, ++Y;
1372
1372
  }
1373
- return V.join("");
1373
+ return z.join("");
1374
1374
  }, W = function(N) {
1375
- return L(N, function(V) {
1376
- return P.test(V) ? G(V.slice(4).toLowerCase()) : V;
1375
+ return L(N, function(z) {
1376
+ return P.test(z) ? G(z.slice(4).toLowerCase()) : z;
1377
1377
  });
1378
1378
  }, ne = function(N) {
1379
- return L(N, function(V) {
1380
- return T.test(V) ? "xn--" + X(V) : V;
1379
+ return L(N, function(z) {
1380
+ return T.test(z) ? "xn--" + X(z) : z;
1381
1381
  });
1382
1382
  }, O = {
1383
1383
  /**
@@ -1402,50 +1402,50 @@ function Ag() {
1402
1402
  toASCII: ne,
1403
1403
  toUnicode: W
1404
1404
  }, M = {};
1405
- function z(H) {
1406
- var N = H.charCodeAt(0), V = void 0;
1407
- return N < 16 ? V = "%0" + N.toString(16).toUpperCase() : N < 128 ? V = "%" + N.toString(16).toUpperCase() : N < 2048 ? V = "%" + (N >> 6 | 192).toString(16).toUpperCase() + "%" + (N & 63 | 128).toString(16).toUpperCase() : V = "%" + (N >> 12 | 224).toString(16).toUpperCase() + "%" + (N >> 6 & 63 | 128).toString(16).toUpperCase() + "%" + (N & 63 | 128).toString(16).toUpperCase(), V;
1405
+ function B(H) {
1406
+ var N = H.charCodeAt(0), z = void 0;
1407
+ return N < 16 ? z = "%0" + N.toString(16).toUpperCase() : N < 128 ? z = "%" + N.toString(16).toUpperCase() : N < 2048 ? z = "%" + (N >> 6 | 192).toString(16).toUpperCase() + "%" + (N & 63 | 128).toString(16).toUpperCase() : z = "%" + (N >> 12 | 224).toString(16).toUpperCase() + "%" + (N >> 6 & 63 | 128).toString(16).toUpperCase() + "%" + (N & 63 | 128).toString(16).toUpperCase(), z;
1408
1408
  }
1409
1409
  function ee(H) {
1410
- for (var N = "", V = 0, Q = H.length; V < Q; ) {
1411
- var Y = parseInt(H.substr(V + 1, 2), 16);
1410
+ for (var N = "", z = 0, Q = H.length; z < Q; ) {
1411
+ var Y = parseInt(H.substr(z + 1, 2), 16);
1412
1412
  if (Y < 128)
1413
- N += String.fromCharCode(Y), V += 3;
1413
+ N += String.fromCharCode(Y), z += 3;
1414
1414
  else if (Y >= 194 && Y < 224) {
1415
- if (Q - V >= 6) {
1416
- var ce = parseInt(H.substr(V + 4, 2), 16);
1415
+ if (Q - z >= 6) {
1416
+ var ce = parseInt(H.substr(z + 4, 2), 16);
1417
1417
  N += String.fromCharCode((Y & 31) << 6 | ce & 63);
1418
1418
  } else
1419
- N += H.substr(V, 6);
1420
- V += 6;
1419
+ N += H.substr(z, 6);
1420
+ z += 6;
1421
1421
  } else if (Y >= 224) {
1422
- if (Q - V >= 9) {
1423
- var fe = parseInt(H.substr(V + 4, 2), 16), _e = parseInt(H.substr(V + 7, 2), 16);
1422
+ if (Q - z >= 9) {
1423
+ var fe = parseInt(H.substr(z + 4, 2), 16), _e = parseInt(H.substr(z + 7, 2), 16);
1424
1424
  N += String.fromCharCode((Y & 15) << 12 | (fe & 63) << 6 | _e & 63);
1425
1425
  } else
1426
- N += H.substr(V, 9);
1427
- V += 9;
1426
+ N += H.substr(z, 9);
1427
+ z += 9;
1428
1428
  } else
1429
- N += H.substr(V, 3), V += 3;
1429
+ N += H.substr(z, 3), z += 3;
1430
1430
  }
1431
1431
  return N;
1432
1432
  }
1433
1433
  function K(H, N) {
1434
- function V(Q) {
1434
+ function z(Q) {
1435
1435
  var Y = ee(Q);
1436
1436
  return Y.match(N.UNRESERVED) ? Y : Q;
1437
1437
  }
1438
- return H.scheme && (H.scheme = String(H.scheme).replace(N.PCT_ENCODED, V).toLowerCase().replace(N.NOT_SCHEME, "")), H.userinfo !== void 0 && (H.userinfo = String(H.userinfo).replace(N.PCT_ENCODED, V).replace(N.NOT_USERINFO, z).replace(N.PCT_ENCODED, o)), H.host !== void 0 && (H.host = String(H.host).replace(N.PCT_ENCODED, V).toLowerCase().replace(N.NOT_HOST, z).replace(N.PCT_ENCODED, o)), H.path !== void 0 && (H.path = String(H.path).replace(N.PCT_ENCODED, V).replace(H.scheme ? N.NOT_PATH : N.NOT_PATH_NOSCHEME, z).replace(N.PCT_ENCODED, o)), H.query !== void 0 && (H.query = String(H.query).replace(N.PCT_ENCODED, V).replace(N.NOT_QUERY, z).replace(N.PCT_ENCODED, o)), H.fragment !== void 0 && (H.fragment = String(H.fragment).replace(N.PCT_ENCODED, V).replace(N.NOT_FRAGMENT, z).replace(N.PCT_ENCODED, o)), H;
1438
+ return H.scheme && (H.scheme = String(H.scheme).replace(N.PCT_ENCODED, z).toLowerCase().replace(N.NOT_SCHEME, "")), H.userinfo !== void 0 && (H.userinfo = String(H.userinfo).replace(N.PCT_ENCODED, z).replace(N.NOT_USERINFO, B).replace(N.PCT_ENCODED, o)), H.host !== void 0 && (H.host = String(H.host).replace(N.PCT_ENCODED, z).toLowerCase().replace(N.NOT_HOST, B).replace(N.PCT_ENCODED, o)), H.path !== void 0 && (H.path = String(H.path).replace(N.PCT_ENCODED, z).replace(H.scheme ? N.NOT_PATH : N.NOT_PATH_NOSCHEME, B).replace(N.PCT_ENCODED, o)), H.query !== void 0 && (H.query = String(H.query).replace(N.PCT_ENCODED, z).replace(N.NOT_QUERY, B).replace(N.PCT_ENCODED, o)), H.fragment !== void 0 && (H.fragment = String(H.fragment).replace(N.PCT_ENCODED, z).replace(N.NOT_FRAGMENT, B).replace(N.PCT_ENCODED, o)), H;
1439
1439
  }
1440
1440
  function I(H) {
1441
1441
  return H.replace(/^0*(.*)/, "$1") || "0";
1442
1442
  }
1443
1443
  function q(H, N) {
1444
- var V = H.match(N.IPV4ADDRESS) || [], Q = g(V, 2), Y = Q[1];
1444
+ var z = H.match(N.IPV4ADDRESS) || [], Q = g(z, 2), Y = Q[1];
1445
1445
  return Y ? Y.split(".").map(I).join(".") : H;
1446
1446
  }
1447
1447
  function Z(H, N) {
1448
- var V = H.match(N.IPV6ADDRESS) || [], Q = g(V, 3), Y = Q[1], ce = Q[2];
1448
+ var z = H.match(N.IPV6ADDRESS) || [], Q = g(z, 3), Y = Q[1], ce = Q[2];
1449
1449
  if (Y) {
1450
1450
  for (var fe = Y.toLowerCase().split("::").reverse(), _e = g(fe, 2), xe = _e[0], De = _e[1], ye = De ? De.split(":").map(I) : [], Ce = xe.split(":").map(I), Me = N.IPV4ADDRESS.test(Ce[Ce.length - 1]), pe = Me ? 7 : 8, Oe = Ce.length - pe, ke = Array(pe), Ae = 0; Ae < pe; ++Ae)
1451
1451
  ke[Ae] = ye[Ae] || Ce[Oe + Ae] || "";
@@ -1470,30 +1470,30 @@ function Ag() {
1470
1470
  }
1471
1471
  var te = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i, he = "".match(/(){0}/)[1] === void 0;
1472
1472
  function ae(H) {
1473
- var N = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, V = {}, Q = N.iri !== !1 ? y : f;
1473
+ var N = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, z = {}, Q = N.iri !== !1 ? y : f;
1474
1474
  N.reference === "suffix" && (H = (N.scheme ? N.scheme + ":" : "") + "//" + H);
1475
1475
  var Y = H.match(te);
1476
1476
  if (Y) {
1477
- he ? (V.scheme = Y[1], V.userinfo = Y[3], V.host = Y[4], V.port = parseInt(Y[5], 10), V.path = Y[6] || "", V.query = Y[7], V.fragment = Y[8], isNaN(V.port) && (V.port = Y[5])) : (V.scheme = Y[1] || void 0, V.userinfo = H.indexOf("@") !== -1 ? Y[3] : void 0, V.host = H.indexOf("//") !== -1 ? Y[4] : void 0, V.port = parseInt(Y[5], 10), V.path = Y[6] || "", V.query = H.indexOf("?") !== -1 ? Y[7] : void 0, V.fragment = H.indexOf("#") !== -1 ? Y[8] : void 0, isNaN(V.port) && (V.port = H.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? Y[4] : void 0)), V.host && (V.host = Z(q(V.host, Q), Q)), V.scheme === void 0 && V.userinfo === void 0 && V.host === void 0 && V.port === void 0 && !V.path && V.query === void 0 ? V.reference = "same-document" : V.scheme === void 0 ? V.reference = "relative" : V.fragment === void 0 ? V.reference = "absolute" : V.reference = "uri", N.reference && N.reference !== "suffix" && N.reference !== V.reference && (V.error = V.error || "URI is not a " + N.reference + " reference.");
1478
- var ce = M[(N.scheme || V.scheme || "").toLowerCase()];
1477
+ he ? (z.scheme = Y[1], z.userinfo = Y[3], z.host = Y[4], z.port = parseInt(Y[5], 10), z.path = Y[6] || "", z.query = Y[7], z.fragment = Y[8], isNaN(z.port) && (z.port = Y[5])) : (z.scheme = Y[1] || void 0, z.userinfo = H.indexOf("@") !== -1 ? Y[3] : void 0, z.host = H.indexOf("//") !== -1 ? Y[4] : void 0, z.port = parseInt(Y[5], 10), z.path = Y[6] || "", z.query = H.indexOf("?") !== -1 ? Y[7] : void 0, z.fragment = H.indexOf("#") !== -1 ? Y[8] : void 0, isNaN(z.port) && (z.port = H.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? Y[4] : void 0)), z.host && (z.host = Z(q(z.host, Q), Q)), z.scheme === void 0 && z.userinfo === void 0 && z.host === void 0 && z.port === void 0 && !z.path && z.query === void 0 ? z.reference = "same-document" : z.scheme === void 0 ? z.reference = "relative" : z.fragment === void 0 ? z.reference = "absolute" : z.reference = "uri", N.reference && N.reference !== "suffix" && N.reference !== z.reference && (z.error = z.error || "URI is not a " + N.reference + " reference.");
1478
+ var ce = M[(N.scheme || z.scheme || "").toLowerCase()];
1479
1479
  if (!N.unicodeSupport && (!ce || !ce.unicodeSupport)) {
1480
- if (V.host && (N.domainHost || ce && ce.domainHost))
1480
+ if (z.host && (N.domainHost || ce && ce.domainHost))
1481
1481
  try {
1482
- V.host = O.toASCII(V.host.replace(Q.PCT_ENCODED, ee).toLowerCase());
1482
+ z.host = O.toASCII(z.host.replace(Q.PCT_ENCODED, ee).toLowerCase());
1483
1483
  } catch (fe) {
1484
- V.error = V.error || "Host's domain name can not be converted to ASCII via punycode: " + fe;
1484
+ z.error = z.error || "Host's domain name can not be converted to ASCII via punycode: " + fe;
1485
1485
  }
1486
- K(V, f);
1486
+ K(z, f);
1487
1487
  } else
1488
- K(V, Q);
1489
- ce && ce.parse && ce.parse(V, N);
1488
+ K(z, Q);
1489
+ ce && ce.parse && ce.parse(z, N);
1490
1490
  } else
1491
- V.error = V.error || "URI can not be parsed.";
1492
- return V;
1491
+ z.error = z.error || "URI can not be parsed.";
1492
+ return z;
1493
1493
  }
1494
1494
  function le(H, N) {
1495
- var V = N.iri !== !1 ? y : f, Q = [];
1496
- return H.userinfo !== void 0 && (Q.push(H.userinfo), Q.push("@")), H.host !== void 0 && Q.push(Z(q(String(H.host), V), V).replace(V.IPV6ADDRESS, function(Y, ce, fe) {
1495
+ var z = N.iri !== !1 ? y : f, Q = [];
1496
+ return H.userinfo !== void 0 && (Q.push(H.userinfo), Q.push("@")), H.host !== void 0 && Q.push(Z(q(String(H.host), z), z).replace(z.IPV6ADDRESS, function(Y, ce, fe) {
1497
1497
  return "[" + ce + (fe ? "%25" + fe : "") + "]";
1498
1498
  })), (typeof H.port == "number" || typeof H.port == "string") && (Q.push(":"), Q.push(String(H.port))), Q.length ? Q.join("") : void 0;
1499
1499
  }
@@ -1509,9 +1509,9 @@ function Ag() {
1509
1509
  else if (H === "." || H === "..")
1510
1510
  H = "";
1511
1511
  else {
1512
- var V = H.match(Ne);
1513
- if (V) {
1514
- var Q = V[0];
1512
+ var z = H.match(Ne);
1513
+ if (z) {
1514
+ var Q = z[0];
1515
1515
  H = H.slice(Q.length), N.push(Q);
1516
1516
  } else
1517
1517
  throw new Error("Unexpected dot segment condition");
@@ -1519,16 +1519,16 @@ function Ag() {
1519
1519
  return N.join("");
1520
1520
  }
1521
1521
  function Re(H) {
1522
- var N = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, V = N.iri ? y : f, Q = [], Y = M[(N.scheme || H.scheme || "").toLowerCase()];
1523
- if (Y && Y.serialize && Y.serialize(H, N), H.host && !V.IPV6ADDRESS.test(H.host)) {
1522
+ var N = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, z = N.iri ? y : f, Q = [], Y = M[(N.scheme || H.scheme || "").toLowerCase()];
1523
+ if (Y && Y.serialize && Y.serialize(H, N), H.host && !z.IPV6ADDRESS.test(H.host)) {
1524
1524
  if (N.domainHost || Y && Y.domainHost)
1525
1525
  try {
1526
- H.host = N.iri ? O.toUnicode(H.host) : O.toASCII(H.host.replace(V.PCT_ENCODED, ee).toLowerCase());
1526
+ H.host = N.iri ? O.toUnicode(H.host) : O.toASCII(H.host.replace(z.PCT_ENCODED, ee).toLowerCase());
1527
1527
  } catch (_e) {
1528
1528
  H.error = H.error || "Host's domain name can not be converted to " + (N.iri ? "Unicode" : "ASCII") + " via punycode: " + _e;
1529
1529
  }
1530
1530
  }
1531
- K(H, V), N.reference !== "suffix" && H.scheme && (Q.push(H.scheme), Q.push(":"));
1531
+ K(H, z), N.reference !== "suffix" && H.scheme && (Q.push(H.scheme), Q.push(":"));
1532
1532
  var ce = le(H, N);
1533
1533
  if (ce !== void 0 && (N.reference !== "suffix" && Q.push("//"), Q.push(ce), H.path && H.path.charAt(0) !== "/" && Q.push("/")), H.path !== void 0) {
1534
1534
  var fe = H.path;
@@ -1537,21 +1537,21 @@ function Ag() {
1537
1537
  return H.query !== void 0 && (Q.push("?"), Q.push(H.query)), H.fragment !== void 0 && (Q.push("#"), Q.push(H.fragment)), Q.join("");
1538
1538
  }
1539
1539
  function je(H, N) {
1540
- var V = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, Q = arguments[3], Y = {};
1541
- return Q || (H = ae(Re(H, V), V), N = ae(Re(N, V), V)), V = V || {}, !V.tolerant && N.scheme ? (Y.scheme = N.scheme, Y.userinfo = N.userinfo, Y.host = N.host, Y.port = N.port, Y.path = Te(N.path || ""), Y.query = N.query) : (N.userinfo !== void 0 || N.host !== void 0 || N.port !== void 0 ? (Y.userinfo = N.userinfo, Y.host = N.host, Y.port = N.port, Y.path = Te(N.path || ""), Y.query = N.query) : (N.path ? (N.path.charAt(0) === "/" ? Y.path = Te(N.path) : ((H.userinfo !== void 0 || H.host !== void 0 || H.port !== void 0) && !H.path ? Y.path = "/" + N.path : H.path ? Y.path = H.path.slice(0, H.path.lastIndexOf("/") + 1) + N.path : Y.path = N.path, Y.path = Te(Y.path)), Y.query = N.query) : (Y.path = H.path, N.query !== void 0 ? Y.query = N.query : Y.query = H.query), Y.userinfo = H.userinfo, Y.host = H.host, Y.port = H.port), Y.scheme = H.scheme), Y.fragment = N.fragment, Y;
1540
+ var z = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, Q = arguments[3], Y = {};
1541
+ return Q || (H = ae(Re(H, z), z), N = ae(Re(N, z), z)), z = z || {}, !z.tolerant && N.scheme ? (Y.scheme = N.scheme, Y.userinfo = N.userinfo, Y.host = N.host, Y.port = N.port, Y.path = Te(N.path || ""), Y.query = N.query) : (N.userinfo !== void 0 || N.host !== void 0 || N.port !== void 0 ? (Y.userinfo = N.userinfo, Y.host = N.host, Y.port = N.port, Y.path = Te(N.path || ""), Y.query = N.query) : (N.path ? (N.path.charAt(0) === "/" ? Y.path = Te(N.path) : ((H.userinfo !== void 0 || H.host !== void 0 || H.port !== void 0) && !H.path ? Y.path = "/" + N.path : H.path ? Y.path = H.path.slice(0, H.path.lastIndexOf("/") + 1) + N.path : Y.path = N.path, Y.path = Te(Y.path)), Y.query = N.query) : (Y.path = H.path, N.query !== void 0 ? Y.query = N.query : Y.query = H.query), Y.userinfo = H.userinfo, Y.host = H.host, Y.port = H.port), Y.scheme = H.scheme), Y.fragment = N.fragment, Y;
1542
1542
  }
1543
- function Er(H, N, V) {
1544
- var Q = s({ scheme: "null" }, V);
1543
+ function Er(H, N, z) {
1544
+ var Q = s({ scheme: "null" }, z);
1545
1545
  return Re(je(ae(H, Q), ae(N, Q), Q, !0), Q);
1546
1546
  }
1547
1547
  function pr(H, N) {
1548
1548
  return typeof H == "string" ? H = Re(ae(H, N), N) : a(H) === "object" && (H = ae(Re(H, N), N)), H;
1549
1549
  }
1550
- function ir(H, N, V) {
1551
- return typeof H == "string" ? H = Re(ae(H, V), V) : a(H) === "object" && (H = Re(H, V)), typeof N == "string" ? N = Re(ae(N, V), V) : a(N) === "object" && (N = Re(N, V)), H === N;
1550
+ function ir(H, N, z) {
1551
+ return typeof H == "string" ? H = Re(ae(H, z), z) : a(H) === "object" && (H = Re(H, z)), typeof N == "string" ? N = Re(ae(N, z), z) : a(N) === "object" && (N = Re(N, z)), H === N;
1552
1552
  }
1553
1553
  function Pr(H, N) {
1554
- return H && H.toString().replace(!N || !N.iri ? f.ESCAPE : y.ESCAPE, z);
1554
+ return H && H.toString().replace(!N || !N.iri ? f.ESCAPE : y.ESCAPE, B);
1555
1555
  }
1556
1556
  function mr(H, N) {
1557
1557
  return H && H.toString().replace(!N || !N.iri ? f.PCT_ENCODED : y.PCT_ENCODED, ee);
@@ -1559,10 +1559,10 @@ function Ag() {
1559
1559
  var gt = {
1560
1560
  scheme: "http",
1561
1561
  domainHost: !0,
1562
- parse: function(N, V) {
1562
+ parse: function(N, z) {
1563
1563
  return N.host || (N.error = N.error || "HTTP URIs must have a host."), N;
1564
1564
  },
1565
- serialize: function(N, V) {
1565
+ serialize: function(N, z) {
1566
1566
  var Q = String(N.scheme).toLowerCase() === "https";
1567
1567
  return (N.port === (Q ? 443 : 80) || N.port === "") && (N.port = void 0), N.path || (N.path = "/"), N;
1568
1568
  }
@@ -1578,11 +1578,11 @@ function Ag() {
1578
1578
  var vt = {
1579
1579
  scheme: "ws",
1580
1580
  domainHost: !0,
1581
- parse: function(N, V) {
1581
+ parse: function(N, z) {
1582
1582
  var Q = N;
1583
1583
  return Q.secure = Xs(Q), Q.resourceName = (Q.path || "/") + (Q.query ? "?" + Q.query : ""), Q.path = void 0, Q.query = void 0, Q;
1584
1584
  },
1585
- serialize: function(N, V) {
1585
+ serialize: function(N, z) {
1586
1586
  if ((N.port === (Xs(N) ? 443 : 80) || N.port === "") && (N.port = void 0), typeof N.secure == "boolean" && (N.scheme = N.secure ? "wss" : "ws", N.secure = void 0), N.resourceName) {
1587
1587
  var Q = N.resourceName.split("?"), Y = g(Q, 2), ce = Y[0], fe = Y[1];
1588
1588
  N.path = ce && ce !== "/" ? ce : void 0, N.query = fe, N.resourceName = void 0;
@@ -1601,7 +1601,7 @@ function Ag() {
1601
1601
  }
1602
1602
  var nl = {
1603
1603
  scheme: "mailto",
1604
- parse: function(N, V) {
1604
+ parse: function(N, z) {
1605
1605
  var Q = N, Y = Q.to = Q.path ? Q.path.split(",") : [];
1606
1606
  if (Q.path = void 0, Q.query) {
1607
1607
  for (var ce = !1, fe = {}, _e = Q.query.split("&"), xe = 0, De = _e.length; xe < De; ++xe) {
@@ -1612,13 +1612,13 @@ function Ag() {
1612
1612
  Y.push(Ce[Me]);
1613
1613
  break;
1614
1614
  case "subject":
1615
- Q.subject = mr(ye[1], V);
1615
+ Q.subject = mr(ye[1], z);
1616
1616
  break;
1617
1617
  case "body":
1618
- Q.body = mr(ye[1], V);
1618
+ Q.body = mr(ye[1], z);
1619
1619
  break;
1620
1620
  default:
1621
- ce = !0, fe[mr(ye[0], V)] = mr(ye[1], V);
1621
+ ce = !0, fe[mr(ye[0], z)] = mr(ye[1], z);
1622
1622
  break;
1623
1623
  }
1624
1624
  }
@@ -1627,11 +1627,11 @@ function Ag() {
1627
1627
  Q.query = void 0;
1628
1628
  for (var Oe = 0, ke = Y.length; Oe < ke; ++Oe) {
1629
1629
  var Ae = Y[Oe].split("@");
1630
- if (Ae[0] = mr(Ae[0]), V.unicodeSupport)
1631
- Ae[1] = mr(Ae[1], V).toLowerCase();
1630
+ if (Ae[0] = mr(Ae[0]), z.unicodeSupport)
1631
+ Ae[1] = mr(Ae[1], z).toLowerCase();
1632
1632
  else
1633
1633
  try {
1634
- Ae[1] = O.toASCII(mr(Ae[1], V).toLowerCase());
1634
+ Ae[1] = O.toASCII(mr(Ae[1], z).toLowerCase());
1635
1635
  } catch (Cr) {
1636
1636
  Q.error = Q.error || "Email address's domain name can not be converted to ASCII via punycode: " + Cr;
1637
1637
  }
@@ -1639,15 +1639,15 @@ function Ag() {
1639
1639
  }
1640
1640
  return Q;
1641
1641
  },
1642
- serialize: function(N, V) {
1642
+ serialize: function(N, z) {
1643
1643
  var Q = N, Y = u(N.to);
1644
1644
  if (Y) {
1645
1645
  for (var ce = 0, fe = Y.length; ce < fe; ++ce) {
1646
- var _e = String(Y[ce]), xe = _e.lastIndexOf("@"), De = _e.slice(0, xe).replace(zr, _i).replace(zr, o).replace(fp, z), ye = _e.slice(xe + 1);
1646
+ var _e = String(Y[ce]), xe = _e.lastIndexOf("@"), De = _e.slice(0, xe).replace(zr, _i).replace(zr, o).replace(fp, B), ye = _e.slice(xe + 1);
1647
1647
  try {
1648
- ye = V.iri ? O.toUnicode(ye) : O.toASCII(mr(ye, V).toLowerCase());
1648
+ ye = z.iri ? O.toUnicode(ye) : O.toASCII(mr(ye, z).toLowerCase());
1649
1649
  } catch (Oe) {
1650
- Q.error = Q.error || "Email address's domain name can not be converted to " + (V.iri ? "Unicode" : "ASCII") + " via punycode: " + Oe;
1650
+ Q.error = Q.error || "Email address's domain name can not be converted to " + (z.iri ? "Unicode" : "ASCII") + " via punycode: " + Oe;
1651
1651
  }
1652
1652
  Y[ce] = De + "@" + ye;
1653
1653
  }
@@ -1657,38 +1657,38 @@ function Ag() {
1657
1657
  N.subject && (Ce.subject = N.subject), N.body && (Ce.body = N.body);
1658
1658
  var Me = [];
1659
1659
  for (var pe in Ce)
1660
- Ce[pe] !== ip[pe] && Me.push(pe.replace(zr, _i).replace(zr, o).replace(tl, z) + "=" + Ce[pe].replace(zr, _i).replace(zr, o).replace(hp, z));
1660
+ Ce[pe] !== ip[pe] && Me.push(pe.replace(zr, _i).replace(zr, o).replace(tl, B) + "=" + Ce[pe].replace(zr, _i).replace(zr, o).replace(hp, B));
1661
1661
  return Me.length && (Q.query = Me.join("&")), Q;
1662
1662
  }
1663
1663
  }, dp = /^([^\:]+)\:(.*)/, il = {
1664
1664
  scheme: "urn",
1665
- parse: function(N, V) {
1665
+ parse: function(N, z) {
1666
1666
  var Q = N.path && N.path.match(dp), Y = N;
1667
1667
  if (Q) {
1668
- var ce = V.scheme || Y.scheme || "urn", fe = Q[1].toLowerCase(), _e = Q[2], xe = ce + ":" + (V.nid || fe), De = M[xe];
1669
- Y.nid = fe, Y.nss = _e, Y.path = void 0, De && (Y = De.parse(Y, V));
1668
+ var ce = z.scheme || Y.scheme || "urn", fe = Q[1].toLowerCase(), _e = Q[2], xe = ce + ":" + (z.nid || fe), De = M[xe];
1669
+ Y.nid = fe, Y.nss = _e, Y.path = void 0, De && (Y = De.parse(Y, z));
1670
1670
  } else
1671
1671
  Y.error = Y.error || "URN can not be parsed.";
1672
1672
  return Y;
1673
1673
  },
1674
- serialize: function(N, V) {
1675
- var Q = V.scheme || N.scheme || "urn", Y = N.nid, ce = Q + ":" + (V.nid || Y), fe = M[ce];
1676
- fe && (N = fe.serialize(N, V));
1674
+ serialize: function(N, z) {
1675
+ var Q = z.scheme || N.scheme || "urn", Y = N.nid, ce = Q + ":" + (z.nid || Y), fe = M[ce];
1676
+ fe && (N = fe.serialize(N, z));
1677
1677
  var _e = N, xe = N.nss;
1678
- return _e.path = (Y || V.nid) + ":" + xe, _e;
1678
+ return _e.path = (Y || z.nid) + ":" + xe, _e;
1679
1679
  }
1680
1680
  }, pp = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/, al = {
1681
1681
  scheme: "urn:uuid",
1682
- parse: function(N, V) {
1682
+ parse: function(N, z) {
1683
1683
  var Q = N;
1684
- return Q.uuid = Q.nss, Q.nss = void 0, !V.tolerant && (!Q.uuid || !Q.uuid.match(pp)) && (Q.error = Q.error || "UUID is not valid."), Q;
1684
+ return Q.uuid = Q.nss, Q.nss = void 0, !z.tolerant && (!Q.uuid || !Q.uuid.match(pp)) && (Q.error = Q.error || "UUID is not valid."), Q;
1685
1685
  },
1686
- serialize: function(N, V) {
1686
+ serialize: function(N, z) {
1687
1687
  var Q = N;
1688
1688
  return Q.nss = (N.uuid || "").toLowerCase(), Q;
1689
1689
  }
1690
1690
  };
1691
- M[gt.scheme] = gt, M[Zs.scheme] = Zs, M[vt.scheme] = vt, M[el.scheme] = el, M[nl.scheme] = nl, M[il.scheme] = il, M[al.scheme] = al, n.SCHEMES = M, n.pctEncChar = z, n.pctDecChars = ee, n.parse = ae, n.removeDotSegments = Te, n.serialize = Re, n.resolveComponents = je, n.resolve = Er, n.normalize = pr, n.equal = ir, n.escapeComponent = Pr, n.unescapeComponent = mr, Object.defineProperty(n, "__esModule", { value: !0 });
1691
+ M[gt.scheme] = gt, M[Zs.scheme] = Zs, M[vt.scheme] = vt, M[el.scheme] = el, M[nl.scheme] = nl, M[il.scheme] = il, M[al.scheme] = al, n.SCHEMES = M, n.pctEncChar = B, n.pctDecChars = ee, n.parse = ae, n.removeDotSegments = Te, n.serialize = Re, n.resolveComponents = je, n.resolve = Er, n.normalize = pr, n.equal = ir, n.escapeComponent = Pr, n.unescapeComponent = mr, Object.defineProperty(n, "__esModule", { value: !0 });
1692
1692
  });
1693
1693
  }(Tt, Tt.exports)), Tt.exports;
1694
1694
  }
@@ -2237,8 +2237,8 @@ function rd() {
2237
2237
  v.push(r), r = "", e.createErrors !== !1 ? (r += " { keyword: '" + (T || "type") + "' , dataPath: (dataPath || '') + " + e.errorPath + " , schemaPath: " + e.util.toQuotedString(p) + " , params: { type: '", x ? r += "" + R.join(",") : r += "" + R, r += "' } ", e.opts.messages !== !1 && (r += " , message: 'should be ", x ? r += "" + R.join(",") : r += "" + R, r += "' "), e.opts.verbose && (r += " , schema: validate.schema" + d + " , parentSchema: validate.schema" + e.schemaPath + " , data: " + m + " "), r += " } ") : r += " {} ";
2238
2238
  var l = r;
2239
2239
  r = v.pop(), !e.compositeRule && _ ? e.async ? r += " throw new ValidationError([" + l + "]); " : r += " validate.errors = [" + l + "]; return false; " : r += " var err = " + l + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", r += " } if (" + $ + " !== undefined) { ";
2240
- var j = y ? "data" + (y - 1 || "") : "parentData", B = y ? e.dataPathArr[y] : "parentDataProperty";
2241
- r += " " + m + " = " + $ + "; ", y || (r += "if (" + j + " !== undefined)"), r += " " + j + "[" + B + "] = " + $ + "; } ";
2240
+ var j = y ? "data" + (y - 1 || "") : "parentData", V = y ? e.dataPathArr[y] : "parentDataProperty";
2241
+ r += " " + m + " = " + $ + "; ", y || (r += "if (" + j + " !== undefined)"), r += " " + j + "[" + V + "] = " + $ + "; } ";
2242
2242
  } else {
2243
2243
  var v = v || [];
2244
2244
  v.push(r), r = "", e.createErrors !== !1 ? (r += " { keyword: '" + (T || "type") + "' , dataPath: (dataPath || '') + " + e.errorPath + " , schemaPath: " + e.util.toQuotedString(p) + " , params: { type: '", x ? r += "" + R.join(",") : r += "" + R, r += "' } ", e.opts.messages !== !1 && (r += " , message: 'should be ", x ? r += "" + R.join(",") : r += "" + R, r += "' "), e.opts.verbose && (r += " , schema: validate.schema" + d + " , parentSchema: validate.schema" + e.schemaPath + " , data: " + m + " "), r += " } ") : r += " {} ";
@@ -2259,8 +2259,8 @@ function rd() {
2259
2259
  if (S.type == "object" && e.schema.properties) {
2260
2260
  var g = e.schema.properties, ne = Object.keys(g), O = ne;
2261
2261
  if (O)
2262
- for (var M, z = -1, ee = O.length - 1; z < ee; ) {
2263
- M = O[z += 1];
2262
+ for (var M, B = -1, ee = O.length - 1; B < ee; ) {
2263
+ M = O[B += 1];
2264
2264
  var K = g[M];
2265
2265
  if (K.default !== void 0) {
2266
2266
  var I = m + e.util.getProperty(M);
@@ -2339,7 +2339,7 @@ function $g() {
2339
2339
  if (E.compiling) return $.callValidate = j;
2340
2340
  var L = this._formats, k = this.RULES;
2341
2341
  try {
2342
- var U = B(l, h, b, w);
2342
+ var U = V(l, h, b, w);
2343
2343
  $.validate = U;
2344
2344
  var F = $.callValidate;
2345
2345
  return F && (F.schema = U.schema, F.errors = null, F.refs = U.refs, F.refVal = U.refVal, F.root = U.root, F.$async = U.$async, A.sourceCode && (F.source = U.source)), U;
@@ -2350,7 +2350,7 @@ function $g() {
2350
2350
  var K = $.validate, I = K.apply(this, arguments);
2351
2351
  return j.errors = K.errors, I;
2352
2352
  }
2353
- function B(K, I, q, Z) {
2353
+ function V(K, I, q, Z) {
2354
2354
  var te = !I || I && I.schema == K;
2355
2355
  if (I.schema != h.schema)
2356
2356
  return s.call(_, K, I, q, Z);
@@ -2370,7 +2370,7 @@ function $g() {
2370
2370
  resolve: t,
2371
2371
  resolveRef: G,
2372
2372
  usePattern: M,
2373
- useDefault: z,
2373
+ useDefault: B,
2374
2374
  useCustomRule: ee,
2375
2375
  opts: A,
2376
2376
  formats: L,
@@ -2425,7 +2425,7 @@ function $g() {
2425
2425
  return te = h.refVal[ae], he = X(I, te), O(te, he);
2426
2426
  }
2427
2427
  he = X(I);
2428
- var le = t.call(_, B, h, I);
2428
+ var le = t.call(_, V, h, I);
2429
2429
  if (le === void 0) {
2430
2430
  var Pe = b && b[I];
2431
2431
  Pe && (le = t.inlineRef(Pe, A.inlineRefs) ? Pe : s.call(_, Pe, h, b, K));
@@ -2453,7 +2453,7 @@ function $g() {
2453
2453
  var I = x[K];
2454
2454
  return I === void 0 && (I = x[K] = R.length, R[I] = K), "pattern" + I;
2455
2455
  }
2456
- function z(K) {
2456
+ function B(K) {
2457
2457
  switch (typeof K) {
2458
2458
  case "boolean":
2459
2459
  case "number":
@@ -3098,8 +3098,8 @@ function Qg() {
3098
3098
  else {
3099
3099
  var F = _;
3100
3100
  if (F)
3101
- for (var j, B = -1, G = F.length - 1; B < G; )
3102
- j = F[B += 1], r += " || " + v + " == " + e.util.toQuotedString(j) + " ";
3101
+ for (var j, V = -1, G = F.length - 1; V < G; )
3102
+ j = F[V += 1], r += " || " + v + " == " + e.util.toQuotedString(j) + " ";
3103
3103
  }
3104
3104
  if (P.length) {
3105
3105
  var X = P;
@@ -3112,7 +3112,7 @@ function Qg() {
3112
3112
  if (S == "all")
3113
3113
  r += " delete " + y + "[" + v + "]; ";
3114
3114
  else {
3115
- var M = e.errorPath, z = "' + " + v + " + '";
3115
+ var M = e.errorPath, B = "' + " + v + " + '";
3116
3116
  if (e.opts._errorDataPathProperty && (e.errorPath = e.util.getPathExpr(e.errorPath, v, e.opts.jsonPointers)), x)
3117
3117
  if (S)
3118
3118
  r += " delete " + y + "[" + v + "]; ";
@@ -3121,7 +3121,7 @@ function Qg() {
3121
3121
  var ee = c;
3122
3122
  c = e.errSchemaPath + "/additionalProperties";
3123
3123
  var K = K || [];
3124
- K.push(r), r = "", e.createErrors !== !1 ? (r += " { keyword: 'additionalProperties' , dataPath: (dataPath || '') + " + e.errorPath + " , schemaPath: " + e.util.toQuotedString(c) + " , params: { additionalProperty: '" + z + "' } ", e.opts.messages !== !1 && (r += " , message: '", e.opts._errorDataPathProperty ? r += "is an invalid additional property" : r += "should NOT have additional properties", r += "' "), e.opts.verbose && (r += " , schema: false , parentSchema: validate.schema" + e.schemaPath + " , data: " + y + " "), r += " } ") : r += " {} ";
3124
+ K.push(r), r = "", e.createErrors !== !1 ? (r += " { keyword: 'additionalProperties' , dataPath: (dataPath || '') + " + e.errorPath + " , schemaPath: " + e.util.toQuotedString(c) + " , params: { additionalProperty: '" + B + "' } ", e.opts.messages !== !1 && (r += " , message: '", e.opts._errorDataPathProperty ? r += "is an invalid additional property" : r += "should NOT have additional properties", r += "' "), e.opts.verbose && (r += " , schema: false , parentSchema: validate.schema" + e.schemaPath + " , data: " + y + " "), r += " } ") : r += " {} ";
3125
3125
  var I = r;
3126
3126
  r = K.pop(), !e.compositeRule && f ? e.async ? r += " throw new ValidationError([" + I + "]); " : r += " validate.errors = [" + I + "]; return false; " : r += " var err = " + I + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", c = ee, f && (r += " break; ");
3127
3127
  }
@@ -3545,12 +3545,12 @@ function av() {
3545
3545
  } else {
3546
3546
  var F = F || [];
3547
3547
  F.push(r), r = "", r += " " + R + ".call( ", e.opts.passContext ? r += "this" : r += "self", _ || b.schema === !1 ? r += " , " + g + " " : r += " , " + v + " , " + g + " , validate.schema" + e.schemaPath + " ", r += " , (dataPath || '')", e.errorPath != '""' && (r += " + " + e.errorPath);
3548
- var j = o ? "data" + (o - 1 || "") : "parentData", B = o ? e.dataPathArr[o] : "parentDataProperty";
3549
- r += " , " + j + " , " + B + " , rootData ) ";
3548
+ var j = o ? "data" + (o - 1 || "") : "parentData", V = o ? e.dataPathArr[o] : "parentDataProperty";
3549
+ r += " , " + j + " , " + V + " , rootData ) ";
3550
3550
  var G = r;
3551
3551
  r = F.pop(), b.errors === !1 ? (r += " " + d + " = ", E && (r += "await "), r += "" + G + "; ") : E ? (C = "customErrors" + a, r += " var " + C + " = null; try { " + d + " = await " + G + "; } catch (e) { " + d + " = false; if (e instanceof ValidationError) " + C + " = e.errors; else throw e; } ") : r += " " + C + " = null; " + d + " = " + G + "; ";
3552
3552
  }
3553
- if (b.modifying && (r += " if (" + j + ") " + g + " = " + j + "[" + B + "];"), r += "" + w, b.valid)
3553
+ if (b.modifying && (r += " if (" + j + ") " + g + " = " + j + "[" + V + "];"), r += "" + w, b.valid)
3554
3554
  f && (r += " if (true) { ");
3555
3555
  else {
3556
3556
  r += " if ( ", b.valid === void 0 ? (r += " !", P ? r += "" + L : r += "" + d) : r += " " + !b.valid + " ", r += ") { ", y = l.keyword;
@@ -3715,43 +3715,43 @@ function Sv() {
3715
3715
  var y = "http://json-schema.org/draft-07/schema", g = ["removeAdditional", "useDefaults", "coerceTypes", "strictDefaults"], d = ["/properties"];
3716
3716
  function p(O) {
3717
3717
  if (!(this instanceof p)) return new p(O);
3718
- O = this._opts = s.copy(O) || {}, W(this), this._schemas = {}, this._refs = {}, this._fragments = {}, this._formats = a(O.format), this._cache = O.cache || new n(), this._loadingSchemas = {}, this._compilations = [], this.RULES = o(), this._getId = S(O), O.loopRequired = O.loopRequired || 1 / 0, O.errorDataPath == "property" && (O._errorDataPathProperty = !0), O.serialize === void 0 && (O.serialize = r), this._metaOpts = X(this), O.formats && j(this), O.keywords && B(this), U(this), typeof O.meta == "object" && this.addMetaSchema(O.meta), O.nullable && this.addKeyword("nullable", { metaSchema: { type: "boolean" } }), F(this);
3718
+ O = this._opts = s.copy(O) || {}, W(this), this._schemas = {}, this._refs = {}, this._fragments = {}, this._formats = a(O.format), this._cache = O.cache || new n(), this._loadingSchemas = {}, this._compilations = [], this.RULES = o(), this._getId = S(O), O.loopRequired = O.loopRequired || 1 / 0, O.errorDataPath == "property" && (O._errorDataPathProperty = !0), O.serialize === void 0 && (O.serialize = r), this._metaOpts = X(this), O.formats && j(this), O.keywords && V(this), U(this), typeof O.meta == "object" && this.addMetaSchema(O.meta), O.nullable && this.addKeyword("nullable", { metaSchema: { type: "boolean" } }), F(this);
3719
3719
  }
3720
3720
  function m(O, M) {
3721
- var z;
3721
+ var B;
3722
3722
  if (typeof O == "string") {
3723
- if (z = this.getSchema(O), !z) throw new Error('no schema with key or ref "' + O + '"');
3723
+ if (B = this.getSchema(O), !B) throw new Error('no schema with key or ref "' + O + '"');
3724
3724
  } else {
3725
3725
  var ee = this._addSchema(O);
3726
- z = ee.validate || this._compile(ee);
3726
+ B = ee.validate || this._compile(ee);
3727
3727
  }
3728
- var K = z(M);
3729
- return z.$async !== !0 && (this.errors = z.errors), K;
3728
+ var K = B(M);
3729
+ return B.$async !== !0 && (this.errors = B.errors), K;
3730
3730
  }
3731
3731
  function v(O, M) {
3732
- var z = this._addSchema(O, void 0, M);
3733
- return z.validate || this._compile(z);
3732
+ var B = this._addSchema(O, void 0, M);
3733
+ return B.validate || this._compile(B);
3734
3734
  }
3735
- function l(O, M, z, ee) {
3735
+ function l(O, M, B, ee) {
3736
3736
  if (Array.isArray(O)) {
3737
- for (var K = 0; K < O.length; K++) this.addSchema(O[K], void 0, z, ee);
3737
+ for (var K = 0; K < O.length; K++) this.addSchema(O[K], void 0, B, ee);
3738
3738
  return this;
3739
3739
  }
3740
3740
  var I = this._getId(O);
3741
3741
  if (I !== void 0 && typeof I != "string")
3742
3742
  throw new Error("schema id must be string");
3743
- return M = e.normalizeId(M || I), G(this, M), this._schemas[M] = this._addSchema(O, z, ee, !0), this;
3743
+ return M = e.normalizeId(M || I), G(this, M), this._schemas[M] = this._addSchema(O, B, ee, !0), this;
3744
3744
  }
3745
- function h(O, M, z) {
3746
- return this.addSchema(O, M, z, !0), this;
3745
+ function h(O, M, B) {
3746
+ return this.addSchema(O, M, B, !0), this;
3747
3747
  }
3748
3748
  function b(O, M) {
3749
- var z = O.$schema;
3750
- if (z !== void 0 && typeof z != "string")
3749
+ var B = O.$schema;
3750
+ if (B !== void 0 && typeof B != "string")
3751
3751
  throw new Error("$schema must be a string");
3752
- if (z = z || this._opts.defaultMeta || w(this), !z)
3752
+ if (B = B || this._opts.defaultMeta || w(this), !B)
3753
3753
  return this.logger.warn("meta-schema not available"), this.errors = null, !0;
3754
- var ee = this.validate(z, O);
3754
+ var ee = this.validate(B, O);
3755
3755
  if (!ee && M) {
3756
3756
  var K = "schema is invalid: " + this.errorsText();
3757
3757
  if (this._opts.validateSchema == "log") this.logger.error(K);
@@ -3775,9 +3775,9 @@ function Sv() {
3775
3775
  }
3776
3776
  }
3777
3777
  function A(O, M) {
3778
- var z = e.schema.call(O, { schema: {} }, M);
3779
- if (z) {
3780
- var ee = z.schema, K = z.root, I = z.baseId, q = t.call(O, ee, K, void 0, I);
3778
+ var B = e.schema.call(O, { schema: {} }, M);
3779
+ if (B) {
3780
+ var ee = B.schema, K = B.root, I = B.baseId, q = t.call(O, ee, K, void 0, I);
3781
3781
  return O._fragments[M] = new i({
3782
3782
  ref: M,
3783
3783
  fragment: !0,
@@ -3801,20 +3801,20 @@ function Sv() {
3801
3801
  var M = P(this, O);
3802
3802
  return M && this._cache.del(M.cacheKey), delete this._schemas[O], delete this._refs[O], this;
3803
3803
  case "object":
3804
- var z = this._opts.serialize, ee = z ? z(O) : O;
3804
+ var B = this._opts.serialize, ee = B ? B(O) : O;
3805
3805
  this._cache.del(ee);
3806
3806
  var K = this._getId(O);
3807
3807
  K && (K = e.normalizeId(K), delete this._schemas[K], delete this._refs[K]);
3808
3808
  }
3809
3809
  return this;
3810
3810
  }
3811
- function R(O, M, z) {
3811
+ function R(O, M, B) {
3812
3812
  for (var ee in M) {
3813
3813
  var K = M[ee];
3814
- !K.meta && (!z || z.test(ee)) && (O._cache.del(K.cacheKey), delete M[ee]);
3814
+ !K.meta && (!B || B.test(ee)) && (O._cache.del(K.cacheKey), delete M[ee]);
3815
3815
  }
3816
3816
  }
3817
- function x(O, M, z, ee) {
3817
+ function x(O, M, B, ee) {
3818
3818
  if (typeof O != "object" && typeof O != "boolean")
3819
3819
  throw new Error("schema should be object or boolean");
3820
3820
  var K = this._opts.serialize, I = K ? K(O) : O, q = this._cache.get(I);
@@ -3829,7 +3829,7 @@ function Sv() {
3829
3829
  schema: O,
3830
3830
  localRefs: ae,
3831
3831
  cacheKey: I,
3832
- meta: z
3832
+ meta: B
3833
3833
  });
3834
3834
  return Z[0] != "#" && ee && (this._refs[Z] = le), this._cache.put(I, le), te && he && this.validateSchema(O, !0), le;
3835
3835
  }
@@ -3837,15 +3837,15 @@ function Sv() {
3837
3837
  if (O.compiling)
3838
3838
  return O.validate = K, K.schema = O.schema, K.errors = null, K.root = M || K, O.schema.$async === !0 && (K.$async = !0), K;
3839
3839
  O.compiling = !0;
3840
- var z;
3841
- O.meta && (z = this._opts, this._opts = this._metaOpts);
3840
+ var B;
3841
+ O.meta && (B = this._opts, this._opts = this._metaOpts);
3842
3842
  var ee;
3843
3843
  try {
3844
3844
  ee = t.call(this, O.schema, M, O.localRefs);
3845
3845
  } catch (I) {
3846
3846
  throw delete O.validate, I;
3847
3847
  } finally {
3848
- O.compiling = !1, O.meta && (this._opts = z);
3848
+ O.compiling = !1, O.meta && (this._opts = B);
3849
3849
  }
3850
3850
  return O.validate = ee, O.refs = ee.refs, O.refVal = ee.refVal, O.root = ee.root, ee;
3851
3851
  function K() {
@@ -3877,11 +3877,11 @@ function Sv() {
3877
3877
  function L(O, M) {
3878
3878
  if (O = O || this.errors, !O) return "No errors";
3879
3879
  M = M || {};
3880
- for (var z = M.separator === void 0 ? ", " : M.separator, ee = M.dataVar === void 0 ? "data" : M.dataVar, K = "", I = 0; I < O.length; I++) {
3880
+ for (var B = M.separator === void 0 ? ", " : M.separator, ee = M.dataVar === void 0 ? "data" : M.dataVar, K = "", I = 0; I < O.length; I++) {
3881
3881
  var q = O[I];
3882
- q && (K += ee + q.dataPath + " " + q.message + z);
3882
+ q && (K += ee + q.dataPath + " " + q.message + B);
3883
3883
  }
3884
- return K.slice(0, -z.length);
3884
+ return K.slice(0, -B.length);
3885
3885
  }
3886
3886
  function k(O, M) {
3887
3887
  return typeof M == "string" && (M = new RegExp(M)), this._formats[O] = M, this;
@@ -3889,26 +3889,26 @@ function Sv() {
3889
3889
  function U(O) {
3890
3890
  var M;
3891
3891
  if (O._opts.$data && (M = _v, O.addMetaSchema(M, M.$id, !0)), O._opts.meta !== !1) {
3892
- var z = td;
3893
- O._opts.$data && (z = u(z, d)), O.addMetaSchema(z, y, !0), O._refs["http://json-schema.org/schema"] = y;
3892
+ var B = td;
3893
+ O._opts.$data && (B = u(B, d)), O.addMetaSchema(B, y, !0), O._refs["http://json-schema.org/schema"] = y;
3894
3894
  }
3895
3895
  }
3896
3896
  function F(O) {
3897
3897
  var M = O._opts.schemas;
3898
3898
  if (M)
3899
3899
  if (Array.isArray(M)) O.addSchema(M);
3900
- else for (var z in M) O.addSchema(M[z], z);
3900
+ else for (var B in M) O.addSchema(M[B], B);
3901
3901
  }
3902
3902
  function j(O) {
3903
3903
  for (var M in O._opts.formats) {
3904
- var z = O._opts.formats[M];
3905
- O.addFormat(M, z);
3904
+ var B = O._opts.formats[M];
3905
+ O.addFormat(M, B);
3906
3906
  }
3907
3907
  }
3908
- function B(O) {
3908
+ function V(O) {
3909
3909
  for (var M in O._opts.keywords) {
3910
- var z = O._opts.keywords[M];
3911
- O.addKeyword(M, z);
3910
+ var B = O._opts.keywords[M];
3911
+ O.addKeyword(M, B);
3912
3912
  }
3913
3913
  }
3914
3914
  function G(O, M) {
@@ -3916,8 +3916,8 @@ function Sv() {
3916
3916
  throw new Error('schema with key or id "' + M + '" already exists');
3917
3917
  }
3918
3918
  function X(O) {
3919
- for (var M = s.copy(O._opts), z = 0; z < g.length; z++)
3920
- delete M[g[z]];
3919
+ for (var M = s.copy(O._opts), B = 0; B < g.length; B++)
3920
+ delete M[g[B]];
3921
3921
  return M;
3922
3922
  }
3923
3923
  function W(O) {
@@ -4991,10 +4991,10 @@ async function Qv(t, e, n) {
4991
4991
  if ("url" in t)
4992
4992
  i = new Jv(new URL(t.url));
4993
4993
  else {
4994
- const { loadProfileEnvironmentVariables: r } = await import("./load-profile-RepxD2W6.js"), a = n.loadProfile === "never" || !n.workingDirectory ? process.env : await Ue(
4994
+ const { loadProfileEnvironmentVariables: r } = await import("./load-profile-BbmyxO_7.js"), a = n.loadProfile === "never" || !n.workingDirectory ? process.env : await Ue(
4995
4995
  r(n.workingDirectory, n.loadProfile)
4996
4996
  );
4997
- i = await import("./stdio-BNK3b-hX.js").then(
4997
+ i = await import("./stdio-DNCc59wT.js").then(
4998
4998
  ({ StdioClientTransport: o }) => new o({
4999
4999
  ...t,
5000
5000
  stderr: "pipe",
@@ -5755,7 +5755,7 @@ IMPORTANT: The result of this tool (if any) should be displayed directly to the
5755
5755
  },
5756
5756
  source: "builtin"
5757
5757
  },
5758
- fn: import("./node-EWLyp36N.js").then(({ runRoutine: t }) => t)
5758
+ fn: import("./node-syWQvN9a.js").then(({ runRoutine: t }) => t)
5759
5759
  };
5760
5760
  let gu = !1;
5761
5761
  async function od(t, e = !1) {
@@ -5779,9 +5779,10 @@ async function fy(t, e = !1) {
5779
5779
  t.registerTool(Mp),
5780
5780
  t.registerTool(kp),
5781
5781
  t.registerTool(Fp),
5782
- t.registerTool(qp)
5782
+ t.registerTool(qp),
5783
+ t.registerTool(jp)
5783
5784
  ];
5784
- return n.push(t.registerTool(jp)), e && n.push(t.registerTool(cy)), {
5785
+ return e && n.push(t.registerTool(cy)), {
5785
5786
  dispose() {
5786
5787
  for (const i of n)
5787
5788
  i.dispose();
@@ -7801,30 +7802,30 @@ var ud;
7801
7802
  if (typeof $ != "string") throw new TypeError("Path must be a string. Received " + JSON.stringify($));
7802
7803
  }
7803
7804
  function D($, L) {
7804
- for (var k, U = "", F = 0, j = -1, B = 0, G = 0; G <= $.length; ++G) {
7805
+ for (var k, U = "", F = 0, j = -1, V = 0, G = 0; G <= $.length; ++G) {
7805
7806
  if (G < $.length) k = $.charCodeAt(G);
7806
7807
  else {
7807
7808
  if (k === 47) break;
7808
7809
  k = 47;
7809
7810
  }
7810
7811
  if (k === 47) {
7811
- if (!(j === G - 1 || B === 1)) if (j !== G - 1 && B === 2) {
7812
+ if (!(j === G - 1 || V === 1)) if (j !== G - 1 && V === 2) {
7812
7813
  if (U.length < 2 || F !== 2 || U.charCodeAt(U.length - 1) !== 46 || U.charCodeAt(U.length - 2) !== 46) {
7813
7814
  if (U.length > 2) {
7814
7815
  var X = U.lastIndexOf("/");
7815
7816
  if (X !== U.length - 1) {
7816
- X === -1 ? (U = "", F = 0) : F = (U = U.slice(0, X)).length - 1 - U.lastIndexOf("/"), j = G, B = 0;
7817
+ X === -1 ? (U = "", F = 0) : F = (U = U.slice(0, X)).length - 1 - U.lastIndexOf("/"), j = G, V = 0;
7817
7818
  continue;
7818
7819
  }
7819
7820
  } else if (U.length === 2 || U.length === 1) {
7820
- U = "", F = 0, j = G, B = 0;
7821
+ U = "", F = 0, j = G, V = 0;
7821
7822
  continue;
7822
7823
  }
7823
7824
  }
7824
7825
  L && (U.length > 0 ? U += "/.." : U = "..", F = 2);
7825
7826
  } else U.length > 0 ? U += "/" + $.slice(j + 1, G) : U = $.slice(j + 1, G), F = G - j - 1;
7826
- j = G, B = 0;
7827
- } else k === 46 && B !== -1 ? ++B : B = -1;
7827
+ j = G, V = 0;
7828
+ } else k === 46 && V !== -1 ? ++V : V = -1;
7828
7829
  }
7829
7830
  return U;
7830
7831
  }
@@ -7851,9 +7852,9 @@ var ud;
7851
7852
  if (S($), S(L), $ === L || ($ = E.resolve($)) === (L = E.resolve(L))) return "";
7852
7853
  for (var k = 1; k < $.length && $.charCodeAt(k) === 47; ++k) ;
7853
7854
  for (var U = $.length, F = U - k, j = 1; j < L.length && L.charCodeAt(j) === 47; ++j) ;
7854
- for (var B = L.length - j, G = F < B ? F : B, X = -1, W = 0; W <= G; ++W) {
7855
+ for (var V = L.length - j, G = F < V ? F : V, X = -1, W = 0; W <= G; ++W) {
7855
7856
  if (W === G) {
7856
- if (B > G) {
7857
+ if (V > G) {
7857
7858
  if (L.charCodeAt(j + W) === 47) return L.slice(j + W + 1);
7858
7859
  if (W === 0) return L.slice(j + W);
7859
7860
  } else F > G && ($.charCodeAt(k + W) === 47 ? X = W : W === 0 && (X = 0));
@@ -7883,7 +7884,7 @@ var ud;
7883
7884
  var k, U = 0, F = -1, j = !0;
7884
7885
  if (L !== void 0 && L.length > 0 && L.length <= $.length) {
7885
7886
  if (L.length === $.length && L === $) return "";
7886
- var B = L.length - 1, G = -1;
7887
+ var V = L.length - 1, G = -1;
7887
7888
  for (k = $.length - 1; k >= 0; --k) {
7888
7889
  var X = $.charCodeAt(k);
7889
7890
  if (X === 47) {
@@ -7891,7 +7892,7 @@ var ud;
7891
7892
  U = k + 1;
7892
7893
  break;
7893
7894
  }
7894
- } else G === -1 && (j = !1, G = k + 1), B >= 0 && (X === L.charCodeAt(B) ? --B == -1 && (F = k) : (B = -1, F = G));
7895
+ } else G === -1 && (j = !1, G = k + 1), V >= 0 && (X === L.charCodeAt(V) ? --V == -1 && (F = k) : (V = -1, F = G));
7895
7896
  }
7896
7897
  return U === F ? F = G : F === -1 && (F = $.length), $.slice(U, F);
7897
7898
  }
@@ -7904,11 +7905,11 @@ var ud;
7904
7905
  return F === -1 ? "" : $.slice(U, F);
7905
7906
  }, extname: function($) {
7906
7907
  S($);
7907
- for (var L = -1, k = 0, U = -1, F = !0, j = 0, B = $.length - 1; B >= 0; --B) {
7908
- var G = $.charCodeAt(B);
7909
- if (G !== 47) U === -1 && (F = !1, U = B + 1), G === 46 ? L === -1 ? L = B : j !== 1 && (j = 1) : L !== -1 && (j = -1);
7908
+ for (var L = -1, k = 0, U = -1, F = !0, j = 0, V = $.length - 1; V >= 0; --V) {
7909
+ var G = $.charCodeAt(V);
7910
+ if (G !== 47) U === -1 && (F = !1, U = V + 1), G === 46 ? L === -1 ? L = V : j !== 1 && (j = 1) : L !== -1 && (j = -1);
7910
7911
  else if (!F) {
7911
- k = B + 1;
7912
+ k = V + 1;
7912
7913
  break;
7913
7914
  }
7914
7915
  }
@@ -7925,12 +7926,12 @@ var ud;
7925
7926
  if ($.length === 0) return L;
7926
7927
  var k, U = $.charCodeAt(0), F = U === 47;
7927
7928
  F ? (L.root = "/", k = 1) : k = 0;
7928
- for (var j = -1, B = 0, G = -1, X = !0, W = $.length - 1, ne = 0; W >= k; --W) if ((U = $.charCodeAt(W)) !== 47) G === -1 && (X = !1, G = W + 1), U === 46 ? j === -1 ? j = W : ne !== 1 && (ne = 1) : j !== -1 && (ne = -1);
7929
+ for (var j = -1, V = 0, G = -1, X = !0, W = $.length - 1, ne = 0; W >= k; --W) if ((U = $.charCodeAt(W)) !== 47) G === -1 && (X = !1, G = W + 1), U === 46 ? j === -1 ? j = W : ne !== 1 && (ne = 1) : j !== -1 && (ne = -1);
7929
7930
  else if (!X) {
7930
- B = W + 1;
7931
+ V = W + 1;
7931
7932
  break;
7932
7933
  }
7933
- return j === -1 || G === -1 || ne === 0 || ne === 1 && j === G - 1 && j === B + 1 ? G !== -1 && (L.base = L.name = B === 0 && F ? $.slice(1, G) : $.slice(B, G)) : (B === 0 && F ? (L.name = $.slice(1, j), L.base = $.slice(1, G)) : (L.name = $.slice(B, j), L.base = $.slice(B, G)), L.ext = $.slice(j, G)), B > 0 ? L.dir = $.slice(0, B - 1) : F && (L.dir = "/"), L;
7934
+ return j === -1 || G === -1 || ne === 0 || ne === 1 && j === G - 1 && j === V + 1 ? G !== -1 && (L.base = L.name = V === 0 && F ? $.slice(1, G) : $.slice(V, G)) : (V === 0 && F ? (L.name = $.slice(1, j), L.base = $.slice(1, G)) : (L.name = $.slice(V, j), L.base = $.slice(V, G)), L.ext = $.slice(j, G)), V > 0 ? L.dir = $.slice(0, V - 1) : F && (L.dir = "/"), L;
7934
7935
  }, sep: "/", delimiter: ":", win32: null, posix: null };
7935
7936
  E.posix = E, C.exports = E;
7936
7937
  } }, e = {};
@@ -8069,8 +8070,8 @@ var ud;
8069
8070
  if ($ && (E += $, E += ":"), (L || $ === "file") && (E += f, E += f), L) {
8070
8071
  let j = L.indexOf("@");
8071
8072
  if (j !== -1) {
8072
- const B = L.substr(0, j);
8073
- L = L.substr(j + 1), j = B.lastIndexOf(":"), j === -1 ? E += D(B, !1, !1) : (E += D(B.substr(0, j), !1, !1), E += ":", E += D(B.substr(j + 1), !1, !0)), E += "@";
8073
+ const V = L.substr(0, j);
8074
+ L = L.substr(j + 1), j = V.lastIndexOf(":"), j === -1 ? E += D(V, !1, !1) : (E += D(V.substr(0, j), !1, !1), E += ":", E += D(V.substr(j + 1), !1, !0)), E += "@";
8074
8075
  }
8075
8076
  L = L.toLowerCase(), j = L.lastIndexOf(":"), j === -1 ? E += D(L, !1, !0) : (E += D(L.substr(0, j), !1, !0), E += L.substr(j));
8076
8077
  }
@@ -10415,74 +10416,74 @@ function Bt() {
10415
10416
  b && (h.bigint === void 0 && (h.bigint = !1), "circularValue" in h || (h.circularValue = Error));
10416
10417
  const w = f(h), _ = g(h, "bigint"), A = y(h), P = typeof A == "function" ? A : void 0, T = d(h, "maximumDepth"), R = d(h, "maximumBreadth");
10417
10418
  function x($, L, k, U, F, j) {
10418
- let B = L[$];
10419
- switch (typeof B == "object" && B !== null && typeof B.toJSON == "function" && (B = B.toJSON($)), B = U.call(L, $, B), typeof B) {
10419
+ let V = L[$];
10420
+ switch (typeof V == "object" && V !== null && typeof V.toJSON == "function" && (V = V.toJSON($)), V = U.call(L, $, V), typeof V) {
10420
10421
  case "string":
10421
- return a(B);
10422
+ return a(V);
10422
10423
  case "object": {
10423
- if (B === null)
10424
+ if (V === null)
10424
10425
  return "null";
10425
- if (k.indexOf(B) !== -1)
10426
+ if (k.indexOf(V) !== -1)
10426
10427
  return w;
10427
10428
  let G = "", X = ",";
10428
10429
  const W = j;
10429
- if (Array.isArray(B)) {
10430
- if (B.length === 0)
10430
+ if (Array.isArray(V)) {
10431
+ if (V.length === 0)
10431
10432
  return "[]";
10432
10433
  if (T < k.length + 1)
10433
10434
  return '"[Array]"';
10434
- k.push(B), F !== "" && (j += F, G += `
10435
+ k.push(V), F !== "" && (j += F, G += `
10435
10436
  ${j}`, X = `,
10436
10437
  ${j}`);
10437
- const K = Math.min(B.length, R);
10438
+ const K = Math.min(V.length, R);
10438
10439
  let I = 0;
10439
10440
  for (; I < K - 1; I++) {
10440
- const Z = x(String(I), B, k, U, F, j);
10441
+ const Z = x(String(I), V, k, U, F, j);
10441
10442
  G += Z !== void 0 ? Z : "null", G += X;
10442
10443
  }
10443
- const q = x(String(I), B, k, U, F, j);
10444
- if (G += q !== void 0 ? q : "null", B.length - 1 > R) {
10445
- const Z = B.length - R - 1;
10444
+ const q = x(String(I), V, k, U, F, j);
10445
+ if (G += q !== void 0 ? q : "null", V.length - 1 > R) {
10446
+ const Z = V.length - R - 1;
10446
10447
  G += `${X}"... ${p(Z)} not stringified"`;
10447
10448
  }
10448
10449
  return F !== "" && (G += `
10449
10450
  ${W}`), k.pop(), `[${G}]`;
10450
10451
  }
10451
- let ne = Object.keys(B);
10452
+ let ne = Object.keys(V);
10452
10453
  const O = ne.length;
10453
10454
  if (O === 0)
10454
10455
  return "{}";
10455
10456
  if (T < k.length + 1)
10456
10457
  return '"[Object]"';
10457
- let M = "", z = "";
10458
+ let M = "", B = "";
10458
10459
  F !== "" && (j += F, X = `,
10459
10460
  ${j}`, M = " ");
10460
10461
  const ee = Math.min(O, R);
10461
- A && !s(B) && (ne = o(ne, P)), k.push(B);
10462
+ A && !s(V) && (ne = o(ne, P)), k.push(V);
10462
10463
  for (let K = 0; K < ee; K++) {
10463
- const I = ne[K], q = x(I, B, k, U, F, j);
10464
- q !== void 0 && (G += `${z}${a(I)}:${M}${q}`, z = X);
10464
+ const I = ne[K], q = x(I, V, k, U, F, j);
10465
+ q !== void 0 && (G += `${B}${a(I)}:${M}${q}`, B = X);
10465
10466
  }
10466
10467
  if (O > R) {
10467
10468
  const K = O - R;
10468
- G += `${z}"...":${M}"${p(K)} not stringified"`, z = X;
10469
+ G += `${B}"...":${M}"${p(K)} not stringified"`, B = X;
10469
10470
  }
10470
- return F !== "" && z.length > 1 && (G = `
10471
+ return F !== "" && B.length > 1 && (G = `
10471
10472
  ${j}${G}
10472
10473
  ${W}`), k.pop(), `{${G}}`;
10473
10474
  }
10474
10475
  case "number":
10475
- return isFinite(B) ? String(B) : b ? b(B) : "null";
10476
+ return isFinite(V) ? String(V) : b ? b(V) : "null";
10476
10477
  case "boolean":
10477
- return B === !0 ? "true" : "false";
10478
+ return V === !0 ? "true" : "false";
10478
10479
  case "undefined":
10479
10480
  return;
10480
10481
  case "bigint":
10481
10482
  if (_)
10482
- return String(B);
10483
+ return String(V);
10483
10484
  // fallthrough
10484
10485
  default:
10485
- return b ? b(B) : void 0;
10486
+ return b ? b(V) : void 0;
10486
10487
  }
10487
10488
  }
10488
10489
  function C($, L, k, U, F, j) {
@@ -10494,7 +10495,7 @@ ${W}`), k.pop(), `{${G}}`;
10494
10495
  return "null";
10495
10496
  if (k.indexOf(L) !== -1)
10496
10497
  return w;
10497
- const B = j;
10498
+ const V = j;
10498
10499
  let G = "", X = ",";
10499
10500
  if (Array.isArray(L)) {
10500
10501
  if (L.length === 0)
@@ -10510,13 +10511,13 @@ ${j}`);
10510
10511
  const ee = C(String(M), L[M], k, U, F, j);
10511
10512
  G += ee !== void 0 ? ee : "null", G += X;
10512
10513
  }
10513
- const z = C(String(M), L[M], k, U, F, j);
10514
- if (G += z !== void 0 ? z : "null", L.length - 1 > R) {
10514
+ const B = C(String(M), L[M], k, U, F, j);
10515
+ if (G += B !== void 0 ? B : "null", L.length - 1 > R) {
10515
10516
  const ee = L.length - R - 1;
10516
10517
  G += `${X}"... ${p(ee)} not stringified"`;
10517
10518
  }
10518
10519
  return F !== "" && (G += `
10519
- ${B}`), k.pop(), `[${G}]`;
10520
+ ${V}`), k.pop(), `[${G}]`;
10520
10521
  }
10521
10522
  k.push(L);
10522
10523
  let W = "";
@@ -10529,7 +10530,7 @@ ${j}`, W = " ");
10529
10530
  }
10530
10531
  return F !== "" && ne.length > 1 && (G = `
10531
10532
  ${j}${G}
10532
- ${B}`), k.pop(), `{${G}}`;
10533
+ ${V}`), k.pop(), `{${G}}`;
10533
10534
  }
10534
10535
  case "number":
10535
10536
  return isFinite(L) ? String(L) : b ? b(L) : "null";
@@ -10569,23 +10570,23 @@ ${B}`), k.pop(), `{${G}}`;
10569
10570
  k.push(L), F += U;
10570
10571
  let M = `
10571
10572
  ${F}`;
10572
- const z = `,
10573
+ const B = `,
10573
10574
  ${F}`, ee = Math.min(L.length, R);
10574
10575
  let K = 0;
10575
10576
  for (; K < ee - 1; K++) {
10576
10577
  const q = S(String(K), L[K], k, U, F);
10577
- M += q !== void 0 ? q : "null", M += z;
10578
+ M += q !== void 0 ? q : "null", M += B;
10578
10579
  }
10579
10580
  const I = S(String(K), L[K], k, U, F);
10580
10581
  if (M += I !== void 0 ? I : "null", L.length - 1 > R) {
10581
10582
  const q = L.length - R - 1;
10582
- M += `${z}"... ${p(q)} not stringified"`;
10583
+ M += `${B}"... ${p(q)} not stringified"`;
10583
10584
  }
10584
10585
  return M += `
10585
10586
  ${j}`, k.pop(), `[${M}]`;
10586
10587
  }
10587
- let B = Object.keys(L);
10588
- const G = B.length;
10588
+ let V = Object.keys(L);
10589
+ const G = V.length;
10589
10590
  if (G === 0)
10590
10591
  return "{}";
10591
10592
  if (T < k.length + 1)
@@ -10594,10 +10595,10 @@ ${j}`, k.pop(), `[${M}]`;
10594
10595
  const X = `,
10595
10596
  ${F}`;
10596
10597
  let W = "", ne = "", O = Math.min(G, R);
10597
- s(L) && (W += c(L, X, R), B = B.slice(L.length), O -= L.length, ne = X), A && (B = o(B, P)), k.push(L);
10598
+ s(L) && (W += c(L, X, R), V = V.slice(L.length), O -= L.length, ne = X), A && (V = o(V, P)), k.push(L);
10598
10599
  for (let M = 0; M < O; M++) {
10599
- const z = B[M], ee = S(z, L[z], k, U, F);
10600
- ee !== void 0 && (W += `${ne}${a(z)}: ${ee}`, ne = X);
10600
+ const B = V[M], ee = S(B, L[B], k, U, F);
10601
+ ee !== void 0 && (W += `${ne}${a(B)}: ${ee}`, ne = X);
10601
10602
  }
10602
10603
  if (G > R) {
10603
10604
  const M = G - R;
@@ -10658,19 +10659,19 @@ ${j}`), k.pop(), `{${W}}`;
10658
10659
  return k.pop(), `[${U}]`;
10659
10660
  }
10660
10661
  let j = Object.keys(L);
10661
- const B = j.length;
10662
- if (B === 0)
10662
+ const V = j.length;
10663
+ if (V === 0)
10663
10664
  return "{}";
10664
10665
  if (T < k.length + 1)
10665
10666
  return '"[Object]"';
10666
- let G = "", X = Math.min(B, R);
10667
+ let G = "", X = Math.min(V, R);
10667
10668
  F && s(L) && (U += c(L, ",", R), j = j.slice(L.length), X -= L.length, G = ","), A && (j = o(j, P)), k.push(L);
10668
10669
  for (let W = 0; W < X; W++) {
10669
10670
  const ne = j[W], O = D(ne, L[ne], k);
10670
10671
  O !== void 0 && (U += `${G}${a(ne)}:${O}`, G = ",");
10671
10672
  }
10672
- if (B > R) {
10673
- const W = B - R;
10673
+ if (V > R) {
10674
+ const W = V - R;
10674
10675
  U += `${G}"...":"${p(W)} not stringified"`;
10675
10676
  }
10676
10677
  return k.pop(), `{${U}}`;
@@ -12281,13 +12282,13 @@ function Ad() {
12281
12282
  s("read", I), I = parseInt(I, 10);
12282
12283
  var q = this._readableState, Z = I;
12283
12284
  if (I !== 0 && (q.emittedReadable = !1), I === 0 && q.needReadable && ((q.highWaterMark !== 0 ? q.length >= q.highWaterMark : q.length > 0) || q.ended))
12284
- return s("read: emitReadable", q.length, q.ended), q.length === 0 && q.ended ? z(this) : k(this), null;
12285
+ return s("read: emitReadable", q.length, q.ended), q.length === 0 && q.ended ? B(this) : k(this), null;
12285
12286
  if (I = $(I, q), I === 0 && q.ended)
12286
- return q.length === 0 && z(this), null;
12287
+ return q.length === 0 && B(this), null;
12287
12288
  var te = q.needReadable;
12288
12289
  s("need readable", te), (q.length === 0 || q.length - I < q.highWaterMark) && (te = !0, s("length less than watermark", te)), q.ended || q.reading ? (te = !1, s("reading or ended", te)) : te && (s("do read"), q.reading = !0, q.sync = !0, q.length === 0 && (q.needReadable = !0), this._read(q.highWaterMark), q.sync = !1, q.reading || (I = $(Z, q)));
12289
12290
  var he;
12290
- return I > 0 ? he = M(I, q) : he = null, he === null ? (q.needReadable = q.length <= q.highWaterMark, I = 0) : (q.length -= I, q.awaitDrain = 0), q.length === 0 && (q.ended || (q.needReadable = !0), Z !== I && q.ended && z(this)), he !== null && this.emit("data", he), he;
12291
+ return I > 0 ? he = M(I, q) : he = null, he === null ? (q.needReadable = q.length <= q.highWaterMark, I = 0) : (q.length -= I, q.awaitDrain = 0), q.length === 0 && (q.ended || (q.needReadable = !0), Z !== I && q.ended && B(this)), he !== null && this.emit("data", he), he;
12291
12292
  };
12292
12293
  function L(I, q) {
12293
12294
  if (s("onEofChunk"), !q.ended) {
@@ -12341,7 +12342,7 @@ function Ad() {
12341
12342
  function Pe() {
12342
12343
  s("onend"), I.end();
12343
12344
  }
12344
- var Se = B(Z);
12345
+ var Se = V(Z);
12345
12346
  I.on("drain", Se);
12346
12347
  var Be = !1;
12347
12348
  function Ne() {
@@ -12370,7 +12371,7 @@ function Ad() {
12370
12371
  }
12371
12372
  return I.emit("pipe", Z), te.flowing || (s("pipe resume"), Z.resume()), I;
12372
12373
  };
12373
- function B(I) {
12374
+ function V(I) {
12374
12375
  return function() {
12375
12376
  var Z = I._readableState;
12376
12377
  s("pipeOnDrain", Z.awaitDrain), Z.awaitDrain && Z.awaitDrain--, Z.awaitDrain === 0 && e(I, "data") && (Z.flowing = !0, O(I));
@@ -12495,7 +12496,7 @@ function Ad() {
12495
12496
  var Z;
12496
12497
  return q.objectMode ? Z = q.buffer.shift() : !I || I >= q.length ? (q.decoder ? Z = q.buffer.join("") : q.buffer.length === 1 ? Z = q.buffer.first() : Z = q.buffer.concat(q.length), q.buffer.clear()) : Z = q.buffer.consume(I, q.decoder), Z;
12497
12498
  }
12498
- function z(I) {
12499
+ function B(I) {
12499
12500
  var q = I._readableState;
12500
12501
  s("endReadable", q.endEmitted), q.endEmitted || (q.ended = !0, process.nextTick(ee, q, I));
12501
12502
  }
@@ -12605,17 +12606,17 @@ function yi() {
12605
12606
  zt()(T, i);
12606
12607
  function _() {
12607
12608
  }
12608
- function A(O, M, z) {
12609
- e = e || ut(), O = O || {}, typeof z != "boolean" && (z = M instanceof e), this.objectMode = !!O.objectMode, z && (this.objectMode = this.objectMode || !!O.writableObjectMode), this.highWaterMark = f(this, O, "writableHighWaterMark", z), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
12609
+ function A(O, M, B) {
12610
+ e = e || ut(), O = O || {}, typeof B != "boolean" && (B = M instanceof e), this.objectMode = !!O.objectMode, B && (this.objectMode = this.objectMode || !!O.writableObjectMode), this.highWaterMark = f(this, O, "writableHighWaterMark", B), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
12610
12611
  var ee = O.decodeStrings === !1;
12611
12612
  this.decodeStrings = !ee, this.defaultEncoding = O.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(K) {
12612
12613
  L(M, K);
12613
12614
  }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = O.emitClose !== !1, this.autoDestroy = !!O.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new t(this);
12614
12615
  }
12615
12616
  A.prototype.getBuffer = function() {
12616
- for (var M = this.bufferedRequest, z = []; M; )
12617
- z.push(M), M = M.next;
12618
- return z;
12617
+ for (var M = this.bufferedRequest, B = []; M; )
12618
+ B.push(M), M = M.next;
12619
+ return B;
12619
12620
  }, function() {
12620
12621
  try {
12621
12622
  Object.defineProperty(A.prototype, "buffer", {
@@ -12644,16 +12645,16 @@ function yi() {
12644
12645
  w(this, new m());
12645
12646
  };
12646
12647
  function R(O, M) {
12647
- var z = new h();
12648
- w(O, z), process.nextTick(M, z);
12648
+ var B = new h();
12649
+ w(O, B), process.nextTick(M, B);
12649
12650
  }
12650
- function x(O, M, z, ee) {
12651
+ function x(O, M, B, ee) {
12651
12652
  var K;
12652
- return z === null ? K = new l() : typeof z != "string" && !M.objectMode && (K = new g("chunk", ["string", "Buffer"], z)), K ? (w(O, K), process.nextTick(ee, K), !1) : !0;
12653
+ return B === null ? K = new l() : typeof B != "string" && !M.objectMode && (K = new g("chunk", ["string", "Buffer"], B)), K ? (w(O, K), process.nextTick(ee, K), !1) : !0;
12653
12654
  }
12654
- T.prototype.write = function(O, M, z) {
12655
+ T.prototype.write = function(O, M, B) {
12655
12656
  var ee = this._writableState, K = !1, I = !ee.objectMode && u(O);
12656
- return I && !r.isBuffer(O) && (O = o(O)), typeof M == "function" && (z = M, M = null), I ? M = "buffer" : M || (M = ee.defaultEncoding), typeof z != "function" && (z = _), ee.ending ? R(this, z) : (I || x(this, ee, O, z)) && (ee.pendingcb++, K = S(this, ee, I, O, M, z)), K;
12657
+ return I && !r.isBuffer(O) && (O = o(O)), typeof M == "function" && (B = M, M = null), I ? M = "buffer" : M || (M = ee.defaultEncoding), typeof B != "function" && (B = _), ee.ending ? R(this, B) : (I || x(this, ee, O, B)) && (ee.pendingcb++, K = S(this, ee, I, O, M, B)), K;
12657
12658
  }, T.prototype.cork = function() {
12658
12659
  this._writableState.corked++;
12659
12660
  }, T.prototype.uncork = function() {
@@ -12671,8 +12672,8 @@ function yi() {
12671
12672
  return this._writableState && this._writableState.getBuffer();
12672
12673
  }
12673
12674
  });
12674
- function C(O, M, z) {
12675
- return !O.objectMode && O.decodeStrings !== !1 && typeof M == "string" && (M = r.from(M, z)), M;
12675
+ function C(O, M, B) {
12676
+ return !O.objectMode && O.decodeStrings !== !1 && typeof M == "string" && (M = r.from(M, B)), M;
12676
12677
  }
12677
12678
  Object.defineProperty(T.prototype, "writableHighWaterMark", {
12678
12679
  // making it explicit this property is not enumerable
@@ -12683,10 +12684,10 @@ function yi() {
12683
12684
  return this._writableState.highWaterMark;
12684
12685
  }
12685
12686
  });
12686
- function S(O, M, z, ee, K, I) {
12687
- if (!z) {
12687
+ function S(O, M, B, ee, K, I) {
12688
+ if (!B) {
12688
12689
  var q = C(M, ee, K);
12689
- ee !== q && (z = !0, K = "buffer", ee = q);
12690
+ ee !== q && (B = !0, K = "buffer", ee = q);
12690
12691
  }
12691
12692
  var Z = M.objectMode ? 1 : ee.length;
12692
12693
  M.length += Z;
@@ -12696,7 +12697,7 @@ function yi() {
12696
12697
  M.lastBufferedRequest = {
12697
12698
  chunk: ee,
12698
12699
  encoding: K,
12699
- isBuf: z,
12700
+ isBuf: B,
12700
12701
  callback: I,
12701
12702
  next: null
12702
12703
  }, he ? he.next = M.lastBufferedRequest : M.bufferedRequest = M.lastBufferedRequest, M.bufferedRequestCount += 1;
@@ -12704,54 +12705,54 @@ function yi() {
12704
12705
  D(O, M, !1, Z, ee, K, I);
12705
12706
  return te;
12706
12707
  }
12707
- function D(O, M, z, ee, K, I, q) {
12708
- M.writelen = ee, M.writecb = q, M.writing = !0, M.sync = !0, M.destroyed ? M.onwrite(new v("write")) : z ? O._writev(K, M.onwrite) : O._write(K, I, M.onwrite), M.sync = !1;
12708
+ function D(O, M, B, ee, K, I, q) {
12709
+ M.writelen = ee, M.writecb = q, M.writing = !0, M.sync = !0, M.destroyed ? M.onwrite(new v("write")) : B ? O._writev(K, M.onwrite) : O._write(K, I, M.onwrite), M.sync = !1;
12709
12710
  }
12710
- function E(O, M, z, ee, K) {
12711
- --M.pendingcb, z ? (process.nextTick(K, ee), process.nextTick(X, O, M), O._writableState.errorEmitted = !0, w(O, ee)) : (K(ee), O._writableState.errorEmitted = !0, w(O, ee), X(O, M));
12711
+ function E(O, M, B, ee, K) {
12712
+ --M.pendingcb, B ? (process.nextTick(K, ee), process.nextTick(X, O, M), O._writableState.errorEmitted = !0, w(O, ee)) : (K(ee), O._writableState.errorEmitted = !0, w(O, ee), X(O, M));
12712
12713
  }
12713
12714
  function $(O) {
12714
12715
  O.writing = !1, O.writecb = null, O.length -= O.writelen, O.writelen = 0;
12715
12716
  }
12716
12717
  function L(O, M) {
12717
- var z = O._writableState, ee = z.sync, K = z.writecb;
12718
+ var B = O._writableState, ee = B.sync, K = B.writecb;
12718
12719
  if (typeof K != "function") throw new p();
12719
- if ($(z), M) E(O, z, ee, M, K);
12720
+ if ($(B), M) E(O, B, ee, M, K);
12720
12721
  else {
12721
- var I = j(z) || O.destroyed;
12722
- !I && !z.corked && !z.bufferProcessing && z.bufferedRequest && F(O, z), ee ? process.nextTick(k, O, z, I, K) : k(O, z, I, K);
12722
+ var I = j(B) || O.destroyed;
12723
+ !I && !B.corked && !B.bufferProcessing && B.bufferedRequest && F(O, B), ee ? process.nextTick(k, O, B, I, K) : k(O, B, I, K);
12723
12724
  }
12724
12725
  }
12725
- function k(O, M, z, ee) {
12726
- z || U(O, M), M.pendingcb--, ee(), X(O, M);
12726
+ function k(O, M, B, ee) {
12727
+ B || U(O, M), M.pendingcb--, ee(), X(O, M);
12727
12728
  }
12728
12729
  function U(O, M) {
12729
12730
  M.length === 0 && M.needDrain && (M.needDrain = !1, O.emit("drain"));
12730
12731
  }
12731
12732
  function F(O, M) {
12732
12733
  M.bufferProcessing = !0;
12733
- var z = M.bufferedRequest;
12734
- if (O._writev && z && z.next) {
12734
+ var B = M.bufferedRequest;
12735
+ if (O._writev && B && B.next) {
12735
12736
  var ee = M.bufferedRequestCount, K = new Array(ee), I = M.corkedRequestsFree;
12736
- I.entry = z;
12737
- for (var q = 0, Z = !0; z; )
12738
- K[q] = z, z.isBuf || (Z = !1), z = z.next, q += 1;
12737
+ I.entry = B;
12738
+ for (var q = 0, Z = !0; B; )
12739
+ K[q] = B, B.isBuf || (Z = !1), B = B.next, q += 1;
12739
12740
  K.allBuffers = Z, D(O, M, !0, M.length, K, "", I.finish), M.pendingcb++, M.lastBufferedRequest = null, I.next ? (M.corkedRequestsFree = I.next, I.next = null) : M.corkedRequestsFree = new t(M), M.bufferedRequestCount = 0;
12740
12741
  } else {
12741
- for (; z; ) {
12742
- var te = z.chunk, he = z.encoding, ae = z.callback, le = M.objectMode ? 1 : te.length;
12743
- if (D(O, M, !1, le, te, he, ae), z = z.next, M.bufferedRequestCount--, M.writing)
12742
+ for (; B; ) {
12743
+ var te = B.chunk, he = B.encoding, ae = B.callback, le = M.objectMode ? 1 : te.length;
12744
+ if (D(O, M, !1, le, te, he, ae), B = B.next, M.bufferedRequestCount--, M.writing)
12744
12745
  break;
12745
12746
  }
12746
- z === null && (M.lastBufferedRequest = null);
12747
+ B === null && (M.lastBufferedRequest = null);
12747
12748
  }
12748
- M.bufferedRequest = z, M.bufferProcessing = !1;
12749
+ M.bufferedRequest = B, M.bufferProcessing = !1;
12749
12750
  }
12750
- T.prototype._write = function(O, M, z) {
12751
- z(new d("_write()"));
12752
- }, T.prototype._writev = null, T.prototype.end = function(O, M, z) {
12751
+ T.prototype._write = function(O, M, B) {
12752
+ B(new d("_write()"));
12753
+ }, T.prototype._writev = null, T.prototype.end = function(O, M, B) {
12753
12754
  var ee = this._writableState;
12754
- return typeof O == "function" ? (z = O, O = null, M = null) : typeof M == "function" && (z = M, M = null), O != null && this.write(O, M), ee.corked && (ee.corked = 1, this.uncork()), ee.ending || W(this, ee, z), this;
12755
+ return typeof O == "function" ? (B = O, O = null, M = null) : typeof M == "function" && (B = M, M = null), O != null && this.write(O, M), ee.corked && (ee.corked = 1, this.uncork()), ee.ending || W(this, ee, B), this;
12755
12756
  }, Object.defineProperty(T.prototype, "writableLength", {
12756
12757
  // making it explicit this property is not enumerable
12757
12758
  // because otherwise some prototype manipulation in
@@ -12764,30 +12765,30 @@ function yi() {
12764
12765
  function j(O) {
12765
12766
  return O.ending && O.length === 0 && O.bufferedRequest === null && !O.finished && !O.writing;
12766
12767
  }
12767
- function B(O, M) {
12768
- O._final(function(z) {
12769
- M.pendingcb--, z && w(O, z), M.prefinished = !0, O.emit("prefinish"), X(O, M);
12768
+ function V(O, M) {
12769
+ O._final(function(B) {
12770
+ M.pendingcb--, B && w(O, B), M.prefinished = !0, O.emit("prefinish"), X(O, M);
12770
12771
  });
12771
12772
  }
12772
12773
  function G(O, M) {
12773
- !M.prefinished && !M.finalCalled && (typeof O._final == "function" && !M.destroyed ? (M.pendingcb++, M.finalCalled = !0, process.nextTick(B, O, M)) : (M.prefinished = !0, O.emit("prefinish")));
12774
+ !M.prefinished && !M.finalCalled && (typeof O._final == "function" && !M.destroyed ? (M.pendingcb++, M.finalCalled = !0, process.nextTick(V, O, M)) : (M.prefinished = !0, O.emit("prefinish")));
12774
12775
  }
12775
12776
  function X(O, M) {
12776
- var z = j(M);
12777
- if (z && (G(O, M), M.pendingcb === 0 && (M.finished = !0, O.emit("finish"), M.autoDestroy))) {
12777
+ var B = j(M);
12778
+ if (B && (G(O, M), M.pendingcb === 0 && (M.finished = !0, O.emit("finish"), M.autoDestroy))) {
12778
12779
  var ee = O._readableState;
12779
12780
  (!ee || ee.autoDestroy && ee.endEmitted) && O.destroy();
12780
12781
  }
12781
- return z;
12782
+ return B;
12782
12783
  }
12783
- function W(O, M, z) {
12784
- M.ending = !0, X(O, M), z && (M.finished ? process.nextTick(z) : O.once("finish", z)), M.ended = !0, O.writable = !1;
12784
+ function W(O, M, B) {
12785
+ M.ending = !0, X(O, M), B && (M.finished ? process.nextTick(B) : O.once("finish", B)), M.ended = !0, O.writable = !1;
12785
12786
  }
12786
- function ne(O, M, z) {
12787
+ function ne(O, M, B) {
12787
12788
  var ee = O.entry;
12788
12789
  for (O.entry = null; ee; ) {
12789
12790
  var K = ee.callback;
12790
- M.pendingcb--, K(z), ee = ee.next;
12791
+ M.pendingcb--, K(B), ee = ee.next;
12791
12792
  }
12792
12793
  M.corkedRequestsFree.next = O;
12793
12794
  }
@@ -14842,12 +14843,12 @@ function ob() {
14842
14843
  function j(W, ne) {
14843
14844
  try {
14844
14845
  var O = JSON.parse(W);
14845
- G(O) && B(O);
14846
+ G(O) && V(O);
14846
14847
  } catch (M) {
14847
14848
  ne || F.emit("error", M);
14848
14849
  }
14849
14850
  }
14850
- function B(W) {
14851
+ function V(W) {
14851
14852
  if (D.rows && k.length >= D.rows && D.order !== "desc") {
14852
14853
  F.readable && F.destroy();
14853
14854
  return;
@@ -15090,12 +15091,12 @@ function ob() {
15090
15091
  var L = this, k = [];
15091
15092
  if (this.maxFiles) {
15092
15093
  for (var U = this.zippedArchive ? ".gz" : "", F = this.maxFiles - 1; F > 1; F--)
15093
- k.push(function(j, B) {
15094
+ k.push(function(j, V) {
15094
15095
  var G = this, X = "".concat(E).concat(j - 1).concat(D).concat(U), W = p.join(this.dirname, X);
15095
15096
  d.exists(W, function(ne) {
15096
15097
  if (!ne)
15097
- return B(null);
15098
- X = "".concat(E).concat(j).concat(D).concat(U), d.rename(W, p.join(G.dirname, X), B);
15098
+ return V(null);
15099
+ X = "".concat(E).concat(j).concat(D).concat(U), d.rename(W, p.join(G.dirname, X), V);
15099
15100
  });
15100
15101
  }.bind(this, F));
15101
15102
  m(k, function() {
@@ -16602,8 +16603,8 @@ function Js() {
16602
16603
  }, {
16603
16604
  key: "configure",
16604
16605
  value: function() {
16605
- var F = this, j = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, B = j.silent, G = j.format, X = j.defaultMeta, W = j.levels, ne = j.level, O = ne === void 0 ? "info" : ne, M = j.exitOnError, z = M === void 0 ? !0 : M, ee = j.transports, K = j.colors, I = j.emitErrs, q = j.formatters, Z = j.padLevels, te = j.rewriters, he = j.stripColors, ae = j.exceptionHandlers, le = j.rejectionHandlers;
16606
- if (this.transports.length && this.clear(), this.silent = B, this.format = G || this.format || bb()(), this.defaultMeta = X || null, this.levels = W || this.levels || S.npm.levels, this.level = O, this.exceptions && this.exceptions.unhandle(), this.rejections && this.rejections.unhandle(), this.exceptions = new A(this), this.rejections = new P(this), this.profilers = {}, this.exitOnError = z, ee && (ee = Array.isArray(ee) ? ee : [ee], ee.forEach(function(Pe) {
16606
+ var F = this, j = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, V = j.silent, G = j.format, X = j.defaultMeta, W = j.levels, ne = j.level, O = ne === void 0 ? "info" : ne, M = j.exitOnError, B = M === void 0 ? !0 : M, ee = j.transports, K = j.colors, I = j.emitErrs, q = j.formatters, Z = j.padLevels, te = j.rewriters, he = j.stripColors, ae = j.exceptionHandlers, le = j.rejectionHandlers;
16607
+ if (this.transports.length && this.clear(), this.silent = V, this.format = G || this.format || bb()(), this.defaultMeta = X || null, this.levels = W || this.levels || S.npm.levels, this.level = O, this.exceptions && this.exceptions.unhandle(), this.rejections && this.rejections.unhandle(), this.exceptions = new A(this), this.rejections = new P(this), this.profilers = {}, this.exitOnError = B, ee && (ee = Array.isArray(ee) ? ee : [ee], ee.forEach(function(Pe) {
16607
16608
  return F.add(Pe);
16608
16609
  })), K || I || q || Z || te || he)
16609
16610
  throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.", "Use a custom winston.format(function) instead.", "See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
@@ -16613,17 +16614,17 @@ function Js() {
16613
16614
  }, {
16614
16615
  key: "isLevelEnabled",
16615
16616
  value: function(F) {
16616
- var j = this, B = $(this.levels, F);
16617
- if (B === null)
16617
+ var j = this, V = $(this.levels, F);
16618
+ if (V === null)
16618
16619
  return !1;
16619
16620
  var G = $(this.levels, this.level);
16620
16621
  if (G === null)
16621
16622
  return !1;
16622
16623
  if (!this.transports || this.transports.length === 0)
16623
- return G >= B;
16624
+ return G >= V;
16624
16625
  var X = this.transports.findIndex(function(W) {
16625
16626
  var ne = $(j.levels, W.level);
16626
- return ne === null && (ne = G), ne >= B;
16627
+ return ne === null && (ne = G), ne >= V;
16627
16628
  });
16628
16629
  return X !== -1;
16629
16630
  }
@@ -16660,7 +16661,7 @@ function Js() {
16660
16661
  }, {
16661
16662
  key: "log",
16662
16663
  value: function(F, j) {
16663
- for (var B = arguments.length, G = new Array(B > 2 ? B - 2 : 0), X = 2; X < B; X++)
16664
+ for (var V = arguments.length, G = new Array(V > 2 ? V - 2 : 0), X = 2; X < V; X++)
16664
16665
  G[X - 2] = arguments[X];
16665
16666
  if (arguments.length === 1)
16666
16667
  return F[b] = F.level, this._addDefaultMeta(F), this.write(F), this;
@@ -16686,14 +16687,14 @@ function Js() {
16686
16687
  */
16687
16688
  }, {
16688
16689
  key: "_transform",
16689
- value: function(F, j, B) {
16690
+ value: function(F, j, V) {
16690
16691
  if (this.silent)
16691
- return B();
16692
+ return V();
16692
16693
  F[b] || (F[b] = F.level), !this.levels[F[b]] && this.levels[F[b]] !== 0 && console.error("[winston] Unknown logger level: %s", F[b]), this._readableState.pipes || console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j", F);
16693
16694
  try {
16694
16695
  this.push(this.format.transform(F, this.format.options));
16695
16696
  } finally {
16696
- this._writableState.sync = !1, B();
16697
+ this._writableState.sync = !1, V();
16697
16698
  }
16698
16699
  }
16699
16700
  /**
@@ -16705,9 +16706,9 @@ function Js() {
16705
16706
  key: "_final",
16706
16707
  value: function(F) {
16707
16708
  var j = this.transports.slice();
16708
- l(j, function(B, G) {
16709
- if (!B || B.finished) return setImmediate(G);
16710
- B.once("finish", G), B.end();
16709
+ l(j, function(V, G) {
16710
+ if (!V || V.finished) return setImmediate(G);
16711
+ V.once("finish", G), V.end();
16711
16712
  }, F);
16712
16713
  }
16713
16714
  /**
@@ -16735,8 +16736,8 @@ function Js() {
16735
16736
  value: function(F) {
16736
16737
  if (!F) return this;
16737
16738
  var j = F;
16738
- return (!_(F) || F.log.length > 2) && (j = this.transports.filter(function(B) {
16739
- return B.transport === F;
16739
+ return (!_(F) || F.log.length > 2) && (j = this.transports.filter(function(V) {
16740
+ return V.transport === F;
16740
16741
  })[0]), j && this.unpipe(j), this;
16741
16742
  }
16742
16743
  /**
@@ -16778,23 +16779,23 @@ function Js() {
16778
16779
  key: "query",
16779
16780
  value: function(F, j) {
16780
16781
  typeof F == "function" && (j = F, F = {}), F = F || {};
16781
- var B = {}, G = Object.assign({}, F.query || {});
16782
+ var V = {}, G = Object.assign({}, F.query || {});
16782
16783
  function X(ne, O) {
16783
- F.query && typeof ne.formatQuery == "function" && (F.query = ne.formatQuery(G)), ne.query(F, function(M, z) {
16784
+ F.query && typeof ne.formatQuery == "function" && (F.query = ne.formatQuery(G)), ne.query(F, function(M, B) {
16784
16785
  if (M)
16785
16786
  return O(M);
16786
- typeof ne.formatResults == "function" && (z = ne.formatResults(z, F.format)), O(null, z);
16787
+ typeof ne.formatResults == "function" && (B = ne.formatResults(B, F.format)), O(null, B);
16787
16788
  });
16788
16789
  }
16789
16790
  function W(ne, O) {
16790
- X(ne, function(M, z) {
16791
- O && (z = M || z, z && (B[ne.name] = z), O()), O = null;
16791
+ X(ne, function(M, B) {
16792
+ O && (B = M || B, B && (V[ne.name] = B), O()), O = null;
16792
16793
  });
16793
16794
  }
16794
16795
  l(this.transports.filter(function(ne) {
16795
16796
  return !!ne.query;
16796
16797
  }), W, function() {
16797
- return j(null, B);
16798
+ return j(null, V);
16798
16799
  });
16799
16800
  }
16800
16801
  /**
@@ -16805,15 +16806,15 @@ function Js() {
16805
16806
  }, {
16806
16807
  key: "stream",
16807
16808
  value: function() {
16808
- var F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, j = new m(), B = [];
16809
- return j._streams = B, j.destroy = function() {
16810
- for (var G = B.length; G--; )
16811
- B[G].destroy();
16809
+ var F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, j = new m(), V = [];
16810
+ return j._streams = V, j.destroy = function() {
16811
+ for (var G = V.length; G--; )
16812
+ V[G].destroy();
16812
16813
  }, this.transports.filter(function(G) {
16813
16814
  return !!G.stream;
16814
16815
  }).forEach(function(G) {
16815
16816
  var X = G.stream(F);
16816
- X && (B.push(X), X.on("log", function(W) {
16817
+ X && (V.push(X), X.on("log", function(W) {
16817
16818
  W.transport = W.transport || [], W.transport.push(G.name), j.emit("log", W);
16818
16819
  }), X.on("error", function(W) {
16819
16820
  W.transport = W.transport || [], W.transport.push(G.name), j.emit("error", W);
@@ -16849,13 +16850,13 @@ function Js() {
16849
16850
  value: function(F) {
16850
16851
  var j = Date.now();
16851
16852
  if (this.profilers[F]) {
16852
- var B = this.profilers[F];
16853
+ var V = this.profilers[F];
16853
16854
  delete this.profilers[F];
16854
16855
  for (var G = arguments.length, X = new Array(G > 1 ? G - 1 : 0), W = 1; W < G; W++)
16855
16856
  X[W - 1] = arguments[W];
16856
16857
  typeof X[X.length - 2] == "function" && (console.warn("Callback function no longer supported as of winston@3.0.0"), X.pop());
16857
16858
  var ne = e(X[X.length - 1]) === "object" ? X.pop() : {};
16858
- return ne.level = ne.level || "info", ne.durationMs = j - B, ne.message = ne.message || F, this.write(ne);
16859
+ return ne.level = ne.level || "info", ne.durationMs = j - V, ne.message = ne.message || F, this.write(ne);
16859
16860
  }
16860
16861
  return this.profilers[F] = j, this;
16861
16862
  }
@@ -16901,10 +16902,10 @@ function Js() {
16901
16902
  }, {
16902
16903
  key: "_onEvent",
16903
16904
  value: function(F, j) {
16904
- function B(G) {
16905
+ function V(G) {
16905
16906
  F === "error" && !this.transports.includes(j) && this.add(j), this.emit(F, G, j);
16906
16907
  }
16907
- j["__winston" + F] || (j["__winston" + F] = B.bind(this), j.on(F, j["__winston" + F]));
16908
+ j["__winston" + F] || (j["__winston" + F] = V.bind(this), j.on(F, j["__winston" + F]));
16908
16909
  }
16909
16910
  }, {
16910
16911
  key: "_addDefaultMeta",
@@ -17806,7 +17807,7 @@ async function Hr(t, e, { stdin: n, stdout: i } = { stdin: process.stdin, stdout
17806
17807
  n.on("data", u), n.once("error", s);
17807
17808
  });
17808
17809
  }
17809
- const Qd = import("./node-DIICN5y9.js").then(
17810
+ const Qd = import("./node-Cye82yIV.js").then(
17810
17811
  ({ nodeFileSystem: t }) => t
17811
17812
  ), ts = Ut(um.exec);
17812
17813
  async function Tw(t) {
@@ -17987,11 +17988,10 @@ class Lw {
17987
17988
  o.printedMessageIndexes,
17988
17989
  o.printedToolRuns
17989
17990
  );
17990
- (y.messages.length > 0 || y.toolResults.length > 0) && this.events.next({
17991
+ y.blocks.length > 0 && this.events.next({
17991
17992
  type: "subthread-message",
17992
17993
  subThreadID: e,
17993
- messages: y.messages,
17994
- toolResults: y.toolResults,
17994
+ blocks: y.blocks,
17995
17995
  color: o.color
17996
17996
  });
17997
17997
  }
@@ -18389,17 +18389,17 @@ async function Bw({
18389
18389
  J.error("Thread sync error", j, { threadID: d });
18390
18390
  }), F && E.type !== "confirming-compaction" && E.type !== "compacting") {
18391
18391
  const j = F.used / F.maxAvailable;
18392
- let B, G = E.compactionPromptState;
18393
- if (j > is.CRITICAL ? (B = "critical", G = "final") : j > is.WARNING && E.compactionPromptState === "none" ? (B = "moderate", G = "first") : j > is.SEVERE && E.compactionPromptState === "first" && (B = "severe", G = "final"), B)
18392
+ let V, G = E.compactionPromptState;
18393
+ if (j > is.CRITICAL ? (V = "critical", G = "final") : j > is.WARNING && E.compactionPromptState === "none" ? (V = "moderate", G = "first") : j > is.SEVERE && E.compactionPromptState === "first" && (V = "severe", G = "final"), V)
18394
18394
  return P.next({
18395
18395
  type: "confirm",
18396
18396
  confirmation: {
18397
18397
  type: "compaction",
18398
- severity: B
18398
+ severity: V
18399
18399
  }
18400
18400
  }), {
18401
18401
  type: "confirming-compaction",
18402
- severity: B,
18402
+ severity: V,
18403
18403
  tokenUsage: null,
18404
18404
  // from here we consider the token usage to be unknown
18405
18405
  compactionPromptState: G,
@@ -18418,10 +18418,10 @@ async function Bw({
18418
18418
  F.length > 0 && (J.info(`Updating allowlist with ${F.length} entries`, {
18419
18419
  entries: F
18420
18420
  }), s.get("commands.allowlist", "global").then((j) => {
18421
- const B = [...j ?? [], ...F];
18421
+ const V = [...j ?? [], ...F];
18422
18422
  return s.set(
18423
18423
  "commands.allowlist",
18424
- B,
18424
+ V,
18425
18425
  "global"
18426
18426
  );
18427
18427
  }).catch((j) => {
@@ -18439,10 +18439,9 @@ async function Bw({
18439
18439
  !0
18440
18440
  // Include user messages when continuing a thread
18441
18441
  );
18442
- (j.messages.length > 0 || j.toolResults.length > 0) && P.next({
18442
+ j.blocks.length > 0 && P.next({
18443
18443
  type: "messages",
18444
- messages: j.messages,
18445
- toolResults: j.toolResults
18444
+ blocks: j.blocks
18446
18445
  });
18447
18446
  }
18448
18447
  let F = E.tokenUsage;
@@ -18477,15 +18476,14 @@ async function Bw({
18477
18476
  tokenUsage: F
18478
18477
  };
18479
18478
  if (E.type === "awaiting-agent" || E.type === "compacting") {
18480
- const j = $.thread.messages.at(-1), B = ls(
18479
+ const j = $.thread.messages.at(-1), V = ls(
18481
18480
  $.thread,
18482
18481
  v,
18483
18482
  h
18484
18483
  );
18485
- if ((B.messages.length > 0 || B.toolResults.length > 0) && P.next({
18484
+ if (V.blocks.length > 0 && P.next({
18486
18485
  type: "messages",
18487
- messages: B.messages,
18488
- toolResults: B.toolResults
18486
+ blocks: V.blocks
18489
18487
  }), $.thread.messages.at(-1)?.content.some((M) => M.type === "summary"))
18490
18488
  return {
18491
18489
  ...k(),
@@ -18530,30 +18528,30 @@ async function Bw({
18530
18528
  for (const M of W) {
18531
18529
  if (!ne.has(M.toolUseID))
18532
18530
  continue;
18533
- const z = Yr($.thread, M.toolUseID), ee = E.toolConfirmationStatus.get(
18531
+ const B = Yr($.thread, M.toolUseID), ee = E.toolConfirmationStatus.get(
18534
18532
  M.toolUseID
18535
18533
  );
18536
- z && z.name === As && M.run.status === "blocked-on-user" && ee === void 0 && (E.toolConfirmationStatus.set(
18534
+ B && B.name === As && M.run.status === "blocked-on-user" && ee === void 0 && (E.toolConfirmationStatus.set(
18537
18535
  M.toolUseID,
18538
18536
  "awaiting"
18539
18537
  ), O = !0, J.info("Added new tool to confirmation tracking", {
18540
18538
  toolUseID: M.toolUseID,
18541
- toolName: z.name
18539
+ toolName: B.name
18542
18540
  }));
18543
18541
  }
18544
18542
  if (O) {
18545
18543
  const M = Array.from(
18546
18544
  E.toolConfirmationStatus.entries()
18547
- ).filter(([z, ee]) => ee === "awaiting");
18545
+ ).filter(([B, ee]) => ee === "awaiting");
18548
18546
  if (M.length > 0) {
18549
- const [z] = M[0], ee = W.find(
18550
- (I) => I.toolUseID === z
18547
+ const [B] = M[0], ee = W.find(
18548
+ (I) => I.toolUseID === B
18551
18549
  ), K = ee ? Yr($.thread, ee.toolUseID) : null;
18552
18550
  if (ee && K)
18553
18551
  return J.info(
18554
18552
  `Starting tool confirmation process for ${M.length} tools`,
18555
18553
  {
18556
- firstToolID: z,
18554
+ firstToolID: B,
18557
18555
  toolName: K.name
18558
18556
  }
18559
18557
  ), P.next({
@@ -18570,7 +18568,7 @@ async function Bw({
18570
18568
  }), {
18571
18569
  ...E,
18572
18570
  type: "collecting-tool-confirmations",
18573
- currentToolID: z,
18571
+ currentToolID: B,
18574
18572
  tokenUsage: F
18575
18573
  };
18576
18574
  }
@@ -18586,9 +18584,9 @@ async function Bw({
18586
18584
  const F = l.value.last?.messages.at(-1);
18587
18585
  let j = E.tokenUsage;
18588
18586
  if ($.status.state === "active") {
18589
- const B = l.value.last;
18590
- if (B) {
18591
- const G = Si(B);
18587
+ const V = l.value.last;
18588
+ if (V) {
18589
+ const G = Si(V);
18592
18590
  G && (j = {
18593
18591
  used: G.totalInputTokens,
18594
18592
  maxAvailable: G.maxInputTokens
@@ -18639,10 +18637,10 @@ async function Bw({
18639
18637
  retryable: !1
18640
18638
  }), D.unsubscribe(), { ...E, type: "closing" };
18641
18639
  {
18642
- const B = $.status.ephemeralError.message;
18643
- return J.error("Ephemeral error", { error: B }), E.type === "awaiting-agent" && E.displayedError !== B ? (P.next({
18640
+ const V = $.status.ephemeralError.message;
18641
+ return J.error("Ephemeral error", { error: V }), E.type === "awaiting-agent" && E.displayedError !== V ? (P.next({
18644
18642
  type: "error",
18645
- error: { type: "other", error: B },
18643
+ error: { type: "other", error: V },
18646
18644
  retryable: !1
18647
18645
  }), {
18648
18646
  ...E,
@@ -18654,9 +18652,9 @@ async function Bw({
18654
18652
  switch ($.status.inferenceState) {
18655
18653
  case "running":
18656
18654
  {
18657
- const B = l.value.last;
18658
- if (B) {
18659
- const G = $n(B);
18655
+ const V = l.value.last;
18656
+ if (V) {
18657
+ const G = $n(V);
18660
18658
  G && P.next({
18661
18659
  type: "state",
18662
18660
  state: G
@@ -18673,7 +18671,7 @@ async function Bw({
18673
18671
  return { ...k(), tokenUsage: j };
18674
18672
  case "idle":
18675
18673
  if (F?.content.some(
18676
- (B) => B.type === "tool_result" && B.run.status === "blocked-on-user"
18674
+ (V) => V.type === "tool_result" && V.run.status === "blocked-on-user"
18677
18675
  ))
18678
18676
  return {
18679
18677
  ...E,
@@ -18681,24 +18679,24 @@ async function Bw({
18681
18679
  tokenUsage: j
18682
18680
  };
18683
18681
  if (l.value.last?.messages.some(
18684
- (B) => B.role === "user" && B.content.some(
18682
+ (V) => V.role === "user" && V.content.some(
18685
18683
  (G) => G.type === "tool_result" && G.run.status === "in-progress"
18686
18684
  )
18687
18685
  ) ?? !1) {
18688
- const B = l.value.last?.messages.flatMap(
18686
+ const V = l.value.last?.messages.flatMap(
18689
18687
  (X) => X.content
18690
18688
  ).filter(
18691
18689
  (X) => X.type === "tool_result" && "run" in X && "status" in X.run && X.run.status === "in-progress"
18692
- ), G = B?.length ?? 0;
18690
+ ), G = V?.length ?? 0;
18693
18691
  if (G > 0) {
18694
- const X = G === 1 && B?.[0] && l.value.last ? Yr(
18692
+ const X = G === 1 && V?.[0] && l.value.last ? Yr(
18695
18693
  l.value.last,
18696
- B[0].toolUseID
18697
- ) : void 0, W = G > 1 && B && l.value.last ? B.slice(
18694
+ V[0].toolUseID
18695
+ ) : void 0, W = G > 1 && V && l.value.last ? V.slice(
18698
18696
  1,
18699
18697
  Math.min(
18700
18698
  4,
18701
- B.length
18699
+ V.length
18702
18700
  )
18703
18701
  ).map((O) => Yr(
18704
18702
  l.value.last,
@@ -18748,17 +18746,17 @@ async function Bw({
18748
18746
  J.info("Sending batch tool confirmations to worker", {
18749
18747
  toolCount: $.responses.size,
18750
18748
  responses: Array.from($.responses.entries()).map(
18751
- ([j, B]) => ({ id: j, accepted: B })
18749
+ ([j, V]) => ({ id: j, accepted: V })
18752
18750
  )
18753
- }), $.responses.forEach((j, B) => {
18751
+ }), $.responses.forEach((j, V) => {
18754
18752
  J.info("Sending individual tool confirmation to worker", {
18755
- toolUseID: B,
18753
+ toolUseID: V,
18756
18754
  accepted: j
18757
18755
  }), b.handle({
18758
18756
  type: "user:tool-input",
18759
- toolUse: B,
18757
+ toolUse: V,
18760
18758
  value: { accepted: j }
18761
- }), E.toolConfirmationStatus.set(B, "sent");
18759
+ }), E.toolConfirmationStatus.set(V, "sent");
18762
18760
  }), J.info(
18763
18761
  "Transitioning to awaiting-agent after sending batch confirmations"
18764
18762
  );
@@ -18779,18 +18777,18 @@ async function Bw({
18779
18777
  const F = l.value.last;
18780
18778
  if (F) {
18781
18779
  const j = Si(F);
18782
- j && u.getTokenCountForThread(F).then((B) => {
18783
- if (B !== null) {
18780
+ j && u.getTokenCountForThread(F).then((V) => {
18781
+ if (V !== null) {
18784
18782
  const G = {
18785
- used: B,
18783
+ used: V,
18786
18784
  maxAvailable: j.maxInputTokens
18787
18785
  };
18788
18786
  P.next({ type: "token-usage", tokenUsage: G });
18789
18787
  }
18790
- }).catch((B) => {
18788
+ }).catch((V) => {
18791
18789
  J.error(
18792
18790
  "Failed to calculate post-compaction token usage",
18793
- B
18791
+ V
18794
18792
  );
18795
18793
  });
18796
18794
  }
@@ -18838,11 +18836,10 @@ async function Bw({
18838
18836
  color: $.color
18839
18837
  }), E;
18840
18838
  if ($.type === "subthread-message")
18841
- return ($.messages.length > 0 || $.toolResults.length > 0) && P.next({
18839
+ return $.blocks.length > 0 && P.next({
18842
18840
  type: "subthread-messages",
18843
18841
  subThreadID: $.subThreadID,
18844
- messages: $.messages,
18845
- toolResults: $.toolResults,
18842
+ blocks: $.blocks,
18846
18843
  color: $.color
18847
18844
  }), E;
18848
18845
  if ($.type === "subagent-finished")
@@ -18876,20 +18873,20 @@ async function Bw({
18876
18873
  type: "user:message",
18877
18874
  message: { content: [{ type: "text", text: F }] }
18878
18875
  }).then(() => {
18879
- t && t.sync().catch((B) => {
18880
- J.error("Thread sync after submit error", B, {
18876
+ t && t.sync().catch((V) => {
18877
+ J.error("Thread sync after submit error", V, {
18881
18878
  threadID: d
18882
18879
  });
18883
18880
  });
18884
- }).catch((B) => {
18885
- J.error("Handle user message failed", B);
18881
+ }).catch((V) => {
18882
+ J.error("Handle user message failed", V);
18886
18883
  });
18887
18884
  const j = l.value.last;
18888
18885
  if (j) {
18889
- const B = $n(j);
18890
- B && P.next({
18886
+ const V = $n(j);
18887
+ V && P.next({
18891
18888
  type: "state",
18892
- state: B
18889
+ state: V
18893
18890
  });
18894
18891
  }
18895
18892
  return {
@@ -18947,9 +18944,9 @@ async function Bw({
18947
18944
  if (!l.value.isSet)
18948
18945
  return J.error("Thread not available for finding next tool"), E;
18949
18946
  const O = (l.value.last.messages.at(-1)?.content.filter(
18950
- (z) => z.type === "tool_result" && z.run.status === "blocked-on-user"
18947
+ (B) => B.type === "tool_result" && B.run.status === "blocked-on-user"
18951
18948
  ) ?? []).find(
18952
- (z) => z.toolUseID === X
18949
+ (B) => B.toolUseID === X
18953
18950
  ), M = O ? Yr(l.value.last, O.toolUseID) : null;
18954
18951
  if (O && M)
18955
18952
  return J.info(
@@ -18989,7 +18986,7 @@ async function Bw({
18989
18986
  }))
18990
18987
  }
18991
18988
  );
18992
- const B = new Map(
18989
+ const V = new Map(
18993
18990
  j.map(([X, W]) => [
18994
18991
  X,
18995
18992
  W === "confirmed"
@@ -18997,7 +18994,7 @@ async function Bw({
18997
18994
  );
18998
18995
  A.next({
18999
18996
  type: "batch-tool-confirmations-complete",
19000
- responses: B
18997
+ responses: V
19001
18998
  });
19002
18999
  const G = j.length;
19003
19000
  return P.next({
@@ -19064,7 +19061,7 @@ async function Bw({
19064
19061
  }
19065
19062
  async function zw(t) {
19066
19063
  try {
19067
- const e = await Fw("0.0.1749556889-gbc568f");
19064
+ const e = await Fw("0.0.1749571294-gef5aa3");
19068
19065
  e.hasUpdate && e.latestVersion ? (t.next({ type: "update-start-updating" }), setTimeout(async () => {
19069
19066
  try {
19070
19067
  await Uw(e.latestVersion), t.next({
@@ -19185,48 +19182,55 @@ function Vw(t) {
19185
19182
  default:
19186
19183
  return { status: d.status };
19187
19184
  }
19188
- }, y = s.messages.map(([d, p]) => {
19189
- if (p.role === "user") {
19190
- const { role: m, content: v, meta: l } = p, h = {
19191
- role: m,
19192
- content: c(v),
19193
- meta: l
19194
- };
19195
- return [d, h];
19196
- } else if (p.role === "assistant") {
19197
- const { role: m, content: v, state: l } = p, h = {
19198
- role: m,
19199
- content: c(v),
19200
- state: l
19201
- };
19202
- return [d, h];
19203
- } else if (p.role === "info") {
19204
- const { role: m, content: v } = p, l = {
19205
- role: m,
19206
- content: c(v)
19207
- };
19208
- return [d, l];
19185
+ }, y = [], g = [];
19186
+ for (const d of s.blocks)
19187
+ if (d.type === "message") {
19188
+ const [p, m] = d.data;
19189
+ if (m.role === "user") {
19190
+ const { role: v, content: l, meta: h } = m, b = {
19191
+ role: v,
19192
+ content: c(l),
19193
+ meta: h
19194
+ };
19195
+ y.push([p, b]);
19196
+ } else if (m.role === "assistant") {
19197
+ const { role: v, content: l, state: h } = m, b = {
19198
+ role: v,
19199
+ content: c(l),
19200
+ state: h
19201
+ };
19202
+ y.push([p, b]);
19203
+ } else if (m.role === "info") {
19204
+ const { role: v, content: l } = m, h = {
19205
+ role: v,
19206
+ content: c(l)
19207
+ };
19208
+ y.push([p, h]);
19209
+ } else
19210
+ y.push([p, m]);
19211
+ } else if (d.type === "toolResult") {
19212
+ const [p, m] = d.data;
19213
+ if (p.input && m.run !== void 0) {
19214
+ const v = {
19215
+ type: p.type,
19216
+ id: p.id,
19217
+ name: p.name,
19218
+ input: {}
19219
+ }, l = {
19220
+ type: m.type,
19221
+ toolUseID: m.toolUseID,
19222
+ run: f(m.run)
19223
+ };
19224
+ g.push([
19225
+ v,
19226
+ l
19227
+ ]);
19228
+ } else
19229
+ J.warn("Skipping tool result", {
19230
+ useBlock: p,
19231
+ resultBlock: m
19232
+ });
19209
19233
  }
19210
- return [d, p];
19211
- }), g = s.toolResults.flatMap(([d, p]) => {
19212
- if (d.input && p.run !== void 0) {
19213
- const m = {
19214
- type: d.type,
19215
- id: d.id,
19216
- name: d.name,
19217
- input: {}
19218
- }, v = {
19219
- type: p.type,
19220
- toolUseID: p.toolUseID,
19221
- run: f(p.run)
19222
- };
19223
- return [[m, v]];
19224
- } else
19225
- return J.warn("Skipping tool result", {
19226
- useBlock: d,
19227
- resultBlock: p
19228
- }), [];
19229
- });
19230
19234
  return r({
19231
19235
  type: "messages",
19232
19236
  messages: y,
@@ -19297,13 +19301,19 @@ function Vw(t) {
19297
19301
  taskDescription: s.taskDescription,
19298
19302
  result: s.result
19299
19303
  }), u;
19300
- case "subthread-messages":
19304
+ case "subthread-messages": {
19305
+ const c = s.blocks.filter(
19306
+ (y) => y.type === "message"
19307
+ ).length, f = s.blocks.filter(
19308
+ (y) => y.type === "toolResult"
19309
+ ).length;
19301
19310
  return r({
19302
19311
  type: "subthread-activity",
19303
19312
  subThreadID: s.subThreadID,
19304
- messageCount: s.messages.length,
19305
- toolResultCount: s.toolResults.length
19313
+ messageCount: c,
19314
+ toolResultCount: f
19306
19315
  }), u;
19316
+ }
19307
19317
  case "state":
19308
19318
  switch (s.state.type) {
19309
19319
  case "shutting-down":
@@ -20354,8 +20364,7 @@ Interrupt the agent with `, { foreground: "gray" })}${i.print("Ctrl+C", { foregr
20354
20364
  );
20355
20365
  return fl(
20356
20366
  {
20357
- messages: h.messages,
20358
- toolResults: h.toolResults
20367
+ blocks: h.blocks
20359
20368
  },
20360
20369
  (_) => e.write(_ + `
20361
20370
  `),
@@ -20391,8 +20400,7 @@ Interrupt the agent with `, { foreground: "gray" })}${i.print("Ctrl+C", { foregr
20391
20400
  );
20392
20401
  return fl(
20393
20402
  {
20394
- messages: h.messages,
20395
- toolResults: h.toolResults
20403
+ blocks: h.blocks
20396
20404
  },
20397
20405
  (_) => e.write(_ + `
20398
20406
  `),
@@ -20915,7 +20923,7 @@ async function At(t, e) {
20915
20923
  ei({
20916
20924
  logLevel: e.logLevel || process.env.AMP_LOG_LEVEL,
20917
20925
  logFile: e.logFile || process.env.AMP_LOG_FILE
20918
- }), rm("0.0.1749556889-gbc568f");
20926
+ }), rm("0.0.1749571294-gef5aa3");
20919
20927
  const n = e.settingsFile ?? process.env.AMP_SETTINGS_FILE;
20920
20928
  J.info("Using settings file", { settingsFile: n });
20921
20929
  const i = Vn(), r = fd({ settingsFile: n }), a = process.env.AMP_API_KEY;
@@ -21023,7 +21031,7 @@ function m_(t) {
21023
21031
  const e = new Pu().name("amp").description("AI-powered coding assistant").option("--thread-id [THREAD_ID]", "ID of the thread to continue running", void 0);
21024
21032
  e.option("-V, --version", "output the version number", () => {
21025
21033
  if (t.isTTY) {
21026
- const a = "0.0.1749556889-gbc568f".match(/^(\d+\.\d+)\.(\d+)-(.+)$/);
21034
+ const a = "0.0.1749571294-gef5aa3".match(/^(\d+\.\d+)\.(\d+)-(.+)$/);
21027
21035
  if (a) {
21028
21036
  const [, , o] = a;
21029
21037
  try {
@@ -21034,21 +21042,21 @@ function m_(t) {
21034
21042
  day: "numeric"
21035
21043
  });
21036
21044
  Ie.write(
21037
- `0.0.1749556889-gbc568f ${t.printer.print(`(released ${s})`, { foreground: "gray" })}
21045
+ `0.0.1749571294-gef5aa3 ${t.printer.print(`(released ${s})`, { foreground: "gray" })}
21038
21046
  `
21039
21047
  );
21040
21048
  } else
21041
- Ie.write(`0.0.1749556889-gbc568f
21049
+ Ie.write(`0.0.1749571294-gef5aa3
21042
21050
  `);
21043
21051
  } catch {
21044
- Ie.write(`0.0.1749556889-gbc568f
21052
+ Ie.write(`0.0.1749571294-gef5aa3
21045
21053
  `);
21046
21054
  }
21047
21055
  } else
21048
- Ie.write(`0.0.1749556889-gbc568f
21056
+ Ie.write(`0.0.1749571294-gef5aa3
21049
21057
  `);
21050
21058
  } else
21051
- Ie.write(`0.0.1749556889-gbc568f
21059
+ Ie.write(`0.0.1749571294-gef5aa3
21052
21060
  `);
21053
21061
  process.exit(0);
21054
21062
  }), e.addHelpText(