llm-tools/mcps/playwright_mcp/node_modules/playwright/lib/common/expectBundleImpl.js

408 lines
254 KiB
JavaScript
Raw Permalink Normal View History

2026-04-08 11:11:04 +00:00
"use strict";var wu=Object.create;var nt=Object.defineProperty;var $u=Object.getOwnPropertyDescriptor;var Lu=Object.getOwnPropertyNames;var Iu=Object.getPrototypeOf,Nu=Object.prototype.hasOwnProperty;var Mu=(e,t,n)=>t in e?nt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var oe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),xu=(e,t)=>{for(var n in t)nt(e,n,{get:t[n],enumerable:!0})},Zn=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Lu(t))!Nu.call(e,s)&&s!==n&&nt(e,s,{get:()=>t[s],enumerable:!(i=$u(t,s))||i.enumerable});return e};var Pu=(e,t,n)=>(n=e!=null?wu(Iu(e)):{},Zn(t||!e||!e.__esModule?nt(n,"default",{value:e,enumerable:!0}):n,e)),Du=e=>Zn(nt({},"__esModule",{value:!0}),e);var Ce=(e,t,n)=>Mu(e,typeof t!="symbol"?t+"":t,n);var je=oe((Jc,er)=>{(()=>{"use strict";var e={};(()=>{var t=e;Object.defineProperty(t,"__esModule",{value:!0}),t.getType=n,t.isPrimitive=void 0;function n(s){if(s===void 0)return"undefined";if(s===null)return"null";if(Array.isArray(s))return"array";if(typeof s=="boolean")return"boolean";if(typeof s=="function")return"function";if(typeof s=="number")return"number";if(typeof s=="string")return"string";if(typeof s=="bigint")return"bigint";if(typeof s=="object")return s.constructor===RegExp?"regexp":s.constructor===Map?"map":s.constructor===Set?"set":s.constructor===Date?"date":"object";if(typeof s=="symbol")return"symbol";throw new Error(`value of unknown type: ${s}`)}let i=s=>Object(s)!==s;t.isPrimitive=i})(),er.exports=e})()});var Ve=oe((Zc,tr)=>{(()=>{"use strict";var e={"./src/immutableUtils.ts":((s,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.isImmutableList=R,r.isImmutableOrderedKeyed=h,r.isImmutableOrderedSet=A,r.isImmutableRecord=p,r.isImmutableUnorderedKeyed=v,r.isImmutableUnorderedSet=I;let u="@@__IMMUTABLE_KEYED__@@",a="@@__IMMUTABLE_SET__@@",g="@@__IMMUTABLE_LIST__@@",o="@@__IMMUTABLE_ORDERED__@@",b="@@__IMMUTABLE_RECORD__@@";function L(y){return y!=null&&typeof y=="object"&&!Array.isArray(y)}function v(y){return!!(y&&L(y)&&y[u]&&!y[o])}function I(y){return!!(y&&L(y)&&y[a]&&!y[o])}function R(y){return!!(y&&L(y)&&y[g])}function h(y){return!!(y&&L(y)&&y[u]&&y[o])}function A(y){return!!(y&&L(y)&&y[a]&&y[o])}function p(y){return!!(y&&L(y)&&y[b])}}),"./src/index.ts":((s,r,u)=>{Object.defineProperty(r,"__esModule",{value:!0});var a={equals:!0,isA:!0};Object.defineProperty(r,"equals",{enumerable:!0,get:function(){return g.equals}}),Object.defineProperty(r,"isA",{enumerable:!0,get:function(){return g.isA}});var g=u("./src/jasmineUtils.ts"),o=u("./src/utils.ts");Object.keys(o).forEach(function(b){b==="default"||b==="__esModule"||Object.prototype.hasOwnProperty.call(a,b)||b in r&&r[b]===o[b]||Object.defineProperty(r,b,{enumerable:!0,get:function(){return o[b]}})})}),"./src/jasmineUtils.ts":((s,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.equals=void 0,r.isA=v;let u=(R,h,A,p)=>(A=A||[],o(R,h,[],[],A,p));r.equals=u;function a(R){return!!R&&v("Function",R.asymmetricMatch)}function g(R,h){let A=a(R),p=a(h);if(!(A&&p)){if(A)return R.asymmetricMatch(h);if(p)return h.asymmetricMatch(R)}}function o(R,h,A,p,y,c){let m=!0,l=g(R,h);if(l!==void 0)return l;let E={equals:u};for(let x of y){let T=x.call(E,R,h,y);if(T!==void 0)return T}if(R instanceof Error&&h instanceof Error)return R.message===h.message;if(Object.is(R,h))return!0;if(R===null||h===null)return!1;let $=Object.prototype.toString.call(R);if($!==Object.prototype.toString.call(h))return!1;switch($){case"[object Boolean]":case"[object String]":case"[object Number]":return typeof R!=typeof h||typeof R!="object"&&typeof h!="object"?!1:Object.is(R.valueOf(),h.valueOf());case"[object Date]":return+R==+h;case"[object RegExp]":return R.source===h.source&&R.flags===h.flags;case"[object URL]":return R.href===h.href}if(typeof R!="object"||typeof h!="object")return!1;if(I(R)&&I(h))return R.isEqualNode(h);let C=A.length;for(;C--;){if(A[C]===R)return p[C]===h;if(p[C]===h)return!1}if(A.push(R),p.push(h),c&&$==="[object Array]"&&R.length!==h.length)return!1;let O=b(R,L),_,N=b(h,L);if(!c){for(l
`)&&(_=p.spacingOuter+E+_+p.spacingOuter+y),_=`{${_}}`),`${p.spacingInner+y+$.prop.open+C+$.prop.close}=${$.value.open}${_}${$.value.close}`}).join("")};r.printProps=o;let b=(h,A,p,y,c,m)=>h.map(l=>A.spacingOuter+p+(typeof l=="string"?L(l,A):m(l,A,p,y,c))).join("");r.printChildren=b;let L=(h,A)=>{let p=A.colors.content;return p.open+(0,a.default)(h)+p.close};r.printText=L;let v=(h,A)=>{let p=A.colors.comment;return`${p.open}<!--${(0,a.default)(h)}-->${p.close}`};r.printComment=v;let I=(h,A,p,y,c)=>{let m=y.colors.tag;return`${m.open}<${h}${A&&m.close+A+y.spacingOuter+c+m.open}${p?`>${m.close}${p}${y.spacingOuter}${c}${m.open}</${h}`:`${A&&!y.min?"":" "}/`}>${m.close}`};r.printElement=I;let R=(h,A)=>{let p=A.colors.tag;return`${p.open}<${h}${p.close} \u2026${p.open} />${p.close}`};r.printElementAsLeaf=R})},t={};function n(s){var r=t[s];if(r!==void 0)return r.exports;var u=t[s]={exports:{}};return e[s](u,u.exports,n),u.exports}var i={};(()=>{var s=i;Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.DEFAULT_OPTIONS=void 0,s.format=M,s.plugins=void 0;var r=I(cr()),u=n("./src/collections.ts"),a=I(n("./src/plugins/AsymmetricMatcher.ts")),g=I(n("./src/plugins/DOMCollection.ts")),o=I(n("./src/plugins/DOMElement.ts")),b=I(n("./src/plugins/Immutable.ts")),L=I(n("./src/plugins/ReactElement.ts")),v=I(n("./src/plugins/ReactTestComponent.ts"));function I(S){return S&&S.__esModule?S:{default:S}}let R=Object.prototype.toString,h=Date.prototype.toISOString,A=Error.prototype.toString,p=RegExp.prototype.toString,y=S=>typeof S.constructor=="function"&&S.constructor.name||"Object",c=S=>typeof window!="undefined"&&S===window,m=/^Symbol\((.*)\)(.*)$/,l=/\n/gi;class E extends Error{constructor(G,Z){super(G),this.stack=Z,this.name=this.constructor.name}}function $(S){return S==="[object Array]"||S==="[object ArrayBuffer]"||S==="[object DataView]"||S==="[object Float32Array]"||S==="[object Float64Array]"||S==="[object Int8Array]"||S==="[object Int16Array]"||S==="[object Int32Array]"||S==="[object Uint8Array]"||S==="[object Uint8ClampedArray]"||S==="[object Uint16Array]"||S==="[object Uint32Array]"}function C(S){return Object.is(S,-0)?"-0":String(S)}function O(S){return`${S}n`}function _(S,G){return G?`[Function ${S.name||"anonymous"}]`:"[Function]"}function N(S){return String(S).replace(m,"Symbol($1)")}function j(S){return`[${A.call(S)}]`}function x(S,G,Z,H){if(S===!0||S===!1)return`${S}`;if(S===void 0)return"undefined";if(S===null)return"null";let B=typeof S;if(B==="number")return C(S);if(B==="bigint")return O(S);if(B==="string")return H?`"${S.replaceAll(/"|\\/g,"\\$&")}"`:`"${S}"`;if(B==="function")return _(S,G);if(B==="symbol")return N(S);let D=R.call(S);return D==="[object Promise]"?"Promise {}":D==="[object WeakMap]"?"WeakMap {}":D==="[object WeakSet]"?"WeakSet {}":D==="[object Function]"||D==="[object GeneratorFunction]"?_(S,G):D==="[object Symbol]"?N(S):D==="[object Date]"?Number.isNaN(+S)?"Date { NaN }":h.call(S):D==="[object Error]"?j(S):D==="[object RegExp]"?Z?p.call(S).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):p.call(S):S instanceof Error?j(S):null}function T(S,G,Z,H,B,D){if(B.includes(S))return"[Circular]";B=[...B],B.push(S);let U=++H>G.maxDepth,X=G.min;if(G.callToJSON&&!U&&S.toJSON&&typeof S.toJSON=="function"&&!D)return P(S.toJSON(),G,Z,H,B,!0);let te=R.call(S);return te==="[object Arguments]"?U?"[Arguments]":`${X?"":"Arguments "}[${(0,u.printListItems)(S,G,Z,H,B,P)}]`:$(te)?U?`[${S.constructor.name}]`:`${X||!G.printBasicPrototype&&S.constructor.name==="Array"?"":`${S.constructor.name} `}[${(0,u.printListItems)(S,G,Z,H,B,P)}]`:te==="[object Map]"?U?"[Map]":`Map {${(0,u.printIteratorEntries)(S.entries(),G,Z,H,B,P," => ")}}`:te==="[object Set]"?U?"[Set]":`Set {${(0,u.printIteratorValues)(S.values(),G,Z,H,B,P)}}`:U||c(S)?`[${y(S)}]`:`${X||!G.printBasicPrototype&&y(S)==="Object"?"":`${y(S)} `}{${(0,u.printObjectProperties)(S,G,Z,H,B,P)}}`}function f(S){return S.serialize!=null}function d(S,G,Z,H,B,D){let U;try{U=f(S)?S.serialize(G,Z,H,B,D,P):S.print(G,X=>P(X,Z,H,B,D),X=>{let te=H+Z.indent;return te+X.replaceAll(l,`
${te}`)},{edgeSpacing:Z.spacingOuter,min:Z.min,spacing:Z.spacingInner},Z.colors)}catch(X){throw new E(X.message,X.stack)}if(typeof U!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof U}".`);return U}function w(S,G){for(let Z of S)try{if(Z.test(G))return Z}catch(H){throw new E(H.message,H.stack)}return null}function P(S,G,Z,H,B,D){let U=w(G.plugins,S);if(U!==null)return d(U,S,G,Z,H,B);let X=x(S,G.printFunctionName,G.escapeRegex,G.escapeString);return X!==null?X:T(S,G,Z,H,B,D)}let k={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},W=Object.keys(k),K=S=>S,se=s.DEFAULT_OPTIONS=K({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:k});function ue(S){for(let G of Object.keys(S))if(!Object.prototype.hasOwnProperty.call(se,G))throw new Error(`pretty-format: Unknown option "${G}".`);if(S.min&&S.indent!==void 0&&S.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(S.theme!==void 0){if(S.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof S.theme!="object")throw new TypeError(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof S.theme}".`)}}let ee=S=>W.reduce((G,Z)=>{let H=S.theme&&S.theme[Z]!==void 0?S.theme[Z]:k[Z],B=H&&r.default[H];if(B&&typeof B.close=="string"&&typeof B.open=="string")G[Z]=B;else throw new Error(`pretty-format: Option "theme" has a key "${Z}" whose value "${H}" is undefined in ansi-styles.`);return G},Object.create(null)),q=()=>W.reduce((S,G)=>(S[G]={close:"",open:""},S),Object.create(null)),Q=S=>{var G;return(G=S==null?void 0:S.printFunctionName)!=null?G:se.printFunctionName},ie=S=>{var G;return(G=S==null?void 0:S.escapeRegex)!=null?G:se.escapeRegex},z=S=>{var G;return(G=S==null?void 0:S.escapeString)!=null?G:se.escapeString},V=S=>{var G,Z,H,B,D,U,X;return{callToJSON:(G=S==null?void 0:S.callToJSON)!=null?G:se.callToJSON,colors:S!=null&&S.highlight?ee(S):q(),compareKeys:typeof(S==null?void 0:S.compareKeys)=="function"||(S==null?void 0:S.compareKeys)===null?S.compareKeys:se.compareKeys,escapeRegex:ie(S),escapeString:z(S),indent:S!=null&&S.min?"":J((Z=S==null?void 0:S.indent)!=null?Z:se.indent),maxDepth:(H=S==null?void 0:S.maxDepth)!=null?H:se.maxDepth,maxWidth:(B=S==null?void 0:S.maxWidth)!=null?B:se.maxWidth,min:(D=S==null?void 0:S.min)!=null?D:se.min,plugins:(U=S==null?void 0:S.plugins)!=null?U:se.plugins,printBasicPrototype:(X=S==null?void 0:S.printBasicPrototype)!=null?X:!0,printFunctionName:Q(S),spacingInner:S!=null&&S.min?" ":`
`,spacingOuter:S!=null&&S.min?"":`
`}};function J(S){return Array.from({length:S+1}).join(" ")}function M(S,G){if(G&&(ue(G),G.plugins)){let H=w(G.plugins,S);if(H!==null)return d(H,S,V(G),"",0,[])}let Z=x(S,Q(G),ie(G),z(G));return Z!==null?Z:T(S,V(G),"",0,[])}let F=s.plugins={AsymmetricMatcher:a.default,DOMCollection:g.default,DOMElement:o.default,Immutable:b.default,ReactElement:L.default,ReactTestComponent:v.default};var Y=s.default=M})(),lr.exports=i})()});var pr=oe((il,fr)=>{"use strict";fr.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var nn=oe((ul,hr)=>{var st=pr(),dr={};for(let e of Object.keys(st))dr[st[e]]=e;var ae={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,l
`:`
`)+n,s=i+1,i=e.indexOf(`
`,s)}while(i!==-1);return r+=e.substr(s),r};Lr.exports={stringReplaceAll:Ju,stringEncaseCRLFWithFirstIndex:Zu}});var Dr=oe((dl,Pr)=>{"use strict";var eo=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Nr=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,to=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,no=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,ro=new Map([["n",`
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function xr(e){let t=e[0]==="u",n=e[1]==="{";return t&&!n&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):ro.get(e)||e}function so(e,t){let n=[],i=t.trim().split(/\s*,\s*/g),s;for(let r of i){let u=Number(r);if(!Number.isNaN(u))n.push(u);else if(s=r.match(to))n.push(s[2].replace(no,(a,g,o)=>g?xr(g):o));else throw new Error(`Invalid Chalk template style argument: ${r} (in style '${e}')`)}return n}function io(e){Nr.lastIndex=0;let t=[],n;for(;(n=Nr.exec(e))!==null;){let i=n[1];if(n[2]){let s=so(i,n[2]);t.push([i].concat(s))}else t.push([i])}return t}function Mr(e,t){let n={};for(let s of t)for(let r of s.styles)n[r[0]]=s.inverse?null:r.slice(1);let i=e;for(let[s,r]of Object.entries(n))if(Array.isArray(r)){if(!(s in i))throw new Error(`Unknown Chalk style: ${s}`);i=r.length>0?i[s](...r):i[s]}return i}Pr.exports=(e,t)=>{let n=[],i=[],s=[];if(t.replace(eo,(r,u,a,g,o,b)=>{if(u)s.push(xr(u));else if(g){let L=s.join("");s=[],i.push(n.length===0?L:Mr(e,n)(L)),n.push({inverse:a,styles:io(g)})}else if(o){if(n.length===0)throw new Error("Found extraneous } in Chalk template literal");i.push(Mr(e,n)(s.join(""))),s=[],n.pop()}else s.push(b)}),i.push(s.join("")),n.length>0){let r=`Chalk template literal is missing ${n.length} closing bracket${n.length===1?"":"s"} (\`}\`)`;throw new Error(r)}return i.join("")}});var Ue=oe((hl,Ur)=>{"use strict";var it=vr(),{stdout:cn,stderr:ln}=$r(),{stringReplaceAll:uo,stringEncaseCRLFWithFirstIndex:oo}=Ir(),{isArray:xt}=Array,jr=["ansi","ansi","ansi256","ansi16m"],Qe=Object.create(null),ao=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let n=cn?cn.level:0;e.level=t.level===void 0?n:t.level},fn=class{constructor(t){return kr(t)}},kr=e=>{let t={};return ao(t,e),t.template=(...n)=>Fr(t.template,...n),Object.setPrototypeOf(t,Pt.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=fn,t.template};function Pt(e){return kr(e)}for(let[e,t]of Object.entries(it))Qe[e]={get(){let n=Dt(this,pn(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:n}),n}};Qe.visible={get(){let e=Dt(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Br=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of Br)Qe[e]={get(){let{level:t}=this;return function(...n){let i=pn(it.color[jr[t]][e](...n),it.color.close,this._styler);return Dt(this,i,this._isEmpty)}}};for(let e of Br){let t="bg"+e[0].toUpperCase()+e.slice(1);Qe[t]={get(){let{level:n}=this;return function(...i){let s=pn(it.bgColor[jr[n]][e](...i),it.bgColor.close,this._styler);return Dt(this,s,this._isEmpty)}}}}var co=Object.defineProperties(()=>{},{...Qe,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),pn=(e,t,n)=>{let i,s;return n===void 0?(i=e,s=t):(i=n.openAll+e,s=t+n.closeAll),{open:e,close:t,openAll:i,closeAll:s,parent:n}},Dt=(e,t,n)=>{let i=(...s)=>xt(s[0])&&xt(s[0].raw)?Hr(i,Fr(i,...s)):Hr(i,s.length===1?""+s[0]:s.join(" "));return Object.setPrototypeOf(i,co),i._generator=e,i._styler=t,i._isEmpty=n,i},Hr=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let n=e._styler;if(n===void 0)return t;let{openAll:i,closeAll:s}=n;if(t.indexOf("\x1B")!==-1)for(;n!==void 0;)t=uo(t,n.close,n.open),n=n.parent;let r=t.indexOf(`
`);return r!==-1&&(t=oo(t,s,i,r)),i+t+s},an,Fr=(e,...t)=>{let[n]=t;if(!xt(n)||!xt(n.raw))return t.join(" ");let i=t.slice(1),s=[n.raw[0]];for(let r=1;r<n.length;r++)s.push(String(i[r-1]).replace(/[{}\\]/g,"\\$&"),String(n.raw[r]));return an===void 0&&(an=Dr()),an(e,s.join(""))};Object.defineProperties(Pt.prototype,Qe);var Ht=Pt();Ht.supportsColor=cn;Ht.stderr=Pt({level:ln?ln.level:0});Ht.stderr.supportsColor=ln;Ur.exports=Ht});var dn=oe((ml,qr)=>{(()=>{"use strict";var e={};(()=>{var t=e;Object.defineProperty(t,"__esModule",{value:!0}),t.default=R;let n="@jest/diff-sequences",i=0,s=(h,A,p,y,c)=>{let m=0;for(;h<A&&p<y&&c(h,p);)h+=1,p+=1,m+=1;return m},r=(h,A,p,y,c)=>{let m=0;for(;h<=A&&p<=y&&c(A,y);)A-=1,y-=1,m+=1;return m},u=(h,A,p,y,c,m,l)=>{let E=0,$=-h,C=m[E],O=C;m[E]+=s(C+1,A,y+C-$+1,p,c);let _=Math.min(h,l);for(E+=1,$+=2;E<=_;E+=1,$+=2){if(E!==h&&O<m[E])C=m[E];else if(C=O+1,A<=C)return E-1;O=m[E],m[E]=C+s(C+1,A,y+C-$+1,p,c)}return l},a=(h,A,p,y,c,m,l)=>{let E=0,$=h,C=m[E],O=C;m[E]-=r(A,C-1,p,y+C-$-1,c);let _=Math.min(h,l);for(E+=1,$-=2;E<=_;E+=1,$-=2){if(E!==h&&m[E]<O)C=m[E];else if(C=O-1,C<A)return E-1;O=m[E],m[E]=C-r(A,C-1,p,y+C-$-1,c)}return l},g=(h,A,p,y,c,m,l,E,$,C,O)=>{let _=y-A,N=p-A,x=c-y-N,T=-x-(h-1),f=-x+(h-1),d=i,w=Math.min(h,E);for(let P=0,k=-h;P<=w;P+=1,k+=2){let W=P===0||P!==h&&d<l[P],K=W?l[P]:d,se=W?K:K+1,ue=_+se-k,ee=s(se+1,p,ue+1,c,m),q=se+ee;if(d=l[P],l[P]=q,T<=k&&k<=f){let Q=(h-1-(k+x))/2;if(Q<=C&&$[Q]-1<=q){let ie=_+K-(W?k+1:k-1),z=r(A,K,y,ie,m),V=K-z,J=ie-z,M=V+1,F=J+1;O.nChangePreceding=h-1,h-1===M+F-A-y?(O.aEndPreceding=A,O.bEndPreceding=y):(O.aEndPreceding=M,O.bEndPreceding=F),O.nCommonPreceding=z,z!==0&&(O.aCommonPreceding=M,O.bCommonPreceding=F),O.nCommonFollowing=ee,ee!==0&&(O.aCommonFollowing=se+1,O.bCommonFollowing=ue+1);let Y=q+1,S=ue+ee+1;return O.nChangeFollowing=h-1,h-1===p+c-Y-S?(O.aStartFollowing=p,O.bStartFollowing=c):(O.aStartFollowing=Y,O.bStartFollowing=S),!0}}}return!1},o=(h,A,p,y,c,m,l,E,$,C,O)=>{let _=c-p,N=p-A,x=c-y-N,T=x-h,f=x+h,d=i,w=Math.min(h,C);for(let P=0,k=h;P<=w;P+=1,k-=2){let W=P===0||P!==h&&$[P]<d,K=W?$[P]:d,se=W?K:K-1,ue=_+se-k,ee=r(A,se-1,y,ue-1,m),q=se-ee;if(d=$[P],$[P]=q,T<=k&&k<=f){let Q=(h+(k-x))/2;if(Q<=E&&q-1<=l[Q]){let ie=ue-ee;if(O.nChangePreceding=h,h===q+ie-A-y?(O.aEndPreceding=A,O.bEndPreceding=y):(O.aEndPreceding=q,O.bEndPreceding=ie),O.nCommonPreceding=ee,ee!==0&&(O.aCommonPreceding=q,O.bCommonPreceding=ie),O.nChangeFollowing=h-1,h===1)O.nCommonFollowing=0,O.aStartFollowing=p,O.bStartFollowing=c;else{let z=_+K-(W?k-1:k+1),V=s(K,p,z,c,m);O.nCommonFollowing=V,V!==0&&(O.aCommonFollowing=K,O.bCommonFollowing=z);let J=K+V,M=z+V;h-1===p+c-J-M?(O.aStartFollowing=p,O.bStartFollowing=c):(O.aStartFollowing=J,O.bStartFollowing=M)}return!0}}}return!1},b=(h,A,p,y,c,m,l,E,$)=>{let C=y-A,O=c-p,_=p-A,N=c-y,j=N-_,x=_,T=_;if(l[0]=A-1,E[0]=p,j%2===0){let f=(h||j)/2,d=(_+N)/2;for(let w=1;w<=d;w+=1)if(x=u(w,p,c,C,m,l,x),w<f)T=a(w,A,y,O,m,E,T);else if(o(w,A,p,y,c,m,l,x,E,T,$))return}else{let f=((h||j)+1)/2,d=(_+N+1)/2,w=1;for(x=u(w,p,c,C,m,l,x),w+=1;w<=d;w+=1)if(T=a(w-1,A,y,O,m,E,T),w<f)x=u(w,p,c,C,m,l,x);else if(g(w,A,p,y,c,m,l,x,E,T,$))return}throw new Error(`${n}: no overlap aStart=${A} aEnd=${p} bStart=${y} bEnd=${c}`)},L=(h,A,p,y,c,m,l,E,$,C)=>{if(c-y<p-A){if(m=!m,m&&l.length===1){let{foundSubsequence:q,isCommon:Q}=l[0];l[1]={foundSubsequence:(ie,z,V)=>{q(ie,V,z)},isCommon:(ie,z)=>Q(z,ie)}}let ue=A,ee=p;A=y,p=c,y=ue,c=ee}let{foundSubsequence:O,isCommon:_}=l[m?1:0];b(h,A,p,y,c,_,E,$,C);let{nChangePreceding:N,aEndPreceding:j,bEndPreceding:x,nCommonPreceding:T,aCommonPreceding:f,bCommonPreceding:d,nCommonFollowing:w,aCommonFollowing:P,bCommonFollowing:k,nChangeFollowing:W,aStartFollowing:K,bStartFollowing:se}=C;A<j&&y<x&&L(N,A,j,y,x,m,l,E,$,C),T!==0&&O(T,f,d),w!==0&&O(w,P,k),K<p&&se<c&&L(W,K,p,se,c,m,l,E,$,C)},v=(h,A)=>{if(typeof A!="number")throw new TypeError(`${n}: ${h} typeof ${typeof A} is not a number`);if(!Number.isSafeInteger(A))throw new RangeError(`${n}: ${h} value ${A} is not a safe integer`);if(A<0)throw new RangeError(`${n}: ${h} value ${A} is a negative
${C(d)}
`},A=(m,l)=>h(l,R(m))+(l.expand?(0,b.joinAlignedDiffsExpand)(m,l):(0,b.joinAlignedDiffsNoExpand)(m,l));r.printDiffLines=A;let p=(m,l,E)=>A(c(I(m)?[]:m.map(o.escapeControlCharacters),I(l)?[]:l.map(o.escapeControlCharacters)),(0,L.normalizeDiffOptions)(E));r.diffLinesUnified=p;let y=(m,l,E,$,C)=>{if(I(m)&&I(E)&&(m=[],E=[]),I(l)&&I($)&&(l=[],$=[]),m.length!==E.length||l.length!==$.length)return p(m,l,C);let O=c(E,$),_=0,N=0;for(let j of O)switch(j[0]){case g.DIFF_DELETE:j[1]=m[_],_+=1;break;case g.DIFF_INSERT:j[1]=l[N],N+=1;break;default:j[1]=l[N],_+=1,N+=1}return A(O,(0,L.normalizeDiffOptions)(C))};r.diffLinesUnified2=y;let c=(m,l)=>{let E=m.length,$=l.length,C=(x,T)=>m[x]===l[T],O=[],_=0,N=0,j=(x,T,f)=>{for(;_!==T;_+=1)O.push(new g.Diff(g.DIFF_DELETE,m[_]));for(;N!==f;N+=1)O.push(new g.Diff(g.DIFF_INSERT,l[N]));for(;x!==0;x-=1,_+=1,N+=1)O.push(new g.Diff(g.DIFF_EQUAL,l[N]))};for((0,a.default)(E,$,C,j);_!==E;_+=1)O.push(new g.Diff(g.DIFF_DELETE,m[_]));for(;N!==$;N+=1)O.push(new g.Diff(g.DIFF_INSERT,l[N]));return O};r.diffLinesRaw=c}),"./src/diffStrings.ts":((s,r,u)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var a=o(dn()),g=u("./src/cleanupSemantic.ts");function o(v){return v&&v.__esModule?v:{default:v}}let b=(v,I)=>{let R=(c,m)=>v[c]===I[m],h=0,A=0,p=[],y=(c,m,l)=>{h!==m&&p.push(new g.Diff(g.DIFF_DELETE,v.slice(h,m))),A!==l&&p.push(new g.Diff(g.DIFF_INSERT,I.slice(A,l))),h=m+c,A=l+c,p.push(new g.Diff(g.DIFF_EQUAL,I.slice(l,A)))};return(0,a.default)(v.length,I.length,R,y),h!==v.length&&p.push(new g.Diff(g.DIFF_DELETE,v.slice(h))),A!==I.length&&p.push(new g.Diff(g.DIFF_INSERT,I.slice(A))),p};var L=r.default=b}),"./src/escapeControlCharacters.ts":((s,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.escapeControlCharacters=void 0;let u=a=>a.replaceAll(/[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F-\u009F]/g,g=>{switch(g){case"\b":return"\\b";case"\f":return"\\f";case"\v":return"\\v";default:return`\\x${g.codePointAt(0).toString(16).padStart(2,"0")}`}});r.escapeControlCharacters=u}),"./src/getAlignedDiffs.ts":((s,r,u)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var a=u("./src/cleanupSemantic.ts");let g=(I,R,h)=>R.reduce((A,p)=>A+(p[0]===a.DIFF_EQUAL?p[1]:p[0]===I&&p[1].length>0?h(p[1]):""),"");class o{constructor(R,h){Ce(this,"op");Ce(this,"line");Ce(this,"lines");Ce(this,"changeColor");this.op=R,this.line=[],this.lines=[],this.changeColor=h}pushSubstring(R){this.pushDiff(new a.Diff(this.op,R))}pushLine(){this.lines.push(this.line.length===1?this.line[0][0]===this.op?this.line[0]:new a.Diff(this.op,this.line[0][1]):new a.Diff(this.op,g(this.op,this.line,this.changeColor))),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(R){this.line.push(R)}align(R){let h=R[1];if(h.includes(`
`)){let A=h.split(`
`),p=A.length-1;for(let[y,c]of A.entries())y<p?(this.pushSubstring(c),this.pushLine()):c.length>0&&this.pushSubstring(c)}else this.pushDiff(R)}moveLinesTo(R){this.isLineEmpty()||this.pushLine(),R.push(...this.lines),this.lines.length=0}}class b{constructor(R,h){Ce(this,"deleteBuffer");Ce(this,"insertBuffer");Ce(this,"lines");this.deleteBuffer=R,this.insertBuffer=h,this.lines=[]}pushDiffCommonLine(R){this.lines.push(R)}pushDiffChangeLines(R){let h=R[1].length===0;(!h||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(R),(!h||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(R)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(R){let h=R[0],A=R[1];if(A.includes(`
`)){let p=A.split(`
`),y=p.length-1;for(let[c,m]of p.entries())if(c===0){let l=new a.Diff(h,m);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(l)):(this.pushDiffChangeLines(l),this.flushChangeLines())}else c<y?this.pushDiffCommonLine(new a.Diff(h,m)):m.length>0&&this.pushDiffChangeLines(new a.Diff(h,m))}else this.pushDiffChangeLines(R)}getLines(){return this.flushChangeLines(),this.lines}}let L=(I,R)=>{let h=new o(a.DIFF_DELETE,R),A=new o(a.DIFF_INSERT,R),p=new b(h,A);for(let y of I)switch(y[0]){case a.DIFF_DELETE:h.align(y);break;case a.DIFF_INSERT:A.align(y);break;default:p.align(y)}return p.getLines()};var v=r.default=L}),"./src/joinAlignedDiffs.ts":((s,r,u)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.joinAlignedDiffsNoExpand=r.joinAlignedDiffsExpand=void 0;var a=u("./src/cleanupSemantic.ts");let g=(A,p)=>A.replace(/\s+$/,y=>p(y)),o=(A,p,y,c,m,l)=>A.length===0?c===" "?p&&l.length>0?y(`${c} ${l}`):"":y(c):y(`${c} ${g(A,m)}`),b=(A,p,{aColor:y,aIndicator:c,changeLineTrailingSpaceColor:m,emptyFirstOrLastLinePlaceholder:l})=>o(A,p,y,c,m,l),L=(A,p,{bColor:y,bIndicator:c,changeLineTrailingSpaceColor:m,emptyFirstOrLastLinePlaceholder:l})=>o(A,p,y,c,m,l),v=(A,p,{commonColor:y,commonIndicator:c,commonLineTrailingSpaceColor:m,emptyFirstOrLastLinePlaceholder:l})=>o(A,p,y,c,m,l),I=(A,p,y,c,{patchColor:m})=>m(`@@ -${A+1},${p-A} +${y+1},${c-y} @@`),R=(A,p)=>{let y=A.length,c=p.contextLines,m=c+c,l=y,E=!1,$=0,C=0;for(;C!==y;){let W=C;for(;C!==y&&A[C][0]===a.DIFF_EQUAL;)C+=1;if(W!==C)if(W===0)C>c&&(l-=C-c,E=!0);else if(C===y){let K=C-W;K>c&&(l-=K-c,E=!0)}else{let K=C-W;K>m&&(l-=K-m,$+=1)}for(;C!==y&&A[C][0]!==a.DIFF_EQUAL;)C+=1}let O=$!==0||E;$!==0?l+=$+1:E&&(l+=1);let _=l-1,N=[],j=0;O&&N.push("");let x=0,T=0,f=0,d=0,w=W=>{let K=N.length;N.push(v(W,K===0||K===_,p)),f+=1,d+=1},P=W=>{let K=N.length;N.push(b(W,K===0||K===_,p)),f+=1},k=W=>{let K=N.length;N.push(L(W,K===0||K===_,p)),d+=1};for(C=0;C!==y;){let W=C;for(;C!==y&&A[C][0]===a.DIFF_EQUAL;)C+=1;if(W!==C)if(W===0){C>c&&(W=C-c,x=W,T=W,f=x,d=T);for(let K=W;K!==C;K+=1)w(A[K][1])}else if(C===y){let K=C-W>c?W+c:C;for(let se=W;se!==K;se+=1)w(A[se][1])}else{let K=C-W;if(K>m){let se=W+c;for(let ee=W;ee!==se;ee+=1)w(A[ee][1]);N[j]=I(x,f,T,d,p),j=N.length,N.push("");let ue=K-m;x=f+ue,T=d+ue,f=x,d=T;for(let ee=C-c;ee!==C;ee+=1)w(A[ee][1])}else for(let se=W;se!==C;se+=1)w(A[se][1])}for(;C!==y&&A[C][0]===a.DIFF_DELETE;)P(A[C][1]),C+=1;for(;C!==y&&A[C][0]===a.DIFF_INSERT;)k(A[C][1]),C+=1}return O&&(N[j]=I(x,f,T,d,p)),N.join(`
`)};r.joinAlignedDiffsNoExpand=R;let h=(A,p)=>A.map((y,c,m)=>{let l=y[1],E=c===0||c===m.length-1;switch(y[0]){case a.DIFF_DELETE:return b(l,E,p);case a.DIFF_INSERT:return L(l,E,p);default:return v(l,E,p)}}).join(`
`);r.joinAlignedDiffsExpand=h}),"./src/normalizeDiffOptions.ts":((s,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.normalizeDiffOptions=r.noColor=void 0;var u=a(Ue());function a(R){return R&&R.__esModule?R:{default:R}}let g=R=>R;r.noColor=g;let o=5,b={aAnnotation:"Expected",aColor:u.default.green,aIndicator:"-",bAnnotation:"Received",bColor:u.default.red,bIndicator:"+",changeColor:u.default.inverse,changeLineTrailingSpaceColor:g,commonColor:u.default.dim,commonIndicator:" ",commonLineTrailingSpaceColor:g,compareKeys:void 0,contextLines:o,emptyFirstOrLastLinePlaceholder:"",expand:!0,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:u.default.yellow},L=R=>R&&typeof R=="function"?R:b.compareKeys,v=R=>typeof R=="number"&&Number.isSafeInteger(R)&&R>=0?R:o,I=(R={})=>({...b,...R,compareKeys:L(R.compareKeys),contextLines:v(R.contextLines)});r.normalizeDiffOptions=I}),"./src/printDiffs.ts":((s,r,u)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.diffStringsUnified=r.diffStringsRaw=void 0;var a=u("./src/cleanupSemantic.ts"),g=u("./src/diffLines.ts"),o=v(u("./src/diffStrings.ts")),b=v(u("./src/getAlignedDiffs.ts")),L=u("./src/normalizeDiffOptions.ts");function v(A){return A&&A.__esModule?A:{default:A}}let I=(A,p)=>{if(p){let y=A.length-1;return A.some((c,m)=>c[0]===a.DIFF_EQUAL&&(m!==y||c[1]!==`
`))}return A.some(y=>y[0]===a.DIFF_EQUAL)},R=(A,p,y)=>{if(A!==p&&A.length>0&&p.length>0){let c=A.includes(`
`)||p.includes(`
`),m=h(c?`${A}
`:A,c?`${p}
`:p,!0);if(I(m,c)){let l=(0,L.normalizeDiffOptions)(y),E=(0,b.default)(m,l.changeColor);return(0,g.printDiffLines)(E,l)}}return(0,g.diffLinesUnified)(A.split(`
`),p.split(`
`),y)};r.diffStringsUnified=R;let h=(A,p,y)=>{let c=(0,o.default)(A,p);return y&&(0,a.cleanupSemantic)(c),c};r.diffStringsRaw=h})},t={};function n(s){var r=t[s];if(r!==void 0)return r.exports;var u=t[s]={exports:{}};return e[s](u,u.exports,n),u.exports}var i={};(()=>{var s=i;Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"DIFF_DELETE",{enumerable:!0,get:function(){return g.DIFF_DELETE}}),Object.defineProperty(s,"DIFF_EQUAL",{enumerable:!0,get:function(){return g.DIFF_EQUAL}}),Object.defineProperty(s,"DIFF_INSERT",{enumerable:!0,get:function(){return g.DIFF_INSERT}}),Object.defineProperty(s,"Diff",{enumerable:!0,get:function(){return g.Diff}}),s.diff=_,Object.defineProperty(s,"diffLinesRaw",{enumerable:!0,get:function(){return b.diffLinesRaw}}),Object.defineProperty(s,"diffLinesUnified",{enumerable:!0,get:function(){return b.diffLinesUnified}}),Object.defineProperty(s,"diffLinesUnified2",{enumerable:!0,get:function(){return b.diffLinesUnified2}}),Object.defineProperty(s,"diffStringsRaw",{enumerable:!0,get:function(){return I.diffStringsRaw}}),Object.defineProperty(s,"diffStringsUnified",{enumerable:!0,get:function(){return I.diffStringsUnified}});var r=R(Ue()),u=je(),a=rt(),g=n("./src/cleanupSemantic.ts"),o=n("./src/constants.ts"),b=n("./src/diffLines.ts"),L=n("./src/escapeControlCharacters.ts"),v=n("./src/normalizeDiffOptions.ts"),I=n("./src/printDiffs.ts");function R(w){return w&&w.__esModule?w:{default:w}}var h=globalThis["jest-symbol-do-not-touch"]||globalThis.Symbol;let A=(w,P)=>{let{commonColor:k}=(0,v.normalizeDiffOptions)(P);return k(w)},{AsymmetricMatcher:p,DOMCollection:y,DOMElement:c,Immutable:m,ReactElement:l,ReactTestComponent:E}=a.plugins,$=[E,l,c,y,m,p],C={plugins:$},O={callToJSON:!1,maxDepth:10,plugins:$};function _(w,P,k){if(Object.is(w,P))return A(o.NO_DIFF_MESSAGE,k);let W=(0,u.getType)(w),K=W,se=!1;if(W==="object"&&typeof w.asymmetricMatch=="function"){if(w.$$typeof!==h.for("jest.asymmetricMatcher")||typeof w.getExpectedType!="function")return null;K=w.getExpectedType(),se=K==="string"}if(K!==(0,u.getType)(P))return` Comparing two different types of values. Expected ${r.default.green(K)} but received ${r.default.red((0,u.getType)(P))}.`;if(se)return null;switch(W){case"string":return(0,b.diffLinesUnified)((0,L.escapeControlCharacters)(w).split(`
`),(0,L.escapeControlCharacters)(P).split(`
`),k);case"boolean":case"number":return N(w,P,k);case"map":return T(j(w),j(P),k);case"set":return T(x(w),x(P),k);default:return T(w,P,k)}}function N(w,P,k){let W=(0,a.format)(w,C),K=(0,a.format)(P,C);return W===K?A(o.NO_DIFF_MESSAGE,k):(0,b.diffLinesUnified)(W.split(`
`),K.split(`
`),k)}function j(w){return new Map([...w].sort())}function x(w){return new Set([...w].sort())}function T(w,P,k){let W,K=!1;try{let ue=f(C,k);W=d(w,P,ue,k)}catch{K=!0}let se=A(o.NO_DIFF_MESSAGE,k);if(W===void 0||W===se){let ue=f(O,k);W=d(w,P,ue,k),W!==se&&!K&&(W=`${A(o.SIMILAR_MESSAGE,k)}
${W}`)}return W}function f(w,P){let{compareKeys:k}=(0,v.normalizeDiffOptions)(P);return{...w,compareKeys:k}}function d(w,P,k,W){let K={...k,indent:0},se=(0,a.format)(w,K),ue=(0,a.format)(P,K);if(se===ue)return A(o.NO_DIFF_MESSAGE,W);{let ee=(0,a.format)(w,k),q=(0,a.format)(P,k);return(0,b.diffLinesUnified2)(ee.split(`
`),q.split(`
`),se.split(`
`),ue.split(`
`),W)}}})(),Gr.exports=i})()});var Be=oe((yl,Kr)=>{(()=>{"use strict";var e={"./src/Replaceable.ts":((s,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var u=je();let a=new Set(["map","array","object"]);class g{constructor(b){Ce(this,"object");Ce(this,"type");if(this.object=b,this.type=(0,u.getType)(b),!a.has(this.type))throw new Error(`Type ${this.type} is not support in Replaceable!`)}static isReplaceable(b,L){let v=(0,u.getType)(b),I=(0,u.getType)(L);return v===I&&a.has(v)}forEach(b){if(this.type==="object"){let L=Object.getOwnPropertyDescriptors(this.object);for(let v of[...Object.keys(L),...Object.getOwnPropertySymbols(L)].filter(I=>L[I].enumerable))b(this.object[v],v,this.object)}else this.object.forEach(b)}get(b){return this.type==="map"?this.object.get(b):this.object[b]}set(b,L){this.type==="map"?this.object.set(b,L):this.object[b]=L}}r.default=g}),"./src/deepCyclicCopyReplaceable.ts":((s,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.SERIALIZABLE_PROPERTIES=void 0,r.default=v;var u=rt(),a=globalThis["jest-symbol-do-not-touch"]||globalThis.Symbol;let g=[Array,Date,Float32Array,Float64Array,Int16Array,Int32Array,Int8Array,Map,Set,RegExp,Uint16Array,Uint32Array,Uint8Array,Uint8ClampedArray];typeof Buffer!="undefined"&&g.push(Buffer),typeof Window!="undefined"&&g.push(Window);let o=r.SERIALIZABLE_PROPERTIES=a.for("@jest/serializableProperties"),b=p=>g.includes(p.constructor),L=p=>p.constructor===Map;function v(p,y=new WeakMap){return typeof p!="object"||p===null?p:y.has(p)?y.get(p):Array.isArray(p)?R(p,y):L(p)?h(p,y):b(p)?p:u.plugins.DOMElement.test(p)?p.cloneNode(!0):I(p,y)}function I(p,y){let c=Object.create(Object.getPrototypeOf(p)),m={},l=p;do{let $=A(l);if($===void 0)m=Object.assign(Object.create(null),Object.getOwnPropertyDescriptors(l),m);else for(let C of $)m[C]||(m[C]=Object.getOwnPropertyDescriptor(l,C))}while((l=Object.getPrototypeOf(l))&&l!==Object.getPrototypeOf({}));y.set(p,c);let E=[...Object.keys(m),...Object.getOwnPropertySymbols(m)].reduce(($,C)=>{let O=m[C].enumerable;return $[C]={configurable:!0,enumerable:O,value:v(p[C],y),writable:!0},$},Object.create(null));return Object.defineProperties(c,E)}function R(p,y){let c=new(Object.getPrototypeOf(p)).constructor(p.length),m=p.length;y.set(p,c);for(let l=0;l<m;l++)c[l]=v(p[l],y);return c}function h(p,y){let c=new Map;y.set(p,c);for(let[m,l]of p)c.set(m,v(l,y));return c}function A(p){if(typeof p!="object"||p===null)return;let y=p[o];if(Array.isArray(y))return y.filter(c=>typeof c=="string"||typeof c=="symbol")}})},t={};function n(s){var r=t[s];if(r!==void 0)return r.exports;var u=t[s]={exports:{}};return e[s](u,u.exports,n),u.exports}var i={};(()=>{var s=i;Object.defineProperty(s,"__esModule",{value:!0}),s.RECEIVED_COLOR=s.INVERTED_COLOR=s.EXPECTED_COLOR=s.DIM_COLOR=s.BOLD_WEIGHT=void 0,Object.defineProperty(s,"SERIALIZABLE_PROPERTIES",{enumerable:!0,get:function(){return b.SERIALIZABLE_PROPERTIES}}),s.printReceived=s.printExpected=s.printDiffOrStringify=s.pluralize=s.matcherHint=s.matcherErrorMessage=s.highlightTrailingWhitespace=s.getLabelPrinter=s.ensureNumbers=s.ensureNoExpected=s.ensureExpectedIsNumber=s.ensureExpectedIsNonNegativeInteger=s.ensureActualIsNumber=s.diff=s.SUGGEST_TO_CONTAIN_EQUAL=void 0,s.printWithType=P,s.replaceMatchedToAsymmetricMatcher=V,s.stringify=void 0;var r=v(Ue()),u=je(),a=Wr(),g=rt(),o=v(n("./src/Replaceable.ts")),b=L(n("./src/deepCyclicCopyReplaceable.ts"));function L(H,B){if(typeof WeakMap=="function")var D=new WeakMap,U=new WeakMap;return(L=function(X,te){if(!te&&X&&X.__esModule)return X;var ne,re,ce={__proto__:null,default:X};if(X===null||typeof X!="object"&&typeof X!="function")return ce;if(ne=te?U:D){if(ne.has(X))return ne.get(X);ne.set(X,ce)}for(let le in X)le!=="default"&&{}.hasOwnProperty.call(X,le)&&((re=(ne=Object.defineProperty)&&Object.getOwnPropertyDescriptor(X,le))&&(re.get||re.set)?ne(ce,le,re):ce[le]=X[le]);return ce})(H,B)}function v(H){return H&&H.__esModule?H:{default:H}}let{AsymmetricMatcher:I,DOMCollection:R,DOMElement:h,Immutable:A,ReactElement:p,ReactTestComponent:y
`:"",te=`${H} has value: ${D(B)}`;return X+te}let k=(H,B,D)=>{if(H!==void 0){let U=(D?"":"[.not]")+B;throw new Error(G(Z(U,void 0,"",D),"this matcher must not have an expected argument",P("Expected",H,w)))}};s.ensureNoExpected=k;let W=(H,B,D)=>{if(typeof H!="number"&&typeof H!="bigint"){let U=(D?"":"[.not]")+B;throw new Error(G(Z(U,void 0,void 0,D),`${l("received")} value must be a number or bigint`,P("Received",H,d)))}};s.ensureActualIsNumber=W;let K=(H,B,D)=>{if(typeof H!="number"&&typeof H!="bigint"){let U=(D?"":"[.not]")+B;throw new Error(G(Z(U,void 0,void 0,D),`${m("expected")} value must be a number or bigint`,P("Expected",H,w)))}};s.ensureExpectedIsNumber=K;let se=(H,B,D,U)=>{W(H,D,U),K(B,D,U)};s.ensureNumbers=se;let ue=(H,B,D)=>{if(typeof H!="number"||!Number.isSafeInteger(H)||H<0){let U=(D?"":"[.not]")+B;throw new Error(G(Z(U,void 0,void 0,D),`${m("expected")} value must be a non-negative integer`,P("Expected",H,w)))}};s.ensureExpectedIsNonNegativeInteger=ue;let ee=(H,B,D)=>H.reduce((U,X)=>U+(X[0]===a.DIFF_EQUAL?X[1]:X[0]===B?D?E(X[1]):X[1]:""),""),q=(H,B)=>{let D=(0,u.getType)(H),U=(0,u.getType)(B);return D!==U?!1:(0,u.isPrimitive)(H)?typeof H=="string"&&typeof B=="string"&&H.length>0&&B.length>0&&(O.test(H)||O.test(B)):!(D==="date"||D==="function"||D==="regexp"||H instanceof Error&&B instanceof Error||U==="object"&&typeof B.asymmetricMatch=="function")},Q=2e4,ie=(H,B,D,U,X)=>{if(typeof H=="string"&&typeof B=="string"&&H.length>0&&B.length>0&&H.length<=Q&&B.length<=Q&&H!==B){if(H.includes(`
`)||B.includes(`
`))return(0,a.diffStringsUnified)(H,B,{aAnnotation:D,bAnnotation:U,changeLineTrailingSpaceColor:r.default.bgYellow,commonLineTrailingSpaceColor:r.default.bgYellow,emptyFirstOrLastLinePlaceholder:"\u21B5",expand:X,includeChangeCounts:!0});let ce=(0,a.diffStringsRaw)(H,B,!0),le=ce.some(me=>me[0]===a.DIFF_EQUAL),fe=S(D,U),Ae=fe(D)+w(ee(ce,a.DIFF_DELETE,le)),_e=fe(U)+d(ee(ce,a.DIFF_INSERT,le));return`${Ae}
${_e}`}if(q(H,B)){let{replacedExpected:ce,replacedReceived:le}=V(H,B,[],[]),fe=(0,a.diff)(ce,le,{aAnnotation:D,bAnnotation:U,expand:X,includeChangeCounts:!0});if(typeof fe=="string"&&fe.includes(`- ${D}`)&&fe.includes(`+ ${U}`))return fe}let te=S(D,U),ne=te(D)+w(H),re=te(U)+(x(H)===x(B)?"serializes to the same string":d(B));return`${ne}
${re}`};s.printDiffOrStringify=ie;let z=(H,B)=>!(typeof H=="number"&&typeof B=="number"||typeof H=="bigint"&&typeof B=="bigint"||typeof H=="boolean"&&typeof B=="boolean");function V(H,B,D,U){return J((0,b.default)(H),(0,b.default)(B),D,U)}function J(H,B,D,U){if(!o.default.isReplaceable(H,B))return{replacedExpected:H,replacedReceived:B};if(D.includes(H)||U.includes(B))return{replacedExpected:H,replacedReceived:B};D.push(H),U.push(B);let X=new o.default(H),te=new o.default(B);return X.forEach((ne,re)=>{let ce=te.get(re);if(M(ne))ne.asymmetricMatch(ce)&&te.set(re,ne);else if(M(ce))ce.asymmetricMatch(ne)&&X.set(re,ce);else if(o.default.isReplaceable(ne,ce)){let le=J(ne,ce,D,U);X.set(re,le.replacedExpected),te.set(re,le.replacedReceived)}}),{replacedExpected:X.object,replacedReceived:te.object}}function M(H){return(0,u.getType)(H)==="object"&&typeof H.asymmetricMatch=="function"}let F=(H,B,D)=>z(H,B)?(0,a.diff)(H,B,D):null;s.diff=F;let Y=(H,B)=>`${N[B]||B} ${H}${B===1?"":"s"}`;s.pluralize=Y;let S=(...H)=>{let B=H.reduce((D,U)=>Math.max(U.length,D),0);return D=>`${D}: ${" ".repeat(B-D.length)}`};s.getLabelPrinter=S;let G=(H,B,D)=>`${H}
${r.default.bold("Matcher error")}: ${B}${typeof D=="string"?`
${D}`:""}`;s.matcherErrorMessage=G;let Z=(H,B="received",D="expected",U={})=>{let{comment:X="",expectedColor:te=m,isDirectExpectCall:ne=!1,isNot:re=!1,promise:ce="",receivedColor:le=l,secondArgument:fe="",secondArgumentColor:Ae=m}=U,_e="",me="expect";return!ne&&B!==""&&(_e+=C(`${me}(`)+le(B),me=")"),ce!==""&&(_e+=C(`${me}.`)+ce,me=""),re&&(_e+=`${C(`${me}.`)}not`,me=""),H.includes(".")?me+=H:(_e+=C(`${me}.`)+H,me=""),D===""?me+="()":(_e+=C(`${me}(`)+te(D),fe&&(_e+=C(", ")+Ae(fe)),me=")"),X!==""&&(me+=` // ${X}`),me!==""&&(_e+=C(me)),_e};s.matcherHint=Z})(),Kr.exports=i})()});var Xr=oe((_l,Vr)=>{var Fe=require("constants"),lo=process.cwd,jt=null,fo=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return jt||(jt=lo.call(process)),jt};try{process.cwd()}catch{}typeof process.chdir=="function"&&(hn=process.chdir,process.chdir=function(e){jt=null,hn.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,hn));var hn;Vr.exports=po;function po(e){Fe.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||n(e),e.chown=r(e.chown),e.fchown=r(e.fchown),e.lchown=r(e.lchown),e.chmod=i(e.chmod),e.fchmod=i(e.fchmod),e.lchmod=i(e.lchmod),e.chownSync=u(e.chownSync),e.fchownSync=u(e.fchownSync),e.lchownSync=u(e.lchownSync),e.chmodSync=s(e.chmodSync),e.fchmodSync=s(e.fchmodSync),e.lchmodSync=s(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=g(e.statSync),e.fstatSync=g(e.fstatSync),e.lstatSync=g(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(b,L,v){v&&process.nextTick(v)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(b,L,v,I){I&&process.nextTick(I)},e.lchownSync=function(){}),fo==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:(function(b){function L(v,I,R){var h=Date.now(),A=0;b(v,I,function p(y){if(y&&(y.code==="EACCES"||y.code==="EPERM"||y.code==="EBUSY")&&Date.now()-h<6e4){setTimeout(function(){e.stat(I,function(c,m){c&&c.code==="ENOENT"?b(v,I,p):R(y)})},A),A<100&&(A+=10);return}R&&R(y)})}return Object.setPrototypeOf&&Object.setPrototypeOf(L,b),L})(e.rename)),e.read=typeof e.read!="function"?e.read:(function(b){function L(v,I,R,h,A,p){var y;if(p&&typeof p=="function"){var c=0;y=function(m,l,E){if(m&&m.code==="EAGAIN"&&c<10)return c++,b.call(e,v,I,R,h,A,y);p.apply(this,arguments)}}return b.call(e,v,I,R,h,A,y)}return Object.setPrototypeOf&&Object.setPrototypeOf(L,b),L})(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:(function(b){return function(L,v,I,R,h){for(var A=0;;)try{return b.call(e,L,v,I,R,h)}catch(p){if(p.code==="EAGAIN"&&A<10){A++;continue}throw p}}})(e.readSync);function t(b){b.lchmod=function(L,v,I){b.open(L,Fe.O_WRONLY|Fe.O_SYMLINK,v,function(R,h){if(R){I&&I(R);return}b.fchmod(h,v,function(A){b.close(h,function(p){I&&I(A||p)})})})},b.lchmodSync=function(L,v){var I=b.openSync(L,Fe.O_WRONLY|Fe.O_SYMLINK,v),R=!0,h;try{h=b.fchmodSync(I,v),R=!1}finally{if(R)try{b.closeSync(I)}catch{}else b.closeSync(I)}return h}}function n(b){Fe.hasOwnProperty("O_SYMLINK")&&b.futimes?(b.lutimes=function(L,v,I,R){b.open(L,Fe.O_SYMLINK,function(h,A){if(h){R&&R(h);return}b.futimes(A,v,I,function(p){b.close(A,function(y){R&&R(p||y)})})})},b.lutimesSync=function(L,v,I){var R=b.openSync(L,Fe.O_SYMLINK),h,A=!0;try{h=b.futimesSync(R,v,I),A=!1}finally{if(A)try{b.closeSync(R)}catch{}else b.closeSync(R)}return h}):b.futimes&&(b.lutimes=function(L,v,I,R){R&&process.nextTick(R)},b.lutimesSync=function(){})}function i(b){return b&&function(L,v,I){return b.call(e,L,v,function(R){o(R)&&(R=null),I&&I.apply(this,arguments)})}}function s(b){return b&&function(L,v){try{return b.call(e,L,v)}catch(I){if(!o(I))throw I}}}function r(b){return b&&function(L,v,I,R){return b.call(e,L,v,I,function(h){o(h)&&(h=null),R&&R.apply(this,arguments)})}}function u(b){return b&&function(L,v,I){try{return b.call(e,L,v,I)}catch(R){if(!o(R))throw R}}}function a(b){return b&&function(L,v,I){typeof v=="function"&&(I=v,v=null);function R(h,A){A&&(A.uid<0&&(A.uid+=4294967296),A.gid<0&&(A.gid+=4294967296)),I&&I.apply(this,arguments)}re
GFS4: `),console.error(e)});ge[ve]||(es=global[ve]||[],ns(ge,es),ge.close=(function(e){function t(n,i){return e.call(ge,n,function(s){s||ts(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(t,Ft,{value:e}),t})(ge.close),ge.closeSync=(function(e){function t(n){e.apply(ge,arguments),ts()}return Object.defineProperty(t,Ft,{value:e}),t})(ge.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){qe(ge[ve]),require("assert").equal(ge[ve].length,0)}));var es;global[ve]||ns(global,ge[ve]);bn.exports=mn(Eo(ge));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ge.__patched&&(bn.exports=mn(ge),ge.__patched=!0);function mn(e){bo(e),e.gracefulify=mn,e.createReadStream=l,e.createWriteStream=E;var t=e.readFile;e.readFile=n;function n(O,_,N){return typeof _=="function"&&(N=_,_=null),j(O,_,N);function j(x,T,f,d){return t(x,T,function(w){w&&(w.code==="EMFILE"||w.code==="ENFILE")?Je([j,[x,T,f],w,d||Date.now(),Date.now()]):typeof f=="function"&&f.apply(this,arguments)})}}var i=e.writeFile;e.writeFile=s;function s(O,_,N,j){return typeof N=="function"&&(j=N,N=null),x(O,_,N,j);function x(T,f,d,w,P){return i(T,f,d,function(k){k&&(k.code==="EMFILE"||k.code==="ENFILE")?Je([x,[T,f,d,w],k,P||Date.now(),Date.now()]):typeof w=="function"&&w.apply(this,arguments)})}}var r=e.appendFile;r&&(e.appendFile=u);function u(O,_,N,j){return typeof N=="function"&&(j=N,N=null),x(O,_,N,j);function x(T,f,d,w,P){return r(T,f,d,function(k){k&&(k.code==="EMFILE"||k.code==="ENFILE")?Je([x,[T,f,d,w],k,P||Date.now(),Date.now()]):typeof w=="function"&&w.apply(this,arguments)})}}var a=e.copyFile;a&&(e.copyFile=g);function g(O,_,N,j){return typeof N=="function"&&(j=N,N=0),x(O,_,N,j);function x(T,f,d,w,P){return a(T,f,d,function(k){k&&(k.code==="EMFILE"||k.code==="ENFILE")?Je([x,[T,f,d,w],k,P||Date.now(),Date.now()]):typeof w=="function"&&w.apply(this,arguments)})}}var o=e.readdir;e.readdir=L;var b=/^v[0-5]\./;function L(O,_,N){typeof _=="function"&&(N=_,_=null);var j=b.test(process.version)?function(f,d,w,P){return o(f,x(f,d,w,P))}:function(f,d,w,P){return o(f,d,x(f,d,w,P))};return j(O,_,N);function x(T,f,d,w){return function(P,k){P&&(P.code==="EMFILE"||P.code==="ENFILE")?Je([j,[T,f,d],P,w||Date.now(),Date.now()]):(k&&k.sort&&k.sort(),typeof d=="function"&&d.call(this,P,k))}}}if(process.version.substr(0,4)==="v0.8"){var v=yo(e);p=v.ReadStream,c=v.WriteStream}var I=e.ReadStream;I&&(p.prototype=Object.create(I.prototype),p.prototype.open=y);var R=e.WriteStream;R&&(c.prototype=Object.create(R.prototype),c.prototype.open=m),Object.defineProperty(e,"ReadStream",{get:function(){return p},set:function(O){p=O},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return c},set:function(O){c=O},enumerable:!0,configurable:!0});var h=p;Object.defineProperty(e,"FileReadStream",{get:function(){return h},set:function(O){h=O},enumerable:!0,configurable:!0});var A=c;Object.defineProperty(e,"FileWriteStream",{get:function(){return A},set:function(O){A=O},enumerable:!0,configurable:!0});function p(O,_){return this instanceof p?(I.apply(this,arguments),this):p.apply(Object.create(p.prototype),arguments)}function y(){var O=this;C(O.path,O.flags,O.mode,function(_,N){_?(O.autoClose&&O.destroy(),O.emit("error",_)):(O.fd=N,O.emit("open",N),O.read())})}function c(O,_){return this instanceof c?(R.apply(this,arguments),this):c.apply(Object.create(c.prototype),arguments)}function m(){var O=this;C(O.path,O.flags,O.mode,function(_,N){_?(O.destroy(),O.emit("error",_)):(O.fd=N,O.emit("open",N))})}function l(O,_){return new e.ReadStream(O,_)}function E(O,_){return new e.WriteStream(O,_)}var $=e.open;e.open=C;function C(O,_,N,j){return typeof N=="function"&&(j=N,N=null),x(O,_,N,j);function x(T,f,d,w,P){return $(T,f,d,function(k,W){k&&(k.code==="EMFILE"||k.code==="ENFILE")?Je([x,[T,f,d,w],k,P||Date.now(),Date.now()]):typeof w=="function"&&w.apply(this,arguments)})}}return e}function Je(e){qe("ENQUEUE",e[0].name,e[1]),ge[ve].push(e),gn()}var Bt;function ts(){for(var e=Date.now(),t=0;t<ge[ve].length;++t)ge[ve][t].length>2&&
${p.message}`,p}let A=R;for(;A=Object.getPrototypeOf(A);)typeof A.constructor=="function"&&A.constructor.call(h);return h.env=v(),h.send=()=>!0,Object.defineProperty(h,"domain",{get(){return R.domain}}),h}}),"./src/deepCyclicCopy.ts":((s,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.default=a;let u=new Set;function a(b,L,v=new WeakMap){return L={blacklist:u,keepPrototype:!1,...L},typeof b!="object"||b===null||Buffer.isBuffer(b)?b:v.has(b)?v.get(b):Array.isArray(b)?o(b,L,v):g(b,L,v)}function g(b,L,v){let I=L.keepPrototype?Object.create(Object.getPrototypeOf(b)):{},R=Object.getOwnPropertyDescriptors(b);v.set(b,I);for(let h of Object.keys(R)){if(L.blacklist&&L.blacklist.has(h)){delete R[h];continue}let A=R[h];A.value!==void 0&&(A.value=a(A.value,{blacklist:u,keepPrototype:L.keepPrototype},v)),A.configurable=!0}return Object.defineProperties(I,R)}function o(b,L,v){let I=L.keepPrototype?new(Object.getPrototypeOf(b)).constructor(b.length):[],R=b.length;v.set(b,I);for(let h=0;h<R;h++)I[h]=a(b[h],{blacklist:u,keepPrototype:L.keepPrototype},v);return I}}),"./src/formatTime.ts":((s,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.default=u;function u(a,g=-3,o=0){let b=["n","\u03BC","m",""],L=Math.max(0,Math.min(Math.trunc(g/3)+b.length-1,b.length-1));return`${String(a).padStart(o)} ${b[L]}s`}}),"./src/garbage-collection-utils.ts":((s,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.canDeleteProperties=I,r.deleteProperties=L,r.initializeGarbageCollectionUtils=b,r.protectProperties=v;function u(){let c=a(Ue());return u=function(){return c},c}function a(c){return c&&c.__esModule?c:{default:c}}let g=Symbol.for("$$jest-deletion-mode"),o=Symbol.for("$$jest-protect-from-deletion");function b(c,m){let l=Reflect.get(c,g);if(l&&l!==m){console.warn(u().default.yellow(["[jest-util] garbage collection deletion mode already initialized, ignoring new mode",` Current: '${l}'`,` Given: '${m}'`].join(`
`)));return}Reflect.set(c,g,m)}function L(c){if(h()!=="off"&&I(c)){let m=y(c,Reflect.get(c,o));for(let l of Reflect.ownKeys(c))!m.includes(l)&&l!==o&&R(c,l)}}function v(c,m=[],l=2){if(h()==="off")return!1;let E=process.emitWarning;try{if(process.emitWarning=()=>{},l>=0&&I(c)&&!Reflect.has(c,o)){let $=Reflect.defineProperty(c,o,{configurable:!0,enumerable:!1,value:m,writable:!0});for(let C of y(c,m))try{let O=Reflect.get(c,C);v(O,[],l-1)}catch{}return $}return!1}finally{process.emitWarning=E}}function I(c){if(c!==null){let m=typeof c;return m==="object"||m==="function"}return!1}function R(c,m){var C,O;let l=Reflect.getOwnPropertyDescriptor(c,m);if(!(l!=null&&l.configurable))return!1;if(h()==="on")return Reflect.deleteProperty(c,m);let E=(C=l.get)!=null?C:(()=>l.value),$=(O=l.set)!=null?O:(_=>Reflect.set(c,m,_));return Reflect.defineProperty(c,m,{configurable:!0,enumerable:l.enumerable,get(){return p(c,m),E()},set(_){return p(c,m),$(_)}})}function h(){var c;return(c=Reflect.get(globalThis,g))!=null?c:"off"}let A=new WeakSet;function p(c,m){var $,C;if(A.has(c))return;let l=(C=($=c==null?void 0:c.constructor)==null?void 0:$.name)!=null?C:"unknown",E=typeof m=="symbol"?m.description:m;process.emitWarning(`'${E}' property was accessed on [${l}] after it was soft deleted`,{code:"JEST-01",detail:["Jest deletes objects that were set on the global scope between test files to reduce memory leaks.",'Currently it only "soft" deletes them and emits this warning if those objects were accessed after their deletion.','In future versions of Jest, this behavior will change to "on", which will likely fail tests.',"You can change the behavior in your test configuration now to reduce memory usage."].map(O=>` ${O}`).join(`
`),type:"DeprecationWarning"}),A.add(c)}function y(c,m){return m===void 0?[]:(m.length>0?m:Reflect.ownKeys(c)).filter(E=>o!==E)}}),"./src/globsToMatcher.ts":((s,r,u)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.default=v;function a(){let I=o(Ts());return a=function(){return I},I}var g=o(u("./src/replacePathSepForGlob.ts"));function o(I){return I&&I.__esModule?I:{default:I}}let b=new Map,L={dot:!0};function v(I){if(I.length===0)return()=>!1;let R=I.map(h=>{if(!b.has(h)){let A=(0,a().default)(h,L,!0),p={isMatch:A,negated:A.state.negated||!!A.state.negatedExtglob};b.set(h,p)}return b.get(h)});return h=>{let A=(0,g.default)(h),p,y=0;for(let c of R){let{isMatch:m,negated:l}=c;l&&y++;let E=m(A);!E&&l?p=!1:E&&!l&&(p=!0)}return y===R.length?p!==!1:!!p}}}),"./src/installCommonGlobals.ts":((s,r,u)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.default=R;function a(){let h=v(ut());return a=function(){return h},h}var g=L(u("./src/createProcessObject.ts")),o=L(u("./src/deepCyclicCopy.ts")),b=u("./src/garbage-collection-utils.ts");function L(h){return h&&h.__esModule?h:{default:h}}function v(h,A){if(typeof WeakMap=="function")var p=new WeakMap,y=new WeakMap;return(v=function(c,m){if(!m&&c&&c.__esModule)return c;var l,E,$={__proto__:null,default:c};if(c===null||typeof c!="object"&&typeof c!="function")return $;if(l=m?y:p){if(l.has(c))return l.get(c);l.set(c,$)}for(let C in c)C!=="default"&&{}.hasOwnProperty.call(c,C)&&((E=(l=Object.defineProperty)&&Object.getOwnPropertyDescriptor(c,C))&&(E.get||E.set)?l($,C,E):$[C]=c[C]);return $})(h,A)}let I=Object.keys(globalThis).filter(h=>h.startsWith("DTRACE"));function R(h,A,p){h.process=(0,g.default)();let y=h.Symbol;Object.defineProperties(h,{[y.for("jest-native-promise")]:{enumerable:!1,value:Promise,writable:!1},[y.for("jest-native-now")]:{enumerable:!1,value:h.Date.now.bind(h.Date),writable:!1},[y.for("jest-native-read-file")]:{enumerable:!1,value:a().readFileSync.bind(a()),writable:!1},[y.for("jest-native-write-file")]:{enumerable:!1,value:a().writeFileSync.bind(a()),writable:!1},[y.for("jest-native-exists-file")]:{enumerable:!1,value:a().existsSync.bind(a()),writable:!1},"jest-symbol-do-not-touch":{enumerable:!1,value:y,writable:!1}});for(let c of I)h[c]=function(...m){return globalThis[c].apply(this,m)};return p&&(0,b.initializeGarbageCollectionUtils)(h,p),Object.assign(h,(0,o.default)(A))}}),"./src/interopRequireDefault.ts":((s,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.default=u;function u(a){return a&&a.__esModule?a:{default:a}}}),"./src/invariant.ts":((s,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.default=u;function u(a,g=""){if(!a)throw new Error(g)}}),"./src/isInteractive.ts":((s,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;function u(){let b=Is();return u=function(){return b},b}function a(){return u().isCI||process.stdout==null?!1:process.stdout.isTTY?process.env.TERM!=="dumb":!1}let g=a();var o=r.default=g}),"./src/isNonNullable.ts":((s,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.default=u;function u(a){return a!=null}}),"./src/isPromise.ts":((s,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.default=u;function u(a){return a!=null&&(typeof a=="object"||typeof a=="function")&&typeof a.then=="function"}}),"./src/pluralize.ts":((s,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.default=u;function u(a,g,o="s"){return`${g} ${a}${g===1?"":o}`}}),"./src/preRunMessage.ts":((s,r,u)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.print=L,r.remove=v;function a(){let I=b(Ue());return a=function(){return I},I}var g=b(u("./src/clearLine.ts")),o=b(u("./src/isInteractive.ts"));function b(I){return I&&I.__esModule?I:{default:I}}function L(I){o.default&&I.write(a().default.bold.dim("Determining test suites to run..."))}function v(I){o.default&&(0,g.default)(I)}}),"./src/replacePathSepForGlob.ts":((s,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.default=u;function u(a){return a.replaceAll(/\\(?![$()+.?^{}])/g,"/")}}),"./src/requireOrImportModule.ts":((s,r,u)=>{Object.defineProperty(r,"__esMod
`):n+=s;return n}var zs=!1,Ys=/\r\n|[\n\r\u2028\u2029]/;function Ra(e,t,n){let i=Object.assign({column:0,line:-1},e.start),s=Object.assign({},i,e.end),{linesAbove:r=2,linesBelow:u=3}=n||{},a=i.line,g=i.column,o=s.line,b=s.column,L=Math.max(a-(r+1),0),v=Math.min(t.length,o+u);a===-1&&(L=0),o===-1&&(v=t.length);let I=o-a,R={};if(I)for(let h=0;h<=I;h++){let A=h+a;if(!g)R[A]=!0;else if(h===0){let p=t[A-1].length;R[A]=[g,p-g+1]}else if(h===I)R[A]=[0,b];else{let p=t[A-h].length;R[A]=[0,p]}}else g===b?g?R[a]=[g,0]:R[a]=!0:R[a]=[g,b-g];return{start:L,end:v,markerLines:R}}function ti(e,t,n={}){let i=n.forceColor||ma()&&n.highlightCode,s=Js(i),r=e.split(Ys),{start:u,end:a,markerLines:g}=Ra(t,r,n),o=t.start&&typeof t.start.column=="number",b=String(a).length,v=(i?ei(e):e).split(Ys,a).slice(u,a).map((I,R)=>{let h=u+1+R,p=` ${` ${h}`.slice(-b)} |`,y=g[h],c=!g[h+1];if(y){let m="";if(Array.isArray(y)){let l=I.slice(0,Math.max(y[0]-1,0)).replace(/[^\t]/g," "),E=y[1]||1;m=[`
`,s.gutter(p.replace(/\d/g," "))," ",l,s.marker("^").repeat(E)].join(""),c&&n.message&&(m+=" "+s.message(n.message))}return[s.marker(">"),s.gutter(p),I.length>0?` ${I}`:"",m].join("")}else return` ${s.gutter(p)}${I.length>0?` ${I}`:""}`}).join(`
`);return n.message&&!o&&(v=`${" ".repeat(b+1)}${n.message}
${v}`),i?s.reset(v):v}function Aa(e,t,n,i={}){if(!zs){zs=!0;let r="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(r,"DeprecationWarning");else{let u=new Error(r);u.name="DeprecationWarning",console.warn(new Error(r))}}return n=Math.max(n,0),ti(e,{start:{column:n,line:t}},i)}dt.codeFrameColumns=ti;dt.default=Aa;dt.highlight=ei});var Vt=oe(Ne=>{"use strict";Ne.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;Ne.find=(e,t)=>e.nodes.find(n=>n.type===t);Ne.exceedsLimit=(e,t,n=1,i)=>i===!1||!Ne.isInteger(e)||!Ne.isInteger(t)?!1:(Number(t)-Number(e))/Number(n)>=i;Ne.escapeNode=(e,t=0,n)=>{let i=e.nodes[t];i&&(n&&i.type===n||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};Ne.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;Ne.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;Ne.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;Ne.reduce=e=>e.reduce((t,n)=>(n.type==="text"&&t.push(n.value),n.type==="range"&&(n.type="text"),t),[]);Ne.flatten=(...e)=>{let t=[],n=i=>{for(let s=0;s<i.length;s++){let r=i[s];if(Array.isArray(r)){n(r);continue}r!==void 0&&t.push(r)}return t};return n(e),t}});var Xt=oe((Bl,si)=>{"use strict";var ri=Vt();si.exports=(e,t={})=>{let n=(i,s={})=>{let r=t.escapeInvalid&&ri.isInvalidBrace(s),u=i.invalid===!0&&t.escapeInvalid===!0,a="";if(i.value)return(r||u)&&ri.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let g of i.nodes)a+=n(g);return a};return n(e)}});var ui=oe((Fl,ii)=>{"use strict";ii.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var mi=oe((Ul,hi)=>{"use strict";var oi=ui(),We=(e,t,n)=>{if(oi(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(oi(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...n};typeof i.strictZeros=="boolean"&&(i.relaxZeros=i.strictZeros===!1);let s=String(i.relaxZeros),r=String(i.shorthand),u=String(i.capture),a=String(i.wrap),g=e+":"+t+"="+s+r+u+a;if(We.cache.hasOwnProperty(g))return We.cache[g].result;let o=Math.min(e,t),b=Math.max(e,t);if(Math.abs(o-b)===1){let h=e+"|"+t;return i.capture?`(${h})`:i.wrap===!1?h:`(?:${h})`}let L=di(e)||di(t),v={min:e,max:t,a:o,b},I=[],R=[];if(L&&(v.isPadded=L,v.maxLen=String(v.max).length),o<0){let h=b<0?Math.abs(b):1;R=ai(h,Math.abs(o),v,i),o=v.a=0}return b>=0&&(I=ai(o,b,v,i)),v.negatives=R,v.positives=I,v.result=Ca(R,I,i),i.capture===!0?v.result=`(${v.result})`:i.wrap!==!1&&I.length+R.length>1&&(v.result=`(?:${v.result})`),We.cache[g]=v,v.result};function Ca(e,t,n){let i=Pn(e,t,"-",!1,n)||[],s=Pn(t,e,"",!1,n)||[],r=Pn(e,t,"-?",!0,n)||[];return i.concat(r).concat(s).join("|")}function va(e,t){let n=1,i=1,s=li(e,n),r=new Set([t]);for(;e<=s&&s<=t;)r.add(s),n+=1,s=li(e,n);for(s=fi(t+1,i)-1;e<s&&s<=t;)r.add(s),i+=1,s=fi(t+1,i)-1;return r=[...r],r.sort(Ta),r}function Sa(e,t,n){if(e===t)return{pattern:e,count:[],digits:0};let i=Oa(e,t),s=i.length,r="",u=0;for(let a=0;a<s;a++){let[g,o]=i[a];g===o?r+=g:g!=="0"||o!=="9"?r+=wa(g,o,n):u++}return u&&(r+=n.shorthand===!0?"\\d":"[0-9]"),{pattern:r,count:[u],digits:s}}function ai(e,t,n,i){let s=va(e,t),r=[],u=e,a;for(let g=0;g<s.length;g++){let o=s[g],b=Sa(String(u),String(o),i),L="";if(!n.isPadded&&a&&a.pattern===b.pattern){a.count.length>1&&a.count.pop(),a.count.push(b.count[0]),a.string=a.pattern+pi(a.count),u=o+1;continue}n.isPadded&&(L=$a(o,n,i)),b.string=L+b.pattern+pi(b.count),r.push(b),u=o+1,a=b}return r}function Pn(e,t,n,i,s){let r=[];for(let u of e){let{string:a}=u;!i&&!ci(t,"string",a)&&r.push(n+a),i&&ci(t,"string",a)&&r.push(n+a)}return r}function Oa(e,t){let n=[];for(let i=0;
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Pi=oe((Vl,xi)=>{"use strict";var Ua=Xt(),{MAX_LENGTH:Ii,CHAR_BACKSLASH:kn,CHAR_BACKTICK:qa,CHAR_COMMA:Ga,CHAR_DOT:Wa,CHAR_LEFT_PARENTHESES:Ka,CHAR_RIGHT_PARENTHESES:Va,CHAR_LEFT_CURLY_BRACE:Xa,CHAR_RIGHT_CURLY_BRACE:za,CHAR_LEFT_SQUARE_BRACKET:Ni,CHAR_RIGHT_SQUARE_BRACKET:Mi,CHAR_DOUBLE_QUOTE:Ya,CHAR_SINGLE_QUOTE:Qa,CHAR_NO_BREAK_SPACE:Ja,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Za}=Li(),ec=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let n=t||{},i=typeof n.maxLength=="number"?Math.min(Ii,n.maxLength):Ii;if(e.length>i)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${i})`);let s={type:"root",input:e,nodes:[]},r=[s],u=s,a=s,g=0,o=e.length,b=0,L=0,v,I=()=>e[b++],R=h=>{if(h.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&h.type==="text"){a.value+=h.value;return}return u.nodes.push(h),h.parent=u,h.prev=a,a=h,h};for(R({type:"bos"});b<o;)if(u=r[r.length-1],v=I(),!(v===Za||v===Ja)){if(v===kn){R({type:"text",value:(t.keepEscaping?v:"")+I()});continue}if(v===Mi){R({type:"text",value:"\\"+v});continue}if(v===Ni){g++;let h;for(;b<o&&(h=I());){if(v+=h,h===Ni){g++;continue}if(h===kn){v+=I();continue}if(h===Mi&&(g--,g===0))break}R({type:"text",value:v});continue}if(v===Ka){u=R({type:"paren",nodes:[]}),r.push(u),R({type:"text",value:v});continue}if(v===Va){if(u.type!=="paren"){R({type:"text",value:v});continue}u=r.pop(),R({type:"text",value:v}),u=r[r.length-1];continue}if(v===Ya||v===Qa||v===qa){let h=v,A;for(t.keepQuotes!==!0&&(v="");b<o&&(A=I());){if(A===kn){v+=A+I();continue}if(A===h){t.keepQuotes===!0&&(v+=A);break}v+=A}R({type:"text",value:v});continue}if(v===Xa){L++;let A={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||u.dollar===!0,depth:L,commas:0,ranges:0,nodes:[]};u=R(A),r.push(u),R({type:"open",value:v});continue}if(v===za){if(u.type!=="brace"){R({type:"text",value:v});continue}let h="close";u=r.pop(),u.close=!0,R({type:h,value:v}),L--,u=r[r.length-1];continue}if(v===Ga&&L>0){if(u.ranges>0){u.ranges=0;let h=u.nodes.shift();u.nodes=[h,{type:"text",value:Ua(u)}]}R({type:"comma",value:v}),u.commas++;continue}if(v===Wa&&L>0&&u.commas===0){let h=u.nodes;if(L===0||h.length===0){R({type:"text",value:v});continue}if(a.type==="dot"){if(u.range=[],a.value+=v,a.type="range",u.nodes.length!==3&&u.nodes.length!==5){u.invalid=!0,u.ranges=0,a.type="text";continue}u.ranges++,u.args=[];continue}if(a.type==="range"){h.pop();let A=h[h.length-1];A.value+=a.value+v,a=A,u.ranges--;continue}R({type:"dot",value:v});continue}R({type:"text",value:v})}do if(u=r.pop(),u.type!=="root"){u.nodes.forEach(p=>{p.nodes||(p.type==="open"&&(p.isOpen=!0),p.type==="close"&&(p.isClose=!0),p.nodes||(p.type="text"),p.invalid=!0)});let h=r[r.length-1],A=h.nodes.indexOf(u);h.nodes.splice(A,1,...u.nodes)}while(r.length>0);return R({type:"eos"}),s};xi.exports=ec});var ji=oe((Xl,Hi)=>{"use strict";var Di=Xt(),tc=Si(),nc=wi(),rc=Pi(),$e=(e,t={})=>{let n=[];if(Array.isArray(e))for(let i of e){let s=$e.create(i,t);Array.isArray(s)?n.push(...s):n.push(s)}else n=[].concat($e.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(n=[...new Set(n)]),n};$e.parse=(e,t={})=>rc(e,t);$e.stringify=(e,t={})=>Di(typeof e=="string"?$e.parse(e,t):e,t);$e.compile=(e,t={})=>(typeof e=="string"&&(e=$e.parse(e,t)),tc(e,t));$e.expand=(e,t={})=>{typeof e=="string"&&(e=$e.parse(e,t));let n=nc(e,t);return t.noempty===!0&&(n=n.filter(Boolean)),t.nodupes===!0&&(n=[...new Set(n)]),n};$e.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?$e.compile(e,t):$e.expand(e,t);Hi.exports=$e});var mt=oe((zl,qi)=>{"use strict";var sc=require("path"),Pe="\\\\/",ki=`[^${Pe}]`,ic=0,He="\\.",uc="\\+",oc="\\?",Qt="\\/",ac="(?=.)",Bi="[^/]",Bn=`(?:${Qt}|$)`,Fi=`(?:^|${Qt})`,Fn=`${He}{1,2}${Bn}`,cc=`(?!${H
`)),!/^\s*at /.test(t[0])&&/^\s*at /.test(t[1])&&(t=t.slice(1));let i=!1,s=null,r=[];return t.forEach(u=>{if(u=u.replace(/\\/g,"/"),this._internals.some(g=>g.test(u)))return;let a=/^\s*at /.test(u);i?u=u.trimEnd().replace(/^(\s+)at /,"$1"):(u=u.trim(),a&&(u=u.slice(3))),u=u.replace(`${this._cwd}/`,""),u&&(a?(s&&(r.push(s),s=null),r.push(u)):(i=!0,s=u))}),r.map(u=>`${n}${u}
`).join("")}captureString(t,n=this.captureString){typeof t=="function"&&(n=t,t=1/0);let{stackTraceLimit:i}=Error;t&&(Error.stackTraceLimit=t);let s={};Error.captureStackTrace(s,n);let{stack:r}=s;return Error.stackTraceLimit=i,this.clean(r)}capture(t,n=this.capture){typeof t=="function"&&(n=t,t=1/0);let{prepareStackTrace:i,stackTraceLimit:s}=Error;Error.prepareStackTrace=(a,g)=>this._wrapCallSite?g.map(this._wrapCallSite):g,t&&(Error.stackTraceLimit=t);let r={};Error.captureStackTrace(r,n);let{stack:u}=r;return Object.assign(Error,{prepareStackTrace:i,stackTraceLimit:s}),u}at(t=this.at){let[n]=this.capture(1,t);if(!n)return{};let i={line:n.getLineNumber(),column:n.getColumnNumber()};bu(i,n.getFileName(),this._cwd),n.isConstructor()&&Object.defineProperty(i,"constructor",{value:!0,configurable:!0}),n.isEval()&&(i.evalOrigin=n.getEvalOrigin()),n.isNative()&&(i.native=!0);let s;try{s=n.getTypeName()}catch{}s&&s!=="Object"&&s!=="[object Object]"&&(i.type=s);let r=n.getFunctionName();r&&(i.function=r);let u=n.getMethodName();return u&&r!==u&&(i.method=u),i}parseLine(t){let n=t&&t.match(Vc);if(!n)return null;let i=n[1]==="new",s=n[2],r=n[3],u=n[4],a=Number(n[5]),g=Number(n[6]),o=n[7],b=n[8],L=n[9],v=n[10]==="native",I=n[11]===")",R,h={};if(b&&(h.line=Number(b)),L&&(h.column=Number(L)),I&&o){let A=0;for(let p=o.length-1;p>0;p--)if(o.charAt(p)===")")A++;else if(o.charAt(p)==="("&&o.charAt(p-1)===" "&&(A--,A===-1&&o.charAt(p-1)===" ")){let y=o.slice(0,p-1);o=o.slice(p+1),s+=` (${y}`;break}}if(s){let A=s.match(Xc);A&&(s=A[1],R=A[2])}return bu(h,o,this._cwd),i&&Object.defineProperty(h,"constructor",{value:!0,configurable:!0}),r&&(h.evalOrigin=r,h.evalLine=a,h.evalColumn=g,h.evalFile=u&&u.replace(/\\/g,"/")),v&&(h.native=!0),s&&(h.function=s),R&&s!==R&&(h.method=R),h}};function bu(e,t,n){t&&(t=t.replace(/\\/g,"/"),t.startsWith(`${n}/`)&&(t=t.slice(n.length+1)),e.file=t)}function Kc(e){if(e.length===0)return[];let t=e.map(n=>Gc(n));return new RegExp(`[/\\\\]node_modules[/\\\\](?:${t.join("|")})[/\\\\][^:]+:\\d+:\\d+`)}var Vc=new RegExp("^(?:\\s*at )?(?:(new) )?(?:(.*?) \\()?(?:eval at ([^ ]+) \\((.+?):(\\d+):(\\d+)\\), )?(?:(.+?):(\\d+):(\\d+)|(native))(\\)?)$"),Xc=/^(.*?) \[as (.*?)\]$/;Eu.exports=Jn});var Au=oe((uf,Ru)=>{(()=>{"use strict";var e={};(()=>{var t=e;Object.defineProperty(t,"__esModule",{value:!0}),t.formatResultsErrors=t.formatPath=t.formatExecError=void 0,t.formatStackTrace=M,t.getStackTraceLines=V,t.getTopFrame=J,t.separateMessageFromStack=t.indentAllLines=void 0;var n=I(require("path")),i=require("url"),s=require("util"),r=ni(),u=v(Ue()),a=I(ut()),g=v(pu()),o=v(hu()),b=v(_u()),L=rt();function v(D){return D&&D.__esModule?D:{default:D}}function I(D,U){if(typeof WeakMap=="function")var X=new WeakMap,te=new WeakMap;return(I=function(ne,re){if(!re&&ne&&ne.__esModule)return ne;var ce,le,fe={__proto__:null,default:ne};if(ne===null||typeof ne!="object"&&typeof ne!="function")return fe;if(ce=re?te:X){if(ce.has(ne))return ce.get(ne);ce.set(ne,fe)}for(let Ae in ne)Ae!=="default"&&{}.hasOwnProperty.call(ne,Ae)&&((le=(ce=Object.defineProperty)&&Object.getOwnPropertyDescriptor(ne,Ae))&&(le.get||le.set)?ce(fe,Ae,le):fe[Ae]=ne[Ae]);return fe})(D,U)}var R=globalThis["jest-symbol-do-not-touch"]||globalThis.Symbol,R=globalThis["jest-symbol-do-not-touch"]||globalThis.Symbol,h=globalThis[R.for("jest-native-read-file")]||a.readFileSync;let A=new b.default({cwd:"something which does not exist"}),p=[];try{p=b.default.nodeInternals()}catch{}let y=`${n.sep}node_modules${n.sep}`,c=`${n.sep}jest${n.sep}packages${n.sep}`,m=/^\s+at(?:(?:.jasmine-)|\s+jasmine\.buildExpectationResult)/,l=/^\s+at.*?jest(-.*?)?(\/|\\)(build|node_modules|packages)(\/|\\)/,E=/^\s+at <anonymous>.*$/,$=/^\s+at (new )?Promise \(<anonymous>\).*$/,C=/^\s+at Generator.next \(<anonymous>\).*$/,O=/^\s+at next \(native\).*$/,_=" ",N=" ",j=" ",x=" \u203A ",T=u.default.bold("\u25CF "),f=u.default.dim,d=/\s*at.*\(?(:\d*:\d*|native)\)?/,w="Test suite failed to run",P=/^(?!$)/gm,k=D=>D.replaceAll(P,N);t.indentAllLines=k;let W=D=>(D||"").trim(),K=D=>d.test(D)?W(D):D,se=(D,U
${te}
`,te},ue=/^\s*$/;function ee(D){return D.includes("ReferenceError: document is not defined")||D.includes("ReferenceError: window is not defined")||D.includes("ReferenceError: navigator is not defined")?q(D,"jsdom"):D.includes(".unref is not a function")?q(D,"node"):D}function q(D,U){return u.default.bold.red(`The error below may be caused by using the wrong test environment, see ${u.default.dim.underline("https://jestjs.io/docs/configuration#testenvironment-string")}.
Consider using the "${U}" test environment.
`)+D}let Q=(D,U,X,te,ne,re)=>{(!D||typeof D=="number")&&(D=new Error(`Expected an Error, but "${String(D)}" was thrown`),D.stack="");let ce,le,fe="",Ae=[];if(typeof D=="string"||!D)D||(D="EMPTY ERROR"),ce="",le=D;else{if(ce=D.message,le=typeof D.stack=="string"?D.stack:`thrown: ${(0,L.format)(D,{maxDepth:3})}`,"cause"in D){let Rt=`
Cause:
`;if(typeof D.cause=="string"||typeof D.cause=="number")fe+=`${Rt}${D.cause}`;else if(s.types.isNativeError(D.cause)||D.cause instanceof Error){let Tu=Q(D.cause,U,X,te,ne,!0);fe+=`${Rt}${Tu}`}}if("errors"in D&&Array.isArray(D.errors))for(let Rt of D.errors)Ae.push(Q(Rt,U,X,te,ne,!0))}fe!==""&&(fe=k(fe));let _e=B(le||"");le=_e.stack,_e.message.includes(W(ce))&&(ce=_e.message),ce=ee(ce),ce=k(ce),le=le&&!X.noStackTrace?`
${M(le,U,X,te)}`:"",(typeof le!="string"||ue.test(ce)&&ue.test(le))&&(ce=`thrown: ${(0,L.format)(D,{maxDepth:3})}`);let me;ne||re?me=` ${ce.trim()}`:me=`${w}
${ce}`;let _t=re?"":`${_+T}`,Ou=Ae.length>0?k(`
Errors contained in AggregateError:
${Ae.join(`
`)}`):"";return`${_t+me+le+fe+Ou}
`};t.formatExecError=Q;let ie=(D,U)=>{let X=0;return D.filter(te=>!te||E.test(te)||$.test(te)||C.test(te)||O.test(te)||p.some(ne=>ne.test(te))?!1:d.test(te)?m.test(te)?!1:++X===1?!0:!(U.noStackTrace||l.test(te)):!0)},z=(D,U,X=null)=>{let te=D.match(/(^\s*at .*?\(?)([^()]+)(:\d+:\d+\)?.*$)/);if(!te)return D;let ne=(0,o.default)(n.relative(U.rootDir,te[2]));return(U.testMatch&&U.testMatch.length>0&&(0,g.default)([ne],U.testMatch).length>0||ne===X)&&(ne=u.default.reset.cyan(ne)),f(te[1])+ne+f(te[3])};t.formatPath=z;function V(D,U){return U={noCodeFrame:!1,noStackTrace:!1,...U},ie(D.split(/\n/),U)}function J(D){for(let U of D){if(U.includes(y)||U.includes(c))continue;let X=A.parseLine(U.trim());if(X&&X.file)return X.file.startsWith("file://")&&(X.file=(0,o.default)((0,i.fileURLToPath)(X.file))),X}return null}function M(D,U,X,te){let ne=V(D,X),re="",ce=te?(0,o.default)(n.relative(U.rootDir,te)):null;if(!X.noStackTrace&&!X.noCodeFrame){let fe=J(ne);if(fe){let{column:Ae,file:_e,line:me}=fe;if(me&&_e&&n.isAbsolute(_e)){let _t;try{_t=h(_e,"utf8"),re=se(_t,me,Ae)}catch{}}}}let le=ne.length===0?"":`
${ne.map(fe=>j+z(K(fe),U,ce)).join(`
`)}`;return re+le}function F(D){return typeof D!="string"&&"cause"in D&&(typeof D.cause=="string"||s.types.isNativeError(D.cause)||D.cause instanceof Error)}function Y(D,U,X,te){let ne=typeof D=="string"?D:D.stack||"",{message:re,stack:ce}=B(ne);ce=X.noStackTrace?"":`${f(M(ce,U,X,te))}
`,re=ee(re),re=k(re);let le="";if(F(D)){let fe=Y(D.cause,U,X,te);le=`
${N}Cause:
${fe}`}return`${re}
${ce}${le}`}function S(D,U){return D?s.types.isNativeError(D)||D instanceof Error?D:typeof D=="object"&&"error"in D&&(s.types.isNativeError(D.error)||D.error instanceof Error)?D.error:U:U}let G=(D,U,X,te)=>{let ne=D.flatMap(re=>re.failureMessages.map((ce,le)=>({content:ce,failureDetails:re.failureDetails[le],result:re})));return ne.length===0?null:ne.map(({result:re,content:ce,failureDetails:le})=>{let fe=S(le,ce);return`${`${u.default.bold.red(_+T+re.ancestorTitles.join(x)+(re.ancestorTitles.length>0?x:"")+re.title)}
`}
${Y(fe,U,X,te)}`}).join(`
`)};t.formatResultsErrors=G;let Z=/^Error:?\s*$/,H=D=>D.split(`
`).filter(U=>!Z.test(U)).join(`
`).trimEnd(),B=D=>{if(!D)return{message:"",stack:""};let U=D.match(/^(?:Error: )?([\S\s]*?(?=\n\s*at\s.*:\d*:\d*)|\s*.*)([\S\s]*)$/);if(!U)throw new Error("If you hit this error, the regex above is buggy.");let X=H(U[1]),te=H(U[2]);return{message:X,stack:te}};t.separateMessageFromStack=B})(),Ru.exports=e})()});var vu=oe((of,Cu)=>{(()=>{"use strict";var e={"./src/asymmetricMatchers.ts":((s,r,u)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.closeTo=r.arrayOf=r.arrayNotContaining=r.arrayContaining=r.anything=r.any=r.AsymmetricMatcher=void 0,r.hasProperty=A,r.stringNotMatching=r.stringNotContaining=r.stringMatching=r.stringContaining=r.objectNotContaining=r.objectContaining=r.notCloseTo=r.notArrayOf=void 0;var a=Ve(),g=L(Be()),o=wn(),b=u("./src/jestMatchersObject.ts");function L(ee,q){if(typeof WeakMap=="function")var Q=new WeakMap,ie=new WeakMap;return(L=function(z,V){if(!V&&z&&z.__esModule)return z;var J,M,F={__proto__:null,default:z};if(z===null||typeof z!="object"&&typeof z!="function")return F;if(J=V?ie:Q){if(J.has(z))return J.get(z);J.set(z,F)}for(let Y in z)Y!=="default"&&{}.hasOwnProperty.call(z,Y)&&((M=(J=Object.defineProperty)&&Object.getOwnPropertyDescriptor(z,Y))&&(M.get||M.set)?J(F,Y,M):F[Y]=z[Y]);return F})(ee,q)}var v=globalThis["jest-symbol-do-not-touch"]||globalThis.Symbol;let I=Function.prototype.toString;function R(ee){if(ee.name)return ee.name;let q=I.call(ee).match(/^(?:async)?\s*function\s*\*?\s*([\w$]+)\s*\(/);return q?q[1]:"<anonymous>"}let h=Object.freeze({...g,iterableEquality:a.iterableEquality,subsetEquality:a.subsetEquality});function A(ee,q){return ee?Object.prototype.hasOwnProperty.call(ee,q)?!0:A(Object.getPrototypeOf(ee),q):!1}class p{constructor(q,Q=!1){Ce(this,"$$typeof",v.for("jest.asymmetricMatcher"));this.sample=q,this.inverse=Q}getMatcherContext(){return{customTesters:(0,b.getCustomEqualityTesters)(),dontThrow:()=>{},...(0,b.getState)(),equals:a.equals,isNot:this.inverse,utils:h}}}r.AsymmetricMatcher=p;class y extends p{constructor(q){if(q===void 0)throw new TypeError("any() expects to be passed a constructor function. Please pass one or use anything() to match any object.");super(q)}asymmetricMatch(q){return this.sample===String?typeof q=="string"||q instanceof String:this.sample===Number?typeof q=="number"||q instanceof Number:this.sample===Function?typeof q=="function"||q instanceof Function:this.sample===Boolean?typeof q=="boolean"||q instanceof Boolean:this.sample===BigInt?typeof q=="bigint"||q instanceof BigInt:this.sample===v?typeof q=="symbol"||q instanceof v:this.sample===Object?typeof q=="object":this.sample===Array?Array.isArray(q):q 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.sample===Array?"array":R(this.sample)}toAsymmetricMatcher(){return`Any<${R(this.sample)}>`}}class c extends p{asymmetricMatch(q){return q!=null}toString(){return"Anything"}toAsymmetricMatcher(){return"Anything"}}class m extends p{constructor(q,Q=!1){super(q,Q)}asymmetricMatch(q){if(!Array.isArray(this.sample))throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);let Q=this.getMatcherContext(),ie=this.sample.length===0||Array.isArray(q)&&this.sample.every(z=>q.some(V=>(0,a.equals)(z,V,Q.customTesters)));return this.inverse?!ie:ie}toString(){return`Array${this.inverse?"Not":""}Containing`}getExpectedType(){return"array"}}class l extends p{asymmetricMatch(q){let Q=this.getMatcherContext(),ie=Array.isArray(q)&&q.every(z=>(0,a.equals)(this.sample,z,Q.customTesters));return this.inverse?!ie:ie}toString(){return`${this.inverse?"Not":""}ArrayOf`}getExpectedType(){return"array"}}class E extends p{constructor(q,Q=!1){super(q,Q)}asymmetricMatch(q){if(typeof this.sample!="object")throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);if(typeof q!="object"||Array.isArray(q))return!1;let Q=!0,ie=this.getMatcherContext(),z=(0,a.getOb
Expected ${y} to be called but received ${(0,a.RECEIVED_COLOR)((0,a.pluralize)("assertion call",I||0))}.`,v.push({actual:I.toString(),error:h,expected:R.toString()})}if(A&&I===0){let y=(0,a.EXPECTED_COLOR)("at least one assertion"),c=(0,a.RECEIVED_COLOR)("received none");p.message=`${(0,a.matcherHint)(".hasAssertions","","",{isDirectExpectCall:!0})}
Expected ${y} to be called but ${c}.`,v.push({actual:"none",error:p,expected:"at least one"})}return v};var L=r.default=b}),"./src/jestMatchersObject.ts":((s,r,u)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.setState=r.setMatchers=r.getState=r.getMatchers=r.getCustomEqualityTesters=r.addCustomEqualityTesters=r.INTERNAL_MATCHER_FLAG=void 0;var a=je(),g=u("./src/asymmetricMatchers.ts"),o=globalThis["jest-symbol-do-not-touch"]||globalThis.Symbol;let b=o.for("$$jest-matchers-object"),L=r.INTERNAL_MATCHER_FLAG=o.for("$$jest-internal-matcher");Object.prototype.hasOwnProperty.call(globalThis,b)||Object.defineProperty(globalThis,b,{value:{customEqualityTesters:[],matchers:Object.create(null),state:{assertionCalls:0,expectedAssertionsNumber:null,isExpectingAssertions:!1,numPassingAsserts:0,suppressedErrors:[]}}});let v=()=>globalThis[b].state;r.getState=v;let I=y=>{Object.assign(globalThis[b].state,y)};r.setState=I;let R=()=>globalThis[b].matchers;r.getMatchers=R;let h=(y,c,m)=>{for(let l of Object.keys(y)){let E=y[l];if(typeof E!="function")throw new TypeError(`expect.extend: \`${l}\` is not a valid matcher. Must be a function, is "${(0,a.getType)(E)}"`);if(Object.defineProperty(E,L,{value:c}),!c){class $ extends g.AsymmetricMatcher{constructor(O=!1,..._){super(_,O)}asymmetricMatch(O){let{pass:_}=E.call(this.getMatcherContext(),O,...this.sample);return this.inverse?!_:_}toString(){return`${this.inverse?"not.":""}${l}`}getExpectedType(){return"any"}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map(String).join(", ")}>`}}Object.defineProperty(m,l,{configurable:!0,enumerable:!0,value:(...C)=>new $(!1,...C),writable:!0}),Object.defineProperty(m.not,l,{configurable:!0,enumerable:!0,value:(...C)=>new $(!0,...C),writable:!0})}}Object.assign(globalThis[b].matchers,y)};r.setMatchers=h;let A=()=>globalThis[b].customEqualityTesters;r.getCustomEqualityTesters=A;let p=y=>{if(!Array.isArray(y))throw new TypeError(`expect.customEqualityTesters: Must be set to an array of Testers. Was given "${(0,a.getType)(y)}"`);globalThis[b].customEqualityTesters.push(...y)};r.addCustomEqualityTesters=p}),"./src/matchers.ts":((s,r,u)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var a=Ve(),g=je(),o=Be(),b=u("./src/print.ts");let L="Expected",v="Received",I="Expected value",R="Received value",h=c=>c!==!1,A=[a.iterableEquality,a.typeEquality,a.sparseArrayEquality,a.arrayBufferEquality],p={toBe(c,m){let l="toBe",E={comment:"Object.is equality",isNot:this.isNot,promise:this.promise},$=Object.is(c,m);return{actual:c,expected:m,message:$?()=>(0,o.matcherHint)(l,void 0,void 0,E)+`
Expected: not ${(0,o.printExpected)(m)}`:()=>{let O=(0,g.getType)(m),_=null;return O!=="map"&&O!=="set"&&((0,a.equals)(c,m,[...this.customTesters,...A],!0)?_="toStrictEqual":(0,a.equals)(c,m,[...this.customTesters,a.iterableEquality])&&(_="toEqual")),(0,o.matcherHint)(l,void 0,void 0,E)+`
`+(_===null?"":`${(0,o.DIM_COLOR)(`If it should pass with deep equality, replace "${l}" with "${_}"`)}
`)+(0,o.printDiffOrStringify)(m,c,L,v,h(this.expand))},name:l,pass:$}},toBeCloseTo(c,m,l=2){let E="toBeCloseTo",$=arguments.length===3?"precision":void 0,C=this.isNot,O={isNot:C,promise:this.promise,secondArgument:$,secondArgumentColor:T=>T};if(typeof m!="number")throw new TypeError((0,o.matcherErrorMessage)((0,o.matcherHint)(E,void 0,void 0,O),`${(0,o.EXPECTED_COLOR)("expected")} value must be a number`,(0,o.printWithType)("Expected",m,o.printExpected)));if(typeof c!="number")throw new TypeError((0,o.matcherErrorMessage)((0,o.matcherHint)(E,void 0,void 0,O),`${(0,o.RECEIVED_COLOR)("received")} value must be a number`,(0,o.printWithType)("Received",c,o.printReceived)));let _=!1,N=0,j=0;return c===Number.POSITIVE_INFINITY&&m===Number.POSITIVE_INFINITY||c===Number.NEGATIVE_INFINITY&&m===Number.NEGATIVE_INFINITY?_=!0:(N=Math.pow(10,-l)/2,j=Math.abs(m-c),_=j<N),{message:_?()=>(0,o.matcherHint)(E,void 0,void 0,O)+`
Expected: not ${(0,o.printExpected)(m)}
`+(j===0?"":`Received: ${(0,o.printReceived)(c)}
${(0,b.printCloseTo)(j,N,l,C)}`):()=>(0,o.matcherHint)(E,void 0,void 0,O)+`
Expected: ${(0,o.printExpected)(m)}
Received: ${(0,o.printReceived)(c)}
`+(0,b.printCloseTo)(j,N,l,C),pass:_}},toBeDefined(c,m){let l="toBeDefined",E={isNot:this.isNot,promise:this.promise};return(0,o.ensureNoExpected)(m,l,E),{message:()=>(0,o.matcherHint)(l,void 0,"",E)+`
Received: ${(0,o.printReceived)(c)}`,pass:c!==void 0}},toBeFalsy(c,m){let l="toBeFalsy",E={isNot:this.isNot,promise:this.promise};return(0,o.ensureNoExpected)(m,l,E),{message:()=>(0,o.matcherHint)(l,void 0,"",E)+`
Received: ${(0,o.printReceived)(c)}`,pass:!c}},toBeGreaterThan(c,m){let l="toBeGreaterThan",E=this.isNot,$={isNot:E,promise:this.promise};(0,o.ensureNumbers)(c,m,l,$);let C=c>m;return{message:()=>(0,o.matcherHint)(l,void 0,void 0,$)+`
Expected:${E?" not":""} > ${(0,o.printExpected)(m)}
Received:${E?" ":""} ${(0,o.printReceived)(c)}`,pass:C}},toBeGreaterThanOrEqual(c,m){let l="toBeGreaterThanOrEqual",E=this.isNot,$={isNot:E,promise:this.promise};(0,o.ensureNumbers)(c,m,l,$);let C=c>=m;return{message:()=>(0,o.matcherHint)(l,void 0,void 0,$)+`
Expected:${E?" not":""} >= ${(0,o.printExpected)(m)}
Received:${E?" ":""} ${(0,o.printReceived)(c)}`,pass:C}},toBeInstanceOf(c,m){let l="toBeInstanceOf",E={isNot:this.isNot,promise:this.promise};if(typeof m!="function")throw new TypeError((0,o.matcherErrorMessage)((0,o.matcherHint)(l,void 0,void 0,E),`${(0,o.EXPECTED_COLOR)("expected")} value must be a function`,(0,o.printWithType)("Expected",m,o.printExpected)));let $=c instanceof m;return{message:$?()=>(0,o.matcherHint)(l,void 0,void 0,E)+`
`+(0,b.printExpectedConstructorNameNot)("Expected constructor",m)+(typeof c.constructor=="function"&&c.constructor!==m?(0,b.printReceivedConstructorNameNot)("Received constructor",c.constructor,m):""):()=>(0,o.matcherHint)(l,void 0,void 0,E)+`
`+(0,b.printExpectedConstructorName)("Expected constructor",m)+((0,g.isPrimitive)(c)||Object.getPrototypeOf(c)===null?`
Received value has no prototype
Received value: ${(0,o.printReceived)(c)}`:typeof c.constructor=="function"?(0,b.printReceivedConstructorName)("Received constructor",c.constructor):`
Received value: ${(0,o.printReceived)(c)}`),pass:$}},toBeLessThan(c,m){let l="toBeLessThan",E=this.isNot,$={isNot:E,promise:this.promise};(0,o.ensureNumbers)(c,m,l,$);let C=c<m;return{message:()=>(0,o.matcherHint)(l,void 0,void 0,$)+`
Expected:${E?" not":""} < ${(0,o.printExpected)(m)}
Received:${E?" ":""} ${(0,o.printReceived)(c)}`,pass:C}},toBeLessThanOrEqual(c,m){let l="toBeLessThanOrEqual",E=this.isNot,$={isNot:E,promise:this.promise};(0,o.ensureNumbers)(c,m,l,$);let C=c<=m;return{message:()=>(0,o.matcherHint)(l,void 0,void 0,$)+`
Expected:${E?" not":""} <= ${(0,o.printExpected)(m)}
Received:${E?" ":""} ${(0,o.printReceived)(c)}`,pass:C}},toBeNaN(c,m){let l="toBeNaN",E={isNot:this.isNot,promise:this.promise};(0,o.ensureNoExpected)(m,l,E);let $=Number.isNaN(c);return{message:()=>(0,o.matcherHint)(l,void 0,"",E)+`
Received: ${(0,o.printReceived)(c)}`,pass:$}},toBeNull(c,m){let l="toBeNull",E={isNot:this.isNot,promise:this.promise};return(0,o.ensureNoExpected)(m,l,E),{message:()=>(0,o.matcherHint)(l,void 0,"",E)+`
Received: ${(0,o.printReceived)(c)}`,pass:c===null}},toBeTruthy(c,m){let l="toBeTruthy",E={isNot:this.isNot,promise:this.promise};return(0,o.ensureNoExpected)(m,l,E),{message:()=>(0,o.matcherHint)(l,void 0,"",E)+`
Received: ${(0,o.printReceived)(c)}`,pass:!!c}},toBeUndefined(c,m){let l="toBeUndefined",E={isNot:this.isNot,promise:this.promise};return(0,o.ensureNoExpected)(m,l,E),{message:()=>(0,o.matcherHint)(l,void 0,"",E)+`
Received: ${(0,o.printReceived)(c)}`,pass:c===void 0}},toContain(c,m){let l="toContain",E=this.isNot,$={comment:"indexOf",isNot:E,promise:this.promise};if(c==null)throw new Error((0,o.matcherErrorMessage)((0,o.matcherHint)(l,void 0,void 0,$),`${(0,o.RECEIVED_COLOR)("received")} value must not be null nor undefined`,(0,o.printWithType)("Received",c,o.printReceived)));if(typeof c=="string"){let j=`${(0,o.EXPECTED_COLOR)("expected")} value must be a string if ${(0,o.RECEIVED_COLOR)("received")} value is a string`;if(typeof m!="string")throw new TypeError((0,o.matcherErrorMessage)((0,o.matcherHint)(l,c,String(m),$),j,(0,o.printWithType)("Expected",m,o.printExpected)+`
`+(0,o.printWithType)("Received",c,o.printReceived)));let x=c.indexOf(String(m));return{message:()=>{let d=`Expected ${typeof m=="string"?"substring":"value"}`,w="Received string",P=(0,o.getLabelPrinter)(d,w);return(0,o.matcherHint)(l,void 0,void 0,$)+`
${P(d)}${E?"not ":""}${(0,o.printExpected)(m)}
${P(w)}${E?" ":""}${E?(0,b.printReceivedStringContainExpectedSubstring)(c,x,String(m).length):(0,o.printReceived)(c)}`},pass:x!==-1}}let C=[...c],O=C.indexOf(m);return{message:()=>{let j="Expected value",x=`Received ${(0,g.getType)(c)}`,T=(0,o.getLabelPrinter)(j,x);return(0,o.matcherHint)(l,void 0,void 0,$)+`
${T(j)}${E?"not ":""}${(0,o.printExpected)(m)}
${T(x)}${E?" ":""}${E&&Array.isArray(c)?(0,b.printReceivedArrayContainExpectedItem)(c,O):(0,o.printReceived)(c)}`+(!E&&C.some(f=>(0,a.equals)(f,m,[...this.customTesters,a.iterableEquality]))?`
${o.SUGGEST_TO_CONTAIN_EQUAL}`:"")},pass:O!==-1}},toContainEqual(c,m){let l="toContainEqual",E=this.isNot,$={comment:"deep equality",isNot:E,promise:this.promise};if(c==null)throw new Error((0,o.matcherErrorMessage)((0,o.matcherHint)(l,void 0,void 0,$),`${(0,o.RECEIVED_COLOR)("received")} value must not be null nor undefined`,(0,o.printWithType)("Received",c,o.printReceived)));let C=[...c].findIndex(N=>(0,a.equals)(N,m,[...this.customTesters,a.iterableEquality]));return{message:()=>{let N="Expected value",j=`Received ${(0,g.getType)(c)}`,x=(0,o.getLabelPrinter)(N,j);return(0,o.matcherHint)(l,void 0,void 0,$)+`
${x(N)}${E?"not ":""}${(0,o.printExpected)(m)}
${x(j)}${E?" ":""}${E&&Array.isArray(c)?(0,b.printReceivedArrayContainExpectedItem)(c,C):(0,o.printReceived)(c)}`},pass:C!==-1}},toEqual(c,m){let l="toEqual",E={comment:"deep equality",isNot:this.isNot,promise:this.promise},$=(0,a.equals)(c,m,[...this.customTesters,a.iterableEquality]);return{actual:c,expected:m,message:$?()=>(0,o.matcherHint)(l,void 0,void 0,E)+`
Expected: not ${(0,o.printExpected)(m)}
`+((0,o.stringify)(m)===(0,o.stringify)(c)?"":`Received: ${(0,o.printReceived)(c)}`):()=>(0,o.matcherHint)(l,void 0,void 0,E)+`
`+(0,o.printDiffOrStringify)(m,c,L,v,h(this.expand)),name:l,pass:$}},toHaveLength(c,m){let l="toHaveLength",E=this.isNot,$={isNot:E,promise:this.promise};if(typeof(c==null?void 0:c.length)!="number")throw new TypeError((0,o.matcherErrorMessage)((0,o.matcherHint)(l,void 0,void 0,$),`${(0,o.RECEIVED_COLOR)("received")} value must have a length property whose value must be a number`,(0,o.printWithType)("Received",c,o.printReceived)));(0,o.ensureExpectedIsNonNegativeInteger)(m,l,$);let C=c.length===m;return{message:()=>{let _="Expected length",N="Received length",j=`Received ${(0,g.getType)(c)}`,x=(0,o.getLabelPrinter)(_,N,j);return(0,o.matcherHint)(l,void 0,void 0,$)+`
${x(_)}${E?"not ":""}${(0,o.printExpected)(m)}
`+(E?"":`${x(N)}${(0,o.printReceived)(c.length)}
`)+`${x(j)}${E?" ":""}${(0,o.printReceived)(c)}`},pass:C}},toHaveProperty(c,m,l){let E="toHaveProperty",$="path",C=arguments.length===3,O={isNot:this.isNot,promise:this.promise,secondArgument:C?"value":""};if(c==null)throw new Error((0,o.matcherErrorMessage)((0,o.matcherHint)(E,void 0,$,O),`${(0,o.RECEIVED_COLOR)("received")} value must not be null nor undefined`,(0,o.printWithType)("Received",c,o.printReceived)));let _=(0,g.getType)(m);if(_!=="string"&&_!=="array")throw new Error((0,o.matcherErrorMessage)((0,o.matcherHint)(E,void 0,$,O),`${(0,o.EXPECTED_COLOR)("expected")} path must be a string or array`,(0,o.printWithType)("Expected",m,o.printExpected)));let N=typeof m=="string"?(0,a.pathAsArray)(m).length:m.length;if(_==="array"&&N===0)throw new Error((0,o.matcherErrorMessage)((0,o.matcherHint)(E,void 0,$,O),`${(0,o.EXPECTED_COLOR)("expected")} path must not be an empty array`,(0,o.printWithType)("Expected",m,o.printExpected)));let j=(0,a.getPath)(c,m),{lastTraversedObject:x,endPropIsDefined:T,hasEndProp:f,value:d}=j,w=j.traversedPath,P=w.length===N,k=P?j.value:x,W=C&&T?(0,a.equals)(d,l,[...this.customTesters,a.iterableEquality]):!!f;return{message:W?()=>(0,o.matcherHint)(E,void 0,$,O)+`
`+(C?`Expected path: ${(0,o.printExpected)(m)}
Expected value: not ${(0,o.printExpected)(l)}${(0,o.stringify)(l)===(0,o.stringify)(k)?"":`
Received value: ${(0,o.printReceived)(k)}`}`:`Expected path: not ${(0,o.printExpected)(m)}
Received value: ${(0,o.printReceived)(k)}`):()=>(0,o.matcherHint)(E,void 0,$,O)+`
Expected path: ${(0,o.printExpected)(m)}
`+(P?`
${(0,o.printDiffOrStringify)(l,k,I,R,h(this.expand))}`:`Received path: ${(0,o.printReceived)(_==="array"||w.length===0?w:w.join("."))}
${C?`Expected value: ${(0,o.printExpected)(l)}
`:""}Received value: ${(0,o.printReceived)(k)}`),pass:W}},toMatch(c,m){let l="toMatch",E={isNot:this.isNot,promise:this.promise};if(typeof c!="string")throw new TypeError((0,o.matcherErrorMessage)((0,o.matcherHint)(l,void 0,void 0,E),`${(0,o.RECEIVED_COLOR)("received")} value must be a string`,(0,o.printWithType)("Received",c,o.printReceived)));if(typeof m!="string"&&!(m&&typeof m.test=="function"))throw new Error((0,o.matcherErrorMessage)((0,o.matcherHint)(l,void 0,void 0,E),`${(0,o.EXPECTED_COLOR)("expected")} value must be a string or regular expression`,(0,o.printWithType)("Expected",m,o.printExpected)));let $=typeof m=="string"?c.includes(m):new RegExp(m).test(c);return{message:$?()=>typeof m=="string"?(0,o.matcherHint)(l,void 0,void 0,E)+`
Expected substring: not ${(0,o.printExpected)(m)}
Received string: ${(0,b.printReceivedStringContainExpectedSubstring)(c,c.indexOf(m),m.length)}`:(0,o.matcherHint)(l,void 0,void 0,E)+`
Expected pattern: not ${(0,o.printExpected)(m)}
Received string: ${(0,b.printReceivedStringContainExpectedResult)(c,typeof m.exec=="function"?m.exec(c):null)}`:()=>{let O=`Expected ${typeof m=="string"?"substring":"pattern"}`,_="Received string",N=(0,o.getLabelPrinter)(O,_);return(0,o.matcherHint)(l,void 0,void 0,E)+`
${N(O)}${(0,o.printExpected)(m)}
${N(_)}${(0,o.printReceived)(c)}`},pass:$}},toMatchObject(c,m){let l="toMatchObject",E={isNot:this.isNot,promise:this.promise};if(typeof c!="object"||c===null)throw new Error((0,o.matcherErrorMessage)((0,o.matcherHint)(l,void 0,void 0,E),`${(0,o.RECEIVED_COLOR)("received")} value must be a non-null object`,(0,o.printWithType)("Received",c,o.printReceived)));if(typeof m!="object"||m===null)throw new Error((0,o.matcherErrorMessage)((0,o.matcherHint)(l,void 0,void 0,E),`${(0,o.EXPECTED_COLOR)("expected")} value must be a non-null object`,(0,o.printWithType)("Expected",m,o.printExpected)));let $=(0,a.equals)(c,m,[...this.customTesters,a.iterableEquality,a.subsetEquality]);return{message:$?()=>(0,o.matcherHint)(l,void 0,void 0,E)+`
Expected: not ${(0,o.printExpected)(m)}`+((0,o.stringify)(m)===(0,o.stringify)(c)?"":`
Received: ${(0,o.printReceived)(c)}`):()=>(0,o.matcherHint)(l,void 0,void 0,E)+`
`+(0,o.printDiffOrStringify)(m,(0,a.getObjectSubset)(c,m,this.customTesters),L,v,h(this.expand)),pass:$}},toStrictEqual(c,m){let l="toStrictEqual",E={comment:"deep equality",isNot:this.isNot,promise:this.promise},$=(0,a.equals)(c,m,[...this.customTesters,...A],!0);return{actual:c,expected:m,message:$?()=>(0,o.matcherHint)(l,void 0,void 0,E)+`
Expected: not ${(0,o.printExpected)(m)}
`+((0,o.stringify)(m)===(0,o.stringify)(c)?"":`Received: ${(0,o.printReceived)(c)}`):()=>(0,o.matcherHint)(l,void 0,void 0,E)+`
`+(0,o.printDiffOrStringify)(m,c,L,v,h(this.expand)),name:l,pass:$}}};var y=r.default=p}),"./src/print.ts":((s,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.printReceivedStringContainExpectedSubstring=r.printReceivedStringContainExpectedResult=r.printReceivedConstructorNameNot=r.printReceivedConstructorName=r.printReceivedArrayContainExpectedItem=r.printExpectedConstructorNameNot=r.printExpectedConstructorName=r.printCloseTo=void 0;var u=Be();let a=p=>p.replaceAll(/"|\\/g,"\\$&"),g=(p,y,c)=>(0,u.RECEIVED_COLOR)(`"${a(p.slice(0,y))}${(0,u.INVERTED_COLOR)(a(p.slice(y,y+c)))}${a(p.slice(y+c))}"`);r.printReceivedStringContainExpectedSubstring=g;let o=(p,y)=>y===null?(0,u.printReceived)(p):g(p,y.index,y[0].length);r.printReceivedStringContainExpectedResult=o;let b=(p,y)=>(0,u.RECEIVED_COLOR)(`[${p.map((c,m)=>{let l=(0,u.stringify)(c);return m===y?(0,u.INVERTED_COLOR)(l):l}).join(", ")}]`);r.printReceivedArrayContainExpectedItem=b;let L=(p,y,c,m)=>{let l=(0,u.stringify)(p),E=l.includes("e")?y.toExponential(0):0<=c&&c<20?y.toFixed(c+1):(0,u.stringify)(y);return`Expected precision: ${m?" ":""} ${(0,u.stringify)(c)}
Expected difference: ${m?"not ":""}< ${(0,u.EXPECTED_COLOR)(E)}
Received difference: ${m?" ":""} ${(0,u.RECEIVED_COLOR)(l)}`};r.printCloseTo=L;let v=(p,y)=>`${A(p,y,!1,!0)}
`;r.printExpectedConstructorName=v;let I=(p,y)=>`${A(p,y,!0,!0)}
`;r.printExpectedConstructorNameNot=I;let R=(p,y)=>`${A(p,y,!1,!1)}
`;r.printReceivedConstructorName=R;let h=(p,y,c)=>typeof c.name=="string"&&c.name.length>0&&typeof y.name=="string"&&y.name.length>0?`${A(p,y,!0,!1)} ${Object.getPrototypeOf(y)===c?"extends":"extends \u2026 extends"} ${(0,u.EXPECTED_COLOR)(c.name)}
`:`${A(p,y,!1,!1)}
`;r.printReceivedConstructorNameNot=h;let A=(p,y,c,m)=>typeof y.name=="string"?y.name.length===0?`${p} name is an empty string`:`${p}: ${c?m?"not ":" ":""}${m?(0,u.EXPECTED_COLOR)(y.name):(0,u.RECEIVED_COLOR)(y.name)}`:`${p} name is not a string`}),"./src/spyMatchers.ts":((s,r,u)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var a=Ve(),g=je(),o=Be(),b=u("./src/jestMatchersObject.ts");let L=M=>M!==!1,v=3,I="called with 0 arguments",R=M=>M.length===0?I:M.map(F=>(0,o.printExpected)(F)).join(", "),h=(M,F)=>M.length===0?I:M.map((Y,S)=>Array.isArray(F)&&S<F.length&&p(F[S],Y)?A(Y):(0,o.printReceived)(Y)).join(", "),A=M=>(0,o.DIM_COLOR)((0,o.stringify)(M)),p=(M,F)=>(0,a.equals)(M,F,[...(0,b.getCustomEqualityTesters)(),a.iterableEquality]),y=(M,F)=>F.length===M.length&&p(M,F),c=(M,F)=>F.type==="return"&&p(M,F.value),m=M=>M.reduce((F,Y)=>Y.type==="return"?F+1:F,0),l=(M,F)=>`
Number of returns: ${(0,o.printReceived)(M)}${F===M?"":`
Number of calls: ${(0,o.printReceived)(F)}`}`,E=M=>{let F=M.indexOf(":"),Y=M.slice(F);return(S,G)=>(G?`->${" ".repeat(Math.max(0,F-2-S.length))}`:" ".repeat(Math.max(F-S.length)))+S+Y},$=(M,F,Y,S)=>{if(F.length===0)return"";let G="Received: ";if(Y)return`${G+h(F[0],M)}
`;let Z=E(G);return`Received
${F.reduce((H,[B,D])=>`${H+Z(String(B+1),B===S)+h(D,M)}
`,"")}`},C=(M,F,Y,S,G)=>{let Z=`Expected: ${R(M)}
`;if(F.length===0)return Z;let H="Received: ";if(S&&(G===0||G===void 0)){let D=F[0][1];if(N(M,D)){let U=[(0,o.EXPECTED_COLOR)("- Expected"),(0,o.RECEIVED_COLOR)("+ Received"),""],X=Math.max(M.length,D.length);for(let te=0;te<X;te+=1){if(te<M.length&&te<D.length){if(p(M[te],D[te])){U.push(` ${A(D[te])},`);continue}if(j(M[te],D[te])){let ne=(0,o.diff)(M[te],D[te],{expand:Y});if(typeof ne=="string"&&ne.includes("- Expected")&&ne.includes("+ Received")){U.push(`${ne.split(`
`).slice(3).join(`
`)},`);continue}}}te<M.length&&U.push(`${(0,o.EXPECTED_COLOR)(`- ${(0,o.stringify)(M[te])}`)},`),te<D.length&&U.push(`${(0,o.RECEIVED_COLOR)(`+ ${(0,o.stringify)(D[te])}`)},`)}return`${U.join(`
`)}
`}return`${Z+H+h(D,M)}
`}let B=E(H);return Z+`Received
`+F.reduce((D,[U,X])=>{let te=B(String(U+1),U===G);return`${D+((U===G||G===void 0)&&N(M,X)?te.replace(": ",`
`)+_(M,X,Y):te+h(X,M))}
`},"")},O="Received".replaceAll(/\w/g," "),_=(M,F,Y)=>F.map((S,G)=>{if(G<M.length){if(p(M[G],S))return`${O} ${A(S)},`;if(j(M[G],S)){let Z=(0,o.diff)(M[G],S,{expand:Y});if(typeof Z=="string"&&Z.includes("- Expected")&&Z.includes("+ Received"))return`${Z.split(`
`).slice(3).map(H=>O+H).join(`
`)},`}}return`${O+(G<M.length?` ${(0,o.printReceived)(S)}`:(0,o.RECEIVED_COLOR)(`+ ${(0,o.stringify)(S)}`))},`}).join(`
`),N=(M,F)=>M.some((Y,S)=>S<F.length&&j(Y,F[S])),j=(M,F)=>{let Y=(0,g.getType)(M),S=(0,g.getType)(F);return!(Y!==S||(0,g.isPrimitive)(M)||Y==="date"||Y==="function"||Y==="regexp"||M instanceof Error&&F instanceof Error||Y==="object"&&typeof M.asymmetricMatch=="function"||S==="object"&&typeof F.asymmetricMatch=="function")},x=(M,F)=>M.type==="throw"?"function call threw an error":M.type==="incomplete"?"function call has not returned yet":p(F,M.value)?A(M.value):(0,o.printReceived)(M.value),T=(M,F,Y,S,G)=>{if(Y.length===0)return"";if(S&&(G===0||G===void 0))return`${M+x(Y[0][1],F)}
`;let Z=E(M);return M.replace(":","").trim()+`
`+Y.reduce((H,[B,D])=>`${H+Z(String(B+1),B===G)+x(D,F)}
`,"")},f=()=>function(M,F){let S={isNot:this.isNot,promise:this.promise};(0,o.ensureNoExpected)(F,"toHaveBeenCalled",S),z(M,"toHaveBeenCalled","",S);let G=ie(M),Z=G?"spy":M.getMockName(),H=G?M.calls.count():M.mock.calls.length,B=G?M.calls.all().map(X=>X.args):M.mock.calls,D=H>0;return{message:D?()=>(0,o.matcherHint)("toHaveBeenCalled",Z,"",S)+`
Expected number of calls: ${(0,o.printExpected)(0)}
Received number of calls: ${(0,o.printReceived)(H)}
`+B.reduce((X,te,ne)=>(X.length<v&&X.push(`${ne+1}: ${h(te)}`),X),[]).join(`
`):()=>(0,o.matcherHint)("toHaveBeenCalled",Z,"",S)+`
Expected number of calls: >= ${(0,o.printExpected)(1)}
Received number of calls: ${(0,o.printReceived)(H)}`,pass:D}},d=()=>function(M,F){let S={isNot:this.isNot,promise:this.promise};(0,o.ensureNoExpected)(F,"toHaveReturned",S),V(M,"toHaveReturned","",S);let G=M.getMockName(),Z=M.mock.results.reduce((D,U)=>U.type==="return"?D+1:D,0),H=Z>0;return{message:H?()=>(0,o.matcherHint)("toHaveReturned",G,"",S)+`
Expected number of returns: ${(0,o.printExpected)(0)}
Received number of returns: ${(0,o.printReceived)(Z)}
`+M.mock.results.reduce((D,U,X)=>(U.type==="return"&&D.length<v&&D.push(`${X+1}: ${(0,o.printReceived)(U.value)}`),D),[]).join(`
`)+(M.mock.calls.length===Z?"":`
Received number of calls: ${(0,o.printReceived)(M.mock.calls.length)}`):()=>(0,o.matcherHint)("toHaveReturned",G,"",S)+`
Expected number of returns: >= ${(0,o.printExpected)(1)}
Received number of returns: ${(0,o.printReceived)(Z)}`+(M.mock.calls.length===Z?"":`
Received number of calls: ${(0,o.printReceived)(M.mock.calls.length)}`),pass:H}},w=()=>function(M,F){let Y="expected",S={isNot:this.isNot,promise:this.promise};(0,o.ensureExpectedIsNonNegativeInteger)(F,"toHaveBeenCalledTimes",S),z(M,"toHaveBeenCalledTimes",Y,S);let G=ie(M),Z=G?"spy":M.getMockName(),H=G?M.calls.count():M.mock.calls.length,B=H===F;return{message:B?()=>(0,o.matcherHint)("toHaveBeenCalledTimes",Z,Y,S)+`
Expected number of calls: not ${(0,o.printExpected)(F)}`:()=>(0,o.matcherHint)("toHaveBeenCalledTimes",Z,Y,S)+`
Expected number of calls: ${(0,o.printExpected)(F)}
Received number of calls: ${(0,o.printReceived)(H)}`,pass:B}},P=()=>function(M,F){let Y="expected",S={isNot:this.isNot,promise:this.promise};(0,o.ensureExpectedIsNonNegativeInteger)(F,"toHaveReturnedTimes",S),V(M,"toHaveReturnedTimes",Y,S);let G=M.getMockName(),Z=M.mock.results.reduce((D,U)=>U.type==="return"?D+1:D,0),H=Z===F;return{message:H?()=>(0,o.matcherHint)("toHaveReturnedTimes",G,Y,S)+`
Expected number of returns: not ${(0,o.printExpected)(F)}`+(M.mock.calls.length===Z?"":`
Received number of calls: ${(0,o.printReceived)(M.mock.calls.length)}`):()=>(0,o.matcherHint)("toHaveReturnedTimes",G,Y,S)+`
Expected number of returns: ${(0,o.printExpected)(F)}
Received number of returns: ${(0,o.printReceived)(Z)}`+(M.mock.calls.length===Z?"":`
Received number of calls: ${(0,o.printReceived)(M.mock.calls.length)}`),pass:H}},k=()=>function(M,...F){let Y="...expected",S={isNot:this.isNot,promise:this.promise};z(M,"toHaveBeenCalledWith",Y,S);let G=ie(M),Z=G?"spy":M.getMockName(),H=G?M.calls.all().map(U=>U.args):M.mock.calls,B=H.some(U=>y(F,U));return{message:B?()=>{let U=[],X=0;for(;X<H.length&&U.length<v;)y(F,H[X])&&U.push([X,H[X]]),X+=1;return(0,o.matcherHint)("toHaveBeenCalledWith",Z,Y,S)+`
Expected: not ${R(F)}
`+(H.length===1&&(0,o.stringify)(H[0])===(0,o.stringify)(F)?"":$(F,U,H.length===1))+`
Number of calls: ${(0,o.printReceived)(H.length)}`}:()=>{let U=[],X=0;for(;X<H.length&&U.length<v;)U.push([X,H[X]]),X+=1;return(0,o.matcherHint)("toHaveBeenCalledWith",Z,Y,S)+`
`+C(F,U,L(this.expand),H.length===1)+`
Number of calls: ${(0,o.printReceived)(H.length)}`},pass:B}},W=()=>function(M,F){let Y="expected",S={isNot:this.isNot,promise:this.promise};V(M,"toHaveReturnedWith",Y,S);let G=M.getMockName(),{calls:Z,results:H}=M.mock,B=H.some(U=>c(F,U));return{message:B?()=>{let U=[],X=0;for(;X<H.length&&U.length<v;)c(F,H[X])&&U.push([X,H[X]]),X+=1;return(0,o.matcherHint)("toHaveReturnedWith",G,Y,S)+`
Expected: not ${(0,o.printExpected)(F)}
`+(H.length===1&&H[0].type==="return"&&(0,o.stringify)(H[0].value)===(0,o.stringify)(F)?"":T("Received: ",F,U,H.length===1))+l(m(H),Z.length)}:()=>{let U=[],X=0;for(;X<H.length&&U.length<v;)U.push([X,H[X]]),X+=1;return(0,o.matcherHint)("toHaveReturnedWith",G,Y,S)+`
Expected: ${(0,o.printExpected)(F)}
`+T("Received: ",F,U,H.length===1)+l(m(H),Z.length)},pass:B}},K=()=>function(M,...F){let Y="...expected",S={isNot:this.isNot,promise:this.promise};z(M,"toHaveBeenLastCalledWith",Y,S);let G=ie(M),Z=G?"spy":M.getMockName(),H=G?M.calls.all().map(X=>X.args):M.mock.calls,B=H.length-1,D=B>=0&&y(F,H[B]);return{message:D?()=>{let X=[];return B>0&&X.push([B-1,H[B-1]]),X.push([B,H[B]]),(0,o.matcherHint)("toHaveBeenLastCalledWith",Z,Y,S)+`
Expected: not ${R(F)}
`+(H.length===1&&(0,o.stringify)(H[0])===(0,o.stringify)(F)?"":$(F,X,H.length===1,B))+`
Number of calls: ${(0,o.printReceived)(H.length)}`}:()=>{let X=[];if(B>=0){if(B>0){let te=B-1;for(;te>=0&&!y(F,H[te]);)te-=1;te<0&&(te=B-1),X.push([te,H[te]])}X.push([B,H[B]])}return(0,o.matcherHint)("toHaveBeenLastCalledWith",Z,Y,S)+`
`+C(F,X,L(this.expand),H.length===1,B)+`
Number of calls: ${(0,o.printReceived)(H.length)}`},pass:D}},se=()=>function(M,F){let Y="expected",S={isNot:this.isNot,promise:this.promise};V(M,"toHaveLastReturnedWith",Y,S);let G=M.getMockName(),{calls:Z,results:H}=M.mock,B=H.length-1,D=B>=0&&c(F,H[B]);return{message:D?()=>{let X=[];return B>0&&X.push([B-1,H[B-1]]),X.push([B,H[B]]),(0,o.matcherHint)("toHaveLastReturnedWith",G,Y,S)+`
Expected: not ${(0,o.printExpected)(F)}
`+(H.length===1&&H[0].type==="return"&&(0,o.stringify)(H[0].value)===(0,o.stringify)(F)?"":T("Received: ",F,X,H.length===1,B))+l(m(H),Z.length)}:()=>{let X=[];if(B>=0){if(B>0){let te=B-1;for(;te>=0&&!c(F,H[te]);)te-=1;te<0&&(te=B-1),X.push([te,H[te]])}X.push([B,H[B]])}return(0,o.matcherHint)("toHaveLastReturnedWith",G,Y,S)+`
Expected: ${(0,o.printExpected)(F)}
`+T("Received: ",F,X,H.length===1,B)+l(m(H),Z.length)},pass:D}},ue=()=>function(M,F,...Y){let G={expectedColor:ne=>ne,isNot:this.isNot,promise:this.promise,secondArgument:"...expected"};if(z(M,"toHaveBeenNthCalledWith","n",G),!Number.isSafeInteger(F)||F<1)throw new Error((0,o.matcherErrorMessage)((0,o.matcherHint)("toHaveBeenNthCalledWith",void 0,"n",G),"n must be a positive integer",(0,o.printWithType)("n",F,o.stringify)));let Z=ie(M),H=Z?"spy":M.getMockName(),B=Z?M.calls.all().map(ne=>ne.args):M.mock.calls,D=B.length,U=F-1,X=U<D&&y(Y,B[U]);return{message:X?()=>{let ne=[];return U-1>=0&&ne.push([U-1,B[U-1]]),ne.push([U,B[U]]),U+1<D&&ne.push([U+1,B[U+1]]),(0,o.matcherHint)("toHaveBeenNthCalledWith",H,"n",G)+`
n: ${F}
Expected: not ${R(Y)}
`+(B.length===1&&(0,o.stringify)(B[0])===(0,o.stringify)(Y)?"":$(Y,ne,B.length===1,U))+`
Number of calls: ${(0,o.printReceived)(B.length)}`}:()=>{let ne=[];if(U<D){if(U-1>=0){let re=U-1;for(;re>=0&&!y(Y,B[re]);)re-=1;re<0&&(re=U-1),ne.push([re,B[re]])}if(ne.push([U,B[U]]),U+1<D){let re=U+1;for(;re<D&&!y(Y,B[re]);)re+=1;re>=D&&(re=U+1),ne.push([re,B[re]])}}else if(D>0){let re=D-1;for(;re>=0&&!y(Y,B[re]);)re-=1;re<0&&(re=D-1),ne.push([re,B[re]])}return(0,o.matcherHint)("toHaveBeenNthCalledWith",H,"n",G)+`
n: ${F}
`+C(Y,ne,L(this.expand),B.length===1,U)+`
Number of calls: ${(0,o.printReceived)(B.length)}`},pass:X}},ee=()=>function(M,F,Y){let G={expectedColor:ne=>ne,isNot:this.isNot,promise:this.promise,secondArgument:"expected"};if(V(M,"toHaveNthReturnedWith","n",G),!Number.isSafeInteger(F)||F<1)throw new Error((0,o.matcherErrorMessage)((0,o.matcherHint)("toHaveNthReturnedWith",void 0,"n",G),"n must be a positive integer",(0,o.printWithType)("n",F,o.stringify)));let Z=M.getMockName(),{calls:H,results:B}=M.mock,D=B.length,U=F-1,X=U<D&&c(Y,B[U]);return{message:X?()=>{let ne=[];return U-1>=0&&ne.push([U-1,B[U-1]]),ne.push([U,B[U]]),U+1<D&&ne.push([U+1,B[U+1]]),(0,o.matcherHint)("toHaveNthReturnedWith",Z,"n",G)+`
n: ${F}
Expected: not ${(0,o.printExpected)(Y)}
`+(B.length===1&&B[0].type==="return"&&(0,o.stringify)(B[0].value)===(0,o.stringify)(Y)?"":T("Received: ",Y,ne,B.length===1,U))+l(m(B),H.length)}:()=>{let ne=[];if(U<D){if(U-1>=0){let re=U-1;for(;re>=0&&!c(Y,B[re]);)re-=1;re<0&&(re=U-1),ne.push([re,B[re]])}if(ne.push([U,B[U]]),U+1<D){let re=U+1;for(;re<D&&!c(Y,B[re]);)re+=1;re>=D&&(re=U+1),ne.push([re,B[re]])}}else if(D>0){let re=D-1;for(;re>=0&&!c(Y,B[re]);)re-=1;re<0&&(re=D-1),ne.push([re,B[re]])}return(0,o.matcherHint)("toHaveNthReturnedWith",Z,"n",G)+`
n: ${F}
Expected: ${(0,o.printExpected)(Y)}
`+T("Received: ",Y,ne,B.length===1,U)+l(m(B),H.length)},pass:X}},q={toHaveBeenCalled:f(),toHaveBeenCalledTimes:w(),toHaveBeenCalledWith:k(),toHaveBeenLastCalledWith:K(),toHaveBeenNthCalledWith:ue(),toHaveLastReturnedWith:se(),toHaveNthReturnedWith:ee(),toHaveReturned:d(),toHaveReturnedTimes:P(),toHaveReturnedWith:W()},Q=M=>M!=null&&M._isMockFunction===!0,ie=M=>M!=null&&M.calls!=null&&typeof M.calls.all=="function"&&typeof M.calls.count=="function",z=(M,F,Y,S)=>{if(!Q(M)&&!ie(M))throw new Error((0,o.matcherErrorMessage)((0,o.matcherHint)(F,void 0,Y,S),`${(0,o.RECEIVED_COLOR)("received")} value must be a mock or spy function`,(0,o.printWithType)("Received",M,o.printReceived)))},V=(M,F,Y,S)=>{if(!Q(M))throw new Error((0,o.matcherErrorMessage)((0,o.matcherHint)(F,void 0,Y,S),`${(0,o.RECEIVED_COLOR)("received")} value must be a mock function`,(0,o.printWithType)("Received",M,o.printReceived)))};var J=r.default=q}),"./src/toThrowMatchers.ts":((s,r,u)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.createMatcher=void 0;var a=Ve(),g=Be(),o=Au(),b=u("./src/print.ts");let L="Received function did not throw",v=x=>{let T=x!=null&&typeof x.message=="string";return T&&typeof x.name=="string"&&typeof x.stack=="string"?{hasMessage:T,isError:!0,message:x.message,value:x}:{hasMessage:T,isError:!1,message:T?x.message:String(x),value:x}},I=(x,T)=>function(f,d){let w={isNot:this.isNot,promise:this.promise},P=null;if(T&&(0,a.isError)(f))P=v(f);else if(typeof f=="function")try{f()}catch(k){P=v(k)}else if(!T){let k=d===void 0?"":"expected";throw new Error((0,g.matcherErrorMessage)((0,g.matcherHint)(x,void 0,k,w),`${(0,g.RECEIVED_COLOR)("received")} value must be a function`,(0,g.printWithType)("Received",f,g.printReceived)))}if(d===void 0)return m(x,w,P);if(typeof d=="function")return y(x,w,P,d);if(typeof d=="string")return c(x,w,P,d);if(d!==null&&typeof d.test=="function")return h(x,w,P,d);if(d!==null&&typeof d.asymmetricMatch=="function")return A(x,w,P,d);if(d!==null&&typeof d=="object")return p(x,w,P,d);throw new Error((0,g.matcherErrorMessage)((0,g.matcherHint)(x,void 0,void 0,w),`${(0,g.EXPECTED_COLOR)("expected")} value must be a string or regular expression or class or error`,(0,g.printWithType)("Expected",d,g.printExpected)))};r.createMatcher=I;let R={toThrow:I("toThrow")},h=(x,T,f,d)=>{let w=f!==null&&d.test(f.message);return{message:w?()=>(0,g.matcherHint)(x,void 0,void 0,T)+`
`+l("Expected pattern: not ",d)+(f!==null&&f.hasMessage?E("Received message: ",f,"message",d)+$(f):E("Received value: ",f,"value")):()=>(0,g.matcherHint)(x,void 0,void 0,T)+`
`+l("Expected pattern: ",d)+(f===null?`
${L}`:f.hasMessage?E("Received message: ",f,"message")+$(f):E("Received value: ",f,"value")),pass:w}},A=(x,T,f,d)=>{let w=f!==null&&d.asymmetricMatch(f.value);return{message:w?()=>(0,g.matcherHint)(x,void 0,void 0,T)+`
`+l("Expected asymmetric matcher: not ",d)+`
`+(f!==null&&f.hasMessage?E("Received name: ",f,"name")+E("Received message: ",f,"message")+$(f):E("Thrown value: ",f,"value")):()=>(0,g.matcherHint)(x,void 0,void 0,T)+`
`+l("Expected asymmetric matcher: ",d)+`
`+(f===null?L:f.hasMessage?E("Received name: ",f,"name")+E("Received message: ",f,"message")+$(f):E("Thrown value: ",f,"value")),pass:w}},p=(x,T,f,d)=>{let w=C(d),P=f===null?null:C(f.value),k=(f==null?void 0:f.isError)&&d instanceof Error,W=d.constructor.name!==Error.name,K=f!==null&&f.message===d.message&&P===w&&(!k||!W||f.value instanceof d.constructor);return{message:K?()=>(0,g.matcherHint)(x,void 0,void 0,T)+`
`+l(`Expected ${N(d)}: not `,w)+(f!==null&&f.hasMessage?$(f):E("Received value: ",f,"value")):()=>(0,g.matcherHint)(x,void 0,void 0,T)+`
`+(f===null?l(`Expected ${N(d)}: `,w)+`
`+L:f.hasMessage?(0,g.printDiffOrStringify)(w,P,`Expected ${N(d)}`,`Received ${N(f.value)}`,!0)+`
`+$(f):l(`Expected ${N(d)}: `,w)+E("Received value: ",f,"value")),pass:K}},y=(x,T,f,d)=>{let w=f!==null&&f.value instanceof d;return{message:w?()=>(0,g.matcherHint)(x,void 0,void 0,T)+`
`+(0,b.printExpectedConstructorNameNot)("Expected constructor",d)+(f!==null&&f.value!=null&&typeof f.value.constructor=="function"&&f.value.constructor!==d?(0,b.printReceivedConstructorNameNot)("Received constructor",f.value.constructor,d):"")+`
`+(f!==null&&f.hasMessage?E("Received message: ",f,"message")+$(f):E("Received value: ",f,"value")):()=>(0,g.matcherHint)(x,void 0,void 0,T)+`
`+(0,b.printExpectedConstructorName)("Expected constructor",d)+(f===null?`
${L}`:`${f.value!=null&&typeof f.value.constructor=="function"?(0,b.printReceivedConstructorName)("Received constructor",f.value.constructor):""}
${f.hasMessage?E("Received message: ",f,"message")+$(f):E("Received value: ",f,"value")}`),pass:w}},c=(x,T,f,d)=>{let w=f!==null&&f.message.includes(d);return{message:w?()=>(0,g.matcherHint)(x,void 0,void 0,T)+`
`+l("Expected substring: not ",d)+(f!==null&&f.hasMessage?E("Received message: ",f,"message",d)+$(f):E("Received value: ",f,"value")):()=>(0,g.matcherHint)(x,void 0,void 0,T)+`
`+l("Expected substring: ",d)+(f===null?`
${L}`:f.hasMessage?E("Received message: ",f,"message")+$(f):E("Received value: ",f,"value")),pass:w}},m=(x,T,f)=>{let d=f!==null;return{message:d?()=>(0,g.matcherHint)(x,void 0,"",T)+`
`+(f!==null&&f.hasMessage?E("Error name: ",f,"name")+E("Error message: ",f,"message")+$(f):E("Thrown value: ",f,"value")):()=>(0,g.matcherHint)(x,void 0,"",T)+`
`+L,pass:d}},l=(x,T)=>`${x+(0,g.printExpected)(T)}
`,E=(x,T,f,d)=>{if(T===null)return"";if(f==="message"){let w=T.message;if(typeof d=="string"){let P=w.indexOf(d);if(P!==-1)return`${x+(0,b.printReceivedStringContainExpectedSubstring)(w,P,d.length)}
`}else if(d instanceof RegExp)return`${x+(0,b.printReceivedStringContainExpectedResult)(w,typeof d.exec=="function"?d.exec(w):null)}
`;return`${x+(0,g.printReceived)(w)}
`}return f==="name"?T.isError?`${x+(0,g.printReceived)(T.value.name)}
`:"":f==="value"?T.isError?"":`${x+(0,g.printReceived)(T.value)}
`:""},$=x=>{if(x===null||!x.isError)return"";{let T={rootDir:process.cwd(),testMatch:[]},f={noStackTrace:!1};return x.value instanceof AggregateError?(0,o.formatExecError)(x.value,T,f):(0,o.formatStackTrace)((0,o.separateMessageFromStack)(x.value.stack).stack,T,f)}};function C(x){if(x.cause){let T=new WeakSet;return JSON.stringify(O(x),(f,d)=>{if(_(d)){if(T.has(d))return;T.add(d)}return typeof d=="bigint"||d===void 0?String(d):d})}return x.message}function O(x){if(!_(x))return x;let T={};for(let f of Object.getOwnPropertyNames(x).sort())if(!["stack","fileName","lineNumber"].includes(f)){if(f==="cause"){T[f]=O(x.cause);continue}T[f]=x[f]}return T}function _(x){return x!=null&&typeof x=="object"}function N(x){return x.cause===void 0?"message":"message and cause"}var j=r.default=R})},t={};function n(s){var r=t[s];if(r!==void 0)return r.exports;var u=t[s]={exports:{}};return e[s](u,u.exports,n),u.exports}var i={};(()=>{var s=i;Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"AsymmetricMatcher",{enumerable:!0,get:function(){return g.AsymmetricMatcher}}),s.expect=s.default=s.JestAssertionError=void 0;var r=Ve(),u=h(Be()),a=wn(),g=n("./src/asymmetricMatchers.ts"),o=R(n("./src/extractExpectedAssertionsErrors.ts")),b=n("./src/jestMatchersObject.ts"),L=R(n("./src/matchers.ts")),v=R(n("./src/spyMatchers.ts")),I=h(n("./src/toThrowMatchers.ts"));function R(j){return j&&j.__esModule?j:{default:j}}function h(j,x){if(typeof WeakMap=="function")var T=new WeakMap,f=new WeakMap;return(h=function(d,w){if(!w&&d&&d.__esModule)return d;var P,k,W={__proto__:null,default:d};if(d===null||typeof d!="object"&&typeof d!="function")return W;if(P=w?f:T){if(P.has(d))return P.get(d);P.set(d,W)}for(let K in d)K!=="default"&&{}.hasOwnProperty.call(d,K)&&((k=(P=Object.defineProperty)&&Object.getOwnPropertyDescriptor(d,K))&&(k.get||k.set)?P(W,K,k):W[K]=d[K]);return W})(j,x)}class A extends Error{constructor(){super(...arguments);Ce(this,"matcherResult")}}s.JestAssertionError=A;let p=function(j){return function(x,T){return j.apply(this,[x,T,!0])}},y=(j,x)=>j==="toThrow"?(0,I.createMatcher)(j,!0):j==="toThrowErrorMatchingSnapshot"||j==="toThrowErrorMatchingInlineSnapshot"?p(x):null,c=(j,...x)=>{if(x.length>0)throw new Error("Expect takes at most one argument.");let T=(0,b.getMatchers)(),f={not:{},rejects:{not:{}},resolves:{not:{}}},d=new A;for(let w of Object.keys(T)){let P=T[w],k=y(w,P)||P;f[w]=$(P,!1,"",j),f.not[w]=$(P,!0,"",j),f.resolves[w]=l(w,k,!1,j,d),f.resolves.not[w]=l(w,k,!0,j,d),f.rejects[w]=E(w,k,!1,j,d),f.rejects.not[w]=E(w,k,!0,j,d)}return f};s.expect=c;let m=j=>j&&j()||u.RECEIVED_COLOR("No message was specified for this matcher."),l=(j,x,T,f,d)=>(...w)=>{let P={isNot:T,promise:"resolves"},k=typeof f=="function"?f():f;if(!(0,a.isPromise)(k))throw new A(u.matcherErrorMessage(u.matcherHint(j,void 0,"",P),`${u.RECEIVED_COLOR("received")} value must be a promise or a function returning a promise`,u.printWithType("Received",f,u.printReceived)));let W=new A;return k.then(K=>$(x,T,"resolves",K,W).apply(null,w),K=>{throw d.message=`${u.matcherHint(j,void 0,"",P)}
Received promise rejected instead of resolved
Rejected to value: ${u.printReceived(K)}`,d})},E=(j,x,T,f,d)=>(...w)=>{let P={isNot:T,promise:"rejects"},k=typeof f=="function"?f():f;if(!(0,a.isPromise)(k))throw new A(u.matcherErrorMessage(u.matcherHint(j,void 0,"",P),`${u.RECEIVED_COLOR("received")} value must be a promise or a function returning a promise`,u.printWithType("Received",f,u.printReceived)));let W=new A;return k.then(K=>{throw d.message=`${u.matcherHint(j,void 0,"",P)}
Received promise resolved instead of rejected
Resolved to value: ${u.printReceived(K)}`,d},K=>$(x,T,"rejects",K,W).apply(null,w))},$=(j,x,T,f,d)=>function w(...P){let k=!0,W={...u,iterableEquality:r.iterableEquality,subsetEquality:r.subsetEquality},K={customTesters:(0,b.getCustomEqualityTesters)(),dontThrow:()=>k=!1,equals:r.equals,utils:W},se={...(0,b.getState)(),...K,error:d,isNot:x,promise:T},ue=(Q,ie)=>{if(C(Q),(0,b.getState)().assertionCalls++,Q.pass&&x||!Q.pass&&!x){let z=m(Q.message),V;if(d?(V=d,V.message=z):ie?(V=ie,V.message=z):(V=new A(z),Error.captureStackTrace&&Error.captureStackTrace(V,w)),V.matcherResult={...Q,message:z},k)throw V;(0,b.getState)().suppressedErrors.push(V)}else(0,b.getState)().numPassingAsserts++},ee=Q=>{throw j[b.INTERNAL_MATCHER_FLAG]===!0&&!(Q instanceof A)&&Q.name!=="PrettyFormatPluginError"&&Error.captureStackTrace&&Error.captureStackTrace(Q,w),Q},q;try{if(q=j[b.INTERNAL_MATCHER_FLAG]===!0?j.call(se,f,...P):(function(){return j.call(se,f,...P)})(),(0,a.isPromise)(q)){let Q=new A;return Error.captureStackTrace&&Error.captureStackTrace(Q,w),q.then(ie=>ue(ie,Q)).catch(ee)}else return ue(q)}catch(Q){return ee(Q)}};c.extend=j=>(0,b.setMatchers)(j,!1,c),c.addEqualityTesters=j=>(0,b.addCustomEqualityTesters)(j),c.anything=g.anything,c.any=g.any,c.not={arrayContaining:g.arrayNotContaining,arrayOf:g.notArrayOf,closeTo:g.notCloseTo,objectContaining:g.objectNotContaining,stringContaining:g.stringNotContaining,stringMatching:g.stringNotMatching},c.arrayContaining=g.arrayContaining,c.arrayOf=g.arrayOf,c.closeTo=g.closeTo,c.objectContaining=g.objectContaining,c.stringContaining=g.stringContaining,c.stringMatching=g.stringMatching;let C=j=>{if(typeof j!="object"||typeof j.pass!="boolean"||j.message&&typeof j.message!="string"&&typeof j.message!="function")throw new Error(`Unexpected return from a matcher function.
Matcher functions should return an object in the following format:
{message?: string | function, pass: boolean}
'${u.stringify(j)}' was returned`)};function O(j){let x=new a.ErrorWithStack(void 0,O);(0,b.setState)({expectedAssertionsNumber:j,expectedAssertionsNumberError:x})}function _(...j){let x=new a.ErrorWithStack(void 0,_);u.ensureNoExpected(j[0],".hasAssertions"),(0,b.setState)({isExpectingAssertions:!0,isExpectingAssertionsError:x})}(0,b.setMatchers)(L.default,!0,c),(0,b.setMatchers)(v.default,!0,c),(0,b.setMatchers)(I.default,!0,c),c.assertions=O,c.hasAssertions=_,c.getState=b.getState,c.setState=b.setState,c.extractExpectedAssertionsErrors=o.default;var N=s.default=c})(),Cu.exports=i})()});var Yc={};xu(Yc,{expect:()=>zc});module.exports=Du(Yc);var Et=Pu(vu(),1),cf=Et.default.AsymmetricMatcher,lf=Et.default.JestAssertionError,ff=Et.default.expect,Su=Et.default.default;var zc=Su;0&&(module.exports={expect});
/*! Bundled license information:
@jest/get-type/build/index.js:
@jest/expect-utils/build/index.js:
pretty-format/build/index.js:
@jest/diff-sequences/build/index.js:
jest-diff/build/index.js:
jest-matcher-utils/build/index.js:
jest-util/build/index.js:
jest-message-util/build/index.js:
expect/build/index.js:
(*!
* /**
* * Copyright (c) Meta Platforms, Inc. and affiliates.
* *
* * This source code is licensed under the MIT license found in the
* * LICENSE file in the root directory of this source tree.
* * /
*)
react-is/cjs/react-is.production.min.js:
(**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
react-is/cjs/react-is.development.js:
(**
* @license React
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
is-number/index.js:
(*!
* is-number <https://github.com/jonschlinkert/is-number>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Released under the MIT License.
*)
to-regex-range/index.js:
(*!
* to-regex-range <https://github.com/micromatch/to-regex-range>
*
* Copyright (c) 2015-present, Jon Schlinkert.
* Released under the MIT License.
*)
fill-range/index.js:
(*!
* fill-range <https://github.com/jonschlinkert/fill-range>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Licensed under the MIT License.
*)
*/