@mastra/evals 0.14.1-alpha.0 → 0.14.1

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.
@@ -422,49 +422,49 @@ var require_js_tokens = chunkEMMSS5I5_cjs.__commonJS({
422
422
  }
423
423
  });
424
424
 
425
- // ../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/branding.js
425
+ // ../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/branding.js
426
426
  var require_branding = chunkEMMSS5I5_cjs.__commonJS({
427
- "../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/branding.js"(exports) {
427
+ "../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/branding.js"(exports) {
428
428
  Object.defineProperty(exports, "__esModule", { value: true });
429
429
  }
430
430
  });
431
431
 
432
- // ../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/messages.js
432
+ // ../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/messages.js
433
433
  var require_messages = chunkEMMSS5I5_cjs.__commonJS({
434
- "../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/messages.js"(exports) {
434
+ "../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/messages.js"(exports) {
435
435
  Object.defineProperty(exports, "__esModule", { value: true });
436
436
  }
437
437
  });
438
438
 
439
- // ../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/overloads.js
439
+ // ../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/overloads.js
440
440
  var require_overloads = chunkEMMSS5I5_cjs.__commonJS({
441
- "../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/overloads.js"(exports) {
441
+ "../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/overloads.js"(exports) {
442
442
  Object.defineProperty(exports, "__esModule", { value: true });
443
443
  }
444
444
  });
445
445
 
446
- // ../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/utils.js
446
+ // ../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/utils.js
447
447
  var require_utils = chunkEMMSS5I5_cjs.__commonJS({
448
- "../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/utils.js"(exports) {
448
+ "../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/utils.js"(exports) {
449
449
  Object.defineProperty(exports, "__esModule", { value: true });
450
450
  }
451
451
  });
452
452
 
453
- // ../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/index.js
453
+ // ../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/index.js
454
454
  var require_dist = chunkEMMSS5I5_cjs.__commonJS({
455
- "../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/index.js"(exports) {
456
- var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m2, k, k2) {
457
- if (k2 === void 0) k2 = k;
458
- var desc = Object.getOwnPropertyDescriptor(m2, k);
455
+ "../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/index.js"(exports) {
456
+ var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m2, k2, k22) {
457
+ if (k22 === void 0) k22 = k2;
458
+ var desc = Object.getOwnPropertyDescriptor(m2, k2);
459
459
  if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
460
460
  desc = { enumerable: true, get: function() {
461
- return m2[k];
461
+ return m2[k2];
462
462
  } };
463
463
  }
464
- Object.defineProperty(o, k2, desc);
465
- }) : (function(o, m2, k, k2) {
466
- if (k2 === void 0) k2 = k;
467
- o[k2] = m2[k];
464
+ Object.defineProperty(o, k22, desc);
465
+ }) : (function(o, m2, k2, k22) {
466
+ if (k22 === void 0) k22 = k2;
467
+ o[k22] = m2[k2];
468
468
  }));
469
469
  var __exportStar = exports && exports.__exportStar || function(m2, exports2) {
470
470
  for (var p3 in m2) if (p3 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p3)) __createBinding(exports2, m2, p3);
@@ -585,27 +585,27 @@ function C(n = false) {
585
585
  }
586
586
  function p(n = false) {
587
587
  let e = C(n), i = (r2, t, c, o) => {
588
- let l = "", s2 = 0;
588
+ let l2 = "", s2 = 0;
589
589
  do
590
- l += r2.substring(s2, o) + c, s2 = o + t.length, o = r2.indexOf(t, s2);
590
+ l2 += r2.substring(s2, o) + c, s2 = o + t.length, o = r2.indexOf(t, s2);
591
591
  while (~o);
592
- return l + r2.substring(s2);
592
+ return l2 + r2.substring(s2);
593
593
  }, g = (r2, t, c = r2) => {
594
- let o = (l) => {
595
- let s2 = String(l), b = s2.indexOf(t, r2.length);
596
- return ~b ? r2 + i(s2, t, c, b) + t : r2 + s2 + t;
594
+ let o = (l2) => {
595
+ let s2 = String(l2), b2 = s2.indexOf(t, r2.length);
596
+ return ~b2 ? r2 + i(s2, t, c, b2) + t : r2 + s2 + t;
597
597
  };
598
598
  return o.open = r2, o.close = t, o;
599
- }, u2 = {
599
+ }, u3 = {
600
600
  isColorSupported: e
601
601
  }, d = (r2) => `\x1B[${r2}m`;
602
602
  for (let [r2, t] of h)
603
- u2[r2] = e ? g(
603
+ u3[r2] = e ? g(
604
604
  d(t[0]),
605
605
  d(t[1]),
606
606
  t[2]
607
607
  ) : a;
608
- return u2;
608
+ return u3;
609
609
  }
610
610
  var r = process.env.FORCE_TTY !== void 0 || tty.isatty(1);
611
611
  var u = p(r);
@@ -613,13 +613,13 @@ var u = p(r);
613
613
  // ../../node_modules/.pnpm/@vitest+pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js
614
614
  function _mergeNamespaces$1(n, m2) {
615
615
  m2.forEach(function(e) {
616
- e && typeof e !== "string" && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
617
- if (k !== "default" && !(k in n)) {
618
- var d = Object.getOwnPropertyDescriptor(e, k);
619
- Object.defineProperty(n, k, d.get ? d : {
616
+ e && typeof e !== "string" && !Array.isArray(e) && Object.keys(e).forEach(function(k2) {
617
+ if (k2 !== "default" && !(k2 in n)) {
618
+ var d = Object.getOwnPropertyDescriptor(e, k2);
619
+ Object.defineProperty(n, k2, d.get ? d : {
620
620
  enumerable: true,
621
621
  get: function() {
622
- return e[k];
622
+ return e[k2];
623
623
  }
624
624
  });
625
625
  }
@@ -694,7 +694,7 @@ function printIteratorValues(iterator, config2, indentation, depth, refs, printe
694
694
  function printListItems(list, config2, indentation, depth, refs, printer2) {
695
695
  let result = "";
696
696
  list = list instanceof ArrayBuffer ? new DataView(list) : list;
697
- const isDataView = (l) => l instanceof DataView;
697
+ const isDataView = (l2) => l2 instanceof DataView;
698
698
  const length = isDataView(list) ? list.byteLength : list.length;
699
699
  if (length > 0) {
700
700
  result += config2.spacingOuter;
@@ -955,8 +955,8 @@ var plugin$2 = {
955
955
  serialize: serialize$2,
956
956
  test: test$2
957
957
  };
958
- function getDefaultExportFromCjs(x) {
959
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
958
+ function getDefaultExportFromCjs(x2) {
959
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
960
960
  }
961
961
  var reactIs$1 = { exports: {} };
962
962
  var reactIs_production = {};
@@ -1168,25 +1168,25 @@ var hasRequiredReactIs_production_min;
1168
1168
  function requireReactIs_production_min() {
1169
1169
  if (hasRequiredReactIs_production_min) return reactIs_production_min;
1170
1170
  hasRequiredReactIs_production_min = 1;
1171
- var b = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f3 = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), h3 = Symbol.for("react.context"), k = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m2 = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), p3 = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t = Symbol.for("react.offscreen"), u2;
1172
- u2 = Symbol.for("react.module.reference");
1173
- function v(a3) {
1171
+ var b2 = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f4 = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), h4 = Symbol.for("react.context"), k2 = Symbol.for("react.server_context"), l2 = Symbol.for("react.forward_ref"), m2 = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), p3 = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t = Symbol.for("react.offscreen"), u3;
1172
+ u3 = Symbol.for("react.module.reference");
1173
+ function v2(a3) {
1174
1174
  if ("object" === typeof a3 && null !== a3) {
1175
1175
  var r2 = a3.$$typeof;
1176
1176
  switch (r2) {
1177
- case b:
1177
+ case b2:
1178
1178
  switch (a3 = a3.type, a3) {
1179
1179
  case d:
1180
- case f3:
1180
+ case f4:
1181
1181
  case e:
1182
1182
  case m2:
1183
1183
  case n:
1184
1184
  return a3;
1185
1185
  default:
1186
1186
  switch (a3 = a3 && a3.$$typeof, a3) {
1187
- case k:
1188
- case h3:
1189
- case l:
1187
+ case k2:
1188
+ case h4:
1189
+ case l2:
1190
1190
  case q:
1191
1191
  case p3:
1192
1192
  case g:
@@ -1200,15 +1200,15 @@ function requireReactIs_production_min() {
1200
1200
  }
1201
1201
  }
1202
1202
  }
1203
- reactIs_production_min.ContextConsumer = h3;
1203
+ reactIs_production_min.ContextConsumer = h4;
1204
1204
  reactIs_production_min.ContextProvider = g;
1205
- reactIs_production_min.Element = b;
1206
- reactIs_production_min.ForwardRef = l;
1205
+ reactIs_production_min.Element = b2;
1206
+ reactIs_production_min.ForwardRef = l2;
1207
1207
  reactIs_production_min.Fragment = d;
1208
1208
  reactIs_production_min.Lazy = q;
1209
1209
  reactIs_production_min.Memo = p3;
1210
1210
  reactIs_production_min.Portal = c;
1211
- reactIs_production_min.Profiler = f3;
1211
+ reactIs_production_min.Profiler = f4;
1212
1212
  reactIs_production_min.StrictMode = e;
1213
1213
  reactIs_production_min.Suspense = m2;
1214
1214
  reactIs_production_min.SuspenseList = n;
@@ -1219,45 +1219,45 @@ function requireReactIs_production_min() {
1219
1219
  return false;
1220
1220
  };
1221
1221
  reactIs_production_min.isContextConsumer = function(a3) {
1222
- return v(a3) === h3;
1222
+ return v2(a3) === h4;
1223
1223
  };
1224
1224
  reactIs_production_min.isContextProvider = function(a3) {
1225
- return v(a3) === g;
1225
+ return v2(a3) === g;
1226
1226
  };
1227
1227
  reactIs_production_min.isElement = function(a3) {
1228
- return "object" === typeof a3 && null !== a3 && a3.$$typeof === b;
1228
+ return "object" === typeof a3 && null !== a3 && a3.$$typeof === b2;
1229
1229
  };
1230
1230
  reactIs_production_min.isForwardRef = function(a3) {
1231
- return v(a3) === l;
1231
+ return v2(a3) === l2;
1232
1232
  };
1233
1233
  reactIs_production_min.isFragment = function(a3) {
1234
- return v(a3) === d;
1234
+ return v2(a3) === d;
1235
1235
  };
1236
1236
  reactIs_production_min.isLazy = function(a3) {
1237
- return v(a3) === q;
1237
+ return v2(a3) === q;
1238
1238
  };
1239
1239
  reactIs_production_min.isMemo = function(a3) {
1240
- return v(a3) === p3;
1240
+ return v2(a3) === p3;
1241
1241
  };
1242
1242
  reactIs_production_min.isPortal = function(a3) {
1243
- return v(a3) === c;
1243
+ return v2(a3) === c;
1244
1244
  };
1245
1245
  reactIs_production_min.isProfiler = function(a3) {
1246
- return v(a3) === f3;
1246
+ return v2(a3) === f4;
1247
1247
  };
1248
1248
  reactIs_production_min.isStrictMode = function(a3) {
1249
- return v(a3) === e;
1249
+ return v2(a3) === e;
1250
1250
  };
1251
1251
  reactIs_production_min.isSuspense = function(a3) {
1252
- return v(a3) === m2;
1252
+ return v2(a3) === m2;
1253
1253
  };
1254
1254
  reactIs_production_min.isSuspenseList = function(a3) {
1255
- return v(a3) === n;
1255
+ return v2(a3) === n;
1256
1256
  };
1257
1257
  reactIs_production_min.isValidElementType = function(a3) {
1258
- return "string" === typeof a3 || "function" === typeof a3 || a3 === d || a3 === f3 || a3 === e || a3 === m2 || a3 === n || a3 === t || "object" === typeof a3 && null !== a3 && (a3.$$typeof === q || a3.$$typeof === p3 || a3.$$typeof === g || a3.$$typeof === h3 || a3.$$typeof === l || a3.$$typeof === u2 || void 0 !== a3.getModuleId) ? true : false;
1258
+ return "string" === typeof a3 || "function" === typeof a3 || a3 === d || a3 === f4 || a3 === e || a3 === m2 || a3 === n || a3 === t || "object" === typeof a3 && null !== a3 && (a3.$$typeof === q || a3.$$typeof === p3 || a3.$$typeof === g || a3.$$typeof === h4 || a3.$$typeof === l2 || a3.$$typeof === u3 || void 0 !== a3.getModuleId) ? true : false;
1259
1259
  };
1260
- reactIs_production_min.typeOf = v;
1260
+ reactIs_production_min.typeOf = v2;
1261
1261
  return reactIs_production_min;
1262
1262
  }
1263
1263
  var reactIs_development = {};
@@ -1475,7 +1475,7 @@ var reactIsMethods = [
1475
1475
  "isSuspenseList",
1476
1476
  "isValidElementType"
1477
1477
  ];
1478
- var ReactIs = Object.fromEntries(reactIsMethods.map((m2) => [m2, (v) => ReactIs18[m2](v) || ReactIs19[m2](v)]));
1478
+ var ReactIs = Object.fromEntries(reactIsMethods.map((m2) => [m2, (v2) => ReactIs18[m2](v2) || ReactIs19[m2](v2)]));
1479
1479
  function getChildren(arg, children = []) {
1480
1480
  if (Array.isArray(arg)) {
1481
1481
  for (const item of arg) {
@@ -1842,7 +1842,7 @@ var plugins = {
1842
1842
  Error: ErrorPlugin
1843
1843
  };
1844
1844
 
1845
- // ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/helpers.js
1845
+ // ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js
1846
1846
  var ansiColors = {
1847
1847
  bold: ["1", "22"],
1848
1848
  dim: ["2", "22"],
@@ -1997,7 +1997,7 @@ function inspectProperty([key, value], options) {
1997
1997
  return `${key}: ${value}`;
1998
1998
  }
1999
1999
 
2000
- // ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/array.js
2000
+ // ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js
2001
2001
  function inspectArray(array2, options) {
2002
2002
  const nonIndexProperties = Object.keys(array2).slice(array2.length);
2003
2003
  if (!array2.length && !nonIndexProperties.length)
@@ -2012,7 +2012,7 @@ function inspectArray(array2, options) {
2012
2012
  return `[ ${listContents}${propertyContents ? `, ${propertyContents}` : ""} ]`;
2013
2013
  }
2014
2014
 
2015
- // ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/typedarray.js
2015
+ // ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js
2016
2016
  var getArrayName = (array2) => {
2017
2017
  if (typeof Buffer === "function" && array2 instanceof Buffer) {
2018
2018
  return "Buffer";
@@ -2045,7 +2045,7 @@ function inspectTypedArray(array2, options) {
2045
2045
  return `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : ""} ]`;
2046
2046
  }
2047
2047
 
2048
- // ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/date.js
2048
+ // ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js
2049
2049
  function inspectDate(dateObject, options) {
2050
2050
  const stringRepresentation = dateObject.toJSON();
2051
2051
  if (stringRepresentation === null) {
@@ -2056,7 +2056,7 @@ function inspectDate(dateObject, options) {
2056
2056
  return options.stylize(`${date}T${truncate(split[1], options.truncate - date.length - 1)}`, "date");
2057
2057
  }
2058
2058
 
2059
- // ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/function.js
2059
+ // ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js
2060
2060
  function inspectFunction(func, options) {
2061
2061
  const functionType = func[Symbol.toStringTag] || "Function";
2062
2062
  const name = func.name;
@@ -2066,7 +2066,7 @@ function inspectFunction(func, options) {
2066
2066
  return options.stylize(`[${functionType} ${truncate(name, options.truncate - 11)}]`, "special");
2067
2067
  }
2068
2068
 
2069
- // ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/map.js
2069
+ // ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js
2070
2070
  function inspectMapEntry([key, value], options) {
2071
2071
  options.truncate -= 4;
2072
2072
  key = options.inspect(key, options);
@@ -2088,7 +2088,7 @@ function inspectMap(map2, options) {
2088
2088
  return `Map{ ${inspectList(mapToEntries(map2), options, inspectMapEntry)} }`;
2089
2089
  }
2090
2090
 
2091
- // ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/number.js
2091
+ // ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js
2092
2092
  var isNaN = Number.isNaN || ((i) => i !== i);
2093
2093
  function inspectNumber(number, options) {
2094
2094
  if (isNaN(number)) {
@@ -2106,7 +2106,7 @@ function inspectNumber(number, options) {
2106
2106
  return options.stylize(truncate(String(number), options.truncate), "number");
2107
2107
  }
2108
2108
 
2109
- // ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/bigint.js
2109
+ // ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js
2110
2110
  function inspectBigInt(number, options) {
2111
2111
  let nums = truncate(number.toString(), options.truncate - 1);
2112
2112
  if (nums !== truncator)
@@ -2114,7 +2114,7 @@ function inspectBigInt(number, options) {
2114
2114
  return options.stylize(nums, "bigint");
2115
2115
  }
2116
2116
 
2117
- // ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/regexp.js
2117
+ // ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js
2118
2118
  function inspectRegExp(value, options) {
2119
2119
  const flags = value.toString().split("/")[2];
2120
2120
  const sourceLength = options.truncate - (2 + flags.length);
@@ -2122,7 +2122,7 @@ function inspectRegExp(value, options) {
2122
2122
  return options.stylize(`/${truncate(source, sourceLength)}/${flags}`, "regexp");
2123
2123
  }
2124
2124
 
2125
- // ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/set.js
2125
+ // ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js
2126
2126
  function arrayFromSet(set3) {
2127
2127
  const values = [];
2128
2128
  set3.forEach((value) => {
@@ -2137,7 +2137,7 @@ function inspectSet(set3, options) {
2137
2137
  return `Set{ ${inspectList(arrayFromSet(set3), options)} }`;
2138
2138
  }
2139
2139
 
2140
- // ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/string.js
2140
+ // ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js
2141
2141
  var stringEscapeChars = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]", "g");
2142
2142
  var escapeCharacters = {
2143
2143
  "\b": "\\b",
@@ -2159,7 +2159,7 @@ function inspectString(string2, options) {
2159
2159
  return options.stylize(`'${truncate(string2, options.truncate - 2)}'`, "string");
2160
2160
  }
2161
2161
 
2162
- // ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/symbol.js
2162
+ // ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js
2163
2163
  function inspectSymbol(value) {
2164
2164
  if ("description" in Symbol.prototype) {
2165
2165
  return value.description ? `Symbol(${value.description})` : "Symbol()";
@@ -2167,24 +2167,11 @@ function inspectSymbol(value) {
2167
2167
  return value.toString();
2168
2168
  }
2169
2169
 
2170
- // ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/promise.js
2170
+ // ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js
2171
2171
  var getPromiseValue = () => "Promise{\u2026}";
2172
- try {
2173
- const { getPromiseDetails, kPending, kRejected } = process.binding("util");
2174
- if (Array.isArray(getPromiseDetails(Promise.resolve()))) {
2175
- getPromiseValue = (value, options) => {
2176
- const [state, innerValue] = getPromiseDetails(value);
2177
- if (state === kPending) {
2178
- return "Promise{<pending>}";
2179
- }
2180
- return `Promise${state === kRejected ? "!" : ""}{${options.inspect(innerValue, options)}}`;
2181
- };
2182
- }
2183
- } catch (notNode) {
2184
- }
2185
2172
  var promise_default = getPromiseValue;
2186
2173
 
2187
- // ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/object.js
2174
+ // ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js
2188
2175
  function inspectObject(object2, options) {
2189
2176
  const properties = Object.getOwnPropertyNames(object2);
2190
2177
  const symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object2) : [];
@@ -2207,7 +2194,7 @@ function inspectObject(object2, options) {
2207
2194
  return `{ ${propertyContents}${sep2}${symbolContents} }`;
2208
2195
  }
2209
2196
 
2210
- // ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/class.js
2197
+ // ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js
2211
2198
  var toStringTag = typeof Symbol !== "undefined" && Symbol.toStringTag ? Symbol.toStringTag : false;
2212
2199
  function inspectClass(value, options) {
2213
2200
  let name = "";
@@ -2222,7 +2209,7 @@ function inspectClass(value, options) {
2222
2209
  return `${name}${inspectObject(value, options)}`;
2223
2210
  }
2224
2211
 
2225
- // ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/arguments.js
2212
+ // ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js
2226
2213
  function inspectArguments(args, options) {
2227
2214
  if (args.length === 0)
2228
2215
  return "Arguments[]";
@@ -2230,7 +2217,7 @@ function inspectArguments(args, options) {
2230
2217
  return `Arguments[ ${inspectList(args, options)} ]`;
2231
2218
  }
2232
2219
 
2233
- // ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/error.js
2220
+ // ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js
2234
2221
  var errorKeys = [
2235
2222
  "stack",
2236
2223
  "line",
@@ -2265,7 +2252,7 @@ function inspectObject2(error, options) {
2265
2252
  return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ""}`;
2266
2253
  }
2267
2254
 
2268
- // ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/html.js
2255
+ // ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js
2269
2256
  function inspectAttribute([key, value], options) {
2270
2257
  options.truncate -= 3;
2271
2258
  if (!value) {
@@ -2307,7 +2294,7 @@ function inspectHTML(element, options) {
2307
2294
  return `${head}${propertyContents}${headClose}${children}${tail}`;
2308
2295
  }
2309
2296
 
2310
- // ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/index.js
2297
+ // ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js
2311
2298
  var symbolsSupported = typeof Symbol === "function" && typeof Symbol.for === "function";
2312
2299
  var chaiInspect = symbolsSupported ? Symbol.for("chai/inspect") : "@@chai/inspect";
2313
2300
  var nodeInspect = Symbol.for("nodejs.util.inspect.custom");
@@ -2355,12 +2342,12 @@ var baseTypesMap = {
2355
2342
  HTMLCollection: inspectNodeCollection,
2356
2343
  NodeList: inspectNodeCollection
2357
2344
  };
2358
- var inspectCustom = (value, options, type3) => {
2345
+ var inspectCustom = (value, options, type3, inspectFn) => {
2359
2346
  if (chaiInspect in value && typeof value[chaiInspect] === "function") {
2360
2347
  return value[chaiInspect](options);
2361
2348
  }
2362
2349
  if (nodeInspect in value && typeof value[nodeInspect] === "function") {
2363
- return value[nodeInspect](options.depth, options);
2350
+ return value[nodeInspect](options.depth, options, inspectFn);
2364
2351
  }
2365
2352
  if ("inspect" in value && typeof value.inspect === "function") {
2366
2353
  return value.inspect(options.depth, options);
@@ -2385,7 +2372,7 @@ function inspect(value, opts = {}) {
2385
2372
  return baseTypesMap[type3](value, options);
2386
2373
  }
2387
2374
  if (customInspect && value) {
2388
- const output = inspectCustom(value, options, type3);
2375
+ const output = inspectCustom(value, options, type3, inspect);
2389
2376
  if (output) {
2390
2377
  if (typeof output === "string")
2391
2378
  return output;
@@ -2460,14 +2447,14 @@ function format2(...args) {
2460
2447
  const len = args.length;
2461
2448
  let i = 1;
2462
2449
  const template = args[0];
2463
- let str = String(template).replace(formatRegExp, (x) => {
2464
- if (x === "%%") {
2450
+ let str = String(template).replace(formatRegExp, (x2) => {
2451
+ if (x2 === "%%") {
2465
2452
  return "%";
2466
2453
  }
2467
2454
  if (i >= len) {
2468
- return x;
2455
+ return x2;
2469
2456
  }
2470
- switch (x) {
2457
+ switch (x2) {
2471
2458
  case "%s": {
2472
2459
  const value = args[i++];
2473
2460
  if (typeof value === "bigint") {
@@ -2525,14 +2512,14 @@ function format2(...args) {
2525
2512
  throw err;
2526
2513
  }
2527
2514
  default:
2528
- return x;
2515
+ return x2;
2529
2516
  }
2530
2517
  });
2531
- for (let x = args[i]; i < len; x = args[++i]) {
2532
- if (x === null || typeof x !== "object") {
2533
- str += ` ${x}`;
2518
+ for (let x2 = args[i]; i < len; x2 = args[++i]) {
2519
+ if (x2 === null || typeof x2 !== "object") {
2520
+ str += ` ${x2}`;
2534
2521
  } else {
2535
- str += ` ${inspect2(x)}`;
2522
+ str += ` ${inspect2(x2)}`;
2536
2523
  }
2537
2524
  }
2538
2525
  return str;
@@ -2565,8 +2552,8 @@ function objDisplay(obj, options = {}) {
2565
2552
  }
2566
2553
  return str;
2567
2554
  }
2568
- function getDefaultExportFromCjs2(x) {
2569
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
2555
+ function getDefaultExportFromCjs2(x2) {
2556
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
2570
2557
  }
2571
2558
 
2572
2559
  // ../../node_modules/.pnpm/@vitest+utils@3.2.4/node_modules/@vitest/utils/dist/helpers.js
@@ -2626,15 +2613,15 @@ function deepClone(val, options = defaultCloneOptions) {
2626
2613
  return clone(val, seen, options);
2627
2614
  }
2628
2615
  function clone(val, seen, options = defaultCloneOptions) {
2629
- let k, out;
2616
+ let k2, out;
2630
2617
  if (seen.has(val)) {
2631
2618
  return seen.get(val);
2632
2619
  }
2633
2620
  if (Array.isArray(val)) {
2634
- out = Array.from({ length: k = val.length });
2621
+ out = Array.from({ length: k2 = val.length });
2635
2622
  seen.set(val, out);
2636
- while (k--) {
2637
- out[k] = clone(val[k], seen, options);
2623
+ while (k2--) {
2624
+ out[k2] = clone(val[k2], seen, options);
2638
2625
  }
2639
2626
  return out;
2640
2627
  }
@@ -2642,28 +2629,28 @@ function clone(val, seen, options = defaultCloneOptions) {
2642
2629
  out = Object.create(Object.getPrototypeOf(val));
2643
2630
  seen.set(val, out);
2644
2631
  const props = getOwnProperties(val);
2645
- for (const k2 of props) {
2646
- const descriptor = Object.getOwnPropertyDescriptor(val, k2);
2632
+ for (const k3 of props) {
2633
+ const descriptor = Object.getOwnPropertyDescriptor(val, k3);
2647
2634
  if (!descriptor) {
2648
2635
  continue;
2649
2636
  }
2650
- const cloned = clone(val[k2], seen, options);
2637
+ const cloned = clone(val[k3], seen, options);
2651
2638
  if (options.forceWritable) {
2652
- Object.defineProperty(out, k2, {
2639
+ Object.defineProperty(out, k3, {
2653
2640
  enumerable: descriptor.enumerable,
2654
2641
  configurable: true,
2655
2642
  writable: true,
2656
2643
  value: cloned
2657
2644
  });
2658
2645
  } else if ("get" in descriptor) {
2659
- Object.defineProperty(out, k2, {
2646
+ Object.defineProperty(out, k3, {
2660
2647
  ...descriptor,
2661
2648
  get() {
2662
2649
  return cloned;
2663
2650
  }
2664
2651
  });
2665
2652
  } else {
2666
- Object.defineProperty(out, k2, {
2653
+ Object.defineProperty(out, k3, {
2667
2654
  ...descriptor,
2668
2655
  value: cloned
2669
2656
  });
@@ -3656,19 +3643,19 @@ function joinAlignedDiffsNoExpand(diffs, options) {
3656
3643
  let aEnd = 0;
3657
3644
  let bEnd = 0;
3658
3645
  const pushCommonLine = (line) => {
3659
- const j = lines.length;
3660
- lines.push(printCommonLine(line, j === 0 || j === jLast, options));
3646
+ const j2 = lines.length;
3647
+ lines.push(printCommonLine(line, j2 === 0 || j2 === jLast, options));
3661
3648
  aEnd += 1;
3662
3649
  bEnd += 1;
3663
3650
  };
3664
3651
  const pushDeleteLine = (line) => {
3665
- const j = lines.length;
3666
- lines.push(printDeleteLine(line, j === 0 || j === jLast, options));
3652
+ const j2 = lines.length;
3653
+ lines.push(printDeleteLine(line, j2 === 0 || j2 === jLast, options));
3667
3654
  aEnd += 1;
3668
3655
  };
3669
3656
  const pushInsertLine = (line) => {
3670
- const j = lines.length;
3671
- lines.push(printInsertLine(line, j === 0 || j === jLast, options));
3657
+ const j2 = lines.length;
3658
+ lines.push(printInsertLine(line, j2 === 0 || j2 === jLast, options));
3672
3659
  bEnd += 1;
3673
3660
  };
3674
3661
  i = 0;
@@ -3795,20 +3782,20 @@ function isEmptyString(lines) {
3795
3782
  }
3796
3783
  function countChanges(diffs) {
3797
3784
  let a3 = 0;
3798
- let b = 0;
3785
+ let b2 = 0;
3799
3786
  diffs.forEach((diff2) => {
3800
3787
  switch (diff2[0]) {
3801
3788
  case DIFF_DELETE:
3802
3789
  a3 += 1;
3803
3790
  break;
3804
3791
  case DIFF_INSERT:
3805
- b += 1;
3792
+ b2 += 1;
3806
3793
  break;
3807
3794
  }
3808
3795
  });
3809
3796
  return {
3810
3797
  a: a3,
3811
- b
3798
+ b: b2
3812
3799
  };
3813
3800
  }
3814
3801
  function printAnnotation({ aAnnotation, aColor, aIndicator, bAnnotation, bColor, bIndicator, includeChangeCounts, omitAnnotationLines }, changeCounts) {
@@ -3830,9 +3817,9 @@ function printAnnotation({ aAnnotation, aColor, aIndicator, bAnnotation, bColor,
3830
3817
  bRest = `${bAnnotationPadding} ${bIndicator} ${bCountPadding}${bCount}`;
3831
3818
  }
3832
3819
  const a3 = `${aIndicator} ${aAnnotation}${aRest}`;
3833
- const b = `${bIndicator} ${bAnnotation}${bRest}`;
3820
+ const b2 = `${bIndicator} ${bAnnotation}${bRest}`;
3834
3821
  return `${aColor(a3)}
3835
- ${bColor(b)}
3822
+ ${bColor(b2)}
3836
3823
 
3837
3824
  `;
3838
3825
  }
@@ -3946,25 +3933,25 @@ function getType3(value) {
3946
3933
  function getNewLineSymbol(string2) {
3947
3934
  return string2.includes("\r\n") ? "\r\n" : "\n";
3948
3935
  }
3949
- function diffStrings(a3, b, options) {
3936
+ function diffStrings(a3, b2, options) {
3950
3937
  const truncate3 = (options === null || options === void 0 ? void 0 : options.truncateThreshold) ?? false;
3951
3938
  const truncateThreshold = Math.max(Math.floor((options === null || options === void 0 ? void 0 : options.truncateThreshold) ?? 0), 0);
3952
3939
  let aLength = a3.length;
3953
- let bLength = b.length;
3940
+ let bLength = b2.length;
3954
3941
  if (truncate3) {
3955
3942
  const aMultipleLines = a3.includes("\n");
3956
- const bMultipleLines = b.includes("\n");
3943
+ const bMultipleLines = b2.includes("\n");
3957
3944
  const aNewLineSymbol = getNewLineSymbol(a3);
3958
- const bNewLineSymbol = getNewLineSymbol(b);
3945
+ const bNewLineSymbol = getNewLineSymbol(b2);
3959
3946
  const _a = aMultipleLines ? `${a3.split(aNewLineSymbol, truncateThreshold).join(aNewLineSymbol)}
3960
3947
  ` : a3;
3961
- const _b = bMultipleLines ? `${b.split(bNewLineSymbol, truncateThreshold).join(bNewLineSymbol)}
3962
- ` : b;
3948
+ const _b = bMultipleLines ? `${b2.split(bNewLineSymbol, truncateThreshold).join(bNewLineSymbol)}
3949
+ ` : b2;
3963
3950
  aLength = _a.length;
3964
3951
  bLength = _b.length;
3965
3952
  }
3966
- const truncated = aLength !== a3.length || bLength !== b.length;
3967
- const isCommon = (aIndex2, bIndex2) => a3[aIndex2] === b[bIndex2];
3953
+ const truncated = aLength !== a3.length || bLength !== b2.length;
3954
+ const isCommon = (aIndex2, bIndex2) => a3[aIndex2] === b2[bIndex2];
3968
3955
  let aIndex = 0;
3969
3956
  let bIndex = 0;
3970
3957
  const diffs = [];
@@ -3973,18 +3960,18 @@ function diffStrings(a3, b, options) {
3973
3960
  diffs.push(new Diff(DIFF_DELETE, a3.slice(aIndex, aCommon)));
3974
3961
  }
3975
3962
  if (bIndex !== bCommon) {
3976
- diffs.push(new Diff(DIFF_INSERT, b.slice(bIndex, bCommon)));
3963
+ diffs.push(new Diff(DIFF_INSERT, b2.slice(bIndex, bCommon)));
3977
3964
  }
3978
3965
  aIndex = aCommon + nCommon;
3979
3966
  bIndex = bCommon + nCommon;
3980
- diffs.push(new Diff(DIFF_EQUAL, b.slice(bCommon, bIndex)));
3967
+ diffs.push(new Diff(DIFF_EQUAL, b2.slice(bCommon, bIndex)));
3981
3968
  };
3982
3969
  diffSequences(aLength, bLength, isCommon, foundSubsequence);
3983
3970
  if (aIndex !== aLength) {
3984
3971
  diffs.push(new Diff(DIFF_DELETE, a3.slice(aIndex)));
3985
3972
  }
3986
3973
  if (bIndex !== bLength) {
3987
- diffs.push(new Diff(DIFF_INSERT, b.slice(bIndex)));
3974
+ diffs.push(new Diff(DIFF_INSERT, b2.slice(bIndex)));
3988
3975
  }
3989
3976
  return [diffs, truncated];
3990
3977
  }
@@ -4126,22 +4113,22 @@ function hasCommonDiff(diffs, isMultiline) {
4126
4113
  }
4127
4114
  return diffs.some((diff2) => diff2[0] === DIFF_EQUAL);
4128
4115
  }
4129
- function diffStringsUnified(a3, b, options) {
4130
- if (a3 !== b && a3.length !== 0 && b.length !== 0) {
4131
- const isMultiline = a3.includes("\n") || b.includes("\n");
4116
+ function diffStringsUnified(a3, b2, options) {
4117
+ if (a3 !== b2 && a3.length !== 0 && b2.length !== 0) {
4118
+ const isMultiline = a3.includes("\n") || b2.includes("\n");
4132
4119
  const [diffs, truncated] = diffStringsRaw(isMultiline ? `${a3}
4133
- ` : a3, isMultiline ? `${b}
4134
- ` : b, true, options);
4120
+ ` : a3, isMultiline ? `${b2}
4121
+ ` : b2, true, options);
4135
4122
  if (hasCommonDiff(diffs, isMultiline)) {
4136
4123
  const optionsNormalized = normalizeDiffOptions(options);
4137
4124
  const lines = getAlignedDiffs(diffs, optionsNormalized.changeColor);
4138
4125
  return printDiffLines(lines, truncated, optionsNormalized);
4139
4126
  }
4140
4127
  }
4141
- return diffLinesUnified(a3.split("\n"), b.split("\n"), options);
4128
+ return diffLinesUnified(a3.split("\n"), b2.split("\n"), options);
4142
4129
  }
4143
- function diffStringsRaw(a3, b, cleanup, options) {
4144
- const [diffs, truncated] = diffStrings(a3, b, options);
4130
+ function diffStringsRaw(a3, b2, cleanup, options) {
4131
+ const [diffs, truncated] = diffStrings(a3, b2, options);
4145
4132
  {
4146
4133
  diff_cleanupSemantic(diffs);
4147
4134
  }
@@ -4170,8 +4157,8 @@ var FALLBACK_FORMAT_OPTIONS = {
4170
4157
  maxDepth: 8,
4171
4158
  plugins: PLUGINS2
4172
4159
  };
4173
- function diff(a3, b, options) {
4174
- if (Object.is(a3, b)) {
4160
+ function diff(a3, b2, options) {
4161
+ if (Object.is(a3, b2)) {
4175
4162
  return "";
4176
4163
  }
4177
4164
  const aType = getType3(a3);
@@ -4187,14 +4174,14 @@ function diff(a3, b, options) {
4187
4174
  expectedType = a3.getExpectedType();
4188
4175
  omitDifference = expectedType === "string";
4189
4176
  }
4190
- if (expectedType !== getType3(b)) {
4177
+ if (expectedType !== getType3(b2)) {
4191
4178
  let truncate4 = function(s2) {
4192
4179
  return s2.length <= MAX_LENGTH ? s2 : `${s2.slice(0, MAX_LENGTH)}...`;
4193
4180
  };
4194
4181
  const { aAnnotation, aColor, aIndicator, bAnnotation, bColor, bIndicator } = normalizeDiffOptions(options);
4195
4182
  const formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options);
4196
4183
  let aDisplay = format(a3, formatOptions);
4197
- let bDisplay = format(b, formatOptions);
4184
+ let bDisplay = format(b2, formatOptions);
4198
4185
  const MAX_LENGTH = 1e5;
4199
4186
  aDisplay = truncate4(aDisplay);
4200
4187
  bDisplay = truncate4(bDisplay);
@@ -4211,21 +4198,21 @@ ${bDiff}`;
4211
4198
  }
4212
4199
  switch (aType) {
4213
4200
  case "string":
4214
- return diffLinesUnified(a3.split("\n"), b.split("\n"), options);
4201
+ return diffLinesUnified(a3.split("\n"), b2.split("\n"), options);
4215
4202
  case "boolean":
4216
4203
  case "number":
4217
- return comparePrimitive(a3, b, options);
4204
+ return comparePrimitive(a3, b2, options);
4218
4205
  case "map":
4219
- return compareObjects(sortMap(a3), sortMap(b), options);
4206
+ return compareObjects(sortMap(a3), sortMap(b2), options);
4220
4207
  case "set":
4221
- return compareObjects(sortSet(a3), sortSet(b), options);
4208
+ return compareObjects(sortSet(a3), sortSet(b2), options);
4222
4209
  default:
4223
- return compareObjects(a3, b, options);
4210
+ return compareObjects(a3, b2, options);
4224
4211
  }
4225
4212
  }
4226
- function comparePrimitive(a3, b, options) {
4213
+ function comparePrimitive(a3, b2, options) {
4227
4214
  const aFormat = format(a3, FORMAT_OPTIONS);
4228
- const bFormat = format(b, FORMAT_OPTIONS);
4215
+ const bFormat = format(b2, FORMAT_OPTIONS);
4229
4216
  return aFormat === bFormat ? "" : diffLinesUnified(aFormat.split("\n"), bFormat.split("\n"), options);
4230
4217
  }
4231
4218
  function sortMap(map2) {
@@ -4234,19 +4221,19 @@ function sortMap(map2) {
4234
4221
  function sortSet(set3) {
4235
4222
  return new Set(Array.from(set3.values()).sort());
4236
4223
  }
4237
- function compareObjects(a3, b, options) {
4224
+ function compareObjects(a3, b2, options) {
4238
4225
  let difference;
4239
4226
  let hasThrown = false;
4240
4227
  try {
4241
4228
  const formatOptions = getFormatOptions(FORMAT_OPTIONS, options);
4242
- difference = getObjectsDifference(a3, b, formatOptions, options);
4229
+ difference = getObjectsDifference(a3, b2, formatOptions, options);
4243
4230
  } catch {
4244
4231
  hasThrown = true;
4245
4232
  }
4246
4233
  const noDiffMessage = getCommonMessage(NO_DIFF_MESSAGE, options);
4247
4234
  if (difference === void 0 || difference === noDiffMessage) {
4248
4235
  const formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options);
4249
- difference = getObjectsDifference(a3, b, formatOptions, options);
4236
+ difference = getObjectsDifference(a3, b2, formatOptions, options);
4250
4237
  if (difference !== noDiffMessage && !hasThrown) {
4251
4238
  difference = `${getCommonMessage(SIMILAR_MESSAGE, options)}
4252
4239
 
@@ -4264,18 +4251,18 @@ function getFormatOptions(formatOptions, options) {
4264
4251
  maxDepth: maxDepth ?? formatOptions.maxDepth
4265
4252
  };
4266
4253
  }
4267
- function getObjectsDifference(a3, b, formatOptions, options) {
4254
+ function getObjectsDifference(a3, b2, formatOptions, options) {
4268
4255
  const formatOptionsZeroIndent = {
4269
4256
  ...formatOptions,
4270
4257
  indent: 0
4271
4258
  };
4272
4259
  const aCompare = format(a3, formatOptionsZeroIndent);
4273
- const bCompare = format(b, formatOptionsZeroIndent);
4260
+ const bCompare = format(b2, formatOptionsZeroIndent);
4274
4261
  if (aCompare === bCompare) {
4275
4262
  return getCommonMessage(NO_DIFF_MESSAGE, options);
4276
4263
  } else {
4277
4264
  const aDisplay = format(a3, formatOptions);
4278
- const bDisplay = format(b, formatOptions);
4265
+ const bDisplay = format(b2, formatOptions);
4279
4266
  return diffLinesUnified2(aDisplay.split("\n"), bDisplay.split("\n"), aCompare.split("\n"), bCompare.split("\n"), options);
4280
4267
  }
4281
4268
  }
@@ -4371,166 +4358,166 @@ function getCommonAndChangedSubstrings(diffs, op, hasCommonDiff2) {
4371
4358
  return diffs.reduce((reduced, diff2) => reduced + (diff2[0] === DIFF_EQUAL ? diff2[1] : diff2[0] === op ? hasCommonDiff2 ? u.inverse(diff2[1]) : diff2[1] : ""), "");
4372
4359
  }
4373
4360
 
4374
- // ../../node_modules/.pnpm/tinyspy@4.0.3/node_modules/tinyspy/dist/index.js
4375
- function assert(condition, message) {
4376
- if (!condition)
4377
- throw new Error(message);
4361
+ // ../../node_modules/.pnpm/tinyspy@4.0.4/node_modules/tinyspy/dist/index.js
4362
+ function S(e, t) {
4363
+ if (!e)
4364
+ throw new Error(t);
4378
4365
  }
4379
- function isType(type3, value) {
4380
- return typeof value === type3;
4366
+ function f2(e, t) {
4367
+ return typeof t === e;
4381
4368
  }
4382
- function isPromise(value) {
4383
- return value instanceof Promise;
4369
+ function w(e) {
4370
+ return e instanceof Promise;
4384
4371
  }
4385
- function define(obj, key, descriptor) {
4386
- Object.defineProperty(obj, key, descriptor);
4372
+ function u2(e, t, r2) {
4373
+ Object.defineProperty(e, t, r2);
4387
4374
  }
4388
- function defineValue(obj, key, value) {
4389
- define(obj, key, { value, configurable: true, writable: true });
4375
+ function l(e, t, r2) {
4376
+ u2(e, t, { value: r2, configurable: true, writable: true });
4390
4377
  }
4391
- var SYMBOL_STATE = Symbol.for("tinyspy:spy");
4392
- var spies = /* @__PURE__ */ new Set();
4393
- var reset = (state) => {
4394
- state.called = false, state.callCount = 0, state.calls = [], state.results = [], state.resolves = [], state.next = [];
4378
+ var y = Symbol.for("tinyspy:spy");
4379
+ var x = /* @__PURE__ */ new Set();
4380
+ var h2 = (e) => {
4381
+ e.called = false, e.callCount = 0, e.calls = [], e.results = [], e.resolves = [], e.next = [];
4395
4382
  };
4396
- var defineState = (spy2) => (define(spy2, SYMBOL_STATE, {
4397
- value: { reset: () => reset(spy2[SYMBOL_STATE]) }
4398
- }), spy2[SYMBOL_STATE]);
4399
- var getInternalState = (spy2) => spy2[SYMBOL_STATE] || defineState(spy2);
4400
- function createInternalSpy(cb) {
4401
- assert(
4402
- isType("function", cb) || isType("undefined", cb),
4383
+ var k = (e) => (u2(e, y, {
4384
+ value: { reset: () => h2(e[y]) }
4385
+ }), e[y]);
4386
+ var T = (e) => e[y] || k(e);
4387
+ function R(e) {
4388
+ S(
4389
+ f2("function", e) || f2("undefined", e),
4403
4390
  "cannot spy on a non-function value"
4404
4391
  );
4405
- let fn2 = function(...args) {
4406
- let state2 = getInternalState(fn2);
4407
- state2.called = true, state2.callCount++, state2.calls.push(args);
4408
- let next = state2.next.shift();
4409
- if (next) {
4410
- state2.results.push(next);
4411
- let [type22, result2] = next;
4412
- if (type22 === "ok")
4413
- return result2;
4414
- throw result2;
4415
- }
4416
- let result, type3 = "ok", resultIndex = state2.results.length;
4417
- if (state2.impl)
4392
+ let t = function(...s2) {
4393
+ let n = T(t);
4394
+ n.called = true, n.callCount++, n.calls.push(s2);
4395
+ let d = n.next.shift();
4396
+ if (d) {
4397
+ n.results.push(d);
4398
+ let [a3, i] = d;
4399
+ if (a3 === "ok")
4400
+ return i;
4401
+ throw i;
4402
+ }
4403
+ let o, c = "ok", p3 = n.results.length;
4404
+ if (n.impl)
4418
4405
  try {
4419
- new.target ? result = Reflect.construct(state2.impl, args, new.target) : result = state2.impl.apply(this, args), type3 = "ok";
4420
- } catch (err) {
4421
- throw result = err, type3 = "error", state2.results.push([type3, err]), err;
4406
+ new.target ? o = Reflect.construct(n.impl, s2, new.target) : o = n.impl.apply(this, s2), c = "ok";
4407
+ } catch (a3) {
4408
+ throw o = a3, c = "error", n.results.push([c, a3]), a3;
4422
4409
  }
4423
- let resultTuple = [type3, result];
4424
- return isPromise(result) && result.then(
4425
- (r2) => state2.resolves[resultIndex] = ["ok", r2],
4426
- (e) => state2.resolves[resultIndex] = ["error", e]
4427
- ), state2.results.push(resultTuple), result;
4410
+ let g = [c, o];
4411
+ return w(o) && o.then(
4412
+ (a3) => n.resolves[p3] = ["ok", a3],
4413
+ (a3) => n.resolves[p3] = ["error", a3]
4414
+ ), n.results.push(g), o;
4428
4415
  };
4429
- defineValue(fn2, "_isMockFunction", true), defineValue(fn2, "length", cb ? cb.length : 0), defineValue(fn2, "name", cb && cb.name || "spy");
4430
- let state = getInternalState(fn2);
4431
- return state.reset(), state.impl = cb, fn2;
4432
- }
4433
- function isMockFunction(obj) {
4434
- return !!obj && obj._isMockFunction === true;
4435
- }
4436
- var getDescriptor = (obj, method) => {
4437
- let objDescriptor = Object.getOwnPropertyDescriptor(obj, method);
4438
- if (objDescriptor)
4439
- return [obj, objDescriptor];
4440
- let currentProto = Object.getPrototypeOf(obj);
4441
- for (; currentProto !== null; ) {
4442
- let descriptor = Object.getOwnPropertyDescriptor(currentProto, method);
4443
- if (descriptor)
4444
- return [currentProto, descriptor];
4445
- currentProto = Object.getPrototypeOf(currentProto);
4416
+ l(t, "_isMockFunction", true), l(t, "length", e ? e.length : 0), l(t, "name", e && e.name || "spy");
4417
+ let r2 = T(t);
4418
+ return r2.reset(), r2.impl = e, t;
4419
+ }
4420
+ function v(e) {
4421
+ return !!e && e._isMockFunction === true;
4422
+ }
4423
+ var b = (e, t) => {
4424
+ let r2 = Object.getOwnPropertyDescriptor(e, t);
4425
+ if (r2)
4426
+ return [e, r2];
4427
+ let s2 = Object.getPrototypeOf(e);
4428
+ for (; s2 !== null; ) {
4429
+ let n = Object.getOwnPropertyDescriptor(s2, t);
4430
+ if (n)
4431
+ return [s2, n];
4432
+ s2 = Object.getPrototypeOf(s2);
4446
4433
  }
4447
4434
  };
4448
- var setPototype = (fn2, val) => {
4449
- val != null && typeof val == "function" && val.prototype != null && Object.setPrototypeOf(fn2.prototype, val.prototype);
4435
+ var P = (e, t) => {
4436
+ t != null && typeof t == "function" && t.prototype != null && Object.setPrototypeOf(e.prototype, t.prototype);
4450
4437
  };
4451
- function internalSpyOn(obj, methodName, mock) {
4452
- assert(
4453
- !isType("undefined", obj),
4438
+ function M(e, t, r2) {
4439
+ S(
4440
+ !f2("undefined", e),
4454
4441
  "spyOn could not find an object to spy upon"
4455
- ), assert(
4456
- isType("object", obj) || isType("function", obj),
4442
+ ), S(
4443
+ f2("object", e) || f2("function", e),
4457
4444
  "cannot spyOn on a primitive value"
4458
4445
  );
4459
- let [accessName, accessType] = (() => {
4460
- if (!isType("object", methodName))
4461
- return [methodName, "value"];
4462
- if ("getter" in methodName && "setter" in methodName)
4446
+ let [s2, n] = (() => {
4447
+ if (!f2("object", t))
4448
+ return [t, "value"];
4449
+ if ("getter" in t && "setter" in t)
4463
4450
  throw new Error("cannot spy on both getter and setter");
4464
- if ("getter" in methodName)
4465
- return [methodName.getter, "get"];
4466
- if ("setter" in methodName)
4467
- return [methodName.setter, "set"];
4451
+ if ("getter" in t)
4452
+ return [t.getter, "get"];
4453
+ if ("setter" in t)
4454
+ return [t.setter, "set"];
4468
4455
  throw new Error("specify getter or setter to spy on");
4469
- })(), [originalDescriptorObject, originalDescriptor] = getDescriptor(obj, accessName) || [];
4470
- assert(
4471
- originalDescriptor || accessName in obj,
4472
- `${String(accessName)} does not exist`
4456
+ })(), [d, o] = b(e, s2) || [];
4457
+ S(
4458
+ o || s2 in e,
4459
+ `${String(s2)} does not exist`
4473
4460
  );
4474
- let ssr = false;
4475
- accessType === "value" && originalDescriptor && !originalDescriptor.value && originalDescriptor.get && (accessType = "get", ssr = true, mock = originalDescriptor.get());
4476
- let original;
4477
- originalDescriptor ? original = originalDescriptor[accessType] : accessType !== "value" ? original = () => obj[accessName] : original = obj[accessName], original && isSpyFunction(original) && (original = original[SYMBOL_STATE].getOriginal());
4478
- let reassign = (cb) => {
4479
- let { value, ...desc } = originalDescriptor || {
4461
+ let c = false;
4462
+ n === "value" && o && !o.value && o.get && (n = "get", c = true, r2 = o.get());
4463
+ let p3;
4464
+ o ? p3 = o[n] : n !== "value" ? p3 = () => e[s2] : p3 = e[s2], p3 && j(p3) && (p3 = p3[y].getOriginal());
4465
+ let g = (I) => {
4466
+ let { value: F, ...O } = o || {
4480
4467
  configurable: true,
4481
4468
  writable: true
4482
4469
  };
4483
- accessType !== "value" && delete desc.writable, desc[accessType] = cb, define(obj, accessName, desc);
4484
- }, restore = () => {
4485
- originalDescriptorObject !== obj ? Reflect.deleteProperty(obj, accessName) : originalDescriptor && !original ? define(obj, accessName, originalDescriptor) : reassign(original);
4470
+ n !== "value" && delete O.writable, O[n] = I, u2(e, s2, O);
4471
+ }, a3 = () => {
4472
+ d !== e ? Reflect.deleteProperty(e, s2) : o && !p3 ? u2(e, s2, o) : g(p3);
4486
4473
  };
4487
- mock || (mock = original);
4488
- let spy2 = wrap(createInternalSpy(mock), mock);
4489
- accessType === "value" && setPototype(spy2, original);
4490
- let state = spy2[SYMBOL_STATE];
4491
- return defineValue(state, "restore", restore), defineValue(state, "getOriginal", () => ssr ? original() : original), defineValue(state, "willCall", (newCb) => (state.impl = newCb, spy2)), reassign(
4492
- ssr ? () => (setPototype(spy2, mock), spy2) : spy2
4493
- ), spies.add(spy2), spy2;
4494
- }
4495
- var ignoreProperties = /* @__PURE__ */ new Set([
4474
+ r2 || (r2 = p3);
4475
+ let i = E(R(r2), r2);
4476
+ n === "value" && P(i, p3);
4477
+ let m2 = i[y];
4478
+ return l(m2, "restore", a3), l(m2, "getOriginal", () => c ? p3() : p3), l(m2, "willCall", (I) => (m2.impl = I, i)), g(
4479
+ c ? () => (P(i, r2), i) : i
4480
+ ), x.add(i), i;
4481
+ }
4482
+ var K = /* @__PURE__ */ new Set([
4496
4483
  "length",
4497
4484
  "name",
4498
4485
  "prototype"
4499
4486
  ]);
4500
- function getAllProperties(original) {
4501
- let properties = /* @__PURE__ */ new Set(), descriptors2 = {};
4502
- for (; original && original !== Object.prototype && original !== Function.prototype; ) {
4503
- let ownProperties = [
4504
- ...Object.getOwnPropertyNames(original),
4505
- ...Object.getOwnPropertySymbols(original)
4487
+ function D(e) {
4488
+ let t = /* @__PURE__ */ new Set(), r2 = {};
4489
+ for (; e && e !== Object.prototype && e !== Function.prototype; ) {
4490
+ let s2 = [
4491
+ ...Object.getOwnPropertyNames(e),
4492
+ ...Object.getOwnPropertySymbols(e)
4506
4493
  ];
4507
- for (let prop of ownProperties)
4508
- descriptors2[prop] || ignoreProperties.has(prop) || (properties.add(prop), descriptors2[prop] = Object.getOwnPropertyDescriptor(original, prop));
4509
- original = Object.getPrototypeOf(original);
4494
+ for (let n of s2)
4495
+ r2[n] || K.has(n) || (t.add(n), r2[n] = Object.getOwnPropertyDescriptor(e, n));
4496
+ e = Object.getPrototypeOf(e);
4510
4497
  }
4511
4498
  return {
4512
- properties,
4513
- descriptors: descriptors2
4499
+ properties: t,
4500
+ descriptors: r2
4514
4501
  };
4515
4502
  }
4516
- function wrap(mock, original) {
4517
- if (!original || // the original is already a spy, so it has all the properties
4518
- SYMBOL_STATE in original)
4519
- return mock;
4520
- let { properties, descriptors: descriptors2 } = getAllProperties(original);
4521
- for (let key of properties) {
4522
- let descriptor = descriptors2[key];
4523
- getDescriptor(mock, key) || define(mock, key, descriptor);
4503
+ function E(e, t) {
4504
+ if (!t || // the original is already a spy, so it has all the properties
4505
+ y in t)
4506
+ return e;
4507
+ let { properties: r2, descriptors: s2 } = D(t);
4508
+ for (let n of r2) {
4509
+ let d = s2[n];
4510
+ b(e, n) || u2(e, n, d);
4524
4511
  }
4525
- return mock;
4512
+ return e;
4526
4513
  }
4527
- function isSpyFunction(obj) {
4528
- return isMockFunction(obj) && "getOriginal" in obj[SYMBOL_STATE];
4514
+ function j(e) {
4515
+ return v(e) && "getOriginal" in e[y];
4529
4516
  }
4530
4517
 
4531
4518
  // ../../node_modules/.pnpm/@vitest+spy@3.2.4/node_modules/@vitest/spy/dist/index.js
4532
4519
  var mocks = /* @__PURE__ */ new Set();
4533
- function isMockFunction2(fn2) {
4520
+ function isMockFunction(fn2) {
4534
4521
  return typeof fn2 === "function" && "_isMockFunction" in fn2 && fn2._isMockFunction;
4535
4522
  }
4536
4523
  function spyOn(obj, method, accessType) {
@@ -4540,13 +4527,13 @@ function spyOn(obj, method, accessType) {
4540
4527
  };
4541
4528
  const objMethod = accessType ? { [dictionary[accessType]]: method } : method;
4542
4529
  let state;
4543
- const descriptor = getDescriptor2(obj, method);
4530
+ const descriptor = getDescriptor(obj, method);
4544
4531
  const fn2 = descriptor && descriptor[accessType || "value"];
4545
- if (isMockFunction2(fn2)) {
4532
+ if (isMockFunction(fn2)) {
4546
4533
  state = fn2.mock._state();
4547
4534
  }
4548
4535
  try {
4549
- const stub = internalSpyOn(obj, objMethod);
4536
+ const stub = M(obj, objMethod);
4550
4537
  const spy = enhanceSpy(stub);
4551
4538
  if (state) {
4552
4539
  spy.mock._state(state);
@@ -4568,7 +4555,7 @@ function enhanceSpy(spy) {
4568
4555
  let instances = [];
4569
4556
  let contexts = [];
4570
4557
  let invocations = [];
4571
- const state = getInternalState(spy);
4558
+ const state = T(spy);
4572
4559
  const mockContext = {
4573
4560
  get calls() {
4574
4561
  return state.calls;
@@ -4666,18 +4653,18 @@ function enhanceSpy(spy) {
4666
4653
  implementation = fn2;
4667
4654
  state.willCall(mockCall);
4668
4655
  implementationChangedTemporarily = true;
4669
- const reset2 = () => {
4656
+ const reset = () => {
4670
4657
  implementation = originalImplementation;
4671
4658
  implementationChangedTemporarily = false;
4672
4659
  };
4673
4660
  const result = cb();
4674
4661
  if (typeof result === "object" && result && typeof result.then === "function") {
4675
4662
  return result.then(() => {
4676
- reset2();
4663
+ reset();
4677
4664
  return stub;
4678
4665
  });
4679
4666
  }
4680
- reset2();
4667
+ reset();
4681
4668
  return stub;
4682
4669
  }
4683
4670
  stub.withImplementation = withImplementation;
@@ -4696,14 +4683,14 @@ function enhanceSpy(spy) {
4696
4683
  return stub;
4697
4684
  }
4698
4685
  function fn(implementation) {
4699
- const enhancedSpy = enhanceSpy(internalSpyOn({ spy: implementation || function() {
4686
+ const enhancedSpy = enhanceSpy(M({ spy: implementation || function() {
4700
4687
  } }, "spy"));
4701
4688
  if (implementation) {
4702
4689
  enhancedSpy.mockImplementation(implementation);
4703
4690
  }
4704
4691
  return enhancedSpy;
4705
4692
  }
4706
- function getDescriptor2(obj, method) {
4693
+ function getDescriptor(obj, method) {
4707
4694
  const objDescriptor = Object.getOwnPropertyDescriptor(obj, method);
4708
4695
  if (objDescriptor) {
4709
4696
  return objDescriptor;
@@ -4721,8 +4708,8 @@ function getDescriptor2(obj, method) {
4721
4708
  // ../../node_modules/.pnpm/@vitest+utils@3.2.4/node_modules/@vitest/utils/dist/error.js
4722
4709
  var IS_RECORD_SYMBOL = "@@__IMMUTABLE_RECORD__@@";
4723
4710
  var IS_COLLECTION_SYMBOL = "@@__IMMUTABLE_ITERABLE__@@";
4724
- function isImmutable(v) {
4725
- return v && (v[IS_COLLECTION_SYMBOL] || v[IS_RECORD_SYMBOL]);
4711
+ function isImmutable(v2) {
4712
+ return v2 && (v2[IS_COLLECTION_SYMBOL] || v2[IS_RECORD_SYMBOL]);
4726
4713
  }
4727
4714
  var OBJECT_PROTO = Object.getPrototypeOf({});
4728
4715
  function getUnserializableMessage(err) {
@@ -4868,13 +4855,13 @@ Inner error message: ${err === null || err === void 0 ? void 0 : err.message}`))
4868
4855
  }
4869
4856
  }
4870
4857
 
4871
- // ../../node_modules/.pnpm/chai@5.2.0/node_modules/chai/chai.js
4858
+ // ../../node_modules/.pnpm/chai@5.3.3/node_modules/chai/index.js
4872
4859
  var chai_exports = {};
4873
4860
  chunkEMMSS5I5_cjs.__export(chai_exports, {
4874
4861
  Assertion: () => Assertion,
4875
4862
  AssertionError: () => AssertionError,
4876
4863
  Should: () => Should,
4877
- assert: () => assert2,
4864
+ assert: () => assert,
4878
4865
  config: () => config,
4879
4866
  expect: () => expect,
4880
4867
  should: () => should,
@@ -4882,19 +4869,11 @@ chunkEMMSS5I5_cjs.__export(chai_exports, {
4882
4869
  util: () => utils_exports
4883
4870
  });
4884
4871
  var __defProp = Object.defineProperty;
4885
- var __getOwnPropNames = Object.getOwnPropertyNames;
4886
4872
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
4887
- var __commonJS2 = (cb, mod) => function __require() {
4888
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
4889
- };
4890
4873
  var __export2 = (target, all) => {
4891
4874
  for (var name in all)
4892
4875
  __defProp(target, name, { get: all[name], enumerable: true });
4893
4876
  };
4894
- var require_util = __commonJS2({
4895
- "(disabled):util"() {
4896
- }
4897
- });
4898
4877
  var utils_exports = {};
4899
4878
  __export2(utils_exports, {
4900
4879
  addChainableMethod: () => addChainableMethod,
@@ -4992,7 +4971,7 @@ function getMessage(errorLike) {
4992
4971
  }
4993
4972
  __name(getMessage, "getMessage");
4994
4973
  function flag(obj, key, value) {
4995
- var flags = obj.__flags || (obj.__flags = /* @__PURE__ */ Object.create(null));
4974
+ let flags = obj.__flags || (obj.__flags = /* @__PURE__ */ Object.create(null));
4996
4975
  if (arguments.length === 3) {
4997
4976
  flags[key] = value;
4998
4977
  } else {
@@ -5001,7 +4980,7 @@ function flag(obj, key, value) {
5001
4980
  }
5002
4981
  __name(flag, "flag");
5003
4982
  function test2(obj, args) {
5004
- var negate = flag(obj, "negate"), expr = args[0];
4983
+ let negate = flag(obj, "negate"), expr = args[0];
5005
4984
  return negate ? !expr : expr;
5006
4985
  }
5007
4986
  __name(test2, "test");
@@ -5055,20 +5034,20 @@ var AssertionError = class _AssertionError extends Error {
5055
5034
  }
5056
5035
  };
5057
5036
  function expectTypes(obj, types) {
5058
- var flagMsg = flag(obj, "message");
5059
- var ssfi = flag(obj, "ssfi");
5037
+ let flagMsg = flag(obj, "message");
5038
+ let ssfi = flag(obj, "ssfi");
5060
5039
  flagMsg = flagMsg ? flagMsg + ": " : "";
5061
5040
  obj = flag(obj, "object");
5062
5041
  types = types.map(function(t) {
5063
5042
  return t.toLowerCase();
5064
5043
  });
5065
5044
  types.sort();
5066
- var str = types.map(function(t, index2) {
5067
- var art = ~["a", "e", "i", "o", "u"].indexOf(t.charAt(0)) ? "an" : "a";
5068
- var or = types.length > 1 && index2 === types.length - 1 ? "or " : "";
5045
+ let str = types.map(function(t, index2) {
5046
+ let art = ~["a", "e", "i", "o", "u"].indexOf(t.charAt(0)) ? "an" : "a";
5047
+ let or = types.length > 1 && index2 === types.length - 1 ? "or " : "";
5069
5048
  return or + art + " " + t;
5070
5049
  }).join(", ");
5071
- var objType = type(obj).toLowerCase();
5050
+ let objType = type(obj).toLowerCase();
5072
5051
  if (!types.some(function(expected) {
5073
5052
  return objType === expected;
5074
5053
  })) {
@@ -5326,10 +5305,8 @@ function mapToEntries2(map2) {
5326
5305
  }
5327
5306
  __name(mapToEntries2, "mapToEntries");
5328
5307
  function inspectMap2(map2, options) {
5329
- const size = map2.size - 1;
5330
- if (size <= 0) {
5308
+ if (map2.size === 0)
5331
5309
  return "Map{}";
5332
- }
5333
5310
  options.truncate -= 7;
5334
5311
  return `Map{ ${inspectList2(mapToEntries2(map2), options, inspectMapEntry2)} }`;
5335
5312
  }
@@ -5410,19 +5387,6 @@ function inspectSymbol2(value) {
5410
5387
  }
5411
5388
  __name(inspectSymbol2, "inspectSymbol");
5412
5389
  var getPromiseValue2 = /* @__PURE__ */ __name(() => "Promise{\u2026}", "getPromiseValue");
5413
- try {
5414
- const { getPromiseDetails, kPending, kRejected } = process.binding("util");
5415
- if (Array.isArray(getPromiseDetails(Promise.resolve()))) {
5416
- getPromiseValue2 = /* @__PURE__ */ __name((value, options) => {
5417
- const [state, innerValue] = getPromiseDetails(value);
5418
- if (state === kPending) {
5419
- return "Promise{<pending>}";
5420
- }
5421
- return `Promise${state === kRejected ? "!" : ""}{${options.inspect(innerValue, options)}}`;
5422
- }, "getPromiseValue");
5423
- }
5424
- } catch (notNode) {
5425
- }
5426
5390
  var promise_default2 = getPromiseValue2;
5427
5391
  function inspectObject3(object2, options) {
5428
5392
  const properties = Object.getOwnPropertyNames(object2);
@@ -5509,10 +5473,21 @@ function inspectAttribute2([key, value], options) {
5509
5473
  return `${options.stylize(String(key), "yellow")}=${options.stylize(`"${value}"`, "string")}`;
5510
5474
  }
5511
5475
  __name(inspectAttribute2, "inspectAttribute");
5512
- function inspectHTMLCollection(collection, options) {
5513
- return inspectList2(collection, options, inspectHTML2, "\n");
5476
+ function inspectNodeCollection2(collection, options) {
5477
+ return inspectList2(collection, options, inspectNode2, "\n");
5478
+ }
5479
+ __name(inspectNodeCollection2, "inspectNodeCollection");
5480
+ function inspectNode2(node, options) {
5481
+ switch (node.nodeType) {
5482
+ case 1:
5483
+ return inspectHTML2(node, options);
5484
+ case 3:
5485
+ return options.inspect(node.data, options);
5486
+ default:
5487
+ return options.inspect(node, options);
5488
+ }
5514
5489
  }
5515
- __name(inspectHTMLCollection, "inspectHTMLCollection");
5490
+ __name(inspectNode2, "inspectNode");
5516
5491
  function inspectHTML2(element, options) {
5517
5492
  const properties = element.getAttributeNames();
5518
5493
  const name = element.tagName.toLowerCase();
@@ -5527,7 +5502,7 @@ function inspectHTML2(element, options) {
5527
5502
  }
5528
5503
  options.truncate -= propertyContents.length;
5529
5504
  const truncate22 = options.truncate;
5530
- let children = inspectHTMLCollection(element.children, options);
5505
+ let children = inspectNodeCollection2(element.children, options);
5531
5506
  if (children && children.length > truncate22) {
5532
5507
  children = `${truncator2}(${element.children.length})`;
5533
5508
  }
@@ -5536,20 +5511,14 @@ function inspectHTML2(element, options) {
5536
5511
  __name(inspectHTML2, "inspectHTML");
5537
5512
  var symbolsSupported2 = typeof Symbol === "function" && typeof Symbol.for === "function";
5538
5513
  var chaiInspect2 = symbolsSupported2 ? Symbol.for("chai/inspect") : "@@chai/inspect";
5539
- var nodeInspect2 = false;
5540
- try {
5541
- const nodeUtil = require_util();
5542
- nodeInspect2 = nodeUtil.inspect ? nodeUtil.inspect.custom : false;
5543
- } catch (noNodeInspect) {
5544
- nodeInspect2 = false;
5545
- }
5514
+ var nodeInspect2 = Symbol.for("nodejs.util.inspect.custom");
5546
5515
  var constructorMap2 = /* @__PURE__ */ new WeakMap();
5547
5516
  var stringTagMap2 = {};
5548
5517
  var baseTypesMap2 = {
5549
- undefined: (value, options) => options.stylize("undefined", "undefined"),
5550
- null: (value, options) => options.stylize("null", "null"),
5551
- boolean: (value, options) => options.stylize(String(value), "boolean"),
5552
- Boolean: (value, options) => options.stylize(String(value), "boolean"),
5518
+ undefined: /* @__PURE__ */ __name((value, options) => options.stylize("undefined", "undefined"), "undefined"),
5519
+ null: /* @__PURE__ */ __name((value, options) => options.stylize("null", "null"), "null"),
5520
+ boolean: /* @__PURE__ */ __name((value, options) => options.stylize(String(value), "boolean"), "boolean"),
5521
+ Boolean: /* @__PURE__ */ __name((value, options) => options.stylize(String(value), "boolean"), "Boolean"),
5553
5522
  number: inspectNumber2,
5554
5523
  Number: inspectNumber2,
5555
5524
  bigint: inspectBigInt2,
@@ -5568,8 +5537,8 @@ var baseTypesMap2 = {
5568
5537
  RegExp: inspectRegExp2,
5569
5538
  Promise: promise_default2,
5570
5539
  // WeakSet, WeakMap are totally opaque to us
5571
- WeakSet: (value, options) => options.stylize("WeakSet{\u2026}", "special"),
5572
- WeakMap: (value, options) => options.stylize("WeakMap{\u2026}", "special"),
5540
+ WeakSet: /* @__PURE__ */ __name((value, options) => options.stylize("WeakSet{\u2026}", "special"), "WeakSet"),
5541
+ WeakMap: /* @__PURE__ */ __name((value, options) => options.stylize("WeakMap{\u2026}", "special"), "WeakMap"),
5573
5542
  Arguments: inspectArguments2,
5574
5543
  Int8Array: inspectTypedArray2,
5575
5544
  Uint8Array: inspectTypedArray2,
@@ -5580,18 +5549,18 @@ var baseTypesMap2 = {
5580
5549
  Uint32Array: inspectTypedArray2,
5581
5550
  Float32Array: inspectTypedArray2,
5582
5551
  Float64Array: inspectTypedArray2,
5583
- Generator: () => "",
5584
- DataView: () => "",
5585
- ArrayBuffer: () => "",
5552
+ Generator: /* @__PURE__ */ __name(() => "", "Generator"),
5553
+ DataView: /* @__PURE__ */ __name(() => "", "DataView"),
5554
+ ArrayBuffer: /* @__PURE__ */ __name(() => "", "ArrayBuffer"),
5586
5555
  Error: inspectObject22,
5587
- HTMLCollection: inspectHTMLCollection,
5588
- NodeList: inspectHTMLCollection
5556
+ HTMLCollection: inspectNodeCollection2,
5557
+ NodeList: inspectNodeCollection2
5589
5558
  };
5590
5559
  var inspectCustom2 = /* @__PURE__ */ __name((value, options, type3) => {
5591
5560
  if (chaiInspect2 in value && typeof value[chaiInspect2] === "function") {
5592
5561
  return value[chaiInspect2](options);
5593
5562
  }
5594
- if (nodeInspect2 && nodeInspect2 in value && typeof value[nodeInspect2] === "function") {
5563
+ if (nodeInspect2 in value && typeof value[nodeInspect2] === "function") {
5595
5564
  return value[nodeInspect2](options.depth, options);
5596
5565
  }
5597
5566
  if ("inspect" in value && typeof value.inspect === "function") {
@@ -5751,7 +5720,7 @@ var config = {
5751
5720
  deepEqual: null
5752
5721
  };
5753
5722
  function inspect22(obj, showHidden, depth, colors) {
5754
- var options = {
5723
+ let options = {
5755
5724
  colors,
5756
5725
  depth: typeof depth === "undefined" ? 2 : depth,
5757
5726
  showHidden,
@@ -5761,14 +5730,14 @@ function inspect22(obj, showHidden, depth, colors) {
5761
5730
  }
5762
5731
  __name(inspect22, "inspect");
5763
5732
  function objDisplay2(obj) {
5764
- var str = inspect22(obj), type3 = Object.prototype.toString.call(obj);
5733
+ let str = inspect22(obj), type3 = Object.prototype.toString.call(obj);
5765
5734
  if (config.truncateThreshold && str.length >= config.truncateThreshold) {
5766
5735
  if (type3 === "[object Function]") {
5767
5736
  return !obj.name || obj.name === "" ? "[Function]" : "[Function: " + obj.name + "]";
5768
5737
  } else if (type3 === "[object Array]") {
5769
5738
  return "[ Array(" + obj.length + ") ]";
5770
5739
  } else if (type3 === "[object Object]") {
5771
- var keys2 = Object.keys(obj), kstr = keys2.length > 2 ? keys2.splice(0, 2).join(", ") + ", ..." : keys2.join(", ");
5740
+ let keys2 = Object.keys(obj), kstr = keys2.length > 2 ? keys2.splice(0, 2).join(", ") + ", ..." : keys2.join(", ");
5772
5741
  return "{ Object (" + kstr + ") }";
5773
5742
  } else {
5774
5743
  return str;
@@ -5779,9 +5748,13 @@ function objDisplay2(obj) {
5779
5748
  }
5780
5749
  __name(objDisplay2, "objDisplay");
5781
5750
  function getMessage2(obj, args) {
5782
- var negate = flag(obj, "negate"), val = flag(obj, "object"), expected = args[3], actual = getActual(obj, args), msg = negate ? args[2] : args[1], flagMsg = flag(obj, "message");
5783
- if (typeof msg === "function")
5784
- msg = msg();
5751
+ let negate = flag(obj, "negate");
5752
+ let val = flag(obj, "object");
5753
+ let expected = args[3];
5754
+ let actual = getActual(obj, args);
5755
+ let msg = negate ? args[2] : args[1];
5756
+ let flagMsg = flag(obj, "message");
5757
+ if (typeof msg === "function") msg = msg();
5785
5758
  msg = msg || "";
5786
5759
  msg = msg.replace(/#\{this\}/g, function() {
5787
5760
  return objDisplay2(val);
@@ -5794,12 +5767,12 @@ function getMessage2(obj, args) {
5794
5767
  }
5795
5768
  __name(getMessage2, "getMessage");
5796
5769
  function transferFlags(assertion, object2, includeAll) {
5797
- var flags = assertion.__flags || (assertion.__flags = /* @__PURE__ */ Object.create(null));
5770
+ let flags = assertion.__flags || (assertion.__flags = /* @__PURE__ */ Object.create(null));
5798
5771
  if (!object2.__flags) {
5799
5772
  object2.__flags = /* @__PURE__ */ Object.create(null);
5800
5773
  }
5801
5774
  includeAll = arguments.length === 3 ? includeAll : true;
5802
- for (var flag3 in flags) {
5775
+ for (let flag3 in flags) {
5803
5776
  if (includeAll || flag3 !== "object" && flag3 !== "ssfi" && flag3 !== "lockSsfi" && flag3 != "message") {
5804
5777
  object2.__flags[flag3] = flags[flag3];
5805
5778
  }
@@ -6187,96 +6160,183 @@ function getPathInfo(obj, path) {
6187
6160
  return info;
6188
6161
  }
6189
6162
  __name(getPathInfo, "getPathInfo");
6190
- function Assertion(obj, msg, ssfi, lockSsfi) {
6191
- flag(this, "ssfi", ssfi || Assertion);
6192
- flag(this, "lockSsfi", lockSsfi);
6193
- flag(this, "object", obj);
6194
- flag(this, "message", msg);
6195
- flag(this, "eql", config.deepEqual || deep_eql_default);
6196
- return proxify(this);
6197
- }
6198
- __name(Assertion, "Assertion");
6199
- Object.defineProperty(Assertion, "includeStack", {
6200
- get: function() {
6163
+ var Assertion = class _Assertion {
6164
+ static {
6165
+ __name(this, "Assertion");
6166
+ }
6167
+ /** @type {{}} */
6168
+ __flags = {};
6169
+ /**
6170
+ * Creates object for chaining.
6171
+ * `Assertion` objects contain metadata in the form of flags. Three flags can
6172
+ * be assigned during instantiation by passing arguments to this constructor:
6173
+ *
6174
+ * - `object`: This flag contains the target of the assertion. For example, in
6175
+ * the assertion `expect(numKittens).to.equal(7);`, the `object` flag will
6176
+ * contain `numKittens` so that the `equal` assertion can reference it when
6177
+ * needed.
6178
+ *
6179
+ * - `message`: This flag contains an optional custom error message to be
6180
+ * prepended to the error message that's generated by the assertion when it
6181
+ * fails.
6182
+ *
6183
+ * - `ssfi`: This flag stands for "start stack function indicator". It
6184
+ * contains a function reference that serves as the starting point for
6185
+ * removing frames from the stack trace of the error that's created by the
6186
+ * assertion when it fails. The goal is to provide a cleaner stack trace to
6187
+ * end users by removing Chai's internal functions. Note that it only works
6188
+ * in environments that support `Error.captureStackTrace`, and only when
6189
+ * `Chai.config.includeStack` hasn't been set to `false`.
6190
+ *
6191
+ * - `lockSsfi`: This flag controls whether or not the given `ssfi` flag
6192
+ * should retain its current value, even as assertions are chained off of
6193
+ * this object. This is usually set to `true` when creating a new assertion
6194
+ * from within another assertion. It's also temporarily set to `true` before
6195
+ * an overwritten assertion gets called by the overwriting assertion.
6196
+ *
6197
+ * - `eql`: This flag contains the deepEqual function to be used by the assertion.
6198
+ *
6199
+ * @param {unknown} obj target of the assertion
6200
+ * @param {string} [msg] (optional) custom error message
6201
+ * @param {Function} [ssfi] (optional) starting point for removing stack frames
6202
+ * @param {boolean} [lockSsfi] (optional) whether or not the ssfi flag is locked
6203
+ */
6204
+ constructor(obj, msg, ssfi, lockSsfi) {
6205
+ flag(this, "ssfi", ssfi || _Assertion);
6206
+ flag(this, "lockSsfi", lockSsfi);
6207
+ flag(this, "object", obj);
6208
+ flag(this, "message", msg);
6209
+ flag(this, "eql", config.deepEqual || deep_eql_default);
6210
+ return proxify(this);
6211
+ }
6212
+ /** @returns {boolean} */
6213
+ static get includeStack() {
6201
6214
  console.warn(
6202
6215
  "Assertion.includeStack is deprecated, use chai.config.includeStack instead."
6203
6216
  );
6204
6217
  return config.includeStack;
6205
- },
6206
- set: function(value) {
6218
+ }
6219
+ /** @param {boolean} value */
6220
+ static set includeStack(value) {
6207
6221
  console.warn(
6208
6222
  "Assertion.includeStack is deprecated, use chai.config.includeStack instead."
6209
6223
  );
6210
6224
  config.includeStack = value;
6211
6225
  }
6212
- });
6213
- Object.defineProperty(Assertion, "showDiff", {
6214
- get: function() {
6226
+ /** @returns {boolean} */
6227
+ static get showDiff() {
6215
6228
  console.warn(
6216
6229
  "Assertion.showDiff is deprecated, use chai.config.showDiff instead."
6217
6230
  );
6218
6231
  return config.showDiff;
6219
- },
6220
- set: function(value) {
6232
+ }
6233
+ /** @param {boolean} value */
6234
+ static set showDiff(value) {
6221
6235
  console.warn(
6222
6236
  "Assertion.showDiff is deprecated, use chai.config.showDiff instead."
6223
6237
  );
6224
6238
  config.showDiff = value;
6225
6239
  }
6226
- });
6227
- Assertion.addProperty = function(name, fn2) {
6228
- addProperty(this.prototype, name, fn2);
6229
- };
6230
- Assertion.addMethod = function(name, fn2) {
6231
- addMethod(this.prototype, name, fn2);
6232
- };
6233
- Assertion.addChainableMethod = function(name, fn2, chainingBehavior) {
6234
- addChainableMethod(this.prototype, name, fn2, chainingBehavior);
6235
- };
6236
- Assertion.overwriteProperty = function(name, fn2) {
6237
- overwriteProperty(this.prototype, name, fn2);
6238
- };
6239
- Assertion.overwriteMethod = function(name, fn2) {
6240
- overwriteMethod(this.prototype, name, fn2);
6241
- };
6242
- Assertion.overwriteChainableMethod = function(name, fn2, chainingBehavior) {
6243
- overwriteChainableMethod(this.prototype, name, fn2, chainingBehavior);
6244
- };
6245
- Assertion.prototype.assert = function(expr, msg, negateMsg, expected, _actual, showDiff) {
6246
- var ok = test2(this, arguments);
6247
- if (false !== showDiff)
6248
- showDiff = true;
6249
- if (void 0 === expected && void 0 === _actual)
6250
- showDiff = false;
6251
- if (true !== config.showDiff)
6252
- showDiff = false;
6253
- if (!ok) {
6254
- msg = getMessage2(this, arguments);
6255
- var actual = getActual(this, arguments);
6256
- var assertionErrorObjectProperties = {
6257
- actual,
6258
- expected,
6259
- showDiff
6260
- };
6261
- var operator = getOperator(this, arguments);
6262
- if (operator) {
6263
- assertionErrorObjectProperties.operator = operator;
6240
+ /**
6241
+ * @param {string} name
6242
+ * @param {Function} fn
6243
+ */
6244
+ static addProperty(name, fn2) {
6245
+ addProperty(this.prototype, name, fn2);
6246
+ }
6247
+ /**
6248
+ * @param {string} name
6249
+ * @param {Function} fn
6250
+ */
6251
+ static addMethod(name, fn2) {
6252
+ addMethod(this.prototype, name, fn2);
6253
+ }
6254
+ /**
6255
+ * @param {string} name
6256
+ * @param {Function} fn
6257
+ * @param {Function} chainingBehavior
6258
+ */
6259
+ static addChainableMethod(name, fn2, chainingBehavior) {
6260
+ addChainableMethod(this.prototype, name, fn2, chainingBehavior);
6261
+ }
6262
+ /**
6263
+ * @param {string} name
6264
+ * @param {Function} fn
6265
+ */
6266
+ static overwriteProperty(name, fn2) {
6267
+ overwriteProperty(this.prototype, name, fn2);
6268
+ }
6269
+ /**
6270
+ * @param {string} name
6271
+ * @param {Function} fn
6272
+ */
6273
+ static overwriteMethod(name, fn2) {
6274
+ overwriteMethod(this.prototype, name, fn2);
6275
+ }
6276
+ /**
6277
+ * @param {string} name
6278
+ * @param {Function} fn
6279
+ * @param {Function} chainingBehavior
6280
+ */
6281
+ static overwriteChainableMethod(name, fn2, chainingBehavior) {
6282
+ overwriteChainableMethod(this.prototype, name, fn2, chainingBehavior);
6283
+ }
6284
+ /**
6285
+ * ### .assert(expression, message, negateMessage, expected, actual, showDiff)
6286
+ *
6287
+ * Executes an expression and check expectations. Throws AssertionError for reporting if test doesn't pass.
6288
+ *
6289
+ * @name assert
6290
+ * @param {unknown} _expr to be tested
6291
+ * @param {string | Function} msg or function that returns message to display if expression fails
6292
+ * @param {string | Function} _negateMsg or function that returns negatedMessage to display if negated expression fails
6293
+ * @param {unknown} expected value (remember to check for negation)
6294
+ * @param {unknown} _actual (optional) will default to `this.obj`
6295
+ * @param {boolean} showDiff (optional) when set to `true`, assert will display a diff in addition to the message if expression fails
6296
+ * @returns {void}
6297
+ */
6298
+ assert(_expr, msg, _negateMsg, expected, _actual, showDiff) {
6299
+ const ok = test2(this, arguments);
6300
+ if (false !== showDiff) showDiff = true;
6301
+ if (void 0 === expected && void 0 === _actual) showDiff = false;
6302
+ if (true !== config.showDiff) showDiff = false;
6303
+ if (!ok) {
6304
+ msg = getMessage2(this, arguments);
6305
+ const actual = getActual(this, arguments);
6306
+ const assertionErrorObjectProperties = {
6307
+ actual,
6308
+ expected,
6309
+ showDiff
6310
+ };
6311
+ const operator = getOperator(this, arguments);
6312
+ if (operator) {
6313
+ assertionErrorObjectProperties.operator = operator;
6314
+ }
6315
+ throw new AssertionError(
6316
+ msg,
6317
+ assertionErrorObjectProperties,
6318
+ // @ts-expect-error Not sure what to do about these types yet
6319
+ config.includeStack ? this.assert : flag(this, "ssfi")
6320
+ );
6264
6321
  }
6265
- throw new AssertionError(
6266
- msg,
6267
- assertionErrorObjectProperties,
6268
- config.includeStack ? this.assert : flag(this, "ssfi")
6269
- );
6270
6322
  }
6271
- };
6272
- Object.defineProperty(Assertion.prototype, "_obj", {
6273
- get: function() {
6323
+ /**
6324
+ * Quick reference to stored `actual` value for plugin developers.
6325
+ *
6326
+ * @returns {unknown}
6327
+ */
6328
+ get _obj() {
6274
6329
  return flag(this, "object");
6275
- },
6276
- set: function(val) {
6330
+ }
6331
+ /**
6332
+ * Quick reference to stored `actual` value for plugin developers.
6333
+ *
6334
+ * @param {unknown} val
6335
+ */
6336
+ set _obj(val) {
6277
6337
  flag(this, "object", val);
6278
6338
  }
6279
- });
6339
+ };
6280
6340
  function isProxyEnabled() {
6281
6341
  return config.useProxy && typeof Proxy !== "undefined" && typeof Reflect !== "undefined";
6282
6342
  }
@@ -6289,10 +6349,9 @@ function addProperty(ctx, name, getter) {
6289
6349
  if (!isProxyEnabled() && !flag(this, "lockSsfi")) {
6290
6350
  flag(this, "ssfi", propertyGetter);
6291
6351
  }
6292
- var result = getter.call(this);
6293
- if (result !== void 0)
6294
- return result;
6295
- var newAssertion = new Assertion();
6352
+ let result = getter.call(this);
6353
+ if (result !== void 0) return result;
6354
+ let newAssertion = new Assertion();
6296
6355
  transferFlags(this, newAssertion);
6297
6356
  return newAssertion;
6298
6357
  }, "propertyGetter"),
@@ -6303,10 +6362,9 @@ __name(addProperty, "addProperty");
6303
6362
  var fnLengthDesc = Object.getOwnPropertyDescriptor(function() {
6304
6363
  }, "length");
6305
6364
  function addLengthGuard(fn2, assertionName, isChainable) {
6306
- if (!fnLengthDesc.configurable)
6307
- return fn2;
6365
+ if (!fnLengthDesc.configurable) return fn2;
6308
6366
  Object.defineProperty(fn2, "length", {
6309
- get: function() {
6367
+ get: /* @__PURE__ */ __name(function() {
6310
6368
  if (isChainable) {
6311
6369
  throw Error(
6312
6370
  "Invalid Chai property: " + assertionName + '.length. Due to a compatibility issue, "length" cannot directly follow "' + assertionName + '". Use "' + assertionName + '.lengthOf" instead.'
@@ -6315,20 +6373,20 @@ function addLengthGuard(fn2, assertionName, isChainable) {
6315
6373
  throw Error(
6316
6374
  "Invalid Chai property: " + assertionName + '.length. See docs for proper usage of "' + assertionName + '".'
6317
6375
  );
6318
- }
6376
+ }, "get")
6319
6377
  });
6320
6378
  return fn2;
6321
6379
  }
6322
6380
  __name(addLengthGuard, "addLengthGuard");
6323
6381
  function getProperties(object2) {
6324
- var result = Object.getOwnPropertyNames(object2);
6382
+ let result = Object.getOwnPropertyNames(object2);
6325
6383
  function addProperty2(property) {
6326
6384
  if (result.indexOf(property) === -1) {
6327
6385
  result.push(property);
6328
6386
  }
6329
6387
  }
6330
6388
  __name(addProperty2, "addProperty");
6331
- var proto = Object.getPrototypeOf(object2);
6389
+ let proto = Object.getPrototypeOf(object2);
6332
6390
  while (proto !== null) {
6333
6391
  Object.getOwnPropertyNames(proto).forEach(addProperty2);
6334
6392
  proto = Object.getPrototypeOf(proto);
@@ -6338,8 +6396,7 @@ function getProperties(object2) {
6338
6396
  __name(getProperties, "getProperties");
6339
6397
  var builtins = ["__flags", "__methods", "_obj", "assert"];
6340
6398
  function proxify(obj, nonChainableMethodName) {
6341
- if (!isProxyEnabled())
6342
- return obj;
6399
+ if (!isProxyEnabled()) return obj;
6343
6400
  return new Proxy(obj, {
6344
6401
  get: /* @__PURE__ */ __name(function proxyGetter(target, property) {
6345
6402
  if (typeof property === "string" && config.proxyExcludedKeys.indexOf(property) === -1 && !Reflect.has(target, property)) {
@@ -6348,15 +6405,15 @@ function proxify(obj, nonChainableMethodName) {
6348
6405
  "Invalid Chai property: " + nonChainableMethodName + "." + property + '. See docs for proper usage of "' + nonChainableMethodName + '".'
6349
6406
  );
6350
6407
  }
6351
- var suggestion = null;
6352
- var suggestionDistance = 4;
6408
+ let suggestion = null;
6409
+ let suggestionDistance = 4;
6353
6410
  getProperties(target).forEach(function(prop) {
6354
6411
  if (
6355
6412
  // we actually mean to check `Object.prototype` here
6356
6413
  // eslint-disable-next-line no-prototype-builtins
6357
6414
  !Object.prototype.hasOwnProperty(prop) && builtins.indexOf(prop) === -1
6358
6415
  ) {
6359
- var dist = stringDistanceCapped(property, prop, suggestionDistance);
6416
+ let dist = stringDistanceCapped(property, prop, suggestionDistance);
6360
6417
  if (dist < suggestionDistance) {
6361
6418
  suggestion = prop;
6362
6419
  suggestionDistance = dist;
@@ -6383,25 +6440,25 @@ function stringDistanceCapped(strA, strB, cap) {
6383
6440
  if (Math.abs(strA.length - strB.length) >= cap) {
6384
6441
  return cap;
6385
6442
  }
6386
- var memo = [];
6443
+ let memo = [];
6387
6444
  for (let i = 0; i <= strA.length; i++) {
6388
6445
  memo[i] = Array(strB.length + 1).fill(0);
6389
6446
  memo[i][0] = i;
6390
6447
  }
6391
- for (let j = 0; j < strB.length; j++) {
6392
- memo[0][j] = j;
6448
+ for (let j2 = 0; j2 < strB.length; j2++) {
6449
+ memo[0][j2] = j2;
6393
6450
  }
6394
6451
  for (let i = 1; i <= strA.length; i++) {
6395
- var ch = strA.charCodeAt(i - 1);
6396
- for (let j = 1; j <= strB.length; j++) {
6397
- if (Math.abs(i - j) >= cap) {
6398
- memo[i][j] = cap;
6452
+ let ch = strA.charCodeAt(i - 1);
6453
+ for (let j2 = 1; j2 <= strB.length; j2++) {
6454
+ if (Math.abs(i - j2) >= cap) {
6455
+ memo[i][j2] = cap;
6399
6456
  continue;
6400
6457
  }
6401
- memo[i][j] = Math.min(
6402
- memo[i - 1][j] + 1,
6403
- memo[i][j - 1] + 1,
6404
- memo[i - 1][j - 1] + (ch === strB.charCodeAt(j - 1) ? 0 : 1)
6458
+ memo[i][j2] = Math.min(
6459
+ memo[i - 1][j2] + 1,
6460
+ memo[i][j2 - 1] + 1,
6461
+ memo[i - 1][j2 - 1] + (ch === strB.charCodeAt(j2 - 1) ? 0 : 1)
6405
6462
  );
6406
6463
  }
6407
6464
  }
@@ -6409,14 +6466,13 @@ function stringDistanceCapped(strA, strB, cap) {
6409
6466
  }
6410
6467
  __name(stringDistanceCapped, "stringDistanceCapped");
6411
6468
  function addMethod(ctx, name, method) {
6412
- var methodWrapper = /* @__PURE__ */ __name(function() {
6469
+ let methodWrapper = /* @__PURE__ */ __name(function() {
6413
6470
  if (!flag(this, "lockSsfi")) {
6414
6471
  flag(this, "ssfi", methodWrapper);
6415
6472
  }
6416
- var result = method.apply(this, arguments);
6417
- if (result !== void 0)
6418
- return result;
6419
- var newAssertion = new Assertion();
6473
+ let result = method.apply(this, arguments);
6474
+ if (result !== void 0) return result;
6475
+ let newAssertion = new Assertion();
6420
6476
  transferFlags(this, newAssertion);
6421
6477
  return newAssertion;
6422
6478
  }, "methodWrapper");
@@ -6425,23 +6481,22 @@ function addMethod(ctx, name, method) {
6425
6481
  }
6426
6482
  __name(addMethod, "addMethod");
6427
6483
  function overwriteProperty(ctx, name, getter) {
6428
- var _get = Object.getOwnPropertyDescriptor(ctx, name), _super = /* @__PURE__ */ __name(function() {
6484
+ let _get = Object.getOwnPropertyDescriptor(ctx, name), _super = /* @__PURE__ */ __name(function() {
6429
6485
  }, "_super");
6430
- if (_get && "function" === typeof _get.get)
6431
- _super = _get.get;
6486
+ if (_get && "function" === typeof _get.get) _super = _get.get;
6432
6487
  Object.defineProperty(ctx, name, {
6433
6488
  get: /* @__PURE__ */ __name(function overwritingPropertyGetter() {
6434
6489
  if (!isProxyEnabled() && !flag(this, "lockSsfi")) {
6435
6490
  flag(this, "ssfi", overwritingPropertyGetter);
6436
6491
  }
6437
- var origLockSsfi = flag(this, "lockSsfi");
6492
+ let origLockSsfi = flag(this, "lockSsfi");
6438
6493
  flag(this, "lockSsfi", true);
6439
- var result = getter(_super).call(this);
6494
+ let result = getter(_super).call(this);
6440
6495
  flag(this, "lockSsfi", origLockSsfi);
6441
6496
  if (result !== void 0) {
6442
6497
  return result;
6443
6498
  }
6444
- var newAssertion = new Assertion();
6499
+ let newAssertion = new Assertion();
6445
6500
  transferFlags(this, newAssertion);
6446
6501
  return newAssertion;
6447
6502
  }, "overwritingPropertyGetter"),
@@ -6450,23 +6505,22 @@ function overwriteProperty(ctx, name, getter) {
6450
6505
  }
6451
6506
  __name(overwriteProperty, "overwriteProperty");
6452
6507
  function overwriteMethod(ctx, name, method) {
6453
- var _method = ctx[name], _super = /* @__PURE__ */ __name(function() {
6508
+ let _method = ctx[name], _super = /* @__PURE__ */ __name(function() {
6454
6509
  throw new Error(name + " is not a function");
6455
6510
  }, "_super");
6456
- if (_method && "function" === typeof _method)
6457
- _super = _method;
6458
- var overwritingMethodWrapper = /* @__PURE__ */ __name(function() {
6511
+ if (_method && "function" === typeof _method) _super = _method;
6512
+ let overwritingMethodWrapper = /* @__PURE__ */ __name(function() {
6459
6513
  if (!flag(this, "lockSsfi")) {
6460
6514
  flag(this, "ssfi", overwritingMethodWrapper);
6461
6515
  }
6462
- var origLockSsfi = flag(this, "lockSsfi");
6516
+ let origLockSsfi = flag(this, "lockSsfi");
6463
6517
  flag(this, "lockSsfi", true);
6464
- var result = method(_super).apply(this, arguments);
6518
+ let result = method(_super).apply(this, arguments);
6465
6519
  flag(this, "lockSsfi", origLockSsfi);
6466
6520
  if (result !== void 0) {
6467
6521
  return result;
6468
6522
  }
6469
- var newAssertion = new Assertion();
6523
+ let newAssertion = new Assertion();
6470
6524
  transferFlags(this, newAssertion);
6471
6525
  return newAssertion;
6472
6526
  }, "overwritingMethodWrapper");
@@ -6478,9 +6532,8 @@ var canSetPrototype = typeof Object.setPrototypeOf === "function";
6478
6532
  var testFn = /* @__PURE__ */ __name(function() {
6479
6533
  }, "testFn");
6480
6534
  var excludeNames = Object.getOwnPropertyNames(testFn).filter(function(name) {
6481
- var propDesc = Object.getOwnPropertyDescriptor(testFn, name);
6482
- if (typeof propDesc !== "object")
6483
- return true;
6535
+ let propDesc = Object.getOwnPropertyDescriptor(testFn, name);
6536
+ if (typeof propDesc !== "object") return true;
6484
6537
  return !propDesc.configurable;
6485
6538
  });
6486
6539
  var call = Function.prototype.call;
@@ -6490,7 +6543,7 @@ function addChainableMethod(ctx, name, method, chainingBehavior) {
6490
6543
  chainingBehavior = /* @__PURE__ */ __name(function() {
6491
6544
  }, "chainingBehavior");
6492
6545
  }
6493
- var chainableBehavior = {
6546
+ let chainableBehavior = {
6494
6547
  method,
6495
6548
  chainingBehavior
6496
6549
  };
@@ -6501,31 +6554,31 @@ function addChainableMethod(ctx, name, method, chainingBehavior) {
6501
6554
  Object.defineProperty(ctx, name, {
6502
6555
  get: /* @__PURE__ */ __name(function chainableMethodGetter() {
6503
6556
  chainableBehavior.chainingBehavior.call(this);
6504
- var chainableMethodWrapper = /* @__PURE__ */ __name(function() {
6557
+ let chainableMethodWrapper = /* @__PURE__ */ __name(function() {
6505
6558
  if (!flag(this, "lockSsfi")) {
6506
6559
  flag(this, "ssfi", chainableMethodWrapper);
6507
6560
  }
6508
- var result = chainableBehavior.method.apply(this, arguments);
6561
+ let result = chainableBehavior.method.apply(this, arguments);
6509
6562
  if (result !== void 0) {
6510
6563
  return result;
6511
6564
  }
6512
- var newAssertion = new Assertion();
6565
+ let newAssertion = new Assertion();
6513
6566
  transferFlags(this, newAssertion);
6514
6567
  return newAssertion;
6515
6568
  }, "chainableMethodWrapper");
6516
6569
  addLengthGuard(chainableMethodWrapper, name, true);
6517
6570
  if (canSetPrototype) {
6518
- var prototype = Object.create(this);
6571
+ let prototype = Object.create(this);
6519
6572
  prototype.call = call;
6520
6573
  prototype.apply = apply;
6521
6574
  Object.setPrototypeOf(chainableMethodWrapper, prototype);
6522
6575
  } else {
6523
- var asserterNames = Object.getOwnPropertyNames(ctx);
6576
+ let asserterNames = Object.getOwnPropertyNames(ctx);
6524
6577
  asserterNames.forEach(function(asserterName) {
6525
6578
  if (excludeNames.indexOf(asserterName) !== -1) {
6526
6579
  return;
6527
6580
  }
6528
- var pd = Object.getOwnPropertyDescriptor(ctx, asserterName);
6581
+ let pd = Object.getOwnPropertyDescriptor(ctx, asserterName);
6529
6582
  Object.defineProperty(chainableMethodWrapper, asserterName, pd);
6530
6583
  });
6531
6584
  }
@@ -6537,36 +6590,35 @@ function addChainableMethod(ctx, name, method, chainingBehavior) {
6537
6590
  }
6538
6591
  __name(addChainableMethod, "addChainableMethod");
6539
6592
  function overwriteChainableMethod(ctx, name, method, chainingBehavior) {
6540
- var chainableBehavior = ctx.__methods[name];
6541
- var _chainingBehavior = chainableBehavior.chainingBehavior;
6593
+ let chainableBehavior = ctx.__methods[name];
6594
+ let _chainingBehavior = chainableBehavior.chainingBehavior;
6542
6595
  chainableBehavior.chainingBehavior = /* @__PURE__ */ __name(function overwritingChainableMethodGetter() {
6543
- var result = chainingBehavior(_chainingBehavior).call(this);
6596
+ let result = chainingBehavior(_chainingBehavior).call(this);
6544
6597
  if (result !== void 0) {
6545
6598
  return result;
6546
6599
  }
6547
- var newAssertion = new Assertion();
6600
+ let newAssertion = new Assertion();
6548
6601
  transferFlags(this, newAssertion);
6549
6602
  return newAssertion;
6550
6603
  }, "overwritingChainableMethodGetter");
6551
- var _method = chainableBehavior.method;
6604
+ let _method = chainableBehavior.method;
6552
6605
  chainableBehavior.method = /* @__PURE__ */ __name(function overwritingChainableMethodWrapper() {
6553
- var result = method(_method).apply(this, arguments);
6606
+ let result = method(_method).apply(this, arguments);
6554
6607
  if (result !== void 0) {
6555
6608
  return result;
6556
6609
  }
6557
- var newAssertion = new Assertion();
6610
+ let newAssertion = new Assertion();
6558
6611
  transferFlags(this, newAssertion);
6559
6612
  return newAssertion;
6560
6613
  }, "overwritingChainableMethodWrapper");
6561
6614
  }
6562
6615
  __name(overwriteChainableMethod, "overwriteChainableMethod");
6563
- function compareByInspect(a3, b) {
6564
- return inspect22(a3) < inspect22(b) ? -1 : 1;
6616
+ function compareByInspect(a3, b2) {
6617
+ return inspect22(a3) < inspect22(b2) ? -1 : 1;
6565
6618
  }
6566
6619
  __name(compareByInspect, "compareByInspect");
6567
6620
  function getOwnEnumerablePropertySymbols(obj) {
6568
- if (typeof Object.getOwnPropertySymbols !== "function")
6569
- return [];
6621
+ if (typeof Object.getOwnPropertySymbols !== "function") return [];
6570
6622
  return Object.getOwnPropertySymbols(obj).filter(function(sym) {
6571
6623
  return Object.getOwnPropertyDescriptor(obj, sym).enumerable;
6572
6624
  });
@@ -6578,21 +6630,20 @@ function getOwnEnumerableProperties(obj) {
6578
6630
  __name(getOwnEnumerableProperties, "getOwnEnumerableProperties");
6579
6631
  var isNaN22 = Number.isNaN;
6580
6632
  function isObjectType(obj) {
6581
- var objectType = type(obj);
6582
- var objectTypes = ["Array", "Object", "Function"];
6633
+ let objectType = type(obj);
6634
+ let objectTypes = ["Array", "Object", "Function"];
6583
6635
  return objectTypes.indexOf(objectType) !== -1;
6584
6636
  }
6585
6637
  __name(isObjectType, "isObjectType");
6586
6638
  function getOperator(obj, args) {
6587
- var operator = flag(obj, "operator");
6588
- var negate = flag(obj, "negate");
6589
- var expected = args[3];
6590
- var msg = negate ? args[2] : args[1];
6639
+ let operator = flag(obj, "operator");
6640
+ let negate = flag(obj, "negate");
6641
+ let expected = args[3];
6642
+ let msg = negate ? args[2] : args[1];
6591
6643
  if (operator) {
6592
6644
  return operator;
6593
6645
  }
6594
- if (typeof msg === "function")
6595
- msg = msg();
6646
+ if (typeof msg === "function") msg = msg();
6596
6647
  msg = msg || "";
6597
6648
  if (!msg) {
6598
6649
  return void 0;
@@ -6600,7 +6651,7 @@ function getOperator(obj, args) {
6600
6651
  if (/\shave\s/.test(msg)) {
6601
6652
  return void 0;
6602
6653
  }
6603
- var isObject3 = isObjectType(expected);
6654
+ let isObject3 = isObjectType(expected);
6604
6655
  if (/\snot\s/.test(msg)) {
6605
6656
  return isObject3 ? "notDeepStrictEqual" : "notStrictEqual";
6606
6657
  }
@@ -6676,10 +6727,9 @@ var functionTypes = {
6676
6727
  asyncgeneratorfunction: ["asyncgeneratorfunction"]
6677
6728
  };
6678
6729
  function an(type3, msg) {
6679
- if (msg)
6680
- flag2(this, "message", msg);
6730
+ if (msg) flag2(this, "message", msg);
6681
6731
  type3 = type3.toLowerCase();
6682
- var obj = flag2(this, "object"), article = ~["a", "e", "i", "o", "u"].indexOf(type3.charAt(0)) ? "an " : "a ";
6732
+ let obj = flag2(this, "object"), article = ~["a", "e", "i", "o", "u"].indexOf(type3.charAt(0)) ? "an " : "a ";
6683
6733
  const detectedType = type(obj).toLowerCase();
6684
6734
  if (functionTypes["function"].includes(type3)) {
6685
6735
  this.assert(
@@ -6698,8 +6748,8 @@ function an(type3, msg) {
6698
6748
  __name(an, "an");
6699
6749
  Assertion.addChainableMethod("an", an);
6700
6750
  Assertion.addChainableMethod("a", an);
6701
- function SameValueZero(a3, b) {
6702
- return isNaN22(a3) && isNaN22(b) || a3 === b;
6751
+ function SameValueZero(a3, b2) {
6752
+ return isNaN22(a3) && isNaN22(b2) || a3 === b2;
6703
6753
  }
6704
6754
  __name(SameValueZero, "SameValueZero");
6705
6755
  function includeChainingBehavior() {
@@ -6707,11 +6757,10 @@ function includeChainingBehavior() {
6707
6757
  }
6708
6758
  __name(includeChainingBehavior, "includeChainingBehavior");
6709
6759
  function include(val, msg) {
6710
- if (msg)
6711
- flag2(this, "message", msg);
6712
- var obj = flag2(this, "object"), objType = type(obj).toLowerCase(), flagMsg = flag2(this, "message"), negate = flag2(this, "negate"), ssfi = flag2(this, "ssfi"), isDeep = flag2(this, "deep"), descriptor = isDeep ? "deep " : "", isEql = isDeep ? flag2(this, "eql") : SameValueZero;
6760
+ if (msg) flag2(this, "message", msg);
6761
+ let obj = flag2(this, "object"), objType = type(obj).toLowerCase(), flagMsg = flag2(this, "message"), negate = flag2(this, "negate"), ssfi = flag2(this, "ssfi"), isDeep = flag2(this, "deep"), descriptor = isDeep ? "deep " : "", isEql = isDeep ? flag2(this, "eql") : SameValueZero;
6713
6762
  flagMsg = flagMsg ? flagMsg + ": " : "";
6714
- var included = false;
6763
+ let included = false;
6715
6764
  switch (objType) {
6716
6765
  case "string":
6717
6766
  included = obj.indexOf(val) !== -1;
@@ -6749,7 +6798,7 @@ function include(val, msg) {
6749
6798
  included = obj.indexOf(val) !== -1;
6750
6799
  }
6751
6800
  break;
6752
- default:
6801
+ default: {
6753
6802
  if (val !== Object(val)) {
6754
6803
  throw new AssertionError(
6755
6804
  flagMsg + "the given combination of arguments (" + objType + " and " + type(val).toLowerCase() + ") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a " + type(val).toLowerCase(),
@@ -6757,9 +6806,11 @@ function include(val, msg) {
6757
6806
  ssfi
6758
6807
  );
6759
6808
  }
6760
- var props = Object.keys(val), firstErr = null, numErrs = 0;
6809
+ let props = Object.keys(val);
6810
+ let firstErr = null;
6811
+ let numErrs = 0;
6761
6812
  props.forEach(function(prop) {
6762
- var propAssertion = new Assertion(obj);
6813
+ let propAssertion = new Assertion(obj);
6763
6814
  transferFlags(this, propAssertion, true);
6764
6815
  flag2(propAssertion, "lockSsfi", true);
6765
6816
  if (!negate || props.length === 1) {
@@ -6772,8 +6823,7 @@ function include(val, msg) {
6772
6823
  if (!check_error_exports.compatibleConstructor(err, AssertionError)) {
6773
6824
  throw err;
6774
6825
  }
6775
- if (firstErr === null)
6776
- firstErr = err;
6826
+ if (firstErr === null) firstErr = err;
6777
6827
  numErrs++;
6778
6828
  }
6779
6829
  }, this);
@@ -6781,6 +6831,7 @@ function include(val, msg) {
6781
6831
  throw firstErr;
6782
6832
  }
6783
6833
  return;
6834
+ }
6784
6835
  }
6785
6836
  this.assert(
6786
6837
  included,
@@ -6864,7 +6915,7 @@ Assertion.addProperty("NaN", function() {
6864
6915
  );
6865
6916
  });
6866
6917
  function assertExist() {
6867
- var val = flag2(this, "object");
6918
+ let val = flag2(this, "object");
6868
6919
  this.assert(
6869
6920
  val !== null && val !== void 0,
6870
6921
  "expected #{this} to exist",
@@ -6875,7 +6926,7 @@ __name(assertExist, "assertExist");
6875
6926
  Assertion.addProperty("exist", assertExist);
6876
6927
  Assertion.addProperty("exists", assertExist);
6877
6928
  Assertion.addProperty("empty", function() {
6878
- var val = flag2(this, "object"), ssfi = flag2(this, "ssfi"), flagMsg = flag2(this, "message"), itemsCount;
6929
+ let val = flag2(this, "object"), ssfi = flag2(this, "ssfi"), flagMsg = flag2(this, "message"), itemsCount;
6879
6930
  flagMsg = flagMsg ? flagMsg + ": " : "";
6880
6931
  switch (type(val).toLowerCase()) {
6881
6932
  case "array":
@@ -6893,9 +6944,10 @@ Assertion.addProperty("empty", function() {
6893
6944
  void 0,
6894
6945
  ssfi
6895
6946
  );
6896
- case "function":
6897
- var msg = flagMsg + ".empty was passed a function " + getName(val);
6947
+ case "function": {
6948
+ const msg = flagMsg + ".empty was passed a function " + getName(val);
6898
6949
  throw new AssertionError(msg.trim(), void 0, ssfi);
6950
+ }
6899
6951
  default:
6900
6952
  if (val !== Object(val)) {
6901
6953
  throw new AssertionError(
@@ -6913,7 +6965,7 @@ Assertion.addProperty("empty", function() {
6913
6965
  );
6914
6966
  });
6915
6967
  function checkArguments() {
6916
- var obj = flag2(this, "object"), type3 = type(obj);
6968
+ let obj = flag2(this, "object"), type3 = type(obj);
6917
6969
  this.assert(
6918
6970
  "Arguments" === type3,
6919
6971
  "expected #{this} to be arguments but got " + type3,
@@ -6924,11 +6976,10 @@ __name(checkArguments, "checkArguments");
6924
6976
  Assertion.addProperty("arguments", checkArguments);
6925
6977
  Assertion.addProperty("Arguments", checkArguments);
6926
6978
  function assertEqual(val, msg) {
6927
- if (msg)
6928
- flag2(this, "message", msg);
6929
- var obj = flag2(this, "object");
6979
+ if (msg) flag2(this, "message", msg);
6980
+ let obj = flag2(this, "object");
6930
6981
  if (flag2(this, "deep")) {
6931
- var prevLockSsfi = flag2(this, "lockSsfi");
6982
+ let prevLockSsfi = flag2(this, "lockSsfi");
6932
6983
  flag2(this, "lockSsfi", true);
6933
6984
  this.eql(val);
6934
6985
  flag2(this, "lockSsfi", prevLockSsfi);
@@ -6948,9 +6999,8 @@ Assertion.addMethod("equal", assertEqual);
6948
6999
  Assertion.addMethod("equals", assertEqual);
6949
7000
  Assertion.addMethod("eq", assertEqual);
6950
7001
  function assertEql(obj, msg) {
6951
- if (msg)
6952
- flag2(this, "message", msg);
6953
- var eql = flag2(this, "eql");
7002
+ if (msg) flag2(this, "message", msg);
7003
+ let eql = flag2(this, "eql");
6954
7004
  this.assert(
6955
7005
  eql(obj, flag2(this, "object")),
6956
7006
  "expected #{this} to deeply equal #{exp}",
@@ -6964,9 +7014,8 @@ __name(assertEql, "assertEql");
6964
7014
  Assertion.addMethod("eql", assertEql);
6965
7015
  Assertion.addMethod("eqls", assertEql);
6966
7016
  function assertAbove(n, msg) {
6967
- if (msg)
6968
- flag2(this, "message", msg);
6969
- var obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase();
7017
+ if (msg) flag2(this, "message", msg);
7018
+ let obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase();
6970
7019
  if (doLength && objType !== "map" && objType !== "set") {
6971
7020
  new Assertion(obj, flagMsg, ssfi, true).to.have.property("length");
6972
7021
  }
@@ -6983,7 +7032,7 @@ function assertAbove(n, msg) {
6983
7032
  ssfi
6984
7033
  );
6985
7034
  } else if (!doLength && objType !== "date" && !isNumeric(obj)) {
6986
- var printObj = objType === "string" ? "'" + obj + "'" : obj;
7035
+ let printObj = objType === "string" ? "'" + obj + "'" : obj;
6987
7036
  throw new AssertionError(
6988
7037
  msgPrefix + "expected " + printObj + " to be a number or a date",
6989
7038
  void 0,
@@ -6991,7 +7040,7 @@ function assertAbove(n, msg) {
6991
7040
  );
6992
7041
  }
6993
7042
  if (doLength) {
6994
- var descriptor = "length", itemsCount;
7043
+ let descriptor = "length", itemsCount;
6995
7044
  if (objType === "map" || objType === "set") {
6996
7045
  descriptor = "size";
6997
7046
  itemsCount = obj.size;
@@ -7019,9 +7068,8 @@ Assertion.addMethod("above", assertAbove);
7019
7068
  Assertion.addMethod("gt", assertAbove);
7020
7069
  Assertion.addMethod("greaterThan", assertAbove);
7021
7070
  function assertLeast(n, msg) {
7022
- if (msg)
7023
- flag2(this, "message", msg);
7024
- var obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase(), errorMessage, shouldThrow = true;
7071
+ if (msg) flag2(this, "message", msg);
7072
+ let obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase(), errorMessage, shouldThrow = true;
7025
7073
  if (doLength && objType !== "map" && objType !== "set") {
7026
7074
  new Assertion(obj, flagMsg, ssfi, true).to.have.property("length");
7027
7075
  }
@@ -7030,7 +7078,7 @@ function assertLeast(n, msg) {
7030
7078
  } else if (!isNumeric(n) && (doLength || isNumeric(obj))) {
7031
7079
  errorMessage = msgPrefix + "the argument to least must be a number";
7032
7080
  } else if (!doLength && objType !== "date" && !isNumeric(obj)) {
7033
- var printObj = objType === "string" ? "'" + obj + "'" : obj;
7081
+ let printObj = objType === "string" ? "'" + obj + "'" : obj;
7034
7082
  errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date";
7035
7083
  } else {
7036
7084
  shouldThrow = false;
@@ -7039,7 +7087,7 @@ function assertLeast(n, msg) {
7039
7087
  throw new AssertionError(errorMessage, void 0, ssfi);
7040
7088
  }
7041
7089
  if (doLength) {
7042
- var descriptor = "length", itemsCount;
7090
+ let descriptor = "length", itemsCount;
7043
7091
  if (objType === "map" || objType === "set") {
7044
7092
  descriptor = "size";
7045
7093
  itemsCount = obj.size;
@@ -7067,9 +7115,8 @@ Assertion.addMethod("least", assertLeast);
7067
7115
  Assertion.addMethod("gte", assertLeast);
7068
7116
  Assertion.addMethod("greaterThanOrEqual", assertLeast);
7069
7117
  function assertBelow(n, msg) {
7070
- if (msg)
7071
- flag2(this, "message", msg);
7072
- var obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase(), errorMessage, shouldThrow = true;
7118
+ if (msg) flag2(this, "message", msg);
7119
+ let obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase(), errorMessage, shouldThrow = true;
7073
7120
  if (doLength && objType !== "map" && objType !== "set") {
7074
7121
  new Assertion(obj, flagMsg, ssfi, true).to.have.property("length");
7075
7122
  }
@@ -7078,7 +7125,7 @@ function assertBelow(n, msg) {
7078
7125
  } else if (!isNumeric(n) && (doLength || isNumeric(obj))) {
7079
7126
  errorMessage = msgPrefix + "the argument to below must be a number";
7080
7127
  } else if (!doLength && objType !== "date" && !isNumeric(obj)) {
7081
- var printObj = objType === "string" ? "'" + obj + "'" : obj;
7128
+ let printObj = objType === "string" ? "'" + obj + "'" : obj;
7082
7129
  errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date";
7083
7130
  } else {
7084
7131
  shouldThrow = false;
@@ -7087,7 +7134,7 @@ function assertBelow(n, msg) {
7087
7134
  throw new AssertionError(errorMessage, void 0, ssfi);
7088
7135
  }
7089
7136
  if (doLength) {
7090
- var descriptor = "length", itemsCount;
7137
+ let descriptor = "length", itemsCount;
7091
7138
  if (objType === "map" || objType === "set") {
7092
7139
  descriptor = "size";
7093
7140
  itemsCount = obj.size;
@@ -7115,9 +7162,8 @@ Assertion.addMethod("below", assertBelow);
7115
7162
  Assertion.addMethod("lt", assertBelow);
7116
7163
  Assertion.addMethod("lessThan", assertBelow);
7117
7164
  function assertMost(n, msg) {
7118
- if (msg)
7119
- flag2(this, "message", msg);
7120
- var obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase(), errorMessage, shouldThrow = true;
7165
+ if (msg) flag2(this, "message", msg);
7166
+ let obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase(), errorMessage, shouldThrow = true;
7121
7167
  if (doLength && objType !== "map" && objType !== "set") {
7122
7168
  new Assertion(obj, flagMsg, ssfi, true).to.have.property("length");
7123
7169
  }
@@ -7126,7 +7172,7 @@ function assertMost(n, msg) {
7126
7172
  } else if (!isNumeric(n) && (doLength || isNumeric(obj))) {
7127
7173
  errorMessage = msgPrefix + "the argument to most must be a number";
7128
7174
  } else if (!doLength && objType !== "date" && !isNumeric(obj)) {
7129
- var printObj = objType === "string" ? "'" + obj + "'" : obj;
7175
+ let printObj = objType === "string" ? "'" + obj + "'" : obj;
7130
7176
  errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date";
7131
7177
  } else {
7132
7178
  shouldThrow = false;
@@ -7135,7 +7181,7 @@ function assertMost(n, msg) {
7135
7181
  throw new AssertionError(errorMessage, void 0, ssfi);
7136
7182
  }
7137
7183
  if (doLength) {
7138
- var descriptor = "length", itemsCount;
7184
+ let descriptor = "length", itemsCount;
7139
7185
  if (objType === "map" || objType === "set") {
7140
7186
  descriptor = "size";
7141
7187
  itemsCount = obj.size;
@@ -7163,9 +7209,8 @@ Assertion.addMethod("most", assertMost);
7163
7209
  Assertion.addMethod("lte", assertMost);
7164
7210
  Assertion.addMethod("lessThanOrEqual", assertMost);
7165
7211
  Assertion.addMethod("within", function(start, finish, msg) {
7166
- if (msg)
7167
- flag2(this, "message", msg);
7168
- var obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), startType = type(start).toLowerCase(), finishType = type(finish).toLowerCase(), errorMessage, shouldThrow = true, range = startType === "date" && finishType === "date" ? start.toISOString() + ".." + finish.toISOString() : start + ".." + finish;
7212
+ if (msg) flag2(this, "message", msg);
7213
+ let obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), startType = type(start).toLowerCase(), finishType = type(finish).toLowerCase(), errorMessage, shouldThrow = true, range = startType === "date" && finishType === "date" ? start.toISOString() + ".." + finish.toISOString() : start + ".." + finish;
7169
7214
  if (doLength && objType !== "map" && objType !== "set") {
7170
7215
  new Assertion(obj, flagMsg, ssfi, true).to.have.property("length");
7171
7216
  }
@@ -7174,7 +7219,7 @@ Assertion.addMethod("within", function(start, finish, msg) {
7174
7219
  } else if ((!isNumeric(start) || !isNumeric(finish)) && (doLength || isNumeric(obj))) {
7175
7220
  errorMessage = msgPrefix + "the arguments to within must be numbers";
7176
7221
  } else if (!doLength && objType !== "date" && !isNumeric(obj)) {
7177
- var printObj = objType === "string" ? "'" + obj + "'" : obj;
7222
+ let printObj = objType === "string" ? "'" + obj + "'" : obj;
7178
7223
  errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date";
7179
7224
  } else {
7180
7225
  shouldThrow = false;
@@ -7183,7 +7228,7 @@ Assertion.addMethod("within", function(start, finish, msg) {
7183
7228
  throw new AssertionError(errorMessage, void 0, ssfi);
7184
7229
  }
7185
7230
  if (doLength) {
7186
- var descriptor = "length", itemsCount;
7231
+ let descriptor = "length", itemsCount;
7187
7232
  if (objType === "map" || objType === "set") {
7188
7233
  descriptor = "size";
7189
7234
  itemsCount = obj.size;
@@ -7204,13 +7249,13 @@ Assertion.addMethod("within", function(start, finish, msg) {
7204
7249
  }
7205
7250
  });
7206
7251
  function assertInstanceOf(constructor, msg) {
7207
- if (msg)
7208
- flag2(this, "message", msg);
7209
- var target = flag2(this, "object");
7210
- var ssfi = flag2(this, "ssfi");
7211
- var flagMsg = flag2(this, "message");
7252
+ if (msg) flag2(this, "message", msg);
7253
+ let target = flag2(this, "object");
7254
+ let ssfi = flag2(this, "ssfi");
7255
+ let flagMsg = flag2(this, "message");
7256
+ let isInstanceOf;
7212
7257
  try {
7213
- var isInstanceOf = target instanceof constructor;
7258
+ isInstanceOf = target instanceof constructor;
7214
7259
  } catch (err) {
7215
7260
  if (err instanceof TypeError) {
7216
7261
  flagMsg = flagMsg ? flagMsg + ": " : "";
@@ -7222,7 +7267,7 @@ function assertInstanceOf(constructor, msg) {
7222
7267
  }
7223
7268
  throw err;
7224
7269
  }
7225
- var name = getName(constructor);
7270
+ let name = getName(constructor);
7226
7271
  if (name == null) {
7227
7272
  name = "an unnamed constructor";
7228
7273
  }
@@ -7236,9 +7281,8 @@ __name(assertInstanceOf, "assertInstanceOf");
7236
7281
  Assertion.addMethod("instanceof", assertInstanceOf);
7237
7282
  Assertion.addMethod("instanceOf", assertInstanceOf);
7238
7283
  function assertProperty(name, val, msg) {
7239
- if (msg)
7240
- flag2(this, "message", msg);
7241
- var isNested = flag2(this, "nested"), isOwn = flag2(this, "own"), flagMsg = flag2(this, "message"), obj = flag2(this, "object"), ssfi = flag2(this, "ssfi"), nameType = typeof name;
7284
+ if (msg) flag2(this, "message", msg);
7285
+ let isNested = flag2(this, "nested"), isOwn = flag2(this, "own"), flagMsg = flag2(this, "message"), obj = flag2(this, "object"), ssfi = flag2(this, "ssfi"), nameType = typeof name;
7242
7286
  flagMsg = flagMsg ? flagMsg + ": " : "";
7243
7287
  if (isNested) {
7244
7288
  if (nameType !== "string") {
@@ -7271,22 +7315,16 @@ function assertProperty(name, val, msg) {
7271
7315
  ssfi
7272
7316
  );
7273
7317
  }
7274
- var isDeep = flag2(this, "deep"), negate = flag2(this, "negate"), pathInfo = isNested ? getPathInfo(obj, name) : null, value = isNested ? pathInfo.value : obj[name], isEql = isDeep ? flag2(this, "eql") : (val1, val2) => val1 === val2;
7275
- var descriptor = "";
7276
- if (isDeep)
7277
- descriptor += "deep ";
7278
- if (isOwn)
7279
- descriptor += "own ";
7280
- if (isNested)
7281
- descriptor += "nested ";
7318
+ let isDeep = flag2(this, "deep"), negate = flag2(this, "negate"), pathInfo = isNested ? getPathInfo(obj, name) : null, value = isNested ? pathInfo.value : obj[name], isEql = isDeep ? flag2(this, "eql") : (val1, val2) => val1 === val2;
7319
+ let descriptor = "";
7320
+ if (isDeep) descriptor += "deep ";
7321
+ if (isOwn) descriptor += "own ";
7322
+ if (isNested) descriptor += "nested ";
7282
7323
  descriptor += "property ";
7283
- var hasProperty2;
7284
- if (isOwn)
7285
- hasProperty2 = Object.prototype.hasOwnProperty.call(obj, name);
7286
- else if (isNested)
7287
- hasProperty2 = pathInfo.exists;
7288
- else
7289
- hasProperty2 = hasProperty(obj, name);
7324
+ let hasProperty2;
7325
+ if (isOwn) hasProperty2 = Object.prototype.hasOwnProperty.call(obj, name);
7326
+ else if (isNested) hasProperty2 = pathInfo.exists;
7327
+ else hasProperty2 = hasProperty(obj, name);
7290
7328
  if (!negate || arguments.length === 1) {
7291
7329
  this.assert(
7292
7330
  hasProperty2,
@@ -7319,11 +7357,10 @@ function assertOwnPropertyDescriptor(name, descriptor, msg) {
7319
7357
  msg = descriptor;
7320
7358
  descriptor = null;
7321
7359
  }
7322
- if (msg)
7323
- flag2(this, "message", msg);
7324
- var obj = flag2(this, "object");
7325
- var actualDescriptor = Object.getOwnPropertyDescriptor(Object(obj), name);
7326
- var eql = flag2(this, "eql");
7360
+ if (msg) flag2(this, "message", msg);
7361
+ let obj = flag2(this, "object");
7362
+ let actualDescriptor = Object.getOwnPropertyDescriptor(Object(obj), name);
7363
+ let eql = flag2(this, "eql");
7327
7364
  if (actualDescriptor && descriptor) {
7328
7365
  this.assert(
7329
7366
  eql(descriptor, actualDescriptor),
@@ -7350,9 +7387,8 @@ function assertLengthChain() {
7350
7387
  }
7351
7388
  __name(assertLengthChain, "assertLengthChain");
7352
7389
  function assertLength(n, msg) {
7353
- if (msg)
7354
- flag2(this, "message", msg);
7355
- var obj = flag2(this, "object"), objType = type(obj).toLowerCase(), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi"), descriptor = "length", itemsCount;
7390
+ if (msg) flag2(this, "message", msg);
7391
+ let obj = flag2(this, "object"), objType = type(obj).toLowerCase(), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi"), descriptor = "length", itemsCount;
7356
7392
  switch (objType) {
7357
7393
  case "map":
7358
7394
  case "set":
@@ -7375,9 +7411,8 @@ __name(assertLength, "assertLength");
7375
7411
  Assertion.addChainableMethod("length", assertLength, assertLengthChain);
7376
7412
  Assertion.addChainableMethod("lengthOf", assertLength, assertLengthChain);
7377
7413
  function assertMatch(re, msg) {
7378
- if (msg)
7379
- flag2(this, "message", msg);
7380
- var obj = flag2(this, "object");
7414
+ if (msg) flag2(this, "message", msg);
7415
+ let obj = flag2(this, "object");
7381
7416
  this.assert(
7382
7417
  re.exec(obj),
7383
7418
  "expected #{this} to match " + re,
@@ -7388,9 +7423,8 @@ __name(assertMatch, "assertMatch");
7388
7423
  Assertion.addMethod("match", assertMatch);
7389
7424
  Assertion.addMethod("matches", assertMatch);
7390
7425
  Assertion.addMethod("string", function(str, msg) {
7391
- if (msg)
7392
- flag2(this, "message", msg);
7393
- var obj = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
7426
+ if (msg) flag2(this, "message", msg);
7427
+ let obj = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
7394
7428
  new Assertion(obj, flagMsg, ssfi, true).is.a("string");
7395
7429
  this.assert(
7396
7430
  ~obj.indexOf(str),
@@ -7399,9 +7433,9 @@ Assertion.addMethod("string", function(str, msg) {
7399
7433
  );
7400
7434
  });
7401
7435
  function assertKeys(keys2) {
7402
- var obj = flag2(this, "object"), objType = type(obj), keysType = type(keys2), ssfi = flag2(this, "ssfi"), isDeep = flag2(this, "deep"), str, deepStr = "", actual, ok = true, flagMsg = flag2(this, "message");
7436
+ let obj = flag2(this, "object"), objType = type(obj), keysType = type(keys2), ssfi = flag2(this, "ssfi"), isDeep = flag2(this, "deep"), str, deepStr = "", actual, ok = true, flagMsg = flag2(this, "message");
7403
7437
  flagMsg = flagMsg ? flagMsg + ": " : "";
7404
- var mixedArgsMsg = flagMsg + "when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";
7438
+ let mixedArgsMsg = flagMsg + "when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";
7405
7439
  if (objType === "Map" || objType === "Set") {
7406
7440
  deepStr = isDeep ? "deeply " : "";
7407
7441
  actual = [];
@@ -7435,7 +7469,7 @@ function assertKeys(keys2) {
7435
7469
  if (!keys2.length) {
7436
7470
  throw new AssertionError(flagMsg + "keys required", void 0, ssfi);
7437
7471
  }
7438
- var len = keys2.length, any = flag2(this, "any"), all = flag2(this, "all"), expected = keys2, isEql = isDeep ? flag2(this, "eql") : (val1, val2) => val1 === val2;
7472
+ let len = keys2.length, any = flag2(this, "any"), all = flag2(this, "all"), expected = keys2, isEql = isDeep ? flag2(this, "eql") : (val1, val2) => val1 === val2;
7439
7473
  if (!any && !all) {
7440
7474
  all = true;
7441
7475
  }
@@ -7460,7 +7494,7 @@ function assertKeys(keys2) {
7460
7494
  keys2 = keys2.map(function(key) {
7461
7495
  return inspect22(key);
7462
7496
  });
7463
- var last = keys2.pop();
7497
+ let last = keys2.pop();
7464
7498
  if (all) {
7465
7499
  str = keys2.join(", ") + ", and " + last;
7466
7500
  }
@@ -7485,9 +7519,8 @@ __name(assertKeys, "assertKeys");
7485
7519
  Assertion.addMethod("keys", assertKeys);
7486
7520
  Assertion.addMethod("key", assertKeys);
7487
7521
  function assertThrows(errorLike, errMsgMatcher, msg) {
7488
- if (msg)
7489
- flag2(this, "message", msg);
7490
- var obj = flag2(this, "object"), ssfi = flag2(this, "ssfi"), flagMsg = flag2(this, "message"), negate = flag2(this, "negate") || false;
7522
+ if (msg) flag2(this, "message", msg);
7523
+ let obj = flag2(this, "object"), ssfi = flag2(this, "ssfi"), flagMsg = flag2(this, "message"), negate = flag2(this, "negate") || false;
7491
7524
  new Assertion(obj, flagMsg, ssfi, true).is.a("function");
7492
7525
  if (isRegExp2(errorLike) || typeof errorLike === "string") {
7493
7526
  errMsgMatcher = errorLike;
@@ -7501,12 +7534,12 @@ function assertThrows(errorLike, errMsgMatcher, msg) {
7501
7534
  errorWasThrown = true;
7502
7535
  caughtErr = err;
7503
7536
  }
7504
- var everyArgIsUndefined = errorLike === void 0 && errMsgMatcher === void 0;
7505
- var everyArgIsDefined = Boolean(errorLike && errMsgMatcher);
7506
- var errorLikeFail = false;
7507
- var errMsgMatcherFail = false;
7537
+ let everyArgIsUndefined = errorLike === void 0 && errMsgMatcher === void 0;
7538
+ let everyArgIsDefined = Boolean(errorLike && errMsgMatcher);
7539
+ let errorLikeFail = false;
7540
+ let errMsgMatcherFail = false;
7508
7541
  if (everyArgIsUndefined || !everyArgIsUndefined && !negate) {
7509
- var errorLikeString = "an error";
7542
+ let errorLikeString = "an error";
7510
7543
  if (errorLike instanceof Error) {
7511
7544
  errorLikeString = "#{exp}";
7512
7545
  } else if (errorLike) {
@@ -7533,7 +7566,7 @@ function assertThrows(errorLike, errMsgMatcher, msg) {
7533
7566
  }
7534
7567
  if (errorLike && caughtErr) {
7535
7568
  if (errorLike instanceof Error) {
7536
- var isCompatibleInstance = check_error_exports.compatibleInstance(
7569
+ let isCompatibleInstance = check_error_exports.compatibleInstance(
7537
7570
  caughtErr,
7538
7571
  errorLike
7539
7572
  );
@@ -7551,7 +7584,7 @@ function assertThrows(errorLike, errMsgMatcher, msg) {
7551
7584
  }
7552
7585
  }
7553
7586
  }
7554
- var isCompatibleConstructor = check_error_exports.compatibleConstructor(
7587
+ let isCompatibleConstructor = check_error_exports.compatibleConstructor(
7555
7588
  caughtErr,
7556
7589
  errorLike
7557
7590
  );
@@ -7570,11 +7603,11 @@ function assertThrows(errorLike, errMsgMatcher, msg) {
7570
7603
  }
7571
7604
  }
7572
7605
  if (caughtErr && errMsgMatcher !== void 0 && errMsgMatcher !== null) {
7573
- var placeholder = "including";
7606
+ let placeholder = "including";
7574
7607
  if (isRegExp2(errMsgMatcher)) {
7575
7608
  placeholder = "matching";
7576
7609
  }
7577
- var isCompatibleMessage = check_error_exports.compatibleMessage(
7610
+ let isCompatibleMessage = check_error_exports.compatibleMessage(
7578
7611
  caughtErr,
7579
7612
  errMsgMatcher
7580
7613
  );
@@ -7608,9 +7641,8 @@ Assertion.addMethod("throw", assertThrows);
7608
7641
  Assertion.addMethod("throws", assertThrows);
7609
7642
  Assertion.addMethod("Throw", assertThrows);
7610
7643
  function respondTo(method, msg) {
7611
- if (msg)
7612
- flag2(this, "message", msg);
7613
- var obj = flag2(this, "object"), itself = flag2(this, "itself"), context = "function" === typeof obj && !itself ? obj.prototype[method] : obj[method];
7644
+ if (msg) flag2(this, "message", msg);
7645
+ let obj = flag2(this, "object"), itself = flag2(this, "itself"), context = "function" === typeof obj && !itself ? obj.prototype[method] : obj[method];
7614
7646
  this.assert(
7615
7647
  "function" === typeof context,
7616
7648
  "expected #{this} to respond to " + inspect22(method),
@@ -7624,10 +7656,9 @@ Assertion.addProperty("itself", function() {
7624
7656
  flag2(this, "itself", true);
7625
7657
  });
7626
7658
  function satisfy(matcher, msg) {
7627
- if (msg)
7628
- flag2(this, "message", msg);
7629
- var obj = flag2(this, "object");
7630
- var result = matcher(obj);
7659
+ if (msg) flag2(this, "message", msg);
7660
+ let obj = flag2(this, "object");
7661
+ let result = matcher(obj);
7631
7662
  this.assert(
7632
7663
  result,
7633
7664
  "expected #{this} to satisfy " + objDisplay2(matcher),
@@ -7640,27 +7671,28 @@ __name(satisfy, "satisfy");
7640
7671
  Assertion.addMethod("satisfy", satisfy);
7641
7672
  Assertion.addMethod("satisfies", satisfy);
7642
7673
  function closeTo(expected, delta, msg) {
7643
- if (msg)
7644
- flag2(this, "message", msg);
7645
- var obj = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
7674
+ if (msg) flag2(this, "message", msg);
7675
+ let obj = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
7646
7676
  new Assertion(obj, flagMsg, ssfi, true).is.numeric;
7647
7677
  let message = "A `delta` value is required for `closeTo`";
7648
- if (delta == void 0)
7678
+ if (delta == void 0) {
7649
7679
  throw new AssertionError(
7650
7680
  flagMsg ? `${flagMsg}: ${message}` : message,
7651
7681
  void 0,
7652
7682
  ssfi
7653
7683
  );
7684
+ }
7654
7685
  new Assertion(delta, flagMsg, ssfi, true).is.numeric;
7655
7686
  message = "A `expected` value is required for `closeTo`";
7656
- if (expected == void 0)
7687
+ if (expected == void 0) {
7657
7688
  throw new AssertionError(
7658
7689
  flagMsg ? `${flagMsg}: ${message}` : message,
7659
7690
  void 0,
7660
7691
  ssfi
7661
7692
  );
7693
+ }
7662
7694
  new Assertion(expected, flagMsg, ssfi, true).is.numeric;
7663
- const abs = /* @__PURE__ */ __name((x) => x < 0n ? -x : x, "abs");
7695
+ const abs = /* @__PURE__ */ __name((x2) => x2 < 0n ? -x2 : x2, "abs");
7664
7696
  const strip = /* @__PURE__ */ __name((number) => parseFloat(parseFloat(number).toPrecision(12)), "strip");
7665
7697
  this.assert(
7666
7698
  strip(abs(obj - expected)) <= delta,
@@ -7675,40 +7707,33 @@ function isSubsetOf(_subset, _superset, cmp, contains, ordered) {
7675
7707
  let superset = Array.from(_superset);
7676
7708
  let subset = Array.from(_subset);
7677
7709
  if (!contains) {
7678
- if (subset.length !== superset.length)
7679
- return false;
7710
+ if (subset.length !== superset.length) return false;
7680
7711
  superset = superset.slice();
7681
7712
  }
7682
7713
  return subset.every(function(elem, idx) {
7683
- if (ordered)
7684
- return cmp ? cmp(elem, superset[idx]) : elem === superset[idx];
7714
+ if (ordered) return cmp ? cmp(elem, superset[idx]) : elem === superset[idx];
7685
7715
  if (!cmp) {
7686
- var matchIdx = superset.indexOf(elem);
7687
- if (matchIdx === -1)
7688
- return false;
7689
- if (!contains)
7690
- superset.splice(matchIdx, 1);
7716
+ let matchIdx = superset.indexOf(elem);
7717
+ if (matchIdx === -1) return false;
7718
+ if (!contains) superset.splice(matchIdx, 1);
7691
7719
  return true;
7692
7720
  }
7693
- return superset.some(function(elem2, matchIdx2) {
7694
- if (!cmp(elem, elem2))
7695
- return false;
7696
- if (!contains)
7697
- superset.splice(matchIdx2, 1);
7721
+ return superset.some(function(elem2, matchIdx) {
7722
+ if (!cmp(elem, elem2)) return false;
7723
+ if (!contains) superset.splice(matchIdx, 1);
7698
7724
  return true;
7699
7725
  });
7700
7726
  });
7701
7727
  }
7702
7728
  __name(isSubsetOf, "isSubsetOf");
7703
7729
  Assertion.addMethod("members", function(subset, msg) {
7704
- if (msg)
7705
- flag2(this, "message", msg);
7706
- var obj = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
7730
+ if (msg) flag2(this, "message", msg);
7731
+ let obj = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
7707
7732
  new Assertion(obj, flagMsg, ssfi, true).to.be.iterable;
7708
7733
  new Assertion(subset, flagMsg, ssfi, true).to.be.iterable;
7709
- var contains = flag2(this, "contains");
7710
- var ordered = flag2(this, "ordered");
7711
- var subject, failMsg, failNegateMsg;
7734
+ let contains = flag2(this, "contains");
7735
+ let ordered = flag2(this, "ordered");
7736
+ let subject, failMsg, failNegateMsg;
7712
7737
  if (contains) {
7713
7738
  subject = ordered ? "an ordered superset" : "a superset";
7714
7739
  failMsg = "expected #{this} to be " + subject + " of #{exp}";
@@ -7718,7 +7743,7 @@ Assertion.addMethod("members", function(subset, msg) {
7718
7743
  failMsg = "expected #{this} to have the same " + subject + " as #{exp}";
7719
7744
  failNegateMsg = "expected #{this} to not have the same " + subject + " as #{exp}";
7720
7745
  }
7721
- var cmp = flag2(this, "deep") ? flag2(this, "eql") : void 0;
7746
+ let cmp = flag2(this, "deep") ? flag2(this, "eql") : void 0;
7722
7747
  this.assert(
7723
7748
  isSubsetOf(subset, obj, cmp, contains, ordered),
7724
7749
  failMsg,
@@ -7729,9 +7754,8 @@ Assertion.addMethod("members", function(subset, msg) {
7729
7754
  );
7730
7755
  });
7731
7756
  Assertion.addProperty("iterable", function(msg) {
7732
- if (msg)
7733
- flag2(this, "message", msg);
7734
- var obj = flag2(this, "object");
7757
+ if (msg) flag2(this, "message", msg);
7758
+ let obj = flag2(this, "object");
7735
7759
  this.assert(
7736
7760
  obj != void 0 && obj[Symbol.iterator],
7737
7761
  "expected #{this} to be an iterable",
@@ -7740,9 +7764,8 @@ Assertion.addProperty("iterable", function(msg) {
7740
7764
  );
7741
7765
  });
7742
7766
  function oneOf(list, msg) {
7743
- if (msg)
7744
- flag2(this, "message", msg);
7745
- var expected = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi"), contains = flag2(this, "contains"), isDeep = flag2(this, "deep"), eql = flag2(this, "eql");
7767
+ if (msg) flag2(this, "message", msg);
7768
+ let expected = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi"), contains = flag2(this, "contains"), isDeep = flag2(this, "deep"), eql = flag2(this, "eql");
7746
7769
  new Assertion(list, flagMsg, ssfi, true).to.be.an("array");
7747
7770
  if (contains) {
7748
7771
  this.assert(
@@ -7779,11 +7802,10 @@ function oneOf(list, msg) {
7779
7802
  __name(oneOf, "oneOf");
7780
7803
  Assertion.addMethod("oneOf", oneOf);
7781
7804
  function assertChanges(subject, prop, msg) {
7782
- if (msg)
7783
- flag2(this, "message", msg);
7784
- var fn2 = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
7805
+ if (msg) flag2(this, "message", msg);
7806
+ let fn2 = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
7785
7807
  new Assertion(fn2, flagMsg, ssfi, true).is.a("function");
7786
- var initial;
7808
+ let initial;
7787
7809
  if (!prop) {
7788
7810
  new Assertion(subject, flagMsg, ssfi, true).is.a("function");
7789
7811
  initial = subject();
@@ -7792,8 +7814,8 @@ function assertChanges(subject, prop, msg) {
7792
7814
  initial = subject[prop];
7793
7815
  }
7794
7816
  fn2();
7795
- var final = prop === void 0 || prop === null ? subject() : subject[prop];
7796
- var msgObj = prop === void 0 || prop === null ? initial : "." + prop;
7817
+ let final = prop === void 0 || prop === null ? subject() : subject[prop];
7818
+ let msgObj = prop === void 0 || prop === null ? initial : "." + prop;
7797
7819
  flag2(this, "deltaMsgObj", msgObj);
7798
7820
  flag2(this, "initialDeltaValue", initial);
7799
7821
  flag2(this, "finalDeltaValue", final);
@@ -7809,11 +7831,10 @@ __name(assertChanges, "assertChanges");
7809
7831
  Assertion.addMethod("change", assertChanges);
7810
7832
  Assertion.addMethod("changes", assertChanges);
7811
7833
  function assertIncreases(subject, prop, msg) {
7812
- if (msg)
7813
- flag2(this, "message", msg);
7814
- var fn2 = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
7834
+ if (msg) flag2(this, "message", msg);
7835
+ let fn2 = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
7815
7836
  new Assertion(fn2, flagMsg, ssfi, true).is.a("function");
7816
- var initial;
7837
+ let initial;
7817
7838
  if (!prop) {
7818
7839
  new Assertion(subject, flagMsg, ssfi, true).is.a("function");
7819
7840
  initial = subject();
@@ -7823,8 +7844,8 @@ function assertIncreases(subject, prop, msg) {
7823
7844
  }
7824
7845
  new Assertion(initial, flagMsg, ssfi, true).is.a("number");
7825
7846
  fn2();
7826
- var final = prop === void 0 || prop === null ? subject() : subject[prop];
7827
- var msgObj = prop === void 0 || prop === null ? initial : "." + prop;
7847
+ let final = prop === void 0 || prop === null ? subject() : subject[prop];
7848
+ let msgObj = prop === void 0 || prop === null ? initial : "." + prop;
7828
7849
  flag2(this, "deltaMsgObj", msgObj);
7829
7850
  flag2(this, "initialDeltaValue", initial);
7830
7851
  flag2(this, "finalDeltaValue", final);
@@ -7840,11 +7861,10 @@ __name(assertIncreases, "assertIncreases");
7840
7861
  Assertion.addMethod("increase", assertIncreases);
7841
7862
  Assertion.addMethod("increases", assertIncreases);
7842
7863
  function assertDecreases(subject, prop, msg) {
7843
- if (msg)
7844
- flag2(this, "message", msg);
7845
- var fn2 = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
7864
+ if (msg) flag2(this, "message", msg);
7865
+ let fn2 = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi");
7846
7866
  new Assertion(fn2, flagMsg, ssfi, true).is.a("function");
7847
- var initial;
7867
+ let initial;
7848
7868
  if (!prop) {
7849
7869
  new Assertion(subject, flagMsg, ssfi, true).is.a("function");
7850
7870
  initial = subject();
@@ -7854,8 +7874,8 @@ function assertDecreases(subject, prop, msg) {
7854
7874
  }
7855
7875
  new Assertion(initial, flagMsg, ssfi, true).is.a("number");
7856
7876
  fn2();
7857
- var final = prop === void 0 || prop === null ? subject() : subject[prop];
7858
- var msgObj = prop === void 0 || prop === null ? initial : "." + prop;
7877
+ let final = prop === void 0 || prop === null ? subject() : subject[prop];
7878
+ let msgObj = prop === void 0 || prop === null ? initial : "." + prop;
7859
7879
  flag2(this, "deltaMsgObj", msgObj);
7860
7880
  flag2(this, "initialDeltaValue", initial);
7861
7881
  flag2(this, "finalDeltaValue", final);
@@ -7871,14 +7891,13 @@ __name(assertDecreases, "assertDecreases");
7871
7891
  Assertion.addMethod("decrease", assertDecreases);
7872
7892
  Assertion.addMethod("decreases", assertDecreases);
7873
7893
  function assertDelta(delta, msg) {
7874
- if (msg)
7875
- flag2(this, "message", msg);
7876
- var msgObj = flag2(this, "deltaMsgObj");
7877
- var initial = flag2(this, "initialDeltaValue");
7878
- var final = flag2(this, "finalDeltaValue");
7879
- var behavior = flag2(this, "deltaBehavior");
7880
- var realDelta = flag2(this, "realDelta");
7881
- var expression;
7894
+ if (msg) flag2(this, "message", msg);
7895
+ let msgObj = flag2(this, "deltaMsgObj");
7896
+ let initial = flag2(this, "initialDeltaValue");
7897
+ let final = flag2(this, "finalDeltaValue");
7898
+ let behavior = flag2(this, "deltaBehavior");
7899
+ let realDelta = flag2(this, "realDelta");
7900
+ let expression;
7882
7901
  if (behavior === "change") {
7883
7902
  expression = Math.abs(final - initial) === Math.abs(delta);
7884
7903
  } else {
@@ -7893,8 +7912,8 @@ function assertDelta(delta, msg) {
7893
7912
  __name(assertDelta, "assertDelta");
7894
7913
  Assertion.addMethod("by", assertDelta);
7895
7914
  Assertion.addProperty("extensible", function() {
7896
- var obj = flag2(this, "object");
7897
- var isExtensible = obj === Object(obj) && Object.isExtensible(obj);
7915
+ let obj = flag2(this, "object");
7916
+ let isExtensible = obj === Object(obj) && Object.isExtensible(obj);
7898
7917
  this.assert(
7899
7918
  isExtensible,
7900
7919
  "expected #{this} to be extensible",
@@ -7902,8 +7921,8 @@ Assertion.addProperty("extensible", function() {
7902
7921
  );
7903
7922
  });
7904
7923
  Assertion.addProperty("sealed", function() {
7905
- var obj = flag2(this, "object");
7906
- var isSealed = obj === Object(obj) ? Object.isSealed(obj) : true;
7924
+ let obj = flag2(this, "object");
7925
+ let isSealed = obj === Object(obj) ? Object.isSealed(obj) : true;
7907
7926
  this.assert(
7908
7927
  isSealed,
7909
7928
  "expected #{this} to be sealed",
@@ -7911,8 +7930,8 @@ Assertion.addProperty("sealed", function() {
7911
7930
  );
7912
7931
  });
7913
7932
  Assertion.addProperty("frozen", function() {
7914
- var obj = flag2(this, "object");
7915
- var isFrozen = obj === Object(obj) ? Object.isFrozen(obj) : true;
7933
+ let obj = flag2(this, "object");
7934
+ let isFrozen = obj === Object(obj) ? Object.isFrozen(obj) : true;
7916
7935
  this.assert(
7917
7936
  isFrozen,
7918
7937
  "expected #{this} to be frozen",
@@ -7920,7 +7939,7 @@ Assertion.addProperty("frozen", function() {
7920
7939
  );
7921
7940
  });
7922
7941
  Assertion.addProperty("finite", function(_msg) {
7923
- var obj = flag2(this, "object");
7942
+ let obj = flag2(this, "object");
7924
7943
  this.assert(
7925
7944
  typeof obj === "number" && isFinite(obj),
7926
7945
  "expected #{this} to be a finite number",
@@ -7958,8 +7977,8 @@ function compareSubset(expected, actual) {
7958
7977
  }
7959
7978
  }
7960
7979
  return Object.keys(expected).every(function(key) {
7961
- var expectedValue = expected[key];
7962
- var actualValue = actual[key];
7980
+ let expectedValue = expected[key];
7981
+ let actualValue = actual[key];
7963
7982
  if (typeof expectedValue === "object" && expectedValue !== null && actualValue !== null) {
7964
7983
  return compareSubset(expectedValue, actualValue);
7965
7984
  }
@@ -8029,7 +8048,7 @@ function loadShould() {
8029
8048
  get: shouldGetter,
8030
8049
  configurable: true
8031
8050
  });
8032
- var should2 = {};
8051
+ let should2 = {};
8033
8052
  should2.fail = function(actual, expected, message, operator) {
8034
8053
  if (arguments.length < 2) {
8035
8054
  message = actual;
@@ -8072,12 +8091,12 @@ function loadShould() {
8072
8091
  __name(loadShould, "loadShould");
8073
8092
  var should = loadShould;
8074
8093
  var Should = loadShould;
8075
- function assert2(express, errmsg) {
8076
- var test22 = new Assertion(null, null, assert2, true);
8094
+ function assert(express, errmsg) {
8095
+ let test22 = new Assertion(null, null, assert, true);
8077
8096
  test22.assert(express, errmsg, "[ negation message unavailable ]");
8078
8097
  }
8079
- __name(assert2, "assert");
8080
- assert2.fail = function(actual, expected, message, operator) {
8098
+ __name(assert, "assert");
8099
+ assert.fail = function(actual, expected, message, operator) {
8081
8100
  if (arguments.length < 2) {
8082
8101
  message = actual;
8083
8102
  actual = void 0;
@@ -8090,17 +8109,17 @@ assert2.fail = function(actual, expected, message, operator) {
8090
8109
  expected,
8091
8110
  operator
8092
8111
  },
8093
- assert2.fail
8112
+ assert.fail
8094
8113
  );
8095
8114
  };
8096
- assert2.isOk = function(val, msg) {
8097
- new Assertion(val, msg, assert2.isOk, true).is.ok;
8115
+ assert.isOk = function(val, msg) {
8116
+ new Assertion(val, msg, assert.isOk, true).is.ok;
8098
8117
  };
8099
- assert2.isNotOk = function(val, msg) {
8100
- new Assertion(val, msg, assert2.isNotOk, true).is.not.ok;
8118
+ assert.isNotOk = function(val, msg) {
8119
+ new Assertion(val, msg, assert.isNotOk, true).is.not.ok;
8101
8120
  };
8102
- assert2.equal = function(act, exp, msg) {
8103
- var test22 = new Assertion(act, msg, assert2.equal, true);
8121
+ assert.equal = function(act, exp, msg) {
8122
+ let test22 = new Assertion(act, msg, assert.equal, true);
8104
8123
  test22.assert(
8105
8124
  exp == flag(test22, "object"),
8106
8125
  "expected #{this} to equal #{exp}",
@@ -8110,8 +8129,8 @@ assert2.equal = function(act, exp, msg) {
8110
8129
  true
8111
8130
  );
8112
8131
  };
8113
- assert2.notEqual = function(act, exp, msg) {
8114
- var test22 = new Assertion(act, msg, assert2.notEqual, true);
8132
+ assert.notEqual = function(act, exp, msg) {
8133
+ let test22 = new Assertion(act, msg, assert.notEqual, true);
8115
8134
  test22.assert(
8116
8135
  exp != flag(test22, "object"),
8117
8136
  "expected #{this} to not equal #{exp}",
@@ -8121,371 +8140,371 @@ assert2.notEqual = function(act, exp, msg) {
8121
8140
  true
8122
8141
  );
8123
8142
  };
8124
- assert2.strictEqual = function(act, exp, msg) {
8125
- new Assertion(act, msg, assert2.strictEqual, true).to.equal(exp);
8143
+ assert.strictEqual = function(act, exp, msg) {
8144
+ new Assertion(act, msg, assert.strictEqual, true).to.equal(exp);
8126
8145
  };
8127
- assert2.notStrictEqual = function(act, exp, msg) {
8128
- new Assertion(act, msg, assert2.notStrictEqual, true).to.not.equal(exp);
8146
+ assert.notStrictEqual = function(act, exp, msg) {
8147
+ new Assertion(act, msg, assert.notStrictEqual, true).to.not.equal(exp);
8129
8148
  };
8130
- assert2.deepEqual = assert2.deepStrictEqual = function(act, exp, msg) {
8131
- new Assertion(act, msg, assert2.deepEqual, true).to.eql(exp);
8149
+ assert.deepEqual = assert.deepStrictEqual = function(act, exp, msg) {
8150
+ new Assertion(act, msg, assert.deepEqual, true).to.eql(exp);
8132
8151
  };
8133
- assert2.notDeepEqual = function(act, exp, msg) {
8134
- new Assertion(act, msg, assert2.notDeepEqual, true).to.not.eql(exp);
8152
+ assert.notDeepEqual = function(act, exp, msg) {
8153
+ new Assertion(act, msg, assert.notDeepEqual, true).to.not.eql(exp);
8135
8154
  };
8136
- assert2.isAbove = function(val, abv, msg) {
8137
- new Assertion(val, msg, assert2.isAbove, true).to.be.above(abv);
8155
+ assert.isAbove = function(val, abv, msg) {
8156
+ new Assertion(val, msg, assert.isAbove, true).to.be.above(abv);
8138
8157
  };
8139
- assert2.isAtLeast = function(val, atlst, msg) {
8140
- new Assertion(val, msg, assert2.isAtLeast, true).to.be.least(atlst);
8158
+ assert.isAtLeast = function(val, atlst, msg) {
8159
+ new Assertion(val, msg, assert.isAtLeast, true).to.be.least(atlst);
8141
8160
  };
8142
- assert2.isBelow = function(val, blw, msg) {
8143
- new Assertion(val, msg, assert2.isBelow, true).to.be.below(blw);
8161
+ assert.isBelow = function(val, blw, msg) {
8162
+ new Assertion(val, msg, assert.isBelow, true).to.be.below(blw);
8144
8163
  };
8145
- assert2.isAtMost = function(val, atmst, msg) {
8146
- new Assertion(val, msg, assert2.isAtMost, true).to.be.most(atmst);
8164
+ assert.isAtMost = function(val, atmst, msg) {
8165
+ new Assertion(val, msg, assert.isAtMost, true).to.be.most(atmst);
8147
8166
  };
8148
- assert2.isTrue = function(val, msg) {
8149
- new Assertion(val, msg, assert2.isTrue, true).is["true"];
8167
+ assert.isTrue = function(val, msg) {
8168
+ new Assertion(val, msg, assert.isTrue, true).is["true"];
8150
8169
  };
8151
- assert2.isNotTrue = function(val, msg) {
8152
- new Assertion(val, msg, assert2.isNotTrue, true).to.not.equal(true);
8170
+ assert.isNotTrue = function(val, msg) {
8171
+ new Assertion(val, msg, assert.isNotTrue, true).to.not.equal(true);
8153
8172
  };
8154
- assert2.isFalse = function(val, msg) {
8155
- new Assertion(val, msg, assert2.isFalse, true).is["false"];
8173
+ assert.isFalse = function(val, msg) {
8174
+ new Assertion(val, msg, assert.isFalse, true).is["false"];
8156
8175
  };
8157
- assert2.isNotFalse = function(val, msg) {
8158
- new Assertion(val, msg, assert2.isNotFalse, true).to.not.equal(false);
8176
+ assert.isNotFalse = function(val, msg) {
8177
+ new Assertion(val, msg, assert.isNotFalse, true).to.not.equal(false);
8159
8178
  };
8160
- assert2.isNull = function(val, msg) {
8161
- new Assertion(val, msg, assert2.isNull, true).to.equal(null);
8179
+ assert.isNull = function(val, msg) {
8180
+ new Assertion(val, msg, assert.isNull, true).to.equal(null);
8162
8181
  };
8163
- assert2.isNotNull = function(val, msg) {
8164
- new Assertion(val, msg, assert2.isNotNull, true).to.not.equal(null);
8182
+ assert.isNotNull = function(val, msg) {
8183
+ new Assertion(val, msg, assert.isNotNull, true).to.not.equal(null);
8165
8184
  };
8166
- assert2.isNaN = function(val, msg) {
8167
- new Assertion(val, msg, assert2.isNaN, true).to.be.NaN;
8185
+ assert.isNaN = function(val, msg) {
8186
+ new Assertion(val, msg, assert.isNaN, true).to.be.NaN;
8168
8187
  };
8169
- assert2.isNotNaN = function(value, message) {
8170
- new Assertion(value, message, assert2.isNotNaN, true).not.to.be.NaN;
8188
+ assert.isNotNaN = function(value, message) {
8189
+ new Assertion(value, message, assert.isNotNaN, true).not.to.be.NaN;
8171
8190
  };
8172
- assert2.exists = function(val, msg) {
8173
- new Assertion(val, msg, assert2.exists, true).to.exist;
8191
+ assert.exists = function(val, msg) {
8192
+ new Assertion(val, msg, assert.exists, true).to.exist;
8174
8193
  };
8175
- assert2.notExists = function(val, msg) {
8176
- new Assertion(val, msg, assert2.notExists, true).to.not.exist;
8194
+ assert.notExists = function(val, msg) {
8195
+ new Assertion(val, msg, assert.notExists, true).to.not.exist;
8177
8196
  };
8178
- assert2.isUndefined = function(val, msg) {
8179
- new Assertion(val, msg, assert2.isUndefined, true).to.equal(void 0);
8197
+ assert.isUndefined = function(val, msg) {
8198
+ new Assertion(val, msg, assert.isUndefined, true).to.equal(void 0);
8180
8199
  };
8181
- assert2.isDefined = function(val, msg) {
8182
- new Assertion(val, msg, assert2.isDefined, true).to.not.equal(void 0);
8200
+ assert.isDefined = function(val, msg) {
8201
+ new Assertion(val, msg, assert.isDefined, true).to.not.equal(void 0);
8183
8202
  };
8184
- assert2.isCallable = function(value, message) {
8185
- new Assertion(value, message, assert2.isCallable, true).is.callable;
8203
+ assert.isCallable = function(value, message) {
8204
+ new Assertion(value, message, assert.isCallable, true).is.callable;
8186
8205
  };
8187
- assert2.isNotCallable = function(value, message) {
8188
- new Assertion(value, message, assert2.isNotCallable, true).is.not.callable;
8206
+ assert.isNotCallable = function(value, message) {
8207
+ new Assertion(value, message, assert.isNotCallable, true).is.not.callable;
8189
8208
  };
8190
- assert2.isObject = function(val, msg) {
8191
- new Assertion(val, msg, assert2.isObject, true).to.be.a("object");
8209
+ assert.isObject = function(val, msg) {
8210
+ new Assertion(val, msg, assert.isObject, true).to.be.a("object");
8192
8211
  };
8193
- assert2.isNotObject = function(val, msg) {
8194
- new Assertion(val, msg, assert2.isNotObject, true).to.not.be.a("object");
8212
+ assert.isNotObject = function(val, msg) {
8213
+ new Assertion(val, msg, assert.isNotObject, true).to.not.be.a("object");
8195
8214
  };
8196
- assert2.isArray = function(val, msg) {
8197
- new Assertion(val, msg, assert2.isArray, true).to.be.an("array");
8215
+ assert.isArray = function(val, msg) {
8216
+ new Assertion(val, msg, assert.isArray, true).to.be.an("array");
8198
8217
  };
8199
- assert2.isNotArray = function(val, msg) {
8200
- new Assertion(val, msg, assert2.isNotArray, true).to.not.be.an("array");
8218
+ assert.isNotArray = function(val, msg) {
8219
+ new Assertion(val, msg, assert.isNotArray, true).to.not.be.an("array");
8201
8220
  };
8202
- assert2.isString = function(val, msg) {
8203
- new Assertion(val, msg, assert2.isString, true).to.be.a("string");
8221
+ assert.isString = function(val, msg) {
8222
+ new Assertion(val, msg, assert.isString, true).to.be.a("string");
8204
8223
  };
8205
- assert2.isNotString = function(val, msg) {
8206
- new Assertion(val, msg, assert2.isNotString, true).to.not.be.a("string");
8224
+ assert.isNotString = function(val, msg) {
8225
+ new Assertion(val, msg, assert.isNotString, true).to.not.be.a("string");
8207
8226
  };
8208
- assert2.isNumber = function(val, msg) {
8209
- new Assertion(val, msg, assert2.isNumber, true).to.be.a("number");
8227
+ assert.isNumber = function(val, msg) {
8228
+ new Assertion(val, msg, assert.isNumber, true).to.be.a("number");
8210
8229
  };
8211
- assert2.isNotNumber = function(val, msg) {
8212
- new Assertion(val, msg, assert2.isNotNumber, true).to.not.be.a("number");
8230
+ assert.isNotNumber = function(val, msg) {
8231
+ new Assertion(val, msg, assert.isNotNumber, true).to.not.be.a("number");
8213
8232
  };
8214
- assert2.isNumeric = function(val, msg) {
8215
- new Assertion(val, msg, assert2.isNumeric, true).is.numeric;
8233
+ assert.isNumeric = function(val, msg) {
8234
+ new Assertion(val, msg, assert.isNumeric, true).is.numeric;
8216
8235
  };
8217
- assert2.isNotNumeric = function(val, msg) {
8218
- new Assertion(val, msg, assert2.isNotNumeric, true).is.not.numeric;
8236
+ assert.isNotNumeric = function(val, msg) {
8237
+ new Assertion(val, msg, assert.isNotNumeric, true).is.not.numeric;
8219
8238
  };
8220
- assert2.isFinite = function(val, msg) {
8221
- new Assertion(val, msg, assert2.isFinite, true).to.be.finite;
8239
+ assert.isFinite = function(val, msg) {
8240
+ new Assertion(val, msg, assert.isFinite, true).to.be.finite;
8222
8241
  };
8223
- assert2.isBoolean = function(val, msg) {
8224
- new Assertion(val, msg, assert2.isBoolean, true).to.be.a("boolean");
8242
+ assert.isBoolean = function(val, msg) {
8243
+ new Assertion(val, msg, assert.isBoolean, true).to.be.a("boolean");
8225
8244
  };
8226
- assert2.isNotBoolean = function(val, msg) {
8227
- new Assertion(val, msg, assert2.isNotBoolean, true).to.not.be.a("boolean");
8245
+ assert.isNotBoolean = function(val, msg) {
8246
+ new Assertion(val, msg, assert.isNotBoolean, true).to.not.be.a("boolean");
8228
8247
  };
8229
- assert2.typeOf = function(val, type3, msg) {
8230
- new Assertion(val, msg, assert2.typeOf, true).to.be.a(type3);
8248
+ assert.typeOf = function(val, type3, msg) {
8249
+ new Assertion(val, msg, assert.typeOf, true).to.be.a(type3);
8231
8250
  };
8232
- assert2.notTypeOf = function(value, type3, message) {
8233
- new Assertion(value, message, assert2.notTypeOf, true).to.not.be.a(type3);
8251
+ assert.notTypeOf = function(value, type3, message) {
8252
+ new Assertion(value, message, assert.notTypeOf, true).to.not.be.a(type3);
8234
8253
  };
8235
- assert2.instanceOf = function(val, type3, msg) {
8236
- new Assertion(val, msg, assert2.instanceOf, true).to.be.instanceOf(type3);
8254
+ assert.instanceOf = function(val, type3, msg) {
8255
+ new Assertion(val, msg, assert.instanceOf, true).to.be.instanceOf(type3);
8237
8256
  };
8238
- assert2.notInstanceOf = function(val, type3, msg) {
8239
- new Assertion(val, msg, assert2.notInstanceOf, true).to.not.be.instanceOf(
8257
+ assert.notInstanceOf = function(val, type3, msg) {
8258
+ new Assertion(val, msg, assert.notInstanceOf, true).to.not.be.instanceOf(
8240
8259
  type3
8241
8260
  );
8242
8261
  };
8243
- assert2.include = function(exp, inc, msg) {
8244
- new Assertion(exp, msg, assert2.include, true).include(inc);
8262
+ assert.include = function(exp, inc, msg) {
8263
+ new Assertion(exp, msg, assert.include, true).include(inc);
8245
8264
  };
8246
- assert2.notInclude = function(exp, inc, msg) {
8247
- new Assertion(exp, msg, assert2.notInclude, true).not.include(inc);
8265
+ assert.notInclude = function(exp, inc, msg) {
8266
+ new Assertion(exp, msg, assert.notInclude, true).not.include(inc);
8248
8267
  };
8249
- assert2.deepInclude = function(exp, inc, msg) {
8250
- new Assertion(exp, msg, assert2.deepInclude, true).deep.include(inc);
8268
+ assert.deepInclude = function(exp, inc, msg) {
8269
+ new Assertion(exp, msg, assert.deepInclude, true).deep.include(inc);
8251
8270
  };
8252
- assert2.notDeepInclude = function(exp, inc, msg) {
8253
- new Assertion(exp, msg, assert2.notDeepInclude, true).not.deep.include(inc);
8271
+ assert.notDeepInclude = function(exp, inc, msg) {
8272
+ new Assertion(exp, msg, assert.notDeepInclude, true).not.deep.include(inc);
8254
8273
  };
8255
- assert2.nestedInclude = function(exp, inc, msg) {
8256
- new Assertion(exp, msg, assert2.nestedInclude, true).nested.include(inc);
8274
+ assert.nestedInclude = function(exp, inc, msg) {
8275
+ new Assertion(exp, msg, assert.nestedInclude, true).nested.include(inc);
8257
8276
  };
8258
- assert2.notNestedInclude = function(exp, inc, msg) {
8259
- new Assertion(exp, msg, assert2.notNestedInclude, true).not.nested.include(
8277
+ assert.notNestedInclude = function(exp, inc, msg) {
8278
+ new Assertion(exp, msg, assert.notNestedInclude, true).not.nested.include(
8260
8279
  inc
8261
8280
  );
8262
8281
  };
8263
- assert2.deepNestedInclude = function(exp, inc, msg) {
8264
- new Assertion(exp, msg, assert2.deepNestedInclude, true).deep.nested.include(
8282
+ assert.deepNestedInclude = function(exp, inc, msg) {
8283
+ new Assertion(exp, msg, assert.deepNestedInclude, true).deep.nested.include(
8265
8284
  inc
8266
8285
  );
8267
8286
  };
8268
- assert2.notDeepNestedInclude = function(exp, inc, msg) {
8287
+ assert.notDeepNestedInclude = function(exp, inc, msg) {
8269
8288
  new Assertion(
8270
8289
  exp,
8271
8290
  msg,
8272
- assert2.notDeepNestedInclude,
8291
+ assert.notDeepNestedInclude,
8273
8292
  true
8274
8293
  ).not.deep.nested.include(inc);
8275
8294
  };
8276
- assert2.ownInclude = function(exp, inc, msg) {
8277
- new Assertion(exp, msg, assert2.ownInclude, true).own.include(inc);
8295
+ assert.ownInclude = function(exp, inc, msg) {
8296
+ new Assertion(exp, msg, assert.ownInclude, true).own.include(inc);
8278
8297
  };
8279
- assert2.notOwnInclude = function(exp, inc, msg) {
8280
- new Assertion(exp, msg, assert2.notOwnInclude, true).not.own.include(inc);
8298
+ assert.notOwnInclude = function(exp, inc, msg) {
8299
+ new Assertion(exp, msg, assert.notOwnInclude, true).not.own.include(inc);
8281
8300
  };
8282
- assert2.deepOwnInclude = function(exp, inc, msg) {
8283
- new Assertion(exp, msg, assert2.deepOwnInclude, true).deep.own.include(inc);
8301
+ assert.deepOwnInclude = function(exp, inc, msg) {
8302
+ new Assertion(exp, msg, assert.deepOwnInclude, true).deep.own.include(inc);
8284
8303
  };
8285
- assert2.notDeepOwnInclude = function(exp, inc, msg) {
8286
- new Assertion(exp, msg, assert2.notDeepOwnInclude, true).not.deep.own.include(
8304
+ assert.notDeepOwnInclude = function(exp, inc, msg) {
8305
+ new Assertion(exp, msg, assert.notDeepOwnInclude, true).not.deep.own.include(
8287
8306
  inc
8288
8307
  );
8289
8308
  };
8290
- assert2.match = function(exp, re, msg) {
8291
- new Assertion(exp, msg, assert2.match, true).to.match(re);
8309
+ assert.match = function(exp, re, msg) {
8310
+ new Assertion(exp, msg, assert.match, true).to.match(re);
8292
8311
  };
8293
- assert2.notMatch = function(exp, re, msg) {
8294
- new Assertion(exp, msg, assert2.notMatch, true).to.not.match(re);
8312
+ assert.notMatch = function(exp, re, msg) {
8313
+ new Assertion(exp, msg, assert.notMatch, true).to.not.match(re);
8295
8314
  };
8296
- assert2.property = function(obj, prop, msg) {
8297
- new Assertion(obj, msg, assert2.property, true).to.have.property(prop);
8315
+ assert.property = function(obj, prop, msg) {
8316
+ new Assertion(obj, msg, assert.property, true).to.have.property(prop);
8298
8317
  };
8299
- assert2.notProperty = function(obj, prop, msg) {
8300
- new Assertion(obj, msg, assert2.notProperty, true).to.not.have.property(prop);
8318
+ assert.notProperty = function(obj, prop, msg) {
8319
+ new Assertion(obj, msg, assert.notProperty, true).to.not.have.property(prop);
8301
8320
  };
8302
- assert2.propertyVal = function(obj, prop, val, msg) {
8303
- new Assertion(obj, msg, assert2.propertyVal, true).to.have.property(prop, val);
8321
+ assert.propertyVal = function(obj, prop, val, msg) {
8322
+ new Assertion(obj, msg, assert.propertyVal, true).to.have.property(prop, val);
8304
8323
  };
8305
- assert2.notPropertyVal = function(obj, prop, val, msg) {
8306
- new Assertion(obj, msg, assert2.notPropertyVal, true).to.not.have.property(
8324
+ assert.notPropertyVal = function(obj, prop, val, msg) {
8325
+ new Assertion(obj, msg, assert.notPropertyVal, true).to.not.have.property(
8307
8326
  prop,
8308
8327
  val
8309
8328
  );
8310
8329
  };
8311
- assert2.deepPropertyVal = function(obj, prop, val, msg) {
8312
- new Assertion(obj, msg, assert2.deepPropertyVal, true).to.have.deep.property(
8330
+ assert.deepPropertyVal = function(obj, prop, val, msg) {
8331
+ new Assertion(obj, msg, assert.deepPropertyVal, true).to.have.deep.property(
8313
8332
  prop,
8314
8333
  val
8315
8334
  );
8316
8335
  };
8317
- assert2.notDeepPropertyVal = function(obj, prop, val, msg) {
8336
+ assert.notDeepPropertyVal = function(obj, prop, val, msg) {
8318
8337
  new Assertion(
8319
8338
  obj,
8320
8339
  msg,
8321
- assert2.notDeepPropertyVal,
8340
+ assert.notDeepPropertyVal,
8322
8341
  true
8323
8342
  ).to.not.have.deep.property(prop, val);
8324
8343
  };
8325
- assert2.ownProperty = function(obj, prop, msg) {
8326
- new Assertion(obj, msg, assert2.ownProperty, true).to.have.own.property(prop);
8344
+ assert.ownProperty = function(obj, prop, msg) {
8345
+ new Assertion(obj, msg, assert.ownProperty, true).to.have.own.property(prop);
8327
8346
  };
8328
- assert2.notOwnProperty = function(obj, prop, msg) {
8329
- new Assertion(obj, msg, assert2.notOwnProperty, true).to.not.have.own.property(
8347
+ assert.notOwnProperty = function(obj, prop, msg) {
8348
+ new Assertion(obj, msg, assert.notOwnProperty, true).to.not.have.own.property(
8330
8349
  prop
8331
8350
  );
8332
8351
  };
8333
- assert2.ownPropertyVal = function(obj, prop, value, msg) {
8334
- new Assertion(obj, msg, assert2.ownPropertyVal, true).to.have.own.property(
8352
+ assert.ownPropertyVal = function(obj, prop, value, msg) {
8353
+ new Assertion(obj, msg, assert.ownPropertyVal, true).to.have.own.property(
8335
8354
  prop,
8336
8355
  value
8337
8356
  );
8338
8357
  };
8339
- assert2.notOwnPropertyVal = function(obj, prop, value, msg) {
8358
+ assert.notOwnPropertyVal = function(obj, prop, value, msg) {
8340
8359
  new Assertion(
8341
8360
  obj,
8342
8361
  msg,
8343
- assert2.notOwnPropertyVal,
8362
+ assert.notOwnPropertyVal,
8344
8363
  true
8345
8364
  ).to.not.have.own.property(prop, value);
8346
8365
  };
8347
- assert2.deepOwnPropertyVal = function(obj, prop, value, msg) {
8366
+ assert.deepOwnPropertyVal = function(obj, prop, value, msg) {
8348
8367
  new Assertion(
8349
8368
  obj,
8350
8369
  msg,
8351
- assert2.deepOwnPropertyVal,
8370
+ assert.deepOwnPropertyVal,
8352
8371
  true
8353
8372
  ).to.have.deep.own.property(prop, value);
8354
8373
  };
8355
- assert2.notDeepOwnPropertyVal = function(obj, prop, value, msg) {
8374
+ assert.notDeepOwnPropertyVal = function(obj, prop, value, msg) {
8356
8375
  new Assertion(
8357
8376
  obj,
8358
8377
  msg,
8359
- assert2.notDeepOwnPropertyVal,
8378
+ assert.notDeepOwnPropertyVal,
8360
8379
  true
8361
8380
  ).to.not.have.deep.own.property(prop, value);
8362
8381
  };
8363
- assert2.nestedProperty = function(obj, prop, msg) {
8364
- new Assertion(obj, msg, assert2.nestedProperty, true).to.have.nested.property(
8382
+ assert.nestedProperty = function(obj, prop, msg) {
8383
+ new Assertion(obj, msg, assert.nestedProperty, true).to.have.nested.property(
8365
8384
  prop
8366
8385
  );
8367
8386
  };
8368
- assert2.notNestedProperty = function(obj, prop, msg) {
8387
+ assert.notNestedProperty = function(obj, prop, msg) {
8369
8388
  new Assertion(
8370
8389
  obj,
8371
8390
  msg,
8372
- assert2.notNestedProperty,
8391
+ assert.notNestedProperty,
8373
8392
  true
8374
8393
  ).to.not.have.nested.property(prop);
8375
8394
  };
8376
- assert2.nestedPropertyVal = function(obj, prop, val, msg) {
8395
+ assert.nestedPropertyVal = function(obj, prop, val, msg) {
8377
8396
  new Assertion(
8378
8397
  obj,
8379
8398
  msg,
8380
- assert2.nestedPropertyVal,
8399
+ assert.nestedPropertyVal,
8381
8400
  true
8382
8401
  ).to.have.nested.property(prop, val);
8383
8402
  };
8384
- assert2.notNestedPropertyVal = function(obj, prop, val, msg) {
8403
+ assert.notNestedPropertyVal = function(obj, prop, val, msg) {
8385
8404
  new Assertion(
8386
8405
  obj,
8387
8406
  msg,
8388
- assert2.notNestedPropertyVal,
8407
+ assert.notNestedPropertyVal,
8389
8408
  true
8390
8409
  ).to.not.have.nested.property(prop, val);
8391
8410
  };
8392
- assert2.deepNestedPropertyVal = function(obj, prop, val, msg) {
8411
+ assert.deepNestedPropertyVal = function(obj, prop, val, msg) {
8393
8412
  new Assertion(
8394
8413
  obj,
8395
8414
  msg,
8396
- assert2.deepNestedPropertyVal,
8415
+ assert.deepNestedPropertyVal,
8397
8416
  true
8398
8417
  ).to.have.deep.nested.property(prop, val);
8399
8418
  };
8400
- assert2.notDeepNestedPropertyVal = function(obj, prop, val, msg) {
8419
+ assert.notDeepNestedPropertyVal = function(obj, prop, val, msg) {
8401
8420
  new Assertion(
8402
8421
  obj,
8403
8422
  msg,
8404
- assert2.notDeepNestedPropertyVal,
8423
+ assert.notDeepNestedPropertyVal,
8405
8424
  true
8406
8425
  ).to.not.have.deep.nested.property(prop, val);
8407
8426
  };
8408
- assert2.lengthOf = function(exp, len, msg) {
8409
- new Assertion(exp, msg, assert2.lengthOf, true).to.have.lengthOf(len);
8427
+ assert.lengthOf = function(exp, len, msg) {
8428
+ new Assertion(exp, msg, assert.lengthOf, true).to.have.lengthOf(len);
8410
8429
  };
8411
- assert2.hasAnyKeys = function(obj, keys2, msg) {
8412
- new Assertion(obj, msg, assert2.hasAnyKeys, true).to.have.any.keys(keys2);
8430
+ assert.hasAnyKeys = function(obj, keys2, msg) {
8431
+ new Assertion(obj, msg, assert.hasAnyKeys, true).to.have.any.keys(keys2);
8413
8432
  };
8414
- assert2.hasAllKeys = function(obj, keys2, msg) {
8415
- new Assertion(obj, msg, assert2.hasAllKeys, true).to.have.all.keys(keys2);
8433
+ assert.hasAllKeys = function(obj, keys2, msg) {
8434
+ new Assertion(obj, msg, assert.hasAllKeys, true).to.have.all.keys(keys2);
8416
8435
  };
8417
- assert2.containsAllKeys = function(obj, keys2, msg) {
8418
- new Assertion(obj, msg, assert2.containsAllKeys, true).to.contain.all.keys(
8436
+ assert.containsAllKeys = function(obj, keys2, msg) {
8437
+ new Assertion(obj, msg, assert.containsAllKeys, true).to.contain.all.keys(
8419
8438
  keys2
8420
8439
  );
8421
8440
  };
8422
- assert2.doesNotHaveAnyKeys = function(obj, keys2, msg) {
8423
- new Assertion(obj, msg, assert2.doesNotHaveAnyKeys, true).to.not.have.any.keys(
8441
+ assert.doesNotHaveAnyKeys = function(obj, keys2, msg) {
8442
+ new Assertion(obj, msg, assert.doesNotHaveAnyKeys, true).to.not.have.any.keys(
8424
8443
  keys2
8425
8444
  );
8426
8445
  };
8427
- assert2.doesNotHaveAllKeys = function(obj, keys2, msg) {
8428
- new Assertion(obj, msg, assert2.doesNotHaveAllKeys, true).to.not.have.all.keys(
8446
+ assert.doesNotHaveAllKeys = function(obj, keys2, msg) {
8447
+ new Assertion(obj, msg, assert.doesNotHaveAllKeys, true).to.not.have.all.keys(
8429
8448
  keys2
8430
8449
  );
8431
8450
  };
8432
- assert2.hasAnyDeepKeys = function(obj, keys2, msg) {
8433
- new Assertion(obj, msg, assert2.hasAnyDeepKeys, true).to.have.any.deep.keys(
8451
+ assert.hasAnyDeepKeys = function(obj, keys2, msg) {
8452
+ new Assertion(obj, msg, assert.hasAnyDeepKeys, true).to.have.any.deep.keys(
8434
8453
  keys2
8435
8454
  );
8436
8455
  };
8437
- assert2.hasAllDeepKeys = function(obj, keys2, msg) {
8438
- new Assertion(obj, msg, assert2.hasAllDeepKeys, true).to.have.all.deep.keys(
8456
+ assert.hasAllDeepKeys = function(obj, keys2, msg) {
8457
+ new Assertion(obj, msg, assert.hasAllDeepKeys, true).to.have.all.deep.keys(
8439
8458
  keys2
8440
8459
  );
8441
8460
  };
8442
- assert2.containsAllDeepKeys = function(obj, keys2, msg) {
8461
+ assert.containsAllDeepKeys = function(obj, keys2, msg) {
8443
8462
  new Assertion(
8444
8463
  obj,
8445
8464
  msg,
8446
- assert2.containsAllDeepKeys,
8465
+ assert.containsAllDeepKeys,
8447
8466
  true
8448
8467
  ).to.contain.all.deep.keys(keys2);
8449
8468
  };
8450
- assert2.doesNotHaveAnyDeepKeys = function(obj, keys2, msg) {
8469
+ assert.doesNotHaveAnyDeepKeys = function(obj, keys2, msg) {
8451
8470
  new Assertion(
8452
8471
  obj,
8453
8472
  msg,
8454
- assert2.doesNotHaveAnyDeepKeys,
8473
+ assert.doesNotHaveAnyDeepKeys,
8455
8474
  true
8456
8475
  ).to.not.have.any.deep.keys(keys2);
8457
8476
  };
8458
- assert2.doesNotHaveAllDeepKeys = function(obj, keys2, msg) {
8477
+ assert.doesNotHaveAllDeepKeys = function(obj, keys2, msg) {
8459
8478
  new Assertion(
8460
8479
  obj,
8461
8480
  msg,
8462
- assert2.doesNotHaveAllDeepKeys,
8481
+ assert.doesNotHaveAllDeepKeys,
8463
8482
  true
8464
8483
  ).to.not.have.all.deep.keys(keys2);
8465
8484
  };
8466
- assert2.throws = function(fn2, errorLike, errMsgMatcher, msg) {
8485
+ assert.throws = function(fn2, errorLike, errMsgMatcher, msg) {
8467
8486
  if ("string" === typeof errorLike || errorLike instanceof RegExp) {
8468
8487
  errMsgMatcher = errorLike;
8469
8488
  errorLike = null;
8470
8489
  }
8471
- var assertErr = new Assertion(fn2, msg, assert2.throws, true).to.throw(
8490
+ let assertErr = new Assertion(fn2, msg, assert.throws, true).to.throw(
8472
8491
  errorLike,
8473
8492
  errMsgMatcher
8474
8493
  );
8475
8494
  return flag(assertErr, "object");
8476
8495
  };
8477
- assert2.doesNotThrow = function(fn2, errorLike, errMsgMatcher, message) {
8496
+ assert.doesNotThrow = function(fn2, errorLike, errMsgMatcher, message) {
8478
8497
  if ("string" === typeof errorLike || errorLike instanceof RegExp) {
8479
8498
  errMsgMatcher = errorLike;
8480
8499
  errorLike = null;
8481
8500
  }
8482
- new Assertion(fn2, message, assert2.doesNotThrow, true).to.not.throw(
8501
+ new Assertion(fn2, message, assert.doesNotThrow, true).to.not.throw(
8483
8502
  errorLike,
8484
8503
  errMsgMatcher
8485
8504
  );
8486
8505
  };
8487
- assert2.operator = function(val, operator, val2, msg) {
8488
- var ok;
8506
+ assert.operator = function(val, operator, val2, msg) {
8507
+ let ok;
8489
8508
  switch (operator) {
8490
8509
  case "==":
8491
8510
  ok = val == val2;
@@ -8516,315 +8535,315 @@ assert2.operator = function(val, operator, val2, msg) {
8516
8535
  throw new AssertionError(
8517
8536
  msg + 'Invalid operator "' + operator + '"',
8518
8537
  void 0,
8519
- assert2.operator
8538
+ assert.operator
8520
8539
  );
8521
8540
  }
8522
- var test22 = new Assertion(ok, msg, assert2.operator, true);
8541
+ let test22 = new Assertion(ok, msg, assert.operator, true);
8523
8542
  test22.assert(
8524
8543
  true === flag(test22, "object"),
8525
8544
  "expected " + inspect22(val) + " to be " + operator + " " + inspect22(val2),
8526
8545
  "expected " + inspect22(val) + " to not be " + operator + " " + inspect22(val2)
8527
8546
  );
8528
8547
  };
8529
- assert2.closeTo = function(act, exp, delta, msg) {
8530
- new Assertion(act, msg, assert2.closeTo, true).to.be.closeTo(exp, delta);
8548
+ assert.closeTo = function(act, exp, delta, msg) {
8549
+ new Assertion(act, msg, assert.closeTo, true).to.be.closeTo(exp, delta);
8531
8550
  };
8532
- assert2.approximately = function(act, exp, delta, msg) {
8533
- new Assertion(act, msg, assert2.approximately, true).to.be.approximately(
8551
+ assert.approximately = function(act, exp, delta, msg) {
8552
+ new Assertion(act, msg, assert.approximately, true).to.be.approximately(
8534
8553
  exp,
8535
8554
  delta
8536
8555
  );
8537
8556
  };
8538
- assert2.sameMembers = function(set1, set22, msg) {
8539
- new Assertion(set1, msg, assert2.sameMembers, true).to.have.same.members(set22);
8557
+ assert.sameMembers = function(set1, set22, msg) {
8558
+ new Assertion(set1, msg, assert.sameMembers, true).to.have.same.members(set22);
8540
8559
  };
8541
- assert2.notSameMembers = function(set1, set22, msg) {
8560
+ assert.notSameMembers = function(set1, set22, msg) {
8542
8561
  new Assertion(
8543
8562
  set1,
8544
8563
  msg,
8545
- assert2.notSameMembers,
8564
+ assert.notSameMembers,
8546
8565
  true
8547
8566
  ).to.not.have.same.members(set22);
8548
8567
  };
8549
- assert2.sameDeepMembers = function(set1, set22, msg) {
8568
+ assert.sameDeepMembers = function(set1, set22, msg) {
8550
8569
  new Assertion(
8551
8570
  set1,
8552
8571
  msg,
8553
- assert2.sameDeepMembers,
8572
+ assert.sameDeepMembers,
8554
8573
  true
8555
8574
  ).to.have.same.deep.members(set22);
8556
8575
  };
8557
- assert2.notSameDeepMembers = function(set1, set22, msg) {
8576
+ assert.notSameDeepMembers = function(set1, set22, msg) {
8558
8577
  new Assertion(
8559
8578
  set1,
8560
8579
  msg,
8561
- assert2.notSameDeepMembers,
8580
+ assert.notSameDeepMembers,
8562
8581
  true
8563
8582
  ).to.not.have.same.deep.members(set22);
8564
8583
  };
8565
- assert2.sameOrderedMembers = function(set1, set22, msg) {
8584
+ assert.sameOrderedMembers = function(set1, set22, msg) {
8566
8585
  new Assertion(
8567
8586
  set1,
8568
8587
  msg,
8569
- assert2.sameOrderedMembers,
8588
+ assert.sameOrderedMembers,
8570
8589
  true
8571
8590
  ).to.have.same.ordered.members(set22);
8572
8591
  };
8573
- assert2.notSameOrderedMembers = function(set1, set22, msg) {
8592
+ assert.notSameOrderedMembers = function(set1, set22, msg) {
8574
8593
  new Assertion(
8575
8594
  set1,
8576
8595
  msg,
8577
- assert2.notSameOrderedMembers,
8596
+ assert.notSameOrderedMembers,
8578
8597
  true
8579
8598
  ).to.not.have.same.ordered.members(set22);
8580
8599
  };
8581
- assert2.sameDeepOrderedMembers = function(set1, set22, msg) {
8600
+ assert.sameDeepOrderedMembers = function(set1, set22, msg) {
8582
8601
  new Assertion(
8583
8602
  set1,
8584
8603
  msg,
8585
- assert2.sameDeepOrderedMembers,
8604
+ assert.sameDeepOrderedMembers,
8586
8605
  true
8587
8606
  ).to.have.same.deep.ordered.members(set22);
8588
8607
  };
8589
- assert2.notSameDeepOrderedMembers = function(set1, set22, msg) {
8608
+ assert.notSameDeepOrderedMembers = function(set1, set22, msg) {
8590
8609
  new Assertion(
8591
8610
  set1,
8592
8611
  msg,
8593
- assert2.notSameDeepOrderedMembers,
8612
+ assert.notSameDeepOrderedMembers,
8594
8613
  true
8595
8614
  ).to.not.have.same.deep.ordered.members(set22);
8596
8615
  };
8597
- assert2.includeMembers = function(superset, subset, msg) {
8598
- new Assertion(superset, msg, assert2.includeMembers, true).to.include.members(
8616
+ assert.includeMembers = function(superset, subset, msg) {
8617
+ new Assertion(superset, msg, assert.includeMembers, true).to.include.members(
8599
8618
  subset
8600
8619
  );
8601
8620
  };
8602
- assert2.notIncludeMembers = function(superset, subset, msg) {
8621
+ assert.notIncludeMembers = function(superset, subset, msg) {
8603
8622
  new Assertion(
8604
8623
  superset,
8605
8624
  msg,
8606
- assert2.notIncludeMembers,
8625
+ assert.notIncludeMembers,
8607
8626
  true
8608
8627
  ).to.not.include.members(subset);
8609
8628
  };
8610
- assert2.includeDeepMembers = function(superset, subset, msg) {
8629
+ assert.includeDeepMembers = function(superset, subset, msg) {
8611
8630
  new Assertion(
8612
8631
  superset,
8613
8632
  msg,
8614
- assert2.includeDeepMembers,
8633
+ assert.includeDeepMembers,
8615
8634
  true
8616
8635
  ).to.include.deep.members(subset);
8617
8636
  };
8618
- assert2.notIncludeDeepMembers = function(superset, subset, msg) {
8637
+ assert.notIncludeDeepMembers = function(superset, subset, msg) {
8619
8638
  new Assertion(
8620
8639
  superset,
8621
8640
  msg,
8622
- assert2.notIncludeDeepMembers,
8641
+ assert.notIncludeDeepMembers,
8623
8642
  true
8624
8643
  ).to.not.include.deep.members(subset);
8625
8644
  };
8626
- assert2.includeOrderedMembers = function(superset, subset, msg) {
8645
+ assert.includeOrderedMembers = function(superset, subset, msg) {
8627
8646
  new Assertion(
8628
8647
  superset,
8629
8648
  msg,
8630
- assert2.includeOrderedMembers,
8649
+ assert.includeOrderedMembers,
8631
8650
  true
8632
8651
  ).to.include.ordered.members(subset);
8633
8652
  };
8634
- assert2.notIncludeOrderedMembers = function(superset, subset, msg) {
8653
+ assert.notIncludeOrderedMembers = function(superset, subset, msg) {
8635
8654
  new Assertion(
8636
8655
  superset,
8637
8656
  msg,
8638
- assert2.notIncludeOrderedMembers,
8657
+ assert.notIncludeOrderedMembers,
8639
8658
  true
8640
8659
  ).to.not.include.ordered.members(subset);
8641
8660
  };
8642
- assert2.includeDeepOrderedMembers = function(superset, subset, msg) {
8661
+ assert.includeDeepOrderedMembers = function(superset, subset, msg) {
8643
8662
  new Assertion(
8644
8663
  superset,
8645
8664
  msg,
8646
- assert2.includeDeepOrderedMembers,
8665
+ assert.includeDeepOrderedMembers,
8647
8666
  true
8648
8667
  ).to.include.deep.ordered.members(subset);
8649
8668
  };
8650
- assert2.notIncludeDeepOrderedMembers = function(superset, subset, msg) {
8669
+ assert.notIncludeDeepOrderedMembers = function(superset, subset, msg) {
8651
8670
  new Assertion(
8652
8671
  superset,
8653
8672
  msg,
8654
- assert2.notIncludeDeepOrderedMembers,
8673
+ assert.notIncludeDeepOrderedMembers,
8655
8674
  true
8656
8675
  ).to.not.include.deep.ordered.members(subset);
8657
8676
  };
8658
- assert2.oneOf = function(inList, list, msg) {
8659
- new Assertion(inList, msg, assert2.oneOf, true).to.be.oneOf(list);
8677
+ assert.oneOf = function(inList, list, msg) {
8678
+ new Assertion(inList, msg, assert.oneOf, true).to.be.oneOf(list);
8660
8679
  };
8661
- assert2.isIterable = function(obj, msg) {
8680
+ assert.isIterable = function(obj, msg) {
8662
8681
  if (obj == void 0 || !obj[Symbol.iterator]) {
8663
8682
  msg = msg ? `${msg} expected ${inspect22(obj)} to be an iterable` : `expected ${inspect22(obj)} to be an iterable`;
8664
- throw new AssertionError(msg, void 0, assert2.isIterable);
8683
+ throw new AssertionError(msg, void 0, assert.isIterable);
8665
8684
  }
8666
8685
  };
8667
- assert2.changes = function(fn2, obj, prop, msg) {
8686
+ assert.changes = function(fn2, obj, prop, msg) {
8668
8687
  if (arguments.length === 3 && typeof obj === "function") {
8669
8688
  msg = prop;
8670
8689
  prop = null;
8671
8690
  }
8672
- new Assertion(fn2, msg, assert2.changes, true).to.change(obj, prop);
8691
+ new Assertion(fn2, msg, assert.changes, true).to.change(obj, prop);
8673
8692
  };
8674
- assert2.changesBy = function(fn2, obj, prop, delta, msg) {
8693
+ assert.changesBy = function(fn2, obj, prop, delta, msg) {
8675
8694
  if (arguments.length === 4 && typeof obj === "function") {
8676
- var tmpMsg = delta;
8695
+ let tmpMsg = delta;
8677
8696
  delta = prop;
8678
8697
  msg = tmpMsg;
8679
8698
  } else if (arguments.length === 3) {
8680
8699
  delta = prop;
8681
8700
  prop = null;
8682
8701
  }
8683
- new Assertion(fn2, msg, assert2.changesBy, true).to.change(obj, prop).by(delta);
8702
+ new Assertion(fn2, msg, assert.changesBy, true).to.change(obj, prop).by(delta);
8684
8703
  };
8685
- assert2.doesNotChange = function(fn2, obj, prop, msg) {
8704
+ assert.doesNotChange = function(fn2, obj, prop, msg) {
8686
8705
  if (arguments.length === 3 && typeof obj === "function") {
8687
8706
  msg = prop;
8688
8707
  prop = null;
8689
8708
  }
8690
- return new Assertion(fn2, msg, assert2.doesNotChange, true).to.not.change(
8709
+ return new Assertion(fn2, msg, assert.doesNotChange, true).to.not.change(
8691
8710
  obj,
8692
8711
  prop
8693
8712
  );
8694
8713
  };
8695
- assert2.changesButNotBy = function(fn2, obj, prop, delta, msg) {
8714
+ assert.changesButNotBy = function(fn2, obj, prop, delta, msg) {
8696
8715
  if (arguments.length === 4 && typeof obj === "function") {
8697
- var tmpMsg = delta;
8716
+ let tmpMsg = delta;
8698
8717
  delta = prop;
8699
8718
  msg = tmpMsg;
8700
8719
  } else if (arguments.length === 3) {
8701
8720
  delta = prop;
8702
8721
  prop = null;
8703
8722
  }
8704
- new Assertion(fn2, msg, assert2.changesButNotBy, true).to.change(obj, prop).but.not.by(delta);
8723
+ new Assertion(fn2, msg, assert.changesButNotBy, true).to.change(obj, prop).but.not.by(delta);
8705
8724
  };
8706
- assert2.increases = function(fn2, obj, prop, msg) {
8725
+ assert.increases = function(fn2, obj, prop, msg) {
8707
8726
  if (arguments.length === 3 && typeof obj === "function") {
8708
8727
  msg = prop;
8709
8728
  prop = null;
8710
8729
  }
8711
- return new Assertion(fn2, msg, assert2.increases, true).to.increase(obj, prop);
8730
+ return new Assertion(fn2, msg, assert.increases, true).to.increase(obj, prop);
8712
8731
  };
8713
- assert2.increasesBy = function(fn2, obj, prop, delta, msg) {
8732
+ assert.increasesBy = function(fn2, obj, prop, delta, msg) {
8714
8733
  if (arguments.length === 4 && typeof obj === "function") {
8715
- var tmpMsg = delta;
8734
+ let tmpMsg = delta;
8716
8735
  delta = prop;
8717
8736
  msg = tmpMsg;
8718
8737
  } else if (arguments.length === 3) {
8719
8738
  delta = prop;
8720
8739
  prop = null;
8721
8740
  }
8722
- new Assertion(fn2, msg, assert2.increasesBy, true).to.increase(obj, prop).by(delta);
8741
+ new Assertion(fn2, msg, assert.increasesBy, true).to.increase(obj, prop).by(delta);
8723
8742
  };
8724
- assert2.doesNotIncrease = function(fn2, obj, prop, msg) {
8743
+ assert.doesNotIncrease = function(fn2, obj, prop, msg) {
8725
8744
  if (arguments.length === 3 && typeof obj === "function") {
8726
8745
  msg = prop;
8727
8746
  prop = null;
8728
8747
  }
8729
- return new Assertion(fn2, msg, assert2.doesNotIncrease, true).to.not.increase(
8748
+ return new Assertion(fn2, msg, assert.doesNotIncrease, true).to.not.increase(
8730
8749
  obj,
8731
8750
  prop
8732
8751
  );
8733
8752
  };
8734
- assert2.increasesButNotBy = function(fn2, obj, prop, delta, msg) {
8753
+ assert.increasesButNotBy = function(fn2, obj, prop, delta, msg) {
8735
8754
  if (arguments.length === 4 && typeof obj === "function") {
8736
- var tmpMsg = delta;
8755
+ let tmpMsg = delta;
8737
8756
  delta = prop;
8738
8757
  msg = tmpMsg;
8739
8758
  } else if (arguments.length === 3) {
8740
8759
  delta = prop;
8741
8760
  prop = null;
8742
8761
  }
8743
- new Assertion(fn2, msg, assert2.increasesButNotBy, true).to.increase(obj, prop).but.not.by(delta);
8762
+ new Assertion(fn2, msg, assert.increasesButNotBy, true).to.increase(obj, prop).but.not.by(delta);
8744
8763
  };
8745
- assert2.decreases = function(fn2, obj, prop, msg) {
8764
+ assert.decreases = function(fn2, obj, prop, msg) {
8746
8765
  if (arguments.length === 3 && typeof obj === "function") {
8747
8766
  msg = prop;
8748
8767
  prop = null;
8749
8768
  }
8750
- return new Assertion(fn2, msg, assert2.decreases, true).to.decrease(obj, prop);
8769
+ return new Assertion(fn2, msg, assert.decreases, true).to.decrease(obj, prop);
8751
8770
  };
8752
- assert2.decreasesBy = function(fn2, obj, prop, delta, msg) {
8771
+ assert.decreasesBy = function(fn2, obj, prop, delta, msg) {
8753
8772
  if (arguments.length === 4 && typeof obj === "function") {
8754
- var tmpMsg = delta;
8773
+ let tmpMsg = delta;
8755
8774
  delta = prop;
8756
8775
  msg = tmpMsg;
8757
8776
  } else if (arguments.length === 3) {
8758
8777
  delta = prop;
8759
8778
  prop = null;
8760
8779
  }
8761
- new Assertion(fn2, msg, assert2.decreasesBy, true).to.decrease(obj, prop).by(delta);
8780
+ new Assertion(fn2, msg, assert.decreasesBy, true).to.decrease(obj, prop).by(delta);
8762
8781
  };
8763
- assert2.doesNotDecrease = function(fn2, obj, prop, msg) {
8782
+ assert.doesNotDecrease = function(fn2, obj, prop, msg) {
8764
8783
  if (arguments.length === 3 && typeof obj === "function") {
8765
8784
  msg = prop;
8766
8785
  prop = null;
8767
8786
  }
8768
- return new Assertion(fn2, msg, assert2.doesNotDecrease, true).to.not.decrease(
8787
+ return new Assertion(fn2, msg, assert.doesNotDecrease, true).to.not.decrease(
8769
8788
  obj,
8770
8789
  prop
8771
8790
  );
8772
8791
  };
8773
- assert2.doesNotDecreaseBy = function(fn2, obj, prop, delta, msg) {
8792
+ assert.doesNotDecreaseBy = function(fn2, obj, prop, delta, msg) {
8774
8793
  if (arguments.length === 4 && typeof obj === "function") {
8775
- var tmpMsg = delta;
8794
+ let tmpMsg = delta;
8776
8795
  delta = prop;
8777
8796
  msg = tmpMsg;
8778
8797
  } else if (arguments.length === 3) {
8779
8798
  delta = prop;
8780
8799
  prop = null;
8781
8800
  }
8782
- return new Assertion(fn2, msg, assert2.doesNotDecreaseBy, true).to.not.decrease(obj, prop).by(delta);
8801
+ return new Assertion(fn2, msg, assert.doesNotDecreaseBy, true).to.not.decrease(obj, prop).by(delta);
8783
8802
  };
8784
- assert2.decreasesButNotBy = function(fn2, obj, prop, delta, msg) {
8803
+ assert.decreasesButNotBy = function(fn2, obj, prop, delta, msg) {
8785
8804
  if (arguments.length === 4 && typeof obj === "function") {
8786
- var tmpMsg = delta;
8805
+ let tmpMsg = delta;
8787
8806
  delta = prop;
8788
8807
  msg = tmpMsg;
8789
8808
  } else if (arguments.length === 3) {
8790
8809
  delta = prop;
8791
8810
  prop = null;
8792
8811
  }
8793
- new Assertion(fn2, msg, assert2.decreasesButNotBy, true).to.decrease(obj, prop).but.not.by(delta);
8812
+ new Assertion(fn2, msg, assert.decreasesButNotBy, true).to.decrease(obj, prop).but.not.by(delta);
8794
8813
  };
8795
- assert2.ifError = function(val) {
8814
+ assert.ifError = function(val) {
8796
8815
  if (val) {
8797
8816
  throw val;
8798
8817
  }
8799
8818
  };
8800
- assert2.isExtensible = function(obj, msg) {
8801
- new Assertion(obj, msg, assert2.isExtensible, true).to.be.extensible;
8819
+ assert.isExtensible = function(obj, msg) {
8820
+ new Assertion(obj, msg, assert.isExtensible, true).to.be.extensible;
8802
8821
  };
8803
- assert2.isNotExtensible = function(obj, msg) {
8804
- new Assertion(obj, msg, assert2.isNotExtensible, true).to.not.be.extensible;
8822
+ assert.isNotExtensible = function(obj, msg) {
8823
+ new Assertion(obj, msg, assert.isNotExtensible, true).to.not.be.extensible;
8805
8824
  };
8806
- assert2.isSealed = function(obj, msg) {
8807
- new Assertion(obj, msg, assert2.isSealed, true).to.be.sealed;
8825
+ assert.isSealed = function(obj, msg) {
8826
+ new Assertion(obj, msg, assert.isSealed, true).to.be.sealed;
8808
8827
  };
8809
- assert2.isNotSealed = function(obj, msg) {
8810
- new Assertion(obj, msg, assert2.isNotSealed, true).to.not.be.sealed;
8828
+ assert.isNotSealed = function(obj, msg) {
8829
+ new Assertion(obj, msg, assert.isNotSealed, true).to.not.be.sealed;
8811
8830
  };
8812
- assert2.isFrozen = function(obj, msg) {
8813
- new Assertion(obj, msg, assert2.isFrozen, true).to.be.frozen;
8831
+ assert.isFrozen = function(obj, msg) {
8832
+ new Assertion(obj, msg, assert.isFrozen, true).to.be.frozen;
8814
8833
  };
8815
- assert2.isNotFrozen = function(obj, msg) {
8816
- new Assertion(obj, msg, assert2.isNotFrozen, true).to.not.be.frozen;
8834
+ assert.isNotFrozen = function(obj, msg) {
8835
+ new Assertion(obj, msg, assert.isNotFrozen, true).to.not.be.frozen;
8817
8836
  };
8818
- assert2.isEmpty = function(val, msg) {
8819
- new Assertion(val, msg, assert2.isEmpty, true).to.be.empty;
8837
+ assert.isEmpty = function(val, msg) {
8838
+ new Assertion(val, msg, assert.isEmpty, true).to.be.empty;
8820
8839
  };
8821
- assert2.isNotEmpty = function(val, msg) {
8822
- new Assertion(val, msg, assert2.isNotEmpty, true).to.not.be.empty;
8840
+ assert.isNotEmpty = function(val, msg) {
8841
+ new Assertion(val, msg, assert.isNotEmpty, true).to.not.be.empty;
8823
8842
  };
8824
- assert2.containsSubset = function(val, exp, msg) {
8843
+ assert.containsSubset = function(val, exp, msg) {
8825
8844
  new Assertion(val, msg).to.containSubset(exp);
8826
8845
  };
8827
- assert2.doesNotContainSubset = function(val, exp, msg) {
8846
+ assert.doesNotContainSubset = function(val, exp, msg) {
8828
8847
  new Assertion(val, msg).to.not.containSubset(exp);
8829
8848
  };
8830
8849
  var aliases = [
@@ -8845,7 +8864,7 @@ var aliases = [
8845
8864
  ["containsSubset", "containSubset"]
8846
8865
  ];
8847
8866
  for (const [name, as] of aliases) {
8848
- assert2[as] = assert2[name];
8867
+ assert[as] = assert[name];
8849
8868
  }
8850
8869
  var used = [];
8851
8870
  function use(fn2) {
@@ -8855,7 +8874,7 @@ function use(fn2) {
8855
8874
  util: utils_exports,
8856
8875
  config,
8857
8876
  expect,
8858
- assert: assert2,
8877
+ assert,
8859
8878
  Assertion,
8860
8879
  ...should_exports
8861
8880
  };
@@ -9001,70 +9020,70 @@ function addCustomEqualityTesters(newTesters) {
9001
9020
  function getCustomEqualityTesters() {
9002
9021
  return globalThis[JEST_MATCHERS_OBJECT].customEqualityTesters;
9003
9022
  }
9004
- function equals(a3, b, customTesters, strictCheck) {
9023
+ function equals(a3, b2, customTesters, strictCheck) {
9005
9024
  customTesters = customTesters || [];
9006
- return eq(a3, b, [], [], customTesters, strictCheck ? hasKey : hasDefinedKey);
9025
+ return eq(a3, b2, [], [], customTesters, strictCheck ? hasKey : hasDefinedKey);
9007
9026
  }
9008
9027
  function isAsymmetric(obj) {
9009
9028
  return !!obj && typeof obj === "object" && "asymmetricMatch" in obj && isA("Function", obj.asymmetricMatch);
9010
9029
  }
9011
- function asymmetricMatch(a3, b) {
9030
+ function asymmetricMatch(a3, b2) {
9012
9031
  const asymmetricA = isAsymmetric(a3);
9013
- const asymmetricB = isAsymmetric(b);
9032
+ const asymmetricB = isAsymmetric(b2);
9014
9033
  if (asymmetricA && asymmetricB) {
9015
9034
  return void 0;
9016
9035
  }
9017
9036
  if (asymmetricA) {
9018
- return a3.asymmetricMatch(b);
9037
+ return a3.asymmetricMatch(b2);
9019
9038
  }
9020
9039
  if (asymmetricB) {
9021
- return b.asymmetricMatch(a3);
9040
+ return b2.asymmetricMatch(a3);
9022
9041
  }
9023
9042
  }
9024
- function eq(a3, b, aStack, bStack, customTesters, hasKey2) {
9043
+ function eq(a3, b2, aStack, bStack, customTesters, hasKey2) {
9025
9044
  let result = true;
9026
- const asymmetricResult = asymmetricMatch(a3, b);
9045
+ const asymmetricResult = asymmetricMatch(a3, b2);
9027
9046
  if (asymmetricResult !== void 0) {
9028
9047
  return asymmetricResult;
9029
9048
  }
9030
9049
  const testerContext = { equals };
9031
9050
  for (let i = 0; i < customTesters.length; i++) {
9032
- const customTesterResult = customTesters[i].call(testerContext, a3, b, customTesters);
9051
+ const customTesterResult = customTesters[i].call(testerContext, a3, b2, customTesters);
9033
9052
  if (customTesterResult !== void 0) {
9034
9053
  return customTesterResult;
9035
9054
  }
9036
9055
  }
9037
- if (typeof URL === "function" && a3 instanceof URL && b instanceof URL) {
9038
- return a3.href === b.href;
9056
+ if (typeof URL === "function" && a3 instanceof URL && b2 instanceof URL) {
9057
+ return a3.href === b2.href;
9039
9058
  }
9040
- if (Object.is(a3, b)) {
9059
+ if (Object.is(a3, b2)) {
9041
9060
  return true;
9042
9061
  }
9043
- if (a3 === null || b === null) {
9044
- return a3 === b;
9062
+ if (a3 === null || b2 === null) {
9063
+ return a3 === b2;
9045
9064
  }
9046
9065
  const className = Object.prototype.toString.call(a3);
9047
- if (className !== Object.prototype.toString.call(b)) {
9066
+ if (className !== Object.prototype.toString.call(b2)) {
9048
9067
  return false;
9049
9068
  }
9050
9069
  switch (className) {
9051
9070
  case "[object Boolean]":
9052
9071
  case "[object String]":
9053
9072
  case "[object Number]":
9054
- if (typeof a3 !== typeof b) {
9073
+ if (typeof a3 !== typeof b2) {
9055
9074
  return false;
9056
- } else if (typeof a3 !== "object" && typeof b !== "object") {
9057
- return Object.is(a3, b);
9075
+ } else if (typeof a3 !== "object" && typeof b2 !== "object") {
9076
+ return Object.is(a3, b2);
9058
9077
  } else {
9059
- return Object.is(a3.valueOf(), b.valueOf());
9078
+ return Object.is(a3.valueOf(), b2.valueOf());
9060
9079
  }
9061
9080
  case "[object Date]": {
9062
9081
  const numA = +a3;
9063
- const numB = +b;
9082
+ const numB = +b2;
9064
9083
  return numA === numB || Number.isNaN(numA) && Number.isNaN(numB);
9065
9084
  }
9066
9085
  case "[object RegExp]":
9067
- return a3.source === b.source && a3.flags === b.flags;
9086
+ return a3.source === b2.source && a3.flags === b2.flags;
9068
9087
  case "[object Temporal.Instant]":
9069
9088
  case "[object Temporal.ZonedDateTime]":
9070
9089
  case "[object Temporal.PlainDateTime]":
@@ -9072,32 +9091,32 @@ function eq(a3, b, aStack, bStack, customTesters, hasKey2) {
9072
9091
  case "[object Temporal.PlainTime]":
9073
9092
  case "[object Temporal.PlainYearMonth]":
9074
9093
  case "[object Temporal.PlainMonthDay]":
9075
- return a3.equals(b);
9094
+ return a3.equals(b2);
9076
9095
  case "[object Temporal.Duration]":
9077
- return a3.toString() === b.toString();
9096
+ return a3.toString() === b2.toString();
9078
9097
  }
9079
- if (typeof a3 !== "object" || typeof b !== "object") {
9098
+ if (typeof a3 !== "object" || typeof b2 !== "object") {
9080
9099
  return false;
9081
9100
  }
9082
- if (isDomNode(a3) && isDomNode(b)) {
9083
- return a3.isEqualNode(b);
9101
+ if (isDomNode(a3) && isDomNode(b2)) {
9102
+ return a3.isEqualNode(b2);
9084
9103
  }
9085
9104
  let length = aStack.length;
9086
9105
  while (length--) {
9087
9106
  if (aStack[length] === a3) {
9088
- return bStack[length] === b;
9089
- } else if (bStack[length] === b) {
9107
+ return bStack[length] === b2;
9108
+ } else if (bStack[length] === b2) {
9090
9109
  return false;
9091
9110
  }
9092
9111
  }
9093
9112
  aStack.push(a3);
9094
- bStack.push(b);
9095
- if (className === "[object Array]" && a3.length !== b.length) {
9113
+ bStack.push(b2);
9114
+ if (className === "[object Array]" && a3.length !== b2.length) {
9096
9115
  return false;
9097
9116
  }
9098
- if (a3 instanceof Error && b instanceof Error) {
9117
+ if (a3 instanceof Error && b2 instanceof Error) {
9099
9118
  try {
9100
- return isErrorEqual(a3, b, aStack, bStack, customTesters, hasKey2);
9119
+ return isErrorEqual(a3, b2, aStack, bStack, customTesters, hasKey2);
9101
9120
  } finally {
9102
9121
  aStack.pop();
9103
9122
  bStack.pop();
@@ -9106,12 +9125,12 @@ function eq(a3, b, aStack, bStack, customTesters, hasKey2) {
9106
9125
  const aKeys = keys(a3, hasKey2);
9107
9126
  let key;
9108
9127
  let size = aKeys.length;
9109
- if (keys(b, hasKey2).length !== size) {
9128
+ if (keys(b2, hasKey2).length !== size) {
9110
9129
  return false;
9111
9130
  }
9112
9131
  while (size--) {
9113
9132
  key = aKeys[size];
9114
- result = hasKey2(b, key) && eq(a3[key], b[key], aStack, bStack, customTesters, hasKey2);
9133
+ result = hasKey2(b2, key) && eq(a3[key], b2[key], aStack, bStack, customTesters, hasKey2);
9115
9134
  if (!result) {
9116
9135
  return false;
9117
9136
  }
@@ -9120,15 +9139,15 @@ function eq(a3, b, aStack, bStack, customTesters, hasKey2) {
9120
9139
  bStack.pop();
9121
9140
  return result;
9122
9141
  }
9123
- function isErrorEqual(a3, b, aStack, bStack, customTesters, hasKey2) {
9124
- let result = Object.getPrototypeOf(a3) === Object.getPrototypeOf(b) && a3.name === b.name && a3.message === b.message;
9125
- if (typeof b.cause !== "undefined") {
9126
- result && (result = eq(a3.cause, b.cause, aStack, bStack, customTesters, hasKey2));
9142
+ function isErrorEqual(a3, b2, aStack, bStack, customTesters, hasKey2) {
9143
+ let result = Object.getPrototypeOf(a3) === Object.getPrototypeOf(b2) && a3.name === b2.name && a3.message === b2.message;
9144
+ if (typeof b2.cause !== "undefined") {
9145
+ result && (result = eq(a3.cause, b2.cause, aStack, bStack, customTesters, hasKey2));
9127
9146
  }
9128
- if (a3 instanceof AggregateError && b instanceof AggregateError) {
9129
- result && (result = eq(a3.errors, b.errors, aStack, bStack, customTesters, hasKey2));
9147
+ if (a3 instanceof AggregateError && b2 instanceof AggregateError) {
9148
+ result && (result = eq(a3.errors, b2.errors, aStack, bStack, customTesters, hasKey2));
9130
9149
  }
9131
- result && (result = eq({ ...a3 }, { ...b }, aStack, bStack, customTesters, hasKey2));
9150
+ result && (result = eq({ ...a3 }, { ...b2 }, aStack, bStack, customTesters, hasKey2));
9132
9151
  return result;
9133
9152
  }
9134
9153
  function keys(obj, hasKey2) {
@@ -9182,34 +9201,34 @@ var IteratorSymbol = Symbol.iterator;
9182
9201
  function hasIterator(object2) {
9183
9202
  return !!(object2 != null && object2[IteratorSymbol]);
9184
9203
  }
9185
- function iterableEquality(a3, b, customTesters = [], aStack = [], bStack = []) {
9186
- if (typeof a3 !== "object" || typeof b !== "object" || Array.isArray(a3) || Array.isArray(b) || !hasIterator(a3) || !hasIterator(b)) {
9204
+ function iterableEquality(a3, b2, customTesters = [], aStack = [], bStack = []) {
9205
+ if (typeof a3 !== "object" || typeof b2 !== "object" || Array.isArray(a3) || Array.isArray(b2) || !hasIterator(a3) || !hasIterator(b2)) {
9187
9206
  return void 0;
9188
9207
  }
9189
- if (a3.constructor !== b.constructor) {
9208
+ if (a3.constructor !== b2.constructor) {
9190
9209
  return false;
9191
9210
  }
9192
9211
  let length = aStack.length;
9193
9212
  while (length--) {
9194
9213
  if (aStack[length] === a3) {
9195
- return bStack[length] === b;
9214
+ return bStack[length] === b2;
9196
9215
  }
9197
9216
  }
9198
9217
  aStack.push(a3);
9199
- bStack.push(b);
9218
+ bStack.push(b2);
9200
9219
  const filteredCustomTesters = [...customTesters.filter((t) => t !== iterableEquality), iterableEqualityWithStack];
9201
- function iterableEqualityWithStack(a4, b2) {
9202
- return iterableEquality(a4, b2, [...customTesters], [...aStack], [...bStack]);
9220
+ function iterableEqualityWithStack(a4, b3) {
9221
+ return iterableEquality(a4, b3, [...customTesters], [...aStack], [...bStack]);
9203
9222
  }
9204
9223
  if (a3.size !== void 0) {
9205
- if (a3.size !== b.size) {
9224
+ if (a3.size !== b2.size) {
9206
9225
  return false;
9207
9226
  } else if (isA("Set", a3) || isImmutableUnorderedSet(a3)) {
9208
9227
  let allFound = true;
9209
9228
  for (const aValue of a3) {
9210
- if (!b.has(aValue)) {
9229
+ if (!b2.has(aValue)) {
9211
9230
  let has = false;
9212
- for (const bValue of b) {
9231
+ for (const bValue of b2) {
9213
9232
  const isEqual = equals(aValue, bValue, filteredCustomTesters);
9214
9233
  if (isEqual === true) {
9215
9234
  has = true;
@@ -9227,9 +9246,9 @@ function iterableEquality(a3, b, customTesters = [], aStack = [], bStack = []) {
9227
9246
  } else if (isA("Map", a3) || isImmutableUnorderedKeyed(a3)) {
9228
9247
  let allFound = true;
9229
9248
  for (const aEntry of a3) {
9230
- if (!b.has(aEntry[0]) || !equals(aEntry[1], b.get(aEntry[0]), filteredCustomTesters)) {
9249
+ if (!b2.has(aEntry[0]) || !equals(aEntry[1], b2.get(aEntry[0]), filteredCustomTesters)) {
9231
9250
  let has = false;
9232
- for (const bEntry of b) {
9251
+ for (const bEntry of b2) {
9233
9252
  const matchedKey = equals(aEntry[0], bEntry[0], filteredCustomTesters);
9234
9253
  let matchedValue = false;
9235
9254
  if (matchedKey === true) {
@@ -9250,7 +9269,7 @@ function iterableEquality(a3, b, customTesters = [], aStack = [], bStack = []) {
9250
9269
  return allFound;
9251
9270
  }
9252
9271
  }
9253
- const bIterator = b[IteratorSymbol]();
9272
+ const bIterator = b2[IteratorSymbol]();
9254
9273
  for (const aValue of a3) {
9255
9274
  const nextB = bIterator.next();
9256
9275
  if (nextB.done || !equals(aValue, nextB.value, filteredCustomTesters)) {
@@ -9262,7 +9281,7 @@ function iterableEquality(a3, b, customTesters = [], aStack = [], bStack = []) {
9262
9281
  }
9263
9282
  if (!isImmutableList(a3) && !isImmutableOrderedKeyed(a3) && !isImmutableOrderedSet(a3) && !isImmutableRecord(a3)) {
9264
9283
  const aEntries = Object.entries(a3);
9265
- const bEntries = Object.entries(b);
9284
+ const bEntries = Object.entries(b2);
9266
9285
  if (!equals(aEntries, bEntries, filteredCustomTesters)) {
9267
9286
  return false;
9268
9287
  }
@@ -9301,22 +9320,22 @@ function subsetEquality(object2, subset, customTesters = []) {
9301
9320
  };
9302
9321
  return subsetEqualityWithContext()(object2, subset);
9303
9322
  }
9304
- function typeEquality(a3, b) {
9305
- if (a3 == null || b == null || a3.constructor === b.constructor) {
9323
+ function typeEquality(a3, b2) {
9324
+ if (a3 == null || b2 == null || a3.constructor === b2.constructor) {
9306
9325
  return void 0;
9307
9326
  }
9308
9327
  return false;
9309
9328
  }
9310
- function arrayBufferEquality(a3, b) {
9329
+ function arrayBufferEquality(a3, b2) {
9311
9330
  let dataViewA = a3;
9312
- let dataViewB = b;
9313
- if (!(a3 instanceof DataView && b instanceof DataView)) {
9314
- if (!(a3 instanceof ArrayBuffer) || !(b instanceof ArrayBuffer)) {
9331
+ let dataViewB = b2;
9332
+ if (!(a3 instanceof DataView && b2 instanceof DataView)) {
9333
+ if (!(a3 instanceof ArrayBuffer) || !(b2 instanceof ArrayBuffer)) {
9315
9334
  return void 0;
9316
9335
  }
9317
9336
  try {
9318
9337
  dataViewA = new DataView(a3);
9319
- dataViewB = new DataView(b);
9338
+ dataViewB = new DataView(b2);
9320
9339
  } catch {
9321
9340
  return void 0;
9322
9341
  }
@@ -9331,14 +9350,14 @@ function arrayBufferEquality(a3, b) {
9331
9350
  }
9332
9351
  return true;
9333
9352
  }
9334
- function sparseArrayEquality(a3, b, customTesters = []) {
9335
- if (!Array.isArray(a3) || !Array.isArray(b)) {
9353
+ function sparseArrayEquality(a3, b2, customTesters = []) {
9354
+ if (!Array.isArray(a3) || !Array.isArray(b2)) {
9336
9355
  return void 0;
9337
9356
  }
9338
9357
  const aKeys = Object.keys(a3);
9339
- const bKeys = Object.keys(b);
9358
+ const bKeys = Object.keys(b2);
9340
9359
  const filteredCustomTesters = customTesters.filter((t) => t !== sparseArrayEquality);
9341
- return equals(a3, b, filteredCustomTesters, true) && equals(aKeys, bKeys);
9360
+ return equals(a3, b2, filteredCustomTesters, true) && equals(aKeys, bKeys);
9342
9361
  }
9343
9362
  function generateToBeMessage(deepEqualityName, expected = "#{this}", actual = "#{exp}") {
9344
9363
  const toBeMessage = `expected ${expected} to be ${actual} // Object.is equality`;
@@ -10030,7 +10049,7 @@ var JestChaiExpect = (chai2, utils) => {
10030
10049
  return this.assert(pass, `expected #{this} to be close to #{exp}, received difference is ${receivedDiff}, but expected ${expectedDiff}`, `expected #{this} to not be close to #{exp}, received difference is ${receivedDiff}, but expected ${expectedDiff}`, received, expected, false);
10031
10050
  });
10032
10051
  function assertIsMock(assertion) {
10033
- if (!isMockFunction2(assertion._obj)) {
10052
+ if (!isMockFunction(assertion._obj)) {
10034
10053
  throw new TypeError(`${utils.inspect(assertion._obj)} is not a spy or a call to a spy!`);
10035
10054
  }
10036
10055
  }
@@ -10070,8 +10089,8 @@ var JestChaiExpect = (chai2, utils) => {
10070
10089
  throw new AssertionError2(msg);
10071
10090
  }
10072
10091
  });
10073
- function equalsArgumentArray(a3, b) {
10074
- return a3.length === b.length && a3.every((aItem, i) => equals(aItem, b[i], [...customTesters, iterableEquality]));
10092
+ function equalsArgumentArray(a3, b2) {
10093
+ return a3.length === b2.length && a3.every((aItem, i) => equals(aItem, b2[i], [...customTesters, iterableEquality]));
10075
10094
  }
10076
10095
  def(["toHaveBeenCalledWith", "toBeCalledWith"], function(...args) {
10077
10096
  const spy = getSpy(this);
@@ -10132,14 +10151,14 @@ var JestChaiExpect = (chai2, utils) => {
10132
10151
  }
10133
10152
  def(["toHaveBeenCalledBefore"], function(resultSpy, failIfNoFirstInvocation = true) {
10134
10153
  const expectSpy = getSpy(this);
10135
- if (!isMockFunction2(resultSpy)) {
10154
+ if (!isMockFunction(resultSpy)) {
10136
10155
  throw new TypeError(`${utils.inspect(resultSpy)} is not a spy or a call to a spy`);
10137
10156
  }
10138
10157
  this.assert(isSpyCalledBeforeAnotherSpy(expectSpy, resultSpy, failIfNoFirstInvocation), `expected "${expectSpy.getMockName()}" to have been called before "${resultSpy.getMockName()}"`, `expected "${expectSpy.getMockName()}" to not have been called before "${resultSpy.getMockName()}"`, resultSpy, expectSpy);
10139
10158
  });
10140
10159
  def(["toHaveBeenCalledAfter"], function(resultSpy, failIfNoFirstInvocation = true) {
10141
10160
  const expectSpy = getSpy(this);
10142
- if (!isMockFunction2(resultSpy)) {
10161
+ if (!isMockFunction(resultSpy)) {
10143
10162
  throw new TypeError(`${utils.inspect(resultSpy)} is not a spy or a call to a spy`);
10144
10163
  }
10145
10164
  this.assert(isSpyCalledBeforeAnotherSpy(resultSpy, expectSpy, failIfNoFirstInvocation), `expected "${expectSpy.getMockName()}" to have been called after "${resultSpy.getMockName()}"`, `expected "${expectSpy.getMockName()}" to not have been called after "${resultSpy.getMockName()}"`, resultSpy, expectSpy);
@@ -10373,15 +10392,15 @@ var JestChaiExpect = (chai2, utils) => {
10373
10392
  });
10374
10393
  };
10375
10394
  function ordinalOf(i) {
10376
- const j = i % 10;
10377
- const k = i % 100;
10378
- if (j === 1 && k !== 11) {
10395
+ const j2 = i % 10;
10396
+ const k2 = i % 100;
10397
+ if (j2 === 1 && k2 !== 11) {
10379
10398
  return `${i}st`;
10380
10399
  }
10381
- if (j === 2 && k !== 12) {
10400
+ if (j2 === 2 && k2 !== 12) {
10382
10401
  return `${i}nd`;
10383
10402
  }
10384
- if (j === 3 && k !== 13) {
10403
+ if (j2 === 3 && k2 !== 13) {
10385
10404
  return `${i}rd`;
10386
10405
  }
10387
10406
  return `${i}th`;
@@ -10749,81 +10768,70 @@ function parseSingleV8Stack(raw) {
10749
10768
  };
10750
10769
  }
10751
10770
 
10752
- // ../../node_modules/.pnpm/strip-literal@3.0.0/node_modules/strip-literal/dist/index.mjs
10771
+ // ../../node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.mjs
10753
10772
  var import_js_tokens = chunkEMMSS5I5_cjs.__toESM(require_js_tokens(), 1);
10754
- function stripLiteralJsTokens(code, options) {
10755
- const FILL = " ";
10756
- const FILL_COMMENT = " ";
10757
- let result = "";
10758
- const tokens = [];
10759
- for (const token of (0, import_js_tokens.default)(code, { jsx: false })) {
10760
- tokens.push(token);
10761
- if (token.type === "SingleLineComment") {
10762
- result += FILL_COMMENT.repeat(token.value.length);
10763
- continue;
10764
- }
10765
- if (token.type === "MultiLineComment") {
10766
- result += token.value.replace(/[^\n]/g, FILL_COMMENT);
10767
- continue;
10773
+ var FILL_COMMENT = " ";
10774
+ function stripLiteralFromToken(token, fillChar, filter) {
10775
+ if (token.type === "SingleLineComment") {
10776
+ return FILL_COMMENT.repeat(token.value.length);
10777
+ }
10778
+ if (token.type === "MultiLineComment") {
10779
+ return token.value.replace(/[^\n]/g, FILL_COMMENT);
10780
+ }
10781
+ if (token.type === "StringLiteral") {
10782
+ if (!token.closed) {
10783
+ return token.value;
10768
10784
  }
10769
- if (token.type === "StringLiteral") {
10770
- if (!token.closed) {
10771
- result += token.value;
10772
- continue;
10773
- }
10774
- const body = token.value.slice(1, -1);
10775
- {
10776
- result += token.value[0] + FILL.repeat(body.length) + token.value[token.value.length - 1];
10777
- continue;
10778
- }
10785
+ const body = token.value.slice(1, -1);
10786
+ if (filter(body)) {
10787
+ return token.value[0] + fillChar.repeat(body.length) + token.value[token.value.length - 1];
10779
10788
  }
10780
- if (token.type === "NoSubstitutionTemplate") {
10781
- const body = token.value.slice(1, -1);
10782
- {
10783
- result += `\`${body.replace(/[^\n]/g, FILL)}\``;
10784
- continue;
10785
- }
10789
+ }
10790
+ if (token.type === "NoSubstitutionTemplate") {
10791
+ const body = token.value.slice(1, -1);
10792
+ if (filter(body)) {
10793
+ return `\`${body.replace(/[^\n]/g, fillChar)}\``;
10786
10794
  }
10787
- if (token.type === "RegularExpressionLiteral") {
10788
- const body = token.value;
10789
- {
10790
- result += body.replace(/\/(.*)\/(\w?)$/g, (_, $1, $2) => `/${FILL.repeat($1.length)}/${$2}`);
10791
- continue;
10792
- }
10795
+ }
10796
+ if (token.type === "RegularExpressionLiteral") {
10797
+ const body = token.value;
10798
+ if (filter(body)) {
10799
+ return body.replace(/\/(.*)\/(\w?)$/g, (_, $1, $2) => `/${fillChar.repeat($1.length)}/${$2}`);
10793
10800
  }
10794
- if (token.type === "TemplateHead") {
10795
- const body = token.value.slice(1, -2);
10796
- {
10797
- result += `\`${body.replace(/[^\n]/g, FILL)}\${`;
10798
- continue;
10799
- }
10801
+ }
10802
+ if (token.type === "TemplateHead") {
10803
+ const body = token.value.slice(1, -2);
10804
+ if (filter(body)) {
10805
+ return `\`${body.replace(/[^\n]/g, fillChar)}\${`;
10800
10806
  }
10801
- if (token.type === "TemplateTail") {
10802
- const body = token.value.slice(0, -2);
10803
- {
10804
- result += `}${body.replace(/[^\n]/g, FILL)}\``;
10805
- continue;
10806
- }
10807
+ }
10808
+ if (token.type === "TemplateTail") {
10809
+ const body = token.value.slice(0, -2);
10810
+ if (filter(body)) {
10811
+ return `}${body.replace(/[^\n]/g, fillChar)}\``;
10807
10812
  }
10808
- if (token.type === "TemplateMiddle") {
10809
- const body = token.value.slice(1, -2);
10810
- {
10811
- result += `}${body.replace(/[^\n]/g, FILL)}\${`;
10812
- continue;
10813
- }
10813
+ }
10814
+ if (token.type === "TemplateMiddle") {
10815
+ const body = token.value.slice(1, -2);
10816
+ if (filter(body)) {
10817
+ return `}${body.replace(/[^\n]/g, fillChar)}\${`;
10814
10818
  }
10815
- result += token.value;
10816
10819
  }
10820
+ return token.value;
10821
+ }
10822
+ function optionsWithDefaults(options) {
10817
10823
  return {
10818
- result,
10819
- tokens
10824
+ fillChar: " ",
10825
+ filter: (() => true)
10820
10826
  };
10821
10827
  }
10822
10828
  function stripLiteral(code, options) {
10823
- return stripLiteralDetailed(code).result;
10824
- }
10825
- function stripLiteralDetailed(code, options) {
10826
- return stripLiteralJsTokens(code);
10829
+ let result = "";
10830
+ const _options = optionsWithDefaults();
10831
+ for (const token of (0, import_js_tokens.default)(code, { jsx: false })) {
10832
+ result += stripLiteralFromToken(token, _options.fillChar, _options.filter);
10833
+ }
10834
+ return result;
10827
10835
  }
10828
10836
 
10829
10837
  // ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
@@ -11249,7 +11257,7 @@ var it = test3;
11249
11257
  var runner;
11250
11258
  var defaultSuite;
11251
11259
  var currentTestFilepath;
11252
- function assert3(condition, message) {
11260
+ function assert2(condition, message) {
11253
11261
  if (!condition) {
11254
11262
  throw new Error(`Vitest failed to find ${message}. This is a bug in Vitest. Please, open an issue with reproduction.`);
11255
11263
  }
@@ -11258,12 +11266,12 @@ function getTestFilepath() {
11258
11266
  return currentTestFilepath;
11259
11267
  }
11260
11268
  function getRunner() {
11261
- assert3(runner, "the runner");
11269
+ assert2(runner, "the runner");
11262
11270
  return runner;
11263
11271
  }
11264
11272
  function getCurrentSuite() {
11265
11273
  const currentSuite = collectorContext.currentSuite || defaultSuite;
11266
- assert3(currentSuite, "the current suite");
11274
+ assert2(currentSuite, "the current suite");
11267
11275
  return currentSuite;
11268
11276
  }
11269
11277
  function createSuiteHooks() {
@@ -11651,8 +11659,8 @@ function formatTemplateString(cases, args) {
11651
11659
  const res = [];
11652
11660
  for (let i = 0; i < Math.floor(args.length / header.length); i++) {
11653
11661
  const oneCase = {};
11654
- for (let j = 0; j < header.length; j++) {
11655
- oneCase[header[j]] = args[i * header.length + j];
11662
+ for (let j2 = 0; j2 < header.length; j2++) {
11663
+ oneCase[header[j2]] = args[i * header.length + j2];
11656
11664
  }
11657
11665
  res.push(oneCase);
11658
11666
  }
@@ -11905,25 +11913,25 @@ function encodeUint8Array(bytes) {
11905
11913
  for (let i = 0; i < len; i += 3) {
11906
11914
  if (len === i + 1) {
11907
11915
  const a3 = (bytes[i] & 252) >> 2;
11908
- const b = (bytes[i] & 3) << 4;
11916
+ const b2 = (bytes[i] & 3) << 4;
11909
11917
  base64 += table[a3];
11910
- base64 += table[b];
11918
+ base64 += table[b2];
11911
11919
  base64 += "==";
11912
11920
  } else if (len === i + 2) {
11913
11921
  const a3 = (bytes[i] & 252) >> 2;
11914
- const b = (bytes[i] & 3) << 4 | (bytes[i + 1] & 240) >> 4;
11922
+ const b2 = (bytes[i] & 3) << 4 | (bytes[i + 1] & 240) >> 4;
11915
11923
  const c = (bytes[i + 1] & 15) << 2;
11916
11924
  base64 += table[a3];
11917
- base64 += table[b];
11925
+ base64 += table[b2];
11918
11926
  base64 += table[c];
11919
11927
  base64 += "=";
11920
11928
  } else {
11921
11929
  const a3 = (bytes[i] & 252) >> 2;
11922
- const b = (bytes[i] & 3) << 4 | (bytes[i + 1] & 240) >> 4;
11930
+ const b2 = (bytes[i] & 3) << 4 | (bytes[i + 1] & 240) >> 4;
11923
11931
  const c = (bytes[i + 1] & 15) << 2 | (bytes[i + 2] & 192) >> 6;
11924
11932
  const d = bytes[i + 2] & 63;
11925
11933
  base64 += table[a3];
11926
- base64 += table[b];
11934
+ base64 += table[b2];
11927
11935
  base64 += table[c];
11928
11936
  base64 += table[d];
11929
11937
  }
@@ -11988,7 +11996,7 @@ function createTestHook(name, handler) {
11988
11996
  };
11989
11997
  }
11990
11998
 
11991
- // ../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.21_@vitest+ui@3.2.4_jiti@2.6.0_jsdom_57244f75a0f6ad2fb70ec052bfd7aeae/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js
11999
+ // ../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.23_@vitest+ui@3.2.4_jiti@2.6.1_jsdom_dd8907bbeba1b9babb528cd8e0e32ee8/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js
11992
12000
  var NAME_WORKER_STATE = "__vitest_worker__";
11993
12001
  function getWorkerState() {
11994
12002
  const workerState = globalThis[NAME_WORKER_STATE];
@@ -12036,10 +12044,10 @@ async function waitForImportsToResolve() {
12036
12044
  await waitForImportsToResolve();
12037
12045
  }
12038
12046
 
12039
- // ../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.21_@vitest+ui@3.2.4_jiti@2.6.0_jsdom_57244f75a0f6ad2fb70ec052bfd7aeae/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js
12047
+ // ../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.23_@vitest+ui@3.2.4_jiti@2.6.1_jsdom_dd8907bbeba1b9babb528cd8e0e32ee8/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js
12040
12048
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
12041
- function getDefaultExportFromCjs3(x) {
12042
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
12049
+ function getDefaultExportFromCjs3(x2) {
12050
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
12043
12051
  }
12044
12052
 
12045
12053
  // ../../node_modules/.pnpm/@vitest+snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js
@@ -12138,8 +12146,8 @@ function decode(mappings) {
12138
12146
  function sort(line) {
12139
12147
  line.sort(sortComparator$1);
12140
12148
  }
12141
- function sortComparator$1(a3, b) {
12142
- return a3[0] - b[0];
12149
+ function sortComparator$1(a3, b2) {
12150
+ return a3[0] - b2[0];
12143
12151
  }
12144
12152
  var schemeRegex = /^[\w+.-]+:\/\//;
12145
12153
  var urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/;
@@ -12353,8 +12361,8 @@ function nextUnsortedSegmentLine(mappings, start) {
12353
12361
  return mappings.length;
12354
12362
  }
12355
12363
  function isSorted(line) {
12356
- for (let j = 1; j < line.length; j++) {
12357
- if (line[j][COLUMN] < line[j - 1][COLUMN]) {
12364
+ for (let j2 = 1; j2 < line.length; j2++) {
12365
+ if (line[j2][COLUMN] < line[j2 - 1][COLUMN]) {
12358
12366
  return false;
12359
12367
  }
12360
12368
  }
@@ -12365,8 +12373,8 @@ function sortSegments(line, owned) {
12365
12373
  line = line.slice();
12366
12374
  return line.sort(sortComparator);
12367
12375
  }
12368
- function sortComparator(a3, b) {
12369
- return a3[COLUMN] - b[COLUMN];
12376
+ function sortComparator(a3, b2) {
12377
+ return a3[COLUMN] - b2[COLUMN];
12370
12378
  }
12371
12379
  var found = false;
12372
12380
  function binarySearch(haystack, needle, low, high) {
@@ -12499,8 +12507,8 @@ function traceSegmentInternal(segments, memo, line, column, bias) {
12499
12507
  return -1;
12500
12508
  return index2;
12501
12509
  }
12502
- function notNullish2(v) {
12503
- return v != null;
12510
+ function notNullish2(v2) {
12511
+ return v2 != null;
12504
12512
  }
12505
12513
  function isPrimitive3(value) {
12506
12514
  return value === null || typeof value !== "function" && typeof value !== "object";
@@ -12715,7 +12723,7 @@ function parseErrorStacktrace(e, options = {}) {
12715
12723
  }
12716
12724
  }
12717
12725
  if (options.frameFilter) {
12718
- stackFrames = stackFrames.filter((f3) => options.frameFilter(e, f3) !== false);
12726
+ stackFrames = stackFrames.filter((f4) => options.frameFilter(e, f4) !== false);
12719
12727
  }
12720
12728
  e.stacks = stackFrames;
12721
12729
  return stackFrames;
@@ -12725,8 +12733,8 @@ try {
12725
12733
  if (Array.isArray(getPromiseDetails(Promise.resolve()))) ;
12726
12734
  } catch (notNode) {
12727
12735
  }
12728
- function getDefaultExportFromCjs4(x) {
12729
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
12736
+ function getDefaultExportFromCjs4(x2) {
12737
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
12730
12738
  }
12731
12739
  var reservedWords2 = {
12732
12740
  keyword: [
@@ -12780,7 +12788,7 @@ var reservedWords2 = {
12780
12788
  };
12781
12789
  new Set(reservedWords2.keyword);
12782
12790
  new Set(reservedWords2.strict);
12783
- var f2 = {
12791
+ var f3 = {
12784
12792
  reset: [0, 0],
12785
12793
  bold: [1, 22, "\x1B[22m\x1B[1m"],
12786
12794
  dim: [2, 22, "\x1B[22m\x1B[2m"],
@@ -12823,7 +12831,7 @@ var f2 = {
12823
12831
  bgCyanBright: [106, 49],
12824
12832
  bgWhiteBright: [107, 49]
12825
12833
  };
12826
- var h2 = Object.entries(f2);
12834
+ var h3 = Object.entries(f3);
12827
12835
  function a2(n) {
12828
12836
  return String(n);
12829
12837
  }
@@ -12835,27 +12843,27 @@ function C2(n = false) {
12835
12843
  }
12836
12844
  function p2(n = false) {
12837
12845
  let e = C2(n), i = (r2, t, c, o) => {
12838
- let l = "", s2 = 0;
12846
+ let l2 = "", s2 = 0;
12839
12847
  do
12840
- l += r2.substring(s2, o) + c, s2 = o + t.length, o = r2.indexOf(t, s2);
12848
+ l2 += r2.substring(s2, o) + c, s2 = o + t.length, o = r2.indexOf(t, s2);
12841
12849
  while (~o);
12842
- return l + r2.substring(s2);
12850
+ return l2 + r2.substring(s2);
12843
12851
  }, g = (r2, t, c = r2) => {
12844
- let o = (l) => {
12845
- let s2 = String(l), b = s2.indexOf(t, r2.length);
12846
- return ~b ? r2 + i(s2, t, c, b) + t : r2 + s2 + t;
12852
+ let o = (l2) => {
12853
+ let s2 = String(l2), b2 = s2.indexOf(t, r2.length);
12854
+ return ~b2 ? r2 + i(s2, t, c, b2) + t : r2 + s2 + t;
12847
12855
  };
12848
12856
  return o.open = r2, o.close = t, o;
12849
- }, u2 = {
12857
+ }, u3 = {
12850
12858
  isColorSupported: e
12851
12859
  }, d = (r2) => `\x1B[${r2}m`;
12852
- for (let [r2, t] of h2)
12853
- u2[r2] = e ? g(
12860
+ for (let [r2, t] of h3)
12861
+ u3[r2] = e ? g(
12854
12862
  d(t[0]),
12855
12863
  d(t[1]),
12856
12864
  t[2]
12857
12865
  ) : a2;
12858
- return u2;
12866
+ return u3;
12859
12867
  }
12860
12868
  p2();
12861
12869
  var lineSplitRE = /\r?\n/;
@@ -13040,7 +13048,7 @@ var hasRequiredNaturalCompare;
13040
13048
  function requireNaturalCompare() {
13041
13049
  if (hasRequiredNaturalCompare) return naturalCompare$1.exports;
13042
13050
  hasRequiredNaturalCompare = 1;
13043
- var naturalCompare2 = function(a3, b) {
13051
+ var naturalCompare2 = function(a3, b2) {
13044
13052
  var i, codeA, codeB = 1, posA = 0, posB = 0, alphabet = String.alphabet;
13045
13053
  function getCode(str, pos, code) {
13046
13054
  if (code) {
@@ -13050,12 +13058,12 @@ function requireNaturalCompare() {
13050
13058
  code = alphabet && alphabet.indexOf(str.charAt(pos));
13051
13059
  return code > -1 ? code + 76 : (code = str.charCodeAt(pos) || 0, code < 45 || code > 127) ? code : code < 46 ? 65 : code < 48 ? code - 1 : code < 58 ? code + 18 : code < 65 ? code - 11 : code < 91 ? code + 11 : code < 97 ? code - 37 : code < 123 ? code + 5 : code - 63;
13052
13060
  }
13053
- if ((a3 += "") != (b += "")) for (; codeB; ) {
13061
+ if ((a3 += "") != (b2 += "")) for (; codeB; ) {
13054
13062
  codeA = getCode(a3, posA++);
13055
- codeB = getCode(b, posB++);
13063
+ codeB = getCode(b2, posB++);
13056
13064
  if (codeA < 76 && codeB < 76 && codeA > 66 && codeB > 66) {
13057
13065
  codeA = getCode(a3, posA, posA);
13058
- codeB = getCode(b, posB, posA = i);
13066
+ codeB = getCode(b2, posB, posA = i);
13059
13067
  posB = i;
13060
13068
  }
13061
13069
  if (codeA != codeB) return codeA < codeB ? -1 : 1;
@@ -13246,14 +13254,14 @@ var CounterMap = class extends DefaultMap {
13246
13254
  return this._total;
13247
13255
  }
13248
13256
  let total = 0;
13249
- for (const x of this.values()) {
13250
- total += x;
13257
+ for (const x2 of this.values()) {
13258
+ total += x2;
13251
13259
  }
13252
13260
  return total;
13253
13261
  }
13254
13262
  };
13255
- function isSameStackPosition(x, y) {
13256
- return x.file === y.file && x.column === y.column && x.line === y.line;
13263
+ function isSameStackPosition(x2, y2) {
13264
+ return x2.file === y2.file && x2.column === y2.column && x2.line === y2.line;
13257
13265
  }
13258
13266
  var SnapshotState = class _SnapshotState {
13259
13267
  _counters = new CounterMap();
@@ -13666,11 +13674,11 @@ var SnapshotClient = class {
13666
13674
  }
13667
13675
  };
13668
13676
 
13669
- // ../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.21_@vitest+ui@3.2.4_jiti@2.6.0_jsdom_57244f75a0f6ad2fb70ec052bfd7aeae/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js
13677
+ // ../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.23_@vitest+ui@3.2.4_jiti@2.6.1_jsdom_dd8907bbeba1b9babb528cd8e0e32ee8/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js
13670
13678
  var RealDate = Date;
13671
13679
  var now2 = null;
13672
13680
  var MockDate = class _MockDate extends RealDate {
13673
- constructor(y, m2, d, h3, M, s2, ms) {
13681
+ constructor(y2, m2, d, h4, M2, s2, ms) {
13674
13682
  super();
13675
13683
  let date;
13676
13684
  switch (arguments.length) {
@@ -13679,15 +13687,15 @@ var MockDate = class _MockDate extends RealDate {
13679
13687
  else date = new RealDate();
13680
13688
  break;
13681
13689
  case 1:
13682
- date = new RealDate(y);
13690
+ date = new RealDate(y2);
13683
13691
  break;
13684
13692
  default:
13685
13693
  d = typeof d === "undefined" ? 1 : d;
13686
- h3 = h3 || 0;
13687
- M = M || 0;
13694
+ h4 = h4 || 0;
13695
+ M2 = M2 || 0;
13688
13696
  s2 = s2 || 0;
13689
13697
  ms = ms || 0;
13690
- date = new RealDate(y, m2, d, h3, M, s2, ms);
13698
+ date = new RealDate(y2, m2, d, h4, M2, s2, ms);
13691
13699
  break;
13692
13700
  }
13693
13701
  Object.setPrototypeOf(date, _MockDate.prototype);
@@ -13714,7 +13722,7 @@ function resetDate() {
13714
13722
  globalThis.Date = RealDate;
13715
13723
  }
13716
13724
 
13717
- // ../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.21_@vitest+ui@3.2.4_jiti@2.6.0_jsdom_57244f75a0f6ad2fb70ec052bfd7aeae/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js
13725
+ // ../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.23_@vitest+ui@3.2.4_jiti@2.6.1_jsdom_dd8907bbeba1b9babb528cd8e0e32ee8/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js
13718
13726
  var unsupported = [
13719
13727
  "matchSnapshot",
13720
13728
  "toMatchSnapshot",
@@ -14085,11 +14093,11 @@ function createExpect(test5) {
14085
14093
  const expect2 = (value, message) => {
14086
14094
  const { assertionCalls } = getState(expect2);
14087
14095
  setState({ assertionCalls: assertionCalls + 1 }, expect2);
14088
- const assert4 = expect(value, message);
14096
+ const assert3 = expect(value, message);
14089
14097
  const _test2 = test5 || getCurrentTest();
14090
14098
  if (_test2)
14091
- return assert4.withTest(_test2);
14092
- else return assert4;
14099
+ return assert3.withTest(_test2);
14100
+ else return assert3;
14093
14101
  };
14094
14102
  Object.assign(expect2, expect);
14095
14103
  Object.assign(expect2, globalThis[ASYMMETRIC_MATCHERS_OBJECT]);
@@ -14116,7 +14124,7 @@ function createExpect(test5) {
14116
14124
  };
14117
14125
  expect2.poll = createExpectPoll(expect2);
14118
14126
  expect2.unreachable = (message) => {
14119
- assert2.fail(`expected${message ? ` "${message}" ` : " "}not to be reached`);
14127
+ assert.fail(`expected${message ? ` "${message}" ` : " "}not to be reached`);
14120
14128
  };
14121
14129
  function assertions(expected) {
14122
14130
  const errorGen = () => new Error(`expected number of assertions to be ${expected}, but got ${expect2.getState().assertionCalls}`);
@@ -14235,10 +14243,10 @@ function requireCalledInOrder() {
14235
14243
  }
14236
14244
  return callMap[spy.id] < spy.callCount;
14237
14245
  }
14238
- function checkAdjacentCalls(callMap, spy, index2, spies2) {
14246
+ function checkAdjacentCalls(callMap, spy, index2, spies) {
14239
14247
  var calledBeforeNext = true;
14240
- if (index2 !== spies2.length - 1) {
14241
- calledBeforeNext = spy.calledBefore(spies2[index2 + 1]);
14248
+ if (index2 !== spies.length - 1) {
14249
+ calledBeforeNext = spy.calledBefore(spies[index2 + 1]);
14242
14250
  }
14243
14251
  if (hasCallsLeft(callMap, spy) && calledBeforeNext) {
14244
14252
  callMap[spy.id] += 1;
@@ -14246,9 +14254,9 @@ function requireCalledInOrder() {
14246
14254
  }
14247
14255
  return false;
14248
14256
  }
14249
- function calledInOrder(spies2) {
14257
+ function calledInOrder(spies) {
14250
14258
  var callMap = {};
14251
- var _spies = arguments.length > 1 ? arguments : spies2;
14259
+ var _spies = arguments.length > 1 ? arguments : spies;
14252
14260
  return every2(_spies, checkAdjacentCalls.bind(null, callMap));
14253
14261
  }
14254
14262
  calledInOrder_1 = calledInOrder;
@@ -14345,15 +14353,15 @@ function requireOrderByFirstCall() {
14345
14353
  hasRequiredOrderByFirstCall = 1;
14346
14354
  var sort2 = requireArray().sort;
14347
14355
  var slice = requireArray().slice;
14348
- function comparator(a3, b) {
14356
+ function comparator(a3, b2) {
14349
14357
  var aCall = a3.getCall(0);
14350
- var bCall = b.getCall(0);
14358
+ var bCall = b2.getCall(0);
14351
14359
  var aId = aCall && aCall.callId || -1;
14352
14360
  var bId = bCall && bCall.callId || -1;
14353
14361
  return aId < bId ? -1 : 1;
14354
14362
  }
14355
- function orderByFirstCall(spies2) {
14356
- return sort2(slice(spies2), comparator);
14363
+ function orderByFirstCall(spies) {
14364
+ return sort2(slice(spies), comparator);
14357
14365
  }
14358
14366
  orderByFirstCall_1 = orderByFirstCall;
14359
14367
  return orderByFirstCall_1;
@@ -14680,11 +14688,11 @@ function requireFakeTimersSrc() {
14680
14688
  return 0;
14681
14689
  }
14682
14690
  const strings = str.split(":");
14683
- const l = strings.length;
14684
- let i = l;
14691
+ const l2 = strings.length;
14692
+ let i = l2;
14685
14693
  let ms = 0;
14686
14694
  let parsed;
14687
- if (l > 3 || !/^(\d\d:){0,2}\d\d?$/.test(str)) {
14695
+ if (l2 > 3 || !/^(\d\d:){0,2}\d\d?$/.test(str)) {
14688
14696
  throw new Error(
14689
14697
  "tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits"
14690
14698
  );
@@ -14694,7 +14702,7 @@ function requireFakeTimersSrc() {
14694
14702
  if (parsed >= 60) {
14695
14703
  throw new Error(`Invalid time ${str}`);
14696
14704
  }
14697
- ms += parsed * Math.pow(60, l - i - 1);
14705
+ ms += parsed * Math.pow(60, l2 - i - 1);
14698
14706
  }
14699
14707
  return ms * 1e3;
14700
14708
  }
@@ -14933,29 +14941,29 @@ ${job.error.stack.split("\n").slice(matchedLineIndex + 1).join("\n")}`;
14933
14941
  }
14934
14942
  return timer.id;
14935
14943
  }
14936
- function compareTimers(a3, b) {
14937
- if (a3.callAt < b.callAt) {
14944
+ function compareTimers(a3, b2) {
14945
+ if (a3.callAt < b2.callAt) {
14938
14946
  return -1;
14939
14947
  }
14940
- if (a3.callAt > b.callAt) {
14948
+ if (a3.callAt > b2.callAt) {
14941
14949
  return 1;
14942
14950
  }
14943
- if (a3.immediate && !b.immediate) {
14951
+ if (a3.immediate && !b2.immediate) {
14944
14952
  return -1;
14945
14953
  }
14946
- if (!a3.immediate && b.immediate) {
14954
+ if (!a3.immediate && b2.immediate) {
14947
14955
  return 1;
14948
14956
  }
14949
- if (a3.createdAt < b.createdAt) {
14957
+ if (a3.createdAt < b2.createdAt) {
14950
14958
  return -1;
14951
14959
  }
14952
- if (a3.createdAt > b.createdAt) {
14960
+ if (a3.createdAt > b2.createdAt) {
14953
14961
  return 1;
14954
14962
  }
14955
- if (a3.id < b.id) {
14963
+ if (a3.id < b2.id) {
14956
14964
  return -1;
14957
14965
  }
14958
- if (a3.id > b.id) {
14966
+ if (a3.id > b2.id) {
14959
14967
  return 1;
14960
14968
  }
14961
14969
  }
@@ -15066,10 +15074,10 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
15066
15074
  }
15067
15075
  }
15068
15076
  function uninstall(clock, config2) {
15069
- let method, i, l;
15077
+ let method, i, l2;
15070
15078
  const installedHrTime = "_hrtime";
15071
15079
  const installedNextTick = "_nextTick";
15072
- for (i = 0, l = clock.methods.length; i < l; i++) {
15080
+ for (i = 0, l2 = clock.methods.length; i < l2; i++) {
15073
15081
  method = clock.methods[i];
15074
15082
  if (method === "hrtime" && _global.process) {
15075
15083
  _global.process.hrtime = clock[installedHrTime];
@@ -15100,14 +15108,14 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
15100
15108
  }
15101
15109
  }
15102
15110
  if (clock.timersModuleMethods !== void 0) {
15103
- for (let j = 0; j < clock.timersModuleMethods.length; j++) {
15104
- const entry = clock.timersModuleMethods[j];
15111
+ for (let j2 = 0; j2 < clock.timersModuleMethods.length; j2++) {
15112
+ const entry = clock.timersModuleMethods[j2];
15105
15113
  timersModule[entry.methodName] = entry.original;
15106
15114
  }
15107
15115
  }
15108
15116
  if (clock.timersPromisesModuleMethods !== void 0) {
15109
- for (let j = 0; j < clock.timersPromisesModuleMethods.length; j++) {
15110
- const entry = clock.timersPromisesModuleMethods[j];
15117
+ for (let j2 = 0; j2 < clock.timersPromisesModuleMethods.length; j2++) {
15118
+ const entry = clock.timersPromisesModuleMethods[j2];
15111
15119
  timersPromisesModule[entry.methodName] = entry.original;
15112
15120
  }
15113
15121
  }
@@ -15612,7 +15620,7 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
15612
15620
  });
15613
15621
  };
15614
15622
  }
15615
- clock.reset = function reset2() {
15623
+ clock.reset = function reset() {
15616
15624
  nanos = 0;
15617
15625
  clock.timers = {};
15618
15626
  clock.jobs = [];
@@ -15683,7 +15691,7 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
15683
15691
  `non-existent timers and/or objects cannot be faked: '${timer}'`
15684
15692
  );
15685
15693
  }
15686
- let i, l;
15694
+ let i, l2;
15687
15695
  const clock = createClock(config2.now, config2.loopLimit);
15688
15696
  clock.shouldClearNativeTimers = config2.shouldClearNativeTimers;
15689
15697
  clock.uninstall = function() {
@@ -15734,7 +15742,7 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
15734
15742
  if (_global === globalObject && timersPromisesModule) {
15735
15743
  clock.timersPromisesModuleMethods = [];
15736
15744
  }
15737
- for (i = 0, l = clock.methods.length; i < l; i++) {
15745
+ for (i = 0, l2 = clock.methods.length; i < l2; i++) {
15738
15746
  const nameOfMethodToReplace = clock.methods[i];
15739
15747
  if (!isPresent[nameOfMethodToReplace]) {
15740
15748
  handleMissingTimer(nameOfMethodToReplace);
@@ -16319,7 +16327,7 @@ function createVitest() {
16319
16327
  return item;
16320
16328
  },
16321
16329
  isMockFunction(fn2) {
16322
- return isMockFunction2(fn2);
16330
+ return isMockFunction(fn2);
16323
16331
  },
16324
16332
  clearAllMocks() {
16325
16333
  [...mocks].reverse().forEach((spy) => spy.mockClear());
@@ -16400,7 +16408,7 @@ function getImporter(name) {
16400
16408
  return stack?.file || "";
16401
16409
  }
16402
16410
 
16403
- // ../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.21_@vitest+ui@3.2.4_jiti@2.6.0_jsdom_57244f75a0f6ad2fb70ec052bfd7aeae/node_modules/vitest/dist/chunks/benchmark.CYdenmiT.js
16411
+ // ../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.23_@vitest+ui@3.2.4_jiti@2.6.1_jsdom_dd8907bbeba1b9babb528cd8e0e32ee8/node_modules/vitest/dist/chunks/benchmark.CYdenmiT.js
16404
16412
  var benchFns = /* @__PURE__ */ new WeakMap();
16405
16413
  var benchOptsMap = /* @__PURE__ */ new WeakMap();
16406
16414
  var bench = createBenchmark(function(name, fn2 = noop, options = {}) {
@@ -16426,12 +16434,12 @@ function formatName2(name) {
16426
16434
  return typeof name === "string" ? name : typeof name === "function" ? name.name || "<anonymous>" : String(name);
16427
16435
  }
16428
16436
 
16429
- // ../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.21_@vitest+ui@3.2.4_jiti@2.6.0_jsdom_57244f75a0f6ad2fb70ec052bfd7aeae/node_modules/vitest/dist/chunks/index.CdQS2e2Q.js
16437
+ // ../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.23_@vitest+ui@3.2.4_jiti@2.6.1_jsdom_dd8907bbeba1b9babb528cd8e0e32ee8/node_modules/vitest/dist/chunks/index.CdQS2e2Q.js
16430
16438
  chunkEMMSS5I5_cjs.__toESM(require_dist(), 1);
16431
16439
  var assertType = function assertType2() {
16432
16440
  };
16433
16441
 
16434
- // ../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.21_@vitest+ui@3.2.4_jiti@2.6.0_jsdom_57244f75a0f6ad2fb70ec052bfd7aeae/node_modules/vitest/dist/index.js
16442
+ // ../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.23_@vitest+ui@3.2.4_jiti@2.6.1_jsdom_dd8907bbeba1b9babb528cd8e0e32ee8/node_modules/vitest/dist/index.js
16435
16443
  var import_expect_type2 = chunkEMMSS5I5_cjs.__toESM(require_dist(), 1);
16436
16444
  var export_expectTypeOf = import_expect_type2.expectTypeOf;
16437
16445
  /*! Bundled license information:
@@ -16474,7 +16482,7 @@ var export_expectTypeOf = import_expect_type2.expectTypeOf;
16474
16482
  * LICENSE file in the root directory of this source tree.
16475
16483
  *)
16476
16484
 
16477
- chai/chai.js:
16485
+ chai/index.js:
16478
16486
  (*!
16479
16487
  * Chai - flag utility
16480
16488
  * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
@@ -16728,7 +16736,7 @@ chai/chai.js:
16728
16736
 
16729
16737
  exports.afterAll = afterAll;
16730
16738
  exports.afterEach = afterEach;
16731
- exports.assert = assert2;
16739
+ exports.assert = assert;
16732
16740
  exports.assertType = assertType;
16733
16741
  exports.beforeAll = beforeAll;
16734
16742
  exports.beforeEach = beforeEach;
@@ -16747,5 +16755,5 @@ exports.suite = suite;
16747
16755
  exports.test = test3;
16748
16756
  exports.vi = vi;
16749
16757
  exports.vitest = vitest;
16750
- //# sourceMappingURL=dist-KKO3PIUK.cjs.map
16751
- //# sourceMappingURL=dist-KKO3PIUK.cjs.map
16758
+ //# sourceMappingURL=dist-LDTK3TIP.cjs.map
16759
+ //# sourceMappingURL=dist-LDTK3TIP.cjs.map