@isdk/util 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/chunk-3TCMKKX2.mjs +1 -0
- package/dist/chunk-46TT3NZV.mjs +1 -0
- package/dist/chunk-7APJBRA7.mjs +1 -0
- package/dist/chunk-7AQU3PBW.mjs +1 -0
- package/dist/chunk-D3BCI5SM.mjs +1 -0
- package/dist/chunk-FXF2KJLF.mjs +1 -0
- package/dist/chunk-GGOKSJK4.mjs +1 -0
- package/dist/chunk-JTTOXXPG.mjs +1 -0
- package/dist/chunk-LOMQZH4U.mjs +292 -0
- package/dist/chunk-OTEAFARC.mjs +1 -0
- package/dist/chunk-UJZVJIGI.mjs +1 -0
- package/dist/config-file.d.mts +75 -0
- package/dist/config-file.d.ts +75 -0
- package/dist/config-file.js +1 -0
- package/dist/config-file.mjs +1 -0
- package/dist/config-file.test.d.mts +2 -0
- package/dist/config-file.test.d.ts +2 -0
- package/dist/config-file.test.js +292 -0
- package/dist/config-file.test.mjs +1 -0
- package/dist/front-matter.d.mts +6 -0
- package/dist/front-matter.d.ts +6 -0
- package/dist/front-matter.js +1 -0
- package/dist/front-matter.mjs +1 -0
- package/dist/front-matter.test.d.mts +2 -0
- package/dist/front-matter.test.d.ts +2 -0
- package/dist/front-matter.test.js +1 -0
- package/dist/front-matter.test.mjs +1 -0
- package/dist/get-multi-level-extname.d.mts +9 -0
- package/dist/get-multi-level-extname.d.ts +9 -0
- package/dist/get-multi-level-extname.js +1 -0
- package/dist/get-multi-level-extname.mjs +1 -0
- package/dist/glob.d.mts +28 -0
- package/dist/glob.d.ts +28 -0
- package/dist/glob.js +1 -0
- package/dist/glob.mjs +1 -0
- package/dist/glob.test.d.mts +2 -0
- package/dist/glob.test.d.ts +2 -0
- package/dist/glob.test.js +292 -0
- package/dist/glob.test.mjs +1 -0
- package/dist/include-files.d.mts +31 -0
- package/dist/include-files.d.ts +31 -0
- package/dist/include-files.js +1 -0
- package/dist/include-files.mjs +1 -0
- package/dist/include-files.test.d.mts +2 -0
- package/dist/include-files.test.d.ts +2 -0
- package/dist/include-files.test.js +292 -0
- package/dist/include-files.test.mjs +1 -0
- package/dist/index.d.mts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/dist/is-string-in.d.mts +19 -0
- package/dist/is-string-in.d.ts +19 -0
- package/dist/is-string-in.js +1 -0
- package/dist/is-string-in.mjs +1 -0
- package/dist/magic-string.es-TUA2PMWY.mjs +1 -0
- package/dist/remove-leading-empty-lines.d.mts +18 -0
- package/dist/remove-leading-empty-lines.d.ts +18 -0
- package/dist/remove-leading-empty-lines.js +1 -0
- package/dist/remove-leading-empty-lines.mjs +1 -0
- package/dist/remove-leading-empty-lines.test.d.mts +2 -0
- package/dist/remove-leading-empty-lines.test.d.ts +2 -0
- package/dist/remove-leading-empty-lines.test.js +1 -0
- package/dist/remove-leading-empty-lines.test.mjs +1 -0
- package/dist/traverse-folder.d.mts +56 -0
- package/dist/traverse-folder.d.ts +56 -0
- package/dist/traverse-folder.js +1 -0
- package/dist/traverse-folder.mjs +1 -0
- package/dist/traverse-folder.test.d.mts +2 -0
- package/dist/traverse-folder.test.d.ts +2 -0
- package/dist/traverse-folder.test.js +292 -0
- package/dist/traverse-folder.test.mjs +1 -0
- package/dist/yaml.d.mts +59 -0
- package/dist/yaml.d.ts +59 -0
- package/dist/yaml.js +1 -0
- package/dist/yaml.mjs +1 -0
- package/docs/README.md +10 -0
- package/docs/classes/ConfigFile.md +169 -0
- package/docs/functions/getMultiLevelExtname.md +33 -0
- package/docs/functions/glob.md +56 -0
- package/docs/functions/isStringIn.md +43 -0
- package/docs/functions/normalizeIncludeFiles.md +49 -0
- package/docs/functions/parseFrontMatter.md +33 -0
- package/docs/functions/parseYaml.md +45 -0
- package/docs/functions/registerYamlTag.md +37 -0
- package/docs/functions/removeLeadingEmptyLines.md +39 -0
- package/docs/functions/stringifyYaml.md +45 -0
- package/docs/functions/traverseFolder.md +44 -0
- package/docs/functions/traverseFolderSync.md +44 -0
- package/docs/globals.md +36 -0
- package/docs/interfaces/IncludeFiles.md +25 -0
- package/docs/type-aliases/TraverseFolderHandler.md +33 -0
- package/docs/type-aliases/TraverseFolderSyncHandler.md +33 -0
- package/docs/variables/DefaultAllTextFiles.md +11 -0
- package/package.json +68 -0
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
"use strict";var t,e,n,r,i,o,s,c=Object.create,a=Object.defineProperty,u=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,f=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,d=(t,e)=>function(){return t&&(e=(0,t[l(t)[0]])(t=0)),e},p=(t,e)=>function(){return e||(0,t[l(t)[0]])((e={exports:{}}).exports,e),e.exports},b=(t,e,n)=>(n=null!=t?c(f(t)):{},((t,e,n,r)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let i of l(e))h.call(t,i)||i===n||a(t,i,{get:()=>e[i],enumerable:!(r=u(e,i))||r.enumerable});return t})(!e&&t&&t.__esModule?n:a(n,"default",{value:t,enumerable:!0}),t)),m=(t,e,n)=>((t,e,n)=>e in t?a(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n),y=d({"node_modules/.pnpm/tsup@8.4.0_postcss@8.5.3_tsx@4.19.3_typescript@5.8.2_yaml@2.7.1/node_modules/tsup/assets/cjs_shims.js"(){}});function g(t,e,n){let i=e-n;i=i<0?-i<<1|1:i<<1;do{let e=31&i;i>>>=5,i>0&&(e|=32),t.write(r[e])}while(i>0);return e}var w,v,$,x,S,j,E,O,T,k,A,_,M=d({"node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs"(){y(),t=",".charCodeAt(0),e=";".charCodeAt(0),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(64),i=new Uint8Array(128);for(let t=0;t<64;t++){const e=n.charCodeAt(t);r[t]=e,i[e]=t}o="undefined"!=typeof TextDecoder?new TextDecoder:"undefined"!=typeof Buffer?{decode:t=>Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString()}:{decode(t){let e="";for(let n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e}},s=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(16384)}write(t){const{buffer:e}=this;e[this.pos++]=t,16384===this.pos&&(this.out+=o.decode(e),this.pos=0)}flush(){const{buffer:t,out:e,pos:n}=this;return n>0?e+o.decode(t.subarray(0,n)):e}}}}),C={};function I(){return"undefined"!=typeof globalThis&&"function"==typeof globalThis.btoa?t=>globalThis.btoa(unescape(encodeURIComponent(t))):"function"==typeof Buffer?t=>Buffer.from(t,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}function N(t,e){const n=t.split(/[/\\]/),r=e.split(/[/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length){let t=n.length;for(;t--;)n[t]=".."}return n.concat(r).join("/")}function P(t){return"[object Object]"===S.call(t)}function R(t){const e=t.split("\n"),n=[];for(let t=0,r=0;t<e.length;t++)n.push(r),r+=e[t].length+1;return function(t){let e=0,r=n.length;for(;e<r;){const i=e+r>>1;t<n[i]?r=i:e=i+1}const i=e-1;return{line:i,column:t-n[i]}}}((t,e)=>{for(var n in e)a(t,n,{get:e[n],enumerable:!0})})(C,{Bundle:()=>_,SourceMap:()=>x,default:()=>k});var B=d({"node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.mjs"(){y(),M(),w=class t{constructor(e){this.bits=e instanceof t?e.bits.slice():[]}add(t){this.bits[t>>5]|=1<<(31&t)}has(t){return!!(this.bits[t>>5]&1<<(31&t))}},v=class t{constructor(t,e,n){this.start=t,this.end=e,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(t){this.outro+=t}appendRight(t){this.intro=this.intro+t}clone(){const e=new t(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(t){return this.start<t&&t<this.end}eachNext(t){let e=this;for(;e;)t(e),e=e.next}eachPrevious(t){let e=this;for(;e;)t(e),e=e.previous}edit(t,e,n){return this.content=t,n||(this.intro="",this.outro=""),this.storeName=e,this.edited=!0,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=!1,this.edited=!1)}split(e){const n=e-this.start,r=this.original.slice(0,n),i=this.original.slice(n);this.original=r;const o=new t(e,this.end,i);return o.outro=this.outro,this.outro="",this.end=e,this.edited?(o.edit("",!1),this.content=""):this.content=r,o.next=this.next,o.next&&(o.next.previous=o),o.previous=this,this.next=o,o}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;const e=this.content.replace(t,"");return e.length?(e!==this.content&&(this.split(this.start+e.length).edit("",void 0,!0),this.edited&&this.edit(e,this.storeName,!0)),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),!!this.intro.length||void 0)}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;const e=this.content.replace(t,"");if(e.length){if(e!==this.content){const t=this.split(this.end-e.length);this.edited&&t.edit(e,this.storeName,!0),this.edit("",void 0,!0)}return!0}return this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),!!this.outro.length||void 0}},$=I(),x=class{constructor(n){this.version=3,this.file=n.file,this.sources=n.sources,this.sourcesContent=n.sourcesContent,this.names=n.names,this.mappings=function(n){const r=new s;let i=0,o=0,c=0,a=0;for(let s=0;s<n.length;s++){const u=n[s];if(s>0&&r.write(e),0===u.length)continue;let l=0;for(let e=0;e<u.length;e++){const n=u[e];e>0&&r.write(t),l=g(r,n[0],l),1!==n.length&&(i=g(r,n[1],i),o=g(r,n[2],o),c=g(r,n[3],c),4!==n.length&&(a=g(r,n[4],a)))}}return r.flush()}(n.mappings),void 0!==n.x_google_ignoreList&&(this.x_google_ignoreList=n.x_google_ignoreList),void 0!==n.debugId&&(this.debugId=n.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+$(this.toString())}},S=Object.prototype.toString,j=/\w/,E=class{constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(t,e,n,r){if(e.length){const i=e.length-1;let o=e.indexOf("\n",0),s=-1;for(;o>=0&&i>o;){const i=[this.generatedCodeColumn,t,n.line,n.column];r>=0&&i.push(r),this.rawSegments.push(i),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,s=o,o=e.indexOf("\n",o+1)}const c=[this.generatedCodeColumn,t,n.line,n.column];r>=0&&c.push(r),this.rawSegments.push(c),this.advance(e.slice(s+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(e));this.pending=null}addUneditedChunk(t,e,n,r,i){let o=e.start,s=!0,c=!1;for(;o<e.end;){if("\n"===n[o])r.line+=1,r.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,s=!0,c=!1;else{if(this.hires||s||i.has(o)){const e=[this.generatedCodeColumn,t,r.line,r.column];"boundary"===this.hires?j.test(n[o])?c||(this.rawSegments.push(e),c=!0):(this.rawSegments.push(e),c=!1):this.rawSegments.push(e)}r.column+=1,this.generatedCodeColumn+=1,s=!1}o+=1}this.pending=null}advance(t){if(!t)return;const e=t.split("\n");if(e.length>1){for(let t=0;t<e.length-1;t++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=e[e.length-1].length}},O="\n",T={insertLeft:!1,insertRight:!1,storeName:!1},k=class t{constructor(t,e={}){const n=new v(0,t.length,t);Object.defineProperties(this,{original:{writable:!0,value:t},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:e.filename},indentExclusionRanges:{writable:!0,value:e.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new w},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:e.ignoreList},offset:{writable:!0,value:e.offset||0}}),this.byStart[0]=n,this.byEnd[t.length]=n}addSourcemapLocation(t){this.sourcemapLocations.add(t)}append(t){if("string"!=typeof t)throw new TypeError("outro content must be a string");return this.outro+=t,this}appendLeft(t,e){if(t+=this.offset,"string"!=typeof e)throw new TypeError("inserted content must be a string");this._split(t);const n=this.byEnd[t];return n?n.appendLeft(e):this.intro+=e,this}appendRight(t,e){if(t+=this.offset,"string"!=typeof e)throw new TypeError("inserted content must be a string");this._split(t);const n=this.byStart[t];return n?n.appendRight(e):this.outro+=e,this}clone(){const e=new t(this.original,{filename:this.filename,offset:this.offset});let n=this.firstChunk,r=e.firstChunk=e.lastSearchedChunk=n.clone();for(;n;){e.byStart[r.start]=r,e.byEnd[r.end]=r;const t=n.next,i=t&&t.clone();i&&(r.next=i,i.previous=r,r=i),n=t}return e.lastChunk=r,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new w(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(t){t=t||{};const e=Object.keys(this.storedNames),n=new E(t.hires),r=R(this.original);return this.intro&&n.advance(this.intro),this.firstChunk.eachNext((t=>{const i=r(t.start);t.intro.length&&n.advance(t.intro),t.edited?n.addEdit(0,t.content,i,t.storeName?e.indexOf(t.original):-1):n.addUneditedChunk(0,t,this.original,i,this.sourcemapLocations),t.outro.length&&n.advance(t.outro)})),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:[t.source?N(t.file||"",t.source):t.file||""],sourcesContent:t.includeContent?[this.original]:void 0,names:e,mappings:n.raw,x_google_ignoreList:this.ignoreList?[0]:void 0}}generateMap(t){return new x(this.generateDecodedMap(t))}_ensureindentStr(){void 0===this.indentStr&&(this.indentStr=function(t){const e=t.split("\n"),n=e.filter((t=>/^\t+/.test(t))),r=e.filter((t=>/^ {2,}/.test(t)));if(0===n.length&&0===r.length)return null;if(n.length>=r.length)return"\t";const i=r.reduce(((t,e)=>{const n=/^ +/.exec(e)[0].length;return Math.min(n,t)}),1/0);return new Array(i+1).join(" ")}(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),null===this.indentStr?"\t":this.indentStr}indent(t,e){const n=/^[^\r\n]/gm;if(P(t)&&(e=t,t=void 0),void 0===t&&(this._ensureindentStr(),t=this.indentStr||"\t"),""===t)return this;const r={};if((e=e||{}).exclude){("number"==typeof e.exclude[0]?[e.exclude]:e.exclude).forEach((t=>{for(let e=t[0];e<t[1];e+=1)r[e]=!0}))}let i=!1!==e.indentStart;const o=e=>i?`${t}${e}`:(i=!0,e);this.intro=this.intro.replace(n,o);let s=0,c=this.firstChunk;for(;c;){const e=c.end;if(c.edited)r[s]||(c.content=c.content.replace(n,o),c.content.length&&(i="\n"===c.content[c.content.length-1]));else for(s=c.start;s<e;){if(!r[s]){const e=this.original[s];"\n"===e?i=!0:"\r"!==e&&i&&(i=!1,s===c.start||(this._splitChunk(c,s),c=c.next),c.prependRight(t))}s+=1}s=c.end,c=c.next}return this.outro=this.outro.replace(n,o),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(t,e){return T.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),T.insertLeft=!0),this.appendLeft(t,e)}insertRight(t,e){return T.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),T.insertRight=!0),this.prependRight(t,e)}move(t,e,n){if(t+=this.offset,e+=this.offset,(n+=this.offset)>=t&&n<=e)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(e),this._split(n);const r=this.byStart[t],i=this.byEnd[e],o=r.previous,s=i.next,c=this.byStart[n];if(!c&&i===this.lastChunk)return this;const a=c?c.previous:this.lastChunk;return o&&(o.next=s),s&&(s.previous=o),a&&(a.next=r),c&&(c.previous=i),r.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=r.previous,this.lastChunk.next=null),r.previous=a,i.next=c||null,a||(this.firstChunk=r),c||(this.lastChunk=i),this}overwrite(t,e,n,r){return r=r||{},this.update(t,e,n,{...r,overwrite:!r.contentOnly})}update(t,e,n,r){if(t+=this.offset,e+=this.offset,"string"!=typeof n)throw new TypeError("replacement content must be a string");if(0!==this.original.length){for(;t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length}if(e>this.original.length)throw new Error("end is out of bounds");if(t===e)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(t),this._split(e),!0===r&&(T.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),T.storeName=!0),r={storeName:!0});const i=void 0!==r&&r.storeName,o=void 0!==r&&r.overwrite;if(i){const n=this.original.slice(t,e);Object.defineProperty(this.storedNames,n,{writable:!0,value:!0,enumerable:!0})}const s=this.byStart[t],c=this.byEnd[e];if(s){let t=s;for(;t!==c;){if(t.next!==this.byStart[t.end])throw new Error("Cannot overwrite across a split point");t=t.next,t.edit("",!1)}s.edit(n,i,!o)}else{const r=new v(t,e,"").edit(n,i);c.next=r,r.previous=c}return this}prepend(t){if("string"!=typeof t)throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this}prependLeft(t,e){if(t+=this.offset,"string"!=typeof e)throw new TypeError("inserted content must be a string");this._split(t);const n=this.byEnd[t];return n?n.prependLeft(e):this.intro=e+this.intro,this}prependRight(t,e){if(t+=this.offset,"string"!=typeof e)throw new TypeError("inserted content must be a string");this._split(t);const n=this.byStart[t];return n?n.prependRight(e):this.outro=e+this.outro,this}remove(t,e){if(t+=this.offset,e+=this.offset,0!==this.original.length){for(;t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length}if(t===e)return this;if(t<0||e>this.original.length)throw new Error("Character is out of bounds");if(t>e)throw new Error("end must be greater than start");this._split(t),this._split(e);let n=this.byStart[t];for(;n;)n.intro="",n.outro="",n.edit(""),n=e>n.end?this.byStart[n.end]:null;return this}reset(t,e){if(t+=this.offset,e+=this.offset,0!==this.original.length){for(;t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length}if(t===e)return this;if(t<0||e>this.original.length)throw new Error("Character is out of bounds");if(t>e)throw new Error("end must be greater than start");this._split(t),this._split(e);let n=this.byStart[t];for(;n;)n.reset(),n=e>n.end?this.byStart[n.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(O);if(-1!==t)return this.outro.substr(t+1);let e=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(t=n.outro.lastIndexOf(O),-1!==t)return n.outro.substr(t+1)+e;e=n.outro+e}if(n.content.length>0){if(t=n.content.lastIndexOf(O),-1!==t)return n.content.substr(t+1)+e;e=n.content+e}if(n.intro.length>0){if(t=n.intro.lastIndexOf(O),-1!==t)return n.intro.substr(t+1)+e;e=n.intro+e}}while(n=n.previous);return t=this.intro.lastIndexOf(O),-1!==t?this.intro.substr(t+1)+e:this.intro+e}slice(t=0,e=this.original.length-this.offset){if(t+=this.offset,e+=this.offset,0!==this.original.length){for(;t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length}let n="",r=this.firstChunk;for(;r&&(r.start>t||r.end<=t);){if(r.start<e&&r.end>=e)return n;r=r.next}if(r&&r.edited&&r.start!==t)throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);const i=r;for(;r;){!r.intro||i===r&&r.start!==t||(n+=r.intro);const o=r.start<e&&r.end>=e;if(o&&r.edited&&r.end!==e)throw new Error(`Cannot use replaced character ${e} as slice end anchor.`);const s=i===r?t-r.start:0,c=o?r.content.length+e-r.end:r.content.length;if(n+=r.content.slice(s,c),!r.outro||o&&r.end!==e||(n+=r.outro),o)break;r=r.next}return n}snip(t,e){const n=this.clone();return n.remove(0,t),n.remove(e,n.original.length),n}_split(t){if(this.byStart[t]||this.byEnd[t])return;let e=this.lastSearchedChunk;const n=t>e.end;for(;e;){if(e.contains(t))return this._splitChunk(e,t);e=n?this.byStart[e.end]:this.byEnd[e.start]}}_splitChunk(t,e){if(t.edited&&t.content.length){const n=R(this.original)(e);throw new Error(`Cannot split a chunk that has already been edited (${n.line}:${n.column} – "${t.original}")`)}const n=t.split(e);return this.byEnd[e]=t,this.byStart[e]=n,this.byEnd[n.end]=n,t===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=t,!0}toString(){let t=this.intro,e=this.firstChunk;for(;e;)t+=e.toString(),e=e.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!1}while(t=t.next);return!0}length(){let t=this.firstChunk,e=0;do{e+=t.intro.length+t.content.length+t.outro.length}while(t=t.next);return e}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimEndAborted(t){const e=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;let n=this.lastChunk;do{const t=n.end,r=n.trimEnd(e);if(n.end!==t&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),r)return!0;n=n.previous}while(n);return!1}trimEnd(t){return this.trimEndAborted(t),this}trimStartAborted(t){const e=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;let n=this.firstChunk;do{const t=n.end,r=n.trimStart(e);if(n.end!==t&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),r)return!0;n=n.next}while(n);return!1}trimStart(t){return this.trimStartAborted(t),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(t,e){function n(t,n){return"string"==typeof e?e.replace(/\$(\$|&|\d+)/g,((e,n)=>{if("$"===n)return"$";if("&"===n)return t[0];return+n<t.length?t[+n]:`$${n}`})):e(...t,t.index,n,t.groups)}if(t.global){(function(t,e){let n;const r=[];for(;n=t.exec(e);)r.push(n);return r})(t,this.original).forEach((t=>{if(null!=t.index){const e=n(t,this.original);e!==t[0]&&this.overwrite(t.index,t.index+t[0].length,e)}}))}else{const e=this.original.match(t);if(e&&null!=e.index){const t=n(e,this.original);t!==e[0]&&this.overwrite(e.index,e.index+e[0].length,t)}}return this}_replaceString(t,e){const{original:n}=this,r=n.indexOf(t);return-1!==r&&this.overwrite(r,r+t.length,e),this}replace(t,e){return"string"==typeof t?this._replaceString(t,e):this._replaceRegexp(t,e)}_replaceAllString(t,e){const{original:n}=this,r=t.length;for(let i=n.indexOf(t);-1!==i;i=n.indexOf(t,i+r)){n.slice(i,i+r)!==e&&this.overwrite(i,i+r,e)}return this}replaceAll(t,e){if("string"==typeof t)return this._replaceAllString(t,e);if(!t.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(t,e)}},A=Object.prototype.hasOwnProperty,_=class t{constructor(t={}){this.intro=t.intro||"",this.separator=void 0!==t.separator?t.separator:"\n",this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}}addSource(t){if(t instanceof k)return this.addSource({content:t,filename:t.filename,separator:this.separator});if(!P(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((e=>{A.call(t,e)||(t[e]=t.content[e])})),void 0===t.separator&&(t.separator=this.separator),t.filename)if(A.call(this.uniqueSourceIndexByFilename,t.filename)){const e=this.uniqueSources[this.uniqueSourceIndexByFilename[t.filename]];if(t.content.original!==e.content)throw new Error(`Illegal source: same filename (${t.filename}), different contents`)}else this.uniqueSourceIndexByFilename[t.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:t.filename,content:t.content.original});return this.sources.push(t),this}append(t,e){return this.addSource({content:new k(t),separator:e&&e.separator||""}),this}clone(){const e=new t({intro:this.intro,separator:this.separator});return this.sources.forEach((t=>{e.addSource({filename:t.filename,content:t.content.clone(),separator:t.separator})})),e}generateDecodedMap(t={}){const e=[];let n;this.sources.forEach((t=>{Object.keys(t.content.storedNames).forEach((t=>{~e.indexOf(t)||e.push(t)}))}));const r=new E(t.hires);return this.intro&&r.advance(this.intro),this.sources.forEach(((t,i)=>{i>0&&r.advance(this.separator);const o=t.filename?this.uniqueSourceIndexByFilename[t.filename]:-1,s=t.content,c=R(s.original);s.intro&&r.advance(s.intro),s.firstChunk.eachNext((n=>{const i=c(n.start);n.intro.length&&r.advance(n.intro),t.filename?n.edited?r.addEdit(o,n.content,i,n.storeName?e.indexOf(n.original):-1):r.addUneditedChunk(o,n,s.original,i,s.sourcemapLocations):r.advance(n.content),n.outro.length&&r.advance(n.outro)})),s.outro&&r.advance(s.outro),t.ignoreList&&-1!==o&&(void 0===n&&(n=[]),n.push(o))})),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:this.uniqueSources.map((e=>t.file?N(t.file,e.filename):e.filename)),sourcesContent:this.uniqueSources.map((e=>t.includeContent?e.content:null)),names:e,mappings:r.raw,x_google_ignoreList:n}}generateMap(t){return new x(this.generateDecodedMap(t))}getIndentString(){const t={};return this.sources.forEach((e=>{const n=e.content._getRawIndentString();null!==n&&(t[n]||(t[n]=0),t[n]+=1)})),Object.keys(t).sort(((e,n)=>t[e]-t[n]))[0]||"\t"}indent(t){if(arguments.length||(t=this.getIndentString()),""===t)return this;let e=!this.intro||"\n"===this.intro.slice(-1);return this.sources.forEach(((n,r)=>{const i=void 0!==n.separator?n.separator:this.separator,o=e||r>0&&/\r?\n$/.test(i);n.content.indent(t,{exclude:n.indentExclusionRanges,indentStart:o}),e="\n"===n.content.lastChar()})),this.intro&&(this.intro=t+this.intro.replace(/^[^\n]/gm,((e,n)=>n>0?t+e:e))),this}prepend(t){return this.intro=t+this.intro,this}toString(){const t=this.sources.map(((t,e)=>{const n=void 0!==t.separator?t.separator:this.separator;return(e>0?n:"")+t.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,e)=>t+e.content.length()),this.intro.length)}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimStart(t){const e=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(e,""),!this.intro){let e,n=0;do{if(e=this.sources[n++],!e)break}while(!e.content.trimStartAborted(t))}return this}trimEnd(t){const e=new RegExp((t||"\\s")+"+$");let n,r=this.sources.length-1;do{if(n=this.sources[r--],!n){this.intro=this.intro.replace(e,"");break}}while(!n.content.trimEndAborted(t));return this}}}}),D=p({"node_modules/.pnpm/expect-type@1.2.0/node_modules/expect-type/dist/branding.js"(t){y(),Object.defineProperty(t,"__esModule",{value:!0})}}),L=p({"node_modules/.pnpm/expect-type@1.2.0/node_modules/expect-type/dist/messages.js"(t){y(),Object.defineProperty(t,"__esModule",{value:!0});Symbol("inverted"),Symbol("expectNull"),Symbol("expectUndefined"),Symbol("expectNumber"),Symbol("expectString"),Symbol("expectBoolean"),Symbol("expectVoid"),Symbol("expectFunction"),Symbol("expectObject"),Symbol("expectArray"),Symbol("expectSymbol"),Symbol("expectAny"),Symbol("expectUnknown"),Symbol("expectNever"),Symbol("expectNullable"),Symbol("expectBigInt")}}),F=p({"node_modules/.pnpm/expect-type@1.2.0/node_modules/expect-type/dist/overloads.js"(t){y(),Object.defineProperty(t,"__esModule",{value:!0})}}),q=p({"node_modules/.pnpm/expect-type@1.2.0/node_modules/expect-type/dist/utils.js"(t){y(),Object.defineProperty(t,"__esModule",{value:!0});Symbol("secret"),Symbol("mismatch"),Symbol("avalue")}}),J=p({"node_modules/.pnpm/expect-type@1.2.0/node_modules/expect-type/dist/index.js"(t){y();var e=t&&t.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=t&&t.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.expectTypeOf=void 0,n(D(),t),n(L(),t),n(F(),t),n(q(),t);var r=()=>!0;t.expectTypeOf=e=>{const n={toBeAny:r,toBeUnknown:r,toBeNever:r,toBeFunction:r,toBeObject:r,toBeArray:r,toBeString:r,toBeNumber:r,toBeBoolean:r,toBeVoid:r,toBeSymbol:r,toBeNull:r,toBeUndefined:r,toBeNullable:r,toBeBigInt:r,toMatchTypeOf:r,toEqualTypeOf:r,toBeConstructibleWith:r,toMatchObjectType:r,toExtend:r,map:t.expectTypeOf,toBeCallableWith:t.expectTypeOf,extract:t.expectTypeOf,exclude:t.expectTypeOf,pick:t.expectTypeOf,omit:t.expectTypeOf,toHaveProperty:t.expectTypeOf,parameter:t.expectTypeOf};return["parameters","returns","resolves","not","items","constructorParameters","thisParameter","instance","guards","asserts","branded"].forEach((e=>Object.defineProperty(n,e,{get:()=>(0,t.expectTypeOf)({})}))),n}}});y(),y(),y(),y(),y(),y(),y(),y(),y();var U=Object.entries({reset:[0,0],bold:[1,22,"[22m[1m"],dim:[2,22,"[22m[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 W(t){return String(t)}W.open="",W.close="";var H=require("tty"),X=function(t=!1){let e=function(t=!1){let e="undefined"!=typeof process?process:void 0,n=(null==e?void 0:e.env)||{},r=(null==e?void 0:e.argv)||[];return!("NO_COLOR"in n||r.includes("--no-color"))&&("FORCE_COLOR"in n||r.includes("--color")||"win32"===(null==e?void 0:e.platform)||t&&"dumb"!==n.TERM||"CI"in n)||"undefined"!=typeof window&&!!window.chrome}(t),n=(t,e,n=t)=>{let r=r=>{let i=String(r),o=i.indexOf(e,t.length);return~o?t+((t,e,n,r)=>{let i="",o=0;do{i+=t.substring(o,r)+n,o=r+e.length,r=t.indexOf(e,o)}while(~r);return i+t.substring(o)})(i,e,n,o)+e:t+i+e};return r.open=t,r.close=e,r},r={isColorSupported:e},i=t=>`[${t}m`;for(let[t,o]of U)r[t]=e?n(i(o[0]),i(o[1]),o[2]):W;return r}(void 0!==process.env.FORCE_TTY||(0,H.isatty)(1));function z(t,e){return e.forEach((function(e){e&&"string"!=typeof e&&!Array.isArray(e)&&Object.keys(e).forEach((function(n){if("default"!==n&&!(n in t)){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}))})),Object.freeze(t)}function V(t,e,n,r,i,o,s=": "){let c="",a=0,u=t.next();if(!u.done){c+=e.spacingOuter;const l=n+e.indent;for(;!u.done;){if(c+=l,a++===e.maxWidth){c+="…";break}c+=o(u.value[0],e,l,r,i)+s+o(u.value[1],e,l,r,i),u=t.next(),u.done?e.min||(c+=","):c+=`,${e.spacingInner}`}c+=e.spacingOuter+n}return c}function K(t,e,n,r,i,o){let s="",c=0,a=t.next();if(!a.done){s+=e.spacingOuter;const u=n+e.indent;for(;!a.done;){if(s+=u,c++===e.maxWidth){s+="…";break}s+=o(a.value,e,u,r,i),a=t.next(),a.done?e.min||(s+=","):s+=`,${e.spacingInner}`}s+=e.spacingOuter+n}return s}function G(t,e,n,r,i,o){let s="";const c=t=>t instanceof DataView,a=c(t=t instanceof ArrayBuffer?new DataView(t):t)?t.byteLength:t.length;if(a>0){s+=e.spacingOuter;const u=n+e.indent;for(let n=0;n<a;n++){if(s+=u,n===e.maxWidth){s+="…";break}(c(t)||n in t)&&(s+=o(c(t)?t.getInt8(n):t[n],e,u,r,i)),n<a-1?s+=`,${e.spacingInner}`:e.min||(s+=",")}s+=e.spacingOuter+n}return s}function Z(t,e,n,r,i,o){let s="";const c=function(t,e){const n=Object.keys(t),r=null===e?n:n.sort(e);if(Object.getOwnPropertySymbols)for(const e of Object.getOwnPropertySymbols(t))Object.getOwnPropertyDescriptor(t,e).enumerable&&r.push(e);return r}(t,e.compareKeys);if(c.length>0){s+=e.spacingOuter;const a=n+e.indent;for(let n=0;n<c.length;n++){const u=c[n];s+=`${a+o(u,e,a,r,i)}: ${o(t[u],e,a,r,i)}`,n<c.length-1?s+=`,${e.spacingInner}`:e.min||(s+=",")}s+=e.spacingOuter+n}return s}var Y="function"==typeof Symbol&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,Q=" ",tt={serialize:(t,e,n,r,i,o)=>{const s=t.toString();if("ArrayContaining"===s||"ArrayNotContaining"===s)return++r>e.maxDepth?`[${s}]`:`${s+Q}[${G(t.sample,e,n,r,i,o)}]`;if("ObjectContaining"===s||"ObjectNotContaining"===s)return++r>e.maxDepth?`[${s}]`:`${s+Q}{${Z(t.sample,e,n,r,i,o)}}`;if("StringMatching"===s||"StringNotMatching"===s)return s+Q+o(t.sample,e,n,r,i);if("StringContaining"===s||"StringNotContaining"===s)return s+Q+o(t.sample,e,n,r,i);if("function"!=typeof t.toAsymmetricMatcher)throw new TypeError(`Asymmetric matcher ${t.constructor.name} does not implement toAsymmetricMatcher()`);return t.toAsymmetricMatcher()},test:t=>t&&t.$$typeof===Y},et=new Set(["DOMStringMap","NamedNodeMap"]),nt=/^(?:HTML\w*Collection|NodeList)$/;var rt={serialize:(t,e,n,r,i,o)=>{const s=t.constructor.name;return++r>e.maxDepth?`[${s}]`:(e.min?"":s+" ")+(et.has(s)?`{${Z(function(t){return"NamedNodeMap"===t.constructor.name}(t)?[...t].reduce(((t,e)=>(t[e.name]=e.value,t)),{}):{...t},e,n,r,i,o)}}`:`[${G([...t],e,n,r,i,o)}]`)},test:t=>{return t&&t.constructor&&!!t.constructor.name&&(e=t.constructor.name,et.has(e)||nt.test(e));var e}};function it(t){return t.replaceAll("<","<").replaceAll(">",">")}function ot(t,e,n,r,i,o,s){const c=r+n.indent,a=n.colors;return t.map((t=>{const u=e[t];let l=s(u,n,c,i,o);return"string"!=typeof u&&(l.includes("\n")&&(l=n.spacingOuter+c+l+n.spacingOuter+r),l=`{${l}}`),`${n.spacingInner+r+a.prop.open+t+a.prop.close}=${a.value.open}${l}${a.value.close}`})).join("")}function st(t,e,n,r,i,o){return t.map((t=>e.spacingOuter+n+("string"==typeof t?ct(t,e):o(t,e,n,r,i)))).join("")}function ct(t,e){const n=e.colors.content;return n.open+it(t)+n.close}function at(t,e,n,r,i){const o=r.colors.tag;return`${o.open}<${t}${e&&o.close+e+r.spacingOuter+i+o.open}${n?`>${o.close}${n}${r.spacingOuter}${i}${o.open}</${t}`:(e&&!r.min?"":" ")+"/"}>${o.close}`}function ut(t,e){const n=e.colors.tag;return`${n.open}<${t}${n.close} …${n.open} />${n.close}`}var lt=/^(?:(?:HTML|SVG)\w*)?Element$/;function ft(t){return 11===t.nodeType}var ht={serialize:(t,e,n,r,i,o)=>{if(function(t){return 3===t.nodeType}(t))return ct(t.data,e);if(function(t){return 8===t.nodeType}(t))return function(t,e){const n=e.colors.comment;return`${n.open}\x3c!--${it(t)}--\x3e${n.close}`}(t.data,e);const s=ft(t)?"DocumentFragment":t.tagName.toLowerCase();return++r>e.maxDepth?ut(s,e):at(s,ot(ft(t)?[]:Array.from(t.attributes,(t=>t.name)).sort(),ft(t)?{}:[...t.attributes].reduce(((t,e)=>(t[e.name]=e.value,t)),{}),e,n+e.indent,r,i,o),st(Array.prototype.slice.call(t.childNodes||t.children),e,n+e.indent,r,i,o),e,n)},test:t=>{var e;return(null==(e=null==t?void 0:t.constructor)?void 0:e.name)&&function(t){const e=t.constructor.name,{nodeType:n,tagName:r}=t,i="string"==typeof r&&r.includes("-")||function(t){try{return"function"==typeof t.hasAttribute&&t.hasAttribute("is")}catch{return!1}}(t);return 1===n&&(lt.test(e)||i)||3===n&&"Text"===e||8===n&&"Comment"===e||11===n&&"DocumentFragment"===e}(t)}},dt="@@__IMMUTABLE_ORDERED__@@",pt=t=>`Immutable.${t}`,bt=t=>`[${t}]`,mt=" ";function yt(t,e,n,r,i,o,s){return++r>e.maxDepth?bt(pt(s)):`${pt(s)+mt}[${K(t.values(),e,n,r,i,o)}]`}var gt={serialize:(t,e,n,r,i,o)=>t["@@__IMMUTABLE_MAP__@@"]?function(t,e,n,r,i,o,s){return++r>e.maxDepth?bt(pt(s)):`${pt(s)+mt}{${V(t.entries(),e,n,r,i,o)}}`}(t,e,n,r,i,o,t[dt]?"OrderedMap":"Map"):t["@@__IMMUTABLE_LIST__@@"]?yt(t,e,n,r,i,o,"List"):t["@@__IMMUTABLE_SET__@@"]?yt(t,e,n,r,i,o,t[dt]?"OrderedSet":"Set"):t["@@__IMMUTABLE_STACK__@@"]?yt(t,e,n,r,i,o,"Stack"):t["@@__IMMUTABLE_SEQ__@@"]?function(t,e,n,r,i,o){const s=pt("Seq");return++r>e.maxDepth?bt(s):t["@@__IMMUTABLE_KEYED__@@"]?`${s+mt}{${t._iter||t._object?V(t.entries(),e,n,r,i,o):"…"}}`:`${s+mt}[${t._iter||t._array||t._collection||t._iterable?K(t.values(),e,n,r,i,o):"…"}]`}(t,e,n,r,i,o):function(t,e,n,r,i,o){const s=pt(t._name||"Record");return++r>e.maxDepth?bt(s):`${s+mt}{${V(function(t){let e=0;return{next(){if(e<t._keys.length){const n=t._keys[e++];return{done:!1,value:[n,t.get(n)]}}return{done:!0,value:void 0}}}}(t),e,n,r,i,o)}}`}(t,e,n,r,i,o),test:t=>t&&(!0===t["@@__IMMUTABLE_ITERABLE__@@"]||!0===t["@@__IMMUTABLE_RECORD__@@"])};function wt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var vt,$t={exports:{}},xt={};var St,jt,Et={};function Ot(){return jt||(jt=1,"production"===process.env.NODE_ENV?$t.exports=function(){if(vt)return xt;vt=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),d=Symbol.for("react.client.reference");function p(h){if("object"==typeof h&&null!==h){var d=h.$$typeof;switch(d){case t:switch(h=h.type){case n:case i:case r:case a:case u:return h;default:switch(h=h&&h.$$typeof){case s:case c:case f:case l:case o:return h;default:return d}}case e:return d}}}return xt.ContextConsumer=o,xt.ContextProvider=s,xt.Element=t,xt.ForwardRef=c,xt.Fragment=n,xt.Lazy=f,xt.Memo=l,xt.Portal=e,xt.Profiler=i,xt.StrictMode=r,xt.Suspense=a,xt.SuspenseList=u,xt.isContextConsumer=function(t){return p(t)===o},xt.isContextProvider=function(t){return p(t)===s},xt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},xt.isForwardRef=function(t){return p(t)===c},xt.isFragment=function(t){return p(t)===n},xt.isLazy=function(t){return p(t)===f},xt.isMemo=function(t){return p(t)===l},xt.isPortal=function(t){return p(t)===e},xt.isProfiler=function(t){return p(t)===i},xt.isStrictMode=function(t){return p(t)===r},xt.isSuspense=function(t){return p(t)===a},xt.isSuspenseList=function(t){return p(t)===u},xt.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===i||t===r||t===a||t===u||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===l||t.$$typeof===s||t.$$typeof===o||t.$$typeof===c||t.$$typeof===d||void 0!==t.getModuleId)},xt.typeOf=p,xt}():$t.exports=(St||(St=1,"production"!==process.env.NODE_ENV&&function(){function t(t){if("object"==typeof t&&null!==t){var d=t.$$typeof;switch(d){case e:switch(t=t.type){case r:case o:case i:case u:case l:return t;default:switch(t=t&&t.$$typeof){case c:case a:case h:case f:case s:return t;default:return d}}case n:return d}}}var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),a=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.offscreen"),p=Symbol.for("react.client.reference");Et.ContextConsumer=s,Et.ContextProvider=c,Et.Element=e,Et.ForwardRef=a,Et.Fragment=r,Et.Lazy=h,Et.Memo=f,Et.Portal=n,Et.Profiler=o,Et.StrictMode=i,Et.Suspense=u,Et.SuspenseList=l,Et.isContextConsumer=function(e){return t(e)===s},Et.isContextProvider=function(e){return t(e)===c},Et.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Et.isForwardRef=function(e){return t(e)===a},Et.isFragment=function(e){return t(e)===r},Et.isLazy=function(e){return t(e)===h},Et.isMemo=function(e){return t(e)===f},Et.isPortal=function(e){return t(e)===n},Et.isProfiler=function(e){return t(e)===o},Et.isStrictMode=function(e){return t(e)===i},Et.isSuspense=function(e){return t(e)===u},Et.isSuspenseList=function(e){return t(e)===l},Et.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===o||t===i||t===u||t===l||t===d||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===f||t.$$typeof===c||t.$$typeof===s||t.$$typeof===a||t.$$typeof===p||void 0!==t.getModuleId)},Et.typeOf=t}()),Et)),$t.exports}var Tt,kt=Ot(),At=z({__proto__:null,default:wt(kt)},[kt]),_t={exports:{}},Mt={};var Ct,It,Nt={};var Pt=(It||(It=1,"production"===process.env.NODE_ENV?_t.exports=function(){if(Tt)return Mt;Tt=1;var t,e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),a=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");function b(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:switch(t=t.type){case r:case o:case i:case l:case f:return t;default:switch(t=t&&t.$$typeof){case a:case c:case u:case d:case h:case s:return t;default:return p}}case n:return p}}}return t=Symbol.for("react.module.reference"),Mt.ContextConsumer=c,Mt.ContextProvider=s,Mt.Element=e,Mt.ForwardRef=u,Mt.Fragment=r,Mt.Lazy=d,Mt.Memo=h,Mt.Portal=n,Mt.Profiler=o,Mt.StrictMode=i,Mt.Suspense=l,Mt.SuspenseList=f,Mt.isAsyncMode=function(){return!1},Mt.isConcurrentMode=function(){return!1},Mt.isContextConsumer=function(t){return b(t)===c},Mt.isContextProvider=function(t){return b(t)===s},Mt.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Mt.isForwardRef=function(t){return b(t)===u},Mt.isFragment=function(t){return b(t)===r},Mt.isLazy=function(t){return b(t)===d},Mt.isMemo=function(t){return b(t)===h},Mt.isPortal=function(t){return b(t)===n},Mt.isProfiler=function(t){return b(t)===o},Mt.isStrictMode=function(t){return b(t)===i},Mt.isSuspense=function(t){return b(t)===l},Mt.isSuspenseList=function(t){return b(t)===f},Mt.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===o||e===i||e===l||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===h||e.$$typeof===s||e.$$typeof===c||e.$$typeof===u||e.$$typeof===t||void 0!==e.getModuleId)},Mt.typeOf=b,Mt}():_t.exports=(Ct||(Ct=1,"production"!==process.env.NODE_ENV&&function(){var t,e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),a=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");function b(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:var b=t.type;switch(b){case r:case o:case i:case l:case f:return b;default:var m=b&&b.$$typeof;switch(m){case a:case c:case u:case d:case h:case s:return m;default:return p}}case n:return p}}}t=Symbol.for("react.module.reference");var m=c,y=s,g=e,w=u,v=r,$=d,x=h,S=n,j=o,E=i,O=l,T=f,k=!1,A=!1;Nt.ContextConsumer=m,Nt.ContextProvider=y,Nt.Element=g,Nt.ForwardRef=w,Nt.Fragment=v,Nt.Lazy=$,Nt.Memo=x,Nt.Portal=S,Nt.Profiler=j,Nt.StrictMode=E,Nt.Suspense=O,Nt.SuspenseList=T,Nt.isAsyncMode=function(t){return k||(k=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},Nt.isConcurrentMode=function(t){return A||(A=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},Nt.isContextConsumer=function(t){return b(t)===c},Nt.isContextProvider=function(t){return b(t)===s},Nt.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Nt.isForwardRef=function(t){return b(t)===u},Nt.isFragment=function(t){return b(t)===r},Nt.isLazy=function(t){return b(t)===d},Nt.isMemo=function(t){return b(t)===h},Nt.isPortal=function(t){return b(t)===n},Nt.isProfiler=function(t){return b(t)===o},Nt.isStrictMode=function(t){return b(t)===i},Nt.isSuspense=function(t){return b(t)===l},Nt.isSuspenseList=function(t){return b(t)===f},Nt.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===o||e===i||e===l||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===h||e.$$typeof===s||e.$$typeof===c||e.$$typeof===u||e.$$typeof===t||void 0!==e.getModuleId)},Nt.typeOf=b}()),Nt)),_t.exports),Rt=z({__proto__:null,default:wt(Pt)},[Pt]),Bt=Object.fromEntries(["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"].map((t=>[t,e=>Rt[t](e)||At[t](e)])));function Dt(t,e=[]){if(Array.isArray(t))for(const n of t)Dt(n,e);else null!=t&&!1!==t&&""!==t&&e.push(t);return e}function Lt(t){const e=t.type;if("string"==typeof e)return e;if("function"==typeof e)return e.displayName||e.name||"Unknown";if(Bt.isFragment(t))return"React.Fragment";if(Bt.isSuspense(t))return"React.Suspense";if("object"==typeof e&&null!==e){if(Bt.isContextProvider(t))return"Context.Provider";if(Bt.isContextConsumer(t))return"Context.Consumer";if(Bt.isForwardRef(t)){if(e.displayName)return e.displayName;const t=e.render.displayName||e.render.name||"";return""===t?"ForwardRef":`ForwardRef(${t})`}if(Bt.isMemo(t)){const t=e.displayName||e.type.displayName||e.type.name||"";return""===t?"Memo":`Memo(${t})`}}return"UNDEFINED"}var Ft={serialize:(t,e,n,r,i,o)=>++r>e.maxDepth?ut(Lt(t),e):at(Lt(t),ot(function(t){const{props:e}=t;return Object.keys(e).filter((t=>"children"!==t&&void 0!==e[t])).sort()}(t),t.props,e,n+e.indent,r,i,o),st(Dt(t.props.children),e,n+e.indent,r,i,o),e,n),test:t=>null!=t&&Bt.isElement(t)},qt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.test.json"):245830487;var Jt={serialize:(t,e,n,r,i,o)=>++r>e.maxDepth?ut(t.type,e):at(t.type,t.props?ot(function(t){const{props:e}=t;return e?Object.keys(e).filter((t=>void 0!==e[t])).sort():[]}(t),t.props,e,n+e.indent,r,i,o):"",t.children?st(t.children,e,n+e.indent,r,i,o):"",e,n),test:t=>t&&t.$$typeof===qt},Ut=Object.prototype.toString,Wt=Date.prototype.toISOString,Ht=Error.prototype.toString,Xt=RegExp.prototype.toString;function zt(t){return"function"==typeof t.constructor&&t.constructor.name||"Object"}var Vt=/^Symbol\((.*)\)(.*)$/,Kt=/\n/g,Gt=class extends Error{constructor(t,e){super(t),this.stack=e,this.name=this.constructor.name}};function Zt(t,e){return e?`[Function ${t.name||"anonymous"}]`:"[Function]"}function Yt(t){return String(t).replace(Vt,"Symbol($1)")}function Qt(t){return`[${Ht.call(t)}]`}function te(t,e,n,r){if(!0===t||!1===t)return`${t}`;if(void 0===t)return"undefined";if(null===t)return"null";const i=typeof t;if("number"===i)return function(t){return Object.is(t,-0)?"-0":String(t)}(t);if("bigint"===i)return function(t){return String(`${t}n`)}(t);if("string"===i)return r?`"${t.replaceAll(/"|\\/g,"\\$&")}"`:`"${t}"`;if("function"===i)return Zt(t,e);if("symbol"===i)return Yt(t);const o=Ut.call(t);return"[object WeakMap]"===o?"WeakMap {}":"[object WeakSet]"===o?"WeakSet {}":"[object Function]"===o||"[object GeneratorFunction]"===o?Zt(t,e):"[object Symbol]"===o?Yt(t):"[object Date]"===o?Number.isNaN(+t)?"Date { NaN }":Wt.call(t):"[object Error]"===o?Qt(t):"[object RegExp]"===o?n?Xt.call(t).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):Xt.call(t):t instanceof Error?Qt(t):null}function ee(t,e,n,r,i,o){if(i.includes(t))return"[Circular]";(i=[...i]).push(t);const s=++r>e.maxDepth,c=e.min;if(e.callToJSON&&!s&&t.toJSON&&"function"==typeof t.toJSON&&!o)return oe(t.toJSON(),e,n,r,i,!0);const a=Ut.call(t);return"[object Arguments]"===a?s?"[Arguments]":`${c?"":"Arguments "}[${G(t,e,n,r,i,oe)}]`:function(t){return"[object Array]"===t||"[object ArrayBuffer]"===t||"[object DataView]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object Int8Array]"===t||"[object Int16Array]"===t||"[object Int32Array]"===t||"[object Uint8Array]"===t||"[object Uint8ClampedArray]"===t||"[object Uint16Array]"===t||"[object Uint32Array]"===t}(a)?s?`[${t.constructor.name}]`:`${c?"":e.printBasicPrototype||"Array"!==t.constructor.name?`${t.constructor.name} `:""}[${G(t,e,n,r,i,oe)}]`:"[object Map]"===a?s?"[Map]":`Map {${V(t.entries(),e,n,r,i,oe," => ")}}`:"[object Set]"===a?s?"[Set]":`Set {${K(t.values(),e,n,r,i,oe)}}`:s||function(t){return"undefined"!=typeof window&&t===window}(t)?`[${zt(t)}]`:`${c?"":e.printBasicPrototype||"Object"!==zt(t)?`${zt(t)} `:""}{${Z(t,e,n,r,i,oe)}}`}var ne={test:t=>t&&t instanceof Error,serialize(t,e,n,r,i,o){if(i.includes(t))return"[Circular]";i=[...i,t];const s=++r>e.maxDepth,{message:c,cause:a,...u}=t,l={message:c,...void 0!==a?{cause:a}:{},...t instanceof AggregateError?{errors:t.errors}:{},...u},f="Error"!==t.name?t.name:zt(t);return s?`[${f}]`:`${f} {${V(Object.entries(l).values(),e,n,r,i,o)}}`}};function re(t,e,n,r,i,o){let s;try{s=function(t){return null!=t.serialize}(t)?t.serialize(e,n,r,i,o,oe):t.print(e,(t=>oe(t,n,r,i,o)),(t=>{const e=r+n.indent;return e+t.replaceAll(Kt,`\n${e}`)}),{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(t){throw new Gt(t.message,t.stack)}if("string"!=typeof s)throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof s}".`);return s}function ie(t,e){for(const n of t)try{if(n.test(e))return n}catch(t){throw new Gt(t.message,t.stack)}return null}function oe(t,e,n,r,i,o){const s=ie(e.plugins,t);if(null!==s)return re(s,t,e,n,r,i);const c=te(t,e.printFunctionName,e.escapeRegex,e.escapeString);return null!==c?c:ee(t,e,n,r,i,o)}var se={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},ce=Object.keys(se),ae={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:se};function ue(t){return(null==t?void 0:t.printFunctionName)??ae.printFunctionName}function le(t){return(null==t?void 0:t.escapeRegex)??ae.escapeRegex}function fe(t){return(null==t?void 0:t.escapeString)??ae.escapeString}function he(t){return{callToJSON:(null==t?void 0:t.callToJSON)??ae.callToJSON,colors:(null==t?void 0:t.highlight)?ce.reduce(((t,e)=>{const n=se[e],r=n&&X[n];if(!r||"string"!=typeof r.close||"string"!=typeof r.open)throw new Error(`pretty-format: Option "theme" has a key "${e}" whose value "${n}" is undefined in ansi-styles.`);return t[e]=r,t}),Object.create(null)):ce.reduce(((t,e)=>(t[e]={close:"",open:""},t)),Object.create(null)),compareKeys:"function"==typeof(null==t?void 0:t.compareKeys)||null===(null==t?void 0:t.compareKeys)?t.compareKeys:ae.compareKeys,escapeRegex:le(t),escapeString:fe(t),indent:(null==t?void 0:t.min)?"":(e=(null==t?void 0:t.indent)??ae.indent,Array.from({length:e+1}).join(" ")),maxDepth:(null==t?void 0:t.maxDepth)??ae.maxDepth,maxWidth:(null==t?void 0:t.maxWidth)??ae.maxWidth,min:(null==t?void 0:t.min)??ae.min,plugins:(null==t?void 0:t.plugins)??ae.plugins,printBasicPrototype:(null==t?void 0:t.printBasicPrototype)??!0,printFunctionName:ue(t),spacingInner:(null==t?void 0:t.min)?" ":"\n",spacingOuter:(null==t?void 0:t.min)?"":"\n"};var e}function de(t,e){if(e&&(function(t){for(const e of Object.keys(t))if(!Object.prototype.hasOwnProperty.call(ae,e))throw new Error(`pretty-format: Unknown option "${e}".`);if(t.min&&void 0!==t.indent&&0!==t.indent)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}(e),e.plugins)){const n=ie(e.plugins,t);if(null!==n)return re(n,t,he(e),"",0,[])}const n=te(t,ue(e),le(e),fe(e));return null!==n?n:ee(t,he(e),"",0,[])}var pe={AsymmetricMatcher:tt,DOMCollection:rt,DOMElement:ht,Immutable:gt,ReactElement:Ft,ReactTestComponent:Jt,Error:ne};y(),y(),y();var be={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"]},me={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},ye="…";function ge(t,e){const n=be[me[e]]||be[e]||"";return n?`[${n[0]}m${String(t)}[${n[1]}m`:String(t)}function we(t,e,n=ye){t=String(t);const r=n.length,i=t.length;if(r>e&&i>r)return n;if(i>e&&i>r){let i=e-r;return i>0&&((o=t[i-1])>="\ud800"&&o<="\udbff")&&(i-=1),`${t.slice(0,i)}${n}`}var o;return t}function ve(t,e,n,r=", "){n=n||e.inspect;const i=t.length;if(0===i)return"";const o=e.truncate;let s="",c="",a="";for(let u=0;u<i;u+=1){const i=u+1===t.length,l=u+2===t.length;a=`${ye}(${t.length-u})`;const f=t[u];e.truncate=o-s.length-(i?0:r.length);const h=c||n(f,e)+(i?"":r),d=s.length+h.length,p=d+a.length;if(i&&d>o&&s.length+a.length<=o)break;if(!i&&!l&&p>o)break;if(c=i?"":n(t[u+1],e)+(l?"":r),!i&&l&&p>o&&d+c.length>o)break;if(s+=h,!i&&!l&&d+c.length>=o){a=`${ye}(${t.length-u-1})`;break}a=""}return`${s}${a}`}function $e([t,e],n){return n.truncate-=2,"string"==typeof t?t=function(t){return t.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?t:JSON.stringify(t).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}(t):"number"!=typeof t&&(t=`[${n.inspect(t,n)}]`),n.truncate-=t.length,`${t}: ${e=n.inspect(e,n)}`}y();function xe(t,e){const n=(t=>"function"==typeof Buffer&&t instanceof Buffer?"Buffer":t[Symbol.toStringTag]?t[Symbol.toStringTag]:t.constructor.name)(t);e.truncate-=n.length+4;const r=Object.keys(t).slice(t.length);if(!t.length&&!r.length)return`${n}[]`;let i="";for(let n=0;n<t.length;n++){const r=`${e.stylize(we(t[n],e.truncate),"number")}${n===t.length-1?"":", "}`;if(e.truncate-=r.length,t[n]!==t.length&&e.truncate<=3){i+=`${ye}(${t.length-t[n]+1})`;break}i+=r}let o="";return r.length&&(o=ve(r.map((e=>[e,t[e]])),e,$e)),`${n}[ ${i}${o?`, ${o}`:""} ]`}function Se(t,e){const n=t[Symbol.toStringTag]||"Function",r=t.name;return r?e.stylize(`[${n} ${we(r,e.truncate-11)}]`,"special"):e.stylize(`[${n}]`,"special")}function je([t,e],n){return n.truncate-=4,t=n.inspect(t,n),n.truncate-=t.length,`${t} => ${e=n.inspect(e,n)}`}y(),y(),y(),y();var Ee=Number.isNaN||(t=>t!=t);function Oe(t,e){return Ee(t)?e.stylize("NaN","number"):t===1/0?e.stylize("Infinity","number"):t===-1/0?e.stylize("-Infinity","number"):0===t?e.stylize(1/t==1/0?"+0":"-0","number"):e.stylize(we(String(t),e.truncate),"number")}function Te(t,e){let n=we(t.toString(),e.truncate-1);return n!==ye&&(n+="n"),e.stylize(n,"bigint")}y(),y(),y(),y();var ke=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),Ae={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"};function _e(t){return Ae[t]||`\\u${`0000${t.charCodeAt(0).toString(16)}`.slice(-4)}`}function Me(t,e){return ke.test(t)&&(t=t.replace(ke,_e)),e.stylize(`'${we(t,e.truncate-2)}'`,"string")}function Ce(t){return"description"in Symbol.prototype?t.description?`Symbol(${t.description})`:"Symbol()":t.toString()}y(),y();var Ie=()=>"Promise{…}";try{const{getPromiseDetails:t,kPending:e,kRejected:n}=process.binding("util");Array.isArray(t(Promise.resolve()))&&(Ie=(r,i)=>{const[o,s]=t(r);return o===e?"Promise{<pending>}":`Promise${o===n?"!":""}{${i.inspect(s,i)}}`})}catch(t){}var Ne=Ie;function Pe(t,e){const n=Object.getOwnPropertyNames(t),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[];if(0===n.length&&0===r.length)return"{}";if(e.truncate-=4,e.seen=e.seen||[],e.seen.includes(t))return"[Circular]";e.seen.push(t);const i=ve(n.map((e=>[e,t[e]])),e,$e),o=ve(r.map((e=>[e,t[e]])),e,$e);e.seen.pop();let s="";return i&&o&&(s=", "),`{ ${i}${s}${o} }`}y(),y();var Re=!("undefined"==typeof Symbol||!Symbol.toStringTag)&&Symbol.toStringTag;y(),y();var Be=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function De([t,e],n){return n.truncate-=3,e?`${n.stylize(String(t),"yellow")}=${n.stylize(`"${e}"`,"string")}`:`${n.stylize(String(t),"yellow")}`}function Le(t,e){return ve(t,e,Fe,"\n")}function Fe(t,e){const n=t.getAttributeNames(),r=t.tagName.toLowerCase(),i=e.stylize(`<${r}`,"special"),o=e.stylize(">","special"),s=e.stylize(`</${r}>`,"special");e.truncate-=2*r.length+5;let c="";n.length>0&&(c+=" ",c+=ve(n.map((e=>[e,t.getAttribute(e)])),e,De," ")),e.truncate-=c.length;const a=e.truncate;let u=Le(t.children,e);return u&&u.length>a&&(u=`${ye}(${t.children.length})`),`${i}${c}${o}${u}${s}`}y();var qe="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("chai/inspect"):"@@chai/inspect",Je=!1;try{const t=require("util");Je=!!t.inspect&&t.inspect.custom}catch(t){Je=!1}var Ue=new WeakMap,We={},He={undefined:(t,e)=>e.stylize("undefined","undefined"),null:(t,e)=>e.stylize("null","null"),boolean:(t,e)=>e.stylize(String(t),"boolean"),Boolean:(t,e)=>e.stylize(String(t),"boolean"),number:Oe,Number:Oe,bigint:Te,BigInt:Te,string:Me,String:Me,function:Se,Function:Se,symbol:Ce,Symbol:Ce,Array:function(t,e){const n=Object.keys(t).slice(t.length);if(!t.length&&!n.length)return"[]";e.truncate-=4;const r=ve(t,e);e.truncate-=r.length;let i="";return n.length&&(i=ve(n.map((e=>[e,t[e]])),e,$e)),`[ ${r}${i?`, ${i}`:""} ]`},Date:function(t,e){const n=t.toJSON();if(null===n)return"Invalid Date";const r=n.split("T"),i=r[0];return e.stylize(`${i}T${we(r[1],e.truncate-i.length-1)}`,"date")},Map:function(t,e){return 0===t.size?"Map{}":(e.truncate-=7,`Map{ ${ve(function(t){const e=[];return t.forEach(((t,n)=>{e.push([n,t])})),e}(t),e,je)} }`)},Set:function(t,e){return 0===t.size?"Set{}":(e.truncate-=7,`Set{ ${ve(function(t){const e=[];return t.forEach((t=>{e.push(t)})),e}(t),e)} }`)},RegExp:function(t,e){const n=t.toString().split("/")[2],r=e.truncate-(2+n.length),i=t.source;return e.stylize(`/${we(i,r)}/${n}`,"regexp")},Promise:Ne,WeakSet:(t,e)=>e.stylize("WeakSet{…}","special"),WeakMap:(t,e)=>e.stylize("WeakMap{…}","special"),Arguments:function(t,e){return 0===t.length?"Arguments[]":(e.truncate-=13,`Arguments[ ${ve(t,e)} ]`)},Int8Array:xe,Uint8Array:xe,Uint8ClampedArray:xe,Int16Array:xe,Uint16Array:xe,Int32Array:xe,Uint32Array:xe,Float32Array:xe,Float64Array:xe,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:function(t,e){const n=Object.getOwnPropertyNames(t).filter((t=>-1===Be.indexOf(t))),r=t.name;e.truncate-=r.length;let i="";if("string"==typeof t.message?i=we(t.message,e.truncate):n.unshift("message"),i=i?`: ${i}`:"",e.truncate-=i.length+5,e.seen=e.seen||[],e.seen.includes(t))return"[Circular]";e.seen.push(t);const o=ve(n.map((e=>[e,t[e]])),e,$e);return`${r}${i}${o?` { ${o} }`:""}`},HTMLCollection:Le,NodeList:Le},Xe=Object.prototype.toString;function ze(t,e={}){const n=function({showHidden:t=!1,depth:e=2,colors:n=!1,customInspect:r=!0,showProxy:i=!1,maxArrayLength:o=1/0,breakLength:s=1/0,seen:c=[],truncate:a=1/0,stylize:u=String}={},l){const f={showHidden:Boolean(t),depth:Number(e),colors:Boolean(n),customInspect:Boolean(r),showProxy:Boolean(i),maxArrayLength:Number(o),breakLength:Number(s),truncate:Number(a),seen:c,inspect:l,stylize:u};return f.colors&&(f.stylize=ge),f}(e,ze),{customInspect:r}=n;let i=null===t?"null":typeof t;if("object"===i&&(i=Xe.call(t).slice(8,-1)),i in He)return He[i](t,n);if(r&&t){const e=((t,e,n)=>qe in t&&"function"==typeof t[qe]?t[qe](e):Je&&Je in t&&"function"==typeof t[Je]?t[Je](e.depth,e):"inspect"in t&&"function"==typeof t.inspect?t.inspect(e.depth,e):"constructor"in t&&Ue.has(t.constructor)?Ue.get(t.constructor)(t,e):We[n]?We[n](t,e):"")(t,n,i);if(e)return"string"==typeof e?e:ze(e,n)}const o=!!t&&Object.getPrototypeOf(t);return o===Object.prototype||null===o?Pe(t,n):t&&"function"==typeof HTMLElement&&t instanceof HTMLElement?Fe(t,n):"constructor"in t?t.constructor!==Object?function(t,e){let n="";return Re&&Re in t&&(n=t[Re]),n=n||t.constructor.name,n&&"_class"!==n||(n="<Anonymous Class>"),e.truncate-=n.length,`${n}${Pe(t,e)}`}(t,n):Pe(t,n):t===Object(t)?Pe(t,n):n.stylize(String(t),i)}var{AsymmetricMatcher:Ve,DOMCollection:Ke,DOMElement:Ge,Immutable:Ze,ReactElement:Ye,ReactTestComponent:Qe}=pe,tn=[Qe,Ye,Ge,Ke,Ze,Ve];function en(t,e=10,{maxLength:n,...r}={}){const i=n??1e4;let o;try{o=de(t,{maxDepth:e,escapeString:!1,plugins:tn,...r})}catch{o=de(t,{callToJSON:!1,maxDepth:e,escapeString:!1,plugins:tn,...r})}return o.length>=i&&e>1?en(t,Math.floor(Math.min(e,Number.MAX_SAFE_INTEGER)/2),{maxLength:n,...r}):o}var nn=/%[sdjifoOc%]/g;function rn(...t){if("string"!=typeof t[0]){const e=[];for(let n=0;n<t.length;n++)e.push(on(t[n],{depth:0,colors:!1}));return e.join(" ")}const e=t.length;let n=1;const r=t[0];let i=String(r).replace(nn,(r=>{if("%%"===r)return"%";if(n>=e)return r;switch(r){case"%s":{const e=t[n++];return"bigint"==typeof e?`${e.toString()}n`:"number"==typeof e&&0===e&&1/e<0?"-0":"object"==typeof e&&null!==e?"function"==typeof e.toString&&e.toString!==Object.prototype.toString?e.toString():on(e,{depth:0,colors:!1}):String(e)}case"%d":{const e=t[n++];return"bigint"==typeof e?`${e.toString()}n`:Number(e).toString()}case"%i":{const e=t[n++];return"bigint"==typeof e?`${e.toString()}n`:Number.parseInt(String(e)).toString()}case"%f":return Number.parseFloat(String(t[n++])).toString();case"%o":return on(t[n++],{showHidden:!0,showProxy:!0});case"%O":return on(t[n++]);case"%c":return n++,"";case"%j":try{return JSON.stringify(t[n++])}catch(t){const e=t.message;if(e.includes("circular structure")||e.includes("cyclic structures")||e.includes("cyclic object"))return"[Circular]";throw t}default:return r}}));for(let r=t[n];n<e;r=t[++n])i+=null===r||"object"!=typeof r?` ${r}`:` ${on(r)}`;return i}function on(t,e={}){return 0===e.truncate&&(e.truncate=Number.POSITIVE_INFINITY),ze(t,e)}function sn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function cn(t,e,n){const r=typeof t;if(!n.includes(r))throw new TypeError(`${e} value must be ${n.join(" or ")}, received "${r}"`)}function an(t){return null==t&&(t=[]),Array.isArray(t)?t:[t]}function un(t){return null!=t&&"object"==typeof t&&!Array.isArray(t)}function ln(t){return Object.prototype.toString.apply(t).slice(8,-1)}function fn(t){const e=new Set;return function(t){return t===Object.prototype||t===Function.prototype||t===RegExp.prototype}(t)?[]:(function(t,e){const n="function"==typeof e?e:t=>e.add(t);Object.getOwnPropertyNames(t).forEach(n),Object.getOwnPropertySymbols(t).forEach(n)}(t,e),Array.from(e))}y();var hn,dn,pn={forceWritable:!1};function bn(t,e=pn){return mn(t,new WeakMap,e)}function mn(t,e,n=pn){let r,i;if(e.has(t))return e.get(t);if(Array.isArray(t)){for(i=Array.from({length:r=t.length}),e.set(t,i);r--;)i[r]=mn(t[r],e,n);return i}if("[object Object]"===Object.prototype.toString.call(t)){i=Object.create(Object.getPrototypeOf(t)),e.set(t,i);const r=fn(t);for(const o of r){const r=Object.getOwnPropertyDescriptor(t,o);if(!r)continue;const s=mn(t[o],e,n);n.forceWritable?Object.defineProperty(i,o,{enumerable:r.enumerable,configurable:!0,writable:!0,value:s}):"get"in r?Object.defineProperty(i,o,{...r,get:()=>s}):Object.defineProperty(i,o,{...r,value:s})}return i}return t}function yn(){let t=null,e=null;const n=new Promise(((n,r)=>{t=n,e=r}));return n.resolve=t,n.reject=e,n}dn||(dn=1,_n=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/uy,An=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,gn=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/uy,Cn=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,kn=/(?: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,In=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,Rn=/[\t\v\f\ufeff\p{Zs}]+/uy,En=/\r?\n|[\r\u2028\u2029]/y,On=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,Mn=/\/\/.*/y,vn=/[<>.:={}]|\/(?![\/*])/y,wn=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/uy,$n=/(['"])(?:(?!\1)[^])*(\1)?/y,xn=/[^<>{}]+/y,Pn=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,Nn=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,Sn=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,jn=/^(?:return|throw|yield)$/,Tn=RegExp(En.source),hn=function*(t,{jsx:e=!1}={}){var n,r,i,o,s,c,a,u,l,f,h,d,p,b;for(({length:c}=t),o=0,s="",b=[{tag:"JS"}],n=[],h=0,d=!1;o<c;){switch((u=b[b.length-1]).tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if("/"===t[o]&&(Pn.test(s)||Sn.test(s))&&(_n.lastIndex=o,a=_n.exec(t))){o=_n.lastIndex,s=a[0],d=!0,yield{type:"RegularExpressionLiteral",value:a[0],closed:void 0!==a[1]&&"\\"!==a[1]};continue}if(An.lastIndex=o,a=An.exec(t)){switch(p=a[0],l=An.lastIndex,f=p,p){case"(":"?NonExpressionParenKeyword"===s&&b.push({tag:"JSNonExpressionParen",nesting:h}),h++,d=!1;break;case")":h--,d=!0,"JSNonExpressionParen"===u.tag&&h===u.nesting&&(b.pop(),f="?NonExpressionParenEnd",d=!1);break;case"{":An.lastIndex=0,i=!Nn.test(s)&&(Pn.test(s)||Sn.test(s)),n.push(i),d=!1;break;case"}":switch(u.tag){case"InterpolationInTemplate":if(n.length===u.nesting){In.lastIndex=o,a=In.exec(t),o=In.lastIndex,s=a[0],"${"===a[1]?(s="?InterpolationInTemplate",d=!1,yield{type:"TemplateMiddle",value:a[0]}):(b.pop(),d=!0,yield{type:"TemplateTail",value:a[0],closed:"`"===a[1]});continue}break;case"InterpolationInJSX":if(n.length===u.nesting){b.pop(),o+=1,s="}",yield{type:"JSXPunctuator",value:"}"};continue}}f=(d=n.pop())?"?ExpressionBraceEnd":"}";break;case"]":d=!0;break;case"++":case"--":f=d?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(e&&(Pn.test(s)||Sn.test(s))){b.push({tag:"JSXTag"}),o+=1,s="<",yield{type:"JSXPunctuator",value:p};continue}d=!1;break;default:d=!1}o=l,s=f,yield{type:"Punctuator",value:p};continue}if(gn.lastIndex=o,a=gn.exec(t)){switch(o=gn.lastIndex,f=a[0],a[0]){case"for":case"if":case"while":case"with":"."!==s&&"?."!==s&&(f="?NonExpressionParenKeyword")}s=f,d=!Sn.test(a[0]),yield{type:"#"===a[1]?"PrivateIdentifier":"IdentifierName",value:a[0]};continue}if(Cn.lastIndex=o,a=Cn.exec(t)){o=Cn.lastIndex,s=a[0],d=!0,yield{type:"StringLiteral",value:a[0],closed:void 0!==a[2]};continue}if(kn.lastIndex=o,a=kn.exec(t)){o=kn.lastIndex,s=a[0],d=!0,yield{type:"NumericLiteral",value:a[0]};continue}if(In.lastIndex=o,a=In.exec(t)){o=In.lastIndex,s=a[0],"${"===a[1]?(s="?InterpolationInTemplate",b.push({tag:"InterpolationInTemplate",nesting:n.length}),d=!1,yield{type:"TemplateHead",value:a[0]}):(d=!0,yield{type:"NoSubstitutionTemplate",value:a[0],closed:"`"===a[1]});continue}break;case"JSXTag":case"JSXTagEnd":if(vn.lastIndex=o,a=vn.exec(t)){switch(o=vn.lastIndex,f=a[0],a[0]){case"<":b.push({tag:"JSXTag"});break;case">":b.pop(),"/"===s||"JSXTagEnd"===u.tag?(f="?JSX",d=!0):b.push({tag:"JSXChildren"});break;case"{":b.push({tag:"InterpolationInJSX",nesting:n.length}),f="?InterpolationInJSX",d=!1;break;case"/":"<"===s&&(b.pop(),"JSXChildren"===b[b.length-1].tag&&b.pop(),b.push({tag:"JSXTagEnd"}))}s=f,yield{type:"JSXPunctuator",value:a[0]};continue}if(wn.lastIndex=o,a=wn.exec(t)){o=wn.lastIndex,s=a[0],yield{type:"JSXIdentifier",value:a[0]};continue}if($n.lastIndex=o,a=$n.exec(t)){o=$n.lastIndex,s=a[0],yield{type:"JSXString",value:a[0],closed:void 0!==a[2]};continue}break;case"JSXChildren":if(xn.lastIndex=o,a=xn.exec(t)){o=xn.lastIndex,s=a[0],yield{type:"JSXText",value:a[0]};continue}switch(t[o]){case"<":b.push({tag:"JSXTag"}),o++,s="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":b.push({tag:"InterpolationInJSX",nesting:n.length}),o++,s="?InterpolationInJSX",d=!1,yield{type:"JSXPunctuator",value:"{"};continue}}Rn.lastIndex=o,(a=Rn.exec(t))?(o=Rn.lastIndex,yield{type:"WhiteSpace",value:a[0]}):(En.lastIndex=o,(a=En.exec(t))?(o=En.lastIndex,d=!1,jn.test(s)&&(s="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:a[0]}):(On.lastIndex=o,(a=On.exec(t))?(o=On.lastIndex,Tn.test(a[0])&&(d=!1,jn.test(s)&&(s="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:a[0],closed:void 0!==a[1]}):(Mn.lastIndex=o,(a=Mn.exec(t))?(o=Mn.lastIndex,d=!1,yield{type:"SingleLineComment",value:a[0]}):(o+=(r=String.fromCodePoint(t.codePointAt(o))).length,s=r,d=!1,yield{type:u.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:r}))))}});var gn,wn,vn,$n,xn,Sn,jn,En,On,Tn,kn,An,_n,Mn,Cn,In,Nn,Pn,Rn,Bn=["implements","interface","let","package","private","protected","public","static","yield"],Dn=(new Set(["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"]),new Set(Bn),Symbol("vitest:SAFE_TIMERS"));function Ln(){const{setTimeout:t,setInterval:e,clearInterval:n,clearTimeout:r,setImmediate:i,clearImmediate:o,queueMicrotask:s}=globalThis[Dn]||globalThis,{nextTick:c}=globalThis[Dn]||globalThis.process||{nextTick:t=>t()};return{nextTick:c,setTimeout:t,setInterval:e,clearInterval:n,clearTimeout:r,setImmediate:i,clearImmediate:o,queueMicrotask:s}}y();var Fn=-1,qn=class{constructor(t,e){m(this,0),m(this,1),this[0]=t,this[1]=e}};function Jn(t,e){if(!t||!e||t.charAt(0)!==e.charAt(0))return 0;let n=0,r=Math.min(t.length,e.length),i=r,o=0;for(;n<i;)t.substring(o,i)===e.substring(o,i)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return i}function Un(t,e){if(!t||!e||t.charAt(t.length-1)!==e.charAt(e.length-1))return 0;let n=0,r=Math.min(t.length,e.length),i=r,o=0;for(;n<i;)t.substring(t.length-i,t.length-o)===e.substring(e.length-i,e.length-o)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return i}function Wn(t,e){const n=t.length,r=e.length;if(0===n||0===r)return 0;n>r?t=t.substring(n-r):n<r&&(e=e.substring(0,n));const i=Math.min(n,r);if(t===e)return i;let o=0,s=1;for(;;){const n=t.substring(i-s),r=e.indexOf(n);if(-1===r)return o;s+=r,0!==r&&t.substring(i-s)!==e.substring(0,s)||(o=s,s++)}}function Hn(t){let e=!1;const n=[];let r=0,i=null,o=0,s=0,c=0,a=0,u=0;for(;o<t.length;)0===t[o][0]?(n[r++]=o,s=a,c=u,a=0,u=0,i=t[o][1]):(1===t[o][0]?a+=t[o][1].length:u+=t[o][1].length,i&&i.length<=Math.max(s,c)&&i.length<=Math.max(a,u)&&(t.splice(n[r-1],0,new qn(Fn,i)),t[n[r-1]+1][0]=1,r--,r--,o=r>0?n[r-1]:-1,s=0,c=0,a=0,u=0,i=null,e=!0)),o++;for(e&&Zn(t),function(t){let e=1;for(;e<t.length-1;){if(0===t[e-1][0]&&0===t[e+1][0]){let n=t[e-1][1],r=t[e][1],i=t[e+1][1];const o=Un(n,r);if(o){const t=r.substring(r.length-o);n=n.substring(0,n.length-o),r=t+r.substring(0,r.length-o),i=t+i}let s=n,c=r,a=i,u=Yn(n,r)+Yn(r,i);for(;r.charAt(0)===i.charAt(0);){n+=r.charAt(0),r=r.substring(1)+i.charAt(0),i=i.substring(1);const t=Yn(n,r)+Yn(r,i);t>=u&&(u=t,s=n,c=r,a=i)}t[e-1][1]!==s&&(s?t[e-1][1]=s:(t.splice(e-1,1),e--),t[e][1]=c,a?t[e+1][1]=a:(t.splice(e+1,1),e--))}e++}}(t),o=1;o<t.length;){if(t[o-1][0]===Fn&&1===t[o][0]){const e=t[o-1][1],n=t[o][1],r=Wn(e,n),i=Wn(n,e);r>=i?(r>=e.length/2||r>=n.length/2)&&(t.splice(o,0,new qn(0,n.substring(0,r))),t[o-1][1]=e.substring(0,e.length-r),t[o+1][1]=n.substring(r),o++):(i>=e.length/2||i>=n.length/2)&&(t.splice(o,0,new qn(0,e.substring(0,i))),t[o-1][0]=1,t[o-1][1]=n.substring(0,n.length-i),t[o+1][0]=Fn,t[o+1][1]=e.substring(i),o++),o++}o++}}var Xn=/[^a-z0-9]/i,zn=/\s/,Vn=/[\r\n]/,Kn=/\n\r?\n$/,Gn=/^\r?\n\r?\n/;function Zn(t){t.push(new qn(0,""));let e,n=0,r=0,i=0,o="",s="";for(;n<t.length;)switch(t[n][0]){case 1:i++,s+=t[n][1],n++;break;case Fn:r++,o+=t[n][1],n++;break;case 0:r+i>1?(0!==r&&0!==i&&(e=Jn(s,o),0!==e&&(n-r-i>0&&0===t[n-r-i-1][0]?t[n-r-i-1][1]+=s.substring(0,e):(t.splice(0,0,new qn(0,s.substring(0,e))),n++),s=s.substring(e),o=o.substring(e)),e=Un(s,o),0!==e&&(t[n][1]=s.substring(s.length-e)+t[n][1],s=s.substring(0,s.length-e),o=o.substring(0,o.length-e))),n-=r+i,t.splice(n,r+i),o.length&&(t.splice(n,0,new qn(Fn,o)),n++),s.length&&(t.splice(n,0,new qn(1,s)),n++),n++):0!==n&&0===t[n-1][0]?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,i=0,r=0,o="",s=""}""===t[t.length-1][1]&&t.pop();let c=!1;for(n=1;n<t.length-1;)0===t[n-1][0]&&0===t[n+1][0]&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)===t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),c=!0):t[n][1].substring(0,t[n+1][1].length)===t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),c=!0)),n++;c&&Zn(t)}function Yn(t,e){if(!t||!e)return 6;const n=t.charAt(t.length-1),r=e.charAt(0),i=n.match(Xn),o=r.match(Xn),s=i&&n.match(zn),c=o&&r.match(zn),a=s&&n.match(Vn),u=c&&r.match(Vn),l=a&&t.match(Kn),f=u&&e.match(Gn);return l||f?5:a||u?4:i&&!s&&c?3:s||c?2:i||o?1:0}var Qn,tr="Compared values have no visual difference.",er={};var nr=sn(function(){if(Qn)return er;Qn=1,Object.defineProperty(er,"__esModule",{value:!0}),er.default=function(t,i,o,s){u("aLength",t),u("bLength",i),l("isCommon",o),l("foundSubsequence",s);const c=n(0,t,0,i,o);0!==c&&s(c,0,0);if(t!==c||i!==c){const n=c,u=c,l=r(n,t-1,u,i-1,o),f=t-l,h=i-l,d=c+l;if(t!==d&&i!==d){a(0,n,f,u,h,!1,[{foundSubsequence:s,isCommon:o}],[e],[e],{aCommonFollowing:e,aCommonPreceding:e,aEndPreceding:e,aStartFollowing:e,bCommonFollowing:e,bCommonPreceding:e,bEndPreceding:e,bStartFollowing:e,nChangeFollowing:e,nChangePreceding:e,nCommonFollowing:e,nCommonPreceding:e})}0!==l&&s(l,f,h)}};const t="diff-sequences",e=0,n=(t,e,n,r,i)=>{let o=0;for(;t<e&&n<r&&i(t,n);)t+=1,n+=1,o+=1;return o},r=(t,e,n,r,i)=>{let o=0;for(;t<=e&&n<=r&&i(e,r);)e-=1,r-=1,o+=1;return o},i=(t,e,r,i,o,s,c)=>{let a=0,u=-t,l=s[a],f=l;s[a]+=n(l+1,e,i+l-u+1,r,o);const h=t<c?t:c;for(a+=1,u+=2;a<=h;a+=1,u+=2){if(a!==t&&f<s[a])l=s[a];else if(l=f+1,e<=l)return a-1;f=s[a],s[a]=l+n(l+1,e,i+l-u+1,r,o)}return c},o=(t,e,n,i,o,s,c)=>{let a=0,u=t,l=s[a],f=l;s[a]-=r(e,l-1,n,i+l-u-1,o);const h=t<c?t:c;for(a+=1,u-=2;a<=h;a+=1,u-=2){if(a!==t&&s[a]<f)l=s[a];else if(l=f-1,l<e)return a-1;f=s[a],s[a]=l-r(e,l-1,n,i+l-u-1,o)}return c},s=(t,i,o,s,c,a,u,l,f,h,d)=>{const p=s-i,b=c-s-(o-i),m=-b-(t-1),y=t-1-b;let g=e;const w=t<l?t:l;for(let e=0,l=-t;e<=w;e+=1,l+=2){const w=0===e||e!==t&&g<u[e],v=w?u[e]:g,$=w?v:v+1,x=p+$-l,S=n($+1,o,x+1,c,a),j=$+S;if(g=u[e],u[e]=j,m<=l&&l<=y){const e=(t-1-(l+b))/2;if(e<=h&&f[e]-1<=j){const e=p+v-(w?l+1:l-1),n=r(i,v,s,e,a),u=v-n+1,f=e-n+1;d.nChangePreceding=t-1,t-1==u+f-i-s?(d.aEndPreceding=i,d.bEndPreceding=s):(d.aEndPreceding=u,d.bEndPreceding=f),d.nCommonPreceding=n,0!==n&&(d.aCommonPreceding=u,d.bCommonPreceding=f),d.nCommonFollowing=S,0!==S&&(d.aCommonFollowing=$+1,d.bCommonFollowing=x+1);const h=j+1,b=x+S+1;return d.nChangeFollowing=t-1,t-1==o+c-h-b?(d.aStartFollowing=o,d.bStartFollowing=c):(d.aStartFollowing=h,d.bStartFollowing=b),!0}}}return!1},c=(t,i,o,s,c,a,u,l,f,h,d)=>{const p=c-o,b=c-s-(o-i),m=b-t,y=b+t;let g=e;const w=t<h?t:h;for(let e=0,h=t;e<=w;e+=1,h-=2){const w=0===e||e!==t&&f[e]<g,v=w?f[e]:g,$=w?v:v-1,x=p+$-h,S=r(i,$-1,s,x-1,a),j=$-S;if(g=f[e],f[e]=j,m<=h&&h<=y){const e=(t+(h-b))/2;if(e<=l&&j-1<=u[e]){const e=x-S;if(d.nChangePreceding=t,t===j+e-i-s?(d.aEndPreceding=i,d.bEndPreceding=s):(d.aEndPreceding=j,d.bEndPreceding=e),d.nCommonPreceding=S,0!==S&&(d.aCommonPreceding=j,d.bCommonPreceding=e),d.nChangeFollowing=t-1,1===t)d.nCommonFollowing=0,d.aStartFollowing=o,d.bStartFollowing=c;else{const e=p+v-(w?h-1:h+1),r=n(v,o,e,c,a);d.nCommonFollowing=r,0!==r&&(d.aCommonFollowing=v,d.bCommonFollowing=e);const i=v+r,s=e+r;t-1==o+c-i-s?(d.aStartFollowing=o,d.bStartFollowing=c):(d.aStartFollowing=i,d.bStartFollowing=s)}return!0}}}return!1},a=(e,n,r,u,l,f,h,d,p,b)=>{if(l-u<r-n){if((f=!f)&&1===h.length){const{foundSubsequence:t,isCommon:e}=h[0];h[1]={foundSubsequence:(e,n,r)=>{t(e,r,n)},isCommon:(t,n)=>e(n,t)}}const t=n,e=r;n=u,r=l,u=t,l=e}const{foundSubsequence:m,isCommon:y}=h[f?1:0];((e,n,r,a,u,l,f,h,d)=>{const p=a-n,b=u-r,m=r-n,y=u-a,g=y-m;let w=m,v=m;if(f[0]=n-1,h[0]=r,g%2==0){const t=(e||g)/2,s=(m+y)/2;for(let e=1;e<=s;e+=1)if(w=i(e,r,u,p,l,f,w),e<t)v=o(e,n,a,b,l,h,v);else if(c(e,n,r,a,u,l,f,w,h,v,d))return}else{const t=((e||g)+1)/2,c=(m+y+1)/2;let $=1;for(w=i($,r,u,p,l,f,w),$+=1;$<=c;$+=1)if(v=o($-1,n,a,b,l,h,v),$<t)w=i($,r,u,p,l,f,w);else if(s($,n,r,a,u,l,f,w,h,v,d))return}throw new Error(`${t}: no overlap aStart=${n} aEnd=${r} bStart=${a} bEnd=${u}`)})(e,n,r,u,l,y,d,p,b);const{nChangePreceding:g,aEndPreceding:w,bEndPreceding:v,nCommonPreceding:$,aCommonPreceding:x,bCommonPreceding:S,nCommonFollowing:j,aCommonFollowing:E,bCommonFollowing:O,nChangeFollowing:T,aStartFollowing:k,bStartFollowing:A}=b;n<w&&u<v&&a(g,n,w,u,v,f,h,d,p,b),0!==$&&m($,x,S),0!==j&&m(j,E,O),k<r&&A<l&&a(T,k,r,A,l,f,h,d,p,b)},u=(e,n)=>{if("number"!=typeof n)throw new TypeError(`${t}: ${e} typeof ${typeof n} is not a number`);if(!Number.isSafeInteger(n))throw new RangeError(`${t}: ${e} value ${n} is not a safe integer`);if(n<0)throw new RangeError(`${t}: ${e} value ${n} is a negative integer`)},l=(e,n)=>{const r=typeof n;if("function"!==r)throw new TypeError(`${t}: ${e} typeof ${r} is not a function`)};return er}());function rr(t,e,n,r,i,o){return 0!==t.length?n(`${r} ${function(t,e){return t.replace(/\s+$/,(t=>e(t)))}(t,i)}`):" "!==r?n(r):e&&0!==o.length?n(`${r} ${o}`):""}function ir(t,e,{aColor:n,aIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:o}){return rr(t,e,n,r,i,o)}function or(t,e,{bColor:n,bIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:o}){return rr(t,e,n,r,i,o)}function sr(t,e,{commonColor:n,commonIndicator:r,commonLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:o}){return rr(t,e,n,r,i,o)}function cr(t,e,n,r,{patchColor:i}){return i(`@@ -${t+1},${e-t} +${n+1},${r-n} @@`)}var ar=t=>t;function ur(t={}){return{aAnnotation:"Expected",aColor:X.green,aIndicator:"-",bAnnotation:"Received",bColor:X.red,bIndicator:"+",changeColor:X.inverse,changeLineTrailingSpaceColor:ar,commonColor:X.dim,commonIndicator:" ",commonLineTrailingSpaceColor:ar,compareKeys:void 0,contextLines:5,emptyFirstOrLastLinePlaceholder:"",expand:!0,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:X.yellow,printBasicPrototype:!1,truncateThreshold:0,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:ar,...t,compareKeys:(n=t.compareKeys,n&&"function"==typeof n?n:void 0),contextLines:(e=t.contextLines,"number"==typeof e&&Number.isSafeInteger(e)&&e>=0?e:5)};var e,n}function lr(t){return 1===t.length&&0===t[0].length}function fr(t,e,n){return function({aAnnotation:t,aColor:e,aIndicator:n,bAnnotation:r,bColor:i,bIndicator:o,includeChangeCounts:s,omitAnnotationLines:c},a){if(c)return"";let u="",l="";if(s){const e=String(a.a),i=String(a.b),s=r.length-t.length,c=" ".repeat(Math.max(0,s)),f=" ".repeat(Math.max(0,-s)),h=i.length-e.length;u=`${c} ${n} ${" ".repeat(Math.max(0,h))}${e}`,l=`${f} ${o} ${" ".repeat(Math.max(0,-h))}${i}`}const f=`${o} ${r}${l}`;return`${e(`${n} ${t}${u}`)}\n${i(f)}\n\n`}(n,function(t){let e=0,n=0;return t.forEach((t=>{switch(t[0]){case Fn:e+=1;break;case 1:n+=1}})),{a:e,b:n}}(t))+(n.expand?function(t,e){return t.map(((t,n,r)=>{const i=t[1],o=0===n||n===r.length-1;switch(t[0]){case Fn:return ir(i,o,e);case 1:return or(i,o,e);default:return sr(i,o,e)}})).join("\n")}(t,n):function(t,e){const n=t.length,r=e.contextLines,i=r+r;let o=n,s=!1,c=0,a=0;for(;a!==n;){const e=a;for(;a!==n&&0===t[a][0];)a+=1;if(e!==a)if(0===e)a>r&&(o-=a-r,s=!0);else if(a===n){const t=a-e;t>r&&(o-=t-r,s=!0)}else{const t=a-e;t>i&&(o-=t-i,c+=1)}for(;a!==n&&0!==t[a][0];)a+=1}const u=0!==c||s;0!==c?o+=c+1:s&&(o+=1);const l=o-1,f=[];let h=0;u&&f.push("");let d=0,p=0,b=0,m=0;const y=t=>{const n=f.length;f.push(sr(t,0===n||n===l,e)),b+=1,m+=1},g=t=>{const n=f.length;f.push(ir(t,0===n||n===l,e)),b+=1},w=t=>{const n=f.length;f.push(or(t,0===n||n===l,e)),m+=1};for(a=0;a!==n;){let o=a;for(;a!==n&&0===t[a][0];)a+=1;if(o!==a)if(0===o){a>r&&(o=a-r,d=o,p=o,b=d,m=p);for(let e=o;e!==a;e+=1)y(t[e][1])}else if(a===n){const e=a-o>r?o+r:a;for(let n=o;n!==e;n+=1)y(t[n][1])}else{const n=a-o;if(n>i){const s=o+r;for(let e=o;e!==s;e+=1)y(t[e][1]);f[h]=cr(d,b,p,m,e),h=f.length,f.push("");const c=n-i;d=b+c,p=m+c,b=d,m=p;for(let e=a-r;e!==a;e+=1)y(t[e][1])}else for(let e=o;e!==a;e+=1)y(t[e][1])}for(;a!==n&&t[a][0]===Fn;)g(t[a][1]),a+=1;for(;a!==n&&1===t[a][0];)w(t[a][1]),a+=1}return u&&(f[h]=cr(d,b,p,m,e)),f.join("\n")}(t,n))+(e?n.truncateAnnotationColor(`\n${n.truncateAnnotation}`):"")}function hr(t,e,n){const r=ur(n),[i,o]=dr(lr(t)?[]:t,lr(e)?[]:e,r);return fr(i,o,r)}function dr(t,e,n){const r=(null==n?void 0:n.truncateThreshold)??!1,i=Math.max(Math.floor((null==n?void 0:n.truncateThreshold)??0),0),o=r?Math.min(t.length,i):t.length,s=r?Math.min(e.length,i):e.length,c=o!==t.length||s!==e.length,a=[];let u=0,l=0;for(nr(o,s,((n,r)=>t[n]===e[r]),((n,r,i)=>{for(;u!==r;u+=1)a.push(new qn(Fn,t[u]));for(;l!==i;l+=1)a.push(new qn(1,e[l]));for(;0!==n;n-=1,u+=1,l+=1)a.push(new qn(0,e[l]))}));u!==o;u+=1)a.push(new qn(Fn,t[u]));for(;l!==s;l+=1)a.push(new qn(1,e[l]));return[a,c]}function pr(t){if(void 0===t)return"undefined";if(null===t)return"null";if(Array.isArray(t))return"array";if("boolean"==typeof t)return"boolean";if("function"==typeof t)return"function";if("number"==typeof t)return"number";if("string"==typeof t)return"string";if("bigint"==typeof t)return"bigint";if("object"==typeof t){if(null!=t){if(t.constructor===RegExp)return"regexp";if(t.constructor===Map)return"map";if(t.constructor===Set)return"set";if(t.constructor===Date)return"date"}return"object"}if("symbol"==typeof t)return"symbol";throw new Error(`value of unknown type: ${t}`)}function br(t){return t.includes("\r\n")?"\r\n":"\n"}var mr=class{constructor(t,e){m(this,"op"),m(this,"line"),m(this,"lines"),m(this,"changeColor"),this.op=t,this.line=[],this.lines=[],this.changeColor=e}pushSubstring(t){this.pushDiff(new qn(this.op,t))}pushLine(){var t,e,n;this.lines.push(1!==this.line.length?new qn(this.op,(t=this.op,e=this.line,n=this.changeColor,e.reduce(((e,r)=>e+(0===r[0]?r[1]:r[0]===t&&0!==r[1].length?n(r[1]):"")),""))):this.line[0][0]===this.op?this.line[0]:new qn(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return 0===this.line.length}pushDiff(t){this.line.push(t)}align(t){const e=t[1];if(e.includes("\n")){const t=e.split("\n"),n=t.length-1;t.forEach(((t,e)=>{e<n?(this.pushSubstring(t),this.pushLine()):0!==t.length&&this.pushSubstring(t)}))}else this.pushDiff(t)}moveLinesTo(t){this.isLineEmpty()||this.pushLine(),t.push(...this.lines),this.lines.length=0}},yr=class{constructor(t,e){m(this,"deleteBuffer"),m(this,"insertBuffer"),m(this,"lines"),this.deleteBuffer=t,this.insertBuffer=e,this.lines=[]}pushDiffCommonLine(t){this.lines.push(t)}pushDiffChangeLines(t){const e=0===t[1].length;e&&!this.deleteBuffer.isLineEmpty()||this.deleteBuffer.pushDiff(t),e&&!this.insertBuffer.isLineEmpty()||this.insertBuffer.pushDiff(t)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(t){const e=t[0],n=t[1];if(n.includes("\n")){const t=n.split("\n"),r=t.length-1;t.forEach(((t,n)=>{if(0===n){const n=new qn(e,t);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(n)):(this.pushDiffChangeLines(n),this.flushChangeLines())}else n<r?this.pushDiffCommonLine(new qn(e,t)):0!==t.length&&this.pushDiffChangeLines(new qn(e,t))}))}else this.pushDiffChangeLines(t)}getLines(){return this.flushChangeLines(),this.lines}};function gr(t,e,n){if(t!==e&&0!==t.length&&0!==e.length){const r=t.includes("\n")||e.includes("\n"),[i,o]=wr(r?`${t}\n`:t,r?`${e}\n`:e,!0,n);if(function(t,e){if(e){const e=t.length-1;return t.some(((t,n)=>0===t[0]&&(n!==e||"\n"!==t[1])))}return t.some((t=>0===t[0]))}(i,r)){const t=ur(n),e=function(t,e){const n=new mr(Fn,e),r=new mr(1,e),i=new yr(n,r);return t.forEach((t=>{switch(t[0]){case Fn:n.align(t);break;case 1:r.align(t);break;default:i.align(t)}})),i.getLines()}(i,t.changeColor);return fr(e,o,t)}}return hr(t.split("\n"),e.split("\n"),n)}function wr(t,e,n,r){const[i,o]=function(t,e,n){const r=(null==n?void 0:n.truncateThreshold)??!1,i=Math.max(Math.floor((null==n?void 0:n.truncateThreshold)??0),0);let o=t.length,s=e.length;if(r){const n=t.includes("\n"),r=e.includes("\n"),c=br(t),a=br(e),u=n?`${t.split(c,i).join(c)}\n`:t,l=r?`${e.split(a,i).join(a)}\n`:e;o=u.length,s=l.length}const c=o!==t.length||s!==e.length;let a=0,u=0;const l=[];return nr(o,s,((n,r)=>t[n]===e[r]),((n,r,i)=>{a!==r&&l.push(new qn(Fn,t.slice(a,r))),u!==i&&l.push(new qn(1,e.slice(u,i))),a=r+n,u=i+n,l.push(new qn(0,e.slice(i,u)))})),a!==o&&l.push(new qn(Fn,t.slice(a))),u!==s&&l.push(new qn(1,e.slice(u))),[l,c]}(t,e,r);return n&&Hn(i),[i,o]}function vr(t,e){const{commonColor:n}=ur(e);return n(t)}var{AsymmetricMatcher:$r,DOMCollection:xr,DOMElement:Sr,Immutable:jr,ReactElement:Er,ReactTestComponent:Or}=pe,Tr=[Or,Er,Sr,xr,jr,$r,pe.Error],kr={plugins:Tr},Ar={callToJSON:!1,maxDepth:8,plugins:Tr};function _r(t,e,n){if(Object.is(t,e))return"";const r=pr(t);let i=r,o=!1;if("object"===r&&"function"==typeof t.asymmetricMatch){if(t.$$typeof!==Symbol.for("jest.asymmetricMatcher"))return;if("function"!=typeof t.getExpectedType)return;i=t.getExpectedType(),o="string"===i}if(i!==pr(e)){let r=function(t){return t.length<=d?t:`${t.slice(0,d)}...`};const{aAnnotation:i,aColor:o,aIndicator:s,bAnnotation:c,bColor:a,bIndicator:u}=ur(n),l=Nr(Ar,n);let f=de(t,l),h=de(e,l);const d=1e5;f=r(f),h=r(h);return`${`${o(`${s} ${i}:`)} \n${f}`}\n\n${`${a(`${u} ${c}:`)} \n${h}`}`}if(!o)switch(r){case"string":return hr(t.split("\n"),e.split("\n"),n);case"boolean":case"number":return function(t,e,n){const r=de(t,kr),i=de(e,kr);return r===i?"":hr(r.split("\n"),i.split("\n"),n)}(t,e,n);case"map":return Ir(Mr(t),Mr(e),n);case"set":return Ir(Cr(t),Cr(e),n);default:return Ir(t,e,n)}}function Mr(t){return new Map(Array.from(t.entries()).sort())}function Cr(t){return new Set(Array.from(t.values()).sort())}function Ir(t,e,n){let r,i=!1;try{r=Pr(t,e,Nr(kr,n),n)}catch{i=!0}const o=vr(tr,n);if(void 0===r||r===o){r=Pr(t,e,Nr(Ar,n),n),r===o||i||(r=`${vr("Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",n)}\n\n${r}`)}return r}function Nr(t,e){const{compareKeys:n,printBasicPrototype:r}=ur(e);return{...t,compareKeys:n,printBasicPrototype:r}}function Pr(t,e,n,r){const i={...n,indent:0},o=de(t,i),s=de(e,i);if(o===s)return vr(tr,r);{const i=de(t,n),c=de(e,n);return function(t,e,n,r,i){if(lr(t)&&lr(n)&&(t=[],n=[]),lr(e)&&lr(r)&&(e=[],r=[]),t.length!==n.length||e.length!==r.length)return hr(t,e,i);const[o,s]=dr(n,r,i);let c=0,a=0;return o.forEach((n=>{switch(n[0]){case Fn:n[1]=t[c],c+=1;break;case 1:n[1]=e[a],a+=1;break;default:n[1]=e[a],c+=1,a+=1}})),fr(o,s,ur(i))}(i.split("\n"),c.split("\n"),o.split("\n"),s.split("\n"),r)}}function Rr(t){return"Object"===ln(t)&&"function"==typeof t.asymmetricMatch}function Br(t,e){const n=ln(t);return n===ln(e)&&("Object"===n||"Array"===n)}function Dr(t,e,n){const{aAnnotation:r,bAnnotation:i}=ur(n);if("string"==typeof e&&"string"==typeof t&&e.length>0&&t.length>0&&e.length<=2e4&&t.length<=2e4&&e!==t){if(e.includes("\n")||t.includes("\n"))return gr(e,t,n);const[c]=wr(e,t,!0),a=c.some((t=>0===t[0])),u=function(...t){const e=t.reduce(((t,e)=>e.length>t?e.length:t),0);return t=>`${t}: ${" ".repeat(e-t.length)}`}(r,i);return`${u(r)+(s=Jr(c,Fn,a),X.green(qr(en(s))))}\n${u(i)+(o=Jr(c,1,a),X.red(qr(en(o))))}`}var o,s;const c=bn(e,{forceWritable:!0}),a=bn(t,{forceWritable:!0}),{replacedExpected:u,replacedActual:l}=Lr(a,c);return _r(u,l,n)}function Lr(t,e,n=new WeakSet,r=new WeakSet){return t instanceof Error&&e instanceof Error&&void 0!==t.cause&&void 0===e.cause?(delete t.cause,{replacedActual:t,replacedExpected:e}):Br(t,e)?(n.has(t)||r.has(e)||(n.add(t),r.add(e),fn(e).forEach((i=>{const o=e[i],s=t[i];if(Rr(o))o.asymmetricMatch(s)&&(t[i]=o);else if(Rr(s))s.asymmetricMatch(o)&&(e[i]=s);else if(Br(s,o)){const c=Lr(s,o,n,r);t[i]=c.replacedActual,e[i]=c.replacedExpected}}))),{replacedActual:t,replacedExpected:e}):{replacedActual:t,replacedExpected:e}}var Fr="·";function qr(t){return t.replace(/\s+$/gm,(t=>Fr.repeat(t.length)))}function Jr(t,e,n){return t.reduce(((t,r)=>t+(0===r[0]?r[1]:r[0]===e?n?X.inverse(r[1]):r[1]:"")),"")}function Ur(t,e){if(!t)throw new Error(e)}function Wr(t,e){return typeof e===t}function Hr(t,e,n){Object.defineProperty(t,e,n)}function Xr(t,e,n){Object.defineProperty(t,e,{value:n})}y(),y();var zr=Symbol.for("tinyspy:spy"),Vr=new Set,Kr=t=>t[zr]||(t=>(Hr(t,zr,{value:{reset:()=>(t=>{t.called=!1,t.callCount=0,t.calls=[],t.results=[],t.resolves=[],t.next=[]})(t[zr])}}),t[zr]))(t);function Gr(t){Ur(Wr("function",t)||Wr("undefined",t),"cannot spy on a non-function value");let e=function(...t){let n=Kr(e);n.called=!0,n.callCount++,n.calls.push(t);let r=n.next.shift();if(r){n.results.push(r);let[t,e]=r;if("ok"===t)return e;throw e}let i,o="ok",s=n.results.length;if(n.impl)try{i=new.target?Reflect.construct(n.impl,t,new.target):n.impl.apply(this,t),o="ok"}catch(t){throw i=t,o="error",n.results.push([o,t]),t}let c=[o,i];return function(t){return t instanceof Promise}(i)&&i.then((t=>n.resolves[s]=["ok",t]),(t=>n.resolves[s]=["error",t])),n.results.push(c),i};Xr(e,"_isMockFunction",!0),Xr(e,"length",t?t.length:0),Xr(e,"name",t&&t.name||"spy");let n=Kr(e);return n.reset(),n.impl=t,e}var Zr=(t,e)=>Object.getOwnPropertyDescriptor(t,e),Yr=(t,e)=>{null!=e&&"function"==typeof e&&null!=e.prototype&&Object.setPrototypeOf(t.prototype,e.prototype)};function Qr(t,e,n){Ur(!Wr("undefined",t),"spyOn could not find an object to spy upon"),Ur(Wr("object",t)||Wr("function",t),"cannot spyOn on a primitive value");let[r,i]=(()=>{if(!Wr("object",e))return[e,"value"];if("getter"in e&&"setter"in e)throw new Error("cannot spy on both getter and setter");if("getter"in e)return[e.getter,"get"];if("setter"in e)return[e.setter,"set"];throw new Error("specify getter or setter to spy on")})(),o=Zr(t,r),s=Object.getPrototypeOf(t),c=s&&Zr(s,r),a=o||c;Ur(a||r in t,`${String(r)} does not exist`);let u,l=!1;"value"===i&&a&&!a.value&&a.get&&(i="get",l=!0,n=a.get()),u=a?a[i]:"value"!==i?()=>t[r]:t[r];let f=e=>{let{value:n,...o}=a||{configurable:!0,writable:!0};"value"!==i&&delete o.writable,o[i]=e,Hr(t,r,o)};n||(n=u);let h=Gr(n);"value"===i&&Yr(h,u);let d=h[zr];return Xr(d,"restore",(()=>a?Hr(t,r,a):f(u))),Xr(d,"getOriginal",(()=>l?u():u)),Xr(d,"willCall",(t=>(d.impl=t,h))),f(l?()=>(Yr(h,n),h):h),Vr.add(h),h}var ti=new Set;function ei(t){return"function"==typeof t&&"_isMockFunction"in t&&t._isMockFunction}function ni(t,e,n){return ii(Qr(t,n?{[{get:"getter",set:"setter"}[n]]:e}:e))}var ri=0;function ii(t){const e=t;let n,r=[],i=[],o=[];const s=Kr(t),c={get calls(){return s.calls},get contexts(){return i},get instances(){return r},get invocationCallOrder(){return o},get results(){return s.results.map((([t,e])=>({type:"error"===t?"throw":"return",value:e})))},get settledResults(){return s.resolves.map((([t,e])=>({type:"error"===t?"rejected":"fulfilled",value:e})))},get lastCall(){return s.calls[s.calls.length-1]}};let a=[],u=!1;function l(...t){r.push(this),i.push(this),o.push(++ri);return(u?n:a.shift()||n||s.getOriginal()||(()=>{})).apply(this,t)}let f=e.name;return e.getMockName=()=>f||"vi.fn()",e.mockName=t=>(f=t,e),e.mockClear=()=>(s.reset(),r=[],i=[],o=[],e),e.mockReset=()=>(e.mockClear(),n=void 0,a=[],e),e.mockRestore=()=>(e.mockReset(),s.restore(),e),e.getMockImplementation=()=>u?n:a.at(0)||n,e.mockImplementation=t=>(n=t,s.willCall(l),e),e.mockImplementationOnce=t=>(a.push(t),e),e.withImplementation=function(t,r){const i=n;n=t,s.willCall(l),u=!0;const o=()=>{n=i,u=!1},c=r();return c instanceof Promise?c.then((()=>(o(),e))):(o(),e)},e.mockReturnThis=()=>e.mockImplementation((function(){return this})),e.mockReturnValue=t=>e.mockImplementation((()=>t)),e.mockReturnValueOnce=t=>e.mockImplementationOnce((()=>t)),e.mockResolvedValue=t=>e.mockImplementation((()=>Promise.resolve(t))),e.mockResolvedValueOnce=t=>e.mockImplementationOnce((()=>Promise.resolve(t))),e.mockRejectedValue=t=>e.mockImplementation((()=>Promise.reject(t))),e.mockRejectedValueOnce=t=>e.mockImplementationOnce((()=>Promise.reject(t))),Object.defineProperty(e,"mock",{get:()=>c}),s.willCall(l),ti.add(e),e}function oi(t){const e=ii(Qr({spy:t||function(){}},"spy"));return t&&e.mockImplementation(t),e}y();var si=Object.getPrototypeOf({});function ci(t){return t instanceof Error?`<unserializable>: ${t.message}`:"string"==typeof t?`<unserializable>: ${t}`:"<unserializable>"}function ai(t,e=new WeakMap){if(!t||"string"==typeof t)return t;if("function"==typeof t)return`Function<${t.name||"anonymous"}>`;if("symbol"==typeof t)return t.toString();if("object"!=typeof t)return t;if((n=t)&&(n["@@__IMMUTABLE_ITERABLE__@@"]||n["@@__IMMUTABLE_RECORD__@@"]))return ai(t.toJSON(),e);var n;if(t instanceof Promise||t.constructor&&"AsyncFunction"===t.constructor.prototype)return"Promise";if("undefined"!=typeof Element&&t instanceof Element)return t.tagName;if("function"==typeof t.asymmetricMatch)return`${t.toString()} ${rn(t.sample)}`;if("function"==typeof t.toJSON)return ai(t.toJSON(),e);if(e.has(t))return e.get(t);if(Array.isArray(t)){const n=new Array(t.length);return e.set(t,n),t.forEach(((t,r)=>{try{n[r]=ai(t,e)}catch(t){n[r]=ci(t)}})),n}{const n=Object.create(null);e.set(t,n);let r=t;for(;r&&r!==si;)Object.getOwnPropertyNames(r).forEach((r=>{if(!(r in n))try{n[r]=ai(t[r],e)}catch(t){delete n[r],n[r]=ci(t)}})),r=Object.getPrototypeOf(r);return n}}function ui(t,e,n=new WeakSet){if(!t||"object"!=typeof t)return{message:String(t)};const r=t;r.stack&&(r.stackStr=String(r.stack)),r.name&&(r.nameStr=String(r.name)),(r.showDiff||void 0===r.showDiff&&void 0!==r.expected&&void 0!==r.actual)&&(r.diff=Dr(r.actual,r.expected,{...e,...r.diffOptions})),"string"!=typeof r.expected&&(r.expected=en(r.expected,10)),"string"!=typeof r.actual&&(r.actual=en(r.actual,10));try{"string"==typeof r.message&&(r.message=r.message.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,""))}catch{}try{n.has(r)||"object"!=typeof r.cause||(n.add(r),r.cause=ui(r.cause,e,n))}catch{}try{return ai(r)}catch(t){return ai(new Error(`Failed to fully serialize error: ${null==t?void 0:t.message}\nInner error message: ${null==r?void 0:r.message}`))}}y();var li,fi,hi=Object.defineProperty,di=Object.getOwnPropertyNames,pi=(t,e)=>hi(t,"name",{value:e,configurable:!0}),bi=(t,e)=>{for(var n in e)hi(t,n,{get:e[n],enumerable:!0})},mi=(li={"(disabled):util"(){}},function(){return fi||(0,li[di(li)[0]])((fi={exports:{}}).exports,fi),fi.exports}),yi={};bi(yi,{addChainableMethod:()=>js,addLengthGuard:()=>fs,addMethod:()=>ms,addProperty:()=>us,checkError:()=>gi,compareByInspect:()=>Os,eql:()=>Lo,expectTypes:()=>Ci,flag:()=>Oi,getActual:()=>Ii,getMessage:()=>Co,getName:()=>Cs,getOperator:()=>Ms,getOwnEnumerableProperties:()=>ks,getOwnEnumerablePropertySymbols:()=>Ts,getPathInfo:()=>ss,hasProperty:()=>rs,inspect:()=>_o,isNaN:()=>As,isNumeric:()=>Ns,isProxyEnabled:()=>as,isRegExp:()=>Is,objDisplay:()=>Mo,overwriteChainableMethod:()=>Es,overwriteMethod:()=>gs,overwriteProperty:()=>ys,proxify:()=>ps,test:()=>Ti,transferFlags:()=>Io,type:()=>ki});var gi={};function wi(t){return t instanceof Error||"[object Error]"===Object.prototype.toString.call(t)}function vi(t){return"[object RegExp]"===Object.prototype.toString.call(t)}function $i(t,e){return wi(e)&&t===e}function xi(t,e){return wi(e)?t.constructor===e.constructor||t instanceof e.constructor:!("object"!=typeof e&&"function"!=typeof e||!e.prototype)&&(t.constructor===e||t instanceof e)}function Si(t,e){const n="string"==typeof t?t:t.message;return vi(e)?e.test(n):"string"==typeof e&&-1!==n.indexOf(e)}function ji(t){let e=t;if(wi(t))e=t.constructor.name;else if("function"==typeof t&&(e=t.name,""===e)){e=(new t).name||e}return e}function Ei(t){let e="";return t&&t.message?e=t.message:"string"==typeof t&&(e=t),e}function Oi(t,e,n){var r=t.__flags||(t.__flags=Object.create(null));if(3!==arguments.length)return r[e];r[e]=n}function Ti(t,e){var n=Oi(t,"negate"),r=e[0];return n?!r:r}function ki(t){if(void 0===t)return"undefined";if(null===t)return"null";const e=t[Symbol.toStringTag];if("string"==typeof e)return e;return Object.prototype.toString.call(t).slice(8,-1)}bi(gi,{compatibleConstructor:()=>xi,compatibleInstance:()=>$i,compatibleMessage:()=>Si,getConstructorName:()=>ji,getMessage:()=>Ei}),pi(wi,"isErrorInstance"),pi(vi,"isRegExp"),pi($i,"compatibleInstance"),pi(xi,"compatibleConstructor"),pi(Si,"compatibleMessage"),pi(ji,"getConstructorName"),pi(Ei,"getMessage"),pi(Oi,"flag"),pi(Ti,"test"),pi(ki,"type");var Ai,_i="captureStackTrace"in Error,Mi=(Ai=class extends Error{constructor(t="Unspecified AssertionError",e,n){super(t),m(this,"message"),this.message=t,_i&&Error.captureStackTrace(this,n||Ai);for(const t in e)t in this||(this[t]=e[t])}get name(){return"AssertionError"}get ok(){return!1}toJSON(t){return{...this,name:this.name,message:this.message,ok:!1,stack:!1!==t?this.stack:void 0}}},pi(Ai,"AssertionError"),Ai);function Ci(t,e){var n=Oi(t,"message"),r=Oi(t,"ssfi");n=n?n+": ":"",t=Oi(t,"object"),(e=e.map((function(t){return t.toLowerCase()}))).sort();var i=e.map((function(t,n){var r=~["a","e","i","o","u"].indexOf(t.charAt(0))?"an":"a";return(e.length>1&&n===e.length-1?"or ":"")+r+" "+t})).join(", "),o=ki(t).toLowerCase();if(!e.some((function(t){return o===t})))throw new Mi(n+"object tested must be "+i+", but "+o+" given",void 0,r)}function Ii(t,e){return e.length>4?e[4]:t._obj}pi(Ci,"expectTypes"),pi(Ii,"getActual");var Ni={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"]},Pi={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Ri="…";function Bi(t,e){const n=Ni[Pi[e]]||Ni[e]||"";return n?`[${n[0]}m${String(t)}[${n[1]}m`:String(t)}function Di({showHidden:t=!1,depth:e=2,colors:n=!1,customInspect:r=!0,showProxy:i=!1,maxArrayLength:o=1/0,breakLength:s=1/0,seen:c=[],truncate:a=1/0,stylize:u=String}={},l){const f={showHidden:Boolean(t),depth:Number(e),colors:Boolean(n),customInspect:Boolean(r),showProxy:Boolean(i),maxArrayLength:Number(o),breakLength:Number(s),truncate:Number(a),seen:c,inspect:l,stylize:u};return f.colors&&(f.stylize=Bi),f}function Li(t){return t>="\ud800"&&t<="\udbff"}function Fi(t,e,n=Ri){t=String(t);const r=n.length,i=t.length;if(r>e&&i>r)return n;if(i>e&&i>r){let i=e-r;return i>0&&Li(t[i-1])&&(i-=1),`${t.slice(0,i)}${n}`}return t}function qi(t,e,n,r=", "){n=n||e.inspect;const i=t.length;if(0===i)return"";const o=e.truncate;let s="",c="",a="";for(let u=0;u<i;u+=1){const i=u+1===t.length,l=u+2===t.length;a=`${Ri}(${t.length-u})`;const f=t[u];e.truncate=o-s.length-(i?0:r.length);const h=c||n(f,e)+(i?"":r),d=s.length+h.length,p=d+a.length;if(i&&d>o&&s.length+a.length<=o)break;if(!i&&!l&&p>o)break;if(c=i?"":n(t[u+1],e)+(l?"":r),!i&&l&&p>o&&d+c.length>o)break;if(s+=h,!i&&!l&&d+c.length>=o){a=`${Ri}(${t.length-u-1})`;break}a=""}return`${s}${a}`}function Ji(t){return t.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?t:JSON.stringify(t).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function Ui([t,e],n){return n.truncate-=2,"string"==typeof t?t=Ji(t):"number"!=typeof t&&(t=`[${n.inspect(t,n)}]`),n.truncate-=t.length,`${t}: ${e=n.inspect(e,n)}`}function Wi(t,e){const n=Object.keys(t).slice(t.length);if(!t.length&&!n.length)return"[]";e.truncate-=4;const r=qi(t,e);e.truncate-=r.length;let i="";return n.length&&(i=qi(n.map((e=>[e,t[e]])),e,Ui)),`[ ${r}${i?`, ${i}`:""} ]`}pi(Bi,"colorise"),pi(Di,"normaliseOptions"),pi(Li,"isHighSurrogate"),pi(Fi,"truncate"),pi(qi,"inspectList"),pi(Ji,"quoteComplexKey"),pi(Ui,"inspectProperty"),pi(Wi,"inspectArray");var Hi=pi((t=>"function"==typeof Buffer&&t instanceof Buffer?"Buffer":t[Symbol.toStringTag]?t[Symbol.toStringTag]:t.constructor.name),"getArrayName");function Xi(t,e){const n=Hi(t);e.truncate-=n.length+4;const r=Object.keys(t).slice(t.length);if(!t.length&&!r.length)return`${n}[]`;let i="";for(let n=0;n<t.length;n++){const r=`${e.stylize(Fi(t[n],e.truncate),"number")}${n===t.length-1?"":", "}`;if(e.truncate-=r.length,t[n]!==t.length&&e.truncate<=3){i+=`${Ri}(${t.length-t[n]+1})`;break}i+=r}let o="";return r.length&&(o=qi(r.map((e=>[e,t[e]])),e,Ui)),`${n}[ ${i}${o?`, ${o}`:""} ]`}function zi(t,e){const n=t.toJSON();if(null===n)return"Invalid Date";const r=n.split("T"),i=r[0];return e.stylize(`${i}T${Fi(r[1],e.truncate-i.length-1)}`,"date")}function Vi(t,e){const n=t[Symbol.toStringTag]||"Function",r=t.name;return r?e.stylize(`[${n} ${Fi(r,e.truncate-11)}]`,"special"):e.stylize(`[${n}]`,"special")}function Ki([t,e],n){return n.truncate-=4,t=n.inspect(t,n),n.truncate-=t.length,`${t} => ${e=n.inspect(e,n)}`}function Gi(t){const e=[];return t.forEach(((t,n)=>{e.push([n,t])})),e}function Zi(t,e){return t.size-1<=0?"Map{}":(e.truncate-=7,`Map{ ${qi(Gi(t),e,Ki)} }`)}pi(Xi,"inspectTypedArray"),pi(zi,"inspectDate"),pi(Vi,"inspectFunction"),pi(Ki,"inspectMapEntry"),pi(Gi,"mapToEntries"),pi(Zi,"inspectMap");var Yi=Number.isNaN||(t=>t!=t);function Qi(t,e){return Yi(t)?e.stylize("NaN","number"):t===1/0?e.stylize("Infinity","number"):t===-1/0?e.stylize("-Infinity","number"):0===t?e.stylize(1/t==1/0?"+0":"-0","number"):e.stylize(Fi(String(t),e.truncate),"number")}function to(t,e){let n=Fi(t.toString(),e.truncate-1);return n!==Ri&&(n+="n"),e.stylize(n,"bigint")}function eo(t,e){const n=t.toString().split("/")[2],r=e.truncate-(2+n.length),i=t.source;return e.stylize(`/${Fi(i,r)}/${n}`,"regexp")}function no(t){const e=[];return t.forEach((t=>{e.push(t)})),e}function ro(t,e){return 0===t.size?"Set{}":(e.truncate-=7,`Set{ ${qi(no(t),e)} }`)}pi(Qi,"inspectNumber"),pi(to,"inspectBigInt"),pi(eo,"inspectRegExp"),pi(no,"arrayFromSet"),pi(ro,"inspectSet");var io=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),oo={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"};function so(t){return oo[t]||`\\u${`0000${t.charCodeAt(0).toString(16)}`.slice(-4)}`}function co(t,e){return io.test(t)&&(t=t.replace(io,so)),e.stylize(`'${Fi(t,e.truncate-2)}'`,"string")}function ao(t){return"description"in Symbol.prototype?t.description?`Symbol(${t.description})`:"Symbol()":t.toString()}pi(so,"escape"),pi(co,"inspectString"),pi(ao,"inspectSymbol");var uo=pi((()=>"Promise{…}"),"getPromiseValue");try{const{getPromiseDetails:t,kPending:e,kRejected:n}=process.binding("util");Array.isArray(t(Promise.resolve()))&&(uo=pi(((r,i)=>{const[o,s]=t(r);return o===e?"Promise{<pending>}":`Promise${o===n?"!":""}{${i.inspect(s,i)}}`}),"getPromiseValue"))}catch(t){}var lo=uo;function fo(t,e){const n=Object.getOwnPropertyNames(t),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[];if(0===n.length&&0===r.length)return"{}";if(e.truncate-=4,e.seen=e.seen||[],e.seen.includes(t))return"[Circular]";e.seen.push(t);const i=qi(n.map((e=>[e,t[e]])),e,Ui),o=qi(r.map((e=>[e,t[e]])),e,Ui);e.seen.pop();let s="";return i&&o&&(s=", "),`{ ${i}${s}${o} }`}pi(fo,"inspectObject");var ho=!("undefined"==typeof Symbol||!Symbol.toStringTag)&&Symbol.toStringTag;function po(t,e){let n="";return ho&&ho in t&&(n=t[ho]),n=n||t.constructor.name,n&&"_class"!==n||(n="<Anonymous Class>"),e.truncate-=n.length,`${n}${fo(t,e)}`}function bo(t,e){return 0===t.length?"Arguments[]":(e.truncate-=13,`Arguments[ ${qi(t,e)} ]`)}pi(po,"inspectClass"),pi(bo,"inspectArguments");var mo=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function yo(t,e){const n=Object.getOwnPropertyNames(t).filter((t=>-1===mo.indexOf(t))),r=t.name;e.truncate-=r.length;let i="";if("string"==typeof t.message?i=Fi(t.message,e.truncate):n.unshift("message"),i=i?`: ${i}`:"",e.truncate-=i.length+5,e.seen=e.seen||[],e.seen.includes(t))return"[Circular]";e.seen.push(t);const o=qi(n.map((e=>[e,t[e]])),e,Ui);return`${r}${i}${o?` { ${o} }`:""}`}function go([t,e],n){return n.truncate-=3,e?`${n.stylize(String(t),"yellow")}=${n.stylize(`"${e}"`,"string")}`:`${n.stylize(String(t),"yellow")}`}function wo(t,e){return qi(t,e,vo,"\n")}function vo(t,e){const n=t.getAttributeNames(),r=t.tagName.toLowerCase(),i=e.stylize(`<${r}`,"special"),o=e.stylize(">","special"),s=e.stylize(`</${r}>`,"special");e.truncate-=2*r.length+5;let c="";n.length>0&&(c+=" ",c+=qi(n.map((e=>[e,t.getAttribute(e)])),e,go," ")),e.truncate-=c.length;const a=e.truncate;let u=wo(t.children,e);return u&&u.length>a&&(u=`${Ri}(${t.children.length})`),`${i}${c}${o}${u}${s}`}pi(yo,"inspectObject"),pi(go,"inspectAttribute"),pi(wo,"inspectHTMLCollection"),pi(vo,"inspectHTML");var $o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("chai/inspect"):"@@chai/inspect",xo=!1;try{const t=mi();xo=!!t.inspect&&t.inspect.custom}catch(t){xo=!1}var So=new WeakMap,jo={},Eo={undefined:(t,e)=>e.stylize("undefined","undefined"),null:(t,e)=>e.stylize("null","null"),boolean:(t,e)=>e.stylize(String(t),"boolean"),Boolean:(t,e)=>e.stylize(String(t),"boolean"),number:Qi,Number:Qi,bigint:to,BigInt:to,string:co,String:co,function:Vi,Function:Vi,symbol:ao,Symbol:ao,Array:Wi,Date:zi,Map:Zi,Set:ro,RegExp:eo,Promise:lo,WeakSet:(t,e)=>e.stylize("WeakSet{…}","special"),WeakMap:(t,e)=>e.stylize("WeakMap{…}","special"),Arguments:bo,Int8Array:Xi,Uint8Array:Xi,Uint8ClampedArray:Xi,Int16Array:Xi,Uint16Array:Xi,Int32Array:Xi,Uint32Array:Xi,Float32Array:Xi,Float64Array:Xi,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:yo,HTMLCollection:wo,NodeList:wo},Oo=pi(((t,e,n)=>$o in t&&"function"==typeof t[$o]?t[$o](e):xo&&xo in t&&"function"==typeof t[xo]?t[xo](e.depth,e):"inspect"in t&&"function"==typeof t.inspect?t.inspect(e.depth,e):"constructor"in t&&So.has(t.constructor)?So.get(t.constructor)(t,e):jo[n]?jo[n](t,e):""),"inspectCustom"),To=Object.prototype.toString;function ko(t,e={}){const n=Di(e,ko),{customInspect:r}=n;let i=null===t?"null":typeof t;if("object"===i&&(i=To.call(t).slice(8,-1)),i in Eo)return Eo[i](t,n);if(r&&t){const e=Oo(t,n,i);if(e)return"string"==typeof e?e:ko(e,n)}const o=!!t&&Object.getPrototypeOf(t);return o===Object.prototype||null===o?fo(t,n):t&&"function"==typeof HTMLElement&&t instanceof HTMLElement?vo(t,n):"constructor"in t?t.constructor!==Object?po(t,n):fo(t,n):t===Object(t)?fo(t,n):n.stylize(String(t),i)}pi(ko,"inspect");var Ao={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function _o(t,e,n,r){return ko(t,{colors:r,depth:void 0===n?2:n,showHidden:e,truncate:Ao.truncateThreshold?Ao.truncateThreshold:1/0})}function Mo(t){var e=_o(t),n=Object.prototype.toString.call(t);if(Ao.truncateThreshold&&e.length>=Ao.truncateThreshold){if("[object Function]"===n)return t.name&&""!==t.name?"[Function: "+t.name+"]":"[Function]";if("[object Array]"===n)return"[ Array("+t.length+") ]";if("[object Object]"===n){var r=Object.keys(t);return"{ Object ("+(r.length>2?r.splice(0,2).join(", ")+", ...":r.join(", "))+") }"}return e}return e}function Co(t,e){var n=Oi(t,"negate"),r=Oi(t,"object"),i=e[3],o=Ii(t,e),s=n?e[2]:e[1],c=Oi(t,"message");return"function"==typeof s&&(s=s()),s=(s=s||"").replace(/#\{this\}/g,(function(){return Mo(r)})).replace(/#\{act\}/g,(function(){return Mo(o)})).replace(/#\{exp\}/g,(function(){return Mo(i)})),c?c+": "+s:s}function Io(t,e,n){var r=t.__flags||(t.__flags=Object.create(null));for(var i in e.__flags||(e.__flags=Object.create(null)),n=3!==arguments.length||n,r)(n||"object"!==i&&"ssfi"!==i&&"lockSsfi"!==i&&"message"!=i)&&(e.__flags[i]=r[i])}function No(t){if(void 0===t)return"undefined";if(null===t)return"null";const e=t[Symbol.toStringTag];if("string"==typeof e)return e;return Object.prototype.toString.call(t).slice(8,-1)}function Po(){this._key="chai/deep-eql__"+Math.random()+Date.now()}pi(_o,"inspect"),pi(Mo,"objDisplay"),pi(Co,"getMessage"),pi(Io,"transferFlags"),pi(No,"type"),pi(Po,"FakeMap"),Po.prototype={get:pi((function(t){return t[this._key]}),"get"),set:pi((function(t,e){Object.isExtensible(t)&&Object.defineProperty(t,this._key,{value:e,configurable:!0})}),"set")};var Ro="function"==typeof WeakMap?WeakMap:Po;function Bo(t,e,n){if(!n||es(t)||es(e))return null;var r=n.get(t);if(r){var i=r.get(e);if("boolean"==typeof i)return i}return null}function Do(t,e,n,r){if(n&&!es(t)&&!es(e)){var i=n.get(t);i?i.set(e,r):((i=new Ro).set(e,r),n.set(t,i))}}pi(Bo,"memoizeCompare"),pi(Do,"memoizeSet");var Lo=Fo;function Fo(t,e,n){if(n&&n.comparator)return Jo(t,e,n);var r=qo(t,e);return null!==r?r:Jo(t,e,n)}function qo(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e||!es(t)&&!es(e)&&null}function Jo(t,e,n){(n=n||{}).memoize=!1!==n.memoize&&(n.memoize||new Ro);var r=n&&n.comparator,i=Bo(t,e,n.memoize);if(null!==i)return i;var o=Bo(e,t,n.memoize);if(null!==o)return o;if(r){var s=r(t,e);if(!1===s||!0===s)return Do(t,e,n.memoize,s),s;var c=qo(t,e);if(null!==c)return c}var a=No(t);if(a!==No(e))return Do(t,e,n.memoize,!1),!1;Do(t,e,n.memoize,!0);var u=Uo(t,e,a,n);return Do(t,e,n.memoize,u),u}function Uo(t,e,n,r){switch(n){case"String":case"Number":case"Boolean":case"Date":return Fo(t.valueOf(),e.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return t===e;case"Error":return Qo(t,e,["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 Xo(t,e,r);case"RegExp":return Wo(t,e);case"Generator":return zo(t,e,r);case"DataView":return Xo(new Uint8Array(t.buffer),new Uint8Array(e.buffer),r);case"ArrayBuffer":return Xo(new Uint8Array(t),new Uint8Array(e),r);case"Set":case"Map":return Ho(t,e,r);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return t.equals(e);case"Temporal.Duration":return t.total("nanoseconds")===e.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return t.toString()===e.toString();default:return ts(t,e,r)}}function Wo(t,e){return t.toString()===e.toString()}function Ho(t,e,n){try{if(t.size!==e.size)return!1;if(0===t.size)return!0}catch(t){return!1}var r=[],i=[];return t.forEach(pi((function(t,e){r.push([t,e])}),"gatherEntries")),e.forEach(pi((function(t,e){i.push([t,e])}),"gatherEntries")),Xo(r.sort(),i.sort(),n)}function Xo(t,e,n){var r=t.length;if(r!==e.length)return!1;if(0===r)return!0;for(var i=-1;++i<r;)if(!1===Fo(t[i],e[i],n))return!1;return!0}function zo(t,e,n){return Xo(Go(t),Go(e),n)}function Vo(t){return"undefined"!=typeof Symbol&&"object"==typeof t&&void 0!==Symbol.iterator&&"function"==typeof t[Symbol.iterator]}function Ko(t){if(Vo(t))try{return Go(t[Symbol.iterator]())}catch(t){return[]}return[]}function Go(t){for(var e=t.next(),n=[e.value];!1===e.done;)e=t.next(),n.push(e.value);return n}function Zo(t){var e=[];for(var n in t)e.push(n);return e}function Yo(t){for(var e=[],n=Object.getOwnPropertySymbols(t),r=0;r<n.length;r+=1){var i=n[r];Object.getOwnPropertyDescriptor(t,i).enumerable&&e.push(i)}return e}function Qo(t,e,n,r){var i=n.length;if(0===i)return!0;for(var o=0;o<i;o+=1)if(!1===Fo(t[n[o]],e[n[o]],r))return!1;return!0}function ts(t,e,n){var r=Zo(t),i=Zo(e),o=Yo(t),s=Yo(e);if(r=r.concat(o),i=i.concat(s),r.length&&r.length===i.length)return!1!==Xo(ns(r).sort(),ns(i).sort())&&Qo(t,e,r,n);var c=Ko(t),a=Ko(e);return c.length&&c.length===a.length?(c.sort(),a.sort(),Xo(c,a,n)):0===r.length&&0===c.length&&0===i.length&&0===a.length}function es(t){return null===t||"object"!=typeof t}function ns(t){return t.map(pi((function(t){return"symbol"==typeof t?t.toString():t}),"mapSymbol"))}function rs(t,e){return null!=t&&e in Object(t)}function is(t){return t.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map((t=>{if("constructor"===t||"__proto__"===t||"prototype"===t)return{};const e=/^\[(\d+)\]$/.exec(t);let n=null;return n=e?{i:parseFloat(e[1])}:{p:t.replace(/\\([.[\]])/g,"$1")},n}))}function os(t,e,n){let r=t,i=null;n=void 0===n?e.length:n;for(let t=0;t<n;t++){const o=e[t];r&&(r=void 0===o.p?r[o.i]:r[o.p],t===n-1&&(i=r))}return i}function ss(t,e){const n=is(e),r=n[n.length-1],i={parent:n.length>1?os(t,n,n.length-1):t,name:r.p||r.i,value:os(t,n)};return i.exists=rs(i.parent,i.name),i}function cs(t,e,n,r){return Oi(this,"ssfi",n||cs),Oi(this,"lockSsfi",r),Oi(this,"object",t),Oi(this,"message",e),Oi(this,"eql",Ao.deepEqual||Lo),ps(this)}function as(){return Ao.useProxy&&"undefined"!=typeof Proxy&&"undefined"!=typeof Reflect}function us(t,e,n){n=void 0===n?function(){}:n,Object.defineProperty(t,e,{get:pi((function t(){as()||Oi(this,"lockSsfi")||Oi(this,"ssfi",t);var e=n.call(this);if(void 0!==e)return e;var r=new cs;return Io(this,r),r}),"propertyGetter"),configurable:!0})}pi(Fo,"deepEqual"),pi(qo,"simpleEqual"),pi(Jo,"extensiveDeepEqual"),pi(Uo,"extensiveDeepEqualByType"),pi(Wo,"regexpEqual"),pi(Ho,"entriesEqual"),pi(Xo,"iterableEqual"),pi(zo,"generatorEqual"),pi(Vo,"hasIteratorFunction"),pi(Ko,"getIteratorEntries"),pi(Go,"getGeneratorEntries"),pi(Zo,"getEnumerableKeys"),pi(Yo,"getEnumerableSymbols"),pi(Qo,"keysEqual"),pi(ts,"objectEqual"),pi(es,"isPrimitive"),pi(ns,"mapSymbols"),pi(rs,"hasProperty"),pi(is,"parsePath"),pi(os,"internalGetPathValue"),pi(ss,"getPathInfo"),pi(cs,"Assertion"),Object.defineProperty(cs,"includeStack",{get:function(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),Ao.includeStack},set:function(t){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),Ao.includeStack=t}}),Object.defineProperty(cs,"showDiff",{get:function(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),Ao.showDiff},set:function(t){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),Ao.showDiff=t}}),cs.addProperty=function(t,e){us(this.prototype,t,e)},cs.addMethod=function(t,e){ms(this.prototype,t,e)},cs.addChainableMethod=function(t,e,n){js(this.prototype,t,e,n)},cs.overwriteProperty=function(t,e){ys(this.prototype,t,e)},cs.overwriteMethod=function(t,e){gs(this.prototype,t,e)},cs.overwriteChainableMethod=function(t,e,n){Es(this.prototype,t,e,n)},cs.prototype.assert=function(t,e,n,r,i,o){var s=Ti(this,arguments);if(!1!==o&&(o=!0),void 0===r&&void 0===i&&(o=!1),!0!==Ao.showDiff&&(o=!1),!s){e=Co(this,arguments);var c={actual:Ii(this,arguments),expected:r,showDiff:o},a=Ms(this,arguments);throw a&&(c.operator=a),new Mi(e,c,Ao.includeStack?this.assert:Oi(this,"ssfi"))}},Object.defineProperty(cs.prototype,"_obj",{get:function(){return Oi(this,"object")},set:function(t){Oi(this,"object",t)}}),pi(as,"isProxyEnabled"),pi(us,"addProperty");var ls=Object.getOwnPropertyDescriptor((function(){}),"length");function fs(t,e,n){return ls.configurable?(Object.defineProperty(t,"length",{get:function(){if(n)throw Error("Invalid Chai property: "+e+'.length. Due to a compatibility issue, "length" cannot directly follow "'+e+'". Use "'+e+'.lengthOf" instead.');throw Error("Invalid Chai property: "+e+'.length. See docs for proper usage of "'+e+'".')}}),t):t}function hs(t){var e=Object.getOwnPropertyNames(t);function n(t){-1===e.indexOf(t)&&e.push(t)}pi(n,"addProperty");for(var r=Object.getPrototypeOf(t);null!==r;)Object.getOwnPropertyNames(r).forEach(n),r=Object.getPrototypeOf(r);return e}pi(fs,"addLengthGuard"),pi(hs,"getProperties");var ds=["__flags","__methods","_obj","assert"];function ps(t,e){return as()?new Proxy(t,{get:pi((function t(n,r){if("string"==typeof r&&-1===Ao.proxyExcludedKeys.indexOf(r)&&!Reflect.has(n,r)){if(e)throw Error("Invalid Chai property: "+e+"."+r+'. See docs for proper usage of "'+e+'".');var i=null,o=4;throw hs(n).forEach((function(t){if(!Object.prototype.hasOwnProperty(t)&&-1===ds.indexOf(t)){var e=bs(r,t,o);e<o&&(i=t,o=e)}})),null!==i?Error("Invalid Chai property: "+r+'. Did you mean "'+i+'"?'):Error("Invalid Chai property: "+r)}return-1!==ds.indexOf(r)||Oi(n,"lockSsfi")||Oi(n,"ssfi",t),Reflect.get(n,r)}),"proxyGetter")}):t}function bs(t,e,n){if(Math.abs(t.length-e.length)>=n)return n;var r=[];for(let n=0;n<=t.length;n++)r[n]=Array(e.length+1).fill(0),r[n][0]=n;for(let t=0;t<e.length;t++)r[0][t]=t;for(let o=1;o<=t.length;o++){var i=t.charCodeAt(o-1);for(let t=1;t<=e.length;t++)Math.abs(o-t)>=n?r[o][t]=n:r[o][t]=Math.min(r[o-1][t]+1,r[o][t-1]+1,r[o-1][t-1]+(i===e.charCodeAt(t-1)?0:1))}return r[t.length][e.length]}function ms(t,e,n){var r=pi((function(){Oi(this,"lockSsfi")||Oi(this,"ssfi",r);var t=n.apply(this,arguments);if(void 0!==t)return t;var e=new cs;return Io(this,e),e}),"methodWrapper");fs(r,e,!1),t[e]=ps(r,e)}function ys(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e),i=pi((function(){}),"_super");r&&"function"==typeof r.get&&(i=r.get),Object.defineProperty(t,e,{get:pi((function t(){as()||Oi(this,"lockSsfi")||Oi(this,"ssfi",t);var e=Oi(this,"lockSsfi");Oi(this,"lockSsfi",!0);var r=n(i).call(this);if(Oi(this,"lockSsfi",e),void 0!==r)return r;var o=new cs;return Io(this,o),o}),"overwritingPropertyGetter"),configurable:!0})}function gs(t,e,n){var r=t[e],i=pi((function(){throw new Error(e+" is not a function")}),"_super");r&&"function"==typeof r&&(i=r);var o=pi((function(){Oi(this,"lockSsfi")||Oi(this,"ssfi",o);var t=Oi(this,"lockSsfi");Oi(this,"lockSsfi",!0);var e=n(i).apply(this,arguments);if(Oi(this,"lockSsfi",t),void 0!==e)return e;var r=new cs;return Io(this,r),r}),"overwritingMethodWrapper");fs(o,e,!1),t[e]=ps(o,e)}pi(ps,"proxify"),pi(bs,"stringDistanceCapped"),pi(ms,"addMethod"),pi(ys,"overwriteProperty"),pi(gs,"overwriteMethod");var ws="function"==typeof Object.setPrototypeOf,vs=pi((function(){}),"testFn"),$s=Object.getOwnPropertyNames(vs).filter((function(t){var e=Object.getOwnPropertyDescriptor(vs,t);return"object"!=typeof e||!e.configurable})),xs=Function.prototype.call,Ss=Function.prototype.apply;function js(t,e,n,r){"function"!=typeof r&&(r=pi((function(){}),"chainingBehavior"));var i={method:n,chainingBehavior:r};t.__methods||(t.__methods={}),t.__methods[e]=i,Object.defineProperty(t,e,{get:pi((function(){i.chainingBehavior.call(this);var n=pi((function(){Oi(this,"lockSsfi")||Oi(this,"ssfi",n);var t=i.method.apply(this,arguments);if(void 0!==t)return t;var e=new cs;return Io(this,e),e}),"chainableMethodWrapper");if(fs(n,e,!0),ws){var r=Object.create(this);r.call=xs,r.apply=Ss,Object.setPrototypeOf(n,r)}else{Object.getOwnPropertyNames(t).forEach((function(e){if(-1===$s.indexOf(e)){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r)}}))}return Io(this,n),ps(n)}),"chainableMethodGetter"),configurable:!0})}function Es(t,e,n,r){var i=t.__methods[e],o=i.chainingBehavior;i.chainingBehavior=pi((function(){var t=r(o).call(this);if(void 0!==t)return t;var e=new cs;return Io(this,e),e}),"overwritingChainableMethodGetter");var s=i.method;i.method=pi((function(){var t=n(s).apply(this,arguments);if(void 0!==t)return t;var e=new cs;return Io(this,e),e}),"overwritingChainableMethodWrapper")}function Os(t,e){return _o(t)<_o(e)?-1:1}function Ts(t){return"function"!=typeof Object.getOwnPropertySymbols?[]:Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))}function ks(t){return Object.keys(t).concat(Ts(t))}pi(js,"addChainableMethod"),pi(Es,"overwriteChainableMethod"),pi(Os,"compareByInspect"),pi(Ts,"getOwnEnumerablePropertySymbols"),pi(ks,"getOwnEnumerableProperties");var As=Number.isNaN;function _s(t){var e=ki(t);return-1!==["Array","Object","Function"].indexOf(e)}function Ms(t,e){var n=Oi(t,"operator"),r=Oi(t,"negate"),i=e[3],o=r?e[2]:e[1];if(n)return n;if("function"==typeof o&&(o=o()),(o=o||"")&&!/\shave\s/.test(o)){var s=_s(i);return/\snot\s/.test(o)?s?"notDeepStrictEqual":"notStrictEqual":s?"deepStrictEqual":"strictEqual"}}function Cs(t){return t.name}function Is(t){return"[object RegExp]"===Object.prototype.toString.call(t)}function Ns(t){return["Number","BigInt"].includes(ki(t))}pi(_s,"isObjectType"),pi(Ms,"getOperator"),pi(Cs,"getName"),pi(Is,"isRegExp"),pi(Ns,"isNumeric");var{flag:Ps}=yi;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach((function(t){cs.addProperty(t)})),cs.addProperty("not",(function(){Ps(this,"negate",!0)})),cs.addProperty("deep",(function(){Ps(this,"deep",!0)})),cs.addProperty("nested",(function(){Ps(this,"nested",!0)})),cs.addProperty("own",(function(){Ps(this,"own",!0)})),cs.addProperty("ordered",(function(){Ps(this,"ordered",!0)})),cs.addProperty("any",(function(){Ps(this,"any",!0),Ps(this,"all",!1)})),cs.addProperty("all",(function(){Ps(this,"all",!0),Ps(this,"any",!1)}));var Rs={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function Bs(t,e){e&&Ps(this,"message",e),t=t.toLowerCase();var n=Ps(this,"object"),r=~["a","e","i","o","u"].indexOf(t.charAt(0))?"an ":"a ";const i=ki(n).toLowerCase();Rs.function.includes(t)?this.assert(Rs[t].includes(i),"expected #{this} to be "+r+t,"expected #{this} not to be "+r+t):this.assert(t===i,"expected #{this} to be "+r+t,"expected #{this} not to be "+r+t)}function Ds(t,e){return As(t)&&As(e)||t===e}function Ls(){Ps(this,"contains",!0)}function Fs(t,e){e&&Ps(this,"message",e);var n=Ps(this,"object"),r=ki(n).toLowerCase(),i=Ps(this,"message"),o=Ps(this,"negate"),s=Ps(this,"ssfi"),c=Ps(this,"deep"),a=c?"deep ":"",u=c?Ps(this,"eql"):Ds;i=i?i+": ":"";var l=!1;switch(r){case"string":l=-1!==n.indexOf(t);break;case"weakset":if(c)throw new Mi(i+"unable to use .deep.include with WeakSet",void 0,s);l=n.has(t);break;case"map":n.forEach((function(e){l=l||u(e,t)}));break;case"set":c?n.forEach((function(e){l=l||u(e,t)})):l=n.has(t);break;case"array":l=c?n.some((function(e){return u(e,t)})):-1!==n.indexOf(t);break;default:if(t!==Object(t))throw new Mi(i+"the given combination of arguments ("+r+" and "+ki(t).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 "+ki(t).toLowerCase(),void 0,s);var f=Object.keys(t),h=null,d=0;if(f.forEach((function(e){var r=new cs(n);if(Io(this,r,!0),Ps(r,"lockSsfi",!0),o&&1!==f.length)try{r.property(e,t[e])}catch(t){if(!gi.compatibleConstructor(t,Mi))throw t;null===h&&(h=t),d++}else r.property(e,t[e])}),this),o&&f.length>1&&d===f.length)throw h;return}this.assert(l,"expected #{this} to "+a+"include "+_o(t),"expected #{this} to not "+a+"include "+_o(t))}function qs(){var t=Ps(this,"object");this.assert(null!=t,"expected #{this} to exist","expected #{this} to not exist")}function Js(){var t=ki(Ps(this,"object"));this.assert("Arguments"===t,"expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments")}function Us(t,e){e&&Ps(this,"message",e);var n=Ps(this,"object");if(Ps(this,"deep")){var r=Ps(this,"lockSsfi");Ps(this,"lockSsfi",!0),this.eql(t),Ps(this,"lockSsfi",r)}else this.assert(t===n,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",t,this._obj,!0)}function Ws(t,e){e&&Ps(this,"message",e);var n=Ps(this,"eql");this.assert(n(t,Ps(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",t,this._obj,!0)}function Hs(t,e){e&&Ps(this,"message",e);var n=Ps(this,"object"),r=Ps(this,"doLength"),i=Ps(this,"message"),o=i?i+": ":"",s=Ps(this,"ssfi"),c=ki(n).toLowerCase(),a=ki(t).toLowerCase();if(r&&"map"!==c&&"set"!==c&&new cs(n,i,s,!0).to.have.property("length"),!r&&"date"===c&&"date"!==a)throw new Mi(o+"the argument to above must be a date",void 0,s);if(!Ns(t)&&(r||Ns(n)))throw new Mi(o+"the argument to above must be a number",void 0,s);if(!r&&"date"!==c&&!Ns(n))throw new Mi(o+"expected "+("string"===c?"'"+n+"'":n)+" to be a number or a date",void 0,s);if(r){var u,l="length";"map"===c||"set"===c?(l="size",u=n.size):u=n.length,this.assert(u>t,"expected #{this} to have a "+l+" above #{exp} but got #{act}","expected #{this} to not have a "+l+" above #{exp}",t,u)}else this.assert(n>t,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",t)}function Xs(t,e){e&&Ps(this,"message",e);var n,r=Ps(this,"object"),i=Ps(this,"doLength"),o=Ps(this,"message"),s=o?o+": ":"",c=Ps(this,"ssfi"),a=ki(r).toLowerCase(),u=ki(t).toLowerCase(),l=!0;if(i&&"map"!==a&&"set"!==a&&new cs(r,o,c,!0).to.have.property("length"),i||"date"!==a||"date"===u)if(Ns(t)||!i&&!Ns(r))if(i||"date"===a||Ns(r))l=!1;else{n=s+"expected "+("string"===a?"'"+r+"'":r)+" to be a number or a date"}else n=s+"the argument to least must be a number";else n=s+"the argument to least must be a date";if(l)throw new Mi(n,void 0,c);if(i){var f,h="length";"map"===a||"set"===a?(h="size",f=r.size):f=r.length,this.assert(f>=t,"expected #{this} to have a "+h+" at least #{exp} but got #{act}","expected #{this} to have a "+h+" below #{exp}",t,f)}else this.assert(r>=t,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",t)}function zs(t,e){e&&Ps(this,"message",e);var n,r=Ps(this,"object"),i=Ps(this,"doLength"),o=Ps(this,"message"),s=o?o+": ":"",c=Ps(this,"ssfi"),a=ki(r).toLowerCase(),u=ki(t).toLowerCase(),l=!0;if(i&&"map"!==a&&"set"!==a&&new cs(r,o,c,!0).to.have.property("length"),i||"date"!==a||"date"===u)if(Ns(t)||!i&&!Ns(r))if(i||"date"===a||Ns(r))l=!1;else{n=s+"expected "+("string"===a?"'"+r+"'":r)+" to be a number or a date"}else n=s+"the argument to below must be a number";else n=s+"the argument to below must be a date";if(l)throw new Mi(n,void 0,c);if(i){var f,h="length";"map"===a||"set"===a?(h="size",f=r.size):f=r.length,this.assert(f<t,"expected #{this} to have a "+h+" below #{exp} but got #{act}","expected #{this} to not have a "+h+" below #{exp}",t,f)}else this.assert(r<t,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",t)}function Vs(t,e){e&&Ps(this,"message",e);var n,r=Ps(this,"object"),i=Ps(this,"doLength"),o=Ps(this,"message"),s=o?o+": ":"",c=Ps(this,"ssfi"),a=ki(r).toLowerCase(),u=ki(t).toLowerCase(),l=!0;if(i&&"map"!==a&&"set"!==a&&new cs(r,o,c,!0).to.have.property("length"),i||"date"!==a||"date"===u)if(Ns(t)||!i&&!Ns(r))if(i||"date"===a||Ns(r))l=!1;else{n=s+"expected "+("string"===a?"'"+r+"'":r)+" to be a number or a date"}else n=s+"the argument to most must be a number";else n=s+"the argument to most must be a date";if(l)throw new Mi(n,void 0,c);if(i){var f,h="length";"map"===a||"set"===a?(h="size",f=r.size):f=r.length,this.assert(f<=t,"expected #{this} to have a "+h+" at most #{exp} but got #{act}","expected #{this} to have a "+h+" above #{exp}",t,f)}else this.assert(r<=t,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",t)}function Ks(t,e){e&&Ps(this,"message",e);var n=Ps(this,"object"),r=Ps(this,"ssfi"),i=Ps(this,"message");try{var o=n instanceof t}catch(e){if(e instanceof TypeError)throw new Mi((i=i?i+": ":"")+"The instanceof assertion needs a constructor but "+ki(t)+" was given.",void 0,r);throw e}var s=Cs(t);null==s&&(s="an unnamed constructor"),this.assert(o,"expected #{this} to be an instance of "+s,"expected #{this} to not be an instance of "+s)}function Gs(t,e,n){n&&Ps(this,"message",n);var r=Ps(this,"nested"),i=Ps(this,"own"),o=Ps(this,"message"),s=Ps(this,"object"),c=Ps(this,"ssfi"),a=typeof t;if(o=o?o+": ":"",r){if("string"!==a)throw new Mi(o+"the argument to property must be a string when using nested syntax",void 0,c)}else if("string"!==a&&"number"!==a&&"symbol"!==a)throw new Mi(o+"the argument to property must be a string, number, or symbol",void 0,c);if(r&&i)throw new Mi(o+'The "nested" and "own" flags cannot be combined.',void 0,c);if(null==s)throw new Mi(o+"Target cannot be null or undefined.",void 0,c);var u,l=Ps(this,"deep"),f=Ps(this,"negate"),h=r?ss(s,t):null,d=r?h.value:s[t],p=l?Ps(this,"eql"):(t,e)=>t===e,b="";l&&(b+="deep "),i&&(b+="own "),r&&(b+="nested "),b+="property ",u=i?Object.prototype.hasOwnProperty.call(s,t):r?h.exists:rs(s,t),f&&1!==arguments.length||this.assert(u,"expected #{this} to have "+b+_o(t),"expected #{this} to not have "+b+_o(t)),arguments.length>1&&this.assert(u&&p(e,d),"expected #{this} to have "+b+_o(t)+" of #{exp}, but got #{act}","expected #{this} to not have "+b+_o(t)+" of #{act}",e,d),Ps(this,"object",d)}function Zs(t,e,n){Ps(this,"own",!0),Gs.apply(this,arguments)}function Ys(t,e,n){"string"==typeof e&&(n=e,e=null),n&&Ps(this,"message",n);var r=Ps(this,"object"),i=Object.getOwnPropertyDescriptor(Object(r),t),o=Ps(this,"eql");i&&e?this.assert(o(e,i),"expected the own property descriptor for "+_o(t)+" on #{this} to match "+_o(e)+", got "+_o(i),"expected the own property descriptor for "+_o(t)+" on #{this} to not match "+_o(e),e,i,!0):this.assert(i,"expected #{this} to have an own property descriptor for "+_o(t),"expected #{this} to not have an own property descriptor for "+_o(t)),Ps(this,"object",i)}function Qs(){Ps(this,"doLength",!0)}function tc(t,e){e&&Ps(this,"message",e);var n,r=Ps(this,"object"),i=ki(r).toLowerCase(),o=Ps(this,"message"),s=Ps(this,"ssfi"),c="length";switch(i){case"map":case"set":c="size",n=r.size;break;default:new cs(r,o,s,!0).to.have.property("length"),n=r.length}this.assert(n==t,"expected #{this} to have a "+c+" of #{exp} but got #{act}","expected #{this} to not have a "+c+" of #{act}",t,n)}function ec(t,e){e&&Ps(this,"message",e);var n=Ps(this,"object");this.assert(t.exec(n),"expected #{this} to match "+t,"expected #{this} not to match "+t)}function nc(t){var e,n,r=Ps(this,"object"),i=ki(r),o=ki(t),s=Ps(this,"ssfi"),c=Ps(this,"deep"),a="",u=!0,l=Ps(this,"message"),f=(l=l?l+": ":"")+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if("Map"===i||"Set"===i)a=c?"deeply ":"",n=[],r.forEach((function(t,e){n.push(e)})),"Array"!==o&&(t=Array.prototype.slice.call(arguments));else{switch(n=ks(r),o){case"Array":if(arguments.length>1)throw new Mi(f,void 0,s);break;case"Object":if(arguments.length>1)throw new Mi(f,void 0,s);t=Object.keys(t);break;default:t=Array.prototype.slice.call(arguments)}t=t.map((function(t){return"symbol"==typeof t?t:String(t)}))}if(!t.length)throw new Mi(l+"keys required",void 0,s);var h=t.length,d=Ps(this,"any"),p=Ps(this,"all"),b=t,m=c?Ps(this,"eql"):(t,e)=>t===e;if(d||p||(p=!0),d&&(u=b.some((function(t){return n.some((function(e){return m(t,e)}))}))),p&&(u=b.every((function(t){return n.some((function(e){return m(t,e)}))})),Ps(this,"contains")||(u=u&&t.length==n.length)),h>1){var y=(t=t.map((function(t){return _o(t)}))).pop();p&&(e=t.join(", ")+", and "+y),d&&(e=t.join(", ")+", or "+y)}else e=_o(t[0]);e=(h>1?"keys ":"key ")+e,e=(Ps(this,"contains")?"contain ":"have ")+e,this.assert(u,"expected #{this} to "+a+e,"expected #{this} to not "+a+e,b.slice(0).sort(Os),n.sort(Os),!0)}function rc(t,e,n){n&&Ps(this,"message",n);var r=Ps(this,"object"),i=Ps(this,"ssfi"),o=Ps(this,"message"),s=Ps(this,"negate")||!1;let c;new cs(r,o,i,!0).is.a("function"),(Is(t)||"string"==typeof t)&&(e=t,t=null);let a=!1;try{r()}catch(t){a=!0,c=t}var u=void 0===t&&void 0===e,l=Boolean(t&&e),f=!1,h=!1;if(u||!u&&!s){var d="an error";t instanceof Error?d="#{exp}":t&&(d=gi.getConstructorName(t));let e=c;if(c instanceof Error)e=c.toString();else if("string"==typeof c)e=c;else if(c&&("object"==typeof c||"function"==typeof c))try{e=gi.getConstructorName(c)}catch(t){}this.assert(a,"expected #{this} to throw "+d,"expected #{this} to not throw an error but #{act} was thrown",t&&t.toString(),e)}if(t&&c){if(t instanceof Error)gi.compatibleInstance(c,t)===s&&(l&&s?f=!0:this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(c&&!s?" but #{act} was thrown":""),t.toString(),c.toString()));gi.compatibleConstructor(c,t)===s&&(l&&s?f=!0:this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(c?" but #{act} was thrown":""),t instanceof Error?t.toString():t&&gi.getConstructorName(t),c instanceof Error?c.toString():c&&gi.getConstructorName(c)))}if(c&&null!=e){var p="including";Is(e)&&(p="matching"),gi.compatibleMessage(c,e)===s&&(l&&s?h=!0:this.assert(s,"expected #{this} to throw error "+p+" #{exp} but got #{act}","expected #{this} to throw error not "+p+" #{exp}",e,gi.getMessage(c)))}f&&h&&this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(c?" but #{act} was thrown":""),t instanceof Error?t.toString():t&&gi.getConstructorName(t),c instanceof Error?c.toString():c&&gi.getConstructorName(c)),Ps(this,"object",c)}function ic(t,e){e&&Ps(this,"message",e);var n=Ps(this,"object"),r=Ps(this,"itself"),i="function"!=typeof n||r?n[t]:n.prototype[t];this.assert("function"==typeof i,"expected #{this} to respond to "+_o(t),"expected #{this} to not respond to "+_o(t))}function oc(t,e){e&&Ps(this,"message",e);var n=t(Ps(this,"object"));this.assert(n,"expected #{this} to satisfy "+Mo(t),"expected #{this} to not satisfy"+Mo(t),!Ps(this,"negate"),n)}function sc(t,e,n){n&&Ps(this,"message",n);var r=Ps(this,"object"),i=Ps(this,"message"),o=Ps(this,"ssfi");new cs(r,i,o,!0).is.numeric;let s="A `delta` value is required for `closeTo`";if(null==e)throw new Mi(i?`${i}: ${s}`:s,void 0,o);if(new cs(e,i,o,!0).is.numeric,s="A `expected` value is required for `closeTo`",null==t)throw new Mi(i?`${i}: ${s}`:s,void 0,o);new cs(t,i,o,!0).is.numeric;const c=pi((t=>t<0n?-t:t),"abs"),a=pi((t=>parseFloat(parseFloat(t).toPrecision(12))),"strip");this.assert(a(c(r-t))<=e,"expected #{this} to be close to "+t+" +/- "+e,"expected #{this} not to be close to "+t+" +/- "+e)}function cc(t,e,n,r,i){let o=Array.from(e),s=Array.from(t);if(!r){if(s.length!==o.length)return!1;o=o.slice()}return s.every((function(t,e){if(i)return n?n(t,o[e]):t===o[e];if(!n){var s=o.indexOf(t);return-1!==s&&(r||o.splice(s,1),!0)}return o.some((function(e,i){return!!n(t,e)&&(r||o.splice(i,1),!0)}))}))}function ac(t,e){e&&Ps(this,"message",e);var n=Ps(this,"object"),r=Ps(this,"message"),i=Ps(this,"ssfi"),o=Ps(this,"contains"),s=Ps(this,"deep"),c=Ps(this,"eql");new cs(t,r,i,!0).to.be.an("array"),o?this.assert(t.some((function(t){return n.indexOf(t)>-1})),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",t,n):s?this.assert(t.some((function(t){return c(n,t)})),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",t,n):this.assert(t.indexOf(n)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",t,n)}function uc(t,e,n){n&&Ps(this,"message",n);var r,i=Ps(this,"object"),o=Ps(this,"message"),s=Ps(this,"ssfi");new cs(i,o,s,!0).is.a("function"),e?(new cs(t,o,s,!0).to.have.property(e),r=t[e]):(new cs(t,o,s,!0).is.a("function"),r=t()),i();var c=null==e?t():t[e],a=null==e?r:"."+e;Ps(this,"deltaMsgObj",a),Ps(this,"initialDeltaValue",r),Ps(this,"finalDeltaValue",c),Ps(this,"deltaBehavior","change"),Ps(this,"realDelta",c!==r),this.assert(r!==c,"expected "+a+" to change","expected "+a+" to not change")}function lc(t,e,n){n&&Ps(this,"message",n);var r,i=Ps(this,"object"),o=Ps(this,"message"),s=Ps(this,"ssfi");new cs(i,o,s,!0).is.a("function"),e?(new cs(t,o,s,!0).to.have.property(e),r=t[e]):(new cs(t,o,s,!0).is.a("function"),r=t()),new cs(r,o,s,!0).is.a("number"),i();var c=null==e?t():t[e],a=null==e?r:"."+e;Ps(this,"deltaMsgObj",a),Ps(this,"initialDeltaValue",r),Ps(this,"finalDeltaValue",c),Ps(this,"deltaBehavior","increase"),Ps(this,"realDelta",c-r),this.assert(c-r>0,"expected "+a+" to increase","expected "+a+" to not increase")}function fc(t,e,n){n&&Ps(this,"message",n);var r,i=Ps(this,"object"),o=Ps(this,"message"),s=Ps(this,"ssfi");new cs(i,o,s,!0).is.a("function"),e?(new cs(t,o,s,!0).to.have.property(e),r=t[e]):(new cs(t,o,s,!0).is.a("function"),r=t()),new cs(r,o,s,!0).is.a("number"),i();var c=null==e?t():t[e],a=null==e?r:"."+e;Ps(this,"deltaMsgObj",a),Ps(this,"initialDeltaValue",r),Ps(this,"finalDeltaValue",c),Ps(this,"deltaBehavior","decrease"),Ps(this,"realDelta",r-c),this.assert(c-r<0,"expected "+a+" to decrease","expected "+a+" to not decrease")}function hc(t,e){e&&Ps(this,"message",e);var n,r=Ps(this,"deltaMsgObj"),i=Ps(this,"initialDeltaValue"),o=Ps(this,"finalDeltaValue"),s=Ps(this,"deltaBehavior"),c=Ps(this,"realDelta");n="change"===s?Math.abs(o-i)===Math.abs(t):c===Math.abs(t),this.assert(n,"expected "+r+" to "+s+" by "+t,"expected "+r+" to not "+s+" by "+t)}function dc(t,e){return t===e||typeof e==typeof t&&("object"!=typeof t||null===t?t===e:!!e&&(Array.isArray(t)?!!Array.isArray(e)&&t.every((function(t){return e.some((function(e){return dc(t,e)}))})):t instanceof Date?e instanceof Date&&t.getTime()===e.getTime():Object.keys(t).every((function(n){var r=t[n],i=e[n];return"object"==typeof r&&null!==r&&null!==i?dc(r,i):"function"==typeof r?r(i):i===r}))))}function pc(t,e){return new cs(t,e)}pi(Bs,"an"),cs.addChainableMethod("an",Bs),cs.addChainableMethod("a",Bs),pi(Ds,"SameValueZero"),pi(Ls,"includeChainingBehavior"),pi(Fs,"include"),cs.addChainableMethod("include",Fs,Ls),cs.addChainableMethod("contain",Fs,Ls),cs.addChainableMethod("contains",Fs,Ls),cs.addChainableMethod("includes",Fs,Ls),cs.addProperty("ok",(function(){this.assert(Ps(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")})),cs.addProperty("true",(function(){this.assert(!0===Ps(this,"object"),"expected #{this} to be true","expected #{this} to be false",!Ps(this,"negate"))})),cs.addProperty("numeric",(function(){const t=Ps(this,"object");this.assert(["Number","BigInt"].includes(ki(t)),"expected #{this} to be numeric","expected #{this} to not be numeric",!Ps(this,"negate"))})),cs.addProperty("callable",(function(){const t=Ps(this,"object"),e=Ps(this,"ssfi"),n=Ps(this,"message"),r=n?`${n}: `:"",i=Ps(this,"negate"),o=i?`${r}expected ${_o(t)} not to be a callable function`:`${r}expected ${_o(t)} to be a callable function`,s=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(ki(t));if(s&&i||!s&&!i)throw new Mi(o,void 0,e)})),cs.addProperty("false",(function(){this.assert(!1===Ps(this,"object"),"expected #{this} to be false","expected #{this} to be true",!!Ps(this,"negate"))})),cs.addProperty("null",(function(){this.assert(null===Ps(this,"object"),"expected #{this} to be null","expected #{this} not to be null")})),cs.addProperty("undefined",(function(){this.assert(void 0===Ps(this,"object"),"expected #{this} to be undefined","expected #{this} not to be undefined")})),cs.addProperty("NaN",(function(){this.assert(As(Ps(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")})),pi(qs,"assertExist"),cs.addProperty("exist",qs),cs.addProperty("exists",qs),cs.addProperty("empty",(function(){var t,e=Ps(this,"object"),n=Ps(this,"ssfi"),r=Ps(this,"message");switch(r=r?r+": ":"",ki(e).toLowerCase()){case"array":case"string":t=e.length;break;case"map":case"set":t=e.size;break;case"weakmap":case"weakset":throw new Mi(r+".empty was passed a weak collection",void 0,n);case"function":var i=r+".empty was passed a function "+Cs(e);throw new Mi(i.trim(),void 0,n);default:if(e!==Object(e))throw new Mi(r+".empty was passed non-string primitive "+_o(e),void 0,n);t=Object.keys(e).length}this.assert(0===t,"expected #{this} to be empty","expected #{this} not to be empty")})),pi(Js,"checkArguments"),cs.addProperty("arguments",Js),cs.addProperty("Arguments",Js),pi(Us,"assertEqual"),cs.addMethod("equal",Us),cs.addMethod("equals",Us),cs.addMethod("eq",Us),pi(Ws,"assertEql"),cs.addMethod("eql",Ws),cs.addMethod("eqls",Ws),pi(Hs,"assertAbove"),cs.addMethod("above",Hs),cs.addMethod("gt",Hs),cs.addMethod("greaterThan",Hs),pi(Xs,"assertLeast"),cs.addMethod("least",Xs),cs.addMethod("gte",Xs),cs.addMethod("greaterThanOrEqual",Xs),pi(zs,"assertBelow"),cs.addMethod("below",zs),cs.addMethod("lt",zs),cs.addMethod("lessThan",zs),pi(Vs,"assertMost"),cs.addMethod("most",Vs),cs.addMethod("lte",Vs),cs.addMethod("lessThanOrEqual",Vs),cs.addMethod("within",(function(t,e,n){n&&Ps(this,"message",n);var r,i=Ps(this,"object"),o=Ps(this,"doLength"),s=Ps(this,"message"),c=s?s+": ":"",a=Ps(this,"ssfi"),u=ki(i).toLowerCase(),l=ki(t).toLowerCase(),f=ki(e).toLowerCase(),h=!0,d="date"===l&&"date"===f?t.toISOString()+".."+e.toISOString():t+".."+e;if(o&&"map"!==u&&"set"!==u&&new cs(i,s,a,!0).to.have.property("length"),o||"date"!==u||"date"===l&&"date"===f)if(Ns(t)&&Ns(e)||!o&&!Ns(i))if(o||"date"===u||Ns(i))h=!1;else{r=c+"expected "+("string"===u?"'"+i+"'":i)+" to be a number or a date"}else r=c+"the arguments to within must be numbers";else r=c+"the arguments to within must be dates";if(h)throw new Mi(r,void 0,a);if(o){var p,b="length";"map"===u||"set"===u?(b="size",p=i.size):p=i.length,this.assert(p>=t&&p<=e,"expected #{this} to have a "+b+" within "+d,"expected #{this} to not have a "+b+" within "+d)}else this.assert(i>=t&&i<=e,"expected #{this} to be within "+d,"expected #{this} to not be within "+d)})),pi(Ks,"assertInstanceOf"),cs.addMethod("instanceof",Ks),cs.addMethod("instanceOf",Ks),pi(Gs,"assertProperty"),cs.addMethod("property",Gs),pi(Zs,"assertOwnProperty"),cs.addMethod("ownProperty",Zs),cs.addMethod("haveOwnProperty",Zs),pi(Ys,"assertOwnPropertyDescriptor"),cs.addMethod("ownPropertyDescriptor",Ys),cs.addMethod("haveOwnPropertyDescriptor",Ys),pi(Qs,"assertLengthChain"),pi(tc,"assertLength"),cs.addChainableMethod("length",tc,Qs),cs.addChainableMethod("lengthOf",tc,Qs),pi(ec,"assertMatch"),cs.addMethod("match",ec),cs.addMethod("matches",ec),cs.addMethod("string",(function(t,e){e&&Ps(this,"message",e);var n=Ps(this,"object");new cs(n,Ps(this,"message"),Ps(this,"ssfi"),!0).is.a("string"),this.assert(~n.indexOf(t),"expected #{this} to contain "+_o(t),"expected #{this} to not contain "+_o(t))})),pi(nc,"assertKeys"),cs.addMethod("keys",nc),cs.addMethod("key",nc),pi(rc,"assertThrows"),cs.addMethod("throw",rc),cs.addMethod("throws",rc),cs.addMethod("Throw",rc),pi(ic,"respondTo"),cs.addMethod("respondTo",ic),cs.addMethod("respondsTo",ic),cs.addProperty("itself",(function(){Ps(this,"itself",!0)})),pi(oc,"satisfy"),cs.addMethod("satisfy",oc),cs.addMethod("satisfies",oc),pi(sc,"closeTo"),cs.addMethod("closeTo",sc),cs.addMethod("approximately",sc),pi(cc,"isSubsetOf"),cs.addMethod("members",(function(t,e){e&&Ps(this,"message",e);var n=Ps(this,"object"),r=Ps(this,"message"),i=Ps(this,"ssfi");new cs(n,r,i,!0).to.be.iterable,new cs(t,r,i,!0).to.be.iterable;var o,s,c,a=Ps(this,"contains"),u=Ps(this,"ordered");a?(s="expected #{this} to be "+(o=u?"an ordered superset":"a superset")+" of #{exp}",c="expected #{this} to not be "+o+" of #{exp}"):(s="expected #{this} to have the same "+(o=u?"ordered members":"members")+" as #{exp}",c="expected #{this} to not have the same "+o+" as #{exp}");var l=Ps(this,"deep")?Ps(this,"eql"):void 0;this.assert(cc(t,n,l,a,u),s,c,t,n,!0)})),cs.addProperty("iterable",(function(t){t&&Ps(this,"message",t);var e=Ps(this,"object");this.assert(null!=e&&e[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",e)})),pi(ac,"oneOf"),cs.addMethod("oneOf",ac),pi(uc,"assertChanges"),cs.addMethod("change",uc),cs.addMethod("changes",uc),pi(lc,"assertIncreases"),cs.addMethod("increase",lc),cs.addMethod("increases",lc),pi(fc,"assertDecreases"),cs.addMethod("decrease",fc),cs.addMethod("decreases",fc),pi(hc,"assertDelta"),cs.addMethod("by",hc),cs.addProperty("extensible",(function(){var t=Ps(this,"object"),e=t===Object(t)&&Object.isExtensible(t);this.assert(e,"expected #{this} to be extensible","expected #{this} to not be extensible")})),cs.addProperty("sealed",(function(){var t=Ps(this,"object"),e=t!==Object(t)||Object.isSealed(t);this.assert(e,"expected #{this} to be sealed","expected #{this} to not be sealed")})),cs.addProperty("frozen",(function(){var t=Ps(this,"object"),e=t!==Object(t)||Object.isFrozen(t);this.assert(e,"expected #{this} to be frozen","expected #{this} to not be frozen")})),cs.addProperty("finite",(function(t){var e=Ps(this,"object");this.assert("number"==typeof e&&isFinite(e),"expected #{this} to be a finite number","expected #{this} to not be a finite number")})),pi(dc,"compareSubset"),cs.addMethod("containSubset",(function(t){const e=Oi(this,"object"),n=Ao.showDiff;this.assert(dc(t,e),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",t,e,n)})),pi(pc,"expect"),pc.fail=function(t,e,n,r){throw arguments.length<2&&(n=t,t=void 0),new Mi(n=n||"expect.fail()",{actual:t,expected:e,operator:r},pc.fail)};var bc={};function mc(){function t(){return this instanceof String||this instanceof Number||this instanceof Boolean||"function"==typeof Symbol&&this instanceof Symbol||"function"==typeof BigInt&&this instanceof BigInt?new cs(this.valueOf(),null,t):new cs(this,null,t)}function e(t){Object.defineProperty(this,"should",{value:t,enumerable:!0,configurable:!0,writable:!0})}pi(t,"shouldGetter"),pi(e,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:e,get:t,configurable:!0});var n={fail:function(t,e,r,i){throw arguments.length<2&&(r=t,t=void 0),new Mi(r=r||"should.fail()",{actual:t,expected:e,operator:i},n.fail)},equal:function(t,e,n){new cs(t,n).to.equal(e)},Throw:function(t,e,n,r){new cs(t,r).to.Throw(e,n)},exist:function(t,e){new cs(t,e).to.exist},not:{}};return n.not.equal=function(t,e,n){new cs(t,n).to.not.equal(e)},n.not.Throw=function(t,e,n,r){new cs(t,r).to.not.Throw(e,n)},n.not.exist=function(t,e){new cs(t,e).to.not.exist},n.throw=n.Throw,n.not.throw=n.not.Throw,n}bi(bc,{Should:()=>gc,should:()=>yc}),pi(mc,"loadShould");var yc=mc,gc=mc;function wc(t,e){new cs(null,null,wc,!0).assert(t,e,"[ negation message unavailable ]")}pi(wc,"assert"),wc.fail=function(t,e,n,r){throw arguments.length<2&&(n=t,t=void 0),new Mi(n=n||"assert.fail()",{actual:t,expected:e,operator:r},wc.fail)},wc.isOk=function(t,e){new cs(t,e,wc.isOk,!0).is.ok},wc.isNotOk=function(t,e){new cs(t,e,wc.isNotOk,!0).is.not.ok},wc.equal=function(t,e,n){var r=new cs(t,n,wc.equal,!0);r.assert(e==Oi(r,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",e,t,!0)},wc.notEqual=function(t,e,n){var r=new cs(t,n,wc.notEqual,!0);r.assert(e!=Oi(r,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",e,t,!0)},wc.strictEqual=function(t,e,n){new cs(t,n,wc.strictEqual,!0).to.equal(e)},wc.notStrictEqual=function(t,e,n){new cs(t,n,wc.notStrictEqual,!0).to.not.equal(e)},wc.deepEqual=wc.deepStrictEqual=function(t,e,n){new cs(t,n,wc.deepEqual,!0).to.eql(e)},wc.notDeepEqual=function(t,e,n){new cs(t,n,wc.notDeepEqual,!0).to.not.eql(e)},wc.isAbove=function(t,e,n){new cs(t,n,wc.isAbove,!0).to.be.above(e)},wc.isAtLeast=function(t,e,n){new cs(t,n,wc.isAtLeast,!0).to.be.least(e)},wc.isBelow=function(t,e,n){new cs(t,n,wc.isBelow,!0).to.be.below(e)},wc.isAtMost=function(t,e,n){new cs(t,n,wc.isAtMost,!0).to.be.most(e)},wc.isTrue=function(t,e){new cs(t,e,wc.isTrue,!0).is.true},wc.isNotTrue=function(t,e){new cs(t,e,wc.isNotTrue,!0).to.not.equal(!0)},wc.isFalse=function(t,e){new cs(t,e,wc.isFalse,!0).is.false},wc.isNotFalse=function(t,e){new cs(t,e,wc.isNotFalse,!0).to.not.equal(!1)},wc.isNull=function(t,e){new cs(t,e,wc.isNull,!0).to.equal(null)},wc.isNotNull=function(t,e){new cs(t,e,wc.isNotNull,!0).to.not.equal(null)},wc.isNaN=function(t,e){new cs(t,e,wc.isNaN,!0).to.be.NaN},wc.isNotNaN=function(t,e){new cs(t,e,wc.isNotNaN,!0).not.to.be.NaN},wc.exists=function(t,e){new cs(t,e,wc.exists,!0).to.exist},wc.notExists=function(t,e){new cs(t,e,wc.notExists,!0).to.not.exist},wc.isUndefined=function(t,e){new cs(t,e,wc.isUndefined,!0).to.equal(void 0)},wc.isDefined=function(t,e){new cs(t,e,wc.isDefined,!0).to.not.equal(void 0)},wc.isCallable=function(t,e){new cs(t,e,wc.isCallable,!0).is.callable},wc.isNotCallable=function(t,e){new cs(t,e,wc.isNotCallable,!0).is.not.callable},wc.isObject=function(t,e){new cs(t,e,wc.isObject,!0).to.be.a("object")},wc.isNotObject=function(t,e){new cs(t,e,wc.isNotObject,!0).to.not.be.a("object")},wc.isArray=function(t,e){new cs(t,e,wc.isArray,!0).to.be.an("array")},wc.isNotArray=function(t,e){new cs(t,e,wc.isNotArray,!0).to.not.be.an("array")},wc.isString=function(t,e){new cs(t,e,wc.isString,!0).to.be.a("string")},wc.isNotString=function(t,e){new cs(t,e,wc.isNotString,!0).to.not.be.a("string")},wc.isNumber=function(t,e){new cs(t,e,wc.isNumber,!0).to.be.a("number")},wc.isNotNumber=function(t,e){new cs(t,e,wc.isNotNumber,!0).to.not.be.a("number")},wc.isNumeric=function(t,e){new cs(t,e,wc.isNumeric,!0).is.numeric},wc.isNotNumeric=function(t,e){new cs(t,e,wc.isNotNumeric,!0).is.not.numeric},wc.isFinite=function(t,e){new cs(t,e,wc.isFinite,!0).to.be.finite},wc.isBoolean=function(t,e){new cs(t,e,wc.isBoolean,!0).to.be.a("boolean")},wc.isNotBoolean=function(t,e){new cs(t,e,wc.isNotBoolean,!0).to.not.be.a("boolean")},wc.typeOf=function(t,e,n){new cs(t,n,wc.typeOf,!0).to.be.a(e)},wc.notTypeOf=function(t,e,n){new cs(t,n,wc.notTypeOf,!0).to.not.be.a(e)},wc.instanceOf=function(t,e,n){new cs(t,n,wc.instanceOf,!0).to.be.instanceOf(e)},wc.notInstanceOf=function(t,e,n){new cs(t,n,wc.notInstanceOf,!0).to.not.be.instanceOf(e)},wc.include=function(t,e,n){new cs(t,n,wc.include,!0).include(e)},wc.notInclude=function(t,e,n){new cs(t,n,wc.notInclude,!0).not.include(e)},wc.deepInclude=function(t,e,n){new cs(t,n,wc.deepInclude,!0).deep.include(e)},wc.notDeepInclude=function(t,e,n){new cs(t,n,wc.notDeepInclude,!0).not.deep.include(e)},wc.nestedInclude=function(t,e,n){new cs(t,n,wc.nestedInclude,!0).nested.include(e)},wc.notNestedInclude=function(t,e,n){new cs(t,n,wc.notNestedInclude,!0).not.nested.include(e)},wc.deepNestedInclude=function(t,e,n){new cs(t,n,wc.deepNestedInclude,!0).deep.nested.include(e)},wc.notDeepNestedInclude=function(t,e,n){new cs(t,n,wc.notDeepNestedInclude,!0).not.deep.nested.include(e)},wc.ownInclude=function(t,e,n){new cs(t,n,wc.ownInclude,!0).own.include(e)},wc.notOwnInclude=function(t,e,n){new cs(t,n,wc.notOwnInclude,!0).not.own.include(e)},wc.deepOwnInclude=function(t,e,n){new cs(t,n,wc.deepOwnInclude,!0).deep.own.include(e)},wc.notDeepOwnInclude=function(t,e,n){new cs(t,n,wc.notDeepOwnInclude,!0).not.deep.own.include(e)},wc.match=function(t,e,n){new cs(t,n,wc.match,!0).to.match(e)},wc.notMatch=function(t,e,n){new cs(t,n,wc.notMatch,!0).to.not.match(e)},wc.property=function(t,e,n){new cs(t,n,wc.property,!0).to.have.property(e)},wc.notProperty=function(t,e,n){new cs(t,n,wc.notProperty,!0).to.not.have.property(e)},wc.propertyVal=function(t,e,n,r){new cs(t,r,wc.propertyVal,!0).to.have.property(e,n)},wc.notPropertyVal=function(t,e,n,r){new cs(t,r,wc.notPropertyVal,!0).to.not.have.property(e,n)},wc.deepPropertyVal=function(t,e,n,r){new cs(t,r,wc.deepPropertyVal,!0).to.have.deep.property(e,n)},wc.notDeepPropertyVal=function(t,e,n,r){new cs(t,r,wc.notDeepPropertyVal,!0).to.not.have.deep.property(e,n)},wc.ownProperty=function(t,e,n){new cs(t,n,wc.ownProperty,!0).to.have.own.property(e)},wc.notOwnProperty=function(t,e,n){new cs(t,n,wc.notOwnProperty,!0).to.not.have.own.property(e)},wc.ownPropertyVal=function(t,e,n,r){new cs(t,r,wc.ownPropertyVal,!0).to.have.own.property(e,n)},wc.notOwnPropertyVal=function(t,e,n,r){new cs(t,r,wc.notOwnPropertyVal,!0).to.not.have.own.property(e,n)},wc.deepOwnPropertyVal=function(t,e,n,r){new cs(t,r,wc.deepOwnPropertyVal,!0).to.have.deep.own.property(e,n)},wc.notDeepOwnPropertyVal=function(t,e,n,r){new cs(t,r,wc.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(e,n)},wc.nestedProperty=function(t,e,n){new cs(t,n,wc.nestedProperty,!0).to.have.nested.property(e)},wc.notNestedProperty=function(t,e,n){new cs(t,n,wc.notNestedProperty,!0).to.not.have.nested.property(e)},wc.nestedPropertyVal=function(t,e,n,r){new cs(t,r,wc.nestedPropertyVal,!0).to.have.nested.property(e,n)},wc.notNestedPropertyVal=function(t,e,n,r){new cs(t,r,wc.notNestedPropertyVal,!0).to.not.have.nested.property(e,n)},wc.deepNestedPropertyVal=function(t,e,n,r){new cs(t,r,wc.deepNestedPropertyVal,!0).to.have.deep.nested.property(e,n)},wc.notDeepNestedPropertyVal=function(t,e,n,r){new cs(t,r,wc.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(e,n)},wc.lengthOf=function(t,e,n){new cs(t,n,wc.lengthOf,!0).to.have.lengthOf(e)},wc.hasAnyKeys=function(t,e,n){new cs(t,n,wc.hasAnyKeys,!0).to.have.any.keys(e)},wc.hasAllKeys=function(t,e,n){new cs(t,n,wc.hasAllKeys,!0).to.have.all.keys(e)},wc.containsAllKeys=function(t,e,n){new cs(t,n,wc.containsAllKeys,!0).to.contain.all.keys(e)},wc.doesNotHaveAnyKeys=function(t,e,n){new cs(t,n,wc.doesNotHaveAnyKeys,!0).to.not.have.any.keys(e)},wc.doesNotHaveAllKeys=function(t,e,n){new cs(t,n,wc.doesNotHaveAllKeys,!0).to.not.have.all.keys(e)},wc.hasAnyDeepKeys=function(t,e,n){new cs(t,n,wc.hasAnyDeepKeys,!0).to.have.any.deep.keys(e)},wc.hasAllDeepKeys=function(t,e,n){new cs(t,n,wc.hasAllDeepKeys,!0).to.have.all.deep.keys(e)},wc.containsAllDeepKeys=function(t,e,n){new cs(t,n,wc.containsAllDeepKeys,!0).to.contain.all.deep.keys(e)},wc.doesNotHaveAnyDeepKeys=function(t,e,n){new cs(t,n,wc.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(e)},wc.doesNotHaveAllDeepKeys=function(t,e,n){new cs(t,n,wc.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(e)},wc.throws=function(t,e,n,r){return("string"==typeof e||e instanceof RegExp)&&(n=e,e=null),Oi(new cs(t,r,wc.throws,!0).to.throw(e,n),"object")},wc.doesNotThrow=function(t,e,n,r){("string"==typeof e||e instanceof RegExp)&&(n=e,e=null),new cs(t,r,wc.doesNotThrow,!0).to.not.throw(e,n)},wc.operator=function(t,e,n,r){var i;switch(e){case"==":i=t==n;break;case"===":i=t===n;break;case">":i=t>n;break;case">=":i=t>=n;break;case"<":i=t<n;break;case"<=":i=t<=n;break;case"!=":i=t!=n;break;case"!==":i=t!==n;break;default:throw new Mi((r=r?r+": ":r)+'Invalid operator "'+e+'"',void 0,wc.operator)}var o=new cs(i,r,wc.operator,!0);o.assert(!0===Oi(o,"object"),"expected "+_o(t)+" to be "+e+" "+_o(n),"expected "+_o(t)+" to not be "+e+" "+_o(n))},wc.closeTo=function(t,e,n,r){new cs(t,r,wc.closeTo,!0).to.be.closeTo(e,n)},wc.approximately=function(t,e,n,r){new cs(t,r,wc.approximately,!0).to.be.approximately(e,n)},wc.sameMembers=function(t,e,n){new cs(t,n,wc.sameMembers,!0).to.have.same.members(e)},wc.notSameMembers=function(t,e,n){new cs(t,n,wc.notSameMembers,!0).to.not.have.same.members(e)},wc.sameDeepMembers=function(t,e,n){new cs(t,n,wc.sameDeepMembers,!0).to.have.same.deep.members(e)},wc.notSameDeepMembers=function(t,e,n){new cs(t,n,wc.notSameDeepMembers,!0).to.not.have.same.deep.members(e)},wc.sameOrderedMembers=function(t,e,n){new cs(t,n,wc.sameOrderedMembers,!0).to.have.same.ordered.members(e)},wc.notSameOrderedMembers=function(t,e,n){new cs(t,n,wc.notSameOrderedMembers,!0).to.not.have.same.ordered.members(e)},wc.sameDeepOrderedMembers=function(t,e,n){new cs(t,n,wc.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(e)},wc.notSameDeepOrderedMembers=function(t,e,n){new cs(t,n,wc.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(e)},wc.includeMembers=function(t,e,n){new cs(t,n,wc.includeMembers,!0).to.include.members(e)},wc.notIncludeMembers=function(t,e,n){new cs(t,n,wc.notIncludeMembers,!0).to.not.include.members(e)},wc.includeDeepMembers=function(t,e,n){new cs(t,n,wc.includeDeepMembers,!0).to.include.deep.members(e)},wc.notIncludeDeepMembers=function(t,e,n){new cs(t,n,wc.notIncludeDeepMembers,!0).to.not.include.deep.members(e)},wc.includeOrderedMembers=function(t,e,n){new cs(t,n,wc.includeOrderedMembers,!0).to.include.ordered.members(e)},wc.notIncludeOrderedMembers=function(t,e,n){new cs(t,n,wc.notIncludeOrderedMembers,!0).to.not.include.ordered.members(e)},wc.includeDeepOrderedMembers=function(t,e,n){new cs(t,n,wc.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(e)},wc.notIncludeDeepOrderedMembers=function(t,e,n){new cs(t,n,wc.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(e)},wc.oneOf=function(t,e,n){new cs(t,n,wc.oneOf,!0).to.be.oneOf(e)},wc.isIterable=function(t,e){if(null==t||!t[Symbol.iterator])throw e=e?`${e} expected ${_o(t)} to be an iterable`:`expected ${_o(t)} to be an iterable`,new Mi(e,void 0,wc.isIterable)},wc.changes=function(t,e,n,r){3===arguments.length&&"function"==typeof e&&(r=n,n=null),new cs(t,r,wc.changes,!0).to.change(e,n)},wc.changesBy=function(t,e,n,r,i){if(4===arguments.length&&"function"==typeof e){var o=r;r=n,i=o}else 3===arguments.length&&(r=n,n=null);new cs(t,i,wc.changesBy,!0).to.change(e,n).by(r)},wc.doesNotChange=function(t,e,n,r){return 3===arguments.length&&"function"==typeof e&&(r=n,n=null),new cs(t,r,wc.doesNotChange,!0).to.not.change(e,n)},wc.changesButNotBy=function(t,e,n,r,i){if(4===arguments.length&&"function"==typeof e){var o=r;r=n,i=o}else 3===arguments.length&&(r=n,n=null);new cs(t,i,wc.changesButNotBy,!0).to.change(e,n).but.not.by(r)},wc.increases=function(t,e,n,r){return 3===arguments.length&&"function"==typeof e&&(r=n,n=null),new cs(t,r,wc.increases,!0).to.increase(e,n)},wc.increasesBy=function(t,e,n,r,i){if(4===arguments.length&&"function"==typeof e){var o=r;r=n,i=o}else 3===arguments.length&&(r=n,n=null);new cs(t,i,wc.increasesBy,!0).to.increase(e,n).by(r)},wc.doesNotIncrease=function(t,e,n,r){return 3===arguments.length&&"function"==typeof e&&(r=n,n=null),new cs(t,r,wc.doesNotIncrease,!0).to.not.increase(e,n)},wc.increasesButNotBy=function(t,e,n,r,i){if(4===arguments.length&&"function"==typeof e){var o=r;r=n,i=o}else 3===arguments.length&&(r=n,n=null);new cs(t,i,wc.increasesButNotBy,!0).to.increase(e,n).but.not.by(r)},wc.decreases=function(t,e,n,r){return 3===arguments.length&&"function"==typeof e&&(r=n,n=null),new cs(t,r,wc.decreases,!0).to.decrease(e,n)},wc.decreasesBy=function(t,e,n,r,i){if(4===arguments.length&&"function"==typeof e){var o=r;r=n,i=o}else 3===arguments.length&&(r=n,n=null);new cs(t,i,wc.decreasesBy,!0).to.decrease(e,n).by(r)},wc.doesNotDecrease=function(t,e,n,r){return 3===arguments.length&&"function"==typeof e&&(r=n,n=null),new cs(t,r,wc.doesNotDecrease,!0).to.not.decrease(e,n)},wc.doesNotDecreaseBy=function(t,e,n,r,i){if(4===arguments.length&&"function"==typeof e){var o=r;r=n,i=o}else 3===arguments.length&&(r=n,n=null);return new cs(t,i,wc.doesNotDecreaseBy,!0).to.not.decrease(e,n).by(r)},wc.decreasesButNotBy=function(t,e,n,r,i){if(4===arguments.length&&"function"==typeof e){var o=r;r=n,i=o}else 3===arguments.length&&(r=n,n=null);new cs(t,i,wc.decreasesButNotBy,!0).to.decrease(e,n).but.not.by(r)},wc.ifError=function(t){if(t)throw t},wc.isExtensible=function(t,e){new cs(t,e,wc.isExtensible,!0).to.be.extensible},wc.isNotExtensible=function(t,e){new cs(t,e,wc.isNotExtensible,!0).to.not.be.extensible},wc.isSealed=function(t,e){new cs(t,e,wc.isSealed,!0).to.be.sealed},wc.isNotSealed=function(t,e){new cs(t,e,wc.isNotSealed,!0).to.not.be.sealed},wc.isFrozen=function(t,e){new cs(t,e,wc.isFrozen,!0).to.be.frozen},wc.isNotFrozen=function(t,e){new cs(t,e,wc.isNotFrozen,!0).to.not.be.frozen},wc.isEmpty=function(t,e){new cs(t,e,wc.isEmpty,!0).to.be.empty},wc.isNotEmpty=function(t,e){new cs(t,e,wc.isNotEmpty,!0).to.not.be.empty},wc.containsSubset=function(t,e,n){new cs(t,n).to.containSubset(e)},wc.doesNotContainSubset=function(t,e,n){new cs(t,n).to.not.containSubset(e)};for(const[t,e]of[["isOk","ok"],["isNotOk","notOk"],["throws","throw"],["throws","Throw"],["isExtensible","extensible"],["isNotExtensible","notExtensible"],["isSealed","sealed"],["isNotSealed","notSealed"],["isFrozen","frozen"],["isNotFrozen","notFrozen"],["isEmpty","empty"],["isNotEmpty","notEmpty"],["isCallable","isFunction"],["isNotCallable","isNotFunction"],["containsSubset","containSubset"]])wc[e]=wc[t];var vc=[];function $c(t){const e={use:$c,AssertionError:Mi,util:yi,config:Ao,expect:pc,assert:wc,Assertion:cs,...bc};return~vc.indexOf(t)||(t(e,yi),vc.push(t)),e}pi($c,"use");var xc=Symbol.for("matchers-object"),Sc=Symbol.for("$$jest-matchers-object"),jc=Symbol.for("expect-global"),Ec=Symbol.for("asymmetric-matchers-object"),Oc={toSatisfy(t,e,n){const{printReceived:r,printExpected:i,matcherHint:o}=this.utils,s=e(t);return{pass:s,message:()=>s?`${o(".not.toSatisfy","received","")}\n\nExpected value to not satisfy:\n${n||i(e)}\nReceived:\n${r(t)}`:`${o(".toSatisfy","received","")}\n\nExpected value to satisfy:\n${n||i(e)}\n\nReceived:\n${r(t)}`}},toBeOneOf(t,e){const{equals:n,customTesters:r}=this,{printReceived:i,printExpected:o,matcherHint:s}=this.utils;if(!Array.isArray(e))throw new TypeError(`You must provide an array to ${s(".toBeOneOf")}, not '${typeof e}'.`);const c=0===e.length||e.some((e=>n(e,t,r)));return{pass:c,message:()=>c?`${s(".not.toBeOneOf","received","")}\n\nExpected value to not be one of:\n${o(e)}\nReceived:\n${i(t)}`:`${s(".toBeOneOf","received","")}\n\nExpected value to be one of:\n${o(e)}\n\nReceived:\n${i(t)}`}}},Tc=X.green,kc=X.red,Ac=X.inverse,_c=X.bold,Mc=X.dim;function Cc(t,e="received",n="expected",r={}){const{comment:i="",isDirectExpectCall:o=!1,isNot:s=!1,promise:c="",secondArgument:a="",expectedColor:u=Tc,receivedColor:l=kc,secondArgumentColor:f=Tc}=r;let h="",d="expect";return o||""===e||(h+=Mc(`${d}(`)+l(e),d=")"),""!==c&&(h+=Mc(`${d}.`)+c,d=""),s&&(h+=`${Mc(`${d}.`)}not`,d=""),t.includes(".")?d+=t:(h+=Mc(`${d}.`)+t,d=""),""===n?d+="()":(h+=Mc(`${d}(`)+u(n),a&&(h+=Mc(", ")+f(a)),d=")"),""!==i&&(d+=` // ${i}`),""!==d&&(h+=Mc(d)),h}function Ic(t){return t.replace(/\s+$/gm,(t=>"·".repeat(t.length)))}function Nc(t){return kc(Ic(en(t)))}function Pc(t){return Tc(Ic(en(t)))}function Rc(){return{EXPECTED_COLOR:Tc,RECEIVED_COLOR:kc,INVERTED_COLOR:Ac,BOLD_WEIGHT:_c,DIM_COLOR:Mc,diff:_r,matcherHint:Cc,printReceived:Nc,printExpected:Pc,printDiffOrStringify:Dr}}function Bc(){return globalThis[Sc].customEqualityTesters}function Dc(t,e,n,r){return Fc(t,e,[],[],n=n||[],r?Uc:Jc)}Function.prototype.toString;function Lc(t){return!!t&&"object"==typeof t&&"asymmetricMatch"in t&&Wc("Function",t.asymmetricMatch)}function Fc(t,e,n,r,i,o){let s=!0;const c=function(t,e){const n=Lc(t),r=Lc(e);if(!n||!r)return n?t.asymmetricMatch(e):r?e.asymmetricMatch(t):void 0}(t,e);if(void 0!==c)return c;const a={equals:Dc};for(let n=0;n<i.length;n++){const r=i[n].call(a,t,e,i);if(void 0!==r)return r}if("function"==typeof URL&&t instanceof URL&&e instanceof URL)return t.href===e.href;if(Object.is(t,e))return!0;if(null===t||null===e)return t===e;const u=Object.prototype.toString.call(t);if(u!==Object.prototype.toString.call(e))return!1;switch(u){case"[object Boolean]":case"[object String]":case"[object Number]":return typeof t==typeof e&&("object"!=typeof t&&"object"!=typeof e?Object.is(t,e):Object.is(t.valueOf(),e.valueOf()));case"[object Date]":{const n=+t,r=+e;return n===r||Number.isNaN(n)&&Number.isNaN(r)}case"[object RegExp]":return t.source===e.source&&t.flags===e.flags}if("object"!=typeof t||"object"!=typeof e)return!1;if(Hc(t)&&Hc(e))return t.isEqualNode(e);let l=n.length;for(;l--;){if(n[l]===t)return r[l]===e;if(r[l]===e)return!1}if(n.push(t),r.push(e),"[object Array]"===u&&t.length!==e.length)return!1;if(t instanceof Error&&e instanceof Error)try{return function(t,e,n,r,i,o){let s=Object.getPrototypeOf(t)===Object.getPrototypeOf(e)&&t.name===e.name&&t.message===e.message;void 0!==e.cause&&s&&(s=Fc(t.cause,e.cause,n,r,i,o));t instanceof AggregateError&&e instanceof AggregateError&&s&&(s=Fc(t.errors,e.errors,n,r,i,o));return s&&(s=Fc({...t},{...e},n,r,i,o)),s}(t,e,n,r,i,o)}finally{n.pop(),r.pop()}const f=qc(t,o);let h,d=f.length;if(qc(e,o).length!==d)return!1;for(;d--;)if(h=f[d],s=o(e,h)&&Fc(t[h],e[h],n,r,i,o),!s)return!1;return n.pop(),r.pop(),s}function qc(t,e){const n=[];for(const r in t)e(t,r)&&n.push(r);return n.concat(Object.getOwnPropertySymbols(t).filter((e=>Object.getOwnPropertyDescriptor(t,e).enumerable)))}function Jc(t,e){return Uc(t,e)&&void 0!==t[e]}function Uc(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Wc(t,e){return Object.prototype.toString.apply(e)===`[object ${t}]`}function Hc(t){return null!==t&&"object"==typeof t&&"nodeType"in t&&"number"==typeof t.nodeType&&"nodeName"in t&&"string"==typeof t.nodeName&&"isEqualNode"in t&&"function"==typeof t.isEqualNode}var Xc="@@__IMMUTABLE_KEYED__@@",zc="@@__IMMUTABLE_SET__@@",Vc="@@__IMMUTABLE_ORDERED__@@";function Kc(t){return null!=t&&"object"==typeof t&&!Array.isArray(t)}var Gc=Symbol.iterator;function Zc(t){return!(null==t||!t[Gc])}function Yc(t,e,n=[],r=[],i=[]){if("object"!=typeof t||"object"!=typeof e||Array.isArray(t)||Array.isArray(e)||!Zc(t)||!Zc(e))return;if(t.constructor!==e.constructor)return!1;let o=r.length;for(;o--;)if(r[o]===t)return i[o]===e;r.push(t),i.push(e);const s=[...n.filter((t=>t!==Yc)),function(t,e){return Yc(t,e,[...n],[...r],[...i])}];if(void 0!==t.size){if(t.size!==e.size)return!1;if(Wc("Set",t)||(a=t)&&a[zc]&&!a[Vc]){let n=!0;for(const r of t)if(!e.has(r)){let t=!1;for(const n of e){!0===Dc(r,n,s)&&(t=!0)}if(!1===t){n=!1;break}}return r.pop(),i.pop(),n}if(Wc("Map",t)||(c=t)&&c[Xc]&&!c[Vc]){let n=!0;for(const r of t)if(!e.has(r[0])||!Dc(r[1],e.get(r[0]),s)){let t=!1;for(const n of e){let e=!1;!0===Dc(r[0],n[0],s)&&(e=Dc(r[1],n[1],s)),!0===e&&(t=!0)}if(!1===t){n=!1;break}}return r.pop(),i.pop(),n}}var c,a;const u=e[Gc]();for(const e of t){const t=u.next();if(t.done||!Dc(e,t.value,s))return!1}if(!u.next().done)return!1;if(!(l=t,Boolean(l&&Kc(l)&&l["@@__IMMUTABLE_LIST__@@"])||function(t){return Boolean(t&&Kc(t)&&t[Xc]&&t[Vc])}(t)||function(t){return Boolean(t&&Kc(t)&&t[zc]&&t[Vc])}(t)||function(t){return Boolean(t&&Kc(t)&&t["@@__IMMUTABLE_RECORD__@@"])}(t))){if(!Dc(Object.entries(t),Object.entries(e)))return!1}var l;return r.pop(),i.pop(),!0}function Qc(t,e){return!(!t||"object"!=typeof t||t===Object.prototype)&&(Object.prototype.hasOwnProperty.call(t,e)||Qc(Object.getPrototypeOf(t),e))}function ta(t,e,n=[]){const r=n.filter((t=>t!==ta)),i=(t=new WeakMap)=>(e,n)=>{var o;if(!(!un(o=n)||o instanceof Error||Array.isArray(o)||o instanceof Date))return Object.keys(n).every((o=>{if(null!=n[o]&&"object"==typeof n[o]){if(t.has(n[o]))return Dc(e[o],n[o],r);t.set(n[o],!0)}const s=null!=e&&Qc(e,o)&&Dc(e[o],n[o],[...r,i(t)]);return t.delete(n[o]),s}))};return i()(t,e)}function ea(t,e){if(null!=t&&null!=e&&t.constructor!==e.constructor)return!1}function na(t,e){let n=t,r=e;if(!(t instanceof DataView&&e instanceof DataView)){if(!(t instanceof ArrayBuffer&&e instanceof ArrayBuffer))return;try{n=new DataView(t),r=new DataView(e)}catch{return}}if(n.byteLength!==r.byteLength)return!1;for(let t=0;t<n.byteLength;t++)if(n.getUint8(t)!==r.getUint8(t))return!1;return!0}function ra(t,e,n=[]){if(!Array.isArray(t)||!Array.isArray(e))return;const r=Object.keys(t),i=Object.keys(e);return Dc(t,e,n.filter((t=>t!==ra)),!0)&&Dc(r,i)}function ia(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t).filter((e=>{var n;return null==(n=Object.getOwnPropertyDescriptor(t,e))?void 0:n.enumerable}))]}if(!Object.prototype.hasOwnProperty.call(globalThis,xc)){const t=new WeakMap,e=Object.create(null),n=[],r=Object.create(null);Object.defineProperty(globalThis,xc,{get:()=>t}),Object.defineProperty(globalThis,Sc,{configurable:!0,get:()=>({state:t.get(globalThis[jc]),matchers:e,customEqualityTesters:n})}),Object.defineProperty(globalThis,Ec,{get:()=>r})}function oa(t){return globalThis[xc].get(t)}function sa(t,e){const n=globalThis[xc],r=n.get(e)||{},i=Object.defineProperties(r,{...Object.getOwnPropertyDescriptors(r),...Object.getOwnPropertyDescriptors(t)});n.set(e,i)}var ca=class{constructor(t,e=!1){m(this,"$$typeof",Symbol.for("jest.asymmetricMatcher")),this.sample=t,this.inverse=e}getMatcherContext(t){return{...oa(t||globalThis[jc]),equals:Dc,isNot:this.inverse,customTesters:Bc(),utils:{...Rc(),diff:_r,stringify:en,iterableEquality:Yc,subsetEquality:ta}}}};ca.prototype[Symbol.for("chai/inspect")]=function(t){const e=en(this,t.depth,{min:!0});return e.length<=t.truncate?e:`${this.toString()}{…}`};var aa=class extends ca{constructor(t,e=!1){if(!Wc("String",t))throw new Error("Expected is not a string");super(t,e)}asymmetricMatch(t){const e=Wc("String",t)&&t.includes(this.sample);return this.inverse?!e:e}toString(){return`String${this.inverse?"Not":""}Containing`}getExpectedType(){return"string"}},ua=class extends ca{asymmetricMatch(t){return null!=t}toString(){return"Anything"}toAsymmetricMatcher(){return"Anything"}},la=class extends ca{constructor(t,e=!1){super(t,e)}getPrototype(t){return Object.getPrototypeOf?Object.getPrototypeOf(t):t.constructor.prototype===t?null:t.constructor.prototype}hasProperty(t,e){return!!t&&(!!Object.prototype.hasOwnProperty.call(t,e)||this.hasProperty(this.getPrototype(t),e))}asymmetricMatch(t){if("object"!=typeof this.sample)throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let e=!0;const n=this.getMatcherContext();for(const r in this.sample)if(!this.hasProperty(t,r)||!Dc(this.sample[r],t[r],n.customTesters)){e=!1;break}return this.inverse?!e:e}toString(){return`Object${this.inverse?"Not":""}Containing`}getExpectedType(){return"object"}},fa=class extends ca{constructor(t,e=!1){super(t,e)}asymmetricMatch(t){if(!Array.isArray(this.sample))throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);const e=this.getMatcherContext(),n=0===this.sample.length||Array.isArray(t)&&this.sample.every((n=>t.some((t=>Dc(n,t,e.customTesters)))));return this.inverse?!n:n}toString(){return`Array${this.inverse?"Not":""}Containing`}getExpectedType(){return"array"}},ha=class extends ca{constructor(t){if(void 0===t)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;const e=Function.prototype.toString.call(t).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return e?e[1]:"<anonymous>"}asymmetricMatch(t){return this.sample===String?"string"==typeof t||t instanceof String:this.sample===Number?"number"==typeof t||t instanceof Number:this.sample===Function?"function"==typeof t||"function"==typeof t:this.sample===Boolean?"boolean"==typeof t||t instanceof Boolean:this.sample===BigInt?"bigint"==typeof t||t instanceof BigInt:this.sample===Symbol?"symbol"==typeof t||t instanceof Symbol:this.sample===Object?"object"==typeof t: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)}>`}},da=class extends ca{constructor(t,e=!1){if(!Wc("String",t)&&!Wc("RegExp",t))throw new Error("Expected is not a String or a RegExp");super(new RegExp(t),e)}asymmetricMatch(t){const e=Wc("String",t)&&this.sample.test(t);return this.inverse?!e:e}toString(){return`String${this.inverse?"Not":""}Matching`}getExpectedType(){return"string"}},pa=class extends ca{constructor(t,e=2,n=!1){if(!Wc("Number",t))throw new Error("Expected is not a Number");if(!Wc("Number",e))throw new Error("Precision is not a Number");super(t),m(this,"precision"),this.inverse=n,this.precision=e}asymmetricMatch(t){if(!Wc("Number",t))return!1;let e=!1;return e=t===Number.POSITIVE_INFINITY&&this.sample===Number.POSITIVE_INFINITY||(t===Number.NEGATIVE_INFINITY&&this.sample===Number.NEGATIVE_INFINITY||Math.abs(this.sample-t)<10**-this.precision/2),this.inverse?!e:e}toString(){return`Number${this.inverse?"Not":""}CloseTo`}getExpectedType(){return"number"}toAsymmetricMatcher(){return[this.toString(),this.sample,`(${t="digit",e=this.precision,`${e} ${t}${1===e?"":"s"}`})`].join(" ");var t,e}};function ba(t,e,n){const r=t.flag(e,"negate")?"not.":"",i=`${t.flag(e,"_name")}(${n?"expected":""})`,o=t.flag(e,"promise");return`expect(actual)${o?`.${o}`:""}.${r}${i}`}function ma(t,e,n,r){const i=t;if(i&&e instanceof Promise){e=e.finally((()=>{if(!i.promises)return;const t=i.promises.indexOf(e);-1!==t&&i.promises.splice(t,1)})),i.promises||(i.promises=[]),i.promises.push(e);let t=!1;return i.onFinished??(i.onFinished=[]),i.onFinished.push((()=>{var e;if(!t){const t=((null==(e=globalThis.__vitest_worker__)?void 0:e.onFilterStackTrace)||(t=>t||""))(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.\n",t].join(""))}})),{then:(n,r)=>(t=!0,e.then(n,r)),catch:t=>e.catch(t),finally:t=>e.finally(t),[Symbol.toStringTag]:"Promise"}}return e}function ya(t,e,n){return function(...r){var i;if("withTest"!==e&&t.flag(this,"_name",e),!t.flag(this,"soft"))return n.apply(this,r);const o=t.flag(this,"vitest-test");if(!o)throw new Error("expect.soft() can only be used inside a test");try{return n.apply(this,r)}catch(t){o.result||(o.result={state:"fail"}),o.result.state="fail",(i=o.result).errors||(i.errors=[]),o.result.errors.push(ui(t))}}}function ga(t){const e=t%10,n=t%100;return 1===e&&11!==n?`${t}st`:2===e&&12!==n?`${t}nd`:3===e&&13!==n?`${t}rd`:`${t}th`}function wa(t,e,n){return t.mock.calls&&(e+=X.gray(`\n\nReceived: \n\n${t.mock.calls.map(((e,r)=>{let i=X.bold(` ${ga(r+1)} ${t.getMockName()} call:\n\n`);return i+=n?_r(n,e,{omitAnnotationLines:!0}):en(e).split("\n").map((t=>` ${t}`)).join("\n"),i+="\n",i})).join("\n")}`)),e+=X.gray(`\n\nNumber of calls: ${X.bold(t.mock.calls.length)}\n`)}var va=class extends Error{constructor(t,e,n){super(t),this.actual=e,this.expected=n}};function $a(t,e,n){return(r,i)=>{Object.entries(n).forEach((([n,r])=>{const o=ya(i,n,(function(...t){const{state:n,isNot:i,obj:o}=function(t,e){const n=t._obj,r=yi.flag(t,"negate"),i=yi.flag(t,"promise")||"",o={...Rc(),diff:_r,stringify:en,iterableEquality:Yc,subsetEquality:ta};return{state:{...oa(e),customTesters:Bc(),isNot:r,utils:o,promise:i,equals:Dc,suppressedErrors:[],soft:yi.flag(t,"soft"),poll:yi.flag(t,"poll")},isNot:r,obj:n}}(this,e),s=r.call(n,o,...t);if(s&&"object"==typeof s&&s instanceof Promise)return s.then((({pass:t,message:e,actual:n,expected:r})=>{if(t&&i||!t&&!i)throw new va(e(),n,r)}));const{pass:c,message:a,actual:u,expected:l}=s;if(c&&i||!c&&!i)throw new va(a(),u,l)}));i.addMethod(globalThis[Sc].matchers,n,o),i.addMethod(t.Assertion.prototype,n,o);class s extends ca{constructor(t=!1,...e){super(e,t)}asymmetricMatch(t){const{pass:n}=r.call(this.getMatcherContext(e),t,...this.sample);return this.inverse?!n:n}toString(){return`${this.inverse?"not.":""}${n}`}getExpectedType(){return"any"}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map((t=>en(t))).join(", ")}>`}}const c=(...t)=>new s(!1,...t);Object.defineProperty(e,n,{configurable:!0,enumerable:!0,value:c,writable:!0}),Object.defineProperty(e.not,n,{configurable:!0,enumerable:!0,value:(...t)=>new s(!0,...t),writable:!0}),Object.defineProperty(globalThis[Ec],n,{configurable:!0,enumerable:!0,value:c,writable:!0})}))}}y(),y();",".charCodeAt(0);var xa,Sa,ja="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ea=new Uint8Array(64),Oa=new Uint8Array(128);for(let t=0;t<64;t++){const e=ja.charCodeAt(t);Ea[t]=e,Oa[e]=t}(Sa=xa||(xa={}))[Sa.Empty=1]="Empty",Sa[Sa.Hash=2]="Hash",Sa[Sa.Query=3]="Query",Sa[Sa.RelativePath=4]="RelativePath",Sa[Sa.AbsolutePath=5]="AbsolutePath",Sa[Sa.SchemeRelative=6]="SchemeRelative",Sa[Sa.Absolute=7]="Absolute";var Ta=/^[A-Za-z]:\//;var ka=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;var Aa=function(...t){let e="",n=!1;for(let r=(t=t.map((t=>function(t=""){return t?t.replace(/\\/g,"/").replace(Ta,(t=>t.toUpperCase())):t}(t)))).length-1;r>=-1&&!n;r--){const i=r>=0?t[r]:"undefined"!=typeof process&&"function"==typeof process.cwd?process.cwd().replace(/\\/g,"/"):"/";i&&0!==i.length&&(e=`${i}/${e}`,n=_a(i))}return e=function(t,e){let n="",r=0,i=-1,o=0,s=null;for(let c=0;c<=t.length;++c){if(c<t.length)s=t[c];else{if("/"===s)break;s="/"}if("/"===s){if(i===c-1||1===o);else if(2===o){if(n.length<2||2!==r||"."!==n[n.length-1]||"."!==n[n.length-2]){if(n.length>2){const t=n.lastIndexOf("/");-1===t?(n="",r=0):(n=n.slice(0,t),r=n.length-1-n.lastIndexOf("/")),i=c,o=0;continue}if(n.length>0){n="",r=0,i=c,o=0;continue}}e&&(n+=n.length>0?"/..":"..",r=2)}else n.length>0?n+=`/${t.slice(i+1,c)}`:n=t.slice(i+1,c),r=c-i-1;i=c,o=0}else"."===s&&-1!==o?++o:o=-1}return n}(e,!n),n&&!_a(e)?`/${e}`:e.length>0?e:"."};var _a=function(t){return ka.test(t)},Ma=/^\s*at .*(?:\S:\d+|\(native\))/m,Ca=/^(?:eval@)?(?:\[native code\])?$/;function Ia(t){if(!t.includes(":"))return[t];const e=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/^\(|\)$/g,""));if(!e)return[t];let n=e[1];if(n.startsWith("async ")&&(n=n.slice(6)),n.startsWith("http:")||n.startsWith("https:")){const t=new URL(n);t.searchParams.delete("import"),t.searchParams.delete("browserv"),n=t.pathname+t.hash+t.search}if(n.startsWith("/@fs/")){const t=/^\/@fs\/[a-zA-Z]:\//.test(n);n=n.slice(t?5:4)}return[n,e[2]||void 0,e[3]||void 0]}function Na(t){const e=t.trim();return Ma.test(e)?function(t){let e=t.trim();if(!Ma.test(e))return null;e.includes("(eval ")&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let n=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],""):n;const[i,o,s]=Ia(r?r[1]:n);let c=r&&n||"",a=i&&["eval","<anonymous>"].includes(i)?void 0:i;if(!a||!o||!s)return null;c.startsWith("async ")&&(c=c.slice(6));a.startsWith("file://")&&(a=a.slice(7));a=a.startsWith("node:")||a.startsWith("internal:")?a:Aa(a),c&&(c=c.replace(/__vite_ssr_import_\d+__\./g,""));return{method:c,file:a,line:Number.parseInt(o),column:Number.parseInt(s)}}(e):function(t){let e=t.trim();if(Ca.test(e))return null;if(e.includes(" > eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!e.includes("@")&&!e.includes(":"))return null;const n=/((.*".+"[^@]*)?[^@]*)(@)/,r=e.match(n),i=r&&r[1]?r[1]:void 0,[o,s,c]=Ia(e.replace(n,""));return o&&s&&c?{file:o,method:i||"",line:Number.parseInt(s),column:Number.parseInt(c)}:null}(e)}y(),y(),y();var Pa=/^[A-Za-z]:\//;var Ra=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;var Ba=function(...t){let e="",n=!1;for(let r=(t=t.map((t=>function(t=""){return t?t.replace(/\\/g,"/").replace(Pa,(t=>t.toUpperCase())):t}(t)))).length-1;r>=-1&&!n;r--){const i=r>=0?t[r]:"undefined"!=typeof process&&"function"==typeof process.cwd?process.cwd().replace(/\\/g,"/"):"/";i&&0!==i.length&&(e=`${i}/${e}`,n=Da(i))}return e=function(t,e){let n="",r=0,i=-1,o=0,s=null;for(let c=0;c<=t.length;++c){if(c<t.length)s=t[c];else{if("/"===s)break;s="/"}if("/"===s){if(i===c-1||1===o);else if(2===o){if(n.length<2||2!==r||"."!==n[n.length-1]||"."!==n[n.length-2]){if(n.length>2){const t=n.lastIndexOf("/");-1===t?(n="",r=0):(n=n.slice(0,t),r=n.length-1-n.lastIndexOf("/")),i=c,o=0;continue}if(n.length>0){n="",r=0,i=c,o=0;continue}}e&&(n+=n.length>0?"/..":"..",r=2)}else n.length>0?n+=`/${t.slice(i+1,c)}`:n=t.slice(i+1,c),r=c-i-1;i=c,o=0}else"."===s&&-1!==o?++o:o=-1}return n}(e,!n),n&&!Da(e)?`/${e}`:e.length>0?e:"."};var Da=function(t){return Ra.test(t)};function La(t,e){const n=function n(r){const i=function(...t){return e.apply(r,t)};Object.assign(i,e),i.withContext=()=>i.bind(r),i.setContext=(t,e)=>{r[t]=e},i.mergeContext=t=>{Object.assign(r,t)};for(const e of t)Object.defineProperty(i,e,{get:()=>n({...r,[e]:!0})});return i}({});return n.fn=e,n}function Fa(t){const e=[t.name];let n=t;for(;null==n?void 0:n.suite;)n=n.suite,(null==n?void 0:n.name)&&e.unshift(n.name);return n!==t.file&&e.unshift(t.file.name),e}function qa(t,e=" > "){return Fa(t).slice(1).join(e)}var Ja=class extends Error{constructor(t,e,n){super(t),m(this,"code","VITEST_PENDING"),m(this,"taskId"),this.message=t,this.note=n,this.taskId=e.id}},Ua=Date.now,Wa={tasks:[],currentSuite:null};function Ha(t,e,n=!1,r){if(e<=0||e===Number.POSITIVE_INFINITY)return t;const{setTimeout:i,clearTimeout:o}=Ln();return function(...s){const c=Ua();return new Promise(((a,u)=>{var l;const f=i((()=>{o(f),h()}),e);function h(){u(function(t,e,n){const r=`${t?"Hook":"Test"} timed out in ${e}ms.\nIf this is a long-running ${t?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "${t?"hookTimeout":"testTimeout"}".`,i=new Error(r);(null==n?void 0:n.stack)&&(i.stack=n.stack.replace(i.message,n.message));return i}(n,e,r))}function d(t){o(f),Ua()-c>=e?h():a(t)}function p(t){o(f),u(t)}null==(l=f.unref)||l.call(f);try{const e=t(...s);"object"==typeof e&&null!=e&&"function"==typeof e.then?e.then(d,p):d(e)}catch(t){p(t)}}))}}var Xa=new WeakMap,za=new WeakMap,Va=new WeakMap;var Ka=new Map,Ga=new Map;function Za(t,e){return n=>{const r=n||e;if(!r)return t({});const i=(o=r,za.get(o));var o;if(!(null==i?void 0:i.length))return t(r);const s=tu(t),c=i.some((({auto:t})=>t));if(!s.length&&!c)return t(r);Ka.get(r)||Ka.set(r,new Map);const a=Ka.get(r);Ga.has(r)||Ga.set(r,[]);const u=Ga.get(r),l=Qa(i.filter((({prop:t,auto:e})=>e||s.includes(t))));if(!l.length)return t(r);return async function(){for(const t of l){if(a.has(t))continue;const e=t.isFn?await Ya(t.value,r,u):t.value;r[t.prop]=e,a.set(t,e),u.unshift((()=>{a.delete(t)}))}}().then((()=>t(r)))}}async function Ya(t,e,n){const r=yn();let i=!1;const o=t(e,(async t=>{i=!0,r.resolve(t);const e=yn();n.push((async()=>{e.resolve(),await o})),await e})).catch((t=>{if(i)throw t;r.reject(t)}));return r}function Qa(t,e=new Set,n=[]){return t.forEach((t=>{if(!n.includes(t))if(t.isFn&&t.deps){if(e.has(t))throw new Error(`Circular fixture dependency detected: ${t.prop} <- ${[...e].reverse().map((t=>t.prop)).join(" <- ")}`);e.add(t),Qa(t.deps,e,n),n.push(t),e.clear()}else n.push(t)})),n}function tu(t){let e=t.toString();/__async\(this, (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(e)&&(e=e.split("__async(this,")[1]);const n=e.match(/[^(]*\(([^)]*)/);if(!n)return[];const r=eu(n[1]);if(!r.length)return[];let i=r[0];if("__VITEST_FIXTURE_INDEX__"in t&&(i=r[t.__VITEST_FIXTURE_INDEX__],!i))return[];if(!i.startsWith("{")||!i.endsWith("}"))throw new Error(`The first argument inside a fixture must use object destructuring pattern, e.g. ({ test } => {}). Instead, received "${i}".`);const o=eu(i.slice(1,-1).replace(/\s/g,"")).map((t=>t.replace(/:.*|=.*/g,""))),s=o.at(-1);if(s&&s.startsWith("..."))throw new Error(`Rest parameters are not supported in fixtures, received "${s}".`);return o}function eu(t){const e=[],n=[];let r=0;for(let i=0;i<t.length;i++)if("{"===t[i]||"["===t[i])n.push("{"===t[i]?"}":"]");else if(t[i]===n[n.length-1])n.pop();else if(!n.length&&","===t[i]){const n=t.substring(r,i).trim();n&&e.push(n),r=i+1}const i=t.substring(r).trim();return i&&e.push(i),e}var nu,ru,iu,ou=function(){function t(t,e,n){var r;const i=this.only?"only":this.skip?"skip":this.todo?"todo":"run",o=Wa.currentSuite||ru;let{options:s,handler:c}=hu(e,n);const a=s.concurrent||this.concurrent||!1===s.sequential,u=s.sequential||this.sequential||!1===s.concurrent;s={...null==o?void 0:o.options,...s,shuffle:this.shuffle??s.shuffle??(null==(r=null==o?void 0:o.options)?void 0:r.shuffle)??(null==nu?void 0:nu.config.sequence.shuffle)};const l=a||s.concurrent&&!u,f=u||s.sequential&&!a;return s.concurrent=l&&!f,s.sequential=f&&!l,function(t,e=()=>{},n,r,i){const o=[];let s;f(!0);const c=function(t="",e={}){var n;const r=(null==e?void 0:e.timeout)??nu.config.testTimeout,s={id:"",name:t,suite:null==(n=Wa.currentSuite)?void 0:n.suite,each:e.each,fails:e.fails,context:void 0,type:"test",file:void 0,timeout:r,retry:e.retry??nu.config.retry,repeats:e.repeats,mode:e.only?"only":e.skip?"skip":e.todo?"todo":"run",meta:e.meta??Object.create(null)},c=e.handler;(e.concurrent||!e.sequential&&nu.config.sequence.concurrent)&&(s.concurrent=!0),s.shuffle=null==i?void 0:i.shuffle;const a=function(t,e){var n;const r=function(){throw new Error("done() callback is deprecated, use promise instead")};return r.task=t,r.skip=e=>{throw t.result??(t.result={state:"skip"}),t.result.pending=!0,new Ja("test is skipped; abort execution",t,e)},r.onTestFailed=(n,r)=>{t.onFailed||(t.onFailed=[]),t.onFailed.push(Ha(n,r??e.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR")))},r.onTestFinished=(n,r)=>{t.onFinished||(t.onFinished=[]),t.onFinished.push(Ha(n,r??e.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR")))},(null==(n=e.extendTaskContext)?void 0:n.call(e,r))||r}(s,nu);var u,l;if(Object.defineProperty(s,"context",{value:a,enumerable:!1}),u=a,l=e.fixtures,za.set(u,l),c&&function(t,e){Xa.set(t,e)}(s,Ha(function(t,e){return async(...n)=>{const r=await t(...n);if(e.promises){const t=(await Promise.allSettled(e.promises)).map((t=>"rejected"===t.status?t.reason:void 0)).filter(Boolean);if(t.length)throw t}return r}}(Za(c,a),s),r)),nu.config.includeTaskLocation){const t=Error.stackTraceLimit;Error.stackTraceLimit=15;const e=new Error("stacktrace").stack;Error.stackTraceLimit=t;const n=gu(e,s.each??!1);n&&(s.location=n)}return o.push(s),s},a=pu((function(t,e,n){let{options:r,handler:o}=hu(e,n);"object"==typeof i&&(r=Object.assign({},i,r)),r.concurrent=this.concurrent||!this.sequential&&(null==r?void 0:r.concurrent),r.sequential=this.sequential||!this.concurrent&&(null==r?void 0:r.sequential);c(bu(t),{...this,...r,handler:o}).type="test"})),u={type:"collector",name:t,mode:n,suite:s,options:i,test:a,tasks:o,collect:d,task:c,clear:h,on:l};function l(t,...e){var n;(n=s,Va.get(n))[t].push(...e)}function f(e){var o,c,a;if("number"==typeof i&&(i={timeout:i}),s={id:"",type:"suite",name:t,suite:null==(o=Wa.currentSuite)?void 0:o.suite,mode:n,each:r,file:void 0,shuffle:null==i?void 0:i.shuffle,tasks:[],meta:Object.create(null),concurrent:null==i?void 0:i.concurrent},nu&&e&&nu.config.includeTaskLocation){const t=Error.stackTraceLimit;Error.stackTraceLimit=15;const e=new Error("stacktrace").stack;Error.stackTraceLimit=t;const n=gu(e,s.each??!1);n&&(s.location=n)}c=s,a={beforeAll:[],afterAll:[],beforeEach:[],afterEach:[]},Va.set(c,a)}function h(){o.length=0,f(!1)}async function d(t){if(!t)throw new TypeError("File is required to collect tasks.");e&&await async function(t,e){const n=Wa.currentSuite;Wa.currentSuite=t,await e(),Wa.currentSuite=n}(u,(()=>e(a)));const n=[];for(const e of o)n.push("collector"===e.type?await e.collect(t):e);return s.file=t,s.tasks=n,n.forEach((e=>{e.file=t})),s}return function(t){var e;null==(e=Wa.currentSuite)||e.tasks.push(t)}(u),u}(bu(t),c,i,this.each,s)}return t.each=function(t,...e){const n=this.withContext();return this.setContext("each",!0),Array.isArray(t)&&e.length&&(t=yu(t,e)),(e,r,i)=>{const o=bu(e),s=t.every(Array.isArray),{options:c,handler:a}=hu(r,i),u="function"==typeof r&&"object"==typeof i;t.forEach(((t,e)=>{const r=Array.isArray(t)?t:[t];u?n(mu(o,r,e),s?()=>a(...r):()=>a(t),c):n(mu(o,r,e),c,s?()=>a(...r):()=>a(t))})),this.setContext("each",void 0)}},t.for=function(t,...e){return Array.isArray(t)&&e.length&&(t=yu(t,e)),(e,n,r)=>{const i=bu(e),{options:o,handler:s}=hu(n,r);t.forEach(((t,e)=>{ou(mu(i,an(t),e),o,(()=>s(t)))}))}},t.skipIf=t=>t?ou.skip:ou,t.runIf=t=>t?ou:ou.skip,La(["concurrent","sequential","shuffle","skip","only","todo"],t)}(),su=pu((function(t,e,n){fu().test.fn.call(this,bu(t),e,n)})),cu=ou,au=su;function uu(t,e){if(!t)throw new Error(`Vitest failed to find ${e}. This is a bug in Vitest. Please, open an issue with reproduction.`)}function lu(){return uu(nu,"the runner"),nu}function fu(){const t=Wa.currentSuite||ru;return uu(t,"the current suite"),t}function hu(t,e){let n={},r=()=>{};if("object"==typeof e){if("object"==typeof t)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=e}else"number"==typeof e?n={timeout:e}:"object"==typeof t&&(n=t);if("function"==typeof t){if("function"==typeof e)throw new TypeError("Cannot use two functions as arguments. Please use the second argument for options.");r=t}else"function"==typeof e&&(r=e);return{options:n,handler:r}}function du(t,e){const n=t;n.each=function(t,...e){const n=this.withContext();return this.setContext("each",!0),Array.isArray(t)&&e.length&&(t=yu(t,e)),(e,r,i)=>{const o=bu(e),s=t.every(Array.isArray),{options:c,handler:a}=hu(r,i),u="function"==typeof r&&"object"==typeof i;t.forEach(((t,e)=>{const r=Array.isArray(t)?t:[t];u?n(mu(o,r,e),s?()=>a(...r):()=>a(t),c):n(mu(o,r,e),c,s?()=>a(...r):()=>a(t))})),this.setContext("each",void 0)}},n.for=function(t,...e){const n=this.withContext();return Array.isArray(t)&&e.length&&(t=yu(t,e)),(e,r,i)=>{const o=bu(e),{options:s,handler:c}=hu(r,i);t.forEach(((t,e)=>{const r=e=>c(t,e);r.__VITEST_FIXTURE_INDEX__=1,r.toString=()=>c.toString(),n(mu(o,an(t),e),s,r)}))}},n.skipIf=function(t){return t?this.skip:this},n.runIf=function(t){return t?this:this.skip},n.extend=function(t){const n=function(t,e,n){const r=["auto","injected"],i=Object.entries(t).map((([t,e])=>{const i={value:e};if(Array.isArray(e)&&e.length>=2&&un(e[1])&&Object.keys(e[1]).some((t=>r.includes(t)))){Object.assign(i,e[1]);const r=e[0];i.value=i.injected?n(t)??r:r}return i.prop=t,i.isFn="function"==typeof i.value,i}));return Array.isArray(e.fixtures)?e.fixtures=e.fixtures.concat(i):e.fixtures=i,i.forEach((t=>{if(t.isFn){const n=tu(t.value);n.length&&(t.deps=e.fixtures.filter((({prop:e})=>e!==t.prop&&n.includes(e))))}})),e}(t,e||{},(t=>{var e,n;return null==(n=(e=lu()).injectValue)?void 0:n.call(e,t)}));return pu((function(t,e,n){fu().test.fn.call(this,bu(t),e,n)}),n)};const r=La(["concurrent","sequential","skip","only","todo","fails"],n);return e&&r.mergeContext(e),r}function pu(t,e){return du(t,e)}function bu(t){return"string"==typeof t?t:"function"==typeof t?t.name||"<anonymous>":String(t)}function mu(t,e,n){t.includes("%#")&&(t=t.replace(/%%/g,"__vitest_escaped_%__").replace(/%#/g,`${n}`).replace(/__vitest_escaped_%__/g,"%%"));const r=t.split("%").length-1;if(t.includes("%f")){(t.match(/%f/g)||[]).forEach(((n,r)=>{if(function(t){if(!Number.isNaN(t))return!1;const e=new Float64Array(1);return e[0]=t,new Uint32Array(e.buffer)[1]>>>31==1}(e[r])||Object.is(e[r],-0)){let e=0;t=t.replace(/%f/g,(t=>(e++,e===r+1?"-%f":t)))}}))}let i=rn(t,...e.slice(0,r));return un(e[0])&&(i=i.replace(/\$([$\w.]+)/g,((t,n)=>{var r,i;return function(t,e={}){void 0===e.truncate&&(e.truncate=40);const n=on(t,e),r=Object.prototype.toString.call(t);if(e.truncate&&n.length>=e.truncate){if("[object Function]"===r){const e=t;return e.name?`[Function: ${e.name}]`:"[Function]"}if("[object Array]"===r)return`[ Array(${t.length}) ]`;if("[object Object]"===r){const e=Object.keys(t);return`{ Object (${e.length>2?`${e.splice(0,2).join(", ")}, ...`:e.join(", ")}) }`}return n}return n}(function(t,e,n){const r=e.replace(/\[(\d+)\]/g,".$1").split(".");let i=t;for(const t of r)if(i=new Object(i)[t],void 0===i)return n;return i}(e[0],n),{truncate:null==(i=null==(r=null==nu?void 0:nu.config)?void 0:r.chaiConfig)?void 0:i.truncateThreshold})}))),i}function yu(t,e){const n=t.join("").trim().replace(/ /g,"").split("\n").map((t=>t.split("|")))[0],r=[];for(let t=0;t<Math.floor(e.length/n.length);t++){const i={};for(let r=0;r<n.length;r++)i[n[r]]=e[t*n.length+r];r.push(i)}return r}function gu(t,e){const n=t.split("\n").slice(1);for(const t of n){const n=Na(t);if(n&&n.file===iu)return{line:n.line,column:e?n.column+1:n.column}}}function wu(){return lu().config.hookTimeout}Symbol.for("VITEST_CLEANUP_TIMEOUT"),Symbol.for("VITEST_CLEANUP_STACK_TRACE"),vu("onTestFailed",((t,e,n)=>{t.onFailed||(t.onFailed=[]),t.onFailed.push(Ha(e,n??wu(),!0,new Error("STACK_TRACE_ERROR")))})),vu("onTestFinished",((t,e,n)=>{t.onFinished||(t.onFinished=[]),t.onFinished.push(Ha(e,n??wu(),!0,new Error("STACK_TRACE_ERROR")))}));function vu(t,e){return(e,n)=>{cn(e,`"${t}" callback`,["function"]);throw new Error(`Hook ${t}() can only be called inside a test`)}}globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now,globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now,Date.now;y(),y();function $u(){const t=globalThis.__vitest_worker__;if(!t){throw new Error('Vitest failed to access its internal state.\n\nOne of the following is possible:\n- "vitest" is imported directly without running "vitest" command\n- "vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)\n- Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues\n')}return t}function xu(){const t=$u();return t?.environment.name}function Su(){return"undefined"!=typeof process&&!!process.send}async function ju(){await function(){const{setTimeout:t}=Ln();return new Promise((e=>t(e,0)))}();const t=$u(),e=[];let n=0;for(const r of t.moduleCache.values())r.promise&&!r.evaluated&&e.push(r.promise),r.resolving&&n++;(e.length||n)&&(await Promise.allSettled(e),await ju())}y();var Eu="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ou(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}y();var Tu=",".charCodeAt(0),ku="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Au=new Uint8Array(64),_u=new Uint8Array(128);for(let t=0;t<64;t++){const e=ku.charCodeAt(t);Au[t]=e,_u[e]=t}function Mu(t,e){let n=0,r=0,i=0;do{const e=t.next();i=_u[e],n|=(31&i)<<r,r+=5}while(32&i);const o=1&n;return n>>>=1,o&&(n=-2147483648|-n),e+n}function Cu(t,e){return!(t.pos>=e)&&t.peek()!==Tu}var Iu=class{constructor(t){this.pos=0,this.buffer=t}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(t){const{buffer:e,pos:n}=this,r=e.indexOf(t,n);return-1===r?e.length:r}};function Nu(t){t.sort(Pu)}function Pu(t,e){return t[0]-e[0]}var Ru,Bu=/^[\w+.-]+:\/\//,Du=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,Lu=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function Fu(t){return t.startsWith("/")}function qu(t){return/^[.?#]/.test(t)}function Ju(t){const e=Du.exec(t);return Uu(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}function Uu(t,e,n,r,i,o,s){return{scheme:t,user:e,host:n,port:r,path:i,query:o,hash:s,type:Ru.Absolute}}function Wu(t){if(function(t){return t.startsWith("//")}(t)){const e=Ju("http:"+t);return e.scheme="",e.type=Ru.SchemeRelative,e}if(Fu(t)){const e=Ju("http://foo.com"+t);return e.scheme="",e.host="",e.type=Ru.AbsolutePath,e}if(function(t){return t.startsWith("file:")}(t))return function(t){const e=Lu.exec(t),n=e[2];return Uu("file:","",e[1]||"","",Fu(n)?n:"/"+n,e[3]||"",e[4]||"")}(t);if(function(t){return Bu.test(t)}(t))return Ju(t);const e=Ju("http://foo.com/"+t);return e.scheme="",e.host="",e.type=t?t.startsWith("?")?Ru.Query:t.startsWith("#")?Ru.Hash:Ru.RelativePath:Ru.Empty,e}function Hu(t,e){const n=e<=Ru.RelativePath,r=t.path.split("/");let i=1,o=0,s=!1;for(let t=1;t<r.length;t++){const e=r[t];e?(s=!1,"."!==e&&(".."!==e?(r[i++]=e,o++):o?(s=!0,o--,i--):n&&(r[i++]=e))):s=!0}let c="";for(let t=1;t<i;t++)c+="/"+r[t];(!c||s&&!c.endsWith("/.."))&&(c+="/"),t.path=c}function Xu(t,e){if(!t&&!e)return"";const n=Wu(t);let r=n.type;if(e&&r!==Ru.Absolute){const t=Wu(e),i=t.type;switch(r){case Ru.Empty:n.hash=t.hash;case Ru.Hash:n.query=t.query;case Ru.Query:case Ru.RelativePath:!function(t,e){Hu(e,e.type),"/"===t.path?t.path=e.path:t.path=function(t){if(t.endsWith("/.."))return t;const e=t.lastIndexOf("/");return t.slice(0,e+1)}(e.path)+t.path}(n,t);case Ru.AbsolutePath:n.user=t.user,n.host=t.host,n.port=t.port;case Ru.SchemeRelative:n.scheme=t.scheme}i>r&&(r=i)}Hu(n,r);const i=n.query+n.hash;switch(r){case Ru.Hash:case Ru.Query:return i;case Ru.RelativePath:{const r=n.path.slice(1);return r?qu(e||t)&&!qu(r)?"./"+r+i:r+i:i||"."}case Ru.AbsolutePath:return n.path+i;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+i}}function zu(t,e){return e&&!e.endsWith("/")&&(e+="/"),Xu(t,e)}!function(t){t[t.Empty=1]="Empty",t[t.Hash=2]="Hash",t[t.Query=3]="Query",t[t.RelativePath=4]="RelativePath",t[t.AbsolutePath=5]="AbsolutePath",t[t.SchemeRelative=6]="SchemeRelative",t[t.Absolute=7]="Absolute"}(Ru||(Ru={}));function Vu(t,e){for(let n=e;n<t.length;n++)if(!Ku(t[n]))return n;return t.length}function Ku(t){for(let e=1;e<t.length;e++)if(t[e][0]<t[e-1][0])return!1;return!0}function Gu(t,e){return e||(t=t.slice()),t.sort(Zu)}function Zu(t,e){return t[0]-e[0]}var Yu=!1;function Qu(t,e,n){for(let r=n+1;r<t.length&&t[r][0]===e;n=r++);return n}function tl(t,e,n){for(let r=n-1;r>=0&&t[r][0]===e;n=r--);return n}function el(t,e,n,r){const{lastKey:i,lastNeedle:o,lastIndex:s}=n;let c=0,a=t.length-1;if(r===i){if(e===o)return Yu=-1!==s&&t[s][0]===e,s;e>=o?c=-1===s?0:s:a=s}return n.lastKey=r,n.lastNeedle=e,n.lastIndex=function(t,e,n,r){for(;n<=r;){const i=n+(r-n>>1),o=t[i][0]-e;if(0===o)return Yu=!0,i;o<0?n=i+1:r=i-1}return Yu=!1,n-1}(t,e,c,a)}var nl=class{constructor(t,e){const n="string"==typeof t;if(!n&&t._decodedMemo)return t;const r=n?JSON.parse(t):t,{version:i,file:o,names:s,sourceRoot:c,sources:a,sourcesContent:u}=r;this.version=i,this.file=o,this.names=s||[],this.sourceRoot=c,this.sources=a,this.sourcesContent=u,this.ignoreList=r.ignoreList||r.x_google_ignoreList||void 0;const l=zu(c||"",function(t){if(!t)return"";const e=t.lastIndexOf("/");return t.slice(0,e+1)}(e));this.resolvedSources=a.map((t=>zu(t||"",l)));const{mappings:f}=r;"string"==typeof f?(this._encoded=f,this._decoded=void 0):(this._encoded=void 0,this._decoded=function(t,e){const n=Vu(t,0);if(n===t.length)return t;e||(t=t.slice());for(let r=n;r<t.length;r=Vu(t,r+1))t[r]=Gu(t[r],e);return t}(f,n)),this._decodedMemo={lastKey:-1,lastNeedle:-1,lastIndex:-1},this._bySources=void 0,this._bySourceMemos=void 0}};function rl(t){var e;return(e=t)._decoded||(e._decoded=function(t){const{length:e}=t,n=new Iu(t),r=[];let i=0,o=0,s=0,c=0,a=0;do{const t=n.indexOf(";"),e=[];let u=!0,l=0;for(i=0;n.pos<t;){let r;i=Mu(n,i),i<l&&(u=!1),l=i,Cu(n,t)?(o=Mu(n,o),s=Mu(n,s),c=Mu(n,c),Cu(n,t)?(a=Mu(n,a),r=[i,o,s,c,a]):r=[i,o,s,c]):r=[i],e.push(r),n.pos++}u||Nu(e),r.push(e),n.pos=t+1}while(n.pos<=e);return r}(t._encoded))}function il(t,e){let{line:n,column:r,bias:i}=e;if(n--,n<0)throw new Error("`line` must be greater than 0 (lines start at line 1)");if(r<0)throw new Error("`column` must be greater than or equal to 0 (columns start at column 0)");const o=rl(t);if(n>=o.length)return ol(null,null,null,null);const s=o[n],c=function(t,e,n,r,i){let o=el(t,r,e,n);Yu?o=(-1===i?Qu:tl)(t,r,o):-1===i&&o++;return-1===o||o===t.length?-1:o}(s,t._decodedMemo,n,r,i||1);if(-1===c)return ol(null,null,null,null);const a=s[c];if(1===a.length)return ol(null,null,null,null);const{names:u,resolvedSources:l}=t;return ol(l[a[1]],a[2]+1,a[3],5===a.length?u[a[4]]:null)}function ol(t,e,n,r){return{source:t,line:e,column:n,name:r}}function sl(t){return null!=t}function cl(t){return null!=t&&"object"==typeof t&&!Array.isArray(t)}var al=/^\s*at .*(?:\S:\d+|\(native\))/m,ul=/^(?:eval@)?(?:\[native code\])?$/,ll=["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 fl(t){if(!t.includes(":"))return[t];const e=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/^\(|\)$/g,""));if(!e)return[t];let n=e[1];if(n.startsWith("async ")&&(n=n.slice(6)),n.startsWith("http:")||n.startsWith("https:")){const t=new URL(n);t.searchParams.delete("import"),t.searchParams.delete("browserv"),n=t.pathname+t.hash+t.search}if(n.startsWith("/@fs/")){const t=/^\/@fs\/[a-zA-Z]:\//.test(n);n=n.slice(t?5:4)}return[n,e[2]||void 0,e[3]||void 0]}function hl(t,e={}){const{ignoreStackEntries:n=ll}=e,r=al.test(t)?function(t){return t.split("\n").map((t=>function(t){let e=t.trim();if(!al.test(e))return null;e.includes("(eval ")&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let n=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],""):n;const[i,o,s]=fl(r?r[1]:n);let c=r&&n||"",a=i&&["eval","<anonymous>"].includes(i)?void 0:i;return a&&o&&s?(c.startsWith("async ")&&(c=c.slice(6)),a.startsWith("file://")&&(a=a.slice(7)),a=a.startsWith("node:")||a.startsWith("internal:")?a:Ba(a),c&&(c=c.replace(/__vite_ssr_import_\d+__\./g,"")),{method:c,file:a,line:Number.parseInt(o),column:Number.parseInt(s)}):null}(t))).filter(sl)}(t):function(t){return t.split("\n").map((t=>function(t){let e=t.trim();if(ul.test(e))return null;if(e.includes(" > eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!e.includes("@")&&!e.includes(":"))return null;const n=/((.*".+"[^@]*)?[^@]*)(@)/,r=e.match(n),i=r&&r[1]?r[1]:void 0,[o,s,c]=fl(e.replace(n,""));return o&&s&&c?{file:o,method:i||"",line:Number.parseInt(s),column:Number.parseInt(c)}:null}(t))).filter(sl)}(t);return r.map((t=>{var r;e.getUrlId&&(t.file=e.getUrlId(t.file));const i=null==(r=e.getSourceMap)?void 0:r.call(e,t.file);if(!i||"object"!=typeof i||!i.version)return dl(n,t.file)?null:t;const o=new nl(i),{line:s,column:c,source:a,name:u}=il(o,t);let l=t.file;if(a){const e=t.file.startsWith("file://")?t.file:`file://${t.file}`,n=i.sourceRoot?new URL(i.sourceRoot,e):e;l=new URL(a,n).pathname}return dl(n,l)?null:null!=s&&null!=c?{line:s,column:c,file:l,method:u||t.method}:t})).filter((t=>null!=t))}function dl(t,e){return t.some((t=>e.match(t)))}try{const{getPromiseDetails:t,kPending:e,kRejected:n}=process.binding("util");Array.isArray(t(Promise.resolve()))&&((r,i)=>{const[o,s]=t(r);return o===e?"Promise{<pending>}":`Promise${o===n?"!":""}{${i.inspect(s,i)}}`})}catch(t){}try{const t=require("util");!!t.inspect&&t.inspect.custom}catch(t){0}var pl,bl,{AsymmetricMatcher:ml,DOMCollection:yl,DOMElement:gl,Immutable:wl,ReactElement:vl,ReactTestComponent:$l}=pe;function xl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}!function(){return bl?pl:(bl=1,h=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/uy,f=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,t=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/uy,p=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,l=/(?: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,b=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,g=/[\t\v\f\ufeff\p{Zs}]+/uy,c=/\r?\n|[\r\u2028\u2029]/y,a=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,d=/\/\/.*/y,n=/[<>.:={}]|\/(?![\/*])/y,e=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/uy,r=/(['"])(?:(?!\1)[^])*(\1)?/y,i=/[^<>{}]+/y,y=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,m=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,o=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,s=/^(?:return|throw|yield)$/,u=RegExp(c.source),pl=function*(w,{jsx:v=!1}={}){var $,x,S,j,E,O,T,k,A,_,M,C,I,N;for(({length:O}=w),j=0,E="",N=[{tag:"JS"}],$=[],M=0,C=!1;j<O;){switch((k=N[N.length-1]).tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if("/"===w[j]&&(y.test(E)||o.test(E))&&(h.lastIndex=j,T=h.exec(w))){j=h.lastIndex,E=T[0],C=!0,yield{type:"RegularExpressionLiteral",value:T[0],closed:void 0!==T[1]&&"\\"!==T[1]};continue}if(f.lastIndex=j,T=f.exec(w)){switch(I=T[0],A=f.lastIndex,_=I,I){case"(":"?NonExpressionParenKeyword"===E&&N.push({tag:"JSNonExpressionParen",nesting:M}),M++,C=!1;break;case")":M--,C=!0,"JSNonExpressionParen"===k.tag&&M===k.nesting&&(N.pop(),_="?NonExpressionParenEnd",C=!1);break;case"{":f.lastIndex=0,S=!m.test(E)&&(y.test(E)||o.test(E)),$.push(S),C=!1;break;case"}":switch(k.tag){case"InterpolationInTemplate":if($.length===k.nesting){b.lastIndex=j,T=b.exec(w),j=b.lastIndex,E=T[0],"${"===T[1]?(E="?InterpolationInTemplate",C=!1,yield{type:"TemplateMiddle",value:T[0]}):(N.pop(),C=!0,yield{type:"TemplateTail",value:T[0],closed:"`"===T[1]});continue}break;case"InterpolationInJSX":if($.length===k.nesting){N.pop(),j+=1,E="}",yield{type:"JSXPunctuator",value:"}"};continue}}_=(C=$.pop())?"?ExpressionBraceEnd":"}";break;case"]":C=!0;break;case"++":case"--":_=C?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(v&&(y.test(E)||o.test(E))){N.push({tag:"JSXTag"}),j+=1,E="<",yield{type:"JSXPunctuator",value:I};continue}C=!1;break;default:C=!1}j=A,E=_,yield{type:"Punctuator",value:I};continue}if(t.lastIndex=j,T=t.exec(w)){switch(j=t.lastIndex,_=T[0],T[0]){case"for":case"if":case"while":case"with":"."!==E&&"?."!==E&&(_="?NonExpressionParenKeyword")}E=_,C=!o.test(T[0]),yield{type:"#"===T[1]?"PrivateIdentifier":"IdentifierName",value:T[0]};continue}if(p.lastIndex=j,T=p.exec(w)){j=p.lastIndex,E=T[0],C=!0,yield{type:"StringLiteral",value:T[0],closed:void 0!==T[2]};continue}if(l.lastIndex=j,T=l.exec(w)){j=l.lastIndex,E=T[0],C=!0,yield{type:"NumericLiteral",value:T[0]};continue}if(b.lastIndex=j,T=b.exec(w)){j=b.lastIndex,E=T[0],"${"===T[1]?(E="?InterpolationInTemplate",N.push({tag:"InterpolationInTemplate",nesting:$.length}),C=!1,yield{type:"TemplateHead",value:T[0]}):(C=!0,yield{type:"NoSubstitutionTemplate",value:T[0],closed:"`"===T[1]});continue}break;case"JSXTag":case"JSXTagEnd":if(n.lastIndex=j,T=n.exec(w)){switch(j=n.lastIndex,_=T[0],T[0]){case"<":N.push({tag:"JSXTag"});break;case">":N.pop(),"/"===E||"JSXTagEnd"===k.tag?(_="?JSX",C=!0):N.push({tag:"JSXChildren"});break;case"{":N.push({tag:"InterpolationInJSX",nesting:$.length}),_="?InterpolationInJSX",C=!1;break;case"/":"<"===E&&(N.pop(),"JSXChildren"===N[N.length-1].tag&&N.pop(),N.push({tag:"JSXTagEnd"}))}E=_,yield{type:"JSXPunctuator",value:T[0]};continue}if(e.lastIndex=j,T=e.exec(w)){j=e.lastIndex,E=T[0],yield{type:"JSXIdentifier",value:T[0]};continue}if(r.lastIndex=j,T=r.exec(w)){j=r.lastIndex,E=T[0],yield{type:"JSXString",value:T[0],closed:void 0!==T[2]};continue}break;case"JSXChildren":if(i.lastIndex=j,T=i.exec(w)){j=i.lastIndex,E=T[0],yield{type:"JSXText",value:T[0]};continue}switch(w[j]){case"<":N.push({tag:"JSXTag"}),j++,E="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":N.push({tag:"InterpolationInJSX",nesting:$.length}),j++,E="?InterpolationInJSX",C=!1,yield{type:"JSXPunctuator",value:"{"};continue}}g.lastIndex=j,(T=g.exec(w))?(j=g.lastIndex,yield{type:"WhiteSpace",value:T[0]}):(c.lastIndex=j,(T=c.exec(w))?(j=c.lastIndex,C=!1,s.test(E)&&(E="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:T[0]}):(a.lastIndex=j,(T=a.exec(w))?(j=a.lastIndex,u.test(T[0])&&(C=!1,s.test(E)&&(E="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:T[0],closed:void 0!==T[1]}):(d.lastIndex=j,(T=d.exec(w))?(j=d.lastIndex,C=!1,yield{type:"SingleLineComment",value:T[0]}):(j+=(x=String.fromCodePoint(w.codePointAt(j))).length,E=x,C=!1,yield{type:k.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:x}))))}});var t,e,n,r,i,o,s,c,a,u,l,f,h,d,p,b,m,y,g}();var Sl=["implements","interface","let","package","private","protected","public","static","yield"];new Set(["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"]),new Set(Sl);var jl=Object.entries({reset:[0,0],bold:[1,22,"[22m[1m"],dim:[2,22,"[22m[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 El(t){return String(t)}El.open="",El.close="",function(t=!1){let e=function(t=!1){let e="undefined"!=typeof process?process:void 0,n=(null==e?void 0:e.env)||{},r=(null==e?void 0:e.argv)||[];return!("NO_COLOR"in n||r.includes("--no-color"))&&("FORCE_COLOR"in n||r.includes("--color")||"win32"===(null==e?void 0:e.platform)||t&&"dumb"!==n.TERM||"CI"in n)||"undefined"!=typeof window&&!!window.chrome}(t),n=(t,e,n=t)=>{let r=r=>{let i=String(r),o=i.indexOf(e,t.length);return~o?t+((t,e,n,r)=>{let i="",o=0;do{i+=t.substring(o,r)+n,o=r+e.length,r=t.indexOf(e,o)}while(~r);return i+t.substring(o)})(i,e,n,o)+e:t+i+e};return r.open=t,r.close=e,r},r={isColorSupported:e},i=t=>`[${t}m`;for(let[t,o]of jl)r[t]=e?n(i(o[0]),i(o[1]),o[2]):El}();var Ol=/\r?\n/;function Tl(t,e,n){const r=t.split(Ol),i=/\r\n/.test(t)?2:1;let o=0;if(e>r.length)return t.length;for(let t=0;t<e-1;t++)o+=r[t].length+i;return o+n}var kl=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*\{/;function Al(t,e,n){const r=function(t,e){if(e>t.length)throw new Error(`offset is longer than source length! offset ${e} > length ${t.length}`);const n=t.split(Ol),r=/\r\n/.test(t)?2:1;let i=0,o=0;for(;o<n.length;o++){const t=n[o].length+r;if(i+t>=e)break;i+=t}return o+1}(e,n),i=e.split(Ol)[r-1].match(/^\s*/)[0]||"",o=i.includes("\t")?`${i}\t`:`${i} `,s=t.trim().replace(/\\/g,"\\\\").split(/\n/g),c="`";return s.length<=1?`${c}${s.join("\n").replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}${c}`:`${c}\n${s.map((t=>t?o+t:"")).join("\n").replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}\n${i}${c}`}var _l="toMatchInlineSnapshot",Ml="toThrowErrorMatchingInlineSnapshot";var Cl=/(?: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 Il(t,e,n,r){const{code:i,index:o}=function(t,e){const n=e-_l.length;if(t.slice(n,e)===_l)return{code:t.slice(n),index:n};const r=e-Ml.length;return t.slice(e-r,e)===Ml?{code:t.slice(e-r),index:e-r}:{code:t.slice(e),index:e}}(t,n),s=Cl.exec(i),c=/toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot/.exec(i);if(!s||s.index!==(null==c?void 0:c.index))return function(t,e,n,r){let i=t.slice(n);const o=kl.exec(i);if(!o)return!1;i=i.slice(o.index);let s=function(t){let e=-1,n=null,r=0,i=0,o=null;for(;e<=t.length;){o=t[e],e++;const s=t[e];if(('"'===s||"'"===s||"`"===s)&&"\\"!==o&&(n===s?n=null:n||(n=s)),n||("("===s&&r++,")"===s&&i++),r&&i&&r===i)return e}return null}(i);if(null===s)return!1;s+=n+o.index;const c=function(t,e){let n=1,r=0;for(;n!==r&&e<t.length;){const i=t[e++];"{"===i?n++:"}"===i&&r++}return e}(t,n+o.index+o[0].length),a=`, ${Al(r,t,n)}`;return c===s?e.appendLeft(s,a):e.overwrite(c,s,a),!0}(t,e,o,r);const a=s[1],u=o+s.index+s[0].length,l=Al(r,t,o);if(")"===a)return e.appendRight(u-1,l),!0;const f=new RegExp(`(?:^|[^\\\\])${a}`).exec(t.slice(u));if(!f)return!1;const h=u+f.index+f[0].length;return e.overwrite(u-1,h,l),!0}var Nl=/^([^\S\n]*)\S/m;function Pl(t){const e=t.match(Nl);if(!e||!e[1])return t;const n=e[1],r=t.split(/\n/g);if(r.length<=2)return t;if(""!==r[0].trim()||""!==r[r.length-1].trim())return t;for(let e=1;e<r.length-1;e++)if(""!==r[e]){if(0!==r[e].indexOf(n))return t;r[e]=r[e].substring(n.length)}return r[r.length-1]="",t=r.join("\n")}var Rl,Bl={exports:{}};var Dl=xl(function(){if(Rl)return Bl.exports;Rl=1;var t=function(t,e){var n,r,i=1,o=0,s=0,c=String.alphabet;function a(t,e,r){if(r){for(n=e;(r=a(t,n))<76&&r>65;)++n;return+t.slice(e-1,n)}return(r=c&&c.indexOf(t.charAt(e)))>-1?r+76:(r=t.charCodeAt(e)||0)<45||r>127?r:r<46?65:r<48?r-1:r<58?r+18:r<65?r-11:r<91?r+11:r<97?r-37:r<123?r+5:r-63}if((t+="")!=(e+=""))for(;i;)if(r=a(t,o++),i=a(e,s++),r<76&&i<76&&r>66&&i>66&&(r=a(t,o,o),i=a(e,s,o=n),s=n),r!=i)return r<i?-1:1;return 0};try{Bl.exports=t}catch(e){String.naturalCompare=t}return Bl.exports}()),Ll={serialize:(t,e,n,r,i,o)=>{const s=t.getMockName(),c="vi.fn()"===s?"":` ${s}`;let a="";if(0!==t.mock.calls.length){const s=n+e.indent;a=` {${e.spacingOuter}${s}"calls": ${o(t.mock.calls,e,s,r,i)}${e.min?", ":","}${e.spacingOuter}${s}"results": ${o(t.mock.results,e,s,r,i)}${e.min?"":","}${e.spacingOuter}${n}}`}return`[MockFunction${c}]${a}`},test:t=>t&&!!t._isMockFunction},{DOMCollection:Fl,DOMElement:ql,Immutable:Jl,ReactElement:Ul,ReactTestComponent:Wl,AsymmetricMatcher:Hl}=pe,Xl=[Wl,Ul,ql,Fl,Jl,Hl,Ll];function zl(t){Xl=[t].concat(Xl)}function Vl(t){if(!/ \d+$/.test(t))throw new Error("Snapshot keys must end with a number.");return t.replace(/ \d+$/,"")}function Kl(t){return t.length>2&&t.startsWith("\n")&&t.endsWith("\n")?t.slice(1,-1):t}function Gl(t){return`\`${function(t){return t.replace(/`|\\|\$\{/g,"\\$&")}(t)}\``}function Zl(t){return t.replace(/\r\n|\r/g,"\n")}function Yl(t){const e=function(){var e,n;const r=/^( +)\}\s+$/m.exec(t||""),i=null==(e=null==r?void 0:r[1])?void 0:e.length;if(i)return i;const o=/^\n( +)"/.exec(t||"");return(null==(n=null==o?void 0:o[1])?void 0:n.length)||0}();let n=null==t?void 0:t.trim();return e&&(n=null==n?void 0:n.replace(new RegExp(`^${" ".repeat(e)}`,"gm"),"").replace(/ +\}$/,"}")),n}function Ql(t=[],e=[]){const n=Array.from(t);return e.forEach(((e,r)=>{const i=n[r];Array.isArray(t[r])?n[r]=Ql(t[r],e):cl(i)?n[r]=tf(t[r],e):n[r]=e})),n}function tf(t,e){if(cl(t)&&cl(e)){const n={...t};return Object.keys(e).forEach((r=>{cl(e[r])&&!e[r].$$typeof?r in t?n[r]=tf(t[r],e[r]):Object.assign(n,{[r]:e[r]}):Array.isArray(e[r])?n[r]=Ql(t[r],e[r]):Object.assign(n,{[r]:e[r]})})),n}return Array.isArray(t)&&Array.isArray(e)?Ql(t,e):t}var ef=class extends Map{constructor(t,e){super(e),this.defaultFn=t}get(t){return this.has(t)||this.set(t,this.defaultFn(t)),super.get(t)}},nf=class extends ef{constructor(){super((()=>0)),m(this,"_total")}valueOf(){return this._total=this.total()}increment(t){void 0!==this._total&&this._total++,this.set(t,this.get(t)+1)}total(){if(void 0!==this._total)return this._total;let t=0;for(const e of this.values())t+=e;return t}};function rf(t,e){return t.file===e.file&&t.column===e.column&&t.line===e.line}var of=class t{constructor(t,e,n,r){m(this,"_counters",new nf),m(this,"_dirty"),m(this,"_updateSnapshot"),m(this,"_snapshotData"),m(this,"_initialData"),m(this,"_inlineSnapshots"),m(this,"_inlineSnapshotStacks"),m(this,"_testIdToKeys",new ef((()=>[]))),m(this,"_rawSnapshots"),m(this,"_uncheckedKeys"),m(this,"_snapshotFormat"),m(this,"_environment"),m(this,"_fileExists"),m(this,"expand"),m(this,"_added",new nf),m(this,"_matched",new nf),m(this,"_unmatched",new nf),m(this,"_updated",new nf),this.testFilePath=t,this.snapshotPath=e;const{data:i,dirty:o}=function(t,e){const n=e.updateSnapshot,r=Object.create(null);let i="",o=!1;if(null!=t)try{i=t,new Function("exports",i)(r)}catch{}return"all"!==n&&"new"!==n||!i||(o=!0),{data:r,dirty:o}}(n,r);this._fileExists=null!=n,this._initialData={...i},this._snapshotData={...i},this._dirty=o,this._inlineSnapshots=[],this._inlineSnapshotStacks=[],this._rawSnapshots=[],this._uncheckedKeys=new Set(Object.keys(this._snapshotData)),this.expand=r.expand||!1,this._updateSnapshot=r.updateSnapshot,this._snapshotFormat={printBasicPrototype:!1,escapeString:!1,...r.snapshotFormat},this._environment=r.snapshotEnvironment}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}static async create(e,n){const r=await n.snapshotEnvironment.resolvePath(e),i=await n.snapshotEnvironment.readSnapshotFile(r);return new t(e,r,i,n)}get environment(){return this._environment}markSnapshotsAsCheckedForTest(t){this._uncheckedKeys.forEach((e=>{/ \d+$| > /.test(e.slice(t.length))&&this._uncheckedKeys.delete(e)}))}clearTest(t){this._inlineSnapshots=this._inlineSnapshots.filter((e=>e.testId!==t)),this._inlineSnapshotStacks=this._inlineSnapshotStacks.filter((e=>e.testId!==t));for(const e of this._testIdToKeys.get(t)){const t=Vl(e),n=this._counters.get(t);n>0&&((e in this._snapshotData||e in this._initialData)&&(this._snapshotData[e]=this._initialData[e]),this._counters.set(t,n-1))}this._testIdToKeys.delete(t),this.added.delete(t),this.updated.delete(t),this.matched.delete(t),this.unmatched.delete(t)}_inferInlineSnapshotStack(t){const e=t.findIndex((t=>t.method.match(/__VITEST_(RESOLVES|REJECTS)__/)));if(-1!==e)return t[e+3];const n=t.findIndex((t=>t.method.includes("__INLINE_SNAPSHOT__")));return-1!==n?t[n+2]:null}_addSnapshot(t,e,n){this._dirty=!0,n.stack?this._inlineSnapshots.push({snapshot:e,testId:n.testId,...n.stack}):n.rawSnapshot?this._rawSnapshots.push({...n.rawSnapshot,snapshot:e}):this._snapshotData[t]=e}async save(){const t=Object.keys(this._snapshotData).length,e=this._inlineSnapshots.length,n=this._rawSnapshots.length,r=!t&&!e&&!n,i={deleted:!1,saved:!1};return!this._dirty&&!this._uncheckedKeys.size||r?!t&&this._fileExists&&("all"===this._updateSnapshot&&(await this._environment.removeSnapshotFile(this.snapshotPath),this._fileExists=!1),i.deleted=!0):(t&&(await async function(t,e,n){const r=Object.keys(e).sort(Dl).map((t=>`exports[${Gl(t)}] = ${Gl(Zl(e[t]))};`)),i=`${t.getHeader()}\n\n${r.join("\n\n")}\n`,o=await t.readSnapshotFile(n);null!=o&&o===i||await t.saveSnapshotFile(n,i)}(this._environment,this._snapshotData,this.snapshotPath),this._fileExists=!0),e&&await async function(t,e){const n=(await Promise.resolve().then((()=>(B(),C)))).default,r=new Set(e.map((t=>t.file)));await Promise.all(Array.from(r).map((async r=>{const i=e.filter((t=>t.file===r)),o=await t.readSnapshotFile(r),s=new n(o);for(const t of i)Il(o,s,Tl(o,t.line,t.column),t.snapshot);const c=s.toString();c!==o&&await t.saveSnapshotFile(r,c)})))}(this._environment,this._inlineSnapshots),n&&await async function(t,e){await Promise.all(e.map((async e=>{e.readonly||await t.saveSnapshotFile(e.file,e.snapshot)})))}(this._environment,this._rawSnapshots),i.saved=!0),i}getUncheckedCount(){return this._uncheckedKeys.size||0}getUncheckedKeys(){return Array.from(this._uncheckedKeys)}removeUncheckedKeys(){"all"===this._updateSnapshot&&this._uncheckedKeys.size&&(this._dirty=!0,this._uncheckedKeys.forEach((t=>delete this._snapshotData[t])),this._uncheckedKeys.clear())}match({testId:t,testName:e,received:n,key:r,inlineSnapshot:i,isInline:o,error:s,rawSnapshot:c}){var a,u;this._counters.increment(e);const l=this._counters.get(e);r||(r=function(t,e){return`${t} ${e}`}(e,l)),this._testIdToKeys.get(t).push(r),o&&void 0!==this._snapshotData[r]||this._uncheckedKeys.delete(r);let f=c&&"string"==typeof n?n:function(t,e=2,n={}){return Zl(de(t,{escapeRegex:!0,indent:e,plugins:Xl,printFunctionName:!1,...n}))}(n,void 0,this._snapshotFormat);var h;c||(f=(h=f).includes("\n")?`\n${h}\n`:h),c&&c.content&&c.content.match(/\r\n/)&&!f.match(/\r\n/)&&(c.content=Zl(c.content));const d=o?i:c?c.content:this._snapshotData[r],p=c?d:Yl(d),b=p===(c?f:Yl(f)),m=void 0!==d,y=o||this._fileExists||c&&null!=c.content;let g;if(!b||o||c||(this._snapshotData[r]=f),o){const e=function(t,e={}){if(!t||null===(n=t)||"function"!=typeof n&&"object"!=typeof n)return[];var n;if(t.stacks)return t.stacks;let r=hl(t.stack||t.stackStr||"",e);return e.frameFilter&&(r=r.filter((n=>!1!==e.frameFilter(t,n)))),t.stacks=r,r}(s||new Error("snapshot"),{ignoreStackEntries:[]}),n=this._inferInlineSnapshotStack(e);if(!n)throw new Error(`@vitest/snapshot: Couldn't infer stack frame for inline snapshot.\n${JSON.stringify(e)}`);g=(null==(u=(a=this.environment).processStackTrace)?void 0:u.call(a,n))||n,g.column--;const r=this._inlineSnapshotStacks.filter((t=>rf(t,g)));if(r.length>0){this._inlineSnapshots=this._inlineSnapshots.filter((t=>!rf(t,g)));const t=r.find((t=>t.snapshot!==f));if(t)throw Object.assign(new Error("toMatchInlineSnapshot with different snapshots cannot be called at the same location"),{actual:f,expected:t.snapshot})}this._inlineSnapshotStacks.push({...g,testId:t,snapshot:f})}return m&&"all"===this._updateSnapshot||!(m&&y||"new"!==this._updateSnapshot&&"all"!==this._updateSnapshot)?("all"===this._updateSnapshot?b?this.matched.increment(t):(m?this.updated.increment(t):this.added.increment(t),this._addSnapshot(r,f,{stack:g,testId:t,rawSnapshot:c})):(this._addSnapshot(r,f,{stack:g,testId:t,rawSnapshot:c}),this.added.increment(t)),{actual:"",count:l,expected:"",key:r,pass:!0}):b?(this.matched.increment(t),{actual:"",count:l,expected:"",key:r,pass:!0}):(this.unmatched.increment(t),{actual:c?f:Kl(f),count:l,expected:void 0!==p?c?p:Kl(p):void 0,key:r,pass:!1})}async pack(){const t={filepath:this.testFilePath,added:0,fileDeleted:!1,matched:0,unchecked:0,uncheckedKeys:[],unmatched:0,updated:0},e=this.getUncheckedCount(),n=this.getUncheckedKeys();e&&this.removeUncheckedKeys();const r=await this.save();return t.fileDeleted=r.deleted,t.added=this.added.total(),t.matched=this.matched.total(),t.unmatched=this.unmatched.total(),t.updated=this.updated.total(),t.unchecked=r.deleted?0:e,t.uncheckedKeys=Array.from(n),t}};function sf(t,e,n,r){const i=new Error(t);return Object.defineProperty(i,"actual",{value:n,enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(i,"expected",{value:r,enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(i,"diffOptions",{value:{expand:e}}),i}var cf=class{constructor(t={}){m(this,"snapshotStateMap",new Map),this.options=t}async setup(t,e){this.snapshotStateMap.has(t)||this.snapshotStateMap.set(t,await of.create(t,e))}async finish(t){const e=this.getSnapshotState(t),n=await e.pack();return this.snapshotStateMap.delete(t),n}skipTest(t,e){this.getSnapshotState(t).markSnapshotsAsCheckedForTest(e)}clearTest(t,e){this.getSnapshotState(t).clearTest(e)}getSnapshotState(t){const e=this.snapshotStateMap.get(t);if(!e)throw new Error(`The snapshot state for '${t}' is not found. Did you call 'SnapshotClient.setup()'?`);return e}assert(t){var e,n;const{filepath:r,name:i,testId:o=i,message:s,isInline:c=!1,properties:a,inlineSnapshot:u,error:l,errorMessage:f,rawSnapshot:h}=t;let{received:d}=t;if(!r)throw new Error("Snapshot cannot be used outside of test");const p=this.getSnapshotState(r);if("object"==typeof a){if("object"!=typeof d||!d)throw new Error("Received value must be an object when the matcher has properties");try{if(!((null==(n=(e=this.options).isEqual)?void 0:n.call(e,d,a))??!1))throw sf("Snapshot properties mismatched",p.expand,d,a);d=tf(d,a)}catch(t){throw t.message=f||"Snapshot mismatched",t}}const b=[i,...s?[s]:[]].join(" > "),{actual:m,expected:y,key:g,pass:w}=p.match({testId:o,testName:b,received:d,isInline:c,error:l,inlineSnapshot:u,rawSnapshot:h});if(!w)throw sf(`Snapshot \`${g||"unknown"}\` mismatched`,p.expand,h?m:null==m?void 0:m.trim(),h?y:null==y?void 0:y.trim())}async assertRaw(t){if(!t.rawSnapshot)throw new Error("Raw snapshot is required");const{filepath:e,rawSnapshot:n}=t;if(null==n.content){if(!e)throw new Error("Snapshot cannot be used outside of test");const r=this.getSnapshotState(e);t.filepath||(t.filepath=e),n.file=await r.environment.resolveRawPath(e,n.file),n.content=await r.environment.readSnapshotFile(n.file)??void 0}return this.assert(t)}clear(){this.snapshotStateMap.clear()}};y();var af=Date,uf=null,lf=class t extends af{constructor(e,n,r,i,o,s,c){let a;switch(super(),arguments.length){case 0:a=null!==uf?new af(uf.valueOf()):new af;break;case 1:a=new af(e);break;default:a=new af(e,n,r=void 0===r?1:r,i=i||0,o=o||0,s=s||0,c=c||0)}return Object.setPrototypeOf(a,t.prototype),a}};lf.UTC=af.UTC,lf.now=function(){return(new lf).valueOf()},lf.parse=function(t){return af.parse(t)},lf.toString=function(){return af.toString()};var ff=["matchSnapshot","toMatchSnapshot","toMatchInlineSnapshot","toThrowErrorMatchingSnapshot","toThrowErrorMatchingInlineSnapshot","throws","Throw","throw","toThrow","toThrowError"];function hf(t,e){return void 0!==e.stack&&(t.stack=e.stack.replace(e.message,t.message)),t}var df,pf={exports:{}};var bf,mf,yf=Ou((df||(df=1,bf=pf,function(){var t;t=function(t,e){var n=t.Assertion,r=n.prototype;function i(t,e){if(t===e)return!0;if(typeof e!=typeof t)return!1;if("object"!=typeof t||null===t)return t===e;if(t&&!e)return!1;if(Array.isArray(t)){if("number"!=typeof e.length)return!1;var n=Array.prototype.slice.call(e);return t.every((function(t){return n.some((function(e){return i(t,e)}))}))}return t instanceof Date?e instanceof Date&&t.getTime()===e.getTime():Object.keys(t).every((function(n){var r=t[n],o=e[n];return"object"==typeof r&&null!==r&&null!==o?i(r,o):"function"==typeof r?r(o):o===r}))}n.addMethod("containSubset",(function(n){var o=e.flag(this,"object"),s=t.config.showDiff;r.assert.call(this,i(n,o),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",n,o,s)})),t.assert.containSubset=function(e,n,r){new t.Assertion(e,r).to.be.containSubset(n)}},bf.exports=t}.call(pf.exports)),pf.exports));function gf(){return mf||(mf=new cf({isEqual:(t,e)=>Dc(t,e,[Yc,ta])})),mf}function wf(t,e){if("function"!=typeof t){if(!e)throw new Error("expected must be a function, received "+typeof t);return t}try{t()}catch(t){return t}throw new Error("snapshot function didn't throw")}function vf(t){return{filepath:t.file.filepath,name:Fa(t).slice(1).join(" > "),testId:t.id}}$c(((t,e)=>{e.addMethod(t.expect,"extend",((e,n)=>{$c($a(t,e,n))}))})),$c(((t,e)=>{const{AssertionError:n}=t,r=Bc();function i(n,r){const i=n=>{const i=ya(e,n,r);e.addMethod(t.Assertion.prototype,n,i),e.addMethod(globalThis[Sc].matchers,n,i)};Array.isArray(n)?n.forEach((t=>i(t))):i(n)}function o(t){return function(t){if(!ei(t._obj))throw new TypeError(`${e.inspect(t._obj)} is not a spy or a call to a spy!`)}(t),t._obj}function s(t,e){return t.length===e.length&&t.every(((t,n)=>Dc(t,e[n],[...r,Yc])))}function c(t,e,n){const r=t.mock.invocationCallOrder,i=e.mock.invocationCallOrder;return 0===r.length?!n:0!==i.length&&r[0]<i[0]}["throw","throws","Throw"].forEach((r=>{e.overwriteMethod(t.Assertion.prototype,r,(t=>function(...r){const i=e.flag(this,"promise"),o=e.flag(this,"object"),s=e.flag(this,"negate");if("rejects"===i)e.flag(this,"object",(()=>{throw o}));else if("resolves"===i&&"function"!=typeof o){if(s)return;{const t=e.flag(this,"message")||"expected promise to throw an error, but it didn't";throw new n(t,{showDiff:!1},e.flag(this,"ssfi"))}}t.apply(this,r)}))})),i("withTest",(function(t){return e.flag(this,"vitest-test",t),this})),i("toEqual",(function(t){const n=e.flag(this,"object"),i=Dc(n,t,[...r,Yc]);return this.assert(i,"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",t,n)})),i("toStrictEqual",(function(t){const n=e.flag(this,"object"),i=Dc(n,t,[...r,Yc,ea,ra,na],!0);return this.assert(i,"expected #{this} to strictly equal #{exp}","expected #{this} to not strictly equal #{exp}",t,n)})),i("toBe",(function(t){const e=this._obj,n=Object.is(e,t);let i="";if(!n){if(Dc(e,t,[...r,Yc,ea,ra,na],!0))i="toStrictEqual";else{Dc(e,t,[...r,Yc])&&(i="toEqual")}}return this.assert(n,function(t,e="#{this}",n="#{exp}"){const r=`expected ${e} to be ${n} // Object.is equality`;return["toStrictEqual","toEqual"].includes(t)?`${r}\n\nIf it should pass with deep equality, replace "toBe" with "${t}"\n\nExpected: ${e}\nReceived: serializes to the same string\n`:r}(i),"expected #{this} not to be #{exp} // Object.is equality",t,e)})),i("toMatchObject",(function(t){const i=this._obj,o=Dc(i,t,[...r,Yc,ta]),s=e.flag(this,"negate"),{subset:c,stripped:a}=function(t,e,n){let r=0;const i=(t=new WeakMap)=>(e,o)=>{if(Array.isArray(e)){if(Array.isArray(o)&&o.length===e.length)return o.map(((n,r)=>i(t)(e[r],n)))}else{if(e instanceof Date)return e;if(un(e)&&un(o)){if(Dc(e,o,[...n,Yc,ta]))return o;const s={};t.set(e,s),"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&Object.defineProperty(s,"constructor",{enumerable:!1,value:e.constructor});for(const n of ia(e))Qc(o,n)?s[n]=t.has(e[n])?t.get(e[n]):i(t)(e[n],o[n]):t.has(e[n])||(r+=1,un(e[n])&&(r+=ia(e[n]).length),i(t)(e[n],o[n]));if(ia(s).length>0)return s}}return e};return{subset:i()(t,e),stripped:r}}(i,t,r);if(o&&s||!o&&!s){const r=e.getMessage(this,[o,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",t,c,!1]);throw new n(0===a?r:`${r}\n(${a} matching ${1===a?"property":"properties"} omitted from actual)`,{showDiff:!0,expected:t,actual:c})}})),i("toMatch",(function(t){const e=this._obj;if("string"!=typeof e)throw new TypeError(".toMatch() expects to receive a string, but got "+typeof e);return this.assert("string"==typeof t?e.includes(t):e.match(t),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",t,e)})),i("toContain",(function(t){const n=this._obj;if("undefined"!=typeof Node&&n instanceof Node){if(!(t instanceof Node))throw new TypeError("toContain() expected a DOM node as the argument, but got "+typeof t);return this.assert(n.contains(t),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",t,n)}if("undefined"!=typeof DOMTokenList&&n instanceof DOMTokenList){cn(t,"class name",["string"]);const r=e.flag(this,"negate")?n.value.replace(t,"").trim():`${n.value} ${t}`;return this.assert(n.contains(t),`expected "${n.value}" to contain "${t}"`,`expected "${n.value}" not to contain "${t}"`,r,n.value)}return"string"==typeof n&&"string"==typeof t?this.assert(n.includes(t),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",t,n):(null!=n&&"string"!=typeof n&&e.flag(this,"object",Array.from(n)),this.contain(t))})),i("toContainEqual",(function(t){const n=e.flag(this,"object"),i=Array.from(n).findIndex((e=>Dc(e,t,r)));this.assert(-1!==i,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",t)})),i("toBeTruthy",(function(){const t=e.flag(this,"object");this.assert(Boolean(t),"expected #{this} to be truthy","expected #{this} to not be truthy",!0,t)})),i("toBeFalsy",(function(){const t=e.flag(this,"object");this.assert(!t,"expected #{this} to be falsy","expected #{this} to not be falsy",!1,t)})),i("toBeGreaterThan",(function(t){const e=this._obj;return cn(e,"actual",["number","bigint"]),cn(t,"expected",["number","bigint"]),this.assert(e>t,`expected ${e} to be greater than ${t}`,`expected ${e} to be not greater than ${t}`,t,e,!1)})),i("toBeGreaterThanOrEqual",(function(t){const e=this._obj;return cn(e,"actual",["number","bigint"]),cn(t,"expected",["number","bigint"]),this.assert(e>=t,`expected ${e} to be greater than or equal to ${t}`,`expected ${e} to be not greater than or equal to ${t}`,t,e,!1)})),i("toBeLessThan",(function(t){const e=this._obj;return cn(e,"actual",["number","bigint"]),cn(t,"expected",["number","bigint"]),this.assert(e<t,`expected ${e} to be less than ${t}`,`expected ${e} to be not less than ${t}`,t,e,!1)})),i("toBeLessThanOrEqual",(function(t){const e=this._obj;return cn(e,"actual",["number","bigint"]),cn(t,"expected",["number","bigint"]),this.assert(e<=t,`expected ${e} to be less than or equal to ${t}`,`expected ${e} to be not less than or equal to ${t}`,t,e,!1)})),i("toBeNaN",(function(){const t=e.flag(this,"object");this.assert(Number.isNaN(t),"expected #{this} to be NaN","expected #{this} not to be NaN",Number.NaN,t)})),i("toBeUndefined",(function(){const t=e.flag(this,"object");this.assert(void 0===t,"expected #{this} to be undefined","expected #{this} not to be undefined",void 0,t)})),i("toBeNull",(function(){const t=e.flag(this,"object");this.assert(null===t,"expected #{this} to be null","expected #{this} not to be null",null,t)})),i("toBeDefined",(function(){const t=e.flag(this,"object");this.assert(void 0!==t,"expected #{this} to be defined","expected #{this} to be undefined",t)})),i("toBeTypeOf",(function(t){const e=typeof this._obj,n=t===e;return this.assert(n,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",t,e)})),i("toBeInstanceOf",(function(t){return this.instanceOf(t)})),i("toHaveLength",(function(t){return this.have.length(t)})),i("toHaveProperty",(function(...t){Array.isArray(t[0])&&(t[0]=t[0].map((t=>String(t).replace(/([.[\]])/g,"\\$1"))).join("."));const n=this._obj,[i,o]=t,{value:s,exists:c}=Object.prototype.hasOwnProperty.call(n,i)?{value:n[i],exists:!0}:e.getPathInfo(n,i),a=c&&(1===t.length||Dc(o,s,r)),u=1===t.length?"":` with value ${e.objDisplay(o)}`;return this.assert(a,`expected #{this} to have property "${i}"${u}`,`expected #{this} to not have property "${i}"${u}`,o,c?s:void 0)})),i("toBeCloseTo",(function(t,e=2){const n=this._obj;let r=!1,i=0,o=0;return t===Number.POSITIVE_INFINITY&&n===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY&&n===Number.NEGATIVE_INFINITY?r=!0:(i=10**-e/2,o=Math.abs(n-t),r=o<i),this.assert(r,`expected #{this} to be close to #{exp}, received difference is ${o}, but expected ${i}`,`expected #{this} to not be close to #{exp}, received difference is ${o}, but expected ${i}`,t,n,!1)})),i(["toHaveBeenCalledTimes","toBeCalledTimes"],(function(t){const e=o(this),n=e.getMockName(),r=e.mock.calls.length;return this.assert(r===t,`expected "${n}" to be called #{exp} times, but got ${r} times`,`expected "${n}" to not be called #{exp} times`,t,r,!1)})),i("toHaveBeenCalledOnce",(function(){const t=o(this),e=t.getMockName(),n=t.mock.calls.length;return this.assert(1===n,`expected "${e}" to be called once, but got ${n} times`,`expected "${e}" to not be called once`,1,n,!1)})),i(["toHaveBeenCalled","toBeCalled"],(function(){const t=o(this),r=t.getMockName(),i=t.mock.calls.length,s=i>0,c=e.flag(this,"negate");let a=e.getMessage(this,[s,`expected "${r}" to be called at least once`,`expected "${r}" to not be called at all, but actually been called ${i} times`,!0,s]);if(s&&c&&(a=wa(t,a)),s&&c||!s&&!c)throw new n(a)})),i(["toHaveBeenCalledWith","toBeCalledWith"],(function(...t){const r=o(this),i=r.getMockName(),c=r.mock.calls.some((e=>s(e,t))),a=e.flag(this,"negate"),u=e.getMessage(this,[c,`expected "${i}" to be called with arguments: #{exp}`,`expected "${i}" to not be called with arguments: #{exp}`,t]);if(c&&a||!c&&!a)throw new n(wa(r,u,t))})),i("toHaveBeenCalledExactlyOnceWith",(function(...t){const r=o(this),i=r.getMockName(),c=r.mock.calls.length,a=r.mock.calls.some((e=>s(e,t)))&&1===c,u=e.flag(this,"negate"),l=e.getMessage(this,[a,`expected "${i}" to be called once with arguments: #{exp}`,`expected "${i}" to not be called once with arguments: #{exp}`,t]);if(a&&u||!a&&!u)throw new n(wa(r,l,t))})),i(["toHaveBeenNthCalledWith","nthCalledWith"],(function(t,...e){const n=o(this),r=n.getMockName(),i=n.mock.calls[t-1],c=n.mock.calls.length,a=t<=c;this.assert(i&&s(i,e),`expected ${ga(t)} "${r}" call to have been called with #{exp}${a?"":`, but called only ${c} times`}`,`expected ${ga(t)} "${r}" call to not have been called with #{exp}`,e,i,a)})),i(["toHaveBeenLastCalledWith","lastCalledWith"],(function(...t){const e=o(this),n=e.getMockName(),r=e.mock.calls[e.mock.calls.length-1];this.assert(r&&s(r,t),`expected last "${n}" call to have been called with #{exp}`,`expected last "${n}" call to not have been called with #{exp}`,t,r)})),i(["toHaveBeenCalledBefore"],(function(t,n=!0){const r=o(this);if(!ei(t))throw new TypeError(`${e.inspect(t)} is not a spy or a call to a spy`);this.assert(c(r,t,n),`expected "${r.getMockName()}" to have been called before "${t.getMockName()}"`,`expected "${r.getMockName()}" to not have been called before "${t.getMockName()}"`,t,r)})),i(["toHaveBeenCalledAfter"],(function(t,n=!0){const r=o(this);if(!ei(t))throw new TypeError(`${e.inspect(t)} is not a spy or a call to a spy`);this.assert(c(t,r,n),`expected "${r.getMockName()}" to have been called after "${t.getMockName()}"`,`expected "${r.getMockName()}" to not have been called after "${t.getMockName()}"`,t,r)})),i(["toThrow","toThrowError"],(function(t){if("string"==typeof t||void 0===t||t instanceof RegExp)return this.throws(""===t?/^$/:t);const i=this._obj,o=e.flag(this,"promise"),s=e.flag(this,"negate");let c=null;if("rejects"===o)c=i;else{if("resolves"===o&&"function"!=typeof i){if(s)return;{const t=e.flag(this,"message")||"expected promise to throw an error, but it didn't";throw new n(t,{showDiff:!1},e.flag(this,"ssfi"))}}{let t=!1;try{i()}catch(e){t=!0,c=e}if(!t&&!s){const t=e.flag(this,"message")||"expected function to throw an error, but it didn't";throw new n(t,{showDiff:!1},e.flag(this,"ssfi"))}}}if("function"==typeof t){const e=t.name||t.prototype.constructor.name;return this.assert(c&&c instanceof t,`expected error to be instance of ${e}`,`expected error not to be instance of ${e}`,t,c)}if(t instanceof Error){const e=Dc(c,t,[...r,Yc]);return this.assert(e,"expected a thrown error to be #{exp}","expected a thrown error not to be #{exp}",t,c)}if("object"==typeof t&&"asymmetricMatch"in t&&"function"==typeof t.asymmetricMatch){const e=t;return this.assert(c&&e.asymmetricMatch(c),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",e,c)}throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof t}"`)})),[{name:"toHaveResolved",condition:t=>t.mock.settledResults.length>0&&t.mock.settledResults.some((({type:t})=>"fulfilled"===t)),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:t=>t.mock.calls.length>0&&t.mock.results.some((({type:t})=>"throw"!==t)),action:"called"}].forEach((({name:t,condition:e,action:n})=>{i(t,(function(){const t=o(this),r=t.getMockName(),i=e(t);this.assert(i,`expected "${r}" to be successfully ${n} at least once`,`expected "${r}" to not be successfully ${n}`,i,!i,!1)}))})),[{name:"toHaveResolvedTimes",condition:(t,e)=>t.mock.settledResults.reduce(((t,{type:e})=>"fulfilled"===e?++t:t),0)===e,action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:(t,e)=>t.mock.results.reduce(((t,{type:e})=>"throw"===e?t:++t),0)===e,action:"called"}].forEach((({name:t,condition:e,action:n})=>{i(t,(function(t){const r=o(this),i=r.getMockName(),s=e(r,t);this.assert(s,`expected "${i}" to be successfully ${n} ${t} times`,`expected "${i}" to not be successfully ${n} ${t} times`,`expected resolved times: ${t}`,`received resolved times: ${s}`,!1)}))})),[{name:"toHaveResolvedWith",condition:(t,e)=>t.mock.settledResults.some((({type:t,value:n})=>"fulfilled"===t&&Dc(e,n))),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:(t,e)=>t.mock.results.some((({type:t,value:n})=>"return"===t&&Dc(e,n))),action:"return"}].forEach((({name:t,condition:r,action:s})=>{i(t,(function(t){const i=o(this),c=r(i,t),a=e.flag(this,"negate");if(c&&a||!c&&!a){const r=i.getMockName(),o=e.getMessage(this,[c,`expected "${r}" to ${s} with: #{exp} at least once`,`expected "${r}" to not ${s} with: #{exp}`,t]),a="return"===s?i.mock.results:i.mock.settledResults;throw new n(function(t,e,n,r){return n+=X.gray(`\n\nReceived: \n\n${e.map(((e,n)=>{let i=X.bold(` ${ga(n+1)} ${t.getMockName()} call return:\n\n`);return i+=r?_r(r,e.value,{omitAnnotationLines:!0}):en(e).split("\n").map((t=>` ${t}`)).join("\n"),i+="\n",i})).join("\n")}`),n+=X.gray(`\n\nNumber of calls: ${X.bold(t.mock.calls.length)}\n`),n}(i,a,o,t))}}))})),[{name:"toHaveLastResolvedWith",condition:(t,e)=>{const n=t.mock.settledResults[t.mock.settledResults.length-1];return n&&"fulfilled"===n.type&&Dc(n.value,e)},action:"resolve"},{name:["toHaveLastReturnedWith","lastReturnedWith"],condition:(t,e)=>{const n=t.mock.results[t.mock.results.length-1];return n&&"return"===n.type&&Dc(n.value,e)},action:"return"}].forEach((({name:t,condition:e,action:n})=>{i(t,(function(t){const r=o(this),i="return"===n?r.mock.results:r.mock.settledResults,s=i[i.length-1],c=r.getMockName();this.assert(e(r,t),`expected last "${c}" call to ${n} #{exp}`,`expected last "${c}" call to not ${n} #{exp}`,t,null==s?void 0:s.value)}))})),[{name:"toHaveNthResolvedWith",condition:(t,e,n)=>{const r=t.mock.settledResults[e-1];return r&&"fulfilled"===r.type&&Dc(r.value,n)},action:"resolve"},{name:["toHaveNthReturnedWith","nthReturnedWith"],condition:(t,e,n)=>{const r=t.mock.results[e-1];return r&&"return"===r.type&&Dc(r.value,n)},action:"return"}].forEach((({name:t,condition:e,action:n})=>{i(t,(function(t,r){const i=o(this),s=i.getMockName(),c=("return"===n?i.mock.results:i.mock.settledResults)[t-1],a=`${ga(t)} call`;this.assert(e(i,t,r),`expected ${a} "${s}" call to ${n} #{exp}`,`expected ${a} "${s}" call to not ${n} #{exp}`,r,null==c?void 0:c.value)}))})),i("withContext",(function(t){for(const n in t)e.flag(this,n,t[n]);return this})),e.addProperty(t.Assertion.prototype,"resolves",(function(){const r=new Error("resolves");e.flag(this,"promise","resolves"),e.flag(this,"error",r);const i=e.flag(this,"vitest-test"),o=e.flag(this,"object");if(e.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .resolves");if("function"!=typeof(null==o?void 0:o.then))throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof o}'.`);const s=new Proxy(this,{get:(c,a,u)=>{const l=Reflect.get(c,a,u);return"function"!=typeof l?l instanceof t.Assertion?s:l:(...t)=>{e.flag(this,"_name",a);const s=o.then((n=>(e.flag(this,"object",n),l.call(this,...t))),(t=>{const i=new n(`promise rejected "${e.inspect(t)}" instead of resolving`,{showDiff:!1});throw i.cause=t,i.stack=r.stack.replace(r.message,i.message),i}));return ma(i,s,ba(e,this,!!t.length),r)}}});return s})),e.addProperty(t.Assertion.prototype,"rejects",(function(){const r=new Error("rejects");e.flag(this,"promise","rejects"),e.flag(this,"error",r);const i=e.flag(this,"vitest-test"),o=e.flag(this,"object"),s="function"==typeof o?o():o;if(e.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .rejects");if("function"!=typeof(null==s?void 0:s.then))throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof s}'.`);const c=new Proxy(this,{get:(o,a,u)=>{const l=Reflect.get(o,a,u);return"function"!=typeof l?l instanceof t.Assertion?c:l:(...t)=>{e.flag(this,"_name",a);const o=s.then((t=>{const i=new n(`promise resolved "${e.inspect(t)}" instead of rejecting`,{showDiff:!0,expected:new Error("rejected promise"),actual:t});throw i.stack=r.stack.replace(r.message,i.message),i}),(n=>(e.flag(this,"object",n),l.call(this,...t))));return ma(i,o,ba(e,this,!!t.length),r)}}});return c}))})),$c(yf),$c(((t,e)=>{function n(t,n){const r=e.flag(n,"vitest-test");if(!r)throw new Error(`'${t}' cannot be used without test context`);return r}for(const r of["matchSnapshot","toMatchSnapshot"])e.addMethod(t.Assertion.prototype,r,(function(t,i){e.flag(this,"_name",r);if(e.flag(this,"negate"))throw new Error(`${r} cannot be used with "not"`);const o=e.flag(this,"object"),s=n(r,this);"string"==typeof t&&void 0===i&&(i=t,t=void 0);const c=e.flag(this,"message");gf().assert({received:o,message:i,isInline:!1,properties:t,errorMessage:c,...vf(s)})}));e.addMethod(t.Assertion.prototype,"toMatchFileSnapshot",(function(t,r){e.flag(this,"_name","toMatchFileSnapshot");if(e.flag(this,"negate"))throw new Error('toMatchFileSnapshot cannot be used with "not"');const i=new Error("resolves"),o=e.flag(this,"object"),s=n("toMatchFileSnapshot",this),c=e.flag(this,"message");return function(t,e,n,r){const i=t;if(i&&e instanceof Promise){e=e.finally((()=>{if(!i.promises)return;const t=i.promises.indexOf(e);-1!==t&&i.promises.splice(t,1)})),i.promises||(i.promises=[]),i.promises.push(e);let t=!1;return i.onFinished??=[],i.onFinished.push((()=>{if(!t){const t=(globalThis.__vitest_worker__?.onFilterStackTrace||(t=>t||""))(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.\n",t].join(""))}})),{then:(n,r)=>(t=!0,e.then(n,r)),catch:t=>e.catch(t),finally:t=>e.finally(t),[Symbol.toStringTag]:"Promise"}}return e}(s,gf().assertRaw({received:o,message:r,isInline:!1,rawSnapshot:{file:t},errorMessage:c,...vf(s)}),function(t,e){const n=t.flag(e,"negate")?"not.":"",r=`${t.flag(e,"_name")}(expected)`,i=t.flag(e,"promise");return`expect(actual)${i?`.${i}`:""}.${n}${r}`}(e,this),i)})),e.addMethod(t.Assertion.prototype,"toMatchInlineSnapshot",(function(t,r,i){e.flag(this,"_name","toMatchInlineSnapshot");if(e.flag(this,"negate"))throw new Error('toMatchInlineSnapshot cannot be used with "not"');const o=n("toMatchInlineSnapshot",this);if(o.each||o.suite?.each)throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");const s=e.flag(this,"object"),c=e.flag(this,"error");"string"==typeof t&&(i=r,r=t,t=void 0),r&&(r=Pl(r));const a=e.flag(this,"message");gf().assert({received:s,message:i,isInline:!0,properties:t,inlineSnapshot:r,error:c,errorMessage:a,...vf(o)})})),e.addMethod(t.Assertion.prototype,"toThrowErrorMatchingSnapshot",(function(t){e.flag(this,"_name","toThrowErrorMatchingSnapshot");if(e.flag(this,"negate"))throw new Error('toThrowErrorMatchingSnapshot cannot be used with "not"');const r=e.flag(this,"object"),i=n("toThrowErrorMatchingSnapshot",this),o=e.flag(this,"promise"),s=e.flag(this,"message");gf().assert({received:wf(r,o),message:t,errorMessage:s,...vf(i)})})),e.addMethod(t.Assertion.prototype,"toThrowErrorMatchingInlineSnapshot",(function(t,r){if(e.flag(this,"negate"))throw new Error('toThrowErrorMatchingInlineSnapshot cannot be used with "not"');const i=n("toThrowErrorMatchingInlineSnapshot",this);if(i.each||i.suite?.each)throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");const o=e.flag(this,"object"),s=e.flag(this,"error"),c=e.flag(this,"promise"),a=e.flag(this,"message");t&&(t=Pl(t)),gf().assert({received:wf(o,c),message:r,inlineSnapshot:t,isInline:!0,error:s,errorMessage:a,...vf(i)})})),e.addMethod(t.expect,"addSnapshotSerializer",zl)})),$c(((t,e)=>{e.addMethod(t.expect,"anything",(()=>new ua)),e.addMethod(t.expect,"any",(t=>new ha(t))),e.addMethod(t.expect,"stringContaining",(t=>new aa(t))),e.addMethod(t.expect,"objectContaining",(t=>new la(t))),e.addMethod(t.expect,"arrayContaining",(t=>new fa(t))),e.addMethod(t.expect,"stringMatching",(t=>new da(t))),e.addMethod(t.expect,"closeTo",((t,e)=>new pa(t,e))),t.expect.not={stringContaining:t=>new aa(t,!0),objectContaining:t=>new la(t,!0),arrayContaining:t=>new fa(t,!0),stringMatching:t=>new da(t,!0),closeTo:(t,e)=>new pa(t,e,!0)}}));var $f=function(t){const e=(n,r)=>{const{assertionCalls:i}=oa(e);sa({assertionCalls:i+1},e);const o=pc(n,r),s=t||void 0;return s?o.withTest(s):o};Object.assign(e,pc),Object.assign(e,globalThis[Ec]),e.getState=()=>oa(e),e.setState=t=>sa(t,e);const n=oa(globalThis[jc])||{};return sa({...n,assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null,environment:xu(),get testPath(){return $u().filepath},currentTestName:t?qa(t):n.currentTestName},e),e.extend=t=>pc.extend(e,t),e.addEqualityTesters=t=>function(t){if(!Array.isArray(t))throw new TypeError(`expect.customEqualityTesters: Must be set to an array of Testers. Was given "${ln(t)}"`);globalThis[Sc].customEqualityTesters.push(...t)}(t),e.soft=(...t)=>e(...t).withContext({soft:!0}),e.poll=function(t){return function(e,n={}){const r=$u(),i=r.config.expect?.poll??{},{interval:o=i.interval??50,timeout:s=i.timeout??1e3,message:c}=n,a=t(null,c).withContext({poll:!0});e=e.bind(a);const u=yi.flag(a,"vitest-test");if(!u)throw new Error("expect.poll() must be called inside a test");const l=new Proxy(a,{get(t,n,r){const i=Reflect.get(t,n,r);if("function"!=typeof i)return i instanceof cs?l:i;if("assert"===n)return i;if("string"==typeof n&&ff.includes(n))throw new SyntaxError(`expect.poll() is not supported in combination with .${n}(). Use vi.waitFor() if your assertion condition is unstable.`);return function(...t){const r=new Error("STACK_TRACE_ERROR"),c=()=>new Promise(((c,u)=>{let l,f,h;const{setTimeout:d,clearTimeout:p}=Ln(),b=async()=>{try{yi.flag(a,"_name",n);const r=await e();yi.flag(a,"object",r),c(await i.call(a,...t)),p(l),p(f)}catch(t){h=t,yi.flag(a,"_isLastPollAttempt")||(l=d(b,o))}};f=d((()=>{p(l),yi.flag(a,"_isLastPollAttempt",!0);const t=t=>{u(hf(new Error("Matcher did not succeed in time.",{cause:t}),r))};b().then((()=>t(h))).catch((e=>t(e)))}),s),b()}));let l,f=!1;return u.onFinished??=[],u.onFinished.push((()=>{if(!f){const t=yi.flag(a,"negate")?"not.":"",e=`expect.${yi.flag(a,"_poll.element")?"element(locator)":"poll(assertion)"}.${t}${String(n)}()`;throw hf(new Error(`${e} was not awaited. This assertion is asynchronous and must be awaited; otherwise, it is not executed to avoid unhandled rejections:\n\nawait ${e}\n`),r)}})),{then:(t,e)=>(f=!0,(l||=c()).then(t,e)),catch:t=>(l||=c()).catch(t),finally:t=>(l||=c()).finally(t),[Symbol.toStringTag]:"Promise"}}}});return l}}(e),e.unreachable=t=>{wc.fail(`expected${t?` "${t}" `:" "}not to be reached`)},yi.addMethod(e,"assertions",(function t(n){const r=()=>new Error(`expected number of assertions to be ${n}, but got ${e.getState().assertionCalls}`);Error.captureStackTrace&&Error.captureStackTrace(r(),t),e.setState({expectedAssertionsNumber:n,expectedAssertionsNumberErrorGen:r})})),yi.addMethod(e,"hasAssertions",(function t(){const n=new Error("expected any number of assertion, but got none");Error.captureStackTrace&&Error.captureStackTrace(n,t),e.setState({isExpectingAssertions:!0,isExpectingAssertionsError:n})})),e.extend(Oc),e}();Object.defineProperty(globalThis,jc,{value:$f,writable:!0,configurable:!0});var xf,Sf,jf,Ef,Of,Tf,kf,Af,_f,Mf,Cf,If,Nf={};function Pf(){if(Tf)return Of;Tf=1;var t=Function.call,e=function(){if(Ef)return jf;let t;Ef=1;try{t=!1}catch(e){t=!0}return jf=t}(),n=["size","caller","callee","arguments"];return e&&n.push("__proto__"),Of=function(e){return Object.getOwnPropertyNames(e).reduce((function(r,i){return n.includes(i)||"function"!=typeof e[i]||(r[i]=t.bind(e[i])),r}),Object.create(null))}}function Rf(){if(Af)return kf;Af=1;var t=Pf();return kf=t(Array.prototype)}function Bf(){if(Mf)return _f;Mf=1;var t=Rf().every;function e(t,e,n,r){var i=!0;return n!==r.length-1&&(i=e.calledBefore(r[n+1])),!(!function(t,e){return void 0===t[e.id]&&(t[e.id]=0),t[e.id]<e.callCount}(t,e)||!i)&&(t[e.id]+=1,!0)}return _f=function(n){return t(arguments.length>1?arguments:n,e.bind(null,{}))},_f}function Df(){if(If)return Cf;return If=1,Cf=function(t){return t.constructor&&t.constructor.name||null}}var Lf,Ff,qf,Jf,Uf,Wf,Hf,Xf,zf,Vf,Kf,Gf,Zf,Yf,Qf,th,eh,nh,rh,ih={};function oh(){if(Hf)return Wf;Hf=1;var t=Rf().sort,e=Rf().slice;function n(t,e){var n=t.getCall(0),r=e.getCall(0);return(n&&n.callId||-1)<(r&&r.callId||-1)?-1:1}return Wf=function(r){return t(e(r),n)}}function sh(){if(zf)return Xf;zf=1;var t=Pf();return Xf=t(Function.prototype)}function ch(){if(Kf)return Vf;Kf=1;var t=Pf();return Vf=t(Map.prototype)}function ah(){if(Zf)return Gf;Zf=1;var t=Pf();return Gf=t(Object.prototype)}function uh(){if(Qf)return Yf;Qf=1;var t=Pf();return Yf=t(Set.prototype)}function lh(){if(eh)return th;eh=1;var t=Pf();return th=t(String.prototype)}var fh,hh,dh,ph,bh,mh,yh,gh,wh={exports:{}};function vh(){return fh?wh.exports:(fh=1,wh.exports=function(){var t="function"==typeof Promise,e="object"==typeof self?self:Eu,n="undefined"!=typeof Symbol,r="undefined"!=typeof Map,i="undefined"!=typeof Set,o="undefined"!=typeof WeakMap,s="undefined"!=typeof WeakSet,c="undefined"!=typeof DataView,a=n&&void 0!==Symbol.iterator,u=n&&void 0!==Symbol.toStringTag,l=i&&"function"==typeof Set.prototype.entries,f=r&&"function"==typeof Map.prototype.entries,h=l&&Object.getPrototypeOf((new Set).entries()),d=f&&Object.getPrototypeOf((new Map).entries()),p=a&&"function"==typeof Array.prototype[Symbol.iterator],b=p&&Object.getPrototypeOf([][Symbol.iterator]()),m=a&&"function"==typeof String.prototype[Symbol.iterator],y=m&&Object.getPrototypeOf(""[Symbol.iterator]()),g=8,w=-1;function v(n){var a=typeof n;if("object"!==a)return a;if(null===n)return"null";if(n===e)return"global";if(Array.isArray(n)&&(!1===u||!(Symbol.toStringTag in n)))return"Array";if("object"==typeof window&&null!==window){if("object"==typeof window.location&&n===window.location)return"Location";if("object"==typeof window.document&&n===window.document)return"Document";if("object"==typeof window.navigator){if("object"==typeof window.navigator.mimeTypes&&n===window.navigator.mimeTypes)return"MimeTypeArray";if("object"==typeof window.navigator.plugins&&n===window.navigator.plugins)return"PluginArray"}if(("function"==typeof window.HTMLElement||"object"==typeof window.HTMLElement)&&n instanceof window.HTMLElement){if("BLOCKQUOTE"===n.tagName)return"HTMLQuoteElement";if("TD"===n.tagName)return"HTMLTableDataCellElement";if("TH"===n.tagName)return"HTMLTableHeaderCellElement"}}var l=u&&n[Symbol.toStringTag];if("string"==typeof l)return l;var f=Object.getPrototypeOf(n);return f===RegExp.prototype?"RegExp":f===Date.prototype?"Date":t&&f===Promise.prototype?"Promise":i&&f===Set.prototype?"Set":r&&f===Map.prototype?"Map":s&&f===WeakSet.prototype?"WeakSet":o&&f===WeakMap.prototype?"WeakMap":c&&f===DataView.prototype?"DataView":r&&f===d?"Map Iterator":i&&f===h?"Set Iterator":p&&f===b?"Array Iterator":m&&f===y?"String Iterator":null===f?"Object":Object.prototype.toString.call(n).slice(g,w)}return v}())}function $h(){if(dh)return hh;dh=1;var t=vh();return hh=function(e){return t(e).toLowerCase()}}function xh(){if(bh)return ph;return bh=1,ph=function(t){return t&&t.toString?t.toString():String(t)}}var Sh=function(){if(gh)return Nf;gh=1;const t=function(){return yh||(yh=1,mh={global:Sf?xf:(Sf=1,e=void 0!==Eu?Eu:"undefined"!=typeof window?window:self,xf=e),calledInOrder:Bf(),className:Df(),deprecated:(Lf||(Lf=1,(t=ih).wrap=function(e,n){var r=function(){return t.printWarning(n),e.apply(this,arguments)};return e.prototype&&(r.prototype=e.prototype),r},t.defaultMsg=function(t,e){return`${t}.${e} is deprecated and will be removed from the public API in a future version of ${t}.`},t.printWarning=function(t){"object"==typeof process&&process.emitWarning?process.emitWarning(t):console.info?console.info(t):console.log(t)}),ih),every:(qf||(qf=1,Ff=function(t,e){var n=!0;try{t.forEach((function(){if(!e.apply(this,arguments))throw new Error}))}catch(t){n=!1}return n}),Ff),functionName:Uf?Jf:(Uf=1,Jf=function(t){if(!t)return"";try{return t.displayName||t.name||(String(t).match(/function ([^\s(]+)/)||[])[1]}catch(t){return""}}),orderByFirstCall:oh(),prototypes:rh?nh:(rh=1,nh={array:Rf(),function:sh(),map:ch(),object:ah(),set:uh(),string:lh()}),typeOf:$h(),valueToString:xh()}),mh;var t,e}().global;let e,n;if("undefined"!=typeof __vitest_required__){try{e=__vitest_required__.timers}catch(t){}try{n=__vitest_required__.timersPromises}catch(t){}}function r(i){const o=Math.pow(2,31)-1,s=1e12,c=function(){},a=function(){return[]},u={};let l,f=!1;i.setTimeout&&(u.setTimeout=!0,l=i.setTimeout(c,0),f="object"==typeof l),u.clearTimeout=Boolean(i.clearTimeout),u.setInterval=Boolean(i.setInterval),u.clearInterval=Boolean(i.clearInterval),u.hrtime=i.process&&"function"==typeof i.process.hrtime,u.hrtimeBigint=u.hrtime&&"function"==typeof i.process.hrtime.bigint,u.nextTick=i.process&&"function"==typeof i.process.nextTick;const h=i.process&&i.__vitest_required__&&i.__vitest_required__.util.promisify;u.performance=i.performance&&"function"==typeof i.performance.now;const d=i.Performance&&(typeof i.Performance).match(/^(function|object)$/),p=i.performance&&i.performance.constructor&&i.performance.constructor.prototype;u.queueMicrotask=i.hasOwnProperty("queueMicrotask"),u.requestAnimationFrame=i.requestAnimationFrame&&"function"==typeof i.requestAnimationFrame,u.cancelAnimationFrame=i.cancelAnimationFrame&&"function"==typeof i.cancelAnimationFrame,u.requestIdleCallback=i.requestIdleCallback&&"function"==typeof i.requestIdleCallback,u.cancelIdleCallbackPresent=i.cancelIdleCallback&&"function"==typeof i.cancelIdleCallback,u.setImmediate=i.setImmediate&&"function"==typeof i.setImmediate,u.clearImmediate=i.clearImmediate&&"function"==typeof i.clearImmediate,u.Intl=i.Intl&&"object"==typeof i.Intl,i.clearTimeout&&i.clearTimeout(l);const b=i.Date,m=u.Intl?Object.defineProperties(Object.create(null),Object.getOwnPropertyDescriptors(i.Intl)):void 0;let y=s;if(void 0===b)throw new Error("The global scope doesn't have a `Date` object (see https://github.com/sinonjs/sinon/issues/1852#issuecomment-419622780)");u.Date=!0;class g{constructor(t,e,n,r){this.name=t,this.entryType=e,this.startTime=n,this.duration=r}toJSON(){return JSON.stringify({...this})}}let w=!1;function v(t,e){t.loopLimit&&e===t.loopLimit-1&&(w=!0)}function $(){w=!1}function x(t){if(!t)return 0;const e=t.split(":"),n=e.length;let r,i=n,o=0;if(n>3||!/^(\d\d:){0,2}\d\d?$/.test(t))throw new Error("tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits");for(;i--;){if(r=parseInt(e[i],10),r>=60)throw new Error(`Invalid time ${t}`);o+=r*Math.pow(60,n-i-1)}return 1e3*o}function S(t){if(!t)return 0;if("function"==typeof t.getTime)return t.getTime();if("number"==typeof t)return t;throw new TypeError("now should be milliseconds since UNIX epoch")}function j(t,e,n){return n&&n.callAt>=t&&n.callAt<=e}function E(t,e){const n=new Error(`Aborting after running ${t.loopLimit} timers, assuming an infinite loop!`);if(!e.error)return n;const r=/target\.*[<|(|[].*?[>|\]|)]\s*/;let i=new RegExp(String(Object.keys(t).join("|")));f&&(i=new RegExp(`\\s+at (Object\\.)?(?:${Object.keys(t).join("|")})\\s+`));let o=-1;e.error.stack.split("\n").some((function(t,e){if(t.match(r))return o=e,!0;return t.match(i)?(o=e,!1):o>=0}));const s=`${n}\n${e.type||"Microtask"} - ${e.func.name||"anonymous"}\n${e.error.stack.split("\n").slice(o+1).join("\n")}`;try{Object.defineProperty(n,"stack",{value:s})}catch(t){}return n}function O(){class t extends b{constructor(e,n,r,i,o,s,c){0===arguments.length?super(t.clock.now):super(...arguments),Object.defineProperty(this,"constructor",{value:b,enumerable:!1})}static[Symbol.hasInstance](t){return t instanceof b}}t.isFake=!0,b.now&&(t.now=function(){return t.clock.now}),b.toSource&&(t.toSource=function(){return b.toSource()}),t.toString=function(){return b.toString()};return new Proxy(t,{apply(){if(this instanceof t)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 b(t.clock.now).toString()}})}function T(t){if(t.jobs){for(let e=0;e<t.jobs.length;e++){const n=t.jobs[e];if(n.func.apply(null,n.args),v(t,e),t.loopLimit&&e>t.loopLimit)throw E(t,n)}$(),t.jobs=[]}}function k(t,e){if(void 0===e.func)throw new Error("Callback must be provided to timer calls");if(f&&"function"!=typeof e.func)throw new TypeError(`[ERR_INVALID_CALLBACK]: Callback must be a function. Received ${e.func} of type ${typeof e.func}`);var n;if(w&&(e.error=new Error),e.type=e.immediate?"Immediate":"Timeout",e.hasOwnProperty("delay")&&("number"!=typeof e.delay&&(e.delay=parseInt(e.delay,10)),n=e.delay,(Number.isFinite?Number.isFinite(n):isFinite(n))||(e.delay=0),e.delay=e.delay>o?1:e.delay,e.delay=Math.max(0,e.delay)),e.hasOwnProperty("interval")&&(e.type="Interval",e.interval=e.interval>o?1:e.interval),e.hasOwnProperty("animation")&&(e.type="AnimationFrame",e.animation=!0),e.hasOwnProperty("idleCallback")&&(e.type="IdleCallback",e.idleCallback=!0),t.timers||(t.timers={}),e.id=y++,e.createdAt=t.now,e.callAt=t.now+(parseInt(e.delay)||(t.duringTick?1:0)),t.timers[e.id]=e,f){const n={refed:!0,ref:function(){return this.refed=!0,n},unref:function(){return this.refed=!1,n},hasRef:function(){return this.refed},refresh:function(){return e.callAt=t.now+(parseInt(e.delay)||(t.duringTick?1:0)),t.timers[e.id]=e,n},[Symbol.toPrimitive]:function(){return e.id}};return n}return e.id}function A(t,e){return t.callAt<e.callAt?-1:t.callAt>e.callAt?1:t.immediate&&!e.immediate?-1:!t.immediate&&e.immediate?1:t.createdAt<e.createdAt?-1:t.createdAt>e.createdAt?1:t.id<e.id?-1:t.id>e.id?1:void 0}function _(t,e,n){const r=t.timers;let i,o,s=null;for(i in r)r.hasOwnProperty(i)&&(o=j(e,n,r[i]),!o||s&&1!==A(s,r[i])||(s=r[i]));return s}function M(t){const e=t.timers;let n,r=null;for(n in e)e.hasOwnProperty(n)&&(r&&1!==A(r,e[n])||(r=e[n]));return r}function C(t){const e=t.timers;let n,r=null;for(n in e)e.hasOwnProperty(n)&&(r&&-1!==A(r,e[n])||(r=e[n]));return r}function I(t,e){if("number"==typeof e.interval?t.timers[e.id].callAt+=e.interval:delete t.timers[e.id],"function"==typeof e.func)e.func.apply(null,e.args);else{(0,eval)(e.func)}}function N(t){return"IdleCallback"===t||"AnimationFrame"===t?`cancel${t}`:`clear${t}`}const P=function(){let t=0;return function(e){!t++&&console.warn(e)}}();function R(t,e,n){if(!e)return;t.timers||(t.timers={});const r=Number(e);if(Number.isNaN(r)||r<s){const r=N(n);if(!0===t.shouldClearNativeTimers){const n=t[`_${r}`];return"function"==typeof n?n(e):void 0}P(`FakeTimers: ${r} was invoked to clear a native timer instead of one created by this library.\nTo automatically clean-up native timers, use \`shouldClearNativeTimers\`.`)}if(t.timers.hasOwnProperty(r)){const e=t.timers[r];if(!(e.type===n||"Timeout"===e.type&&"Interval"===n||"Interval"===e.type&&"Timeout"===n)){const t=N(n),r=function(t){return"IdleCallback"===t||"AnimationFrame"===t?`request${t}`:`set${t}`}(e.type);throw new Error(`Cannot clear timer: timer created with ${r}() but cleared with ${t}()`)}delete t.timers[r]}}function B(t,e,n){if(n[e].hadOwnProperty=Object.prototype.hasOwnProperty.call(t,e),n[`_${e}`]=t[e],"Date"===e)t[e]=n[e];else if("Intl"===e)t[e]=n[e];else if("performance"===e){const r=Object.getOwnPropertyDescriptor(t,e);if(r&&r.get&&!r.set){Object.defineProperty(n,`_${e}`,r);const i=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(t,e,i)}else t[e]=n[e]}else t[e]=function(){return n[e].apply(n,arguments)},Object.defineProperties(t[e],Object.getOwnPropertyDescriptors(n[e]));t[e].clock=n}function D(t,e){t.tick(e)}const L={setTimeout:i.setTimeout,clearTimeout:i.clearTimeout,setInterval:i.setInterval,clearInterval:i.clearInterval,Date:i.Date};u.setImmediate&&(L.setImmediate=i.setImmediate),u.clearImmediate&&(L.clearImmediate=i.clearImmediate),u.hrtime&&(L.hrtime=i.process.hrtime),u.nextTick&&(L.nextTick=i.process.nextTick),u.performance&&(L.performance=i.performance),u.requestAnimationFrame&&(L.requestAnimationFrame=i.requestAnimationFrame),u.queueMicrotask&&(L.queueMicrotask=i.queueMicrotask),u.cancelAnimationFrame&&(L.cancelAnimationFrame=i.cancelAnimationFrame),u.requestIdleCallback&&(L.requestIdleCallback=i.requestIdleCallback),u.cancelIdleCallback&&(L.cancelIdleCallback=i.cancelIdleCallback),u.Intl&&(L.Intl=m);const F=i.setImmediate||i.setTimeout;function q(t,e){t=Math.floor(S(t)),e=e||1e3;let n=0;const r=[0,0],o={now:t,Date:O(),loopLimit:e};function s(){return 16-(o.now-t)%16}function c(e){const i=o.now-r[0]-t,s=Math.floor(i/1e3),c=1e6*(i-1e3*s)+n-r[1];if(Array.isArray(e)){if(e[1]>1e9)throw new TypeError("Number of nanoseconds can't exceed a billion");const t=e[0];let n=c-e[1],r=s-t;return n<0&&(n+=1e9,r-=1),[r,n]}return[s,c]}function a(){const t=c();return 1e3*t[0]+t[1]/1e6}function l(t,e,r,i){const s="number"==typeof t?t:x(t),c=Math.floor(s),a=function(t){const e=1e6,n=1e6*t%e,r=n<0?n+e:n;return Math.floor(r)}(s);let u=n+a,l=o.now+c;if(s<0)throw new TypeError("Negative ticks are not supported");u>=1e6&&(l+=1,u-=1e6),n=u;let f,h,d,p,b,m,y=o.now,g=o.now;function w(){for(f=_(o,y,l);f&&y<=l;){if(o.timers[f.id]){y=f.callAt,o.now=f.callAt,d=o.now;try{T(o),I(o,f)}catch(t){h=h||t}if(e)return void F(p);b()}m()}if(d=o.now,T(o),d!==o.now&&(y+=o.now-d,l+=o.now-d),o.duringTick=!1,f=_(o,y,l),f)try{o.tick(l-o.now)}catch(t){h=h||t}else o.now=l,n=u;if(h)throw h;if(!e)return o.now;r(o.now)}return o.duringTick=!0,d=o.now,T(o),d!==o.now&&(y+=o.now-d,l+=o.now-d),p=e&&function(){try{b(),m(),w()}catch(t){i(t)}},b=function(){d!==o.now&&(y+=o.now-d,l+=o.now-d,g+=o.now-d)},m=function(){f=_(o,g,l),g=y},w()}return o.Date.clock=o,u.hrtimeBigint&&(c.bigint=function(){const t=c();return BigInt(t[0])*BigInt(1e9)+BigInt(t[1])}),u.Intl&&(o.Intl=function(){const t={};return Object.getOwnPropertyNames(m).forEach((e=>t[e]=m[e])),t.DateTimeFormat=function(...e){const n=new m.DateTimeFormat(...e),r={};return["formatRange","formatRangeToParts","resolvedOptions"].forEach((t=>{r[t]=n[t].bind(n)})),["format","formatToParts"].forEach((e=>{r[e]=function(r){return n[e](r||t.clock.now)}})),r},t.DateTimeFormat.prototype=Object.create(m.DateTimeFormat.prototype),t.DateTimeFormat.supportedLocalesOf=m.DateTimeFormat.supportedLocalesOf,t}(),o.Intl.clock=o),o.requestIdleCallback=function(t,e){let n=0;o.countTimers()>0&&(n=50);const r=k(o,{func:t,args:Array.prototype.slice.call(arguments,2),delay:void 0===e?n:Math.min(e,n),idleCallback:!0});return Number(r)},o.cancelIdleCallback=function(t){return R(o,t,"IdleCallback")},o.setTimeout=function(t,e){return k(o,{func:t,args:Array.prototype.slice.call(arguments,2),delay:e})},void 0!==i.Promise&&h&&(o.setTimeout[h.custom]=function(t,e){return new i.Promise((function(n){k(o,{func:n,args:[e],delay:t})}))}),o.clearTimeout=function(t){return R(o,t,"Timeout")},o.nextTick=function(t){return function(t,e){t.jobs||(t.jobs=[]),t.jobs.push(e)}(o,{func:t,args:Array.prototype.slice.call(arguments,1),error:w?new Error:null})},o.queueMicrotask=function(t){return o.nextTick(t)},o.setInterval=function(t,e){return e=parseInt(e,10),k(o,{func:t,args:Array.prototype.slice.call(arguments,2),delay:e,interval:e})},o.clearInterval=function(t){return R(o,t,"Interval")},u.setImmediate&&(o.setImmediate=function(t){return k(o,{func:t,args:Array.prototype.slice.call(arguments,1),immediate:!0})},void 0!==i.Promise&&h&&(o.setImmediate[h.custom]=function(t){return new i.Promise((function(e){k(o,{func:e,args:[t],immediate:!0})}))}),o.clearImmediate=function(t){return R(o,t,"Immediate")}),o.countTimers=function(){return Object.keys(o.timers||{}).length+(o.jobs||[]).length},o.requestAnimationFrame=function(t){const e=k(o,{func:t,delay:s(),get args(){return[a()]},animation:!0});return Number(e)},o.cancelAnimationFrame=function(t){return R(o,t,"AnimationFrame")},o.runMicrotasks=function(){T(o)},o.tick=function(t){return l(t,!1)},void 0!==i.Promise&&(o.tickAsync=function(t){return new i.Promise((function(e,n){F((function(){try{l(t,!0,e,n)}catch(t){n(t)}}))}))}),o.next=function(){T(o);const t=M(o);if(!t)return o.now;o.duringTick=!0;try{return o.now=t.callAt,I(o,t),T(o),o.now}finally{o.duringTick=!1}},void 0!==i.Promise&&(o.nextAsync=function(){return new i.Promise((function(t,e){F((function(){try{const n=M(o);if(!n)return void t(o.now);let r;o.duringTick=!0,o.now=n.callAt;try{I(o,n)}catch(t){r=t}o.duringTick=!1,F((function(){r?e(r):t(o.now)}))}catch(t){e(t)}}))}))}),o.runAll=function(){let t,e;for(T(o),e=0;e<o.loopLimit;e++){if(!o.timers)return $(),o.now;if(t=Object.keys(o.timers).length,0===t)return $(),o.now;o.next(),v(o,e)}const n=M(o);throw E(o,n)},o.runToFrame=function(){return o.tick(s())},void 0!==i.Promise&&(o.runAllAsync=function(){return new i.Promise((function(t,e){let n=0;!function r(){F((function(){try{let i;if(T(o),n<o.loopLimit)return o.timers?(i=Object.keys(o.timers).length,0===i?($(),void t(o.now)):(o.next(),n++,r(),void v(o,n))):($(),void t(o.now));const s=M(o);e(E(o,s))}catch(t){e(t)}}))}()}))}),o.runToLast=function(){const t=C(o);return t?o.tick(t.callAt-o.now):(T(o),o.now)},void 0!==i.Promise&&(o.runToLastAsync=function(){return new i.Promise((function(t,e){F((function(){try{const e=C(o);e||(T(o),t(o.now)),t(o.tickAsync(e.callAt-o.now))}catch(t){e(t)}}))}))}),o.reset=function(){n=0,o.timers={},o.jobs=[],o.now=t},o.setSystemTime=function(t){const e=S(t),i=e-o.now;let s,c;for(s in r[0]=r[0]+i,r[1]=r[1]+n,o.now=e,n=0,o.timers)o.timers.hasOwnProperty(s)&&(c=o.timers[s],c.createdAt+=i,c.callAt+=i)},o.jump=function(t){const e="number"==typeof t?t:x(t),n=Math.floor(e);for(const t of Object.values(o.timers))o.now+n>t.callAt&&(t.callAt=o.now+n);o.tick(n)},u.performance&&(o.performance=Object.create(null),o.performance.now=a),u.hrtime&&(o.hrtime=c),o}return{timers:L,createClock:q,install:function(r){if(arguments.length>1||r instanceof Date||Array.isArray(r)||"number"==typeof r)throw new TypeError(`FakeTimers.install called with ${String(r)} install requires an object parameter`);if(!0===i.Date.isFake)throw new TypeError("Can't install fake timers twice on the same global object.");if((r=void 0!==r?r:{}).shouldAdvanceTime=r.shouldAdvanceTime||!1,r.advanceTimeDelta=r.advanceTimeDelta||20,r.shouldClearNativeTimers=r.shouldClearNativeTimers||!1,r.target)throw new TypeError("config.target is no longer supported. Use `withGlobal(target)` instead.");function o(t){if(!r.ignoreMissingTimers)throw new ReferenceError(`non-existent timers and/or objects cannot be faked: '${t}'`)}let s,l;const f=q(r.now,r.loopLimit);if(f.shouldClearNativeTimers=r.shouldClearNativeTimers,f.uninstall=function(){return function(t,r){let o,s,c;for(s=0,c=t.methods.length;s<c;s++){if(o=t.methods[s],"hrtime"===o&&i.process)i.process.hrtime=t._hrtime;else if("nextTick"===o&&i.process)i.process.nextTick=t._nextTick;else if("performance"===o){const e=Object.getOwnPropertyDescriptor(t,`_${o}`);e&&e.get&&!e.set?Object.defineProperty(i,o,e):e.configurable&&(i[o]=t[`_${o}`])}else if(i[o]&&i[o].hadOwnProperty)i[o]=t[`_${o}`];else try{delete i[o]}catch(t){}if(void 0!==t.timersModuleMethods)for(let n=0;n<t.timersModuleMethods.length;n++){const r=t.timersModuleMethods[n];e[r.methodName]=r.original}if(void 0!==t.timersPromisesModuleMethods)for(let e=0;e<t.timersPromisesModuleMethods.length;e++){const r=t.timersPromisesModuleMethods[e];n[r.methodName]=r.original}}!0===r.shouldAdvanceTime&&i.clearInterval(t.attachedInterval),t.methods=[];for(const[e,n]of t.abortListenerMap.entries())n.removeEventListener("abort",e),t.abortListenerMap.delete(e);return t.timers?Object.keys(t.timers).map((function(e){return t.timers[e]})):[]}(f,r)},f.abortListenerMap=new Map,f.methods=r.toFake||[],0===f.methods.length&&(f.methods=Object.keys(L)),!0===r.shouldAdvanceTime){const t=D.bind(null,f,r.advanceTimeDelta),e=i.setInterval(t,r.advanceTimeDelta);f.attachedInterval=e}if(f.methods.includes("performance")){const t=p?i.performance.constructor.prototype:d?i.Performance.prototype:void 0;if(t)Object.getOwnPropertyNames(t).forEach((function(t){"now"!==t&&(f.performance[t]=0===t.indexOf("getEntries")?a:c)})),f.performance.mark=t=>new g(t,"mark",0,0),f.performance.measure=t=>new g(t,"measure",0,100),f.performance.timeOrigin=S(r.now);else if((r.toFake||[]).includes("performance"))return o("performance")}for(i===t&&e&&(f.timersModuleMethods=[]),i===t&&n&&(f.timersPromisesModuleMethods=[]),s=0,l=f.methods.length;s<l;s++){const t=f.methods[s];if(u[t]){if("hrtime"===t?i.process&&"function"==typeof i.process.hrtime&&B(i.process,t,f):"nextTick"===t?i.process&&"function"==typeof i.process.nextTick&&B(i.process,t,f):B(i,t,f),void 0!==f.timersModuleMethods&&e[t]){const n=e[t];f.timersModuleMethods.push({methodName:t,original:n}),e[t]=i[t]}void 0!==f.timersPromisesModuleMethods&&("setTimeout"===t?(f.timersPromisesModuleMethods.push({methodName:"setTimeout",original:n.setTimeout}),n.setTimeout=(t,e,n={})=>new Promise(((r,i)=>{const o=()=>{n.signal.removeEventListener("abort",o),f.abortListenerMap.delete(o),f.clearTimeout(s),i(n.signal.reason)},s=f.setTimeout((()=>{n.signal&&(n.signal.removeEventListener("abort",o),f.abortListenerMap.delete(o)),r(e)}),t);n.signal&&(n.signal.aborted?o():(n.signal.addEventListener("abort",o),f.abortListenerMap.set(o,n.signal)))}))):"setImmediate"===t?(f.timersPromisesModuleMethods.push({methodName:"setImmediate",original:n.setImmediate}),n.setImmediate=(t,e={})=>new Promise(((n,r)=>{const i=()=>{e.signal.removeEventListener("abort",i),f.abortListenerMap.delete(i),f.clearImmediate(o),r(e.signal.reason)},o=f.setImmediate((()=>{e.signal&&(e.signal.removeEventListener("abort",i),f.abortListenerMap.delete(i)),n(t)}));e.signal&&(e.signal.aborted?i():(e.signal.addEventListener("abort",i),f.abortListenerMap.set(i,e.signal)))}))):"setInterval"===t&&(f.timersPromisesModuleMethods.push({methodName:"setInterval",original:n.setInterval}),n.setInterval=(t,e,n={})=>({[Symbol.asyncIterator]:()=>{const r=()=>{let t,e;const n=new Promise(((n,r)=>{t=n,e=r}));return n.resolve=t,n.reject=e,n};let i,o=!1,s=!1,c=0;const a=[],u=f.setInterval((()=>{a.length>0?a.shift().resolve():c++}),t),l=()=>{n.signal.removeEventListener("abort",l),f.abortListenerMap.delete(l),f.clearInterval(u),o=!0;for(const t of a)t.resolve()};return n.signal&&(n.signal.aborted?o=!0:(n.signal.addEventListener("abort",l),f.abortListenerMap.set(l,n.signal))),{next:async()=>{if(n.signal?.aborted&&!s)throw s=!0,n.signal.reason;if(o)return{done:!0,value:void 0};if(c>0)return c--,{done:!1,value:e};const t=r();if(a.push(t),await t,i&&0===a.length&&i.resolve(),n.signal?.aborted&&!s)throw s=!0,n.signal.reason;return o?{done:!0,value:void 0}:{done:!1,value:e}},return:async()=>(o||(a.length>0&&(i=r(),await i),f.clearInterval(u),o=!0,n.signal&&(n.signal.removeEventListener("abort",l),f.abortListenerMap.delete(l))),{done:!0,value:void 0})}}})))}else o(t)}return f},withGlobal:r}}const i=r(t);return Nf.timers=i.timers,Nf.createClock=i.createClock,Nf.install=i.install,Nf.withGlobal=r,Nf}(),jh=class{constructor({global:t,config:e}){m(this,"_global"),m(this,"_clock"),m(this,"_fakingTime"),m(this,"_fakingDate"),m(this,"_fakeTimers"),m(this,"_userConfig"),m(this,"_now",af.now),this._userConfig=e,this._fakingDate=null,this._fakingTime=!1,this._fakeTimers=Sh.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 e=t;e>0&&(this._clock.next(),this._clock.tick(0),0!==this._clock.countTimers());e--);}async advanceTimersToNextTimerAsync(t=1){if(this._checkFakeTimers())for(let e=t;e>0&&(await this._clock.nextAsync(),this._clock.tick(0),0!==this._clock.countTimers());e--);}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&&(globalThis.Date=af,this._fakingDate=null),this._fakingTime&&(this._clock.uninstall(),this._fakingTime=!1)}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){const t=Object.keys(this._fakeTimers.timers).filter((t=>"nextTick"!==t&&"queueMicrotask"!==t));if(this._userConfig?.toFake?.includes("nextTick")&&Su())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:!0}),this._fakingTime=!0}}reset(){if(this._checkFakeTimers()){const{now:t}=this._clock;this._clock.reset(),this._clock.setSystemTime(t)}}setSystemTime(t){const e=void 0===t||t instanceof Date?t:new Date(t);this._fakingTime?this._clock.setSystemTime(e):(this._fakingDate=e??new Date(this.getRealSystemTime()),function(t){const e=new af(t.valueOf());if(Number.isNaN(e.getTime()))throw new TypeError(`mockdate: The time set is an invalid date: ${t}`);globalThis.Date=lf,uf=e.valueOf()}(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 Eh(t,e){return void 0!==e.stack&&(t.stack=e.stack.replace(e.message,t.message)),t}function Oh(t,e={}){const{setTimeout:n,setInterval:r,clearTimeout:i,clearInterval:o}=Ln(),{interval:s=50,timeout:c=1e3}="number"==typeof e?{timeout:e}:e,a=new Error("STACK_TRACE_ERROR");return new Promise(((e,u)=>{let l,f,h,d="idle";const p=t=>{f&&i(f),h&&o(h),e(t)},b=()=>{if(Ah.isFakeTimers()&&Ah.advanceTimersByTime(s),"pending"!==d)try{const e=t();if(null===e||"object"!=typeof e||"function"!=typeof e.then)return p(e),!0;d="pending",e.then((t=>{d="resolved",p(t)}),(t=>{d="rejected",l=t}))}catch(t){l=t}};!0!==b()&&(f=n((()=>{h&&o(h);let t=l;t||(t=Eh(new Error("Timed out in waitFor!"),a)),u(t)}),c),h=r(b,s))}))}function Th(t,e={}){const{setTimeout:n,setInterval:r,clearTimeout:i,clearInterval:o}=Ln(),{interval:s=50,timeout:c=1e3}="number"==typeof e?{timeout:e}:e,a=new Error("STACK_TRACE_ERROR");return new Promise(((e,u)=>{let l,f,h="idle";const d=t=>{f&&o(f),t||(t=Eh(new Error("Timed out in waitUntil!"),a)),u(t)},p=t=>{if(t)return l&&i(l),f&&o(f),e(t),!0},b=()=>{if(Ah.isFakeTimers()&&Ah.advanceTimersByTime(s),"pending"!==h)try{const e=t();if(null===e||"object"!=typeof e||"function"!=typeof e.then)return p(e);h="pending",e.then((t=>{h="resolved",p(t)}),(t=>{h="rejected",d(t)}))}catch(t){d(t)}};!0!==b()&&(l=n(d,c),f=r(b,s))}))}var kh=function(){let t=null;const e=$u();let n;const r=()=>n||=new jh({global:globalThis,config:e.config.fakeTimers}),i=new Map,o=new Map,s=["PROD","DEV","SSR"],c={useFakeTimers(t){if(Su()&&(t?.toFake?.includes("nextTick")||e.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 t?r().configure({...e.config.fakeTimers,...t}):r().configure(e.config.fakeTimers),r().useFakeTimers(),c},isFakeTimers:()=>r().isFakeTimers(),useRealTimers:()=>(r().useRealTimers(),c),runOnlyPendingTimers:()=>(r().runOnlyPendingTimers(),c),runOnlyPendingTimersAsync:async()=>(await r().runOnlyPendingTimersAsync(),c),runAllTimers:()=>(r().runAllTimers(),c),runAllTimersAsync:async()=>(await r().runAllTimersAsync(),c),runAllTicks:()=>(r().runAllTicks(),c),advanceTimersByTime:t=>(r().advanceTimersByTime(t),c),advanceTimersByTimeAsync:async t=>(await r().advanceTimersByTimeAsync(t),c),advanceTimersToNextTimer:()=>(r().advanceTimersToNextTimer(),c),advanceTimersToNextTimerAsync:async()=>(await r().advanceTimersToNextTimerAsync(),c),advanceTimersToNextFrame:()=>(r().advanceTimersToNextFrame(),c),getTimerCount:()=>r().getTimerCount(),setSystemTime:t=>(r().setSystemTime(t),c),getMockedSystemTime:()=>r().getMockedSystemTime(),getRealSystemTime:()=>r().getRealSystemTime(),clearAllTimers:()=>(r().clearAllTimers(),c),spyOn:ni,fn:oi,waitFor:Oh,waitUntil:Th,hoisted:t=>(cn(t,'"vi.hoisted" factory',["function"]),t()),mock(t,e){if("string"!=typeof t)throw new TypeError("vi.mock() expects a string path, but received a "+typeof t);const n=Mh("mock");_h().queueMock(t,n,"function"==typeof e?()=>e((()=>_h().importActual(t,n,_h().getMockContext().callstack))):e)},unmock(t){if("string"!=typeof t)throw new TypeError("vi.unmock() expects a string path, but received a "+typeof t);_h().queueUnmock(t,Mh("unmock"))},doMock(t,e){if("string"!=typeof t)throw new TypeError("vi.doMock() expects a string path, but received a "+typeof t);const n=Mh("doMock");_h().queueMock(t,n,"function"==typeof e?()=>e((()=>_h().importActual(t,n,_h().getMockContext().callstack))):e)},doUnmock(t){if("string"!=typeof t)throw new TypeError("vi.doUnmock() expects a string path, but received a "+typeof t);_h().queueUnmock(t,Mh("doUnmock"))},importActual:async t=>_h().importActual(t,Mh("importActual"),_h().getMockContext().callstack),importMock:async t=>_h().importMock(t,Mh("importMock")),mocked:(t,e={})=>t,isMockFunction:t=>ei(t),clearAllMocks:()=>([...ti].reverse().forEach((t=>t.mockClear())),c),resetAllMocks:()=>([...ti].reverse().forEach((t=>t.mockReset())),c),restoreAllMocks:()=>([...ti].reverse().forEach((t=>t.mockRestore())),c),stubGlobal:(t,e)=>(i.has(t)||i.set(t,Object.getOwnPropertyDescriptor(globalThis,t)),Object.defineProperty(globalThis,t,{value:e,writable:!0,configurable:!0,enumerable:!0}),c),stubEnv:(t,e)=>(o.has(t)||o.set(t,process.env[t]),s.includes(t)?process.env[t]=e?"1":"":void 0===e?delete process.env[t]:process.env[t]=String(e),c),unstubAllGlobals:()=>(i.forEach(((t,e)=>{t?Object.defineProperty(globalThis,e,t):Reflect.deleteProperty(globalThis,e)})),i.clear(),c),unstubAllEnvs:()=>(o.forEach(((t,e)=>{void 0===t?delete process.env[e]:process.env[e]=t})),o.clear(),c),resetModules:()=>(function(t,e=!1){const n=[/\/vitest\/dist\//,/\/vite-node\/dist\//,/vitest-virtual-\w+\/dist/,/@vitest\/dist/,...e?[]:[/^mock:/]];t.forEach(((e,r)=>{n.some((t=>t.test(r)))||t.invalidateModule(e)}))}(e.moduleCache),c),dynamicImportSettled:async()=>ju(),setConfig(n){t||(t={...e.config}),Object.assign(e.config,n)},resetConfig(){t&&Object.assign(e.config,t)}};return c}(),Ah=kh;function _h(){return"undefined"!=typeof __vitest_mocker__?__vitest_mocker__:new Proxy({},{get(t,e){throw new Error(`Vitest mocker was not initialized in this environment. vi.${String(e)}() is forbidden.`)}})}function Mh(t){const e=function(t){const{message:e="$$stack trace error",stackTraceLimit:n=1}=t||{},r=Error.stackTraceLimit,i=Error.prepareStackTrace;Error.stackTraceLimit=n,Error.prepareStackTrace=t=>t.stack;const o=new Error(e).stack||"";return Error.prepareStackTrace=i,Error.stackTraceLimit=r,o}({stackTraceLimit:5}).split("\n"),n=e.findIndex((e=>e.includes(` at Object.${t}`)||e.includes(`${t}@`))),r=Na(e[n+1]);return r?.file||""}b(J(),1);y();var Ch=require("@isdk/glob"),Ih=b(require("path"));function Nh(t,e,n){return n&&(t=Ih.default.relative(n,t)),(0,Ch.globMatch)(t,e)}var Ph=b(require("path"));cu("glob function",(()=>{const t="/home/user/project";au("should match a simple glob pattern",(()=>{const e=Nh("/home/user/project/src/index.ts",["**/*.ts"],t);$f(e).toBe(!0)})),au("should not match an excluded pattern",(()=>{const e=Nh("/home/user/project/src/test.ts",["**/*.ts","!**/test.ts"],t);$f(e).toBe(!1)})),au("should handle relative paths correctly when rootDir is provided",(()=>{const e=Nh("/home/user/project/src/utils/helper.ts",["src/utils/*.ts"],t);$f(e).toBe(!0)})),au("should work without a rootDir",(()=>{const t=Nh("/home/user/project/src/index.ts",["/home/user/project/**/*.ts"]);$f(t).toBe(!0)})),au("should return false for non-matching patterns",(()=>{const e=Nh("/home/user/project/src/index.js",["**/*.ts"],t);$f(e).toBeFalsy()})),au("should handle empty patterns array",(()=>{const e=Nh("/home/user/project/src/index.ts",[],t);$f(e).toBeFalsy()})),au("should handle absolute file paths correctly",(()=>{const t=Nh(Ph.default.resolve("/home/user/project/src/index.ts"),[Ph.default.resolve("/home/user/project/**/*.ts")]);$f(t).toBe(!0)}))}));
|
|
2
|
+
/*! Bundled license information:
|
|
3
|
+
|
|
4
|
+
@vitest/pretty-format/dist/index.js:
|
|
5
|
+
(**
|
|
6
|
+
* @license React
|
|
7
|
+
* react-is.production.js
|
|
8
|
+
*
|
|
9
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the MIT license found in the
|
|
12
|
+
* LICENSE file in the root directory of this source tree.
|
|
13
|
+
*)
|
|
14
|
+
(**
|
|
15
|
+
* @license React
|
|
16
|
+
* react-is.development.js
|
|
17
|
+
*
|
|
18
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
19
|
+
*
|
|
20
|
+
* This source code is licensed under the MIT license found in the
|
|
21
|
+
* LICENSE file in the root directory of this source tree.
|
|
22
|
+
*)
|
|
23
|
+
(**
|
|
24
|
+
* @license React
|
|
25
|
+
* react-is.production.min.js
|
|
26
|
+
*
|
|
27
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the MIT license found in the
|
|
30
|
+
* LICENSE file in the root directory of this source tree.
|
|
31
|
+
*)
|
|
32
|
+
(**
|
|
33
|
+
* @license React
|
|
34
|
+
* react-is.development.js
|
|
35
|
+
*
|
|
36
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
37
|
+
*
|
|
38
|
+
* This source code is licensed under the MIT license found in the
|
|
39
|
+
* LICENSE file in the root directory of this source tree.
|
|
40
|
+
*)
|
|
41
|
+
|
|
42
|
+
chai/chai.js:
|
|
43
|
+
(*!
|
|
44
|
+
* Chai - flag utility
|
|
45
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
46
|
+
* MIT Licensed
|
|
47
|
+
*)
|
|
48
|
+
(*!
|
|
49
|
+
* Chai - test utility
|
|
50
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
51
|
+
* MIT Licensed
|
|
52
|
+
*)
|
|
53
|
+
(*!
|
|
54
|
+
* Chai - expectTypes utility
|
|
55
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
56
|
+
* MIT Licensed
|
|
57
|
+
*)
|
|
58
|
+
(*!
|
|
59
|
+
* Chai - getActual utility
|
|
60
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
61
|
+
* MIT Licensed
|
|
62
|
+
*)
|
|
63
|
+
(*!
|
|
64
|
+
* Chai - message composition utility
|
|
65
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
66
|
+
* MIT Licensed
|
|
67
|
+
*)
|
|
68
|
+
(*!
|
|
69
|
+
* Chai - transferFlags utility
|
|
70
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
71
|
+
* MIT Licensed
|
|
72
|
+
*)
|
|
73
|
+
(*!
|
|
74
|
+
* chai
|
|
75
|
+
* http://chaijs.com
|
|
76
|
+
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
|
77
|
+
* MIT Licensed
|
|
78
|
+
*)
|
|
79
|
+
(*!
|
|
80
|
+
* Chai - isProxyEnabled helper
|
|
81
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
82
|
+
* MIT Licensed
|
|
83
|
+
*)
|
|
84
|
+
(*!
|
|
85
|
+
* Chai - addProperty utility
|
|
86
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
87
|
+
* MIT Licensed
|
|
88
|
+
*)
|
|
89
|
+
(*!
|
|
90
|
+
* Chai - addLengthGuard utility
|
|
91
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
92
|
+
* MIT Licensed
|
|
93
|
+
*)
|
|
94
|
+
(*!
|
|
95
|
+
* Chai - getProperties utility
|
|
96
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
97
|
+
* MIT Licensed
|
|
98
|
+
*)
|
|
99
|
+
(*!
|
|
100
|
+
* Chai - proxify utility
|
|
101
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
102
|
+
* MIT Licensed
|
|
103
|
+
*)
|
|
104
|
+
(*!
|
|
105
|
+
* Chai - addMethod utility
|
|
106
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
107
|
+
* MIT Licensed
|
|
108
|
+
*)
|
|
109
|
+
(*!
|
|
110
|
+
* Chai - overwriteProperty utility
|
|
111
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
112
|
+
* MIT Licensed
|
|
113
|
+
*)
|
|
114
|
+
(*!
|
|
115
|
+
* Chai - overwriteMethod utility
|
|
116
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
117
|
+
* MIT Licensed
|
|
118
|
+
*)
|
|
119
|
+
(*!
|
|
120
|
+
* Chai - addChainingMethod utility
|
|
121
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
122
|
+
* MIT Licensed
|
|
123
|
+
*)
|
|
124
|
+
(*!
|
|
125
|
+
* Chai - overwriteChainableMethod utility
|
|
126
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
127
|
+
* MIT Licensed
|
|
128
|
+
*)
|
|
129
|
+
(*!
|
|
130
|
+
* Chai - compareByInspect utility
|
|
131
|
+
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
|
132
|
+
* MIT Licensed
|
|
133
|
+
*)
|
|
134
|
+
(*!
|
|
135
|
+
* Chai - getOwnEnumerablePropertySymbols utility
|
|
136
|
+
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
|
137
|
+
* MIT Licensed
|
|
138
|
+
*)
|
|
139
|
+
(*!
|
|
140
|
+
* Chai - getOwnEnumerableProperties utility
|
|
141
|
+
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
|
142
|
+
* MIT Licensed
|
|
143
|
+
*)
|
|
144
|
+
(*!
|
|
145
|
+
* Chai - isNaN utility
|
|
146
|
+
* Copyright(c) 2012-2015 Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
|
|
147
|
+
* MIT Licensed
|
|
148
|
+
*)
|
|
149
|
+
(*!
|
|
150
|
+
* chai
|
|
151
|
+
* Copyright(c) 2011 Jake Luer <jake@alogicalparadox.com>
|
|
152
|
+
* MIT Licensed
|
|
153
|
+
*)
|
|
154
|
+
(*!
|
|
155
|
+
* chai
|
|
156
|
+
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
|
157
|
+
* MIT Licensed
|
|
158
|
+
*)
|
|
159
|
+
(*! Bundled license information:
|
|
160
|
+
|
|
161
|
+
deep-eql/index.js:
|
|
162
|
+
(*!
|
|
163
|
+
* deep-eql
|
|
164
|
+
* Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>
|
|
165
|
+
* MIT Licensed
|
|
166
|
+
*)
|
|
167
|
+
(*!
|
|
168
|
+
* Check to see if the MemoizeMap has recorded a result of the two operands
|
|
169
|
+
*
|
|
170
|
+
* @param {Mixed} leftHandOperand
|
|
171
|
+
* @param {Mixed} rightHandOperand
|
|
172
|
+
* @param {MemoizeMap} memoizeMap
|
|
173
|
+
* @returns {Boolean|null} result
|
|
174
|
+
*)
|
|
175
|
+
(*!
|
|
176
|
+
* Set the result of the equality into the MemoizeMap
|
|
177
|
+
*
|
|
178
|
+
* @param {Mixed} leftHandOperand
|
|
179
|
+
* @param {Mixed} rightHandOperand
|
|
180
|
+
* @param {MemoizeMap} memoizeMap
|
|
181
|
+
* @param {Boolean} result
|
|
182
|
+
*)
|
|
183
|
+
(*!
|
|
184
|
+
* Primary Export
|
|
185
|
+
*)
|
|
186
|
+
(*!
|
|
187
|
+
* The main logic of the `deepEqual` function.
|
|
188
|
+
*
|
|
189
|
+
* @param {Mixed} leftHandOperand
|
|
190
|
+
* @param {Mixed} rightHandOperand
|
|
191
|
+
* @param {Object} [options] (optional) Additional options
|
|
192
|
+
* @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality.
|
|
193
|
+
* @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of
|
|
194
|
+
complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular
|
|
195
|
+
references to blow the stack.
|
|
196
|
+
* @return {Boolean} equal match
|
|
197
|
+
*)
|
|
198
|
+
(*!
|
|
199
|
+
* Compare two Regular Expressions for equality.
|
|
200
|
+
*
|
|
201
|
+
* @param {RegExp} leftHandOperand
|
|
202
|
+
* @param {RegExp} rightHandOperand
|
|
203
|
+
* @return {Boolean} result
|
|
204
|
+
*)
|
|
205
|
+
(*!
|
|
206
|
+
* Compare two Sets/Maps for equality. Faster than other equality functions.
|
|
207
|
+
*
|
|
208
|
+
* @param {Set} leftHandOperand
|
|
209
|
+
* @param {Set} rightHandOperand
|
|
210
|
+
* @param {Object} [options] (Optional)
|
|
211
|
+
* @return {Boolean} result
|
|
212
|
+
*)
|
|
213
|
+
(*!
|
|
214
|
+
* Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers.
|
|
215
|
+
*
|
|
216
|
+
* @param {Iterable} leftHandOperand
|
|
217
|
+
* @param {Iterable} rightHandOperand
|
|
218
|
+
* @param {Object} [options] (Optional)
|
|
219
|
+
* @return {Boolean} result
|
|
220
|
+
*)
|
|
221
|
+
(*!
|
|
222
|
+
* Simple equality for generator objects such as those returned by generator functions.
|
|
223
|
+
*
|
|
224
|
+
* @param {Iterable} leftHandOperand
|
|
225
|
+
* @param {Iterable} rightHandOperand
|
|
226
|
+
* @param {Object} [options] (Optional)
|
|
227
|
+
* @return {Boolean} result
|
|
228
|
+
*)
|
|
229
|
+
(*!
|
|
230
|
+
* Determine if the given object has an @@iterator function.
|
|
231
|
+
*
|
|
232
|
+
* @param {Object} target
|
|
233
|
+
* @return {Boolean} `true` if the object has an @@iterator function.
|
|
234
|
+
*)
|
|
235
|
+
(*!
|
|
236
|
+
* Gets all iterator entries from the given Object. If the Object has no @@iterator function, returns an empty array.
|
|
237
|
+
* This will consume the iterator - which could have side effects depending on the @@iterator implementation.
|
|
238
|
+
*
|
|
239
|
+
* @param {Object} target
|
|
240
|
+
* @returns {Array} an array of entries from the @@iterator function
|
|
241
|
+
*)
|
|
242
|
+
(*!
|
|
243
|
+
* Gets all entries from a Generator. This will consume the generator - which could have side effects.
|
|
244
|
+
*
|
|
245
|
+
* @param {Generator} target
|
|
246
|
+
* @returns {Array} an array of entries from the Generator.
|
|
247
|
+
*)
|
|
248
|
+
(*!
|
|
249
|
+
* Gets all own and inherited enumerable keys from a target.
|
|
250
|
+
*
|
|
251
|
+
* @param {Object} target
|
|
252
|
+
* @returns {Array} an array of own and inherited enumerable keys from the target.
|
|
253
|
+
*)
|
|
254
|
+
(*!
|
|
255
|
+
* Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of
|
|
256
|
+
* each key. If any value of the given key is not equal, the function will return false (early).
|
|
257
|
+
*
|
|
258
|
+
* @param {Mixed} leftHandOperand
|
|
259
|
+
* @param {Mixed} rightHandOperand
|
|
260
|
+
* @param {Array} keys An array of keys to compare the values of leftHandOperand and rightHandOperand against
|
|
261
|
+
* @param {Object} [options] (Optional)
|
|
262
|
+
* @return {Boolean} result
|
|
263
|
+
*)
|
|
264
|
+
(*!
|
|
265
|
+
* Recursively check the equality of two Objects. Once basic sameness has been established it will defer to `deepEqual`
|
|
266
|
+
* for each enumerable key in the object.
|
|
267
|
+
*
|
|
268
|
+
* @param {Mixed} leftHandOperand
|
|
269
|
+
* @param {Mixed} rightHandOperand
|
|
270
|
+
* @param {Object} [options] (Optional)
|
|
271
|
+
* @return {Boolean} result
|
|
272
|
+
*)
|
|
273
|
+
(*!
|
|
274
|
+
* Returns true if the argument is a primitive.
|
|
275
|
+
*
|
|
276
|
+
* This intentionally returns true for all objects that can be compared by reference,
|
|
277
|
+
* including functions and symbols.
|
|
278
|
+
*
|
|
279
|
+
* @param {Mixed} value
|
|
280
|
+
* @return {Boolean} result
|
|
281
|
+
*)
|
|
282
|
+
*)
|
|
283
|
+
|
|
284
|
+
@vitest/snapshot/dist/index.js:
|
|
285
|
+
(*
|
|
286
|
+
* @version 1.4.0
|
|
287
|
+
* @date 2015-10-26
|
|
288
|
+
* @stability 3 - Stable
|
|
289
|
+
* @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
|
|
290
|
+
* @license MIT License
|
|
291
|
+
*)
|
|
292
|
+
*/
|