@redocly/replay 0.24.0-next.1 → 0.24.0-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { t as No, b as nu, p as ju, J as Uu, c as Ro, f as Ji, B as Ho, g as j0, h as Ta, k as La, m as Go, l as Vo, n as _o, o as Jo, q as $o, u as Io, A as $i, v as _e } from "./replay-index-DGOIXl2g.js";
1
+ import { t as No, b as iu, p as ju, J as Uu, c as Ro, f as Ji, B as Ho, g as j0, h as Ta, k as La, m as Go, l as Vo, n as _o, o as Jo, q as $o, u as Io, A as $i, v as _e } from "./replay-index-B2hxHO71.js";
2
2
  const {
3
3
  env: x0 = {},
4
4
  argv: Ii = [],
@@ -100,7 +100,7 @@ const {
100
100
  function Gu({ value: u, ctx: a, logger: e }) {
101
101
  if (!u)
102
102
  return u;
103
- if (nu(u)) {
103
+ if (iu(u)) {
104
104
  const i = {};
105
105
  for (const r in u)
106
106
  i[r] = Gu({ value: u[r], ctx: a, logger: e });
@@ -204,10 +204,10 @@ function Va(u, a) {
204
204
  return u.split(/(\{[a-zA-Z0-9_.-]+\}+)/g).map((i) => e[i] ? e[i] : i).join("");
205
205
  }
206
206
  function x4(u) {
207
- return nu(u) && "name" in u && "value" in u && !("in" in u);
207
+ return iu(u) && "name" in u && "value" in u && !("in" in u);
208
208
  }
209
209
  function Je(u) {
210
- return nu(u) && "in" in u && typeof u.in == "string" && ["header", "query", "path", "cookie"].includes(u.in);
210
+ return iu(u) && "in" in u && typeof u.in == "string" && ["header", "query", "path", "cookie"].includes(u.in);
211
211
  }
212
212
  const c4 = /^image\/(png|jpeg|gif|bmp|webp|svg\+xml)|application\/pdf$/;
213
213
  function Zi(u) {
@@ -221,10 +221,10 @@ const _a = async (u, a, e, i, r) => {
221
221
  const l = o ? `${o}[${n}]` : n;
222
222
  typeof s == "string" && s.startsWith("$file(") && s.endsWith(")") ? u.push(_a(a, l, s, i, r)) : Array.isArray(s) ? s.forEach((E) => {
223
223
  typeof E == "string" && E.startsWith("$file(") && E.endsWith(")") ? u.push(_a(a, l, E, i, r)) : a.append(l, E.toString());
224
- }) : nu(s) ? Ui(u, a, s, i, r, l) : (typeof s == "string" || typeof s == "number" || typeof s == "boolean") && a.append(l, s.toString());
224
+ }) : iu(s) ? Ui(u, a, s, i, r, l) : (typeof s == "string" || typeof s == "number" || typeof s == "boolean") && a.append(l, s.toString());
225
225
  });
226
226
  }, d4 = async (u, a, e, i) => {
227
- if (nu(u)) {
227
+ if (iu(u)) {
228
228
  const r = [];
229
229
  Ui(r, a, u, e, i), await Promise.all(r);
230
230
  }
@@ -289,7 +289,7 @@ function h4(u, a) {
289
289
  if (!C4.some((o) => e.includes(`$components.${o}`)))
290
290
  throw new Error("Invalid reference: available components are $components.parameters, $components.failureActions, or $components.successActions");
291
291
  const r = Gu({ value: e, ctx: a, logger: a.options.logger });
292
- return nu(r) && "value" in r && i ? {
292
+ return iu(r) && "value" in r && i ? {
293
293
  ...r,
294
294
  value: i
295
295
  } : r;
@@ -336,7 +336,7 @@ function B0(u, a, e) {
336
336
  if (u)
337
337
  try {
338
338
  const i = Uu.get(u, `/${a}`);
339
- return typeof i == "string" || Array.isArray(i) || nu(i) ? JSON.stringify(i) : i !== void 0 ? i : e;
339
+ return typeof i == "string" || Array.isArray(i) || iu(i) ? JSON.stringify(i) : i !== void 0 ? i : e;
340
340
  } catch {
341
341
  return e;
342
342
  }
@@ -363,10 +363,10 @@ function Tu({ payload: u, context: a, contentType: e, logger: i }) {
363
363
  }
364
364
  return Ga(u, a, i);
365
365
  }
366
- return typeof u == "string" ? S4(u) ? Yu(u, a, i) : z4(u, a, i) : nu(u) ? Object.entries(u).reduce((r, [o, n]) => (r[o] = Tu({ payload: n, context: a, logger: i }), r), {}) : Array.isArray(u) ? u.map((r) => Tu({ payload: r, context: a, logger: i })) : u;
366
+ return typeof u == "string" ? S4(u) ? Yu(u, a, i) : z4(u, a, i) : iu(u) ? Object.entries(u).reduce((r, [o, n]) => (r[o] = Tu({ payload: n, context: a, logger: i }), r), {}) : Array.isArray(u) ? u.map((r) => Tu({ payload: r, context: a, logger: i })) : u;
367
367
  }
368
368
  function Yu(u, a, e) {
369
- return typeof u == "string" ? v4(u, a, e) : nu(u) ? Object.entries(u).reduce((i, [r, o]) => (i[r] = o && Yu(o, a, e), i), {}) : Array.isArray(u) ? u.map((i) => Yu(i, a, e)) : u;
369
+ return typeof u == "string" ? v4(u, a, e) : iu(u) ? Object.entries(u).reduce((i, [r, o]) => (i[r] = o && Yu(o, a, e), i), {}) : Array.isArray(u) ? u.map((i) => Yu(i, a, e)) : u;
370
370
  }
371
371
  function v4(u, a, e) {
372
372
  if (/^\$faker\.[a-zA-Z0-9._-]+(\([^\\)]*\))?$/.test(u))
@@ -408,7 +408,7 @@ function A4(u) {
408
408
  return a;
409
409
  }
410
410
  function Yi(u) {
411
- return Array.isArray(u) ? u : nu(u) ? y4(u) : u;
411
+ return Array.isArray(u) ? u : iu(u) ? y4(u) : u;
412
412
  }
413
413
  function y4(u) {
414
414
  return Object.keys(u).reduce((a, e) => {
@@ -1047,16 +1047,17 @@ function or(u, a) {
1047
1047
  function mt(u, a) {
1048
1048
  if (u?.example)
1049
1049
  return u.example;
1050
- if (u?.examples)
1050
+ if (iu(u?.examples))
1051
1051
  return tr(u.examples);
1052
1052
  if (u?.schema)
1053
1053
  return or(u.schema, a);
1054
1054
  }
1055
1055
  function tr(u) {
1056
- if (typeof u != "object")
1056
+ if (iu(u)) {
1057
+ const a = Object.keys(u)[0];
1058
+ return a ? u[a]?.value : void 0;
1059
+ } else
1057
1060
  return;
1058
- const a = Object.keys(u)[0];
1059
- return a ? u[a]?.value : void 0;
1060
1061
  }
1061
1062
  function Ft(u, a) {
1062
1063
  const e = u?.requestBody?.content || {}, [i, r] = Object.entries(e)[0] || [], o = r?.example || tr(r?.examples) || or(r?.schema, a), n = kt(u);
@@ -1074,7 +1075,7 @@ function Ft(u, a) {
1074
1075
  };
1075
1076
  }
1076
1077
  function kt(u) {
1077
- return u?.responses ? Array.from(new Set(Object.values(u.responses).flatMap((a) => nu(a) && "content" in a ? Object.keys(a.content || {}) : []))).join(", ") : void 0;
1078
+ return u?.responses ? Array.from(new Set(Object.values(u.responses).flatMap((a) => iu(a) && "content" in a ? Object.keys(a.content || {}) : []))).join(", ") : void 0;
1078
1079
  }
1079
1080
  function Oa(u, a) {
1080
1081
  return (u || []).filter((e) => e?.required === !0).map((e) => {
@@ -1165,7 +1166,7 @@ function Wa(u) {
1165
1166
  if (i.properties)
1166
1167
  for (const r in i.properties)
1167
1168
  i.properties[r].writeOnly ? (delete i.properties[r], i.required && (i.required = i.required.filter((o) => o !== r))) : e(i.properties[r]);
1168
- nu(i.additionalProperties) && e(i.additionalProperties);
1169
+ iu(i.additionalProperties) && e(i.additionalProperties);
1169
1170
  } else i.type === "array" && i.items && e(i.items);
1170
1171
  return i.oneOf && (i.oneOf = i.oneOf.map((r) => e(r))), i.allOf && (i.allOf = i.allOf.map((r) => e(r))), i.anyOf && (i.anyOf = i.anyOf.map((r) => e(r))), i;
1171
1172
  }
@@ -1346,7 +1347,7 @@ function Dr({ testNameToDisplay: u, checks: a, verboseLogs: e, verboseResponseLo
1346
1347
  ` + (Ya({ logs: e, logger: r }) || "")), r.printNewLine()), i && (r.output(`${bu}
1347
1348
  ` + (Ya({ logs: i, type: "response", logger: r }) || "")), r.printNewLine()), r.printNewLine();
1348
1349
  for (const n of a)
1349
- r.output(`${ru(Lt(n, n.severity), 4)}
1350
+ r.output(`${nu(Lt(n, n.severity), 4)}
1350
1351
  `);
1351
1352
  }
1352
1353
  function Lt(u, a) {
@@ -1354,7 +1355,7 @@ function Lt(u, a) {
1354
1355
  return `${o} ${du(e.toLowerCase())}${r ? ` - ${n(r.length > Ua ? r.slice(0, Ua) + "..." : r)}` : ""}`;
1355
1356
  }
1356
1357
  function Ya({ logs: u, type: a = "request", logger: e }) {
1357
- const { path: i, host: r, headerParams: o, body: n, statusCode: s } = u, l = !j0 && process.env.NODE_ENV === "test" ? "<test>" : u.responseTime, E = !j0 && process.env.NODE_ENV === "test" ? "<test>" : u.responseSize, D = ru(`Request URL: ${Du(Tt(r, i))}`, 4), d = ru("Request Headers:", 4), F = ru("Response Headers:", 4), k = ru("Request Body:", 4), b = ru("Response Body:", 4), y = Nt(o || {});
1358
+ const { path: i, host: r, headerParams: o, body: n, statusCode: s } = u, l = !j0 && process.env.NODE_ENV === "test" ? "<test>" : u.responseTime, E = !j0 && process.env.NODE_ENV === "test" ? "<test>" : u.responseSize, D = nu(`Request URL: ${Du(Tt(r, i))}`, 4), d = nu("Request Headers:", 4), F = nu("Response Headers:", 4), k = nu("Request Body:", 4), b = nu("Response Body:", 4), y = Nt(o || {});
1358
1359
  let M;
1359
1360
  if (n instanceof FormData) {
1360
1361
  const h = {};
@@ -1369,7 +1370,7 @@ function Ya({ logs: u, type: a = "request", logger: e }) {
1369
1370
  M = JSON.stringify(h, null, 2);
1370
1371
  } else n && Kt(n) ? M = JSON.stringify(JSON.parse(n), null, 2) : n instanceof File ? M = `[File: ${n.name}]` : n instanceof ArrayBuffer ? M = `[Binary: ${n.byteLength} bytes]` : M = n;
1371
1372
  const L = M ? M.split(`
1372
- `).map((h) => Du(ru(`${h}`, 6))).join(`
1373
+ `).map((h) => Du(nu(`${h}`, 6))).join(`
1373
1374
  `) : void 0, J = [
1374
1375
  e.printNewLine(),
1375
1376
  du(D),
@@ -1379,11 +1380,11 @@ function Ya({ logs: u, type: a = "request", logger: e }) {
1379
1380
  n && L
1380
1381
  ].filter(Boolean).join(`${bu}
1381
1382
  `), p = [
1382
- du(ru("Response status code: " + Du(s), 4)),
1383
- du(ru("Response time: " + Du(l), 4) + " ms"),
1384
- !j0 && process.env.NODE_ENV === "test" ? du(ru("Response Headers: <response headers test>", 4)) : y && du(F) + `
1383
+ du(nu("Response status code: " + Du(s), 4)),
1384
+ du(nu("Response time: " + Du(l), 4) + " ms"),
1385
+ !j0 && process.env.NODE_ENV === "test" ? du(nu("Response Headers: <response headers test>", 4)) : y && du(F) + `
1385
1386
  ` + du(y),
1386
- E && du(ru("Response Size: " + Du(E), 4) + " bytes"),
1387
+ E && du(nu("Response Size: " + Du(E), 4) + " bytes"),
1387
1388
  n && du(b),
1388
1389
  n && L
1389
1390
  ].filter(Boolean).join(`${bu}
@@ -1394,7 +1395,7 @@ function Nt(u) {
1394
1395
  let a = "";
1395
1396
  const e = Object.entries(u);
1396
1397
  return e.forEach(([i, r], o) => {
1397
- a = a + ru(`${Xu(i)}: ${Du(r)}`, 6), o < e.length - 1 && (a += `${bu}
1398
+ a = a + nu(`${Xu(i)}: ${Du(r)}`, 6), o < e.length - 1 && (a += `${bu}
1398
1399
  `);
1399
1400
  }), a;
1400
1401
  }
@@ -1404,7 +1405,7 @@ function Rt(u) {
1404
1405
  `).map((i) => i.trimStart()).join(`
1405
1406
  `) : "";
1406
1407
  }
1407
- function ru(u, a) {
1408
+ function nu(u, a) {
1408
1409
  return u.split(`
1409
1410
  `).map((e) => " ".repeat(a) + e).join(`
1410
1411
  `);
@@ -1443,12 +1444,12 @@ function Ot({ startedAt: u, workflows: a, options: e }) {
1443
1444
  s = n && n.length ? s.filter(({ workflowId: D }) => !n.includes(D)) : s;
1444
1445
  const l = Ie(s), E = wt(u);
1445
1446
  i.printNewLine(), i.output(Ru`
1446
- ${Xu(ru(`Summary for ${Du(r)}`, 2))}
1447
- ${ru("", 2)}
1448
- ${ru(Wt("Workflows:", l.workflows), 2)}
1449
- ${ru(Xa("Steps:", l.steps), 2)}
1450
- ${ru(Xa("Checks:", l.checks), 2)}
1451
- ${ru(Wi(`Time: ${E}`), 2)}
1447
+ ${Xu(nu(`Summary for ${Du(r)}`, 2))}
1448
+ ${nu("", 2)}
1449
+ ${nu(Wt("Workflows:", l.workflows), 2)}
1450
+ ${nu(Xa("Steps:", l.steps), 2)}
1451
+ ${nu(Xa("Checks:", l.checks), 2)}
1452
+ ${nu(Wi(`Time: ${E}`), 2)}
1452
1453
  `), i.printNewLine(), i.printNewLine();
1453
1454
  }
1454
1455
  function Wt(u, a) {
@@ -1466,7 +1467,7 @@ function Oe(u) {
1466
1467
  function ui(u) {
1467
1468
  try {
1468
1469
  const a = JSON.parse(u);
1469
- if (nu(a))
1470
+ if (iu(a))
1470
1471
  return a;
1471
1472
  } catch {
1472
1473
  }
@@ -1511,26 +1512,26 @@ function cr(u) {
1511
1512
  }
1512
1513
  function Zt(u, a) {
1513
1514
  a.output(`${bu}
1514
- ${ru(au("Failed tests info:"), 2)}
1515
+ ${nu(au("Failed tests info:"), 2)}
1515
1516
  `);
1516
1517
  for (const e of u) {
1517
1518
  const i = cr(e.executedSteps);
1518
1519
  if (i.some((o) => o.checks.some((n) => !n.passed) && (!o.retriesLeft || o.retriesLeft === 0))) {
1519
1520
  a.output(`${bu}
1520
- ${ru(du("Workflow name:"), 2)} ${r4(e.workflowId)}${bu}
1521
+ ${nu(du("Workflow name:"), 2)} ${r4(e.workflowId)}${bu}
1521
1522
  `);
1522
1523
  for (const o of i) {
1523
1524
  const n = o.checks.filter((s) => !s.passed);
1524
1525
  if (n.length && !(o.retriesLeft && o.retriesLeft !== 0)) {
1525
- a.printNewLine(), a.output(ru(`${Du("stepId - ")}`, 4) + (o?.stepId ? au(o.stepId) : au(o?.operationId || o?.operationPath || "")));
1526
+ a.printNewLine(), a.output(nu(`${Du("stepId - ")}`, 4) + (o?.stepId ? au(o.stepId) : au(o?.operationId || o?.operationPath || "")));
1526
1527
  for (const s in n) {
1527
1528
  const { name: l, message: E, severity: D } = n[s], F = [
1528
1529
  su.UNEXPECTED_ERROR,
1529
1530
  su.GLOBAL_TIMEOUT_ERROR,
1530
1531
  su.MAX_STEPS_REACHED_ERROR
1531
- ].includes(l) ? ru(`Reason: ${E}`, 4) : ru(`${Rt(E)}${bu}
1532
+ ].includes(l) ? nu(`Reason: ${E}`, 4) : nu(`${Rt(E)}${bu}
1532
1533
  `, 6);
1533
- a.printNewLine(), D === "error" ? a.output(ru(`${au("✗")} ${du(l.toLowerCase())}`, 4)) : D === "off" ? a.output(ru(`${du("○")} ${du(l.toLowerCase())} ${du("(skipped)")}`, 4)) : a.output(ru(`${Xu("⚠")} ${du(l.toLowerCase())}`, 4)), a.printNewLine(), a.output(`${F}`);
1534
+ a.printNewLine(), D === "error" ? a.output(nu(`${au("✗")} ${du(l.toLowerCase())}`, 4)) : D === "off" ? a.output(nu(`${du("○")} ${du(l.toLowerCase())} ${du("(skipped)")}`, 4)) : a.output(nu(`${Xu("⚠")} ${du(l.toLowerCase())}`, 4)), a.printNewLine(), a.output(`${F}`);
1534
1535
  }
1535
1536
  }
1536
1537
  }
@@ -1546,7 +1547,7 @@ function be({ headerParams: u, path: a, method: e, host: i, body: r, statusCode:
1546
1547
  return u && Object.keys(u).length > 0 && (l.headerParams = u), r && (r instanceof FormData || r instanceof File || r instanceof ArrayBuffer || Object.keys(r).length > 0) && (l.body = r), o && (l.statusCode = o), n && (l.responseTime = n), s !== void 0 && (l.responseSize = s), l;
1547
1548
  }
1548
1549
  function Re(u, a = /* @__PURE__ */ new WeakMap()) {
1549
- if (!Array.isArray(u) && !nu(u))
1550
+ if (!Array.isArray(u) && !iu(u))
1550
1551
  return u;
1551
1552
  if (a.has(u))
1552
1553
  return a.get(u);
@@ -1587,13 +1588,13 @@ function Yt(u, a) {
1587
1588
  return s;
1588
1589
  }, o = (n) => {
1589
1590
  for (const s in n)
1590
- typeof n[s] == "string" ? n[s] = r(n[s]) : (nu(n[s]) || Array.isArray(n[s])) && !(n[s] instanceof File) && !(n[s] instanceof ArrayBuffer) && !(n[s] instanceof Blob) && !(n[s] instanceof FormData) && !(n[s] instanceof Date) && !(n[s] instanceof RegExp) && !(n[s] instanceof Map) && !(n[s] instanceof Set) && !(n[s] instanceof URL) && !(n[s] instanceof Error) && o(n[s]);
1591
+ typeof n[s] == "string" ? n[s] = r(n[s]) : (iu(n[s]) || Array.isArray(n[s])) && !(n[s] instanceof File) && !(n[s] instanceof ArrayBuffer) && !(n[s] instanceof Blob) && !(n[s] instanceof FormData) && !(n[s] instanceof Date) && !(n[s] instanceof RegExp) && !(n[s] instanceof Map) && !(n[s] instanceof Set) && !(n[s] instanceof URL) && !(n[s] instanceof Error) && o(n[s]);
1591
1592
  };
1592
1593
  return o(i), i;
1593
1594
  }
1594
1595
  function ai(u, a = Ut) {
1595
1596
  const e = [];
1596
- if (!nu(u) && !Array.isArray(u))
1597
+ if (!iu(u) && !Array.isArray(u))
1597
1598
  return e;
1598
1599
  const i = (r) => {
1599
1600
  if (Array.isArray(r)) {
@@ -1601,7 +1602,7 @@ function ai(u, a = Ut) {
1601
1602
  i(o);
1602
1603
  return;
1603
1604
  }
1604
- if (nu(r))
1605
+ if (iu(r))
1605
1606
  for (const o in r) {
1606
1607
  const n = r[o];
1607
1608
  if (a.some((s) => s.toLowerCase() === o.toLowerCase()) && typeof n == "string" && n.trim() && e.push(n), typeof n == "string" && n.trim())
@@ -1609,7 +1610,7 @@ function ai(u, a = Ut) {
1609
1610
  const l = n.match(new RegExp(`${s}=([^;\\s]+)`, "i")), [, E] = l || [];
1610
1611
  E && e.push(E);
1611
1612
  }
1612
- (nu(n) || Array.isArray(n)) && i(n);
1613
+ (iu(n) || Array.isArray(n)) && i(n);
1613
1614
  }
1614
1615
  };
1615
1616
  return i(u), e;
@@ -1695,7 +1696,7 @@ function es(u) {
1695
1696
  ]));
1696
1697
  }
1697
1698
  function as(u) {
1698
- return u == null ? !0 : u.constructor.name === "FormData" || u instanceof Blob && u.size > 0 ? !1 : nu(u) ? Object.keys(u).length === 0 : typeof u == "string" || Array.isArray(u) ? u.length === 0 : !1;
1699
+ return u == null ? !0 : u.constructor.name === "FormData" || u instanceof Blob && u.size > 0 ? !1 : iu(u) ? Object.keys(u).length === 0 : typeof u == "string" || Array.isArray(u) ? u.length === 0 : !1;
1699
1700
  }
1700
1701
  const is = ":/?#[]@!$&'()*+,;=", rs = /* @__PURE__ */ new Set(["!", "'", "(", ")", "*"]);
1701
1702
  function ns(u) {
@@ -1780,7 +1781,7 @@ class Es {
1780
1781
  break;
1781
1782
  }
1782
1783
  const M = ts(k);
1783
- (nu(D) || Array.isArray(D)) && !F["content-type"] && (F["content-type"] = "application/json"), Object.keys(y).length && (F.cookie = Object.entries(y).map(([w, W]) => `${w}=${W}`).join("; "));
1784
+ (iu(D) || Array.isArray(D)) && !F["content-type"] && (F["content-type"] = "application/json"), Object.keys(y).length && (F.cookie = Object.entries(y).map(([w, W]) => `${w}=${W}`).join("; "));
1784
1785
  const L = `${Va(s, b) || ""}${M ? `?${M}` : ""}`, J = Va(n.url, b) || "", p = `${ls(J)}${L}`;
1785
1786
  p.startsWith("/") && e.options.logger.error(Y0(` Wrong url: ${Wi(p)} `) + ` Did you forget to provide a correct "serverUrl"?
1786
1787
  `);
@@ -1841,7 +1842,7 @@ class Es {
1841
1842
  body: K
1842
1843
  });
1843
1844
  const I = e.options.fetch, X = performance.now();
1844
- let U, O, iu;
1845
+ let U, O, ru;
1845
1846
  const mu = {
1846
1847
  method: l.toUpperCase(),
1847
1848
  headers: F,
@@ -1913,9 +1914,9 @@ class Es {
1913
1914
  }), U = await I(p, {
1914
1915
  ...mu,
1915
1916
  headers: v
1916
- }), iu = Math.ceil(performance.now() - X);
1917
+ }), ru = Math.ceil(performance.now() - X);
1917
1918
  } else
1918
- U = await I(p, mu), iu = Math.ceil(performance.now() - X);
1919
+ U = await I(p, mu), ru = Math.ceil(performance.now() - X);
1919
1920
  if (!U)
1920
1921
  throw new Error("Failed to fetch, no result received");
1921
1922
  const [Eu] = U.headers.get("content-type")?.split(";") || [
@@ -1946,7 +1947,7 @@ class Es {
1946
1947
  host: n.url,
1947
1948
  path: L || "",
1948
1949
  statusCode: U.status,
1949
- responseTime: iu,
1950
+ responseTime: ru,
1950
1951
  headerParams: r0({
1951
1952
  value: Bu,
1952
1953
  noSecretsMasking: e.noSecretsMasking,
@@ -1956,7 +1957,7 @@ class Es {
1956
1957
  }), {
1957
1958
  body: xu,
1958
1959
  statusCode: U.status,
1959
- time: iu,
1960
+ time: ru,
1960
1961
  header: Object.fromEntries(U.headers?.entries() || []),
1961
1962
  contentType: Eu,
1962
1963
  requestUrl: p,
@@ -4205,7 +4206,7 @@ function lq() {
4205
4206
  comments: !1,
4206
4207
  ranges: !1
4207
4208
  };
4208
- function iu(f) {
4209
+ function ru(f) {
4209
4210
  let T = f.value.slice(1, -1), R = "", w = T.indexOf("\\"), W = 0;
4210
4211
  for (; w >= 0; ) {
4211
4212
  R += T.slice(W, w);
@@ -4246,7 +4247,7 @@ function lq() {
4246
4247
  case "Null":
4247
4248
  return null;
4248
4249
  case "String":
4249
- return iu(f);
4250
+ return ru(f);
4250
4251
  }
4251
4252
  }
4252
4253
  function Cu(f, T) {
@@ -5579,18 +5580,18 @@ function Hq() {
5579
5580
  }, h.start), I = Object.assign({}, G, h.end), {
5580
5581
  linesAbove: X = 2,
5581
5582
  linesBelow: U = 3
5582
- } = S || {}, O = G.line - K, iu = G.column, mu = I.line - K, Cu = I.column;
5583
+ } = S || {}, O = G.line - K, ru = G.column, mu = I.line - K, Cu = I.column;
5583
5584
  let zu = Math.max(O - (X + 1), 0), Eu = Math.min(B.length, mu + U);
5584
5585
  O === -1 && (zu = 0), mu === -1 && (Eu = B.length);
5585
5586
  const xu = mu - O, hu = {};
5586
5587
  if (xu)
5587
5588
  for (let vu = 0; vu <= xu; vu++) {
5588
5589
  const cu = vu + O;
5589
- if (!iu)
5590
+ if (!ru)
5590
5591
  hu[cu] = !0;
5591
5592
  else if (vu === 0) {
5592
5593
  const Bu = B[cu - 1].length;
5593
- hu[cu] = [iu, Bu - iu + 1];
5594
+ hu[cu] = [ru, Bu - ru + 1];
5594
5595
  } else if (vu === xu)
5595
5596
  hu[cu] = [0, Cu];
5596
5597
  else {
@@ -5599,7 +5600,7 @@ function Hq() {
5599
5600
  }
5600
5601
  }
5601
5602
  else
5602
- iu === Cu ? iu ? hu[O] = [iu, 0] : hu[O] = !0 : hu[O] = [iu, Cu - iu];
5603
+ ru === Cu ? ru ? hu[O] = [ru, 0] : hu[O] = !0 : hu[O] = [ru, Cu - ru];
5603
5604
  return {
5604
5605
  start: zu,
5605
5606
  end: Eu,
@@ -5610,10 +5611,10 @@ function Hq() {
5610
5611
  const K = S.forceColor || i() && S.highlightCode, G = (S.startLine || 1) - 1, I = l(K), X = h.split(_), {
5611
5612
  start: U,
5612
5613
  end: O,
5613
- markerLines: iu
5614
+ markerLines: ru
5614
5615
  } = L(B, X, S, G), mu = B.start && typeof B.start.column == "number", Cu = String(O + G).length;
5615
5616
  let Eu = (K ? y(h) : h).split(_, O).slice(U, O).map((xu, hu) => {
5616
- const vu = U + 1 + hu, Bu = ` ${` ${vu + G}`.slice(-Cu)} |`, f = iu[vu], T = !iu[vu + 1];
5617
+ const vu = U + 1 + hu, Bu = ` ${` ${vu + G}`.slice(-Cu)} |`, f = ru[vu], T = !ru[vu + 1];
5617
5618
  if (f) {
5618
5619
  let R = "";
5619
5620
  if (Array.isArray(f)) {
@@ -6095,7 +6096,7 @@ function bn(u) {
6095
6096
  }
6096
6097
  function Bn(u) {
6097
6098
  const a = u?.type;
6098
- return a === "jsonpath" || nu(a) && a.type === "jsonpath";
6099
+ return a === "jsonpath" || iu(a) && a.type === "jsonpath";
6099
6100
  }
6100
6101
  const Hi = [
6101
6102
  "$url",
@@ -6234,7 +6235,7 @@ C0.buildMessage = function(u, a) {
6234
6235
  };
6235
6236
  function ZZ(u, a) {
6236
6237
  a = a !== void 0 ? a : {};
6237
- var e = {}, i = a.grammarSource, r = { jsonpath_query: xe }, o = xe, n = "$", s = ".", l = "..", E = "[", D = ",", d = "]", F = "*", k = ":", b = "?", y = '"', M = "'", _ = "0", L = "-", J = "||", p = "\\", h = "u", B = "&&", S = "d", K = "(", G = ")", I = "!", X = "==", U = "!=", O = "<=", iu = ">=", mu = "-0", Cu = "true", zu = "false", Eu = "null", xu = "@", hu = "e", vu = /^[\t-\n\r ]/, cu = /^[A-Z_a-z\x80-\uD7FF\uE000-\uFFFF]/, Bu = /^[\uD800-\uDBFF]/, f = /^[\uDC00-\uDFFF]/, T = /^[0-9]/, R = /^[1-9]/, w = /^[ -!#-&(-[\]-\uD7FF\uE000-\uFFFF]/, W = /^[\/\\bfnrt]/, tu = /^[A-CE-F]/i, Z = /^[0-7]/, gu = /^[8-9]/, uu = /^[A-B]/i, yu = /^[C-F]/i, Iu = /^[A-F]/i, e0 = /^[<>]/, a0 = /^[0-9_a-z]/, i0 = /^[+\-]/, pu = /^[a-z]/, Vu = Q("$", !1), eu = Fu([[" ", `
6238
+ var e = {}, i = a.grammarSource, r = { jsonpath_query: xe }, o = xe, n = "$", s = ".", l = "..", E = "[", D = ",", d = "]", F = "*", k = ":", b = "?", y = '"', M = "'", _ = "0", L = "-", J = "||", p = "\\", h = "u", B = "&&", S = "d", K = "(", G = ")", I = "!", X = "==", U = "!=", O = "<=", ru = ">=", mu = "-0", Cu = "true", zu = "false", Eu = "null", xu = "@", hu = "e", vu = /^[\t-\n\r ]/, cu = /^[A-Z_a-z\x80-\uD7FF\uE000-\uFFFF]/, Bu = /^[\uD800-\uDBFF]/, f = /^[\uDC00-\uDFFF]/, T = /^[0-9]/, R = /^[1-9]/, w = /^[ -!#-&(-[\]-\uD7FF\uE000-\uFFFF]/, W = /^[\/\\bfnrt]/, tu = /^[A-CE-F]/i, Z = /^[0-7]/, gu = /^[8-9]/, uu = /^[A-B]/i, yu = /^[C-F]/i, Iu = /^[A-F]/i, e0 = /^[<>]/, a0 = /^[0-9_a-z]/, i0 = /^[+\-]/, pu = /^[a-z]/, Vu = Q("$", !1), eu = Fu([[" ", `
6238
6239
  `], "\r", " "], !1, !1), v = Q(".", !1), A = Q("..", !1), V = Q("[", !1), Y = Q(",", !1), Mu = Q("]", !1), Ee = Q("*", !1), _n = Fu([["A", "Z"], "_", ["a", "z"], ["€", "퟿"], ["", "￿"]], !1, !1), Ze = Fu([["\uD800", "\uDBFF"]], !1, !1), Ue = Fu([["\uDC00", "\uDFFF"]], !1, !1), Ye = Q(":", !1), Jn = Q("?", !1), $n = Fu([["0", "9"]], !1, !1), R0 = Q('"', !1), H0 = Q("'", !1), In = Q("0", !1), On = Q("-", !1), Wn = Fu([["1", "9"]], !1, !1), Qe = Q("||", !1), qn = Fu([[" ", "!"], ["#", "&"], ["(", "["], ["]", "퟿"], ["", "￿"]], !1, !1), Xe = Q("\\", !1), Zn = Fu(["/", "\\", "b", "f", "n", "r", "t"], !1, !1), ua = Q("u", !1), ea = Q("&&", !1), Un = Fu([["A", "C"], ["E", "F"]], !1, !0), De = Q("D", !0), Yn = Fu([["0", "7"]], !1, !1), Qn = Fu([["8", "9"]], !1, !1), Xn = Fu([["A", "B"]], !1, !0), u1 = Fu([["C", "F"]], !1, !0), aa = Q("(", !1), ia = Q(")", !1), e1 = Fu([["A", "F"]], !1, !0), a1 = Q("!", !1), i1 = Q("==", !1), r1 = Q("!=", !1), n1 = Q("<=", !1), o1 = Q(">=", !1), t1 = Fu(["<", ">"], !1, !1), s1 = Q("-0", !1), l1 = Q("true", !1), E1 = Q("false", !1), D1 = Q("null", !1), x1 = Q("@", !1), c1 = Fu([["0", "9"], "_", ["a", "z"]], !1, !1), d1 = Q("e", !0), m1 = Fu(["+", "-"], !1, !1), F1 = Fu([["a", "z"]], !1, !1), k1 = function(t) {
6239
6240
  return {
6240
6241
  type: "JsonPathQuery",
@@ -6728,7 +6729,7 @@ function ZZ(u, a) {
6728
6729
  }
6729
6730
  function Bo() {
6730
6731
  var t;
6731
- return u.substr(c, 2) === X ? (t = X, c += 2) : (t = e, P === 0 && j(i1)), t === e && (u.substr(c, 2) === U ? (t = U, c += 2) : (t = e, P === 0 && j(r1)), t === e && (u.substr(c, 2) === O ? (t = O, c += 2) : (t = e, P === 0 && j(n1)), t === e && (u.substr(c, 2) === iu ? (t = iu, c += 2) : (t = e, P === 0 && j(o1)), t === e && (t = u.charAt(c), e0.test(t) ? c++ : (t = e, P === 0 && j(t1)))))), t;
6732
+ return u.substr(c, 2) === X ? (t = X, c += 2) : (t = e, P === 0 && j(i1)), t === e && (u.substr(c, 2) === U ? (t = U, c += 2) : (t = e, P === 0 && j(r1)), t === e && (u.substr(c, 2) === O ? (t = O, c += 2) : (t = e, P === 0 && j(n1)), t === e && (u.substr(c, 2) === ru ? (t = ru, c += 2) : (t = e, P === 0 && j(o1)), t === e && (t = u.charAt(c), e0.test(t) ? c++ : (t = e, P === 0 && j(t1)))))), t;
6732
6733
  }
6733
6734
  function za() {
6734
6735
  var t, x;
@@ -7625,7 +7626,7 @@ function PU(u, a, e) {
7625
7626
  });
7626
7627
  }
7627
7628
  function wU(u, a) {
7628
- return u === void 0 ? a : typeof u == "string" || Array.isArray(u) || nu(u) ? JSON.stringify(u) : String(u);
7629
+ return u === void 0 ? a : typeof u == "string" || Array.isArray(u) || iu(u) ? JSON.stringify(u) : String(u);
7629
7630
  }
7630
7631
  function Vn({ workflowId: u, step: a, criteria: e = [], ctx: i }) {
7631
7632
  WZ(e);
@@ -7937,7 +7938,7 @@ async function IU(u, a, e) {
7937
7938
  replacements: M
7938
7939
  } = await F4(a.requestBody, u), _ = b !== void 0 ? b : k?.requestBody, L = y || k?.contentType, J = Vi(
7939
7940
  // order is important here, the last one wins
7940
- nu(_) || Array.isArray(_) ? [{ in: "header", name: "content-type", value: "application/json" }] : [],
7941
+ iu(_) || Array.isArray(_) ? [{ in: "header", name: "content-type", value: "application/json" }] : [],
7941
7942
  F?.parameters || [],
7942
7943
  k?.contentTypeParameters || [],
7943
7944
  // if step.parameters is defined, we do not auto-populate parameters from the openapi operation
@@ -7988,14 +7989,14 @@ async function IU(u, a, e) {
7988
7989
  contentType: L,
7989
7990
  logger: u.options.logger
7990
7991
  });
7991
- if (M && (nu(G) || Array.isArray(G)) && k4({
7992
+ if (M && (iu(G) || Array.isArray(G)) && k4({
7992
7993
  payload: G,
7993
7994
  replacements: M,
7994
7995
  expressionContext: h,
7995
7996
  logger: u.options.logger
7996
7997
  }), L && E?.requestBody) {
7997
7998
  const I = bt(L, E);
7998
- (nu(_) || Array.isArray(_)) && L0(u, I, _);
7999
+ (iu(_) || Array.isArray(_)) && L0(u, I, _);
7999
8000
  }
8000
8001
  return u.$workflows[e].steps[i].request = {
8001
8002
  body: G,
@@ -8193,10 +8194,10 @@ async function Ge({ step: u, ctx: a, workflowId: e, retriesLeft: i, executedStep
8193
8194
  logger: a.options.logger
8194
8195
  }) : void 0, U = S.workflowId && X ? await Ve(S.workflowId, X, a, a.options.config) : { ...a, executedSteps: [] }, O = S.stepId ? S.stepId : void 0;
8195
8196
  if (K === "retry") {
8196
- const { retryAfter: iu, retryLimit: mu = 0 } = S;
8197
+ const { retryAfter: ru, retryLimit: mu = 0 } = S;
8197
8198
  if (i = i ?? mu, u.retriesLeft = i, i === 0)
8198
8199
  return { retriesLeft: 0, shouldEnd: !1 };
8199
- if (iu && await sq(iu), (X || O) && Qa({
8200
+ if (ru && await sq(ru), (X || O) && Qa({
8200
8201
  stepId: n,
8201
8202
  actionName: S.name,
8202
8203
  kind: h,
@@ -8246,7 +8247,7 @@ async function Ge({ step: u, ctx: a, workflowId: e, retriesLeft: i, executedStep
8246
8247
  kind: h,
8247
8248
  logger: a.options.logger
8248
8249
  });
8249
- const iu = await K0({
8250
+ const ru = await K0({
8250
8251
  workflowInput: X || o,
8251
8252
  ctx: U,
8252
8253
  fromStepId: O,
@@ -8254,7 +8255,7 @@ async function Ge({ step: u, ctx: a, workflowId: e, retriesLeft: i, executedStep
8254
8255
  invocationContext: `Goto from step ${n}`,
8255
8256
  executedStepsCount: B
8256
8257
  });
8257
- return a.executedSteps.push(iu), { shouldEnd: !0 };
8258
+ return a.executedSteps.push(ru), { shouldEnd: !0 };
8258
8259
  }
8259
8260
  }
8260
8261
  break;