@copilotkit/runtime-client-gql 1.10.7-next.0 → 1.50.0-beta.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.
- package/CHANGELOG.md +0 -6
- package/dist/{chunk-TDZBGVZB.mjs → chunk-AMFKR5ST.mjs} +2 -2
- package/dist/{chunk-O7JH6IWQ.mjs → chunk-EIPAWDCN.mjs} +2 -2
- package/dist/{chunk-VVFJT2PN.mjs → chunk-NHOKFX55.mjs} +2 -1
- package/dist/chunk-NHOKFX55.mjs.map +1 -0
- package/dist/{chunk-TNC2H2EO.mjs → chunk-RNENVFJ3.mjs} +2 -2
- package/dist/chunk-RNENVFJ3.mjs.map +1 -0
- package/dist/{chunk-2R7M2FWR.mjs → chunk-SVJN2STA.mjs} +6 -6
- package/dist/chunk-SVJN2STA.mjs.map +1 -0
- package/dist/{chunk-UNOAOYT4.mjs → chunk-ZBNRBXIW.mjs} +2 -2
- package/dist/{chunk-UNOAOYT4.mjs.map → chunk-ZBNRBXIW.mjs.map} +1 -1
- package/dist/client/CopilotRuntimeClient.js +1 -1
- package/dist/client/CopilotRuntimeClient.js.map +1 -1
- package/dist/client/CopilotRuntimeClient.mjs +1 -1
- package/dist/client/conversion.js +1 -0
- package/dist/client/conversion.js.map +1 -1
- package/dist/client/conversion.mjs +2 -2
- package/dist/client/index.js +2 -1
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +3 -3
- package/dist/client/types.d.ts +2 -1
- package/dist/client/types.js +1 -0
- package/dist/client/types.js.map +1 -1
- package/dist/client/types.mjs +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/message-conversion/agui-to-gql.js +1 -0
- package/dist/message-conversion/agui-to-gql.js.map +1 -1
- package/dist/message-conversion/agui-to-gql.mjs +4 -4
- package/dist/message-conversion/agui-to-gql.test.js +6 -5
- package/dist/message-conversion/agui-to-gql.test.js.map +1 -1
- package/dist/message-conversion/agui-to-gql.test.mjs +5 -5
- package/dist/message-conversion/gql-to-agui.js.map +1 -1
- package/dist/message-conversion/gql-to-agui.mjs +4 -4
- package/dist/message-conversion/gql-to-agui.test.js +6 -5
- package/dist/message-conversion/gql-to-agui.test.js.map +1 -1
- package/dist/message-conversion/gql-to-agui.test.mjs +5 -5
- package/dist/message-conversion/index.js +1 -0
- package/dist/message-conversion/index.js.map +1 -1
- package/dist/message-conversion/index.mjs +5 -5
- package/dist/message-conversion/roundtrip-conversion.test.js +6 -5
- package/dist/message-conversion/roundtrip-conversion.test.js.map +1 -1
- package/dist/message-conversion/roundtrip-conversion.test.mjs +6 -6
- package/package.json +3 -3
- package/src/client/types.ts +2 -1
- package/src/message-conversion/agui-to-gql.ts +1 -1
- package/dist/chunk-2R7M2FWR.mjs.map +0 -1
- package/dist/chunk-TNC2H2EO.mjs.map +0 -1
- package/dist/chunk-VVFJT2PN.mjs.map +0 -1
- /package/dist/{chunk-TDZBGVZB.mjs.map → chunk-AMFKR5ST.mjs.map} +0 -0
- /package/dist/{chunk-O7JH6IWQ.mjs.map → chunk-EIPAWDCN.mjs.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js","../../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/branding.js","../../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/messages.js","../../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/overloads.js","../../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/utils.js","../../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/index.js","../../../node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js","../../../node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.js","../../../node_modules/.pnpm/@vitest+pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js","../../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/helpers.js","../../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/array.js","../../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/typedarray.js","../../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/date.js","../../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/function.js","../../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/map.js","../../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/number.js","../../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/bigint.js","../../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/regexp.js","../../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/set.js","../../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/string.js","../../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/symbol.js","../../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/promise.js","../../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/object.js","../../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/class.js","../../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/arguments.js","../../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/error.js","../../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/html.js","../../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/index.js","../../../node_modules/.pnpm/@vitest+utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js","../../../node_modules/.pnpm/@vitest+utils@3.2.4/node_modules/@vitest/utils/dist/helpers.js","../../../node_modules/.pnpm/@vitest+utils@3.2.4/node_modules/@vitest/utils/dist/index.js","../../../node_modules/.pnpm/@vitest+utils@3.2.4/node_modules/@vitest/utils/dist/source-map.js","../../../node_modules/.pnpm/@vitest+utils@3.2.4/node_modules/@vitest/utils/dist/diff.js","../../../node_modules/.pnpm/@vitest+utils@3.2.4/node_modules/@vitest/utils/dist/error.js","../../../node_modules/.pnpm/strip-literal@3.0.0/node_modules/strip-literal/dist/index.mjs","../../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs","../../../node_modules/.pnpm/@vitest+runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js","../../../node_modules/.pnpm/tinyspy@4.0.3/node_modules/tinyspy/dist/index.js","../../../node_modules/.pnpm/@vitest+spy@3.2.4/node_modules/@vitest/spy/dist/index.js","../../../node_modules/.pnpm/chai@5.2.1/node_modules/chai/chai.js","../../../node_modules/.pnpm/@vitest+expect@3.2.4/node_modules/@vitest/expect/dist/index.js","../../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.14.12_jsdom@26.1.0/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js","../../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.14.12_jsdom@26.1.0/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js","../../../node_modules/.pnpm/@vitest+snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js","../../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.14.12_jsdom@26.1.0/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js","../../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.14.12_jsdom@26.1.0/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js","../../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.14.12_jsdom@26.1.0/node_modules/vitest/dist/index.js"],"sourcesContent":["// Copyright 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Simon Lydell\n// License: MIT.\nvar HashbangComment, Identifier, JSXIdentifier, JSXPunctuator, JSXString, JSXText, KeywordsWithExpressionAfter, KeywordsWithNoLineTerminatorAfter, LineTerminatorSequence, MultiLineComment, Newline, NumericLiteral, Punctuator, RegularExpressionLiteral, SingleLineComment, StringLiteral, Template, TokensNotPrecedingObjectLiteral, TokensPrecedingExpression, WhiteSpace, jsTokens;\nRegularExpressionLiteral = /\\/(?![*\\/])(?:\\[(?:[^\\]\\\\\\n\\r\\u2028\\u2029]+|\\\\.)*\\]?|[^\\/[\\\\\\n\\r\\u2028\\u2029]+|\\\\.)*(\\/[$_\\u200C\\u200D\\p{ID_Continue}]*|\\\\)?/yu;\nPunctuator = /--|\\+\\+|=>|\\.{3}|\\??\\.(?!\\d)|(?:&&|\\|\\||\\?\\?|[+\\-%&|^]|\\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\\/(?![\\/*]))=?|[?~,:;[\\](){}]/y;\nIdentifier = /(\\x23?)(?=[$_\\p{ID_Start}\\\\])(?:[$_\\u200C\\u200D\\p{ID_Continue}]+|\\\\u[\\da-fA-F]{4}|\\\\u\\{[\\da-fA-F]+\\})+/yu;\nStringLiteral = /(['\"])(?:[^'\"\\\\\\n\\r]+|(?!\\1)['\"]|\\\\(?:\\r\\n|[^]))*(\\1)?/y;\nNumericLiteral = /(?:0[xX][\\da-fA-F](?:_?[\\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\\d)*n|(?:(?:0(?!\\d)|0\\d*[89]\\d*|[1-9](?:_?\\d)*)(?:\\.(?:\\d(?:_?\\d)*)?)?|\\.\\d(?:_?\\d)*)(?:[eE][+-]?\\d(?:_?\\d)*)?|0[0-7]+/y;\nTemplate = /[`}](?:[^`\\\\$]+|\\\\[^]|\\$(?!\\{))*(`|\\$\\{)?/y;\nWhiteSpace = /[\\t\\v\\f\\ufeff\\p{Zs}]+/yu;\nLineTerminatorSequence = /\\r?\\n|[\\r\\u2028\\u2029]/y;\nMultiLineComment = /\\/\\*(?:[^*]+|\\*(?!\\/))*(\\*\\/)?/y;\nSingleLineComment = /\\/\\/.*/y;\nHashbangComment = /^#!.*/;\nJSXPunctuator = /[<>.:={}]|\\/(?![\\/*])/y;\nJSXIdentifier = /[$_\\p{ID_Start}][$_\\u200C\\u200D\\p{ID_Continue}-]*/yu;\nJSXString = /(['\"])(?:[^'\"]+|(?!\\1)['\"])*(\\1)?/y;\nJSXText = /[^<>{}]+/y;\nTokensPrecedingExpression = /^(?:[\\/+-]|\\.{3}|\\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;\nTokensNotPrecedingObjectLiteral = /^(?:=>|[;\\]){}]|else|\\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;\nKeywordsWithExpressionAfter = /^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;\nKeywordsWithNoLineTerminatorAfter = /^(?:return|throw|yield)$/;\nNewline = RegExp(LineTerminatorSequence.source);\nmodule.exports = jsTokens = function*(input, {jsx = false} = {}) {\n\tvar braces, firstCodePoint, isExpression, lastIndex, lastSignificantToken, length, match, mode, nextLastIndex, nextLastSignificantToken, parenNesting, postfixIncDec, punctuator, stack;\n\t({length} = input);\n\tlastIndex = 0;\n\tlastSignificantToken = \"\";\n\tstack = [\n\t\t{tag: \"JS\"}\n\t];\n\tbraces = [];\n\tparenNesting = 0;\n\tpostfixIncDec = false;\n\tif (match = HashbangComment.exec(input)) {\n\t\tyield ({\n\t\t\ttype: \"HashbangComment\",\n\t\t\tvalue: match[0]\n\t\t});\n\t\tlastIndex = match[0].length;\n\t}\n\twhile (lastIndex < length) {\n\t\tmode = stack[stack.length - 1];\n\t\tswitch (mode.tag) {\n\t\t\tcase \"JS\":\n\t\t\tcase \"JSNonExpressionParen\":\n\t\t\tcase \"InterpolationInTemplate\":\n\t\t\tcase \"InterpolationInJSX\":\n\t\t\t\tif (input[lastIndex] === \"/\" && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken))) {\n\t\t\t\t\tRegularExpressionLiteral.lastIndex = lastIndex;\n\t\t\t\t\tif (match = RegularExpressionLiteral.exec(input)) {\n\t\t\t\t\t\tlastIndex = RegularExpressionLiteral.lastIndex;\n\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"RegularExpressionLiteral\",\n\t\t\t\t\t\t\tvalue: match[0],\n\t\t\t\t\t\t\tclosed: match[1] !== void 0 && match[1] !== \"\\\\\"\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tPunctuator.lastIndex = lastIndex;\n\t\t\t\tif (match = Punctuator.exec(input)) {\n\t\t\t\t\tpunctuator = match[0];\n\t\t\t\t\tnextLastIndex = Punctuator.lastIndex;\n\t\t\t\t\tnextLastSignificantToken = punctuator;\n\t\t\t\t\tswitch (punctuator) {\n\t\t\t\t\t\tcase \"(\":\n\t\t\t\t\t\t\tif (lastSignificantToken === \"?NonExpressionParenKeyword\") {\n\t\t\t\t\t\t\t\tstack.push({\n\t\t\t\t\t\t\t\t\ttag: \"JSNonExpressionParen\",\n\t\t\t\t\t\t\t\t\tnesting: parenNesting\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tparenNesting++;\n\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \")\":\n\t\t\t\t\t\t\tparenNesting--;\n\t\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\t\tif (mode.tag === \"JSNonExpressionParen\" && parenNesting === mode.nesting) {\n\t\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\t\tnextLastSignificantToken = \"?NonExpressionParenEnd\";\n\t\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"{\":\n\t\t\t\t\t\t\tPunctuator.lastIndex = 0;\n\t\t\t\t\t\t\tisExpression = !TokensNotPrecedingObjectLiteral.test(lastSignificantToken) && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken));\n\t\t\t\t\t\t\tbraces.push(isExpression);\n\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"}\":\n\t\t\t\t\t\t\tswitch (mode.tag) {\n\t\t\t\t\t\t\t\tcase \"InterpolationInTemplate\":\n\t\t\t\t\t\t\t\t\tif (braces.length === mode.nesting) {\n\t\t\t\t\t\t\t\t\t\tTemplate.lastIndex = lastIndex;\n\t\t\t\t\t\t\t\t\t\tmatch = Template.exec(input);\n\t\t\t\t\t\t\t\t\t\tlastIndex = Template.lastIndex;\n\t\t\t\t\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\t\t\t\t\tif (match[1] === \"${\") {\n\t\t\t\t\t\t\t\t\t\t\tlastSignificantToken = \"?InterpolationInTemplate\";\n\t\t\t\t\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\t\t\t\t\ttype: \"TemplateMiddle\",\n\t\t\t\t\t\t\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\t\t\t\t\ttype: \"TemplateTail\",\n\t\t\t\t\t\t\t\t\t\t\t\tvalue: match[0],\n\t\t\t\t\t\t\t\t\t\t\t\tclosed: match[1] === \"`\"\n\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tcase \"InterpolationInJSX\":\n\t\t\t\t\t\t\t\t\tif (braces.length === mode.nesting) {\n\t\t\t\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\t\t\t\tlastIndex += 1;\n\t\t\t\t\t\t\t\t\t\tlastSignificantToken = \"}\";\n\t\t\t\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\t\t\t\ttype: \"JSXPunctuator\",\n\t\t\t\t\t\t\t\t\t\t\tvalue: \"}\"\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tpostfixIncDec = braces.pop();\n\t\t\t\t\t\t\tnextLastSignificantToken = postfixIncDec ? \"?ExpressionBraceEnd\" : \"}\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"]\":\n\t\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"++\":\n\t\t\t\t\t\tcase \"--\":\n\t\t\t\t\t\t\tnextLastSignificantToken = postfixIncDec ? \"?PostfixIncDec\" : \"?UnaryIncDec\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"<\":\n\t\t\t\t\t\t\tif (jsx && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken))) {\n\t\t\t\t\t\t\t\tstack.push({tag: \"JSXTag\"});\n\t\t\t\t\t\t\t\tlastIndex += 1;\n\t\t\t\t\t\t\t\tlastSignificantToken = \"<\";\n\t\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\t\ttype: \"JSXPunctuator\",\n\t\t\t\t\t\t\t\t\tvalue: punctuator\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t}\n\t\t\t\t\tlastIndex = nextLastIndex;\n\t\t\t\t\tlastSignificantToken = nextLastSignificantToken;\n\t\t\t\t\tyield ({\n\t\t\t\t\t\ttype: \"Punctuator\",\n\t\t\t\t\t\tvalue: punctuator\n\t\t\t\t\t});\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tIdentifier.lastIndex = lastIndex;\n\t\t\t\tif (match = Identifier.exec(input)) {\n\t\t\t\t\tlastIndex = Identifier.lastIndex;\n\t\t\t\t\tnextLastSignificantToken = match[0];\n\t\t\t\t\tswitch (match[0]) {\n\t\t\t\t\t\tcase \"for\":\n\t\t\t\t\t\tcase \"if\":\n\t\t\t\t\t\tcase \"while\":\n\t\t\t\t\t\tcase \"with\":\n\t\t\t\t\t\t\tif (lastSignificantToken !== \".\" && lastSignificantToken !== \"?.\") {\n\t\t\t\t\t\t\t\tnextLastSignificantToken = \"?NonExpressionParenKeyword\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tlastSignificantToken = nextLastSignificantToken;\n\t\t\t\t\tpostfixIncDec = !KeywordsWithExpressionAfter.test(match[0]);\n\t\t\t\t\tyield ({\n\t\t\t\t\t\ttype: match[1] === \"#\" ? \"PrivateIdentifier\" : \"IdentifierName\",\n\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t});\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tStringLiteral.lastIndex = lastIndex;\n\t\t\t\tif (match = StringLiteral.exec(input)) {\n\t\t\t\t\tlastIndex = StringLiteral.lastIndex;\n\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\tyield ({\n\t\t\t\t\t\ttype: \"StringLiteral\",\n\t\t\t\t\t\tvalue: match[0],\n\t\t\t\t\t\tclosed: match[2] !== void 0\n\t\t\t\t\t});\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tNumericLiteral.lastIndex = lastIndex;\n\t\t\t\tif (match = NumericLiteral.exec(input)) {\n\t\t\t\t\tlastIndex = NumericLiteral.lastIndex;\n\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\tyield ({\n\t\t\t\t\t\ttype: \"NumericLiteral\",\n\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t});\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tTemplate.lastIndex = lastIndex;\n\t\t\t\tif (match = Template.exec(input)) {\n\t\t\t\t\tlastIndex = Template.lastIndex;\n\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\tif (match[1] === \"${\") {\n\t\t\t\t\t\tlastSignificantToken = \"?InterpolationInTemplate\";\n\t\t\t\t\t\tstack.push({\n\t\t\t\t\t\t\ttag: \"InterpolationInTemplate\",\n\t\t\t\t\t\t\tnesting: braces.length\n\t\t\t\t\t\t});\n\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"TemplateHead\",\n\t\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"NoSubstitutionTemplate\",\n\t\t\t\t\t\t\tvalue: match[0],\n\t\t\t\t\t\t\tclosed: match[1] === \"`\"\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"JSXTag\":\n\t\t\tcase \"JSXTagEnd\":\n\t\t\t\tJSXPunctuator.lastIndex = lastIndex;\n\t\t\t\tif (match = JSXPunctuator.exec(input)) {\n\t\t\t\t\tlastIndex = JSXPunctuator.lastIndex;\n\t\t\t\t\tnextLastSignificantToken = match[0];\n\t\t\t\t\tswitch (match[0]) {\n\t\t\t\t\t\tcase \"<\":\n\t\t\t\t\t\t\tstack.push({tag: \"JSXTag\"});\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \">\":\n\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\tif (lastSignificantToken === \"/\" || mode.tag === \"JSXTagEnd\") {\n\t\t\t\t\t\t\t\tnextLastSignificantToken = \"?JSX\";\n\t\t\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tstack.push({tag: \"JSXChildren\"});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"{\":\n\t\t\t\t\t\t\tstack.push({\n\t\t\t\t\t\t\t\ttag: \"InterpolationInJSX\",\n\t\t\t\t\t\t\t\tnesting: braces.length\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tnextLastSignificantToken = \"?InterpolationInJSX\";\n\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"/\":\n\t\t\t\t\t\t\tif (lastSignificantToken === \"<\") {\n\t\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\t\tif (stack[stack.length - 1].tag === \"JSXChildren\") {\n\t\t\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tstack.push({tag: \"JSXTagEnd\"});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tlastSignificantToken = nextLastSignificantToken;\n\t\t\t\t\tyield ({\n\t\t\t\t\t\ttype: \"JSXPunctuator\",\n\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t});\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tJSXIdentifier.lastIndex = lastIndex;\n\t\t\t\tif (match = JSXIdentifier.exec(input)) {\n\t\t\t\t\tlastIndex = JSXIdentifier.lastIndex;\n\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\tyield ({\n\t\t\t\t\t\ttype: \"JSXIdentifier\",\n\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t});\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tJSXString.lastIndex = lastIndex;\n\t\t\t\tif (match = JSXString.exec(input)) {\n\t\t\t\t\tlastIndex = JSXString.lastIndex;\n\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\tyield ({\n\t\t\t\t\t\ttype: \"JSXString\",\n\t\t\t\t\t\tvalue: match[0],\n\t\t\t\t\t\tclosed: match[2] !== void 0\n\t\t\t\t\t});\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"JSXChildren\":\n\t\t\t\tJSXText.lastIndex = lastIndex;\n\t\t\t\tif (match = JSXText.exec(input)) {\n\t\t\t\t\tlastIndex = JSXText.lastIndex;\n\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\tyield ({\n\t\t\t\t\t\ttype: \"JSXText\",\n\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t});\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tswitch (input[lastIndex]) {\n\t\t\t\t\tcase \"<\":\n\t\t\t\t\t\tstack.push({tag: \"JSXTag\"});\n\t\t\t\t\t\tlastIndex++;\n\t\t\t\t\t\tlastSignificantToken = \"<\";\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"JSXPunctuator\",\n\t\t\t\t\t\t\tvalue: \"<\"\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tcase \"{\":\n\t\t\t\t\t\tstack.push({\n\t\t\t\t\t\t\ttag: \"InterpolationInJSX\",\n\t\t\t\t\t\t\tnesting: braces.length\n\t\t\t\t\t\t});\n\t\t\t\t\t\tlastIndex++;\n\t\t\t\t\t\tlastSignificantToken = \"?InterpolationInJSX\";\n\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"JSXPunctuator\",\n\t\t\t\t\t\t\tvalue: \"{\"\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t}\n\t\tWhiteSpace.lastIndex = lastIndex;\n\t\tif (match = WhiteSpace.exec(input)) {\n\t\t\tlastIndex = WhiteSpace.lastIndex;\n\t\t\tyield ({\n\t\t\t\ttype: \"WhiteSpace\",\n\t\t\t\tvalue: match[0]\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tLineTerminatorSequence.lastIndex = lastIndex;\n\t\tif (match = LineTerminatorSequence.exec(input)) {\n\t\t\tlastIndex = LineTerminatorSequence.lastIndex;\n\t\t\tpostfixIncDec = false;\n\t\t\tif (KeywordsWithNoLineTerminatorAfter.test(lastSignificantToken)) {\n\t\t\t\tlastSignificantToken = \"?NoLineTerminatorHere\";\n\t\t\t}\n\t\t\tyield ({\n\t\t\t\ttype: \"LineTerminatorSequence\",\n\t\t\t\tvalue: match[0]\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tMultiLineComment.lastIndex = lastIndex;\n\t\tif (match = MultiLineComment.exec(input)) {\n\t\t\tlastIndex = MultiLineComment.lastIndex;\n\t\t\tif (Newline.test(match[0])) {\n\t\t\t\tpostfixIncDec = false;\n\t\t\t\tif (KeywordsWithNoLineTerminatorAfter.test(lastSignificantToken)) {\n\t\t\t\t\tlastSignificantToken = \"?NoLineTerminatorHere\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tyield ({\n\t\t\t\ttype: \"MultiLineComment\",\n\t\t\t\tvalue: match[0],\n\t\t\t\tclosed: match[1] !== void 0\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tSingleLineComment.lastIndex = lastIndex;\n\t\tif (match = SingleLineComment.exec(input)) {\n\t\t\tlastIndex = SingleLineComment.lastIndex;\n\t\t\tpostfixIncDec = false;\n\t\t\tyield ({\n\t\t\t\ttype: \"SingleLineComment\",\n\t\t\t\tvalue: match[0]\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tfirstCodePoint = String.fromCodePoint(input.codePointAt(lastIndex));\n\t\tlastIndex += firstCodePoint.length;\n\t\tlastSignificantToken = firstCodePoint;\n\t\tpostfixIncDec = false;\n\t\tyield ({\n\t\t\ttype: mode.tag.startsWith(\"JSX\") ? \"JSXInvalid\" : \"Invalid\",\n\t\t\tvalue: firstCodePoint\n\t\t});\n\t}\n\treturn void 0;\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * @internal\n */\nconst inverted = Symbol('inverted');\n/**\n * @internal\n */\nconst expectNull = Symbol('expectNull');\n/**\n * @internal\n */\nconst expectUndefined = Symbol('expectUndefined');\n/**\n * @internal\n */\nconst expectNumber = Symbol('expectNumber');\n/**\n * @internal\n */\nconst expectString = Symbol('expectString');\n/**\n * @internal\n */\nconst expectBoolean = Symbol('expectBoolean');\n/**\n * @internal\n */\nconst expectVoid = Symbol('expectVoid');\n/**\n * @internal\n */\nconst expectFunction = Symbol('expectFunction');\n/**\n * @internal\n */\nconst expectObject = Symbol('expectObject');\n/**\n * @internal\n */\nconst expectArray = Symbol('expectArray');\n/**\n * @internal\n */\nconst expectSymbol = Symbol('expectSymbol');\n/**\n * @internal\n */\nconst expectAny = Symbol('expectAny');\n/**\n * @internal\n */\nconst expectUnknown = Symbol('expectUnknown');\n/**\n * @internal\n */\nconst expectNever = Symbol('expectNever');\n/**\n * @internal\n */\nconst expectNullable = Symbol('expectNullable');\n/**\n * @internal\n */\nconst expectBigInt = Symbol('expectBigInt');\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * @internal\n */\nconst secret = Symbol('secret');\n/**\n * @internal\n */\nconst mismatch = Symbol('mismatch');\n/**\n * A type which should match anything passed as a value but *doesn't*\n * match {@linkcode Mismatch}. It helps TypeScript select the right overload\n * for {@linkcode PositiveExpectTypeOf.toEqualTypeOf | .toEqualTypeOf()} and\n * {@linkcode PositiveExpectTypeOf.toMatchTypeOf | .toMatchTypeOf()}.\n *\n * @internal\n */\nconst avalue = Symbol('avalue');\n","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.expectTypeOf = void 0;\n__exportStar(require(\"./branding\"), exports); // backcompat, consider removing in next major version\n__exportStar(require(\"./messages\"), exports); // backcompat, consider removing in next major version\n__exportStar(require(\"./overloads\"), exports);\n__exportStar(require(\"./utils\"), exports); // backcompat, consider removing in next major version\nconst fn = () => true;\n/**\n * Similar to Jest's `expect`, but with type-awareness.\n * Gives you access to a number of type-matchers that let you make assertions about the\n * form of a reference or generic type parameter.\n *\n * @example\n * ```ts\n * import { foo, bar } from '../foo'\n * import { expectTypeOf } from 'expect-type'\n *\n * test('foo types', () => {\n * // make sure `foo` has type { a: number }\n * expectTypeOf(foo).toMatchTypeOf({ a: 1 })\n * expectTypeOf(foo).toHaveProperty('a').toBeNumber()\n *\n * // make sure `bar` is a function taking a string:\n * expectTypeOf(bar).parameter(0).toBeString()\n * expectTypeOf(bar).returns.not.toBeAny()\n * })\n * ```\n *\n * @description\n * See the [full docs](https://npmjs.com/package/expect-type#documentation) for lots more examples.\n */\nconst expectTypeOf = (_actual) => {\n const nonFunctionProperties = [\n 'parameters',\n 'returns',\n 'resolves',\n 'not',\n 'items',\n 'constructorParameters',\n 'thisParameter',\n 'instance',\n 'guards',\n 'asserts',\n 'branded',\n ];\n const obj = {\n /* eslint-disable @typescript-eslint/no-unsafe-assignment */\n toBeAny: fn,\n toBeUnknown: fn,\n toBeNever: fn,\n toBeFunction: fn,\n toBeObject: fn,\n toBeArray: fn,\n toBeString: fn,\n toBeNumber: fn,\n toBeBoolean: fn,\n toBeVoid: fn,\n toBeSymbol: fn,\n toBeNull: fn,\n toBeUndefined: fn,\n toBeNullable: fn,\n toBeBigInt: fn,\n toMatchTypeOf: fn,\n toEqualTypeOf: fn,\n toBeConstructibleWith: fn,\n toMatchObjectType: fn,\n toExtend: fn,\n map: exports.expectTypeOf,\n toBeCallableWith: exports.expectTypeOf,\n extract: exports.expectTypeOf,\n exclude: exports.expectTypeOf,\n pick: exports.expectTypeOf,\n omit: exports.expectTypeOf,\n toHaveProperty: exports.expectTypeOf,\n parameter: exports.expectTypeOf,\n };\n const getterProperties = nonFunctionProperties;\n getterProperties.forEach((prop) => Object.defineProperty(obj, prop, { get: () => (0, exports.expectTypeOf)({}) }));\n return obj;\n};\nexports.expectTypeOf = expectTypeOf;\n","// src/index.ts\nvar f = {\n reset: [0, 0],\n bold: [1, 22, \"\\x1B[22m\\x1B[1m\"],\n dim: [2, 22, \"\\x1B[22m\\x1B[2m\"],\n italic: [3, 23],\n underline: [4, 24],\n inverse: [7, 27],\n hidden: [8, 28],\n strikethrough: [9, 29],\n black: [30, 39],\n red: [31, 39],\n green: [32, 39],\n yellow: [33, 39],\n blue: [34, 39],\n magenta: [35, 39],\n cyan: [36, 39],\n white: [37, 39],\n gray: [90, 39],\n bgBlack: [40, 49],\n bgRed: [41, 49],\n bgGreen: [42, 49],\n bgYellow: [43, 49],\n bgBlue: [44, 49],\n bgMagenta: [45, 49],\n bgCyan: [46, 49],\n bgWhite: [47, 49],\n blackBright: [90, 39],\n redBright: [91, 39],\n greenBright: [92, 39],\n yellowBright: [93, 39],\n blueBright: [94, 39],\n magentaBright: [95, 39],\n cyanBright: [96, 39],\n whiteBright: [97, 39],\n bgBlackBright: [100, 49],\n bgRedBright: [101, 49],\n bgGreenBright: [102, 49],\n bgYellowBright: [103, 49],\n bgBlueBright: [104, 49],\n bgMagentaBright: [105, 49],\n bgCyanBright: [106, 49],\n bgWhiteBright: [107, 49]\n}, h = Object.entries(f);\nfunction a(n) {\n return String(n);\n}\na.open = \"\";\na.close = \"\";\nvar B = /* @__PURE__ */ h.reduce(\n (n, [e]) => (n[e] = a, n),\n { isColorSupported: !1 }\n);\nfunction m() {\n return { ...B };\n}\nfunction C(n = !1) {\n let e = typeof process != \"undefined\" ? process : void 0, i = (e == null ? void 0 : e.env) || {}, g = (e == null ? void 0 : e.argv) || [];\n return !(\"NO_COLOR\" in i || g.includes(\"--no-color\")) && (\"FORCE_COLOR\" in i || g.includes(\"--color\") || (e == null ? void 0 : e.platform) === \"win32\" || n && i.TERM !== \"dumb\" || \"CI\" in i) || typeof window != \"undefined\" && !!window.chrome;\n}\nfunction p(n = !1) {\n let e = C(n), i = (r, t, c, o) => {\n let l = \"\", s = 0;\n do\n l += r.substring(s, o) + c, s = o + t.length, o = r.indexOf(t, s);\n while (~o);\n return l + r.substring(s);\n }, g = (r, t, c = r) => {\n let o = (l) => {\n let s = String(l), b = s.indexOf(t, r.length);\n return ~b ? r + i(s, t, c, b) + t : r + s + t;\n };\n return o.open = r, o.close = t, o;\n }, u = {\n isColorSupported: e\n }, d = (r) => `\\x1B[${r}m`;\n for (let [r, t] of h)\n u[r] = e ? g(\n d(t[0]),\n d(t[1]),\n t[2]\n ) : a;\n return u;\n}\n\nexport {\n m as a,\n C as b,\n p as c\n};\n","import {\n a as e,\n b as t,\n c as o\n} from \"./chunk-BVHSVHOK.js\";\n\n// src/node.ts\nimport { isatty as s } from \"tty\";\nvar r = process.env.FORCE_TTY !== void 0 || s(1);\nfunction n() {\n return t(r);\n}\nfunction a() {\n return o(r);\n}\nvar u = o(r);\nexport {\n a as createColors,\n u as default,\n e as getDefaultColors,\n n as isSupported\n};\n","import styles from 'tinyrainbow';\n\nfunction _mergeNamespaces(n, m) {\n m.forEach(function (e) {\n e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {\n if (k !== 'default' && !(k in n)) {\n var d = Object.getOwnPropertyDescriptor(e, k);\n Object.defineProperty(n, k, d.get ? d : {\n enumerable: true,\n get: function () { return e[k]; }\n });\n }\n });\n });\n return Object.freeze(n);\n}\n\nfunction getKeysOfEnumerableProperties(object, compareKeys) {\n\tconst rawKeys = Object.keys(object);\n\tconst keys = compareKeys === null ? rawKeys : rawKeys.sort(compareKeys);\n\tif (Object.getOwnPropertySymbols) {\n\t\tfor (const symbol of Object.getOwnPropertySymbols(object)) {\n\t\t\tif (Object.getOwnPropertyDescriptor(object, symbol).enumerable) {\n\t\t\t\tkeys.push(symbol);\n\t\t\t}\n\t\t}\n\t}\n\treturn keys;\n}\n/**\n* Return entries (for example, of a map)\n* with spacing, indentation, and comma\n* without surrounding punctuation (for example, braces)\n*/\nfunction printIteratorEntries(iterator, config, indentation, depth, refs, printer, separator = \": \") {\n\tlet result = \"\";\n\tlet width = 0;\n\tlet current = iterator.next();\n\tif (!current.done) {\n\t\tresult += config.spacingOuter;\n\t\tconst indentationNext = indentation + config.indent;\n\t\twhile (!current.done) {\n\t\t\tresult += indentationNext;\n\t\t\tif (width++ === config.maxWidth) {\n\t\t\t\tresult += \"…\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tconst name = printer(current.value[0], config, indentationNext, depth, refs);\n\t\t\tconst value = printer(current.value[1], config, indentationNext, depth, refs);\n\t\t\tresult += name + separator + value;\n\t\t\tcurrent = iterator.next();\n\t\t\tif (!current.done) {\n\t\t\t\tresult += `,${config.spacingInner}`;\n\t\t\t} else if (!config.min) {\n\t\t\t\tresult += \",\";\n\t\t\t}\n\t\t}\n\t\tresult += config.spacingOuter + indentation;\n\t}\n\treturn result;\n}\n/**\n* Return values (for example, of a set)\n* with spacing, indentation, and comma\n* without surrounding punctuation (braces or brackets)\n*/\nfunction printIteratorValues(iterator, config, indentation, depth, refs, printer) {\n\tlet result = \"\";\n\tlet width = 0;\n\tlet current = iterator.next();\n\tif (!current.done) {\n\t\tresult += config.spacingOuter;\n\t\tconst indentationNext = indentation + config.indent;\n\t\twhile (!current.done) {\n\t\t\tresult += indentationNext;\n\t\t\tif (width++ === config.maxWidth) {\n\t\t\t\tresult += \"…\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tresult += printer(current.value, config, indentationNext, depth, refs);\n\t\t\tcurrent = iterator.next();\n\t\t\tif (!current.done) {\n\t\t\t\tresult += `,${config.spacingInner}`;\n\t\t\t} else if (!config.min) {\n\t\t\t\tresult += \",\";\n\t\t\t}\n\t\t}\n\t\tresult += config.spacingOuter + indentation;\n\t}\n\treturn result;\n}\n/**\n* Return items (for example, of an array)\n* with spacing, indentation, and comma\n* without surrounding punctuation (for example, brackets)\n*/\nfunction printListItems(list, config, indentation, depth, refs, printer) {\n\tlet result = \"\";\n\tlist = list instanceof ArrayBuffer ? new DataView(list) : list;\n\tconst isDataView = (l) => l instanceof DataView;\n\tconst length = isDataView(list) ? list.byteLength : list.length;\n\tif (length > 0) {\n\t\tresult += config.spacingOuter;\n\t\tconst indentationNext = indentation + config.indent;\n\t\tfor (let i = 0; i < length; i++) {\n\t\t\tresult += indentationNext;\n\t\t\tif (i === config.maxWidth) {\n\t\t\t\tresult += \"…\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (isDataView(list) || i in list) {\n\t\t\t\tresult += printer(isDataView(list) ? list.getInt8(i) : list[i], config, indentationNext, depth, refs);\n\t\t\t}\n\t\t\tif (i < length - 1) {\n\t\t\t\tresult += `,${config.spacingInner}`;\n\t\t\t} else if (!config.min) {\n\t\t\t\tresult += \",\";\n\t\t\t}\n\t\t}\n\t\tresult += config.spacingOuter + indentation;\n\t}\n\treturn result;\n}\n/**\n* Return properties of an object\n* with spacing, indentation, and comma\n* without surrounding punctuation (for example, braces)\n*/\nfunction printObjectProperties(val, config, indentation, depth, refs, printer) {\n\tlet result = \"\";\n\tconst keys = getKeysOfEnumerableProperties(val, config.compareKeys);\n\tif (keys.length > 0) {\n\t\tresult += config.spacingOuter;\n\t\tconst indentationNext = indentation + config.indent;\n\t\tfor (let i = 0; i < keys.length; i++) {\n\t\t\tconst key = keys[i];\n\t\t\tconst name = printer(key, config, indentationNext, depth, refs);\n\t\t\tconst value = printer(val[key], config, indentationNext, depth, refs);\n\t\t\tresult += `${indentationNext + name}: ${value}`;\n\t\t\tif (i < keys.length - 1) {\n\t\t\t\tresult += `,${config.spacingInner}`;\n\t\t\t} else if (!config.min) {\n\t\t\t\tresult += \",\";\n\t\t\t}\n\t\t}\n\t\tresult += config.spacingOuter + indentation;\n\t}\n\treturn result;\n}\n\nconst asymmetricMatcher = typeof Symbol === \"function\" && Symbol.for ? Symbol.for(\"jest.asymmetricMatcher\") : 1267621;\nconst SPACE$2 = \" \";\nconst serialize$5 = (val, config, indentation, depth, refs, printer) => {\n\tconst stringedValue = val.toString();\n\tif (stringedValue === \"ArrayContaining\" || stringedValue === \"ArrayNotContaining\") {\n\t\tif (++depth > config.maxDepth) {\n\t\t\treturn `[${stringedValue}]`;\n\t\t}\n\t\treturn `${stringedValue + SPACE$2}[${printListItems(val.sample, config, indentation, depth, refs, printer)}]`;\n\t}\n\tif (stringedValue === \"ObjectContaining\" || stringedValue === \"ObjectNotContaining\") {\n\t\tif (++depth > config.maxDepth) {\n\t\t\treturn `[${stringedValue}]`;\n\t\t}\n\t\treturn `${stringedValue + SPACE$2}{${printObjectProperties(val.sample, config, indentation, depth, refs, printer)}}`;\n\t}\n\tif (stringedValue === \"StringMatching\" || stringedValue === \"StringNotMatching\") {\n\t\treturn stringedValue + SPACE$2 + printer(val.sample, config, indentation, depth, refs);\n\t}\n\tif (stringedValue === \"StringContaining\" || stringedValue === \"StringNotContaining\") {\n\t\treturn stringedValue + SPACE$2 + printer(val.sample, config, indentation, depth, refs);\n\t}\n\tif (typeof val.toAsymmetricMatcher !== \"function\") {\n\t\tthrow new TypeError(`Asymmetric matcher ${val.constructor.name} does not implement toAsymmetricMatcher()`);\n\t}\n\treturn val.toAsymmetricMatcher();\n};\nconst test$5 = (val) => val && val.$$typeof === asymmetricMatcher;\nconst plugin$5 = {\n\tserialize: serialize$5,\n\ttest: test$5\n};\n\nconst SPACE$1 = \" \";\nconst OBJECT_NAMES = new Set([\"DOMStringMap\", \"NamedNodeMap\"]);\nconst ARRAY_REGEXP = /^(?:HTML\\w*Collection|NodeList)$/;\nfunction testName(name) {\n\treturn OBJECT_NAMES.has(name) || ARRAY_REGEXP.test(name);\n}\nconst test$4 = (val) => val && val.constructor && !!val.constructor.name && testName(val.constructor.name);\nfunction isNamedNodeMap(collection) {\n\treturn collection.constructor.name === \"NamedNodeMap\";\n}\nconst serialize$4 = (collection, config, indentation, depth, refs, printer) => {\n\tconst name = collection.constructor.name;\n\tif (++depth > config.maxDepth) {\n\t\treturn `[${name}]`;\n\t}\n\treturn (config.min ? \"\" : name + SPACE$1) + (OBJECT_NAMES.has(name) ? `{${printObjectProperties(isNamedNodeMap(collection) ? [...collection].reduce((props, attribute) => {\n\t\tprops[attribute.name] = attribute.value;\n\t\treturn props;\n\t}, {}) : { ...collection }, config, indentation, depth, refs, printer)}}` : `[${printListItems([...collection], config, indentation, depth, refs, printer)}]`);\n};\nconst plugin$4 = {\n\tserialize: serialize$4,\n\ttest: test$4\n};\n\n/**\n* Copyright (c) Meta Platforms, Inc. and affiliates.\n*\n* This source code is licensed under the MIT license found in the\n* LICENSE file in the root directory of this source tree.\n*/\nfunction escapeHTML(str) {\n\treturn str.replaceAll(\"<\", \"<\").replaceAll(\">\", \">\");\n}\n\n// Return empty string if keys is empty.\nfunction printProps(keys, props, config, indentation, depth, refs, printer) {\n\tconst indentationNext = indentation + config.indent;\n\tconst colors = config.colors;\n\treturn keys.map((key) => {\n\t\tconst value = props[key];\n\t\tlet printed = printer(value, config, indentationNext, depth, refs);\n\t\tif (typeof value !== \"string\") {\n\t\t\tif (printed.includes(\"\\n\")) {\n\t\t\t\tprinted = config.spacingOuter + indentationNext + printed + config.spacingOuter + indentation;\n\t\t\t}\n\t\t\tprinted = `{${printed}}`;\n\t\t}\n\t\treturn `${config.spacingInner + indentation + colors.prop.open + key + colors.prop.close}=${colors.value.open}${printed}${colors.value.close}`;\n\t}).join(\"\");\n}\n// Return empty string if children is empty.\nfunction printChildren(children, config, indentation, depth, refs, printer) {\n\treturn children.map((child) => config.spacingOuter + indentation + (typeof child === \"string\" ? printText(child, config) : printer(child, config, indentation, depth, refs))).join(\"\");\n}\nfunction printText(text, config) {\n\tconst contentColor = config.colors.content;\n\treturn contentColor.open + escapeHTML(text) + contentColor.close;\n}\nfunction printComment(comment, config) {\n\tconst commentColor = config.colors.comment;\n\treturn `${commentColor.open}<!--${escapeHTML(comment)}-->${commentColor.close}`;\n}\n// Separate the functions to format props, children, and element,\n// so a plugin could override a particular function, if needed.\n// Too bad, so sad: the traditional (but unnecessary) space\n// in a self-closing tagColor requires a second test of printedProps.\nfunction printElement(type, printedProps, printedChildren, config, indentation) {\n\tconst tagColor = config.colors.tag;\n\treturn `${tagColor.open}<${type}${printedProps && tagColor.close + printedProps + config.spacingOuter + indentation + tagColor.open}${printedChildren ? `>${tagColor.close}${printedChildren}${config.spacingOuter}${indentation}${tagColor.open}</${type}` : `${printedProps && !config.min ? \"\" : \" \"}/`}>${tagColor.close}`;\n}\nfunction printElementAsLeaf(type, config) {\n\tconst tagColor = config.colors.tag;\n\treturn `${tagColor.open}<${type}${tagColor.close} …${tagColor.open} />${tagColor.close}`;\n}\n\nconst ELEMENT_NODE = 1;\nconst TEXT_NODE = 3;\nconst COMMENT_NODE = 8;\nconst FRAGMENT_NODE = 11;\nconst ELEMENT_REGEXP = /^(?:(?:HTML|SVG)\\w*)?Element$/;\nfunction testHasAttribute(val) {\n\ttry {\n\t\treturn typeof val.hasAttribute === \"function\" && val.hasAttribute(\"is\");\n\t} catch {\n\t\treturn false;\n\t}\n}\nfunction testNode(val) {\n\tconst constructorName = val.constructor.name;\n\tconst { nodeType, tagName } = val;\n\tconst isCustomElement = typeof tagName === \"string\" && tagName.includes(\"-\") || testHasAttribute(val);\n\treturn nodeType === ELEMENT_NODE && (ELEMENT_REGEXP.test(constructorName) || isCustomElement) || nodeType === TEXT_NODE && constructorName === \"Text\" || nodeType === COMMENT_NODE && constructorName === \"Comment\" || nodeType === FRAGMENT_NODE && constructorName === \"DocumentFragment\";\n}\nconst test$3 = (val) => {\n\tvar _val$constructor;\n\treturn (val === null || val === void 0 || (_val$constructor = val.constructor) === null || _val$constructor === void 0 ? void 0 : _val$constructor.name) && testNode(val);\n};\nfunction nodeIsText(node) {\n\treturn node.nodeType === TEXT_NODE;\n}\nfunction nodeIsComment(node) {\n\treturn node.nodeType === COMMENT_NODE;\n}\nfunction nodeIsFragment(node) {\n\treturn node.nodeType === FRAGMENT_NODE;\n}\nconst serialize$3 = (node, config, indentation, depth, refs, printer) => {\n\tif (nodeIsText(node)) {\n\t\treturn printText(node.data, config);\n\t}\n\tif (nodeIsComment(node)) {\n\t\treturn printComment(node.data, config);\n\t}\n\tconst type = nodeIsFragment(node) ? \"DocumentFragment\" : node.tagName.toLowerCase();\n\tif (++depth > config.maxDepth) {\n\t\treturn printElementAsLeaf(type, config);\n\t}\n\treturn printElement(type, printProps(nodeIsFragment(node) ? [] : Array.from(node.attributes, (attr) => attr.name).sort(), nodeIsFragment(node) ? {} : [...node.attributes].reduce((props, attribute) => {\n\t\tprops[attribute.name] = attribute.value;\n\t\treturn props;\n\t}, {}), config, indentation + config.indent, depth, refs, printer), printChildren(Array.prototype.slice.call(node.childNodes || node.children), config, indentation + config.indent, depth, refs, printer), config, indentation);\n};\nconst plugin$3 = {\n\tserialize: serialize$3,\n\ttest: test$3\n};\n\n// SENTINEL constants are from https://github.com/facebook/immutable-js\nconst IS_ITERABLE_SENTINEL = \"@@__IMMUTABLE_ITERABLE__@@\";\nconst IS_LIST_SENTINEL = \"@@__IMMUTABLE_LIST__@@\";\nconst IS_KEYED_SENTINEL = \"@@__IMMUTABLE_KEYED__@@\";\nconst IS_MAP_SENTINEL = \"@@__IMMUTABLE_MAP__@@\";\nconst IS_ORDERED_SENTINEL = \"@@__IMMUTABLE_ORDERED__@@\";\nconst IS_RECORD_SENTINEL = \"@@__IMMUTABLE_RECORD__@@\";\nconst IS_SEQ_SENTINEL = \"@@__IMMUTABLE_SEQ__@@\";\nconst IS_SET_SENTINEL = \"@@__IMMUTABLE_SET__@@\";\nconst IS_STACK_SENTINEL = \"@@__IMMUTABLE_STACK__@@\";\nconst getImmutableName = (name) => `Immutable.${name}`;\nconst printAsLeaf = (name) => `[${name}]`;\nconst SPACE = \" \";\nconst LAZY = \"…\";\nfunction printImmutableEntries(val, config, indentation, depth, refs, printer, type) {\n\treturn ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : `${getImmutableName(type) + SPACE}{${printIteratorEntries(val.entries(), config, indentation, depth, refs, printer)}}`;\n}\n// Record has an entries method because it is a collection in immutable v3.\n// Return an iterator for Immutable Record from version v3 or v4.\nfunction getRecordEntries(val) {\n\tlet i = 0;\n\treturn { next() {\n\t\tif (i < val._keys.length) {\n\t\t\tconst key = val._keys[i++];\n\t\t\treturn {\n\t\t\t\tdone: false,\n\t\t\t\tvalue: [key, val.get(key)]\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\tdone: true,\n\t\t\tvalue: undefined\n\t\t};\n\t} };\n}\nfunction printImmutableRecord(val, config, indentation, depth, refs, printer) {\n\t// _name property is defined only for an Immutable Record instance\n\t// which was constructed with a second optional descriptive name arg\n\tconst name = getImmutableName(val._name || \"Record\");\n\treturn ++depth > config.maxDepth ? printAsLeaf(name) : `${name + SPACE}{${printIteratorEntries(getRecordEntries(val), config, indentation, depth, refs, printer)}}`;\n}\nfunction printImmutableSeq(val, config, indentation, depth, refs, printer) {\n\tconst name = getImmutableName(\"Seq\");\n\tif (++depth > config.maxDepth) {\n\t\treturn printAsLeaf(name);\n\t}\n\tif (val[IS_KEYED_SENTINEL]) {\n\t\treturn `${name + SPACE}{${val._iter || val._object ? printIteratorEntries(val.entries(), config, indentation, depth, refs, printer) : LAZY}}`;\n\t}\n\treturn `${name + SPACE}[${val._iter || val._array || val._collection || val._iterable ? printIteratorValues(val.values(), config, indentation, depth, refs, printer) : LAZY}]`;\n}\nfunction printImmutableValues(val, config, indentation, depth, refs, printer, type) {\n\treturn ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : `${getImmutableName(type) + SPACE}[${printIteratorValues(val.values(), config, indentation, depth, refs, printer)}]`;\n}\nconst serialize$2 = (val, config, indentation, depth, refs, printer) => {\n\tif (val[IS_MAP_SENTINEL]) {\n\t\treturn printImmutableEntries(val, config, indentation, depth, refs, printer, val[IS_ORDERED_SENTINEL] ? \"OrderedMap\" : \"Map\");\n\t}\n\tif (val[IS_LIST_SENTINEL]) {\n\t\treturn printImmutableValues(val, config, indentation, depth, refs, printer, \"List\");\n\t}\n\tif (val[IS_SET_SENTINEL]) {\n\t\treturn printImmutableValues(val, config, indentation, depth, refs, printer, val[IS_ORDERED_SENTINEL] ? \"OrderedSet\" : \"Set\");\n\t}\n\tif (val[IS_STACK_SENTINEL]) {\n\t\treturn printImmutableValues(val, config, indentation, depth, refs, printer, \"Stack\");\n\t}\n\tif (val[IS_SEQ_SENTINEL]) {\n\t\treturn printImmutableSeq(val, config, indentation, depth, refs, printer);\n\t}\n\t// For compatibility with immutable v3 and v4, let record be the default.\n\treturn printImmutableRecord(val, config, indentation, depth, refs, printer);\n};\n// Explicitly comparing sentinel properties to true avoids false positive\n// when mock identity-obj-proxy returns the key as the value for any key.\nconst test$2 = (val) => val && (val[IS_ITERABLE_SENTINEL] === true || val[IS_RECORD_SENTINEL] === true);\nconst plugin$2 = {\n\tserialize: serialize$2,\n\ttest: test$2\n};\n\nfunction getDefaultExportFromCjs (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nvar reactIs$1 = {exports: {}};\n\nvar reactIs_production = {};\n\n/**\n * @license React\n * react-is.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar hasRequiredReactIs_production;\n\nfunction requireReactIs_production () {\n\tif (hasRequiredReactIs_production) return reactIs_production;\n\thasRequiredReactIs_production = 1;\n\tvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n\t REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n\t REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n\t REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n\t REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\");\n\tvar REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n\t REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n\t REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n\t REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n\t REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n\t REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n\t REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n\t REACT_VIEW_TRANSITION_TYPE = Symbol.for(\"react.view_transition\"),\n\t REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\");\n\tfunction typeOf(object) {\n\t if (\"object\" === typeof object && null !== object) {\n\t var $$typeof = object.$$typeof;\n\t switch ($$typeof) {\n\t case REACT_ELEMENT_TYPE:\n\t switch (((object = object.type), object)) {\n\t case REACT_FRAGMENT_TYPE:\n\t case REACT_PROFILER_TYPE:\n\t case REACT_STRICT_MODE_TYPE:\n\t case REACT_SUSPENSE_TYPE:\n\t case REACT_SUSPENSE_LIST_TYPE:\n\t case REACT_VIEW_TRANSITION_TYPE:\n\t return object;\n\t default:\n\t switch (((object = object && object.$$typeof), object)) {\n\t case REACT_CONTEXT_TYPE:\n\t case REACT_FORWARD_REF_TYPE:\n\t case REACT_LAZY_TYPE:\n\t case REACT_MEMO_TYPE:\n\t return object;\n\t case REACT_CONSUMER_TYPE:\n\t return object;\n\t default:\n\t return $$typeof;\n\t }\n\t }\n\t case REACT_PORTAL_TYPE:\n\t return $$typeof;\n\t }\n\t }\n\t}\n\treactIs_production.ContextConsumer = REACT_CONSUMER_TYPE;\n\treactIs_production.ContextProvider = REACT_CONTEXT_TYPE;\n\treactIs_production.Element = REACT_ELEMENT_TYPE;\n\treactIs_production.ForwardRef = REACT_FORWARD_REF_TYPE;\n\treactIs_production.Fragment = REACT_FRAGMENT_TYPE;\n\treactIs_production.Lazy = REACT_LAZY_TYPE;\n\treactIs_production.Memo = REACT_MEMO_TYPE;\n\treactIs_production.Portal = REACT_PORTAL_TYPE;\n\treactIs_production.Profiler = REACT_PROFILER_TYPE;\n\treactIs_production.StrictMode = REACT_STRICT_MODE_TYPE;\n\treactIs_production.Suspense = REACT_SUSPENSE_TYPE;\n\treactIs_production.SuspenseList = REACT_SUSPENSE_LIST_TYPE;\n\treactIs_production.isContextConsumer = function (object) {\n\t return typeOf(object) === REACT_CONSUMER_TYPE;\n\t};\n\treactIs_production.isContextProvider = function (object) {\n\t return typeOf(object) === REACT_CONTEXT_TYPE;\n\t};\n\treactIs_production.isElement = function (object) {\n\t return (\n\t \"object\" === typeof object &&\n\t null !== object &&\n\t object.$$typeof === REACT_ELEMENT_TYPE\n\t );\n\t};\n\treactIs_production.isForwardRef = function (object) {\n\t return typeOf(object) === REACT_FORWARD_REF_TYPE;\n\t};\n\treactIs_production.isFragment = function (object) {\n\t return typeOf(object) === REACT_FRAGMENT_TYPE;\n\t};\n\treactIs_production.isLazy = function (object) {\n\t return typeOf(object) === REACT_LAZY_TYPE;\n\t};\n\treactIs_production.isMemo = function (object) {\n\t return typeOf(object) === REACT_MEMO_TYPE;\n\t};\n\treactIs_production.isPortal = function (object) {\n\t return typeOf(object) === REACT_PORTAL_TYPE;\n\t};\n\treactIs_production.isProfiler = function (object) {\n\t return typeOf(object) === REACT_PROFILER_TYPE;\n\t};\n\treactIs_production.isStrictMode = function (object) {\n\t return typeOf(object) === REACT_STRICT_MODE_TYPE;\n\t};\n\treactIs_production.isSuspense = function (object) {\n\t return typeOf(object) === REACT_SUSPENSE_TYPE;\n\t};\n\treactIs_production.isSuspenseList = function (object) {\n\t return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;\n\t};\n\treactIs_production.isValidElementType = function (type) {\n\t return \"string\" === typeof type ||\n\t \"function\" === typeof type ||\n\t type === REACT_FRAGMENT_TYPE ||\n\t type === REACT_PROFILER_TYPE ||\n\t type === REACT_STRICT_MODE_TYPE ||\n\t type === REACT_SUSPENSE_TYPE ||\n\t type === REACT_SUSPENSE_LIST_TYPE ||\n\t (\"object\" === typeof type &&\n\t null !== type &&\n\t (type.$$typeof === REACT_LAZY_TYPE ||\n\t type.$$typeof === REACT_MEMO_TYPE ||\n\t type.$$typeof === REACT_CONTEXT_TYPE ||\n\t type.$$typeof === REACT_CONSUMER_TYPE ||\n\t type.$$typeof === REACT_FORWARD_REF_TYPE ||\n\t type.$$typeof === REACT_CLIENT_REFERENCE ||\n\t void 0 !== type.getModuleId))\n\t ? true\n\t : false;\n\t};\n\treactIs_production.typeOf = typeOf;\n\treturn reactIs_production;\n}\n\nvar reactIs_development$1 = {};\n\n/**\n * @license React\n * react-is.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar hasRequiredReactIs_development$1;\n\nfunction requireReactIs_development$1 () {\n\tif (hasRequiredReactIs_development$1) return reactIs_development$1;\n\thasRequiredReactIs_development$1 = 1;\n\t\"production\" !== process.env.NODE_ENV &&\n\t (function () {\n\t function typeOf(object) {\n\t if (\"object\" === typeof object && null !== object) {\n\t var $$typeof = object.$$typeof;\n\t switch ($$typeof) {\n\t case REACT_ELEMENT_TYPE:\n\t switch (((object = object.type), object)) {\n\t case REACT_FRAGMENT_TYPE:\n\t case REACT_PROFILER_TYPE:\n\t case REACT_STRICT_MODE_TYPE:\n\t case REACT_SUSPENSE_TYPE:\n\t case REACT_SUSPENSE_LIST_TYPE:\n\t case REACT_VIEW_TRANSITION_TYPE:\n\t return object;\n\t default:\n\t switch (((object = object && object.$$typeof), object)) {\n\t case REACT_CONTEXT_TYPE:\n\t case REACT_FORWARD_REF_TYPE:\n\t case REACT_LAZY_TYPE:\n\t case REACT_MEMO_TYPE:\n\t return object;\n\t case REACT_CONSUMER_TYPE:\n\t return object;\n\t default:\n\t return $$typeof;\n\t }\n\t }\n\t case REACT_PORTAL_TYPE:\n\t return $$typeof;\n\t }\n\t }\n\t }\n\t var REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n\t REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n\t REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n\t REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n\t REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\");\n\t var REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n\t REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n\t REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n\t REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n\t REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n\t REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n\t REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n\t REACT_VIEW_TRANSITION_TYPE = Symbol.for(\"react.view_transition\"),\n\t REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\");\n\t reactIs_development$1.ContextConsumer = REACT_CONSUMER_TYPE;\n\t reactIs_development$1.ContextProvider = REACT_CONTEXT_TYPE;\n\t reactIs_development$1.Element = REACT_ELEMENT_TYPE;\n\t reactIs_development$1.ForwardRef = REACT_FORWARD_REF_TYPE;\n\t reactIs_development$1.Fragment = REACT_FRAGMENT_TYPE;\n\t reactIs_development$1.Lazy = REACT_LAZY_TYPE;\n\t reactIs_development$1.Memo = REACT_MEMO_TYPE;\n\t reactIs_development$1.Portal = REACT_PORTAL_TYPE;\n\t reactIs_development$1.Profiler = REACT_PROFILER_TYPE;\n\t reactIs_development$1.StrictMode = REACT_STRICT_MODE_TYPE;\n\t reactIs_development$1.Suspense = REACT_SUSPENSE_TYPE;\n\t reactIs_development$1.SuspenseList = REACT_SUSPENSE_LIST_TYPE;\n\t reactIs_development$1.isContextConsumer = function (object) {\n\t return typeOf(object) === REACT_CONSUMER_TYPE;\n\t };\n\t reactIs_development$1.isContextProvider = function (object) {\n\t return typeOf(object) === REACT_CONTEXT_TYPE;\n\t };\n\t reactIs_development$1.isElement = function (object) {\n\t return (\n\t \"object\" === typeof object &&\n\t null !== object &&\n\t object.$$typeof === REACT_ELEMENT_TYPE\n\t );\n\t };\n\t reactIs_development$1.isForwardRef = function (object) {\n\t return typeOf(object) === REACT_FORWARD_REF_TYPE;\n\t };\n\t reactIs_development$1.isFragment = function (object) {\n\t return typeOf(object) === REACT_FRAGMENT_TYPE;\n\t };\n\t reactIs_development$1.isLazy = function (object) {\n\t return typeOf(object) === REACT_LAZY_TYPE;\n\t };\n\t reactIs_development$1.isMemo = function (object) {\n\t return typeOf(object) === REACT_MEMO_TYPE;\n\t };\n\t reactIs_development$1.isPortal = function (object) {\n\t return typeOf(object) === REACT_PORTAL_TYPE;\n\t };\n\t reactIs_development$1.isProfiler = function (object) {\n\t return typeOf(object) === REACT_PROFILER_TYPE;\n\t };\n\t reactIs_development$1.isStrictMode = function (object) {\n\t return typeOf(object) === REACT_STRICT_MODE_TYPE;\n\t };\n\t reactIs_development$1.isSuspense = function (object) {\n\t return typeOf(object) === REACT_SUSPENSE_TYPE;\n\t };\n\t reactIs_development$1.isSuspenseList = function (object) {\n\t return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;\n\t };\n\t reactIs_development$1.isValidElementType = function (type) {\n\t return \"string\" === typeof type ||\n\t \"function\" === typeof type ||\n\t type === REACT_FRAGMENT_TYPE ||\n\t type === REACT_PROFILER_TYPE ||\n\t type === REACT_STRICT_MODE_TYPE ||\n\t type === REACT_SUSPENSE_TYPE ||\n\t type === REACT_SUSPENSE_LIST_TYPE ||\n\t (\"object\" === typeof type &&\n\t null !== type &&\n\t (type.$$typeof === REACT_LAZY_TYPE ||\n\t type.$$typeof === REACT_MEMO_TYPE ||\n\t type.$$typeof === REACT_CONTEXT_TYPE ||\n\t type.$$typeof === REACT_CONSUMER_TYPE ||\n\t type.$$typeof === REACT_FORWARD_REF_TYPE ||\n\t type.$$typeof === REACT_CLIENT_REFERENCE ||\n\t void 0 !== type.getModuleId))\n\t ? true\n\t : false;\n\t };\n\t reactIs_development$1.typeOf = typeOf;\n\t })();\n\treturn reactIs_development$1;\n}\n\nvar hasRequiredReactIs$1;\n\nfunction requireReactIs$1 () {\n\tif (hasRequiredReactIs$1) return reactIs$1.exports;\n\thasRequiredReactIs$1 = 1;\n\n\tif (process.env.NODE_ENV === 'production') {\n\t reactIs$1.exports = requireReactIs_production();\n\t} else {\n\t reactIs$1.exports = requireReactIs_development$1();\n\t}\n\treturn reactIs$1.exports;\n}\n\nvar reactIsExports$1 = requireReactIs$1();\nvar index$1 = /*@__PURE__*/getDefaultExportFromCjs(reactIsExports$1);\n\nvar ReactIs19 = /*#__PURE__*/_mergeNamespaces({\n __proto__: null,\n default: index$1\n}, [reactIsExports$1]);\n\nvar reactIs = {exports: {}};\n\nvar reactIs_production_min = {};\n\n/**\n * @license React\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar hasRequiredReactIs_production_min;\n\nfunction requireReactIs_production_min () {\n\tif (hasRequiredReactIs_production_min) return reactIs_production_min;\n\thasRequiredReactIs_production_min = 1;\nvar b=Symbol.for(\"react.element\"),c=Symbol.for(\"react.portal\"),d=Symbol.for(\"react.fragment\"),e=Symbol.for(\"react.strict_mode\"),f=Symbol.for(\"react.profiler\"),g=Symbol.for(\"react.provider\"),h=Symbol.for(\"react.context\"),k=Symbol.for(\"react.server_context\"),l=Symbol.for(\"react.forward_ref\"),m=Symbol.for(\"react.suspense\"),n=Symbol.for(\"react.suspense_list\"),p=Symbol.for(\"react.memo\"),q=Symbol.for(\"react.lazy\"),t=Symbol.for(\"react.offscreen\"),u;u=Symbol.for(\"react.module.reference\");\n\tfunction v(a){if(\"object\"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}reactIs_production_min.ContextConsumer=h;reactIs_production_min.ContextProvider=g;reactIs_production_min.Element=b;reactIs_production_min.ForwardRef=l;reactIs_production_min.Fragment=d;reactIs_production_min.Lazy=q;reactIs_production_min.Memo=p;reactIs_production_min.Portal=c;reactIs_production_min.Profiler=f;reactIs_production_min.StrictMode=e;reactIs_production_min.Suspense=m;\n\treactIs_production_min.SuspenseList=n;reactIs_production_min.isAsyncMode=function(){return false};reactIs_production_min.isConcurrentMode=function(){return false};reactIs_production_min.isContextConsumer=function(a){return v(a)===h};reactIs_production_min.isContextProvider=function(a){return v(a)===g};reactIs_production_min.isElement=function(a){return \"object\"===typeof a&&null!==a&&a.$$typeof===b};reactIs_production_min.isForwardRef=function(a){return v(a)===l};reactIs_production_min.isFragment=function(a){return v(a)===d};reactIs_production_min.isLazy=function(a){return v(a)===q};reactIs_production_min.isMemo=function(a){return v(a)===p};\n\treactIs_production_min.isPortal=function(a){return v(a)===c};reactIs_production_min.isProfiler=function(a){return v(a)===f};reactIs_production_min.isStrictMode=function(a){return v(a)===e};reactIs_production_min.isSuspense=function(a){return v(a)===m};reactIs_production_min.isSuspenseList=function(a){return v(a)===n};\n\treactIs_production_min.isValidElementType=function(a){return \"string\"===typeof a||\"function\"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||\"object\"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?true:false};reactIs_production_min.typeOf=v;\n\treturn reactIs_production_min;\n}\n\nvar reactIs_development = {};\n\n/**\n * @license React\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar hasRequiredReactIs_development;\n\nfunction requireReactIs_development () {\n\tif (hasRequiredReactIs_development) return reactIs_development;\n\thasRequiredReactIs_development = 1;\n\n\tif (process.env.NODE_ENV !== \"production\") {\n\t (function() {\n\n\t// ATTENTION\n\t// When adding new symbols to this file,\n\t// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n\t// The Symbol used to tag the ReactElement-like types.\n\tvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\n\tvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\n\tvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\n\tvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\n\tvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\n\tvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\n\tvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\n\tvar REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');\n\tvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\n\tvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\n\tvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\n\tvar REACT_MEMO_TYPE = Symbol.for('react.memo');\n\tvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\n\tvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\n\n\t// -----------------------------------------------------------------------------\n\n\tvar enableScopeAPI = false; // Experimental Create Event Handle API.\n\tvar enableCacheElement = false;\n\tvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\n\tvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n\t// stuff. Intended to enable React core members to more easily debug scheduling\n\t// issues in DEV builds.\n\n\tvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\n\tvar REACT_MODULE_REFERENCE;\n\n\t{\n\t REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n\t}\n\n\tfunction isValidElementType(type) {\n\t if (typeof type === 'string' || typeof type === 'function') {\n\t return true;\n\t } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n\t if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n\t return true;\n\t }\n\n\t if (typeof type === 'object' && type !== null) {\n\t if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n\t // types supported by any Flight configuration anywhere since\n\t // we don't know which Flight build this will end up being used\n\t // with.\n\t type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n\t return true;\n\t }\n\t }\n\n\t return false;\n\t}\n\n\tfunction typeOf(object) {\n\t if (typeof object === 'object' && object !== null) {\n\t var $$typeof = object.$$typeof;\n\n\t switch ($$typeof) {\n\t case REACT_ELEMENT_TYPE:\n\t var type = object.type;\n\n\t switch (type) {\n\t case REACT_FRAGMENT_TYPE:\n\t case REACT_PROFILER_TYPE:\n\t case REACT_STRICT_MODE_TYPE:\n\t case REACT_SUSPENSE_TYPE:\n\t case REACT_SUSPENSE_LIST_TYPE:\n\t return type;\n\n\t default:\n\t var $$typeofType = type && type.$$typeof;\n\n\t switch ($$typeofType) {\n\t case REACT_SERVER_CONTEXT_TYPE:\n\t case REACT_CONTEXT_TYPE:\n\t case REACT_FORWARD_REF_TYPE:\n\t case REACT_LAZY_TYPE:\n\t case REACT_MEMO_TYPE:\n\t case REACT_PROVIDER_TYPE:\n\t return $$typeofType;\n\n\t default:\n\t return $$typeof;\n\t }\n\n\t }\n\n\t case REACT_PORTAL_TYPE:\n\t return $$typeof;\n\t }\n\t }\n\n\t return undefined;\n\t}\n\tvar ContextConsumer = REACT_CONTEXT_TYPE;\n\tvar ContextProvider = REACT_PROVIDER_TYPE;\n\tvar Element = REACT_ELEMENT_TYPE;\n\tvar ForwardRef = REACT_FORWARD_REF_TYPE;\n\tvar Fragment = REACT_FRAGMENT_TYPE;\n\tvar Lazy = REACT_LAZY_TYPE;\n\tvar Memo = REACT_MEMO_TYPE;\n\tvar Portal = REACT_PORTAL_TYPE;\n\tvar Profiler = REACT_PROFILER_TYPE;\n\tvar StrictMode = REACT_STRICT_MODE_TYPE;\n\tvar Suspense = REACT_SUSPENSE_TYPE;\n\tvar SuspenseList = REACT_SUSPENSE_LIST_TYPE;\n\tvar hasWarnedAboutDeprecatedIsAsyncMode = false;\n\tvar hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated\n\n\tfunction isAsyncMode(object) {\n\t {\n\t if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n\t hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n\t console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');\n\t }\n\t }\n\n\t return false;\n\t}\n\tfunction isConcurrentMode(object) {\n\t {\n\t if (!hasWarnedAboutDeprecatedIsConcurrentMode) {\n\t hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint\n\n\t console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');\n\t }\n\t }\n\n\t return false;\n\t}\n\tfunction isContextConsumer(object) {\n\t return typeOf(object) === REACT_CONTEXT_TYPE;\n\t}\n\tfunction isContextProvider(object) {\n\t return typeOf(object) === REACT_PROVIDER_TYPE;\n\t}\n\tfunction isElement(object) {\n\t return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n\t}\n\tfunction isForwardRef(object) {\n\t return typeOf(object) === REACT_FORWARD_REF_TYPE;\n\t}\n\tfunction isFragment(object) {\n\t return typeOf(object) === REACT_FRAGMENT_TYPE;\n\t}\n\tfunction isLazy(object) {\n\t return typeOf(object) === REACT_LAZY_TYPE;\n\t}\n\tfunction isMemo(object) {\n\t return typeOf(object) === REACT_MEMO_TYPE;\n\t}\n\tfunction isPortal(object) {\n\t return typeOf(object) === REACT_PORTAL_TYPE;\n\t}\n\tfunction isProfiler(object) {\n\t return typeOf(object) === REACT_PROFILER_TYPE;\n\t}\n\tfunction isStrictMode(object) {\n\t return typeOf(object) === REACT_STRICT_MODE_TYPE;\n\t}\n\tfunction isSuspense(object) {\n\t return typeOf(object) === REACT_SUSPENSE_TYPE;\n\t}\n\tfunction isSuspenseList(object) {\n\t return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;\n\t}\n\n\treactIs_development.ContextConsumer = ContextConsumer;\n\treactIs_development.ContextProvider = ContextProvider;\n\treactIs_development.Element = Element;\n\treactIs_development.ForwardRef = ForwardRef;\n\treactIs_development.Fragment = Fragment;\n\treactIs_development.Lazy = Lazy;\n\treactIs_development.Memo = Memo;\n\treactIs_development.Portal = Portal;\n\treactIs_development.Profiler = Profiler;\n\treactIs_development.StrictMode = StrictMode;\n\treactIs_development.Suspense = Suspense;\n\treactIs_development.SuspenseList = SuspenseList;\n\treactIs_development.isAsyncMode = isAsyncMode;\n\treactIs_development.isConcurrentMode = isConcurrentMode;\n\treactIs_development.isContextConsumer = isContextConsumer;\n\treactIs_development.isContextProvider = isContextProvider;\n\treactIs_development.isElement = isElement;\n\treactIs_development.isForwardRef = isForwardRef;\n\treactIs_development.isFragment = isFragment;\n\treactIs_development.isLazy = isLazy;\n\treactIs_development.isMemo = isMemo;\n\treactIs_development.isPortal = isPortal;\n\treactIs_development.isProfiler = isProfiler;\n\treactIs_development.isStrictMode = isStrictMode;\n\treactIs_development.isSuspense = isSuspense;\n\treactIs_development.isSuspenseList = isSuspenseList;\n\treactIs_development.isValidElementType = isValidElementType;\n\treactIs_development.typeOf = typeOf;\n\t })();\n\t}\n\treturn reactIs_development;\n}\n\nvar hasRequiredReactIs;\n\nfunction requireReactIs () {\n\tif (hasRequiredReactIs) return reactIs.exports;\n\thasRequiredReactIs = 1;\n\n\tif (process.env.NODE_ENV === 'production') {\n\t reactIs.exports = requireReactIs_production_min();\n\t} else {\n\t reactIs.exports = requireReactIs_development();\n\t}\n\treturn reactIs.exports;\n}\n\nvar reactIsExports = requireReactIs();\nvar index = /*@__PURE__*/getDefaultExportFromCjs(reactIsExports);\n\nvar ReactIs18 = /*#__PURE__*/_mergeNamespaces({\n __proto__: null,\n default: index\n}, [reactIsExports]);\n\nconst reactIsMethods = [\n\t\"isAsyncMode\",\n\t\"isConcurrentMode\",\n\t\"isContextConsumer\",\n\t\"isContextProvider\",\n\t\"isElement\",\n\t\"isForwardRef\",\n\t\"isFragment\",\n\t\"isLazy\",\n\t\"isMemo\",\n\t\"isPortal\",\n\t\"isProfiler\",\n\t\"isStrictMode\",\n\t\"isSuspense\",\n\t\"isSuspenseList\",\n\t\"isValidElementType\"\n];\nconst ReactIs = Object.fromEntries(reactIsMethods.map((m) => [m, (v) => ReactIs18[m](v) || ReactIs19[m](v)]));\n// Given element.props.children, or subtree during recursive traversal,\n// return flattened array of children.\nfunction getChildren(arg, children = []) {\n\tif (Array.isArray(arg)) {\n\t\tfor (const item of arg) {\n\t\t\tgetChildren(item, children);\n\t\t}\n\t} else if (arg != null && arg !== false && arg !== \"\") {\n\t\tchildren.push(arg);\n\t}\n\treturn children;\n}\nfunction getType(element) {\n\tconst type = element.type;\n\tif (typeof type === \"string\") {\n\t\treturn type;\n\t}\n\tif (typeof type === \"function\") {\n\t\treturn type.displayName || type.name || \"Unknown\";\n\t}\n\tif (ReactIs.isFragment(element)) {\n\t\treturn \"React.Fragment\";\n\t}\n\tif (ReactIs.isSuspense(element)) {\n\t\treturn \"React.Suspense\";\n\t}\n\tif (typeof type === \"object\" && type !== null) {\n\t\tif (ReactIs.isContextProvider(element)) {\n\t\t\treturn \"Context.Provider\";\n\t\t}\n\t\tif (ReactIs.isContextConsumer(element)) {\n\t\t\treturn \"Context.Consumer\";\n\t\t}\n\t\tif (ReactIs.isForwardRef(element)) {\n\t\t\tif (type.displayName) {\n\t\t\t\treturn type.displayName;\n\t\t\t}\n\t\t\tconst functionName = type.render.displayName || type.render.name || \"\";\n\t\t\treturn functionName === \"\" ? \"ForwardRef\" : `ForwardRef(${functionName})`;\n\t\t}\n\t\tif (ReactIs.isMemo(element)) {\n\t\t\tconst functionName = type.displayName || type.type.displayName || type.type.name || \"\";\n\t\t\treturn functionName === \"\" ? \"Memo\" : `Memo(${functionName})`;\n\t\t}\n\t}\n\treturn \"UNDEFINED\";\n}\nfunction getPropKeys$1(element) {\n\tconst { props } = element;\n\treturn Object.keys(props).filter((key) => key !== \"children\" && props[key] !== undefined).sort();\n}\nconst serialize$1 = (element, config, indentation, depth, refs, printer) => ++depth > config.maxDepth ? printElementAsLeaf(getType(element), config) : printElement(getType(element), printProps(getPropKeys$1(element), element.props, config, indentation + config.indent, depth, refs, printer), printChildren(getChildren(element.props.children), config, indentation + config.indent, depth, refs, printer), config, indentation);\nconst test$1 = (val) => val != null && ReactIs.isElement(val);\nconst plugin$1 = {\n\tserialize: serialize$1,\n\ttest: test$1\n};\n\nconst testSymbol = typeof Symbol === \"function\" && Symbol.for ? Symbol.for(\"react.test.json\") : 245830487;\nfunction getPropKeys(object) {\n\tconst { props } = object;\n\treturn props ? Object.keys(props).filter((key) => props[key] !== undefined).sort() : [];\n}\nconst serialize = (object, config, indentation, depth, refs, printer) => ++depth > config.maxDepth ? printElementAsLeaf(object.type, config) : printElement(object.type, object.props ? printProps(getPropKeys(object), object.props, config, indentation + config.indent, depth, refs, printer) : \"\", object.children ? printChildren(object.children, config, indentation + config.indent, depth, refs, printer) : \"\", config, indentation);\nconst test = (val) => val && val.$$typeof === testSymbol;\nconst plugin = {\n\tserialize,\n\ttest\n};\n\nconst toString = Object.prototype.toString;\nconst toISOString = Date.prototype.toISOString;\nconst errorToString = Error.prototype.toString;\nconst regExpToString = RegExp.prototype.toString;\n/**\n* Explicitly comparing typeof constructor to function avoids undefined as name\n* when mock identity-obj-proxy returns the key as the value for any key.\n*/\nfunction getConstructorName(val) {\n\treturn typeof val.constructor === \"function\" && val.constructor.name || \"Object\";\n}\n/** Is val is equal to global window object? Works even if it does not exist :) */\nfunction isWindow(val) {\n\treturn typeof window !== \"undefined\" && val === window;\n}\n// eslint-disable-next-line regexp/no-super-linear-backtracking\nconst SYMBOL_REGEXP = /^Symbol\\((.*)\\)(.*)$/;\nconst NEWLINE_REGEXP = /\\n/g;\nclass PrettyFormatPluginError extends Error {\n\tconstructor(message, stack) {\n\t\tsuper(message);\n\t\tthis.stack = stack;\n\t\tthis.name = this.constructor.name;\n\t}\n}\nfunction isToStringedArrayType(toStringed) {\n\treturn toStringed === \"[object Array]\" || toStringed === \"[object ArrayBuffer]\" || toStringed === \"[object DataView]\" || toStringed === \"[object Float32Array]\" || toStringed === \"[object Float64Array]\" || toStringed === \"[object Int8Array]\" || toStringed === \"[object Int16Array]\" || toStringed === \"[object Int32Array]\" || toStringed === \"[object Uint8Array]\" || toStringed === \"[object Uint8ClampedArray]\" || toStringed === \"[object Uint16Array]\" || toStringed === \"[object Uint32Array]\";\n}\nfunction printNumber(val) {\n\treturn Object.is(val, -0) ? \"-0\" : String(val);\n}\nfunction printBigInt(val) {\n\treturn String(`${val}n`);\n}\nfunction printFunction(val, printFunctionName) {\n\tif (!printFunctionName) {\n\t\treturn \"[Function]\";\n\t}\n\treturn `[Function ${val.name || \"anonymous\"}]`;\n}\nfunction printSymbol(val) {\n\treturn String(val).replace(SYMBOL_REGEXP, \"Symbol($1)\");\n}\nfunction printError(val) {\n\treturn `[${errorToString.call(val)}]`;\n}\n/**\n* The first port of call for printing an object, handles most of the\n* data-types in JS.\n*/\nfunction printBasicValue(val, printFunctionName, escapeRegex, escapeString) {\n\tif (val === true || val === false) {\n\t\treturn `${val}`;\n\t}\n\tif (val === undefined) {\n\t\treturn \"undefined\";\n\t}\n\tif (val === null) {\n\t\treturn \"null\";\n\t}\n\tconst typeOf = typeof val;\n\tif (typeOf === \"number\") {\n\t\treturn printNumber(val);\n\t}\n\tif (typeOf === \"bigint\") {\n\t\treturn printBigInt(val);\n\t}\n\tif (typeOf === \"string\") {\n\t\tif (escapeString) {\n\t\t\treturn `\"${val.replaceAll(/\"|\\\\/g, \"\\\\$&\")}\"`;\n\t\t}\n\t\treturn `\"${val}\"`;\n\t}\n\tif (typeOf === \"function\") {\n\t\treturn printFunction(val, printFunctionName);\n\t}\n\tif (typeOf === \"symbol\") {\n\t\treturn printSymbol(val);\n\t}\n\tconst toStringed = toString.call(val);\n\tif (toStringed === \"[object WeakMap]\") {\n\t\treturn \"WeakMap {}\";\n\t}\n\tif (toStringed === \"[object WeakSet]\") {\n\t\treturn \"WeakSet {}\";\n\t}\n\tif (toStringed === \"[object Function]\" || toStringed === \"[object GeneratorFunction]\") {\n\t\treturn printFunction(val, printFunctionName);\n\t}\n\tif (toStringed === \"[object Symbol]\") {\n\t\treturn printSymbol(val);\n\t}\n\tif (toStringed === \"[object Date]\") {\n\t\treturn Number.isNaN(+val) ? \"Date { NaN }\" : toISOString.call(val);\n\t}\n\tif (toStringed === \"[object Error]\") {\n\t\treturn printError(val);\n\t}\n\tif (toStringed === \"[object RegExp]\") {\n\t\tif (escapeRegex) {\n\t\t\t// https://github.com/benjamingr/RegExp.escape/blob/main/polyfill.js\n\t\t\treturn regExpToString.call(val).replaceAll(/[$()*+.?[\\\\\\]^{|}]/g, \"\\\\$&\");\n\t\t}\n\t\treturn regExpToString.call(val);\n\t}\n\tif (val instanceof Error) {\n\t\treturn printError(val);\n\t}\n\treturn null;\n}\n/**\n* Handles more complex objects ( such as objects with circular references.\n* maps and sets etc )\n*/\nfunction printComplexValue(val, config, indentation, depth, refs, hasCalledToJSON) {\n\tif (refs.includes(val)) {\n\t\treturn \"[Circular]\";\n\t}\n\trefs = [...refs];\n\trefs.push(val);\n\tconst hitMaxDepth = ++depth > config.maxDepth;\n\tconst min = config.min;\n\tif (config.callToJSON && !hitMaxDepth && val.toJSON && typeof val.toJSON === \"function\" && !hasCalledToJSON) {\n\t\treturn printer(val.toJSON(), config, indentation, depth, refs, true);\n\t}\n\tconst toStringed = toString.call(val);\n\tif (toStringed === \"[object Arguments]\") {\n\t\treturn hitMaxDepth ? \"[Arguments]\" : `${min ? \"\" : \"Arguments \"}[${printListItems(val, config, indentation, depth, refs, printer)}]`;\n\t}\n\tif (isToStringedArrayType(toStringed)) {\n\t\treturn hitMaxDepth ? `[${val.constructor.name}]` : `${min ? \"\" : !config.printBasicPrototype && val.constructor.name === \"Array\" ? \"\" : `${val.constructor.name} `}[${printListItems(val, config, indentation, depth, refs, printer)}]`;\n\t}\n\tif (toStringed === \"[object Map]\") {\n\t\treturn hitMaxDepth ? \"[Map]\" : `Map {${printIteratorEntries(val.entries(), config, indentation, depth, refs, printer, \" => \")}}`;\n\t}\n\tif (toStringed === \"[object Set]\") {\n\t\treturn hitMaxDepth ? \"[Set]\" : `Set {${printIteratorValues(val.values(), config, indentation, depth, refs, printer)}}`;\n\t}\n\t// Avoid failure to serialize global window object in jsdom test environment.\n\t// For example, not even relevant if window is prop of React element.\n\treturn hitMaxDepth || isWindow(val) ? `[${getConstructorName(val)}]` : `${min ? \"\" : !config.printBasicPrototype && getConstructorName(val) === \"Object\" ? \"\" : `${getConstructorName(val)} `}{${printObjectProperties(val, config, indentation, depth, refs, printer)}}`;\n}\nconst ErrorPlugin = {\n\ttest: (val) => val && val instanceof Error,\n\tserialize(val, config, indentation, depth, refs, printer) {\n\t\tif (refs.includes(val)) {\n\t\t\treturn \"[Circular]\";\n\t\t}\n\t\trefs = [...refs, val];\n\t\tconst hitMaxDepth = ++depth > config.maxDepth;\n\t\tconst { message, cause,...rest } = val;\n\t\tconst entries = {\n\t\t\tmessage,\n\t\t\t...typeof cause !== \"undefined\" ? { cause } : {},\n\t\t\t...val instanceof AggregateError ? { errors: val.errors } : {},\n\t\t\t...rest\n\t\t};\n\t\tconst name = val.name !== \"Error\" ? val.name : getConstructorName(val);\n\t\treturn hitMaxDepth ? `[${name}]` : `${name} {${printIteratorEntries(Object.entries(entries).values(), config, indentation, depth, refs, printer)}}`;\n\t}\n};\nfunction isNewPlugin(plugin) {\n\treturn plugin.serialize != null;\n}\nfunction printPlugin(plugin, val, config, indentation, depth, refs) {\n\tlet printed;\n\ttry {\n\t\tprinted = isNewPlugin(plugin) ? plugin.serialize(val, config, indentation, depth, refs, printer) : plugin.print(val, (valChild) => printer(valChild, config, indentation, depth, refs), (str) => {\n\t\t\tconst indentationNext = indentation + config.indent;\n\t\t\treturn indentationNext + str.replaceAll(NEWLINE_REGEXP, `\\n${indentationNext}`);\n\t\t}, {\n\t\t\tedgeSpacing: config.spacingOuter,\n\t\t\tmin: config.min,\n\t\t\tspacing: config.spacingInner\n\t\t}, config.colors);\n\t} catch (error) {\n\t\tthrow new PrettyFormatPluginError(error.message, error.stack);\n\t}\n\tif (typeof printed !== \"string\") {\n\t\tthrow new TypeError(`pretty-format: Plugin must return type \"string\" but instead returned \"${typeof printed}\".`);\n\t}\n\treturn printed;\n}\nfunction findPlugin(plugins, val) {\n\tfor (const plugin of plugins) {\n\t\ttry {\n\t\t\tif (plugin.test(val)) {\n\t\t\t\treturn plugin;\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tthrow new PrettyFormatPluginError(error.message, error.stack);\n\t\t}\n\t}\n\treturn null;\n}\nfunction printer(val, config, indentation, depth, refs, hasCalledToJSON) {\n\tconst plugin = findPlugin(config.plugins, val);\n\tif (plugin !== null) {\n\t\treturn printPlugin(plugin, val, config, indentation, depth, refs);\n\t}\n\tconst basicResult = printBasicValue(val, config.printFunctionName, config.escapeRegex, config.escapeString);\n\tif (basicResult !== null) {\n\t\treturn basicResult;\n\t}\n\treturn printComplexValue(val, config, indentation, depth, refs, hasCalledToJSON);\n}\nconst DEFAULT_THEME = {\n\tcomment: \"gray\",\n\tcontent: \"reset\",\n\tprop: \"yellow\",\n\ttag: \"cyan\",\n\tvalue: \"green\"\n};\nconst DEFAULT_THEME_KEYS = Object.keys(DEFAULT_THEME);\nconst DEFAULT_OPTIONS = {\n\tcallToJSON: true,\n\tcompareKeys: undefined,\n\tescapeRegex: false,\n\tescapeString: true,\n\thighlight: false,\n\tindent: 2,\n\tmaxDepth: Number.POSITIVE_INFINITY,\n\tmaxWidth: Number.POSITIVE_INFINITY,\n\tmin: false,\n\tplugins: [],\n\tprintBasicPrototype: true,\n\tprintFunctionName: true,\n\ttheme: DEFAULT_THEME\n};\nfunction validateOptions(options) {\n\tfor (const key of Object.keys(options)) {\n\t\tif (!Object.prototype.hasOwnProperty.call(DEFAULT_OPTIONS, key)) {\n\t\t\tthrow new Error(`pretty-format: Unknown option \"${key}\".`);\n\t\t}\n\t}\n\tif (options.min && options.indent !== undefined && options.indent !== 0) {\n\t\tthrow new Error(\"pretty-format: Options \\\"min\\\" and \\\"indent\\\" cannot be used together.\");\n\t}\n}\nfunction getColorsHighlight() {\n\treturn DEFAULT_THEME_KEYS.reduce((colors, key) => {\n\t\tconst value = DEFAULT_THEME[key];\n\t\tconst color = value && styles[value];\n\t\tif (color && typeof color.close === \"string\" && typeof color.open === \"string\") {\n\t\t\tcolors[key] = color;\n\t\t} else {\n\t\t\tthrow new Error(`pretty-format: Option \"theme\" has a key \"${key}\" whose value \"${value}\" is undefined in ansi-styles.`);\n\t\t}\n\t\treturn colors;\n\t}, Object.create(null));\n}\nfunction getColorsEmpty() {\n\treturn DEFAULT_THEME_KEYS.reduce((colors, key) => {\n\t\tcolors[key] = {\n\t\t\tclose: \"\",\n\t\t\topen: \"\"\n\t\t};\n\t\treturn colors;\n\t}, Object.create(null));\n}\nfunction getPrintFunctionName(options) {\n\treturn (options === null || options === void 0 ? void 0 : options.printFunctionName) ?? DEFAULT_OPTIONS.printFunctionName;\n}\nfunction getEscapeRegex(options) {\n\treturn (options === null || options === void 0 ? void 0 : options.escapeRegex) ?? DEFAULT_OPTIONS.escapeRegex;\n}\nfunction getEscapeString(options) {\n\treturn (options === null || options === void 0 ? void 0 : options.escapeString) ?? DEFAULT_OPTIONS.escapeString;\n}\nfunction getConfig(options) {\n\treturn {\n\t\tcallToJSON: (options === null || options === void 0 ? void 0 : options.callToJSON) ?? DEFAULT_OPTIONS.callToJSON,\n\t\tcolors: (options === null || options === void 0 ? void 0 : options.highlight) ? getColorsHighlight() : getColorsEmpty(),\n\t\tcompareKeys: typeof (options === null || options === void 0 ? void 0 : options.compareKeys) === \"function\" || (options === null || options === void 0 ? void 0 : options.compareKeys) === null ? options.compareKeys : DEFAULT_OPTIONS.compareKeys,\n\t\tescapeRegex: getEscapeRegex(options),\n\t\tescapeString: getEscapeString(options),\n\t\tindent: (options === null || options === void 0 ? void 0 : options.min) ? \"\" : createIndent((options === null || options === void 0 ? void 0 : options.indent) ?? DEFAULT_OPTIONS.indent),\n\t\tmaxDepth: (options === null || options === void 0 ? void 0 : options.maxDepth) ?? DEFAULT_OPTIONS.maxDepth,\n\t\tmaxWidth: (options === null || options === void 0 ? void 0 : options.maxWidth) ?? DEFAULT_OPTIONS.maxWidth,\n\t\tmin: (options === null || options === void 0 ? void 0 : options.min) ?? DEFAULT_OPTIONS.min,\n\t\tplugins: (options === null || options === void 0 ? void 0 : options.plugins) ?? DEFAULT_OPTIONS.plugins,\n\t\tprintBasicPrototype: (options === null || options === void 0 ? void 0 : options.printBasicPrototype) ?? true,\n\t\tprintFunctionName: getPrintFunctionName(options),\n\t\tspacingInner: (options === null || options === void 0 ? void 0 : options.min) ? \" \" : \"\\n\",\n\t\tspacingOuter: (options === null || options === void 0 ? void 0 : options.min) ? \"\" : \"\\n\"\n\t};\n}\nfunction createIndent(indent) {\n\treturn Array.from({ length: indent + 1 }).join(\" \");\n}\n/**\n* Returns a presentation string of your `val` object\n* @param val any potential JavaScript object\n* @param options Custom settings\n*/\nfunction format(val, options) {\n\tif (options) {\n\t\tvalidateOptions(options);\n\t\tif (options.plugins) {\n\t\t\tconst plugin = findPlugin(options.plugins, val);\n\t\t\tif (plugin !== null) {\n\t\t\t\treturn printPlugin(plugin, val, getConfig(options), \"\", 0, []);\n\t\t\t}\n\t\t}\n\t}\n\tconst basicResult = printBasicValue(val, getPrintFunctionName(options), getEscapeRegex(options), getEscapeString(options));\n\tif (basicResult !== null) {\n\t\treturn basicResult;\n\t}\n\treturn printComplexValue(val, getConfig(options), \"\", 0, []);\n}\nconst plugins = {\n\tAsymmetricMatcher: plugin$5,\n\tDOMCollection: plugin$4,\n\tDOMElement: plugin$3,\n\tImmutable: plugin$2,\n\tReactElement: plugin$1,\n\tReactTestComponent: plugin,\n\tError: ErrorPlugin\n};\n\nexport { DEFAULT_OPTIONS, format, plugins };\n","const ansiColors = {\n bold: ['1', '22'],\n dim: ['2', '22'],\n italic: ['3', '23'],\n underline: ['4', '24'],\n // 5 & 6 are blinking\n inverse: ['7', '27'],\n hidden: ['8', '28'],\n strike: ['9', '29'],\n // 10-20 are fonts\n // 21-29 are resets for 1-9\n black: ['30', '39'],\n red: ['31', '39'],\n green: ['32', '39'],\n yellow: ['33', '39'],\n blue: ['34', '39'],\n magenta: ['35', '39'],\n cyan: ['36', '39'],\n white: ['37', '39'],\n brightblack: ['30;1', '39'],\n brightred: ['31;1', '39'],\n brightgreen: ['32;1', '39'],\n brightyellow: ['33;1', '39'],\n brightblue: ['34;1', '39'],\n brightmagenta: ['35;1', '39'],\n brightcyan: ['36;1', '39'],\n brightwhite: ['37;1', '39'],\n grey: ['90', '39'],\n};\nconst styles = {\n special: 'cyan',\n number: 'yellow',\n bigint: 'yellow',\n boolean: 'yellow',\n undefined: 'grey',\n null: 'bold',\n string: 'green',\n symbol: 'green',\n date: 'magenta',\n regexp: 'red',\n};\nexport const truncator = '…';\nfunction colorise(value, styleType) {\n const color = ansiColors[styles[styleType]] || ansiColors[styleType] || '';\n if (!color) {\n return String(value);\n }\n return `\\u001b[${color[0]}m${String(value)}\\u001b[${color[1]}m`;\n}\nexport function normaliseOptions({ showHidden = false, depth = 2, colors = false, customInspect = true, showProxy = false, maxArrayLength = Infinity, breakLength = Infinity, seen = [], \n// eslint-disable-next-line no-shadow\ntruncate = Infinity, stylize = String, } = {}, inspect) {\n const options = {\n showHidden: Boolean(showHidden),\n depth: Number(depth),\n colors: Boolean(colors),\n customInspect: Boolean(customInspect),\n showProxy: Boolean(showProxy),\n maxArrayLength: Number(maxArrayLength),\n breakLength: Number(breakLength),\n truncate: Number(truncate),\n seen,\n inspect,\n stylize,\n };\n if (options.colors) {\n options.stylize = colorise;\n }\n return options;\n}\nfunction isHighSurrogate(char) {\n return char >= '\\ud800' && char <= '\\udbff';\n}\nexport function truncate(string, length, tail = truncator) {\n string = String(string);\n const tailLength = tail.length;\n const stringLength = string.length;\n if (tailLength > length && stringLength > tailLength) {\n return tail;\n }\n if (stringLength > length && stringLength > tailLength) {\n let end = length - tailLength;\n if (end > 0 && isHighSurrogate(string[end - 1])) {\n end = end - 1;\n }\n return `${string.slice(0, end)}${tail}`;\n }\n return string;\n}\n// eslint-disable-next-line complexity\nexport function inspectList(list, options, inspectItem, separator = ', ') {\n inspectItem = inspectItem || options.inspect;\n const size = list.length;\n if (size === 0)\n return '';\n const originalLength = options.truncate;\n let output = '';\n let peek = '';\n let truncated = '';\n for (let i = 0; i < size; i += 1) {\n const last = i + 1 === list.length;\n const secondToLast = i + 2 === list.length;\n truncated = `${truncator}(${list.length - i})`;\n const value = list[i];\n // If there is more than one remaining we need to account for a separator of `, `\n options.truncate = originalLength - output.length - (last ? 0 : separator.length);\n const string = peek || inspectItem(value, options) + (last ? '' : separator);\n const nextLength = output.length + string.length;\n const truncatedLength = nextLength + truncated.length;\n // If this is the last element, and adding it would\n // take us over length, but adding the truncator wouldn't - then break now\n if (last && nextLength > originalLength && output.length + truncated.length <= originalLength) {\n break;\n }\n // If this isn't the last or second to last element to scan,\n // but the string is already over length then break here\n if (!last && !secondToLast && truncatedLength > originalLength) {\n break;\n }\n // Peek at the next string to determine if we should\n // break early before adding this item to the output\n peek = last ? '' : inspectItem(list[i + 1], options) + (secondToLast ? '' : separator);\n // If we have one element left, but this element and\n // the next takes over length, the break early\n if (!last && secondToLast && truncatedLength > originalLength && nextLength + peek.length > originalLength) {\n break;\n }\n output += string;\n // If the next element takes us to length -\n // but there are more after that, then we should truncate now\n if (!last && !secondToLast && nextLength + peek.length >= originalLength) {\n truncated = `${truncator}(${list.length - i - 1})`;\n break;\n }\n truncated = '';\n }\n return `${output}${truncated}`;\n}\nfunction quoteComplexKey(key) {\n if (key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)) {\n return key;\n }\n return JSON.stringify(key)\n .replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"')\n .replace(/(^\"|\"$)/g, \"'\");\n}\nexport function inspectProperty([key, value], options) {\n options.truncate -= 2;\n if (typeof key === 'string') {\n key = quoteComplexKey(key);\n }\n else if (typeof key !== 'number') {\n key = `[${options.inspect(key, options)}]`;\n }\n options.truncate -= key.length;\n value = options.inspect(value, options);\n return `${key}: ${value}`;\n}\n","import { inspectList, inspectProperty } from './helpers.js';\nexport default function inspectArray(array, options) {\n // Object.keys will always output the Array indices first, so we can slice by\n // `array.length` to get non-index properties\n const nonIndexProperties = Object.keys(array).slice(array.length);\n if (!array.length && !nonIndexProperties.length)\n return '[]';\n options.truncate -= 4;\n const listContents = inspectList(array, options);\n options.truncate -= listContents.length;\n let propertyContents = '';\n if (nonIndexProperties.length) {\n propertyContents = inspectList(nonIndexProperties.map(key => [key, array[key]]), options, inspectProperty);\n }\n return `[ ${listContents}${propertyContents ? `, ${propertyContents}` : ''} ]`;\n}\n","import { inspectList, inspectProperty, truncate, truncator } from './helpers.js';\nconst getArrayName = (array) => {\n // We need to special case Node.js' Buffers, which report to be Uint8Array\n // @ts-ignore\n if (typeof Buffer === 'function' && array instanceof Buffer) {\n return 'Buffer';\n }\n if (array[Symbol.toStringTag]) {\n return array[Symbol.toStringTag];\n }\n return array.constructor.name;\n};\nexport default function inspectTypedArray(array, options) {\n const name = getArrayName(array);\n options.truncate -= name.length + 4;\n // Object.keys will always output the Array indices first, so we can slice by\n // `array.length` to get non-index properties\n const nonIndexProperties = Object.keys(array).slice(array.length);\n if (!array.length && !nonIndexProperties.length)\n return `${name}[]`;\n // As we know TypedArrays only contain Unsigned Integers, we can skip inspecting each one and simply\n // stylise the toString() value of them\n let output = '';\n for (let i = 0; i < array.length; i++) {\n const string = `${options.stylize(truncate(array[i], options.truncate), 'number')}${i === array.length - 1 ? '' : ', '}`;\n options.truncate -= string.length;\n if (array[i] !== array.length && options.truncate <= 3) {\n output += `${truncator}(${array.length - array[i] + 1})`;\n break;\n }\n output += string;\n }\n let propertyContents = '';\n if (nonIndexProperties.length) {\n propertyContents = inspectList(nonIndexProperties.map(key => [key, array[key]]), options, inspectProperty);\n }\n return `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : ''} ]`;\n}\n","import { truncate } from './helpers.js';\nexport default function inspectDate(dateObject, options) {\n const stringRepresentation = dateObject.toJSON();\n if (stringRepresentation === null) {\n return 'Invalid Date';\n }\n const split = stringRepresentation.split('T');\n const date = split[0];\n // If we need to - truncate the time portion, but never the date\n return options.stylize(`${date}T${truncate(split[1], options.truncate - date.length - 1)}`, 'date');\n}\n","import { truncate } from './helpers.js';\nexport default function inspectFunction(func, options) {\n const functionType = func[Symbol.toStringTag] || 'Function';\n const name = func.name;\n if (!name) {\n return options.stylize(`[${functionType}]`, 'special');\n }\n return options.stylize(`[${functionType} ${truncate(name, options.truncate - 11)}]`, 'special');\n}\n","import { inspectList } from './helpers.js';\nfunction inspectMapEntry([key, value], options) {\n options.truncate -= 4;\n key = options.inspect(key, options);\n options.truncate -= key.length;\n value = options.inspect(value, options);\n return `${key} => ${value}`;\n}\n// IE11 doesn't support `map.entries()`\nfunction mapToEntries(map) {\n const entries = [];\n map.forEach((value, key) => {\n entries.push([key, value]);\n });\n return entries;\n}\nexport default function inspectMap(map, options) {\n if (map.size === 0)\n return 'Map{}';\n options.truncate -= 7;\n return `Map{ ${inspectList(mapToEntries(map), options, inspectMapEntry)} }`;\n}\n","import { truncate } from './helpers.js';\nconst isNaN = Number.isNaN || (i => i !== i); // eslint-disable-line no-self-compare\nexport default function inspectNumber(number, options) {\n if (isNaN(number)) {\n return options.stylize('NaN', 'number');\n }\n if (number === Infinity) {\n return options.stylize('Infinity', 'number');\n }\n if (number === -Infinity) {\n return options.stylize('-Infinity', 'number');\n }\n if (number === 0) {\n return options.stylize(1 / number === Infinity ? '+0' : '-0', 'number');\n }\n return options.stylize(truncate(String(number), options.truncate), 'number');\n}\n","import { truncate, truncator } from './helpers.js';\nexport default function inspectBigInt(number, options) {\n let nums = truncate(number.toString(), options.truncate - 1);\n if (nums !== truncator)\n nums += 'n';\n return options.stylize(nums, 'bigint');\n}\n","import { truncate } from './helpers.js';\nexport default function inspectRegExp(value, options) {\n const flags = value.toString().split('/')[2];\n const sourceLength = options.truncate - (2 + flags.length);\n const source = value.source;\n return options.stylize(`/${truncate(source, sourceLength)}/${flags}`, 'regexp');\n}\n","import { inspectList } from './helpers.js';\n// IE11 doesn't support `Array.from(set)`\nfunction arrayFromSet(set) {\n const values = [];\n set.forEach(value => {\n values.push(value);\n });\n return values;\n}\nexport default function inspectSet(set, options) {\n if (set.size === 0)\n return 'Set{}';\n options.truncate -= 7;\n return `Set{ ${inspectList(arrayFromSet(set), options)} }`;\n}\n","import { truncate } from './helpers.js';\nconst stringEscapeChars = new RegExp(\"['\\\\u0000-\\\\u001f\\\\u007f-\\\\u009f\\\\u00ad\\\\u0600-\\\\u0604\\\\u070f\\\\u17b4\\\\u17b5\" +\n '\\\\u200c-\\\\u200f\\\\u2028-\\\\u202f\\\\u2060-\\\\u206f\\\\ufeff\\\\ufff0-\\\\uffff]', 'g');\nconst escapeCharacters = {\n '\\b': '\\\\b',\n '\\t': '\\\\t',\n '\\n': '\\\\n',\n '\\f': '\\\\f',\n '\\r': '\\\\r',\n \"'\": \"\\\\'\",\n '\\\\': '\\\\\\\\',\n};\nconst hex = 16;\nconst unicodeLength = 4;\nfunction escape(char) {\n return (escapeCharacters[char] ||\n `\\\\u${`0000${char.charCodeAt(0).toString(hex)}`.slice(-unicodeLength)}`);\n}\nexport default function inspectString(string, options) {\n if (stringEscapeChars.test(string)) {\n string = string.replace(stringEscapeChars, escape);\n }\n return options.stylize(`'${truncate(string, options.truncate - 2)}'`, 'string');\n}\n","export default function inspectSymbol(value) {\n if ('description' in Symbol.prototype) {\n return value.description ? `Symbol(${value.description})` : 'Symbol()';\n }\n return value.toString();\n}\n","let getPromiseValue = () => 'Promise{…}';\ntry {\n // @ts-ignore\n const { getPromiseDetails, kPending, kRejected } = process.binding('util');\n if (Array.isArray(getPromiseDetails(Promise.resolve()))) {\n getPromiseValue = (value, options) => {\n const [state, innerValue] = getPromiseDetails(value);\n if (state === kPending) {\n return 'Promise{<pending>}';\n }\n return `Promise${state === kRejected ? '!' : ''}{${options.inspect(innerValue, options)}}`;\n };\n }\n}\ncatch (notNode) {\n /* ignore */\n}\nexport default getPromiseValue;\n","import { inspectList, inspectProperty } from './helpers.js';\nexport default function inspectObject(object, options) {\n const properties = Object.getOwnPropertyNames(object);\n const symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : [];\n if (properties.length === 0 && symbols.length === 0) {\n return '{}';\n }\n options.truncate -= 4;\n options.seen = options.seen || [];\n if (options.seen.includes(object)) {\n return '[Circular]';\n }\n options.seen.push(object);\n const propertyContents = inspectList(properties.map(key => [key, object[key]]), options, inspectProperty);\n const symbolContents = inspectList(symbols.map(key => [key, object[key]]), options, inspectProperty);\n options.seen.pop();\n let sep = '';\n if (propertyContents && symbolContents) {\n sep = ', ';\n }\n return `{ ${propertyContents}${sep}${symbolContents} }`;\n}\n","import inspectObject from './object.js';\nconst toStringTag = typeof Symbol !== 'undefined' && Symbol.toStringTag ? Symbol.toStringTag : false;\nexport default function inspectClass(value, options) {\n let name = '';\n if (toStringTag && toStringTag in value) {\n name = value[toStringTag];\n }\n name = name || value.constructor.name;\n // Babel transforms anonymous classes to the name `_class`\n if (!name || name === '_class') {\n name = '<Anonymous Class>';\n }\n options.truncate -= name.length;\n return `${name}${inspectObject(value, options)}`;\n}\n","import { inspectList } from './helpers.js';\nexport default function inspectArguments(args, options) {\n if (args.length === 0)\n return 'Arguments[]';\n options.truncate -= 13;\n return `Arguments[ ${inspectList(args, options)} ]`;\n}\n","import { inspectList, inspectProperty, truncate } from './helpers.js';\nconst errorKeys = [\n 'stack',\n 'line',\n 'column',\n 'name',\n 'message',\n 'fileName',\n 'lineNumber',\n 'columnNumber',\n 'number',\n 'description',\n 'cause',\n];\nexport default function inspectObject(error, options) {\n const properties = Object.getOwnPropertyNames(error).filter(key => errorKeys.indexOf(key) === -1);\n const name = error.name;\n options.truncate -= name.length;\n let message = '';\n if (typeof error.message === 'string') {\n message = truncate(error.message, options.truncate);\n }\n else {\n properties.unshift('message');\n }\n message = message ? `: ${message}` : '';\n options.truncate -= message.length + 5;\n options.seen = options.seen || [];\n if (options.seen.includes(error)) {\n return '[Circular]';\n }\n options.seen.push(error);\n const propertyContents = inspectList(properties.map(key => [key, error[key]]), options, inspectProperty);\n return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ''}`;\n}\n","import { inspectList, truncator } from './helpers.js';\nexport function inspectAttribute([key, value], options) {\n options.truncate -= 3;\n if (!value) {\n return `${options.stylize(String(key), 'yellow')}`;\n }\n return `${options.stylize(String(key), 'yellow')}=${options.stylize(`\"${value}\"`, 'string')}`;\n}\nexport function inspectNodeCollection(collection, options) {\n return inspectList(collection, options, inspectNode, '\\n');\n}\nexport function inspectNode(node, options) {\n switch (node.nodeType) {\n case 1:\n return inspectHTML(node, options);\n case 3:\n return options.inspect(node.data, options);\n default:\n return options.inspect(node, options);\n }\n}\n// @ts-ignore (Deno doesn't have Element)\nexport default function inspectHTML(element, options) {\n const properties = element.getAttributeNames();\n const name = element.tagName.toLowerCase();\n const head = options.stylize(`<${name}`, 'special');\n const headClose = options.stylize(`>`, 'special');\n const tail = options.stylize(`</${name}>`, 'special');\n options.truncate -= name.length * 2 + 5;\n let propertyContents = '';\n if (properties.length > 0) {\n propertyContents += ' ';\n propertyContents += inspectList(properties.map((key) => [key, element.getAttribute(key)]), options, inspectAttribute, ' ');\n }\n options.truncate -= propertyContents.length;\n const truncate = options.truncate;\n let children = inspectNodeCollection(element.children, options);\n if (children && children.length > truncate) {\n children = `${truncator}(${element.children.length})`;\n }\n return `${head}${propertyContents}${headClose}${children}${tail}`;\n}\n","/* !\n * loupe\n * Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\nimport inspectArray from './array.js';\nimport inspectTypedArray from './typedarray.js';\nimport inspectDate from './date.js';\nimport inspectFunction from './function.js';\nimport inspectMap from './map.js';\nimport inspectNumber from './number.js';\nimport inspectBigInt from './bigint.js';\nimport inspectRegExp from './regexp.js';\nimport inspectSet from './set.js';\nimport inspectString from './string.js';\nimport inspectSymbol from './symbol.js';\nimport inspectPromise from './promise.js';\nimport inspectClass from './class.js';\nimport inspectObject from './object.js';\nimport inspectArguments from './arguments.js';\nimport inspectError from './error.js';\nimport inspectHTMLElement, { inspectNodeCollection } from './html.js';\nimport { normaliseOptions } from './helpers.js';\nconst symbolsSupported = typeof Symbol === 'function' && typeof Symbol.for === 'function';\nconst chaiInspect = symbolsSupported ? Symbol.for('chai/inspect') : '@@chai/inspect';\nconst nodeInspect = Symbol.for('nodejs.util.inspect.custom');\nconst constructorMap = new WeakMap();\nconst stringTagMap = {};\nconst baseTypesMap = {\n undefined: (value, options) => options.stylize('undefined', 'undefined'),\n null: (value, options) => options.stylize('null', 'null'),\n boolean: (value, options) => options.stylize(String(value), 'boolean'),\n Boolean: (value, options) => options.stylize(String(value), 'boolean'),\n number: inspectNumber,\n Number: inspectNumber,\n bigint: inspectBigInt,\n BigInt: inspectBigInt,\n string: inspectString,\n String: inspectString,\n function: inspectFunction,\n Function: inspectFunction,\n symbol: inspectSymbol,\n // A Symbol polyfill will return `Symbol` not `symbol` from typedetect\n Symbol: inspectSymbol,\n Array: inspectArray,\n Date: inspectDate,\n Map: inspectMap,\n Set: inspectSet,\n RegExp: inspectRegExp,\n Promise: inspectPromise,\n // WeakSet, WeakMap are totally opaque to us\n WeakSet: (value, options) => options.stylize('WeakSet{…}', 'special'),\n WeakMap: (value, options) => options.stylize('WeakMap{…}', 'special'),\n Arguments: inspectArguments,\n Int8Array: inspectTypedArray,\n Uint8Array: inspectTypedArray,\n Uint8ClampedArray: inspectTypedArray,\n Int16Array: inspectTypedArray,\n Uint16Array: inspectTypedArray,\n Int32Array: inspectTypedArray,\n Uint32Array: inspectTypedArray,\n Float32Array: inspectTypedArray,\n Float64Array: inspectTypedArray,\n Generator: () => '',\n DataView: () => '',\n ArrayBuffer: () => '',\n Error: inspectError,\n HTMLCollection: inspectNodeCollection,\n NodeList: inspectNodeCollection,\n};\n// eslint-disable-next-line complexity\nconst inspectCustom = (value, options, type) => {\n if (chaiInspect in value && typeof value[chaiInspect] === 'function') {\n return value[chaiInspect](options);\n }\n if (nodeInspect in value && typeof value[nodeInspect] === 'function') {\n return value[nodeInspect](options.depth, options);\n }\n if ('inspect' in value && typeof value.inspect === 'function') {\n return value.inspect(options.depth, options);\n }\n if ('constructor' in value && constructorMap.has(value.constructor)) {\n return constructorMap.get(value.constructor)(value, options);\n }\n if (stringTagMap[type]) {\n return stringTagMap[type](value, options);\n }\n return '';\n};\nconst toString = Object.prototype.toString;\n// eslint-disable-next-line complexity\nexport function inspect(value, opts = {}) {\n const options = normaliseOptions(opts, inspect);\n const { customInspect } = options;\n let type = value === null ? 'null' : typeof value;\n if (type === 'object') {\n type = toString.call(value).slice(8, -1);\n }\n // If it is a base value that we already support, then use Loupe's inspector\n if (type in baseTypesMap) {\n return baseTypesMap[type](value, options);\n }\n // If `options.customInspect` is set to true then try to use the custom inspector\n if (customInspect && value) {\n const output = inspectCustom(value, options, type);\n if (output) {\n if (typeof output === 'string')\n return output;\n return inspect(output, options);\n }\n }\n const proto = value ? Object.getPrototypeOf(value) : false;\n // If it's a plain Object then use Loupe's inspector\n if (proto === Object.prototype || proto === null) {\n return inspectObject(value, options);\n }\n // Specifically account for HTMLElements\n // @ts-ignore\n if (value && typeof HTMLElement === 'function' && value instanceof HTMLElement) {\n return inspectHTMLElement(value, options);\n }\n if ('constructor' in value) {\n // If it is a class, inspect it like an object but add the constructor name\n if (value.constructor !== Object) {\n return inspectClass(value, options);\n }\n // If it is an object with an anonymous prototype, display it as an object.\n return inspectObject(value, options);\n }\n // last chance to check if it's an object\n if (value === Object(value)) {\n return inspectObject(value, options);\n }\n // We have run out of options! Just stringify the value\n return options.stylize(String(value), type);\n}\nexport function registerConstructor(constructor, inspector) {\n if (constructorMap.has(constructor)) {\n return false;\n }\n constructorMap.set(constructor, inspector);\n return true;\n}\nexport function registerStringTag(stringTag, inspector) {\n if (stringTag in stringTagMap) {\n return false;\n }\n stringTagMap[stringTag] = inspector;\n return true;\n}\nexport const custom = chaiInspect;\nexport default inspect;\n","import { plugins, format as format$1 } from '@vitest/pretty-format';\nimport * as loupe from 'loupe';\n\nconst { AsymmetricMatcher, DOMCollection, DOMElement, Immutable, ReactElement, ReactTestComponent } = plugins;\nconst PLUGINS = [\n\tReactTestComponent,\n\tReactElement,\n\tDOMElement,\n\tDOMCollection,\n\tImmutable,\n\tAsymmetricMatcher\n];\nfunction stringify(object, maxDepth = 10, { maxLength,...options } = {}) {\n\tconst MAX_LENGTH = maxLength ?? 1e4;\n\tlet result;\n\ttry {\n\t\tresult = format$1(object, {\n\t\t\tmaxDepth,\n\t\t\tescapeString: false,\n\t\t\tplugins: PLUGINS,\n\t\t\t...options\n\t\t});\n\t} catch {\n\t\tresult = format$1(object, {\n\t\t\tcallToJSON: false,\n\t\t\tmaxDepth,\n\t\t\tescapeString: false,\n\t\t\tplugins: PLUGINS,\n\t\t\t...options\n\t\t});\n\t}\n\t// Prevents infinite loop https://github.com/vitest-dev/vitest/issues/7249\n\treturn result.length >= MAX_LENGTH && maxDepth > 1 ? stringify(object, Math.floor(Math.min(maxDepth, Number.MAX_SAFE_INTEGER) / 2), {\n\t\tmaxLength,\n\t\t...options\n\t}) : result;\n}\nconst formatRegExp = /%[sdjifoOc%]/g;\nfunction format(...args) {\n\tif (typeof args[0] !== \"string\") {\n\t\tconst objects = [];\n\t\tfor (let i = 0; i < args.length; i++) {\n\t\t\tobjects.push(inspect(args[i], {\n\t\t\t\tdepth: 0,\n\t\t\t\tcolors: false\n\t\t\t}));\n\t\t}\n\t\treturn objects.join(\" \");\n\t}\n\tconst len = args.length;\n\tlet i = 1;\n\tconst template = args[0];\n\tlet str = String(template).replace(formatRegExp, (x) => {\n\t\tif (x === \"%%\") {\n\t\t\treturn \"%\";\n\t\t}\n\t\tif (i >= len) {\n\t\t\treturn x;\n\t\t}\n\t\tswitch (x) {\n\t\t\tcase \"%s\": {\n\t\t\t\tconst value = args[i++];\n\t\t\t\tif (typeof value === \"bigint\") {\n\t\t\t\t\treturn `${value.toString()}n`;\n\t\t\t\t}\n\t\t\t\tif (typeof value === \"number\" && value === 0 && 1 / value < 0) {\n\t\t\t\t\treturn \"-0\";\n\t\t\t\t}\n\t\t\t\tif (typeof value === \"object\" && value !== null) {\n\t\t\t\t\tif (typeof value.toString === \"function\" && value.toString !== Object.prototype.toString) {\n\t\t\t\t\t\treturn value.toString();\n\t\t\t\t\t}\n\t\t\t\t\treturn inspect(value, {\n\t\t\t\t\t\tdepth: 0,\n\t\t\t\t\t\tcolors: false\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\treturn String(value);\n\t\t\t}\n\t\t\tcase \"%d\": {\n\t\t\t\tconst value = args[i++];\n\t\t\t\tif (typeof value === \"bigint\") {\n\t\t\t\t\treturn `${value.toString()}n`;\n\t\t\t\t}\n\t\t\t\treturn Number(value).toString();\n\t\t\t}\n\t\t\tcase \"%i\": {\n\t\t\t\tconst value = args[i++];\n\t\t\t\tif (typeof value === \"bigint\") {\n\t\t\t\t\treturn `${value.toString()}n`;\n\t\t\t\t}\n\t\t\t\treturn Number.parseInt(String(value)).toString();\n\t\t\t}\n\t\t\tcase \"%f\": return Number.parseFloat(String(args[i++])).toString();\n\t\t\tcase \"%o\": return inspect(args[i++], {\n\t\t\t\tshowHidden: true,\n\t\t\t\tshowProxy: true\n\t\t\t});\n\t\t\tcase \"%O\": return inspect(args[i++]);\n\t\t\tcase \"%c\": {\n\t\t\t\ti++;\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t\tcase \"%j\": try {\n\t\t\t\treturn JSON.stringify(args[i++]);\n\t\t\t} catch (err) {\n\t\t\t\tconst m = err.message;\n\t\t\t\tif (m.includes(\"circular structure\") || m.includes(\"cyclic structures\") || m.includes(\"cyclic object\")) {\n\t\t\t\t\treturn \"[Circular]\";\n\t\t\t\t}\n\t\t\t\tthrow err;\n\t\t\t}\n\t\t\tdefault: return x;\n\t\t}\n\t});\n\tfor (let x = args[i]; i < len; x = args[++i]) {\n\t\tif (x === null || typeof x !== \"object\") {\n\t\t\tstr += ` ${x}`;\n\t\t} else {\n\t\t\tstr += ` ${inspect(x)}`;\n\t\t}\n\t}\n\treturn str;\n}\nfunction inspect(obj, options = {}) {\n\tif (options.truncate === 0) {\n\t\toptions.truncate = Number.POSITIVE_INFINITY;\n\t}\n\treturn loupe.inspect(obj, options);\n}\nfunction objDisplay(obj, options = {}) {\n\tif (typeof options.truncate === \"undefined\") {\n\t\toptions.truncate = 40;\n\t}\n\tconst str = inspect(obj, options);\n\tconst type = Object.prototype.toString.call(obj);\n\tif (options.truncate && str.length >= options.truncate) {\n\t\tif (type === \"[object Function]\") {\n\t\t\tconst fn = obj;\n\t\t\treturn !fn.name ? \"[Function]\" : `[Function: ${fn.name}]`;\n\t\t} else if (type === \"[object Array]\") {\n\t\t\treturn `[ Array(${obj.length}) ]`;\n\t\t} else if (type === \"[object Object]\") {\n\t\t\tconst keys = Object.keys(obj);\n\t\t\tconst kstr = keys.length > 2 ? `${keys.splice(0, 2).join(\", \")}, ...` : keys.join(\", \");\n\t\t\treturn `{ Object (${kstr}) }`;\n\t\t} else {\n\t\t\treturn str;\n\t\t}\n\t}\n\treturn str;\n}\n\nfunction getDefaultExportFromCjs (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nexport { format as f, getDefaultExportFromCjs as g, inspect as i, objDisplay as o, stringify as s };\n","/**\n* Get original stacktrace without source map support the most performant way.\n* - Create only 1 stack frame.\n* - Rewrite prepareStackTrace to bypass \"support-stack-trace\" (usually takes ~250ms).\n*/\nfunction createSimpleStackTrace(options) {\n\tconst { message = \"$$stack trace error\", stackTraceLimit = 1 } = options || {};\n\tconst limit = Error.stackTraceLimit;\n\tconst prepareStackTrace = Error.prepareStackTrace;\n\tError.stackTraceLimit = stackTraceLimit;\n\tError.prepareStackTrace = (e) => e.stack;\n\tconst err = new Error(message);\n\tconst stackTrace = err.stack || \"\";\n\tError.prepareStackTrace = prepareStackTrace;\n\tError.stackTraceLimit = limit;\n\treturn stackTrace;\n}\nfunction notNullish(v) {\n\treturn v != null;\n}\nfunction assertTypes(value, name, types) {\n\tconst receivedType = typeof value;\n\tconst pass = types.includes(receivedType);\n\tif (!pass) {\n\t\tthrow new TypeError(`${name} value must be ${types.join(\" or \")}, received \"${receivedType}\"`);\n\t}\n}\nfunction isPrimitive(value) {\n\treturn value === null || typeof value !== \"function\" && typeof value !== \"object\";\n}\nfunction slash(path) {\n\treturn path.replace(/\\\\/g, \"/\");\n}\n// convert RegExp.toString to RegExp\nfunction parseRegexp(input) {\n\t// Parse input\n\t// eslint-disable-next-line regexp/no-misleading-capturing-group\n\tconst m = input.match(/(\\/?)(.+)\\1([a-z]*)/i);\n\t// match nothing\n\tif (!m) {\n\t\treturn /$^/;\n\t}\n\t// Invalid flags\n\t// eslint-disable-next-line regexp/optimal-quantifier-concatenation\n\tif (m[3] && !/^(?!.*?(.).*?\\1)[gmixXsuUAJ]+$/.test(m[3])) {\n\t\treturn new RegExp(input);\n\t}\n\t// Create the regular expression\n\treturn new RegExp(m[2], m[3]);\n}\nfunction toArray(array) {\n\tif (array === null || array === undefined) {\n\t\tarray = [];\n\t}\n\tif (Array.isArray(array)) {\n\t\treturn array;\n\t}\n\treturn [array];\n}\nfunction isObject(item) {\n\treturn item != null && typeof item === \"object\" && !Array.isArray(item);\n}\nfunction isFinalObj(obj) {\n\treturn obj === Object.prototype || obj === Function.prototype || obj === RegExp.prototype;\n}\nfunction getType(value) {\n\treturn Object.prototype.toString.apply(value).slice(8, -1);\n}\nfunction collectOwnProperties(obj, collector) {\n\tconst collect = typeof collector === \"function\" ? collector : (key) => collector.add(key);\n\tObject.getOwnPropertyNames(obj).forEach(collect);\n\tObject.getOwnPropertySymbols(obj).forEach(collect);\n}\nfunction getOwnProperties(obj) {\n\tconst ownProps = new Set();\n\tif (isFinalObj(obj)) {\n\t\treturn [];\n\t}\n\tcollectOwnProperties(obj, ownProps);\n\treturn Array.from(ownProps);\n}\nconst defaultCloneOptions = { forceWritable: false };\nfunction deepClone(val, options = defaultCloneOptions) {\n\tconst seen = new WeakMap();\n\treturn clone(val, seen, options);\n}\nfunction clone(val, seen, options = defaultCloneOptions) {\n\tlet k, out;\n\tif (seen.has(val)) {\n\t\treturn seen.get(val);\n\t}\n\tif (Array.isArray(val)) {\n\t\tout = Array.from({ length: k = val.length });\n\t\tseen.set(val, out);\n\t\twhile (k--) {\n\t\t\tout[k] = clone(val[k], seen, options);\n\t\t}\n\t\treturn out;\n\t}\n\tif (Object.prototype.toString.call(val) === \"[object Object]\") {\n\t\tout = Object.create(Object.getPrototypeOf(val));\n\t\tseen.set(val, out);\n\t\t// we don't need properties from prototype\n\t\tconst props = getOwnProperties(val);\n\t\tfor (const k of props) {\n\t\t\tconst descriptor = Object.getOwnPropertyDescriptor(val, k);\n\t\t\tif (!descriptor) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst cloned = clone(val[k], seen, options);\n\t\t\tif (options.forceWritable) {\n\t\t\t\tObject.defineProperty(out, k, {\n\t\t\t\t\tenumerable: descriptor.enumerable,\n\t\t\t\t\tconfigurable: true,\n\t\t\t\t\twritable: true,\n\t\t\t\t\tvalue: cloned\n\t\t\t\t});\n\t\t\t} else if (\"get\" in descriptor) {\n\t\t\t\tObject.defineProperty(out, k, {\n\t\t\t\t\t...descriptor,\n\t\t\t\t\tget() {\n\t\t\t\t\t\treturn cloned;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tObject.defineProperty(out, k, {\n\t\t\t\t\t...descriptor,\n\t\t\t\t\tvalue: cloned\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t\treturn out;\n\t}\n\treturn val;\n}\nfunction noop() {}\nfunction objectAttr(source, path, defaultValue = undefined) {\n\t// a[3].b -> a.3.b\n\tconst paths = path.replace(/\\[(\\d+)\\]/g, \".$1\").split(\".\");\n\tlet result = source;\n\tfor (const p of paths) {\n\t\tresult = new Object(result)[p];\n\t\tif (result === undefined) {\n\t\t\treturn defaultValue;\n\t\t}\n\t}\n\treturn result;\n}\nfunction createDefer() {\n\tlet resolve = null;\n\tlet reject = null;\n\tconst p = new Promise((_resolve, _reject) => {\n\t\tresolve = _resolve;\n\t\treject = _reject;\n\t});\n\tp.resolve = resolve;\n\tp.reject = reject;\n\treturn p;\n}\n/**\n* If code starts with a function call, will return its last index, respecting arguments.\n* This will return 25 - last ending character of toMatch \")\"\n* Also works with callbacks\n* ```\n* toMatch({ test: '123' });\n* toBeAliased('123')\n* ```\n*/\nfunction getCallLastIndex(code) {\n\tlet charIndex = -1;\n\tlet inString = null;\n\tlet startedBracers = 0;\n\tlet endedBracers = 0;\n\tlet beforeChar = null;\n\twhile (charIndex <= code.length) {\n\t\tbeforeChar = code[charIndex];\n\t\tcharIndex++;\n\t\tconst char = code[charIndex];\n\t\tconst isCharString = char === \"\\\"\" || char === \"'\" || char === \"`\";\n\t\tif (isCharString && beforeChar !== \"\\\\\") {\n\t\t\tif (inString === char) {\n\t\t\t\tinString = null;\n\t\t\t} else if (!inString) {\n\t\t\t\tinString = char;\n\t\t\t}\n\t\t}\n\t\tif (!inString) {\n\t\t\tif (char === \"(\") {\n\t\t\t\tstartedBracers++;\n\t\t\t}\n\t\t\tif (char === \")\") {\n\t\t\t\tendedBracers++;\n\t\t\t}\n\t\t}\n\t\tif (startedBracers && endedBracers && startedBracers === endedBracers) {\n\t\t\treturn charIndex;\n\t\t}\n\t}\n\treturn null;\n}\nfunction isNegativeNaN(val) {\n\tif (!Number.isNaN(val)) {\n\t\treturn false;\n\t}\n\tconst f64 = new Float64Array(1);\n\tf64[0] = val;\n\tconst u32 = new Uint32Array(f64.buffer);\n\tconst isNegative = u32[1] >>> 31 === 1;\n\treturn isNegative;\n}\nfunction toString(v) {\n\treturn Object.prototype.toString.call(v);\n}\nfunction isPlainObject(val) {\n\treturn toString(val) === \"[object Object]\" && (!val.constructor || val.constructor.name === \"Object\");\n}\nfunction isMergeableObject(item) {\n\treturn isPlainObject(item) && !Array.isArray(item);\n}\n/**\n* Deep merge :P\n*\n* Will merge objects only if they are plain\n*\n* Do not merge types - it is very expensive and usually it's better to case a type here\n*/\nfunction deepMerge(target, ...sources) {\n\tif (!sources.length) {\n\t\treturn target;\n\t}\n\tconst source = sources.shift();\n\tif (source === undefined) {\n\t\treturn target;\n\t}\n\tif (isMergeableObject(target) && isMergeableObject(source)) {\n\t\tObject.keys(source).forEach((key) => {\n\t\t\tconst _source = source;\n\t\t\tif (isMergeableObject(_source[key])) {\n\t\t\t\tif (!target[key]) {\n\t\t\t\t\ttarget[key] = {};\n\t\t\t\t}\n\t\t\t\tdeepMerge(target[key], _source[key]);\n\t\t\t} else {\n\t\t\t\ttarget[key] = _source[key];\n\t\t\t}\n\t\t});\n\t}\n\treturn deepMerge(target, ...sources);\n}\n\nexport { assertTypes, clone, createDefer, createSimpleStackTrace, deepClone, deepMerge, getCallLastIndex, getOwnProperties, getType, isNegativeNaN, isObject, isPrimitive, noop, notNullish, objectAttr, parseRegexp, slash, toArray };\n","import { g as getDefaultExportFromCjs } from './chunk-_commonjsHelpers.js';\nexport { f as format, i as inspect, o as objDisplay, s as stringify } from './chunk-_commonjsHelpers.js';\nexport { assertTypes, clone, createDefer, createSimpleStackTrace, deepClone, deepMerge, getCallLastIndex, getOwnProperties, getType, isNegativeNaN, isObject, isPrimitive, noop, notNullish, objectAttr, parseRegexp, slash, toArray } from './helpers.js';\nimport c from 'tinyrainbow';\nimport '@vitest/pretty-format';\nimport 'loupe';\n\nvar jsTokens_1;\nvar hasRequiredJsTokens;\n\nfunction requireJsTokens () {\n\tif (hasRequiredJsTokens) return jsTokens_1;\n\thasRequiredJsTokens = 1;\n\t// Copyright 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Simon Lydell\n\t// License: MIT.\n\tvar Identifier, JSXIdentifier, JSXPunctuator, JSXString, JSXText, KeywordsWithExpressionAfter, KeywordsWithNoLineTerminatorAfter, LineTerminatorSequence, MultiLineComment, Newline, NumericLiteral, Punctuator, RegularExpressionLiteral, SingleLineComment, StringLiteral, Template, TokensNotPrecedingObjectLiteral, TokensPrecedingExpression, WhiteSpace;\n\tRegularExpressionLiteral = /\\/(?![*\\/])(?:\\[(?:(?![\\]\\\\]).|\\\\.)*\\]|(?![\\/\\\\]).|\\\\.)*(\\/[$_\\u200C\\u200D\\p{ID_Continue}]*|\\\\)?/yu;\n\tPunctuator = /--|\\+\\+|=>|\\.{3}|\\??\\.(?!\\d)|(?:&&|\\|\\||\\?\\?|[+\\-%&|^]|\\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\\/(?![\\/*]))=?|[?~,:;[\\](){}]/y;\n\tIdentifier = /(\\x23?)(?=[$_\\p{ID_Start}\\\\])(?:[$_\\u200C\\u200D\\p{ID_Continue}]|\\\\u[\\da-fA-F]{4}|\\\\u\\{[\\da-fA-F]+\\})+/yu;\n\tStringLiteral = /(['\"])(?:(?!\\1)[^\\\\\\n\\r]|\\\\(?:\\r\\n|[^]))*(\\1)?/y;\n\tNumericLiteral = /(?:0[xX][\\da-fA-F](?:_?[\\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\\d)*n|(?:(?:0(?!\\d)|0\\d*[89]\\d*|[1-9](?:_?\\d)*)(?:\\.(?:\\d(?:_?\\d)*)?)?|\\.\\d(?:_?\\d)*)(?:[eE][+-]?\\d(?:_?\\d)*)?|0[0-7]+/y;\n\tTemplate = /[`}](?:[^`\\\\$]|\\\\[^]|\\$(?!\\{))*(`|\\$\\{)?/y;\n\tWhiteSpace = /[\\t\\v\\f\\ufeff\\p{Zs}]+/yu;\n\tLineTerminatorSequence = /\\r?\\n|[\\r\\u2028\\u2029]/y;\n\tMultiLineComment = /\\/\\*(?:[^*]|\\*(?!\\/))*(\\*\\/)?/y;\n\tSingleLineComment = /\\/\\/.*/y;\n\tJSXPunctuator = /[<>.:={}]|\\/(?![\\/*])/y;\n\tJSXIdentifier = /[$_\\p{ID_Start}][$_\\u200C\\u200D\\p{ID_Continue}-]*/yu;\n\tJSXString = /(['\"])(?:(?!\\1)[^])*(\\1)?/y;\n\tJSXText = /[^<>{}]+/y;\n\tTokensPrecedingExpression = /^(?:[\\/+-]|\\.{3}|\\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;\n\tTokensNotPrecedingObjectLiteral = /^(?:=>|[;\\]){}]|else|\\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;\n\tKeywordsWithExpressionAfter = /^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;\n\tKeywordsWithNoLineTerminatorAfter = /^(?:return|throw|yield)$/;\n\tNewline = RegExp(LineTerminatorSequence.source);\n\tjsTokens_1 = function*(input, {jsx = false} = {}) {\n\t\tvar braces, firstCodePoint, isExpression, lastIndex, lastSignificantToken, length, match, mode, nextLastIndex, nextLastSignificantToken, parenNesting, postfixIncDec, punctuator, stack;\n\t\t({length} = input);\n\t\tlastIndex = 0;\n\t\tlastSignificantToken = \"\";\n\t\tstack = [\n\t\t\t{tag: \"JS\"}\n\t\t];\n\t\tbraces = [];\n\t\tparenNesting = 0;\n\t\tpostfixIncDec = false;\n\t\twhile (lastIndex < length) {\n\t\t\tmode = stack[stack.length - 1];\n\t\t\tswitch (mode.tag) {\n\t\t\t\tcase \"JS\":\n\t\t\t\tcase \"JSNonExpressionParen\":\n\t\t\t\tcase \"InterpolationInTemplate\":\n\t\t\t\tcase \"InterpolationInJSX\":\n\t\t\t\t\tif (input[lastIndex] === \"/\" && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken))) {\n\t\t\t\t\t\tRegularExpressionLiteral.lastIndex = lastIndex;\n\t\t\t\t\t\tif (match = RegularExpressionLiteral.exec(input)) {\n\t\t\t\t\t\t\tlastIndex = RegularExpressionLiteral.lastIndex;\n\t\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\ttype: \"RegularExpressionLiteral\",\n\t\t\t\t\t\t\t\tvalue: match[0],\n\t\t\t\t\t\t\t\tclosed: match[1] !== void 0 && match[1] !== \"\\\\\"\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tPunctuator.lastIndex = lastIndex;\n\t\t\t\t\tif (match = Punctuator.exec(input)) {\n\t\t\t\t\t\tpunctuator = match[0];\n\t\t\t\t\t\tnextLastIndex = Punctuator.lastIndex;\n\t\t\t\t\t\tnextLastSignificantToken = punctuator;\n\t\t\t\t\t\tswitch (punctuator) {\n\t\t\t\t\t\t\tcase \"(\":\n\t\t\t\t\t\t\t\tif (lastSignificantToken === \"?NonExpressionParenKeyword\") {\n\t\t\t\t\t\t\t\t\tstack.push({\n\t\t\t\t\t\t\t\t\t\ttag: \"JSNonExpressionParen\",\n\t\t\t\t\t\t\t\t\t\tnesting: parenNesting\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tparenNesting++;\n\t\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \")\":\n\t\t\t\t\t\t\t\tparenNesting--;\n\t\t\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\t\t\tif (mode.tag === \"JSNonExpressionParen\" && parenNesting === mode.nesting) {\n\t\t\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\t\t\tnextLastSignificantToken = \"?NonExpressionParenEnd\";\n\t\t\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"{\":\n\t\t\t\t\t\t\t\tPunctuator.lastIndex = 0;\n\t\t\t\t\t\t\t\tisExpression = !TokensNotPrecedingObjectLiteral.test(lastSignificantToken) && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken));\n\t\t\t\t\t\t\t\tbraces.push(isExpression);\n\t\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"}\":\n\t\t\t\t\t\t\t\tswitch (mode.tag) {\n\t\t\t\t\t\t\t\t\tcase \"InterpolationInTemplate\":\n\t\t\t\t\t\t\t\t\t\tif (braces.length === mode.nesting) {\n\t\t\t\t\t\t\t\t\t\t\tTemplate.lastIndex = lastIndex;\n\t\t\t\t\t\t\t\t\t\t\tmatch = Template.exec(input);\n\t\t\t\t\t\t\t\t\t\t\tlastIndex = Template.lastIndex;\n\t\t\t\t\t\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\t\t\t\t\t\tif (match[1] === \"${\") {\n\t\t\t\t\t\t\t\t\t\t\t\tlastSignificantToken = \"?InterpolationInTemplate\";\n\t\t\t\t\t\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: \"TemplateMiddle\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: \"TemplateTail\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: match[0],\n\t\t\t\t\t\t\t\t\t\t\t\t\tclosed: match[1] === \"`\"\n\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase \"InterpolationInJSX\":\n\t\t\t\t\t\t\t\t\t\tif (braces.length === mode.nesting) {\n\t\t\t\t\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\t\t\t\t\tlastIndex += 1;\n\t\t\t\t\t\t\t\t\t\t\tlastSignificantToken = \"}\";\n\t\t\t\t\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\t\t\t\t\ttype: \"JSXPunctuator\",\n\t\t\t\t\t\t\t\t\t\t\t\tvalue: \"}\"\n\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tpostfixIncDec = braces.pop();\n\t\t\t\t\t\t\t\tnextLastSignificantToken = postfixIncDec ? \"?ExpressionBraceEnd\" : \"}\";\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"]\":\n\t\t\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"++\":\n\t\t\t\t\t\t\tcase \"--\":\n\t\t\t\t\t\t\t\tnextLastSignificantToken = postfixIncDec ? \"?PostfixIncDec\" : \"?UnaryIncDec\";\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"<\":\n\t\t\t\t\t\t\t\tif (jsx && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken))) {\n\t\t\t\t\t\t\t\t\tstack.push({tag: \"JSXTag\"});\n\t\t\t\t\t\t\t\t\tlastIndex += 1;\n\t\t\t\t\t\t\t\t\tlastSignificantToken = \"<\";\n\t\t\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\t\t\ttype: \"JSXPunctuator\",\n\t\t\t\t\t\t\t\t\t\tvalue: punctuator\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlastIndex = nextLastIndex;\n\t\t\t\t\t\tlastSignificantToken = nextLastSignificantToken;\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"Punctuator\",\n\t\t\t\t\t\t\tvalue: punctuator\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tIdentifier.lastIndex = lastIndex;\n\t\t\t\t\tif (match = Identifier.exec(input)) {\n\t\t\t\t\t\tlastIndex = Identifier.lastIndex;\n\t\t\t\t\t\tnextLastSignificantToken = match[0];\n\t\t\t\t\t\tswitch (match[0]) {\n\t\t\t\t\t\t\tcase \"for\":\n\t\t\t\t\t\t\tcase \"if\":\n\t\t\t\t\t\t\tcase \"while\":\n\t\t\t\t\t\t\tcase \"with\":\n\t\t\t\t\t\t\t\tif (lastSignificantToken !== \".\" && lastSignificantToken !== \"?.\") {\n\t\t\t\t\t\t\t\t\tnextLastSignificantToken = \"?NonExpressionParenKeyword\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlastSignificantToken = nextLastSignificantToken;\n\t\t\t\t\t\tpostfixIncDec = !KeywordsWithExpressionAfter.test(match[0]);\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: match[1] === \"#\" ? \"PrivateIdentifier\" : \"IdentifierName\",\n\t\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tStringLiteral.lastIndex = lastIndex;\n\t\t\t\t\tif (match = StringLiteral.exec(input)) {\n\t\t\t\t\t\tlastIndex = StringLiteral.lastIndex;\n\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"StringLiteral\",\n\t\t\t\t\t\t\tvalue: match[0],\n\t\t\t\t\t\t\tclosed: match[2] !== void 0\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tNumericLiteral.lastIndex = lastIndex;\n\t\t\t\t\tif (match = NumericLiteral.exec(input)) {\n\t\t\t\t\t\tlastIndex = NumericLiteral.lastIndex;\n\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"NumericLiteral\",\n\t\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tTemplate.lastIndex = lastIndex;\n\t\t\t\t\tif (match = Template.exec(input)) {\n\t\t\t\t\t\tlastIndex = Template.lastIndex;\n\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\tif (match[1] === \"${\") {\n\t\t\t\t\t\t\tlastSignificantToken = \"?InterpolationInTemplate\";\n\t\t\t\t\t\t\tstack.push({\n\t\t\t\t\t\t\t\ttag: \"InterpolationInTemplate\",\n\t\t\t\t\t\t\t\tnesting: braces.length\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\ttype: \"TemplateHead\",\n\t\t\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\ttype: \"NoSubstitutionTemplate\",\n\t\t\t\t\t\t\t\tvalue: match[0],\n\t\t\t\t\t\t\t\tclosed: match[1] === \"`\"\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"JSXTag\":\n\t\t\t\tcase \"JSXTagEnd\":\n\t\t\t\t\tJSXPunctuator.lastIndex = lastIndex;\n\t\t\t\t\tif (match = JSXPunctuator.exec(input)) {\n\t\t\t\t\t\tlastIndex = JSXPunctuator.lastIndex;\n\t\t\t\t\t\tnextLastSignificantToken = match[0];\n\t\t\t\t\t\tswitch (match[0]) {\n\t\t\t\t\t\t\tcase \"<\":\n\t\t\t\t\t\t\t\tstack.push({tag: \"JSXTag\"});\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \">\":\n\t\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\t\tif (lastSignificantToken === \"/\" || mode.tag === \"JSXTagEnd\") {\n\t\t\t\t\t\t\t\t\tnextLastSignificantToken = \"?JSX\";\n\t\t\t\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tstack.push({tag: \"JSXChildren\"});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"{\":\n\t\t\t\t\t\t\t\tstack.push({\n\t\t\t\t\t\t\t\t\ttag: \"InterpolationInJSX\",\n\t\t\t\t\t\t\t\t\tnesting: braces.length\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tnextLastSignificantToken = \"?InterpolationInJSX\";\n\t\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"/\":\n\t\t\t\t\t\t\t\tif (lastSignificantToken === \"<\") {\n\t\t\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\t\t\tif (stack[stack.length - 1].tag === \"JSXChildren\") {\n\t\t\t\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tstack.push({tag: \"JSXTagEnd\"});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlastSignificantToken = nextLastSignificantToken;\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"JSXPunctuator\",\n\t\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tJSXIdentifier.lastIndex = lastIndex;\n\t\t\t\t\tif (match = JSXIdentifier.exec(input)) {\n\t\t\t\t\t\tlastIndex = JSXIdentifier.lastIndex;\n\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"JSXIdentifier\",\n\t\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tJSXString.lastIndex = lastIndex;\n\t\t\t\t\tif (match = JSXString.exec(input)) {\n\t\t\t\t\t\tlastIndex = JSXString.lastIndex;\n\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"JSXString\",\n\t\t\t\t\t\t\tvalue: match[0],\n\t\t\t\t\t\t\tclosed: match[2] !== void 0\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"JSXChildren\":\n\t\t\t\t\tJSXText.lastIndex = lastIndex;\n\t\t\t\t\tif (match = JSXText.exec(input)) {\n\t\t\t\t\t\tlastIndex = JSXText.lastIndex;\n\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"JSXText\",\n\t\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tswitch (input[lastIndex]) {\n\t\t\t\t\t\tcase \"<\":\n\t\t\t\t\t\t\tstack.push({tag: \"JSXTag\"});\n\t\t\t\t\t\t\tlastIndex++;\n\t\t\t\t\t\t\tlastSignificantToken = \"<\";\n\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\ttype: \"JSXPunctuator\",\n\t\t\t\t\t\t\t\tvalue: \"<\"\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\tcase \"{\":\n\t\t\t\t\t\t\tstack.push({\n\t\t\t\t\t\t\t\ttag: \"InterpolationInJSX\",\n\t\t\t\t\t\t\t\tnesting: braces.length\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tlastIndex++;\n\t\t\t\t\t\t\tlastSignificantToken = \"?InterpolationInJSX\";\n\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\ttype: \"JSXPunctuator\",\n\t\t\t\t\t\t\t\tvalue: \"{\"\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tWhiteSpace.lastIndex = lastIndex;\n\t\t\tif (match = WhiteSpace.exec(input)) {\n\t\t\t\tlastIndex = WhiteSpace.lastIndex;\n\t\t\t\tyield ({\n\t\t\t\t\ttype: \"WhiteSpace\",\n\t\t\t\t\tvalue: match[0]\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tLineTerminatorSequence.lastIndex = lastIndex;\n\t\t\tif (match = LineTerminatorSequence.exec(input)) {\n\t\t\t\tlastIndex = LineTerminatorSequence.lastIndex;\n\t\t\t\tpostfixIncDec = false;\n\t\t\t\tif (KeywordsWithNoLineTerminatorAfter.test(lastSignificantToken)) {\n\t\t\t\t\tlastSignificantToken = \"?NoLineTerminatorHere\";\n\t\t\t\t}\n\t\t\t\tyield ({\n\t\t\t\t\ttype: \"LineTerminatorSequence\",\n\t\t\t\t\tvalue: match[0]\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tMultiLineComment.lastIndex = lastIndex;\n\t\t\tif (match = MultiLineComment.exec(input)) {\n\t\t\t\tlastIndex = MultiLineComment.lastIndex;\n\t\t\t\tif (Newline.test(match[0])) {\n\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\tif (KeywordsWithNoLineTerminatorAfter.test(lastSignificantToken)) {\n\t\t\t\t\t\tlastSignificantToken = \"?NoLineTerminatorHere\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tyield ({\n\t\t\t\t\ttype: \"MultiLineComment\",\n\t\t\t\t\tvalue: match[0],\n\t\t\t\t\tclosed: match[1] !== void 0\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tSingleLineComment.lastIndex = lastIndex;\n\t\t\tif (match = SingleLineComment.exec(input)) {\n\t\t\t\tlastIndex = SingleLineComment.lastIndex;\n\t\t\t\tpostfixIncDec = false;\n\t\t\t\tyield ({\n\t\t\t\t\ttype: \"SingleLineComment\",\n\t\t\t\t\tvalue: match[0]\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tfirstCodePoint = String.fromCodePoint(input.codePointAt(lastIndex));\n\t\t\tlastIndex += firstCodePoint.length;\n\t\t\tlastSignificantToken = firstCodePoint;\n\t\t\tpostfixIncDec = false;\n\t\t\tyield ({\n\t\t\t\ttype: mode.tag.startsWith(\"JSX\") ? \"JSXInvalid\" : \"Invalid\",\n\t\t\t\tvalue: firstCodePoint\n\t\t\t});\n\t\t}\n\t\treturn void 0;\n\t};\n\treturn jsTokens_1;\n}\n\nvar jsTokensExports = requireJsTokens();\nvar jsTokens = /*@__PURE__*/getDefaultExportFromCjs(jsTokensExports);\n\n// src/index.ts\nvar reservedWords = {\n keyword: [\n \"break\",\n \"case\",\n \"catch\",\n \"continue\",\n \"debugger\",\n \"default\",\n \"do\",\n \"else\",\n \"finally\",\n \"for\",\n \"function\",\n \"if\",\n \"return\",\n \"switch\",\n \"throw\",\n \"try\",\n \"var\",\n \"const\",\n \"while\",\n \"with\",\n \"new\",\n \"this\",\n \"super\",\n \"class\",\n \"extends\",\n \"export\",\n \"import\",\n \"null\",\n \"true\",\n \"false\",\n \"in\",\n \"instanceof\",\n \"typeof\",\n \"void\",\n \"delete\"\n ],\n strict: [\n \"implements\",\n \"interface\",\n \"let\",\n \"package\",\n \"private\",\n \"protected\",\n \"public\",\n \"static\",\n \"yield\"\n ]\n}, keywords = new Set(reservedWords.keyword), reservedWordsStrictSet = new Set(reservedWords.strict), sometimesKeywords = /* @__PURE__ */ new Set([\"as\", \"async\", \"from\", \"get\", \"of\", \"set\"]);\nfunction isReservedWord(word) {\n return word === \"await\" || word === \"enum\";\n}\nfunction isStrictReservedWord(word) {\n return isReservedWord(word) || reservedWordsStrictSet.has(word);\n}\nfunction isKeyword(word) {\n return keywords.has(word);\n}\nvar BRACKET = /^[()[\\]{}]$/, getTokenType = function(token) {\n if (token.type === \"IdentifierName\") {\n if (isKeyword(token.value) || isStrictReservedWord(token.value) || sometimesKeywords.has(token.value))\n return \"Keyword\";\n if (token.value[0] && token.value[0] !== token.value[0].toLowerCase())\n return \"IdentifierCapitalized\";\n }\n return token.type === \"Punctuator\" && BRACKET.test(token.value) ? \"Bracket\" : token.type === \"Invalid\" && (token.value === \"@\" || token.value === \"#\") ? \"Punctuator\" : token.type;\n};\nfunction getCallableType(token) {\n if (token.type === \"IdentifierName\")\n return \"IdentifierCallable\";\n if (token.type === \"PrivateIdentifier\")\n return \"PrivateIdentifierCallable\";\n throw new Error(\"Not a callable token\");\n}\nvar colorize = (defs, type, value) => {\n let colorize2 = defs[type];\n return colorize2 ? colorize2(value) : value;\n}, highlightTokens = (defs, text, jsx) => {\n let highlighted = \"\", lastPotentialCallable = null, stackedHighlight = \"\";\n for (let token of jsTokens(text, { jsx })) {\n let type = getTokenType(token);\n if (type === \"IdentifierName\" || type === \"PrivateIdentifier\") {\n lastPotentialCallable && (highlighted += colorize(defs, getTokenType(lastPotentialCallable), lastPotentialCallable.value) + stackedHighlight, stackedHighlight = \"\"), lastPotentialCallable = token;\n continue;\n }\n if (lastPotentialCallable && (token.type === \"WhiteSpace\" || token.type === \"LineTerminatorSequence\" || token.type === \"Punctuator\" && (token.value === \"?.\" || token.value === \"!\"))) {\n stackedHighlight += colorize(defs, type, token.value);\n continue;\n }\n if (stackedHighlight && !lastPotentialCallable && (highlighted += stackedHighlight, stackedHighlight = \"\"), lastPotentialCallable) {\n let type2 = token.type === \"Punctuator\" && token.value === \"(\" ? getCallableType(lastPotentialCallable) : getTokenType(lastPotentialCallable);\n highlighted += colorize(defs, type2, lastPotentialCallable.value) + stackedHighlight, stackedHighlight = \"\", lastPotentialCallable = null;\n }\n highlighted += colorize(defs, type, token.value);\n }\n return highlighted;\n};\nfunction highlight$1(code, options = { jsx: false, colors: {} }) {\n return code && highlightTokens(options.colors || {}, code, options.jsx);\n}\n\nfunction getDefs(c) {\n\tconst Invalid = (text) => c.white(c.bgRed(c.bold(text)));\n\treturn {\n\t\tKeyword: c.magenta,\n\t\tIdentifierCapitalized: c.yellow,\n\t\tPunctuator: c.yellow,\n\t\tStringLiteral: c.green,\n\t\tNoSubstitutionTemplate: c.green,\n\t\tMultiLineComment: c.gray,\n\t\tSingleLineComment: c.gray,\n\t\tRegularExpressionLiteral: c.cyan,\n\t\tNumericLiteral: c.blue,\n\t\tTemplateHead: (text) => c.green(text.slice(0, text.length - 2)) + c.cyan(text.slice(-2)),\n\t\tTemplateTail: (text) => c.cyan(text.slice(0, 1)) + c.green(text.slice(1)),\n\t\tTemplateMiddle: (text) => c.cyan(text.slice(0, 1)) + c.green(text.slice(1, text.length - 2)) + c.cyan(text.slice(-2)),\n\t\tIdentifierCallable: c.blue,\n\t\tPrivateIdentifierCallable: (text) => `#${c.blue(text.slice(1))}`,\n\t\tInvalid,\n\t\tJSXString: c.green,\n\t\tJSXIdentifier: c.yellow,\n\t\tJSXInvalid: Invalid,\n\t\tJSXPunctuator: c.yellow\n\t};\n}\nfunction highlight(code, options = { jsx: false }) {\n\treturn highlight$1(code, {\n\t\tjsx: options.jsx,\n\t\tcolors: getDefs(options.colors || c)\n\t});\n}\n\n// port from nanoid\n// https://github.com/ai/nanoid\nconst urlAlphabet = \"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict\";\nfunction nanoid(size = 21) {\n\tlet id = \"\";\n\tlet i = size;\n\twhile (i--) {\n\t\tid += urlAlphabet[Math.random() * 64 | 0];\n\t}\n\treturn id;\n}\n\nconst lineSplitRE = /\\r?\\n/;\nfunction positionToOffset(source, lineNumber, columnNumber) {\n\tconst lines = source.split(lineSplitRE);\n\tconst nl = /\\r\\n/.test(source) ? 2 : 1;\n\tlet start = 0;\n\tif (lineNumber > lines.length) {\n\t\treturn source.length;\n\t}\n\tfor (let i = 0; i < lineNumber - 1; i++) {\n\t\tstart += lines[i].length + nl;\n\t}\n\treturn start + columnNumber;\n}\nfunction offsetToLineNumber(source, offset) {\n\tif (offset > source.length) {\n\t\tthrow new Error(`offset is longer than source length! offset ${offset} > length ${source.length}`);\n\t}\n\tconst lines = source.split(lineSplitRE);\n\tconst nl = /\\r\\n/.test(source) ? 2 : 1;\n\tlet counted = 0;\n\tlet line = 0;\n\tfor (; line < lines.length; line++) {\n\t\tconst lineLength = lines[line].length + nl;\n\t\tif (counted + lineLength >= offset) {\n\t\t\tbreak;\n\t\t}\n\t\tcounted += lineLength;\n\t}\n\treturn line + 1;\n}\n\nconst RealDate = Date;\nfunction random(seed) {\n\tconst x = Math.sin(seed++) * 1e4;\n\treturn x - Math.floor(x);\n}\nfunction shuffle(array, seed = RealDate.now()) {\n\tlet length = array.length;\n\twhile (length) {\n\t\tconst index = Math.floor(random(seed) * length--);\n\t\tconst previous = array[length];\n\t\tarray[length] = array[index];\n\t\tarray[index] = previous;\n\t\t++seed;\n\t}\n\treturn array;\n}\n\nconst SAFE_TIMERS_SYMBOL = Symbol(\"vitest:SAFE_TIMERS\");\nfunction getSafeTimers() {\n\tconst { setTimeout: safeSetTimeout, setInterval: safeSetInterval, clearInterval: safeClearInterval, clearTimeout: safeClearTimeout, setImmediate: safeSetImmediate, clearImmediate: safeClearImmediate, queueMicrotask: safeQueueMicrotask } = globalThis[SAFE_TIMERS_SYMBOL] || globalThis;\n\tconst { nextTick: safeNextTick } = globalThis[SAFE_TIMERS_SYMBOL] || globalThis.process || { nextTick: (cb) => cb() };\n\treturn {\n\t\tnextTick: safeNextTick,\n\t\tsetTimeout: safeSetTimeout,\n\t\tsetInterval: safeSetInterval,\n\t\tclearInterval: safeClearInterval,\n\t\tclearTimeout: safeClearTimeout,\n\t\tsetImmediate: safeSetImmediate,\n\t\tclearImmediate: safeClearImmediate,\n\t\tqueueMicrotask: safeQueueMicrotask\n\t};\n}\nfunction setSafeTimers() {\n\tconst { setTimeout: safeSetTimeout, setInterval: safeSetInterval, clearInterval: safeClearInterval, clearTimeout: safeClearTimeout, setImmediate: safeSetImmediate, clearImmediate: safeClearImmediate, queueMicrotask: safeQueueMicrotask } = globalThis;\n\tconst { nextTick: safeNextTick } = globalThis.process || { nextTick: (cb) => cb() };\n\tconst timers = {\n\t\tnextTick: safeNextTick,\n\t\tsetTimeout: safeSetTimeout,\n\t\tsetInterval: safeSetInterval,\n\t\tclearInterval: safeClearInterval,\n\t\tclearTimeout: safeClearTimeout,\n\t\tsetImmediate: safeSetImmediate,\n\t\tclearImmediate: safeClearImmediate,\n\t\tqueueMicrotask: safeQueueMicrotask\n\t};\n\tglobalThis[SAFE_TIMERS_SYMBOL] = timers;\n}\n\nexport { getSafeTimers, highlight, lineSplitRE, nanoid, offsetToLineNumber, positionToOffset, setSafeTimers, shuffle };\n","import { isPrimitive, notNullish } from './helpers.js';\n\nconst comma = ','.charCodeAt(0);\nconst chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\nconst intToChar = new Uint8Array(64); // 64 possible chars.\nconst charToInt = new Uint8Array(128); // z is 122 in ASCII\nfor (let i = 0; i < chars.length; i++) {\n const c = chars.charCodeAt(i);\n intToChar[i] = c;\n charToInt[c] = i;\n}\nfunction decodeInteger(reader, relative) {\n let value = 0;\n let shift = 0;\n let integer = 0;\n do {\n const c = reader.next();\n integer = charToInt[c];\n value |= (integer & 31) << shift;\n shift += 5;\n } while (integer & 32);\n const shouldNegate = value & 1;\n value >>>= 1;\n if (shouldNegate) {\n value = -2147483648 | -value;\n }\n return relative + value;\n}\nfunction hasMoreVlq(reader, max) {\n if (reader.pos >= max)\n return false;\n return reader.peek() !== comma;\n}\nclass StringReader {\n constructor(buffer) {\n this.pos = 0;\n this.buffer = buffer;\n }\n next() {\n return this.buffer.charCodeAt(this.pos++);\n }\n peek() {\n return this.buffer.charCodeAt(this.pos);\n }\n indexOf(char) {\n const { buffer, pos } = this;\n const idx = buffer.indexOf(char, pos);\n return idx === -1 ? buffer.length : idx;\n }\n}\n\nfunction decode(mappings) {\n const { length } = mappings;\n const reader = new StringReader(mappings);\n const decoded = [];\n let genColumn = 0;\n let sourcesIndex = 0;\n let sourceLine = 0;\n let sourceColumn = 0;\n let namesIndex = 0;\n do {\n const semi = reader.indexOf(';');\n const line = [];\n let sorted = true;\n let lastCol = 0;\n genColumn = 0;\n while (reader.pos < semi) {\n let seg;\n genColumn = decodeInteger(reader, genColumn);\n if (genColumn < lastCol)\n sorted = false;\n lastCol = genColumn;\n if (hasMoreVlq(reader, semi)) {\n sourcesIndex = decodeInteger(reader, sourcesIndex);\n sourceLine = decodeInteger(reader, sourceLine);\n sourceColumn = decodeInteger(reader, sourceColumn);\n if (hasMoreVlq(reader, semi)) {\n namesIndex = decodeInteger(reader, namesIndex);\n seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex];\n }\n else {\n seg = [genColumn, sourcesIndex, sourceLine, sourceColumn];\n }\n }\n else {\n seg = [genColumn];\n }\n line.push(seg);\n reader.pos++;\n }\n if (!sorted)\n sort(line);\n decoded.push(line);\n reader.pos = semi + 1;\n } while (reader.pos <= length);\n return decoded;\n}\nfunction sort(line) {\n line.sort(sortComparator$1);\n}\nfunction sortComparator$1(a, b) {\n return a[0] - b[0];\n}\n\n// Matches the scheme of a URL, eg \"http://\"\nconst schemeRegex = /^[\\w+.-]+:\\/\\//;\n/**\n * Matches the parts of a URL:\n * 1. Scheme, including \":\", guaranteed.\n * 2. User/password, including \"@\", optional.\n * 3. Host, guaranteed.\n * 4. Port, including \":\", optional.\n * 5. Path, including \"/\", optional.\n * 6. Query, including \"?\", optional.\n * 7. Hash, including \"#\", optional.\n */\nconst urlRegex = /^([\\w+.-]+:)\\/\\/([^@/#?]*@)?([^:/#?]*)(:\\d+)?(\\/[^#?]*)?(\\?[^#]*)?(#.*)?/;\n/**\n * File URLs are weird. They dont' need the regular `//` in the scheme, they may or may not start\n * with a leading `/`, they can have a domain (but only if they don't start with a Windows drive).\n *\n * 1. Host, optional.\n * 2. Path, which may include \"/\", guaranteed.\n * 3. Query, including \"?\", optional.\n * 4. Hash, including \"#\", optional.\n */\nconst fileRegex = /^file:(?:\\/\\/((?![a-z]:)[^/#?]*)?)?(\\/?[^#?]*)(\\?[^#]*)?(#.*)?/i;\nvar UrlType;\n(function (UrlType) {\n UrlType[UrlType[\"Empty\"] = 1] = \"Empty\";\n UrlType[UrlType[\"Hash\"] = 2] = \"Hash\";\n UrlType[UrlType[\"Query\"] = 3] = \"Query\";\n UrlType[UrlType[\"RelativePath\"] = 4] = \"RelativePath\";\n UrlType[UrlType[\"AbsolutePath\"] = 5] = \"AbsolutePath\";\n UrlType[UrlType[\"SchemeRelative\"] = 6] = \"SchemeRelative\";\n UrlType[UrlType[\"Absolute\"] = 7] = \"Absolute\";\n})(UrlType || (UrlType = {}));\nfunction isAbsoluteUrl(input) {\n return schemeRegex.test(input);\n}\nfunction isSchemeRelativeUrl(input) {\n return input.startsWith('//');\n}\nfunction isAbsolutePath(input) {\n return input.startsWith('/');\n}\nfunction isFileUrl(input) {\n return input.startsWith('file:');\n}\nfunction isRelative(input) {\n return /^[.?#]/.test(input);\n}\nfunction parseAbsoluteUrl(input) {\n const match = urlRegex.exec(input);\n return makeUrl(match[1], match[2] || '', match[3], match[4] || '', match[5] || '/', match[6] || '', match[7] || '');\n}\nfunction parseFileUrl(input) {\n const match = fileRegex.exec(input);\n const path = match[2];\n return makeUrl('file:', '', match[1] || '', '', isAbsolutePath(path) ? path : '/' + path, match[3] || '', match[4] || '');\n}\nfunction makeUrl(scheme, user, host, port, path, query, hash) {\n return {\n scheme,\n user,\n host,\n port,\n path,\n query,\n hash,\n type: UrlType.Absolute,\n };\n}\nfunction parseUrl(input) {\n if (isSchemeRelativeUrl(input)) {\n const url = parseAbsoluteUrl('http:' + input);\n url.scheme = '';\n url.type = UrlType.SchemeRelative;\n return url;\n }\n if (isAbsolutePath(input)) {\n const url = parseAbsoluteUrl('http://foo.com' + input);\n url.scheme = '';\n url.host = '';\n url.type = UrlType.AbsolutePath;\n return url;\n }\n if (isFileUrl(input))\n return parseFileUrl(input);\n if (isAbsoluteUrl(input))\n return parseAbsoluteUrl(input);\n const url = parseAbsoluteUrl('http://foo.com/' + input);\n url.scheme = '';\n url.host = '';\n url.type = input\n ? input.startsWith('?')\n ? UrlType.Query\n : input.startsWith('#')\n ? UrlType.Hash\n : UrlType.RelativePath\n : UrlType.Empty;\n return url;\n}\nfunction stripPathFilename(path) {\n // If a path ends with a parent directory \"..\", then it's a relative path with excess parent\n // paths. It's not a file, so we can't strip it.\n if (path.endsWith('/..'))\n return path;\n const index = path.lastIndexOf('/');\n return path.slice(0, index + 1);\n}\nfunction mergePaths(url, base) {\n normalizePath(base, base.type);\n // If the path is just a \"/\", then it was an empty path to begin with (remember, we're a relative\n // path).\n if (url.path === '/') {\n url.path = base.path;\n }\n else {\n // Resolution happens relative to the base path's directory, not the file.\n url.path = stripPathFilename(base.path) + url.path;\n }\n}\n/**\n * The path can have empty directories \"//\", unneeded parents \"foo/..\", or current directory\n * \"foo/.\". We need to normalize to a standard representation.\n */\nfunction normalizePath(url, type) {\n const rel = type <= UrlType.RelativePath;\n const pieces = url.path.split('/');\n // We need to preserve the first piece always, so that we output a leading slash. The item at\n // pieces[0] is an empty string.\n let pointer = 1;\n // Positive is the number of real directories we've output, used for popping a parent directory.\n // Eg, \"foo/bar/..\" will have a positive 2, and we can decrement to be left with just \"foo\".\n let positive = 0;\n // We need to keep a trailing slash if we encounter an empty directory (eg, splitting \"foo/\" will\n // generate `[\"foo\", \"\"]` pieces). And, if we pop a parent directory. But once we encounter a\n // real directory, we won't need to append, unless the other conditions happen again.\n let addTrailingSlash = false;\n for (let i = 1; i < pieces.length; i++) {\n const piece = pieces[i];\n // An empty directory, could be a trailing slash, or just a double \"//\" in the path.\n if (!piece) {\n addTrailingSlash = true;\n continue;\n }\n // If we encounter a real directory, then we don't need to append anymore.\n addTrailingSlash = false;\n // A current directory, which we can always drop.\n if (piece === '.')\n continue;\n // A parent directory, we need to see if there are any real directories we can pop. Else, we\n // have an excess of parents, and we'll need to keep the \"..\".\n if (piece === '..') {\n if (positive) {\n addTrailingSlash = true;\n positive--;\n pointer--;\n }\n else if (rel) {\n // If we're in a relativePath, then we need to keep the excess parents. Else, in an absolute\n // URL, protocol relative URL, or an absolute path, we don't need to keep excess.\n pieces[pointer++] = piece;\n }\n continue;\n }\n // We've encountered a real directory. Move it to the next insertion pointer, which accounts for\n // any popped or dropped directories.\n pieces[pointer++] = piece;\n positive++;\n }\n let path = '';\n for (let i = 1; i < pointer; i++) {\n path += '/' + pieces[i];\n }\n if (!path || (addTrailingSlash && !path.endsWith('/..'))) {\n path += '/';\n }\n url.path = path;\n}\n/**\n * Attempts to resolve `input` URL/path relative to `base`.\n */\nfunction resolve$2(input, base) {\n if (!input && !base)\n return '';\n const url = parseUrl(input);\n let inputType = url.type;\n if (base && inputType !== UrlType.Absolute) {\n const baseUrl = parseUrl(base);\n const baseType = baseUrl.type;\n switch (inputType) {\n case UrlType.Empty:\n url.hash = baseUrl.hash;\n // fall through\n case UrlType.Hash:\n url.query = baseUrl.query;\n // fall through\n case UrlType.Query:\n case UrlType.RelativePath:\n mergePaths(url, baseUrl);\n // fall through\n case UrlType.AbsolutePath:\n // The host, user, and port are joined, you can't copy one without the others.\n url.user = baseUrl.user;\n url.host = baseUrl.host;\n url.port = baseUrl.port;\n // fall through\n case UrlType.SchemeRelative:\n // The input doesn't have a schema at least, so we need to copy at least that over.\n url.scheme = baseUrl.scheme;\n }\n if (baseType > inputType)\n inputType = baseType;\n }\n normalizePath(url, inputType);\n const queryHash = url.query + url.hash;\n switch (inputType) {\n // This is impossible, because of the empty checks at the start of the function.\n // case UrlType.Empty:\n case UrlType.Hash:\n case UrlType.Query:\n return queryHash;\n case UrlType.RelativePath: {\n // The first char is always a \"/\", and we need it to be relative.\n const path = url.path.slice(1);\n if (!path)\n return queryHash || '.';\n if (isRelative(base || input) && !isRelative(path)) {\n // If base started with a leading \".\", or there is no base and input started with a \".\",\n // then we need to ensure that the relative path starts with a \".\". We don't know if\n // relative starts with a \"..\", though, so check before prepending.\n return './' + path + queryHash;\n }\n return path + queryHash;\n }\n case UrlType.AbsolutePath:\n return url.path + queryHash;\n default:\n return url.scheme + '//' + url.user + url.host + url.port + url.path + queryHash;\n }\n}\n\nfunction resolve$1(input, base) {\n // The base is always treated as a directory, if it's not empty.\n // https://github.com/mozilla/source-map/blob/8cb3ee57/lib/util.js#L327\n // https://github.com/chromium/chromium/blob/da4adbb3/third_party/blink/renderer/devtools/front_end/sdk/SourceMap.js#L400-L401\n if (base && !base.endsWith('/'))\n base += '/';\n return resolve$2(input, base);\n}\n\n/**\n * Removes everything after the last \"/\", but leaves the slash.\n */\nfunction stripFilename(path) {\n if (!path)\n return '';\n const index = path.lastIndexOf('/');\n return path.slice(0, index + 1);\n}\n\nconst COLUMN = 0;\nconst SOURCES_INDEX = 1;\nconst SOURCE_LINE = 2;\nconst SOURCE_COLUMN = 3;\nconst NAMES_INDEX = 4;\nconst REV_GENERATED_LINE = 1;\nconst REV_GENERATED_COLUMN = 2;\n\nfunction maybeSort(mappings, owned) {\n const unsortedIndex = nextUnsortedSegmentLine(mappings, 0);\n if (unsortedIndex === mappings.length)\n return mappings;\n // If we own the array (meaning we parsed it from JSON), then we're free to directly mutate it. If\n // not, we do not want to modify the consumer's input array.\n if (!owned)\n mappings = mappings.slice();\n for (let i = unsortedIndex; i < mappings.length; i = nextUnsortedSegmentLine(mappings, i + 1)) {\n mappings[i] = sortSegments(mappings[i], owned);\n }\n return mappings;\n}\nfunction nextUnsortedSegmentLine(mappings, start) {\n for (let i = start; i < mappings.length; i++) {\n if (!isSorted(mappings[i]))\n return i;\n }\n return mappings.length;\n}\nfunction isSorted(line) {\n for (let j = 1; j < line.length; j++) {\n if (line[j][COLUMN] < line[j - 1][COLUMN]) {\n return false;\n }\n }\n return true;\n}\nfunction sortSegments(line, owned) {\n if (!owned)\n line = line.slice();\n return line.sort(sortComparator);\n}\nfunction sortComparator(a, b) {\n return a[COLUMN] - b[COLUMN];\n}\n\nlet found = false;\n/**\n * A binary search implementation that returns the index if a match is found.\n * If no match is found, then the left-index (the index associated with the item that comes just\n * before the desired index) is returned. To maintain proper sort order, a splice would happen at\n * the next index:\n *\n * ```js\n * const array = [1, 3];\n * const needle = 2;\n * const index = binarySearch(array, needle, (item, needle) => item - needle);\n *\n * assert.equal(index, 0);\n * array.splice(index + 1, 0, needle);\n * assert.deepEqual(array, [1, 2, 3]);\n * ```\n */\nfunction binarySearch(haystack, needle, low, high) {\n while (low <= high) {\n const mid = low + ((high - low) >> 1);\n const cmp = haystack[mid][COLUMN] - needle;\n if (cmp === 0) {\n found = true;\n return mid;\n }\n if (cmp < 0) {\n low = mid + 1;\n }\n else {\n high = mid - 1;\n }\n }\n found = false;\n return low - 1;\n}\nfunction upperBound(haystack, needle, index) {\n for (let i = index + 1; i < haystack.length; index = i++) {\n if (haystack[i][COLUMN] !== needle)\n break;\n }\n return index;\n}\nfunction lowerBound(haystack, needle, index) {\n for (let i = index - 1; i >= 0; index = i--) {\n if (haystack[i][COLUMN] !== needle)\n break;\n }\n return index;\n}\nfunction memoizedState() {\n return {\n lastKey: -1,\n lastNeedle: -1,\n lastIndex: -1,\n };\n}\n/**\n * This overly complicated beast is just to record the last tested line/column and the resulting\n * index, allowing us to skip a few tests if mappings are monotonically increasing.\n */\nfunction memoizedBinarySearch(haystack, needle, state, key) {\n const { lastKey, lastNeedle, lastIndex } = state;\n let low = 0;\n let high = haystack.length - 1;\n if (key === lastKey) {\n if (needle === lastNeedle) {\n found = lastIndex !== -1 && haystack[lastIndex][COLUMN] === needle;\n return lastIndex;\n }\n if (needle >= lastNeedle) {\n // lastIndex may be -1 if the previous needle was not found.\n low = lastIndex === -1 ? 0 : lastIndex;\n }\n else {\n high = lastIndex;\n }\n }\n state.lastKey = key;\n state.lastNeedle = needle;\n return (state.lastIndex = binarySearch(haystack, needle, low, high));\n}\n\n// Rebuilds the original source files, with mappings that are ordered by source line/column instead\n// of generated line/column.\nfunction buildBySources(decoded, memos) {\n const sources = memos.map(buildNullArray);\n for (let i = 0; i < decoded.length; i++) {\n const line = decoded[i];\n for (let j = 0; j < line.length; j++) {\n const seg = line[j];\n if (seg.length === 1)\n continue;\n const sourceIndex = seg[SOURCES_INDEX];\n const sourceLine = seg[SOURCE_LINE];\n const sourceColumn = seg[SOURCE_COLUMN];\n const originalSource = sources[sourceIndex];\n const originalLine = (originalSource[sourceLine] || (originalSource[sourceLine] = []));\n const memo = memos[sourceIndex];\n // The binary search either found a match, or it found the left-index just before where the\n // segment should go. Either way, we want to insert after that. And there may be multiple\n // generated segments associated with an original location, so there may need to move several\n // indexes before we find where we need to insert.\n let index = upperBound(originalLine, sourceColumn, memoizedBinarySearch(originalLine, sourceColumn, memo, sourceLine));\n memo.lastIndex = ++index;\n insert(originalLine, index, [sourceColumn, i, seg[COLUMN]]);\n }\n }\n return sources;\n}\nfunction insert(array, index, value) {\n for (let i = array.length; i > index; i--) {\n array[i] = array[i - 1];\n }\n array[index] = value;\n}\n// Null arrays allow us to use ordered index keys without actually allocating contiguous memory like\n// a real array. We use a null-prototype object to avoid prototype pollution and deoptimizations.\n// Numeric properties on objects are magically sorted in ascending order by the engine regardless of\n// the insertion order. So, by setting any numeric keys, even out of order, we'll get ascending\n// order when iterating with for-in.\nfunction buildNullArray() {\n return { __proto__: null };\n}\n\nconst LINE_GTR_ZERO = '`line` must be greater than 0 (lines start at line 1)';\nconst COL_GTR_EQ_ZERO = '`column` must be greater than or equal to 0 (columns start at column 0)';\nconst LEAST_UPPER_BOUND = -1;\nconst GREATEST_LOWER_BOUND = 1;\nclass TraceMap {\n constructor(map, mapUrl) {\n const isString = typeof map === 'string';\n if (!isString && map._decodedMemo)\n return map;\n const parsed = (isString ? JSON.parse(map) : map);\n const { version, file, names, sourceRoot, sources, sourcesContent } = parsed;\n this.version = version;\n this.file = file;\n this.names = names || [];\n this.sourceRoot = sourceRoot;\n this.sources = sources;\n this.sourcesContent = sourcesContent;\n this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || undefined;\n const from = resolve$1(sourceRoot || '', stripFilename(mapUrl));\n this.resolvedSources = sources.map((s) => resolve$1(s || '', from));\n const { mappings } = parsed;\n if (typeof mappings === 'string') {\n this._encoded = mappings;\n this._decoded = undefined;\n }\n else {\n this._encoded = undefined;\n this._decoded = maybeSort(mappings, isString);\n }\n this._decodedMemo = memoizedState();\n this._bySources = undefined;\n this._bySourceMemos = undefined;\n }\n}\n/**\n * Typescript doesn't allow friend access to private fields, so this just casts the map into a type\n * with public access modifiers.\n */\nfunction cast(map) {\n return map;\n}\n/**\n * Returns the decoded (array of lines of segments) form of the SourceMap's mappings field.\n */\nfunction decodedMappings(map) {\n var _a;\n return ((_a = cast(map))._decoded || (_a._decoded = decode(cast(map)._encoded)));\n}\n/**\n * A higher-level API to find the source/line/column associated with a generated line/column\n * (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in\n * `source-map` library.\n */\nfunction originalPositionFor(map, needle) {\n let { line, column, bias } = needle;\n line--;\n if (line < 0)\n throw new Error(LINE_GTR_ZERO);\n if (column < 0)\n throw new Error(COL_GTR_EQ_ZERO);\n const decoded = decodedMappings(map);\n // It's common for parent source maps to have pointers to lines that have no\n // mapping (like a \"//# sourceMappingURL=\") at the end of the child file.\n if (line >= decoded.length)\n return OMapping(null, null, null, null);\n const segments = decoded[line];\n const index = traceSegmentInternal(segments, cast(map)._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND);\n if (index === -1)\n return OMapping(null, null, null, null);\n const segment = segments[index];\n if (segment.length === 1)\n return OMapping(null, null, null, null);\n const { names, resolvedSources } = map;\n return OMapping(resolvedSources[segment[SOURCES_INDEX]], segment[SOURCE_LINE] + 1, segment[SOURCE_COLUMN], segment.length === 5 ? names[segment[NAMES_INDEX]] : null);\n}\n/**\n * Finds the generated line/column position of the provided source/line/column source position.\n */\nfunction generatedPositionFor(map, needle) {\n const { source, line, column, bias } = needle;\n return generatedPosition(map, source, line, column, bias || GREATEST_LOWER_BOUND, false);\n}\n/**\n * Iterates each mapping in generated position order.\n */\nfunction eachMapping(map, cb) {\n const decoded = decodedMappings(map);\n const { names, resolvedSources } = map;\n for (let i = 0; i < decoded.length; i++) {\n const line = decoded[i];\n for (let j = 0; j < line.length; j++) {\n const seg = line[j];\n const generatedLine = i + 1;\n const generatedColumn = seg[0];\n let source = null;\n let originalLine = null;\n let originalColumn = null;\n let name = null;\n if (seg.length !== 1) {\n source = resolvedSources[seg[1]];\n originalLine = seg[2] + 1;\n originalColumn = seg[3];\n }\n if (seg.length === 5)\n name = names[seg[4]];\n cb({\n generatedLine,\n generatedColumn,\n source,\n originalLine,\n originalColumn,\n name,\n });\n }\n }\n}\nfunction OMapping(source, line, column, name) {\n return { source, line, column, name };\n}\nfunction GMapping(line, column) {\n return { line, column };\n}\nfunction traceSegmentInternal(segments, memo, line, column, bias) {\n let index = memoizedBinarySearch(segments, column, memo, line);\n if (found) {\n index = (bias === LEAST_UPPER_BOUND ? upperBound : lowerBound)(segments, column, index);\n }\n else if (bias === LEAST_UPPER_BOUND)\n index++;\n if (index === -1 || index === segments.length)\n return -1;\n return index;\n}\nfunction generatedPosition(map, source, line, column, bias, all) {\n var _a;\n line--;\n if (line < 0)\n throw new Error(LINE_GTR_ZERO);\n if (column < 0)\n throw new Error(COL_GTR_EQ_ZERO);\n const { sources, resolvedSources } = map;\n let sourceIndex = sources.indexOf(source);\n if (sourceIndex === -1)\n sourceIndex = resolvedSources.indexOf(source);\n if (sourceIndex === -1)\n return all ? [] : GMapping(null, null);\n const generated = ((_a = cast(map))._bySources || (_a._bySources = buildBySources(decodedMappings(map), (cast(map)._bySourceMemos = sources.map(memoizedState)))));\n const segments = generated[sourceIndex][line];\n if (segments == null)\n return all ? [] : GMapping(null, null);\n const memo = cast(map)._bySourceMemos[sourceIndex];\n const index = traceSegmentInternal(segments, memo, line, column, bias);\n if (index === -1)\n return GMapping(null, null);\n const segment = segments[index];\n return GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN]);\n}\n\nconst _DRIVE_LETTER_START_RE = /^[A-Za-z]:\\//;\nfunction normalizeWindowsPath(input = \"\") {\n if (!input) {\n return input;\n }\n return input.replace(/\\\\/g, \"/\").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());\n}\nconst _IS_ABSOLUTE_RE = /^[/\\\\](?![/\\\\])|^[/\\\\]{2}(?!\\.)|^[A-Za-z]:[/\\\\]/;\nfunction cwd() {\n if (typeof process !== \"undefined\" && typeof process.cwd === \"function\") {\n return process.cwd().replace(/\\\\/g, \"/\");\n }\n return \"/\";\n}\nconst resolve = function(...arguments_) {\n arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));\n let resolvedPath = \"\";\n let resolvedAbsolute = false;\n for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {\n const path = index >= 0 ? arguments_[index] : cwd();\n if (!path || path.length === 0) {\n continue;\n }\n resolvedPath = `${path}/${resolvedPath}`;\n resolvedAbsolute = isAbsolute(path);\n }\n resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);\n if (resolvedAbsolute && !isAbsolute(resolvedPath)) {\n return `/${resolvedPath}`;\n }\n return resolvedPath.length > 0 ? resolvedPath : \".\";\n};\nfunction normalizeString(path, allowAboveRoot) {\n let res = \"\";\n let lastSegmentLength = 0;\n let lastSlash = -1;\n let dots = 0;\n let char = null;\n for (let index = 0; index <= path.length; ++index) {\n if (index < path.length) {\n char = path[index];\n } else if (char === \"/\") {\n break;\n } else {\n char = \"/\";\n }\n if (char === \"/\") {\n if (lastSlash === index - 1 || dots === 1) ; else if (dots === 2) {\n if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== \".\" || res[res.length - 2] !== \".\") {\n if (res.length > 2) {\n const lastSlashIndex = res.lastIndexOf(\"/\");\n if (lastSlashIndex === -1) {\n res = \"\";\n lastSegmentLength = 0;\n } else {\n res = res.slice(0, lastSlashIndex);\n lastSegmentLength = res.length - 1 - res.lastIndexOf(\"/\");\n }\n lastSlash = index;\n dots = 0;\n continue;\n } else if (res.length > 0) {\n res = \"\";\n lastSegmentLength = 0;\n lastSlash = index;\n dots = 0;\n continue;\n }\n }\n if (allowAboveRoot) {\n res += res.length > 0 ? \"/..\" : \"..\";\n lastSegmentLength = 2;\n }\n } else {\n if (res.length > 0) {\n res += `/${path.slice(lastSlash + 1, index)}`;\n } else {\n res = path.slice(lastSlash + 1, index);\n }\n lastSegmentLength = index - lastSlash - 1;\n }\n lastSlash = index;\n dots = 0;\n } else if (char === \".\" && dots !== -1) {\n ++dots;\n } else {\n dots = -1;\n }\n }\n return res;\n}\nconst isAbsolute = function(p) {\n return _IS_ABSOLUTE_RE.test(p);\n};\n\nconst CHROME_IE_STACK_REGEXP = /^\\s*at .*(?:\\S:\\d+|\\(native\\))/m;\nconst SAFARI_NATIVE_CODE_REGEXP = /^(?:eval@)?(?:\\[native code\\])?$/;\nconst stackIgnorePatterns = [\n\t\"node:internal\",\n\t/\\/packages\\/\\w+\\/dist\\//,\n\t/\\/@vitest\\/\\w+\\/dist\\//,\n\t\"/vitest/dist/\",\n\t\"/vitest/src/\",\n\t\"/vite-node/dist/\",\n\t\"/vite-node/src/\",\n\t\"/node_modules/chai/\",\n\t\"/node_modules/tinypool/\",\n\t\"/node_modules/tinyspy/\",\n\t\"/deps/chunk-\",\n\t\"/deps/@vitest\",\n\t\"/deps/loupe\",\n\t\"/deps/chai\",\n\t/node:\\w+/,\n\t/__vitest_test__/,\n\t/__vitest_browser__/,\n\t/\\/deps\\/vitest_/\n];\nfunction extractLocation(urlLike) {\n\t// Fail-fast but return locations like \"(native)\"\n\tif (!urlLike.includes(\":\")) {\n\t\treturn [urlLike];\n\t}\n\tconst regExp = /(.+?)(?::(\\d+))?(?::(\\d+))?$/;\n\tconst parts = regExp.exec(urlLike.replace(/^\\(|\\)$/g, \"\"));\n\tif (!parts) {\n\t\treturn [urlLike];\n\t}\n\tlet url = parts[1];\n\tif (url.startsWith(\"async \")) {\n\t\turl = url.slice(6);\n\t}\n\tif (url.startsWith(\"http:\") || url.startsWith(\"https:\")) {\n\t\tconst urlObj = new URL(url);\n\t\turlObj.searchParams.delete(\"import\");\n\t\turlObj.searchParams.delete(\"browserv\");\n\t\turl = urlObj.pathname + urlObj.hash + urlObj.search;\n\t}\n\tif (url.startsWith(\"/@fs/\")) {\n\t\tconst isWindows = /^\\/@fs\\/[a-zA-Z]:\\//.test(url);\n\t\turl = url.slice(isWindows ? 5 : 4);\n\t}\n\treturn [\n\t\turl,\n\t\tparts[2] || undefined,\n\t\tparts[3] || undefined\n\t];\n}\nfunction parseSingleFFOrSafariStack(raw) {\n\tlet line = raw.trim();\n\tif (SAFARI_NATIVE_CODE_REGEXP.test(line)) {\n\t\treturn null;\n\t}\n\tif (line.includes(\" > eval\")) {\n\t\tline = line.replace(/ line (\\d+)(?: > eval line \\d+)* > eval:\\d+:\\d+/g, \":$1\");\n\t}\n\tif (!line.includes(\"@\") && !line.includes(\":\")) {\n\t\treturn null;\n\t}\n\t// eslint-disable-next-line regexp/no-super-linear-backtracking, regexp/optimal-quantifier-concatenation\n\tconst functionNameRegex = /((.*\".+\"[^@]*)?[^@]*)(@)/;\n\tconst matches = line.match(functionNameRegex);\n\tconst functionName = matches && matches[1] ? matches[1] : undefined;\n\tconst [url, lineNumber, columnNumber] = extractLocation(line.replace(functionNameRegex, \"\"));\n\tif (!url || !lineNumber || !columnNumber) {\n\t\treturn null;\n\t}\n\treturn {\n\t\tfile: url,\n\t\tmethod: functionName || \"\",\n\t\tline: Number.parseInt(lineNumber),\n\t\tcolumn: Number.parseInt(columnNumber)\n\t};\n}\nfunction parseSingleStack(raw) {\n\tconst line = raw.trim();\n\tif (!CHROME_IE_STACK_REGEXP.test(line)) {\n\t\treturn parseSingleFFOrSafariStack(line);\n\t}\n\treturn parseSingleV8Stack(line);\n}\n// Based on https://github.com/stacktracejs/error-stack-parser\n// Credit to stacktracejs\nfunction parseSingleV8Stack(raw) {\n\tlet line = raw.trim();\n\tif (!CHROME_IE_STACK_REGEXP.test(line)) {\n\t\treturn null;\n\t}\n\tif (line.includes(\"(eval \")) {\n\t\tline = line.replace(/eval code/g, \"eval\").replace(/(\\(eval at [^()]*)|(,.*$)/g, \"\");\n\t}\n\tlet sanitizedLine = line.replace(/^\\s+/, \"\").replace(/\\(eval code/g, \"(\").replace(/^.*?\\s+/, \"\");\n\t// capture and preserve the parenthesized location \"(/foo/my bar.js:12:87)\" in\n\t// case it has spaces in it, as the string is split on \\s+ later on\n\tconst location = sanitizedLine.match(/ (\\(.+\\)$)/);\n\t// remove the parenthesized location from the line, if it was matched\n\tsanitizedLine = location ? sanitizedLine.replace(location[0], \"\") : sanitizedLine;\n\t// if a location was matched, pass it to extractLocation() otherwise pass all sanitizedLine\n\t// because this line doesn't have function name\n\tconst [url, lineNumber, columnNumber] = extractLocation(location ? location[1] : sanitizedLine);\n\tlet method = location && sanitizedLine || \"\";\n\tlet file = url && [\"eval\", \"<anonymous>\"].includes(url) ? undefined : url;\n\tif (!file || !lineNumber || !columnNumber) {\n\t\treturn null;\n\t}\n\tif (method.startsWith(\"async \")) {\n\t\tmethod = method.slice(6);\n\t}\n\tif (file.startsWith(\"file://\")) {\n\t\tfile = file.slice(7);\n\t}\n\t// normalize Windows path (\\ -> /)\n\tfile = file.startsWith(\"node:\") || file.startsWith(\"internal:\") ? file : resolve(file);\n\tif (method) {\n\t\tmethod = method.replace(/__vite_ssr_import_\\d+__\\./g, \"\");\n\t}\n\treturn {\n\t\tmethod,\n\t\tfile,\n\t\tline: Number.parseInt(lineNumber),\n\t\tcolumn: Number.parseInt(columnNumber)\n\t};\n}\nfunction createStackString(stacks) {\n\treturn stacks.map((stack) => {\n\t\tconst line = `${stack.file}:${stack.line}:${stack.column}`;\n\t\tif (stack.method) {\n\t\t\treturn ` at ${stack.method}(${line})`;\n\t\t}\n\t\treturn ` at ${line}`;\n\t}).join(\"\\n\");\n}\nfunction parseStacktrace(stack, options = {}) {\n\tconst { ignoreStackEntries = stackIgnorePatterns } = options;\n\tconst stacks = !CHROME_IE_STACK_REGEXP.test(stack) ? parseFFOrSafariStackTrace(stack) : parseV8Stacktrace(stack);\n\treturn stacks.map((stack) => {\n\t\tvar _options$getSourceMap;\n\t\tif (options.getUrlId) {\n\t\t\tstack.file = options.getUrlId(stack.file);\n\t\t}\n\t\tconst map = (_options$getSourceMap = options.getSourceMap) === null || _options$getSourceMap === void 0 ? void 0 : _options$getSourceMap.call(options, stack.file);\n\t\tif (!map || typeof map !== \"object\" || !map.version) {\n\t\t\treturn shouldFilter(ignoreStackEntries, stack.file) ? null : stack;\n\t\t}\n\t\tconst traceMap = new TraceMap(map);\n\t\tconst { line, column, source, name } = originalPositionFor(traceMap, stack);\n\t\tlet file = stack.file;\n\t\tif (source) {\n\t\t\tconst fileUrl = stack.file.startsWith(\"file://\") ? stack.file : `file://${stack.file}`;\n\t\t\tconst sourceRootUrl = map.sourceRoot ? new URL(map.sourceRoot, fileUrl) : fileUrl;\n\t\t\tfile = new URL(source, sourceRootUrl).pathname;\n\t\t\t// if the file path is on windows, we need to remove the leading slash\n\t\t\tif (file.match(/\\/\\w:\\//)) {\n\t\t\t\tfile = file.slice(1);\n\t\t\t}\n\t\t}\n\t\tif (shouldFilter(ignoreStackEntries, file)) {\n\t\t\treturn null;\n\t\t}\n\t\tif (line != null && column != null) {\n\t\t\treturn {\n\t\t\t\tline,\n\t\t\t\tcolumn,\n\t\t\t\tfile,\n\t\t\t\tmethod: name || stack.method\n\t\t\t};\n\t\t}\n\t\treturn stack;\n\t}).filter((s) => s != null);\n}\nfunction shouldFilter(ignoreStackEntries, file) {\n\treturn ignoreStackEntries.some((p) => file.match(p));\n}\nfunction parseFFOrSafariStackTrace(stack) {\n\treturn stack.split(\"\\n\").map((line) => parseSingleFFOrSafariStack(line)).filter(notNullish);\n}\nfunction parseV8Stacktrace(stack) {\n\treturn stack.split(\"\\n\").map((line) => parseSingleV8Stack(line)).filter(notNullish);\n}\nfunction parseErrorStacktrace(e, options = {}) {\n\tif (!e || isPrimitive(e)) {\n\t\treturn [];\n\t}\n\tif (e.stacks) {\n\t\treturn e.stacks;\n\t}\n\tconst stackStr = e.stack || \"\";\n\t// if \"stack\" property was overwritten at runtime to be something else,\n\t// ignore the value because we don't know how to process it\n\tlet stackFrames = typeof stackStr === \"string\" ? parseStacktrace(stackStr, options) : [];\n\tif (!stackFrames.length) {\n\t\tconst e_ = e;\n\t\tif (e_.fileName != null && e_.lineNumber != null && e_.columnNumber != null) {\n\t\t\tstackFrames = parseStacktrace(`${e_.fileName}:${e_.lineNumber}:${e_.columnNumber}`, options);\n\t\t}\n\t\tif (e_.sourceURL != null && e_.line != null && e_._column != null) {\n\t\t\tstackFrames = parseStacktrace(`${e_.sourceURL}:${e_.line}:${e_.column}`, options);\n\t\t}\n\t}\n\tif (options.frameFilter) {\n\t\tstackFrames = stackFrames.filter((f) => options.frameFilter(e, f) !== false);\n\t}\n\te.stacks = stackFrames;\n\treturn stackFrames;\n}\n\nexport { TraceMap, createStackString, eachMapping, generatedPositionFor, originalPositionFor, parseErrorStacktrace, parseSingleFFOrSafariStack, parseSingleStack, parseSingleV8Stack, parseStacktrace };\n","import { plugins, format } from '@vitest/pretty-format';\nimport c from 'tinyrainbow';\nimport { g as getDefaultExportFromCjs, s as stringify } from './chunk-_commonjsHelpers.js';\nimport { deepClone, getOwnProperties, getType as getType$1 } from './helpers.js';\nimport 'loupe';\n\n/**\n* Diff Match and Patch\n* Copyright 2018 The diff-match-patch Authors.\n* https://github.com/google/diff-match-patch\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n/**\n* @fileoverview Computes the difference between two texts to create a patch.\n* Applies the patch onto another text, allowing for errors.\n* @author fraser@google.com (Neil Fraser)\n*/\n/**\n* CHANGES by pedrottimark to diff_match_patch_uncompressed.ts file:\n*\n* 1. Delete anything not needed to use diff_cleanupSemantic method\n* 2. Convert from prototype properties to var declarations\n* 3. Convert Diff to class from constructor and prototype\n* 4. Add type annotations for arguments and return values\n* 5. Add exports\n*/\n/**\n* The data structure representing a diff is an array of tuples:\n* [[DIFF_DELETE, 'Hello'], [DIFF_INSERT, 'Goodbye'], [DIFF_EQUAL, ' world.']]\n* which means: delete 'Hello', add 'Goodbye' and keep ' world.'\n*/\nconst DIFF_DELETE = -1;\nconst DIFF_INSERT = 1;\nconst DIFF_EQUAL = 0;\n/**\n* Class representing one diff tuple.\n* Attempts to look like a two-element array (which is what this used to be).\n* @param {number} op Operation, one of: DIFF_DELETE, DIFF_INSERT, DIFF_EQUAL.\n* @param {string} text Text to be deleted, inserted, or retained.\n* @constructor\n*/\nclass Diff {\n\t0;\n\t1;\n\tconstructor(op, text) {\n\t\tthis[0] = op;\n\t\tthis[1] = text;\n\t}\n}\n/**\n* Determine the common prefix of two strings.\n* @param {string} text1 First string.\n* @param {string} text2 Second string.\n* @return {number} The number of characters common to the start of each\n* string.\n*/\nfunction diff_commonPrefix(text1, text2) {\n\t// Quick check for common null cases.\n\tif (!text1 || !text2 || text1.charAt(0) !== text2.charAt(0)) {\n\t\treturn 0;\n\t}\n\t// Binary search.\n\t// Performance analysis: https://neil.fraser.name/news/2007/10/09/\n\tlet pointermin = 0;\n\tlet pointermax = Math.min(text1.length, text2.length);\n\tlet pointermid = pointermax;\n\tlet pointerstart = 0;\n\twhile (pointermin < pointermid) {\n\t\tif (text1.substring(pointerstart, pointermid) === text2.substring(pointerstart, pointermid)) {\n\t\t\tpointermin = pointermid;\n\t\t\tpointerstart = pointermin;\n\t\t} else {\n\t\t\tpointermax = pointermid;\n\t\t}\n\t\tpointermid = Math.floor((pointermax - pointermin) / 2 + pointermin);\n\t}\n\treturn pointermid;\n}\n/**\n* Determine the common suffix of two strings.\n* @param {string} text1 First string.\n* @param {string} text2 Second string.\n* @return {number} The number of characters common to the end of each string.\n*/\nfunction diff_commonSuffix(text1, text2) {\n\t// Quick check for common null cases.\n\tif (!text1 || !text2 || text1.charAt(text1.length - 1) !== text2.charAt(text2.length - 1)) {\n\t\treturn 0;\n\t}\n\t// Binary search.\n\t// Performance analysis: https://neil.fraser.name/news/2007/10/09/\n\tlet pointermin = 0;\n\tlet pointermax = Math.min(text1.length, text2.length);\n\tlet pointermid = pointermax;\n\tlet pointerend = 0;\n\twhile (pointermin < pointermid) {\n\t\tif (text1.substring(text1.length - pointermid, text1.length - pointerend) === text2.substring(text2.length - pointermid, text2.length - pointerend)) {\n\t\t\tpointermin = pointermid;\n\t\t\tpointerend = pointermin;\n\t\t} else {\n\t\t\tpointermax = pointermid;\n\t\t}\n\t\tpointermid = Math.floor((pointermax - pointermin) / 2 + pointermin);\n\t}\n\treturn pointermid;\n}\n/**\n* Determine if the suffix of one string is the prefix of another.\n* @param {string} text1 First string.\n* @param {string} text2 Second string.\n* @return {number} The number of characters common to the end of the first\n* string and the start of the second string.\n* @private\n*/\nfunction diff_commonOverlap_(text1, text2) {\n\t// Cache the text lengths to prevent multiple calls.\n\tconst text1_length = text1.length;\n\tconst text2_length = text2.length;\n\t// Eliminate the null case.\n\tif (text1_length === 0 || text2_length === 0) {\n\t\treturn 0;\n\t}\n\t// Truncate the longer string.\n\tif (text1_length > text2_length) {\n\t\ttext1 = text1.substring(text1_length - text2_length);\n\t} else if (text1_length < text2_length) {\n\t\ttext2 = text2.substring(0, text1_length);\n\t}\n\tconst text_length = Math.min(text1_length, text2_length);\n\t// Quick check for the worst case.\n\tif (text1 === text2) {\n\t\treturn text_length;\n\t}\n\t// Start by looking for a single character match\n\t// and increase length until no match is found.\n\t// Performance analysis: https://neil.fraser.name/news/2010/11/04/\n\tlet best = 0;\n\tlet length = 1;\n\twhile (true) {\n\t\tconst pattern = text1.substring(text_length - length);\n\t\tconst found = text2.indexOf(pattern);\n\t\tif (found === -1) {\n\t\t\treturn best;\n\t\t}\n\t\tlength += found;\n\t\tif (found === 0 || text1.substring(text_length - length) === text2.substring(0, length)) {\n\t\t\tbest = length;\n\t\t\tlength++;\n\t\t}\n\t}\n}\n/**\n* Reduce the number of edits by eliminating semantically trivial equalities.\n* @param {!Array.<!diff_match_patch.Diff>} diffs Array of diff tuples.\n*/\nfunction diff_cleanupSemantic(diffs) {\n\tlet changes = false;\n\tconst equalities = [];\n\tlet equalitiesLength = 0;\n\t/** @type {?string} */\n\tlet lastEquality = null;\n\t// Always equal to diffs[equalities[equalitiesLength - 1]][1]\n\tlet pointer = 0;\n\t// Number of characters that changed prior to the equality.\n\tlet length_insertions1 = 0;\n\tlet length_deletions1 = 0;\n\t// Number of characters that changed after the equality.\n\tlet length_insertions2 = 0;\n\tlet length_deletions2 = 0;\n\twhile (pointer < diffs.length) {\n\t\tif (diffs[pointer][0] === DIFF_EQUAL) {\n\t\t\t// Equality found.\n\t\t\tequalities[equalitiesLength++] = pointer;\n\t\t\tlength_insertions1 = length_insertions2;\n\t\t\tlength_deletions1 = length_deletions2;\n\t\t\tlength_insertions2 = 0;\n\t\t\tlength_deletions2 = 0;\n\t\t\tlastEquality = diffs[pointer][1];\n\t\t} else {\n\t\t\t// An insertion or deletion.\n\t\t\tif (diffs[pointer][0] === DIFF_INSERT) {\n\t\t\t\tlength_insertions2 += diffs[pointer][1].length;\n\t\t\t} else {\n\t\t\t\tlength_deletions2 += diffs[pointer][1].length;\n\t\t\t}\n\t\t\t// Eliminate an equality that is smaller or equal to the edits on both\n\t\t\t// sides of it.\n\t\t\tif (lastEquality && lastEquality.length <= Math.max(length_insertions1, length_deletions1) && lastEquality.length <= Math.max(length_insertions2, length_deletions2)) {\n\t\t\t\t// Duplicate record.\n\t\t\t\tdiffs.splice(equalities[equalitiesLength - 1], 0, new Diff(DIFF_DELETE, lastEquality));\n\t\t\t\t// Change second copy to insert.\n\t\t\t\tdiffs[equalities[equalitiesLength - 1] + 1][0] = DIFF_INSERT;\n\t\t\t\t// Throw away the equality we just deleted.\n\t\t\t\tequalitiesLength--;\n\t\t\t\t// Throw away the previous equality (it needs to be reevaluated).\n\t\t\t\tequalitiesLength--;\n\t\t\t\tpointer = equalitiesLength > 0 ? equalities[equalitiesLength - 1] : -1;\n\t\t\t\tlength_insertions1 = 0;\n\t\t\t\tlength_deletions1 = 0;\n\t\t\t\tlength_insertions2 = 0;\n\t\t\t\tlength_deletions2 = 0;\n\t\t\t\tlastEquality = null;\n\t\t\t\tchanges = true;\n\t\t\t}\n\t\t}\n\t\tpointer++;\n\t}\n\t// Normalize the diff.\n\tif (changes) {\n\t\tdiff_cleanupMerge(diffs);\n\t}\n\tdiff_cleanupSemanticLossless(diffs);\n\t// Find any overlaps between deletions and insertions.\n\t// e.g: <del>abcxxx</del><ins>xxxdef</ins>\n\t// -> <del>abc</del>xxx<ins>def</ins>\n\t// e.g: <del>xxxabc</del><ins>defxxx</ins>\n\t// -> <ins>def</ins>xxx<del>abc</del>\n\t// Only extract an overlap if it is as big as the edit ahead or behind it.\n\tpointer = 1;\n\twhile (pointer < diffs.length) {\n\t\tif (diffs[pointer - 1][0] === DIFF_DELETE && diffs[pointer][0] === DIFF_INSERT) {\n\t\t\tconst deletion = diffs[pointer - 1][1];\n\t\t\tconst insertion = diffs[pointer][1];\n\t\t\tconst overlap_length1 = diff_commonOverlap_(deletion, insertion);\n\t\t\tconst overlap_length2 = diff_commonOverlap_(insertion, deletion);\n\t\t\tif (overlap_length1 >= overlap_length2) {\n\t\t\t\tif (overlap_length1 >= deletion.length / 2 || overlap_length1 >= insertion.length / 2) {\n\t\t\t\t\t// Overlap found. Insert an equality and trim the surrounding edits.\n\t\t\t\t\tdiffs.splice(pointer, 0, new Diff(DIFF_EQUAL, insertion.substring(0, overlap_length1)));\n\t\t\t\t\tdiffs[pointer - 1][1] = deletion.substring(0, deletion.length - overlap_length1);\n\t\t\t\t\tdiffs[pointer + 1][1] = insertion.substring(overlap_length1);\n\t\t\t\t\tpointer++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (overlap_length2 >= deletion.length / 2 || overlap_length2 >= insertion.length / 2) {\n\t\t\t\t\t// Reverse overlap found.\n\t\t\t\t\t// Insert an equality and swap and trim the surrounding edits.\n\t\t\t\t\tdiffs.splice(pointer, 0, new Diff(DIFF_EQUAL, deletion.substring(0, overlap_length2)));\n\t\t\t\t\tdiffs[pointer - 1][0] = DIFF_INSERT;\n\t\t\t\t\tdiffs[pointer - 1][1] = insertion.substring(0, insertion.length - overlap_length2);\n\t\t\t\t\tdiffs[pointer + 1][0] = DIFF_DELETE;\n\t\t\t\t\tdiffs[pointer + 1][1] = deletion.substring(overlap_length2);\n\t\t\t\t\tpointer++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpointer++;\n\t\t}\n\t\tpointer++;\n\t}\n}\n// Define some regex patterns for matching boundaries.\nconst nonAlphaNumericRegex_ = /[^a-z0-9]/i;\nconst whitespaceRegex_ = /\\s/;\nconst linebreakRegex_ = /[\\r\\n]/;\nconst blanklineEndRegex_ = /\\n\\r?\\n$/;\nconst blanklineStartRegex_ = /^\\r?\\n\\r?\\n/;\n/**\n* Look for single edits surrounded on both sides by equalities\n* which can be shifted sideways to align the edit to a word boundary.\n* e.g: The c<ins>at c</ins>ame. -> The <ins>cat </ins>came.\n* @param {!Array.<!diff_match_patch.Diff>} diffs Array of diff tuples.\n*/\nfunction diff_cleanupSemanticLossless(diffs) {\n\tlet pointer = 1;\n\t// Intentionally ignore the first and last element (don't need checking).\n\twhile (pointer < diffs.length - 1) {\n\t\tif (diffs[pointer - 1][0] === DIFF_EQUAL && diffs[pointer + 1][0] === DIFF_EQUAL) {\n\t\t\t// This is a single edit surrounded by equalities.\n\t\t\tlet equality1 = diffs[pointer - 1][1];\n\t\t\tlet edit = diffs[pointer][1];\n\t\t\tlet equality2 = diffs[pointer + 1][1];\n\t\t\t// First, shift the edit as far left as possible.\n\t\t\tconst commonOffset = diff_commonSuffix(equality1, edit);\n\t\t\tif (commonOffset) {\n\t\t\t\tconst commonString = edit.substring(edit.length - commonOffset);\n\t\t\t\tequality1 = equality1.substring(0, equality1.length - commonOffset);\n\t\t\t\tedit = commonString + edit.substring(0, edit.length - commonOffset);\n\t\t\t\tequality2 = commonString + equality2;\n\t\t\t}\n\t\t\t// Second, step character by character right, looking for the best fit.\n\t\t\tlet bestEquality1 = equality1;\n\t\t\tlet bestEdit = edit;\n\t\t\tlet bestEquality2 = equality2;\n\t\t\tlet bestScore = diff_cleanupSemanticScore_(equality1, edit) + diff_cleanupSemanticScore_(edit, equality2);\n\t\t\twhile (edit.charAt(0) === equality2.charAt(0)) {\n\t\t\t\tequality1 += edit.charAt(0);\n\t\t\t\tedit = edit.substring(1) + equality2.charAt(0);\n\t\t\t\tequality2 = equality2.substring(1);\n\t\t\t\tconst score = diff_cleanupSemanticScore_(equality1, edit) + diff_cleanupSemanticScore_(edit, equality2);\n\t\t\t\t// The >= encourages trailing rather than leading whitespace on edits.\n\t\t\t\tif (score >= bestScore) {\n\t\t\t\t\tbestScore = score;\n\t\t\t\t\tbestEquality1 = equality1;\n\t\t\t\t\tbestEdit = edit;\n\t\t\t\t\tbestEquality2 = equality2;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (diffs[pointer - 1][1] !== bestEquality1) {\n\t\t\t\t// We have an improvement, save it back to the diff.\n\t\t\t\tif (bestEquality1) {\n\t\t\t\t\tdiffs[pointer - 1][1] = bestEquality1;\n\t\t\t\t} else {\n\t\t\t\t\tdiffs.splice(pointer - 1, 1);\n\t\t\t\t\tpointer--;\n\t\t\t\t}\n\t\t\t\tdiffs[pointer][1] = bestEdit;\n\t\t\t\tif (bestEquality2) {\n\t\t\t\t\tdiffs[pointer + 1][1] = bestEquality2;\n\t\t\t\t} else {\n\t\t\t\t\tdiffs.splice(pointer + 1, 1);\n\t\t\t\t\tpointer--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tpointer++;\n\t}\n}\n/**\n* Reorder and merge like edit sections. Merge equalities.\n* Any edit section can move as long as it doesn't cross an equality.\n* @param {!Array.<!diff_match_patch.Diff>} diffs Array of diff tuples.\n*/\nfunction diff_cleanupMerge(diffs) {\n\t// Add a dummy entry at the end.\n\tdiffs.push(new Diff(DIFF_EQUAL, \"\"));\n\tlet pointer = 0;\n\tlet count_delete = 0;\n\tlet count_insert = 0;\n\tlet text_delete = \"\";\n\tlet text_insert = \"\";\n\tlet commonlength;\n\twhile (pointer < diffs.length) {\n\t\tswitch (diffs[pointer][0]) {\n\t\t\tcase DIFF_INSERT:\n\t\t\t\tcount_insert++;\n\t\t\t\ttext_insert += diffs[pointer][1];\n\t\t\t\tpointer++;\n\t\t\t\tbreak;\n\t\t\tcase DIFF_DELETE:\n\t\t\t\tcount_delete++;\n\t\t\t\ttext_delete += diffs[pointer][1];\n\t\t\t\tpointer++;\n\t\t\t\tbreak;\n\t\t\tcase DIFF_EQUAL:\n\t\t\t\t// Upon reaching an equality, check for prior redundancies.\n\t\t\t\tif (count_delete + count_insert > 1) {\n\t\t\t\t\tif (count_delete !== 0 && count_insert !== 0) {\n\t\t\t\t\t\t// Factor out any common prefixes.\n\t\t\t\t\t\tcommonlength = diff_commonPrefix(text_insert, text_delete);\n\t\t\t\t\t\tif (commonlength !== 0) {\n\t\t\t\t\t\t\tif (pointer - count_delete - count_insert > 0 && diffs[pointer - count_delete - count_insert - 1][0] === DIFF_EQUAL) {\n\t\t\t\t\t\t\t\tdiffs[pointer - count_delete - count_insert - 1][1] += text_insert.substring(0, commonlength);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdiffs.splice(0, 0, new Diff(DIFF_EQUAL, text_insert.substring(0, commonlength)));\n\t\t\t\t\t\t\t\tpointer++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttext_insert = text_insert.substring(commonlength);\n\t\t\t\t\t\t\ttext_delete = text_delete.substring(commonlength);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Factor out any common suffixes.\n\t\t\t\t\t\tcommonlength = diff_commonSuffix(text_insert, text_delete);\n\t\t\t\t\t\tif (commonlength !== 0) {\n\t\t\t\t\t\t\tdiffs[pointer][1] = text_insert.substring(text_insert.length - commonlength) + diffs[pointer][1];\n\t\t\t\t\t\t\ttext_insert = text_insert.substring(0, text_insert.length - commonlength);\n\t\t\t\t\t\t\ttext_delete = text_delete.substring(0, text_delete.length - commonlength);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// Delete the offending records and add the merged ones.\n\t\t\t\t\tpointer -= count_delete + count_insert;\n\t\t\t\t\tdiffs.splice(pointer, count_delete + count_insert);\n\t\t\t\t\tif (text_delete.length) {\n\t\t\t\t\t\tdiffs.splice(pointer, 0, new Diff(DIFF_DELETE, text_delete));\n\t\t\t\t\t\tpointer++;\n\t\t\t\t\t}\n\t\t\t\t\tif (text_insert.length) {\n\t\t\t\t\t\tdiffs.splice(pointer, 0, new Diff(DIFF_INSERT, text_insert));\n\t\t\t\t\t\tpointer++;\n\t\t\t\t\t}\n\t\t\t\t\tpointer++;\n\t\t\t\t} else if (pointer !== 0 && diffs[pointer - 1][0] === DIFF_EQUAL) {\n\t\t\t\t\t// Merge this equality with the previous one.\n\t\t\t\t\tdiffs[pointer - 1][1] += diffs[pointer][1];\n\t\t\t\t\tdiffs.splice(pointer, 1);\n\t\t\t\t} else {\n\t\t\t\t\tpointer++;\n\t\t\t\t}\n\t\t\t\tcount_insert = 0;\n\t\t\t\tcount_delete = 0;\n\t\t\t\ttext_delete = \"\";\n\t\t\t\ttext_insert = \"\";\n\t\t\t\tbreak;\n\t\t}\n\t}\n\tif (diffs[diffs.length - 1][1] === \"\") {\n\t\tdiffs.pop();\n\t}\n\t// Second pass: look for single edits surrounded on both sides by equalities\n\t// which can be shifted sideways to eliminate an equality.\n\t// e.g: A<ins>BA</ins>C -> <ins>AB</ins>AC\n\tlet changes = false;\n\tpointer = 1;\n\t// Intentionally ignore the first and last element (don't need checking).\n\twhile (pointer < diffs.length - 1) {\n\t\tif (diffs[pointer - 1][0] === DIFF_EQUAL && diffs[pointer + 1][0] === DIFF_EQUAL) {\n\t\t\t// This is a single edit surrounded by equalities.\n\t\t\tif (diffs[pointer][1].substring(diffs[pointer][1].length - diffs[pointer - 1][1].length) === diffs[pointer - 1][1]) {\n\t\t\t\t// Shift the edit over the previous equality.\n\t\t\t\tdiffs[pointer][1] = diffs[pointer - 1][1] + diffs[pointer][1].substring(0, diffs[pointer][1].length - diffs[pointer - 1][1].length);\n\t\t\t\tdiffs[pointer + 1][1] = diffs[pointer - 1][1] + diffs[pointer + 1][1];\n\t\t\t\tdiffs.splice(pointer - 1, 1);\n\t\t\t\tchanges = true;\n\t\t\t} else if (diffs[pointer][1].substring(0, diffs[pointer + 1][1].length) === diffs[pointer + 1][1]) {\n\t\t\t\t// Shift the edit over the next equality.\n\t\t\t\tdiffs[pointer - 1][1] += diffs[pointer + 1][1];\n\t\t\t\tdiffs[pointer][1] = diffs[pointer][1].substring(diffs[pointer + 1][1].length) + diffs[pointer + 1][1];\n\t\t\t\tdiffs.splice(pointer + 1, 1);\n\t\t\t\tchanges = true;\n\t\t\t}\n\t\t}\n\t\tpointer++;\n\t}\n\t// If shifts were made, the diff needs reordering and another shift sweep.\n\tif (changes) {\n\t\tdiff_cleanupMerge(diffs);\n\t}\n}\n/**\n* Given two strings, compute a score representing whether the internal\n* boundary falls on logical boundaries.\n* Scores range from 6 (best) to 0 (worst).\n* Closure, but does not reference any external variables.\n* @param {string} one First string.\n* @param {string} two Second string.\n* @return {number} The score.\n* @private\n*/\nfunction diff_cleanupSemanticScore_(one, two) {\n\tif (!one || !two) {\n\t\t// Edges are the best.\n\t\treturn 6;\n\t}\n\t// Each port of this function behaves slightly differently due to\n\t// subtle differences in each language's definition of things like\n\t// 'whitespace'. Since this function's purpose is largely cosmetic,\n\t// the choice has been made to use each language's native features\n\t// rather than force total conformity.\n\tconst char1 = one.charAt(one.length - 1);\n\tconst char2 = two.charAt(0);\n\tconst nonAlphaNumeric1 = char1.match(nonAlphaNumericRegex_);\n\tconst nonAlphaNumeric2 = char2.match(nonAlphaNumericRegex_);\n\tconst whitespace1 = nonAlphaNumeric1 && char1.match(whitespaceRegex_);\n\tconst whitespace2 = nonAlphaNumeric2 && char2.match(whitespaceRegex_);\n\tconst lineBreak1 = whitespace1 && char1.match(linebreakRegex_);\n\tconst lineBreak2 = whitespace2 && char2.match(linebreakRegex_);\n\tconst blankLine1 = lineBreak1 && one.match(blanklineEndRegex_);\n\tconst blankLine2 = lineBreak2 && two.match(blanklineStartRegex_);\n\tif (blankLine1 || blankLine2) {\n\t\t// Five points for blank lines.\n\t\treturn 5;\n\t} else if (lineBreak1 || lineBreak2) {\n\t\t// Four points for line breaks.\n\t\treturn 4;\n\t} else if (nonAlphaNumeric1 && !whitespace1 && whitespace2) {\n\t\t// Three points for end of sentences.\n\t\treturn 3;\n\t} else if (whitespace1 || whitespace2) {\n\t\t// Two points for whitespace.\n\t\treturn 2;\n\t} else if (nonAlphaNumeric1 || nonAlphaNumeric2) {\n\t\t// One point for non-alphanumeric.\n\t\treturn 1;\n\t}\n\treturn 0;\n}\n\n/**\n* Copyright (c) Meta Platforms, Inc. and affiliates.\n*\n* This source code is licensed under the MIT license found in the\n* LICENSE file in the root directory of this source tree.\n*/\nconst NO_DIFF_MESSAGE = \"Compared values have no visual difference.\";\nconst SIMILAR_MESSAGE = \"Compared values serialize to the same structure.\\n\" + \"Printing internal object structure without calling `toJSON` instead.\";\n\nvar build = {};\n\nvar hasRequiredBuild;\n\nfunction requireBuild () {\n\tif (hasRequiredBuild) return build;\n\thasRequiredBuild = 1;\n\n\tObject.defineProperty(build, '__esModule', {\n\t value: true\n\t});\n\tbuild.default = diffSequence;\n\t/**\n\t * Copyright (c) Meta Platforms, Inc. and affiliates.\n\t *\n\t * This source code is licensed under the MIT license found in the\n\t * LICENSE file in the root directory of this source tree.\n\t *\n\t */\n\n\t// This diff-sequences package implements the linear space variation in\n\t// An O(ND) Difference Algorithm and Its Variations by Eugene W. Myers\n\n\t// Relationship in notation between Myers paper and this package:\n\t// A is a\n\t// N is aLength, aEnd - aStart, and so on\n\t// x is aIndex, aFirst, aLast, and so on\n\t// B is b\n\t// M is bLength, bEnd - bStart, and so on\n\t// y is bIndex, bFirst, bLast, and so on\n\t// Δ = N - M is negative of baDeltaLength = bLength - aLength\n\t// D is d\n\t// k is kF\n\t// k + Δ is kF = kR - baDeltaLength\n\t// V is aIndexesF or aIndexesR (see comment below about Indexes type)\n\t// index intervals [1, N] and [1, M] are [0, aLength) and [0, bLength)\n\t// starting point in forward direction (0, 0) is (-1, -1)\n\t// starting point in reverse direction (N + 1, M + 1) is (aLength, bLength)\n\n\t// The “edit graph” for sequences a and b corresponds to items:\n\t// in a on the horizontal axis\n\t// in b on the vertical axis\n\t//\n\t// Given a-coordinate of a point in a diagonal, you can compute b-coordinate.\n\t//\n\t// Forward diagonals kF:\n\t// zero diagonal intersects top left corner\n\t// positive diagonals intersect top edge\n\t// negative diagonals insersect left edge\n\t//\n\t// Reverse diagonals kR:\n\t// zero diagonal intersects bottom right corner\n\t// positive diagonals intersect right edge\n\t// negative diagonals intersect bottom edge\n\n\t// The graph contains a directed acyclic graph of edges:\n\t// horizontal: delete an item from a\n\t// vertical: insert an item from b\n\t// diagonal: common item in a and b\n\t//\n\t// The algorithm solves dual problems in the graph analogy:\n\t// Find longest common subsequence: path with maximum number of diagonal edges\n\t// Find shortest edit script: path with minimum number of non-diagonal edges\n\n\t// Input callback function compares items at indexes in the sequences.\n\n\t// Output callback function receives the number of adjacent items\n\t// and starting indexes of each common subsequence.\n\t// Either original functions or wrapped to swap indexes if graph is transposed.\n\t// Indexes in sequence a of last point of forward or reverse paths in graph.\n\t// Myers algorithm indexes by diagonal k which for negative is bad deopt in V8.\n\t// This package indexes by iF and iR which are greater than or equal to zero.\n\t// and also updates the index arrays in place to cut memory in half.\n\t// kF = 2 * iF - d\n\t// kR = d - 2 * iR\n\t// Division of index intervals in sequences a and b at the middle change.\n\t// Invariant: intervals do not have common items at the start or end.\n\tconst pkg = 'diff-sequences'; // for error messages\n\tconst NOT_YET_SET = 0; // small int instead of undefined to avoid deopt in V8\n\n\t// Return the number of common items that follow in forward direction.\n\t// The length of what Myers paper calls a “snake” in a forward path.\n\tconst countCommonItemsF = (aIndex, aEnd, bIndex, bEnd, isCommon) => {\n\t let nCommon = 0;\n\t while (aIndex < aEnd && bIndex < bEnd && isCommon(aIndex, bIndex)) {\n\t aIndex += 1;\n\t bIndex += 1;\n\t nCommon += 1;\n\t }\n\t return nCommon;\n\t};\n\n\t// Return the number of common items that precede in reverse direction.\n\t// The length of what Myers paper calls a “snake” in a reverse path.\n\tconst countCommonItemsR = (aStart, aIndex, bStart, bIndex, isCommon) => {\n\t let nCommon = 0;\n\t while (aStart <= aIndex && bStart <= bIndex && isCommon(aIndex, bIndex)) {\n\t aIndex -= 1;\n\t bIndex -= 1;\n\t nCommon += 1;\n\t }\n\t return nCommon;\n\t};\n\n\t// A simple function to extend forward paths from (d - 1) to d changes\n\t// when forward and reverse paths cannot yet overlap.\n\tconst extendPathsF = (\n\t d,\n\t aEnd,\n\t bEnd,\n\t bF,\n\t isCommon,\n\t aIndexesF,\n\t iMaxF // return the value because optimization might decrease it\n\t) => {\n\t // Unroll the first iteration.\n\t let iF = 0;\n\t let kF = -d; // kF = 2 * iF - d\n\t let aFirst = aIndexesF[iF]; // in first iteration always insert\n\t let aIndexPrev1 = aFirst; // prev value of [iF - 1] in next iteration\n\t aIndexesF[iF] += countCommonItemsF(\n\t aFirst + 1,\n\t aEnd,\n\t bF + aFirst - kF + 1,\n\t bEnd,\n\t isCommon\n\t );\n\n\t // Optimization: skip diagonals in which paths cannot ever overlap.\n\t const nF = d < iMaxF ? d : iMaxF;\n\n\t // The diagonals kF are odd when d is odd and even when d is even.\n\t for (iF += 1, kF += 2; iF <= nF; iF += 1, kF += 2) {\n\t // To get first point of path segment, move one change in forward direction\n\t // from last point of previous path segment in an adjacent diagonal.\n\t // In last possible iteration when iF === d and kF === d always delete.\n\t if (iF !== d && aIndexPrev1 < aIndexesF[iF]) {\n\t aFirst = aIndexesF[iF]; // vertical to insert from b\n\t } else {\n\t aFirst = aIndexPrev1 + 1; // horizontal to delete from a\n\n\t if (aEnd <= aFirst) {\n\t // Optimization: delete moved past right of graph.\n\t return iF - 1;\n\t }\n\t }\n\n\t // To get last point of path segment, move along diagonal of common items.\n\t aIndexPrev1 = aIndexesF[iF];\n\t aIndexesF[iF] =\n\t aFirst +\n\t countCommonItemsF(aFirst + 1, aEnd, bF + aFirst - kF + 1, bEnd, isCommon);\n\t }\n\t return iMaxF;\n\t};\n\n\t// A simple function to extend reverse paths from (d - 1) to d changes\n\t// when reverse and forward paths cannot yet overlap.\n\tconst extendPathsR = (\n\t d,\n\t aStart,\n\t bStart,\n\t bR,\n\t isCommon,\n\t aIndexesR,\n\t iMaxR // return the value because optimization might decrease it\n\t) => {\n\t // Unroll the first iteration.\n\t let iR = 0;\n\t let kR = d; // kR = d - 2 * iR\n\t let aFirst = aIndexesR[iR]; // in first iteration always insert\n\t let aIndexPrev1 = aFirst; // prev value of [iR - 1] in next iteration\n\t aIndexesR[iR] -= countCommonItemsR(\n\t aStart,\n\t aFirst - 1,\n\t bStart,\n\t bR + aFirst - kR - 1,\n\t isCommon\n\t );\n\n\t // Optimization: skip diagonals in which paths cannot ever overlap.\n\t const nR = d < iMaxR ? d : iMaxR;\n\n\t // The diagonals kR are odd when d is odd and even when d is even.\n\t for (iR += 1, kR -= 2; iR <= nR; iR += 1, kR -= 2) {\n\t // To get first point of path segment, move one change in reverse direction\n\t // from last point of previous path segment in an adjacent diagonal.\n\t // In last possible iteration when iR === d and kR === -d always delete.\n\t if (iR !== d && aIndexesR[iR] < aIndexPrev1) {\n\t aFirst = aIndexesR[iR]; // vertical to insert from b\n\t } else {\n\t aFirst = aIndexPrev1 - 1; // horizontal to delete from a\n\n\t if (aFirst < aStart) {\n\t // Optimization: delete moved past left of graph.\n\t return iR - 1;\n\t }\n\t }\n\n\t // To get last point of path segment, move along diagonal of common items.\n\t aIndexPrev1 = aIndexesR[iR];\n\t aIndexesR[iR] =\n\t aFirst -\n\t countCommonItemsR(\n\t aStart,\n\t aFirst - 1,\n\t bStart,\n\t bR + aFirst - kR - 1,\n\t isCommon\n\t );\n\t }\n\t return iMaxR;\n\t};\n\n\t// A complete function to extend forward paths from (d - 1) to d changes.\n\t// Return true if a path overlaps reverse path of (d - 1) changes in its diagonal.\n\tconst extendOverlappablePathsF = (\n\t d,\n\t aStart,\n\t aEnd,\n\t bStart,\n\t bEnd,\n\t isCommon,\n\t aIndexesF,\n\t iMaxF,\n\t aIndexesR,\n\t iMaxR,\n\t division // update prop values if return true\n\t) => {\n\t const bF = bStart - aStart; // bIndex = bF + aIndex - kF\n\t const aLength = aEnd - aStart;\n\t const bLength = bEnd - bStart;\n\t const baDeltaLength = bLength - aLength; // kF = kR - baDeltaLength\n\n\t // Range of diagonals in which forward and reverse paths might overlap.\n\t const kMinOverlapF = -baDeltaLength - (d - 1); // -(d - 1) <= kR\n\t const kMaxOverlapF = -baDeltaLength + (d - 1); // kR <= (d - 1)\n\n\t let aIndexPrev1 = NOT_YET_SET; // prev value of [iF - 1] in next iteration\n\n\t // Optimization: skip diagonals in which paths cannot ever overlap.\n\t const nF = d < iMaxF ? d : iMaxF;\n\n\t // The diagonals kF = 2 * iF - d are odd when d is odd and even when d is even.\n\t for (let iF = 0, kF = -d; iF <= nF; iF += 1, kF += 2) {\n\t // To get first point of path segment, move one change in forward direction\n\t // from last point of previous path segment in an adjacent diagonal.\n\t // In first iteration when iF === 0 and kF === -d always insert.\n\t // In last possible iteration when iF === d and kF === d always delete.\n\t const insert = iF === 0 || (iF !== d && aIndexPrev1 < aIndexesF[iF]);\n\t const aLastPrev = insert ? aIndexesF[iF] : aIndexPrev1;\n\t const aFirst = insert\n\t ? aLastPrev // vertical to insert from b\n\t : aLastPrev + 1; // horizontal to delete from a\n\n\t // To get last point of path segment, move along diagonal of common items.\n\t const bFirst = bF + aFirst - kF;\n\t const nCommonF = countCommonItemsF(\n\t aFirst + 1,\n\t aEnd,\n\t bFirst + 1,\n\t bEnd,\n\t isCommon\n\t );\n\t const aLast = aFirst + nCommonF;\n\t aIndexPrev1 = aIndexesF[iF];\n\t aIndexesF[iF] = aLast;\n\t if (kMinOverlapF <= kF && kF <= kMaxOverlapF) {\n\t // Solve for iR of reverse path with (d - 1) changes in diagonal kF:\n\t // kR = kF + baDeltaLength\n\t // kR = (d - 1) - 2 * iR\n\t const iR = (d - 1 - (kF + baDeltaLength)) / 2;\n\n\t // If this forward path overlaps the reverse path in this diagonal,\n\t // then this is the middle change of the index intervals.\n\t if (iR <= iMaxR && aIndexesR[iR] - 1 <= aLast) {\n\t // Unlike the Myers algorithm which finds only the middle “snake”\n\t // this package can find two common subsequences per division.\n\t // Last point of previous path segment is on an adjacent diagonal.\n\t const bLastPrev = bF + aLastPrev - (insert ? kF + 1 : kF - 1);\n\n\t // Because of invariant that intervals preceding the middle change\n\t // cannot have common items at the end,\n\t // move in reverse direction along a diagonal of common items.\n\t const nCommonR = countCommonItemsR(\n\t aStart,\n\t aLastPrev,\n\t bStart,\n\t bLastPrev,\n\t isCommon\n\t );\n\t const aIndexPrevFirst = aLastPrev - nCommonR;\n\t const bIndexPrevFirst = bLastPrev - nCommonR;\n\t const aEndPreceding = aIndexPrevFirst + 1;\n\t const bEndPreceding = bIndexPrevFirst + 1;\n\t division.nChangePreceding = d - 1;\n\t if (d - 1 === aEndPreceding + bEndPreceding - aStart - bStart) {\n\t // Optimization: number of preceding changes in forward direction\n\t // is equal to number of items in preceding interval,\n\t // therefore it cannot contain any common items.\n\t division.aEndPreceding = aStart;\n\t division.bEndPreceding = bStart;\n\t } else {\n\t division.aEndPreceding = aEndPreceding;\n\t division.bEndPreceding = bEndPreceding;\n\t }\n\t division.nCommonPreceding = nCommonR;\n\t if (nCommonR !== 0) {\n\t division.aCommonPreceding = aEndPreceding;\n\t division.bCommonPreceding = bEndPreceding;\n\t }\n\t division.nCommonFollowing = nCommonF;\n\t if (nCommonF !== 0) {\n\t division.aCommonFollowing = aFirst + 1;\n\t division.bCommonFollowing = bFirst + 1;\n\t }\n\t const aStartFollowing = aLast + 1;\n\t const bStartFollowing = bFirst + nCommonF + 1;\n\t division.nChangeFollowing = d - 1;\n\t if (d - 1 === aEnd + bEnd - aStartFollowing - bStartFollowing) {\n\t // Optimization: number of changes in reverse direction\n\t // is equal to number of items in following interval,\n\t // therefore it cannot contain any common items.\n\t division.aStartFollowing = aEnd;\n\t division.bStartFollowing = bEnd;\n\t } else {\n\t division.aStartFollowing = aStartFollowing;\n\t division.bStartFollowing = bStartFollowing;\n\t }\n\t return true;\n\t }\n\t }\n\t }\n\t return false;\n\t};\n\n\t// A complete function to extend reverse paths from (d - 1) to d changes.\n\t// Return true if a path overlaps forward path of d changes in its diagonal.\n\tconst extendOverlappablePathsR = (\n\t d,\n\t aStart,\n\t aEnd,\n\t bStart,\n\t bEnd,\n\t isCommon,\n\t aIndexesF,\n\t iMaxF,\n\t aIndexesR,\n\t iMaxR,\n\t division // update prop values if return true\n\t) => {\n\t const bR = bEnd - aEnd; // bIndex = bR + aIndex - kR\n\t const aLength = aEnd - aStart;\n\t const bLength = bEnd - bStart;\n\t const baDeltaLength = bLength - aLength; // kR = kF + baDeltaLength\n\n\t // Range of diagonals in which forward and reverse paths might overlap.\n\t const kMinOverlapR = baDeltaLength - d; // -d <= kF\n\t const kMaxOverlapR = baDeltaLength + d; // kF <= d\n\n\t let aIndexPrev1 = NOT_YET_SET; // prev value of [iR - 1] in next iteration\n\n\t // Optimization: skip diagonals in which paths cannot ever overlap.\n\t const nR = d < iMaxR ? d : iMaxR;\n\n\t // The diagonals kR = d - 2 * iR are odd when d is odd and even when d is even.\n\t for (let iR = 0, kR = d; iR <= nR; iR += 1, kR -= 2) {\n\t // To get first point of path segment, move one change in reverse direction\n\t // from last point of previous path segment in an adjacent diagonal.\n\t // In first iteration when iR === 0 and kR === d always insert.\n\t // In last possible iteration when iR === d and kR === -d always delete.\n\t const insert = iR === 0 || (iR !== d && aIndexesR[iR] < aIndexPrev1);\n\t const aLastPrev = insert ? aIndexesR[iR] : aIndexPrev1;\n\t const aFirst = insert\n\t ? aLastPrev // vertical to insert from b\n\t : aLastPrev - 1; // horizontal to delete from a\n\n\t // To get last point of path segment, move along diagonal of common items.\n\t const bFirst = bR + aFirst - kR;\n\t const nCommonR = countCommonItemsR(\n\t aStart,\n\t aFirst - 1,\n\t bStart,\n\t bFirst - 1,\n\t isCommon\n\t );\n\t const aLast = aFirst - nCommonR;\n\t aIndexPrev1 = aIndexesR[iR];\n\t aIndexesR[iR] = aLast;\n\t if (kMinOverlapR <= kR && kR <= kMaxOverlapR) {\n\t // Solve for iF of forward path with d changes in diagonal kR:\n\t // kF = kR - baDeltaLength\n\t // kF = 2 * iF - d\n\t const iF = (d + (kR - baDeltaLength)) / 2;\n\n\t // If this reverse path overlaps the forward path in this diagonal,\n\t // then this is a middle change of the index intervals.\n\t if (iF <= iMaxF && aLast - 1 <= aIndexesF[iF]) {\n\t const bLast = bFirst - nCommonR;\n\t division.nChangePreceding = d;\n\t if (d === aLast + bLast - aStart - bStart) {\n\t // Optimization: number of changes in reverse direction\n\t // is equal to number of items in preceding interval,\n\t // therefore it cannot contain any common items.\n\t division.aEndPreceding = aStart;\n\t division.bEndPreceding = bStart;\n\t } else {\n\t division.aEndPreceding = aLast;\n\t division.bEndPreceding = bLast;\n\t }\n\t division.nCommonPreceding = nCommonR;\n\t if (nCommonR !== 0) {\n\t // The last point of reverse path segment is start of common subsequence.\n\t division.aCommonPreceding = aLast;\n\t division.bCommonPreceding = bLast;\n\t }\n\t division.nChangeFollowing = d - 1;\n\t if (d === 1) {\n\t // There is no previous path segment.\n\t division.nCommonFollowing = 0;\n\t division.aStartFollowing = aEnd;\n\t division.bStartFollowing = bEnd;\n\t } else {\n\t // Unlike the Myers algorithm which finds only the middle “snake”\n\t // this package can find two common subsequences per division.\n\t // Last point of previous path segment is on an adjacent diagonal.\n\t const bLastPrev = bR + aLastPrev - (insert ? kR - 1 : kR + 1);\n\n\t // Because of invariant that intervals following the middle change\n\t // cannot have common items at the start,\n\t // move in forward direction along a diagonal of common items.\n\t const nCommonF = countCommonItemsF(\n\t aLastPrev,\n\t aEnd,\n\t bLastPrev,\n\t bEnd,\n\t isCommon\n\t );\n\t division.nCommonFollowing = nCommonF;\n\t if (nCommonF !== 0) {\n\t // The last point of reverse path segment is start of common subsequence.\n\t division.aCommonFollowing = aLastPrev;\n\t division.bCommonFollowing = bLastPrev;\n\t }\n\t const aStartFollowing = aLastPrev + nCommonF; // aFirstPrev\n\t const bStartFollowing = bLastPrev + nCommonF; // bFirstPrev\n\n\t if (d - 1 === aEnd + bEnd - aStartFollowing - bStartFollowing) {\n\t // Optimization: number of changes in forward direction\n\t // is equal to number of items in following interval,\n\t // therefore it cannot contain any common items.\n\t division.aStartFollowing = aEnd;\n\t division.bStartFollowing = bEnd;\n\t } else {\n\t division.aStartFollowing = aStartFollowing;\n\t division.bStartFollowing = bStartFollowing;\n\t }\n\t }\n\t return true;\n\t }\n\t }\n\t }\n\t return false;\n\t};\n\n\t// Given index intervals and input function to compare items at indexes,\n\t// divide at the middle change.\n\t//\n\t// DO NOT CALL if start === end, because interval cannot contain common items\n\t// and because this function will throw the “no overlap” error.\n\tconst divide = (\n\t nChange,\n\t aStart,\n\t aEnd,\n\t bStart,\n\t bEnd,\n\t isCommon,\n\t aIndexesF,\n\t aIndexesR,\n\t division // output\n\t) => {\n\t const bF = bStart - aStart; // bIndex = bF + aIndex - kF\n\t const bR = bEnd - aEnd; // bIndex = bR + aIndex - kR\n\t const aLength = aEnd - aStart;\n\t const bLength = bEnd - bStart;\n\n\t // Because graph has square or portrait orientation,\n\t // length difference is minimum number of items to insert from b.\n\t // Corresponding forward and reverse diagonals in graph\n\t // depend on length difference of the sequences:\n\t // kF = kR - baDeltaLength\n\t // kR = kF + baDeltaLength\n\t const baDeltaLength = bLength - aLength;\n\n\t // Optimization: max diagonal in graph intersects corner of shorter side.\n\t let iMaxF = aLength;\n\t let iMaxR = aLength;\n\n\t // Initialize no changes yet in forward or reverse direction:\n\t aIndexesF[0] = aStart - 1; // at open start of interval, outside closed start\n\t aIndexesR[0] = aEnd; // at open end of interval\n\n\t if (baDeltaLength % 2 === 0) {\n\t // The number of changes in paths is 2 * d if length difference is even.\n\t const dMin = (nChange || baDeltaLength) / 2;\n\t const dMax = (aLength + bLength) / 2;\n\t for (let d = 1; d <= dMax; d += 1) {\n\t iMaxF = extendPathsF(d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF);\n\t if (d < dMin) {\n\t iMaxR = extendPathsR(d, aStart, bStart, bR, isCommon, aIndexesR, iMaxR);\n\t } else if (\n\t // If a reverse path overlaps a forward path in the same diagonal,\n\t // return a division of the index intervals at the middle change.\n\t extendOverlappablePathsR(\n\t d,\n\t aStart,\n\t aEnd,\n\t bStart,\n\t bEnd,\n\t isCommon,\n\t aIndexesF,\n\t iMaxF,\n\t aIndexesR,\n\t iMaxR,\n\t division\n\t )\n\t ) {\n\t return;\n\t }\n\t }\n\t } else {\n\t // The number of changes in paths is 2 * d - 1 if length difference is odd.\n\t const dMin = ((nChange || baDeltaLength) + 1) / 2;\n\t const dMax = (aLength + bLength + 1) / 2;\n\n\t // Unroll first half iteration so loop extends the relevant pairs of paths.\n\t // Because of invariant that intervals have no common items at start or end,\n\t // and limitation not to call divide with empty intervals,\n\t // therefore it cannot be called if a forward path with one change\n\t // would overlap a reverse path with no changes, even if dMin === 1.\n\t let d = 1;\n\t iMaxF = extendPathsF(d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF);\n\t for (d += 1; d <= dMax; d += 1) {\n\t iMaxR = extendPathsR(\n\t d - 1,\n\t aStart,\n\t bStart,\n\t bR,\n\t isCommon,\n\t aIndexesR,\n\t iMaxR\n\t );\n\t if (d < dMin) {\n\t iMaxF = extendPathsF(d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF);\n\t } else if (\n\t // If a forward path overlaps a reverse path in the same diagonal,\n\t // return a division of the index intervals at the middle change.\n\t extendOverlappablePathsF(\n\t d,\n\t aStart,\n\t aEnd,\n\t bStart,\n\t bEnd,\n\t isCommon,\n\t aIndexesF,\n\t iMaxF,\n\t aIndexesR,\n\t iMaxR,\n\t division\n\t )\n\t ) {\n\t return;\n\t }\n\t }\n\t }\n\n\t /* istanbul ignore next */\n\t throw new Error(\n\t `${pkg}: no overlap aStart=${aStart} aEnd=${aEnd} bStart=${bStart} bEnd=${bEnd}`\n\t );\n\t};\n\n\t// Given index intervals and input function to compare items at indexes,\n\t// return by output function the number of adjacent items and starting indexes\n\t// of each common subsequence. Divide and conquer with only linear space.\n\t//\n\t// The index intervals are half open [start, end) like array slice method.\n\t// DO NOT CALL if start === end, because interval cannot contain common items\n\t// and because divide function will throw the “no overlap” error.\n\tconst findSubsequences = (\n\t nChange,\n\t aStart,\n\t aEnd,\n\t bStart,\n\t bEnd,\n\t transposed,\n\t callbacks,\n\t aIndexesF,\n\t aIndexesR,\n\t division // temporary memory, not input nor output\n\t) => {\n\t if (bEnd - bStart < aEnd - aStart) {\n\t // Transpose graph so it has portrait instead of landscape orientation.\n\t // Always compare shorter to longer sequence for consistency and optimization.\n\t transposed = !transposed;\n\t if (transposed && callbacks.length === 1) {\n\t // Lazily wrap callback functions to swap args if graph is transposed.\n\t const {foundSubsequence, isCommon} = callbacks[0];\n\t callbacks[1] = {\n\t foundSubsequence: (nCommon, bCommon, aCommon) => {\n\t foundSubsequence(nCommon, aCommon, bCommon);\n\t },\n\t isCommon: (bIndex, aIndex) => isCommon(aIndex, bIndex)\n\t };\n\t }\n\t const tStart = aStart;\n\t const tEnd = aEnd;\n\t aStart = bStart;\n\t aEnd = bEnd;\n\t bStart = tStart;\n\t bEnd = tEnd;\n\t }\n\t const {foundSubsequence, isCommon} = callbacks[transposed ? 1 : 0];\n\n\t // Divide the index intervals at the middle change.\n\t divide(\n\t nChange,\n\t aStart,\n\t aEnd,\n\t bStart,\n\t bEnd,\n\t isCommon,\n\t aIndexesF,\n\t aIndexesR,\n\t division\n\t );\n\t const {\n\t nChangePreceding,\n\t aEndPreceding,\n\t bEndPreceding,\n\t nCommonPreceding,\n\t aCommonPreceding,\n\t bCommonPreceding,\n\t nCommonFollowing,\n\t aCommonFollowing,\n\t bCommonFollowing,\n\t nChangeFollowing,\n\t aStartFollowing,\n\t bStartFollowing\n\t } = division;\n\n\t // Unless either index interval is empty, they might contain common items.\n\t if (aStart < aEndPreceding && bStart < bEndPreceding) {\n\t // Recursely find and return common subsequences preceding the division.\n\t findSubsequences(\n\t nChangePreceding,\n\t aStart,\n\t aEndPreceding,\n\t bStart,\n\t bEndPreceding,\n\t transposed,\n\t callbacks,\n\t aIndexesF,\n\t aIndexesR,\n\t division\n\t );\n\t }\n\n\t // Return common subsequences that are adjacent to the middle change.\n\t if (nCommonPreceding !== 0) {\n\t foundSubsequence(nCommonPreceding, aCommonPreceding, bCommonPreceding);\n\t }\n\t if (nCommonFollowing !== 0) {\n\t foundSubsequence(nCommonFollowing, aCommonFollowing, bCommonFollowing);\n\t }\n\n\t // Unless either index interval is empty, they might contain common items.\n\t if (aStartFollowing < aEnd && bStartFollowing < bEnd) {\n\t // Recursely find and return common subsequences following the division.\n\t findSubsequences(\n\t nChangeFollowing,\n\t aStartFollowing,\n\t aEnd,\n\t bStartFollowing,\n\t bEnd,\n\t transposed,\n\t callbacks,\n\t aIndexesF,\n\t aIndexesR,\n\t division\n\t );\n\t }\n\t};\n\tconst validateLength = (name, arg) => {\n\t if (typeof arg !== 'number') {\n\t throw new TypeError(`${pkg}: ${name} typeof ${typeof arg} is not a number`);\n\t }\n\t if (!Number.isSafeInteger(arg)) {\n\t throw new RangeError(`${pkg}: ${name} value ${arg} is not a safe integer`);\n\t }\n\t if (arg < 0) {\n\t throw new RangeError(`${pkg}: ${name} value ${arg} is a negative integer`);\n\t }\n\t};\n\tconst validateCallback = (name, arg) => {\n\t const type = typeof arg;\n\t if (type !== 'function') {\n\t throw new TypeError(`${pkg}: ${name} typeof ${type} is not a function`);\n\t }\n\t};\n\n\t// Compare items in two sequences to find a longest common subsequence.\n\t// Given lengths of sequences and input function to compare items at indexes,\n\t// return by output function the number of adjacent items and starting indexes\n\t// of each common subsequence.\n\tfunction diffSequence(aLength, bLength, isCommon, foundSubsequence) {\n\t validateLength('aLength', aLength);\n\t validateLength('bLength', bLength);\n\t validateCallback('isCommon', isCommon);\n\t validateCallback('foundSubsequence', foundSubsequence);\n\n\t // Count common items from the start in the forward direction.\n\t const nCommonF = countCommonItemsF(0, aLength, 0, bLength, isCommon);\n\t if (nCommonF !== 0) {\n\t foundSubsequence(nCommonF, 0, 0);\n\t }\n\n\t // Unless both sequences consist of common items only,\n\t // find common items in the half-trimmed index intervals.\n\t if (aLength !== nCommonF || bLength !== nCommonF) {\n\t // Invariant: intervals do not have common items at the start.\n\t // The start of an index interval is closed like array slice method.\n\t const aStart = nCommonF;\n\t const bStart = nCommonF;\n\n\t // Count common items from the end in the reverse direction.\n\t const nCommonR = countCommonItemsR(\n\t aStart,\n\t aLength - 1,\n\t bStart,\n\t bLength - 1,\n\t isCommon\n\t );\n\n\t // Invariant: intervals do not have common items at the end.\n\t // The end of an index interval is open like array slice method.\n\t const aEnd = aLength - nCommonR;\n\t const bEnd = bLength - nCommonR;\n\n\t // Unless one sequence consists of common items only,\n\t // therefore the other trimmed index interval consists of changes only,\n\t // find common items in the trimmed index intervals.\n\t const nCommonFR = nCommonF + nCommonR;\n\t if (aLength !== nCommonFR && bLength !== nCommonFR) {\n\t const nChange = 0; // number of change items is not yet known\n\t const transposed = false; // call the original unwrapped functions\n\t const callbacks = [\n\t {\n\t foundSubsequence,\n\t isCommon\n\t }\n\t ];\n\n\t // Indexes in sequence a of last points in furthest reaching paths\n\t // from outside the start at top left in the forward direction:\n\t const aIndexesF = [NOT_YET_SET];\n\t // from the end at bottom right in the reverse direction:\n\t const aIndexesR = [NOT_YET_SET];\n\n\t // Initialize one object as output of all calls to divide function.\n\t const division = {\n\t aCommonFollowing: NOT_YET_SET,\n\t aCommonPreceding: NOT_YET_SET,\n\t aEndPreceding: NOT_YET_SET,\n\t aStartFollowing: NOT_YET_SET,\n\t bCommonFollowing: NOT_YET_SET,\n\t bCommonPreceding: NOT_YET_SET,\n\t bEndPreceding: NOT_YET_SET,\n\t bStartFollowing: NOT_YET_SET,\n\t nChangeFollowing: NOT_YET_SET,\n\t nChangePreceding: NOT_YET_SET,\n\t nCommonFollowing: NOT_YET_SET,\n\t nCommonPreceding: NOT_YET_SET\n\t };\n\n\t // Find and return common subsequences in the trimmed index intervals.\n\t findSubsequences(\n\t nChange,\n\t aStart,\n\t aEnd,\n\t bStart,\n\t bEnd,\n\t transposed,\n\t callbacks,\n\t aIndexesF,\n\t aIndexesR,\n\t division\n\t );\n\t }\n\t if (nCommonR !== 0) {\n\t foundSubsequence(nCommonR, aEnd, bEnd);\n\t }\n\t }\n\t}\n\treturn build;\n}\n\nvar buildExports = requireBuild();\nvar diffSequences = /*@__PURE__*/getDefaultExportFromCjs(buildExports);\n\nfunction formatTrailingSpaces(line, trailingSpaceFormatter) {\n\treturn line.replace(/\\s+$/, (match) => trailingSpaceFormatter(match));\n}\nfunction printDiffLine(line, isFirstOrLast, color, indicator, trailingSpaceFormatter, emptyFirstOrLastLinePlaceholder) {\n\treturn line.length !== 0 ? color(`${indicator} ${formatTrailingSpaces(line, trailingSpaceFormatter)}`) : indicator !== \" \" ? color(indicator) : isFirstOrLast && emptyFirstOrLastLinePlaceholder.length !== 0 ? color(`${indicator} ${emptyFirstOrLastLinePlaceholder}`) : \"\";\n}\nfunction printDeleteLine(line, isFirstOrLast, { aColor, aIndicator, changeLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder }) {\n\treturn printDiffLine(line, isFirstOrLast, aColor, aIndicator, changeLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder);\n}\nfunction printInsertLine(line, isFirstOrLast, { bColor, bIndicator, changeLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder }) {\n\treturn printDiffLine(line, isFirstOrLast, bColor, bIndicator, changeLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder);\n}\nfunction printCommonLine(line, isFirstOrLast, { commonColor, commonIndicator, commonLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder }) {\n\treturn printDiffLine(line, isFirstOrLast, commonColor, commonIndicator, commonLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder);\n}\n// In GNU diff format, indexes are one-based instead of zero-based.\nfunction createPatchMark(aStart, aEnd, bStart, bEnd, { patchColor }) {\n\treturn patchColor(`@@ -${aStart + 1},${aEnd - aStart} +${bStart + 1},${bEnd - bStart} @@`);\n}\n// jest --no-expand\n//\n// Given array of aligned strings with inverse highlight formatting,\n// return joined lines with diff formatting (and patch marks, if needed).\nfunction joinAlignedDiffsNoExpand(diffs, options) {\n\tconst iLength = diffs.length;\n\tconst nContextLines = options.contextLines;\n\tconst nContextLines2 = nContextLines + nContextLines;\n\t// First pass: count output lines and see if it has patches.\n\tlet jLength = iLength;\n\tlet hasExcessAtStartOrEnd = false;\n\tlet nExcessesBetweenChanges = 0;\n\tlet i = 0;\n\twhile (i !== iLength) {\n\t\tconst iStart = i;\n\t\twhile (i !== iLength && diffs[i][0] === DIFF_EQUAL) {\n\t\t\ti += 1;\n\t\t}\n\t\tif (iStart !== i) {\n\t\t\tif (iStart === 0) {\n\t\t\t\t// at start\n\t\t\t\tif (i > nContextLines) {\n\t\t\t\t\tjLength -= i - nContextLines;\n\t\t\t\t\thasExcessAtStartOrEnd = true;\n\t\t\t\t}\n\t\t\t} else if (i === iLength) {\n\t\t\t\t// at end\n\t\t\t\tconst n = i - iStart;\n\t\t\t\tif (n > nContextLines) {\n\t\t\t\t\tjLength -= n - nContextLines;\n\t\t\t\t\thasExcessAtStartOrEnd = true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// between changes\n\t\t\t\tconst n = i - iStart;\n\t\t\t\tif (n > nContextLines2) {\n\t\t\t\t\tjLength -= n - nContextLines2;\n\t\t\t\t\tnExcessesBetweenChanges += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\twhile (i !== iLength && diffs[i][0] !== DIFF_EQUAL) {\n\t\t\ti += 1;\n\t\t}\n\t}\n\tconst hasPatch = nExcessesBetweenChanges !== 0 || hasExcessAtStartOrEnd;\n\tif (nExcessesBetweenChanges !== 0) {\n\t\tjLength += nExcessesBetweenChanges + 1;\n\t} else if (hasExcessAtStartOrEnd) {\n\t\tjLength += 1;\n\t}\n\tconst jLast = jLength - 1;\n\tconst lines = [];\n\tlet jPatchMark = 0;\n\tif (hasPatch) {\n\t\tlines.push(\"\");\n\t}\n\t// Indexes of expected or received lines in current patch:\n\tlet aStart = 0;\n\tlet bStart = 0;\n\tlet aEnd = 0;\n\tlet bEnd = 0;\n\tconst pushCommonLine = (line) => {\n\t\tconst j = lines.length;\n\t\tlines.push(printCommonLine(line, j === 0 || j === jLast, options));\n\t\taEnd += 1;\n\t\tbEnd += 1;\n\t};\n\tconst pushDeleteLine = (line) => {\n\t\tconst j = lines.length;\n\t\tlines.push(printDeleteLine(line, j === 0 || j === jLast, options));\n\t\taEnd += 1;\n\t};\n\tconst pushInsertLine = (line) => {\n\t\tconst j = lines.length;\n\t\tlines.push(printInsertLine(line, j === 0 || j === jLast, options));\n\t\tbEnd += 1;\n\t};\n\t// Second pass: push lines with diff formatting (and patch marks, if needed).\n\ti = 0;\n\twhile (i !== iLength) {\n\t\tlet iStart = i;\n\t\twhile (i !== iLength && diffs[i][0] === DIFF_EQUAL) {\n\t\t\ti += 1;\n\t\t}\n\t\tif (iStart !== i) {\n\t\t\tif (iStart === 0) {\n\t\t\t\t// at beginning\n\t\t\t\tif (i > nContextLines) {\n\t\t\t\t\tiStart = i - nContextLines;\n\t\t\t\t\taStart = iStart;\n\t\t\t\t\tbStart = iStart;\n\t\t\t\t\taEnd = aStart;\n\t\t\t\t\tbEnd = bStart;\n\t\t\t\t}\n\t\t\t\tfor (let iCommon = iStart; iCommon !== i; iCommon += 1) {\n\t\t\t\t\tpushCommonLine(diffs[iCommon][1]);\n\t\t\t\t}\n\t\t\t} else if (i === iLength) {\n\t\t\t\t// at end\n\t\t\t\tconst iEnd = i - iStart > nContextLines ? iStart + nContextLines : i;\n\t\t\t\tfor (let iCommon = iStart; iCommon !== iEnd; iCommon += 1) {\n\t\t\t\t\tpushCommonLine(diffs[iCommon][1]);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// between changes\n\t\t\t\tconst nCommon = i - iStart;\n\t\t\t\tif (nCommon > nContextLines2) {\n\t\t\t\t\tconst iEnd = iStart + nContextLines;\n\t\t\t\t\tfor (let iCommon = iStart; iCommon !== iEnd; iCommon += 1) {\n\t\t\t\t\t\tpushCommonLine(diffs[iCommon][1]);\n\t\t\t\t\t}\n\t\t\t\t\tlines[jPatchMark] = createPatchMark(aStart, aEnd, bStart, bEnd, options);\n\t\t\t\t\tjPatchMark = lines.length;\n\t\t\t\t\tlines.push(\"\");\n\t\t\t\t\tconst nOmit = nCommon - nContextLines2;\n\t\t\t\t\taStart = aEnd + nOmit;\n\t\t\t\t\tbStart = bEnd + nOmit;\n\t\t\t\t\taEnd = aStart;\n\t\t\t\t\tbEnd = bStart;\n\t\t\t\t\tfor (let iCommon = i - nContextLines; iCommon !== i; iCommon += 1) {\n\t\t\t\t\t\tpushCommonLine(diffs[iCommon][1]);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (let iCommon = iStart; iCommon !== i; iCommon += 1) {\n\t\t\t\t\t\tpushCommonLine(diffs[iCommon][1]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\twhile (i !== iLength && diffs[i][0] === DIFF_DELETE) {\n\t\t\tpushDeleteLine(diffs[i][1]);\n\t\t\ti += 1;\n\t\t}\n\t\twhile (i !== iLength && diffs[i][0] === DIFF_INSERT) {\n\t\t\tpushInsertLine(diffs[i][1]);\n\t\t\ti += 1;\n\t\t}\n\t}\n\tif (hasPatch) {\n\t\tlines[jPatchMark] = createPatchMark(aStart, aEnd, bStart, bEnd, options);\n\t}\n\treturn lines.join(\"\\n\");\n}\n// jest --expand\n//\n// Given array of aligned strings with inverse highlight formatting,\n// return joined lines with diff formatting.\nfunction joinAlignedDiffsExpand(diffs, options) {\n\treturn diffs.map((diff, i, diffs) => {\n\t\tconst line = diff[1];\n\t\tconst isFirstOrLast = i === 0 || i === diffs.length - 1;\n\t\tswitch (diff[0]) {\n\t\t\tcase DIFF_DELETE: return printDeleteLine(line, isFirstOrLast, options);\n\t\t\tcase DIFF_INSERT: return printInsertLine(line, isFirstOrLast, options);\n\t\t\tdefault: return printCommonLine(line, isFirstOrLast, options);\n\t\t}\n\t}).join(\"\\n\");\n}\n\nconst noColor = (string) => string;\nconst DIFF_CONTEXT_DEFAULT = 5;\nconst DIFF_TRUNCATE_THRESHOLD_DEFAULT = 0;\nfunction getDefaultOptions() {\n\treturn {\n\t\taAnnotation: \"Expected\",\n\t\taColor: c.green,\n\t\taIndicator: \"-\",\n\t\tbAnnotation: \"Received\",\n\t\tbColor: c.red,\n\t\tbIndicator: \"+\",\n\t\tchangeColor: c.inverse,\n\t\tchangeLineTrailingSpaceColor: noColor,\n\t\tcommonColor: c.dim,\n\t\tcommonIndicator: \" \",\n\t\tcommonLineTrailingSpaceColor: noColor,\n\t\tcompareKeys: undefined,\n\t\tcontextLines: DIFF_CONTEXT_DEFAULT,\n\t\temptyFirstOrLastLinePlaceholder: \"\",\n\t\texpand: false,\n\t\tincludeChangeCounts: false,\n\t\tomitAnnotationLines: false,\n\t\tpatchColor: c.yellow,\n\t\tprintBasicPrototype: false,\n\t\ttruncateThreshold: DIFF_TRUNCATE_THRESHOLD_DEFAULT,\n\t\ttruncateAnnotation: \"... Diff result is truncated\",\n\t\ttruncateAnnotationColor: noColor\n\t};\n}\nfunction getCompareKeys(compareKeys) {\n\treturn compareKeys && typeof compareKeys === \"function\" ? compareKeys : undefined;\n}\nfunction getContextLines(contextLines) {\n\treturn typeof contextLines === \"number\" && Number.isSafeInteger(contextLines) && contextLines >= 0 ? contextLines : DIFF_CONTEXT_DEFAULT;\n}\n// Pure function returns options with all properties.\nfunction normalizeDiffOptions(options = {}) {\n\treturn {\n\t\t...getDefaultOptions(),\n\t\t...options,\n\t\tcompareKeys: getCompareKeys(options.compareKeys),\n\t\tcontextLines: getContextLines(options.contextLines)\n\t};\n}\n\nfunction isEmptyString(lines) {\n\treturn lines.length === 1 && lines[0].length === 0;\n}\nfunction countChanges(diffs) {\n\tlet a = 0;\n\tlet b = 0;\n\tdiffs.forEach((diff) => {\n\t\tswitch (diff[0]) {\n\t\t\tcase DIFF_DELETE:\n\t\t\t\ta += 1;\n\t\t\t\tbreak;\n\t\t\tcase DIFF_INSERT:\n\t\t\t\tb += 1;\n\t\t\t\tbreak;\n\t\t}\n\t});\n\treturn {\n\t\ta,\n\t\tb\n\t};\n}\nfunction printAnnotation({ aAnnotation, aColor, aIndicator, bAnnotation, bColor, bIndicator, includeChangeCounts, omitAnnotationLines }, changeCounts) {\n\tif (omitAnnotationLines) {\n\t\treturn \"\";\n\t}\n\tlet aRest = \"\";\n\tlet bRest = \"\";\n\tif (includeChangeCounts) {\n\t\tconst aCount = String(changeCounts.a);\n\t\tconst bCount = String(changeCounts.b);\n\t\t// Padding right aligns the ends of the annotations.\n\t\tconst baAnnotationLengthDiff = bAnnotation.length - aAnnotation.length;\n\t\tconst aAnnotationPadding = \" \".repeat(Math.max(0, baAnnotationLengthDiff));\n\t\tconst bAnnotationPadding = \" \".repeat(Math.max(0, -baAnnotationLengthDiff));\n\t\t// Padding left aligns the ends of the counts.\n\t\tconst baCountLengthDiff = bCount.length - aCount.length;\n\t\tconst aCountPadding = \" \".repeat(Math.max(0, baCountLengthDiff));\n\t\tconst bCountPadding = \" \".repeat(Math.max(0, -baCountLengthDiff));\n\t\taRest = `${aAnnotationPadding} ${aIndicator} ${aCountPadding}${aCount}`;\n\t\tbRest = `${bAnnotationPadding} ${bIndicator} ${bCountPadding}${bCount}`;\n\t}\n\tconst a = `${aIndicator} ${aAnnotation}${aRest}`;\n\tconst b = `${bIndicator} ${bAnnotation}${bRest}`;\n\treturn `${aColor(a)}\\n${bColor(b)}\\n\\n`;\n}\nfunction printDiffLines(diffs, truncated, options) {\n\treturn printAnnotation(options, countChanges(diffs)) + (options.expand ? joinAlignedDiffsExpand(diffs, options) : joinAlignedDiffsNoExpand(diffs, options)) + (truncated ? options.truncateAnnotationColor(`\\n${options.truncateAnnotation}`) : \"\");\n}\n// Compare two arrays of strings line-by-line. Format as comparison lines.\nfunction diffLinesUnified(aLines, bLines, options) {\n\tconst normalizedOptions = normalizeDiffOptions(options);\n\tconst [diffs, truncated] = diffLinesRaw(isEmptyString(aLines) ? [] : aLines, isEmptyString(bLines) ? [] : bLines, normalizedOptions);\n\treturn printDiffLines(diffs, truncated, normalizedOptions);\n}\n// Given two pairs of arrays of strings:\n// Compare the pair of comparison arrays line-by-line.\n// Format the corresponding lines in the pair of displayable arrays.\nfunction diffLinesUnified2(aLinesDisplay, bLinesDisplay, aLinesCompare, bLinesCompare, options) {\n\tif (isEmptyString(aLinesDisplay) && isEmptyString(aLinesCompare)) {\n\t\taLinesDisplay = [];\n\t\taLinesCompare = [];\n\t}\n\tif (isEmptyString(bLinesDisplay) && isEmptyString(bLinesCompare)) {\n\t\tbLinesDisplay = [];\n\t\tbLinesCompare = [];\n\t}\n\tif (aLinesDisplay.length !== aLinesCompare.length || bLinesDisplay.length !== bLinesCompare.length) {\n\t\t// Fall back to diff of display lines.\n\t\treturn diffLinesUnified(aLinesDisplay, bLinesDisplay, options);\n\t}\n\tconst [diffs, truncated] = diffLinesRaw(aLinesCompare, bLinesCompare, options);\n\t// Replace comparison lines with displayable lines.\n\tlet aIndex = 0;\n\tlet bIndex = 0;\n\tdiffs.forEach((diff) => {\n\t\tswitch (diff[0]) {\n\t\t\tcase DIFF_DELETE:\n\t\t\t\tdiff[1] = aLinesDisplay[aIndex];\n\t\t\t\taIndex += 1;\n\t\t\t\tbreak;\n\t\t\tcase DIFF_INSERT:\n\t\t\t\tdiff[1] = bLinesDisplay[bIndex];\n\t\t\t\tbIndex += 1;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tdiff[1] = bLinesDisplay[bIndex];\n\t\t\t\taIndex += 1;\n\t\t\t\tbIndex += 1;\n\t\t}\n\t});\n\treturn printDiffLines(diffs, truncated, normalizeDiffOptions(options));\n}\n// Compare two arrays of strings line-by-line.\nfunction diffLinesRaw(aLines, bLines, options) {\n\tconst truncate = (options === null || options === void 0 ? void 0 : options.truncateThreshold) ?? false;\n\tconst truncateThreshold = Math.max(Math.floor((options === null || options === void 0 ? void 0 : options.truncateThreshold) ?? 0), 0);\n\tconst aLength = truncate ? Math.min(aLines.length, truncateThreshold) : aLines.length;\n\tconst bLength = truncate ? Math.min(bLines.length, truncateThreshold) : bLines.length;\n\tconst truncated = aLength !== aLines.length || bLength !== bLines.length;\n\tconst isCommon = (aIndex, bIndex) => aLines[aIndex] === bLines[bIndex];\n\tconst diffs = [];\n\tlet aIndex = 0;\n\tlet bIndex = 0;\n\tconst foundSubsequence = (nCommon, aCommon, bCommon) => {\n\t\tfor (; aIndex !== aCommon; aIndex += 1) {\n\t\t\tdiffs.push(new Diff(DIFF_DELETE, aLines[aIndex]));\n\t\t}\n\t\tfor (; bIndex !== bCommon; bIndex += 1) {\n\t\t\tdiffs.push(new Diff(DIFF_INSERT, bLines[bIndex]));\n\t\t}\n\t\tfor (; nCommon !== 0; nCommon -= 1, aIndex += 1, bIndex += 1) {\n\t\t\tdiffs.push(new Diff(DIFF_EQUAL, bLines[bIndex]));\n\t\t}\n\t};\n\tdiffSequences(aLength, bLength, isCommon, foundSubsequence);\n\t// After the last common subsequence, push remaining change items.\n\tfor (; aIndex !== aLength; aIndex += 1) {\n\t\tdiffs.push(new Diff(DIFF_DELETE, aLines[aIndex]));\n\t}\n\tfor (; bIndex !== bLength; bIndex += 1) {\n\t\tdiffs.push(new Diff(DIFF_INSERT, bLines[bIndex]));\n\t}\n\treturn [diffs, truncated];\n}\n\n// get the type of a value with handling the edge cases like `typeof []`\n// and `typeof null`\nfunction getType(value) {\n\tif (value === undefined) {\n\t\treturn \"undefined\";\n\t} else if (value === null) {\n\t\treturn \"null\";\n\t} else if (Array.isArray(value)) {\n\t\treturn \"array\";\n\t} else if (typeof value === \"boolean\") {\n\t\treturn \"boolean\";\n\t} else if (typeof value === \"function\") {\n\t\treturn \"function\";\n\t} else if (typeof value === \"number\") {\n\t\treturn \"number\";\n\t} else if (typeof value === \"string\") {\n\t\treturn \"string\";\n\t} else if (typeof value === \"bigint\") {\n\t\treturn \"bigint\";\n\t} else if (typeof value === \"object\") {\n\t\tif (value != null) {\n\t\t\tif (value.constructor === RegExp) {\n\t\t\t\treturn \"regexp\";\n\t\t\t} else if (value.constructor === Map) {\n\t\t\t\treturn \"map\";\n\t\t\t} else if (value.constructor === Set) {\n\t\t\t\treturn \"set\";\n\t\t\t} else if (value.constructor === Date) {\n\t\t\t\treturn \"date\";\n\t\t\t}\n\t\t}\n\t\treturn \"object\";\n\t} else if (typeof value === \"symbol\") {\n\t\treturn \"symbol\";\n\t}\n\tthrow new Error(`value of unknown type: ${value}`);\n}\n\n// platforms compatible\nfunction getNewLineSymbol(string) {\n\treturn string.includes(\"\\r\\n\") ? \"\\r\\n\" : \"\\n\";\n}\nfunction diffStrings(a, b, options) {\n\tconst truncate = (options === null || options === void 0 ? void 0 : options.truncateThreshold) ?? false;\n\tconst truncateThreshold = Math.max(Math.floor((options === null || options === void 0 ? void 0 : options.truncateThreshold) ?? 0), 0);\n\tlet aLength = a.length;\n\tlet bLength = b.length;\n\tif (truncate) {\n\t\tconst aMultipleLines = a.includes(\"\\n\");\n\t\tconst bMultipleLines = b.includes(\"\\n\");\n\t\tconst aNewLineSymbol = getNewLineSymbol(a);\n\t\tconst bNewLineSymbol = getNewLineSymbol(b);\n\t\t// multiple-lines string expects a newline to be appended at the end\n\t\tconst _a = aMultipleLines ? `${a.split(aNewLineSymbol, truncateThreshold).join(aNewLineSymbol)}\\n` : a;\n\t\tconst _b = bMultipleLines ? `${b.split(bNewLineSymbol, truncateThreshold).join(bNewLineSymbol)}\\n` : b;\n\t\taLength = _a.length;\n\t\tbLength = _b.length;\n\t}\n\tconst truncated = aLength !== a.length || bLength !== b.length;\n\tconst isCommon = (aIndex, bIndex) => a[aIndex] === b[bIndex];\n\tlet aIndex = 0;\n\tlet bIndex = 0;\n\tconst diffs = [];\n\tconst foundSubsequence = (nCommon, aCommon, bCommon) => {\n\t\tif (aIndex !== aCommon) {\n\t\t\tdiffs.push(new Diff(DIFF_DELETE, a.slice(aIndex, aCommon)));\n\t\t}\n\t\tif (bIndex !== bCommon) {\n\t\t\tdiffs.push(new Diff(DIFF_INSERT, b.slice(bIndex, bCommon)));\n\t\t}\n\t\taIndex = aCommon + nCommon;\n\t\tbIndex = bCommon + nCommon;\n\t\tdiffs.push(new Diff(DIFF_EQUAL, b.slice(bCommon, bIndex)));\n\t};\n\tdiffSequences(aLength, bLength, isCommon, foundSubsequence);\n\t// After the last common subsequence, push remaining change items.\n\tif (aIndex !== aLength) {\n\t\tdiffs.push(new Diff(DIFF_DELETE, a.slice(aIndex)));\n\t}\n\tif (bIndex !== bLength) {\n\t\tdiffs.push(new Diff(DIFF_INSERT, b.slice(bIndex)));\n\t}\n\treturn [diffs, truncated];\n}\n\n// Given change op and array of diffs, return concatenated string:\n// * include common strings\n// * include change strings which have argument op with changeColor\n// * exclude change strings which have opposite op\nfunction concatenateRelevantDiffs(op, diffs, changeColor) {\n\treturn diffs.reduce((reduced, diff) => reduced + (diff[0] === DIFF_EQUAL ? diff[1] : diff[0] === op && diff[1].length !== 0 ? changeColor(diff[1]) : \"\"), \"\");\n}\n// Encapsulate change lines until either a common newline or the end.\nclass ChangeBuffer {\n\top;\n\tline;\n\tlines;\n\tchangeColor;\n\tconstructor(op, changeColor) {\n\t\tthis.op = op;\n\t\tthis.line = [];\n\t\tthis.lines = [];\n\t\tthis.changeColor = changeColor;\n\t}\n\tpushSubstring(substring) {\n\t\tthis.pushDiff(new Diff(this.op, substring));\n\t}\n\tpushLine() {\n\t\t// Assume call only if line has at least one diff,\n\t\t// therefore an empty line must have a diff which has an empty string.\n\t\t// If line has multiple diffs, then assume it has a common diff,\n\t\t// therefore change diffs have change color;\n\t\t// otherwise then it has line color only.\n\t\tthis.lines.push(this.line.length !== 1 ? new Diff(this.op, concatenateRelevantDiffs(this.op, this.line, this.changeColor)) : this.line[0][0] === this.op ? this.line[0] : new Diff(this.op, this.line[0][1]));\n\t\tthis.line.length = 0;\n\t}\n\tisLineEmpty() {\n\t\treturn this.line.length === 0;\n\t}\n\t// Minor input to buffer.\n\tpushDiff(diff) {\n\t\tthis.line.push(diff);\n\t}\n\t// Main input to buffer.\n\talign(diff) {\n\t\tconst string = diff[1];\n\t\tif (string.includes(\"\\n\")) {\n\t\t\tconst substrings = string.split(\"\\n\");\n\t\t\tconst iLast = substrings.length - 1;\n\t\t\tsubstrings.forEach((substring, i) => {\n\t\t\t\tif (i < iLast) {\n\t\t\t\t\t// The first substring completes the current change line.\n\t\t\t\t\t// A middle substring is a change line.\n\t\t\t\t\tthis.pushSubstring(substring);\n\t\t\t\t\tthis.pushLine();\n\t\t\t\t} else if (substring.length !== 0) {\n\t\t\t\t\t// The last substring starts a change line, if it is not empty.\n\t\t\t\t\t// Important: This non-empty condition also automatically omits\n\t\t\t\t\t// the newline appended to the end of expected and received strings.\n\t\t\t\t\tthis.pushSubstring(substring);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\t// Append non-multiline string to current change line.\n\t\t\tthis.pushDiff(diff);\n\t\t}\n\t}\n\t// Output from buffer.\n\tmoveLinesTo(lines) {\n\t\tif (!this.isLineEmpty()) {\n\t\t\tthis.pushLine();\n\t\t}\n\t\tlines.push(...this.lines);\n\t\tthis.lines.length = 0;\n\t}\n}\n// Encapsulate common and change lines.\nclass CommonBuffer {\n\tdeleteBuffer;\n\tinsertBuffer;\n\tlines;\n\tconstructor(deleteBuffer, insertBuffer) {\n\t\tthis.deleteBuffer = deleteBuffer;\n\t\tthis.insertBuffer = insertBuffer;\n\t\tthis.lines = [];\n\t}\n\tpushDiffCommonLine(diff) {\n\t\tthis.lines.push(diff);\n\t}\n\tpushDiffChangeLines(diff) {\n\t\tconst isDiffEmpty = diff[1].length === 0;\n\t\t// An empty diff string is redundant, unless a change line is empty.\n\t\tif (!isDiffEmpty || this.deleteBuffer.isLineEmpty()) {\n\t\t\tthis.deleteBuffer.pushDiff(diff);\n\t\t}\n\t\tif (!isDiffEmpty || this.insertBuffer.isLineEmpty()) {\n\t\t\tthis.insertBuffer.pushDiff(diff);\n\t\t}\n\t}\n\tflushChangeLines() {\n\t\tthis.deleteBuffer.moveLinesTo(this.lines);\n\t\tthis.insertBuffer.moveLinesTo(this.lines);\n\t}\n\t// Input to buffer.\n\talign(diff) {\n\t\tconst op = diff[0];\n\t\tconst string = diff[1];\n\t\tif (string.includes(\"\\n\")) {\n\t\t\tconst substrings = string.split(\"\\n\");\n\t\t\tconst iLast = substrings.length - 1;\n\t\t\tsubstrings.forEach((substring, i) => {\n\t\t\t\tif (i === 0) {\n\t\t\t\t\tconst subdiff = new Diff(op, substring);\n\t\t\t\t\tif (this.deleteBuffer.isLineEmpty() && this.insertBuffer.isLineEmpty()) {\n\t\t\t\t\t\t// If both current change lines are empty,\n\t\t\t\t\t\t// then the first substring is a common line.\n\t\t\t\t\t\tthis.flushChangeLines();\n\t\t\t\t\t\tthis.pushDiffCommonLine(subdiff);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// If either current change line is non-empty,\n\t\t\t\t\t\t// then the first substring completes the change lines.\n\t\t\t\t\t\tthis.pushDiffChangeLines(subdiff);\n\t\t\t\t\t\tthis.flushChangeLines();\n\t\t\t\t\t}\n\t\t\t\t} else if (i < iLast) {\n\t\t\t\t\t// A middle substring is a common line.\n\t\t\t\t\tthis.pushDiffCommonLine(new Diff(op, substring));\n\t\t\t\t} else if (substring.length !== 0) {\n\t\t\t\t\t// The last substring starts a change line, if it is not empty.\n\t\t\t\t\t// Important: This non-empty condition also automatically omits\n\t\t\t\t\t// the newline appended to the end of expected and received strings.\n\t\t\t\t\tthis.pushDiffChangeLines(new Diff(op, substring));\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\t// Append non-multiline string to current change lines.\n\t\t\t// Important: It cannot be at the end following empty change lines,\n\t\t\t// because newline appended to the end of expected and received strings.\n\t\t\tthis.pushDiffChangeLines(diff);\n\t\t}\n\t}\n\t// Output from buffer.\n\tgetLines() {\n\t\tthis.flushChangeLines();\n\t\treturn this.lines;\n\t}\n}\n// Given diffs from expected and received strings,\n// return new array of diffs split or joined into lines.\n//\n// To correctly align a change line at the end, the algorithm:\n// * assumes that a newline was appended to the strings\n// * omits the last newline from the output array\n//\n// Assume the function is not called:\n// * if either expected or received is empty string\n// * if neither expected nor received is multiline string\nfunction getAlignedDiffs(diffs, changeColor) {\n\tconst deleteBuffer = new ChangeBuffer(DIFF_DELETE, changeColor);\n\tconst insertBuffer = new ChangeBuffer(DIFF_INSERT, changeColor);\n\tconst commonBuffer = new CommonBuffer(deleteBuffer, insertBuffer);\n\tdiffs.forEach((diff) => {\n\t\tswitch (diff[0]) {\n\t\t\tcase DIFF_DELETE:\n\t\t\t\tdeleteBuffer.align(diff);\n\t\t\t\tbreak;\n\t\t\tcase DIFF_INSERT:\n\t\t\t\tinsertBuffer.align(diff);\n\t\t\t\tbreak;\n\t\t\tdefault: commonBuffer.align(diff);\n\t\t}\n\t});\n\treturn commonBuffer.getLines();\n}\n\nfunction hasCommonDiff(diffs, isMultiline) {\n\tif (isMultiline) {\n\t\t// Important: Ignore common newline that was appended to multiline strings!\n\t\tconst iLast = diffs.length - 1;\n\t\treturn diffs.some((diff, i) => diff[0] === DIFF_EQUAL && (i !== iLast || diff[1] !== \"\\n\"));\n\t}\n\treturn diffs.some((diff) => diff[0] === DIFF_EQUAL);\n}\n// Compare two strings character-by-character.\n// Format as comparison lines in which changed substrings have inverse colors.\nfunction diffStringsUnified(a, b, options) {\n\tif (a !== b && a.length !== 0 && b.length !== 0) {\n\t\tconst isMultiline = a.includes(\"\\n\") || b.includes(\"\\n\");\n\t\t// getAlignedDiffs assumes that a newline was appended to the strings.\n\t\tconst [diffs, truncated] = diffStringsRaw(isMultiline ? `${a}\\n` : a, isMultiline ? `${b}\\n` : b, true, options);\n\t\tif (hasCommonDiff(diffs, isMultiline)) {\n\t\t\tconst optionsNormalized = normalizeDiffOptions(options);\n\t\t\tconst lines = getAlignedDiffs(diffs, optionsNormalized.changeColor);\n\t\t\treturn printDiffLines(lines, truncated, optionsNormalized);\n\t\t}\n\t}\n\t// Fall back to line-by-line diff.\n\treturn diffLinesUnified(a.split(\"\\n\"), b.split(\"\\n\"), options);\n}\n// Compare two strings character-by-character.\n// Optionally clean up small common substrings, also known as chaff.\nfunction diffStringsRaw(a, b, cleanup, options) {\n\tconst [diffs, truncated] = diffStrings(a, b, options);\n\tif (cleanup) {\n\t\tdiff_cleanupSemantic(diffs);\n\t}\n\treturn [diffs, truncated];\n}\n\nfunction getCommonMessage(message, options) {\n\tconst { commonColor } = normalizeDiffOptions(options);\n\treturn commonColor(message);\n}\nconst { AsymmetricMatcher, DOMCollection, DOMElement, Immutable, ReactElement, ReactTestComponent } = plugins;\nconst PLUGINS = [\n\tReactTestComponent,\n\tReactElement,\n\tDOMElement,\n\tDOMCollection,\n\tImmutable,\n\tAsymmetricMatcher,\n\tplugins.Error\n];\nconst FORMAT_OPTIONS = {\n\tmaxDepth: 20,\n\tplugins: PLUGINS\n};\nconst FALLBACK_FORMAT_OPTIONS = {\n\tcallToJSON: false,\n\tmaxDepth: 8,\n\tplugins: PLUGINS\n};\n// Generate a string that will highlight the difference between two values\n// with green and red. (similar to how github does code diffing)\n/**\n* @param a Expected value\n* @param b Received value\n* @param options Diff options\n* @returns {string | null} a string diff\n*/\nfunction diff(a, b, options) {\n\tif (Object.is(a, b)) {\n\t\treturn \"\";\n\t}\n\tconst aType = getType(a);\n\tlet expectedType = aType;\n\tlet omitDifference = false;\n\tif (aType === \"object\" && typeof a.asymmetricMatch === \"function\") {\n\t\tif (a.$$typeof !== Symbol.for(\"jest.asymmetricMatcher\")) {\n\t\t\t// Do not know expected type of user-defined asymmetric matcher.\n\t\t\treturn undefined;\n\t\t}\n\t\tif (typeof a.getExpectedType !== \"function\") {\n\t\t\t// For example, expect.anything() matches either null or undefined\n\t\t\treturn undefined;\n\t\t}\n\t\texpectedType = a.getExpectedType();\n\t\t// Primitive types boolean and number omit difference below.\n\t\t// For example, omit difference for expect.stringMatching(regexp)\n\t\tomitDifference = expectedType === \"string\";\n\t}\n\tif (expectedType !== getType(b)) {\n\t\tconst { aAnnotation, aColor, aIndicator, bAnnotation, bColor, bIndicator } = normalizeDiffOptions(options);\n\t\tconst formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options);\n\t\tlet aDisplay = format(a, formatOptions);\n\t\tlet bDisplay = format(b, formatOptions);\n\t\t// even if prettyFormat prints successfully big objects,\n\t\t// large string can choke later on (concatenation? RPC?),\n\t\t// so truncate it to a reasonable length here.\n\t\t// (For example, playwright's ElementHandle can become about 200_000_000 length string)\n\t\tconst MAX_LENGTH = 1e5;\n\t\tfunction truncate(s) {\n\t\t\treturn s.length <= MAX_LENGTH ? s : `${s.slice(0, MAX_LENGTH)}...`;\n\t\t}\n\t\taDisplay = truncate(aDisplay);\n\t\tbDisplay = truncate(bDisplay);\n\t\tconst aDiff = `${aColor(`${aIndicator} ${aAnnotation}:`)} \\n${aDisplay}`;\n\t\tconst bDiff = `${bColor(`${bIndicator} ${bAnnotation}:`)} \\n${bDisplay}`;\n\t\treturn `${aDiff}\\n\\n${bDiff}`;\n\t}\n\tif (omitDifference) {\n\t\treturn undefined;\n\t}\n\tswitch (aType) {\n\t\tcase \"string\": return diffLinesUnified(a.split(\"\\n\"), b.split(\"\\n\"), options);\n\t\tcase \"boolean\":\n\t\tcase \"number\": return comparePrimitive(a, b, options);\n\t\tcase \"map\": return compareObjects(sortMap(a), sortMap(b), options);\n\t\tcase \"set\": return compareObjects(sortSet(a), sortSet(b), options);\n\t\tdefault: return compareObjects(a, b, options);\n\t}\n}\nfunction comparePrimitive(a, b, options) {\n\tconst aFormat = format(a, FORMAT_OPTIONS);\n\tconst bFormat = format(b, FORMAT_OPTIONS);\n\treturn aFormat === bFormat ? \"\" : diffLinesUnified(aFormat.split(\"\\n\"), bFormat.split(\"\\n\"), options);\n}\nfunction sortMap(map) {\n\treturn new Map(Array.from(map.entries()).sort());\n}\nfunction sortSet(set) {\n\treturn new Set(Array.from(set.values()).sort());\n}\nfunction compareObjects(a, b, options) {\n\tlet difference;\n\tlet hasThrown = false;\n\ttry {\n\t\tconst formatOptions = getFormatOptions(FORMAT_OPTIONS, options);\n\t\tdifference = getObjectsDifference(a, b, formatOptions, options);\n\t} catch {\n\t\thasThrown = true;\n\t}\n\tconst noDiffMessage = getCommonMessage(NO_DIFF_MESSAGE, options);\n\t// If the comparison yields no results, compare again but this time\n\t// without calling `toJSON`. It's also possible that toJSON might throw.\n\tif (difference === undefined || difference === noDiffMessage) {\n\t\tconst formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options);\n\t\tdifference = getObjectsDifference(a, b, formatOptions, options);\n\t\tif (difference !== noDiffMessage && !hasThrown) {\n\t\t\tdifference = `${getCommonMessage(SIMILAR_MESSAGE, options)}\\n\\n${difference}`;\n\t\t}\n\t}\n\treturn difference;\n}\nfunction getFormatOptions(formatOptions, options) {\n\tconst { compareKeys, printBasicPrototype, maxDepth } = normalizeDiffOptions(options);\n\treturn {\n\t\t...formatOptions,\n\t\tcompareKeys,\n\t\tprintBasicPrototype,\n\t\tmaxDepth: maxDepth ?? formatOptions.maxDepth\n\t};\n}\nfunction getObjectsDifference(a, b, formatOptions, options) {\n\tconst formatOptionsZeroIndent = {\n\t\t...formatOptions,\n\t\tindent: 0\n\t};\n\tconst aCompare = format(a, formatOptionsZeroIndent);\n\tconst bCompare = format(b, formatOptionsZeroIndent);\n\tif (aCompare === bCompare) {\n\t\treturn getCommonMessage(NO_DIFF_MESSAGE, options);\n\t} else {\n\t\tconst aDisplay = format(a, formatOptions);\n\t\tconst bDisplay = format(b, formatOptions);\n\t\treturn diffLinesUnified2(aDisplay.split(\"\\n\"), bDisplay.split(\"\\n\"), aCompare.split(\"\\n\"), bCompare.split(\"\\n\"), options);\n\t}\n}\nconst MAX_DIFF_STRING_LENGTH = 2e4;\nfunction isAsymmetricMatcher(data) {\n\tconst type = getType$1(data);\n\treturn type === \"Object\" && typeof data.asymmetricMatch === \"function\";\n}\nfunction isReplaceable(obj1, obj2) {\n\tconst obj1Type = getType$1(obj1);\n\tconst obj2Type = getType$1(obj2);\n\treturn obj1Type === obj2Type && (obj1Type === \"Object\" || obj1Type === \"Array\");\n}\nfunction printDiffOrStringify(received, expected, options) {\n\tconst { aAnnotation, bAnnotation } = normalizeDiffOptions(options);\n\tif (typeof expected === \"string\" && typeof received === \"string\" && expected.length > 0 && received.length > 0 && expected.length <= MAX_DIFF_STRING_LENGTH && received.length <= MAX_DIFF_STRING_LENGTH && expected !== received) {\n\t\tif (expected.includes(\"\\n\") || received.includes(\"\\n\")) {\n\t\t\treturn diffStringsUnified(expected, received, options);\n\t\t}\n\t\tconst [diffs] = diffStringsRaw(expected, received, true);\n\t\tconst hasCommonDiff = diffs.some((diff) => diff[0] === DIFF_EQUAL);\n\t\tconst printLabel = getLabelPrinter(aAnnotation, bAnnotation);\n\t\tconst expectedLine = printLabel(aAnnotation) + printExpected(getCommonAndChangedSubstrings(diffs, DIFF_DELETE, hasCommonDiff));\n\t\tconst receivedLine = printLabel(bAnnotation) + printReceived(getCommonAndChangedSubstrings(diffs, DIFF_INSERT, hasCommonDiff));\n\t\treturn `${expectedLine}\\n${receivedLine}`;\n\t}\n\t// if (isLineDiffable(expected, received)) {\n\tconst clonedExpected = deepClone(expected, { forceWritable: true });\n\tconst clonedReceived = deepClone(received, { forceWritable: true });\n\tconst { replacedExpected, replacedActual } = replaceAsymmetricMatcher(clonedReceived, clonedExpected);\n\tconst difference = diff(replacedExpected, replacedActual, options);\n\treturn difference;\n\t// }\n\t// const printLabel = getLabelPrinter(aAnnotation, bAnnotation)\n\t// const expectedLine = printLabel(aAnnotation) + printExpected(expected)\n\t// const receivedLine\n\t// = printLabel(bAnnotation)\n\t// + (stringify(expected) === stringify(received)\n\t// ? 'serializes to the same string'\n\t// : printReceived(received))\n\t// return `${expectedLine}\\n${receivedLine}`\n}\nfunction replaceAsymmetricMatcher(actual, expected, actualReplaced = new WeakSet(), expectedReplaced = new WeakSet()) {\n\t// handle asymmetric Error.cause diff\n\tif (actual instanceof Error && expected instanceof Error && typeof actual.cause !== \"undefined\" && typeof expected.cause === \"undefined\") {\n\t\tdelete actual.cause;\n\t\treturn {\n\t\t\treplacedActual: actual,\n\t\t\treplacedExpected: expected\n\t\t};\n\t}\n\tif (!isReplaceable(actual, expected)) {\n\t\treturn {\n\t\t\treplacedActual: actual,\n\t\t\treplacedExpected: expected\n\t\t};\n\t}\n\tif (actualReplaced.has(actual) || expectedReplaced.has(expected)) {\n\t\treturn {\n\t\t\treplacedActual: actual,\n\t\t\treplacedExpected: expected\n\t\t};\n\t}\n\tactualReplaced.add(actual);\n\texpectedReplaced.add(expected);\n\tgetOwnProperties(expected).forEach((key) => {\n\t\tconst expectedValue = expected[key];\n\t\tconst actualValue = actual[key];\n\t\tif (isAsymmetricMatcher(expectedValue)) {\n\t\t\tif (expectedValue.asymmetricMatch(actualValue)) {\n\t\t\t\tactual[key] = expectedValue;\n\t\t\t}\n\t\t} else if (isAsymmetricMatcher(actualValue)) {\n\t\t\tif (actualValue.asymmetricMatch(expectedValue)) {\n\t\t\t\texpected[key] = actualValue;\n\t\t\t}\n\t\t} else if (isReplaceable(actualValue, expectedValue)) {\n\t\t\tconst replaced = replaceAsymmetricMatcher(actualValue, expectedValue, actualReplaced, expectedReplaced);\n\t\t\tactual[key] = replaced.replacedActual;\n\t\t\texpected[key] = replaced.replacedExpected;\n\t\t}\n\t});\n\treturn {\n\t\treplacedActual: actual,\n\t\treplacedExpected: expected\n\t};\n}\nfunction getLabelPrinter(...strings) {\n\tconst maxLength = strings.reduce((max, string) => string.length > max ? string.length : max, 0);\n\treturn (string) => `${string}: ${\" \".repeat(maxLength - string.length)}`;\n}\nconst SPACE_SYMBOL = \"·\";\nfunction replaceTrailingSpaces(text) {\n\treturn text.replace(/\\s+$/gm, (spaces) => SPACE_SYMBOL.repeat(spaces.length));\n}\nfunction printReceived(object) {\n\treturn c.red(replaceTrailingSpaces(stringify(object)));\n}\nfunction printExpected(value) {\n\treturn c.green(replaceTrailingSpaces(stringify(value)));\n}\nfunction getCommonAndChangedSubstrings(diffs, op, hasCommonDiff) {\n\treturn diffs.reduce((reduced, diff) => reduced + (diff[0] === DIFF_EQUAL ? diff[1] : diff[0] === op ? hasCommonDiff ? c.inverse(diff[1]) : diff[1] : \"\"), \"\");\n}\n\nexport { DIFF_DELETE, DIFF_EQUAL, DIFF_INSERT, Diff, diff, diffLinesRaw, diffLinesUnified, diffLinesUnified2, diffStringsRaw, diffStringsUnified, getLabelPrinter, printDiffOrStringify, replaceAsymmetricMatcher };\n","import { printDiffOrStringify } from './diff.js';\nimport { f as format, s as stringify } from './chunk-_commonjsHelpers.js';\nimport '@vitest/pretty-format';\nimport 'tinyrainbow';\nimport './helpers.js';\nimport 'loupe';\n\nconst IS_RECORD_SYMBOL = \"@@__IMMUTABLE_RECORD__@@\";\nconst IS_COLLECTION_SYMBOL = \"@@__IMMUTABLE_ITERABLE__@@\";\nfunction isImmutable(v) {\n\treturn v && (v[IS_COLLECTION_SYMBOL] || v[IS_RECORD_SYMBOL]);\n}\nconst OBJECT_PROTO = Object.getPrototypeOf({});\nfunction getUnserializableMessage(err) {\n\tif (err instanceof Error) {\n\t\treturn `<unserializable>: ${err.message}`;\n\t}\n\tif (typeof err === \"string\") {\n\t\treturn `<unserializable>: ${err}`;\n\t}\n\treturn \"<unserializable>\";\n}\n// https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm\nfunction serializeValue(val, seen = new WeakMap()) {\n\tif (!val || typeof val === \"string\") {\n\t\treturn val;\n\t}\n\tif (val instanceof Error && \"toJSON\" in val && typeof val.toJSON === \"function\") {\n\t\tconst jsonValue = val.toJSON();\n\t\tif (jsonValue && jsonValue !== val && typeof jsonValue === \"object\") {\n\t\t\tif (typeof val.message === \"string\") {\n\t\t\t\tsafe(() => jsonValue.message ?? (jsonValue.message = val.message));\n\t\t\t}\n\t\t\tif (typeof val.stack === \"string\") {\n\t\t\t\tsafe(() => jsonValue.stack ?? (jsonValue.stack = val.stack));\n\t\t\t}\n\t\t\tif (typeof val.name === \"string\") {\n\t\t\t\tsafe(() => jsonValue.name ?? (jsonValue.name = val.name));\n\t\t\t}\n\t\t\tif (val.cause != null) {\n\t\t\t\tsafe(() => jsonValue.cause ?? (jsonValue.cause = serializeValue(val.cause, seen)));\n\t\t\t}\n\t\t}\n\t\treturn serializeValue(jsonValue, seen);\n\t}\n\tif (typeof val === \"function\") {\n\t\treturn `Function<${val.name || \"anonymous\"}>`;\n\t}\n\tif (typeof val === \"symbol\") {\n\t\treturn val.toString();\n\t}\n\tif (typeof val !== \"object\") {\n\t\treturn val;\n\t}\n\tif (typeof Buffer !== \"undefined\" && val instanceof Buffer) {\n\t\treturn `<Buffer(${val.length}) ...>`;\n\t}\n\tif (typeof Uint8Array !== \"undefined\" && val instanceof Uint8Array) {\n\t\treturn `<Uint8Array(${val.length}) ...>`;\n\t}\n\t// cannot serialize immutables as immutables\n\tif (isImmutable(val)) {\n\t\treturn serializeValue(val.toJSON(), seen);\n\t}\n\tif (val instanceof Promise || val.constructor && val.constructor.prototype === \"AsyncFunction\") {\n\t\treturn \"Promise\";\n\t}\n\tif (typeof Element !== \"undefined\" && val instanceof Element) {\n\t\treturn val.tagName;\n\t}\n\tif (typeof val.asymmetricMatch === \"function\") {\n\t\treturn `${val.toString()} ${format(val.sample)}`;\n\t}\n\tif (typeof val.toJSON === \"function\") {\n\t\treturn serializeValue(val.toJSON(), seen);\n\t}\n\tif (seen.has(val)) {\n\t\treturn seen.get(val);\n\t}\n\tif (Array.isArray(val)) {\n\t\t// eslint-disable-next-line unicorn/no-new-array -- we need to keep sparse arrays ([1,,3])\n\t\tconst clone = new Array(val.length);\n\t\tseen.set(val, clone);\n\t\tval.forEach((e, i) => {\n\t\t\ttry {\n\t\t\t\tclone[i] = serializeValue(e, seen);\n\t\t\t} catch (err) {\n\t\t\t\tclone[i] = getUnserializableMessage(err);\n\t\t\t}\n\t\t});\n\t\treturn clone;\n\t} else {\n\t\t// Objects with `Error` constructors appear to cause problems during worker communication\n\t\t// using `MessagePort`, so the serialized error object is being recreated as plain object.\n\t\tconst clone = Object.create(null);\n\t\tseen.set(val, clone);\n\t\tlet obj = val;\n\t\twhile (obj && obj !== OBJECT_PROTO) {\n\t\t\tObject.getOwnPropertyNames(obj).forEach((key) => {\n\t\t\t\tif (key in clone) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tclone[key] = serializeValue(val[key], seen);\n\t\t\t\t} catch (err) {\n\t\t\t\t\t// delete in case it has a setter from prototype that might throw\n\t\t\t\t\tdelete clone[key];\n\t\t\t\t\tclone[key] = getUnserializableMessage(err);\n\t\t\t\t}\n\t\t\t});\n\t\t\tobj = Object.getPrototypeOf(obj);\n\t\t}\n\t\treturn clone;\n\t}\n}\nfunction safe(fn) {\n\ttry {\n\t\treturn fn();\n\t} catch {}\n}\nfunction normalizeErrorMessage(message) {\n\treturn message.replace(/__(vite_ssr_import|vi_import)_\\d+__\\./g, \"\");\n}\nfunction processError(_err, diffOptions, seen = new WeakSet()) {\n\tif (!_err || typeof _err !== \"object\") {\n\t\treturn { message: String(_err) };\n\t}\n\tconst err = _err;\n\tif (err.showDiff || err.showDiff === undefined && err.expected !== undefined && err.actual !== undefined) {\n\t\terr.diff = printDiffOrStringify(err.actual, err.expected, {\n\t\t\t...diffOptions,\n\t\t\t...err.diffOptions\n\t\t});\n\t}\n\tif (\"expected\" in err && typeof err.expected !== \"string\") {\n\t\terr.expected = stringify(err.expected, 10);\n\t}\n\tif (\"actual\" in err && typeof err.actual !== \"string\") {\n\t\terr.actual = stringify(err.actual, 10);\n\t}\n\t// some Error implementations don't allow rewriting message\n\ttry {\n\t\tif (typeof err.message === \"string\") {\n\t\t\terr.message = normalizeErrorMessage(err.message);\n\t\t}\n\t} catch {}\n\t// some Error implementations may not allow rewriting cause\n\t// in most cases, the assignment will lead to \"err.cause = err.cause\"\n\ttry {\n\t\tif (!seen.has(err) && typeof err.cause === \"object\") {\n\t\t\tseen.add(err);\n\t\t\terr.cause = processError(err.cause, diffOptions, seen);\n\t\t}\n\t} catch {}\n\ttry {\n\t\treturn serializeValue(err);\n\t} catch (e) {\n\t\treturn serializeValue(new Error(`Failed to fully serialize error: ${e === null || e === void 0 ? void 0 : e.message}\\nInner error message: ${err === null || err === void 0 ? void 0 : err.message}`));\n\t}\n}\n\nexport { processError, serializeValue as serializeError, serializeValue };\n","import jsTokens from 'js-tokens';\n\nfunction stripLiteralJsTokens(code, options) {\n const FILL = options?.fillChar ?? \" \";\n const FILL_COMMENT = \" \";\n let result = \"\";\n const filter = options?.filter ?? (() => true);\n const tokens = [];\n for (const token of jsTokens(code, { jsx: false })) {\n tokens.push(token);\n if (token.type === \"SingleLineComment\") {\n result += FILL_COMMENT.repeat(token.value.length);\n continue;\n }\n if (token.type === \"MultiLineComment\") {\n result += token.value.replace(/[^\\n]/g, FILL_COMMENT);\n continue;\n }\n if (token.type === \"StringLiteral\") {\n if (!token.closed) {\n result += token.value;\n continue;\n }\n const body = token.value.slice(1, -1);\n if (filter(body)) {\n result += token.value[0] + FILL.repeat(body.length) + token.value[token.value.length - 1];\n continue;\n }\n }\n if (token.type === \"NoSubstitutionTemplate\") {\n const body = token.value.slice(1, -1);\n if (filter(body)) {\n result += `\\`${body.replace(/[^\\n]/g, FILL)}\\``;\n continue;\n }\n }\n if (token.type === \"RegularExpressionLiteral\") {\n const body = token.value;\n if (filter(body)) {\n result += body.replace(/\\/(.*)\\/(\\w?)$/g, (_, $1, $2) => `/${FILL.repeat($1.length)}/${$2}`);\n continue;\n }\n }\n if (token.type === \"TemplateHead\") {\n const body = token.value.slice(1, -2);\n if (filter(body)) {\n result += `\\`${body.replace(/[^\\n]/g, FILL)}\\${`;\n continue;\n }\n }\n if (token.type === \"TemplateTail\") {\n const body = token.value.slice(0, -2);\n if (filter(body)) {\n result += `}${body.replace(/[^\\n]/g, FILL)}\\``;\n continue;\n }\n }\n if (token.type === \"TemplateMiddle\") {\n const body = token.value.slice(1, -2);\n if (filter(body)) {\n result += `}${body.replace(/[^\\n]/g, FILL)}\\${`;\n continue;\n }\n }\n result += token.value;\n }\n return {\n result,\n tokens\n };\n}\n\nfunction stripLiteral(code, options) {\n return stripLiteralDetailed(code, options).result;\n}\nfunction stripLiteralDetailed(code, options) {\n return stripLiteralJsTokens(code, options);\n}\n\nexport { stripLiteral, stripLiteralDetailed, stripLiteralJsTokens };\n","let _lazyMatch = () => { var __lib__=(()=>{var m=Object.defineProperty,V=Object.getOwnPropertyDescriptor,G=Object.getOwnPropertyNames,T=Object.prototype.hasOwnProperty,q=(r,e)=>{for(var n in e)m(r,n,{get:e[n],enumerable:true});},H=(r,e,n,a)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let t of G(e))!T.call(r,t)&&t!==n&&m(r,t,{get:()=>e[t],enumerable:!(a=V(e,t))||a.enumerable});return r},J=r=>H(m({},\"__esModule\",{value:true}),r),w={};q(w,{default:()=>re});var A=r=>Array.isArray(r),d=r=>typeof r==\"function\",Q=r=>r.length===0,W=r=>typeof r==\"number\",K=r=>typeof r==\"object\"&&r!==null,X=r=>r instanceof RegExp,b=r=>typeof r==\"string\",h=r=>r===void 0,Y=r=>{const e=new Map;return n=>{const a=e.get(n);if(a)return a;const t=r(n);return e.set(n,t),t}},rr=(r,e,n={})=>{const a={cache:{},input:r,index:0,indexMax:0,options:n,output:[]};if(v(e)(a)&&a.index===r.length)return a.output;throw new Error(`Failed to parse at index ${a.indexMax}`)},i=(r,e)=>A(r)?er(r,e):b(r)?ar(r,e):nr(r,e),er=(r,e)=>{const n={};for(const a of r){if(a.length!==1)throw new Error(`Invalid character: \"${a}\"`);const t=a.charCodeAt(0);n[t]=true;}return a=>{const t=a.index,o=a.input;for(;a.index<o.length&&o.charCodeAt(a.index)in n;)a.index+=1;const u=a.index;if(u>t){if(!h(e)&&!a.options.silent){const s=a.input.slice(t,u),c=d(e)?e(s,o,String(t)):e;h(c)||a.output.push(c);}a.indexMax=Math.max(a.indexMax,a.index);}return true}},nr=(r,e)=>{const n=r.source,a=r.flags.replace(/y|$/,\"y\"),t=new RegExp(n,a);return g(o=>{t.lastIndex=o.index;const u=t.exec(o.input);if(u){if(!h(e)&&!o.options.silent){const s=d(e)?e(...u,o.input,String(o.index)):e;h(s)||o.output.push(s);}return o.index+=u[0].length,o.indexMax=Math.max(o.indexMax,o.index),true}else return false})},ar=(r,e)=>n=>{if(n.input.startsWith(r,n.index)){if(!h(e)&&!n.options.silent){const t=d(e)?e(r,n.input,String(n.index)):e;h(t)||n.output.push(t);}return n.index+=r.length,n.indexMax=Math.max(n.indexMax,n.index),true}else return false},C=(r,e,n,a)=>{const t=v(r);return g(_(M(o=>{let u=0;for(;u<n;){const s=o.index;if(!t(o)||(u+=1,o.index===s))break}return u>=e})))},tr=(r,e)=>C(r,0,1),f=(r,e)=>C(r,0,1/0),x=(r,e)=>{const n=r.map(v);return g(_(M(a=>{for(let t=0,o=n.length;t<o;t++)if(!n[t](a))return false;return true})))},l=(r,e)=>{const n=r.map(v);return g(_(a=>{for(let t=0,o=n.length;t<o;t++)if(n[t](a))return true;return false}))},M=(r,e=false)=>{const n=v(r);return a=>{const t=a.index,o=a.output.length,u=n(a);return (!u||e)&&(a.index=t,a.output.length!==o&&(a.output.length=o)),u}},_=(r,e)=>{const n=v(r);return n},g=(()=>{let r=0;return e=>{const n=v(e),a=r+=1;return t=>{var o;if(t.options.memoization===false)return n(t);const u=t.index,s=(o=t.cache)[a]||(o[a]=new Map),c=s.get(u);if(c===false)return false;if(W(c))return t.index=c,true;if(c)return t.index=c.index,c.output?.length&&t.output.push(...c.output),true;{const Z=t.output.length;if(n(t)){const D=t.index,U=t.output.length;if(U>Z){const ee=t.output.slice(Z,U);s.set(u,{index:D,output:ee});}else s.set(u,D);return true}else return s.set(u,false),false}}}})(),E=r=>{let e;return n=>(e||(e=v(r())),e(n))},v=Y(r=>{if(d(r))return Q(r)?E(r):r;if(b(r)||X(r))return i(r);if(A(r))return x(r);if(K(r))return l(Object.values(r));throw new Error(\"Invalid rule\")}),P=\"abcdefghijklmnopqrstuvwxyz\",ir=r=>{let e=\"\";for(;r>0;){const n=(r-1)%26;e=P[n]+e,r=Math.floor((r-1)/26);}return e},O=r=>{let e=0;for(let n=0,a=r.length;n<a;n++)e=e*26+P.indexOf(r[n])+1;return e},S=(r,e)=>{if(e<r)return S(e,r);const n=[];for(;r<=e;)n.push(r++);return n},or=(r,e,n)=>S(r,e).map(a=>String(a).padStart(n,\"0\")),R=(r,e)=>S(O(r),O(e)).map(ir),p=r=>r,z=r=>ur(e=>rr(e,r,{memoization:false}).join(\"\")),ur=r=>{const e={};return n=>e[n]??(e[n]=r(n))},sr=i(/^\\*\\*\\/\\*$/,\".*\"),cr=i(/^\\*\\*\\/(\\*)?([ a-zA-Z0-9._-]+)$/,(r,e,n)=>`.*${e?\"\":\"(?:^|/)\"}${n.replaceAll(\".\",\"\\\\.\")}`),lr=i(/^\\*\\*\\/(\\*)?([ a-zA-Z0-9._-]*)\\{([ a-zA-Z0-9._-]+(?:,[ a-zA-Z0-9._-]+)*)\\}$/,(r,e,n,a)=>`.*${e?\"\":\"(?:^|/)\"}${n.replaceAll(\".\",\"\\\\.\")}(?:${a.replaceAll(\",\",\"|\").replaceAll(\".\",\"\\\\.\")})`),y=i(/\\\\./,p),pr=i(/[$.*+?^(){}[\\]\\|]/,r=>`\\\\${r}`),vr=i(/./,p),hr=i(/^(?:!!)*!(.*)$/,(r,e)=>`(?!^${L(e)}$).*?`),dr=i(/^(!!)+/,\"\"),fr=l([hr,dr]),xr=i(/\\/(\\*\\*\\/)+/,\"(?:/.+/|/)\"),gr=i(/^(\\*\\*\\/)+/,\"(?:^|.*/)\"),mr=i(/\\/(\\*\\*)$/,\"(?:/.*|$)\"),_r=i(/\\*\\*/,\".*\"),j=l([xr,gr,mr,_r]),Sr=i(/\\*\\/(?!\\*\\*\\/)/,\"[^/]*/\"),yr=i(/\\*/,\"[^/]*\"),N=l([Sr,yr]),k=i(\"?\",\"[^/]\"),$r=i(\"[\",p),wr=i(\"]\",p),Ar=i(/[!^]/,\"^/\"),br=i(/[a-z]-[a-z]|[0-9]-[0-9]/i,p),Cr=i(/[$.*+?^(){}[\\|]/,r=>`\\\\${r}`),Mr=i(/[^\\]]/,p),Er=l([y,Cr,br,Mr]),B=x([$r,tr(Ar),f(Er),wr]),Pr=i(\"{\",\"(?:\"),Or=i(\"}\",\")\"),Rr=i(/(\\d+)\\.\\.(\\d+)/,(r,e,n)=>or(+e,+n,Math.min(e.length,n.length)).join(\"|\")),zr=i(/([a-z]+)\\.\\.([a-z]+)/,(r,e,n)=>R(e,n).join(\"|\")),jr=i(/([A-Z]+)\\.\\.([A-Z]+)/,(r,e,n)=>R(e.toLowerCase(),n.toLowerCase()).join(\"|\").toUpperCase()),Nr=l([Rr,zr,jr]),I=x([Pr,Nr,Or]),kr=i(\"{\",\"(?:\"),Br=i(\"}\",\")\"),Ir=i(\",\",\"|\"),Fr=i(/[$.*+?^(){[\\]\\|]/,r=>`\\\\${r}`),Lr=i(/[^}]/,p),Zr=E(()=>F),Dr=l([j,N,k,B,I,Zr,y,Fr,Ir,Lr]),F=x([kr,f(Dr),Br]),Ur=f(l([sr,cr,lr,fr,j,N,k,B,I,F,y,pr,vr])),Vr=Ur,Gr=z(Vr),L=Gr,Tr=i(/\\\\./,p),qr=i(/./,p),Hr=i(/\\*\\*\\*+/,\"*\"),Jr=i(/([^/{[(!])\\*\\*/,(r,e)=>`${e}*`),Qr=i(/(^|.)\\*\\*(?=[^*/)\\]}])/,(r,e)=>`${e}*`),Wr=f(l([Tr,Hr,Jr,Qr,qr])),Kr=Wr,Xr=z(Kr),Yr=Xr,$=(r,e)=>{const n=Array.isArray(r)?r:[r];if(!n.length)return false;const a=n.map($.compile),t=n.every(s=>/(\\/(?:\\*\\*)?|\\[\\/\\])$/.test(s)),o=e.replace(/[\\\\\\/]+/g,\"/\").replace(/\\/$/,t?\"/\":\"\");return a.some(s=>s.test(o))};$.compile=r=>new RegExp(`^${L(Yr(r))}$`,\"s\");var re=$;return J(w)})();\n return __lib__.default || __lib__; };\nlet _match;\nconst zeptomatch = (path, pattern) => {\n if (!_match) {\n _match = _lazyMatch();\n _lazyMatch = null;\n }\n return _match(path, pattern);\n};\n\nconst _DRIVE_LETTER_START_RE = /^[A-Za-z]:\\//;\nfunction normalizeWindowsPath(input = \"\") {\n if (!input) {\n return input;\n }\n return input.replace(/\\\\/g, \"/\").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());\n}\n\nconst _UNC_REGEX = /^[/\\\\]{2}/;\nconst _IS_ABSOLUTE_RE = /^[/\\\\](?![/\\\\])|^[/\\\\]{2}(?!\\.)|^[A-Za-z]:[/\\\\]/;\nconst _DRIVE_LETTER_RE = /^[A-Za-z]:$/;\nconst _ROOT_FOLDER_RE = /^\\/([A-Za-z]:)?$/;\nconst _EXTNAME_RE = /.(\\.[^./]+|\\.)$/;\nconst _PATH_ROOT_RE = /^[/\\\\]|^[a-zA-Z]:[/\\\\]/;\nconst sep = \"/\";\nconst normalize = function(path) {\n if (path.length === 0) {\n return \".\";\n }\n path = normalizeWindowsPath(path);\n const isUNCPath = path.match(_UNC_REGEX);\n const isPathAbsolute = isAbsolute(path);\n const trailingSeparator = path[path.length - 1] === \"/\";\n path = normalizeString(path, !isPathAbsolute);\n if (path.length === 0) {\n if (isPathAbsolute) {\n return \"/\";\n }\n return trailingSeparator ? \"./\" : \".\";\n }\n if (trailingSeparator) {\n path += \"/\";\n }\n if (_DRIVE_LETTER_RE.test(path)) {\n path += \"/\";\n }\n if (isUNCPath) {\n if (!isPathAbsolute) {\n return `//./${path}`;\n }\n return `//${path}`;\n }\n return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;\n};\nconst join = function(...segments) {\n let path = \"\";\n for (const seg of segments) {\n if (!seg) {\n continue;\n }\n if (path.length > 0) {\n const pathTrailing = path[path.length - 1] === \"/\";\n const segLeading = seg[0] === \"/\";\n const both = pathTrailing && segLeading;\n if (both) {\n path += seg.slice(1);\n } else {\n path += pathTrailing || segLeading ? seg : `/${seg}`;\n }\n } else {\n path += seg;\n }\n }\n return normalize(path);\n};\nfunction cwd() {\n if (typeof process !== \"undefined\" && typeof process.cwd === \"function\") {\n return process.cwd().replace(/\\\\/g, \"/\");\n }\n return \"/\";\n}\nconst resolve = function(...arguments_) {\n arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));\n let resolvedPath = \"\";\n let resolvedAbsolute = false;\n for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {\n const path = index >= 0 ? arguments_[index] : cwd();\n if (!path || path.length === 0) {\n continue;\n }\n resolvedPath = `${path}/${resolvedPath}`;\n resolvedAbsolute = isAbsolute(path);\n }\n resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);\n if (resolvedAbsolute && !isAbsolute(resolvedPath)) {\n return `/${resolvedPath}`;\n }\n return resolvedPath.length > 0 ? resolvedPath : \".\";\n};\nfunction normalizeString(path, allowAboveRoot) {\n let res = \"\";\n let lastSegmentLength = 0;\n let lastSlash = -1;\n let dots = 0;\n let char = null;\n for (let index = 0; index <= path.length; ++index) {\n if (index < path.length) {\n char = path[index];\n } else if (char === \"/\") {\n break;\n } else {\n char = \"/\";\n }\n if (char === \"/\") {\n if (lastSlash === index - 1 || dots === 1) ; else if (dots === 2) {\n if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== \".\" || res[res.length - 2] !== \".\") {\n if (res.length > 2) {\n const lastSlashIndex = res.lastIndexOf(\"/\");\n if (lastSlashIndex === -1) {\n res = \"\";\n lastSegmentLength = 0;\n } else {\n res = res.slice(0, lastSlashIndex);\n lastSegmentLength = res.length - 1 - res.lastIndexOf(\"/\");\n }\n lastSlash = index;\n dots = 0;\n continue;\n } else if (res.length > 0) {\n res = \"\";\n lastSegmentLength = 0;\n lastSlash = index;\n dots = 0;\n continue;\n }\n }\n if (allowAboveRoot) {\n res += res.length > 0 ? \"/..\" : \"..\";\n lastSegmentLength = 2;\n }\n } else {\n if (res.length > 0) {\n res += `/${path.slice(lastSlash + 1, index)}`;\n } else {\n res = path.slice(lastSlash + 1, index);\n }\n lastSegmentLength = index - lastSlash - 1;\n }\n lastSlash = index;\n dots = 0;\n } else if (char === \".\" && dots !== -1) {\n ++dots;\n } else {\n dots = -1;\n }\n }\n return res;\n}\nconst isAbsolute = function(p) {\n return _IS_ABSOLUTE_RE.test(p);\n};\nconst toNamespacedPath = function(p) {\n return normalizeWindowsPath(p);\n};\nconst extname = function(p) {\n if (p === \"..\") return \"\";\n const match = _EXTNAME_RE.exec(normalizeWindowsPath(p));\n return match && match[1] || \"\";\n};\nconst relative = function(from, to) {\n const _from = resolve(from).replace(_ROOT_FOLDER_RE, \"$1\").split(\"/\");\n const _to = resolve(to).replace(_ROOT_FOLDER_RE, \"$1\").split(\"/\");\n if (_to[0][1] === \":\" && _from[0][1] === \":\" && _from[0] !== _to[0]) {\n return _to.join(\"/\");\n }\n const _fromCopy = [..._from];\n for (const segment of _fromCopy) {\n if (_to[0] !== segment) {\n break;\n }\n _from.shift();\n _to.shift();\n }\n return [..._from.map(() => \"..\"), ..._to].join(\"/\");\n};\nconst dirname = function(p) {\n const segments = normalizeWindowsPath(p).replace(/\\/$/, \"\").split(\"/\").slice(0, -1);\n if (segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0])) {\n segments[0] += \"/\";\n }\n return segments.join(\"/\") || (isAbsolute(p) ? \"/\" : \".\");\n};\nconst format = function(p) {\n const ext = p.ext ? p.ext.startsWith(\".\") ? p.ext : `.${p.ext}` : \"\";\n const segments = [p.root, p.dir, p.base ?? (p.name ?? \"\") + ext].filter(\n Boolean\n );\n return normalizeWindowsPath(\n p.root ? resolve(...segments) : segments.join(\"/\")\n );\n};\nconst basename = function(p, extension) {\n const segments = normalizeWindowsPath(p).split(\"/\");\n let lastSegment = \"\";\n for (let i = segments.length - 1; i >= 0; i--) {\n const val = segments[i];\n if (val) {\n lastSegment = val;\n break;\n }\n }\n return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;\n};\nconst parse = function(p) {\n const root = _PATH_ROOT_RE.exec(p)?.[0]?.replace(/\\\\/g, \"/\") || \"\";\n const base = basename(p);\n const extension = extname(base);\n return {\n root,\n dir: dirname(p),\n base,\n ext: extension,\n name: base.slice(0, base.length - extension.length)\n };\n};\nconst matchesGlob = (path, pattern) => {\n return zeptomatch(pattern, normalize(path));\n};\n\nconst _path = {\n __proto__: null,\n basename: basename,\n dirname: dirname,\n extname: extname,\n format: format,\n isAbsolute: isAbsolute,\n join: join,\n matchesGlob: matchesGlob,\n normalize: normalize,\n normalizeString: normalizeString,\n parse: parse,\n relative: relative,\n resolve: resolve,\n sep: sep,\n toNamespacedPath: toNamespacedPath\n};\n\nexport { _path as _, normalizeString as a, relative as b, basename as c, dirname as d, extname as e, format as f, normalizeWindowsPath as g, isAbsolute as i, join as j, matchesGlob as m, normalize as n, parse as p, resolve as r, sep as s, toNamespacedPath as t };\n","import { isObject, createDefer, toArray, isNegativeNaN, format, objectAttr, objDisplay, getSafeTimers, shuffle, assertTypes } from '@vitest/utils';\nimport { parseSingleStack } from '@vitest/utils/source-map';\nimport { processError } from '@vitest/utils/error';\nimport { stripLiteral } from 'strip-literal';\nimport { relative } from 'pathe';\n\nclass PendingError extends Error {\n\tcode = \"VITEST_PENDING\";\n\ttaskId;\n\tconstructor(message, task, note) {\n\t\tsuper(message);\n\t\tthis.message = message;\n\t\tthis.note = note;\n\t\tthis.taskId = task.id;\n\t}\n}\nclass TestRunAbortError extends Error {\n\tname = \"TestRunAbortError\";\n\treason;\n\tconstructor(message, reason) {\n\t\tsuper(message);\n\t\tthis.reason = reason;\n\t}\n}\n\n// use WeakMap here to make the Test and Suite object serializable\nconst fnMap = new WeakMap();\nconst testFixtureMap = new WeakMap();\nconst hooksMap = new WeakMap();\nfunction setFn(key, fn) {\n\tfnMap.set(key, fn);\n}\nfunction getFn(key) {\n\treturn fnMap.get(key);\n}\nfunction setTestFixture(key, fixture) {\n\ttestFixtureMap.set(key, fixture);\n}\nfunction getTestFixture(key) {\n\treturn testFixtureMap.get(key);\n}\nfunction setHooks(key, hooks) {\n\thooksMap.set(key, hooks);\n}\nfunction getHooks(key) {\n\treturn hooksMap.get(key);\n}\n\nasync function runSetupFiles(config, files, runner) {\n\tif (config.sequence.setupFiles === \"parallel\") {\n\t\tawait Promise.all(files.map(async (fsPath) => {\n\t\t\tawait runner.importFile(fsPath, \"setup\");\n\t\t}));\n\t} else {\n\t\tfor (const fsPath of files) {\n\t\t\tawait runner.importFile(fsPath, \"setup\");\n\t\t}\n\t}\n}\n\nfunction mergeScopedFixtures(testFixtures, scopedFixtures) {\n\tconst scopedFixturesMap = scopedFixtures.reduce((map, fixture) => {\n\t\tmap[fixture.prop] = fixture;\n\t\treturn map;\n\t}, {});\n\tconst newFixtures = {};\n\ttestFixtures.forEach((fixture) => {\n\t\tconst useFixture = scopedFixturesMap[fixture.prop] || { ...fixture };\n\t\tnewFixtures[useFixture.prop] = useFixture;\n\t});\n\tfor (const fixtureKep in newFixtures) {\n\t\tvar _fixture$deps;\n\t\tconst fixture = newFixtures[fixtureKep];\n\t\t// if the fixture was define before the scope, then its dep\n\t\t// will reference the original fixture instead of the scope\n\t\tfixture.deps = (_fixture$deps = fixture.deps) === null || _fixture$deps === void 0 ? void 0 : _fixture$deps.map((dep) => newFixtures[dep.prop]);\n\t}\n\treturn Object.values(newFixtures);\n}\nfunction mergeContextFixtures(fixtures, context, runner) {\n\tconst fixtureOptionKeys = [\n\t\t\"auto\",\n\t\t\"injected\",\n\t\t\"scope\"\n\t];\n\tconst fixtureArray = Object.entries(fixtures).map(([prop, value]) => {\n\t\tconst fixtureItem = { value };\n\t\tif (Array.isArray(value) && value.length >= 2 && isObject(value[1]) && Object.keys(value[1]).some((key) => fixtureOptionKeys.includes(key))) {\n\t\t\tvar _runner$injectValue;\n\t\t\t// fixture with options\n\t\t\tObject.assign(fixtureItem, value[1]);\n\t\t\tconst userValue = value[0];\n\t\t\tfixtureItem.value = fixtureItem.injected ? ((_runner$injectValue = runner.injectValue) === null || _runner$injectValue === void 0 ? void 0 : _runner$injectValue.call(runner, prop)) ?? userValue : userValue;\n\t\t}\n\t\tfixtureItem.scope = fixtureItem.scope || \"test\";\n\t\tif (fixtureItem.scope === \"worker\" && !runner.getWorkerContext) {\n\t\t\tfixtureItem.scope = \"file\";\n\t\t}\n\t\tfixtureItem.prop = prop;\n\t\tfixtureItem.isFn = typeof fixtureItem.value === \"function\";\n\t\treturn fixtureItem;\n\t});\n\tif (Array.isArray(context.fixtures)) {\n\t\tcontext.fixtures = context.fixtures.concat(fixtureArray);\n\t} else {\n\t\tcontext.fixtures = fixtureArray;\n\t}\n\t// Update dependencies of fixture functions\n\tfixtureArray.forEach((fixture) => {\n\t\tif (fixture.isFn) {\n\t\t\tconst usedProps = getUsedProps(fixture.value);\n\t\t\tif (usedProps.length) {\n\t\t\t\tfixture.deps = context.fixtures.filter(({ prop }) => prop !== fixture.prop && usedProps.includes(prop));\n\t\t\t}\n\t\t\t// test can access anything, so we ignore it\n\t\t\tif (fixture.scope !== \"test\") {\n\t\t\t\tvar _fixture$deps2;\n\t\t\t\t(_fixture$deps2 = fixture.deps) === null || _fixture$deps2 === void 0 ? void 0 : _fixture$deps2.forEach((dep) => {\n\t\t\t\t\tif (!dep.isFn) {\n\t\t\t\t\t\t// non fn fixtures are always resolved and available to anyone\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t// worker scope can only import from worker scope\n\t\t\t\t\tif (fixture.scope === \"worker\" && dep.scope === \"worker\") {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t// file scope an import from file and worker scopes\n\t\t\t\t\tif (fixture.scope === \"file\" && dep.scope !== \"test\") {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tthrow new SyntaxError(`cannot use the ${dep.scope} fixture \"${dep.prop}\" inside the ${fixture.scope} fixture \"${fixture.prop}\"`);\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t});\n\treturn context;\n}\nconst fixtureValueMaps = new Map();\nconst cleanupFnArrayMap = new Map();\nasync function callFixtureCleanup(context) {\n\tconst cleanupFnArray = cleanupFnArrayMap.get(context) ?? [];\n\tfor (const cleanup of cleanupFnArray.reverse()) {\n\t\tawait cleanup();\n\t}\n\tcleanupFnArrayMap.delete(context);\n}\nfunction withFixtures(runner, fn, testContext) {\n\treturn (hookContext) => {\n\t\tconst context = hookContext || testContext;\n\t\tif (!context) {\n\t\t\treturn fn({});\n\t\t}\n\t\tconst fixtures = getTestFixture(context);\n\t\tif (!(fixtures === null || fixtures === void 0 ? void 0 : fixtures.length)) {\n\t\t\treturn fn(context);\n\t\t}\n\t\tconst usedProps = getUsedProps(fn);\n\t\tconst hasAutoFixture = fixtures.some(({ auto }) => auto);\n\t\tif (!usedProps.length && !hasAutoFixture) {\n\t\t\treturn fn(context);\n\t\t}\n\t\tif (!fixtureValueMaps.get(context)) {\n\t\t\tfixtureValueMaps.set(context, new Map());\n\t\t}\n\t\tconst fixtureValueMap = fixtureValueMaps.get(context);\n\t\tif (!cleanupFnArrayMap.has(context)) {\n\t\t\tcleanupFnArrayMap.set(context, []);\n\t\t}\n\t\tconst cleanupFnArray = cleanupFnArrayMap.get(context);\n\t\tconst usedFixtures = fixtures.filter(({ prop, auto }) => auto || usedProps.includes(prop));\n\t\tconst pendingFixtures = resolveDeps(usedFixtures);\n\t\tif (!pendingFixtures.length) {\n\t\t\treturn fn(context);\n\t\t}\n\t\tasync function resolveFixtures() {\n\t\t\tfor (const fixture of pendingFixtures) {\n\t\t\t\t// fixture could be already initialized during \"before\" hook\n\t\t\t\tif (fixtureValueMap.has(fixture)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tconst resolvedValue = await resolveFixtureValue(runner, fixture, context, cleanupFnArray);\n\t\t\t\tcontext[fixture.prop] = resolvedValue;\n\t\t\t\tfixtureValueMap.set(fixture, resolvedValue);\n\t\t\t\tif (fixture.scope === \"test\") {\n\t\t\t\t\tcleanupFnArray.unshift(() => {\n\t\t\t\t\t\tfixtureValueMap.delete(fixture);\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn resolveFixtures().then(() => fn(context));\n\t};\n}\nconst globalFixturePromise = new WeakMap();\nfunction resolveFixtureValue(runner, fixture, context, cleanupFnArray) {\n\tvar _runner$getWorkerCont;\n\tconst fileContext = getFileContext(context.task.file);\n\tconst workerContext = (_runner$getWorkerCont = runner.getWorkerContext) === null || _runner$getWorkerCont === void 0 ? void 0 : _runner$getWorkerCont.call(runner);\n\tif (!fixture.isFn) {\n\t\tvar _fixture$prop;\n\t\tfileContext[_fixture$prop = fixture.prop] ?? (fileContext[_fixture$prop] = fixture.value);\n\t\tif (workerContext) {\n\t\t\tvar _fixture$prop2;\n\t\t\tworkerContext[_fixture$prop2 = fixture.prop] ?? (workerContext[_fixture$prop2] = fixture.value);\n\t\t}\n\t\treturn fixture.value;\n\t}\n\tif (fixture.scope === \"test\") {\n\t\treturn resolveFixtureFunction(fixture.value, context, cleanupFnArray);\n\t}\n\t// in case the test runs in parallel\n\tif (globalFixturePromise.has(fixture)) {\n\t\treturn globalFixturePromise.get(fixture);\n\t}\n\tlet fixtureContext;\n\tif (fixture.scope === \"worker\") {\n\t\tif (!workerContext) {\n\t\t\tthrow new TypeError(\"[@vitest/runner] The worker context is not available in the current test runner. Please, provide the `getWorkerContext` method when initiating the runner.\");\n\t\t}\n\t\tfixtureContext = workerContext;\n\t} else {\n\t\tfixtureContext = fileContext;\n\t}\n\tif (fixture.prop in fixtureContext) {\n\t\treturn fixtureContext[fixture.prop];\n\t}\n\tif (!cleanupFnArrayMap.has(fixtureContext)) {\n\t\tcleanupFnArrayMap.set(fixtureContext, []);\n\t}\n\tconst cleanupFnFileArray = cleanupFnArrayMap.get(fixtureContext);\n\tconst promise = resolveFixtureFunction(fixture.value, fixtureContext, cleanupFnFileArray).then((value) => {\n\t\tfixtureContext[fixture.prop] = value;\n\t\tglobalFixturePromise.delete(fixture);\n\t\treturn value;\n\t});\n\tglobalFixturePromise.set(fixture, promise);\n\treturn promise;\n}\nasync function resolveFixtureFunction(fixtureFn, context, cleanupFnArray) {\n\t// wait for `use` call to extract fixture value\n\tconst useFnArgPromise = createDefer();\n\tlet isUseFnArgResolved = false;\n\tconst fixtureReturn = fixtureFn(context, async (useFnArg) => {\n\t\t// extract `use` argument\n\t\tisUseFnArgResolved = true;\n\t\tuseFnArgPromise.resolve(useFnArg);\n\t\t// suspend fixture teardown by holding off `useReturnPromise` resolution until cleanup\n\t\tconst useReturnPromise = createDefer();\n\t\tcleanupFnArray.push(async () => {\n\t\t\t// start teardown by resolving `use` Promise\n\t\t\tuseReturnPromise.resolve();\n\t\t\t// wait for finishing teardown\n\t\t\tawait fixtureReturn;\n\t\t});\n\t\tawait useReturnPromise;\n\t}).catch((e) => {\n\t\t// treat fixture setup error as test failure\n\t\tif (!isUseFnArgResolved) {\n\t\t\tuseFnArgPromise.reject(e);\n\t\t\treturn;\n\t\t}\n\t\t// otherwise re-throw to avoid silencing error during cleanup\n\t\tthrow e;\n\t});\n\treturn useFnArgPromise;\n}\nfunction resolveDeps(fixtures, depSet = new Set(), pendingFixtures = []) {\n\tfixtures.forEach((fixture) => {\n\t\tif (pendingFixtures.includes(fixture)) {\n\t\t\treturn;\n\t\t}\n\t\tif (!fixture.isFn || !fixture.deps) {\n\t\t\tpendingFixtures.push(fixture);\n\t\t\treturn;\n\t\t}\n\t\tif (depSet.has(fixture)) {\n\t\t\tthrow new Error(`Circular fixture dependency detected: ${fixture.prop} <- ${[...depSet].reverse().map((d) => d.prop).join(\" <- \")}`);\n\t\t}\n\t\tdepSet.add(fixture);\n\t\tresolveDeps(fixture.deps, depSet, pendingFixtures);\n\t\tpendingFixtures.push(fixture);\n\t\tdepSet.clear();\n\t});\n\treturn pendingFixtures;\n}\nfunction getUsedProps(fn) {\n\tlet fnString = stripLiteral(fn.toString());\n\t// match lowered async function and strip it off\n\t// example code on esbuild-try https://esbuild.github.io/try/#YgAwLjI0LjAALS1zdXBwb3J0ZWQ6YXN5bmMtYXdhaXQ9ZmFsc2UAZQBlbnRyeS50cwBjb25zdCBvID0gewogIGYxOiBhc3luYyAoKSA9PiB7fSwKICBmMjogYXN5bmMgKGEpID0+IHt9LAogIGYzOiBhc3luYyAoYSwgYikgPT4ge30sCiAgZjQ6IGFzeW5jIGZ1bmN0aW9uKGEpIHt9LAogIGY1OiBhc3luYyBmdW5jdGlvbiBmZihhKSB7fSwKICBhc3luYyBmNihhKSB7fSwKCiAgZzE6IGFzeW5jICgpID0+IHt9LAogIGcyOiBhc3luYyAoeyBhIH0pID0+IHt9LAogIGczOiBhc3luYyAoeyBhIH0sIGIpID0+IHt9LAogIGc0OiBhc3luYyBmdW5jdGlvbiAoeyBhIH0pIHt9LAogIGc1OiBhc3luYyBmdW5jdGlvbiBnZyh7IGEgfSkge30sCiAgYXN5bmMgZzYoeyBhIH0pIHt9LAoKICBoMTogYXN5bmMgKCkgPT4ge30sCiAgLy8gY29tbWVudCBiZXR3ZWVuCiAgaDI6IGFzeW5jIChhKSA9PiB7fSwKfQ\n\t// __async(this, null, function*\n\t// __async(this, arguments, function*\n\t// __async(this, [_0, _1], function*\n\tif (/__async\\((?:this|null), (?:null|arguments|\\[[_0-9, ]*\\]), function\\*/.test(fnString)) {\n\t\tfnString = fnString.split(/__async\\((?:this|null),/)[1];\n\t}\n\tconst match = fnString.match(/[^(]*\\(([^)]*)/);\n\tif (!match) {\n\t\treturn [];\n\t}\n\tconst args = splitByComma(match[1]);\n\tif (!args.length) {\n\t\treturn [];\n\t}\n\tlet first = args[0];\n\tif (\"__VITEST_FIXTURE_INDEX__\" in fn) {\n\t\tfirst = args[fn.__VITEST_FIXTURE_INDEX__];\n\t\tif (!first) {\n\t\t\treturn [];\n\t\t}\n\t}\n\tif (!(first.startsWith(\"{\") && first.endsWith(\"}\"))) {\n\t\tthrow new Error(`The first argument inside a fixture must use object destructuring pattern, e.g. ({ test } => {}). Instead, received \"${first}\".`);\n\t}\n\tconst _first = first.slice(1, -1).replace(/\\s/g, \"\");\n\tconst props = splitByComma(_first).map((prop) => {\n\t\treturn prop.replace(/:.*|=.*/g, \"\");\n\t});\n\tconst last = props.at(-1);\n\tif (last && last.startsWith(\"...\")) {\n\t\tthrow new Error(`Rest parameters are not supported in fixtures, received \"${last}\".`);\n\t}\n\treturn props;\n}\nfunction splitByComma(s) {\n\tconst result = [];\n\tconst stack = [];\n\tlet start = 0;\n\tfor (let i = 0; i < s.length; i++) {\n\t\tif (s[i] === \"{\" || s[i] === \"[\") {\n\t\t\tstack.push(s[i] === \"{\" ? \"}\" : \"]\");\n\t\t} else if (s[i] === stack[stack.length - 1]) {\n\t\t\tstack.pop();\n\t\t} else if (!stack.length && s[i] === \",\") {\n\t\t\tconst token = s.substring(start, i).trim();\n\t\t\tif (token) {\n\t\t\t\tresult.push(token);\n\t\t\t}\n\t\t\tstart = i + 1;\n\t\t}\n\t}\n\tconst lastToken = s.substring(start).trim();\n\tif (lastToken) {\n\t\tresult.push(lastToken);\n\t}\n\treturn result;\n}\n\nlet _test;\nfunction setCurrentTest(test) {\n\t_test = test;\n}\nfunction getCurrentTest() {\n\treturn _test;\n}\nconst tests = [];\nfunction addRunningTest(test) {\n\ttests.push(test);\n\treturn () => {\n\t\ttests.splice(tests.indexOf(test));\n\t};\n}\nfunction getRunningTests() {\n\treturn tests;\n}\n\nfunction createChainable(keys, fn) {\n\tfunction create(context) {\n\t\tconst chain = function(...args) {\n\t\t\treturn fn.apply(context, args);\n\t\t};\n\t\tObject.assign(chain, fn);\n\t\tchain.withContext = () => chain.bind(context);\n\t\tchain.setContext = (key, value) => {\n\t\t\tcontext[key] = value;\n\t\t};\n\t\tchain.mergeContext = (ctx) => {\n\t\t\tObject.assign(context, ctx);\n\t\t};\n\t\tfor (const key of keys) {\n\t\t\tObject.defineProperty(chain, key, { get() {\n\t\t\t\treturn create({\n\t\t\t\t\t...context,\n\t\t\t\t\t[key]: true\n\t\t\t\t});\n\t\t\t} });\n\t\t}\n\t\treturn chain;\n\t}\n\tconst chain = create({});\n\tchain.fn = fn;\n\treturn chain;\n}\n\n/**\n* Creates a suite of tests, allowing for grouping and hierarchical organization of tests.\n* Suites can contain both tests and other suites, enabling complex test structures.\n*\n* @param {string} name - The name of the suite, used for identification and reporting.\n* @param {Function} fn - A function that defines the tests and suites within this suite.\n* @example\n* ```ts\n* // Define a suite with two tests\n* suite('Math operations', () => {\n* test('should add two numbers', () => {\n* expect(add(1, 2)).toBe(3);\n* });\n*\n* test('should subtract two numbers', () => {\n* expect(subtract(5, 2)).toBe(3);\n* });\n* });\n* ```\n* @example\n* ```ts\n* // Define nested suites\n* suite('String operations', () => {\n* suite('Trimming', () => {\n* test('should trim whitespace from start and end', () => {\n* expect(' hello '.trim()).toBe('hello');\n* });\n* });\n*\n* suite('Concatenation', () => {\n* test('should concatenate two strings', () => {\n* expect('hello' + ' ' + 'world').toBe('hello world');\n* });\n* });\n* });\n* ```\n*/\nconst suite = createSuite();\n/**\n* Defines a test case with a given name and test function. The test function can optionally be configured with test options.\n*\n* @param {string | Function} name - The name of the test or a function that will be used as a test name.\n* @param {TestOptions | TestFunction} [optionsOrFn] - Optional. The test options or the test function if no explicit name is provided.\n* @param {number | TestOptions | TestFunction} [optionsOrTest] - Optional. The test function or options, depending on the previous parameters.\n* @throws {Error} If called inside another test function.\n* @example\n* ```ts\n* // Define a simple test\n* test('should add two numbers', () => {\n* expect(add(1, 2)).toBe(3);\n* });\n* ```\n* @example\n* ```ts\n* // Define a test with options\n* test('should subtract two numbers', { retry: 3 }, () => {\n* expect(subtract(5, 2)).toBe(3);\n* });\n* ```\n*/\nconst test = createTest(function(name, optionsOrFn, optionsOrTest) {\n\tif (getCurrentTest()) {\n\t\tthrow new Error(\"Calling the test function inside another test function is not allowed. Please put it inside \\\"describe\\\" or \\\"suite\\\" so it can be properly collected.\");\n\t}\n\tgetCurrentSuite().test.fn.call(this, formatName(name), optionsOrFn, optionsOrTest);\n});\n/**\n* Creates a suite of tests, allowing for grouping and hierarchical organization of tests.\n* Suites can contain both tests and other suites, enabling complex test structures.\n*\n* @param {string} name - The name of the suite, used for identification and reporting.\n* @param {Function} fn - A function that defines the tests and suites within this suite.\n* @example\n* ```ts\n* // Define a suite with two tests\n* describe('Math operations', () => {\n* test('should add two numbers', () => {\n* expect(add(1, 2)).toBe(3);\n* });\n*\n* test('should subtract two numbers', () => {\n* expect(subtract(5, 2)).toBe(3);\n* });\n* });\n* ```\n* @example\n* ```ts\n* // Define nested suites\n* describe('String operations', () => {\n* describe('Trimming', () => {\n* test('should trim whitespace from start and end', () => {\n* expect(' hello '.trim()).toBe('hello');\n* });\n* });\n*\n* describe('Concatenation', () => {\n* test('should concatenate two strings', () => {\n* expect('hello' + ' ' + 'world').toBe('hello world');\n* });\n* });\n* });\n* ```\n*/\nconst describe = suite;\n/**\n* Defines a test case with a given name and test function. The test function can optionally be configured with test options.\n*\n* @param {string | Function} name - The name of the test or a function that will be used as a test name.\n* @param {TestOptions | TestFunction} [optionsOrFn] - Optional. The test options or the test function if no explicit name is provided.\n* @param {number | TestOptions | TestFunction} [optionsOrTest] - Optional. The test function or options, depending on the previous parameters.\n* @throws {Error} If called inside another test function.\n* @example\n* ```ts\n* // Define a simple test\n* it('adds two numbers', () => {\n* expect(add(1, 2)).toBe(3);\n* });\n* ```\n* @example\n* ```ts\n* // Define a test with options\n* it('subtracts two numbers', { retry: 3 }, () => {\n* expect(subtract(5, 2)).toBe(3);\n* });\n* ```\n*/\nconst it = test;\nlet runner;\nlet defaultSuite;\nlet currentTestFilepath;\nfunction assert(condition, message) {\n\tif (!condition) {\n\t\tthrow new Error(`Vitest failed to find ${message}. This is a bug in Vitest. Please, open an issue with reproduction.`);\n\t}\n}\nfunction getDefaultSuite() {\n\tassert(defaultSuite, \"the default suite\");\n\treturn defaultSuite;\n}\nfunction getTestFilepath() {\n\treturn currentTestFilepath;\n}\nfunction getRunner() {\n\tassert(runner, \"the runner\");\n\treturn runner;\n}\nfunction createDefaultSuite(runner) {\n\tconst config = runner.config.sequence;\n\tconst collector = suite(\"\", { concurrent: config.concurrent }, () => {});\n\t// no parent suite for top-level tests\n\tdelete collector.suite;\n\treturn collector;\n}\nfunction clearCollectorContext(filepath, currentRunner) {\n\tif (!defaultSuite) {\n\t\tdefaultSuite = createDefaultSuite(currentRunner);\n\t}\n\trunner = currentRunner;\n\tcurrentTestFilepath = filepath;\n\tcollectorContext.tasks.length = 0;\n\tdefaultSuite.clear();\n\tcollectorContext.currentSuite = defaultSuite;\n}\nfunction getCurrentSuite() {\n\tconst currentSuite = collectorContext.currentSuite || defaultSuite;\n\tassert(currentSuite, \"the current suite\");\n\treturn currentSuite;\n}\nfunction createSuiteHooks() {\n\treturn {\n\t\tbeforeAll: [],\n\t\tafterAll: [],\n\t\tbeforeEach: [],\n\t\tafterEach: []\n\t};\n}\nfunction parseArguments(optionsOrFn, optionsOrTest) {\n\tlet options = {};\n\tlet fn = () => {};\n\t// it('', () => {}, { retry: 2 })\n\tif (typeof optionsOrTest === \"object\") {\n\t\t// it('', { retry: 2 }, { retry: 3 })\n\t\tif (typeof optionsOrFn === \"object\") {\n\t\t\tthrow new TypeError(\"Cannot use two objects as arguments. Please provide options and a function callback in that order.\");\n\t\t}\n\t\tconsole.warn(\"Using an object as a third argument is deprecated. Vitest 4 will throw an error if the third argument is not a timeout number. Please use the second argument for options. See more at https://vitest.dev/guide/migration\");\n\t\toptions = optionsOrTest;\n\t} else if (typeof optionsOrTest === \"number\") {\n\t\toptions = { timeout: optionsOrTest };\n\t} else if (typeof optionsOrFn === \"object\") {\n\t\toptions = optionsOrFn;\n\t}\n\tif (typeof optionsOrFn === \"function\") {\n\t\tif (typeof optionsOrTest === \"function\") {\n\t\t\tthrow new TypeError(\"Cannot use two functions as arguments. Please use the second argument for options.\");\n\t\t}\n\t\tfn = optionsOrFn;\n\t} else if (typeof optionsOrTest === \"function\") {\n\t\tfn = optionsOrTest;\n\t}\n\treturn {\n\t\toptions,\n\t\thandler: fn\n\t};\n}\n// implementations\nfunction createSuiteCollector(name, factory = () => {}, mode, each, suiteOptions, parentCollectorFixtures) {\n\tconst tasks = [];\n\tlet suite;\n\tinitSuite(true);\n\tconst task = function(name = \"\", options = {}) {\n\t\tvar _collectorContext$cur;\n\t\tconst timeout = (options === null || options === void 0 ? void 0 : options.timeout) ?? runner.config.testTimeout;\n\t\tconst task = {\n\t\t\tid: \"\",\n\t\t\tname,\n\t\t\tsuite: (_collectorContext$cur = collectorContext.currentSuite) === null || _collectorContext$cur === void 0 ? void 0 : _collectorContext$cur.suite,\n\t\t\teach: options.each,\n\t\t\tfails: options.fails,\n\t\t\tcontext: undefined,\n\t\t\ttype: \"test\",\n\t\t\tfile: undefined,\n\t\t\ttimeout,\n\t\t\tretry: options.retry ?? runner.config.retry,\n\t\t\trepeats: options.repeats,\n\t\t\tmode: options.only ? \"only\" : options.skip ? \"skip\" : options.todo ? \"todo\" : \"run\",\n\t\t\tmeta: options.meta ?? Object.create(null),\n\t\t\tannotations: []\n\t\t};\n\t\tconst handler = options.handler;\n\t\tif (options.concurrent || !options.sequential && runner.config.sequence.concurrent) {\n\t\t\ttask.concurrent = true;\n\t\t}\n\t\ttask.shuffle = suiteOptions === null || suiteOptions === void 0 ? void 0 : suiteOptions.shuffle;\n\t\tconst context = createTestContext(task, runner);\n\t\t// create test context\n\t\tObject.defineProperty(task, \"context\", {\n\t\t\tvalue: context,\n\t\t\tenumerable: false\n\t\t});\n\t\tsetTestFixture(context, options.fixtures);\n\t\t// custom can be called from any place, let's assume the limit is 15 stacks\n\t\tconst limit = Error.stackTraceLimit;\n\t\tError.stackTraceLimit = 15;\n\t\tconst stackTraceError = new Error(\"STACK_TRACE_ERROR\");\n\t\tError.stackTraceLimit = limit;\n\t\tif (handler) {\n\t\t\tsetFn(task, withTimeout(withAwaitAsyncAssertions(withFixtures(runner, handler, context), task), timeout, false, stackTraceError, (_, error) => abortIfTimeout([context], error)));\n\t\t}\n\t\tif (runner.config.includeTaskLocation) {\n\t\t\tconst error = stackTraceError.stack;\n\t\t\tconst stack = findTestFileStackTrace(error);\n\t\t\tif (stack) {\n\t\t\t\ttask.location = stack;\n\t\t\t}\n\t\t}\n\t\ttasks.push(task);\n\t\treturn task;\n\t};\n\tconst test = createTest(function(name, optionsOrFn, optionsOrTest) {\n\t\tlet { options, handler } = parseArguments(optionsOrFn, optionsOrTest);\n\t\t// inherit repeats, retry, timeout from suite\n\t\tif (typeof suiteOptions === \"object\") {\n\t\t\toptions = Object.assign({}, suiteOptions, options);\n\t\t}\n\t\t// inherit concurrent / sequential from suite\n\t\toptions.concurrent = this.concurrent || !this.sequential && (options === null || options === void 0 ? void 0 : options.concurrent);\n\t\toptions.sequential = this.sequential || !this.concurrent && (options === null || options === void 0 ? void 0 : options.sequential);\n\t\tconst test = task(formatName(name), {\n\t\t\t...this,\n\t\t\t...options,\n\t\t\thandler\n\t\t});\n\t\ttest.type = \"test\";\n\t});\n\tlet collectorFixtures = parentCollectorFixtures;\n\tconst collector = {\n\t\ttype: \"collector\",\n\t\tname,\n\t\tmode,\n\t\tsuite,\n\t\toptions: suiteOptions,\n\t\ttest,\n\t\ttasks,\n\t\tcollect,\n\t\ttask,\n\t\tclear,\n\t\ton: addHook,\n\t\tfixtures() {\n\t\t\treturn collectorFixtures;\n\t\t},\n\t\tscoped(fixtures) {\n\t\t\tconst parsed = mergeContextFixtures(fixtures, { fixtures: collectorFixtures }, runner);\n\t\t\tif (parsed.fixtures) {\n\t\t\t\tcollectorFixtures = parsed.fixtures;\n\t\t\t}\n\t\t}\n\t};\n\tfunction addHook(name, ...fn) {\n\t\tgetHooks(suite)[name].push(...fn);\n\t}\n\tfunction initSuite(includeLocation) {\n\t\tvar _collectorContext$cur2;\n\t\tif (typeof suiteOptions === \"number\") {\n\t\t\tsuiteOptions = { timeout: suiteOptions };\n\t\t}\n\t\tsuite = {\n\t\t\tid: \"\",\n\t\t\ttype: \"suite\",\n\t\t\tname,\n\t\t\tsuite: (_collectorContext$cur2 = collectorContext.currentSuite) === null || _collectorContext$cur2 === void 0 ? void 0 : _collectorContext$cur2.suite,\n\t\t\tmode,\n\t\t\teach,\n\t\t\tfile: undefined,\n\t\t\tshuffle: suiteOptions === null || suiteOptions === void 0 ? void 0 : suiteOptions.shuffle,\n\t\t\ttasks: [],\n\t\t\tmeta: Object.create(null),\n\t\t\tconcurrent: suiteOptions === null || suiteOptions === void 0 ? void 0 : suiteOptions.concurrent\n\t\t};\n\t\tif (runner && includeLocation && runner.config.includeTaskLocation) {\n\t\t\tconst limit = Error.stackTraceLimit;\n\t\t\tError.stackTraceLimit = 15;\n\t\t\tconst error = new Error(\"stacktrace\").stack;\n\t\t\tError.stackTraceLimit = limit;\n\t\t\tconst stack = findTestFileStackTrace(error);\n\t\t\tif (stack) {\n\t\t\t\tsuite.location = stack;\n\t\t\t}\n\t\t}\n\t\tsetHooks(suite, createSuiteHooks());\n\t}\n\tfunction clear() {\n\t\ttasks.length = 0;\n\t\tinitSuite(false);\n\t}\n\tasync function collect(file) {\n\t\tif (!file) {\n\t\t\tthrow new TypeError(\"File is required to collect tasks.\");\n\t\t}\n\t\tif (factory) {\n\t\t\tawait runWithSuite(collector, () => factory(test));\n\t\t}\n\t\tconst allChildren = [];\n\t\tfor (const i of tasks) {\n\t\t\tallChildren.push(i.type === \"collector\" ? await i.collect(file) : i);\n\t\t}\n\t\tsuite.file = file;\n\t\tsuite.tasks = allChildren;\n\t\tallChildren.forEach((task) => {\n\t\t\ttask.file = file;\n\t\t});\n\t\treturn suite;\n\t}\n\tcollectTask(collector);\n\treturn collector;\n}\nfunction withAwaitAsyncAssertions(fn, task) {\n\treturn async (...args) => {\n\t\tconst fnResult = await fn(...args);\n\t\t// some async expect will be added to this array, in case user forget to await them\n\t\tif (task.promises) {\n\t\t\tconst result = await Promise.allSettled(task.promises);\n\t\t\tconst errors = result.map((r) => r.status === \"rejected\" ? r.reason : undefined).filter(Boolean);\n\t\t\tif (errors.length) {\n\t\t\t\tthrow errors;\n\t\t\t}\n\t\t}\n\t\treturn fnResult;\n\t};\n}\nfunction createSuite() {\n\tfunction suiteFn(name, factoryOrOptions, optionsOrFactory) {\n\t\tvar _currentSuite$options;\n\t\tconst mode = this.only ? \"only\" : this.skip ? \"skip\" : this.todo ? \"todo\" : \"run\";\n\t\tconst currentSuite = collectorContext.currentSuite || defaultSuite;\n\t\tlet { options, handler: factory } = parseArguments(factoryOrOptions, optionsOrFactory);\n\t\tconst isConcurrentSpecified = options.concurrent || this.concurrent || options.sequential === false;\n\t\tconst isSequentialSpecified = options.sequential || this.sequential || options.concurrent === false;\n\t\t// inherit options from current suite\n\t\toptions = {\n\t\t\t...currentSuite === null || currentSuite === void 0 ? void 0 : currentSuite.options,\n\t\t\t...options,\n\t\t\tshuffle: this.shuffle ?? options.shuffle ?? (currentSuite === null || currentSuite === void 0 || (_currentSuite$options = currentSuite.options) === null || _currentSuite$options === void 0 ? void 0 : _currentSuite$options.shuffle) ?? (runner === null || runner === void 0 ? void 0 : runner.config.sequence.shuffle)\n\t\t};\n\t\t// inherit concurrent / sequential from suite\n\t\tconst isConcurrent = isConcurrentSpecified || options.concurrent && !isSequentialSpecified;\n\t\tconst isSequential = isSequentialSpecified || options.sequential && !isConcurrentSpecified;\n\t\toptions.concurrent = isConcurrent && !isSequential;\n\t\toptions.sequential = isSequential && !isConcurrent;\n\t\treturn createSuiteCollector(formatName(name), factory, mode, this.each, options, currentSuite === null || currentSuite === void 0 ? void 0 : currentSuite.fixtures());\n\t}\n\tsuiteFn.each = function(cases, ...args) {\n\t\tconst suite = this.withContext();\n\t\tthis.setContext(\"each\", true);\n\t\tif (Array.isArray(cases) && args.length) {\n\t\t\tcases = formatTemplateString(cases, args);\n\t\t}\n\t\treturn (name, optionsOrFn, fnOrOptions) => {\n\t\t\tconst _name = formatName(name);\n\t\t\tconst arrayOnlyCases = cases.every(Array.isArray);\n\t\t\tconst { options, handler } = parseArguments(optionsOrFn, fnOrOptions);\n\t\t\tconst fnFirst = typeof optionsOrFn === \"function\" && typeof fnOrOptions === \"object\";\n\t\t\tcases.forEach((i, idx) => {\n\t\t\t\tconst items = Array.isArray(i) ? i : [i];\n\t\t\t\tif (fnFirst) {\n\t\t\t\t\tif (arrayOnlyCases) {\n\t\t\t\t\t\tsuite(formatTitle(_name, items, idx), () => handler(...items), options);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsuite(formatTitle(_name, items, idx), () => handler(i), options);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (arrayOnlyCases) {\n\t\t\t\t\t\tsuite(formatTitle(_name, items, idx), options, () => handler(...items));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsuite(formatTitle(_name, items, idx), options, () => handler(i));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tthis.setContext(\"each\", undefined);\n\t\t};\n\t};\n\tsuiteFn.for = function(cases, ...args) {\n\t\tif (Array.isArray(cases) && args.length) {\n\t\t\tcases = formatTemplateString(cases, args);\n\t\t}\n\t\treturn (name, optionsOrFn, fnOrOptions) => {\n\t\t\tconst name_ = formatName(name);\n\t\t\tconst { options, handler } = parseArguments(optionsOrFn, fnOrOptions);\n\t\t\tcases.forEach((item, idx) => {\n\t\t\t\tsuite(formatTitle(name_, toArray(item), idx), options, () => handler(item));\n\t\t\t});\n\t\t};\n\t};\n\tsuiteFn.skipIf = (condition) => condition ? suite.skip : suite;\n\tsuiteFn.runIf = (condition) => condition ? suite : suite.skip;\n\treturn createChainable([\n\t\t\"concurrent\",\n\t\t\"sequential\",\n\t\t\"shuffle\",\n\t\t\"skip\",\n\t\t\"only\",\n\t\t\"todo\"\n\t], suiteFn);\n}\nfunction createTaskCollector(fn, context) {\n\tconst taskFn = fn;\n\ttaskFn.each = function(cases, ...args) {\n\t\tconst test = this.withContext();\n\t\tthis.setContext(\"each\", true);\n\t\tif (Array.isArray(cases) && args.length) {\n\t\t\tcases = formatTemplateString(cases, args);\n\t\t}\n\t\treturn (name, optionsOrFn, fnOrOptions) => {\n\t\t\tconst _name = formatName(name);\n\t\t\tconst arrayOnlyCases = cases.every(Array.isArray);\n\t\t\tconst { options, handler } = parseArguments(optionsOrFn, fnOrOptions);\n\t\t\tconst fnFirst = typeof optionsOrFn === \"function\" && typeof fnOrOptions === \"object\";\n\t\t\tcases.forEach((i, idx) => {\n\t\t\t\tconst items = Array.isArray(i) ? i : [i];\n\t\t\t\tif (fnFirst) {\n\t\t\t\t\tif (arrayOnlyCases) {\n\t\t\t\t\t\ttest(formatTitle(_name, items, idx), () => handler(...items), options);\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttest(formatTitle(_name, items, idx), () => handler(i), options);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (arrayOnlyCases) {\n\t\t\t\t\t\ttest(formatTitle(_name, items, idx), options, () => handler(...items));\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttest(formatTitle(_name, items, idx), options, () => handler(i));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tthis.setContext(\"each\", undefined);\n\t\t};\n\t};\n\ttaskFn.for = function(cases, ...args) {\n\t\tconst test = this.withContext();\n\t\tif (Array.isArray(cases) && args.length) {\n\t\t\tcases = formatTemplateString(cases, args);\n\t\t}\n\t\treturn (name, optionsOrFn, fnOrOptions) => {\n\t\t\tconst _name = formatName(name);\n\t\t\tconst { options, handler } = parseArguments(optionsOrFn, fnOrOptions);\n\t\t\tcases.forEach((item, idx) => {\n\t\t\t\t// monkey-patch handler to allow parsing fixture\n\t\t\t\tconst handlerWrapper = (ctx) => handler(item, ctx);\n\t\t\t\thandlerWrapper.__VITEST_FIXTURE_INDEX__ = 1;\n\t\t\t\thandlerWrapper.toString = () => handler.toString();\n\t\t\t\ttest(formatTitle(_name, toArray(item), idx), options, handlerWrapper);\n\t\t\t});\n\t\t};\n\t};\n\ttaskFn.skipIf = function(condition) {\n\t\treturn condition ? this.skip : this;\n\t};\n\ttaskFn.runIf = function(condition) {\n\t\treturn condition ? this : this.skip;\n\t};\n\ttaskFn.scoped = function(fixtures) {\n\t\tconst collector = getCurrentSuite();\n\t\tcollector.scoped(fixtures);\n\t};\n\ttaskFn.extend = function(fixtures) {\n\t\tconst _context = mergeContextFixtures(fixtures, context || {}, runner);\n\t\tconst originalWrapper = fn;\n\t\treturn createTest(function(name, optionsOrFn, optionsOrTest) {\n\t\t\tconst collector = getCurrentSuite();\n\t\t\tconst scopedFixtures = collector.fixtures();\n\t\t\tconst context = { ...this };\n\t\t\tif (scopedFixtures) {\n\t\t\t\tcontext.fixtures = mergeScopedFixtures(context.fixtures || [], scopedFixtures);\n\t\t\t}\n\t\t\tconst { handler, options } = parseArguments(optionsOrFn, optionsOrTest);\n\t\t\tconst timeout = options.timeout ?? (runner === null || runner === void 0 ? void 0 : runner.config.testTimeout);\n\t\t\toriginalWrapper.call(context, formatName(name), handler, timeout);\n\t\t}, _context);\n\t};\n\tconst _test = createChainable([\n\t\t\"concurrent\",\n\t\t\"sequential\",\n\t\t\"skip\",\n\t\t\"only\",\n\t\t\"todo\",\n\t\t\"fails\"\n\t], taskFn);\n\tif (context) {\n\t\t_test.mergeContext(context);\n\t}\n\treturn _test;\n}\nfunction createTest(fn, context) {\n\treturn createTaskCollector(fn, context);\n}\nfunction formatName(name) {\n\treturn typeof name === \"string\" ? name : typeof name === \"function\" ? name.name || \"<anonymous>\" : String(name);\n}\nfunction formatTitle(template, items, idx) {\n\tif (template.includes(\"%#\") || template.includes(\"%$\")) {\n\t\t// '%#' match index of the test case\n\t\ttemplate = template.replace(/%%/g, \"__vitest_escaped_%__\").replace(/%#/g, `${idx}`).replace(/%\\$/g, `${idx + 1}`).replace(/__vitest_escaped_%__/g, \"%%\");\n\t}\n\tconst count = template.split(\"%\").length - 1;\n\tif (template.includes(\"%f\")) {\n\t\tconst placeholders = template.match(/%f/g) || [];\n\t\tplaceholders.forEach((_, i) => {\n\t\t\tif (isNegativeNaN(items[i]) || Object.is(items[i], -0)) {\n\t\t\t\t// Replace the i-th occurrence of '%f' with '-%f'\n\t\t\t\tlet occurrence = 0;\n\t\t\t\ttemplate = template.replace(/%f/g, (match) => {\n\t\t\t\t\toccurrence++;\n\t\t\t\t\treturn occurrence === i + 1 ? \"-%f\" : match;\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}\n\tlet formatted = format(template, ...items.slice(0, count));\n\tconst isObjectItem = isObject(items[0]);\n\tformatted = formatted.replace(/\\$([$\\w.]+)/g, (_, key) => {\n\t\tvar _runner$config;\n\t\tconst isArrayKey = /^\\d+$/.test(key);\n\t\tif (!isObjectItem && !isArrayKey) {\n\t\t\treturn `$${key}`;\n\t\t}\n\t\tconst arrayElement = isArrayKey ? objectAttr(items, key) : undefined;\n\t\tconst value = isObjectItem ? objectAttr(items[0], key, arrayElement) : arrayElement;\n\t\treturn objDisplay(value, { truncate: runner === null || runner === void 0 || (_runner$config = runner.config) === null || _runner$config === void 0 || (_runner$config = _runner$config.chaiConfig) === null || _runner$config === void 0 ? void 0 : _runner$config.truncateThreshold });\n\t});\n\treturn formatted;\n}\nfunction formatTemplateString(cases, args) {\n\tconst header = cases.join(\"\").trim().replace(/ /g, \"\").split(\"\\n\").map((i) => i.split(\"|\"))[0];\n\tconst res = [];\n\tfor (let i = 0; i < Math.floor(args.length / header.length); i++) {\n\t\tconst oneCase = {};\n\t\tfor (let j = 0; j < header.length; j++) {\n\t\t\toneCase[header[j]] = args[i * header.length + j];\n\t\t}\n\t\tres.push(oneCase);\n\t}\n\treturn res;\n}\nfunction findTestFileStackTrace(error) {\n\tconst testFilePath = getTestFilepath();\n\t// first line is the error message\n\tconst lines = error.split(\"\\n\").slice(1);\n\tfor (const line of lines) {\n\t\tconst stack = parseSingleStack(line);\n\t\tif (stack && stack.file === testFilePath) {\n\t\t\treturn {\n\t\t\t\tline: stack.line,\n\t\t\t\tcolumn: stack.column\n\t\t\t};\n\t\t}\n\t}\n}\n\n/**\n* If any tasks been marked as `only`, mark all other tasks as `skip`.\n*/\nfunction interpretTaskModes(file, namePattern, testLocations, onlyMode, parentIsOnly, allowOnly) {\n\tconst matchedLocations = [];\n\tconst traverseSuite = (suite, parentIsOnly, parentMatchedWithLocation) => {\n\t\tconst suiteIsOnly = parentIsOnly || suite.mode === \"only\";\n\t\tsuite.tasks.forEach((t) => {\n\t\t\t// Check if either the parent suite or the task itself are marked as included\n\t\t\tconst includeTask = suiteIsOnly || t.mode === \"only\";\n\t\t\tif (onlyMode) {\n\t\t\t\tif (t.type === \"suite\" && (includeTask || someTasksAreOnly(t))) {\n\t\t\t\t\t// Don't skip this suite\n\t\t\t\t\tif (t.mode === \"only\") {\n\t\t\t\t\t\tcheckAllowOnly(t, allowOnly);\n\t\t\t\t\t\tt.mode = \"run\";\n\t\t\t\t\t}\n\t\t\t\t} else if (t.mode === \"run\" && !includeTask) {\n\t\t\t\t\tt.mode = \"skip\";\n\t\t\t\t} else if (t.mode === \"only\") {\n\t\t\t\t\tcheckAllowOnly(t, allowOnly);\n\t\t\t\t\tt.mode = \"run\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tlet hasLocationMatch = parentMatchedWithLocation;\n\t\t\t// Match test location against provided locations, only run if present\n\t\t\t// in `testLocations`. Note: if `includeTaskLocations` is not enabled,\n\t\t\t// all test will be skipped.\n\t\t\tif (testLocations !== undefined && testLocations.length !== 0) {\n\t\t\t\tif (t.location && (testLocations === null || testLocations === void 0 ? void 0 : testLocations.includes(t.location.line))) {\n\t\t\t\t\tt.mode = \"run\";\n\t\t\t\t\tmatchedLocations.push(t.location.line);\n\t\t\t\t\thasLocationMatch = true;\n\t\t\t\t} else if (parentMatchedWithLocation) {\n\t\t\t\t\tt.mode = \"run\";\n\t\t\t\t} else if (t.type === \"test\") {\n\t\t\t\t\tt.mode = \"skip\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (t.type === \"test\") {\n\t\t\t\tif (namePattern && !getTaskFullName(t).match(namePattern)) {\n\t\t\t\t\tt.mode = \"skip\";\n\t\t\t\t}\n\t\t\t} else if (t.type === \"suite\") {\n\t\t\t\tif (t.mode === \"skip\") {\n\t\t\t\t\tskipAllTasks(t);\n\t\t\t\t} else if (t.mode === \"todo\") {\n\t\t\t\t\ttodoAllTasks(t);\n\t\t\t\t} else {\n\t\t\t\t\ttraverseSuite(t, includeTask, hasLocationMatch);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t// if all subtasks are skipped, mark as skip\n\t\tif (suite.mode === \"run\" || suite.mode === \"queued\") {\n\t\t\tif (suite.tasks.length && suite.tasks.every((i) => i.mode !== \"run\" && i.mode !== \"queued\")) {\n\t\t\t\tsuite.mode = \"skip\";\n\t\t\t}\n\t\t}\n\t};\n\ttraverseSuite(file, parentIsOnly, false);\n\tconst nonMatching = testLocations === null || testLocations === void 0 ? void 0 : testLocations.filter((loc) => !matchedLocations.includes(loc));\n\tif (nonMatching && nonMatching.length !== 0) {\n\t\tconst message = nonMatching.length === 1 ? `line ${nonMatching[0]}` : `lines ${nonMatching.join(\", \")}`;\n\t\tif (file.result === undefined) {\n\t\t\tfile.result = {\n\t\t\t\tstate: \"fail\",\n\t\t\t\terrors: []\n\t\t\t};\n\t\t}\n\t\tif (file.result.errors === undefined) {\n\t\t\tfile.result.errors = [];\n\t\t}\n\t\tfile.result.errors.push(processError(new Error(`No test found in ${file.name} in ${message}`)));\n\t}\n}\nfunction getTaskFullName(task) {\n\treturn `${task.suite ? `${getTaskFullName(task.suite)} ` : \"\"}${task.name}`;\n}\nfunction someTasksAreOnly(suite) {\n\treturn suite.tasks.some((t) => t.mode === \"only\" || t.type === \"suite\" && someTasksAreOnly(t));\n}\nfunction skipAllTasks(suite) {\n\tsuite.tasks.forEach((t) => {\n\t\tif (t.mode === \"run\" || t.mode === \"queued\") {\n\t\t\tt.mode = \"skip\";\n\t\t\tif (t.type === \"suite\") {\n\t\t\t\tskipAllTasks(t);\n\t\t\t}\n\t\t}\n\t});\n}\nfunction todoAllTasks(suite) {\n\tsuite.tasks.forEach((t) => {\n\t\tif (t.mode === \"run\" || t.mode === \"queued\") {\n\t\t\tt.mode = \"todo\";\n\t\t\tif (t.type === \"suite\") {\n\t\t\t\ttodoAllTasks(t);\n\t\t\t}\n\t\t}\n\t});\n}\nfunction checkAllowOnly(task, allowOnly) {\n\tif (allowOnly) {\n\t\treturn;\n\t}\n\tconst error = processError(new Error(\"[Vitest] Unexpected .only modifier. Remove it or pass --allowOnly argument to bypass this error\"));\n\ttask.result = {\n\t\tstate: \"fail\",\n\t\terrors: [error]\n\t};\n}\nfunction generateHash(str) {\n\tlet hash = 0;\n\tif (str.length === 0) {\n\t\treturn `${hash}`;\n\t}\n\tfor (let i = 0; i < str.length; i++) {\n\t\tconst char = str.charCodeAt(i);\n\t\thash = (hash << 5) - hash + char;\n\t\thash = hash & hash;\n\t}\n\treturn `${hash}`;\n}\nfunction calculateSuiteHash(parent) {\n\tparent.tasks.forEach((t, idx) => {\n\t\tt.id = `${parent.id}_${idx}`;\n\t\tif (t.type === \"suite\") {\n\t\t\tcalculateSuiteHash(t);\n\t\t}\n\t});\n}\nfunction createFileTask(filepath, root, projectName, pool) {\n\tconst path = relative(root, filepath);\n\tconst file = {\n\t\tid: generateFileHash(path, projectName),\n\t\tname: path,\n\t\ttype: \"suite\",\n\t\tmode: \"queued\",\n\t\tfilepath,\n\t\ttasks: [],\n\t\tmeta: Object.create(null),\n\t\tprojectName,\n\t\tfile: undefined,\n\t\tpool\n\t};\n\tfile.file = file;\n\tsetFileContext(file, Object.create(null));\n\treturn file;\n}\n/**\n* Generate a unique ID for a file based on its path and project name\n* @param file File relative to the root of the project to keep ID the same between different machines\n* @param projectName The name of the test project\n*/\nfunction generateFileHash(file, projectName) {\n\treturn generateHash(`${file}${projectName || \"\"}`);\n}\n\nconst now$2 = globalThis.performance ? globalThis.performance.now.bind(globalThis.performance) : Date.now;\nasync function collectTests(specs, runner) {\n\tconst files = [];\n\tconst config = runner.config;\n\tfor (const spec of specs) {\n\t\tvar _runner$onCollectStar;\n\t\tconst filepath = typeof spec === \"string\" ? spec : spec.filepath;\n\t\tconst testLocations = typeof spec === \"string\" ? undefined : spec.testLocations;\n\t\tconst file = createFileTask(filepath, config.root, config.name, runner.pool);\n\t\tfile.shuffle = config.sequence.shuffle;\n\t\t(_runner$onCollectStar = runner.onCollectStart) === null || _runner$onCollectStar === void 0 ? void 0 : _runner$onCollectStar.call(runner, file);\n\t\tclearCollectorContext(filepath, runner);\n\t\ttry {\n\t\t\tvar _runner$getImportDura;\n\t\t\tconst setupFiles = toArray(config.setupFiles);\n\t\t\tif (setupFiles.length) {\n\t\t\t\tconst setupStart = now$2();\n\t\t\t\tawait runSetupFiles(config, setupFiles, runner);\n\t\t\t\tconst setupEnd = now$2();\n\t\t\t\tfile.setupDuration = setupEnd - setupStart;\n\t\t\t} else {\n\t\t\t\tfile.setupDuration = 0;\n\t\t\t}\n\t\t\tconst collectStart = now$2();\n\t\t\tawait runner.importFile(filepath, \"collect\");\n\t\t\tconst durations = (_runner$getImportDura = runner.getImportDurations) === null || _runner$getImportDura === void 0 ? void 0 : _runner$getImportDura.call(runner);\n\t\t\tif (durations) {\n\t\t\t\tfile.importDurations = durations;\n\t\t\t}\n\t\t\tconst defaultTasks = await getDefaultSuite().collect(file);\n\t\t\tconst fileHooks = createSuiteHooks();\n\t\t\tmergeHooks(fileHooks, getHooks(defaultTasks));\n\t\t\tfor (const c of [...defaultTasks.tasks, ...collectorContext.tasks]) {\n\t\t\t\tif (c.type === \"test\" || c.type === \"suite\") {\n\t\t\t\t\tfile.tasks.push(c);\n\t\t\t\t} else if (c.type === \"collector\") {\n\t\t\t\t\tconst suite = await c.collect(file);\n\t\t\t\t\tif (suite.name || suite.tasks.length) {\n\t\t\t\t\t\tmergeHooks(fileHooks, getHooks(suite));\n\t\t\t\t\t\tfile.tasks.push(suite);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// check that types are exhausted\n\t\t\t\t\tc;\n\t\t\t\t}\n\t\t\t}\n\t\t\tsetHooks(file, fileHooks);\n\t\t\tfile.collectDuration = now$2() - collectStart;\n\t\t} catch (e) {\n\t\t\tvar _runner$getImportDura2;\n\t\t\tconst error = processError(e);\n\t\t\tfile.result = {\n\t\t\t\tstate: \"fail\",\n\t\t\t\terrors: [error]\n\t\t\t};\n\t\t\tconst durations = (_runner$getImportDura2 = runner.getImportDurations) === null || _runner$getImportDura2 === void 0 ? void 0 : _runner$getImportDura2.call(runner);\n\t\t\tif (durations) {\n\t\t\t\tfile.importDurations = durations;\n\t\t\t}\n\t\t}\n\t\tcalculateSuiteHash(file);\n\t\tconst hasOnlyTasks = someTasksAreOnly(file);\n\t\tinterpretTaskModes(file, config.testNamePattern, testLocations, hasOnlyTasks, false, config.allowOnly);\n\t\tif (file.mode === \"queued\") {\n\t\t\tfile.mode = \"run\";\n\t\t}\n\t\tfiles.push(file);\n\t}\n\treturn files;\n}\nfunction mergeHooks(baseHooks, hooks) {\n\tfor (const _key in hooks) {\n\t\tconst key = _key;\n\t\tbaseHooks[key].push(...hooks[key]);\n\t}\n\treturn baseHooks;\n}\n\n/**\n* Return a function for running multiple async operations with limited concurrency.\n*/\nfunction limitConcurrency(concurrency = Infinity) {\n\t// The number of currently active + pending tasks.\n\tlet count = 0;\n\t// The head and tail of the pending task queue, built using a singly linked list.\n\t// Both head and tail are initially undefined, signifying an empty queue.\n\t// They both become undefined again whenever there are no pending tasks.\n\tlet head;\n\tlet tail;\n\t// A bookkeeping function executed whenever a task has been run to completion.\n\tconst finish = () => {\n\t\tcount--;\n\t\t// Check if there are further pending tasks in the queue.\n\t\tif (head) {\n\t\t\t// Allow the next pending task to run and pop it from the queue.\n\t\t\thead[0]();\n\t\t\thead = head[1];\n\t\t\t// The head may now be undefined if there are no further pending tasks.\n\t\t\t// In that case, set tail to undefined as well.\n\t\t\ttail = head && tail;\n\t\t}\n\t};\n\treturn (func, ...args) => {\n\t\t// Create a promise chain that:\n\t\t// 1. Waits for its turn in the task queue (if necessary).\n\t\t// 2. Runs the task.\n\t\t// 3. Allows the next pending task (if any) to run.\n\t\treturn new Promise((resolve) => {\n\t\t\tif (count++ < concurrency) {\n\t\t\t\t// No need to queue if fewer than maxConcurrency tasks are running.\n\t\t\t\tresolve();\n\t\t\t} else if (tail) {\n\t\t\t\t// There are pending tasks, so append to the queue.\n\t\t\t\ttail = tail[1] = [resolve];\n\t\t\t} else {\n\t\t\t\t// No other pending tasks, initialize the queue with a new tail and head.\n\t\t\t\thead = tail = [resolve];\n\t\t\t}\n\t\t}).then(() => {\n\t\t\t// Running func here ensures that even a non-thenable result or an\n\t\t\t// immediately thrown error gets wrapped into a Promise.\n\t\t\treturn func(...args);\n\t\t}).finally(finish);\n\t};\n}\n\n/**\n* Partition in tasks groups by consecutive concurrent\n*/\nfunction partitionSuiteChildren(suite) {\n\tlet tasksGroup = [];\n\tconst tasksGroups = [];\n\tfor (const c of suite.tasks) {\n\t\tif (tasksGroup.length === 0 || c.concurrent === tasksGroup[0].concurrent) {\n\t\t\ttasksGroup.push(c);\n\t\t} else {\n\t\t\ttasksGroups.push(tasksGroup);\n\t\t\ttasksGroup = [c];\n\t\t}\n\t}\n\tif (tasksGroup.length > 0) {\n\t\ttasksGroups.push(tasksGroup);\n\t}\n\treturn tasksGroups;\n}\n\n/**\n* @deprecated use `isTestCase` instead\n*/\nfunction isAtomTest(s) {\n\treturn isTestCase(s);\n}\nfunction isTestCase(s) {\n\treturn s.type === \"test\";\n}\nfunction getTests(suite) {\n\tconst tests = [];\n\tconst arraySuites = toArray(suite);\n\tfor (const s of arraySuites) {\n\t\tif (isTestCase(s)) {\n\t\t\ttests.push(s);\n\t\t} else {\n\t\t\tfor (const task of s.tasks) {\n\t\t\t\tif (isTestCase(task)) {\n\t\t\t\t\ttests.push(task);\n\t\t\t\t} else {\n\t\t\t\t\tconst taskTests = getTests(task);\n\t\t\t\t\tfor (const test of taskTests) {\n\t\t\t\t\t\ttests.push(test);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn tests;\n}\nfunction getTasks(tasks = []) {\n\treturn toArray(tasks).flatMap((s) => isTestCase(s) ? [s] : [s, ...getTasks(s.tasks)]);\n}\nfunction getSuites(suite) {\n\treturn toArray(suite).flatMap((s) => s.type === \"suite\" ? [s, ...getSuites(s.tasks)] : []);\n}\nfunction hasTests(suite) {\n\treturn toArray(suite).some((s) => s.tasks.some((c) => isTestCase(c) || hasTests(c)));\n}\nfunction hasFailed(suite) {\n\treturn toArray(suite).some((s) => {\n\t\tvar _s$result;\n\t\treturn ((_s$result = s.result) === null || _s$result === void 0 ? void 0 : _s$result.state) === \"fail\" || s.type === \"suite\" && hasFailed(s.tasks);\n\t});\n}\nfunction getNames(task) {\n\tconst names = [task.name];\n\tlet current = task;\n\twhile (current === null || current === void 0 ? void 0 : current.suite) {\n\t\tcurrent = current.suite;\n\t\tif (current === null || current === void 0 ? void 0 : current.name) {\n\t\t\tnames.unshift(current.name);\n\t\t}\n\t}\n\tif (current !== task.file) {\n\t\tnames.unshift(task.file.name);\n\t}\n\treturn names;\n}\nfunction getFullName(task, separator = \" > \") {\n\treturn getNames(task).join(separator);\n}\nfunction getTestName(task, separator = \" > \") {\n\treturn getNames(task).slice(1).join(separator);\n}\n\nconst now$1 = globalThis.performance ? globalThis.performance.now.bind(globalThis.performance) : Date.now;\nconst unixNow = Date.now;\nconst { clearTimeout, setTimeout } = getSafeTimers();\nfunction updateSuiteHookState(task, name, state, runner) {\n\tif (!task.result) {\n\t\ttask.result = { state: \"run\" };\n\t}\n\tif (!task.result.hooks) {\n\t\ttask.result.hooks = {};\n\t}\n\tconst suiteHooks = task.result.hooks;\n\tif (suiteHooks) {\n\t\tsuiteHooks[name] = state;\n\t\tlet event = state === \"run\" ? \"before-hook-start\" : \"before-hook-end\";\n\t\tif (name === \"afterAll\" || name === \"afterEach\") {\n\t\t\tevent = state === \"run\" ? \"after-hook-start\" : \"after-hook-end\";\n\t\t}\n\t\tupdateTask(event, task, runner);\n\t}\n}\nfunction getSuiteHooks(suite, name, sequence) {\n\tconst hooks = getHooks(suite)[name];\n\tif (sequence === \"stack\" && (name === \"afterAll\" || name === \"afterEach\")) {\n\t\treturn hooks.slice().reverse();\n\t}\n\treturn hooks;\n}\nasync function callTestHooks(runner, test, hooks, sequence) {\n\tif (sequence === \"stack\") {\n\t\thooks = hooks.slice().reverse();\n\t}\n\tif (!hooks.length) {\n\t\treturn;\n\t}\n\tconst context = test.context;\n\tconst onTestFailed = test.context.onTestFailed;\n\tconst onTestFinished = test.context.onTestFinished;\n\tcontext.onTestFailed = () => {\n\t\tthrow new Error(`Cannot call \"onTestFailed\" inside a test hook.`);\n\t};\n\tcontext.onTestFinished = () => {\n\t\tthrow new Error(`Cannot call \"onTestFinished\" inside a test hook.`);\n\t};\n\tif (sequence === \"parallel\") {\n\t\ttry {\n\t\t\tawait Promise.all(hooks.map((fn) => fn(test.context)));\n\t\t} catch (e) {\n\t\t\tfailTask(test.result, e, runner.config.diffOptions);\n\t\t}\n\t} else {\n\t\tfor (const fn of hooks) {\n\t\t\ttry {\n\t\t\t\tawait fn(test.context);\n\t\t\t} catch (e) {\n\t\t\t\tfailTask(test.result, e, runner.config.diffOptions);\n\t\t\t}\n\t\t}\n\t}\n\tcontext.onTestFailed = onTestFailed;\n\tcontext.onTestFinished = onTestFinished;\n}\nasync function callSuiteHook(suite, currentTask, name, runner, args) {\n\tconst sequence = runner.config.sequence.hooks;\n\tconst callbacks = [];\n\t// stop at file level\n\tconst parentSuite = \"filepath\" in suite ? null : suite.suite || suite.file;\n\tif (name === \"beforeEach\" && parentSuite) {\n\t\tcallbacks.push(...await callSuiteHook(parentSuite, currentTask, name, runner, args));\n\t}\n\tconst hooks = getSuiteHooks(suite, name, sequence);\n\tif (hooks.length > 0) {\n\t\tupdateSuiteHookState(currentTask, name, \"run\", runner);\n\t}\n\tasync function runHook(hook) {\n\t\treturn getBeforeHookCleanupCallback(hook, await hook(...args), name === \"beforeEach\" ? args[0] : undefined);\n\t}\n\tif (sequence === \"parallel\") {\n\t\tcallbacks.push(...await Promise.all(hooks.map((hook) => runHook(hook))));\n\t} else {\n\t\tfor (const hook of hooks) {\n\t\t\tcallbacks.push(await runHook(hook));\n\t\t}\n\t}\n\tif (hooks.length > 0) {\n\t\tupdateSuiteHookState(currentTask, name, \"pass\", runner);\n\t}\n\tif (name === \"afterEach\" && parentSuite) {\n\t\tcallbacks.push(...await callSuiteHook(parentSuite, currentTask, name, runner, args));\n\t}\n\treturn callbacks;\n}\nconst packs = new Map();\nconst eventsPacks = [];\nconst pendingTasksUpdates = [];\nfunction sendTasksUpdate(runner) {\n\tif (packs.size) {\n\t\tvar _runner$onTaskUpdate;\n\t\tconst taskPacks = Array.from(packs).map(([id, task]) => {\n\t\t\treturn [\n\t\t\t\tid,\n\t\t\t\ttask[0],\n\t\t\t\ttask[1]\n\t\t\t];\n\t\t});\n\t\tconst p = (_runner$onTaskUpdate = runner.onTaskUpdate) === null || _runner$onTaskUpdate === void 0 ? void 0 : _runner$onTaskUpdate.call(runner, taskPacks, eventsPacks);\n\t\tif (p) {\n\t\t\tpendingTasksUpdates.push(p);\n\t\t\t// remove successful promise to not grow array indefnitely,\n\t\t\t// but keep rejections so finishSendTasksUpdate can handle them\n\t\t\tp.then(() => pendingTasksUpdates.splice(pendingTasksUpdates.indexOf(p), 1), () => {});\n\t\t}\n\t\teventsPacks.length = 0;\n\t\tpacks.clear();\n\t}\n}\nasync function finishSendTasksUpdate(runner) {\n\tsendTasksUpdate(runner);\n\tawait Promise.all(pendingTasksUpdates);\n}\nfunction throttle(fn, ms) {\n\tlet last = 0;\n\tlet pendingCall;\n\treturn function call(...args) {\n\t\tconst now = unixNow();\n\t\tif (now - last > ms) {\n\t\t\tlast = now;\n\t\t\tclearTimeout(pendingCall);\n\t\t\tpendingCall = undefined;\n\t\t\treturn fn.apply(this, args);\n\t\t}\n\t\t// Make sure fn is still called even if there are no further calls\n\t\tpendingCall ?? (pendingCall = setTimeout(() => call.bind(this)(...args), ms));\n\t};\n}\n// throttle based on summary reporter's DURATION_UPDATE_INTERVAL_MS\nconst sendTasksUpdateThrottled = throttle(sendTasksUpdate, 100);\nfunction updateTask(event, task, runner) {\n\teventsPacks.push([\n\t\ttask.id,\n\t\tevent,\n\t\tundefined\n\t]);\n\tpacks.set(task.id, [task.result, task.meta]);\n\tsendTasksUpdateThrottled(runner);\n}\nasync function callCleanupHooks(runner, cleanups) {\n\tconst sequence = runner.config.sequence.hooks;\n\tif (sequence === \"stack\") {\n\t\tcleanups = cleanups.slice().reverse();\n\t}\n\tif (sequence === \"parallel\") {\n\t\tawait Promise.all(cleanups.map(async (fn) => {\n\t\t\tif (typeof fn !== \"function\") {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tawait fn();\n\t\t}));\n\t} else {\n\t\tfor (const fn of cleanups) {\n\t\t\tif (typeof fn !== \"function\") {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tawait fn();\n\t\t}\n\t}\n}\nasync function runTest(test, runner) {\n\tvar _runner$onBeforeRunTa, _test$result, _runner$onAfterRunTas;\n\tawait ((_runner$onBeforeRunTa = runner.onBeforeRunTask) === null || _runner$onBeforeRunTa === void 0 ? void 0 : _runner$onBeforeRunTa.call(runner, test));\n\tif (test.mode !== \"run\" && test.mode !== \"queued\") {\n\t\tupdateTask(\"test-prepare\", test, runner);\n\t\tupdateTask(\"test-finished\", test, runner);\n\t\treturn;\n\t}\n\tif (((_test$result = test.result) === null || _test$result === void 0 ? void 0 : _test$result.state) === \"fail\") {\n\t\t// should not be possible to get here, I think this is just copy pasted from suite\n\t\t// TODO: maybe someone fails tests in `beforeAll` hooks?\n\t\t// https://github.com/vitest-dev/vitest/pull/7069\n\t\tupdateTask(\"test-failed-early\", test, runner);\n\t\treturn;\n\t}\n\tconst start = now$1();\n\ttest.result = {\n\t\tstate: \"run\",\n\t\tstartTime: unixNow(),\n\t\tretryCount: 0\n\t};\n\tupdateTask(\"test-prepare\", test, runner);\n\tconst cleanupRunningTest = addRunningTest(test);\n\tsetCurrentTest(test);\n\tconst suite = test.suite || test.file;\n\tconst repeats = test.repeats ?? 0;\n\tfor (let repeatCount = 0; repeatCount <= repeats; repeatCount++) {\n\t\tconst retry = test.retry ?? 0;\n\t\tfor (let retryCount = 0; retryCount <= retry; retryCount++) {\n\t\t\tvar _test$result2, _test$result3;\n\t\t\tlet beforeEachCleanups = [];\n\t\t\ttry {\n\t\t\t\tvar _runner$onBeforeTryTa, _runner$onAfterTryTas;\n\t\t\t\tawait ((_runner$onBeforeTryTa = runner.onBeforeTryTask) === null || _runner$onBeforeTryTa === void 0 ? void 0 : _runner$onBeforeTryTa.call(runner, test, {\n\t\t\t\t\tretry: retryCount,\n\t\t\t\t\trepeats: repeatCount\n\t\t\t\t}));\n\t\t\t\ttest.result.repeatCount = repeatCount;\n\t\t\t\tbeforeEachCleanups = await callSuiteHook(suite, test, \"beforeEach\", runner, [test.context, suite]);\n\t\t\t\tif (runner.runTask) {\n\t\t\t\t\tawait runner.runTask(test);\n\t\t\t\t} else {\n\t\t\t\t\tconst fn = getFn(test);\n\t\t\t\t\tif (!fn) {\n\t\t\t\t\t\tthrow new Error(\"Test function is not found. Did you add it using `setFn`?\");\n\t\t\t\t\t}\n\t\t\t\t\tawait fn();\n\t\t\t\t}\n\t\t\t\tawait ((_runner$onAfterTryTas = runner.onAfterTryTask) === null || _runner$onAfterTryTas === void 0 ? void 0 : _runner$onAfterTryTas.call(runner, test, {\n\t\t\t\t\tretry: retryCount,\n\t\t\t\t\trepeats: repeatCount\n\t\t\t\t}));\n\t\t\t\tif (test.result.state !== \"fail\") {\n\t\t\t\t\tif (!test.repeats) {\n\t\t\t\t\t\ttest.result.state = \"pass\";\n\t\t\t\t\t} else if (test.repeats && retry === retryCount) {\n\t\t\t\t\t\ttest.result.state = \"pass\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\tfailTask(test.result, e, runner.config.diffOptions);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tvar _runner$onTaskFinishe;\n\t\t\t\tawait ((_runner$onTaskFinishe = runner.onTaskFinished) === null || _runner$onTaskFinishe === void 0 ? void 0 : _runner$onTaskFinishe.call(runner, test));\n\t\t\t} catch (e) {\n\t\t\t\tfailTask(test.result, e, runner.config.diffOptions);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tawait callSuiteHook(suite, test, \"afterEach\", runner, [test.context, suite]);\n\t\t\t\tawait callCleanupHooks(runner, beforeEachCleanups);\n\t\t\t\tawait callFixtureCleanup(test.context);\n\t\t\t} catch (e) {\n\t\t\t\tfailTask(test.result, e, runner.config.diffOptions);\n\t\t\t}\n\t\t\tawait callTestHooks(runner, test, test.onFinished || [], \"stack\");\n\t\t\tif (test.result.state === \"fail\") {\n\t\t\t\tawait callTestHooks(runner, test, test.onFailed || [], runner.config.sequence.hooks);\n\t\t\t}\n\t\t\ttest.onFailed = undefined;\n\t\t\ttest.onFinished = undefined;\n\t\t\t// skipped with new PendingError\n\t\t\tif (((_test$result2 = test.result) === null || _test$result2 === void 0 ? void 0 : _test$result2.pending) || ((_test$result3 = test.result) === null || _test$result3 === void 0 ? void 0 : _test$result3.state) === \"skip\") {\n\t\t\t\tvar _test$result4;\n\t\t\t\ttest.mode = \"skip\";\n\t\t\t\ttest.result = {\n\t\t\t\t\tstate: \"skip\",\n\t\t\t\t\tnote: (_test$result4 = test.result) === null || _test$result4 === void 0 ? void 0 : _test$result4.note,\n\t\t\t\t\tpending: true,\n\t\t\t\t\tduration: now$1() - start\n\t\t\t\t};\n\t\t\t\tupdateTask(\"test-finished\", test, runner);\n\t\t\t\tsetCurrentTest(undefined);\n\t\t\t\tcleanupRunningTest();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (test.result.state === \"pass\") {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (retryCount < retry) {\n\t\t\t\t// reset state when retry test\n\t\t\t\ttest.result.state = \"run\";\n\t\t\t\ttest.result.retryCount = (test.result.retryCount ?? 0) + 1;\n\t\t\t}\n\t\t\t// update retry info\n\t\t\tupdateTask(\"test-retried\", test, runner);\n\t\t}\n\t}\n\t// if test is marked to be failed, flip the result\n\tif (test.fails) {\n\t\tif (test.result.state === \"pass\") {\n\t\t\tconst error = processError(new Error(\"Expect test to fail\"));\n\t\t\ttest.result.state = \"fail\";\n\t\t\ttest.result.errors = [error];\n\t\t} else {\n\t\t\ttest.result.state = \"pass\";\n\t\t\ttest.result.errors = undefined;\n\t\t}\n\t}\n\tcleanupRunningTest();\n\tsetCurrentTest(undefined);\n\ttest.result.duration = now$1() - start;\n\tawait ((_runner$onAfterRunTas = runner.onAfterRunTask) === null || _runner$onAfterRunTas === void 0 ? void 0 : _runner$onAfterRunTas.call(runner, test));\n\tupdateTask(\"test-finished\", test, runner);\n}\nfunction failTask(result, err, diffOptions) {\n\tif (err instanceof PendingError) {\n\t\tresult.state = \"skip\";\n\t\tresult.note = err.note;\n\t\tresult.pending = true;\n\t\treturn;\n\t}\n\tresult.state = \"fail\";\n\tconst errors = Array.isArray(err) ? err : [err];\n\tfor (const e of errors) {\n\t\tconst error = processError(e, diffOptions);\n\t\tresult.errors ?? (result.errors = []);\n\t\tresult.errors.push(error);\n\t}\n}\nfunction markTasksAsSkipped(suite, runner) {\n\tsuite.tasks.forEach((t) => {\n\t\tt.mode = \"skip\";\n\t\tt.result = {\n\t\t\t...t.result,\n\t\t\tstate: \"skip\"\n\t\t};\n\t\tupdateTask(\"test-finished\", t, runner);\n\t\tif (t.type === \"suite\") {\n\t\t\tmarkTasksAsSkipped(t, runner);\n\t\t}\n\t});\n}\nasync function runSuite(suite, runner) {\n\tvar _runner$onBeforeRunSu, _suite$result;\n\tawait ((_runner$onBeforeRunSu = runner.onBeforeRunSuite) === null || _runner$onBeforeRunSu === void 0 ? void 0 : _runner$onBeforeRunSu.call(runner, suite));\n\tif (((_suite$result = suite.result) === null || _suite$result === void 0 ? void 0 : _suite$result.state) === \"fail\") {\n\t\tmarkTasksAsSkipped(suite, runner);\n\t\t// failed during collection\n\t\tupdateTask(\"suite-failed-early\", suite, runner);\n\t\treturn;\n\t}\n\tconst start = now$1();\n\tconst mode = suite.mode;\n\tsuite.result = {\n\t\tstate: mode === \"skip\" || mode === \"todo\" ? mode : \"run\",\n\t\tstartTime: unixNow()\n\t};\n\tupdateTask(\"suite-prepare\", suite, runner);\n\tlet beforeAllCleanups = [];\n\tif (suite.mode === \"skip\") {\n\t\tsuite.result.state = \"skip\";\n\t\tupdateTask(\"suite-finished\", suite, runner);\n\t} else if (suite.mode === \"todo\") {\n\t\tsuite.result.state = \"todo\";\n\t\tupdateTask(\"suite-finished\", suite, runner);\n\t} else {\n\t\tvar _runner$onAfterRunSui;\n\t\ttry {\n\t\t\ttry {\n\t\t\t\tbeforeAllCleanups = await callSuiteHook(suite, suite, \"beforeAll\", runner, [suite]);\n\t\t\t} catch (e) {\n\t\t\t\tmarkTasksAsSkipped(suite, runner);\n\t\t\t\tthrow e;\n\t\t\t}\n\t\t\tif (runner.runSuite) {\n\t\t\t\tawait runner.runSuite(suite);\n\t\t\t} else {\n\t\t\t\tfor (let tasksGroup of partitionSuiteChildren(suite)) {\n\t\t\t\t\tif (tasksGroup[0].concurrent === true) {\n\t\t\t\t\t\tawait Promise.all(tasksGroup.map((c) => runSuiteChild(c, runner)));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tconst { sequence } = runner.config;\n\t\t\t\t\t\tif (suite.shuffle) {\n\t\t\t\t\t\t\t// run describe block independently from tests\n\t\t\t\t\t\t\tconst suites = tasksGroup.filter((group) => group.type === \"suite\");\n\t\t\t\t\t\t\tconst tests = tasksGroup.filter((group) => group.type === \"test\");\n\t\t\t\t\t\t\tconst groups = shuffle([suites, tests], sequence.seed);\n\t\t\t\t\t\t\ttasksGroup = groups.flatMap((group) => shuffle(group, sequence.seed));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (const c of tasksGroup) {\n\t\t\t\t\t\t\tawait runSuiteChild(c, runner);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (e) {\n\t\t\tfailTask(suite.result, e, runner.config.diffOptions);\n\t\t}\n\t\ttry {\n\t\t\tawait callSuiteHook(suite, suite, \"afterAll\", runner, [suite]);\n\t\t\tawait callCleanupHooks(runner, beforeAllCleanups);\n\t\t\tif (suite.file === suite) {\n\t\t\t\tconst context = getFileContext(suite);\n\t\t\t\tawait callFixtureCleanup(context);\n\t\t\t}\n\t\t} catch (e) {\n\t\t\tfailTask(suite.result, e, runner.config.diffOptions);\n\t\t}\n\t\tif (suite.mode === \"run\" || suite.mode === \"queued\") {\n\t\t\tif (!runner.config.passWithNoTests && !hasTests(suite)) {\n\t\t\t\tvar _suite$result$errors;\n\t\t\t\tsuite.result.state = \"fail\";\n\t\t\t\tif (!((_suite$result$errors = suite.result.errors) === null || _suite$result$errors === void 0 ? void 0 : _suite$result$errors.length)) {\n\t\t\t\t\tconst error = processError(new Error(`No test found in suite ${suite.name}`));\n\t\t\t\t\tsuite.result.errors = [error];\n\t\t\t\t}\n\t\t\t} else if (hasFailed(suite)) {\n\t\t\t\tsuite.result.state = \"fail\";\n\t\t\t} else {\n\t\t\t\tsuite.result.state = \"pass\";\n\t\t\t}\n\t\t}\n\t\tsuite.result.duration = now$1() - start;\n\t\tupdateTask(\"suite-finished\", suite, runner);\n\t\tawait ((_runner$onAfterRunSui = runner.onAfterRunSuite) === null || _runner$onAfterRunSui === void 0 ? void 0 : _runner$onAfterRunSui.call(runner, suite));\n\t}\n}\nlet limitMaxConcurrency;\nasync function runSuiteChild(c, runner) {\n\tif (c.type === \"test\") {\n\t\treturn limitMaxConcurrency(() => runTest(c, runner));\n\t} else if (c.type === \"suite\") {\n\t\treturn runSuite(c, runner);\n\t}\n}\nasync function runFiles(files, runner) {\n\tlimitMaxConcurrency ?? (limitMaxConcurrency = limitConcurrency(runner.config.maxConcurrency));\n\tfor (const file of files) {\n\t\tif (!file.tasks.length && !runner.config.passWithNoTests) {\n\t\t\tvar _file$result;\n\t\t\tif (!((_file$result = file.result) === null || _file$result === void 0 || (_file$result = _file$result.errors) === null || _file$result === void 0 ? void 0 : _file$result.length)) {\n\t\t\t\tconst error = processError(new Error(`No test suite found in file ${file.filepath}`));\n\t\t\t\tfile.result = {\n\t\t\t\t\tstate: \"fail\",\n\t\t\t\t\terrors: [error]\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t\tawait runSuite(file, runner);\n\t}\n}\nconst workerRunners = new WeakSet();\nasync function startTests(specs, runner) {\n\tvar _runner$cancel;\n\tconst cancel = (_runner$cancel = runner.cancel) === null || _runner$cancel === void 0 ? void 0 : _runner$cancel.bind(runner);\n\t// Ideally, we need to have an event listener for this, but only have a runner here.\n\t// Adding another onCancel felt wrong (maybe it needs to be refactored)\n\trunner.cancel = (reason) => {\n\t\t// We intentionally create only one error since there is only one test run that can be cancelled\n\t\tconst error = new TestRunAbortError(\"The test run was aborted by the user.\", reason);\n\t\tgetRunningTests().forEach((test) => abortContextSignal(test.context, error));\n\t\treturn cancel === null || cancel === void 0 ? void 0 : cancel(reason);\n\t};\n\tif (!workerRunners.has(runner)) {\n\t\tvar _runner$onCleanupWork;\n\t\t(_runner$onCleanupWork = runner.onCleanupWorkerContext) === null || _runner$onCleanupWork === void 0 ? void 0 : _runner$onCleanupWork.call(runner, async () => {\n\t\t\tvar _runner$getWorkerCont;\n\t\t\tconst context = (_runner$getWorkerCont = runner.getWorkerContext) === null || _runner$getWorkerCont === void 0 ? void 0 : _runner$getWorkerCont.call(runner);\n\t\t\tif (context) {\n\t\t\t\tawait callFixtureCleanup(context);\n\t\t\t}\n\t\t});\n\t\tworkerRunners.add(runner);\n\t}\n\ttry {\n\t\tvar _runner$onBeforeColle, _runner$onCollected, _runner$onBeforeRunFi, _runner$onAfterRunFil;\n\t\tconst paths = specs.map((f) => typeof f === \"string\" ? f : f.filepath);\n\t\tawait ((_runner$onBeforeColle = runner.onBeforeCollect) === null || _runner$onBeforeColle === void 0 ? void 0 : _runner$onBeforeColle.call(runner, paths));\n\t\tconst files = await collectTests(specs, runner);\n\t\tawait ((_runner$onCollected = runner.onCollected) === null || _runner$onCollected === void 0 ? void 0 : _runner$onCollected.call(runner, files));\n\t\tawait ((_runner$onBeforeRunFi = runner.onBeforeRunFiles) === null || _runner$onBeforeRunFi === void 0 ? void 0 : _runner$onBeforeRunFi.call(runner, files));\n\t\tawait runFiles(files, runner);\n\t\tawait ((_runner$onAfterRunFil = runner.onAfterRunFiles) === null || _runner$onAfterRunFil === void 0 ? void 0 : _runner$onAfterRunFil.call(runner, files));\n\t\tawait finishSendTasksUpdate(runner);\n\t\treturn files;\n\t} finally {\n\t\trunner.cancel = cancel;\n\t}\n}\nasync function publicCollect(specs, runner) {\n\tvar _runner$onBeforeColle2, _runner$onCollected2;\n\tconst paths = specs.map((f) => typeof f === \"string\" ? f : f.filepath);\n\tawait ((_runner$onBeforeColle2 = runner.onBeforeCollect) === null || _runner$onBeforeColle2 === void 0 ? void 0 : _runner$onBeforeColle2.call(runner, paths));\n\tconst files = await collectTests(specs, runner);\n\tawait ((_runner$onCollected2 = runner.onCollected) === null || _runner$onCollected2 === void 0 ? void 0 : _runner$onCollected2.call(runner, files));\n\treturn files;\n}\n\nconst now = Date.now;\nconst collectorContext = {\n\ttasks: [],\n\tcurrentSuite: null\n};\nfunction collectTask(task) {\n\tvar _collectorContext$cur;\n\t(_collectorContext$cur = collectorContext.currentSuite) === null || _collectorContext$cur === void 0 ? void 0 : _collectorContext$cur.tasks.push(task);\n}\nasync function runWithSuite(suite, fn) {\n\tconst prev = collectorContext.currentSuite;\n\tcollectorContext.currentSuite = suite;\n\tawait fn();\n\tcollectorContext.currentSuite = prev;\n}\nfunction withTimeout(fn, timeout, isHook = false, stackTraceError, onTimeout) {\n\tif (timeout <= 0 || timeout === Number.POSITIVE_INFINITY) {\n\t\treturn fn;\n\t}\n\tconst { setTimeout, clearTimeout } = getSafeTimers();\n\t// this function name is used to filter error in test/cli/test/fails.test.ts\n\treturn function runWithTimeout(...args) {\n\t\tconst startTime = now();\n\t\tconst runner = getRunner();\n\t\trunner._currentTaskStartTime = startTime;\n\t\trunner._currentTaskTimeout = timeout;\n\t\treturn new Promise((resolve_, reject_) => {\n\t\t\tvar _timer$unref;\n\t\t\tconst timer = setTimeout(() => {\n\t\t\t\tclearTimeout(timer);\n\t\t\t\trejectTimeoutError();\n\t\t\t}, timeout);\n\t\t\t// `unref` might not exist in browser\n\t\t\t(_timer$unref = timer.unref) === null || _timer$unref === void 0 ? void 0 : _timer$unref.call(timer);\n\t\t\tfunction rejectTimeoutError() {\n\t\t\t\tconst error = makeTimeoutError(isHook, timeout, stackTraceError);\n\t\t\t\tonTimeout === null || onTimeout === void 0 ? void 0 : onTimeout(args, error);\n\t\t\t\treject_(error);\n\t\t\t}\n\t\t\tfunction resolve(result) {\n\t\t\t\trunner._currentTaskStartTime = undefined;\n\t\t\t\trunner._currentTaskTimeout = undefined;\n\t\t\t\tclearTimeout(timer);\n\t\t\t\t// if test/hook took too long in microtask, setTimeout won't be triggered,\n\t\t\t\t// but we still need to fail the test, see\n\t\t\t\t// https://github.com/vitest-dev/vitest/issues/2920\n\t\t\t\tif (now() - startTime >= timeout) {\n\t\t\t\t\trejectTimeoutError();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tresolve_(result);\n\t\t\t}\n\t\t\tfunction reject(error) {\n\t\t\t\trunner._currentTaskStartTime = undefined;\n\t\t\t\trunner._currentTaskTimeout = undefined;\n\t\t\t\tclearTimeout(timer);\n\t\t\t\treject_(error);\n\t\t\t}\n\t\t\t// sync test/hook will be caught by try/catch\n\t\t\ttry {\n\t\t\t\tconst result = fn(...args);\n\t\t\t\t// the result is a thenable, we don't wrap this in Promise.resolve\n\t\t\t\t// to avoid creating new promises\n\t\t\t\tif (typeof result === \"object\" && result != null && typeof result.then === \"function\") {\n\t\t\t\t\tresult.then(resolve, reject);\n\t\t\t\t} else {\n\t\t\t\t\tresolve(result);\n\t\t\t\t}\n\t\t\t} \n\t\t\t// user sync test/hook throws an error\ncatch (error) {\n\t\t\t\treject(error);\n\t\t\t}\n\t\t});\n\t};\n}\nconst abortControllers = new WeakMap();\nfunction abortIfTimeout([context], error) {\n\tif (context) {\n\t\tabortContextSignal(context, error);\n\t}\n}\nfunction abortContextSignal(context, error) {\n\tconst abortController = abortControllers.get(context);\n\tabortController === null || abortController === void 0 ? void 0 : abortController.abort(error);\n}\nfunction createTestContext(test, runner) {\n\tvar _runner$extendTaskCon;\n\tconst context = function() {\n\t\tthrow new Error(\"done() callback is deprecated, use promise instead\");\n\t};\n\tlet abortController = abortControllers.get(context);\n\tif (!abortController) {\n\t\tabortController = new AbortController();\n\t\tabortControllers.set(context, abortController);\n\t}\n\tcontext.signal = abortController.signal;\n\tcontext.task = test;\n\tcontext.skip = (condition, note) => {\n\t\tif (condition === false) {\n\t\t\t// do nothing\n\t\t\treturn undefined;\n\t\t}\n\t\ttest.result ?? (test.result = { state: \"skip\" });\n\t\ttest.result.pending = true;\n\t\tthrow new PendingError(\"test is skipped; abort execution\", test, typeof condition === \"string\" ? condition : note);\n\t};\n\tasync function annotate(message, location, type, attachment) {\n\t\tconst annotation = {\n\t\t\tmessage,\n\t\t\ttype: type || \"notice\"\n\t\t};\n\t\tif (attachment) {\n\t\t\tif (!attachment.body && !attachment.path) {\n\t\t\t\tthrow new TypeError(`Test attachment requires body or path to be set. Both are missing.`);\n\t\t\t}\n\t\t\tif (attachment.body && attachment.path) {\n\t\t\t\tthrow new TypeError(`Test attachment requires only one of \"body\" or \"path\" to be set. Both are specified.`);\n\t\t\t}\n\t\t\tannotation.attachment = attachment;\n\t\t\t// convert to a string so it's easier to serialise\n\t\t\tif (attachment.body instanceof Uint8Array) {\n\t\t\t\tattachment.body = encodeUint8Array(attachment.body);\n\t\t\t}\n\t\t}\n\t\tif (location) {\n\t\t\tannotation.location = location;\n\t\t}\n\t\tif (!runner.onTestAnnotate) {\n\t\t\tthrow new Error(`Test runner doesn't support test annotations.`);\n\t\t}\n\t\tawait finishSendTasksUpdate(runner);\n\t\tconst resolvedAnnotation = await runner.onTestAnnotate(test, annotation);\n\t\ttest.annotations.push(resolvedAnnotation);\n\t\treturn resolvedAnnotation;\n\t}\n\tcontext.annotate = (message, type, attachment) => {\n\t\tif (test.result && test.result.state !== \"run\") {\n\t\t\tthrow new Error(`Cannot annotate tests outside of the test run. The test \"${test.name}\" finished running with the \"${test.result.state}\" state already.`);\n\t\t}\n\t\tlet location;\n\t\tconst stack = new Error(\"STACK_TRACE\").stack;\n\t\tconst index = stack.includes(\"STACK_TRACE\") ? 2 : 1;\n\t\tconst stackLine = stack.split(\"\\n\")[index];\n\t\tconst parsed = parseSingleStack(stackLine);\n\t\tif (parsed) {\n\t\t\tlocation = {\n\t\t\t\tfile: parsed.file,\n\t\t\t\tline: parsed.line,\n\t\t\t\tcolumn: parsed.column\n\t\t\t};\n\t\t}\n\t\tif (typeof type === \"object\") {\n\t\t\treturn recordAsyncAnnotation(test, annotate(message, location, undefined, type));\n\t\t} else {\n\t\t\treturn recordAsyncAnnotation(test, annotate(message, location, type, attachment));\n\t\t}\n\t};\n\tcontext.onTestFailed = (handler, timeout) => {\n\t\ttest.onFailed || (test.onFailed = []);\n\t\ttest.onFailed.push(withTimeout(handler, timeout ?? runner.config.hookTimeout, true, new Error(\"STACK_TRACE_ERROR\"), (_, error) => abortController.abort(error)));\n\t};\n\tcontext.onTestFinished = (handler, timeout) => {\n\t\ttest.onFinished || (test.onFinished = []);\n\t\ttest.onFinished.push(withTimeout(handler, timeout ?? runner.config.hookTimeout, true, new Error(\"STACK_TRACE_ERROR\"), (_, error) => abortController.abort(error)));\n\t};\n\treturn ((_runner$extendTaskCon = runner.extendTaskContext) === null || _runner$extendTaskCon === void 0 ? void 0 : _runner$extendTaskCon.call(runner, context)) || context;\n}\nfunction makeTimeoutError(isHook, timeout, stackTraceError) {\n\tconst message = `${isHook ? \"Hook\" : \"Test\"} timed out in ${timeout}ms.\\nIf this is a long-running ${isHook ? \"hook\" : \"test\"}, pass a timeout value as the last argument or configure it globally with \"${isHook ? \"hookTimeout\" : \"testTimeout\"}\".`;\n\tconst error = new Error(message);\n\tif (stackTraceError === null || stackTraceError === void 0 ? void 0 : stackTraceError.stack) {\n\t\terror.stack = stackTraceError.stack.replace(error.message, stackTraceError.message);\n\t}\n\treturn error;\n}\nconst fileContexts = new WeakMap();\nfunction getFileContext(file) {\n\tconst context = fileContexts.get(file);\n\tif (!context) {\n\t\tthrow new Error(`Cannot find file context for ${file.name}`);\n\t}\n\treturn context;\n}\nfunction setFileContext(file, context) {\n\tfileContexts.set(file, context);\n}\nconst table = [];\nfor (let i = 65; i < 91; i++) {\n\ttable.push(String.fromCharCode(i));\n}\nfor (let i = 97; i < 123; i++) {\n\ttable.push(String.fromCharCode(i));\n}\nfor (let i = 0; i < 10; i++) {\n\ttable.push(i.toString(10));\n}\nfunction encodeUint8Array(bytes) {\n\tlet base64 = \"\";\n\tconst len = bytes.byteLength;\n\tfor (let i = 0; i < len; i += 3) {\n\t\tif (len === i + 1) {\n\t\t\tconst a = (bytes[i] & 252) >> 2;\n\t\t\tconst b = (bytes[i] & 3) << 4;\n\t\t\tbase64 += table[a];\n\t\t\tbase64 += table[b];\n\t\t\tbase64 += \"==\";\n\t\t} else if (len === i + 2) {\n\t\t\tconst a = (bytes[i] & 252) >> 2;\n\t\t\tconst b = (bytes[i] & 3) << 4 | (bytes[i + 1] & 240) >> 4;\n\t\t\tconst c = (bytes[i + 1] & 15) << 2;\n\t\t\tbase64 += table[a];\n\t\t\tbase64 += table[b];\n\t\t\tbase64 += table[c];\n\t\t\tbase64 += \"=\";\n\t\t} else {\n\t\t\tconst a = (bytes[i] & 252) >> 2;\n\t\t\tconst b = (bytes[i] & 3) << 4 | (bytes[i + 1] & 240) >> 4;\n\t\t\tconst c = (bytes[i + 1] & 15) << 2 | (bytes[i + 2] & 192) >> 6;\n\t\t\tconst d = bytes[i + 2] & 63;\n\t\t\tbase64 += table[a];\n\t\t\tbase64 += table[b];\n\t\t\tbase64 += table[c];\n\t\t\tbase64 += table[d];\n\t\t}\n\t}\n\treturn base64;\n}\nfunction recordAsyncAnnotation(test, promise) {\n\t// if promise is explicitly awaited, remove it from the list\n\tpromise = promise.finally(() => {\n\t\tif (!test.promises) {\n\t\t\treturn;\n\t\t}\n\t\tconst index = test.promises.indexOf(promise);\n\t\tif (index !== -1) {\n\t\t\ttest.promises.splice(index, 1);\n\t\t}\n\t});\n\t// record promise\n\tif (!test.promises) {\n\t\ttest.promises = [];\n\t}\n\ttest.promises.push(promise);\n\treturn promise;\n}\n\nfunction getDefaultHookTimeout() {\n\treturn getRunner().config.hookTimeout;\n}\nconst CLEANUP_TIMEOUT_KEY = Symbol.for(\"VITEST_CLEANUP_TIMEOUT\");\nconst CLEANUP_STACK_TRACE_KEY = Symbol.for(\"VITEST_CLEANUP_STACK_TRACE\");\nfunction getBeforeHookCleanupCallback(hook, result, context) {\n\tif (typeof result === \"function\") {\n\t\tconst timeout = CLEANUP_TIMEOUT_KEY in hook && typeof hook[CLEANUP_TIMEOUT_KEY] === \"number\" ? hook[CLEANUP_TIMEOUT_KEY] : getDefaultHookTimeout();\n\t\tconst stackTraceError = CLEANUP_STACK_TRACE_KEY in hook && hook[CLEANUP_STACK_TRACE_KEY] instanceof Error ? hook[CLEANUP_STACK_TRACE_KEY] : undefined;\n\t\treturn withTimeout(result, timeout, true, stackTraceError, (_, error) => {\n\t\t\tif (context) {\n\t\t\t\tabortContextSignal(context, error);\n\t\t\t}\n\t\t});\n\t}\n}\n/**\n* Registers a callback function to be executed once before all tests within the current suite.\n* This hook is useful for scenarios where you need to perform setup operations that are common to all tests in a suite, such as initializing a database connection or setting up a test environment.\n*\n* **Note:** The `beforeAll` hooks are executed in the order they are defined one after another. You can configure this by changing the `sequence.hooks` option in the config file.\n*\n* @param {Function} fn - The callback function to be executed before all tests.\n* @param {number} [timeout] - Optional timeout in milliseconds for the hook. If not provided, the default hook timeout from the runner's configuration is used.\n* @returns {void}\n* @example\n* ```ts\n* // Example of using beforeAll to set up a database connection\n* beforeAll(async () => {\n* await database.connect();\n* });\n* ```\n*/\nfunction beforeAll(fn, timeout = getDefaultHookTimeout()) {\n\tassertTypes(fn, \"\\\"beforeAll\\\" callback\", [\"function\"]);\n\tconst stackTraceError = new Error(\"STACK_TRACE_ERROR\");\n\treturn getCurrentSuite().on(\"beforeAll\", Object.assign(withTimeout(fn, timeout, true, stackTraceError), {\n\t\t[CLEANUP_TIMEOUT_KEY]: timeout,\n\t\t[CLEANUP_STACK_TRACE_KEY]: stackTraceError\n\t}));\n}\n/**\n* Registers a callback function to be executed once after all tests within the current suite have completed.\n* This hook is useful for scenarios where you need to perform cleanup operations after all tests in a suite have run, such as closing database connections or cleaning up temporary files.\n*\n* **Note:** The `afterAll` hooks are running in reverse order of their registration. You can configure this by changing the `sequence.hooks` option in the config file.\n*\n* @param {Function} fn - The callback function to be executed after all tests.\n* @param {number} [timeout] - Optional timeout in milliseconds for the hook. If not provided, the default hook timeout from the runner's configuration is used.\n* @returns {void}\n* @example\n* ```ts\n* // Example of using afterAll to close a database connection\n* afterAll(async () => {\n* await database.disconnect();\n* });\n* ```\n*/\nfunction afterAll(fn, timeout) {\n\tassertTypes(fn, \"\\\"afterAll\\\" callback\", [\"function\"]);\n\treturn getCurrentSuite().on(\"afterAll\", withTimeout(fn, timeout ?? getDefaultHookTimeout(), true, new Error(\"STACK_TRACE_ERROR\")));\n}\n/**\n* Registers a callback function to be executed before each test within the current suite.\n* This hook is useful for scenarios where you need to reset or reinitialize the test environment before each test runs, such as resetting database states, clearing caches, or reinitializing variables.\n*\n* **Note:** The `beforeEach` hooks are executed in the order they are defined one after another. You can configure this by changing the `sequence.hooks` option in the config file.\n*\n* @param {Function} fn - The callback function to be executed before each test. This function receives an `TestContext` parameter if additional test context is needed.\n* @param {number} [timeout] - Optional timeout in milliseconds for the hook. If not provided, the default hook timeout from the runner's configuration is used.\n* @returns {void}\n* @example\n* ```ts\n* // Example of using beforeEach to reset a database state\n* beforeEach(async () => {\n* await database.reset();\n* });\n* ```\n*/\nfunction beforeEach(fn, timeout = getDefaultHookTimeout()) {\n\tassertTypes(fn, \"\\\"beforeEach\\\" callback\", [\"function\"]);\n\tconst stackTraceError = new Error(\"STACK_TRACE_ERROR\");\n\tconst runner = getRunner();\n\treturn getCurrentSuite().on(\"beforeEach\", Object.assign(withTimeout(withFixtures(runner, fn), timeout ?? getDefaultHookTimeout(), true, stackTraceError, abortIfTimeout), {\n\t\t[CLEANUP_TIMEOUT_KEY]: timeout,\n\t\t[CLEANUP_STACK_TRACE_KEY]: stackTraceError\n\t}));\n}\n/**\n* Registers a callback function to be executed after each test within the current suite has completed.\n* This hook is useful for scenarios where you need to clean up or reset the test environment after each test runs, such as deleting temporary files, clearing test-specific database entries, or resetting mocked functions.\n*\n* **Note:** The `afterEach` hooks are running in reverse order of their registration. You can configure this by changing the `sequence.hooks` option in the config file.\n*\n* @param {Function} fn - The callback function to be executed after each test. This function receives an `TestContext` parameter if additional test context is needed.\n* @param {number} [timeout] - Optional timeout in milliseconds for the hook. If not provided, the default hook timeout from the runner's configuration is used.\n* @returns {void}\n* @example\n* ```ts\n* // Example of using afterEach to delete temporary files created during a test\n* afterEach(async () => {\n* await fileSystem.deleteTempFiles();\n* });\n* ```\n*/\nfunction afterEach(fn, timeout) {\n\tassertTypes(fn, \"\\\"afterEach\\\" callback\", [\"function\"]);\n\tconst runner = getRunner();\n\treturn getCurrentSuite().on(\"afterEach\", withTimeout(withFixtures(runner, fn), timeout ?? getDefaultHookTimeout(), true, new Error(\"STACK_TRACE_ERROR\"), abortIfTimeout));\n}\n/**\n* Registers a callback function to be executed when a test fails within the current suite.\n* This function allows for custom actions to be performed in response to test failures, such as logging, cleanup, or additional diagnostics.\n*\n* **Note:** The `onTestFailed` hooks are running in reverse order of their registration. You can configure this by changing the `sequence.hooks` option in the config file.\n*\n* @param {Function} fn - The callback function to be executed upon a test failure. The function receives the test result (including errors).\n* @param {number} [timeout] - Optional timeout in milliseconds for the hook. If not provided, the default hook timeout from the runner's configuration is used.\n* @throws {Error} Throws an error if the function is not called within a test.\n* @returns {void}\n* @example\n* ```ts\n* // Example of using onTestFailed to log failure details\n* onTestFailed(({ errors }) => {\n* console.log(`Test failed: ${test.name}`, errors);\n* });\n* ```\n*/\nconst onTestFailed = createTestHook(\"onTestFailed\", (test, handler, timeout) => {\n\ttest.onFailed || (test.onFailed = []);\n\ttest.onFailed.push(withTimeout(handler, timeout ?? getDefaultHookTimeout(), true, new Error(\"STACK_TRACE_ERROR\"), abortIfTimeout));\n});\n/**\n* Registers a callback function to be executed when the current test finishes, regardless of the outcome (pass or fail).\n* This function is ideal for performing actions that should occur after every test execution, such as cleanup, logging, or resetting shared resources.\n*\n* This hook is useful if you have access to a resource in the test itself and you want to clean it up after the test finishes. It is a more compact way to clean up resources than using the combination of `beforeEach` and `afterEach`.\n*\n* **Note:** The `onTestFinished` hooks are running in reverse order of their registration. You can configure this by changing the `sequence.hooks` option in the config file.\n*\n* **Note:** The `onTestFinished` hook is not called if the test is canceled with a dynamic `ctx.skip()` call.\n*\n* @param {Function} fn - The callback function to be executed after a test finishes. The function can receive parameters providing details about the completed test, including its success or failure status.\n* @param {number} [timeout] - Optional timeout in milliseconds for the hook. If not provided, the default hook timeout from the runner's configuration is used.\n* @throws {Error} Throws an error if the function is not called within a test.\n* @returns {void}\n* @example\n* ```ts\n* // Example of using onTestFinished for cleanup\n* const db = await connectToDatabase();\n* onTestFinished(async () => {\n* await db.disconnect();\n* });\n* ```\n*/\nconst onTestFinished = createTestHook(\"onTestFinished\", (test, handler, timeout) => {\n\ttest.onFinished || (test.onFinished = []);\n\ttest.onFinished.push(withTimeout(handler, timeout ?? getDefaultHookTimeout(), true, new Error(\"STACK_TRACE_ERROR\"), abortIfTimeout));\n});\nfunction createTestHook(name, handler) {\n\treturn (fn, timeout) => {\n\t\tassertTypes(fn, `\"${name}\" callback`, [\"function\"]);\n\t\tconst current = getCurrentTest();\n\t\tif (!current) {\n\t\t\tthrow new Error(`Hook ${name}() can only be called inside a test`);\n\t\t}\n\t\treturn handler(current, fn, timeout);\n\t};\n}\n\nexport { someTasksAreOnly as A, limitConcurrency as B, partitionSuiteChildren as C, getFullName as D, getNames as E, getSuites as F, getTasks as G, getTestName as H, getTests as I, hasFailed as J, hasTests as K, isAtomTest as L, isTestCase as M, afterAll as a, afterEach as b, beforeAll as c, beforeEach as d, onTestFinished as e, getHooks as f, getFn as g, setHooks as h, startTests as i, createTaskCollector as j, describe as k, getCurrentSuite as l, it as m, suite as n, onTestFailed as o, publicCollect as p, getCurrentTest as q, createChainable as r, setFn as s, test as t, updateTask as u, calculateSuiteHash as v, createFileTask as w, generateFileHash as x, generateHash as y, interpretTaskModes as z };\n","// src/utils.ts\nfunction assert(condition, message) {\n if (!condition)\n throw new Error(message);\n}\nfunction isType(type, value) {\n return typeof value === type;\n}\nfunction isPromise(value) {\n return value instanceof Promise;\n}\nfunction define(obj, key, descriptor) {\n Object.defineProperty(obj, key, descriptor);\n}\nfunction defineValue(obj, key, value) {\n define(obj, key, { value, configurable: !0, writable: !0 });\n}\n\n// src/constants.ts\nvar SYMBOL_STATE = Symbol.for(\"tinyspy:spy\");\n\n// src/internal.ts\nvar spies = /* @__PURE__ */ new Set(), reset = (state) => {\n state.called = !1, state.callCount = 0, state.calls = [], state.results = [], state.resolves = [], state.next = [];\n}, defineState = (spy2) => (define(spy2, SYMBOL_STATE, {\n value: { reset: () => reset(spy2[SYMBOL_STATE]) }\n}), spy2[SYMBOL_STATE]), getInternalState = (spy2) => spy2[SYMBOL_STATE] || defineState(spy2);\nfunction createInternalSpy(cb) {\n assert(\n isType(\"function\", cb) || isType(\"undefined\", cb),\n \"cannot spy on a non-function value\"\n );\n let fn = function(...args) {\n let state2 = getInternalState(fn);\n state2.called = !0, state2.callCount++, state2.calls.push(args);\n let next = state2.next.shift();\n if (next) {\n state2.results.push(next);\n let [type2, result2] = next;\n if (type2 === \"ok\")\n return result2;\n throw result2;\n }\n let result, type = \"ok\", resultIndex = state2.results.length;\n if (state2.impl)\n try {\n new.target ? result = Reflect.construct(state2.impl, args, new.target) : result = state2.impl.apply(this, args), type = \"ok\";\n } catch (err) {\n throw result = err, type = \"error\", state2.results.push([type, err]), err;\n }\n let resultTuple = [type, result];\n return isPromise(result) && result.then(\n (r) => state2.resolves[resultIndex] = [\"ok\", r],\n (e) => state2.resolves[resultIndex] = [\"error\", e]\n ), state2.results.push(resultTuple), result;\n };\n defineValue(fn, \"_isMockFunction\", !0), defineValue(fn, \"length\", cb ? cb.length : 0), defineValue(fn, \"name\", cb && cb.name || \"spy\");\n let state = getInternalState(fn);\n return state.reset(), state.impl = cb, fn;\n}\nfunction isMockFunction(obj) {\n return !!obj && obj._isMockFunction === !0;\n}\nfunction populateSpy(spy2) {\n let state = getInternalState(spy2);\n \"returns\" in spy2 || (define(spy2, \"returns\", {\n get: () => state.results.map(([, r]) => r)\n }), [\n \"called\",\n \"callCount\",\n \"results\",\n \"resolves\",\n \"calls\",\n \"reset\",\n \"impl\"\n ].forEach(\n (n) => define(spy2, n, { get: () => state[n], set: (v) => state[n] = v })\n ), defineValue(spy2, \"nextError\", (error) => (state.next.push([\"error\", error]), state)), defineValue(spy2, \"nextResult\", (result) => (state.next.push([\"ok\", result]), state)));\n}\n\n// src/spy.ts\nfunction spy(cb) {\n let spy2 = createInternalSpy(cb);\n return populateSpy(spy2), spy2;\n}\n\n// src/spyOn.ts\nvar getDescriptor = (obj, method) => {\n let objDescriptor = Object.getOwnPropertyDescriptor(obj, method);\n if (objDescriptor)\n return [obj, objDescriptor];\n let currentProto = Object.getPrototypeOf(obj);\n for (; currentProto !== null; ) {\n let descriptor = Object.getOwnPropertyDescriptor(currentProto, method);\n if (descriptor)\n return [currentProto, descriptor];\n currentProto = Object.getPrototypeOf(currentProto);\n }\n}, setPototype = (fn, val) => {\n val != null && typeof val == \"function\" && val.prototype != null && Object.setPrototypeOf(fn.prototype, val.prototype);\n};\nfunction internalSpyOn(obj, methodName, mock) {\n assert(\n !isType(\"undefined\", obj),\n \"spyOn could not find an object to spy upon\"\n ), assert(\n isType(\"object\", obj) || isType(\"function\", obj),\n \"cannot spyOn on a primitive value\"\n );\n let [accessName, accessType] = (() => {\n if (!isType(\"object\", methodName))\n return [methodName, \"value\"];\n if (\"getter\" in methodName && \"setter\" in methodName)\n throw new Error(\"cannot spy on both getter and setter\");\n if (\"getter\" in methodName)\n return [methodName.getter, \"get\"];\n if (\"setter\" in methodName)\n return [methodName.setter, \"set\"];\n throw new Error(\"specify getter or setter to spy on\");\n })(), [originalDescriptorObject, originalDescriptor] = getDescriptor(obj, accessName) || [];\n assert(\n originalDescriptor || accessName in obj,\n `${String(accessName)} does not exist`\n );\n let ssr = !1;\n accessType === \"value\" && originalDescriptor && !originalDescriptor.value && originalDescriptor.get && (accessType = \"get\", ssr = !0, mock = originalDescriptor.get());\n let original;\n originalDescriptor ? original = originalDescriptor[accessType] : accessType !== \"value\" ? original = () => obj[accessName] : original = obj[accessName], original && isSpyFunction(original) && (original = original[SYMBOL_STATE].getOriginal());\n let reassign = (cb) => {\n let { value, ...desc } = originalDescriptor || {\n configurable: !0,\n writable: !0\n };\n accessType !== \"value\" && delete desc.writable, desc[accessType] = cb, define(obj, accessName, desc);\n }, restore = () => {\n originalDescriptorObject !== obj ? Reflect.deleteProperty(obj, accessName) : originalDescriptor && !original ? define(obj, accessName, originalDescriptor) : reassign(original);\n };\n mock || (mock = original);\n let spy2 = wrap(createInternalSpy(mock), mock);\n accessType === \"value\" && setPototype(spy2, original);\n let state = spy2[SYMBOL_STATE];\n return defineValue(state, \"restore\", restore), defineValue(state, \"getOriginal\", () => ssr ? original() : original), defineValue(state, \"willCall\", (newCb) => (state.impl = newCb, spy2)), reassign(\n ssr ? () => (setPototype(spy2, mock), spy2) : spy2\n ), spies.add(spy2), spy2;\n}\nvar ignoreProperties = /* @__PURE__ */ new Set([\n \"length\",\n \"name\",\n \"prototype\"\n]);\nfunction getAllProperties(original) {\n let properties = /* @__PURE__ */ new Set(), descriptors2 = {};\n for (; original && original !== Object.prototype && original !== Function.prototype; ) {\n let ownProperties = [\n ...Object.getOwnPropertyNames(original),\n ...Object.getOwnPropertySymbols(original)\n ];\n for (let prop of ownProperties)\n descriptors2[prop] || ignoreProperties.has(prop) || (properties.add(prop), descriptors2[prop] = Object.getOwnPropertyDescriptor(original, prop));\n original = Object.getPrototypeOf(original);\n }\n return {\n properties,\n descriptors: descriptors2\n };\n}\nfunction wrap(mock, original) {\n if (!original || // the original is already a spy, so it has all the properties\n SYMBOL_STATE in original)\n return mock;\n let { properties, descriptors: descriptors2 } = getAllProperties(original);\n for (let key of properties) {\n let descriptor = descriptors2[key];\n getDescriptor(mock, key) || define(mock, key, descriptor);\n }\n return mock;\n}\nfunction spyOn(obj, methodName, mock) {\n let spy2 = internalSpyOn(obj, methodName, mock);\n return populateSpy(spy2), [\"restore\", \"getOriginal\", \"willCall\"].forEach((method) => {\n defineValue(spy2, method, spy2[SYMBOL_STATE][method]);\n }), spy2;\n}\nfunction isSpyFunction(obj) {\n return isMockFunction(obj) && \"getOriginal\" in obj[SYMBOL_STATE];\n}\n\n// src/restoreAll.ts\nfunction restoreAll() {\n for (let fn of spies)\n fn.restore();\n spies.clear();\n}\nexport {\n createInternalSpy,\n getInternalState,\n internalSpyOn,\n restoreAll,\n spies,\n spy,\n spyOn\n};\n","import * as tinyspy from 'tinyspy';\n\nconst mocks = new Set();\nfunction isMockFunction(fn) {\n\treturn typeof fn === \"function\" && \"_isMockFunction\" in fn && fn._isMockFunction;\n}\nfunction spyOn(obj, method, accessType) {\n\tconst dictionary = {\n\t\tget: \"getter\",\n\t\tset: \"setter\"\n\t};\n\tconst objMethod = accessType ? { [dictionary[accessType]]: method } : method;\n\tlet state;\n\tconst descriptor = getDescriptor(obj, method);\n\tconst fn = descriptor && descriptor[accessType || \"value\"];\n\t// inherit implementations if it was already mocked\n\tif (isMockFunction(fn)) {\n\t\tstate = fn.mock._state();\n\t}\n\ttry {\n\t\tconst stub = tinyspy.internalSpyOn(obj, objMethod);\n\t\tconst spy = enhanceSpy(stub);\n\t\tif (state) {\n\t\t\tspy.mock._state(state);\n\t\t}\n\t\treturn spy;\n\t} catch (error) {\n\t\tif (error instanceof TypeError && Symbol.toStringTag && obj[Symbol.toStringTag] === \"Module\" && (error.message.includes(\"Cannot redefine property\") || error.message.includes(\"Cannot replace module namespace\") || error.message.includes(\"can't redefine non-configurable property\"))) {\n\t\t\tthrow new TypeError(`Cannot spy on export \"${String(objMethod)}\". Module namespace is not configurable in ESM. See: https://vitest.dev/guide/browser/#limitations`, { cause: error });\n\t\t}\n\t\tthrow error;\n\t}\n}\nlet callOrder = 0;\nfunction enhanceSpy(spy) {\n\tconst stub = spy;\n\tlet implementation;\n\tlet onceImplementations = [];\n\tlet implementationChangedTemporarily = false;\n\tlet instances = [];\n\tlet contexts = [];\n\tlet invocations = [];\n\tconst state = tinyspy.getInternalState(spy);\n\tconst mockContext = {\n\t\tget calls() {\n\t\t\treturn state.calls;\n\t\t},\n\t\tget contexts() {\n\t\t\treturn contexts;\n\t\t},\n\t\tget instances() {\n\t\t\treturn instances;\n\t\t},\n\t\tget invocationCallOrder() {\n\t\t\treturn invocations;\n\t\t},\n\t\tget results() {\n\t\t\treturn state.results.map(([callType, value]) => {\n\t\t\t\tconst type = callType === \"error\" ? \"throw\" : \"return\";\n\t\t\t\treturn {\n\t\t\t\t\ttype,\n\t\t\t\t\tvalue\n\t\t\t\t};\n\t\t\t});\n\t\t},\n\t\tget settledResults() {\n\t\t\treturn state.resolves.map(([callType, value]) => {\n\t\t\t\tconst type = callType === \"error\" ? \"rejected\" : \"fulfilled\";\n\t\t\t\treturn {\n\t\t\t\t\ttype,\n\t\t\t\t\tvalue\n\t\t\t\t};\n\t\t\t});\n\t\t},\n\t\tget lastCall() {\n\t\t\treturn state.calls[state.calls.length - 1];\n\t\t},\n\t\t_state(state) {\n\t\t\tif (state) {\n\t\t\t\timplementation = state.implementation;\n\t\t\t\tonceImplementations = state.onceImplementations;\n\t\t\t\timplementationChangedTemporarily = state.implementationChangedTemporarily;\n\t\t\t}\n\t\t\treturn {\n\t\t\t\timplementation,\n\t\t\t\tonceImplementations,\n\t\t\t\timplementationChangedTemporarily\n\t\t\t};\n\t\t}\n\t};\n\tfunction mockCall(...args) {\n\t\tinstances.push(this);\n\t\tcontexts.push(this);\n\t\tinvocations.push(++callOrder);\n\t\tconst impl = implementationChangedTemporarily ? implementation : onceImplementations.shift() || implementation || state.getOriginal() || (() => {});\n\t\treturn impl.apply(this, args);\n\t}\n\tlet name = stub.name;\n\tstub.getMockName = () => name || \"vi.fn()\";\n\tstub.mockName = (n) => {\n\t\tname = n;\n\t\treturn stub;\n\t};\n\tstub.mockClear = () => {\n\t\tstate.reset();\n\t\tinstances = [];\n\t\tcontexts = [];\n\t\tinvocations = [];\n\t\treturn stub;\n\t};\n\tstub.mockReset = () => {\n\t\tstub.mockClear();\n\t\timplementation = undefined;\n\t\tonceImplementations = [];\n\t\treturn stub;\n\t};\n\tstub.mockRestore = () => {\n\t\tstub.mockReset();\n\t\tstate.restore();\n\t\treturn stub;\n\t};\n\tif (Symbol.dispose) {\n\t\tstub[Symbol.dispose] = () => stub.mockRestore();\n\t}\n\tstub.getMockImplementation = () => implementationChangedTemporarily ? implementation : onceImplementations.at(0) || implementation;\n\tstub.mockImplementation = (fn) => {\n\t\timplementation = fn;\n\t\tstate.willCall(mockCall);\n\t\treturn stub;\n\t};\n\tstub.mockImplementationOnce = (fn) => {\n\t\tonceImplementations.push(fn);\n\t\treturn stub;\n\t};\n\tfunction withImplementation(fn, cb) {\n\t\tconst originalImplementation = implementation;\n\t\timplementation = fn;\n\t\tstate.willCall(mockCall);\n\t\timplementationChangedTemporarily = true;\n\t\tconst reset = () => {\n\t\t\timplementation = originalImplementation;\n\t\t\timplementationChangedTemporarily = false;\n\t\t};\n\t\tconst result = cb();\n\t\tif (typeof result === \"object\" && result && typeof result.then === \"function\") {\n\t\t\treturn result.then(() => {\n\t\t\t\treset();\n\t\t\t\treturn stub;\n\t\t\t});\n\t\t}\n\t\treset();\n\t\treturn stub;\n\t}\n\tstub.withImplementation = withImplementation;\n\tstub.mockReturnThis = () => stub.mockImplementation(function() {\n\t\treturn this;\n\t});\n\tstub.mockReturnValue = (val) => stub.mockImplementation(() => val);\n\tstub.mockReturnValueOnce = (val) => stub.mockImplementationOnce(() => val);\n\tstub.mockResolvedValue = (val) => stub.mockImplementation(() => Promise.resolve(val));\n\tstub.mockResolvedValueOnce = (val) => stub.mockImplementationOnce(() => Promise.resolve(val));\n\tstub.mockRejectedValue = (val) => stub.mockImplementation(() => Promise.reject(val));\n\tstub.mockRejectedValueOnce = (val) => stub.mockImplementationOnce(() => Promise.reject(val));\n\tObject.defineProperty(stub, \"mock\", { get: () => mockContext });\n\tstate.willCall(mockCall);\n\tmocks.add(stub);\n\treturn stub;\n}\nfunction fn(implementation) {\n\tconst enhancedSpy = enhanceSpy(tinyspy.internalSpyOn({ spy: implementation || function() {} }, \"spy\"));\n\tif (implementation) {\n\t\tenhancedSpy.mockImplementation(implementation);\n\t}\n\treturn enhancedSpy;\n}\nfunction getDescriptor(obj, method) {\n\tconst objDescriptor = Object.getOwnPropertyDescriptor(obj, method);\n\tif (objDescriptor) {\n\t\treturn objDescriptor;\n\t}\n\tlet currentProto = Object.getPrototypeOf(obj);\n\twhile (currentProto !== null) {\n\t\tconst descriptor = Object.getOwnPropertyDescriptor(currentProto, method);\n\t\tif (descriptor) {\n\t\t\treturn descriptor;\n\t\t}\n\t\tcurrentProto = Object.getPrototypeOf(currentProto);\n\t}\n}\n\nexport { fn, isMockFunction, mocks, spyOn };\n","var __defProp = Object.defineProperty;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __commonJS = (cb, mod) => function __require() {\n return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;\n};\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\n\n// (disabled):util\nvar require_util = __commonJS({\n \"(disabled):util\"() {\n }\n});\n\n// lib/chai/utils/index.js\nvar utils_exports = {};\n__export(utils_exports, {\n addChainableMethod: () => addChainableMethod,\n addLengthGuard: () => addLengthGuard,\n addMethod: () => addMethod,\n addProperty: () => addProperty,\n checkError: () => check_error_exports,\n compareByInspect: () => compareByInspect,\n eql: () => deep_eql_default,\n expectTypes: () => expectTypes,\n flag: () => flag,\n getActual: () => getActual,\n getMessage: () => getMessage2,\n getName: () => getName,\n getOperator: () => getOperator,\n getOwnEnumerableProperties: () => getOwnEnumerableProperties,\n getOwnEnumerablePropertySymbols: () => getOwnEnumerablePropertySymbols,\n getPathInfo: () => getPathInfo,\n hasProperty: () => hasProperty,\n inspect: () => inspect2,\n isNaN: () => isNaN2,\n isNumeric: () => isNumeric,\n isProxyEnabled: () => isProxyEnabled,\n isRegExp: () => isRegExp2,\n objDisplay: () => objDisplay,\n overwriteChainableMethod: () => overwriteChainableMethod,\n overwriteMethod: () => overwriteMethod,\n overwriteProperty: () => overwriteProperty,\n proxify: () => proxify,\n test: () => test,\n transferFlags: () => transferFlags,\n type: () => type\n});\n\n// node_modules/check-error/index.js\nvar check_error_exports = {};\n__export(check_error_exports, {\n compatibleConstructor: () => compatibleConstructor,\n compatibleInstance: () => compatibleInstance,\n compatibleMessage: () => compatibleMessage,\n getConstructorName: () => getConstructorName,\n getMessage: () => getMessage\n});\nfunction isErrorInstance(obj) {\n return obj instanceof Error || Object.prototype.toString.call(obj) === \"[object Error]\";\n}\n__name(isErrorInstance, \"isErrorInstance\");\nfunction isRegExp(obj) {\n return Object.prototype.toString.call(obj) === \"[object RegExp]\";\n}\n__name(isRegExp, \"isRegExp\");\nfunction compatibleInstance(thrown, errorLike) {\n return isErrorInstance(errorLike) && thrown === errorLike;\n}\n__name(compatibleInstance, \"compatibleInstance\");\nfunction compatibleConstructor(thrown, errorLike) {\n if (isErrorInstance(errorLike)) {\n return thrown.constructor === errorLike.constructor || thrown instanceof errorLike.constructor;\n } else if ((typeof errorLike === \"object\" || typeof errorLike === \"function\") && errorLike.prototype) {\n return thrown.constructor === errorLike || thrown instanceof errorLike;\n }\n return false;\n}\n__name(compatibleConstructor, \"compatibleConstructor\");\nfunction compatibleMessage(thrown, errMatcher) {\n const comparisonString = typeof thrown === \"string\" ? thrown : thrown.message;\n if (isRegExp(errMatcher)) {\n return errMatcher.test(comparisonString);\n } else if (typeof errMatcher === \"string\") {\n return comparisonString.indexOf(errMatcher) !== -1;\n }\n return false;\n}\n__name(compatibleMessage, \"compatibleMessage\");\nfunction getConstructorName(errorLike) {\n let constructorName = errorLike;\n if (isErrorInstance(errorLike)) {\n constructorName = errorLike.constructor.name;\n } else if (typeof errorLike === \"function\") {\n constructorName = errorLike.name;\n if (constructorName === \"\") {\n const newConstructorName = new errorLike().name;\n constructorName = newConstructorName || constructorName;\n }\n }\n return constructorName;\n}\n__name(getConstructorName, \"getConstructorName\");\nfunction getMessage(errorLike) {\n let msg = \"\";\n if (errorLike && errorLike.message) {\n msg = errorLike.message;\n } else if (typeof errorLike === \"string\") {\n msg = errorLike;\n }\n return msg;\n}\n__name(getMessage, \"getMessage\");\n\n// lib/chai/utils/flag.js\nfunction flag(obj, key, value) {\n let flags = obj.__flags || (obj.__flags = /* @__PURE__ */ Object.create(null));\n if (arguments.length === 3) {\n flags[key] = value;\n } else {\n return flags[key];\n }\n}\n__name(flag, \"flag\");\n\n// lib/chai/utils/test.js\nfunction test(obj, args) {\n let negate = flag(obj, \"negate\"), expr = args[0];\n return negate ? !expr : expr;\n}\n__name(test, \"test\");\n\n// lib/chai/utils/type-detect.js\nfunction type(obj) {\n if (typeof obj === \"undefined\") {\n return \"undefined\";\n }\n if (obj === null) {\n return \"null\";\n }\n const stringTag = obj[Symbol.toStringTag];\n if (typeof stringTag === \"string\") {\n return stringTag;\n }\n const type3 = Object.prototype.toString.call(obj).slice(8, -1);\n return type3;\n}\n__name(type, \"type\");\n\n// node_modules/assertion-error/index.js\nvar canElideFrames = \"captureStackTrace\" in Error;\nvar AssertionError = class _AssertionError extends Error {\n static {\n __name(this, \"AssertionError\");\n }\n message;\n get name() {\n return \"AssertionError\";\n }\n get ok() {\n return false;\n }\n constructor(message = \"Unspecified AssertionError\", props, ssf) {\n super(message);\n this.message = message;\n if (canElideFrames) {\n Error.captureStackTrace(this, ssf || _AssertionError);\n }\n for (const key in props) {\n if (!(key in this)) {\n this[key] = props[key];\n }\n }\n }\n toJSON(stack) {\n return {\n ...this,\n name: this.name,\n message: this.message,\n ok: false,\n stack: stack !== false ? this.stack : void 0\n };\n }\n};\n\n// lib/chai/utils/expectTypes.js\nfunction expectTypes(obj, types) {\n let flagMsg = flag(obj, \"message\");\n let ssfi = flag(obj, \"ssfi\");\n flagMsg = flagMsg ? flagMsg + \": \" : \"\";\n obj = flag(obj, \"object\");\n types = types.map(function(t) {\n return t.toLowerCase();\n });\n types.sort();\n let str = types.map(function(t, index) {\n let art = ~[\"a\", \"e\", \"i\", \"o\", \"u\"].indexOf(t.charAt(0)) ? \"an\" : \"a\";\n let or = types.length > 1 && index === types.length - 1 ? \"or \" : \"\";\n return or + art + \" \" + t;\n }).join(\", \");\n let objType = type(obj).toLowerCase();\n if (!types.some(function(expected) {\n return objType === expected;\n })) {\n throw new AssertionError(\n flagMsg + \"object tested must be \" + str + \", but \" + objType + \" given\",\n void 0,\n ssfi\n );\n }\n}\n__name(expectTypes, \"expectTypes\");\n\n// lib/chai/utils/getActual.js\nfunction getActual(obj, args) {\n return args.length > 4 ? args[4] : obj._obj;\n}\n__name(getActual, \"getActual\");\n\n// node_modules/loupe/lib/helpers.js\nvar ansiColors = {\n bold: [\"1\", \"22\"],\n dim: [\"2\", \"22\"],\n italic: [\"3\", \"23\"],\n underline: [\"4\", \"24\"],\n // 5 & 6 are blinking\n inverse: [\"7\", \"27\"],\n hidden: [\"8\", \"28\"],\n strike: [\"9\", \"29\"],\n // 10-20 are fonts\n // 21-29 are resets for 1-9\n black: [\"30\", \"39\"],\n red: [\"31\", \"39\"],\n green: [\"32\", \"39\"],\n yellow: [\"33\", \"39\"],\n blue: [\"34\", \"39\"],\n magenta: [\"35\", \"39\"],\n cyan: [\"36\", \"39\"],\n white: [\"37\", \"39\"],\n brightblack: [\"30;1\", \"39\"],\n brightred: [\"31;1\", \"39\"],\n brightgreen: [\"32;1\", \"39\"],\n brightyellow: [\"33;1\", \"39\"],\n brightblue: [\"34;1\", \"39\"],\n brightmagenta: [\"35;1\", \"39\"],\n brightcyan: [\"36;1\", \"39\"],\n brightwhite: [\"37;1\", \"39\"],\n grey: [\"90\", \"39\"]\n};\nvar styles = {\n special: \"cyan\",\n number: \"yellow\",\n bigint: \"yellow\",\n boolean: \"yellow\",\n undefined: \"grey\",\n null: \"bold\",\n string: \"green\",\n symbol: \"green\",\n date: \"magenta\",\n regexp: \"red\"\n};\nvar truncator = \"\\u2026\";\nfunction colorise(value, styleType) {\n const color = ansiColors[styles[styleType]] || ansiColors[styleType] || \"\";\n if (!color) {\n return String(value);\n }\n return `\\x1B[${color[0]}m${String(value)}\\x1B[${color[1]}m`;\n}\n__name(colorise, \"colorise\");\nfunction normaliseOptions({\n showHidden = false,\n depth = 2,\n colors = false,\n customInspect = true,\n showProxy = false,\n maxArrayLength = Infinity,\n breakLength = Infinity,\n seen = [],\n // eslint-disable-next-line no-shadow\n truncate: truncate2 = Infinity,\n stylize = String\n} = {}, inspect3) {\n const options = {\n showHidden: Boolean(showHidden),\n depth: Number(depth),\n colors: Boolean(colors),\n customInspect: Boolean(customInspect),\n showProxy: Boolean(showProxy),\n maxArrayLength: Number(maxArrayLength),\n breakLength: Number(breakLength),\n truncate: Number(truncate2),\n seen,\n inspect: inspect3,\n stylize\n };\n if (options.colors) {\n options.stylize = colorise;\n }\n return options;\n}\n__name(normaliseOptions, \"normaliseOptions\");\nfunction isHighSurrogate(char) {\n return char >= \"\\uD800\" && char <= \"\\uDBFF\";\n}\n__name(isHighSurrogate, \"isHighSurrogate\");\nfunction truncate(string, length, tail = truncator) {\n string = String(string);\n const tailLength = tail.length;\n const stringLength = string.length;\n if (tailLength > length && stringLength > tailLength) {\n return tail;\n }\n if (stringLength > length && stringLength > tailLength) {\n let end = length - tailLength;\n if (end > 0 && isHighSurrogate(string[end - 1])) {\n end = end - 1;\n }\n return `${string.slice(0, end)}${tail}`;\n }\n return string;\n}\n__name(truncate, \"truncate\");\nfunction inspectList(list, options, inspectItem, separator = \", \") {\n inspectItem = inspectItem || options.inspect;\n const size = list.length;\n if (size === 0)\n return \"\";\n const originalLength = options.truncate;\n let output = \"\";\n let peek = \"\";\n let truncated = \"\";\n for (let i = 0; i < size; i += 1) {\n const last = i + 1 === list.length;\n const secondToLast = i + 2 === list.length;\n truncated = `${truncator}(${list.length - i})`;\n const value = list[i];\n options.truncate = originalLength - output.length - (last ? 0 : separator.length);\n const string = peek || inspectItem(value, options) + (last ? \"\" : separator);\n const nextLength = output.length + string.length;\n const truncatedLength = nextLength + truncated.length;\n if (last && nextLength > originalLength && output.length + truncated.length <= originalLength) {\n break;\n }\n if (!last && !secondToLast && truncatedLength > originalLength) {\n break;\n }\n peek = last ? \"\" : inspectItem(list[i + 1], options) + (secondToLast ? \"\" : separator);\n if (!last && secondToLast && truncatedLength > originalLength && nextLength + peek.length > originalLength) {\n break;\n }\n output += string;\n if (!last && !secondToLast && nextLength + peek.length >= originalLength) {\n truncated = `${truncator}(${list.length - i - 1})`;\n break;\n }\n truncated = \"\";\n }\n return `${output}${truncated}`;\n}\n__name(inspectList, \"inspectList\");\nfunction quoteComplexKey(key) {\n if (key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)) {\n return key;\n }\n return JSON.stringify(key).replace(/'/g, \"\\\\'\").replace(/\\\\\"/g, '\"').replace(/(^\"|\"$)/g, \"'\");\n}\n__name(quoteComplexKey, \"quoteComplexKey\");\nfunction inspectProperty([key, value], options) {\n options.truncate -= 2;\n if (typeof key === \"string\") {\n key = quoteComplexKey(key);\n } else if (typeof key !== \"number\") {\n key = `[${options.inspect(key, options)}]`;\n }\n options.truncate -= key.length;\n value = options.inspect(value, options);\n return `${key}: ${value}`;\n}\n__name(inspectProperty, \"inspectProperty\");\n\n// node_modules/loupe/lib/array.js\nfunction inspectArray(array, options) {\n const nonIndexProperties = Object.keys(array).slice(array.length);\n if (!array.length && !nonIndexProperties.length)\n return \"[]\";\n options.truncate -= 4;\n const listContents = inspectList(array, options);\n options.truncate -= listContents.length;\n let propertyContents = \"\";\n if (nonIndexProperties.length) {\n propertyContents = inspectList(nonIndexProperties.map((key) => [key, array[key]]), options, inspectProperty);\n }\n return `[ ${listContents}${propertyContents ? `, ${propertyContents}` : \"\"} ]`;\n}\n__name(inspectArray, \"inspectArray\");\n\n// node_modules/loupe/lib/typedarray.js\nvar getArrayName = /* @__PURE__ */ __name((array) => {\n if (typeof Buffer === \"function\" && array instanceof Buffer) {\n return \"Buffer\";\n }\n if (array[Symbol.toStringTag]) {\n return array[Symbol.toStringTag];\n }\n return array.constructor.name;\n}, \"getArrayName\");\nfunction inspectTypedArray(array, options) {\n const name = getArrayName(array);\n options.truncate -= name.length + 4;\n const nonIndexProperties = Object.keys(array).slice(array.length);\n if (!array.length && !nonIndexProperties.length)\n return `${name}[]`;\n let output = \"\";\n for (let i = 0; i < array.length; i++) {\n const string = `${options.stylize(truncate(array[i], options.truncate), \"number\")}${i === array.length - 1 ? \"\" : \", \"}`;\n options.truncate -= string.length;\n if (array[i] !== array.length && options.truncate <= 3) {\n output += `${truncator}(${array.length - array[i] + 1})`;\n break;\n }\n output += string;\n }\n let propertyContents = \"\";\n if (nonIndexProperties.length) {\n propertyContents = inspectList(nonIndexProperties.map((key) => [key, array[key]]), options, inspectProperty);\n }\n return `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : \"\"} ]`;\n}\n__name(inspectTypedArray, \"inspectTypedArray\");\n\n// node_modules/loupe/lib/date.js\nfunction inspectDate(dateObject, options) {\n const stringRepresentation = dateObject.toJSON();\n if (stringRepresentation === null) {\n return \"Invalid Date\";\n }\n const split = stringRepresentation.split(\"T\");\n const date = split[0];\n return options.stylize(`${date}T${truncate(split[1], options.truncate - date.length - 1)}`, \"date\");\n}\n__name(inspectDate, \"inspectDate\");\n\n// node_modules/loupe/lib/function.js\nfunction inspectFunction(func, options) {\n const functionType = func[Symbol.toStringTag] || \"Function\";\n const name = func.name;\n if (!name) {\n return options.stylize(`[${functionType}]`, \"special\");\n }\n return options.stylize(`[${functionType} ${truncate(name, options.truncate - 11)}]`, \"special\");\n}\n__name(inspectFunction, \"inspectFunction\");\n\n// node_modules/loupe/lib/map.js\nfunction inspectMapEntry([key, value], options) {\n options.truncate -= 4;\n key = options.inspect(key, options);\n options.truncate -= key.length;\n value = options.inspect(value, options);\n return `${key} => ${value}`;\n}\n__name(inspectMapEntry, \"inspectMapEntry\");\nfunction mapToEntries(map) {\n const entries = [];\n map.forEach((value, key) => {\n entries.push([key, value]);\n });\n return entries;\n}\n__name(mapToEntries, \"mapToEntries\");\nfunction inspectMap(map, options) {\n const size = map.size - 1;\n if (size <= 0) {\n return \"Map{}\";\n }\n options.truncate -= 7;\n return `Map{ ${inspectList(mapToEntries(map), options, inspectMapEntry)} }`;\n}\n__name(inspectMap, \"inspectMap\");\n\n// node_modules/loupe/lib/number.js\nvar isNaN = Number.isNaN || ((i) => i !== i);\nfunction inspectNumber(number, options) {\n if (isNaN(number)) {\n return options.stylize(\"NaN\", \"number\");\n }\n if (number === Infinity) {\n return options.stylize(\"Infinity\", \"number\");\n }\n if (number === -Infinity) {\n return options.stylize(\"-Infinity\", \"number\");\n }\n if (number === 0) {\n return options.stylize(1 / number === Infinity ? \"+0\" : \"-0\", \"number\");\n }\n return options.stylize(truncate(String(number), options.truncate), \"number\");\n}\n__name(inspectNumber, \"inspectNumber\");\n\n// node_modules/loupe/lib/bigint.js\nfunction inspectBigInt(number, options) {\n let nums = truncate(number.toString(), options.truncate - 1);\n if (nums !== truncator)\n nums += \"n\";\n return options.stylize(nums, \"bigint\");\n}\n__name(inspectBigInt, \"inspectBigInt\");\n\n// node_modules/loupe/lib/regexp.js\nfunction inspectRegExp(value, options) {\n const flags = value.toString().split(\"/\")[2];\n const sourceLength = options.truncate - (2 + flags.length);\n const source = value.source;\n return options.stylize(`/${truncate(source, sourceLength)}/${flags}`, \"regexp\");\n}\n__name(inspectRegExp, \"inspectRegExp\");\n\n// node_modules/loupe/lib/set.js\nfunction arrayFromSet(set2) {\n const values = [];\n set2.forEach((value) => {\n values.push(value);\n });\n return values;\n}\n__name(arrayFromSet, \"arrayFromSet\");\nfunction inspectSet(set2, options) {\n if (set2.size === 0)\n return \"Set{}\";\n options.truncate -= 7;\n return `Set{ ${inspectList(arrayFromSet(set2), options)} }`;\n}\n__name(inspectSet, \"inspectSet\");\n\n// node_modules/loupe/lib/string.js\nvar stringEscapeChars = new RegExp(\"['\\\\u0000-\\\\u001f\\\\u007f-\\\\u009f\\\\u00ad\\\\u0600-\\\\u0604\\\\u070f\\\\u17b4\\\\u17b5\\\\u200c-\\\\u200f\\\\u2028-\\\\u202f\\\\u2060-\\\\u206f\\\\ufeff\\\\ufff0-\\\\uffff]\", \"g\");\nvar escapeCharacters = {\n \"\\b\": \"\\\\b\",\n \"\t\": \"\\\\t\",\n \"\\n\": \"\\\\n\",\n \"\\f\": \"\\\\f\",\n \"\\r\": \"\\\\r\",\n \"'\": \"\\\\'\",\n \"\\\\\": \"\\\\\\\\\"\n};\nvar hex = 16;\nvar unicodeLength = 4;\nfunction escape(char) {\n return escapeCharacters[char] || `\\\\u${`0000${char.charCodeAt(0).toString(hex)}`.slice(-unicodeLength)}`;\n}\n__name(escape, \"escape\");\nfunction inspectString(string, options) {\n if (stringEscapeChars.test(string)) {\n string = string.replace(stringEscapeChars, escape);\n }\n return options.stylize(`'${truncate(string, options.truncate - 2)}'`, \"string\");\n}\n__name(inspectString, \"inspectString\");\n\n// node_modules/loupe/lib/symbol.js\nfunction inspectSymbol(value) {\n if (\"description\" in Symbol.prototype) {\n return value.description ? `Symbol(${value.description})` : \"Symbol()\";\n }\n return value.toString();\n}\n__name(inspectSymbol, \"inspectSymbol\");\n\n// node_modules/loupe/lib/promise.js\nvar getPromiseValue = /* @__PURE__ */ __name(() => \"Promise{\\u2026}\", \"getPromiseValue\");\ntry {\n const { getPromiseDetails, kPending, kRejected } = process.binding(\"util\");\n if (Array.isArray(getPromiseDetails(Promise.resolve()))) {\n getPromiseValue = /* @__PURE__ */ __name((value, options) => {\n const [state, innerValue] = getPromiseDetails(value);\n if (state === kPending) {\n return \"Promise{<pending>}\";\n }\n return `Promise${state === kRejected ? \"!\" : \"\"}{${options.inspect(innerValue, options)}}`;\n }, \"getPromiseValue\");\n }\n} catch (notNode) {\n}\nvar promise_default = getPromiseValue;\n\n// node_modules/loupe/lib/object.js\nfunction inspectObject(object, options) {\n const properties = Object.getOwnPropertyNames(object);\n const symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : [];\n if (properties.length === 0 && symbols.length === 0) {\n return \"{}\";\n }\n options.truncate -= 4;\n options.seen = options.seen || [];\n if (options.seen.includes(object)) {\n return \"[Circular]\";\n }\n options.seen.push(object);\n const propertyContents = inspectList(properties.map((key) => [key, object[key]]), options, inspectProperty);\n const symbolContents = inspectList(symbols.map((key) => [key, object[key]]), options, inspectProperty);\n options.seen.pop();\n let sep = \"\";\n if (propertyContents && symbolContents) {\n sep = \", \";\n }\n return `{ ${propertyContents}${sep}${symbolContents} }`;\n}\n__name(inspectObject, \"inspectObject\");\n\n// node_modules/loupe/lib/class.js\nvar toStringTag = typeof Symbol !== \"undefined\" && Symbol.toStringTag ? Symbol.toStringTag : false;\nfunction inspectClass(value, options) {\n let name = \"\";\n if (toStringTag && toStringTag in value) {\n name = value[toStringTag];\n }\n name = name || value.constructor.name;\n if (!name || name === \"_class\") {\n name = \"<Anonymous Class>\";\n }\n options.truncate -= name.length;\n return `${name}${inspectObject(value, options)}`;\n}\n__name(inspectClass, \"inspectClass\");\n\n// node_modules/loupe/lib/arguments.js\nfunction inspectArguments(args, options) {\n if (args.length === 0)\n return \"Arguments[]\";\n options.truncate -= 13;\n return `Arguments[ ${inspectList(args, options)} ]`;\n}\n__name(inspectArguments, \"inspectArguments\");\n\n// node_modules/loupe/lib/error.js\nvar errorKeys = [\n \"stack\",\n \"line\",\n \"column\",\n \"name\",\n \"message\",\n \"fileName\",\n \"lineNumber\",\n \"columnNumber\",\n \"number\",\n \"description\",\n \"cause\"\n];\nfunction inspectObject2(error, options) {\n const properties = Object.getOwnPropertyNames(error).filter((key) => errorKeys.indexOf(key) === -1);\n const name = error.name;\n options.truncate -= name.length;\n let message = \"\";\n if (typeof error.message === \"string\") {\n message = truncate(error.message, options.truncate);\n } else {\n properties.unshift(\"message\");\n }\n message = message ? `: ${message}` : \"\";\n options.truncate -= message.length + 5;\n options.seen = options.seen || [];\n if (options.seen.includes(error)) {\n return \"[Circular]\";\n }\n options.seen.push(error);\n const propertyContents = inspectList(properties.map((key) => [key, error[key]]), options, inspectProperty);\n return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : \"\"}`;\n}\n__name(inspectObject2, \"inspectObject\");\n\n// node_modules/loupe/lib/html.js\nfunction inspectAttribute([key, value], options) {\n options.truncate -= 3;\n if (!value) {\n return `${options.stylize(String(key), \"yellow\")}`;\n }\n return `${options.stylize(String(key), \"yellow\")}=${options.stylize(`\"${value}\"`, \"string\")}`;\n}\n__name(inspectAttribute, \"inspectAttribute\");\nfunction inspectHTMLCollection(collection, options) {\n return inspectList(collection, options, inspectHTML, \"\\n\");\n}\n__name(inspectHTMLCollection, \"inspectHTMLCollection\");\nfunction inspectHTML(element, options) {\n const properties = element.getAttributeNames();\n const name = element.tagName.toLowerCase();\n const head = options.stylize(`<${name}`, \"special\");\n const headClose = options.stylize(`>`, \"special\");\n const tail = options.stylize(`</${name}>`, \"special\");\n options.truncate -= name.length * 2 + 5;\n let propertyContents = \"\";\n if (properties.length > 0) {\n propertyContents += \" \";\n propertyContents += inspectList(properties.map((key) => [key, element.getAttribute(key)]), options, inspectAttribute, \" \");\n }\n options.truncate -= propertyContents.length;\n const truncate2 = options.truncate;\n let children = inspectHTMLCollection(element.children, options);\n if (children && children.length > truncate2) {\n children = `${truncator}(${element.children.length})`;\n }\n return `${head}${propertyContents}${headClose}${children}${tail}`;\n}\n__name(inspectHTML, \"inspectHTML\");\n\n// node_modules/loupe/lib/index.js\nvar symbolsSupported = typeof Symbol === \"function\" && typeof Symbol.for === \"function\";\nvar chaiInspect = symbolsSupported ? Symbol.for(\"chai/inspect\") : \"@@chai/inspect\";\nvar nodeInspect = false;\ntry {\n const nodeUtil = require_util();\n nodeInspect = nodeUtil.inspect ? nodeUtil.inspect.custom : false;\n} catch (noNodeInspect) {\n nodeInspect = false;\n}\nvar constructorMap = /* @__PURE__ */ new WeakMap();\nvar stringTagMap = {};\nvar baseTypesMap = {\n undefined: /* @__PURE__ */ __name((value, options) => options.stylize(\"undefined\", \"undefined\"), \"undefined\"),\n null: /* @__PURE__ */ __name((value, options) => options.stylize(\"null\", \"null\"), \"null\"),\n boolean: /* @__PURE__ */ __name((value, options) => options.stylize(String(value), \"boolean\"), \"boolean\"),\n Boolean: /* @__PURE__ */ __name((value, options) => options.stylize(String(value), \"boolean\"), \"Boolean\"),\n number: inspectNumber,\n Number: inspectNumber,\n bigint: inspectBigInt,\n BigInt: inspectBigInt,\n string: inspectString,\n String: inspectString,\n function: inspectFunction,\n Function: inspectFunction,\n symbol: inspectSymbol,\n // A Symbol polyfill will return `Symbol` not `symbol` from typedetect\n Symbol: inspectSymbol,\n Array: inspectArray,\n Date: inspectDate,\n Map: inspectMap,\n Set: inspectSet,\n RegExp: inspectRegExp,\n Promise: promise_default,\n // WeakSet, WeakMap are totally opaque to us\n WeakSet: /* @__PURE__ */ __name((value, options) => options.stylize(\"WeakSet{\\u2026}\", \"special\"), \"WeakSet\"),\n WeakMap: /* @__PURE__ */ __name((value, options) => options.stylize(\"WeakMap{\\u2026}\", \"special\"), \"WeakMap\"),\n Arguments: inspectArguments,\n Int8Array: inspectTypedArray,\n Uint8Array: inspectTypedArray,\n Uint8ClampedArray: inspectTypedArray,\n Int16Array: inspectTypedArray,\n Uint16Array: inspectTypedArray,\n Int32Array: inspectTypedArray,\n Uint32Array: inspectTypedArray,\n Float32Array: inspectTypedArray,\n Float64Array: inspectTypedArray,\n Generator: /* @__PURE__ */ __name(() => \"\", \"Generator\"),\n DataView: /* @__PURE__ */ __name(() => \"\", \"DataView\"),\n ArrayBuffer: /* @__PURE__ */ __name(() => \"\", \"ArrayBuffer\"),\n Error: inspectObject2,\n HTMLCollection: inspectHTMLCollection,\n NodeList: inspectHTMLCollection\n};\nvar inspectCustom = /* @__PURE__ */ __name((value, options, type3) => {\n if (chaiInspect in value && typeof value[chaiInspect] === \"function\") {\n return value[chaiInspect](options);\n }\n if (nodeInspect && nodeInspect in value && typeof value[nodeInspect] === \"function\") {\n return value[nodeInspect](options.depth, options);\n }\n if (\"inspect\" in value && typeof value.inspect === \"function\") {\n return value.inspect(options.depth, options);\n }\n if (\"constructor\" in value && constructorMap.has(value.constructor)) {\n return constructorMap.get(value.constructor)(value, options);\n }\n if (stringTagMap[type3]) {\n return stringTagMap[type3](value, options);\n }\n return \"\";\n}, \"inspectCustom\");\nvar toString = Object.prototype.toString;\nfunction inspect(value, opts = {}) {\n const options = normaliseOptions(opts, inspect);\n const { customInspect } = options;\n let type3 = value === null ? \"null\" : typeof value;\n if (type3 === \"object\") {\n type3 = toString.call(value).slice(8, -1);\n }\n if (type3 in baseTypesMap) {\n return baseTypesMap[type3](value, options);\n }\n if (customInspect && value) {\n const output = inspectCustom(value, options, type3);\n if (output) {\n if (typeof output === \"string\")\n return output;\n return inspect(output, options);\n }\n }\n const proto = value ? Object.getPrototypeOf(value) : false;\n if (proto === Object.prototype || proto === null) {\n return inspectObject(value, options);\n }\n if (value && typeof HTMLElement === \"function\" && value instanceof HTMLElement) {\n return inspectHTML(value, options);\n }\n if (\"constructor\" in value) {\n if (value.constructor !== Object) {\n return inspectClass(value, options);\n }\n return inspectObject(value, options);\n }\n if (value === Object(value)) {\n return inspectObject(value, options);\n }\n return options.stylize(String(value), type3);\n}\n__name(inspect, \"inspect\");\n\n// lib/chai/config.js\nvar config = {\n /**\n * ### config.includeStack\n *\n * User configurable property, influences whether stack trace\n * is included in Assertion error message. Default of false\n * suppresses stack trace in the error message.\n *\n * chai.config.includeStack = true; // enable stack on error\n *\n * @param {boolean}\n * @public\n */\n includeStack: false,\n /**\n * ### config.showDiff\n *\n * User configurable property, influences whether or not\n * the `showDiff` flag should be included in the thrown\n * AssertionErrors. `false` will always be `false`; `true`\n * will be true when the assertion has requested a diff\n * be shown.\n *\n * @param {boolean}\n * @public\n */\n showDiff: true,\n /**\n * ### config.truncateThreshold\n *\n * User configurable property, sets length threshold for actual and\n * expected values in assertion errors. If this threshold is exceeded, for\n * example for large data structures, the value is replaced with something\n * like `[ Array(3) ]` or `{ Object (prop1, prop2) }`.\n *\n * Set it to zero if you want to disable truncating altogether.\n *\n * This is especially userful when doing assertions on arrays: having this\n * set to a reasonable large value makes the failure messages readily\n * inspectable.\n *\n * chai.config.truncateThreshold = 0; // disable truncating\n *\n * @param {number}\n * @public\n */\n truncateThreshold: 40,\n /**\n * ### config.useProxy\n *\n * User configurable property, defines if chai will use a Proxy to throw\n * an error when a non-existent property is read, which protects users\n * from typos when using property-based assertions.\n *\n * Set it to false if you want to disable this feature.\n *\n * chai.config.useProxy = false; // disable use of Proxy\n *\n * This feature is automatically disabled regardless of this config value\n * in environments that don't support proxies.\n *\n * @param {boolean}\n * @public\n */\n useProxy: true,\n /**\n * ### config.proxyExcludedKeys\n *\n * User configurable property, defines which properties should be ignored\n * instead of throwing an error if they do not exist on the assertion.\n * This is only applied if the environment Chai is running in supports proxies and\n * if the `useProxy` configuration setting is enabled.\n * By default, `then` and `inspect` will not throw an error if they do not exist on the\n * assertion object because the `.inspect` property is read by `util.inspect` (for example, when\n * using `console.log` on the assertion object) and `.then` is necessary for promise type-checking.\n *\n * // By default these keys will not throw an error if they do not exist on the assertion object\n * chai.config.proxyExcludedKeys = ['then', 'inspect'];\n *\n * @param {Array}\n * @public\n */\n proxyExcludedKeys: [\"then\", \"catch\", \"inspect\", \"toJSON\"],\n /**\n * ### config.deepEqual\n *\n * User configurable property, defines which a custom function to use for deepEqual\n * comparisons.\n * By default, the function used is the one from the `deep-eql` package without custom comparator.\n *\n * // use a custom comparator\n * chai.config.deepEqual = (expected, actual) => {\n * return chai.util.eql(expected, actual, {\n * comparator: (expected, actual) => {\n * // for non number comparison, use the default behavior\n * if(typeof expected !== 'number') return null;\n * // allow a difference of 10 between compared numbers\n * return typeof actual === 'number' && Math.abs(actual - expected) < 10\n * }\n * })\n * };\n *\n * @param {Function}\n * @public\n */\n deepEqual: null\n};\n\n// lib/chai/utils/inspect.js\nfunction inspect2(obj, showHidden, depth, colors) {\n let options = {\n colors,\n depth: typeof depth === \"undefined\" ? 2 : depth,\n showHidden,\n truncate: config.truncateThreshold ? config.truncateThreshold : Infinity\n };\n return inspect(obj, options);\n}\n__name(inspect2, \"inspect\");\n\n// lib/chai/utils/objDisplay.js\nfunction objDisplay(obj) {\n let str = inspect2(obj), type3 = Object.prototype.toString.call(obj);\n if (config.truncateThreshold && str.length >= config.truncateThreshold) {\n if (type3 === \"[object Function]\") {\n return !obj.name || obj.name === \"\" ? \"[Function]\" : \"[Function: \" + obj.name + \"]\";\n } else if (type3 === \"[object Array]\") {\n return \"[ Array(\" + obj.length + \") ]\";\n } else if (type3 === \"[object Object]\") {\n let keys = Object.keys(obj), kstr = keys.length > 2 ? keys.splice(0, 2).join(\", \") + \", ...\" : keys.join(\", \");\n return \"{ Object (\" + kstr + \") }\";\n } else {\n return str;\n }\n } else {\n return str;\n }\n}\n__name(objDisplay, \"objDisplay\");\n\n// lib/chai/utils/getMessage.js\nfunction getMessage2(obj, args) {\n let negate = flag(obj, \"negate\");\n let val = flag(obj, \"object\");\n let expected = args[3];\n let actual = getActual(obj, args);\n let msg = negate ? args[2] : args[1];\n let flagMsg = flag(obj, \"message\");\n if (typeof msg === \"function\") msg = msg();\n msg = msg || \"\";\n msg = msg.replace(/#\\{this\\}/g, function() {\n return objDisplay(val);\n }).replace(/#\\{act\\}/g, function() {\n return objDisplay(actual);\n }).replace(/#\\{exp\\}/g, function() {\n return objDisplay(expected);\n });\n return flagMsg ? flagMsg + \": \" + msg : msg;\n}\n__name(getMessage2, \"getMessage\");\n\n// lib/chai/utils/transferFlags.js\nfunction transferFlags(assertion, object, includeAll) {\n let flags = assertion.__flags || (assertion.__flags = /* @__PURE__ */ Object.create(null));\n if (!object.__flags) {\n object.__flags = /* @__PURE__ */ Object.create(null);\n }\n includeAll = arguments.length === 3 ? includeAll : true;\n for (let flag3 in flags) {\n if (includeAll || flag3 !== \"object\" && flag3 !== \"ssfi\" && flag3 !== \"lockSsfi\" && flag3 != \"message\") {\n object.__flags[flag3] = flags[flag3];\n }\n }\n}\n__name(transferFlags, \"transferFlags\");\n\n// node_modules/deep-eql/index.js\nfunction type2(obj) {\n if (typeof obj === \"undefined\") {\n return \"undefined\";\n }\n if (obj === null) {\n return \"null\";\n }\n const stringTag = obj[Symbol.toStringTag];\n if (typeof stringTag === \"string\") {\n return stringTag;\n }\n const sliceStart = 8;\n const sliceEnd = -1;\n return Object.prototype.toString.call(obj).slice(sliceStart, sliceEnd);\n}\n__name(type2, \"type\");\nfunction FakeMap() {\n this._key = \"chai/deep-eql__\" + Math.random() + Date.now();\n}\n__name(FakeMap, \"FakeMap\");\nFakeMap.prototype = {\n get: /* @__PURE__ */ __name(function get(key) {\n return key[this._key];\n }, \"get\"),\n set: /* @__PURE__ */ __name(function set(key, value) {\n if (Object.isExtensible(key)) {\n Object.defineProperty(key, this._key, {\n value,\n configurable: true\n });\n }\n }, \"set\")\n};\nvar MemoizeMap = typeof WeakMap === \"function\" ? WeakMap : FakeMap;\nfunction memoizeCompare(leftHandOperand, rightHandOperand, memoizeMap) {\n if (!memoizeMap || isPrimitive(leftHandOperand) || isPrimitive(rightHandOperand)) {\n return null;\n }\n var leftHandMap = memoizeMap.get(leftHandOperand);\n if (leftHandMap) {\n var result = leftHandMap.get(rightHandOperand);\n if (typeof result === \"boolean\") {\n return result;\n }\n }\n return null;\n}\n__name(memoizeCompare, \"memoizeCompare\");\nfunction memoizeSet(leftHandOperand, rightHandOperand, memoizeMap, result) {\n if (!memoizeMap || isPrimitive(leftHandOperand) || isPrimitive(rightHandOperand)) {\n return;\n }\n var leftHandMap = memoizeMap.get(leftHandOperand);\n if (leftHandMap) {\n leftHandMap.set(rightHandOperand, result);\n } else {\n leftHandMap = new MemoizeMap();\n leftHandMap.set(rightHandOperand, result);\n memoizeMap.set(leftHandOperand, leftHandMap);\n }\n}\n__name(memoizeSet, \"memoizeSet\");\nvar deep_eql_default = deepEqual;\nfunction deepEqual(leftHandOperand, rightHandOperand, options) {\n if (options && options.comparator) {\n return extensiveDeepEqual(leftHandOperand, rightHandOperand, options);\n }\n var simpleResult = simpleEqual(leftHandOperand, rightHandOperand);\n if (simpleResult !== null) {\n return simpleResult;\n }\n return extensiveDeepEqual(leftHandOperand, rightHandOperand, options);\n}\n__name(deepEqual, \"deepEqual\");\nfunction simpleEqual(leftHandOperand, rightHandOperand) {\n if (leftHandOperand === rightHandOperand) {\n return leftHandOperand !== 0 || 1 / leftHandOperand === 1 / rightHandOperand;\n }\n if (leftHandOperand !== leftHandOperand && // eslint-disable-line no-self-compare\n rightHandOperand !== rightHandOperand) {\n return true;\n }\n if (isPrimitive(leftHandOperand) || isPrimitive(rightHandOperand)) {\n return false;\n }\n return null;\n}\n__name(simpleEqual, \"simpleEqual\");\nfunction extensiveDeepEqual(leftHandOperand, rightHandOperand, options) {\n options = options || {};\n options.memoize = options.memoize === false ? false : options.memoize || new MemoizeMap();\n var comparator = options && options.comparator;\n var memoizeResultLeft = memoizeCompare(leftHandOperand, rightHandOperand, options.memoize);\n if (memoizeResultLeft !== null) {\n return memoizeResultLeft;\n }\n var memoizeResultRight = memoizeCompare(rightHandOperand, leftHandOperand, options.memoize);\n if (memoizeResultRight !== null) {\n return memoizeResultRight;\n }\n if (comparator) {\n var comparatorResult = comparator(leftHandOperand, rightHandOperand);\n if (comparatorResult === false || comparatorResult === true) {\n memoizeSet(leftHandOperand, rightHandOperand, options.memoize, comparatorResult);\n return comparatorResult;\n }\n var simpleResult = simpleEqual(leftHandOperand, rightHandOperand);\n if (simpleResult !== null) {\n return simpleResult;\n }\n }\n var leftHandType = type2(leftHandOperand);\n if (leftHandType !== type2(rightHandOperand)) {\n memoizeSet(leftHandOperand, rightHandOperand, options.memoize, false);\n return false;\n }\n memoizeSet(leftHandOperand, rightHandOperand, options.memoize, true);\n var result = extensiveDeepEqualByType(leftHandOperand, rightHandOperand, leftHandType, options);\n memoizeSet(leftHandOperand, rightHandOperand, options.memoize, result);\n return result;\n}\n__name(extensiveDeepEqual, \"extensiveDeepEqual\");\nfunction extensiveDeepEqualByType(leftHandOperand, rightHandOperand, leftHandType, options) {\n switch (leftHandType) {\n case \"String\":\n case \"Number\":\n case \"Boolean\":\n case \"Date\":\n return deepEqual(leftHandOperand.valueOf(), rightHandOperand.valueOf());\n case \"Promise\":\n case \"Symbol\":\n case \"function\":\n case \"WeakMap\":\n case \"WeakSet\":\n return leftHandOperand === rightHandOperand;\n case \"Error\":\n return keysEqual(leftHandOperand, rightHandOperand, [\"name\", \"message\", \"code\"], options);\n case \"Arguments\":\n case \"Int8Array\":\n case \"Uint8Array\":\n case \"Uint8ClampedArray\":\n case \"Int16Array\":\n case \"Uint16Array\":\n case \"Int32Array\":\n case \"Uint32Array\":\n case \"Float32Array\":\n case \"Float64Array\":\n case \"Array\":\n return iterableEqual(leftHandOperand, rightHandOperand, options);\n case \"RegExp\":\n return regexpEqual(leftHandOperand, rightHandOperand);\n case \"Generator\":\n return generatorEqual(leftHandOperand, rightHandOperand, options);\n case \"DataView\":\n return iterableEqual(new Uint8Array(leftHandOperand.buffer), new Uint8Array(rightHandOperand.buffer), options);\n case \"ArrayBuffer\":\n return iterableEqual(new Uint8Array(leftHandOperand), new Uint8Array(rightHandOperand), options);\n case \"Set\":\n return entriesEqual(leftHandOperand, rightHandOperand, options);\n case \"Map\":\n return entriesEqual(leftHandOperand, rightHandOperand, options);\n case \"Temporal.PlainDate\":\n case \"Temporal.PlainTime\":\n case \"Temporal.PlainDateTime\":\n case \"Temporal.Instant\":\n case \"Temporal.ZonedDateTime\":\n case \"Temporal.PlainYearMonth\":\n case \"Temporal.PlainMonthDay\":\n return leftHandOperand.equals(rightHandOperand);\n case \"Temporal.Duration\":\n return leftHandOperand.total(\"nanoseconds\") === rightHandOperand.total(\"nanoseconds\");\n case \"Temporal.TimeZone\":\n case \"Temporal.Calendar\":\n return leftHandOperand.toString() === rightHandOperand.toString();\n default:\n return objectEqual(leftHandOperand, rightHandOperand, options);\n }\n}\n__name(extensiveDeepEqualByType, \"extensiveDeepEqualByType\");\nfunction regexpEqual(leftHandOperand, rightHandOperand) {\n return leftHandOperand.toString() === rightHandOperand.toString();\n}\n__name(regexpEqual, \"regexpEqual\");\nfunction entriesEqual(leftHandOperand, rightHandOperand, options) {\n try {\n if (leftHandOperand.size !== rightHandOperand.size) {\n return false;\n }\n if (leftHandOperand.size === 0) {\n return true;\n }\n } catch (sizeError) {\n return false;\n }\n var leftHandItems = [];\n var rightHandItems = [];\n leftHandOperand.forEach(/* @__PURE__ */ __name(function gatherEntries(key, value) {\n leftHandItems.push([key, value]);\n }, \"gatherEntries\"));\n rightHandOperand.forEach(/* @__PURE__ */ __name(function gatherEntries(key, value) {\n rightHandItems.push([key, value]);\n }, \"gatherEntries\"));\n return iterableEqual(leftHandItems.sort(), rightHandItems.sort(), options);\n}\n__name(entriesEqual, \"entriesEqual\");\nfunction iterableEqual(leftHandOperand, rightHandOperand, options) {\n var length = leftHandOperand.length;\n if (length !== rightHandOperand.length) {\n return false;\n }\n if (length === 0) {\n return true;\n }\n var index = -1;\n while (++index < length) {\n if (deepEqual(leftHandOperand[index], rightHandOperand[index], options) === false) {\n return false;\n }\n }\n return true;\n}\n__name(iterableEqual, \"iterableEqual\");\nfunction generatorEqual(leftHandOperand, rightHandOperand, options) {\n return iterableEqual(getGeneratorEntries(leftHandOperand), getGeneratorEntries(rightHandOperand), options);\n}\n__name(generatorEqual, \"generatorEqual\");\nfunction hasIteratorFunction(target) {\n return typeof Symbol !== \"undefined\" && typeof target === \"object\" && typeof Symbol.iterator !== \"undefined\" && typeof target[Symbol.iterator] === \"function\";\n}\n__name(hasIteratorFunction, \"hasIteratorFunction\");\nfunction getIteratorEntries(target) {\n if (hasIteratorFunction(target)) {\n try {\n return getGeneratorEntries(target[Symbol.iterator]());\n } catch (iteratorError) {\n return [];\n }\n }\n return [];\n}\n__name(getIteratorEntries, \"getIteratorEntries\");\nfunction getGeneratorEntries(generator) {\n var generatorResult = generator.next();\n var accumulator = [generatorResult.value];\n while (generatorResult.done === false) {\n generatorResult = generator.next();\n accumulator.push(generatorResult.value);\n }\n return accumulator;\n}\n__name(getGeneratorEntries, \"getGeneratorEntries\");\nfunction getEnumerableKeys(target) {\n var keys = [];\n for (var key in target) {\n keys.push(key);\n }\n return keys;\n}\n__name(getEnumerableKeys, \"getEnumerableKeys\");\nfunction getEnumerableSymbols(target) {\n var keys = [];\n var allKeys = Object.getOwnPropertySymbols(target);\n for (var i = 0; i < allKeys.length; i += 1) {\n var key = allKeys[i];\n if (Object.getOwnPropertyDescriptor(target, key).enumerable) {\n keys.push(key);\n }\n }\n return keys;\n}\n__name(getEnumerableSymbols, \"getEnumerableSymbols\");\nfunction keysEqual(leftHandOperand, rightHandOperand, keys, options) {\n var length = keys.length;\n if (length === 0) {\n return true;\n }\n for (var i = 0; i < length; i += 1) {\n if (deepEqual(leftHandOperand[keys[i]], rightHandOperand[keys[i]], options) === false) {\n return false;\n }\n }\n return true;\n}\n__name(keysEqual, \"keysEqual\");\nfunction objectEqual(leftHandOperand, rightHandOperand, options) {\n var leftHandKeys = getEnumerableKeys(leftHandOperand);\n var rightHandKeys = getEnumerableKeys(rightHandOperand);\n var leftHandSymbols = getEnumerableSymbols(leftHandOperand);\n var rightHandSymbols = getEnumerableSymbols(rightHandOperand);\n leftHandKeys = leftHandKeys.concat(leftHandSymbols);\n rightHandKeys = rightHandKeys.concat(rightHandSymbols);\n if (leftHandKeys.length && leftHandKeys.length === rightHandKeys.length) {\n if (iterableEqual(mapSymbols(leftHandKeys).sort(), mapSymbols(rightHandKeys).sort()) === false) {\n return false;\n }\n return keysEqual(leftHandOperand, rightHandOperand, leftHandKeys, options);\n }\n var leftHandEntries = getIteratorEntries(leftHandOperand);\n var rightHandEntries = getIteratorEntries(rightHandOperand);\n if (leftHandEntries.length && leftHandEntries.length === rightHandEntries.length) {\n leftHandEntries.sort();\n rightHandEntries.sort();\n return iterableEqual(leftHandEntries, rightHandEntries, options);\n }\n if (leftHandKeys.length === 0 && leftHandEntries.length === 0 && rightHandKeys.length === 0 && rightHandEntries.length === 0) {\n return true;\n }\n return false;\n}\n__name(objectEqual, \"objectEqual\");\nfunction isPrimitive(value) {\n return value === null || typeof value !== \"object\";\n}\n__name(isPrimitive, \"isPrimitive\");\nfunction mapSymbols(arr) {\n return arr.map(/* @__PURE__ */ __name(function mapSymbol(entry) {\n if (typeof entry === \"symbol\") {\n return entry.toString();\n }\n return entry;\n }, \"mapSymbol\"));\n}\n__name(mapSymbols, \"mapSymbols\");\n\n// node_modules/pathval/index.js\nfunction hasProperty(obj, name) {\n if (typeof obj === \"undefined\" || obj === null) {\n return false;\n }\n return name in Object(obj);\n}\n__name(hasProperty, \"hasProperty\");\nfunction parsePath(path) {\n const str = path.replace(/([^\\\\])\\[/g, \"$1.[\");\n const parts = str.match(/(\\\\\\.|[^.]+?)+/g);\n return parts.map((value) => {\n if (value === \"constructor\" || value === \"__proto__\" || value === \"prototype\") {\n return {};\n }\n const regexp = /^\\[(\\d+)\\]$/;\n const mArr = regexp.exec(value);\n let parsed = null;\n if (mArr) {\n parsed = { i: parseFloat(mArr[1]) };\n } else {\n parsed = { p: value.replace(/\\\\([.[\\]])/g, \"$1\") };\n }\n return parsed;\n });\n}\n__name(parsePath, \"parsePath\");\nfunction internalGetPathValue(obj, parsed, pathDepth) {\n let temporaryValue = obj;\n let res = null;\n pathDepth = typeof pathDepth === \"undefined\" ? parsed.length : pathDepth;\n for (let i = 0; i < pathDepth; i++) {\n const part = parsed[i];\n if (temporaryValue) {\n if (typeof part.p === \"undefined\") {\n temporaryValue = temporaryValue[part.i];\n } else {\n temporaryValue = temporaryValue[part.p];\n }\n if (i === pathDepth - 1) {\n res = temporaryValue;\n }\n }\n }\n return res;\n}\n__name(internalGetPathValue, \"internalGetPathValue\");\nfunction getPathInfo(obj, path) {\n const parsed = parsePath(path);\n const last = parsed[parsed.length - 1];\n const info = {\n parent: parsed.length > 1 ? internalGetPathValue(obj, parsed, parsed.length - 1) : obj,\n name: last.p || last.i,\n value: internalGetPathValue(obj, parsed)\n };\n info.exists = hasProperty(info.parent, info.name);\n return info;\n}\n__name(getPathInfo, \"getPathInfo\");\n\n// lib/chai/assertion.js\nvar Assertion = class _Assertion {\n static {\n __name(this, \"Assertion\");\n }\n /** @type {{}} */\n __flags = {};\n /**\n * Creates object for chaining.\n * `Assertion` objects contain metadata in the form of flags. Three flags can\n * be assigned during instantiation by passing arguments to this constructor:\n *\n * - `object`: This flag contains the target of the assertion. For example, in\n * the assertion `expect(numKittens).to.equal(7);`, the `object` flag will\n * contain `numKittens` so that the `equal` assertion can reference it when\n * needed.\n *\n * - `message`: This flag contains an optional custom error message to be\n * prepended to the error message that's generated by the assertion when it\n * fails.\n *\n * - `ssfi`: This flag stands for \"start stack function indicator\". It\n * contains a function reference that serves as the starting point for\n * removing frames from the stack trace of the error that's created by the\n * assertion when it fails. The goal is to provide a cleaner stack trace to\n * end users by removing Chai's internal functions. Note that it only works\n * in environments that support `Error.captureStackTrace`, and only when\n * `Chai.config.includeStack` hasn't been set to `false`.\n *\n * - `lockSsfi`: This flag controls whether or not the given `ssfi` flag\n * should retain its current value, even as assertions are chained off of\n * this object. This is usually set to `true` when creating a new assertion\n * from within another assertion. It's also temporarily set to `true` before\n * an overwritten assertion gets called by the overwriting assertion.\n *\n * - `eql`: This flag contains the deepEqual function to be used by the assertion.\n *\n * @param {unknown} obj target of the assertion\n * @param {string} [msg] (optional) custom error message\n * @param {Function} [ssfi] (optional) starting point for removing stack frames\n * @param {boolean} [lockSsfi] (optional) whether or not the ssfi flag is locked\n */\n constructor(obj, msg, ssfi, lockSsfi) {\n flag(this, \"ssfi\", ssfi || _Assertion);\n flag(this, \"lockSsfi\", lockSsfi);\n flag(this, \"object\", obj);\n flag(this, \"message\", msg);\n flag(this, \"eql\", config.deepEqual || deep_eql_default);\n return proxify(this);\n }\n /** @returns {boolean} */\n static get includeStack() {\n console.warn(\n \"Assertion.includeStack is deprecated, use chai.config.includeStack instead.\"\n );\n return config.includeStack;\n }\n /** @param {boolean} value */\n static set includeStack(value) {\n console.warn(\n \"Assertion.includeStack is deprecated, use chai.config.includeStack instead.\"\n );\n config.includeStack = value;\n }\n /** @returns {boolean} */\n static get showDiff() {\n console.warn(\n \"Assertion.showDiff is deprecated, use chai.config.showDiff instead.\"\n );\n return config.showDiff;\n }\n /** @param {boolean} value */\n static set showDiff(value) {\n console.warn(\n \"Assertion.showDiff is deprecated, use chai.config.showDiff instead.\"\n );\n config.showDiff = value;\n }\n /**\n * @param {string} name\n * @param {Function} fn\n */\n static addProperty(name, fn) {\n addProperty(this.prototype, name, fn);\n }\n /**\n * @param {string} name\n * @param {Function} fn\n */\n static addMethod(name, fn) {\n addMethod(this.prototype, name, fn);\n }\n /**\n * @param {string} name\n * @param {Function} fn\n * @param {Function} chainingBehavior\n */\n static addChainableMethod(name, fn, chainingBehavior) {\n addChainableMethod(this.prototype, name, fn, chainingBehavior);\n }\n /**\n * @param {string} name\n * @param {Function} fn\n */\n static overwriteProperty(name, fn) {\n overwriteProperty(this.prototype, name, fn);\n }\n /**\n * @param {string} name\n * @param {Function} fn\n */\n static overwriteMethod(name, fn) {\n overwriteMethod(this.prototype, name, fn);\n }\n /**\n * @param {string} name\n * @param {Function} fn\n * @param {Function} chainingBehavior\n */\n static overwriteChainableMethod(name, fn, chainingBehavior) {\n overwriteChainableMethod(this.prototype, name, fn, chainingBehavior);\n }\n /**\n * ### .assert(expression, message, negateMessage, expected, actual, showDiff)\n *\n * Executes an expression and check expectations. Throws AssertionError for reporting if test doesn't pass.\n *\n * @name assert\n * @param {unknown} _expr to be tested\n * @param {string | Function} msg or function that returns message to display if expression fails\n * @param {string | Function} _negateMsg or function that returns negatedMessage to display if negated expression fails\n * @param {unknown} expected value (remember to check for negation)\n * @param {unknown} _actual (optional) will default to `this.obj`\n * @param {boolean} showDiff (optional) when set to `true`, assert will display a diff in addition to the message if expression fails\n * @returns {void}\n */\n assert(_expr, msg, _negateMsg, expected, _actual, showDiff) {\n const ok = test(this, arguments);\n if (false !== showDiff) showDiff = true;\n if (void 0 === expected && void 0 === _actual) showDiff = false;\n if (true !== config.showDiff) showDiff = false;\n if (!ok) {\n msg = getMessage2(this, arguments);\n const actual = getActual(this, arguments);\n const assertionErrorObjectProperties = {\n actual,\n expected,\n showDiff\n };\n const operator = getOperator(this, arguments);\n if (operator) {\n assertionErrorObjectProperties.operator = operator;\n }\n throw new AssertionError(\n msg,\n assertionErrorObjectProperties,\n // @ts-expect-error Not sure what to do about these types yet\n config.includeStack ? this.assert : flag(this, \"ssfi\")\n );\n }\n }\n /**\n * Quick reference to stored `actual` value for plugin developers.\n *\n * @returns {unknown}\n */\n get _obj() {\n return flag(this, \"object\");\n }\n /**\n * Quick reference to stored `actual` value for plugin developers.\n *\n * @param {unknown} val\n */\n set _obj(val) {\n flag(this, \"object\", val);\n }\n};\n\n// lib/chai/utils/isProxyEnabled.js\nfunction isProxyEnabled() {\n return config.useProxy && typeof Proxy !== \"undefined\" && typeof Reflect !== \"undefined\";\n}\n__name(isProxyEnabled, \"isProxyEnabled\");\n\n// lib/chai/utils/addProperty.js\nfunction addProperty(ctx, name, getter) {\n getter = getter === void 0 ? function() {\n } : getter;\n Object.defineProperty(ctx, name, {\n get: /* @__PURE__ */ __name(function propertyGetter() {\n if (!isProxyEnabled() && !flag(this, \"lockSsfi\")) {\n flag(this, \"ssfi\", propertyGetter);\n }\n let result = getter.call(this);\n if (result !== void 0) return result;\n let newAssertion = new Assertion();\n transferFlags(this, newAssertion);\n return newAssertion;\n }, \"propertyGetter\"),\n configurable: true\n });\n}\n__name(addProperty, \"addProperty\");\n\n// lib/chai/utils/addLengthGuard.js\nvar fnLengthDesc = Object.getOwnPropertyDescriptor(function() {\n}, \"length\");\nfunction addLengthGuard(fn, assertionName, isChainable) {\n if (!fnLengthDesc.configurable) return fn;\n Object.defineProperty(fn, \"length\", {\n get: /* @__PURE__ */ __name(function() {\n if (isChainable) {\n throw Error(\n \"Invalid Chai property: \" + assertionName + '.length. Due to a compatibility issue, \"length\" cannot directly follow \"' + assertionName + '\". Use \"' + assertionName + '.lengthOf\" instead.'\n );\n }\n throw Error(\n \"Invalid Chai property: \" + assertionName + '.length. See docs for proper usage of \"' + assertionName + '\".'\n );\n }, \"get\")\n });\n return fn;\n}\n__name(addLengthGuard, \"addLengthGuard\");\n\n// lib/chai/utils/getProperties.js\nfunction getProperties(object) {\n let result = Object.getOwnPropertyNames(object);\n function addProperty2(property) {\n if (result.indexOf(property) === -1) {\n result.push(property);\n }\n }\n __name(addProperty2, \"addProperty\");\n let proto = Object.getPrototypeOf(object);\n while (proto !== null) {\n Object.getOwnPropertyNames(proto).forEach(addProperty2);\n proto = Object.getPrototypeOf(proto);\n }\n return result;\n}\n__name(getProperties, \"getProperties\");\n\n// lib/chai/utils/proxify.js\nvar builtins = [\"__flags\", \"__methods\", \"_obj\", \"assert\"];\nfunction proxify(obj, nonChainableMethodName) {\n if (!isProxyEnabled()) return obj;\n return new Proxy(obj, {\n get: /* @__PURE__ */ __name(function proxyGetter(target, property) {\n if (typeof property === \"string\" && config.proxyExcludedKeys.indexOf(property) === -1 && !Reflect.has(target, property)) {\n if (nonChainableMethodName) {\n throw Error(\n \"Invalid Chai property: \" + nonChainableMethodName + \".\" + property + '. See docs for proper usage of \"' + nonChainableMethodName + '\".'\n );\n }\n let suggestion = null;\n let suggestionDistance = 4;\n getProperties(target).forEach(function(prop) {\n if (\n // we actually mean to check `Object.prototype` here\n // eslint-disable-next-line no-prototype-builtins\n !Object.prototype.hasOwnProperty(prop) && builtins.indexOf(prop) === -1\n ) {\n let dist = stringDistanceCapped(property, prop, suggestionDistance);\n if (dist < suggestionDistance) {\n suggestion = prop;\n suggestionDistance = dist;\n }\n }\n });\n if (suggestion !== null) {\n throw Error(\n \"Invalid Chai property: \" + property + '. Did you mean \"' + suggestion + '\"?'\n );\n } else {\n throw Error(\"Invalid Chai property: \" + property);\n }\n }\n if (builtins.indexOf(property) === -1 && !flag(target, \"lockSsfi\")) {\n flag(target, \"ssfi\", proxyGetter);\n }\n return Reflect.get(target, property);\n }, \"proxyGetter\")\n });\n}\n__name(proxify, \"proxify\");\nfunction stringDistanceCapped(strA, strB, cap) {\n if (Math.abs(strA.length - strB.length) >= cap) {\n return cap;\n }\n let memo = [];\n for (let i = 0; i <= strA.length; i++) {\n memo[i] = Array(strB.length + 1).fill(0);\n memo[i][0] = i;\n }\n for (let j = 0; j < strB.length; j++) {\n memo[0][j] = j;\n }\n for (let i = 1; i <= strA.length; i++) {\n let ch = strA.charCodeAt(i - 1);\n for (let j = 1; j <= strB.length; j++) {\n if (Math.abs(i - j) >= cap) {\n memo[i][j] = cap;\n continue;\n }\n memo[i][j] = Math.min(\n memo[i - 1][j] + 1,\n memo[i][j - 1] + 1,\n memo[i - 1][j - 1] + (ch === strB.charCodeAt(j - 1) ? 0 : 1)\n );\n }\n }\n return memo[strA.length][strB.length];\n}\n__name(stringDistanceCapped, \"stringDistanceCapped\");\n\n// lib/chai/utils/addMethod.js\nfunction addMethod(ctx, name, method) {\n let methodWrapper = /* @__PURE__ */ __name(function() {\n if (!flag(this, \"lockSsfi\")) {\n flag(this, \"ssfi\", methodWrapper);\n }\n let result = method.apply(this, arguments);\n if (result !== void 0) return result;\n let newAssertion = new Assertion();\n transferFlags(this, newAssertion);\n return newAssertion;\n }, \"methodWrapper\");\n addLengthGuard(methodWrapper, name, false);\n ctx[name] = proxify(methodWrapper, name);\n}\n__name(addMethod, \"addMethod\");\n\n// lib/chai/utils/overwriteProperty.js\nfunction overwriteProperty(ctx, name, getter) {\n let _get = Object.getOwnPropertyDescriptor(ctx, name), _super = /* @__PURE__ */ __name(function() {\n }, \"_super\");\n if (_get && \"function\" === typeof _get.get) _super = _get.get;\n Object.defineProperty(ctx, name, {\n get: /* @__PURE__ */ __name(function overwritingPropertyGetter() {\n if (!isProxyEnabled() && !flag(this, \"lockSsfi\")) {\n flag(this, \"ssfi\", overwritingPropertyGetter);\n }\n let origLockSsfi = flag(this, \"lockSsfi\");\n flag(this, \"lockSsfi\", true);\n let result = getter(_super).call(this);\n flag(this, \"lockSsfi\", origLockSsfi);\n if (result !== void 0) {\n return result;\n }\n let newAssertion = new Assertion();\n transferFlags(this, newAssertion);\n return newAssertion;\n }, \"overwritingPropertyGetter\"),\n configurable: true\n });\n}\n__name(overwriteProperty, \"overwriteProperty\");\n\n// lib/chai/utils/overwriteMethod.js\nfunction overwriteMethod(ctx, name, method) {\n let _method = ctx[name], _super = /* @__PURE__ */ __name(function() {\n throw new Error(name + \" is not a function\");\n }, \"_super\");\n if (_method && \"function\" === typeof _method) _super = _method;\n let overwritingMethodWrapper = /* @__PURE__ */ __name(function() {\n if (!flag(this, \"lockSsfi\")) {\n flag(this, \"ssfi\", overwritingMethodWrapper);\n }\n let origLockSsfi = flag(this, \"lockSsfi\");\n flag(this, \"lockSsfi\", true);\n let result = method(_super).apply(this, arguments);\n flag(this, \"lockSsfi\", origLockSsfi);\n if (result !== void 0) {\n return result;\n }\n let newAssertion = new Assertion();\n transferFlags(this, newAssertion);\n return newAssertion;\n }, \"overwritingMethodWrapper\");\n addLengthGuard(overwritingMethodWrapper, name, false);\n ctx[name] = proxify(overwritingMethodWrapper, name);\n}\n__name(overwriteMethod, \"overwriteMethod\");\n\n// lib/chai/utils/addChainableMethod.js\nvar canSetPrototype = typeof Object.setPrototypeOf === \"function\";\nvar testFn = /* @__PURE__ */ __name(function() {\n}, \"testFn\");\nvar excludeNames = Object.getOwnPropertyNames(testFn).filter(function(name) {\n let propDesc = Object.getOwnPropertyDescriptor(testFn, name);\n if (typeof propDesc !== \"object\") return true;\n return !propDesc.configurable;\n});\nvar call = Function.prototype.call;\nvar apply = Function.prototype.apply;\nfunction addChainableMethod(ctx, name, method, chainingBehavior) {\n if (typeof chainingBehavior !== \"function\") {\n chainingBehavior = /* @__PURE__ */ __name(function() {\n }, \"chainingBehavior\");\n }\n let chainableBehavior = {\n method,\n chainingBehavior\n };\n if (!ctx.__methods) {\n ctx.__methods = {};\n }\n ctx.__methods[name] = chainableBehavior;\n Object.defineProperty(ctx, name, {\n get: /* @__PURE__ */ __name(function chainableMethodGetter() {\n chainableBehavior.chainingBehavior.call(this);\n let chainableMethodWrapper = /* @__PURE__ */ __name(function() {\n if (!flag(this, \"lockSsfi\")) {\n flag(this, \"ssfi\", chainableMethodWrapper);\n }\n let result = chainableBehavior.method.apply(this, arguments);\n if (result !== void 0) {\n return result;\n }\n let newAssertion = new Assertion();\n transferFlags(this, newAssertion);\n return newAssertion;\n }, \"chainableMethodWrapper\");\n addLengthGuard(chainableMethodWrapper, name, true);\n if (canSetPrototype) {\n let prototype = Object.create(this);\n prototype.call = call;\n prototype.apply = apply;\n Object.setPrototypeOf(chainableMethodWrapper, prototype);\n } else {\n let asserterNames = Object.getOwnPropertyNames(ctx);\n asserterNames.forEach(function(asserterName) {\n if (excludeNames.indexOf(asserterName) !== -1) {\n return;\n }\n let pd = Object.getOwnPropertyDescriptor(ctx, asserterName);\n Object.defineProperty(chainableMethodWrapper, asserterName, pd);\n });\n }\n transferFlags(this, chainableMethodWrapper);\n return proxify(chainableMethodWrapper);\n }, \"chainableMethodGetter\"),\n configurable: true\n });\n}\n__name(addChainableMethod, \"addChainableMethod\");\n\n// lib/chai/utils/overwriteChainableMethod.js\nfunction overwriteChainableMethod(ctx, name, method, chainingBehavior) {\n let chainableBehavior = ctx.__methods[name];\n let _chainingBehavior = chainableBehavior.chainingBehavior;\n chainableBehavior.chainingBehavior = /* @__PURE__ */ __name(function overwritingChainableMethodGetter() {\n let result = chainingBehavior(_chainingBehavior).call(this);\n if (result !== void 0) {\n return result;\n }\n let newAssertion = new Assertion();\n transferFlags(this, newAssertion);\n return newAssertion;\n }, \"overwritingChainableMethodGetter\");\n let _method = chainableBehavior.method;\n chainableBehavior.method = /* @__PURE__ */ __name(function overwritingChainableMethodWrapper() {\n let result = method(_method).apply(this, arguments);\n if (result !== void 0) {\n return result;\n }\n let newAssertion = new Assertion();\n transferFlags(this, newAssertion);\n return newAssertion;\n }, \"overwritingChainableMethodWrapper\");\n}\n__name(overwriteChainableMethod, \"overwriteChainableMethod\");\n\n// lib/chai/utils/compareByInspect.js\nfunction compareByInspect(a, b) {\n return inspect2(a) < inspect2(b) ? -1 : 1;\n}\n__name(compareByInspect, \"compareByInspect\");\n\n// lib/chai/utils/getOwnEnumerablePropertySymbols.js\nfunction getOwnEnumerablePropertySymbols(obj) {\n if (typeof Object.getOwnPropertySymbols !== \"function\") return [];\n return Object.getOwnPropertySymbols(obj).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(obj, sym).enumerable;\n });\n}\n__name(getOwnEnumerablePropertySymbols, \"getOwnEnumerablePropertySymbols\");\n\n// lib/chai/utils/getOwnEnumerableProperties.js\nfunction getOwnEnumerableProperties(obj) {\n return Object.keys(obj).concat(getOwnEnumerablePropertySymbols(obj));\n}\n__name(getOwnEnumerableProperties, \"getOwnEnumerableProperties\");\n\n// lib/chai/utils/isNaN.js\nvar isNaN2 = Number.isNaN;\n\n// lib/chai/utils/getOperator.js\nfunction isObjectType(obj) {\n let objectType = type(obj);\n let objectTypes = [\"Array\", \"Object\", \"Function\"];\n return objectTypes.indexOf(objectType) !== -1;\n}\n__name(isObjectType, \"isObjectType\");\nfunction getOperator(obj, args) {\n let operator = flag(obj, \"operator\");\n let negate = flag(obj, \"negate\");\n let expected = args[3];\n let msg = negate ? args[2] : args[1];\n if (operator) {\n return operator;\n }\n if (typeof msg === \"function\") msg = msg();\n msg = msg || \"\";\n if (!msg) {\n return void 0;\n }\n if (/\\shave\\s/.test(msg)) {\n return void 0;\n }\n let isObject = isObjectType(expected);\n if (/\\snot\\s/.test(msg)) {\n return isObject ? \"notDeepStrictEqual\" : \"notStrictEqual\";\n }\n return isObject ? \"deepStrictEqual\" : \"strictEqual\";\n}\n__name(getOperator, \"getOperator\");\n\n// lib/chai/utils/index.js\nfunction getName(fn) {\n return fn.name;\n}\n__name(getName, \"getName\");\nfunction isRegExp2(obj) {\n return Object.prototype.toString.call(obj) === \"[object RegExp]\";\n}\n__name(isRegExp2, \"isRegExp\");\nfunction isNumeric(obj) {\n return [\"Number\", \"BigInt\"].includes(type(obj));\n}\n__name(isNumeric, \"isNumeric\");\n\n// lib/chai/core/assertions.js\nvar { flag: flag2 } = utils_exports;\n[\n \"to\",\n \"be\",\n \"been\",\n \"is\",\n \"and\",\n \"has\",\n \"have\",\n \"with\",\n \"that\",\n \"which\",\n \"at\",\n \"of\",\n \"same\",\n \"but\",\n \"does\",\n \"still\",\n \"also\"\n].forEach(function(chain) {\n Assertion.addProperty(chain);\n});\nAssertion.addProperty(\"not\", function() {\n flag2(this, \"negate\", true);\n});\nAssertion.addProperty(\"deep\", function() {\n flag2(this, \"deep\", true);\n});\nAssertion.addProperty(\"nested\", function() {\n flag2(this, \"nested\", true);\n});\nAssertion.addProperty(\"own\", function() {\n flag2(this, \"own\", true);\n});\nAssertion.addProperty(\"ordered\", function() {\n flag2(this, \"ordered\", true);\n});\nAssertion.addProperty(\"any\", function() {\n flag2(this, \"any\", true);\n flag2(this, \"all\", false);\n});\nAssertion.addProperty(\"all\", function() {\n flag2(this, \"all\", true);\n flag2(this, \"any\", false);\n});\nvar functionTypes = {\n function: [\n \"function\",\n \"asyncfunction\",\n \"generatorfunction\",\n \"asyncgeneratorfunction\"\n ],\n asyncfunction: [\"asyncfunction\", \"asyncgeneratorfunction\"],\n generatorfunction: [\"generatorfunction\", \"asyncgeneratorfunction\"],\n asyncgeneratorfunction: [\"asyncgeneratorfunction\"]\n};\nfunction an(type3, msg) {\n if (msg) flag2(this, \"message\", msg);\n type3 = type3.toLowerCase();\n let obj = flag2(this, \"object\"), article = ~[\"a\", \"e\", \"i\", \"o\", \"u\"].indexOf(type3.charAt(0)) ? \"an \" : \"a \";\n const detectedType = type(obj).toLowerCase();\n if (functionTypes[\"function\"].includes(type3)) {\n this.assert(\n functionTypes[type3].includes(detectedType),\n \"expected #{this} to be \" + article + type3,\n \"expected #{this} not to be \" + article + type3\n );\n } else {\n this.assert(\n type3 === detectedType,\n \"expected #{this} to be \" + article + type3,\n \"expected #{this} not to be \" + article + type3\n );\n }\n}\n__name(an, \"an\");\nAssertion.addChainableMethod(\"an\", an);\nAssertion.addChainableMethod(\"a\", an);\nfunction SameValueZero(a, b) {\n return isNaN2(a) && isNaN2(b) || a === b;\n}\n__name(SameValueZero, \"SameValueZero\");\nfunction includeChainingBehavior() {\n flag2(this, \"contains\", true);\n}\n__name(includeChainingBehavior, \"includeChainingBehavior\");\nfunction include(val, msg) {\n if (msg) flag2(this, \"message\", msg);\n 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;\n flagMsg = flagMsg ? flagMsg + \": \" : \"\";\n let included = false;\n switch (objType) {\n case \"string\":\n included = obj.indexOf(val) !== -1;\n break;\n case \"weakset\":\n if (isDeep) {\n throw new AssertionError(\n flagMsg + \"unable to use .deep.include with WeakSet\",\n void 0,\n ssfi\n );\n }\n included = obj.has(val);\n break;\n case \"map\":\n obj.forEach(function(item) {\n included = included || isEql(item, val);\n });\n break;\n case \"set\":\n if (isDeep) {\n obj.forEach(function(item) {\n included = included || isEql(item, val);\n });\n } else {\n included = obj.has(val);\n }\n break;\n case \"array\":\n if (isDeep) {\n included = obj.some(function(item) {\n return isEql(item, val);\n });\n } else {\n included = obj.indexOf(val) !== -1;\n }\n break;\n default: {\n if (val !== Object(val)) {\n throw new AssertionError(\n 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(),\n void 0,\n ssfi\n );\n }\n let props = Object.keys(val);\n let firstErr = null;\n let numErrs = 0;\n props.forEach(function(prop) {\n let propAssertion = new Assertion(obj);\n transferFlags(this, propAssertion, true);\n flag2(propAssertion, \"lockSsfi\", true);\n if (!negate || props.length === 1) {\n propAssertion.property(prop, val[prop]);\n return;\n }\n try {\n propAssertion.property(prop, val[prop]);\n } catch (err) {\n if (!check_error_exports.compatibleConstructor(err, AssertionError)) {\n throw err;\n }\n if (firstErr === null) firstErr = err;\n numErrs++;\n }\n }, this);\n if (negate && props.length > 1 && numErrs === props.length) {\n throw firstErr;\n }\n return;\n }\n }\n this.assert(\n included,\n \"expected #{this} to \" + descriptor + \"include \" + inspect2(val),\n \"expected #{this} to not \" + descriptor + \"include \" + inspect2(val)\n );\n}\n__name(include, \"include\");\nAssertion.addChainableMethod(\"include\", include, includeChainingBehavior);\nAssertion.addChainableMethod(\"contain\", include, includeChainingBehavior);\nAssertion.addChainableMethod(\"contains\", include, includeChainingBehavior);\nAssertion.addChainableMethod(\"includes\", include, includeChainingBehavior);\nAssertion.addProperty(\"ok\", function() {\n this.assert(\n flag2(this, \"object\"),\n \"expected #{this} to be truthy\",\n \"expected #{this} to be falsy\"\n );\n});\nAssertion.addProperty(\"true\", function() {\n this.assert(\n true === flag2(this, \"object\"),\n \"expected #{this} to be true\",\n \"expected #{this} to be false\",\n flag2(this, \"negate\") ? false : true\n );\n});\nAssertion.addProperty(\"numeric\", function() {\n const object = flag2(this, \"object\");\n this.assert(\n [\"Number\", \"BigInt\"].includes(type(object)),\n \"expected #{this} to be numeric\",\n \"expected #{this} to not be numeric\",\n flag2(this, \"negate\") ? false : true\n );\n});\nAssertion.addProperty(\"callable\", function() {\n const val = flag2(this, \"object\");\n const ssfi = flag2(this, \"ssfi\");\n const message = flag2(this, \"message\");\n const msg = message ? `${message}: ` : \"\";\n const negate = flag2(this, \"negate\");\n const assertionMessage = negate ? `${msg}expected ${inspect2(val)} not to be a callable function` : `${msg}expected ${inspect2(val)} to be a callable function`;\n const isCallable = [\n \"Function\",\n \"AsyncFunction\",\n \"GeneratorFunction\",\n \"AsyncGeneratorFunction\"\n ].includes(type(val));\n if (isCallable && negate || !isCallable && !negate) {\n throw new AssertionError(assertionMessage, void 0, ssfi);\n }\n});\nAssertion.addProperty(\"false\", function() {\n this.assert(\n false === flag2(this, \"object\"),\n \"expected #{this} to be false\",\n \"expected #{this} to be true\",\n flag2(this, \"negate\") ? true : false\n );\n});\nAssertion.addProperty(\"null\", function() {\n this.assert(\n null === flag2(this, \"object\"),\n \"expected #{this} to be null\",\n \"expected #{this} not to be null\"\n );\n});\nAssertion.addProperty(\"undefined\", function() {\n this.assert(\n void 0 === flag2(this, \"object\"),\n \"expected #{this} to be undefined\",\n \"expected #{this} not to be undefined\"\n );\n});\nAssertion.addProperty(\"NaN\", function() {\n this.assert(\n isNaN2(flag2(this, \"object\")),\n \"expected #{this} to be NaN\",\n \"expected #{this} not to be NaN\"\n );\n});\nfunction assertExist() {\n let val = flag2(this, \"object\");\n this.assert(\n val !== null && val !== void 0,\n \"expected #{this} to exist\",\n \"expected #{this} to not exist\"\n );\n}\n__name(assertExist, \"assertExist\");\nAssertion.addProperty(\"exist\", assertExist);\nAssertion.addProperty(\"exists\", assertExist);\nAssertion.addProperty(\"empty\", function() {\n let val = flag2(this, \"object\"), ssfi = flag2(this, \"ssfi\"), flagMsg = flag2(this, \"message\"), itemsCount;\n flagMsg = flagMsg ? flagMsg + \": \" : \"\";\n switch (type(val).toLowerCase()) {\n case \"array\":\n case \"string\":\n itemsCount = val.length;\n break;\n case \"map\":\n case \"set\":\n itemsCount = val.size;\n break;\n case \"weakmap\":\n case \"weakset\":\n throw new AssertionError(\n flagMsg + \".empty was passed a weak collection\",\n void 0,\n ssfi\n );\n case \"function\": {\n const msg = flagMsg + \".empty was passed a function \" + getName(val);\n throw new AssertionError(msg.trim(), void 0, ssfi);\n }\n default:\n if (val !== Object(val)) {\n throw new AssertionError(\n flagMsg + \".empty was passed non-string primitive \" + inspect2(val),\n void 0,\n ssfi\n );\n }\n itemsCount = Object.keys(val).length;\n }\n this.assert(\n 0 === itemsCount,\n \"expected #{this} to be empty\",\n \"expected #{this} not to be empty\"\n );\n});\nfunction checkArguments() {\n let obj = flag2(this, \"object\"), type3 = type(obj);\n this.assert(\n \"Arguments\" === type3,\n \"expected #{this} to be arguments but got \" + type3,\n \"expected #{this} to not be arguments\"\n );\n}\n__name(checkArguments, \"checkArguments\");\nAssertion.addProperty(\"arguments\", checkArguments);\nAssertion.addProperty(\"Arguments\", checkArguments);\nfunction assertEqual(val, msg) {\n if (msg) flag2(this, \"message\", msg);\n let obj = flag2(this, \"object\");\n if (flag2(this, \"deep\")) {\n let prevLockSsfi = flag2(this, \"lockSsfi\");\n flag2(this, \"lockSsfi\", true);\n this.eql(val);\n flag2(this, \"lockSsfi\", prevLockSsfi);\n } else {\n this.assert(\n val === obj,\n \"expected #{this} to equal #{exp}\",\n \"expected #{this} to not equal #{exp}\",\n val,\n this._obj,\n true\n );\n }\n}\n__name(assertEqual, \"assertEqual\");\nAssertion.addMethod(\"equal\", assertEqual);\nAssertion.addMethod(\"equals\", assertEqual);\nAssertion.addMethod(\"eq\", assertEqual);\nfunction assertEql(obj, msg) {\n if (msg) flag2(this, \"message\", msg);\n let eql = flag2(this, \"eql\");\n this.assert(\n eql(obj, flag2(this, \"object\")),\n \"expected #{this} to deeply equal #{exp}\",\n \"expected #{this} to not deeply equal #{exp}\",\n obj,\n this._obj,\n true\n );\n}\n__name(assertEql, \"assertEql\");\nAssertion.addMethod(\"eql\", assertEql);\nAssertion.addMethod(\"eqls\", assertEql);\nfunction assertAbove(n, msg) {\n if (msg) flag2(this, \"message\", msg);\n 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();\n if (doLength && objType !== \"map\" && objType !== \"set\") {\n new Assertion(obj, flagMsg, ssfi, true).to.have.property(\"length\");\n }\n if (!doLength && objType === \"date\" && nType !== \"date\") {\n throw new AssertionError(\n msgPrefix + \"the argument to above must be a date\",\n void 0,\n ssfi\n );\n } else if (!isNumeric(n) && (doLength || isNumeric(obj))) {\n throw new AssertionError(\n msgPrefix + \"the argument to above must be a number\",\n void 0,\n ssfi\n );\n } else if (!doLength && objType !== \"date\" && !isNumeric(obj)) {\n let printObj = objType === \"string\" ? \"'\" + obj + \"'\" : obj;\n throw new AssertionError(\n msgPrefix + \"expected \" + printObj + \" to be a number or a date\",\n void 0,\n ssfi\n );\n }\n if (doLength) {\n let descriptor = \"length\", itemsCount;\n if (objType === \"map\" || objType === \"set\") {\n descriptor = \"size\";\n itemsCount = obj.size;\n } else {\n itemsCount = obj.length;\n }\n this.assert(\n itemsCount > n,\n \"expected #{this} to have a \" + descriptor + \" above #{exp} but got #{act}\",\n \"expected #{this} to not have a \" + descriptor + \" above #{exp}\",\n n,\n itemsCount\n );\n } else {\n this.assert(\n obj > n,\n \"expected #{this} to be above #{exp}\",\n \"expected #{this} to be at most #{exp}\",\n n\n );\n }\n}\n__name(assertAbove, \"assertAbove\");\nAssertion.addMethod(\"above\", assertAbove);\nAssertion.addMethod(\"gt\", assertAbove);\nAssertion.addMethod(\"greaterThan\", assertAbove);\nfunction assertLeast(n, msg) {\n if (msg) flag2(this, \"message\", msg);\n 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;\n if (doLength && objType !== \"map\" && objType !== \"set\") {\n new Assertion(obj, flagMsg, ssfi, true).to.have.property(\"length\");\n }\n if (!doLength && objType === \"date\" && nType !== \"date\") {\n errorMessage = msgPrefix + \"the argument to least must be a date\";\n } else if (!isNumeric(n) && (doLength || isNumeric(obj))) {\n errorMessage = msgPrefix + \"the argument to least must be a number\";\n } else if (!doLength && objType !== \"date\" && !isNumeric(obj)) {\n let printObj = objType === \"string\" ? \"'\" + obj + \"'\" : obj;\n errorMessage = msgPrefix + \"expected \" + printObj + \" to be a number or a date\";\n } else {\n shouldThrow = false;\n }\n if (shouldThrow) {\n throw new AssertionError(errorMessage, void 0, ssfi);\n }\n if (doLength) {\n let descriptor = \"length\", itemsCount;\n if (objType === \"map\" || objType === \"set\") {\n descriptor = \"size\";\n itemsCount = obj.size;\n } else {\n itemsCount = obj.length;\n }\n this.assert(\n itemsCount >= n,\n \"expected #{this} to have a \" + descriptor + \" at least #{exp} but got #{act}\",\n \"expected #{this} to have a \" + descriptor + \" below #{exp}\",\n n,\n itemsCount\n );\n } else {\n this.assert(\n obj >= n,\n \"expected #{this} to be at least #{exp}\",\n \"expected #{this} to be below #{exp}\",\n n\n );\n }\n}\n__name(assertLeast, \"assertLeast\");\nAssertion.addMethod(\"least\", assertLeast);\nAssertion.addMethod(\"gte\", assertLeast);\nAssertion.addMethod(\"greaterThanOrEqual\", assertLeast);\nfunction assertBelow(n, msg) {\n if (msg) flag2(this, \"message\", msg);\n 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;\n if (doLength && objType !== \"map\" && objType !== \"set\") {\n new Assertion(obj, flagMsg, ssfi, true).to.have.property(\"length\");\n }\n if (!doLength && objType === \"date\" && nType !== \"date\") {\n errorMessage = msgPrefix + \"the argument to below must be a date\";\n } else if (!isNumeric(n) && (doLength || isNumeric(obj))) {\n errorMessage = msgPrefix + \"the argument to below must be a number\";\n } else if (!doLength && objType !== \"date\" && !isNumeric(obj)) {\n let printObj = objType === \"string\" ? \"'\" + obj + \"'\" : obj;\n errorMessage = msgPrefix + \"expected \" + printObj + \" to be a number or a date\";\n } else {\n shouldThrow = false;\n }\n if (shouldThrow) {\n throw new AssertionError(errorMessage, void 0, ssfi);\n }\n if (doLength) {\n let descriptor = \"length\", itemsCount;\n if (objType === \"map\" || objType === \"set\") {\n descriptor = \"size\";\n itemsCount = obj.size;\n } else {\n itemsCount = obj.length;\n }\n this.assert(\n itemsCount < n,\n \"expected #{this} to have a \" + descriptor + \" below #{exp} but got #{act}\",\n \"expected #{this} to not have a \" + descriptor + \" below #{exp}\",\n n,\n itemsCount\n );\n } else {\n this.assert(\n obj < n,\n \"expected #{this} to be below #{exp}\",\n \"expected #{this} to be at least #{exp}\",\n n\n );\n }\n}\n__name(assertBelow, \"assertBelow\");\nAssertion.addMethod(\"below\", assertBelow);\nAssertion.addMethod(\"lt\", assertBelow);\nAssertion.addMethod(\"lessThan\", assertBelow);\nfunction assertMost(n, msg) {\n if (msg) flag2(this, \"message\", msg);\n 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;\n if (doLength && objType !== \"map\" && objType !== \"set\") {\n new Assertion(obj, flagMsg, ssfi, true).to.have.property(\"length\");\n }\n if (!doLength && objType === \"date\" && nType !== \"date\") {\n errorMessage = msgPrefix + \"the argument to most must be a date\";\n } else if (!isNumeric(n) && (doLength || isNumeric(obj))) {\n errorMessage = msgPrefix + \"the argument to most must be a number\";\n } else if (!doLength && objType !== \"date\" && !isNumeric(obj)) {\n let printObj = objType === \"string\" ? \"'\" + obj + \"'\" : obj;\n errorMessage = msgPrefix + \"expected \" + printObj + \" to be a number or a date\";\n } else {\n shouldThrow = false;\n }\n if (shouldThrow) {\n throw new AssertionError(errorMessage, void 0, ssfi);\n }\n if (doLength) {\n let descriptor = \"length\", itemsCount;\n if (objType === \"map\" || objType === \"set\") {\n descriptor = \"size\";\n itemsCount = obj.size;\n } else {\n itemsCount = obj.length;\n }\n this.assert(\n itemsCount <= n,\n \"expected #{this} to have a \" + descriptor + \" at most #{exp} but got #{act}\",\n \"expected #{this} to have a \" + descriptor + \" above #{exp}\",\n n,\n itemsCount\n );\n } else {\n this.assert(\n obj <= n,\n \"expected #{this} to be at most #{exp}\",\n \"expected #{this} to be above #{exp}\",\n n\n );\n }\n}\n__name(assertMost, \"assertMost\");\nAssertion.addMethod(\"most\", assertMost);\nAssertion.addMethod(\"lte\", assertMost);\nAssertion.addMethod(\"lessThanOrEqual\", assertMost);\nAssertion.addMethod(\"within\", function(start, finish, msg) {\n if (msg) flag2(this, \"message\", msg);\n 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;\n if (doLength && objType !== \"map\" && objType !== \"set\") {\n new Assertion(obj, flagMsg, ssfi, true).to.have.property(\"length\");\n }\n if (!doLength && objType === \"date\" && (startType !== \"date\" || finishType !== \"date\")) {\n errorMessage = msgPrefix + \"the arguments to within must be dates\";\n } else if ((!isNumeric(start) || !isNumeric(finish)) && (doLength || isNumeric(obj))) {\n errorMessage = msgPrefix + \"the arguments to within must be numbers\";\n } else if (!doLength && objType !== \"date\" && !isNumeric(obj)) {\n let printObj = objType === \"string\" ? \"'\" + obj + \"'\" : obj;\n errorMessage = msgPrefix + \"expected \" + printObj + \" to be a number or a date\";\n } else {\n shouldThrow = false;\n }\n if (shouldThrow) {\n throw new AssertionError(errorMessage, void 0, ssfi);\n }\n if (doLength) {\n let descriptor = \"length\", itemsCount;\n if (objType === \"map\" || objType === \"set\") {\n descriptor = \"size\";\n itemsCount = obj.size;\n } else {\n itemsCount = obj.length;\n }\n this.assert(\n itemsCount >= start && itemsCount <= finish,\n \"expected #{this} to have a \" + descriptor + \" within \" + range,\n \"expected #{this} to not have a \" + descriptor + \" within \" + range\n );\n } else {\n this.assert(\n obj >= start && obj <= finish,\n \"expected #{this} to be within \" + range,\n \"expected #{this} to not be within \" + range\n );\n }\n});\nfunction assertInstanceOf(constructor, msg) {\n if (msg) flag2(this, \"message\", msg);\n let target = flag2(this, \"object\");\n let ssfi = flag2(this, \"ssfi\");\n let flagMsg = flag2(this, \"message\");\n let isInstanceOf;\n try {\n isInstanceOf = target instanceof constructor;\n } catch (err) {\n if (err instanceof TypeError) {\n flagMsg = flagMsg ? flagMsg + \": \" : \"\";\n throw new AssertionError(\n flagMsg + \"The instanceof assertion needs a constructor but \" + type(constructor) + \" was given.\",\n void 0,\n ssfi\n );\n }\n throw err;\n }\n let name = getName(constructor);\n if (name == null) {\n name = \"an unnamed constructor\";\n }\n this.assert(\n isInstanceOf,\n \"expected #{this} to be an instance of \" + name,\n \"expected #{this} to not be an instance of \" + name\n );\n}\n__name(assertInstanceOf, \"assertInstanceOf\");\nAssertion.addMethod(\"instanceof\", assertInstanceOf);\nAssertion.addMethod(\"instanceOf\", assertInstanceOf);\nfunction assertProperty(name, val, msg) {\n if (msg) flag2(this, \"message\", msg);\n let isNested = flag2(this, \"nested\"), isOwn = flag2(this, \"own\"), flagMsg = flag2(this, \"message\"), obj = flag2(this, \"object\"), ssfi = flag2(this, \"ssfi\"), nameType = typeof name;\n flagMsg = flagMsg ? flagMsg + \": \" : \"\";\n if (isNested) {\n if (nameType !== \"string\") {\n throw new AssertionError(\n flagMsg + \"the argument to property must be a string when using nested syntax\",\n void 0,\n ssfi\n );\n }\n } else {\n if (nameType !== \"string\" && nameType !== \"number\" && nameType !== \"symbol\") {\n throw new AssertionError(\n flagMsg + \"the argument to property must be a string, number, or symbol\",\n void 0,\n ssfi\n );\n }\n }\n if (isNested && isOwn) {\n throw new AssertionError(\n flagMsg + 'The \"nested\" and \"own\" flags cannot be combined.',\n void 0,\n ssfi\n );\n }\n if (obj === null || obj === void 0) {\n throw new AssertionError(\n flagMsg + \"Target cannot be null or undefined.\",\n void 0,\n ssfi\n );\n }\n 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;\n let descriptor = \"\";\n if (isDeep) descriptor += \"deep \";\n if (isOwn) descriptor += \"own \";\n if (isNested) descriptor += \"nested \";\n descriptor += \"property \";\n let hasProperty2;\n if (isOwn) hasProperty2 = Object.prototype.hasOwnProperty.call(obj, name);\n else if (isNested) hasProperty2 = pathInfo.exists;\n else hasProperty2 = hasProperty(obj, name);\n if (!negate || arguments.length === 1) {\n this.assert(\n hasProperty2,\n \"expected #{this} to have \" + descriptor + inspect2(name),\n \"expected #{this} to not have \" + descriptor + inspect2(name)\n );\n }\n if (arguments.length > 1) {\n this.assert(\n hasProperty2 && isEql(val, value),\n \"expected #{this} to have \" + descriptor + inspect2(name) + \" of #{exp}, but got #{act}\",\n \"expected #{this} to not have \" + descriptor + inspect2(name) + \" of #{act}\",\n val,\n value\n );\n }\n flag2(this, \"object\", value);\n}\n__name(assertProperty, \"assertProperty\");\nAssertion.addMethod(\"property\", assertProperty);\nfunction assertOwnProperty(_name, _value, _msg) {\n flag2(this, \"own\", true);\n assertProperty.apply(this, arguments);\n}\n__name(assertOwnProperty, \"assertOwnProperty\");\nAssertion.addMethod(\"ownProperty\", assertOwnProperty);\nAssertion.addMethod(\"haveOwnProperty\", assertOwnProperty);\nfunction assertOwnPropertyDescriptor(name, descriptor, msg) {\n if (typeof descriptor === \"string\") {\n msg = descriptor;\n descriptor = null;\n }\n if (msg) flag2(this, \"message\", msg);\n let obj = flag2(this, \"object\");\n let actualDescriptor = Object.getOwnPropertyDescriptor(Object(obj), name);\n let eql = flag2(this, \"eql\");\n if (actualDescriptor && descriptor) {\n this.assert(\n eql(descriptor, actualDescriptor),\n \"expected the own property descriptor for \" + inspect2(name) + \" on #{this} to match \" + inspect2(descriptor) + \", got \" + inspect2(actualDescriptor),\n \"expected the own property descriptor for \" + inspect2(name) + \" on #{this} to not match \" + inspect2(descriptor),\n descriptor,\n actualDescriptor,\n true\n );\n } else {\n this.assert(\n actualDescriptor,\n \"expected #{this} to have an own property descriptor for \" + inspect2(name),\n \"expected #{this} to not have an own property descriptor for \" + inspect2(name)\n );\n }\n flag2(this, \"object\", actualDescriptor);\n}\n__name(assertOwnPropertyDescriptor, \"assertOwnPropertyDescriptor\");\nAssertion.addMethod(\"ownPropertyDescriptor\", assertOwnPropertyDescriptor);\nAssertion.addMethod(\"haveOwnPropertyDescriptor\", assertOwnPropertyDescriptor);\nfunction assertLengthChain() {\n flag2(this, \"doLength\", true);\n}\n__name(assertLengthChain, \"assertLengthChain\");\nfunction assertLength(n, msg) {\n if (msg) flag2(this, \"message\", msg);\n let obj = flag2(this, \"object\"), objType = type(obj).toLowerCase(), flagMsg = flag2(this, \"message\"), ssfi = flag2(this, \"ssfi\"), descriptor = \"length\", itemsCount;\n switch (objType) {\n case \"map\":\n case \"set\":\n descriptor = \"size\";\n itemsCount = obj.size;\n break;\n default:\n new Assertion(obj, flagMsg, ssfi, true).to.have.property(\"length\");\n itemsCount = obj.length;\n }\n this.assert(\n itemsCount == n,\n \"expected #{this} to have a \" + descriptor + \" of #{exp} but got #{act}\",\n \"expected #{this} to not have a \" + descriptor + \" of #{act}\",\n n,\n itemsCount\n );\n}\n__name(assertLength, \"assertLength\");\nAssertion.addChainableMethod(\"length\", assertLength, assertLengthChain);\nAssertion.addChainableMethod(\"lengthOf\", assertLength, assertLengthChain);\nfunction assertMatch(re, msg) {\n if (msg) flag2(this, \"message\", msg);\n let obj = flag2(this, \"object\");\n this.assert(\n re.exec(obj),\n \"expected #{this} to match \" + re,\n \"expected #{this} not to match \" + re\n );\n}\n__name(assertMatch, \"assertMatch\");\nAssertion.addMethod(\"match\", assertMatch);\nAssertion.addMethod(\"matches\", assertMatch);\nAssertion.addMethod(\"string\", function(str, msg) {\n if (msg) flag2(this, \"message\", msg);\n let obj = flag2(this, \"object\"), flagMsg = flag2(this, \"message\"), ssfi = flag2(this, \"ssfi\");\n new Assertion(obj, flagMsg, ssfi, true).is.a(\"string\");\n this.assert(\n ~obj.indexOf(str),\n \"expected #{this} to contain \" + inspect2(str),\n \"expected #{this} to not contain \" + inspect2(str)\n );\n});\nfunction assertKeys(keys) {\n let obj = flag2(this, \"object\"), objType = type(obj), keysType = type(keys), ssfi = flag2(this, \"ssfi\"), isDeep = flag2(this, \"deep\"), str, deepStr = \"\", actual, ok = true, flagMsg = flag2(this, \"message\");\n flagMsg = flagMsg ? flagMsg + \": \" : \"\";\n 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\";\n if (objType === \"Map\" || objType === \"Set\") {\n deepStr = isDeep ? \"deeply \" : \"\";\n actual = [];\n obj.forEach(function(val, key) {\n actual.push(key);\n });\n if (keysType !== \"Array\") {\n keys = Array.prototype.slice.call(arguments);\n }\n } else {\n actual = getOwnEnumerableProperties(obj);\n switch (keysType) {\n case \"Array\":\n if (arguments.length > 1) {\n throw new AssertionError(mixedArgsMsg, void 0, ssfi);\n }\n break;\n case \"Object\":\n if (arguments.length > 1) {\n throw new AssertionError(mixedArgsMsg, void 0, ssfi);\n }\n keys = Object.keys(keys);\n break;\n default:\n keys = Array.prototype.slice.call(arguments);\n }\n keys = keys.map(function(val) {\n return typeof val === \"symbol\" ? val : String(val);\n });\n }\n if (!keys.length) {\n throw new AssertionError(flagMsg + \"keys required\", void 0, ssfi);\n }\n let len = keys.length, any = flag2(this, \"any\"), all = flag2(this, \"all\"), expected = keys, isEql = isDeep ? flag2(this, \"eql\") : (val1, val2) => val1 === val2;\n if (!any && !all) {\n all = true;\n }\n if (any) {\n ok = expected.some(function(expectedKey) {\n return actual.some(function(actualKey) {\n return isEql(expectedKey, actualKey);\n });\n });\n }\n if (all) {\n ok = expected.every(function(expectedKey) {\n return actual.some(function(actualKey) {\n return isEql(expectedKey, actualKey);\n });\n });\n if (!flag2(this, \"contains\")) {\n ok = ok && keys.length == actual.length;\n }\n }\n if (len > 1) {\n keys = keys.map(function(key) {\n return inspect2(key);\n });\n let last = keys.pop();\n if (all) {\n str = keys.join(\", \") + \", and \" + last;\n }\n if (any) {\n str = keys.join(\", \") + \", or \" + last;\n }\n } else {\n str = inspect2(keys[0]);\n }\n str = (len > 1 ? \"keys \" : \"key \") + str;\n str = (flag2(this, \"contains\") ? \"contain \" : \"have \") + str;\n this.assert(\n ok,\n \"expected #{this} to \" + deepStr + str,\n \"expected #{this} to not \" + deepStr + str,\n expected.slice(0).sort(compareByInspect),\n actual.sort(compareByInspect),\n true\n );\n}\n__name(assertKeys, \"assertKeys\");\nAssertion.addMethod(\"keys\", assertKeys);\nAssertion.addMethod(\"key\", assertKeys);\nfunction assertThrows(errorLike, errMsgMatcher, msg) {\n if (msg) flag2(this, \"message\", msg);\n let obj = flag2(this, \"object\"), ssfi = flag2(this, \"ssfi\"), flagMsg = flag2(this, \"message\"), negate = flag2(this, \"negate\") || false;\n new Assertion(obj, flagMsg, ssfi, true).is.a(\"function\");\n if (isRegExp2(errorLike) || typeof errorLike === \"string\") {\n errMsgMatcher = errorLike;\n errorLike = null;\n }\n let caughtErr;\n let errorWasThrown = false;\n try {\n obj();\n } catch (err) {\n errorWasThrown = true;\n caughtErr = err;\n }\n let everyArgIsUndefined = errorLike === void 0 && errMsgMatcher === void 0;\n let everyArgIsDefined = Boolean(errorLike && errMsgMatcher);\n let errorLikeFail = false;\n let errMsgMatcherFail = false;\n if (everyArgIsUndefined || !everyArgIsUndefined && !negate) {\n let errorLikeString = \"an error\";\n if (errorLike instanceof Error) {\n errorLikeString = \"#{exp}\";\n } else if (errorLike) {\n errorLikeString = check_error_exports.getConstructorName(errorLike);\n }\n let actual = caughtErr;\n if (caughtErr instanceof Error) {\n actual = caughtErr.toString();\n } else if (typeof caughtErr === \"string\") {\n actual = caughtErr;\n } else if (caughtErr && (typeof caughtErr === \"object\" || typeof caughtErr === \"function\")) {\n try {\n actual = check_error_exports.getConstructorName(caughtErr);\n } catch (_err) {\n }\n }\n this.assert(\n errorWasThrown,\n \"expected #{this} to throw \" + errorLikeString,\n \"expected #{this} to not throw an error but #{act} was thrown\",\n errorLike && errorLike.toString(),\n actual\n );\n }\n if (errorLike && caughtErr) {\n if (errorLike instanceof Error) {\n let isCompatibleInstance = check_error_exports.compatibleInstance(\n caughtErr,\n errorLike\n );\n if (isCompatibleInstance === negate) {\n if (everyArgIsDefined && negate) {\n errorLikeFail = true;\n } else {\n this.assert(\n negate,\n \"expected #{this} to throw #{exp} but #{act} was thrown\",\n \"expected #{this} to not throw #{exp}\" + (caughtErr && !negate ? \" but #{act} was thrown\" : \"\"),\n errorLike.toString(),\n caughtErr.toString()\n );\n }\n }\n }\n let isCompatibleConstructor = check_error_exports.compatibleConstructor(\n caughtErr,\n errorLike\n );\n if (isCompatibleConstructor === negate) {\n if (everyArgIsDefined && negate) {\n errorLikeFail = true;\n } else {\n this.assert(\n negate,\n \"expected #{this} to throw #{exp} but #{act} was thrown\",\n \"expected #{this} to not throw #{exp}\" + (caughtErr ? \" but #{act} was thrown\" : \"\"),\n errorLike instanceof Error ? errorLike.toString() : errorLike && check_error_exports.getConstructorName(errorLike),\n caughtErr instanceof Error ? caughtErr.toString() : caughtErr && check_error_exports.getConstructorName(caughtErr)\n );\n }\n }\n }\n if (caughtErr && errMsgMatcher !== void 0 && errMsgMatcher !== null) {\n let placeholder = \"including\";\n if (isRegExp2(errMsgMatcher)) {\n placeholder = \"matching\";\n }\n let isCompatibleMessage = check_error_exports.compatibleMessage(\n caughtErr,\n errMsgMatcher\n );\n if (isCompatibleMessage === negate) {\n if (everyArgIsDefined && negate) {\n errMsgMatcherFail = true;\n } else {\n this.assert(\n negate,\n \"expected #{this} to throw error \" + placeholder + \" #{exp} but got #{act}\",\n \"expected #{this} to throw error not \" + placeholder + \" #{exp}\",\n errMsgMatcher,\n check_error_exports.getMessage(caughtErr)\n );\n }\n }\n }\n if (errorLikeFail && errMsgMatcherFail) {\n this.assert(\n negate,\n \"expected #{this} to throw #{exp} but #{act} was thrown\",\n \"expected #{this} to not throw #{exp}\" + (caughtErr ? \" but #{act} was thrown\" : \"\"),\n errorLike instanceof Error ? errorLike.toString() : errorLike && check_error_exports.getConstructorName(errorLike),\n caughtErr instanceof Error ? caughtErr.toString() : caughtErr && check_error_exports.getConstructorName(caughtErr)\n );\n }\n flag2(this, \"object\", caughtErr);\n}\n__name(assertThrows, \"assertThrows\");\nAssertion.addMethod(\"throw\", assertThrows);\nAssertion.addMethod(\"throws\", assertThrows);\nAssertion.addMethod(\"Throw\", assertThrows);\nfunction respondTo(method, msg) {\n if (msg) flag2(this, \"message\", msg);\n let obj = flag2(this, \"object\"), itself = flag2(this, \"itself\"), context = \"function\" === typeof obj && !itself ? obj.prototype[method] : obj[method];\n this.assert(\n \"function\" === typeof context,\n \"expected #{this} to respond to \" + inspect2(method),\n \"expected #{this} to not respond to \" + inspect2(method)\n );\n}\n__name(respondTo, \"respondTo\");\nAssertion.addMethod(\"respondTo\", respondTo);\nAssertion.addMethod(\"respondsTo\", respondTo);\nAssertion.addProperty(\"itself\", function() {\n flag2(this, \"itself\", true);\n});\nfunction satisfy(matcher, msg) {\n if (msg) flag2(this, \"message\", msg);\n let obj = flag2(this, \"object\");\n let result = matcher(obj);\n this.assert(\n result,\n \"expected #{this} to satisfy \" + objDisplay(matcher),\n \"expected #{this} to not satisfy\" + objDisplay(matcher),\n flag2(this, \"negate\") ? false : true,\n result\n );\n}\n__name(satisfy, \"satisfy\");\nAssertion.addMethod(\"satisfy\", satisfy);\nAssertion.addMethod(\"satisfies\", satisfy);\nfunction closeTo(expected, delta, msg) {\n if (msg) flag2(this, \"message\", msg);\n let obj = flag2(this, \"object\"), flagMsg = flag2(this, \"message\"), ssfi = flag2(this, \"ssfi\");\n new Assertion(obj, flagMsg, ssfi, true).is.numeric;\n let message = \"A `delta` value is required for `closeTo`\";\n if (delta == void 0) {\n throw new AssertionError(\n flagMsg ? `${flagMsg}: ${message}` : message,\n void 0,\n ssfi\n );\n }\n new Assertion(delta, flagMsg, ssfi, true).is.numeric;\n message = \"A `expected` value is required for `closeTo`\";\n if (expected == void 0) {\n throw new AssertionError(\n flagMsg ? `${flagMsg}: ${message}` : message,\n void 0,\n ssfi\n );\n }\n new Assertion(expected, flagMsg, ssfi, true).is.numeric;\n const abs = /* @__PURE__ */ __name((x) => x < 0n ? -x : x, \"abs\");\n const strip = /* @__PURE__ */ __name((number) => parseFloat(parseFloat(number).toPrecision(12)), \"strip\");\n this.assert(\n strip(abs(obj - expected)) <= delta,\n \"expected #{this} to be close to \" + expected + \" +/- \" + delta,\n \"expected #{this} not to be close to \" + expected + \" +/- \" + delta\n );\n}\n__name(closeTo, \"closeTo\");\nAssertion.addMethod(\"closeTo\", closeTo);\nAssertion.addMethod(\"approximately\", closeTo);\nfunction isSubsetOf(_subset, _superset, cmp, contains, ordered) {\n let superset = Array.from(_superset);\n let subset = Array.from(_subset);\n if (!contains) {\n if (subset.length !== superset.length) return false;\n superset = superset.slice();\n }\n return subset.every(function(elem, idx) {\n if (ordered) return cmp ? cmp(elem, superset[idx]) : elem === superset[idx];\n if (!cmp) {\n let matchIdx = superset.indexOf(elem);\n if (matchIdx === -1) return false;\n if (!contains) superset.splice(matchIdx, 1);\n return true;\n }\n return superset.some(function(elem2, matchIdx) {\n if (!cmp(elem, elem2)) return false;\n if (!contains) superset.splice(matchIdx, 1);\n return true;\n });\n });\n}\n__name(isSubsetOf, \"isSubsetOf\");\nAssertion.addMethod(\"members\", function(subset, msg) {\n if (msg) flag2(this, \"message\", msg);\n let obj = flag2(this, \"object\"), flagMsg = flag2(this, \"message\"), ssfi = flag2(this, \"ssfi\");\n new Assertion(obj, flagMsg, ssfi, true).to.be.iterable;\n new Assertion(subset, flagMsg, ssfi, true).to.be.iterable;\n let contains = flag2(this, \"contains\");\n let ordered = flag2(this, \"ordered\");\n let subject, failMsg, failNegateMsg;\n if (contains) {\n subject = ordered ? \"an ordered superset\" : \"a superset\";\n failMsg = \"expected #{this} to be \" + subject + \" of #{exp}\";\n failNegateMsg = \"expected #{this} to not be \" + subject + \" of #{exp}\";\n } else {\n subject = ordered ? \"ordered members\" : \"members\";\n failMsg = \"expected #{this} to have the same \" + subject + \" as #{exp}\";\n failNegateMsg = \"expected #{this} to not have the same \" + subject + \" as #{exp}\";\n }\n let cmp = flag2(this, \"deep\") ? flag2(this, \"eql\") : void 0;\n this.assert(\n isSubsetOf(subset, obj, cmp, contains, ordered),\n failMsg,\n failNegateMsg,\n subset,\n obj,\n true\n );\n});\nAssertion.addProperty(\"iterable\", function(msg) {\n if (msg) flag2(this, \"message\", msg);\n let obj = flag2(this, \"object\");\n this.assert(\n obj != void 0 && obj[Symbol.iterator],\n \"expected #{this} to be an iterable\",\n \"expected #{this} to not be an iterable\",\n obj\n );\n});\nfunction oneOf(list, msg) {\n if (msg) flag2(this, \"message\", msg);\n 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\");\n new Assertion(list, flagMsg, ssfi, true).to.be.an(\"array\");\n if (contains) {\n this.assert(\n list.some(function(possibility) {\n return expected.indexOf(possibility) > -1;\n }),\n \"expected #{this} to contain one of #{exp}\",\n \"expected #{this} to not contain one of #{exp}\",\n list,\n expected\n );\n } else {\n if (isDeep) {\n this.assert(\n list.some(function(possibility) {\n return eql(expected, possibility);\n }),\n \"expected #{this} to deeply equal one of #{exp}\",\n \"expected #{this} to deeply equal one of #{exp}\",\n list,\n expected\n );\n } else {\n this.assert(\n list.indexOf(expected) > -1,\n \"expected #{this} to be one of #{exp}\",\n \"expected #{this} to not be one of #{exp}\",\n list,\n expected\n );\n }\n }\n}\n__name(oneOf, \"oneOf\");\nAssertion.addMethod(\"oneOf\", oneOf);\nfunction assertChanges(subject, prop, msg) {\n if (msg) flag2(this, \"message\", msg);\n let fn = flag2(this, \"object\"), flagMsg = flag2(this, \"message\"), ssfi = flag2(this, \"ssfi\");\n new Assertion(fn, flagMsg, ssfi, true).is.a(\"function\");\n let initial;\n if (!prop) {\n new Assertion(subject, flagMsg, ssfi, true).is.a(\"function\");\n initial = subject();\n } else {\n new Assertion(subject, flagMsg, ssfi, true).to.have.property(prop);\n initial = subject[prop];\n }\n fn();\n let final = prop === void 0 || prop === null ? subject() : subject[prop];\n let msgObj = prop === void 0 || prop === null ? initial : \".\" + prop;\n flag2(this, \"deltaMsgObj\", msgObj);\n flag2(this, \"initialDeltaValue\", initial);\n flag2(this, \"finalDeltaValue\", final);\n flag2(this, \"deltaBehavior\", \"change\");\n flag2(this, \"realDelta\", final !== initial);\n this.assert(\n initial !== final,\n \"expected \" + msgObj + \" to change\",\n \"expected \" + msgObj + \" to not change\"\n );\n}\n__name(assertChanges, \"assertChanges\");\nAssertion.addMethod(\"change\", assertChanges);\nAssertion.addMethod(\"changes\", assertChanges);\nfunction assertIncreases(subject, prop, msg) {\n if (msg) flag2(this, \"message\", msg);\n let fn = flag2(this, \"object\"), flagMsg = flag2(this, \"message\"), ssfi = flag2(this, \"ssfi\");\n new Assertion(fn, flagMsg, ssfi, true).is.a(\"function\");\n let initial;\n if (!prop) {\n new Assertion(subject, flagMsg, ssfi, true).is.a(\"function\");\n initial = subject();\n } else {\n new Assertion(subject, flagMsg, ssfi, true).to.have.property(prop);\n initial = subject[prop];\n }\n new Assertion(initial, flagMsg, ssfi, true).is.a(\"number\");\n fn();\n let final = prop === void 0 || prop === null ? subject() : subject[prop];\n let msgObj = prop === void 0 || prop === null ? initial : \".\" + prop;\n flag2(this, \"deltaMsgObj\", msgObj);\n flag2(this, \"initialDeltaValue\", initial);\n flag2(this, \"finalDeltaValue\", final);\n flag2(this, \"deltaBehavior\", \"increase\");\n flag2(this, \"realDelta\", final - initial);\n this.assert(\n final - initial > 0,\n \"expected \" + msgObj + \" to increase\",\n \"expected \" + msgObj + \" to not increase\"\n );\n}\n__name(assertIncreases, \"assertIncreases\");\nAssertion.addMethod(\"increase\", assertIncreases);\nAssertion.addMethod(\"increases\", assertIncreases);\nfunction assertDecreases(subject, prop, msg) {\n if (msg) flag2(this, \"message\", msg);\n let fn = flag2(this, \"object\"), flagMsg = flag2(this, \"message\"), ssfi = flag2(this, \"ssfi\");\n new Assertion(fn, flagMsg, ssfi, true).is.a(\"function\");\n let initial;\n if (!prop) {\n new Assertion(subject, flagMsg, ssfi, true).is.a(\"function\");\n initial = subject();\n } else {\n new Assertion(subject, flagMsg, ssfi, true).to.have.property(prop);\n initial = subject[prop];\n }\n new Assertion(initial, flagMsg, ssfi, true).is.a(\"number\");\n fn();\n let final = prop === void 0 || prop === null ? subject() : subject[prop];\n let msgObj = prop === void 0 || prop === null ? initial : \".\" + prop;\n flag2(this, \"deltaMsgObj\", msgObj);\n flag2(this, \"initialDeltaValue\", initial);\n flag2(this, \"finalDeltaValue\", final);\n flag2(this, \"deltaBehavior\", \"decrease\");\n flag2(this, \"realDelta\", initial - final);\n this.assert(\n final - initial < 0,\n \"expected \" + msgObj + \" to decrease\",\n \"expected \" + msgObj + \" to not decrease\"\n );\n}\n__name(assertDecreases, \"assertDecreases\");\nAssertion.addMethod(\"decrease\", assertDecreases);\nAssertion.addMethod(\"decreases\", assertDecreases);\nfunction assertDelta(delta, msg) {\n if (msg) flag2(this, \"message\", msg);\n let msgObj = flag2(this, \"deltaMsgObj\");\n let initial = flag2(this, \"initialDeltaValue\");\n let final = flag2(this, \"finalDeltaValue\");\n let behavior = flag2(this, \"deltaBehavior\");\n let realDelta = flag2(this, \"realDelta\");\n let expression;\n if (behavior === \"change\") {\n expression = Math.abs(final - initial) === Math.abs(delta);\n } else {\n expression = realDelta === Math.abs(delta);\n }\n this.assert(\n expression,\n \"expected \" + msgObj + \" to \" + behavior + \" by \" + delta,\n \"expected \" + msgObj + \" to not \" + behavior + \" by \" + delta\n );\n}\n__name(assertDelta, \"assertDelta\");\nAssertion.addMethod(\"by\", assertDelta);\nAssertion.addProperty(\"extensible\", function() {\n let obj = flag2(this, \"object\");\n let isExtensible = obj === Object(obj) && Object.isExtensible(obj);\n this.assert(\n isExtensible,\n \"expected #{this} to be extensible\",\n \"expected #{this} to not be extensible\"\n );\n});\nAssertion.addProperty(\"sealed\", function() {\n let obj = flag2(this, \"object\");\n let isSealed = obj === Object(obj) ? Object.isSealed(obj) : true;\n this.assert(\n isSealed,\n \"expected #{this} to be sealed\",\n \"expected #{this} to not be sealed\"\n );\n});\nAssertion.addProperty(\"frozen\", function() {\n let obj = flag2(this, \"object\");\n let isFrozen = obj === Object(obj) ? Object.isFrozen(obj) : true;\n this.assert(\n isFrozen,\n \"expected #{this} to be frozen\",\n \"expected #{this} to not be frozen\"\n );\n});\nAssertion.addProperty(\"finite\", function(_msg) {\n let obj = flag2(this, \"object\");\n this.assert(\n typeof obj === \"number\" && isFinite(obj),\n \"expected #{this} to be a finite number\",\n \"expected #{this} to not be a finite number\"\n );\n});\nfunction compareSubset(expected, actual) {\n if (expected === actual) {\n return true;\n }\n if (typeof actual !== typeof expected) {\n return false;\n }\n if (typeof expected !== \"object\" || expected === null) {\n return expected === actual;\n }\n if (!actual) {\n return false;\n }\n if (Array.isArray(expected)) {\n if (!Array.isArray(actual)) {\n return false;\n }\n return expected.every(function(exp) {\n return actual.some(function(act) {\n return compareSubset(exp, act);\n });\n });\n }\n if (expected instanceof Date) {\n if (actual instanceof Date) {\n return expected.getTime() === actual.getTime();\n } else {\n return false;\n }\n }\n return Object.keys(expected).every(function(key) {\n let expectedValue = expected[key];\n let actualValue = actual[key];\n if (typeof expectedValue === \"object\" && expectedValue !== null && actualValue !== null) {\n return compareSubset(expectedValue, actualValue);\n }\n if (typeof expectedValue === \"function\") {\n return expectedValue(actualValue);\n }\n return actualValue === expectedValue;\n });\n}\n__name(compareSubset, \"compareSubset\");\nAssertion.addMethod(\"containSubset\", function(expected) {\n const actual = flag(this, \"object\");\n const showDiff = config.showDiff;\n this.assert(\n compareSubset(expected, actual),\n \"expected #{act} to contain subset #{exp}\",\n \"expected #{act} to not contain subset #{exp}\",\n expected,\n actual,\n showDiff\n );\n});\n\n// lib/chai/interface/expect.js\nfunction expect(val, message) {\n return new Assertion(val, message);\n}\n__name(expect, \"expect\");\nexpect.fail = function(actual, expected, message, operator) {\n if (arguments.length < 2) {\n message = actual;\n actual = void 0;\n }\n message = message || \"expect.fail()\";\n throw new AssertionError(\n message,\n {\n actual,\n expected,\n operator\n },\n expect.fail\n );\n};\n\n// lib/chai/interface/should.js\nvar should_exports = {};\n__export(should_exports, {\n Should: () => Should,\n should: () => should\n});\nfunction loadShould() {\n function shouldGetter() {\n if (this instanceof String || this instanceof Number || this instanceof Boolean || typeof Symbol === \"function\" && this instanceof Symbol || typeof BigInt === \"function\" && this instanceof BigInt) {\n return new Assertion(this.valueOf(), null, shouldGetter);\n }\n return new Assertion(this, null, shouldGetter);\n }\n __name(shouldGetter, \"shouldGetter\");\n function shouldSetter(value) {\n Object.defineProperty(this, \"should\", {\n value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n }\n __name(shouldSetter, \"shouldSetter\");\n Object.defineProperty(Object.prototype, \"should\", {\n set: shouldSetter,\n get: shouldGetter,\n configurable: true\n });\n let should2 = {};\n should2.fail = function(actual, expected, message, operator) {\n if (arguments.length < 2) {\n message = actual;\n actual = void 0;\n }\n message = message || \"should.fail()\";\n throw new AssertionError(\n message,\n {\n actual,\n expected,\n operator\n },\n should2.fail\n );\n };\n should2.equal = function(actual, expected, message) {\n new Assertion(actual, message).to.equal(expected);\n };\n should2.Throw = function(fn, errt, errs, msg) {\n new Assertion(fn, msg).to.Throw(errt, errs);\n };\n should2.exist = function(val, msg) {\n new Assertion(val, msg).to.exist;\n };\n should2.not = {};\n should2.not.equal = function(actual, expected, msg) {\n new Assertion(actual, msg).to.not.equal(expected);\n };\n should2.not.Throw = function(fn, errt, errs, msg) {\n new Assertion(fn, msg).to.not.Throw(errt, errs);\n };\n should2.not.exist = function(val, msg) {\n new Assertion(val, msg).to.not.exist;\n };\n should2[\"throw\"] = should2[\"Throw\"];\n should2.not[\"throw\"] = should2.not[\"Throw\"];\n return should2;\n}\n__name(loadShould, \"loadShould\");\nvar should = loadShould;\nvar Should = loadShould;\n\n// lib/chai/interface/assert.js\nfunction assert(express, errmsg) {\n let test2 = new Assertion(null, null, assert, true);\n test2.assert(express, errmsg, \"[ negation message unavailable ]\");\n}\n__name(assert, \"assert\");\nassert.fail = function(actual, expected, message, operator) {\n if (arguments.length < 2) {\n message = actual;\n actual = void 0;\n }\n message = message || \"assert.fail()\";\n throw new AssertionError(\n message,\n {\n actual,\n expected,\n operator\n },\n assert.fail\n );\n};\nassert.isOk = function(val, msg) {\n new Assertion(val, msg, assert.isOk, true).is.ok;\n};\nassert.isNotOk = function(val, msg) {\n new Assertion(val, msg, assert.isNotOk, true).is.not.ok;\n};\nassert.equal = function(act, exp, msg) {\n let test2 = new Assertion(act, msg, assert.equal, true);\n test2.assert(\n exp == flag(test2, \"object\"),\n \"expected #{this} to equal #{exp}\",\n \"expected #{this} to not equal #{act}\",\n exp,\n act,\n true\n );\n};\nassert.notEqual = function(act, exp, msg) {\n let test2 = new Assertion(act, msg, assert.notEqual, true);\n test2.assert(\n exp != flag(test2, \"object\"),\n \"expected #{this} to not equal #{exp}\",\n \"expected #{this} to equal #{act}\",\n exp,\n act,\n true\n );\n};\nassert.strictEqual = function(act, exp, msg) {\n new Assertion(act, msg, assert.strictEqual, true).to.equal(exp);\n};\nassert.notStrictEqual = function(act, exp, msg) {\n new Assertion(act, msg, assert.notStrictEqual, true).to.not.equal(exp);\n};\nassert.deepEqual = assert.deepStrictEqual = function(act, exp, msg) {\n new Assertion(act, msg, assert.deepEqual, true).to.eql(exp);\n};\nassert.notDeepEqual = function(act, exp, msg) {\n new Assertion(act, msg, assert.notDeepEqual, true).to.not.eql(exp);\n};\nassert.isAbove = function(val, abv, msg) {\n new Assertion(val, msg, assert.isAbove, true).to.be.above(abv);\n};\nassert.isAtLeast = function(val, atlst, msg) {\n new Assertion(val, msg, assert.isAtLeast, true).to.be.least(atlst);\n};\nassert.isBelow = function(val, blw, msg) {\n new Assertion(val, msg, assert.isBelow, true).to.be.below(blw);\n};\nassert.isAtMost = function(val, atmst, msg) {\n new Assertion(val, msg, assert.isAtMost, true).to.be.most(atmst);\n};\nassert.isTrue = function(val, msg) {\n new Assertion(val, msg, assert.isTrue, true).is[\"true\"];\n};\nassert.isNotTrue = function(val, msg) {\n new Assertion(val, msg, assert.isNotTrue, true).to.not.equal(true);\n};\nassert.isFalse = function(val, msg) {\n new Assertion(val, msg, assert.isFalse, true).is[\"false\"];\n};\nassert.isNotFalse = function(val, msg) {\n new Assertion(val, msg, assert.isNotFalse, true).to.not.equal(false);\n};\nassert.isNull = function(val, msg) {\n new Assertion(val, msg, assert.isNull, true).to.equal(null);\n};\nassert.isNotNull = function(val, msg) {\n new Assertion(val, msg, assert.isNotNull, true).to.not.equal(null);\n};\nassert.isNaN = function(val, msg) {\n new Assertion(val, msg, assert.isNaN, true).to.be.NaN;\n};\nassert.isNotNaN = function(value, message) {\n new Assertion(value, message, assert.isNotNaN, true).not.to.be.NaN;\n};\nassert.exists = function(val, msg) {\n new Assertion(val, msg, assert.exists, true).to.exist;\n};\nassert.notExists = function(val, msg) {\n new Assertion(val, msg, assert.notExists, true).to.not.exist;\n};\nassert.isUndefined = function(val, msg) {\n new Assertion(val, msg, assert.isUndefined, true).to.equal(void 0);\n};\nassert.isDefined = function(val, msg) {\n new Assertion(val, msg, assert.isDefined, true).to.not.equal(void 0);\n};\nassert.isCallable = function(value, message) {\n new Assertion(value, message, assert.isCallable, true).is.callable;\n};\nassert.isNotCallable = function(value, message) {\n new Assertion(value, message, assert.isNotCallable, true).is.not.callable;\n};\nassert.isObject = function(val, msg) {\n new Assertion(val, msg, assert.isObject, true).to.be.a(\"object\");\n};\nassert.isNotObject = function(val, msg) {\n new Assertion(val, msg, assert.isNotObject, true).to.not.be.a(\"object\");\n};\nassert.isArray = function(val, msg) {\n new Assertion(val, msg, assert.isArray, true).to.be.an(\"array\");\n};\nassert.isNotArray = function(val, msg) {\n new Assertion(val, msg, assert.isNotArray, true).to.not.be.an(\"array\");\n};\nassert.isString = function(val, msg) {\n new Assertion(val, msg, assert.isString, true).to.be.a(\"string\");\n};\nassert.isNotString = function(val, msg) {\n new Assertion(val, msg, assert.isNotString, true).to.not.be.a(\"string\");\n};\nassert.isNumber = function(val, msg) {\n new Assertion(val, msg, assert.isNumber, true).to.be.a(\"number\");\n};\nassert.isNotNumber = function(val, msg) {\n new Assertion(val, msg, assert.isNotNumber, true).to.not.be.a(\"number\");\n};\nassert.isNumeric = function(val, msg) {\n new Assertion(val, msg, assert.isNumeric, true).is.numeric;\n};\nassert.isNotNumeric = function(val, msg) {\n new Assertion(val, msg, assert.isNotNumeric, true).is.not.numeric;\n};\nassert.isFinite = function(val, msg) {\n new Assertion(val, msg, assert.isFinite, true).to.be.finite;\n};\nassert.isBoolean = function(val, msg) {\n new Assertion(val, msg, assert.isBoolean, true).to.be.a(\"boolean\");\n};\nassert.isNotBoolean = function(val, msg) {\n new Assertion(val, msg, assert.isNotBoolean, true).to.not.be.a(\"boolean\");\n};\nassert.typeOf = function(val, type3, msg) {\n new Assertion(val, msg, assert.typeOf, true).to.be.a(type3);\n};\nassert.notTypeOf = function(value, type3, message) {\n new Assertion(value, message, assert.notTypeOf, true).to.not.be.a(type3);\n};\nassert.instanceOf = function(val, type3, msg) {\n new Assertion(val, msg, assert.instanceOf, true).to.be.instanceOf(type3);\n};\nassert.notInstanceOf = function(val, type3, msg) {\n new Assertion(val, msg, assert.notInstanceOf, true).to.not.be.instanceOf(\n type3\n );\n};\nassert.include = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.include, true).include(inc);\n};\nassert.notInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.notInclude, true).not.include(inc);\n};\nassert.deepInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.deepInclude, true).deep.include(inc);\n};\nassert.notDeepInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.notDeepInclude, true).not.deep.include(inc);\n};\nassert.nestedInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.nestedInclude, true).nested.include(inc);\n};\nassert.notNestedInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.notNestedInclude, true).not.nested.include(\n inc\n );\n};\nassert.deepNestedInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.deepNestedInclude, true).deep.nested.include(\n inc\n );\n};\nassert.notDeepNestedInclude = function(exp, inc, msg) {\n new Assertion(\n exp,\n msg,\n assert.notDeepNestedInclude,\n true\n ).not.deep.nested.include(inc);\n};\nassert.ownInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.ownInclude, true).own.include(inc);\n};\nassert.notOwnInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.notOwnInclude, true).not.own.include(inc);\n};\nassert.deepOwnInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.deepOwnInclude, true).deep.own.include(inc);\n};\nassert.notDeepOwnInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.notDeepOwnInclude, true).not.deep.own.include(\n inc\n );\n};\nassert.match = function(exp, re, msg) {\n new Assertion(exp, msg, assert.match, true).to.match(re);\n};\nassert.notMatch = function(exp, re, msg) {\n new Assertion(exp, msg, assert.notMatch, true).to.not.match(re);\n};\nassert.property = function(obj, prop, msg) {\n new Assertion(obj, msg, assert.property, true).to.have.property(prop);\n};\nassert.notProperty = function(obj, prop, msg) {\n new Assertion(obj, msg, assert.notProperty, true).to.not.have.property(prop);\n};\nassert.propertyVal = function(obj, prop, val, msg) {\n new Assertion(obj, msg, assert.propertyVal, true).to.have.property(prop, val);\n};\nassert.notPropertyVal = function(obj, prop, val, msg) {\n new Assertion(obj, msg, assert.notPropertyVal, true).to.not.have.property(\n prop,\n val\n );\n};\nassert.deepPropertyVal = function(obj, prop, val, msg) {\n new Assertion(obj, msg, assert.deepPropertyVal, true).to.have.deep.property(\n prop,\n val\n );\n};\nassert.notDeepPropertyVal = function(obj, prop, val, msg) {\n new Assertion(\n obj,\n msg,\n assert.notDeepPropertyVal,\n true\n ).to.not.have.deep.property(prop, val);\n};\nassert.ownProperty = function(obj, prop, msg) {\n new Assertion(obj, msg, assert.ownProperty, true).to.have.own.property(prop);\n};\nassert.notOwnProperty = function(obj, prop, msg) {\n new Assertion(obj, msg, assert.notOwnProperty, true).to.not.have.own.property(\n prop\n );\n};\nassert.ownPropertyVal = function(obj, prop, value, msg) {\n new Assertion(obj, msg, assert.ownPropertyVal, true).to.have.own.property(\n prop,\n value\n );\n};\nassert.notOwnPropertyVal = function(obj, prop, value, msg) {\n new Assertion(\n obj,\n msg,\n assert.notOwnPropertyVal,\n true\n ).to.not.have.own.property(prop, value);\n};\nassert.deepOwnPropertyVal = function(obj, prop, value, msg) {\n new Assertion(\n obj,\n msg,\n assert.deepOwnPropertyVal,\n true\n ).to.have.deep.own.property(prop, value);\n};\nassert.notDeepOwnPropertyVal = function(obj, prop, value, msg) {\n new Assertion(\n obj,\n msg,\n assert.notDeepOwnPropertyVal,\n true\n ).to.not.have.deep.own.property(prop, value);\n};\nassert.nestedProperty = function(obj, prop, msg) {\n new Assertion(obj, msg, assert.nestedProperty, true).to.have.nested.property(\n prop\n );\n};\nassert.notNestedProperty = function(obj, prop, msg) {\n new Assertion(\n obj,\n msg,\n assert.notNestedProperty,\n true\n ).to.not.have.nested.property(prop);\n};\nassert.nestedPropertyVal = function(obj, prop, val, msg) {\n new Assertion(\n obj,\n msg,\n assert.nestedPropertyVal,\n true\n ).to.have.nested.property(prop, val);\n};\nassert.notNestedPropertyVal = function(obj, prop, val, msg) {\n new Assertion(\n obj,\n msg,\n assert.notNestedPropertyVal,\n true\n ).to.not.have.nested.property(prop, val);\n};\nassert.deepNestedPropertyVal = function(obj, prop, val, msg) {\n new Assertion(\n obj,\n msg,\n assert.deepNestedPropertyVal,\n true\n ).to.have.deep.nested.property(prop, val);\n};\nassert.notDeepNestedPropertyVal = function(obj, prop, val, msg) {\n new Assertion(\n obj,\n msg,\n assert.notDeepNestedPropertyVal,\n true\n ).to.not.have.deep.nested.property(prop, val);\n};\nassert.lengthOf = function(exp, len, msg) {\n new Assertion(exp, msg, assert.lengthOf, true).to.have.lengthOf(len);\n};\nassert.hasAnyKeys = function(obj, keys, msg) {\n new Assertion(obj, msg, assert.hasAnyKeys, true).to.have.any.keys(keys);\n};\nassert.hasAllKeys = function(obj, keys, msg) {\n new Assertion(obj, msg, assert.hasAllKeys, true).to.have.all.keys(keys);\n};\nassert.containsAllKeys = function(obj, keys, msg) {\n new Assertion(obj, msg, assert.containsAllKeys, true).to.contain.all.keys(\n keys\n );\n};\nassert.doesNotHaveAnyKeys = function(obj, keys, msg) {\n new Assertion(obj, msg, assert.doesNotHaveAnyKeys, true).to.not.have.any.keys(\n keys\n );\n};\nassert.doesNotHaveAllKeys = function(obj, keys, msg) {\n new Assertion(obj, msg, assert.doesNotHaveAllKeys, true).to.not.have.all.keys(\n keys\n );\n};\nassert.hasAnyDeepKeys = function(obj, keys, msg) {\n new Assertion(obj, msg, assert.hasAnyDeepKeys, true).to.have.any.deep.keys(\n keys\n );\n};\nassert.hasAllDeepKeys = function(obj, keys, msg) {\n new Assertion(obj, msg, assert.hasAllDeepKeys, true).to.have.all.deep.keys(\n keys\n );\n};\nassert.containsAllDeepKeys = function(obj, keys, msg) {\n new Assertion(\n obj,\n msg,\n assert.containsAllDeepKeys,\n true\n ).to.contain.all.deep.keys(keys);\n};\nassert.doesNotHaveAnyDeepKeys = function(obj, keys, msg) {\n new Assertion(\n obj,\n msg,\n assert.doesNotHaveAnyDeepKeys,\n true\n ).to.not.have.any.deep.keys(keys);\n};\nassert.doesNotHaveAllDeepKeys = function(obj, keys, msg) {\n new Assertion(\n obj,\n msg,\n assert.doesNotHaveAllDeepKeys,\n true\n ).to.not.have.all.deep.keys(keys);\n};\nassert.throws = function(fn, errorLike, errMsgMatcher, msg) {\n if (\"string\" === typeof errorLike || errorLike instanceof RegExp) {\n errMsgMatcher = errorLike;\n errorLike = null;\n }\n let assertErr = new Assertion(fn, msg, assert.throws, true).to.throw(\n errorLike,\n errMsgMatcher\n );\n return flag(assertErr, \"object\");\n};\nassert.doesNotThrow = function(fn, errorLike, errMsgMatcher, message) {\n if (\"string\" === typeof errorLike || errorLike instanceof RegExp) {\n errMsgMatcher = errorLike;\n errorLike = null;\n }\n new Assertion(fn, message, assert.doesNotThrow, true).to.not.throw(\n errorLike,\n errMsgMatcher\n );\n};\nassert.operator = function(val, operator, val2, msg) {\n let ok;\n switch (operator) {\n case \"==\":\n ok = val == val2;\n break;\n case \"===\":\n ok = val === val2;\n break;\n case \">\":\n ok = val > val2;\n break;\n case \">=\":\n ok = val >= val2;\n break;\n case \"<\":\n ok = val < val2;\n break;\n case \"<=\":\n ok = val <= val2;\n break;\n case \"!=\":\n ok = val != val2;\n break;\n case \"!==\":\n ok = val !== val2;\n break;\n default:\n msg = msg ? msg + \": \" : msg;\n throw new AssertionError(\n msg + 'Invalid operator \"' + operator + '\"',\n void 0,\n assert.operator\n );\n }\n let test2 = new Assertion(ok, msg, assert.operator, true);\n test2.assert(\n true === flag(test2, \"object\"),\n \"expected \" + inspect2(val) + \" to be \" + operator + \" \" + inspect2(val2),\n \"expected \" + inspect2(val) + \" to not be \" + operator + \" \" + inspect2(val2)\n );\n};\nassert.closeTo = function(act, exp, delta, msg) {\n new Assertion(act, msg, assert.closeTo, true).to.be.closeTo(exp, delta);\n};\nassert.approximately = function(act, exp, delta, msg) {\n new Assertion(act, msg, assert.approximately, true).to.be.approximately(\n exp,\n delta\n );\n};\nassert.sameMembers = function(set1, set2, msg) {\n new Assertion(set1, msg, assert.sameMembers, true).to.have.same.members(set2);\n};\nassert.notSameMembers = function(set1, set2, msg) {\n new Assertion(\n set1,\n msg,\n assert.notSameMembers,\n true\n ).to.not.have.same.members(set2);\n};\nassert.sameDeepMembers = function(set1, set2, msg) {\n new Assertion(\n set1,\n msg,\n assert.sameDeepMembers,\n true\n ).to.have.same.deep.members(set2);\n};\nassert.notSameDeepMembers = function(set1, set2, msg) {\n new Assertion(\n set1,\n msg,\n assert.notSameDeepMembers,\n true\n ).to.not.have.same.deep.members(set2);\n};\nassert.sameOrderedMembers = function(set1, set2, msg) {\n new Assertion(\n set1,\n msg,\n assert.sameOrderedMembers,\n true\n ).to.have.same.ordered.members(set2);\n};\nassert.notSameOrderedMembers = function(set1, set2, msg) {\n new Assertion(\n set1,\n msg,\n assert.notSameOrderedMembers,\n true\n ).to.not.have.same.ordered.members(set2);\n};\nassert.sameDeepOrderedMembers = function(set1, set2, msg) {\n new Assertion(\n set1,\n msg,\n assert.sameDeepOrderedMembers,\n true\n ).to.have.same.deep.ordered.members(set2);\n};\nassert.notSameDeepOrderedMembers = function(set1, set2, msg) {\n new Assertion(\n set1,\n msg,\n assert.notSameDeepOrderedMembers,\n true\n ).to.not.have.same.deep.ordered.members(set2);\n};\nassert.includeMembers = function(superset, subset, msg) {\n new Assertion(superset, msg, assert.includeMembers, true).to.include.members(\n subset\n );\n};\nassert.notIncludeMembers = function(superset, subset, msg) {\n new Assertion(\n superset,\n msg,\n assert.notIncludeMembers,\n true\n ).to.not.include.members(subset);\n};\nassert.includeDeepMembers = function(superset, subset, msg) {\n new Assertion(\n superset,\n msg,\n assert.includeDeepMembers,\n true\n ).to.include.deep.members(subset);\n};\nassert.notIncludeDeepMembers = function(superset, subset, msg) {\n new Assertion(\n superset,\n msg,\n assert.notIncludeDeepMembers,\n true\n ).to.not.include.deep.members(subset);\n};\nassert.includeOrderedMembers = function(superset, subset, msg) {\n new Assertion(\n superset,\n msg,\n assert.includeOrderedMembers,\n true\n ).to.include.ordered.members(subset);\n};\nassert.notIncludeOrderedMembers = function(superset, subset, msg) {\n new Assertion(\n superset,\n msg,\n assert.notIncludeOrderedMembers,\n true\n ).to.not.include.ordered.members(subset);\n};\nassert.includeDeepOrderedMembers = function(superset, subset, msg) {\n new Assertion(\n superset,\n msg,\n assert.includeDeepOrderedMembers,\n true\n ).to.include.deep.ordered.members(subset);\n};\nassert.notIncludeDeepOrderedMembers = function(superset, subset, msg) {\n new Assertion(\n superset,\n msg,\n assert.notIncludeDeepOrderedMembers,\n true\n ).to.not.include.deep.ordered.members(subset);\n};\nassert.oneOf = function(inList, list, msg) {\n new Assertion(inList, msg, assert.oneOf, true).to.be.oneOf(list);\n};\nassert.isIterable = function(obj, msg) {\n if (obj == void 0 || !obj[Symbol.iterator]) {\n msg = msg ? `${msg} expected ${inspect2(obj)} to be an iterable` : `expected ${inspect2(obj)} to be an iterable`;\n throw new AssertionError(msg, void 0, assert.isIterable);\n }\n};\nassert.changes = function(fn, obj, prop, msg) {\n if (arguments.length === 3 && typeof obj === \"function\") {\n msg = prop;\n prop = null;\n }\n new Assertion(fn, msg, assert.changes, true).to.change(obj, prop);\n};\nassert.changesBy = function(fn, obj, prop, delta, msg) {\n if (arguments.length === 4 && typeof obj === \"function\") {\n let tmpMsg = delta;\n delta = prop;\n msg = tmpMsg;\n } else if (arguments.length === 3) {\n delta = prop;\n prop = null;\n }\n new Assertion(fn, msg, assert.changesBy, true).to.change(obj, prop).by(delta);\n};\nassert.doesNotChange = function(fn, obj, prop, msg) {\n if (arguments.length === 3 && typeof obj === \"function\") {\n msg = prop;\n prop = null;\n }\n return new Assertion(fn, msg, assert.doesNotChange, true).to.not.change(\n obj,\n prop\n );\n};\nassert.changesButNotBy = function(fn, obj, prop, delta, msg) {\n if (arguments.length === 4 && typeof obj === \"function\") {\n let tmpMsg = delta;\n delta = prop;\n msg = tmpMsg;\n } else if (arguments.length === 3) {\n delta = prop;\n prop = null;\n }\n new Assertion(fn, msg, assert.changesButNotBy, true).to.change(obj, prop).but.not.by(delta);\n};\nassert.increases = function(fn, obj, prop, msg) {\n if (arguments.length === 3 && typeof obj === \"function\") {\n msg = prop;\n prop = null;\n }\n return new Assertion(fn, msg, assert.increases, true).to.increase(obj, prop);\n};\nassert.increasesBy = function(fn, obj, prop, delta, msg) {\n if (arguments.length === 4 && typeof obj === \"function\") {\n let tmpMsg = delta;\n delta = prop;\n msg = tmpMsg;\n } else if (arguments.length === 3) {\n delta = prop;\n prop = null;\n }\n new Assertion(fn, msg, assert.increasesBy, true).to.increase(obj, prop).by(delta);\n};\nassert.doesNotIncrease = function(fn, obj, prop, msg) {\n if (arguments.length === 3 && typeof obj === \"function\") {\n msg = prop;\n prop = null;\n }\n return new Assertion(fn, msg, assert.doesNotIncrease, true).to.not.increase(\n obj,\n prop\n );\n};\nassert.increasesButNotBy = function(fn, obj, prop, delta, msg) {\n if (arguments.length === 4 && typeof obj === \"function\") {\n let tmpMsg = delta;\n delta = prop;\n msg = tmpMsg;\n } else if (arguments.length === 3) {\n delta = prop;\n prop = null;\n }\n new Assertion(fn, msg, assert.increasesButNotBy, true).to.increase(obj, prop).but.not.by(delta);\n};\nassert.decreases = function(fn, obj, prop, msg) {\n if (arguments.length === 3 && typeof obj === \"function\") {\n msg = prop;\n prop = null;\n }\n return new Assertion(fn, msg, assert.decreases, true).to.decrease(obj, prop);\n};\nassert.decreasesBy = function(fn, obj, prop, delta, msg) {\n if (arguments.length === 4 && typeof obj === \"function\") {\n let tmpMsg = delta;\n delta = prop;\n msg = tmpMsg;\n } else if (arguments.length === 3) {\n delta = prop;\n prop = null;\n }\n new Assertion(fn, msg, assert.decreasesBy, true).to.decrease(obj, prop).by(delta);\n};\nassert.doesNotDecrease = function(fn, obj, prop, msg) {\n if (arguments.length === 3 && typeof obj === \"function\") {\n msg = prop;\n prop = null;\n }\n return new Assertion(fn, msg, assert.doesNotDecrease, true).to.not.decrease(\n obj,\n prop\n );\n};\nassert.doesNotDecreaseBy = function(fn, obj, prop, delta, msg) {\n if (arguments.length === 4 && typeof obj === \"function\") {\n let tmpMsg = delta;\n delta = prop;\n msg = tmpMsg;\n } else if (arguments.length === 3) {\n delta = prop;\n prop = null;\n }\n return new Assertion(fn, msg, assert.doesNotDecreaseBy, true).to.not.decrease(obj, prop).by(delta);\n};\nassert.decreasesButNotBy = function(fn, obj, prop, delta, msg) {\n if (arguments.length === 4 && typeof obj === \"function\") {\n let tmpMsg = delta;\n delta = prop;\n msg = tmpMsg;\n } else if (arguments.length === 3) {\n delta = prop;\n prop = null;\n }\n new Assertion(fn, msg, assert.decreasesButNotBy, true).to.decrease(obj, prop).but.not.by(delta);\n};\nassert.ifError = function(val) {\n if (val) {\n throw val;\n }\n};\nassert.isExtensible = function(obj, msg) {\n new Assertion(obj, msg, assert.isExtensible, true).to.be.extensible;\n};\nassert.isNotExtensible = function(obj, msg) {\n new Assertion(obj, msg, assert.isNotExtensible, true).to.not.be.extensible;\n};\nassert.isSealed = function(obj, msg) {\n new Assertion(obj, msg, assert.isSealed, true).to.be.sealed;\n};\nassert.isNotSealed = function(obj, msg) {\n new Assertion(obj, msg, assert.isNotSealed, true).to.not.be.sealed;\n};\nassert.isFrozen = function(obj, msg) {\n new Assertion(obj, msg, assert.isFrozen, true).to.be.frozen;\n};\nassert.isNotFrozen = function(obj, msg) {\n new Assertion(obj, msg, assert.isNotFrozen, true).to.not.be.frozen;\n};\nassert.isEmpty = function(val, msg) {\n new Assertion(val, msg, assert.isEmpty, true).to.be.empty;\n};\nassert.isNotEmpty = function(val, msg) {\n new Assertion(val, msg, assert.isNotEmpty, true).to.not.be.empty;\n};\nassert.containsSubset = function(val, exp, msg) {\n new Assertion(val, msg).to.containSubset(exp);\n};\nassert.doesNotContainSubset = function(val, exp, msg) {\n new Assertion(val, msg).to.not.containSubset(exp);\n};\nvar aliases = [\n [\"isOk\", \"ok\"],\n [\"isNotOk\", \"notOk\"],\n [\"throws\", \"throw\"],\n [\"throws\", \"Throw\"],\n [\"isExtensible\", \"extensible\"],\n [\"isNotExtensible\", \"notExtensible\"],\n [\"isSealed\", \"sealed\"],\n [\"isNotSealed\", \"notSealed\"],\n [\"isFrozen\", \"frozen\"],\n [\"isNotFrozen\", \"notFrozen\"],\n [\"isEmpty\", \"empty\"],\n [\"isNotEmpty\", \"notEmpty\"],\n [\"isCallable\", \"isFunction\"],\n [\"isNotCallable\", \"isNotFunction\"],\n [\"containsSubset\", \"containSubset\"]\n];\nfor (const [name, as] of aliases) {\n assert[as] = assert[name];\n}\n\n// lib/chai.js\nvar used = [];\nfunction use(fn) {\n const exports = {\n use,\n AssertionError,\n util: utils_exports,\n config,\n expect,\n assert,\n Assertion,\n ...should_exports\n };\n if (!~used.indexOf(fn)) {\n fn(exports, utils_exports);\n used.push(fn);\n }\n return exports;\n}\n__name(use, \"use\");\nexport {\n Assertion,\n AssertionError,\n Should,\n assert,\n config,\n expect,\n should,\n use,\n utils_exports as util\n};\n/*!\n * Chai - flag utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - test utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - expectTypes utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - getActual utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - message composition utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - transferFlags utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * chai\n * http://chaijs.com\n * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - isProxyEnabled helper\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - addProperty utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - addLengthGuard utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - getProperties utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - proxify utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - addMethod utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - overwriteProperty utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - overwriteMethod utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - addChainingMethod utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - overwriteChainableMethod utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - compareByInspect utility\n * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - getOwnEnumerablePropertySymbols utility\n * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - getOwnEnumerableProperties utility\n * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - isNaN utility\n * Copyright(c) 2012-2015 Sakthipriyan Vairamani <thechargingvolcano@gmail.com>\n * MIT Licensed\n */\n/*!\n * chai\n * Copyright(c) 2011 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * chai\n * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*! Bundled license information:\n\ndeep-eql/index.js:\n (*!\n * deep-eql\n * Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n *)\n (*!\n * Check to see if the MemoizeMap has recorded a result of the two operands\n *\n * @param {Mixed} leftHandOperand\n * @param {Mixed} rightHandOperand\n * @param {MemoizeMap} memoizeMap\n * @returns {Boolean|null} result\n *)\n (*!\n * Set the result of the equality into the MemoizeMap\n *\n * @param {Mixed} leftHandOperand\n * @param {Mixed} rightHandOperand\n * @param {MemoizeMap} memoizeMap\n * @param {Boolean} result\n *)\n (*!\n * Primary Export\n *)\n (*!\n * The main logic of the `deepEqual` function.\n *\n * @param {Mixed} leftHandOperand\n * @param {Mixed} rightHandOperand\n * @param {Object} [options] (optional) Additional options\n * @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality.\n * @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of\n complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular\n references to blow the stack.\n * @return {Boolean} equal match\n *)\n (*!\n * Compare two Regular Expressions for equality.\n *\n * @param {RegExp} leftHandOperand\n * @param {RegExp} rightHandOperand\n * @return {Boolean} result\n *)\n (*!\n * Compare two Sets/Maps for equality. Faster than other equality functions.\n *\n * @param {Set} leftHandOperand\n * @param {Set} rightHandOperand\n * @param {Object} [options] (Optional)\n * @return {Boolean} result\n *)\n (*!\n * Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers.\n *\n * @param {Iterable} leftHandOperand\n * @param {Iterable} rightHandOperand\n * @param {Object} [options] (Optional)\n * @return {Boolean} result\n *)\n (*!\n * Simple equality for generator objects such as those returned by generator functions.\n *\n * @param {Iterable} leftHandOperand\n * @param {Iterable} rightHandOperand\n * @param {Object} [options] (Optional)\n * @return {Boolean} result\n *)\n (*!\n * Determine if the given object has an @@iterator function.\n *\n * @param {Object} target\n * @return {Boolean} `true` if the object has an @@iterator function.\n *)\n (*!\n * Gets all iterator entries from the given Object. If the Object has no @@iterator function, returns an empty array.\n * This will consume the iterator - which could have side effects depending on the @@iterator implementation.\n *\n * @param {Object} target\n * @returns {Array} an array of entries from the @@iterator function\n *)\n (*!\n * Gets all entries from a Generator. This will consume the generator - which could have side effects.\n *\n * @param {Generator} target\n * @returns {Array} an array of entries from the Generator.\n *)\n (*!\n * Gets all own and inherited enumerable keys from a target.\n *\n * @param {Object} target\n * @returns {Array} an array of own and inherited enumerable keys from the target.\n *)\n (*!\n * Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of\n * each key. If any value of the given key is not equal, the function will return false (early).\n *\n * @param {Mixed} leftHandOperand\n * @param {Mixed} rightHandOperand\n * @param {Array} keys An array of keys to compare the values of leftHandOperand and rightHandOperand against\n * @param {Object} [options] (Optional)\n * @return {Boolean} result\n *)\n (*!\n * Recursively check the equality of two Objects. Once basic sameness has been established it will defer to `deepEqual`\n * for each enumerable key in the object.\n *\n * @param {Mixed} leftHandOperand\n * @param {Mixed} rightHandOperand\n * @param {Object} [options] (Optional)\n * @return {Boolean} result\n *)\n (*!\n * Returns true if the argument is a primitive.\n *\n * This intentionally returns true for all objects that can be compared by reference,\n * including functions and symbols.\n *\n * @param {Mixed} value\n * @return {Boolean} result\n *)\n*/\n","import { getType, stringify, isObject, noop, assertTypes } from '@vitest/utils';\nimport { printDiffOrStringify, diff } from '@vitest/utils/diff';\nimport c from 'tinyrainbow';\nimport { isMockFunction } from '@vitest/spy';\nimport { processError } from '@vitest/utils/error';\nimport { use, util } from 'chai';\n\nconst MATCHERS_OBJECT = Symbol.for(\"matchers-object\");\nconst JEST_MATCHERS_OBJECT = Symbol.for(\"$$jest-matchers-object\");\nconst GLOBAL_EXPECT = Symbol.for(\"expect-global\");\nconst ASYMMETRIC_MATCHERS_OBJECT = Symbol.for(\"asymmetric-matchers-object\");\n\n// selectively ported from https://github.com/jest-community/jest-extended\nconst customMatchers = {\n\ttoSatisfy(actual, expected, message) {\n\t\tconst { printReceived, printExpected, matcherHint } = this.utils;\n\t\tconst pass = expected(actual);\n\t\treturn {\n\t\t\tpass,\n\t\t\tmessage: () => pass ? `\\\n${matcherHint(\".not.toSatisfy\", \"received\", \"\")}\n\nExpected value to not satisfy:\n${message || printExpected(expected)}\nReceived:\n${printReceived(actual)}` : `\\\n${matcherHint(\".toSatisfy\", \"received\", \"\")}\n\nExpected value to satisfy:\n${message || printExpected(expected)}\n\nReceived:\n${printReceived(actual)}`\n\t\t};\n\t},\n\ttoBeOneOf(actual, expected) {\n\t\tconst { equals, customTesters } = this;\n\t\tconst { printReceived, printExpected, matcherHint } = this.utils;\n\t\tif (!Array.isArray(expected)) {\n\t\t\tthrow new TypeError(`You must provide an array to ${matcherHint(\".toBeOneOf\")}, not '${typeof expected}'.`);\n\t\t}\n\t\tconst pass = expected.length === 0 || expected.some((item) => equals(item, actual, customTesters));\n\t\treturn {\n\t\t\tpass,\n\t\t\tmessage: () => pass ? `\\\n${matcherHint(\".not.toBeOneOf\", \"received\", \"\")}\n\nExpected value to not be one of:\n${printExpected(expected)}\nReceived:\n${printReceived(actual)}` : `\\\n${matcherHint(\".toBeOneOf\", \"received\", \"\")}\n\nExpected value to be one of:\n${printExpected(expected)}\n\nReceived:\n${printReceived(actual)}`\n\t\t};\n\t}\n};\n\nconst EXPECTED_COLOR = c.green;\nconst RECEIVED_COLOR = c.red;\nconst INVERTED_COLOR = c.inverse;\nconst BOLD_WEIGHT = c.bold;\nconst DIM_COLOR = c.dim;\nfunction matcherHint(matcherName, received = \"received\", expected = \"expected\", options = {}) {\n\tconst { comment = \"\", isDirectExpectCall = false, isNot = false, promise = \"\", secondArgument = \"\", expectedColor = EXPECTED_COLOR, receivedColor = RECEIVED_COLOR, secondArgumentColor = EXPECTED_COLOR } = options;\n\tlet hint = \"\";\n\tlet dimString = \"expect\";\n\tif (!isDirectExpectCall && received !== \"\") {\n\t\thint += DIM_COLOR(`${dimString}(`) + receivedColor(received);\n\t\tdimString = \")\";\n\t}\n\tif (promise !== \"\") {\n\t\thint += DIM_COLOR(`${dimString}.`) + promise;\n\t\tdimString = \"\";\n\t}\n\tif (isNot) {\n\t\thint += `${DIM_COLOR(`${dimString}.`)}not`;\n\t\tdimString = \"\";\n\t}\n\tif (matcherName.includes(\".\")) {\n\t\t// Old format: for backward compatibility,\n\t\t// especially without promise or isNot options\n\t\tdimString += matcherName;\n\t} else {\n\t\t// New format: omit period from matcherName arg\n\t\thint += DIM_COLOR(`${dimString}.`) + matcherName;\n\t\tdimString = \"\";\n\t}\n\tif (expected === \"\") {\n\t\tdimString += \"()\";\n\t} else {\n\t\thint += DIM_COLOR(`${dimString}(`) + expectedColor(expected);\n\t\tif (secondArgument) {\n\t\t\thint += DIM_COLOR(\", \") + secondArgumentColor(secondArgument);\n\t\t}\n\t\tdimString = \")\";\n\t}\n\tif (comment !== \"\") {\n\t\tdimString += ` // ${comment}`;\n\t}\n\tif (dimString !== \"\") {\n\t\thint += DIM_COLOR(dimString);\n\t}\n\treturn hint;\n}\nconst SPACE_SYMBOL = \"·\";\n// Instead of inverse highlight which now implies a change,\n// replace common spaces with middle dot at the end of any line.\nfunction replaceTrailingSpaces(text) {\n\treturn text.replace(/\\s+$/gm, (spaces) => SPACE_SYMBOL.repeat(spaces.length));\n}\nfunction printReceived(object) {\n\treturn RECEIVED_COLOR(replaceTrailingSpaces(stringify(object)));\n}\nfunction printExpected(value) {\n\treturn EXPECTED_COLOR(replaceTrailingSpaces(stringify(value)));\n}\nfunction getMatcherUtils() {\n\treturn {\n\t\tEXPECTED_COLOR,\n\t\tRECEIVED_COLOR,\n\t\tINVERTED_COLOR,\n\t\tBOLD_WEIGHT,\n\t\tDIM_COLOR,\n\t\tdiff,\n\t\tmatcherHint,\n\t\tprintReceived,\n\t\tprintExpected,\n\t\tprintDiffOrStringify,\n\t\tprintWithType\n\t};\n}\nfunction printWithType(name, value, print) {\n\tconst type = getType(value);\n\tconst hasType = type !== \"null\" && type !== \"undefined\" ? `${name} has type: ${type}\\n` : \"\";\n\tconst hasValue = `${name} has value: ${print(value)}`;\n\treturn hasType + hasValue;\n}\nfunction addCustomEqualityTesters(newTesters) {\n\tif (!Array.isArray(newTesters)) {\n\t\tthrow new TypeError(`expect.customEqualityTesters: Must be set to an array of Testers. Was given \"${getType(newTesters)}\"`);\n\t}\n\tglobalThis[JEST_MATCHERS_OBJECT].customEqualityTesters.push(...newTesters);\n}\nfunction getCustomEqualityTesters() {\n\treturn globalThis[JEST_MATCHERS_OBJECT].customEqualityTesters;\n}\n\n// Extracted out of jasmine 2.5.2\nfunction equals(a, b, customTesters, strictCheck) {\n\tcustomTesters = customTesters || [];\n\treturn eq(a, b, [], [], customTesters, strictCheck ? hasKey : hasDefinedKey);\n}\nconst functionToString = Function.prototype.toString;\nfunction isAsymmetric(obj) {\n\treturn !!obj && typeof obj === \"object\" && \"asymmetricMatch\" in obj && isA(\"Function\", obj.asymmetricMatch);\n}\nfunction hasAsymmetric(obj, seen = new Set()) {\n\tif (seen.has(obj)) {\n\t\treturn false;\n\t}\n\tseen.add(obj);\n\tif (isAsymmetric(obj)) {\n\t\treturn true;\n\t}\n\tif (Array.isArray(obj)) {\n\t\treturn obj.some((i) => hasAsymmetric(i, seen));\n\t}\n\tif (obj instanceof Set) {\n\t\treturn Array.from(obj).some((i) => hasAsymmetric(i, seen));\n\t}\n\tif (isObject(obj)) {\n\t\treturn Object.values(obj).some((v) => hasAsymmetric(v, seen));\n\t}\n\treturn false;\n}\nfunction asymmetricMatch(a, b) {\n\tconst asymmetricA = isAsymmetric(a);\n\tconst asymmetricB = isAsymmetric(b);\n\tif (asymmetricA && asymmetricB) {\n\t\treturn undefined;\n\t}\n\tif (asymmetricA) {\n\t\treturn a.asymmetricMatch(b);\n\t}\n\tif (asymmetricB) {\n\t\treturn b.asymmetricMatch(a);\n\t}\n}\n// Equality function lovingly adapted from isEqual in\n// [Underscore](http://underscorejs.org)\nfunction eq(a, b, aStack, bStack, customTesters, hasKey) {\n\tlet result = true;\n\tconst asymmetricResult = asymmetricMatch(a, b);\n\tif (asymmetricResult !== undefined) {\n\t\treturn asymmetricResult;\n\t}\n\tconst testerContext = { equals };\n\tfor (let i = 0; i < customTesters.length; i++) {\n\t\tconst customTesterResult = customTesters[i].call(testerContext, a, b, customTesters);\n\t\tif (customTesterResult !== undefined) {\n\t\t\treturn customTesterResult;\n\t\t}\n\t}\n\tif (typeof URL === \"function\" && a instanceof URL && b instanceof URL) {\n\t\treturn a.href === b.href;\n\t}\n\tif (Object.is(a, b)) {\n\t\treturn true;\n\t}\n\t// A strict comparison is necessary because `null == undefined`.\n\tif (a === null || b === null) {\n\t\treturn a === b;\n\t}\n\tconst className = Object.prototype.toString.call(a);\n\tif (className !== Object.prototype.toString.call(b)) {\n\t\treturn false;\n\t}\n\tswitch (className) {\n\t\tcase \"[object Boolean]\":\n\t\tcase \"[object String]\":\n\t\tcase \"[object Number]\": if (typeof a !== typeof b) {\n\t\t\t// One is a primitive, one a `new Primitive()`\n\t\t\treturn false;\n\t\t} else if (typeof a !== \"object\" && typeof b !== \"object\") {\n\t\t\t// both are proper primitives\n\t\t\treturn Object.is(a, b);\n\t\t} else {\n\t\t\t// both are `new Primitive()`s\n\t\t\treturn Object.is(a.valueOf(), b.valueOf());\n\t\t}\n\t\tcase \"[object Date]\": {\n\t\t\tconst numA = +a;\n\t\t\tconst numB = +b;\n\t\t\t// Coerce dates to numeric primitive values. Dates are compared by their\n\t\t\t// millisecond representations. Note that invalid dates with millisecond representations\n\t\t\t// of `NaN` are equivalent.\n\t\t\treturn numA === numB || Number.isNaN(numA) && Number.isNaN(numB);\n\t\t}\n\t\tcase \"[object RegExp]\": return a.source === b.source && a.flags === b.flags;\n\t\tcase \"[object Temporal.Instant]\":\n\t\tcase \"[object Temporal.ZonedDateTime]\":\n\t\tcase \"[object Temporal.PlainDateTime]\":\n\t\tcase \"[object Temporal.PlainDate]\":\n\t\tcase \"[object Temporal.PlainTime]\":\n\t\tcase \"[object Temporal.PlainYearMonth]\":\n\t\tcase \"[object Temporal.PlainMonthDay]\": return a.equals(b);\n\t\tcase \"[object Temporal.Duration]\": return a.toString() === b.toString();\n\t}\n\tif (typeof a !== \"object\" || typeof b !== \"object\") {\n\t\treturn false;\n\t}\n\t// Use DOM3 method isEqualNode (IE>=9)\n\tif (isDomNode(a) && isDomNode(b)) {\n\t\treturn a.isEqualNode(b);\n\t}\n\t// Used to detect circular references.\n\tlet length = aStack.length;\n\twhile (length--) {\n\t\t// Linear search. Performance is inversely proportional to the number of\n\t\t// unique nested structures.\n\t\t// circular references at same depth are equal\n\t\t// circular reference is not equal to non-circular one\n\t\tif (aStack[length] === a) {\n\t\t\treturn bStack[length] === b;\n\t\t} else if (bStack[length] === b) {\n\t\t\treturn false;\n\t\t}\n\t}\n\t// Add the first object to the stack of traversed objects.\n\taStack.push(a);\n\tbStack.push(b);\n\t// Recursively compare objects and arrays.\n\t// Compare array lengths to determine if a deep comparison is necessary.\n\tif (className === \"[object Array]\" && a.length !== b.length) {\n\t\treturn false;\n\t}\n\tif (a instanceof Error && b instanceof Error) {\n\t\ttry {\n\t\t\treturn isErrorEqual(a, b, aStack, bStack, customTesters, hasKey);\n\t\t} finally {\n\t\t\taStack.pop();\n\t\t\tbStack.pop();\n\t\t}\n\t}\n\t// Deep compare objects.\n\tconst aKeys = keys(a, hasKey);\n\tlet key;\n\tlet size = aKeys.length;\n\t// Ensure that both objects contain the same number of properties before comparing deep equality.\n\tif (keys(b, hasKey).length !== size) {\n\t\treturn false;\n\t}\n\twhile (size--) {\n\t\tkey = aKeys[size];\n\t\t// Deep compare each member\n\t\tresult = hasKey(b, key) && eq(a[key], b[key], aStack, bStack, customTesters, hasKey);\n\t\tif (!result) {\n\t\t\treturn false;\n\t\t}\n\t}\n\t// Remove the first object from the stack of traversed objects.\n\taStack.pop();\n\tbStack.pop();\n\treturn result;\n}\nfunction isErrorEqual(a, b, aStack, bStack, customTesters, hasKey) {\n\t// https://nodejs.org/docs/latest-v22.x/api/assert.html#comparison-details\n\t// - [[Prototype]] of objects are compared using the === operator.\n\t// - Only enumerable \"own\" properties are considered.\n\t// - Error names, messages, causes, and errors are always compared, even if these are not enumerable properties. errors is also compared.\n\tlet result = Object.getPrototypeOf(a) === Object.getPrototypeOf(b) && a.name === b.name && a.message === b.message;\n\t// check Error.cause asymmetrically\n\tif (typeof b.cause !== \"undefined\") {\n\t\tresult && (result = eq(a.cause, b.cause, aStack, bStack, customTesters, hasKey));\n\t}\n\t// AggregateError.errors\n\tif (a instanceof AggregateError && b instanceof AggregateError) {\n\t\tresult && (result = eq(a.errors, b.errors, aStack, bStack, customTesters, hasKey));\n\t}\n\t// spread to compare enumerable properties\n\tresult && (result = eq({ ...a }, { ...b }, aStack, bStack, customTesters, hasKey));\n\treturn result;\n}\nfunction keys(obj, hasKey) {\n\tconst keys = [];\n\tfor (const key in obj) {\n\t\tif (hasKey(obj, key)) {\n\t\t\tkeys.push(key);\n\t\t}\n\t}\n\treturn keys.concat(Object.getOwnPropertySymbols(obj).filter((symbol) => Object.getOwnPropertyDescriptor(obj, symbol).enumerable));\n}\nfunction hasDefinedKey(obj, key) {\n\treturn hasKey(obj, key) && obj[key] !== undefined;\n}\nfunction hasKey(obj, key) {\n\treturn Object.prototype.hasOwnProperty.call(obj, key);\n}\nfunction isA(typeName, value) {\n\treturn Object.prototype.toString.apply(value) === `[object ${typeName}]`;\n}\nfunction isDomNode(obj) {\n\treturn obj !== null && typeof obj === \"object\" && \"nodeType\" in obj && typeof obj.nodeType === \"number\" && \"nodeName\" in obj && typeof obj.nodeName === \"string\" && \"isEqualNode\" in obj && typeof obj.isEqualNode === \"function\";\n}\nfunction fnNameFor(func) {\n\tif (func.name) {\n\t\treturn func.name;\n\t}\n\tconst matches = functionToString.call(func).match(/^(?:async)?\\s*function\\s*(?:\\*\\s*)?([\\w$]+)\\s*\\(/);\n\treturn matches ? matches[1] : \"<anonymous>\";\n}\nfunction getPrototype(obj) {\n\tif (Object.getPrototypeOf) {\n\t\treturn Object.getPrototypeOf(obj);\n\t}\n\tif (obj.constructor.prototype === obj) {\n\t\treturn null;\n\t}\n\treturn obj.constructor.prototype;\n}\nfunction hasProperty(obj, property) {\n\tif (!obj) {\n\t\treturn false;\n\t}\n\tif (Object.prototype.hasOwnProperty.call(obj, property)) {\n\t\treturn true;\n\t}\n\treturn hasProperty(getPrototype(obj), property);\n}\n// SENTINEL constants are from https://github.com/facebook/immutable-js\nconst IS_KEYED_SENTINEL = \"@@__IMMUTABLE_KEYED__@@\";\nconst IS_SET_SENTINEL = \"@@__IMMUTABLE_SET__@@\";\nconst IS_LIST_SENTINEL = \"@@__IMMUTABLE_LIST__@@\";\nconst IS_ORDERED_SENTINEL = \"@@__IMMUTABLE_ORDERED__@@\";\nconst IS_RECORD_SYMBOL = \"@@__IMMUTABLE_RECORD__@@\";\nfunction isImmutableUnorderedKeyed(maybeKeyed) {\n\treturn !!(maybeKeyed && maybeKeyed[IS_KEYED_SENTINEL] && !maybeKeyed[IS_ORDERED_SENTINEL]);\n}\nfunction isImmutableUnorderedSet(maybeSet) {\n\treturn !!(maybeSet && maybeSet[IS_SET_SENTINEL] && !maybeSet[IS_ORDERED_SENTINEL]);\n}\nfunction isObjectLiteral(source) {\n\treturn source != null && typeof source === \"object\" && !Array.isArray(source);\n}\nfunction isImmutableList(source) {\n\treturn Boolean(source && isObjectLiteral(source) && source[IS_LIST_SENTINEL]);\n}\nfunction isImmutableOrderedKeyed(source) {\n\treturn Boolean(source && isObjectLiteral(source) && source[IS_KEYED_SENTINEL] && source[IS_ORDERED_SENTINEL]);\n}\nfunction isImmutableOrderedSet(source) {\n\treturn Boolean(source && isObjectLiteral(source) && source[IS_SET_SENTINEL] && source[IS_ORDERED_SENTINEL]);\n}\nfunction isImmutableRecord(source) {\n\treturn Boolean(source && isObjectLiteral(source) && source[IS_RECORD_SYMBOL]);\n}\n/**\n* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n*\n* This source code is licensed under the MIT license found in the\n* LICENSE file in the root directory of this source tree.\n*\n*/\nconst IteratorSymbol = Symbol.iterator;\nfunction hasIterator(object) {\n\treturn !!(object != null && object[IteratorSymbol]);\n}\nfunction iterableEquality(a, b, customTesters = [], aStack = [], bStack = []) {\n\tif (typeof a !== \"object\" || typeof b !== \"object\" || Array.isArray(a) || Array.isArray(b) || !hasIterator(a) || !hasIterator(b)) {\n\t\treturn undefined;\n\t}\n\tif (a.constructor !== b.constructor) {\n\t\treturn false;\n\t}\n\tlet length = aStack.length;\n\twhile (length--) {\n\t\t// Linear search. Performance is inversely proportional to the number of\n\t\t// unique nested structures.\n\t\t// circular references at same depth are equal\n\t\t// circular reference is not equal to non-circular one\n\t\tif (aStack[length] === a) {\n\t\t\treturn bStack[length] === b;\n\t\t}\n\t}\n\taStack.push(a);\n\tbStack.push(b);\n\tconst filteredCustomTesters = [...customTesters.filter((t) => t !== iterableEquality), iterableEqualityWithStack];\n\tfunction iterableEqualityWithStack(a, b) {\n\t\treturn iterableEquality(a, b, [...customTesters], [...aStack], [...bStack]);\n\t}\n\tif (a.size !== undefined) {\n\t\tif (a.size !== b.size) {\n\t\t\treturn false;\n\t\t} else if (isA(\"Set\", a) || isImmutableUnorderedSet(a)) {\n\t\t\tlet allFound = true;\n\t\t\tfor (const aValue of a) {\n\t\t\t\tif (!b.has(aValue)) {\n\t\t\t\t\tlet has = false;\n\t\t\t\t\tfor (const bValue of b) {\n\t\t\t\t\t\tconst isEqual = equals(aValue, bValue, filteredCustomTesters);\n\t\t\t\t\t\tif (isEqual === true) {\n\t\t\t\t\t\t\thas = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (has === false) {\n\t\t\t\t\t\tallFound = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Remove the first value from the stack of traversed values.\n\t\t\taStack.pop();\n\t\t\tbStack.pop();\n\t\t\treturn allFound;\n\t\t} else if (isA(\"Map\", a) || isImmutableUnorderedKeyed(a)) {\n\t\t\tlet allFound = true;\n\t\t\tfor (const aEntry of a) {\n\t\t\t\tif (!b.has(aEntry[0]) || !equals(aEntry[1], b.get(aEntry[0]), filteredCustomTesters)) {\n\t\t\t\t\tlet has = false;\n\t\t\t\t\tfor (const bEntry of b) {\n\t\t\t\t\t\tconst matchedKey = equals(aEntry[0], bEntry[0], filteredCustomTesters);\n\t\t\t\t\t\tlet matchedValue = false;\n\t\t\t\t\t\tif (matchedKey === true) {\n\t\t\t\t\t\t\tmatchedValue = equals(aEntry[1], bEntry[1], filteredCustomTesters);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (matchedValue === true) {\n\t\t\t\t\t\t\thas = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (has === false) {\n\t\t\t\t\t\tallFound = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Remove the first value from the stack of traversed values.\n\t\t\taStack.pop();\n\t\t\tbStack.pop();\n\t\t\treturn allFound;\n\t\t}\n\t}\n\tconst bIterator = b[IteratorSymbol]();\n\tfor (const aValue of a) {\n\t\tconst nextB = bIterator.next();\n\t\tif (nextB.done || !equals(aValue, nextB.value, filteredCustomTesters)) {\n\t\t\treturn false;\n\t\t}\n\t}\n\tif (!bIterator.next().done) {\n\t\treturn false;\n\t}\n\tif (!isImmutableList(a) && !isImmutableOrderedKeyed(a) && !isImmutableOrderedSet(a) && !isImmutableRecord(a)) {\n\t\tconst aEntries = Object.entries(a);\n\t\tconst bEntries = Object.entries(b);\n\t\tif (!equals(aEntries, bEntries, filteredCustomTesters)) {\n\t\t\treturn false;\n\t\t}\n\t}\n\t// Remove the first value from the stack of traversed values.\n\taStack.pop();\n\tbStack.pop();\n\treturn true;\n}\n/**\n* Checks if `hasOwnProperty(object, key)` up the prototype chain, stopping at `Object.prototype`.\n*/\nfunction hasPropertyInObject(object, key) {\n\tconst shouldTerminate = !object || typeof object !== \"object\" || object === Object.prototype;\n\tif (shouldTerminate) {\n\t\treturn false;\n\t}\n\treturn Object.prototype.hasOwnProperty.call(object, key) || hasPropertyInObject(Object.getPrototypeOf(object), key);\n}\nfunction isObjectWithKeys(a) {\n\treturn isObject(a) && !(a instanceof Error) && !Array.isArray(a) && !(a instanceof Date);\n}\nfunction subsetEquality(object, subset, customTesters = []) {\n\tconst filteredCustomTesters = customTesters.filter((t) => t !== subsetEquality);\n\t// subsetEquality needs to keep track of the references\n\t// it has already visited to avoid infinite loops in case\n\t// there are circular references in the subset passed to it.\n\tconst subsetEqualityWithContext = (seenReferences = new WeakMap()) => (object, subset) => {\n\t\tif (!isObjectWithKeys(subset)) {\n\t\t\treturn undefined;\n\t\t}\n\t\treturn Object.keys(subset).every((key) => {\n\t\t\tif (subset[key] != null && typeof subset[key] === \"object\") {\n\t\t\t\tif (seenReferences.has(subset[key])) {\n\t\t\t\t\treturn equals(object[key], subset[key], filteredCustomTesters);\n\t\t\t\t}\n\t\t\t\tseenReferences.set(subset[key], true);\n\t\t\t}\n\t\t\tconst result = object != null && hasPropertyInObject(object, key) && equals(object[key], subset[key], [...filteredCustomTesters, subsetEqualityWithContext(seenReferences)]);\n\t\t\t// The main goal of using seenReference is to avoid circular node on tree.\n\t\t\t// It will only happen within a parent and its child, not a node and nodes next to it (same level)\n\t\t\t// We should keep the reference for a parent and its child only\n\t\t\t// Thus we should delete the reference immediately so that it doesn't interfere\n\t\t\t// other nodes within the same level on tree.\n\t\t\tseenReferences.delete(subset[key]);\n\t\t\treturn result;\n\t\t});\n\t};\n\treturn subsetEqualityWithContext()(object, subset);\n}\nfunction typeEquality(a, b) {\n\tif (a == null || b == null || a.constructor === b.constructor) {\n\t\treturn undefined;\n\t}\n\treturn false;\n}\nfunction arrayBufferEquality(a, b) {\n\tlet dataViewA = a;\n\tlet dataViewB = b;\n\tif (!(a instanceof DataView && b instanceof DataView)) {\n\t\tif (!(a instanceof ArrayBuffer) || !(b instanceof ArrayBuffer)) {\n\t\t\treturn undefined;\n\t\t}\n\t\ttry {\n\t\t\tdataViewA = new DataView(a);\n\t\t\tdataViewB = new DataView(b);\n\t\t} catch {\n\t\t\treturn undefined;\n\t\t}\n\t}\n\t// Buffers are not equal when they do not have the same byte length\n\tif (dataViewA.byteLength !== dataViewB.byteLength) {\n\t\treturn false;\n\t}\n\t// Check if every byte value is equal to each other\n\tfor (let i = 0; i < dataViewA.byteLength; i++) {\n\t\tif (dataViewA.getUint8(i) !== dataViewB.getUint8(i)) {\n\t\t\treturn false;\n\t\t}\n\t}\n\treturn true;\n}\nfunction sparseArrayEquality(a, b, customTesters = []) {\n\tif (!Array.isArray(a) || !Array.isArray(b)) {\n\t\treturn undefined;\n\t}\n\t// A sparse array [, , 1] will have keys [\"2\"] whereas [undefined, undefined, 1] will have keys [\"0\", \"1\", \"2\"]\n\tconst aKeys = Object.keys(a);\n\tconst bKeys = Object.keys(b);\n\tconst filteredCustomTesters = customTesters.filter((t) => t !== sparseArrayEquality);\n\treturn equals(a, b, filteredCustomTesters, true) && equals(aKeys, bKeys);\n}\nfunction generateToBeMessage(deepEqualityName, expected = \"#{this}\", actual = \"#{exp}\") {\n\tconst toBeMessage = `expected ${expected} to be ${actual} // Object.is equality`;\n\tif ([\"toStrictEqual\", \"toEqual\"].includes(deepEqualityName)) {\n\t\treturn `${toBeMessage}\\n\\nIf it should pass with deep equality, replace \"toBe\" with \"${deepEqualityName}\"\\n\\nExpected: ${expected}\\nReceived: serializes to the same string\\n`;\n\t}\n\treturn toBeMessage;\n}\nfunction pluralize(word, count) {\n\treturn `${count} ${word}${count === 1 ? \"\" : \"s\"}`;\n}\nfunction getObjectKeys(object) {\n\treturn [...Object.keys(object), ...Object.getOwnPropertySymbols(object).filter((s) => {\n\t\tvar _Object$getOwnPropert;\n\t\treturn (_Object$getOwnPropert = Object.getOwnPropertyDescriptor(object, s)) === null || _Object$getOwnPropert === void 0 ? void 0 : _Object$getOwnPropert.enumerable;\n\t})];\n}\nfunction getObjectSubset(object, subset, customTesters) {\n\tlet stripped = 0;\n\tconst getObjectSubsetWithContext = (seenReferences = new WeakMap()) => (object, subset) => {\n\t\tif (Array.isArray(object)) {\n\t\t\tif (Array.isArray(subset) && subset.length === object.length) {\n\t\t\t\t// The map method returns correct subclass of subset.\n\t\t\t\treturn subset.map((sub, i) => getObjectSubsetWithContext(seenReferences)(object[i], sub));\n\t\t\t}\n\t\t} else if (object instanceof Date) {\n\t\t\treturn object;\n\t\t} else if (isObject(object) && isObject(subset)) {\n\t\t\tif (equals(object, subset, [\n\t\t\t\t...customTesters,\n\t\t\t\titerableEquality,\n\t\t\t\tsubsetEquality\n\t\t\t])) {\n\t\t\t\t// return \"expected\" subset to avoid showing irrelevant toMatchObject diff\n\t\t\t\treturn subset;\n\t\t\t}\n\t\t\tconst trimmed = {};\n\t\t\tseenReferences.set(object, trimmed);\n\t\t\t// preserve constructor for toMatchObject diff\n\t\t\tif (typeof object.constructor === \"function\" && typeof object.constructor.name === \"string\") {\n\t\t\t\tObject.defineProperty(trimmed, \"constructor\", {\n\t\t\t\t\tenumerable: false,\n\t\t\t\t\tvalue: object.constructor\n\t\t\t\t});\n\t\t\t}\n\t\t\tfor (const key of getObjectKeys(object)) {\n\t\t\t\tif (hasPropertyInObject(subset, key)) {\n\t\t\t\t\ttrimmed[key] = seenReferences.has(object[key]) ? seenReferences.get(object[key]) : getObjectSubsetWithContext(seenReferences)(object[key], subset[key]);\n\t\t\t\t} else {\n\t\t\t\t\tif (!seenReferences.has(object[key])) {\n\t\t\t\t\t\tstripped += 1;\n\t\t\t\t\t\tif (isObject(object[key])) {\n\t\t\t\t\t\t\tstripped += getObjectKeys(object[key]).length;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tgetObjectSubsetWithContext(seenReferences)(object[key], subset[key]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (getObjectKeys(trimmed).length > 0) {\n\t\t\t\treturn trimmed;\n\t\t\t}\n\t\t}\n\t\treturn object;\n\t};\n\treturn {\n\t\tsubset: getObjectSubsetWithContext()(object, subset),\n\t\tstripped\n\t};\n}\n\nif (!Object.prototype.hasOwnProperty.call(globalThis, MATCHERS_OBJECT)) {\n\tconst globalState = new WeakMap();\n\tconst matchers = Object.create(null);\n\tconst customEqualityTesters = [];\n\tconst asymmetricMatchers = Object.create(null);\n\tObject.defineProperty(globalThis, MATCHERS_OBJECT, { get: () => globalState });\n\tObject.defineProperty(globalThis, JEST_MATCHERS_OBJECT, {\n\t\tconfigurable: true,\n\t\tget: () => ({\n\t\t\tstate: globalState.get(globalThis[GLOBAL_EXPECT]),\n\t\t\tmatchers,\n\t\t\tcustomEqualityTesters\n\t\t})\n\t});\n\tObject.defineProperty(globalThis, ASYMMETRIC_MATCHERS_OBJECT, { get: () => asymmetricMatchers });\n}\nfunction getState(expect) {\n\treturn globalThis[MATCHERS_OBJECT].get(expect);\n}\nfunction setState(state, expect) {\n\tconst map = globalThis[MATCHERS_OBJECT];\n\tconst current = map.get(expect) || {};\n\t// so it keeps getters from `testPath`\n\tconst results = Object.defineProperties(current, {\n\t\t...Object.getOwnPropertyDescriptors(current),\n\t\t...Object.getOwnPropertyDescriptors(state)\n\t});\n\tmap.set(expect, results);\n}\n\nclass AsymmetricMatcher {\n\t// should have \"jest\" to be compatible with its ecosystem\n\t$$typeof = Symbol.for(\"jest.asymmetricMatcher\");\n\tconstructor(sample, inverse = false) {\n\t\tthis.sample = sample;\n\t\tthis.inverse = inverse;\n\t}\n\tgetMatcherContext(expect) {\n\t\treturn {\n\t\t\t...getState(expect || globalThis[GLOBAL_EXPECT]),\n\t\t\tequals,\n\t\t\tisNot: this.inverse,\n\t\t\tcustomTesters: getCustomEqualityTesters(),\n\t\t\tutils: {\n\t\t\t\t...getMatcherUtils(),\n\t\t\t\tdiff,\n\t\t\t\tstringify,\n\t\t\t\titerableEquality,\n\t\t\t\tsubsetEquality\n\t\t\t}\n\t\t};\n\t}\n}\n// implement custom chai/loupe inspect for better AssertionError.message formatting\n// https://github.com/chaijs/loupe/blob/9b8a6deabcd50adc056a64fb705896194710c5c6/src/index.ts#L29\n// @ts-expect-error computed properties is not supported when isolatedDeclarations is enabled\n// FIXME: https://github.com/microsoft/TypeScript/issues/61068\nAsymmetricMatcher.prototype[Symbol.for(\"chai/inspect\")] = function(options) {\n\t// minimal pretty-format with simple manual truncation\n\tconst result = stringify(this, options.depth, { min: true });\n\tif (result.length <= options.truncate) {\n\t\treturn result;\n\t}\n\treturn `${this.toString()}{…}`;\n};\nclass StringContaining extends AsymmetricMatcher {\n\tconstructor(sample, inverse = false) {\n\t\tif (!isA(\"String\", sample)) {\n\t\t\tthrow new Error(\"Expected is not a string\");\n\t\t}\n\t\tsuper(sample, inverse);\n\t}\n\tasymmetricMatch(other) {\n\t\tconst result = isA(\"String\", other) && other.includes(this.sample);\n\t\treturn this.inverse ? !result : result;\n\t}\n\ttoString() {\n\t\treturn `String${this.inverse ? \"Not\" : \"\"}Containing`;\n\t}\n\tgetExpectedType() {\n\t\treturn \"string\";\n\t}\n}\nclass Anything extends AsymmetricMatcher {\n\tasymmetricMatch(other) {\n\t\treturn other != null;\n\t}\n\ttoString() {\n\t\treturn \"Anything\";\n\t}\n\ttoAsymmetricMatcher() {\n\t\treturn \"Anything\";\n\t}\n}\nclass ObjectContaining extends AsymmetricMatcher {\n\tconstructor(sample, inverse = false) {\n\t\tsuper(sample, inverse);\n\t}\n\tgetPrototype(obj) {\n\t\tif (Object.getPrototypeOf) {\n\t\t\treturn Object.getPrototypeOf(obj);\n\t\t}\n\t\tif (obj.constructor.prototype === obj) {\n\t\t\treturn null;\n\t\t}\n\t\treturn obj.constructor.prototype;\n\t}\n\thasProperty(obj, property) {\n\t\tif (!obj) {\n\t\t\treturn false;\n\t\t}\n\t\tif (Object.prototype.hasOwnProperty.call(obj, property)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn this.hasProperty(this.getPrototype(obj), property);\n\t}\n\tasymmetricMatch(other) {\n\t\tif (typeof this.sample !== \"object\") {\n\t\t\tthrow new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);\n\t\t}\n\t\tlet result = true;\n\t\tconst matcherContext = this.getMatcherContext();\n\t\tfor (const property in this.sample) {\n\t\t\tif (!this.hasProperty(other, property) || !equals(this.sample[property], other[property], matcherContext.customTesters)) {\n\t\t\t\tresult = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn this.inverse ? !result : result;\n\t}\n\ttoString() {\n\t\treturn `Object${this.inverse ? \"Not\" : \"\"}Containing`;\n\t}\n\tgetExpectedType() {\n\t\treturn \"object\";\n\t}\n}\nclass ArrayContaining extends AsymmetricMatcher {\n\tconstructor(sample, inverse = false) {\n\t\tsuper(sample, inverse);\n\t}\n\tasymmetricMatch(other) {\n\t\tif (!Array.isArray(this.sample)) {\n\t\t\tthrow new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);\n\t\t}\n\t\tconst matcherContext = this.getMatcherContext();\n\t\tconst result = this.sample.length === 0 || Array.isArray(other) && this.sample.every((item) => other.some((another) => equals(item, another, matcherContext.customTesters)));\n\t\treturn this.inverse ? !result : result;\n\t}\n\ttoString() {\n\t\treturn `Array${this.inverse ? \"Not\" : \"\"}Containing`;\n\t}\n\tgetExpectedType() {\n\t\treturn \"array\";\n\t}\n}\nclass Any extends AsymmetricMatcher {\n\tconstructor(sample) {\n\t\tif (typeof sample === \"undefined\") {\n\t\t\tthrow new TypeError(\"any() expects to be passed a constructor function. \" + \"Please pass one or use anything() to match any object.\");\n\t\t}\n\t\tsuper(sample);\n\t}\n\tfnNameFor(func) {\n\t\tif (func.name) {\n\t\t\treturn func.name;\n\t\t}\n\t\tconst functionToString = Function.prototype.toString;\n\t\tconst matches = functionToString.call(func).match(/^(?:async)?\\s*function\\s*(?:\\*\\s*)?([\\w$]+)\\s*\\(/);\n\t\treturn matches ? matches[1] : \"<anonymous>\";\n\t}\n\tasymmetricMatch(other) {\n\t\tif (this.sample === String) {\n\t\t\treturn typeof other == \"string\" || other instanceof String;\n\t\t}\n\t\tif (this.sample === Number) {\n\t\t\treturn typeof other == \"number\" || other instanceof Number;\n\t\t}\n\t\tif (this.sample === Function) {\n\t\t\treturn typeof other == \"function\" || typeof other === \"function\";\n\t\t}\n\t\tif (this.sample === Boolean) {\n\t\t\treturn typeof other == \"boolean\" || other instanceof Boolean;\n\t\t}\n\t\tif (this.sample === BigInt) {\n\t\t\treturn typeof other == \"bigint\" || other instanceof BigInt;\n\t\t}\n\t\tif (this.sample === Symbol) {\n\t\t\treturn typeof other == \"symbol\" || other instanceof Symbol;\n\t\t}\n\t\tif (this.sample === Object) {\n\t\t\treturn typeof other == \"object\";\n\t\t}\n\t\treturn other instanceof this.sample;\n\t}\n\ttoString() {\n\t\treturn \"Any\";\n\t}\n\tgetExpectedType() {\n\t\tif (this.sample === String) {\n\t\t\treturn \"string\";\n\t\t}\n\t\tif (this.sample === Number) {\n\t\t\treturn \"number\";\n\t\t}\n\t\tif (this.sample === Function) {\n\t\t\treturn \"function\";\n\t\t}\n\t\tif (this.sample === Object) {\n\t\t\treturn \"object\";\n\t\t}\n\t\tif (this.sample === Boolean) {\n\t\t\treturn \"boolean\";\n\t\t}\n\t\treturn this.fnNameFor(this.sample);\n\t}\n\ttoAsymmetricMatcher() {\n\t\treturn `Any<${this.fnNameFor(this.sample)}>`;\n\t}\n}\nclass StringMatching extends AsymmetricMatcher {\n\tconstructor(sample, inverse = false) {\n\t\tif (!isA(\"String\", sample) && !isA(\"RegExp\", sample)) {\n\t\t\tthrow new Error(\"Expected is not a String or a RegExp\");\n\t\t}\n\t\tsuper(new RegExp(sample), inverse);\n\t}\n\tasymmetricMatch(other) {\n\t\tconst result = isA(\"String\", other) && this.sample.test(other);\n\t\treturn this.inverse ? !result : result;\n\t}\n\ttoString() {\n\t\treturn `String${this.inverse ? \"Not\" : \"\"}Matching`;\n\t}\n\tgetExpectedType() {\n\t\treturn \"string\";\n\t}\n}\nclass CloseTo extends AsymmetricMatcher {\n\tprecision;\n\tconstructor(sample, precision = 2, inverse = false) {\n\t\tif (!isA(\"Number\", sample)) {\n\t\t\tthrow new Error(\"Expected is not a Number\");\n\t\t}\n\t\tif (!isA(\"Number\", precision)) {\n\t\t\tthrow new Error(\"Precision is not a Number\");\n\t\t}\n\t\tsuper(sample);\n\t\tthis.inverse = inverse;\n\t\tthis.precision = precision;\n\t}\n\tasymmetricMatch(other) {\n\t\tif (!isA(\"Number\", other)) {\n\t\t\treturn false;\n\t\t}\n\t\tlet result = false;\n\t\tif (other === Number.POSITIVE_INFINITY && this.sample === Number.POSITIVE_INFINITY) {\n\t\t\tresult = true;\n\t\t} else if (other === Number.NEGATIVE_INFINITY && this.sample === Number.NEGATIVE_INFINITY) {\n\t\t\tresult = true;\n\t\t} else {\n\t\t\tresult = Math.abs(this.sample - other) < 10 ** -this.precision / 2;\n\t\t}\n\t\treturn this.inverse ? !result : result;\n\t}\n\ttoString() {\n\t\treturn `Number${this.inverse ? \"Not\" : \"\"}CloseTo`;\n\t}\n\tgetExpectedType() {\n\t\treturn \"number\";\n\t}\n\ttoAsymmetricMatcher() {\n\t\treturn [\n\t\t\tthis.toString(),\n\t\t\tthis.sample,\n\t\t\t`(${pluralize(\"digit\", this.precision)})`\n\t\t].join(\" \");\n\t}\n}\nconst JestAsymmetricMatchers = (chai, utils) => {\n\tutils.addMethod(chai.expect, \"anything\", () => new Anything());\n\tutils.addMethod(chai.expect, \"any\", (expected) => new Any(expected));\n\tutils.addMethod(chai.expect, \"stringContaining\", (expected) => new StringContaining(expected));\n\tutils.addMethod(chai.expect, \"objectContaining\", (expected) => new ObjectContaining(expected));\n\tutils.addMethod(chai.expect, \"arrayContaining\", (expected) => new ArrayContaining(expected));\n\tutils.addMethod(chai.expect, \"stringMatching\", (expected) => new StringMatching(expected));\n\tutils.addMethod(chai.expect, \"closeTo\", (expected, precision) => new CloseTo(expected, precision));\n\t// defineProperty does not work\n\tchai.expect.not = {\n\t\tstringContaining: (expected) => new StringContaining(expected, true),\n\t\tobjectContaining: (expected) => new ObjectContaining(expected, true),\n\t\tarrayContaining: (expected) => new ArrayContaining(expected, true),\n\t\tstringMatching: (expected) => new StringMatching(expected, true),\n\t\tcloseTo: (expected, precision) => new CloseTo(expected, precision, true)\n\t};\n};\n\nfunction createAssertionMessage(util, assertion, hasArgs) {\n\tconst not = util.flag(assertion, \"negate\") ? \"not.\" : \"\";\n\tconst name = `${util.flag(assertion, \"_name\")}(${hasArgs ? \"expected\" : \"\"})`;\n\tconst promiseName = util.flag(assertion, \"promise\");\n\tconst promise = promiseName ? `.${promiseName}` : \"\";\n\treturn `expect(actual)${promise}.${not}${name}`;\n}\nfunction recordAsyncExpect(_test, promise, assertion, error) {\n\tconst test = _test;\n\t// record promise for test, that resolves before test ends\n\tif (test && promise instanceof Promise) {\n\t\t// if promise is explicitly awaited, remove it from the list\n\t\tpromise = promise.finally(() => {\n\t\t\tif (!test.promises) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst index = test.promises.indexOf(promise);\n\t\t\tif (index !== -1) {\n\t\t\t\ttest.promises.splice(index, 1);\n\t\t\t}\n\t\t});\n\t\t// record promise\n\t\tif (!test.promises) {\n\t\t\ttest.promises = [];\n\t\t}\n\t\ttest.promises.push(promise);\n\t\tlet resolved = false;\n\t\ttest.onFinished ?? (test.onFinished = []);\n\t\ttest.onFinished.push(() => {\n\t\t\tif (!resolved) {\n\t\t\t\tvar _vitest_worker__;\n\t\t\t\tconst processor = ((_vitest_worker__ = globalThis.__vitest_worker__) === null || _vitest_worker__ === void 0 ? void 0 : _vitest_worker__.onFilterStackTrace) || ((s) => s || \"\");\n\t\t\t\tconst stack = processor(error.stack);\n\t\t\t\tconsole.warn([\n\t\t\t\t\t`Promise returned by \\`${assertion}\\` was not awaited. `,\n\t\t\t\t\t\"Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. \",\n\t\t\t\t\t\"Please remember to await the assertion.\\n\",\n\t\t\t\t\tstack\n\t\t\t\t].join(\"\"));\n\t\t\t}\n\t\t});\n\t\treturn {\n\t\t\tthen(onFulfilled, onRejected) {\n\t\t\t\tresolved = true;\n\t\t\t\treturn promise.then(onFulfilled, onRejected);\n\t\t\t},\n\t\t\tcatch(onRejected) {\n\t\t\t\treturn promise.catch(onRejected);\n\t\t\t},\n\t\t\tfinally(onFinally) {\n\t\t\t\treturn promise.finally(onFinally);\n\t\t\t},\n\t\t\t[Symbol.toStringTag]: \"Promise\"\n\t\t};\n\t}\n\treturn promise;\n}\nfunction handleTestError(test, err) {\n\tvar _test$result;\n\ttest.result || (test.result = { state: \"fail\" });\n\ttest.result.state = \"fail\";\n\t(_test$result = test.result).errors || (_test$result.errors = []);\n\ttest.result.errors.push(processError(err));\n}\nfunction wrapAssertion(utils, name, fn) {\n\treturn function(...args) {\n\t\t// private\n\t\tif (name !== \"withTest\") {\n\t\t\tutils.flag(this, \"_name\", name);\n\t\t}\n\t\tif (!utils.flag(this, \"soft\")) {\n\t\t\treturn fn.apply(this, args);\n\t\t}\n\t\tconst test = utils.flag(this, \"vitest-test\");\n\t\tif (!test) {\n\t\t\tthrow new Error(\"expect.soft() can only be used inside a test\");\n\t\t}\n\t\ttry {\n\t\t\tconst result = fn.apply(this, args);\n\t\t\tif (result && typeof result === \"object\" && typeof result.then === \"function\") {\n\t\t\t\treturn result.then(noop, (err) => {\n\t\t\t\t\thandleTestError(test, err);\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn result;\n\t\t} catch (err) {\n\t\t\thandleTestError(test, err);\n\t\t}\n\t};\n}\n\n// Jest Expect Compact\nconst JestChaiExpect = (chai, utils) => {\n\tconst { AssertionError } = chai;\n\tconst customTesters = getCustomEqualityTesters();\n\tfunction def(name, fn) {\n\t\tconst addMethod = (n) => {\n\t\t\tconst softWrapper = wrapAssertion(utils, n, fn);\n\t\t\tutils.addMethod(chai.Assertion.prototype, n, softWrapper);\n\t\t\tutils.addMethod(globalThis[JEST_MATCHERS_OBJECT].matchers, n, softWrapper);\n\t\t};\n\t\tif (Array.isArray(name)) {\n\t\t\tname.forEach((n) => addMethod(n));\n\t\t} else {\n\t\t\taddMethod(name);\n\t\t}\n\t}\n\t[\n\t\t\"throw\",\n\t\t\"throws\",\n\t\t\"Throw\"\n\t].forEach((m) => {\n\t\tutils.overwriteMethod(chai.Assertion.prototype, m, (_super) => {\n\t\t\treturn function(...args) {\n\t\t\t\tconst promise = utils.flag(this, \"promise\");\n\t\t\t\tconst object = utils.flag(this, \"object\");\n\t\t\t\tconst isNot = utils.flag(this, \"negate\");\n\t\t\t\tif (promise === \"rejects\") {\n\t\t\t\t\tutils.flag(this, \"object\", () => {\n\t\t\t\t\t\tthrow object;\n\t\t\t\t\t});\n\t\t\t\t} else if (promise === \"resolves\" && typeof object !== \"function\") {\n\t\t\t\t\tif (!isNot) {\n\t\t\t\t\t\tconst message = utils.flag(this, \"message\") || \"expected promise to throw an error, but it didn't\";\n\t\t\t\t\t\tconst error = { showDiff: false };\n\t\t\t\t\t\tthrow new AssertionError(message, error, utils.flag(this, \"ssfi\"));\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t_super.apply(this, args);\n\t\t\t};\n\t\t});\n\t});\n\t// @ts-expect-error @internal\n\tdef(\"withTest\", function(test) {\n\t\tutils.flag(this, \"vitest-test\", test);\n\t\treturn this;\n\t});\n\tdef(\"toEqual\", function(expected) {\n\t\tconst actual = utils.flag(this, \"object\");\n\t\tconst equal = equals(actual, expected, [...customTesters, iterableEquality]);\n\t\treturn this.assert(equal, \"expected #{this} to deeply equal #{exp}\", \"expected #{this} to not deeply equal #{exp}\", expected, actual);\n\t});\n\tdef(\"toStrictEqual\", function(expected) {\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tconst equal = equals(obj, expected, [\n\t\t\t...customTesters,\n\t\t\titerableEquality,\n\t\t\ttypeEquality,\n\t\t\tsparseArrayEquality,\n\t\t\tarrayBufferEquality\n\t\t], true);\n\t\treturn this.assert(equal, \"expected #{this} to strictly equal #{exp}\", \"expected #{this} to not strictly equal #{exp}\", expected, obj);\n\t});\n\tdef(\"toBe\", function(expected) {\n\t\tconst actual = this._obj;\n\t\tconst pass = Object.is(actual, expected);\n\t\tlet deepEqualityName = \"\";\n\t\tif (!pass) {\n\t\t\tconst toStrictEqualPass = equals(actual, expected, [\n\t\t\t\t...customTesters,\n\t\t\t\titerableEquality,\n\t\t\t\ttypeEquality,\n\t\t\t\tsparseArrayEquality,\n\t\t\t\tarrayBufferEquality\n\t\t\t], true);\n\t\t\tif (toStrictEqualPass) {\n\t\t\t\tdeepEqualityName = \"toStrictEqual\";\n\t\t\t} else {\n\t\t\t\tconst toEqualPass = equals(actual, expected, [...customTesters, iterableEquality]);\n\t\t\t\tif (toEqualPass) {\n\t\t\t\t\tdeepEqualityName = \"toEqual\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn this.assert(pass, generateToBeMessage(deepEqualityName), \"expected #{this} not to be #{exp} // Object.is equality\", expected, actual);\n\t});\n\tdef(\"toMatchObject\", function(expected) {\n\t\tconst actual = this._obj;\n\t\tconst pass = equals(actual, expected, [\n\t\t\t...customTesters,\n\t\t\titerableEquality,\n\t\t\tsubsetEquality\n\t\t]);\n\t\tconst isNot = utils.flag(this, \"negate\");\n\t\tconst { subset: actualSubset, stripped } = getObjectSubset(actual, expected, customTesters);\n\t\tif (pass && isNot || !pass && !isNot) {\n\t\t\tconst msg = utils.getMessage(this, [\n\t\t\t\tpass,\n\t\t\t\t\"expected #{this} to match object #{exp}\",\n\t\t\t\t\"expected #{this} to not match object #{exp}\",\n\t\t\t\texpected,\n\t\t\t\tactualSubset,\n\t\t\t\tfalse\n\t\t\t]);\n\t\t\tconst message = stripped === 0 ? msg : `${msg}\\n(${stripped} matching ${stripped === 1 ? \"property\" : \"properties\"} omitted from actual)`;\n\t\t\tthrow new AssertionError(message, {\n\t\t\t\tshowDiff: true,\n\t\t\t\texpected,\n\t\t\t\tactual: actualSubset\n\t\t\t});\n\t\t}\n\t});\n\tdef(\"toMatch\", function(expected) {\n\t\tconst actual = this._obj;\n\t\tif (typeof actual !== \"string\") {\n\t\t\tthrow new TypeError(`.toMatch() expects to receive a string, but got ${typeof actual}`);\n\t\t}\n\t\treturn this.assert(typeof expected === \"string\" ? actual.includes(expected) : actual.match(expected), `expected #{this} to match #{exp}`, `expected #{this} not to match #{exp}`, expected, actual);\n\t});\n\tdef(\"toContain\", function(item) {\n\t\tconst actual = this._obj;\n\t\tif (typeof Node !== \"undefined\" && actual instanceof Node) {\n\t\t\tif (!(item instanceof Node)) {\n\t\t\t\tthrow new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof item}`);\n\t\t\t}\n\t\t\treturn this.assert(actual.contains(item), \"expected #{this} to contain element #{exp}\", \"expected #{this} not to contain element #{exp}\", item, actual);\n\t\t}\n\t\tif (typeof DOMTokenList !== \"undefined\" && actual instanceof DOMTokenList) {\n\t\t\tassertTypes(item, \"class name\", [\"string\"]);\n\t\t\tconst isNot = utils.flag(this, \"negate\");\n\t\t\tconst expectedClassList = isNot ? actual.value.replace(item, \"\").trim() : `${actual.value} ${item}`;\n\t\t\treturn this.assert(actual.contains(item), `expected \"${actual.value}\" to contain \"${item}\"`, `expected \"${actual.value}\" not to contain \"${item}\"`, expectedClassList, actual.value);\n\t\t}\n\t\t// handle simple case on our own using `this.assert` to include diff in error message\n\t\tif (typeof actual === \"string\" && typeof item === \"string\") {\n\t\t\treturn this.assert(actual.includes(item), `expected #{this} to contain #{exp}`, `expected #{this} not to contain #{exp}`, item, actual);\n\t\t}\n\t\t// make \"actual\" indexable to have compatibility with jest\n\t\tif (actual != null && typeof actual !== \"string\") {\n\t\t\tutils.flag(this, \"object\", Array.from(actual));\n\t\t}\n\t\treturn this.contain(item);\n\t});\n\tdef(\"toContainEqual\", function(expected) {\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tconst index = Array.from(obj).findIndex((item) => {\n\t\t\treturn equals(item, expected, customTesters);\n\t\t});\n\t\tthis.assert(index !== -1, \"expected #{this} to deep equally contain #{exp}\", \"expected #{this} to not deep equally contain #{exp}\", expected);\n\t});\n\tdef(\"toBeTruthy\", function() {\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tthis.assert(Boolean(obj), \"expected #{this} to be truthy\", \"expected #{this} to not be truthy\", true, obj);\n\t});\n\tdef(\"toBeFalsy\", function() {\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tthis.assert(!obj, \"expected #{this} to be falsy\", \"expected #{this} to not be falsy\", false, obj);\n\t});\n\tdef(\"toBeGreaterThan\", function(expected) {\n\t\tconst actual = this._obj;\n\t\tassertTypes(actual, \"actual\", [\"number\", \"bigint\"]);\n\t\tassertTypes(expected, \"expected\", [\"number\", \"bigint\"]);\n\t\treturn this.assert(actual > expected, `expected ${actual} to be greater than ${expected}`, `expected ${actual} to be not greater than ${expected}`, expected, actual, false);\n\t});\n\tdef(\"toBeGreaterThanOrEqual\", function(expected) {\n\t\tconst actual = this._obj;\n\t\tassertTypes(actual, \"actual\", [\"number\", \"bigint\"]);\n\t\tassertTypes(expected, \"expected\", [\"number\", \"bigint\"]);\n\t\treturn this.assert(actual >= expected, `expected ${actual} to be greater than or equal to ${expected}`, `expected ${actual} to be not greater than or equal to ${expected}`, expected, actual, false);\n\t});\n\tdef(\"toBeLessThan\", function(expected) {\n\t\tconst actual = this._obj;\n\t\tassertTypes(actual, \"actual\", [\"number\", \"bigint\"]);\n\t\tassertTypes(expected, \"expected\", [\"number\", \"bigint\"]);\n\t\treturn this.assert(actual < expected, `expected ${actual} to be less than ${expected}`, `expected ${actual} to be not less than ${expected}`, expected, actual, false);\n\t});\n\tdef(\"toBeLessThanOrEqual\", function(expected) {\n\t\tconst actual = this._obj;\n\t\tassertTypes(actual, \"actual\", [\"number\", \"bigint\"]);\n\t\tassertTypes(expected, \"expected\", [\"number\", \"bigint\"]);\n\t\treturn this.assert(actual <= expected, `expected ${actual} to be less than or equal to ${expected}`, `expected ${actual} to be not less than or equal to ${expected}`, expected, actual, false);\n\t});\n\tdef(\"toBeNaN\", function() {\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tthis.assert(Number.isNaN(obj), \"expected #{this} to be NaN\", \"expected #{this} not to be NaN\", Number.NaN, obj);\n\t});\n\tdef(\"toBeUndefined\", function() {\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tthis.assert(undefined === obj, \"expected #{this} to be undefined\", \"expected #{this} not to be undefined\", undefined, obj);\n\t});\n\tdef(\"toBeNull\", function() {\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tthis.assert(obj === null, \"expected #{this} to be null\", \"expected #{this} not to be null\", null, obj);\n\t});\n\tdef(\"toBeDefined\", function() {\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tthis.assert(typeof obj !== \"undefined\", \"expected #{this} to be defined\", \"expected #{this} to be undefined\", obj);\n\t});\n\tdef(\"toBeTypeOf\", function(expected) {\n\t\tconst actual = typeof this._obj;\n\t\tconst equal = expected === actual;\n\t\treturn this.assert(equal, \"expected #{this} to be type of #{exp}\", \"expected #{this} not to be type of #{exp}\", expected, actual);\n\t});\n\tdef(\"toBeInstanceOf\", function(obj) {\n\t\treturn this.instanceOf(obj);\n\t});\n\tdef(\"toHaveLength\", function(length) {\n\t\treturn this.have.length(length);\n\t});\n\t// destructuring, because it checks `arguments` inside, and value is passing as `undefined`\n\tdef(\"toHaveProperty\", function(...args) {\n\t\tif (Array.isArray(args[0])) {\n\t\t\targs[0] = args[0].map((key) => String(key).replace(/([.[\\]])/g, \"\\\\$1\")).join(\".\");\n\t\t}\n\t\tconst actual = this._obj;\n\t\tconst [propertyName, expected] = args;\n\t\tconst getValue = () => {\n\t\t\tconst hasOwn = Object.prototype.hasOwnProperty.call(actual, propertyName);\n\t\t\tif (hasOwn) {\n\t\t\t\treturn {\n\t\t\t\t\tvalue: actual[propertyName],\n\t\t\t\t\texists: true\n\t\t\t\t};\n\t\t\t}\n\t\t\treturn utils.getPathInfo(actual, propertyName);\n\t\t};\n\t\tconst { value, exists } = getValue();\n\t\tconst pass = exists && (args.length === 1 || equals(expected, value, customTesters));\n\t\tconst valueString = args.length === 1 ? \"\" : ` with value ${utils.objDisplay(expected)}`;\n\t\treturn this.assert(pass, `expected #{this} to have property \"${propertyName}\"${valueString}`, `expected #{this} to not have property \"${propertyName}\"${valueString}`, expected, exists ? value : undefined);\n\t});\n\tdef(\"toBeCloseTo\", function(received, precision = 2) {\n\t\tconst expected = this._obj;\n\t\tlet pass = false;\n\t\tlet expectedDiff = 0;\n\t\tlet receivedDiff = 0;\n\t\tif (received === Number.POSITIVE_INFINITY && expected === Number.POSITIVE_INFINITY) {\n\t\t\tpass = true;\n\t\t} else if (received === Number.NEGATIVE_INFINITY && expected === Number.NEGATIVE_INFINITY) {\n\t\t\tpass = true;\n\t\t} else {\n\t\t\texpectedDiff = 10 ** -precision / 2;\n\t\t\treceivedDiff = Math.abs(expected - received);\n\t\t\tpass = receivedDiff < expectedDiff;\n\t\t}\n\t\treturn 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);\n\t});\n\tfunction assertIsMock(assertion) {\n\t\tif (!isMockFunction(assertion._obj)) {\n\t\t\tthrow new TypeError(`${utils.inspect(assertion._obj)} is not a spy or a call to a spy!`);\n\t\t}\n\t}\n\tfunction getSpy(assertion) {\n\t\tassertIsMock(assertion);\n\t\treturn assertion._obj;\n\t}\n\tdef([\"toHaveBeenCalledTimes\", \"toBeCalledTimes\"], function(number) {\n\t\tconst spy = getSpy(this);\n\t\tconst spyName = spy.getMockName();\n\t\tconst callCount = spy.mock.calls.length;\n\t\treturn this.assert(callCount === number, `expected \"${spyName}\" to be called #{exp} times, but got ${callCount} times`, `expected \"${spyName}\" to not be called #{exp} times`, number, callCount, false);\n\t});\n\tdef(\"toHaveBeenCalledOnce\", function() {\n\t\tconst spy = getSpy(this);\n\t\tconst spyName = spy.getMockName();\n\t\tconst callCount = spy.mock.calls.length;\n\t\treturn this.assert(callCount === 1, `expected \"${spyName}\" to be called once, but got ${callCount} times`, `expected \"${spyName}\" to not be called once`, 1, callCount, false);\n\t});\n\tdef([\"toHaveBeenCalled\", \"toBeCalled\"], function() {\n\t\tconst spy = getSpy(this);\n\t\tconst spyName = spy.getMockName();\n\t\tconst callCount = spy.mock.calls.length;\n\t\tconst called = callCount > 0;\n\t\tconst isNot = utils.flag(this, \"negate\");\n\t\tlet msg = utils.getMessage(this, [\n\t\t\tcalled,\n\t\t\t`expected \"${spyName}\" to be called at least once`,\n\t\t\t`expected \"${spyName}\" to not be called at all, but actually been called ${callCount} times`,\n\t\t\ttrue,\n\t\t\tcalled\n\t\t]);\n\t\tif (called && isNot) {\n\t\t\tmsg = formatCalls(spy, msg);\n\t\t}\n\t\tif (called && isNot || !called && !isNot) {\n\t\t\tthrow new AssertionError(msg);\n\t\t}\n\t});\n\t// manually compare array elements since `jestEquals` cannot\n\t// apply asymmetric matcher to `undefined` array element.\n\tfunction equalsArgumentArray(a, b) {\n\t\treturn a.length === b.length && a.every((aItem, i) => equals(aItem, b[i], [...customTesters, iterableEquality]));\n\t}\n\tdef([\"toHaveBeenCalledWith\", \"toBeCalledWith\"], function(...args) {\n\t\tconst spy = getSpy(this);\n\t\tconst spyName = spy.getMockName();\n\t\tconst pass = spy.mock.calls.some((callArg) => equalsArgumentArray(callArg, args));\n\t\tconst isNot = utils.flag(this, \"negate\");\n\t\tconst msg = utils.getMessage(this, [\n\t\t\tpass,\n\t\t\t`expected \"${spyName}\" to be called with arguments: #{exp}`,\n\t\t\t`expected \"${spyName}\" to not be called with arguments: #{exp}`,\n\t\t\targs\n\t\t]);\n\t\tif (pass && isNot || !pass && !isNot) {\n\t\t\tthrow new AssertionError(formatCalls(spy, msg, args));\n\t\t}\n\t});\n\tdef(\"toHaveBeenCalledExactlyOnceWith\", function(...args) {\n\t\tconst spy = getSpy(this);\n\t\tconst spyName = spy.getMockName();\n\t\tconst callCount = spy.mock.calls.length;\n\t\tconst hasCallWithArgs = spy.mock.calls.some((callArg) => equalsArgumentArray(callArg, args));\n\t\tconst pass = hasCallWithArgs && callCount === 1;\n\t\tconst isNot = utils.flag(this, \"negate\");\n\t\tconst msg = utils.getMessage(this, [\n\t\t\tpass,\n\t\t\t`expected \"${spyName}\" to be called once with arguments: #{exp}`,\n\t\t\t`expected \"${spyName}\" to not be called once with arguments: #{exp}`,\n\t\t\targs\n\t\t]);\n\t\tif (pass && isNot || !pass && !isNot) {\n\t\t\tthrow new AssertionError(formatCalls(spy, msg, args));\n\t\t}\n\t});\n\tdef([\"toHaveBeenNthCalledWith\", \"nthCalledWith\"], function(times, ...args) {\n\t\tconst spy = getSpy(this);\n\t\tconst spyName = spy.getMockName();\n\t\tconst nthCall = spy.mock.calls[times - 1];\n\t\tconst callCount = spy.mock.calls.length;\n\t\tconst isCalled = times <= callCount;\n\t\tthis.assert(nthCall && equalsArgumentArray(nthCall, args), `expected ${ordinalOf(times)} \"${spyName}\" call to have been called with #{exp}${isCalled ? `` : `, but called only ${callCount} times`}`, `expected ${ordinalOf(times)} \"${spyName}\" call to not have been called with #{exp}`, args, nthCall, isCalled);\n\t});\n\tdef([\"toHaveBeenLastCalledWith\", \"lastCalledWith\"], function(...args) {\n\t\tconst spy = getSpy(this);\n\t\tconst spyName = spy.getMockName();\n\t\tconst lastCall = spy.mock.calls[spy.mock.calls.length - 1];\n\t\tthis.assert(lastCall && equalsArgumentArray(lastCall, args), `expected last \"${spyName}\" call to have been called with #{exp}`, `expected last \"${spyName}\" call to not have been called with #{exp}`, args, lastCall);\n\t});\n\t/**\n\t* Used for `toHaveBeenCalledBefore` and `toHaveBeenCalledAfter` to determine if the expected spy was called before the result spy.\n\t*/\n\tfunction isSpyCalledBeforeAnotherSpy(beforeSpy, afterSpy, failIfNoFirstInvocation) {\n\t\tconst beforeInvocationCallOrder = beforeSpy.mock.invocationCallOrder;\n\t\tconst afterInvocationCallOrder = afterSpy.mock.invocationCallOrder;\n\t\tif (beforeInvocationCallOrder.length === 0) {\n\t\t\treturn !failIfNoFirstInvocation;\n\t\t}\n\t\tif (afterInvocationCallOrder.length === 0) {\n\t\t\treturn false;\n\t\t}\n\t\treturn beforeInvocationCallOrder[0] < afterInvocationCallOrder[0];\n\t}\n\tdef([\"toHaveBeenCalledBefore\"], function(resultSpy, failIfNoFirstInvocation = true) {\n\t\tconst expectSpy = getSpy(this);\n\t\tif (!isMockFunction(resultSpy)) {\n\t\t\tthrow new TypeError(`${utils.inspect(resultSpy)} is not a spy or a call to a spy`);\n\t\t}\n\t\tthis.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);\n\t});\n\tdef([\"toHaveBeenCalledAfter\"], function(resultSpy, failIfNoFirstInvocation = true) {\n\t\tconst expectSpy = getSpy(this);\n\t\tif (!isMockFunction(resultSpy)) {\n\t\t\tthrow new TypeError(`${utils.inspect(resultSpy)} is not a spy or a call to a spy`);\n\t\t}\n\t\tthis.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);\n\t});\n\tdef([\"toThrow\", \"toThrowError\"], function(expected) {\n\t\tif (typeof expected === \"string\" || typeof expected === \"undefined\" || expected instanceof RegExp) {\n\t\t\t// Fixes the issue related to `chai` <https://github.com/vitest-dev/vitest/issues/6618>\n\t\t\treturn this.throws(expected === \"\" ? /^$/ : expected);\n\t\t}\n\t\tconst obj = this._obj;\n\t\tconst promise = utils.flag(this, \"promise\");\n\t\tconst isNot = utils.flag(this, \"negate\");\n\t\tlet thrown = null;\n\t\tif (promise === \"rejects\") {\n\t\t\tthrown = obj;\n\t\t} else if (promise === \"resolves\" && typeof obj !== \"function\") {\n\t\t\tif (!isNot) {\n\t\t\t\tconst message = utils.flag(this, \"message\") || \"expected promise to throw an error, but it didn't\";\n\t\t\t\tconst error = { showDiff: false };\n\t\t\t\tthrow new AssertionError(message, error, utils.flag(this, \"ssfi\"));\n\t\t\t} else {\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else {\n\t\t\tlet isThrow = false;\n\t\t\ttry {\n\t\t\t\tobj();\n\t\t\t} catch (err) {\n\t\t\t\tisThrow = true;\n\t\t\t\tthrown = err;\n\t\t\t}\n\t\t\tif (!isThrow && !isNot) {\n\t\t\t\tconst message = utils.flag(this, \"message\") || \"expected function to throw an error, but it didn't\";\n\t\t\t\tconst error = { showDiff: false };\n\t\t\t\tthrow new AssertionError(message, error, utils.flag(this, \"ssfi\"));\n\t\t\t}\n\t\t}\n\t\tif (typeof expected === \"function\") {\n\t\t\tconst name = expected.name || expected.prototype.constructor.name;\n\t\t\treturn this.assert(thrown && thrown instanceof expected, `expected error to be instance of ${name}`, `expected error not to be instance of ${name}`, expected, thrown);\n\t\t}\n\t\tif (expected instanceof Error) {\n\t\t\tconst equal = equals(thrown, expected, [...customTesters, iterableEquality]);\n\t\t\treturn this.assert(equal, \"expected a thrown error to be #{exp}\", \"expected a thrown error not to be #{exp}\", expected, thrown);\n\t\t}\n\t\tif (typeof expected === \"object\" && \"asymmetricMatch\" in expected && typeof expected.asymmetricMatch === \"function\") {\n\t\t\tconst matcher = expected;\n\t\t\treturn this.assert(thrown && matcher.asymmetricMatch(thrown), \"expected error to match asymmetric matcher\", \"expected error not to match asymmetric matcher\", matcher, thrown);\n\t\t}\n\t\tthrow new Error(`\"toThrow\" expects string, RegExp, function, Error instance or asymmetric matcher, got \"${typeof expected}\"`);\n\t});\n\t[{\n\t\tname: \"toHaveResolved\",\n\t\tcondition: (spy) => spy.mock.settledResults.length > 0 && spy.mock.settledResults.some(({ type }) => type === \"fulfilled\"),\n\t\taction: \"resolved\"\n\t}, {\n\t\tname: [\"toHaveReturned\", \"toReturn\"],\n\t\tcondition: (spy) => spy.mock.calls.length > 0 && spy.mock.results.some(({ type }) => type !== \"throw\"),\n\t\taction: \"called\"\n\t}].forEach(({ name, condition, action }) => {\n\t\tdef(name, function() {\n\t\t\tconst spy = getSpy(this);\n\t\t\tconst spyName = spy.getMockName();\n\t\t\tconst pass = condition(spy);\n\t\t\tthis.assert(pass, `expected \"${spyName}\" to be successfully ${action} at least once`, `expected \"${spyName}\" to not be successfully ${action}`, pass, !pass, false);\n\t\t});\n\t});\n\t[{\n\t\tname: \"toHaveResolvedTimes\",\n\t\tcondition: (spy, times) => spy.mock.settledResults.reduce((s, { type }) => type === \"fulfilled\" ? ++s : s, 0) === times,\n\t\taction: \"resolved\"\n\t}, {\n\t\tname: [\"toHaveReturnedTimes\", \"toReturnTimes\"],\n\t\tcondition: (spy, times) => spy.mock.results.reduce((s, { type }) => type === \"throw\" ? s : ++s, 0) === times,\n\t\taction: \"called\"\n\t}].forEach(({ name, condition, action }) => {\n\t\tdef(name, function(times) {\n\t\t\tconst spy = getSpy(this);\n\t\t\tconst spyName = spy.getMockName();\n\t\t\tconst pass = condition(spy, times);\n\t\t\tthis.assert(pass, `expected \"${spyName}\" to be successfully ${action} ${times} times`, `expected \"${spyName}\" to not be successfully ${action} ${times} times`, `expected resolved times: ${times}`, `received resolved times: ${pass}`, false);\n\t\t});\n\t});\n\t[{\n\t\tname: \"toHaveResolvedWith\",\n\t\tcondition: (spy, value) => spy.mock.settledResults.some(({ type, value: result }) => type === \"fulfilled\" && equals(value, result)),\n\t\taction: \"resolve\"\n\t}, {\n\t\tname: [\"toHaveReturnedWith\", \"toReturnWith\"],\n\t\tcondition: (spy, value) => spy.mock.results.some(({ type, value: result }) => type === \"return\" && equals(value, result)),\n\t\taction: \"return\"\n\t}].forEach(({ name, condition, action }) => {\n\t\tdef(name, function(value) {\n\t\t\tconst spy = getSpy(this);\n\t\t\tconst pass = condition(spy, value);\n\t\t\tconst isNot = utils.flag(this, \"negate\");\n\t\t\tif (pass && isNot || !pass && !isNot) {\n\t\t\t\tconst spyName = spy.getMockName();\n\t\t\t\tconst msg = utils.getMessage(this, [\n\t\t\t\t\tpass,\n\t\t\t\t\t`expected \"${spyName}\" to ${action} with: #{exp} at least once`,\n\t\t\t\t\t`expected \"${spyName}\" to not ${action} with: #{exp}`,\n\t\t\t\t\tvalue\n\t\t\t\t]);\n\t\t\t\tconst results = action === \"return\" ? spy.mock.results : spy.mock.settledResults;\n\t\t\t\tthrow new AssertionError(formatReturns(spy, results, msg, value));\n\t\t\t}\n\t\t});\n\t});\n\t[{\n\t\tname: \"toHaveLastResolvedWith\",\n\t\tcondition: (spy, value) => {\n\t\t\tconst result = spy.mock.settledResults[spy.mock.settledResults.length - 1];\n\t\t\treturn result && result.type === \"fulfilled\" && equals(result.value, value);\n\t\t},\n\t\taction: \"resolve\"\n\t}, {\n\t\tname: [\"toHaveLastReturnedWith\", \"lastReturnedWith\"],\n\t\tcondition: (spy, value) => {\n\t\t\tconst result = spy.mock.results[spy.mock.results.length - 1];\n\t\t\treturn result && result.type === \"return\" && equals(result.value, value);\n\t\t},\n\t\taction: \"return\"\n\t}].forEach(({ name, condition, action }) => {\n\t\tdef(name, function(value) {\n\t\t\tconst spy = getSpy(this);\n\t\t\tconst results = action === \"return\" ? spy.mock.results : spy.mock.settledResults;\n\t\t\tconst result = results[results.length - 1];\n\t\t\tconst spyName = spy.getMockName();\n\t\t\tthis.assert(condition(spy, value), `expected last \"${spyName}\" call to ${action} #{exp}`, `expected last \"${spyName}\" call to not ${action} #{exp}`, value, result === null || result === void 0 ? void 0 : result.value);\n\t\t});\n\t});\n\t[{\n\t\tname: \"toHaveNthResolvedWith\",\n\t\tcondition: (spy, index, value) => {\n\t\t\tconst result = spy.mock.settledResults[index - 1];\n\t\t\treturn result && result.type === \"fulfilled\" && equals(result.value, value);\n\t\t},\n\t\taction: \"resolve\"\n\t}, {\n\t\tname: [\"toHaveNthReturnedWith\", \"nthReturnedWith\"],\n\t\tcondition: (spy, index, value) => {\n\t\t\tconst result = spy.mock.results[index - 1];\n\t\t\treturn result && result.type === \"return\" && equals(result.value, value);\n\t\t},\n\t\taction: \"return\"\n\t}].forEach(({ name, condition, action }) => {\n\t\tdef(name, function(nthCall, value) {\n\t\t\tconst spy = getSpy(this);\n\t\t\tconst spyName = spy.getMockName();\n\t\t\tconst results = action === \"return\" ? spy.mock.results : spy.mock.settledResults;\n\t\t\tconst result = results[nthCall - 1];\n\t\t\tconst ordinalCall = `${ordinalOf(nthCall)} call`;\n\t\t\tthis.assert(condition(spy, nthCall, value), `expected ${ordinalCall} \"${spyName}\" call to ${action} #{exp}`, `expected ${ordinalCall} \"${spyName}\" call to not ${action} #{exp}`, value, result === null || result === void 0 ? void 0 : result.value);\n\t\t});\n\t});\n\t// @ts-expect-error @internal\n\tdef(\"withContext\", function(context) {\n\t\tfor (const key in context) {\n\t\t\tutils.flag(this, key, context[key]);\n\t\t}\n\t\treturn this;\n\t});\n\tutils.addProperty(chai.Assertion.prototype, \"resolves\", function __VITEST_RESOLVES__() {\n\t\tconst error = new Error(\"resolves\");\n\t\tutils.flag(this, \"promise\", \"resolves\");\n\t\tutils.flag(this, \"error\", error);\n\t\tconst test = utils.flag(this, \"vitest-test\");\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tif (utils.flag(this, \"poll\")) {\n\t\t\tthrow new SyntaxError(`expect.poll() is not supported in combination with .resolves`);\n\t\t}\n\t\tif (typeof (obj === null || obj === void 0 ? void 0 : obj.then) !== \"function\") {\n\t\t\tthrow new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof obj}'.`);\n\t\t}\n\t\tconst proxy = new Proxy(this, { get: (target, key, receiver) => {\n\t\t\tconst result = Reflect.get(target, key, receiver);\n\t\t\tif (typeof result !== \"function\") {\n\t\t\t\treturn result instanceof chai.Assertion ? proxy : result;\n\t\t\t}\n\t\t\treturn (...args) => {\n\t\t\t\tutils.flag(this, \"_name\", key);\n\t\t\t\tconst promise = obj.then((value) => {\n\t\t\t\t\tutils.flag(this, \"object\", value);\n\t\t\t\t\treturn result.call(this, ...args);\n\t\t\t\t}, (err) => {\n\t\t\t\t\tconst _error = new AssertionError(`promise rejected \"${utils.inspect(err)}\" instead of resolving`, { showDiff: false });\n\t\t\t\t\t_error.cause = err;\n\t\t\t\t\t_error.stack = error.stack.replace(error.message, _error.message);\n\t\t\t\t\tthrow _error;\n\t\t\t\t});\n\t\t\t\treturn recordAsyncExpect(test, promise, createAssertionMessage(utils, this, !!args.length), error);\n\t\t\t};\n\t\t} });\n\t\treturn proxy;\n\t});\n\tutils.addProperty(chai.Assertion.prototype, \"rejects\", function __VITEST_REJECTS__() {\n\t\tconst error = new Error(\"rejects\");\n\t\tutils.flag(this, \"promise\", \"rejects\");\n\t\tutils.flag(this, \"error\", error);\n\t\tconst test = utils.flag(this, \"vitest-test\");\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tconst wrapper = typeof obj === \"function\" ? obj() : obj;\n\t\tif (utils.flag(this, \"poll\")) {\n\t\t\tthrow new SyntaxError(`expect.poll() is not supported in combination with .rejects`);\n\t\t}\n\t\tif (typeof (wrapper === null || wrapper === void 0 ? void 0 : wrapper.then) !== \"function\") {\n\t\t\tthrow new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof wrapper}'.`);\n\t\t}\n\t\tconst proxy = new Proxy(this, { get: (target, key, receiver) => {\n\t\t\tconst result = Reflect.get(target, key, receiver);\n\t\t\tif (typeof result !== \"function\") {\n\t\t\t\treturn result instanceof chai.Assertion ? proxy : result;\n\t\t\t}\n\t\t\treturn (...args) => {\n\t\t\t\tutils.flag(this, \"_name\", key);\n\t\t\t\tconst promise = wrapper.then((value) => {\n\t\t\t\t\tconst _error = new AssertionError(`promise resolved \"${utils.inspect(value)}\" instead of rejecting`, {\n\t\t\t\t\t\tshowDiff: true,\n\t\t\t\t\t\texpected: new Error(\"rejected promise\"),\n\t\t\t\t\t\tactual: value\n\t\t\t\t\t});\n\t\t\t\t\t_error.stack = error.stack.replace(error.message, _error.message);\n\t\t\t\t\tthrow _error;\n\t\t\t\t}, (err) => {\n\t\t\t\t\tutils.flag(this, \"object\", err);\n\t\t\t\t\treturn result.call(this, ...args);\n\t\t\t\t});\n\t\t\t\treturn recordAsyncExpect(test, promise, createAssertionMessage(utils, this, !!args.length), error);\n\t\t\t};\n\t\t} });\n\t\treturn proxy;\n\t});\n};\nfunction ordinalOf(i) {\n\tconst j = i % 10;\n\tconst k = i % 100;\n\tif (j === 1 && k !== 11) {\n\t\treturn `${i}st`;\n\t}\n\tif (j === 2 && k !== 12) {\n\t\treturn `${i}nd`;\n\t}\n\tif (j === 3 && k !== 13) {\n\t\treturn `${i}rd`;\n\t}\n\treturn `${i}th`;\n}\nfunction formatCalls(spy, msg, showActualCall) {\n\tif (spy.mock.calls.length) {\n\t\tmsg += c.gray(`\\n\\nReceived: \\n\\n${spy.mock.calls.map((callArg, i) => {\n\t\t\tlet methodCall = c.bold(` ${ordinalOf(i + 1)} ${spy.getMockName()} call:\\n\\n`);\n\t\t\tif (showActualCall) {\n\t\t\t\tmethodCall += diff(showActualCall, callArg, { omitAnnotationLines: true });\n\t\t\t} else {\n\t\t\t\tmethodCall += stringify(callArg).split(\"\\n\").map((line) => ` ${line}`).join(\"\\n\");\n\t\t\t}\n\t\t\tmethodCall += \"\\n\";\n\t\t\treturn methodCall;\n\t\t}).join(\"\\n\")}`);\n\t}\n\tmsg += c.gray(`\\n\\nNumber of calls: ${c.bold(spy.mock.calls.length)}\\n`);\n\treturn msg;\n}\nfunction formatReturns(spy, results, msg, showActualReturn) {\n\tif (results.length) {\n\t\tmsg += c.gray(`\\n\\nReceived: \\n\\n${results.map((callReturn, i) => {\n\t\t\tlet methodCall = c.bold(` ${ordinalOf(i + 1)} ${spy.getMockName()} call return:\\n\\n`);\n\t\t\tif (showActualReturn) {\n\t\t\t\tmethodCall += diff(showActualReturn, callReturn.value, { omitAnnotationLines: true });\n\t\t\t} else {\n\t\t\t\tmethodCall += stringify(callReturn).split(\"\\n\").map((line) => ` ${line}`).join(\"\\n\");\n\t\t\t}\n\t\t\tmethodCall += \"\\n\";\n\t\t\treturn methodCall;\n\t\t}).join(\"\\n\")}`);\n\t}\n\tmsg += c.gray(`\\n\\nNumber of calls: ${c.bold(spy.mock.calls.length)}\\n`);\n\treturn msg;\n}\n\nfunction getMatcherState(assertion, expect) {\n\tconst obj = assertion._obj;\n\tconst isNot = util.flag(assertion, \"negate\");\n\tconst promise = util.flag(assertion, \"promise\") || \"\";\n\tconst jestUtils = {\n\t\t...getMatcherUtils(),\n\t\tdiff,\n\t\tstringify,\n\t\titerableEquality,\n\t\tsubsetEquality\n\t};\n\tconst matcherState = {\n\t\t...getState(expect),\n\t\tcustomTesters: getCustomEqualityTesters(),\n\t\tisNot,\n\t\tutils: jestUtils,\n\t\tpromise,\n\t\tequals,\n\t\tsuppressedErrors: [],\n\t\tsoft: util.flag(assertion, \"soft\"),\n\t\tpoll: util.flag(assertion, \"poll\")\n\t};\n\treturn {\n\t\tstate: matcherState,\n\t\tisNot,\n\t\tobj\n\t};\n}\nclass JestExtendError extends Error {\n\tconstructor(message, actual, expected) {\n\t\tsuper(message);\n\t\tthis.actual = actual;\n\t\tthis.expected = expected;\n\t}\n}\nfunction JestExtendPlugin(c, expect, matchers) {\n\treturn (_, utils) => {\n\t\tObject.entries(matchers).forEach(([expectAssertionName, expectAssertion]) => {\n\t\t\tfunction expectWrapper(...args) {\n\t\t\t\tconst { state, isNot, obj } = getMatcherState(this, expect);\n\t\t\t\tconst result = expectAssertion.call(state, obj, ...args);\n\t\t\t\tif (result && typeof result === \"object\" && typeof result.then === \"function\") {\n\t\t\t\t\tconst thenable = result;\n\t\t\t\t\treturn thenable.then(({ pass, message, actual, expected }) => {\n\t\t\t\t\t\tif (pass && isNot || !pass && !isNot) {\n\t\t\t\t\t\t\tthrow new JestExtendError(message(), actual, expected);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tconst { pass, message, actual, expected } = result;\n\t\t\t\tif (pass && isNot || !pass && !isNot) {\n\t\t\t\t\tthrow new JestExtendError(message(), actual, expected);\n\t\t\t\t}\n\t\t\t}\n\t\t\tconst softWrapper = wrapAssertion(utils, expectAssertionName, expectWrapper);\n\t\t\tutils.addMethod(globalThis[JEST_MATCHERS_OBJECT].matchers, expectAssertionName, softWrapper);\n\t\t\tutils.addMethod(c.Assertion.prototype, expectAssertionName, softWrapper);\n\t\t\tclass CustomMatcher extends AsymmetricMatcher {\n\t\t\t\tconstructor(inverse = false, ...sample) {\n\t\t\t\t\tsuper(sample, inverse);\n\t\t\t\t}\n\t\t\t\tasymmetricMatch(other) {\n\t\t\t\t\tconst { pass } = expectAssertion.call(this.getMatcherContext(expect), other, ...this.sample);\n\t\t\t\t\treturn this.inverse ? !pass : pass;\n\t\t\t\t}\n\t\t\t\ttoString() {\n\t\t\t\t\treturn `${this.inverse ? \"not.\" : \"\"}${expectAssertionName}`;\n\t\t\t\t}\n\t\t\t\tgetExpectedType() {\n\t\t\t\t\treturn \"any\";\n\t\t\t\t}\n\t\t\t\ttoAsymmetricMatcher() {\n\t\t\t\t\treturn `${this.toString()}<${this.sample.map((item) => stringify(item)).join(\", \")}>`;\n\t\t\t\t}\n\t\t\t}\n\t\t\tconst customMatcher = (...sample) => new CustomMatcher(false, ...sample);\n\t\t\tObject.defineProperty(expect, expectAssertionName, {\n\t\t\t\tconfigurable: true,\n\t\t\t\tenumerable: true,\n\t\t\t\tvalue: customMatcher,\n\t\t\t\twritable: true\n\t\t\t});\n\t\t\tObject.defineProperty(expect.not, expectAssertionName, {\n\t\t\t\tconfigurable: true,\n\t\t\t\tenumerable: true,\n\t\t\t\tvalue: (...sample) => new CustomMatcher(true, ...sample),\n\t\t\t\twritable: true\n\t\t\t});\n\t\t\t// keep track of asymmetric matchers on global so that it can be copied over to local context's `expect`.\n\t\t\t// note that the negated variant is automatically shared since it's assigned on the single `expect.not` object.\n\t\t\tObject.defineProperty(globalThis[ASYMMETRIC_MATCHERS_OBJECT], expectAssertionName, {\n\t\t\t\tconfigurable: true,\n\t\t\t\tenumerable: true,\n\t\t\t\tvalue: customMatcher,\n\t\t\t\twritable: true\n\t\t\t});\n\t\t});\n\t};\n}\nconst JestExtend = (chai, utils) => {\n\tutils.addMethod(chai.expect, \"extend\", (expect, expects) => {\n\t\tuse(JestExtendPlugin(chai, expect, expects));\n\t});\n};\n\nexport { ASYMMETRIC_MATCHERS_OBJECT, Any, Anything, ArrayContaining, AsymmetricMatcher, GLOBAL_EXPECT, JEST_MATCHERS_OBJECT, JestAsymmetricMatchers, JestChaiExpect, JestExtend, MATCHERS_OBJECT, ObjectContaining, StringContaining, StringMatching, addCustomEqualityTesters, arrayBufferEquality, customMatchers, equals, fnNameFor, generateToBeMessage, getObjectKeys, getObjectSubset, getState, hasAsymmetric, hasProperty, isA, isAsymmetric, isImmutableUnorderedKeyed, isImmutableUnorderedSet, iterableEquality, pluralize, setState, sparseArrayEquality, subsetEquality, typeEquality };\n","import { getSafeTimers } from '@vitest/utils';\n\nconst NAME_WORKER_STATE = \"__vitest_worker__\";\nfunction getWorkerState() {\n\t// @ts-expect-error untyped global\n\tconst workerState = globalThis[NAME_WORKER_STATE];\n\tif (!workerState) {\n\t\tconst errorMsg = \"Vitest failed to access its internal state.\\n\\nOne of the following is possible:\\n- \\\"vitest\\\" is imported directly without running \\\"vitest\\\" command\\n- \\\"vitest\\\" is imported inside \\\"globalSetup\\\" (to fix this, use \\\"setupFiles\\\" instead, because \\\"globalSetup\\\" runs in a different context)\\n- \\\"vitest\\\" is imported inside Vite / Vitest config file\\n- Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues\\n\";\n\t\tthrow new Error(errorMsg);\n\t}\n\treturn workerState;\n}\nfunction provideWorkerState(context, state) {\n\tObject.defineProperty(context, NAME_WORKER_STATE, {\n\t\tvalue: state,\n\t\tconfigurable: true,\n\t\twritable: true,\n\t\tenumerable: false\n\t});\n\treturn state;\n}\nfunction getCurrentEnvironment() {\n\tconst state = getWorkerState();\n\treturn state?.environment.name;\n}\nfunction isChildProcess() {\n\treturn typeof process !== \"undefined\" && !!process.send;\n}\nfunction setProcessTitle(title) {\n\ttry {\n\t\tprocess.title = `node (${title})`;\n\t} catch {}\n}\nfunction resetModules(modules, resetMocks = false) {\n\tconst skipPaths = [\n\t\t/\\/vitest\\/dist\\//,\n\t\t/\\/vite-node\\/dist\\//,\n\t\t/vitest-virtual-\\w+\\/dist/,\n\t\t/@vitest\\/dist/,\n\t\t...!resetMocks ? [/^mock:/] : []\n\t];\n\tmodules.forEach((mod, path) => {\n\t\tif (skipPaths.some((re) => re.test(path))) return;\n\t\tmodules.invalidateModule(mod);\n\t});\n}\nfunction waitNextTick() {\n\tconst { setTimeout } = getSafeTimers();\n\treturn new Promise((resolve) => setTimeout(resolve, 0));\n}\nasync function waitForImportsToResolve() {\n\tawait waitNextTick();\n\tconst state = getWorkerState();\n\tconst promises = [];\n\tlet resolvingCount = 0;\n\tfor (const mod of state.moduleCache.values()) {\n\t\tif (mod.promise && !mod.evaluated) promises.push(mod.promise);\n\t\tif (mod.resolving) resolvingCount++;\n\t}\n\tif (!promises.length && !resolvingCount) return;\n\tawait Promise.allSettled(promises);\n\tawait waitForImportsToResolve();\n}\n\nexport { getCurrentEnvironment as a, getWorkerState as g, isChildProcess as i, provideWorkerState as p, resetModules as r, setProcessTitle as s, waitForImportsToResolve as w };\n","var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nfunction getDefaultExportFromCjs (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nexport { commonjsGlobal as c, getDefaultExportFromCjs as g };\n","import { resolve as resolve$2 } from 'pathe';\nimport { plugins, format } from '@vitest/pretty-format';\n\nconst comma = ','.charCodeAt(0);\nconst chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\nconst intToChar = new Uint8Array(64); // 64 possible chars.\nconst charToInt = new Uint8Array(128); // z is 122 in ASCII\nfor (let i = 0; i < chars.length; i++) {\n const c = chars.charCodeAt(i);\n intToChar[i] = c;\n charToInt[c] = i;\n}\nfunction decodeInteger(reader, relative) {\n let value = 0;\n let shift = 0;\n let integer = 0;\n do {\n const c = reader.next();\n integer = charToInt[c];\n value |= (integer & 31) << shift;\n shift += 5;\n } while (integer & 32);\n const shouldNegate = value & 1;\n value >>>= 1;\n if (shouldNegate) {\n value = -2147483648 | -value;\n }\n return relative + value;\n}\nfunction hasMoreVlq(reader, max) {\n if (reader.pos >= max)\n return false;\n return reader.peek() !== comma;\n}\nclass StringReader {\n constructor(buffer) {\n this.pos = 0;\n this.buffer = buffer;\n }\n next() {\n return this.buffer.charCodeAt(this.pos++);\n }\n peek() {\n return this.buffer.charCodeAt(this.pos);\n }\n indexOf(char) {\n const { buffer, pos } = this;\n const idx = buffer.indexOf(char, pos);\n return idx === -1 ? buffer.length : idx;\n }\n}\n\nfunction decode(mappings) {\n const { length } = mappings;\n const reader = new StringReader(mappings);\n const decoded = [];\n let genColumn = 0;\n let sourcesIndex = 0;\n let sourceLine = 0;\n let sourceColumn = 0;\n let namesIndex = 0;\n do {\n const semi = reader.indexOf(';');\n const line = [];\n let sorted = true;\n let lastCol = 0;\n genColumn = 0;\n while (reader.pos < semi) {\n let seg;\n genColumn = decodeInteger(reader, genColumn);\n if (genColumn < lastCol)\n sorted = false;\n lastCol = genColumn;\n if (hasMoreVlq(reader, semi)) {\n sourcesIndex = decodeInteger(reader, sourcesIndex);\n sourceLine = decodeInteger(reader, sourceLine);\n sourceColumn = decodeInteger(reader, sourceColumn);\n if (hasMoreVlq(reader, semi)) {\n namesIndex = decodeInteger(reader, namesIndex);\n seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex];\n }\n else {\n seg = [genColumn, sourcesIndex, sourceLine, sourceColumn];\n }\n }\n else {\n seg = [genColumn];\n }\n line.push(seg);\n reader.pos++;\n }\n if (!sorted)\n sort(line);\n decoded.push(line);\n reader.pos = semi + 1;\n } while (reader.pos <= length);\n return decoded;\n}\nfunction sort(line) {\n line.sort(sortComparator$1);\n}\nfunction sortComparator$1(a, b) {\n return a[0] - b[0];\n}\n\n// Matches the scheme of a URL, eg \"http://\"\nconst schemeRegex = /^[\\w+.-]+:\\/\\//;\n/**\n * Matches the parts of a URL:\n * 1. Scheme, including \":\", guaranteed.\n * 2. User/password, including \"@\", optional.\n * 3. Host, guaranteed.\n * 4. Port, including \":\", optional.\n * 5. Path, including \"/\", optional.\n * 6. Query, including \"?\", optional.\n * 7. Hash, including \"#\", optional.\n */\nconst urlRegex = /^([\\w+.-]+:)\\/\\/([^@/#?]*@)?([^:/#?]*)(:\\d+)?(\\/[^#?]*)?(\\?[^#]*)?(#.*)?/;\n/**\n * File URLs are weird. They dont' need the regular `//` in the scheme, they may or may not start\n * with a leading `/`, they can have a domain (but only if they don't start with a Windows drive).\n *\n * 1. Host, optional.\n * 2. Path, which may include \"/\", guaranteed.\n * 3. Query, including \"?\", optional.\n * 4. Hash, including \"#\", optional.\n */\nconst fileRegex = /^file:(?:\\/\\/((?![a-z]:)[^/#?]*)?)?(\\/?[^#?]*)(\\?[^#]*)?(#.*)?/i;\nvar UrlType;\n(function (UrlType) {\n UrlType[UrlType[\"Empty\"] = 1] = \"Empty\";\n UrlType[UrlType[\"Hash\"] = 2] = \"Hash\";\n UrlType[UrlType[\"Query\"] = 3] = \"Query\";\n UrlType[UrlType[\"RelativePath\"] = 4] = \"RelativePath\";\n UrlType[UrlType[\"AbsolutePath\"] = 5] = \"AbsolutePath\";\n UrlType[UrlType[\"SchemeRelative\"] = 6] = \"SchemeRelative\";\n UrlType[UrlType[\"Absolute\"] = 7] = \"Absolute\";\n})(UrlType || (UrlType = {}));\nfunction isAbsoluteUrl(input) {\n return schemeRegex.test(input);\n}\nfunction isSchemeRelativeUrl(input) {\n return input.startsWith('//');\n}\nfunction isAbsolutePath(input) {\n return input.startsWith('/');\n}\nfunction isFileUrl(input) {\n return input.startsWith('file:');\n}\nfunction isRelative(input) {\n return /^[.?#]/.test(input);\n}\nfunction parseAbsoluteUrl(input) {\n const match = urlRegex.exec(input);\n return makeUrl(match[1], match[2] || '', match[3], match[4] || '', match[5] || '/', match[6] || '', match[7] || '');\n}\nfunction parseFileUrl(input) {\n const match = fileRegex.exec(input);\n const path = match[2];\n return makeUrl('file:', '', match[1] || '', '', isAbsolutePath(path) ? path : '/' + path, match[3] || '', match[4] || '');\n}\nfunction makeUrl(scheme, user, host, port, path, query, hash) {\n return {\n scheme,\n user,\n host,\n port,\n path,\n query,\n hash,\n type: UrlType.Absolute,\n };\n}\nfunction parseUrl(input) {\n if (isSchemeRelativeUrl(input)) {\n const url = parseAbsoluteUrl('http:' + input);\n url.scheme = '';\n url.type = UrlType.SchemeRelative;\n return url;\n }\n if (isAbsolutePath(input)) {\n const url = parseAbsoluteUrl('http://foo.com' + input);\n url.scheme = '';\n url.host = '';\n url.type = UrlType.AbsolutePath;\n return url;\n }\n if (isFileUrl(input))\n return parseFileUrl(input);\n if (isAbsoluteUrl(input))\n return parseAbsoluteUrl(input);\n const url = parseAbsoluteUrl('http://foo.com/' + input);\n url.scheme = '';\n url.host = '';\n url.type = input\n ? input.startsWith('?')\n ? UrlType.Query\n : input.startsWith('#')\n ? UrlType.Hash\n : UrlType.RelativePath\n : UrlType.Empty;\n return url;\n}\nfunction stripPathFilename(path) {\n // If a path ends with a parent directory \"..\", then it's a relative path with excess parent\n // paths. It's not a file, so we can't strip it.\n if (path.endsWith('/..'))\n return path;\n const index = path.lastIndexOf('/');\n return path.slice(0, index + 1);\n}\nfunction mergePaths(url, base) {\n normalizePath(base, base.type);\n // If the path is just a \"/\", then it was an empty path to begin with (remember, we're a relative\n // path).\n if (url.path === '/') {\n url.path = base.path;\n }\n else {\n // Resolution happens relative to the base path's directory, not the file.\n url.path = stripPathFilename(base.path) + url.path;\n }\n}\n/**\n * The path can have empty directories \"//\", unneeded parents \"foo/..\", or current directory\n * \"foo/.\". We need to normalize to a standard representation.\n */\nfunction normalizePath(url, type) {\n const rel = type <= UrlType.RelativePath;\n const pieces = url.path.split('/');\n // We need to preserve the first piece always, so that we output a leading slash. The item at\n // pieces[0] is an empty string.\n let pointer = 1;\n // Positive is the number of real directories we've output, used for popping a parent directory.\n // Eg, \"foo/bar/..\" will have a positive 2, and we can decrement to be left with just \"foo\".\n let positive = 0;\n // We need to keep a trailing slash if we encounter an empty directory (eg, splitting \"foo/\" will\n // generate `[\"foo\", \"\"]` pieces). And, if we pop a parent directory. But once we encounter a\n // real directory, we won't need to append, unless the other conditions happen again.\n let addTrailingSlash = false;\n for (let i = 1; i < pieces.length; i++) {\n const piece = pieces[i];\n // An empty directory, could be a trailing slash, or just a double \"//\" in the path.\n if (!piece) {\n addTrailingSlash = true;\n continue;\n }\n // If we encounter a real directory, then we don't need to append anymore.\n addTrailingSlash = false;\n // A current directory, which we can always drop.\n if (piece === '.')\n continue;\n // A parent directory, we need to see if there are any real directories we can pop. Else, we\n // have an excess of parents, and we'll need to keep the \"..\".\n if (piece === '..') {\n if (positive) {\n addTrailingSlash = true;\n positive--;\n pointer--;\n }\n else if (rel) {\n // If we're in a relativePath, then we need to keep the excess parents. Else, in an absolute\n // URL, protocol relative URL, or an absolute path, we don't need to keep excess.\n pieces[pointer++] = piece;\n }\n continue;\n }\n // We've encountered a real directory. Move it to the next insertion pointer, which accounts for\n // any popped or dropped directories.\n pieces[pointer++] = piece;\n positive++;\n }\n let path = '';\n for (let i = 1; i < pointer; i++) {\n path += '/' + pieces[i];\n }\n if (!path || (addTrailingSlash && !path.endsWith('/..'))) {\n path += '/';\n }\n url.path = path;\n}\n/**\n * Attempts to resolve `input` URL/path relative to `base`.\n */\nfunction resolve$1(input, base) {\n if (!input && !base)\n return '';\n const url = parseUrl(input);\n let inputType = url.type;\n if (base && inputType !== UrlType.Absolute) {\n const baseUrl = parseUrl(base);\n const baseType = baseUrl.type;\n switch (inputType) {\n case UrlType.Empty:\n url.hash = baseUrl.hash;\n // fall through\n case UrlType.Hash:\n url.query = baseUrl.query;\n // fall through\n case UrlType.Query:\n case UrlType.RelativePath:\n mergePaths(url, baseUrl);\n // fall through\n case UrlType.AbsolutePath:\n // The host, user, and port are joined, you can't copy one without the others.\n url.user = baseUrl.user;\n url.host = baseUrl.host;\n url.port = baseUrl.port;\n // fall through\n case UrlType.SchemeRelative:\n // The input doesn't have a schema at least, so we need to copy at least that over.\n url.scheme = baseUrl.scheme;\n }\n if (baseType > inputType)\n inputType = baseType;\n }\n normalizePath(url, inputType);\n const queryHash = url.query + url.hash;\n switch (inputType) {\n // This is impossible, because of the empty checks at the start of the function.\n // case UrlType.Empty:\n case UrlType.Hash:\n case UrlType.Query:\n return queryHash;\n case UrlType.RelativePath: {\n // The first char is always a \"/\", and we need it to be relative.\n const path = url.path.slice(1);\n if (!path)\n return queryHash || '.';\n if (isRelative(base || input) && !isRelative(path)) {\n // If base started with a leading \".\", or there is no base and input started with a \".\",\n // then we need to ensure that the relative path starts with a \".\". We don't know if\n // relative starts with a \"..\", though, so check before prepending.\n return './' + path + queryHash;\n }\n return path + queryHash;\n }\n case UrlType.AbsolutePath:\n return url.path + queryHash;\n default:\n return url.scheme + '//' + url.user + url.host + url.port + url.path + queryHash;\n }\n}\n\nfunction resolve(input, base) {\n // The base is always treated as a directory, if it's not empty.\n // https://github.com/mozilla/source-map/blob/8cb3ee57/lib/util.js#L327\n // https://github.com/chromium/chromium/blob/da4adbb3/third_party/blink/renderer/devtools/front_end/sdk/SourceMap.js#L400-L401\n if (base && !base.endsWith('/'))\n base += '/';\n return resolve$1(input, base);\n}\n\n/**\n * Removes everything after the last \"/\", but leaves the slash.\n */\nfunction stripFilename(path) {\n if (!path)\n return '';\n const index = path.lastIndexOf('/');\n return path.slice(0, index + 1);\n}\n\nconst COLUMN = 0;\nconst SOURCES_INDEX = 1;\nconst SOURCE_LINE = 2;\nconst SOURCE_COLUMN = 3;\nconst NAMES_INDEX = 4;\n\nfunction maybeSort(mappings, owned) {\n const unsortedIndex = nextUnsortedSegmentLine(mappings, 0);\n if (unsortedIndex === mappings.length)\n return mappings;\n // If we own the array (meaning we parsed it from JSON), then we're free to directly mutate it. If\n // not, we do not want to modify the consumer's input array.\n if (!owned)\n mappings = mappings.slice();\n for (let i = unsortedIndex; i < mappings.length; i = nextUnsortedSegmentLine(mappings, i + 1)) {\n mappings[i] = sortSegments(mappings[i], owned);\n }\n return mappings;\n}\nfunction nextUnsortedSegmentLine(mappings, start) {\n for (let i = start; i < mappings.length; i++) {\n if (!isSorted(mappings[i]))\n return i;\n }\n return mappings.length;\n}\nfunction isSorted(line) {\n for (let j = 1; j < line.length; j++) {\n if (line[j][COLUMN] < line[j - 1][COLUMN]) {\n return false;\n }\n }\n return true;\n}\nfunction sortSegments(line, owned) {\n if (!owned)\n line = line.slice();\n return line.sort(sortComparator);\n}\nfunction sortComparator(a, b) {\n return a[COLUMN] - b[COLUMN];\n}\n\nlet found = false;\n/**\n * A binary search implementation that returns the index if a match is found.\n * If no match is found, then the left-index (the index associated with the item that comes just\n * before the desired index) is returned. To maintain proper sort order, a splice would happen at\n * the next index:\n *\n * ```js\n * const array = [1, 3];\n * const needle = 2;\n * const index = binarySearch(array, needle, (item, needle) => item - needle);\n *\n * assert.equal(index, 0);\n * array.splice(index + 1, 0, needle);\n * assert.deepEqual(array, [1, 2, 3]);\n * ```\n */\nfunction binarySearch(haystack, needle, low, high) {\n while (low <= high) {\n const mid = low + ((high - low) >> 1);\n const cmp = haystack[mid][COLUMN] - needle;\n if (cmp === 0) {\n found = true;\n return mid;\n }\n if (cmp < 0) {\n low = mid + 1;\n }\n else {\n high = mid - 1;\n }\n }\n found = false;\n return low - 1;\n}\nfunction upperBound(haystack, needle, index) {\n for (let i = index + 1; i < haystack.length; index = i++) {\n if (haystack[i][COLUMN] !== needle)\n break;\n }\n return index;\n}\nfunction lowerBound(haystack, needle, index) {\n for (let i = index - 1; i >= 0; index = i--) {\n if (haystack[i][COLUMN] !== needle)\n break;\n }\n return index;\n}\nfunction memoizedState() {\n return {\n lastKey: -1,\n lastNeedle: -1,\n lastIndex: -1,\n };\n}\n/**\n * This overly complicated beast is just to record the last tested line/column and the resulting\n * index, allowing us to skip a few tests if mappings are monotonically increasing.\n */\nfunction memoizedBinarySearch(haystack, needle, state, key) {\n const { lastKey, lastNeedle, lastIndex } = state;\n let low = 0;\n let high = haystack.length - 1;\n if (key === lastKey) {\n if (needle === lastNeedle) {\n found = lastIndex !== -1 && haystack[lastIndex][COLUMN] === needle;\n return lastIndex;\n }\n if (needle >= lastNeedle) {\n // lastIndex may be -1 if the previous needle was not found.\n low = lastIndex === -1 ? 0 : lastIndex;\n }\n else {\n high = lastIndex;\n }\n }\n state.lastKey = key;\n state.lastNeedle = needle;\n return (state.lastIndex = binarySearch(haystack, needle, low, high));\n}\n\nconst LINE_GTR_ZERO = '`line` must be greater than 0 (lines start at line 1)';\nconst COL_GTR_EQ_ZERO = '`column` must be greater than or equal to 0 (columns start at column 0)';\nconst LEAST_UPPER_BOUND = -1;\nconst GREATEST_LOWER_BOUND = 1;\nclass TraceMap {\n constructor(map, mapUrl) {\n const isString = typeof map === 'string';\n if (!isString && map._decodedMemo)\n return map;\n const parsed = (isString ? JSON.parse(map) : map);\n const { version, file, names, sourceRoot, sources, sourcesContent } = parsed;\n this.version = version;\n this.file = file;\n this.names = names || [];\n this.sourceRoot = sourceRoot;\n this.sources = sources;\n this.sourcesContent = sourcesContent;\n this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || undefined;\n const from = resolve(sourceRoot || '', stripFilename(mapUrl));\n this.resolvedSources = sources.map((s) => resolve(s || '', from));\n const { mappings } = parsed;\n if (typeof mappings === 'string') {\n this._encoded = mappings;\n this._decoded = undefined;\n }\n else {\n this._encoded = undefined;\n this._decoded = maybeSort(mappings, isString);\n }\n this._decodedMemo = memoizedState();\n this._bySources = undefined;\n this._bySourceMemos = undefined;\n }\n}\n/**\n * Typescript doesn't allow friend access to private fields, so this just casts the map into a type\n * with public access modifiers.\n */\nfunction cast(map) {\n return map;\n}\n/**\n * Returns the decoded (array of lines of segments) form of the SourceMap's mappings field.\n */\nfunction decodedMappings(map) {\n var _a;\n return ((_a = cast(map))._decoded || (_a._decoded = decode(cast(map)._encoded)));\n}\n/**\n * A higher-level API to find the source/line/column associated with a generated line/column\n * (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in\n * `source-map` library.\n */\nfunction originalPositionFor(map, needle) {\n let { line, column, bias } = needle;\n line--;\n if (line < 0)\n throw new Error(LINE_GTR_ZERO);\n if (column < 0)\n throw new Error(COL_GTR_EQ_ZERO);\n const decoded = decodedMappings(map);\n // It's common for parent source maps to have pointers to lines that have no\n // mapping (like a \"//# sourceMappingURL=\") at the end of the child file.\n if (line >= decoded.length)\n return OMapping(null, null, null, null);\n const segments = decoded[line];\n const index = traceSegmentInternal(segments, cast(map)._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND);\n if (index === -1)\n return OMapping(null, null, null, null);\n const segment = segments[index];\n if (segment.length === 1)\n return OMapping(null, null, null, null);\n const { names, resolvedSources } = map;\n return OMapping(resolvedSources[segment[SOURCES_INDEX]], segment[SOURCE_LINE] + 1, segment[SOURCE_COLUMN], segment.length === 5 ? names[segment[NAMES_INDEX]] : null);\n}\nfunction OMapping(source, line, column, name) {\n return { source, line, column, name };\n}\nfunction traceSegmentInternal(segments, memo, line, column, bias) {\n let index = memoizedBinarySearch(segments, column, memo, line);\n if (found) {\n index = (bias === LEAST_UPPER_BOUND ? upperBound : lowerBound)(segments, column, index);\n }\n else if (bias === LEAST_UPPER_BOUND)\n index++;\n if (index === -1 || index === segments.length)\n return -1;\n return index;\n}\n\n/**\n* Get original stacktrace without source map support the most performant way.\n* - Create only 1 stack frame.\n* - Rewrite prepareStackTrace to bypass \"support-stack-trace\" (usually takes ~250ms).\n*/\nfunction notNullish(v) {\n\treturn v != null;\n}\nfunction isPrimitive(value) {\n\treturn value === null || typeof value !== \"function\" && typeof value !== \"object\";\n}\nfunction isObject(item) {\n\treturn item != null && typeof item === \"object\" && !Array.isArray(item);\n}\n/**\n* If code starts with a function call, will return its last index, respecting arguments.\n* This will return 25 - last ending character of toMatch \")\"\n* Also works with callbacks\n* ```\n* toMatch({ test: '123' });\n* toBeAliased('123')\n* ```\n*/\nfunction getCallLastIndex(code) {\n\tlet charIndex = -1;\n\tlet inString = null;\n\tlet startedBracers = 0;\n\tlet endedBracers = 0;\n\tlet beforeChar = null;\n\twhile (charIndex <= code.length) {\n\t\tbeforeChar = code[charIndex];\n\t\tcharIndex++;\n\t\tconst char = code[charIndex];\n\t\tconst isCharString = char === \"\\\"\" || char === \"'\" || char === \"`\";\n\t\tif (isCharString && beforeChar !== \"\\\\\") {\n\t\t\tif (inString === char) {\n\t\t\t\tinString = null;\n\t\t\t} else if (!inString) {\n\t\t\t\tinString = char;\n\t\t\t}\n\t\t}\n\t\tif (!inString) {\n\t\t\tif (char === \"(\") {\n\t\t\t\tstartedBracers++;\n\t\t\t}\n\t\t\tif (char === \")\") {\n\t\t\t\tendedBracers++;\n\t\t\t}\n\t\t}\n\t\tif (startedBracers && endedBracers && startedBracers === endedBracers) {\n\t\t\treturn charIndex;\n\t\t}\n\t}\n\treturn null;\n}\n\nconst CHROME_IE_STACK_REGEXP = /^\\s*at .*(?:\\S:\\d+|\\(native\\))/m;\nconst SAFARI_NATIVE_CODE_REGEXP = /^(?:eval@)?(?:\\[native code\\])?$/;\nconst stackIgnorePatterns = [\n\t\"node:internal\",\n\t/\\/packages\\/\\w+\\/dist\\//,\n\t/\\/@vitest\\/\\w+\\/dist\\//,\n\t\"/vitest/dist/\",\n\t\"/vitest/src/\",\n\t\"/vite-node/dist/\",\n\t\"/vite-node/src/\",\n\t\"/node_modules/chai/\",\n\t\"/node_modules/tinypool/\",\n\t\"/node_modules/tinyspy/\",\n\t\"/deps/chunk-\",\n\t\"/deps/@vitest\",\n\t\"/deps/loupe\",\n\t\"/deps/chai\",\n\t/node:\\w+/,\n\t/__vitest_test__/,\n\t/__vitest_browser__/,\n\t/\\/deps\\/vitest_/\n];\nfunction extractLocation(urlLike) {\n\t// Fail-fast but return locations like \"(native)\"\n\tif (!urlLike.includes(\":\")) {\n\t\treturn [urlLike];\n\t}\n\tconst regExp = /(.+?)(?::(\\d+))?(?::(\\d+))?$/;\n\tconst parts = regExp.exec(urlLike.replace(/^\\(|\\)$/g, \"\"));\n\tif (!parts) {\n\t\treturn [urlLike];\n\t}\n\tlet url = parts[1];\n\tif (url.startsWith(\"async \")) {\n\t\turl = url.slice(6);\n\t}\n\tif (url.startsWith(\"http:\") || url.startsWith(\"https:\")) {\n\t\tconst urlObj = new URL(url);\n\t\turlObj.searchParams.delete(\"import\");\n\t\turlObj.searchParams.delete(\"browserv\");\n\t\turl = urlObj.pathname + urlObj.hash + urlObj.search;\n\t}\n\tif (url.startsWith(\"/@fs/\")) {\n\t\tconst isWindows = /^\\/@fs\\/[a-zA-Z]:\\//.test(url);\n\t\turl = url.slice(isWindows ? 5 : 4);\n\t}\n\treturn [\n\t\turl,\n\t\tparts[2] || undefined,\n\t\tparts[3] || undefined\n\t];\n}\nfunction parseSingleFFOrSafariStack(raw) {\n\tlet line = raw.trim();\n\tif (SAFARI_NATIVE_CODE_REGEXP.test(line)) {\n\t\treturn null;\n\t}\n\tif (line.includes(\" > eval\")) {\n\t\tline = line.replace(/ line (\\d+)(?: > eval line \\d+)* > eval:\\d+:\\d+/g, \":$1\");\n\t}\n\tif (!line.includes(\"@\") && !line.includes(\":\")) {\n\t\treturn null;\n\t}\n\t// eslint-disable-next-line regexp/no-super-linear-backtracking, regexp/optimal-quantifier-concatenation\n\tconst functionNameRegex = /((.*\".+\"[^@]*)?[^@]*)(@)/;\n\tconst matches = line.match(functionNameRegex);\n\tconst functionName = matches && matches[1] ? matches[1] : undefined;\n\tconst [url, lineNumber, columnNumber] = extractLocation(line.replace(functionNameRegex, \"\"));\n\tif (!url || !lineNumber || !columnNumber) {\n\t\treturn null;\n\t}\n\treturn {\n\t\tfile: url,\n\t\tmethod: functionName || \"\",\n\t\tline: Number.parseInt(lineNumber),\n\t\tcolumn: Number.parseInt(columnNumber)\n\t};\n}\n// Based on https://github.com/stacktracejs/error-stack-parser\n// Credit to stacktracejs\nfunction parseSingleV8Stack(raw) {\n\tlet line = raw.trim();\n\tif (!CHROME_IE_STACK_REGEXP.test(line)) {\n\t\treturn null;\n\t}\n\tif (line.includes(\"(eval \")) {\n\t\tline = line.replace(/eval code/g, \"eval\").replace(/(\\(eval at [^()]*)|(,.*$)/g, \"\");\n\t}\n\tlet sanitizedLine = line.replace(/^\\s+/, \"\").replace(/\\(eval code/g, \"(\").replace(/^.*?\\s+/, \"\");\n\t// capture and preserve the parenthesized location \"(/foo/my bar.js:12:87)\" in\n\t// case it has spaces in it, as the string is split on \\s+ later on\n\tconst location = sanitizedLine.match(/ (\\(.+\\)$)/);\n\t// remove the parenthesized location from the line, if it was matched\n\tsanitizedLine = location ? sanitizedLine.replace(location[0], \"\") : sanitizedLine;\n\t// if a location was matched, pass it to extractLocation() otherwise pass all sanitizedLine\n\t// because this line doesn't have function name\n\tconst [url, lineNumber, columnNumber] = extractLocation(location ? location[1] : sanitizedLine);\n\tlet method = location && sanitizedLine || \"\";\n\tlet file = url && [\"eval\", \"<anonymous>\"].includes(url) ? undefined : url;\n\tif (!file || !lineNumber || !columnNumber) {\n\t\treturn null;\n\t}\n\tif (method.startsWith(\"async \")) {\n\t\tmethod = method.slice(6);\n\t}\n\tif (file.startsWith(\"file://\")) {\n\t\tfile = file.slice(7);\n\t}\n\t// normalize Windows path (\\ -> /)\n\tfile = file.startsWith(\"node:\") || file.startsWith(\"internal:\") ? file : resolve$2(file);\n\tif (method) {\n\t\tmethod = method.replace(/__vite_ssr_import_\\d+__\\./g, \"\");\n\t}\n\treturn {\n\t\tmethod,\n\t\tfile,\n\t\tline: Number.parseInt(lineNumber),\n\t\tcolumn: Number.parseInt(columnNumber)\n\t};\n}\nfunction parseStacktrace(stack, options = {}) {\n\tconst { ignoreStackEntries = stackIgnorePatterns } = options;\n\tconst stacks = !CHROME_IE_STACK_REGEXP.test(stack) ? parseFFOrSafariStackTrace(stack) : parseV8Stacktrace(stack);\n\treturn stacks.map((stack) => {\n\t\tvar _options$getSourceMap;\n\t\tif (options.getUrlId) {\n\t\t\tstack.file = options.getUrlId(stack.file);\n\t\t}\n\t\tconst map = (_options$getSourceMap = options.getSourceMap) === null || _options$getSourceMap === void 0 ? void 0 : _options$getSourceMap.call(options, stack.file);\n\t\tif (!map || typeof map !== \"object\" || !map.version) {\n\t\t\treturn shouldFilter(ignoreStackEntries, stack.file) ? null : stack;\n\t\t}\n\t\tconst traceMap = new TraceMap(map);\n\t\tconst { line, column, source, name } = originalPositionFor(traceMap, stack);\n\t\tlet file = stack.file;\n\t\tif (source) {\n\t\t\tconst fileUrl = stack.file.startsWith(\"file://\") ? stack.file : `file://${stack.file}`;\n\t\t\tconst sourceRootUrl = map.sourceRoot ? new URL(map.sourceRoot, fileUrl) : fileUrl;\n\t\t\tfile = new URL(source, sourceRootUrl).pathname;\n\t\t\t// if the file path is on windows, we need to remove the leading slash\n\t\t\tif (file.match(/\\/\\w:\\//)) {\n\t\t\t\tfile = file.slice(1);\n\t\t\t}\n\t\t}\n\t\tif (shouldFilter(ignoreStackEntries, file)) {\n\t\t\treturn null;\n\t\t}\n\t\tif (line != null && column != null) {\n\t\t\treturn {\n\t\t\t\tline,\n\t\t\t\tcolumn,\n\t\t\t\tfile,\n\t\t\t\tmethod: name || stack.method\n\t\t\t};\n\t\t}\n\t\treturn stack;\n\t}).filter((s) => s != null);\n}\nfunction shouldFilter(ignoreStackEntries, file) {\n\treturn ignoreStackEntries.some((p) => file.match(p));\n}\nfunction parseFFOrSafariStackTrace(stack) {\n\treturn stack.split(\"\\n\").map((line) => parseSingleFFOrSafariStack(line)).filter(notNullish);\n}\nfunction parseV8Stacktrace(stack) {\n\treturn stack.split(\"\\n\").map((line) => parseSingleV8Stack(line)).filter(notNullish);\n}\nfunction parseErrorStacktrace(e, options = {}) {\n\tif (!e || isPrimitive(e)) {\n\t\treturn [];\n\t}\n\tif (e.stacks) {\n\t\treturn e.stacks;\n\t}\n\tconst stackStr = e.stack || \"\";\n\t// if \"stack\" property was overwritten at runtime to be something else,\n\t// ignore the value because we don't know how to process it\n\tlet stackFrames = typeof stackStr === \"string\" ? parseStacktrace(stackStr, options) : [];\n\tif (!stackFrames.length) {\n\t\tconst e_ = e;\n\t\tif (e_.fileName != null && e_.lineNumber != null && e_.columnNumber != null) {\n\t\t\tstackFrames = parseStacktrace(`${e_.fileName}:${e_.lineNumber}:${e_.columnNumber}`, options);\n\t\t}\n\t\tif (e_.sourceURL != null && e_.line != null && e_._column != null) {\n\t\t\tstackFrames = parseStacktrace(`${e_.sourceURL}:${e_.line}:${e_.column}`, options);\n\t\t}\n\t}\n\tif (options.frameFilter) {\n\t\tstackFrames = stackFrames.filter((f) => options.frameFilter(e, f) !== false);\n\t}\n\te.stacks = stackFrames;\n\treturn stackFrames;\n}\n\nlet getPromiseValue = () => 'Promise{…}';\ntry {\n // @ts-ignore\n const { getPromiseDetails, kPending, kRejected } = process.binding('util');\n if (Array.isArray(getPromiseDetails(Promise.resolve()))) {\n getPromiseValue = (value, options) => {\n const [state, innerValue] = getPromiseDetails(value);\n if (state === kPending) {\n return 'Promise{<pending>}';\n }\n return `Promise${state === kRejected ? '!' : ''}{${options.inspect(innerValue, options)}}`;\n };\n }\n}\ncatch (notNode) {\n /* ignore */\n}\n\nconst { AsymmetricMatcher: AsymmetricMatcher$1, DOMCollection: DOMCollection$1, DOMElement: DOMElement$1, Immutable: Immutable$1, ReactElement: ReactElement$1, ReactTestComponent: ReactTestComponent$1 } = plugins;\n\nfunction getDefaultExportFromCjs (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nvar jsTokens_1;\nvar hasRequiredJsTokens;\n\nfunction requireJsTokens () {\n\tif (hasRequiredJsTokens) return jsTokens_1;\n\thasRequiredJsTokens = 1;\n\t// Copyright 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Simon Lydell\n\t// License: MIT.\n\tvar Identifier, JSXIdentifier, JSXPunctuator, JSXString, JSXText, KeywordsWithExpressionAfter, KeywordsWithNoLineTerminatorAfter, LineTerminatorSequence, MultiLineComment, Newline, NumericLiteral, Punctuator, RegularExpressionLiteral, SingleLineComment, StringLiteral, Template, TokensNotPrecedingObjectLiteral, TokensPrecedingExpression, WhiteSpace;\n\tRegularExpressionLiteral = /\\/(?![*\\/])(?:\\[(?:(?![\\]\\\\]).|\\\\.)*\\]|(?![\\/\\\\]).|\\\\.)*(\\/[$_\\u200C\\u200D\\p{ID_Continue}]*|\\\\)?/yu;\n\tPunctuator = /--|\\+\\+|=>|\\.{3}|\\??\\.(?!\\d)|(?:&&|\\|\\||\\?\\?|[+\\-%&|^]|\\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\\/(?![\\/*]))=?|[?~,:;[\\](){}]/y;\n\tIdentifier = /(\\x23?)(?=[$_\\p{ID_Start}\\\\])(?:[$_\\u200C\\u200D\\p{ID_Continue}]|\\\\u[\\da-fA-F]{4}|\\\\u\\{[\\da-fA-F]+\\})+/yu;\n\tStringLiteral = /(['\"])(?:(?!\\1)[^\\\\\\n\\r]|\\\\(?:\\r\\n|[^]))*(\\1)?/y;\n\tNumericLiteral = /(?:0[xX][\\da-fA-F](?:_?[\\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\\d)*n|(?:(?:0(?!\\d)|0\\d*[89]\\d*|[1-9](?:_?\\d)*)(?:\\.(?:\\d(?:_?\\d)*)?)?|\\.\\d(?:_?\\d)*)(?:[eE][+-]?\\d(?:_?\\d)*)?|0[0-7]+/y;\n\tTemplate = /[`}](?:[^`\\\\$]|\\\\[^]|\\$(?!\\{))*(`|\\$\\{)?/y;\n\tWhiteSpace = /[\\t\\v\\f\\ufeff\\p{Zs}]+/yu;\n\tLineTerminatorSequence = /\\r?\\n|[\\r\\u2028\\u2029]/y;\n\tMultiLineComment = /\\/\\*(?:[^*]|\\*(?!\\/))*(\\*\\/)?/y;\n\tSingleLineComment = /\\/\\/.*/y;\n\tJSXPunctuator = /[<>.:={}]|\\/(?![\\/*])/y;\n\tJSXIdentifier = /[$_\\p{ID_Start}][$_\\u200C\\u200D\\p{ID_Continue}-]*/yu;\n\tJSXString = /(['\"])(?:(?!\\1)[^])*(\\1)?/y;\n\tJSXText = /[^<>{}]+/y;\n\tTokensPrecedingExpression = /^(?:[\\/+-]|\\.{3}|\\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;\n\tTokensNotPrecedingObjectLiteral = /^(?:=>|[;\\]){}]|else|\\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;\n\tKeywordsWithExpressionAfter = /^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;\n\tKeywordsWithNoLineTerminatorAfter = /^(?:return|throw|yield)$/;\n\tNewline = RegExp(LineTerminatorSequence.source);\n\tjsTokens_1 = function*(input, {jsx = false} = {}) {\n\t\tvar braces, firstCodePoint, isExpression, lastIndex, lastSignificantToken, length, match, mode, nextLastIndex, nextLastSignificantToken, parenNesting, postfixIncDec, punctuator, stack;\n\t\t({length} = input);\n\t\tlastIndex = 0;\n\t\tlastSignificantToken = \"\";\n\t\tstack = [\n\t\t\t{tag: \"JS\"}\n\t\t];\n\t\tbraces = [];\n\t\tparenNesting = 0;\n\t\tpostfixIncDec = false;\n\t\twhile (lastIndex < length) {\n\t\t\tmode = stack[stack.length - 1];\n\t\t\tswitch (mode.tag) {\n\t\t\t\tcase \"JS\":\n\t\t\t\tcase \"JSNonExpressionParen\":\n\t\t\t\tcase \"InterpolationInTemplate\":\n\t\t\t\tcase \"InterpolationInJSX\":\n\t\t\t\t\tif (input[lastIndex] === \"/\" && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken))) {\n\t\t\t\t\t\tRegularExpressionLiteral.lastIndex = lastIndex;\n\t\t\t\t\t\tif (match = RegularExpressionLiteral.exec(input)) {\n\t\t\t\t\t\t\tlastIndex = RegularExpressionLiteral.lastIndex;\n\t\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\ttype: \"RegularExpressionLiteral\",\n\t\t\t\t\t\t\t\tvalue: match[0],\n\t\t\t\t\t\t\t\tclosed: match[1] !== void 0 && match[1] !== \"\\\\\"\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tPunctuator.lastIndex = lastIndex;\n\t\t\t\t\tif (match = Punctuator.exec(input)) {\n\t\t\t\t\t\tpunctuator = match[0];\n\t\t\t\t\t\tnextLastIndex = Punctuator.lastIndex;\n\t\t\t\t\t\tnextLastSignificantToken = punctuator;\n\t\t\t\t\t\tswitch (punctuator) {\n\t\t\t\t\t\t\tcase \"(\":\n\t\t\t\t\t\t\t\tif (lastSignificantToken === \"?NonExpressionParenKeyword\") {\n\t\t\t\t\t\t\t\t\tstack.push({\n\t\t\t\t\t\t\t\t\t\ttag: \"JSNonExpressionParen\",\n\t\t\t\t\t\t\t\t\t\tnesting: parenNesting\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tparenNesting++;\n\t\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \")\":\n\t\t\t\t\t\t\t\tparenNesting--;\n\t\t\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\t\t\tif (mode.tag === \"JSNonExpressionParen\" && parenNesting === mode.nesting) {\n\t\t\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\t\t\tnextLastSignificantToken = \"?NonExpressionParenEnd\";\n\t\t\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"{\":\n\t\t\t\t\t\t\t\tPunctuator.lastIndex = 0;\n\t\t\t\t\t\t\t\tisExpression = !TokensNotPrecedingObjectLiteral.test(lastSignificantToken) && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken));\n\t\t\t\t\t\t\t\tbraces.push(isExpression);\n\t\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"}\":\n\t\t\t\t\t\t\t\tswitch (mode.tag) {\n\t\t\t\t\t\t\t\t\tcase \"InterpolationInTemplate\":\n\t\t\t\t\t\t\t\t\t\tif (braces.length === mode.nesting) {\n\t\t\t\t\t\t\t\t\t\t\tTemplate.lastIndex = lastIndex;\n\t\t\t\t\t\t\t\t\t\t\tmatch = Template.exec(input);\n\t\t\t\t\t\t\t\t\t\t\tlastIndex = Template.lastIndex;\n\t\t\t\t\t\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\t\t\t\t\t\tif (match[1] === \"${\") {\n\t\t\t\t\t\t\t\t\t\t\t\tlastSignificantToken = \"?InterpolationInTemplate\";\n\t\t\t\t\t\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: \"TemplateMiddle\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: \"TemplateTail\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: match[0],\n\t\t\t\t\t\t\t\t\t\t\t\t\tclosed: match[1] === \"`\"\n\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase \"InterpolationInJSX\":\n\t\t\t\t\t\t\t\t\t\tif (braces.length === mode.nesting) {\n\t\t\t\t\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\t\t\t\t\tlastIndex += 1;\n\t\t\t\t\t\t\t\t\t\t\tlastSignificantToken = \"}\";\n\t\t\t\t\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\t\t\t\t\ttype: \"JSXPunctuator\",\n\t\t\t\t\t\t\t\t\t\t\t\tvalue: \"}\"\n\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tpostfixIncDec = braces.pop();\n\t\t\t\t\t\t\t\tnextLastSignificantToken = postfixIncDec ? \"?ExpressionBraceEnd\" : \"}\";\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"]\":\n\t\t\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"++\":\n\t\t\t\t\t\t\tcase \"--\":\n\t\t\t\t\t\t\t\tnextLastSignificantToken = postfixIncDec ? \"?PostfixIncDec\" : \"?UnaryIncDec\";\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"<\":\n\t\t\t\t\t\t\t\tif (jsx && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken))) {\n\t\t\t\t\t\t\t\t\tstack.push({tag: \"JSXTag\"});\n\t\t\t\t\t\t\t\t\tlastIndex += 1;\n\t\t\t\t\t\t\t\t\tlastSignificantToken = \"<\";\n\t\t\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\t\t\ttype: \"JSXPunctuator\",\n\t\t\t\t\t\t\t\t\t\tvalue: punctuator\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlastIndex = nextLastIndex;\n\t\t\t\t\t\tlastSignificantToken = nextLastSignificantToken;\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"Punctuator\",\n\t\t\t\t\t\t\tvalue: punctuator\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tIdentifier.lastIndex = lastIndex;\n\t\t\t\t\tif (match = Identifier.exec(input)) {\n\t\t\t\t\t\tlastIndex = Identifier.lastIndex;\n\t\t\t\t\t\tnextLastSignificantToken = match[0];\n\t\t\t\t\t\tswitch (match[0]) {\n\t\t\t\t\t\t\tcase \"for\":\n\t\t\t\t\t\t\tcase \"if\":\n\t\t\t\t\t\t\tcase \"while\":\n\t\t\t\t\t\t\tcase \"with\":\n\t\t\t\t\t\t\t\tif (lastSignificantToken !== \".\" && lastSignificantToken !== \"?.\") {\n\t\t\t\t\t\t\t\t\tnextLastSignificantToken = \"?NonExpressionParenKeyword\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlastSignificantToken = nextLastSignificantToken;\n\t\t\t\t\t\tpostfixIncDec = !KeywordsWithExpressionAfter.test(match[0]);\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: match[1] === \"#\" ? \"PrivateIdentifier\" : \"IdentifierName\",\n\t\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tStringLiteral.lastIndex = lastIndex;\n\t\t\t\t\tif (match = StringLiteral.exec(input)) {\n\t\t\t\t\t\tlastIndex = StringLiteral.lastIndex;\n\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"StringLiteral\",\n\t\t\t\t\t\t\tvalue: match[0],\n\t\t\t\t\t\t\tclosed: match[2] !== void 0\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tNumericLiteral.lastIndex = lastIndex;\n\t\t\t\t\tif (match = NumericLiteral.exec(input)) {\n\t\t\t\t\t\tlastIndex = NumericLiteral.lastIndex;\n\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"NumericLiteral\",\n\t\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tTemplate.lastIndex = lastIndex;\n\t\t\t\t\tif (match = Template.exec(input)) {\n\t\t\t\t\t\tlastIndex = Template.lastIndex;\n\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\tif (match[1] === \"${\") {\n\t\t\t\t\t\t\tlastSignificantToken = \"?InterpolationInTemplate\";\n\t\t\t\t\t\t\tstack.push({\n\t\t\t\t\t\t\t\ttag: \"InterpolationInTemplate\",\n\t\t\t\t\t\t\t\tnesting: braces.length\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\ttype: \"TemplateHead\",\n\t\t\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\ttype: \"NoSubstitutionTemplate\",\n\t\t\t\t\t\t\t\tvalue: match[0],\n\t\t\t\t\t\t\t\tclosed: match[1] === \"`\"\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"JSXTag\":\n\t\t\t\tcase \"JSXTagEnd\":\n\t\t\t\t\tJSXPunctuator.lastIndex = lastIndex;\n\t\t\t\t\tif (match = JSXPunctuator.exec(input)) {\n\t\t\t\t\t\tlastIndex = JSXPunctuator.lastIndex;\n\t\t\t\t\t\tnextLastSignificantToken = match[0];\n\t\t\t\t\t\tswitch (match[0]) {\n\t\t\t\t\t\t\tcase \"<\":\n\t\t\t\t\t\t\t\tstack.push({tag: \"JSXTag\"});\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \">\":\n\t\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\t\tif (lastSignificantToken === \"/\" || mode.tag === \"JSXTagEnd\") {\n\t\t\t\t\t\t\t\t\tnextLastSignificantToken = \"?JSX\";\n\t\t\t\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tstack.push({tag: \"JSXChildren\"});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"{\":\n\t\t\t\t\t\t\t\tstack.push({\n\t\t\t\t\t\t\t\t\ttag: \"InterpolationInJSX\",\n\t\t\t\t\t\t\t\t\tnesting: braces.length\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tnextLastSignificantToken = \"?InterpolationInJSX\";\n\t\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"/\":\n\t\t\t\t\t\t\t\tif (lastSignificantToken === \"<\") {\n\t\t\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\t\t\tif (stack[stack.length - 1].tag === \"JSXChildren\") {\n\t\t\t\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tstack.push({tag: \"JSXTagEnd\"});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlastSignificantToken = nextLastSignificantToken;\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"JSXPunctuator\",\n\t\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tJSXIdentifier.lastIndex = lastIndex;\n\t\t\t\t\tif (match = JSXIdentifier.exec(input)) {\n\t\t\t\t\t\tlastIndex = JSXIdentifier.lastIndex;\n\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"JSXIdentifier\",\n\t\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tJSXString.lastIndex = lastIndex;\n\t\t\t\t\tif (match = JSXString.exec(input)) {\n\t\t\t\t\t\tlastIndex = JSXString.lastIndex;\n\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"JSXString\",\n\t\t\t\t\t\t\tvalue: match[0],\n\t\t\t\t\t\t\tclosed: match[2] !== void 0\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"JSXChildren\":\n\t\t\t\t\tJSXText.lastIndex = lastIndex;\n\t\t\t\t\tif (match = JSXText.exec(input)) {\n\t\t\t\t\t\tlastIndex = JSXText.lastIndex;\n\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"JSXText\",\n\t\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tswitch (input[lastIndex]) {\n\t\t\t\t\t\tcase \"<\":\n\t\t\t\t\t\t\tstack.push({tag: \"JSXTag\"});\n\t\t\t\t\t\t\tlastIndex++;\n\t\t\t\t\t\t\tlastSignificantToken = \"<\";\n\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\ttype: \"JSXPunctuator\",\n\t\t\t\t\t\t\t\tvalue: \"<\"\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\tcase \"{\":\n\t\t\t\t\t\t\tstack.push({\n\t\t\t\t\t\t\t\ttag: \"InterpolationInJSX\",\n\t\t\t\t\t\t\t\tnesting: braces.length\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tlastIndex++;\n\t\t\t\t\t\t\tlastSignificantToken = \"?InterpolationInJSX\";\n\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\ttype: \"JSXPunctuator\",\n\t\t\t\t\t\t\t\tvalue: \"{\"\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tWhiteSpace.lastIndex = lastIndex;\n\t\t\tif (match = WhiteSpace.exec(input)) {\n\t\t\t\tlastIndex = WhiteSpace.lastIndex;\n\t\t\t\tyield ({\n\t\t\t\t\ttype: \"WhiteSpace\",\n\t\t\t\t\tvalue: match[0]\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tLineTerminatorSequence.lastIndex = lastIndex;\n\t\t\tif (match = LineTerminatorSequence.exec(input)) {\n\t\t\t\tlastIndex = LineTerminatorSequence.lastIndex;\n\t\t\t\tpostfixIncDec = false;\n\t\t\t\tif (KeywordsWithNoLineTerminatorAfter.test(lastSignificantToken)) {\n\t\t\t\t\tlastSignificantToken = \"?NoLineTerminatorHere\";\n\t\t\t\t}\n\t\t\t\tyield ({\n\t\t\t\t\ttype: \"LineTerminatorSequence\",\n\t\t\t\t\tvalue: match[0]\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tMultiLineComment.lastIndex = lastIndex;\n\t\t\tif (match = MultiLineComment.exec(input)) {\n\t\t\t\tlastIndex = MultiLineComment.lastIndex;\n\t\t\t\tif (Newline.test(match[0])) {\n\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\tif (KeywordsWithNoLineTerminatorAfter.test(lastSignificantToken)) {\n\t\t\t\t\t\tlastSignificantToken = \"?NoLineTerminatorHere\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tyield ({\n\t\t\t\t\ttype: \"MultiLineComment\",\n\t\t\t\t\tvalue: match[0],\n\t\t\t\t\tclosed: match[1] !== void 0\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tSingleLineComment.lastIndex = lastIndex;\n\t\t\tif (match = SingleLineComment.exec(input)) {\n\t\t\t\tlastIndex = SingleLineComment.lastIndex;\n\t\t\t\tpostfixIncDec = false;\n\t\t\t\tyield ({\n\t\t\t\t\ttype: \"SingleLineComment\",\n\t\t\t\t\tvalue: match[0]\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tfirstCodePoint = String.fromCodePoint(input.codePointAt(lastIndex));\n\t\t\tlastIndex += firstCodePoint.length;\n\t\t\tlastSignificantToken = firstCodePoint;\n\t\t\tpostfixIncDec = false;\n\t\t\tyield ({\n\t\t\t\ttype: mode.tag.startsWith(\"JSX\") ? \"JSXInvalid\" : \"Invalid\",\n\t\t\t\tvalue: firstCodePoint\n\t\t\t});\n\t\t}\n\t\treturn void 0;\n\t};\n\treturn jsTokens_1;\n}\n\nrequireJsTokens();\n\n// src/index.ts\nvar reservedWords = {\n keyword: [\n \"break\",\n \"case\",\n \"catch\",\n \"continue\",\n \"debugger\",\n \"default\",\n \"do\",\n \"else\",\n \"finally\",\n \"for\",\n \"function\",\n \"if\",\n \"return\",\n \"switch\",\n \"throw\",\n \"try\",\n \"var\",\n \"const\",\n \"while\",\n \"with\",\n \"new\",\n \"this\",\n \"super\",\n \"class\",\n \"extends\",\n \"export\",\n \"import\",\n \"null\",\n \"true\",\n \"false\",\n \"in\",\n \"instanceof\",\n \"typeof\",\n \"void\",\n \"delete\"\n ],\n strict: [\n \"implements\",\n \"interface\",\n \"let\",\n \"package\",\n \"private\",\n \"protected\",\n \"public\",\n \"static\",\n \"yield\"\n ]\n}; new Set(reservedWords.keyword); new Set(reservedWords.strict);\n\n// src/index.ts\nvar f = {\n reset: [0, 0],\n bold: [1, 22, \"\\x1B[22m\\x1B[1m\"],\n dim: [2, 22, \"\\x1B[22m\\x1B[2m\"],\n italic: [3, 23],\n underline: [4, 24],\n inverse: [7, 27],\n hidden: [8, 28],\n strikethrough: [9, 29],\n black: [30, 39],\n red: [31, 39],\n green: [32, 39],\n yellow: [33, 39],\n blue: [34, 39],\n magenta: [35, 39],\n cyan: [36, 39],\n white: [37, 39],\n gray: [90, 39],\n bgBlack: [40, 49],\n bgRed: [41, 49],\n bgGreen: [42, 49],\n bgYellow: [43, 49],\n bgBlue: [44, 49],\n bgMagenta: [45, 49],\n bgCyan: [46, 49],\n bgWhite: [47, 49],\n blackBright: [90, 39],\n redBright: [91, 39],\n greenBright: [92, 39],\n yellowBright: [93, 39],\n blueBright: [94, 39],\n magentaBright: [95, 39],\n cyanBright: [96, 39],\n whiteBright: [97, 39],\n bgBlackBright: [100, 49],\n bgRedBright: [101, 49],\n bgGreenBright: [102, 49],\n bgYellowBright: [103, 49],\n bgBlueBright: [104, 49],\n bgMagentaBright: [105, 49],\n bgCyanBright: [106, 49],\n bgWhiteBright: [107, 49]\n}, h = Object.entries(f);\nfunction a(n) {\n return String(n);\n}\na.open = \"\";\na.close = \"\";\nfunction C(n = false) {\n let e = typeof process != \"undefined\" ? process : void 0, i = (e == null ? void 0 : e.env) || {}, g = (e == null ? void 0 : e.argv) || [];\n return !(\"NO_COLOR\" in i || g.includes(\"--no-color\")) && (\"FORCE_COLOR\" in i || g.includes(\"--color\") || (e == null ? void 0 : e.platform) === \"win32\" || n && i.TERM !== \"dumb\" || \"CI\" in i) || typeof window != \"undefined\" && !!window.chrome;\n}\nfunction p(n = false) {\n let e = C(n), i = (r, t, c, o) => {\n let l = \"\", s = 0;\n do\n l += r.substring(s, o) + c, s = o + t.length, o = r.indexOf(t, s);\n while (~o);\n return l + r.substring(s);\n }, g = (r, t, c = r) => {\n let o = (l) => {\n let s = String(l), b = s.indexOf(t, r.length);\n return ~b ? r + i(s, t, c, b) + t : r + s + t;\n };\n return o.open = r, o.close = t, o;\n }, u = {\n isColorSupported: e\n }, d = (r) => `\\x1B[${r}m`;\n for (let [r, t] of h)\n u[r] = e ? g(\n d(t[0]),\n d(t[1]),\n t[2]\n ) : a;\n return u;\n}\n\np();\n\nconst lineSplitRE = /\\r?\\n/;\nfunction positionToOffset(source, lineNumber, columnNumber) {\n\tconst lines = source.split(lineSplitRE);\n\tconst nl = /\\r\\n/.test(source) ? 2 : 1;\n\tlet start = 0;\n\tif (lineNumber > lines.length) {\n\t\treturn source.length;\n\t}\n\tfor (let i = 0; i < lineNumber - 1; i++) {\n\t\tstart += lines[i].length + nl;\n\t}\n\treturn start + columnNumber;\n}\nfunction offsetToLineNumber(source, offset) {\n\tif (offset > source.length) {\n\t\tthrow new Error(`offset is longer than source length! offset ${offset} > length ${source.length}`);\n\t}\n\tconst lines = source.split(lineSplitRE);\n\tconst nl = /\\r\\n/.test(source) ? 2 : 1;\n\tlet counted = 0;\n\tlet line = 0;\n\tfor (; line < lines.length; line++) {\n\t\tconst lineLength = lines[line].length + nl;\n\t\tif (counted + lineLength >= offset) {\n\t\t\tbreak;\n\t\t}\n\t\tcounted += lineLength;\n\t}\n\treturn line + 1;\n}\n\nasync function saveInlineSnapshots(environment, snapshots) {\n\tconst MagicString = (await import('magic-string')).default;\n\tconst files = new Set(snapshots.map((i) => i.file));\n\tawait Promise.all(Array.from(files).map(async (file) => {\n\t\tconst snaps = snapshots.filter((i) => i.file === file);\n\t\tconst code = await environment.readSnapshotFile(file);\n\t\tconst s = new MagicString(code);\n\t\tfor (const snap of snaps) {\n\t\t\tconst index = positionToOffset(code, snap.line, snap.column);\n\t\t\treplaceInlineSnap(code, s, index, snap.snapshot);\n\t\t}\n\t\tconst transformed = s.toString();\n\t\tif (transformed !== code) {\n\t\t\tawait environment.saveSnapshotFile(file, transformed);\n\t\t}\n\t}));\n}\nconst startObjectRegex = /(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\\s*\\(\\s*(?:\\/\\*[\\s\\S]*\\*\\/\\s*|\\/\\/.*(?:[\\n\\r\\u2028\\u2029]\\s*|[\\t\\v\\f \\xA0\\u1680\\u2000-\\u200A\\u202F\\u205F\\u3000\\uFEFF]))*\\{/;\nfunction replaceObjectSnap(code, s, index, newSnap) {\n\tlet _code = code.slice(index);\n\tconst startMatch = startObjectRegex.exec(_code);\n\tif (!startMatch) {\n\t\treturn false;\n\t}\n\t_code = _code.slice(startMatch.index);\n\tlet callEnd = getCallLastIndex(_code);\n\tif (callEnd === null) {\n\t\treturn false;\n\t}\n\tcallEnd += index + startMatch.index;\n\tconst shapeStart = index + startMatch.index + startMatch[0].length;\n\tconst shapeEnd = getObjectShapeEndIndex(code, shapeStart);\n\tconst snap = `, ${prepareSnapString(newSnap, code, index)}`;\n\tif (shapeEnd === callEnd) {\n\t\t// toMatchInlineSnapshot({ foo: expect.any(String) })\n\t\ts.appendLeft(callEnd, snap);\n\t} else {\n\t\t// toMatchInlineSnapshot({ foo: expect.any(String) }, ``)\n\t\ts.overwrite(shapeEnd, callEnd, snap);\n\t}\n\treturn true;\n}\nfunction getObjectShapeEndIndex(code, index) {\n\tlet startBraces = 1;\n\tlet endBraces = 0;\n\twhile (startBraces !== endBraces && index < code.length) {\n\t\tconst s = code[index++];\n\t\tif (s === \"{\") {\n\t\t\tstartBraces++;\n\t\t} else if (s === \"}\") {\n\t\t\tendBraces++;\n\t\t}\n\t}\n\treturn index;\n}\nfunction prepareSnapString(snap, source, index) {\n\tconst lineNumber = offsetToLineNumber(source, index);\n\tconst line = source.split(lineSplitRE)[lineNumber - 1];\n\tconst indent = line.match(/^\\s*/)[0] || \"\";\n\tconst indentNext = indent.includes(\"\t\") ? `${indent}\\t` : `${indent} `;\n\tconst lines = snap.trim().replace(/\\\\/g, \"\\\\\\\\\").split(/\\n/g);\n\tconst isOneline = lines.length <= 1;\n\tconst quote = \"`\";\n\tif (isOneline) {\n\t\treturn `${quote}${lines.join(\"\\n\").replace(/`/g, \"\\\\`\").replace(/\\$\\{/g, \"\\\\${\")}${quote}`;\n\t}\n\treturn `${quote}\\n${lines.map((i) => i ? indentNext + i : \"\").join(\"\\n\").replace(/`/g, \"\\\\`\").replace(/\\$\\{/g, \"\\\\${\")}\\n${indent}${quote}`;\n}\nconst toMatchInlineName = \"toMatchInlineSnapshot\";\nconst toThrowErrorMatchingInlineName = \"toThrowErrorMatchingInlineSnapshot\";\n// on webkit, the line number is at the end of the method, not at the start\nfunction getCodeStartingAtIndex(code, index) {\n\tconst indexInline = index - toMatchInlineName.length;\n\tif (code.slice(indexInline, index) === toMatchInlineName) {\n\t\treturn {\n\t\t\tcode: code.slice(indexInline),\n\t\t\tindex: indexInline\n\t\t};\n\t}\n\tconst indexThrowInline = index - toThrowErrorMatchingInlineName.length;\n\tif (code.slice(index - indexThrowInline, index) === toThrowErrorMatchingInlineName) {\n\t\treturn {\n\t\t\tcode: code.slice(index - indexThrowInline),\n\t\t\tindex: index - indexThrowInline\n\t\t};\n\t}\n\treturn {\n\t\tcode: code.slice(index),\n\t\tindex\n\t};\n}\nconst startRegex = /(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\\s*\\(\\s*(?:\\/\\*[\\s\\S]*\\*\\/\\s*|\\/\\/.*(?:[\\n\\r\\u2028\\u2029]\\s*|[\\t\\v\\f \\xA0\\u1680\\u2000-\\u200A\\u202F\\u205F\\u3000\\uFEFF]))*[\\w$]*(['\"`)])/;\nfunction replaceInlineSnap(code, s, currentIndex, newSnap) {\n\tconst { code: codeStartingAtIndex, index } = getCodeStartingAtIndex(code, currentIndex);\n\tconst startMatch = startRegex.exec(codeStartingAtIndex);\n\tconst firstKeywordMatch = /toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot/.exec(codeStartingAtIndex);\n\tif (!startMatch || startMatch.index !== (firstKeywordMatch === null || firstKeywordMatch === void 0 ? void 0 : firstKeywordMatch.index)) {\n\t\treturn replaceObjectSnap(code, s, index, newSnap);\n\t}\n\tconst quote = startMatch[1];\n\tconst startIndex = index + startMatch.index + startMatch[0].length;\n\tconst snapString = prepareSnapString(newSnap, code, index);\n\tif (quote === \")\") {\n\t\ts.appendRight(startIndex - 1, snapString);\n\t\treturn true;\n\t}\n\tconst quoteEndRE = new RegExp(`(?:^|[^\\\\\\\\])${quote}`);\n\tconst endMatch = quoteEndRE.exec(code.slice(startIndex));\n\tif (!endMatch) {\n\t\treturn false;\n\t}\n\tconst endIndex = startIndex + endMatch.index + endMatch[0].length;\n\ts.overwrite(startIndex - 1, endIndex, snapString);\n\treturn true;\n}\nconst INDENTATION_REGEX = /^([^\\S\\n]*)\\S/m;\nfunction stripSnapshotIndentation(inlineSnapshot) {\n\t// Find indentation if exists.\n\tconst match = inlineSnapshot.match(INDENTATION_REGEX);\n\tif (!match || !match[1]) {\n\t\t// No indentation.\n\t\treturn inlineSnapshot;\n\t}\n\tconst indentation = match[1];\n\tconst lines = inlineSnapshot.split(/\\n/g);\n\tif (lines.length <= 2) {\n\t\t// Must be at least 3 lines.\n\t\treturn inlineSnapshot;\n\t}\n\tif (lines[0].trim() !== \"\" || lines[lines.length - 1].trim() !== \"\") {\n\t\t// If not blank first and last lines, abort.\n\t\treturn inlineSnapshot;\n\t}\n\tfor (let i = 1; i < lines.length - 1; i++) {\n\t\tif (lines[i] !== \"\") {\n\t\t\tif (lines[i].indexOf(indentation) !== 0) {\n\t\t\t\t// All lines except first and last should either be blank or have the same\n\t\t\t\t// indent as the first line (or more). If this isn't the case we don't\n\t\t\t\t// want to touch the snapshot at all.\n\t\t\t\treturn inlineSnapshot;\n\t\t\t}\n\t\t\tlines[i] = lines[i].substring(indentation.length);\n\t\t}\n\t}\n\t// Last line is a special case because it won't have the same indent as others\n\t// but may still have been given some indent to line up.\n\tlines[lines.length - 1] = \"\";\n\t// Return inline snapshot, now at indent 0.\n\tinlineSnapshot = lines.join(\"\\n\");\n\treturn inlineSnapshot;\n}\n\nasync function saveRawSnapshots(environment, snapshots) {\n\tawait Promise.all(snapshots.map(async (snap) => {\n\t\tif (!snap.readonly) {\n\t\t\tawait environment.saveSnapshotFile(snap.file, snap.snapshot);\n\t\t}\n\t}));\n}\n\nvar naturalCompare$1 = {exports: {}};\n\nvar hasRequiredNaturalCompare;\n\nfunction requireNaturalCompare () {\n\tif (hasRequiredNaturalCompare) return naturalCompare$1.exports;\n\thasRequiredNaturalCompare = 1;\n\t/*\n\t * @version 1.4.0\n\t * @date 2015-10-26\n\t * @stability 3 - Stable\n\t * @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)\n\t * @license MIT License\n\t */\n\n\n\tvar naturalCompare = function(a, b) {\n\t\tvar i, codeA\n\t\t, codeB = 1\n\t\t, posA = 0\n\t\t, posB = 0\n\t\t, alphabet = String.alphabet;\n\n\t\tfunction getCode(str, pos, code) {\n\t\t\tif (code) {\n\t\t\t\tfor (i = pos; code = getCode(str, i), code < 76 && code > 65;) ++i;\n\t\t\t\treturn +str.slice(pos - 1, i)\n\t\t\t}\n\t\t\tcode = alphabet && alphabet.indexOf(str.charAt(pos));\n\t\t\treturn code > -1 ? code + 76 : ((code = str.charCodeAt(pos) || 0), code < 45 || code > 127) ? code\n\t\t\t\t: code < 46 ? 65 // -\n\t\t\t\t: code < 48 ? code - 1\n\t\t\t\t: code < 58 ? code + 18 // 0-9\n\t\t\t\t: code < 65 ? code - 11\n\t\t\t\t: code < 91 ? code + 11 // A-Z\n\t\t\t\t: code < 97 ? code - 37\n\t\t\t\t: code < 123 ? code + 5 // a-z\n\t\t\t\t: code - 63\n\t\t}\n\n\n\t\tif ((a+=\"\") != (b+=\"\")) for (;codeB;) {\n\t\t\tcodeA = getCode(a, posA++);\n\t\t\tcodeB = getCode(b, posB++);\n\n\t\t\tif (codeA < 76 && codeB < 76 && codeA > 66 && codeB > 66) {\n\t\t\t\tcodeA = getCode(a, posA, posA);\n\t\t\t\tcodeB = getCode(b, posB, posA = i);\n\t\t\t\tposB = i;\n\t\t\t}\n\n\t\t\tif (codeA != codeB) return (codeA < codeB) ? -1 : 1\n\t\t}\n\t\treturn 0\n\t};\n\n\ttry {\n\t\tnaturalCompare$1.exports = naturalCompare;\n\t} catch (e) {\n\t\tString.naturalCompare = naturalCompare;\n\t}\n\treturn naturalCompare$1.exports;\n}\n\nvar naturalCompareExports = requireNaturalCompare();\nvar naturalCompare = /*@__PURE__*/getDefaultExportFromCjs(naturalCompareExports);\n\nconst serialize$1 = (val, config, indentation, depth, refs, printer) => {\n\t// Serialize a non-default name, even if config.printFunctionName is false.\n\tconst name = val.getMockName();\n\tconst nameString = name === \"vi.fn()\" ? \"\" : ` ${name}`;\n\tlet callsString = \"\";\n\tif (val.mock.calls.length !== 0) {\n\t\tconst indentationNext = indentation + config.indent;\n\t\tcallsString = ` {${config.spacingOuter}${indentationNext}\"calls\": ${printer(val.mock.calls, config, indentationNext, depth, refs)}${config.min ? \", \" : \",\"}${config.spacingOuter}${indentationNext}\"results\": ${printer(val.mock.results, config, indentationNext, depth, refs)}${config.min ? \"\" : \",\"}${config.spacingOuter}${indentation}}`;\n\t}\n\treturn `[MockFunction${nameString}]${callsString}`;\n};\nconst test = (val) => val && !!val._isMockFunction;\nconst plugin = {\n\tserialize: serialize$1,\n\ttest\n};\n\nconst { DOMCollection, DOMElement, Immutable, ReactElement, ReactTestComponent, AsymmetricMatcher } = plugins;\nlet PLUGINS = [\n\tReactTestComponent,\n\tReactElement,\n\tDOMElement,\n\tDOMCollection,\n\tImmutable,\n\tAsymmetricMatcher,\n\tplugin\n];\nfunction addSerializer(plugin) {\n\tPLUGINS = [plugin].concat(PLUGINS);\n}\nfunction getSerializers() {\n\treturn PLUGINS;\n}\n\n// TODO: rewrite and clean up\nfunction testNameToKey(testName, count) {\n\treturn `${testName} ${count}`;\n}\nfunction keyToTestName(key) {\n\tif (!/ \\d+$/.test(key)) {\n\t\tthrow new Error(\"Snapshot keys must end with a number.\");\n\t}\n\treturn key.replace(/ \\d+$/, \"\");\n}\nfunction getSnapshotData(content, options) {\n\tconst update = options.updateSnapshot;\n\tconst data = Object.create(null);\n\tlet snapshotContents = \"\";\n\tlet dirty = false;\n\tif (content != null) {\n\t\ttry {\n\t\t\tsnapshotContents = content;\n\t\t\t// eslint-disable-next-line no-new-func\n\t\t\tconst populate = new Function(\"exports\", snapshotContents);\n\t\t\tpopulate(data);\n\t\t} catch {}\n\t}\n\t// const validationResult = validateSnapshotVersion(snapshotContents)\n\tconst isInvalid = snapshotContents;\n\t// if (update === 'none' && isInvalid)\n\t// throw validationResult\n\tif ((update === \"all\" || update === \"new\") && isInvalid) {\n\t\tdirty = true;\n\t}\n\treturn {\n\t\tdata,\n\t\tdirty\n\t};\n}\n// Add extra line breaks at beginning and end of multiline snapshot\n// to make the content easier to read.\nfunction addExtraLineBreaks(string) {\n\treturn string.includes(\"\\n\") ? `\\n${string}\\n` : string;\n}\n// Remove extra line breaks at beginning and end of multiline snapshot.\n// Instead of trim, which can remove additional newlines or spaces\n// at beginning or end of the content from a custom serializer.\nfunction removeExtraLineBreaks(string) {\n\treturn string.length > 2 && string.startsWith(\"\\n\") && string.endsWith(\"\\n\") ? string.slice(1, -1) : string;\n}\n// export const removeLinesBeforeExternalMatcherTrap = (stack: string): string => {\n// const lines = stack.split('\\n')\n// for (let i = 0; i < lines.length; i += 1) {\n// // It's a function name specified in `packages/expect/src/index.ts`\n// // for external custom matchers.\n// if (lines[i].includes('__EXTERNAL_MATCHER_TRAP__'))\n// return lines.slice(i + 1).join('\\n')\n// }\n// return stack\n// }\nconst escapeRegex = true;\nconst printFunctionName = false;\nfunction serialize(val, indent = 2, formatOverrides = {}) {\n\treturn normalizeNewlines(format(val, {\n\t\tescapeRegex,\n\t\tindent,\n\t\tplugins: getSerializers(),\n\t\tprintFunctionName,\n\t\t...formatOverrides\n\t}));\n}\nfunction escapeBacktickString(str) {\n\treturn str.replace(/`|\\\\|\\$\\{/g, \"\\\\$&\");\n}\nfunction printBacktickString(str) {\n\treturn `\\`${escapeBacktickString(str)}\\``;\n}\nfunction normalizeNewlines(string) {\n\treturn string.replace(/\\r\\n|\\r/g, \"\\n\");\n}\nasync function saveSnapshotFile(environment, snapshotData, snapshotPath) {\n\tconst snapshots = Object.keys(snapshotData).sort(naturalCompare).map((key) => `exports[${printBacktickString(key)}] = ${printBacktickString(normalizeNewlines(snapshotData[key]))};`);\n\tconst content = `${environment.getHeader()}\\n\\n${snapshots.join(\"\\n\\n\")}\\n`;\n\tconst oldContent = await environment.readSnapshotFile(snapshotPath);\n\tconst skipWriting = oldContent != null && oldContent === content;\n\tif (skipWriting) {\n\t\treturn;\n\t}\n\tawait environment.saveSnapshotFile(snapshotPath, content);\n}\nfunction deepMergeArray(target = [], source = []) {\n\tconst mergedOutput = Array.from(target);\n\tsource.forEach((sourceElement, index) => {\n\t\tconst targetElement = mergedOutput[index];\n\t\tif (Array.isArray(target[index])) {\n\t\t\tmergedOutput[index] = deepMergeArray(target[index], sourceElement);\n\t\t} else if (isObject(targetElement)) {\n\t\t\tmergedOutput[index] = deepMergeSnapshot(target[index], sourceElement);\n\t\t} else {\n\t\t\t// Source does not exist in target or target is primitive and cannot be deep merged\n\t\t\tmergedOutput[index] = sourceElement;\n\t\t}\n\t});\n\treturn mergedOutput;\n}\n/**\n* Deep merge, but considers asymmetric matchers. Unlike base util's deep merge,\n* will merge any object-like instance.\n* Compatible with Jest's snapshot matcher. Should not be used outside of snapshot.\n*\n* @example\n* ```ts\n* toMatchSnapshot({\n* name: expect.stringContaining('text')\n* })\n* ```\n*/\nfunction deepMergeSnapshot(target, source) {\n\tif (isObject(target) && isObject(source)) {\n\t\tconst mergedOutput = { ...target };\n\t\tObject.keys(source).forEach((key) => {\n\t\t\tif (isObject(source[key]) && !source[key].$$typeof) {\n\t\t\t\tif (!(key in target)) {\n\t\t\t\t\tObject.assign(mergedOutput, { [key]: source[key] });\n\t\t\t\t} else {\n\t\t\t\t\tmergedOutput[key] = deepMergeSnapshot(target[key], source[key]);\n\t\t\t\t}\n\t\t\t} else if (Array.isArray(source[key])) {\n\t\t\t\tmergedOutput[key] = deepMergeArray(target[key], source[key]);\n\t\t\t} else {\n\t\t\t\tObject.assign(mergedOutput, { [key]: source[key] });\n\t\t\t}\n\t\t});\n\t\treturn mergedOutput;\n\t} else if (Array.isArray(target) && Array.isArray(source)) {\n\t\treturn deepMergeArray(target, source);\n\t}\n\treturn target;\n}\nclass DefaultMap extends Map {\n\tconstructor(defaultFn, entries) {\n\t\tsuper(entries);\n\t\tthis.defaultFn = defaultFn;\n\t}\n\tget(key) {\n\t\tif (!this.has(key)) {\n\t\t\tthis.set(key, this.defaultFn(key));\n\t\t}\n\t\treturn super.get(key);\n\t}\n}\nclass CounterMap extends DefaultMap {\n\tconstructor() {\n\t\tsuper(() => 0);\n\t}\n\t// compat for jest-image-snapshot https://github.com/vitest-dev/vitest/issues/7322\n\t// `valueOf` and `Snapshot.added` setter allows\n\t// snapshotState.added = snapshotState.added + 1\n\t// to function as\n\t// snapshotState.added.total_ = snapshotState.added.total() + 1\n\t_total;\n\tvalueOf() {\n\t\treturn this._total = this.total();\n\t}\n\tincrement(key) {\n\t\tif (typeof this._total !== \"undefined\") {\n\t\t\tthis._total++;\n\t\t}\n\t\tthis.set(key, this.get(key) + 1);\n\t}\n\ttotal() {\n\t\tif (typeof this._total !== \"undefined\") {\n\t\t\treturn this._total;\n\t\t}\n\t\tlet total = 0;\n\t\tfor (const x of this.values()) {\n\t\t\ttotal += x;\n\t\t}\n\t\treturn total;\n\t}\n}\n\nfunction isSameStackPosition(x, y) {\n\treturn x.file === y.file && x.column === y.column && x.line === y.line;\n}\nclass SnapshotState {\n\t_counters = new CounterMap();\n\t_dirty;\n\t_updateSnapshot;\n\t_snapshotData;\n\t_initialData;\n\t_inlineSnapshots;\n\t_inlineSnapshotStacks;\n\t_testIdToKeys = new DefaultMap(() => []);\n\t_rawSnapshots;\n\t_uncheckedKeys;\n\t_snapshotFormat;\n\t_environment;\n\t_fileExists;\n\texpand;\n\t// getter/setter for jest-image-snapshot compat\n\t// https://github.com/vitest-dev/vitest/issues/7322\n\t_added = new CounterMap();\n\t_matched = new CounterMap();\n\t_unmatched = new CounterMap();\n\t_updated = new CounterMap();\n\tget added() {\n\t\treturn this._added;\n\t}\n\tset added(value) {\n\t\tthis._added._total = value;\n\t}\n\tget matched() {\n\t\treturn this._matched;\n\t}\n\tset matched(value) {\n\t\tthis._matched._total = value;\n\t}\n\tget unmatched() {\n\t\treturn this._unmatched;\n\t}\n\tset unmatched(value) {\n\t\tthis._unmatched._total = value;\n\t}\n\tget updated() {\n\t\treturn this._updated;\n\t}\n\tset updated(value) {\n\t\tthis._updated._total = value;\n\t}\n\tconstructor(testFilePath, snapshotPath, snapshotContent, options) {\n\t\tthis.testFilePath = testFilePath;\n\t\tthis.snapshotPath = snapshotPath;\n\t\tconst { data, dirty } = getSnapshotData(snapshotContent, options);\n\t\tthis._fileExists = snapshotContent != null;\n\t\tthis._initialData = { ...data };\n\t\tthis._snapshotData = { ...data };\n\t\tthis._dirty = dirty;\n\t\tthis._inlineSnapshots = [];\n\t\tthis._inlineSnapshotStacks = [];\n\t\tthis._rawSnapshots = [];\n\t\tthis._uncheckedKeys = new Set(Object.keys(this._snapshotData));\n\t\tthis.expand = options.expand || false;\n\t\tthis._updateSnapshot = options.updateSnapshot;\n\t\tthis._snapshotFormat = {\n\t\t\tprintBasicPrototype: false,\n\t\t\tescapeString: false,\n\t\t\t...options.snapshotFormat\n\t\t};\n\t\tthis._environment = options.snapshotEnvironment;\n\t}\n\tstatic async create(testFilePath, options) {\n\t\tconst snapshotPath = await options.snapshotEnvironment.resolvePath(testFilePath);\n\t\tconst content = await options.snapshotEnvironment.readSnapshotFile(snapshotPath);\n\t\treturn new SnapshotState(testFilePath, snapshotPath, content, options);\n\t}\n\tget environment() {\n\t\treturn this._environment;\n\t}\n\tmarkSnapshotsAsCheckedForTest(testName) {\n\t\tthis._uncheckedKeys.forEach((uncheckedKey) => {\n\t\t\t// skip snapshots with following keys\n\t\t\t// testName n\n\t\t\t// testName > xxx n (this is for toMatchSnapshot(\"xxx\") API)\n\t\t\tif (/ \\d+$| > /.test(uncheckedKey.slice(testName.length))) {\n\t\t\t\tthis._uncheckedKeys.delete(uncheckedKey);\n\t\t\t}\n\t\t});\n\t}\n\tclearTest(testId) {\n\t\t// clear inline\n\t\tthis._inlineSnapshots = this._inlineSnapshots.filter((s) => s.testId !== testId);\n\t\tthis._inlineSnapshotStacks = this._inlineSnapshotStacks.filter((s) => s.testId !== testId);\n\t\t// clear file\n\t\tfor (const key of this._testIdToKeys.get(testId)) {\n\t\t\tconst name = keyToTestName(key);\n\t\t\tconst count = this._counters.get(name);\n\t\t\tif (count > 0) {\n\t\t\t\tif (key in this._snapshotData || key in this._initialData) {\n\t\t\t\t\tthis._snapshotData[key] = this._initialData[key];\n\t\t\t\t}\n\t\t\t\tthis._counters.set(name, count - 1);\n\t\t\t}\n\t\t}\n\t\tthis._testIdToKeys.delete(testId);\n\t\t// clear stats\n\t\tthis.added.delete(testId);\n\t\tthis.updated.delete(testId);\n\t\tthis.matched.delete(testId);\n\t\tthis.unmatched.delete(testId);\n\t}\n\t_inferInlineSnapshotStack(stacks) {\n\t\t// if called inside resolves/rejects, stacktrace is different\n\t\tconst promiseIndex = stacks.findIndex((i) => i.method.match(/__VITEST_(RESOLVES|REJECTS)__/));\n\t\tif (promiseIndex !== -1) {\n\t\t\treturn stacks[promiseIndex + 3];\n\t\t}\n\t\t// inline snapshot function is called __INLINE_SNAPSHOT__\n\t\t// in integrations/snapshot/chai.ts\n\t\tconst stackIndex = stacks.findIndex((i) => i.method.includes(\"__INLINE_SNAPSHOT__\"));\n\t\treturn stackIndex !== -1 ? stacks[stackIndex + 2] : null;\n\t}\n\t_addSnapshot(key, receivedSerialized, options) {\n\t\tthis._dirty = true;\n\t\tif (options.stack) {\n\t\t\tthis._inlineSnapshots.push({\n\t\t\t\tsnapshot: receivedSerialized,\n\t\t\t\ttestId: options.testId,\n\t\t\t\t...options.stack\n\t\t\t});\n\t\t} else if (options.rawSnapshot) {\n\t\t\tthis._rawSnapshots.push({\n\t\t\t\t...options.rawSnapshot,\n\t\t\t\tsnapshot: receivedSerialized\n\t\t\t});\n\t\t} else {\n\t\t\tthis._snapshotData[key] = receivedSerialized;\n\t\t}\n\t}\n\tasync save() {\n\t\tconst hasExternalSnapshots = Object.keys(this._snapshotData).length;\n\t\tconst hasInlineSnapshots = this._inlineSnapshots.length;\n\t\tconst hasRawSnapshots = this._rawSnapshots.length;\n\t\tconst isEmpty = !hasExternalSnapshots && !hasInlineSnapshots && !hasRawSnapshots;\n\t\tconst status = {\n\t\t\tdeleted: false,\n\t\t\tsaved: false\n\t\t};\n\t\tif ((this._dirty || this._uncheckedKeys.size) && !isEmpty) {\n\t\t\tif (hasExternalSnapshots) {\n\t\t\t\tawait saveSnapshotFile(this._environment, this._snapshotData, this.snapshotPath);\n\t\t\t\tthis._fileExists = true;\n\t\t\t}\n\t\t\tif (hasInlineSnapshots) {\n\t\t\t\tawait saveInlineSnapshots(this._environment, this._inlineSnapshots);\n\t\t\t}\n\t\t\tif (hasRawSnapshots) {\n\t\t\t\tawait saveRawSnapshots(this._environment, this._rawSnapshots);\n\t\t\t}\n\t\t\tstatus.saved = true;\n\t\t} else if (!hasExternalSnapshots && this._fileExists) {\n\t\t\tif (this._updateSnapshot === \"all\") {\n\t\t\t\tawait this._environment.removeSnapshotFile(this.snapshotPath);\n\t\t\t\tthis._fileExists = false;\n\t\t\t}\n\t\t\tstatus.deleted = true;\n\t\t}\n\t\treturn status;\n\t}\n\tgetUncheckedCount() {\n\t\treturn this._uncheckedKeys.size || 0;\n\t}\n\tgetUncheckedKeys() {\n\t\treturn Array.from(this._uncheckedKeys);\n\t}\n\tremoveUncheckedKeys() {\n\t\tif (this._updateSnapshot === \"all\" && this._uncheckedKeys.size) {\n\t\t\tthis._dirty = true;\n\t\t\tthis._uncheckedKeys.forEach((key) => delete this._snapshotData[key]);\n\t\t\tthis._uncheckedKeys.clear();\n\t\t}\n\t}\n\tmatch({ testId, testName, received, key, inlineSnapshot, isInline, error, rawSnapshot }) {\n\t\t// this also increments counter for inline snapshots. maybe we shouldn't?\n\t\tthis._counters.increment(testName);\n\t\tconst count = this._counters.get(testName);\n\t\tif (!key) {\n\t\t\tkey = testNameToKey(testName, count);\n\t\t}\n\t\tthis._testIdToKeys.get(testId).push(key);\n\t\t// Do not mark the snapshot as \"checked\" if the snapshot is inline and\n\t\t// there's an external snapshot. This way the external snapshot can be\n\t\t// removed with `--updateSnapshot`.\n\t\tif (!(isInline && this._snapshotData[key] !== undefined)) {\n\t\t\tthis._uncheckedKeys.delete(key);\n\t\t}\n\t\tlet receivedSerialized = rawSnapshot && typeof received === \"string\" ? received : serialize(received, undefined, this._snapshotFormat);\n\t\tif (!rawSnapshot) {\n\t\t\treceivedSerialized = addExtraLineBreaks(receivedSerialized);\n\t\t}\n\t\tif (rawSnapshot) {\n\t\t\t// normalize EOL when snapshot contains CRLF but received is LF\n\t\t\tif (rawSnapshot.content && rawSnapshot.content.match(/\\r\\n/) && !receivedSerialized.match(/\\r\\n/)) {\n\t\t\t\trawSnapshot.content = normalizeNewlines(rawSnapshot.content);\n\t\t\t}\n\t\t}\n\t\tconst expected = isInline ? inlineSnapshot : rawSnapshot ? rawSnapshot.content : this._snapshotData[key];\n\t\tconst expectedTrimmed = rawSnapshot ? expected : expected === null || expected === void 0 ? void 0 : expected.trim();\n\t\tconst pass = expectedTrimmed === (rawSnapshot ? receivedSerialized : receivedSerialized.trim());\n\t\tconst hasSnapshot = expected !== undefined;\n\t\tconst snapshotIsPersisted = isInline || this._fileExists || rawSnapshot && rawSnapshot.content != null;\n\t\tif (pass && !isInline && !rawSnapshot) {\n\t\t\t// Executing a snapshot file as JavaScript and writing the strings back\n\t\t\t// when other snapshots have changed loses the proper escaping for some\n\t\t\t// characters. Since we check every snapshot in every test, use the newly\n\t\t\t// generated formatted string.\n\t\t\t// Note that this is only relevant when a snapshot is added and the dirty\n\t\t\t// flag is set.\n\t\t\tthis._snapshotData[key] = receivedSerialized;\n\t\t}\n\t\t// find call site of toMatchInlineSnapshot\n\t\tlet stack;\n\t\tif (isInline) {\n\t\t\tvar _this$environment$pro, _this$environment;\n\t\t\tconst stacks = parseErrorStacktrace(error || new Error(\"snapshot\"), { ignoreStackEntries: [] });\n\t\t\tconst _stack = this._inferInlineSnapshotStack(stacks);\n\t\t\tif (!_stack) {\n\t\t\t\tthrow new Error(`@vitest/snapshot: Couldn't infer stack frame for inline snapshot.\\n${JSON.stringify(stacks)}`);\n\t\t\t}\n\t\t\tstack = ((_this$environment$pro = (_this$environment = this.environment).processStackTrace) === null || _this$environment$pro === void 0 ? void 0 : _this$environment$pro.call(_this$environment, _stack)) || _stack;\n\t\t\t// removing 1 column, because source map points to the wrong\n\t\t\t// location for js files, but `column-1` points to the same in both js/ts\n\t\t\t// https://github.com/vitejs/vite/issues/8657\n\t\t\tstack.column--;\n\t\t\t// reject multiple inline snapshots at the same location if snapshot is different\n\t\t\tconst snapshotsWithSameStack = this._inlineSnapshotStacks.filter((s) => isSameStackPosition(s, stack));\n\t\t\tif (snapshotsWithSameStack.length > 0) {\n\t\t\t\t// ensure only one snapshot will be written at the same location\n\t\t\t\tthis._inlineSnapshots = this._inlineSnapshots.filter((s) => !isSameStackPosition(s, stack));\n\t\t\t\tconst differentSnapshot = snapshotsWithSameStack.find((s) => s.snapshot !== receivedSerialized);\n\t\t\t\tif (differentSnapshot) {\n\t\t\t\t\tthrow Object.assign(new Error(\"toMatchInlineSnapshot with different snapshots cannot be called at the same location\"), {\n\t\t\t\t\t\tactual: receivedSerialized,\n\t\t\t\t\t\texpected: differentSnapshot.snapshot\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis._inlineSnapshotStacks.push({\n\t\t\t\t...stack,\n\t\t\t\ttestId,\n\t\t\t\tsnapshot: receivedSerialized\n\t\t\t});\n\t\t}\n\t\t// These are the conditions on when to write snapshots:\n\t\t// * There's no snapshot file in a non-CI environment.\n\t\t// * There is a snapshot file and we decided to update the snapshot.\n\t\t// * There is a snapshot file, but it doesn't have this snapshot.\n\t\t// These are the conditions on when not to write snapshots:\n\t\t// * The update flag is set to 'none'.\n\t\t// * There's no snapshot file or a file without this snapshot on a CI environment.\n\t\tif (hasSnapshot && this._updateSnapshot === \"all\" || (!hasSnapshot || !snapshotIsPersisted) && (this._updateSnapshot === \"new\" || this._updateSnapshot === \"all\")) {\n\t\t\tif (this._updateSnapshot === \"all\") {\n\t\t\t\tif (!pass) {\n\t\t\t\t\tif (hasSnapshot) {\n\t\t\t\t\t\tthis.updated.increment(testId);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.added.increment(testId);\n\t\t\t\t\t}\n\t\t\t\t\tthis._addSnapshot(key, receivedSerialized, {\n\t\t\t\t\t\tstack,\n\t\t\t\t\t\ttestId,\n\t\t\t\t\t\trawSnapshot\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\tthis.matched.increment(testId);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthis._addSnapshot(key, receivedSerialized, {\n\t\t\t\t\tstack,\n\t\t\t\t\ttestId,\n\t\t\t\t\trawSnapshot\n\t\t\t\t});\n\t\t\t\tthis.added.increment(testId);\n\t\t\t}\n\t\t\treturn {\n\t\t\t\tactual: \"\",\n\t\t\t\tcount,\n\t\t\t\texpected: \"\",\n\t\t\t\tkey,\n\t\t\t\tpass: true\n\t\t\t};\n\t\t} else {\n\t\t\tif (!pass) {\n\t\t\t\tthis.unmatched.increment(testId);\n\t\t\t\treturn {\n\t\t\t\t\tactual: rawSnapshot ? receivedSerialized : removeExtraLineBreaks(receivedSerialized),\n\t\t\t\t\tcount,\n\t\t\t\t\texpected: expectedTrimmed !== undefined ? rawSnapshot ? expectedTrimmed : removeExtraLineBreaks(expectedTrimmed) : undefined,\n\t\t\t\t\tkey,\n\t\t\t\t\tpass: false\n\t\t\t\t};\n\t\t\t} else {\n\t\t\t\tthis.matched.increment(testId);\n\t\t\t\treturn {\n\t\t\t\t\tactual: \"\",\n\t\t\t\t\tcount,\n\t\t\t\t\texpected: \"\",\n\t\t\t\t\tkey,\n\t\t\t\t\tpass: true\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t}\n\tasync pack() {\n\t\tconst snapshot = {\n\t\t\tfilepath: this.testFilePath,\n\t\t\tadded: 0,\n\t\t\tfileDeleted: false,\n\t\t\tmatched: 0,\n\t\t\tunchecked: 0,\n\t\t\tuncheckedKeys: [],\n\t\t\tunmatched: 0,\n\t\t\tupdated: 0\n\t\t};\n\t\tconst uncheckedCount = this.getUncheckedCount();\n\t\tconst uncheckedKeys = this.getUncheckedKeys();\n\t\tif (uncheckedCount) {\n\t\t\tthis.removeUncheckedKeys();\n\t\t}\n\t\tconst status = await this.save();\n\t\tsnapshot.fileDeleted = status.deleted;\n\t\tsnapshot.added = this.added.total();\n\t\tsnapshot.matched = this.matched.total();\n\t\tsnapshot.unmatched = this.unmatched.total();\n\t\tsnapshot.updated = this.updated.total();\n\t\tsnapshot.unchecked = !status.deleted ? uncheckedCount : 0;\n\t\tsnapshot.uncheckedKeys = Array.from(uncheckedKeys);\n\t\treturn snapshot;\n\t}\n}\n\nfunction createMismatchError(message, expand, actual, expected) {\n\tconst error = new Error(message);\n\tObject.defineProperty(error, \"actual\", {\n\t\tvalue: actual,\n\t\tenumerable: true,\n\t\tconfigurable: true,\n\t\twritable: true\n\t});\n\tObject.defineProperty(error, \"expected\", {\n\t\tvalue: expected,\n\t\tenumerable: true,\n\t\tconfigurable: true,\n\t\twritable: true\n\t});\n\tObject.defineProperty(error, \"diffOptions\", { value: { expand } });\n\treturn error;\n}\nclass SnapshotClient {\n\tsnapshotStateMap = new Map();\n\tconstructor(options = {}) {\n\t\tthis.options = options;\n\t}\n\tasync setup(filepath, options) {\n\t\tif (this.snapshotStateMap.has(filepath)) {\n\t\t\treturn;\n\t\t}\n\t\tthis.snapshotStateMap.set(filepath, await SnapshotState.create(filepath, options));\n\t}\n\tasync finish(filepath) {\n\t\tconst state = this.getSnapshotState(filepath);\n\t\tconst result = await state.pack();\n\t\tthis.snapshotStateMap.delete(filepath);\n\t\treturn result;\n\t}\n\tskipTest(filepath, testName) {\n\t\tconst state = this.getSnapshotState(filepath);\n\t\tstate.markSnapshotsAsCheckedForTest(testName);\n\t}\n\tclearTest(filepath, testId) {\n\t\tconst state = this.getSnapshotState(filepath);\n\t\tstate.clearTest(testId);\n\t}\n\tgetSnapshotState(filepath) {\n\t\tconst state = this.snapshotStateMap.get(filepath);\n\t\tif (!state) {\n\t\t\tthrow new Error(`The snapshot state for '${filepath}' is not found. Did you call 'SnapshotClient.setup()'?`);\n\t\t}\n\t\treturn state;\n\t}\n\tassert(options) {\n\t\tconst { filepath, name, testId = name, message, isInline = false, properties, inlineSnapshot, error, errorMessage, rawSnapshot } = options;\n\t\tlet { received } = options;\n\t\tif (!filepath) {\n\t\t\tthrow new Error(\"Snapshot cannot be used outside of test\");\n\t\t}\n\t\tconst snapshotState = this.getSnapshotState(filepath);\n\t\tif (typeof properties === \"object\") {\n\t\t\tif (typeof received !== \"object\" || !received) {\n\t\t\t\tthrow new Error(\"Received value must be an object when the matcher has properties\");\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tvar _this$options$isEqual, _this$options;\n\t\t\t\tconst pass = ((_this$options$isEqual = (_this$options = this.options).isEqual) === null || _this$options$isEqual === void 0 ? void 0 : _this$options$isEqual.call(_this$options, received, properties)) ?? false;\n\t\t\t\t// const pass = equals(received, properties, [iterableEquality, subsetEquality])\n\t\t\t\tif (!pass) {\n\t\t\t\t\tthrow createMismatchError(\"Snapshot properties mismatched\", snapshotState.expand, received, properties);\n\t\t\t\t} else {\n\t\t\t\t\treceived = deepMergeSnapshot(received, properties);\n\t\t\t\t}\n\t\t\t} catch (err) {\n\t\t\t\terr.message = errorMessage || \"Snapshot mismatched\";\n\t\t\t\tthrow err;\n\t\t\t}\n\t\t}\n\t\tconst testName = [name, ...message ? [message] : []].join(\" > \");\n\t\tconst { actual, expected, key, pass } = snapshotState.match({\n\t\t\ttestId,\n\t\t\ttestName,\n\t\t\treceived,\n\t\t\tisInline,\n\t\t\terror,\n\t\t\tinlineSnapshot,\n\t\t\trawSnapshot\n\t\t});\n\t\tif (!pass) {\n\t\t\tthrow createMismatchError(`Snapshot \\`${key || \"unknown\"}\\` mismatched`, snapshotState.expand, rawSnapshot ? actual : actual === null || actual === void 0 ? void 0 : actual.trim(), rawSnapshot ? expected : expected === null || expected === void 0 ? void 0 : expected.trim());\n\t\t}\n\t}\n\tasync assertRaw(options) {\n\t\tif (!options.rawSnapshot) {\n\t\t\tthrow new Error(\"Raw snapshot is required\");\n\t\t}\n\t\tconst { filepath, rawSnapshot } = options;\n\t\tif (rawSnapshot.content == null) {\n\t\t\tif (!filepath) {\n\t\t\t\tthrow new Error(\"Snapshot cannot be used outside of test\");\n\t\t\t}\n\t\t\tconst snapshotState = this.getSnapshotState(filepath);\n\t\t\t// save the filepath, so it don't lose even if the await make it out-of-context\n\t\t\toptions.filepath || (options.filepath = filepath);\n\t\t\t// resolve and read the raw snapshot file\n\t\t\trawSnapshot.file = await snapshotState.environment.resolveRawPath(filepath, rawSnapshot.file);\n\t\t\trawSnapshot.content = await snapshotState.environment.readSnapshotFile(rawSnapshot.file) ?? undefined;\n\t\t}\n\t\treturn this.assert(options);\n\t}\n\tclear() {\n\t\tthis.snapshotStateMap.clear();\n\t}\n}\n\nexport { SnapshotClient, SnapshotState, addSerializer, getSerializers, stripSnapshotIndentation };\n","/* Ported from https://github.com/boblauer/MockDate/blob/master/src/mockdate.ts */\n/*\nThe MIT License (MIT)\n\nCopyright (c) 2014 Bob Lauer\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n*/\nconst RealDate = Date;\nlet now = null;\nclass MockDate extends RealDate {\n\tconstructor(y, m, d, h, M, s, ms) {\n\t\tsuper();\n\t\tlet date;\n\t\tswitch (arguments.length) {\n\t\t\tcase 0:\n\t\t\t\tif (now !== null) date = new RealDate(now.valueOf());\n\t\t\t\telse date = new RealDate();\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tdate = new RealDate(y);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\td = typeof d === \"undefined\" ? 1 : d;\n\t\t\t\th = h || 0;\n\t\t\t\tM = M || 0;\n\t\t\t\ts = s || 0;\n\t\t\t\tms = ms || 0;\n\t\t\t\tdate = new RealDate(y, m, d, h, M, s, ms);\n\t\t\t\tbreak;\n\t\t}\n\t\tObject.setPrototypeOf(date, MockDate.prototype);\n\t\treturn date;\n\t}\n}\nMockDate.UTC = RealDate.UTC;\nMockDate.now = function() {\n\treturn new MockDate().valueOf();\n};\nMockDate.parse = function(dateString) {\n\treturn RealDate.parse(dateString);\n};\nMockDate.toString = function() {\n\treturn RealDate.toString();\n};\nfunction mockDate(date) {\n\tconst dateObj = new RealDate(date.valueOf());\n\tif (Number.isNaN(dateObj.getTime())) throw new TypeError(`mockdate: The time set is an invalid date: ${date}`);\n\t// @ts-expect-error global\n\tglobalThis.Date = MockDate;\n\tnow = dateObj.valueOf();\n}\nfunction resetDate() {\n\tglobalThis.Date = RealDate;\n}\n\nexport { RealDate as R, mockDate as m, resetDate as r };\n","import { equals, iterableEquality, subsetEquality, JestExtend, JestChaiExpect, JestAsymmetricMatchers, GLOBAL_EXPECT, ASYMMETRIC_MATCHERS_OBJECT, getState, setState, addCustomEqualityTesters, customMatchers } from '@vitest/expect';\nimport { getCurrentTest } from '@vitest/runner';\nimport { getNames, getTestName } from '@vitest/runner/utils';\nimport * as chai$1 from 'chai';\nimport { g as getWorkerState, a as getCurrentEnvironment, i as isChildProcess, w as waitForImportsToResolve, r as resetModules } from './utils.XdZDrNZV.js';\nimport { getSafeTimers, assertTypes, createSimpleStackTrace } from '@vitest/utils';\nimport { g as getDefaultExportFromCjs, c as commonjsGlobal } from './_commonjsHelpers.BFTU3MAI.js';\nimport { stripSnapshotIndentation, addSerializer, SnapshotClient } from '@vitest/snapshot';\nimport '@vitest/utils/error';\nimport { fn, spyOn, mocks, isMockFunction } from '@vitest/spy';\nimport { parseSingleStack } from '@vitest/utils/source-map';\nimport { R as RealDate, r as resetDate, m as mockDate } from './date.Bq6ZW5rf.js';\n\n// these matchers are not supported because they don't make sense with poll\nconst unsupported = [\n\t\"matchSnapshot\",\n\t\"toMatchSnapshot\",\n\t\"toMatchInlineSnapshot\",\n\t\"toThrowErrorMatchingSnapshot\",\n\t\"toThrowErrorMatchingInlineSnapshot\",\n\t\"throws\",\n\t\"Throw\",\n\t\"throw\",\n\t\"toThrow\",\n\t\"toThrowError\"\n];\nfunction createExpectPoll(expect) {\n\treturn function poll(fn, options = {}) {\n\t\tconst state = getWorkerState();\n\t\tconst defaults = state.config.expect?.poll ?? {};\n\t\tconst { interval = defaults.interval ?? 50, timeout = defaults.timeout ?? 1e3, message } = options;\n\t\t// @ts-expect-error private poll access\n\t\tconst assertion = expect(null, message).withContext({ poll: true });\n\t\tfn = fn.bind(assertion);\n\t\tconst test = chai$1.util.flag(assertion, \"vitest-test\");\n\t\tif (!test) throw new Error(\"expect.poll() must be called inside a test\");\n\t\tconst proxy = new Proxy(assertion, { get(target, key, receiver) {\n\t\t\tconst assertionFunction = Reflect.get(target, key, receiver);\n\t\t\tif (typeof assertionFunction !== \"function\") return assertionFunction instanceof chai$1.Assertion ? proxy : assertionFunction;\n\t\t\tif (key === \"assert\") return assertionFunction;\n\t\t\tif (typeof key === \"string\" && unsupported.includes(key)) throw new SyntaxError(`expect.poll() is not supported in combination with .${key}(). Use vi.waitFor() if your assertion condition is unstable.`);\n\t\t\treturn function(...args) {\n\t\t\t\tconst STACK_TRACE_ERROR = new Error(\"STACK_TRACE_ERROR\");\n\t\t\t\tconst promise = () => new Promise((resolve, reject) => {\n\t\t\t\t\tlet intervalId;\n\t\t\t\t\tlet timeoutId;\n\t\t\t\t\tlet lastError;\n\t\t\t\t\tconst { setTimeout, clearTimeout } = getSafeTimers();\n\t\t\t\t\tconst check = async () => {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tchai$1.util.flag(assertion, \"_name\", key);\n\t\t\t\t\t\t\tconst obj = await fn();\n\t\t\t\t\t\t\tchai$1.util.flag(assertion, \"object\", obj);\n\t\t\t\t\t\t\tresolve(await assertionFunction.call(assertion, ...args));\n\t\t\t\t\t\t\tclearTimeout(intervalId);\n\t\t\t\t\t\t\tclearTimeout(timeoutId);\n\t\t\t\t\t\t} catch (err) {\n\t\t\t\t\t\t\tlastError = err;\n\t\t\t\t\t\t\tif (!chai$1.util.flag(assertion, \"_isLastPollAttempt\")) intervalId = setTimeout(check, interval);\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\ttimeoutId = setTimeout(() => {\n\t\t\t\t\t\tclearTimeout(intervalId);\n\t\t\t\t\t\tchai$1.util.flag(assertion, \"_isLastPollAttempt\", true);\n\t\t\t\t\t\tconst rejectWithCause = (cause) => {\n\t\t\t\t\t\t\treject(copyStackTrace$1(new Error(\"Matcher did not succeed in time.\", { cause }), STACK_TRACE_ERROR));\n\t\t\t\t\t\t};\n\t\t\t\t\t\tcheck().then(() => rejectWithCause(lastError)).catch((e) => rejectWithCause(e));\n\t\t\t\t\t}, timeout);\n\t\t\t\t\tcheck();\n\t\t\t\t});\n\t\t\t\tlet awaited = false;\n\t\t\t\ttest.onFinished ??= [];\n\t\t\t\ttest.onFinished.push(() => {\n\t\t\t\t\tif (!awaited) {\n\t\t\t\t\t\tconst negated = chai$1.util.flag(assertion, \"negate\") ? \"not.\" : \"\";\n\t\t\t\t\t\tconst name = chai$1.util.flag(assertion, \"_poll.element\") ? \"element(locator)\" : \"poll(assertion)\";\n\t\t\t\t\t\tconst assertionString = `expect.${name}.${negated}${String(key)}()`;\n\t\t\t\t\t\tconst error = new Error(`${assertionString} was not awaited. This assertion is asynchronous and must be awaited; otherwise, it is not executed to avoid unhandled rejections:\\n\\nawait ${assertionString}\\n`);\n\t\t\t\t\t\tthrow copyStackTrace$1(error, STACK_TRACE_ERROR);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tlet resultPromise;\n\t\t\t\t// only .then is enough to check awaited, but we type this as `Promise<void>` in global types\n\t\t\t\t// so let's follow it\n\t\t\t\treturn {\n\t\t\t\t\tthen(onFulfilled, onRejected) {\n\t\t\t\t\t\tawaited = true;\n\t\t\t\t\t\treturn (resultPromise ||= promise()).then(onFulfilled, onRejected);\n\t\t\t\t\t},\n\t\t\t\t\tcatch(onRejected) {\n\t\t\t\t\t\treturn (resultPromise ||= promise()).catch(onRejected);\n\t\t\t\t\t},\n\t\t\t\t\tfinally(onFinally) {\n\t\t\t\t\t\treturn (resultPromise ||= promise()).finally(onFinally);\n\t\t\t\t\t},\n\t\t\t\t\t[Symbol.toStringTag]: \"Promise\"\n\t\t\t\t};\n\t\t\t};\n\t\t} });\n\t\treturn proxy;\n\t};\n}\nfunction copyStackTrace$1(target, source) {\n\tif (source.stack !== void 0) target.stack = source.stack.replace(source.message, target.message);\n\treturn target;\n}\n\nfunction commonjsRequire(path) {\n\tthrow new Error('Could not dynamically require \"' + path + '\". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');\n}\n\nvar chaiSubset$1 = {exports: {}};\n\nvar chaiSubset = chaiSubset$1.exports;\n\nvar hasRequiredChaiSubset;\n\nfunction requireChaiSubset () {\n\tif (hasRequiredChaiSubset) return chaiSubset$1.exports;\n\thasRequiredChaiSubset = 1;\n\t(function (module, exports) {\n\t\t(function() {\n\t\t\t(function(chaiSubset) {\n\t\t\t\tif (typeof commonjsRequire === 'function' && 'object' === 'object' && 'object' === 'object') {\n\t\t\t\t\treturn module.exports = chaiSubset;\n\t\t\t\t} else {\n\t\t\t\t\treturn chai.use(chaiSubset);\n\t\t\t\t}\n\t\t\t})(function(chai, utils) {\n\t\t\t\tvar Assertion = chai.Assertion;\n\t\t\t\tvar assertionPrototype = Assertion.prototype;\n\n\t\t\t\tAssertion.addMethod('containSubset', function (expected) {\n\t\t\t\t\tvar actual = utils.flag(this, 'object');\n\t\t\t\t\tvar showDiff = chai.config.showDiff;\n\n\t\t\t\t\tassertionPrototype.assert.call(this,\n\t\t\t\t\t\tcompare(expected, actual),\n\t\t\t\t\t\t'expected #{act} to contain subset #{exp}',\n\t\t\t\t\t\t'expected #{act} to not contain subset #{exp}',\n\t\t\t\t\t\texpected,\n\t\t\t\t\t\tactual,\n\t\t\t\t\t\tshowDiff\n\t\t\t\t\t);\n\t\t\t\t});\n\n\t\t\t\tchai.assert.containSubset = function(val, exp, msg) {\n\t\t\t\t\tnew chai.Assertion(val, msg).to.be.containSubset(exp);\n\t\t\t\t};\n\n\t\t\t\tfunction compare(expected, actual) {\n\t\t\t\t\tif (expected === actual) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\tif (typeof(actual) !== typeof(expected)) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tif (typeof(expected) !== 'object' || expected === null) {\n\t\t\t\t\t\treturn expected === actual;\n\t\t\t\t\t}\n\t\t\t\t\tif (!!expected && !actual) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (Array.isArray(expected)) {\n\t\t\t\t\t\tif (typeof(actual.length) !== 'number') {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvar aa = Array.prototype.slice.call(actual);\n\t\t\t\t\t\treturn expected.every(function (exp) {\n\t\t\t\t\t\t\treturn aa.some(function (act) {\n\t\t\t\t\t\t\t\treturn compare(exp, act);\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t\tif (expected instanceof Date) {\n\t\t\t\t\t\tif (actual instanceof Date) {\n\t\t\t\t\t\t\treturn expected.getTime() === actual.getTime();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\treturn Object.keys(expected).every(function (key) {\n\t\t\t\t\t\tvar eo = expected[key];\n\t\t\t\t\t\tvar ao = actual[key];\n\t\t\t\t\t\tif (typeof(eo) === 'object' && eo !== null && ao !== null) {\n\t\t\t\t\t\t\treturn compare(eo, ao);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (typeof(eo) === 'function') {\n\t\t\t\t\t\t\treturn eo(ao);\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn ao === eo;\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\n\t\t}).call(chaiSubset); \n\t} (chaiSubset$1));\n\treturn chaiSubset$1.exports;\n}\n\nvar chaiSubsetExports = requireChaiSubset();\nvar Subset = /*@__PURE__*/getDefaultExportFromCjs(chaiSubsetExports);\n\nfunction createAssertionMessage(util, assertion, hasArgs) {\n\tconst not = util.flag(assertion, \"negate\") ? \"not.\" : \"\";\n\tconst name = `${util.flag(assertion, \"_name\")}(${\"expected\" })`;\n\tconst promiseName = util.flag(assertion, \"promise\");\n\tconst promise = promiseName ? `.${promiseName}` : \"\";\n\treturn `expect(actual)${promise}.${not}${name}`;\n}\nfunction recordAsyncExpect(_test, promise, assertion, error) {\n\tconst test = _test;\n\t// record promise for test, that resolves before test ends\n\tif (test && promise instanceof Promise) {\n\t\t// if promise is explicitly awaited, remove it from the list\n\t\tpromise = promise.finally(() => {\n\t\t\tif (!test.promises) return;\n\t\t\tconst index = test.promises.indexOf(promise);\n\t\t\tif (index !== -1) test.promises.splice(index, 1);\n\t\t});\n\t\t// record promise\n\t\tif (!test.promises) test.promises = [];\n\t\ttest.promises.push(promise);\n\t\tlet resolved = false;\n\t\ttest.onFinished ??= [];\n\t\ttest.onFinished.push(() => {\n\t\t\tif (!resolved) {\n\t\t\t\tconst processor = globalThis.__vitest_worker__?.onFilterStackTrace || ((s) => s || \"\");\n\t\t\t\tconst stack = processor(error.stack);\n\t\t\t\tconsole.warn([\n\t\t\t\t\t`Promise returned by \\`${assertion}\\` was not awaited. `,\n\t\t\t\t\t\"Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. \",\n\t\t\t\t\t\"Please remember to await the assertion.\\n\",\n\t\t\t\t\tstack\n\t\t\t\t].join(\"\"));\n\t\t\t}\n\t\t});\n\t\treturn {\n\t\t\tthen(onFulfilled, onRejected) {\n\t\t\t\tresolved = true;\n\t\t\t\treturn promise.then(onFulfilled, onRejected);\n\t\t\t},\n\t\t\tcatch(onRejected) {\n\t\t\t\treturn promise.catch(onRejected);\n\t\t\t},\n\t\t\tfinally(onFinally) {\n\t\t\t\treturn promise.finally(onFinally);\n\t\t\t},\n\t\t\t[Symbol.toStringTag]: \"Promise\"\n\t\t};\n\t}\n\treturn promise;\n}\n\nlet _client;\nfunction getSnapshotClient() {\n\tif (!_client) _client = new SnapshotClient({ isEqual: (received, expected) => {\n\t\treturn equals(received, expected, [iterableEquality, subsetEquality]);\n\t} });\n\treturn _client;\n}\nfunction getError(expected, promise) {\n\tif (typeof expected !== \"function\") {\n\t\tif (!promise) throw new Error(`expected must be a function, received ${typeof expected}`);\n\t\t// when \"promised\", it receives thrown error\n\t\treturn expected;\n\t}\n\ttry {\n\t\texpected();\n\t} catch (e) {\n\t\treturn e;\n\t}\n\tthrow new Error(\"snapshot function didn't throw\");\n}\nfunction getTestNames(test) {\n\treturn {\n\t\tfilepath: test.file.filepath,\n\t\tname: getNames(test).slice(1).join(\" > \"),\n\t\ttestId: test.id\n\t};\n}\nconst SnapshotPlugin = (chai, utils) => {\n\tfunction getTest(assertionName, obj) {\n\t\tconst test = utils.flag(obj, \"vitest-test\");\n\t\tif (!test) throw new Error(`'${assertionName}' cannot be used without test context`);\n\t\treturn test;\n\t}\n\tfor (const key of [\"matchSnapshot\", \"toMatchSnapshot\"]) utils.addMethod(chai.Assertion.prototype, key, function(properties, message) {\n\t\tutils.flag(this, \"_name\", key);\n\t\tconst isNot = utils.flag(this, \"negate\");\n\t\tif (isNot) throw new Error(`${key} cannot be used with \"not\"`);\n\t\tconst expected = utils.flag(this, \"object\");\n\t\tconst test = getTest(key, this);\n\t\tif (typeof properties === \"string\" && typeof message === \"undefined\") {\n\t\t\tmessage = properties;\n\t\t\tproperties = void 0;\n\t\t}\n\t\tconst errorMessage = utils.flag(this, \"message\");\n\t\tgetSnapshotClient().assert({\n\t\t\treceived: expected,\n\t\t\tmessage,\n\t\t\tisInline: false,\n\t\t\tproperties,\n\t\t\terrorMessage,\n\t\t\t...getTestNames(test)\n\t\t});\n\t});\n\tutils.addMethod(chai.Assertion.prototype, \"toMatchFileSnapshot\", function(file, message) {\n\t\tutils.flag(this, \"_name\", \"toMatchFileSnapshot\");\n\t\tconst isNot = utils.flag(this, \"negate\");\n\t\tif (isNot) throw new Error(\"toMatchFileSnapshot cannot be used with \\\"not\\\"\");\n\t\tconst error = new Error(\"resolves\");\n\t\tconst expected = utils.flag(this, \"object\");\n\t\tconst test = getTest(\"toMatchFileSnapshot\", this);\n\t\tconst errorMessage = utils.flag(this, \"message\");\n\t\tconst promise = getSnapshotClient().assertRaw({\n\t\t\treceived: expected,\n\t\t\tmessage,\n\t\t\tisInline: false,\n\t\t\trawSnapshot: { file },\n\t\t\terrorMessage,\n\t\t\t...getTestNames(test)\n\t\t});\n\t\treturn recordAsyncExpect(test, promise, createAssertionMessage(utils, this), error);\n\t});\n\tutils.addMethod(chai.Assertion.prototype, \"toMatchInlineSnapshot\", function __INLINE_SNAPSHOT__(properties, inlineSnapshot, message) {\n\t\tutils.flag(this, \"_name\", \"toMatchInlineSnapshot\");\n\t\tconst isNot = utils.flag(this, \"negate\");\n\t\tif (isNot) throw new Error(\"toMatchInlineSnapshot cannot be used with \\\"not\\\"\");\n\t\tconst test = getTest(\"toMatchInlineSnapshot\", this);\n\t\tconst isInsideEach = test.each || test.suite?.each;\n\t\tif (isInsideEach) throw new Error(\"InlineSnapshot cannot be used inside of test.each or describe.each\");\n\t\tconst expected = utils.flag(this, \"object\");\n\t\tconst error = utils.flag(this, \"error\");\n\t\tif (typeof properties === \"string\") {\n\t\t\tmessage = inlineSnapshot;\n\t\t\tinlineSnapshot = properties;\n\t\t\tproperties = void 0;\n\t\t}\n\t\tif (inlineSnapshot) inlineSnapshot = stripSnapshotIndentation(inlineSnapshot);\n\t\tconst errorMessage = utils.flag(this, \"message\");\n\t\tgetSnapshotClient().assert({\n\t\t\treceived: expected,\n\t\t\tmessage,\n\t\t\tisInline: true,\n\t\t\tproperties,\n\t\t\tinlineSnapshot,\n\t\t\terror,\n\t\t\terrorMessage,\n\t\t\t...getTestNames(test)\n\t\t});\n\t});\n\tutils.addMethod(chai.Assertion.prototype, \"toThrowErrorMatchingSnapshot\", function(message) {\n\t\tutils.flag(this, \"_name\", \"toThrowErrorMatchingSnapshot\");\n\t\tconst isNot = utils.flag(this, \"negate\");\n\t\tif (isNot) throw new Error(\"toThrowErrorMatchingSnapshot cannot be used with \\\"not\\\"\");\n\t\tconst expected = utils.flag(this, \"object\");\n\t\tconst test = getTest(\"toThrowErrorMatchingSnapshot\", this);\n\t\tconst promise = utils.flag(this, \"promise\");\n\t\tconst errorMessage = utils.flag(this, \"message\");\n\t\tgetSnapshotClient().assert({\n\t\t\treceived: getError(expected, promise),\n\t\t\tmessage,\n\t\t\terrorMessage,\n\t\t\t...getTestNames(test)\n\t\t});\n\t});\n\tutils.addMethod(chai.Assertion.prototype, \"toThrowErrorMatchingInlineSnapshot\", function __INLINE_SNAPSHOT__(inlineSnapshot, message) {\n\t\tconst isNot = utils.flag(this, \"negate\");\n\t\tif (isNot) throw new Error(\"toThrowErrorMatchingInlineSnapshot cannot be used with \\\"not\\\"\");\n\t\tconst test = getTest(\"toThrowErrorMatchingInlineSnapshot\", this);\n\t\tconst isInsideEach = test.each || test.suite?.each;\n\t\tif (isInsideEach) throw new Error(\"InlineSnapshot cannot be used inside of test.each or describe.each\");\n\t\tconst expected = utils.flag(this, \"object\");\n\t\tconst error = utils.flag(this, \"error\");\n\t\tconst promise = utils.flag(this, \"promise\");\n\t\tconst errorMessage = utils.flag(this, \"message\");\n\t\tif (inlineSnapshot) inlineSnapshot = stripSnapshotIndentation(inlineSnapshot);\n\t\tgetSnapshotClient().assert({\n\t\t\treceived: getError(expected, promise),\n\t\t\tmessage,\n\t\t\tinlineSnapshot,\n\t\t\tisInline: true,\n\t\t\terror,\n\t\t\terrorMessage,\n\t\t\t...getTestNames(test)\n\t\t});\n\t});\n\tutils.addMethod(chai.expect, \"addSnapshotSerializer\", addSerializer);\n};\n\nchai$1.use(JestExtend);\nchai$1.use(JestChaiExpect);\nchai$1.use(Subset);\nchai$1.use(SnapshotPlugin);\nchai$1.use(JestAsymmetricMatchers);\n\nfunction createExpect(test) {\n\tconst expect = (value, message) => {\n\t\tconst { assertionCalls } = getState(expect);\n\t\tsetState({ assertionCalls: assertionCalls + 1 }, expect);\n\t\tconst assert = chai$1.expect(value, message);\n\t\tconst _test = test || getCurrentTest();\n\t\tif (_test)\n // @ts-expect-error internal\n\t\treturn assert.withTest(_test);\n\t\telse return assert;\n\t};\n\tObject.assign(expect, chai$1.expect);\n\tObject.assign(expect, globalThis[ASYMMETRIC_MATCHERS_OBJECT]);\n\texpect.getState = () => getState(expect);\n\texpect.setState = (state) => setState(state, expect);\n\t// @ts-expect-error global is not typed\n\tconst globalState = getState(globalThis[GLOBAL_EXPECT]) || {};\n\tsetState({\n\t\t...globalState,\n\t\tassertionCalls: 0,\n\t\tisExpectingAssertions: false,\n\t\tisExpectingAssertionsError: null,\n\t\texpectedAssertionsNumber: null,\n\t\texpectedAssertionsNumberErrorGen: null,\n\t\tenvironment: getCurrentEnvironment(),\n\t\tget testPath() {\n\t\t\treturn getWorkerState().filepath;\n\t\t},\n\t\tcurrentTestName: test ? getTestName(test) : globalState.currentTestName\n\t}, expect);\n\t// @ts-expect-error untyped\n\texpect.extend = (matchers) => chai$1.expect.extend(expect, matchers);\n\texpect.addEqualityTesters = (customTesters) => addCustomEqualityTesters(customTesters);\n\texpect.soft = (...args) => {\n\t\t// @ts-expect-error private soft access\n\t\treturn expect(...args).withContext({ soft: true });\n\t};\n\texpect.poll = createExpectPoll(expect);\n\texpect.unreachable = (message) => {\n\t\tchai$1.assert.fail(`expected${message ? ` \"${message}\" ` : \" \"}not to be reached`);\n\t};\n\tfunction assertions(expected) {\n\t\tconst errorGen = () => new Error(`expected number of assertions to be ${expected}, but got ${expect.getState().assertionCalls}`);\n\t\tif (Error.captureStackTrace) Error.captureStackTrace(errorGen(), assertions);\n\t\texpect.setState({\n\t\t\texpectedAssertionsNumber: expected,\n\t\t\texpectedAssertionsNumberErrorGen: errorGen\n\t\t});\n\t}\n\tfunction hasAssertions() {\n\t\tconst error = new Error(\"expected any number of assertion, but got none\");\n\t\tif (Error.captureStackTrace) Error.captureStackTrace(error, hasAssertions);\n\t\texpect.setState({\n\t\t\tisExpectingAssertions: true,\n\t\t\tisExpectingAssertionsError: error\n\t\t});\n\t}\n\tchai$1.util.addMethod(expect, \"assertions\", assertions);\n\tchai$1.util.addMethod(expect, \"hasAssertions\", hasAssertions);\n\texpect.extend(customMatchers);\n\treturn expect;\n}\nconst globalExpect = createExpect();\nObject.defineProperty(globalThis, GLOBAL_EXPECT, {\n\tvalue: globalExpect,\n\twritable: true,\n\tconfigurable: true\n});\n\n/**\n* Gives access to injected context provided from the main thread.\n* This usually returns a value provided by `globalSetup` or an external library.\n*/\nfunction inject(key) {\n\tconst workerState = getWorkerState();\n\treturn workerState.providedContext[key];\n}\n\nvar fakeTimersSrc = {};\n\nvar global;\nvar hasRequiredGlobal;\n\nfunction requireGlobal () {\n\tif (hasRequiredGlobal) return global;\n\thasRequiredGlobal = 1;\n\n\t/**\n\t * A reference to the global object\n\t * @type {object} globalObject\n\t */\n\tvar globalObject;\n\n\t/* istanbul ignore else */\n\tif (typeof commonjsGlobal !== \"undefined\") {\n\t // Node\n\t globalObject = commonjsGlobal;\n\t} else if (typeof window !== \"undefined\") {\n\t // Browser\n\t globalObject = window;\n\t} else {\n\t // WebWorker\n\t globalObject = self;\n\t}\n\n\tglobal = globalObject;\n\treturn global;\n}\n\nvar throwsOnProto_1;\nvar hasRequiredThrowsOnProto;\n\nfunction requireThrowsOnProto () {\n\tif (hasRequiredThrowsOnProto) return throwsOnProto_1;\n\thasRequiredThrowsOnProto = 1;\n\n\t/**\n\t * Is true when the environment causes an error to be thrown for accessing the\n\t * __proto__ property.\n\t * This is necessary in order to support `node --disable-proto=throw`.\n\t *\n\t * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto\n\t * @type {boolean}\n\t */\n\tlet throwsOnProto;\n\ttry {\n\t const object = {};\n\t // eslint-disable-next-line no-proto, no-unused-expressions\n\t object.__proto__;\n\t throwsOnProto = false;\n\t} catch (_) {\n\t // This branch is covered when tests are run with `--disable-proto=throw`,\n\t // however we can test both branches at the same time, so this is ignored\n\t /* istanbul ignore next */\n\t throwsOnProto = true;\n\t}\n\n\tthrowsOnProto_1 = throwsOnProto;\n\treturn throwsOnProto_1;\n}\n\nvar copyPrototypeMethods;\nvar hasRequiredCopyPrototypeMethods;\n\nfunction requireCopyPrototypeMethods () {\n\tif (hasRequiredCopyPrototypeMethods) return copyPrototypeMethods;\n\thasRequiredCopyPrototypeMethods = 1;\n\n\tvar call = Function.call;\n\tvar throwsOnProto = requireThrowsOnProto();\n\n\tvar disallowedProperties = [\n\t // ignore size because it throws from Map\n\t \"size\",\n\t \"caller\",\n\t \"callee\",\n\t \"arguments\",\n\t];\n\n\t// This branch is covered when tests are run with `--disable-proto=throw`,\n\t// however we can test both branches at the same time, so this is ignored\n\t/* istanbul ignore next */\n\tif (throwsOnProto) {\n\t disallowedProperties.push(\"__proto__\");\n\t}\n\n\tcopyPrototypeMethods = function copyPrototypeMethods(prototype) {\n\t // eslint-disable-next-line @sinonjs/no-prototype-methods/no-prototype-methods\n\t return Object.getOwnPropertyNames(prototype).reduce(function (\n\t result,\n\t name\n\t ) {\n\t if (disallowedProperties.includes(name)) {\n\t return result;\n\t }\n\n\t if (typeof prototype[name] !== \"function\") {\n\t return result;\n\t }\n\n\t result[name] = call.bind(prototype[name]);\n\n\t return result;\n\t },\n\t Object.create(null));\n\t};\n\treturn copyPrototypeMethods;\n}\n\nvar array;\nvar hasRequiredArray;\n\nfunction requireArray () {\n\tif (hasRequiredArray) return array;\n\thasRequiredArray = 1;\n\n\tvar copyPrototype = requireCopyPrototypeMethods();\n\n\tarray = copyPrototype(Array.prototype);\n\treturn array;\n}\n\nvar calledInOrder_1;\nvar hasRequiredCalledInOrder;\n\nfunction requireCalledInOrder () {\n\tif (hasRequiredCalledInOrder) return calledInOrder_1;\n\thasRequiredCalledInOrder = 1;\n\n\tvar every = requireArray().every;\n\n\t/**\n\t * @private\n\t */\n\tfunction hasCallsLeft(callMap, spy) {\n\t if (callMap[spy.id] === undefined) {\n\t callMap[spy.id] = 0;\n\t }\n\n\t return callMap[spy.id] < spy.callCount;\n\t}\n\n\t/**\n\t * @private\n\t */\n\tfunction checkAdjacentCalls(callMap, spy, index, spies) {\n\t var calledBeforeNext = true;\n\n\t if (index !== spies.length - 1) {\n\t calledBeforeNext = spy.calledBefore(spies[index + 1]);\n\t }\n\n\t if (hasCallsLeft(callMap, spy) && calledBeforeNext) {\n\t callMap[spy.id] += 1;\n\t return true;\n\t }\n\n\t return false;\n\t}\n\n\t/**\n\t * A Sinon proxy object (fake, spy, stub)\n\t * @typedef {object} SinonProxy\n\t * @property {Function} calledBefore - A method that determines if this proxy was called before another one\n\t * @property {string} id - Some id\n\t * @property {number} callCount - Number of times this proxy has been called\n\t */\n\n\t/**\n\t * Returns true when the spies have been called in the order they were supplied in\n\t * @param {SinonProxy[] | SinonProxy} spies An array of proxies, or several proxies as arguments\n\t * @returns {boolean} true when spies are called in order, false otherwise\n\t */\n\tfunction calledInOrder(spies) {\n\t var callMap = {};\n\t // eslint-disable-next-line no-underscore-dangle\n\t var _spies = arguments.length > 1 ? arguments : spies;\n\n\t return every(_spies, checkAdjacentCalls.bind(null, callMap));\n\t}\n\n\tcalledInOrder_1 = calledInOrder;\n\treturn calledInOrder_1;\n}\n\nvar className_1;\nvar hasRequiredClassName;\n\nfunction requireClassName () {\n\tif (hasRequiredClassName) return className_1;\n\thasRequiredClassName = 1;\n\n\t/**\n\t * Returns a display name for a value from a constructor\n\t * @param {object} value A value to examine\n\t * @returns {(string|null)} A string or null\n\t */\n\tfunction className(value) {\n\t const name = value.constructor && value.constructor.name;\n\t return name || null;\n\t}\n\n\tclassName_1 = className;\n\treturn className_1;\n}\n\nvar deprecated = {};\n\n/* eslint-disable no-console */\n\nvar hasRequiredDeprecated;\n\nfunction requireDeprecated () {\n\tif (hasRequiredDeprecated) return deprecated;\n\thasRequiredDeprecated = 1;\n\t(function (exports) {\n\n\t\t/**\n\t\t * Returns a function that will invoke the supplied function and print a\n\t\t * deprecation warning to the console each time it is called.\n\t\t * @param {Function} func\n\t\t * @param {string} msg\n\t\t * @returns {Function}\n\t\t */\n\t\texports.wrap = function (func, msg) {\n\t\t var wrapped = function () {\n\t\t exports.printWarning(msg);\n\t\t return func.apply(this, arguments);\n\t\t };\n\t\t if (func.prototype) {\n\t\t wrapped.prototype = func.prototype;\n\t\t }\n\t\t return wrapped;\n\t\t};\n\n\t\t/**\n\t\t * Returns a string which can be supplied to `wrap()` to notify the user that a\n\t\t * particular part of the sinon API has been deprecated.\n\t\t * @param {string} packageName\n\t\t * @param {string} funcName\n\t\t * @returns {string}\n\t\t */\n\t\texports.defaultMsg = function (packageName, funcName) {\n\t\t return `${packageName}.${funcName} is deprecated and will be removed from the public API in a future version of ${packageName}.`;\n\t\t};\n\n\t\t/**\n\t\t * Prints a warning on the console, when it exists\n\t\t * @param {string} msg\n\t\t * @returns {undefined}\n\t\t */\n\t\texports.printWarning = function (msg) {\n\t\t /* istanbul ignore next */\n\t\t if (typeof process === \"object\" && process.emitWarning) {\n\t\t // Emit Warnings in Node\n\t\t process.emitWarning(msg);\n\t\t } else if (console.info) {\n\t\t console.info(msg);\n\t\t } else {\n\t\t console.log(msg);\n\t\t }\n\t\t}; \n\t} (deprecated));\n\treturn deprecated;\n}\n\nvar every;\nvar hasRequiredEvery;\n\nfunction requireEvery () {\n\tif (hasRequiredEvery) return every;\n\thasRequiredEvery = 1;\n\n\t/**\n\t * Returns true when fn returns true for all members of obj.\n\t * This is an every implementation that works for all iterables\n\t * @param {object} obj\n\t * @param {Function} fn\n\t * @returns {boolean}\n\t */\n\tevery = function every(obj, fn) {\n\t var pass = true;\n\n\t try {\n\t // eslint-disable-next-line @sinonjs/no-prototype-methods/no-prototype-methods\n\t obj.forEach(function () {\n\t if (!fn.apply(this, arguments)) {\n\t // Throwing an error is the only way to break `forEach`\n\t throw new Error();\n\t }\n\t });\n\t } catch (e) {\n\t pass = false;\n\t }\n\n\t return pass;\n\t};\n\treturn every;\n}\n\nvar functionName;\nvar hasRequiredFunctionName;\n\nfunction requireFunctionName () {\n\tif (hasRequiredFunctionName) return functionName;\n\thasRequiredFunctionName = 1;\n\n\t/**\n\t * Returns a display name for a function\n\t * @param {Function} func\n\t * @returns {string}\n\t */\n\tfunctionName = function functionName(func) {\n\t if (!func) {\n\t return \"\";\n\t }\n\n\t try {\n\t return (\n\t func.displayName ||\n\t func.name ||\n\t // Use function decomposition as a last resort to get function\n\t // name. Does not rely on function decomposition to work - if it\n\t // doesn't debugging will be slightly less informative\n\t // (i.e. toString will say 'spy' rather than 'myFunc').\n\t (String(func).match(/function ([^\\s(]+)/) || [])[1]\n\t );\n\t } catch (e) {\n\t // Stringify may fail and we might get an exception, as a last-last\n\t // resort fall back to empty string.\n\t return \"\";\n\t }\n\t};\n\treturn functionName;\n}\n\nvar orderByFirstCall_1;\nvar hasRequiredOrderByFirstCall;\n\nfunction requireOrderByFirstCall () {\n\tif (hasRequiredOrderByFirstCall) return orderByFirstCall_1;\n\thasRequiredOrderByFirstCall = 1;\n\n\tvar sort = requireArray().sort;\n\tvar slice = requireArray().slice;\n\n\t/**\n\t * @private\n\t */\n\tfunction comparator(a, b) {\n\t // uuid, won't ever be equal\n\t var aCall = a.getCall(0);\n\t var bCall = b.getCall(0);\n\t var aId = (aCall && aCall.callId) || -1;\n\t var bId = (bCall && bCall.callId) || -1;\n\n\t return aId < bId ? -1 : 1;\n\t}\n\n\t/**\n\t * A Sinon proxy object (fake, spy, stub)\n\t * @typedef {object} SinonProxy\n\t * @property {Function} getCall - A method that can return the first call\n\t */\n\n\t/**\n\t * Sorts an array of SinonProxy instances (fake, spy, stub) by their first call\n\t * @param {SinonProxy[] | SinonProxy} spies\n\t * @returns {SinonProxy[]}\n\t */\n\tfunction orderByFirstCall(spies) {\n\t return sort(slice(spies), comparator);\n\t}\n\n\torderByFirstCall_1 = orderByFirstCall;\n\treturn orderByFirstCall_1;\n}\n\nvar _function;\nvar hasRequired_function;\n\nfunction require_function () {\n\tif (hasRequired_function) return _function;\n\thasRequired_function = 1;\n\n\tvar copyPrototype = requireCopyPrototypeMethods();\n\n\t_function = copyPrototype(Function.prototype);\n\treturn _function;\n}\n\nvar map;\nvar hasRequiredMap;\n\nfunction requireMap () {\n\tif (hasRequiredMap) return map;\n\thasRequiredMap = 1;\n\n\tvar copyPrototype = requireCopyPrototypeMethods();\n\n\tmap = copyPrototype(Map.prototype);\n\treturn map;\n}\n\nvar object;\nvar hasRequiredObject;\n\nfunction requireObject () {\n\tif (hasRequiredObject) return object;\n\thasRequiredObject = 1;\n\n\tvar copyPrototype = requireCopyPrototypeMethods();\n\n\tobject = copyPrototype(Object.prototype);\n\treturn object;\n}\n\nvar set;\nvar hasRequiredSet;\n\nfunction requireSet () {\n\tif (hasRequiredSet) return set;\n\thasRequiredSet = 1;\n\n\tvar copyPrototype = requireCopyPrototypeMethods();\n\n\tset = copyPrototype(Set.prototype);\n\treturn set;\n}\n\nvar string;\nvar hasRequiredString;\n\nfunction requireString () {\n\tif (hasRequiredString) return string;\n\thasRequiredString = 1;\n\n\tvar copyPrototype = requireCopyPrototypeMethods();\n\n\tstring = copyPrototype(String.prototype);\n\treturn string;\n}\n\nvar prototypes;\nvar hasRequiredPrototypes;\n\nfunction requirePrototypes () {\n\tif (hasRequiredPrototypes) return prototypes;\n\thasRequiredPrototypes = 1;\n\n\tprototypes = {\n\t array: requireArray(),\n\t function: require_function(),\n\t map: requireMap(),\n\t object: requireObject(),\n\t set: requireSet(),\n\t string: requireString(),\n\t};\n\treturn prototypes;\n}\n\nvar typeDetect$1 = {exports: {}};\n\nvar typeDetect = typeDetect$1.exports;\n\nvar hasRequiredTypeDetect;\n\nfunction requireTypeDetect () {\n\tif (hasRequiredTypeDetect) return typeDetect$1.exports;\n\thasRequiredTypeDetect = 1;\n\t(function (module, exports) {\n\t\t(function (global, factory) {\n\t\t\tmodule.exports = factory() ;\n\t\t}(typeDetect, (function () {\n\t\t/* !\n\t\t * type-detect\n\t\t * Copyright(c) 2013 jake luer <jake@alogicalparadox.com>\n\t\t * MIT Licensed\n\t\t */\n\t\tvar promiseExists = typeof Promise === 'function';\n\n\t\t/* eslint-disable no-undef */\n\t\tvar globalObject = typeof self === 'object' ? self : commonjsGlobal; // eslint-disable-line id-blacklist\n\n\t\tvar symbolExists = typeof Symbol !== 'undefined';\n\t\tvar mapExists = typeof Map !== 'undefined';\n\t\tvar setExists = typeof Set !== 'undefined';\n\t\tvar weakMapExists = typeof WeakMap !== 'undefined';\n\t\tvar weakSetExists = typeof WeakSet !== 'undefined';\n\t\tvar dataViewExists = typeof DataView !== 'undefined';\n\t\tvar symbolIteratorExists = symbolExists && typeof Symbol.iterator !== 'undefined';\n\t\tvar symbolToStringTagExists = symbolExists && typeof Symbol.toStringTag !== 'undefined';\n\t\tvar setEntriesExists = setExists && typeof Set.prototype.entries === 'function';\n\t\tvar mapEntriesExists = mapExists && typeof Map.prototype.entries === 'function';\n\t\tvar setIteratorPrototype = setEntriesExists && Object.getPrototypeOf(new Set().entries());\n\t\tvar mapIteratorPrototype = mapEntriesExists && Object.getPrototypeOf(new Map().entries());\n\t\tvar arrayIteratorExists = symbolIteratorExists && typeof Array.prototype[Symbol.iterator] === 'function';\n\t\tvar arrayIteratorPrototype = arrayIteratorExists && Object.getPrototypeOf([][Symbol.iterator]());\n\t\tvar stringIteratorExists = symbolIteratorExists && typeof String.prototype[Symbol.iterator] === 'function';\n\t\tvar stringIteratorPrototype = stringIteratorExists && Object.getPrototypeOf(''[Symbol.iterator]());\n\t\tvar toStringLeftSliceLength = 8;\n\t\tvar toStringRightSliceLength = -1;\n\t\t/**\n\t\t * ### typeOf (obj)\n\t\t *\n\t\t * Uses `Object.prototype.toString` to determine the type of an object,\n\t\t * normalising behaviour across engine versions & well optimised.\n\t\t *\n\t\t * @param {Mixed} object\n\t\t * @return {String} object type\n\t\t * @api public\n\t\t */\n\t\tfunction typeDetect(obj) {\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * string literal x 3,039,035 ops/sec ±1.62% (78 runs sampled)\n\t\t * boolean literal x 1,424,138 ops/sec ±4.54% (75 runs sampled)\n\t\t * number literal x 1,653,153 ops/sec ±1.91% (82 runs sampled)\n\t\t * undefined x 9,978,660 ops/sec ±1.92% (75 runs sampled)\n\t\t * function x 2,556,769 ops/sec ±1.73% (77 runs sampled)\n\t\t * Post:\n\t\t * string literal x 38,564,796 ops/sec ±1.15% (79 runs sampled)\n\t\t * boolean literal x 31,148,940 ops/sec ±1.10% (79 runs sampled)\n\t\t * number literal x 32,679,330 ops/sec ±1.90% (78 runs sampled)\n\t\t * undefined x 32,363,368 ops/sec ±1.07% (82 runs sampled)\n\t\t * function x 31,296,870 ops/sec ±0.96% (83 runs sampled)\n\t\t */\n\t\t var typeofObj = typeof obj;\n\t\t if (typeofObj !== 'object') {\n\t\t return typeofObj;\n\t\t }\n\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * null x 28,645,765 ops/sec ±1.17% (82 runs sampled)\n\t\t * Post:\n\t\t * null x 36,428,962 ops/sec ±1.37% (84 runs sampled)\n\t\t */\n\t\t if (obj === null) {\n\t\t return 'null';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * Test: `Object.prototype.toString.call(window)``\n\t\t * - Node === \"[object global]\"\n\t\t * - Chrome === \"[object global]\"\n\t\t * - Firefox === \"[object Window]\"\n\t\t * - PhantomJS === \"[object Window]\"\n\t\t * - Safari === \"[object Window]\"\n\t\t * - IE 11 === \"[object Window]\"\n\t\t * - IE Edge === \"[object Window]\"\n\t\t * Test: `Object.prototype.toString.call(this)``\n\t\t * - Chrome Worker === \"[object global]\"\n\t\t * - Firefox Worker === \"[object DedicatedWorkerGlobalScope]\"\n\t\t * - Safari Worker === \"[object DedicatedWorkerGlobalScope]\"\n\t\t * - IE 11 Worker === \"[object WorkerGlobalScope]\"\n\t\t * - IE Edge Worker === \"[object WorkerGlobalScope]\"\n\t\t */\n\t\t if (obj === globalObject) {\n\t\t return 'global';\n\t\t }\n\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * array literal x 2,888,352 ops/sec ±0.67% (82 runs sampled)\n\t\t * Post:\n\t\t * array literal x 22,479,650 ops/sec ±0.96% (81 runs sampled)\n\t\t */\n\t\t if (\n\t\t Array.isArray(obj) &&\n\t\t (symbolToStringTagExists === false || !(Symbol.toStringTag in obj))\n\t\t ) {\n\t\t return 'Array';\n\t\t }\n\n\t\t // Not caching existence of `window` and related properties due to potential\n\t\t // for `window` to be unset before tests in quasi-browser environments.\n\t\t if (typeof window === 'object' && window !== null) {\n\t\t /* ! Spec Conformance\n\t\t * (https://html.spec.whatwg.org/multipage/browsers.html#location)\n\t\t * WhatWG HTML$7.7.3 - The `Location` interface\n\t\t * Test: `Object.prototype.toString.call(window.location)``\n\t\t * - IE <=11 === \"[object Object]\"\n\t\t * - IE Edge <=13 === \"[object Object]\"\n\t\t */\n\t\t if (typeof window.location === 'object' && obj === window.location) {\n\t\t return 'Location';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * (https://html.spec.whatwg.org/#document)\n\t\t * WhatWG HTML$3.1.1 - The `Document` object\n\t\t * Note: Most browsers currently adher to the W3C DOM Level 2 spec\n\t\t * (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-26809268)\n\t\t * which suggests that browsers should use HTMLTableCellElement for\n\t\t * both TD and TH elements. WhatWG separates these.\n\t\t * WhatWG HTML states:\n\t\t * > For historical reasons, Window objects must also have a\n\t\t * > writable, configurable, non-enumerable property named\n\t\t * > HTMLDocument whose value is the Document interface object.\n\t\t * Test: `Object.prototype.toString.call(document)``\n\t\t * - Chrome === \"[object HTMLDocument]\"\n\t\t * - Firefox === \"[object HTMLDocument]\"\n\t\t * - Safari === \"[object HTMLDocument]\"\n\t\t * - IE <=10 === \"[object Document]\"\n\t\t * - IE 11 === \"[object HTMLDocument]\"\n\t\t * - IE Edge <=13 === \"[object HTMLDocument]\"\n\t\t */\n\t\t if (typeof window.document === 'object' && obj === window.document) {\n\t\t return 'Document';\n\t\t }\n\n\t\t if (typeof window.navigator === 'object') {\n\t\t /* ! Spec Conformance\n\t\t * (https://html.spec.whatwg.org/multipage/webappapis.html#mimetypearray)\n\t\t * WhatWG HTML$8.6.1.5 - Plugins - Interface MimeTypeArray\n\t\t * Test: `Object.prototype.toString.call(navigator.mimeTypes)``\n\t\t * - IE <=10 === \"[object MSMimeTypesCollection]\"\n\t\t */\n\t\t if (typeof window.navigator.mimeTypes === 'object' &&\n\t\t obj === window.navigator.mimeTypes) {\n\t\t return 'MimeTypeArray';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * (https://html.spec.whatwg.org/multipage/webappapis.html#pluginarray)\n\t\t * WhatWG HTML$8.6.1.5 - Plugins - Interface PluginArray\n\t\t * Test: `Object.prototype.toString.call(navigator.plugins)``\n\t\t * - IE <=10 === \"[object MSPluginsCollection]\"\n\t\t */\n\t\t if (typeof window.navigator.plugins === 'object' &&\n\t\t obj === window.navigator.plugins) {\n\t\t return 'PluginArray';\n\t\t }\n\t\t }\n\n\t\t if ((typeof window.HTMLElement === 'function' ||\n\t\t typeof window.HTMLElement === 'object') &&\n\t\t obj instanceof window.HTMLElement) {\n\t\t /* ! Spec Conformance\n\t\t * (https://html.spec.whatwg.org/multipage/webappapis.html#pluginarray)\n\t\t * WhatWG HTML$4.4.4 - The `blockquote` element - Interface `HTMLQuoteElement`\n\t\t * Test: `Object.prototype.toString.call(document.createElement('blockquote'))``\n\t\t * - IE <=10 === \"[object HTMLBlockElement]\"\n\t\t */\n\t\t if (obj.tagName === 'BLOCKQUOTE') {\n\t\t return 'HTMLQuoteElement';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * (https://html.spec.whatwg.org/#htmltabledatacellelement)\n\t\t * WhatWG HTML$4.9.9 - The `td` element - Interface `HTMLTableDataCellElement`\n\t\t * Note: Most browsers currently adher to the W3C DOM Level 2 spec\n\t\t * (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-82915075)\n\t\t * which suggests that browsers should use HTMLTableCellElement for\n\t\t * both TD and TH elements. WhatWG separates these.\n\t\t * Test: Object.prototype.toString.call(document.createElement('td'))\n\t\t * - Chrome === \"[object HTMLTableCellElement]\"\n\t\t * - Firefox === \"[object HTMLTableCellElement]\"\n\t\t * - Safari === \"[object HTMLTableCellElement]\"\n\t\t */\n\t\t if (obj.tagName === 'TD') {\n\t\t return 'HTMLTableDataCellElement';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * (https://html.spec.whatwg.org/#htmltableheadercellelement)\n\t\t * WhatWG HTML$4.9.9 - The `td` element - Interface `HTMLTableHeaderCellElement`\n\t\t * Note: Most browsers currently adher to the W3C DOM Level 2 spec\n\t\t * (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-82915075)\n\t\t * which suggests that browsers should use HTMLTableCellElement for\n\t\t * both TD and TH elements. WhatWG separates these.\n\t\t * Test: Object.prototype.toString.call(document.createElement('th'))\n\t\t * - Chrome === \"[object HTMLTableCellElement]\"\n\t\t * - Firefox === \"[object HTMLTableCellElement]\"\n\t\t * - Safari === \"[object HTMLTableCellElement]\"\n\t\t */\n\t\t if (obj.tagName === 'TH') {\n\t\t return 'HTMLTableHeaderCellElement';\n\t\t }\n\t\t }\n\t\t }\n\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * Float64Array x 625,644 ops/sec ±1.58% (80 runs sampled)\n\t\t * Float32Array x 1,279,852 ops/sec ±2.91% (77 runs sampled)\n\t\t * Uint32Array x 1,178,185 ops/sec ±1.95% (83 runs sampled)\n\t\t * Uint16Array x 1,008,380 ops/sec ±2.25% (80 runs sampled)\n\t\t * Uint8Array x 1,128,040 ops/sec ±2.11% (81 runs sampled)\n\t\t * Int32Array x 1,170,119 ops/sec ±2.88% (80 runs sampled)\n\t\t * Int16Array x 1,176,348 ops/sec ±5.79% (86 runs sampled)\n\t\t * Int8Array x 1,058,707 ops/sec ±4.94% (77 runs sampled)\n\t\t * Uint8ClampedArray x 1,110,633 ops/sec ±4.20% (80 runs sampled)\n\t\t * Post:\n\t\t * Float64Array x 7,105,671 ops/sec ±13.47% (64 runs sampled)\n\t\t * Float32Array x 5,887,912 ops/sec ±1.46% (82 runs sampled)\n\t\t * Uint32Array x 6,491,661 ops/sec ±1.76% (79 runs sampled)\n\t\t * Uint16Array x 6,559,795 ops/sec ±1.67% (82 runs sampled)\n\t\t * Uint8Array x 6,463,966 ops/sec ±1.43% (85 runs sampled)\n\t\t * Int32Array x 5,641,841 ops/sec ±3.49% (81 runs sampled)\n\t\t * Int16Array x 6,583,511 ops/sec ±1.98% (80 runs sampled)\n\t\t * Int8Array x 6,606,078 ops/sec ±1.74% (81 runs sampled)\n\t\t * Uint8ClampedArray x 6,602,224 ops/sec ±1.77% (83 runs sampled)\n\t\t */\n\t\t var stringTag = (symbolToStringTagExists && obj[Symbol.toStringTag]);\n\t\t if (typeof stringTag === 'string') {\n\t\t return stringTag;\n\t\t }\n\n\t\t var objPrototype = Object.getPrototypeOf(obj);\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * regex literal x 1,772,385 ops/sec ±1.85% (77 runs sampled)\n\t\t * regex constructor x 2,143,634 ops/sec ±2.46% (78 runs sampled)\n\t\t * Post:\n\t\t * regex literal x 3,928,009 ops/sec ±0.65% (78 runs sampled)\n\t\t * regex constructor x 3,931,108 ops/sec ±0.58% (84 runs sampled)\n\t\t */\n\t\t if (objPrototype === RegExp.prototype) {\n\t\t return 'RegExp';\n\t\t }\n\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * date x 2,130,074 ops/sec ±4.42% (68 runs sampled)\n\t\t * Post:\n\t\t * date x 3,953,779 ops/sec ±1.35% (77 runs sampled)\n\t\t */\n\t\t if (objPrototype === Date.prototype) {\n\t\t return 'Date';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-promise.prototype-@@tostringtag)\n\t\t * ES6$25.4.5.4 - Promise.prototype[@@toStringTag] should be \"Promise\":\n\t\t * Test: `Object.prototype.toString.call(Promise.resolve())``\n\t\t * - Chrome <=47 === \"[object Object]\"\n\t\t * - Edge <=20 === \"[object Object]\"\n\t\t * - Firefox 29-Latest === \"[object Promise]\"\n\t\t * - Safari 7.1-Latest === \"[object Promise]\"\n\t\t */\n\t\t if (promiseExists && objPrototype === Promise.prototype) {\n\t\t return 'Promise';\n\t\t }\n\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * set x 2,222,186 ops/sec ±1.31% (82 runs sampled)\n\t\t * Post:\n\t\t * set x 4,545,879 ops/sec ±1.13% (83 runs sampled)\n\t\t */\n\t\t if (setExists && objPrototype === Set.prototype) {\n\t\t return 'Set';\n\t\t }\n\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * map x 2,396,842 ops/sec ±1.59% (81 runs sampled)\n\t\t * Post:\n\t\t * map x 4,183,945 ops/sec ±6.59% (82 runs sampled)\n\t\t */\n\t\t if (mapExists && objPrototype === Map.prototype) {\n\t\t return 'Map';\n\t\t }\n\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * weakset x 1,323,220 ops/sec ±2.17% (76 runs sampled)\n\t\t * Post:\n\t\t * weakset x 4,237,510 ops/sec ±2.01% (77 runs sampled)\n\t\t */\n\t\t if (weakSetExists && objPrototype === WeakSet.prototype) {\n\t\t return 'WeakSet';\n\t\t }\n\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * weakmap x 1,500,260 ops/sec ±2.02% (78 runs sampled)\n\t\t * Post:\n\t\t * weakmap x 3,881,384 ops/sec ±1.45% (82 runs sampled)\n\t\t */\n\t\t if (weakMapExists && objPrototype === WeakMap.prototype) {\n\t\t return 'WeakMap';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-dataview.prototype-@@tostringtag)\n\t\t * ES6$24.2.4.21 - DataView.prototype[@@toStringTag] should be \"DataView\":\n\t\t * Test: `Object.prototype.toString.call(new DataView(new ArrayBuffer(1)))``\n\t\t * - Edge <=13 === \"[object Object]\"\n\t\t */\n\t\t if (dataViewExists && objPrototype === DataView.prototype) {\n\t\t return 'DataView';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%mapiteratorprototype%-@@tostringtag)\n\t\t * ES6$23.1.5.2.2 - %MapIteratorPrototype%[@@toStringTag] should be \"Map Iterator\":\n\t\t * Test: `Object.prototype.toString.call(new Map().entries())``\n\t\t * - Edge <=13 === \"[object Object]\"\n\t\t */\n\t\t if (mapExists && objPrototype === mapIteratorPrototype) {\n\t\t return 'Map Iterator';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%setiteratorprototype%-@@tostringtag)\n\t\t * ES6$23.2.5.2.2 - %SetIteratorPrototype%[@@toStringTag] should be \"Set Iterator\":\n\t\t * Test: `Object.prototype.toString.call(new Set().entries())``\n\t\t * - Edge <=13 === \"[object Object]\"\n\t\t */\n\t\t if (setExists && objPrototype === setIteratorPrototype) {\n\t\t return 'Set Iterator';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%arrayiteratorprototype%-@@tostringtag)\n\t\t * ES6$22.1.5.2.2 - %ArrayIteratorPrototype%[@@toStringTag] should be \"Array Iterator\":\n\t\t * Test: `Object.prototype.toString.call([][Symbol.iterator]())``\n\t\t * - Edge <=13 === \"[object Object]\"\n\t\t */\n\t\t if (arrayIteratorExists && objPrototype === arrayIteratorPrototype) {\n\t\t return 'Array Iterator';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%stringiteratorprototype%-@@tostringtag)\n\t\t * ES6$21.1.5.2.2 - %StringIteratorPrototype%[@@toStringTag] should be \"String Iterator\":\n\t\t * Test: `Object.prototype.toString.call(''[Symbol.iterator]())``\n\t\t * - Edge <=13 === \"[object Object]\"\n\t\t */\n\t\t if (stringIteratorExists && objPrototype === stringIteratorPrototype) {\n\t\t return 'String Iterator';\n\t\t }\n\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * object from null x 2,424,320 ops/sec ±1.67% (76 runs sampled)\n\t\t * Post:\n\t\t * object from null x 5,838,000 ops/sec ±0.99% (84 runs sampled)\n\t\t */\n\t\t if (objPrototype === null) {\n\t\t return 'Object';\n\t\t }\n\n\t\t return Object\n\t\t .prototype\n\t\t .toString\n\t\t .call(obj)\n\t\t .slice(toStringLeftSliceLength, toStringRightSliceLength);\n\t\t}\n\n\t\treturn typeDetect;\n\n\t\t}))); \n\t} (typeDetect$1));\n\treturn typeDetect$1.exports;\n}\n\nvar typeOf;\nvar hasRequiredTypeOf;\n\nfunction requireTypeOf () {\n\tif (hasRequiredTypeOf) return typeOf;\n\thasRequiredTypeOf = 1;\n\n\tvar type = requireTypeDetect();\n\n\t/**\n\t * Returns the lower-case result of running type from type-detect on the value\n\t * @param {*} value\n\t * @returns {string}\n\t */\n\ttypeOf = function typeOf(value) {\n\t return type(value).toLowerCase();\n\t};\n\treturn typeOf;\n}\n\nvar valueToString_1;\nvar hasRequiredValueToString;\n\nfunction requireValueToString () {\n\tif (hasRequiredValueToString) return valueToString_1;\n\thasRequiredValueToString = 1;\n\n\t/**\n\t * Returns a string representation of the value\n\t * @param {*} value\n\t * @returns {string}\n\t */\n\tfunction valueToString(value) {\n\t if (value && value.toString) {\n\t // eslint-disable-next-line @sinonjs/no-prototype-methods/no-prototype-methods\n\t return value.toString();\n\t }\n\t return String(value);\n\t}\n\n\tvalueToString_1 = valueToString;\n\treturn valueToString_1;\n}\n\nvar lib;\nvar hasRequiredLib;\n\nfunction requireLib () {\n\tif (hasRequiredLib) return lib;\n\thasRequiredLib = 1;\n\n\tlib = {\n\t global: requireGlobal(),\n\t calledInOrder: requireCalledInOrder(),\n\t className: requireClassName(),\n\t deprecated: requireDeprecated(),\n\t every: requireEvery(),\n\t functionName: requireFunctionName(),\n\t orderByFirstCall: requireOrderByFirstCall(),\n\t prototypes: requirePrototypes(),\n\t typeOf: requireTypeOf(),\n\t valueToString: requireValueToString(),\n\t};\n\treturn lib;\n}\n\nvar hasRequiredFakeTimersSrc;\n\nfunction requireFakeTimersSrc () {\n\tif (hasRequiredFakeTimersSrc) return fakeTimersSrc;\n\thasRequiredFakeTimersSrc = 1;\n\n\tconst globalObject = requireLib().global;\n\tlet timersModule, timersPromisesModule;\n\tif (typeof __vitest_required__ !== 'undefined') {\n\t try {\n\t timersModule = __vitest_required__.timers;\n\t } catch (e) {\n\t // ignored\n\t }\n\t try {\n\t timersPromisesModule = __vitest_required__.timersPromises;\n\t } catch (e) {\n\t // ignored\n\t }\n\t}\n\n\t/**\n\t * @typedef {object} IdleDeadline\n\t * @property {boolean} didTimeout - whether or not the callback was called before reaching the optional timeout\n\t * @property {function():number} timeRemaining - a floating-point value providing an estimate of the number of milliseconds remaining in the current idle period\n\t */\n\n\t/**\n\t * Queues a function to be called during a browser's idle periods\n\t * @callback RequestIdleCallback\n\t * @param {function(IdleDeadline)} callback\n\t * @param {{timeout: number}} options - an options object\n\t * @returns {number} the id\n\t */\n\n\t/**\n\t * @callback NextTick\n\t * @param {VoidVarArgsFunc} callback - the callback to run\n\t * @param {...*} args - optional arguments to call the callback with\n\t * @returns {void}\n\t */\n\n\t/**\n\t * @callback SetImmediate\n\t * @param {VoidVarArgsFunc} callback - the callback to run\n\t * @param {...*} args - optional arguments to call the callback with\n\t * @returns {NodeImmediate}\n\t */\n\n\t/**\n\t * @callback VoidVarArgsFunc\n\t * @param {...*} callback - the callback to run\n\t * @returns {void}\n\t */\n\n\t/**\n\t * @typedef RequestAnimationFrame\n\t * @property {function(number):void} requestAnimationFrame\n\t * @returns {number} - the id\n\t */\n\n\t/**\n\t * @typedef Performance\n\t * @property {function(): number} now\n\t */\n\n\t/* eslint-disable jsdoc/require-property-description */\n\t/**\n\t * @typedef {object} Clock\n\t * @property {number} now - the current time\n\t * @property {Date} Date - the Date constructor\n\t * @property {number} loopLimit - the maximum number of timers before assuming an infinite loop\n\t * @property {RequestIdleCallback} requestIdleCallback\n\t * @property {function(number):void} cancelIdleCallback\n\t * @property {setTimeout} setTimeout\n\t * @property {clearTimeout} clearTimeout\n\t * @property {NextTick} nextTick\n\t * @property {queueMicrotask} queueMicrotask\n\t * @property {setInterval} setInterval\n\t * @property {clearInterval} clearInterval\n\t * @property {SetImmediate} setImmediate\n\t * @property {function(NodeImmediate):void} clearImmediate\n\t * @property {function():number} countTimers\n\t * @property {RequestAnimationFrame} requestAnimationFrame\n\t * @property {function(number):void} cancelAnimationFrame\n\t * @property {function():void} runMicrotasks\n\t * @property {function(string | number): number} tick\n\t * @property {function(string | number): Promise<number>} tickAsync\n\t * @property {function(): number} next\n\t * @property {function(): Promise<number>} nextAsync\n\t * @property {function(): number} runAll\n\t * @property {function(): number} runToFrame\n\t * @property {function(): Promise<number>} runAllAsync\n\t * @property {function(): number} runToLast\n\t * @property {function(): Promise<number>} runToLastAsync\n\t * @property {function(): void} reset\n\t * @property {function(number | Date): void} setSystemTime\n\t * @property {function(number): void} jump\n\t * @property {Performance} performance\n\t * @property {function(number[]): number[]} hrtime - process.hrtime (legacy)\n\t * @property {function(): void} uninstall Uninstall the clock.\n\t * @property {Function[]} methods - the methods that are faked\n\t * @property {boolean} [shouldClearNativeTimers] inherited from config\n\t * @property {{methodName:string, original:any}[] | undefined} timersModuleMethods\n\t * @property {{methodName:string, original:any}[] | undefined} timersPromisesModuleMethods\n\t * @property {Map<function(): void, AbortSignal>} abortListenerMap\n\t */\n\t/* eslint-enable jsdoc/require-property-description */\n\n\t/**\n\t * Configuration object for the `install` method.\n\t * @typedef {object} Config\n\t * @property {number|Date} [now] a number (in milliseconds) or a Date object (default epoch)\n\t * @property {string[]} [toFake] names of the methods that should be faked.\n\t * @property {number} [loopLimit] the maximum number of timers that will be run when calling runAll()\n\t * @property {boolean} [shouldAdvanceTime] tells FakeTimers to increment mocked time automatically (default false)\n\t * @property {number} [advanceTimeDelta] increment mocked time every <<advanceTimeDelta>> ms (default: 20ms)\n\t * @property {boolean} [shouldClearNativeTimers] forwards clear timer calls to native functions if they are not fakes (default: false)\n\t * @property {boolean} [ignoreMissingTimers] default is false, meaning asking to fake timers that are not present will throw an error\n\t */\n\n\t/* eslint-disable jsdoc/require-property-description */\n\t/**\n\t * The internal structure to describe a scheduled fake timer\n\t * @typedef {object} Timer\n\t * @property {Function} func\n\t * @property {*[]} args\n\t * @property {number} delay\n\t * @property {number} callAt\n\t * @property {number} createdAt\n\t * @property {boolean} immediate\n\t * @property {number} id\n\t * @property {Error} [error]\n\t */\n\n\t/**\n\t * A Node timer\n\t * @typedef {object} NodeImmediate\n\t * @property {function(): boolean} hasRef\n\t * @property {function(): NodeImmediate} ref\n\t * @property {function(): NodeImmediate} unref\n\t */\n\t/* eslint-enable jsdoc/require-property-description */\n\n\t/* eslint-disable complexity */\n\n\t/**\n\t * Mocks available features in the specified global namespace.\n\t * @param {*} _global Namespace to mock (e.g. `window`)\n\t * @returns {FakeTimers}\n\t */\n\tfunction withGlobal(_global) {\n\t const maxTimeout = Math.pow(2, 31) - 1; //see https://heycam.github.io/webidl/#abstract-opdef-converttoint\n\t const idCounterStart = 1e12; // arbitrarily large number to avoid collisions with native timer IDs\n\t const NOOP = function () {\n\t return undefined;\n\t };\n\t const NOOP_ARRAY = function () {\n\t return [];\n\t };\n\t const isPresent = {};\n\t let timeoutResult,\n\t addTimerReturnsObject = false;\n\n\t if (_global.setTimeout) {\n\t isPresent.setTimeout = true;\n\t timeoutResult = _global.setTimeout(NOOP, 0);\n\t addTimerReturnsObject = typeof timeoutResult === \"object\";\n\t }\n\t isPresent.clearTimeout = Boolean(_global.clearTimeout);\n\t isPresent.setInterval = Boolean(_global.setInterval);\n\t isPresent.clearInterval = Boolean(_global.clearInterval);\n\t isPresent.hrtime =\n\t _global.process && typeof _global.process.hrtime === \"function\";\n\t isPresent.hrtimeBigint =\n\t isPresent.hrtime && typeof _global.process.hrtime.bigint === \"function\";\n\t isPresent.nextTick =\n\t _global.process && typeof _global.process.nextTick === \"function\";\n\t const utilPromisify = _global.process && _global.__vitest_required__ && _global.__vitest_required__.util.promisify;\n\t isPresent.performance =\n\t _global.performance && typeof _global.performance.now === \"function\";\n\t const hasPerformancePrototype =\n\t _global.Performance &&\n\t (typeof _global.Performance).match(/^(function|object)$/);\n\t const hasPerformanceConstructorPrototype =\n\t _global.performance &&\n\t _global.performance.constructor &&\n\t _global.performance.constructor.prototype;\n\t isPresent.queueMicrotask = _global.hasOwnProperty(\"queueMicrotask\");\n\t isPresent.requestAnimationFrame =\n\t _global.requestAnimationFrame &&\n\t typeof _global.requestAnimationFrame === \"function\";\n\t isPresent.cancelAnimationFrame =\n\t _global.cancelAnimationFrame &&\n\t typeof _global.cancelAnimationFrame === \"function\";\n\t isPresent.requestIdleCallback =\n\t _global.requestIdleCallback &&\n\t typeof _global.requestIdleCallback === \"function\";\n\t isPresent.cancelIdleCallbackPresent =\n\t _global.cancelIdleCallback &&\n\t typeof _global.cancelIdleCallback === \"function\";\n\t isPresent.setImmediate =\n\t _global.setImmediate && typeof _global.setImmediate === \"function\";\n\t isPresent.clearImmediate =\n\t _global.clearImmediate && typeof _global.clearImmediate === \"function\";\n\t isPresent.Intl = _global.Intl && typeof _global.Intl === \"object\";\n\n\t if (_global.clearTimeout) {\n\t _global.clearTimeout(timeoutResult);\n\t }\n\n\t const NativeDate = _global.Date;\n\t const NativeIntl = isPresent.Intl\n\t ? Object.defineProperties(\n\t Object.create(null),\n\t Object.getOwnPropertyDescriptors(_global.Intl),\n\t )\n\t : undefined;\n\t let uniqueTimerId = idCounterStart;\n\n\t if (NativeDate === undefined) {\n\t throw new Error(\n\t \"The global scope doesn't have a `Date` object\" +\n\t \" (see https://github.com/sinonjs/sinon/issues/1852#issuecomment-419622780)\",\n\t );\n\t }\n\t isPresent.Date = true;\n\n\t /**\n\t * The PerformanceEntry object encapsulates a single performance metric\n\t * that is part of the browser's performance timeline.\n\t *\n\t * This is an object returned by the `mark` and `measure` methods on the Performance prototype\n\t */\n\t class FakePerformanceEntry {\n\t constructor(name, entryType, startTime, duration) {\n\t this.name = name;\n\t this.entryType = entryType;\n\t this.startTime = startTime;\n\t this.duration = duration;\n\t }\n\n\t toJSON() {\n\t return JSON.stringify({ ...this });\n\t }\n\t }\n\n\t /**\n\t * @param {number} num\n\t * @returns {boolean}\n\t */\n\t function isNumberFinite(num) {\n\t if (Number.isFinite) {\n\t return Number.isFinite(num);\n\t }\n\n\t return isFinite(num);\n\t }\n\n\t let isNearInfiniteLimit = false;\n\n\t /**\n\t * @param {Clock} clock\n\t * @param {number} i\n\t */\n\t function checkIsNearInfiniteLimit(clock, i) {\n\t if (clock.loopLimit && i === clock.loopLimit - 1) {\n\t isNearInfiniteLimit = true;\n\t }\n\t }\n\n\t /**\n\t *\n\t */\n\t function resetIsNearInfiniteLimit() {\n\t isNearInfiniteLimit = false;\n\t }\n\n\t /**\n\t * Parse strings like \"01:10:00\" (meaning 1 hour, 10 minutes, 0 seconds) into\n\t * number of milliseconds. This is used to support human-readable strings passed\n\t * to clock.tick()\n\t * @param {string} str\n\t * @returns {number}\n\t */\n\t function parseTime(str) {\n\t if (!str) {\n\t return 0;\n\t }\n\n\t const strings = str.split(\":\");\n\t const l = strings.length;\n\t let i = l;\n\t let ms = 0;\n\t let parsed;\n\n\t if (l > 3 || !/^(\\d\\d:){0,2}\\d\\d?$/.test(str)) {\n\t throw new Error(\n\t \"tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits\",\n\t );\n\t }\n\n\t while (i--) {\n\t parsed = parseInt(strings[i], 10);\n\n\t if (parsed >= 60) {\n\t throw new Error(`Invalid time ${str}`);\n\t }\n\n\t ms += parsed * Math.pow(60, l - i - 1);\n\t }\n\n\t return ms * 1000;\n\t }\n\n\t /**\n\t * Get the decimal part of the millisecond value as nanoseconds\n\t * @param {number} msFloat the number of milliseconds\n\t * @returns {number} an integer number of nanoseconds in the range [0,1e6)\n\t *\n\t * Example: nanoRemainer(123.456789) -> 456789\n\t */\n\t function nanoRemainder(msFloat) {\n\t const modulo = 1e6;\n\t const remainder = (msFloat * 1e6) % modulo;\n\t const positiveRemainder =\n\t remainder < 0 ? remainder + modulo : remainder;\n\n\t return Math.floor(positiveRemainder);\n\t }\n\n\t /**\n\t * Used to grok the `now` parameter to createClock.\n\t * @param {Date|number} epoch the system time\n\t * @returns {number}\n\t */\n\t function getEpoch(epoch) {\n\t if (!epoch) {\n\t return 0;\n\t }\n\t if (typeof epoch.getTime === \"function\") {\n\t return epoch.getTime();\n\t }\n\t if (typeof epoch === \"number\") {\n\t return epoch;\n\t }\n\t throw new TypeError(\"now should be milliseconds since UNIX epoch\");\n\t }\n\n\t /**\n\t * @param {number} from\n\t * @param {number} to\n\t * @param {Timer} timer\n\t * @returns {boolean}\n\t */\n\t function inRange(from, to, timer) {\n\t return timer && timer.callAt >= from && timer.callAt <= to;\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @param {Timer} job\n\t */\n\t function getInfiniteLoopError(clock, job) {\n\t const infiniteLoopError = new Error(\n\t `Aborting after running ${clock.loopLimit} timers, assuming an infinite loop!`,\n\t );\n\n\t if (!job.error) {\n\t return infiniteLoopError;\n\t }\n\n\t // pattern never matched in Node\n\t const computedTargetPattern = /target\\.*[<|(|[].*?[>|\\]|)]\\s*/;\n\t let clockMethodPattern = new RegExp(\n\t String(Object.keys(clock).join(\"|\")),\n\t );\n\n\t if (addTimerReturnsObject) {\n\t // node.js environment\n\t clockMethodPattern = new RegExp(\n\t `\\\\s+at (Object\\\\.)?(?:${Object.keys(clock).join(\"|\")})\\\\s+`,\n\t );\n\t }\n\n\t let matchedLineIndex = -1;\n\t job.error.stack.split(\"\\n\").some(function (line, i) {\n\t // If we've matched a computed target line (e.g. setTimeout) then we\n\t // don't need to look any further. Return true to stop iterating.\n\t const matchedComputedTarget = line.match(computedTargetPattern);\n\t /* istanbul ignore if */\n\t if (matchedComputedTarget) {\n\t matchedLineIndex = i;\n\t return true;\n\t }\n\n\t // If we've matched a clock method line, then there may still be\n\t // others further down the trace. Return false to keep iterating.\n\t const matchedClockMethod = line.match(clockMethodPattern);\n\t if (matchedClockMethod) {\n\t matchedLineIndex = i;\n\t return false;\n\t }\n\n\t // If we haven't matched anything on this line, but we matched\n\t // previously and set the matched line index, then we can stop.\n\t // If we haven't matched previously, then we should keep iterating.\n\t return matchedLineIndex >= 0;\n\t });\n\n\t const stack = `${infiniteLoopError}\\n${job.type || \"Microtask\"} - ${\n\t job.func.name || \"anonymous\"\n\t }\\n${job.error.stack\n\t .split(\"\\n\")\n\t .slice(matchedLineIndex + 1)\n\t .join(\"\\n\")}`;\n\n\t try {\n\t Object.defineProperty(infiniteLoopError, \"stack\", {\n\t value: stack,\n\t });\n\t } catch (e) {\n\t // noop\n\t }\n\n\t return infiniteLoopError;\n\t }\n\n\t //eslint-disable-next-line jsdoc/require-jsdoc\n\t function createDate() {\n\t class ClockDate extends NativeDate {\n\t /**\n\t * @param {number} year\n\t * @param {number} month\n\t * @param {number} date\n\t * @param {number} hour\n\t * @param {number} minute\n\t * @param {number} second\n\t * @param {number} ms\n\t * @returns void\n\t */\n\t // eslint-disable-next-line no-unused-vars\n\t constructor(year, month, date, hour, minute, second, ms) {\n\t // Defensive and verbose to avoid potential harm in passing\n\t // explicit undefined when user does not pass argument\n\t if (arguments.length === 0) {\n\t super(ClockDate.clock.now);\n\t } else {\n\t super(...arguments);\n\t }\n\n\t // ensures identity checks using the constructor prop still works\n\t // this should have no other functional effect\n\t Object.defineProperty(this, \"constructor\", {\n\t value: NativeDate,\n\t enumerable: false,\n\t });\n\t }\n\n\t static [Symbol.hasInstance](instance) {\n\t return instance instanceof NativeDate;\n\t }\n\t }\n\n\t ClockDate.isFake = true;\n\n\t if (NativeDate.now) {\n\t ClockDate.now = function now() {\n\t return ClockDate.clock.now;\n\t };\n\t }\n\n\t if (NativeDate.toSource) {\n\t ClockDate.toSource = function toSource() {\n\t return NativeDate.toSource();\n\t };\n\t }\n\n\t ClockDate.toString = function toString() {\n\t return NativeDate.toString();\n\t };\n\n\t // noinspection UnnecessaryLocalVariableJS\n\t /**\n\t * A normal Class constructor cannot be called without `new`, but Date can, so we need\n\t * to wrap it in a Proxy in order to ensure this functionality of Date is kept intact\n\t * @type {ClockDate}\n\t */\n\t const ClockDateProxy = new Proxy(ClockDate, {\n\t // handler for [[Call]] invocations (i.e. not using `new`)\n\t apply() {\n\t // the Date constructor called as a function, ref Ecma-262 Edition 5.1, section 15.9.2.\n\t // This remains so in the 10th edition of 2019 as well.\n\t if (this instanceof ClockDate) {\n\t throw new TypeError(\n\t \"A Proxy should only capture `new` calls with the `construct` handler. This is not supposed to be possible, so check the logic.\",\n\t );\n\t }\n\n\t return new NativeDate(ClockDate.clock.now).toString();\n\t },\n\t });\n\n\t return ClockDateProxy;\n\t }\n\n\t /**\n\t * Mirror Intl by default on our fake implementation\n\t *\n\t * Most of the properties are the original native ones,\n\t * but we need to take control of those that have a\n\t * dependency on the current clock.\n\t * @returns {object} the partly fake Intl implementation\n\t */\n\t function createIntl() {\n\t const ClockIntl = {};\n\t /*\n\t * All properties of Intl are non-enumerable, so we need\n\t * to do a bit of work to get them out.\n\t */\n\t Object.getOwnPropertyNames(NativeIntl).forEach(\n\t (property) => (ClockIntl[property] = NativeIntl[property]),\n\t );\n\n\t ClockIntl.DateTimeFormat = function (...args) {\n\t const realFormatter = new NativeIntl.DateTimeFormat(...args);\n\t const formatter = {};\n\n\t [\"formatRange\", \"formatRangeToParts\", \"resolvedOptions\"].forEach(\n\t (method) => {\n\t formatter[method] =\n\t realFormatter[method].bind(realFormatter);\n\t },\n\t );\n\n\t [\"format\", \"formatToParts\"].forEach((method) => {\n\t formatter[method] = function (date) {\n\t return realFormatter[method](date || ClockIntl.clock.now);\n\t };\n\t });\n\n\t return formatter;\n\t };\n\n\t ClockIntl.DateTimeFormat.prototype = Object.create(\n\t NativeIntl.DateTimeFormat.prototype,\n\t );\n\n\t ClockIntl.DateTimeFormat.supportedLocalesOf =\n\t NativeIntl.DateTimeFormat.supportedLocalesOf;\n\n\t return ClockIntl;\n\t }\n\n\t //eslint-disable-next-line jsdoc/require-jsdoc\n\t function enqueueJob(clock, job) {\n\t // enqueues a microtick-deferred task - ecma262/#sec-enqueuejob\n\t if (!clock.jobs) {\n\t clock.jobs = [];\n\t }\n\t clock.jobs.push(job);\n\t }\n\n\t //eslint-disable-next-line jsdoc/require-jsdoc\n\t function runJobs(clock) {\n\t // runs all microtick-deferred tasks - ecma262/#sec-runjobs\n\t if (!clock.jobs) {\n\t return;\n\t }\n\t for (let i = 0; i < clock.jobs.length; i++) {\n\t const job = clock.jobs[i];\n\t job.func.apply(null, job.args);\n\n\t checkIsNearInfiniteLimit(clock, i);\n\t if (clock.loopLimit && i > clock.loopLimit) {\n\t throw getInfiniteLoopError(clock, job);\n\t }\n\t }\n\t resetIsNearInfiniteLimit();\n\t clock.jobs = [];\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @param {Timer} timer\n\t * @returns {number} id of the created timer\n\t */\n\t function addTimer(clock, timer) {\n\t if (timer.func === undefined) {\n\t throw new Error(\"Callback must be provided to timer calls\");\n\t }\n\n\t if (addTimerReturnsObject) {\n\t // Node.js environment\n\t if (typeof timer.func !== \"function\") {\n\t throw new TypeError(\n\t `[ERR_INVALID_CALLBACK]: Callback must be a function. Received ${\n\t timer.func\n\t } of type ${typeof timer.func}`,\n\t );\n\t }\n\t }\n\n\t if (isNearInfiniteLimit) {\n\t timer.error = new Error();\n\t }\n\n\t timer.type = timer.immediate ? \"Immediate\" : \"Timeout\";\n\n\t if (timer.hasOwnProperty(\"delay\")) {\n\t if (typeof timer.delay !== \"number\") {\n\t timer.delay = parseInt(timer.delay, 10);\n\t }\n\n\t if (!isNumberFinite(timer.delay)) {\n\t timer.delay = 0;\n\t }\n\t timer.delay = timer.delay > maxTimeout ? 1 : timer.delay;\n\t timer.delay = Math.max(0, timer.delay);\n\t }\n\n\t if (timer.hasOwnProperty(\"interval\")) {\n\t timer.type = \"Interval\";\n\t timer.interval = timer.interval > maxTimeout ? 1 : timer.interval;\n\t }\n\n\t if (timer.hasOwnProperty(\"animation\")) {\n\t timer.type = \"AnimationFrame\";\n\t timer.animation = true;\n\t }\n\n\t if (timer.hasOwnProperty(\"idleCallback\")) {\n\t timer.type = \"IdleCallback\";\n\t timer.idleCallback = true;\n\t }\n\n\t if (!clock.timers) {\n\t clock.timers = {};\n\t }\n\n\t timer.id = uniqueTimerId++;\n\t timer.createdAt = clock.now;\n\t timer.callAt =\n\t clock.now + (parseInt(timer.delay) || (clock.duringTick ? 1 : 0));\n\n\t clock.timers[timer.id] = timer;\n\n\t if (addTimerReturnsObject) {\n\t const res = {\n\t refed: true,\n\t ref: function () {\n\t this.refed = true;\n\t return res;\n\t },\n\t unref: function () {\n\t this.refed = false;\n\t return res;\n\t },\n\t hasRef: function () {\n\t return this.refed;\n\t },\n\t refresh: function () {\n\t timer.callAt =\n\t clock.now +\n\t (parseInt(timer.delay) || (clock.duringTick ? 1 : 0));\n\n\t // it _might_ have been removed, but if not the assignment is perfectly fine\n\t clock.timers[timer.id] = timer;\n\n\t return res;\n\t },\n\t [Symbol.toPrimitive]: function () {\n\t return timer.id;\n\t },\n\t };\n\t return res;\n\t }\n\n\t return timer.id;\n\t }\n\n\t /* eslint consistent-return: \"off\" */\n\t /**\n\t * Timer comparitor\n\t * @param {Timer} a\n\t * @param {Timer} b\n\t * @returns {number}\n\t */\n\t function compareTimers(a, b) {\n\t // Sort first by absolute timing\n\t if (a.callAt < b.callAt) {\n\t return -1;\n\t }\n\t if (a.callAt > b.callAt) {\n\t return 1;\n\t }\n\n\t // Sort next by immediate, immediate timers take precedence\n\t if (a.immediate && !b.immediate) {\n\t return -1;\n\t }\n\t if (!a.immediate && b.immediate) {\n\t return 1;\n\t }\n\n\t // Sort next by creation time, earlier-created timers take precedence\n\t if (a.createdAt < b.createdAt) {\n\t return -1;\n\t }\n\t if (a.createdAt > b.createdAt) {\n\t return 1;\n\t }\n\n\t // Sort next by id, lower-id timers take precedence\n\t if (a.id < b.id) {\n\t return -1;\n\t }\n\t if (a.id > b.id) {\n\t return 1;\n\t }\n\n\t // As timer ids are unique, no fallback `0` is necessary\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @param {number} from\n\t * @param {number} to\n\t * @returns {Timer}\n\t */\n\t function firstTimerInRange(clock, from, to) {\n\t const timers = clock.timers;\n\t let timer = null;\n\t let id, isInRange;\n\n\t for (id in timers) {\n\t if (timers.hasOwnProperty(id)) {\n\t isInRange = inRange(from, to, timers[id]);\n\n\t if (\n\t isInRange &&\n\t (!timer || compareTimers(timer, timers[id]) === 1)\n\t ) {\n\t timer = timers[id];\n\t }\n\t }\n\t }\n\n\t return timer;\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @returns {Timer}\n\t */\n\t function firstTimer(clock) {\n\t const timers = clock.timers;\n\t let timer = null;\n\t let id;\n\n\t for (id in timers) {\n\t if (timers.hasOwnProperty(id)) {\n\t if (!timer || compareTimers(timer, timers[id]) === 1) {\n\t timer = timers[id];\n\t }\n\t }\n\t }\n\n\t return timer;\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @returns {Timer}\n\t */\n\t function lastTimer(clock) {\n\t const timers = clock.timers;\n\t let timer = null;\n\t let id;\n\n\t for (id in timers) {\n\t if (timers.hasOwnProperty(id)) {\n\t if (!timer || compareTimers(timer, timers[id]) === -1) {\n\t timer = timers[id];\n\t }\n\t }\n\t }\n\n\t return timer;\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @param {Timer} timer\n\t */\n\t function callTimer(clock, timer) {\n\t if (typeof timer.interval === \"number\") {\n\t clock.timers[timer.id].callAt += timer.interval;\n\t } else {\n\t delete clock.timers[timer.id];\n\t }\n\n\t if (typeof timer.func === \"function\") {\n\t timer.func.apply(null, timer.args);\n\t } else {\n\t /* eslint no-eval: \"off\" */\n\t const eval2 = eval;\n\t (function () {\n\t eval2(timer.func);\n\t })();\n\t }\n\t }\n\n\t /**\n\t * Gets clear handler name for a given timer type\n\t * @param {string} ttype\n\t */\n\t function getClearHandler(ttype) {\n\t if (ttype === \"IdleCallback\" || ttype === \"AnimationFrame\") {\n\t return `cancel${ttype}`;\n\t }\n\t return `clear${ttype}`;\n\t }\n\n\t /**\n\t * Gets schedule handler name for a given timer type\n\t * @param {string} ttype\n\t */\n\t function getScheduleHandler(ttype) {\n\t if (ttype === \"IdleCallback\" || ttype === \"AnimationFrame\") {\n\t return `request${ttype}`;\n\t }\n\t return `set${ttype}`;\n\t }\n\n\t /**\n\t * Creates an anonymous function to warn only once\n\t */\n\t function createWarnOnce() {\n\t let calls = 0;\n\t return function (msg) {\n\t // eslint-disable-next-line\n\t !calls++ && console.warn(msg);\n\t };\n\t }\n\t const warnOnce = createWarnOnce();\n\n\t /**\n\t * @param {Clock} clock\n\t * @param {number} timerId\n\t * @param {string} ttype\n\t */\n\t function clearTimer(clock, timerId, ttype) {\n\t if (!timerId) {\n\t // null appears to be allowed in most browsers, and appears to be\n\t // relied upon by some libraries, like Bootstrap carousel\n\t return;\n\t }\n\n\t if (!clock.timers) {\n\t clock.timers = {};\n\t }\n\n\t // in Node, the ID is stored as the primitive value for `Timeout` objects\n\t // for `Immediate` objects, no ID exists, so it gets coerced to NaN\n\t const id = Number(timerId);\n\n\t if (Number.isNaN(id) || id < idCounterStart) {\n\t const handlerName = getClearHandler(ttype);\n\n\t if (clock.shouldClearNativeTimers === true) {\n\t const nativeHandler = clock[`_${handlerName}`];\n\t return typeof nativeHandler === \"function\"\n\t ? nativeHandler(timerId)\n\t : undefined;\n\t }\n\t warnOnce(\n\t `FakeTimers: ${handlerName} was invoked to clear a native timer instead of one created by this library.` +\n\t \"\\nTo automatically clean-up native timers, use `shouldClearNativeTimers`.\",\n\t );\n\t }\n\n\t if (clock.timers.hasOwnProperty(id)) {\n\t // check that the ID matches a timer of the correct type\n\t const timer = clock.timers[id];\n\t if (\n\t timer.type === ttype ||\n\t (timer.type === \"Timeout\" && ttype === \"Interval\") ||\n\t (timer.type === \"Interval\" && ttype === \"Timeout\")\n\t ) {\n\t delete clock.timers[id];\n\t } else {\n\t const clear = getClearHandler(ttype);\n\t const schedule = getScheduleHandler(timer.type);\n\t throw new Error(\n\t `Cannot clear timer: timer created with ${schedule}() but cleared with ${clear}()`,\n\t );\n\t }\n\t }\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @param {Config} config\n\t * @returns {Timer[]}\n\t */\n\t function uninstall(clock, config) {\n\t let method, i, l;\n\t const installedHrTime = \"_hrtime\";\n\t const installedNextTick = \"_nextTick\";\n\n\t for (i = 0, l = clock.methods.length; i < l; i++) {\n\t method = clock.methods[i];\n\t if (method === \"hrtime\" && _global.process) {\n\t _global.process.hrtime = clock[installedHrTime];\n\t } else if (method === \"nextTick\" && _global.process) {\n\t _global.process.nextTick = clock[installedNextTick];\n\t } else if (method === \"performance\") {\n\t const originalPerfDescriptor = Object.getOwnPropertyDescriptor(\n\t clock,\n\t `_${method}`,\n\t );\n\t if (\n\t originalPerfDescriptor &&\n\t originalPerfDescriptor.get &&\n\t !originalPerfDescriptor.set\n\t ) {\n\t Object.defineProperty(\n\t _global,\n\t method,\n\t originalPerfDescriptor,\n\t );\n\t } else if (originalPerfDescriptor.configurable) {\n\t _global[method] = clock[`_${method}`];\n\t }\n\t } else {\n\t if (_global[method] && _global[method].hadOwnProperty) {\n\t _global[method] = clock[`_${method}`];\n\t } else {\n\t try {\n\t delete _global[method];\n\t } catch (ignore) {\n\t /* eslint no-empty: \"off\" */\n\t }\n\t }\n\t }\n\t if (clock.timersModuleMethods !== undefined) {\n\t for (let j = 0; j < clock.timersModuleMethods.length; j++) {\n\t const entry = clock.timersModuleMethods[j];\n\t timersModule[entry.methodName] = entry.original;\n\t }\n\t }\n\t if (clock.timersPromisesModuleMethods !== undefined) {\n\t for (\n\t let j = 0;\n\t j < clock.timersPromisesModuleMethods.length;\n\t j++\n\t ) {\n\t const entry = clock.timersPromisesModuleMethods[j];\n\t timersPromisesModule[entry.methodName] = entry.original;\n\t }\n\t }\n\t }\n\n\t if (config.shouldAdvanceTime === true) {\n\t _global.clearInterval(clock.attachedInterval);\n\t }\n\n\t // Prevent multiple executions which will completely remove these props\n\t clock.methods = [];\n\n\t for (const [listener, signal] of clock.abortListenerMap.entries()) {\n\t signal.removeEventListener(\"abort\", listener);\n\t clock.abortListenerMap.delete(listener);\n\t }\n\n\t // return pending timers, to enable checking what timers remained on uninstall\n\t if (!clock.timers) {\n\t return [];\n\t }\n\t return Object.keys(clock.timers).map(function mapper(key) {\n\t return clock.timers[key];\n\t });\n\t }\n\n\t /**\n\t * @param {object} target the target containing the method to replace\n\t * @param {string} method the keyname of the method on the target\n\t * @param {Clock} clock\n\t */\n\t function hijackMethod(target, method, clock) {\n\t clock[method].hadOwnProperty = Object.prototype.hasOwnProperty.call(\n\t target,\n\t method,\n\t );\n\t clock[`_${method}`] = target[method];\n\n\t if (method === \"Date\") {\n\t target[method] = clock[method];\n\t } else if (method === \"Intl\") {\n\t target[method] = clock[method];\n\t } else if (method === \"performance\") {\n\t const originalPerfDescriptor = Object.getOwnPropertyDescriptor(\n\t target,\n\t method,\n\t );\n\t // JSDOM has a read only performance field so we have to save/copy it differently\n\t if (\n\t originalPerfDescriptor &&\n\t originalPerfDescriptor.get &&\n\t !originalPerfDescriptor.set\n\t ) {\n\t Object.defineProperty(\n\t clock,\n\t `_${method}`,\n\t originalPerfDescriptor,\n\t );\n\n\t const perfDescriptor = Object.getOwnPropertyDescriptor(\n\t clock,\n\t method,\n\t );\n\t Object.defineProperty(target, method, perfDescriptor);\n\t } else {\n\t target[method] = clock[method];\n\t }\n\t } else {\n\t target[method] = function () {\n\t return clock[method].apply(clock, arguments);\n\t };\n\n\t Object.defineProperties(\n\t target[method],\n\t Object.getOwnPropertyDescriptors(clock[method]),\n\t );\n\t }\n\n\t target[method].clock = clock;\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @param {number} advanceTimeDelta\n\t */\n\t function doIntervalTick(clock, advanceTimeDelta) {\n\t clock.tick(advanceTimeDelta);\n\t }\n\n\t /**\n\t * @typedef {object} Timers\n\t * @property {setTimeout} setTimeout\n\t * @property {clearTimeout} clearTimeout\n\t * @property {setInterval} setInterval\n\t * @property {clearInterval} clearInterval\n\t * @property {Date} Date\n\t * @property {Intl} Intl\n\t * @property {SetImmediate=} setImmediate\n\t * @property {function(NodeImmediate): void=} clearImmediate\n\t * @property {function(number[]):number[]=} hrtime\n\t * @property {NextTick=} nextTick\n\t * @property {Performance=} performance\n\t * @property {RequestAnimationFrame=} requestAnimationFrame\n\t * @property {boolean=} queueMicrotask\n\t * @property {function(number): void=} cancelAnimationFrame\n\t * @property {RequestIdleCallback=} requestIdleCallback\n\t * @property {function(number): void=} cancelIdleCallback\n\t */\n\n\t /** @type {Timers} */\n\t const timers = {\n\t setTimeout: _global.setTimeout,\n\t clearTimeout: _global.clearTimeout,\n\t setInterval: _global.setInterval,\n\t clearInterval: _global.clearInterval,\n\t Date: _global.Date,\n\t };\n\n\t if (isPresent.setImmediate) {\n\t timers.setImmediate = _global.setImmediate;\n\t }\n\n\t if (isPresent.clearImmediate) {\n\t timers.clearImmediate = _global.clearImmediate;\n\t }\n\n\t if (isPresent.hrtime) {\n\t timers.hrtime = _global.process.hrtime;\n\t }\n\n\t if (isPresent.nextTick) {\n\t timers.nextTick = _global.process.nextTick;\n\t }\n\n\t if (isPresent.performance) {\n\t timers.performance = _global.performance;\n\t }\n\n\t if (isPresent.requestAnimationFrame) {\n\t timers.requestAnimationFrame = _global.requestAnimationFrame;\n\t }\n\n\t if (isPresent.queueMicrotask) {\n\t timers.queueMicrotask = _global.queueMicrotask;\n\t }\n\n\t if (isPresent.cancelAnimationFrame) {\n\t timers.cancelAnimationFrame = _global.cancelAnimationFrame;\n\t }\n\n\t if (isPresent.requestIdleCallback) {\n\t timers.requestIdleCallback = _global.requestIdleCallback;\n\t }\n\n\t if (isPresent.cancelIdleCallback) {\n\t timers.cancelIdleCallback = _global.cancelIdleCallback;\n\t }\n\n\t if (isPresent.Intl) {\n\t timers.Intl = NativeIntl;\n\t }\n\n\t const originalSetTimeout = _global.setImmediate || _global.setTimeout;\n\n\t /**\n\t * @param {Date|number} [start] the system time - non-integer values are floored\n\t * @param {number} [loopLimit] maximum number of timers that will be run when calling runAll()\n\t * @returns {Clock}\n\t */\n\t function createClock(start, loopLimit) {\n\t // eslint-disable-next-line no-param-reassign\n\t start = Math.floor(getEpoch(start));\n\t // eslint-disable-next-line no-param-reassign\n\t loopLimit = loopLimit || 1000;\n\t let nanos = 0;\n\t const adjustedSystemTime = [0, 0]; // [millis, nanoremainder]\n\n\t const clock = {\n\t now: start,\n\t Date: createDate(),\n\t loopLimit: loopLimit,\n\t };\n\n\t clock.Date.clock = clock;\n\n\t //eslint-disable-next-line jsdoc/require-jsdoc\n\t function getTimeToNextFrame() {\n\t return 16 - ((clock.now - start) % 16);\n\t }\n\n\t //eslint-disable-next-line jsdoc/require-jsdoc\n\t function hrtime(prev) {\n\t const millisSinceStart = clock.now - adjustedSystemTime[0] - start;\n\t const secsSinceStart = Math.floor(millisSinceStart / 1000);\n\t const remainderInNanos =\n\t (millisSinceStart - secsSinceStart * 1e3) * 1e6 +\n\t nanos -\n\t adjustedSystemTime[1];\n\n\t if (Array.isArray(prev)) {\n\t if (prev[1] > 1e9) {\n\t throw new TypeError(\n\t \"Number of nanoseconds can't exceed a billion\",\n\t );\n\t }\n\n\t const oldSecs = prev[0];\n\t let nanoDiff = remainderInNanos - prev[1];\n\t let secDiff = secsSinceStart - oldSecs;\n\n\t if (nanoDiff < 0) {\n\t nanoDiff += 1e9;\n\t secDiff -= 1;\n\t }\n\n\t return [secDiff, nanoDiff];\n\t }\n\t return [secsSinceStart, remainderInNanos];\n\t }\n\n\t /**\n\t * A high resolution timestamp in milliseconds.\n\t * @typedef {number} DOMHighResTimeStamp\n\t */\n\n\t /**\n\t * performance.now()\n\t * @returns {DOMHighResTimeStamp}\n\t */\n\t function fakePerformanceNow() {\n\t const hrt = hrtime();\n\t const millis = hrt[0] * 1000 + hrt[1] / 1e6;\n\t return millis;\n\t }\n\n\t if (isPresent.hrtimeBigint) {\n\t hrtime.bigint = function () {\n\t const parts = hrtime();\n\t return BigInt(parts[0]) * BigInt(1e9) + BigInt(parts[1]); // eslint-disable-line\n\t };\n\t }\n\n\t if (isPresent.Intl) {\n\t clock.Intl = createIntl();\n\t clock.Intl.clock = clock;\n\t }\n\n\t clock.requestIdleCallback = function requestIdleCallback(\n\t func,\n\t timeout,\n\t ) {\n\t let timeToNextIdlePeriod = 0;\n\n\t if (clock.countTimers() > 0) {\n\t timeToNextIdlePeriod = 50; // const for now\n\t }\n\n\t const result = addTimer(clock, {\n\t func: func,\n\t args: Array.prototype.slice.call(arguments, 2),\n\t delay:\n\t typeof timeout === \"undefined\"\n\t ? timeToNextIdlePeriod\n\t : Math.min(timeout, timeToNextIdlePeriod),\n\t idleCallback: true,\n\t });\n\n\t return Number(result);\n\t };\n\n\t clock.cancelIdleCallback = function cancelIdleCallback(timerId) {\n\t return clearTimer(clock, timerId, \"IdleCallback\");\n\t };\n\n\t clock.setTimeout = function setTimeout(func, timeout) {\n\t return addTimer(clock, {\n\t func: func,\n\t args: Array.prototype.slice.call(arguments, 2),\n\t delay: timeout,\n\t });\n\t };\n\t if (typeof _global.Promise !== \"undefined\" && utilPromisify) {\n\t clock.setTimeout[utilPromisify.custom] =\n\t function promisifiedSetTimeout(timeout, arg) {\n\t return new _global.Promise(function setTimeoutExecutor(\n\t resolve,\n\t ) {\n\t addTimer(clock, {\n\t func: resolve,\n\t args: [arg],\n\t delay: timeout,\n\t });\n\t });\n\t };\n\t }\n\n\t clock.clearTimeout = function clearTimeout(timerId) {\n\t return clearTimer(clock, timerId, \"Timeout\");\n\t };\n\n\t clock.nextTick = function nextTick(func) {\n\t return enqueueJob(clock, {\n\t func: func,\n\t args: Array.prototype.slice.call(arguments, 1),\n\t error: isNearInfiniteLimit ? new Error() : null,\n\t });\n\t };\n\n\t clock.queueMicrotask = function queueMicrotask(func) {\n\t return clock.nextTick(func); // explicitly drop additional arguments\n\t };\n\n\t clock.setInterval = function setInterval(func, timeout) {\n\t // eslint-disable-next-line no-param-reassign\n\t timeout = parseInt(timeout, 10);\n\t return addTimer(clock, {\n\t func: func,\n\t args: Array.prototype.slice.call(arguments, 2),\n\t delay: timeout,\n\t interval: timeout,\n\t });\n\t };\n\n\t clock.clearInterval = function clearInterval(timerId) {\n\t return clearTimer(clock, timerId, \"Interval\");\n\t };\n\n\t if (isPresent.setImmediate) {\n\t clock.setImmediate = function setImmediate(func) {\n\t return addTimer(clock, {\n\t func: func,\n\t args: Array.prototype.slice.call(arguments, 1),\n\t immediate: true,\n\t });\n\t };\n\n\t if (typeof _global.Promise !== \"undefined\" && utilPromisify) {\n\t clock.setImmediate[utilPromisify.custom] =\n\t function promisifiedSetImmediate(arg) {\n\t return new _global.Promise(\n\t function setImmediateExecutor(resolve) {\n\t addTimer(clock, {\n\t func: resolve,\n\t args: [arg],\n\t immediate: true,\n\t });\n\t },\n\t );\n\t };\n\t }\n\n\t clock.clearImmediate = function clearImmediate(timerId) {\n\t return clearTimer(clock, timerId, \"Immediate\");\n\t };\n\t }\n\n\t clock.countTimers = function countTimers() {\n\t return (\n\t Object.keys(clock.timers || {}).length +\n\t (clock.jobs || []).length\n\t );\n\t };\n\n\t clock.requestAnimationFrame = function requestAnimationFrame(func) {\n\t const result = addTimer(clock, {\n\t func: func,\n\t delay: getTimeToNextFrame(),\n\t get args() {\n\t return [fakePerformanceNow()];\n\t },\n\t animation: true,\n\t });\n\n\t return Number(result);\n\t };\n\n\t clock.cancelAnimationFrame = function cancelAnimationFrame(timerId) {\n\t return clearTimer(clock, timerId, \"AnimationFrame\");\n\t };\n\n\t clock.runMicrotasks = function runMicrotasks() {\n\t runJobs(clock);\n\t };\n\n\t /**\n\t * @param {number|string} tickValue milliseconds or a string parseable by parseTime\n\t * @param {boolean} isAsync\n\t * @param {Function} resolve\n\t * @param {Function} reject\n\t * @returns {number|undefined} will return the new `now` value or nothing for async\n\t */\n\t function doTick(tickValue, isAsync, resolve, reject) {\n\t const msFloat =\n\t typeof tickValue === \"number\"\n\t ? tickValue\n\t : parseTime(tickValue);\n\t const ms = Math.floor(msFloat);\n\t const remainder = nanoRemainder(msFloat);\n\t let nanosTotal = nanos + remainder;\n\t let tickTo = clock.now + ms;\n\n\t if (msFloat < 0) {\n\t throw new TypeError(\"Negative ticks are not supported\");\n\t }\n\n\t // adjust for positive overflow\n\t if (nanosTotal >= 1e6) {\n\t tickTo += 1;\n\t nanosTotal -= 1e6;\n\t }\n\n\t nanos = nanosTotal;\n\t let tickFrom = clock.now;\n\t let previous = clock.now;\n\t // ESLint fails to detect this correctly\n\t /* eslint-disable prefer-const */\n\t let timer,\n\t firstException,\n\t oldNow,\n\t nextPromiseTick,\n\t compensationCheck,\n\t postTimerCall;\n\t /* eslint-enable prefer-const */\n\n\t clock.duringTick = true;\n\n\t // perform microtasks\n\t oldNow = clock.now;\n\t runJobs(clock);\n\t if (oldNow !== clock.now) {\n\t // compensate for any setSystemTime() call during microtask callback\n\t tickFrom += clock.now - oldNow;\n\t tickTo += clock.now - oldNow;\n\t }\n\n\t //eslint-disable-next-line jsdoc/require-jsdoc\n\t function doTickInner() {\n\t // perform each timer in the requested range\n\t timer = firstTimerInRange(clock, tickFrom, tickTo);\n\t // eslint-disable-next-line no-unmodified-loop-condition\n\t while (timer && tickFrom <= tickTo) {\n\t if (clock.timers[timer.id]) {\n\t tickFrom = timer.callAt;\n\t clock.now = timer.callAt;\n\t oldNow = clock.now;\n\t try {\n\t runJobs(clock);\n\t callTimer(clock, timer);\n\t } catch (e) {\n\t firstException = firstException || e;\n\t }\n\n\t if (isAsync) {\n\t // finish up after native setImmediate callback to allow\n\t // all native es6 promises to process their callbacks after\n\t // each timer fires.\n\t originalSetTimeout(nextPromiseTick);\n\t return;\n\t }\n\n\t compensationCheck();\n\t }\n\n\t postTimerCall();\n\t }\n\n\t // perform process.nextTick()s again\n\t oldNow = clock.now;\n\t runJobs(clock);\n\t if (oldNow !== clock.now) {\n\t // compensate for any setSystemTime() call during process.nextTick() callback\n\t tickFrom += clock.now - oldNow;\n\t tickTo += clock.now - oldNow;\n\t }\n\t clock.duringTick = false;\n\n\t // corner case: during runJobs new timers were scheduled which could be in the range [clock.now, tickTo]\n\t timer = firstTimerInRange(clock, tickFrom, tickTo);\n\t if (timer) {\n\t try {\n\t clock.tick(tickTo - clock.now); // do it all again - for the remainder of the requested range\n\t } catch (e) {\n\t firstException = firstException || e;\n\t }\n\t } else {\n\t // no timers remaining in the requested range: move the clock all the way to the end\n\t clock.now = tickTo;\n\n\t // update nanos\n\t nanos = nanosTotal;\n\t }\n\t if (firstException) {\n\t throw firstException;\n\t }\n\n\t if (isAsync) {\n\t resolve(clock.now);\n\t } else {\n\t return clock.now;\n\t }\n\t }\n\n\t nextPromiseTick =\n\t isAsync &&\n\t function () {\n\t try {\n\t compensationCheck();\n\t postTimerCall();\n\t doTickInner();\n\t } catch (e) {\n\t reject(e);\n\t }\n\t };\n\n\t compensationCheck = function () {\n\t // compensate for any setSystemTime() call during timer callback\n\t if (oldNow !== clock.now) {\n\t tickFrom += clock.now - oldNow;\n\t tickTo += clock.now - oldNow;\n\t previous += clock.now - oldNow;\n\t }\n\t };\n\n\t postTimerCall = function () {\n\t timer = firstTimerInRange(clock, previous, tickTo);\n\t previous = tickFrom;\n\t };\n\n\t return doTickInner();\n\t }\n\n\t /**\n\t * @param {string|number} tickValue number of milliseconds or a human-readable value like \"01:11:15\"\n\t * @returns {number} will return the new `now` value\n\t */\n\t clock.tick = function tick(tickValue) {\n\t return doTick(tickValue, false);\n\t };\n\n\t if (typeof _global.Promise !== \"undefined\") {\n\t /**\n\t * @param {string|number} tickValue number of milliseconds or a human-readable value like \"01:11:15\"\n\t * @returns {Promise}\n\t */\n\t clock.tickAsync = function tickAsync(tickValue) {\n\t return new _global.Promise(function (resolve, reject) {\n\t originalSetTimeout(function () {\n\t try {\n\t doTick(tickValue, true, resolve, reject);\n\t } catch (e) {\n\t reject(e);\n\t }\n\t });\n\t });\n\t };\n\t }\n\n\t clock.next = function next() {\n\t runJobs(clock);\n\t const timer = firstTimer(clock);\n\t if (!timer) {\n\t return clock.now;\n\t }\n\n\t clock.duringTick = true;\n\t try {\n\t clock.now = timer.callAt;\n\t callTimer(clock, timer);\n\t runJobs(clock);\n\t return clock.now;\n\t } finally {\n\t clock.duringTick = false;\n\t }\n\t };\n\n\t if (typeof _global.Promise !== \"undefined\") {\n\t clock.nextAsync = function nextAsync() {\n\t return new _global.Promise(function (resolve, reject) {\n\t originalSetTimeout(function () {\n\t try {\n\t const timer = firstTimer(clock);\n\t if (!timer) {\n\t resolve(clock.now);\n\t return;\n\t }\n\n\t let err;\n\t clock.duringTick = true;\n\t clock.now = timer.callAt;\n\t try {\n\t callTimer(clock, timer);\n\t } catch (e) {\n\t err = e;\n\t }\n\t clock.duringTick = false;\n\n\t originalSetTimeout(function () {\n\t if (err) {\n\t reject(err);\n\t } else {\n\t resolve(clock.now);\n\t }\n\t });\n\t } catch (e) {\n\t reject(e);\n\t }\n\t });\n\t });\n\t };\n\t }\n\n\t clock.runAll = function runAll() {\n\t let numTimers, i;\n\t runJobs(clock);\n\t for (i = 0; i < clock.loopLimit; i++) {\n\t if (!clock.timers) {\n\t resetIsNearInfiniteLimit();\n\t return clock.now;\n\t }\n\n\t numTimers = Object.keys(clock.timers).length;\n\t if (numTimers === 0) {\n\t resetIsNearInfiniteLimit();\n\t return clock.now;\n\t }\n\n\t clock.next();\n\t checkIsNearInfiniteLimit(clock, i);\n\t }\n\n\t const excessJob = firstTimer(clock);\n\t throw getInfiniteLoopError(clock, excessJob);\n\t };\n\n\t clock.runToFrame = function runToFrame() {\n\t return clock.tick(getTimeToNextFrame());\n\t };\n\n\t if (typeof _global.Promise !== \"undefined\") {\n\t clock.runAllAsync = function runAllAsync() {\n\t return new _global.Promise(function (resolve, reject) {\n\t let i = 0;\n\t /**\n\t *\n\t */\n\t function doRun() {\n\t originalSetTimeout(function () {\n\t try {\n\t runJobs(clock);\n\n\t let numTimers;\n\t if (i < clock.loopLimit) {\n\t if (!clock.timers) {\n\t resetIsNearInfiniteLimit();\n\t resolve(clock.now);\n\t return;\n\t }\n\n\t numTimers = Object.keys(\n\t clock.timers,\n\t ).length;\n\t if (numTimers === 0) {\n\t resetIsNearInfiniteLimit();\n\t resolve(clock.now);\n\t return;\n\t }\n\n\t clock.next();\n\n\t i++;\n\n\t doRun();\n\t checkIsNearInfiniteLimit(clock, i);\n\t return;\n\t }\n\n\t const excessJob = firstTimer(clock);\n\t reject(getInfiniteLoopError(clock, excessJob));\n\t } catch (e) {\n\t reject(e);\n\t }\n\t });\n\t }\n\t doRun();\n\t });\n\t };\n\t }\n\n\t clock.runToLast = function runToLast() {\n\t const timer = lastTimer(clock);\n\t if (!timer) {\n\t runJobs(clock);\n\t return clock.now;\n\t }\n\n\t return clock.tick(timer.callAt - clock.now);\n\t };\n\n\t if (typeof _global.Promise !== \"undefined\") {\n\t clock.runToLastAsync = function runToLastAsync() {\n\t return new _global.Promise(function (resolve, reject) {\n\t originalSetTimeout(function () {\n\t try {\n\t const timer = lastTimer(clock);\n\t if (!timer) {\n\t runJobs(clock);\n\t resolve(clock.now);\n\t }\n\n\t resolve(clock.tickAsync(timer.callAt - clock.now));\n\t } catch (e) {\n\t reject(e);\n\t }\n\t });\n\t });\n\t };\n\t }\n\n\t clock.reset = function reset() {\n\t nanos = 0;\n\t clock.timers = {};\n\t clock.jobs = [];\n\t clock.now = start;\n\t };\n\n\t clock.setSystemTime = function setSystemTime(systemTime) {\n\t // determine time difference\n\t const newNow = getEpoch(systemTime);\n\t const difference = newNow - clock.now;\n\t let id, timer;\n\n\t adjustedSystemTime[0] = adjustedSystemTime[0] + difference;\n\t adjustedSystemTime[1] = adjustedSystemTime[1] + nanos;\n\t // update 'system clock'\n\t clock.now = newNow;\n\t nanos = 0;\n\n\t // update timers and intervals to keep them stable\n\t for (id in clock.timers) {\n\t if (clock.timers.hasOwnProperty(id)) {\n\t timer = clock.timers[id];\n\t timer.createdAt += difference;\n\t timer.callAt += difference;\n\t }\n\t }\n\t };\n\n\t /**\n\t * @param {string|number} tickValue number of milliseconds or a human-readable value like \"01:11:15\"\n\t * @returns {number} will return the new `now` value\n\t */\n\t clock.jump = function jump(tickValue) {\n\t const msFloat =\n\t typeof tickValue === \"number\"\n\t ? tickValue\n\t : parseTime(tickValue);\n\t const ms = Math.floor(msFloat);\n\n\t for (const timer of Object.values(clock.timers)) {\n\t if (clock.now + ms > timer.callAt) {\n\t timer.callAt = clock.now + ms;\n\t }\n\t }\n\t clock.tick(ms);\n\t };\n\n\t if (isPresent.performance) {\n\t clock.performance = Object.create(null);\n\t clock.performance.now = fakePerformanceNow;\n\t }\n\n\t if (isPresent.hrtime) {\n\t clock.hrtime = hrtime;\n\t }\n\n\t return clock;\n\t }\n\n\t /* eslint-disable complexity */\n\n\t /**\n\t * @param {Config=} [config] Optional config\n\t * @returns {Clock}\n\t */\n\t function install(config) {\n\t if (\n\t arguments.length > 1 ||\n\t config instanceof Date ||\n\t Array.isArray(config) ||\n\t typeof config === \"number\"\n\t ) {\n\t throw new TypeError(\n\t `FakeTimers.install called with ${String(\n\t config,\n\t )} install requires an object parameter`,\n\t );\n\t }\n\n\t if (_global.Date.isFake === true) {\n\t // Timers are already faked; this is a problem.\n\t // Make the user reset timers before continuing.\n\t throw new TypeError(\n\t \"Can't install fake timers twice on the same global object.\",\n\t );\n\t }\n\n\t // eslint-disable-next-line no-param-reassign\n\t config = typeof config !== \"undefined\" ? config : {};\n\t config.shouldAdvanceTime = config.shouldAdvanceTime || false;\n\t config.advanceTimeDelta = config.advanceTimeDelta || 20;\n\t config.shouldClearNativeTimers =\n\t config.shouldClearNativeTimers || false;\n\n\t if (config.target) {\n\t throw new TypeError(\n\t \"config.target is no longer supported. Use `withGlobal(target)` instead.\",\n\t );\n\t }\n\n\t /**\n\t * @param {string} timer/object the name of the thing that is not present\n\t * @param timer\n\t */\n\t function handleMissingTimer(timer) {\n\t if (config.ignoreMissingTimers) {\n\t return;\n\t }\n\n\t throw new ReferenceError(\n\t `non-existent timers and/or objects cannot be faked: '${timer}'`,\n\t );\n\t }\n\n\t let i, l;\n\t const clock = createClock(config.now, config.loopLimit);\n\t clock.shouldClearNativeTimers = config.shouldClearNativeTimers;\n\n\t clock.uninstall = function () {\n\t return uninstall(clock, config);\n\t };\n\n\t clock.abortListenerMap = new Map();\n\n\t clock.methods = config.toFake || [];\n\n\t if (clock.methods.length === 0) {\n\t clock.methods = Object.keys(timers);\n\t }\n\n\t if (config.shouldAdvanceTime === true) {\n\t const intervalTick = doIntervalTick.bind(\n\t null,\n\t clock,\n\t config.advanceTimeDelta,\n\t );\n\t const intervalId = _global.setInterval(\n\t intervalTick,\n\t config.advanceTimeDelta,\n\t );\n\t clock.attachedInterval = intervalId;\n\t }\n\n\t if (clock.methods.includes(\"performance\")) {\n\t const proto = (() => {\n\t if (hasPerformanceConstructorPrototype) {\n\t return _global.performance.constructor.prototype;\n\t }\n\t if (hasPerformancePrototype) {\n\t return _global.Performance.prototype;\n\t }\n\t })();\n\t if (proto) {\n\t Object.getOwnPropertyNames(proto).forEach(function (name) {\n\t if (name !== \"now\") {\n\t clock.performance[name] =\n\t name.indexOf(\"getEntries\") === 0\n\t ? NOOP_ARRAY\n\t : NOOP;\n\t }\n\t });\n\t // ensure `mark` returns a value that is valid\n\t clock.performance.mark = (name) =>\n\t new FakePerformanceEntry(name, \"mark\", 0, 0);\n\t clock.performance.measure = (name) =>\n\t new FakePerformanceEntry(name, \"measure\", 0, 100);\n\t // `timeOrigin` should return the time of when the Window session started\n\t // (or the Worker was installed)\n\t clock.performance.timeOrigin = getEpoch(config.now);\n\t } else if ((config.toFake || []).includes(\"performance\")) {\n\t return handleMissingTimer(\"performance\");\n\t }\n\t }\n\t if (_global === globalObject && timersModule) {\n\t clock.timersModuleMethods = [];\n\t }\n\t if (_global === globalObject && timersPromisesModule) {\n\t clock.timersPromisesModuleMethods = [];\n\t }\n\t for (i = 0, l = clock.methods.length; i < l; i++) {\n\t const nameOfMethodToReplace = clock.methods[i];\n\n\t if (!isPresent[nameOfMethodToReplace]) {\n\t handleMissingTimer(nameOfMethodToReplace);\n\t // eslint-disable-next-line\n\t continue;\n\t }\n\n\t if (nameOfMethodToReplace === \"hrtime\") {\n\t if (\n\t _global.process &&\n\t typeof _global.process.hrtime === \"function\"\n\t ) {\n\t hijackMethod(_global.process, nameOfMethodToReplace, clock);\n\t }\n\t } else if (nameOfMethodToReplace === \"nextTick\") {\n\t if (\n\t _global.process &&\n\t typeof _global.process.nextTick === \"function\"\n\t ) {\n\t hijackMethod(_global.process, nameOfMethodToReplace, clock);\n\t }\n\t } else {\n\t hijackMethod(_global, nameOfMethodToReplace, clock);\n\t }\n\t if (\n\t clock.timersModuleMethods !== undefined &&\n\t timersModule[nameOfMethodToReplace]\n\t ) {\n\t const original = timersModule[nameOfMethodToReplace];\n\t clock.timersModuleMethods.push({\n\t methodName: nameOfMethodToReplace,\n\t original: original,\n\t });\n\t timersModule[nameOfMethodToReplace] =\n\t _global[nameOfMethodToReplace];\n\t }\n\t if (clock.timersPromisesModuleMethods !== undefined) {\n\t if (nameOfMethodToReplace === \"setTimeout\") {\n\t clock.timersPromisesModuleMethods.push({\n\t methodName: \"setTimeout\",\n\t original: timersPromisesModule.setTimeout,\n\t });\n\n\t timersPromisesModule.setTimeout = (\n\t delay,\n\t value,\n\t options = {},\n\t ) =>\n\t new Promise((resolve, reject) => {\n\t const abort = () => {\n\t options.signal.removeEventListener(\n\t \"abort\",\n\t abort,\n\t );\n\t clock.abortListenerMap.delete(abort);\n\n\t // This is safe, there is no code path that leads to this function\n\t // being invoked before handle has been assigned.\n\t // eslint-disable-next-line no-use-before-define\n\t clock.clearTimeout(handle);\n\t reject(options.signal.reason);\n\t };\n\n\t const handle = clock.setTimeout(() => {\n\t if (options.signal) {\n\t options.signal.removeEventListener(\n\t \"abort\",\n\t abort,\n\t );\n\t clock.abortListenerMap.delete(abort);\n\t }\n\n\t resolve(value);\n\t }, delay);\n\n\t if (options.signal) {\n\t if (options.signal.aborted) {\n\t abort();\n\t } else {\n\t options.signal.addEventListener(\n\t \"abort\",\n\t abort,\n\t );\n\t clock.abortListenerMap.set(\n\t abort,\n\t options.signal,\n\t );\n\t }\n\t }\n\t });\n\t } else if (nameOfMethodToReplace === \"setImmediate\") {\n\t clock.timersPromisesModuleMethods.push({\n\t methodName: \"setImmediate\",\n\t original: timersPromisesModule.setImmediate,\n\t });\n\n\t timersPromisesModule.setImmediate = (value, options = {}) =>\n\t new Promise((resolve, reject) => {\n\t const abort = () => {\n\t options.signal.removeEventListener(\n\t \"abort\",\n\t abort,\n\t );\n\t clock.abortListenerMap.delete(abort);\n\n\t // This is safe, there is no code path that leads to this function\n\t // being invoked before handle has been assigned.\n\t // eslint-disable-next-line no-use-before-define\n\t clock.clearImmediate(handle);\n\t reject(options.signal.reason);\n\t };\n\n\t const handle = clock.setImmediate(() => {\n\t if (options.signal) {\n\t options.signal.removeEventListener(\n\t \"abort\",\n\t abort,\n\t );\n\t clock.abortListenerMap.delete(abort);\n\t }\n\n\t resolve(value);\n\t });\n\n\t if (options.signal) {\n\t if (options.signal.aborted) {\n\t abort();\n\t } else {\n\t options.signal.addEventListener(\n\t \"abort\",\n\t abort,\n\t );\n\t clock.abortListenerMap.set(\n\t abort,\n\t options.signal,\n\t );\n\t }\n\t }\n\t });\n\t } else if (nameOfMethodToReplace === \"setInterval\") {\n\t clock.timersPromisesModuleMethods.push({\n\t methodName: \"setInterval\",\n\t original: timersPromisesModule.setInterval,\n\t });\n\n\t timersPromisesModule.setInterval = (\n\t delay,\n\t value,\n\t options = {},\n\t ) => ({\n\t [Symbol.asyncIterator]: () => {\n\t const createResolvable = () => {\n\t let resolve, reject;\n\t const promise = new Promise((res, rej) => {\n\t resolve = res;\n\t reject = rej;\n\t });\n\t promise.resolve = resolve;\n\t promise.reject = reject;\n\t return promise;\n\t };\n\n\t let done = false;\n\t let hasThrown = false;\n\t let returnCall;\n\t let nextAvailable = 0;\n\t const nextQueue = [];\n\n\t const handle = clock.setInterval(() => {\n\t if (nextQueue.length > 0) {\n\t nextQueue.shift().resolve();\n\t } else {\n\t nextAvailable++;\n\t }\n\t }, delay);\n\n\t const abort = () => {\n\t options.signal.removeEventListener(\n\t \"abort\",\n\t abort,\n\t );\n\t clock.abortListenerMap.delete(abort);\n\n\t clock.clearInterval(handle);\n\t done = true;\n\t for (const resolvable of nextQueue) {\n\t resolvable.resolve();\n\t }\n\t };\n\n\t if (options.signal) {\n\t if (options.signal.aborted) {\n\t done = true;\n\t } else {\n\t options.signal.addEventListener(\n\t \"abort\",\n\t abort,\n\t );\n\t clock.abortListenerMap.set(\n\t abort,\n\t options.signal,\n\t );\n\t }\n\t }\n\n\t return {\n\t next: async () => {\n\t if (options.signal?.aborted && !hasThrown) {\n\t hasThrown = true;\n\t throw options.signal.reason;\n\t }\n\n\t if (done) {\n\t return { done: true, value: undefined };\n\t }\n\n\t if (nextAvailable > 0) {\n\t nextAvailable--;\n\t return { done: false, value: value };\n\t }\n\n\t const resolvable = createResolvable();\n\t nextQueue.push(resolvable);\n\n\t await resolvable;\n\n\t if (returnCall && nextQueue.length === 0) {\n\t returnCall.resolve();\n\t }\n\n\t if (options.signal?.aborted && !hasThrown) {\n\t hasThrown = true;\n\t throw options.signal.reason;\n\t }\n\n\t if (done) {\n\t return { done: true, value: undefined };\n\t }\n\n\t return { done: false, value: value };\n\t },\n\t return: async () => {\n\t if (done) {\n\t return { done: true, value: undefined };\n\t }\n\n\t if (nextQueue.length > 0) {\n\t returnCall = createResolvable();\n\t await returnCall;\n\t }\n\n\t clock.clearInterval(handle);\n\t done = true;\n\n\t if (options.signal) {\n\t options.signal.removeEventListener(\n\t \"abort\",\n\t abort,\n\t );\n\t clock.abortListenerMap.delete(abort);\n\t }\n\n\t return { done: true, value: undefined };\n\t },\n\t };\n\t },\n\t });\n\t }\n\t }\n\t }\n\n\t return clock;\n\t }\n\n\t /* eslint-enable complexity */\n\n\t return {\n\t timers: timers,\n\t createClock: createClock,\n\t install: install,\n\t withGlobal: withGlobal,\n\t };\n\t}\n\n\t/**\n\t * @typedef {object} FakeTimers\n\t * @property {Timers} timers\n\t * @property {createClock} createClock\n\t * @property {Function} install\n\t * @property {withGlobal} withGlobal\n\t */\n\n\t/* eslint-enable complexity */\n\n\t/** @type {FakeTimers} */\n\tconst defaultImplementation = withGlobal(globalObject);\n\n\tfakeTimersSrc.timers = defaultImplementation.timers;\n\tfakeTimersSrc.createClock = defaultImplementation.createClock;\n\tfakeTimersSrc.install = defaultImplementation.install;\n\tfakeTimersSrc.withGlobal = withGlobal;\n\treturn fakeTimersSrc;\n}\n\nvar fakeTimersSrcExports = requireFakeTimersSrc();\n\nclass FakeTimers {\n\t_global;\n\t_clock;\n\t// | _fakingTime | _fakingDate |\n\t// +-------------+-------------+\n\t// | false | falsy | initial\n\t// | false | truthy | vi.setSystemTime called first (for mocking only Date without fake timers)\n\t// | true | falsy | vi.useFakeTimers called first\n\t// | true | truthy | unreachable\n\t_fakingTime;\n\t_fakingDate;\n\t_fakeTimers;\n\t_userConfig;\n\t_now = RealDate.now;\n\tconstructor({ global, config }) {\n\t\tthis._userConfig = config;\n\t\tthis._fakingDate = null;\n\t\tthis._fakingTime = false;\n\t\tthis._fakeTimers = fakeTimersSrcExports.withGlobal(global);\n\t\tthis._global = global;\n\t}\n\tclearAllTimers() {\n\t\tif (this._fakingTime) this._clock.reset();\n\t}\n\tdispose() {\n\t\tthis.useRealTimers();\n\t}\n\trunAllTimers() {\n\t\tif (this._checkFakeTimers()) this._clock.runAll();\n\t}\n\tasync runAllTimersAsync() {\n\t\tif (this._checkFakeTimers()) await this._clock.runAllAsync();\n\t}\n\trunOnlyPendingTimers() {\n\t\tif (this._checkFakeTimers()) this._clock.runToLast();\n\t}\n\tasync runOnlyPendingTimersAsync() {\n\t\tif (this._checkFakeTimers()) await this._clock.runToLastAsync();\n\t}\n\tadvanceTimersToNextTimer(steps = 1) {\n\t\tif (this._checkFakeTimers()) for (let i = steps; i > 0; i--) {\n\t\t\tthis._clock.next();\n\t\t\t// Fire all timers at this point: https://github.com/sinonjs/fake-timers/issues/250\n\t\t\tthis._clock.tick(0);\n\t\t\tif (this._clock.countTimers() === 0) break;\n\t\t}\n\t}\n\tasync advanceTimersToNextTimerAsync(steps = 1) {\n\t\tif (this._checkFakeTimers()) for (let i = steps; i > 0; i--) {\n\t\t\tawait this._clock.nextAsync();\n\t\t\t// Fire all timers at this point: https://github.com/sinonjs/fake-timers/issues/250\n\t\t\tthis._clock.tick(0);\n\t\t\tif (this._clock.countTimers() === 0) break;\n\t\t}\n\t}\n\tadvanceTimersByTime(msToRun) {\n\t\tif (this._checkFakeTimers()) this._clock.tick(msToRun);\n\t}\n\tasync advanceTimersByTimeAsync(msToRun) {\n\t\tif (this._checkFakeTimers()) await this._clock.tickAsync(msToRun);\n\t}\n\tadvanceTimersToNextFrame() {\n\t\tif (this._checkFakeTimers()) this._clock.runToFrame();\n\t}\n\trunAllTicks() {\n\t\tif (this._checkFakeTimers())\n // @ts-expect-error method not exposed\n\t\tthis._clock.runMicrotasks();\n\t}\n\tuseRealTimers() {\n\t\tif (this._fakingDate) {\n\t\t\tresetDate();\n\t\t\tthis._fakingDate = null;\n\t\t}\n\t\tif (this._fakingTime) {\n\t\t\tthis._clock.uninstall();\n\t\t\tthis._fakingTime = false;\n\t\t}\n\t}\n\tuseFakeTimers() {\n\t\tif (this._fakingDate) throw new Error(\"\\\"setSystemTime\\\" was called already and date was mocked. Reset timers using `vi.useRealTimers()` if you want to use fake timers again.\");\n\t\tif (!this._fakingTime) {\n\t\t\tconst toFake = Object.keys(this._fakeTimers.timers).filter((timer) => timer !== \"nextTick\" && timer !== \"queueMicrotask\");\n\t\t\tif (this._userConfig?.toFake?.includes(\"nextTick\") && isChildProcess()) throw new Error(\"process.nextTick cannot be mocked inside child_process\");\n\t\t\tthis._clock = this._fakeTimers.install({\n\t\t\t\tnow: Date.now(),\n\t\t\t\t...this._userConfig,\n\t\t\t\ttoFake: this._userConfig?.toFake || toFake,\n\t\t\t\tignoreMissingTimers: true\n\t\t\t});\n\t\t\tthis._fakingTime = true;\n\t\t}\n\t}\n\treset() {\n\t\tif (this._checkFakeTimers()) {\n\t\t\tconst { now } = this._clock;\n\t\t\tthis._clock.reset();\n\t\t\tthis._clock.setSystemTime(now);\n\t\t}\n\t}\n\tsetSystemTime(now) {\n\t\tconst date = typeof now === \"undefined\" || now instanceof Date ? now : new Date(now);\n\t\tif (this._fakingTime) this._clock.setSystemTime(date);\n\t\telse {\n\t\t\tthis._fakingDate = date ?? new Date(this.getRealSystemTime());\n\t\t\tmockDate(this._fakingDate);\n\t\t}\n\t}\n\tgetMockedSystemTime() {\n\t\treturn this._fakingTime ? new Date(this._clock.now) : this._fakingDate;\n\t}\n\tgetRealSystemTime() {\n\t\treturn this._now();\n\t}\n\tgetTimerCount() {\n\t\tif (this._checkFakeTimers()) return this._clock.countTimers();\n\t\treturn 0;\n\t}\n\tconfigure(config) {\n\t\tthis._userConfig = config;\n\t}\n\tisFakeTimers() {\n\t\treturn this._fakingTime;\n\t}\n\t_checkFakeTimers() {\n\t\tif (!this._fakingTime) throw new Error(\"Timers are not mocked. Try calling \\\"vi.useFakeTimers()\\\" first.\");\n\t\treturn this._fakingTime;\n\t}\n}\n\nfunction copyStackTrace(target, source) {\n\tif (source.stack !== void 0) target.stack = source.stack.replace(source.message, target.message);\n\treturn target;\n}\nfunction waitFor(callback, options = {}) {\n\tconst { setTimeout, setInterval, clearTimeout, clearInterval } = getSafeTimers();\n\tconst { interval = 50, timeout = 1e3 } = typeof options === \"number\" ? { timeout: options } : options;\n\tconst STACK_TRACE_ERROR = new Error(\"STACK_TRACE_ERROR\");\n\treturn new Promise((resolve, reject) => {\n\t\tlet lastError;\n\t\tlet promiseStatus = \"idle\";\n\t\tlet timeoutId;\n\t\tlet intervalId;\n\t\tconst onResolve = (result) => {\n\t\t\tif (timeoutId) clearTimeout(timeoutId);\n\t\t\tif (intervalId) clearInterval(intervalId);\n\t\t\tresolve(result);\n\t\t};\n\t\tconst handleTimeout = () => {\n\t\t\tif (intervalId) clearInterval(intervalId);\n\t\t\tlet error = lastError;\n\t\t\tif (!error) error = copyStackTrace(new Error(\"Timed out in waitFor!\"), STACK_TRACE_ERROR);\n\t\t\treject(error);\n\t\t};\n\t\tconst checkCallback = () => {\n\t\t\tif (vi.isFakeTimers()) vi.advanceTimersByTime(interval);\n\t\t\tif (promiseStatus === \"pending\") return;\n\t\t\ttry {\n\t\t\t\tconst result = callback();\n\t\t\t\tif (result !== null && typeof result === \"object\" && typeof result.then === \"function\") {\n\t\t\t\t\tconst thenable = result;\n\t\t\t\t\tpromiseStatus = \"pending\";\n\t\t\t\t\tthenable.then((resolvedValue) => {\n\t\t\t\t\t\tpromiseStatus = \"resolved\";\n\t\t\t\t\t\tonResolve(resolvedValue);\n\t\t\t\t\t}, (rejectedValue) => {\n\t\t\t\t\t\tpromiseStatus = \"rejected\";\n\t\t\t\t\t\tlastError = rejectedValue;\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\tonResolve(result);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\tlastError = error;\n\t\t\t}\n\t\t};\n\t\tif (checkCallback() === true) return;\n\t\ttimeoutId = setTimeout(handleTimeout, timeout);\n\t\tintervalId = setInterval(checkCallback, interval);\n\t});\n}\nfunction waitUntil(callback, options = {}) {\n\tconst { setTimeout, setInterval, clearTimeout, clearInterval } = getSafeTimers();\n\tconst { interval = 50, timeout = 1e3 } = typeof options === \"number\" ? { timeout: options } : options;\n\tconst STACK_TRACE_ERROR = new Error(\"STACK_TRACE_ERROR\");\n\treturn new Promise((resolve, reject) => {\n\t\tlet promiseStatus = \"idle\";\n\t\tlet timeoutId;\n\t\tlet intervalId;\n\t\tconst onReject = (error) => {\n\t\t\tif (intervalId) clearInterval(intervalId);\n\t\t\tif (!error) error = copyStackTrace(new Error(\"Timed out in waitUntil!\"), STACK_TRACE_ERROR);\n\t\t\treject(error);\n\t\t};\n\t\tconst onResolve = (result) => {\n\t\t\tif (!result) return;\n\t\t\tif (timeoutId) clearTimeout(timeoutId);\n\t\t\tif (intervalId) clearInterval(intervalId);\n\t\t\tresolve(result);\n\t\t\treturn true;\n\t\t};\n\t\tconst checkCallback = () => {\n\t\t\tif (vi.isFakeTimers()) vi.advanceTimersByTime(interval);\n\t\t\tif (promiseStatus === \"pending\") return;\n\t\t\ttry {\n\t\t\t\tconst result = callback();\n\t\t\t\tif (result !== null && typeof result === \"object\" && typeof result.then === \"function\") {\n\t\t\t\t\tconst thenable = result;\n\t\t\t\t\tpromiseStatus = \"pending\";\n\t\t\t\t\tthenable.then((resolvedValue) => {\n\t\t\t\t\t\tpromiseStatus = \"resolved\";\n\t\t\t\t\t\tonResolve(resolvedValue);\n\t\t\t\t\t}, (rejectedValue) => {\n\t\t\t\t\t\tpromiseStatus = \"rejected\";\n\t\t\t\t\t\tonReject(rejectedValue);\n\t\t\t\t\t});\n\t\t\t\t} else return onResolve(result);\n\t\t\t} catch (error) {\n\t\t\t\tonReject(error);\n\t\t\t}\n\t\t};\n\t\tif (checkCallback() === true) return;\n\t\ttimeoutId = setTimeout(onReject, timeout);\n\t\tintervalId = setInterval(checkCallback, interval);\n\t});\n}\n\nfunction createVitest() {\n\tlet _config = null;\n\tconst workerState = getWorkerState();\n\tlet _timers;\n\tconst timers = () => _timers ||= new FakeTimers({\n\t\tglobal: globalThis,\n\t\tconfig: workerState.config.fakeTimers\n\t});\n\tconst _stubsGlobal = /* @__PURE__ */ new Map();\n\tconst _stubsEnv = /* @__PURE__ */ new Map();\n\tconst _envBooleans = [\n\t\t\"PROD\",\n\t\t\"DEV\",\n\t\t\"SSR\"\n\t];\n\tconst utils = {\n\t\tuseFakeTimers(config) {\n\t\t\tif (isChildProcess()) {\n\t\t\t\tif (config?.toFake?.includes(\"nextTick\") || workerState.config?.fakeTimers?.toFake?.includes(\"nextTick\")) throw new Error(\"vi.useFakeTimers({ toFake: [\\\"nextTick\\\"] }) is not supported in node:child_process. Use --pool=threads if mocking nextTick is required.\");\n\t\t\t}\n\t\t\tif (config) timers().configure({\n\t\t\t\t...workerState.config.fakeTimers,\n\t\t\t\t...config\n\t\t\t});\n\t\t\telse timers().configure(workerState.config.fakeTimers);\n\t\t\ttimers().useFakeTimers();\n\t\t\treturn utils;\n\t\t},\n\t\tisFakeTimers() {\n\t\t\treturn timers().isFakeTimers();\n\t\t},\n\t\tuseRealTimers() {\n\t\t\ttimers().useRealTimers();\n\t\t\treturn utils;\n\t\t},\n\t\trunOnlyPendingTimers() {\n\t\t\ttimers().runOnlyPendingTimers();\n\t\t\treturn utils;\n\t\t},\n\t\tasync runOnlyPendingTimersAsync() {\n\t\t\tawait timers().runOnlyPendingTimersAsync();\n\t\t\treturn utils;\n\t\t},\n\t\trunAllTimers() {\n\t\t\ttimers().runAllTimers();\n\t\t\treturn utils;\n\t\t},\n\t\tasync runAllTimersAsync() {\n\t\t\tawait timers().runAllTimersAsync();\n\t\t\treturn utils;\n\t\t},\n\t\trunAllTicks() {\n\t\t\ttimers().runAllTicks();\n\t\t\treturn utils;\n\t\t},\n\t\tadvanceTimersByTime(ms) {\n\t\t\ttimers().advanceTimersByTime(ms);\n\t\t\treturn utils;\n\t\t},\n\t\tasync advanceTimersByTimeAsync(ms) {\n\t\t\tawait timers().advanceTimersByTimeAsync(ms);\n\t\t\treturn utils;\n\t\t},\n\t\tadvanceTimersToNextTimer() {\n\t\t\ttimers().advanceTimersToNextTimer();\n\t\t\treturn utils;\n\t\t},\n\t\tasync advanceTimersToNextTimerAsync() {\n\t\t\tawait timers().advanceTimersToNextTimerAsync();\n\t\t\treturn utils;\n\t\t},\n\t\tadvanceTimersToNextFrame() {\n\t\t\ttimers().advanceTimersToNextFrame();\n\t\t\treturn utils;\n\t\t},\n\t\tgetTimerCount() {\n\t\t\treturn timers().getTimerCount();\n\t\t},\n\t\tsetSystemTime(time) {\n\t\t\ttimers().setSystemTime(time);\n\t\t\treturn utils;\n\t\t},\n\t\tgetMockedSystemTime() {\n\t\t\treturn timers().getMockedSystemTime();\n\t\t},\n\t\tgetRealSystemTime() {\n\t\t\treturn timers().getRealSystemTime();\n\t\t},\n\t\tclearAllTimers() {\n\t\t\ttimers().clearAllTimers();\n\t\t\treturn utils;\n\t\t},\n\t\tspyOn,\n\t\tfn,\n\t\twaitFor,\n\t\twaitUntil,\n\t\thoisted(factory) {\n\t\t\tassertTypes(factory, \"\\\"vi.hoisted\\\" factory\", [\"function\"]);\n\t\t\treturn factory();\n\t\t},\n\t\tmock(path, factory) {\n\t\t\tif (typeof path !== \"string\") throw new TypeError(`vi.mock() expects a string path, but received a ${typeof path}`);\n\t\t\tconst importer = getImporter(\"mock\");\n\t\t\t_mocker().queueMock(path, importer, typeof factory === \"function\" ? () => factory(() => _mocker().importActual(path, importer, _mocker().getMockContext().callstack)) : factory);\n\t\t},\n\t\tunmock(path) {\n\t\t\tif (typeof path !== \"string\") throw new TypeError(`vi.unmock() expects a string path, but received a ${typeof path}`);\n\t\t\t_mocker().queueUnmock(path, getImporter(\"unmock\"));\n\t\t},\n\t\tdoMock(path, factory) {\n\t\t\tif (typeof path !== \"string\") throw new TypeError(`vi.doMock() expects a string path, but received a ${typeof path}`);\n\t\t\tconst importer = getImporter(\"doMock\");\n\t\t\t_mocker().queueMock(path, importer, typeof factory === \"function\" ? () => factory(() => _mocker().importActual(path, importer, _mocker().getMockContext().callstack)) : factory);\n\t\t},\n\t\tdoUnmock(path) {\n\t\t\tif (typeof path !== \"string\") throw new TypeError(`vi.doUnmock() expects a string path, but received a ${typeof path}`);\n\t\t\t_mocker().queueUnmock(path, getImporter(\"doUnmock\"));\n\t\t},\n\t\tasync importActual(path) {\n\t\t\treturn _mocker().importActual(path, getImporter(\"importActual\"), _mocker().getMockContext().callstack);\n\t\t},\n\t\tasync importMock(path) {\n\t\t\treturn _mocker().importMock(path, getImporter(\"importMock\"));\n\t\t},\n\t\tmockObject(value) {\n\t\t\treturn _mocker().mockObject({ value }).value;\n\t\t},\n\t\tmocked(item, _options = {}) {\n\t\t\treturn item;\n\t\t},\n\t\tisMockFunction(fn) {\n\t\t\treturn isMockFunction(fn);\n\t\t},\n\t\tclearAllMocks() {\n\t\t\t[...mocks].reverse().forEach((spy) => spy.mockClear());\n\t\t\treturn utils;\n\t\t},\n\t\tresetAllMocks() {\n\t\t\t[...mocks].reverse().forEach((spy) => spy.mockReset());\n\t\t\treturn utils;\n\t\t},\n\t\trestoreAllMocks() {\n\t\t\t[...mocks].reverse().forEach((spy) => spy.mockRestore());\n\t\t\treturn utils;\n\t\t},\n\t\tstubGlobal(name, value) {\n\t\t\tif (!_stubsGlobal.has(name)) _stubsGlobal.set(name, Object.getOwnPropertyDescriptor(globalThis, name));\n\t\t\tObject.defineProperty(globalThis, name, {\n\t\t\t\tvalue,\n\t\t\t\twritable: true,\n\t\t\t\tconfigurable: true,\n\t\t\t\tenumerable: true\n\t\t\t});\n\t\t\treturn utils;\n\t\t},\n\t\tstubEnv(name, value) {\n\t\t\tif (!_stubsEnv.has(name)) _stubsEnv.set(name, process.env[name]);\n\t\t\tif (_envBooleans.includes(name)) process.env[name] = value ? \"1\" : \"\";\n\t\t\telse if (value === void 0) delete process.env[name];\n\t\t\telse process.env[name] = String(value);\n\t\t\treturn utils;\n\t\t},\n\t\tunstubAllGlobals() {\n\t\t\t_stubsGlobal.forEach((original, name) => {\n\t\t\t\tif (!original) Reflect.deleteProperty(globalThis, name);\n\t\t\t\telse Object.defineProperty(globalThis, name, original);\n\t\t\t});\n\t\t\t_stubsGlobal.clear();\n\t\t\treturn utils;\n\t\t},\n\t\tunstubAllEnvs() {\n\t\t\t_stubsEnv.forEach((original, name) => {\n\t\t\t\tif (original === void 0) delete process.env[name];\n\t\t\t\telse process.env[name] = original;\n\t\t\t});\n\t\t\t_stubsEnv.clear();\n\t\t\treturn utils;\n\t\t},\n\t\tresetModules() {\n\t\t\tresetModules(workerState.moduleCache);\n\t\t\treturn utils;\n\t\t},\n\t\tasync dynamicImportSettled() {\n\t\t\treturn waitForImportsToResolve();\n\t\t},\n\t\tsetConfig(config) {\n\t\t\tif (!_config) _config = { ...workerState.config };\n\t\t\tObject.assign(workerState.config, config);\n\t\t},\n\t\tresetConfig() {\n\t\t\tif (_config) Object.assign(workerState.config, _config);\n\t\t}\n\t};\n\treturn utils;\n}\nconst vitest = createVitest();\nconst vi = vitest;\nfunction _mocker() {\n\t// @ts-expect-error injected by vite-nide\n\treturn typeof __vitest_mocker__ !== \"undefined\" ? __vitest_mocker__ : new Proxy({}, { get(_, name) {\n\t\tthrow new Error(`Vitest mocker was not initialized in this environment. vi.${String(name)}() is forbidden.`);\n\t} });\n}\nfunction getImporter(name) {\n\tconst stackTrace = createSimpleStackTrace({ stackTraceLimit: 5 });\n\tconst stackArray = stackTrace.split(\"\\n\");\n\t// if there is no message in a stack trace, use the item - 1\n\tconst importerStackIndex = stackArray.findIndex((stack) => {\n\t\treturn stack.includes(` at Object.${name}`) || stack.includes(`${name}@`);\n\t});\n\tconst stack = parseSingleStack(stackArray[importerStackIndex + 1]);\n\treturn stack?.file || \"\";\n}\n\nexport { globalExpect as a, vitest as b, createExpect as c, getSnapshotClient as g, inject as i, vi as v };\n","export { c as createExpect, a as expect, i as inject, v as vi, b as vitest } from './chunks/vi.bdSIJ99Y.js';\nexport { b as bench } from './chunks/benchmark.CYdenmiT.js';\nexport { a as assertType } from './chunks/index.CdQS2e2Q.js';\nexport { expectTypeOf } from 'expect-type';\nexport { afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';\nimport * as chai from 'chai';\nexport { chai };\nexport { assert, should } from 'chai';\nimport '@vitest/expect';\nimport '@vitest/runner/utils';\nimport './chunks/utils.XdZDrNZV.js';\nimport '@vitest/utils';\nimport './chunks/_commonjsHelpers.BFTU3MAI.js';\nimport '@vitest/snapshot';\nimport '@vitest/utils/error';\nimport '@vitest/spy';\nimport '@vitest/utils/source-map';\nimport './chunks/date.Bq6ZW5rf.js';\n"],"mappings":";;;;;;AAAA;AAAA;AAEA,QAAI;AAAJ,QAAqB;AAArB,QAAiC;AAAjC,QAAgD;AAAhD,QAA+D;AAA/D,QAA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ACA,SAAO;AACR;AACA,IAAM,SAAS,aAAa;AAC5B,IAAM,KAAK;AACX,SAAS,UAAU;AAElB,SAAO,OAAO,sBAAsB,cAAc,oBAAoB,IAAI,MAAM,CAAC,GAAG,EAAE,IAAI,GAAG,MAAM;AAClG,UAAM,IAAI,MAAM,6DAA6D,OAAO,IAAI,mBAAmB;AAAA,EAC5G,EAAE,CAAC;AACJ;AACA,SAAS,YAAY,MAAM;AAC1B,QAAM,aAAa,uBAAuB,EAAE,iBAAiB,EAAE,CAAC;AAChE,QAAM,aAAa,WAAW,MAAM,IAAI;AAExC,QAAM,qBAAqB,WAAW,UAAU,CAACO,WAAU;AAC1D,WAAOA,OAAM,SAAS,cAAc,MAAM,KAAKA,OAAM,SAAS,GAAG,OAAO;AAAA,EACzE,CAAC;AACD,QAAM,QAAQ,iBAAiB,WAAW,qBAAqB,CAAC,CAAC;AACjE,UAAO,+BAAO,SAAQ;AACvB;;;ACz6HA,yBAA6B;","names":["jsTokens","m","exports","p","fn","expectTypeOf","r","s","u","m","object","keys","config","printer","type","typeOf","f","h","p","u","a","r","Element","functionName","printFunctionName","escapeRegex","plugin","plugins","truncate","inspect","string","array","array","string","map","set","string","object","sep","inspectObject","truncate","inspectObject","type","toString","object","format","i","inspect","m","type","fn","keys","getDefaultExportFromCjs","array","getType","k","p","resolve","UrlType","r","index","p","functionName","found","foundSubsequence","isCommon","type","getDefaultExportFromCjs","diff","diffs","string","a","truncate","aIndex","bIndex","getType","_a","AsymmetricMatcher","DOMCollection","DOMElement","Immutable","ReactElement","ReactTestComponent","PLUGINS","s","map","set","hasCommonDiff","object","format","clone","fn","jsTokens","_DRIVE_LETTER_START_RE","normalizeWindowsPath","r","_IS_ABSOLUTE_RE","cwd","resolve","normalizeWindowsPath","index","isAbsolute","normalizeString","p","_IS_ABSOLUTE_RE","fn","map","runner","runner","fn","s","keys","fn","chain","test","fn","suite","name","task","test","r","context","_test","format","runner","p","fn","call","now","suite","fn","setTimeout","clearTimeout","runner","resolve","test","type","index","a","test","index","test","fn","assert","type","fn","type2","r","fn","assert","isMockFunction","fn","getDescriptor","type","state","reset","__commonJS","inspect2","isNaN2","objDisplay","test","getConstructorName","index","ansiColors","styles","truncator","colorise","normaliseOptions","truncate2","inspect3","isHighSurrogate","truncate","string","inspectList","quoteComplexKey","inspectProperty","inspectArray","array","getArrayName","inspectTypedArray","inspectDate","inspectFunction","inspectMapEntry","mapToEntries","map","inspectMap","isNaN","inspectNumber","inspectBigInt","inspectRegExp","arrayFromSet","set2","inspectSet","stringEscapeChars","escapeCharacters","hex","unicodeLength","escape","inspectString","inspectSymbol","getPromiseValue","promise_default","inspectObject","object","sep","toStringTag","inspectClass","inspectArguments","errorKeys","inspectObject2","inspectAttribute","inspectHTML","symbolsSupported","chaiInspect","nodeInspect","constructorMap","stringTagMap","baseTypesMap","inspectCustom","toString","inspect","keys","isPrimitive","_a","fn","a","isObject","assert","test2","printReceived","printExpected","matcherHint","equals","SPACE_SYMBOL","replaceTrailingSpaces","object","type","getType","a","a","hasKey","keys","IS_KEYED_SENTINEL","IS_SET_SENTINEL","IS_LIST_SENTINEL","IS_ORDERED_SENTINEL","IS_RECORD_SYMBOL","object","a","b","subset","s","expect","map","AsymmetricMatcher","functionToString","chai","_test","test","index","fn","AssertionError","addMethod","m","isMockFunction","type","pass","message","actual","expected","setTimeout","resolve","getDefaultExportFromCjs","comma","chars","intToChar","charToInt","relative","a","UrlType","url","index","type","resolve","map","s","_a","notNullish","isPrimitive","isObject","getCallLastIndex","CHROME_IE_STACK_REGEXP","SAFARI_NATIVE_CODE_REGEXP","extractLocation","parseSingleFFOrSafariStack","functionName","parseSingleV8Stack","stack","p","f","getPromiseValue","getDefaultExportFromCjs","jsTokens_1","hasRequiredJsTokens","requireJsTokens","reservedWords","h","C","r","u","naturalCompare","serialize$1","config","printer","test","plugin","DOMCollection","DOMElement","Immutable","ReactElement","ReactTestComponent","AsymmetricMatcher","PLUGINS","testName","string","serialize","pass","now","m","h","s","expect","fn","_a","test","resolve","setTimeout","clearTimeout","chaiSubset","chai","Assertion","getDefaultExportFromCjs","createAssertionMessage","recordAsyncExpect","_test","index","s","assert","global","object","call","copyPrototypeMethods","every","index","spies","fn","functionName","sort","a","set","typeDetect","type","typeOf","now","toString","timers","config","setTimeout","resolve","clearTimeout","reset","_a","isMockFunction","stack"]}
|