js-style-kit 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/dist/{chunk-PSPFBSJV.js → chunk-246GSZSY.js} +1 -1
  2. package/dist/chunk-246GSZSY.js.map +1 -0
  3. package/dist/{chunk-HSSATLSU.js → chunk-24D5VXCF.js} +3 -3
  4. package/dist/chunk-24D5VXCF.js.map +1 -0
  5. package/dist/{chunk-YZ5DAWYS.js → chunk-26SVGV32.js} +2 -2
  6. package/dist/chunk-26SVGV32.js.map +1 -0
  7. package/dist/{chunk-4ELR5S33.js → chunk-2F7EYOEC.js} +2 -2
  8. package/dist/chunk-2F7EYOEC.js.map +1 -0
  9. package/dist/{chunk-QCFCGFZH.js → chunk-3OHUY7NC.js} +2 -1
  10. package/dist/chunk-3OHUY7NC.js.map +1 -0
  11. package/dist/{chunk-GE5ZPFK5.js → chunk-3SHRYTUT.js} +1 -1
  12. package/dist/chunk-3SHRYTUT.js.map +1 -0
  13. package/dist/{chunk-TQVG2NFE.js → chunk-4RAXUOL2.js} +638 -290
  14. package/dist/chunk-4RAXUOL2.js.map +1 -0
  15. package/dist/{chunk-UTXH73LC.js → chunk-DYUKLT7Y.js} +1 -1
  16. package/dist/chunk-DYUKLT7Y.js.map +1 -0
  17. package/dist/{chunk-7FYMBY3Z.js → chunk-E5VWJJPO.js} +3 -3
  18. package/dist/chunk-E5VWJJPO.js.map +1 -0
  19. package/dist/{chunk-GPY6RCW5.js → chunk-FFDZIX5V.js} +2 -2
  20. package/dist/chunk-FFDZIX5V.js.map +1 -0
  21. package/dist/chunk-FKHL7GEP.js +21 -0
  22. package/dist/chunk-FKHL7GEP.js.map +1 -0
  23. package/dist/{chunk-CNGG6QVG.js → chunk-FZZIRGNP.js} +3 -3
  24. package/dist/chunk-FZZIRGNP.js.map +1 -0
  25. package/dist/{chunk-W7UPJFRB.js → chunk-ODYLQTYI.js} +15 -22
  26. package/dist/chunk-ODYLQTYI.js.map +1 -0
  27. package/dist/{chunk-CPBLULS5.js → chunk-UWPH7ZM3.js} +2 -2
  28. package/dist/chunk-UWPH7ZM3.js.map +1 -0
  29. package/dist/{chunk-CRVC7SG2.js → chunk-XCPOAYGQ.js} +29 -19
  30. package/dist/chunk-XCPOAYGQ.js.map +1 -0
  31. package/dist/eslint/constants.d.ts +8 -1
  32. package/dist/eslint/constants.js +1 -1
  33. package/dist/eslint/ignores.d.ts +7 -0
  34. package/dist/eslint/ignores.js +2 -2
  35. package/dist/eslint/index.d.ts +5 -3
  36. package/dist/eslint/index.js +13 -13
  37. package/dist/eslint/index.test.js +91 -44
  38. package/dist/eslint/index.test.js.map +1 -1
  39. package/dist/eslint/javascript/config.d.ts +14 -3
  40. package/dist/eslint/javascript/config.js +3 -3
  41. package/dist/eslint/javascript/rules.d.ts +13 -1
  42. package/dist/eslint/javascript/rules.js +1 -1
  43. package/dist/eslint/jsdoc/config.d.ts +11 -2
  44. package/dist/eslint/jsdoc/config.js +3 -3
  45. package/dist/eslint/jsdoc/rules.d.ts +12 -14
  46. package/dist/eslint/jsdoc/rules.js +1 -1
  47. package/dist/eslint/jsdoc/types.d.ts +52 -0
  48. package/dist/eslint/perfectionist/config.d.ts +4 -2
  49. package/dist/eslint/perfectionist/config.js +3 -3
  50. package/dist/eslint/perfectionist/rules.d.ts +3 -1
  51. package/dist/eslint/perfectionist/rules.js +1 -1
  52. package/dist/eslint/react/config.d.ts +15 -3
  53. package/dist/eslint/react/config.js +3 -3
  54. package/dist/eslint/react/rules.d.ts +11 -1
  55. package/dist/eslint/react/rules.js +1 -1
  56. package/dist/eslint/react-compiler/config.d.ts +9 -2
  57. package/dist/eslint/react-compiler/config.js +2 -2
  58. package/dist/{types.d.ts → eslint/types.d.ts} +7 -1
  59. package/dist/eslint/types.js +1 -0
  60. package/dist/eslint/typescript/config.d.ts +6 -0
  61. package/dist/eslint/typescript/config.js +2 -2
  62. package/dist/index.d.ts +2 -1
  63. package/dist/index.js +16 -16
  64. package/dist/modules.d.js.map +1 -0
  65. package/dist/prettier/index.d.ts +1 -0
  66. package/dist/prettier/index.js +1 -1
  67. package/dist/prettier/index.test.js +17 -17
  68. package/package.json +12 -12
  69. package/dist/chunk-4ELR5S33.js.map +0 -1
  70. package/dist/chunk-7FYMBY3Z.js.map +0 -1
  71. package/dist/chunk-CNGG6QVG.js.map +0 -1
  72. package/dist/chunk-CPBLULS5.js.map +0 -1
  73. package/dist/chunk-CRVC7SG2.js.map +0 -1
  74. package/dist/chunk-GE5ZPFK5.js.map +0 -1
  75. package/dist/chunk-GPY6RCW5.js.map +0 -1
  76. package/dist/chunk-HSSATLSU.js.map +0 -1
  77. package/dist/chunk-PSPFBSJV.js.map +0 -1
  78. package/dist/chunk-QCFCGFZH.js.map +0 -1
  79. package/dist/chunk-TQVG2NFE.js.map +0 -1
  80. package/dist/chunk-UTXH73LC.js.map +0 -1
  81. package/dist/chunk-W7UPJFRB.js.map +0 -1
  82. package/dist/chunk-WHP6ZMC7.js +0 -21
  83. package/dist/chunk-WHP6ZMC7.js.map +0 -1
  84. package/dist/chunk-YZ5DAWYS.js.map +0 -1
  85. /package/dist/{types.js → eslint/jsdoc/types.js} +0 -0
  86. /package/dist/{types.js.map → eslint/jsdoc/types.js.map} +0 -0
  87. /package/dist/{types/modules.d.js.map → eslint/types.js.map} +0 -0
  88. /package/dist/{types/modules.d.d.ts → modules.d.d.ts} +0 -0
  89. /package/dist/{types/modules.d.js → modules.d.js} +0 -0
@@ -216,7 +216,7 @@ import { isatty as s } from "tty";
216
216
  var r = process.env.FORCE_TTY !== void 0 || s(1);
217
217
  var u = p(r);
218
218
 
219
- // ../../node_modules/.pnpm/@vitest+pretty-format@3.0.5/node_modules/@vitest/pretty-format/dist/index.js
219
+ // ../../node_modules/.pnpm/@vitest+pretty-format@3.0.6/node_modules/@vitest/pretty-format/dist/index.js
220
220
  function _mergeNamespaces(n, m3) {
221
221
  m3.forEach(function(e) {
222
222
  e && typeof e !== "string" && !Array.isArray(e) && Object.keys(e).forEach(function(k2) {
@@ -1675,7 +1675,7 @@ var plugins = {
1675
1675
  Error: ErrorPlugin
1676
1676
  };
1677
1677
 
1678
- // ../../node_modules/.pnpm/loupe@3.1.2/node_modules/loupe/lib/helpers.js
1678
+ // ../../node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/helpers.js
1679
1679
  var ansiColors = {
1680
1680
  bold: ["1", "22"],
1681
1681
  dim: ["2", "22"],
@@ -1830,7 +1830,7 @@ function inspectProperty([key, value], options) {
1830
1830
  return `${key}: ${value}`;
1831
1831
  }
1832
1832
 
1833
- // ../../node_modules/.pnpm/loupe@3.1.2/node_modules/loupe/lib/array.js
1833
+ // ../../node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/array.js
1834
1834
  function inspectArray(array2, options) {
1835
1835
  const nonIndexProperties = Object.keys(array2).slice(array2.length);
1836
1836
  if (!array2.length && !nonIndexProperties.length)
@@ -1845,7 +1845,7 @@ function inspectArray(array2, options) {
1845
1845
  return `[ ${listContents}${propertyContents ? `, ${propertyContents}` : ""} ]`;
1846
1846
  }
1847
1847
 
1848
- // ../../node_modules/.pnpm/loupe@3.1.2/node_modules/loupe/lib/typedarray.js
1848
+ // ../../node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/typedarray.js
1849
1849
  var getArrayName = (array2) => {
1850
1850
  if (typeof Buffer === "function" && array2 instanceof Buffer) {
1851
1851
  return "Buffer";
@@ -1878,7 +1878,7 @@ function inspectTypedArray(array2, options) {
1878
1878
  return `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : ""} ]`;
1879
1879
  }
1880
1880
 
1881
- // ../../node_modules/.pnpm/loupe@3.1.2/node_modules/loupe/lib/date.js
1881
+ // ../../node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/date.js
1882
1882
  function inspectDate(dateObject, options) {
1883
1883
  const stringRepresentation = dateObject.toJSON();
1884
1884
  if (stringRepresentation === null) {
@@ -1889,7 +1889,7 @@ function inspectDate(dateObject, options) {
1889
1889
  return options.stylize(`${date}T${truncate(split[1], options.truncate - date.length - 1)}`, "date");
1890
1890
  }
1891
1891
 
1892
- // ../../node_modules/.pnpm/loupe@3.1.2/node_modules/loupe/lib/function.js
1892
+ // ../../node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/function.js
1893
1893
  function inspectFunction(func, options) {
1894
1894
  const functionType = func[Symbol.toStringTag] || "Function";
1895
1895
  const name = func.name;
@@ -1899,7 +1899,7 @@ function inspectFunction(func, options) {
1899
1899
  return options.stylize(`[${functionType} ${truncate(name, options.truncate - 11)}]`, "special");
1900
1900
  }
1901
1901
 
1902
- // ../../node_modules/.pnpm/loupe@3.1.2/node_modules/loupe/lib/map.js
1902
+ // ../../node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/map.js
1903
1903
  function inspectMapEntry([key, value], options) {
1904
1904
  options.truncate -= 4;
1905
1905
  key = options.inspect(key, options);
@@ -1915,15 +1915,13 @@ function mapToEntries(map2) {
1915
1915
  return entries;
1916
1916
  }
1917
1917
  function inspectMap(map2, options) {
1918
- const size = map2.size - 1;
1919
- if (size <= 0) {
1918
+ if (map2.size === 0)
1920
1919
  return "Map{}";
1921
- }
1922
1920
  options.truncate -= 7;
1923
1921
  return `Map{ ${inspectList(mapToEntries(map2), options, inspectMapEntry)} }`;
1924
1922
  }
1925
1923
 
1926
- // ../../node_modules/.pnpm/loupe@3.1.2/node_modules/loupe/lib/number.js
1924
+ // ../../node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/number.js
1927
1925
  var isNaN = Number.isNaN || ((i) => i !== i);
1928
1926
  function inspectNumber(number, options) {
1929
1927
  if (isNaN(number)) {
@@ -1941,7 +1939,7 @@ function inspectNumber(number, options) {
1941
1939
  return options.stylize(truncate(String(number), options.truncate), "number");
1942
1940
  }
1943
1941
 
1944
- // ../../node_modules/.pnpm/loupe@3.1.2/node_modules/loupe/lib/bigint.js
1942
+ // ../../node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/bigint.js
1945
1943
  function inspectBigInt(number, options) {
1946
1944
  let nums = truncate(number.toString(), options.truncate - 1);
1947
1945
  if (nums !== truncator)
@@ -1949,7 +1947,7 @@ function inspectBigInt(number, options) {
1949
1947
  return options.stylize(nums, "bigint");
1950
1948
  }
1951
1949
 
1952
- // ../../node_modules/.pnpm/loupe@3.1.2/node_modules/loupe/lib/regexp.js
1950
+ // ../../node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/regexp.js
1953
1951
  function inspectRegExp(value, options) {
1954
1952
  const flags = value.toString().split("/")[2];
1955
1953
  const sourceLength = options.truncate - (2 + flags.length);
@@ -1957,7 +1955,7 @@ function inspectRegExp(value, options) {
1957
1955
  return options.stylize(`/${truncate(source, sourceLength)}/${flags}`, "regexp");
1958
1956
  }
1959
1957
 
1960
- // ../../node_modules/.pnpm/loupe@3.1.2/node_modules/loupe/lib/set.js
1958
+ // ../../node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/set.js
1961
1959
  function arrayFromSet(set3) {
1962
1960
  const values = [];
1963
1961
  set3.forEach((value) => {
@@ -1972,7 +1970,7 @@ function inspectSet(set3, options) {
1972
1970
  return `Set{ ${inspectList(arrayFromSet(set3), options)} }`;
1973
1971
  }
1974
1972
 
1975
- // ../../node_modules/.pnpm/loupe@3.1.2/node_modules/loupe/lib/string.js
1973
+ // ../../node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/string.js
1976
1974
  var stringEscapeChars = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]", "g");
1977
1975
  var escapeCharacters = {
1978
1976
  "\b": "\\b",
@@ -1995,7 +1993,7 @@ function inspectString(string2, options) {
1995
1993
  return options.stylize(`'${truncate(string2, options.truncate - 2)}'`, "string");
1996
1994
  }
1997
1995
 
1998
- // ../../node_modules/.pnpm/loupe@3.1.2/node_modules/loupe/lib/symbol.js
1996
+ // ../../node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/symbol.js
1999
1997
  function inspectSymbol(value) {
2000
1998
  if ("description" in Symbol.prototype) {
2001
1999
  return value.description ? `Symbol(${value.description})` : "Symbol()";
@@ -2003,7 +2001,7 @@ function inspectSymbol(value) {
2003
2001
  return value.toString();
2004
2002
  }
2005
2003
 
2006
- // ../../node_modules/.pnpm/loupe@3.1.2/node_modules/loupe/lib/promise.js
2004
+ // ../../node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/promise.js
2007
2005
  var getPromiseValue = () => "Promise{\u2026}";
2008
2006
  try {
2009
2007
  const { getPromiseDetails, kPending, kRejected } = process.binding("util");
@@ -2020,7 +2018,7 @@ try {
2020
2018
  }
2021
2019
  var promise_default = getPromiseValue;
2022
2020
 
2023
- // ../../node_modules/.pnpm/loupe@3.1.2/node_modules/loupe/lib/object.js
2021
+ // ../../node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/object.js
2024
2022
  function inspectObject(object2, options) {
2025
2023
  const properties = Object.getOwnPropertyNames(object2);
2026
2024
  const symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object2) : [];
@@ -2043,7 +2041,7 @@ function inspectObject(object2, options) {
2043
2041
  return `{ ${propertyContents}${sep2}${symbolContents} }`;
2044
2042
  }
2045
2043
 
2046
- // ../../node_modules/.pnpm/loupe@3.1.2/node_modules/loupe/lib/class.js
2044
+ // ../../node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/class.js
2047
2045
  var toStringTag = typeof Symbol !== "undefined" && Symbol.toStringTag ? Symbol.toStringTag : false;
2048
2046
  function inspectClass(value, options) {
2049
2047
  let name = "";
@@ -2058,7 +2056,7 @@ function inspectClass(value, options) {
2058
2056
  return `${name}${inspectObject(value, options)}`;
2059
2057
  }
2060
2058
 
2061
- // ../../node_modules/.pnpm/loupe@3.1.2/node_modules/loupe/lib/arguments.js
2059
+ // ../../node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/arguments.js
2062
2060
  function inspectArguments(args, options) {
2063
2061
  if (args.length === 0)
2064
2062
  return "Arguments[]";
@@ -2066,7 +2064,7 @@ function inspectArguments(args, options) {
2066
2064
  return `Arguments[ ${inspectList(args, options)} ]`;
2067
2065
  }
2068
2066
 
2069
- // ../../node_modules/.pnpm/loupe@3.1.2/node_modules/loupe/lib/error.js
2067
+ // ../../node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/error.js
2070
2068
  var errorKeys = [
2071
2069
  "stack",
2072
2070
  "line",
@@ -2101,7 +2099,7 @@ function inspectObject2(error, options) {
2101
2099
  return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ""}`;
2102
2100
  }
2103
2101
 
2104
- // ../../node_modules/.pnpm/loupe@3.1.2/node_modules/loupe/lib/html.js
2102
+ // ../../node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/html.js
2105
2103
  function inspectAttribute([key, value], options) {
2106
2104
  options.truncate -= 3;
2107
2105
  if (!value) {
@@ -2133,7 +2131,7 @@ function inspectHTML(element, options) {
2133
2131
  return `${head}${propertyContents}${headClose}${children}${tail}`;
2134
2132
  }
2135
2133
 
2136
- // ../../node_modules/.pnpm/loupe@3.1.2/node_modules/loupe/lib/index.js
2134
+ // ../../node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/index.js
2137
2135
  var symbolsSupported = typeof Symbol === "function" && typeof Symbol.for === "function";
2138
2136
  var chaiInspect = symbolsSupported ? Symbol.for("chai/inspect") : "@@chai/inspect";
2139
2137
  var nodeInspect = false;
@@ -2243,7 +2241,7 @@ function inspect(value, opts = {}) {
2243
2241
  return options.stylize(String(value), type3);
2244
2242
  }
2245
2243
 
2246
- // ../../node_modules/.pnpm/@vitest+utils@3.0.5/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js
2244
+ // ../../node_modules/.pnpm/@vitest+utils@3.0.6/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js
2247
2245
  var {
2248
2246
  AsymmetricMatcher,
2249
2247
  DOMCollection,
@@ -2398,7 +2396,7 @@ function getDefaultExportFromCjs2(x2) {
2398
2396
  return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
2399
2397
  }
2400
2398
 
2401
- // ../../node_modules/.pnpm/@vitest+utils@3.0.5/node_modules/@vitest/utils/dist/helpers.js
2399
+ // ../../node_modules/.pnpm/@vitest+utils@3.0.6/node_modules/@vitest/utils/dist/helpers.js
2402
2400
  function createSimpleStackTrace(options) {
2403
2401
  const { message = "$$stack trace error", stackTraceLimit = 1 } = options || {};
2404
2402
  const limit = Error.stackTraceLimit;
@@ -2537,7 +2535,7 @@ function isNegativeNaN(val) {
2537
2535
  return isNegative;
2538
2536
  }
2539
2537
 
2540
- // ../../node_modules/.pnpm/@vitest+utils@3.0.5/node_modules/@vitest/utils/dist/index.js
2538
+ // ../../node_modules/.pnpm/@vitest+utils@3.0.6/node_modules/@vitest/utils/dist/index.js
2541
2539
  var jsTokens_1;
2542
2540
  var hasRequiredJsTokens;
2543
2541
  function requireJsTokens() {
@@ -3008,7 +3006,7 @@ function getSafeTimers() {
3008
3006
  };
3009
3007
  }
3010
3008
 
3011
- // ../../node_modules/.pnpm/@vitest+utils@3.0.5/node_modules/@vitest/utils/dist/source-map.js
3009
+ // ../../node_modules/.pnpm/@vitest+utils@3.0.6/node_modules/@vitest/utils/dist/source-map.js
3012
3010
  var comma = ",".charCodeAt(0);
3013
3011
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
3014
3012
  var intToChar = new Uint8Array(64);
@@ -3222,7 +3220,7 @@ function parseSingleV8Stack(raw) {
3222
3220
  };
3223
3221
  }
3224
3222
 
3225
- // ../../node_modules/.pnpm/@vitest+utils@3.0.5/node_modules/@vitest/utils/dist/diff.js
3223
+ // ../../node_modules/.pnpm/@vitest+utils@3.0.6/node_modules/@vitest/utils/dist/diff.js
3226
3224
  var DIFF_DELETE = -1;
3227
3225
  var DIFF_INSERT = 1;
3228
3226
  var DIFF_EQUAL = 0;
@@ -4956,7 +4954,7 @@ function getCommonAndChangedSubstrings(diffs, op, hasCommonDiff2) {
4956
4954
  );
4957
4955
  }
4958
4956
 
4959
- // ../../node_modules/.pnpm/@vitest+utils@3.0.5/node_modules/@vitest/utils/dist/error.js
4957
+ // ../../node_modules/.pnpm/@vitest+utils@3.0.6/node_modules/@vitest/utils/dist/error.js
4960
4958
  var IS_RECORD_SYMBOL = "@@__IMMUTABLE_RECORD__@@";
4961
4959
  var IS_COLLECTION_SYMBOL = "@@__IMMUTABLE_ITERABLE__@@";
4962
4960
  function isImmutable(v) {
@@ -5086,7 +5084,7 @@ Inner error message: ${err == null ? void 0 : err.message}`
5086
5084
  }
5087
5085
  }
5088
5086
 
5089
- // ../../node_modules/.pnpm/pathe@2.0.2/node_modules/pathe/dist/shared/pathe.UZ-hd4nF.mjs
5087
+ // ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
5090
5088
  var _DRIVE_LETTER_START_RE2 = /^[A-Za-z]:\//;
5091
5089
  function normalizeWindowsPath2(input = "") {
5092
5090
  if (!input) {
@@ -5183,7 +5181,7 @@ var isAbsolute2 = function(p3) {
5183
5181
  return _IS_ABSOLUTE_RE2.test(p3);
5184
5182
  };
5185
5183
 
5186
- // ../../node_modules/.pnpm/@vitest+runner@3.0.5/node_modules/@vitest/runner/dist/chunk-tasks.js
5184
+ // ../../node_modules/.pnpm/@vitest+runner@3.0.6/node_modules/@vitest/runner/dist/chunk-tasks.js
5187
5185
  function createChainable(keys2, fn2) {
5188
5186
  function create(context) {
5189
5187
  const chain2 = function(...args) {
@@ -5228,7 +5226,7 @@ function getTestName(task, separator = " > ") {
5228
5226
  return getNames(task).slice(1).join(separator);
5229
5227
  }
5230
5228
 
5231
- // ../../node_modules/.pnpm/@vitest+runner@3.0.5/node_modules/@vitest/runner/dist/index.js
5229
+ // ../../node_modules/.pnpm/@vitest+runner@3.0.6/node_modules/@vitest/runner/dist/index.js
5232
5230
  var PendingError = class extends Error {
5233
5231
  constructor(message, task, note) {
5234
5232
  super(message);
@@ -5607,7 +5605,6 @@ function parseArguments(optionsOrFn, optionsOrTest) {
5607
5605
  function createSuiteCollector(name, factory = () => {
5608
5606
  }, mode, each, suiteOptions) {
5609
5607
  const tasks = [];
5610
- const factoryQueue = [];
5611
5608
  let suite2;
5612
5609
  initSuite(true);
5613
5610
  const task = function(name2 = "", options = {}) {
@@ -5717,19 +5714,17 @@ function createSuiteCollector(name, factory = () => {
5717
5714
  }
5718
5715
  function clear() {
5719
5716
  tasks.length = 0;
5720
- factoryQueue.length = 0;
5721
5717
  initSuite(false);
5722
5718
  }
5723
5719
  async function collect(file) {
5724
5720
  if (!file) {
5725
5721
  throw new TypeError("File is required to collect tasks.");
5726
5722
  }
5727
- factoryQueue.length = 0;
5728
5723
  if (factory) {
5729
5724
  await runWithSuite(collector, () => factory(test22));
5730
5725
  }
5731
5726
  const allChildren = [];
5732
- for (const i of [...factoryQueue, ...tasks]) {
5727
+ for (const i of tasks) {
5733
5728
  allChildren.push(i.type === "collector" ? await i.collect(file) : i);
5734
5729
  }
5735
5730
  suite2.file = file;
@@ -6129,7 +6124,7 @@ function C2(e, t, n) {
6129
6124
  ), x.add(i), i;
6130
6125
  }
6131
6126
 
6132
- // ../../node_modules/.pnpm/@vitest+spy@3.0.5/node_modules/@vitest/spy/dist/index.js
6127
+ // ../../node_modules/.pnpm/@vitest+spy@3.0.6/node_modules/@vitest/spy/dist/index.js
6133
6128
  var vitestSpy = Symbol.for("vitest.spy");
6134
6129
  var mocks = /* @__PURE__ */ new Set();
6135
6130
  function isMockFunction(fn2) {
@@ -6289,7 +6284,7 @@ function fn(implementation) {
6289
6284
  return enhancedSpy;
6290
6285
  }
6291
6286
 
6292
- // ../../node_modules/.pnpm/chai@5.1.2/node_modules/chai/chai.js
6287
+ // ../../node_modules/.pnpm/chai@5.2.0/node_modules/chai/chai.js
6293
6288
  var __defProp = Object.defineProperty;
6294
6289
  var __getOwnPropNames = Object.getOwnPropertyNames;
6295
6290
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
@@ -7608,21 +7603,29 @@ function Assertion(obj, msg, ssfi, lockSsfi) {
7608
7603
  __name(Assertion, "Assertion");
7609
7604
  Object.defineProperty(Assertion, "includeStack", {
7610
7605
  get: function() {
7611
- console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead.");
7606
+ console.warn(
7607
+ "Assertion.includeStack is deprecated, use chai.config.includeStack instead."
7608
+ );
7612
7609
  return config.includeStack;
7613
7610
  },
7614
7611
  set: function(value) {
7615
- console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead.");
7612
+ console.warn(
7613
+ "Assertion.includeStack is deprecated, use chai.config.includeStack instead."
7614
+ );
7616
7615
  config.includeStack = value;
7617
7616
  }
7618
7617
  });
7619
7618
  Object.defineProperty(Assertion, "showDiff", {
7620
7619
  get: function() {
7621
- console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead.");
7620
+ console.warn(
7621
+ "Assertion.showDiff is deprecated, use chai.config.showDiff instead."
7622
+ );
7622
7623
  return config.showDiff;
7623
7624
  },
7624
7625
  set: function(value) {
7625
- console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead.");
7626
+ console.warn(
7627
+ "Assertion.showDiff is deprecated, use chai.config.showDiff instead."
7628
+ );
7626
7629
  config.showDiff = value;
7627
7630
  }
7628
7631
  });
@@ -7671,18 +7674,14 @@ Assertion.prototype.assert = function(expr, msg, negateMsg, expected, _actual, s
7671
7674
  );
7672
7675
  }
7673
7676
  };
7674
- Object.defineProperty(
7675
- Assertion.prototype,
7676
- "_obj",
7677
- {
7678
- get: function() {
7679
- return flag(this, "object");
7680
- },
7681
- set: function(val) {
7682
- flag(this, "object", val);
7683
- }
7677
+ Object.defineProperty(Assertion.prototype, "_obj", {
7678
+ get: function() {
7679
+ return flag(this, "object");
7680
+ },
7681
+ set: function(val) {
7682
+ flag(this, "object", val);
7684
7683
  }
7685
- );
7684
+ });
7686
7685
  function isProxyEnabled() {
7687
7686
  return config.useProxy && typeof Proxy !== "undefined" && typeof Reflect !== "undefined";
7688
7687
  }
@@ -7690,24 +7689,20 @@ __name(isProxyEnabled, "isProxyEnabled");
7690
7689
  function addProperty(ctx, name, getter) {
7691
7690
  getter = getter === void 0 ? function() {
7692
7691
  } : getter;
7693
- Object.defineProperty(
7694
- ctx,
7695
- name,
7696
- {
7697
- get: /* @__PURE__ */ __name(function propertyGetter() {
7698
- if (!isProxyEnabled() && !flag(this, "lockSsfi")) {
7699
- flag(this, "ssfi", propertyGetter);
7700
- }
7701
- var result = getter.call(this);
7702
- if (result !== void 0)
7703
- return result;
7704
- var newAssertion = new Assertion();
7705
- transferFlags(this, newAssertion);
7706
- return newAssertion;
7707
- }, "propertyGetter"),
7708
- configurable: true
7709
- }
7710
- );
7692
+ Object.defineProperty(ctx, name, {
7693
+ get: /* @__PURE__ */ __name(function propertyGetter() {
7694
+ if (!isProxyEnabled() && !flag(this, "lockSsfi")) {
7695
+ flag(this, "ssfi", propertyGetter);
7696
+ }
7697
+ var result = getter.call(this);
7698
+ if (result !== void 0)
7699
+ return result;
7700
+ var newAssertion = new Assertion();
7701
+ transferFlags(this, newAssertion);
7702
+ return newAssertion;
7703
+ }, "propertyGetter"),
7704
+ configurable: true
7705
+ });
7711
7706
  }
7712
7707
  __name(addProperty, "addProperty");
7713
7708
  var fnLengthDesc = Object.getOwnPropertyDescriptor(function() {
@@ -7718,9 +7713,13 @@ function addLengthGuard(fn2, assertionName, isChainable) {
7718
7713
  Object.defineProperty(fn2, "length", {
7719
7714
  get: function() {
7720
7715
  if (isChainable) {
7721
- throw Error("Invalid Chai property: " + assertionName + '.length. Due to a compatibility issue, "length" cannot directly follow "' + assertionName + '". Use "' + assertionName + '.lengthOf" instead.');
7716
+ throw Error(
7717
+ "Invalid Chai property: " + assertionName + '.length. Due to a compatibility issue, "length" cannot directly follow "' + assertionName + '". Use "' + assertionName + '.lengthOf" instead.'
7718
+ );
7722
7719
  }
7723
- throw Error("Invalid Chai property: " + assertionName + '.length. See docs for proper usage of "' + assertionName + '".');
7720
+ throw Error(
7721
+ "Invalid Chai property: " + assertionName + '.length. See docs for proper usage of "' + assertionName + '".'
7722
+ );
7724
7723
  }
7725
7724
  });
7726
7725
  return fn2;
@@ -7750,17 +7749,19 @@ function proxify(obj, nonChainableMethodName) {
7750
7749
  get: /* @__PURE__ */ __name(function proxyGetter(target, property) {
7751
7750
  if (typeof property === "string" && config.proxyExcludedKeys.indexOf(property) === -1 && !Reflect.has(target, property)) {
7752
7751
  if (nonChainableMethodName) {
7753
- throw Error("Invalid Chai property: " + nonChainableMethodName + "." + property + '. See docs for proper usage of "' + nonChainableMethodName + '".');
7752
+ throw Error(
7753
+ "Invalid Chai property: " + nonChainableMethodName + "." + property + '. See docs for proper usage of "' + nonChainableMethodName + '".'
7754
+ );
7754
7755
  }
7755
7756
  var suggestion = null;
7756
7757
  var suggestionDistance = 4;
7757
7758
  getProperties(target).forEach(function(prop) {
7758
- if (!Object.prototype.hasOwnProperty(prop) && builtins.indexOf(prop) === -1) {
7759
- var dist = stringDistanceCapped(
7760
- property,
7761
- prop,
7762
- suggestionDistance
7763
- );
7759
+ if (
7760
+ // we actually mean to check `Object.prototype` here
7761
+ // eslint-disable-next-line no-prototype-builtins
7762
+ !Object.prototype.hasOwnProperty(prop) && builtins.indexOf(prop) === -1
7763
+ ) {
7764
+ var dist = stringDistanceCapped(property, prop, suggestionDistance);
7764
7765
  if (dist < suggestionDistance) {
7765
7766
  suggestion = prop;
7766
7767
  suggestionDistance = dist;
@@ -7768,7 +7769,9 @@ function proxify(obj, nonChainableMethodName) {
7768
7769
  }
7769
7770
  });
7770
7771
  if (suggestion !== null) {
7771
- throw Error("Invalid Chai property: " + property + '. Did you mean "' + suggestion + '"?');
7772
+ throw Error(
7773
+ "Invalid Chai property: " + property + '. Did you mean "' + suggestion + '"?'
7774
+ );
7772
7775
  } else {
7773
7776
  throw Error("Invalid Chai property: " + property);
7774
7777
  }
@@ -7786,16 +7789,16 @@ function stringDistanceCapped(strA, strB, cap) {
7786
7789
  return cap;
7787
7790
  }
7788
7791
  var memo = [];
7789
- for (var i = 0; i <= strA.length; i++) {
7792
+ for (let i = 0; i <= strA.length; i++) {
7790
7793
  memo[i] = Array(strB.length + 1).fill(0);
7791
7794
  memo[i][0] = i;
7792
7795
  }
7793
- for (var j = 0; j < strB.length; j++) {
7796
+ for (let j = 0; j < strB.length; j++) {
7794
7797
  memo[0][j] = j;
7795
7798
  }
7796
- for (var i = 1; i <= strA.length; i++) {
7799
+ for (let i = 1; i <= strA.length; i++) {
7797
7800
  var ch = strA.charCodeAt(i - 1);
7798
- for (var j = 1; j <= strB.length; j++) {
7801
+ for (let j = 1; j <= strB.length; j++) {
7799
7802
  if (Math.abs(i - j) >= cap) {
7800
7803
  memo[i][j] = cap;
7801
7804
  continue;
@@ -7831,28 +7834,24 @@ function overwriteProperty(ctx, name, getter) {
7831
7834
  }, "_super");
7832
7835
  if (_get && "function" === typeof _get.get)
7833
7836
  _super = _get.get;
7834
- Object.defineProperty(
7835
- ctx,
7836
- name,
7837
- {
7838
- get: /* @__PURE__ */ __name(function overwritingPropertyGetter() {
7839
- if (!isProxyEnabled() && !flag(this, "lockSsfi")) {
7840
- flag(this, "ssfi", overwritingPropertyGetter);
7841
- }
7842
- var origLockSsfi = flag(this, "lockSsfi");
7843
- flag(this, "lockSsfi", true);
7844
- var result = getter(_super).call(this);
7845
- flag(this, "lockSsfi", origLockSsfi);
7846
- if (result !== void 0) {
7847
- return result;
7848
- }
7849
- var newAssertion = new Assertion();
7850
- transferFlags(this, newAssertion);
7851
- return newAssertion;
7852
- }, "overwritingPropertyGetter"),
7853
- configurable: true
7854
- }
7855
- );
7837
+ Object.defineProperty(ctx, name, {
7838
+ get: /* @__PURE__ */ __name(function overwritingPropertyGetter() {
7839
+ if (!isProxyEnabled() && !flag(this, "lockSsfi")) {
7840
+ flag(this, "ssfi", overwritingPropertyGetter);
7841
+ }
7842
+ var origLockSsfi = flag(this, "lockSsfi");
7843
+ flag(this, "lockSsfi", true);
7844
+ var result = getter(_super).call(this);
7845
+ flag(this, "lockSsfi", origLockSsfi);
7846
+ if (result !== void 0) {
7847
+ return result;
7848
+ }
7849
+ var newAssertion = new Assertion();
7850
+ transferFlags(this, newAssertion);
7851
+ return newAssertion;
7852
+ }, "overwritingPropertyGetter"),
7853
+ configurable: true
7854
+ });
7856
7855
  }
7857
7856
  __name(overwriteProperty, "overwriteProperty");
7858
7857
  function overwriteMethod(ctx, name, method) {
@@ -7904,46 +7903,42 @@ function addChainableMethod(ctx, name, method, chainingBehavior) {
7904
7903
  ctx.__methods = {};
7905
7904
  }
7906
7905
  ctx.__methods[name] = chainableBehavior;
7907
- Object.defineProperty(
7908
- ctx,
7909
- name,
7910
- {
7911
- get: /* @__PURE__ */ __name(function chainableMethodGetter() {
7912
- chainableBehavior.chainingBehavior.call(this);
7913
- var chainableMethodWrapper = /* @__PURE__ */ __name(function() {
7914
- if (!flag(this, "lockSsfi")) {
7915
- flag(this, "ssfi", chainableMethodWrapper);
7916
- }
7917
- var result = chainableBehavior.method.apply(this, arguments);
7918
- if (result !== void 0) {
7919
- return result;
7920
- }
7921
- var newAssertion = new Assertion();
7922
- transferFlags(this, newAssertion);
7923
- return newAssertion;
7924
- }, "chainableMethodWrapper");
7925
- addLengthGuard(chainableMethodWrapper, name, true);
7926
- if (canSetPrototype) {
7927
- var prototype = Object.create(this);
7928
- prototype.call = call;
7929
- prototype.apply = apply;
7930
- Object.setPrototypeOf(chainableMethodWrapper, prototype);
7931
- } else {
7932
- var asserterNames = Object.getOwnPropertyNames(ctx);
7933
- asserterNames.forEach(function(asserterName) {
7934
- if (excludeNames.indexOf(asserterName) !== -1) {
7935
- return;
7936
- }
7937
- var pd = Object.getOwnPropertyDescriptor(ctx, asserterName);
7938
- Object.defineProperty(chainableMethodWrapper, asserterName, pd);
7939
- });
7906
+ Object.defineProperty(ctx, name, {
7907
+ get: /* @__PURE__ */ __name(function chainableMethodGetter() {
7908
+ chainableBehavior.chainingBehavior.call(this);
7909
+ var chainableMethodWrapper = /* @__PURE__ */ __name(function() {
7910
+ if (!flag(this, "lockSsfi")) {
7911
+ flag(this, "ssfi", chainableMethodWrapper);
7940
7912
  }
7941
- transferFlags(this, chainableMethodWrapper);
7942
- return proxify(chainableMethodWrapper);
7943
- }, "chainableMethodGetter"),
7944
- configurable: true
7945
- }
7946
- );
7913
+ var result = chainableBehavior.method.apply(this, arguments);
7914
+ if (result !== void 0) {
7915
+ return result;
7916
+ }
7917
+ var newAssertion = new Assertion();
7918
+ transferFlags(this, newAssertion);
7919
+ return newAssertion;
7920
+ }, "chainableMethodWrapper");
7921
+ addLengthGuard(chainableMethodWrapper, name, true);
7922
+ if (canSetPrototype) {
7923
+ var prototype = Object.create(this);
7924
+ prototype.call = call;
7925
+ prototype.apply = apply;
7926
+ Object.setPrototypeOf(chainableMethodWrapper, prototype);
7927
+ } else {
7928
+ var asserterNames = Object.getOwnPropertyNames(ctx);
7929
+ asserterNames.forEach(function(asserterName) {
7930
+ if (excludeNames.indexOf(asserterName) !== -1) {
7931
+ return;
7932
+ }
7933
+ var pd = Object.getOwnPropertyDescriptor(ctx, asserterName);
7934
+ Object.defineProperty(chainableMethodWrapper, asserterName, pd);
7935
+ });
7936
+ }
7937
+ transferFlags(this, chainableMethodWrapper);
7938
+ return proxify(chainableMethodWrapper);
7939
+ }, "chainableMethodGetter"),
7940
+ configurable: true
7941
+ });
7947
7942
  }
7948
7943
  __name(addChainableMethod, "addChainableMethod");
7949
7944
  function overwriteChainableMethod(ctx, name, method, chainingBehavior) {
@@ -7986,11 +7981,7 @@ function getOwnEnumerableProperties(obj) {
7986
7981
  return Object.keys(obj).concat(getOwnEnumerablePropertySymbols(obj));
7987
7982
  }
7988
7983
  __name(getOwnEnumerableProperties, "getOwnEnumerableProperties");
7989
- function _isNaN(value) {
7990
- return value !== value;
7991
- }
7992
- __name(_isNaN, "_isNaN");
7993
- var isNaN22 = Number.isNaN || _isNaN;
7984
+ var isNaN22 = Number.isNaN;
7994
7985
  function isObjectType(obj) {
7995
7986
  var objectType = type(obj);
7996
7987
  var objectTypes = ["Array", "Object", "Function"];
@@ -8079,10 +8070,15 @@ Assertion.addProperty("all", function() {
8079
8070
  flag2(this, "any", false);
8080
8071
  });
8081
8072
  var functionTypes = {
8082
- "function": ["function", "asyncfunction", "generatorfunction", "asyncgeneratorfunction"],
8083
- "asyncfunction": ["asyncfunction", "asyncgeneratorfunction"],
8084
- "generatorfunction": ["generatorfunction", "asyncgeneratorfunction"],
8085
- "asyncgeneratorfunction": ["asyncgeneratorfunction"]
8073
+ function: [
8074
+ "function",
8075
+ "asyncfunction",
8076
+ "generatorfunction",
8077
+ "asyncgeneratorfunction"
8078
+ ],
8079
+ asyncfunction: ["asyncfunction", "asyncgeneratorfunction"],
8080
+ generatorfunction: ["generatorfunction", "asyncgeneratorfunction"],
8081
+ asyncgeneratorfunction: ["asyncgeneratorfunction"]
8086
8082
  };
8087
8083
  function an(type3, msg) {
8088
8084
  if (msg)
@@ -8233,13 +8229,14 @@ Assertion.addProperty("callable", function() {
8233
8229
  const msg = message ? `${message}: ` : "";
8234
8230
  const negate = flag2(this, "negate");
8235
8231
  const assertionMessage = negate ? `${msg}expected ${inspect22(val)} not to be a callable function` : `${msg}expected ${inspect22(val)} to be a callable function`;
8236
- const isCallable = ["Function", "AsyncFunction", "GeneratorFunction", "AsyncGeneratorFunction"].includes(type(val));
8232
+ const isCallable = [
8233
+ "Function",
8234
+ "AsyncFunction",
8235
+ "GeneratorFunction",
8236
+ "AsyncGeneratorFunction"
8237
+ ].includes(type(val));
8237
8238
  if (isCallable && negate || !isCallable && !negate) {
8238
- throw new AssertionError(
8239
- assertionMessage,
8240
- void 0,
8241
- ssfi
8242
- );
8239
+ throw new AssertionError(assertionMessage, void 0, ssfi);
8243
8240
  }
8244
8241
  });
8245
8242
  Assertion.addProperty("false", function() {
@@ -8378,13 +8375,25 @@ function assertAbove(n, msg) {
8378
8375
  if (doLength && objType !== "map" && objType !== "set") {
8379
8376
  new Assertion(obj, flagMsg, ssfi, true).to.have.property("length");
8380
8377
  }
8381
- if (!doLength && (objType === "date" && nType !== "date")) {
8382
- throw new AssertionError(msgPrefix + "the argument to above must be a date", void 0, ssfi);
8378
+ if (!doLength && objType === "date" && nType !== "date") {
8379
+ throw new AssertionError(
8380
+ msgPrefix + "the argument to above must be a date",
8381
+ void 0,
8382
+ ssfi
8383
+ );
8383
8384
  } else if (!isNumeric(n) && (doLength || isNumeric(obj))) {
8384
- throw new AssertionError(msgPrefix + "the argument to above must be a number", void 0, ssfi);
8385
- } else if (!doLength && (objType !== "date" && !isNumeric(obj))) {
8385
+ throw new AssertionError(
8386
+ msgPrefix + "the argument to above must be a number",
8387
+ void 0,
8388
+ ssfi
8389
+ );
8390
+ } else if (!doLength && objType !== "date" && !isNumeric(obj)) {
8386
8391
  var printObj = objType === "string" ? "'" + obj + "'" : obj;
8387
- throw new AssertionError(msgPrefix + "expected " + printObj + " to be a number or a date", void 0, ssfi);
8392
+ throw new AssertionError(
8393
+ msgPrefix + "expected " + printObj + " to be a number or a date",
8394
+ void 0,
8395
+ ssfi
8396
+ );
8388
8397
  }
8389
8398
  if (doLength) {
8390
8399
  var descriptor = "length", itemsCount;
@@ -8421,11 +8430,11 @@ function assertLeast(n, msg) {
8421
8430
  if (doLength && objType !== "map" && objType !== "set") {
8422
8431
  new Assertion(obj, flagMsg, ssfi, true).to.have.property("length");
8423
8432
  }
8424
- if (!doLength && (objType === "date" && nType !== "date")) {
8433
+ if (!doLength && objType === "date" && nType !== "date") {
8425
8434
  errorMessage = msgPrefix + "the argument to least must be a date";
8426
8435
  } else if (!isNumeric(n) && (doLength || isNumeric(obj))) {
8427
8436
  errorMessage = msgPrefix + "the argument to least must be a number";
8428
- } else if (!doLength && (objType !== "date" && !isNumeric(obj))) {
8437
+ } else if (!doLength && objType !== "date" && !isNumeric(obj)) {
8429
8438
  var printObj = objType === "string" ? "'" + obj + "'" : obj;
8430
8439
  errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date";
8431
8440
  } else {
@@ -8469,11 +8478,11 @@ function assertBelow(n, msg) {
8469
8478
  if (doLength && objType !== "map" && objType !== "set") {
8470
8479
  new Assertion(obj, flagMsg, ssfi, true).to.have.property("length");
8471
8480
  }
8472
- if (!doLength && (objType === "date" && nType !== "date")) {
8481
+ if (!doLength && objType === "date" && nType !== "date") {
8473
8482
  errorMessage = msgPrefix + "the argument to below must be a date";
8474
8483
  } else if (!isNumeric(n) && (doLength || isNumeric(obj))) {
8475
8484
  errorMessage = msgPrefix + "the argument to below must be a number";
8476
- } else if (!doLength && (objType !== "date" && !isNumeric(obj))) {
8485
+ } else if (!doLength && objType !== "date" && !isNumeric(obj)) {
8477
8486
  var printObj = objType === "string" ? "'" + obj + "'" : obj;
8478
8487
  errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date";
8479
8488
  } else {
@@ -8517,11 +8526,11 @@ function assertMost(n, msg) {
8517
8526
  if (doLength && objType !== "map" && objType !== "set") {
8518
8527
  new Assertion(obj, flagMsg, ssfi, true).to.have.property("length");
8519
8528
  }
8520
- if (!doLength && (objType === "date" && nType !== "date")) {
8529
+ if (!doLength && objType === "date" && nType !== "date") {
8521
8530
  errorMessage = msgPrefix + "the argument to most must be a date";
8522
8531
  } else if (!isNumeric(n) && (doLength || isNumeric(obj))) {
8523
8532
  errorMessage = msgPrefix + "the argument to most must be a number";
8524
- } else if (!doLength && (objType !== "date" && !isNumeric(obj))) {
8533
+ } else if (!doLength && objType !== "date" && !isNumeric(obj)) {
8525
8534
  var printObj = objType === "string" ? "'" + obj + "'" : obj;
8526
8535
  errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date";
8527
8536
  } else {
@@ -8565,11 +8574,11 @@ Assertion.addMethod("within", function(start, finish, msg) {
8565
8574
  if (doLength && objType !== "map" && objType !== "set") {
8566
8575
  new Assertion(obj, flagMsg, ssfi, true).to.have.property("length");
8567
8576
  }
8568
- if (!doLength && (objType === "date" && (startType !== "date" || finishType !== "date"))) {
8577
+ if (!doLength && objType === "date" && (startType !== "date" || finishType !== "date")) {
8569
8578
  errorMessage = msgPrefix + "the arguments to within must be dates";
8570
8579
  } else if ((!isNumeric(start) || !isNumeric(finish)) && (doLength || isNumeric(obj))) {
8571
8580
  errorMessage = msgPrefix + "the arguments to within must be numbers";
8572
- } else if (!doLength && (objType !== "date" && !isNumeric(obj))) {
8581
+ } else if (!doLength && objType !== "date" && !isNumeric(obj)) {
8573
8582
  var printObj = objType === "string" ? "'" + obj + "'" : obj;
8574
8583
  errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date";
8575
8584
  } else {
@@ -8703,7 +8712,7 @@ function assertProperty(name, val, msg) {
8703
8712
  }
8704
8713
  __name(assertProperty, "assertProperty");
8705
8714
  Assertion.addMethod("property", assertProperty);
8706
- function assertOwnProperty(name, value, msg) {
8715
+ function assertOwnProperty(_name, _value, _msg) {
8707
8716
  flag2(this, "own", true);
8708
8717
  assertProperty.apply(this, arguments);
8709
8718
  }
@@ -8929,7 +8938,10 @@ function assertThrows(errorLike, errMsgMatcher, msg) {
8929
8938
  }
8930
8939
  if (errorLike && caughtErr) {
8931
8940
  if (errorLike instanceof Error) {
8932
- var isCompatibleInstance = check_error_exports.compatibleInstance(caughtErr, errorLike);
8941
+ var isCompatibleInstance = check_error_exports.compatibleInstance(
8942
+ caughtErr,
8943
+ errorLike
8944
+ );
8933
8945
  if (isCompatibleInstance === negate) {
8934
8946
  if (everyArgIsDefined && negate) {
8935
8947
  errorLikeFail = true;
@@ -8944,7 +8956,10 @@ function assertThrows(errorLike, errMsgMatcher, msg) {
8944
8956
  }
8945
8957
  }
8946
8958
  }
8947
- var isCompatibleConstructor = check_error_exports.compatibleConstructor(caughtErr, errorLike);
8959
+ var isCompatibleConstructor = check_error_exports.compatibleConstructor(
8960
+ caughtErr,
8961
+ errorLike
8962
+ );
8948
8963
  if (isCompatibleConstructor === negate) {
8949
8964
  if (everyArgIsDefined && negate) {
8950
8965
  errorLikeFail = true;
@@ -8964,7 +8979,10 @@ function assertThrows(errorLike, errMsgMatcher, msg) {
8964
8979
  if (isRegExp2(errMsgMatcher)) {
8965
8980
  placeholder = "matching";
8966
8981
  }
8967
- var isCompatibleMessage = check_error_exports.compatibleMessage(caughtErr, errMsgMatcher);
8982
+ var isCompatibleMessage = check_error_exports.compatibleMessage(
8983
+ caughtErr,
8984
+ errMsgMatcher
8985
+ );
8968
8986
  if (isCompatibleMessage === negate) {
8969
8987
  if (everyArgIsDefined && negate) {
8970
8988
  errMsgMatcherFail = true;
@@ -9033,15 +9051,24 @@ function closeTo(expected, delta, msg) {
9033
9051
  new Assertion(obj, flagMsg, ssfi, true).is.numeric;
9034
9052
  let message = "A `delta` value is required for `closeTo`";
9035
9053
  if (delta == void 0)
9036
- throw new AssertionError(flagMsg ? `${flagMsg}: ${message}` : message, void 0, ssfi);
9054
+ throw new AssertionError(
9055
+ flagMsg ? `${flagMsg}: ${message}` : message,
9056
+ void 0,
9057
+ ssfi
9058
+ );
9037
9059
  new Assertion(delta, flagMsg, ssfi, true).is.numeric;
9038
9060
  message = "A `expected` value is required for `closeTo`";
9039
9061
  if (expected == void 0)
9040
- throw new AssertionError(flagMsg ? `${flagMsg}: ${message}` : message, void 0, ssfi);
9062
+ throw new AssertionError(
9063
+ flagMsg ? `${flagMsg}: ${message}` : message,
9064
+ void 0,
9065
+ ssfi
9066
+ );
9041
9067
  new Assertion(expected, flagMsg, ssfi, true).is.numeric;
9042
9068
  const abs = /* @__PURE__ */ __name((x2) => x2 < 0n ? -x2 : x2, "abs");
9069
+ const strip = /* @__PURE__ */ __name((number) => parseFloat(parseFloat(number).toPrecision(12)), "strip");
9043
9070
  this.assert(
9044
- abs(obj - expected) <= delta,
9071
+ strip(abs(obj - expected)) <= delta,
9045
9072
  "expected #{this} to be close to " + expected + " +/- " + delta,
9046
9073
  "expected #{this} not to be close to " + expected + " +/- " + delta
9047
9074
  );
@@ -9297,7 +9324,7 @@ Assertion.addProperty("frozen", function() {
9297
9324
  "expected #{this} to not be frozen"
9298
9325
  );
9299
9326
  });
9300
- Assertion.addProperty("finite", function(msg) {
9327
+ Assertion.addProperty("finite", function(_msg) {
9301
9328
  var obj = flag2(this, "object");
9302
9329
  this.assert(
9303
9330
  typeof obj === "number" && isFinite(obj),
@@ -9305,6 +9332,61 @@ Assertion.addProperty("finite", function(msg) {
9305
9332
  "expected #{this} to not be a finite number"
9306
9333
  );
9307
9334
  });
9335
+ function compareSubset(expected, actual) {
9336
+ if (expected === actual) {
9337
+ return true;
9338
+ }
9339
+ if (typeof actual !== typeof expected) {
9340
+ return false;
9341
+ }
9342
+ if (typeof expected !== "object" || expected === null) {
9343
+ return expected === actual;
9344
+ }
9345
+ if (!actual) {
9346
+ return false;
9347
+ }
9348
+ if (Array.isArray(expected)) {
9349
+ if (!Array.isArray(actual)) {
9350
+ return false;
9351
+ }
9352
+ return expected.every(function(exp) {
9353
+ return actual.some(function(act) {
9354
+ return compareSubset(exp, act);
9355
+ });
9356
+ });
9357
+ }
9358
+ if (expected instanceof Date) {
9359
+ if (actual instanceof Date) {
9360
+ return expected.getTime() === actual.getTime();
9361
+ } else {
9362
+ return false;
9363
+ }
9364
+ }
9365
+ return Object.keys(expected).every(function(key) {
9366
+ var expectedValue = expected[key];
9367
+ var actualValue = actual[key];
9368
+ if (typeof expectedValue === "object" && expectedValue !== null && actualValue !== null) {
9369
+ return compareSubset(expectedValue, actualValue);
9370
+ }
9371
+ if (typeof expectedValue === "function") {
9372
+ return expectedValue(actualValue);
9373
+ }
9374
+ return actualValue === expectedValue;
9375
+ });
9376
+ }
9377
+ __name(compareSubset, "compareSubset");
9378
+ Assertion.addMethod("containSubset", function(expected) {
9379
+ const actual = flag(this, "object");
9380
+ const showDiff = config.showDiff;
9381
+ this.assert(
9382
+ compareSubset(expected, actual),
9383
+ "expected #{act} to contain subset #{exp}",
9384
+ "expected #{act} to not contain subset #{exp}",
9385
+ expected,
9386
+ actual,
9387
+ showDiff
9388
+ );
9389
+ });
9308
9390
  function expect(val, message) {
9309
9391
  return new Assertion(val, message);
9310
9392
  }
@@ -9315,11 +9397,15 @@ expect.fail = function(actual, expected, message, operator) {
9315
9397
  actual = void 0;
9316
9398
  }
9317
9399
  message = message || "expect.fail()";
9318
- throw new AssertionError(message, {
9319
- actual,
9320
- expected,
9321
- operator
9322
- }, expect.fail);
9400
+ throw new AssertionError(
9401
+ message,
9402
+ {
9403
+ actual,
9404
+ expected,
9405
+ operator
9406
+ },
9407
+ expect.fail
9408
+ );
9323
9409
  };
9324
9410
  var should_exports = {};
9325
9411
  __export(should_exports, {
@@ -9355,11 +9441,15 @@ function loadShould() {
9355
9441
  actual = void 0;
9356
9442
  }
9357
9443
  message = message || "should.fail()";
9358
- throw new AssertionError(message, {
9359
- actual,
9360
- expected,
9361
- operator
9362
- }, should2.fail);
9444
+ throw new AssertionError(
9445
+ message,
9446
+ {
9447
+ actual,
9448
+ expected,
9449
+ operator
9450
+ },
9451
+ should2.fail
9452
+ );
9363
9453
  };
9364
9454
  should2.equal = function(actual, expected, message) {
9365
9455
  new Assertion(actual, message).to.equal(expected);
@@ -9389,11 +9479,7 @@ var should = loadShould;
9389
9479
  var Should = loadShould;
9390
9480
  function assert2(express, errmsg) {
9391
9481
  var test22 = new Assertion(null, null, assert2, true);
9392
- test22.assert(
9393
- express,
9394
- errmsg,
9395
- "[ negation message unavailable ]"
9396
- );
9482
+ test22.assert(express, errmsg, "[ negation message unavailable ]");
9397
9483
  }
9398
9484
  __name(assert2, "assert");
9399
9485
  assert2.fail = function(actual, expected, message, operator) {
@@ -9402,11 +9488,15 @@ assert2.fail = function(actual, expected, message, operator) {
9402
9488
  actual = void 0;
9403
9489
  }
9404
9490
  message = message || "assert.fail()";
9405
- throw new AssertionError(message, {
9406
- actual,
9407
- expected,
9408
- operator
9409
- }, assert2.fail);
9491
+ throw new AssertionError(
9492
+ message,
9493
+ {
9494
+ actual,
9495
+ expected,
9496
+ operator
9497
+ },
9498
+ assert2.fail
9499
+ );
9410
9500
  };
9411
9501
  assert2.isOk = function(val, msg) {
9412
9502
  new Assertion(val, msg, assert2.isOk, true).is.ok;
@@ -9551,7 +9641,9 @@ assert2.instanceOf = function(val, type3, msg) {
9551
9641
  new Assertion(val, msg, assert2.instanceOf, true).to.be.instanceOf(type3);
9552
9642
  };
9553
9643
  assert2.notInstanceOf = function(val, type3, msg) {
9554
- new Assertion(val, msg, assert2.notInstanceOf, true).to.not.be.instanceOf(type3);
9644
+ new Assertion(val, msg, assert2.notInstanceOf, true).to.not.be.instanceOf(
9645
+ type3
9646
+ );
9555
9647
  };
9556
9648
  assert2.include = function(exp, inc, msg) {
9557
9649
  new Assertion(exp, msg, assert2.include, true).include(inc);
@@ -9569,13 +9661,22 @@ assert2.nestedInclude = function(exp, inc, msg) {
9569
9661
  new Assertion(exp, msg, assert2.nestedInclude, true).nested.include(inc);
9570
9662
  };
9571
9663
  assert2.notNestedInclude = function(exp, inc, msg) {
9572
- new Assertion(exp, msg, assert2.notNestedInclude, true).not.nested.include(inc);
9664
+ new Assertion(exp, msg, assert2.notNestedInclude, true).not.nested.include(
9665
+ inc
9666
+ );
9573
9667
  };
9574
9668
  assert2.deepNestedInclude = function(exp, inc, msg) {
9575
- new Assertion(exp, msg, assert2.deepNestedInclude, true).deep.nested.include(inc);
9669
+ new Assertion(exp, msg, assert2.deepNestedInclude, true).deep.nested.include(
9670
+ inc
9671
+ );
9576
9672
  };
9577
9673
  assert2.notDeepNestedInclude = function(exp, inc, msg) {
9578
- new Assertion(exp, msg, assert2.notDeepNestedInclude, true).not.deep.nested.include(inc);
9674
+ new Assertion(
9675
+ exp,
9676
+ msg,
9677
+ assert2.notDeepNestedInclude,
9678
+ true
9679
+ ).not.deep.nested.include(inc);
9579
9680
  };
9580
9681
  assert2.ownInclude = function(exp, inc, msg) {
9581
9682
  new Assertion(exp, msg, assert2.ownInclude, true).own.include(inc);
@@ -9587,7 +9688,9 @@ assert2.deepOwnInclude = function(exp, inc, msg) {
9587
9688
  new Assertion(exp, msg, assert2.deepOwnInclude, true).deep.own.include(inc);
9588
9689
  };
9589
9690
  assert2.notDeepOwnInclude = function(exp, inc, msg) {
9590
- new Assertion(exp, msg, assert2.notDeepOwnInclude, true).not.deep.own.include(inc);
9691
+ new Assertion(exp, msg, assert2.notDeepOwnInclude, true).not.deep.own.include(
9692
+ inc
9693
+ );
9591
9694
  };
9592
9695
  assert2.match = function(exp, re, msg) {
9593
9696
  new Assertion(exp, msg, assert2.match, true).to.match(re);
@@ -9605,49 +9708,107 @@ assert2.propertyVal = function(obj, prop, val, msg) {
9605
9708
  new Assertion(obj, msg, assert2.propertyVal, true).to.have.property(prop, val);
9606
9709
  };
9607
9710
  assert2.notPropertyVal = function(obj, prop, val, msg) {
9608
- new Assertion(obj, msg, assert2.notPropertyVal, true).to.not.have.property(prop, val);
9711
+ new Assertion(obj, msg, assert2.notPropertyVal, true).to.not.have.property(
9712
+ prop,
9713
+ val
9714
+ );
9609
9715
  };
9610
9716
  assert2.deepPropertyVal = function(obj, prop, val, msg) {
9611
- new Assertion(obj, msg, assert2.deepPropertyVal, true).to.have.deep.property(prop, val);
9717
+ new Assertion(obj, msg, assert2.deepPropertyVal, true).to.have.deep.property(
9718
+ prop,
9719
+ val
9720
+ );
9612
9721
  };
9613
9722
  assert2.notDeepPropertyVal = function(obj, prop, val, msg) {
9614
- new Assertion(obj, msg, assert2.notDeepPropertyVal, true).to.not.have.deep.property(prop, val);
9723
+ new Assertion(
9724
+ obj,
9725
+ msg,
9726
+ assert2.notDeepPropertyVal,
9727
+ true
9728
+ ).to.not.have.deep.property(prop, val);
9615
9729
  };
9616
9730
  assert2.ownProperty = function(obj, prop, msg) {
9617
9731
  new Assertion(obj, msg, assert2.ownProperty, true).to.have.own.property(prop);
9618
9732
  };
9619
9733
  assert2.notOwnProperty = function(obj, prop, msg) {
9620
- new Assertion(obj, msg, assert2.notOwnProperty, true).to.not.have.own.property(prop);
9734
+ new Assertion(obj, msg, assert2.notOwnProperty, true).to.not.have.own.property(
9735
+ prop
9736
+ );
9621
9737
  };
9622
9738
  assert2.ownPropertyVal = function(obj, prop, value, msg) {
9623
- new Assertion(obj, msg, assert2.ownPropertyVal, true).to.have.own.property(prop, value);
9739
+ new Assertion(obj, msg, assert2.ownPropertyVal, true).to.have.own.property(
9740
+ prop,
9741
+ value
9742
+ );
9624
9743
  };
9625
9744
  assert2.notOwnPropertyVal = function(obj, prop, value, msg) {
9626
- new Assertion(obj, msg, assert2.notOwnPropertyVal, true).to.not.have.own.property(prop, value);
9745
+ new Assertion(
9746
+ obj,
9747
+ msg,
9748
+ assert2.notOwnPropertyVal,
9749
+ true
9750
+ ).to.not.have.own.property(prop, value);
9627
9751
  };
9628
9752
  assert2.deepOwnPropertyVal = function(obj, prop, value, msg) {
9629
- new Assertion(obj, msg, assert2.deepOwnPropertyVal, true).to.have.deep.own.property(prop, value);
9753
+ new Assertion(
9754
+ obj,
9755
+ msg,
9756
+ assert2.deepOwnPropertyVal,
9757
+ true
9758
+ ).to.have.deep.own.property(prop, value);
9630
9759
  };
9631
9760
  assert2.notDeepOwnPropertyVal = function(obj, prop, value, msg) {
9632
- new Assertion(obj, msg, assert2.notDeepOwnPropertyVal, true).to.not.have.deep.own.property(prop, value);
9761
+ new Assertion(
9762
+ obj,
9763
+ msg,
9764
+ assert2.notDeepOwnPropertyVal,
9765
+ true
9766
+ ).to.not.have.deep.own.property(prop, value);
9633
9767
  };
9634
9768
  assert2.nestedProperty = function(obj, prop, msg) {
9635
- new Assertion(obj, msg, assert2.nestedProperty, true).to.have.nested.property(prop);
9769
+ new Assertion(obj, msg, assert2.nestedProperty, true).to.have.nested.property(
9770
+ prop
9771
+ );
9636
9772
  };
9637
9773
  assert2.notNestedProperty = function(obj, prop, msg) {
9638
- new Assertion(obj, msg, assert2.notNestedProperty, true).to.not.have.nested.property(prop);
9774
+ new Assertion(
9775
+ obj,
9776
+ msg,
9777
+ assert2.notNestedProperty,
9778
+ true
9779
+ ).to.not.have.nested.property(prop);
9639
9780
  };
9640
9781
  assert2.nestedPropertyVal = function(obj, prop, val, msg) {
9641
- new Assertion(obj, msg, assert2.nestedPropertyVal, true).to.have.nested.property(prop, val);
9782
+ new Assertion(
9783
+ obj,
9784
+ msg,
9785
+ assert2.nestedPropertyVal,
9786
+ true
9787
+ ).to.have.nested.property(prop, val);
9642
9788
  };
9643
9789
  assert2.notNestedPropertyVal = function(obj, prop, val, msg) {
9644
- new Assertion(obj, msg, assert2.notNestedPropertyVal, true).to.not.have.nested.property(prop, val);
9790
+ new Assertion(
9791
+ obj,
9792
+ msg,
9793
+ assert2.notNestedPropertyVal,
9794
+ true
9795
+ ).to.not.have.nested.property(prop, val);
9645
9796
  };
9646
9797
  assert2.deepNestedPropertyVal = function(obj, prop, val, msg) {
9647
- new Assertion(obj, msg, assert2.deepNestedPropertyVal, true).to.have.deep.nested.property(prop, val);
9798
+ new Assertion(
9799
+ obj,
9800
+ msg,
9801
+ assert2.deepNestedPropertyVal,
9802
+ true
9803
+ ).to.have.deep.nested.property(prop, val);
9648
9804
  };
9649
9805
  assert2.notDeepNestedPropertyVal = function(obj, prop, val, msg) {
9650
- new Assertion(obj, msg, assert2.notDeepNestedPropertyVal, true).to.not.have.deep.nested.property(prop, val);
9806
+ new Assertion(
9807
+ obj,
9808
+ msg,
9809
+ assert2.notDeepNestedPropertyVal,
9810
+ true
9811
+ ).to.not.have.deep.nested.property(prop, val);
9651
9812
  };
9652
9813
  assert2.lengthOf = function(exp, len, msg) {
9653
9814
  new Assertion(exp, msg, assert2.lengthOf, true).to.have.lengthOf(len);
@@ -9659,35 +9820,63 @@ assert2.hasAllKeys = function(obj, keys2, msg) {
9659
9820
  new Assertion(obj, msg, assert2.hasAllKeys, true).to.have.all.keys(keys2);
9660
9821
  };
9661
9822
  assert2.containsAllKeys = function(obj, keys2, msg) {
9662
- new Assertion(obj, msg, assert2.containsAllKeys, true).to.contain.all.keys(keys2);
9823
+ new Assertion(obj, msg, assert2.containsAllKeys, true).to.contain.all.keys(
9824
+ keys2
9825
+ );
9663
9826
  };
9664
9827
  assert2.doesNotHaveAnyKeys = function(obj, keys2, msg) {
9665
- new Assertion(obj, msg, assert2.doesNotHaveAnyKeys, true).to.not.have.any.keys(keys2);
9828
+ new Assertion(obj, msg, assert2.doesNotHaveAnyKeys, true).to.not.have.any.keys(
9829
+ keys2
9830
+ );
9666
9831
  };
9667
9832
  assert2.doesNotHaveAllKeys = function(obj, keys2, msg) {
9668
- new Assertion(obj, msg, assert2.doesNotHaveAllKeys, true).to.not.have.all.keys(keys2);
9833
+ new Assertion(obj, msg, assert2.doesNotHaveAllKeys, true).to.not.have.all.keys(
9834
+ keys2
9835
+ );
9669
9836
  };
9670
9837
  assert2.hasAnyDeepKeys = function(obj, keys2, msg) {
9671
- new Assertion(obj, msg, assert2.hasAnyDeepKeys, true).to.have.any.deep.keys(keys2);
9838
+ new Assertion(obj, msg, assert2.hasAnyDeepKeys, true).to.have.any.deep.keys(
9839
+ keys2
9840
+ );
9672
9841
  };
9673
9842
  assert2.hasAllDeepKeys = function(obj, keys2, msg) {
9674
- new Assertion(obj, msg, assert2.hasAllDeepKeys, true).to.have.all.deep.keys(keys2);
9843
+ new Assertion(obj, msg, assert2.hasAllDeepKeys, true).to.have.all.deep.keys(
9844
+ keys2
9845
+ );
9675
9846
  };
9676
9847
  assert2.containsAllDeepKeys = function(obj, keys2, msg) {
9677
- new Assertion(obj, msg, assert2.containsAllDeepKeys, true).to.contain.all.deep.keys(keys2);
9848
+ new Assertion(
9849
+ obj,
9850
+ msg,
9851
+ assert2.containsAllDeepKeys,
9852
+ true
9853
+ ).to.contain.all.deep.keys(keys2);
9678
9854
  };
9679
9855
  assert2.doesNotHaveAnyDeepKeys = function(obj, keys2, msg) {
9680
- new Assertion(obj, msg, assert2.doesNotHaveAnyDeepKeys, true).to.not.have.any.deep.keys(keys2);
9856
+ new Assertion(
9857
+ obj,
9858
+ msg,
9859
+ assert2.doesNotHaveAnyDeepKeys,
9860
+ true
9861
+ ).to.not.have.any.deep.keys(keys2);
9681
9862
  };
9682
9863
  assert2.doesNotHaveAllDeepKeys = function(obj, keys2, msg) {
9683
- new Assertion(obj, msg, assert2.doesNotHaveAllDeepKeys, true).to.not.have.all.deep.keys(keys2);
9864
+ new Assertion(
9865
+ obj,
9866
+ msg,
9867
+ assert2.doesNotHaveAllDeepKeys,
9868
+ true
9869
+ ).to.not.have.all.deep.keys(keys2);
9684
9870
  };
9685
9871
  assert2.throws = function(fn2, errorLike, errMsgMatcher, msg) {
9686
9872
  if ("string" === typeof errorLike || errorLike instanceof RegExp) {
9687
9873
  errMsgMatcher = errorLike;
9688
9874
  errorLike = null;
9689
9875
  }
9690
- var assertErr = new Assertion(fn2, msg, assert2.throws, true).to.throw(errorLike, errMsgMatcher);
9876
+ var assertErr = new Assertion(fn2, msg, assert2.throws, true).to.throw(
9877
+ errorLike,
9878
+ errMsgMatcher
9879
+ );
9691
9880
  return flag(assertErr, "object");
9692
9881
  };
9693
9882
  assert2.doesNotThrow = function(fn2, errorLike, errMsgMatcher, message) {
@@ -9695,7 +9884,10 @@ assert2.doesNotThrow = function(fn2, errorLike, errMsgMatcher, message) {
9695
9884
  errMsgMatcher = errorLike;
9696
9885
  errorLike = null;
9697
9886
  }
9698
- new Assertion(fn2, message, assert2.doesNotThrow, true).to.not.throw(errorLike, errMsgMatcher);
9887
+ new Assertion(fn2, message, assert2.doesNotThrow, true).to.not.throw(
9888
+ errorLike,
9889
+ errMsgMatcher
9890
+ );
9699
9891
  };
9700
9892
  assert2.operator = function(val, operator, val2, msg) {
9701
9893
  var ok;
@@ -9743,55 +9935,130 @@ assert2.closeTo = function(act, exp, delta, msg) {
9743
9935
  new Assertion(act, msg, assert2.closeTo, true).to.be.closeTo(exp, delta);
9744
9936
  };
9745
9937
  assert2.approximately = function(act, exp, delta, msg) {
9746
- new Assertion(act, msg, assert2.approximately, true).to.be.approximately(exp, delta);
9938
+ new Assertion(act, msg, assert2.approximately, true).to.be.approximately(
9939
+ exp,
9940
+ delta
9941
+ );
9747
9942
  };
9748
9943
  assert2.sameMembers = function(set1, set22, msg) {
9749
9944
  new Assertion(set1, msg, assert2.sameMembers, true).to.have.same.members(set22);
9750
9945
  };
9751
9946
  assert2.notSameMembers = function(set1, set22, msg) {
9752
- new Assertion(set1, msg, assert2.notSameMembers, true).to.not.have.same.members(set22);
9947
+ new Assertion(
9948
+ set1,
9949
+ msg,
9950
+ assert2.notSameMembers,
9951
+ true
9952
+ ).to.not.have.same.members(set22);
9753
9953
  };
9754
9954
  assert2.sameDeepMembers = function(set1, set22, msg) {
9755
- new Assertion(set1, msg, assert2.sameDeepMembers, true).to.have.same.deep.members(set22);
9955
+ new Assertion(
9956
+ set1,
9957
+ msg,
9958
+ assert2.sameDeepMembers,
9959
+ true
9960
+ ).to.have.same.deep.members(set22);
9756
9961
  };
9757
9962
  assert2.notSameDeepMembers = function(set1, set22, msg) {
9758
- new Assertion(set1, msg, assert2.notSameDeepMembers, true).to.not.have.same.deep.members(set22);
9963
+ new Assertion(
9964
+ set1,
9965
+ msg,
9966
+ assert2.notSameDeepMembers,
9967
+ true
9968
+ ).to.not.have.same.deep.members(set22);
9759
9969
  };
9760
9970
  assert2.sameOrderedMembers = function(set1, set22, msg) {
9761
- new Assertion(set1, msg, assert2.sameOrderedMembers, true).to.have.same.ordered.members(set22);
9971
+ new Assertion(
9972
+ set1,
9973
+ msg,
9974
+ assert2.sameOrderedMembers,
9975
+ true
9976
+ ).to.have.same.ordered.members(set22);
9762
9977
  };
9763
9978
  assert2.notSameOrderedMembers = function(set1, set22, msg) {
9764
- new Assertion(set1, msg, assert2.notSameOrderedMembers, true).to.not.have.same.ordered.members(set22);
9979
+ new Assertion(
9980
+ set1,
9981
+ msg,
9982
+ assert2.notSameOrderedMembers,
9983
+ true
9984
+ ).to.not.have.same.ordered.members(set22);
9765
9985
  };
9766
9986
  assert2.sameDeepOrderedMembers = function(set1, set22, msg) {
9767
- new Assertion(set1, msg, assert2.sameDeepOrderedMembers, true).to.have.same.deep.ordered.members(set22);
9987
+ new Assertion(
9988
+ set1,
9989
+ msg,
9990
+ assert2.sameDeepOrderedMembers,
9991
+ true
9992
+ ).to.have.same.deep.ordered.members(set22);
9768
9993
  };
9769
9994
  assert2.notSameDeepOrderedMembers = function(set1, set22, msg) {
9770
- new Assertion(set1, msg, assert2.notSameDeepOrderedMembers, true).to.not.have.same.deep.ordered.members(set22);
9995
+ new Assertion(
9996
+ set1,
9997
+ msg,
9998
+ assert2.notSameDeepOrderedMembers,
9999
+ true
10000
+ ).to.not.have.same.deep.ordered.members(set22);
9771
10001
  };
9772
10002
  assert2.includeMembers = function(superset, subset, msg) {
9773
- new Assertion(superset, msg, assert2.includeMembers, true).to.include.members(subset);
10003
+ new Assertion(superset, msg, assert2.includeMembers, true).to.include.members(
10004
+ subset
10005
+ );
9774
10006
  };
9775
10007
  assert2.notIncludeMembers = function(superset, subset, msg) {
9776
- new Assertion(superset, msg, assert2.notIncludeMembers, true).to.not.include.members(subset);
10008
+ new Assertion(
10009
+ superset,
10010
+ msg,
10011
+ assert2.notIncludeMembers,
10012
+ true
10013
+ ).to.not.include.members(subset);
9777
10014
  };
9778
10015
  assert2.includeDeepMembers = function(superset, subset, msg) {
9779
- new Assertion(superset, msg, assert2.includeDeepMembers, true).to.include.deep.members(subset);
10016
+ new Assertion(
10017
+ superset,
10018
+ msg,
10019
+ assert2.includeDeepMembers,
10020
+ true
10021
+ ).to.include.deep.members(subset);
9780
10022
  };
9781
10023
  assert2.notIncludeDeepMembers = function(superset, subset, msg) {
9782
- new Assertion(superset, msg, assert2.notIncludeDeepMembers, true).to.not.include.deep.members(subset);
10024
+ new Assertion(
10025
+ superset,
10026
+ msg,
10027
+ assert2.notIncludeDeepMembers,
10028
+ true
10029
+ ).to.not.include.deep.members(subset);
9783
10030
  };
9784
10031
  assert2.includeOrderedMembers = function(superset, subset, msg) {
9785
- new Assertion(superset, msg, assert2.includeOrderedMembers, true).to.include.ordered.members(subset);
10032
+ new Assertion(
10033
+ superset,
10034
+ msg,
10035
+ assert2.includeOrderedMembers,
10036
+ true
10037
+ ).to.include.ordered.members(subset);
9786
10038
  };
9787
10039
  assert2.notIncludeOrderedMembers = function(superset, subset, msg) {
9788
- new Assertion(superset, msg, assert2.notIncludeOrderedMembers, true).to.not.include.ordered.members(subset);
10040
+ new Assertion(
10041
+ superset,
10042
+ msg,
10043
+ assert2.notIncludeOrderedMembers,
10044
+ true
10045
+ ).to.not.include.ordered.members(subset);
9789
10046
  };
9790
10047
  assert2.includeDeepOrderedMembers = function(superset, subset, msg) {
9791
- new Assertion(superset, msg, assert2.includeDeepOrderedMembers, true).to.include.deep.ordered.members(subset);
10048
+ new Assertion(
10049
+ superset,
10050
+ msg,
10051
+ assert2.includeDeepOrderedMembers,
10052
+ true
10053
+ ).to.include.deep.ordered.members(subset);
9792
10054
  };
9793
10055
  assert2.notIncludeDeepOrderedMembers = function(superset, subset, msg) {
9794
- new Assertion(superset, msg, assert2.notIncludeDeepOrderedMembers, true).to.not.include.deep.ordered.members(subset);
10056
+ new Assertion(
10057
+ superset,
10058
+ msg,
10059
+ assert2.notIncludeDeepOrderedMembers,
10060
+ true
10061
+ ).to.not.include.deep.ordered.members(subset);
9795
10062
  };
9796
10063
  assert2.oneOf = function(inList, list, msg) {
9797
10064
  new Assertion(inList, msg, assert2.oneOf, true).to.be.oneOf(list);
@@ -9799,11 +10066,7 @@ assert2.oneOf = function(inList, list, msg) {
9799
10066
  assert2.isIterable = function(obj, msg) {
9800
10067
  if (obj == void 0 || !obj[Symbol.iterator]) {
9801
10068
  msg = msg ? `${msg} expected ${inspect22(obj)} to be an iterable` : `expected ${inspect22(obj)} to be an iterable`;
9802
- throw new AssertionError(
9803
- msg,
9804
- void 0,
9805
- assert2.isIterable
9806
- );
10069
+ throw new AssertionError(msg, void 0, assert2.isIterable);
9807
10070
  }
9808
10071
  };
9809
10072
  assert2.changes = function(fn2, obj, prop, msg) {
@@ -9829,7 +10092,10 @@ assert2.doesNotChange = function(fn2, obj, prop, msg) {
9829
10092
  msg = prop;
9830
10093
  prop = null;
9831
10094
  }
9832
- return new Assertion(fn2, msg, assert2.doesNotChange, true).to.not.change(obj, prop);
10095
+ return new Assertion(fn2, msg, assert2.doesNotChange, true).to.not.change(
10096
+ obj,
10097
+ prop
10098
+ );
9833
10099
  };
9834
10100
  assert2.changesButNotBy = function(fn2, obj, prop, delta, msg) {
9835
10101
  if (arguments.length === 4 && typeof obj === "function") {
@@ -9865,7 +10131,10 @@ assert2.doesNotIncrease = function(fn2, obj, prop, msg) {
9865
10131
  msg = prop;
9866
10132
  prop = null;
9867
10133
  }
9868
- return new Assertion(fn2, msg, assert2.doesNotIncrease, true).to.not.increase(obj, prop);
10134
+ return new Assertion(fn2, msg, assert2.doesNotIncrease, true).to.not.increase(
10135
+ obj,
10136
+ prop
10137
+ );
9869
10138
  };
9870
10139
  assert2.increasesButNotBy = function(fn2, obj, prop, delta, msg) {
9871
10140
  if (arguments.length === 4 && typeof obj === "function") {
@@ -9901,7 +10170,10 @@ assert2.doesNotDecrease = function(fn2, obj, prop, msg) {
9901
10170
  msg = prop;
9902
10171
  prop = null;
9903
10172
  }
9904
- return new Assertion(fn2, msg, assert2.doesNotDecrease, true).to.not.decrease(obj, prop);
10173
+ return new Assertion(fn2, msg, assert2.doesNotDecrease, true).to.not.decrease(
10174
+ obj,
10175
+ prop
10176
+ );
9905
10177
  };
9906
10178
  assert2.doesNotDecreaseBy = function(fn2, obj, prop, delta, msg) {
9907
10179
  if (arguments.length === 4 && typeof obj === "function") {
@@ -9954,13 +10226,36 @@ assert2.isEmpty = function(val, msg) {
9954
10226
  assert2.isNotEmpty = function(val, msg) {
9955
10227
  new Assertion(val, msg, assert2.isNotEmpty, true).to.not.be.empty;
9956
10228
  };
9957
- (/* @__PURE__ */ __name(function alias(name, as) {
10229
+ assert2.containsSubset = function(val, exp, msg) {
10230
+ new Assertion(val, msg).to.containSubset(exp);
10231
+ };
10232
+ assert2.doesNotContainSubset = function(val, exp, msg) {
10233
+ new Assertion(val, msg).to.not.containSubset(exp);
10234
+ };
10235
+ var aliases = [
10236
+ ["isOk", "ok"],
10237
+ ["isNotOk", "notOk"],
10238
+ ["throws", "throw"],
10239
+ ["throws", "Throw"],
10240
+ ["isExtensible", "extensible"],
10241
+ ["isNotExtensible", "notExtensible"],
10242
+ ["isSealed", "sealed"],
10243
+ ["isNotSealed", "notSealed"],
10244
+ ["isFrozen", "frozen"],
10245
+ ["isNotFrozen", "notFrozen"],
10246
+ ["isEmpty", "empty"],
10247
+ ["isNotEmpty", "notEmpty"],
10248
+ ["isCallable", "isFunction"],
10249
+ ["isNotCallable", "isNotFunction"],
10250
+ ["containsSubset", "containSubset"]
10251
+ ];
10252
+ for (const [name, as] of aliases) {
9958
10253
  assert2[as] = assert2[name];
9959
- return alias;
9960
- }, "alias"))("isOk", "ok")("isNotOk", "notOk")("throws", "throw")("throws", "Throw")("isExtensible", "extensible")("isNotExtensible", "notExtensible")("isSealed", "sealed")("isNotSealed", "notSealed")("isFrozen", "frozen")("isNotFrozen", "notFrozen")("isEmpty", "empty")("isNotEmpty", "notEmpty")("isCallable", "isFunction")("isNotCallable", "isNotFunction");
10254
+ }
9961
10255
  var used = [];
9962
10256
  function use(fn2) {
9963
10257
  const exports = {
10258
+ use,
9964
10259
  AssertionError,
9965
10260
  util: utils_exports,
9966
10261
  config,
@@ -9977,7 +10272,7 @@ function use(fn2) {
9977
10272
  }
9978
10273
  __name(use, "use");
9979
10274
 
9980
- // ../../node_modules/.pnpm/@vitest+expect@3.0.5/node_modules/@vitest/expect/dist/index.js
10275
+ // ../../node_modules/.pnpm/@vitest+expect@3.0.6/node_modules/@vitest/expect/dist/index.js
9981
10276
  var MATCHERS_OBJECT = Symbol.for("matchers-object");
9982
10277
  var JEST_MATCHERS_OBJECT = Symbol.for("$$jest-matchers-object");
9983
10278
  var GLOBAL_EXPECT = Symbol.for("expect-global");
@@ -10622,15 +10917,13 @@ var AsymmetricMatcher3 = class {
10622
10917
  }
10623
10918
  };
10624
10919
  }
10625
- // implement custom chai/loupe inspect for better AssertionError.message formatting
10626
- // https://github.com/chaijs/loupe/blob/9b8a6deabcd50adc056a64fb705896194710c5c6/src/index.ts#L29
10627
- [Symbol.for("chai/inspect")](options) {
10628
- const result = stringify(this, options.depth, { min: true });
10629
- if (result.length <= options.truncate) {
10630
- return result;
10631
- }
10632
- return `${this.toString()}{\u2026}`;
10920
+ };
10921
+ AsymmetricMatcher3.prototype[Symbol.for("chai/inspect")] = function(options) {
10922
+ const result = stringify(this, options.depth, { min: true });
10923
+ if (result.length <= options.truncate) {
10924
+ return result;
10633
10925
  }
10926
+ return `${this.toString()}{\u2026}`;
10634
10927
  };
10635
10928
  var StringContaining = class extends AsymmetricMatcher3 {
10636
10929
  constructor(sample, inverse = false) {
@@ -12127,7 +12420,7 @@ var JestExtend = (chai2, utils) => {
12127
12420
  );
12128
12421
  };
12129
12422
 
12130
- // ../../node_modules/.pnpm/vitest@3.0.5_@types+debug@4.1.12_@types+node@22.13.1_jiti@1.21.7_terser@5.37.0_yaml@2.7.0/node_modules/vitest/dist/chunks/utils.C8RiOc4B.js
12423
+ // ../../node_modules/.pnpm/vitest@3.0.6_@types+debug@4.1.12_@types+node@22.13.5_jiti@1.21.7_terser@5.37.0_yaml@2.7.0/node_modules/vitest/dist/chunks/utils.C8RiOc4B.js
12131
12424
  var NAME_WORKER_STATE = "__vitest_worker__";
12132
12425
  function getWorkerState() {
12133
12426
  const workerState = globalThis[NAME_WORKER_STATE];
@@ -12187,13 +12480,13 @@ async function waitForImportsToResolve() {
12187
12480
  await waitForImportsToResolve();
12188
12481
  }
12189
12482
 
12190
- // ../../node_modules/.pnpm/vitest@3.0.5_@types+debug@4.1.12_@types+node@22.13.1_jiti@1.21.7_terser@5.37.0_yaml@2.7.0/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js
12483
+ // ../../node_modules/.pnpm/vitest@3.0.6_@types+debug@4.1.12_@types+node@22.13.5_jiti@1.21.7_terser@5.37.0_yaml@2.7.0/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js
12191
12484
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
12192
12485
  function getDefaultExportFromCjs3(x2) {
12193
12486
  return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
12194
12487
  }
12195
12488
 
12196
- // ../../node_modules/.pnpm/@vitest+snapshot@3.0.5/node_modules/@vitest/snapshot/dist/index.js
12489
+ // ../../node_modules/.pnpm/@vitest+snapshot@3.0.6/node_modules/@vitest/snapshot/dist/index.js
12197
12490
  var comma2 = ",".charCodeAt(0);
12198
12491
  var chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
12199
12492
  var intToChar2 = new Uint8Array(64);
@@ -12872,6 +13165,14 @@ try {
12872
13165
  } catch (noNodeInspect) {
12873
13166
  nodeInspect3 = false;
12874
13167
  }
13168
+ var {
13169
+ AsymmetricMatcher: AsymmetricMatcher$1,
13170
+ DOMCollection: DOMCollection$1,
13171
+ DOMElement: DOMElement$1,
13172
+ Immutable: Immutable$1,
13173
+ ReactElement: ReactElement$1,
13174
+ ReactTestComponent: ReactTestComponent$1
13175
+ } = plugins;
12875
13176
  function getDefaultExportFromCjs4(x2) {
12876
13177
  return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
12877
13178
  }
@@ -13812,10 +14113,25 @@ var CounterMap = class extends DefaultMap {
13812
14113
  constructor() {
13813
14114
  super(() => 0);
13814
14115
  }
14116
+ // compat for jest-image-snapshot https://github.com/vitest-dev/vitest/issues/7322
14117
+ // `valueOf` and `Snapshot.added` setter allows
14118
+ // snapshotState.added = snapshotState.added + 1
14119
+ // to function as
14120
+ // snapshotState.added.total_ = snapshotState.added.total() + 1
14121
+ _total;
14122
+ valueOf() {
14123
+ return this._total = this.total();
14124
+ }
13815
14125
  increment(key) {
14126
+ if (typeof this._total !== "undefined") {
14127
+ this._total++;
14128
+ }
13816
14129
  this.set(key, this.get(key) + 1);
13817
14130
  }
13818
14131
  total() {
14132
+ if (typeof this._total !== "undefined") {
14133
+ return this._total;
14134
+ }
13819
14135
  let total = 0;
13820
14136
  for (const x2 of this.values()) {
13821
14137
  total += x2;
@@ -13858,11 +14174,37 @@ var SnapshotState = class _SnapshotState {
13858
14174
  _snapshotFormat;
13859
14175
  _environment;
13860
14176
  _fileExists;
13861
- added = new CounterMap();
13862
- matched = new CounterMap();
13863
- unmatched = new CounterMap();
13864
- updated = new CounterMap();
13865
14177
  expand;
14178
+ // getter/setter for jest-image-snapshot compat
14179
+ // https://github.com/vitest-dev/vitest/issues/7322
14180
+ _added = new CounterMap();
14181
+ _matched = new CounterMap();
14182
+ _unmatched = new CounterMap();
14183
+ _updated = new CounterMap();
14184
+ get added() {
14185
+ return this._added;
14186
+ }
14187
+ set added(value) {
14188
+ this._added._total = value;
14189
+ }
14190
+ get matched() {
14191
+ return this._matched;
14192
+ }
14193
+ set matched(value) {
14194
+ this._matched._total = value;
14195
+ }
14196
+ get unmatched() {
14197
+ return this._unmatched;
14198
+ }
14199
+ set unmatched(value) {
14200
+ this._unmatched._total = value;
14201
+ }
14202
+ get updated() {
14203
+ return this._updated;
14204
+ }
14205
+ set updated(value) {
14206
+ this._updated._total = value;
14207
+ }
13866
14208
  static async create(testFilePath, options) {
13867
14209
  const snapshotPath = await options.snapshotEnvironment.resolvePath(
13868
14210
  testFilePath
@@ -14256,7 +14598,7 @@ var SnapshotClient = class {
14256
14598
  }
14257
14599
  };
14258
14600
 
14259
- // ../../node_modules/.pnpm/vitest@3.0.5_@types+debug@4.1.12_@types+node@22.13.1_jiti@1.21.7_terser@5.37.0_yaml@2.7.0/node_modules/vitest/dist/chunks/date.W2xKR2qe.js
14601
+ // ../../node_modules/.pnpm/vitest@3.0.6_@types+debug@4.1.12_@types+node@22.13.5_jiti@1.21.7_terser@5.37.0_yaml@2.7.0/node_modules/vitest/dist/chunks/date.W2xKR2qe.js
14260
14602
  var RealDate = Date;
14261
14603
  var now2 = null;
14262
14604
  var MockDate = class _MockDate extends RealDate {
@@ -14309,7 +14651,7 @@ function resetDate() {
14309
14651
  globalThis.Date = RealDate;
14310
14652
  }
14311
14653
 
14312
- // ../../node_modules/.pnpm/vitest@3.0.5_@types+debug@4.1.12_@types+node@22.13.1_jiti@1.21.7_terser@5.37.0_yaml@2.7.0/node_modules/vitest/dist/chunks/vi.CjhMlMwf.js
14654
+ // ../../node_modules/.pnpm/vitest@3.0.6_@types+debug@4.1.12_@types+node@22.13.5_jiti@1.21.7_terser@5.37.0_yaml@2.7.0/node_modules/vitest/dist/chunks/vi.DrftpPF8.js
14313
14655
  var unsupported = [
14314
14656
  // .poll is meant to retry matchers until they succeed, and
14315
14657
  // snapshots will always succeed as long as the poll method doesn't throw an error
@@ -16685,6 +17027,12 @@ var fakeTimersSrcExports = requireFakeTimersSrc();
16685
17027
  var FakeTimers = class {
16686
17028
  _global;
16687
17029
  _clock;
17030
+ // | _fakingTime | _fakingDate |
17031
+ // +-------------+-------------+
17032
+ // | false | falsy | initial
17033
+ // | false | truethy | vi.setSystemTime called first (for mocking only Date without fake timers)
17034
+ // | true | falsy | vi.useFakeTimers called first
17035
+ // | true | truethy | unreachable
16688
17036
  _fakingTime;
16689
17037
  _fakingDate;
16690
17038
  _fakeTimers;
@@ -16695,7 +17043,7 @@ var FakeTimers = class {
16695
17043
  config: config2
16696
17044
  }) {
16697
17045
  this._userConfig = config2;
16698
- this._fakingDate = false;
17046
+ this._fakingDate = null;
16699
17047
  this._fakingTime = false;
16700
17048
  this._fakeTimers = fakeTimersSrcExports.withGlobal(global3);
16701
17049
  this._global = global3;
@@ -16773,7 +17121,7 @@ var FakeTimers = class {
16773
17121
  useRealTimers() {
16774
17122
  if (this._fakingDate) {
16775
17123
  resetDate();
16776
- this._fakingDate = false;
17124
+ this._fakingDate = null;
16777
17125
  }
16778
17126
  if (this._fakingTime) {
16779
17127
  this._clock.uninstall();
@@ -16788,7 +17136,7 @@ var FakeTimers = class {
16788
17136
  }
16789
17137
  if (!this._fakingTime) {
16790
17138
  const toFake = Object.keys(this._fakeTimers.timers).filter(
16791
- (timer) => timer !== "nextTick"
17139
+ (timer) => timer !== "nextTick" && timer !== "queueMicrotask"
16792
17140
  );
16793
17141
  if (this._userConfig?.toFake?.includes("nextTick") && isChildProcess()) {
16794
17142
  throw new Error(
@@ -16812,13 +17160,17 @@ var FakeTimers = class {
16812
17160
  }
16813
17161
  }
16814
17162
  setSystemTime(now3) {
17163
+ const date = typeof now3 === "undefined" || now3 instanceof Date ? now3 : new Date(now3);
16815
17164
  if (this._fakingTime) {
16816
- this._clock.setSystemTime(now3);
17165
+ this._clock.setSystemTime(date);
16817
17166
  } else {
16818
- mockDate(now3 ?? this.getRealSystemTime());
16819
- this._fakingDate = true;
17167
+ this._fakingDate = date ?? new Date(this.getRealSystemTime());
17168
+ mockDate(this._fakingDate);
16820
17169
  }
16821
17170
  }
17171
+ getMockedSystemTime() {
17172
+ return this._fakingTime ? new Date(this._clock.now) : this._fakingDate;
17173
+ }
16822
17174
  getRealSystemTime() {
16823
17175
  return this._now();
16824
17176
  }
@@ -16987,7 +17339,6 @@ function waitUntil(callback, options = {}) {
16987
17339
  });
16988
17340
  }
16989
17341
  function createVitest() {
16990
- let _mockedDate = null;
16991
17342
  let _config = null;
16992
17343
  const workerState = getWorkerState();
16993
17344
  let _timers;
@@ -17020,7 +17371,6 @@ function createVitest() {
17020
17371
  },
17021
17372
  useRealTimers() {
17022
17373
  timers().useRealTimers();
17023
- _mockedDate = null;
17024
17374
  return utils;
17025
17375
  },
17026
17376
  runOnlyPendingTimers() {
@@ -17067,13 +17417,11 @@ function createVitest() {
17067
17417
  return timers().getTimerCount();
17068
17418
  },
17069
17419
  setSystemTime(time) {
17070
- const date = time instanceof Date ? time : new Date(time);
17071
- _mockedDate = date;
17072
- timers().setSystemTime(date);
17420
+ timers().setSystemTime(time);
17073
17421
  return utils;
17074
17422
  },
17075
17423
  getMockedSystemTime() {
17076
- return _mockedDate;
17424
+ return timers().getMockedSystemTime();
17077
17425
  },
17078
17426
  getRealSystemTime() {
17079
17427
  return timers().getRealSystemTime();
@@ -17269,7 +17617,7 @@ function getImporter(name) {
17269
17617
  return stack?.file || "";
17270
17618
  }
17271
17619
 
17272
- // ../../node_modules/.pnpm/vitest@3.0.5_@types+debug@4.1.12_@types+node@22.13.1_jiti@1.21.7_terser@5.37.0_yaml@2.7.0/node_modules/vitest/dist/index.js
17620
+ // ../../node_modules/.pnpm/vitest@3.0.6_@types+debug@4.1.12_@types+node@22.13.5_jiti@1.21.7_terser@5.37.0_yaml@2.7.0/node_modules/vitest/dist/index.js
17273
17621
  var import_expect_type = __toESM(require_dist(), 1);
17274
17622
 
17275
17623
  export {
@@ -17568,4 +17916,4 @@ chai/chai.js:
17568
17916
  * @license MIT License
17569
17917
  *)
17570
17918
  */
17571
- //# sourceMappingURL=chunk-TQVG2NFE.js.map
17919
+ //# sourceMappingURL=chunk-4RAXUOL2.js.map