@knapsack/types 4.89.10--canary.471f81d.0 → 4.89.10--canary.7202.53e0d58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,64 +1,64 @@
1
- 'use strict';var tty=require('tty'),zod=require('zod');var xh=Object.create;var Bn=Object.defineProperty;var vh=Object.getOwnPropertyDescriptor;var Eh=Object.getOwnPropertyNames;var Ih=Object.getPrototypeOf,Ch=Object.prototype.hasOwnProperty;var a=(e,t)=>Bn(e,"name",{value:t,configurable:true});var ma=(e,t)=>()=>(e&&(t=e(e=0)),t);var Wt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_h=(e,t)=>{for(var n in t)Bn(e,n,{get:t[n],enumerable:true});},Oh=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Eh(t))!Ch.call(e,o)&&o!==n&&Bn(e,o,{get:()=>t[o],enumerable:!(r=vh(t,o))||r.enumerable});return e};var ga=(e,t,n)=>(n=e!=null?xh(Ih(e)):{},Oh(Bn(n,"default",{value:e,enumerable:true}),e));var Eu=Wt((n0,vu)=>{var Su,Vr,Kr,Xr,Gr,Yr,Cn,ms,On,Hr,Tu,Zr,_n,Qr,eo,to,Dt,xu,no,ro;Qr=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]?|[^\/[\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu;_n=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y;Vr=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu;to=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y;Zr=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y;Dt=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y;ro=/[\t\v\f\ufeff\p{Zs}]+/yu;On=/\r?\n|[\r\u2028\u2029]/y;Hr=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y;eo=/\/\/.*/y;Su=/^#!.*/;Xr=/[<>.:={}]|\/(?![\/*])/y;Kr=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu;Gr=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y;Yr=/[^<>{}]+/y;no=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;xu=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;Cn=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;ms=/^(?:return|throw|yield)$/;Tu=RegExp(On.source);vu.exports=a(function*(e,{jsx:t=false}={}){var n,r,o,i,s,c,l,u,f,h,m,d,g,p;for({length:c}=e,i=0,s="",p=[{tag:"JS"}],n=[],m=0,d=false,(l=Su.exec(e))&&(yield {type:"HashbangComment",value:l[0]},i=l[0].length);i<c;){switch(u=p[p.length-1],u.tag){case "JS":case "JSNonExpressionParen":case "InterpolationInTemplate":case "InterpolationInJSX":if(e[i]==="/"&&(no.test(s)||Cn.test(s))&&(Qr.lastIndex=i,l=Qr.exec(e))){i=Qr.lastIndex,s=l[0],d=true,yield {type:"RegularExpressionLiteral",value:l[0],closed:l[1]!==void 0&&l[1]!=="\\"};continue}if(_n.lastIndex=i,l=_n.exec(e)){switch(g=l[0],f=_n.lastIndex,h=g,g){case "(":s==="?NonExpressionParenKeyword"&&p.push({tag:"JSNonExpressionParen",nesting:m}),m++,d=false;break;case ")":m--,d=true,u.tag==="JSNonExpressionParen"&&m===u.nesting&&(p.pop(),h="?NonExpressionParenEnd",d=false);break;case "{":_n.lastIndex=0,o=!xu.test(s)&&(no.test(s)||Cn.test(s)),n.push(o),d=false;break;case "}":switch(u.tag){case "InterpolationInTemplate":if(n.length===u.nesting){Dt.lastIndex=i,l=Dt.exec(e),i=Dt.lastIndex,s=l[0],l[1]==="${"?(s="?InterpolationInTemplate",d=false,yield {type:"TemplateMiddle",value:l[0]}):(p.pop(),d=true,yield {type:"TemplateTail",value:l[0],closed:l[1]==="`"});continue}break;case "InterpolationInJSX":if(n.length===u.nesting){p.pop(),i+=1,s="}",yield {type:"JSXPunctuator",value:"}"};continue}}d=n.pop(),h=d?"?ExpressionBraceEnd":"}";break;case "]":d=true;break;case "++":case "--":h=d?"?PostfixIncDec":"?UnaryIncDec";break;case "<":if(t&&(no.test(s)||Cn.test(s))){p.push({tag:"JSXTag"}),i+=1,s="<",yield {type:"JSXPunctuator",value:g};continue}d=false;break;default:d=false;}i=f,s=h,yield {type:"Punctuator",value:g};continue}if(Vr.lastIndex=i,l=Vr.exec(e)){switch(i=Vr.lastIndex,h=l[0],l[0]){case "for":case "if":case "while":case "with":s!=="."&&s!=="?."&&(h="?NonExpressionParenKeyword");}s=h,d=!Cn.test(l[0]),yield {type:l[1]==="#"?"PrivateIdentifier":"IdentifierName",value:l[0]};continue}if(to.lastIndex=i,l=to.exec(e)){i=to.lastIndex,s=l[0],d=true,yield {type:"StringLiteral",value:l[0],closed:l[2]!==void 0};continue}if(Zr.lastIndex=i,l=Zr.exec(e)){i=Zr.lastIndex,s=l[0],d=true,yield {type:"NumericLiteral",value:l[0]};continue}if(Dt.lastIndex=i,l=Dt.exec(e)){i=Dt.lastIndex,s=l[0],l[1]==="${"?(s="?InterpolationInTemplate",p.push({tag:"InterpolationInTemplate",nesting:n.length}),d=false,yield {type:"TemplateHead",value:l[0]}):(d=true,yield {type:"NoSubstitutionTemplate",value:l[0],closed:l[1]==="`"});continue}break;case "JSXTag":case "JSXTagEnd":if(Xr.lastIndex=i,l=Xr.exec(e)){switch(i=Xr.lastIndex,h=l[0],l[0]){case "<":p.push({tag:"JSXTag"});break;case ">":p.pop(),s==="/"||u.tag==="JSXTagEnd"?(h="?JSX",d=true):p.push({tag:"JSXChildren"});break;case "{":p.push({tag:"InterpolationInJSX",nesting:n.length}),h="?InterpolationInJSX",d=false;break;case "/":s==="<"&&(p.pop(),p[p.length-1].tag==="JSXChildren"&&p.pop(),p.push({tag:"JSXTagEnd"}));}s=h,yield {type:"JSXPunctuator",value:l[0]};continue}if(Kr.lastIndex=i,l=Kr.exec(e)){i=Kr.lastIndex,s=l[0],yield {type:"JSXIdentifier",value:l[0]};continue}if(Gr.lastIndex=i,l=Gr.exec(e)){i=Gr.lastIndex,s=l[0],yield {type:"JSXString",value:l[0],closed:l[2]!==void 0};continue}break;case "JSXChildren":if(Yr.lastIndex=i,l=Yr.exec(e)){i=Yr.lastIndex,s=l[0],yield {type:"JSXText",value:l[0]};continue}switch(e[i]){case "<":p.push({tag:"JSXTag"}),i++,s="<",yield {type:"JSXPunctuator",value:"<"};continue;case "{":p.push({tag:"InterpolationInJSX",nesting:n.length}),i++,s="?InterpolationInJSX",d=false,yield {type:"JSXPunctuator",value:"{"};continue}}if(ro.lastIndex=i,l=ro.exec(e)){i=ro.lastIndex,yield {type:"WhiteSpace",value:l[0]};continue}if(On.lastIndex=i,l=On.exec(e)){i=On.lastIndex,d=false,ms.test(s)&&(s="?NoLineTerminatorHere"),yield {type:"LineTerminatorSequence",value:l[0]};continue}if(Hr.lastIndex=i,l=Hr.exec(e)){i=Hr.lastIndex,Tu.test(l[0])&&(d=false,ms.test(s)&&(s="?NoLineTerminatorHere")),yield {type:"MultiLineComment",value:l[0],closed:l[1]!==void 0};continue}if(eo.lastIndex=i,l=eo.exec(e)){i=eo.lastIndex,d=false,yield {type:"SingleLineComment",value:l[0]};continue}r=String.fromCodePoint(e.codePointAt(i)),i+=r.length,s=r,d=false,yield {type:u.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:r};}},"jsTokens");});function kn(e,t,n){let r=t-n;r=r<0?-r<<1|1:r<<1;do{let o=r&31;r>>>=5,r>0&&(o|=32),e.write(rf[o]);}while(r>0);return t}function of(e){let t=new yy,n=0,r=0,o=0,i=0;for(let s=0;s<e.length;s++){let c=e[s];if(s>0&&t.write(my),c.length===0)continue;let l=0;for(let u=0;u<c.length;u++){let f=c[u];u>0&&t.write(py),l=kn(t,f[0],l),f.length!==1&&(n=kn(t,f[1],n),r=kn(t,f[2],r),o=kn(t,f[3],o),f.length!==4&&(i=kn(t,f[4],i)));}}return t.flush()}var py,my,ef,rf,gy,tf,nf,yy,sf=ma(()=>{py=44,my=59,ef="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rf=new Uint8Array(64),gy=new Uint8Array(128);for(let e=0;e<ef.length;e++){let t=ef.charCodeAt(e);rf[e]=t,gy[t]=e;}a(kn,"encodeInteger");tf=1024*16,nf=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}},yy=class{static{a(this,"StringWriter");}constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(tf);}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===tf&&(this.out+=nf.decode(t),this.pos=0);}flush(){let{buffer:e,out:t,pos:n}=this;return n>0?t+nf.decode(e.subarray(0,n)):t}};a(of,"encode");});var uf={};_h(uf,{Bundle:()=>$s,SourceMap:()=>Mn,default:()=>Rn});function by(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof Buffer=="function"?e=>Buffer.from(e,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}function Sy(e){let t=e.split(`
2
- `),n=t.filter(i=>/^\t+/.test(i)),r=t.filter(i=>/^ {2,}/.test(i));if(n.length===0&&r.length===0)return null;if(n.length>=r.length)return " ";let o=r.reduce((i,s)=>{let c=/^ +/.exec(s)[0].length;return Math.min(c,i)},1/0);return new Array(o+1).join(" ")}function cf(e,t){let n=e.split(/[/\\]/),r=t.split(/[/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length){let o=n.length;for(;o--;)n[o]="..";}return n.concat(r).join("/")}function lf(e){return Ty.call(e)==="[object Object]"}function Ps(e){let t=e.split(`
3
- `),n=[];for(let r=0,o=0;r<t.length;r++)n.push(o),o+=t[r].length+1;return a(function(o){let i=0,s=n.length;for(;i<s;){let u=i+s>>1;o<n[u]?s=u:i=u+1;}let c=i-1,l=o-n[c];return {line:c,column:l}},"locate")}var uo,fo,wy,Mn,Ty,xy,ho,Nn,tn,Rn,af,$s,ff=ma(()=>{sf();uo=class e{static{a(this,"BitSet");}constructor(t){this.bits=t instanceof e?t.bits.slice():[];}add(t){this.bits[t>>5]|=1<<(t&31);}has(t){return !!(this.bits[t>>5]&1<<(t&31))}},fo=class e{static{a(this,"Chunk");}constructor(t,n,r){this.start=t,this.end=n,this.original=r,this.intro="",this.outro="",this.content=r,this.storeName=false,this.edited=false,this.previous=null,this.next=null;}appendLeft(t){this.outro+=t;}appendRight(t){this.intro=this.intro+t;}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let n=this;for(;n;)t(n),n=n.next;}eachPrevious(t){let n=this;for(;n;)t(n),n=n.previous;}edit(t,n,r){return this.content=t,r||(this.intro="",this.outro=""),this.storeName=n,this.edited=true,this}prependLeft(t){this.outro=t+this.outro;}prependRight(t){this.intro=t+this.intro;}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=false,this.edited=false);}split(t){let n=t-this.start,r=this.original.slice(0,n),o=this.original.slice(n);this.original=r;let i=new e(t,this.end,o);return i.outro=this.outro,this.outro="",this.end=t,this.edited?(i.edit("",false),this.content=""):this.content=r,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return true;let n=this.content.replace(t,"");if(n.length)return n!==this.content&&(this.split(this.start+n.length).edit("",void 0,true),this.edited&&this.edit(n,this.storeName,true)),true;if(this.edit("",void 0,true),this.intro=this.intro.replace(t,""),this.intro.length)return true}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return true;let n=this.content.replace(t,"");if(n.length){if(n!==this.content){let r=this.split(this.end-n.length);this.edited&&r.edit(n,this.storeName,true),this.edit("",void 0,true);}return true}else if(this.edit("",void 0,true),this.outro=this.outro.replace(t,""),this.outro.length)return true}};a(by,"getBtoa");wy=by(),Mn=class{static{a(this,"SourceMap");}constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=of(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList),typeof t.debugId<"u"&&(this.debugId=t.debugId);}toString(){return JSON.stringify(this)}toUrl(){return "data:application/json;charset=utf-8;base64,"+wy(this.toString())}};a(Sy,"guessIndent");a(cf,"getRelativePath");Ty=Object.prototype.toString;a(lf,"isObject");a(Ps,"getLocator");xy=/\w/,ho=class{static{a(this,"Mappings");}constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null;}addEdit(t,n,r,o){if(n.length){let i=n.length-1,s=n.indexOf(`
4
- `,0),c=-1;for(;s>=0&&i>s;){let u=[this.generatedCodeColumn,t,r.line,r.column];o>=0&&u.push(o),this.rawSegments.push(u),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,c=s,s=n.indexOf(`
5
- `,s+1);}let l=[this.generatedCodeColumn,t,r.line,r.column];o>=0&&l.push(o),this.rawSegments.push(l),this.advance(n.slice(c+1));}else this.pending&&(this.rawSegments.push(this.pending),this.advance(n));this.pending=null;}addUneditedChunk(t,n,r,o,i){let s=n.start,c=true,l=false;for(;s<n.end;){if(r[s]===`
6
- `)o.line+=1,o.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,c=true,l=false;else {if(this.hires||c||i.has(s)){let u=[this.generatedCodeColumn,t,o.line,o.column];this.hires==="boundary"?xy.test(r[s])?l||(this.rawSegments.push(u),l=true):(this.rawSegments.push(u),l=false):this.rawSegments.push(u);}o.column+=1,this.generatedCodeColumn+=1,c=false;}s+=1;}this.pending=null;}advance(t){if(!t)return;let n=t.split(`
7
- `);if(n.length>1){for(let r=0;r<n.length-1;r++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0;}this.generatedCodeColumn+=n[n.length-1].length;}},Nn=`
8
- `,tn={insertLeft:false,insertRight:false,storeName:false},Rn=class e{static{a(this,"MagicString");}constructor(t,n={}){let r=new fo(0,t.length,t);Object.defineProperties(this,{original:{writable:true,value:t},outro:{writable:true,value:""},intro:{writable:true,value:""},firstChunk:{writable:true,value:r},lastChunk:{writable:true,value:r},lastSearchedChunk:{writable:true,value:r},byStart:{writable:true,value:{}},byEnd:{writable:true,value:{}},filename:{writable:true,value:n.filename},indentExclusionRanges:{writable:true,value:n.indentExclusionRanges},sourcemapLocations:{writable:true,value:new uo},storedNames:{writable:true,value:{}},indentStr:{writable:true,value:void 0},ignoreList:{writable:true,value:n.ignoreList},offset:{writable:true,value:n.offset||0}}),this.byStart[0]=r,this.byEnd[t.length]=r;}addSourcemapLocation(t){this.sourcemapLocations.add(t);}append(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.outro+=t,this}appendLeft(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byEnd[t];return r?r.appendLeft(n):this.intro+=n,this}appendRight(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byStart[t];return r?r.appendRight(n):this.outro+=n,this}clone(){let t=new e(this.original,{filename:this.filename,offset:this.offset}),n=this.firstChunk,r=t.firstChunk=t.lastSearchedChunk=n.clone();for(;n;){t.byStart[r.start]=r,t.byEnd[r.end]=r;let o=n.next,i=o&&o.clone();i&&(r.next=i,i.previous=r,r=i),n=o;}return t.lastChunk=r,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new uo(this.sourcemapLocations),t.intro=this.intro,t.outro=this.outro,t}generateDecodedMap(t){t=t||{};let n=0,r=Object.keys(this.storedNames),o=new ho(t.hires),i=Ps(this.original);return this.intro&&o.advance(this.intro),this.firstChunk.eachNext(s=>{let c=i(s.start);s.intro.length&&o.advance(s.intro),s.edited?o.addEdit(n,s.content,c,s.storeName?r.indexOf(s.original):-1):o.addUneditedChunk(n,s,this.original,c,this.sourcemapLocations),s.outro.length&&o.advance(s.outro);}),this.outro&&o.advance(this.outro),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:[t.source?cf(t.file||"",t.source):t.file||""],sourcesContent:t.includeContent?[this.original]:void 0,names:r,mappings:o.raw,x_google_ignoreList:this.ignoreList?[n]:void 0}}generateMap(t){return new Mn(this.generateDecodedMap(t))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=Sy(this.original));}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(t,n){let r=/^[^\r\n]/gm;if(lf(t)&&(n=t,t=void 0),t===void 0&&(this._ensureindentStr(),t=this.indentStr||" "),t==="")return this;n=n||{};let o={};n.exclude&&(typeof n.exclude[0]=="number"?[n.exclude]:n.exclude).forEach(f=>{for(let h=f[0];h<f[1];h+=1)o[h]=true;});let i=n.indentStart!==false,s=a(u=>i?`${t}${u}`:(i=true,u),"replacer");this.intro=this.intro.replace(r,s);let c=0,l=this.firstChunk;for(;l;){let u=l.end;if(l.edited)o[c]||(l.content=l.content.replace(r,s),l.content.length&&(i=l.content[l.content.length-1]===`
9
- `));else for(c=l.start;c<u;){if(!o[c]){let f=this.original[c];f===`
10
- `?i=true:f!=="\r"&&i&&(i=false,c===l.start||(this._splitChunk(l,c),l=l.next),l.prependRight(t));}c+=1;}c=l.end,l=l.next;}return this.outro=this.outro.replace(r,s),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(t,n){return tn.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),tn.insertLeft=true),this.appendLeft(t,n)}insertRight(t,n){return tn.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),tn.insertRight=true),this.prependRight(t,n)}move(t,n,r){if(t=t+this.offset,n=n+this.offset,r=r+this.offset,r>=t&&r<=n)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(n),this._split(r);let o=this.byStart[t],i=this.byEnd[n],s=o.previous,c=i.next,l=this.byStart[r];if(!l&&i===this.lastChunk)return this;let u=l?l.previous:this.lastChunk;return s&&(s.next=c),c&&(c.previous=s),u&&(u.next=o),l&&(l.previous=i),o.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=o.previous,this.lastChunk.next=null),o.previous=u,i.next=l||null,u||(this.firstChunk=o),l||(this.lastChunk=i),this}overwrite(t,n,r,o){return o=o||{},this.update(t,n,r,{...o,overwrite:!o.contentOnly})}update(t,n,r,o){if(t=t+this.offset,n=n+this.offset,typeof r!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length;}if(n>this.original.length)throw new Error("end is out of bounds");if(t===n)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(t),this._split(n),o===true&&(tn.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),tn.storeName=true),o={storeName:true});let i=o!==void 0?o.storeName:false,s=o!==void 0?o.overwrite:false;if(i){let u=this.original.slice(t,n);Object.defineProperty(this.storedNames,u,{writable:true,value:true,enumerable:true});}let c=this.byStart[t],l=this.byEnd[n];if(c){let u=c;for(;u!==l;){if(u.next!==this.byStart[u.end])throw new Error("Cannot overwrite across a split point");u=u.next,u.edit("",false);}c.edit(r,i,!s);}else {let u=new fo(t,n,"").edit(r,i);l.next=u,u.previous=l;}return this}prepend(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this}prependLeft(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byEnd[t];return r?r.prependLeft(n):this.intro=n+this.intro,this}prependRight(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byStart[t];return r?r.prependRight(n):this.outro=n+this.outro,this}remove(t,n){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length;}if(t===n)return this;if(t<0||n>this.original.length)throw new Error("Character is out of bounds");if(t>n)throw new Error("end must be greater than start");this._split(t),this._split(n);let r=this.byStart[t];for(;r;)r.intro="",r.outro="",r.edit(""),r=n>r.end?this.byStart[r.end]:null;return this}reset(t,n){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length;}if(t===n)return this;if(t<0||n>this.original.length)throw new Error("Character is out of bounds");if(t>n)throw new Error("end must be greater than start");this._split(t),this._split(n);let r=this.byStart[t];for(;r;)r.reset(),r=n>r.end?this.byStart[r.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let t=this.outro.lastIndexOf(Nn);if(t!==-1)return this.outro.substr(t+1);let n=this.outro,r=this.lastChunk;do{if(r.outro.length>0){if(t=r.outro.lastIndexOf(Nn),t!==-1)return r.outro.substr(t+1)+n;n=r.outro+n;}if(r.content.length>0){if(t=r.content.lastIndexOf(Nn),t!==-1)return r.content.substr(t+1)+n;n=r.content+n;}if(r.intro.length>0){if(t=r.intro.lastIndexOf(Nn),t!==-1)return r.intro.substr(t+1)+n;n=r.intro+n;}}while(r=r.previous);return t=this.intro.lastIndexOf(Nn),t!==-1?this.intro.substr(t+1)+n:this.intro+n}slice(t=0,n=this.original.length-this.offset){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length;}let r="",o=this.firstChunk;for(;o&&(o.start>t||o.end<=t);){if(o.start<n&&o.end>=n)return r;o=o.next;}if(o&&o.edited&&o.start!==t)throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);let i=o;for(;o;){o.intro&&(i!==o||o.start===t)&&(r+=o.intro);let s=o.start<n&&o.end>=n;if(s&&o.edited&&o.end!==n)throw new Error(`Cannot use replaced character ${n} as slice end anchor.`);let c=i===o?t-o.start:0,l=s?o.content.length+n-o.end:o.content.length;if(r+=o.content.slice(c,l),o.outro&&(!s||o.end===n)&&(r+=o.outro),s)break;o=o.next;}return r}snip(t,n){let r=this.clone();return r.remove(0,t),r.remove(n,r.original.length),r}_split(t){if(this.byStart[t]||this.byEnd[t])return;let n=this.lastSearchedChunk,r=n,o=t>n.end;for(;n;){if(n.contains(t))return this._splitChunk(n,t);if(n=o?this.byStart[n.end]:this.byEnd[n.start],n===r)return;r=n;}}_splitChunk(t,n){if(t.edited&&t.content.length){let o=Ps(this.original)(n);throw new Error(`Cannot split a chunk that has already been edited (${o.line}:${o.column} \u2013 "${t.original}")`)}let r=t.split(n);return this.byEnd[n]=t,this.byStart[n]=r,this.byEnd[r.end]=r,t===this.lastChunk&&(this.lastChunk=r),this.lastSearchedChunk=t,true}toString(){let t=this.intro,n=this.firstChunk;for(;n;)t+=n.toString(),n=n.next;return t+this.outro}isEmpty(){let t=this.firstChunk;do if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return false;while(t=t.next);return true}length(){let t=this.firstChunk,n=0;do n+=t.intro.length+t.content.length+t.outro.length;while(t=t.next);return n}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimEndAborted(t){let n=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(n,""),this.outro.length)return true;let r=this.lastChunk;do{let o=r.end,i=r.trimEnd(n);if(r.end!==o&&(this.lastChunk===r&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return true;r=r.previous;}while(r);return false}trimEnd(t){return this.trimEndAborted(t),this}trimStartAborted(t){let n=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(n,""),this.intro.length)return true;let r=this.firstChunk;do{let o=r.end,i=r.trimStart(n);if(r.end!==o&&(r===this.lastChunk&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return true;r=r.next;}while(r);return false}trimStart(t){return this.trimStartAborted(t),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(t,n){function r(i,s){return typeof n=="string"?n.replace(/\$(\$|&|\d+)/g,(c,l)=>l==="$"?"$":l==="&"?i[0]:+l<i.length?i[+l]:`$${l}`):n(...i,i.index,s,i.groups)}a(r,"getReplacement");function o(i,s){let c,l=[];for(;c=i.exec(s);)l.push(c);return l}if(a(o,"matchAll"),t.global)o(t,this.original).forEach(s=>{if(s.index!=null){let c=r(s,this.original);c!==s[0]&&this.overwrite(s.index,s.index+s[0].length,c);}});else {let i=this.original.match(t);if(i&&i.index!=null){let s=r(i,this.original);s!==i[0]&&this.overwrite(i.index,i.index+i[0].length,s);}}return this}_replaceString(t,n){let{original:r}=this,o=r.indexOf(t);return o!==-1&&(typeof n=="function"&&(n=n(t,o,r)),t!==n&&this.overwrite(o,o+t.length,n)),this}replace(t,n){return typeof t=="string"?this._replaceString(t,n):this._replaceRegexp(t,n)}_replaceAllString(t,n){let{original:r}=this,o=t.length;for(let i=r.indexOf(t);i!==-1;i=r.indexOf(t,i+o)){let s=r.slice(i,i+o),c=n;typeof n=="function"&&(c=n(s,i,r)),s!==c&&this.overwrite(i,i+o,c);}return this}replaceAll(t,n){if(typeof t=="string")return this._replaceAllString(t,n);if(!t.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(t,n)}},af=Object.prototype.hasOwnProperty,$s=class e{static{a(this,"Bundle");}constructor(t={}){this.intro=t.intro||"",this.separator=t.separator!==void 0?t.separator:`
11
- `,this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={};}addSource(t){if(t instanceof Rn)return this.addSource({content:t,filename:t.filename,separator:this.separator});if(!lf(t)||!t.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","ignoreList","indentExclusionRanges","separator"].forEach(n=>{af.call(t,n)||(t[n]=t.content[n]);}),t.separator===void 0&&(t.separator=this.separator),t.filename)if(!af.call(this.uniqueSourceIndexByFilename,t.filename))this.uniqueSourceIndexByFilename[t.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:t.filename,content:t.content.original});else {let n=this.uniqueSources[this.uniqueSourceIndexByFilename[t.filename]];if(t.content.original!==n.content)throw new Error(`Illegal source: same filename (${t.filename}), different contents`)}return this.sources.push(t),this}append(t,n){return this.addSource({content:new Rn(t),separator:n&&n.separator||""}),this}clone(){let t=new e({intro:this.intro,separator:this.separator});return this.sources.forEach(n=>{t.addSource({filename:n.filename,content:n.content.clone(),separator:n.separator});}),t}generateDecodedMap(t={}){let n=[],r;this.sources.forEach(i=>{Object.keys(i.content.storedNames).forEach(s=>{~n.indexOf(s)||n.push(s);});});let o=new ho(t.hires);return this.intro&&o.advance(this.intro),this.sources.forEach((i,s)=>{s>0&&o.advance(this.separator);let c=i.filename?this.uniqueSourceIndexByFilename[i.filename]:-1,l=i.content,u=Ps(l.original);l.intro&&o.advance(l.intro),l.firstChunk.eachNext(f=>{let h=u(f.start);f.intro.length&&o.advance(f.intro),i.filename?f.edited?o.addEdit(c,f.content,h,f.storeName?n.indexOf(f.original):-1):o.addUneditedChunk(c,f,l.original,h,l.sourcemapLocations):o.advance(f.content),f.outro.length&&o.advance(f.outro);}),l.outro&&o.advance(l.outro),i.ignoreList&&c!==-1&&(r===void 0&&(r=[]),r.push(c));}),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:this.uniqueSources.map(i=>t.file?cf(t.file,i.filename):i.filename),sourcesContent:this.uniqueSources.map(i=>t.includeContent?i.content:null),names:n,mappings:o.raw,x_google_ignoreList:r}}generateMap(t){return new Mn(this.generateDecodedMap(t))}getIndentString(){let t={};return this.sources.forEach(n=>{let r=n.content._getRawIndentString();r!==null&&(t[r]||(t[r]=0),t[r]+=1);}),Object.keys(t).sort((n,r)=>t[n]-t[r])[0]||" "}indent(t){if(arguments.length||(t=this.getIndentString()),t==="")return this;let n=!this.intro||this.intro.slice(-1)===`
1
+ 'use strict';var zod=require('zod');var Pf=Object.create;var Cn=Object.defineProperty;var jf=Object.getOwnPropertyDescriptor;var Rf=Object.getOwnPropertyNames;var Ff=Object.getPrototypeOf,Df=Object.prototype.hasOwnProperty;var a=(e,t)=>Cn(e,"name",{value:t,configurable:true});var ks=(e,t)=>()=>(e&&(t=e(e=0)),t);var Yt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),$s=(e,t)=>{for(var n in t)Cn(e,n,{get:t[n],enumerable:true});},Lf=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Rf(t))!Df.call(e,o)&&o!==n&&Cn(e,o,{get:()=>t[o],enumerable:!(r=jf(t,o))||r.enumerable});return e};var qf=(e,t,n)=>(n=e!=null?Pf(Ff(e)):{},Lf(Cn(n,"default",{value:e,enumerable:true}),e));function Sn(e,t,n){let r=t-n;r=r<0?-r<<1|1:r<<1;do{let o=r&31;r>>>=5,r>0&&(o|=32),e.write(Su[o]);}while(r>0);return t}function Tu(e){let t=new Rg,n=0,r=0,o=0,i=0;for(let s=0;s<e.length;s++){let c=e[s];if(s>0&&t.write(Pg),c.length===0)continue;let u=0;for(let l=0;l<c.length;l++){let f=c[l];l>0&&t.write(Ag),u=Sn(t,f[0],u),f.length!==1&&(n=Sn(t,f[1],n),r=Sn(t,f[2],r),o=Sn(t,f[3],o),f.length!==4&&(i=Sn(t,f[4],i)));}}return t.flush()}var Ag,Pg,bu,Su,jg,wu,vu,Rg,Eu=ks(()=>{Ag=44,Pg=59,bu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Su=new Uint8Array(64),jg=new Uint8Array(128);for(let e=0;e<bu.length;e++){let t=bu.charCodeAt(e);Su[e]=t,jg[t]=e;}a(Sn,"encodeInteger");wu=1024*16,vu=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}},Rg=class{static{a(this,"StringWriter");}constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(wu);}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===wu&&(this.out+=vu.decode(t),this.pos=0);}flush(){let{buffer:e,out:t,pos:n}=this;return n>0?t+vu.decode(e.subarray(0,n)):t}};a(Tu,"encode");});var Ou={};$s(Ou,{Bundle:()=>Ki,SourceMap:()=>En,default:()=>xn});function Fg(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof Buffer=="function"?e=>Buffer.from(e,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}function Lg(e){let t=e.split(`
2
+ `),n=t.filter(i=>/^\t+/.test(i)),r=t.filter(i=>/^ {2,}/.test(i));if(n.length===0&&r.length===0)return null;if(n.length>=r.length)return " ";let o=r.reduce((i,s)=>{let c=/^ +/.exec(s)[0].length;return Math.min(c,i)},1/0);return new Array(o+1).join(" ")}function Mu(e,t){let n=e.split(/[/\\]/),r=t.split(/[/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length){let o=n.length;for(;o--;)n[o]="..";}return n.concat(r).join("/")}function _u(e){return qg.call(e)==="[object Object]"}function Vi(e){let t=e.split(`
3
+ `),n=[];for(let r=0,o=0;r<t.length;r++)n.push(o),o+=t[r].length+1;return a(function(o){let i=0,s=n.length;for(;i<s;){let l=i+s>>1;o<n[l]?s=l:i=l+1;}let c=i-1,u=o-n[c];return {line:c,column:u}},"locate")}var kr,$r,Dg,En,qg,Bg,Nr,Tn,zt,xn,xu,Ki,Iu=ks(()=>{Eu();kr=class e{static{a(this,"BitSet");}constructor(t){this.bits=t instanceof e?t.bits.slice():[];}add(t){this.bits[t>>5]|=1<<(t&31);}has(t){return !!(this.bits[t>>5]&1<<(t&31))}},$r=class e{static{a(this,"Chunk");}constructor(t,n,r){this.start=t,this.end=n,this.original=r,this.intro="",this.outro="",this.content=r,this.storeName=false,this.edited=false,this.previous=null,this.next=null;}appendLeft(t){this.outro+=t;}appendRight(t){this.intro=this.intro+t;}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let n=this;for(;n;)t(n),n=n.next;}eachPrevious(t){let n=this;for(;n;)t(n),n=n.previous;}edit(t,n,r){return this.content=t,r||(this.intro="",this.outro=""),this.storeName=n,this.edited=true,this}prependLeft(t){this.outro=t+this.outro;}prependRight(t){this.intro=t+this.intro;}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=false,this.edited=false);}split(t){let n=t-this.start,r=this.original.slice(0,n),o=this.original.slice(n);this.original=r;let i=new e(t,this.end,o);return i.outro=this.outro,this.outro="",this.end=t,this.edited?(i.edit("",false),this.content=""):this.content=r,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return true;let n=this.content.replace(t,"");if(n.length)return n!==this.content&&(this.split(this.start+n.length).edit("",void 0,true),this.edited&&this.edit(n,this.storeName,true)),true;if(this.edit("",void 0,true),this.intro=this.intro.replace(t,""),this.intro.length)return true}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return true;let n=this.content.replace(t,"");if(n.length){if(n!==this.content){let r=this.split(this.end-n.length);this.edited&&r.edit(n,this.storeName,true),this.edit("",void 0,true);}return true}else if(this.edit("",void 0,true),this.outro=this.outro.replace(t,""),this.outro.length)return true}};a(Fg,"getBtoa");Dg=Fg(),En=class{static{a(this,"SourceMap");}constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=Tu(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList),typeof t.debugId<"u"&&(this.debugId=t.debugId);}toString(){return JSON.stringify(this)}toUrl(){return "data:application/json;charset=utf-8;base64,"+Dg(this.toString())}};a(Lg,"guessIndent");a(Mu,"getRelativePath");qg=Object.prototype.toString;a(_u,"isObject");a(Vi,"getLocator");Bg=/\w/,Nr=class{static{a(this,"Mappings");}constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null;}addEdit(t,n,r,o){if(n.length){let i=n.length-1,s=n.indexOf(`
4
+ `,0),c=-1;for(;s>=0&&i>s;){let l=[this.generatedCodeColumn,t,r.line,r.column];o>=0&&l.push(o),this.rawSegments.push(l),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,c=s,s=n.indexOf(`
5
+ `,s+1);}let u=[this.generatedCodeColumn,t,r.line,r.column];o>=0&&u.push(o),this.rawSegments.push(u),this.advance(n.slice(c+1));}else this.pending&&(this.rawSegments.push(this.pending),this.advance(n));this.pending=null;}addUneditedChunk(t,n,r,o,i){let s=n.start,c=true,u=false;for(;s<n.end;){if(r[s]===`
6
+ `)o.line+=1,o.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,c=true,u=false;else {if(this.hires||c||i.has(s)){let l=[this.generatedCodeColumn,t,o.line,o.column];this.hires==="boundary"?Bg.test(r[s])?u||(this.rawSegments.push(l),u=true):(this.rawSegments.push(l),u=false):this.rawSegments.push(l);}o.column+=1,this.generatedCodeColumn+=1,c=false;}s+=1;}this.pending=null;}advance(t){if(!t)return;let n=t.split(`
7
+ `);if(n.length>1){for(let r=0;r<n.length-1;r++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0;}this.generatedCodeColumn+=n[n.length-1].length;}},Tn=`
8
+ `,zt={insertLeft:false,insertRight:false,storeName:false},xn=class e{static{a(this,"MagicString");}constructor(t,n={}){let r=new $r(0,t.length,t);Object.defineProperties(this,{original:{writable:true,value:t},outro:{writable:true,value:""},intro:{writable:true,value:""},firstChunk:{writable:true,value:r},lastChunk:{writable:true,value:r},lastSearchedChunk:{writable:true,value:r},byStart:{writable:true,value:{}},byEnd:{writable:true,value:{}},filename:{writable:true,value:n.filename},indentExclusionRanges:{writable:true,value:n.indentExclusionRanges},sourcemapLocations:{writable:true,value:new kr},storedNames:{writable:true,value:{}},indentStr:{writable:true,value:void 0},ignoreList:{writable:true,value:n.ignoreList},offset:{writable:true,value:n.offset||0}}),this.byStart[0]=r,this.byEnd[t.length]=r;}addSourcemapLocation(t){this.sourcemapLocations.add(t);}append(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.outro+=t,this}appendLeft(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byEnd[t];return r?r.appendLeft(n):this.intro+=n,this}appendRight(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byStart[t];return r?r.appendRight(n):this.outro+=n,this}clone(){let t=new e(this.original,{filename:this.filename,offset:this.offset}),n=this.firstChunk,r=t.firstChunk=t.lastSearchedChunk=n.clone();for(;n;){t.byStart[r.start]=r,t.byEnd[r.end]=r;let o=n.next,i=o&&o.clone();i&&(r.next=i,i.previous=r,r=i),n=o;}return t.lastChunk=r,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new kr(this.sourcemapLocations),t.intro=this.intro,t.outro=this.outro,t}generateDecodedMap(t){t=t||{};let n=0,r=Object.keys(this.storedNames),o=new Nr(t.hires),i=Vi(this.original);return this.intro&&o.advance(this.intro),this.firstChunk.eachNext(s=>{let c=i(s.start);s.intro.length&&o.advance(s.intro),s.edited?o.addEdit(n,s.content,c,s.storeName?r.indexOf(s.original):-1):o.addUneditedChunk(n,s,this.original,c,this.sourcemapLocations),s.outro.length&&o.advance(s.outro);}),this.outro&&o.advance(this.outro),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:[t.source?Mu(t.file||"",t.source):t.file||""],sourcesContent:t.includeContent?[this.original]:void 0,names:r,mappings:o.raw,x_google_ignoreList:this.ignoreList?[n]:void 0}}generateMap(t){return new En(this.generateDecodedMap(t))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=Lg(this.original));}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(t,n){let r=/^[^\r\n]/gm;if(_u(t)&&(n=t,t=void 0),t===void 0&&(this._ensureindentStr(),t=this.indentStr||" "),t==="")return this;n=n||{};let o={};n.exclude&&(typeof n.exclude[0]=="number"?[n.exclude]:n.exclude).forEach(f=>{for(let h=f[0];h<f[1];h+=1)o[h]=true;});let i=n.indentStart!==false,s=a(l=>i?`${t}${l}`:(i=true,l),"replacer");this.intro=this.intro.replace(r,s);let c=0,u=this.firstChunk;for(;u;){let l=u.end;if(u.edited)o[c]||(u.content=u.content.replace(r,s),u.content.length&&(i=u.content[u.content.length-1]===`
9
+ `));else for(c=u.start;c<l;){if(!o[c]){let f=this.original[c];f===`
10
+ `?i=true:f!=="\r"&&i&&(i=false,c===u.start||(this._splitChunk(u,c),u=u.next),u.prependRight(t));}c+=1;}c=u.end,u=u.next;}return this.outro=this.outro.replace(r,s),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(t,n){return zt.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),zt.insertLeft=true),this.appendLeft(t,n)}insertRight(t,n){return zt.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),zt.insertRight=true),this.prependRight(t,n)}move(t,n,r){if(t=t+this.offset,n=n+this.offset,r=r+this.offset,r>=t&&r<=n)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(n),this._split(r);let o=this.byStart[t],i=this.byEnd[n],s=o.previous,c=i.next,u=this.byStart[r];if(!u&&i===this.lastChunk)return this;let l=u?u.previous:this.lastChunk;return s&&(s.next=c),c&&(c.previous=s),l&&(l.next=o),u&&(u.previous=i),o.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=o.previous,this.lastChunk.next=null),o.previous=l,i.next=u||null,l||(this.firstChunk=o),u||(this.lastChunk=i),this}overwrite(t,n,r,o){return o=o||{},this.update(t,n,r,{...o,overwrite:!o.contentOnly})}update(t,n,r,o){if(t=t+this.offset,n=n+this.offset,typeof r!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length;}if(n>this.original.length)throw new Error("end is out of bounds");if(t===n)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(t),this._split(n),o===true&&(zt.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),zt.storeName=true),o={storeName:true});let i=o!==void 0?o.storeName:false,s=o!==void 0?o.overwrite:false;if(i){let l=this.original.slice(t,n);Object.defineProperty(this.storedNames,l,{writable:true,value:true,enumerable:true});}let c=this.byStart[t],u=this.byEnd[n];if(c){let l=c;for(;l!==u;){if(l.next!==this.byStart[l.end])throw new Error("Cannot overwrite across a split point");l=l.next,l.edit("",false);}c.edit(r,i,!s);}else {let l=new $r(t,n,"").edit(r,i);u.next=l,l.previous=u;}return this}prepend(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this}prependLeft(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byEnd[t];return r?r.prependLeft(n):this.intro=n+this.intro,this}prependRight(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byStart[t];return r?r.prependRight(n):this.outro=n+this.outro,this}remove(t,n){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length;}if(t===n)return this;if(t<0||n>this.original.length)throw new Error("Character is out of bounds");if(t>n)throw new Error("end must be greater than start");this._split(t),this._split(n);let r=this.byStart[t];for(;r;)r.intro="",r.outro="",r.edit(""),r=n>r.end?this.byStart[r.end]:null;return this}reset(t,n){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length;}if(t===n)return this;if(t<0||n>this.original.length)throw new Error("Character is out of bounds");if(t>n)throw new Error("end must be greater than start");this._split(t),this._split(n);let r=this.byStart[t];for(;r;)r.reset(),r=n>r.end?this.byStart[r.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let t=this.outro.lastIndexOf(Tn);if(t!==-1)return this.outro.substr(t+1);let n=this.outro,r=this.lastChunk;do{if(r.outro.length>0){if(t=r.outro.lastIndexOf(Tn),t!==-1)return r.outro.substr(t+1)+n;n=r.outro+n;}if(r.content.length>0){if(t=r.content.lastIndexOf(Tn),t!==-1)return r.content.substr(t+1)+n;n=r.content+n;}if(r.intro.length>0){if(t=r.intro.lastIndexOf(Tn),t!==-1)return r.intro.substr(t+1)+n;n=r.intro+n;}}while(r=r.previous);return t=this.intro.lastIndexOf(Tn),t!==-1?this.intro.substr(t+1)+n:this.intro+n}slice(t=0,n=this.original.length-this.offset){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length;}let r="",o=this.firstChunk;for(;o&&(o.start>t||o.end<=t);){if(o.start<n&&o.end>=n)return r;o=o.next;}if(o&&o.edited&&o.start!==t)throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);let i=o;for(;o;){o.intro&&(i!==o||o.start===t)&&(r+=o.intro);let s=o.start<n&&o.end>=n;if(s&&o.edited&&o.end!==n)throw new Error(`Cannot use replaced character ${n} as slice end anchor.`);let c=i===o?t-o.start:0,u=s?o.content.length+n-o.end:o.content.length;if(r+=o.content.slice(c,u),o.outro&&(!s||o.end===n)&&(r+=o.outro),s)break;o=o.next;}return r}snip(t,n){let r=this.clone();return r.remove(0,t),r.remove(n,r.original.length),r}_split(t){if(this.byStart[t]||this.byEnd[t])return;let n=this.lastSearchedChunk,r=n,o=t>n.end;for(;n;){if(n.contains(t))return this._splitChunk(n,t);if(n=o?this.byStart[n.end]:this.byEnd[n.start],n===r)return;r=n;}}_splitChunk(t,n){if(t.edited&&t.content.length){let o=Vi(this.original)(n);throw new Error(`Cannot split a chunk that has already been edited (${o.line}:${o.column} \u2013 "${t.original}")`)}let r=t.split(n);return this.byEnd[n]=t,this.byStart[n]=r,this.byEnd[r.end]=r,t===this.lastChunk&&(this.lastChunk=r),this.lastSearchedChunk=t,true}toString(){let t=this.intro,n=this.firstChunk;for(;n;)t+=n.toString(),n=n.next;return t+this.outro}isEmpty(){let t=this.firstChunk;do if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return false;while(t=t.next);return true}length(){let t=this.firstChunk,n=0;do n+=t.intro.length+t.content.length+t.outro.length;while(t=t.next);return n}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimEndAborted(t){let n=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(n,""),this.outro.length)return true;let r=this.lastChunk;do{let o=r.end,i=r.trimEnd(n);if(r.end!==o&&(this.lastChunk===r&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return true;r=r.previous;}while(r);return false}trimEnd(t){return this.trimEndAborted(t),this}trimStartAborted(t){let n=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(n,""),this.intro.length)return true;let r=this.firstChunk;do{let o=r.end,i=r.trimStart(n);if(r.end!==o&&(r===this.lastChunk&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return true;r=r.next;}while(r);return false}trimStart(t){return this.trimStartAborted(t),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(t,n){function r(i,s){return typeof n=="string"?n.replace(/\$(\$|&|\d+)/g,(c,u)=>u==="$"?"$":u==="&"?i[0]:+u<i.length?i[+u]:`$${u}`):n(...i,i.index,s,i.groups)}a(r,"getReplacement");function o(i,s){let c,u=[];for(;c=i.exec(s);)u.push(c);return u}if(a(o,"matchAll"),t.global)o(t,this.original).forEach(s=>{if(s.index!=null){let c=r(s,this.original);c!==s[0]&&this.overwrite(s.index,s.index+s[0].length,c);}});else {let i=this.original.match(t);if(i&&i.index!=null){let s=r(i,this.original);s!==i[0]&&this.overwrite(i.index,i.index+i[0].length,s);}}return this}_replaceString(t,n){let{original:r}=this,o=r.indexOf(t);return o!==-1&&(typeof n=="function"&&(n=n(t,o,r)),t!==n&&this.overwrite(o,o+t.length,n)),this}replace(t,n){return typeof t=="string"?this._replaceString(t,n):this._replaceRegexp(t,n)}_replaceAllString(t,n){let{original:r}=this,o=t.length;for(let i=r.indexOf(t);i!==-1;i=r.indexOf(t,i+o)){let s=r.slice(i,i+o),c=n;typeof n=="function"&&(c=n(s,i,r)),s!==c&&this.overwrite(i,i+o,c);}return this}replaceAll(t,n){if(typeof t=="string")return this._replaceAllString(t,n);if(!t.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(t,n)}},xu=Object.prototype.hasOwnProperty,Ki=class e{static{a(this,"Bundle");}constructor(t={}){this.intro=t.intro||"",this.separator=t.separator!==void 0?t.separator:`
11
+ `,this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={};}addSource(t){if(t instanceof xn)return this.addSource({content:t,filename:t.filename,separator:this.separator});if(!_u(t)||!t.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","ignoreList","indentExclusionRanges","separator"].forEach(n=>{xu.call(t,n)||(t[n]=t.content[n]);}),t.separator===void 0&&(t.separator=this.separator),t.filename)if(!xu.call(this.uniqueSourceIndexByFilename,t.filename))this.uniqueSourceIndexByFilename[t.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:t.filename,content:t.content.original});else {let n=this.uniqueSources[this.uniqueSourceIndexByFilename[t.filename]];if(t.content.original!==n.content)throw new Error(`Illegal source: same filename (${t.filename}), different contents`)}return this.sources.push(t),this}append(t,n){return this.addSource({content:new xn(t),separator:n&&n.separator||""}),this}clone(){let t=new e({intro:this.intro,separator:this.separator});return this.sources.forEach(n=>{t.addSource({filename:n.filename,content:n.content.clone(),separator:n.separator});}),t}generateDecodedMap(t={}){let n=[],r;this.sources.forEach(i=>{Object.keys(i.content.storedNames).forEach(s=>{~n.indexOf(s)||n.push(s);});});let o=new Nr(t.hires);return this.intro&&o.advance(this.intro),this.sources.forEach((i,s)=>{s>0&&o.advance(this.separator);let c=i.filename?this.uniqueSourceIndexByFilename[i.filename]:-1,u=i.content,l=Vi(u.original);u.intro&&o.advance(u.intro),u.firstChunk.eachNext(f=>{let h=l(f.start);f.intro.length&&o.advance(f.intro),i.filename?f.edited?o.addEdit(c,f.content,h,f.storeName?n.indexOf(f.original):-1):o.addUneditedChunk(c,f,u.original,h,u.sourcemapLocations):o.advance(f.content),f.outro.length&&o.advance(f.outro);}),u.outro&&o.advance(u.outro),i.ignoreList&&c!==-1&&(r===void 0&&(r=[]),r.push(c));}),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:this.uniqueSources.map(i=>t.file?Mu(t.file,i.filename):i.filename),sourcesContent:this.uniqueSources.map(i=>t.includeContent?i.content:null),names:n,mappings:o.raw,x_google_ignoreList:r}}generateMap(t){return new En(this.generateDecodedMap(t))}getIndentString(){let t={};return this.sources.forEach(n=>{let r=n.content._getRawIndentString();r!==null&&(t[r]||(t[r]=0),t[r]+=1);}),Object.keys(t).sort((n,r)=>t[n]-t[r])[0]||" "}indent(t){if(arguments.length||(t=this.getIndentString()),t==="")return this;let n=!this.intro||this.intro.slice(-1)===`
12
12
  `;return this.sources.forEach((r,o)=>{let i=r.separator!==void 0?r.separator:this.separator,s=n||o>0&&/\r?\n$/.test(i);r.content.indent(t,{exclude:r.indentExclusionRanges,indentStart:s}),n=r.content.lastChar()===`
13
- `;}),this.intro&&(this.intro=t+this.intro.replace(/^[^\n]/gm,(r,o)=>o>0?t+r:r)),this}prepend(t){return this.intro=t+this.intro,this}toString(){let t=this.sources.map((n,r)=>{let o=n.separator!==void 0?n.separator:this.separator;return (r>0?o:"")+n.content.toString()}).join("");return this.intro+t}isEmpty(){return !(this.intro.length&&this.intro.trim()||this.sources.some(t=>!t.content.isEmpty()))}length(){return this.sources.reduce((t,n)=>t+n.content.length(),this.intro.length)}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimStart(t){let n=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(n,""),!this.intro){let r,o=0;do if(r=this.sources[o++],!r)break;while(!r.content.trimStartAborted(t))}return this}trimEnd(t){let n=new RegExp((t||"\\s")+"+$"),r,o=this.sources.length-1;do if(r=this.sources[o--],!r){this.intro=this.intro.replace(n,"");break}while(!r.content.trimEndAborted(t));return this}};});var ph=Wt(dh=>{Object.defineProperty(dh,"__esModule",{value:true});});var gh=Wt(mh=>{Object.defineProperty(mh,"__esModule",{value:true});});var bh=Wt(yh=>{Object.defineProperty(yh,"__esModule",{value:true});});var Sh=Wt(wh=>{Object.defineProperty(wh,"__esModule",{value:true});});var Th=Wt(ye=>{var Nw=ye&&ye.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:true,get:a(function(){return t[n]},"get")}),Object.defineProperty(e,r,o);}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n];})),vo=ye&&ye.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Nw(t,e,n);};Object.defineProperty(ye,"__esModule",{value:true});ye.expectTypeOf=void 0;vo(ph(),ye);vo(gh(),ye);vo(bh(),ye);vo(Sh(),ye);var be=a(()=>true,"fn"),Mw=a(e=>{let t=["parameters","returns","resolves","not","items","constructorParameters","thisParameter","instance","guards","asserts","branded"],n={toBeAny:be,toBeUnknown:be,toBeNever:be,toBeFunction:be,toBeObject:be,toBeArray:be,toBeString:be,toBeNumber:be,toBeBoolean:be,toBeVoid:be,toBeSymbol:be,toBeNull:be,toBeUndefined:be,toBeNullable:be,toBeBigInt:be,toMatchTypeOf:be,toEqualTypeOf:be,toBeConstructibleWith:be,toMatchObjectType:be,toExtend:be,map:ye.expectTypeOf,toBeCallableWith:ye.expectTypeOf,extract:ye.expectTypeOf,exclude:ye.expectTypeOf,pick:ye.expectTypeOf,omit:ye.expectTypeOf,toHaveProperty:ye.expectTypeOf,parameter:ye.expectTypeOf};return t.forEach(o=>Object.defineProperty(n,o,{get:a(()=>(0, ye.expectTypeOf)({}),"get")})),n},"expectTypeOf");ye.expectTypeOf=Mw;});var Ph={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]},$h=Object.entries(Ph);function _o(e){return String(e)}a(_o,"a");_o.open="";_o.close="";function ya(e=false){let t=typeof process<"u"?process:void 0,n=t?.env||{},r=t?.argv||[];return !("NO_COLOR"in n||r.includes("--no-color"))&&("FORCE_COLOR"in n||r.includes("--color")||t?.platform==="win32"||e&&n.TERM!=="dumb"||"CI"in n)||typeof window<"u"&&!!window.chrome}a(ya,"C");function ba(e=false){let t=ya(e),n=a((s,c,l,u)=>{let f="",h=0;do f+=s.substring(h,u)+l,h=u+c.length,u=s.indexOf(c,h);while(~u);return f+s.substring(h)},"i"),r=a((s,c,l=s)=>{let u=a(f=>{let h=String(f),m=h.indexOf(c,s.length);return ~m?s+n(h,c,l,m)+c:s+h+c},"o");return u.open=s,u.close=c,u},"g"),o={isColorSupported:t},i=a(s=>`\x1B[${s}m`,"d");for(let[s,c]of $h)o[s]=t?r(i(c[0]),i(c[1]),c[2]):_o;return o}a(ba,"p");var kh=process.env.FORCE_TTY!==void 0||tty.isatty(1);var ue=ba(kh);function Na(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(r){if(r!=="default"&&!(r in e)){var o=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,o.get?o:{enumerable:true,get:a(function(){return n[r]},"get")});}});}),Object.freeze(e)}a(Na,"_mergeNamespaces");function Nh(e,t){let n=Object.keys(e),r=t===null?n:n.sort(t);if(Object.getOwnPropertySymbols)for(let o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&r.push(o);return r}a(Nh,"getKeysOfEnumerableProperties");function un(e,t,n,r,o,i,s=": "){let c="",l=0,u=e.next();if(!u.done){c+=t.spacingOuter;let f=n+t.indent;for(;!u.done;){if(c+=f,l++===t.maxWidth){c+="\u2026";break}let h=i(u.value[0],t,f,r,o),m=i(u.value[1],t,f,r,o);c+=h+s+m,u=e.next(),u.done?t.min||(c+=","):c+=`,${t.spacingInner}`;}c+=t.spacingOuter+n;}return c}a(un,"printIteratorEntries");function $o(e,t,n,r,o,i){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+="\u2026";break}s+=i(l.value,t,u,r,o),l=e.next(),l.done?t.min||(s+=","):s+=`,${t.spacingInner}`;}s+=t.spacingOuter+n;}return s}a($o,"printIteratorValues");function Vn(e,t,n,r,o,i){let s="";e=e instanceof ArrayBuffer?new DataView(e):e;let c=a(u=>u instanceof DataView,"isDataView"),l=c(e)?e.byteLength:e.length;if(l>0){s+=t.spacingOuter;let u=n+t.indent;for(let f=0;f<l;f++){if(s+=u,f===t.maxWidth){s+="\u2026";break}(c(e)||f in e)&&(s+=i(c(e)?e.getInt8(f):e[f],t,u,r,o)),f<l-1?s+=`,${t.spacingInner}`:t.min||(s+=",");}s+=t.spacingOuter+n;}return s}a(Vn,"printListItems");function Ao(e,t,n,r,o,i){let s="",c=Nh(e,t.compareKeys);if(c.length>0){s+=t.spacingOuter;let l=n+t.indent;for(let u=0;u<c.length;u++){let f=c[u],h=i(f,t,l,r,o),m=i(e[f],t,l,r,o);s+=`${l+h}: ${m}`,u<c.length-1?s+=`,${t.spacingInner}`:t.min||(s+=",");}s+=t.spacingOuter+n;}return s}a(Ao,"printObjectProperties");var Mh=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,zn=" ",Rh=a((e,t,n,r,o,i)=>{let s=e.toString();if(s==="ArrayContaining"||s==="ArrayNotContaining")return ++r>t.maxDepth?`[${s}]`:`${s+zn}[${Vn(e.sample,t,n,r,o,i)}]`;if(s==="ObjectContaining"||s==="ObjectNotContaining")return ++r>t.maxDepth?`[${s}]`:`${s+zn}{${Ao(e.sample,t,n,r,o,i)}}`;if(s==="StringMatching"||s==="StringNotMatching"||s==="StringContaining"||s==="StringNotContaining")return s+zn+i(e.sample,t,n,r,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},"serialize$5"),jh=a(e=>e&&e.$$typeof===Mh,"test$5"),Fh={serialize:Rh,test:jh},Lh=" ",Ma=new Set(["DOMStringMap","NamedNodeMap"]),Dh=/^(?:HTML\w*Collection|NodeList)$/;function qh(e){return Ma.has(e)||Dh.test(e)}a(qh,"testName");var Bh=a(e=>e&&e.constructor&&!!e.constructor.name&&qh(e.constructor.name),"test$4");function zh(e){return e.constructor.name==="NamedNodeMap"}a(zh,"isNamedNodeMap");var Wh=a((e,t,n,r,o,i)=>{let s=e.constructor.name;return ++r>t.maxDepth?`[${s}]`:(t.min?"":s+Lh)+(Ma.has(s)?`{${Ao(zh(e)?[...e].reduce((c,l)=>(c[l.name]=l.value,c),{}):{...e},t,n,r,o,i)}}`:`[${Vn([...e],t,n,r,o,i)}]`)},"serialize$4"),Uh={serialize:Wh,test:Bh};function Ra(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}a(Ra,"escapeHTML");function ko(e,t,n,r,o,i,s){let c=r+n.indent,l=n.colors;return e.map(u=>{let f=t[u],h=s(f,n,c,o,i);return typeof f!="string"&&(h.includes(`
14
- `)&&(h=n.spacingOuter+c+h+n.spacingOuter+r),h=`{${h}}`),`${n.spacingInner+r+l.prop.open+u+l.prop.close}=${l.value.open}${h}${l.value.close}`}).join("")}a(ko,"printProps");function No(e,t,n,r,o,i){return e.map(s=>t.spacingOuter+n+(typeof s=="string"?ja(s,t):i(s,t,n,r,o))).join("")}a(No,"printChildren");function ja(e,t){let n=t.colors.content;return n.open+Ra(e)+n.close}a(ja,"printText");function Jh(e,t){let n=t.colors.comment;return `${n.open}<!--${Ra(e)}-->${n.close}`}a(Jh,"printComment");function Mo(e,t,n,r,o){let i=r.colors.tag;return `${i.open}<${e}${t&&i.close+t+r.spacingOuter+o+i.open}${n?`>${i.close}${n}${r.spacingOuter}${o}${i.open}</${e}`:`${t&&!r.min?"":" "}/`}>${i.close}`}a(Mo,"printElement");function Ro(e,t){let n=t.colors.tag;return `${n.open}<${e}${n.close} \u2026${n.open} />${n.close}`}a(Ro,"printElementAsLeaf");var Vh=1,Fa=3,La=8,Da=11,Kh=/^(?:(?:HTML|SVG)\w*)?Element$/;function Xh(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return false}}a(Xh,"testHasAttribute");function Gh(e){let t=e.constructor.name,{nodeType:n,tagName:r}=e,o=typeof r=="string"&&r.includes("-")||Xh(e);return n===Vh&&(Kh.test(t)||o)||n===Fa&&t==="Text"||n===La&&t==="Comment"||n===Da&&t==="DocumentFragment"}a(Gh,"testNode");var Yh=a(e=>{var t;return (e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&Gh(e)},"test$3");function Hh(e){return e.nodeType===Fa}a(Hh,"nodeIsText");function Zh(e){return e.nodeType===La}a(Zh,"nodeIsComment");function Oo(e){return e.nodeType===Da}a(Oo,"nodeIsFragment");var Qh=a((e,t,n,r,o,i)=>{if(Hh(e))return ja(e.data,t);if(Zh(e))return Jh(e.data,t);let s=Oo(e)?"DocumentFragment":e.tagName.toLowerCase();return ++r>t.maxDepth?Ro(s,t):Mo(s,ko(Oo(e)?[]:Array.from(e.attributes,c=>c.name).sort(),Oo(e)?{}:[...e.attributes].reduce((c,l)=>(c[l.name]=l.value,c),{}),t,n+t.indent,r,o,i),No(Array.prototype.slice.call(e.childNodes||e.children),t,n+t.indent,r,o,i),t,n)},"serialize$3"),ed={serialize:Qh,test:Yh},td="@@__IMMUTABLE_ITERABLE__@@",nd="@@__IMMUTABLE_LIST__@@",rd="@@__IMMUTABLE_KEYED__@@",od="@@__IMMUTABLE_MAP__@@",wa="@@__IMMUTABLE_ORDERED__@@",id="@@__IMMUTABLE_RECORD__@@",sd="@@__IMMUTABLE_SEQ__@@",ad="@@__IMMUTABLE_SET__@@",cd="@@__IMMUTABLE_STACK__@@",Ut=a(e=>`Immutable.${e}`,"getImmutableName"),Xn=a(e=>`[${e}]`,"printAsLeaf"),ln=" ",Sa="\u2026";function ld(e,t,n,r,o,i,s){return ++r>t.maxDepth?Xn(Ut(s)):`${Ut(s)+ln}{${un(e.entries(),t,n,r,o,i)}}`}a(ld,"printImmutableEntries");function ud(e){let t=0;return {next(){if(t<e._keys.length){let n=e._keys[t++];return {done:false,value:[n,e.get(n)]}}return {done:true,value:void 0}}}}a(ud,"getRecordEntries");function fd(e,t,n,r,o,i){let s=Ut(e._name||"Record");return ++r>t.maxDepth?Xn(s):`${s+ln}{${un(ud(e),t,n,r,o,i)}}`}a(fd,"printImmutableRecord");function hd(e,t,n,r,o,i){let s=Ut("Seq");return ++r>t.maxDepth?Xn(s):e[rd]?`${s+ln}{${e._iter||e._object?un(e.entries(),t,n,r,o,i):Sa}}`:`${s+ln}[${e._iter||e._array||e._collection||e._iterable?$o(e.values(),t,n,r,o,i):Sa}]`}a(hd,"printImmutableSeq");function Po(e,t,n,r,o,i,s){return ++r>t.maxDepth?Xn(Ut(s)):`${Ut(s)+ln}[${$o(e.values(),t,n,r,o,i)}]`}a(Po,"printImmutableValues");var dd=a((e,t,n,r,o,i)=>e[od]?ld(e,t,n,r,o,i,e[wa]?"OrderedMap":"Map"):e[nd]?Po(e,t,n,r,o,i,"List"):e[ad]?Po(e,t,n,r,o,i,e[wa]?"OrderedSet":"Set"):e[cd]?Po(e,t,n,r,o,i,"Stack"):e[sd]?hd(e,t,n,r,o,i):fd(e,t,n,r,o,i),"serialize$2"),pd=a(e=>e&&(e[td]===true||e[id]===true),"test$2"),md={serialize:dd,test:pd};function qa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a(qa,"getDefaultExportFromCjs");var Wn={exports:{}},se={};var Ta;function gd(){if(Ta)return se;Ta=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),d=Symbol.for("react.client.reference");function g(p){if(typeof p=="object"&&p!==null){var S=p.$$typeof;switch(S){case e:switch(p=p.type,p){case n:case o:case r:case l:case u:case m:return p;default:switch(p=p&&p.$$typeof,p){case s:case c:case h:case f:return p;case i:return p;default:return S}}case t:return S}}}return a(g,"typeOf"),se.ContextConsumer=i,se.ContextProvider=s,se.Element=e,se.ForwardRef=c,se.Fragment=n,se.Lazy=h,se.Memo=f,se.Portal=t,se.Profiler=o,se.StrictMode=r,se.Suspense=l,se.SuspenseList=u,se.isContextConsumer=function(p){return g(p)===i},se.isContextProvider=function(p){return g(p)===s},se.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},se.isForwardRef=function(p){return g(p)===c},se.isFragment=function(p){return g(p)===n},se.isLazy=function(p){return g(p)===h},se.isMemo=function(p){return g(p)===f},se.isPortal=function(p){return g(p)===t},se.isProfiler=function(p){return g(p)===o},se.isStrictMode=function(p){return g(p)===r},se.isSuspense=function(p){return g(p)===l},se.isSuspenseList=function(p){return g(p)===u},se.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===o||p===r||p===l||p===u||typeof p=="object"&&p!==null&&(p.$$typeof===h||p.$$typeof===f||p.$$typeof===s||p.$$typeof===i||p.$$typeof===c||p.$$typeof===d||p.getModuleId!==void 0)},se.typeOf=g,se}a(gd,"requireReactIs_production");var ae={};var xa;function yd(){return xa||(xa=1,process.env.NODE_ENV!=="production"&&(function(){function e(p){if(typeof p=="object"&&p!==null){var S=p.$$typeof;switch(S){case t:switch(p=p.type,p){case r:case i:case o:case u:case f:case d:return p;default:switch(p=p&&p.$$typeof,p){case c:case l:case m:case h:return p;case s:return p;default:return S}}case n:return S}}}a(e,"typeOf");var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),d=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");ae.ContextConsumer=s,ae.ContextProvider=c,ae.Element=t,ae.ForwardRef=l,ae.Fragment=r,ae.Lazy=m,ae.Memo=h,ae.Portal=n,ae.Profiler=i,ae.StrictMode=o,ae.Suspense=u,ae.SuspenseList=f,ae.isContextConsumer=function(p){return e(p)===s},ae.isContextProvider=function(p){return e(p)===c},ae.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},ae.isForwardRef=function(p){return e(p)===l},ae.isFragment=function(p){return e(p)===r},ae.isLazy=function(p){return e(p)===m},ae.isMemo=function(p){return e(p)===h},ae.isPortal=function(p){return e(p)===n},ae.isProfiler=function(p){return e(p)===i},ae.isStrictMode=function(p){return e(p)===o},ae.isSuspense=function(p){return e(p)===u},ae.isSuspenseList=function(p){return e(p)===f},ae.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===o||p===u||p===f||typeof p=="object"&&p!==null&&(p.$$typeof===m||p.$$typeof===h||p.$$typeof===c||p.$$typeof===s||p.$$typeof===l||p.$$typeof===g||p.getModuleId!==void 0)},ae.typeOf=e;})()),ae}a(yd,"requireReactIs_development$1");var va;function bd(){return va||(va=1,process.env.NODE_ENV==="production"?Wn.exports=gd():Wn.exports=yd()),Wn.exports}a(bd,"requireReactIs$1");var Ba=bd(),wd=qa(Ba),Sd=Na({__proto__:null,default:wd},[Ba]),Un={exports:{}},re={};var Ea;function Td(){if(Ea)return re;Ea=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function p(S){if(typeof S=="object"&&S!==null){var T=S.$$typeof;switch(T){case e:switch(S=S.type,S){case n:case o:case r:case u:case f:return S;default:switch(S=S&&S.$$typeof,S){case c:case s:case l:case m:case h:case i:return S;default:return T}}case t:return T}}}return a(p,"v"),re.ContextConsumer=s,re.ContextProvider=i,re.Element=e,re.ForwardRef=l,re.Fragment=n,re.Lazy=m,re.Memo=h,re.Portal=t,re.Profiler=o,re.StrictMode=r,re.Suspense=u,re.SuspenseList=f,re.isAsyncMode=function(){return false},re.isConcurrentMode=function(){return false},re.isContextConsumer=function(S){return p(S)===s},re.isContextProvider=function(S){return p(S)===i},re.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},re.isForwardRef=function(S){return p(S)===l},re.isFragment=function(S){return p(S)===n},re.isLazy=function(S){return p(S)===m},re.isMemo=function(S){return p(S)===h},re.isPortal=function(S){return p(S)===t},re.isProfiler=function(S){return p(S)===o},re.isStrictMode=function(S){return p(S)===r},re.isSuspense=function(S){return p(S)===u},re.isSuspenseList=function(S){return p(S)===f},re.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===o||S===r||S===u||S===f||S===d||typeof S=="object"&&S!==null&&(S.$$typeof===m||S.$$typeof===h||S.$$typeof===i||S.$$typeof===s||S.$$typeof===l||S.$$typeof===g||S.getModuleId!==void 0)},re.typeOf=p,re}a(Td,"requireReactIs_production_min");var oe={};var Ia;function xd(){return Ia||(Ia=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),g=false,p=false,S=false,T=false,I=false,P;P=Symbol.for("react.module.reference");function A(B){return !!(typeof B=="string"||typeof B=="function"||B===n||B===o||I||B===r||B===u||B===f||T||B===d||g||p||S||typeof B=="object"&&B!==null&&(B.$$typeof===m||B.$$typeof===h||B.$$typeof===i||B.$$typeof===s||B.$$typeof===l||B.$$typeof===P||B.getModuleId!==void 0))}a(A,"isValidElementType");function $(B){if(typeof B=="object"&&B!==null){var v=B.$$typeof;switch(v){case e:var C=B.type;switch(C){case n:case o:case r:case u:case f:return C;default:var N=C&&C.$$typeof;switch(N){case c:case s:case l:case m:case h:case i:return N;default:return v}}case t:return v}}}a($,"typeOf");var j=s,k=i,O=e,M=l,K=n,_=m,V=h,le=t,U=o,Z=r,R=u,Y=f,L=false,de=false;function Te(B){return L||(L=true,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),false}a(Te,"isAsyncMode");function qe(B){return de||(de=true,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),false}a(qe,"isConcurrentMode");function Ie(B){return $(B)===s}a(Ie,"isContextConsumer");function Oe(B){return $(B)===i}a(Oe,"isContextProvider");function Xe(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}a(Xe,"isElement");function Re(B){return $(B)===l}a(Re,"isForwardRef");function Pe(B){return $(B)===n}a(Pe,"isFragment");function $e(B){return $(B)===m}a($e,"isLazy");function dt(B){return $(B)===h}a(dt,"isMemo");function We(B){return $(B)===t}a(We,"isPortal");function Ot(B){return $(B)===o}a(Ot,"isProfiler");function xe(B){return $(B)===r}a(xe,"isStrictMode");function Ge(B){return $(B)===u}a(Ge,"isSuspense");function qn(B){return $(B)===f}a(qn,"isSuspenseList"),oe.ContextConsumer=j,oe.ContextProvider=k,oe.Element=O,oe.ForwardRef=M,oe.Fragment=K,oe.Lazy=_,oe.Memo=V,oe.Portal=le,oe.Profiler=U,oe.StrictMode=Z,oe.Suspense=R,oe.SuspenseList=Y,oe.isAsyncMode=Te,oe.isConcurrentMode=qe,oe.isContextConsumer=Ie,oe.isContextProvider=Oe,oe.isElement=Xe,oe.isForwardRef=Re,oe.isFragment=Pe,oe.isLazy=$e,oe.isMemo=dt,oe.isPortal=We,oe.isProfiler=Ot,oe.isStrictMode=xe,oe.isSuspense=Ge,oe.isSuspenseList=qn,oe.isValidElementType=A,oe.typeOf=$;})()),oe}a(xd,"requireReactIs_development");var Ca;function vd(){return Ca||(Ca=1,process.env.NODE_ENV==="production"?Un.exports=Td():Un.exports=xd()),Un.exports}a(vd,"requireReactIs");var za=vd(),Ed=qa(za),Id=Na({__proto__:null,default:Ed},[za]),Cd=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],$t=Object.fromEntries(Cd.map(e=>[e,t=>Id[e](t)||Sd[e](t)]));function Wa(e,t=[]){if(Array.isArray(e))for(let n of e)Wa(n,t);else e!=null&&e!==false&&e!==""&&t.push(e);return t}a(Wa,"getChildren");function _a(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if($t.isFragment(e))return "React.Fragment";if($t.isSuspense(e))return "React.Suspense";if(typeof t=="object"&&t!==null){if($t.isContextProvider(e))return "Context.Provider";if($t.isContextConsumer(e))return "Context.Consumer";if($t.isForwardRef(e)){if(t.displayName)return t.displayName;let n=t.render.displayName||t.render.name||"";return n===""?"ForwardRef":`ForwardRef(${n})`}if($t.isMemo(e)){let n=t.displayName||t.type.displayName||t.type.name||"";return n===""?"Memo":`Memo(${n})`}}return "UNDEFINED"}a(_a,"getType");function _d(e){let{props:t}=e;return Object.keys(t).filter(n=>n!=="children"&&t[n]!==void 0).sort()}a(_d,"getPropKeys$1");var Od=a((e,t,n,r,o,i)=>++r>t.maxDepth?Ro(_a(e),t):Mo(_a(e),ko(_d(e),e.props,t,n+t.indent,r,o,i),No(Wa(e.props.children),t,n+t.indent,r,o,i),t,n),"serialize$1"),Pd=a(e=>e!=null&&$t.isElement(e),"test$1"),$d={serialize:Od,test:Pd},Ad=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function kd(e){let{props:t}=e;return t?Object.keys(t).filter(n=>t[n]!==void 0).sort():[]}a(kd,"getPropKeys");var Nd=a((e,t,n,r,o,i)=>++r>t.maxDepth?Ro(e.type,t):Mo(e.type,e.props?ko(kd(e),e.props,t,n+t.indent,r,o,i):"",e.children?No(e.children,t,n+t.indent,r,o,i):"",t,n),"serialize"),Md=a(e=>e&&e.$$typeof===Ad,"test"),Rd={serialize:Nd,test:Md},Ua=Object.prototype.toString,jd=Date.prototype.toISOString,Fd=Error.prototype.toString,Oa=RegExp.prototype.toString;function Jn(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}a(Jn,"getConstructorName");function Ld(e){return typeof window<"u"&&e===window}a(Ld,"isWindow");var Dd=/^Symbol\((.*)\)(.*)$/,qd=/\n/g,Kn=class extends Error{static{a(this,"PrettyFormatPluginError");}constructor(t,n){super(t),this.stack=n,this.name=this.constructor.name;}};function Bd(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]"}a(Bd,"isToStringedArrayType");function zd(e){return Object.is(e,-0)?"-0":String(e)}a(zd,"printNumber");function Wd(e){return `${e}n`}a(Wd,"printBigInt");function Pa(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}a(Pa,"printFunction");function $a(e){return String(e).replace(Dd,"Symbol($1)")}a($a,"printSymbol");function Aa(e){return `[${Fd.call(e)}]`}a(Aa,"printError");function Ja(e,t,n,r){if(e===true||e===false)return `${e}`;if(e===void 0)return "undefined";if(e===null)return "null";let o=typeof e;if(o==="number")return zd(e);if(o==="bigint")return Wd(e);if(o==="string")return r?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return Pa(e,t);if(o==="symbol")return $a(e);let i=Ua.call(e);return i==="[object WeakMap]"?"WeakMap {}":i==="[object WeakSet]"?"WeakSet {}":i==="[object Function]"||i==="[object GeneratorFunction]"?Pa(e,t):i==="[object Symbol]"?$a(e):i==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":jd.call(e):i==="[object Error]"?Aa(e):i==="[object RegExp]"?n?Oa.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):Oa.call(e):e instanceof Error?Aa(e):null}a(Ja,"printBasicValue");function Va(e,t,n,r,o,i){if(o.includes(e))return "[Circular]";o=[...o],o.push(e);let s=++r>t.maxDepth,c=t.min;if(t.callToJSON&&!s&&e.toJSON&&typeof e.toJSON=="function"&&!i)return mt(e.toJSON(),t,n,r,o,true);let l=Ua.call(e);return l==="[object Arguments]"?s?"[Arguments]":`${c?"":"Arguments "}[${Vn(e,t,n,r,o,mt)}]`:Bd(l)?s?`[${e.constructor.name}]`:`${c||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${Vn(e,t,n,r,o,mt)}]`:l==="[object Map]"?s?"[Map]":`Map {${un(e.entries(),t,n,r,o,mt," => ")}}`:l==="[object Set]"?s?"[Set]":`Set {${$o(e.values(),t,n,r,o,mt)}}`:s||Ld(e)?`[${Jn(e)}]`:`${c||!t.printBasicPrototype&&Jn(e)==="Object"?"":`${Jn(e)} `}{${Ao(e,t,n,r,o,mt)}}`}a(Va,"printComplexValue");var Ud={test:a(e=>e&&e instanceof Error,"test"),serialize(e,t,n,r,o,i){if(o.includes(e))return "[Circular]";o=[...o,e];let s=++r>t.maxDepth,{message:c,cause:l,...u}=e,f={message:c,...typeof l<"u"?{cause:l}:{},...e instanceof AggregateError?{errors:e.errors}:{},...u},h=e.name!=="Error"?e.name:Jn(e);return s?`[${h}]`:`${h} {${un(Object.entries(f).values(),t,n,r,o,i)}}`}};function Jd(e){return e.serialize!=null}a(Jd,"isNewPlugin");function Ka(e,t,n,r,o,i){let s;try{s=Jd(e)?e.serialize(t,n,r,o,i,mt):e.print(t,c=>mt(c,n,r,o,i),c=>{let l=r+n.indent;return l+c.replaceAll(qd,`
15
- ${l}`)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors);}catch(c){throw new Kn(c.message,c.stack)}if(typeof s!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof s}".`);return s}a(Ka,"printPlugin");function Xa(e,t){for(let n of e)try{if(n.test(t))return n}catch(r){throw new Kn(r.message,r.stack)}return null}a(Xa,"findPlugin");function mt(e,t,n,r,o,i){let s=Xa(t.plugins,e);if(s!==null)return Ka(s,e,t,n,r,o);let c=Ja(e,t.printFunctionName,t.escapeRegex,t.escapeString);return c!==null?c:Va(e,t,n,r,o,i)}a(mt,"printer");var jo={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},Ga=Object.keys(jo),Qe={callToJSON:true,compareKeys:void 0,escapeRegex:false,escapeString:true,highlight:false,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:false,plugins:[],printBasicPrototype:true,printFunctionName:true,theme:jo};function Vd(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(Qe,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}a(Vd,"validateOptions");function Kd(){return Ga.reduce((e,t)=>{let n=jo[t],r=n&&ue[n];if(r&&typeof r.close=="string"&&typeof r.open=="string")e[t]=r;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${n}" is undefined in ansi-styles.`);return e},Object.create(null))}a(Kd,"getColorsHighlight");function Xd(){return Ga.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}a(Xd,"getColorsEmpty");function Ya(e){return e?.printFunctionName??Qe.printFunctionName}a(Ya,"getPrintFunctionName");function Ha(e){return e?.escapeRegex??Qe.escapeRegex}a(Ha,"getEscapeRegex");function Za(e){return e?.escapeString??Qe.escapeString}a(Za,"getEscapeString");function ka(e){return {callToJSON:e?.callToJSON??Qe.callToJSON,colors:e?.highlight?Kd():Xd(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:Qe.compareKeys,escapeRegex:Ha(e),escapeString:Za(e),indent:e?.min?"":Gd(e?.indent??Qe.indent),maxDepth:e?.maxDepth??Qe.maxDepth,maxWidth:e?.maxWidth??Qe.maxWidth,min:e?.min??Qe.min,plugins:e?.plugins??Qe.plugins,printBasicPrototype:e?.printBasicPrototype??true,printFunctionName:Ya(e),spacingInner:e?.min?" ":`
13
+ `;}),this.intro&&(this.intro=t+this.intro.replace(/^[^\n]/gm,(r,o)=>o>0?t+r:r)),this}prepend(t){return this.intro=t+this.intro,this}toString(){let t=this.sources.map((n,r)=>{let o=n.separator!==void 0?n.separator:this.separator;return (r>0?o:"")+n.content.toString()}).join("");return this.intro+t}isEmpty(){return !(this.intro.length&&this.intro.trim()||this.sources.some(t=>!t.content.isEmpty()))}length(){return this.sources.reduce((t,n)=>t+n.content.length(),this.intro.length)}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimStart(t){let n=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(n,""),!this.intro){let r,o=0;do if(r=this.sources[o++],!r)break;while(!r.content.trimStartAborted(t))}return this}trimEnd(t){let n=new RegExp((t||"\\s")+"+$"),r,o=this.sources.length-1;do if(r=this.sources[o--],!r){this.intro=this.intro.replace(n,"");break}while(!r.content.trimEndAborted(t));return this}};});var Mf=Yt(xf=>{Object.defineProperty(xf,"__esModule",{value:true});});var Of=Yt(_f=>{Object.defineProperty(_f,"__esModule",{value:true});});var Cf=Yt(If=>{Object.defineProperty(If,"__esModule",{value:true});});var $f=Yt(kf=>{Object.defineProperty(kf,"__esModule",{value:true});});var Nf=Yt(le=>{var jb=le&&le.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:true,get:a(function(){return t[n]},"get")}),Object.defineProperty(e,r,o);}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n];})),zr=le&&le.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&jb(t,e,n);};Object.defineProperty(le,"__esModule",{value:true});le.expectTypeOf=void 0;zr(Mf(),le);zr(Of(),le);zr(Cf(),le);zr($f(),le);var he=a(()=>true,"fn"),Rb=a(e=>{let t=["parameters","returns","resolves","not","items","constructorParameters","thisParameter","instance","guards","asserts","branded"],n={toBeAny:he,toBeUnknown:he,toBeNever:he,toBeFunction:he,toBeObject:he,toBeArray:he,toBeString:he,toBeNumber:he,toBeBoolean:he,toBeVoid:he,toBeSymbol:he,toBeNull:he,toBeUndefined:he,toBeNullable:he,toBeBigInt:he,toMatchTypeOf:he,toEqualTypeOf:he,toBeConstructibleWith:he,toMatchObjectType:he,toExtend:he,map:le.expectTypeOf,toBeCallableWith:le.expectTypeOf,extract:le.expectTypeOf,exclude:le.expectTypeOf,pick:le.expectTypeOf,omit:le.expectTypeOf,toHaveProperty:le.expectTypeOf,parameter:le.expectTypeOf};return t.forEach(o=>Object.defineProperty(n,o,{get:a(()=>(0, le.expectTypeOf)({}),"get")})),n},"expectTypeOf");le.expectTypeOf=Rb;});var Ns={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 Kr(e){return String(e)}a(Kr,"g");Kr.open="";Kr.close="";function Bf(){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}a(Bf,"h");function zf(){let e=Bf(),t=a((i,s,c,u)=>{let l="",f=0;do l+=i.substring(f,u)+c,f=u+s.length,u=i.indexOf(s,f);while(~u);return l+i.substring(f)},"n"),n=a((i,s,c=i)=>{let u=a(l=>{let f=String(l),h=f.indexOf(s,i.length);return ~h?i+t(f,s,c,h)+s:i+f+s},"o");return u.open=i,u.close=s,u},"a"),r={isColorSupported:e},o=a(i=>`\x1B[${i}m`,"c");for(let i in Ns){let s=Ns[i];r[i]=e?n(o(s[0]),o(s[1]),s[2]):Kr;}return r}a(zf,"f");var ne=zf();function Vs(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(r){if(r!=="default"&&!(r in e)){var o=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,o.get?o:{enumerable:true,get:a(function(){return n[r]},"get")});}});}),Object.freeze(e)}a(Vs,"_mergeNamespaces");function Uf(e,t){let n=Object.keys(e),r=t===null?n:n.sort(t);if(Object.getOwnPropertySymbols)for(let o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&r.push(o);return r}a(Uf,"getKeysOfEnumerableProperties");function Xt(e,t,n,r,o,i,s=": "){let c="",u=0,l=e.next();if(!l.done){c+=t.spacingOuter;let f=n+t.indent;for(;!l.done;){if(c+=f,u++===t.maxWidth){c+="\u2026";break}let h=i(l.value[0],t,f,r,o),d=i(l.value[1],t,f,r,o);c+=h+s+d,l=e.next(),l.done?t.min||(c+=","):c+=`,${t.spacingInner}`;}c+=t.spacingOuter+n;}return c}a(Xt,"printIteratorEntries");function Yr(e,t,n,r,o,i){let s="",c=0,u=e.next();if(!u.done){s+=t.spacingOuter;let l=n+t.indent;for(;!u.done;){if(s+=l,c++===t.maxWidth){s+="\u2026";break}s+=i(u.value,t,l,r,o),u=e.next(),u.done?t.min||(s+=","):s+=`,${t.spacingInner}`;}s+=t.spacingOuter+n;}return s}a(Yr,"printIteratorValues");function An(e,t,n,r,o,i){let s="";e=e instanceof ArrayBuffer?new DataView(e):e;let c=a(l=>l instanceof DataView,"isDataView"),u=c(e)?e.byteLength:e.length;if(u>0){s+=t.spacingOuter;let l=n+t.indent;for(let f=0;f<u;f++){if(s+=l,f===t.maxWidth){s+="\u2026";break}(c(e)||f in e)&&(s+=i(c(e)?e.getInt8(f):e[f],t,l,r,o)),f<u-1?s+=`,${t.spacingInner}`:t.min||(s+=",");}s+=t.spacingOuter+n;}return s}a(An,"printListItems");function Zr(e,t,n,r,o,i){let s="",c=Uf(e,t.compareKeys);if(c.length>0){s+=t.spacingOuter;let u=n+t.indent;for(let l=0;l<c.length;l++){let f=c[l],h=i(f,t,u,r,o),d=i(e[f],t,u,r,o);s+=`${u+h}: ${d}`,l<c.length-1?s+=`,${t.spacingInner}`:t.min||(s+=",");}s+=t.spacingOuter+n;}return s}a(Zr,"printObjectProperties");var Wf=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,kn=" ",Vf=a((e,t,n,r,o,i)=>{let s=e.toString();if(s==="ArrayContaining"||s==="ArrayNotContaining")return ++r>t.maxDepth?`[${s}]`:`${s+kn}[${An(e.sample,t,n,r,o,i)}]`;if(s==="ObjectContaining"||s==="ObjectNotContaining")return ++r>t.maxDepth?`[${s}]`:`${s+kn}{${Zr(e.sample,t,n,r,o,i)}}`;if(s==="StringMatching"||s==="StringNotMatching"||s==="StringContaining"||s==="StringNotContaining")return s+kn+i(e.sample,t,n,r,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},"serialize$5"),Kf=a(e=>e&&e.$$typeof===Wf,"test$5"),Gf={serialize:Vf,test:Kf},Hf=" ",Ks=new Set(["DOMStringMap","NamedNodeMap"]),Jf=/^(?:HTML\w*Collection|NodeList)$/;function Yf(e){return Ks.has(e)||Jf.test(e)}a(Yf,"testName");var Zf=a(e=>e&&e.constructor&&!!e.constructor.name&&Yf(e.constructor.name),"test$4");function Xf(e){return e.constructor.name==="NamedNodeMap"}a(Xf,"isNamedNodeMap");var Qf=a((e,t,n,r,o,i)=>{let s=e.constructor.name;return ++r>t.maxDepth?`[${s}]`:(t.min?"":s+Hf)+(Ks.has(s)?`{${Zr(Xf(e)?[...e].reduce((c,u)=>(c[u.name]=u.value,c),{}):{...e},t,n,r,o,i)}}`:`[${An([...e],t,n,r,o,i)}]`)},"serialize$4"),eh={serialize:Qf,test:Zf};function Gs(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}a(Gs,"escapeHTML");function Xr(e,t,n,r,o,i,s){let c=r+n.indent,u=n.colors;return e.map(l=>{let f=t[l];if(typeof f=="string"&&f[0]==="_"&&f.startsWith("__vitest_")&&f.match(/__vitest_\d+__/))return "";let h=s(f,n,c,o,i);return typeof f!="string"&&(h.includes(`
14
+ `)&&(h=n.spacingOuter+c+h+n.spacingOuter+r),h=`{${h}}`),`${n.spacingInner+r+u.prop.open+l+u.prop.close}=${u.value.open}${h}${u.value.close}`}).join("")}a(Xr,"printProps");function jn(e,t,n,r,o,i){return e.map(s=>t.spacingOuter+n+(typeof s=="string"?Hs(s,t):i(s,t,n,r,o))).join("")}a(jn,"printChildren");function th(e,t,n,r,o,i){return t.printShadowRoot===false?"":[`${t.spacingOuter+n}#shadow-root`,jn(e,t,n+t.indent,r,o,i)].join("")}a(th,"printShadowRoot");function Hs(e,t){let n=t.colors.content;return n.open+Gs(e)+n.close}a(Hs,"printText");function nh(e,t){let n=t.colors.comment;return `${n.open}<!--${Gs(e)}-->${n.close}`}a(nh,"printComment");function Qr(e,t,n,r,o){let i=r.colors.tag;return `${i.open}<${e}${t&&i.close+t+r.spacingOuter+o+i.open}${n?`>${i.close}${n}${r.spacingOuter}${o}${i.open}</${e}`:`${t&&!r.min?"":" "}/`}>${i.close}`}a(Qr,"printElement");function eo(e,t){let n=t.colors.tag;return `${n.open}<${e}${n.close} \u2026${n.open} />${n.close}`}a(eo,"printElementAsLeaf");var rh=1,Js=3,Ys=8,Zs=11,oh=/^(?:(?:HTML|SVG)\w*)?Element$/;function ih(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return false}}a(ih,"testHasAttribute");function sh(e){let t=e.constructor.name,{nodeType:n,tagName:r}=e,o=typeof r=="string"&&r.includes("-")||ih(e);return n===rh&&(oh.test(t)||o)||n===Js&&t==="Text"||n===Ys&&t==="Comment"||n===Zs&&t==="DocumentFragment"}a(sh,"testNode");var ah=a(e=>e?.constructor?.name&&sh(e),"test$3");function ch(e){return e.nodeType===Js}a(ch,"nodeIsText");function lh(e){return e.nodeType===Ys}a(lh,"nodeIsComment");function $n(e){return e.nodeType===Zs}a($n,"nodeIsFragment");var uh=a((e,t,n,r,o,i)=>{if(ch(e))return Hs(e.data,t);if(lh(e))return nh(e.data,t);let s=$n(e)?"DocumentFragment":e.tagName.toLowerCase();return ++r>t.maxDepth?eo(s,t):Qr(s,Xr($n(e)?[]:Array.from(e.attributes,c=>c.name).sort(),$n(e)?{}:[...e.attributes].reduce((c,u)=>(c[u.name]=u.value,c),{}),t,n+t.indent,r,o,i),($n(e)||!e.shadowRoot?"":th(Array.prototype.slice.call(e.shadowRoot.children),t,n+t.indent,r,o,i))+jn(Array.prototype.slice.call(e.childNodes||e.children),t,n+t.indent,r,o,i),t,n)},"serialize$3"),fh={serialize:uh,test:ah},hh="@@__IMMUTABLE_ITERABLE__@@",dh="@@__IMMUTABLE_LIST__@@",ph="@@__IMMUTABLE_KEYED__@@",mh="@@__IMMUTABLE_MAP__@@",As="@@__IMMUTABLE_ORDERED__@@",gh="@@__IMMUTABLE_RECORD__@@",yh="@@__IMMUTABLE_SEQ__@@",bh="@@__IMMUTABLE_SET__@@",wh="@@__IMMUTABLE_STACK__@@",Nt=a(e=>`Immutable.${e}`,"getImmutableName"),Rn=a(e=>`[${e}]`,"printAsLeaf"),Zt=" ",Ps="\u2026";function vh(e,t,n,r,o,i,s){return ++r>t.maxDepth?Rn(Nt(s)):`${Nt(s)+Zt}{${Xt(e.entries(),t,n,r,o,i)}}`}a(vh,"printImmutableEntries");function Sh(e){let t=0;return {next(){if(t<e._keys.length){let n=e._keys[t++];return {done:false,value:[n,e.get(n)]}}return {done:true,value:void 0}}}}a(Sh,"getRecordEntries");function Th(e,t,n,r,o,i){let s=Nt(e._name||"Record");return ++r>t.maxDepth?Rn(s):`${s+Zt}{${Xt(Sh(e),t,n,r,o,i)}}`}a(Th,"printImmutableRecord");function Eh(e,t,n,r,o,i){let s=Nt("Seq");return ++r>t.maxDepth?Rn(s):e[ph]?`${s+Zt}{${e._iter||e._object?Xt(e.entries(),t,n,r,o,i):Ps}}`:`${s+Zt}[${e._iter||e._array||e._collection||e._iterable?Yr(e.values(),t,n,r,o,i):Ps}]`}a(Eh,"printImmutableSeq");function Gr(e,t,n,r,o,i,s){return ++r>t.maxDepth?Rn(Nt(s)):`${Nt(s)+Zt}[${Yr(e.values(),t,n,r,o,i)}]`}a(Gr,"printImmutableValues");var xh=a((e,t,n,r,o,i)=>e[mh]?vh(e,t,n,r,o,i,e[As]?"OrderedMap":"Map"):e[dh]?Gr(e,t,n,r,o,i,"List"):e[bh]?Gr(e,t,n,r,o,i,e[As]?"OrderedSet":"Set"):e[wh]?Gr(e,t,n,r,o,i,"Stack"):e[yh]?Eh(e,t,n,r,o,i):Th(e,t,n,r,o,i),"serialize$2"),Mh=a(e=>e&&(e[hh]===true||e[gh]===true),"test$2"),_h={serialize:xh,test:Mh};function Xs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a(Xs,"getDefaultExportFromCjs");var Hr={exports:{}},Q={};var js;function Oh(){if(js)return Q;js=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function m(y){if(typeof y=="object"&&y!==null){var v=y.$$typeof;switch(v){case e:switch(y=y.type,y){case n:case o:case r:case u:case l:case d:return y;default:switch(y=y&&y.$$typeof,y){case s:case c:case h:case f:return y;case i:return y;default:return v}}case t:return v}}}return a(m,"typeOf"),Q.ContextConsumer=i,Q.ContextProvider=s,Q.Element=e,Q.ForwardRef=c,Q.Fragment=n,Q.Lazy=h,Q.Memo=f,Q.Portal=t,Q.Profiler=o,Q.StrictMode=r,Q.Suspense=u,Q.SuspenseList=l,Q.isContextConsumer=function(y){return m(y)===i},Q.isContextProvider=function(y){return m(y)===s},Q.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},Q.isForwardRef=function(y){return m(y)===c},Q.isFragment=function(y){return m(y)===n},Q.isLazy=function(y){return m(y)===h},Q.isMemo=function(y){return m(y)===f},Q.isPortal=function(y){return m(y)===t},Q.isProfiler=function(y){return m(y)===o},Q.isStrictMode=function(y){return m(y)===r},Q.isSuspense=function(y){return m(y)===u},Q.isSuspenseList=function(y){return m(y)===l},Q.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===o||y===r||y===u||y===l||typeof y=="object"&&y!==null&&(y.$$typeof===h||y.$$typeof===f||y.$$typeof===s||y.$$typeof===i||y.$$typeof===c||y.$$typeof===p||y.getModuleId!==void 0)},Q.typeOf=m,Q}a(Oh,"requireReactIs_production");var Rs;function Ih(){return Rs||(Rs=1,Hr.exports=Oh()),Hr.exports}a(Ih,"requireReactIs$1");var Qs=Ih(),Ch=Xs(Qs),kh=Vs({__proto__:null,default:Ch},[Qs]),Jr={exports:{}},Y={};var Fs;function $h(){if(Fs)return Y;Fs=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function y(v){if(typeof v=="object"&&v!==null){var S=v.$$typeof;switch(S){case e:switch(v=v.type,v){case n:case o:case r:case l:case f:return v;default:switch(v=v&&v.$$typeof,v){case c:case s:case u:case d:case h:case i:return v;default:return S}}case t:return S}}}return a(y,"v"),Y.ContextConsumer=s,Y.ContextProvider=i,Y.Element=e,Y.ForwardRef=u,Y.Fragment=n,Y.Lazy=d,Y.Memo=h,Y.Portal=t,Y.Profiler=o,Y.StrictMode=r,Y.Suspense=l,Y.SuspenseList=f,Y.isAsyncMode=function(){return false},Y.isConcurrentMode=function(){return false},Y.isContextConsumer=function(v){return y(v)===s},Y.isContextProvider=function(v){return y(v)===i},Y.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},Y.isForwardRef=function(v){return y(v)===u},Y.isFragment=function(v){return y(v)===n},Y.isLazy=function(v){return y(v)===d},Y.isMemo=function(v){return y(v)===h},Y.isPortal=function(v){return y(v)===t},Y.isProfiler=function(v){return y(v)===o},Y.isStrictMode=function(v){return y(v)===r},Y.isSuspense=function(v){return y(v)===l},Y.isSuspenseList=function(v){return y(v)===f},Y.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===o||v===r||v===l||v===f||v===p||typeof v=="object"&&v!==null&&(v.$$typeof===d||v.$$typeof===h||v.$$typeof===i||v.$$typeof===s||v.$$typeof===u||v.$$typeof===m||v.getModuleId!==void 0)},Y.typeOf=y,Y}a($h,"requireReactIs_production_min");var Ds;function Nh(){return Ds||(Ds=1,Jr.exports=$h()),Jr.exports}a(Nh,"requireReactIs");var ea=Nh(),Ah=Xs(ea),Ph=Vs({__proto__:null,default:Ah},[ea]),jh=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],bt=Object.fromEntries(jh.map(e=>[e,t=>Ph[e](t)||kh[e](t)]));function ta(e,t=[]){if(Array.isArray(e))for(let n of e)ta(n,t);else e!=null&&e!==false&&e!==""&&t.push(e);return t}a(ta,"getChildren");function Ls(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(bt.isFragment(e))return "React.Fragment";if(bt.isSuspense(e))return "React.Suspense";if(typeof t=="object"&&t!==null){if(bt.isContextProvider(e))return "Context.Provider";if(bt.isContextConsumer(e))return "Context.Consumer";if(bt.isForwardRef(e)){if(t.displayName)return t.displayName;let n=t.render.displayName||t.render.name||"";return n===""?"ForwardRef":`ForwardRef(${n})`}if(bt.isMemo(e)){let n=t.displayName||t.type.displayName||t.type.name||"";return n===""?"Memo":`Memo(${n})`}}return "UNDEFINED"}a(Ls,"getType");function Rh(e){let{props:t}=e;return Object.keys(t).filter(n=>n!=="children"&&t[n]!==void 0).sort()}a(Rh,"getPropKeys$1");var Fh=a((e,t,n,r,o,i)=>++r>t.maxDepth?eo(Ls(e),t):Qr(Ls(e),Xr(Rh(e),e.props,t,n+t.indent,r,o,i),jn(ta(e.props.children),t,n+t.indent,r,o,i),t,n),"serialize$1"),Dh=a(e=>e!=null&&bt.isElement(e),"test$1"),Lh={serialize:Fh,test:Dh},qh=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function Bh(e){let{props:t}=e;return t?Object.keys(t).filter(n=>t[n]!==void 0).sort():[]}a(Bh,"getPropKeys");var zh=a((e,t,n,r,o,i)=>++r>t.maxDepth?eo(e.type,t):Qr(e.type,e.props?Xr(Bh(e),e.props,t,n+t.indent,r,o,i):"",e.children?jn(e.children,t,n+t.indent,r,o,i):"",t,n),"serialize"),Uh=a(e=>e&&e.$$typeof===qh,"test"),Wh={serialize:zh,test:Uh},na=Object.prototype.toString,Vh=Date.prototype.toISOString,Kh=Error.prototype.toString,qs=RegExp.prototype.toString;function Nn(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}a(Nn,"getConstructorName");function Gh(e){return typeof window<"u"&&e===window}a(Gh,"isWindow");var Hh=/^Symbol\((.*)\)(.*)$/,Jh=/\n/g,Pn=class extends Error{static{a(this,"PrettyFormatPluginError");}constructor(t,n){super(t),this.stack=n,this.name=this.constructor.name;}};function Yh(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]"}a(Yh,"isToStringedArrayType");function Zh(e){return Object.is(e,-0)?"-0":String(e)}a(Zh,"printNumber");function Xh(e){return `${e}n`}a(Xh,"printBigInt");function Bs(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}a(Bs,"printFunction");function zs(e){return String(e).replace(Hh,"Symbol($1)")}a(zs,"printSymbol");function Us(e){return `[${Kh.call(e)}]`}a(Us,"printError");function ra(e,t,n,r){if(e===true||e===false)return `${e}`;if(e===void 0)return "undefined";if(e===null)return "null";let o=typeof e;if(o==="number")return Zh(e);if(o==="bigint")return Xh(e);if(o==="string")return r?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return Bs(e,t);if(o==="symbol")return zs(e);let i=na.call(e);return i==="[object WeakMap]"?"WeakMap {}":i==="[object WeakSet]"?"WeakSet {}":i==="[object Function]"||i==="[object GeneratorFunction]"?Bs(e,t):i==="[object Symbol]"?zs(e):i==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":Vh.call(e):i==="[object Error]"?Us(e):i==="[object RegExp]"?n?qs.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):qs.call(e):e instanceof Error?Us(e):null}a(ra,"printBasicValue");function oa(e,t,n,r,o,i){if(o.includes(e))return "[Circular]";o=[...o],o.push(e);let s=++r>t.maxDepth,c=t.min;if(t.callToJSON&&!s&&e.toJSON&&typeof e.toJSON=="function"&&!i)return ut(e.toJSON(),t,n,r,o,true);let u=na.call(e);return u==="[object Arguments]"?s?"[Arguments]":`${c?"":"Arguments "}[${An(e,t,n,r,o,ut)}]`:Yh(u)?s?`[${e.constructor.name}]`:`${c||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${An(e,t,n,r,o,ut)}]`:u==="[object Map]"?s?"[Map]":`Map {${Xt(e.entries(),t,n,r,o,ut," => ")}}`:u==="[object Set]"?s?"[Set]":`Set {${Yr(e.values(),t,n,r,o,ut)}}`:s||Gh(e)?`[${Nn(e)}]`:`${c||!t.printBasicPrototype&&Nn(e)==="Object"?"":`${Nn(e)} `}{${Zr(e,t,n,r,o,ut)}}`}a(oa,"printComplexValue");var Qh={test:a(e=>e&&e instanceof Error,"test"),serialize(e,t,n,r,o,i){if(o.includes(e))return "[Circular]";o=[...o,e];let s=++r>t.maxDepth,{message:c,cause:u,...l}=e,f={message:c,...typeof u<"u"?{cause:u}:{},...e instanceof AggregateError?{errors:e.errors}:{},...l},h=e.name!=="Error"?e.name:Nn(e);return s?`[${h}]`:`${h} {${Xt(Object.entries(f).values(),t,n,r,o,i)}}`}};function ed(e){return e.serialize!=null}a(ed,"isNewPlugin");function ia(e,t,n,r,o,i){let s;try{s=ed(e)?e.serialize(t,n,r,o,i,ut):e.print(t,c=>ut(c,n,r,o,i),c=>{let u=r+n.indent;return u+c.replaceAll(Jh,`
15
+ ${u}`)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors);}catch(c){throw new Pn(c.message,c.stack)}if(typeof s!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof s}".`);return s}a(ia,"printPlugin");function sa(e,t){for(let n of e)try{if(n.test(t))return n}catch(r){throw new Pn(r.message,r.stack)}return null}a(sa,"findPlugin");function ut(e,t,n,r,o,i){let s=sa(t.plugins,e);if(s!==null)return ia(s,e,t,n,r,o);let c=ra(e,t.printFunctionName,t.escapeRegex,t.escapeString);return c!==null?c:oa(e,t,n,r,o,i)}a(ut,"printer");var to={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},aa=Object.keys(to),Ge={callToJSON:true,compareKeys:void 0,escapeRegex:false,escapeString:true,highlight:false,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:false,plugins:[],printBasicPrototype:true,printFunctionName:true,printShadowRoot:true,theme:to};function td(e){for(let t of Object.keys(e))if(!Object.hasOwn(Ge,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}a(td,"validateOptions");function nd(){return aa.reduce((e,t)=>{let n=to[t],r=n&&ne[n];if(r&&typeof r.close=="string"&&typeof r.open=="string")e[t]=r;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${n}" is undefined in ansi-styles.`);return e},Object.create(null))}a(nd,"getColorsHighlight");function rd(){return aa.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}a(rd,"getColorsEmpty");function ca(e){return e?.printFunctionName??Ge.printFunctionName}a(ca,"getPrintFunctionName");function la(e){return e?.escapeRegex??Ge.escapeRegex}a(la,"getEscapeRegex");function ua(e){return e?.escapeString??Ge.escapeString}a(ua,"getEscapeString");function Ws(e){return {callToJSON:e?.callToJSON??Ge.callToJSON,colors:e?.highlight?nd():rd(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:Ge.compareKeys,escapeRegex:la(e),escapeString:ua(e),indent:e?.min?"":od(e?.indent??Ge.indent),maxDepth:e?.maxDepth??Ge.maxDepth,maxWidth:e?.maxWidth??Ge.maxWidth,min:e?.min??Ge.min,plugins:e?.plugins??Ge.plugins,printBasicPrototype:e?.printBasicPrototype??true,printFunctionName:ca(e),printShadowRoot:e?.printShadowRoot??true,spacingInner:e?.min?" ":`
16
16
  `,spacingOuter:e?.min?"":`
17
- `}}a(ka,"getConfig");function Gd(e){return Array.from({length:e+1}).join(" ")}a(Gd,"createIndent");function je(e,t){if(t&&(Vd(t),t.plugins)){let r=Xa(t.plugins,e);if(r!==null)return Ka(r,e,ka(t),"",0,[])}let n=Ja(e,Ya(t),Ha(t),Za(t));return n!==null?n:Va(e,ka(t),"",0,[])}a(je,"format");var gt={AsymmetricMatcher:Fh,DOMCollection:Uh,DOMElement:ed,Immutable:md,ReactElement:$d,ReactTestComponent:Rd,Error:Ud};var Qa={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"]},Yd={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},ct="\u2026";function Hd(e,t){let n=Qa[Yd[t]]||Qa[t]||"";return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}a(Hd,"colorise");function ec({showHidden:e=false,depth:t=2,colors:n=false,customInspect:r=true,showProxy:o=false,maxArrayLength:i=1/0,breakLength:s=1/0,seen:c=[],truncate:l=1/0,stylize:u=String}={},f){let h={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(s),truncate:Number(l),seen:c,inspect:f,stylize:u};return h.colors&&(h.stylize=Hd),h}a(ec,"normaliseOptions");function Zd(e){return e>="\uD800"&&e<="\uDBFF"}a(Zd,"isHighSurrogate");function Ae(e,t,n=ct){e=String(e);let r=n.length,o=e.length;if(r>t&&o>r)return n;if(o>t&&o>r){let i=t-r;return i>0&&Zd(e[i-1])&&(i=i-1),`${e.slice(0,i)}${n}`}return e}a(Ae,"truncate");function we(e,t,n,r=", "){n=n||t.inspect;let o=e.length;if(o===0)return "";let i=t.truncate,s="",c="",l="";for(let u=0;u<o;u+=1){let f=u+1===e.length,h=u+2===e.length;l=`${ct}(${e.length-u})`;let m=e[u];t.truncate=i-s.length-(f?0:r.length);let d=c||n(m,t)+(f?"":r),g=s.length+d.length,p=g+l.length;if(f&&g>i&&s.length+l.length<=i||!f&&!h&&p>i||(c=f?"":n(e[u+1],t)+(h?"":r),!f&&h&&p>i&&g+c.length>i))break;if(s+=d,!f&&!h&&g+c.length>=i){l=`${ct}(${e.length-u-1})`;break}l="";}return `${s}${l}`}a(we,"inspectList");function Qd(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}a(Qd,"quoteComplexKey");function lt([e,t],n){return n.truncate-=2,typeof e=="string"?e=Qd(e):typeof e!="number"&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}a(lt,"inspectProperty");function Fo(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return "[]";t.truncate-=4;let r=we(e,t);t.truncate-=r.length;let o="";return n.length&&(o=we(n.map(i=>[i,e[i]]),t,lt)),`[ ${r}${o?`, ${o}`:""} ]`}a(Fo,"inspectArray");var ep=a(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function et(e,t){let n=ep(e);t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return `${n}[]`;let o="";for(let s=0;s<e.length;s++){let c=`${t.stylize(Ae(e[s],t.truncate),"number")}${s===e.length-1?"":", "}`;if(t.truncate-=c.length,e[s]!==e.length&&t.truncate<=3){o+=`${ct}(${e.length-e[s]+1})`;break}o+=c;}let i="";return r.length&&(i=we(r.map(s=>[s,e[s]]),t,lt)),`${n}[ ${o}${i?`, ${i}`:""} ]`}a(et,"inspectTypedArray");function Lo(e,t){let n=e.toJSON();if(n===null)return "Invalid Date";let r=n.split("T"),o=r[0];return t.stylize(`${o}T${Ae(r[1],t.truncate-o.length-1)}`,"date")}a(Lo,"inspectDate");function Gn(e,t){let n=e[Symbol.toStringTag]||"Function",r=e.name;return r?t.stylize(`[${n} ${Ae(r,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}a(Gn,"inspectFunction");function tp([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}a(tp,"inspectMapEntry");function np(e){let t=[];return e.forEach((n,r)=>{t.push([r,n]);}),t}a(np,"mapToEntries");function Do(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${we(np(e),t,tp)} }`)}a(Do,"inspectMap");var rp=Number.isNaN||(e=>e!==e);function Yn(e,t){return rp(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(Ae(String(e),t.truncate),"number")}a(Yn,"inspectNumber");function Hn(e,t){let n=Ae(e.toString(),t.truncate-1);return n!==ct&&(n+="n"),t.stylize(n,"bigint")}a(Hn,"inspectBigInt");function qo(e,t){let n=e.toString().split("/")[2],r=t.truncate-(2+n.length),o=e.source;return t.stylize(`/${Ae(o,r)}/${n}`,"regexp")}a(qo,"inspectRegExp");function op(e){let t=[];return e.forEach(n=>{t.push(n);}),t}a(op,"arrayFromSet");function Bo(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${we(op(e),t)} }`)}a(Bo,"inspectSet");var tc=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),ip={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},sp=16;function cp(e){return ip[e]||`\\u${`0000${e.charCodeAt(0).toString(sp)}`.slice(-4)}`}a(cp,"escape");function Zn(e,t){return tc.test(e)&&(e=e.replace(tc,cp)),t.stylize(`'${Ae(e,t.truncate-2)}'`,"string")}a(Zn,"inspectString");function Qn(e){return "description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}a(Qn,"inspectSymbol");var lp=a(()=>"Promise{\u2026}","getPromiseValue"),nc=lp;function At(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 o=we(n.map(c=>[c,e[c]]),t,lt),i=we(r.map(c=>[c,e[c]]),t,lt);t.seen.pop();let s="";return o&&i&&(s=", "),`{ ${o}${s}${i} }`}a(At,"inspectObject");var zo=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:false;function Wo(e,t){let n="";return zo&&zo in e&&(n=e[zo]),n=n||e.constructor.name,(!n||n==="_class")&&(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${At(e,t)}`}a(Wo,"inspectClass");function Uo(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${we(e,t)} ]`)}a(Uo,"inspectArguments");var up=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Jo(e,t){let n=Object.getOwnPropertyNames(e).filter(s=>up.indexOf(s)===-1),r=e.name;t.truncate-=r.length;let o="";if(typeof e.message=="string"?o=Ae(e.message,t.truncate):n.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return "[Circular]";t.seen.push(e);let i=we(n.map(s=>[s,e[s]]),t,lt);return `${r}${o}${i?` { ${i} }`:""}`}a(Jo,"inspectObject");function fp([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}a(fp,"inspectAttribute");function er(e,t){return we(e,t,hp,`
18
- `)}a(er,"inspectNodeCollection");function hp(e,t){switch(e.nodeType){case 1:return tr(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}a(hp,"inspectNode");function tr(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),o=t.stylize(`<${r}`,"special"),i=t.stylize(">","special"),s=t.stylize(`</${r}>`,"special");t.truncate-=r.length*2+5;let c="";n.length>0&&(c+=" ",c+=we(n.map(f=>[f,e.getAttribute(f)]),t,fp," ")),t.truncate-=c.length;let l=t.truncate,u=er(e.children,t);return u&&u.length>l&&(u=`${ct}(${e.children.length})`),`${o}${c}${i}${u}${s}`}a(tr,"inspectHTML");var dp=typeof Symbol=="function"&&typeof Symbol.for=="function",Vo=dp?Symbol.for("chai/inspect"):"@@chai/inspect",Ko=Symbol.for("nodejs.util.inspect.custom"),rc=new WeakMap,oc={},ic={undefined:a((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:a((e,t)=>t.stylize("null","null"),"null"),boolean:a((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:a((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:Yn,Number:Yn,bigint:Hn,BigInt:Hn,string:Zn,String:Zn,function:Gn,Function:Gn,symbol:Qn,Symbol:Qn,Array:Fo,Date:Lo,Map:Do,Set:Bo,RegExp:qo,Promise:nc,WeakSet:a((e,t)=>t.stylize("WeakSet{\u2026}","special"),"WeakSet"),WeakMap:a((e,t)=>t.stylize("WeakMap{\u2026}","special"),"WeakMap"),Arguments:Uo,Int8Array:et,Uint8Array:et,Uint8ClampedArray:et,Int16Array:et,Uint16Array:et,Int32Array:et,Uint32Array:et,Float32Array:et,Float64Array:et,Generator:a(()=>"","Generator"),DataView:a(()=>"","DataView"),ArrayBuffer:a(()=>"","ArrayBuffer"),Error:Jo,HTMLCollection:er,NodeList:er},pp=a((e,t,n)=>Vo in e&&typeof e[Vo]=="function"?e[Vo](t):Ko in e&&typeof e[Ko]=="function"?e[Ko](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&rc.has(e.constructor)?rc.get(e.constructor)(e,t):oc[n]?oc[n](e,t):"","inspectCustom"),mp=Object.prototype.toString;function nr(e,t={}){let n=ec(t,nr),{customInspect:r}=n,o=e===null?"null":typeof e;if(o==="object"&&(o=mp.call(e).slice(8,-1)),o in ic)return ic[o](e,n);if(r&&e){let s=pp(e,n,o);if(s)return typeof s=="string"?s:nr(s,n)}let i=e?Object.getPrototypeOf(e):false;return i===Object.prototype||i===null?At(e,n):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?tr(e,n):"constructor"in e?e.constructor!==Object?Wo(e,n):At(e,n):e===Object(e)?At(e,n):n.stylize(String(e),o)}a(nr,"inspect");var{AsymmetricMatcher:yp,DOMCollection:bp,DOMElement:wp,Immutable:Sp,ReactElement:Tp,ReactTestComponent:xp}=gt,sc=[xp,Tp,wp,bp,Sp,yp];function Ce(e,t=10,{maxLength:n,...r}={}){let o=n??1e4,i;try{i=je(e,{maxDepth:t,escapeString:false,plugins:sc,...r});}catch{i=je(e,{callToJSON:false,maxDepth:t,escapeString:false,plugins:sc,...r});}return i.length>=o&&t>1?Ce(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:n,...r}):i}a(Ce,"stringify");var vp=/%[sdjifoOc%]/g;function fn(...e){if(typeof e[0]!="string"){let i=[];for(let s=0;s<e.length;s++)i.push(kt(e[s],{depth:0,colors:false}));return i.join(" ")}let t=e.length,n=1,r=e[0],o=String(r).replace(vp,i=>{if(i==="%%")return "%";if(n>=t)return i;switch(i){case "%s":{let s=e[n++];return typeof s=="bigint"?`${s.toString()}n`:typeof s=="number"&&s===0&&1/s<0?"-0":typeof s=="object"&&s!==null?typeof s.toString=="function"&&s.toString!==Object.prototype.toString?s.toString():kt(s,{depth:0,colors:false}):String(s)}case "%d":{let s=e[n++];return typeof s=="bigint"?`${s.toString()}n`:Number(s).toString()}case "%i":{let s=e[n++];return typeof s=="bigint"?`${s.toString()}n`:Number.parseInt(String(s)).toString()}case "%f":return Number.parseFloat(String(e[n++])).toString();case "%o":return kt(e[n++],{showHidden:true,showProxy:true});case "%O":return kt(e[n++]);case "%c":return n++,"";case "%j":try{return JSON.stringify(e[n++])}catch(s){let c=s.message;if(c.includes("circular structure")||c.includes("cyclic structures")||c.includes("cyclic object"))return "[Circular]";throw s}default:return i}});for(let i=e[n];n<t;i=e[++n])i===null||typeof i!="object"?o+=` ${i}`:o+=` ${kt(i)}`;return o}a(fn,"format");function kt(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),nr(e,t)}a(kt,"inspect");function Xo(e,t={}){typeof t.truncate>"u"&&(t.truncate=40);let n=kt(e,t),r=Object.prototype.toString.call(e);if(t.truncate&&n.length>=t.truncate)if(r==="[object Function]"){let o=e;return o.name?`[Function: ${o.name}]`:"[Function]"}else {if(r==="[object Array]")return `[ Array(${e.length}) ]`;if(r==="[object Object]"){let o=Object.keys(e);return `{ Object (${o.length>2?`${o.splice(0,2).join(", ")}, ...`:o.join(", ")}) }`}else return n}return n}a(Xo,"objDisplay");function ac(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a(ac,"getDefaultExportFromCjs");function Go(e){let{message:t="$$stack trace error",stackTraceLimit:n=1}=e||{},r=Error.stackTraceLimit,o=Error.prepareStackTrace;Error.stackTraceLimit=n,Error.prepareStackTrace=c=>c.stack;let s=new Error(t).stack||"";return Error.prepareStackTrace=o,Error.stackTraceLimit=r,s}a(Go,"createSimpleStackTrace");function Ne(e,t,n){let r=typeof e;if(!n.includes(r))throw new TypeError(`${t} value must be ${n.join(" or ")}, received "${r}"`)}a(Ne,"assertTypes");function or(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}a(or,"toArray");function ut(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}a(ut,"isObject");function Ep(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}a(Ep,"isFinalObj");function yt(e){return Object.prototype.toString.apply(e).slice(8,-1)}a(yt,"getType");function Ip(e,t){let n=typeof t=="function"?t:r=>t.add(r);Object.getOwnPropertyNames(e).forEach(n),Object.getOwnPropertySymbols(e).forEach(n);}a(Ip,"collectOwnProperties");function ir(e){let t=new Set;return Ep(e)?[]:(Ip(e,t),Array.from(t))}a(ir,"getOwnProperties");var cc={forceWritable:false};function sr(e,t=cc){return rr(e,new WeakMap,t)}a(sr,"deepClone");function rr(e,t,n=cc){let r,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array.from({length:r=e.length}),t.set(e,o);r--;)o[r]=rr(e[r],t,n);return o}if(Object.prototype.toString.call(e)==="[object Object]"){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let i=ir(e);for(let s of i){let c=Object.getOwnPropertyDescriptor(e,s);if(!c)continue;let l=rr(e[s],t,n);n.forceWritable?Object.defineProperty(o,s,{enumerable:c.enumerable,configurable:true,writable:true,value:l}):"get"in c?Object.defineProperty(o,s,{...c,get(){return l}}):Object.defineProperty(o,s,{...c,value:l});}return o}return e}a(rr,"clone");function Yo(){}a(Yo,"noop");function ar(e,t,n=void 0){let r=t.replace(/\[(\d+)\]/g,".$1").split("."),o=e;for(let i of r)if(o=new Object(o)[i],o===void 0)return n;return o}a(ar,"objectAttr");function cr(){let e=null,t=null,n=new Promise((r,o)=>{e=r,t=o;});return n.resolve=e,n.reject=t,n}a(cr,"createDefer");function Ho(e){if(!Number.isNaN(e))return false;let t=new Float64Array(1);return t[0]=e,new Uint32Array(t.buffer)[1]>>>31===1}a(Ho,"isNegativeNaN");var Zo,lc;function Cp(){if(lc)return Zo;lc=1;var e,t,n,r,o,i,s,c,l,u,f,h,m,d,g,p,S,T,I;return m=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,h=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,e=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,g=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,f=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,p=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,I=/[\t\v\f\ufeff\p{Zs}]+/yu,c=/\r?\n|[\r\u2028\u2029]/y,l=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,d=/\/\/.*/y,n=/[<>.:={}]|\/(?![\/*])/y,t=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,r=/(['"])(?:(?!\1)[^])*(\1)?/y,o=/[^<>{}]+/y,T=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,S=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,i=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,s=/^(?:return|throw|yield)$/,u=RegExp(c.source),Zo=a(function*(P,{jsx:A=false}={}){var $,j,k,O,M,K,_,V,le,U,Z,R,Y,L;for({length:K}=P,O=0,M="",L=[{tag:"JS"}],$=[],Z=0,R=false;O<K;){switch(V=L[L.length-1],V.tag){case "JS":case "JSNonExpressionParen":case "InterpolationInTemplate":case "InterpolationInJSX":if(P[O]==="/"&&(T.test(M)||i.test(M))&&(m.lastIndex=O,_=m.exec(P))){O=m.lastIndex,M=_[0],R=true,yield {type:"RegularExpressionLiteral",value:_[0],closed:_[1]!==void 0&&_[1]!=="\\"};continue}if(h.lastIndex=O,_=h.exec(P)){switch(Y=_[0],le=h.lastIndex,U=Y,Y){case "(":M==="?NonExpressionParenKeyword"&&L.push({tag:"JSNonExpressionParen",nesting:Z}),Z++,R=false;break;case ")":Z--,R=true,V.tag==="JSNonExpressionParen"&&Z===V.nesting&&(L.pop(),U="?NonExpressionParenEnd",R=false);break;case "{":h.lastIndex=0,k=!S.test(M)&&(T.test(M)||i.test(M)),$.push(k),R=false;break;case "}":switch(V.tag){case "InterpolationInTemplate":if($.length===V.nesting){p.lastIndex=O,_=p.exec(P),O=p.lastIndex,M=_[0],_[1]==="${"?(M="?InterpolationInTemplate",R=false,yield {type:"TemplateMiddle",value:_[0]}):(L.pop(),R=true,yield {type:"TemplateTail",value:_[0],closed:_[1]==="`"});continue}break;case "InterpolationInJSX":if($.length===V.nesting){L.pop(),O+=1,M="}",yield {type:"JSXPunctuator",value:"}"};continue}}R=$.pop(),U=R?"?ExpressionBraceEnd":"}";break;case "]":R=true;break;case "++":case "--":U=R?"?PostfixIncDec":"?UnaryIncDec";break;case "<":if(A&&(T.test(M)||i.test(M))){L.push({tag:"JSXTag"}),O+=1,M="<",yield {type:"JSXPunctuator",value:Y};continue}R=false;break;default:R=false;}O=le,M=U,yield {type:"Punctuator",value:Y};continue}if(e.lastIndex=O,_=e.exec(P)){switch(O=e.lastIndex,U=_[0],_[0]){case "for":case "if":case "while":case "with":M!=="."&&M!=="?."&&(U="?NonExpressionParenKeyword");}M=U,R=!i.test(_[0]),yield {type:_[1]==="#"?"PrivateIdentifier":"IdentifierName",value:_[0]};continue}if(g.lastIndex=O,_=g.exec(P)){O=g.lastIndex,M=_[0],R=true,yield {type:"StringLiteral",value:_[0],closed:_[2]!==void 0};continue}if(f.lastIndex=O,_=f.exec(P)){O=f.lastIndex,M=_[0],R=true,yield {type:"NumericLiteral",value:_[0]};continue}if(p.lastIndex=O,_=p.exec(P)){O=p.lastIndex,M=_[0],_[1]==="${"?(M="?InterpolationInTemplate",L.push({tag:"InterpolationInTemplate",nesting:$.length}),R=false,yield {type:"TemplateHead",value:_[0]}):(R=true,yield {type:"NoSubstitutionTemplate",value:_[0],closed:_[1]==="`"});continue}break;case "JSXTag":case "JSXTagEnd":if(n.lastIndex=O,_=n.exec(P)){switch(O=n.lastIndex,U=_[0],_[0]){case "<":L.push({tag:"JSXTag"});break;case ">":L.pop(),M==="/"||V.tag==="JSXTagEnd"?(U="?JSX",R=true):L.push({tag:"JSXChildren"});break;case "{":L.push({tag:"InterpolationInJSX",nesting:$.length}),U="?InterpolationInJSX",R=false;break;case "/":M==="<"&&(L.pop(),L[L.length-1].tag==="JSXChildren"&&L.pop(),L.push({tag:"JSXTagEnd"}));}M=U,yield {type:"JSXPunctuator",value:_[0]};continue}if(t.lastIndex=O,_=t.exec(P)){O=t.lastIndex,M=_[0],yield {type:"JSXIdentifier",value:_[0]};continue}if(r.lastIndex=O,_=r.exec(P)){O=r.lastIndex,M=_[0],yield {type:"JSXString",value:_[0],closed:_[2]!==void 0};continue}break;case "JSXChildren":if(o.lastIndex=O,_=o.exec(P)){O=o.lastIndex,M=_[0],yield {type:"JSXText",value:_[0]};continue}switch(P[O]){case "<":L.push({tag:"JSXTag"}),O++,M="<",yield {type:"JSXPunctuator",value:"<"};continue;case "{":L.push({tag:"InterpolationInJSX",nesting:$.length}),O++,M="?InterpolationInJSX",R=false,yield {type:"JSXPunctuator",value:"{"};continue}}if(I.lastIndex=O,_=I.exec(P)){O=I.lastIndex,yield {type:"WhiteSpace",value:_[0]};continue}if(c.lastIndex=O,_=c.exec(P)){O=c.lastIndex,R=false,s.test(M)&&(M="?NoLineTerminatorHere"),yield {type:"LineTerminatorSequence",value:_[0]};continue}if(l.lastIndex=O,_=l.exec(P)){O=l.lastIndex,u.test(_[0])&&(R=false,s.test(M)&&(M="?NoLineTerminatorHere")),yield {type:"MultiLineComment",value:_[0],closed:_[1]!==void 0};continue}if(d.lastIndex=O,_=d.exec(P)){O=d.lastIndex,R=false,yield {type:"SingleLineComment",value:_[0]};continue}j=String.fromCodePoint(P.codePointAt(O)),O+=j.length,M=j,R=false,yield {type:V.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:j};}},"jsTokens_1"),Zo}a(Cp,"requireJsTokens");Cp();var fc={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(fc.keyword);new Set(fc.strict);var uc=Symbol("vitest:SAFE_TIMERS");function ft(){let{setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:r,setImmediate:o,clearImmediate:i,queueMicrotask:s}=globalThis[uc]||globalThis,{nextTick:c}=globalThis[uc]||globalThis.process||{nextTick:a(l=>l(),"nextTick")};return {nextTick:c,setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:r,setImmediate:o,clearImmediate:i,queueMicrotask:s}}a(ft,"getSafeTimers");var ke=-1,_e=1,pe=0,fe=class{static{a(this,"Diff");}0;1;constructor(t,n){this[0]=t,this[1]=n;}};function _p(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let n=0,r=Math.min(e.length,t.length),o=r,i=0;for(;n<o;)e.substring(i,o)===t.substring(i,o)?(n=o,i=n):r=o,o=Math.floor((r-n)/2+n);return o}a(_p,"diff_commonPrefix");function _c(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),o=r,i=0;for(;n<o;)e.substring(e.length-o,e.length-i)===t.substring(t.length-o,t.length-i)?(n=o,i=n):r=o,o=Math.floor((r-n)/2+n);return o}a(_c,"diff_commonSuffix");function hc(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 o=Math.min(n,r);if(e===t)return o;let i=0,s=1;for(;;){let c=e.substring(o-s),l=t.indexOf(c);if(l===-1)return i;s+=l,(l===0||e.substring(o-s)===t.substring(0,s))&&(i=s,s++);}}a(hc,"diff_commonOverlap_");function Op(e){let t=false,n=[],r=0,o=null,i=0,s=0,c=0,l=0,u=0;for(;i<e.length;)e[i][0]===pe?(n[r++]=i,s=l,c=u,l=0,u=0,o=e[i][1]):(e[i][0]===_e?l+=e[i][1].length:u+=e[i][1].length,o&&o.length<=Math.max(s,c)&&o.length<=Math.max(l,u)&&(e.splice(n[r-1],0,new fe(ke,o)),e[n[r-1]+1][0]=_e,r--,r--,i=r>0?n[r-1]:-1,s=0,c=0,l=0,u=0,o=null,t=true)),i++;for(t&&Oc(e),Ap(e),i=1;i<e.length;){if(e[i-1][0]===ke&&e[i][0]===_e){let f=e[i-1][1],h=e[i][1],m=hc(f,h),d=hc(h,f);m>=d?(m>=f.length/2||m>=h.length/2)&&(e.splice(i,0,new fe(pe,h.substring(0,m))),e[i-1][1]=f.substring(0,f.length-m),e[i+1][1]=h.substring(m),i++):(d>=f.length/2||d>=h.length/2)&&(e.splice(i,0,new fe(pe,f.substring(0,d))),e[i-1][0]=_e,e[i-1][1]=h.substring(0,h.length-d),e[i+1][0]=ke,e[i+1][1]=f.substring(d),i++),i++;}i++;}}a(Op,"diff_cleanupSemantic");var dc=/[^a-z0-9]/i,pc=/\s/,mc=/[\r\n]/,Pp=/\n\r?\n$/,$p=/^\r?\n\r?\n/;function Ap(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===pe&&e[t+1][0]===pe){let n=e[t-1][1],r=e[t][1],o=e[t+1][1],i=_c(n,r);if(i){let f=r.substring(r.length-i);n=n.substring(0,n.length-i),r=f+r.substring(0,r.length-i),o=f+o;}let s=n,c=r,l=o,u=lr(n,r)+lr(r,o);for(;r.charAt(0)===o.charAt(0);){n+=r.charAt(0),r=r.substring(1)+o.charAt(0),o=o.substring(1);let f=lr(n,r)+lr(r,o);f>=u&&(u=f,s=n,c=r,l=o);}e[t-1][1]!==s&&(s?e[t-1][1]=s:(e.splice(t-1,1),t--),e[t][1]=c,l?e[t+1][1]=l:(e.splice(t+1,1),t--));}t++;}}a(Ap,"diff_cleanupSemanticLossless");function Oc(e){e.push(new fe(pe,""));let t=0,n=0,r=0,o="",i="",s;for(;t<e.length;)switch(e[t][0]){case _e:r++,i+=e[t][1],t++;break;case ke:n++,o+=e[t][1],t++;break;case pe:n+r>1?(n!==0&&r!==0&&(s=_p(i,o),s!==0&&(t-n-r>0&&e[t-n-r-1][0]===pe?e[t-n-r-1][1]+=i.substring(0,s):(e.splice(0,0,new fe(pe,i.substring(0,s))),t++),i=i.substring(s),o=o.substring(s)),s=_c(i,o),s!==0&&(e[t][1]=i.substring(i.length-s)+e[t][1],i=i.substring(0,i.length-s),o=o.substring(0,o.length-s))),t-=n+r,e.splice(t,n+r),o.length&&(e.splice(t,0,new fe(ke,o)),t++),i.length&&(e.splice(t,0,new fe(_e,i)),t++),t++):t!==0&&e[t-1][0]===pe?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,r=0,n=0,o="",i="";break}e[e.length-1][1]===""&&e.pop();let c=false;for(t=1;t<e.length-1;)e[t-1][0]===pe&&e[t+1][0]===pe&&(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),c=true):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),c=true)),t++;c&&Oc(e);}a(Oc,"diff_cleanupMerge");function lr(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),o=n.match(dc),i=r.match(dc),s=o&&n.match(pc),c=i&&r.match(pc),l=s&&n.match(mc),u=c&&r.match(mc),f=l&&e.match(Pp),h=u&&t.match($p);return f||h?5:l||u?4:o&&!s&&c?3:s||c?2:o||i?1:0}a(lr,"diff_cleanupSemanticScore_");var Pc="Compared values have no visual difference.",kp="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",ur={},gc;function Np(){if(gc)return ur;gc=1,Object.defineProperty(ur,"__esModule",{value:true}),ur.default=m;let e="diff-sequences",t=0,n=a((d,g,p,S,T)=>{let I=0;for(;d<g&&p<S&&T(d,p);)d+=1,p+=1,I+=1;return I},"countCommonItemsF"),r=a((d,g,p,S,T)=>{let I=0;for(;d<=g&&p<=S&&T(g,S);)g-=1,S-=1,I+=1;return I},"countCommonItemsR"),o=a((d,g,p,S,T,I,P)=>{let A=0,$=-d,j=I[A],k=j;I[A]+=n(j+1,g,S+j-$+1,p,T);let O=d<P?d:P;for(A+=1,$+=2;A<=O;A+=1,$+=2){if(A!==d&&k<I[A])j=I[A];else if(j=k+1,g<=j)return A-1;k=I[A],I[A]=j+n(j+1,g,S+j-$+1,p,T);}return P},"extendPathsF"),i=a((d,g,p,S,T,I,P)=>{let A=0,$=d,j=I[A],k=j;I[A]-=r(g,j-1,p,S+j-$-1,T);let O=d<P?d:P;for(A+=1,$-=2;A<=O;A+=1,$-=2){if(A!==d&&I[A]<k)j=I[A];else if(j=k-1,j<g)return A-1;k=I[A],I[A]=j-r(g,j-1,p,S+j-$-1,T);}return P},"extendPathsR"),s=a((d,g,p,S,T,I,P,A,$,j,k)=>{let O=S-g,M=p-g,_=T-S-M,V=-_-(d-1),le=-_+(d-1),U=t,Z=d<A?d:A;for(let R=0,Y=-d;R<=Z;R+=1,Y+=2){let L=R===0||R!==d&&U<P[R],de=L?P[R]:U,Te=L?de:de+1,qe=O+Te-Y,Ie=n(Te+1,p,qe+1,T,I),Oe=Te+Ie;if(U=P[R],P[R]=Oe,V<=Y&&Y<=le){let Xe=(d-1-(Y+_))/2;if(Xe<=j&&$[Xe]-1<=Oe){let Re=O+de-(L?Y+1:Y-1),Pe=r(g,de,S,Re,I),$e=de-Pe,dt=Re-Pe,We=$e+1,Ot=dt+1;k.nChangePreceding=d-1,d-1===We+Ot-g-S?(k.aEndPreceding=g,k.bEndPreceding=S):(k.aEndPreceding=We,k.bEndPreceding=Ot),k.nCommonPreceding=Pe,Pe!==0&&(k.aCommonPreceding=We,k.bCommonPreceding=Ot),k.nCommonFollowing=Ie,Ie!==0&&(k.aCommonFollowing=Te+1,k.bCommonFollowing=qe+1);let xe=Oe+1,Ge=qe+Ie+1;return k.nChangeFollowing=d-1,d-1===p+T-xe-Ge?(k.aStartFollowing=p,k.bStartFollowing=T):(k.aStartFollowing=xe,k.bStartFollowing=Ge),true}}}return false},"extendOverlappablePathsF"),c=a((d,g,p,S,T,I,P,A,$,j,k)=>{let O=T-p,M=p-g,_=T-S-M,V=_-d,le=_+d,U=t,Z=d<j?d:j;for(let R=0,Y=d;R<=Z;R+=1,Y-=2){let L=R===0||R!==d&&$[R]<U,de=L?$[R]:U,Te=L?de:de-1,qe=O+Te-Y,Ie=r(g,Te-1,S,qe-1,I),Oe=Te-Ie;if(U=$[R],$[R]=Oe,V<=Y&&Y<=le){let Xe=(d+(Y-_))/2;if(Xe<=A&&Oe-1<=P[Xe]){let Re=qe-Ie;if(k.nChangePreceding=d,d===Oe+Re-g-S?(k.aEndPreceding=g,k.bEndPreceding=S):(k.aEndPreceding=Oe,k.bEndPreceding=Re),k.nCommonPreceding=Ie,Ie!==0&&(k.aCommonPreceding=Oe,k.bCommonPreceding=Re),k.nChangeFollowing=d-1,d===1)k.nCommonFollowing=0,k.aStartFollowing=p,k.bStartFollowing=T;else {let Pe=O+de-(L?Y-1:Y+1),$e=n(de,p,Pe,T,I);k.nCommonFollowing=$e,$e!==0&&(k.aCommonFollowing=de,k.bCommonFollowing=Pe);let dt=de+$e,We=Pe+$e;d-1===p+T-dt-We?(k.aStartFollowing=p,k.bStartFollowing=T):(k.aStartFollowing=dt,k.bStartFollowing=We);}return true}}}return false},"extendOverlappablePathsR"),l=a((d,g,p,S,T,I,P,A,$)=>{let j=S-g,k=T-p,O=p-g,M=T-S,K=M-O,_=O,V=O;if(P[0]=g-1,A[0]=p,K%2===0){let le=(d||K)/2,U=(O+M)/2;for(let Z=1;Z<=U;Z+=1)if(_=o(Z,p,T,j,I,P,_),Z<le)V=i(Z,g,S,k,I,A,V);else if(c(Z,g,p,S,T,I,P,_,A,V,$))return}else {let le=((d||K)+1)/2,U=(O+M+1)/2,Z=1;for(_=o(Z,p,T,j,I,P,_),Z+=1;Z<=U;Z+=1)if(V=i(Z-1,g,S,k,I,A,V),Z<le)_=o(Z,p,T,j,I,P,_);else if(s(Z,g,p,S,T,I,P,_,A,V,$))return}throw new Error(`${e}: no overlap aStart=${g} aEnd=${p} bStart=${S} bEnd=${T}`)},"divide"),u=a((d,g,p,S,T,I,P,A,$,j)=>{if(T-S<p-g){if(I=!I,I&&P.length===1){let{foundSubsequence:Oe,isCommon:Xe}=P[0];P[1]={foundSubsequence:a((Re,Pe,$e)=>{Oe(Re,$e,Pe);},"foundSubsequence"),isCommon:a((Re,Pe)=>Xe(Pe,Re),"isCommon")};}let qe=g,Ie=p;g=S,p=T,S=qe,T=Ie;}let{foundSubsequence:k,isCommon:O}=P[I?1:0];l(d,g,p,S,T,O,A,$,j);let{nChangePreceding:M,aEndPreceding:K,bEndPreceding:_,nCommonPreceding:V,aCommonPreceding:le,bCommonPreceding:U,nCommonFollowing:Z,aCommonFollowing:R,bCommonFollowing:Y,nChangeFollowing:L,aStartFollowing:de,bStartFollowing:Te}=j;g<K&&S<_&&u(M,g,K,S,_,I,P,A,$,j),V!==0&&k(V,le,U),Z!==0&&k(Z,R,Y),de<p&&Te<T&&u(L,de,p,Te,T,I,P,A,$,j);},"findSubsequences"),f=a((d,g)=>{if(typeof g!="number")throw new TypeError(`${e}: ${d} typeof ${typeof g} is not a number`);if(!Number.isSafeInteger(g))throw new RangeError(`${e}: ${d} value ${g} is not a safe integer`);if(g<0)throw new RangeError(`${e}: ${d} value ${g} is a negative integer`)},"validateLength"),h=a((d,g)=>{let p=typeof g;if(p!=="function")throw new TypeError(`${e}: ${d} typeof ${p} is not a function`)},"validateCallback");function m(d,g,p,S){f("aLength",d),f("bLength",g),h("isCommon",p),h("foundSubsequence",S);let T=n(0,d,0,g,p);if(T!==0&&S(T,0,0),d!==T||g!==T){let I=T,P=T,A=r(I,d-1,P,g-1,p),$=d-A,j=g-A,k=T+A;d!==k&&g!==k&&u(0,I,$,P,j,false,[{foundSubsequence:S,isCommon:p}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),A!==0&&S(A,$,j);}}return a(m,"diffSequence"),ur}a(Np,"requireBuild");var Mp=Np(),$c=ac(Mp);function Rp(e,t){return e.replace(/\s+$/,n=>t(n))}a(Rp,"formatTrailingSpaces");function ii(e,t,n,r,o,i){return e.length!==0?n(`${r} ${Rp(e,o)}`):r!==" "?n(r):t&&i.length!==0?n(`${r} ${i}`):""}a(ii,"printDiffLine");function Ac(e,t,{aColor:n,aIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return ii(e,t,n,r,o,i)}a(Ac,"printDeleteLine");function kc(e,t,{bColor:n,bIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return ii(e,t,n,r,o,i)}a(kc,"printInsertLine");function Nc(e,t,{commonColor:n,commonIndicator:r,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return ii(e,t,n,r,o,i)}a(Nc,"printCommonLine");function yc(e,t,n,r,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${n+1},${r-n} @@`)}a(yc,"createPatchMark");function jp(e,t){let n=e.length,r=t.contextLines,o=r+r,i=n,s=false,c=0,l=0;for(;l!==n;){let A=l;for(;l!==n&&e[l][0]===pe;)l+=1;if(A!==l)if(A===0)l>r&&(i-=l-r,s=true);else if(l===n){let $=l-A;$>r&&(i-=$-r,s=true);}else {let $=l-A;$>o&&(i-=$-o,c+=1);}for(;l!==n&&e[l][0]!==pe;)l+=1;}let u=c!==0||s;c!==0?i+=c+1:s&&(i+=1);let f=i-1,h=[],m=0;u&&h.push("");let d=0,g=0,p=0,S=0,T=a(A=>{let $=h.length;h.push(Nc(A,$===0||$===f,t)),p+=1,S+=1;},"pushCommonLine"),I=a(A=>{let $=h.length;h.push(Ac(A,$===0||$===f,t)),p+=1;},"pushDeleteLine"),P=a(A=>{let $=h.length;h.push(kc(A,$===0||$===f,t)),S+=1;},"pushInsertLine");for(l=0;l!==n;){let A=l;for(;l!==n&&e[l][0]===pe;)l+=1;if(A!==l)if(A===0){l>r&&(A=l-r,d=A,g=A,p=d,S=g);for(let $=A;$!==l;$+=1)T(e[$][1]);}else if(l===n){let $=l-A>r?A+r:l;for(let j=A;j!==$;j+=1)T(e[j][1]);}else {let $=l-A;if($>o){let j=A+r;for(let O=A;O!==j;O+=1)T(e[O][1]);h[m]=yc(d,p,g,S,t),m=h.length,h.push("");let k=$-o;d=p+k,g=S+k,p=d,S=g;for(let O=l-r;O!==l;O+=1)T(e[O][1]);}else for(let j=A;j!==l;j+=1)T(e[j][1]);}for(;l!==n&&e[l][0]===ke;)I(e[l][1]),l+=1;for(;l!==n&&e[l][0]===_e;)P(e[l][1]),l+=1;}return u&&(h[m]=yc(d,p,g,S,t)),h.join(`
19
- `)}a(jp,"joinAlignedDiffsNoExpand");function Fp(e,t){return e.map((n,r,o)=>{let i=n[1],s=r===0||r===o.length-1;switch(n[0]){case ke:return Ac(i,s,t);case _e:return kc(i,s,t);default:return Nc(i,s,t)}}).join(`
20
- `)}a(Fp,"joinAlignedDiffsExpand");var Qo=a(e=>e,"noColor"),Mc=5,Lp=0;function Dp(){return {aAnnotation:"Expected",aColor:ue.green,aIndicator:"-",bAnnotation:"Received",bColor:ue.red,bIndicator:"+",changeColor:ue.inverse,changeLineTrailingSpaceColor:Qo,commonColor:ue.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Qo,compareKeys:void 0,contextLines:Mc,emptyFirstOrLastLinePlaceholder:"",expand:false,includeChangeCounts:false,omitAnnotationLines:false,patchColor:ue.yellow,printBasicPrototype:false,truncateThreshold:Lp,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:Qo}}a(Dp,"getDefaultOptions");function qp(e){return e&&typeof e=="function"?e:void 0}a(qp,"getCompareKeys");function Bp(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:Mc}a(Bp,"getContextLines");function Nt(e={}){return {...Dp(),...e,compareKeys:qp(e.compareKeys),contextLines:Bp(e.contextLines)}}a(Nt,"normalizeDiffOptions");function Jt(e){return e.length===1&&e[0].length===0}a(Jt,"isEmptyString");function zp(e){let t=0,n=0;return e.forEach(r=>{switch(r[0]){case ke:t+=1;break;case _e:n+=1;break}}),{a:t,b:n}}a(zp,"countChanges");function Wp({aAnnotation:e,aColor:t,aIndicator:n,bAnnotation:r,bColor:o,bIndicator:i,includeChangeCounts:s,omitAnnotationLines:c},l){if(c)return "";let u="",f="";if(s){let d=String(l.a),g=String(l.b),p=r.length-e.length,S=" ".repeat(Math.max(0,p)),T=" ".repeat(Math.max(0,-p)),I=g.length-d.length,P=" ".repeat(Math.max(0,I)),A=" ".repeat(Math.max(0,-I));u=`${S} ${n} ${P}${d}`,f=`${T} ${i} ${A}${g}`;}let h=`${n} ${e}${u}`,m=`${i} ${r}${f}`;return `${t(h)}
21
- ${o(m)}
22
-
23
- `}a(Wp,"printAnnotation");function si(e,t,n){return Wp(n,zp(e))+(n.expand?Fp(e,n):jp(e,n))+(t?n.truncateAnnotationColor(`
24
- ${n.truncateAnnotation}`):"")}a(si,"printDiffLines");function hr(e,t,n){let r=Nt(n),[o,i]=Rc(Jt(e)?[]:e,Jt(t)?[]:t,r);return si(o,i,r)}a(hr,"diffLinesUnified");function Up(e,t,n,r,o){if(Jt(e)&&Jt(n)&&(e=[],n=[]),Jt(t)&&Jt(r)&&(t=[],r=[]),e.length!==n.length||t.length!==r.length)return hr(e,t,o);let[i,s]=Rc(n,r,o),c=0,l=0;return i.forEach(u=>{switch(u[0]){case ke:u[1]=e[c],c+=1;break;case _e:u[1]=t[l],l+=1;break;default:u[1]=t[l],c+=1,l+=1;}}),si(i,s,Nt(o))}a(Up,"diffLinesUnified2");function Rc(e,t,n){let r=n?.truncateThreshold??false,o=Math.max(Math.floor(n?.truncateThreshold??0),0),i=r?Math.min(e.length,o):e.length,s=r?Math.min(t.length,o):t.length,c=i!==e.length||s!==t.length,l=a((d,g)=>e[d]===t[g],"isCommon"),u=[],f=0,h=0;for($c(i,s,l,a((d,g,p)=>{for(;f!==g;f+=1)u.push(new fe(ke,e[f]));for(;h!==p;h+=1)u.push(new fe(_e,t[h]));for(;d!==0;d-=1,f+=1,h+=1)u.push(new fe(pe,t[h]));},"foundSubsequence"));f!==i;f+=1)u.push(new fe(ke,e[f]));for(;h!==s;h+=1)u.push(new fe(_e,t[h]));return [u,c]}a(Rc,"diffLinesRaw");function bc(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"}else if(typeof e=="symbol")return "symbol";throw new Error(`value of unknown type: ${e}`)}a(bc,"getType");function wc(e){return e.includes(`\r
17
+ `}}a(Ws,"getConfig");function od(e){return Array.from({length:e+1}).join(" ")}a(od,"createIndent");function Ie(e,t){if(t&&(td(t),t.plugins)){let r=sa(t.plugins,e);if(r!==null)return ia(r,e,Ws(t),"",0,[])}let n=ra(e,ca(t),la(t),ua(t));return n!==null?n:oa(e,Ws(t),"",0,[])}a(Ie,"format");var wt={AsymmetricMatcher:Gf,DOMCollection:eh,DOMElement:fh,Immutable:_h,ReactElement:Lh,ReactTestComponent:Wh,Error:Qh};var fa={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"]},id={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},At="\u2026";function sd(e,t){let n=fa[id[t]]||fa[t]||"";return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}a(sd,"colorise");function ad({showHidden:e=false,depth:t=2,colors:n=false,customInspect:r=true,showProxy:o=false,maxArrayLength:i=1/0,breakLength:s=1/0,seen:c=[],truncate:u=1/0,stylize:l=String}={},f){let h={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(s),truncate:Number(u),seen:c,inspect:f,stylize:l};return h.colors&&(h.stylize=sd),h}a(ad,"normaliseOptions");function cd(e){return e>="\uD800"&&e<="\uDBFF"}a(cd,"isHighSurrogate");function ft(e,t,n=At){e=String(e);let r=n.length,o=e.length;if(r>t&&o>r)return n;if(o>t&&o>r){let i=t-r;return i>0&&cd(e[i-1])&&(i=i-1),`${e.slice(0,i)}${n}`}return e}a(ft,"truncate");function He(e,t,n,r=", "){n=n||t.inspect;let o=e.length;if(o===0)return "";let i=t.truncate,s="",c="",u="";for(let l=0;l<o;l+=1){let f=l+1===e.length,h=l+2===e.length;u=`${At}(${e.length-l})`;let d=e[l];t.truncate=i-s.length-(f?0:r.length);let p=c||n(d,t)+(f?"":r),m=s.length+p.length,y=m+u.length;if(f&&m>i&&s.length+u.length<=i||!f&&!h&&y>i||(c=f?"":n(e[l+1],t)+(h?"":r),!f&&h&&y>i&&m+c.length>i))break;if(s+=p,!f&&!h&&m+c.length>=i){u=`${At}(${e.length-l-1})`;break}u="";}return `${s}${u}`}a(He,"inspectList");function ld(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}a(ld,"quoteComplexKey");function Qt([e,t],n){return n.truncate-=2,typeof e=="string"?e=ld(e):typeof e!="number"&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}a(Qt,"inspectProperty");function ud(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return "[]";t.truncate-=4;let r=He(e,t);t.truncate-=r.length;let o="";return n.length&&(o=He(n.map(i=>[i,e[i]]),t,Qt)),`[ ${r}${o?`, ${o}`:""} ]`}a(ud,"inspectArray");var fd=a(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function rt(e,t){let n=fd(e);t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return `${n}[]`;let o="";for(let s=0;s<e.length;s++){let c=`${t.stylize(ft(e[s],t.truncate),"number")}${s===e.length-1?"":", "}`;if(t.truncate-=c.length,e[s]!==e.length&&t.truncate<=3){o+=`${At}(${e.length-e[s]+1})`;break}o+=c;}let i="";return r.length&&(i=He(r.map(s=>[s,e[s]]),t,Qt)),`${n}[ ${o}${i?`, ${i}`:""} ]`}a(rt,"inspectTypedArray");function hd(e,t){let n=e.toJSON();if(n===null)return "Invalid Date";let r=n.split("T"),o=r[0];return t.stylize(`${o}T${ft(r[1],t.truncate-o.length-1)}`,"date")}a(hd,"inspectDate");function ha(e,t){let n=e[Symbol.toStringTag]||"Function",r=e.name;return r?t.stylize(`[${n} ${ft(r,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}a(ha,"inspectFunction");function dd([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}a(dd,"inspectMapEntry");function pd(e){let t=[];return e.forEach((n,r)=>{t.push([r,n]);}),t}a(pd,"mapToEntries");function md(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${He(pd(e),t,dd)} }`)}a(md,"inspectMap");var gd=Number.isNaN||(e=>e!==e);function da(e,t){return gd(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(ft(String(e),t.truncate),"number")}a(da,"inspectNumber");function pa(e,t){let n=ft(e.toString(),t.truncate-1);return n!==At&&(n+="n"),t.stylize(n,"bigint")}a(pa,"inspectBigInt");function yd(e,t){let n=e.toString().split("/")[2],r=t.truncate-(2+n.length),o=e.source;return t.stylize(`/${ft(o,r)}/${n}`,"regexp")}a(yd,"inspectRegExp");function bd(e){let t=[];return e.forEach(n=>{t.push(n);}),t}a(bd,"arrayFromSet");function wd(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${He(bd(e),t)} }`)}a(wd,"inspectSet");var ma=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),vd={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},Sd=16;function Td(e){return vd[e]||`\\u${`0000${e.charCodeAt(0).toString(Sd)}`.slice(-4)}`}a(Td,"escape");function ga(e,t){return ma.test(e)&&(e=e.replace(ma,Td)),t.stylize(`'${ft(e,t.truncate-2)}'`,"string")}a(ga,"inspectString");function ya(e){return "description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}a(ya,"inspectSymbol");var Ed=a(()=>"Promise{\u2026}","getPromiseValue");function Fn(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 o=He(n.map(c=>[c,e[c]]),t,Qt),i=He(r.map(c=>[c,e[c]]),t,Qt);t.seen.pop();let s="";return o&&i&&(s=", "),`{ ${o}${s}${i} }`}a(Fn,"inspectObject$1");var no=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:false;function xd(e,t){let n="";return no&&no in e&&(n=e[no]),n=n||e.constructor.name,(!n||n==="_class")&&(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${Fn(e,t)}`}a(xd,"inspectClass");function Md(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${He(e,t)} ]`)}a(Md,"inspectArguments");var _d=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Od(e,t){let n=Object.getOwnPropertyNames(e).filter(s=>_d.indexOf(s)===-1),r=e.name;t.truncate-=r.length;let o="";if(typeof e.message=="string"?o=ft(e.message,t.truncate):n.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return "[Circular]";t.seen.push(e);let i=He(n.map(s=>[s,e[s]]),t,Qt);return `${r}${o}${i?` { ${i} }`:""}`}a(Od,"inspectObject");function Id([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}a(Id,"inspectAttribute");function io(e,t){return He(e,t,Cd,`
18
+ `)}a(io,"inspectNodeCollection");function Cd(e,t){switch(e.nodeType){case 1:return Ta(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}a(Cd,"inspectNode");function Ta(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),o=t.stylize(`<${r}`,"special"),i=t.stylize(">","special"),s=t.stylize(`</${r}>`,"special");t.truncate-=r.length*2+5;let c="";n.length>0&&(c+=" ",c+=He(n.map(f=>[f,e.getAttribute(f)]),t,Id," ")),t.truncate-=c.length;let u=t.truncate,l=io(e.children,t);return l&&l.length>u&&(l=`${At}(${e.children.length})`),`${o}${c}${i}${l}${s}`}a(Ta,"inspectHTML");var kd=typeof Symbol=="function"&&typeof Symbol.for=="function",ro=kd?Symbol.for("chai/inspect"):"@@chai/inspect",oo=Symbol.for("nodejs.util.inspect.custom"),ba=new WeakMap,wa={},va={undefined:a((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:a((e,t)=>t.stylize("null","null"),"null"),boolean:a((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:a((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:da,Number:da,bigint:pa,BigInt:pa,string:ga,String:ga,function:ha,Function:ha,symbol:ya,Symbol:ya,Array:ud,Date:hd,Map:md,Set:wd,RegExp:yd,Promise:Ed,WeakSet:a((e,t)=>t.stylize("WeakSet{\u2026}","special"),"WeakSet"),WeakMap:a((e,t)=>t.stylize("WeakMap{\u2026}","special"),"WeakMap"),Arguments:Md,Int8Array:rt,Uint8Array:rt,Uint8ClampedArray:rt,Int16Array:rt,Uint16Array:rt,Int32Array:rt,Uint32Array:rt,Float32Array:rt,Float64Array:rt,Generator:a(()=>"","Generator"),DataView:a(()=>"","DataView"),ArrayBuffer:a(()=>"","ArrayBuffer"),Error:Od,HTMLCollection:io,NodeList:io},$d=a((e,t,n,r)=>ro in e&&typeof e[ro]=="function"?e[ro](t):oo in e&&typeof e[oo]=="function"?e[oo](t.depth,t,r):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&ba.has(e.constructor)?ba.get(e.constructor)(e,t):wa[n]?wa[n](e,t):"","inspectCustom"),Nd=Object.prototype.toString;function Dn(e,t={}){let n=ad(t,Dn),{customInspect:r}=n,o=e===null?"null":typeof e;if(o==="object"&&(o=Nd.call(e).slice(8,-1)),o in va)return va[o](e,n);if(r&&e){let s=$d(e,n,o,Dn);if(s)return typeof s=="string"?s:Dn(s,n)}let i=e?Object.getPrototypeOf(e):false;return i===Object.prototype||i===null?Fn(e,n):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Ta(e,n):"constructor"in e?e.constructor!==Object?xd(e,n):Fn(e,n):e===Object(e)?Fn(e,n):n.stylize(String(e),o)}a(Dn,"inspect$1");var{AsymmetricMatcher:Ad,DOMCollection:Pd,DOMElement:jd,Immutable:Rd,ReactElement:Fd,ReactTestComponent:Dd}=wt,Sa=[Dd,Fd,jd,Pd,Rd,Ad];function be(e,t=10,{maxLength:n,...r}={}){let o=n??1e4,i;try{i=Ie(e,{maxDepth:t,escapeString:false,plugins:Sa,...r});}catch{i=Ie(e,{callToJSON:false,maxDepth:t,escapeString:false,plugins:Sa,...r});}return i.length>=o&&t>1?be(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:n,...r}):i}a(be,"stringify");var so=/%[sdjifoOc%]/g;function Ld(e,t={}){let n=a((c,u)=>t.prettifyObject?be(c,void 0,{printBasicPrototype:false,escapeString:false}):xa(c,u),"formatArg");if(typeof e[0]!="string"){let c=[];for(let u=0;u<e.length;u++)c.push(n(e[u],{depth:0,colors:false}));return c.join(" ")}let r=e.length,o=1,i=e[0],s=String(i).replace(so,c=>{if(c==="%%")return "%";if(o>=r)return c;switch(c){case "%s":{let u=e[o++];return typeof u=="bigint"?`${u.toString()}n`:typeof u=="number"&&u===0&&1/u<0?"-0":typeof u=="object"&&u!==null?typeof u.toString=="function"&&u.toString!==Object.prototype.toString?u.toString():n(u,{depth:0,colors:false}):String(u)}case "%d":{let u=e[o++];return typeof u=="bigint"?`${u.toString()}n`:Number(u).toString()}case "%i":{let u=e[o++];return typeof u=="bigint"?`${u.toString()}n`:Number.parseInt(String(u)).toString()}case "%f":return Number.parseFloat(String(e[o++])).toString();case "%o":return n(e[o++],{showHidden:true,showProxy:true});case "%O":return n(e[o++]);case "%c":return o++,"";case "%j":try{return JSON.stringify(e[o++])}catch(u){let l=u.message;if(l.includes("circular structure")||l.includes("cyclic structures")||l.includes("cyclic object"))return "[Circular]";throw u}default:return c}});for(let c=e[o];o<r;c=e[++o])c===null||typeof c!="object"?s+=` ${c}`:s+=` ${n(c)}`;return s}a(Ld,"baseFormat");function Ea(...e){return Ld(e)}a(Ea,"format");function xa(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Dn(e,t)}a(xa,"inspect");function Ma(e,t={}){typeof t.truncate>"u"&&(t.truncate=40);let n=xa(e,t),r=Object.prototype.toString.call(e);if(t.truncate&&n.length>=t.truncate)if(r==="[object Function]"){let o=e;return o.name?`[Function: ${o.name}]`:"[Function]"}else {if(r==="[object Array]")return `[ Array(${e.length}) ]`;if(r==="[object Object]"){let o=Object.keys(e);return `{ Object (${o.length>2?`${o.splice(0,2).join(", ")}, ...`:o.join(", ")}) }`}else return n}return n}a(Ma,"objDisplay");function _a(e){let{message:t="$$stack trace error",stackTraceLimit:n=1}=e||{},r=Error.stackTraceLimit,o=Error.prepareStackTrace;Error.stackTraceLimit=n,Error.prepareStackTrace=c=>c.stack;let s=new Error(t).stack||"";return Error.prepareStackTrace=o,Error.stackTraceLimit=r,s}a(_a,"createSimpleStackTrace");function me(e,t,n){let r=typeof e;if(!n.includes(r))throw new TypeError(`${t} value must be ${n.join(" or ")}, received "${r}"`)}a(me,"assertTypes");function co(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}a(co,"toArray");function ht(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}a(ht,"isObject");function qd(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}a(qd,"isFinalObj");function vt(e){return Object.prototype.toString.apply(e).slice(8,-1)}a(vt,"getType");function Bd(e,t){let n=typeof t=="function"?t:r=>t.add(r);Object.getOwnPropertyNames(e).forEach(n),Object.getOwnPropertySymbols(e).forEach(n);}a(Bd,"collectOwnProperties");function lo(e){let t=new Set;return qd(e)?[]:(Bd(e,t),Array.from(t))}a(lo,"getOwnProperties");var Oa={forceWritable:false};function uo(e,t=Oa){return ao(e,new WeakMap,t)}a(uo,"deepClone");function ao(e,t,n=Oa){let r,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array.from({length:r=e.length}),t.set(e,o);r--;)o[r]=ao(e[r],t,n);return o}if(Object.prototype.toString.call(e)==="[object Object]"){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let i=lo(e);for(let s of i){let c=Object.getOwnPropertyDescriptor(e,s);if(!c)continue;let u=ao(e[s],t,n);n.forceWritable?Object.defineProperty(o,s,{enumerable:c.enumerable,configurable:true,writable:true,value:u}):"get"in c?Object.defineProperty(o,s,{...c,get(){return u}}):Object.defineProperty(o,s,{...c,value:u});}return o}return e}a(ao,"clone");function Ia(){}a(Ia,"noop");function fo(e,t,n=void 0){let r=t.replace(/\[(\d+)\]/g,".$1").split("."),o=e;for(let i of r)if(o=new Object(o)[i],o===void 0)return n;return o}a(fo,"objectAttr");function ho(){let e=null,t=null,n=new Promise((r,o)=>{e=r,t=o;});return n.resolve=e,n.reject=t,n}a(ho,"createDefer");function Ca(e){if(!Number.isNaN(e))return false;let t=new Float64Array(1);return t[0]=e,new Uint32Array(t.buffer)[1]>>>31===1}a(Ca,"isNegativeNaN");function ka(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a(ka,"getDefaultExportFromCjs");var Te=-1,we=1,ce=0,re=class{static{a(this,"Diff");}0;1;constructor(t,n){this[0]=t,this[1]=n;}};function zd(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let n=0,r=Math.min(e.length,t.length),o=r,i=0;for(;n<o;)e.substring(i,o)===t.substring(i,o)?(n=o,i=n):r=o,o=Math.floor((r-n)/2+n);return o}a(zd,"diff_commonPrefix");function Va(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),o=r,i=0;for(;n<o;)e.substring(e.length-o,e.length-i)===t.substring(t.length-o,t.length-i)?(n=o,i=n):r=o,o=Math.floor((r-n)/2+n);return o}a(Va,"diff_commonSuffix");function $a(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 o=Math.min(n,r);if(e===t)return o;let i=0,s=1;for(;;){let c=e.substring(o-s),u=t.indexOf(c);if(u===-1)return i;s+=u,(u===0||e.substring(o-s)===t.substring(0,s))&&(i=s,s++);}}a($a,"diff_commonOverlap_");function Ud(e){let t=false,n=[],r=0,o=null,i=0,s=0,c=0,u=0,l=0;for(;i<e.length;)e[i][0]===ce?(n[r++]=i,s=u,c=l,u=0,l=0,o=e[i][1]):(e[i][0]===we?u+=e[i][1].length:l+=e[i][1].length,o&&o.length<=Math.max(s,c)&&o.length<=Math.max(u,l)&&(e.splice(n[r-1],0,new re(Te,o)),e[n[r-1]+1][0]=we,r--,r--,i=r>0?n[r-1]:-1,s=0,c=0,u=0,l=0,o=null,t=true)),i++;for(t&&Ka(e),Kd(e),i=1;i<e.length;){if(e[i-1][0]===Te&&e[i][0]===we){let f=e[i-1][1],h=e[i][1],d=$a(f,h),p=$a(h,f);d>=p?(d>=f.length/2||d>=h.length/2)&&(e.splice(i,0,new re(ce,h.substring(0,d))),e[i-1][1]=f.substring(0,f.length-d),e[i+1][1]=h.substring(d),i++):(p>=f.length/2||p>=h.length/2)&&(e.splice(i,0,new re(ce,f.substring(0,p))),e[i-1][0]=we,e[i-1][1]=h.substring(0,h.length-p),e[i+1][0]=Te,e[i+1][1]=f.substring(p),i++),i++;}i++;}}a(Ud,"diff_cleanupSemantic");var Na=/[^a-z0-9]/i,Aa=/\s/,Pa=/[\r\n]/,Wd=/\n\r?\n$/,Vd=/^\r?\n\r?\n/;function Kd(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===ce&&e[t+1][0]===ce){let n=e[t-1][1],r=e[t][1],o=e[t+1][1],i=Va(n,r);if(i){let f=r.substring(r.length-i);n=n.substring(0,n.length-i),r=f+r.substring(0,r.length-i),o=f+o;}let s=n,c=r,u=o,l=Ln(n,r)+Ln(r,o);for(;r.charAt(0)===o.charAt(0);){n+=r.charAt(0),r=r.substring(1)+o.charAt(0),o=o.substring(1);let f=Ln(n,r)+Ln(r,o);f>=l&&(l=f,s=n,c=r,u=o);}e[t-1][1]!==s&&(s?e[t-1][1]=s:(e.splice(t-1,1),t--),e[t][1]=c,u?e[t+1][1]=u:(e.splice(t+1,1),t--));}t++;}}a(Kd,"diff_cleanupSemanticLossless");function Ka(e){var t;e.push(new re(ce,""));let n=0,r=0,o=0,i="",s="",c;for(;n<e.length;)switch(e[n][0]){case we:o++,s+=e[n][1],n++;break;case Te:r++,i+=e[n][1],n++;break;case ce:r+o>1?(r!==0&&o!==0&&(c=zd(s,i),c!==0&&(n-r-o>0&&e[n-r-o-1][0]===ce?e[n-r-o-1][1]+=s.substring(0,c):(e.splice(0,0,new re(ce,s.substring(0,c))),n++),s=s.substring(c),i=i.substring(c)),c=Va(s,i),c!==0&&(e[n][1]=s.substring(s.length-c)+e[n][1],s=s.substring(0,s.length-c),i=i.substring(0,i.length-c))),n-=r+o,e.splice(n,r+o),i.length&&(e.splice(n,0,new re(Te,i)),n++),s.length&&(e.splice(n,0,new re(we,s)),n++),n++):n!==0&&e[n-1][0]===ce?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,o=0,r=0,i="",s="";break}((t=e.at(-1))===null||t===void 0?void 0:t[1])===""&&e.pop();let u=false;for(n=1;n<e.length-1;)e[n-1][0]===ce&&e[n+1][0]===ce&&(e[n][1].substring(e[n][1].length-e[n-1][1].length)===e[n-1][1]?(e[n][1]=e[n-1][1]+e[n][1].substring(0,e[n][1].length-e[n-1][1].length),e[n+1][1]=e[n-1][1]+e[n+1][1],e.splice(n-1,1),u=true):e[n][1].substring(0,e[n+1][1].length)===e[n+1][1]&&(e[n-1][1]+=e[n+1][1],e[n][1]=e[n][1].substring(e[n+1][1].length)+e[n+1][1],e.splice(n+1,1),u=true)),n++;u&&Ka(e);}a(Ka,"diff_cleanupMerge");function Ln(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),o=n.match(Na),i=r.match(Na),s=o&&n.match(Aa),c=i&&r.match(Aa),u=s&&n.match(Pa),l=c&&r.match(Pa),f=u&&e.match(Wd),h=l&&t.match(Vd);return f||h?5:u||l?4:o&&!s&&c?3:s||c?2:o||i?1:0}a(Ln,"diff_cleanupSemanticScore_");var Ga="Compared values have no visual difference.",Gd="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",qn={},ja;function Hd(){if(ja)return qn;ja=1,Object.defineProperty(qn,"__esModule",{value:true}),qn.default=d;let e="diff-sequences",t=0,n=a((p,m,y,v,S)=>{let M=0;for(;p<m&&y<v&&S(p,y);)p+=1,y+=1,M+=1;return M},"countCommonItemsF"),r=a((p,m,y,v,S)=>{let M=0;for(;p<=m&&y<=v&&S(m,v);)m-=1,v-=1,M+=1;return M},"countCommonItemsR"),o=a((p,m,y,v,S,M,$)=>{let O=0,C=-p,N=M[O],I=N;M[O]+=n(N+1,m,v+N-C+1,y,S);let q=p<$?p:$;for(O+=1,C+=2;O<=q;O+=1,C+=2){if(O!==p&&I<M[O])N=M[O];else if(N=I+1,m<=N)return O-1;I=M[O],M[O]=N+n(N+1,m,v+N-C+1,y,S);}return $},"extendPathsF"),i=a((p,m,y,v,S,M,$)=>{let O=0,C=p,N=M[O],I=N;M[O]-=r(m,N-1,y,v+N-C-1,S);let q=p<$?p:$;for(O+=1,C-=2;O<=q;O+=1,C-=2){if(O!==p&&M[O]<I)N=M[O];else if(N=I-1,N<m)return O-1;I=M[O],M[O]=N-r(m,N-1,y,v+N-C-1,S);}return $},"extendPathsR"),s=a((p,m,y,v,S,M,$,O,C,N,I)=>{let q=v-m,X=y-m,H=S-v-X,oe=-H-(p-1),ue=-H+(p-1),fe=t,ie=p<O?p:O;for(let J=0,te=-p;J<=ie;J+=1,te+=2){let $e=J===0||J!==p&&fe<$[J],de=$e?$[J]:fe,ve=$e?de:de+1,Ue=q+ve-te,xe=n(ve+1,y,Ue+1,S,M),Me=ve+xe;if(fe=$[J],$[J]=Me,oe<=te&&te<=ue){let et=(p-1-(te+H))/2;if(et<=N&&C[et]-1<=Me){let Re=q+de-($e?te+1:te-1),_e=r(m,de,v,Re,M),Oe=de-_e,$t=Re-_e,Ze=Oe+1,Ht=$t+1;I.nChangePreceding=p-1,p-1===Ze+Ht-m-v?(I.aEndPreceding=m,I.bEndPreceding=v):(I.aEndPreceding=Ze,I.bEndPreceding=Ht),I.nCommonPreceding=_e,_e!==0&&(I.aCommonPreceding=Ze,I.bCommonPreceding=Ht),I.nCommonFollowing=xe,xe!==0&&(I.aCommonFollowing=ve+1,I.bCommonFollowing=Ue+1);let Se=Me+1,tt=Ue+xe+1;return I.nChangeFollowing=p-1,p-1===y+S-Se-tt?(I.aStartFollowing=y,I.bStartFollowing=S):(I.aStartFollowing=Se,I.bStartFollowing=tt),true}}}return false},"extendOverlappablePathsF"),c=a((p,m,y,v,S,M,$,O,C,N,I)=>{let q=S-y,X=y-m,H=S-v-X,oe=H-p,ue=H+p,fe=t,ie=p<N?p:N;for(let J=0,te=p;J<=ie;J+=1,te-=2){let $e=J===0||J!==p&&C[J]<fe,de=$e?C[J]:fe,ve=$e?de:de-1,Ue=q+ve-te,xe=r(m,ve-1,v,Ue-1,M),Me=ve-xe;if(fe=C[J],C[J]=Me,oe<=te&&te<=ue){let et=(p+(te-H))/2;if(et<=O&&Me-1<=$[et]){let Re=Ue-xe;if(I.nChangePreceding=p,p===Me+Re-m-v?(I.aEndPreceding=m,I.bEndPreceding=v):(I.aEndPreceding=Me,I.bEndPreceding=Re),I.nCommonPreceding=xe,xe!==0&&(I.aCommonPreceding=Me,I.bCommonPreceding=Re),I.nChangeFollowing=p-1,p===1)I.nCommonFollowing=0,I.aStartFollowing=y,I.bStartFollowing=S;else {let _e=q+de-($e?te-1:te+1),Oe=n(de,y,_e,S,M);I.nCommonFollowing=Oe,Oe!==0&&(I.aCommonFollowing=de,I.bCommonFollowing=_e);let $t=de+Oe,Ze=_e+Oe;p-1===y+S-$t-Ze?(I.aStartFollowing=y,I.bStartFollowing=S):(I.aStartFollowing=$t,I.bStartFollowing=Ze);}return true}}}return false},"extendOverlappablePathsR"),u=a((p,m,y,v,S,M,$,O,C)=>{let N=v-m,I=S-y,q=y-m,X=S-v,D=X-q,H=q,oe=q;if($[0]=m-1,O[0]=y,D%2===0){let ue=(p||D)/2,fe=(q+X)/2;for(let ie=1;ie<=fe;ie+=1)if(H=o(ie,y,S,N,M,$,H),ie<ue)oe=i(ie,m,v,I,M,O,oe);else if(c(ie,m,y,v,S,M,$,H,O,oe,C))return}else {let ue=((p||D)+1)/2,fe=(q+X+1)/2,ie=1;for(H=o(ie,y,S,N,M,$,H),ie+=1;ie<=fe;ie+=1)if(oe=i(ie-1,m,v,I,M,O,oe),ie<ue)H=o(ie,y,S,N,M,$,H);else if(s(ie,m,y,v,S,M,$,H,O,oe,C))return}throw new Error(`${e}: no overlap aStart=${m} aEnd=${y} bStart=${v} bEnd=${S}`)},"divide"),l=a((p,m,y,v,S,M,$,O,C,N)=>{if(S-v<y-m){if(M=!M,M&&$.length===1){let{foundSubsequence:Me,isCommon:et}=$[0];$[1]={foundSubsequence:a((Re,_e,Oe)=>{Me(Re,Oe,_e);},"foundSubsequence"),isCommon:a((Re,_e)=>et(_e,Re),"isCommon")};}let Ue=m,xe=y;m=v,y=S,v=Ue,S=xe;}let{foundSubsequence:I,isCommon:q}=$[M?1:0];u(p,m,y,v,S,q,O,C,N);let{nChangePreceding:X,aEndPreceding:D,bEndPreceding:H,nCommonPreceding:oe,aCommonPreceding:ue,bCommonPreceding:fe,nCommonFollowing:ie,aCommonFollowing:J,bCommonFollowing:te,nChangeFollowing:$e,aStartFollowing:de,bStartFollowing:ve}=N;m<D&&v<H&&l(X,m,D,v,H,M,$,O,C,N),oe!==0&&I(oe,ue,fe),ie!==0&&I(ie,J,te),de<y&&ve<S&&l($e,de,y,ve,S,M,$,O,C,N);},"findSubsequences"),f=a((p,m)=>{if(typeof m!="number")throw new TypeError(`${e}: ${p} typeof ${typeof m} is not a number`);if(!Number.isSafeInteger(m))throw new RangeError(`${e}: ${p} value ${m} is not a safe integer`);if(m<0)throw new RangeError(`${e}: ${p} value ${m} is a negative integer`)},"validateLength"),h=a((p,m)=>{let y=typeof m;if(y!=="function")throw new TypeError(`${e}: ${p} typeof ${y} is not a function`)},"validateCallback");function d(p,m,y,v){f("aLength",p),f("bLength",m),h("isCommon",y),h("foundSubsequence",v);let S=n(0,p,0,m,y);if(S!==0&&v(S,0,0),p!==S||m!==S){let M=S,$=S,O=r(M,p-1,$,m-1,y),C=p-O,N=m-O,I=S+O;p!==I&&m!==I&&l(0,M,C,$,N,false,[{foundSubsequence:v,isCommon:y}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),O!==0&&v(O,C,N);}}return a(d,"diffSequence"),qn}a(Hd,"requireBuild");var Jd=Hd(),Ha=ka(Jd);function Yd(e,t){return e.replace(/\s+$/,n=>t(n))}a(Yd,"formatTrailingSpaces");function vo(e,t,n,r,o,i){return e.length!==0?n(`${r} ${Yd(e,o)}`):r!==" "?n(r):t&&i.length!==0?n(`${r} ${i}`):""}a(vo,"printDiffLine");function Ja(e,t,{aColor:n,aIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return vo(e,t,n,r,o,i)}a(Ja,"printDeleteLine");function Ya(e,t,{bColor:n,bIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return vo(e,t,n,r,o,i)}a(Ya,"printInsertLine");function Za(e,t,{commonColor:n,commonIndicator:r,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return vo(e,t,n,r,o,i)}a(Za,"printCommonLine");function Ra(e,t,n,r,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${n+1},${r-n} @@`)}a(Ra,"createPatchMark");function Zd(e,t){let n=e.length,r=t.contextLines,o=r+r,i=n,s=false,c=0,u=0;for(;u!==n;){let O=u;for(;u!==n&&e[u][0]===ce;)u+=1;if(O!==u)if(O===0)u>r&&(i-=u-r,s=true);else if(u===n){let C=u-O;C>r&&(i-=C-r,s=true);}else {let C=u-O;C>o&&(i-=C-o,c+=1);}for(;u!==n&&e[u][0]!==ce;)u+=1;}let l=c!==0||s;c!==0?i+=c+1:s&&(i+=1);let f=i-1,h=[],d=0;l&&h.push("");let p=0,m=0,y=0,v=0,S=a(O=>{let C=h.length;h.push(Za(O,C===0||C===f,t)),y+=1,v+=1;},"pushCommonLine"),M=a(O=>{let C=h.length;h.push(Ja(O,C===0||C===f,t)),y+=1;},"pushDeleteLine"),$=a(O=>{let C=h.length;h.push(Ya(O,C===0||C===f,t)),v+=1;},"pushInsertLine");for(u=0;u!==n;){let O=u;for(;u!==n&&e[u][0]===ce;)u+=1;if(O!==u)if(O===0){u>r&&(O=u-r,p=O,m=O,y=p,v=m);for(let C=O;C!==u;C+=1)S(e[C][1]);}else if(u===n){let C=u-O>r?O+r:u;for(let N=O;N!==C;N+=1)S(e[N][1]);}else {let C=u-O;if(C>o){let N=O+r;for(let q=O;q!==N;q+=1)S(e[q][1]);h[d]=Ra(p,y,m,v,t),d=h.length,h.push("");let I=C-o;p=y+I,m=v+I,y=p,v=m;for(let q=u-r;q!==u;q+=1)S(e[q][1]);}else for(let N=O;N!==u;N+=1)S(e[N][1]);}for(;u!==n&&e[u][0]===Te;)M(e[u][1]),u+=1;for(;u!==n&&e[u][0]===we;)$(e[u][1]),u+=1;}return l&&(h[d]=Ra(p,y,m,v,t)),h.join(`
19
+ `)}a(Zd,"joinAlignedDiffsNoExpand");function Xd(e,t){return e.map((n,r,o)=>{let i=n[1],s=r===0||r===o.length-1;switch(n[0]){case Te:return Ja(i,s,t);case we:return Ya(i,s,t);default:return Za(i,s,t)}}).join(`
20
+ `)}a(Xd,"joinAlignedDiffsExpand");var po=a(e=>e,"noColor"),Xa=5,Qd=0;function ep(){return {aAnnotation:"Expected",aColor:ne.green,aIndicator:"-",bAnnotation:"Received",bColor:ne.red,bIndicator:"+",changeColor:ne.inverse,changeLineTrailingSpaceColor:po,commonColor:ne.dim,commonIndicator:" ",commonLineTrailingSpaceColor:po,compareKeys:void 0,contextLines:Xa,emptyFirstOrLastLinePlaceholder:"",expand:false,includeChangeCounts:false,omitAnnotationLines:false,patchColor:ne.yellow,printBasicPrototype:false,truncateThreshold:Qd,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:po}}a(ep,"getDefaultOptions");function tp(e){return e&&typeof e=="function"?e:void 0}a(tp,"getCompareKeys");function np(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:Xa}a(np,"getContextLines");function St(e={}){return {...ep(),...e,compareKeys:tp(e.compareKeys),contextLines:np(e.contextLines)}}a(St,"normalizeDiffOptions");function Pt(e){return e.length===1&&e[0].length===0}a(Pt,"isEmptyString");function rp(e){let t=0,n=0;return e.forEach(r=>{switch(r[0]){case Te:t+=1;break;case we:n+=1;break}}),{a:t,b:n}}a(rp,"countChanges");function op({aAnnotation:e,aColor:t,aIndicator:n,bAnnotation:r,bColor:o,bIndicator:i,includeChangeCounts:s,omitAnnotationLines:c},u){if(c)return "";let l="",f="";if(s){let p=String(u.a),m=String(u.b),y=r.length-e.length,v=" ".repeat(Math.max(0,y)),S=" ".repeat(Math.max(0,-y)),M=m.length-p.length,$=" ".repeat(Math.max(0,M)),O=" ".repeat(Math.max(0,-M));l=`${v} ${n} ${$}${p}`,f=`${S} ${i} ${O}${m}`;}let h=`${n} ${e}${l}`,d=`${i} ${r}${f}`;return `${t(h)}
21
+ ${o(d)}
22
+
23
+ `}a(op,"printAnnotation");function So(e,t,n){return op(n,rp(e))+(n.expand?Xd(e,n):Zd(e,n))+(t?n.truncateAnnotationColor(`
24
+ ${n.truncateAnnotation}`):"")}a(So,"printDiffLines");function Wn(e,t,n){let r=St(n),[o,i]=Qa(Pt(e)?[]:e,Pt(t)?[]:t,r);return So(o,i,r)}a(Wn,"diffLinesUnified");function ip(e,t,n,r,o){if(Pt(e)&&Pt(n)&&(e=[],n=[]),Pt(t)&&Pt(r)&&(t=[],r=[]),e.length!==n.length||t.length!==r.length)return Wn(e,t,o);let[i,s]=Qa(n,r,o),c=0,u=0;return i.forEach(l=>{switch(l[0]){case Te:l[1]=e[c],c+=1;break;case we:l[1]=t[u],u+=1;break;default:l[1]=t[u],c+=1,u+=1;}}),So(i,s,St(o))}a(ip,"diffLinesUnified2");function Qa(e,t,n){let r=n?.truncateThreshold??false,o=Math.max(Math.floor(n?.truncateThreshold??0),0),i=r?Math.min(e.length,o):e.length,s=r?Math.min(t.length,o):t.length,c=i!==e.length||s!==t.length,u=a((p,m)=>e[p]===t[m],"isCommon"),l=[],f=0,h=0;for(Ha(i,s,u,a((p,m,y)=>{for(;f!==m;f+=1)l.push(new re(Te,e[f]));for(;h!==y;h+=1)l.push(new re(we,t[h]));for(;p!==0;p-=1,f+=1,h+=1)l.push(new re(ce,t[h]));},"foundSubsequence"));f!==i;f+=1)l.push(new re(Te,e[f]));for(;h!==s;h+=1)l.push(new re(we,t[h]));return [l,c]}a(Qa,"diffLinesRaw");function Fa(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"}else if(typeof e=="symbol")return "symbol";throw new Error(`value of unknown type: ${e}`)}a(Fa,"getType");function Da(e){return e.includes(`\r
25
25
  `)?`\r
26
26
  `:`
27
- `}a(wc,"getNewLineSymbol");function Jp(e,t,n){let r=n?.truncateThreshold??false,o=Math.max(Math.floor(n?.truncateThreshold??0),0),i=e.length,s=t.length;if(r){let d=e.includes(`
28
- `),g=t.includes(`
29
- `),p=wc(e),S=wc(t),T=d?`${e.split(p,o).join(p)}
30
- `:e,I=g?`${t.split(S,o).join(S)}
31
- `:t;i=T.length,s=I.length;}let c=i!==e.length||s!==t.length,l=a((d,g)=>e[d]===t[g],"isCommon"),u=0,f=0,h=[];return $c(i,s,l,a((d,g,p)=>{u!==g&&h.push(new fe(ke,e.slice(u,g))),f!==p&&h.push(new fe(_e,t.slice(f,p))),u=g+d,f=p+d,h.push(new fe(pe,t.slice(p,f)));},"foundSubsequence")),u!==i&&h.push(new fe(ke,e.slice(u))),f!==s&&h.push(new fe(_e,t.slice(f))),[h,c]}a(Jp,"diffStrings");function Vp(e,t,n){return t.reduce((r,o)=>r+(o[0]===pe?o[1]:o[0]===e&&o[1].length!==0?n(o[1]):""),"")}a(Vp,"concatenateRelevantDiffs");var fr=class{static{a(this,"ChangeBuffer");}op;line;lines;changeColor;constructor(t,n){this.op=t,this.line=[],this.lines=[],this.changeColor=n;}pushSubstring(t){this.pushDiff(new fe(this.op,t));}pushLine(){this.lines.push(this.line.length!==1?new fe(this.op,Vp(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new fe(this.op,this.line[0][1])),this.line.length=0;}isLineEmpty(){return this.line.length===0}pushDiff(t){this.line.push(t);}align(t){let n=t[1];if(n.includes(`
27
+ `}a(Da,"getNewLineSymbol");function sp(e,t,n){let r=n?.truncateThreshold??false,o=Math.max(Math.floor(n?.truncateThreshold??0),0),i=e.length,s=t.length;if(r){let p=e.includes(`
28
+ `),m=t.includes(`
29
+ `),y=Da(e),v=Da(t),S=p?`${e.split(y,o).join(y)}
30
+ `:e,M=m?`${t.split(v,o).join(v)}
31
+ `:t;i=S.length,s=M.length;}let c=i!==e.length||s!==t.length,u=a((p,m)=>e[p]===t[m],"isCommon"),l=0,f=0,h=[];return Ha(i,s,u,a((p,m,y)=>{l!==m&&h.push(new re(Te,e.slice(l,m))),f!==y&&h.push(new re(we,t.slice(f,y))),l=m+p,f=y+p,h.push(new re(ce,t.slice(y,f)));},"foundSubsequence")),l!==i&&h.push(new re(Te,e.slice(l))),f!==s&&h.push(new re(we,t.slice(f))),[h,c]}a(sp,"diffStrings");function ap(e,t,n){return t.reduce((r,o)=>r+(o[0]===ce?o[1]:o[0]===e&&o[1].length!==0?n(o[1]):""),"")}a(ap,"concatenateRelevantDiffs");var Un=class{static{a(this,"ChangeBuffer");}op;line;lines;changeColor;constructor(t,n){this.op=t,this.line=[],this.lines=[],this.changeColor=n;}pushSubstring(t){this.pushDiff(new re(this.op,t));}pushLine(){this.lines.push(this.line.length!==1?new re(this.op,ap(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new re(this.op,this.line[0][1])),this.line.length=0;}isLineEmpty(){return this.line.length===0}pushDiff(t){this.line.push(t);}align(t){let n=t[1];if(n.includes(`
32
32
  `)){let r=n.split(`
33
- `),o=r.length-1;r.forEach((i,s)=>{s<o?(this.pushSubstring(i),this.pushLine()):i.length!==0&&this.pushSubstring(i);});}else this.pushDiff(t);}moveLinesTo(t){this.isLineEmpty()||this.pushLine(),t.push(...this.lines),this.lines.length=0;}},ti=class{static{a(this,"CommonBuffer");}deleteBuffer;insertBuffer;lines;constructor(t,n){this.deleteBuffer=t,this.insertBuffer=n,this.lines=[];}pushDiffCommonLine(t){this.lines.push(t);}pushDiffChangeLines(t){let n=t[1].length===0;(!n||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(t),(!n||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(t);}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines);}align(t){let n=t[0],r=t[1];if(r.includes(`
33
+ `),o=r.length-1;r.forEach((i,s)=>{s<o?(this.pushSubstring(i),this.pushLine()):i.length!==0&&this.pushSubstring(i);});}else this.pushDiff(t);}moveLinesTo(t){this.isLineEmpty()||this.pushLine(),t.push(...this.lines),this.lines.length=0;}},go=class{static{a(this,"CommonBuffer");}deleteBuffer;insertBuffer;lines;constructor(t,n){this.deleteBuffer=t,this.insertBuffer=n,this.lines=[];}pushDiffCommonLine(t){this.lines.push(t);}pushDiffChangeLines(t){let n=t[1].length===0;(!n||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(t),(!n||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(t);}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines);}align(t){let n=t[0],r=t[1];if(r.includes(`
34
34
  `)){let o=r.split(`
35
- `),i=o.length-1;o.forEach((s,c)=>{if(c===0){let l=new fe(n,s);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(l)):(this.pushDiffChangeLines(l),this.flushChangeLines());}else c<i?this.pushDiffCommonLine(new fe(n,s)):s.length!==0&&this.pushDiffChangeLines(new fe(n,s));});}else this.pushDiffChangeLines(t);}getLines(){return this.flushChangeLines(),this.lines}};function Kp(e,t){let n=new fr(ke,t),r=new fr(_e,t),o=new ti(n,r);return e.forEach(i=>{switch(i[0]){case ke:n.align(i);break;case _e:r.align(i);break;default:o.align(i);}}),o.getLines()}a(Kp,"getAlignedDiffs");function Xp(e,t){if(t){let n=e.length-1;return e.some((r,o)=>r[0]===pe&&(o!==n||r[1]!==`
36
- `))}return e.some(n=>n[0]===pe)}a(Xp,"hasCommonDiff");function Gp(e,t,n){if(e!==t&&e.length!==0&&t.length!==0){let r=e.includes(`
35
+ `),i=o.length-1;o.forEach((s,c)=>{if(c===0){let u=new re(n,s);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(u)):(this.pushDiffChangeLines(u),this.flushChangeLines());}else c<i?this.pushDiffCommonLine(new re(n,s)):s.length!==0&&this.pushDiffChangeLines(new re(n,s));});}else this.pushDiffChangeLines(t);}getLines(){return this.flushChangeLines(),this.lines}};function cp(e,t){let n=new Un(Te,t),r=new Un(we,t),o=new go(n,r);return e.forEach(i=>{switch(i[0]){case Te:n.align(i);break;case we:r.align(i);break;default:o.align(i);}}),o.getLines()}a(cp,"getAlignedDiffs");function lp(e,t){if(t){let n=e.length-1;return e.some((r,o)=>r[0]===ce&&(o!==n||r[1]!==`
36
+ `))}return e.some(n=>n[0]===ce)}a(lp,"hasCommonDiff");function up(e,t,n){if(e!==t&&e.length!==0&&t.length!==0){let r=e.includes(`
37
37
  `)||t.includes(`
38
- `),[o,i]=jc(r?`${e}
38
+ `),[o,i]=ec(r?`${e}
39
39
  `:e,r?`${t}
40
- `:t,true,n);if(Xp(o,r)){let s=Nt(n),c=Kp(o,s.changeColor);return si(c,i,s)}}return hr(e.split(`
40
+ `:t,true,n);if(lp(o,r)){let s=St(n),c=cp(o,s.changeColor);return So(c,i,s)}}return Wn(e.split(`
41
41
  `),t.split(`
42
- `),n)}a(Gp,"diffStringsUnified");function jc(e,t,n,r){let[o,i]=Jp(e,t,r);return n&&Op(o),[o,i]}a(jc,"diffStringsRaw");function ni(e,t){let{commonColor:n}=Nt(t);return n(e)}a(ni,"getCommonMessage");var{AsymmetricMatcher:Yp,DOMCollection:Hp,DOMElement:Zp,Immutable:Qp,ReactElement:em,ReactTestComponent:tm}=gt,Fc=[tm,em,Zp,Hp,Qp,Yp,gt.Error],ri={maxDepth:20,plugins:Fc},Lc={callToJSON:false,maxDepth:8,plugins:Fc};function Mt(e,t,n){if(Object.is(e,t))return "";let r=bc(e),o=r,i=false;if(r==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;o=e.getExpectedType(),i=o==="string";}if(o!==bc(t)){let S=function(P){return P.length<=p?P:`${P.slice(0,p)}...`};a(S,"truncate");let{aAnnotation:s,aColor:c,aIndicator:l,bAnnotation:u,bColor:f,bIndicator:h}=Nt(n),m=oi(Lc,n),d=je(e,m),g=je(t,m),p=1e5;d=S(d),g=S(g);let T=`${c(`${l} ${s}:`)}
43
- ${d}`,I=`${f(`${h} ${u}:`)}
44
- ${g}`;return `${T}
42
+ `),n)}a(up,"diffStringsUnified");function ec(e,t,n,r){let[o,i]=sp(e,t,r);return n&&Ud(o),[o,i]}a(ec,"diffStringsRaw");function yo(e,t){let{commonColor:n}=St(t);return n(e)}a(yo,"getCommonMessage");var{AsymmetricMatcher:fp,DOMCollection:hp,DOMElement:dp,Immutable:pp,ReactElement:mp,ReactTestComponent:gp}=wt,tc=[gp,mp,dp,hp,pp,fp,wt.Error],bo={maxDepth:20,plugins:tc},nc={callToJSON:false,maxDepth:8,plugins:tc};function Tt(e,t,n){if(Object.is(e,t))return "";let r=Fa(e),o=r,i=false;if(r==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;o=e.getExpectedType(),i=o==="string";}if(o!==Fa(t)){let v=function($){return $.length<=y?$:`${$.slice(0,y)}...`};a(v,"truncate");let{aAnnotation:s,aColor:c,aIndicator:u,bAnnotation:l,bColor:f,bIndicator:h}=St(n),d=wo(nc,n),p=Ie(e,d),m=Ie(t,d),y=1e5;p=v(p),m=v(m);let S=`${c(`${u} ${s}:`)}
43
+ ${p}`,M=`${f(`${h} ${l}:`)}
44
+ ${m}`;return `${S}
45
45
 
46
- ${I}`}if(!i)switch(r){case "string":return hr(e.split(`
46
+ ${M}`}if(!i)switch(r){case "string":return Wn(e.split(`
47
47
  `),t.split(`
48
- `),n);case "boolean":case "number":return nm(e,t,n);case "map":return ei(Sc(e),Sc(t),n);case "set":return ei(Tc(e),Tc(t),n);default:return ei(e,t,n)}}a(Mt,"diff");function nm(e,t,n){let r=je(e,ri),o=je(t,ri);return r===o?"":hr(r.split(`
48
+ `),n);case "boolean":case "number":return yp(e,t,n);case "map":return mo(La(e),La(t),n);case "set":return mo(qa(e),qa(t),n);default:return mo(e,t,n)}}a(Tt,"diff");function yp(e,t,n){let r=Ie(e,bo),o=Ie(t,bo);return r===o?"":Wn(r.split(`
49
49
  `),o.split(`
50
- `),n)}a(nm,"comparePrimitive");function Sc(e){return new Map(Array.from(e.entries()).sort())}a(Sc,"sortMap");function Tc(e){return new Set(Array.from(e.values()).sort())}a(Tc,"sortSet");function ei(e,t,n){let r,o=false;try{let s=oi(ri,n);r=xc(e,t,s,n);}catch{o=true;}let i=ni(Pc,n);if(r===void 0||r===i){let s=oi(Lc,n);r=xc(e,t,s,n),r!==i&&!o&&(r=`${ni(kp,n)}
50
+ `),n)}a(yp,"comparePrimitive");function La(e){return new Map(Array.from(e.entries()).sort())}a(La,"sortMap");function qa(e){return new Set(Array.from(e.values()).sort())}a(qa,"sortSet");function mo(e,t,n){let r,o=false;try{let s=wo(bo,n);r=Ba(e,t,s,n);}catch{o=true;}let i=yo(Ga,n);if(r===void 0||r===i){let s=wo(nc,n);r=Ba(e,t,s,n),r!==i&&!o&&(r=`${yo(Gd,n)}
51
51
 
52
- ${r}`);}return r}a(ei,"compareObjects");function oi(e,t){let{compareKeys:n,printBasicPrototype:r,maxDepth:o}=Nt(t);return {...e,compareKeys:n,printBasicPrototype:r,maxDepth:o??e.maxDepth}}a(oi,"getFormatOptions");function xc(e,t,n,r){let o={...n,indent:0},i=je(e,o),s=je(t,o);if(i===s)return ni(Pc,r);{let c=je(e,n),l=je(t,n);return Up(c.split(`
53
- `),l.split(`
52
+ ${r}`);}return r}a(mo,"compareObjects");function wo(e,t){let{compareKeys:n,printBasicPrototype:r,maxDepth:o}=St(t);return {...e,compareKeys:n,printBasicPrototype:r,maxDepth:o??e.maxDepth}}a(wo,"getFormatOptions");function Ba(e,t,n,r){let o={...n,indent:0},i=Ie(e,o),s=Ie(t,o);if(i===s)return yo(Ga,r);{let c=Ie(e,n),u=Ie(t,n);return ip(c.split(`
53
+ `),u.split(`
54
54
  `),i.split(`
55
55
  `),s.split(`
56
- `),r)}}a(xc,"getObjectsDifference");var vc=2e4;function Ec(e){return yt(e)==="Object"&&typeof e.asymmetricMatch=="function"}a(Ec,"isAsymmetricMatcher");function Ic(e,t){let n=yt(e),r=yt(t);return n===r&&(n==="Object"||n==="Array")}a(Ic,"isReplaceable");function dr(e,t,n){let{aAnnotation:r,bAnnotation:o}=Nt(n);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=vc&&e.length<=vc&&t!==e){if(t.includes(`
56
+ `),r)}}a(Ba,"getObjectsDifference");var za=2e4;function Ua(e){return vt(e)==="Object"&&typeof e.asymmetricMatch=="function"}a(Ua,"isAsymmetricMatcher");function Bn(e,t){let n=vt(e),r=vt(t);return n===r&&(n==="Object"||n==="Array")}a(Bn,"isReplaceable");function Vn(e,t,n){let{aAnnotation:r,bAnnotation:o}=St(n);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=za&&e.length<=za&&t!==e){if(t.includes(`
57
57
  `)||e.includes(`
58
- `))return Gp(t,e,n);let[f]=jc(t,e,true),h=f.some(p=>p[0]===pe),m=rm(r,o),d=m(r)+sm(Cc(f,ke,h)),g=m(o)+im(Cc(f,_e,h));return `${d}
59
- ${g}`}let i=sr(t,{forceWritable:true}),s=sr(e,{forceWritable:true}),{replacedExpected:c,replacedActual:l}=Dc(s,i);return Mt(c,l,n)}a(dr,"printDiffOrStringify");function Dc(e,t,n=new WeakSet,r=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<"u"&&typeof t.cause>"u"?(delete e.cause,{replacedActual:e,replacedExpected:t}):Ic(e,t)?n.has(e)||r.has(t)?{replacedActual:e,replacedExpected:t}:(n.add(e),r.add(t),ir(t).forEach(o=>{let i=t[o],s=e[o];if(Ec(i))i.asymmetricMatch(s)&&(e[o]=i);else if(Ec(s))s.asymmetricMatch(i)&&(t[o]=s);else if(Ic(s,i)){let c=Dc(s,i,n,r);e[o]=c.replacedActual,t[o]=c.replacedExpected;}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}a(Dc,"replaceAsymmetricMatcher");function rm(...e){let t=e.reduce((n,r)=>r.length>n?r.length:n,0);return n=>`${n}: ${" ".repeat(t-n.length)}`}a(rm,"getLabelPrinter");var om="\xB7";function qc(e){return e.replace(/\s+$/gm,t=>om.repeat(t.length))}a(qc,"replaceTrailingSpaces");function im(e){return ue.red(qc(Ce(e)))}a(im,"printReceived");function sm(e){return ue.green(qc(Ce(e)))}a(sm,"printExpected");function Cc(e,t,n){return e.reduce((r,o)=>r+(o[0]===pe?o[1]:o[0]===t?n?ue.inverse(o[1]):o[1]:""),"")}a(Cc,"getCommonAndChangedSubstrings");function pr(e,t){if(!e)throw new Error(t)}a(pr,"assert");function Vt(e,t){return typeof t===e}a(Vt,"isType");function am(e){return e instanceof Promise}a(am,"isPromise");function hn(e,t,n){Object.defineProperty(e,t,n);}a(hn,"define");function Kt(e,t,n){hn(e,t,{value:n,configurable:true,writable:true});}a(Kt,"defineValue");var bt=Symbol.for("tinyspy:spy"),cm=new Set,lm=a(e=>{e.called=false,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[];},"reset"),um=a(e=>(hn(e,bt,{value:{reset:a(()=>lm(e[bt]),"reset")}}),e[bt]),"defineState"),mr=a(e=>e[bt]||um(e),"getInternalState");function fm(e){pr(Vt("function",e)||Vt("undefined",e),"cannot spy on a non-function value");let t=a(function(...r){let o=mr(t);o.called=true,o.callCount++,o.calls.push(r);let i=o.next.shift();if(i){o.results.push(i);let[f,h]=i;if(f==="ok")return h;throw h}let s,c="ok",l=o.results.length;if(o.impl)try{new.target?s=Reflect.construct(o.impl,r,new.target):s=o.impl.apply(this,r),c="ok";}catch(f){throw s=f,c="error",o.results.push([c,f]),f}let u=[c,s];return am(s)&&s.then(f=>o.resolves[l]=["ok",f],f=>o.resolves[l]=["error",f]),o.results.push(u),s},"fn");Kt(t,"_isMockFunction",true),Kt(t,"length",e?e.length:0),Kt(t,"name",e&&e.name||"spy");let n=mr(t);return n.reset(),n.impl=e,t}a(fm,"createInternalSpy");function hm(e){return !!e&&e._isMockFunction===true}a(hm,"isMockFunction");var zc=a((e,t)=>{let n=Object.getOwnPropertyDescriptor(e,t);if(n)return [e,n];let r=Object.getPrototypeOf(e);for(;r!==null;){let o=Object.getOwnPropertyDescriptor(r,t);if(o)return [r,o];r=Object.getPrototypeOf(r);}},"getDescriptor"),Bc=a((e,t)=>{t!=null&&typeof t=="function"&&t.prototype!=null&&Object.setPrototypeOf(e.prototype,t.prototype);},"setPototype");function ai(e,t,n){pr(!Vt("undefined",e),"spyOn could not find an object to spy upon"),pr(Vt("object",e)||Vt("function",e),"cannot spyOn on a primitive value");let[r,o]=(()=>{if(!Vt("object",t))return [t,"value"];if("getter"in t&&"setter"in t)throw new Error("cannot spy on both getter and setter");if("getter"in t)return [t.getter,"get"];if("setter"in t)return [t.setter,"set"];throw new Error("specify getter or setter to spy on")})(),[i,s]=zc(e,r)||[];pr(s||r in e,`${String(r)} does not exist`);let c=false;o==="value"&&s&&!s.value&&s.get&&(o="get",c=true,n=s.get());let l;s?l=s[o]:o!=="value"?l=a(()=>e[r],"original"):l=e[r],l&&gm(l)&&(l=l[bt].getOriginal());let u=a(d=>{let{value:g,...p}=s||{configurable:true,writable:true};o!=="value"&&delete p.writable,p[o]=d,hn(e,r,p);},"reassign"),f=a(()=>{i!==e?Reflect.deleteProperty(e,r):s&&!l?hn(e,r,s):u(l);},"restore");n||(n=l);let h=mm(fm(n),n);o==="value"&&Bc(h,l);let m=h[bt];return Kt(m,"restore",f),Kt(m,"getOriginal",()=>c?l():l),Kt(m,"willCall",d=>(m.impl=d,h)),u(c?()=>(Bc(h,n),h):h),cm.add(h),h}a(ai,"internalSpyOn");var dm=new Set(["length","name","prototype"]);function pm(e){let t=new Set,n={};for(;e&&e!==Object.prototype&&e!==Function.prototype;){let r=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let o of r)n[o]||dm.has(o)||(t.add(o),n[o]=Object.getOwnPropertyDescriptor(e,o));e=Object.getPrototypeOf(e);}return {properties:t,descriptors:n}}a(pm,"getAllProperties");function mm(e,t){if(!t||bt in t)return e;let{properties:n,descriptors:r}=pm(t);for(let o of n){let i=r[o];zc(e,o)||hn(e,o,i);}return e}a(mm,"wrap");function gm(e){return hm(e)&&"getOriginal"in e[bt]}a(gm,"isSpyFunction");var dn=new Set;function Rt(e){return typeof e=="function"&&"_isMockFunction"in e&&e._isMockFunction}a(Rt,"isMockFunction");function Wc(e,t,n){let o=n?{[{get:"getter",set:"setter"}[n]]:t}:t,i,s=wm(e,t),c=s&&s[n||"value"];Rt(c)&&(i=c.mock._state());try{let l=ai(e,o),u=Uc(l);return i&&u.mock._state(i),u}catch(l){throw l instanceof TypeError&&Symbol.toStringTag&&e[Symbol.toStringTag]==="Module"&&(l.message.includes("Cannot redefine property")||l.message.includes("Cannot replace module namespace")||l.message.includes("can't redefine non-configurable property"))?new TypeError(`Cannot spy on export "${String(o)}". Module namespace is not configurable in ESM. See: https://vitest.dev/guide/browser/#limitations`,{cause:l}):l}}a(Wc,"spyOn");var bm=0;function Uc(e){let t=e,n,r=[],o=false,i=[],s=[],c=[],l=mr(e),u={get calls(){return l.calls},get contexts(){return s},get instances(){return i},get invocationCallOrder(){return c},get results(){return l.results.map(([d,g])=>({type:d==="error"?"throw":"return",value:g}))},get settledResults(){return l.resolves.map(([d,g])=>({type:d==="error"?"rejected":"fulfilled",value:g}))},get lastCall(){return l.calls[l.calls.length-1]},_state(d){return d&&(n=d.implementation,r=d.onceImplementations,o=d.implementationChangedTemporarily),{implementation:n,onceImplementations:r,implementationChangedTemporarily:o}}};function f(...d){return i.push(this),s.push(this),c.push(++bm),(o?n:r.shift()||n||l.getOriginal()||(()=>{})).apply(this,d)}a(f,"mockCall");let h=t.name;t.getMockName=()=>h||"vi.fn()",t.mockName=d=>(h=d,t),t.mockClear=()=>(l.reset(),i=[],s=[],c=[],t),t.mockReset=()=>(t.mockClear(),n=void 0,r=[],t),t.mockRestore=()=>(t.mockReset(),l.restore(),t),Symbol.dispose&&(t[Symbol.dispose]=()=>t.mockRestore()),t.getMockImplementation=()=>o?n:r.at(0)||n,t.mockImplementation=d=>(n=d,l.willCall(f),t),t.mockImplementationOnce=d=>(r.push(d),t);function m(d,g){let p=n;n=d,l.willCall(f),o=true;let S=a(()=>{n=p,o=false;},"reset"),T=g();return typeof T=="object"&&T&&typeof T.then=="function"?T.then(()=>(S(),t)):(S(),t)}return a(m,"withImplementation"),t.withImplementation=m,t.mockReturnThis=()=>t.mockImplementation(function(){return this}),t.mockReturnValue=d=>t.mockImplementation(()=>d),t.mockReturnValueOnce=d=>t.mockImplementationOnce(()=>d),t.mockResolvedValue=d=>t.mockImplementation(()=>Promise.resolve(d)),t.mockResolvedValueOnce=d=>t.mockImplementationOnce(()=>Promise.resolve(d)),t.mockRejectedValue=d=>t.mockImplementation(()=>Promise.reject(d)),t.mockRejectedValueOnce=d=>t.mockImplementationOnce(()=>Promise.reject(d)),Object.defineProperty(t,"mock",{get:a(()=>u,"get")}),l.willCall(f),dn.add(t),t}a(Uc,"enhanceSpy");function Jc(e){let t=Uc(ai({spy:e||function(){}},"spy"));return e&&t.mockImplementation(e),t}a(Jc,"fn");function wm(e,t){let n=Object.getOwnPropertyDescriptor(e,t);if(n)return n;let r=Object.getPrototypeOf(e);for(;r!==null;){let o=Object.getOwnPropertyDescriptor(r,t);if(o)return o;r=Object.getPrototypeOf(r);}}a(wm,"getDescriptor");var Sm="@@__IMMUTABLE_RECORD__@@",Tm="@@__IMMUTABLE_ITERABLE__@@";function xm(e){return e&&(e[Tm]||e[Sm])}a(xm,"isImmutable");var vm=Object.getPrototypeOf({});function Vc(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}a(Vc,"getUnserializableMessage");function wt(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"&&gr(()=>n.message??(n.message=e.message)),typeof e.stack=="string"&&gr(()=>n.stack??(n.stack=e.stack)),typeof e.name=="string"&&gr(()=>n.name??(n.name=e.name)),e.cause!=null&&gr(()=>n.cause??(n.cause=wt(e.cause,t)))),wt(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(xm(e))return wt(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.asymmetricMatch=="function")return `${e.toString()} ${fn(e.sample)}`;if(typeof e.toJSON=="function")return wt(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let n=new Array(e.length);return t.set(e,n),e.forEach((r,o)=>{try{n[o]=wt(r,t);}catch(i){n[o]=Vc(i);}}),n}else {let n=Object.create(null);t.set(e,n);let r=e;for(;r&&r!==vm;)Object.getOwnPropertyNames(r).forEach(o=>{if(!(o in n))try{n[o]=wt(e[o],t);}catch(i){delete n[o],n[o]=Vc(i);}}),r=Object.getPrototypeOf(r);return n}}a(wt,"serializeValue");function gr(e){try{return e()}catch{}}a(gr,"safe");function Em(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}a(Em,"normalizeErrorMessage");function ci(e,t,n=new WeakSet){if(!e||typeof e!="object")return {message:String(e)};let r=e;(r.showDiff||r.showDiff===void 0&&r.expected!==void 0&&r.actual!==void 0)&&(r.diff=dr(r.actual,r.expected,{...t,...r.diffOptions})),"expected"in r&&typeof r.expected!="string"&&(r.expected=Ce(r.expected,10)),"actual"in r&&typeof r.actual!="string"&&(r.actual=Ce(r.actual,10));try{typeof r.message=="string"&&(r.message=Em(r.message));}catch{}try{!n.has(r)&&typeof r.cause=="object"&&(n.add(r),r.cause=ci(r.cause,t,n));}catch{}try{return wt(r)}catch(o){return wt(new Error(`Failed to fully serialize error: ${o?.message}
60
- Inner error message: ${r?.message}`))}}a(ci,"processError");var nl=Object.defineProperty,Im=Object.getOwnPropertyNames,E=a((e,t)=>nl(e,"name",{value:t,configurable:true}),"__name"),Cm=a((e,t)=>a(function(){return t||(0, e[Im(e)[0]])((t={exports:{}}).exports,t),t.exports},"__require"),"__commonJS"),Ii=a((e,t)=>{for(var n in t)nl(e,n,{get:t[n],enumerable:true});},"__export"),_m=Cm({"(disabled):util"(){}}),Se={};Ii(Se,{addChainableMethod:a(()=>Fi,"addChainableMethod"),addLengthGuard:a(()=>bn,"addLengthGuard"),addMethod:a(()=>Mi,"addMethod"),addProperty:a(()=>Ni,"addProperty"),checkError:a(()=>ze,"checkError"),compareByInspect:a(()=>Sr,"compareByInspect"),eql:a(()=>$l,"eql"),expectTypes:a(()=>ul,"expectTypes"),flag:a(()=>X,"flag"),getActual:a(()=>Ir,"getActual"),getMessage:a(()=>Oi,"getMessage"),getName:a(()=>_r,"getName"),getOperator:a(()=>Bi,"getOperator"),getOwnEnumerableProperties:a(()=>qi,"getOwnEnumerableProperties"),getOwnEnumerablePropertySymbols:a(()=>Di,"getOwnEnumerablePropertySymbols"),getPathInfo:a(()=>ki,"getPathInfo"),hasProperty:a(()=>Cr,"hasProperty"),inspect:a(()=>Q,"inspect"),isNaN:a(()=>Tr,"isNaN"),isNumeric:a(()=>Ee,"isNumeric"),isProxyEnabled:a(()=>yn,"isProxyEnabled"),isRegExp:a(()=>xr,"isRegExp"),objDisplay:a(()=>jt,"objDisplay"),overwriteChainableMethod:a(()=>Li,"overwriteChainableMethod"),overwriteMethod:a(()=>ji,"overwriteMethod"),overwriteProperty:a(()=>Ri,"overwriteProperty"),proxify:a(()=>Ht,"proxify"),test:a(()=>Ci,"test"),transferFlags:a(()=>tt,"transferFlags"),type:a(()=>ce,"type")});var ze={};Ii(ze,{compatibleConstructor:a(()=>il,"compatibleConstructor"),compatibleInstance:a(()=>ol,"compatibleInstance"),compatibleMessage:a(()=>sl,"compatibleMessage"),getConstructorName:a(()=>al,"getConstructorName"),getMessage:a(()=>cl,"getMessage")});function Er(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}a(Er,"isErrorInstance");E(Er,"isErrorInstance");function rl(e){return Object.prototype.toString.call(e)==="[object RegExp]"}a(rl,"isRegExp");E(rl,"isRegExp");function ol(e,t){return Er(t)&&e===t}a(ol,"compatibleInstance");E(ol,"compatibleInstance");function il(e,t){return Er(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t=="object"||typeof t=="function")&&t.prototype?e.constructor===t||e instanceof t:false}a(il,"compatibleConstructor");E(il,"compatibleConstructor");function sl(e,t){let n=typeof e=="string"?e:e.message;return rl(t)?t.test(n):typeof t=="string"?n.indexOf(t)!==-1:false}a(sl,"compatibleMessage");E(sl,"compatibleMessage");function al(e){let t=e;return Er(e)?t=e.constructor.name:typeof e=="function"&&(t=e.name,t===""&&(t=new e().name||t)),t}a(al,"getConstructorName");E(al,"getConstructorName");function cl(e){let t="";return e&&e.message?t=e.message:typeof e=="string"&&(t=e),t}a(cl,"getMessage");E(cl,"getMessage");function X(e,t,n){let r=e.__flags||(e.__flags=Object.create(null));if(arguments.length===3)r[t]=n;else return r[t]}a(X,"flag");E(X,"flag");function Ci(e,t){let n=X(e,"negate"),r=t[0];return n?!r:r}a(Ci,"test");E(Ci,"test");function ce(e){if(typeof e>"u")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)}a(ce,"type");E(ce,"type");var Om="captureStackTrace"in Error,ne=class ll extends Error{static{a(this,"_AssertionError");}static{E(this,"AssertionError");}message;get name(){return "AssertionError"}get ok(){return false}constructor(t="Unspecified AssertionError",n,r){super(t),this.message=t,Om&&Error.captureStackTrace(this,r||ll);for(let o in n)o in this||(this[o]=n[o]);}toJSON(t){return {...this,name:this.name,message:this.message,ok:false,stack:t!==false?this.stack:void 0}}};function ul(e,t){let n=X(e,"message"),r=X(e,"ssfi");n=n?n+": ":"",e=X(e,"object"),t=t.map(function(s){return s.toLowerCase()}),t.sort();let o=t.map(function(s,c){let l=~["a","e","i","o","u"].indexOf(s.charAt(0))?"an":"a";return (t.length>1&&c===t.length-1?"or ":"")+l+" "+s}).join(", "),i=ce(e).toLowerCase();if(!t.some(function(s){return i===s}))throw new ne(n+"object tested must be "+o+", but "+i+" given",void 0,r)}a(ul,"expectTypes");E(ul,"expectTypes");function Ir(e,t){return t.length>4?t[4]:e._obj}a(Ir,"getActual");E(Ir,"getActual");var Kc={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"]},Pm={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Gt="\u2026";function fl(e,t){let n=Kc[Pm[t]]||Kc[t]||"";return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}a(fl,"colorise");E(fl,"colorise");function hl({showHidden:e=false,depth:t=2,colors:n=false,customInspect:r=true,showProxy:o=false,maxArrayLength:i=1/0,breakLength:s=1/0,seen:c=[],truncate:l=1/0,stylize:u=String}={},f){let h={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(s),truncate:Number(l),seen:c,inspect:f,stylize:u};return h.colors&&(h.stylize=fl),h}a(hl,"normaliseOptions");E(hl,"normaliseOptions");function dl(e){return e>="\uD800"&&e<="\uDBFF"}a(dl,"isHighSurrogate");E(dl,"isHighSurrogate");function ht(e,t,n=Gt){e=String(e);let r=n.length,o=e.length;if(r>t&&o>r)return n;if(o>t&&o>r){let i=t-r;return i>0&&dl(e[i-1])&&(i=i-1),`${e.slice(0,i)}${n}`}return e}a(ht,"truncate");E(ht,"truncate");function Ue(e,t,n,r=", "){n=n||t.inspect;let o=e.length;if(o===0)return "";let i=t.truncate,s="",c="",l="";for(let u=0;u<o;u+=1){let f=u+1===e.length,h=u+2===e.length;l=`${Gt}(${e.length-u})`;let m=e[u];t.truncate=i-s.length-(f?0:r.length);let d=c||n(m,t)+(f?"":r),g=s.length+d.length,p=g+l.length;if(f&&g>i&&s.length+l.length<=i||!f&&!h&&p>i||(c=f?"":n(e[u+1],t)+(h?"":r),!f&&h&&p>i&&g+c.length>i))break;if(s+=d,!f&&!h&&g+c.length>=i){l=`${Gt}(${e.length-u-1})`;break}l="";}return `${s}${l}`}a(Ue,"inspectList");E(Ue,"inspectList");function pl(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}a(pl,"quoteComplexKey");E(pl,"quoteComplexKey");function Yt([e,t],n){return n.truncate-=2,typeof e=="string"?e=pl(e):typeof e!="number"&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}a(Yt,"inspectProperty");E(Yt,"inspectProperty");function ml(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return "[]";t.truncate-=4;let r=Ue(e,t);t.truncate-=r.length;let o="";return n.length&&(o=Ue(n.map(i=>[i,e[i]]),t,Yt)),`[ ${r}${o?`, ${o}`:""} ]`}a(ml,"inspectArray");E(ml,"inspectArray");var $m=E(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function ot(e,t){let n=$m(e);t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return `${n}[]`;let o="";for(let s=0;s<e.length;s++){let c=`${t.stylize(ht(e[s],t.truncate),"number")}${s===e.length-1?"":", "}`;if(t.truncate-=c.length,e[s]!==e.length&&t.truncate<=3){o+=`${Gt}(${e.length-e[s]+1})`;break}o+=c;}let i="";return r.length&&(i=Ue(r.map(s=>[s,e[s]]),t,Yt)),`${n}[ ${o}${i?`, ${i}`:""} ]`}a(ot,"inspectTypedArray");E(ot,"inspectTypedArray");function gl(e,t){let n=e.toJSON();if(n===null)return "Invalid Date";let r=n.split("T"),o=r[0];return t.stylize(`${o}T${ht(r[1],t.truncate-o.length-1)}`,"date")}a(gl,"inspectDate");E(gl,"inspectDate");function fi(e,t){let n=e[Symbol.toStringTag]||"Function",r=e.name;return r?t.stylize(`[${n} ${ht(r,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}a(fi,"inspectFunction");E(fi,"inspectFunction");function yl([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}a(yl,"inspectMapEntry");E(yl,"inspectMapEntry");function bl(e){let t=[];return e.forEach((n,r)=>{t.push([r,n]);}),t}a(bl,"mapToEntries");E(bl,"mapToEntries");function wl(e,t){return e.size-1<=0?"Map{}":(t.truncate-=7,`Map{ ${Ue(bl(e),t,yl)} }`)}a(wl,"inspectMap");E(wl,"inspectMap");var Am=Number.isNaN||(e=>e!==e);function hi(e,t){return Am(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(ht(String(e),t.truncate),"number")}a(hi,"inspectNumber");E(hi,"inspectNumber");function di(e,t){let n=ht(e.toString(),t.truncate-1);return n!==Gt&&(n+="n"),t.stylize(n,"bigint")}a(di,"inspectBigInt");E(di,"inspectBigInt");function Sl(e,t){let n=e.toString().split("/")[2],r=t.truncate-(2+n.length),o=e.source;return t.stylize(`/${ht(o,r)}/${n}`,"regexp")}a(Sl,"inspectRegExp");E(Sl,"inspectRegExp");function Tl(e){let t=[];return e.forEach(n=>{t.push(n);}),t}a(Tl,"arrayFromSet");E(Tl,"arrayFromSet");function xl(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Ue(Tl(e),t)} }`)}a(xl,"inspectSet");E(xl,"inspectSet");var Xc=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),km={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},Nm=16;function vl(e){return km[e]||`\\u${`0000${e.charCodeAt(0).toString(Nm)}`.slice(-4)}`}a(vl,"escape");E(vl,"escape");function pi(e,t){return Xc.test(e)&&(e=e.replace(Xc,vl)),t.stylize(`'${ht(e,t.truncate-2)}'`,"string")}a(pi,"inspectString");E(pi,"inspectString");function mi(e){return "description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}a(mi,"inspectSymbol");E(mi,"inspectSymbol");var El=E(()=>"Promise{\u2026}","getPromiseValue");try{let{getPromiseDetails:e,kPending:t,kRejected:n}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(El=E((r,o)=>{let[i,s]=e(r);return i===t?"Promise{<pending>}":`Promise${i===n?"!":""}{${o.inspect(s,o)}}`},"getPromiseValue"));}catch{}var Rm=El;function mn(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 o=Ue(n.map(c=>[c,e[c]]),t,Yt),i=Ue(r.map(c=>[c,e[c]]),t,Yt);t.seen.pop();let s="";return o&&i&&(s=", "),`{ ${o}${s}${i} }`}a(mn,"inspectObject");E(mn,"inspectObject");var li=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:false;function Il(e,t){let n="";return li&&li in e&&(n=e[li]),n=n||e.constructor.name,(!n||n==="_class")&&(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${mn(e,t)}`}a(Il,"inspectClass");E(Il,"inspectClass");function Cl(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Ue(e,t)} ]`)}a(Cl,"inspectArguments");E(Cl,"inspectArguments");var jm=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function _l(e,t){let n=Object.getOwnPropertyNames(e).filter(s=>jm.indexOf(s)===-1),r=e.name;t.truncate-=r.length;let o="";if(typeof e.message=="string"?o=ht(e.message,t.truncate):n.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return "[Circular]";t.seen.push(e);let i=Ue(n.map(s=>[s,e[s]]),t,Yt);return `${r}${o}${i?` { ${i} }`:""}`}a(_l,"inspectObject2");E(_l,"inspectObject");function Ol([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}a(Ol,"inspectAttribute");E(Ol,"inspectAttribute");function yr(e,t){return Ue(e,t,_i,`
61
- `)}a(yr,"inspectHTMLCollection");E(yr,"inspectHTMLCollection");function _i(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),o=t.stylize(`<${r}`,"special"),i=t.stylize(">","special"),s=t.stylize(`</${r}>`,"special");t.truncate-=r.length*2+5;let c="";n.length>0&&(c+=" ",c+=Ue(n.map(f=>[f,e.getAttribute(f)]),t,Ol," ")),t.truncate-=c.length;let l=t.truncate,u=yr(e.children,t);return u&&u.length>l&&(u=`${Gt}(${e.children.length})`),`${o}${c}${i}${u}${s}`}a(_i,"inspectHTML");E(_i,"inspectHTML");var Fm=typeof Symbol=="function"&&typeof Symbol.for=="function",ui=Fm?Symbol.for("chai/inspect"):"@@chai/inspect",Xt=false;try{let e=_m();Xt=e.inspect?e.inspect.custom:false;}catch{Xt=false;}var Gc=new WeakMap,Yc={},Hc={undefined:E((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:E((e,t)=>t.stylize("null","null"),"null"),boolean:E((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:E((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:hi,Number:hi,bigint:di,BigInt:di,string:pi,String:pi,function:fi,Function:fi,symbol:mi,Symbol:mi,Array:ml,Date:gl,Map:wl,Set:xl,RegExp:Sl,Promise:Rm,WeakSet:E((e,t)=>t.stylize("WeakSet{\u2026}","special"),"WeakSet"),WeakMap:E((e,t)=>t.stylize("WeakMap{\u2026}","special"),"WeakMap"),Arguments:Cl,Int8Array:ot,Uint8Array:ot,Uint8ClampedArray:ot,Int16Array:ot,Uint16Array:ot,Int32Array:ot,Uint32Array:ot,Float32Array:ot,Float64Array:ot,Generator:E(()=>"","Generator"),DataView:E(()=>"","DataView"),ArrayBuffer:E(()=>"","ArrayBuffer"),Error:_l,HTMLCollection:yr,NodeList:yr},Lm=E((e,t,n)=>ui in e&&typeof e[ui]=="function"?e[ui](t):Xt&&Xt in e&&typeof e[Xt]=="function"?e[Xt](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&Gc.has(e.constructor)?Gc.get(e.constructor)(e,t):Yc[n]?Yc[n](e,t):"","inspectCustom"),Dm=Object.prototype.toString;function br(e,t={}){let n=hl(t,br),{customInspect:r}=n,o=e===null?"null":typeof e;if(o==="object"&&(o=Dm.call(e).slice(8,-1)),o in Hc)return Hc[o](e,n);if(r&&e){let s=Lm(e,n,o);if(s)return typeof s=="string"?s:br(s,n)}let i=e?Object.getPrototypeOf(e):false;return i===Object.prototype||i===null?mn(e,n):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?_i(e,n):"constructor"in e?e.constructor!==Object?Il(e,n):mn(e,n):e===Object(e)?mn(e,n):n.stylize(String(e),o)}a(br,"inspect");E(br,"inspect");var Me={includeStack:false,showDiff:true,truncateThreshold:40,useProxy:true,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function Q(e,t,n,r){let o={colors:r,depth:typeof n>"u"?2:n,showHidden:t,truncate:Me.truncateThreshold?Me.truncateThreshold:1/0};return br(e,o)}a(Q,"inspect2");E(Q,"inspect");function jt(e){let t=Q(e),n=Object.prototype.toString.call(e);if(Me.truncateThreshold&&t.length>=Me.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 r=Object.keys(e);return "{ Object ("+(r.length>2?r.splice(0,2).join(", ")+", ...":r.join(", "))+") }"}else return t}else return t}a(jt,"objDisplay");E(jt,"objDisplay");function Oi(e,t){let n=X(e,"negate"),r=X(e,"object"),o=t[3],i=Ir(e,t),s=n?t[2]:t[1],c=X(e,"message");return typeof s=="function"&&(s=s()),s=s||"",s=s.replace(/#\{this\}/g,function(){return jt(r)}).replace(/#\{act\}/g,function(){return jt(i)}).replace(/#\{exp\}/g,function(){return jt(o)}),c?c+": "+s:s}a(Oi,"getMessage2");E(Oi,"getMessage");function tt(e,t,n){let r=e.__flags||(e.__flags=Object.create(null));t.__flags||(t.__flags=Object.create(null)),n=arguments.length===3?n:true;for(let o in r)(n||o!=="object"&&o!=="ssfi"&&o!=="lockSsfi"&&o!="message")&&(t.__flags[o]=r[o]);}a(tt,"transferFlags");E(tt,"transferFlags");function gi(e){if(typeof e>"u")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)}a(gi,"type2");E(gi,"type");function Pi(){this._key="chai/deep-eql__"+Math.random()+Date.now();}a(Pi,"FakeMap");E(Pi,"FakeMap");Pi.prototype={get:E(a(function(t){return t[this._key]},"get"),"get"),set:E(a(function(t,n){Object.isExtensible(t)&&Object.defineProperty(t,this._key,{value:n,configurable:true});},"set"),"set")};var Pl=typeof WeakMap=="function"?WeakMap:Pi;function yi(e,t,n){if(!n||Ft(e)||Ft(t))return null;var r=n.get(e);if(r){var o=r.get(t);if(typeof o=="boolean")return o}return null}a(yi,"memoizeCompare");E(yi,"memoizeCompare");function pn(e,t,n,r){if(!(!n||Ft(e)||Ft(t))){var o=n.get(e);o?o.set(t,r):(o=new Pl,o.set(t,r),n.set(e,o));}}a(pn,"memoizeSet");E(pn,"memoizeSet");var $l=gn;function gn(e,t,n){if(n&&n.comparator)return bi(e,t,n);var r=$i(e,t);return r!==null?r:bi(e,t,n)}a(gn,"deepEqual");E(gn,"deepEqual");function $i(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t?true:Ft(e)||Ft(t)?false:null}a($i,"simpleEqual");E($i,"simpleEqual");function bi(e,t,n){n=n||{},n.memoize=n.memoize===false?false:n.memoize||new Pl;var r=n&&n.comparator,o=yi(e,t,n.memoize);if(o!==null)return o;var i=yi(t,e,n.memoize);if(i!==null)return i;if(r){var s=r(e,t);if(s===false||s===true)return pn(e,t,n.memoize,s),s;var c=$i(e,t);if(c!==null)return c}var l=gi(e);if(l!==gi(t))return pn(e,t,n.memoize,false),false;pn(e,t,n.memoize,true);var u=Al(e,t,l,n);return pn(e,t,n.memoize,u),u}a(bi,"extensiveDeepEqual");E(bi,"extensiveDeepEqual");function Al(e,t,n,r){switch(n){case "String":case "Number":case "Boolean":case "Date":return gn(e.valueOf(),t.valueOf());case "Promise":case "Symbol":case "function":case "WeakMap":case "WeakSet":return e===t;case "Error":return Ai(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 St(e,t,r);case "RegExp":return kl(e,t);case "Generator":return Nl(e,t,r);case "DataView":return St(new Uint8Array(e.buffer),new Uint8Array(t.buffer),r);case "ArrayBuffer":return St(new Uint8Array(e),new Uint8Array(t),r);case "Set":return wi(e,t,r);case "Map":return wi(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 Rl(e,t,r)}}a(Al,"extensiveDeepEqualByType");E(Al,"extensiveDeepEqualByType");function kl(e,t){return e.toString()===t.toString()}a(kl,"regexpEqual");E(kl,"regexpEqual");function wi(e,t,n){try{if(e.size!==t.size)return false;if(e.size===0)return true}catch{return false}var r=[],o=[];return e.forEach(E(a(function(s,c){r.push([s,c]);},"gatherEntries"),"gatherEntries")),t.forEach(E(a(function(s,c){o.push([s,c]);},"gatherEntries"),"gatherEntries")),St(r.sort(),o.sort(),n)}a(wi,"entriesEqual");E(wi,"entriesEqual");function St(e,t,n){var r=e.length;if(r!==t.length)return false;if(r===0)return true;for(var o=-1;++o<r;)if(gn(e[o],t[o],n)===false)return false;return true}a(St,"iterableEqual");E(St,"iterableEqual");function Nl(e,t,n){return St(wr(e),wr(t),n)}a(Nl,"generatorEqual");E(Nl,"generatorEqual");function Ml(e){return typeof Symbol<"u"&&typeof e=="object"&&typeof Symbol.iterator<"u"&&typeof e[Symbol.iterator]=="function"}a(Ml,"hasIteratorFunction");E(Ml,"hasIteratorFunction");function Si(e){if(Ml(e))try{return wr(e[Symbol.iterator]())}catch{return []}return []}a(Si,"getIteratorEntries");E(Si,"getIteratorEntries");function wr(e){for(var t=e.next(),n=[t.value];t.done===false;)t=e.next(),n.push(t.value);return n}a(wr,"getGeneratorEntries");E(wr,"getGeneratorEntries");function Ti(e){var t=[];for(var n in e)t.push(n);return t}a(Ti,"getEnumerableKeys");E(Ti,"getEnumerableKeys");function xi(e){for(var t=[],n=Object.getOwnPropertySymbols(e),r=0;r<n.length;r+=1){var o=n[r];Object.getOwnPropertyDescriptor(e,o).enumerable&&t.push(o);}return t}a(xi,"getEnumerableSymbols");E(xi,"getEnumerableSymbols");function Ai(e,t,n,r){var o=n.length;if(o===0)return true;for(var i=0;i<o;i+=1)if(gn(e[n[i]],t[n[i]],r)===false)return false;return true}a(Ai,"keysEqual");E(Ai,"keysEqual");function Rl(e,t,n){var r=Ti(e),o=Ti(t),i=xi(e),s=xi(t);if(r=r.concat(i),o=o.concat(s),r.length&&r.length===o.length)return St(vi(r).sort(),vi(o).sort())===false?false:Ai(e,t,r,n);var c=Si(e),l=Si(t);return c.length&&c.length===l.length?(c.sort(),l.sort(),St(c,l,n)):r.length===0&&c.length===0&&o.length===0&&l.length===0}a(Rl,"objectEqual");E(Rl,"objectEqual");function Ft(e){return e===null||typeof e!="object"}a(Ft,"isPrimitive");E(Ft,"isPrimitive");function vi(e){return e.map(E(a(function(n){return typeof n=="symbol"?n.toString():n},"mapSymbol"),"mapSymbol"))}a(vi,"mapSymbols");E(vi,"mapSymbols");function Cr(e,t){return typeof e>"u"||e===null?false:t in Object(e)}a(Cr,"hasProperty");E(Cr,"hasProperty");function jl(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(r=>{if(r==="constructor"||r==="__proto__"||r==="prototype")return {};let i=/^\[(\d+)\]$/.exec(r),s=null;return i?s={i:parseFloat(i[1])}:s={p:r.replace(/\\([.[\]])/g,"$1")},s})}a(jl,"parsePath");E(jl,"parsePath");function Ei(e,t,n){let r=e,o=null;n=typeof n>"u"?t.length:n;for(let i=0;i<n;i++){let s=t[i];r&&(typeof s.p>"u"?r=r[s.i]:r=r[s.p],i===n-1&&(o=r));}return o}a(Ei,"internalGetPathValue");E(Ei,"internalGetPathValue");function ki(e,t){let n=jl(t),r=n[n.length-1],o={parent:n.length>1?Ei(e,n,n.length-1):e,name:r.p||r.i,value:Ei(e,n)};return o.exists=Cr(o.parent,o.name),o}a(ki,"getPathInfo");E(ki,"getPathInfo");var b=class Fl{static{a(this,"_Assertion");}static{E(this,"Assertion");}__flags={};constructor(t,n,r,o){return X(this,"ssfi",r||Fl),X(this,"lockSsfi",o),X(this,"object",t),X(this,"message",n),X(this,"eql",Me.deepEqual||$l),Ht(this)}static get includeStack(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),Me.includeStack}static set includeStack(t){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),Me.includeStack=t;}static get showDiff(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),Me.showDiff}static set showDiff(t){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),Me.showDiff=t;}static addProperty(t,n){Ni(this.prototype,t,n);}static addMethod(t,n){Mi(this.prototype,t,n);}static addChainableMethod(t,n,r){Fi(this.prototype,t,n,r);}static overwriteProperty(t,n){Ri(this.prototype,t,n);}static overwriteMethod(t,n){ji(this.prototype,t,n);}static overwriteChainableMethod(t,n,r){Li(this.prototype,t,n,r);}assert(t,n,r,o,i,s){let c=Ci(this,arguments);if(s!==false&&(s=true),o===void 0&&i===void 0&&(s=false),Me.showDiff!==true&&(s=false),!c){n=Oi(this,arguments);let u={actual:Ir(this,arguments),expected:o,showDiff:s},f=Bi(this,arguments);throw f&&(u.operator=f),new ne(n,u,Me.includeStack?this.assert:X(this,"ssfi"))}}get _obj(){return X(this,"object")}set _obj(t){X(this,"object",t);}};function yn(){return Me.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}a(yn,"isProxyEnabled");E(yn,"isProxyEnabled");function Ni(e,t,n){n=n===void 0?function(){}:n,Object.defineProperty(e,t,{get:E(a(function r(){!yn()&&!X(this,"lockSsfi")&&X(this,"ssfi",r);let o=n.call(this);if(o!==void 0)return o;let i=new b;return tt(this,i),i},"propertyGetter"),"propertyGetter"),configurable:true});}a(Ni,"addProperty");E(Ni,"addProperty");var qm=Object.getOwnPropertyDescriptor(function(){},"length");function bn(e,t,n){return qm.configurable&&Object.defineProperty(e,"length",{get:E(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}a(bn,"addLengthGuard");E(bn,"addLengthGuard");function Ll(e){let t=Object.getOwnPropertyNames(e);function n(o){t.indexOf(o)===-1&&t.push(o);}a(n,"addProperty2"),E(n,"addProperty");let r=Object.getPrototypeOf(e);for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n),r=Object.getPrototypeOf(r);return t}a(Ll,"getProperties");E(Ll,"getProperties");var Zc=["__flags","__methods","_obj","assert"];function Ht(e,t){return yn()?new Proxy(e,{get:E(a(function n(r,o){if(typeof o=="string"&&Me.proxyExcludedKeys.indexOf(o)===-1&&!Reflect.has(r,o)){if(t)throw Error("Invalid Chai property: "+t+"."+o+'. See docs for proper usage of "'+t+'".');let i=null,s=4;throw Ll(r).forEach(function(c){if(!Object.prototype.hasOwnProperty(c)&&Zc.indexOf(c)===-1){let l=Dl(o,c,s);l<s&&(i=c,s=l);}}),Error(i!==null?"Invalid Chai property: "+o+'. Did you mean "'+i+'"?':"Invalid Chai property: "+o)}return Zc.indexOf(o)===-1&&!X(r,"lockSsfi")&&X(r,"ssfi",n),Reflect.get(r,o)},"proxyGetter"),"proxyGetter")}):e}a(Ht,"proxify");E(Ht,"proxify");function Dl(e,t,n){if(Math.abs(e.length-t.length)>=n)return n;let r=[];for(let o=0;o<=e.length;o++)r[o]=Array(t.length+1).fill(0),r[o][0]=o;for(let o=0;o<t.length;o++)r[0][o]=o;for(let o=1;o<=e.length;o++){let i=e.charCodeAt(o-1);for(let s=1;s<=t.length;s++){if(Math.abs(o-s)>=n){r[o][s]=n;continue}r[o][s]=Math.min(r[o-1][s]+1,r[o][s-1]+1,r[o-1][s-1]+(i===t.charCodeAt(s-1)?0:1));}}return r[e.length][t.length]}a(Dl,"stringDistanceCapped");E(Dl,"stringDistanceCapped");function Mi(e,t,n){let r=E(function(){X(this,"lockSsfi")||X(this,"ssfi",r);let o=n.apply(this,arguments);if(o!==void 0)return o;let i=new b;return tt(this,i),i},"methodWrapper");bn(r,t,false),e[t]=Ht(r,t);}a(Mi,"addMethod");E(Mi,"addMethod");function Ri(e,t,n){let r=Object.getOwnPropertyDescriptor(e,t),o=E(function(){},"_super");r&&typeof r.get=="function"&&(o=r.get),Object.defineProperty(e,t,{get:E(a(function i(){!yn()&&!X(this,"lockSsfi")&&X(this,"ssfi",i);let s=X(this,"lockSsfi");X(this,"lockSsfi",true);let c=n(o).call(this);if(X(this,"lockSsfi",s),c!==void 0)return c;let l=new b;return tt(this,l),l},"overwritingPropertyGetter"),"overwritingPropertyGetter"),configurable:true});}a(Ri,"overwriteProperty");E(Ri,"overwriteProperty");function ji(e,t,n){let r=e[t],o=E(function(){throw new Error(t+" is not a function")},"_super");r&&typeof r=="function"&&(o=r);let i=E(function(){X(this,"lockSsfi")||X(this,"ssfi",i);let s=X(this,"lockSsfi");X(this,"lockSsfi",true);let c=n(o).apply(this,arguments);if(X(this,"lockSsfi",s),c!==void 0)return c;let l=new b;return tt(this,l),l},"overwritingMethodWrapper");bn(i,t,false),e[t]=Ht(i,t);}a(ji,"overwriteMethod");E(ji,"overwriteMethod");var Bm=typeof Object.setPrototypeOf=="function",Qc=E(function(){},"testFn"),zm=Object.getOwnPropertyNames(Qc).filter(function(e){let t=Object.getOwnPropertyDescriptor(Qc,e);return typeof t!="object"?true:!t.configurable}),Wm=Function.prototype.call,Um=Function.prototype.apply;function Fi(e,t,n,r){typeof r!="function"&&(r=E(function(){},"chainingBehavior"));let o={method:n,chainingBehavior:r};e.__methods||(e.__methods={}),e.__methods[t]=o,Object.defineProperty(e,t,{get:E(a(function(){o.chainingBehavior.call(this);let s=E(function(){X(this,"lockSsfi")||X(this,"ssfi",s);let c=o.method.apply(this,arguments);if(c!==void 0)return c;let l=new b;return tt(this,l),l},"chainableMethodWrapper");if(bn(s,t,true),Bm){let c=Object.create(this);c.call=Wm,c.apply=Um,Object.setPrototypeOf(s,c);}else Object.getOwnPropertyNames(e).forEach(function(l){if(zm.indexOf(l)!==-1)return;let u=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(s,l,u);});return tt(this,s),Ht(s)},"chainableMethodGetter"),"chainableMethodGetter"),configurable:true});}a(Fi,"addChainableMethod");E(Fi,"addChainableMethod");function Li(e,t,n,r){let o=e.__methods[t],i=o.chainingBehavior;o.chainingBehavior=E(a(function(){let l=r(i).call(this);if(l!==void 0)return l;let u=new b;return tt(this,u),u},"overwritingChainableMethodGetter"),"overwritingChainableMethodGetter");let s=o.method;o.method=E(a(function(){let l=n(s).apply(this,arguments);if(l!==void 0)return l;let u=new b;return tt(this,u),u},"overwritingChainableMethodWrapper"),"overwritingChainableMethodWrapper");}a(Li,"overwriteChainableMethod");E(Li,"overwriteChainableMethod");function Sr(e,t){return Q(e)<Q(t)?-1:1}a(Sr,"compareByInspect");E(Sr,"compareByInspect");function Di(e){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}a(Di,"getOwnEnumerablePropertySymbols");E(Di,"getOwnEnumerablePropertySymbols");function qi(e){return Object.keys(e).concat(Di(e))}a(qi,"getOwnEnumerableProperties");E(qi,"getOwnEnumerableProperties");var Tr=Number.isNaN;function ql(e){let t=ce(e);return ["Array","Object","Function"].indexOf(t)!==-1}a(ql,"isObjectType");E(ql,"isObjectType");function Bi(e,t){let n=X(e,"operator"),r=X(e,"negate"),o=t[3],i=r?t[2]:t[1];if(n)return n;if(typeof i=="function"&&(i=i()),i=i||"",!i||/\shave\s/.test(i))return;let s=ql(o);return /\snot\s/.test(i)?s?"notDeepStrictEqual":"notStrictEqual":s?"deepStrictEqual":"strictEqual"}a(Bi,"getOperator");E(Bi,"getOperator");function _r(e){return e.name}a(_r,"getName");E(_r,"getName");function xr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}a(xr,"isRegExp2");E(xr,"isRegExp");function Ee(e){return ["Number","BigInt"].includes(ce(e))}a(Ee,"isNumeric");E(Ee,"isNumeric");var{flag:x}=Se;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(e){b.addProperty(e);});b.addProperty("not",function(){x(this,"negate",true);});b.addProperty("deep",function(){x(this,"deep",true);});b.addProperty("nested",function(){x(this,"nested",true);});b.addProperty("own",function(){x(this,"own",true);});b.addProperty("ordered",function(){x(this,"ordered",true);});b.addProperty("any",function(){x(this,"any",true),x(this,"all",false);});b.addProperty("all",function(){x(this,"all",true),x(this,"any",false);});var el={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function zi(e,t){t&&x(this,"message",t),e=e.toLowerCase();let n=x(this,"object"),r=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ",o=ce(n).toLowerCase();el.function.includes(e)?this.assert(el[e].includes(o),"expected #{this} to be "+r+e,"expected #{this} not to be "+r+e):this.assert(e===o,"expected #{this} to be "+r+e,"expected #{this} not to be "+r+e);}a(zi,"an");E(zi,"an");b.addChainableMethod("an",zi);b.addChainableMethod("a",zi);function Bl(e,t){return Tr(e)&&Tr(t)||e===t}a(Bl,"SameValueZero");E(Bl,"SameValueZero");function wn(){x(this,"contains",true);}a(wn,"includeChainingBehavior");E(wn,"includeChainingBehavior");function Sn(e,t){t&&x(this,"message",t);let n=x(this,"object"),r=ce(n).toLowerCase(),o=x(this,"message"),i=x(this,"negate"),s=x(this,"ssfi"),c=x(this,"deep"),l=c?"deep ":"",u=c?x(this,"eql"):Bl;o=o?o+": ":"";let f=false;switch(r){case "string":f=n.indexOf(e)!==-1;break;case "weakset":if(c)throw new ne(o+"unable to use .deep.include with WeakSet",void 0,s);f=n.has(e);break;case "map":n.forEach(function(h){f=f||u(h,e);});break;case "set":c?n.forEach(function(h){f=f||u(h,e);}):f=n.has(e);break;case "array":c?f=n.some(function(h){return u(h,e)}):f=n.indexOf(e)!==-1;break;default:{if(e!==Object(e))throw new ne(o+"the given combination of arguments ("+r+" and "+ce(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 "+ce(e).toLowerCase(),void 0,s);let h=Object.keys(e),m=null,d=0;if(h.forEach(function(g){let p=new b(n);if(tt(this,p,true),x(p,"lockSsfi",true),!i||h.length===1){p.property(g,e[g]);return}try{p.property(g,e[g]);}catch(S){if(!ze.compatibleConstructor(S,ne))throw S;m===null&&(m=S),d++;}},this),i&&h.length>1&&d===h.length)throw m;return}}this.assert(f,"expected #{this} to "+l+"include "+Q(e),"expected #{this} to not "+l+"include "+Q(e));}a(Sn,"include");E(Sn,"include");b.addChainableMethod("include",Sn,wn);b.addChainableMethod("contain",Sn,wn);b.addChainableMethod("contains",Sn,wn);b.addChainableMethod("includes",Sn,wn);b.addProperty("ok",function(){this.assert(x(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy");});b.addProperty("true",function(){this.assert(x(this,"object")===true,"expected #{this} to be true","expected #{this} to be false",!x(this,"negate"));});b.addProperty("numeric",function(){let e=x(this,"object");this.assert(["Number","BigInt"].includes(ce(e)),"expected #{this} to be numeric","expected #{this} to not be numeric",!x(this,"negate"));});b.addProperty("callable",function(){let e=x(this,"object"),t=x(this,"ssfi"),n=x(this,"message"),r=n?`${n}: `:"",o=x(this,"negate"),i=o?`${r}expected ${Q(e)} not to be a callable function`:`${r}expected ${Q(e)} to be a callable function`,s=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(ce(e));if(s&&o||!s&&!o)throw new ne(i,void 0,t)});b.addProperty("false",function(){this.assert(x(this,"object")===false,"expected #{this} to be false","expected #{this} to be true",!!x(this,"negate"));});b.addProperty("null",function(){this.assert(x(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null");});b.addProperty("undefined",function(){this.assert(x(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined");});b.addProperty("NaN",function(){this.assert(Tr(x(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN");});function Wi(){let e=x(this,"object");this.assert(e!=null,"expected #{this} to exist","expected #{this} to not exist");}a(Wi,"assertExist");E(Wi,"assertExist");b.addProperty("exist",Wi);b.addProperty("exists",Wi);b.addProperty("empty",function(){let e=x(this,"object"),t=x(this,"ssfi"),n=x(this,"message"),r;switch(n=n?n+": ":"",ce(e).toLowerCase()){case "array":case "string":r=e.length;break;case "map":case "set":r=e.size;break;case "weakmap":case "weakset":throw new ne(n+".empty was passed a weak collection",void 0,t);case "function":{let o=n+".empty was passed a function "+_r(e);throw new ne(o.trim(),void 0,t)}default:if(e!==Object(e))throw new ne(n+".empty was passed non-string primitive "+Q(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 Ui(){let e=x(this,"object"),t=ce(e);this.assert(t==="Arguments","expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments");}a(Ui,"checkArguments");E(Ui,"checkArguments");b.addProperty("arguments",Ui);b.addProperty("Arguments",Ui);function Or(e,t){t&&x(this,"message",t);let n=x(this,"object");if(x(this,"deep")){let r=x(this,"lockSsfi");x(this,"lockSsfi",true),this.eql(e),x(this,"lockSsfi",r);}else this.assert(e===n,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,true);}a(Or,"assertEqual");E(Or,"assertEqual");b.addMethod("equal",Or);b.addMethod("equals",Or);b.addMethod("eq",Or);function Ji(e,t){t&&x(this,"message",t);let n=x(this,"eql");this.assert(n(e,x(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,true);}a(Ji,"assertEql");E(Ji,"assertEql");b.addMethod("eql",Ji);b.addMethod("eqls",Ji);function Pr(e,t){t&&x(this,"message",t);let n=x(this,"object"),r=x(this,"doLength"),o=x(this,"message"),i=o?o+": ":"",s=x(this,"ssfi"),c=ce(n).toLowerCase(),l=ce(e).toLowerCase();if(r&&c!=="map"&&c!=="set"&&new b(n,o,s,true).to.have.property("length"),!r&&c==="date"&&l!=="date")throw new ne(i+"the argument to above must be a date",void 0,s);if(!Ee(e)&&(r||Ee(n)))throw new ne(i+"the argument to above must be a number",void 0,s);if(!r&&c!=="date"&&!Ee(n)){let u=c==="string"?"'"+n+"'":n;throw new ne(i+"expected "+u+" to be a number or a date",void 0,s)}if(r){let u="length",f;c==="map"||c==="set"?(u="size",f=n.size):f=n.length,this.assert(f>e,"expected #{this} to have a "+u+" above #{exp} but got #{act}","expected #{this} to not have a "+u+" above #{exp}",e,f);}else this.assert(n>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e);}a(Pr,"assertAbove");E(Pr,"assertAbove");b.addMethod("above",Pr);b.addMethod("gt",Pr);b.addMethod("greaterThan",Pr);function $r(e,t){t&&x(this,"message",t);let n=x(this,"object"),r=x(this,"doLength"),o=x(this,"message"),i=o?o+": ":"",s=x(this,"ssfi"),c=ce(n).toLowerCase(),l=ce(e).toLowerCase(),u,f=true;if(r&&c!=="map"&&c!=="set"&&new b(n,o,s,true).to.have.property("length"),!r&&c==="date"&&l!=="date")u=i+"the argument to least must be a date";else if(!Ee(e)&&(r||Ee(n)))u=i+"the argument to least must be a number";else if(!r&&c!=="date"&&!Ee(n)){let h=c==="string"?"'"+n+"'":n;u=i+"expected "+h+" to be a number or a date";}else f=false;if(f)throw new ne(u,void 0,s);if(r){let h="length",m;c==="map"||c==="set"?(h="size",m=n.size):m=n.length,this.assert(m>=e,"expected #{this} to have a "+h+" at least #{exp} but got #{act}","expected #{this} to have a "+h+" below #{exp}",e,m);}else this.assert(n>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e);}a($r,"assertLeast");E($r,"assertLeast");b.addMethod("least",$r);b.addMethod("gte",$r);b.addMethod("greaterThanOrEqual",$r);function Ar(e,t){t&&x(this,"message",t);let n=x(this,"object"),r=x(this,"doLength"),o=x(this,"message"),i=o?o+": ":"",s=x(this,"ssfi"),c=ce(n).toLowerCase(),l=ce(e).toLowerCase(),u,f=true;if(r&&c!=="map"&&c!=="set"&&new b(n,o,s,true).to.have.property("length"),!r&&c==="date"&&l!=="date")u=i+"the argument to below must be a date";else if(!Ee(e)&&(r||Ee(n)))u=i+"the argument to below must be a number";else if(!r&&c!=="date"&&!Ee(n)){let h=c==="string"?"'"+n+"'":n;u=i+"expected "+h+" to be a number or a date";}else f=false;if(f)throw new ne(u,void 0,s);if(r){let h="length",m;c==="map"||c==="set"?(h="size",m=n.size):m=n.length,this.assert(m<e,"expected #{this} to have a "+h+" below #{exp} but got #{act}","expected #{this} to not have a "+h+" below #{exp}",e,m);}else this.assert(n<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e);}a(Ar,"assertBelow");E(Ar,"assertBelow");b.addMethod("below",Ar);b.addMethod("lt",Ar);b.addMethod("lessThan",Ar);function kr(e,t){t&&x(this,"message",t);let n=x(this,"object"),r=x(this,"doLength"),o=x(this,"message"),i=o?o+": ":"",s=x(this,"ssfi"),c=ce(n).toLowerCase(),l=ce(e).toLowerCase(),u,f=true;if(r&&c!=="map"&&c!=="set"&&new b(n,o,s,true).to.have.property("length"),!r&&c==="date"&&l!=="date")u=i+"the argument to most must be a date";else if(!Ee(e)&&(r||Ee(n)))u=i+"the argument to most must be a number";else if(!r&&c!=="date"&&!Ee(n)){let h=c==="string"?"'"+n+"'":n;u=i+"expected "+h+" to be a number or a date";}else f=false;if(f)throw new ne(u,void 0,s);if(r){let h="length",m;c==="map"||c==="set"?(h="size",m=n.size):m=n.length,this.assert(m<=e,"expected #{this} to have a "+h+" at most #{exp} but got #{act}","expected #{this} to have a "+h+" above #{exp}",e,m);}else this.assert(n<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e);}a(kr,"assertMost");E(kr,"assertMost");b.addMethod("most",kr);b.addMethod("lte",kr);b.addMethod("lessThanOrEqual",kr);b.addMethod("within",function(e,t,n){n&&x(this,"message",n);let r=x(this,"object"),o=x(this,"doLength"),i=x(this,"message"),s=i?i+": ":"",c=x(this,"ssfi"),l=ce(r).toLowerCase(),u=ce(e).toLowerCase(),f=ce(t).toLowerCase(),h,m=true,d=u==="date"&&f==="date"?e.toISOString()+".."+t.toISOString():e+".."+t;if(o&&l!=="map"&&l!=="set"&&new b(r,i,c,true).to.have.property("length"),!o&&l==="date"&&(u!=="date"||f!=="date"))h=s+"the arguments to within must be dates";else if((!Ee(e)||!Ee(t))&&(o||Ee(r)))h=s+"the arguments to within must be numbers";else if(!o&&l!=="date"&&!Ee(r)){let g=l==="string"?"'"+r+"'":r;h=s+"expected "+g+" to be a number or a date";}else m=false;if(m)throw new ne(h,void 0,c);if(o){let g="length",p;l==="map"||l==="set"?(g="size",p=r.size):p=r.length,this.assert(p>=e&&p<=t,"expected #{this} to have a "+g+" within "+d,"expected #{this} to not have a "+g+" within "+d);}else this.assert(r>=e&&r<=t,"expected #{this} to be within "+d,"expected #{this} to not be within "+d);});function Vi(e,t){t&&x(this,"message",t);let n=x(this,"object"),r=x(this,"ssfi"),o=x(this,"message"),i;try{i=n instanceof e;}catch(c){throw c instanceof TypeError?(o=o?o+": ":"",new ne(o+"The instanceof assertion needs a constructor but "+ce(e)+" was given.",void 0,r)):c}let s=_r(e);s==null&&(s="an unnamed constructor"),this.assert(i,"expected #{this} to be an instance of "+s,"expected #{this} to not be an instance of "+s);}a(Vi,"assertInstanceOf");E(Vi,"assertInstanceOf");b.addMethod("instanceof",Vi);b.addMethod("instanceOf",Vi);function Ki(e,t,n){n&&x(this,"message",n);let r=x(this,"nested"),o=x(this,"own"),i=x(this,"message"),s=x(this,"object"),c=x(this,"ssfi"),l=typeof e;if(i=i?i+": ":"",r){if(l!=="string")throw new ne(i+"the argument to property must be a string when using nested syntax",void 0,c)}else if(l!=="string"&&l!=="number"&&l!=="symbol")throw new ne(i+"the argument to property must be a string, number, or symbol",void 0,c);if(r&&o)throw new ne(i+'The "nested" and "own" flags cannot be combined.',void 0,c);if(s==null)throw new ne(i+"Target cannot be null or undefined.",void 0,c);let u=x(this,"deep"),f=x(this,"negate"),h=r?ki(s,e):null,m=r?h.value:s[e],d=u?x(this,"eql"):(S,T)=>S===T,g="";u&&(g+="deep "),o&&(g+="own "),r&&(g+="nested "),g+="property ";let p;o?p=Object.prototype.hasOwnProperty.call(s,e):r?p=h.exists:p=Cr(s,e),(!f||arguments.length===1)&&this.assert(p,"expected #{this} to have "+g+Q(e),"expected #{this} to not have "+g+Q(e)),arguments.length>1&&this.assert(p&&d(t,m),"expected #{this} to have "+g+Q(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+g+Q(e)+" of #{act}",t,m),x(this,"object",m);}a(Ki,"assertProperty");E(Ki,"assertProperty");b.addMethod("property",Ki);function Xi(e,t,n){x(this,"own",true),Ki.apply(this,arguments);}a(Xi,"assertOwnProperty");E(Xi,"assertOwnProperty");b.addMethod("ownProperty",Xi);b.addMethod("haveOwnProperty",Xi);function Gi(e,t,n){typeof t=="string"&&(n=t,t=null),n&&x(this,"message",n);let r=x(this,"object"),o=Object.getOwnPropertyDescriptor(Object(r),e),i=x(this,"eql");o&&t?this.assert(i(t,o),"expected the own property descriptor for "+Q(e)+" on #{this} to match "+Q(t)+", got "+Q(o),"expected the own property descriptor for "+Q(e)+" on #{this} to not match "+Q(t),t,o,true):this.assert(o,"expected #{this} to have an own property descriptor for "+Q(e),"expected #{this} to not have an own property descriptor for "+Q(e)),x(this,"object",o);}a(Gi,"assertOwnPropertyDescriptor");E(Gi,"assertOwnPropertyDescriptor");b.addMethod("ownPropertyDescriptor",Gi);b.addMethod("haveOwnPropertyDescriptor",Gi);function Yi(){x(this,"doLength",true);}a(Yi,"assertLengthChain");E(Yi,"assertLengthChain");function Hi(e,t){t&&x(this,"message",t);let n=x(this,"object"),r=ce(n).toLowerCase(),o=x(this,"message"),i=x(this,"ssfi"),s="length",c;switch(r){case "map":case "set":s="size",c=n.size;break;default:new b(n,o,i,true).to.have.property("length"),c=n.length;}this.assert(c==e,"expected #{this} to have a "+s+" of #{exp} but got #{act}","expected #{this} to not have a "+s+" of #{act}",e,c);}a(Hi,"assertLength");E(Hi,"assertLength");b.addChainableMethod("length",Hi,Yi);b.addChainableMethod("lengthOf",Hi,Yi);function Zi(e,t){t&&x(this,"message",t);let n=x(this,"object");this.assert(e.exec(n),"expected #{this} to match "+e,"expected #{this} not to match "+e);}a(Zi,"assertMatch");E(Zi,"assertMatch");b.addMethod("match",Zi);b.addMethod("matches",Zi);b.addMethod("string",function(e,t){t&&x(this,"message",t);let n=x(this,"object"),r=x(this,"message"),o=x(this,"ssfi");new b(n,r,o,true).is.a("string"),this.assert(~n.indexOf(e),"expected #{this} to contain "+Q(e),"expected #{this} to not contain "+Q(e));});function Qi(e){let t=x(this,"object"),n=ce(t),r=ce(e),o=x(this,"ssfi"),i=x(this,"deep"),s,c="",l,u=true,f=x(this,"message");f=f?f+": ":"";let h=f+"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")c=i?"deeply ":"",l=[],t.forEach(function(T,I){l.push(I);}),r!=="Array"&&(e=Array.prototype.slice.call(arguments));else {switch(l=qi(t),r){case "Array":if(arguments.length>1)throw new ne(h,void 0,o);break;case "Object":if(arguments.length>1)throw new ne(h,void 0,o);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments);}e=e.map(function(T){return typeof T=="symbol"?T:String(T)});}if(!e.length)throw new ne(f+"keys required",void 0,o);let m=e.length,d=x(this,"any"),g=x(this,"all"),p=e,S=i?x(this,"eql"):(T,I)=>T===I;if(!d&&!g&&(g=true),d&&(u=p.some(function(T){return l.some(function(I){return S(T,I)})})),g&&(u=p.every(function(T){return l.some(function(I){return S(T,I)})}),x(this,"contains")||(u=u&&e.length==l.length)),m>1){e=e.map(function(I){return Q(I)});let T=e.pop();g&&(s=e.join(", ")+", and "+T),d&&(s=e.join(", ")+", or "+T);}else s=Q(e[0]);s=(m>1?"keys ":"key ")+s,s=(x(this,"contains")?"contain ":"have ")+s,this.assert(u,"expected #{this} to "+c+s,"expected #{this} to not "+c+s,p.slice(0).sort(Sr),l.sort(Sr),true);}a(Qi,"assertKeys");E(Qi,"assertKeys");b.addMethod("keys",Qi);b.addMethod("key",Qi);function Nr(e,t,n){n&&x(this,"message",n);let r=x(this,"object"),o=x(this,"ssfi"),i=x(this,"message"),s=x(this,"negate")||false;new b(r,i,o,true).is.a("function"),(xr(e)||typeof e=="string")&&(t=e,e=null);let c,l=false;try{r();}catch(d){l=true,c=d;}let u=e===void 0&&t===void 0,f=!!(e&&t),h=false,m=false;if(u||!u&&!s){let d="an error";e instanceof Error?d="#{exp}":e&&(d=ze.getConstructorName(e));let g=c;if(c instanceof Error)g=c.toString();else if(typeof c=="string")g=c;else if(c&&(typeof c=="object"||typeof c=="function"))try{g=ze.getConstructorName(c);}catch{}this.assert(l,"expected #{this} to throw "+d,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),g);}if(e&&c&&(e instanceof Error&&ze.compatibleInstance(c,e)===s&&(f&&s?h=true:this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(c&&!s?" but #{act} was thrown":""),e.toString(),c.toString())),ze.compatibleConstructor(c,e)===s&&(f&&s?h=true:this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(c?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&ze.getConstructorName(e),c instanceof Error?c.toString():c&&ze.getConstructorName(c)))),c&&t!==void 0&&t!==null){let d="including";xr(t)&&(d="matching"),ze.compatibleMessage(c,t)===s&&(f&&s?m=true:this.assert(s,"expected #{this} to throw error "+d+" #{exp} but got #{act}","expected #{this} to throw error not "+d+" #{exp}",t,ze.getMessage(c)));}h&&m&&this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(c?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&ze.getConstructorName(e),c instanceof Error?c.toString():c&&ze.getConstructorName(c)),x(this,"object",c);}a(Nr,"assertThrows");E(Nr,"assertThrows");b.addMethod("throw",Nr);b.addMethod("throws",Nr);b.addMethod("Throw",Nr);function es(e,t){t&&x(this,"message",t);let n=x(this,"object"),r=x(this,"itself"),o=typeof n=="function"&&!r?n.prototype[e]:n[e];this.assert(typeof o=="function","expected #{this} to respond to "+Q(e),"expected #{this} to not respond to "+Q(e));}a(es,"respondTo");E(es,"respondTo");b.addMethod("respondTo",es);b.addMethod("respondsTo",es);b.addProperty("itself",function(){x(this,"itself",true);});function ts(e,t){t&&x(this,"message",t);let n=x(this,"object"),r=e(n);this.assert(r,"expected #{this} to satisfy "+jt(e),"expected #{this} to not satisfy"+jt(e),!x(this,"negate"),r);}a(ts,"satisfy");E(ts,"satisfy");b.addMethod("satisfy",ts);b.addMethod("satisfies",ts);function ns(e,t,n){n&&x(this,"message",n);let r=x(this,"object"),o=x(this,"message"),i=x(this,"ssfi");new b(r,o,i,true).is.numeric;let s="A `delta` value is required for `closeTo`";if(t==null)throw new ne(o?`${o}: ${s}`:s,void 0,i);if(new b(t,o,i,true).is.numeric,s="A `expected` value is required for `closeTo`",e==null)throw new ne(o?`${o}: ${s}`:s,void 0,i);new b(e,o,i,true).is.numeric;let c=E(u=>u<0n?-u:u,"abs"),l=E(u=>parseFloat(parseFloat(u).toPrecision(12)),"strip");this.assert(l(c(r-e))<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t);}a(ns,"closeTo");E(ns,"closeTo");b.addMethod("closeTo",ns);b.addMethod("approximately",ns);function zl(e,t,n,r,o){let i=Array.from(t),s=Array.from(e);if(!r){if(s.length!==i.length)return false;i=i.slice();}return s.every(function(c,l){if(o)return n?n(c,i[l]):c===i[l];if(!n){let u=i.indexOf(c);return u===-1?false:(r||i.splice(u,1),true)}return i.some(function(u,f){return n(c,u)?(r||i.splice(f,1),true):false})})}a(zl,"isSubsetOf");E(zl,"isSubsetOf");b.addMethod("members",function(e,t){t&&x(this,"message",t);let n=x(this,"object"),r=x(this,"message"),o=x(this,"ssfi");new b(n,r,o,true).to.be.iterable,new b(e,r,o,true).to.be.iterable;let i=x(this,"contains"),s=x(this,"ordered"),c,l,u;i?(c=s?"an ordered superset":"a superset",l="expected #{this} to be "+c+" of #{exp}",u="expected #{this} to not be "+c+" of #{exp}"):(c=s?"ordered members":"members",l="expected #{this} to have the same "+c+" as #{exp}",u="expected #{this} to not have the same "+c+" as #{exp}");let f=x(this,"deep")?x(this,"eql"):void 0;this.assert(zl(e,n,f,i,s),l,u,e,n,true);});b.addProperty("iterable",function(e){e&&x(this,"message",e);let t=x(this,"object");this.assert(t!=null&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t);});function Wl(e,t){t&&x(this,"message",t);let n=x(this,"object"),r=x(this,"message"),o=x(this,"ssfi"),i=x(this,"contains"),s=x(this,"deep"),c=x(this,"eql");new b(e,r,o,true).to.be.an("array"),i?this.assert(e.some(function(l){return n.indexOf(l)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,n):s?this.assert(e.some(function(l){return c(n,l)}),"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);}a(Wl,"oneOf");E(Wl,"oneOf");b.addMethod("oneOf",Wl);function rs(e,t,n){n&&x(this,"message",n);let r=x(this,"object"),o=x(this,"message"),i=x(this,"ssfi");new b(r,o,i,true).is.a("function");let s;t?(new b(e,o,i,true).to.have.property(t),s=e[t]):(new b(e,o,i,true).is.a("function"),s=e()),r();let c=t==null?e():e[t],l=t==null?s:"."+t;x(this,"deltaMsgObj",l),x(this,"initialDeltaValue",s),x(this,"finalDeltaValue",c),x(this,"deltaBehavior","change"),x(this,"realDelta",c!==s),this.assert(s!==c,"expected "+l+" to change","expected "+l+" to not change");}a(rs,"assertChanges");E(rs,"assertChanges");b.addMethod("change",rs);b.addMethod("changes",rs);function os(e,t,n){n&&x(this,"message",n);let r=x(this,"object"),o=x(this,"message"),i=x(this,"ssfi");new b(r,o,i,true).is.a("function");let s;t?(new b(e,o,i,true).to.have.property(t),s=e[t]):(new b(e,o,i,true).is.a("function"),s=e()),new b(s,o,i,true).is.a("number"),r();let c=t==null?e():e[t],l=t==null?s:"."+t;x(this,"deltaMsgObj",l),x(this,"initialDeltaValue",s),x(this,"finalDeltaValue",c),x(this,"deltaBehavior","increase"),x(this,"realDelta",c-s),this.assert(c-s>0,"expected "+l+" to increase","expected "+l+" to not increase");}a(os,"assertIncreases");E(os,"assertIncreases");b.addMethod("increase",os);b.addMethod("increases",os);function is(e,t,n){n&&x(this,"message",n);let r=x(this,"object"),o=x(this,"message"),i=x(this,"ssfi");new b(r,o,i,true).is.a("function");let s;t?(new b(e,o,i,true).to.have.property(t),s=e[t]):(new b(e,o,i,true).is.a("function"),s=e()),new b(s,o,i,true).is.a("number"),r();let c=t==null?e():e[t],l=t==null?s:"."+t;x(this,"deltaMsgObj",l),x(this,"initialDeltaValue",s),x(this,"finalDeltaValue",c),x(this,"deltaBehavior","decrease"),x(this,"realDelta",s-c),this.assert(c-s<0,"expected "+l+" to decrease","expected "+l+" to not decrease");}a(is,"assertDecreases");E(is,"assertDecreases");b.addMethod("decrease",is);b.addMethod("decreases",is);function Ul(e,t){t&&x(this,"message",t);let n=x(this,"deltaMsgObj"),r=x(this,"initialDeltaValue"),o=x(this,"finalDeltaValue"),i=x(this,"deltaBehavior"),s=x(this,"realDelta"),c;i==="change"?c=Math.abs(o-r)===Math.abs(e):c=s===Math.abs(e),this.assert(c,"expected "+n+" to "+i+" by "+e,"expected "+n+" to not "+i+" by "+e);}a(Ul,"assertDelta");E(Ul,"assertDelta");b.addMethod("by",Ul);b.addProperty("extensible",function(){let e=x(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible");});b.addProperty("sealed",function(){let e=x(this,"object"),t=e===Object(e)?Object.isSealed(e):true;this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed");});b.addProperty("frozen",function(){let e=x(this,"object"),t=e===Object(e)?Object.isFrozen(e):true;this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen");});b.addProperty("finite",function(e){let t=x(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 vr(e,t){return e===t?true:typeof t!=typeof e?false:typeof e!="object"||e===null?e===t:t?Array.isArray(e)?Array.isArray(t)?e.every(function(n){return t.some(function(r){return vr(n,r)})}):false:e instanceof Date?t instanceof Date?e.getTime()===t.getTime():false:Object.keys(e).every(function(n){let r=e[n],o=t[n];return typeof r=="object"&&r!==null&&o!==null?vr(r,o):typeof r=="function"?r(o):o===r}):false}a(vr,"compareSubset");E(vr,"compareSubset");b.addMethod("containSubset",function(e){let t=X(this,"object"),n=Me.showDiff;this.assert(vr(e,t),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",e,t,n);});function Tt(e,t){return new b(e,t)}a(Tt,"expect");E(Tt,"expect");Tt.fail=function(e,t,n,r){throw arguments.length<2&&(n=e,e=void 0),n=n||"expect.fail()",new ne(n,{actual:e,expected:t,operator:r},Tt.fail)};var Jl={};Ii(Jl,{Should:a(()=>Jm,"Should"),should:a(()=>Vl,"should")});function ss(){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 b(this.valueOf(),null,e):new b(this,null,e)}a(e,"shouldGetter"),E(e,"shouldGetter");function t(r){Object.defineProperty(this,"should",{value:r,enumerable:true,configurable:true,writable:true});}a(t,"shouldSetter"),E(t,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:t,get:e,configurable:true});let n={};return n.fail=function(r,o,i,s){throw arguments.length<2&&(i=r,r=void 0),i=i||"should.fail()",new ne(i,{actual:r,expected:o,operator:s},n.fail)},n.equal=function(r,o,i){new b(r,i).to.equal(o);},n.Throw=function(r,o,i,s){new b(r,s).to.Throw(o,i);},n.exist=function(r,o){new b(r,o).to.exist;},n.not={},n.not.equal=function(r,o,i){new b(r,i).to.not.equal(o);},n.not.Throw=function(r,o,i,s){new b(r,s).to.not.Throw(o,i);},n.not.exist=function(r,o){new b(r,o).to.not.exist;},n.throw=n.Throw,n.not.throw=n.not.Throw,n}a(ss,"loadShould");E(ss,"loadShould");var Vl=ss,Jm=ss;function y(e,t){new b(null,null,y,true).assert(e,t,"[ negation message unavailable ]");}a(y,"assert");E(y,"assert");y.fail=function(e,t,n,r){throw arguments.length<2&&(n=e,e=void 0),n=n||"assert.fail()",new ne(n,{actual:e,expected:t,operator:r},y.fail)};y.isOk=function(e,t){new b(e,t,y.isOk,true).is.ok;};y.isNotOk=function(e,t){new b(e,t,y.isNotOk,true).is.not.ok;};y.equal=function(e,t,n){let r=new b(e,n,y.equal,true);r.assert(t==X(r,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,true);};y.notEqual=function(e,t,n){let r=new b(e,n,y.notEqual,true);r.assert(t!=X(r,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,true);};y.strictEqual=function(e,t,n){new b(e,n,y.strictEqual,true).to.equal(t);};y.notStrictEqual=function(e,t,n){new b(e,n,y.notStrictEqual,true).to.not.equal(t);};y.deepEqual=y.deepStrictEqual=function(e,t,n){new b(e,n,y.deepEqual,true).to.eql(t);};y.notDeepEqual=function(e,t,n){new b(e,n,y.notDeepEqual,true).to.not.eql(t);};y.isAbove=function(e,t,n){new b(e,n,y.isAbove,true).to.be.above(t);};y.isAtLeast=function(e,t,n){new b(e,n,y.isAtLeast,true).to.be.least(t);};y.isBelow=function(e,t,n){new b(e,n,y.isBelow,true).to.be.below(t);};y.isAtMost=function(e,t,n){new b(e,n,y.isAtMost,true).to.be.most(t);};y.isTrue=function(e,t){new b(e,t,y.isTrue,true).is.true;};y.isNotTrue=function(e,t){new b(e,t,y.isNotTrue,true).to.not.equal(true);};y.isFalse=function(e,t){new b(e,t,y.isFalse,true).is.false;};y.isNotFalse=function(e,t){new b(e,t,y.isNotFalse,true).to.not.equal(false);};y.isNull=function(e,t){new b(e,t,y.isNull,true).to.equal(null);};y.isNotNull=function(e,t){new b(e,t,y.isNotNull,true).to.not.equal(null);};y.isNaN=function(e,t){new b(e,t,y.isNaN,true).to.be.NaN;};y.isNotNaN=function(e,t){new b(e,t,y.isNotNaN,true).not.to.be.NaN;};y.exists=function(e,t){new b(e,t,y.exists,true).to.exist;};y.notExists=function(e,t){new b(e,t,y.notExists,true).to.not.exist;};y.isUndefined=function(e,t){new b(e,t,y.isUndefined,true).to.equal(void 0);};y.isDefined=function(e,t){new b(e,t,y.isDefined,true).to.not.equal(void 0);};y.isCallable=function(e,t){new b(e,t,y.isCallable,true).is.callable;};y.isNotCallable=function(e,t){new b(e,t,y.isNotCallable,true).is.not.callable;};y.isObject=function(e,t){new b(e,t,y.isObject,true).to.be.a("object");};y.isNotObject=function(e,t){new b(e,t,y.isNotObject,true).to.not.be.a("object");};y.isArray=function(e,t){new b(e,t,y.isArray,true).to.be.an("array");};y.isNotArray=function(e,t){new b(e,t,y.isNotArray,true).to.not.be.an("array");};y.isString=function(e,t){new b(e,t,y.isString,true).to.be.a("string");};y.isNotString=function(e,t){new b(e,t,y.isNotString,true).to.not.be.a("string");};y.isNumber=function(e,t){new b(e,t,y.isNumber,true).to.be.a("number");};y.isNotNumber=function(e,t){new b(e,t,y.isNotNumber,true).to.not.be.a("number");};y.isNumeric=function(e,t){new b(e,t,y.isNumeric,true).is.numeric;};y.isNotNumeric=function(e,t){new b(e,t,y.isNotNumeric,true).is.not.numeric;};y.isFinite=function(e,t){new b(e,t,y.isFinite,true).to.be.finite;};y.isBoolean=function(e,t){new b(e,t,y.isBoolean,true).to.be.a("boolean");};y.isNotBoolean=function(e,t){new b(e,t,y.isNotBoolean,true).to.not.be.a("boolean");};y.typeOf=function(e,t,n){new b(e,n,y.typeOf,true).to.be.a(t);};y.notTypeOf=function(e,t,n){new b(e,n,y.notTypeOf,true).to.not.be.a(t);};y.instanceOf=function(e,t,n){new b(e,n,y.instanceOf,true).to.be.instanceOf(t);};y.notInstanceOf=function(e,t,n){new b(e,n,y.notInstanceOf,true).to.not.be.instanceOf(t);};y.include=function(e,t,n){new b(e,n,y.include,true).include(t);};y.notInclude=function(e,t,n){new b(e,n,y.notInclude,true).not.include(t);};y.deepInclude=function(e,t,n){new b(e,n,y.deepInclude,true).deep.include(t);};y.notDeepInclude=function(e,t,n){new b(e,n,y.notDeepInclude,true).not.deep.include(t);};y.nestedInclude=function(e,t,n){new b(e,n,y.nestedInclude,true).nested.include(t);};y.notNestedInclude=function(e,t,n){new b(e,n,y.notNestedInclude,true).not.nested.include(t);};y.deepNestedInclude=function(e,t,n){new b(e,n,y.deepNestedInclude,true).deep.nested.include(t);};y.notDeepNestedInclude=function(e,t,n){new b(e,n,y.notDeepNestedInclude,true).not.deep.nested.include(t);};y.ownInclude=function(e,t,n){new b(e,n,y.ownInclude,true).own.include(t);};y.notOwnInclude=function(e,t,n){new b(e,n,y.notOwnInclude,true).not.own.include(t);};y.deepOwnInclude=function(e,t,n){new b(e,n,y.deepOwnInclude,true).deep.own.include(t);};y.notDeepOwnInclude=function(e,t,n){new b(e,n,y.notDeepOwnInclude,true).not.deep.own.include(t);};y.match=function(e,t,n){new b(e,n,y.match,true).to.match(t);};y.notMatch=function(e,t,n){new b(e,n,y.notMatch,true).to.not.match(t);};y.property=function(e,t,n){new b(e,n,y.property,true).to.have.property(t);};y.notProperty=function(e,t,n){new b(e,n,y.notProperty,true).to.not.have.property(t);};y.propertyVal=function(e,t,n,r){new b(e,r,y.propertyVal,true).to.have.property(t,n);};y.notPropertyVal=function(e,t,n,r){new b(e,r,y.notPropertyVal,true).to.not.have.property(t,n);};y.deepPropertyVal=function(e,t,n,r){new b(e,r,y.deepPropertyVal,true).to.have.deep.property(t,n);};y.notDeepPropertyVal=function(e,t,n,r){new b(e,r,y.notDeepPropertyVal,true).to.not.have.deep.property(t,n);};y.ownProperty=function(e,t,n){new b(e,n,y.ownProperty,true).to.have.own.property(t);};y.notOwnProperty=function(e,t,n){new b(e,n,y.notOwnProperty,true).to.not.have.own.property(t);};y.ownPropertyVal=function(e,t,n,r){new b(e,r,y.ownPropertyVal,true).to.have.own.property(t,n);};y.notOwnPropertyVal=function(e,t,n,r){new b(e,r,y.notOwnPropertyVal,true).to.not.have.own.property(t,n);};y.deepOwnPropertyVal=function(e,t,n,r){new b(e,r,y.deepOwnPropertyVal,true).to.have.deep.own.property(t,n);};y.notDeepOwnPropertyVal=function(e,t,n,r){new b(e,r,y.notDeepOwnPropertyVal,true).to.not.have.deep.own.property(t,n);};y.nestedProperty=function(e,t,n){new b(e,n,y.nestedProperty,true).to.have.nested.property(t);};y.notNestedProperty=function(e,t,n){new b(e,n,y.notNestedProperty,true).to.not.have.nested.property(t);};y.nestedPropertyVal=function(e,t,n,r){new b(e,r,y.nestedPropertyVal,true).to.have.nested.property(t,n);};y.notNestedPropertyVal=function(e,t,n,r){new b(e,r,y.notNestedPropertyVal,true).to.not.have.nested.property(t,n);};y.deepNestedPropertyVal=function(e,t,n,r){new b(e,r,y.deepNestedPropertyVal,true).to.have.deep.nested.property(t,n);};y.notDeepNestedPropertyVal=function(e,t,n,r){new b(e,r,y.notDeepNestedPropertyVal,true).to.not.have.deep.nested.property(t,n);};y.lengthOf=function(e,t,n){new b(e,n,y.lengthOf,true).to.have.lengthOf(t);};y.hasAnyKeys=function(e,t,n){new b(e,n,y.hasAnyKeys,true).to.have.any.keys(t);};y.hasAllKeys=function(e,t,n){new b(e,n,y.hasAllKeys,true).to.have.all.keys(t);};y.containsAllKeys=function(e,t,n){new b(e,n,y.containsAllKeys,true).to.contain.all.keys(t);};y.doesNotHaveAnyKeys=function(e,t,n){new b(e,n,y.doesNotHaveAnyKeys,true).to.not.have.any.keys(t);};y.doesNotHaveAllKeys=function(e,t,n){new b(e,n,y.doesNotHaveAllKeys,true).to.not.have.all.keys(t);};y.hasAnyDeepKeys=function(e,t,n){new b(e,n,y.hasAnyDeepKeys,true).to.have.any.deep.keys(t);};y.hasAllDeepKeys=function(e,t,n){new b(e,n,y.hasAllDeepKeys,true).to.have.all.deep.keys(t);};y.containsAllDeepKeys=function(e,t,n){new b(e,n,y.containsAllDeepKeys,true).to.contain.all.deep.keys(t);};y.doesNotHaveAnyDeepKeys=function(e,t,n){new b(e,n,y.doesNotHaveAnyDeepKeys,true).to.not.have.any.deep.keys(t);};y.doesNotHaveAllDeepKeys=function(e,t,n){new b(e,n,y.doesNotHaveAllDeepKeys,true).to.not.have.all.deep.keys(t);};y.throws=function(e,t,n,r){(typeof t=="string"||t instanceof RegExp)&&(n=t,t=null);let o=new b(e,r,y.throws,true).to.throw(t,n);return X(o,"object")};y.doesNotThrow=function(e,t,n,r){(typeof t=="string"||t instanceof RegExp)&&(n=t,t=null),new b(e,r,y.doesNotThrow,true).to.not.throw(t,n);};y.operator=function(e,t,n,r){let o;switch(t){case "==":o=e==n;break;case "===":o=e===n;break;case ">":o=e>n;break;case ">=":o=e>=n;break;case "<":o=e<n;break;case "<=":o=e<=n;break;case "!=":o=e!=n;break;case "!==":o=e!==n;break;default:throw r=r&&r+": ",new ne(r+'Invalid operator "'+t+'"',void 0,y.operator)}let i=new b(o,r,y.operator,true);i.assert(X(i,"object")===true,"expected "+Q(e)+" to be "+t+" "+Q(n),"expected "+Q(e)+" to not be "+t+" "+Q(n));};y.closeTo=function(e,t,n,r){new b(e,r,y.closeTo,true).to.be.closeTo(t,n);};y.approximately=function(e,t,n,r){new b(e,r,y.approximately,true).to.be.approximately(t,n);};y.sameMembers=function(e,t,n){new b(e,n,y.sameMembers,true).to.have.same.members(t);};y.notSameMembers=function(e,t,n){new b(e,n,y.notSameMembers,true).to.not.have.same.members(t);};y.sameDeepMembers=function(e,t,n){new b(e,n,y.sameDeepMembers,true).to.have.same.deep.members(t);};y.notSameDeepMembers=function(e,t,n){new b(e,n,y.notSameDeepMembers,true).to.not.have.same.deep.members(t);};y.sameOrderedMembers=function(e,t,n){new b(e,n,y.sameOrderedMembers,true).to.have.same.ordered.members(t);};y.notSameOrderedMembers=function(e,t,n){new b(e,n,y.notSameOrderedMembers,true).to.not.have.same.ordered.members(t);};y.sameDeepOrderedMembers=function(e,t,n){new b(e,n,y.sameDeepOrderedMembers,true).to.have.same.deep.ordered.members(t);};y.notSameDeepOrderedMembers=function(e,t,n){new b(e,n,y.notSameDeepOrderedMembers,true).to.not.have.same.deep.ordered.members(t);};y.includeMembers=function(e,t,n){new b(e,n,y.includeMembers,true).to.include.members(t);};y.notIncludeMembers=function(e,t,n){new b(e,n,y.notIncludeMembers,true).to.not.include.members(t);};y.includeDeepMembers=function(e,t,n){new b(e,n,y.includeDeepMembers,true).to.include.deep.members(t);};y.notIncludeDeepMembers=function(e,t,n){new b(e,n,y.notIncludeDeepMembers,true).to.not.include.deep.members(t);};y.includeOrderedMembers=function(e,t,n){new b(e,n,y.includeOrderedMembers,true).to.include.ordered.members(t);};y.notIncludeOrderedMembers=function(e,t,n){new b(e,n,y.notIncludeOrderedMembers,true).to.not.include.ordered.members(t);};y.includeDeepOrderedMembers=function(e,t,n){new b(e,n,y.includeDeepOrderedMembers,true).to.include.deep.ordered.members(t);};y.notIncludeDeepOrderedMembers=function(e,t,n){new b(e,n,y.notIncludeDeepOrderedMembers,true).to.not.include.deep.ordered.members(t);};y.oneOf=function(e,t,n){new b(e,n,y.oneOf,true).to.be.oneOf(t);};y.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${Q(e)} to be an iterable`:`expected ${Q(e)} to be an iterable`,new ne(t,void 0,y.isIterable)};y.changes=function(e,t,n,r){arguments.length===3&&typeof t=="function"&&(r=n,n=null),new b(e,r,y.changes,true).to.change(t,n);};y.changesBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);new b(e,o,y.changesBy,true).to.change(t,n).by(r);};y.doesNotChange=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new b(e,r,y.doesNotChange,true).to.not.change(t,n)};y.changesButNotBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);new b(e,o,y.changesButNotBy,true).to.change(t,n).but.not.by(r);};y.increases=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new b(e,r,y.increases,true).to.increase(t,n)};y.increasesBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);new b(e,o,y.increasesBy,true).to.increase(t,n).by(r);};y.doesNotIncrease=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new b(e,r,y.doesNotIncrease,true).to.not.increase(t,n)};y.increasesButNotBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);new b(e,o,y.increasesButNotBy,true).to.increase(t,n).but.not.by(r);};y.decreases=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new b(e,r,y.decreases,true).to.decrease(t,n)};y.decreasesBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);new b(e,o,y.decreasesBy,true).to.decrease(t,n).by(r);};y.doesNotDecrease=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new b(e,r,y.doesNotDecrease,true).to.not.decrease(t,n)};y.doesNotDecreaseBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);return new b(e,o,y.doesNotDecreaseBy,true).to.not.decrease(t,n).by(r)};y.decreasesButNotBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);new b(e,o,y.decreasesButNotBy,true).to.decrease(t,n).but.not.by(r);};y.ifError=function(e){if(e)throw e};y.isExtensible=function(e,t){new b(e,t,y.isExtensible,true).to.be.extensible;};y.isNotExtensible=function(e,t){new b(e,t,y.isNotExtensible,true).to.not.be.extensible;};y.isSealed=function(e,t){new b(e,t,y.isSealed,true).to.be.sealed;};y.isNotSealed=function(e,t){new b(e,t,y.isNotSealed,true).to.not.be.sealed;};y.isFrozen=function(e,t){new b(e,t,y.isFrozen,true).to.be.frozen;};y.isNotFrozen=function(e,t){new b(e,t,y.isNotFrozen,true).to.not.be.frozen;};y.isEmpty=function(e,t){new b(e,t,y.isEmpty,true).to.be.empty;};y.isNotEmpty=function(e,t){new b(e,t,y.isNotEmpty,true).to.not.be.empty;};y.containsSubset=function(e,t,n){new b(e,n).to.containSubset(t);};y.doesNotContainSubset=function(e,t,n){new b(e,n).to.not.containSubset(t);};var Vm=[["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"]];for(let[e,t]of Vm)y[t]=y[e];var tl=[];function it(e){let t={use:it,AssertionError:ne,util:Se,config:Me,expect:Tt,assert:y,Assertion:b,...Jl};return ~tl.indexOf(e)||(e(t,Se),tl.push(e)),t}a(it,"use");E(it,"use");var Mr=Symbol.for("matchers-object"),vn=Symbol.for("$$jest-matchers-object"),En=Symbol.for("expect-global"),zr=Symbol.for("asymmetric-matchers-object"),ru={toSatisfy(e,t,n){let{printReceived:r,printExpected:o,matcherHint:i}=this.utils,s=t(e);return {pass:s,message:a(()=>s?`${i(".not.toSatisfy","received","")}
58
+ `))return up(t,e,n);let[f]=ec(t,e,true),h=f.some(y=>y[0]===ce),d=bp(r,o),p=d(r)+Sp(Wa(f,Te,h)),m=d(o)+vp(Wa(f,we,h));return `${p}
59
+ ${m}`}let i=uo(t,{forceWritable:true}),s=uo(e,{forceWritable:true}),{replacedExpected:c,replacedActual:u}=zn(s,i);return Tt(c,u,n)}a(Vn,"printDiffOrStringify");function zn(e,t,n=new WeakSet,r=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<"u"&&typeof t.cause>"u"?(delete e.cause,{replacedActual:e,replacedExpected:t}):Bn(e,t)?n.has(e)||r.has(t)?{replacedActual:e,replacedExpected:t}:(n.add(e),r.add(t),lo(t).forEach(o=>{let i=t[o],s=e[o];if(Ua(i)){if(i.asymmetricMatch(s))t[o]=s;else if("sample"in i&&i.sample!==void 0&&Bn(s,i.sample)){let c=zn(s,i.sample,n,r);e[o]=c.replacedActual,t[o]=c.replacedExpected;}}else if(Ua(s)){if(s.asymmetricMatch(i))e[o]=i;else if("sample"in s&&s.sample!==void 0&&Bn(s.sample,i)){let c=zn(s.sample,i,n,r);e[o]=c.replacedActual,t[o]=c.replacedExpected;}}else if(Bn(s,i)){let c=zn(s,i,n,r);e[o]=c.replacedActual,t[o]=c.replacedExpected;}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}a(zn,"replaceAsymmetricMatcher");function bp(...e){let t=e.reduce((n,r)=>r.length>n?r.length:n,0);return n=>`${n}: ${" ".repeat(t-n.length)}`}a(bp,"getLabelPrinter");var wp="\xB7";function rc(e){return e.replace(/\s+$/gm,t=>wp.repeat(t.length))}a(rc,"replaceTrailingSpaces");function vp(e){return ne.red(rc(be(e)))}a(vp,"printReceived");function Sp(e){return ne.green(rc(be(e)))}a(Sp,"printExpected");function Wa(e,t,n){return e.reduce((r,o)=>r+(o[0]===ce?o[1]:o[0]===t?n?ne.inverse(o[1]):o[1]:""),"")}a(Wa,"getCommonAndChangedSubstrings");function ot(e){return typeof e=="function"&&"_isMockFunction"in e&&e._isMockFunction===true}a(ot,"isMockFunction");var To=new Set,Eo=new Set,oc=new WeakMap;function xo(e={}){var t;let{originalImplementation:n,restore:r,mockImplementation:o,resetToMockImplementation:i,resetToMockName:s}=e;r&&To.add(r);let c=Ap(n),u=Pp(),l=Ep({config:c,state:u,...e}),f=((t=o||n)===null||t===void 0?void 0:t.length)??0;return Object.defineProperty(l,"length",{writable:true,enumerable:false,value:f,configurable:true}),s&&(c.mockName=l.name||"vi.fn()"),oc.set(l,c),Eo.add(l),l._isMockFunction=true,l.getMockImplementation=()=>c.onceMockImplementations[0]||c.mockImplementation,Object.defineProperty(l,"mock",{configurable:false,enumerable:true,writable:false,value:u}),l.mockImplementation=a(function(d){return c.mockImplementation=d,l},"mockImplementation"),l.mockImplementationOnce=a(function(d){return c.onceMockImplementations.push(d),l},"mockImplementationOnce"),l.withImplementation=a(function(d,p){let m=c.mockImplementation,y=c.onceMockImplementations,v=a(()=>{c.mockImplementation=m,c.onceMockImplementations=y;},"reset");c.mockImplementation=d,c.onceMockImplementations=[];let S=p();return typeof S=="object"&&typeof S?.then=="function"?S.then(()=>(v(),l)):(v(),l)},"withImplementation"),l.mockReturnThis=a(function(){return l.mockImplementation(function(){return this})},"mockReturnThis"),l.mockReturnValue=a(function(d){return l.mockImplementation(()=>d)},"mockReturnValue"),l.mockReturnValueOnce=a(function(d){return l.mockImplementationOnce(()=>d)},"mockReturnValueOnce"),l.mockResolvedValue=a(function(d){return l.mockImplementation(()=>Promise.resolve(d))},"mockResolvedValue"),l.mockResolvedValueOnce=a(function(d){return l.mockImplementationOnce(()=>Promise.resolve(d))},"mockResolvedValueOnce"),l.mockRejectedValue=a(function(d){return l.mockImplementation(()=>Promise.reject(d))},"mockRejectedValue"),l.mockRejectedValueOnce=a(function(d){return l.mockImplementationOnce(()=>Promise.reject(d))},"mockRejectedValueOnce"),l.mockClear=a(function(){return u.calls=[],u.contexts=[],u.instances=[],u.invocationCallOrder=[],u.results=[],u.settledResults=[],l},"mockClear"),l.mockReset=a(function(){return l.mockClear(),c.mockImplementation=i?o:void 0,c.mockName=s&&l.name||"vi.fn()",c.onceMockImplementations=[],l},"mockReset"),l.mockRestore=a(function(){return l.mockReset(),r?.()},"mockRestore"),l.mockName=a(function(d){return typeof d=="string"&&(c.mockName=d),l},"mockName"),l.getMockName=a(function(){return c.mockName||"vi.fn()"},"getMockName"),Symbol.dispose&&(l[Symbol.dispose]=()=>l.mockRestore()),o&&l.mockImplementation(o),l}a(xo,"createMockInstance");function ic(e){return e!=null&&ot(e)?e:xo({mockImplementation:e,resetToMockImplementation:true})}a(ic,"fn");function sc(e,t,n){Kn(e!=null,"The vi.spyOn() function could not find an object to spy upon. The first argument must be defined."),Kn(typeof e=="object"||typeof e=="function","Vitest cannot spy on a primitive value.");let[r,o]=ac(e,t)||[];Kn(o||t in e,`The property "${String(t)}" is not defined on the ${typeof e}.`);let i=n||"value",s=false;i==="value"&&o&&o.value==null&&o.get&&(i="get",s=true);let c;o?c=o[i]:i!=="value"?c=a(()=>e[t],"original"):c=e[t];let u=s&&c?c():c,l=typeof u;if(Kn(l==="function"||i!=="value"&&c==null,`vi.spyOn() can only spy on a function. Received ${l}.`),ot(u))return u;let f=a(p=>{let{value:m,...y}=o||{configurable:true,writable:true};i!=="value"&&delete y.writable,y[i]=p,Object.defineProperty(e,t,y);},"reassign"),d=xo({restore:a(()=>{r!==e?Reflect.deleteProperty(e,t):o&&!c?Object.defineProperty(e,t,o):f(c);},"restore"),originalImplementation:u,resetToMockName:true});try{f(s?()=>d:d);}catch(p){throw p instanceof TypeError&&Symbol.toStringTag&&e[Symbol.toStringTag]==="Module"&&(p.message.includes("Cannot redefine property")||p.message.includes("Cannot replace module namespace")||p.message.includes("can't redefine non-configurable property"))?new TypeError(`Cannot spy on export "${String(t)}". Module namespace is not configurable in ESM. See: https://vitest.dev/guide/browser/#limitations`,{cause:p}):p}return d}a(sc,"spyOn");function ac(e,t){let n=Object.getOwnPropertyDescriptor(e,t);if(n)return [e,n];let r=Object.getPrototypeOf(e);for(;r!==null;){let o=Object.getOwnPropertyDescriptor(r,t);if(o)return [r,o];r=Object.getPrototypeOf(r);}}a(ac,"getDescriptor");function Kn(e,t){if(!e)throw new Error(t)}a(Kn,"assert");var Tp=1;function Ep({state:e,config:t,name:n,prototypeState:r,prototypeConfig:o,keepMembersImplementation:i,mockImplementation:s,prototypeMembers:c=[]}){let u=t.mockOriginal,l=s,f=n||u?.name||"Mock",h={[f]:(function(...m){xp(m,e,r),Mp(Tp++,e,r);let y={type:"incomplete",value:void 0},v={type:"incomplete",value:void 0};_p(y,e,r),Op(v,e,r);let S=new.target?void 0:this,[M,$]=Ip(S,e,r),[O,C]=Cp(S,e,r),N=t.onceMockImplementations.shift()||t.mockImplementation||o?.onceMockImplementations.shift()||o?.mockImplementation||u||function(){},I,q,X=false;try{if(new.target){I=Reflect.construct(N,m,new.target);for(let D of c){let H=I[D];if(H!==d.prototype[D])continue;let oe=ot(H),ue=oe?H.mock:void 0,fe=oe?oc.get(H):void 0;I[D]=xo({originalImplementation:i?fe?.mockOriginal:void 0,prototypeState:ue,prototypeConfig:fe,keepMembersImplementation:i});}}else I=N.apply(this,m);}catch(D){throw q=D,X=true,D instanceof TypeError&&D.message.includes("is not a constructor")&&console.warn(`[vitest] The ${h[f].getMockName()} mock did not use 'function' or 'class' in its implementation, see https://vitest.dev/api/vi#vi-spyon for examples.`),D}finally{X?(y.type="throw",y.value=q,v.type="rejected",v.value=q):(y.type="return",y.value=I,new.target&&(e.contexts[O-1]=I,e.instances[M-1]=I,C!=null&&r&&(r.contexts[C-1]=I),$!=null&&r&&(r.instances[$-1]=I)),I instanceof Promise?I.then(D=>{v.type="fulfilled",v.value=D;},D=>{v.type="rejected",v.value=D;}):(v.type="fulfilled",v.value=I));}return I})},d=h[f],p=u||l;return p&&kp(d,p),d}a(Ep,"createMock");function xp(e,t,n){t.calls.push(e),n?.calls.push(e);}a(xp,"registerCalls");function Mp(e,t,n){t.invocationCallOrder.push(e),n?.invocationCallOrder.push(e);}a(Mp,"registerInvocationOrder");function _p(e,t,n){t.results.push(e),n?.results.push(e);}a(_p,"registerResult");function Op(e,t,n){t.settledResults.push(e),n?.settledResults.push(e);}a(Op,"registerSettledResult");function Ip(e,t,n){let r=t.instances.push(e),o=n?.instances.push(e);return [r,o]}a(Ip,"registerInstance");function Cp(e,t,n){let r=t.contexts.push(e),o=n?.contexts.push(e);return [r,o]}a(Cp,"registerContext");function kp(e,t){let{properties:n,descriptors:r}=Np(t);for(let o of n){let i=r[o];ac(e,o)||Object.defineProperty(e,o,i);}}a(kp,"copyOriginalStaticProperties");var $p=new Set(["length","name","prototype",Symbol.for("nodejs.util.promisify.custom")]);function Np(e){let t=new Set,n={};for(;e&&e!==Object.prototype&&e!==Function.prototype;){let r=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let o of r)n[o]||$p.has(o)||(t.add(o),n[o]=Object.getOwnPropertyDescriptor(e,o));e=Object.getPrototypeOf(e);}return {properties:t,descriptors:n}}a(Np,"getAllProperties");function Ap(e){return {mockImplementation:void 0,mockOriginal:e,mockName:"vi.fn()",onceMockImplementations:[]}}a(Ap,"getDefaultConfig");function Pp(){let e={calls:[],contexts:[],instances:[],invocationCallOrder:[],settledResults:[],results:[],get lastCall(){return e.calls.at(-1)}};return e}a(Pp,"getDefaultState");function cc(){for(let e of To)e();To.clear();}a(cc,"restoreAllMocks");function lc(){Eo.forEach(e=>e.mockClear());}a(lc,"clearAllMocks");function uc(){Eo.forEach(e=>e.mockReset());}a(uc,"resetAllMocks");var jp="@@__IMMUTABLE_RECORD__@@",Rp="@@__IMMUTABLE_ITERABLE__@@";function Fp(e){return e&&(e[Rp]||e[jp])}a(Fp,"isImmutable");var Dp=Object.getPrototypeOf({});function fc(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}a(fc,"getUnserializableMessage");function it(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"&&en(()=>n.message??(n.message=hc(e.message))),typeof e.stack=="string"&&en(()=>n.stack??(n.stack=e.stack)),typeof e.name=="string"&&en(()=>n.name??(n.name=e.name)),e.cause!=null&&en(()=>n.cause??(n.cause=it(e.cause,t)))),it(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(Fp(e))return it(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 it(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let n=new Array(e.length);return t.set(e,n),e.forEach((r,o)=>{try{n[o]=it(r,t);}catch(i){n[o]=fc(i);}}),n}else {let n=Object.create(null);t.set(e,n);let r=e;for(;r&&r!==Dp;)Object.getOwnPropertyNames(r).forEach(o=>{if(!(o in n))try{n[o]=it(e[o],t);}catch(i){delete n[o],n[o]=fc(i);}}),r=Object.getPrototypeOf(r);return e instanceof Error&&en(()=>e.message=hc(e.message)),n}}a(it,"serializeValue");function en(e){try{return e()}catch{}}a(en,"safe");function hc(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}a(hc,"normalizeErrorMessage");function Mo(e,t,n=new WeakSet){if(!e||typeof e!="object")return {message:String(e)};let r=e;(r.showDiff||r.showDiff===void 0&&r.expected!==void 0&&r.actual!==void 0)&&(r.diff=Vn(r.actual,r.expected,{...t,...r.diffOptions})),"expected"in r&&typeof r.expected!="string"&&(r.expected=be(r.expected,10)),"actual"in r&&typeof r.actual!="string"&&(r.actual=be(r.actual,10));try{!n.has(r)&&typeof r.cause=="object"&&(n.add(r),r.cause=Mo(r.cause,t,n));}catch{}try{return it(r)}catch(o){return it(new Error(`Failed to fully serialize error: ${o?.message}
60
+ Inner error message: ${r?.message}`))}}a(Mo,"processError");var se={};$s(se,{Assertion:()=>b,AssertionError:()=>V,Should:()=>yl,assert:()=>g,config:()=>Ee,expect:()=>on,should:()=>gl,use:()=>fn,util:()=>Fe});var Uo=Object.defineProperty,Lp=a((e,t,n)=>t in e?Uo(e,t,{enumerable:true,configurable:true,writable:true,value:n}):e[t]=n,"__defNormalProp"),x=a((e,t)=>Uo(e,"name",{value:t,configurable:true}),"__name"),Wo=a((e,t)=>{for(var n in t)Uo(e,n,{get:t[n],enumerable:true});},"__export"),Tc=a((e,t,n)=>Lp(e,typeof t!="symbol"?t+"":t,n),"__publicField"),Fe={};Wo(Fe,{addChainableMethod:a(()=>ri,"addChainableMethod"),addLengthGuard:a(()=>cn,"addLengthGuard"),addMethod:a(()=>ei,"addMethod"),addProperty:a(()=>Qo,"addProperty"),checkError:a(()=>Ae,"checkError"),compareByInspect:a(()=>Jn,"compareByInspect"),eql:a(()=>Zc,"eql"),events:a(()=>nr,"events"),expectTypes:a(()=>$c,"expectTypes"),flag:a(()=>B,"flag"),getActual:a(()=>er,"getActual"),getMessage:a(()=>Go,"getMessage"),getName:a(()=>rr,"getName"),getOperator:a(()=>ai,"getOperator"),getOwnEnumerableProperties:a(()=>si,"getOwnEnumerableProperties"),getOwnEnumerablePropertySymbols:a(()=>ii,"getOwnEnumerablePropertySymbols"),getPathInfo:a(()=>Zo,"getPathInfo"),hasProperty:a(()=>tr,"hasProperty"),inspect:a(()=>W,"inspect"),isNaN:a(()=>Yn,"isNaN"),isNumeric:a(()=>ge,"isNumeric"),isProxyEnabled:a(()=>an,"isProxyEnabled"),isRegExp:a(()=>Zn,"isRegExp"),objDisplay:a(()=>Et,"objDisplay"),overwriteChainableMethod:a(()=>oi,"overwriteChainableMethod"),overwriteMethod:a(()=>ni,"overwriteMethod"),overwriteProperty:a(()=>ti,"overwriteProperty"),proxify:a(()=>Ft,"proxify"),test:a(()=>Vo,"test"),transferFlags:a(()=>Je,"transferFlags"),type:a(()=>ee,"type")});var Ae={};Wo(Ae,{compatibleConstructor:a(()=>Mc,"compatibleConstructor"),compatibleInstance:a(()=>xc,"compatibleInstance"),compatibleMessage:a(()=>_c,"compatibleMessage"),getConstructorName:a(()=>Oc,"getConstructorName"),getMessage:a(()=>Ic,"getMessage")});function Qn(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}a(Qn,"isErrorInstance");x(Qn,"isErrorInstance");function Ec(e){return Object.prototype.toString.call(e)==="[object RegExp]"}a(Ec,"isRegExp");x(Ec,"isRegExp");function xc(e,t){return Qn(t)&&e===t}a(xc,"compatibleInstance");x(xc,"compatibleInstance");function Mc(e,t){return Qn(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t=="object"||typeof t=="function")&&t.prototype?e.constructor===t||e instanceof t:false}a(Mc,"compatibleConstructor");x(Mc,"compatibleConstructor");function _c(e,t){let n=typeof e=="string"?e:e.message;return Ec(t)?t.test(n):typeof t=="string"?n.indexOf(t)!==-1:false}a(_c,"compatibleMessage");x(_c,"compatibleMessage");function Oc(e){let t=e;return Qn(e)?t=e.constructor.name:typeof e=="function"&&(t=e.name,t===""&&(t=new e().name||t)),t}a(Oc,"getConstructorName");x(Oc,"getConstructorName");function Ic(e){let t="";return e&&e.message?t=e.message:typeof e=="string"&&(t=e),t}a(Ic,"getMessage");x(Ic,"getMessage");function B(e,t,n){let r=e.__flags||(e.__flags=Object.create(null));if(arguments.length===3)r[t]=n;else return r[t]}a(B,"flag");x(B,"flag");function Vo(e,t){let n=B(e,"negate"),r=t[0];return n?!r:r}a(Vo,"test");x(Vo,"test");function ee(e){if(typeof e>"u")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)}a(ee,"type");x(ee,"type");var qp="captureStackTrace"in Error,Cc=class kc extends Error{static{a(this,"_AssertionError");}constructor(t="Unspecified AssertionError",n,r){super(t),Tc(this,"message"),this.message=t,qp&&Error.captureStackTrace(this,r||kc);for(let o in n)o in this||(this[o]=n[o]);}get name(){return "AssertionError"}get ok(){return false}toJSON(t){return {...this,name:this.name,message:this.message,ok:false,stack:t!==false?this.stack:void 0}}};x(Cc,"AssertionError");var V=Cc;function $c(e,t){let n=B(e,"message"),r=B(e,"ssfi");n=n?n+": ":"",e=B(e,"object"),t=t.map(function(s){return s.toLowerCase()}),t.sort();let o=t.map(function(s,c){let u=~["a","e","i","o","u"].indexOf(s.charAt(0))?"an":"a";return (t.length>1&&c===t.length-1?"or ":"")+u+" "+s}).join(", "),i=ee(e).toLowerCase();if(!t.some(function(s){return i===s}))throw new V(n+"object tested must be "+o+", but "+i+" given",void 0,r)}a($c,"expectTypes");x($c,"expectTypes");function er(e,t){return t.length>4?t[4]:e._obj}a(er,"getActual");x(er,"getActual");var dc={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"]},Bp={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},jt="\u2026";function Nc(e,t){let n=dc[Bp[t]]||dc[t]||"";return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}a(Nc,"colorise");x(Nc,"colorise");function Ac({showHidden:e=false,depth:t=2,colors:n=false,customInspect:r=true,showProxy:o=false,maxArrayLength:i=1/0,breakLength:s=1/0,seen:c=[],truncate:u=1/0,stylize:l=String}={},f){let h={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(s),truncate:Number(u),seen:c,inspect:f,stylize:l};return h.colors&&(h.stylize=Nc),h}a(Ac,"normaliseOptions");x(Ac,"normaliseOptions");function Pc(e){return e>="\uD800"&&e<="\uDBFF"}a(Pc,"isHighSurrogate");x(Pc,"isHighSurrogate");function st(e,t,n=jt){e=String(e);let r=n.length,o=e.length;if(r>t&&o>r)return n;if(o>t&&o>r){let i=t-r;return i>0&&Pc(e[i-1])&&(i=i-1),`${e.slice(0,i)}${n}`}return e}a(st,"truncate");x(st,"truncate");function De(e,t,n,r=", "){n=n||t.inspect;let o=e.length;if(o===0)return "";let i=t.truncate,s="",c="",u="";for(let l=0;l<o;l+=1){let f=l+1===e.length,h=l+2===e.length;u=`${jt}(${e.length-l})`;let d=e[l];t.truncate=i-s.length-(f?0:r.length);let p=c||n(d,t)+(f?"":r),m=s.length+p.length,y=m+u.length;if(f&&m>i&&s.length+u.length<=i||!f&&!h&&y>i||(c=f?"":n(e[l+1],t)+(h?"":r),!f&&h&&y>i&&m+c.length>i))break;if(s+=p,!f&&!h&&m+c.length>=i){u=`${jt}(${e.length-l-1})`;break}u="";}return `${s}${u}`}a(De,"inspectList");x(De,"inspectList");function jc(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}a(jc,"quoteComplexKey");x(jc,"quoteComplexKey");function Rt([e,t],n){return n.truncate-=2,typeof e=="string"?e=jc(e):typeof e!="number"&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}a(Rt,"inspectProperty");x(Rt,"inspectProperty");function Rc(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return "[]";t.truncate-=4;let r=De(e,t);t.truncate-=r.length;let o="";return n.length&&(o=De(n.map(i=>[i,e[i]]),t,Rt)),`[ ${r}${o?`, ${o}`:""} ]`}a(Rc,"inspectArray");x(Rc,"inspectArray");var zp=x(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function Xe(e,t){let n=zp(e);t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return `${n}[]`;let o="";for(let s=0;s<e.length;s++){let c=`${t.stylize(st(e[s],t.truncate),"number")}${s===e.length-1?"":", "}`;if(t.truncate-=c.length,e[s]!==e.length&&t.truncate<=3){o+=`${jt}(${e.length-e[s]+1})`;break}o+=c;}let i="";return r.length&&(i=De(r.map(s=>[s,e[s]]),t,Rt)),`${n}[ ${o}${i?`, ${i}`:""} ]`}a(Xe,"inspectTypedArray");x(Xe,"inspectTypedArray");function Fc(e,t){let n=e.toJSON();if(n===null)return "Invalid Date";let r=n.split("T"),o=r[0];return t.stylize(`${o}T${st(r[1],t.truncate-o.length-1)}`,"date")}a(Fc,"inspectDate");x(Fc,"inspectDate");function Co(e,t){let n=e[Symbol.toStringTag]||"Function",r=e.name;return r?t.stylize(`[${n} ${st(r,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}a(Co,"inspectFunction");x(Co,"inspectFunction");function Dc([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}a(Dc,"inspectMapEntry");x(Dc,"inspectMapEntry");function Lc(e){let t=[];return e.forEach((n,r)=>{t.push([r,n]);}),t}a(Lc,"mapToEntries");x(Lc,"mapToEntries");function qc(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${De(Lc(e),t,Dc)} }`)}a(qc,"inspectMap");x(qc,"inspectMap");var Up=Number.isNaN||(e=>e!==e);function ko(e,t){return Up(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(st(String(e),t.truncate),"number")}a(ko,"inspectNumber");x(ko,"inspectNumber");function $o(e,t){let n=st(e.toString(),t.truncate-1);return n!==jt&&(n+="n"),t.stylize(n,"bigint")}a($o,"inspectBigInt");x($o,"inspectBigInt");function Bc(e,t){let n=e.toString().split("/")[2],r=t.truncate-(2+n.length),o=e.source;return t.stylize(`/${st(o,r)}/${n}`,"regexp")}a(Bc,"inspectRegExp");x(Bc,"inspectRegExp");function zc(e){let t=[];return e.forEach(n=>{t.push(n);}),t}a(zc,"arrayFromSet");x(zc,"arrayFromSet");function Uc(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${De(zc(e),t)} }`)}a(Uc,"inspectSet");x(Uc,"inspectSet");var pc=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),Wp={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},Vp=16;function Wc(e){return Wp[e]||`\\u${`0000${e.charCodeAt(0).toString(Vp)}`.slice(-4)}`}a(Wc,"escape");x(Wc,"escape");function No(e,t){return pc.test(e)&&(e=e.replace(pc,Wc)),t.stylize(`'${st(e,t.truncate-2)}'`,"string")}a(No,"inspectString");x(No,"inspectString");function Ao(e){return "description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}a(Ao,"inspectSymbol");x(Ao,"inspectSymbol");var Gp=x(()=>"Promise{\u2026}","getPromiseValue"),Hp=Gp;function nn(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 o=De(n.map(c=>[c,e[c]]),t,Rt),i=De(r.map(c=>[c,e[c]]),t,Rt);t.seen.pop();let s="";return o&&i&&(s=", "),`{ ${o}${s}${i} }`}a(nn,"inspectObject");x(nn,"inspectObject");var _o=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:false;function Vc(e,t){let n="";return _o&&_o in e&&(n=e[_o]),n=n||e.constructor.name,(!n||n==="_class")&&(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${nn(e,t)}`}a(Vc,"inspectClass");x(Vc,"inspectClass");function Kc(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${De(e,t)} ]`)}a(Kc,"inspectArguments");x(Kc,"inspectArguments");var Jp=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Gc(e,t){let n=Object.getOwnPropertyNames(e).filter(s=>Jp.indexOf(s)===-1),r=e.name;t.truncate-=r.length;let o="";if(typeof e.message=="string"?o=st(e.message,t.truncate):n.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return "[Circular]";t.seen.push(e);let i=De(n.map(s=>[s,e[s]]),t,Rt);return `${r}${o}${i?` { ${i} }`:""}`}a(Gc,"inspectObject2");x(Gc,"inspectObject");function Hc([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}a(Hc,"inspectAttribute");x(Hc,"inspectAttribute");function Gn(e,t){return De(e,t,Jc,`
61
+ `)}a(Gn,"inspectNodeCollection");x(Gn,"inspectNodeCollection");function Jc(e,t){switch(e.nodeType){case 1:return Ko(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}a(Jc,"inspectNode");x(Jc,"inspectNode");function Ko(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),o=t.stylize(`<${r}`,"special"),i=t.stylize(">","special"),s=t.stylize(`</${r}>`,"special");t.truncate-=r.length*2+5;let c="";n.length>0&&(c+=" ",c+=De(n.map(f=>[f,e.getAttribute(f)]),t,Hc," ")),t.truncate-=c.length;let u=t.truncate,l=Gn(e.children,t);return l&&l.length>u&&(l=`${jt}(${e.children.length})`),`${o}${c}${i}${l}${s}`}a(Ko,"inspectHTML");x(Ko,"inspectHTML");var Yp=typeof Symbol=="function"&&typeof Symbol.for=="function",Oo=Yp?Symbol.for("chai/inspect"):"@@chai/inspect",Io=Symbol.for("nodejs.util.inspect.custom"),mc=new WeakMap,gc={},yc={undefined:x((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:x((e,t)=>t.stylize("null","null"),"null"),boolean:x((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:x((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:ko,Number:ko,bigint:$o,BigInt:$o,string:No,String:No,function:Co,Function:Co,symbol:Ao,Symbol:Ao,Array:Rc,Date:Fc,Map:qc,Set:Uc,RegExp:Bc,Promise:Hp,WeakSet:x((e,t)=>t.stylize("WeakSet{\u2026}","special"),"WeakSet"),WeakMap:x((e,t)=>t.stylize("WeakMap{\u2026}","special"),"WeakMap"),Arguments:Kc,Int8Array:Xe,Uint8Array:Xe,Uint8ClampedArray:Xe,Int16Array:Xe,Uint16Array:Xe,Int32Array:Xe,Uint32Array:Xe,Float32Array:Xe,Float64Array:Xe,Generator:x(()=>"","Generator"),DataView:x(()=>"","DataView"),ArrayBuffer:x(()=>"","ArrayBuffer"),Error:Gc,HTMLCollection:Gn,NodeList:Gn},Zp=x((e,t,n,r)=>Oo in e&&typeof e[Oo]=="function"?e[Oo](t):Io in e&&typeof e[Io]=="function"?e[Io](t.depth,t,r):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&mc.has(e.constructor)?mc.get(e.constructor)(e,t):gc[n]?gc[n](e,t):"","inspectCustom"),Xp=Object.prototype.toString;function rn(e,t={}){let n=Ac(t,rn),{customInspect:r}=n,o=e===null?"null":typeof e;if(o==="object"&&(o=Xp.call(e).slice(8,-1)),o in yc)return yc[o](e,n);if(r&&e){let s=Zp(e,n,o,rn);if(s)return typeof s=="string"?s:rn(s,n)}let i=e?Object.getPrototypeOf(e):false;return i===Object.prototype||i===null?nn(e,n):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Ko(e,n):"constructor"in e?e.constructor!==Object?Vc(e,n):nn(e,n):e===Object(e)?nn(e,n):n.stylize(String(e),o)}a(rn,"inspect");x(rn,"inspect");var Ee={includeStack:false,showDiff:true,truncateThreshold:40,useProxy:true,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function W(e,t,n,r){let o={colors:r,depth:typeof n>"u"?2:n,showHidden:t,truncate:Ee.truncateThreshold?Ee.truncateThreshold:1/0};return rn(e,o)}a(W,"inspect2");x(W,"inspect");function Et(e){let t=W(e),n=Object.prototype.toString.call(e);if(Ee.truncateThreshold&&t.length>=Ee.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 r=Object.keys(e);return "{ Object ("+(r.length>2?r.splice(0,2).join(", ")+", ...":r.join(", "))+") }"}else return t}else return t}a(Et,"objDisplay");x(Et,"objDisplay");function Go(e,t){let n=B(e,"negate"),r=B(e,"object"),o=t[3],i=er(e,t),s=n?t[2]:t[1],c=B(e,"message");return typeof s=="function"&&(s=s()),s=s||"",s=s.replace(/#\{this\}/g,function(){return Et(r)}).replace(/#\{act\}/g,function(){return Et(i)}).replace(/#\{exp\}/g,function(){return Et(o)}),c?c+": "+s:s}a(Go,"getMessage2");x(Go,"getMessage");function Je(e,t,n){let r=e.__flags||(e.__flags=Object.create(null));t.__flags||(t.__flags=Object.create(null)),n=arguments.length===3?n:true;for(let o in r)(n||o!=="object"&&o!=="ssfi"&&o!=="lockSsfi"&&o!="message")&&(t.__flags[o]=r[o]);}a(Je,"transferFlags");x(Je,"transferFlags");function Po(e){if(typeof e>"u")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)}a(Po,"type2");x(Po,"type");function Ho(){this._key="chai/deep-eql__"+Math.random()+Date.now();}a(Ho,"FakeMap");x(Ho,"FakeMap");Ho.prototype={get:x(a(function(t){return t[this._key]},"get"),"get"),set:x(a(function(t,n){Object.isExtensible(t)&&Object.defineProperty(t,this._key,{value:n,configurable:true});},"set"),"set")};var Yc=typeof WeakMap=="function"?WeakMap:Ho;function jo(e,t,n){if(!n||xt(e)||xt(t))return null;var r=n.get(e);if(r){var o=r.get(t);if(typeof o=="boolean")return o}return null}a(jo,"memoizeCompare");x(jo,"memoizeCompare");function tn(e,t,n,r){if(!(!n||xt(e)||xt(t))){var o=n.get(e);o?o.set(t,r):(o=new Yc,o.set(t,r),n.set(e,o));}}a(tn,"memoizeSet");x(tn,"memoizeSet");var Zc=sn;function sn(e,t,n){if(n&&n.comparator)return Ro(e,t,n);var r=Jo(e,t);return r!==null?r:Ro(e,t,n)}a(sn,"deepEqual");x(sn,"deepEqual");function Jo(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t?true:xt(e)||xt(t)?false:null}a(Jo,"simpleEqual");x(Jo,"simpleEqual");function Ro(e,t,n){n=n||{},n.memoize=n.memoize===false?false:n.memoize||new Yc;var r=n&&n.comparator,o=jo(e,t,n.memoize);if(o!==null)return o;var i=jo(t,e,n.memoize);if(i!==null)return i;if(r){var s=r(e,t);if(s===false||s===true)return tn(e,t,n.memoize,s),s;var c=Jo(e,t);if(c!==null)return c}var u=Po(e);if(u!==Po(t))return tn(e,t,n.memoize,false),false;tn(e,t,n.memoize,true);var l=Xc(e,t,u,n);return tn(e,t,n.memoize,l),l}a(Ro,"extensiveDeepEqual");x(Ro,"extensiveDeepEqual");function Xc(e,t,n,r){switch(n){case "String":case "Number":case "Boolean":case "Date":return sn(e.valueOf(),t.valueOf());case "Promise":case "Symbol":case "function":case "WeakMap":case "WeakSet":return e===t;case "Error":return Yo(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 dt(e,t,r);case "RegExp":return Qc(e,t);case "Generator":return el(e,t,r);case "DataView":return dt(new Uint8Array(e.buffer),new Uint8Array(t.buffer),r);case "ArrayBuffer":return dt(new Uint8Array(e),new Uint8Array(t),r);case "Set":return Fo(e,t,r);case "Map":return Fo(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 nl(e,t,r)}}a(Xc,"extensiveDeepEqualByType");x(Xc,"extensiveDeepEqualByType");function Qc(e,t){return e.toString()===t.toString()}a(Qc,"regexpEqual");x(Qc,"regexpEqual");function Fo(e,t,n){try{if(e.size!==t.size)return false;if(e.size===0)return true}catch{return false}var r=[],o=[];return e.forEach(x(a(function(s,c){r.push([s,c]);},"gatherEntries"),"gatherEntries")),t.forEach(x(a(function(s,c){o.push([s,c]);},"gatherEntries"),"gatherEntries")),dt(r.sort(),o.sort(),n)}a(Fo,"entriesEqual");x(Fo,"entriesEqual");function dt(e,t,n){var r=e.length;if(r!==t.length)return false;if(r===0)return true;for(var o=-1;++o<r;)if(sn(e[o],t[o],n)===false)return false;return true}a(dt,"iterableEqual");x(dt,"iterableEqual");function el(e,t,n){return dt(Hn(e),Hn(t),n)}a(el,"generatorEqual");x(el,"generatorEqual");function tl(e){return typeof Symbol<"u"&&typeof e=="object"&&typeof Symbol.iterator<"u"&&typeof e[Symbol.iterator]=="function"}a(tl,"hasIteratorFunction");x(tl,"hasIteratorFunction");function Do(e){if(tl(e))try{return Hn(e[Symbol.iterator]())}catch{return []}return []}a(Do,"getIteratorEntries");x(Do,"getIteratorEntries");function Hn(e){for(var t=e.next(),n=[t.value];t.done===false;)t=e.next(),n.push(t.value);return n}a(Hn,"getGeneratorEntries");x(Hn,"getGeneratorEntries");function Lo(e){var t=[];for(var n in e)t.push(n);return t}a(Lo,"getEnumerableKeys");x(Lo,"getEnumerableKeys");function qo(e){for(var t=[],n=Object.getOwnPropertySymbols(e),r=0;r<n.length;r+=1){var o=n[r];Object.getOwnPropertyDescriptor(e,o).enumerable&&t.push(o);}return t}a(qo,"getEnumerableSymbols");x(qo,"getEnumerableSymbols");function Yo(e,t,n,r){var o=n.length;if(o===0)return true;for(var i=0;i<o;i+=1)if(sn(e[n[i]],t[n[i]],r)===false)return false;return true}a(Yo,"keysEqual");x(Yo,"keysEqual");function nl(e,t,n){var r=Lo(e),o=Lo(t),i=qo(e),s=qo(t);if(r=r.concat(i),o=o.concat(s),r.length&&r.length===o.length)return dt(Bo(r).sort(),Bo(o).sort())===false?false:Yo(e,t,r,n);var c=Do(e),u=Do(t);return c.length&&c.length===u.length?(c.sort(),u.sort(),dt(c,u,n)):r.length===0&&c.length===0&&o.length===0&&u.length===0}a(nl,"objectEqual");x(nl,"objectEqual");function xt(e){return e===null||typeof e!="object"}a(xt,"isPrimitive");x(xt,"isPrimitive");function Bo(e){return e.map(x(a(function(n){return typeof n=="symbol"?n.toString():n},"mapSymbol"),"mapSymbol"))}a(Bo,"mapSymbols");x(Bo,"mapSymbols");function tr(e,t){return typeof e>"u"||e===null?false:t in Object(e)}a(tr,"hasProperty");x(tr,"hasProperty");function rl(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(r=>{if(r==="constructor"||r==="__proto__"||r==="prototype")return {};let i=/^\[(\d+)\]$/.exec(r),s=null;return i?s={i:parseFloat(i[1])}:s={p:r.replace(/\\([.[\]])/g,"$1")},s})}a(rl,"parsePath");x(rl,"parsePath");function zo(e,t,n){let r=e,o=null;n=typeof n>"u"?t.length:n;for(let i=0;i<n;i++){let s=t[i];r&&(typeof s.p>"u"?r=r[s.i]:r=r[s.p],i===n-1&&(o=r));}return o}a(zo,"internalGetPathValue");x(zo,"internalGetPathValue");function Zo(e,t){let n=rl(t),r=n[n.length-1],o={parent:n.length>1?zo(e,n,n.length-1):e,name:r.p||r.i,value:zo(e,n)};return o.exists=tr(o.parent,o.name),o}a(Zo,"getPathInfo");x(Zo,"getPathInfo");var ol=class il{static{a(this,"_Assertion");}constructor(t,n,r,o){return Tc(this,"__flags",{}),B(this,"ssfi",r||il),B(this,"lockSsfi",o),B(this,"object",t),B(this,"message",n),B(this,"eql",Ee.deepEqual||Zc),Ft(this)}static get includeStack(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),Ee.includeStack}static set includeStack(t){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),Ee.includeStack=t;}static get showDiff(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),Ee.showDiff}static set showDiff(t){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),Ee.showDiff=t;}static addProperty(t,n){Qo(this.prototype,t,n);}static addMethod(t,n){ei(this.prototype,t,n);}static addChainableMethod(t,n,r){ri(this.prototype,t,n,r);}static overwriteProperty(t,n){ti(this.prototype,t,n);}static overwriteMethod(t,n){ni(this.prototype,t,n);}static overwriteChainableMethod(t,n,r){oi(this.prototype,t,n,r);}assert(t,n,r,o,i,s){let c=Vo(this,arguments);if(s!==false&&(s=true),o===void 0&&i===void 0&&(s=false),Ee.showDiff!==true&&(s=false),!c){n=Go(this,arguments);let l={actual:er(this,arguments),expected:o,showDiff:s},f=ai(this,arguments);throw f&&(l.operator=f),new V(n,l,Ee.includeStack?this.assert:B(this,"ssfi"))}}get _obj(){return B(this,"object")}set _obj(t){B(this,"object",t);}};x(ol,"Assertion");var b=ol,nr=new EventTarget,sl=class extends Event{static{a(this,"_PluginEvent");}constructor(t,n,r){super(t),this.name=String(n),this.fn=r;}};x(sl,"PluginEvent");var Xo=sl;function an(){return Ee.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}a(an,"isProxyEnabled");x(an,"isProxyEnabled");function Qo(e,t,n){n=n===void 0?function(){}:n,Object.defineProperty(e,t,{get:x(a(function r(){!an()&&!B(this,"lockSsfi")&&B(this,"ssfi",r);let o=n.call(this);if(o!==void 0)return o;let i=new b;return Je(this,i),i},"propertyGetter"),"propertyGetter"),configurable:true}),nr.dispatchEvent(new Xo("addProperty",t,n));}a(Qo,"addProperty");x(Qo,"addProperty");var Qp=Object.getOwnPropertyDescriptor(function(){},"length");function cn(e,t,n){return Qp.configurable&&Object.defineProperty(e,"length",{get:x(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}a(cn,"addLengthGuard");x(cn,"addLengthGuard");function al(e){let t=Object.getOwnPropertyNames(e);function n(o){t.indexOf(o)===-1&&t.push(o);}a(n,"addProperty2"),x(n,"addProperty");let r=Object.getPrototypeOf(e);for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n),r=Object.getPrototypeOf(r);return t}a(al,"getProperties");x(al,"getProperties");var bc=["__flags","__methods","_obj","assert"];function Ft(e,t){return an()?new Proxy(e,{get:x(a(function n(r,o){if(typeof o=="string"&&Ee.proxyExcludedKeys.indexOf(o)===-1&&!Reflect.has(r,o)){if(t)throw Error("Invalid Chai property: "+t+"."+o+'. See docs for proper usage of "'+t+'".');let i=null,s=4;throw al(r).forEach(function(c){if(!Object.prototype.hasOwnProperty(c)&&bc.indexOf(c)===-1){let u=cl(o,c,s);u<s&&(i=c,s=u);}}),Error(i!==null?"Invalid Chai property: "+o+'. Did you mean "'+i+'"?':"Invalid Chai property: "+o)}return bc.indexOf(o)===-1&&!B(r,"lockSsfi")&&B(r,"ssfi",n),Reflect.get(r,o)},"proxyGetter"),"proxyGetter")}):e}a(Ft,"proxify");x(Ft,"proxify");function cl(e,t,n){if(Math.abs(e.length-t.length)>=n)return n;let r=[];for(let o=0;o<=e.length;o++)r[o]=Array(t.length+1).fill(0),r[o][0]=o;for(let o=0;o<t.length;o++)r[0][o]=o;for(let o=1;o<=e.length;o++){let i=e.charCodeAt(o-1);for(let s=1;s<=t.length;s++){if(Math.abs(o-s)>=n){r[o][s]=n;continue}r[o][s]=Math.min(r[o-1][s]+1,r[o][s-1]+1,r[o-1][s-1]+(i===t.charCodeAt(s-1)?0:1));}}return r[e.length][t.length]}a(cl,"stringDistanceCapped");x(cl,"stringDistanceCapped");function ei(e,t,n){let r=x(function(){B(this,"lockSsfi")||B(this,"ssfi",r);let o=n.apply(this,arguments);if(o!==void 0)return o;let i=new b;return Je(this,i),i},"methodWrapper");cn(r,t,false),e[t]=Ft(r,t),nr.dispatchEvent(new Xo("addMethod",t,n));}a(ei,"addMethod");x(ei,"addMethod");function ti(e,t,n){let r=Object.getOwnPropertyDescriptor(e,t),o=x(function(){},"_super");r&&typeof r.get=="function"&&(o=r.get),Object.defineProperty(e,t,{get:x(a(function i(){!an()&&!B(this,"lockSsfi")&&B(this,"ssfi",i);let s=B(this,"lockSsfi");B(this,"lockSsfi",true);let c=n(o).call(this);if(B(this,"lockSsfi",s),c!==void 0)return c;let u=new b;return Je(this,u),u},"overwritingPropertyGetter"),"overwritingPropertyGetter"),configurable:true});}a(ti,"overwriteProperty");x(ti,"overwriteProperty");function ni(e,t,n){let r=e[t],o=x(function(){throw new Error(t+" is not a function")},"_super");r&&typeof r=="function"&&(o=r);let i=x(function(){B(this,"lockSsfi")||B(this,"ssfi",i);let s=B(this,"lockSsfi");B(this,"lockSsfi",true);let c=n(o).apply(this,arguments);if(B(this,"lockSsfi",s),c!==void 0)return c;let u=new b;return Je(this,u),u},"overwritingMethodWrapper");cn(i,t,false),e[t]=Ft(i,t);}a(ni,"overwriteMethod");x(ni,"overwriteMethod");var em=typeof Object.setPrototypeOf=="function",wc=x(function(){},"testFn"),tm=Object.getOwnPropertyNames(wc).filter(function(e){let t=Object.getOwnPropertyDescriptor(wc,e);return typeof t!="object"?true:!t.configurable}),nm=Function.prototype.call,rm=Function.prototype.apply,ll=class extends Xo{static{a(this,"_PluginAddChainableMethodEvent");}constructor(t,n,r,o){super(t,n,r),this.chainingBehavior=o;}};x(ll,"PluginAddChainableMethodEvent");var om=ll;function ri(e,t,n,r){typeof r!="function"&&(r=x(function(){},"chainingBehavior"));let o={method:n,chainingBehavior:r};e.__methods||(e.__methods={}),e.__methods[t]=o,Object.defineProperty(e,t,{get:x(a(function(){o.chainingBehavior.call(this);let s=x(function(){B(this,"lockSsfi")||B(this,"ssfi",s);let c=o.method.apply(this,arguments);if(c!==void 0)return c;let u=new b;return Je(this,u),u},"chainableMethodWrapper");if(cn(s,t,true),em){let c=Object.create(this);c.call=nm,c.apply=rm,Object.setPrototypeOf(s,c);}else Object.getOwnPropertyNames(e).forEach(function(u){if(tm.indexOf(u)!==-1)return;let l=Object.getOwnPropertyDescriptor(e,u);Object.defineProperty(s,u,l);});return Je(this,s),Ft(s)},"chainableMethodGetter"),"chainableMethodGetter"),configurable:true}),nr.dispatchEvent(new om("addChainableMethod",t,n,r));}a(ri,"addChainableMethod");x(ri,"addChainableMethod");function oi(e,t,n,r){let o=e.__methods[t],i=o.chainingBehavior;o.chainingBehavior=x(a(function(){let u=r(i).call(this);if(u!==void 0)return u;let l=new b;return Je(this,l),l},"overwritingChainableMethodGetter"),"overwritingChainableMethodGetter");let s=o.method;o.method=x(a(function(){let u=n(s).apply(this,arguments);if(u!==void 0)return u;let l=new b;return Je(this,l),l},"overwritingChainableMethodWrapper"),"overwritingChainableMethodWrapper");}a(oi,"overwriteChainableMethod");x(oi,"overwriteChainableMethod");function Jn(e,t){return W(e)<W(t)?-1:1}a(Jn,"compareByInspect");x(Jn,"compareByInspect");function ii(e){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}a(ii,"getOwnEnumerablePropertySymbols");x(ii,"getOwnEnumerablePropertySymbols");function si(e){return Object.keys(e).concat(ii(e))}a(si,"getOwnEnumerableProperties");x(si,"getOwnEnumerableProperties");var Yn=Number.isNaN;function ul(e){let t=ee(e);return ["Array","Object","Function"].indexOf(t)!==-1}a(ul,"isObjectType");x(ul,"isObjectType");function ai(e,t){let n=B(e,"operator"),r=B(e,"negate"),o=t[3],i=r?t[2]:t[1];if(n)return n;if(typeof i=="function"&&(i=i()),i=i||"",!i||/\shave\s/.test(i))return;let s=ul(o);return /\snot\s/.test(i)?s?"notDeepStrictEqual":"notStrictEqual":s?"deepStrictEqual":"strictEqual"}a(ai,"getOperator");x(ai,"getOperator");function rr(e){return e.name}a(rr,"getName");x(rr,"getName");function Zn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}a(Zn,"isRegExp2");x(Zn,"isRegExp");function ge(e){return ["Number","BigInt"].includes(ee(e))}a(ge,"isNumeric");x(ge,"isNumeric");var{flag:T}=Fe;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(e){b.addProperty(e);});b.addProperty("not",function(){T(this,"negate",true);});b.addProperty("deep",function(){T(this,"deep",true);});b.addProperty("nested",function(){T(this,"nested",true);});b.addProperty("own",function(){T(this,"own",true);});b.addProperty("ordered",function(){T(this,"ordered",true);});b.addProperty("any",function(){T(this,"any",true),T(this,"all",false);});b.addProperty("all",function(){T(this,"all",true),T(this,"any",false);});var vc={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function ci(e,t){t&&T(this,"message",t),e=e.toLowerCase();let n=T(this,"object"),r=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ",o=ee(n).toLowerCase();vc.function.includes(e)?this.assert(vc[e].includes(o),"expected #{this} to be "+r+e,"expected #{this} not to be "+r+e):this.assert(e===o,"expected #{this} to be "+r+e,"expected #{this} not to be "+r+e);}a(ci,"an");x(ci,"an");b.addChainableMethod("an",ci);b.addChainableMethod("a",ci);function fl(e,t){return Yn(e)&&Yn(t)||e===t}a(fl,"SameValueZero");x(fl,"SameValueZero");function ln(){T(this,"contains",true);}a(ln,"includeChainingBehavior");x(ln,"includeChainingBehavior");function un(e,t){t&&T(this,"message",t);let n=T(this,"object"),r=ee(n).toLowerCase(),o=T(this,"message"),i=T(this,"negate"),s=T(this,"ssfi"),c=T(this,"deep"),u=c?"deep ":"",l=c?T(this,"eql"):fl;o=o?o+": ":"";let f=false;switch(r){case "string":f=n.indexOf(e)!==-1;break;case "weakset":if(c)throw new V(o+"unable to use .deep.include with WeakSet",void 0,s);f=n.has(e);break;case "map":n.forEach(function(h){f=f||l(h,e);});break;case "set":c?n.forEach(function(h){f=f||l(h,e);}):f=n.has(e);break;case "array":c?f=n.some(function(h){return l(h,e)}):f=n.indexOf(e)!==-1;break;default:{if(e!==Object(e))throw new V(o+"the given combination of arguments ("+r+" and "+ee(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 "+ee(e).toLowerCase(),void 0,s);let h=Object.keys(e),d=null,p=0;if(h.forEach(function(m){let y=new b(n);if(Je(this,y,true),T(y,"lockSsfi",true),!i||h.length===1){y.property(m,e[m]);return}try{y.property(m,e[m]);}catch(v){if(!Ae.compatibleConstructor(v,V))throw v;d===null&&(d=v),p++;}},this),i&&h.length>1&&p===h.length)throw d;return}}this.assert(f,"expected #{this} to "+u+"include "+W(e),"expected #{this} to not "+u+"include "+W(e));}a(un,"include");x(un,"include");b.addChainableMethod("include",un,ln);b.addChainableMethod("contain",un,ln);b.addChainableMethod("contains",un,ln);b.addChainableMethod("includes",un,ln);b.addProperty("ok",function(){this.assert(T(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy");});b.addProperty("true",function(){this.assert(T(this,"object")===true,"expected #{this} to be true","expected #{this} to be false",!T(this,"negate"));});b.addProperty("numeric",function(){let e=T(this,"object");this.assert(["Number","BigInt"].includes(ee(e)),"expected #{this} to be numeric","expected #{this} to not be numeric",!T(this,"negate"));});b.addProperty("callable",function(){let e=T(this,"object"),t=T(this,"ssfi"),n=T(this,"message"),r=n?`${n}: `:"",o=T(this,"negate"),i=o?`${r}expected ${W(e)} not to be a callable function`:`${r}expected ${W(e)} to be a callable function`,s=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(ee(e));if(s&&o||!s&&!o)throw new V(i,void 0,t)});b.addProperty("false",function(){this.assert(T(this,"object")===false,"expected #{this} to be false","expected #{this} to be true",!!T(this,"negate"));});b.addProperty("null",function(){this.assert(T(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null");});b.addProperty("undefined",function(){this.assert(T(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined");});b.addProperty("NaN",function(){this.assert(Yn(T(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN");});function li(){let e=T(this,"object");this.assert(e!=null,"expected #{this} to exist","expected #{this} to not exist");}a(li,"assertExist");x(li,"assertExist");b.addProperty("exist",li);b.addProperty("exists",li);b.addProperty("empty",function(){let e=T(this,"object"),t=T(this,"ssfi"),n=T(this,"message"),r;switch(n=n?n+": ":"",ee(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":{let o=n+".empty was passed a function "+rr(e);throw new V(o.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 ui(){let e=T(this,"object"),t=ee(e);this.assert(t==="Arguments","expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments");}a(ui,"checkArguments");x(ui,"checkArguments");b.addProperty("arguments",ui);b.addProperty("Arguments",ui);function or(e,t){t&&T(this,"message",t);let n=T(this,"object");if(T(this,"deep")){let r=T(this,"lockSsfi");T(this,"lockSsfi",true),this.eql(e),T(this,"lockSsfi",r);}else this.assert(e===n,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,true);}a(or,"assertEqual");x(or,"assertEqual");b.addMethod("equal",or);b.addMethod("equals",or);b.addMethod("eq",or);function fi(e,t){t&&T(this,"message",t);let n=T(this,"eql");this.assert(n(e,T(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,true);}a(fi,"assertEql");x(fi,"assertEql");b.addMethod("eql",fi);b.addMethod("eqls",fi);function ir(e,t){t&&T(this,"message",t);let n=T(this,"object"),r=T(this,"doLength"),o=T(this,"message"),i=o?o+": ":"",s=T(this,"ssfi"),c=ee(n).toLowerCase(),u=ee(e).toLowerCase();if(r&&c!=="map"&&c!=="set"&&new b(n,o,s,true).to.have.property("length"),!r&&c==="date"&&u!=="date")throw new V(i+"the argument to above must be a date",void 0,s);if(!ge(e)&&(r||ge(n)))throw new V(i+"the argument to above must be a number",void 0,s);if(!r&&c!=="date"&&!ge(n)){let l=c==="string"?"'"+n+"'":n;throw new V(i+"expected "+l+" to be a number or a date",void 0,s)}if(r){let l="length",f;c==="map"||c==="set"?(l="size",f=n.size):f=n.length,this.assert(f>e,"expected #{this} to have a "+l+" above #{exp} but got #{act}","expected #{this} to not have a "+l+" above #{exp}",e,f);}else this.assert(n>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e);}a(ir,"assertAbove");x(ir,"assertAbove");b.addMethod("above",ir);b.addMethod("gt",ir);b.addMethod("greaterThan",ir);function sr(e,t){t&&T(this,"message",t);let n=T(this,"object"),r=T(this,"doLength"),o=T(this,"message"),i=o?o+": ":"",s=T(this,"ssfi"),c=ee(n).toLowerCase(),u=ee(e).toLowerCase(),l,f=true;if(r&&c!=="map"&&c!=="set"&&new b(n,o,s,true).to.have.property("length"),!r&&c==="date"&&u!=="date")l=i+"the argument to least must be a date";else if(!ge(e)&&(r||ge(n)))l=i+"the argument to least must be a number";else if(!r&&c!=="date"&&!ge(n)){let h=c==="string"?"'"+n+"'":n;l=i+"expected "+h+" to be a number or a date";}else f=false;if(f)throw new V(l,void 0,s);if(r){let h="length",d;c==="map"||c==="set"?(h="size",d=n.size):d=n.length,this.assert(d>=e,"expected #{this} to have a "+h+" at least #{exp} but got #{act}","expected #{this} to have a "+h+" below #{exp}",e,d);}else this.assert(n>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e);}a(sr,"assertLeast");x(sr,"assertLeast");b.addMethod("least",sr);b.addMethod("gte",sr);b.addMethod("greaterThanOrEqual",sr);function ar(e,t){t&&T(this,"message",t);let n=T(this,"object"),r=T(this,"doLength"),o=T(this,"message"),i=o?o+": ":"",s=T(this,"ssfi"),c=ee(n).toLowerCase(),u=ee(e).toLowerCase(),l,f=true;if(r&&c!=="map"&&c!=="set"&&new b(n,o,s,true).to.have.property("length"),!r&&c==="date"&&u!=="date")l=i+"the argument to below must be a date";else if(!ge(e)&&(r||ge(n)))l=i+"the argument to below must be a number";else if(!r&&c!=="date"&&!ge(n)){let h=c==="string"?"'"+n+"'":n;l=i+"expected "+h+" to be a number or a date";}else f=false;if(f)throw new V(l,void 0,s);if(r){let h="length",d;c==="map"||c==="set"?(h="size",d=n.size):d=n.length,this.assert(d<e,"expected #{this} to have a "+h+" below #{exp} but got #{act}","expected #{this} to not have a "+h+" below #{exp}",e,d);}else this.assert(n<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e);}a(ar,"assertBelow");x(ar,"assertBelow");b.addMethod("below",ar);b.addMethod("lt",ar);b.addMethod("lessThan",ar);function cr(e,t){t&&T(this,"message",t);let n=T(this,"object"),r=T(this,"doLength"),o=T(this,"message"),i=o?o+": ":"",s=T(this,"ssfi"),c=ee(n).toLowerCase(),u=ee(e).toLowerCase(),l,f=true;if(r&&c!=="map"&&c!=="set"&&new b(n,o,s,true).to.have.property("length"),!r&&c==="date"&&u!=="date")l=i+"the argument to most must be a date";else if(!ge(e)&&(r||ge(n)))l=i+"the argument to most must be a number";else if(!r&&c!=="date"&&!ge(n)){let h=c==="string"?"'"+n+"'":n;l=i+"expected "+h+" to be a number or a date";}else f=false;if(f)throw new V(l,void 0,s);if(r){let h="length",d;c==="map"||c==="set"?(h="size",d=n.size):d=n.length,this.assert(d<=e,"expected #{this} to have a "+h+" at most #{exp} but got #{act}","expected #{this} to have a "+h+" above #{exp}",e,d);}else this.assert(n<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e);}a(cr,"assertMost");x(cr,"assertMost");b.addMethod("most",cr);b.addMethod("lte",cr);b.addMethod("lessThanOrEqual",cr);b.addMethod("within",function(e,t,n){n&&T(this,"message",n);let r=T(this,"object"),o=T(this,"doLength"),i=T(this,"message"),s=i?i+": ":"",c=T(this,"ssfi"),u=ee(r).toLowerCase(),l=ee(e).toLowerCase(),f=ee(t).toLowerCase(),h,d=true,p=l==="date"&&f==="date"?e.toISOString()+".."+t.toISOString():e+".."+t;if(o&&u!=="map"&&u!=="set"&&new b(r,i,c,true).to.have.property("length"),!o&&u==="date"&&(l!=="date"||f!=="date"))h=s+"the arguments to within must be dates";else if((!ge(e)||!ge(t))&&(o||ge(r)))h=s+"the arguments to within must be numbers";else if(!o&&u!=="date"&&!ge(r)){let m=u==="string"?"'"+r+"'":r;h=s+"expected "+m+" to be a number or a date";}else d=false;if(d)throw new V(h,void 0,c);if(o){let m="length",y;u==="map"||u==="set"?(m="size",y=r.size):y=r.length,this.assert(y>=e&&y<=t,"expected #{this} to have a "+m+" within "+p,"expected #{this} to not have a "+m+" within "+p);}else this.assert(r>=e&&r<=t,"expected #{this} to be within "+p,"expected #{this} to not be within "+p);});function hi(e,t){t&&T(this,"message",t);let n=T(this,"object"),r=T(this,"ssfi"),o=T(this,"message"),i;try{i=n instanceof e;}catch(c){throw c instanceof TypeError?(o=o?o+": ":"",new V(o+"The instanceof assertion needs a constructor but "+ee(e)+" was given.",void 0,r)):c}let s=rr(e);s==null&&(s="an unnamed constructor"),this.assert(i,"expected #{this} to be an instance of "+s,"expected #{this} to not be an instance of "+s);}a(hi,"assertInstanceOf");x(hi,"assertInstanceOf");b.addMethod("instanceof",hi);b.addMethod("instanceOf",hi);function di(e,t,n){n&&T(this,"message",n);let r=T(this,"nested"),o=T(this,"own"),i=T(this,"message"),s=T(this,"object"),c=T(this,"ssfi"),u=typeof e;if(i=i?i+": ":"",r){if(u!=="string")throw new V(i+"the argument to property must be a string when using nested syntax",void 0,c)}else if(u!=="string"&&u!=="number"&&u!=="symbol")throw new V(i+"the argument to property must be a string, number, or symbol",void 0,c);if(r&&o)throw new V(i+'The "nested" and "own" flags cannot be combined.',void 0,c);if(s==null)throw new V(i+"Target cannot be null or undefined.",void 0,c);let l=T(this,"deep"),f=T(this,"negate"),h=r?Zo(s,e):null,d=r?h.value:s[e],p=l?T(this,"eql"):(v,S)=>v===S,m="";l&&(m+="deep "),o&&(m+="own "),r&&(m+="nested "),m+="property ";let y;o?y=Object.prototype.hasOwnProperty.call(s,e):r?y=h.exists:y=tr(s,e),(!f||arguments.length===1)&&this.assert(y,"expected #{this} to have "+m+W(e),"expected #{this} to not have "+m+W(e)),arguments.length>1&&this.assert(y&&p(t,d),"expected #{this} to have "+m+W(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+m+W(e)+" of #{act}",t,d),T(this,"object",d);}a(di,"assertProperty");x(di,"assertProperty");b.addMethod("property",di);function pi(e,t,n){T(this,"own",true),di.apply(this,arguments);}a(pi,"assertOwnProperty");x(pi,"assertOwnProperty");b.addMethod("ownProperty",pi);b.addMethod("haveOwnProperty",pi);function mi(e,t,n){typeof t=="string"&&(n=t,t=null),n&&T(this,"message",n);let r=T(this,"object"),o=Object.getOwnPropertyDescriptor(Object(r),e),i=T(this,"eql");o&&t?this.assert(i(t,o),"expected the own property descriptor for "+W(e)+" on #{this} to match "+W(t)+", got "+W(o),"expected the own property descriptor for "+W(e)+" on #{this} to not match "+W(t),t,o,true):this.assert(o,"expected #{this} to have an own property descriptor for "+W(e),"expected #{this} to not have an own property descriptor for "+W(e)),T(this,"object",o);}a(mi,"assertOwnPropertyDescriptor");x(mi,"assertOwnPropertyDescriptor");b.addMethod("ownPropertyDescriptor",mi);b.addMethod("haveOwnPropertyDescriptor",mi);function gi(){T(this,"doLength",true);}a(gi,"assertLengthChain");x(gi,"assertLengthChain");function yi(e,t){t&&T(this,"message",t);let n=T(this,"object"),r=ee(n).toLowerCase(),o=T(this,"message"),i=T(this,"ssfi"),s="length",c;switch(r){case "map":case "set":s="size",c=n.size;break;default:new b(n,o,i,true).to.have.property("length"),c=n.length;}this.assert(c==e,"expected #{this} to have a "+s+" of #{exp} but got #{act}","expected #{this} to not have a "+s+" of #{act}",e,c);}a(yi,"assertLength");x(yi,"assertLength");b.addChainableMethod("length",yi,gi);b.addChainableMethod("lengthOf",yi,gi);function bi(e,t){t&&T(this,"message",t);let n=T(this,"object");this.assert(e.exec(n),"expected #{this} to match "+e,"expected #{this} not to match "+e);}a(bi,"assertMatch");x(bi,"assertMatch");b.addMethod("match",bi);b.addMethod("matches",bi);b.addMethod("string",function(e,t){t&&T(this,"message",t);let n=T(this,"object"),r=T(this,"message"),o=T(this,"ssfi");new b(n,r,o,true).is.a("string"),this.assert(~n.indexOf(e),"expected #{this} to contain "+W(e),"expected #{this} to not contain "+W(e));});function wi(e){let t=T(this,"object"),n=ee(t),r=ee(e),o=T(this,"ssfi"),i=T(this,"deep"),s,c="",u,l=true,f=T(this,"message");f=f?f+": ":"";let h=f+"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")c=i?"deeply ":"",u=[],t.forEach(function(S,M){u.push(M);}),r!=="Array"&&(e=Array.prototype.slice.call(arguments));else {switch(u=si(t),r){case "Array":if(arguments.length>1)throw new V(h,void 0,o);break;case "Object":if(arguments.length>1)throw new V(h,void 0,o);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments);}e=e.map(function(S){return typeof S=="symbol"?S:String(S)});}if(!e.length)throw new V(f+"keys required",void 0,o);let d=e.length,p=T(this,"any"),m=T(this,"all"),y=e,v=i?T(this,"eql"):(S,M)=>S===M;if(!p&&!m&&(m=true),p&&(l=y.some(function(S){return u.some(function(M){return v(S,M)})})),m&&(l=y.every(function(S){return u.some(function(M){return v(S,M)})}),T(this,"contains")||(l=l&&e.length==u.length)),d>1){e=e.map(function(M){return W(M)});let S=e.pop();m&&(s=e.join(", ")+", and "+S),p&&(s=e.join(", ")+", or "+S);}else s=W(e[0]);s=(d>1?"keys ":"key ")+s,s=(T(this,"contains")?"contain ":"have ")+s,this.assert(l,"expected #{this} to "+c+s,"expected #{this} to not "+c+s,y.slice(0).sort(Jn),u.sort(Jn),true);}a(wi,"assertKeys");x(wi,"assertKeys");b.addMethod("keys",wi);b.addMethod("key",wi);function lr(e,t,n){n&&T(this,"message",n);let r=T(this,"object"),o=T(this,"ssfi"),i=T(this,"message"),s=T(this,"negate")||false;new b(r,i,o,true).is.a("function"),(Zn(e)||typeof e=="string")&&(t=e,e=null);let c,u=false;try{r();}catch(p){u=true,c=p;}let l=e===void 0&&t===void 0,f=!!(e&&t),h=false,d=false;if(l||!l&&!s){let p="an error";e instanceof Error?p="#{exp}":e&&(p=Ae.getConstructorName(e));let m=c;if(c instanceof Error)m=c.toString();else if(typeof c=="string")m=c;else if(c&&(typeof c=="object"||typeof c=="function"))try{m=Ae.getConstructorName(c);}catch{}this.assert(u,"expected #{this} to throw "+p,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),m);}if(e&&c&&(e instanceof Error&&Ae.compatibleInstance(c,e)===s&&(f&&s?h=true:this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(c&&!s?" but #{act} was thrown":""),e.toString(),c.toString())),Ae.compatibleConstructor(c,e)===s&&(f&&s?h=true:this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(c?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&Ae.getConstructorName(e),c instanceof Error?c.toString():c&&Ae.getConstructorName(c)))),c&&t!==void 0&&t!==null){let p="including";Zn(t)&&(p="matching"),Ae.compatibleMessage(c,t)===s&&(f&&s?d=true:this.assert(s,"expected #{this} to throw error "+p+" #{exp} but got #{act}","expected #{this} to throw error not "+p+" #{exp}",t,Ae.getMessage(c)));}h&&d&&this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(c?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&Ae.getConstructorName(e),c instanceof Error?c.toString():c&&Ae.getConstructorName(c)),T(this,"object",c);}a(lr,"assertThrows");x(lr,"assertThrows");b.addMethod("throw",lr);b.addMethod("throws",lr);b.addMethod("Throw",lr);function vi(e,t){t&&T(this,"message",t);let n=T(this,"object"),r=T(this,"itself"),o=typeof n=="function"&&!r?n.prototype[e]:n[e];this.assert(typeof o=="function","expected #{this} to respond to "+W(e),"expected #{this} to not respond to "+W(e));}a(vi,"respondTo");x(vi,"respondTo");b.addMethod("respondTo",vi);b.addMethod("respondsTo",vi);b.addProperty("itself",function(){T(this,"itself",true);});function Si(e,t){t&&T(this,"message",t);let n=T(this,"object"),r=e(n);this.assert(r,"expected #{this} to satisfy "+Et(e),"expected #{this} to not satisfy"+Et(e),!T(this,"negate"),r);}a(Si,"satisfy");x(Si,"satisfy");b.addMethod("satisfy",Si);b.addMethod("satisfies",Si);function Ti(e,t,n){n&&T(this,"message",n);let r=T(this,"object"),o=T(this,"message"),i=T(this,"ssfi");new b(r,o,i,true).is.numeric;let s="A `delta` value is required for `closeTo`";if(t==null)throw new V(o?`${o}: ${s}`:s,void 0,i);if(new b(t,o,i,true).is.numeric,s="A `expected` value is required for `closeTo`",e==null)throw new V(o?`${o}: ${s}`:s,void 0,i);new b(e,o,i,true).is.numeric;let c=x(l=>l<0?-l:l,"abs"),u=x(l=>parseFloat(parseFloat(l).toPrecision(12)),"strip");this.assert(u(c(r-e))<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t);}a(Ti,"closeTo");x(Ti,"closeTo");b.addMethod("closeTo",Ti);b.addMethod("approximately",Ti);function hl(e,t,n,r,o){let i=Array.from(t),s=Array.from(e);if(!r){if(s.length!==i.length)return false;i=i.slice();}return s.every(function(c,u){if(o)return n?n(c,i[u]):c===i[u];if(!n){let l=i.indexOf(c);return l===-1?false:(r||i.splice(l,1),true)}return i.some(function(l,f){return n(c,l)?(r||i.splice(f,1),true):false})})}a(hl,"isSubsetOf");x(hl,"isSubsetOf");b.addMethod("members",function(e,t){t&&T(this,"message",t);let n=T(this,"object"),r=T(this,"message"),o=T(this,"ssfi");new b(n,r,o,true).to.be.iterable,new b(e,r,o,true).to.be.iterable;let i=T(this,"contains"),s=T(this,"ordered"),c,u,l;i?(c=s?"an ordered superset":"a superset",u="expected #{this} to be "+c+" of #{exp}",l="expected #{this} to not be "+c+" of #{exp}"):(c=s?"ordered members":"members",u="expected #{this} to have the same "+c+" as #{exp}",l="expected #{this} to not have the same "+c+" as #{exp}");let f=T(this,"deep")?T(this,"eql"):void 0;this.assert(hl(e,n,f,i,s),u,l,e,n,true);});b.addProperty("iterable",function(e){e&&T(this,"message",e);let t=T(this,"object");this.assert(t!=null&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t);});function dl(e,t){t&&T(this,"message",t);let n=T(this,"object"),r=T(this,"message"),o=T(this,"ssfi"),i=T(this,"contains"),s=T(this,"deep"),c=T(this,"eql");new b(e,r,o,true).to.be.an("array"),i?this.assert(e.some(function(u){return n.indexOf(u)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,n):s?this.assert(e.some(function(u){return c(n,u)}),"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);}a(dl,"oneOf");x(dl,"oneOf");b.addMethod("oneOf",dl);function Ei(e,t,n){n&&T(this,"message",n);let r=T(this,"object"),o=T(this,"message"),i=T(this,"ssfi");new b(r,o,i,true).is.a("function");let s;t?(new b(e,o,i,true).to.have.property(t),s=e[t]):(new b(e,o,i,true).is.a("function"),s=e()),r();let c=t==null?e():e[t],u=t==null?s:"."+t;T(this,"deltaMsgObj",u),T(this,"initialDeltaValue",s),T(this,"finalDeltaValue",c),T(this,"deltaBehavior","change"),T(this,"realDelta",c!==s),this.assert(s!==c,"expected "+u+" to change","expected "+u+" to not change");}a(Ei,"assertChanges");x(Ei,"assertChanges");b.addMethod("change",Ei);b.addMethod("changes",Ei);function xi(e,t,n){n&&T(this,"message",n);let r=T(this,"object"),o=T(this,"message"),i=T(this,"ssfi");new b(r,o,i,true).is.a("function");let s;t?(new b(e,o,i,true).to.have.property(t),s=e[t]):(new b(e,o,i,true).is.a("function"),s=e()),new b(s,o,i,true).is.a("number"),r();let c=t==null?e():e[t],u=t==null?s:"."+t;T(this,"deltaMsgObj",u),T(this,"initialDeltaValue",s),T(this,"finalDeltaValue",c),T(this,"deltaBehavior","increase"),T(this,"realDelta",c-s),this.assert(c-s>0,"expected "+u+" to increase","expected "+u+" to not increase");}a(xi,"assertIncreases");x(xi,"assertIncreases");b.addMethod("increase",xi);b.addMethod("increases",xi);function Mi(e,t,n){n&&T(this,"message",n);let r=T(this,"object"),o=T(this,"message"),i=T(this,"ssfi");new b(r,o,i,true).is.a("function");let s;t?(new b(e,o,i,true).to.have.property(t),s=e[t]):(new b(e,o,i,true).is.a("function"),s=e()),new b(s,o,i,true).is.a("number"),r();let c=t==null?e():e[t],u=t==null?s:"."+t;T(this,"deltaMsgObj",u),T(this,"initialDeltaValue",s),T(this,"finalDeltaValue",c),T(this,"deltaBehavior","decrease"),T(this,"realDelta",s-c),this.assert(c-s<0,"expected "+u+" to decrease","expected "+u+" to not decrease");}a(Mi,"assertDecreases");x(Mi,"assertDecreases");b.addMethod("decrease",Mi);b.addMethod("decreases",Mi);function pl(e,t){t&&T(this,"message",t);let n=T(this,"deltaMsgObj"),r=T(this,"initialDeltaValue"),o=T(this,"finalDeltaValue"),i=T(this,"deltaBehavior"),s=T(this,"realDelta"),c;i==="change"?c=Math.abs(o-r)===Math.abs(e):c=s===Math.abs(e),this.assert(c,"expected "+n+" to "+i+" by "+e,"expected "+n+" to not "+i+" by "+e);}a(pl,"assertDelta");x(pl,"assertDelta");b.addMethod("by",pl);b.addProperty("extensible",function(){let e=T(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible");});b.addProperty("sealed",function(){let e=T(this,"object"),t=e===Object(e)?Object.isSealed(e):true;this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed");});b.addProperty("frozen",function(){let e=T(this,"object"),t=e===Object(e)?Object.isFrozen(e):true;this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen");});b.addProperty("finite",function(e){let t=T(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 Xn(e,t){return e===t?true:typeof t!=typeof e?false:typeof e!="object"||e===null?e===t:t?Array.isArray(e)?Array.isArray(t)?e.every(function(n){return t.some(function(r){return Xn(n,r)})}):false:e instanceof Date?t instanceof Date?e.getTime()===t.getTime():false:Object.keys(e).every(function(n){let r=e[n],o=t[n];return typeof r=="object"&&r!==null&&o!==null?Xn(r,o):typeof r=="function"?r(o):o===r}):false}a(Xn,"compareSubset");x(Xn,"compareSubset");b.addMethod("containSubset",function(e){let t=B(this,"object"),n=Ee.showDiff;this.assert(Xn(e,t),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",e,t,n);});function on(e,t){return new b(e,t)}a(on,"expect");x(on,"expect");on.fail=function(e,t,n,r){throw arguments.length<2&&(n=e,e=void 0),n=n||"expect.fail()",new V(n,{actual:e,expected:t,operator:r},on.fail)};var ml={};Wo(ml,{Should:a(()=>yl,"Should"),should:a(()=>gl,"should")});function _i(){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 b(this.valueOf(),null,e):new b(this,null,e)}a(e,"shouldGetter"),x(e,"shouldGetter");function t(r){Object.defineProperty(this,"should",{value:r,enumerable:true,configurable:true,writable:true});}a(t,"shouldSetter"),x(t,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:t,get:e,configurable:true});let n={};return n.fail=function(r,o,i,s){throw arguments.length<2&&(i=r,r=void 0),i=i||"should.fail()",new V(i,{actual:r,expected:o,operator:s},n.fail)},n.equal=function(r,o,i){new b(r,i).to.equal(o);},n.Throw=function(r,o,i,s){new b(r,s).to.Throw(o,i);},n.exist=function(r,o){new b(r,o).to.exist;},n.not={},n.not.equal=function(r,o,i){new b(r,i).to.not.equal(o);},n.not.Throw=function(r,o,i,s){new b(r,s).to.not.Throw(o,i);},n.not.exist=function(r,o){new b(r,o).to.not.exist;},n.throw=n.Throw,n.not.throw=n.not.Throw,n}a(_i,"loadShould");x(_i,"loadShould");var gl=_i,yl=_i;function g(e,t){new b(null,null,g,true).assert(e,t,"[ negation message unavailable ]");}a(g,"assert");x(g,"assert");g.fail=function(e,t,n,r){throw arguments.length<2&&(n=e,e=void 0),n=n||"assert.fail()",new V(n,{actual:e,expected:t,operator:r},g.fail)};g.isOk=function(e,t){new b(e,t,g.isOk,true).is.ok;};g.isNotOk=function(e,t){new b(e,t,g.isNotOk,true).is.not.ok;};g.equal=function(e,t,n){let r=new b(e,n,g.equal,true);r.assert(t==B(r,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,true);};g.notEqual=function(e,t,n){let r=new b(e,n,g.notEqual,true);r.assert(t!=B(r,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,true);};g.strictEqual=function(e,t,n){new b(e,n,g.strictEqual,true).to.equal(t);};g.notStrictEqual=function(e,t,n){new b(e,n,g.notStrictEqual,true).to.not.equal(t);};g.deepEqual=g.deepStrictEqual=function(e,t,n){new b(e,n,g.deepEqual,true).to.eql(t);};g.notDeepEqual=function(e,t,n){new b(e,n,g.notDeepEqual,true).to.not.eql(t);};g.isAbove=function(e,t,n){new b(e,n,g.isAbove,true).to.be.above(t);};g.isAtLeast=function(e,t,n){new b(e,n,g.isAtLeast,true).to.be.least(t);};g.isBelow=function(e,t,n){new b(e,n,g.isBelow,true).to.be.below(t);};g.isAtMost=function(e,t,n){new b(e,n,g.isAtMost,true).to.be.most(t);};g.isTrue=function(e,t){new b(e,t,g.isTrue,true).is.true;};g.isNotTrue=function(e,t){new b(e,t,g.isNotTrue,true).to.not.equal(true);};g.isFalse=function(e,t){new b(e,t,g.isFalse,true).is.false;};g.isNotFalse=function(e,t){new b(e,t,g.isNotFalse,true).to.not.equal(false);};g.isNull=function(e,t){new b(e,t,g.isNull,true).to.equal(null);};g.isNotNull=function(e,t){new b(e,t,g.isNotNull,true).to.not.equal(null);};g.isNaN=function(e,t){new b(e,t,g.isNaN,true).to.be.NaN;};g.isNotNaN=function(e,t){new b(e,t,g.isNotNaN,true).not.to.be.NaN;};g.exists=function(e,t){new b(e,t,g.exists,true).to.exist;};g.notExists=function(e,t){new b(e,t,g.notExists,true).to.not.exist;};g.isUndefined=function(e,t){new b(e,t,g.isUndefined,true).to.equal(void 0);};g.isDefined=function(e,t){new b(e,t,g.isDefined,true).to.not.equal(void 0);};g.isCallable=function(e,t){new b(e,t,g.isCallable,true).is.callable;};g.isNotCallable=function(e,t){new b(e,t,g.isNotCallable,true).is.not.callable;};g.isObject=function(e,t){new b(e,t,g.isObject,true).to.be.a("object");};g.isNotObject=function(e,t){new b(e,t,g.isNotObject,true).to.not.be.a("object");};g.isArray=function(e,t){new b(e,t,g.isArray,true).to.be.an("array");};g.isNotArray=function(e,t){new b(e,t,g.isNotArray,true).to.not.be.an("array");};g.isString=function(e,t){new b(e,t,g.isString,true).to.be.a("string");};g.isNotString=function(e,t){new b(e,t,g.isNotString,true).to.not.be.a("string");};g.isNumber=function(e,t){new b(e,t,g.isNumber,true).to.be.a("number");};g.isNotNumber=function(e,t){new b(e,t,g.isNotNumber,true).to.not.be.a("number");};g.isNumeric=function(e,t){new b(e,t,g.isNumeric,true).is.numeric;};g.isNotNumeric=function(e,t){new b(e,t,g.isNotNumeric,true).is.not.numeric;};g.isFinite=function(e,t){new b(e,t,g.isFinite,true).to.be.finite;};g.isBoolean=function(e,t){new b(e,t,g.isBoolean,true).to.be.a("boolean");};g.isNotBoolean=function(e,t){new b(e,t,g.isNotBoolean,true).to.not.be.a("boolean");};g.typeOf=function(e,t,n){new b(e,n,g.typeOf,true).to.be.a(t);};g.notTypeOf=function(e,t,n){new b(e,n,g.notTypeOf,true).to.not.be.a(t);};g.instanceOf=function(e,t,n){new b(e,n,g.instanceOf,true).to.be.instanceOf(t);};g.notInstanceOf=function(e,t,n){new b(e,n,g.notInstanceOf,true).to.not.be.instanceOf(t);};g.include=function(e,t,n){new b(e,n,g.include,true).include(t);};g.notInclude=function(e,t,n){new b(e,n,g.notInclude,true).not.include(t);};g.deepInclude=function(e,t,n){new b(e,n,g.deepInclude,true).deep.include(t);};g.notDeepInclude=function(e,t,n){new b(e,n,g.notDeepInclude,true).not.deep.include(t);};g.nestedInclude=function(e,t,n){new b(e,n,g.nestedInclude,true).nested.include(t);};g.notNestedInclude=function(e,t,n){new b(e,n,g.notNestedInclude,true).not.nested.include(t);};g.deepNestedInclude=function(e,t,n){new b(e,n,g.deepNestedInclude,true).deep.nested.include(t);};g.notDeepNestedInclude=function(e,t,n){new b(e,n,g.notDeepNestedInclude,true).not.deep.nested.include(t);};g.ownInclude=function(e,t,n){new b(e,n,g.ownInclude,true).own.include(t);};g.notOwnInclude=function(e,t,n){new b(e,n,g.notOwnInclude,true).not.own.include(t);};g.deepOwnInclude=function(e,t,n){new b(e,n,g.deepOwnInclude,true).deep.own.include(t);};g.notDeepOwnInclude=function(e,t,n){new b(e,n,g.notDeepOwnInclude,true).not.deep.own.include(t);};g.match=function(e,t,n){new b(e,n,g.match,true).to.match(t);};g.notMatch=function(e,t,n){new b(e,n,g.notMatch,true).to.not.match(t);};g.property=function(e,t,n){new b(e,n,g.property,true).to.have.property(t);};g.notProperty=function(e,t,n){new b(e,n,g.notProperty,true).to.not.have.property(t);};g.propertyVal=function(e,t,n,r){new b(e,r,g.propertyVal,true).to.have.property(t,n);};g.notPropertyVal=function(e,t,n,r){new b(e,r,g.notPropertyVal,true).to.not.have.property(t,n);};g.deepPropertyVal=function(e,t,n,r){new b(e,r,g.deepPropertyVal,true).to.have.deep.property(t,n);};g.notDeepPropertyVal=function(e,t,n,r){new b(e,r,g.notDeepPropertyVal,true).to.not.have.deep.property(t,n);};g.ownProperty=function(e,t,n){new b(e,n,g.ownProperty,true).to.have.own.property(t);};g.notOwnProperty=function(e,t,n){new b(e,n,g.notOwnProperty,true).to.not.have.own.property(t);};g.ownPropertyVal=function(e,t,n,r){new b(e,r,g.ownPropertyVal,true).to.have.own.property(t,n);};g.notOwnPropertyVal=function(e,t,n,r){new b(e,r,g.notOwnPropertyVal,true).to.not.have.own.property(t,n);};g.deepOwnPropertyVal=function(e,t,n,r){new b(e,r,g.deepOwnPropertyVal,true).to.have.deep.own.property(t,n);};g.notDeepOwnPropertyVal=function(e,t,n,r){new b(e,r,g.notDeepOwnPropertyVal,true).to.not.have.deep.own.property(t,n);};g.nestedProperty=function(e,t,n){new b(e,n,g.nestedProperty,true).to.have.nested.property(t);};g.notNestedProperty=function(e,t,n){new b(e,n,g.notNestedProperty,true).to.not.have.nested.property(t);};g.nestedPropertyVal=function(e,t,n,r){new b(e,r,g.nestedPropertyVal,true).to.have.nested.property(t,n);};g.notNestedPropertyVal=function(e,t,n,r){new b(e,r,g.notNestedPropertyVal,true).to.not.have.nested.property(t,n);};g.deepNestedPropertyVal=function(e,t,n,r){new b(e,r,g.deepNestedPropertyVal,true).to.have.deep.nested.property(t,n);};g.notDeepNestedPropertyVal=function(e,t,n,r){new b(e,r,g.notDeepNestedPropertyVal,true).to.not.have.deep.nested.property(t,n);};g.lengthOf=function(e,t,n){new b(e,n,g.lengthOf,true).to.have.lengthOf(t);};g.hasAnyKeys=function(e,t,n){new b(e,n,g.hasAnyKeys,true).to.have.any.keys(t);};g.hasAllKeys=function(e,t,n){new b(e,n,g.hasAllKeys,true).to.have.all.keys(t);};g.containsAllKeys=function(e,t,n){new b(e,n,g.containsAllKeys,true).to.contain.all.keys(t);};g.doesNotHaveAnyKeys=function(e,t,n){new b(e,n,g.doesNotHaveAnyKeys,true).to.not.have.any.keys(t);};g.doesNotHaveAllKeys=function(e,t,n){new b(e,n,g.doesNotHaveAllKeys,true).to.not.have.all.keys(t);};g.hasAnyDeepKeys=function(e,t,n){new b(e,n,g.hasAnyDeepKeys,true).to.have.any.deep.keys(t);};g.hasAllDeepKeys=function(e,t,n){new b(e,n,g.hasAllDeepKeys,true).to.have.all.deep.keys(t);};g.containsAllDeepKeys=function(e,t,n){new b(e,n,g.containsAllDeepKeys,true).to.contain.all.deep.keys(t);};g.doesNotHaveAnyDeepKeys=function(e,t,n){new b(e,n,g.doesNotHaveAnyDeepKeys,true).to.not.have.any.deep.keys(t);};g.doesNotHaveAllDeepKeys=function(e,t,n){new b(e,n,g.doesNotHaveAllDeepKeys,true).to.not.have.all.deep.keys(t);};g.throws=function(e,t,n,r){(typeof t=="string"||t instanceof RegExp)&&(n=t,t=null);let o=new b(e,r,g.throws,true).to.throw(t,n);return B(o,"object")};g.doesNotThrow=function(e,t,n,r){(typeof t=="string"||t instanceof RegExp)&&(n=t,t=null),new b(e,r,g.doesNotThrow,true).to.not.throw(t,n);};g.operator=function(e,t,n,r){let o;switch(t){case "==":o=e==n;break;case "===":o=e===n;break;case ">":o=e>n;break;case ">=":o=e>=n;break;case "<":o=e<n;break;case "<=":o=e<=n;break;case "!=":o=e!=n;break;case "!==":o=e!==n;break;default:throw r=r&&r+": ",new V(r+'Invalid operator "'+t+'"',void 0,g.operator)}let i=new b(o,r,g.operator,true);i.assert(B(i,"object")===true,"expected "+W(e)+" to be "+t+" "+W(n),"expected "+W(e)+" to not be "+t+" "+W(n));};g.closeTo=function(e,t,n,r){new b(e,r,g.closeTo,true).to.be.closeTo(t,n);};g.approximately=function(e,t,n,r){new b(e,r,g.approximately,true).to.be.approximately(t,n);};g.sameMembers=function(e,t,n){new b(e,n,g.sameMembers,true).to.have.same.members(t);};g.notSameMembers=function(e,t,n){new b(e,n,g.notSameMembers,true).to.not.have.same.members(t);};g.sameDeepMembers=function(e,t,n){new b(e,n,g.sameDeepMembers,true).to.have.same.deep.members(t);};g.notSameDeepMembers=function(e,t,n){new b(e,n,g.notSameDeepMembers,true).to.not.have.same.deep.members(t);};g.sameOrderedMembers=function(e,t,n){new b(e,n,g.sameOrderedMembers,true).to.have.same.ordered.members(t);};g.notSameOrderedMembers=function(e,t,n){new b(e,n,g.notSameOrderedMembers,true).to.not.have.same.ordered.members(t);};g.sameDeepOrderedMembers=function(e,t,n){new b(e,n,g.sameDeepOrderedMembers,true).to.have.same.deep.ordered.members(t);};g.notSameDeepOrderedMembers=function(e,t,n){new b(e,n,g.notSameDeepOrderedMembers,true).to.not.have.same.deep.ordered.members(t);};g.includeMembers=function(e,t,n){new b(e,n,g.includeMembers,true).to.include.members(t);};g.notIncludeMembers=function(e,t,n){new b(e,n,g.notIncludeMembers,true).to.not.include.members(t);};g.includeDeepMembers=function(e,t,n){new b(e,n,g.includeDeepMembers,true).to.include.deep.members(t);};g.notIncludeDeepMembers=function(e,t,n){new b(e,n,g.notIncludeDeepMembers,true).to.not.include.deep.members(t);};g.includeOrderedMembers=function(e,t,n){new b(e,n,g.includeOrderedMembers,true).to.include.ordered.members(t);};g.notIncludeOrderedMembers=function(e,t,n){new b(e,n,g.notIncludeOrderedMembers,true).to.not.include.ordered.members(t);};g.includeDeepOrderedMembers=function(e,t,n){new b(e,n,g.includeDeepOrderedMembers,true).to.include.deep.ordered.members(t);};g.notIncludeDeepOrderedMembers=function(e,t,n){new b(e,n,g.notIncludeDeepOrderedMembers,true).to.not.include.deep.ordered.members(t);};g.oneOf=function(e,t,n){new b(e,n,g.oneOf,true).to.be.oneOf(t);};g.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,g.isIterable)};g.changes=function(e,t,n,r){arguments.length===3&&typeof t=="function"&&(r=n,n=null),new b(e,r,g.changes,true).to.change(t,n);};g.changesBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);new b(e,o,g.changesBy,true).to.change(t,n).by(r);};g.doesNotChange=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new b(e,r,g.doesNotChange,true).to.not.change(t,n)};g.changesButNotBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);new b(e,o,g.changesButNotBy,true).to.change(t,n).but.not.by(r);};g.increases=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new b(e,r,g.increases,true).to.increase(t,n)};g.increasesBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);new b(e,o,g.increasesBy,true).to.increase(t,n).by(r);};g.doesNotIncrease=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new b(e,r,g.doesNotIncrease,true).to.not.increase(t,n)};g.increasesButNotBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);new b(e,o,g.increasesButNotBy,true).to.increase(t,n).but.not.by(r);};g.decreases=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new b(e,r,g.decreases,true).to.decrease(t,n)};g.decreasesBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);new b(e,o,g.decreasesBy,true).to.decrease(t,n).by(r);};g.doesNotDecrease=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new b(e,r,g.doesNotDecrease,true).to.not.decrease(t,n)};g.doesNotDecreaseBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);return new b(e,o,g.doesNotDecreaseBy,true).to.not.decrease(t,n).by(r)};g.decreasesButNotBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){let i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);new b(e,o,g.decreasesButNotBy,true).to.decrease(t,n).but.not.by(r);};g.ifError=function(e){if(e)throw e};g.isExtensible=function(e,t){new b(e,t,g.isExtensible,true).to.be.extensible;};g.isNotExtensible=function(e,t){new b(e,t,g.isNotExtensible,true).to.not.be.extensible;};g.isSealed=function(e,t){new b(e,t,g.isSealed,true).to.be.sealed;};g.isNotSealed=function(e,t){new b(e,t,g.isNotSealed,true).to.not.be.sealed;};g.isFrozen=function(e,t){new b(e,t,g.isFrozen,true).to.be.frozen;};g.isNotFrozen=function(e,t){new b(e,t,g.isNotFrozen,true).to.not.be.frozen;};g.isEmpty=function(e,t){new b(e,t,g.isEmpty,true).to.be.empty;};g.isNotEmpty=function(e,t){new b(e,t,g.isNotEmpty,true).to.not.be.empty;};g.containsSubset=function(e,t,n){new b(e,n).to.containSubset(t);};g.doesNotContainSubset=function(e,t,n){new b(e,n).to.not.containSubset(t);};var im=[["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"]];for(let[e,t]of im)g[t]=g[e];var Sc=[];function fn(e){let t={use:fn,AssertionError:V,util:Fe,config:Ee,expect:on,assert:g,Assertion:b,...ml};return ~Sc.indexOf(e)||(e(t,Fe),Sc.push(e)),t}a(fn,"use");x(fn,"use");var ur=Symbol.for("matchers-object"),pn=Symbol.for("$$jest-matchers-object"),mn=Symbol.for("expect-global"),wr=Symbol.for("asymmetric-matchers-object"),Ol={toSatisfy(e,t,n){let{printReceived:r,printExpected:o,matcherHint:i}=this.utils,s=t(e);return {pass:s,message:a(()=>s?`${i(".not.toSatisfy","received","")}
62
62
 
63
63
  Expected value to not satisfy:
64
64
  ${n||o(t)}
@@ -69,7 +69,7 @@ Expected value to satisfy:
69
69
  ${n||o(t)}
70
70
 
71
71
  Received:
72
- ${r(e)}`,"message")}},toBeOneOf(e,t){let{equals:n,customTesters:r}=this,{printReceived:o,printExpected:i,matcherHint:s}=this.utils;if(!Array.isArray(t))throw new TypeError(`You must provide an array to ${s(".toBeOneOf")}, not '${typeof t}'.`);let c=t.length===0||t.some(l=>n(l,e,r));return {pass:c,message:a(()=>c?`${s(".not.toBeOneOf","received","")}
72
+ ${r(e)}`,"message")}},toBeOneOf(e,t){let{equals:n,customTesters:r}=this,{printReceived:o,printExpected:i,matcherHint:s}=this.utils,c;if(Array.isArray(t))c=t.length===0||t.some(u=>n(u,e,r));else if(t instanceof Set)c=t.size===0||t.has(e)||[...t].some(u=>n(u,e,r));else throw new TypeError(`You must provide an array or set to ${s(".toBeOneOf")}, not '${typeof t}'.`);return {pass:c,message:a(()=>c?`${s(".not.toBeOneOf","received","")}
73
73
 
74
74
  Expected value to not be one of:
75
75
  ${i(t)}
@@ -80,83 +80,101 @@ Expected value to be one of:
80
80
  ${i(t)}
81
81
 
82
82
  Received:
83
- ${o(e)}`,"message")}}},Rr=ue.green,hs=ue.red,Km=ue.inverse,Xm=ue.bold,xt=ue.dim;function Gm(e,t="received",n="expected",r={}){let{comment:o="",isDirectExpectCall:i=false,isNot:s=false,promise:c="",secondArgument:l="",expectedColor:u=Rr,receivedColor:f=hs,secondArgumentColor:h=Rr}=r,m="",d="expect";return !i&&t!==""&&(m+=xt(`${d}(`)+f(t),d=")"),c!==""&&(m+=xt(`${d}.`)+c,d=""),s&&(m+=`${xt(`${d}.`)}not`,d=""),e.includes(".")?d+=e:(m+=xt(`${d}.`)+e,d=""),n===""?d+="()":(m+=xt(`${d}(`)+u(n),l&&(m+=xt(", ")+h(l)),d=")"),o!==""&&(d+=` // ${o}`),d!==""&&(m+=xt(d)),m}a(Gm,"matcherHint");var Ym="\xB7";function ou(e){return e.replace(/\s+$/gm,t=>Ym.repeat(t.length))}a(ou,"replaceTrailingSpaces");function Hm(e){return hs(ou(Ce(e)))}a(Hm,"printReceived");function Zm(e){return Rr(ou(Ce(e)))}a(Zm,"printExpected");function iu(){return {EXPECTED_COLOR:Rr,RECEIVED_COLOR:hs,INVERTED_COLOR:Km,BOLD_WEIGHT:Xm,DIM_COLOR:xt,diff:Mt,matcherHint:Gm,printReceived:Hm,printExpected:Zm,printDiffOrStringify:dr,printWithType:Qm}}a(iu,"getMatcherUtils");function Qm(e,t,n){let r=yt(t),o=r!=="null"&&r!=="undefined"?`${e} has type: ${r}
84
- `:"",i=`${e} has value: ${n(t)}`;return o+i}a(Qm,"printWithType");function su(e){if(!Array.isArray(e))throw new TypeError(`expect.customEqualityTesters: Must be set to an array of Testers. Was given "${yt(e)}"`);globalThis[vn].customEqualityTesters.push(...e);}a(su,"addCustomEqualityTesters");function ds(){return globalThis[vn].customEqualityTesters}a(ds,"getCustomEqualityTesters");function ee(e,t,n,r){return n=n||[],Tn(e,t,[],[],n,r?au:ng)}a(ee,"equals");function Xl(e){return !!e&&typeof e=="object"&&"asymmetricMatch"in e&&nt("Function",e.asymmetricMatch)}a(Xl,"isAsymmetric");function eg(e,t){let n=Xl(e),r=Xl(t);if(!(n&&r)){if(n)return e.asymmetricMatch(t);if(r)return t.asymmetricMatch(e)}}a(eg,"asymmetricMatch");function Tn(e,t,n,r,o,i){let s=true,c=eg(e,t);if(c!==void 0)return c;let l={equals:ee};for(let g=0;g<o.length;g++){let p=o[g].call(l,e,t,o);if(p!==void 0)return p}if(typeof URL=="function"&&e instanceof URL&&t instanceof URL)return e.href===t.href;if(Object.is(e,t))return true;if(e===null||t===null)return e===t;let u=Object.prototype.toString.call(e);if(u!==Object.prototype.toString.call(t))return false;switch(u){case "[object Boolean]":case "[object String]":case "[object Number]":return typeof e!=typeof t?false:typeof e!="object"&&typeof t!="object"?Object.is(e,t):Object.is(e.valueOf(),t.valueOf());case "[object Date]":{let g=+e,p=+t;return g===p||Number.isNaN(g)&&Number.isNaN(p)}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 false;if(Yl(e)&&Yl(t))return e.isEqualNode(t);let f=n.length;for(;f--;){if(n[f]===e)return r[f]===t;if(r[f]===t)return false}if(n.push(e),r.push(t),u==="[object Array]"&&e.length!==t.length)return false;if(e instanceof Error&&t instanceof Error)try{return tg(e,t,n,r,o,i)}finally{n.pop(),r.pop();}let h=Gl(e,i),m,d=h.length;if(Gl(t,i).length!==d)return false;for(;d--;)if(m=h[d],s=i(t,m)&&Tn(e[m],t[m],n,r,o,i),!s)return false;return n.pop(),r.pop(),s}a(Tn,"eq");function tg(e,t,n,r,o,i){let s=Object.getPrototypeOf(e)===Object.getPrototypeOf(t)&&e.name===t.name&&e.message===t.message;return typeof t.cause<"u"&&s&&(s=Tn(e.cause,t.cause,n,r,o,i)),e instanceof AggregateError&&t instanceof AggregateError&&s&&(s=Tn(e.errors,t.errors,n,r,o,i)),s&&(s=Tn({...e},{...t},n,r,o,i)),s}a(tg,"isErrorEqual");function Gl(e,t){let n=[];for(let r in e)t(e,r)&&n.push(r);return n.concat(Object.getOwnPropertySymbols(e).filter(r=>Object.getOwnPropertyDescriptor(e,r).enumerable))}a(Gl,"keys");function ng(e,t){return au(e,t)&&e[t]!==void 0}a(ng,"hasDefinedKey");function au(e,t){return Object.prototype.hasOwnProperty.call(e,t)}a(au,"hasKey");function nt(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}a(nt,"isA");function Yl(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"&&"nodeName"in e&&typeof e.nodeName=="string"&&"isEqualNode"in e&&typeof e.isEqualNode=="function"}a(Yl,"isDomNode");var cu="@@__IMMUTABLE_KEYED__@@",lu="@@__IMMUTABLE_SET__@@",rg="@@__IMMUTABLE_LIST__@@",Wr="@@__IMMUTABLE_ORDERED__@@",og="@@__IMMUTABLE_RECORD__@@";function ig(e){return !!(e&&e[cu]&&!e[Wr])}a(ig,"isImmutableUnorderedKeyed");function sg(e){return !!(e&&e[lu]&&!e[Wr])}a(sg,"isImmutableUnorderedSet");function Ur(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}a(Ur,"isObjectLiteral");function ag(e){return !!(e&&Ur(e)&&e[rg])}a(ag,"isImmutableList");function cg(e){return !!(e&&Ur(e)&&e[cu]&&e[Wr])}a(cg,"isImmutableOrderedKeyed");function lg(e){return !!(e&&Ur(e)&&e[lu]&&e[Wr])}a(lg,"isImmutableOrderedSet");function ug(e){return !!(e&&Ur(e)&&e[og])}a(ug,"isImmutableRecord");var uu=Symbol.iterator;function Hl(e){return !!(e!=null&&e[uu])}a(Hl,"hasIterator");function Fe(e,t,n=[],r=[],o=[]){if(typeof e!="object"||typeof t!="object"||Array.isArray(e)||Array.isArray(t)||!Hl(e)||!Hl(t))return;if(e.constructor!==t.constructor)return false;let i=r.length;for(;i--;)if(r[i]===e)return o[i]===t;r.push(e),o.push(t);let s=[...n.filter(u=>u!==Fe),c];function c(u,f){return Fe(u,f,[...n],[...r],[...o])}if(a(c,"iterableEqualityWithStack"),e.size!==void 0){if(e.size!==t.size)return false;if(nt("Set",e)||sg(e)){let u=true;for(let f of e)if(!t.has(f)){let h=false;for(let m of t)ee(f,m,s)===true&&(h=true);if(h===false){u=false;break}}return r.pop(),o.pop(),u}else if(nt("Map",e)||ig(e)){let u=true;for(let f of e)if(!t.has(f[0])||!ee(f[1],t.get(f[0]),s)){let h=false;for(let m of t){let d=ee(f[0],m[0],s),g=false;d===true&&(g=ee(f[1],m[1],s)),g===true&&(h=true);}if(h===false){u=false;break}}return r.pop(),o.pop(),u}}let l=t[uu]();for(let u of e){let f=l.next();if(f.done||!ee(u,f.value,s))return false}if(!l.next().done)return false;if(!ag(e)&&!cg(e)&&!lg(e)&&!ug(e)){let u=Object.entries(e),f=Object.entries(t);if(!ee(u,f,s))return false}return r.pop(),o.pop(),true}a(Fe,"iterableEquality");function ps(e,t){return !e||typeof e!="object"||e===Object.prototype?false:Object.prototype.hasOwnProperty.call(e,t)||ps(Object.getPrototypeOf(e),t)}a(ps,"hasPropertyInObject");function fg(e){return ut(e)&&!(e instanceof Error)&&!Array.isArray(e)&&!(e instanceof Date)}a(fg,"isObjectWithKeys");function Lt(e,t,n=[]){let r=n.filter(i=>i!==Lt),o=a((i=new WeakMap)=>(s,c)=>{if(fg(c))return Object.keys(c).every(l=>{if(c[l]!=null&&typeof c[l]=="object"){if(i.has(c[l]))return ee(s[l],c[l],r);i.set(c[l],true);}let u=s!=null&&ps(s,l)&&ee(s[l],c[l],[...r,o(i)]);return i.delete(c[l]),u})},"subsetEqualityWithContext");return o()(e,t)}a(Lt,"subsetEquality");function Zl(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return false}a(Zl,"typeEquality");function Ql(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 false;for(let o=0;o<n.byteLength;o++)if(n.getUint8(o)!==r.getUint8(o))return false;return true}a(Ql,"arrayBufferEquality");function ls(e,t,n=[]){if(!Array.isArray(e)||!Array.isArray(t))return;let r=Object.keys(e),o=Object.keys(t),i=n.filter(s=>s!==ls);return ee(e,t,i,true)&&ee(r,o)}a(ls,"sparseArrayEquality");function hg(e,t="#{this}",n="#{exp}"){let r=`expected ${t} to be ${n} // Object.is equality`;return ["toStrictEqual","toEqual"].includes(e)?`${r}
83
+ ${o(e)}`,"message")}}},fr=ne.green,Ni=ne.red,sm=ne.inverse,am=ne.bold,pt=ne.dim;function cm(e,t="received",n="expected",r={}){let{comment:o="",isDirectExpectCall:i=false,isNot:s=false,promise:c="",secondArgument:u="",expectedColor:l=fr,receivedColor:f=Ni,secondArgumentColor:h=fr}=r,d="",p="expect";return !i&&t!==""&&(d+=pt(`${p}(`)+f(t),p=")"),c!==""&&(d+=pt(`${p}.`)+c,p=""),s&&(d+=`${pt(`${p}.`)}not`,p=""),e.includes(".")?p+=e:(d+=pt(`${p}.`)+e,p=""),n===""?p+="()":(d+=pt(`${p}(`)+l(n),u&&(d+=pt(", ")+h(u)),p=")"),o!==""&&(p+=` // ${o}`),p!==""&&(d+=pt(p)),d}a(cm,"matcherHint");var lm="\xB7";function Il(e){return e.replace(/\s+$/gm,t=>lm.repeat(t.length))}a(Il,"replaceTrailingSpaces");function um(e){return Ni(Il(be(e)))}a(um,"printReceived");function fm(e){return fr(Il(be(e)))}a(fm,"printExpected");function Cl(){return {EXPECTED_COLOR:fr,RECEIVED_COLOR:Ni,INVERTED_COLOR:sm,BOLD_WEIGHT:am,DIM_COLOR:pt,diff:Tt,matcherHint:cm,printReceived:um,printExpected:fm,printDiffOrStringify:Vn,printWithType:hm}}a(Cl,"getMatcherUtils");function hm(e,t,n){let r=vt(t),o=r!=="null"&&r!=="undefined"?`${e} has type: ${r}
84
+ `:"",i=`${e} has value: ${n(t)}`;return o+i}a(hm,"printWithType");function kl(e){if(!Array.isArray(e))throw new TypeError(`expect.customEqualityTesters: Must be set to an array of Testers. Was given "${vt(e)}"`);globalThis[pn].customEqualityTesters.push(...e);}a(kl,"addCustomEqualityTesters");function Ai(){return globalThis[pn].customEqualityTesters}a(Ai,"getCustomEqualityTesters");function K(e,t,n,r){return n=n||[],hn(e,t,[],[],n,r?$l:mm)}a(K,"equals");function bl(e){return !!e&&typeof e=="object"&&"asymmetricMatch"in e&&Ye("Function",e.asymmetricMatch)}a(bl,"isAsymmetric");function dm(e,t,n){let r=bl(e),o=bl(t);if(!(r&&o)){if(r)return e.asymmetricMatch(t,n);if(o)return t.asymmetricMatch(e,n)}}a(dm,"asymmetricMatch");function hn(e,t,n,r,o,i){let s=true,c=dm(e,t,o);if(c!==void 0)return c;let u={equals:K};for(let m=0;m<o.length;m++){let y=o[m].call(u,e,t,o);if(y!==void 0)return y}if(typeof URL=="function"&&e instanceof URL&&t instanceof URL)return e.href===t.href;if(Object.is(e,t))return true;if(e===null||t===null)return e===t;let l=Object.prototype.toString.call(e);if(l!==Object.prototype.toString.call(t))return false;switch(l){case "[object Boolean]":case "[object String]":case "[object Number]":return typeof e!=typeof t?false:typeof e!="object"&&typeof t!="object"?Object.is(e,t):Object.is(e.valueOf(),t.valueOf());case "[object Date]":{let m=+e,y=+t;return m===y||Number.isNaN(m)&&Number.isNaN(y)}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 false;if(vl(e)&&vl(t))return e.isEqualNode(t);let f=n.length;for(;f--;){if(n[f]===e)return r[f]===t;if(r[f]===t)return false}if(n.push(e),r.push(t),l==="[object Array]"&&e.length!==t.length)return false;if(e instanceof Error&&t instanceof Error)try{return pm(e,t,n,r,o,i)}finally{n.pop(),r.pop();}let h=wl(e,i),d,p=h.length;if(wl(t,i).length!==p)return false;for(;p--;)if(d=h[p],s=i(t,d)&&hn(e[d],t[d],n,r,o,i),!s)return false;return n.pop(),r.pop(),s}a(hn,"eq");function pm(e,t,n,r,o,i){let s=Object.getPrototypeOf(e)===Object.getPrototypeOf(t)&&e.name===t.name&&e.message===t.message;return typeof t.cause<"u"&&s&&(s=hn(e.cause,t.cause,n,r,o,i)),e instanceof AggregateError&&t instanceof AggregateError&&s&&(s=hn(e.errors,t.errors,n,r,o,i)),s&&(s=hn({...e},{...t},n,r,o,i)),s}a(pm,"isErrorEqual");function wl(e,t){let n=[];for(let r in e)t(e,r)&&n.push(r);return n.concat(Object.getOwnPropertySymbols(e).filter(r=>Object.getOwnPropertyDescriptor(e,r).enumerable))}a(wl,"keys");function mm(e,t){return $l(e,t)&&e[t]!==void 0}a(mm,"hasDefinedKey");function $l(e,t){return Object.hasOwn(e,t)}a($l,"hasKey");function Ye(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}a(Ye,"isA");function vl(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"&&"nodeName"in e&&typeof e.nodeName=="string"&&"isEqualNode"in e&&typeof e.isEqualNode=="function"}a(vl,"isDomNode");var Nl="@@__IMMUTABLE_KEYED__@@",Al="@@__IMMUTABLE_SET__@@",gm="@@__IMMUTABLE_LIST__@@",vr="@@__IMMUTABLE_ORDERED__@@",ym="@@__IMMUTABLE_RECORD__@@";function bm(e){return !!(e&&e[Nl]&&!e[vr])}a(bm,"isImmutableUnorderedKeyed");function wm(e){return !!(e&&e[Al]&&!e[vr])}a(wm,"isImmutableUnorderedSet");function Sr(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}a(Sr,"isObjectLiteral");function vm(e){return !!(e&&Sr(e)&&e[gm])}a(vm,"isImmutableList");function Sm(e){return !!(e&&Sr(e)&&e[Nl]&&e[vr])}a(Sm,"isImmutableOrderedKeyed");function Tm(e){return !!(e&&Sr(e)&&e[Al]&&e[vr])}a(Tm,"isImmutableOrderedSet");function Em(e){return !!(e&&Sr(e)&&e[ym])}a(Em,"isImmutableRecord");var Pl=Symbol.iterator;function Sl(e){return !!(e!=null&&e[Pl])}a(Sl,"hasIterator");function Ce(e,t,n=[],r=[],o=[]){if(typeof e!="object"||typeof t!="object"||Array.isArray(e)||Array.isArray(t)||!Sl(e)||!Sl(t))return;if(e.constructor!==t.constructor)return false;let i=r.length;for(;i--;)if(r[i]===e)return o[i]===t;r.push(e),o.push(t);let s=[...n.filter(l=>l!==Ce),c];function c(l,f){return Ce(l,f,[...n],[...r],[...o])}if(a(c,"iterableEqualityWithStack"),e.size!==void 0){if(e.size!==t.size)return false;if(Ye("Set",e)||wm(e)){let l=true;for(let f of e)if(!t.has(f)){let h=false;for(let d of t)K(f,d,s)===true&&(h=true);if(h===false){l=false;break}}return r.pop(),o.pop(),l}else if(Ye("Map",e)||bm(e)){let l=true;for(let f of e)if(!t.has(f[0])||!K(f[1],t.get(f[0]),s)){let h=false;for(let d of t){let p=K(f[0],d[0],s),m=false;p===true&&(m=K(f[1],d[1],s)),m===true&&(h=true);}if(h===false){l=false;break}}return r.pop(),o.pop(),l}}let u=t[Pl]();for(let l of e){let f=u.next();if(f.done||!K(l,f.value,s))return false}if(!u.next().done)return false;if(!vm(e)&&!Sm(e)&&!Tm(e)&&!Em(e)){let l=Object.entries(e),f=Object.entries(t);if(!K(l,f,s))return false}return r.pop(),o.pop(),true}a(Ce,"iterableEquality");function Pi(e,t){return !e||typeof e!="object"||e===Object.prototype?false:Object.hasOwn(e,t)||Pi(Object.getPrototypeOf(e),t)}a(Pi,"hasPropertyInObject");function xm(e){return ht(e)&&!(e instanceof Error)&&!Array.isArray(e)&&!(e instanceof Date)}a(xm,"isObjectWithKeys");function Mt(e,t,n=[]){let r=n.filter(i=>i!==Mt),o=a((i=new WeakMap)=>(s,c)=>{if(xm(c))return Object.keys(c).every(u=>{if(c[u]!=null&&typeof c[u]=="object"){if(i.has(c[u]))return K(s[u],c[u],r);i.set(c[u],true);}let l=s!=null&&Pi(s,u)&&K(s[u],c[u],[...r,o(i)]);return i.delete(c[u]),l})},"subsetEqualityWithContext");return o()(e,t)}a(Mt,"subsetEquality");function Tl(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return false}a(Tl,"typeEquality");function El(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 false;for(let o=0;o<n.byteLength;o++)if(n.getUint8(o)!==r.getUint8(o))return false;return true}a(El,"arrayBufferEquality");function Ci(e,t,n=[]){if(!Array.isArray(e)||!Array.isArray(t))return;let r=Object.keys(e),o=Object.keys(t),i=n.filter(s=>s!==Ci);return K(e,t,i,true)&&K(r,o)}a(Ci,"sparseArrayEquality");function Mm(e,t="#{this}",n="#{exp}"){let r=`expected ${t} to be ${n} // Object.is equality`;return ["toStrictEqual","toEqual"].includes(e)?`${r}
85
85
 
86
86
  If it should pass with deep equality, replace "toBe" with "${e}"
87
87
 
88
88
  Expected: ${t}
89
89
  Received: serializes to the same string
90
- `:r}a(hg,"generateToBeMessage");function dg(e,t){return `${t} ${e}${t===1?"":"s"}`}a(dg,"pluralize");function as(e){return [...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>{var n;return (n=Object.getOwnPropertyDescriptor(e,t))===null||n===void 0?void 0:n.enumerable})]}a(as,"getObjectKeys");function pg(e,t,n){let r=0,o=a((i=new WeakMap)=>(s,c)=>{if(Array.isArray(s)){if(Array.isArray(c)&&c.length===s.length)return c.map((l,u)=>o(i)(s[u],l))}else {if(s instanceof Date)return s;if(ut(s)&&ut(c)){if(ee(s,c,[...n,Fe,Lt]))return c;let l={};i.set(s,l),typeof s.constructor=="function"&&typeof s.constructor.name=="string"&&Object.defineProperty(l,"constructor",{enumerable:false,value:s.constructor});for(let u of as(s))ps(c,u)?l[u]=i.has(s[u])?i.get(s[u]):o(i)(s[u],c[u]):i.has(s[u])||(r+=1,ut(s[u])&&(r+=as(s[u]).length),o(i)(s[u],c[u]));if(as(l).length>0)return l}}return s},"getObjectSubsetWithContext");return {subset:o()(e,t),stripped:r}}a(pg,"getObjectSubset");if(!Object.prototype.hasOwnProperty.call(globalThis,Mr)){let e=new WeakMap,t=Object.create(null),n=[],r=Object.create(null);Object.defineProperty(globalThis,Mr,{get:a(()=>e,"get")}),Object.defineProperty(globalThis,vn,{configurable:true,get:a(()=>({state:e.get(globalThis[En]),matchers:t,customEqualityTesters:n}),"get")}),Object.defineProperty(globalThis,zr,{get:a(()=>r,"get")});}function Zt(e){return globalThis[Mr].get(e)}a(Zt,"getState");function Jr(e,t){let n=globalThis[Mr],r=n.get(t)||{},o=Object.defineProperties(r,{...Object.getOwnPropertyDescriptors(r),...Object.getOwnPropertyDescriptors(e)});n.set(t,o);}a(Jr,"setState");var rt=class{static{a(this,"AsymmetricMatcher");}$$typeof=Symbol.for("jest.asymmetricMatcher");constructor(t,n=false){this.sample=t,this.inverse=n;}getMatcherContext(t){return {...Zt(t||globalThis[En]),equals:ee,isNot:this.inverse,customTesters:ds(),utils:{...iu(),diff:Mt,stringify:Ce,iterableEquality:Fe,subsetEquality:Lt}}}};rt.prototype[Symbol.for("chai/inspect")]=function(e){let t=Ce(this,e.depth,{min:true});return t.length<=e.truncate?t:`${this.toString()}{\u2026}`};var jr=class extends rt{static{a(this,"StringContaining");}constructor(t,n=false){if(!nt("String",t))throw new Error("Expected is not a string");super(t,n);}asymmetricMatch(t){let n=nt("String",t)&&t.includes(this.sample);return this.inverse?!n:n}toString(){return `String${this.inverse?"Not":""}Containing`}getExpectedType(){return "string"}},us=class extends rt{static{a(this,"Anything");}asymmetricMatch(t){return t!=null}toString(){return "Anything"}toAsymmetricMatcher(){return "Anything"}},Fr=class extends rt{static{a(this,"ObjectContaining");}constructor(t,n=false){super(t,n);}getPrototype(t){return Object.getPrototypeOf?Object.getPrototypeOf(t):t.constructor.prototype===t?null:t.constructor.prototype}hasProperty(t,n){return t?Object.prototype.hasOwnProperty.call(t,n)?true:this.hasProperty(this.getPrototype(t),n):false}asymmetricMatch(t){if(typeof this.sample!="object")throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let n=true,r=this.getMatcherContext();for(let o in this.sample)if(!this.hasProperty(t,o)||!ee(this.sample[o],t[o],r.customTesters)){n=false;break}return this.inverse?!n:n}toString(){return `Object${this.inverse?"Not":""}Containing`}getExpectedType(){return "object"}},Lr=class extends rt{static{a(this,"ArrayContaining");}constructor(t,n=false){super(t,n);}asymmetricMatch(t){if(!Array.isArray(this.sample))throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);let n=this.getMatcherContext(),r=this.sample.length===0||Array.isArray(t)&&this.sample.every(o=>t.some(i=>ee(o,i,n.customTesters)));return this.inverse?!r:r}toString(){return `Array${this.inverse?"Not":""}Containing`}getExpectedType(){return "array"}},fs=class extends rt{static{a(this,"Any");}constructor(t){if(typeof t>"u")throw new TypeError("any() expects to be passed a constructor function. Please pass one or use anything() to match any object.");super(t);}fnNameFor(t){if(t.name)return t.name;let r=Function.prototype.toString.call(t).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return r?r[1]:"<anonymous>"}asymmetricMatch(t){return this.sample===String?typeof t=="string"||t instanceof String:this.sample===Number?typeof t=="number"||t instanceof Number:this.sample===Function?typeof t=="function"||typeof t=="function":this.sample===Boolean?typeof t=="boolean"||t instanceof Boolean:this.sample===BigInt?typeof t=="bigint"||t instanceof BigInt:this.sample===Symbol?typeof t=="symbol"||t instanceof Symbol:this.sample===Object?typeof t=="object":t 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)}>`}},Dr=class extends rt{static{a(this,"StringMatching");}constructor(t,n=false){if(!nt("String",t)&&!nt("RegExp",t))throw new Error("Expected is not a String or a RegExp");super(new RegExp(t),n);}asymmetricMatch(t){let n=nt("String",t)&&this.sample.test(t);return this.inverse?!n:n}toString(){return `String${this.inverse?"Not":""}Matching`}getExpectedType(){return "string"}},qr=class extends rt{static{a(this,"CloseTo");}precision;constructor(t,n=2,r=false){if(!nt("Number",t))throw new Error("Expected is not a Number");if(!nt("Number",n))throw new Error("Precision is not a Number");super(t),this.inverse=r,this.precision=n;}asymmetricMatch(t){if(!nt("Number",t))return false;let n=false;return t===Number.POSITIVE_INFINITY&&this.sample===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY&&this.sample===Number.NEGATIVE_INFINITY?n=true:n=Math.abs(this.sample-t)<10**-this.precision/2,this.inverse?!n:n}toString(){return `Number${this.inverse?"Not":""}CloseTo`}getExpectedType(){return "number"}toAsymmetricMatcher(){return [this.toString(),this.sample,`(${dg("digit",this.precision)})`].join(" ")}},fu=a((e,t)=>{t.addMethod(e.expect,"anything",()=>new us),t.addMethod(e.expect,"any",n=>new fs(n)),t.addMethod(e.expect,"stringContaining",n=>new jr(n)),t.addMethod(e.expect,"objectContaining",n=>new Fr(n)),t.addMethod(e.expect,"arrayContaining",n=>new Lr(n)),t.addMethod(e.expect,"stringMatching",n=>new Dr(n)),t.addMethod(e.expect,"closeTo",(n,r)=>new qr(n,r)),e.expect.not={stringContaining:a(n=>new jr(n,true),"stringContaining"),objectContaining:a(n=>new Fr(n,true),"objectContaining"),arrayContaining:a(n=>new Lr(n,true),"arrayContaining"),stringMatching:a(n=>new Dr(n,true),"stringMatching"),closeTo:a((n,r)=>new qr(n,r,true),"closeTo")};},"JestAsymmetricMatchers");function eu(e,t,n){let r=e.flag(t,"negate")?"not.":"",o=`${e.flag(t,"_name")}(${n?"expected":""})`,i=e.flag(t,"promise");return `expect(actual)${i?`.${i}`:""}.${r}${o}`}a(eu,"createAssertionMessage");function tu(e,t,n,r){let o=e;if(o&&t instanceof Promise){t=t.finally(()=>{if(!o.promises)return;let s=o.promises.indexOf(t);s!==-1&&o.promises.splice(s,1);}),o.promises||(o.promises=[]),o.promises.push(t);let i=false;return o.onFinished??(o.onFinished=[]),o.onFinished.push(()=>{if(!i){var s;let l=(((s=globalThis.__vitest_worker__)===null||s===void 0?void 0:s.onFilterStackTrace)||(u=>u||""))(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 Vitest 3. ",`Please remember to await the assertion.
91
- `,l].join(""));}}),{then(s,c){return i=true,t.then(s,c)},catch(s){return t.catch(s)},finally(s){return t.finally(s)},[Symbol.toStringTag]:"Promise"}}return t}a(tu,"recordAsyncExpect");function nu(e,t){var n;e.result||(e.result={state:"fail"}),e.result.state="fail",(n=e.result).errors||(n.errors=[]),e.result.errors.push(ci(t));}a(nu,"handleTestError");function hu(e,t,n){return function(...r){if(t!=="withTest"&&e.flag(this,"_name",t),!e.flag(this,"soft"))return n.apply(this,r);let o=e.flag(this,"vitest-test");if(!o)throw new Error("expect.soft() can only be used inside a test");try{let i=n.apply(this,r);return i&&typeof i=="object"&&typeof i.then=="function"?i.then(Yo,s=>{nu(o,s);}):i}catch(i){nu(o,i);}}}a(hu,"wrapAssertion");var du=a((e,t)=>{let{AssertionError:n}=e,r=ds();function o(u,f){let h=a(m=>{let d=hu(t,m,f);t.addMethod(e.Assertion.prototype,m,d),t.addMethod(globalThis[vn].matchers,m,d);},"addMethod");Array.isArray(u)?u.forEach(m=>h(m)):h(u);}a(o,"def"),["throw","throws","Throw"].forEach(u=>{t.overwriteMethod(e.Assertion.prototype,u,f=>function(...h){let m=t.flag(this,"promise"),d=t.flag(this,"object"),g=t.flag(this,"negate");if(m==="rejects")t.flag(this,"object",()=>{throw d});else if(m==="resolves"&&typeof d!="function"){if(g)return;{let p=t.flag(this,"message")||"expected promise to throw an error, but it didn't",S={showDiff:false};throw new n(p,S,t.flag(this,"ssfi"))}}f.apply(this,h);});}),o("withTest",function(u){return t.flag(this,"vitest-test",u),this}),o("toEqual",function(u){let f=t.flag(this,"object"),h=ee(f,u,[...r,Fe]);return this.assert(h,"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",u,f)}),o("toStrictEqual",function(u){let f=t.flag(this,"object"),h=ee(f,u,[...r,Fe,Zl,ls,Ql],true);return this.assert(h,"expected #{this} to strictly equal #{exp}","expected #{this} to not strictly equal #{exp}",u,f)}),o("toBe",function(u){let f=this._obj,h=Object.is(f,u),m="";return h||(ee(f,u,[...r,Fe,Zl,ls,Ql],true)?m="toStrictEqual":ee(f,u,[...r,Fe])&&(m="toEqual")),this.assert(h,hg(m),"expected #{this} not to be #{exp} // Object.is equality",u,f)}),o("toMatchObject",function(u){let f=this._obj,h=ee(f,u,[...r,Fe,Lt]),m=t.flag(this,"negate"),{subset:d,stripped:g}=pg(f,u,r);if(h&&m||!h&&!m){let p=t.getMessage(this,[h,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",u,d,false]),S=g===0?p:`${p}
92
- (${g} matching ${g===1?"property":"properties"} omitted from actual)`;throw new n(S,{showDiff:true,expected:u,actual:d})}}),o("toMatch",function(u){let f=this._obj;if(typeof f!="string")throw new TypeError(`.toMatch() expects to receive a string, but got ${typeof f}`);return this.assert(typeof u=="string"?f.includes(u):f.match(u),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",u,f)}),o("toContain",function(u){let f=this._obj;if(typeof Node<"u"&&f instanceof Node){if(!(u instanceof Node))throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof u}`);return this.assert(f.contains(u),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",u,f)}if(typeof DOMTokenList<"u"&&f instanceof DOMTokenList){Ne(u,"class name",["string"]);let m=t.flag(this,"negate")?f.value.replace(u,"").trim():`${f.value} ${u}`;return this.assert(f.contains(u),`expected "${f.value}" to contain "${u}"`,`expected "${f.value}" not to contain "${u}"`,m,f.value)}return typeof f=="string"&&typeof u=="string"?this.assert(f.includes(u),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",u,f):(f!=null&&typeof f!="string"&&t.flag(this,"object",Array.from(f)),this.contain(u))}),o("toContainEqual",function(u){let f=t.flag(this,"object"),h=Array.from(f).findIndex(m=>ee(m,u,r));this.assert(h!==-1,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",u);}),o("toBeTruthy",function(){let u=t.flag(this,"object");this.assert(!!u,"expected #{this} to be truthy","expected #{this} to not be truthy",true,u);}),o("toBeFalsy",function(){let u=t.flag(this,"object");this.assert(!u,"expected #{this} to be falsy","expected #{this} to not be falsy",false,u);}),o("toBeGreaterThan",function(u){let f=this._obj;return Ne(f,"actual",["number","bigint"]),Ne(u,"expected",["number","bigint"]),this.assert(f>u,`expected ${f} to be greater than ${u}`,`expected ${f} to be not greater than ${u}`,u,f,false)}),o("toBeGreaterThanOrEqual",function(u){let f=this._obj;return Ne(f,"actual",["number","bigint"]),Ne(u,"expected",["number","bigint"]),this.assert(f>=u,`expected ${f} to be greater than or equal to ${u}`,`expected ${f} to be not greater than or equal to ${u}`,u,f,false)}),o("toBeLessThan",function(u){let f=this._obj;return Ne(f,"actual",["number","bigint"]),Ne(u,"expected",["number","bigint"]),this.assert(f<u,`expected ${f} to be less than ${u}`,`expected ${f} to be not less than ${u}`,u,f,false)}),o("toBeLessThanOrEqual",function(u){let f=this._obj;return Ne(f,"actual",["number","bigint"]),Ne(u,"expected",["number","bigint"]),this.assert(f<=u,`expected ${f} to be less than or equal to ${u}`,`expected ${f} to be not less than or equal to ${u}`,u,f,false)}),o("toBeNaN",function(){let u=t.flag(this,"object");this.assert(Number.isNaN(u),"expected #{this} to be NaN","expected #{this} not to be NaN",Number.NaN,u);}),o("toBeUndefined",function(){let u=t.flag(this,"object");this.assert(u===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined",void 0,u);}),o("toBeNull",function(){let u=t.flag(this,"object");this.assert(u===null,"expected #{this} to be null","expected #{this} not to be null",null,u);}),o("toBeDefined",function(){let u=t.flag(this,"object");this.assert(typeof u<"u","expected #{this} to be defined","expected #{this} to be undefined",u);}),o("toBeTypeOf",function(u){let f=typeof this._obj,h=u===f;return this.assert(h,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",u,f)}),o("toBeInstanceOf",function(u){return this.instanceOf(u)}),o("toHaveLength",function(u){return this.have.length(u)}),o("toHaveProperty",function(...u){Array.isArray(u[0])&&(u[0]=u[0].map(I=>String(I).replace(/([.[\]])/g,"\\$1")).join("."));let f=this._obj,[h,m]=u,d=a(()=>Object.prototype.hasOwnProperty.call(f,h)?{value:f[h],exists:true}:t.getPathInfo(f,h),"getValue"),{value:g,exists:p}=d(),S=p&&(u.length===1||ee(m,g,r)),T=u.length===1?"":` with value ${t.objDisplay(m)}`;return this.assert(S,`expected #{this} to have property "${h}"${T}`,`expected #{this} to not have property "${h}"${T}`,m,p?g:void 0)}),o("toBeCloseTo",function(u,f=2){let h=this._obj,m=false,d=0,g=0;return u===Number.POSITIVE_INFINITY&&h===Number.POSITIVE_INFINITY||u===Number.NEGATIVE_INFINITY&&h===Number.NEGATIVE_INFINITY?m=true:(d=10**-f/2,g=Math.abs(h-u),m=g<d),this.assert(m,`expected #{this} to be close to #{exp}, received difference is ${g}, but expected ${d}`,`expected #{this} to not be close to #{exp}, received difference is ${g}, but expected ${d}`,u,h,false)});function i(u){if(!Rt(u._obj))throw new TypeError(`${t.inspect(u._obj)} is not a spy or a call to a spy!`)}a(i,"assertIsMock");function s(u){return i(u),u._obj}a(s,"getSpy"),o(["toHaveBeenCalledTimes","toBeCalledTimes"],function(u){let f=s(this),h=f.getMockName(),m=f.mock.calls.length;return this.assert(m===u,`expected "${h}" to be called #{exp} times, but got ${m} times`,`expected "${h}" to not be called #{exp} times`,u,m,false)}),o("toHaveBeenCalledOnce",function(){let u=s(this),f=u.getMockName(),h=u.mock.calls.length;return this.assert(h===1,`expected "${f}" to be called once, but got ${h} times`,`expected "${f}" to not be called once`,1,h,false)}),o(["toHaveBeenCalled","toBeCalled"],function(){let u=s(this),f=u.getMockName(),h=u.mock.calls.length,m=h>0,d=t.flag(this,"negate"),g=t.getMessage(this,[m,`expected "${f}" to be called at least once`,`expected "${f}" to not be called at all, but actually been called ${h} times`,true,m]);if(m&&d&&(g=cs(u,g)),m&&d||!m&&!d)throw new n(g)});function c(u,f){return u.length===f.length&&u.every((h,m)=>ee(h,f[m],[...r,Fe]))}a(c,"equalsArgumentArray"),o(["toHaveBeenCalledWith","toBeCalledWith"],function(...u){let f=s(this),h=f.getMockName(),m=f.mock.calls.some(p=>c(p,u)),d=t.flag(this,"negate"),g=t.getMessage(this,[m,`expected "${h}" to be called with arguments: #{exp}`,`expected "${h}" to not be called with arguments: #{exp}`,u]);if(m&&d||!m&&!d)throw new n(cs(f,g,u))}),o("toHaveBeenCalledExactlyOnceWith",function(...u){let f=s(this),h=f.getMockName(),m=f.mock.calls.length,g=f.mock.calls.some(T=>c(T,u))&&m===1,p=t.flag(this,"negate"),S=t.getMessage(this,[g,`expected "${h}" to be called once with arguments: #{exp}`,`expected "${h}" to not be called once with arguments: #{exp}`,u]);if(g&&p||!g&&!p)throw new n(cs(f,S,u))}),o(["toHaveBeenNthCalledWith","nthCalledWith"],function(u,...f){let h=s(this),m=h.getMockName(),d=h.mock.calls[u-1],g=h.mock.calls.length,p=u<=g;this.assert(d&&c(d,f),`expected ${xn(u)} "${m}" call to have been called with #{exp}${p?"":`, but called only ${g} times`}`,`expected ${xn(u)} "${m}" call to not have been called with #{exp}`,f,d,p);}),o(["toHaveBeenLastCalledWith","lastCalledWith"],function(...u){let f=s(this),h=f.getMockName(),m=f.mock.calls[f.mock.calls.length-1];this.assert(m&&c(m,u),`expected last "${h}" call to have been called with #{exp}`,`expected last "${h}" call to not have been called with #{exp}`,u,m);});function l(u,f,h){let m=u.mock.invocationCallOrder,d=f.mock.invocationCallOrder;return m.length===0?!h:d.length===0?false:m[0]<d[0]}a(l,"isSpyCalledBeforeAnotherSpy"),o(["toHaveBeenCalledBefore"],function(u,f=true){let h=s(this);if(!Rt(u))throw new TypeError(`${t.inspect(u)} is not a spy or a call to a spy`);this.assert(l(h,u,f),`expected "${h.getMockName()}" to have been called before "${u.getMockName()}"`,`expected "${h.getMockName()}" to not have been called before "${u.getMockName()}"`,u,h);}),o(["toHaveBeenCalledAfter"],function(u,f=true){let h=s(this);if(!Rt(u))throw new TypeError(`${t.inspect(u)} is not a spy or a call to a spy`);this.assert(l(u,h,f),`expected "${h.getMockName()}" to have been called after "${u.getMockName()}"`,`expected "${h.getMockName()}" to not have been called after "${u.getMockName()}"`,u,h);}),o(["toThrow","toThrowError"],function(u){if(typeof u=="string"||typeof u>"u"||u instanceof RegExp)return this.throws(u===""?/^$/:u);let f=this._obj,h=t.flag(this,"promise"),m=t.flag(this,"negate"),d=null;if(h==="rejects")d=f;else if(h==="resolves"&&typeof f!="function"){if(m)return;{let g=t.flag(this,"message")||"expected promise to throw an error, but it didn't",p={showDiff:false};throw new n(g,p,t.flag(this,"ssfi"))}}else {let g=false;try{f();}catch(p){g=true,d=p;}if(!g&&!m){let p=t.flag(this,"message")||"expected function to throw an error, but it didn't",S={showDiff:false};throw new n(p,S,t.flag(this,"ssfi"))}}if(typeof u=="function"){let g=u.name||u.prototype.constructor.name;return this.assert(d&&d instanceof u,`expected error to be instance of ${g}`,`expected error not to be instance of ${g}`,u,d)}if(u instanceof Error){let g=ee(d,u,[...r,Fe]);return this.assert(g,"expected a thrown error to be #{exp}","expected a thrown error not to be #{exp}",u,d)}if(typeof u=="object"&&"asymmetricMatch"in u&&typeof u.asymmetricMatch=="function"){let g=u;return this.assert(d&&g.asymmetricMatch(d),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",g,d)}throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof u}"`)}),[{name:"toHaveResolved",condition:a(u=>u.mock.settledResults.length>0&&u.mock.settledResults.some(({type:f})=>f==="fulfilled"),"condition"),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:a(u=>u.mock.calls.length>0&&u.mock.results.some(({type:f})=>f!=="throw"),"condition"),action:"called"}].forEach(({name:u,condition:f,action:h})=>{o(u,function(){let m=s(this),d=m.getMockName(),g=f(m);this.assert(g,`expected "${d}" to be successfully ${h} at least once`,`expected "${d}" to not be successfully ${h}`,g,!g,false);});}),[{name:"toHaveResolvedTimes",condition:a((u,f)=>u.mock.settledResults.reduce((h,{type:m})=>m==="fulfilled"?++h:h,0)===f,"condition"),action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:a((u,f)=>u.mock.results.reduce((h,{type:m})=>m==="throw"?h:++h,0)===f,"condition"),action:"called"}].forEach(({name:u,condition:f,action:h})=>{o(u,function(m){let d=s(this),g=d.getMockName(),p=f(d,m);this.assert(p,`expected "${g}" to be successfully ${h} ${m} times`,`expected "${g}" to not be successfully ${h} ${m} times`,`expected resolved times: ${m}`,`received resolved times: ${p}`,false);});}),[{name:"toHaveResolvedWith",condition:a((u,f)=>u.mock.settledResults.some(({type:h,value:m})=>h==="fulfilled"&&ee(f,m)),"condition"),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:a((u,f)=>u.mock.results.some(({type:h,value:m})=>h==="return"&&ee(f,m)),"condition"),action:"return"}].forEach(({name:u,condition:f,action:h})=>{o(u,function(m){let d=s(this),g=f(d,m),p=t.flag(this,"negate");if(g&&p||!g&&!p){let S=d.getMockName(),T=t.getMessage(this,[g,`expected "${S}" to ${h} with: #{exp} at least once`,`expected "${S}" to not ${h} with: #{exp}`,m]),I=h==="return"?d.mock.results:d.mock.settledResults;throw new n(mg(d,I,T,m))}});}),[{name:"toHaveLastResolvedWith",condition:a((u,f)=>{let h=u.mock.settledResults[u.mock.settledResults.length-1];return h&&h.type==="fulfilled"&&ee(h.value,f)},"condition"),action:"resolve"},{name:["toHaveLastReturnedWith","lastReturnedWith"],condition:a((u,f)=>{let h=u.mock.results[u.mock.results.length-1];return h&&h.type==="return"&&ee(h.value,f)},"condition"),action:"return"}].forEach(({name:u,condition:f,action:h})=>{o(u,function(m){let d=s(this),g=h==="return"?d.mock.results:d.mock.settledResults,p=g[g.length-1],S=d.getMockName();this.assert(f(d,m),`expected last "${S}" call to ${h} #{exp}`,`expected last "${S}" call to not ${h} #{exp}`,m,p?.value);});}),[{name:"toHaveNthResolvedWith",condition:a((u,f,h)=>{let m=u.mock.settledResults[f-1];return m&&m.type==="fulfilled"&&ee(m.value,h)},"condition"),action:"resolve"},{name:["toHaveNthReturnedWith","nthReturnedWith"],condition:a((u,f,h)=>{let m=u.mock.results[f-1];return m&&m.type==="return"&&ee(m.value,h)},"condition"),action:"return"}].forEach(({name:u,condition:f,action:h})=>{o(u,function(m,d){let g=s(this),p=g.getMockName(),T=(h==="return"?g.mock.results:g.mock.settledResults)[m-1],I=`${xn(m)} call`;this.assert(f(g,m,d),`expected ${I} "${p}" call to ${h} #{exp}`,`expected ${I} "${p}" call to not ${h} #{exp}`,d,T?.value);});}),o("withContext",function(u){for(let f in u)t.flag(this,f,u[f]);return this}),t.addProperty(e.Assertion.prototype,"resolves",a(function(){let f=new Error("resolves");t.flag(this,"promise","resolves"),t.flag(this,"error",f);let h=t.flag(this,"vitest-test"),m=t.flag(this,"object");if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .resolves");if(typeof m?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof m}'.`);let d=new Proxy(this,{get:a((g,p,S)=>{let T=Reflect.get(g,p,S);return typeof T!="function"?T instanceof e.Assertion?d:T:(...I)=>{t.flag(this,"_name",p);let P=m.then(A=>(t.flag(this,"object",A),T.call(this,...I)),A=>{let $=new n(`promise rejected "${t.inspect(A)}" instead of resolving`,{showDiff:false});throw $.cause=A,$.stack=f.stack.replace(f.message,$.message),$});return tu(h,P,eu(t,this,!!I.length),f)}},"get")});return d},"__VITEST_RESOLVES__")),t.addProperty(e.Assertion.prototype,"rejects",a(function(){let f=new Error("rejects");t.flag(this,"promise","rejects"),t.flag(this,"error",f);let h=t.flag(this,"vitest-test"),m=t.flag(this,"object"),d=typeof m=="function"?m():m;if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .rejects");if(typeof d?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof d}'.`);let g=new Proxy(this,{get:a((p,S,T)=>{let I=Reflect.get(p,S,T);return typeof I!="function"?I instanceof e.Assertion?g:I:(...P)=>{t.flag(this,"_name",S);let A=d.then($=>{let j=new n(`promise resolved "${t.inspect($)}" instead of rejecting`,{showDiff:true,expected:new Error("rejected promise"),actual:$});throw j.stack=f.stack.replace(f.message,j.message),j},$=>(t.flag(this,"object",$),I.call(this,...P)));return tu(h,A,eu(t,this,!!P.length),f)}},"get")});return g},"__VITEST_REJECTS__"));},"JestChaiExpect");function xn(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`}a(xn,"ordinalOf");function cs(e,t,n){return e.mock.calls.length&&(t+=ue.gray(`
90
+ `:r}a(Mm,"generateToBeMessage");function _m(e,t){return `${t} ${e}${t===1?"":"s"}`}a(_m,"pluralize");function Oi(e){return [...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>{var n;return (n=Object.getOwnPropertyDescriptor(e,t))===null||n===void 0?void 0:n.enumerable})]}a(Oi,"getObjectKeys");function Om(e,t,n){let r=0,o=a((i=new WeakMap)=>(s,c)=>{if(Array.isArray(s)){if(Array.isArray(c)&&c.length===s.length)return c.map((u,l)=>o(i)(s[l],u))}else {if(s instanceof Date)return s;if(ht(s)&&ht(c)){if(K(s,c,[...n,Ce,Mt]))return c;let u={};i.set(s,u),typeof s.constructor=="function"&&typeof s.constructor.name=="string"&&Object.defineProperty(u,"constructor",{enumerable:false,value:s.constructor});for(let l of Oi(s))Pi(c,l)?u[l]=i.has(s[l])?i.get(s[l]):o(i)(s[l],c[l]):i.has(s[l])||(r+=1,ht(s[l])&&(r+=Oi(s[l]).length),o(i)(s[l],c[l]));if(Oi(u).length>0)return u}}return s},"getObjectSubsetWithContext");return {subset:o()(e,t),stripped:r}}a(Om,"getObjectSubset");function Im(e){return !!e&&(typeof e=="object"||typeof e=="function")&&e["~standard"]&&typeof e["~standard"].validate=="function"}a(Im,"isStandardSchema");if(!Object.hasOwn(globalThis,ur)){let e=new WeakMap,t=Object.create(null),n=[],r=Object.create(null);Object.defineProperty(globalThis,ur,{get:a(()=>e,"get")}),Object.defineProperty(globalThis,pn,{configurable:true,get:a(()=>({state:e.get(globalThis[mn]),matchers:t,customEqualityTesters:n}),"get")}),Object.defineProperty(globalThis,wr,{get:a(()=>r,"get")});}function Dt(e){return globalThis[ur].get(e)}a(Dt,"getState");function Tr(e,t){let n=globalThis[ur],r=n.get(t)||{},o=Object.defineProperties(r,{...Object.getOwnPropertyDescriptors(r),...Object.getOwnPropertyDescriptors(e)});n.set(t,o);}a(Tr,"setState");var Le=class{static{a(this,"AsymmetricMatcher");}$$typeof=Symbol.for("jest.asymmetricMatcher");constructor(t,n=false){this.sample=t,this.inverse=n;}getMatcherContext(t){return {...Dt(t||globalThis[mn]),equals:K,isNot:this.inverse,customTesters:Ai(),utils:{...Cl(),diff:Tt,stringify:be,iterableEquality:Ce,subsetEquality:Mt}}}};Le.prototype[Symbol.for("chai/inspect")]=function(e){let t=be(this,e.depth,{min:true});return t.length<=e.truncate?t:`${this.toString()}{\u2026}`};var hr=class extends Le{static{a(this,"StringContaining");}constructor(t,n=false){if(!Ye("String",t))throw new Error("Expected is not a string");super(t,n);}asymmetricMatch(t){let n=Ye("String",t)&&t.includes(this.sample);return this.inverse?!n:n}toString(){return `String${this.inverse?"Not":""}Containing`}getExpectedType(){return "string"}},ki=class extends Le{static{a(this,"Anything");}asymmetricMatch(t){return t!=null}toString(){return "Anything"}toAsymmetricMatcher(){return "Anything"}},dr=class extends Le{static{a(this,"ObjectContaining");}constructor(t,n=false){super(t,n);}getPrototype(t){return Object.getPrototypeOf?Object.getPrototypeOf(t):t.constructor.prototype===t?null:t.constructor.prototype}hasProperty(t,n){return t?Object.hasOwn(t,n)?true:this.hasProperty(this.getPrototype(t),n):false}getProperties(t){return [...Object.keys(t),...Object.getOwnPropertySymbols(t).filter(n=>{var r;return (r=Object.getOwnPropertyDescriptor(t,n))===null||r===void 0?void 0:r.enumerable})]}asymmetricMatch(t,n){if(typeof this.sample!="object")throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let r=true,o=this.getProperties(this.sample);for(let c of o){var i,s;if(!this.hasProperty(t,c)){r=false;break}let u=((i=Object.getOwnPropertyDescriptor(this.sample,c))===null||i===void 0?void 0:i.value)??this.sample[c],l=((s=Object.getOwnPropertyDescriptor(t,c))===null||s===void 0?void 0:s.value)??t[c];if(!K(u,l,n)){r=false;break}}return this.inverse?!r:r}toString(){return `Object${this.inverse?"Not":""}Containing`}getExpectedType(){return "object"}},pr=class extends Le{static{a(this,"ArrayContaining");}constructor(t,n=false){super(t,n);}asymmetricMatch(t,n){if(!Array.isArray(this.sample))throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);let r=this.sample.length===0||Array.isArray(t)&&this.sample.every(o=>t.some(i=>K(o,i,n)));return this.inverse?!r:r}toString(){return `Array${this.inverse?"Not":""}Containing`}getExpectedType(){return "array"}},$i=class extends Le{static{a(this,"Any");}constructor(t){if(typeof t>"u")throw new TypeError("any() expects to be passed a constructor function. Please pass one or use anything() to match any object.");super(t);}fnNameFor(t){if(t.name)return t.name;let r=Function.prototype.toString.call(t).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return r?r[1]:"<anonymous>"}asymmetricMatch(t){return this.sample===String?typeof t=="string"||t instanceof String:this.sample===Number?typeof t=="number"||t instanceof Number:this.sample===Function?typeof t=="function"||typeof t=="function":this.sample===Boolean?typeof t=="boolean"||t instanceof Boolean:this.sample===BigInt?typeof t=="bigint"||t instanceof BigInt:this.sample===Symbol?typeof t=="symbol"||t instanceof Symbol:this.sample===Object?typeof t=="object":t 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)}>`}},mr=class extends Le{static{a(this,"StringMatching");}constructor(t,n=false){if(!Ye("String",t)&&!Ye("RegExp",t))throw new Error("Expected is not a String or a RegExp");super(new RegExp(t),n);}asymmetricMatch(t){let n=Ye("String",t)&&this.sample.test(t);return this.inverse?!n:n}toString(){return `String${this.inverse?"Not":""}Matching`}getExpectedType(){return "string"}},gr=class extends Le{static{a(this,"CloseTo");}precision;constructor(t,n=2,r=false){if(!Ye("Number",t))throw new Error("Expected is not a Number");if(!Ye("Number",n))throw new Error("Precision is not a Number");super(t),this.inverse=r,this.precision=n;}asymmetricMatch(t){if(!Ye("Number",t))return false;let n=false;return t===Number.POSITIVE_INFINITY&&this.sample===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY&&this.sample===Number.NEGATIVE_INFINITY?n=true:n=Math.abs(this.sample-t)<10**-this.precision/2,this.inverse?!n:n}toString(){return `Number${this.inverse?"Not":""}CloseTo`}getExpectedType(){return "number"}toAsymmetricMatcher(){return [this.toString(),this.sample,`(${_m("digit",this.precision)})`].join(" ")}},yr=class extends Le{static{a(this,"SchemaMatching");}result;constructor(t,n=false){if(!Im(t))throw new TypeError("SchemaMatching expected to receive a Standard Schema.");super(t,n);}asymmetricMatch(t){let n=this.sample["~standard"].validate(t);if(n instanceof Promise)throw new TypeError("Async schema validation is not supported in asymmetric matchers.");this.result=n;let r=!this.result.issues||this.result.issues.length===0;return this.inverse?!r:r}toString(){return `Schema${this.inverse?"Not":""}Matching`}getExpectedType(){return "object"}toAsymmetricMatcher(){var t;let{utils:n}=this.getMatcherContext();return (((t=this.result)===null||t===void 0?void 0:t.issues)||[]).length>0?`${this.toString()} ${n.stringify(this.result,void 0,{printBasicPrototype:false})}`:this.toString()}},jl=a((e,t)=>{t.addMethod(e.expect,"anything",()=>new ki),t.addMethod(e.expect,"any",n=>new $i(n)),t.addMethod(e.expect,"stringContaining",n=>new hr(n)),t.addMethod(e.expect,"objectContaining",n=>new dr(n)),t.addMethod(e.expect,"arrayContaining",n=>new pr(n)),t.addMethod(e.expect,"stringMatching",n=>new mr(n)),t.addMethod(e.expect,"closeTo",(n,r)=>new gr(n,r)),t.addMethod(e.expect,"schemaMatching",n=>new yr(n)),e.expect.not={stringContaining:a(n=>new hr(n,true),"stringContaining"),objectContaining:a(n=>new dr(n,true),"objectContaining"),arrayContaining:a(n=>new pr(n,true),"arrayContaining"),stringMatching:a(n=>new mr(n,true),"stringMatching"),closeTo:a((n,r)=>new gr(n,r,true),"closeTo"),schemaMatching:a(n=>new yr(n,true),"schemaMatching")};},"JestAsymmetricMatchers");function xl(e,t,n){let r=e.flag(t,"negate")?"not.":"",o=`${e.flag(t,"_name")}(${n?"expected":""})`,i=e.flag(t,"promise");return `expect(actual)${i?`.${i}`:""}.${r}${o}`}a(xl,"createAssertionMessage");function Ml(e,t,n,r){let o=e;if(o&&t instanceof Promise){t=t.finally(()=>{if(!o.promises)return;let s=o.promises.indexOf(t);s!==-1&&o.promises.splice(s,1);}),o.promises||(o.promises=[]),o.promises.push(t);let i=false;return o.onFinished??(o.onFinished=[]),o.onFinished.push(()=>{if(!i){var s;let u=(((s=globalThis.__vitest_worker__)===null||s===void 0?void 0:s.onFilterStackTrace)||(l=>l||""))(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 Vitest 3. ",`Please remember to await the assertion.
91
+ `,u].join(""));}}),{then(s,c){return i=true,t.then(s,c)},catch(s){return t.catch(s)},finally(s){return t.finally(s)},[Symbol.toStringTag]:"Promise"}}return t}a(Ml,"recordAsyncExpect");function _l(e,t){var n;e.result||(e.result={state:"fail"}),e.result.state="fail",(n=e.result).errors||(n.errors=[]),e.result.errors.push(Mo(t));}a(_l,"handleTestError");function Rl(e,t,n){return function(...r){if(t!=="withTest"&&e.flag(this,"_name",t),!e.flag(this,"soft"))return n.apply(this,r);let o=e.flag(this,"vitest-test");if(!o)throw new Error("expect.soft() can only be used inside a test");try{let i=n.apply(this,r);return i&&typeof i=="object"&&typeof i.then=="function"?i.then(Ia,s=>{_l(o,s);}):i}catch(i){_l(o,i);}}}a(Rl,"wrapAssertion");var Fl=a((e,t)=>{let{AssertionError:n}=e,r=Ai();function o(l,f){let h=a(d=>{let p=Rl(t,d,f);t.addMethod(e.Assertion.prototype,d,p),t.addMethod(globalThis[pn].matchers,d,p);},"addMethod");Array.isArray(l)?l.forEach(d=>h(d)):h(l);}a(o,"def"),["throw","throws","Throw"].forEach(l=>{t.overwriteMethod(e.Assertion.prototype,l,f=>function(...h){let d=t.flag(this,"promise"),p=t.flag(this,"object"),m=t.flag(this,"negate");if(d==="rejects")t.flag(this,"object",()=>{throw p});else if(d==="resolves"&&typeof p!="function"){if(m)return;{let y=t.flag(this,"message")||"expected promise to throw an error, but it didn't",v={showDiff:false};throw new n(y,v,t.flag(this,"ssfi"))}}f.apply(this,h);});}),o("withTest",function(l){return t.flag(this,"vitest-test",l),this}),o("toEqual",function(l){let f=t.flag(this,"object"),h=K(f,l,[...r,Ce]);return this.assert(h,"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",l,f)}),o("toStrictEqual",function(l){let f=t.flag(this,"object"),h=K(f,l,[...r,Ce,Tl,Ci,El],true);return this.assert(h,"expected #{this} to strictly equal #{exp}","expected #{this} to not strictly equal #{exp}",l,f)}),o("toBe",function(l){let f=this._obj,h=Object.is(f,l),d="";return h||(K(f,l,[...r,Ce,Tl,Ci,El],true)?d="toStrictEqual":K(f,l,[...r,Ce])&&(d="toEqual")),this.assert(h,Mm(d),"expected #{this} not to be #{exp} // Object.is equality",l,f)}),o("toMatchObject",function(l){let f=this._obj,h=K(f,l,[...r,Ce,Mt]),d=t.flag(this,"negate"),{subset:p,stripped:m}=Om(f,l,r);if(h&&d||!h&&!d){let y=t.getMessage(this,[h,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",l,p,false]),v=m===0?y:`${y}
92
+ (${m} matching ${m===1?"property":"properties"} omitted from actual)`;throw new n(v,{showDiff:true,expected:l,actual:p})}}),o("toMatch",function(l){let f=this._obj;if(typeof f!="string")throw new TypeError(`.toMatch() expects to receive a string, but got ${typeof f}`);return this.assert(typeof l=="string"?f.includes(l):f.match(l),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",l,f)}),o("toContain",function(l){let f=this._obj;if(typeof Node<"u"&&f instanceof Node){if(!(l instanceof Node))throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof l}`);return this.assert(f.contains(l),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",l,f)}if(typeof DOMTokenList<"u"&&f instanceof DOMTokenList){me(l,"class name",["string"]);let d=t.flag(this,"negate")?f.value.replace(l,"").trim():`${f.value} ${l}`;return this.assert(f.contains(l),`expected "${f.value}" to contain "${l}"`,`expected "${f.value}" not to contain "${l}"`,d,f.value)}return typeof f=="string"&&typeof l=="string"?this.assert(f.includes(l),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",l,f):(f!=null&&typeof f!="string"&&t.flag(this,"object",Array.from(f)),this.contain(l))}),o("toContainEqual",function(l){let f=t.flag(this,"object"),h=Array.from(f).findIndex(d=>K(d,l,r));this.assert(h!==-1,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",l);}),o("toBeTruthy",function(){let l=t.flag(this,"object");this.assert(!!l,"expected #{this} to be truthy","expected #{this} to not be truthy",true,l);}),o("toBeFalsy",function(){let l=t.flag(this,"object");this.assert(!l,"expected #{this} to be falsy","expected #{this} to not be falsy",false,l);}),o("toBeGreaterThan",function(l){let f=this._obj;return me(f,"actual",["number","bigint"]),me(l,"expected",["number","bigint"]),this.assert(f>l,`expected ${f} to be greater than ${l}`,`expected ${f} to be not greater than ${l}`,l,f,false)}),o("toBeGreaterThanOrEqual",function(l){let f=this._obj;return me(f,"actual",["number","bigint"]),me(l,"expected",["number","bigint"]),this.assert(f>=l,`expected ${f} to be greater than or equal to ${l}`,`expected ${f} to be not greater than or equal to ${l}`,l,f,false)}),o("toBeLessThan",function(l){let f=this._obj;return me(f,"actual",["number","bigint"]),me(l,"expected",["number","bigint"]),this.assert(f<l,`expected ${f} to be less than ${l}`,`expected ${f} to be not less than ${l}`,l,f,false)}),o("toBeLessThanOrEqual",function(l){let f=this._obj;return me(f,"actual",["number","bigint"]),me(l,"expected",["number","bigint"]),this.assert(f<=l,`expected ${f} to be less than or equal to ${l}`,`expected ${f} to be not less than or equal to ${l}`,l,f,false)}),o("toBeNaN",function(){let l=t.flag(this,"object");this.assert(Number.isNaN(l),"expected #{this} to be NaN","expected #{this} not to be NaN",Number.NaN,l);}),o("toBeUndefined",function(){let l=t.flag(this,"object");this.assert(l===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined",void 0,l);}),o("toBeNull",function(){let l=t.flag(this,"object");this.assert(l===null,"expected #{this} to be null","expected #{this} not to be null",null,l);}),o("toBeNullable",function(){let l=t.flag(this,"object");this.assert(l==null,"expected #{this} to be nullish","expected #{this} not to be nullish",null,l);}),o("toBeDefined",function(){let l=t.flag(this,"object");this.assert(typeof l<"u","expected #{this} to be defined","expected #{this} to be undefined",l);}),o("toBeTypeOf",function(l){let f=typeof this._obj,h=l===f;return this.assert(h,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",l,f)}),o("toBeInstanceOf",function(l){return this.instanceOf(l)}),o("toHaveLength",function(l){return this.have.length(l)}),o("toHaveProperty",function(...l){Array.isArray(l[0])&&(l[0]=l[0].map(M=>String(M).replace(/([.[\]])/g,"\\$1")).join("."));let f=this._obj,[h,d]=l,p=a(()=>Object.hasOwn(f,h)?{value:f[h],exists:true}:t.getPathInfo(f,h),"getValue"),{value:m,exists:y}=p(),v=y&&(l.length===1||K(d,m,r)),S=l.length===1?"":` with value ${t.objDisplay(d)}`;return this.assert(v,`expected #{this} to have property "${h}"${S}`,`expected #{this} to not have property "${h}"${S}`,d,y?m:void 0)}),o("toBeCloseTo",function(l,f=2){let h=this._obj,d=false,p=0,m=0;return l===Number.POSITIVE_INFINITY&&h===Number.POSITIVE_INFINITY||l===Number.NEGATIVE_INFINITY&&h===Number.NEGATIVE_INFINITY?d=true:(p=10**-f/2,m=Math.abs(h-l),d=m<p),this.assert(d,`expected #{this} to be close to #{exp}, received difference is ${m}, but expected ${p}`,`expected #{this} to not be close to #{exp}, received difference is ${m}, but expected ${p}`,l,h,false)});function i(l){if(!ot(l._obj))throw new TypeError(`${t.inspect(l._obj)} is not a spy or a call to a spy!`)}a(i,"assertIsMock");function s(l){return i(l),l._obj}a(s,"getSpy"),o(["toHaveBeenCalledTimes","toBeCalledTimes"],function(l){let f=s(this),h=f.getMockName(),d=f.mock.calls.length;return this.assert(d===l,`expected "${h}" to be called #{exp} times, but got ${d} times`,`expected "${h}" to not be called #{exp} times`,l,d,false)}),o("toHaveBeenCalledOnce",function(){let l=s(this),f=l.getMockName(),h=l.mock.calls.length;return this.assert(h===1,`expected "${f}" to be called once, but got ${h} times`,`expected "${f}" to not be called once`,1,h,false)}),o(["toHaveBeenCalled","toBeCalled"],function(){let l=s(this),f=l.getMockName(),h=l.mock.calls.length,d=h>0,p=t.flag(this,"negate"),m=t.getMessage(this,[d,`expected "${f}" to be called at least once`,`expected "${f}" to not be called at all, but actually been called ${h} times`,true,d]);if(d&&p&&(m=Ii(l,m)),d&&p||!d&&!p)throw new n(m)});function c(l,f){return l.length===f.length&&l.every((h,d)=>K(h,f[d],[...r,Ce]))}a(c,"equalsArgumentArray"),o(["toHaveBeenCalledWith","toBeCalledWith"],function(...l){let f=s(this),h=f.getMockName(),d=f.mock.calls.some(y=>c(y,l)),p=t.flag(this,"negate"),m=t.getMessage(this,[d,`expected "${h}" to be called with arguments: #{exp}`,`expected "${h}" to not be called with arguments: #{exp}`,l]);if(d&&p||!d&&!p)throw new n(Ii(f,m,l))}),o("toHaveBeenCalledExactlyOnceWith",function(...l){let f=s(this),h=f.getMockName(),d=f.mock.calls.length,m=f.mock.calls.some(S=>c(S,l))&&d===1,y=t.flag(this,"negate"),v=t.getMessage(this,[m,`expected "${h}" to be called once with arguments: #{exp}`,`expected "${h}" to not be called once with arguments: #{exp}`,l]);if(m&&y||!m&&!y)throw new n(Ii(f,v,l))}),o(["toHaveBeenNthCalledWith","nthCalledWith"],function(l,...f){let h=s(this),d=h.getMockName(),p=h.mock.calls[l-1],m=h.mock.calls.length,y=l<=m;this.assert(p&&c(p,f),`expected ${dn(l)} "${d}" call to have been called with #{exp}${y?"":`, but called only ${m} times`}`,`expected ${dn(l)} "${d}" call to not have been called with #{exp}`,f,p,y);}),o(["toHaveBeenLastCalledWith","lastCalledWith"],function(...l){let f=s(this),h=f.getMockName(),d=f.mock.calls.at(-1);this.assert(d&&c(d,l),`expected last "${h}" call to have been called with #{exp}`,`expected last "${h}" call to not have been called with #{exp}`,l,d);});function u(l,f,h){let d=l.mock.invocationCallOrder,p=f.mock.invocationCallOrder;return d.length===0?!h:p.length===0?false:d[0]<p[0]}a(u,"isSpyCalledBeforeAnotherSpy"),o(["toHaveBeenCalledBefore"],function(l,f=true){let h=s(this);if(!ot(l))throw new TypeError(`${t.inspect(l)} is not a spy or a call to a spy`);this.assert(u(h,l,f),`expected "${h.getMockName()}" to have been called before "${l.getMockName()}"`,`expected "${h.getMockName()}" to not have been called before "${l.getMockName()}"`,l,h);}),o(["toHaveBeenCalledAfter"],function(l,f=true){let h=s(this);if(!ot(l))throw new TypeError(`${t.inspect(l)} is not a spy or a call to a spy`);this.assert(u(l,h,f),`expected "${h.getMockName()}" to have been called after "${l.getMockName()}"`,`expected "${h.getMockName()}" to not have been called after "${l.getMockName()}"`,l,h);}),o(["toThrow","toThrowError"],function(l){if(typeof l=="string"||typeof l>"u"||l instanceof RegExp)return this.throws(l===""?/^$/:l);let f=this._obj,h=t.flag(this,"promise"),d=t.flag(this,"negate"),p=null;if(h==="rejects")p=f;else if(h==="resolves"&&typeof f!="function"){if(d)return;{let m=t.flag(this,"message")||"expected promise to throw an error, but it didn't",y={showDiff:false};throw new n(m,y,t.flag(this,"ssfi"))}}else {let m=false;try{f();}catch(y){m=true,p=y;}if(!m&&!d){let y=t.flag(this,"message")||"expected function to throw an error, but it didn't",v={showDiff:false};throw new n(y,v,t.flag(this,"ssfi"))}}if(typeof l=="function"){let m=l.name||l.prototype.constructor.name;return this.assert(p&&p instanceof l,`expected error to be instance of ${m}`,`expected error not to be instance of ${m}`,l,p)}if(l instanceof Error){let m=K(p,l,[...r,Ce]);return this.assert(m,"expected a thrown error to be #{exp}","expected a thrown error not to be #{exp}",l,p)}if(typeof l=="object"&&"asymmetricMatch"in l&&typeof l.asymmetricMatch=="function"){let m=l;return this.assert(p&&m.asymmetricMatch(p),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",m,p)}throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof l}"`)}),[{name:"toHaveResolved",condition:a(l=>l.mock.settledResults.length>0&&l.mock.settledResults.some(({type:f})=>f==="fulfilled"),"condition"),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:a(l=>l.mock.calls.length>0&&l.mock.results.some(({type:f})=>f!=="throw"),"condition"),action:"called"}].forEach(({name:l,condition:f,action:h})=>{o(l,function(){let d=s(this),p=d.getMockName(),m=f(d);this.assert(m,`expected "${p}" to be successfully ${h} at least once`,`expected "${p}" to not be successfully ${h}`,m,!m,false);});}),[{name:"toHaveResolvedTimes",condition:a((l,f)=>l.mock.settledResults.reduce((h,{type:d})=>d==="fulfilled"?++h:h,0)===f,"condition"),action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:a((l,f)=>l.mock.results.reduce((h,{type:d})=>d==="throw"?h:++h,0)===f,"condition"),action:"called"}].forEach(({name:l,condition:f,action:h})=>{o(l,function(d){let p=s(this),m=p.getMockName(),y=f(p,d);this.assert(y,`expected "${m}" to be successfully ${h} ${d} times`,`expected "${m}" to not be successfully ${h} ${d} times`,`expected resolved times: ${d}`,`received resolved times: ${y}`,false);});}),[{name:"toHaveResolvedWith",condition:a((l,f)=>l.mock.settledResults.some(({type:h,value:d})=>h==="fulfilled"&&K(f,d)),"condition"),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:a((l,f)=>l.mock.results.some(({type:h,value:d})=>h==="return"&&K(f,d)),"condition"),action:"return"}].forEach(({name:l,condition:f,action:h})=>{o(l,function(d){let p=s(this),m=f(p,d),y=t.flag(this,"negate");if(m&&y||!m&&!y){let v=p.getMockName(),S=t.getMessage(this,[m,`expected "${v}" to ${h} with: #{exp} at least once`,`expected "${v}" to not ${h} with: #{exp}`,d]),M=h==="return"?p.mock.results:p.mock.settledResults;throw new n(Cm(p,M,S,d))}});}),[{name:"toHaveLastResolvedWith",condition:a((l,f)=>{let h=l.mock.settledResults.at(-1);return !!(h&&h.type==="fulfilled"&&K(h.value,f))},"condition"),action:"resolve"},{name:["toHaveLastReturnedWith","lastReturnedWith"],condition:a((l,f)=>{let h=l.mock.results.at(-1);return !!(h&&h.type==="return"&&K(h.value,f))},"condition"),action:"return"}].forEach(({name:l,condition:f,action:h})=>{o(l,function(d){let p=s(this),y=(h==="return"?p.mock.results:p.mock.settledResults).at(-1),v=p.getMockName();this.assert(f(p,d),`expected last "${v}" call to ${h} #{exp}`,`expected last "${v}" call to not ${h} #{exp}`,d,y?.value);});}),[{name:"toHaveNthResolvedWith",condition:a((l,f,h)=>{let d=l.mock.settledResults[f-1];return d&&d.type==="fulfilled"&&K(d.value,h)},"condition"),action:"resolve"},{name:["toHaveNthReturnedWith","nthReturnedWith"],condition:a((l,f,h)=>{let d=l.mock.results[f-1];return d&&d.type==="return"&&K(d.value,h)},"condition"),action:"return"}].forEach(({name:l,condition:f,action:h})=>{o(l,function(d,p){let m=s(this),y=m.getMockName(),S=(h==="return"?m.mock.results:m.mock.settledResults)[d-1],M=`${dn(d)} call`;this.assert(f(m,d,p),`expected ${M} "${y}" call to ${h} #{exp}`,`expected ${M} "${y}" call to not ${h} #{exp}`,p,S?.value);});}),o("withContext",function(l){for(let f in l)t.flag(this,f,l[f]);return this}),t.addProperty(e.Assertion.prototype,"resolves",a(function(){let f=new Error("resolves");t.flag(this,"promise","resolves"),t.flag(this,"error",f);let h=t.flag(this,"vitest-test"),d=t.flag(this,"object");if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .resolves");if(typeof d?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof d}'.`);let p=new Proxy(this,{get:a((m,y,v)=>{let S=Reflect.get(m,y,v);return typeof S!="function"?S instanceof e.Assertion?p:S:(...M)=>{t.flag(this,"_name",y);let $=d.then(O=>(t.flag(this,"object",O),S.call(this,...M)),O=>{let C=new n(`promise rejected "${t.inspect(O)}" instead of resolving`,{showDiff:false});throw C.cause=O,C.stack=f.stack.replace(f.message,C.message),C});return Ml(h,$,xl(t,this,!!M.length),f)}},"get")});return p},"__VITEST_RESOLVES__")),t.addProperty(e.Assertion.prototype,"rejects",a(function(){let f=new Error("rejects");t.flag(this,"promise","rejects"),t.flag(this,"error",f);let h=t.flag(this,"vitest-test"),d=t.flag(this,"object"),p=typeof d=="function"?d():d;if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .rejects");if(typeof p?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof p}'.`);let m=new Proxy(this,{get:a((y,v,S)=>{let M=Reflect.get(y,v,S);return typeof M!="function"?M instanceof e.Assertion?m:M:(...$)=>{t.flag(this,"_name",v);let O=p.then(C=>{let N=new n(`promise resolved "${t.inspect(C)}" instead of rejecting`,{showDiff:true,expected:new Error("rejected promise"),actual:C});throw N.stack=f.stack.replace(f.message,N.message),N},C=>(t.flag(this,"object",C),M.call(this,...$)));return Ml(h,O,xl(t,this,!!$.length),f)}},"get")});return m},"__VITEST_REJECTS__"));},"JestChaiExpect");function dn(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`}a(dn,"ordinalOf");function Ii(e,t,n){return e.mock.calls.length&&(t+=ne.gray(`
93
93
 
94
94
  Received:
95
95
 
96
- ${e.mock.calls.map((r,o)=>{let i=ue.bold(` ${xn(o+1)} ${e.getMockName()} call:
96
+ ${e.mock.calls.map((r,o)=>{let i=ne.bold(` ${dn(o+1)} ${e.getMockName()} call:
97
97
 
98
- `);return n?i+=Mt(n,r,{omitAnnotationLines:true}):i+=Ce(r).split(`
98
+ `);return n?i+=Tt(n,r,{omitAnnotationLines:true}):i+=be(r).split(`
99
99
  `).map(s=>` ${s}`).join(`
100
100
  `),i+=`
101
101
  `,i}).join(`
102
- `)}`)),t+=ue.gray(`
102
+ `)}`)),t+=ne.gray(`
103
103
 
104
- Number of calls: ${ue.bold(e.mock.calls.length)}
105
- `),t}a(cs,"formatCalls");function mg(e,t,n,r){return t.length&&(n+=ue.gray(`
104
+ Number of calls: ${ne.bold(e.mock.calls.length)}
105
+ `),t}a(Ii,"formatCalls");function Cm(e,t,n,r){return t.length&&(n+=ne.gray(`
106
106
 
107
107
  Received:
108
108
 
109
- ${t.map((o,i)=>{let s=ue.bold(` ${xn(i+1)} ${e.getMockName()} call return:
109
+ ${t.map((o,i)=>{let s=ne.bold(` ${dn(i+1)} ${e.getMockName()} call return:
110
110
 
111
- `);return r?s+=Mt(r,o.value,{omitAnnotationLines:true}):s+=Ce(o).split(`
111
+ `);return r?s+=Tt(r,o.value,{omitAnnotationLines:true}):s+=be(o).split(`
112
112
  `).map(c=>` ${c}`).join(`
113
113
  `),s+=`
114
114
  `,s}).join(`
115
- `)}`)),n+=ue.gray(`
115
+ `)}`)),n+=ne.gray(`
116
116
 
117
- Number of calls: ${ue.bold(e.mock.calls.length)}
118
- `),n}a(mg,"formatReturns");function gg(e,t){let n=e._obj,r=Se.flag(e,"negate"),o=Se.flag(e,"promise")||"",i={...iu(),diff:Mt,stringify:Ce,iterableEquality:Fe,subsetEquality:Lt};return {state:{...Zt(t),customTesters:ds(),isNot:r,utils:i,promise:o,equals:ee,suppressedErrors:[],soft:Se.flag(e,"soft"),poll:Se.flag(e,"poll")},isNot:r,obj:n}}a(gg,"getMatcherState");var Br=class extends Error{static{a(this,"JestExtendError");}constructor(t,n,r){super(t),this.actual=n,this.expected=r;}};function yg(e,t,n){return (r,o)=>{Object.entries(n).forEach(([i,s])=>{function c(...h){let{state:m,isNot:d,obj:g}=gg(this,t),p=s.call(m,g,...h);if(p&&typeof p=="object"&&typeof p.then=="function")return p.then(({pass:$,message:j,actual:k,expected:O})=>{if($&&d||!$&&!d)throw new Br(j(),k,O)});let{pass:S,message:T,actual:I,expected:P}=p;if(S&&d||!S&&!d)throw new Br(T(),I,P)}a(c,"expectWrapper");let l=hu(o,i,c);o.addMethod(globalThis[vn].matchers,i,l),o.addMethod(e.Assertion.prototype,i,l);class u extends rt{static{a(this,"CustomMatcher");}constructor(m=false,...d){super(d,m);}asymmetricMatch(m){let{pass:d}=s.call(this.getMatcherContext(t),m,...this.sample);return this.inverse?!d:d}toString(){return `${this.inverse?"not.":""}${i}`}getExpectedType(){return "any"}toAsymmetricMatcher(){return `${this.toString()}<${this.sample.map(m=>Ce(m)).join(", ")}>`}}let f=a((...h)=>new u(false,...h),"customMatcher");Object.defineProperty(t,i,{configurable:true,enumerable:true,value:f,writable:true}),Object.defineProperty(t.not,i,{configurable:true,enumerable:true,value:a((...h)=>new u(true,...h),"value"),writable:true}),Object.defineProperty(globalThis[zr],i,{configurable:true,enumerable:true,value:f,writable:true});});}}a(yg,"JestExtendPlugin");var pu=a((e,t)=>{t.addMethod(e.expect,"extend",(n,r)=>{it(yg(e,n,r));});},"JestExtend");var mu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bg=new Uint8Array(64),wg=new Uint8Array(128);for(let e=0;e<mu.length;e++){let t=mu.charCodeAt(e);bg[e]=t,wg[t]=e;}var gu;(function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute";})(gu||(gu={}));var Sg=/^[A-Za-z]:\//;function Tg(e=""){return e&&e.replace(/\\/g,"/").replace(Sg,t=>t.toUpperCase())}a(Tg,"normalizeWindowsPath");var xg=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function vg(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}a(vg,"cwd");var Eg=a(function(...e){e=e.map(r=>Tg(r));let t="",n=false;for(let r=e.length-1;r>=-1&&!n;r--){let o=r>=0?e[r]:vg();!o||o.length===0||(t=`${o}/${t}`,n=yu(o));}return t=Ig(t,!n),n&&!yu(t)?`/${t}`:t.length>0?t:"."},"resolve");function Ig(e,t){let n="",r=0,o=-1,i=0,s=null;for(let c=0;c<=e.length;++c){if(c<e.length)s=e[c];else {if(s==="/")break;s="/";}if(s==="/"){if(!(o===c-1||i===1))if(i===2){if(n.length<2||r!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){let l=n.lastIndexOf("/");l===-1?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),o=c,i=0;continue}else if(n.length>0){n="",r=0,o=c,i=0;continue}}t&&(n+=n.length>0?"/..":"..",r=2);}else n.length>0?n+=`/${e.slice(o+1,c)}`:n=e.slice(o+1,c),r=c-o-1;o=c,i=0;}else s==="."&&i!==-1?++i:i=-1;}return n}a(Ig,"normalizeString");var yu=a(function(e){return xg.test(e)},"isAbsolute"),bu=/^\s*at .*(?:\S:\d+|\(native\))/m,Cg=/^(?:eval@)?(?:\[native code\])?$/;function wu(e){if(!e.includes(":"))return [e];let n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!n)return [e];let r=n[1];if(r.startsWith("async ")&&(r=r.slice(6)),r.startsWith("http:")||r.startsWith("https:")){let o=new URL(r);o.searchParams.delete("import"),o.searchParams.delete("browserv"),r=o.pathname+o.hash+o.search;}if(r.startsWith("/@fs/")){let o=/^\/@fs\/[a-zA-Z]:\//.test(r);r=r.slice(o?5:4);}return [r,n[2]||void 0,n[3]||void 0]}a(wu,"extractLocation");function _g(e){let t=e.trim();if(Cg.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":")))return null;let n=/((.*".+"[^@]*)?[^@]*)(@)/,r=t.match(n),o=r&&r[1]?r[1]:void 0,[i,s,c]=wu(t.replace(n,""));return !i||!s||!c?null:{file:i,method:o||"",line:Number.parseInt(s),column:Number.parseInt(c)}}a(_g,"parseSingleFFOrSafariStack");function In(e){let t=e.trim();return bu.test(t)?Og(t):_g(t)}a(In,"parseSingleStack");function Og(e){let t=e.trim();if(!bu.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[o,i,s]=wu(r?r[1]:n),c=r&&n||"",l=o&&["eval","<anonymous>"].includes(o)?void 0:o;return !l||!i||!s?null:(c.startsWith("async ")&&(c=c.slice(6)),l.startsWith("file://")&&(l=l.slice(7)),l=l.startsWith("node:")||l.startsWith("internal:")?l:Eg(l),c&&(c=c.replace(/__vite_ssr_import_\d+__\./g,"")),{method:c,file:l,line:Number.parseInt(i),column:Number.parseInt(s)})}a(Og,"parseSingleV8Stack");var Iu=ga(Eu());function $g(e,t){let n=t?.fillChar??" ",r=" ",o="",i=t?.filter??(()=>true),s=[];for(let c of (0, Iu.default)(e,{jsx:false})){if(s.push(c),c.type==="SingleLineComment"){o+=r.repeat(c.value.length);continue}if(c.type==="MultiLineComment"){o+=c.value.replace(/[^\n]/g,r);continue}if(c.type==="StringLiteral"){if(!c.closed){o+=c.value;continue}let l=c.value.slice(1,-1);if(i(l)){o+=c.value[0]+n.repeat(l.length)+c.value[c.value.length-1];continue}}if(c.type==="NoSubstitutionTemplate"){let l=c.value.slice(1,-1);if(i(l)){o+=`\`${l.replace(/[^\n]/g,n)}\``;continue}}if(c.type==="RegularExpressionLiteral"){let l=c.value;if(i(l)){o+=l.replace(/\/(.*)\/(\w?)$/g,(u,f,h)=>`/${n.repeat(f.length)}/${h}`);continue}}if(c.type==="TemplateHead"){let l=c.value.slice(1,-2);if(i(l)){o+=`\`${l.replace(/[^\n]/g,n)}\${`;continue}}if(c.type==="TemplateTail"){let l=c.value.slice(0,-2);if(i(l)){o+=`}${l.replace(/[^\n]/g,n)}\``;continue}}if(c.type==="TemplateMiddle"){let l=c.value.slice(1,-2);if(i(l)){o+=`}${l.replace(/[^\n]/g,n)}\${`;continue}}o+=c.value;}return {result:o,tokens:s}}a($g,"stripLiteralJsTokens");function Cu(e,t){return Ag(e,t).result}a(Cu,"stripLiteral");function Ag(e,t){return $g(e,t)}a(Ag,"stripLiteralDetailed");var kg=/^[A-Za-z]:\//;function Ng(e=""){return e&&e.replace(/\\/g,"/").replace(kg,t=>t.toUpperCase())}a(Ng,"normalizeWindowsPath");var Mg=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function Rg(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}a(Rg,"cwd");var ys=a(function(...e){e=e.map(r=>Ng(r));let t="",n=false;for(let r=e.length-1;r>=-1&&!n;r--){let o=r>=0?e[r]:Rg();!o||o.length===0||(t=`${o}/${t}`,n=gs(o));}return t=_u(t,!n),n&&!gs(t)?`/${t}`:t.length>0?t:"."},"resolve");function _u(e,t){let n="",r=0,o=-1,i=0,s=null;for(let c=0;c<=e.length;++c){if(c<e.length)s=e[c];else {if(s==="/")break;s="/";}if(s==="/"){if(!(o===c-1||i===1))if(i===2){if(n.length<2||r!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){let l=n.lastIndexOf("/");l===-1?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),o=c,i=0;continue}else if(n.length>0){n="",r=0,o=c,i=0;continue}}t&&(n+=n.length>0?"/..":"..",r=2);}else n.length>0?n+=`/${e.slice(o+1,c)}`:n=e.slice(o+1,c),r=c-o-1;o=c,i=0;}else s==="."&&i!==-1?++i:i=-1;}return n}a(_u,"normalizeString");var gs=a(function(e){return Mg.test(e)},"isAbsolute");var Ss=class extends Error{static{a(this,"PendingError");}code="VITEST_PENDING";taskId;constructor(t,n,r){super(t),this.message=t,this.note=r,this.taskId=n.id;}};var jg=new WeakMap,Mu=new WeakMap,Ru=new WeakMap;function ju(e,t){jg.set(e,t);}a(ju,"setFn");function Fg(e,t){Mu.set(e,t);}a(Fg,"setTestFixture");function Lg(e){return Mu.get(e)}a(Lg,"getTestFixture");function Fu(e,t){Ru.set(e,t);}a(Fu,"setHooks");function Lu(e){return Ru.get(e)}a(Lu,"getHooks");function Dg(e,t){let n=t.reduce((i,s)=>(i[s.prop]=s,i),{}),r={};e.forEach(i=>{let s=n[i.prop]||{...i};r[s.prop]=s;});for(let i in r){var o;let s=r[i];s.deps=(o=s.deps)===null||o===void 0?void 0:o.map(c=>r[c.prop]);}return Object.values(r)}a(Dg,"mergeScopedFixtures");function Du(e,t,n){let r=["auto","injected","scope"],o=Object.entries(e).map(([i,s])=>{let c={value:s};if(Array.isArray(s)&&s.length>=2&&ut(s[1])&&Object.keys(s[1]).some(u=>r.includes(u))){var l;Object.assign(c,s[1]);let u=s[0];c.value=c.injected?((l=n.injectValue)===null||l===void 0?void 0:l.call(n,i))??u:u;}return c.scope=c.scope||"test",c.scope==="worker"&&!n.getWorkerContext&&(c.scope="file"),c.prop=i,c.isFn=typeof c.value=="function",c});return Array.isArray(t.fixtures)?t.fixtures=t.fixtures.concat(o):t.fixtures=o,o.forEach(i=>{if(i.isFn){let c=Bu(i.value);if(c.length&&(i.deps=t.fixtures.filter(({prop:l})=>l!==i.prop&&c.includes(l))),i.scope!=="test"){var s;(s=i.deps)===null||s===void 0||s.forEach(l=>{if(l.isFn&&!(i.scope==="worker"&&l.scope==="worker")&&!(i.scope==="file"&&l.scope!=="test"))throw new SyntaxError(`cannot use the ${l.scope} fixture "${l.prop}" inside the ${i.scope} fixture "${i.prop}"`)});}}}),t}a(Du,"mergeContextFixtures");var bs=new Map,Qt=new Map;function qg(e,t,n){return r=>{let o=r||n;if(!o)return t({});let i=Lg(o);if(!i?.length)return t(o);let s=Bu(t),c=i.some(({auto:d})=>d);if(!s.length&&!c)return t(o);bs.get(o)||bs.set(o,new Map);let l=bs.get(o);Qt.has(o)||Qt.set(o,[]);let u=Qt.get(o),f=i.filter(({prop:d,auto:g})=>g||s.includes(d)),h=qu(f);if(!h.length)return t(o);async function m(){for(let d of h){if(l.has(d))continue;let g=await Bg(e,d,o,u);o[d.prop]=g,l.set(d,g),d.scope==="test"&&u.unshift(()=>{l.delete(d);});}}return a(m,"resolveFixtures"),m().then(()=>t(o))}}a(qg,"withFixtures");var oo=new WeakMap;function Bg(e,t,n,r){var o;let i=sy(n.task.file),s=(o=e.getWorkerContext)===null||o===void 0?void 0:o.call(e);if(!t.isFn){var c;if(i[c=t.prop]??(i[c]=t.value),s){var l;s[l=t.prop]??(s[l]=t.value);}return t.value}if(t.scope==="test")return Ou(t.value,n,r);if(oo.has(t))return oo.get(t);let u;if(t.scope==="worker"){if(!s)throw new TypeError("[@vitest/runner] The worker context is not available in the current test runner. Please, provide the `getWorkerContext` method when initiating the runner.");u=s;}else u=i;if(t.prop in u)return u[t.prop];Qt.has(u)||Qt.set(u,[]);let f=Qt.get(u),h=Ou(t.value,u,f).then(m=>(u[t.prop]=m,oo.delete(t),m));return oo.set(t,h),h}a(Bg,"resolveFixtureValue");async function Ou(e,t,n){let r=cr(),o=false,i=e(t,async s=>{o=true,r.resolve(s);let c=cr();n.push(async()=>{c.resolve(),await i;}),await c;}).catch(s=>{if(!o){r.reject(s);return}throw s});return r}a(Ou,"resolveFixtureFunction");function qu(e,t=new Set,n=[]){return e.forEach(r=>{if(!n.includes(r)){if(!r.isFn||!r.deps){n.push(r);return}if(t.has(r))throw new Error(`Circular fixture dependency detected: ${r.prop} <- ${[...t].reverse().map(o=>o.prop).join(" <- ")}`);t.add(r),qu(r.deps,t,n),n.push(r),t.clear();}}),n}a(qu,"resolveDeps");function Bu(e){let t=Cu(e.toString());/__async\((?:this|null), (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(t)&&(t=t.split(/__async\((?:this|null),/)[1]);let n=t.match(/[^(]*\(([^)]*)/);if(!n)return [];let r=Pu(n[1]);if(!r.length)return [];let o=r[0];if("__VITEST_FIXTURE_INDEX__"in e&&(o=r[e.__VITEST_FIXTURE_INDEX__],!o))return [];if(!(o.startsWith("{")&&o.endsWith("}")))throw new Error(`The first argument inside a fixture must use object destructuring pattern, e.g. ({ test } => {}). Instead, received "${o}".`);let i=o.slice(1,-1).replace(/\s/g,""),s=Pu(i).map(l=>l.replace(/:.*|=.*/g,"")),c=s.at(-1);if(c&&c.startsWith("..."))throw new Error(`Rest parameters are not supported in fixtures, received "${c}".`);return s}a(Bu,"getUsedProps");function Pu(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[n.length-1])n.pop();else if(!n.length&&e[i]===","){let s=e.substring(r,i).trim();s&&t.push(s),r=i+1;}let o=e.substring(r).trim();return o&&t.push(o),t}a(Pu,"splitByComma");var zg;function $n(){return zg}a($n,"getCurrentTest");function xs(e,t){function n(o){let i=a(function(...s){return t.apply(o,s)},"chain");Object.assign(i,t),i.withContext=()=>i.bind(o),i.setContext=(s,c)=>{o[s]=c;},i.mergeContext=s=>{Object.assign(o,s);};for(let s of e)Object.defineProperty(i,s,{get(){return n({...o,[s]:true})}});return i}a(n,"create");let r=n({});return r.fn=t,r}a(xs,"createChainable");var vt=Xg(),vs=Es(function(e,t,n){so().test.fn.call(this,Et(e),t,n);}),An=vt,Le=vs,me,zu,Wg;function Wu(e,t){if(!e)throw new Error(`Vitest failed to find ${t}. This is a bug in Vitest. Please, open an issue with reproduction.`)}a(Wu,"assert");function Ug(){return Wg}a(Ug,"getTestFilepath");function Uu(){return Wu(me,"the runner"),me}a(Uu,"getRunner");function so(){let e=It.currentSuite||zu;return Wu(e,"the current suite"),e}a(so,"getCurrentSuite");function Jg(){return {beforeAll:[],afterAll:[],beforeEach:[],afterEach:[]}}a(Jg,"createSuiteHooks");function qt(e,t){let n={},r=a(()=>{},"fn");if(typeof t=="object"){if(typeof e=="object")throw new TypeError("Cannot use two objects as arguments. Please provide options and a function callback in that order.");console.warn("Using an object as a third argument is deprecated. Vitest 4 will throw an error if the third argument is not a timeout number. Please use the second argument for options. See more at https://vitest.dev/guide/migration"),n=t;}else typeof t=="number"?n={timeout:t}:typeof e=="object"&&(n=e);if(typeof e=="function"){if(typeof t=="function")throw new 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}}a(qt,"parseArguments");function Vg(e,t=()=>{},n,r,o,i){let s=[],c;d();let l=a(function(S="",T={}){var I;let P=T?.timeout??me.config.testTimeout,A={id:"",name:S,suite:(I=It.currentSuite)===null||I===void 0?void 0:I.suite,each:T.each,fails:T.fails,context:void 0,type:"test",file:void 0,timeout:P,retry:T.retry??me.config.retry,repeats:T.repeats,mode:T.only?"only":T.skip?"skip":T.todo?"todo":"run",meta:T.meta??Object.create(null),annotations:[]},$=T.handler;(T.concurrent||!T.sequential&&me.config.sequence.concurrent)&&(A.concurrent=true),A.shuffle=o?.shuffle;let j=ry(A,me);Object.defineProperty(A,"context",{value:j,enumerable:false}),Fg(j,T.fixtures);let k=Error.stackTraceLimit;Error.stackTraceLimit=15;let O=new Error("STACK_TRACE_ERROR");if(Error.stackTraceLimit=k,$&&ju(A,Pn(Kg(qg(me,$,j),A),P,false,O,(M,K)=>Cs([j],K))),me.config.includeTaskLocation){let M=O.stack,K=$u(M);K&&(A.location=K);}return s.push(A),A},"task"),u=Es(function(S,T,I){let{options:P,handler:A}=qt(T,I);typeof o=="object"&&(P=Object.assign({},o,P)),P.concurrent=this.concurrent||!this.sequential&&P?.concurrent,P.sequential=this.sequential||!this.concurrent&&P?.sequential;let $=l(Et(S),{...this,...P,handler:A});$.type="test";}),f=i,h={type:"collector",name:e,mode:n,suite:c,options:o,test:u,tasks:s,collect:p,task:l,clear:g,on:m,fixtures(){return f},scoped(S){let T=Du(S,{fixtures:f},me);T.fixtures&&(f=T.fixtures);}};function m(S,...T){Lu(c)[S].push(...T);}a(m,"addHook");function d(S){var T;if(typeof o=="number"&&(o={timeout:o}),c={id:"",type:"suite",name:e,suite:(T=It.currentSuite)===null||T===void 0?void 0:T.suite,mode:n,each:r,file:void 0,shuffle:o?.shuffle,tasks:[],meta:Object.create(null),concurrent:o?.concurrent},me);Fu(c,Jg());}a(d,"initSuite");function g(){s.length=0,d();}a(g,"clear");async function p(S){if(!S)throw new TypeError("File is required to collect tasks.");t&&await ty(h,()=>t(u));let T=[];for(let I of s)T.push(I.type==="collector"?await I.collect(S):I);return c.file=S,c.tasks=T,T.forEach(I=>{I.file=S;}),c}return a(p,"collect"),ey(h),h}a(Vg,"createSuiteCollector");function Kg(e,t){return async(...n)=>{let r=await e(...n);if(t.promises){let i=(await Promise.allSettled(t.promises)).map(s=>s.status==="rejected"?s.reason:void 0).filter(Boolean);if(i.length)throw i}return r}}a(Kg,"withAwaitAsyncAssertions");function Xg(){function e(t,n,r){var o;let i=this.only?"only":this.skip?"skip":this.todo?"todo":"run",s=It.currentSuite||zu,{options:c,handler:l}=qt(n,r),u=c.concurrent||this.concurrent||c.sequential===false,f=c.sequential||this.sequential||c.concurrent===false;c={...s?.options,...c,shuffle:this.shuffle??c.shuffle??(s==null||(o=s.options)===null||o===void 0?void 0:o.shuffle)??me?.config.sequence.shuffle};let h=u||c.concurrent&&!f,m=f||c.sequential&&!u;return c.concurrent=h&&!m,c.sequential=m&&!h,Vg(Et(t),l,i,this.each,c,s?.fixtures())}return a(e,"suiteFn"),e.each=function(t,...n){let r=this.withContext();return this.setContext("each",true),Array.isArray(t)&&n.length&&(t=ao(t,n)),(o,i,s)=>{let c=Et(o),l=t.every(Array.isArray),{options:u,handler:f}=qt(i,s),h=typeof i=="function"&&typeof s=="object";t.forEach((m,d)=>{let g=Array.isArray(m)?m:[m];h?l?r(st(c,g,d),()=>f(...g),u):r(st(c,g,d),()=>f(m),u):l?r(st(c,g,d),u,()=>f(...g)):r(st(c,g,d),u,()=>f(m));}),this.setContext("each",void 0);}},e.for=function(t,...n){return Array.isArray(t)&&n.length&&(t=ao(t,n)),(r,o,i)=>{let s=Et(r),{options:c,handler:l}=qt(o,i);t.forEach((u,f)=>{vt(st(s,or(u),f),c,()=>l(u));});}},e.skipIf=t=>t?vt.skip:vt,e.runIf=t=>t?vt:vt.skip,xs(["concurrent","sequential","shuffle","skip","only","todo"],e)}a(Xg,"createSuite");function Ju(e,t){let n=e;n.each=function(o,...i){let s=this.withContext();return this.setContext("each",true),Array.isArray(o)&&i.length&&(o=ao(o,i)),(c,l,u)=>{let f=Et(c),h=o.every(Array.isArray),{options:m,handler:d}=qt(l,u),g=typeof l=="function"&&typeof u=="object";o.forEach((p,S)=>{let T=Array.isArray(p)?p:[p];g?h?s(st(f,T,S),()=>d(...T),m):s(st(f,T,S),()=>d(p),m):h?s(st(f,T,S),m,()=>d(...T)):s(st(f,T,S),m,()=>d(p));}),this.setContext("each",void 0);}},n.for=function(o,...i){let s=this.withContext();return Array.isArray(o)&&i.length&&(o=ao(o,i)),(c,l,u)=>{let f=Et(c),{options:h,handler:m}=qt(l,u);o.forEach((d,g)=>{let p=a(S=>m(d,S),"handlerWrapper");p.__VITEST_FIXTURE_INDEX__=1,p.toString=()=>m.toString(),s(st(f,or(d),g),h,p);});}},n.skipIf=function(o){return o?this.skip:this},n.runIf=function(o){return o?this:this.skip},n.scoped=function(o){so().scoped(o);},n.extend=function(o){let i=Du(o,t||{},me),s=e;return Es(function(c,l,u){let h=so().fixtures(),m={...this};h&&(m.fixtures=Dg(m.fixtures||[],h));let{handler:d,options:g}=qt(l,u),p=g.timeout??me?.config.testTimeout;s.call(m,Et(c),d,p);},i)};let r=xs(["concurrent","sequential","skip","only","todo","fails"],n);return t&&r.mergeContext(t),r}a(Ju,"createTaskCollector");function Es(e,t){return Ju(e,t)}a(Es,"createTest");function Et(e){return typeof e=="string"?e:typeof e=="function"?e.name||"<anonymous>":String(e)}a(Et,"formatName");function st(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((c,l)=>{if(Ho(t[l])||Object.is(t[l],-0)){let u=0;e=e.replace(/%f/g,f=>(u++,u===l+1?"-%f":f));}});let o=fn(e,...t.slice(0,r)),i=ut(t[0]);return o=o.replace(/\$([$\w.]+)/g,(s,c)=>{let u=/^\d+$/.test(c);if(!i&&!u)return `$${c}`;let f=u?ar(t,c):void 0,h=i?ar(t[0],c,f):f;return Xo(h,{truncate:void 0})}),o}a(st,"formatTitle");function ao(e,t){let n=e.join("").trim().replace(/ /g,"").split(`
119
- `).map(o=>o.split("|"))[0],r=[];for(let o=0;o<Math.floor(t.length/n.length);o++){let i={};for(let s=0;s<n.length;s++)i[n[s]]=t[o*n.length+s];r.push(i);}return r}a(ao,"formatTemplateString");function $u(e){let t=Ug(),n=e.split(`
120
- `).slice(1);for(let r of n){let o=In(r);if(o&&o.file===t)return {line:o.line,column:o.column}}}a($u,"findTestFileStackTrace");globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;function co(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}a(co,"getNames");function Is(e,t=" > "){return co(e).slice(1).join(t)}a(Is,"getTestName");globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;var Gg=Date.now,{clearTimeout:Yg,setTimeout:Hg}=ft();var ws=new Map,Au=[],io=[];function Vu(e){if(ws.size){var t;let n=Array.from(ws).map(([o,i])=>[o,i[0],i[1]]),r=(t=e.onTaskUpdate)===null||t===void 0?void 0:t.call(e,n,Au);r&&(io.push(r),r.then(()=>io.splice(io.indexOf(r),1),()=>{})),Au.length=0,ws.clear();}}a(Vu,"sendTasksUpdate");async function Zg(e){Vu(e),await Promise.all(io);}a(Zg,"finishSendTasksUpdate");function Qg(e,t){let n=0,r;return a(function o(...i){let s=Gg();if(s-n>t)return n=s,Yg(r),r=void 0,e.apply(this,i);r??(r=Hg(()=>o.bind(this)(...i),t));},"call")}a(Qg,"throttle");Qg(Vu,100);var ku=Date.now,It={currentSuite:null};function ey(e){var t;(t=It.currentSuite)===null||t===void 0||t.tasks.push(e);}a(ey,"collectTask");async function ty(e,t){let n=It.currentSuite;It.currentSuite=e,await t(),It.currentSuite=n;}a(ty,"runWithSuite");function Pn(e,t,n=false,r,o){if(t<=0||t===Number.POSITIVE_INFINITY)return e;let{setTimeout:i,clearTimeout:s}=ft();return a(function(...l){let u=ku(),f=Uu();return f._currentTaskStartTime=u,f._currentTaskTimeout=t,new Promise((h,m)=>{var d;let g=i(()=>{s(g),p();},t);(d=g.unref)===null||d===void 0||d.call(g);function p(){let I=oy(n,t,r);o?.(l,I),m(I);}a(p,"rejectTimeoutError");function S(I){if(f._currentTaskStartTime=void 0,f._currentTaskTimeout=void 0,s(g),ku()-u>=t){p();return}h(I);}a(S,"resolve");function T(I){f._currentTaskStartTime=void 0,f._currentTaskTimeout=void 0,s(g),m(I);}a(T,"reject");try{let I=e(...l);typeof I=="object"&&I!=null&&typeof I.then=="function"?I.then(S,T):S(I);}catch(I){T(I);}})},"runWithTimeout")}a(Pn,"withTimeout");var Ts=new WeakMap;function Cs([e],t){e&&ny(e,t);}a(Cs,"abortIfTimeout");function ny(e,t){let n=Ts.get(e);n?.abort(t);}a(ny,"abortContextSignal");function ry(e,t){var n;let r=a(function(){throw new Error("done() callback is deprecated, use promise instead")},"context"),o=Ts.get(r);o||(o=new AbortController,Ts.set(r,o)),r.signal=o.signal,r.task=e,r.skip=(s,c)=>{if(s!==false)throw e.result??(e.result={state:"skip"}),e.result.pending=true,new Ss("test is skipped; abort execution",e,typeof s=="string"?s:c)};async function i(s,c,l,u){let f={message:s,type:l||"notice"};if(u){if(!u.body&&!u.path)throw new TypeError("Test attachment requires body or path to be set. Both are missing.");if(u.body&&u.path)throw new TypeError('Test attachment requires only one of "body" or "path" to be set. Both are specified.');f.attachment=u,u.body instanceof Uint8Array&&(u.body=ay(u.body));}if(c&&(f.location=c),!t.onTestAnnotate)throw new Error("Test runner doesn't support test annotations.");await Zg(t);let h=await t.onTestAnnotate(e,f);return e.annotations.push(h),h}return a(i,"annotate"),r.annotate=(s,c,l)=>{if(e.result&&e.result.state!=="run")throw new Error(`Cannot annotate tests outside of the test run. The test "${e.name}" finished running with the "${e.result.state}" state already.`);let u,f=new Error("STACK_TRACE").stack,h=f.includes("STACK_TRACE")?2:1,m=f.split(`
121
- `)[h],d=In(m);return d&&(u={file:d.file,line:d.line,column:d.column}),typeof c=="object"?Nu(e,i(s,u,void 0,c)):Nu(e,i(s,u,c,l))},r.onTestFailed=(s,c)=>{e.onFailed||(e.onFailed=[]),e.onFailed.push(Pn(s,c??t.config.hookTimeout,true,new Error("STACK_TRACE_ERROR"),(l,u)=>o.abort(u)));},r.onTestFinished=(s,c)=>{e.onFinished||(e.onFinished=[]),e.onFinished.push(Pn(s,c??t.config.hookTimeout,true,new Error("STACK_TRACE_ERROR"),(l,u)=>o.abort(u)));},((n=t.extendTaskContext)===null||n===void 0?void 0:n.call(t,r))||r}a(ry,"createTestContext");function oy(e,t,n){let r=`${e?"Hook":"Test"} timed out in ${t}ms.
122
- If this is a long-running ${e?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "${e?"hookTimeout":"testTimeout"}".`,o=new Error(r);return n?.stack&&(o.stack=n.stack.replace(o.message,n.message)),o}a(oy,"makeTimeoutError");var iy=new WeakMap;function sy(e){let t=iy.get(e);if(!t)throw new Error(`Cannot find file context for ${e.name}`);return t}a(sy,"getFileContext");var Je=[];for(let e=65;e<91;e++)Je.push(String.fromCharCode(e));for(let e=97;e<123;e++)Je.push(String.fromCharCode(e));for(let e=0;e<10;e++)Je.push(e.toString(10));function ay(e){let t="",n=e.byteLength;for(let r=0;r<n;r+=3)if(n===r+1){let o=(e[r]&252)>>2,i=(e[r]&3)<<4;t+=Je[o],t+=Je[i],t+="==";}else if(n===r+2){let o=(e[r]&252)>>2,i=(e[r]&3)<<4|(e[r+1]&240)>>4,s=(e[r+1]&15)<<2;t+=Je[o],t+=Je[i],t+=Je[s],t+="=";}else {let o=(e[r]&252)>>2,i=(e[r]&3)<<4|(e[r+1]&240)>>4,s=(e[r+1]&15)<<2|(e[r+2]&192)>>6,c=e[r+2]&63;t+=Je[o],t+=Je[i],t+=Je[s],t+=Je[c];}return t}a(ay,"encodeUint8Array");function Nu(e,t){return t=t.finally(()=>{if(!e.promises)return;let n=e.promises.indexOf(t);n!==-1&&e.promises.splice(n,1);}),e.promises||(e.promises=[]),e.promises.push(t),t}a(Nu,"recordAsyncAnnotation");function Ku(){return Uu().config.hookTimeout}a(Ku,"getDefaultHookTimeout");function Yu(e,t){return (n,r)=>{Ne(n,`"${e}" callback`,["function"]);throw new Error(`Hook ${e}() can only be called inside a test`);}}a(Yu,"createTestHook");var hy="__vitest_worker__";function en(){let e=globalThis[hy];if(!e){let t=`Vitest failed to access its internal state.
117
+ Number of calls: ${ne.bold(e.mock.calls.length)}
118
+ `),n}a(Cm,"formatReturns");function km(e,t){let n=e._obj,r=Fe.flag(e,"negate"),o=Fe.flag(e,"promise")||"",i=Fe.flag(e,"message"),s={...Cl(),diff:Tt,stringify:be,iterableEquality:Ce,subsetEquality:Mt},c=Fe.flag(e,"vitest-test"),u=c?.fullTestName??"";return c?.type!=="test"&&(c=void 0),{state:{...Dt(t),task:c,currentTestName:u,customTesters:Ai(),isNot:r,utils:s,promise:o,equals:K,suppressedErrors:[],soft:Fe.flag(e,"soft"),poll:Fe.flag(e,"poll")},isNot:r,obj:n,customMessage:i}}a(km,"getMatcherState");var br=class extends Error{static{a(this,"JestExtendError");}constructor(t,n,r){super(t),this.actual=n,this.expected=r;}};function $m(e,t,n){return (r,o)=>{Object.entries(n).forEach(([i,s])=>{function c(...h){let{state:d,isNot:p,obj:m,customMessage:y}=km(this,t),v=s.call(d,m,...h);if(v&&typeof v=="object"&&typeof v.then=="function")return v.then(({pass:N,message:I,actual:q,expected:X})=>{if(N&&p||!N&&!p){let D=y??I();throw new br(D,q,X)}});let{pass:S,message:M,actual:$,expected:O}=v;if(S&&p||!S&&!p){let C=y??M();throw new br(C,$,O)}}a(c,"expectWrapper");let u=Rl(o,i,c);o.addMethod(globalThis[pn].matchers,i,u),o.addMethod(e.Assertion.prototype,i,u);class l extends Le{static{a(this,"CustomMatcher");}constructor(d=false,...p){super(p,d);}asymmetricMatch(d){let{pass:p}=s.call(this.getMatcherContext(t),d,...this.sample);return this.inverse?!p:p}toString(){return `${this.inverse?"not.":""}${i}`}getExpectedType(){return "any"}toAsymmetricMatcher(){return `${this.toString()}<${this.sample.map(d=>be(d)).join(", ")}>`}}let f=a((...h)=>new l(false,...h),"customMatcher");Object.defineProperty(t,i,{configurable:true,enumerable:true,value:f,writable:true}),Object.defineProperty(t.not,i,{configurable:true,enumerable:true,value:a((...h)=>new l(true,...h),"value"),writable:true}),Object.defineProperty(globalThis[wr],i,{configurable:true,enumerable:true,value:f,writable:true});});}}a($m,"JestExtendPlugin");var Dl=a((e,t)=>{t.addMethod(e.expect,"extend",(n,r)=>{fn($m(e,n,r));});},"JestExtend");var Ll=Symbol("vitest:SAFE_TIMERS");function at(){let{setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:r,setImmediate:o,clearImmediate:i,queueMicrotask:s}=globalThis[Ll]||globalThis,{nextTick:c}=globalThis[Ll]||globalThis.process||{};return {nextTick:c,setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:r,setImmediate:o,clearImmediate:i,queueMicrotask:s}}a(at,"getSafeTimers");function ql(e,t=setTimeout){return new Promise(n=>t(n,e))}a(ql,"delay");var Nm=/^[A-Za-z]:\//;function Am(e=""){return e&&e.replace(/\\/g,"/").replace(Nm,t=>t.toUpperCase())}a(Am,"normalizeWindowsPath");var Pm=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function jm(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}a(jm,"cwd");var zl=a(function(...e){e=e.map(r=>Am(r));let t="",n=false;for(let r=e.length-1;r>=-1&&!n;r--){let o=r>=0?e[r]:jm();!o||o.length===0||(t=`${o}/${t}`,n=Bl(o));}return t=Rm(t,!n),n&&!Bl(t)?`/${t}`:t.length>0?t:"."},"resolve");function Rm(e,t){let n="",r=0,o=-1,i=0,s=null;for(let c=0;c<=e.length;++c){if(c<e.length)s=e[c];else {if(s==="/")break;s="/";}if(s==="/"){if(!(o===c-1||i===1))if(i===2){if(n.length<2||r!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){let u=n.lastIndexOf("/");u===-1?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),o=c,i=0;continue}else if(n.length>0){n="",r=0,o=c,i=0;continue}}t&&(n+=n.length>0?"/..":"..",r=2);}else n.length>0?n+=`/${e.slice(o+1,c)}`:n=e.slice(o+1,c),r=c-o-1;o=c,i=0;}else s==="."&&i!==-1?++i:i=-1;}return n}a(Rm,"normalizeString");var Bl=a(function(e){return Pm.test(e)},"isAbsolute");var Ul="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fm=new Uint8Array(64),Dm=new Uint8Array(128);for(let e=0;e<Ul.length;e++){let t=Ul.charCodeAt(e);Fm[e]=t,Dm[t]=e;}var Wl=/^\s*at .*(?:\S:\d+|\(native\))/m,Lm=/^(?:eval@)?(?:\[native code\])?$/;function Vl(e){if(!e.includes(":"))return [e];let n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!n)return [e];let r=n[1];if(r.startsWith("async ")&&(r=r.slice(6)),r.startsWith("http:")||r.startsWith("https:")){let o=new URL(r);o.searchParams.delete("import"),o.searchParams.delete("browserv"),r=o.pathname+o.hash+o.search;}if(r.startsWith("/@fs/")){let o=/^\/@fs\/[a-zA-Z]:\//.test(r);r=r.slice(o?5:4);}return [r,n[2]||void 0,n[3]||void 0]}a(Vl,"extractLocation");function qm(e){let t=e.trim();if(Lm.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="",o;for(let u=0;u<t.length;u++)if(t[u]==="@"){let l=t.slice(u+1);if(l.includes(":")&&l.length>=3){n=u,r=l,o=u>0?t.slice(0,u):void 0;break}}if(n===-1||!r.includes(":")||r.length<3)return null;let[i,s,c]=Vl(r);return !i||!s||!c?null:{file:i,method:o||"",line:Number.parseInt(s),column:Number.parseInt(c)}}a(qm,"parseSingleFFOrSafariStack");function Er(e){let t=e.trim();return Wl.test(t)?Bm(t):qm(t)}a(Er,"parseSingleStack");function Bm(e){let t=e.trim();if(!Wl.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[o,i,s]=Vl(r?r[1]:n),c=r&&n||"",u=o&&["eval","<anonymous>"].includes(o)?void 0:o;return !u||!i||!s?null:(c.startsWith("async ")&&(c=c.slice(6)),u.startsWith("file://")&&(u=u.slice(7)),u=u.startsWith("node:")||u.startsWith("internal:")?u:zl(u),c&&(c=c.replace(/__vite_ssr_import_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:c,file:u,line:Number.parseInt(i),column:Number.parseInt(s)})}a(Bm,"parseSingleV8Stack");var zm=/^[A-Za-z]:\//;function Um(e=""){return e&&e.replace(/\\/g,"/").replace(zm,t=>t.toUpperCase())}a(Um,"normalizeWindowsPath");var Wm=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function Vm(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}a(Vm,"cwd");var xr=a(function(...e){e=e.map(r=>Um(r));let t="",n=false;for(let r=e.length-1;r>=-1&&!n;r--){let o=r>=0?e[r]:Vm();!o||o.length===0||(t=`${o}/${t}`,n=ji(o));}return t=Kl(t,!n),n&&!ji(t)?`/${t}`:t.length>0?t:"."},"resolve");function Kl(e,t){let n="",r=0,o=-1,i=0,s=null;for(let c=0;c<=e.length;++c){if(c<e.length)s=e[c];else {if(s==="/")break;s="/";}if(s==="/"){if(!(o===c-1||i===1))if(i===2){if(n.length<2||r!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){let u=n.lastIndexOf("/");u===-1?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),o=c,i=0;continue}else if(n.length>0){n="",r=0,o=c,i=0;continue}}t&&(n+=n.length>0?"/..":"..",r=2);}else n.length>0?n+=`/${e.slice(o+1,c)}`:n=e.slice(o+1,c),r=c-o-1;o=c,i=0;}else s==="."&&i!==-1?++i:i=-1;}return n}a(Kl,"normalizeString");var ji=a(function(e){return Wm.test(e)},"isAbsolute");function Mr(e,t){function n(o){let i=a(function(...s){return t.apply(o,s)},"chain");Object.assign(i,t),i.withContext=()=>i.bind(o),i.setContext=(s,c)=>{o[s]=c;},i.mergeContext=s=>{Object.assign(o,s);};for(let s of e)Object.defineProperty(i,s,{get(){return n({...o,[s]:true})}});return i}a(n,"create");let r=n({});return r.fn=t,r}a(Mr,"createChainable");function gn(e,t){let n=t.split(`
119
+ `).slice(1);for(let r of n){let o=Er(r);if(o&&o.file===e)return o}}a(gn,"findTestFileStackTrace");function Ri(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}a(Ri,"getNames");function Lt(e,t=" > "){return e.filter(n=>n!==void 0).join(t)}a(Lt,"createTaskName");var Li=class extends Error{static{a(this,"PendingError");}code="VITEST_PENDING";taskId;constructor(t,n,r){super(t),this.message=t,this.note=r,this.taskId=n.id;}};var eg=new WeakMap,Xl=new WeakMap,Ql=new WeakMap;function tg(e,t){eg.set(e,t);}a(tg,"setFn");function ng(e,t){Xl.set(e,t);}a(ng,"setTestFixture");function rg(e){return Xl.get(e)}a(rg,"getTestFixture");function og(e,t){Ql.set(e,t);}a(og,"setHooks");function ig(e){return Ql.get(e)}a(ig,"getHooks");function sg(e,t){let n=t.reduce((i,s)=>(i[s.prop]=s,i),{}),r={};e.forEach(i=>{let s=n[i.prop]||{...i};r[s.prop]=s;});for(let i in r){var o;let s=r[i];s.deps=(o=s.deps)===null||o===void 0?void 0:o.map(c=>r[c.prop]);}return Object.values(r)}a(sg,"mergeScopedFixtures");function eu(e,t,n){let r=["auto","injected","scope"],o=Object.entries(e).map(([i,s])=>{let c={value:s};if(Array.isArray(s)&&s.length>=2&&ht(s[1])&&Object.keys(s[1]).some(l=>r.includes(l))){var u;Object.assign(c,s[1]);let l=s[0];c.value=c.injected?((u=n.injectValue)===null||u===void 0?void 0:u.call(n,i))??l:l;}return c.scope=c.scope||"test",c.scope==="worker"&&!n.getWorkerContext&&(c.scope="file"),c.prop=i,c.isFn=typeof c.value=="function",c});return Array.isArray(t.fixtures)?t.fixtures=t.fixtures.concat(o):t.fixtures=o,o.forEach(i=>{if(i.isFn){let c=nu(i.value);if(c.length&&(i.deps=t.fixtures.filter(({prop:u})=>u!==i.prop&&c.includes(u))),i.scope!=="test"){var s;(s=i.deps)===null||s===void 0||s.forEach(u=>{if(u.isFn&&!(i.scope==="worker"&&u.scope==="worker")&&!(i.scope==="file"&&u.scope!=="test"))throw new SyntaxError(`cannot use the ${u.scope} fixture "${u.prop}" inside the ${i.scope} fixture "${i.prop}"`)});}}}),t}a(eu,"mergeContextFixtures");var Fi=new Map,qt=new Map;function Bi(e,t,n){return r=>{let o=r||n;if(!o)return t({});let i=rg(o);if(!i?.length)return t(o);let s=nu(t),c=i.some(({auto:p})=>p);if(!s.length&&!c)return t(o);Fi.get(o)||Fi.set(o,new Map);let u=Fi.get(o);qt.has(o)||qt.set(o,[]);let l=qt.get(o),f=i.filter(({prop:p,auto:m})=>m||s.includes(p)),h=tu(f);if(!h.length)return t(o);async function d(){for(let p of h){if(u.has(p))continue;let m=await ag(e,p,o,l);o[p.prop]=m,u.set(p,m),p.scope==="test"&&l.unshift(()=>{u.delete(p);});}}return a(d,"resolveFixtures"),d().then(()=>t(o))}}a(Bi,"withFixtures");var _r=new WeakMap;function ag(e,t,n,r){var o;let i=xg(n.task.file),s=(o=e.getWorkerContext)===null||o===void 0?void 0:o.call(e);if(!t.isFn){var c;if(i[c=t.prop]??(i[c]=t.value),s){var u;s[u=t.prop]??(s[u]=t.value);}return t.value}if(t.scope==="test")return Gl(t.value,n,r);if(_r.has(t))return _r.get(t);let l;if(t.scope==="worker"){if(!s)throw new TypeError("[@vitest/runner] The worker context is not available in the current test runner. Please, provide the `getWorkerContext` method when initiating the runner.");l=s;}else l=i;if(t.prop in l)return l[t.prop];qt.has(l)||qt.set(l,[]);let f=qt.get(l),h=Gl(t.value,l,f).then(d=>(l[t.prop]=d,_r.delete(t),d));return _r.set(t,h),h}a(ag,"resolveFixtureValue");async function Gl(e,t,n){let r=ho(),o=false,i=e(t,async s=>{o=true,r.resolve(s);let c=ho();n.push(async()=>{c.resolve(),await i;}),await c;}).catch(s=>{if(!o){r.reject(s);return}throw s});return r}a(Gl,"resolveFixtureFunction");function tu(e,t=new Set,n=[]){return e.forEach(r=>{if(!n.includes(r)){if(!r.isFn||!r.deps){n.push(r);return}if(t.has(r))throw new Error(`Circular fixture dependency detected: ${r.prop} <- ${[...t].reverse().map(o=>o.prop).join(" <- ")}`);t.add(r),tu(r.deps,t,n),n.push(r),t.clear();}}),n}a(tu,"resolveDeps");function nu(e){let t=cg(e.toString());/__async\((?:this|null), (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(t)&&(t=t.split(/__async\((?:this|null),/)[1]);let n=t.match(/[^(]*\(([^)]*)/);if(!n)return [];let r=Hl(n[1]);if(!r.length)return [];let o=r[0];if("__VITEST_FIXTURE_INDEX__"in e&&(o=r[e.__VITEST_FIXTURE_INDEX__],!o))return [];if(!(o[0]==="{"&&o.endsWith("}")))throw new Error(`The first argument inside a fixture must use object destructuring pattern, e.g. ({ test } => {}). Instead, received "${o}".`);let i=o.slice(1,-1).replace(/\s/g,""),s=Hl(i).map(u=>u.replace(/:.*|=.*/g,"")),c=s.at(-1);if(c&&c.startsWith("..."))throw new Error(`Rest parameters are not supported in fixtures, received "${c}".`);return s}a(nu,"getUsedProps");function cg(e){let t=[],n="none";for(let r=0;r<e.length;++r)n==="singleline"?e[r]===`
120
+ `&&(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("")}a(cg,"filterOutComments");function Hl(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 s=e.substring(r,i).trim();s&&t.push(s),r=i+1;}let o=e.substring(r).trim();return o&&t.push(o),t}a(Hl,"splitByComma");var lg;function yn(){return lg}a(yn,"getCurrentTest");function Ot(){return bn().config.hookTimeout}a(Ot,"getDefaultHookTimeout");var ru=Symbol.for("VITEST_CLEANUP_TIMEOUT"),ou=Symbol.for("VITEST_CLEANUP_STACK_TRACE");function iu(e,t=Ot()){me(e,'"beforeAll" callback',["function"]);let n=new Error("STACK_TRACE_ERROR");return It().on("beforeAll",Object.assign(ct(e,t,true,n),{[ru]:t,[ou]:n}))}a(iu,"beforeAll");function su(e,t){return me(e,'"afterAll" callback',["function"]),It().on("afterAll",ct(e,t??Ot(),true,new Error("STACK_TRACE_ERROR")))}a(su,"afterAll");function au(e,t=Ot()){me(e,'"beforeEach" callback',["function"]);let n=new Error("STACK_TRACE_ERROR"),r=bn();return It().on("beforeEach",Object.assign(ct(Bi(r,e),t??Ot(),true,n,wn),{[ru]:t,[ou]:n}))}a(au,"beforeEach");function cu(e,t){me(e,'"afterEach" callback',["function"]);let n=bn();return It().on("afterEach",ct(Bi(n,e),t??Ot(),true,new Error("STACK_TRACE_ERROR"),wn))}a(cu,"afterEach");function lu(e,t){return (n,r)=>{me(n,`"${e}" callback`,["function"]);throw new Error(`Hook ${e}() can only be called inside a test`);}}a(lu,"createTestHook");var _t=mg(),uu=zi(function(e,t,n){It().test.fn.call(this,mt(e),t,n);}),Cr=_t,je=uu,ye,fu,Jl;function hu(e,t){if(!e)throw new Error(`Vitest failed to find ${t}. One of the following is possible:
121
+ - "vitest" is imported directly without running "vitest" command
122
+ - "vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)
123
+ - "vitest" is imported inside Vite / Vitest config file
124
+ - Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues
125
+ `)}a(hu,"assert");function bn(){return hu(ye,"the runner"),ye}a(bn,"getRunner");function It(){let e=qe.currentSuite||fu;return hu(e,"the current suite"),e}a(It,"getCurrentSuite");function hg(){return {beforeAll:[],afterAll:[],beforeEach:[],afterEach:[]}}a(hg,"createSuiteHooks");function Bt(e,t){if(t!=null&&typeof t=="object")throw new 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 new 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}}a(Bt,"parseArguments");function dg(e,t=()=>{},n,r,o,i){let s=[],c;p();let u=a(function(v="",S={}){var M,$,O;let C=S?.timeout??ye.config.testTimeout,N=(M=qe.currentSuite)===null||M===void 0?void 0:M.suite,I={id:"",name:v,fullName:Lt([N?.fullName??(($=qe.currentSuite)===null||$===void 0||($=$.file)===null||$===void 0?void 0:$.fullName),v]),fullTestName:Lt([N?.fullTestName,v]),suite:N,each:S.each,fails:S.fails,context:void 0,type:"test",file:N?.file??((O=qe.currentSuite)===null||O===void 0?void 0:O.file),timeout:C,retry:S.retry??ye.config.retry,repeats:S.repeats,mode:S.only?"only":S.skip?"skip":S.todo?"todo":"run",meta:S.meta??Object.create(null),annotations:[],artifacts:[]},q=S.handler;I.mode==="run"&&!q&&(I.mode="todo"),(S.concurrent||!S.sequential&&ye.config.sequence.concurrent)&&(I.concurrent=true),I.shuffle=o?.shuffle;let X=Sg(I,ye);Object.defineProperty(I,"context",{value:X,enumerable:false}),ng(X,S.fixtures);let D=Error.stackTraceLimit;Error.stackTraceLimit=15;let H=new Error("STACK_TRACE_ERROR");if(Error.stackTraceLimit=D,q&&tg(I,ct(pg(Bi(ye,q,X),I),C,false,H,(oe,ue)=>wn([X],ue))),ye.config.includeTaskLocation){let oe=H.stack,ue=gn(Jl,oe);ue&&(I.location={line:ue.line,column:ue.column});}return s.push(I),I},"task"),l=zi(function(v,S,M){let{options:$,handler:O}=Bt(S,M);typeof o=="object"&&($=Object.assign({},o,$)),$.concurrent=this.concurrent||!this.sequential&&$?.concurrent,$.sequential=this.sequential||!this.concurrent&&$?.sequential;let C=u(mt(v),{...this,...$,handler:O});C.type="test";}),f=i,h={type:"collector",name:e,mode:n,suite:c,options:o,test:l,tasks:s,collect:y,task:u,clear:m,on:d,fixtures(){return f},scoped(v){let S=eu(v,{fixtures:f},ye);S.fixtures&&(f=S.fixtures);}};function d(v,...S){ig(c)[v].push(...S);}a(d,"addHook");function p(v){var S,M,$;typeof o=="number"&&(o={timeout:o});let O=(S=qe.currentSuite)===null||S===void 0?void 0:S.suite;if(c={id:"",type:"suite",name:e,fullName:Lt([O?.fullName??((M=qe.currentSuite)===null||M===void 0||(M=M.file)===null||M===void 0?void 0:M.fullName),e]),fullTestName:Lt([O?.fullTestName,e]),suite:O,mode:n,each:r,file:O?.file??(($=qe.currentSuite)===null||$===void 0?void 0:$.file),shuffle:o?.shuffle,tasks:[],meta:Object.create(null),concurrent:o?.concurrent},ye);og(c,hg());}a(p,"initSuite");function m(){s.length=0,p();}a(m,"clear");async function y(v){if(!v)throw new TypeError("File is required to collect tasks.");t&&await wg(h,()=>t(l));let S=[];for(let M of s)S.push(M.type==="collector"?await M.collect(v):M);return c.tasks=S,c}return a(y,"collect"),bg(h),h}a(dg,"createSuiteCollector");function pg(e,t){return(async(...n)=>{let r=await e(...n);if(t.promises){let i=(await Promise.allSettled(t.promises)).map(s=>s.status==="rejected"?s.reason:void 0).filter(Boolean);if(i.length)throw i}return r})}a(pg,"withAwaitAsyncAssertions");function mg(){function e(t,n,r){var o;let i=this.only?"only":this.skip?"skip":this.todo?"todo":"run",s=qe.currentSuite||fu,{options:c,handler:u}=Bt(n,r);i==="run"&&!u&&(i="todo");let l=c.concurrent||this.concurrent||c.sequential===false,f=c.sequential||this.sequential||c.concurrent===false;c={...s?.options,...c,shuffle:this.shuffle??c.shuffle??(s==null||(o=s.options)===null||o===void 0?void 0:o.shuffle)??ye?.config.sequence.shuffle};let h=l||c.concurrent&&!f,d=f||c.sequential&&!l;return c.concurrent=h&&!d,c.sequential=d&&!h,dg(mt(t),u,i,this.each,c,s?.fixtures())}return a(e,"suiteFn"),e.each=function(t,...n){let r=this.withContext();return this.setContext("each",true),Array.isArray(t)&&n.length&&(t=Ir(t,n)),(o,i,s)=>{let c=mt(o),u=t.every(Array.isArray),{options:l,handler:f}=Bt(i,s),h=typeof i=="function";t.forEach((d,p)=>{let m=Array.isArray(d)?d:[d];h?u?r(Qe(c,m,p),f?()=>f(...m):void 0,l.timeout):r(Qe(c,m,p),f?()=>f(d):void 0,l.timeout):u?r(Qe(c,m,p),l,f?()=>f(...m):void 0):r(Qe(c,m,p),l,f?()=>f(d):void 0);}),this.setContext("each",void 0);}},e.for=function(t,...n){return Array.isArray(t)&&n.length&&(t=Ir(t,n)),(r,o,i)=>{let s=mt(r),{options:c,handler:u}=Bt(o,i);t.forEach((l,f)=>{_t(Qe(s,co(l),f),c,u?()=>u(l):void 0);});}},e.skipIf=t=>t?_t.skip:_t,e.runIf=t=>t?_t:_t.skip,Mr(["concurrent","sequential","shuffle","skip","only","todo"],e)}a(mg,"createSuite");function gg(e,t){let n=e;n.each=function(o,...i){let s=this.withContext();return this.setContext("each",true),Array.isArray(o)&&i.length&&(o=Ir(o,i)),(c,u,l)=>{let f=mt(c),h=o.every(Array.isArray),{options:d,handler:p}=Bt(u,l),m=typeof u=="function";o.forEach((y,v)=>{let S=Array.isArray(y)?y:[y];m?h?s(Qe(f,S,v),p?()=>p(...S):void 0,d.timeout):s(Qe(f,S,v),p?()=>p(y):void 0,d.timeout):h?s(Qe(f,S,v),d,p?()=>p(...S):void 0):s(Qe(f,S,v),d,p?()=>p(y):void 0);}),this.setContext("each",void 0);}},n.for=function(o,...i){let s=this.withContext();return Array.isArray(o)&&i.length&&(o=Ir(o,i)),(c,u,l)=>{let f=mt(c),{options:h,handler:d}=Bt(u,l);o.forEach((p,m)=>{let y=d?v=>d(p,v):void 0;y&&(y.__VITEST_FIXTURE_INDEX__=1,y.toString=()=>d.toString()),s(Qe(f,co(p),m),h,y);});}},n.skipIf=function(o){return o?this.skip:this},n.runIf=function(o){return o?this:this.skip},n.scoped=function(o){It().scoped(o);},n.extend=function(o){let i=eu(o,t||{},ye),s=e;return zi(function(c,u,l){let h=It().fixtures(),d={...this};h&&(d.fixtures=sg(d.fixtures||[],h)),s.call(d,mt(c),u,l);},i)},n.beforeEach=au,n.afterEach=cu,n.beforeAll=iu,n.afterAll=su;let r=Mr(["concurrent","sequential","skip","only","todo","fails"],n);return t&&r.mergeContext(t),r}a(gg,"createTaskCollector");function zi(e,t){return gg(e,t)}a(zi,"createTest");function mt(e){return typeof e=="string"?e:typeof e=="function"?e.name||"<anonymous>":String(e)}a(mt,"formatName");function Qe(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((l,f)=>{if(Ca(t[f])||Object.is(t[f],-0)){let h=0;e=e.replace(/%f/g,d=>(h++,h===f+1?"-%f":d));}});let o=ht(t[0]);function i(u){return u.replace(/\$([$\w.]+)/g,(l,f)=>{let d=/^\d+$/.test(f);if(!o&&!d)return `$${f}`;let p=d?fo(t,f):void 0,m=o?fo(t[0],f,p):p;return Ma(m,{truncate:void 0})})}a(i,"formatAttribute");let s="",c=0;return yg(e,so,u=>{c<r?s+=Ea(u[0],t[c++]):s+=u[0];},u=>{s+=i(u);}),s}a(Qe,"formatTitle");function yg(e,t,n,r){let o=0;for(let i of e.matchAll(t))o<i.index&&r(e.slice(o,i.index)),n(i),o=i.index+i[0].length;o<e.length&&r(e.slice(o));}a(yg,"handleRegexMatch");function Ir(e,t){let n=e.join("").trim().replace(/ /g,"").split(`
126
+ `).map(o=>o.split("|"))[0],r=[];for(let o=0;o<Math.floor(t.length/n.length);o++){let i={};for(let s=0;s<n.length;s++)i[n[s]]=t[o*n.length+s];r.push(i);}return r}a(Ir,"formatTemplateString");var Yl=Date.now,qe={currentSuite:null};function bg(e){var t;(t=qe.currentSuite)===null||t===void 0||t.tasks.push(e);}a(bg,"collectTask");async function wg(e,t){let n=qe.currentSuite;qe.currentSuite=e,await t(),qe.currentSuite=n;}a(wg,"runWithSuite");function ct(e,t,n=false,r,o){if(t<=0||t===Number.POSITIVE_INFINITY)return e;let{setTimeout:i,clearTimeout:s}=at();return a((function(...u){let l=Yl(),f=bn();return f._currentTaskStartTime=l,f._currentTaskTimeout=t,new Promise((h,d)=>{var p;let m=i(()=>{s(m),y();},t);(p=m.unref)===null||p===void 0||p.call(m);function y(){let M=Tg(n,t,r);o?.(u,M),d(M);}a(y,"rejectTimeoutError");function v(M){if(f._currentTaskStartTime=void 0,f._currentTaskTimeout=void 0,s(m),Yl()-l>=t){y();return}h(M);}a(v,"resolve");function S(M){f._currentTaskStartTime=void 0,f._currentTaskTimeout=void 0,s(m),d(M);}a(S,"reject");try{let M=e(...u);typeof M=="object"&&M!=null&&typeof M.then=="function"?M.then(v,S):v(M);}catch(M){S(M);}})}),"runWithTimeout")}a(ct,"withTimeout");var qi=new WeakMap;function wn([e],t){e&&vg(e,t);}a(wn,"abortIfTimeout");function vg(e,t){let n=qi.get(e);n?.abort(t);}a(vg,"abortContextSignal");function Sg(e,t){var n;let r=a(function(){throw new Error("done() callback is deprecated, use promise instead")},"context"),o=qi.get(r);return o||(o=new AbortController,qi.set(r,o)),r.signal=o.signal,r.task=e,r.skip=(i,s)=>{if(i!==false)throw e.result??(e.result={state:"skip"}),e.result.pending=true,new Li("test is skipped; abort execution",e,typeof i=="string"?i:s)},r.annotate=((i,s,c)=>{if(e.result&&e.result.state!=="run")throw new Error(`Cannot annotate tests outside of the test run. The test "${e.name}" finished running with the "${e.result.state}" state already.`);let u={message:i,type:typeof s=="object"||s===void 0?"notice":s},l=typeof s=="object"?s:c;return l&&(u.attachment=l,gu(u.attachment)),kg(e,mu(e,{type:"internal:annotation",annotation:u}).then(async({annotation:f})=>{if(!t.onTestAnnotate)throw new Error("Test runner doesn't support test annotations.");await pu(t);let h=await t.onTestAnnotate(e,f);return e.annotations.push(h),h}))}),r.onTestFailed=(i,s)=>{e.onFailed||(e.onFailed=[]),e.onFailed.push(ct(i,s??t.config.hookTimeout,true,new Error("STACK_TRACE_ERROR"),(c,u)=>o.abort(u)));},r.onTestFinished=(i,s)=>{e.onFinished||(e.onFinished=[]),e.onFinished.push(ct(i,s??t.config.hookTimeout,true,new Error("STACK_TRACE_ERROR"),(c,u)=>o.abort(u)));},((n=t.extendTaskContext)===null||n===void 0?void 0:n.call(t,r))||r}a(Sg,"createTestContext");function Tg(e,t,n){let r=`${e?"Hook":"Test"} timed out in ${t}ms.
127
+ If this is a long-running ${e?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "${e?"hookTimeout":"testTimeout"}".`,o=new Error(r);return n?.stack&&(o.stack=n.stack.replace(o.message,n.message)),o}a(Tg,"makeTimeoutError");var Eg=new WeakMap;function xg(e){let t=Eg.get(e);if(!t)throw new Error(`Cannot find file context for ${e.name}`);return t}a(xg,"getFileContext");globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;var Mg=Date.now,{clearTimeout:_g,setTimeout:Og}=at();var Di=new Map,Zl=[],Or=[];function du(e){if(Di.size){var t;let n=Array.from(Di).map(([o,i])=>[o,i[0],i[1]]),r=(t=e.onTaskUpdate)===null||t===void 0?void 0:t.call(e,n,Zl);r&&(Or.push(r),r.then(()=>Or.splice(Or.indexOf(r),1),()=>{})),Zl.length=0,Di.clear();}}a(du,"sendTasksUpdate");async function pu(e){du(e),await Promise.all(Or);}a(pu,"finishSendTasksUpdate");function Ig(e,t){let n=0,r;return a(function o(...i){let s=Mg();if(s-n>t)return n=s,_g(r),r=void 0,e.apply(this,i);r??(r=Og(()=>o.bind(this)(...i),t));},"call")}a(Ig,"throttle");Ig(du,100);async function mu(e,t){let n=bn();if(e.result&&e.result.state!=="run")throw new Error(`Cannot record a test artifact outside of the test run. The test "${e.name}" finished running with the "${e.result.state}" state already.`);let r=gn(e.file.filepath,new 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 i of t.attachments)gu(i);if(t.type==="internal:annotation")return t;if(!n.onTestArtifactRecord)throw new Error("Test runner doesn't support test artifacts.");await pu(n);let o=await n.onTestArtifactRecord(e,t);return e.artifacts.push(o),o}a(mu,"recordArtifact");var Pe=[];for(let e=65;e<91;e++)Pe.push(String.fromCharCode(e));for(let e=97;e<123;e++)Pe.push(String.fromCharCode(e));for(let e=0;e<10;e++)Pe.push(e.toString(10));Pe.push("+","/");function Cg(e){let t="",n=e.byteLength;for(let r=0;r<n;r+=3)if(n===r+1){let o=(e[r]&252)>>2,i=(e[r]&3)<<4;t+=Pe[o],t+=Pe[i],t+="==";}else if(n===r+2){let o=(e[r]&252)>>2,i=(e[r]&3)<<4|(e[r+1]&240)>>4,s=(e[r+1]&15)<<2;t+=Pe[o],t+=Pe[i],t+=Pe[s],t+="=";}else {let o=(e[r]&252)>>2,i=(e[r]&3)<<4|(e[r+1]&240)>>4,s=(e[r+1]&15)<<2|(e[r+2]&192)>>6,c=e[r+2]&63;t+=Pe[o],t+=Pe[i],t+=Pe[s],t+=Pe[c];}return t}a(Cg,"encodeUint8Array");function kg(e,t){return t=t.finally(()=>{if(!e.promises)return;let n=e.promises.indexOf(t);n!==-1&&e.promises.splice(n,1);}),e.promises||(e.promises=[]),e.promises.push(t),t}a(kg,"recordAsyncOperation");function gu(e){if(e.body==null&&!e.path)throw new TypeError('Test attachment requires "body" or "path" to be set. Both are missing.');if(e.body&&e.path)throw new TypeError('Test attachment requires only one of "body" or "path" to be set. Both are specified.');e.body instanceof Uint8Array&&(e.body=Cg(e.body));}a(gu,"manageArtifactAttachment");var $g="__vitest_worker__";function vn(){let e=globalThis[$g];if(!e)throw new Error(`Vitest failed to access its internal state.
123
128
 
124
129
  One of the following is possible:
125
130
  - "vitest" is imported directly without running "vitest" command
126
131
  - "vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)
127
132
  - "vitest" is imported inside Vite / Vitest config file
128
133
  - Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues
129
- `;throw new Error(t)}return e}a(en,"getWorkerState");function Hu(){return en()?.environment.name}a(Hu,"getCurrentEnvironment");function _s(){return typeof process<"u"&&!!process.send}a(_s,"isChildProcess");function Zu(e,t=false){let n=[/\/vitest\/dist\//,/\/vite-node\/dist\//,/vitest-virtual-\w+\/dist/,/@vitest\/dist/,...t?[]:[/^mock:/]];e.forEach((r,o)=>{n.some(i=>i.test(o))||e.invalidateModule(r);});}a(Zu,"resetModules");function dy(){let{setTimeout:e}=ft();return new Promise(t=>e(t,0))}a(dy,"waitNextTick");async function Os(){await dy();let e=en(),t=[],n=0;for(let r of e.moduleCache.values())r.promise&&!r.evaluated&&t.push(r.promise),r.resolving&&n++;!t.length&&!n||(await Promise.allSettled(t),await Os());}a(Os,"waitForImportsToResolve");var lo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a(Qu,"getDefaultExportFromCjs");var vy=44,hf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ey=new Uint8Array(64),Of=new Uint8Array(128);for(let e=0;e<hf.length;e++){let t=hf.charCodeAt(e);Ey[e]=t,Of[t]=e;}function jn(e,t){let n=0,r=0,o=0;do{let s=e.next();o=Of[s],n|=(o&31)<<r,r+=5;}while(o&32);let i=n&1;return n>>>=1,i&&(n=-2147483648|-n),t+n}a(jn,"decodeInteger");function df(e,t){return e.pos>=t?false:e.peek()!==vy}a(df,"hasMoreVlq");var Ms=class{static{a(this,"StringReader");}constructor(t){this.pos=0,this.buffer=t;}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(t){let{buffer:n,pos:r}=this,o=n.indexOf(t,r);return o===-1?n.length:o}};function Iy(e){let{length:t}=e,n=new Ms(e),r=[],o=0,i=0,s=0,c=0,l=0;do{let u=n.indexOf(";"),f=[],h=true,m=0;for(o=0;n.pos<u;){let d;o=jn(n,o),o<m&&(h=false),m=o,df(n,u)?(i=jn(n,i),s=jn(n,s),c=jn(n,c),df(n,u)?(l=jn(n,l),d=[o,i,s,c,l]):d=[o,i,s,c]):d=[o],f.push(d),n.pos++;}h||Cy(f),r.push(f),n.pos=u+1;}while(n.pos<=t);return r}a(Iy,"decode");function Cy(e){e.sort(_y);}a(Cy,"sort");function _y(e,t){return e[0]-t[0]}a(_y,"sortComparator$1");var Oy=/^[\w+.-]+:\/\//,Py=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,$y=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i,ge;(function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute";})(ge||(ge={}));function Ay(e){return Oy.test(e)}a(Ay,"isAbsoluteUrl");function ky(e){return e.startsWith("//")}a(ky,"isSchemeRelativeUrl");function Pf(e){return e.startsWith("/")}a(Pf,"isAbsolutePath");function Ny(e){return e.startsWith("file:")}a(Ny,"isFileUrl");function pf(e){return /^[.?#]/.test(e)}a(pf,"isRelative");function po(e){let t=Py.exec(e);return $f(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}a(po,"parseAbsoluteUrl");function My(e){let t=$y.exec(e),n=t[2];return $f("file:","",t[1]||"","",Pf(n)?n:"/"+n,t[3]||"",t[4]||"")}a(My,"parseFileUrl");function $f(e,t,n,r,o,i,s){return {scheme:e,user:t,host:n,port:r,path:o,query:i,hash:s,type:ge.Absolute}}a($f,"makeUrl");function mf(e){if(ky(e)){let n=po("http:"+e);return n.scheme="",n.type=ge.SchemeRelative,n}if(Pf(e)){let n=po("http://foo.com"+e);return n.scheme="",n.host="",n.type=ge.AbsolutePath,n}if(Ny(e))return My(e);if(Ay(e))return po(e);let t=po("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?ge.Query:e.startsWith("#")?ge.Hash:ge.RelativePath:ge.Empty,t}a(mf,"parseUrl");function Ry(e){if(e.endsWith("/.."))return e;let t=e.lastIndexOf("/");return e.slice(0,t+1)}a(Ry,"stripPathFilename");function jy(e,t){Af(t,t.type),e.path==="/"?e.path=t.path:e.path=Ry(t.path)+e.path;}a(jy,"mergePaths");function Af(e,t){let n=t<=ge.RelativePath,r=e.path.split("/"),o=1,i=0,s=false;for(let l=1;l<r.length;l++){let u=r[l];if(!u){s=true;continue}if(s=false,u!=="."){if(u===".."){i?(s=true,i--,o--):n&&(r[o++]=u);continue}r[o++]=u,i++;}}let c="";for(let l=1;l<o;l++)c+="/"+r[l];(!c||s&&!c.endsWith("/.."))&&(c+="/"),e.path=c;}a(Af,"normalizePath");function Fy(e,t){if(!e&&!t)return "";let n=mf(e),r=n.type;if(t&&r!==ge.Absolute){let i=mf(t),s=i.type;switch(r){case ge.Empty:n.hash=i.hash;case ge.Hash:n.query=i.query;case ge.Query:case ge.RelativePath:jy(n,i);case ge.AbsolutePath:n.user=i.user,n.host=i.host,n.port=i.port;case ge.SchemeRelative:n.scheme=i.scheme;}s>r&&(r=s);}Af(n,r);let o=n.query+n.hash;switch(r){case ge.Hash:case ge.Query:return o;case ge.RelativePath:{let i=n.path.slice(1);return i?pf(t||e)&&!pf(i)?"./"+i+o:i+o:o||"."}case ge.AbsolutePath:return n.path+o;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+o}}a(Fy,"resolve$1");function gf(e,t){return t&&!t.endsWith("/")&&(t+="/"),Fy(e,t)}a(gf,"resolve");function Ly(e){if(!e)return "";let t=e.lastIndexOf("/");return e.slice(0,t+1)}a(Ly,"stripFilename");var Ct=0,Dy=1,qy=2,By=3,zy=4;function Wy(e,t){let n=yf(e,0);if(n===e.length)return e;t||(e=e.slice());for(let r=n;r<e.length;r=yf(e,r+1))e[r]=Jy(e[r],t);return e}a(Wy,"maybeSort");function yf(e,t){for(let n=t;n<e.length;n++)if(!Uy(e[n]))return n;return e.length}a(yf,"nextUnsortedSegmentLine");function Uy(e){for(let t=1;t<e.length;t++)if(e[t][Ct]<e[t-1][Ct])return false;return true}a(Uy,"isSorted");function Jy(e,t){return t||(e=e.slice()),e.sort(Vy)}a(Jy,"sortSegments");function Vy(e,t){return e[Ct]-t[Ct]}a(Vy,"sortComparator");var yo=false;function Ky(e,t,n,r){for(;n<=r;){let o=n+(r-n>>1),i=e[o][Ct]-t;if(i===0)return yo=true,o;i<0?n=o+1:r=o-1;}return yo=false,n-1}a(Ky,"binarySearch");function Xy(e,t,n){for(let r=n+1;r<e.length&&e[r][Ct]===t;n=r++);return n}a(Xy,"upperBound");function Gy(e,t,n){for(let r=n-1;r>=0&&e[r][Ct]===t;n=r--);return n}a(Gy,"lowerBound");function Yy(){return {lastKey:-1,lastNeedle:-1,lastIndex:-1}}a(Yy,"memoizedState");function Hy(e,t,n,r){let{lastKey:o,lastNeedle:i,lastIndex:s}=n,c=0,l=e.length-1;if(r===o){if(t===i)return yo=s!==-1&&e[s][Ct]===t,s;t>=i?c=s===-1?0:s:l=s;}return n.lastKey=r,n.lastNeedle=t,n.lastIndex=Ky(e,t,c,l)}a(Hy,"memoizedBinarySearch");var Zy="`line` must be greater than 0 (lines start at line 1)",Qy="`column` must be greater than or equal to 0 (columns start at column 0)",bf=-1,eb=1,Rs=class{static{a(this,"TraceMap");}constructor(t,n){let r=typeof t=="string";if(!r&&t._decodedMemo)return t;let o=r?JSON.parse(t):t,{version:i,file:s,names:c,sourceRoot:l,sources:u,sourcesContent:f}=o;this.version=i,this.file=s,this.names=c||[],this.sourceRoot=l,this.sources=u,this.sourcesContent=f,this.ignoreList=o.ignoreList||o.x_google_ignoreList||void 0;let h=gf(l||"",Ly(n));this.resolvedSources=u.map(d=>gf(d||"",h));let{mappings:m}=o;typeof m=="string"?(this._encoded=m,this._decoded=void 0):(this._encoded=void 0,this._decoded=Wy(m,r)),this._decodedMemo=Yy(),this._bySources=void 0,this._bySourceMemos=void 0;}};function tb(e){var t;return (t=e)._decoded||(t._decoded=Iy(e._encoded))}a(tb,"decodedMappings");function nb(e,t){let{line:n,column:r,bias:o}=t;if(n--,n<0)throw new Error(Zy);if(r<0)throw new Error(Qy);let i=tb(e);if(n>=i.length)return mo(null,null,null,null);let s=i[n],c=rb(s,e._decodedMemo,n,r,o||eb);if(c===-1)return mo(null,null,null,null);let l=s[c];if(l.length===1)return mo(null,null,null,null);let{names:u,resolvedSources:f}=e;return mo(f[l[Dy]],l[qy]+1,l[By],l.length===5?u[l[zy]]:null)}a(nb,"originalPositionFor");function mo(e,t,n,r){return {source:e,line:t,column:n,name:r}}a(mo,"OMapping");function rb(e,t,n,r,o){let i=Hy(e,r,t,n);return yo?i=(o===bf?Xy:Gy)(e,r,i):o===bf&&i++,i===-1||i===e.length?-1:i}a(rb,"traceSegmentInternal");function kf(e){return e!=null}a(kf,"notNullish");function ob(e){return e===null||typeof e!="function"&&typeof e!="object"}a(ob,"isPrimitive");function go(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}a(go,"isObject");function ib(e){let t=-1,n=null,r=0,o=0,i=null;for(;t<=e.length;){i=e[t],t++;let s=e[t];if((s==='"'||s==="'"||s==="`")&&i!=="\\"&&(n===s?n=null:n||(n=s)),n||(s==="("&&r++,s===")"&&o++),r&&o&&r===o)return t}return null}a(ib,"getCallLastIndex");var Nf=/^\s*at .*(?:\S:\d+|\(native\))/m,sb=/^(?:eval@)?(?:\[native code\])?$/,ab=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function Mf(e){if(!e.includes(":"))return [e];let n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!n)return [e];let r=n[1];if(r.startsWith("async ")&&(r=r.slice(6)),r.startsWith("http:")||r.startsWith("https:")){let o=new URL(r);o.searchParams.delete("import"),o.searchParams.delete("browserv"),r=o.pathname+o.hash+o.search;}if(r.startsWith("/@fs/")){let o=/^\/@fs\/[a-zA-Z]:\//.test(r);r=r.slice(o?5:4);}return [r,n[2]||void 0,n[3]||void 0]}a(Mf,"extractLocation");function cb(e){let t=e.trim();if(sb.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":")))return null;let n=/((.*".+"[^@]*)?[^@]*)(@)/,r=t.match(n),o=r&&r[1]?r[1]:void 0,[i,s,c]=Mf(t.replace(n,""));return !i||!s||!c?null:{file:i,method:o||"",line:Number.parseInt(s),column:Number.parseInt(c)}}a(cb,"parseSingleFFOrSafariStack");function lb(e){let t=e.trim();if(!Nf.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[o,i,s]=Mf(r?r[1]:n),c=r&&n||"",l=o&&["eval","<anonymous>"].includes(o)?void 0:o;return !l||!i||!s?null:(c.startsWith("async ")&&(c=c.slice(6)),l.startsWith("file://")&&(l=l.slice(7)),l=l.startsWith("node:")||l.startsWith("internal:")?l:ys(l),c&&(c=c.replace(/__vite_ssr_import_\d+__\./g,"")),{method:c,file:l,line:Number.parseInt(i),column:Number.parseInt(s)})}a(lb,"parseSingleV8Stack");function As(e,t={}){let{ignoreStackEntries:n=ab}=t;return (Nf.test(e)?fb(e):ub(e)).map(o=>{var i;t.getUrlId&&(o.file=t.getUrlId(o.file));let s=(i=t.getSourceMap)===null||i===void 0?void 0:i.call(t,o.file);if(!s||typeof s!="object"||!s.version)return wf(n,o.file)?null:o;let c=new Rs(s),{line:l,column:u,source:f,name:h}=nb(c,o),m=o.file;if(f){let d=o.file.startsWith("file://")?o.file:`file://${o.file}`,g=s.sourceRoot?new URL(s.sourceRoot,d):d;m=new URL(f,g).pathname,m.match(/\/\w:\//)&&(m=m.slice(1));}return wf(n,m)?null:l!=null&&u!=null?{line:l,column:u,file:m,method:h||o.method}:o}).filter(o=>o!=null)}a(As,"parseStacktrace");function wf(e,t){return e.some(n=>t.match(n))}a(wf,"shouldFilter");function ub(e){return e.split(`
130
- `).map(t=>cb(t)).filter(kf)}a(ub,"parseFFOrSafariStackTrace");function fb(e){return e.split(`
131
- `).map(t=>lb(t)).filter(kf)}a(fb,"parseV8Stacktrace");function hb(e,t={}){if(!e||ob(e))return [];if(e.stacks)return e.stacks;let n=e.stack||"",r=typeof n=="string"?As(n,t):[];if(!r.length){let o=e;o.fileName!=null&&o.lineNumber!=null&&o.columnNumber!=null&&(r=As(`${o.fileName}:${o.lineNumber}:${o.columnNumber}`,t)),o.sourceURL!=null&&o.line!=null&&o._column!=null&&(r=As(`${o.sourceURL}:${o.line}:${o.column}`,t));}return t.frameFilter&&(r=r.filter(o=>t.frameFilter(e,o)!==false)),e.stacks=r,r}a(hb,"parseErrorStacktrace");a(()=>"Promise{\u2026}","getPromiseValue");try{let{getPromiseDetails:e,kPending:t,kRejected:n}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(a((r,o)=>{let[i,s]=e(r);return i===t?"Promise{<pending>}":`Promise${i===n?"!":""}{${o.inspect(s,o)}}`},"getPromiseValue"));}catch{}function pb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a(pb,"getDefaultExportFromCjs");var ks,Sf;function mb(){if(Sf)return ks;Sf=1;var e,t,n,r,o,i,s,c,l,u,f,h,m,d,g,p,S,T,I;return m=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,h=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,e=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,g=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,f=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,p=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,I=/[\t\v\f\ufeff\p{Zs}]+/yu,c=/\r?\n|[\r\u2028\u2029]/y,l=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,d=/\/\/.*/y,n=/[<>.:={}]|\/(?![\/*])/y,t=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,r=/(['"])(?:(?!\1)[^])*(\1)?/y,o=/[^<>{}]+/y,T=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,S=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,i=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,s=/^(?:return|throw|yield)$/,u=RegExp(c.source),ks=a(function*(P,{jsx:A=false}={}){var $,j,k,O,M,K,_,V,le,U,Z,R,Y,L;for({length:K}=P,O=0,M="",L=[{tag:"JS"}],$=[],Z=0,R=false;O<K;){switch(V=L[L.length-1],V.tag){case "JS":case "JSNonExpressionParen":case "InterpolationInTemplate":case "InterpolationInJSX":if(P[O]==="/"&&(T.test(M)||i.test(M))&&(m.lastIndex=O,_=m.exec(P))){O=m.lastIndex,M=_[0],R=true,yield {type:"RegularExpressionLiteral",value:_[0],closed:_[1]!==void 0&&_[1]!=="\\"};continue}if(h.lastIndex=O,_=h.exec(P)){switch(Y=_[0],le=h.lastIndex,U=Y,Y){case "(":M==="?NonExpressionParenKeyword"&&L.push({tag:"JSNonExpressionParen",nesting:Z}),Z++,R=false;break;case ")":Z--,R=true,V.tag==="JSNonExpressionParen"&&Z===V.nesting&&(L.pop(),U="?NonExpressionParenEnd",R=false);break;case "{":h.lastIndex=0,k=!S.test(M)&&(T.test(M)||i.test(M)),$.push(k),R=false;break;case "}":switch(V.tag){case "InterpolationInTemplate":if($.length===V.nesting){p.lastIndex=O,_=p.exec(P),O=p.lastIndex,M=_[0],_[1]==="${"?(M="?InterpolationInTemplate",R=false,yield {type:"TemplateMiddle",value:_[0]}):(L.pop(),R=true,yield {type:"TemplateTail",value:_[0],closed:_[1]==="`"});continue}break;case "InterpolationInJSX":if($.length===V.nesting){L.pop(),O+=1,M="}",yield {type:"JSXPunctuator",value:"}"};continue}}R=$.pop(),U=R?"?ExpressionBraceEnd":"}";break;case "]":R=true;break;case "++":case "--":U=R?"?PostfixIncDec":"?UnaryIncDec";break;case "<":if(A&&(T.test(M)||i.test(M))){L.push({tag:"JSXTag"}),O+=1,M="<",yield {type:"JSXPunctuator",value:Y};continue}R=false;break;default:R=false;}O=le,M=U,yield {type:"Punctuator",value:Y};continue}if(e.lastIndex=O,_=e.exec(P)){switch(O=e.lastIndex,U=_[0],_[0]){case "for":case "if":case "while":case "with":M!=="."&&M!=="?."&&(U="?NonExpressionParenKeyword");}M=U,R=!i.test(_[0]),yield {type:_[1]==="#"?"PrivateIdentifier":"IdentifierName",value:_[0]};continue}if(g.lastIndex=O,_=g.exec(P)){O=g.lastIndex,M=_[0],R=true,yield {type:"StringLiteral",value:_[0],closed:_[2]!==void 0};continue}if(f.lastIndex=O,_=f.exec(P)){O=f.lastIndex,M=_[0],R=true,yield {type:"NumericLiteral",value:_[0]};continue}if(p.lastIndex=O,_=p.exec(P)){O=p.lastIndex,M=_[0],_[1]==="${"?(M="?InterpolationInTemplate",L.push({tag:"InterpolationInTemplate",nesting:$.length}),R=false,yield {type:"TemplateHead",value:_[0]}):(R=true,yield {type:"NoSubstitutionTemplate",value:_[0],closed:_[1]==="`"});continue}break;case "JSXTag":case "JSXTagEnd":if(n.lastIndex=O,_=n.exec(P)){switch(O=n.lastIndex,U=_[0],_[0]){case "<":L.push({tag:"JSXTag"});break;case ">":L.pop(),M==="/"||V.tag==="JSXTagEnd"?(U="?JSX",R=true):L.push({tag:"JSXChildren"});break;case "{":L.push({tag:"InterpolationInJSX",nesting:$.length}),U="?InterpolationInJSX",R=false;break;case "/":M==="<"&&(L.pop(),L[L.length-1].tag==="JSXChildren"&&L.pop(),L.push({tag:"JSXTagEnd"}));}M=U,yield {type:"JSXPunctuator",value:_[0]};continue}if(t.lastIndex=O,_=t.exec(P)){O=t.lastIndex,M=_[0],yield {type:"JSXIdentifier",value:_[0]};continue}if(r.lastIndex=O,_=r.exec(P)){O=r.lastIndex,M=_[0],yield {type:"JSXString",value:_[0],closed:_[2]!==void 0};continue}break;case "JSXChildren":if(o.lastIndex=O,_=o.exec(P)){O=o.lastIndex,M=_[0],yield {type:"JSXText",value:_[0]};continue}switch(P[O]){case "<":L.push({tag:"JSXTag"}),O++,M="<",yield {type:"JSXPunctuator",value:"<"};continue;case "{":L.push({tag:"InterpolationInJSX",nesting:$.length}),O++,M="?InterpolationInJSX",R=false,yield {type:"JSXPunctuator",value:"{"};continue}}if(I.lastIndex=O,_=I.exec(P)){O=I.lastIndex,yield {type:"WhiteSpace",value:_[0]};continue}if(c.lastIndex=O,_=c.exec(P)){O=c.lastIndex,R=false,s.test(M)&&(M="?NoLineTerminatorHere"),yield {type:"LineTerminatorSequence",value:_[0]};continue}if(l.lastIndex=O,_=l.exec(P)){O=l.lastIndex,u.test(_[0])&&(R=false,s.test(M)&&(M="?NoLineTerminatorHere")),yield {type:"MultiLineComment",value:_[0],closed:_[1]!==void 0};continue}if(d.lastIndex=O,_=d.exec(P)){O=d.lastIndex,R=false,yield {type:"SingleLineComment",value:_[0]};continue}j=String.fromCodePoint(P.codePointAt(O)),O+=j.length,M=j,R=false,yield {type:V.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:j};}},"jsTokens_1"),ks}a(mb,"requireJsTokens");mb();var Rf={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(Rf.keyword);new Set(Rf.strict);var gb={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]},yb=Object.entries(gb);function Ds(e){return String(e)}a(Ds,"a");Ds.open="";Ds.close="";function bb(e=false){let t=typeof process<"u"?process:void 0,n=t?.env||{},r=t?.argv||[];return !("NO_COLOR"in n||r.includes("--no-color"))&&("FORCE_COLOR"in n||r.includes("--color")||t?.platform==="win32"||e&&n.TERM!=="dumb"||"CI"in n)||typeof window<"u"&&!!window.chrome}a(bb,"C");function wb(e=false){let t=bb(e),n=a((s,c,l,u)=>{let f="",h=0;do f+=s.substring(h,u)+l,h=u+c.length,u=s.indexOf(c,h);while(~u);return f+s.substring(h)},"i"),r=a((s,c,l=s)=>{let u=a(f=>{let h=String(f),m=h.indexOf(c,s.length);return ~m?s+n(h,c,l,m)+c:s+h+c},"o");return u.open=s,u.close=c,u},"g"),o={isColorSupported:t},i=a(s=>`\x1B[${s}m`,"d");for(let[s,c]of yb)o[s]=t?r(i(c[0]),i(c[1]),c[2]):Ds;return o}a(wb,"p");wb();var qs=/\r?\n/;function Sb(e,t,n){let r=e.split(qs),o=/\r\n/.test(e)?2:1,i=0;if(t>r.length)return e.length;for(let s=0;s<t-1;s++)i+=r[s].length+o;return i+n}a(Sb,"positionToOffset");function Tb(e,t){if(t>e.length)throw new Error(`offset is longer than source length! offset ${t} > length ${e.length}`);let n=e.split(qs),r=/\r\n/.test(e)?2:1,o=0,i=0;for(;i<n.length;i++){let s=n[i].length+r;if(o+s>=t)break;o+=s;}return i+1}a(Tb,"offsetToLineNumber");async function xb(e,t){let n=(await Promise.resolve().then(()=>(ff(),uf))).default,r=new Set(t.map(o=>o.file));await Promise.all(Array.from(r).map(async o=>{let i=t.filter(u=>u.file===o),s=await e.readSnapshotFile(o),c=new n(s);for(let u of i){let f=Sb(s,u.line,u.column);Ob(s,c,f,u.snapshot);}let l=c.toString();l!==s&&await e.saveSnapshotFile(o,l);}));}a(xb,"saveInlineSnapshots");var vb=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*\{/;function Eb(e,t,n,r){let o=e.slice(n),i=vb.exec(o);if(!i)return false;o=o.slice(i.index);let s=ib(o);if(s===null)return false;s+=n+i.index;let c=n+i.index+i[0].length,l=Ib(e,c),u=`, ${jf(r,e,n)}`;return l===s?t.appendLeft(s,u):t.overwrite(l,s,u),true}a(Eb,"replaceObjectSnap");function Ib(e,t){let n=1,r=0;for(;n!==r&&t<e.length;){let o=e[t++];o==="{"?n++:o==="}"&&r++;}return t}a(Ib,"getObjectShapeEndIndex");function jf(e,t,n){let r=Tb(t,n),i=t.split(qs)[r-1].match(/^\s*/)[0]||"",s=i.includes(" ")?`${i} `:`${i} `,c=e.trim().replace(/\\/g,"\\\\").split(/\n/g),l=c.length<=1,u="`";return l?`${u}${c.join(`
132
- `).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}${u}`:`${u}
134
+ `);return e}a(vn,"getWorkerState");function Ui(){return typeof process<"u"&&!!process.send}a(Ui,"isChildProcess");function yu(e,t=false){let n=[/\/vitest\/dist\//,/vitest-virtual-\w+\/dist/,/@vitest\/dist/,...t?[]:[/^mock:/]];e.idToModuleMap.forEach((r,o)=>{n.some(i=>i.test(o))||(r.promise=void 0,r.exports=void 0,r.evaluated=false,r.importers.clear());});}a(yu,"resetModules");function Ng(){let{setTimeout:e}=at();return new Promise(t=>e(t,0))}a(Ng,"waitNextTick");async function Wi(){await Ng();let e=vn(),t=[],n=e.resolvingModules.size;for(let[r,o]of e.evaluatedModules.idToModuleMap)o.promise&&!o.evaluated&&t.push(o.promise);!t.length&&!n||(await Promise.allSettled(t),await Wi());}a(Wi,"waitForImportsToResolve");var zg=44,Cu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ug=new Uint8Array(64),qu=new Uint8Array(128);for(let e=0;e<Cu.length;e++){let t=Cu.charCodeAt(e);Ug[e]=t,qu[t]=e;}function Mn(e,t){let n=0,r=0,o=0;do{let s=e.next();o=qu[s],n|=(o&31)<<r,r+=5;}while(o&32);let i=n&1;return n>>>=1,i&&(n=-2147483648|-n),t+n}a(Mn,"decodeInteger");function ku(e,t){return e.pos>=t?false:e.peek()!==zg}a(ku,"hasMoreVlq");var Wg=class{static{a(this,"StringReader");}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 Vg(e){let{length:t}=e,n=new Wg(e),r=[],o=0,i=0,s=0,c=0,u=0;do{let l=n.indexOf(";"),f=[],h=true,d=0;for(o=0;n.pos<l;){let p;o=Mn(n,o),o<d&&(h=false),d=o,ku(n,l)?(i=Mn(n,i),s=Mn(n,s),c=Mn(n,c),ku(n,l)?(u=Mn(n,u),p=[o,i,s,c,u]):p=[o,i,s,c]):p=[o],f.push(p),n.pos++;}h||Kg(f),r.push(f),n.pos=l+1;}while(n.pos<=t);return r}a(Vg,"decode");function Kg(e){e.sort(Gg);}a(Kg,"sort");function Gg(e,t){return e[0]-t[0]}a(Gg,"sortComparator");var Dr=0,Hg=1,Jg=2,Yg=3,Zg=4,jr=false;function Xg(e,t,n,r){for(;n<=r;){let o=n+(r-n>>1),i=e[o][Dr]-t;if(i===0)return jr=true,o;i<0?n=o+1:r=o-1;}return jr=false,n-1}a(Xg,"binarySearch");function Qg(e,t,n){for(let r=n+1;r<e.length&&e[r][Dr]===t;n=r++);return n}a(Qg,"upperBound");function ey(e,t,n){for(let r=n-1;r>=0&&e[r][Dr]===t;n=r--);return n}a(ey,"lowerBound");function ty(e,t,n,r){let{lastKey:o,lastNeedle:i,lastIndex:s}=n,c=0,u=e.length-1;if(r===o){if(t===i)return jr=s!==-1&&e[s][Dr]===t,s;t>=i?c=s===-1?0:s:u=s;}return n.lastKey=r,n.lastNeedle=t,n.lastIndex=Xg(e,t,c,u)}a(ty,"memoizedBinarySearch");var ny="`line` must be greater than 0 (lines start at line 1)",ry="`column` must be greater than or equal to 0 (columns start at column 0)",$u=-1,oy=1;function iy(e){var t;return (t=e)._decoded||(t._decoded=Vg(e._encoded))}a(iy,"decodedMappings");function sy(e,t){let{line:n,column:r,bias:o}=t;if(n--,n<0)throw new Error(ny);if(r<0)throw new Error(ry);let i=iy(e);if(n>=i.length)return Ar(null,null,null,null);let s=i[n],c=ay(s,e._decodedMemo,n,r,o||oy);if(c===-1)return Ar(null,null,null,null);let u=s[c];if(u.length===1)return Ar(null,null,null,null);let{names:l,resolvedSources:f}=e;return Ar(f[u[Hg]],u[Jg]+1,u[Yg],u.length===5?l[u[Zg]]:null)}a(sy,"originalPositionFor");function Ar(e,t,n,r){return {source:e,line:t,column:n,name:r}}a(Ar,"OMapping");function ay(e,t,n,r,o){let i=ty(e,r,t,n);return jr?i=(o===$u?Qg:ey)(e,r,i):o===$u&&i++,i===-1||i===e.length?-1:i}a(ay,"traceSegmentInternal");function Bu(e){return e!=null}a(Bu,"notNullish");function cy(e){return e===null||typeof e!="function"&&typeof e!="object"}a(cy,"isPrimitive");function Pr(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}a(Pr,"isObject");function ly(e){let t=-1,n=null,r=0,o=0,i=null;for(;t<=e.length;){i=e[t],t++;let s=e[t];if((s==='"'||s==="'"||s==="`")&&i!=="\\"&&(n===s?n=null:n||(n=s)),n||(s==="("&&r++,s===")"&&o++),r&&o&&r===o)return t}return null}a(ly,"getCallLastIndex");var zu=/^\s*at .*(?:\S:\d+|\(native\))/m,uy=/^(?:eval@)?(?:\[native code\])?$/,fy=["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__/,/\/deps\/vitest_/];function Uu(e){if(!e.includes(":"))return [e];let n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!n)return [e];let r=n[1];if(r.startsWith("async ")&&(r=r.slice(6)),r.startsWith("http:")||r.startsWith("https:")){let o=new URL(r);o.searchParams.delete("import"),o.searchParams.delete("browserv"),r=o.pathname+o.hash+o.search;}if(r.startsWith("/@fs/")){let o=/^\/@fs\/[a-zA-Z]:\//.test(r);r=r.slice(o?5:4);}return [r,n[2]||void 0,n[3]||void 0]}a(Uu,"extractLocation");function hy(e){let t=e.trim();if(uy.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="",o;for(let u=0;u<t.length;u++)if(t[u]==="@"){let l=t.slice(u+1);if(l.includes(":")&&l.length>=3){n=u,r=l,o=u>0?t.slice(0,u):void 0;break}}if(n===-1||!r.includes(":")||r.length<3)return null;let[i,s,c]=Uu(r);return !i||!s||!c?null:{file:i,method:o||"",line:Number.parseInt(s),column:Number.parseInt(c)}}a(hy,"parseSingleFFOrSafariStack");function dy(e){let t=e.trim();if(!zu.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[o,i,s]=Uu(r?r[1]:n),c=r&&n||"",u=o&&["eval","<anonymous>"].includes(o)?void 0:o;return !u||!i||!s?null:(c.startsWith("async ")&&(c=c.slice(6)),u.startsWith("file://")&&(u=u.slice(7)),u=u.startsWith("node:")||u.startsWith("internal:")?u:xr(u),c&&(c=c.replace(/__vite_ssr_import_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:c,file:u,line:Number.parseInt(i),column:Number.parseInt(s)})}a(dy,"parseSingleV8Stack");function Gi(e,t={}){let{ignoreStackEntries:n=fy}=t;return (zu.test(e)?my(e):py(e)).map(o=>{var i;t.getUrlId&&(o.file=t.getUrlId(o.file));let s=(i=t.getSourceMap)===null||i===void 0?void 0:i.call(t,o.file);if(!s||typeof s!="object"||!s.version)return Nu(n,o.file)?null:o;let c=new Ji(s,o.file),u=by(c,o);if(!u)return o;let{line:l,column:f,source:h,name:d}=u,p=h||o.file;return p.match(/\/\w:\//)&&(p=p.slice(1)),Nu(n,p)?null:l!=null&&f!=null?{line:l,column:f,file:p,method:d||o.method}:o}).filter(o=>o!=null)}a(Gi,"parseStacktrace");function Nu(e,t){return e.some(n=>t.match(n))}a(Nu,"shouldFilter");function py(e){return e.split(`
135
+ `).map(t=>hy(t)).filter(Bu)}a(py,"parseFFOrSafariStackTrace");function my(e){return e.split(`
136
+ `).map(t=>dy(t)).filter(Bu)}a(my,"parseV8Stacktrace");function gy(e,t={}){if(!e||cy(e))return [];if("stacks"in e&&e.stacks)return e.stacks;let n=e.stack||"",r=typeof n=="string"?Gi(n,t):[];if(!r.length){let o=e;o.fileName!=null&&o.lineNumber!=null&&o.columnNumber!=null&&(r=Gi(`${o.fileName}:${o.lineNumber}:${o.columnNumber}`,t)),o.sourceURL!=null&&o.line!=null&&o._column!=null&&(r=Gi(`${o.sourceURL}:${o.line}:${o.column}`,t));}return t.frameFilter&&(r=r.filter(o=>t.frameFilter(e,o)!==false)),e.stacks=r,r}a(gy,"parseErrorStacktrace");var Ji=class{static{a(this,"DecodedMap");}_encoded;_decoded;_decodedMemo;url;version;names=[];resolvedSources;constructor(t,n){this.map=t;let{mappings:r,names:o,sources:i}=t;this.version=t.version,this.names=o||[],this._encoded=r||"",this._decodedMemo=yy(),this.url=n,this.resolvedSources=(i||[]).map(s=>xr(s||"",n));}};function yy(){return {lastKey:-1,lastNeedle:-1,lastIndex:-1}}a(yy,"memoizedState");function by(e,t){let n=sy(e,t);return n.column==null?null:n}a(by,"getOriginalPosition");var Qi=/\r?\n/;function wy(e,t,n){let r=e.split(Qi),o=/\r\n/.test(e)?2:1,i=0;if(t>r.length)return e.length;for(let s=0;s<t-1;s++)i+=r[s].length+o;return i+n}a(wy,"positionToOffset");function vy(e,t){if(t>e.length)throw new Error(`offset is longer than source length! offset ${t} > length ${e.length}`);let n=e.split(Qi),r=/\r\n/.test(e)?2:1,o=0,i=0;for(;i<n.length;i++){let s=n[i].length+r;if(o+s>=t)break;o+=s;}return i+1}a(vy,"offsetToLineNumber");async function Sy(e,t){let n=(await Promise.resolve().then(()=>(Iu(),Ou))).default,r=new Set(t.map(o=>o.file));await Promise.all(Array.from(r).map(async o=>{let i=t.filter(l=>l.file===o),s=await e.readSnapshotFile(o),c=new n(s);for(let l of i){let f=wy(s,l.line,l.column);Oy(s,c,f,l.snapshot);}let u=c.toString();u!==s&&await e.saveSnapshotFile(o,u);}));}a(Sy,"saveInlineSnapshots");var Ty=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*\{/;function Ey(e,t,n,r){let o=e.slice(n),i=Ty.exec(o);if(!i)return false;o=o.slice(i.index);let s=ly(o);if(s===null)return false;s+=n+i.index;let c=n+i.index+i[0].length,u=xy(e,c),l=`, ${Wu(r,e,n)}`;return u===s?t.appendLeft(s,l):t.overwrite(u,s,l),true}a(Ey,"replaceObjectSnap");function xy(e,t){let n=1,r=0;for(;n!==r&&t<e.length;){let o=e[t++];o==="{"?n++:o==="}"&&r++;}return t}a(xy,"getObjectShapeEndIndex");function Wu(e,t,n){let r=vy(t,n),i=t.split(Qi)[r-1].match(/^\s*/)[0]||"",s=i.includes(" ")?`${i} `:`${i} `,c=e.trim().replace(/\\/g,"\\\\").split(/\n/g),u=c.length<=1,l="`";return u?`${l}${c.join(`
137
+ `).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}${l}`:`${l}
133
138
  ${c.map(f=>f?s+f:"").join(`
134
139
  `).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}
135
- ${i}${u}`}a(jf,"prepareSnapString");var Tf="toMatchInlineSnapshot",xf="toThrowErrorMatchingInlineSnapshot";function Cb(e,t){let n=t-Tf.length;if(e.slice(n,t)===Tf)return {code:e.slice(n),index:n};let r=t-xf.length;return e.slice(t-r,t)===xf?{code:e.slice(t-r),index:t-r}:{code:e.slice(t),index:t}}a(Cb,"getCodeStartingAtIndex");var _b=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*[\w$]*(['"`)])/;function Ob(e,t,n,r){let{code:o,index:i}=Cb(e,n),s=_b.exec(o),c=/toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot/.exec(o);if(!s||s.index!==c?.index)return Eb(e,t,i,r);let l=s[1],u=i+s.index+s[0].length,f=jf(r,e,i);if(l===")")return t.appendRight(u-1,f),true;let m=new RegExp(`(?:^|[^\\\\])${l}`).exec(e.slice(u));if(!m)return false;let d=u+m.index+m[0].length;return t.overwrite(u-1,d,f),true}a(Ob,"replaceInlineSnap");var Pb=/^([^\S\n]*)\S/m;function Bs(e){let t=e.match(Pb);if(!t||!t[1])return e;let n=t[1],r=e.split(/\n/g);if(r.length<=2||r[0].trim()!==""||r[r.length-1].trim()!=="")return e;for(let o=1;o<r.length-1;o++)if(r[o]!==""){if(r[o].indexOf(n)!==0)return e;r[o]=r[o].substring(n.length);}return r[r.length-1]="",e=r.join(`
136
- `),e}a(Bs,"stripSnapshotIndentation");async function $b(e,t){await Promise.all(t.map(async n=>{n.readonly||await e.saveSnapshotFile(n.file,n.snapshot);}));}a($b,"saveRawSnapshots");var Ns={exports:{}},vf;function Ab(){if(vf)return Ns.exports;vf=1;var e=a(function(t,n){var r,o,i=1,s=0,c=0,l=String.alphabet;function u(f,h,m){if(m){for(r=h;m=u(f,r),m<76&&m>65;)++r;return +f.slice(h-1,r)}return m=l&&l.indexOf(f.charAt(h)),m>-1?m+76:(m=f.charCodeAt(h)||0,m<45||m>127?m:m<46?65:m<48?m-1:m<58?m+18:m<65?m-11:m<91?m+11:m<97?m-37:m<123?m+5:m-63)}if(a(u,"getCode"),(t+="")!=(n+="")){for(;i;)if(o=u(t,s++),i=u(n,c++),o<76&&i<76&&o>66&&i>66&&(o=u(t,s,s),i=u(n,c,s=r),c=r),o!=i)return o<i?-1:1}return 0},"naturalCompare");try{Ns.exports=e;}catch{String.naturalCompare=e;}return Ns.exports}a(Ab,"requireNaturalCompare");var kb=Ab(),Nb=pb(kb),Mb=a((e,t,n,r,o,i)=>{let s=e.getMockName(),c=s==="vi.fn()"?"":` ${s}`,l="";if(e.mock.calls.length!==0){let u=n+t.indent;l=` {${t.spacingOuter}${u}"calls": ${i(e.mock.calls,t,u,r,o)}${t.min?", ":","}${t.spacingOuter}${u}"results": ${i(e.mock.results,t,u,r,o)}${t.min?"":","}${t.spacingOuter}${n}}`;}return `[MockFunction${c}]${l}`},"serialize$1"),Rb=a(e=>e&&!!e._isMockFunction,"test"),jb={serialize:Mb,test:Rb},{DOMCollection:Fb,DOMElement:Lb,Immutable:Db,ReactElement:qb,ReactTestComponent:Bb,AsymmetricMatcher:zb}=gt,js=[Bb,qb,Lb,Fb,Db,zb,jb];function Ff(e){js=[e].concat(js);}a(Ff,"addSerializer");function Wb(){return js}a(Wb,"getSerializers");function Ub(e,t){return `${e} ${t}`}a(Ub,"testNameToKey");function Jb(e){if(!/ \d+$/.test(e))throw new Error("Snapshot keys must end with a number.");return e.replace(/ \d+$/,"")}a(Jb,"keyToTestName");function Vb(e,t){let n=t.updateSnapshot,r=Object.create(null),o="",i=false;if(e!=null)try{o=e,new Function("exports",o)(r);}catch{}return (n==="all"||n==="new")&&o&&(i=true),{data:r,dirty:i}}a(Vb,"getSnapshotData");function Kb(e){return e.includes(`
140
+ ${i}${l}`}a(Wu,"prepareSnapString");var Au="toMatchInlineSnapshot",Pu="toThrowErrorMatchingInlineSnapshot";function My(e,t){let n=t-Au.length;if(e.slice(n,t)===Au)return {code:e.slice(n),index:n};let r=t-Pu.length;return e.slice(t-r,t)===Pu?{code:e.slice(t-r),index:t-r}:{code:e.slice(t),index:t}}a(My,"getCodeStartingAtIndex");var _y=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*[\w$]*(['"`)])/;function Oy(e,t,n,r){let{code:o,index:i}=My(e,n),s=_y.exec(o),c=/toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot/.exec(o);if(!s||s.index!==c?.index)return Ey(e,t,i,r);let u=s[1],l=i+s.index+s[0].length,f=Wu(r,e,i);if(u===")")return t.appendRight(l-1,f),true;let d=new RegExp(`(?:^|[^\\\\])${u}`).exec(e.slice(l));if(!d)return false;let p=l+d.index+d[0].length;return t.overwrite(l-1,p,f),true}a(Oy,"replaceInlineSnap");var Iy=/^([^\S\n]*)\S/m;function es(e){var t;let n=e.match(Iy);if(!n||!n[1])return e;let r=n[1],o=e.split(/\n/g);if(o.length<=2||o[0].trim()!==""||((t=o.at(-1))===null||t===void 0?void 0:t.trim())!=="")return e;for(let i=1;i<o.length-1;i++)if(o[i]!==""){if(o[i].indexOf(r)!==0)return e;o[i]=o[i].substring(r.length);}return o[o.length-1]="",e=o.join(`
141
+ `),e}a(es,"stripSnapshotIndentation");async function Cy(e,t){await Promise.all(t.map(async n=>{n.readonly||await e.saveSnapshotFile(n.file,n.snapshot);}));}a(Cy,"saveRawSnapshots");function ky(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a(ky,"getDefaultExportFromCjs");var Hi={exports:{}},ju;function $y(){if(ju)return Hi.exports;ju=1;var e=a(function(t,n){var r,o,i=1,s=0,c=0,u=String.alphabet;function l(f,h,d){if(d){for(r=h;d=l(f,r),d<76&&d>65;)++r;return +f.slice(h-1,r)}return d=u&&u.indexOf(f.charAt(h)),d>-1?d+76:(d=f.charCodeAt(h)||0,d<45||d>127?d:d<46?65:d<48?d-1:d<58?d+18:d<65?d-11:d<91?d+11:d<97?d-37:d<123?d+5:d-63)}if(a(l,"getCode"),(t+="")!=(n+="")){for(;i;)if(o=l(t,s++),i=l(n,c++),o<76&&i<76&&o>66&&i>66&&(o=l(t,s,s),i=l(n,c,s=r),c=r),o!=i)return o<i?-1:1}return 0},"naturalCompare");try{Hi.exports=e;}catch{String.naturalCompare=e;}return Hi.exports}a($y,"requireNaturalCompare");var Ny=$y(),Ay=ky(Ny),Py=a((e,t,n,r,o,i)=>{let s=e.getMockName(),c=s==="vi.fn()"?"":` ${s}`,u="";if(e.mock.calls.length!==0){let l=n+t.indent;u=` {${t.spacingOuter}${l}"calls": ${i(e.mock.calls,t,l,r,o)}${t.min?", ":","}${t.spacingOuter}${l}"results": ${i(e.mock.results,t,l,r,o)}${t.min?"":","}${t.spacingOuter}${n}}`;}return `[MockFunction${c}]${u}`},"serialize$1"),jy=a(e=>e&&!!e._isMockFunction,"test"),Ry={serialize:Py,test:jy},{DOMCollection:Fy,DOMElement:Dy,Immutable:Ly,ReactElement:qy,ReactTestComponent:By,AsymmetricMatcher:zy}=wt,Yi=[By,qy,Dy,Fy,Ly,zy,Ry];function Vu(e){Yi=[e].concat(Yi);}a(Vu,"addSerializer");function Uy(){return Yi}a(Uy,"getSerializers");function Wy(e,t){return `${e} ${t}`}a(Wy,"testNameToKey");function Vy(e){if(!/ \d+$/.test(e))throw new Error("Snapshot keys must end with a number.");return e.replace(/ \d+$/,"")}a(Vy,"keyToTestName");function Ky(e,t){let n=t.updateSnapshot,r=Object.create(null),o="",i=false;if(e!=null)try{o=e,new Function("exports",o)(r);}catch{}return (n==="all"||n==="new")&&o&&(i=true),{data:r,dirty:i}}a(Ky,"getSnapshotData");function Gy(e){return e.includes(`
137
142
  `)?`
138
143
  ${e}
139
- `:e}a(Kb,"addExtraLineBreaks");function Ef(e){return e.length>2&&e.startsWith(`
140
- `)&&e.endsWith(`
141
- `)?e.slice(1,-1):e}a(Ef,"removeExtraLineBreaks");var Xb=true,Gb=false;function Yb(e,t=2,n={}){return zs(je(e,{escapeRegex:Xb,indent:t,plugins:Wb(),printFunctionName:Gb,...n}))}a(Yb,"serialize");function Hb(e){return e.replace(/`|\\|\$\{/g,"\\$&")}a(Hb,"escapeBacktickString");function If(e){return `\`${Hb(e)}\``}a(If,"printBacktickString");function zs(e){return e.replace(/\r\n|\r/g,`
142
- `)}a(zs,"normalizeNewlines");async function Zb(e,t,n){let r=Object.keys(t).sort(Nb).map(c=>`exports[${If(c)}] = ${If(zs(t[c]))};`),o=`${e.getHeader()}
144
+ `:e}a(Gy,"addExtraLineBreaks");function Ru(e){return e.length>2&&e[0]===`
145
+ `&&e.endsWith(`
146
+ `)?e.slice(1,-1):e}a(Ru,"removeExtraLineBreaks");var Hy=true,Jy=false;function Yy(e,t=2,n={}){return ts(Ie(e,{escapeRegex:Hy,indent:t,plugins:Uy(),printFunctionName:Jy,...n}))}a(Yy,"serialize");function Zy(e){return e.replace(/`|\\|\$\{/g,"\\$&")}a(Zy,"escapeBacktickString");function Fu(e){return `\`${Zy(e)}\``}a(Fu,"printBacktickString");function ts(e){return e.replace(/\r\n|\r/g,`
147
+ `)}a(ts,"normalizeNewlines");async function Xy(e,t,n){let r=Object.keys(t).sort(Ay).map(c=>`exports[${Fu(c)}] = ${Fu(ts(t[c]))};`),o=`${e.getHeader()}
143
148
 
144
149
  ${r.join(`
145
150
 
146
151
  `)}
147
- `,i=await e.readSnapshotFile(n);i!=null&&i===o||await e.saveSnapshotFile(n,o);}a(Zb,"saveSnapshotFile");function Fs(e=[],t=[]){let n=Array.from(e);return t.forEach((r,o)=>{let i=n[o];Array.isArray(e[o])?n[o]=Fs(e[o],r):go(i)?n[o]=Ws(e[o],r):n[o]=r;}),n}a(Fs,"deepMergeArray");function Ws(e,t){if(go(e)&&go(t)){let n={...e};return Object.keys(t).forEach(r=>{go(t[r])&&!t[r].$$typeof?r in e?n[r]=Ws(e[r],t[r]):Object.assign(n,{[r]:t[r]}):Array.isArray(t[r])?n[r]=Fs(e[r],t[r]):Object.assign(n,{[r]:t[r]});}),n}else if(Array.isArray(e)&&Array.isArray(t))return Fs(e,t);return e}a(Ws,"deepMergeSnapshot");var bo=class extends Map{static{a(this,"DefaultMap");}constructor(t,n){super(n),this.defaultFn=t;}get(t){return this.has(t)||this.set(t,this.defaultFn(t)),super.get(t)}},Bt=class extends bo{static{a(this,"CounterMap");}constructor(){super(()=>0);}_total;valueOf(){return this._total=this.total()}increment(t){typeof this._total<"u"&&this._total++,this.set(t,this.get(t)+1);}total(){if(typeof this._total<"u")return this._total;let t=0;for(let n of this.values())t+=n;return t}};function Cf(e,t){return e.file===t.file&&e.column===t.column&&e.line===t.line}a(Cf,"isSameStackPosition");var Ls=class e{static{a(this,"SnapshotState");}_counters=new Bt;_dirty;_updateSnapshot;_snapshotData;_initialData;_inlineSnapshots;_inlineSnapshotStacks;_testIdToKeys=new bo(()=>[]);_rawSnapshots;_uncheckedKeys;_snapshotFormat;_environment;_fileExists;expand;_added=new Bt;_matched=new Bt;_unmatched=new Bt;_updated=new Bt;get added(){return this._added}set added(t){this._added._total=t;}get matched(){return this._matched}set matched(t){this._matched._total=t;}get unmatched(){return this._unmatched}set unmatched(t){this._unmatched._total=t;}get updated(){return this._updated}set updated(t){this._updated._total=t;}constructor(t,n,r,o){this.testFilePath=t,this.snapshotPath=n;let{data:i,dirty:s}=Vb(r,o);this._fileExists=r!=null,this._initialData={...i},this._snapshotData={...i},this._dirty=s,this._inlineSnapshots=[],this._inlineSnapshotStacks=[],this._rawSnapshots=[],this._uncheckedKeys=new Set(Object.keys(this._snapshotData)),this.expand=o.expand||false,this._updateSnapshot=o.updateSnapshot,this._snapshotFormat={printBasicPrototype:false,escapeString:false,...o.snapshotFormat},this._environment=o.snapshotEnvironment;}static async create(t,n){let r=await n.snapshotEnvironment.resolvePath(t),o=await n.snapshotEnvironment.readSnapshotFile(r);return new e(t,r,o,n)}get environment(){return this._environment}markSnapshotsAsCheckedForTest(t){this._uncheckedKeys.forEach(n=>{/ \d+$| > /.test(n.slice(t.length))&&this._uncheckedKeys.delete(n);});}clearTest(t){this._inlineSnapshots=this._inlineSnapshots.filter(n=>n.testId!==t),this._inlineSnapshotStacks=this._inlineSnapshotStacks.filter(n=>n.testId!==t);for(let n of this._testIdToKeys.get(t)){let r=Jb(n),o=this._counters.get(r);o>0&&((n in this._snapshotData||n in this._initialData)&&(this._snapshotData[n]=this._initialData[n]),this._counters.set(r,o-1));}this._testIdToKeys.delete(t),this.added.delete(t),this.updated.delete(t),this.matched.delete(t),this.unmatched.delete(t);}_inferInlineSnapshotStack(t){let n=t.findIndex(o=>o.method.match(/__VITEST_(RESOLVES|REJECTS)__/));if(n!==-1)return t[n+3];let r=t.findIndex(o=>o.method.includes("__INLINE_SNAPSHOT__"));return r!==-1?t[r+2]:null}_addSnapshot(t,n,r){this._dirty=true,r.stack?this._inlineSnapshots.push({snapshot:n,testId:r.testId,...r.stack}):r.rawSnapshot?this._rawSnapshots.push({...r.rawSnapshot,snapshot:n}):this._snapshotData[t]=n;}async save(){let t=Object.keys(this._snapshotData).length,n=this._inlineSnapshots.length,r=this._rawSnapshots.length,o=!t&&!n&&!r,i={deleted:false,saved:false};return (this._dirty||this._uncheckedKeys.size)&&!o?(t&&(await Zb(this._environment,this._snapshotData,this.snapshotPath),this._fileExists=true),n&&await xb(this._environment,this._inlineSnapshots),r&&await $b(this._environment,this._rawSnapshots),i.saved=true):!t&&this._fileExists&&(this._updateSnapshot==="all"&&(await this._environment.removeSnapshotFile(this.snapshotPath),this._fileExists=false),i.deleted=true),i}getUncheckedCount(){return this._uncheckedKeys.size||0}getUncheckedKeys(){return Array.from(this._uncheckedKeys)}removeUncheckedKeys(){this._updateSnapshot==="all"&&this._uncheckedKeys.size&&(this._dirty=true,this._uncheckedKeys.forEach(t=>delete this._snapshotData[t]),this._uncheckedKeys.clear());}match({testId:t,testName:n,received:r,key:o,inlineSnapshot:i,isInline:s,error:c,rawSnapshot:l}){this._counters.increment(n);let u=this._counters.get(n);o||(o=Ub(n,u)),this._testIdToKeys.get(t).push(o),s&&this._snapshotData[o]!==void 0||this._uncheckedKeys.delete(o);let f=l&&typeof r=="string"?r:Yb(r,void 0,this._snapshotFormat);l||(f=Kb(f)),l&&l.content&&l.content.match(/\r\n/)&&!f.match(/\r\n/)&&(l.content=zs(l.content));let h=s?i:l?l.content:this._snapshotData[o],m=l?h:h?.trim(),d=m===(l?f:f.trim()),g=h!==void 0,p=s||this._fileExists||l&&l.content!=null;d&&!s&&!l&&(this._snapshotData[o]=f);let S;if(s){var T,I;let P=hb(c||new Error("snapshot"),{ignoreStackEntries:[]}),A=this._inferInlineSnapshotStack(P);if(!A)throw new Error(`@vitest/snapshot: Couldn't infer stack frame for inline snapshot.
148
- ${JSON.stringify(P)}`);S=((T=(I=this.environment).processStackTrace)===null||T===void 0?void 0:T.call(I,A))||A,S.column--;let $=this._inlineSnapshotStacks.filter(j=>Cf(j,S));if($.length>0){this._inlineSnapshots=this._inlineSnapshots.filter(k=>!Cf(k,S));let j=$.find(k=>k.snapshot!==f);if(j)throw Object.assign(new Error("toMatchInlineSnapshot with different snapshots cannot be called at the same location"),{actual:f,expected:j.snapshot})}this._inlineSnapshotStacks.push({...S,testId:t,snapshot:f});}return g&&this._updateSnapshot==="all"||(!g||!p)&&(this._updateSnapshot==="new"||this._updateSnapshot==="all")?(this._updateSnapshot==="all"?d?this.matched.increment(t):(g?this.updated.increment(t):this.added.increment(t),this._addSnapshot(o,f,{stack:S,testId:t,rawSnapshot:l})):(this._addSnapshot(o,f,{stack:S,testId:t,rawSnapshot:l}),this.added.increment(t)),{actual:"",count:u,expected:"",key:o,pass:true}):d?(this.matched.increment(t),{actual:"",count:u,expected:"",key:o,pass:true}):(this.unmatched.increment(t),{actual:l?f:Ef(f),count:u,expected:m!==void 0?l?m:Ef(m):void 0,key:o,pass:false})}async pack(){let t={filepath:this.testFilePath,added:0,fileDeleted:false,matched:0,unchecked:0,uncheckedKeys:[],unmatched:0,updated:0},n=this.getUncheckedCount(),r=this.getUncheckedKeys();n&&this.removeUncheckedKeys();let o=await this.save();return t.fileDeleted=o.deleted,t.added=this.added.total(),t.matched=this.matched.total(),t.unmatched=this.unmatched.total(),t.updated=this.updated.total(),t.unchecked=o.deleted?0:n,t.uncheckedKeys=Array.from(r),t}};function _f(e,t,n,r){let o=new Error(e);return Object.defineProperty(o,"actual",{value:n,enumerable:true,configurable:true,writable:true}),Object.defineProperty(o,"expected",{value:r,enumerable:true,configurable:true,writable:true}),Object.defineProperty(o,"diffOptions",{value:{expand:t}}),o}a(_f,"createMismatchError");var wo=class{static{a(this,"SnapshotClient");}snapshotStateMap=new Map;constructor(t={}){this.options=t;}async setup(t,n){this.snapshotStateMap.has(t)||this.snapshotStateMap.set(t,await Ls.create(t,n));}async finish(t){let r=await this.getSnapshotState(t).pack();return this.snapshotStateMap.delete(t),r}skipTest(t,n){this.getSnapshotState(t).markSnapshotsAsCheckedForTest(n);}clearTest(t,n){this.getSnapshotState(t).clearTest(n);}getSnapshotState(t){let n=this.snapshotStateMap.get(t);if(!n)throw new Error(`The snapshot state for '${t}' is not found. Did you call 'SnapshotClient.setup()'?`);return n}assert(t){let{filepath:n,name:r,testId:o=r,message:i,isInline:s=false,properties:c,inlineSnapshot:l,error:u,errorMessage:f,rawSnapshot:h}=t,{received:m}=t;if(!n)throw new Error("Snapshot cannot be used outside of test");let d=this.getSnapshotState(n);if(typeof c=="object"){if(typeof m!="object"||!m)throw new Error("Received value must be an object when the matcher has properties");try{var g,p;if(((g=(p=this.options).isEqual)===null||g===void 0?void 0:g.call(p,m,c))??false)m=Ws(m,c);else throw _f("Snapshot properties mismatched",d.expand,m,c)}catch($){throw $.message=f||"Snapshot mismatched",$}}let S=[r,...i?[i]:[]].join(" > "),{actual:T,expected:I,key:P,pass:A}=d.match({testId:o,testName:S,received:m,isInline:s,error:u,inlineSnapshot:l,rawSnapshot:h});if(!A)throw _f(`Snapshot \`${P||"unknown"}\` mismatched`,d.expand,h?T:T?.trim(),h?I:I?.trim())}async assertRaw(t){if(!t.rawSnapshot)throw new Error("Raw snapshot is required");let{filepath:n,rawSnapshot:r}=t;if(r.content==null){if(!n)throw new Error("Snapshot cannot be used outside of test");let o=this.getSnapshotState(n);t.filepath||(t.filepath=n),r.file=await o.environment.resolveRawPath(n,r.file),r.content=await o.environment.readSnapshotFile(r.file)??void 0;}return this.assert(t)}clear(){this.snapshotStateMap.clear();}};var Ve=Date,Us=null,_t=class e extends Ve{static{a(this,"MockDate");}constructor(t,n,r,o,i,s,c){super();let l;switch(arguments.length){case 0:Us!==null?l=new Ve(Us.valueOf()):l=new Ve;break;case 1:l=new Ve(t);break;default:r=typeof r>"u"?1:r,o=o||0,i=i||0,s=s||0,c=c||0,l=new Ve(t,n,r,o,i,s,c);break}return Object.setPrototypeOf(l,e.prototype),l}};_t.UTC=Ve.UTC;_t.now=function(){return new _t().valueOf()};_t.parse=function(e){return Ve.parse(e)};_t.toString=function(){return Ve.toString()};function Lf(e){let t=new Ve(e.valueOf());if(Number.isNaN(t.getTime()))throw new TypeError(`mockdate: The time set is an invalid date: ${e}`);globalThis.Date=_t,Us=t.valueOf();}a(Lf,"mockDate");function Df(){globalThis.Date=Ve;}a(Df,"resetDate");var Qb=["matchSnapshot","toMatchSnapshot","toMatchInlineSnapshot","toThrowErrorMatchingSnapshot","toThrowErrorMatchingInlineSnapshot","throws","Throw","throw","toThrow","toThrowError"];function ew(e){return a(function(n,r={}){let i=en().config.expect?.poll??{},{interval:s=i.interval??50,timeout:c=i.timeout??1e3,message:l}=r,u=e(null,l).withContext({poll:true});n=n.bind(u);let f=Se.flag(u,"vitest-test");if(!f)throw new Error("expect.poll() must be called inside a test");let h=new Proxy(u,{get(m,d,g){let p=Reflect.get(m,d,g);if(typeof p!="function")return p instanceof b?h:p;if(d==="assert")return p;if(typeof d=="string"&&Qb.includes(d))throw new SyntaxError(`expect.poll() is not supported in combination with .${d}(). Use vi.waitFor() if your assertion condition is unstable.`);return function(...S){let T=new Error("STACK_TRACE_ERROR"),I=a(()=>new Promise(($,j)=>{let k,O,M,{setTimeout:K,clearTimeout:_}=ft(),V=a(async()=>{try{Se.flag(u,"_name",d);let le=await n();Se.flag(u,"object",le),$(await p.call(u,...S)),_(k),_(O);}catch(le){M=le,Se.flag(u,"_isLastPollAttempt")||(k=K(V,s));}},"check");O=K(()=>{_(k),Se.flag(u,"_isLastPollAttempt",true);let le=a(U=>{j(qf(new Error("Matcher did not succeed in time.",{cause:U}),T));},"rejectWithCause");V().then(()=>le(M)).catch(U=>le(U));},c),V();}),"promise"),P=false;f.onFinished??=[],f.onFinished.push(()=>{if(!P){let $=Se.flag(u,"negate")?"not.":"",k=`expect.${Se.flag(u,"_poll.element")?"element(locator)":"poll(assertion)"}.${$}${String(d)}()`,O=new Error(`${k} was not awaited. This assertion is asynchronous and must be awaited; otherwise, it is not executed to avoid unhandled rejections:
149
-
150
- await ${k}
151
- `);throw qf(O,T)}});let A;return {then($,j){return P=true,(A||=I()).then($,j)},catch($){return (A||=I()).catch($)},finally($){return (A||=I()).finally($)},[Symbol.toStringTag]:"Promise"}}}});return h},"poll")}a(ew,"createExpectPoll");function qf(e,t){return t.stack!==void 0&&(e.stack=t.stack.replace(t.message,e.message)),e}a(qf,"copyStackTrace$1");function tw(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}a(tw,"commonjsRequire");var So={exports:{}},nw=So.exports,Bf;function rw(){return Bf||(Bf=1,(function(e,t){(function(){(function(n){return typeof tw=="function"?e.exports=n:chai.use(n)})(function(n,r){var o=n.Assertion,i=o.prototype;o.addMethod("containSubset",function(c){var l=r.flag(this,"object"),u=n.config.showDiff;i.assert.call(this,s(c,l),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",c,l,u);}),n.assert.containSubset=function(c,l,u){new n.Assertion(c,u).to.be.containSubset(l);};function s(c,l){if(c===l)return true;if(typeof l!=typeof c)return false;if(typeof c!="object"||c===null)return c===l;if(c&&!l)return false;if(Array.isArray(c)){if(typeof l.length!="number")return false;var u=Array.prototype.slice.call(l);return c.every(function(f){return u.some(function(h){return s(f,h)})})}return c instanceof Date?l instanceof Date?c.getTime()===l.getTime():false:Object.keys(c).every(function(f){var h=c[f],m=l[f];return typeof h=="object"&&h!==null&&m!==null?s(h,m):typeof h=="function"?h(m):m===h})}a(s,"compare");});}).call(nw);})(So)),So.exports}a(rw,"requireChaiSubset");var ow=rw(),iw=Qu(ow);function sw(e,t,n){let r=e.flag(t,"negate")?"not.":"",o=`${e.flag(t,"_name")}(expected)`,i=e.flag(t,"promise");return `expect(actual)${i?`.${i}`:""}.${r}${o}`}a(sw,"createAssertionMessage");function aw(e,t,n,r){let o=e;if(o&&t instanceof Promise){t=t.finally(()=>{if(!o.promises)return;let s=o.promises.indexOf(t);s!==-1&&o.promises.splice(s,1);}),o.promises||(o.promises=[]),o.promises.push(t);let i=false;return o.onFinished??=[],o.onFinished.push(()=>{if(!i){let c=(globalThis.__vitest_worker__?.onFilterStackTrace||(l=>l||""))(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 Vitest 3. ",`Please remember to await the assertion.
152
- `,c].join(""));}}),{then(s,c){return i=true,t.then(s,c)},catch(s){return t.catch(s)},finally(s){return t.finally(s)},[Symbol.toStringTag]:"Promise"}}return t}a(aw,"recordAsyncExpect");var Js;function Fn(){return Js||(Js=new wo({isEqual:a((e,t)=>ee(e,t,[Fe,Lt]),"isEqual")})),Js}a(Fn,"getSnapshotClient");function zf(e,t){if(typeof e!="function"){if(!t)throw new Error(`expected must be a function, received ${typeof e}`);return e}try{e();}catch(n){return n}throw new Error("snapshot function didn't throw")}a(zf,"getError");function Ln(e){return {filepath:e.file.filepath,name:co(e).slice(1).join(" > "),testId:e.id}}a(Ln,"getTestNames");var cw=a((e,t)=>{function n(r,o){let i=t.flag(o,"vitest-test");if(!i)throw new Error(`'${r}' cannot be used without test context`);return i}a(n,"getTest");for(let r of ["matchSnapshot","toMatchSnapshot"])t.addMethod(e.Assertion.prototype,r,function(o,i){if(t.flag(this,"_name",r),t.flag(this,"negate"))throw new Error(`${r} cannot be used with "not"`);let c=t.flag(this,"object"),l=n(r,this);typeof o=="string"&&typeof i>"u"&&(i=o,o=void 0);let u=t.flag(this,"message");Fn().assert({received:c,message:i,isInline:false,properties:o,errorMessage:u,...Ln(l)});});t.addMethod(e.Assertion.prototype,"toMatchFileSnapshot",function(r,o){if(t.flag(this,"_name","toMatchFileSnapshot"),t.flag(this,"negate"))throw new Error('toMatchFileSnapshot cannot be used with "not"');let s=new Error("resolves"),c=t.flag(this,"object"),l=n("toMatchFileSnapshot",this),u=t.flag(this,"message"),f=Fn().assertRaw({received:c,message:o,isInline:false,rawSnapshot:{file:r},errorMessage:u,...Ln(l)});return aw(l,f,sw(t,this),s)}),t.addMethod(e.Assertion.prototype,"toMatchInlineSnapshot",a(function(o,i,s){if(t.flag(this,"_name","toMatchInlineSnapshot"),t.flag(this,"negate"))throw new Error('toMatchInlineSnapshot cannot be used with "not"');let l=n("toMatchInlineSnapshot",this);if(l.each||l.suite?.each)throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");let f=t.flag(this,"object"),h=t.flag(this,"error");typeof o=="string"&&(s=i,i=o,o=void 0),i&&(i=Bs(i));let m=t.flag(this,"message");Fn().assert({received:f,message:s,isInline:true,properties:o,inlineSnapshot:i,error:h,errorMessage:m,...Ln(l)});},"__INLINE_SNAPSHOT__")),t.addMethod(e.Assertion.prototype,"toThrowErrorMatchingSnapshot",function(r){if(t.flag(this,"_name","toThrowErrorMatchingSnapshot"),t.flag(this,"negate"))throw new Error('toThrowErrorMatchingSnapshot cannot be used with "not"');let i=t.flag(this,"object"),s=n("toThrowErrorMatchingSnapshot",this),c=t.flag(this,"promise"),l=t.flag(this,"message");Fn().assert({received:zf(i,c),message:r,errorMessage:l,...Ln(s)});}),t.addMethod(e.Assertion.prototype,"toThrowErrorMatchingInlineSnapshot",a(function(o,i){if(t.flag(this,"negate"))throw new Error('toThrowErrorMatchingInlineSnapshot cannot be used with "not"');let c=n("toThrowErrorMatchingInlineSnapshot",this);if(c.each||c.suite?.each)throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");let u=t.flag(this,"object"),f=t.flag(this,"error"),h=t.flag(this,"promise"),m=t.flag(this,"message");o&&(o=Bs(o)),Fn().assert({received:zf(u,h),message:i,inlineSnapshot:o,isInline:true,error:f,errorMessage:m,...Ln(c)});},"__INLINE_SNAPSHOT__")),t.addMethod(e.expect,"addSnapshotSerializer",Ff);},"SnapshotPlugin");it(pu);it(du);it(iw);it(cw);it(fu);function uh(e){let t=a((i,s)=>{let{assertionCalls:c}=Zt(t);Jr({assertionCalls:c+1},t);let l=Tt(i,s),u=e||$n();return u?l.withTest(u):l},"expect");Object.assign(t,Tt),Object.assign(t,globalThis[zr]),t.getState=()=>Zt(t),t.setState=i=>Jr(i,t);let n=Zt(globalThis[En])||{};Jr({...n,assertionCalls:0,isExpectingAssertions:false,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null,environment:Hu(),get testPath(){return en().filepath},currentTestName:e?Is(e):n.currentTestName},t),t.extend=i=>Tt.extend(t,i),t.addEqualityTesters=i=>su(i),t.soft=(...i)=>t(...i).withContext({soft:true}),t.poll=ew(t),t.unreachable=i=>{y.fail(`expected${i?` "${i}" `:" "}not to be reached`);};function r(i){let s=a(()=>new Error(`expected number of assertions to be ${i}, but got ${t.getState().assertionCalls}`),"errorGen");Error.captureStackTrace&&Error.captureStackTrace(s(),r),t.setState({expectedAssertionsNumber:i,expectedAssertionsNumberErrorGen:s});}a(r,"assertions");function o(){let i=new Error("expected any number of assertion, but got none");Error.captureStackTrace&&Error.captureStackTrace(i,o),t.setState({isExpectingAssertions:true,isExpectingAssertionsError:i});}return a(o,"hasAssertions"),Se.addMethod(t,"assertions",r),Se.addMethod(t,"hasAssertions",o),t.extend(ru),t}a(uh,"createExpect");var De=uh();Object.defineProperty(globalThis,En,{value:De,writable:true,configurable:true});var nn={},Vs,Wf;function lw(){if(Wf)return Vs;Wf=1;var e;return typeof lo<"u"?e=lo:typeof window<"u"?e=window:e=self,Vs=e,Vs}a(lw,"requireGlobal");var Ks,Uf;function uw(){if(Uf)return Ks;Uf=1;let e;try{e=false;}catch{e=true;}return Ks=e,Ks}a(uw,"requireThrowsOnProto");var Xs,Jf;function on(){if(Jf)return Xs;Jf=1;var e=Function.call,t=uw(),n=["size","caller","callee","arguments"];return t&&n.push("__proto__"),Xs=a(function(o){return Object.getOwnPropertyNames(o).reduce(function(i,s){return n.includes(s)||typeof o[s]!="function"||(i[s]=e.bind(o[s])),i},Object.create(null))},"copyPrototypeMethods"),Xs}a(on,"requireCopyPrototypeMethods");var Gs,Vf;function xo(){if(Vf)return Gs;Vf=1;var e=on();return Gs=e(Array.prototype),Gs}a(xo,"requireArray");var Ys,Kf;function fw(){if(Kf)return Ys;Kf=1;var e=xo().every;function t(o,i){return o[i.id]===void 0&&(o[i.id]=0),o[i.id]<i.callCount}a(t,"hasCallsLeft");function n(o,i,s,c){var l=true;return s!==c.length-1&&(l=i.calledBefore(c[s+1])),t(o,i)&&l?(o[i.id]+=1,true):false}a(n,"checkAdjacentCalls");function r(o){var i={},s=arguments.length>1?arguments:o;return e(s,n.bind(null,i))}return a(r,"calledInOrder"),Ys=r,Ys}a(fw,"requireCalledInOrder");var Hs,Xf;function hw(){if(Xf)return Hs;Xf=1;function e(t){return t.constructor&&t.constructor.name||null}return a(e,"className"),Hs=e,Hs}a(hw,"requireClassName");var Zs={},Gf;function dw(){return Gf||(Gf=1,(function(e){e.wrap=function(t,n){var r=a(function(){return e.printWarning(n),t.apply(this,arguments)},"wrapped");return t.prototype&&(r.prototype=t.prototype),r},e.defaultMsg=function(t,n){return `${t}.${n} is deprecated and will be removed from the public API in a future version of ${t}.`},e.printWarning=function(t){typeof process=="object"&&process.emitWarning?process.emitWarning(t):console.info?console.info(t):console.log(t);};})(Zs)),Zs}a(dw,"requireDeprecated");var Qs,Yf;function pw(){return Yf||(Yf=1,Qs=a(function(t,n){var r=true;try{t.forEach(function(){if(!n.apply(this,arguments))throw new Error});}catch{r=false;}return r},"every")),Qs}a(pw,"requireEvery");var ea,Hf;function mw(){return Hf||(Hf=1,ea=a(function(t){if(!t)return "";try{return t.displayName||t.name||(String(t).match(/function ([^\s(]+)/)||[])[1]}catch{return ""}},"functionName")),ea}a(mw,"requireFunctionName");var ta,Zf;function gw(){if(Zf)return ta;Zf=1;var e=xo().sort,t=xo().slice;function n(o,i){var s=o.getCall(0),c=i.getCall(0),l=s&&s.callId||-1,u=c&&c.callId||-1;return l<u?-1:1}a(n,"comparator");function r(o){return e(t(o),n)}return a(r,"orderByFirstCall"),ta=r,ta}a(gw,"requireOrderByFirstCall");var na,Qf;function yw(){if(Qf)return na;Qf=1;var e=on();return na=e(Function.prototype),na}a(yw,"require_function");var ra,eh;function bw(){if(eh)return ra;eh=1;var e=on();return ra=e(Map.prototype),ra}a(bw,"requireMap");var oa,th;function ww(){if(th)return oa;th=1;var e=on();return oa=e(Object.prototype),oa}a(ww,"requireObject");var ia,nh;function Sw(){if(nh)return ia;nh=1;var e=on();return ia=e(Set.prototype),ia}a(Sw,"requireSet");var sa,rh;function Tw(){if(rh)return sa;rh=1;var e=on();return sa=e(String.prototype),sa}a(Tw,"requireString");var aa,oh;function xw(){return oh||(oh=1,aa={array:xo(),function:yw(),map:bw(),object:ww(),set:Sw(),string:Tw()}),aa}a(xw,"requirePrototypes");var To={exports:{}},vw=To.exports,ih;function Ew(){return ih||(ih=1,(function(e,t){(function(n,r){e.exports=r();})(vw,(function(){var n=typeof Promise=="function",r=typeof self=="object"?self:lo,o=typeof Symbol<"u",i=typeof Map<"u",s=typeof Set<"u",c=typeof WeakMap<"u",l=typeof WeakSet<"u",u=typeof DataView<"u",f=o&&typeof Symbol.iterator<"u",h=o&&typeof Symbol.toStringTag<"u",m=s&&typeof Set.prototype.entries=="function",d=i&&typeof Map.prototype.entries=="function",g=m&&Object.getPrototypeOf(new Set().entries()),p=d&&Object.getPrototypeOf(new Map().entries()),S=f&&typeof Array.prototype[Symbol.iterator]=="function",T=S&&Object.getPrototypeOf([][Symbol.iterator]()),I=f&&typeof String.prototype[Symbol.iterator]=="function",P=I&&Object.getPrototypeOf(""[Symbol.iterator]()),A=8,$=-1;function j(k){var O=typeof k;if(O!=="object")return O;if(k===null)return "null";if(k===r)return "global";if(Array.isArray(k)&&(h===false||!(Symbol.toStringTag in k)))return "Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&k===window.location)return "Location";if(typeof window.document=="object"&&k===window.document)return "Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&k===window.navigator.mimeTypes)return "MimeTypeArray";if(typeof window.navigator.plugins=="object"&&k===window.navigator.plugins)return "PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&k instanceof window.HTMLElement){if(k.tagName==="BLOCKQUOTE")return "HTMLQuoteElement";if(k.tagName==="TD")return "HTMLTableDataCellElement";if(k.tagName==="TH")return "HTMLTableHeaderCellElement"}}var M=h&&k[Symbol.toStringTag];if(typeof M=="string")return M;var K=Object.getPrototypeOf(k);return K===RegExp.prototype?"RegExp":K===Date.prototype?"Date":n&&K===Promise.prototype?"Promise":s&&K===Set.prototype?"Set":i&&K===Map.prototype?"Map":l&&K===WeakSet.prototype?"WeakSet":c&&K===WeakMap.prototype?"WeakMap":u&&K===DataView.prototype?"DataView":i&&K===p?"Map Iterator":s&&K===g?"Set Iterator":S&&K===T?"Array Iterator":I&&K===P?"String Iterator":K===null?"Object":Object.prototype.toString.call(k).slice(A,$)}return a(j,"typeDetect"),j}));})(To)),To.exports}a(Ew,"requireTypeDetect");var ca,sh;function Iw(){if(sh)return ca;sh=1;var e=Ew();return ca=a(function(n){return e(n).toLowerCase()},"typeOf"),ca}a(Iw,"requireTypeOf");var la,ah;function Cw(){if(ah)return la;ah=1;function e(t){return t&&t.toString?t.toString():String(t)}return a(e,"valueToString"),la=e,la}a(Cw,"requireValueToString");var ua,ch;function _w(){return ch||(ch=1,ua={global:lw(),calledInOrder:fw(),className:hw(),deprecated:dw(),every:pw(),functionName:mw(),orderByFirstCall:gw(),prototypes:xw(),typeOf:Iw(),valueToString:Cw()}),ua}a(_w,"requireLib");var lh;function Ow(){if(lh)return nn;lh=1;let e=_w().global,t,n;if(typeof __vitest_required__<"u"){try{t=__vitest_required__.timers;}catch{}try{n=__vitest_required__.timersPromises;}catch{}}function r(i){let s=Math.pow(2,31)-1,c=1e12,l=a(function(){},"NOOP"),u=a(function(){return []},"NOOP_ARRAY"),f={},h,m=false;i.setTimeout&&(f.setTimeout=true,h=i.setTimeout(l,0),m=typeof h=="object"),f.clearTimeout=!!i.clearTimeout,f.setInterval=!!i.setInterval,f.clearInterval=!!i.clearInterval,f.hrtime=i.process&&typeof i.process.hrtime=="function",f.hrtimeBigint=f.hrtime&&typeof i.process.hrtime.bigint=="function",f.nextTick=i.process&&typeof i.process.nextTick=="function";let d=i.process&&i.__vitest_required__&&i.__vitest_required__.util.promisify;f.performance=i.performance&&typeof i.performance.now=="function";let g=i.Performance&&(typeof i.Performance).match(/^(function|object)$/),p=i.performance&&i.performance.constructor&&i.performance.constructor.prototype;f.queueMicrotask=i.hasOwnProperty("queueMicrotask"),f.requestAnimationFrame=i.requestAnimationFrame&&typeof i.requestAnimationFrame=="function",f.cancelAnimationFrame=i.cancelAnimationFrame&&typeof i.cancelAnimationFrame=="function",f.requestIdleCallback=i.requestIdleCallback&&typeof i.requestIdleCallback=="function",f.cancelIdleCallbackPresent=i.cancelIdleCallback&&typeof i.cancelIdleCallback=="function",f.setImmediate=i.setImmediate&&typeof i.setImmediate=="function",f.clearImmediate=i.clearImmediate&&typeof i.clearImmediate=="function",f.Intl=i.Intl&&typeof i.Intl=="object",i.clearTimeout&&i.clearTimeout(h);let S=i.Date,T=f.Intl?Object.defineProperties(Object.create(null),Object.getOwnPropertyDescriptors(i.Intl)):void 0,I=c;if(S===void 0)throw new Error("The global scope doesn't have a `Date` object (see https://github.com/sinonjs/sinon/issues/1852#issuecomment-419622780)");f.Date=true;class P{static{a(this,"FakePerformanceEntry");}constructor(C,N,D,w){this.name=C,this.entryType=N,this.startTime=D,this.duration=w;}toJSON(){return JSON.stringify({...this})}}function A(v){return Number.isFinite?Number.isFinite(v):isFinite(v)}a(A,"isNumberFinite");let $=false;function j(v,C){v.loopLimit&&C===v.loopLimit-1&&($=true);}a(j,"checkIsNearInfiniteLimit");function k(){$=false;}a(k,"resetIsNearInfiniteLimit");function O(v){if(!v)return 0;let C=v.split(":"),N=C.length,D=N,w=0,W;if(N>3||!/^(\d\d:){0,2}\d\d?$/.test(v))throw new Error("tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits");for(;D--;){if(W=parseInt(C[D],10),W>=60)throw new Error(`Invalid time ${v}`);w+=W*Math.pow(60,N-D-1);}return w*1e3}a(O,"parseTime");function M(v){let N=v*1e6%1e6,D=N<0?N+1e6:N;return Math.floor(D)}a(M,"nanoRemainder");function K(v){if(!v)return 0;if(typeof v.getTime=="function")return v.getTime();if(typeof v=="number")return v;throw new TypeError("now should be milliseconds since UNIX epoch")}a(K,"getEpoch");function _(v,C,N){return N&&N.callAt>=v&&N.callAt<=C}a(_,"inRange");function V(v,C){let N=new Error(`Aborting after running ${v.loopLimit} timers, assuming an infinite loop!`);if(!C.error)return N;let D=/target\.*[<|(|[].*?[>|\]|)]\s*/,w=new RegExp(String(Object.keys(v).join("|")));m&&(w=new RegExp(`\\s+at (Object\\.)?(?:${Object.keys(v).join("|")})\\s+`));let W=-1;C.error.stack.split(`
153
- `).some(function(G,H){return G.match(D)?(W=H,true):G.match(w)?(W=H,false):W>=0});let te=`${N}
154
- ${C.type||"Microtask"} - ${C.func.name||"anonymous"}
155
- ${C.error.stack.split(`
156
- `).slice(W+1).join(`
157
- `)}`;try{Object.defineProperty(N,"stack",{value:te});}catch{}return N}a(V,"getInfiniteLoopError");function le(){class v extends S{static{a(this,"ClockDate");}constructor(D,w,W,te,G,H,z){arguments.length===0?super(v.clock.now):super(...arguments),Object.defineProperty(this,"constructor",{value:S,enumerable:false});}static[Symbol.hasInstance](D){return D instanceof S}}return v.isFake=true,S.now&&(v.now=a(function(){return v.clock.now},"now")),S.toSource&&(v.toSource=a(function(){return S.toSource()},"toSource")),v.toString=a(function(){return S.toString()},"toString"),new Proxy(v,{apply(){if(this instanceof v)throw new 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 S(v.clock.now).toString()}})}a(le,"createDate");function U(){let v={};return Object.getOwnPropertyNames(T).forEach(C=>v[C]=T[C]),v.DateTimeFormat=function(...C){let N=new T.DateTimeFormat(...C),D={};return ["formatRange","formatRangeToParts","resolvedOptions"].forEach(w=>{D[w]=N[w].bind(N);}),["format","formatToParts"].forEach(w=>{D[w]=function(W){return N[w](W||v.clock.now)};}),D},v.DateTimeFormat.prototype=Object.create(T.DateTimeFormat.prototype),v.DateTimeFormat.supportedLocalesOf=T.DateTimeFormat.supportedLocalesOf,v}a(U,"createIntl");function Z(v,C){v.jobs||(v.jobs=[]),v.jobs.push(C);}a(Z,"enqueueJob");function R(v){if(v.jobs){for(let C=0;C<v.jobs.length;C++){let N=v.jobs[C];if(N.func.apply(null,N.args),j(v,C),v.loopLimit&&C>v.loopLimit)throw V(v,N)}k(),v.jobs=[];}}a(R,"runJobs");function Y(v,C){if(C.func===void 0)throw new Error("Callback must be provided to timer calls");if(m&&typeof C.func!="function")throw new TypeError(`[ERR_INVALID_CALLBACK]: Callback must be a function. Received ${C.func} of type ${typeof C.func}`);if($&&(C.error=new Error),C.type=C.immediate?"Immediate":"Timeout",C.hasOwnProperty("delay")&&(typeof C.delay!="number"&&(C.delay=parseInt(C.delay,10)),A(C.delay)||(C.delay=0),C.delay=C.delay>s?1:C.delay,C.delay=Math.max(0,C.delay)),C.hasOwnProperty("interval")&&(C.type="Interval",C.interval=C.interval>s?1:C.interval),C.hasOwnProperty("animation")&&(C.type="AnimationFrame",C.animation=true),C.hasOwnProperty("idleCallback")&&(C.type="IdleCallback",C.idleCallback=true),v.timers||(v.timers={}),C.id=I++,C.createdAt=v.now,C.callAt=v.now+(parseInt(C.delay)||(v.duringTick?1:0)),v.timers[C.id]=C,m){let N={refed:true,ref:a(function(){return this.refed=true,N},"ref"),unref:a(function(){return this.refed=false,N},"unref"),hasRef:a(function(){return this.refed},"hasRef"),refresh:a(function(){return C.callAt=v.now+(parseInt(C.delay)||(v.duringTick?1:0)),v.timers[C.id]=C,N},"refresh"),[Symbol.toPrimitive]:function(){return C.id}};return N}return C.id}a(Y,"addTimer");function L(v,C){if(v.callAt<C.callAt)return -1;if(v.callAt>C.callAt)return 1;if(v.immediate&&!C.immediate)return -1;if(!v.immediate&&C.immediate)return 1;if(v.createdAt<C.createdAt)return -1;if(v.createdAt>C.createdAt)return 1;if(v.id<C.id)return -1;if(v.id>C.id)return 1}a(L,"compareTimers");function de(v,C,N){let D=v.timers,w=null,W,te;for(W in D)D.hasOwnProperty(W)&&(te=_(C,N,D[W]),te&&(!w||L(w,D[W])===1)&&(w=D[W]));return w}a(de,"firstTimerInRange");function Te(v){let C=v.timers,N=null,D;for(D in C)C.hasOwnProperty(D)&&(!N||L(N,C[D])===1)&&(N=C[D]);return N}a(Te,"firstTimer");function qe(v){let C=v.timers,N=null,D;for(D in C)C.hasOwnProperty(D)&&(!N||L(N,C[D])===-1)&&(N=C[D]);return N}a(qe,"lastTimer");function Ie(v,C){if(typeof C.interval=="number"?v.timers[C.id].callAt+=C.interval:delete v.timers[C.id],typeof C.func=="function")C.func.apply(null,C.args);else {let N=eval;(function(){N(C.func);})();}}a(Ie,"callTimer");function Oe(v){return v==="IdleCallback"||v==="AnimationFrame"?`cancel${v}`:`clear${v}`}a(Oe,"getClearHandler");function Xe(v){return v==="IdleCallback"||v==="AnimationFrame"?`request${v}`:`set${v}`}a(Xe,"getScheduleHandler");function Re(){let v=0;return function(C){!v++&&console.warn(C);}}a(Re,"createWarnOnce");let Pe=Re();function $e(v,C,N){if(!C)return;v.timers||(v.timers={});let D=Number(C);if(Number.isNaN(D)||D<c){let w=Oe(N);if(v.shouldClearNativeTimers===true){let W=v[`_${w}`];return typeof W=="function"?W(C):void 0}Pe(`FakeTimers: ${w} was invoked to clear a native timer instead of one created by this library.
158
- To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`);}if(v.timers.hasOwnProperty(D)){let w=v.timers[D];if(w.type===N||w.type==="Timeout"&&N==="Interval"||w.type==="Interval"&&N==="Timeout")delete v.timers[D];else {let W=Oe(N),te=Xe(w.type);throw new Error(`Cannot clear timer: timer created with ${te}() but cleared with ${W}()`)}}}a($e,"clearTimer");function dt(v,C){let N,D,w,W="_hrtime",te="_nextTick";for(D=0,w=v.methods.length;D<w;D++){if(N=v.methods[D],N==="hrtime"&&i.process)i.process.hrtime=v[W];else if(N==="nextTick"&&i.process)i.process.nextTick=v[te];else if(N==="performance"){let G=Object.getOwnPropertyDescriptor(v,`_${N}`);G&&G.get&&!G.set?Object.defineProperty(i,N,G):G.configurable&&(i[N]=v[`_${N}`]);}else if(i[N]&&i[N].hadOwnProperty)i[N]=v[`_${N}`];else try{delete i[N];}catch{}if(v.timersModuleMethods!==void 0)for(let G=0;G<v.timersModuleMethods.length;G++){let H=v.timersModuleMethods[G];t[H.methodName]=H.original;}if(v.timersPromisesModuleMethods!==void 0)for(let G=0;G<v.timersPromisesModuleMethods.length;G++){let H=v.timersPromisesModuleMethods[G];n[H.methodName]=H.original;}}C.shouldAdvanceTime===true&&i.clearInterval(v.attachedInterval),v.methods=[];for(let[G,H]of v.abortListenerMap.entries())H.removeEventListener("abort",G),v.abortListenerMap.delete(G);return v.timers?Object.keys(v.timers).map(a(function(H){return v.timers[H]},"mapper")):[]}a(dt,"uninstall");function We(v,C,N){if(N[C].hadOwnProperty=Object.prototype.hasOwnProperty.call(v,C),N[`_${C}`]=v[C],C==="Date")v[C]=N[C];else if(C==="Intl")v[C]=N[C];else if(C==="performance"){let D=Object.getOwnPropertyDescriptor(v,C);if(D&&D.get&&!D.set){Object.defineProperty(N,`_${C}`,D);let w=Object.getOwnPropertyDescriptor(N,C);Object.defineProperty(v,C,w);}else v[C]=N[C];}else v[C]=function(){return N[C].apply(N,arguments)},Object.defineProperties(v[C],Object.getOwnPropertyDescriptors(N[C]));v[C].clock=N;}a(We,"hijackMethod");function Ot(v,C){v.tick(C);}a(Ot,"doIntervalTick");let xe={setTimeout:i.setTimeout,clearTimeout:i.clearTimeout,setInterval:i.setInterval,clearInterval:i.clearInterval,Date:i.Date};f.setImmediate&&(xe.setImmediate=i.setImmediate),f.clearImmediate&&(xe.clearImmediate=i.clearImmediate),f.hrtime&&(xe.hrtime=i.process.hrtime),f.nextTick&&(xe.nextTick=i.process.nextTick),f.performance&&(xe.performance=i.performance),f.requestAnimationFrame&&(xe.requestAnimationFrame=i.requestAnimationFrame),f.queueMicrotask&&(xe.queueMicrotask=i.queueMicrotask),f.cancelAnimationFrame&&(xe.cancelAnimationFrame=i.cancelAnimationFrame),f.requestIdleCallback&&(xe.requestIdleCallback=i.requestIdleCallback),f.cancelIdleCallback&&(xe.cancelIdleCallback=i.cancelIdleCallback),f.Intl&&(xe.Intl=T);let Ge=i.setImmediate||i.setTimeout;function qn(v,C){v=Math.floor(K(v)),C=C||1e3;let N=0,D=[0,0],w={now:v,Date:le(),loopLimit:C};w.Date.clock=w;function W(){return 16-(w.now-v)%16}a(W,"getTimeToNextFrame");function te(z){let F=w.now-D[0]-v,q=Math.floor(F/1e3),J=(F-q*1e3)*1e6+N-D[1];if(Array.isArray(z)){if(z[1]>1e9)throw new TypeError("Number of nanoseconds can't exceed a billion");let ie=z[0],he=J-z[1],at=q-ie;return he<0&&(he+=1e9,at-=1),[at,he]}return [q,J]}a(te,"hrtime");function G(){let z=te();return z[0]*1e3+z[1]/1e6}a(G,"fakePerformanceNow"),f.hrtimeBigint&&(te.bigint=function(){let z=te();return BigInt(z[0])*BigInt(1e9)+BigInt(z[1])}),f.Intl&&(w.Intl=U(),w.Intl.clock=w),w.requestIdleCallback=a(function(F,q){let J=0;w.countTimers()>0&&(J=50);let ie=Y(w,{func:F,args:Array.prototype.slice.call(arguments,2),delay:typeof q>"u"?J:Math.min(q,J),idleCallback:true});return Number(ie)},"requestIdleCallback"),w.cancelIdleCallback=a(function(F){return $e(w,F,"IdleCallback")},"cancelIdleCallback"),w.setTimeout=a(function(F,q){return Y(w,{func:F,args:Array.prototype.slice.call(arguments,2),delay:q})},"setTimeout"),typeof i.Promise<"u"&&d&&(w.setTimeout[d.custom]=a(function(F,q){return new i.Promise(a(function(ie){Y(w,{func:ie,args:[q],delay:F});},"setTimeoutExecutor"))},"promisifiedSetTimeout")),w.clearTimeout=a(function(F){return $e(w,F,"Timeout")},"clearTimeout"),w.nextTick=a(function(F){return Z(w,{func:F,args:Array.prototype.slice.call(arguments,1),error:$?new Error:null})},"nextTick"),w.queueMicrotask=a(function(F){return w.nextTick(F)},"queueMicrotask"),w.setInterval=a(function(F,q){return q=parseInt(q,10),Y(w,{func:F,args:Array.prototype.slice.call(arguments,2),delay:q,interval:q})},"setInterval"),w.clearInterval=a(function(F){return $e(w,F,"Interval")},"clearInterval"),f.setImmediate&&(w.setImmediate=a(function(F){return Y(w,{func:F,args:Array.prototype.slice.call(arguments,1),immediate:true})},"setImmediate"),typeof i.Promise<"u"&&d&&(w.setImmediate[d.custom]=a(function(F){return new i.Promise(a(function(J){Y(w,{func:J,args:[F],immediate:true});},"setImmediateExecutor"))},"promisifiedSetImmediate")),w.clearImmediate=a(function(F){return $e(w,F,"Immediate")},"clearImmediate")),w.countTimers=a(function(){return Object.keys(w.timers||{}).length+(w.jobs||[]).length},"countTimers"),w.requestAnimationFrame=a(function(F){let q=Y(w,{func:F,delay:W(),get args(){return [G()]},animation:true});return Number(q)},"requestAnimationFrame"),w.cancelAnimationFrame=a(function(F){return $e(w,F,"AnimationFrame")},"cancelAnimationFrame"),w.runMicrotasks=a(function(){R(w);},"runMicrotasks");function H(z,F,q,J){let ie=typeof z=="number"?z:O(z),he=Math.floor(ie),at=M(ie),Ye=N+at,ve=w.now+he;if(ie<0)throw new TypeError("Negative ticks are not supported");Ye>=1e6&&(ve+=1,Ye-=1e6),N=Ye;let He=w.now,Pt=w.now,Ze,pt,Be,da,Io,Co;w.duringTick=true,Be=w.now,R(w),Be!==w.now&&(He+=w.now-Be,ve+=w.now-Be);function pa(){for(Ze=de(w,He,ve);Ze&&He<=ve;){if(w.timers[Ze.id]){He=Ze.callAt,w.now=Ze.callAt,Be=w.now;try{R(w),Ie(w,Ze);}catch(cn){pt=pt||cn;}if(F){Ge(da);return}Io();}Co();}if(Be=w.now,R(w),Be!==w.now&&(He+=w.now-Be,ve+=w.now-Be),w.duringTick=false,Ze=de(w,He,ve),Ze)try{w.tick(ve-w.now);}catch(cn){pt=pt||cn;}else w.now=ve,N=Ye;if(pt)throw pt;if(F)q(w.now);else return w.now}return a(pa,"doTickInner"),da=F&&function(){try{Io(),Co(),pa();}catch(cn){J(cn);}},Io=a(function(){Be!==w.now&&(He+=w.now-Be,ve+=w.now-Be,Pt+=w.now-Be);},"compensationCheck"),Co=a(function(){Ze=de(w,Pt,ve),Pt=He;},"postTimerCall"),pa()}return a(H,"doTick"),w.tick=a(function(F){return H(F,false)},"tick"),typeof i.Promise<"u"&&(w.tickAsync=a(function(F){return new i.Promise(function(q,J){Ge(function(){try{H(F,true,q,J);}catch(ie){J(ie);}});})},"tickAsync")),w.next=a(function(){R(w);let F=Te(w);if(!F)return w.now;w.duringTick=true;try{return w.now=F.callAt,Ie(w,F),R(w),w.now}finally{w.duringTick=false;}},"next"),typeof i.Promise<"u"&&(w.nextAsync=a(function(){return new i.Promise(function(F,q){Ge(function(){try{let J=Te(w);if(!J){F(w.now);return}let ie;w.duringTick=true,w.now=J.callAt;try{Ie(w,J);}catch(he){ie=he;}w.duringTick=false,Ge(function(){ie?q(ie):F(w.now);});}catch(J){q(J);}});})},"nextAsync")),w.runAll=a(function(){let F,q;for(R(w),q=0;q<w.loopLimit;q++){if(!w.timers||(F=Object.keys(w.timers).length,F===0))return k(),w.now;w.next(),j(w,q);}let J=Te(w);throw V(w,J)},"runAll"),w.runToFrame=a(function(){return w.tick(W())},"runToFrame"),typeof i.Promise<"u"&&(w.runAllAsync=a(function(){return new i.Promise(function(F,q){let J=0;function ie(){Ge(function(){try{R(w);let he;if(J<w.loopLimit){if(!w.timers){k(),F(w.now);return}if(he=Object.keys(w.timers).length,he===0){k(),F(w.now);return}w.next(),J++,ie(),j(w,J);return}let at=Te(w);q(V(w,at));}catch(he){q(he);}});}a(ie,"doRun"),ie();})},"runAllAsync")),w.runToLast=a(function(){let F=qe(w);return F?w.tick(F.callAt-w.now):(R(w),w.now)},"runToLast"),typeof i.Promise<"u"&&(w.runToLastAsync=a(function(){return new i.Promise(function(F,q){Ge(function(){try{let J=qe(w);J||(R(w),F(w.now)),F(w.tickAsync(J.callAt-w.now));}catch(J){q(J);}});})},"runToLastAsync")),w.reset=a(function(){N=0,w.timers={},w.jobs=[],w.now=v;},"reset"),w.setSystemTime=a(function(F){let q=K(F),J=q-w.now,ie,he;D[0]=D[0]+J,D[1]=D[1]+N,w.now=q,N=0;for(ie in w.timers)w.timers.hasOwnProperty(ie)&&(he=w.timers[ie],he.createdAt+=J,he.callAt+=J);},"setSystemTime"),w.jump=a(function(F){let q=typeof F=="number"?F:O(F),J=Math.floor(q);for(let ie of Object.values(w.timers))w.now+J>ie.callAt&&(ie.callAt=w.now+J);w.tick(J);},"jump"),f.performance&&(w.performance=Object.create(null),w.performance.now=G),f.hrtime&&(w.hrtime=te),w}a(qn,"createClock");function B(v){if(arguments.length>1||v instanceof Date||Array.isArray(v)||typeof v=="number")throw new TypeError(`FakeTimers.install called with ${String(v)} install requires an object parameter`);if(i.Date.isFake===true)throw new TypeError("Can't install fake timers twice on the same global object.");if(v=typeof v<"u"?v:{},v.shouldAdvanceTime=v.shouldAdvanceTime||false,v.advanceTimeDelta=v.advanceTimeDelta||20,v.shouldClearNativeTimers=v.shouldClearNativeTimers||false,v.target)throw new TypeError("config.target is no longer supported. Use `withGlobal(target)` instead.");function C(W){if(!v.ignoreMissingTimers)throw new ReferenceError(`non-existent timers and/or objects cannot be faked: '${W}'`)}a(C,"handleMissingTimer");let N,D,w=qn(v.now,v.loopLimit);if(w.shouldClearNativeTimers=v.shouldClearNativeTimers,w.uninstall=function(){return dt(w,v)},w.abortListenerMap=new Map,w.methods=v.toFake||[],w.methods.length===0&&(w.methods=Object.keys(xe)),v.shouldAdvanceTime===true){let W=Ot.bind(null,w,v.advanceTimeDelta),te=i.setInterval(W,v.advanceTimeDelta);w.attachedInterval=te;}if(w.methods.includes("performance")){let W=(()=>{if(p)return i.performance.constructor.prototype;if(g)return i.Performance.prototype})();if(W)Object.getOwnPropertyNames(W).forEach(function(te){te!=="now"&&(w.performance[te]=te.indexOf("getEntries")===0?u:l);}),w.performance.mark=te=>new P(te,"mark",0,0),w.performance.measure=te=>new P(te,"measure",0,100),w.performance.timeOrigin=K(v.now);else if((v.toFake||[]).includes("performance"))return C("performance")}for(i===e&&t&&(w.timersModuleMethods=[]),i===e&&n&&(w.timersPromisesModuleMethods=[]),N=0,D=w.methods.length;N<D;N++){let W=w.methods[N];if(!f[W]){C(W);continue}if(W==="hrtime"?i.process&&typeof i.process.hrtime=="function"&&We(i.process,W,w):W==="nextTick"?i.process&&typeof i.process.nextTick=="function"&&We(i.process,W,w):We(i,W,w),w.timersModuleMethods!==void 0&&t[W]){let te=t[W];w.timersModuleMethods.push({methodName:W,original:te}),t[W]=i[W];}w.timersPromisesModuleMethods!==void 0&&(W==="setTimeout"?(w.timersPromisesModuleMethods.push({methodName:"setTimeout",original:n.setTimeout}),n.setTimeout=(te,G,H={})=>new Promise((z,F)=>{let q=a(()=>{H.signal.removeEventListener("abort",q),w.abortListenerMap.delete(q),w.clearTimeout(J),F(H.signal.reason);},"abort"),J=w.setTimeout(()=>{H.signal&&(H.signal.removeEventListener("abort",q),w.abortListenerMap.delete(q)),z(G);},te);H.signal&&(H.signal.aborted?q():(H.signal.addEventListener("abort",q),w.abortListenerMap.set(q,H.signal)));})):W==="setImmediate"?(w.timersPromisesModuleMethods.push({methodName:"setImmediate",original:n.setImmediate}),n.setImmediate=(te,G={})=>new Promise((H,z)=>{let F=a(()=>{G.signal.removeEventListener("abort",F),w.abortListenerMap.delete(F),w.clearImmediate(q),z(G.signal.reason);},"abort"),q=w.setImmediate(()=>{G.signal&&(G.signal.removeEventListener("abort",F),w.abortListenerMap.delete(F)),H(te);});G.signal&&(G.signal.aborted?F():(G.signal.addEventListener("abort",F),w.abortListenerMap.set(F,G.signal)));})):W==="setInterval"&&(w.timersPromisesModuleMethods.push({methodName:"setInterval",original:n.setInterval}),n.setInterval=(te,G,H={})=>({[Symbol.asyncIterator]:()=>{let z=a(()=>{let ve,He,Pt=new Promise((Ze,pt)=>{ve=Ze,He=pt;});return Pt.resolve=ve,Pt.reject=He,Pt},"createResolvable"),F=false,q=false,J,ie=0,he=[],at=w.setInterval(()=>{he.length>0?he.shift().resolve():ie++;},te),Ye=a(()=>{H.signal.removeEventListener("abort",Ye),w.abortListenerMap.delete(Ye),w.clearInterval(at),F=true;for(let ve of he)ve.resolve();},"abort");return H.signal&&(H.signal.aborted?F=true:(H.signal.addEventListener("abort",Ye),w.abortListenerMap.set(Ye,H.signal))),{next:a(async()=>{if(H.signal?.aborted&&!q)throw q=true,H.signal.reason;if(F)return {done:true,value:void 0};if(ie>0)return ie--,{done:false,value:G};let ve=z();if(he.push(ve),await ve,J&&he.length===0&&J.resolve(),H.signal?.aborted&&!q)throw q=true,H.signal.reason;return F?{done:true,value:void 0}:{done:false,value:G}},"next"),return:a(async()=>F?{done:true,value:void 0}:(he.length>0&&(J=z(),await J),w.clearInterval(at),F=true,H.signal&&(H.signal.removeEventListener("abort",Ye),w.abortListenerMap.delete(Ye)),{done:true,value:void 0}),"return")}}})));}return w}return a(B,"install"),{timers:xe,createClock:qn,install:B,withGlobal:r}}a(r,"withGlobal");let o=r(e);return nn.timers=o.timers,nn.createClock=o.createClock,nn.install=o.install,nn.withGlobal=r,nn}a(Ow,"requireFakeTimersSrc");var Pw=Ow(),fa=class{static{a(this,"FakeTimers");}_global;_clock;_fakingTime;_fakingDate;_fakeTimers;_userConfig;_now=Ve.now;constructor({global:t,config:n}){this._userConfig=n,this._fakingDate=null,this._fakingTime=false,this._fakeTimers=Pw.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(t=1){if(this._checkFakeTimers())for(let n=t;n>0&&(this._clock.next(),this._clock.tick(0),this._clock.countTimers()!==0);n--);}async advanceTimersToNextTimerAsync(t=1){if(this._checkFakeTimers())for(let n=t;n>0&&(await this._clock.nextAsync(),this._clock.tick(0),this._clock.countTimers()!==0);n--);}advanceTimersByTime(t){this._checkFakeTimers()&&this._clock.tick(t);}async advanceTimersByTimeAsync(t){this._checkFakeTimers()&&await this._clock.tickAsync(t);}advanceTimersToNextFrame(){this._checkFakeTimers()&&this._clock.runToFrame();}runAllTicks(){this._checkFakeTimers()&&this._clock.runMicrotasks();}useRealTimers(){this._fakingDate&&(Df(),this._fakingDate=null),this._fakingTime&&(this._clock.uninstall(),this._fakingTime=false);}useFakeTimers(){if(this._fakingDate)throw new Error('"setSystemTime" was called already and date was mocked. Reset timers using `vi.useRealTimers()` if you want to use fake timers again.');if(!this._fakingTime){let t=Object.keys(this._fakeTimers.timers).filter(n=>n!=="nextTick"&&n!=="queueMicrotask");if(this._userConfig?.toFake?.includes("nextTick")&&_s())throw new Error("process.nextTick cannot be mocked inside child_process");this._clock=this._fakeTimers.install({now:Date.now(),...this._userConfig,toFake:this._userConfig?.toFake||t,ignoreMissingTimers:true}),this._fakingTime=true;}}reset(){if(this._checkFakeTimers()){let{now:t}=this._clock;this._clock.reset(),this._clock.setSystemTime(t);}}setSystemTime(t){let n=typeof t>"u"||t instanceof Date?t:new Date(t);this._fakingTime?this._clock.setSystemTime(n):(this._fakingDate=n??new Date(this.getRealSystemTime()),Lf(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}configure(t){this._userConfig=t;}isFakeTimers(){return this._fakingTime}_checkFakeTimers(){if(!this._fakingTime)throw new Error('Timers are not mocked. Try calling "vi.useFakeTimers()" first.');return this._fakingTime}};function fh(e,t){return t.stack!==void 0&&(e.stack=t.stack.replace(t.message,e.message)),e}a(fh,"copyStackTrace");function $w(e,t={}){let{setTimeout:n,setInterval:r,clearTimeout:o,clearInterval:i}=ft(),{interval:s=50,timeout:c=1e3}=typeof t=="number"?{timeout:t}:t,l=new Error("STACK_TRACE_ERROR");return new Promise((u,f)=>{let h,m="idle",d,g,p=a(I=>{d&&o(d),g&&i(g),u(I);},"onResolve"),S=a(()=>{g&&i(g);let I=h;I||(I=fh(new Error("Timed out in waitFor!"),l)),f(I);},"handleTimeout"),T=a(()=>{if(Dn.isFakeTimers()&&Dn.advanceTimersByTime(s),m!=="pending")try{let I=e();if(I!==null&&typeof I=="object"&&typeof I.then=="function"){let P=I;m="pending",P.then(A=>{m="resolved",p(A);},A=>{m="rejected",h=A;});}else return p(I),true}catch(I){h=I;}},"checkCallback");T()!==true&&(d=n(S,c),g=r(T,s));})}a($w,"waitFor");function Aw(e,t={}){let{setTimeout:n,setInterval:r,clearTimeout:o,clearInterval:i}=ft(),{interval:s=50,timeout:c=1e3}=typeof t=="number"?{timeout:t}:t,l=new Error("STACK_TRACE_ERROR");return new Promise((u,f)=>{let h="idle",m,d,g=a(T=>{d&&i(d),T||(T=fh(new Error("Timed out in waitUntil!"),l)),f(T);},"onReject"),p=a(T=>{if(T)return m&&o(m),d&&i(d),u(T),true},"onResolve"),S=a(()=>{if(Dn.isFakeTimers()&&Dn.advanceTimersByTime(s),h!=="pending")try{let T=e();if(T!==null&&typeof T=="object"&&typeof T.then=="function"){let I=T;h="pending",I.then(P=>{h="resolved",p(P);},P=>{h="rejected",g(P);});}else return p(T)}catch(T){g(T);}},"checkCallback");S()!==true&&(m=n(g,c),d=r(S,s));})}a(Aw,"waitUntil");function kw(){let e=null,t=en(),n,r=a(()=>n||=new fa({global:globalThis,config:t.config.fakeTimers}),"timers"),o=new Map,i=new Map,s=["PROD","DEV","SSR"],c={useFakeTimers(l){if(_s()&&(l?.toFake?.includes("nextTick")||t.config?.fakeTimers?.toFake?.includes("nextTick")))throw new Error('vi.useFakeTimers({ toFake: ["nextTick"] }) is not supported in node:child_process. Use --pool=threads if mocking nextTick is required.');return l?r().configure({...t.config.fakeTimers,...l}):r().configure(t.config.fakeTimers),r().useFakeTimers(),c},isFakeTimers(){return r().isFakeTimers()},useRealTimers(){return r().useRealTimers(),c},runOnlyPendingTimers(){return r().runOnlyPendingTimers(),c},async runOnlyPendingTimersAsync(){return await r().runOnlyPendingTimersAsync(),c},runAllTimers(){return r().runAllTimers(),c},async runAllTimersAsync(){return await r().runAllTimersAsync(),c},runAllTicks(){return r().runAllTicks(),c},advanceTimersByTime(l){return r().advanceTimersByTime(l),c},async advanceTimersByTimeAsync(l){return await r().advanceTimersByTimeAsync(l),c},advanceTimersToNextTimer(){return r().advanceTimersToNextTimer(),c},async advanceTimersToNextTimerAsync(){return await r().advanceTimersToNextTimerAsync(),c},advanceTimersToNextFrame(){return r().advanceTimersToNextFrame(),c},getTimerCount(){return r().getTimerCount()},setSystemTime(l){return r().setSystemTime(l),c},getMockedSystemTime(){return r().getMockedSystemTime()},getRealSystemTime(){return r().getRealSystemTime()},clearAllTimers(){return r().clearAllTimers(),c},spyOn:Wc,fn:Jc,waitFor:$w,waitUntil:Aw,hoisted(l){return Ne(l,'"vi.hoisted" factory',["function"]),l()},mock(l,u){if(typeof l!="string")throw new TypeError(`vi.mock() expects a string path, but received a ${typeof l}`);let f=rn("mock");Ke().queueMock(l,f,typeof u=="function"?()=>u(()=>Ke().importActual(l,f,Ke().getMockContext().callstack)):u);},unmock(l){if(typeof l!="string")throw new TypeError(`vi.unmock() expects a string path, but received a ${typeof l}`);Ke().queueUnmock(l,rn("unmock"));},doMock(l,u){if(typeof l!="string")throw new TypeError(`vi.doMock() expects a string path, but received a ${typeof l}`);let f=rn("doMock");Ke().queueMock(l,f,typeof u=="function"?()=>u(()=>Ke().importActual(l,f,Ke().getMockContext().callstack)):u);},doUnmock(l){if(typeof l!="string")throw new TypeError(`vi.doUnmock() expects a string path, but received a ${typeof l}`);Ke().queueUnmock(l,rn("doUnmock"));},async importActual(l){return Ke().importActual(l,rn("importActual"),Ke().getMockContext().callstack)},async importMock(l){return Ke().importMock(l,rn("importMock"))},mockObject(l){return Ke().mockObject({value:l}).value},mocked(l,u={}){return l},isMockFunction(l){return Rt(l)},clearAllMocks(){return [...dn].reverse().forEach(l=>l.mockClear()),c},resetAllMocks(){return [...dn].reverse().forEach(l=>l.mockReset()),c},restoreAllMocks(){return [...dn].reverse().forEach(l=>l.mockRestore()),c},stubGlobal(l,u){return o.has(l)||o.set(l,Object.getOwnPropertyDescriptor(globalThis,l)),Object.defineProperty(globalThis,l,{value:u,writable:true,configurable:true,enumerable:true}),c},stubEnv(l,u){return i.has(l)||i.set(l,process.env[l]),s.includes(l)?process.env[l]=u?"1":"":u===void 0?delete process.env[l]:process.env[l]=String(u),c},unstubAllGlobals(){return o.forEach((l,u)=>{l?Object.defineProperty(globalThis,u,l):Reflect.deleteProperty(globalThis,u);}),o.clear(),c},unstubAllEnvs(){return i.forEach((l,u)=>{l===void 0?delete process.env[u]:process.env[u]=l;}),i.clear(),c},resetModules(){return Zu(t.moduleCache),c},async dynamicImportSettled(){return Os()},setConfig(l){e||(e={...t.config}),Object.assign(t.config,l);},resetConfig(){e&&Object.assign(t.config,e);}};return c}a(kw,"createVitest");var hh=kw(),Dn=hh;function Ke(){return typeof __vitest_mocker__<"u"?__vitest_mocker__:new Proxy({},{get(e,t){throw new Error(`Vitest mocker was not initialized in this environment. vi.${String(t)}() is forbidden.`)}})}a(Ke,"_mocker");function rn(e){let n=Go({stackTraceLimit:5}).split(`
159
- `),r=n.findIndex(i=>i.includes(` at Object.${e}`)||i.includes(`${e}@`));return In(n[r+1])?.file||""}a(rn,"getImporter");var sn=ga(Th());zod.z.strictObject({path:zod.z.string().describe("Can contain glob patterns, relative paths, absolute paths, package paths, or package sub-paths"),filter:zod.z.custom(e=>typeof e=="function").optional().describe("A function that takes a path and returns a boolean")});function zt({rendererId:e,alias:t,path:n}){return (()=>{switch(e){case "react":case "angular":return {rendererId:e,codeSrcPath:n,exportName:t||"default"};case "vue":case "hbs":case "html":return {rendererId:e,codeSrcPath:n};case "twig":return {rendererId:e,namespacePath:t};case "web-components":return {rendererId:e,elementName:t};case "ios":return {rendererId:e,moduleName:n,symbolName:t};case "android":return {rendererId:e,packageName:n,componentName:t};default:{throw new Error(`Invalid renderer ID: ${e}`)}}})()}a(zt,"normalizeTemplateInfo");function an(e){switch(e.rendererId){case "react":case "angular":return {path:e.codeSrcPath,alias:e.exportName};case "hbs":case "html":case "vue":return {path:e.codeSrcPath};case "twig":return {alias:e.namespacePath};case "web-components":return {alias:e.elementName};case "ios":return {path:e.moduleName,alias:e.symbolName};case "android":return {path:e.packageName,alias:e.componentName};default:{throw new Error(`Invalid template info: ${JSON.stringify(e)}`)}}}a(an,"convertTemplateInfoToOldWay");An("normalizeTemplateInfo",()=>{Le("should handle React template with default export",()=>{let e=zt({rendererId:"react",path:"@components/Button"});(0, sn.expectTypeOf)(e.codeSrcPath).toEqualTypeOf(),(0, sn.expectTypeOf)(e.rendererId).toMatchTypeOf(),(0, sn.expectTypeOf)(e.rendererId).toEqualTypeOf(),(0, sn.expectTypeOf)(e.exportName).toEqualTypeOf(),De(e).toEqual({rendererId:"react",codeSrcPath:"@components/Button",exportName:"default"});}),Le("should handle React template with named export",()=>{let e=zt({rendererId:"react",path:"@components/Button",alias:"CustomButton"});De(e).toEqual({rendererId:"react",codeSrcPath:"@components/Button",exportName:"CustomButton"});}),Le("should handle Vue template",()=>{let e=zt({rendererId:"vue",path:"@components/Button.vue"});De(e).toEqual({rendererId:"vue",codeSrcPath:"@components/Button.vue"});}),Le("should handle web components",()=>{let e=zt({rendererId:"web-components",alias:"custom-button"});De(e).toEqual({rendererId:"web-components",elementName:"custom-button"});}),Le("should handle Twig template",()=>{let e=zt({rendererId:"twig",alias:"@namespace/button"});De(e).toEqual({rendererId:"twig",namespacePath:"@namespace/button"});}),Le("should throw error for invalid renderer ID",()=>{De(()=>zt({rendererId:"invalid",path:"some/path"})).toThrow("Invalid renderer ID: invalid");});});An("convertTemplateInfoToOldWay",()=>{Le("should convert React template info",()=>{let e=an({rendererId:"react",codeSrcPath:"@components/Button",exportName:"CustomButton"});De(e).toEqual({path:"@components/Button",alias:"CustomButton"});}),Le("should convert Vue template info",()=>{let e=an({rendererId:"vue",codeSrcPath:"@components/Button.vue"});De(e).toEqual({path:"@components/Button.vue"});}),Le("should convert web components template info",()=>{let e=an({rendererId:"web-components",elementName:"custom-button"});De(e).toEqual({alias:"custom-button"});}),Le("should convert Twig template info",()=>{let e=an({rendererId:"twig",namespacePath:"@namespace/button"});De(e).toEqual({alias:"@namespace/button"});}),Le("should throw error for invalid template info",()=>{De(()=>an({rendererId:"invalid"})).toThrow("Invalid template info:");});});
152
+ `,i=await e.readSnapshotFile(n);i!=null&&i===o||await e.saveSnapshotFile(n,o);}a(Xy,"saveSnapshotFile");function Zi(e=[],t=[]){let n=Array.from(e);return t.forEach((r,o)=>{let i=n[o];Array.isArray(e[o])?n[o]=Zi(e[o],r):Pr(i)?n[o]=ns(e[o],r):n[o]=r;}),n}a(Zi,"deepMergeArray");function ns(e,t){if(Pr(e)&&Pr(t)){let n={...e};return Object.keys(t).forEach(r=>{Pr(t[r])&&!t[r].$$typeof?r in e?n[r]=ns(e[r],t[r]):Object.assign(n,{[r]:t[r]}):Array.isArray(t[r])?n[r]=Zi(e[r],t[r]):Object.assign(n,{[r]:t[r]});}),n}else if(Array.isArray(e)&&Array.isArray(t))return Zi(e,t);return e}a(ns,"deepMergeSnapshot");var Rr=class extends Map{static{a(this,"DefaultMap");}constructor(t,n){super(n),this.defaultFn=t;}get(t){return this.has(t)||this.set(t,this.defaultFn(t)),super.get(t)}},Ct=class extends Rr{static{a(this,"CounterMap");}constructor(){super(()=>0);}_total;valueOf(){return this._total=this.total()}increment(t){typeof this._total<"u"&&this._total++,this.set(t,this.get(t)+1);}total(){if(typeof this._total<"u")return this._total;let t=0;for(let n of this.values())t+=n;return t}};function Du(e,t){return e.file===t.file&&e.column===t.column&&e.line===t.line}a(Du,"isSameStackPosition");var Xi=class e{static{a(this,"SnapshotState");}_counters=new Ct;_dirty;_updateSnapshot;_snapshotData;_initialData;_inlineSnapshots;_inlineSnapshotStacks;_testIdToKeys=new Rr(()=>[]);_rawSnapshots;_uncheckedKeys;_snapshotFormat;_environment;_fileExists;expand;_added=new Ct;_matched=new Ct;_unmatched=new Ct;_updated=new Ct;get added(){return this._added}set added(t){this._added._total=t;}get matched(){return this._matched}set matched(t){this._matched._total=t;}get unmatched(){return this._unmatched}set unmatched(t){this._unmatched._total=t;}get updated(){return this._updated}set updated(t){this._updated._total=t;}constructor(t,n,r,o){this.testFilePath=t,this.snapshotPath=n;let{data:i,dirty:s}=Ky(r,o);this._fileExists=r!=null,this._initialData={...i},this._snapshotData={...i},this._dirty=s,this._inlineSnapshots=[],this._inlineSnapshotStacks=[],this._rawSnapshots=[],this._uncheckedKeys=new Set(Object.keys(this._snapshotData)),this.expand=o.expand||false,this._updateSnapshot=o.updateSnapshot,this._snapshotFormat={printBasicPrototype:false,escapeString:false,...o.snapshotFormat},this._environment=o.snapshotEnvironment;}static async create(t,n){let r=await n.snapshotEnvironment.resolvePath(t),o=await n.snapshotEnvironment.readSnapshotFile(r);return new e(t,r,o,n)}get environment(){return this._environment}markSnapshotsAsCheckedForTest(t){this._uncheckedKeys.forEach(n=>{/ \d+$| > /.test(n.slice(t.length))&&this._uncheckedKeys.delete(n);});}clearTest(t){this._inlineSnapshots=this._inlineSnapshots.filter(n=>n.testId!==t),this._inlineSnapshotStacks=this._inlineSnapshotStacks.filter(n=>n.testId!==t);for(let n of this._testIdToKeys.get(t)){let r=Vy(n),o=this._counters.get(r);o>0&&((n in this._snapshotData||n in this._initialData)&&(this._snapshotData[n]=this._initialData[n]),this._counters.set(r,o-1));}this._testIdToKeys.delete(t),this.added.delete(t),this.updated.delete(t),this.matched.delete(t),this.unmatched.delete(t);}_inferInlineSnapshotStack(t){let n=t.findIndex(o=>o.method.match(/__VITEST_(RESOLVES|REJECTS)__/));if(n!==-1)return t[n+3];let r=t.findIndex(o=>o.method.includes("__INLINE_SNAPSHOT__"));return r!==-1?t[r+2]:null}_addSnapshot(t,n,r){this._dirty=true,r.stack?this._inlineSnapshots.push({snapshot:n,testId:r.testId,...r.stack}):r.rawSnapshot?this._rawSnapshots.push({...r.rawSnapshot,snapshot:n}):this._snapshotData[t]=n;}async save(){let t=Object.keys(this._snapshotData).length,n=this._inlineSnapshots.length,r=this._rawSnapshots.length,o=!t&&!n&&!r,i={deleted:false,saved:false};return (this._dirty||this._uncheckedKeys.size)&&!o?(t&&(await Xy(this._environment,this._snapshotData,this.snapshotPath),this._fileExists=true),n&&await Sy(this._environment,this._inlineSnapshots),r&&await Cy(this._environment,this._rawSnapshots),i.saved=true):!t&&this._fileExists&&(this._updateSnapshot==="all"&&(await this._environment.removeSnapshotFile(this.snapshotPath),this._fileExists=false),i.deleted=true),i}getUncheckedCount(){return this._uncheckedKeys.size||0}getUncheckedKeys(){return Array.from(this._uncheckedKeys)}removeUncheckedKeys(){this._updateSnapshot==="all"&&this._uncheckedKeys.size&&(this._dirty=true,this._uncheckedKeys.forEach(t=>delete this._snapshotData[t]),this._uncheckedKeys.clear());}match({testId:t,testName:n,received:r,key:o,inlineSnapshot:i,isInline:s,error:c,rawSnapshot:u}){this._counters.increment(n);let l=this._counters.get(n);o||(o=Wy(n,l)),this._testIdToKeys.get(t).push(o),s&&this._snapshotData[o]!==void 0||this._uncheckedKeys.delete(o);let f=u&&typeof r=="string"?r:Yy(r,void 0,this._snapshotFormat);u||(f=Gy(f)),u&&u.content&&u.content.match(/\r\n/)&&!f.match(/\r\n/)&&(u.content=ts(u.content));let h=s?i:u?u.content:this._snapshotData[o],d=u?h:h?.trim(),p=d===(u?f:f.trim()),m=h!==void 0,y=s||this._fileExists||u&&u.content!=null;p&&!s&&!u&&(this._snapshotData[o]=f);let v;if(s){var S,M;let $=gy(c||new Error("snapshot"),{ignoreStackEntries:[]}),O=this._inferInlineSnapshotStack($);if(!O)throw new Error(`@vitest/snapshot: Couldn't infer stack frame for inline snapshot.
153
+ ${JSON.stringify($)}`);v=((S=(M=this.environment).processStackTrace)===null||S===void 0?void 0:S.call(M,O))||O,v.column--;let C=this._inlineSnapshotStacks.filter(N=>Du(N,v));if(C.length>0){this._inlineSnapshots=this._inlineSnapshots.filter(I=>!Du(I,v));let N=C.find(I=>I.snapshot!==f);if(N)throw Object.assign(new Error("toMatchInlineSnapshot with different snapshots cannot be called at the same location"),{actual:f,expected:N.snapshot})}this._inlineSnapshotStacks.push({...v,testId:t,snapshot:f});}return m&&this._updateSnapshot==="all"||(!m||!y)&&(this._updateSnapshot==="new"||this._updateSnapshot==="all")?(this._updateSnapshot==="all"?p?this.matched.increment(t):(m?this.updated.increment(t):this.added.increment(t),this._addSnapshot(o,f,{stack:v,testId:t,rawSnapshot:u})):(this._addSnapshot(o,f,{stack:v,testId:t,rawSnapshot:u}),this.added.increment(t)),{actual:"",count:l,expected:"",key:o,pass:true}):p?(this.matched.increment(t),{actual:"",count:l,expected:"",key:o,pass:true}):(this.unmatched.increment(t),{actual:u?f:Ru(f),count:l,expected:d!==void 0?u?d:Ru(d):void 0,key:o,pass:false})}async pack(){let t={filepath:this.testFilePath,added:0,fileDeleted:false,matched:0,unchecked:0,uncheckedKeys:[],unmatched:0,updated:0},n=this.getUncheckedCount(),r=this.getUncheckedKeys();n&&this.removeUncheckedKeys();let o=await this.save();return t.fileDeleted=o.deleted,t.added=this.added.total(),t.matched=this.matched.total(),t.unmatched=this.unmatched.total(),t.updated=this.updated.total(),t.unchecked=o.deleted?0:n,t.uncheckedKeys=Array.from(r),t}};function Lu(e,t,n,r){let o=new Error(e);return Object.defineProperty(o,"actual",{value:n,enumerable:true,configurable:true,writable:true}),Object.defineProperty(o,"expected",{value:r,enumerable:true,configurable:true,writable:true}),Object.defineProperty(o,"diffOptions",{value:{expand:t}}),o}a(Lu,"createMismatchError");var Fr=class{static{a(this,"SnapshotClient");}snapshotStateMap=new Map;constructor(t={}){this.options=t;}async setup(t,n){this.snapshotStateMap.has(t)||this.snapshotStateMap.set(t,await Xi.create(t,n));}async finish(t){let r=await this.getSnapshotState(t).pack();return this.snapshotStateMap.delete(t),r}skipTest(t,n){this.getSnapshotState(t).markSnapshotsAsCheckedForTest(n);}clearTest(t,n){this.getSnapshotState(t).clearTest(n);}getSnapshotState(t){let n=this.snapshotStateMap.get(t);if(!n)throw new Error(`The snapshot state for '${t}' is not found. Did you call 'SnapshotClient.setup()'?`);return n}assert(t){let{filepath:n,name:r,testId:o=r,message:i,isInline:s=false,properties:c,inlineSnapshot:u,error:l,errorMessage:f,rawSnapshot:h}=t,{received:d}=t;if(!n)throw new Error("Snapshot cannot be used outside of test");let p=this.getSnapshotState(n);if(typeof c=="object"){if(typeof d!="object"||!d)throw new Error("Received value must be an object when the matcher has properties");try{var m,y;if(((m=(y=this.options).isEqual)===null||m===void 0?void 0:m.call(y,d,c))??false)d=ns(d,c);else throw Lu("Snapshot properties mismatched",p.expand,d,c)}catch(C){throw C.message=f||"Snapshot mismatched",C}}let v=[r,...i?[i]:[]].join(" > "),{actual:S,expected:M,key:$,pass:O}=p.match({testId:o,testName:v,received:d,isInline:s,error:l,inlineSnapshot:u,rawSnapshot:h});if(!O)throw Lu(`Snapshot \`${$||"unknown"}\` mismatched`,p.expand,h?S:S?.trim(),h?M:M?.trim())}async assertRaw(t){if(!t.rawSnapshot)throw new Error("Raw snapshot is required");let{filepath:n,rawSnapshot:r}=t;if(r.content==null){if(!n)throw new Error("Snapshot cannot be used outside of test");let o=this.getSnapshotState(n);t.filepath||(t.filepath=n),r.file=await o.environment.resolveRawPath(n,r.file),r.content=await o.environment.readSnapshotFile(r.file)??void 0;}return this.assert(t)}clear(){this.snapshotStateMap.clear();}};var Lr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};var Be=Date,rs=null,gt=class e extends Be{static{a(this,"MockDate");}constructor(t,n,r,o,i,s,c){super();let u;switch(arguments.length){case 0:rs!==null?u=new Be(rs.valueOf()):u=new Be;break;case 1:u=new Be(t);break;default:r=typeof r>"u"?1:r,o=o||0,i=i||0,s=s||0,c=c||0,u=new Be(t,n,r,o,i,s,c);break}return Object.setPrototypeOf(u,e.prototype),u}};gt.UTC=Be.UTC;gt.now=function(){return new gt().valueOf()};gt.parse=function(e){return Be.parse(e)};gt.toString=function(){return Be.toString()};function Ku(e){let t=new Be(e.valueOf());if(Number.isNaN(t.getTime()))throw new TypeError(`mockdate: The time set is an invalid date: ${e}`);globalThis.Date=gt,rs=t.valueOf();}a(Ku,"mockDate");function os(){globalThis.Date=Be;}a(os,"resetDate");var Qy=["matchSnapshot","toMatchSnapshot","toMatchInlineSnapshot","toThrowErrorMatchingSnapshot","toThrowErrorMatchingInlineSnapshot","throws","Throw","throw","toThrow","toThrowError"];function eb(e,t){throw e.cause==null&&(e.cause=new Error("Matcher did not succeed in time.")),gf(e,t)}a(eb,"throwWithCause");function tb(e){return a(function(n,r={}){let o=vn().config.expect?.poll??{},{interval:i=o.interval??50,timeout:s=o.timeout??1e3,message:c}=r,u=e(null,c).withContext({poll:true});n=n.bind(u);let l=se.util.flag(u,"vitest-test");if(!l)throw new Error("expect.poll() must be called inside a test");let f=new Proxy(u,{get(h,d,p){let m=Reflect.get(h,d,p);if(typeof m!="function")return m instanceof se.Assertion?f:m;if(d==="assert")return m;if(typeof d=="string"&&Qy.includes(d))throw new SyntaxError(`expect.poll() is not supported in combination with .${d}(). Use vi.waitFor() if your assertion condition is unstable.`);return function(...y){let v=new Error("STACK_TRACE_ERROR"),S=a(async()=>{let{setTimeout:O,clearTimeout:C}=at(),N="fn",I=false,q=O(()=>{I=true;},s);se.util.flag(u,"_name",d);try{for(;;){let X=I;X&&se.util.flag(u,"_isLastPollAttempt",true);try{N="fn";let D=await n();return se.util.flag(u,"object",D),N="assertion",await m.call(u,...y)}catch(D){(X||N==="assertion"&&se.util.flag(u,"_poll.assert_once"))&&eb(D,v),await ql(i,O);}}}finally{C(q);}},"promise"),M=false;l.onFinished??=[],l.onFinished.push(()=>{if(!M){let O=se.util.flag(u,"negate")?"not.":"",C=`expect.${se.util.flag(u,"_poll.element")?"element(locator)":"poll(assertion)"}.${O}${String(d)}()`;throw gf(new Error(`${C} was not awaited. This assertion is asynchronous and must be awaited; otherwise, it is not executed to avoid unhandled rejections:
154
+
155
+ await ${C}
156
+ `),v)}});let $;return {then(O,C){return M=true,($||=S()).then(O,C)},catch(O){return ($||=S()).catch(O)},finally(O){return ($||=S()).finally(O)},[Symbol.toStringTag]:"Promise"}}}});return f},"poll")}a(tb,"createExpectPoll");function gf(e,t){return t.stack!==void 0&&(e.stack=t.stack.replace(t.message,e.message)),e}a(gf,"copyStackTrace$1");function nb(e,t,n){let r=e.flag(t,"negate")?"not.":"",o=`${e.flag(t,"_name")}(expected)`,i=e.flag(t,"promise");return `expect(actual)${i?`.${i}`:""}.${r}${o}`}a(nb,"createAssertionMessage");function rb(e,t,n,r){let o=e;if(o&&t instanceof Promise){t=t.finally(()=>{if(!o.promises)return;let s=o.promises.indexOf(t);s!==-1&&o.promises.splice(s,1);}),o.promises||(o.promises=[]),o.promises.push(t);let i=false;return o.onFinished??=[],o.onFinished.push(()=>{if(!i){let s=(globalThis.__vitest_worker__?.onFilterStackTrace||(c=>c||""))(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 Vitest 3. ",`Please remember to await the assertion.
157
+ `,s].join(""));}}),{then(s,c){return i=true,t.then(s,c)},catch(s){return t.catch(s)},finally(s){return t.finally(s)},[Symbol.toStringTag]:"Promise"}}return t}a(rb,"recordAsyncExpect");var is;function _n(){return is||(is=new Fr({isEqual:a((e,t)=>K(e,t,[Ce,Mt]),"isEqual")})),is}a(_n,"getSnapshotClient");function Gu(e,t){if(typeof e!="function"){if(!t)throw new Error(`expected must be a function, received ${typeof e}`);return e}try{e();}catch(n){return n}throw new Error("snapshot function didn't throw")}a(Gu,"getError");function On(e){return {filepath:e.file.filepath,name:Ri(e).slice(1).join(" > "),testId:e.id}}a(On,"getTestNames");var ob=a((e,t)=>{function n(r,o){let i=t.flag(o,"vitest-test");if(!i)throw new Error(`'${r}' cannot be used without test context`);return i}a(n,"getTest");for(let r of ["matchSnapshot","toMatchSnapshot"])t.addMethod(e.Assertion.prototype,r,function(o,i){if(t.flag(this,"_name",r),t.flag(this,"negate"))throw new Error(`${r} cannot be used with "not"`);let s=t.flag(this,"object"),c=n(r,this);typeof o=="string"&&typeof i>"u"&&(i=o,o=void 0);let u=t.flag(this,"message");_n().assert({received:s,message:i,isInline:false,properties:o,errorMessage:u,...On(c)});});t.addMethod(e.Assertion.prototype,"toMatchFileSnapshot",function(r,o){if(t.flag(this,"_name","toMatchFileSnapshot"),t.flag(this,"negate"))throw new Error('toMatchFileSnapshot cannot be used with "not"');let i=new Error("resolves"),s=t.flag(this,"object"),c=n("toMatchFileSnapshot",this),u=t.flag(this,"message");return rb(c,_n().assertRaw({received:s,message:o,isInline:false,rawSnapshot:{file:r},errorMessage:u,...On(c)}),nb(t,this),i)}),t.addMethod(e.Assertion.prototype,"toMatchInlineSnapshot",a(function(o,i,s){if(t.flag(this,"_name","toMatchInlineSnapshot"),t.flag(this,"negate"))throw new Error('toMatchInlineSnapshot cannot be used with "not"');let c=n("toMatchInlineSnapshot",this);if(c.each||c.suite?.each)throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");let u=t.flag(this,"object"),l=t.flag(this,"error");typeof o=="string"&&(s=i,i=o,o=void 0),i&&(i=es(i));let f=t.flag(this,"message");_n().assert({received:u,message:s,isInline:true,properties:o,inlineSnapshot:i,error:l,errorMessage:f,...On(c)});},"__INLINE_SNAPSHOT__")),t.addMethod(e.Assertion.prototype,"toThrowErrorMatchingSnapshot",function(r){if(t.flag(this,"_name","toThrowErrorMatchingSnapshot"),t.flag(this,"negate"))throw new Error('toThrowErrorMatchingSnapshot cannot be used with "not"');let o=t.flag(this,"object"),i=n("toThrowErrorMatchingSnapshot",this),s=t.flag(this,"promise"),c=t.flag(this,"message");_n().assert({received:Gu(o,s),message:r,errorMessage:c,...On(i)});}),t.addMethod(e.Assertion.prototype,"toThrowErrorMatchingInlineSnapshot",a(function(o,i){if(t.flag(this,"negate"))throw new Error('toThrowErrorMatchingInlineSnapshot cannot be used with "not"');let s=n("toThrowErrorMatchingInlineSnapshot",this);if(s.each||s.suite?.each)throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");let c=t.flag(this,"object"),u=t.flag(this,"error"),l=t.flag(this,"promise"),f=t.flag(this,"message");o&&(o=es(o)),_n().assert({received:Gu(c,l),message:i,inlineSnapshot:o,isInline:true,error:u,errorMessage:f,...On(s)});},"__INLINE_SNAPSHOT__")),t.addMethod(e.expect,"addSnapshotSerializer",Vu);},"SnapshotPlugin");se.use(Dl);se.use(Fl);se.use(ob);se.use(jl);function yf(e){let t=a(((i,s)=>{let{assertionCalls:c}=Dt(t);Tr({assertionCalls:c+1},t);let u=se.expect(i,s),l=e||yn();return l?u.withTest(l):u}),"expect");Object.assign(t,se.expect),Object.assign(t,globalThis[wr]),t.getState=()=>Dt(t),t.setState=i=>Tr(i,t);let n=Dt(globalThis[mn])||{};Tr({...n,assertionCalls:0,isExpectingAssertions:false,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null,get testPath(){return vn().filepath},currentTestName:e?e.fullTestName??"":n.currentTestName},t),t.assert=se.assert,t.extend=i=>se.expect.extend(t,i),t.addEqualityTesters=i=>kl(i),t.soft=(...i)=>t(...i).withContext({soft:true}),t.poll=tb(t),t.unreachable=i=>{se.assert.fail(`expected${i?` "${i}" `:" "}not to be reached`);};function r(i){let s=a(()=>new Error(`expected number of assertions to be ${i}, but got ${t.getState().assertionCalls}`),"errorGen");Error.captureStackTrace&&Error.captureStackTrace(s(),r),t.setState({expectedAssertionsNumber:i,expectedAssertionsNumberErrorGen:s});}a(r,"assertions");function o(){let i=new Error("expected any number of assertion, but got none");Error.captureStackTrace&&Error.captureStackTrace(i,o),t.setState({isExpectingAssertions:true,isExpectingAssertionsError:i});}return a(o,"hasAssertions"),se.util.addMethod(t,"assertions",r),se.util.addMethod(t,"hasAssertions",o),t.extend(Ol),t}a(yf,"createExpect");var ke=yf();Object.defineProperty(globalThis,mn,{value:ke,writable:true,configurable:true});var Ut={},ss,Hu;function ab(){if(Hu)return ss;Hu=1;var e;return typeof Lr<"u"?e=Lr:typeof window<"u"?e=window:e=self,ss=e,ss}a(ab,"requireGlobal");var as,Ju;function cb(){if(Ju)return as;Ju=1;let e;try{e=false;}catch{e=true;}return as=e,as}a(cb,"requireThrowsOnProto");var cs,Yu;function Vt(){if(Yu)return cs;Yu=1;var e=Function.call,t=cb(),n=["size","caller","callee","arguments"];return t&&n.push("__proto__"),cs=a(function(o){return Object.getOwnPropertyNames(o).reduce(function(i,s){return n.includes(s)||typeof o[s]!="function"||(i[s]=e.bind(o[s])),i},Object.create(null))},"copyPrototypeMethods"),cs}a(Vt,"requireCopyPrototypeMethods");var ls,Zu;function Br(){if(Zu)return ls;Zu=1;var e=Vt();return ls=e(Array.prototype),ls}a(Br,"requireArray");var us,Xu;function lb(){if(Xu)return us;Xu=1;var e=Br().every;function t(o,i){return o[i.id]===void 0&&(o[i.id]=0),o[i.id]<i.callCount}a(t,"hasCallsLeft");function n(o,i,s,c){var u=true;return s!==c.length-1&&(u=i.calledBefore(c[s+1])),t(o,i)&&u?(o[i.id]+=1,true):false}a(n,"checkAdjacentCalls");function r(o){var i={},s=arguments.length>1?arguments:o;return e(s,n.bind(null,i))}return a(r,"calledInOrder"),us=r,us}a(lb,"requireCalledInOrder");var fs,Qu;function ub(){if(Qu)return fs;Qu=1;function e(t){return t.constructor&&t.constructor.name||null}return a(e,"className"),fs=e,fs}a(ub,"requireClassName");var hs={},ef;function fb(){return ef||(ef=1,(function(e){e.wrap=function(t,n){var r=a(function(){return e.printWarning(n),t.apply(this,arguments)},"wrapped");return t.prototype&&(r.prototype=t.prototype),r},e.defaultMsg=function(t,n){return `${t}.${n} is deprecated and will be removed from the public API in a future version of ${t}.`},e.printWarning=function(t){typeof process=="object"&&process.emitWarning?process.emitWarning(t):console.info?console.info(t):console.log(t);};})(hs)),hs}a(fb,"requireDeprecated");var ds,tf;function hb(){return tf||(tf=1,ds=a(function(t,n){var r=true;try{t.forEach(function(){if(!n.apply(this,arguments))throw new Error});}catch{r=false;}return r},"every")),ds}a(hb,"requireEvery");var ps,nf;function db(){return nf||(nf=1,ps=a(function(t){if(!t)return "";try{return t.displayName||t.name||(String(t).match(/function ([^\s(]+)/)||[])[1]}catch{return ""}},"functionName")),ps}a(db,"requireFunctionName");var ms,rf;function pb(){if(rf)return ms;rf=1;var e=Br().sort,t=Br().slice;function n(o,i){var s=o.getCall(0),c=i.getCall(0),u=s&&s.callId||-1,l=c&&c.callId||-1;return u<l?-1:1}a(n,"comparator");function r(o){return e(t(o),n)}return a(r,"orderByFirstCall"),ms=r,ms}a(pb,"requireOrderByFirstCall");var gs,of;function mb(){if(of)return gs;of=1;var e=Vt();return gs=e(Function.prototype),gs}a(mb,"require_function");var ys,sf;function gb(){if(sf)return ys;sf=1;var e=Vt();return ys=e(Map.prototype),ys}a(gb,"requireMap");var bs,af;function yb(){if(af)return bs;af=1;var e=Vt();return bs=e(Object.prototype),bs}a(yb,"requireObject");var ws,cf;function bb(){if(cf)return ws;cf=1;var e=Vt();return ws=e(Set.prototype),ws}a(bb,"requireSet");var vs,lf;function wb(){if(lf)return vs;lf=1;var e=Vt();return vs=e(String.prototype),vs}a(wb,"requireString");var Ss,uf;function vb(){return uf||(uf=1,Ss={array:Br(),function:mb(),map:gb(),object:yb(),set:bb(),string:wb()}),Ss}a(vb,"requirePrototypes");var qr={exports:{}},Sb=qr.exports,ff;function Tb(){return ff||(ff=1,(function(e,t){(function(n,r){e.exports=r();})(Sb,(function(){var n=typeof Promise=="function",r=typeof self=="object"?self:Lr,o=typeof Symbol<"u",i=typeof Map<"u",s=typeof Set<"u",c=typeof WeakMap<"u",u=typeof WeakSet<"u",l=typeof DataView<"u",f=o&&typeof Symbol.iterator<"u",h=o&&typeof Symbol.toStringTag<"u",d=s&&typeof Set.prototype.entries=="function",p=i&&typeof Map.prototype.entries=="function",m=d&&Object.getPrototypeOf(new Set().entries()),y=p&&Object.getPrototypeOf(new Map().entries()),v=f&&typeof Array.prototype[Symbol.iterator]=="function",S=v&&Object.getPrototypeOf([][Symbol.iterator]()),M=f&&typeof String.prototype[Symbol.iterator]=="function",$=M&&Object.getPrototypeOf(""[Symbol.iterator]()),O=8,C=-1;function N(I){var q=typeof I;if(q!=="object")return q;if(I===null)return "null";if(I===r)return "global";if(Array.isArray(I)&&(h===false||!(Symbol.toStringTag in I)))return "Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&I===window.location)return "Location";if(typeof window.document=="object"&&I===window.document)return "Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&I===window.navigator.mimeTypes)return "MimeTypeArray";if(typeof window.navigator.plugins=="object"&&I===window.navigator.plugins)return "PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&I instanceof window.HTMLElement){if(I.tagName==="BLOCKQUOTE")return "HTMLQuoteElement";if(I.tagName==="TD")return "HTMLTableDataCellElement";if(I.tagName==="TH")return "HTMLTableHeaderCellElement"}}var X=h&&I[Symbol.toStringTag];if(typeof X=="string")return X;var D=Object.getPrototypeOf(I);return D===RegExp.prototype?"RegExp":D===Date.prototype?"Date":n&&D===Promise.prototype?"Promise":s&&D===Set.prototype?"Set":i&&D===Map.prototype?"Map":u&&D===WeakSet.prototype?"WeakSet":c&&D===WeakMap.prototype?"WeakMap":l&&D===DataView.prototype?"DataView":i&&D===y?"Map Iterator":s&&D===m?"Set Iterator":v&&D===S?"Array Iterator":M&&D===$?"String Iterator":D===null?"Object":Object.prototype.toString.call(I).slice(O,C)}return a(N,"typeDetect"),N}));})(qr)),qr.exports}a(Tb,"requireTypeDetect");var Ts,hf;function Eb(){if(hf)return Ts;hf=1;var e=Tb();return Ts=a(function(n){return e(n).toLowerCase()},"typeOf"),Ts}a(Eb,"requireTypeOf");var Es,df;function xb(){if(df)return Es;df=1;function e(t){return t&&t.toString?t.toString():String(t)}return a(e,"valueToString"),Es=e,Es}a(xb,"requireValueToString");var xs,pf;function Mb(){return pf||(pf=1,xs={global:ab(),calledInOrder:lb(),className:ub(),deprecated:fb(),every:hb(),functionName:db(),orderByFirstCall:pb(),prototypes:vb(),typeOf:Eb(),valueToString:xb()}),xs}a(Mb,"requireLib");var mf;function _b(){if(mf)return Ut;mf=1;let e=Mb().global,t,n;if(typeof __vitest_required__<"u"){try{t=__vitest_required__.timers;}catch{}try{n=__vitest_required__.timersPromises;}catch{}}function r(i){let s=Math.pow(2,31)-1,c=1e12,u=a(function(){},"NOOP"),l=a(function(){return []},"NOOP_ARRAY"),f={},h,d=false;i.setTimeout&&(f.setTimeout=true,h=i.setTimeout(u,0),d=typeof h=="object"),f.clearTimeout=!!i.clearTimeout,f.setInterval=!!i.setInterval,f.clearInterval=!!i.clearInterval,f.hrtime=i.process&&typeof i.process.hrtime=="function",f.hrtimeBigint=f.hrtime&&typeof i.process.hrtime.bigint=="function",f.nextTick=i.process&&typeof i.process.nextTick=="function";let p=i.process&&i.__vitest_required__&&i.__vitest_required__.util.promisify;f.performance=i.performance&&typeof i.performance.now=="function";let m=i.Performance&&(typeof i.Performance).match(/^(function|object)$/),y=i.performance&&i.performance.constructor&&i.performance.constructor.prototype;f.queueMicrotask=i.hasOwnProperty("queueMicrotask"),f.requestAnimationFrame=i.requestAnimationFrame&&typeof i.requestAnimationFrame=="function",f.cancelAnimationFrame=i.cancelAnimationFrame&&typeof i.cancelAnimationFrame=="function",f.requestIdleCallback=i.requestIdleCallback&&typeof i.requestIdleCallback=="function",f.cancelIdleCallbackPresent=i.cancelIdleCallback&&typeof i.cancelIdleCallback=="function",f.setImmediate=i.setImmediate&&typeof i.setImmediate=="function",f.clearImmediate=i.clearImmediate&&typeof i.clearImmediate=="function",f.Intl=i.Intl&&typeof i.Intl=="object",i.clearTimeout&&i.clearTimeout(h);let v=i.Date,S=f.Intl?Object.defineProperties(Object.create(null),Object.getOwnPropertyDescriptors(i.Intl)):void 0,M=c;if(v===void 0)throw new Error("The global scope doesn't have a `Date` object (see https://github.com/sinonjs/sinon/issues/1852#issuecomment-419622780)");f.Date=true;class ${static{a(this,"FakePerformanceEntry");}constructor(_,k,P,w){this.name=_,this.entryType=k,this.startTime=P,this.duration=w;}toJSON(){return JSON.stringify({...this})}}function O(E){return Number.isFinite?Number.isFinite(E):isFinite(E)}a(O,"isNumberFinite");let C=false;function N(E,_){E.loopLimit&&_===E.loopLimit-1&&(C=true);}a(N,"checkIsNearInfiniteLimit");function I(){C=false;}a(I,"resetIsNearInfiniteLimit");function q(E){if(!E)return 0;let _=E.split(":"),k=_.length,P=k,w=0,F;if(k>3||!/^(\d\d:){0,2}\d\d?$/.test(E))throw new Error("tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits");for(;P--;){if(F=parseInt(_[P],10),F>=60)throw new Error(`Invalid time ${E}`);w+=F*Math.pow(60,k-P-1);}return w*1e3}a(q,"parseTime");function X(E){let k=E*1e6%1e6,P=k<0?k+1e6:k;return Math.floor(P)}a(X,"nanoRemainder");function D(E){if(!E)return 0;if(typeof E.getTime=="function")return E.getTime();if(typeof E=="number")return E;throw new TypeError("now should be milliseconds since UNIX epoch")}a(D,"getEpoch");function H(E,_,k){return k&&k.callAt>=E&&k.callAt<=_}a(H,"inRange");function oe(E,_){let k=new Error(`Aborting after running ${E.loopLimit} timers, assuming an infinite loop!`);if(!_.error)return k;let P=/target\.*[<|(|[].*?[>|\]|)]\s*/,w=new RegExp(String(Object.keys(E).join("|")));d&&(w=new RegExp(`\\s+at (Object\\.)?(?:${Object.keys(E).join("|")})\\s+`));let F=-1;_.error.stack.split(`
158
+ `).some(function(z,U){return z.match(P)?(F=U,true):z.match(w)?(F=U,false):F>=0});let G=`${k}
159
+ ${_.type||"Microtask"} - ${_.func.name||"anonymous"}
160
+ ${_.error.stack.split(`
161
+ `).slice(F+1).join(`
162
+ `)}`;try{Object.defineProperty(k,"stack",{value:G});}catch{}return k}a(oe,"getInfiniteLoopError");function ue(){class E extends v{static{a(this,"ClockDate");}constructor(P,w,F,G,z,U,R){arguments.length===0?super(E.clock.now):super(...arguments),Object.defineProperty(this,"constructor",{value:v,enumerable:false});}static[Symbol.hasInstance](P){return P instanceof v}}return E.isFake=true,v.now&&(E.now=a(function(){return E.clock.now},"now")),v.toSource&&(E.toSource=a(function(){return v.toSource()},"toSource")),E.toString=a(function(){return v.toString()},"toString"),new Proxy(E,{apply(){if(this instanceof E)throw new 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 v(E.clock.now).toString()}})}a(ue,"createDate");function fe(){let E={};return Object.getOwnPropertyNames(S).forEach(_=>E[_]=S[_]),E.DateTimeFormat=function(..._){let k=new S.DateTimeFormat(..._),P={};return ["formatRange","formatRangeToParts","resolvedOptions"].forEach(w=>{P[w]=k[w].bind(k);}),["format","formatToParts"].forEach(w=>{P[w]=function(F){return k[w](F||E.clock.now)};}),P},E.DateTimeFormat.prototype=Object.create(S.DateTimeFormat.prototype),E.DateTimeFormat.supportedLocalesOf=S.DateTimeFormat.supportedLocalesOf,E}a(fe,"createIntl");function ie(E,_){E.jobs||(E.jobs=[]),E.jobs.push(_);}a(ie,"enqueueJob");function J(E){if(E.jobs){for(let _=0;_<E.jobs.length;_++){let k=E.jobs[_];if(k.func.apply(null,k.args),N(E,_),E.loopLimit&&_>E.loopLimit)throw oe(E,k)}I(),E.jobs=[];}}a(J,"runJobs");function te(E,_){if(_.func===void 0)throw new Error("Callback must be provided to timer calls");if(d&&typeof _.func!="function")throw new TypeError(`[ERR_INVALID_CALLBACK]: Callback must be a function. Received ${_.func} of type ${typeof _.func}`);if(C&&(_.error=new Error),_.type=_.immediate?"Immediate":"Timeout",_.hasOwnProperty("delay")&&(typeof _.delay!="number"&&(_.delay=parseInt(_.delay,10)),O(_.delay)||(_.delay=0),_.delay=_.delay>s?1:_.delay,_.delay=Math.max(0,_.delay)),_.hasOwnProperty("interval")&&(_.type="Interval",_.interval=_.interval>s?1:_.interval),_.hasOwnProperty("animation")&&(_.type="AnimationFrame",_.animation=true),_.hasOwnProperty("idleCallback")&&(_.type="IdleCallback",_.idleCallback=true),E.timers||(E.timers={}),_.id=M++,_.createdAt=E.now,_.callAt=E.now+(parseInt(_.delay)||(E.duringTick?1:0)),E.timers[_.id]=_,d){let k={refed:true,ref:a(function(){return this.refed=true,k},"ref"),unref:a(function(){return this.refed=false,k},"unref"),hasRef:a(function(){return this.refed},"hasRef"),refresh:a(function(){return _.callAt=E.now+(parseInt(_.delay)||(E.duringTick?1:0)),E.timers[_.id]=_,k},"refresh"),[Symbol.toPrimitive]:function(){return _.id}};return k}return _.id}a(te,"addTimer");function $e(E,_){if(E.callAt<_.callAt)return -1;if(E.callAt>_.callAt)return 1;if(E.immediate&&!_.immediate)return -1;if(!E.immediate&&_.immediate)return 1;if(E.createdAt<_.createdAt)return -1;if(E.createdAt>_.createdAt)return 1;if(E.id<_.id)return -1;if(E.id>_.id)return 1}a($e,"compareTimers");function de(E,_,k){let P=E.timers,w=null,F,G;for(F in P)P.hasOwnProperty(F)&&(G=H(_,k,P[F]),G&&(!w||$e(w,P[F])===1)&&(w=P[F]));return w}a(de,"firstTimerInRange");function ve(E){let _=E.timers,k=null,P;for(P in _)_.hasOwnProperty(P)&&(!k||$e(k,_[P])===1)&&(k=_[P]);return k}a(ve,"firstTimer");function Ue(E){let _=E.timers,k=null,P;for(P in _)_.hasOwnProperty(P)&&(!k||$e(k,_[P])===-1)&&(k=_[P]);return k}a(Ue,"lastTimer");function xe(E,_){if(typeof _.interval=="number"?E.timers[_.id].callAt+=_.interval:delete E.timers[_.id],typeof _.func=="function")_.func.apply(null,_.args);else {let k=eval;(function(){k(_.func);})();}}a(xe,"callTimer");function Me(E){return E==="IdleCallback"||E==="AnimationFrame"?`cancel${E}`:`clear${E}`}a(Me,"getClearHandler");function et(E){return E==="IdleCallback"||E==="AnimationFrame"?`request${E}`:`set${E}`}a(et,"getScheduleHandler");function Re(){let E=0;return function(_){!E++&&console.warn(_);}}a(Re,"createWarnOnce");let _e=Re();function Oe(E,_,k){if(!_)return;E.timers||(E.timers={});let P=Number(_);if(Number.isNaN(P)||P<c){let w=Me(k);if(E.shouldClearNativeTimers===true){let F=E[`_${w}`];return typeof F=="function"?F(_):void 0}_e(`FakeTimers: ${w} was invoked to clear a native timer instead of one created by this library.
163
+ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`);}if(E.timers.hasOwnProperty(P)){let w=E.timers[P];if(w.type===k||w.type==="Timeout"&&k==="Interval"||w.type==="Interval"&&k==="Timeout")delete E.timers[P];else {let F=Me(k),G=et(w.type);throw new Error(`Cannot clear timer: timer created with ${G}() but cleared with ${F}()`)}}}a(Oe,"clearTimer");function $t(E,_){let k,P,w,F="_hrtime",G="_nextTick";for(P=0,w=E.methods.length;P<w;P++){if(k=E.methods[P],k==="hrtime"&&i.process)i.process.hrtime=E[F];else if(k==="nextTick"&&i.process)i.process.nextTick=E[G];else if(k==="performance"){let z=Object.getOwnPropertyDescriptor(E,`_${k}`);z&&z.get&&!z.set?Object.defineProperty(i,k,z):z.configurable&&(i[k]=E[`_${k}`]);}else if(i[k]&&i[k].hadOwnProperty)i[k]=E[`_${k}`];else try{delete i[k];}catch{}if(E.timersModuleMethods!==void 0)for(let z=0;z<E.timersModuleMethods.length;z++){let U=E.timersModuleMethods[z];t[U.methodName]=U.original;}if(E.timersPromisesModuleMethods!==void 0)for(let z=0;z<E.timersPromisesModuleMethods.length;z++){let U=E.timersPromisesModuleMethods[z];n[U.methodName]=U.original;}}_.shouldAdvanceTime===true&&i.clearInterval(E.attachedInterval),E.methods=[];for(let[z,U]of E.abortListenerMap.entries())U.removeEventListener("abort",z),E.abortListenerMap.delete(z);return E.timers?Object.keys(E.timers).map(a(function(U){return E.timers[U]},"mapper")):[]}a($t,"uninstall");function Ze(E,_,k){if(k[_].hadOwnProperty=Object.prototype.hasOwnProperty.call(E,_),k[`_${_}`]=E[_],_==="Date")E[_]=k[_];else if(_==="Intl")E[_]=k[_];else if(_==="performance"){let P=Object.getOwnPropertyDescriptor(E,_);if(P&&P.get&&!P.set){Object.defineProperty(k,`_${_}`,P);let w=Object.getOwnPropertyDescriptor(k,_);Object.defineProperty(E,_,w);}else E[_]=k[_];}else E[_]=function(){return k[_].apply(k,arguments)},Object.defineProperties(E[_],Object.getOwnPropertyDescriptors(k[_]));E[_].clock=k;}a(Ze,"hijackMethod");function Ht(E,_){E.tick(_);}a(Ht,"doIntervalTick");let Se={setTimeout:i.setTimeout,clearTimeout:i.clearTimeout,setInterval:i.setInterval,clearInterval:i.clearInterval,Date:i.Date};f.setImmediate&&(Se.setImmediate=i.setImmediate),f.clearImmediate&&(Se.clearImmediate=i.clearImmediate),f.hrtime&&(Se.hrtime=i.process.hrtime),f.nextTick&&(Se.nextTick=i.process.nextTick),f.performance&&(Se.performance=i.performance),f.requestAnimationFrame&&(Se.requestAnimationFrame=i.requestAnimationFrame),f.queueMicrotask&&(Se.queueMicrotask=i.queueMicrotask),f.cancelAnimationFrame&&(Se.cancelAnimationFrame=i.cancelAnimationFrame),f.requestIdleCallback&&(Se.requestIdleCallback=i.requestIdleCallback),f.cancelIdleCallback&&(Se.cancelIdleCallback=i.cancelIdleCallback),f.Intl&&(Se.Intl=S);let tt=i.setImmediate||i.setTimeout;function Os(E,_){E=Math.floor(D(E)),_=_||1e3;let k=0,P=[0,0],w={now:E,Date:ue(),loopLimit:_};w.Date.clock=w;function F(){return 16-(w.now-E)%16}a(F,"getTimeToNextFrame");function G(R){let A=w.now-P[0]-E,j=Math.floor(A/1e3),L=(A-j*1e3)*1e6+k-P[1];if(Array.isArray(R)){if(R[1]>1e9)throw new TypeError("Number of nanoseconds can't exceed a billion");let Z=R[0],ae=L-R[1],nt=j-Z;return ae<0&&(ae+=1e9,nt-=1),[nt,ae]}return [j,L]}a(G,"hrtime");function z(){let R=G();return R[0]*1e3+R[1]/1e6}a(z,"fakePerformanceNow"),f.hrtimeBigint&&(G.bigint=function(){let R=G();return BigInt(R[0])*BigInt(1e9)+BigInt(R[1])}),f.Intl&&(w.Intl=fe(),w.Intl.clock=w),w.requestIdleCallback=a(function(A,j){let L=0;w.countTimers()>0&&(L=50);let Z=te(w,{func:A,args:Array.prototype.slice.call(arguments,2),delay:typeof j>"u"?L:Math.min(j,L),idleCallback:true});return Number(Z)},"requestIdleCallback"),w.cancelIdleCallback=a(function(A){return Oe(w,A,"IdleCallback")},"cancelIdleCallback"),w.setTimeout=a(function(A,j){return te(w,{func:A,args:Array.prototype.slice.call(arguments,2),delay:j})},"setTimeout"),typeof i.Promise<"u"&&p&&(w.setTimeout[p.custom]=a(function(A,j){return new i.Promise(a(function(Z){te(w,{func:Z,args:[j],delay:A});},"setTimeoutExecutor"))},"promisifiedSetTimeout")),w.clearTimeout=a(function(A){return Oe(w,A,"Timeout")},"clearTimeout"),w.nextTick=a(function(A){return ie(w,{func:A,args:Array.prototype.slice.call(arguments,1),error:C?new Error:null})},"nextTick"),w.queueMicrotask=a(function(A){return w.nextTick(A)},"queueMicrotask"),w.setInterval=a(function(A,j){return j=parseInt(j,10),te(w,{func:A,args:Array.prototype.slice.call(arguments,2),delay:j,interval:j})},"setInterval"),w.clearInterval=a(function(A){return Oe(w,A,"Interval")},"clearInterval"),f.setImmediate&&(w.setImmediate=a(function(A){return te(w,{func:A,args:Array.prototype.slice.call(arguments,1),immediate:true})},"setImmediate"),typeof i.Promise<"u"&&p&&(w.setImmediate[p.custom]=a(function(A){return new i.Promise(a(function(L){te(w,{func:L,args:[A],immediate:true});},"setImmediateExecutor"))},"promisifiedSetImmediate")),w.clearImmediate=a(function(A){return Oe(w,A,"Immediate")},"clearImmediate")),w.countTimers=a(function(){return Object.keys(w.timers||{}).length+(w.jobs||[]).length},"countTimers"),w.requestAnimationFrame=a(function(A){let j=te(w,{func:A,delay:F(),get args(){return [z()]},animation:true});return Number(j)},"requestAnimationFrame"),w.cancelAnimationFrame=a(function(A){return Oe(w,A,"AnimationFrame")},"cancelAnimationFrame"),w.runMicrotasks=a(function(){J(w);},"runMicrotasks");function U(R,A,j,L){let Z=typeof R=="number"?R:q(R),ae=Math.floor(Z),nt=X(Z),We=k+nt,pe=w.now+ae;if(Z<0)throw new TypeError("Negative ticks are not supported");We>=1e6&&(pe+=1,We-=1e6),k=We;let Ve=w.now,yt=w.now,Ke,lt,Ne,Is,Wr,Vr;w.duringTick=true,Ne=w.now,J(w),Ne!==w.now&&(Ve+=w.now-Ne,pe+=w.now-Ne);function Cs(){for(Ke=de(w,Ve,pe);Ke&&Ve<=pe;){if(w.timers[Ke.id]){Ve=Ke.callAt,w.now=Ke.callAt,Ne=w.now;try{J(w),xe(w,Ke);}catch(Jt){lt=lt||Jt;}if(A){tt(Is);return}Wr();}Vr();}if(Ne=w.now,J(w),Ne!==w.now&&(Ve+=w.now-Ne,pe+=w.now-Ne),w.duringTick=false,Ke=de(w,Ve,pe),Ke)try{w.tick(pe-w.now);}catch(Jt){lt=lt||Jt;}else w.now=pe,k=We;if(lt)throw lt;if(A)j(w.now);else return w.now}return a(Cs,"doTickInner"),Is=A&&function(){try{Wr(),Vr(),Cs();}catch(Jt){L(Jt);}},Wr=a(function(){Ne!==w.now&&(Ve+=w.now-Ne,pe+=w.now-Ne,yt+=w.now-Ne);},"compensationCheck"),Vr=a(function(){Ke=de(w,yt,pe),yt=Ve;},"postTimerCall"),Cs()}return a(U,"doTick"),w.tick=a(function(A){return U(A,false)},"tick"),typeof i.Promise<"u"&&(w.tickAsync=a(function(A){return new i.Promise(function(j,L){tt(function(){try{U(A,true,j,L);}catch(Z){L(Z);}});})},"tickAsync")),w.next=a(function(){J(w);let A=ve(w);if(!A)return w.now;w.duringTick=true;try{return w.now=A.callAt,xe(w,A),J(w),w.now}finally{w.duringTick=false;}},"next"),typeof i.Promise<"u"&&(w.nextAsync=a(function(){return new i.Promise(function(A,j){tt(function(){try{let L=ve(w);if(!L){A(w.now);return}let Z;w.duringTick=true,w.now=L.callAt;try{xe(w,L);}catch(ae){Z=ae;}w.duringTick=false,tt(function(){Z?j(Z):A(w.now);});}catch(L){j(L);}});})},"nextAsync")),w.runAll=a(function(){let A,j;for(J(w),j=0;j<w.loopLimit;j++){if(!w.timers||(A=Object.keys(w.timers).length,A===0))return I(),w.now;w.next(),N(w,j);}let L=ve(w);throw oe(w,L)},"runAll"),w.runToFrame=a(function(){return w.tick(F())},"runToFrame"),typeof i.Promise<"u"&&(w.runAllAsync=a(function(){return new i.Promise(function(A,j){let L=0;function Z(){tt(function(){try{J(w);let ae;if(L<w.loopLimit){if(!w.timers){I(),A(w.now);return}if(ae=Object.keys(w.timers).length,ae===0){I(),A(w.now);return}w.next(),L++,Z(),N(w,L);return}let nt=ve(w);j(oe(w,nt));}catch(ae){j(ae);}});}a(Z,"doRun"),Z();})},"runAllAsync")),w.runToLast=a(function(){let A=Ue(w);return A?w.tick(A.callAt-w.now):(J(w),w.now)},"runToLast"),typeof i.Promise<"u"&&(w.runToLastAsync=a(function(){return new i.Promise(function(A,j){tt(function(){try{let L=Ue(w);L||(J(w),A(w.now)),A(w.tickAsync(L.callAt-w.now));}catch(L){j(L);}});})},"runToLastAsync")),w.reset=a(function(){k=0,w.timers={},w.jobs=[],w.now=E;},"reset"),w.setSystemTime=a(function(A){let j=D(A),L=j-w.now,Z,ae;P[0]=P[0]+L,P[1]=P[1]+k,w.now=j,k=0;for(Z in w.timers)w.timers.hasOwnProperty(Z)&&(ae=w.timers[Z],ae.createdAt+=L,ae.callAt+=L);},"setSystemTime"),w.jump=a(function(A){let j=typeof A=="number"?A:q(A),L=Math.floor(j);for(let Z of Object.values(w.timers))w.now+L>Z.callAt&&(Z.callAt=w.now+L);w.tick(L);},"jump"),f.performance&&(w.performance=Object.create(null),w.performance.now=z),f.hrtime&&(w.hrtime=G),w}a(Os,"createClock");function Af(E){if(arguments.length>1||E instanceof Date||Array.isArray(E)||typeof E=="number")throw new TypeError(`FakeTimers.install called with ${String(E)} install requires an object parameter`);if(i.Date.isFake===true)throw new TypeError("Can't install fake timers twice on the same global object.");if(E=typeof E<"u"?E:{},E.shouldAdvanceTime=E.shouldAdvanceTime||false,E.advanceTimeDelta=E.advanceTimeDelta||20,E.shouldClearNativeTimers=E.shouldClearNativeTimers||false,E.target)throw new TypeError("config.target is no longer supported. Use `withGlobal(target)` instead.");function _(F){if(!E.ignoreMissingTimers)throw new ReferenceError(`non-existent timers and/or objects cannot be faked: '${F}'`)}a(_,"handleMissingTimer");let k,P,w=Os(E.now,E.loopLimit);if(w.shouldClearNativeTimers=E.shouldClearNativeTimers,w.uninstall=function(){return $t(w,E)},w.abortListenerMap=new Map,w.methods=E.toFake||[],w.methods.length===0&&(w.methods=Object.keys(Se)),E.shouldAdvanceTime===true){let F=Ht.bind(null,w,E.advanceTimeDelta),G=i.setInterval(F,E.advanceTimeDelta);w.attachedInterval=G;}if(w.methods.includes("performance")){let F=(()=>{if(y)return i.performance.constructor.prototype;if(m)return i.Performance.prototype})();if(F)Object.getOwnPropertyNames(F).forEach(function(G){G!=="now"&&(w.performance[G]=G.indexOf("getEntries")===0?l:u);}),w.performance.mark=G=>new $(G,"mark",0,0),w.performance.measure=G=>new $(G,"measure",0,100),w.performance.timeOrigin=D(E.now);else if((E.toFake||[]).includes("performance"))return _("performance")}for(i===e&&t&&(w.timersModuleMethods=[]),i===e&&n&&(w.timersPromisesModuleMethods=[]),k=0,P=w.methods.length;k<P;k++){let F=w.methods[k];if(!f[F]){_(F);continue}if(F==="hrtime"?i.process&&typeof i.process.hrtime=="function"&&Ze(i.process,F,w):F==="nextTick"?i.process&&typeof i.process.nextTick=="function"&&Ze(i.process,F,w):Ze(i,F,w),w.timersModuleMethods!==void 0&&t[F]){let G=t[F];w.timersModuleMethods.push({methodName:F,original:G}),t[F]=i[F];}w.timersPromisesModuleMethods!==void 0&&(F==="setTimeout"?(w.timersPromisesModuleMethods.push({methodName:"setTimeout",original:n.setTimeout}),n.setTimeout=(G,z,U={})=>new Promise((R,A)=>{let j=a(()=>{U.signal.removeEventListener("abort",j),w.abortListenerMap.delete(j),w.clearTimeout(L),A(U.signal.reason);},"abort"),L=w.setTimeout(()=>{U.signal&&(U.signal.removeEventListener("abort",j),w.abortListenerMap.delete(j)),R(z);},G);U.signal&&(U.signal.aborted?j():(U.signal.addEventListener("abort",j),w.abortListenerMap.set(j,U.signal)));})):F==="setImmediate"?(w.timersPromisesModuleMethods.push({methodName:"setImmediate",original:n.setImmediate}),n.setImmediate=(G,z={})=>new Promise((U,R)=>{let A=a(()=>{z.signal.removeEventListener("abort",A),w.abortListenerMap.delete(A),w.clearImmediate(j),R(z.signal.reason);},"abort"),j=w.setImmediate(()=>{z.signal&&(z.signal.removeEventListener("abort",A),w.abortListenerMap.delete(A)),U(G);});z.signal&&(z.signal.aborted?A():(z.signal.addEventListener("abort",A),w.abortListenerMap.set(A,z.signal)));})):F==="setInterval"&&(w.timersPromisesModuleMethods.push({methodName:"setInterval",original:n.setInterval}),n.setInterval=(G,z,U={})=>({[Symbol.asyncIterator]:()=>{let R=a(()=>{let pe,Ve,yt=new Promise((Ke,lt)=>{pe=Ke,Ve=lt;});return yt.resolve=pe,yt.reject=Ve,yt},"createResolvable"),A=false,j=false,L,Z=0,ae=[],nt=w.setInterval(()=>{ae.length>0?ae.shift().resolve():Z++;},G),We=a(()=>{U.signal.removeEventListener("abort",We),w.abortListenerMap.delete(We),w.clearInterval(nt),A=true;for(let pe of ae)pe.resolve();},"abort");return U.signal&&(U.signal.aborted?A=true:(U.signal.addEventListener("abort",We),w.abortListenerMap.set(We,U.signal))),{next:a(async()=>{if(U.signal?.aborted&&!j)throw j=true,U.signal.reason;if(A)return {done:true,value:void 0};if(Z>0)return Z--,{done:false,value:z};let pe=R();if(ae.push(pe),await pe,L&&ae.length===0&&L.resolve(),U.signal?.aborted&&!j)throw j=true,U.signal.reason;return A?{done:true,value:void 0}:{done:false,value:z}},"next"),return:a(async()=>A?{done:true,value:void 0}:(ae.length>0&&(L=R(),await L),w.clearInterval(nt),A=true,U.signal&&(U.signal.removeEventListener("abort",We),w.abortListenerMap.delete(We)),{done:true,value:void 0}),"return")}}})));}return w}return a(Af,"install"),{timers:Se,createClock:Os,install:Af,withGlobal:r}}a(r,"withGlobal");let o=r(e);return Ut.timers=o.timers,Ut.createClock=o.createClock,Ut.install=o.install,Ut.withGlobal=r,Ut}a(_b,"requireFakeTimersSrc");var Ob=_b(),Ms=class{static{a(this,"FakeTimers");}_global;_clock;_fakingTime;_fakingDate;_fakeTimers;_userConfig;_now=Be.now;constructor({global:t,config:n}){this._userConfig=n,this._fakingDate=null,this._fakingTime=false,this._fakeTimers=Ob.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(t=1){if(this._checkFakeTimers())for(let n=t;n>0&&(this._clock.next(),this._clock.tick(0),this._clock.countTimers()!==0);n--);}async advanceTimersToNextTimerAsync(t=1){if(this._checkFakeTimers())for(let n=t;n>0&&(await this._clock.nextAsync(),this._clock.tick(0),this._clock.countTimers()!==0);n--);}advanceTimersByTime(t){this._checkFakeTimers()&&this._clock.tick(t);}async advanceTimersByTimeAsync(t){this._checkFakeTimers()&&await this._clock.tickAsync(t);}advanceTimersToNextFrame(){this._checkFakeTimers()&&this._clock.runToFrame();}runAllTicks(){this._checkFakeTimers()&&this._clock.runMicrotasks();}useRealTimers(){this._fakingDate&&(os(),this._fakingDate=null),this._fakingTime&&(this._clock.uninstall(),this._fakingTime=false);}useFakeTimers(){let t=this._fakingDate||Date.now();this._fakingDate&&(os(),this._fakingDate=null),this._fakingTime&&this._clock.uninstall();let n=Object.keys(this._fakeTimers.timers).filter(r=>r!=="nextTick"&&r!=="queueMicrotask");if(this._userConfig?.toFake?.includes("nextTick")&&Ui())throw new Error("process.nextTick cannot be mocked inside child_process");this._clock=this._fakeTimers.install({now:t,...this._userConfig,toFake:this._userConfig?.toFake||n,ignoreMissingTimers:true}),this._fakingTime=true;}reset(){if(this._checkFakeTimers()){let{now:t}=this._clock;this._clock.reset(),this._clock.setSystemTime(t);}}setSystemTime(t){let n=typeof t>"u"||t instanceof Date?t:new Date(t);this._fakingTime?this._clock.setSystemTime(n):(this._fakingDate=n??new Date(this.getRealSystemTime()),Ku(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}configure(t){this._userConfig=t;}isFakeTimers(){return this._fakingTime}_checkFakeTimers(){if(!this._fakingTime)throw new 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 bf(e,t){return t.stack!==void 0&&(e.stack=t.stack.replace(t.message,e.message)),e}a(bf,"copyStackTrace");function Ib(e,t={}){let{setTimeout:n,setInterval:r,clearTimeout:o,clearInterval:i}=at(),{interval:s=50,timeout:c=1e3}=typeof t=="number"?{timeout:t}:t,u=new Error("STACK_TRACE_ERROR");return new Promise((l,f)=>{let h,d="idle",p,m,y=a(M=>{p&&o(p),m&&i(m),l(M);},"onResolve"),v=a(()=>{m&&i(m);let M=h;M||(M=bf(new Error("Timed out in waitFor!"),u)),f(M);},"handleTimeout"),S=a(()=>{if(In.isFakeTimers()&&In.advanceTimersByTime(s),d!=="pending")try{let M=e();if(M!==null&&typeof M=="object"&&typeof M.then=="function"){let $=M;d="pending",$.then(O=>{d="resolved",y(O);},O=>{d="rejected",h=O;});}else return y(M),true}catch(M){h=M;}},"checkCallback");S()!==true&&(p=n(v,c),m=r(S,s));})}a(Ib,"waitFor");function Cb(e,t={}){let{setTimeout:n,setInterval:r,clearTimeout:o,clearInterval:i}=at(),{interval:s=50,timeout:c=1e3}=typeof t=="number"?{timeout:t}:t,u=new Error("STACK_TRACE_ERROR");return new Promise((l,f)=>{let h="idle",d,p,m=a(S=>{p&&i(p),S||(S=bf(new Error("Timed out in waitUntil!"),u)),f(S);},"onReject"),y=a(S=>{if(S)return d&&o(d),p&&i(p),l(S),true},"onResolve"),v=a(()=>{if(In.isFakeTimers()&&In.advanceTimersByTime(s),h!=="pending")try{let S=e();if(S!==null&&typeof S=="object"&&typeof S.then=="function"){let M=S;h="pending",M.then($=>{h="resolved",y($);},$=>{h="rejected",m($);});}else return y(S)}catch(S){m(S);}},"checkCallback");v()!==true&&(d=n(m,c),p=r(v,s));})}a(Cb,"waitUntil");function kb(){let e=null,t=a(()=>vn(),"state"),n,r=a(()=>n||=new Ms({global:globalThis,config:t().config.fakeTimers}),"timers"),o=new Map,i=new Map,s=["PROD","DEV","SSR"],c={useFakeTimers(u){if(Ui()&&(u?.toFake?.includes("nextTick")||t().config?.fakeTimers?.toFake?.includes("nextTick")))throw new Error('vi.useFakeTimers({ toFake: ["nextTick"] }) is not supported in node:child_process. Use --pool=threads if mocking nextTick is required.');return u?r().configure({...t().config.fakeTimers,...u}):r().configure(t().config.fakeTimers),r().useFakeTimers(),c},isFakeTimers(){return r().isFakeTimers()},useRealTimers(){return r().useRealTimers(),c},runOnlyPendingTimers(){return r().runOnlyPendingTimers(),c},async runOnlyPendingTimersAsync(){return await r().runOnlyPendingTimersAsync(),c},runAllTimers(){return r().runAllTimers(),c},async runAllTimersAsync(){return await r().runAllTimersAsync(),c},runAllTicks(){return r().runAllTicks(),c},advanceTimersByTime(u){return r().advanceTimersByTime(u),c},async advanceTimersByTimeAsync(u){return await r().advanceTimersByTimeAsync(u),c},advanceTimersToNextTimer(){return r().advanceTimersToNextTimer(),c},async advanceTimersToNextTimerAsync(){return await r().advanceTimersToNextTimerAsync(),c},advanceTimersToNextFrame(){return r().advanceTimersToNextFrame(),c},getTimerCount(){return r().getTimerCount()},setSystemTime(u){return r().setSystemTime(u),c},getMockedSystemTime(){return r().getMockedSystemTime()},getRealSystemTime(){return r().getRealSystemTime()},clearAllTimers(){return r().clearAllTimers(),c},spyOn:sc,fn:ic,waitFor:Ib,waitUntil:Cb,hoisted(u){return me(u,'"vi.hoisted" factory',["function"]),u()},mock(u,l){if(typeof u!="string")throw new TypeError(`vi.mock() expects a string path, but received a ${typeof u}`);let f=Wt("mock");ze().queueMock(u,f,typeof l=="function"?()=>l(()=>ze().importActual(u,f,ze().getMockContext().callstack)):l);},unmock(u){if(typeof u!="string")throw new TypeError(`vi.unmock() expects a string path, but received a ${typeof u}`);ze().queueUnmock(u,Wt("unmock"));},doMock(u,l){if(typeof u!="string")throw new TypeError(`vi.doMock() expects a string path, but received a ${typeof u}`);let f=Wt("doMock");ze().queueMock(u,f,typeof l=="function"?()=>l(()=>ze().importActual(u,f,ze().getMockContext().callstack)):l);},doUnmock(u){if(typeof u!="string")throw new TypeError(`vi.doUnmock() expects a string path, but received a ${typeof u}`);let l=Wt("doUnmock");ze().queueUnmock(u,l);},async importActual(u){let l=Wt("importActual");return ze().importActual(u,l,ze().getMockContext().callstack)},async importMock(u){let l=Wt("importMock");return ze().importMock(u,l)},mockObject(u,l){return ze().mockObject({value:u},void 0,l?.spy?"autospy":"automock").value},mocked(u,l={}){return u},isMockFunction(u){return ot(u)},clearAllMocks(){return lc(),c},resetAllMocks(){return uc(),c},restoreAllMocks(){return cc(),c},stubGlobal(u,l){return o.has(u)||o.set(u,Object.getOwnPropertyDescriptor(globalThis,u)),Object.defineProperty(globalThis,u,{value:l,writable:true,configurable:true,enumerable:true}),c},stubEnv(u,l){let f=t().metaEnv;return i.has(u)||i.set(u,f[u]),s.includes(u)?f[u]=l?"1":"":l===void 0?delete f[u]:f[u]=String(l),c},unstubAllGlobals(){return o.forEach((u,l)=>{u?Object.defineProperty(globalThis,l,u):Reflect.deleteProperty(globalThis,l);}),o.clear(),c},unstubAllEnvs(){let u=t().metaEnv;return i.forEach((l,f)=>{l===void 0?delete u[f]:u[f]=l;}),i.clear(),c},resetModules(){return yu(t().evaluatedModules),c},async dynamicImportSettled(){return Wi()},setConfig(u){e||(e={...t().config}),Object.assign(t().config,u);},resetConfig(){e&&Object.assign(t().config,e);}};return c}a(kb,"createVitest");var wf=kb(),In=wf;function ze(){return typeof __vitest_mocker__<"u"?__vitest_mocker__:new Proxy({},{get(e,t){throw new Error(`Vitest mocker was not initialized in this environment. vi.${String(t)}() is forbidden.`)}})}a(ze,"_mocker");function Wt(e){let t=_a({stackTraceLimit:5}).split(`
164
+ `);return Er(t[t.findLastIndex(n=>n.includes(` at Object.${e}`)||n.includes(`${e}@`)||n.includes(` at ${e} (`))+1])?.file||""}a(Wt,"getImporter");var vf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$b=new Uint8Array(64),Nb=new Uint8Array(128);for(let e=0;e<vf.length;e++){let t=vf.charCodeAt(e);$b[e]=t,Nb[t]=e;}var Ab=new Set,Pb=new Set,Ef=a(e=>((...t)=>{for(let n of e){let r=n(...t);if(r)return r}return null}),"createExecHandlers");Ef(Ab);Ef(Pb);var Sf="vite-module-runner:import-meta-resolve/v1/";`
165
+
166
+ export async function resolve(specifier, context, nextResolve) {
167
+ if (specifier.startsWith(${JSON.stringify(Sf)})) {
168
+ const data = specifier.slice(${JSON.stringify(Sf)}.length)
169
+ const [parsedSpecifier, parsedImporter] = JSON.parse(data)
170
+ specifier = parsedSpecifier
171
+ context.parentURL = parsedImporter
172
+ }
173
+
174
+ return nextResolve(specifier, context)
175
+ }
176
+
177
+ `;new Proxy({},{get(e,t){throw Error(`[module runner] Dynamic access of "import.meta.env" is not supported. Please, use "import.meta.env.${String(t)}" instead.`)}});var Kt=qf(Nf());zod.z.strictObject({path:zod.z.string().describe("Can contain glob patterns, relative paths, absolute paths, package paths, or package sub-paths"),filter:zod.z.custom(e=>typeof e=="function").optional().describe("A function that takes a path and returns a boolean")});function kt({rendererId:e,alias:t,path:n}){return (()=>{switch(e){case "react":case "angular":return {rendererId:e,codeSrcPath:n,exportName:t||"default"};case "vue":case "hbs":case "html":return {rendererId:e,codeSrcPath:n};case "twig":return {rendererId:e,namespacePath:t};case "web-components":return {rendererId:e,elementName:t};case "ios":return {rendererId:e,moduleName:n,symbolName:t};case "android":return {rendererId:e,packageName:n,componentName:t};default:{throw new Error(`Invalid renderer ID: ${e}`)}}})()}a(kt,"normalizeTemplateInfo");function Gt(e){switch(e.rendererId){case "react":case "angular":return {path:e.codeSrcPath,alias:e.exportName};case "hbs":case "html":case "vue":return {path:e.codeSrcPath};case "twig":return {alias:e.namespacePath};case "web-components":return {alias:e.elementName};case "ios":return {path:e.moduleName,alias:e.symbolName};case "android":return {path:e.packageName,alias:e.componentName};default:{throw new Error(`Invalid template info: ${JSON.stringify(e)}`)}}}a(Gt,"convertTemplateInfoToOldWay");Cr("normalizeTemplateInfo",()=>{je("should handle React template with default export",()=>{let e=kt({rendererId:"react",path:"@components/Button"});(0, Kt.expectTypeOf)(e.codeSrcPath).toEqualTypeOf(),(0, Kt.expectTypeOf)(e.rendererId).toMatchTypeOf(),(0, Kt.expectTypeOf)(e.rendererId).toEqualTypeOf(),(0, Kt.expectTypeOf)(e.exportName).toEqualTypeOf(),ke(e).toEqual({rendererId:"react",codeSrcPath:"@components/Button",exportName:"default"});}),je("should handle React template with named export",()=>{let e=kt({rendererId:"react",path:"@components/Button",alias:"CustomButton"});ke(e).toEqual({rendererId:"react",codeSrcPath:"@components/Button",exportName:"CustomButton"});}),je("should handle Vue template",()=>{let e=kt({rendererId:"vue",path:"@components/Button.vue"});ke(e).toEqual({rendererId:"vue",codeSrcPath:"@components/Button.vue"});}),je("should handle web components",()=>{let e=kt({rendererId:"web-components",alias:"custom-button"});ke(e).toEqual({rendererId:"web-components",elementName:"custom-button"});}),je("should handle Twig template",()=>{let e=kt({rendererId:"twig",alias:"@namespace/button"});ke(e).toEqual({rendererId:"twig",namespacePath:"@namespace/button"});}),je("should throw error for invalid renderer ID",()=>{ke(()=>kt({rendererId:"invalid",path:"some/path"})).toThrow("Invalid renderer ID: invalid");});});Cr("convertTemplateInfoToOldWay",()=>{je("should convert React template info",()=>{let e=Gt({rendererId:"react",codeSrcPath:"@components/Button",exportName:"CustomButton"});ke(e).toEqual({path:"@components/Button",alias:"CustomButton"});}),je("should convert Vue template info",()=>{let e=Gt({rendererId:"vue",codeSrcPath:"@components/Button.vue"});ke(e).toEqual({path:"@components/Button.vue"});}),je("should convert web components template info",()=>{let e=Gt({rendererId:"web-components",elementName:"custom-button"});ke(e).toEqual({alias:"custom-button"});}),je("should convert Twig template info",()=>{let e=Gt({rendererId:"twig",namespacePath:"@namespace/button"});ke(e).toEqual({alias:"@namespace/button"});}),je("should throw error for invalid template info",()=>{ke(()=>Gt({rendererId:"invalid"})).toThrow("Invalid template info:");});});
160
178
  /*! Bundled license information:
161
179
 
162
180
  @vitest/pretty-format/dist/index.js:
@@ -169,15 +187,6 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`);}if(
169
187
  * This source code is licensed under the MIT license found in the
170
188
  * LICENSE file in the root directory of this source tree.
171
189
  *)
172
- (**
173
- * @license React
174
- * react-is.development.js
175
- *
176
- * Copyright (c) Meta Platforms, Inc. and affiliates.
177
- *
178
- * This source code is licensed under the MIT license found in the
179
- * LICENSE file in the root directory of this source tree.
180
- *)
181
190
  (**
182
191
  * @license React
183
192
  * react-is.production.min.js
@@ -187,257 +196,6 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`);}if(
187
196
  * This source code is licensed under the MIT license found in the
188
197
  * LICENSE file in the root directory of this source tree.
189
198
  *)
190
- (**
191
- * @license React
192
- * react-is.development.js
193
- *
194
- * Copyright (c) Facebook, Inc. and its affiliates.
195
- *
196
- * This source code is licensed under the MIT license found in the
197
- * LICENSE file in the root directory of this source tree.
198
- *)
199
-
200
- chai/chai.js:
201
- (*!
202
- * Chai - flag utility
203
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
204
- * MIT Licensed
205
- *)
206
- (*!
207
- * Chai - test utility
208
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
209
- * MIT Licensed
210
- *)
211
- (*!
212
- * Chai - expectTypes utility
213
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
214
- * MIT Licensed
215
- *)
216
- (*!
217
- * Chai - getActual utility
218
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
219
- * MIT Licensed
220
- *)
221
- (*!
222
- * Chai - message composition utility
223
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
224
- * MIT Licensed
225
- *)
226
- (*!
227
- * Chai - transferFlags utility
228
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
229
- * MIT Licensed
230
- *)
231
- (*!
232
- * chai
233
- * http://chaijs.com
234
- * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
235
- * MIT Licensed
236
- *)
237
- (*!
238
- * Chai - isProxyEnabled helper
239
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
240
- * MIT Licensed
241
- *)
242
- (*!
243
- * Chai - addProperty utility
244
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
245
- * MIT Licensed
246
- *)
247
- (*!
248
- * Chai - addLengthGuard utility
249
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
250
- * MIT Licensed
251
- *)
252
- (*!
253
- * Chai - getProperties utility
254
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
255
- * MIT Licensed
256
- *)
257
- (*!
258
- * Chai - proxify utility
259
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
260
- * MIT Licensed
261
- *)
262
- (*!
263
- * Chai - addMethod utility
264
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
265
- * MIT Licensed
266
- *)
267
- (*!
268
- * Chai - overwriteProperty utility
269
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
270
- * MIT Licensed
271
- *)
272
- (*!
273
- * Chai - overwriteMethod utility
274
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
275
- * MIT Licensed
276
- *)
277
- (*!
278
- * Chai - addChainingMethod utility
279
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
280
- * MIT Licensed
281
- *)
282
- (*!
283
- * Chai - overwriteChainableMethod utility
284
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
285
- * MIT Licensed
286
- *)
287
- (*!
288
- * Chai - compareByInspect utility
289
- * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
290
- * MIT Licensed
291
- *)
292
- (*!
293
- * Chai - getOwnEnumerablePropertySymbols utility
294
- * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
295
- * MIT Licensed
296
- *)
297
- (*!
298
- * Chai - getOwnEnumerableProperties utility
299
- * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
300
- * MIT Licensed
301
- *)
302
- (*!
303
- * Chai - isNaN utility
304
- * Copyright(c) 2012-2015 Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
305
- * MIT Licensed
306
- *)
307
- (*!
308
- * chai
309
- * Copyright(c) 2011 Jake Luer <jake@alogicalparadox.com>
310
- * MIT Licensed
311
- *)
312
- (*!
313
- * chai
314
- * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
315
- * MIT Licensed
316
- *)
317
- (*! Bundled license information:
318
-
319
- deep-eql/index.js:
320
- (*!
321
- * deep-eql
322
- * Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>
323
- * MIT Licensed
324
- *)
325
- (*!
326
- * Check to see if the MemoizeMap has recorded a result of the two operands
327
- *
328
- * @param {Mixed} leftHandOperand
329
- * @param {Mixed} rightHandOperand
330
- * @param {MemoizeMap} memoizeMap
331
- * @returns {Boolean|null} result
332
- *)
333
- (*!
334
- * Set the result of the equality into the MemoizeMap
335
- *
336
- * @param {Mixed} leftHandOperand
337
- * @param {Mixed} rightHandOperand
338
- * @param {MemoizeMap} memoizeMap
339
- * @param {Boolean} result
340
- *)
341
- (*!
342
- * Primary Export
343
- *)
344
- (*!
345
- * The main logic of the `deepEqual` function.
346
- *
347
- * @param {Mixed} leftHandOperand
348
- * @param {Mixed} rightHandOperand
349
- * @param {Object} [options] (optional) Additional options
350
- * @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality.
351
- * @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of
352
- complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular
353
- references to blow the stack.
354
- * @return {Boolean} equal match
355
- *)
356
- (*!
357
- * Compare two Regular Expressions for equality.
358
- *
359
- * @param {RegExp} leftHandOperand
360
- * @param {RegExp} rightHandOperand
361
- * @return {Boolean} result
362
- *)
363
- (*!
364
- * Compare two Sets/Maps for equality. Faster than other equality functions.
365
- *
366
- * @param {Set} leftHandOperand
367
- * @param {Set} rightHandOperand
368
- * @param {Object} [options] (Optional)
369
- * @return {Boolean} result
370
- *)
371
- (*!
372
- * Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers.
373
- *
374
- * @param {Iterable} leftHandOperand
375
- * @param {Iterable} rightHandOperand
376
- * @param {Object} [options] (Optional)
377
- * @return {Boolean} result
378
- *)
379
- (*!
380
- * Simple equality for generator objects such as those returned by generator functions.
381
- *
382
- * @param {Iterable} leftHandOperand
383
- * @param {Iterable} rightHandOperand
384
- * @param {Object} [options] (Optional)
385
- * @return {Boolean} result
386
- *)
387
- (*!
388
- * Determine if the given object has an @@iterator function.
389
- *
390
- * @param {Object} target
391
- * @return {Boolean} `true` if the object has an @@iterator function.
392
- *)
393
- (*!
394
- * Gets all iterator entries from the given Object. If the Object has no @@iterator function, returns an empty array.
395
- * This will consume the iterator - which could have side effects depending on the @@iterator implementation.
396
- *
397
- * @param {Object} target
398
- * @returns {Array} an array of entries from the @@iterator function
399
- *)
400
- (*!
401
- * Gets all entries from a Generator. This will consume the generator - which could have side effects.
402
- *
403
- * @param {Generator} target
404
- * @returns {Array} an array of entries from the Generator.
405
- *)
406
- (*!
407
- * Gets all own and inherited enumerable keys from a target.
408
- *
409
- * @param {Object} target
410
- * @returns {Array} an array of own and inherited enumerable keys from the target.
411
- *)
412
- (*!
413
- * Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of
414
- * each key. If any value of the given key is not equal, the function will return false (early).
415
- *
416
- * @param {Mixed} leftHandOperand
417
- * @param {Mixed} rightHandOperand
418
- * @param {Array} keys An array of keys to compare the values of leftHandOperand and rightHandOperand against
419
- * @param {Object} [options] (Optional)
420
- * @return {Boolean} result
421
- *)
422
- (*!
423
- * Recursively check the equality of two Objects. Once basic sameness has been established it will defer to `deepEqual`
424
- * for each enumerable key in the object.
425
- *
426
- * @param {Mixed} leftHandOperand
427
- * @param {Mixed} rightHandOperand
428
- * @param {Object} [options] (Optional)
429
- * @return {Boolean} result
430
- *)
431
- (*!
432
- * Returns true if the argument is a primitive.
433
- *
434
- * This intentionally returns true for all objects that can be compared by reference,
435
- * including functions and symbols.
436
- *
437
- * @param {Mixed} value
438
- * @return {Boolean} result
439
- *)
440
- *)
441
199
 
442
200
  @vitest/snapshot/dist/index.js:
443
201
  (*