PageSourceSearch

https://assets.dba.dk/pkg/frontpage-layout-v2/0.0.151/test.DNmyFkvJ.js

js dba.dk collected 2026-09-24 17:09:21 UTC 266,528 bytes, 101 lines download raw bytes

vendor: 4,392 bytes, line 1
1import{t as e}from"./defineProperty.js";import{t}from"./preload-helper.js";var n={reset:[0,0],bold:[1,22,`\x1B[22m\x1B[1m`],dim:[2,22,`\x1B[22m\x1B[2m`],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]};function r(e){return String(e)}r.open=``,r.close=``;function i(){let e=typeof process<`u`?process:void 0,t=e?.env||{},n=t.FORCE_TTY!==`false`,r=e?.argv||[];return!(`NO_COLOR`in t||r.includes(`--no-color`))&&(`FORCE_COLOR`in t||r.includes(`--color`)||e?.platform===`win32`||n&&t.TERM!==`dumb`||`CI`in t)||typeof window<`u`&&!!window.chrome}function a({force:e}={}){let t=e||i(),a=(e,t,n,r)=>{let i=``,a=0;do i+=e.substring(a,r)+n,a=r+t.length,r=e.indexOf(t,a);while(~r);return i+e.substring(a)},o=(e,t,n=e)=>{let r=r=>{let i=String(r),o=i.indexOf(t,e.length);return~o?e+a(i,t,n,o)+t:e+i+t};return r.open=e,r.close=t,r},s={isColorSupported:t},c=e=>`\x1B[${e}m`;for(let e in n){let i=n[e];s[e]=t?o(c(i[0]),c(i[1]),i[2]):r}return s}var o=a();function s(e,t){return t.forEach(function(t){t&&typeof t!=`string`&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if(n!=="default"&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}function c(e,t){let n=Object.keys(e),r=t===null?n:n.sort(t);if(Object.getOwnPropertySymbols)for(let t of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,t).enumerable&&r.push(t);return r}function l(e,t,n,r,i,a,o=`: `){let s=``,c=0,l=e.next();if(!l.done){s+=t.spacingOuter;let u=n+t.indent;for(;!l.done;){if(s+=u,c++===t.maxWidth){s+=`…`;break}let n=a(l.value[0],t,u,r,i),d=a(l.value[1],t,u,r,i);s+=n+o+d,l=e.next(),l.done?t.min||(s+=`,`):s+=`,${t.spacingInner}`}s+=t.spacingOuter+n}return s}function u(e,t,n,r,i,a){let o=``,s=0,c=e.next();if(!c.done){o+=t.spacingOuter;let l=n+t.indent;for(;!c.done;){if(o+=l,s++===t.maxWidth){o+=`…`;break}o+=a(c.value,t,l,r,i),c=e.next(),c.done?t.min||(o+=`,`):o+=`,${t.spacingInner}`}o+=t.spacingOuter+n}return o}function d(e,t,n,r,i,a){let o=``;e=e instanceof ArrayBuffer?new DataView(e):e;let s=e=>e instanceof DataView,c=s(e)?e.byteLength:e.length;if(c>0){o+=t.spacingOuter;let l=n+t.indent;for(let n=0;n<c;n++){if(o+=l,n===t.maxWidth){o+=`…`;break}(s(e)||n in e)&&(o+=a(s(e)?e.getInt8(n):e[n],t,l,r,i)),n<c-1?o+=`,${t.spacingInner}`:t.min||(o+=`,`)}o+=t.spacingOuter+n}return o}function f(e,t,n,r,i,a){let o=``,s=c(e,t.compareKeys);if(s.length>0){o+=t.spacingOuter;let c=n+t.indent;for(let n=0;n<s.length;n++){let l=s[n],u=a(l,t,c,r,i),d=a(e[l],t,c,r,i);o+=`${c+u}: ${d}`,n<s.length-1?o+=`,${t.spacingInner}`:t.min||(o+=`,`)}o+=t.spacingOuter+n}return o}var p=typeof Symbol==`function`&&Symbol.for?Symbol.for(`jest.asymmetricMatcher`):1267621,m=` `,h={serialize:(e,t,n,r,i,a)=>{let o=e.toString();if(o===`ArrayContaining`||o===`ArrayNotContaining`)return++r>t.maxDepth?`[${o}]`:`${o+m}[${d(e.sample,t,n,r,i,a)}]`;if(o===`ObjectContaining`||o===`ObjectNotContaining`)return++r>t.maxDepth?`[${o}]`:`${o+m}{${f(e.sample,t,n,r,i,a)}}`;if(o===`StringMatching`||o===`StringNotMatching`||o===`StringContaining`||o===`StringNotContaining`)return o+m+a(e.sample,t,n,r,i);if(typeof e.toAsymmetricMatcher!=`function`)throw TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},test:e=>e&&e.$$typeof===p},g=` `,_=new Set([`DOMStringMap`,`NamedNodeMap`]),v=/^(?:HTML\w*Collection|NodeList)$/;function y(e){return _.has(e)||v.test(e)}var b=e=>e&&e.constructor&&!!e.constructor.name&&y(e.constructor.name);function x(e){return e.constructor.name===`NamedNodeMap`}var ee={serialize:(e,t,n,r,i,a)=>{let o=e.constructor.name;return++r>t.maxDepth?`[${o}]`:(t.min?``:o+g)+(_.has(o)?`{${f(x(e)?[...e].reduce((e,t)=>
1(e[t.name]=t.value,e),{}):{...e},t,n,r,i,a)}}`:`[${d([...e],t,n,r,i,a)}]`)},test:b};function S(e){return e.replaceAll(`<`,`&lt;`).replaceAll(`>`,`&gt;`)}function C(e,t,n,r,i,a,o){let s=r+n.indent,c=n.colors;return e.map(e=>{let l=t[e];if(typeof l==`string`&&l[0]===`_`&&l.startsWith(`__vitest_`)&&l.match(/__vitest_\d+__/))return``;let u=o(l,n,s,i,a);return typeof l!=`string`&&(u.includes(`
2`)&&(u=n.spacingOuter+s+u+n.spacingOuter+r),u=`{${u}}`),`${n.spacingInner+r+c.prop.open+e+c.prop.close}=${c.value.open}${u}${c.value.close}`}).join(``)}function te(e,t,n,r,i,a){return e.map(e=>t.spacingOuter+n+(typeof e==`string`?re(e,t):a(e,t,n,r,i))).join(``)}function ne(e,t,n,r,i,a){return t.printShadowRoot===!1?``:[`${t.spacingOuter+n}#shadow-root`,te(e,t,n+t.indent,r,i,a)].join(``)}function re(e,t){let n=t.colors.content;return n.open+S(e)+n.close}function ie(e,t){let n=t.colors.comment;return`${n.open}<!--${S(e)}-->${n.close}`}function ae(e,t,n,r,i){let a=r.colors.tag;return`${a.open}<${e}${t&&a.close+t+r.spacingOuter+i+a.open}${n?`>${a.close}${n}${r.spacingOuter}${i}${a.open}</${e}`:`${t&&!r.min?``:` `}/`}>${a.close}`}function oe(e,t){let n=t.colors.tag;return`${n.open}<${e}${n.close} …${n.open} />${n.close}`}var se=1,ce=3,le=8,ue=11,de=/^(?:(?:HTML|SVG)\w*)?Element$/;function fe(e){try{return typeof e.hasAttribute==`function`&&e.hasAttribute(`is`)}catch{return!1}}function pe(e){let t=e.constructor.name,{nodeType:n,tagName:r}=e,i=typeof r==`string`&&r.includes(`-`)||fe(e);return n===se&&(de.test(t)||i)||n===ce&&t===`Text`||n===le&&t===`Comment`||n===ue&&t===`DocumentFragment`}var me=e=>e?.constructor?.name&&pe(e);function he(e){return e.nodeType===ce}function ge(e){return e.nodeType===le}function _e(e){return e.nodeType===ue}function ve(e,t){let n=e.filter(e=>e.nodeType!==ce||(e.data||``).trim().length>0);return t&&(n=n.filter(t)),n}function ye(e,t,n,r,i,a,o){if(he(e))return re(e.data,t);if(ge(e))return ie(e.data,t);let s=_e(e)?`DocumentFragment`:e.tagName.toLowerCase();if(++r>t.maxDepth)return oe(s,t);let c=Array.prototype.slice.call(e.childNodes||e.children),l=_e(e)||!e.shadowRoot?[]:Array.prototype.slice.call(e.shadowRoot.children),u=o?ve(c,o):c,d=o?ve(l,o):l;return ae(s,C(_e(e)?[]:Array.from(e.attributes,e=>e.name).sort(),_e(e)?{}:[...e.attributes].reduce((e,t)=>(e[t.name]=t.value,e),{}),t,n+t.indent,r,i,a),(d.length>0?ne(d,t,n+t.indent,r,i,a):``)+te(u,t,n+t.indent,r,i,a),t,n)}var be=(e,t,n,r,i,a)=>ye(e,t,n,r,i,a);function xe(e){return{test:me,serialize:(t,n,r,i,a,o)=>ye(t,n,r,i,a,o,e)}}var w={serialize:be,test:me}
vendor: 11,193 bytes, line 2
2,Se=`@@__IMMUTABLE_ITERABLE__@@`,Ce=`@@__IMMUTABLE_LIST__@@`,we=`@@__IMMUTABLE_KEYED__@@`,Te=`@@__IMMUTABLE_MAP__@@`,Ee=`@@__IMMUTABLE_ORDERED__@@`,De=`@@__IMMUTABLE_RECORD__@@`,Oe=`@@__IMMUTABLE_SEQ__@@`,ke=`@@__IMMUTABLE_SET__@@`,Ae=`@@__IMMUTABLE_STACK__@@`,je=e=>`Immutable.${e}`,Me=e=>`[${e}]`,Ne=` `,Pe=`…`;function Fe(e,t,n,r,i,a,o){return++r>t.maxDepth?Me(je(o)):`${je(o)+Ne}{${l(e.entries(),t,n,r,i,a)}}`}function Ie(e){let t=0;return{next(){if(t<e._keys.length){let n=e._keys[t++];return{done:!1,value:[n,e.get(n)]}}return{done:!0,value:void 0}}}}function Le(e,t,n,r,i,a){let o=je(e._name||`Record`);return++r>t.maxDepth?Me(o):`${o+Ne}{${l(Ie(e),t,n,r,i,a)}}`}function Re(e,t,n,r,i,a){let o=je(`Seq`);return++r>t.maxDepth?Me(o):e[we]?`${o+Ne}{${e._iter||e._object?l(e.entries(),t,n,r,i,a):Pe}}`:`${o+Ne}[${e._iter||e._array||e._collection||e._iterable?u(e.values(),t,n,r,i,a):Pe}]`}function ze(e,t,n,r,i,a,o){return++r>t.maxDepth?Me(je(o)):`${je(o)+Ne}[${u(e.values(),t,n,r,i,a)}]`}var Be={serialize:(e,t,n,r,i,a)=>e[Te]?Fe(e,t,n,r,i,a,e[Ee]?`OrderedMap`:`Map`):e[Ce]?ze(e,t,n,r,i,a,`List`):e[ke]?ze(e,t,n,r,i,a,e[Ee]?`OrderedSet`:`Set`):e[Ae]?ze(e,t,n,r,i,a,`Stack`):e[Oe]?Re(e,t,n,r,i,a):Le(e,t,n,r,i,a),test:e=>e&&(e[Se]===!0||e[De]===!0)};function Ve(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var He={exports:{}},T={},Ue;function We(){if(Ue)return T;Ue=1;var e=Symbol.for(`react.transitional.element`),t=Symbol.for(`react.portal`),n=Symbol.for(`react.fragment`),r=Symbol.for(`react.strict_mode`),i=Symbol.for(`react.profiler`),a=Symbol.for(`react.consumer`),o=Symbol.for(`react.context`),s=Symbol.for(`react.forward_ref`),c=Symbol.for(`react.suspense`),l=Symbol.for(`react.suspense_list`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.view_transition`),p=Symbol.for(`react.client.reference`);function m(p){if(typeof p==`object`&&p){var m=p.$$typeof;switch(m){case e:switch(p=p.type,p){case n:case i:case r:case c:case l:case f:return p;default:switch(p&&=p.$$typeof,p){case o:case s:case d:case u:return p;case a:return p;default:return m}}case t:return m}}}return T.ContextConsumer=a,T.ContextProvider=o,T.Element=e,T.ForwardRef=s,T.Fragment=n,T.Lazy=d,T.Memo=u,T.Portal=t,T.Profiler=i,T.StrictMode=r,T.Suspense=c,T.SuspenseList=l,T.isContextConsumer=function(e){return m(e)===a},T.isContextProvider=function(e){return m(e)===o},T.isElement=function(t){return typeof t==`object`&&!!t&&t.$$typeof===e},T.isForwardRef=function(e){return m(e)===s},T.isFragment=function(e){return m(e)===n},T.isLazy=function(e){return m(e)===d},T.isMemo=function(e){return m(e)===u},T.isPortal=function(e){return m(e)===t},T.isProfiler=function(e){return m(e)===i},T.isStrictMode=function(e){return m(e)===r},T.isSuspense=function(e){return m(e)===c},T.isSuspenseList=function(e){return m(e)===l},T.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===n||e===i||e===r||e===c||e===l||typeof e==`object`&&e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===o||e.$$typeof===a||e.$$typeof===s||e.$$typeof===p||e.getModuleId!==void 0))},T.typeOf=m,T}var Ge;function Ke(){return Ge?He.exports:(Ge=1,He.exports=We(),He.exports)}var qe=Ke(),Je=s({__proto__:null,default:Ve(qe)},[qe]),Ye={exports:{}},E={},Xe;function Ze(){if(Xe)return E;Xe=1;var e=Symbol.for(`react.element`),t=Symbol.for(`react.portal`),n=Symbol.for(`react.fragment`),r=Symbol.for(`react.strict_mode`),i=Symbol.for(`react.profiler`),a=Symbol.for(`react.provider`),o=Symbol.for(`react.context`),s=Symbol.for(`react.server_context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.suspense_list`),d=Symbol.for(`react.memo`),f=Symbol.for(`react.lazy`),p=Symbol.for(`react.offscreen`),m=Symbol.for(`react.module.reference`);function h(p){if(typeof p==`object`&&p){var m=p.$$typeof;switch(m){case e:switch(p=p.type,p){case n:case i:case r:case l:case u:return p;default:switch(p&&=p.$$typeof,p){case s:case o:case c:case f:case d:case a:return p;default:return m}}case t:return m}}}return E.ContextConsumer=o,E.ContextProvider=a,E.Element=e,E.ForwardRef=c,E.Fragment=n,E.Lazy=f,E.Memo=d,E.Portal=t,E.Profiler=i,E.StrictMode=r,E.Suspense=l,E.SuspenseList=u,E.isAsyncMode=function(){return!1},E.isConcurrentMode=function(){return!1},E.isContextConsumer=function(e){return h(e)===o},E.isContextProvider=function(e){return h(e)===a},E.isElement=function(t){return typeof t==`object`&&!!t&&t.$$typeof===e},E.isForwardRef=function(e){return h(e)===c},E.isFragment=function(e){return h(e)===n},E.isLazy=function(e){return h(e)===f},E.isMemo=function(e){return h(e)===d},E.isPortal=function(e){return h(e)===t},E.isProfiler=function(e){return h(e)===i},E.isStrictMode=function(e){return h(e)===r},E.isSuspense=function(e){return h(e)===l},E.isSuspenseList=function(e){return h(e)===u},E.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===n||e===i||e===r||e===l||e===u||e===p||typeof e==`object`&&e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===a||e.$$typeof===o||e.$$typeof===c||e.$$typeof===m||e.getModuleId!==void 0))},E.typeOf=h,E}var Qe;function $e(){return Qe?Ye.exports:(Qe=1,Ye.exports=Ze(),Ye.exports)}var et=$e(),tt=s({__proto__:null,default:Ve(et)},[et]),nt=Object.fromEntries([`isAsyncMode`,`isConcurrentMode`,`isContextConsumer`,`isContextProvider`,`isElement`,`isForwardRef`,`isFragment`,`isLazy`,`isMemo`,`isPortal`,`isProfiler`,`isStrictMode`,`isSuspense`,`isSuspenseList`,`isValidElementType`].map(e=>[e,t=>tt[e](t)||Je[e](t)]));function rt(e,t=[]){if(Array.isArray(e))for(let n of e)rt(n,t);else e!=null&&e!==!1&&e!==``&&t.push(e);return t}function it(e){let t=e.type;if(typeof t==`string`)return t;if(typeof t==`function`)return t.displayName||t.name||`Unknown`;if(nt.isFragment(e))return`React.Fragment`;if(nt.isSuspense(e))return`React.Suspense`;if(typeof t==`object`&&t){if(nt.isContextProvider(e))return`Context.Provider`;if(nt.isContextConsumer(e))return`Context.Consumer`;if(nt.isForwardRef(e)){if(t.displayName)return t.displayName;let e=t.render.displayName||t.render.name||``;return e===``?`ForwardRef`:`ForwardRef(${e})`}if(nt.isMemo(e)){let e=t.displayName||t.type.displayName||t.type.name||``;return e===``?`Memo`:`Memo(${e})`}}return`UNDEFINED`}function at(e){let{props:t}=e;return Object.keys(t).filter(e=>e!==`children`&&t[e]!==void 0).sort()}var ot={serialize:(e,t,n,r,i,a)=>++r>t.maxDepth?oe(it(e),t):ae(it(e),C(at(e),e.props,t,n+t.indent,r,i,a),te(rt(e.props.children),t,n+t.indent,r,i,a),t,n),test:e=>e!=null&&nt.isElement(e)},st=typeof Symbol==`function`&&Symbol.for?Symbol.for(`react.test.json`):245830487;function ct(e){let{props:t}=e;return t?Object.keys(t).filter(e=>t[e]!==void 0).sort():[]}var lt={serialize:(e,t,n,r,i,a)=>++r>t.maxDepth?oe(e.type,t):ae(e.type,e.props?C(ct(e),e.props,t,n+t.indent,r,i,a):``,e.children?te(e.children,t,n+t.indent,r,i,a):``,t,n),test:e=>e&&e.$$typeof===st},ut=Object.prototype.toString,dt=Date.prototype.toISOString,ft=Error.prototype.toString,pt=RegExp.prototype.toString;function mt(e){return typeof e.constructor==`function`&&e.constructor.name||`Object`}function ht(e){return typeof window<`u`&&e===window}var gt=/^Symbol\((.*)\)(.*)$/,_t=/\n/g,vt=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function yt(e){return e===`[object Array]`||e===`[object ArrayBuffer]`||e===`[object DataView]`||e===`[object Float32Array]`||e===`[object Float64Array]`||e===`[object Int8Array]`||e===`[object Int16Array]`||e===`[object Int32Array]`||e===`[object Uint8Array]`||e===`[object Uint8ClampedArray]`||e===`[object Uint16Array]`||e===`[object Uint32Array]`}function bt(e){return Object.is(e,-0)?`-0`:String(e)}function xt(e){return String(`${e}n`)}function St(e,t){return t?`[Function ${e.name||`anonymous`}]`:`[Function]`}function Ct(e){return String(e).replace(gt,`Symbol($1)`)}function wt(e){return`[${ft.call(e)}]`}function Tt(e,t,n,r){if(e===!0||e===!1)return`${e}`;if(e===void 0)return`undefined`;if(e===null)return`null`;let i=typeof e;if(i===`number`)return bt(e);if(i===`bigint`)return xt(e);if(i===`string`)return r?`"${e.replaceAll(/"|\\/g,`\\$&`)}"`:`"${e}"`;if(i===`function`)return St(e,t);if(i===`symbol`)return Ct(e);let a=ut.call(e);return a===`[object WeakMap]`?`WeakMap {}`:a===`[object WeakSet]`?`WeakSet {}`:a===`[object Function]`||a===`[object GeneratorFunction]`?St(e,t):a===`[object Symbol]`?Ct(e):a===`[object Date]`?Number.isNaN(+e)?`Date { NaN }`:dt.call(e):a===`[object Error]`?wt(e):a===`[object RegExp]`?n?pt.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,`\\$&`):pt.call(e):e instanceof Error?wt(e):null}function Et(e,t,n,r,i,a){if(i.includes(e))return`[Circular]`;i=[...i],i.push(e);let o=++r>t.maxDepth,s=t.min;if(t.callToJSON&&!o&&e.toJSON&&typeof e.toJSON==`function`&&!a)return jt(e.toJSON(),t,n,r,i,!0);let c=ut.call(e);return c===`[object Arguments]`?o?`[Arguments]`:`${s?``:`Arguments `}[${d(e,t,n,r,i,jt)}]`:yt(c)?o?`[${e.constructor.name}]`:`${s||!t.printBasicPrototype&&e.constructor.name===`Array`?``:`${e.constructor.name} `}[${d(e,t,n,r,i,jt)}]`:c===`[object Map]`?o?`[Map]`:`Map {${l(e.entries(),t,n,r,i,jt,` => `)}}`:c===`[object Set]`?o?`[Set]`:`Set {${u(e.values(),t,n,r,i,jt)}}`:o||ht(e)?`[${mt(e)}]`:`${s||!t.printBasicPrototype&&mt(e)===`Object`?``:`${mt(e)} `}{${f(e,t,n,r,i,jt)}}`}var Dt={test:e=>e&&e instanceof Error,serialize(e,t,n,r,i,a){if(i.includes(e))return`[Circular]`;i=[...i,e];let o=++r>t.maxDepth,{message:s,cause:c,...u}=e,d={message:s,...c===void 0?{}:{cause:c},...e instanceof AggregateError?{errors:e.errors}:{},...u},f=e.name===`Error`?mt(e):e.name;return o?`[${f}]`:`${f} {${l(Object.entries(d).values(),t,n,r,i,a)}}`}};function Ot(e){return e.serialize!=null}function kt(e,t,n,r,i,a){let o;try{o=Ot(e)?e.serialize(t,n,r,i,a,jt):e.print(t,e=>jt(e,n,r,i,a),e=>{let t=r+n.indent;return t+e.replaceAll(_t,`\n${t}`)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(e){throw new vt(e.message,e.stack)}if(typeof o!=`string`)throw TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof o}".`);return o}function At(e,t){for(let n of e)try{if(n.test(t))return n}catch(e){throw new vt(e.message,e.stack)}return null}function jt(e,t,n,r,i,a){let o,s=At(t.plugins,e);if(s!==null)o=kt(s,e,t,n,r,i);else{let s=Tt(e,t.printFunctionName,t.escapeRegex,t.escapeString);o=s===null?Et(e,t,n,r,i,a):s}return t._outputLengthPerDepth[r]??=0,t._outputLengthPerDepth[r]+=o.length,t._outputLengthPerDepth[r]>t.maxOutputLength&&(t.maxDepth=0),o}var Mt={comment:`gray`,content:`reset`,prop:`yellow`,tag:`cyan`,value:`green`},Nt=Object.keys(Mt),D={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,maxOutputLength:1e6,maxWidth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,printShadowRoot:!0,theme:Mt};function Pt(e){for(let t of Object.keys(e))if(!Object.hasOwn(D,t))throw Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw Error(`pretty-format: Options "min" and "indent" cannot be used together.`)}function Ft(){return Nt.reduce((e,t)=>
2{let n=Mt[t],r=n&&o[n];if(r&&typeof r.close==`string`&&typeof r.open==`string`)e[t]=r;else throw Error(`pretty-format: Option "theme" has a key "${t}" whose value "${n}" is undefined in ansi-styles.`);return e},Object.create(null))}function It(){return Nt.reduce((e,t)=>(e[t]={close:``,open:``},e),Object.create(null))}function Lt(e){return e?.printFunctionName??D.printFunctionName}function Rt(e){return e?.escapeRegex??D.escapeRegex}function zt(e){return e?.escapeString??D.escapeString}function Bt(e){return{callToJSON:e?.callToJSON??D.callToJSON,colors:e?.highlight?Ft():It(),compareKeys:typeof e?.compareKeys==`function`||e?.compareKeys===null?e.compareKeys:D.compareKeys,escapeRegex:Rt(e),escapeString:zt(e),indent:e?.min?``:Vt(e?.indent??D.indent),maxDepth:e?.maxDepth??D.maxDepth,maxWidth:e?.maxWidth??D.maxWidth,min:e?.min??D.min,plugins:e?.plugins??D.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:Lt(e),printShadowRoot:e?.printShadowRoot??!0,spacingInner:e?.min?` `:`
3`,spacingOuter:e?.min?``:`
4`,maxOutputLength:e?.maxOutputLength??D.maxOutputLength,_outputLengthPerDepth:[]}}function Vt(e){return Array.from({length:e+1}).join(` `)}function O(e,t){if(t&&(Pt(t),t.plugins)){let n=At(t.plugins,e);if(n!==null)return kt(n,e,Bt(t),``,0,[])}let n=Tt(e,Lt(t),Rt(t),zt(t));return n===null?Et(e,Bt(t),``,0,[]):n}var Ht={AsymmetricMatcher:h,DOMCollection:ee,DOMElement:w,Immutable:Be,ReactElement:ot,ReactTestComponent:lt,Error:Dt},Ut={bold:[`1`,`22`],dim:[`2`,`22`],italic:[`3`,`23`],underline:[`4`,`24`],inverse:[`7`,`27`],hidden:[`8`,`28`],strike:[`9`,`29`],black:[`30`,`39`],red:[`31`,`39`],green:[`32`,`39`],yellow:[`33`,`39`],blue:[`34`,`39`],magenta:[`35`,`39`],cyan:[`36`,`39`],white:[`37`,`39`],brightblack:[`30;1`,`39`],brightred:[`31;1`,`39`],brightgreen:[`32;1`,`39`],brightyellow:[`33;1`,`39`],brightblue:[`34;1`,`39`],brightmagenta:[`35;1`,`39`],brightcyan:[`36;1`,`39`],brightwhite:[`37;1`,`39`],grey:[`90`,`39`]},Wt={special:`cyan`,number:`yellow`,bigint:`yellow`,boolean:`yellow`,undefined:`grey`,null:`bold`,string:`green`,symbol:`green`,date:`magenta`,regexp:`red`},Gt=`…`;function Kt(e,t){let n=Ut[Wt[t]]||Ut[t]||``;return n?`\u001b[${n[0]}m${String(e)}\u001b[${n[1]}m`:String(e)}function qt({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:r=!0,showProxy:i=!1,maxArrayLength:a=1/0,breakLength:o=1/0,seen:s=[],truncate:c=1/0,stylize:l=String}={},u){let d={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!i,maxArrayLength:Number(a),breakLength:Number(o),truncate:Number(c),seen:s,inspect:u,stylize:l};return d.colors&&(d.stylize=Kt),d}function Jt(e){return e>=`\ud800`&&e<=`\udbff`}function Yt(e,t,n=Gt){e=String(e);let r=n.length,i=e.length;if(r>t&&i>r)return n;if(i>t&&i>r){let i=t-r;return i>0&&Jt(e[i-1])&&--i,`${e.slice(0,i)}${n}`}return e}function Xt(e,t,n,r=`, `){n||=t.inspect;let i=e.length;if(i===0)return``;let a=t.truncate,o=``,s=``,c=``;for(let l=0;l<i;l+=1){let i=l+1===e.length,u=l+2===e.length;c=`${Gt}(${e.length-l})`;let d=e[l];t.truncate=a-o.length-(i?0:r.length);let f=s||n(d,t)+(i?``:r),p=o.length+f.length,m=p+c.length;if(i&&p>a&&o.length+c.length<=a||!i&&!u&&m>a||(s=i?``:n(e[l+1],t)+(u?``:r),!i&&u&&m>a&&p+s.length>a))break;if(o+=f,!i&&!u&&p+s.length>=a){c=`${Gt}(${e.length-l-1})`;break}c=``}return`${o}${c}`}function Zt(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,`\\'`).replace(/\\"/g,`"`).replace(/(^"|"$)/g,`'`)}function Qt([e,t],n){return n.truncate-=2,typeof e==`string`?e=Zt(e):typeof e!=`number`&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}function $t(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`[]`;t.truncate-=4;let r=Xt(e,t);t.truncate-=r.length;let i=``;return n.length&&(i=Xt(n.map(t=>[t,e[t]]),t,Qt)),`[ ${r}${i?`, ${i}`:``} ]`}var en=e=>typeof Buffer==`function`&&e instanceof Buffer?`Buffer`:e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function tn(e,t){let n=en(e);t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return`${n}[]`;let i=``;for(let n=0;n<e.length;n++){let r=`${t.stylize(Yt(e[n],t.truncate),`number`)}${n===e.length-1?``:`, `}`;if(t.truncate-=r.length,e[n]!==e.length&&t.truncate<=3){i+=`${Gt}(${e.length-e[n]+1})`;break}i+=r}let a=``;return r.length&&(a=Xt(r.map(t=>[t,e[t]]),t,Qt)),`${n}[ ${i}${a?`, ${a}`:``} ]`}function nn(e,t){let n=e.toJSON();if(n===null)return`Invalid Date`;let r=n.split(`T`),i=r[0];return t.stylize(`${i}T${Yt(r[1],t.truncate-i.length-1)}`,`date`)}function rn(e,t){let n=e[Symbol.toStringTag]||`Function`,r=e.name;return r?t.stylize(`[${n} ${Yt(r,t.truncate-11)}]`,`special`):t.stylize(`[${n}]`,`special`)}function an([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}function on(e){let t=[];return e.forEach((e,n)=>{t.push([n,e])}),t}function sn(e,t){return e.size===0?`Map{}`:(t.truncate-=7,`Map{ ${Xt(on(e),t,an)} }`)}var cn=Number.isNaN||(e=>e!==e);function ln(e,t){return cn(e)?t.stylize(`NaN`,`number`):e===1/0?t.stylize(`Infinity`,`number`):e===-1/0?t.stylize(`-Infinity`,`number`):e===0?t.stylize(1/e==1/0?`+0`:`-0`,`number`):t.stylize(Yt(String(e),t.truncate),`number`)}function un(e,t){let n=Yt(e.toString(),t.truncate-1);return n!==Gt&&(n+=`n`),t.stylize(n,`bigint`)}function dn(e,t){let n=e.toString().split(`/`)[2],r=t.truncate-(2+n.length),i=e.source;return t.stylize(`/${Yt(i,r)}/${n}`,`regexp`)}function fn(e){let t=[];
4return e.forEach(e=>{t.push(e)}),t}function pn(e,t){return e.size===0?`Set{}`:(t.truncate-=7,`Set{ ${Xt(fn(e),t)} }`)}var mn=RegExp(`['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]`,`g`),hn={"\b":`\\b`,"	":`\\t`,"\n":`\\n`,"\f":`\\f`,"\r":`\\r`,"'":`\\'`,"\\":`\\\\`},gn=16;function _n(e){return hn[e]||`\\u${`0000${e.charCodeAt(0).toString(gn)}`.slice(-4)}`}function vn(e,t){return mn.test(e)&&(e=e.replace(mn,_n)),t.stylize(`'${Yt(e,t.truncate-2)}'`,`string`)}function yn(e){return`description`in Symbol.prototype?e.description?`Symbol(${e.description})`:`Symbol()`:e.toString()}var bn=()=>`Promise{…}`;function xn(e,t){let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&r.length===0)return`{}`;if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return`[Circular]`;t.seen.push(e);let i=Xt(n.map(t=>[t,e[t]]),t,Qt),a=Xt(r.map(t=>[t,e[t]]),t,Qt);t.seen.pop();let o=``;return i&&a&&(o=`, `),`{ ${i}${o}${a} }`}var Sn=typeof Symbol<`u`&&Symbol.toStringTag?Symbol.toStringTag:!1;function Cn(e,t){let n=``;return Sn&&Sn in e&&(n=e[Sn]),n||=e.constructor.name,(!n||n===`_class`)&&(n=`<Anonymous Class>`),t.truncate-=n.length,`${n}${xn(e,t)}`}function wn(e,t){return e.length===0?`Arguments[]`:(t.truncate-=13,`Arguments[ ${Xt(e,t)} ]`)}var Tn=[`stack`,`line`,`column`,`name`,`message`,`fileName`,`lineNumber`,`columnNumber`,`number`,`description`,`cause`];function En(e,t){let n=Object.getOwnPropertyNames(e).filter(e=>Tn.indexOf(e)===-1),r=e.name;t.truncate-=r.length;let i=``;if(typeof e.message==`string`?i=Yt(e.message,t.truncate):n.unshift(`message`),i=i?`: ${i}`:``,t.truncate-=i.length+5,t.seen=t.seen||[],t.seen.includes(e))return`[Circular]`;t.seen.push(e);let a=Xt(n.map(t=>[t,e[t]]),t,Qt);return`${r}${i}${a?` { ${a} }`:``}`}function Dn([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),`yellow`)}=${n.stylize(`"${t}"`,`string`)}`:`${n.stylize(String(e),`yellow`)}`}function On(e,t){return Xt(e,t,kn,`
5`)}function kn(e,t){switch(e.nodeType){case 1:return An(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function An(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),i=t.stylize(`<${r}`,`special`),a=t.stylize(`>`,`special`),o=t.stylize(`</${r}>`,`special`);t.truncate-=r.length*2+5;let s=``;n.length>0&&(s+=` `,s+=Xt(n.map(t=>[t,e.getAttribute(t)]),t,Dn,` `)),t.truncate-=s.length;let c=t.truncate,l=On(e.children,t);return l&&l.length>c&&(l=`${Gt}(${e.children.length})`),`${i}${s}${a}${l}${o}`}var jn=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`chai/inspect`):`@@chai/inspect`,Mn=Symbol.for(`nodejs.util.inspect.custom`),Nn=new WeakMap,Pn={},Fn={undefined:(e,t)=>t.stylize(`undefined`,`undefined`),null:(e,t)=>t.stylize(`null`,`null`),boolean:(e,t)=>t.stylize(String(e),`boolean`),Boolean:(e,t)=>t.stylize(String(e),`boolean`),number:ln,Number:ln,bigint:un,BigInt:un,string:vn,String:vn,function:rn,Function:rn,symbol:yn,Symbol:yn,Array:$t,Date:nn,Map:sn,Set:pn,RegExp:dn,Promise:bn,WeakSet:(e,t)=>t.stylize(`WeakSet{…}`,`special`),WeakMap:(e,t)=>t.stylize(`WeakMap{…}`,`special`),Arguments:wn,Int8Array:tn,Uint8Array:tn,Uint8ClampedArray:tn,Int16Array:tn,Uint16Array:tn,Int32Array:tn,Uint32Array:tn,Float32Array:tn,Float64Array:tn,Generator:()=>``,DataView:()=>``,ArrayBuffer:()=>``,Error:En,HTMLCollection:On,NodeList:On},In=(e,t,n,r)=>jn in e&&typeof e[jn]==`function`?e[jn](t):Mn in e&&typeof e[Mn]==`function`?e[Mn](t.depth,t,r):`inspect`in e&&typeof e.inspect==`function`?e.inspect(t.depth,t):`constructor`in e&&Nn.has(e.constructor)?Nn.get(e.constructor)(e,t):Pn[n]?Pn[n](e,t):``,Ln=Object.prototype.toString;function Rn(e,t={}){let n=qt(t,Rn),{customInspect:r}=n,i=e===null?`null`:typeof e;if(i===`object`&&(i=Ln.call(e).slice(8,-1)),i in Fn)return Fn[i](e,n);if(r&&e){let t=In(e,n,i,Rn);if(t)return typeof t==`string`?t:Rn(t,n)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?xn(e,n):e&&typeof HTMLElement==`function`&&e instanceof HTMLElement?An(e,n
5):`constructor`in e?e.constructor===Object?xn(e,n):Cn(e,n):e===Object(e)?xn(e,n):n.stylize(String(e),i)}var{AsymmetricMatcher:zn,DOMCollection:Bn,DOMElement:Vn,Immutable:Hn,ReactElement:Un,ReactTestComponent:Wn}=Ht,Gn=[Wn,Un,Vn,Bn,Hn,zn];function k(e,t=10,{maxLength:n,filterNode:r,...i}={}){let a=n??1e4,o,s=typeof r==`string`?Kn(r):r,c=s?[Wn,Un,xe(s),Bn,Hn,zn]:Gn;try{o=O(e,{maxDepth:t,escapeString:!1,plugins:c,...i})}catch{o=O(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:c,...i})}return o.length>=a&&t>1?k(e,Math.floor(Math.min(t,2**53-1)/2),{maxLength:n,filterNode:r,...i}):o}function Kn(e){return t=>{if(t.nodeType===8)return!1;if(t.nodeType===1&&t.matches)try{return!t.matches(e)}catch{return!0}return!0}}var qn=/%[sdjifoOc%]/g;function Jn(e,t={}){let n=(e,n)=>t.prettifyObject?k(e,void 0,{printBasicPrototype:!1,escapeString:!1}):Xn(e,n);if(typeof e[0]!=`string`){let t=[];for(let r=0;r<e.length;r++)t.push(n(e[r],{depth:0,colors:!1}));return t.join(` `)}let r=e.length,i=1,a=e[0],o=String(a).replace(qn,t=>{if(t===`%%`)return`%`;if(i>=r)return t;switch(t){case`%s`:{let t=e[i++];return typeof t==`bigint`?`${t.toString()}n`:typeof t==`number`&&t===0&&1/t<0?`-0`:typeof t==`object`&&t?typeof t.toString==`function`&&t.toString!==Object.prototype.toString?t.toString():n(t,{depth:0,colors:!1}):String(t)}case`%d`:{let t=e[i++];return typeof t==`bigint`?`${t.toString()}n`:typeof t==`symbol`?`NaN`:Number(t).toString()}case`%i`:{let t=e[i++];return typeof t==`bigint`?`${t.toString()}n`:Number.parseInt(String(t)).toString()}case`%f`:return Number.parseFloat(String(e[i++])).toString();case`%o`:return n(e[i++],{showHidden:!0,showProxy:!0});case`%O`:return n(e[i++]);case`%c`:return i++,``;case`%j`:try{return JSON.stringify(e[i++])}catch(e){let t=e.message;if(t.includes(`circular structure`)||t.includes(`cyclic structures`)||t.includes(`cyclic object`))return`[Circular]`;throw e}default:return t}});for(let t=e[i];i<r;t=e[++i])o+=typeof t!=`object`||!t?` ${typeof t==`symbol`?t.toString():t}`:` ${n(t)}`;return o}function Yn(...e){return Jn(e)}function Xn(e,t={}){return t.truncate===0&&(t.truncate=1/0),Rn(e,t)}function Zn(e,t={}){t.truncate===void 0&&(t.truncate=40);let n=Xn(e,t),r=Object.prototype.toString.call(e);if(t.truncate&&n.length>=t.truncate){if(r===`[object Function]`){let t=e;return t.name?`[Function: ${t.name}]`:`[Function]`}if(r===`[object Array]`)return`[ Array(${e.length}) ]`;if(r===`[object Object]`){let t=Object.keys(e);return`{ Object (${t.length>2?`${t.splice(0,2).join(`, `)}, ...`:t.join(`, `)}) }`}return n}return n}function Qn(e){let{message:t=`$$stack trace error`,stackTraceLimit:n=1}=e||{},r=Error.stackTraceLimit,i=Error.prepareStackTrace;Error.stackTraceLimit=n,Error.prepareStackTrace=e=>e.stack;let a=Error(t).stack||``;return Error.prepareStackTrace=i,Error.stackTraceLimit=r,a}function $n(e){return e!=null}function A(e,t,n){let r=typeof e;if(!n.includes(r))throw TypeError(`${t} value must be ${n.join(` or `)}, received "${r}"`)}function er(e){return e===null||typeof e!=`function`&&typeof e!=`object`}function tr(e){let t=[],n=`none`;for(let r=0;r<e.length;++r)n===`singleline`?e[r]===`
6`&&(n=`none`):n===`multiline`?e[r-1]===`*`&&e[r]===`/`&&(n=`none`):n===`none`&&(e[r]===`/`&&e[r+1]===`/`?n=`singleline`:e[r]===`/`&&e[r+1]===`*`?(n=`multiline`,r+=2):t.push(e[r]));return t.join(``)}function nr(e){return e??=[],Array.isArray(e)?e:[e]}function rr(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function ir(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function ar(e){return Object.prototype.toString.apply(e).slice(8,-1)}function or(e,t){let n=typeof t==`function`?t:e=>t.add(e);Object.getOwnPropertyNames(e).forEach(n),Object.getOwnPropertySymbols(e).forEach(n)}function sr(e){let t=new Set;return ir(e)?[]:(or(e,t),Array.from(t))}var cr={forceWritable:!1};function lr(e,t=cr){return ur(e,new WeakMap,t)}function ur(e,t,n=cr){let r,i;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(i=Array.from({length:r=e.length}),t.set(e,i);r--;)i[r]=ur(e[r],t,n);return i}if(Object.prototype.toString.call(e)===`[object Object]`){i=Object.create(Object.getPrototypeOf(e)),t.set(e,i);let r=sr(e);for(let a of r){let r=Object.getOwnPropertyDescriptor(e,a);if(!r)continue;let o=ur(e[a],t,n);n.forceWritable?Object.defineProperty(i,a,{enumerable:r.enumerable,configurable:!0,writable:!0,value:o}):`get`in r?Object.defineProperty(i,a,{...r,get(){return o}}):Object.defineProperty(i,a,{...r,value:o})}return i}return e}function dr(){}function fr(e,t,n=void 0){let r=t.replace(/\[(\d+)\]/g,`.$1`).split(`.`),i=e;for(let e of r)if(i=new Object(i)[e],i===void 0)return n;return i}function pr(){let e=null,t=null,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function mr(e){let t=-1,n=null,r=0,i=0,a=null;for(;t<=e.length;){a=e[t],t++;let o=e[t];if((o===`"`||o===`'`||o==="`")&&a!==`\\`&&(n===o?n=null:n||=o),n||(o===`(`&&r++,o===`)`&&i++),r&&i&&r===i)return t}return null}function hr(e){if(!Number.isNaN(e))return!1;let t=new Float64Array(1);return t[0]=e,new Uint32Array(t.buffer)[1]>>>31==1}function gr(e){let t=e%10,n=e%100;return t===1&&n!==11?`${e}st`:t===2&&n!==12?`${e}nd`:t===3&&n!==13?`${e}rd`:`${e}th`}function _r(e){return Array.from(new Set(e))}var j=class{constructor(t,n){e(this,0,void 0),e(this,1,void 0),this[0]=t,this[1]=n}};function vr(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let n=0,r=Math.min(e.length,t.length),i=r,a=0;for(;n<i;)e.substring(a,i)===t.substring(a,i)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return i}function yr(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let n=0,r=Math.min(e.length,t.length),i=r,a=0;for(;n<i;)e.substring(e.length-i,e.length-a)===t.substring(t.length-i,t.length-a)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return i}function br(e,t){let n=e.length,r=t.length;if(n===0||r===0)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));let i=Math.min(n,r);if(e===t)return i;let a=0,o=1;for(;;){let n=e.substring(i-o),r=t.indexOf(n);if(r===-1)return a;o+=r,(r===0||e.substring(i-o)===t.substring(0,o))&&(a=o,o++)}}function xr(e){let t=!1,n=[],r=0,i=null,a=0,o=0,s=0,c=0,l=0;for(;a<e.length;)e[a][0]===0?(n[r++]=a,o=c,s=l,c=0,l=0,i=e[a][1]):(e[a][0]===1?c+=e[a][1].length:l+=e[a][1].length,i&&i.length<=Math.max(o,s)&&i.length<=Math.max(c,l)&&(e.splice(n[r-1],0,new j(-1,i)),e[n[r-1]+1][0]=1,r--,r--,a=r>0?n[r-1]:-1,o=0,s=0,c=0,l=0,i=null,t=!0)),a++;for(t&&Or(e),Dr(e),a=1;a<e.length;){if(e[a-1][0]===-1&&e[a][0]===1){let t=e[a-1][1],n=e[a][1],r=br(t,n),i=br(n,t);r>=i?(r>=t.length/2||r>=n.length/2)&&(e.splice(a,0,new j(0,n.substring(0,r))),e[a-1][1]=t.substring(0,t.length-r),e[a+1][1]=n.substring(r),a++):(i>=t.length/2||i>=n.length/2)&&(e.splice(a,0,new j(0,t.substring(0,i))),e[a-1][0]=1,e[a-1][1]=n.substring(0,n.length-i),e[a+1][0]=-1,e[a+1][1]=t.substring(i),a++),a++}a++}}var Sr=/[^a-z0-9]/i,Cr=/\s/,wr=/[\r\n]/,Tr=/\n\r?\n$/,Er=/^\r?\n\r?\n/;function Dr(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===0&&e[t+1][0]===0){let n=e[t-1][1],r=e[t][1],i=e[t+1][1],a=yr(n,r);if(a){let e=r.substring(r.length-a);n=n.substring(0,n.length-a),r=e+r.substring(0,r.length-a),i=e+i}let o=n,s=r,c=i,l=kr(n,r)+kr(r,i);for(;r.charAt(0)===i.charAt(0);){n+=r.charAt(0),r=r.substring(1)+i.charAt(0),i=i.substring(1);let e=kr(n,r)+kr(r,i);e>=l&&(l=e,o=n,s=r,c=i)}e[t-1][1]!==o&&(o?e[t-1][1]=o:(e.splice(t-1,1),t--),e[t][1]=s,c?e[t+1][1]=c:(e.splice(t+1,1),t--))}t++}}function Or(e){e.push(new j(0,``));let t=0,n=0,r=0,i=``,a=``,o;for(;t<e.length;)switch(e[t][0]){case 1:r++,a+=e[t][1],t++;break;case-1:n++,i+=e[t][1],t++;break;case 0:n+r>1?(n!==0&&r!==0&&(o=vr(a,i),o!==0&&(t-n-r>0&&e[t-n-r-1][0]===0?e[t-n-r-1][1]+=a.substring(0,o):(e.splice(0,0,new j(0,a.substring(0,o))),t++),a=a.substring(o),i=i.substring(o)),o=yr(a,i),o!==0&&(e[t][1]=a.substring(a.length-o)+e[t][1],a=a.substring(0,a.length-o),i=i.substring(0,i.length-o))),t-=n+r,e.splice(t,n+r),i.length&&(e.splice(t,0,new j(-1,i)),t++),a.length&&(e.splice(t,0,new j(1,a)),t++),t++):t!==0&&e[t-1][0]===0?(e[t-1][1]+=e[t][1],e.splice(t,1)
6):t++,r=0,n=0,i=``,a=``}e.at(-1)?.[1]===``&&e.pop();let s=!1;for(t=1;t<e.length-1;)e[t-1][0]===0&&e[t+1][0]===0&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),s=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),s=!0)),t++;s&&Or(e)}function kr(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),i=n.match(Sr),a=r.match(Sr),o=i&&n.match(Cr),s=a&&r.match(Cr),c=o&&n.match(wr),l=s&&r.match(wr),u=c&&e.match(Tr),d=l&&t.match(Er);return u||d?5:c||l?4:i&&!o&&s?3:o||s?2:i||a?1:0}var Ar=`Compared values have no visual difference.`,jr="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.";function Mr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var Nr={},Pr;function Fr(){if(Pr)return Nr;
6Pr=1,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.default=d;let e=`diff-sequences`,t=(e,t,n,r,i)=>{let a=0;for(;e<t&&n<r&&i(e,n);)e+=1,n+=1,a+=1;return a},n=(e,t,n,r,i)=>{let a=0;for(;e<=t&&n<=r&&i(t,r);)--t,--r,a+=1;return a},r=(e,n,r,i,a,o,s)=>{let c=0,l=-e,u=o[c],d=u;o[c]+=t(u+1,n,i+u-l+1,r,a);let f=e<s?e:s;for(c+=1,l+=2;c<=f;c+=1,l+=2){if(c!==e&&d<o[c])u=o[c];else if(u=d+1,n<=u)return c-1;d=o[c],o[c]=u+t(u+1,n,i+u-l+1,r,a)}return s},i=(e,t,r,i,a,o,s)=>{let c=0,l=e,u=o[c],d=u;o[c]-=n(t,u-1,r,i+u-l-1,a);let f=e<s?e:s;for(c+=1,l-=2;c<=f;c+=1,l-=2){if(c!==e&&o[c]<d)u=o[c];else if(u=d-1,u<t)return c-1;d=o[c],o[c]=u-n(t,u-1,r,i+u-l-1,a)}return s},a=(e,r,i,a,o,s,c,l,u,d,f)=>{let p=a-r,m=i-r,h=o-a-m,g=-h-(e-1),_=-h+(e-1),v=0,y=e<l?e:l;for(let l=0,m=-e;l<=y;l+=1,m+=2){let y=l===0||l!==e&&v<c[l],b=y?c[l]:v,x=y?b:b+1,ee=p+x-m,S=t(x+1,i,ee+1,o,s),C=x+S;if(v=c[l],c[l]=C,g<=m&&m<=_){let t=(e-1-(m+h))/2;if(t<=d&&u[t]-1<=C){let t=p+b-(y?m+1:m-1),c=n(r,b,a,t,s),l=b-c,u=t-c,d=l+1,h=u+1;f.nChangePreceding=e-1,e-1===d+h-r-a?(f.aEndPreceding=r,f.bEndPreceding=a):(f.aEndPreceding=d,f.bEndPreceding=h),f.nCommonPreceding=c,c!==0&&(f.aCommonPreceding=d,f.bCommonPreceding=h),f.nCommonFollowing=S,S!==0&&(f.aCommonFollowing=x+1,f.bCommonFollowing=ee+1);let g=C+1,_=ee+S+1;return f.nChangeFollowing=e-1,e-1===i+o-g-_?(f.aStartFollowing=i,f.bStartFollowing=o):(f.aStartFollowing=g,f.bStartFollowing=_),!0}}}return!1},o=(e,r,i,a,o,s,c,l,u,d,f)=>{let p=o-i,m=i-r,h=o-a-m,g=h-e,_=h+e,v=0,y=e<d?e:d;for(let d=0,m=e;d<=y;d+=1,m-=2){let y=d===0||d!==e&&u[d]<v,b=y?u[d]:v,x=y?b:b-1,ee=p+x-m,S=n(r,x-1,a,ee-1,s),C=x-S;if(v=u[d],u[d]=C,g<=m&&m<=_){let n=(e+(m-h))/2;if(n<=l&&C-1<=c[n]){let n=ee-S;if(f.nChangePreceding=e,e===C+n-r-a?(f.aEndPreceding=r,f.bEndPreceding=a):(f.aEndPreceding=C,f.bEndPreceding=n),f.nCommonPreceding=S,S!==0&&(f.aCommonPreceding=C,f.bCommonPreceding=n),f.nChangeFollowing=e-1,e===1)f.nCommonFollowing=0,f.aStartFollowing=i,f.bStartFollowing=o;else{let n=p+b-(y?m-1:m+1),r=t(b,i,n,o,s);f.nCommonFollowing=r,r!==0&&(f.aCommonFollowing=b,f.bCommonFollowing=n);let a=b+r,c=n+r;e-1===i+o-a-c?(f.aStartFollowing=i,f.bStartFollowing=o):(f.aStartFollowing=a,f.bStartFollowing=c)}return!0}}}return!1},s=(t,n,s,c,l,u,d,f,p)=>{let m=c-n,h=l-s,g=s-n,_=l-c,v=_-g,y=g,b=g;if(d[0]=n-1,f[0]=s,v%2==0){let e=(t||v)/2,a=(g+_)/2;for(let t=1;t<=a;t+=1)if(y=r(t,s,l,m,u,d,y),t<e)b=i(t,n,c,h,u,f,b);else if(o(t,n,s,c,l,u,d,y,f,b,p))return}else{let e=((t||v)+1)/2,o=(g+_+1)/2,x=1;for(y=r(x,s,l,m,u,d,y),x+=1;x<=o;x+=1)if(b=i(x-1,n,c,h,u,f,b),x<e)y=r(x,s,l,m,u,d,y);else if(a(x,n,s,c,l,u,d,y,f,b,p))return}throw Error(`${e}: no overlap aStart=${n} aEnd=${s} bStart=${c} bEnd=${l}`)},c=(e,t,n,r,i,a,o,l,u,d)=>{if(i-r<n-t){if(a=!a,a&&o.length===1){let{foundSubsequence:e,isCommon:t}=o[0];o[1]={foundSubsequence:(t,n,r)=>{e(t,r,n)},isCommon:(e,n)=>t(n,e)}}let e=t,s=n;t=r,n=i,r=e,i=s}let{foundSubsequence:f,isCommon:p}=o[+!!a];s(e,t,n,r,i,p,l,u,d);let{nChangePreceding:m,aEndPreceding:h,bEndPreceding:g,nCommonPreceding:_,aCommonPreceding:v,bCommonPreceding:y,nCommonFollowing:b,aCommonFollowing:x,bCommonFollowing:ee,nChangeFollowing:S,aStartFollowing:C,bStartFollowing:te}=d;t<h&&r<g&&c(m,t,h,r,g,a,o,l,u,d),_!==0&&f(_,v,y),b!==0&&f(b,x,ee),C<n&&te<i&&c(S,C,n,te,i,a,o,l,u,d)},l=(t,n)=>{if(typeof n!=`number`)throw TypeError(`${e}: ${t} typeof ${typeof n} is not a number`);if(!Number.isSafeInteger(n))throw RangeError(`${e}: ${t} value ${n} is not a safe integer`);if(n<0)throw RangeError(`${e}: ${t} value ${n} is a negative integer`)},u=(t,n)=>{let r=typeof n;if(r!==`function`)throw TypeError(`${e}: ${t} typeof ${r} is not a function`)};function d(e,r,i,a){l(`aLength`,e),l(`bLength`,r),u(`isCommon`,i),u(`foundSubsequence`,a);let o=t(0,e,0,r,i);if(o!==0&&a(o,0,0),e!==o||r!==o){let t=o,s=o,l=n(t,e-1,s,r-1,i),u=e-l,d=r-l,f=o+l;e!==f&&r!==f&&c(0,t,u,s,d,!1,[{foundSubsequence:a,isCommon:i}],[0],[0],{aCommonFollowing:0,aCommonPreceding:0,aEndPreceding:0,aStartFollowing:0,bCommonFollowing:0,bCommonPreceding:0,bEndPreceding:0,bStartFollowing:0,nChangeFollowing:0,nChangePreceding:0,nCommonFollowing:0,nCommonPreceding:0}),l!==0&&a(l,u,d)}}return Nr}var Ir=Mr(Fr());function Lr(e,t){return e.replace(/\s+$/,e=>t(e))}function Rr(e,t,n,r,i,a){return e.length===0?r===` `?t&&a.length!==0?n(`${r} ${a}`):``:n(r):n(`${r} ${Lr(e,i)}`)}function zr(e,t,{aColor:n,aIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return Rr(e,t,n,r,i,a)}function Br(e,t,{bColor:n,bIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return Rr(e,t,n,r,i,a)}
6function Vr(e,t,{commonColor:n,commonIndicator:r,commonLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return Rr(e,t,n,r,i,a)}function Hr(e,t,n,r,{patchColor:i}){return i(`@@ -${e+1},${t-e} +${n+1},${r-n} @@`)}function Ur(e,t){let n=e.length,r=t.contextLines,i=r+r,a=n,o=!1,s=0,c=0;for(;c!==n;){let t=c;for(;c!==n&&e[c][0]===0;)c+=1;if(t!==c){if(t===0)c>r&&(a-=c-r,o=!0);else if(c===n){let e=c-t;e>r&&(a-=e-r,o=!0)}else{let e=c-t;e>i&&(a-=e-i,s+=1)}}for(;c!==n&&e[c][0]!==0;)c+=1}let l=s!==0||o;s===0?o&&(a+=1):a+=s+1;let u=a-1,d=[],f=0;l&&d.push(``);let p=0,m=0,h=0,g=0,_=e=>{let n=d.length;d.push(Vr(e,n===0||n===u,t)),h+=1,g+=1},v=e=>{let n=d.length;d.push(zr(e,n===0||n===u,t)),h+=1},y=e=>{let n=d.length;d.push(Br(e,n===0||n===u,t)),g+=1};for(c=0;c!==n;){let a=c;for(;c!==n&&e[c][0]===0;)c+=1;if(a!==c){if(a===0){c>r&&(a=c-r,p=a,m=a,h=p,g=m);for(let t=a;t!==c;t+=1)_(e[t][1])}else if(c===n){let t=c-a>r?a+r:c;for(let n=a;n!==t;n+=1)_(e[n][1])}else{let n=c-a;if(n>i){let o=a+r;for(let t=a;t!==o;t+=1)_(e[t][1]);d[f]=Hr(p,h,m,g,t),f=d.length,d.push(``);let s=n-i;p=h+s,m=g+s,h=p,g=m;for(let t=c-r;t!==c;t+=1)_(e[t][1])}else for(let t=a;t!==c;t+=1)_(e[t][1])}}for(;c!==n&&e[c][0]===-1;)v(e[c][1]),c+=1;for(;c!==n&&e[c][0]===1;)y(e[c][1]),c+=1}return l&&(d[f]=Hr(p,h,m,g,t)),d.join(`
7`)}function Wr(e,t){return e.map((e,n,r)=>{let i=e[1],a=n===0||n===r.length-1;switch(e[0]){case-1:return zr(i,a,t);case 1:return Br(i,a,t);default:return Vr(i,a,t)}}).join(`
8`)}var Gr=e=>e,Kr=5,qr=0;function Jr(){return{aAnnotation:`Expected`,aColor:o.green,aIndicator:`-`,bAnnotation:`Received`,bColor:o.red,bIndicator:`+`,changeColor:o.inverse,changeLineTrailingSpaceColor:Gr,commonColor:o.dim,commonIndicator:` `,commonLineTrailingSpaceColor:Gr,compareKeys:void 0,contextLines:Kr,emptyFirstOrLastLinePlaceholder:``,expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:o.yellow,printBasicPrototype:!1,truncateThreshold:qr,truncateAnnotation:`... Diff result is truncated`,truncateAnnotationColor:Gr}}function Yr(e){return e&&typeof e==`function`?e:void 0}function Xr(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>=0?e:Kr}function Zr(e={}){return{...Jr(),...e,compareKeys:Yr(e.compareKeys),contextLines:Xr(e.contextLines)}}function Qr(e){return e.length===1&&e[0].length===0}function $r(e){let t=0,n=0;return e.forEach(e=>{switch(e[0]){case-1:t+=1;break;case 1:n+=1}}),{a:t,b:n}}function ei({aAnnotation:e,aColor:t,aIndicator:n,bAnnotation:r,bColor:i,bIndicator:a,includeChangeCounts:o,omitAnnotationLines:s},c){if(s)return``;let l=``,u=``;if(o){let t=String(c.a),i=String(c.b),o=r.length-e.length,s=` `.repeat(Math.max(0,o)),d=` `.repeat(Math.max(0,-o)),f=i.length-t.length,p=` `.repeat(Math.max(0,f)),m=` `.repeat(Math.max(0,-f));l=`${s}  ${n} ${p}${t}`,u=`${d}  ${a} ${m}${i}`}let d=`${n} ${e}${l}`,f=`${a} ${r}${u}`;return`${t(d)}\n${i(f)}\n\n`}function ti(e,t,n){return ei(n,$r(e))+(n.expand?Wr(e,n):Ur(e,n))+(t?n.truncateAnnotationColor(`\n${n.truncateAnnotation}`):``)}function ni(e,t,n){let r=Zr(n),[i,a]=ii(Qr(e)?[]:e,Qr(t)?[]:t,r);return ti(i,a,r)}function ri(e,t,n,r,i){if(Qr(e)&&Qr(n)&&(e=[],n=[]),Qr(t)&&Qr(r)&&(t=[],r=[]),e.length!==n.length||t.length!==r.length)return ni(e,t,i);let[a,o]=ii(n,r,i),s=0,c=0;return a.forEach(n=>{switch(n[0]){case-1:n[1]=e[s],s+=1;break;case 1:n[1]=t[c],c+=1;break;default:n[1]=t[c],s+=1,c+=1}}),ti(a,o,Zr(i))}function ii(e,t,n){let r=n?.truncateThreshold??!1,i=Math.max(Math.floor(n?.truncateThreshold??0),0),a=r?Math.min(e.length,i):e.length,o=r?Math.min(t.length,i):t.length,s=a!==e.length||o!==t.length,c=(n,r)=>e[n]===t[r],l=[],u=0,d=0;for(Ir(a,o,c,(n,r,i)=>{for(;u!==r;u+=1)l.push(new j(-1,e[u]));for(;d!==i;d+=1)l.push(new j(1,t[d]));for(;n!==0;--n,u+=1,d+=1)l.push(new j(0,t[d]))});u!==a;u+=1)l.push(new j(-1,e[u]));for(;d!==o;d+=1)l.push(new j(1,t[d]));return[l,s]}function ai(e){if(e===void 0)return`undefined`;if(e===null)return`null`;if(Array.isArray(e))return`array`;if(typeof e==`boolean`)return`boolean`;if(typeof e==`function`)return`function`;if(typeof e==`number`)return`number`;if(typeof e==`string`)return`string`;if(typeof e==`bigint`)return`bigint`;if(typeof e==`object`){if(e!=null){if(e.constructor===RegExp)return`regexp`;if(e.constructor===Map)return`map`;if(e.constructor===Set)return`set`;if(e.constructor===Date)return`date`}return`object`}if(typeof e==`symbol`)return`symbol`;throw Error(`value of unknown type: ${e}`)}function oi(e){return e.includes(`\r
9`)?`\r
10`:`
11`}function si(e,t,n){let r=n?.truncateThreshold??!1,i=Math.max(Math.floor(n?.truncateThreshold??0),0),a=e.length,o=t.length;if(r){let n=e.includes(`
12`),r=t.includes(`
13`),s=oi(e),c=oi(t),l=n?`${e.split(s,i).join(s)}\n`:e,u=r?`${t.split(c,i).join(c)}\n`:t;a=l.length,o=u.length}let s=a!==e.length||o!==t.length,c=(n,r)=>e[n]===t[r],l=0,u=0,d=[];return Ir(a,o,c,(n,r,i)=>{l!==r&&d.push(new j(-1,e.slice(l,r))),u!==i&&d.push(new j(1,t.slice(u,i))),l=r+n,u=i+n,d.push(new j(0,t.slice(i,u)))}),l!==a&&d.push(new j(-1,e.slice(l))),u!==o&&d.push(new j(1,t.slice(u))),[d,s]}function ci(e,t,n){return t.reduce((t,r)=>t+(r[0]===0?r[1]:r[0]===e&&r[1].length!==0?n(r[1]):``),``)}var li=class{constructor(t,n){e(this,`op`,void 0),e(this,`line`,void 0),e(this,`lines`,void 0),e(this,`changeColor`,void 0),this.op=t,this.line=[],this.lines=[],this.changeColor=n}pushSubstring(e){this.pushDiff(new j(this.op,e))}pushLine(){this.lines.push(this.line.length===1?this.line[0][0]===this.op?this.line[0]:new j(this.op,this.line[0][1]):new j(this.op,ci(this.op,this.line,this.changeColor))),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e)}align(e){let t=e[1];if(t.includes(`
14`)){let e=t.split(`
15`),n=e.length-1;e.forEach((e,t)=>{t<n?(this.pushSubstring(e),this.pushLine()):e.length!==0&&this.pushSubstring(e)})}else this.pushDiff(e)}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0}},ui=class{constructor(t,n){e(this,`deleteBuffer`,void 0),e(this,`insertBuffer`,void 0),e(this,`lines`,void 0),this.deleteBuffer=t,this.insertBuffer=n,this.lines=[]}pushDiffCommonLine(e){this.lines.push(e)}pushDiffChangeLines(e){let t=e[1].length===0;(!t||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(e),(!t||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(e)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(e){let t=e[0],n=e[1];if(n.includes(`
16`)){let e=n.split(`
17`),r=e.length-1;e.forEach((e,n)=>{if(n===0){let n=new j(t,e);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(n)):(this.pushDiffChangeLines(n),this.flushChangeLines())}else n<r?this.pushDiffCommonLine(new j(t,e)):e.length!==0&&this.pushDiffChangeLines(new j(t,e))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function di(e,t){let n=new li(-1,t),r=new li(1,t),i=new ui(n,r);
17return e.forEach(e=>{switch(e[0]){case-1:n.align(e);break;case 1:r.align(e);break;default:i.align(e)}}),i.getLines()}function fi(e,t){if(t){let t=e.length-1;return e.some((e,n)=>e[0]===0&&(n!==t||e[1]!==`
18`))}return e.some(e=>e[0]===0)}function pi(e,t,n){if(e!==t&&e.length!==0&&t.length!==0){let r=e.includes(`
19`)||t.includes(`
20`),[i,a]=mi(r?`${e}\n`:e,r?`${t}\n`:t,!0,n);if(fi(i,r)){let e=Zr(n);return ti(di(i,e.changeColor),a,e)}}return ni(e.split(`
21`),t.split(`
22`),n)}function mi(e,t,n,r){let[i,a]=si(e,t,r);return n&&xr(i),[i,a]}function hi(e,t){let{commonColor:n}=Zr(t);return n(e)}var{AsymmetricMatcher:gi,DOMCollection:_i,DOMElement:vi,Immutable:yi,ReactElement:bi,ReactTestComponent:xi}=Ht,Si=[xi,bi,vi,_i,yi,gi,Ht.Error],Ci={maxDepth:20,plugins:Si},wi={callToJSON:!1,maxDepth:8,plugins:Si},Ti=(e,t)=>t;function Ei(e,t,n,r=Ti){if(Object.is(e,t))return``;let i=ai(e),a=i,o=!1;if(i===`object`&&typeof e.asymmetricMatch==`function`){if(e.$$typeof!==Symbol.for(`jest.asymmetricMatcher`)||typeof e.getExpectedType!=`function`)return;a=e.getExpectedType(),o=a===`string`}if(a!==ai(t)){let{aAnnotation:i,aColor:a,aIndicator:o,bAnnotation:s,bColor:c,bIndicator:l}=Zr(n),u=Ni(wi,n),d=O(e,u),f=O(t,u),p=1e5;function m(e){return e.length<=p?e:`${e.slice(0,p)}...`}return d=r(`expected`,m(d)),f=r(`actual`,m(f)),`${`${a(`${o} ${i}:`)}\n${d}`}\n\n${`${c(`${l} ${s}:`)}\n${f}`}`}if(!o)switch(i){case`string`:return ni(e.split(`
23`),t.split(`
24`),n);case`boolean`:case`number`:return Oi(e,t,n,r);case`map`:return ji(ki(e),ki(t),n,r);case`set`:return ji(Ai(e),Ai(t),n,r);default:return ji(e,t,n,r)}}function Di(e){return(t,n)=>(e[t]=n,n)}function Oi(e,t,n,r=Ti){let i=r(`expected`,O(e,Ci)),a=r(`actual`,O(t,Ci));return i===a?``:ni(i.split(`
25`),a.split(`
26`),n)}function ki(e){return new Map(Array.from(e.entries()).sort())}function Ai(e){return new Set(Array.from(e.values()).sort())}function ji(e,t,n,r=Ti){let i,a=!1;try{i=Pi(e,t,Ni(Ci,n),n,r)}catch{a=!0}let o=hi(Ar,n);return(i===void 0||i===o)&&(i=Pi(e,t,Ni(wi,n),n,r),i!==o&&!a&&(i=`${hi(jr,n)}\n\n${i}`)),i}function Mi(e){return Ni(Ci,e)}function Ni(e,t){let{compareKeys:n,printBasicPrototype:r,maxDepth:i}=Zr(t);return{...e,compareKeys:n,printBasicPrototype:r,maxDepth:i??e.maxDepth}}function Pi(e,t,n,r,i=Ti){let a={...n,indent:0},o=O(e,a),s=O(t,a);if(o===s)return hi(Ar,r);{let a=i(`expected`,O(e,n)),c=i(`actual`,O(t,n));return ri(a.split(`
27`),c.split(`
28`),o.split(`
29`),s.split(`
30`),r)}}var Fi=2e4;function Ii(e){return ar(e)===`Object`&&typeof e.asymmetricMatch==`function`}function Li(e,t){let n=ar(e);return n===ar(t)&&(n===`Object`||n===`Array`)}function Ri(e,t,n,r){let{aAnnotation:i,bAnnotation:a}=Zr(n);if(typeof t==`string`&&typeof e==`string`&&t.length>0&&e.length>0&&t.length<=Fi&&e.length<=Fi&&t!==e){if(t.includes(`
31`)||e.includes(`
32`))return pi(t,e,n);let[r]=mi(t,e,!0),o=r.some(e=>e[0]===0),s=Bi(i,a);return`${s(i)+Wi(Gi(r,-1,o))}\n${s(a)+Ui(Gi(r,1,o))}`}let o=lr(t,{forceWritable:!0}),{replacedExpected:s,replacedActual:c}=zi(lr(e,{forceWritable:!0}),o);return Ei(s,c,n,r?Di(r):Ti)}function zi(e,t,n=new WeakSet,r=new WeakSet){return e instanceof Error&&t instanceof Error&&e.cause!==void 0&&t.cause===void 0?(delete e.cause,{replacedActual:e,replacedExpected:t}):!Li(e,t)||n.has(e)||r.has(t)?{replacedActual:e,replacedExpected:t}:(n.add(e),r.add(t),sr(t).forEach(i=>{let a=t[i],o=e[i];if(Ii(a)){if(a.asymmetricMatch(o))t[i]=o;else if(`sample`in a&&a.sample!==void 0&&Li(o,a.sample)){let s=zi(o,a.sample,n,r);e[i]=s.replacedActual,t[i]=s.replacedExpected}}else if(Ii(o)){if(o.asymmetricMatch(a))e[i]=a;else if(`sample`in o&&o.sample!==void 0&&Li(o.sample,a)){let s=zi(o.sample,a,n,r);e[i]=s.replacedActual,t[i]=s.replacedExpected}}else if(Li(o,a)){let s=zi(o,a,n,r);e[i]=s.replacedActual,t[i]=s.replacedExpected}}),{replacedActual:e,replacedExpected:t})}function Bi(...e){let t=e.reduce((e,t)=>t.length>e?t.length:e,0);return e=>`${e}: ${` `.repeat(t-e.length)}`}var Vi=`·`;function Hi(e){return e.replace(/\s+$/gm,e=>Vi.repeat(e.length))}function Ui(e){return o.red(Hi(k(e)))}function Wi(e){return o.green(Hi(k(e)))}function Gi(e,t,n){return e.reduce((e,r)=>e+(r[0]===0?r[1]:r[0]===t?n?o.inverse(r[1]):r[1]:``),``)}var Ki=`@@__IMMUTABLE_RECORD__@@`,qi=`@@__IMMUTABLE_ITERABLE__@@`;function Ji(e){return e&&(e[qi]||e[Ki])}var Yi=Object.getPrototypeOf({});function Xi(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e==`string`?`<unserializable>: ${e}`:`<unserializable>`}
32function Zi(e,t=new WeakMap){if(!e||typeof e==`string`)return e;if(e instanceof Error&&`toJSON`in e&&typeof e.toJSON==`function`){let n=e.toJSON();return n&&n!==e&&typeof n==`object`&&(typeof e.message==`string`&&Qi(()=>n.message??=$i(e.message)),typeof e.stack==`string`&&Qi(()=>n.stack??=e.stack),typeof e.name==`string`&&Qi(()=>n.name??=e.name),e.cause!=null&&Qi(()=>n.cause??=Zi(e.cause,t))),Zi(n,t)}if(typeof e==`function`)return`Function<${e.name||`anonymous`}>`;if(typeof e==`symbol`)return e.toString();if(typeof e!=`object`)return e;if(typeof Buffer<`u`&&e instanceof Buffer)return`<Buffer(${e.length}) ...>`;if(typeof Uint8Array<`u`&&e instanceof Uint8Array)return`<Uint8Array(${e.length}) ...>`;if(Ji(e))return Zi(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype===`AsyncFunction`)return`Promise`;if(typeof Element<`u`&&e instanceof Element)return e.tagName;if(typeof e.toJSON==`function`)return Zi(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let n=Array(e.length);return t.set(e,n),e.forEach((e,r)=>{try{n[r]=Zi(e,t)}catch(e){n[r]=Xi(e)}}),n}{let n=Object.create(null);t.set(e,n);let r=e;for(;r&&r!==Yi;)Object.getOwnPropertyNames(r).forEach(r=>{if(!(r in n))try{n[r]=Zi(e[r],t)}catch(e){delete n[r],n[r]=Xi(e)}}),r=Object.getPrototypeOf(r);return e instanceof Error&&Qi(()=>n.message=$i(e.message)),n}}function Qi(e){try{return e()}catch{}}function $i(e){return e.replace(/\(0\s?,\s?__vite_ssr_import_\d+__.(\w+)\)/g,`$1`).replace(/__(vite_ssr_import|vi_import)_\d+__\./g,``).replace(/getByTestId('__vitest_\d+__')/g,`page`)}function ea(e,t,n=new WeakSet){if(!e||typeof e!=`object`)return{message:String(e)};let r=e;if(r.showDiff||r.showDiff===void 0&&r.expected!==void 0&&r.actual!==void 0){let e={...t,...r.diffOptions};r.diff=Ri(r.actual,r.expected,e,r),r.expected=ta(r.expected,e),r.actual=ta(r.actual,e)}try{!n.has(r)&&typeof r.cause==`object`&&(n.add(r),r.cause=ea(r.cause,t,n))}catch{}try{return Zi(r)}catch(e){return Zi(Error(`Failed to fully serialize error: ${e?.message}\nInner error message: ${r?.message}`))}}function ta(e,t){return typeof e==`string`?e:O(e,Mi(t))}var na=Symbol(`vitest:SAFE_TIMERS`);function ra(){let{setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:r,setImmediate:i,clearImmediate:a,queueMicrotask:o}=globalThis[na]||globalThis,{nextTick:s}=globalThis[na]||globalThis.process||{};return{nextTick:s,setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:r,setImmediate:i,clearImmediate:a,queueMicrotask:o}}function ia(e,t=setTimeout){return new Promise(n=>t(n,e))}var aa=/^[A-Za-z]:\//;function oa(e=``){return e&&e.replace(/\\/g,`/`).replace(aa,e=>e.toUpperCase())}var sa=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function ca(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}var la=function(...e){e=e.map(e=>oa(e));let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:ca();i&&i.length!==0&&(t=`${i}/${t}`,n=da(i))}return t=ua(t,!n),n&&!da(t)?`/${t}`:t.length>0?t:`.`};function ua(e,t){let n=``,r=0,i=-1,a=0,o=null;for(let s=0;s<=e.length;++s){if(s<e.length)o=e[s];else if(o===`/`)break;else o=`/`;if(o===`/`){if(i!==s-1&&a!==1){if(a===2){if(n.length<2||r!==2||n[n.length-1]!==`.`||n[n.length-2]!==`.`){if(n.length>2){let e=n.lastIndexOf(`/`);e===-1?(n=``,r=0):(n=n.slice(0,e),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}if(n.length>0){n=``,r=0,i=s,a=0;continue}}t&&(n+=n.length>0?`/..`:`..`,r=2)}else n.length>0?n+=`/${e.slice(i+1,s)}`:n=e.slice(i+1,s),r=s-i-1}i=s,a=0}else o===`.`&&a!==-1?++a:a=-1}return n}var da=function(e){return sa.test(e)},fa=44,pa=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,ma=new Uint8Array(64),ha=new Uint8Array(128);for(let e=0;e<pa.length;e++){let t=pa.charCodeAt(e);ma[e]=t,ha[t]=e}function ga(e,t){let n=0,r=0,i=0;do i=ha[e.next()],n|=(i&31)<<r,r+=5;while(i&32);let a=n&1;return n>>>=1,a&&(n=-2147483648|-n),t+n}function _a(e,t){return e.pos>=t?!1:e.peek()!==fa}var va=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){let{buffer:t,pos:n}=this,r=t.indexOf(e,n);return r===-1?t.length:r}};function ya(e){let{length:t}=e,n=new va(e),r=[],i=0,a=0,o=0,s=0,c=0;do{let e=n.indexOf(`;`),t=[],l=!0,u=0;for(i=0;n.pos<e;){let r;i=ga(n,i),i<u&&(l=!1),u=i,_a(n,e)?(a=ga(n,a),o=ga(n,o),s=ga(n,s),_a(n,e)?(c=ga(n,c),r=[i,a,o,s,c]):r=[i,a,o,s]):r=[i],t.push(r),n.pos++}l||ba(t),r.push(t),n.pos=e+1}while(n.pos<=t);return r}function ba(e){e.sort(xa)}function xa(e,t){return e[0]-t[0]}var Sa=0,Ca=1,wa=2,Ta=3,Ea=4,Da=!1;function Oa(e,t,n,r){for(;n<=r;){let i=n+(r-n>>1),a=e[i][Sa]-t;if(a===0)return Da=!0,i;a<0?n=i+1:r=i-1}return Da=!1,n-1}function ka(e,t,n){for(let r=n+1;r<e.length&&e[r][Sa]===t;n=r++);return n}function Aa(e,t,n){for(let r=n-1;r>=0&&e[r][Sa]===t;n=r--);return n}function ja(e,t,n,r){let{lastKey:i,lastNeedle:a,lastIndex:o}=n,s=0,c=e.length-1;
32if(r===i){if(t===a)return Da=o!==-1&&e[o][Sa]===t,o;t>=a?s=o===-1?0:o:c=o}return n.lastKey=r,n.lastNeedle=t,n.lastIndex=Oa(e,t,s,c)}var Ma="`line` must be greater than 0 (lines start at line 1)",Na="`column` must be greater than or equal to 0 (columns start at column 0)",Pa=-1,Fa=1;function Ia(e){return e}function La(e){var t;return(t=Ia(e))._decoded||(t._decoded=ya(Ia(e)._encoded))}function Ra(e,t){let{line:n,column:r,bias:i}=t;if(n--,n<0)throw Error(Ma);if(r<0)throw Error(Na);let a=La(e);if(n>=a.length)return za(null,null,null,null);let o=a[n],s=Ba(o,Ia(e)._decodedMemo,n,r,i||Fa);if(s===-1)return za(null,null,null,null);let c=o[s];if(c.length===1)return za(null,null,null,null);let{names:l,resolvedSources:u}=e;return za(u[c[Ca]],c[wa]+1,c[Ta],c.length===5?l[c[Ea]]:null)}function za(e,t,n,r){return{source:e,line:t,column:n,name:r}}function Ba(e,t,n,r,i){let a=ja(e,r,t,n);return Da?a=(i===Pa?ka:Aa)(e,r,a):i===Pa&&a++,a===-1||a===e.length?-1:a}var Va=/^\s*at .*(?:\S:\d+|\(native\))/m,Ha=/^(?:eval@)?(?:\[native code\])?$/,Ua=[`node:internal`,/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,`/vitest/dist/`,`/vitest/src/`,`/node_modules/chai/`,`/node_modules/tinyspy/`,`/vite/dist/node/module-runner`,`/rolldown-vite/dist/node/module-runner`,`/deps/chunk-`,`/deps/@vitest`,`/deps/loupe`,`/deps/chai`,`/browser-playwright/dist/locators.js`,`/browser-webdriverio/dist/locators.js`,`/browser-preview/dist/locators.js`,/node:\w+/,/__vitest_test__/,/__vitest_browser__/,`/@id/__x00__vitest/browser`,/\/deps\/vitest_/],Wa=Date.now().toString().length,Ga=RegExp(`vitest=\\d{${Wa}}`);function Ka(e){if(!e.includes(`:`))return[e];let t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,``));if(!t)return[e];let n=t[1];if(n.startsWith(`async `)&&(n=n.slice(6)),n.startsWith(`http:`)||n.startsWith(`https:`)){let e=new URL(n);e.searchParams.delete(`import`),e.searchParams.delete(`browserv`),n=e.pathname+e.hash+e.search}if(n.startsWith(`/@fs/`)){let e=/^\/@fs\/[a-zA-Z]:\//.test(n);n=n.slice(e?5:4)}return n.includes(`vitest=`)&&(n=n.replace(Ga,``).replace(/[?&]$/,``)),[n,t[2]||void 0,t[3]||void 0]}function qa(e){let t=e.trim();if(Ha.test(t)||(t.includes(` > eval`)&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,`:$1`)),!t.includes(`@`)))return null;let n=-1,r=``,i;for(let e=0;e<t.length;e++)if(t[e]===`@`){let a=t.slice(e+1);if(a.includes(`:`)&&a.length>=3){n=e,r=a,i=e>0?t.slice(0,e):void 0;break}}if(n===-1||!r.includes(`:`)||r.length<3)return null;let[a,o,s]=Ka(r);return!a||!o||!s?null:{file:a,method:i||``,line:Number.parseInt(o),column:Number.parseInt(s)}}function Ja(e){let t=e.trim();return Va.test(t)?Ya(t):qa(t)}function Ya(e){let t=e.trim();if(!Va.test(t))return null;t.includes(`(eval `)&&(t=t.replace(/eval code/g,`eval`).replace(/(\(eval at [^()]*)|(,.*$)/g,``));let n=t.replace(/^\s+/,``).replace(/\(eval code/g,`(`).replace(/^.*?\s+/,``),r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],``):n;let[i,a,o]=Ka(r?r[1]:n),s=r&&n||``,c=i&&[`eval`,`<anonymous>`].includes(i)?void 0:i;return!c||!a||!o?null:(s.startsWith(`async `)&&(s=s.slice(6)),c.startsWith(`file://`)&&(c=c.slice(7)),c=c.startsWith(`node:`)||c.startsWith(`internal:`)?c:la(c),s&&=s.replace(/\(0\s?,\s?__vite_ssr_import_\d+__.(\w+)\)/g,`$1`).replace(/__(vite_ssr_import|vi_import)_\d+__\./g,``).replace(/(Object\.)?__vite_ssr_export_default__\s?/g,``),{method:s,file:c,line:Number.parseInt(a),column:Number.parseInt(o)})}function Xa(e,t={}){let{ignoreStackEntries:n=Ua}=t,r=Va.test(e)?$a(e):Qa(e),i=r.findLastIndex(e=>e.method.includes(`__VITEST_HELPER__`));return i>=0&&(r=r.slice(i+1)),r.map(e=>{t.getUrlId&&(e.file=t.getUrlId(e.file));let r=t.getSourceMap?.(e.file);if(!r||typeof r!=`object`||!r.version)return Za(n,e.file)?null:e;let i=ro(new to(r,e.file),e);if(!i)return e;let{line:a,column:o,source:s,name:c}=i,l=s||e.file;return l.match(/\/\w:\//)&&(l=l.slice(1)),Za(n,l)?null:a!=null&&o!=null?{line:a,column:o,file:l,method:c||e.method}:e}).filter(e=>e!=null)}function Za(e,t){return e.some(e=>t.match(e))}function Qa(e){return e.split(`
33`).map(e=>qa(e)).filter($n)}function $a(e){return e.split(`
34`).map(e=>Ya(e)).filter($n)}function eo(e,t={}){if(!e||er(e))return[];if(`stacks`in e&&e.stacks)return e.stacks;let n=e.stack||``,r=typeof n==`string`?Xa(n,t):[];if(!r.length){let n=e;n.fileName!=null&&n.lineNumber!=null&&n.columnNumber!=null&&(r=Xa(`${n.fileName}:${n.lineNumber}
34:${n.columnNumber}`,t)),n.sourceURL!=null&&n.line!=null&&n._column!=null&&(r=Xa(`${n.sourceURL}:${n.line}:${n.column}`,t))}return t.frameFilter&&(r=r.filter(n=>t.frameFilter(e,n)!==!1)),e.stacks=r,r}var to=class{constructor(t,n){e(this,`_encoded`,void 0),e(this,`_decoded`,void 0),e(this,`_decodedMemo`,void 0),e(this,`url`,void 0),e(this,`version`,void 0),e(this,`names`,[]),e(this,`resolvedSources`,void 0),this.map=t;let{mappings:r,names:i,sources:a}=t;this.version=t.version,this.names=i||[],this._encoded=r||``,this._decodedMemo=no(),this.url=n,this.resolvedSources=(a||[]).map(e=>la(n,`..`,e||``))}};function no(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function ro(e,t){let n=Ra(e,t);return n.column==null?null:n}var io=/^[A-Za-z]:\//;function ao(e=``){return e&&e.replace(/\\/g,`/`).replace(io,e=>e.toUpperCase())}var oo=/^[/\\]{2}/,so=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,co=/^[A-Za-z]:$/,lo=function(e){if(e.length===0)return`.`;e=ao(e);let t=e.match(oo),n=fo(e),r=e[e.length-1]===`/`;return e=uo(e,!n),e.length===0?n?`/`:r?`./`:`.`:(r&&(e+=`/`),co.test(e)&&(e+=`/`),t?n?`//${e}`:`//./${e}`:n&&!fo(e)?`/${e}`:e)};function uo(e,t){let n=``,r=0,i=-1,a=0,o=null;for(let s=0;s<=e.length;++s){if(s<e.length)o=e[s];else if(o===`/`)break;else o=`/`;if(o===`/`){if(i!==s-1&&a!==1){if(a===2){if(n.length<2||r!==2||n[n.length-1]!==`.`||n[n.length-2]!==`.`){if(n.length>2){let e=n.lastIndexOf(`/`);e===-1?(n=``,r=0):(n=n.slice(0,e),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}if(n.length>0){n=``,r=0,i=s,a=0;continue}}t&&(n+=n.length>0?`/..`:`..`,r=2)}else n.length>0?n+=`/${e.slice(i+1,s)}`:n=e.slice(i+1,s),r=s-i-1}i=s,a=0}else o===`.`&&a!==-1?++a:a=-1}return n}var fo=function(e){return so.test(e)},po=class extends Error{constructor(t,n,r){super(t),e(this,`code`,`VITEST_PENDING`),e(this,`taskId`,void 0),this.message=t,this.note=r,this.taskId=n.id}},mo=class extends Error{constructor(...t){super(...t),e(this,`name`,`FixtureDependencyError`)}},ho=class extends Error{constructor(...t){super(...t),e(this,`name`,`FixtureAccessError`)}},go=class extends Error{constructor(...t){super(...t),e(this,`name`,`FixtureParseError`)}},_o=new WeakMap,vo=new WeakMap,yo=new WeakMap;function bo(e,t){_o.set(e,t)}function xo(e){return _o.get(e)}function So(e,t){vo.set(e,t)}function Co(e){return vo.get(e)}function wo(e,t){yo.set(e,t)}function To(e){return yo.get(e)}var Eo=Symbol.for(`VITEST_FIXTURE_STACK_TRACE`),Do=class t{static clearDefinitions(){t._definitions.length=0}static getWorkerContexts(){return t._definitions.map(e=>e.getWorkerContext())}static getFileContexts(e){return t._definitions.map(t=>t.getFileContext(e))}static isFixtureOptions(e){return rr(e)&&Object.keys(e).some(e=>t._fixtureOptionKeys.includes(e))}constructor(n){e(this,`_suiteContexts`,void 0),e(this,`_overrides`,new WeakMap),e(this,`_registrations`,void 0),this._registrations=n??new Map,this._suiteContexts=new WeakMap,t._definitions.push(this)}extend(e,n){let{suite:r}=N(),i=!r||r.file===r,a=this.parseUserFixtures(e,n,i);return new t(a)}get(e){let t=e;for(;t;){let e=this._overrides.get(t);if(e)return e;if(t===t.file)break;t=t.suite||t.file}return this._registrations}override(e,t){let{suite:n,file:r}=N(),i=n||r,a=!n||n.file===n,o=new Map(this.get(i)),s=this.parseUserFixtures(e,t,a,o);a?this._registrations=s:this._overrides.set(i,s)}getFileContext(e){return this._suiteContexts.has(e)||this._suiteContexts.set(e,Object.create(null)),this._suiteContexts.get(e)}getWorkerContext(){return this._suiteContexts.has(t._workerContextSuite)||this._suiteContexts.set(t._workerContextSuite,Object.create(null)),this._suiteContexts.get(t._workerContextSuite)}parseUserFixtures(e,n,r,i=new Map(this._registrations)){let a=[];Object.entries(n).forEach(([n,o])=>{let s,c,l;Array.isArray(o)&&o.length>=2&&t.isFixtureOptions(o[1])?(l=o[1],s={auto:l.auto??!1,scope:l.scope??`test`,injected:l.injected??!1},c=s.injected?e.injectValue?.(n)??o[0]:o[0]):c=o;let u=i.get(n);u&&s?(u.scope!==s.scope&&a.push(new mo(`The "${n}" fixture was already registered with a "${s.scope}" scope.`)),u.auto!==s.auto&&a.push(new mo(`The "${n}" fixture was already registered as { auto: ${s.auto} }.`))):u?s={auto:u.auto,scope:u.scope,injected:u.injected}:s||={auto:!1,injected:!1,scope:`test`},s.scope&&!t._fixtureScopes.includes(s.scope)&&a.push(new mo(`The "${n}" fixture has unknown scope "${s.scope}".`)),!r&&s.scope!==`test`&&a.push(new mo(`The "${n}" fixture cannot be defined with a ${s.scope} scope${!l?.scope&&u?.scope?` (inherited from the base fixture)`:``} inside the describe block. Define it at the top level of the file instead.`));let d=Mo(c)?Uo(c):new Set,f={name:n,value:c,auto:s.auto??!1,injected:s.injected??!1,scope:s.scope??`test`,deps:d,parent:u};Mo(c)&&Object.assign(c,{[Eo]:Error(`STACK_TRACE_ERROR`)}),i.set(n,f),f.scope===`worker`&&(e.pool===`vmThreads`||e.pool===`vmForks`)&&(f.scope=`file`)});for(let e of i.values())for(let n of e.deps){if(t._builtinFixtures.includes(n))continue;let r=i.get(n);if(!r){a.push(new mo(`The "${e.name}" fixture depends on unknown fixture "${n}".`));continue}if(n===e.name&&!e.parent){a.push(new mo(`The "${e.name}" fixture depends on itself, but does not have a base implementation.`));continue}if(t._fixtureScopes.indexOf(e.scope)>t._fixtureScopes.indexOf(r.scope)){a.push(new mo(`The ${e.scope} "${e.name}" fixture cannot depend on a ${r.scope} fixture "${r.name}".`));continue}}if(a.length===1)throw a[0];if(a.length>1)throw AggregateError(a,`Cannot resolve user fixtures. See errors for more information.`);return i}};e(Do,`_definitions`,[]),e(Do,`_builtinFixtures`,[`task`,`signal`,`onTestFailed`,`onTestFinished`,`skip`,`annotate`]),e(Do,`_fixtureOptionKeys`,[`auto`,`injected`,`scope`]),e(Do,`_fixtureScopes`,[`test`,`file`,`worker`]),e(Do,`_workerContextSuite`,{type:`worker`});var Oo=new WeakMap,ko=new WeakMap;function Ao(e,t){let n=N(),r=t?.suite||n.suite||n.file;return async n=>{let i=n||t?.context;if(!i)return t?.suiteHook&&Ro(e,t.suiteHook,t.stackTraceError),e({});let a=t?.fixtures||Co(i);if(!a)return e(i);let o=a.get(r);if(!o.size)return e(i);let s=[],c=Uo(e);for(let e of o.values())(jo(e,t)||c.has(e.name))&&s.push(e);if(!s.length)return e(i);Oo.has(i)||Oo.set(i,[]);let l=Oo.get(i),u=Lo(s,o);if(!u.length)return e(i);if(t?.suiteHook){let e=u.filter(e=>e.scope===`test`);if(e.length>0){let n=e.map(e=>`"${e.name}"`).join(`, `),r=new mo(`Test-scoped fixtures cannot be used inside ${t.suiteHook} hook. The following fixtures are test-scoped: ${n}. Use { scope: 'file' } or { scope: 'worker' } fixtures instead, or move the logic to ${{aroundAll:`aroundEach`,beforeAll:`beforeEach`,afterAll:`afterEach`}[t.suiteHook]} hook.`);throw t.stackTraceError?.stack&&(r.stack=r.message+t.stackTraceError.stack.replace(t.stackTraceError.message,``)),r}}ko.has(i)||ko.set(i,new WeakSet);let d=ko.get(i);for(let e of u)if(e.scope===`test`){if(d.has(e))continue;d.add(e);let t=await No(e,i,l);i[e.name]=t,l.push(()=>{d.delete(e)})}else{let t=await Fo(a,r,e);i[e.name]=t}return e(i)}}function jo(e,t){return!(!e.auto||t?.suiteHook&&e.scope===`test`)}function Mo(e){return typeof e==`function`}function No(e,t,n){return Mo(e.value)?Io(e.value,e.name,t,n):e.value}var Po=new WeakMap;
34async function Fo(e,t,n){let r=e.getWorkerContext(),i=e.getFileContext(t.file),a=n.scope===`worker`?r:i;if(!Mo(n.value))return a[n.name]=n.value,n.value;if(n.name in a)return a[n.name];if(Po.has(n))return Po.get(n);Oo.has(a)||Oo.set(a,[]);let o=Oo.get(a),s=Io(n.value,n.name,n.scope===`file`?{...r,...i}:a,o).then(e=>(a[n.name]=e,Po.delete(n),e));return Po.set(n,s),s}async function Io(e,t,n,r){let i=pr(),a=Eo in e&&e[Eo]instanceof Error?e[Eo]:void 0,o=!1,s=e(n,async e=>{o=!0,i.resolve(e);let t=pr();r.push(async()=>{t.resolve(),await s}),await t}).then(()=>{if(!o){let e=Error(`Fixture "${t}" returned without calling "use". Make sure to call "use" in every code path of the fixture function.`);a?.stack&&(e.stack=e.message+a.stack.replace(a.message,``)),i.reject(e)}}).catch(e=>{if(!o){i.reject(e);return}throw e});return i}function Lo(e,t,n=new Set,r=[]){return e.forEach(e=>{if(!r.includes(e)){if(!Mo(e.value)||!e.deps){r.push(e);return}if(n.has(e)){if(e.parent)e=e.parent;else throw Error(`Circular fixture dependency detected: ${e.name} <- ${[...n].reverse().map(e=>e.name).join(` <- `)}`)}n.add(e),Lo([...e.deps].map(n=>n===e.name?e.parent:t.get(n)).filter(e=>!!e),t,n,r),r.push(e),n.clear()}}),r}function Ro(e,t,n){let r=Uo(e,{sourceError:n,suiteHook:t});if(r.size){let e=new ho(`The ${t} hook uses fixtures "${[...r].join(`", "`)}", but has no access to context. Did you forget to call it as "test.${t}()" instead of "${t}()"?\nIf you used internal "suite" task as the first argument previously, access it in the second argument instead. See https://vitest.dev/guide/test-context#suite-level-hooks`);throw n&&(e.stack=n.stack?.replace(n.message,e.message)),e}}var zo=Symbol(`$vitest:fixture-props`),Bo=Symbol(`$vitest:fixture-prop-names`);function Vo(e,t){Object.defineProperty(e,zo,{value:t,enumerable:!1})}function Ho(e,t){return e[Bo]=t,t}function Uo(e,{sourceError:t,suiteHook:n}={}){if(Bo in e)return e[Bo];let{index:r=0,original:i=e}=zo in e?e[zo]:{},a=tr(i.toString());/__async\((?:this|null), (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(a)&&(a=a.split(/__async\((?:this|null),/)[1]);let o=a.match(/[^(]*\(([^)]*)/);if(!o)return Ho(e,new Set);let s=Wo(o[1]);if(!s.length)return Ho(e,new Set);let c=s[r];if(!c)return Ho(e,new Set);if(!(c[0]===`{`&&c.endsWith(`}`))){let e=gr(r+1),i=new go(`The ${e} argument inside a fixture must use object destructuring pattern, e.g. ({ task } => {}). Instead, received "${c}".${n?` If you used internal "suite" task as the ${e} argument previously, access it in the ${gr(r+2)} argument instead.`:``}`);throw t&&(i.stack=t.stack?.replace(t.message,i.message)),i}let l=Wo(c.slice(1,-1).replace(/\s/g,``)).map(e=>e.replace(/:.*|=.*/g,``)),u=l.at(-1);if(u&&u.startsWith(`...`)){let e=new go(`Rest parameters are not supported in fixtures, received "${u}".`);throw t&&(e.stack=t.stack?.replace(t.message,e.message)),e}return Ho(e,new Set(l))}function Wo(e){let t=[],n=[],r=0;for(let i=0;i<e.length;i++)if(e[i]===`{`||e[i]===`[`)n.push(e[i]===`{`?`}`:`]`);else if(e[i]===n.at(-1))n.pop();else if(!n.length&&e[i]===`,`){let n=e.substring(r,i).trim();n&&t.push(n),r=i+1}let i=e.substring(r).trim();return i&&t.push(i),t}function Go(){}var Ko=Symbol(`kChainableContext`);function qo(e){return e?.[Ko]}function Jo(e,t,n){function r(n){let i=function(...e){return t.apply(n,e)};Object.assign(i,t),Object.defineProperty(i,Ko,{value:{withContext:()=>i.bind(n),getFixtures:()=>n.fixtures,setContext:(e,t)=>
34{n[e]=t},mergeContext:e=>{Object.assign(n,e)}},enumerable:!1});for(let t of e)Object.defineProperty(i,t,{get(){return r({...n,[t]:!0})}});return i}let i=r(n??{});return Object.defineProperty(i,"fn",{value:t,enumerable:!1}),i}function Yo(){return Ls().config.hookTimeout}var Xo=Symbol.for(`VITEST_CLEANUP_TIMEOUT`),Zo=Symbol.for(`VITEST_CLEANUP_STACK_TRACE`),Qo=Symbol.for(`VITEST_AROUND_TIMEOUT`),$o=Symbol.for(`VITEST_AROUND_STACK_TRACE`);function es(e,t=Yo()){A(e,`"beforeAll" callback`,[`function`]);let n=Error(`STACK_TRACE_ERROR`),r=qo(this);return N().on(`beforeAll`,Object.assign($s(os(`beforeAll`,e,r,n),t,!0,n),{[Xo]:t,[Zo]:n}))}function ts(e,t){A(e,`"afterAll" callback`,[`function`]);let n=qo(this),r=Error(`STACK_TRACE_ERROR`);return N().on(`afterAll`,$s(os(`afterAll`,e,n,r),t??Yo(),!0,r))}function ns(e,t=Yo()){A(e,`"beforeEach" callback`,[`function`]);let n=Error(`STACK_TRACE_ERROR`);return N().on(`beforeEach`,Object.assign($s((t,n)=>Ao(e,{suite:n})(t),t??Yo(),!0,n,nc),{[Xo]:t,[Zo]:n}))}function rs(e,t){return A(e,`"afterEach" callback`,[`function`]),N().on(`afterEach`,$s((t,n)=>Ao(e,{suite:n})(t),t??Yo(),!0,Error(`STACK_TRACE_ERROR`),nc))}function is(e,t){A(e,`"aroundAll" callback`,[`function`]);let n=Error(`STACK_TRACE_ERROR`),r=t??Yo(),i=qo(this);return N().on(`aroundAll`,Object.assign(os(`aroundAll`,e,i,n,1),{[Qo]:r,[$o]:n}))}function as(e,t){A(e,`"aroundEach" callback`,[`function`]);let n=Error(`STACK_TRACE_ERROR`),r=t??Yo();return N().on(`aroundEach`,Object.assign((t,n,r)=>{let i=n=>e(t,n,r);return Vo(i,{index:1,original:e}),Ao(i,{suite:r})(n)},{[Qo]:r,[$o]:n}))}function os(e,t,n,r,i=0){return(...a)=>{let o=a.at(-1),s=a.slice(0,-1),c=e=>t(...s,e,o);Vo(c,{index:i,original:t});let l=n?.getFixtures(),u=l?.getFileContext(o.file);return Ao(c,{suiteHook:e,fixtures:l,context:u,stackTraceError:r})()}}function ss(e,t){let n=t.split(`
35`).slice(1);for(let t of n){let n=Ja(t);if(n&&n.file===e)return n}}var cs=new WeakMap;function ls(e){let t=Ls(),n=t._currentSpecification?.testTagsFilter??t.config.tagsFilter;if(!n)return!0;let r=cs.get(n);return r||(r=fs(n,t.config.tags),cs.set(n,r)),r(e)}function us(e,t){if(!e.strictTags)return;let n=new Set(e.tags.map(e=>e.name));for(let r of t)if(!n.has(r))throw ds(e.tags,r)}function ds(e,t,n=`tag`){throw e.length?Error(`The ${n} "${t}" is not defined in the configuration. Available tags are:\n${e.map(e=>`- ${e.name}${e.description?`: ${e.description}`:``}`).join(`
36`)}`):Error(`The Vitest config does't define any "tags", cannot apply "${t}" ${n} for this test. See: https://vitest.dev/guide/test-tags`)}function fs(e,t){let n=e.map(e=>ps(e,t));return e=>n.every(t=>t(e))}function ps(e,t){let n=new gs(hs(e),e),r=vs(n,t);if(n.peek().type!==`EOF`)throw Error(`Invalid tags expression: unexpected "${ms(n.peek())}" in "${e}"`);return e=>ws(r,e)}function ms(e){switch(e.type){case`TAG`:return e.value;default:return _s(e.type)}}function hs(e){let t=[],n=0;for(;n<e.length;){if(e[n]===` `||e[n]===`	`){n++;continue}if(e[n]===`(`){t.push({type:`LPAREN`}),n++;continue}if(e[n]===`)`){t.push({type:`RPAREN`}),n++;continue}if(e[n]===`!`){t.push({type:`NOT`}),n++;continue}if(e.slice(n,n+2)===`&&`){t.push({type:`AND`}),n+=2;continue}if(e.slice(n,n+2)===`||`){t.push({type:`OR`}),n+=2;continue}if(/^and(?:\s|\)|$)/i.test(e.slice(n))){t.push({type:`AND`}),n+=3;continue}if(/^or(?:\s|\)|$)/i.test(e.slice(n))){t.push({type:`OR`}),n+=2;continue}if(/^not\s/i.test(e.slice(n))){t.push({type:`NOT`}),n+=3;continue}let r=``;for(;n<e.length&&e[n]!==` `&&e[n]!==`	`&&e[n]!==`(`&&e[n]!==`)`&&e[n]!==`!`&&e[n]!==`&`&&e[n]!==`|`;){let t=e.slice(n);if(r===``&&(/^and(?:\s|\)|$)/i.test(t)||/^or(?:\s|\)|$)/i.test(t)||/^not\s/i.test(t)))break;r+=e[n],n++}r&&t.push({type:`TAG`,value:r})}return t.push({type:`EOF`}),t}var gs=class{constructor(t,n){e(this,`pos`,0),this.tokens=t,this.expr=n}peek(){return this.tokens[this.pos]}next(){return this.tokens[this.pos++]}expect(e){let t=this.next();if(t.type!==e)throw e===`RPAREN`&&t.type===`EOF`?Error(`Invalid tags expression: missing closing ")" in "${this.expr}"`):Error(`Invalid tags expression: expected "${_s(e)}" but got "${ms(t)}" in "${this.expr}"`);return t}unexpectedToken(){let e=this.peek();throw e.type===`EOF`?Error(`Invalid tags expression: unexpected end of expression in "${this.expr}"`):Error(`Invalid tags expression: unexpected "${ms(e)}" in "${this.expr}"`)}};function _s(e){switch(e){case`TAG`:return`tag`;case`AND`:return`and`;case`OR`:return`or`;case`NOT`:return`not`;
36case`LPAREN`:return`(`;case`RPAREN`:return`)`;case`EOF`:return`end of expression`}}function vs(e,t){let n=ys(e,t);for(;e.peek().type===`OR`;){e.next();let r=ys(e,t);n={type:`or`,left:n,right:r}}return n}function ys(e,t){let n=bs(e,t);for(;e.peek().type===`AND`;){e.next();let r=bs(e,t);n={type:`and`,left:n,right:r}}return n}function bs(e,t){return e.peek().type===`NOT`?(e.next(),{type:`not`,operand:bs(e,t)}):xs(e,t)}function xs(e,t){let n=e.peek();if(n.type===`LPAREN`){e.next();let n=vs(e,t);return e.expect(`RPAREN`),n}if(n.type===`TAG`){e.next();let r=n.value;return{type:`tag`,value:r,pattern:Cs(r,t)}}e.unexpectedToken()}function Ss(e){return RegExp(`^${e.replace(/[.+?^${}()|[\]\\]/g,`\\$&`).replace(/\*/g,`.*`)}$`)}function Cs(e,t){if(e.includes(`*`)){let n=Ss(e);if(!t.some(e=>n.test(e.name)))throw ds(t,e,`tag pattern`);return n}if(!t.length||!t.some(t=>t.name===e))throw ds(t,e,`tag pattern`);return null}function ws(e,t){switch(e.type){case`tag`:return e.pattern?t.some(t=>e.pattern.test(t)):t.includes(e.value);case`not`:return!ws(e.operand,t);case`and`:return ws(e.left,t)&&ws(e.right,t);case`or`:return ws(e.left,t)||ws(e.right,t)}}function Ts(e){return e.type===`test`}function Es(e){let t=[],n=nr(e);for(let e of n)if(Ts(e))t.push(e);else for(let n of e.tasks)if(Ts(n))t.push(n);else{let e=Es(n);for(let n of e)t.push(n)}return t}function Ds(e){let t=[e.name],n=e;for(;n?.suite;)n=n.suite,n?.name&&t.unshift(n.name);return n!==e.file&&t.unshift(e.file.name),t}function Os(e,t=` > `){return Ds(e).slice(1).join(t)}function ks(e,t=` > `){return e.filter(e=>e!==void 0).join(t)}var As=Us(),js=Gs(function(e,t,n){N().test.fn.call(this,Ks(e),t,n)}),Ms=As,Ns=js,M,Ps,Fs;function Is(e,t){if(!e)throw Error(`Vitest failed to find ${t}. One of the following is possible:
37- "vitest" is imported directly without running "vitest" command
38- "vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)
39- "vitest" is imported inside Vite / Vitest config file
40- Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues
41`)}function Ls(){Is(M,`the runner`)}function N(){let e=P.currentSuite||Ps;return Is(e,`the current suite`),e}function Rs(){return{beforeAll:[],afterAll:[],beforeEach:[],afterEach:[],aroundEach:[],aroundAll:[]}}var zs=1/0;function Bs(e,t){if(typeof t==`object`&&t)throw TypeError(`Signature "test(name, fn, { ... })" was deprecated in Vitest 3 and removed in Vitest 4. Please, provide options as a second argument instead.`);let n={},r;if(typeof t==`number`?n={timeout:t}:typeof e==`object`&&(n=e),typeof e==`function`){if(typeof t==`function`)throw TypeError(`Cannot use two functions as arguments. Please use the second argument for options.`);r=e}else typeof t==`function`&&(r=t);return{options:n,handler:r}}function Vs(e,t=()=>{},n,r,i){let a=[],o;d(!0);let s=function(e=``,t={}){let n=P.currentSuite?.suite,r=_r([...(n??P.currentSuite?.file)?.tags||[],...nr(t.tags)]),o=r.map(e=>{let t=M.config.tags?.find(t=>t.name===e);if(!t&&M.config.strictTags)throw ds(M.config.tags,e);return t}).filter(e=>e!=null).sort((e,t)=>(t.priority??zs)-(e.priority??zs)).reduce((e,t)=>{let{name:n,description:r,priority:i,meta:a,...o}=t;return Object.assign(e,o),a&&(e.meta=Object.assign(e.meta??Object.create(null),a)),e},{}),s=t.meta;t={...o,...t};let c=t.timeout??M.config.testTimeout,l=n?.meta,u=o.meta,d=Object.create(null);u&&Object.assign(d,u),l&&Object.assign(d,l),s&&Object.assign(d,s);let f={id:``,name:e,fullName:ks([n?.fullName??P.currentSuite?.file?.fullName,e]),fullTestName:ks([n?.fullTestName,e]),suite:n,each:t.each,fails:t.fails,context:void 0,type:`test`,file:n?.file??P.currentSuite?.file,timeout:c,retry:t.retry??M.config.retry,repeats:t.repeats,mode:t.only?`only`:t.skip?`skip`:t.todo?`todo`:`run`,meta:d,annotations:[],artifacts:[],tags:r},p=t.handler;f.mode===`run`&&!p&&(f.mode=`todo`),(t.concurrent??(!t.sequential&&M.config.sequence.concurrent))&&(f.concurrent=!0),f.shuffle=i?.shuffle;let m=ic(f,M);Object.defineProperty(f,"context",{value:m,enumerable:!1}),So(m,t.fixtures??new Do);let h=Error.stackTraceLimit;Error.stackTraceLimit=10;let g=Error(`STACK_TRACE_ERROR`);if(Error.stackTraceLimit=h,p&&bo(f,$s(ec(Hs(Ao(p,{context:m}),f),f.context.signal),c,!1,g,(e,t)=>nc([m],t))),M.config.includeTaskLocation){let e=g.stack,t=ss(Fs,e);t&&(f.location={line:t.line,column:t.column})}return a.push(f),f},c=Gs(function(e,t,n){let{options:r,handler:a}=Bs(t,n);typeof i==`object`&&(r=Object.assign({},i,r));let o=this.concurrent??(!this.sequential&&r?.concurrent);r.concurrent!=null&&o!=null&&(r.concurrent=o);let c=this.sequential??(!this.concurrent&&r?.sequential);r.sequential!=null&&c!=null&&(r.sequential=c);let l=s(Ks(e),{...this,...r,handler:a});l.type=`test`}),l={type:`collector`,name:e,mode:n,suite:o,options:i,test:c,file:o.file,tasks:a,collect:p,task:s,clear:f,on:u};function u(e,...t){To(o)[e].push(...t)}function d(t){typeof i==`number`&&(i={timeout:i});let a=P.currentSuite?.suite,s=a??P.currentSuite?.file,c=nr(i?.tags);us(M.config,c),o={id:``,type:`suite`,name:e,fullName:ks([a?.fullName??P.currentSuite?.file?.fullName,e]),fullTestName:ks([a?.fullTestName,e]),suite:a,mode:n,each:r,file:a?.file??P.currentSuite?.file,shuffle:i?.shuffle,tasks:[],meta:i?.meta??Object.create(null),concurrent:i?.concurrent,tags:_r([...s?.tags||[],...c])},wo(o,Rs())}function f(){a.length=0,d(!1)}async function p(e){if(!e)throw TypeError(`File is required to collect tasks.`);t&&await Qs(l,()=>t(c));let n=[];for(let t of a)n.push(t.type===`collector`?await t.collect(e):t);return o.tasks=n,o}return Zs(l),l}function Hs(e,t){return(async(...n)=>{let r=await e(...n);if(t.promises){let e=(await Promise.allSettled(t.promises)).map(e=>
41e.status===`rejected`?e.reason:void 0).filter(Boolean);if(e.length)throw e}return r})}function Us(){function e(e,t,n){let r=P.currentSuite||Ps,{options:i,handler:a}=Bs(t,n),o=i.concurrent||this.concurrent||i.sequential===!1,s=i.sequential||this.sequential||i.concurrent===!1,{meta:c,...l}=r?.options||{};i={...l,...i};let u=this.shuffle??i.shuffle??r?.options?.shuffle??void 0;u!=null&&(i.shuffle=u);let d=this.only??i.only?`only`:this.skip??i.skip?`skip`:this.todo??i.todo?`todo`:`run`;d===`run`&&!a&&(d=`todo`);let f=o||i.concurrent&&!s,p=s||i.sequential&&!o;return f!=null&&(i.concurrent=f&&!p),p!=null&&(i.sequential=p&&!f),c&&(i.meta=Object.assign(Object.create(null),c,i.meta)),Vs(Ks(e),a,d,this.each,i)}return e.each=function(e,...t){let n=qo(this),r=n.withContext();return n.setContext(`each`,!0),Array.isArray(e)&&t.length&&(e=Ys(e,t)),(t,i,a)=>{let o=Ks(t),s=e.every(Array.isArray),{options:c,handler:l}=Bs(i,a),u=typeof i==`function`;e.forEach((e,t)=>{let n=Array.isArray(e)?e:[e];u?s?r(qs(o,n,t),l?()=>l(...n):void 0,c.timeout):r(qs(o,n,t),l?()=>l(e):void 0,c.timeout):s?r(qs(o,n,t),c,l?()=>l(...n):void 0):r(qs(o,n,t),c,l?()=>l(e):void 0)}),n.setContext(`each`,void 0)}},e.for=function(e,...t){return Array.isArray(e)&&t.length&&(e=Ys(e,t)),(t,n,r)=>{let i=Ks(t),{options:a,handler:o}=Bs(n,r);e.forEach((e,t)=>{As(qs(i,nr(e),t),a,o?()=>o(e):void 0)})}},e.skipIf=e=>e?As.skip:As,e.runIf=e=>e?As:As.skip,Jo([`concurrent`,`sequential`,`shuffle`,`skip`,`only`,`todo`],e)}function Ws(e){let t=e;t.each=function(e,...t){let n=qo(this),r=n.withContext();return n.setContext(`each`,!0),Array.isArray(e)&&t.length&&(e=Ys(e,t)),(t,i,a)=>{let o=Ks(t),s=e.every(Array.isArray),{options:c,handler:l}=Bs(i,a),u=typeof i==`function`;e.forEach((e,t)=>{let n=Array.isArray(e)?e:[e];u?s?r(qs(o,n,t),l?()=>l(...n):void 0,c.timeout):r(qs(o,n,t),l?()=>l(e):void 0,c.timeout):s?r(qs(o,n,t),c,l?()=>l(...n):void 0):r(qs(o,n,t),c,l?()=>l(e):void 0)}),n.setContext(`each`,void 0)}},t.for=function(e,...t){let n=qo(this).withContext();return Array.isArray(e)&&t.length&&(e=Ys(e,t)),(t,r,i)=>{let a=Ks(t),{options:o,handler:s}=Bs(r,i);e.forEach((e,t)=>{let r=s?t=>s(e,t):void 0;r&&Vo(r,{index:1,original:s}),n(qs(a,nr(e),t),o,r)})}},t.skipIf=function(e){return e?this.skip:this},t.runIf=function(e){return e?this:this.skip};function n(e,t,n){if(typeof e!=`string`)return e;let r=e,i,a;if(n===void 0?typeof t==`object`&&t&&!Array.isArray(t)&&Do.isFixtureOptions(t)?(i=t,a={}):(i=void 0,a=t):(i=t,a=n),typeof a==`function`){let e=a,t=async(t,n)=>{let r;await n(await e(t,{onCleanup:e=>{if(r!==void 0)throw Error(`onCleanup can only be called once per fixture. Define separate fixtures if you need multiple cleanup functions.`);r=e}})),r&&await r()};return Vo(t,{original:e}),i?{[r]:[t,i]}:{[r]:t}}return i?{[r]:[a,i]}:{[r]:a}}return t.override=function(e,t,r){let i=n(e,t,r);return qo(this).getFixtures().override(M,i),this},t.scoped=function(e){return console.warn(`test.scoped() is deprecated and will be removed in future versions. Please use test.override() instead.`),this.override(e)},t.extend=function(t,r,i){let a=n(t,r,i),o=qo(this).getFixtures().extend(M,a),s=Gs(function(t,n,r){e.call(this,Ks(t),n,r)});return qo(s).mergeContext({fixtures:o}),s},t.describe=As,t.suite=As,t.beforeEach=ns,t.afterEach=rs,t.beforeAll=es,t.afterAll=ts,t.aroundEach=as,t.aroundAll=is,Jo([`concurrent`,`sequential`,`skip`,`only`,`todo`,`fails`],t,{fixtures:new Do})}function Gs(e){return Ws(e)}function Ks(e){return typeof e==`string`?e:typeof e==`function`?e.name||`<
41anonymous>`:String(e)}function qs(e,t,n){(e.includes(`%#`)||e.includes(`%$`))&&(e=e.replace(/%%/g,`__vitest_escaped_%__`).replace(/%#/g,`${n}`).replace(/%\$/g,`${n+1}`).replace(/__vitest_escaped_%__/g,`%%`));let r=e.split(`%`).length-1;e.includes(`%f`)&&(e.match(/%f/g)||[]).forEach((n,r)=>{if(hr(t[r])||Object.is(t[r],-0)){let t=0;e=e.replace(/%f/g,e=>(t++,t===r+1?`-%f`:e))}});let i=rr(t[0]);function a(e){return e.replace(/\$([$\w.]+)/g,(e,n)=>{let r=/^\d+$/.test(n);if(!i&&!r)return`$${n}`;let a=r?fr(t,n):void 0;return Zn(i?fr(t[0],n,a):a,{truncate:void 0})})}let o=``,s=0;return Js(e,qn,e=>{o+=s<r?Yn(e[0],t[s++]):e[0]},e=>{o+=a(e)}),o}function Js(e,t,n,r){let i=0;for(let a of e.matchAll(t))i<a.index&&r(e.slice(i,a.index)),n(a),i=a.index+a[0].length;i<e.length&&r(e.slice(i))}function Ys(e,t){let n=e.join(``).trim().replace(/ /g,``).split(`
42`).map(e=>e.split(`|`))[0],r=[];for(let e=0;e<Math.floor(t.length/n.length);e++){let i={};for(let r=0;r<n.length;r++)i[n[r]]=t[e*n.length+r];r.push(i)}return r}var Xs=globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now,P={tasks:[],currentSuite:null};function Zs(e){P.currentSuite?.tasks.push(e)}async function Qs(e,t){let n=P.currentSuite;P.currentSuite=e,await t(),P.currentSuite=n}function $s(e,t,n=!1,r,i){if(t<=0||t===1/0)return e;let{setTimeout:a,clearTimeout:o}=ra();return(function(...s){let c=Xs(),l=Ls();return l._currentTaskStartTime=c,l._currentTaskTimeout=t,new Promise((u,d)=>{let f=a(()=>{o(f),p()},t);f.unref?.();function p(){let e=ac(n,t,r);i?.(s,e),d(e)}function m(e){if(l._currentTaskStartTime=void 0,l._currentTaskTimeout=void 0,o(f),Xs()-c>=t){p();return}u(e)}function h(e){l._currentTaskStartTime=void 0,l._currentTaskTimeout=void 0,o(f),d(e)}try{let t=e(...s);typeof t==`object`&&t&&typeof t.then==`function`?t.then(m,h):m(t)}catch(e){h(e)}})})}function ec(e,t){return(function(...n){return new Promise((r,i)=>{t.addEventListener(`abort`,()=>i(t.reason));try{let t=e(...n);typeof t==`object`&&t&&typeof t.then==`function`?t.then(r,i):r(t)}catch(e){i(e)}})})}var tc=new WeakMap;function nc([e],t){e&&rc(e,t)}function rc(e,t){tc.get(e)?.abort(t)}function ic(e,t){let n=function(){throw Error(`done() callback is deprecated, use promise instead`)},r=tc.get(n);return r||(r=new AbortController,tc.set(n,r)),n.signal=r.signal,n.task=e,n.skip=(t,n)=>{if(t!==!1)throw e.result??={state:`skip`},e.result.pending=!0,new po(`test is skipped; abort execution`,e,typeof t==`string`?t:n)},n.annotate=((n,r,i)=>{if(e.result&&e.result.state!==`run`)throw Error(`Cannot annotate tests outside of the test run. The test "${e.name}" finished running with the "${e.result.state}" state already.`);let a={message:n,type:typeof r==`object`||r===void 0?`notice`:r},o=typeof r==`object`?r:i;return o&&(a.attachment=o,gc(a.attachment)),hc(e,pc(e,{type:`internal:annotation`,annotation:a}).then(async({annotation:n})=>{if(!t.onTestAnnotate)throw Error(`Test runner doesn't support test annotations.`);await fc(t);let r=await t.onTestAnnotate(e,n);return e.annotations.push(r),r}))}),n.onTestFailed=(n,i)=>{e.onFailed||=[],e.onFailed.push($s(n,i??t.config.hookTimeout,!0,Error(`STACK_TRACE_ERROR`),(e,t)=>r.abort(t)))},n.onTestFinished=(n,i)=>{e.onFinished||=[],e.onFinished.push($s(n,i??t.config.hookTimeout,!0,Error(`STACK_TRACE_ERROR`),(e,t)=>r.abort(t)))},t.extendTaskContext?.(n)||n}function ac(e,t,n){let r=`${e?`Hook`:`Test`} timed out in ${t}ms.\nIf this is a long-running ${e?`hook`:`test`}, pass a timeout value as the last argument or configure it globally with "${e?`hookTimeout`:`testTimeout`}".`,i=Error(r);return n?.stack&&(i.stack=n.stack.replace(i.message,n.message)),i}globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now,globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now,Date.now;var{clearTimeout:oc,setTimeout:sc}=ra(),cc=new Map,lc=[],uc=[];function dc(e){if(cc.size){let t=Array.from(cc).map(([e,t])=>[e,t[0],t[1]]),n=e.onTaskUpdate?.(t,lc);n&&(uc.push(n),n.then(()=>uc.splice(uc.indexOf(n),1),()=>{})),lc.length=0,cc.clear()}}async function fc(e){dc(e),await Promise.all(uc)}async function pc(e,t){let n=Ls(),r=ss(e.file.filepath,Error(`STACK_TRACE`).stack);if(r&&(t.location={file:r.file,line:r.line,column:r.column},t.type===`internal:annotation`&&(t.annotation.location=t.location)),Array.isArray(t.attachments))for(let e of t.attachments)gc(e);if(t.type===`internal:annotation`)return t;if(!n.onTestArtifactRecord)throw Error(`Test runner doesn't support test artifacts.`);await fc(n);let i=await n.onTestArtifactRecord(e,t);return e.artifacts.push(i),i}var F=[];for(let e=65;e<91;e++)F.push(String.fromCharCode(e));for(let e=97;e<123;e++)F.push(String.fromCharCode(e));for(let e=0;e<10;e++)F.push(e.toString(10));F.push(`+`,`/`);function mc(e){let t=``,n=e.byteLength;for(let r=0;r<n;r+=3)if(n===r+1){let n=(e[r]&252)>>2,i=(e[r]&3)<<4;t+=F[n],t+=F[i],t+=`==`}else if(n===r+2){let n=(e[r]&252)>>2,i=(e[r]&3)<<4|(e[r+1]&240)>>4,a=(e[r+1]&15)<<2;t+=F[n],t+=F[i],t+=F[a],t+=`=`}else{let n=(e[r]&252)>>2,i=(e[r]&3)<<4|(e[r+1]&240)>>4,a=(e[r+1]&15)<<2|(e[r+2]&192)>>6,o=e[r+2]&63;t+=F[n],t+=F[i],t+=F[a],t+=F[o]}return t}function hc(e,t){return t=t.finally(()=>
42{if(!e.promises)return;let n=e.promises.indexOf(t);n!==-1&&e.promises.splice(n,1)}),e.promises||=[],e.promises.push(t),t}function gc(e){if(e.body==null&&!e.path)throw TypeError(`Test attachment requires "body" or "path" to be set. Both are missing.`);if(e.body&&e.path)throw TypeError(`Test attachment requires only one of "body" or "path" to be set. Both are specified.`);if(e.path&&e.bodyEncoding)throw TypeError(`Test attachment with "path" should not have "bodyEncoding" specified.`);e.body instanceof Uint8Array&&(e.body=mc(e.body)),e.body!=null&&(e.bodyEncoding??=`base64`)}var _c=`__vitest_worker__`;function vc(){let e=globalThis[_c];if(!e)throw Error(`Vitest failed to access its internal state.
43
44One of the following is possible:
45- "vitest" is imported directly without running "vitest" command
46- "vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)
47- "vitest" is imported inside Vite / Vitest config file
48- Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues
49`);return e}function yc(){return typeof process<`u`&&!!process.send}function bc(e,t=!1){let n=[/\/vitest\/dist\//,/vitest-virtual-\w+\/dist/,/@vitest\/dist/,...t?[]:[/^mock:/]];e.idToModuleMap.forEach((e,t)=>{n.some(e=>e.test(t))||(e.promise=void 0,e.exports=void 0,e.evaluated=!1,e.importers.clear())})}function xc(){let{setTimeout:e}=ra();return new Promise(t=>e(t,0))}async function Sc(){await xc();let e=vc(),t=[],n=e.resolvingModules.size;for(let[n,r]of e.evaluatedModules.idToModuleMap)r.promise&&!r.evaluated&&t.push(r.promise);(t.length||n)&&(await Promise.allSettled(t),await Sc())}var Cc=new WeakMap,wc=new WeakMap;function Tc(e){return wc.get(e)}function Ec(e){return Cc.get(e)}Dc(function(e,t=dr,n={}){if(vc().config.mode!==`benchmark`)throw Error("`bench()` is only available in benchmark mode.");let r=N().task(Oc(e),{...this,meta:{benchmark:!0}});Cc.set(r,t),wc.set(r,n),!this.todo&&r.mode===`todo`&&(r.mode=`run`)});function Dc(e){let t=Jo([`skip`,`only`,`todo`],e);return t.skipIf=e=>e?t.skip:t,t.runIf=e=>e?t:t.skip,t}function Oc(e){return typeof e==`string`?e:typeof e==`function`?e.name||`<
49anonymous>`:String(e)}function kc(e){return typeof e==`function`&&`_isMockFunction`in e&&e._isMockFunction===!0}var Ac=new Set,jc=new Set,Mc=new WeakMap;function Nc(e={}){let{originalImplementation:t,restore:n,mockImplementation:r,resetToMockImplementation:i,resetToMockName:a}=e;n&&Ac.add(n);let o=Yc(t),s=Xc(),c=zc({config:o,state:s,...e}),l=(r||t)?.length??0;return Object.defineProperty(c,"length",{writable:!0,enumerable:!1,value:l,configurable:!0}),a&&(o.mockName=c.name||`vi.fn()`),Mc.set(c,o),jc.add(c),c._isMockFunction=!0,c.getMockImplementation=()=>o.onceMockImplementations[0]||o.mockImplementation,Object.defineProperty(c,"mock",{configurable:!1,enumerable:!0,writable:!1,value:s}),c.mockImplementation=function(e){return o.mockImplementation=e,c},c.mockImplementationOnce=function(e){return o.onceMockImplementations.push(e),c},c.withImplementation=function(e,t){let n=o.mockImplementation,r=o.onceMockImplementations,i=()=>{o.mockImplementation=n,o.onceMockImplementations=r};o.mockImplementation=e,o.onceMockImplementations=[];let a=t();return typeof a==`object`&&typeof a?.then==`function`?a.then(()=>(i(),c)):(i(),c)},c.mockReturnThis=function(){return c.mockImplementation(function(){return this})},c.mockReturnValue=function(e){return c.mockImplementation(function(){return new.target&&el(`mockReturnValue`),e})},c.mockReturnValueOnce=function(e){return c.mockImplementationOnce(function(){return new.target&&el(`mockReturnValueOnce`),e})},c.mockThrow=function(e){return c.mockImplementation(function(){throw e})},c.mockThrowOnce=function(e){return c.mockImplementationOnce(function(){throw e})},c.mockResolvedValue=function(e){return c.mockImplementation(function(){return new.target&&el(`mockResolvedValue`),Promise.resolve(e)})},c.mockResolvedValueOnce=function(e){return c.mockImplementationOnce(function(){return new.target&&el(`mockResolvedValueOnce`),Promise.resolve(e)})},c.mockRejectedValue=function(e){return c.mockImplementation(function(){return new.target&&el(`mockRejectedValue`),Promise.reject(e)})},c.mockRejectedValueOnce=function(e){return c.mockImplementationOnce(function(){return new.target&&el(`mockRejectedValueOnce`),Promise.reject(e)})},c.mockClear=function(){return s.calls=[],s.contexts=[],s.instances=[],s.invocationCallOrder=[],s.results=[],s.settledResults=[],c},c.mockReset=function(){return c.mockClear(),o.mockImplementation=i?r:void 0,o.mockName=a&&c.name||`vi.fn()`,o.onceMockImplementations=[],c},c.mockRestore=function(){return c.mockReset(),n?.()},c.mockName=function(e){return typeof e==`string`&&(o.mockName=e),c},c.getMockName=function(){return o.mockName||`vi.fn()`},Symbol.dispose&&(c[Symbol.dispose]=()=>c.mockRestore()),r&&c.mockImplementation(r),c}function Pc(e){return e!=null&&kc(e)?e:Nc({mockImplementation:e,resetToMockImplementation:!0})}function Fc(e,t,n){Lc(e!=null,`The vi.spyOn() function could not find an object to spy upon. The first argument must be defined.`),Lc(typeof e==`object`||typeof e==`function`,`Vitest cannot spy on a primitive value.`);let[r,i]=Ic(e,t)||[];Lc(i||t in e,`The property "${String(t)}" is not defined on the ${typeof e}.`);let a=n||`value`,o=!1;a===`value`&&i&&i.value==null&&i.get&&(a=`get`,o=!0);let s;i?(s=i[a],s==null&&a===`value`&&(s=e[t])):s=a===`value`?e[t]:()=>e[t];let c=o&&s?s():s,l=typeof c;if(Lc(l===`function`||a!==`value`&&s==null,`vi.spyOn() can only spy on a function. Received ${l}.`),kc(c))return c;let u=n=>{let{value:r,...o}=i||{configurable:!0,writable:!0};a!==`value`&&delete o.writable,o[a]=n,Object.defineProperty(e,t,o)},d=Nc({restore:()=>{r===e?i&&!s?Object.defineProperty(e,t,i):u(s):Reflect.deleteProperty(e,t)},originalImplementation:c,resetToMockName:!0});try{u(o?()=>d:d)}catch(n){throw n instanceof TypeError&&Symbol.toStringTag&&e[Symbol.toStringTag]===`Module`&&(n.message.includes(`Cannot redefine property`)||n.message.includes(`Cannot replace module namespace`)||n.message.includes(`can't redefine non-configurable property`))?TypeError(`Cannot spy on export "${String(t)}". Module namespace is not configurable in ESM. See: https://vitest.dev/guide/browser/#limitations`,{cause:n}):n}return d}function Ic(e,t){let n=Object.getOwnPropertyDescriptor(e,t);if(n)return[e,n];let r=Object.getPrototypeOf(e);for(;r!==null;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return[r,e];r=Object.getPrototypeOf(r)}}function Lc(e,t){if(!e)throw Error(t)}var Rc=1;function zc({state:e,config:t,name:n,prototypeState:r,prototypeConfig:i,keepMembersImplementation:a,mockImplementation:o,prototypeMembers:s=[]}){let c=t.mockOriginal,l=o,u=n||c?.name||`Mock`,d={[u]:(function(...n){Bc(n,e,r),
49Vc(Rc++,e,r);let o={type:`incomplete`,value:void 0},l={type:`incomplete`,value:void 0};Hc(o,e,r),Uc(l,e,r);let p=new.target?void 0:this,[m,h]=Wc(p,e,r),[g,_]=Gc(p,e,r),v=t.onceMockImplementations.shift()||t.mockImplementation||i?.onceMockImplementations.shift()||i?.mockImplementation||c||function(){},y,b,x=!1;try{if(new.target){y=Reflect.construct(v,n,new.target);for(let e of s){let t=y[e];if(t!==f.prototype[e])continue;let n=kc(t),r=n?t.mock:void 0,i=n?Mc.get(t):void 0;y[e]=Nc({originalImplementation:a?i?.mockOriginal:void 0,prototypeState:r,prototypeConfig:i,keepMembersImplementation:a})}}else y=v.apply(this,n)}catch(e){throw b=e,x=!0,e instanceof TypeError&&e.message.includes(`is not a constructor`)&&console.warn(`[vitest] The ${d[u].getMockName()} mock did not use 'function' or 'class' in its implementation, see https://vitest.dev/api/vi#vi-spyon for examples.`),e}finally{x?(o.type=`throw`,o.value=b,l.type=`rejected`,l.value=b):(o.type=`return`,o.value=y,new.target&&(e.contexts[g-1]=y,e.instances[m-1]=y,_!=null&&r&&(r.contexts[_-1]=y),h!=null&&r&&(r.instances[h-1]=y)),y instanceof Promise?y.then(e=>{l.type=`fulfilled`,l.value=e},e=>{l.type=`rejected`,l.value=e}):(l.type=`fulfilled`,l.value=y))}return y})},f=d[u],p=c||l;return p&&Kc(f,p),f}function Bc(e,t,n){t.calls.push(e),n?.calls.push(e)}function Vc(e,t,n){t.invocationCallOrder.push(e),n?.invocationCallOrder.push(e)}function Hc(e,t,n){t.results.push(e),n?.results.push(e)}function Uc(e,t,n){t.settledResults.push(e),n?.settledResults.push(e)}function Wc(e,t,n){return[t.instances.push(e),n?.instances.push(e)]}function Gc(e,t,n){return[t.contexts.push(e),n?.contexts.push(e)]}function Kc(e,t){let{properties:n,descriptors:r}=Jc(t);for(let t of n){let n=r[t];Ic(e,t)||Object.defineProperty(e,t,n)}}var qc=new Set([`length`,`name`,`prototype`,Symbol.for(`nodejs.util.promisify.custom`)]);function Jc(e){let t=new Set,n={};for(;e&&e!==Object.prototype&&e!==Function.prototype;){let r=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let i of r)n[i]||qc.has(i)||(t.add(i),n[i]=Object.getOwnPropertyDescriptor(e,i));e=Object.getPrototypeOf(e)}return{properties:t,descriptors:n}}function Yc(e){return{mockImplementation:void 0,mockOriginal:e,mockName:`vi.fn()`,onceMockImplementations:[]}}function Xc(){let e={calls:[],contexts:[],instances:[],invocationCallOrder:[],settledResults:[],results:[],get lastCall(){return e.calls.at(-1)}};return e}function Zc(){for(let e of Ac)e();Ac.clear()}function Qc(){jc.forEach(e=>e.mockClear())}function $c(){jc.forEach(e=>e.mockReset())}function el(e){throw TypeError(`Cannot use \`${e}\` when called with \`new\`. Use \`mockImplementation\` with a \`class\` keyword instead. See https://vitest.dev/api/mock#class-support for more information.`)}var tl=Object.defineProperty,nl=(e,t,n)=>t in e?tl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,I=(e,t)=>tl(e,`name`,{value:t,configurable:!0}),rl=(e,t)=>{for(var n in t)tl(e,n,{get:t[n],enumerable:!0})},il=(e,t,n)=>nl(e,typeof t==`symbol`?t:t+``,n),L={};rl(L,{addChainableMethod:()=>ud,addLengthGuard:()=>Yu,addMethod:()=>ed,addProperty:()=>qu,checkError:()=>R,compareByInspect:()=>fd,eql:()=>bu,events:()=>Uu,expectTypes:()=>hl,flag:()=>z,getActual:()=>gl,getMessage:()=>pu,getName:()=>vd,getOperator:()=>_d,getOwnEnumerableProperties:()=>md,getOwnEnumerablePropertySymbols:()=>pd,getPathInfo:()=>Vu,hasProperty:()=>Ru,inspect:()=>W,isNaN:()=>hd,isNumeric:()=>K,isProxyEnabled:()=>Ku,isRegExp:()=>yd,objDisplay:()=>fu,overwriteChainableMethod:()=>dd,overwriteMethod:()=>nd,overwriteProperty:()=>td,proxify:()=>Qu,test:()=>fl,transferFlags:()=>mu,type:()=>B});var R={};rl(R,{compatibleConstructor:()=>cl,compatibleInstance:()=>sl,compatibleMessage:()=>ll,getConstructorName:()=>ul,getMessage:()=>dl});function al(e){return e instanceof Error||Object.prototype.toString.call(e)===`[object Error]`}I(al,`isErrorInstance`);function ol(e){return Object.prototype.toString.call(e)===`[object RegExp]`}I(ol,`isRegExp`);function sl(e,t){return al(t)&&e===t}I(sl,`compatibleInstance`);function cl(e,t){return al(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t==`object`||typeof t==`function`)&&t.prototype?e.constructor===t||e instanceof t:!1}I(cl,`compatibleConstructor`);function ll(e,t){let n=typeof e==`string`?e:e.message;return ol(t)?t.test(n):typeof t==`string`&&n.indexOf(t)!==-1}I(ll,`compatibleMessage`);function ul(e){let t=e;return al(e)?t=e.constructor.name:typeof e==`function`&&(t=e.name,t===``&&(t=new e().name||t)),t}I(ul,`getConstructorName`);function dl(e){let t=``;return e&&e.message?t=e.message:typeof e==`string`&&(t=e),t}I(dl,`getMessage`);function z(e,t,n){let r=e.__flags||=Object.create(null);if(arguments.length===3)r[t]=n;else return r[t]}I(z,`flag`);function fl(e,t){let n=z(e,`negate`),r=t[0];return n?!r:r}I(fl,`test`);function B(e){if(e===void 0)return`undefined`;if(e===null)return`null`;let t=e[Symbol.toStringTag];return typeof t==`string`?t:Object.prototype.toString.call(e).slice(8,-1)}I(B,`type`);
49var pl=`captureStackTrace`in Error,ml=class e extends Error{constructor(t=`Unspecified AssertionError`,n,r){super(t),il(this,`message`),this.message=t,pl&&Error.captureStackTrace(this,r||e);for(let e in n)e in this||(this[e]=n[e])}get name(){return`AssertionError`}get ok(){return!1}toJSON(e){return{...this,name:this.name,message:this.message,ok:!1,stack:e===!1?void 0:this.stack}}};I(ml,`AssertionError`);var V=ml;function hl(e,t){let n=z(e,`message`),r=z(e,`ssfi`);n=n?n+`: `:``,e=z(e,`object`),t=t.map(function(e){return e.toLowerCase()}),t.sort();let i=t.map(function(e,n){let r=~[`a`,`e`,`i`,`o`,`u`].indexOf(e.charAt(0))?`an`:`a`;return(t.length>1&&n===t.length-1?`or `:``)+r+` `+e}).join(`, `),a=B(e).toLowerCase();if(!t.some(function(e){return a===e}))throw new V(n+`object tested must be `+i+`, but `+a+` given`,void 0,r)}I(hl,`expectTypes`);function gl(e,t){return t.length>4?t[4]:e._obj}I(gl,`getActual`);var _l={bold:[`1`,`22`],dim:[`2`,`22`],italic:[`3`,`23`],underline:[`4`,`24`],inverse:[`7`,`27`],hidden:[`8`,`28`],strike:[`9`,`29`],black:[`30`,`39`],red:[`31`,`39`],green:[`32`,`39`],yellow:[`33`,`39`],blue:[`34`,`39`],magenta:[`35`,`39`],cyan:[`36`,`39`],white:[`37`,`39`],brightblack:[`30;1`,`39`],brightred:[`31;1`,`39`],brightgreen:[`32;1`,`39`],brightyellow:[`33;1`,`39`],brightblue:[`34;1`,`39`],brightmagenta:[`35;1`,`39`],brightcyan:[`36;1`,`39`],brightwhite:[`37;1`,`39`],grey:[`90`,`39`]},vl={special:`cyan`,number:`yellow`,bigint:`yellow`,boolean:`yellow`,undefined:`grey`,null:`bold`,string:`green`,symbol:`green`,date:`magenta`,regexp:`red`},yl=`…`;function bl(e,t){let n=_l[vl[t]]||_l[t]||``;return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}I(bl,`colorise`);function xl({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:r=!0,showProxy:i=!1,maxArrayLength:a=1/0,breakLength:o=1/0,seen:s=[],truncate:c=1/0,stylize:l=String}={},u){let d={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!i,maxArrayLength:Number(a),breakLength:Number(o),truncate:Number(c),seen:s,inspect:u,stylize:l};return d.colors&&(d.stylize=bl),d}I(xl,`normaliseOptions`);function Sl(e){return e>=`\ud800`&&e<=`\udbff`}I(Sl,`isHighSurrogate`);function Cl(e,t,n=yl){e=String(e);let r=n.length,i=e.length;if(r>t&&i>r)return n;if(i>t&&i>r){let i=t-r;return i>0&&Sl(e[i-1])&&--i,`${e.slice(0,i)}${n}`}return e}I(Cl,`truncate`);function H(e,t,n,r=`, `){n||=t.inspect;let i=e.length;if(i===0)return``;let a=t.truncate,o=``,s=``,c=``;for(let l=0;l<i;l+=1){let i=l+1===e.length,u=l+2===e.length;c=`${yl}(${e.length-l})`;let d=e[l];t.truncate=a-o.length-(i?0:r.length);let f=s||n(d,t)+(i?``:r),p=o.length+f.length,m=p+c.length;if(i&&p>a&&o.length+c.length<=a||!i&&!u&&m>a||(s=i?``:n(e[l+1],t)+(u?``:r),!i&&u&&m>a&&p+s.length>a))break;if(o+=f,!i&&!u&&p+s.length>=a){c=`${yl}(${e.length-l-1})`;break}c=``}return`${o}${c}`}I(H,`inspectList`);function wl(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,`\\'`).replace(/\\"/g,`"`).replace(/(^"|"$)/g,`'`)}I(wl,`quoteComplexKey`);function Tl([e,t],n){return n.truncate-=2,typeof e==`string`?e=wl(e):typeof e!=`number`&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}I(Tl,`inspectProperty`);function El(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`[]`;t.truncate-=4;let r=H(e,t);t.truncate-=r.length;let i=``;return n.length&&(i=H(n.map(t=>[t,e[t]]),t,Tl)),`[ ${r}${i?`, ${i}`:``} ]`}I(El,`inspectArray`);var Dl=I(e=>typeof Buffer==`function`&&e instanceof Buffer?`Buffer`:e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,`getArrayName`);function Ol(e,t){let n=Dl(e);t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return`${n}[]`;let i=``;for(let n=0;n<e.length;n++){let r=`${t.stylize(Cl(e[n],t.truncate),`number`)}${n===e.length-1?``:`, `}`;if(t.truncate-=r.length,e[n]!==e.length&&t.truncate<=3){i+=`${yl}(${e.length-e[n]+1})`;break}i+=r}let a=``;return r.length&&(a=H(r.map(t=>[t,e[t]]),t,Tl)),`${n}[ ${i}${a?`, ${a}`:``} ]`}I(Ol,`inspectTypedArray`);function kl(e,t){let n=e.toJSON();if(n===null)return`Invalid Date`;let r=n.split(`T`),i=r[0];return t.stylize(`${i}T${Cl(r[1],t.truncate-i.length-1)}`,`date`)}I(kl,`inspectDate`);function Al(e,t){let n=e[Symbol.toStringTag]||`Function`,r=e.name;return r?t.stylize(`[${n} ${Cl(r,t.truncate-11)}]`,`special`):t.stylize(`[${n}]`,`special`)}I(Al,`inspectFunction`);function jl([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}I(jl,`inspectMapEntry`);function Ml(e){let t=[];return e.forEach((e,n)=>{t.push([n,e])}),t}I(Ml,`mapToEntries`);function Nl(e,t){return e.size===0?`Map{}`:(t.truncate-=7,`Map{ ${H(Ml(e),t,jl)} }`)}I(Nl,`inspectMap`);var Pl=Number.isNaN||(e=>e!==e);function Fl(e,t){return Pl(e)?t.stylize(`NaN`,`number`):e===1/0?t.stylize(`Infinity`,`number`):e===-1/0?t.stylize(`-Infinity`,`number`):e===0?t.stylize(1/e==1/0?`+0`:`-0`,`number`):t.stylize(Cl(String(e),t.truncate),`number`)}I(Fl,`inspectNumber`);function Il(e,t){let n=Cl(e.toString(),t.truncate-1);return n!==yl&&(n+=`n`),t.stylize(n,`bigint`)}I(Il,`inspectBigInt`);function Ll(e,t){let n=e.toString().split(`/`)[2],r=t.truncate-(2+n.length),i=e.source;return t.stylize(`/${Cl(i,r)}/${n}`,`regexp`)}I(Ll,`inspectRegExp`);function Rl(e){let t=[];
49return e.forEach(e=>{t.push(e)}),t}I(Rl,`arrayFromSet`);function zl(e,t){return e.size===0?`Set{}`:(t.truncate-=7,`Set{ ${H(Rl(e),t)} }`)}I(zl,`inspectSet`);var Bl=RegExp(`['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]`,`g`),Vl={"\b":`\\b`,"	":`\\t`,"\n":`\\n`,"\f":`\\f`,"\r":`\\r`,"'":`\\'`,"\\":`\\\\`},Hl=16,Ul=4;function Wl(e){return Vl[e]||`\\u${`0000${e.charCodeAt(0).toString(Hl)}`.slice(-Ul)}`}I(Wl,`escape`);function Gl(e,t){return Bl.test(e)&&(e=e.replace(Bl,Wl)),t.stylize(`'${Cl(e,t.truncate-2)}'`,`string`)}I(Gl,`inspectString`);function Kl(e){return`description`in Symbol.prototype?e.description?`Symbol(${e.description})`:`Symbol()`:e.toString()}I(Kl,`inspectSymbol`);var ql=I(()=>`Promise{…}`,`getPromiseValue`);function Jl(e,t){let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&r.length===0)return`{}`;if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return`[Circular]`;t.seen.push(e);let i=H(n.map(t=>[t,e[t]]),t,Tl),a=H(r.map(t=>[t,e[t]]),t,Tl);t.seen.pop();let o=``;return i&&a&&(o=`, `),`{ ${i}${o}${a} }`}I(Jl,`inspectObject`);var Yl=typeof Symbol<`u`&&Symbol.toStringTag?Symbol.toStringTag:!1;function Xl(e,t){let n=``;return Yl&&Yl in e&&(n=e[Yl]),n||=e.constructor.name,(!n||n===`_class`)&&(n=`<Anonymous Class>`),t.truncate-=n.length,`${n}${Jl(e,t)}`}I(Xl,`inspectClass`);function Zl(e,t){return e.length===0?`Arguments[]`:(t.truncate-=13,`Arguments[ ${H(e,t)} ]`)}I(Zl,`inspectArguments`);var Ql=[`stack`,`line`,`column`,`name`,`message`,`fileName`,`lineNumber`,`columnNumber`,`number`,`description`,`cause`];function $l(e,t){let n=Object.getOwnPropertyNames(e).filter(e=>Ql.indexOf(e)===-1),r=e.name;t.truncate-=r.length;let i=``;if(typeof e.message==`string`?i=Cl(e.message,t.truncate):n.unshift(`message`),i=i?`: ${i}`:``,t.truncate-=i.length+5,t.seen=t.seen||[],t.seen.includes(e))return`[Circular]`;t.seen.push(e);let a=H(n.map(t=>[t,e[t]]),t,Tl);return`${r}${i}${a?` { ${a} }`:``}`}I($l,`inspectObject`);function eu([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),`yellow`)}=${n.stylize(`"${t}"`,`string`)}`:`${n.stylize(String(e),`yellow`)}`}I(eu,`inspectAttribute`);function tu(e,t){return H(e,t,nu,`
50`)}I(tu,`inspectNodeCollection`);function nu(e,t){switch(e.nodeType){case 1:return ru(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}I(nu,`inspectNode`);function ru(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),i=t.stylize(`<${r}`,`special`),a=t.stylize(`>`,`special`),o=t.stylize(`</${r}>`,`special`);t.truncate-=r.length*2+5;let s=``;n.length>0&&(s+=` `,s+=H(n.map(t=>[t,e.getAttribute(t)]),t,eu,` `)),t.truncate-=s.length;let c=t.truncate,l=tu(e.children,t);return l&&l.length>c&&(l=`${yl}(${e.children.length})`),`${i}${s}${a}${l}${o}`}I(ru,`inspectHTML`);var iu=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`chai/inspect`):`@@chai/inspect`,au=Symbol.for(`nodejs.util.inspect.custom`),ou=new WeakMap,su={},cu={undefined:I((e,t)=>t.stylize(`undefined`,`undefined`),`undefined`),null:I((e,t)=>t.stylize(`null`,`null`),`null`),boolean:I((e,t)=>t.stylize(String(e),`boolean`),`boolean`),Boolean:I((e,t)=>t.stylize(String(e),`boolean`),`Boolean`),number:Fl,Number:Fl,bigint:Il,BigInt:Il,string:Gl,String:Gl,function:Al,Function:Al,symbol:Kl,Symbol:Kl,Array:El,Date:kl,Map:Nl,Set:zl,RegExp:Ll,Promise:ql,WeakSet:I((e,t)=>t.stylize(`WeakSet{…}`,`special`),`WeakSet`),WeakMap:I((e,t)=>t.stylize(`WeakMap{…}`,`special`),`WeakMap`),Arguments:Zl,Int8Array:Ol,Uint8Array:Ol,Uint8ClampedArray:Ol,Int16Array:Ol,Uint16Array:Ol,Int32Array:Ol,Uint32Array:Ol,Float32Array:Ol,Float64Array:Ol,Generator:I(()=>``,`Generator`),DataView:I(()=>``,`DataView`),ArrayBuffer:I(()=>``,`ArrayBuffer`),Error:$l,HTMLCollection:tu,NodeList:tu},lu=I((e,t,n,r)=>iu in e&&typeof e[iu]==`function`?e[iu](t):au in e&&typeof e[au]==`function`?e[au](t.depth,t,r):`inspect`in e&&typeof e.inspect==`function`?e.inspect(t.depth,t):`constructor`in e&&ou.has(e.constructor)?ou.get(e.constructor)(e,t):su[n]?su[n](e,t):``,`inspectCustom`),uu=Object.prototype.toString;function du(e,t={}){let n=xl(t,du),{customInspect:r}=n,i=e===null?`null`:typeof e;if(i===`object`&&(i=uu.call(e).slice(8,-1)),i in cu)return cu[i](e,n);if(r&&e){let t=lu(e,n,i,du);if(t)return typeof t==`string`?t:du(t,n)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?Jl(e,n):e&&typeof HTMLElement==`function`&&e instanceof HTMLElement?ru(e,n):`constructor`in e?e.constructor===Object?Jl(e,n):Xl(e,n):e===Object(e)?Jl(e,n):n.stylize(String(e),i)}I(du,`inspect`);var U={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:[`then`,`catch`,`inspect`,`toJSON`],deepEqual:null};function W(e,t,n,r){return du(e,{colors:r,depth:n===void 0?2:n,showHidden:t,truncate:U.truncateThreshold?U.truncateThreshold:1/0})}I(W,`inspect`);function fu(e){let t=W(e),n=Object.prototype.toString.call(e);
50if(U.truncateThreshold&&t.length>=U.truncateThreshold){if(n===`[object Function]`)return!e.name||e.name===``?`[Function]`:`[Function: `+e.name+`]`;if(n===`[object Array]`)return`[ Array(`+e.length+`) ]`;if(n===`[object Object]`){let t=Object.keys(e);return`{ Object (`+(t.length>2?t.splice(0,2).join(`, `)+`, ...`:t.join(`, `))+`) }`}return t}return t}I(fu,`objDisplay`);function pu(e,t){let n=z(e,`negate`),r=z(e,`object`),i=t[3],a=gl(e,t),o=n?t[2]:t[1],s=z(e,`message`);return typeof o==`function`&&(o=o()),o||=``,o=o.replace(/#\{this\}/g,function(){return fu(r)}).replace(/#\{act\}/g,function(){return fu(a)}).replace(/#\{exp\}/g,function(){return fu(i)}),s?s+`: `+o:o}I(pu,`getMessage`);function mu(e,t,n){let r=e.__flags||=Object.create(null);t.__flags||=Object.create(null),n=arguments.length!==3||n;for(let e in r)(n||e!==`object`&&e!==`ssfi`&&e!==`lockSsfi`&&e!=`message`)&&(t.__flags[e]=r[e])}I(mu,`transferFlags`);function hu(e){if(e===void 0)return`undefined`;if(e===null)return`null`;let t=e[Symbol.toStringTag];return typeof t==`string`?t:Object.prototype.toString.call(e).slice(8,-1)}I(hu,`type`);function gu(){this._key=`chai/deep-eql__`+Math.random()+Date.now()}I(gu,`FakeMap`),gu.prototype={get:I(function(e){return e[this._key]},`get`),set:I(function(e,t){Object.isExtensible(e)&&Object.defineProperty(e,this._key,{value:t,configurable:!0})},`set`)};var _u=typeof WeakMap==`function`?WeakMap:gu;function vu(e,t,n){if(!n||Iu(e)||Iu(t))return null;var r=n.get(e);if(r){var i=r.get(t);if(typeof i==`boolean`)return i}return null}I(vu,`memoizeCompare`);function yu(e,t,n,r){if(!(!n||Iu(e)||Iu(t))){var i=n.get(e);i?i.set(t,r):(i=new _u,i.set(t,r),n.set(e,i))}}I(yu,`memoizeSet`);var bu=xu;function xu(e,t,n){if(n&&n.comparator)return Cu(e,t,n);var r=Su(e,t);return r===null?Cu(e,t,n):r}I(xu,`deepEqual`);function Su(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t?!0:Iu(e)||Iu(t)?!1:null}I(Su,`simpleEqual`);function Cu(e,t,n){n||={},n.memoize=n.memoize===!1?!1:n.memoize||new _u;var r=n&&n.comparator,i=vu(e,t,n.memoize);if(i!==null)return i;var a=vu(t,e,n.memoize);if(a!==null)return a;
50if(r){var o=r(e,t);if(o===!1||o===!0)return yu(e,t,n.memoize,o),o;var s=Su(e,t);if(s!==null)return s}var c=hu(e);if(c!==hu(t))return yu(e,t,n.memoize,!1),!1;yu(e,t,n.memoize,!0);var l=wu(e,t,c,n);return yu(e,t,n.memoize,l),l}I(Cu,`extensiveDeepEqual`);function wu(e,t,n,r){switch(n){case`String`:case`Number`:case`Boolean`:case`Date`:return xu(e.valueOf(),t.valueOf());case`Promise`:case`Symbol`:case`function`:case`WeakMap`:case`WeakSet`:return e===t;case`Error`:return Pu(e,t,[`name`,`message`,`code`],r);case`Arguments`:case`Int8Array`:case`Uint8Array`:case`Uint8ClampedArray`:case`Int16Array`:case`Uint16Array`:case`Int32Array`:case`Uint32Array`:case`Float32Array`:case`Float64Array`:case`Array`:return Du(e,t,r);case`RegExp`:return Tu(e,t);case`Generator`:return Ou(e,t,r);case`DataView`:return Du(new Uint8Array(e.buffer),new Uint8Array(t.buffer),r);case`ArrayBuffer`:return Du(new Uint8Array(e),new Uint8Array(t),r);case`Set`:return Eu(e,t,r);case`Map`:return Eu(e,t,r);case`Temporal.PlainDate`:case`Temporal.PlainTime`:case`Temporal.PlainDateTime`:case`Temporal.Instant`:case`Temporal.ZonedDateTime`:case`Temporal.PlainYearMonth`:case`Temporal.PlainMonthDay`:return e.equals(t);case`Temporal.Duration`:return e.total(`nanoseconds`)===t.total(`nanoseconds`);case`Temporal.TimeZone`:case`Temporal.Calendar`:return e.toString()===t.toString();default:return Fu(e,t,r)}}I(wu,`extensiveDeepEqualByType`);function Tu(e,t){return e.toString()===t.toString()}I(Tu,`regexpEqual`);function Eu(e,t,n){try{if(e.size!==t.size)return!1;if(e.size===0)return!0}catch{return!1}var r=[],i=[];return e.forEach(I(function(e,t){r.push([e,t])},`gatherEntries`)),t.forEach(I(function(e,t){i.push([e,t])},`gatherEntries`)),Du(r.sort(),i.sort(),n)}I(Eu,`entriesEqual`);function Du(e,t,n){var r=e.length;if(r!==t.length)return!1;if(r===0)return!0;for(var i=-1;++i<r;)if(xu(e[i],t[i],n)===!1)return!1;return!0}I(Du,`iterableEqual`);function Ou(e,t,n){return Du(ju(e),ju(t),n)}I(Ou,`generatorEqual`);function ku(e){return typeof Symbol<`u`&&typeof e==`object`&&Symbol.iterator!==void 0&&typeof e[Symbol.iterator]==`function`}I(ku,`hasIteratorFunction`);function Au(e){if(ku(e))try{return ju(e[Symbol.iterator]())}catch{return[]}return[]}I(Au,`getIteratorEntries`);function ju(e){for(var t=e.next(),n=[t.value];t.done===!1;)t=e.next(),n.push(t.value);return n}I(ju,`getGeneratorEntries`);function Mu(e){var t=[];for(var n in e)t.push(n);return t}I(Mu,`getEnumerableKeys`);function Nu(e){for(var t=[],n=Object.getOwnPropertySymbols(e),r=0;r<n.length;r+=1){var i=n[r];Object.getOwnPropertyDescriptor(e,i).enumerable&&t.push(i)}return t}I(Nu,`getEnumerableSymbols`);function Pu(e,t,n,r){var i=n.length;if(i===0)return!0;for(var a=0;a<i;a+=1)if(xu(e[n[a]],t[n[a]],r)===!1)return!1;return!0}I(Pu,`keysEqual`);function Fu(e,t,n){var r=Mu(e),i=Mu(t),a=Nu(e),o=Nu(t);if(r=r.concat(a),i=i.concat(o),r.length&&r.length===i.length)return Du(Lu(r).sort(),Lu(i).sort())!==!1&&Pu(e,t,r,n);var s=Au(e),c=Au(t);return s.length&&s.length===c.length?(s.sort(),c.sort(),Du(s,c,n)):r.length===0&&s.length===0&&i.length===0&&c.length===0}I(Fu,`objectEqual`);function Iu(e){return typeof e!=`object`||!e}I(Iu,`isPrimitive`);function Lu(e){return e.map(I(function(e){return typeof e==`symbol`?e.toString():e},`mapSymbol`))}I(Lu,`mapSymbols`);function Ru(e,t){return e!=null&&t in Object(e)}I(Ru,`hasProperty`);function zu(e){return e.replace(/([^\\])\[/g,`$1.[`).match(/(\\\.|[^.]+?)+/g).map(e=>{if(e===`constructor`||e===`__proto__`||e===`prototype`)return{};let t=/^\[(\d+)\]$/.exec(e),n=null;return n=t?{i:parseFloat(t[1])}:{p:e.replace(/\\([.[\]])/g,`$1`)},n})}I(zu,`parsePath`);function Bu(e,t,n){let r=e,i=null;n=n===void 0?t.length:n;for(let e=0;e<n;e++){let a=t[e];r&&(r=a.p===void 0?r[a.i]:r[a.p],e===n-1&&(i=r))}return i}I(Bu,`internalGetPathValue`);function Vu(e,t){let n=zu(t),r=n[n.length-1],i={parent:n.length>1?Bu(e,n,n.length-1):e,name:r.p||r.i,value:Bu(e,n)};return i.exists=Ru(i.parent,i.name),i}I(Vu,`getPathInfo`);var Hu=class e{constructor(t,n,r,i){return il(this,`__flags`,{}),z(this,`ssfi`,r||e),z(this,`lockSsfi`,i),z(this,`object`,t),z(this,`message`,n),z(this,`eql`,U.deepEqual||bu),Qu(this)}static get includeStack(){return console.warn(`Assertion.includeStack is deprecated, use chai.config.includeStack instead.`),U.includeStack}static set includeStack(e){console.warn(`Assertion.includeStack is deprecated, use chai.config.includeStack instead.`),U.includeStack=e}static get showDiff(){return console.warn(`Assertion.showDiff is deprecated, use chai.config.showDiff instead.`),U.showDiff}static set showDiff(e){console.warn(`Assertion.showDiff is deprecated, use chai.config.showDiff instead.`),U.showDiff=e}static addProperty(e,t){qu(this.prototype,e,t)}static addMethod(e,t){ed(this.prototype,e,t)}static addChainableMethod(e,t,n){ud(this.prototype,e,t,n)}static overwriteProperty(e,t){td(this.prototype,e,t)}static overwriteMethod(e,t){nd(this.prototype,e,t)}static overwriteChainableMethod(e,t,n){dd(this.prototype,e,t,n)}assert(e,t,n,r,i,a){let o=fl(this,arguments);if(!1!==a&&(a=!0),r===void 0&&i===void 0&&(a=!1),!0!==U.showDiff&&(a=!1),!o){t=pu(this,arguments);let e={actual:gl(this,arguments),expected:r,showDiff:a},n=_d(this,arguments);throw n&&(e.operator=n),new V(t,e,U.includeStack?this.assert:z(this,`ssfi`))}}get _obj(){return z(this,`object`)}set _obj(e){z(this,`object`,e)}};I(Hu,`Assertion`);
50var G=Hu,Uu=new EventTarget,Wu=class extends Event{constructor(e,t,n){super(e),this.name=String(t),this.fn=n}};I(Wu,`PluginEvent`);var Gu=Wu;function Ku(){return U.useProxy&&typeof Proxy<`u`&&typeof Reflect<`u`}I(Ku,`isProxyEnabled`);function qu(e,t,n){n=n===void 0?function(){}:n,Object.defineProperty(e,t,{get:I(function e(){!Ku()&&!z(this,`lockSsfi`)&&z(this,`ssfi`,e);let t=n.call(this);if(t!==void 0)return t;let r=new G;return mu(this,r),r},`propertyGetter`),configurable:!0}),Uu.dispatchEvent(new Gu(`addProperty`,t,n))}I(qu,`addProperty`);var Ju=Object.getOwnPropertyDescriptor(function(){},`length`);function Yu(e,t,n){return Ju.configurable&&Object.defineProperty(e,"length",{get:I(function(){throw Error(n?`Invalid Chai property: `+t+`.length. Due to a compatibility issue, "length" cannot directly follow "`+t+`". Use "`+t+`.lengthOf" instead.`:`Invalid Chai property: `+t+`.length. See docs for proper usage of "`+t+`".`)},`get`)}),e}I(Yu,`addLengthGuard`);function Xu(e){let t=Object.getOwnPropertyNames(e);function n(e){t.indexOf(e)===-1&&t.push(e)}I(n,`addProperty`);let r=Object.getPrototypeOf(e);for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n),r=Object.getPrototypeOf(r);return t}I(Xu,`getProperties`);var Zu=[`__flags`,`__methods`,`_obj`,`assert`];function Qu(e,t){return Ku()?new Proxy(e,{get:I(function e(n,r){if(typeof r==`string`&&U.proxyExcludedKeys.indexOf(r)===-1&&!Reflect.has(n,r)){if(t)throw Error(`Invalid Chai property: `+t+`.`+r+`. See docs for proper usage of "`+t+`".`);let e=null,i=4;throw Xu(n).forEach(function(t){if(!Object.prototype.hasOwnProperty(t)&&Zu.indexOf(t)===-1){let n=$u(r,t,i);n<i&&(e=t,i=n)}}),Error(e===null?`Invalid Chai property: `+r:`Invalid Chai property: `+r+`. Did you mean "`+e+`"?`)}return Zu.indexOf(r)===-1&&!z(n,`lockSsfi`)&&z(n,`ssfi`,e),Reflect.get(n,r)},`proxyGetter`)}):e}I(Qu,`proxify`);function $u(e,t,n){if(Math.abs(e.length-t.length)>=n)return n;let r=[];for(let n=0;n<=e.length;n++)r[n]=Array(t.length+1).fill(0),r[n][0]=n;for(let e=0;e<t.length;e++)r[0][e]=e;for(let i=1;i<=e.length;i++){let a=e.charCodeAt(i-1);for(let e=1;e<=t.length;e++){if(Math.abs(i-e)>=n){r[i][e]=n;continue}r[i][e]=Math.min(r[i-1][e]+1,r[i][e-1]+1,r[i-1][e-1]+(a===t.charCodeAt(e-1)?0:1))}}return r[e.length][t.length]}I($u,`stringDistanceCapped`);function ed(e,t,n){let r=I(function(){z(this,`lockSsfi`)||z(this,`ssfi`,r);let e=n.apply(this,arguments);if(e!==void 0)return e;let t=new G;return mu(this,t),t},`methodWrapper`);Yu(r,t,!1),e[t]=Qu(r,t),Uu.dispatchEvent(new Gu(`addMethod`,t,n))}I(ed,`addMethod`);function td(e,t,n){let r=Object.getOwnPropertyDescriptor(e,t),i=I(function(){},`_super`);r&&typeof r.get==`function`&&(i=r.get),Object.defineProperty(e,t,{get:I(function e(){!Ku()&&!z(this,`lockSsfi`)&&z(this,`ssfi`,e);let t=z(this,`lockSsfi`);z(this,`lockSsfi`,!0);let r=n(i).call(this);if(z(this,`lockSsfi`,t),r!==void 0)return r;let a=new G;return mu(this,a),a},`overwritingPropertyGetter`),configurable:!0})}I(td,`overwriteProperty`);function nd(e,t,n){let r=e[t],i=I(function(){throw Error(t+` is not a function`)},`_super`);r&&typeof r==`function`&&(i=r);let a=I(function(){z(this,`lockSsfi`)||z(this,`ssfi`,a);let e=z(this,`lockSsfi`);z(this,`lockSsfi`,!0);let t=n(i).apply(this,arguments);if(z(this,`lockSsfi`,e),t!==void 0)return t;let r=new G;return mu(this,r),r},`overwritingMethodWrapper`);Yu(a,t,!1),e[t]=Qu(a,t)}I(nd,`overwriteMethod`);var rd=typeof Object.setPrototypeOf==`function`,id=I(function(){},`testFn`),ad=Object.getOwnPropertyNames(id).filter(function(e){let t=Object.getOwnPropertyDescriptor(id,e);return typeof t!=`object`||!t.configurable}),od=Function.prototype.call,sd=Function.prototype.apply,cd=class extends Gu{constructor(e,t,n,r){super(e,t,n),this.chainingBehavior=r}};I(cd,`PluginAddChainableMethodEvent`);var ld=cd;function ud(e,t,n,r){typeof r!=`function`&&(r=I(function(){},`chainingBehavior`));let i={method:n,chainingBehavior:r};e.__methods||={},e.__methods[t]=i,Object.defineProperty(e,t,{get:I(function(){i.chainingBehavior.call(this);let n=I(function(){z(this,`lockSsfi`)||z(this,`ssfi`,n);let e=i.method.apply(this,arguments);if(e!==void 0)return e;let t=new G;return mu(this,t),t},`chainableMethodWrapper`);if(Yu(n,t,!0),rd){let e=Object.create(this);
50e.call=od,e.apply=sd,Object.setPrototypeOf(n,e)}else Object.getOwnPropertyNames(e).forEach(function(t){if(ad.indexOf(t)!==-1)return;let r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r)});return mu(this,n),Qu(n)},`chainableMethodGetter`),configurable:!0}),Uu.dispatchEvent(new ld(`addChainableMethod`,t,n,r))}I(ud,`addChainableMethod`);function dd(e,t,n,r){let i=e.__methods[t],a=i.chainingBehavior;i.chainingBehavior=I(function(){let e=r(a).call(this);if(e!==void 0)return e;let t=new G;return mu(this,t),t},`overwritingChainableMethodGetter`);let o=i.method;i.method=I(function(){let e=n(o).apply(this,arguments);if(e!==void 0)return e;let t=new G;return mu(this,t),t},`overwritingChainableMethodWrapper`)}I(dd,`overwriteChainableMethod`);function fd(e,t){return W(e)<W(t)?-1:1}I(fd,`compareByInspect`);function pd(e){return typeof Object.getOwnPropertySymbols==`function`?Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}):[]}I(pd,`getOwnEnumerablePropertySymbols`);function md(e){return Object.keys(e).concat(pd(e))}I(md,`getOwnEnumerableProperties`);var hd=Number.isNaN;function gd(e){let t=B(e);return[`Array`,`Object`,`Function`].indexOf(t)!==-1}I(gd,`isObjectType`);function _d(e,t){let n=z(e,`operator`),r=z(e,`negate`),i=t[3],a=r?t[2]:t[1];if(n)return n;if(typeof a==`function`&&(a=a()),a||=``,!a||/\shave\s/.test(a))return;let o=gd(i);return/\snot\s/.test(a)?o?`notDeepStrictEqual`:`notStrictEqual`:o?`deepStrictEqual`:`strictEqual`}I(_d,`getOperator`);function vd(e){return e.name}I(vd,`getName`);function yd(e){return Object.prototype.toString.call(e)===`[object RegExp]`}I(yd,`isRegExp`);function K(e){return[`Number`,`BigInt`].includes(B(e))}I(K,`isNumeric`);var{flag:q}=L;[`to`,`be`,`been`,`is`,`and`,`has`,`have`,`with`,`that`,`which`,`at`,`of`,`same`,`but`,`does`,`still`,`also`].forEach(function(e){G.addProperty(e)}),G.addProperty(`not`,function(){q(this,`negate`,!0)}),G.addProperty(`deep`,function(){q(this,`deep`,!0)}),G.addProperty(`nested`,function(){q(this,`nested`,!0)}),G.addProperty(`own`,function(){q(this,`own`,!0)}),G.addProperty(`ordered`,function(){q(this,`ordered`,!0)}),G.addProperty(`any`,function(){q(this,`any`,!0),q(this,`all`,!1)}),G.addProperty(`all`,function(){q(this,`all`,!0),q(this,`any`,!1)});var bd={function:[`function`,`asyncfunction`,`generatorfunction`,`asyncgeneratorfunction`],asyncfunction:[`asyncfunction`,`asyncgeneratorfunction`],generatorfunction:[`generatorfunction`,`asyncgeneratorfunction`],asyncgeneratorfunction:[`asyncgeneratorfunction`]};function xd(e,t){t&&q(this,`message`,t),e=e.toLowerCase();let n=q(this,`object`),r=~[`a`,`e`,`i`,`o`,`u`].indexOf(e.charAt(0))?`an `:`a `,i=B(n).toLowerCase();bd.function.includes(e)?this.assert(bd[e].includes(i),`expected #{this} to be `+r+e,`expected #{this} not to be `+r+e):this.assert(e===i,`expected #{this} to be `+r+e,`expected #{this} not to be `+r+e)}I(xd,`an`),G.addChainableMethod(`an`,xd),G.addChainableMethod(`a`,xd);function Sd(e,t){return hd(e)&&hd(t)||e===t}I(Sd,`SameValueZero`);function Cd(){q(this,`contains`,!0)}I(Cd,`includeChainingBehavior`);function wd(e,t){t&&q(this,`message`,t);let n=q(this,`object`),r=B(n).toLowerCase(),i=q(this,`message`),a=q(this,`negate`),o=q(this,`ssfi`),s=q(this,`deep`),c=s?`deep `:``,l=s?q(this,`eql`):Sd;i=i?i+`: `:``;let u=!1;switch(r){case`string`:u=n.indexOf(e)!==-1;break;case`weakset`:if(s)throw new V(i+`unable to use .deep.include with WeakSet`,void 0,o);u=n.has(e);break;case`map`:n.forEach(function(t){u||=l(t,e)});break;case`set`:s?n.forEach(function(t){u||=l(t,e)}):u=n.has(e);break;case`array`:u=s?n.some(function(t){return l(t,e)}):n.indexOf(e)!==-1;break;default:{if(e!==Object(e))throw new V(i+`the given combination of arguments (`+r+` and `+B(e).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 `+B(e).toLowerCase(),void 0,o);let t=Object.keys(e),s=null,c=0;if(t.forEach(function(r){let i=new G(n);if(mu(this,i,!0),q(i,`lockSsfi`,!0),!a||t.length===1){i.property(r,e[r]);return}try{i.property(r,e[r])}catch(e){if(!R.compatibleConstructor(e,V))throw e;s===null&&(s=e),c++}},this),a&&t.length>1&&c===t.length)throw s;return}}this.assert(u,`expected #{this} to `+c+`include `+W(e),`expected #{this} to not `+c+`include `+W(e))}I(wd,`include`),G.addChainableMethod(`include`,wd,Cd),G.addChainableMethod(`contain`,wd,Cd),G.addChainableMethod(`contains`,wd,Cd),G.addChainableMethod(`includes`,wd,Cd),G.addProperty(`ok`,function(){this.assert(q(this,`object`),`expected #{this} to be truthy`,`expected #{this} to be falsy`)}),G.addProperty(`true`,function(){this.assert(!0===q(this,`object`),`expected #{this} to be true`,`expected #{this} to be false`,!q(this,`negate`))}),G.addProperty(`numeric`,function(){let e=q(this,`object`);this.assert([`Number`,`BigInt`].includes(B(e)),`expected #{this} to be numeric`,`expected #{this} to not be numeric`,!q(this,`negate`))}),G.addProperty(`callable`,function(){let e=q(this,`object`),t=q(this,`ssfi`),n=q(this,`message`),r=n?`${n}: `:``,i=q(this,`negate`),a=i?`${r}expected ${W(e)} not to be a callable function`:`${r}expected ${W(e)} to be a callable function`,o=[`Function`,`AsyncFunction`,`GeneratorFunction`,`AsyncGeneratorFunction`].includes(B(e));if(o&&i||!o&&!i)throw new V(a,void 0,t)}),G.addProperty(`false`,function(){this.assert(!1===q(this,`object`),`expected #{this} to be false`,`expected #{this} to be true`,!!q(this,`negate`))}),G.addProperty(`null`,function(){this.assert(q(this,`object`)===null,`expected #{this} to be null`,`expected #{this} not to be null`)}),G.addProperty(`undefined`,function(){this.assert(q(this,`object`)===void 0,`expected #{this} to be undefined`,`expected #{this} not to be undefined`)}),G.addProperty(`NaN`,function(){this.assert(hd(q(this,`object`)),`expected #{this} to be NaN`,`expected #{this} not to be NaN`)});function Td(){let e=q(this,`object`);this.assert(e!=null,`expected #{this} to exist`,`expected #{this} to not exist`)}I(Td,`assertExist`),G.addProperty(`exist`,Td),G.addProperty(`exists`,Td),G.addProperty(`empty`,function(){let e=q(this,`object`),t=q(this,`ssfi`),n=q(this,`message`),r;switch(n=n?n+`: `:``,B(e).toLowerCase()){case`array`:case`string`:r=e.length;break;case`map`:case`set`:r=e.size;break;case`weakmap`:case`weakset`:throw new V(n+`.empty was passed a weak collection`,void 0,t);case`function`:throw new V((n+`.empty was passed a function `+vd(e)).trim(),void 0,t);default:if(e!==Object(e))throw new V(n+`.empty was passed non-string primitive `+W(e),void 0,t);r=Object.keys(e).length}this.assert(r===0,`expected #{this} to be empty`,`expected #{this} not to be empty`)});function Ed(){let e=B(q(this,`object`));this.assert(e===`Arguments`,`expected #{this} to be arguments but got `+e,`expected #{this} to not be arguments`)}I(Ed,`checkArguments`),G.addProperty(`arguments`,Ed),G.addProperty(`Arguments`,Ed);function Dd(e,t){t&&q(this,`message`,t);let n=q(this,`object`);if(q(this,`deep`)){let t=q(this,`lockSsfi`);q(this,`lockSsfi`,!0),this.eql(e),q(this,`lockSsfi`,t)}else this.assert(e===n,`expected #{this} to equal #{exp}`,`expected #{this} to not equal #{exp}`,e,this._obj,!0)}I(Dd,`assertEqual`),G.addMethod(`equal`,Dd),G.addMethod(`equals`,Dd),G.addMethod(`eq`,Dd);function Od(e,t){t&&q(this,`message`,t);let n=q(this,`eql`);this.assert(n(e,q(this,`object`)),`expected #{this} to deeply equal #{exp}`,`expected #{this} to not deeply equal #{exp}`,e,this._obj,!0)}I(Od,`assertEql`),G.addMethod(`eql`,Od),G.addMethod(`eqls`,Od);function kd(e,t){t&&q(this,`message`,t);let n=q(this,`object`),r=q(this,`doLength`),i=q(this,`message`),a=i?i+`: `:``,o=q(this,`ssfi`),s=B(n).toLowerCase(),c=B(e).toLowerCase();if(r&&s!==`map`&&s!==`set`&&new G(n,i,o,!0).to.have.property(`length`),!r&&s===`date`&&c!==`date`)throw new V(a+`the argument to above must be a date`,void 0,o);if(!K(e)&&(r||K(n)))throw new V(a+`the argument to above must be a number`,void 0,o);if(!r&&s!==`date`&&!K(n)){let e=s===`string`?`'`+n+`'`:n;throw new V(a+`expected `+e+` to be a number or a date`,void 0,o)}if(r){let t=`length`,r;s===`map`||s===`set`?(t=`size`,r=n.size):r=n.length,this.assert(r>e,`expected #{this} to have a `+t+` above #{exp} but got #{act}`,`expected #{this} to not have a `+t+` above #{exp}`,e,r)}else this.assert(n>e,`expected #{this} to be above #{exp}`,`expected #{this} to be at most #{exp}`,e)}I(kd,`assertAbove`),G.addMethod(`above`,kd),G.addMethod(`gt`,kd),G.addMethod(`greaterThan`,kd);function Ad(e,t){t&&q(this,`message`,t);let n=q(this,`object`),r=q(this,`doLength`),i=q(this,`message`),a=i?i+`: `:``,o=q(this,`ssfi`),s=B(n).toLowerCase(),c=B(e).toLowerCase(),l,u=!0;if(r&&s!==`map`&&s!==`set`&&new G(n,i,o,!0).to.have.property(`length`),!r&&s===`date`&&c!==`date`)l=a+`the argument to least must be a date`;else if(!K(e)&&(r||K(n)))l=a+`the argument to least must be a number`;else if(!r&&s!==`date`&&!K(n)){let e=s===`string`?`'`+n+`'`:n;l=a+`expected `+e+` to be a number or a date`}else u=!1;if(u)throw new V(l,void 0,o);if(r){let t=`length`,r;s===`map`||s===`set`?(t=`size`,r=n.size):r=n.length,this.assert(r>=e,`expected #{this} to have a `+t+` at least #{exp} but got #{act}`,`expected #{this} to have a `+t+` below #{exp}`,e,r)}else this.assert(n>=e,`expected #{this} to be at least #{exp}`,`expected #{this} to be below #{exp}`,e)}I(Ad,`assertLeast`),G.addMethod(`least`,Ad),G.addMethod(`gte`,Ad),G.addMethod(`greaterThanOrEqual`,Ad);
50function jd(e,t){t&&q(this,`message`,t);let n=q(this,`object`),r=q(this,`doLength`),i=q(this,`message`),a=i?i+`: `:``,o=q(this,`ssfi`),s=B(n).toLowerCase(),c=B(e).toLowerCase(),l,u=!0;if(r&&s!==`map`&&s!==`set`&&new G(n,i,o,!0).to.have.property(`length`),!r&&s===`date`&&c!==`date`)l=a+`the argument to below must be a date`;else if(!K(e)&&(r||K(n)))l=a+`the argument to below must be a number`;else if(!r&&s!==`date`&&!K(n)){let e=s===`string`?`'`+n+`'`:n;l=a+`expected `+e+` to be a number or a date`}else u=!1;if(u)throw new V(l,void 0,o);if(r){let t=`length`,r;s===`map`||s===`set`?(t=`size`,r=n.size):r=n.length,this.assert(r<e,`expected #{this} to have a `+t+` below #{exp} but got #{act}`,`expected #{this} to not have a `+t+` below #{exp}`,e,r)}else this.assert(n<e,`expected #{this} to be below #{exp}`,`expected #{this} to be at least #{exp}`,e)}I(jd,`assertBelow`),G.addMethod(`below`,jd),G.addMethod(`lt`,jd),G.addMethod(`lessThan`,jd);function Md(e,t){t&&q(this,`message`,t);let n=q(this,`object`),r=q(this,`doLength`),i=q(this,`message`),a=i?i+`: `:``,o=q(this,`ssfi`),s=B(n).toLowerCase(),c=B(e).toLowerCase(),l,u=!0;if(r&&s!==`map`&&s!==`set`&&new G(n,i,o,!0).to.have.property(`length`),!r&&s===`date`&&c!==`date`)l=a+`the argument to most must be a date`;else if(!K(e)&&(r||K(n)))l=a+`the argument to most must be a number`;else if(!r&&s!==`date`&&!K(n)){let e=s===`string`?`'`+n+`'`:n;l=a+`expected `+e+` to be a number or a date`}else u=!1;if(u)throw new V(l,void 0,o);if(r){let t=`length`,r;s===`map`||s===`set`?(t=`size`,r=n.size):r=n.length,this.assert(r<=e,`expected #{this} to have a `+t+` at most #{exp} but got #{act}`,`expected #{this} to have a `+t+` above #{exp}`,e,r)}else this.assert(n<=e,`expected #{this} to be at most #{exp}`,`expected #{this} to be above #{exp}`,e)}I(Md,`assertMost`),G.addMethod(`most`,Md),G.addMethod(`lte`,Md),G.addMethod(`lessThanOrEqual`,Md),G.addMethod(`within`,function(e,t,n){n&&q(this,`message`,n);let r=q(this,`object`),i=q(this,`doLength`),a=q(this,`message`),o=a?a+`: `:``,s=q(this,`ssfi`),c=B(r).toLowerCase(),l=B(e).toLowerCase(),u=B(t).toLowerCase(),d,f=!0,p=l===`date`&&u===`date`?e.toISOString()+`..`+t.toISOString():e+`..`+t;if(i&&c!==`map`&&c!==`set`&&new G(r,a,s,!0).to.have.property(`length`),!i&&c===`date`&&(l!==`date`||u!==`date`))d=o+`the arguments to within must be dates`;else if((!K(e)||!K(t))&&(i||K(r)))d=o+`the arguments to within must be numbers`;else if(!i&&c!==`date`&&!K(r)){let e=c===`string`?`'`+r+`'`:r;d=o+`expected `+e+` to be a number or a date`}else f=!1;if(f)throw new V(d,void 0,s);if(i){let n=`length`,i;c===`map`||c===`set`?(n=`size`,i=r.size):i=r.length,this.assert(i>=e&&i<=t,`expected #{this} to have a `+n+` within `+p,`expected #{this} to not have a `+n+` within `+p)}else this.assert(r>=e&&r<=t,`expected #{this} to be within `+p,`expected #{this} to not be within `+p)});function Nd(e,t){t&&q(this,`message`,t);let n=q(this,`object`),r=q(this,`ssfi`),i=q(this,`message`),a;try{a=n instanceof e}catch(t){throw t instanceof TypeError?(i=i?i+`: `:``,new V(i+`The instanceof assertion needs a constructor but `+B(e)+` was given.`,void 0,r)):t}let o=vd(e);o??=`an unnamed constructor`,this.assert(a,`expected #{this} to be an instance of `+o,`expected #{this} to not be an instance of `+o)}I(Nd,`assertInstanceOf`),G.addMethod(`instanceof`,Nd),G.addMethod(`instanceOf`,Nd);function Pd(e,t,n){n&&q(this,`message`,n);let r=q(this,`nested`),i=q(this,`own`),a=q(this,`message`),o=q(this,`object`),s=q(this,`ssfi`),c=typeof e;if(a=a?a+`: `:``,r){if(c!==`string`)throw new V(a+`the argument to property must be a string when using nested syntax`,void 0,s)}else if(c!==`string`&&c!==`number`&&c!==`symbol`)throw new V(a+`the argument to property must be a string, number, or symbol`,void 0,s);if(r&&i)throw new V(a+`The "nested" and "own" flags cannot be combined.`,void 0,s);if(o==null)throw new V(a+`Target cannot be null or undefined.`,void 0,s);let l=q(this,`deep`),u=q(this,`negate`),d=r?Vu(o,e):null,f=r?d.value:o[e],p=l?q(this,`eql`):(e,t)=>e===t,m=``;l&&(m+=`deep `),i&&(m+=`own `),r&&(m+=`nested `),m+=`property `;let h;h=i?Object.prototype.hasOwnProperty.call(o,e):r?d.exists:Ru(o,e),(!u||arguments.length===1)&&this.assert(h,`expected #{this} to have `+m+W(e),`expected #{this} to not have `+m+W(e)),arguments.length>1&&this.assert(h&&p(t,f),`expected #{this} to have `+m+W(e)+` of #{exp}, but got #{act}`,`expected #{this} to not have `+m+W(e)+` of #{act}`,t,f),q(this,`object`,f)}I(Pd,`assertProperty`),G.addMethod(`property`,Pd);
50function Fd(e,t,n){q(this,`own`,!0),Pd.apply(this,arguments)}I(Fd,`assertOwnProperty`),G.addMethod(`ownProperty`,Fd),G.addMethod(`haveOwnProperty`,Fd);function Id(e,t,n){typeof t==`string`&&(n=t,t=null),n&&q(this,`message`,n);let r=q(this,`object`),i=Object.getOwnPropertyDescriptor(Object(r),e),a=q(this,`eql`);i&&t?this.assert(a(t,i),`expected the own property descriptor for `+W(e)+` on #{this} to match `+W(t)+`, got `+W(i),`expected the own property descriptor for `+W(e)+` on #{this} to not match `+W(t),t,i,!0):this.assert(i,`expected #{this} to have an own property descriptor for `+W(e),`expected #{this} to not have an own property descriptor for `+W(e)),q(this,`object`,i)}I(Id,`assertOwnPropertyDescriptor`),G.addMethod(`ownPropertyDescriptor`,Id),G.addMethod(`haveOwnPropertyDescriptor`,Id);function Ld(){q(this,`doLength`,!0)}I(Ld,`assertLengthChain`);function Rd(e,t){t&&q(this,`message`,t);let n=q(this,`object`),r=B(n).toLowerCase(),i=q(this,`message`),a=q(this,`ssfi`),o=`length`,s;switch(r){case`map`:case`set`:o=`size`,s=n.size;break;default:new G(n,i,a,!0).to.have.property(`length`),s=n.length}this.assert(s==e,`expected #{this} to have a `+o+` of #{exp} but got #{act}`,`expected #{this} to not have a `+o+` of #{act}`,e,s)}I(Rd,`assertLength`),G.addChainableMethod(`length`,Rd,Ld),G.addChainableMethod(`lengthOf`,Rd,Ld);function zd(e,t){t&&q(this,`message`,t);let n=q(this,`object`);this.assert(e.exec(n),`expected #{this} to match `+e,`expected #{this} not to match `+e)}I(zd,`assertMatch`),G.addMethod(`match`,zd),G.addMethod(`matches`,zd),G.addMethod(`string`,function(e,t){t&&q(this,`message`,t);let n=q(this,`object`);new G(n,q(this,`message`),q(this,`ssfi`),!0).is.a(`string`),this.assert(~n.indexOf(e),`expected #{this} to contain `+W(e),`expected #{this} to not contain `+W(e))});function Bd(e){let t=q(this,`object`),n=B(t),r=B(e),i=q(this,`ssfi`),a=q(this,`deep`),o,s=``,c,l=!0,u=q(this,`message`);u=u?u+`: `:``;let d=u+`when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments`;if(n===`Map`||n===`Set`)s=a?`deeply `:``,c=[],t.forEach(function(e,t){c.push(t)}),r!==`Array`&&(e=Array.prototype.slice.call(arguments));else{switch(c=md(t),r){case`Array`:if(arguments.length>1)throw new V(d,void 0,i);break;case`Object`:if(arguments.length>1)throw new V(d,void 0,i);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map(function(e){return typeof e==`symbol`?e:String(e)})}if(!e.length)throw new V(u+`keys required`,void 0,i);let f=e.length,p=q(this,`any`),m=q(this,`all`),h=e,g=a?q(this,`eql`):(e,t)=>e===t;if(!p&&!m&&(m=!0),p&&(l=h.some(function(e){return c.some(function(t){return g(e,t)})})),m&&(l=h.every(function(e){return c.some(function(t){return g(e,t)})}),q(this,`contains`)||(l&&=e.length==c.length)),f>1){e=e.map(function(e){return W(e)});let t=e.pop();m&&(o=e.join(`, `)+`, and `+t),p&&(o=e.join(`, `)+`, or `+t)}else o=W(e[0]);o=(f>1?`keys `:`key `)+o,o=(q(this,`contains`)?`contain `:`have `)+o,this.assert(l,`expected #{this} to `+s+o,`expected #{this} to not `+s+o,h.slice(0).sort(fd),c.sort(fd),!0)}I(Bd,`assertKeys`),G.addMethod(`keys`,Bd),G.addMethod(`key`,Bd);function Vd(e,t,n){n&&q(this,`message`,n);let r=q(this,`object`),i=q(this,`ssfi`),a=q(this,`message`),o=q(this,`negate`)||!1;new G(r,a,i,!0).is.a(`function`),(yd(e)||typeof e==`string`)&&(t=e,e=null);let s,c=!1;try{r()}catch(e){c=!0,s=e}let l=e===void 0&&t===void 0,u=!!(e&&t),d=!1,f=!1;if(l||!l&&!o){let t=`an error`;e instanceof Error?t=`#{exp}`:e&&(t=R.getConstructorName(e));let n=s;if(s instanceof Error)n=s.toString();else if(typeof s==`string`)n=s;else if(s&&(typeof s==`object`||typeof s==`function`))try{n=R.getConstructorName(s)}catch{}this.assert(c,`expected #{this} to throw `+t,`expected #{this} to not throw an error but #{act} was thrown`,e&&e.toString(),n)}if(e&&s&&(e instanceof Error&&R.compatibleInstance(s,e)===o&&(u&&o?d=!0:this.assert(o,`expected #{this} to throw #{exp} but #{act} was thrown`,`expected #{this} to not throw #{exp}`+(s&&!o?` but #{act} was thrown`:``),e.toString(),s.toString())),R.compatibleConstructor(s,e)===o&&(u&&o?d=!0:this.assert(o,`expected #{this} to throw #{exp} but #{act} was thrown`,`expected #{this} to not throw #{exp}`+(s?` but #{act} was thrown`:``),e instanceof Error?e.toString():e&&R.getConstructorName(e),s instanceof Error?s.toString():s&&R.getConstructorName(s)))),s&&t!=null){let e=`including`;yd(t)&&(e=`matching`),R.compatibleMessage(s,t)===o&&(u&&o?f=!0:this.assert(o,`expected #{this} to throw error `+e+` #{exp} but got #{act}`,`expected #{this} to throw error not `+e+` #{exp}`,t,R.getMessage(s)))}d&&f&&this.assert(o,`expected #{this} to throw #{exp} but #{act} was thrown`,`expected #{this} to not throw #{exp}`+(s?` but #{act} was thrown`:``),e instanceof Error?e.toString():e&&R.getConstructorName(e),s instanceof Error?s.toString():s&&R.getConstructorName(s)),q(this,`object`,s)}I(Vd,`assertThrows`),G.addMethod(`throw`,Vd),G.addMethod(`throws`,Vd),G.addMethod(`Throw`,Vd);function Hd(e,t){t&&q(this,`message`,t);let n=q(this,`object`),r=q(this,`itself`),i=typeof n==`function`&&!r?n.prototype[e]:n[e];this.assert(typeof i==`function`,`expected #{this} to respond to `+W(e),`expected #{this} to not respond to `+W(e))}I(Hd,`respondTo`),G.addMethod(`respondTo`,Hd),G.addMethod(`respondsTo`,Hd),G.addProperty(`itself`,function(){q(this,`itself`,!0)});function Ud(e,t){t&&q(this,`message`,t);let n=e(q(this,`object`));this.assert(n,`expected #{this} to satisfy `+fu(e),`expected #{this} to not satisfy`+fu(e),!q(this,`negate`),n)}I(Ud,`satisfy`),G.addMethod(`satisfy`,Ud),G.addMethod(`satisfies`,Ud);function Wd(e,t,n){n&&q(this,`message`,n);let r=q(this,`object`),i=q(this,`message`),a=q(this,`ssfi`);new G(r,i,a,!0).is.numeric;let o="A `delta` value is required for `closeTo`";if(t==null||(new G(t,i,a,!0).is.numeric,o="A `expected` value is required for `closeTo`",e==null))throw new V(i?`${i}: ${o}`:o,void 0,a);new G(e,i,a,!0).is.numeric;let s=I(e=>e<0?-e:e,`abs`),c=I(e=>parseFloat(parseFloat(e).toPrecision(12)),`strip`);this.assert(c(s(r-e))<=t,`expected #{this} to be close to `+e+` +/- `+t,`expected #{this} not to be close to `+e+` +/- `+t)}I(Wd,`closeTo`),G.addMethod(`closeTo`,Wd),G.addMethod(`approximately`,Wd);function Gd(e,t,n,r,i){let a=Array.from(t),o=Array.from(e);if(!r){if(o.length!==a.length)return!1;a=a.slice()}return o.every(function(e,t){if(i)return n?n(e,a[t]):e===a[t];if(!n){let t=a.indexOf(e);return t!==-1&&(r||a.splice(t,1),!0)}return a.some(function(t,i){return n(e,t)?(r||a.splice(i,1),!0):!1})})}I(Gd,`isSubsetOf`),G.addMethod(`members`,function(e,t){t&&q(this,`message`,t);let n=q(this,`object`),r=q(this,`message`),i=q(this,`ssfi`);new G(n,r,i,!0).to.be.iterable,new G(e,r,i,!0).to.be.iterable;let a=q(this,`contains`),o=q(this,`ordered`),s,c,l;a?(s=o?`an ordered superset`:`a superset`,c=`expected #{this} to be `+s+` of #{exp}`,l=`expected #{this} to not be `+s+` of #{exp}`):(s=o?`ordered members`:`members`,c=`expected #{this} to have the same `+s+` as #{exp}`,l=`expected #{this} to not have the same `+s+` as #{exp}`);let u=q(this,`deep`)?q(this,`eql`):void 0;this.assert(Gd(e,n,u,a,o),c,l,e,n,!0)}),G.addProperty(`iterable`,function(e){e&&q(this,`message`,e);let t=q(this,`object`);this.assert(t!=null&&t[Symbol.iterator],`expected #{this} to be an iterable`,`expected #{this} to not be an iterable`,t)});function Kd(e,t){t&&q(this,`message`,t);let n=q(this,`object`),r=q(this,`message`),i=q(this,`ssfi`),a=q(this,`contains`),o=q(this,`deep`),s=q(this,`eql`);new G(e,r,i,!0).to.be.an(`array`),a?this.assert(e.some(function(e){return n.indexOf(e)>-1}),`expected #{this} to contain one of #{exp}`,`expected #{this} to not contain one of #{exp}`,e,n):o?this.assert(e.some(function(e){return s(n,e)}),`expected #{this} to deeply equal one of #{exp}`,`expected #{this} to deeply equal one of #{exp}`,e,n):this.assert(e.indexOf(n)>-1,`expected #{this} to be one of #{exp}`,`expected #{this} to not be one of #{exp}`,e,n)}I(Kd,`oneOf`),G.addMethod(`oneOf`,Kd);function qd(e,t,n){n&&q(this,`message`,n);let r=q(this,`object`),i=q(this,`message`),a=q(this,`ssfi`);new G(r,i,a,!0).is.a(`function`);let o;t?(new G(e,i,a,!0).to.have.property(t),o=e[t]):(new G(e,i,a,!0).is.a(`function`),o=e()),r();let s=t==null?e():e[t],c=t==null?o:`.`+t;q(this,`deltaMsgObj`,c),q(this,`initialDeltaValue`,o),q(this,`finalDeltaValue`,s),q(this,`deltaBehavior`,`change`),q(this,`realDelta`,s!==o),this.assert(o!==s,`expected `+c+` to change`,`expected `+c+` to not change`)}I(qd,`assertChanges`),G.addMethod(`change`,qd),G.addMethod(`changes`,qd);function Jd(e,t,n){n&&q(this,`message`,n);let r=q(this,`object`),i=q(this,`message`),a=q(this,`ssfi`);new G(r,i,a,!0).is.a(`function`);let o;t?(new G(e,i,a,!0).to.have.property(t),o=e[t]):(new G(e,i,a,!0).is.a(`function`),o=e()),new G(o,i,a,!0).is.a(`number`),r();let s=t==null?e():e[t],c=t==null?o:`.`+t;q(this,`deltaMsgObj`,c),q(this,`initialDeltaValue`,o),q(this,`finalDeltaValue`,s),q(this,`deltaBehavior`,`increase`),q(this,`realDelta`,s-o),this.assert(s-o>0,`expected `+c+` to increase`,`expected `+c+` to not increase`)}I(Jd,`assertIncreases`),G.addMethod(`increase`,Jd),G.addMethod(`increases`,Jd);function Yd(e,t,n){n&&q(this,`message`,n);let r=q(this,`object`),i=q(this,`message`),a=q(this,`ssfi`);new G(r,i,a,!0).is.a(`function`);let o;t?(new G(e,i,a,!0).to.have.property(t),o=e[t]):(new G(e,i,a,!0).is.a(`function`),o=e()),new G(o,i,a,!0).is.a(`number`),r();let s=t==null?e():e[t],c=t==null?o:`.`+t;q(this,`deltaMsgObj`,c),q(this,`initialDeltaValue`,o),q(this,`finalDeltaValue`,s),q(this,`deltaBehavior`,`decrease`),q(this,`realDelta`,o-s),this.assert(s-o<0,`expected `+c+` to decrease`,`expected `+c+` to not decrease`)}I(Yd,`assertDecreases`),G.addMethod(`decrease`,Yd),G.addMethod(`decreases`,Yd);function Xd(e,t){t&&q(this,`message`,t);let n=q(this,`deltaMsgObj`),r=q(this,`initialDeltaValue`),i=q(this,`finalDeltaValue`),a=q(this,`deltaBehavior`),o=q(this,`realDelta`),s;s=a===`change`?Math.abs(i-r)===Math.abs(e):o===Math.abs(e),this.assert(s,`expected `+n+` to `+a+` by `+e,`expected `+n+` to not `+a+` by `+e)}
50I(Xd,`assertDelta`),G.addMethod(`by`,Xd),G.addProperty(`extensible`,function(){let e=q(this,`object`),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,`expected #{this} to be extensible`,`expected #{this} to not be extensible`)}),G.addProperty(`sealed`,function(){let e=q(this,`object`),t=e!==Object(e)||Object.isSealed(e);this.assert(t,`expected #{this} to be sealed`,`expected #{this} to not be sealed`)}),G.addProperty(`frozen`,function(){let e=q(this,`object`),t=e!==Object(e)||Object.isFrozen(e);this.assert(t,`expected #{this} to be frozen`,`expected #{this} to not be frozen`)}),G.addProperty(`finite`,function(e){let t=q(this,`object`);this.assert(typeof t==`number`&&isFinite(t),`expected #{this} to be a finite number`,`expected #{this} to not be a finite number`)});function Zd(e,t){return e===t?!0:typeof t==typeof e?typeof e!=`object`||!e?e===t:t?Array.isArray(e)?Array.isArray(t)?e.every(function(e){return t.some(function(t){return Zd(e,t)})}):!1:e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Object.keys(e).every(function(n){let r=e[n],i=t[n];return typeof r==`object`&&r&&i!==null?Zd(r,i):typeof r==`function`?r(i):i===r}):!1:!1}I(Zd,`compareSubset`),G.addMethod(`containSubset`,function(e){let t=z(this,`object`),n=U.showDiff;this.assert(Zd(e,t),`expected #{act} to contain subset #{exp}`,`expected #{act} to not contain subset #{exp}`,e,t,n)});function Qd(e,t){return new G(e,t)}I(Qd,`expect`),Qd.fail=function(e,t,n,r){throw arguments.length<2&&(n=e,e=void 0),n||=`expect.fail()`,new V(n,{actual:e,expected:t,operator:r},Qd.fail)};var $d={};rl($d,{Should:()=>nf,should:()=>tf});function ef(){function e(){return this instanceof String||this instanceof Number||this instanceof Boolean||typeof Symbol==`function`&&this instanceof Symbol||typeof BigInt==`function`&&this instanceof BigInt?new G(this.valueOf(),null,e):new G(this,null,e)}I(e,`shouldGetter`);function t(e){Object.defineProperty(this,"should",{value:e,enumerable:!0,configurable:!0,writable:!0})}I(t,`shouldSetter`),Object.defineProperty(Object.prototype,"should",{set:t,get:e,configurable:!0});let n={};return n.fail=function(e,t,r,i){throw arguments.length<2&&(r=e,e=void 0),r||=`should.fail()`,new V(r,{actual:e,expected:t,operator:i},n.fail)},n.equal=function(e,t,n){new G(e,n).to.equal(t)},n.Throw=function(e,t,n,r){new G(e,r).to.Throw(t,n)},n.exist=function(e,t){new G(e,t).to.exist},n.not={},n.not.equal=function(e,t,n){new G(e,n).to.not.equal(t)},n.not.Throw=function(e,t,n,r){new G(e,r).to.not.Throw(t,n)},n.not.exist=function(e,t){new G(e,t).to.not.exist},n.throw=n.Throw,n.not.throw=n.not.Throw,n}I(ef,`loadShould`);var tf=ef,nf=ef;function J(e,t){new G(null,null,J,!0).assert(e,t,`[ negation message unavailable ]`)}I(J,`assert`),J.fail=function(e,t,n,r){throw arguments.length<2&&(n=e,e=void 0),n||=`assert.fail()`,new V(n,{actual:e,expected:t,operator:r},J.fail)},J.isOk=function(e,t){new G(e,t,J.isOk,!0).is.ok},J.isNotOk=function(e,t){new G(e,t,J.isNotOk,!0).is.not.ok},J.equal=function(e,t,n){let r=new G(e,n,J.equal,!0);r.assert(t==z(r,`object`),`expected #{this} to equal #{exp}`,`expected #{this} to not equal #{act}`,t,e,!0)},J.notEqual=function(e,t,n){let r=new G(e,n,J.notEqual,!0);r.assert(t!=z(r,`object`),`expected #{this} to not equal #{exp}`,`expected #{this} to equal #{act}`,t,e,!0)},J.strictEqual=function(e,t,n){new G(e,n,J.strictEqual,!0).to.equal(t)},J.notStrictEqual=function(e,t,n){new G(e,n,J.notStrictEqual,!0).to.not.equal(t)},J.deepEqual=J.deepStrictEqual=function(e,t,n){new G(e,n,J.deepEqual,!0).to.eql(t)},J.notDeepEqual=function(e,t,n){new G(e,n,J.notDeepEqual,!0).to.not.eql(t)},J.isAbove=function(e,t,n){new G(e,n,J.isAbove,!0).to.be.above(t)},J.isAtLeast=function(e,t,n){new G(e,n,J.isAtLeast,!0).to.be.least(t)},J.isBelow=function(e,t,n){new G(e,n,J.isBelow,!0).to.be.below(t)},J.isAtMost=function(e,t,n){new G(e,n,J.isAtMost,!0).to.be.most(t)},J.isTrue=function(e,t){new G(e,t,J.isTrue,!0).is.true},J.isNotTrue=function(e,t){new G(e,t,J.isNotTrue,!0).to.not.equal(!0)},J.isFalse=function(e,t){new G(e,t,J.isFalse,!0).is.false},J.isNotFalse=function(e,t){new G(e,t,J.isNotFalse,!0).to.not.equal(!1)},J.isNull=function(e,t){new G(e,t,J.isNull,!0).to.equal(null)},J.isNotNull=function(e,t){new G(e,t,J.isNotNull,!0).to.not.equal(null)},J.isNaN=function(e,t){new G(e,t,J.isNaN,!0).to.be.NaN},J.isNotNaN=function(e,t){new G(e,t,J.isNotNaN,!0).not.to.be.NaN},J.exists=function(e,t){new G(e,t,J.exists,!0).to.exist},J.notExists=function(e,t){new G(e,t,J.notExists,!0).to.not.exist}
50,J.isUndefined=function(e,t){new G(e,t,J.isUndefined,!0).to.equal(void 0)},J.isDefined=function(e,t){new G(e,t,J.isDefined,!0).to.not.equal(void 0)},J.isCallable=function(e,t){new G(e,t,J.isCallable,!0).is.callable},J.isNotCallable=function(e,t){new G(e,t,J.isNotCallable,!0).is.not.callable},J.isObject=function(e,t){new G(e,t,J.isObject,!0).to.be.a(`object`)},J.isNotObject=function(e,t){new G(e,t,J.isNotObject,!0).to.not.be.a(`object`)},J.isArray=function(e,t){new G(e,t,J.isArray,!0).to.be.an(`array`)},J.isNotArray=function(e,t){new G(e,t,J.isNotArray,!0).to.not.be.an(`array`)},J.isString=function(e,t){new G(e,t,J.isString,!0).to.be.a(`string`)},J.isNotString=function(e,t){new G(e,t,J.isNotString,!0).to.not.be.a(`string`)},J.isNumber=function(e,t){new G(e,t,J.isNumber,!0).to.be.a(`number`)},J.isNotNumber=function(e,t){new G(e,t,J.isNotNumber,!0).to.not.be.a(`number`)},J.isNumeric=function(e,t){new G(e,t,J.isNumeric,!0).is.numeric},J.isNotNumeric=function(e,t){new G(e,t,J.isNotNumeric,!0).is.not.numeric},J.isFinite=function(e,t){new G(e,t,J.isFinite,!0).to.be.finite},J.isBoolean=function(e,t){new G(e,t,J.isBoolean,!0).to.be.a(`boolean`)},J.isNotBoolean=function(e,t){new G(e,t,J.isNotBoolean,!0).to.not.be.a(`boolean`)},J.typeOf=function(e,t,n){new G(e,n,J.typeOf,!0).to.be.a(t)},J.notTypeOf=function(e,t,n){new G(e,n,J.notTypeOf,!0).to.not.be.a(t)},J.instanceOf=function(e,t,n){new G(e,n,J.instanceOf,!0).to.be.instanceOf(t)},J.notInstanceOf=function(e,t,n){new G(e,n,J.notInstanceOf,!0).to.not.be.instanceOf(t)},J.include=function(e,t,n){new G(e,n,J.include,!0).include(t)},J.notInclude=function(e,t,n){new G(e,n,J.notInclude,!0).not.include(t)},J.deepInclude=function(e,t,n){new G(e,n,J.deepInclude,!0).deep.include(t)},J.notDeepInclude=function(e,t,n){new G(e,n,J.notDeepInclude,!0).not.deep.include(t)},J.nestedInclude=function(e,t,n){new G(e,n,J.nestedInclude,!0).nested.include(t)},J.notNestedInclude=function(e,t,n){new G(e,n,J.notNestedInclude,!0).not.nested.include(t)},J.deepNestedInclude=function(e,t,n){new G(e,n,J.deepNestedInclude,!0).deep.nested.include(t)},J.notDeepNestedInclude=function(e,t,n){new G(e,n,J.notDeepNestedInclude,!0).not.deep.nested.include(t)},J.ownInclude=function(e,t,n){new G(e,n,J.ownInclude,!0).own.include(t)},J.notOwnInclude=function(e,t,n){new G(e,n,J.notOwnInclude,!0).not.own.include(t)},J.deepOwnInclude=function(e,t,n){new G(e,n,J.deepOwnInclude,!0).deep.own.include(t)},J.notDeepOwnInclude=function(e,t,n){new G(e,n,J.notDeepOwnInclude,!0).not.deep.own.include(t)},J.match=function(e,t,n){new G(e,n,J.match,!0).to.match(t)},J.notMatch=function(e,t,n){new G(e,n,J.notMatch,!0).to.not.match(t)},J.property=function(e,t,n){new G(e,n,J.property,!0).to.have.property(t)},J.notProperty=function(e,t,n){new G(e,n,J.notProperty,!0).to.not.have.property(t)},J.propertyVal=function(e,t,n,r){new G(e,r,J.propertyVal,!0).to.have.property(t,n)},J.notPropertyVal=function(e,t,n,r){new G(e,r,J.notPropertyVal,!0).to.not.have.property(t,n)},J.deepPropertyVal=function(e,t,n,r){new G(e,r,J.deepPropertyVal,!0).to.have.deep.property(t,n)},J.notDeepPropertyVal=function(e,t,n,r){new G(e,r,J.notDeepPropertyVal,!0).to.not.have.deep.property(t,n)},J.ownProperty=function(e,t,n){new G(e,n,J.ownProperty,!0).to.have.own.property(t)},J.notOwnProperty=function(e,t,n){new G(e,n,J.notOwnProperty,!0).to.not.have.own.property(t)},J.ownPropertyVal=function(e,t,n,r){new G(e,r,J.ownPropertyVal,!0).to.have.own.property(t,n)},J.notOwnPropertyVal=function(e,t,n,r){new G(e,r,J.notOwnPropertyVal,!0).to.not.have.own.property(t,n)},J.deepOwnPropertyVal=function(e,t,n,r){new G(e,r,J.deepOwnPropertyVal,!0).to.have.deep.own.property(t,n)},J.notDeepOwnPropertyVal=function(e,t,n,r){new G(e,r,J.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,n)},J.nestedProperty=function(e,t,n){new G(e,n,J.nestedProperty,!0).to.have.nested.property(t)},J.notNestedProperty=function(e,t,n){new G(e,n,J.notNestedProperty,!0).to.not.have.nested.property(t)},J.nestedPropertyVal=function(e,t,n,r){new G(e,r,J.nestedPropertyVal,!0).to.have.nested.property(t,n)},J.notNestedPropertyVal=function(e,t,n,r){new G(e,r,J.notNestedPropertyVal,!0).to.not.have.nested.property(t,n)},J.deepNestedPropertyVal=function(e,t,n,r){new G(e,r,J.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,n)},J.notDeepNestedPropertyVal=function(e,t,n,r){new G(e,r,J.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,n)},J.lengthOf=function(e,t,n){new G(e,n,J.lengthOf,!0).to.have.lengthOf(t)},J.hasAnyKeys=function(e,t,n){new G(e,n,J.hasAnyKeys,!0).to.have.any.keys(t)},J.hasAllKeys=function(e,t,n){new G(e,n,J.hasAllKeys,!0).to.have.all.keys(t)},J.containsAllKeys=function(e,t,n){new G(e,n,J.containsAllKeys,!0).to.contain.all.keys(t)},J.doesNotHaveAnyKeys=function(e,t,n){new G(e,n,J.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)},J.doesNotHaveAllKeys=function(e,t,n){new G(e,n,J.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)},J.hasAnyDeepKeys=function(e,t,n){new G(e,n,J.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)},J.hasAllDeepKeys=function(e,t,n){new G(e,n,J.hasAllDeepKeys,!0).to.have.all.deep.keys(t)},J.containsAllDeepKeys=function(e,t,n){new G(e,n,J.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)},J.doesNotHaveAnyDeepKeys=function(e,t,n){new G(e,n,J.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)},J.doesNotHaveAllDeepKeys=function(e,t,n){new G(e,n,J.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)},J.throws=function(e,t,n,r){return(typeof t==`string`||t instanceof RegExp)&&(n=t,t=null),z(ne
50w G(e,r,J.throws,!0).to.throw(t,n),`object`)},J.doesNotThrow=function(e,t,n,r){(typeof t==`string`||t instanceof RegExp)&&(n=t,t=null),new G(e,r,J.doesNotThrow,!0).to.not.throw(t,n)},J.operator=function(e,t,n,r){let i;switch(t){case`==`:i=e==n;break;case`===`:i=e===n;break;case`>`:i=e>n;break;case`>=`:i=e>=n;break;case`<`:i=e<n;break;case`<=`:i=e<=n;break;case`!=`:i=e!=n;break;case`!==`:i=e!==n;break;default:throw r&&=r+`: `,new V(r+`Invalid operator "`+t+`"`,void 0,J.operator)}let a=new G(i,r,J.operator,!0);a.assert(!0===z(a,`object`),`expected `+W(e)+` to be `+t+` `+W(n),`expected `+W(e)+` to not be `+t+` `+W(n))},J.closeTo=function(e,t,n,r){new G(e,r,J.closeTo,!0).to.be.closeTo(t,n)},J.approximately=function(e,t,n,r){new G(e,r,J.approximately,!0).to.be.approximately(t,n)},J.sameMembers=function(e,t,n){new G(e,n,J.sameMembers,!0).to.have.same.members(t)},J.notSameMembers=function(e,t,n){new G(e,n,J.notSameMembers,!0).to.not.have.same.members(t)},J.sameDeepMembers=function(e,t,n){new G(e,n,J.sameDeepMembers,!0).to.have.same.deep.members(t)},J.notSameDeepMembers=function(e,t,n){new G(e,n,J.notSameDeepMembers,!0).to.not.have.same.deep.members(t)},J.sameOrderedMembers=function(e,t,n){new G(e,n,J.sameOrderedMembers,!0).to.have.same.ordered.members(t)},J.notSameOrderedMembers=function(e,t,n){new G(e,n,J.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)},J.sameDeepOrderedMembers=function(e,t,n){new G(e,n,J.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)},J.notSameDeepOrderedMembers=function(e,t,n){new G(e,n,J.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)},J.includeMembers=function(e,t,n){new G(e,n,J.includeMembers,!0).to.include.members(t)},J.notIncludeMembers=function(e,t,n){new G(e,n,J.notIncludeMembers,!0).to.not.include.members(t)},J.includeDeepMembers=function(e,t,n){new G(e,n,J.includeDeepMembers,!0).to.include.deep.members(t)},J.notIncludeDeepMembers=function(e,t,n){new G(e,n,J.notIncludeDeepMembers,!0).to.not.include.deep.members(t)},J.includeOrderedMembers=function(e,t,n){new G(e,n,J.includeOrderedMembers,!0).to.include.ordered.members(t)},J.notIncludeOrderedMembers=function(e,t,n){new G(e,n,J.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)},J.includeDeepOrderedMembers=function(e,t,n){new G(e,n,J.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)},J.notIncludeDeepOrderedMembers=function(e,t,n){new G(e,n,J.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)},J.oneOf=function(e,t,n){new G(e,n,J.oneOf,!0).to.be.oneOf(t)},J.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${W(e)} to be an iterable`:`expected ${W(e)} to be an iterable`,new V(t,void 0,J.isIterable)},J.changes=function(e,t,n,r){arguments.length===3&&typeof t==`function`&&(r=n,n=null),new G(e,r,J.changes,!0).to.change(t,n)},J.changesBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new G(e,i,J.changesBy,!0).to.change(t,n).by(r)},J.doesNotChange=function(e,t,n,r){return arguments.length===3&&typeof t==`function`&&(r=n,n=null),new G(e,r,J.doesNotChange,!0).to.not.change(t,n)},J.changesButNotBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new G(e,i,J.changesButNotBy,!0).to.change(t,n).but.not.by(r)},J.increases=function(e,t,n,r){return arguments.length===3&&typeof t==`function`&&(r=n,n=null),new G(e,r,J.increases,!0).to.increase(t,n)},J.increasesBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new G(e,i,J.increasesBy,!0).to.increase(t,n).by(r)},J.doesNotIncrease=function(e,t,n,r){return arguments.length===3&&typeof t==`function`&&(r=n,n=null),new G(e,r,J.doesNotIncrease,!0).to.not.increase(t,n)},J.increasesButNotBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new G(e,i,J.increasesButNotBy,!0).to.increase(t,n).but.not.by(r)},J.decreases=function(e,t,n,r){return arguments.length===3&&typeof t==`function`&&(r=n,n=null),new G(e,r,J.decreases,!0).to.decrease(t,n)},J.decreasesBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new G(e,i,J.decreasesBy,!0).to.decrease(t,n).by(r)},J.doesNotDecrease=function(e,t,n,r){return arguments.length===3&&typeof t==`function`&&(r=n,n=null),new G(e,r,J.doesNotDecrease,!0).to.not.decrease(t,n)},J.doesNotDecreaseBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);return new G(e,i,J.doesNotDecreaseBy,!0).to.not.decrease(t,n).by(r)},J.decreasesButNotBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new G(e,i,J.decreasesButNotBy,!0).to.decrease(t,n).but.not.by(r)},J.ifError=function(e){if(e)throw e},J.isExtensible=function(e,t){new G(e,t,J.isExtensible,!0).to.be.extensible},J.isNotExtensible=function(e,t){new G(e,t,J.isNotExtensible,!0).to.not.be.extensible},J.isSealed=function(e,t){new G(e,t,J.isSealed,!0).to.be.sealed}
50,J.isNotSealed=function(e,t){new G(e,t,J.isNotSealed,!0).to.not.be.sealed},J.isFrozen=function(e,t){new G(e,t,J.isFrozen,!0).to.be.frozen},J.isNotFrozen=function(e,t){new G(e,t,J.isNotFrozen,!0).to.not.be.frozen},J.isEmpty=function(e,t){new G(e,t,J.isEmpty,!0).to.be.empty},J.isNotEmpty=function(e,t){new G(e,t,J.isNotEmpty,!0).to.not.be.empty},J.containsSubset=function(e,t,n){new G(e,n).to.containSubset(t)},J.doesNotContainSubset=function(e,t,n){new G(e,n).to.not.containSubset(t)};for(let[e,t]of[[`isOk`,`ok`],[`isNotOk`,`notOk`],[`throws`,`throw`],[`throws`,`Throw`],[`isExtensible`,`extensible`],[`isNotExtensible`,`notExtensible`],[`isSealed`,`sealed`],[`isNotSealed`,`notSealed`],[`isFrozen`,`frozen`],[`isNotFrozen`,`notFrozen`],[`isEmpty`,`empty`],[`isNotEmpty`,`notEmpty`],[`isCallable`,`isFunction`],[`isNotCallable`,`isNotFunction`],[`containsSubset`,`containSubset`]])J[t]=J[e];var rf=[];function af(e){let t={use:af,AssertionError:V,util:L,config:U,expect:Qd,assert:J,Assertion:G,...$d};return~rf.indexOf(e)||(e(t,L),rf.push(e)),t}I(af,`use`);var of=(e,t)=>{function n(n,r){t.addProperty(e.Assertion.prototype,n,function(){let t=e.Assertion.prototype[r];if(!t)throw Error(`Cannot delegate to ${String(r)}: method not found. Ensure JestChaiExpect plugin is loaded first.`);return t.call(this)})}function r(n,r,...i){t.addProperty(e.Assertion.prototype,n,function(){let t=e.Assertion.prototype[r];if(!t)throw Error(`Cannot delegate to ${String(r)}: method not found. Ensure JestChaiExpect plugin is loaded first.`);return t.call(this,...i)})}function i(n,r){t.addMethod(e.Assertion.prototype,n,function(...t){let n=e.Assertion.prototype[r];if(!n)throw Error(`Cannot delegate to ${String(r)}: method not found. Ensure JestChaiExpect plugin is loaded first.`);return n.call(this,...t)})}n(`called`,`toHaveBeenCalled`),n(`calledOnce`,`toHaveBeenCalledOnce`),r(`calledTwice`,`toHaveBeenCalledTimes`,2),r(`calledThrice`,`toHaveBeenCalledTimes`,3),i(`callCount`,`toHaveBeenCalledTimes`),i(`calledWith`,`toHaveBeenCalledWith`),i(`calledOnceWith`,`toHaveBeenCalledExactlyOnceWith`),i(`lastCalledWith`,`toHaveBeenLastCalledWith`),i(`nthCalledWith`,`toHaveBeenNthCalledWith`),i(`returned`,`toHaveReturned`),i(`returnedWith`,`toHaveReturnedWith`),i(`returnedTimes`,`toHaveReturnedTimes`),i(`lastReturnedWith`,`toHaveLastReturnedWith`),i(`nthReturnedWith`,`toHaveNthReturnedWith`),i(`calledBefore`,`toHaveBeenCalledBefore`),i(`calledAfter`,`toHaveBeenCalledAfter`)},sf=Symbol.for(`matchers-object`),cf=Symbol.for(`$$jest-matchers-object`),lf=Symbol.for(`expect-global`),uf=Symbol.for(`asymmetric-matchers-object`),df={toSatisfy(e,t,n){let{printReceived:r,printExpected:i,matcherHint:a}=this.utils,o=t(e);return{pass:o,message:()=>o?`\
51${a(`.not.toSatisfy`,`received`,``)}
52
53Expected value to not satisfy:
54${n||i(t)}
55Received:
56${r(e)}`:`\
57${a(`.toSatisfy`,`received`,``)}
58
59Expected value to satisfy:
60${n||i(t)}
61
62Received:
63${r(e)}`}},toBeOneOf(e,t){let{equals:n,customTesters:r}=this,{printReceived:i,printExpected:a,matcherHint:o}=this.utils,s;if(Array.isArray(t))s=t.length===0||t.some(t=>n(t,e,r));else if(t instanceof Set)s=t.size===0||t.has(e)||[...t].some(t=>n(t,e,r));else throw TypeError(`You must provide an array or set to ${o(`.toBeOneOf`)}, not '${typeof t}'.`);return{pass:s,message:()=>s?`\
64${o(`.not.toBeOneOf`,`received`,``)}
65
66Expected value to not be one of:
67${a(t)}
68Received:
69${i(e)}`:`\
70${o(`.toBeOneOf`,`received`,``)}
71
72Expected value to be one of:
73${a(t)}
74
75Received:
76${i(e)}`}}},ff=o.green,pf=o.red,mf=o.inverse,hf=o.bold,gf=o.dim;function _f(e,t=`received`,n=`expected`,r={}){let{comment:i=``,isDirectExpectCall:a=!1,isNot:o=!1,promise:s=``,secondArgument:c=``,expectedColor:l=ff,receivedColor:u=pf,secondArgumentColor:d=ff}=r,f=``,p=`expect`;return!a&&t!==``&&(f+=gf(`${p}(`)+u(t),p=`)`),s!==``&&(f+=gf(`${p}.`)+s,p=``),o&&(f+=`${gf(`${p}.`)}not`,p=``),e.includes(`.`)?p+=e:(f+=gf(`${p}.`)+e,p=``),n===``?p+=`()`:(f+=gf(`${p}(`)+l(n),c&&(f+=gf(`, `)+d(c)),p=`)`),i!==``&&(p+=` // ${i}`),p!==``&&(f+=gf(p)),f}var vf=`·`;function yf(e){return e.replace(/\s+$/gm,e=>vf.repeat(e.length))}function bf(e){return pf(yf(k(e)))}function xf(e){return ff(yf(k(e)))}function Sf(){return{EXPECTED_COLOR:ff,RECEIVED_COLOR:pf,INVERTED_COLOR:mf,BOLD_WEIGHT:hf,DIM_COLOR:gf,diff:Ei,matcherHint:_f,printReceived:bf,printExpected:xf,printDiffOrStringify:Ri,printWithType:Cf}}function Cf(e,t,n){let r=ar(t);return(r!==`null`&&r!==`undefined`?`${e} has type:  ${r}\n`:``)+`${e} has value: ${n(t)}`}function wf(e){if(!Array.isArray(e))throw TypeError(`expect.customEqualityTesters: Must be set to an array of Testers. Was given "${ar(e)}"`);globalThis[cf].customEqualityTesters.push(...e)}function Tf(){return globalThis[cf].customEqualityTesters}function Y(e,t,n,r){return n||=[],kf(e,t,[],[],n,r?Nf:Mf)}Function.prototype.toString;function Ef(e){return!!e&&typeof e==`object`&&`asymmetricMatch`in e&&Pf(`Function`,e.asymmetricMatch)}function Df(e,t,n){let r=Ef(e),i=Ef(t);
76if(!(r&&i)){if(r)return e.asymmetricMatch(t,n);if(i)return t.asymmetricMatch(e,n)}}function Of(e){if(typeof Error.isError==`function`)return Error.isError(e);switch(Object.prototype.toString.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:return!0;default:return e instanceof Error}}function kf(e,t,n,r,i,a){let o=!0,s=Df(e,t,i);if(s!==void 0)return s;let c={equals:Y};for(let n=0;n<i.length;n++){let r=i[n].call(c,e,t,i);if(r!==void 0)return r}if(typeof URL==`function`&&e instanceof URL&&t instanceof URL)return e.href===t.href;if(Object.is(e,t))return!0;if(e===null||t===null)return e===t;let l=Object.prototype.toString.call(e);if(l!==Object.prototype.toString.call(t))return!1;switch(l){case`[object Boolean]`:case`[object String]`:case`[object Number]`:return typeof e==typeof t?typeof e!=`object`&&typeof t!=`object`?Object.is(e,t):Object.is(e.valueOf(),t.valueOf()):!1;case`[object Date]`:{let n=+e,r=+t;return n===r||Number.isNaN(n)&&Number.isNaN(r)}case`[object RegExp]`:return e.source===t.source&&e.flags===t.flags;case`[object Temporal.Instant]`:case`[object Temporal.ZonedDateTime]`:case`[object Temporal.PlainDateTime]`:case`[object Temporal.PlainDate]`:case`[object Temporal.PlainTime]`:case`[object Temporal.PlainYearMonth]`:case`[object Temporal.PlainMonthDay]`:return e.equals(t);case`[object Temporal.Duration]`:return e.toString()===t.toString()}if(typeof e!=`object`||typeof t!=`object`)return!1;if(Ff(e)&&Ff(t))return e.isEqualNode(t);let u=n.length;for(;u--;)if(n[u]===e)return r[u]===t;else if(r[u]===t)return!1;if(n.push(e),r.push(t),l===`[object Array]`&&e.length!==t.length)return!1;if(Of(e)&&Of(t))try{return Af(e,t,n,r,i,a)}finally{n.pop(),r.pop()}let d=jf(e,a),f,p=d.length;if(jf(t,a).length!==p)return!1;for(;p--;)if(f=d[p],o=a(t,f)&&kf(e[f],t[f],n,r,i,a),!o)return!1;return n.pop(),r.pop(),o}function Af(e,t,n,r,i,a){let o=Object.prototype.toString.call(e)===Object.prototype.toString.call(t)&&e.name===t.name&&e.message===t.message;return t.cause!==void 0&&(o&&=kf(e.cause,t.cause,n,r,i,a)),e instanceof AggregateError&&t instanceof AggregateError&&(o&&=kf(e.errors,t.errors,n,r,i,a)),o&&=kf({...e},{...t},n,r,i,a),o}function jf(e,t){let n=[];for(let r in e)t(e,r)&&n.push(r);return n.concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable))}function Mf(e,t){return Nf(e,t)&&e[t]!==void 0}function Nf(e,t){return Object.hasOwn(e,t)}function Pf(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}function Ff(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`&&`nodeName`in e&&typeof e.nodeName==`string`&&`isEqualNode`in e&&typeof e.isEqualNode==`function`}var If=`@@__IMMUTABLE_KEYED__@@`,Lf=`@@__IMMUTABLE_SET__@@`,Rf=`@@__IMMUTABLE_
76LIST__@@`,zf=`@@__IMMUTABLE_ORDERED__@@`,Bf=`@@__IMMUTABLE_RECORD__@@`;function Vf(e){return!!(e&&e[If]&&!e[zf])}function Hf(e){return!!(e&&e[Lf]&&!e[zf])}function Uf(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Wf(e){return!!(e&&Uf(e)&&e[Rf])}function Gf(e){return!!(e&&Uf(e)&&e[If]&&e[zf])}function Kf(e){return!!(e&&Uf(e)&&e[Lf]&&e[zf])}function qf(e){return!!(e&&Uf(e)&&e[Bf])}var Jf=Symbol.iterator;function Yf(e){return!!(e!=null&&e[Jf])}function X(e,t,n=[],r=[],i=[]){if(typeof e!=`object`||typeof t!=`object`||Array.isArray(e)||Array.isArray(t)||!Yf(e)||!Yf(t))return;if(e.constructor!==t.constructor)return!1;let a=r.length;for(;a--;)if(r[a]===e)return i[a]===t;r.push(e),i.push(t);let o=[...n.filter(e=>e!==X),s];function s(e,t){return X(e,t,[...n],[...r],[...i])}if(e.size!==void 0){if(e.size!==t.size)return!1;if(Pf(`Set`,e)||Hf(e)){let n=!0;for(let r of e)if(!t.has(r)){let e=!1;for(let n of t)Y(r,n,o)===!0&&(e=!0);if(e===!1){n=!1;break}}return r.pop(),i.pop(),n}if(Pf(`Map`,e)||Vf(e)){let n=!0;for(let r of e)if(!t.has(r[0])||!Y(r[1],t.get(r[0]),o)){let e=!1;for(let n of t){let t=Y(r[0],n[0],o),i=!1;t===!0&&(i=Y(r[1],n[1],o)),i===!0&&(e=!0)}if(e===!1){n=!1;break}}return r.pop(),i.pop(),n}}let c=t[Jf]();for(let t of e){let e=c.next();if(e.done||!Y(t,e.value,o))return!1}return!c.next().done||!Wf(e)&&!Gf(e)&&!Kf(e)&&!qf(e)&&!Y(Object.entries(e),Object.entries(t),o)?!1:(r.pop(),i.pop(),!0)}function Xf(e,t){return!e||typeof e!=`object`||e===Object.prototype?!1:Object.hasOwn(e,t)||Xf(Object.getPrototypeOf(e),t)}function Zf(e){return rr(e)&&!Of(e)&&!Array.isArray(e)&&!(e instanceof Date)&&!(e instanceof Set)&&!(e instanceof Map)}function Qf(e,t,n=[]){let r=n.filter(e=>e!==Qf),i=(e=new WeakMap)=>(t,n)=>{if(Zf(n))return Object.keys(n).every(a=>{if(n[a]!=null&&typeof n[a]==`object`){if(e.has(n[a]))return Y(t[a],n[a],r);e.set(n[a],!0)}let o=t!=null&&Xf(t,a)&&Y(t[a],n[a],[...r,i(e)]);return e.delete(n[a]),o})};return i()(e,t)}function $f(e,t){if(e!=null&&t!=null&&e.constructor!==t.constructor)return!1}function ep(e,t){let n=e,r=t;if(!(e instanceof DataView&&t instanceof DataView)){if(!(e instanceof ArrayBuffer)||!(t instanceof ArrayBuffer))return;try{n=new DataView(e),r=new DataView(t)}catch{return}}if(n.byteLength!==r.byteLength)return!1;for(let e=0;e<n.byteLength;e++)if(n.getUint8(e)!==r.getUint8(e))return!1;return!0}function tp(e,t,n=[]){if(!Array.isArray(e)||!Array.isArray(t))return;let r=Object.keys(e),i=Object.keys(t);return Y(e,t,n.filter(e=>e!==tp),!0)&&Y(r,i)}function np(e,t=`#{this}`,n=`#{exp}`){let r=`expected ${t} to be ${n} // Object.is equality`;return[`toStrictEqual`,`toEqual`].includes(e)?`${r}\n\nIf it should pass with deep equality, replace "toBe" with "${e}"\n\nExpected: ${t}\nReceived: serializes to the same string\n`:r}function rp(e,t){return`${t} ${e}${t===1?``:`s`}`}function ip(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t)?.enumerable)]}function ap(e,t,n){let r=0,i=(e=new WeakMap)=>(t,a)=>{if(Array.isArray(t)){if(Array.isArray(a)&&a.length===t.length)return a.map((n,r)=>i(e)(t[r],n))}else if(t instanceof Date)return t;else if(rr(t)&&rr(a)){if(Y(t,a,[...n,X,Qf]))return a;let o={};e.set(t,o),typeof t.constructor==`function`&&typeof t.constructor.name==`string`&&Object.defineProperty(o,"constructor",{enumerable:!1,value:t.constructor});for(let n of ip(t))Xf(a,n)?o[n]=e.has(t[n])?e.get(t[n]):i(e)(t[n],a[n]):e.has(t[n])||(r+=1,rr(t[n])&&(r+=ip(t[n]).length),i(e)(t[n],a[n]));if(ip(o).length>0)return o}return t};return{subset:i()(e,t),stripped:r}}function op(e){return!!e&&(typeof e==`object`||typeof e==`function`)&&e[`~standard`]&&typeof e[`~standard`].validate==`function`}if(!Object.hasOwn(globalThis,sf)){let e=new WeakMap,t=Object.create(null),n=[],r=Object.create(null);Object.defineProperty(globalThis,sf,{get:()=>e}),Object.defineProperty(globalThis,cf,{configurable:!0,get:()=>({state:e.get(globalThis[lf]),matchers:t,customEqualityTesters:n})}),Object.defineProperty(globalThis,uf,{get:()=>r})}function sp(e){return globalThis[sf].get(e)}function cp(e,t){let n=globalThis[sf],r=n.get(t)||{},i=Object.defineProperties(r,{...Object.getOwnPropertyDescriptors(r),...Object.getOwnPropertyDescriptors(e)});n.set(t,i)}var lp=class{constructor(t,n=!1){e(this,`$$typeof`,Symbol.for(`jest.asymmetricMatcher`)),this.sample=t,this.inverse=n}getMatcherContext(e){return{...sp(e||globalThis[lf]),equals:Y,isNot:this.inverse,customTesters:Tf(),utils:{...Sf(),diff:Ei,stringify:k,iterableEquality:X,subsetEquality:Qf}}}};lp.prototype[Symbol.for(`chai/inspect`)]=function(e){let t=k(this,e.depth,{min:!0});return t.length<=e.truncate?t:`${this.toString()}{…}`};var up=class extends lp{constructor(e,t=!1){if(!Pf(`String`,e))throw Error(`Expected is not a string`);super(e,t)}asymmetricMatch(e){let t=Pf(`String`,e)&&e.includes(this.sample);return this.inverse?!t:t}toString(){return`String${this.inverse?`Not`:``}Containing`}getExpectedType(){return`string`}},dp=class extends lp{asymmetricMatch(e){return e!=null}toString(){return`Anything`}toAsymmetricMatcher(){return`Anything`}},fp=class extends lp{constructor(e,t=!1){super(e,t)}getPrototype(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.constructor.prototype===e?null:e.constructor.prototype}
76hasProperty(e,t){return e?Object.hasOwn(e,t)?!0:this.hasProperty(this.getPrototype(e),t):!1}getProperties(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t)?.enumerable)]}asymmetricMatch(e,t){if(typeof this.sample!=`object`)throw TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let n=!0,r=this.getProperties(this.sample);for(let i of r){if(!this.hasProperty(e,i)){n=!1;break}let r=this.sample[i],a=e[i];if(!Y(r,a,t)){n=!1;break}}return this.inverse?!n:n}toString(){return`Object${this.inverse?`Not`:``}Containing`}getExpectedType(){return`object`}},pp=class extends lp{constructor(e,t=!1){super(e,t)}asymmetricMatch(e,t){if(!Array.isArray(this.sample))throw TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);let n=this.sample.length===0||Array.isArray(e)&&this.sample.every(n=>e.some(e=>Y(n,e,t)));return this.inverse?!n:n}toString(){return`Array${this.inverse?`Not`:``}Containing`}getExpectedType(){return`array`}},mp=class extends lp{constructor(e){if(e===void 0)throw TypeError(`any() expects to be passed a constructor function. Please pass one or use anything() to match any object.`);super(e)}fnNameFor(e){if(e.name)return e.name;let t=Function.prototype.toString.call(e).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return t?t[1]:`<anonymous>`}asymmetricMatch(e){return this.sample===String?typeof e==`string`||e instanceof String:this.sample===Number?typeof e==`number`||e instanceof Number:this.sample===Function?typeof e==`function`||typeof e==`function`:this.sample===Boolean?typeof e==`boolean`||e instanceof Boolean:this.sample===BigInt?typeof e==`bigint`||e instanceof BigInt:this.sample===Symbol?typeof e==`symbol`||e instanceof Symbol:this.sample===Object?typeof e==`object`:e instanceof this.sample}toString(){return`Any`}getExpectedType(){return this.sample===String?`string`:this.sample===Number?`number`:this.sample===Function?`function`:this.sample===Object?`object`:this.sample===Boolean?`boolean`:this.fnNameFor(this.sample)}toAsymmetricMatcher(){return`Any<${this.fnNameFor(this.sample)}>`}},hp=class extends lp{constructor(e,t=!1){if(!Pf(`String`,e)&&!Pf(`RegExp`,e))throw Error(`Expected is not a String or a RegExp`);super(new RegExp(e),t)}asymmetricMatch(e){let t=Pf(`String`,e)&&this.sample.test(e);return this.inverse?!t:t}toString(){return`String${this.inverse?`Not`:``}Matching`}getExpectedType(){return`string`}},gp=class extends lp{constructor(t,n=2,r=!1){if(!Pf(`Number`,t))throw Error(`Expected is not a Number`);if(!Pf(`Number`,n))throw Error(`Precision is not a Number`);super(t),e(this,`precision`,void 0),this.inverse=r,this.precision=n}asymmetricMatch(e){if(!Pf(`Number`,e))return!1;let t=!1;return t=e===1/0&&this.sample===1/0||e===-1/0&&this.sample===-1/0||Math.abs(this.sample-e)<10**-this.precision/2,this.inverse?!t:t}toString(){return`Number${this.inverse?`Not`:``}CloseTo`}getExpectedType(){return`number`}toAsymmetricMatcher(){return[this.toString(),this.sample,`(${rp(`digit`,this.precision)})`].join(` `)}},_p=class extends lp{constructor(t,n=!1){if(!op(t))throw TypeError(`SchemaMatching expected to receive a Standard Schema.`);super(t,n),e(this,`result`,void 0)}asymmetricMatch(e){let t=this.sample[`~standard`].validate(e);if(t instanceof Promise)throw TypeError(`Async schema validation is not supported in asymmetric matchers.`);this.result=t;let n=!this.result.issues||this.result.issues.length===0;return this.inverse?!n:n}toString(){return`Schema${this.inverse?`Not`:``}Matching`}getExpectedType(){return`object`}toAsymmetricMatcher(){let{utils:e}=this.getMatcherContext();return(this.result?.issues||[]).length>0?`${this.toString()} ${e.stringify(this.result,void 0,{printBasicPrototype:!1})}`:this.toString()}},vp=(e,t)=>{t.addMethod(e.expect,`anything`,()=>new dp),t.addMethod(e.expect,`any`,e=>new mp(e)),t.addMethod(e.expect,`stringContaining`,e=>new up(e)),t.addMethod(e.expect,`objectContaining`,e=>new fp(e)),t.addMethod(e.expect,`arrayContaining`,e=>new pp(e)),t.addMethod(e.expect,`stringMatching`,e=>new hp(e)),t.addMethod(e.expect,`closeTo`,(e,t)=>new gp(e,t)),t.addMethod(e.expect,`schemaMatching`,e=>new _p(e)),e.expect.not={stringContaining:e=>new up(e,!0),objectContaining:e=>new fp(e,!0),arrayContaining:e=>new pp(e,!0),stringMatching:e=>new hp(e,!0),closeTo:(e,t)=>new gp(e,t,!0),schemaMatching:e=>new _p(e,!0)}};
76function yp(e,t,n){let r=e.flag(t,`soft`)?`.soft`:``,i=e.flag(t,`negate`)?`not.`:``,a=`${e.flag(t,`_name`)}(${n?`expected`:``})`,o=e.flag(t,`promise`);return`expect${r}(actual)${o?`.${o}`:``}.${i}${a}`}function bp(e,t,n,r,i){let a=e;if(a&&t instanceof Promise){t=t.finally(()=>{if(!a.promises)return;let e=a.promises.indexOf(t);e!==-1&&a.promises.splice(e,1)}),a.promises||=[],i&&(t=t.then(dr,e=>{xp(a,e)})),a.promises.push(t);let e=!1;return a.onFinished??=[],a.onFinished.push(()=>{if(!e){let e=(globalThis.__vitest_worker__?.onFilterStackTrace||(e=>e||``))(r.stack);console.warn([`Promise returned by \`${n}\` was not awaited. `,`Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in the next Vitest major. `,`Please remember to await the assertion.
77`,e].join(``))}}),{then(n,r){return e=!0,t.then(n,r)},catch(n){return e=!0,t.catch(n)},finally(n){return e=!0,t.finally(n)},[Symbol.toStringTag]:`Promise`}}return t}function xp(e,t){e.result||={state:`fail`},e.result.state=`fail`,e.result.errors||=[],e.result.errors.push(ea(t))}function Sp(e,t,n){return function(...r){if(t!==`withTest`&&e.flag(this,`_name`,t),!e.flag(this,`soft`))try{return n.apply(this,r)}finally{}let i=e.flag(this,`vitest-test`);if(!i)throw Error(`expect.soft() can only be used inside a test`);try{let e=n.apply(this,r);return e&&typeof e==`object`&&typeof e.then==`function`?e.then(dr,e=>{xp(i,e)}):e}catch(e){xp(i,e)}}}var Cp=(e,t)=>{let{AssertionError:n}=e,r=Tf();function i(n,r){let i=n=>{let i=Sp(t,n,r);t.addMethod(e.Assertion.prototype,n,i),t.addMethod(globalThis[cf].matchers,n,i)};Array.isArray(n)?n.forEach(e=>i(e)):i(n)}[`throw`,`throws`,`Throw`].forEach(r=>{t.overwriteMethod(e.Assertion.prototype,r,e=>function(...r){let i=t.flag(this,`promise`),a=t.flag(this,`object`),o=t.flag(this,`negate`);if(i===`rejects`)t.flag(this,`object`,()=>{throw a});else if(i===`resolves`&&typeof a!=`function`){if(o)return;{let e=t.flag(this,`message`)||`expected promise to throw an error, but it didn't`;throw new n(e,{showDiff:!1},t.flag(this,`ssfi`))}}e.apply(this,r)})}),i(`withTest`,function(e){return t.flag(this,`vitest-test`,e),this}),i(`toEqual`,function(e){let n=t.flag(this,`object`),i=Y(n,e,[...r,X]);return this.assert(i,`expected #{this} to deeply equal #{exp}`,`expected #{this} to not deeply equal #{exp}`,e,n)}),i(`toStrictEqual`,function(e){let n=t.flag(this,`object`),i=Y(n,e,[...r,X,$f,tp,ep],!0);return this.assert(i,`expected #{this} to strictly equal #{exp}`,`expected #{this} to not strictly equal #{exp}`,e,n)}),i(`toBe`,function(e){let t=this._obj,n=Object.is(t,e),i=``;return n||(Y(t,e,[...r,X,$f,tp,ep],!0)?i=`toStrictEqual`:Y(t,e,[...r,X])&&(i=`toEqual`)),this.assert(n,np(i),`expected #{this} not to be #{exp} // Object.is equality`,e,t)}),i(`toMatchObject`,function(e){let i=this._obj,a=Y(i,e,[...r,X,Qf]),o=t.flag(this,`negate`),{subset:s,stripped:c}=ap(i,e,r);if(a&&o||!a&&!o){let r=t.getMessage(this,[a,`expected #{this} to match object #{exp}`,`expected #{this} to not match object #{exp}`,e,s,!1]),i=c===0?r:`${r}\n(${c} matching ${c===1?`property`:`properties`} omitted from actual)`;throw new n(i,{showDiff:!0,expected:e,actual:s})}}),i(`toMatch`,function(e){let t=this._obj;if(typeof t!=`string`)throw TypeError(`.toMatch() expects to receive a string, but got ${typeof t}`);return this.assert(typeof e==`string`?t.includes(e):t.match(e),`expected #{this} to match #{exp}`,`expected #{this} not to match #{exp}`,e,t)}),i(`toContain`,function(e){let n=this._obj;if(typeof Node<`u`&&n instanceof Node){if(!(e instanceof Node))throw TypeError(`toContain() expected a DOM node as the argument, but got ${typeof e}`);return this.assert(n.contains(e),`expected #{this} to contain element #{exp}`,`expected #{this} not to contain element #{exp}`,e,n)}if(typeof DOMTokenList<`u`&&n instanceof DOMTokenList){A(e,`class name`,[`string`]);let r=t.flag(this,`negate`)?n.value.replace(e,``).trim():`${n.value} ${e}`;return this.assert(n.contains(e),`expected "${n.value}" to contain "${e}"`,`expected "${n.value}" not to contain "${e}"`,r,n.value)}return typeof n==`string`&&typeof e==`string`?this.assert(n.includes(e),`expected #{this} to contain #{exp}`,`expected #{this} not to contain #{exp}`,e,n):(n!=null&&typeof n!=`string`&&t.flag(this,`object`,Array.from(n)),this.contain(e))}),i(`toContainEqual`,function(e){let n=t.flag(this,`object`),i=Array.from(n).findIndex(t=>Y(t,e,r));this.assert(i!==-1,`expected #{this} to deep equally contain #{exp}`,`expected #{this} to not deep equally contain #{exp}`,e)}),i(`toBeTruthy`,function(){let e=t.flag(this,`object`);this.assert(!!e,`expected #{this} to be truthy`,`expected #{this} to not be truthy`,!0,e)}),i(`toBeFalsy`,function(){let e=t.flag(this,`object`);this.assert(!e,`expected #{this} to be falsy`,`expected #{this} to not be falsy`,!1,e)}),i(`toBeGreaterThan`,function(e){let t=this._obj;return A(t,`actual`,[`number`,`bigint`]),A(e,`expected`,[`number`,`bigint`]),this.assert(t>e,`expected ${t} to be greater than ${e}`,`expected ${t} to be not greater than ${e}`,e,t,!1)}),i(`toBeGreaterThanOrEqual`,function(e){let t=this._obj;return A(t,`actual`,[`number`,`bigint`]),A(e,`expected`,[`number`,`bigint`]),this.assert(t>=e,`expected ${t} to be greater than or equal to ${e}`,`expected ${t} to be not greater than or equal to ${e}`,e,t,!1)}),i(`toBeLessThan`,function(e){let t=this._obj;return A(t,`actual`,[`number`,`bigint`]),A(e,`expected`,[`number`,`bigint`]),this.assert(t<e,`expected ${t} to be less than ${e}`,`expected ${t} to be not less than ${e}`,e,t,!1)}),i(`toBeLessThanOrEqual`,function(e){let t=this._obj;return A(t,`actual`,[`number`,`bigint`]),A(e,`expected`,[`number`,`bigint`]),this.assert(t<=e,`expected ${t} to be less than or equal to ${e}`,`expected ${t} to be not less than or equal to ${e}`,e,t,!1)}),i(`toBeNaN`,function(){let e=t.flag(this,`object`);this.assert(Number.isNaN(e),`expected #{this} to be NaN`,`expected #{this} not to be NaN`,NaN,e)}),i(`toBeUndefined`,function(){let e=t.flag(this,`object`);this.assert(e===void 0,`expected #{this} to be undefined`,`expected #{this} not to be undefined`,void 0,e)}),i(`toBeNull`,function(){let e=t.flag(this,`object`);this.assert(e===null,`expected #{this} to be null`,`expected #{this} not to be null`,null,e)}),i(`toBeNullable`,function(){let e=t.flag(this,`object`);this.assert(e==null,`expected #{this} to be nullish`,`expected #{this} not to be nullish`,null,e)}),i(`toBeDefined`,function(){let e=t.flag(this,`object`);this.assert(e!==void 0,`expected #{this} to be defined`,`expected #{this} to be undefined`,e)}),i(`toBeTypeOf`,function(e){let t=typeof this._obj,n=e===t;return this.assert(n,`expected #{this} to be type of #{exp}`,`expected #{this} not to be type of #{exp}`,e,t)}),i(`toBeInstanceOf`,function(e){return this.instanceOf(e)}),i(`toHaveLength`,function(e){return this.have.length(e)}),i(`toHaveProperty`,function(...e){Array.isArray(e[0])&&(e[0]=e[0].map(e=>String(e).replace(/([.[\]])/g,`\\$1`)).join(`.`));let n=this._obj,[i,a]=e,{value:o,exists:s}=Object.hasOwn(n,i)?{value:n[i],exists:!0}:t.getPathInfo(n,i),c=s&&(e.length===1||Y(a,o,r)),l=e.length===1?``:` with value ${t.objDisplay(a)}`;return this.assert(c,`expected #{this} to have property "${i}"${l}`,`expected #{this} to not have property "${i}"${l}`,a,s?o:void 0)}),i(`toBeCloseTo`,function(e,t=2){let n=this._obj,r=!1,i=0,a=0;return e===1/0&&n===1/0||e===-1/0&&n===-1/0?r=!0:(i=10**-t/2,a=Math.abs(n-e),r=a<i),this.assert(r,`expected #{this} to be close to #{exp}, received difference is ${a}, but expected ${i}`,`expected #{this} to not be close to #{exp}, received difference is ${a}, but expected ${i}`,e,n,!1)});function a(e){if(!kc(e._obj))throw TypeError(`${t.inspect(e._obj)} is not a spy or a call to a spy!`)}function o(e){return a(e),e._obj}i([`toHaveBeenCalledTimes`,`toBeCalledTimes`],function(e){let t=o(this),n=t.getMockName(),r=t.mock.calls.length;return this.assert(r===e,`expected "${n}" to be called #{exp} times, but got ${r} times`,`expected "${n}" to not be called #{exp} times`,e,r,!1)}),i(`toHaveBeenCalledOnce`,function(){let e=o(this),t=e.getMockName(),n=e.mock.calls.length;return this.assert(n===1,`expected "${t}" to be called once, but got ${n} times`,`expected "${t}" to not be called once`,1,n,!1)}),i([`toHaveBeenCalled`,`toBeCalled`],function(){let e=o(this),r=e.getMockName(),i=e.mock.calls.length,a=i>
770,s=t.flag(this,`negate`),c=t.getMessage(this,[a,`expected "${r}" to be called at least once`,`expected "${r}" to not be called at all, but actually been called ${i} times`,!0,a]);if(a&&s&&(c=wp(e,c)),a&&s||!a&&!s)throw new n(c)});function s(e,t){return e.length===t.length&&e.every((e,n)=>Y(e,t[n],[...r,X]))}i([`toHaveBeenCalledWith`,`toBeCalledWith`],function(...e){let r=o(this),i=r.getMockName(),a=r.mock.calls.some(t=>s(t,e)),c=t.flag(this,`negate`),l=t.getMessage(this,[a,`expected "${i}" to be called with arguments: #{exp}`,`expected "${i}" to not be called with arguments: #{exp}`,e]);if(a&&c||!a&&!c)throw new n(wp(r,l,e))}),i(`toHaveBeenCalledExactlyOnceWith`,function(...e){let r=o(this),i=r.getMockName(),a=r.mock.calls.length,c=r.mock.calls.some(t=>s(t,e))&&a===1,l=t.flag(this,`negate`),u=t.getMessage(this,[c,`expected "${i}" to be called once with arguments: #{exp}`,`expected "${i}" to not be called once with arguments: #{exp}`,e]);if(c&&l||!c&&!l)throw new n(wp(r,u,e))}),i(`toHaveBeenNthCalledWith`,function(e,...t){let n=o(this),r=n.getMockName(),i=n.mock.calls[e-1],a=n.mock.calls.length,c=e<=a;this.assert(i&&s(i,t),`expected ${gr(e)} "${r}" call to have been called with #{exp}${c?``:`, but called only ${a} times`}`,`expected ${gr(e)} "${r}" call to not have been called with #{exp}`,t,i,c)}),i(`toHaveBeenLastCalledWith`,function(...e){let t=o(this),n=t.getMockName(),r=t.mock.calls.at(-1);this.assert(r&&s(r,e),`expected last "${n}" call to have been called with #{exp}`,`expected last "${n}" call to not have been called with #{exp}`,e,r)});function c(e,t,n){let r=e.mock.invocationCallOrder,i=t.mock.invocationCallOrder;return r.length===0?!n:i.length!==0&&r[0]<i[0]}i([`toHaveBeenCalledBefore`],function(e,n=!0){let r=o(this);if(!kc(e))throw TypeError(`${t.inspect(e)} is not a spy or a call to a spy`);this.assert(c(r,e,n),`expected "${r.getMockName()}" to have been called before "${e.getMockName()}"`,`expected "${r.getMockName()}" to not have been called before "${e.getMockName()}"`,e,r)}),i([`toHaveBeenCalledAfter`],function(e,n=!0){let r=o(this);if(!kc(e))throw TypeError(`${t.inspect(e)} is not a spy or a call to a spy`);this.assert(c(e,r,n),`expected "${r.getMockName()}" to have been called after "${e.getMockName()}"`,`expected "${r.getMockName()}" to not have been called after "${e.getMockName()}"`,e,r)}),i([`toThrow`,`toThrowError`],function(e){if(typeof e==`string`||e===void 0||e instanceof RegExp)return this.throws(e===``?/^$/:e);let i=this._obj,a=t.flag(this,`promise`),o=t.flag(this,`negate`),s=null;if(a===`rejects`)s=i;else if(a===`resolves`&&typeof i!=`function`){if(o)return;{let e=t.flag(this,`message`)||`expected promise to throw an error, but it didn't`;throw new n(e,{showDiff:!1},t.flag(this,`ssfi`))}}else{let e=!1;try{i()}catch(t){e=!0,s=t}if(!e&&!o){let e=t.flag(this,`message`)||`expected function to throw an error, but it didn't`;throw new n(e,{showDiff:!1},t.flag(this,`ssfi`))}}if(typeof e==`function`){let t=e.name||e.prototype.constructor.name;return this.assert(s&&s instanceof e,`expected error to be instance of ${t}`,`expected error not to be instance of ${t}`,e,s)}if(Of(e)){let t=Y(s,e,[...r,X]);return this.assert(t,`expected a thrown error to be #{exp}`,`expected a thrown error not to be #{exp}`,e,s)}if(typeof e==`object`&&`asymmetricMatch`in e&&typeof e.asymmetricMatch==`function`){let t=e;return this.assert(s&&t.asymmetricMatch(s),`expected error to match asymmetric matcher`,`expected error not to match asymmetric matcher`,t,s)}let c=Y(s,e,[...r,X]);return this.assert(c,`expected a thrown value to equal #{exp}`,`expected a thrown value not to equal #{exp}`,e,s)}),[{name:`toHaveResolved`,condition:e=>e.mock.settledResults.length>0&&e.mock.settledResults.some(({type:e})=>e===`fulfilled`),action:`resolved`},{name:[`toHaveReturned`,`toReturn`],condition:e=>e.mock.calls.length>0&&e.mock.results.some(({type:e})=>e!==`throw`),action:`called`}].forEach(({name:e,condition:t,action:n})=>{i(e,function(){let e=o(this),r=e.getMockName(),i=t(e);this.assert(i,`expected "${r}" to be successfully ${n} at least once`,`expected "${r}" to not be successfully ${n}`,i,!i,!1)})}),[{name:`toHaveResolvedTimes`,condition:(e,t)=>e.mock.settledResults.reduce((e,{type:t})=>t===`fulfilled`?++e:e,0)===t,action:`resolved`},{name:[`toHaveReturnedTimes`,`toReturnTimes`],condition:(e,t)=>e.mock.results.reduce((e,{type:t})=>t===`throw`?e:++e,0)===t,action:`called`}
77].forEach(({name:e,condition:t,action:n})=>{i(e,function(e){let r=o(this),i=r.getMockName(),a=t(r,e);this.assert(a,`expected "${i}" to be successfully ${n} ${e} times`,`expected "${i}" to not be successfully ${n} ${e} times`,`expected resolved times: ${e}`,`received resolved times: ${a}`,!1)})}),[{name:`toHaveResolvedWith`,condition:(e,t)=>e.mock.settledResults.some(({type:e,value:n})=>e===`fulfilled`&&Y(t,n)),action:`resolve`},{name:[`toHaveReturnedWith`,`toReturnWith`],condition:(e,t)=>e.mock.results.some(({type:e,value:n})=>e===`return`&&Y(t,n)),action:`return`}].forEach(({name:e,condition:r,action:a})=>{i(e,function(e){let i=o(this),s=r(i,e),c=t.flag(this,`negate`);if(s&&c||!s&&!c){let r=i.getMockName(),o=t.getMessage(this,[s,`expected "${r}" to ${a} with: #{exp} at least once`,`expected "${r}" to not ${a} with: #{exp}`,e]),c=a===`return`?i.mock.results:i.mock.settledResults;throw new n(Tp(i,c,o,e))}})}),[{name:`toHaveLastResolvedWith`,condition:(e,t)=>{let n=e.mock.settledResults.at(-1);return!!(n&&n.type===`fulfilled`&&Y(n.value,t))},action:`resolve`},{name:`toHaveLastReturnedWith`,condition:(e,t)=>{let n=e.mock.results.at(-1);return!!(n&&n.type===`return`&&Y(n.value,t))},action:`return`}].forEach(({name:e,condition:t,action:n})=>{i(e,function(e){let r=o(this),i=(n===`return`?r.mock.results:r.mock.settledResults).at(-1),a=r.getMockName();this.assert(t(r,e),`expected last "${a}" call to ${n} #{exp}`,`expected last "${a}" call to not ${n} #{exp}`,e,i?.value)})}),[{name:`toHaveNthResolvedWith`,condition:(e,t,n)=>{let r=e.mock.settledResults[t-1];return r&&r.type===`fulfilled`&&Y(r.value,n)},action:`resolve`},{name:`toHaveNthReturnedWith`,condition:(e,t,n)=>{let r=e.mock.results[t-1];return r&&r.type===`return`&&Y(r.value,n)},action:`return`}].forEach(({name:e,condition:t,action:n})=>{i(e,function(e,r){let i=o(this),a=i.getMockName(),s=(n===`return`?i.mock.results:i.mock.settledResults)[e-1],c=`${gr(e)} call`;this.assert(t(i,e,r),`expected ${c} "${a}" call to ${n} #{exp}`,`expected ${c} "${a}" call to not ${n} #{exp}`,r,s?.value)})}),i(`withContext`,function(e){for(let n in e)t.flag(this,n,e[n]);return this}),t.addProperty(e.Assertion.prototype,`resolves`,function(){let r=Error(`resolves`);t.flag(this,`promise`,`resolves`),t.flag(this,`error`,r);let i=t.flag(this,`vitest-test`),a=t.flag(this,`object`);if(t.flag(this,`poll`))throw SyntaxError(`expect.poll() is not supported in combination with .resolves`);if(typeof a?.then!=`function`)throw TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof a}'.`);let o=new Proxy(this,{get:(s,c,l)=>{let u=Reflect.get(s,c,l);return typeof u==`function`?(...e)=>{t.flag(this,`_name`,c);let o=Promise.resolve(a).then(n=>(t.flag(this,`object`,n),u.call(this,...e)),e=>{let r=new n(`promise rejected "${t.inspect(e)}" instead of resolving`,{showDiff:!1});throw r.cause=e,r}).catch(e=>{throw Of(e)&&r.stack&&(e.stack=r.stack.replace(r.message,e.message)),e});return bp(i,o,yp(t,this,!!e.length),r,t.flag(this,`soft`))}:u instanceof e.Assertion?o:u}});return o}),t.addProperty(e.Assertion.prototype,`rejects`,function(){let r=Error(`rejects`);t.flag(this,`promise`,`rejects`),t.flag(this,`error`,r);let i=t.flag(this,`vitest-test`),a=t.flag(this,`object`),o=typeof a==`function`?a():a;if(t.flag(this,`poll`))throw SyntaxError(`expect.poll() is not supported in combination with .rejects`);if(typeof o?.then!=`function`)throw TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof o}'.`);let s=new Proxy(this,{get:(a,c,l)=>{let u=Reflect.get(a,c,l);return typeof u==`function`?(...e)=>{t.flag(this,`_name`,c);
77let a=Promise.resolve(o).then(e=>{throw new n(`promise resolved "${t.inspect(e)}" instead of rejecting`,{showDiff:!0,expected:Error(`rejected promise`),actual:e})},n=>(t.flag(this,`object`,n),u.call(this,...e))).catch(e=>{throw Of(e)&&r.stack&&(e.stack=r.stack.replace(r.message,e.message)),e});return bp(i,a,yp(t,this,!!e.length),r,t.flag(this,`soft`))}:u instanceof e.Assertion?s:u}});return s})};function wp(e,t,n){return e.mock.calls.length&&(t+=o.gray(`\n\nReceived:\n\n${e.mock.calls.map((t,r)=>{let i=o.bold(`  ${gr(r+1)} ${e.getMockName()} call:\n\n`);return i+=n?Ei(n,t,{omitAnnotationLines:!0}):k(t).split(`
78`).map(e=>`    ${e}`).join(`
79`),i+=`
80`,i}).join(`
81`)}`)),t+=o.gray(`\n\nNumber of calls: ${o.bold(e.mock.calls.length)}\n`),t}function Tp(e,t,n,r){return t.length&&(n+=o.gray(`\n\nReceived:\n\n${t.map((t,n)=>{let i=o.bold(`  ${gr(n+1)} ${e.getMockName()} call return:\n\n`);return i+=r?Ei(r,t.value,{omitAnnotationLines:!0}):k(t).split(`
82`).map(e=>`    ${e}`).join(`
83`),i+=`
84`,i}).join(`
85`)}`)),n+=o.gray(`\n\nNumber of calls: ${o.bold(e.mock.calls.length)}\n`),n}function Ep(e,t){let n=e._obj,r=L.flag(e,`negate`),i=L.flag(e,`promise`)||``,a=L.flag(e,`message`),o={...Sf(),diff:Ei,stringify:k,iterableEquality:X,subsetEquality:Qf},s=L.flag(e,`vitest-test`),c=s?.fullTestName??``;s?.type!==`test`&&(s=void 0);let l={...sp(t),currentTestName:c,customTesters:Tf(),isNot:r,utils:o,promise:i,equals:Y,suppressedErrors:[],soft:L.flag(e,`soft`),poll:L.flag(e,`poll`),assertion:e};return Object.assign(l,{task:s}),{state:l,isNot:r,obj:n,customMessage:a}}var Dp=class extends Error{constructor(e,t,n,r){super(e),this.actual=t,this.expected=n,this.__vitest_error_context__=r}};function Op(e,t,n){return(r,i)=>{Object.entries(n).forEach(([n,r])=>{function a(...e){let{state:i,isNot:a,obj:o,customMessage:s}=Ep(this,t),c=r.call(i,o,...e);if(c&&typeof c==`object`&&typeof c.then==`function`)return c.then(({pass:e,message:t,actual:r,expected:i,meta:o})=>{if(e&&a||!e&&!a)throw new Dp((s?`${s}: `:``)+t(),r,i,{assertionName:n,meta:o})});let{pass:l,message:u,actual:d,expected:f,meta:p}=c;if(l&&a||!l&&!a)throw new Dp((s?`${s}: `:``)+u(),d,f,{assertionName:n,meta:p})}let o=Sp(i,n,a);if(i.addMethod(globalThis[cf].matchers,n,o),i.addMethod(e.Assertion.prototype,n,o),r.__vitest_poll_takeover__){let t=e.Assertion.prototype[n];Object.defineProperty(t,"__vitest_poll_takeover__",{value:!0})}class s extends lp{constructor(e=!1,...t){super(t,e)}asymmetricMatch(e){let{pass:n}=r.call(this.getMatcherContext(t),e,...this.sample);return this.inverse?!n:n}toString(){return`${this.inverse?`not.`:``}${n}`}getExpectedType(){return`any`}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map(e=>k(e)).join(`, `)}>`}}let c=(...e)=>new s(!1,...e);Object.defineProperty(t,n,{configurable:!0,enumerable:!0,value:c,writable:!0}),Object.defineProperty(t.not,n,{configurable:!0,enumerable:!0,value:(...e)=>new s(!0,...e),writable:!0}),Object.defineProperty(globalThis[uf],n,{configurable:!0,enumerable:!0,value:c,writable:!0})})}}var kp=(e,t)=>{t.addMethod(e.expect,`extend`,(t,n)=>{af(Op(e,t,n))})},Ap=/\r?\n/;
85function jp(e,t,n){let r=e.split(Ap),i=/\r\n/.test(e)?2:1,a=0;if(t>r.length)return e.length;for(let e=0;e<t-1;e++)a+=r[e].length+i;return a+n}function Mp(e,t){if(t>e.length)throw Error(`offset is longer than source length! offset ${t} > length ${e.length}`);let n=e.split(Ap),r=/\r\n/.test(e)?2:1,i=0,a=0;for(;a<n.length;a++){let e=n[a].length+r;if(i+e>=t)break;i+=e}return a+1}var Np=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},Z=Date,Pp=null,Fp=class e extends Z{constructor(t,n,r,i,a,o,s){super();let c;switch(arguments.length){case 0:c=Pp===null?new Z:new Z(Pp.valueOf());break;case 1:c=new Z(t);break;default:r=r===void 0?1:r,i||=0,a||=0,o||=0,s||=0,c=new Z(t,n,r,i,a,o,s)}return Object.setPrototypeOf(c,e.prototype),c}};Fp.UTC=Z.UTC,Fp.now=function(){return new Fp().valueOf()},Fp.parse=function(e){return Z.parse(e)},Fp.toString=function(){return Z.toString()};function Ip(e){let t=new Z(e.valueOf());if(Number.isNaN(t.getTime()))throw TypeError(`mockdate: The time set is an invalid date: ${e}`);globalThis.Date=Fp,Pp=t.valueOf()}function Lp(){globalThis.Date=Z}var{get:Rp}=Reflect;function zp(){let{rpc:e}=vc();return e}function Bp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var Vp={exports:{}},Hp;function Up(){if(Hp)return Vp.exports;Hp=1;var e=function(e,t){var n,r,i=1,a=0,o=0,s=String.alphabet;function c(e,t,r){if(r){for(n=t;r=c(e,n),r<76&&r>65;)++n;return+e.slice(t-1,n)}return r=s&&s.indexOf(e.charAt(t)),r>-1?r+76:(r=e.charCodeAt(t)||0,r<45||r>127?r:r<46?65:r<48?r-1:r<58?r+18:r<65?r-11:r<91?r+11:r<97?r-37:r<123?r+5:r-63)}if((e+=``)!=(t+=``)){for(;i;)if(r=c(e,a++),i=c(t,o++),r<76&&i<76&&r>66&&i>66&&(r=c(e,a,a),i=c(t,o,a=n),o=n),r!=i)return r<i?-1:1}return 0};try{Vp.exports=e}catch{String.naturalCompare=e}return Vp.exports}var Wp=Bp(Up()),Gp={serialize:(e,t,n,r,i,a)=>{let o=e.getMockName(),s=o===`vi.fn()`?``:` ${o}`,c=``;if(e.mock.calls.length!==0){let o=n+t.indent;c=` {${t.spacingOuter}${o}"calls": ${a(e.mock.calls,t,o,r,i)}${t.min?`, `:`,`}${t.spacingOuter}${o}"results": ${a(e.mock.results,t,o,r,i)}${t.min?``:`,`}${t.spacingOuter}${n}}`}return`[MockFunction${s}]${c}`},test:e=>e&&!!e._isMockFunction},{DOMCollection:Kp,DOMElement:qp,Immutable:Jp,ReactElement:Yp,ReactTestComponent:Xp,AsymmetricMatcher:Zp}=Ht,Qp=[Xp,Yp,qp,Kp,Jp,Zp,Gp];function $p(e){Qp=[e].concat(Qp)}function em(){return Qp}function tm(e,t){return`${e} ${t}`}function nm(e){if(!/ \d+$/.test(e))throw Error(`Snapshot keys must end with a number.`);return e.replace(/ \d+$/,``)}function rm(e,t){let n=t.updateSnapshot,r=Object.create(null),i=``,a=!1;if(e!=null)try{i=e,Function(`exports`,i)(r)}catch{}return(n===`all`||n===`new`)&&i&&(a=!0),{data:r,dirty:a}}function im(e){return e.includes(`
86`)?`\n${e}\n`:e}function am(e){return e.length>2&&e[0]===`
87`&&e.endsWith(`
88`)?e.slice(1,-1):e}var om=!0,sm=!1;function cm(e,t=2,n={}){return dm(O(e,{escapeRegex:om,indent:t,plugins:em(),printFunctionName:sm,...n}))}function lm(e){return e.replace(/`|\\|\$\{/g,`\\$&`)}function um(e){return`\`${lm(e)}\``}function dm(e){return e.replace(/\r\n|\r/g,`
89`)}async function fm(e,t,n){let r=Object.keys(t).sort(Wp).map(e=>`exports[${um(e)}] = ${um(dm(t[e]))};`),i=`${e.getHeader()}\n\n${r.join(`
90
91`)}\n`,a=await e.readSnapshotFile(n);(a==null||a!==i)&&await e.saveSnapshotFile(n,i)}function pm(e=[],t=[]){let n=Array.from(e);return t.forEach((t,r)=>{let i=n[r];Array.isArray(e[r])?n[r]=pm(e[r],t):rr(i)?n[r]=mm(e[r],t):n[r]=t}),n}function mm(e,t){if(rr(e)&&rr(t)){let n={...e};return Object.keys(t).forEach(r=>{rr(t[r])&&!t[r].$$typeof?r in e?n[r]=mm(e[r],t[r]):Object.assign(n,{[r]:t[r]}):Array.isArray(t[r])?n[r]=pm(e[r],t[r]):Object.assign(n,{[r]:t[r]})}),n}return Array.isArray(e)&&Array.isArray(t)?pm(e,t):e}var hm=class extends Map{constructor(e,t){super(t),this.defaultFn=e}get(e){return this.has(e)||this.set(e,this.defaultFn(e)),super.get(e)}},gm=class extends hm{constructor(){super(()=>0),e(this,`_total`,void 0)}valueOf(){return this._total=this.total()}increment(e){this._total!==void 0&&this._total++,this.set(e,this.get(e)+1)}total(){if(this._total!==void 0)return this._total;let e=0;for(let t of this.values())e+=t;return e}};function _m(e){let t=new Map;return n=>(t.has(n)||t.set(n,e(n)),t.get(n))}async function vm(e,n){let r=(await t(async()=>{let{default:e}=await import(`./magic-string.es.js`);return{default:e}},[])).default,i=new Set(n.map(e=>e.file));await Promise.all(Array.from(i).map(async t=>{let i=n.filter(e=>e.file===t),a=await e.readSnapshotFile(t);if(a==null)throw Error(`cannot read ${t} when saving inline snapshot`);let o=new r(a);for(let e of i)km(a,o,jp(a,e.line,e.column),e.snapshot,e.assertionName);let s=o.toString();s!==a&&await e.saveSnapshotFile(t,s)}))}var ym=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*\{/;function bm(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}var xm=_m(e=>{let t=ym.source.replace(`toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot`,bm(e));return new RegExp(t)});function Sm(e,t,n,r,i){let a=e.slice(n),o=(i?xm(i):ym).exec(a);if(!o)return!1;a=a.slice(o.index);let s=mr(a);if(s===null)return!1;s+=n+o.index;let c=Cm(e,n+o.index+o[0].length),l=`, ${wm(r,e,n)}`;return c===s?t.appendLeft(s,l):t.overwrite(c,s,l),!0}function Cm(e,t){let n=1,r=0;for(;n!==r&&t<e.length;){let i=e[t++];i===`{`?n++:i===`}`&&r++}return t}function wm(e,t,n){let r=Mp(t,n),i=t.split(Ap)[r-1].match(/^\s*/)[0]||``,a=i.includes(`	`)?`${i}\t`:`${i}  `,o=e.trim().replace(/\\/g,`\\\\`).split(/\n/g);return o.length<=1?`\`${o.join(`
92`).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}\``:`\`\n${o.map(e=>e?a+e:``).join(`
93`).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}\n${i}\``}var Tm=[`toMatchInlineSnapshot`,`toThrowErrorMatchingInlineSnapshot`];function Em(e,t,n){for(let r of n){let n=t-r.length;if(n>=0&&e.slice(n,t)===r)return{code:e.slice(n),index:n}}return{code:e.slice(t),index:t}}var Dm=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*[\w$]*(['"`)])/,Om=_m(e=>{let t=Dm.source.replace(`toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot`,bm(e));return new RegExp(t)});function km(e,t,n,r,i){let{code:a,index:o}=Em(e,n,i?[i]:Tm),s=(i?Om(i):Dm).exec(a),c=(i?new RegExp(bm(i)):/toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot/).exec(a);if(!s||s.index!==c?.index)return Sm(e,t,o,r,i);let l=s[1],u=o+s.index+s[0].length,d=wm(r,e,o);if(l===`)`)return t.appendRight(u-1,d),!0;let f=RegExp(`(?:^|[^\\\\])${l}`).exec(e.slice(u));if(!f)return!1;let p=u+f.index+f[0].length;return t.overwrite(u-1,p,d),!0}var Am=/^([^\S\n]*)\S/m;function jm(e){let t=e.match(Am);if(!t||!t[1])return e;let n=t[1],r=e.split(/\n/g);if(r.length<=2||r[0].trim()!==``||r.at(-1)?.trim()!==``)return e;for(let t=1;t<r.length-1;t++)if(r[t]!==``){if(r[t].indexOf(n)!==0)return e;r[t]=r[t].substring(n.length)}return r[r.length-1]=``,e=r.join(`
94`),e}async function Mm(e,t){await Promise.all(t.map(async t=>{t.readonly||await e.saveSnapshotFile(t.file,t.snapshot)}))}function Nm(e,t){return e.file===t.file&&e.column===t.column&&e.line===t.line}var Pm=class t{get added(){return this._added}set added(e){this._added._total=e}get matched(){return this._matched}set matched(e){this._matched._total=e}get unmatched(){return this._unmatched}set unmatched(e){this._unmatched._total=e}get updated(){return this._updated}set updated(e){this._updated._total=e}
94constructor(t,n,r,i){e(this,`_counters`,new gm),e(this,`_dirty`,void 0),e(this,`_updateSnapshot`,void 0),e(this,`_snapshotData`,void 0),e(this,`_initialData`,void 0),e(this,`_inlineSnapshots`,void 0),e(this,`_inlineSnapshotStacks`,void 0),e(this,`_testIdToKeys`,new hm(()=>[])),e(this,`_rawSnapshots`,void 0),e(this,`_uncheckedKeys`,void 0),e(this,`_snapshotFormat`,void 0),e(this,`_environment`,void 0),e(this,`_fileExists`,void 0),e(this,`expand`,void 0),e(this,`_added`,new gm),e(this,`_matched`,new gm),e(this,`_unmatched`,new gm),e(this,`_updated`,new gm),this.testFilePath=t,this.snapshotPath=n;let{data:a,dirty:o}=rm(r,i);this._fileExists=r!=null,this._initialData={...a},this._snapshotData={...a},this._dirty=o,this._inlineSnapshots=[],this._inlineSnapshotStacks=[],this._rawSnapshots=[],this._uncheckedKeys=new Set(Object.keys(this._snapshotData)),this.expand=i.expand||!1,this._updateSnapshot=i.updateSnapshot,this._snapshotFormat={printBasicPrototype:!1,escapeString:!1,maxOutputLength:2**27,...i.snapshotFormat},this._environment=i.snapshotEnvironment}static async create(e,n){let r=await n.snapshotEnvironment.resolvePath(e),i=await n.snapshotEnvironment.readSnapshotFile(r);return new t(e,r,i,n)}get snapshotUpdateState(){return this._updateSnapshot}get environment(){return this._environment}markSnapshotsAsCheckedForTest(e){this._uncheckedKeys.forEach(t=>{/ \d+$| > /.test(t.slice(e.length))&&this._uncheckedKeys.delete(t)})}clearTest(e){this._inlineSnapshots=this._inlineSnapshots.filter(t=>t.testId!==e),this._inlineSnapshotStacks=this._inlineSnapshotStacks.filter(t=>t.testId!==e);for(let t of this._testIdToKeys.get(e)){let e=nm(t),n=this._counters.get(e);n>0&&((t in this._snapshotData||t in this._initialData)&&(this._snapshotData[t]=this._initialData[t]),this._counters.set(e,n-1))}this._testIdToKeys.delete(e),this.added.delete(e),this.updated.delete(e),this.matched.delete(e),this.unmatched.delete(e)}_inferInlineSnapshotStack(e){let t=e.findIndex(e=>e.method.match(/__VITEST_(RESOLVES|REJECTS)__/));if(t!==-1)return e[t+3];let n=e.findIndex(e=>e.method.match(/__VITEST_POLL_CHAIN__/));if(n!==-1)return e[n+1];for(let t=0;t<e.length;t++){let n=e[t].method.match(/__INLINE_SNAPSHOT_OFFSET_(\d+)__/);if(n)return e[t+Number(n[1])]??null}let r=e.findIndex(e=>e.method.includes(`__VITEST_EXTEND_ASSERTION__`));if(r!==-1)return e[r+3]??null;let i=e.findIndex(e=>e.method.includes(`__INLINE_SNAPSHOT__`));return i===-1?null:e[i+2]}_addSnapshot(e,t,n){this._dirty=!0,n.stack?this._inlineSnapshots.push({...n.stack,snapshot:t,testId:n.testId,assertionName:n.assertionName}):n.rawSnapshot?this._rawSnapshots.push({...n.rawSnapshot,snapshot:t}):this._snapshotData[e]=t}_resolveKey(e,t,n){this._counters.increment(t);let r=this._counters.get(t);return n||=tm(t,r),this._testIdToKeys.get(e).push(n),{key:n,count:r}}_resolveInlineStack(e){let{testId:t,snapshot:n,assertionName:r,error:i}=e,a=eo(i,{ignoreStackEntries:[]}),o=this._inferInlineSnapshotStack(a);if(!o){let e=a.map(e=>`  ${e.file}:${e.line}:${e.column}${e.method?` (${e.method})`:``}`).join(`
95`);throw Error(`@vitest/snapshot: Couldn't infer stack frame for inline snapshot.\n${e}`)}let s=this.environment.processStackTrace?.(o)||o;s.column--;let c=this._inlineSnapshotStacks.filter(e=>Nm(e,s));if(c.length>0){this._inlineSnapshots=this._inlineSnapshots.filter(e=>!Nm(e,s));let e=c.find(e=>e.snapshot!==n);if(e)throw Object.assign(Error(`${r} with different snapshots cannot be called at the same location`),{actual:n,expected:e.snapshot})}return this._inlineSnapshotStacks.push({...s,testId:t,snapshot:n}),s}_reconcile(e){return e.hasSnapshot&&this._updateSnapshot===`all`||(!e.hasSnapshot||!e.snapshotIsPersisted)&&(this._updateSnapshot===`new`||this._updateSnapshot===`all`)?(this._updateSnapshot===`all`?e.pass?this.matched.increment(e.testId):(e.hasSnapshot?this.updated.increment(e.testId):this.added.increment(e.testId),this._addSnapshot(e.key,e.addValue,{stack:e.stack,testId:e.testId,rawSnapshot:e.rawSnapshot,assertionName:e.assertionName})):(this._addSnapshot(e.key,e.addValue,{stack:e.stack,testId:e.testId,rawSnapshot:e.rawSnapshot,assertionName:e.assertionName}),this.added.increment(e.testId)),{actual:``,count:e.count,expected:``,key:e.key,pass:!0}):e.pass?(this.matched.increment(e.testId),{actual:``,count:e.count,expected:``,key:e.key,pass:!0}):(this.unmatched.increment(e.testId),{actual:e.actualDisplay,count:e.count,expected:e.expectedDisplay,key:e.key,pass:!1})}async save(){let e=Object.keys(this._snapshotData).length,t=this._inlineSnapshots.length,n=this._rawSnapshots.length,r=!e&&!t&&!n,i={deleted:!1,saved:!1};return(this._dirty||this._uncheckedKeys.size)&&!r?(e&&(await fm(this._environment,this._snapshotData,this.snapshotPath),this._fileExists=!0),t&&await vm(this._environment,this._inlineSnapshots),n&&await Mm(this._environment,this._rawSnapshots),i.saved=!0):!e&&this._fileExists&&(this._updateSnapshot===`all`&&(
95await this._environment.removeSnapshotFile(this.snapshotPath),this._fileExists=!1),i.deleted=!0),i}getUncheckedCount(){return this._uncheckedKeys.size||0}getUncheckedKeys(){return Array.from(this._uncheckedKeys)}removeUncheckedKeys(){this._updateSnapshot===`all`&&this._uncheckedKeys.size&&(this._dirty=!0,this._uncheckedKeys.forEach(e=>delete this._snapshotData[e]),this._uncheckedKeys.clear())}probeExpectedSnapshot(e){let t=this._counters.get(e.testName)+1,n=tm(e.testName,t);return{key:n,count:t,data:e?.isInline?e.inlineSnapshot:this._snapshotData[n],markAsChecked:()=>{this._counters.increment(e.testName),this._testIdToKeys.get(e.testId).push(n),this._uncheckedKeys.delete(n)}}}match({testId:e,testName:t,received:n,key:r,inlineSnapshot:i,isInline:a,error:o,rawSnapshot:s,assertionName:c}){let l=this._resolveKey(e,t,r);r=l.key;let u=l.count;a&&this._snapshotData[r]!==void 0||this._uncheckedKeys.delete(r);let d=s&&typeof n==`string`?n:cm(n,void 0,this._snapshotFormat);s||(d=im(d)),s&&s.content&&s.content.match(/\r\n/)&&!d.match(/\r\n/)&&(s.content=dm(s.content));let f=a?i:s?s.content:this._snapshotData[r],p=s?f:f?.trim(),m=p===(s?d:d.trim()),h=f!==void 0,g=a||this._fileExists||s&&s.content!=null;m&&!a&&!s&&(this._snapshotData[r]=d);let _=a?this._resolveInlineStack({testId:e,snapshot:d,assertionName:c||`toMatchInlineSnapshot`,error:o||Error(`snapshot`)}):void 0;return this._reconcile({testId:e,key:r,count:u,pass:m,hasSnapshot:h,snapshotIsPersisted:!!g,addValue:d,actualDisplay:s?d:am(d),expectedDisplay:p===void 0?void 0:s?p:am(p),stack:_,rawSnapshot:s,assertionName:c})}processDomainSnapshot({testId:e,received:t,expectedSnapshot:n,matchResult:r,isInline:i,error:a,assertionName:o}){let s=i?this._resolveInlineStack({testId:e,snapshot:t,assertionName:o,error:a||Error(`STACK_TRACE_ERROR`)}):void 0,c=r?.resolved??t,l=r?.expected??n.data;return this._reconcile({testId:e,key:n.key,count:n.count,pass:r?.pass??!1,hasSnapshot:!!n.data,snapshotIsPersisted:i?!0:this._fileExists,addValue:c,actualDisplay:am(c),expectedDisplay:l===void 0?void 0:am(l),stack:s,assertionName:o})}async pack(){let e={filepath:this.testFilePath,added:0,fileDeleted:!1,matched:0,unchecked:0,uncheckedKeys:[],unmatched:0,updated:0},t=this.getUncheckedCount(),n=this.getUncheckedKeys();t&&this.removeUncheckedKeys();let r=await this.save();return e.fileDeleted=r.deleted,e.added=this.added.total(),e.matched=this.matched.total(),e.unmatched=this.unmatched.total(),e.updated=this.updated.total(),e.unchecked=r.deleted?0:t,e.uncheckedKeys=Array.from(n),e}};function Fm(e,t,n,r){let i=Error(e);return Object.defineProperty(i,"actual",{value:n,enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(i,"expected",{value:r,enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(i,"diffOptions",{value:{expand:t}}),i}var Im=class{constructor(t={}){e(this,`snapshotStateMap`,new Map),this.options=t}async setup(e,t){this.snapshotStateMap.has(e)||this.snapshotStateMap.set(e,await Pm.create(e,t))}
95async finish(e){let t=await this.getSnapshotState(e).pack();return this.snapshotStateMap.delete(e),t}skipTest(e,t){this.getSnapshotState(e).markSnapshotsAsCheckedForTest(t)}clearTest(e,t){this.getSnapshotState(e).clearTest(t)}getSnapshotState(e){let t=this.snapshotStateMap.get(e);if(!t)throw Error(`The snapshot state for '${e}' is not found. Did you call 'SnapshotClient.setup()'?`);return t}match(e){let{filepath:t,name:n,testId:r=n,message:i,isInline:a=!1,properties:o,inlineSnapshot:s,error:c,errorMessage:l,rawSnapshot:u,assertionName:d}=e,{received:f}=e;if(!t)throw Error(`Snapshot cannot be used outside of test`);let p=this.getSnapshotState(t),m=[n,...i?[i]:[]].join(` > `),h=p.probeExpectedSnapshot({testName:m,testId:r,isInline:a,inlineSnapshot:s});if(typeof o==`object`){if(typeof f!=`object`||!f)throw h.markAsChecked(),Error(`Received value must be an object when the matcher has properties`);let e;try{e=this.options.isEqual?.(f,o)??!1}catch(e){throw h.markAsChecked(),e}if(!e)return h.markAsChecked(),{pass:!1,message:()=>l||`Snapshot properties mismatched`,actual:f,expected:o};f=mm(f,o)}let{actual:g,expected:_,key:v,pass:y}=p.match({testId:r,testName:m,received:f,isInline:a,error:c,inlineSnapshot:s,rawSnapshot:u,assertionName:d});return{pass:y,message:()=>`Snapshot \`${v||`unknown`}\` mismatched`,actual:u?g:g?.trim(),expected:u?_:_?.trim()}}assert(e){let t=this.match(e);if(!t.pass){let n=this.getSnapshotState(e.filepath);throw Fm(t.message(),n.expand,t.actual,t.expected)}}matchDomain(e){let{received:t,filepath:n,name:r,testId:i=r,message:a,adapter:o,isInline:s=!1,inlineSnapshot:c,error:l}=e;if(!n)throw Error(`Snapshot cannot be used outside of test`);let u=o.capture(t),d=o.render(u),f=this.getSnapshotState(n),p=[r,...a?[a]:[]].join(` > `),m=f.probeExpectedSnapshot({testName:p,testId:i,isInline:s,inlineSnapshot:c});m.markAsChecked();let h=m.data?o.match(u,o.parseExpected(m.data)):void 0,{actual:g,expected:_,key:v,pass:y}=f.processDomainSnapshot({testId:i,received:d,expectedSnapshot:m,matchResult:h,isInline:s,error:l,assertionName:e.assertionName});return{pass:y,message:()=>`Snapshot \`${v}\` mismatched`,actual:g?.trim(),expected:_?.trim()}}async pollMatchDomain(e){let{poll:t,filepath:n,name:r,testId:i=r,message:a,adapter:o,isInline:s=!1,inlineSnapshot:c,error:l,timeout:u=1e3,interval:d=50}=e;if(!n)throw Error(`Snapshot cannot be used outside of test`);let f=this.getSnapshotState(n),p=[r,...a?[a]:[]].join(` > `),m=f.probeExpectedSnapshot({testName:p,testId:i,isInline:s,inlineSnapshot:c}),h=m.data&&f.snapshotUpdateState!==`all`?o.parseExpected(m.data):void 0,g=await Lm({adapter:o,poll:t,interval:d,timedOut:u>0?new Promise(e=>setTimeout(e,u)):void 0,match:h?e=>o.match(e,h).pass:void 0});if(m.markAsChecked(),!g?.rendered){if(g?.lastPollError)throw g.lastPollError;return{pass:!1,message:()=>`poll() did not produce a stable snapshot within the timeout`}}let _=m.data?o.match(g.captured,o.parseExpected(m.data)):void 0,{actual:v,expected:y,key:b,pass:x}=f.processDomainSnapshot({testId:i,received:g.rendered,expectedSnapshot:m,matchResult:_,isInline:s,error:l,assertionName:e.assertionName});return{pass:x,message:()=>`Snapshot \`${b}\` mismatched`,actual:v?.trim(),expected:y?.trim()}}async assertRaw(e){if(!e.rawSnapshot)throw Error(`Raw snapshot is required`);let{filepath:t,rawSnapshot:n}=e;if(n.content==null){if(!t)throw Error(`Snapshot cannot be used outside of test`);let r=this.getSnapshotState(t);e.filepath||=t,n.file=await r.environment.resolveRawPath(t,n.file),n.content=await r.environment.readSnapshotFile(n.file)??void 0}return this.assert(e)}clear(){this.snapshotStateMap.clear()}};async function Lm({adapter:e,poll:t,interval:n,timedOut:r,match:i}){let a,o,s;for(;;){try{let n=await Rm(Promise.resolve(t()),r);if(!n.ok)break;let o=e.capture(n.value),c=e.render(o);if(a!==void 0&&c===a){if(s={captured:o,rendered:c},!i||i(o))break}else a=c,s=void 0}catch(e){a=void 0,s=void 0,o=e}if(!(await Rm(new Promise(e=>setTimeout(e,n)),r)).ok)break}return{...s,lastPollError:o}}function Rm(e,t){let n=e.then(e=>({ok:!0,value:e}));return t?Promise.race([n,t.then(e=>({ok:!1,value:e}))]):n}var zm={},Bm,Vm;function Hm(){return Vm?Bm:(Vm=1,Bm=Np===void 0?typeof window<`u`?window:self:Np,Bm)}var Um,Wm;function Gm(){if(Wm)return Um;Wm=1;let e;try{({}).__proto__,e=!1}catch{e=!0}return Um=e,Um}var Km,qm;function Jm(){if(qm)return Km;qm=1;var e=Function.call,t=Gm(),n=[`size`,`caller`,`callee`,`arguments`];return t&&n.push(`__proto__`),Km=function(t){return Object.getOwnPropertyNames(t).reduce(function(r,i){return n.includes(i)||typeof t[i]!=`function`||(r[i]=e.b
95ind(t[i])),r},Object.create(null))},Km}var Ym,Xm;function Zm(){return Xm?Ym:(Xm=1,Ym=Jm()(Array.prototype),Ym)}var Qm,$m;function eh(){if($m)return Qm;$m=1;var e=Zm().every;function t(e,t){return e[t.id]===void 0&&(e[t.id]=0),e[t.id]<t.callCount}function n(e,n,r,i){var a=!0;return r!==i.length-1&&(a=n.calledBefore(i[r+1])),t(e,n)&&a?(e[n.id]+=1,!0):!1}function r(t){return e(arguments.length>1?arguments:t,n.bind(null,{}))}return Qm=r,Qm}var th,nh;function rh(){if(nh)return th;nh=1;function e(e){return e.constructor&&e.constructor.name||null}return th=e,th}var ih={},ah;function oh(){return ah?ih:(ah=1,(function(e){e.wrap=function(t,n){var r=function(){return e.printWarning(n),t.apply(this,arguments)};return t.prototype&&(r.prototype=t.prototype),r},e.defaultMsg=function(e,t){return`${e}.${t} is deprecated and will be removed from the public API in a future version of ${e}.`},e.printWarning=function(e){typeof process==`object`&&process.emitWarning?process.emitWarning(e):console.info?console.info(e):console.log(e)}})(ih),ih)}var sh,ch;function lh(){return ch?sh:(ch=1,sh=function(e,t){var n=!0;try{e.forEach(function(){if(!t.apply(this,arguments))throw Error()})}catch{n=!1}return n},sh)}var uh,dh;function fh(){return dh?uh:(dh=1,uh=function(e){if(!e)return``;try{return e.displayName||e.name||(String(e).match(/function ([^\s(]+)/)||[])[1]}catch{return``}},uh)}var ph,mh;function hh(){if(mh)return ph;mh=1;var e=Zm().sort,t=Zm().slice;function n(e,t){var n=e.getCall(0),r=t.getCall(0);return(n&&n.callId||-1)<(r&&r.callId||-1)?-1:1}function r(r){return e(t(r),n)}return ph=r,ph}var gh,_h;function vh(){return _h?gh:(_h=1,gh=Jm()(Function.prototype),gh)}var yh,bh;function xh(){return bh?yh:(bh=1,yh=Jm()(Map.prototype),yh)}var Sh,Ch;function wh(){return Ch?Sh:(Ch=1,Sh=Jm()(Object.prototype),Sh)}var Th,Eh;function Dh(){return Eh?Th:(Eh=1,Th=Jm()(Set.prototype),Th)}var Oh,kh;function Ah(){return kh?Oh:(kh=1,Oh=Jm()(String.prototype),Oh)}var jh,Mh;function Nh(){return Mh?jh:(Mh=1,jh={array:Zm(),function:vh(),map:xh(),object:wh(),set:Dh(),string:Ah()},jh)}var Ph={exports:{}},Fh=Ph.exports,Ih;function Lh(){return Ih?Ph.exports:(Ih=1,(function(e,t){(function(t,n){e.exports=n()})(Fh,(function(){var e=typeof Promise==`function`,t=typeof self==`object`?self:Np,n=typeof Symbol<`u`,r=typeof Map<`u`,i=typeof Set<`u`,a=typeof WeakMap<`u`,o=typeof WeakSet<`u`,s=typeof DataView<`u`,c=n&&Symbol.iterator!==void 0,l=n&&Symbol.toStringTag!==void 0,u=i&&typeof Set.prototype.entries==`function`,d=r&&typeof Map.prototype.entries==`function`,f=u&&Object.getPrototypeOf(new Set().entries()),p=d&&Object.getPrototypeOf(new Map().entries()),m=c&&typeof Array.prototype[Symbol.iterator]==`function`,h=m&&Object.getPrototypeOf([][Symbol.iterator]()),g=c&&typeof String.prototype[Symbol.iterator]==`function`,_=g&&Object.getPrototypeOf(``[Symbol.iterator]()),v=8,y=-1;function b(n){var c=typeof n;if(c!==`object`)return c;if(n===null)return`null`;if(n===t)return`global`;if(Array.isArray(n)&&(l===!1||!(Symbol.toStringTag in n)))return`Array`;if(typeof window==`object`&&window!==null){if(typeof window.location==`object`&&n===window.location)return`Location`;if(typeof window.document==`object`&&n===window.document)return`Document`;if(typeof window.navigator==`object`){if(typeof window.navigator.mimeTypes==`object`&&n===window.navigator.mimeTypes)return`MimeTypeArray`;if(typeof window.navigator.plugins==`object`&&n===window.navigator.plugins)return`PluginArray`}if((typeof window.HTMLElement==`function`||typeof window.HTMLElement==`object`)&&n instanceof window.HTMLElement){if(n.tagName===`BLOCKQUOTE`)return`HTMLQuoteElement`;if(n.tagName===`TD`)return`HTMLTableDataCellElement`;if(n.tagName===`TH`)return`HTMLTableHeaderCellElement`}}var u=l&&n[Symbol.toStringTag];if(typeof u==`string`)return u;var d=Object.getPrototypeOf(n);return d===RegExp.prototype?`RegExp`:d===Date.prototype?`Date`:e&&d===Promise.prototype?`Promise`:i&&d===Set.prototype?`Set`:r&&d===Map.prototype?`Map`:o&&d===WeakSet.prototype?`WeakSet`:a&&d===WeakMap.prototype?`WeakMap`:s&&d===DataView.prototype?`DataView`:r&&d===p?`Map Iterator`:i&&d===f?`Set Iterator`:m&&d===
95h?`Array Iterator`:g&&d===_?`String Iterator`:d===null?`Object`:Object.prototype.toString.call(n).slice(v,y)}return b}))})(Ph),Ph.exports)}var Rh,zh;function Bh(){if(zh)return Rh;zh=1;var e=Lh();return Rh=function(t){return e(t).toLowerCase()},Rh}var Vh,Hh;function Uh(){if(Hh)return Vh;Hh=1;function e(e){return e&&e.toString?e.toString():String(e)}return Vh=e,Vh}var Wh,Gh;function Kh(){return Gh?Wh:(Gh=1,Wh={global:Hm(),calledInOrder:eh(),className:rh(),deprecated:oh(),every:lh(),functionName:fh(),orderByFirstCall:hh(),prototypes:Nh(),typeOf:Bh(),valueToString:Uh()},Wh)}var qh;function Jh(){if(qh)return zm;qh=1;let e=Kh().global,t,n;if(typeof __vitest_required__<`u`){try{t=__vitest_required__.timers}catch{}try{n=__vitest_required__.timersPromises}catch{}}function r(i){let a=2**31-1,o=0xe8d4a51000,s=function(){},c=function(){return[]},l={},u,d=!1;i.setTimeout&&(l.setTimeout=!0,u=i.setTimeout(s,0),d=typeof u==`object`),l.clearTimeout=!!i.clearTimeout,l.setInterval=!!i.setInterval,l.clearInterval=!!i.clearInterval,l.hrtime=i.process&&typeof i.process.hrtime==`function`,l.hrtimeBigint=l.hrtime&&typeof i.process.hrtime.bigint==`function`,l.nextTick=i.process&&typeof i.process.nextTick==`function`;let f=i.process&&i.__vitest_required__&&i.__vitest_required__.util.promisify;l.performance=i.performance&&typeof i.performance.now==`function`;let p=i.Performance&&(typeof i.Performance).match(/^(function|object)$/),m=i.performance&&i.performance.constructor&&i.performance.constructor.prototype;l.queueMicrotask=i.hasOwnProperty(`queueMicrotask`),l.requestAnimationFrame=i.requestAnimationFrame&&typeof i.requestAnimationFrame==`function`,l.cancelAnimationFrame=i.cancelAnimationFrame&&typeof i.cancelAnimationFrame==`function`,l.requestIdleCallback=i.requestIdleCallback&&typeof i.requestIdleCallback==`function`,l.cancelIdleCallbackPresent=i.cancelIdleCallback&&typeof i.cancelIdleCallback==`function`,l.setImmediate=i.setImmediate&&typeof i.setImmediate==`function`,l.clearImmediate=i.clearImmediate&&typeof i.clearImmediate==`function`,l.Intl=i.Intl&&typeof i.Intl==`object`,i.clearTimeout&&i.clearTimeout(u);let h=i.Date,g=l.Intl?Object.defineProperties(Object.create(null),Object.getOwnPropertyDescriptors(i.Intl)):void 0,_=o;if(h===void 0)throw Error("The global scope doesn't have a `Date` object (see https://github.com/sinonjs/sinon/issues/1852#issuecomment-419622780)");l.Date=!0;class v{constructor(e,t,n,r){this.name=e,this.entryType=t,this.startTime=n,this.duration=r}toJSON(){return JSON.stringify({...this})}}function y(e){return Number.isFinite?Number.isFinite(e):isFinite(e)}let b=!1;function x(e,t){e.loopLimit&&t===e.loopLimit-1&&(b=!0)}function ee(){b=!1}function S(e){if(!e)return 0;let t=e.split(`:`),n=t.length,r=n,i=0,a;if(n>3||!/^(\d\d:){0,2}\d\d?$/.test(e))throw Error(`tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits`);for(;r--;){if(a=parseInt(t[r],10),a>=60)throw Error(`Invalid time ${e}`);i+=a*60**(n-r-1)}return i*1e3}function C(e){let t=1e6,n=e*1e6%t,r=n<0?n+t:n;return Math.floor(r)}function te(e){if(!e)return 0;if(typeof e.getTime==`function`)return e.getTime();if(typeof e==`number`)return e;throw TypeError(`now should be milliseconds since UNIX epoch`)}function ne(e,t,n){return n&&n.callAt>=e&&n.callAt<=t}function re(e,t){let n=Error(`Aborting after running ${e.loopLimit} timers, assuming an infinite loop!`);if(!t.error)return n;let r=/target\.*[<|(|[].*?[>|\]|)]\s*/,i=new RegExp(String(Object.keys(e).join(`|`)));d&&(i=RegExp(`\\s+at (Object\\.)?(?:${Object.keys(e).join(`|`)})\\s+`));let a=-1;t.error.stack.split(`
96`).some(function(e,t){return e.match(r)?(a=t,!0):e.match(i)?(a=t,!1):a>=0});let o=`${n}\n${t.type||`Microtask`} - ${t.func.name||`anonymous`}\n${t.error.stack.split(`
97`).slice(a+1).join(`
98`)}`;try{Object.defineProperty(n,"stack",{value:o})}catch{}return n}function ie(){class e extends h{constructor(t,n,r,i,a,o,s){arguments.length===0?super(e.clock.now):super(...arguments),Object.defineProperty(this,"constructor",{value:h,enumerable:!1})}static[Symbol.hasInstance](e){return e instanceof h}}return e.isFake=!0,h.now&&(e.now=function(){return e.clock.now}),h.toSource&&(e.toSource=function(){return h.toSource()}),e.toString=function(){return h.toString()},new Proxy(e,{apply(){if(this instanceof e)throw TypeError("A Proxy should only capture `new` calls with the `construct` handler. This is not supposed to be possible, so check the logic.");return new h(e.clock.now).toString()}})}function ae(){let e={};return Object.getOwnPropertyNames(g).forEach(t=>e[t]=g[t]),e.DateTimeFormat=function(...t){let n=new g.DateTimeFormat(...t),r={};return[`formatRange`,`formatRangeToParts`,`resolvedOptions`].forEach(e
98=>{r[e]=n[e].bind(n)}),[`format`,`formatToParts`].forEach(t=>{r[t]=function(r){return n[t](r||e.clock.now)}}),r},e.DateTimeFormat.prototype=Object.create(g.DateTimeFormat.prototype),e.DateTimeFormat.supportedLocalesOf=g.DateTimeFormat.supportedLocalesOf,e}function oe(e,t){e.jobs||=[],e.jobs.push(t)}function se(e){if(e.jobs){for(let t=0;t<e.jobs.length;t++){let n=e.jobs[t];if(n.func.apply(null,n.args),x(e,t),e.loopLimit&&t>e.loopLimit)throw re(e,n)}ee(),e.jobs=[]}}function ce(e,t){if(t.func===void 0)throw Error(`Callback must be provided to timer calls`);if(d&&typeof t.func!=`function`)throw TypeError(`[ERR_INVALID_CALLBACK]: Callback must be a function. Received ${t.func} of type ${typeof t.func}`);if(b&&(t.error=Error()),t.type=t.immediate?`Immediate`:`Timeout`,t.hasOwnProperty(`delay`)&&(typeof t.delay!=`number`&&(t.delay=parseInt(t.delay,10)),y(t.delay)||(t.delay=0),t.delay=t.delay>a?1:t.delay,t.delay=Math.max(0,t.delay)),t.hasOwnProperty(`interval`)&&(t.type=`Interval`,t.interval=t.interval>a?1:t.interval),t.hasOwnProperty(`animation`)&&(t.type=`AnimationFrame`,t.animation=!0),t.hasOwnProperty(`idleCallback`)&&(t.type=`IdleCallback`,t.idleCallback=!0),e.timers||={},t.id=_++,t.createdAt=e.now,t.callAt=e.now+(parseInt(t.delay)||+!!e.duringTick),e.timers[t.id]=t,d){let n={refed:!0,ref:function(){return this.refed=!0,n},unref:function(){return this.refed=!1,n},hasRef:function(){return this.refed},refresh:function(){return t.callAt=e.now+(parseInt(t.delay)||+!!e.duringTick),e.timers[t.id]=t,n},[Symbol.toPrimitive]:function(){return t.id}};return n}return t.id}function le(e,t){if(e.callAt<t.callAt)return-1;if(e.callAt>t.callAt)return 1;if(e.immediate&&!t.immediate)return-1;if(!e.immediate&&t.immediate)return 1;if(e.createdAt<t.createdAt)return-1;if(e.createdAt>t.createdAt)return 1;if(e.id<t.id)return-1;if(e.id>t.id)return 1}function ue(e,t,n){let r=e.timers,i=null,a,o;for(a in r)r.hasOwnProperty(a)&&(o=ne(t,n,r[a]),o&&(!i||le(i,r[a])===1)&&(i=r[a]));return i}function de(e){let t=e.timers,n=null,r;for(r in t)t.hasOwnProperty(r)&&(!n||le(n,t[r])===1)&&(n=t[r]);return n}function fe(e){let t=e.timers,n=null,r;for(r in t)t.hasOwnProperty(r)&&(!n||le(n,t[r])===-1)&&(n=t[r]);return n}function pe(e,t){if(typeof t.interval==`number`?e.timers[t.id].callAt+=t.interval:delete e.timers[t.id],typeof t.func==`function`)t.func.apply(null,t.args);else{let e=eval;(function(){e(t.func)})()}}function me(e){return e===`IdleCallback`||e===`AnimationFrame`?`cancel${e}`:`clear${e}`}function he(e){return e===`IdleCallback`||e===`AnimationFrame`?`request${e}`:`set${e}`}function ge(){let e=0;return function(t){!e++&&console.warn(t)}}let _e=ge();function ve(e,t,n){if(!t)return;e.timers||={};let r=Number(t);if(Number.isNaN(r)||r<o){let r=me(n);if(e.shouldClearNativeTimers===!0){let n=e[`_${r}`];return typeof n==`function`?n(t):void 0}_e(`FakeTimers: ${r} was invoked to clear a native timer instead of one created by this library.
99To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`)}if(e.timers.hasOwnProperty(r)){let t=e.timers[r];if(t.type===n||t.type===`Timeout`&&n===`Interval`||t.type===`Interval`&&n===`Timeout`)delete e.timers[r];else{let e=me(n),r=he(t.type);throw Error(`Cannot clear timer: timer created with ${r}() but cleared with ${e}()`)}}}function ye(e){let r,a,o;for(a=0,o=e.methods.length;a<o;a++){if(r=e.methods[a],r===`hrtime`&&i.process)i.process.hrtime=e._hrtime;else if(r===`nextTick`&&i.process)i.process.nextTick=e._nextTick;else if(r===`performance`){let t=Object.getOwnPropertyDescriptor(e,`_${r}`);t&&t.get&&!t.set?Object.defineProperty(i,r,t):t.configurable&&(i[r]=e[`_${r}`])}else if(i[r]&&i[r].hadOwnProperty)i[r]=e[`_${r}`];else try{delete i[r]}catch{}if(e.timersModuleMethods!==void 0)for(let n=0;n<e.timersModuleMethods.length;n++){let r=e.timersModuleMethods[n];t[r.methodName]=r.original}if(e.timersPromisesModuleMethods!==void 0)for(let t=0;t<e.timersPromisesModuleMethods.length;t++){let r=e.timersPromisesModuleMethods[t];n[r.methodName]=r.original}}e.setTickMode(`manual`),e.methods=[];for(let[t,n]of e.abortListenerMap.entries())n.removeEventListener(`abort`,t),e.abortListenerMap.delete(t);return e.timers?Object.keys(e.timers).map(function(t){return e.timers[t]}):[]}function be(e,t,n){if(n[t].hadOwnProperty=Object.prototype.hasOwnProperty.call(e,t),n[`_${t}`]=e[t],t===`Date`)e[t]=n[t];else if(t===`Intl`)e[t]=n[t];else if(t===`performance`){let r=Object.getOwnPropertyDescriptor(e,t);if(r&&r.get&&!r.set){Object.defineProperty(n,`_${t}`,r);let i=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,i)}else e[t]=n[t]}else e[t]=function(){return n[t].apply(n,arguments)}
99,Object.defineProperties(e[t],Object.getOwnPropertyDescriptors(n[t]));e[t].clock=n}function xe(e,t){e.tick(t)}let w={setTimeout:i.setTimeout,clearTimeout:i.clearTimeout,setInterval:i.setInterval,clearInterval:i.clearInterval,Date:i.Date};l.setImmediate&&(w.setImmediate=i.setImmediate),l.clearImmediate&&(w.clearImmediate=i.clearImmediate),l.hrtime&&(w.hrtime=i.process.hrtime),l.nextTick&&(w.nextTick=i.process.nextTick),l.performance&&(w.performance=i.performance),l.requestAnimationFrame&&(w.requestAnimationFrame=i.requestAnimationFrame),l.queueMicrotask&&(w.queueMicrotask=i.queueMicrotask),l.cancelAnimationFrame&&(w.cancelAnimationFrame=i.cancelAnimationFrame),l.requestIdleCallback&&(w.requestIdleCallback=i.requestIdleCallback),l.cancelIdleCallback&&(w.cancelIdleCallback=i.cancelIdleCallback),l.Intl&&(w.Intl=g);let Se=i.setImmediate||i.setTimeout,Ce=i.clearInterval,we=i.setInterval;function Te(e,t){e=Math.floor(te(e)),t||=1e3;let n=0,r=[0,0],a={now:e,Date:ie(),loopLimit:t,tickMode:{mode:`manual`,counter:0,delta:void 0}};a.Date.clock=a;function o(){return 16-(a.now-e)%16}function s(t){let i=a.now-r[0]-e,o=Math.floor(i/1e3),s=(i-o*1e3)*1e6+n-r[1];if(Array.isArray(t)){if(t[1]>1e9)throw TypeError(`Number of nanoseconds can't exceed a billion`);let e=t[0],n=s-t[1],r=o-e;return n<0&&(n+=1e9,--r),[r,n]}return[o,s]}function c(){let e=s();return e[0]*1e3+e[1]/1e6}l.hrtimeBigint&&(s.bigint=function(){let e=s();return BigInt(e[0])*BigInt(1e9)+BigInt(e[1])}),l.Intl&&(a.Intl=ae(),a.Intl.clock=a),a.setTickMode=function(e){let{mode:t,delta:n}=e,{mode:r,delta:i}=a.tickMode;(t!==r||n!==i)&&(r===`interval`&&Ce(a.attachedInterval),a.tickMode={counter:a.tickMode.counter+1,mode:t,delta:n},t===`nextAsync`?u():t===`interval`&&Ee(a,n||20))};async function u(){async function e(){let e=new MessageChannel;await new Promise(t=>{e.port1.onmessage=()=>{t(),e.port1.close()},e.port2.postMessage(void 0)}),e.port1.close(),e.port2.close(),await new Promise(e=>{Se(e)})}let{counter:t}=a.tickMode;for(;a.tickMode.counter===t;){if(await e(),a.tickMode.counter!==t)return;a.next()}}function d(e){return a.tickMode.mode===`nextAsync`?(a.setTickMode({mode:`manual`}),e.finally(()=>{a.setTickMode({mode:`nextAsync`})})):e}a.requestIdleCallback=function(e,t){let n=0;a.countTimers()>0&&(n=50);let r=ce(a,{func:e,args:Array.prototype.slice.call(arguments,2),delay:t===void 0?n:Math.min(t,n),idleCallback:!0});return Number(r)},a.cancelIdleCallback=function(e){return ve(a,e,`IdleCallback`)},a.setTimeout=function(e,t){return ce(a,{func:e,args:Array.prototype.slice.call(arguments,2),delay:t})},i.Promise!==void 0&&f&&(a.setTimeout[f.custom]=function(e,t){return new i.Promise(function(n){ce(a,{func:n,args:[t],delay:e})})}),a.clearTimeout=function(e){return ve(a,e,`Timeout`)},a.nextTick=function(e){return oe(a,{func:e,args:Array.prototype.slice.call(arguments,1),error:b?Error():null})},a.queueMicrotask=function(e){return a.nextTick(e)},a.setInterval=function(e,t){return t=parseInt(t,10),ce(a,{func:e,args:Array.prototype.slice.call(arguments,2),delay:t,interval:t})},a.clearInterval=function(e){return ve(a,e,`Interval`)},l.setImmediate&&(a.setImmediate=function(e){return ce(a,{func:e,args:Array.prototype.slice.call(arguments,1),immediate:!0})},i.Promise!==void 0&&f&&(a.setImmediate[f.custom]=function(e){return new i.Promise(function(t){ce(a,{func:t,args:[e],immediate:!0})})}),a.clearImmediate=function(e){return ve(a,e,`Immediate`)}),a.countTimers=function(){return Object.keys(a.timers||{}).length+(a.jobs||[]).length},a.requestAnimationFrame=function(e){let t=ce(a,{func:e,delay:o(),get args(){return[c()]},animation:!0});return Number(t)},a.cancelAnimationFrame=function(e){return ve(a,e,`AnimationFrame`)},a.runMicrotasks=function(){se(a)};function p(e,t,r,i){let o=typeof e==`number`?e:S(e),s=Math.floor(o),c=C(o),l=n+c,u=a.now+s;if(o<0)throw TypeError(`Negative ticks are not supported`);l>=1e6&&(u+=1,l-=1e6),n=l;let d=a.now,f=a.now,p,m,h,g,_,v;a.duringTick=!0,h=a.now,se(a),h!==a.now&&(d+=a.now-h,u+=a.now-h);function y(){for(p=ue(a,d,u);p&&d<=u;){if(a.timers[p.id]){d=p.callAt,a.now=p.callAt,h=a.now;
99try{se(a),pe(a,p)}catch(e){m||=e}if(t){Se(g);return}_()}v()}if(h=a.now,se(a),h!==a.now&&(d+=a.now-h,u+=a.now-h),a.duringTick=!1,p=ue(a,d,u),p)try{a.tick(u-a.now)}catch(e){m||=e}else a.now=u,n=l;if(m)throw m;if(t)r(a.now);else return a.now}return g=t&&function(){try{_(),v(),y()}catch(e){i(e)}},_=function(){h!==a.now&&(d+=a.now-h,u+=a.now-h,f+=a.now-h)},v=function(){p=ue(a,f,u),f=d},y()}return a.tick=function(e){return p(e,!1)},i.Promise!==void 0&&(a.tickAsync=function(e){return d(new i.Promise(function(t,n){Se(function(){try{p(e,!0,t,n)}catch(e){n(e)}})}))}),a.next=function(){se(a);let e=de(a);if(!e)return a.now;a.duringTick=!0;try{return a.now=e.callAt,pe(a,e),se(a),a.now}finally{a.duringTick=!1}},i.Promise!==void 0&&(a.nextAsync=function(){return d(new i.Promise(function(e,t){Se(function(){try{let n=de(a);if(!n){e(a.now);return}let r;a.duringTick=!0,a.now=n.callAt;try{pe(a,n)}catch(e){r=e}a.duringTick=!1,Se(function(){r?t(r):e(a.now)})}catch(e){t(e)}})}))}),a.runAll=function(){let e,t;for(se(a),t=0;t<a.loopLimit;t++){if(!a.timers||(e=Object.keys(a.timers).length,e===0))return ee(),a.now;a.next(),x(a,t)}let n=de(a);throw re(a,n)},a.runToFrame=function(){return a.tick(o())},i.Promise!==void 0&&(a.runAllAsync=function(){return d(new i.Promise(function(e,t){let n=0;function r(){Se(function(){try{se(a);let i;if(n<a.loopLimit){if(!a.timers){ee(),e(a.now);return}if(i=Object.keys(a.timers).length,i===0){ee(),e(a.now);return}a.next(),n++,r(),x(a,n);return}let o=de(a);t(re(a,o))}catch(e){t(e)}})}r()}))}),a.runToLast=function(){let e=fe(a);return e?a.tick(e.callAt-a.now):(se(a),a.now)},i.Promise!==void 0&&(a.runToLastAsync=function(){return d(new i.Promise(function(e,t){Se(function(){try{let t=fe(a);t||(se(a),e(a.now)),e(a.tickAsync(t.callAt-a.now))}catch(e){t(e)}})}))}),a.reset=function(){n=0,a.timers={},a.jobs=[],a.now=e},a.setSystemTime=function(e){let t=te(e),i=t-a.now,o,s;for(o in r[0]+=i,r[1]+=n,a.now=t,n=0,a.timers)a.timers.hasOwnProperty(o)&&(s=a.timers[o],s.createdAt+=i,s.callAt+=i)},a.jump=function(e){let t=typeof e==`number`?e:S(e),n=Math.floor(t);for(let e of Object.values(a.timers))a.now+n>e.callAt&&(e.callAt=a.now+n);a.tick(n)},l.performance&&(a.performance=Object.create(null),a.performance.now=c),l.hrtime&&(a.hrtime=s),a}function Ee(e,t){let n=xe.bind(null,e,t);e.attachedInterval=we(n,t)}function De(r){if(arguments.length>1||r instanceof Date||Array.isArray(r)||typeof r==`number`)throw TypeError(`FakeTimers.install called with ${String(r)} install requires an object parameter`);if(i.Date.isFake===!0)throw TypeError(`Can't install fake timers twice on the same global object.`);if(r=r===void 0?{}:r,r.shouldAdvanceTime=r.shouldAdvanceTime||!1,r.advanceTimeDelta=r.advanceTimeDelta||20,r.shouldClearNativeTimers=r.shouldClearNativeTimers||!1,r.target)throw TypeError("config.target is no longer supported. Use `withGlobal(target)` instead.");function a(e){if(!r.ignoreMissingTimers)throw ReferenceError(`non-existent timers and/or objects cannot be faked: '${e}'`)}let o,u,d=Te(r.now,r.loopLimit);if(d.shouldClearNativeTimers=r.shouldClearNativeTimers,d.uninstall=function(){return ye(d)},d.abortListenerMap=new Map,d.methods=r.toFake||[],d.methods.length===0&&(d.methods=Object.keys(w)),r.shouldAdvanceTime===!0&&d.setTickMode({mode:`interval`,delta:r.advanceTimeDelta}),d.methods.includes(`performance`)){let e=(()=>{if(m)return i.performance.constructor.prototype;if(p)return i.Performance.prototype})();if(e)Object.getOwnPropertyNames(e).forEach(function(e){e!==`now`&&(d.performance[e]=e.indexOf(`getEntries`)===0?c:s)}),d.performance.mark=e=>new v(e,`mark`,0,0),d.performance.measure=e=>new v(e,`measure`,0,100),d.performance.timeOrigin=te(r.now);else if((r.toFake||[]).includes(`performance`))return a(`performance`)}for(i===e&&t&&(d.timersModuleMethods=[]),i===e&&n&&(d.timersPromisesModuleMethods=[]),o=0,u=d.methods.length;o<u;o++){let e=d.methods[o];if(!l[e]){a(e);continue}if(e===`hrtime`?i.process&&typeof i.process.hrtime==`function`&&be(i.process,e,d):e===`nextTick`?i.process&&typeof i.process.nextTick==`function`&&be(i.process,e,d):be(i,e,d),d.timersModuleMethods!==void 0&&t[e]){let n=t[e];d.timersModuleMethods.push({methodName:e,original:n}),t[e]=i[e]}d.timersPromisesModuleMethods!==void 0&&(e===`setTimeout`?(d.timersPromisesModuleMethods.push({methodName:`setTimeout`,original:n.setTimeout}),n.setTimeout=(e,t,n={})=>new Promise((r,i)=>{let a=()=>{n.signal.removeEventListener(`abort`,a),d.abortListenerMap.delete(a),d.clearTimeout(o),i(n.signal.reason)},o=d.setTimeout(()=>{n.signal&&(n.signal.removeEventListener(`abort`,a),d.abortListenerMap.delete(a)),r(t)},e);n.signal&&(n.signal.aborted?a():(n.signal.addEventListener(`abort`,a),d.abortListenerMap.set(a,n.signal)))})):e===`setImmediate`?(d.timersPromisesModuleMethods.push({methodName:`setImmediate`,original:n.setImmediate}),n.setImmediate=(e,t={})=>new Promise((n,r)=>{let i=()=>{t.signal.removeEventListener(`abort`,i),d.abortListenerMap.delete(i),d.clearImmediate(a),r(t.signal.reason)},a=d.setImmediate(()=>{t.signal&&(t.signal.removeEventListener(`abort`,i),d.abortListenerMap.delete(i)),n(e)});t.signal&&(t.signal.aborted?i():(t.signal.addEventListener(`abort`,i),d.abortListenerMap.set(i,t.signal)))})):e===`setInterval`&&(d.timersPromisesModuleMethods.push({methodName:`setInterval`,original:n.setInterval}),n.setInterval=(e,t,n={})=>({[Symbol.asyncIterator]:()=>{let r=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},i=!1,a=!1,o,s=0,c=[],l=d.setInterval(()=>{c.length>0?c.shift().resolve():s++},e),u=()=>{n.signal.removeEventListener(`abort`,u),d.abortListenerMap.delete(u),d.clearInterval(l),i=!0;for(let e of c)e.resolve()};return n.signal&&(n.signal.aborted?i=!0:(n.signal.addEventListener(`abort`,u),d.abortListenerMap.set(u,n.signal))),{next:async()=>
99{if(n.signal?.aborted&&!a)throw a=!0,n.signal.reason;if(i)return{done:!0,value:void 0};if(s>0)return s--,{done:!1,value:t};let e=r();if(c.push(e),await e,o&&c.length===0&&o.resolve(),n.signal?.aborted&&!a)throw a=!0,n.signal.reason;return i?{done:!0,value:void 0}:{done:!1,value:t}},return:async()=>i?{done:!0,value:void 0}:(c.length>0&&(o=r(),await o),d.clearInterval(l),i=!0,n.signal&&(n.signal.removeEventListener(`abort`,u),d.abortListenerMap.delete(u)),{done:!0,value:void 0})}}})))}return d}return{timers:w,createClock:Te,install:De,withGlobal:r}}let i=r(e);return zm.timers=i.timers,zm.createClock=i.createClock,zm.install=i.install,zm.withGlobal=r,zm}var Yh=Jh(),Xh=class{constructor({global:t,config:n}){e(this,`_global`,void 0),e(this,`_clock`,void 0),e(this,`_fakingTime`,void 0),e(this,`_fakingDate`,void 0),e(this,`_fakeTimers`,void 0),e(this,`_userConfig`,void 0),e(this,`_now`,Z.now),this._userConfig=n,this._fakingDate=null,this._fakingTime=!1,this._fakeTimers=Yh.withGlobal(t),this._global=t}clearAllTimers(){this._fakingTime&&this._clock.reset()}dispose(){this.useRealTimers()}runAllTimers(){this._checkFakeTimers()&&this._clock.runAll()}async runAllTimersAsync(){this._checkFakeTimers()&&await this._clock.runAllAsync()}runOnlyPendingTimers(){this._checkFakeTimers()&&this._clock.runToLast()}async runOnlyPendingTimersAsync(){this._checkFakeTimers()&&await this._clock.runToLastAsync()}advanceTimersToNextTimer(e=1){if(this._checkFakeTimers())for(let t=e;t>0&&(this._clock.next(),this._clock.tick(0),this._clock.countTimers()!==0);t--);}async advanceTimersToNextTimerAsync(e=1){if(this._checkFakeTimers())for(let t=e;t>0&&(await this._clock.nextAsync(),this._clock.tick(0),this._clock.countTimers()!==0);t--);}advanceTimersByTime(e){this._checkFakeTimers()&&this._clock.tick(e)}async advanceTimersByTimeAsync(e){this._checkFakeTimers()&&await this._clock.tickAsync(e)}advanceTimersToNextFrame(){this._checkFakeTimers()&&this._clock.runToFrame()}runAllTicks(){this._checkFakeTimers()&&this._clock.runMicrotasks()}useRealTimers(){this._fakingDate&&=(Lp(),null),this._fakingTime&&=(this._clock.uninstall(),!1)}useFakeTimers(){let e=this._fakingDate||Date.now();this._fakingDate&&=(Lp(),null),this._fakingTime&&this._clock.uninstall();let t=Object.keys(this._fakeTimers.timers).filter(e=>e!==`nextTick`&&e!==`queueMicrotask`);if(this._userConfig?.toFake?.includes(`nextTick`)&&yc())throw Error(`process.nextTick cannot be mocked inside child_process`);this._clock=this._fakeTimers.install({now:e,...this._userConfig,toFake:this._userConfig?.toFake||t,ignoreMissingTimers:!0}),this._fakingTime=!0}reset(){if(this._checkFakeTimers()){let{now:e}=this._clock;this._clock.reset(),this._clock.setSystemTime(e)}}setSystemTime(e){let t=e===void 0||e instanceof Date?e:new Date(e);this._fakingTime?this._clock.setSystemTime(t):(this._fakingDate=t??new Date(this.getRealSystemTime()),Ip(this._fakingDate))}getMockedSystemTime(){return this._fakingTime?new Date(this._clock.now):this._fakingDate}getRealSystemTime(){return this._now()}getTimerCount(){return this._checkFakeTimers()?this._clock.countTimers():0}setTimerTickMode(e,t){if(this._checkFakeTimers()){if(e===`manual`)this._clock.setTickMode({mode:`manual`});else if(e===`nextTimerAsync`)this._clock.setTickMode({mode:`nextAsync`});else if(e===`interval`)this._clock.setTickMode({mode:`interval`,delta:t});else throw Error(`Invalid tick mode: ${e}`)}}configure(e){this._userConfig=e}isFakeTimers(){return this._fakingTime}_checkFakeTimers(){if(!this._fakingTime)throw Error("A function to advance timers was called but the timers APIs are not mocked. Call `vi.useFakeTimers()` in the test file first.");return this._fakingTime}};function Zh(e,t){return t.stack!==void 0&&(e.stack=t.stack.replace(t.message,e.message)),e}function Qh(e,t={}){let{setTimeout:n,setInterval:r,clearTimeout:i,clearInterval:a}=ra(),{interval:o=50,timeout:s=1e3}=typeof t==`number`?{timeout:t}:t,c=Error(`STACK_TRACE_ERROR`);return new Promise((t,l)=>{let u,d=`idle`,f,p,m=e=>{f&&i(f),p&&a(p),t(e)},h=()=>{p&&a(p);let e=u;e||=Zh(Error(`Timed out in waitFor!`),c),l(e)},g=()=>
99{if(Q.isFakeTimers()&&Q.advanceTimersByTime(o),d!==`pending`)try{let t=e();if(typeof t==`object`&&t&&typeof t.then==`function`){let e=t;d=`pending`,e.then(e=>{d=`resolved`,m(e)},e=>{d=`rejected`,u=e})}else return m(t),!0}catch(e){u=e}};g()!==!0&&(f=n(h,s),p=r(g,o))})}function $h(e,t={}){let{setTimeout:n,setInterval:r,clearTimeout:i,clearInterval:a}=ra(),{interval:o=50,timeout:s=1e3}=typeof t==`number`?{timeout:t}:t,c=Error(`STACK_TRACE_ERROR`);return new Promise((t,l)=>{let u=`idle`,d,f,p=e=>{f&&a(f),e||=Zh(Error(`Timed out in waitUntil!`),c),l(e)},m=e=>{if(e)return d&&i(d),f&&a(f),t(e),!0},h=()=>{if(Q.isFakeTimers()&&Q.advanceTimersByTime(o),u!==`pending`)try{let t=e();if(typeof t==`object`&&t&&typeof t.then==`function`){let e=t;u=`pending`,e.then(e=>{u=`resolved`,m(e)},e=>{u=`rejected`,p(e)})}else return m(t)}catch(e){p(e)}};h()!==!0&&(d=n(p,s),f=r(h,o))})}function eg(){let e=null,t=()=>vc(),n,r=()=>n||=new Xh({global:globalThis,config:t().config.fakeTimers}),i=new Map,a=new Map,o=[`PROD`,`DEV`,`SSR`],s={useFakeTimers(e){if(yc()&&(e?.toFake?.includes(`nextTick`)||t().config?.fakeTimers?.toFake?.includes(`nextTick`)))throw Error(`vi.useFakeTimers({ toFake: ["nextTick"] }) is not supported in node:child_process. Use --pool=threads if mocking nextTick is required.`);return e?r().configure({...t().config.fakeTimers,...e}):r().configure(t().config.fakeTimers),r().useFakeTimers(),s},isFakeTimers(){return r().isFakeTimers()},useRealTimers(){return r().useRealTimers(),s},runOnlyPendingTimers(){return r().runOnlyPendingTimers(),s},async runOnlyPendingTimersAsync(){return await r().runOnlyPendingTimersAsync(),s},runAllTimers(){return r().runAllTimers(),s},async runAllTimersAsync(){return await r().runAllTimersAsync(),s},runAllTicks(){return r().runAllTicks(),s},advanceTimersByTime(e){return r().advanceTimersByTime(e),s},async advanceTimersByTimeAsync(e){return await r().advanceTimersByTimeAsync(e),s},advanceTimersToNextTimer(){return r().advanceTimersToNextTimer(),s},async advanceTimersToNextTimerAsync(){return await r().advanceTimersToNextTimerAsync(),s},advanceTimersToNextFrame(){return r().advanceTimersToNextFrame(),s},getTimerCount(){return r().getTimerCount()},setSystemTime(e){return r().setSystemTime(e),s},getMockedSystemTime(){return r().getMockedSystemTime()},getRealSystemTime(){return r().getRealSystemTime()},clearAllTimers(){return r().clearAllTimers(),s},setTimerTickMode(e,t){return r().setTimerTickMode(e,t),s},spyOn:Fc,fn:Pc,waitFor:Qh,waitUntil:$h,defineHelper:e=>function(...t){let n=e.apply(this,t);return n&&typeof n==`object`&&typeof n.then==`function`?(async function(){return await n})():n},hoisted(e){return A(e,`"vi.hoisted" factory`,[`function`]),e()},mock(e,t){if(typeof e!=`string`)throw TypeError(`vi.mock() expects a string path, but received a ${typeof e}`);let n=tg(`mock`);$().queueMock(e,n,typeof t==`function`?()=>t(()=>$().importActual(e,n,$().getMockContext().callstack)):t)},unmock(e){if(typeof e!=`string`)throw TypeError(`vi.unmock() expects a string path, but received a ${typeof e}`);$().queueUnmock(e,tg(`unmock`))},doMock(e,t){if(typeof e!=`string`)throw TypeError(`vi.doMock() expects a string path, but received a ${typeof e}`);let n=tg(`doMock`);$().queueMock(e,n,typeof t==`function`?()=>t(()=>$().importActual(e,n,$().getMockContext().callstack)):t);let r={};return Symbol.dispose&&(r[Symbol.dispose]=()=>{$().queueUnmock(e,n)}),r},doUnmock(e){if(typeof e!=`string`)throw TypeError(`vi.doUnmock() expects a string path, but received a ${typeof e}`);let t=tg(`doUnmock`);$().queueUnmock(e,t)},async importActual(e){let t=tg(`importActual`);return $().importActual(e,t,$().getMockContext().callstack)},async importMock(e){let t=tg(`importMock`);return $().importMock(e,t)},mockObject(e,t){return $().mockObject({value:e},void 0,t?.spy?`autospy`:`automock`).value},mocked(e,t={}){return e},isMockFunction(e){return kc(e)},clearAllMocks(){return Qc(),s},resetAllMocks(){return $c(),s},restoreAllMocks(){return Zc(),s},stubGlobal(e,t){return i.has(e)||i.set(e,Object.getOwnPropertyDescriptor(globalThis,e)),Object.defineProperty(globalThis,e,{value:t,writable:!0,configurable:!0,enumerable:!0}),s},stubEnv(e,n){let r=t().metaEnv;return a.has(e)||a.set(e,r[e]),o.includes(e)?r[e]=n?`1`:``:n===void 0?delete r[e]:r[e]=String(n),s}
99,unstubAllGlobals(){return i.forEach((e,t)=>{e?Object.defineProperty(globalThis,t,e):Reflect.deleteProperty(globalThis,t)}),i.clear(),s},unstubAllEnvs(){let e=t().metaEnv;return a.forEach((t,n)=>{t===void 0?delete e[n]:e[n]=t}),a.clear(),s},resetModules(){return bc(t().evaluatedModules),s},async dynamicImportSettled(){return Sc()},setConfig(n){e||={...t().config},Object.assign(t().config,n)},resetConfig(){e&&Object.assign(t().config,e)}};return s}var Q=eg();function $(){return typeof __vitest_mocker__<`u`?__vitest_mocker__:new Proxy({},{get(e,t){throw Error(`Vitest mocker was not initialized in this environment. vi.${String(t)}() is forbidden.`)}})}function tg(e){let t=Qn({stackTraceLimit:5}).split(`
100`);return Ja(t[t.findLastIndex(t=>t.includes(` at Object.${e}`)||t.includes(`${e}@`)||t.includes(` at ${e} (`))+1])?.file||``}var ng=[`matchSnapshot`,`toMatchSnapshot`,`toMatchInlineSnapshot`,`toThrowErrorMatchingSnapshot`,`toThrowErrorMatchingInlineSnapshot`,`throws`,`Throw`,`throw`,`toThrow`,`toThrowError`];function rg(e,t){throw e.cause??=Error(`Matcher did not succeed in time.`),ag(e,t)}function ig(e){return function(t,n={}){let r=vc().config.expect?.poll??{},{interval:i=r.interval??50,timeout:a=r.timeout??1e3,message:o}=n,s=e(null,o).withContext({poll:!0});t=t.bind(s),L.flag(s,`_poll.fn`,t),L.flag(s,`_poll.timeout`,a),L.flag(s,`_poll.interval`,i);let c=L.flag(s,`vitest-test`);if(!c)throw Error(`expect.poll() must be called inside a test`);let l=new Proxy(s,{get(e,n,r){let o=Reflect.get(e,n,r);if(typeof o!=`function`)return o instanceof G?l:o;if(n===`assert`)return o;if(typeof n==`string`&&ng.includes(n))throw SyntaxError(`expect.poll() is not supported in combination with .${n}(). Use vi.waitFor() if your assertion condition is unstable.`);return function(...e){let r=Error(`STACK_TRACE_ERROR`),l=async()=>{L.flag(s,`_name`,n),L.flag(s,`error`,r);let c=L.flag(s,`_poll.onSettled`);if(Object.getOwnPropertyDescriptor(o,`__vitest_poll_takeover__`)?.value)try{let t=await o.call(s,...e);return await c?.({assertion:s,status:`pass`}),t}catch(e){await c?.({assertion:s,status:`fail`}),rg(e,r)}let{setTimeout:l,clearTimeout:u}=ra(),d=`fn`,f=!1,p=l(()=>{f=!0},a);try{for(;;){let n=f;n&&L.flag(s,`_isLastPollAttempt`,!0);try{d=`fn`;let n=await t();L.flag(s,`object`,n),d=`assertion`;let r=await o.call(s,...e);return await c?.({assertion:s,status:`pass`}),r}catch(e){(n||d===`assertion`&&L.flag(s,`_poll.assert_once`))&&(await c?.({assertion:s,status:`fail`}),rg(e,r)),await ia(i,l),Q.isFakeTimers()&&Q.advanceTimersByTime(i)}}}finally{u(p)}},u=!1;c.onFinished??=[],c.onFinished.push(()=>{if(!u){let e=L.flag(s,`negate`)?`not.`:``,t=`expect.${L.flag(s,`_poll.element`)?`element(locator)`:`poll(assertion)`}.${e}${String(n)}()`;throw ag(Error(`${t} was not awaited. This assertion is asynchronous and must be awaited; otherwise, it is not executed to avoid unhandled rejections:\n\nawait ${t}\n`),r)}});let d;return{then(e,t){return u=!0,(d||=l()).then(e,t)},catch(e){return u=!0,(d||=l()).catch(e)},finally(e){return u=!0,(d||=l()).finally(e)},[Symbol.toStringTag]:`Promise`}}}});return l}}function ag(e,t){return t.stack!==void 0&&(e.stack=t.stack.replace(t.message,e.message)),e}var og;function sg(){return og||=new Im({isEqual:(e,t)=>Y(e,t,[X,Qf])}),og}function cg(e,t){if(typeof e!=`function`){if(!t)throw Error(`expected must be a function, received ${typeof e}`);return e}try{e()}catch(e){return e}throw Error(`snapshot function didn't throw`)}function lg(e){return{filepath:e.file.filepath,name:Ds(e).slice(1).join(` > `),testId:e.id}}function ug(e){let t=L.flag(e,`_name`);if(!t)throw Error(`Assertion name is not set. This is a bug in Vitest. Please, open a new issue with reproduction.`);return t}function dg(e){let t=L.flag(e,`vitest-test`);if(!t)throw Error(`'${ug(e)}' cannot be used without test context`);return t}function fg(e){if(L.flag(e,`negate`))throw Error(`${ug(e)} cannot be used with "not"`)}var pg=(e,t)=>{for(let n of[`matchSnapshot`,`toMatchSnapshot`])t.addMethod(e.Assertion.prototype,n,Sp(t,n,function(n,r){return vg(gg({assertion:this,received:t.flag(this,`object`),...mg(n,r)}),e.util.flag(this,`message`))}));t.addMethod(e.Assertion.prototype,`toMatchFileSnapshot`,function(n,r){t.flag(this,`_name`,`toMatchFileSnapshot`),fg(this);let i=_g({assertion:this,received:t.flag(this,`object`),filepath:n,hint:r}).then(t=>vg(t,e.util.flag(this,`message`)));
100return bp(dg(this),i,yp(t,this,!0),Error(`resolves`),t.flag(this,`soft`))}),t.addMethod(e.Assertion.prototype,`toMatchInlineSnapshot`,Sp(t,`toMatchInlineSnapshot`,function(n,r,i){return vg(gg({assertion:this,received:t.flag(this,`object`),isInline:!0,...hg(n,r,i)}),e.util.flag(this,`message`))})),t.addMethod(e.Assertion.prototype,`toThrowErrorMatchingSnapshot`,Sp(t,`toThrowErrorMatchingSnapshot`,function(n,r){fg(this);let i=t.flag(this,`object`),a=t.flag(this,`promise`);return vg(gg({assertion:this,received:cg(i,a),...mg(n,r)}),e.util.flag(this,`message`))})),t.addMethod(e.Assertion.prototype,`toThrowErrorMatchingInlineSnapshot`,Sp(t,`toThrowErrorMatchingInlineSnapshot`,function(n,r){fg(this);let i=t.flag(this,`object`),a=t.flag(this,`promise`);return vg(gg({assertion:this,received:cg(i,a),isInline:!0,...hg(void 0,n,r)}),e.util.flag(this,`message`))})),t.addMethod(e.expect,`addSnapshotSerializer`,$p)};function mg(e,t){return typeof e==`string`?{hint:e}:{properties:e,hint:t}}function hg(e,t,n){let r;return typeof e==`string`?(r=jm(e),{inlineSnapshot:r,hint:t}):(t&&(r=jm(t)),{properties:e,inlineSnapshot:r,hint:n})}function gg(e){let{assertion:t}=e;fg(t);let n=ug(t),r=dg(t);return sg().match({received:e.received,properties:e.properties,message:e.hint,isInline:e.isInline,inlineSnapshot:e.inlineSnapshot,assertionName:n,error:L.flag(t,`error`),...lg(r)})}async function _g(e){let{assertion:t}=e;fg(t);let n=lg(dg(t)),r=sg().getSnapshotState(n.filepath),i=await r.environment.resolveRawPath(n.filepath,e.filepath),a=await r.environment.readSnapshotFile(i);return sg().match({received:e.received,message:e.hint,rawSnapshot:{file:i,content:a??void 0},...n})}function vg(e,t){if(!e.pass){let n=(t?`${t}: `:``)+e.message();throw Object.assign(Error(n),{actual:e.actual,expected:e.expected,diffOptions:{expand:vc().config.snapshotOptions.expand}})}}af(kp),af(Cp),af(of),af(pg),af(vp);function yg(e){let t=((n,r)=>{let{assertionCalls:i}=sp(t);cp({assertionCalls:i+1},t);let a=Qd(n,r),o=e||void 0;return o?a.withTest(o):a});Object.assign(t,Qd),Object.assign(t,globalThis[uf]),t.getState=()=>sp(t),t.setState=e=>cp(e,t);let n=sp(globalThis[lf])||{};cp({...n,assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null,get testPath(){return vc().filepath},currentTestName:e?e.fullTestName??``:n.currentTestName},t),t.assert=J,t.extend=e=>Qd.extend(t,e),t.addEqualityTesters=e=>wf(e),t.soft=(...e)=>t(...e).withContext({soft:!0}),t.poll=ig(t),t.unreachable=e=>{J.fail(`expected${e?` "${e}" `:` `}not to be reached`)};function r(e){let n=()=>Error(`expected number of assertions to be ${e}, but got ${t.getState().assertionCalls}`);Error.captureStackTrace&&Error.captureStackTrace(n(),r),t.setState({expectedAssertionsNumber:e,expectedAssertionsNumberErrorGen:n})}function i(){let e=Error(`expected any number of assertion, but got none`);Error.captureStackTrace&&Error.captureStackTrace(e,i),t.setState({isExpectingAssertions:!0,isExpectingAssertionsError:e})}return L.addMethod(t,`assertions`,r),L.addMethod(t,`hasAssertions`,i),t.extend(df),t}var bg=yg();Object.defineProperty(globalThis,lf,{value:bg,writable:!0,configurable:!0});function xg(e){return vc().providedContext[e]}var Sg=class{constructor(t){e(this,`snapshotClient`,sg()),e(this,`workerState`,vc()),e(this,`moduleRunner`,void 0),e(this,`cancelRun`,!1),e(this,`assertionsErrors`,new WeakMap),e(this,`pool`,this.workerState.ctx.pool),e(this,`_otel`,void 0),e(this,`viteEnvironment`,void 0),e(this,`viteModuleRunner`,void 0),e(this,`trace`,(e,t,n)=>{let r=typeof t==`object`?{attributes:t}:{};return this._otel.$(`vitest.test.runner.${e}`,r,n||t)}),this.config=t;let n=this.workerState.environment;this.viteEnvironment=n.viteEnvironment||n.name,this.viteModuleRunner=t.experimental.viteModuleRunner}importFile(e,t){if(t===`setup`){let t=this.workerState.evaluatedModules.getModuleById(e);t&&this.workerState.evaluatedModules.invalidateModule(t)}return this._otel.$(`vitest.module.import_${t===`setup`?`setup`:`spec`}`,{attributes:{"code.file.path":e}},()=>(this.viteModuleRunner||(e=`${e}?vitest=${Date.now()}`),this.moduleRunner.import(e)))}onCollectStart(e){this.workerState.current=e}onCleanupWorkerContext(e){this.workerState.onCleanup(e)}onAfterRunFiles(){this.snapshotClient.clear(),this.workerState.current=void 0}async onAfterRunSuite(e){if(this.config.logHeapUsage&&typeof process<`u`&&(e.result.heap=process.memoryUsage().heapUsed),e.mode!==`skip`&&`filepath`in e){for(let t of Es(e))if(t.mode===`skip`){let n=Ds(t).slice(1).join(` > `);this.snapshotClient.skipTest(e.file.filepath,n)}let t=await this.snapshotClient.finish(e.file.filepath);if(this.workerState.config.snapshotOptions.updateSnapshot===`none`&&t.unchecked){let n=`Obsolete snapshots found when no snapshot update is expected.
101`;for(let e of t.uncheckedKeys)n+=`· ${e}\n`;e.result.errors??=[],e.result.errors.push(ea(Error(n))),e.result.state=`fail`}await zp().snapshotSaved(t)}this.workerState.current=e.suite||e.file}onAfterRunTask(e){this.config.logHeapUsage&&typeof process<`u`&&(e.result.heap=process.memoryUsage().heapUsed),this.workerState.current=e.suite||e.file}cancel(e){this.cancelRun=!0}injectValue(e){return xg(e)}async onBeforeRunTask(e){this.cancelRun&&(e.mode=`skip`),(e.mode===`run`||e.mode===`queued`)&&(this.workerState.current=e)}async onBeforeRunSuite(e){this.cancelRun&&(e.mode=`skip`),e.mode!==`skip`&&`filepath`in e&&await this.snapshotClient.setup(e.file.filepath,this.workerState.config.snapshotOptions),this.workerState.current=e}onBeforeTryTask(e){Cg(this.config),this.snapshotClient.clearTest(e.file.filepath,e.id),cp({assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null,currentTestName:Os(e),snapshotState:this.snapshotClient.getSnapshotState(e.file.filepath)},globalThis[lf])}onAfterTryTask(e){let{assertionCalls:t,expectedAssertionsNumber:n,expectedAssertionsNumberErrorGen:r,isExpectingAssertions:i,isExpectingAssertionsError:a}=e.context._local?e.context.expect.getState():sp(globalThis[lf]);if(n!==null&&t!==n)throw r();if(i===!0&&t===0)throw a;if(this.config.expect.requireAssertions&&t===0)throw this.assertionsErrors.get(e)}extendTaskContext(e){this.config.expect.requireAssertions&&this.assertionsErrors.set(e.task,Error(`expected any number of assertion, but got none`));let t;return Object.defineProperty(e,"expect",{get(){return t||=yg(e.task),t}}),Object.defineProperty(e,"_local",{get(){return t!=null}}),e}getImportDurations(){let{limit:e}=this.config.experimental.importDurations;if(e===0)return{};let t=[...this.workerState.moduleExecutionInfo?.entries()||[]].sort(([,e],[,t])=>t.duration-e.duration).slice(0,e),n={};for(let[e,{duration:r,selfTime:i,external:a,importer:o}]of t)n[lo(e)]={selfTime:i,totalTime:r,external:a,importer:o};return n}__setTraces(e){this._otel=e}};e(Sg,`createTaskCollector`,Ws),e(Sg,`getCurrentSuite`,N),e(Sg,`getCurrentTest`,Go),e(Sg,`createChainable`,Jo),e(Sg,`getSuiteHooks`,To),e(Sg,`getTestFn`,xo),e(Sg,`setSuiteHooks`,To),e(Sg,`setTestFn`,xo),e(Sg,`matchesTags`,ls),e(Sg,`getBenchFn`,Ec),e(Sg,`getBenchOptions`,Tc);function Cg(e){let{clearMocks:t,mockReset:n,restoreMocks:r,unstubEnvs:i,unstubGlobals:a}=e;r&&Q.restoreAllMocks(),n&&Q.resetAllMocks(),t&&Q.clearAllMocks(),i&&Q.unstubAllEnvs(),a&&Q.unstubAllGlobals()}
101export{Ns as i,Q as n,Ms as r,bg as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.