@cronocode/react-box 2.0.3 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/box.mjs +3 -3
- package/components/checkbox.d.ts +1 -3
- package/components/label.cjs +1 -0
- package/components/label.d.ts +6 -0
- package/components/label.mjs +7 -0
- package/components/label.test.cjs +1 -0
- package/components/label.test.mjs +2 -0
- package/components/label2.cjs +311 -0
- package/components/label2.mjs +17395 -0
- package/components/radioButton.d.ts +1 -3
- package/components/textarea.d.ts +1 -2
- package/components/textbox.d.ts +1 -2
- package/components/tooltip.cjs +1 -1
- package/core/boxStyles.d.ts +27 -1
- package/core/theme.d.ts +1 -0
- package/core/types.d.ts +15 -0
- package/core.cjs +20 -15
- package/core.mjs +1257 -391
- package/magic-string.es.cjs +10 -0
- package/magic-string.es.mjs +738 -0
- package/package.json +2 -1
- package/utils.cjs +308 -1
- package/utils.mjs +3914 -49
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
"use strict";var mp=Object.defineProperty;var hp=(e,t,r)=>t in e?mp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var te=(e,t,r)=>(hp(e,typeof t!="symbol"?t+"":t,r),r);const Pn=require("react"),Xt=require("react-dom"),Qu=require("react/jsx-runtime"),yp=require("../box.cjs"),z=require("../utils.cjs"),bp=require("../core.cjs");function vp(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const qr=vp(Pn);var gp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function wp(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),r}function ec(e,t){function r(n){const a=function(...i){return t.apply(n,i)};Object.assign(a,t),a.withContext=()=>a.bind(n),a.setContext=(i,s)=>{n[i]=s},a.mergeContext=i=>{Object.assign(n,i)};for(const i of e)Object.defineProperty(a,i,{get(){return r({...n,[i]:!0})}});return a}const o=r({});return o.fn=t,o}function Ep(e){const t=[e.name];let r=e;for(;r!=null&&r.suite||r!=null&&r.file;)r=r.suite||r.file,r!=null&&r.name&&t.unshift(r.name);return t}const _p=/^[A-Za-z]:\//;function Cp(e=""){return e&&e.replace(/\\/g,"/").replace(_p,t=>t.toUpperCase())}const Tp=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function Rp(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const Pp=function(...e){e=e.map(o=>Cp(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const n=o>=0?e[o]:Rp();!n||n.length===0||(t=`${n}/${t}`,r=vl(n))}return t=xp(t,!r),r&&!vl(t)?`/${t}`:t.length>0?t:"."};function xp(e,t){let r="",o=0,n=-1,a=0,i=null;for(let s=0;s<=e.length;++s){if(s<e.length)i=e[s];else{if(i==="/")break;i="/"}if(i==="/"){if(!(n===s-1||a===1))if(a===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const l=r.lastIndexOf("/");l===-1?(r="",o=0):(r=r.slice(0,l),o=r.length-1-r.lastIndexOf("/")),n=s,a=0;continue}else if(r.length>0){r="",o=0,n=s,a=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(n+1,s)}`:r=e.slice(n+1,s),o=s-n-1;n=s,a=0}else i==="."&&a!==-1?++a:a=-1}return r}const vl=function(e){return Tp.test(e)},Op=new WeakMap,tc=new WeakMap,rc=new WeakMap;function Sp(e,t){Op.set(e,t)}function Mp(e,t){tc.set(e,t)}function Ap(e){return tc.get(e)}function $p(e,t){rc.set(e,t)}function qp(e){return rc.get(e)}class Ip extends Error{constructor(r,o){super(r);te(this,"code","VITEST_PENDING");te(this,"taskId");this.message=r,this.taskId=o.id}}const Mr={tasks:[],currentSuite:null};function Np(e){var t;(t=Mr.currentSuite)==null||t.tasks.push(e)}async function kp(e,t){const r=Mr.currentSuite;Mr.currentSuite=e,await t(),Mr.currentSuite=r}function jp(e,t,r=!1){if(t<=0||t===Number.POSITIVE_INFINITY)return e;const{setTimeout:o,clearTimeout:n}=z.getSafeTimers();return(...a)=>Promise.race([e(...a),new Promise((i,s)=>{var l;const c=o(()=>{n(c),s(new Error(Fp(r,t)))},t);(l=c.unref)==null||l.call(c)})])}function Dp(e,t){var r;const o=function(){throw new Error("done() callback is deprecated, use promise instead")};return o.task=e,o.skip=()=>{throw e.pending=!0,new Ip("test is skipped; abort execution",e)},o.onTestFailed=n=>{e.onFailed||(e.onFailed=[]),e.onFailed.push(n)},o.onTestFinished=n=>{e.onFinished||(e.onFinished=[]),e.onFinished.push(n)},((r=t.extendTaskContext)==null?void 0:r.call(t,o))||o}function Fp(e,t){return`${e?"Hook":"Test"} timed out in ${t}ms.
|
|
2
|
+
If this is a long-running ${e?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "${e?"hookTimeout":"testTimeout"}".`}function Lp(e,t={}){const r=["auto"],o=Object.entries(e).map(([n,a])=>{const i={value:a};return Array.isArray(a)&&a.length>=2&&z.isObject(a[1])&&Object.keys(a[1]).some(s=>r.includes(s))&&(Object.assign(i,a[1]),i.value=a[0]),i.prop=n,i.isFn=typeof i.value=="function",i});return Array.isArray(t.fixtures)?t.fixtures=t.fixtures.concat(o):t.fixtures=o,o.forEach(n=>{if(n.isFn){const a=oc(n.value);a.length&&(n.deps=t.fixtures.filter(({prop:i})=>i!==n.prop&&a.includes(i)))}}),t}const gi=new Map,wi=new Map;function Bp(e,t){return r=>{const o=r||t;if(!o)return e({});const n=Ap(o);if(!(n!=null&&n.length))return e(o);const a=oc(e),i=n.some(({auto:d})=>d);if(!a.length&&!i)return e(o);gi.get(o)||gi.set(o,new Map);const s=gi.get(o);wi.has(o)||wi.set(o,[]);const l=wi.get(o),c=n.filter(({prop:d,auto:y})=>y||a.includes(d)),f=nc(c);if(!f.length)return e(o);async function u(){for(const d of f){if(s.has(d))continue;const y=d.isFn?await Up(d.value,o,l):d.value;o[d.prop]=y,s.set(d,y),l.unshift(()=>{s.delete(d)})}}return u().then(()=>e(o))}}async function Up(e,t,r){const o=z.createDefer();let n=!1;const a=e(t,async i=>{n=!0,o.resolve(i);const s=z.createDefer();r.push(async()=>{s.resolve(),await a}),await s}).catch(i=>{if(!n){o.reject(i);return}throw i});return o}function nc(e,t=new Set,r=[]){return e.forEach(o=>{if(!r.includes(o)){if(!o.isFn||!o.deps){r.push(o);return}if(t.has(o))throw new Error(`Circular fixture dependency detected: ${o.prop} <- ${[...t].reverse().map(n=>n.prop).join(" <- ")}`);t.add(o),nc(o.deps,t,r),r.push(o),t.clear()}}),r}function oc(e){const t=e.toString().match(/[^(]*\(([^)]*)/);if(!t)return[];const r=gl(t[1]);if(!r.length)return[];const o=r[0];if(!(o.startsWith("{")&&o.endsWith("}")))throw new Error(`The first argument inside a fixture must use object destructuring pattern, e.g. ({ test } => {}). Instead, received "${o}".`);const n=o.slice(1,-1).replace(/\s/g,""),a=gl(n).map(s=>s.replace(/\:.*|\=.*/g,"")),i=a.at(-1);if(i&&i.startsWith("..."))throw new Error(`Rest parameters are not supported in fixtures, received "${i}".`);return a}function gl(e){const t=[],r=[];let o=0;for(let a=0;a<e.length;a++)if(e[a]==="{"||e[a]==="[")r.push(e[a]==="{"?"}":"]");else if(e[a]===r[r.length-1])r.pop();else if(!r.length&&e[a]===","){const i=e.substring(o,a).trim();i&&t.push(i),o=a+1}const n=e.substring(o).trim();return n&&t.push(n),t}const Sr=Gp(),Hp=$s(function(e,t,r){As().test.fn.call(this,mr(e),t,r)}),Vp=Sr,Wp=Hp;let Cr,zp;function As(){return Mr.currentSuite||zp}function Kp(){return{beforeAll:[],afterAll:[],beforeEach:[],afterEach:[]}}function pn(e,t){let r={},o=()=>{};if(typeof t=="object"){if(typeof e=="object")throw new TypeError("Cannot use two objects as arguments. Please provide options and a function callback in that order.");r=t}else typeof t=="number"?r={timeout:t}:typeof e=="object"&&(r=e);if(typeof e=="function"){if(typeof t=="function")throw new TypeError("Cannot use two functions as arguments. Please use the second argument for options.");o=e}else typeof t=="function"&&(o=t);return{options:r,handler:o}}function Yp(e,t=()=>{},r,o,n,a){const i=[],s=[];let l;y();const c=function(v="",m={}){const R={id:"",name:v,suite:void 0,each:m.each,fails:m.fails,context:void 0,type:"custom",retry:m.retry??Cr.config.retry,repeats:m.repeats,mode:m.only?"only":m.skip?"skip":m.todo?"todo":"run",meta:m.meta??Object.create(null)},M=m.handler;(m.concurrent||!m.sequential&&Cr.config.sequence.concurrent)&&(R.concurrent=!0),o&&(R.shuffle=!0);const $=Dp(R,Cr);return Object.defineProperty(R,"context",{value:$,enumerable:!1}),Mp($,m.fixtures),M&&Sp(R,jp(Bp(M,$),(m==null?void 0:m.timeout)??Cr.config.testTimeout)),Cr.config.includeTaskLocation,i.push(R),R},f=$s(function(v,m,R){let{options:M,handler:$}=pn(m,R);typeof a=="object"&&(M=Object.assign({},a,M)),M.concurrent=this.concurrent||!this.sequential&&(M==null?void 0:M.concurrent),M.sequential=this.sequential||!this.concurrent&&(M==null?void 0:M.sequential);const N=c(mr(v),{...this,...M,handler:$});N.type="test"}),u={type:"collector",name:e,mode:r,options:a,test:f,tasks:i,collect:w,task:c,clear:g,on:d};function d(v,...m){qp(l)[v].push(...m)}function y(v){typeof a=="number"&&(a={timeout:a}),l={id:"",type:"suite",name:e,mode:r,each:n,shuffle:o,tasks:[],meta:Object.create(null),projectName:""},$p(l,Kp())}function g(){i.length=0,s.length=0,y()}async function w(v){s.length=0,t&&await kp(u,()=>t(f));const m=[];for(const R of[...s,...i])m.push(R.type==="collector"?await R.collect(v):R);return l.file=v,l.tasks=m,m.forEach(R=>{R.suite=l,v&&(R.file=v)}),l}return Np(u),u}function Gp(){function e(t,r,o={}){const n=this.only?"only":this.skip?"skip":this.todo?"todo":"run",a=As();let{options:i,handler:s}=pn(r,o);return a!=null&&a.options&&(i={...a.options,...i}),i.concurrent=this.concurrent||!this.sequential&&(i==null?void 0:i.concurrent),i.sequential=this.sequential||!this.concurrent&&(i==null?void 0:i.sequential),Yp(mr(t),s,n,this.shuffle,this.each,i)}return e.each=function(t,...r){const o=this.withContext();return this.setContext("each",!0),Array.isArray(t)&&r.length&&(t=ac(t,r)),(n,a,i)=>{const s=mr(n),l=t.every(Array.isArray),{options:c,handler:f}=pn(a,i);t.forEach((u,d)=>{const y=Array.isArray(u)?u:[u];l?o(mn(s,y,d),c,()=>f(...y)):o(mn(s,y,d),c,()=>f(u))}),this.setContext("each",void 0)}},e.skipIf=t=>t?Sr.skip:Sr,e.runIf=t=>t?Sr:Sr.skip,ec(["concurrent","sequential","shuffle","skip","only","todo"],e)}function Xp(e,t){const r=e;r.each=function(n,...a){const i=this.withContext();return this.setContext("each",!0),Array.isArray(n)&&a.length&&(n=ac(n,a)),(s,l,c)=>{const f=mr(s),u=n.every(Array.isArray),{options:d,handler:y}=pn(l,c);n.forEach((g,w)=>{const v=Array.isArray(g)?g:[g];u?i(mn(f,v,w),d,()=>y(...v)):i(mn(f,v,w),d,()=>y(g))}),this.setContext("each",void 0)}},r.skipIf=function(n){return n?this.skip:this},r.runIf=function(n){return n?this:this.skip},r.extend=function(n){const a=Lp(n,t);return $s(function(s,l,c){As().test.fn.call(this,mr(s),l,c)},a)};const o=ec(["concurrent","sequential","skip","only","todo","fails"],r);return t&&o.mergeContext(t),o}function $s(e,t){return Xp(e,t)}function mr(e){return typeof e=="string"?e:e instanceof Function?e.name||"<anonymous>":String(e)}function mn(e,t,r){e.includes("%#")&&(e=e.replace(/%%/g,"__vitest_escaped_%__").replace(/%#/g,`${r}`).replace(/__vitest_escaped_%__/g,"%%"));const o=e.split("%").length-1;let n=z.format(e,...t.slice(0,o));return z.isObject(t[0])&&(n=n.replace(/\$([$\w_.]+)/g,(a,i)=>{var s,l;return z.objDisplay(z.objectAttr(t[0],i),{truncate:(l=(s=void 0)==null?void 0:s.chaiConfig)==null?void 0:l.truncateThreshold})})),n}function ac(e,t){const r=e.join("").trim().replace(/ /g,"").split(`
|
|
3
|
+
`).map(n=>n.split("|"))[0],o=[];for(let n=0;n<Math.floor(t.length/r.length);n++){const a={};for(let i=0;i<r.length;i++)a[r[i]]=t[n*r.length+i];o.push(a)}return o}function qs(){const e=globalThis.__vitest_worker__;if(!e){const t=`Vitest failed to access its internal state.
|
|
4
|
+
|
|
5
|
+
One of the following is possible:
|
|
6
|
+
- "vitest" is imported directly without running "vitest" command
|
|
7
|
+
- "vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)
|
|
8
|
+
- Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues
|
|
9
|
+
`;throw new Error(t)}return e}function Jp(){const e=qs();return e==null?void 0:e.environment.name}var Ei={};/*!
|
|
10
|
+
* assertion-error
|
|
11
|
+
* Copyright(c) 2013 Jake Luer <jake@qualiancy.com>
|
|
12
|
+
* MIT Licensed
|
|
13
|
+
*//*!
|
|
14
|
+
* Return a function that will copy properties from
|
|
15
|
+
* one object to another excluding any originally
|
|
16
|
+
* listed. Returned function will create a new `{}`.
|
|
17
|
+
*
|
|
18
|
+
* @param {String} excluded properties ...
|
|
19
|
+
* @return {Function}
|
|
20
|
+
*/function ic(){var e=[].slice.call(arguments);function t(r,o){Object.keys(o).forEach(function(n){~e.indexOf(n)||(r[n]=o[n])})}return function(){for(var o=[].slice.call(arguments),n=0,a={};n<o.length;n++)t(a,o[n]);return a}}/*!
|
|
21
|
+
* Primary Exports
|
|
22
|
+
*/var sc=Qt;function Qt(e,t,r){var o=ic("name","message","stack","constructor","toJSON"),n=o(t||{});this.message=e||"Unspecified AssertionError",this.showDiff=!1;for(var a in n)this[a]=n[a];if(r=r||Qt,Error.captureStackTrace)Error.captureStackTrace(this,r);else try{throw new Error}catch(i){this.stack=i.stack}}/*!
|
|
23
|
+
* Inherit from Error.prototype
|
|
24
|
+
*/Qt.prototype=Object.create(Error.prototype);/*!
|
|
25
|
+
* Statically set name
|
|
26
|
+
*/Qt.prototype.name="AssertionError";/*!
|
|
27
|
+
* Ensure correct constructor
|
|
28
|
+
*/Qt.prototype.constructor=Qt;Qt.prototype.toJSON=function(e){var t=ic("constructor","toJSON","stack"),r=t({name:this.name},this);return e!==!1&&this.stack&&(r.stack=this.stack),r};var Is={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};/*!
|
|
29
|
+
* chai
|
|
30
|
+
* http://chaijs.com
|
|
31
|
+
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
|
32
|
+
* MIT Licensed
|
|
33
|
+
*/var zt=Is,Qp=function(e,t){/*!
|
|
34
|
+
* Module dependencies.
|
|
35
|
+
*/var r=e.AssertionError,o=t.flag;/*!
|
|
36
|
+
* Module export.
|
|
37
|
+
*/e.Assertion=n;/*!
|
|
38
|
+
* Assertion Constructor
|
|
39
|
+
*
|
|
40
|
+
* Creates object for chaining.
|
|
41
|
+
*
|
|
42
|
+
* `Assertion` objects contain metadata in the form of flags. Three flags can
|
|
43
|
+
* be assigned during instantiation by passing arguments to this constructor:
|
|
44
|
+
*
|
|
45
|
+
* - `object`: This flag contains the target of the assertion. For example, in
|
|
46
|
+
* the assertion `expect(numKittens).to.equal(7);`, the `object` flag will
|
|
47
|
+
* contain `numKittens` so that the `equal` assertion can reference it when
|
|
48
|
+
* needed.
|
|
49
|
+
*
|
|
50
|
+
* - `message`: This flag contains an optional custom error message to be
|
|
51
|
+
* prepended to the error message that's generated by the assertion when it
|
|
52
|
+
* fails.
|
|
53
|
+
*
|
|
54
|
+
* - `ssfi`: This flag stands for "start stack function indicator". It
|
|
55
|
+
* contains a function reference that serves as the starting point for
|
|
56
|
+
* removing frames from the stack trace of the error that's created by the
|
|
57
|
+
* assertion when it fails. The goal is to provide a cleaner stack trace to
|
|
58
|
+
* end users by removing Chai's internal functions. Note that it only works
|
|
59
|
+
* in environments that support `Error.captureStackTrace`, and only when
|
|
60
|
+
* `Chai.config.includeStack` hasn't been set to `false`.
|
|
61
|
+
*
|
|
62
|
+
* - `lockSsfi`: This flag controls whether or not the given `ssfi` flag
|
|
63
|
+
* should retain its current value, even as assertions are chained off of
|
|
64
|
+
* this object. This is usually set to `true` when creating a new assertion
|
|
65
|
+
* from within another assertion. It's also temporarily set to `true` before
|
|
66
|
+
* an overwritten assertion gets called by the overwriting assertion.
|
|
67
|
+
*
|
|
68
|
+
* - `eql`: This flag contains the deepEqual function to be used by the assertion.
|
|
69
|
+
*
|
|
70
|
+
* @param {Mixed} obj target of the assertion
|
|
71
|
+
* @param {String} msg (optional) custom error message
|
|
72
|
+
* @param {Function} ssfi (optional) starting point for removing stack frames
|
|
73
|
+
* @param {Boolean} lockSsfi (optional) whether or not the ssfi flag is locked
|
|
74
|
+
* @api private
|
|
75
|
+
*/function n(a,i,s,l){return o(this,"ssfi",s||n),o(this,"lockSsfi",l),o(this,"object",a),o(this,"message",i),o(this,"eql",zt.deepEqual||t.eql),t.proxify(this)}Object.defineProperty(n,"includeStack",{get:function(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),zt.includeStack},set:function(a){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),zt.includeStack=a}}),Object.defineProperty(n,"showDiff",{get:function(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),zt.showDiff},set:function(a){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),zt.showDiff=a}}),n.addProperty=function(a,i){t.addProperty(this.prototype,a,i)},n.addMethod=function(a,i){t.addMethod(this.prototype,a,i)},n.addChainableMethod=function(a,i,s){t.addChainableMethod(this.prototype,a,i,s)},n.overwriteProperty=function(a,i){t.overwriteProperty(this.prototype,a,i)},n.overwriteMethod=function(a,i){t.overwriteMethod(this.prototype,a,i)},n.overwriteChainableMethod=function(a,i,s){t.overwriteChainableMethod(this.prototype,a,i,s)},n.prototype.assert=function(a,i,s,l,c,f){var u=t.test(this,arguments);if(f!==!1&&(f=!0),l===void 0&&c===void 0&&(f=!1),zt.showDiff!==!0&&(f=!1),!u){i=t.getMessage(this,arguments);var d=t.getActual(this,arguments),y={actual:d,expected:l,showDiff:f},g=t.getOperator(this,arguments);throw g&&(y.operator=g),new r(i,y,zt.includeStack?this.assert:o(this,"ssfi"))}};/*!
|
|
76
|
+
* ### ._obj
|
|
77
|
+
*
|
|
78
|
+
* Quick reference to stored `actual` value for plugin developers.
|
|
79
|
+
*
|
|
80
|
+
* @api private
|
|
81
|
+
*/Object.defineProperty(n.prototype,"_obj",{get:function(){return o(this,"object")},set:function(a){o(this,"object",a)}})};/*!
|
|
82
|
+
* chai
|
|
83
|
+
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
|
84
|
+
* MIT Licensed
|
|
85
|
+
*/var Zp=function(e,t){e.expect=function(r,o){return new e.Assertion(r,o)},e.expect.fail=function(r,o,n,a){throw arguments.length<2&&(n=r,r=void 0),n=n||"expect.fail()",new e.AssertionError(n,{actual:r,expected:o,operator:a},e.expect.fail)}};/*!
|
|
86
|
+
* chai
|
|
87
|
+
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
|
88
|
+
* MIT Licensed
|
|
89
|
+
*/var em=function(e,t){var r=e.Assertion;function o(){function n(){return this instanceof String||this instanceof Number||this instanceof Boolean||typeof Symbol=="function"&&this instanceof Symbol||typeof BigInt=="function"&&this instanceof BigInt?new r(this.valueOf(),null,n):new r(this,null,n)}function a(s){Object.defineProperty(this,"should",{value:s,enumerable:!0,configurable:!0,writable:!0})}Object.defineProperty(Object.prototype,"should",{set:a,get:n,configurable:!0});var i={};return i.fail=function(s,l,c,f){throw arguments.length<2&&(c=s,s=void 0),c=c||"should.fail()",new e.AssertionError(c,{actual:s,expected:l,operator:f},i.fail)},i.equal=function(s,l,c){new r(s,c).to.equal(l)},i.Throw=function(s,l,c,f){new r(s,f).to.Throw(l,c)},i.exist=function(s,l){new r(s,l).to.exist},i.not={},i.not.equal=function(s,l,c){new r(s,c).to.not.equal(l)},i.not.Throw=function(s,l,c,f){new r(s,f).to.not.Throw(l,c)},i.not.exist=function(s,l){new r(s,l).to.not.exist},i.throw=i.Throw,i.not.throw=i.not.Throw,i}e.should=o,e.Should=o};/*!
|
|
90
|
+
* chai
|
|
91
|
+
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
|
92
|
+
* MIT Licensed
|
|
93
|
+
*/var tm=function(e,t){/*!
|
|
94
|
+
* Chai dependencies.
|
|
95
|
+
*/var r=e.Assertion,o=t.flag;/*!
|
|
96
|
+
* Module export.
|
|
97
|
+
*/var n=e.assert=function(a,i){var s=new r(null,null,e.assert,!0);s.assert(a,i,"[ negation message unavailable ]")};n.fail=function(a,i,s,l){throw arguments.length<2&&(s=a,a=void 0),s=s||"assert.fail()",new e.AssertionError(s,{actual:a,expected:i,operator:l},n.fail)},n.isOk=function(a,i){new r(a,i,n.isOk,!0).is.ok},n.isNotOk=function(a,i){new r(a,i,n.isNotOk,!0).is.not.ok},n.equal=function(a,i,s){var l=new r(a,s,n.equal,!0);l.assert(i==o(l,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",i,a,!0)},n.notEqual=function(a,i,s){var l=new r(a,s,n.notEqual,!0);l.assert(i!=o(l,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",i,a,!0)},n.strictEqual=function(a,i,s){new r(a,s,n.strictEqual,!0).to.equal(i)},n.notStrictEqual=function(a,i,s){new r(a,s,n.notStrictEqual,!0).to.not.equal(i)},n.deepEqual=n.deepStrictEqual=function(a,i,s){new r(a,s,n.deepEqual,!0).to.eql(i)},n.notDeepEqual=function(a,i,s){new r(a,s,n.notDeepEqual,!0).to.not.eql(i)},n.isAbove=function(a,i,s){new r(a,s,n.isAbove,!0).to.be.above(i)},n.isAtLeast=function(a,i,s){new r(a,s,n.isAtLeast,!0).to.be.least(i)},n.isBelow=function(a,i,s){new r(a,s,n.isBelow,!0).to.be.below(i)},n.isAtMost=function(a,i,s){new r(a,s,n.isAtMost,!0).to.be.most(i)},n.isTrue=function(a,i){new r(a,i,n.isTrue,!0).is.true},n.isNotTrue=function(a,i){new r(a,i,n.isNotTrue,!0).to.not.equal(!0)},n.isFalse=function(a,i){new r(a,i,n.isFalse,!0).is.false},n.isNotFalse=function(a,i){new r(a,i,n.isNotFalse,!0).to.not.equal(!1)},n.isNull=function(a,i){new r(a,i,n.isNull,!0).to.equal(null)},n.isNotNull=function(a,i){new r(a,i,n.isNotNull,!0).to.not.equal(null)},n.isNaN=function(a,i){new r(a,i,n.isNaN,!0).to.be.NaN},n.isNotNaN=function(a,i){new r(a,i,n.isNotNaN,!0).not.to.be.NaN},n.exists=function(a,i){new r(a,i,n.exists,!0).to.exist},n.notExists=function(a,i){new r(a,i,n.notExists,!0).to.not.exist},n.isUndefined=function(a,i){new r(a,i,n.isUndefined,!0).to.equal(void 0)},n.isDefined=function(a,i){new r(a,i,n.isDefined,!0).to.not.equal(void 0)},n.isFunction=function(a,i){new r(a,i,n.isFunction,!0).to.be.a("function")},n.isNotFunction=function(a,i){new r(a,i,n.isNotFunction,!0).to.not.be.a("function")},n.isObject=function(a,i){new r(a,i,n.isObject,!0).to.be.a("object")},n.isNotObject=function(a,i){new r(a,i,n.isNotObject,!0).to.not.be.a("object")},n.isArray=function(a,i){new r(a,i,n.isArray,!0).to.be.an("array")},n.isNotArray=function(a,i){new r(a,i,n.isNotArray,!0).to.not.be.an("array")},n.isString=function(a,i){new r(a,i,n.isString,!0).to.be.a("string")},n.isNotString=function(a,i){new r(a,i,n.isNotString,!0).to.not.be.a("string")},n.isNumber=function(a,i){new r(a,i,n.isNumber,!0).to.be.a("number")},n.isNotNumber=function(a,i){new r(a,i,n.isNotNumber,!0).to.not.be.a("number")},n.isFinite=function(a,i){new r(a,i,n.isFinite,!0).to.be.finite},n.isBoolean=function(a,i){new r(a,i,n.isBoolean,!0).to.be.a("boolean")},n.isNotBoolean=function(a,i){new r(a,i,n.isNotBoolean,!0).to.not.be.a("boolean")},n.typeOf=function(a,i,s){new r(a,s,n.typeOf,!0).to.be.a(i)},n.notTypeOf=function(a,i,s){new r(a,s,n.notTypeOf,!0).to.not.be.a(i)},n.instanceOf=function(a,i,s){new r(a,s,n.instanceOf,!0).to.be.instanceOf(i)},n.notInstanceOf=function(a,i,s){new r(a,s,n.notInstanceOf,!0).to.not.be.instanceOf(i)},n.include=function(a,i,s){new r(a,s,n.include,!0).include(i)},n.notInclude=function(a,i,s){new r(a,s,n.notInclude,!0).not.include(i)},n.deepInclude=function(a,i,s){new r(a,s,n.deepInclude,!0).deep.include(i)},n.notDeepInclude=function(a,i,s){new r(a,s,n.notDeepInclude,!0).not.deep.include(i)},n.nestedInclude=function(a,i,s){new r(a,s,n.nestedInclude,!0).nested.include(i)},n.notNestedInclude=function(a,i,s){new r(a,s,n.notNestedInclude,!0).not.nested.include(i)},n.deepNestedInclude=function(a,i,s){new r(a,s,n.deepNestedInclude,!0).deep.nested.include(i)},n.notDeepNestedInclude=function(a,i,s){new r(a,s,n.notDeepNestedInclude,!0).not.deep.nested.include(i)},n.ownInclude=function(a,i,s){new r(a,s,n.ownInclude,!0).own.include(i)},n.notOwnInclude=function(a,i,s){new r(a,s,n.notOwnInclude,!0).not.own.include(i)},n.deepOwnInclude=function(a,i,s){new r(a,s,n.deepOwnInclude,!0).deep.own.include(i)},n.notDeepOwnInclude=function(a,i,s){new r(a,s,n.notDeepOwnInclude,!0).not.deep.own.include(i)},n.match=function(a,i,s){new r(a,s,n.match,!0).to.match(i)},n.notMatch=function(a,i,s){new r(a,s,n.notMatch,!0).to.not.match(i)},n.property=function(a,i,s){new r(a,s,n.property,!0).to.have.property(i)},n.notProperty=function(a,i,s){new r(a,s,n.notProperty,!0).to.not.have.property(i)},n.propertyVal=function(a,i,s,l){new r(a,l,n.propertyVal,!0).to.have.property(i,s)},n.notPropertyVal=function(a,i,s,l){new r(a,l,n.notPropertyVal,!0).to.not.have.property(i,s)},n.deepPropertyVal=function(a,i,s,l){new r(a,l,n.deepPropertyVal,!0).to.have.deep.property(i,s)},n.notDeepPropertyVal=function(a,i,s,l){new r(a,l,n.notDeepPropertyVal,!0).to.not.have.deep.property(i,s)},n.ownProperty=function(a,i,s){new r(a,s,n.ownProperty,!0).to.have.own.property(i)},n.notOwnProperty=function(a,i,s){new r(a,s,n.notOwnProperty,!0).to.not.have.own.property(i)},n.ownPropertyVal=function(a,i,s,l){new r(a,l,n.ownPropertyVal,!0).to.have.own.property(i,s)},n.notOwnPropertyVal=function(a,i,s,l){new r(a,l,n.notOwnPropertyVal,!0).to.not.have.own.property(i,s)},n.deepOwnPropertyVal=function(a,i,s,l){new r(a,l,n.deepOwnPropertyVal,!0).to.have.deep.own.property(i,s)},n.notDeepOwnPropertyVal=function(a,i,s,l){new r(a,l,n.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(i,s)},n.nestedProperty=function(a,i,s){new r(a,s,n.nestedProperty,!0).to.have.nested.property(i)},n.notNestedProperty=function(a,i,s){new r(a,s,n.notNestedProperty,!0).to.not.have.nested.property(i)},n.nestedPropertyVal=function(a,i,s,l){new r(a,l,n.nestedPropertyVal,!0).to.have.nested.property(i,s)},n.notNestedPropertyVal=function(a,i,s,l){new r(a,l,n.notNestedPropertyVal,!0).to.not.have.nested.property(i,s)},n.deepNestedPropertyVal=function(a,i,s,l){new r(a,l,n.deepNestedPropertyVal,!0).to.have.deep.nested.property(i,s)},n.notDeepNestedPropertyVal=function(a,i,s,l){new r(a,l,n.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(i,s)},n.lengthOf=function(a,i,s){new r(a,s,n.lengthOf,!0).to.have.lengthOf(i)},n.hasAnyKeys=function(a,i,s){new r(a,s,n.hasAnyKeys,!0).to.have.any.keys(i)},n.hasAllKeys=function(a,i,s){new r(a,s,n.hasAllKeys,!0).to.have.all.keys(i)},n.containsAllKeys=function(a,i,s){new r(a,s,n.containsAllKeys,!0).to.contain.all.keys(i)},n.doesNotHaveAnyKeys=function(a,i,s){new r(a,s,n.doesNotHaveAnyKeys,!0).to.not.have.any.keys(i)},n.doesNotHaveAllKeys=function(a,i,s){new r(a,s,n.doesNotHaveAllKeys,!0).to.not.have.all.keys(i)},n.hasAnyDeepKeys=function(a,i,s){new r(a,s,n.hasAnyDeepKeys,!0).to.have.any.deep.keys(i)},n.hasAllDeepKeys=function(a,i,s){new r(a,s,n.hasAllDeepKeys,!0).to.have.all.deep.keys(i)},n.containsAllDeepKeys=function(a,i,s){new r(a,s,n.containsAllDeepKeys,!0).to.contain.all.deep.keys(i)},n.doesNotHaveAnyDeepKeys=function(a,i,s){new r(a,s,n.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(i)},n.doesNotHaveAllDeepKeys=function(a,i,s){new r(a,s,n.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(i)},n.throws=function(a,i,s,l){(typeof i=="string"||i instanceof RegExp)&&(s=i,i=null);var c=new r(a,l,n.throws,!0).to.throw(i,s);return o(c,"object")},n.doesNotThrow=function(a,i,s,l){(typeof i=="string"||i instanceof RegExp)&&(s=i,i=null),new r(a,l,n.doesNotThrow,!0).to.not.throw(i,s)},n.operator=function(a,i,s,l){var c;switch(i){case"==":c=a==s;break;case"===":c=a===s;break;case">":c=a>s;break;case">=":c=a>=s;break;case"<":c=a<s;break;case"<=":c=a<=s;break;case"!=":c=a!=s;break;case"!==":c=a!==s;break;default:throw l=l&&l+": ",new e.AssertionError(l+'Invalid operator "'+i+'"',void 0,n.operator)}var f=new r(c,l,n.operator,!0);f.assert(o(f,"object")===!0,"expected "+t.inspect(a)+" to be "+i+" "+t.inspect(s),"expected "+t.inspect(a)+" to not be "+i+" "+t.inspect(s))},n.closeTo=function(a,i,s,l){new r(a,l,n.closeTo,!0).to.be.closeTo(i,s)},n.approximately=function(a,i,s,l){new r(a,l,n.approximately,!0).to.be.approximately(i,s)},n.sameMembers=function(a,i,s){new r(a,s,n.sameMembers,!0).to.have.same.members(i)},n.notSameMembers=function(a,i,s){new r(a,s,n.notSameMembers,!0).to.not.have.same.members(i)},n.sameDeepMembers=function(a,i,s){new r(a,s,n.sameDeepMembers,!0).to.have.same.deep.members(i)},n.notSameDeepMembers=function(a,i,s){new r(a,s,n.notSameDeepMembers,!0).to.not.have.same.deep.members(i)},n.sameOrderedMembers=function(a,i,s){new r(a,s,n.sameOrderedMembers,!0).to.have.same.ordered.members(i)},n.notSameOrderedMembers=function(a,i,s){new r(a,s,n.notSameOrderedMembers,!0).to.not.have.same.ordered.members(i)},n.sameDeepOrderedMembers=function(a,i,s){new r(a,s,n.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(i)},n.notSameDeepOrderedMembers=function(a,i,s){new r(a,s,n.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(i)},n.includeMembers=function(a,i,s){new r(a,s,n.includeMembers,!0).to.include.members(i)},n.notIncludeMembers=function(a,i,s){new r(a,s,n.notIncludeMembers,!0).to.not.include.members(i)},n.includeDeepMembers=function(a,i,s){new r(a,s,n.includeDeepMembers,!0).to.include.deep.members(i)},n.notIncludeDeepMembers=function(a,i,s){new r(a,s,n.notIncludeDeepMembers,!0).to.not.include.deep.members(i)},n.includeOrderedMembers=function(a,i,s){new r(a,s,n.includeOrderedMembers,!0).to.include.ordered.members(i)},n.notIncludeOrderedMembers=function(a,i,s){new r(a,s,n.notIncludeOrderedMembers,!0).to.not.include.ordered.members(i)},n.includeDeepOrderedMembers=function(a,i,s){new r(a,s,n.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(i)},n.notIncludeDeepOrderedMembers=function(a,i,s){new r(a,s,n.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(i)},n.oneOf=function(a,i,s){new r(a,s,n.oneOf,!0).to.be.oneOf(i)},n.changes=function(a,i,s,l){arguments.length===3&&typeof i=="function"&&(l=s,s=null),new r(a,l,n.changes,!0).to.change(i,s)},n.changesBy=function(a,i,s,l,c){if(arguments.length===4&&typeof i=="function"){var f=l;l=s,c=f}else arguments.length===3&&(l=s,s=null);new r(a,c,n.changesBy,!0).to.change(i,s).by(l)},n.doesNotChange=function(a,i,s,l){return arguments.length===3&&typeof i=="function"&&(l=s,s=null),new r(a,l,n.doesNotChange,!0).to.not.change(i,s)},n.changesButNotBy=function(a,i,s,l,c){if(arguments.length===4&&typeof i=="function"){var f=l;l=s,c=f}else arguments.length===3&&(l=s,s=null);new r(a,c,n.changesButNotBy,!0).to.change(i,s).but.not.by(l)},n.increases=function(a,i,s,l){return arguments.length===3&&typeof i=="function"&&(l=s,s=null),new r(a,l,n.increases,!0).to.increase(i,s)},n.increasesBy=function(a,i,s,l,c){if(arguments.length===4&&typeof i=="function"){var f=l;l=s,c=f}else arguments.length===3&&(l=s,s=null);new r(a,c,n.increasesBy,!0).to.increase(i,s).by(l)},n.doesNotIncrease=function(a,i,s,l){return arguments.length===3&&typeof i=="function"&&(l=s,s=null),new r(a,l,n.doesNotIncrease,!0).to.not.increase(i,s)},n.increasesButNotBy=function(a,i,s,l,c){if(arguments.length===4&&typeof i=="function"){var f=l;l=s,c=f}else arguments.length===3&&(l=s,s=null);new r(a,c,n.increasesButNotBy,!0).to.increase(i,s).but.not.by(l)},n.decreases=function(a,i,s,l){return arguments.length===3&&typeof i=="function"&&(l=s,s=null),new r(a,l,n.decreases,!0).to.decrease(i,s)},n.decreasesBy=function(a,i,s,l,c){if(arguments.length===4&&typeof i=="function"){var f=l;l=s,c=f}else arguments.length===3&&(l=s,s=null);new r(a,c,n.decreasesBy,!0).to.decrease(i,s).by(l)},n.doesNotDecrease=function(a,i,s,l){return arguments.length===3&&typeof i=="function"&&(l=s,s=null),new r(a,l,n.doesNotDecrease,!0).to.not.decrease(i,s)},n.doesNotDecreaseBy=function(a,i,s,l,c){if(arguments.length===4&&typeof i=="function"){var f=l;l=s,c=f}else arguments.length===3&&(l=s,s=null);return new r(a,c,n.doesNotDecreaseBy,!0).to.not.decrease(i,s).by(l)},n.decreasesButNotBy=function(a,i,s,l,c){if(arguments.length===4&&typeof i=="function"){var f=l;l=s,c=f}else arguments.length===3&&(l=s,s=null);new r(a,c,n.decreasesButNotBy,!0).to.decrease(i,s).but.not.by(l)};/*!
|
|
98
|
+
* ### .ifError(object)
|
|
99
|
+
*
|
|
100
|
+
* Asserts if value is not a false value, and throws if it is a true value.
|
|
101
|
+
* This is added to allow for chai to be a drop-in replacement for Node's
|
|
102
|
+
* assert class.
|
|
103
|
+
*
|
|
104
|
+
* var err = new Error('I am a custom error');
|
|
105
|
+
* assert.ifError(err); // Rethrows err!
|
|
106
|
+
*
|
|
107
|
+
* @name ifError
|
|
108
|
+
* @param {Object} object
|
|
109
|
+
* @namespace Assert
|
|
110
|
+
* @api public
|
|
111
|
+
*/n.ifError=function(a){if(a)throw a},n.isExtensible=function(a,i){new r(a,i,n.isExtensible,!0).to.be.extensible},n.isNotExtensible=function(a,i){new r(a,i,n.isNotExtensible,!0).to.not.be.extensible},n.isSealed=function(a,i){new r(a,i,n.isSealed,!0).to.be.sealed},n.isNotSealed=function(a,i){new r(a,i,n.isNotSealed,!0).to.not.be.sealed},n.isFrozen=function(a,i){new r(a,i,n.isFrozen,!0).to.be.frozen},n.isNotFrozen=function(a,i){new r(a,i,n.isNotFrozen,!0).to.not.be.frozen},n.isEmpty=function(a,i){new r(a,i,n.isEmpty,!0).to.be.empty},n.isNotEmpty=function(a,i){new r(a,i,n.isNotEmpty,!0).to.not.be.empty};/*!
|
|
112
|
+
* Aliases.
|
|
113
|
+
*/(function a(i,s){return n[s]=n[i],a})("isOk","ok")("isNotOk","notOk")("throws","throw")("throws","Throw")("isExtensible","extensible")("isNotExtensible","notExtensible")("isSealed","sealed")("isNotSealed","notSealed")("isFrozen","frozen")("isNotFrozen","notFrozen")("isEmpty","empty")("isNotEmpty","notEmpty")};/*!
|
|
114
|
+
* chai
|
|
115
|
+
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
|
116
|
+
* MIT Licensed
|
|
117
|
+
*/var wl;function lc(){return wl||(wl=1,function(e){var t=[];/*!
|
|
118
|
+
* Chai version
|
|
119
|
+
*/e.version="4.3.8";/*!
|
|
120
|
+
* Assertion Error
|
|
121
|
+
*/e.AssertionError=sc;/*!
|
|
122
|
+
* Utils for plugins (not exported)
|
|
123
|
+
*/var r=z.requireUtils();e.use=function(c){return~t.indexOf(c)||(c(e,r),t.push(c)),e};/*!
|
|
124
|
+
* Utility Functions
|
|
125
|
+
*/e.util=r;/*!
|
|
126
|
+
* Configuration
|
|
127
|
+
*/var o=Is;e.config=o;/*!
|
|
128
|
+
* Primary `Assertion` prototype
|
|
129
|
+
*/var n=Qp;e.use(n);/*!
|
|
130
|
+
* Core Assertions
|
|
131
|
+
*/var a=bp.assertions;e.use(a);/*!
|
|
132
|
+
* Expect interface
|
|
133
|
+
*/var i=Zp;e.use(i);/*!
|
|
134
|
+
* Should interface
|
|
135
|
+
*/var s=em;e.use(s);/*!
|
|
136
|
+
* Assert interface
|
|
137
|
+
*/var l=tm;e.use(l)}(Ei)),Ei}var rm=lc();const it=Zu(rm),_i=it.expect;it.version;it.Assertion;it.AssertionError;const hn=it.util;it.config;const Hr=it.use;it.should;const nm=it.assert;it.core;var Ir=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function om(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ln(e,t){if(!e)throw new Error(t)}function cr(e,t){return typeof t===e}function am(e){return e instanceof Promise}function Ji(e,t,r){Object.defineProperty(e,t,r)}function dr(e,t,r){Object.defineProperty(e,t,{value:r})}var Ar=Symbol.for("tinyspy:spy"),im=new Set,sm=e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.next=[]},lm=e=>(Ji(e,Ar,{value:{reset:()=>sm(e[Ar])}}),e[Ar]),Qi=e=>e[Ar]||lm(e);function um(e){ln(cr("function",e)||cr("undefined",e),"cannot spy on a non-function value");let t=function(...o){let n=Qi(t);n.called=!0,n.callCount++,n.calls.push(o);let a=n.next.shift();if(a){n.results.push(a);let[c,f]=a;if(c==="ok")return f;throw f}let i,s="ok";if(n.impl)try{new.target?i=Reflect.construct(n.impl,o,new.target):i=n.impl.apply(this,o),s="ok"}catch(c){throw i=c,s="error",n.results.push([s,c]),c}let l=[s,i];if(am(i)){let c=i.then(f=>l[1]=f).catch(f=>{throw l[0]="error",l[1]=f,f});Object.assign(c,i),i=c}return n.results.push(l),i};dr(t,"_isMockFunction",!0),dr(t,"length",e?e.length:0),dr(t,"name",e&&e.name||"spy");let r=Qi(t);return r.reset(),r.impl=e,t}var El=(e,t)=>Object.getOwnPropertyDescriptor(e,t),_l=(e,t)=>{t!=null&&typeof t=="function"&&t.prototype!=null&&Object.setPrototypeOf(e.prototype,t.prototype)};function uc(e,t,r){ln(!cr("undefined",e),"spyOn could not find an object to spy upon"),ln(cr("object",e)||cr("function",e),"cannot spyOn on a primitive value");let[o,n]=(()=>{if(!cr("object",t))return[t,"value"];if("getter"in t&&"setter"in t)throw new Error("cannot spy on both getter and setter");if("getter"in t)return[t.getter,"get"];if("setter"in t)return[t.setter,"set"];throw new Error("specify getter or setter to spy on")})(),a=El(e,o),i=Object.getPrototypeOf(e),s=i&&El(i,o),l=a||s;ln(l||o in e,`${String(o)} does not exist`);let c=!1;n==="value"&&l&&!l.value&&l.get&&(n="get",c=!0,r=l.get());let f;l?f=l[n]:n!=="value"?f=()=>e[o]:f=e[o],r||(r=f);let u=um(r);n==="value"&&_l(u,f);let d=w=>{let{value:v,...m}=l||{configurable:!0,writable:!0};n!=="value"&&delete m.writable,m[n]=w,Ji(e,o,m)},y=()=>l?Ji(e,o,l):d(f),g=u[Ar];return dr(g,"restore",y),dr(g,"getOriginal",()=>c?f():f),dr(g,"willCall",w=>(g.impl=w,u)),d(c?()=>(_l(u,r),u):u),im.add(u),u}const un=new Set;function cc(e){return typeof e=="function"&&"_isMockFunction"in e&&e._isMockFunction}function cm(e,t,r){const n=r?{[{get:"getter",set:"setter"}[r]]:t}:t,a=uc(e,n);return dc(a)}let dm=0;function dc(e){const t=e;let r,o=[],n=[];const a=Qi(e),i={get calls(){return a.calls},get instances(){return o},get invocationCallOrder(){return n},get results(){return a.results.map(([d,y])=>({type:d==="error"?"throw":"return",value:y}))},get lastCall(){return a.calls[a.calls.length-1]}};let s=[],l=!1;function c(...d){return o.push(this),n.push(++dm),(l?r:s.shift()||r||a.getOriginal()||(()=>{})).apply(this,d)}let f=t.name;t.getMockName=()=>f||"vi.fn()",t.mockName=d=>(f=d,t),t.mockClear=()=>(a.reset(),o=[],n=[],t),t.mockReset=()=>(t.mockClear(),r=()=>{},s=[],t),t.mockRestore=()=>(t.mockReset(),a.restore(),r=void 0,t),t.getMockImplementation=()=>r,t.mockImplementation=d=>(r=d,a.willCall(c),t),t.mockImplementationOnce=d=>(s.push(d),t);function u(d,y){const g=r;r=d,a.willCall(c),l=!0;const w=()=>{r=g,l=!1},v=y();return v instanceof Promise?v.then(()=>(w(),t)):(w(),t)}return t.withImplementation=u,t.mockReturnThis=()=>t.mockImplementation(function(){return this}),t.mockReturnValue=d=>t.mockImplementation(()=>d),t.mockReturnValueOnce=d=>t.mockImplementationOnce(()=>d),t.mockResolvedValue=d=>t.mockImplementation(()=>Promise.resolve(d)),t.mockResolvedValueOnce=d=>t.mockImplementationOnce(()=>Promise.resolve(d)),t.mockRejectedValue=d=>t.mockImplementation(()=>Promise.reject(d)),t.mockRejectedValueOnce=d=>t.mockImplementationOnce(()=>Promise.reject(d)),Object.defineProperty(t,"mock",{get:()=>i}),a.willCall(c),un.add(t),t}function fm(e){const t=dc(uc({spy:e||(()=>{})},"spy"));return e&&t.mockImplementation(e),t}const yn=Symbol.for("matchers-object"),Vr=Symbol.for("$$jest-matchers-object"),Wr=Symbol.for("expect-global"),Ns=Symbol.for("asymmetric-matchers-object");if(!Object.prototype.hasOwnProperty.call(globalThis,yn)){const e=new WeakMap,t=Object.create(null),r=[],o=Object.create(null);Object.defineProperty(globalThis,yn,{get:()=>e}),Object.defineProperty(globalThis,Vr,{configurable:!0,get:()=>({state:e.get(globalThis[Wr]),matchers:t,customEqualityTesters:r})}),Object.defineProperty(globalThis,Ns,{get:()=>o})}function fr(e){return globalThis[yn].get(e)}function Ci(e,t){const r=globalThis[yn],o=r.get(t)||{};Object.assign(o,e),r.set(t,o)}function fc(){const e=()=>z.getColors(),t=e().green,r=e().red,o=e().inverse,n=e().bold,a=e().dim;function i(u,d="received",y="expected",g={}){const{comment:w="",isDirectExpectCall:v=!1,isNot:m=!1,promise:R="",secondArgument:M="",expectedColor:$=t,receivedColor:N=r,secondArgumentColor:C=t}=g;let x="",I="expect";return!v&&d!==""&&(x+=a(`${I}(`)+N(d),I=")"),R!==""&&(x+=a(`${I}.`)+R,I=""),m&&(x+=`${a(`${I}.`)}not`,I=""),u.includes(".")?I+=u:(x+=a(`${I}.`)+u,I=""),y===""?I+="()":(x+=a(`${I}(`)+$(y),M&&(x+=a(", ")+C(M)),I=")"),w!==""&&(I+=` // ${w}`),I!==""&&(x+=a(I)),x}const s="·",l=u=>u.replace(/\s+$/gm,d=>s.repeat(d.length));return{EXPECTED_COLOR:t,RECEIVED_COLOR:r,INVERTED_COLOR:o,BOLD_WEIGHT:n,DIM_COLOR:a,matcherHint:i,printReceived:u=>r(l(z.stringify(u))),printExpected:u=>t(l(z.stringify(u)))}}function pm(e){if(!Array.isArray(e))throw new TypeError(`expect.customEqualityTesters: Must be set to an array of Testers. Was given "${z.getType(e)}"`);globalThis[Vr].customEqualityTesters.push(...e)}function ks(){return globalThis[Vr].customEqualityTesters}function ae(e,t,r,o){return r=r||[],pc(e,t,[],[],r,o?mc:hm)}function Cl(e){return!!e&&typeof e=="object"&&"asymmetricMatch"in e&&nt("Function",e.asymmetricMatch)}function mm(e,t){const r=Cl(e),o=Cl(t);if(!(r&&o)){if(r)return e.asymmetricMatch(t);if(o)return t.asymmetricMatch(e)}}function pc(e,t,r,o,n,a){let i=!0;const s=mm(e,t);if(s!==void 0)return s;const l={equals:ae};for(let g=0;g<n.length;g++){const w=n[g].call(l,e,t,n);if(w!==void 0)return w}if(e instanceof Error&&t instanceof Error)return e.message===t.message;if(typeof URL=="function"&&e instanceof URL&&t instanceof URL)return e.href===t.href;if(Object.is(e,t))return!0;if(e===null||t===null)return e===t;const c=Object.prototype.toString.call(e);if(c!==Object.prototype.toString.call(t))return!1;switch(c){case"[object Boolean]":case"[object String]":case"[object Number]":return typeof e!=typeof t?!1:typeof e!="object"&&typeof t!="object"?Object.is(e,t):Object.is(e.valueOf(),t.valueOf());case"[object Date]":{const g=+e,w=+t;return g===w||Number.isNaN(g)&&Number.isNaN(w)}case"[object RegExp]":return e.source===t.source&&e.flags===t.flags}if(typeof e!="object"||typeof t!="object")return!1;if(Rl(e)&&Rl(t))return e.isEqualNode(t);let f=r.length;for(;f--;){if(r[f]===e)return o[f]===t;if(o[f]===t)return!1}if(r.push(e),o.push(t),c==="[object Array]"&&e.length!==t.length)return!1;const u=Tl(e,a);let d,y=u.length;if(Tl(t,a).length!==y)return!1;for(;y--;)if(d=u[y],i=a(t,d)&&pc(e[d],t[d],r,o,n,a),!i)return!1;return r.pop(),o.pop(),i}function Tl(e,t){const r=[];for(const o in e)t(e,o)&&r.push(o);return r.concat(Object.getOwnPropertySymbols(e).filter(o=>Object.getOwnPropertyDescriptor(e,o).enumerable))}function hm(e,t){return mc(e,t)&&e[t]!==void 0}function mc(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function nt(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}function Rl(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"&&"nodeName"in e&&typeof e.nodeName=="string"&&"isEqualNode"in e&&typeof e.isEqualNode=="function"}const ym="@@__IMMUTABLE_KEYED__@@",bm="@@__IMMUTABLE_SET__@@",hc="@@__IMMUTABLE_ORDERED__@@";function vm(e){return!!(e&&e[ym]&&!e[hc])}function gm(e){return!!(e&&e[bm]&&!e[hc])}const yc=Symbol.iterator;function Pl(e){return!!(e!=null&&e[yc])}function je(e,t,r=[],o=[],n=[]){if(typeof e!="object"||typeof t!="object"||Array.isArray(e)||Array.isArray(t)||!Pl(e)||!Pl(t))return;if(e.constructor!==t.constructor)return!1;let a=o.length;for(;a--;)if(o[a]===e)return n[a]===t;o.push(e),n.push(t);const i=[...r.filter(c=>c!==je),s];function s(c,f){return je(c,f,[...i],[...o],[...n])}if(e.size!==void 0){if(e.size!==t.size)return!1;if(nt("Set",e)||gm(e)){let c=!0;for(const f of e)if(!t.has(f)){let u=!1;for(const d of t)ae(f,d,i)===!0&&(u=!0);if(u===!1){c=!1;break}}return o.pop(),n.pop(),c}else if(nt("Map",e)||vm(e)){let c=!0;for(const f of e)if(!t.has(f[0])||!ae(f[1],t.get(f[0]),i)){let u=!1;for(const d of t){const y=ae(f[0],d[0],i);let g=!1;y===!0&&(g=ae(f[1],d[1],i)),g===!0&&(u=!0)}if(u===!1){c=!1;break}}return o.pop(),n.pop(),c}}const l=t[yc]();for(const c of e){const f=l.next();if(f.done||!ae(c,f.value,i))return!1}return l.next().done?(o.pop(),n.pop(),!0):!1}function js(e,t){return!e||typeof e!="object"||e===Object.prototype?!1:Object.prototype.hasOwnProperty.call(e,t)||js(Object.getPrototypeOf(e),t)}function xl(e){return z.isObject(e)&&!(e instanceof Error)&&!Array.isArray(e)&&!(e instanceof Date)}function gr(e,t,r=[]){const o=r.filter(a=>a!==gr),n=(a=new WeakMap)=>(i,s)=>{if(xl(s))return Object.keys(s).every(l=>{if(xl(s[l])){if(a.has(s[l]))return ae(i[l],s[l],o);a.set(s[l],!0)}const c=i!=null&&js(i,l)&&ae(i[l],s[l],[...o,n(a)]);return a.delete(s[l]),c})};return n()(e,t)}function Ol(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return!1}function Sl(e,t){let r=e,o=t;if(!(e instanceof DataView&&t instanceof DataView)){if(!(e instanceof ArrayBuffer)||!(t instanceof ArrayBuffer))return;try{r=new DataView(e),o=new DataView(t)}catch{return}}if(r.byteLength!==o.byteLength)return!1;for(let n=0;n<r.byteLength;n++)if(r.getUint8(n)!==o.getUint8(n))return!1;return!0}function Zi(e,t,r=[]){if(!Array.isArray(e)||!Array.isArray(t))return;const o=Object.keys(e),n=Object.keys(t),a=r.filter(i=>i!==Zi);return ae(e,t,a,!0)&&ae(o,n)}function wm(e,t="#{this}",r="#{exp}"){const o=`expected ${t} to be ${r} // Object.is equality`;return["toStrictEqual","toEqual"].includes(e)?`${o}
|
|
138
|
+
|
|
139
|
+
If it should pass with deep equality, replace "toBe" with "${e}"
|
|
140
|
+
|
|
141
|
+
Expected: ${t}
|
|
142
|
+
Received: serializes to the same string
|
|
143
|
+
`:o}function Em(e,t){return`${t} ${e}${t===1?"":"s"}`}function Ti(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>{var r;return(r=Object.getOwnPropertyDescriptor(e,t))==null?void 0:r.enumerable})]}function _m(e,t,r=[]){let o=0;const n=(a=new WeakMap)=>(i,s)=>{if(Array.isArray(i)){if(Array.isArray(s)&&s.length===i.length)return s.map((l,c)=>n(a)(i[c],l))}else{if(i instanceof Date)return i;if(z.isObject(i)&&z.isObject(s)){if(ae(i,s,[...r,je,gr]))return s;const l={};a.set(i,l);for(const c of Ti(i))js(s,c)?l[c]=a.has(i[c])?a.get(i[c]):n(a)(i[c],s[c]):a.has(i[c])||(o+=1,z.isObject(i[c])&&(o+=Ti(i[c]).length),n(a)(i[c],s[c]));if(Ti(l).length>0)return l}}return i};return{subset:n()(e,t),stripped:o}}let Ut=class{constructor(t,r=!1){te(this,"$$typeof",Symbol.for("jest.asymmetricMatcher"));this.sample=t,this.inverse=r}getMatcherContext(t){return{...fr(t||globalThis[Wr]),equals:ae,isNot:this.inverse,customTesters:ks(),utils:{...fc(),diff:z.diff,stringify:z.stringify,iterableEquality:je,subsetEquality:gr}}}[Symbol.for("chai/inspect")](t){const r=z.stringify(this,t.depth,{min:!0});return r.length<=t.truncate?r:`${this.toString()}{…}`}};class Ml extends Ut{constructor(t,r=!1){if(!nt("String",t))throw new Error("Expected is not a string");super(t,r)}asymmetricMatch(t){const r=nt("String",t)&&t.includes(this.sample);return this.inverse?!r:r}toString(){return`String${this.inverse?"Not":""}Containing`}getExpectedType(){return"string"}}class Cm extends Ut{asymmetricMatch(t){return t!=null}toString(){return"Anything"}toAsymmetricMatcher(){return"Anything"}}class Al extends Ut{constructor(t,r=!1){super(t,r)}getPrototype(t){return Object.getPrototypeOf?Object.getPrototypeOf(t):t.constructor.prototype===t?null:t.constructor.prototype}hasProperty(t,r){return t?Object.prototype.hasOwnProperty.call(t,r)?!0:this.hasProperty(this.getPrototype(t),r):!1}asymmetricMatch(t){if(typeof this.sample!="object")throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let r=!0;const o=this.getMatcherContext();for(const n in this.sample)if(!this.hasProperty(t,n)||!ae(this.sample[n],t[n],o.customTesters)){r=!1;break}return this.inverse?!r:r}toString(){return`Object${this.inverse?"Not":""}Containing`}getExpectedType(){return"object"}}class $l extends Ut{constructor(t,r=!1){super(t,r)}asymmetricMatch(t){if(!Array.isArray(this.sample))throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);const r=this.getMatcherContext(),o=this.sample.length===0||Array.isArray(t)&&this.sample.every(n=>t.some(a=>ae(n,a,r.customTesters)));return this.inverse?!o:o}toString(){return`Array${this.inverse?"Not":""}Containing`}getExpectedType(){return"array"}}class Tm extends Ut{constructor(t){if(typeof t>"u")throw new TypeError("any() expects to be passed a constructor function. Please pass one or use anything() to match any object.");super(t)}fnNameFor(t){if(t.name)return t.name;const o=Function.prototype.toString.call(t).match(/^(?:async)?\s*function\s*\*?\s*([\w$]+)\s*\(/);return o?o[1]:"<anonymous>"}asymmetricMatch(t){return this.sample===String?typeof t=="string"||t instanceof String:this.sample===Number?typeof t=="number"||t instanceof Number:this.sample===Function?typeof t=="function"||t instanceof Function:this.sample===Boolean?typeof t=="boolean"||t instanceof Boolean:this.sample===BigInt?typeof t=="bigint"||t instanceof BigInt:this.sample===Symbol?typeof t=="symbol"||t instanceof Symbol:this.sample===Object?typeof t=="object":t instanceof this.sample}toString(){return"Any"}getExpectedType(){return this.sample===String?"string":this.sample===Number?"number":this.sample===Function?"function":this.sample===Object?"object":this.sample===Boolean?"boolean":this.fnNameFor(this.sample)}toAsymmetricMatcher(){return`Any<${this.fnNameFor(this.sample)}>`}}class ql extends Ut{constructor(t,r=!1){if(!nt("String",t)&&!nt("RegExp",t))throw new Error("Expected is not a String or a RegExp");super(new RegExp(t),r)}asymmetricMatch(t){const r=nt("String",t)&&this.sample.test(t);return this.inverse?!r:r}toString(){return`String${this.inverse?"Not":""}Matching`}getExpectedType(){return"string"}}class Il extends Ut{constructor(r,o=2,n=!1){if(!nt("Number",r))throw new Error("Expected is not a Number");if(!nt("Number",o))throw new Error("Precision is not a Number");super(r);te(this,"precision");this.inverse=n,this.precision=o}asymmetricMatch(r){if(!nt("Number",r))return!1;let o=!1;return r===Number.POSITIVE_INFINITY&&this.sample===Number.POSITIVE_INFINITY||r===Number.NEGATIVE_INFINITY&&this.sample===Number.NEGATIVE_INFINITY?o=!0:o=Math.abs(this.sample-r)<10**-this.precision/2,this.inverse?!o:o}toString(){return`Number${this.inverse?"Not":""}CloseTo`}getExpectedType(){return"number"}toAsymmetricMatcher(){return[this.toString(),this.sample,`(${Em("digit",this.precision)})`].join(" ")}}const Rm=(e,t)=>{t.addMethod(e.expect,"anything",()=>new Cm),t.addMethod(e.expect,"any",r=>new Tm(r)),t.addMethod(e.expect,"stringContaining",r=>new Ml(r)),t.addMethod(e.expect,"objectContaining",r=>new Al(r)),t.addMethod(e.expect,"arrayContaining",r=>new $l(r)),t.addMethod(e.expect,"stringMatching",r=>new ql(r)),t.addMethod(e.expect,"closeTo",(r,o)=>new Il(r,o)),e.expect.not={stringContaining:r=>new Ml(r,!0),objectContaining:r=>new Al(r,!0),arrayContaining:r=>new $l(r,!0),stringMatching:r=>new ql(r,!0),closeTo:(r,o)=>new Il(r,o,!0)}};function Nl(e,t){return e&&t instanceof Promise&&(t=t.finally(()=>{const r=e.promises.indexOf(t);r!==-1&&e.promises.splice(r,1)}),e.promises||(e.promises=[]),e.promises.push(t)),t}function bc(e,t){return function(...r){var o;const n=e.flag(this,"vitest-test");if(!(n!=null&&n.context._local?n.context.expect.getState():fr(globalThis[Wr])).soft)return t.apply(this,r);if(!n)throw new Error("expect.soft() can only be used inside a test");try{return t.apply(this,r)}catch(i){n.result||(n.result={state:"fail"}),n.result.state="fail",(o=n.result).errors||(o.errors=[]),n.result.errors.push(z.processError(i))}}}const Pm=(e,t)=>{const{AssertionError:r}=e,o=()=>z.getColors(),n=ks();function a(u,d){const y=g=>{const w=bc(t,d);t.addMethod(e.Assertion.prototype,g,w),t.addMethod(globalThis[Vr].matchers,g,w)};Array.isArray(u)?u.forEach(g=>y(g)):y(u)}["throw","throws","Throw"].forEach(u=>{t.overwriteMethod(e.Assertion.prototype,u,d=>function(...y){const g=t.flag(this,"promise"),w=t.flag(this,"object"),v=t.flag(this,"negate");if(g==="rejects")t.flag(this,"object",()=>{throw w});else if(g==="resolves"&&typeof w!="function"){if(v)return;{const m=t.flag(this,"message")||"expected promise to throw an error, but it didn't",R={showDiff:!1};throw new r(m,R,t.flag(this,"ssfi"))}}d.apply(this,y)})}),a("withTest",function(u){return t.flag(this,"vitest-test",u),this}),a("toEqual",function(u){const d=t.flag(this,"object"),y=ae(d,u,[...n,je]);return this.assert(y,"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",u,d)}),a("toStrictEqual",function(u){const d=t.flag(this,"object"),y=ae(d,u,[...n,je,Ol,Zi,Sl],!0);return this.assert(y,"expected #{this} to strictly equal #{exp}","expected #{this} to not strictly equal #{exp}",u,d)}),a("toBe",function(u){const d=this._obj,y=Object.is(d,u);let g="";return y||(ae(d,u,[...n,je,Ol,Zi,Sl],!0)?g="toStrictEqual":ae(d,u,[...n,je])&&(g="toEqual")),this.assert(y,wm(g),"expected #{this} not to be #{exp} // Object.is equality",u,d)}),a("toMatchObject",function(u){const d=this._obj,y=ae(d,u,[...n,je,gr]),g=t.flag(this,"negate"),{subset:w,stripped:v}=_m(d,u),m=t.getMessage(this,[y,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",u,w]);if(y&&g||!y&&!g){const R=v===0?m:`${m}
|
|
144
|
+
(${v} matching ${v===1?"property":"properties"} omitted from actual)`;throw new r(R,{showDiff:!0,expected:u,actual:w})}}),a("toMatch",function(u){const d=this._obj;if(typeof d!="string")throw new TypeError(`.toMatch() expects to receive a string, but got ${typeof d}`);return this.assert(typeof u=="string"?d.includes(u):d.match(u),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",u,d)}),a("toContain",function(u){const d=this._obj;if(typeof Node<"u"&&d instanceof Node){if(!(u instanceof Node))throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof u}`);return this.assert(d.contains(u),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",u,d)}if(typeof DOMTokenList<"u"&&d instanceof DOMTokenList){z.assertTypes(u,"class name",["string"]);const g=t.flag(this,"negate")?d.value.replace(u,"").trim():`${d.value} ${u}`;return this.assert(d.contains(u),`expected "${d.value}" to contain "${u}"`,`expected "${d.value}" not to contain "${u}"`,g,d.value)}return typeof d=="string"&&typeof u=="string"?this.assert(d.includes(u),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",u,d):(d!=null&&typeof d!="string"&&t.flag(this,"object",Array.from(d)),this.contain(u))}),a("toContainEqual",function(u){const d=t.flag(this,"object"),y=Array.from(d).findIndex(g=>ae(g,u,n));this.assert(y!==-1,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",u)}),a("toBeTruthy",function(){const u=t.flag(this,"object");this.assert(!!u,"expected #{this} to be truthy","expected #{this} to not be truthy",u,!1)}),a("toBeFalsy",function(){const u=t.flag(this,"object");this.assert(!u,"expected #{this} to be falsy","expected #{this} to not be falsy",u,!1)}),a("toBeGreaterThan",function(u){const d=this._obj;return z.assertTypes(d,"actual",["number","bigint"]),z.assertTypes(u,"expected",["number","bigint"]),this.assert(d>u,`expected ${d} to be greater than ${u}`,`expected ${d} to be not greater than ${u}`,d,u,!1)}),a("toBeGreaterThanOrEqual",function(u){const d=this._obj;return z.assertTypes(d,"actual",["number","bigint"]),z.assertTypes(u,"expected",["number","bigint"]),this.assert(d>=u,`expected ${d} to be greater than or equal to ${u}`,`expected ${d} to be not greater than or equal to ${u}`,d,u,!1)}),a("toBeLessThan",function(u){const d=this._obj;return z.assertTypes(d,"actual",["number","bigint"]),z.assertTypes(u,"expected",["number","bigint"]),this.assert(d<u,`expected ${d} to be less than ${u}`,`expected ${d} to be not less than ${u}`,d,u,!1)}),a("toBeLessThanOrEqual",function(u){const d=this._obj;return z.assertTypes(d,"actual",["number","bigint"]),z.assertTypes(u,"expected",["number","bigint"]),this.assert(d<=u,`expected ${d} to be less than or equal to ${u}`,`expected ${d} to be not less than or equal to ${u}`,d,u,!1)}),a("toBeNaN",function(){return this.be.NaN}),a("toBeUndefined",function(){return this.be.undefined}),a("toBeNull",function(){return this.be.null}),a("toBeDefined",function(){const u=t.flag(this,"negate");return t.flag(this,"negate",!1),u?this.be.undefined:this.not.be.undefined}),a("toBeTypeOf",function(u){const d=typeof this._obj,y=u===d;return this.assert(y,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",u,d)}),a("toBeInstanceOf",function(u){return this.instanceOf(u)}),a("toHaveLength",function(u){return this.have.length(u)}),a("toHaveProperty",function(...u){Array.isArray(u[0])&&(u[0]=u[0].map($=>String($).replace(/([.[\]])/g,"\\$1")).join("."));const d=this._obj,[y,g]=u,w=()=>Object.prototype.hasOwnProperty.call(d,y)?{value:d[y],exists:!0}:t.getPathInfo(d,y),{value:v,exists:m}=w(),R=m&&(u.length===1||ae(g,v,n)),M=u.length===1?"":` with value ${t.objDisplay(g)}`;return this.assert(R,`expected #{this} to have property "${y}"${M}`,`expected #{this} to not have property "${y}"${M}`,g,m?v:void 0)}),a("toBeCloseTo",function(u,d=2){const y=this._obj;let g=!1,w=0,v=0;return u===Number.POSITIVE_INFINITY&&y===Number.POSITIVE_INFINITY||u===Number.NEGATIVE_INFINITY&&y===Number.NEGATIVE_INFINITY?g=!0:(w=10**-d/2,v=Math.abs(y-u),g=v<w),this.assert(g,`expected #{this} to be close to #{exp}, received difference is ${v}, but expected ${w}`,`expected #{this} to not be close to #{exp}, received difference is ${v}, but expected ${w}`,u,y,!1)});const i=u=>{if(!cc(u._obj))throw new TypeError(`${t.inspect(u._obj)} is not a spy or a call to a spy!`)},s=u=>(i(u),u._obj),l=u=>{const d=u%10,y=u%100;return d===1&&y!==11?`${u}st`:d===2&&y!==12?`${u}nd`:d===3&&y!==13?`${u}rd`:`${u}th`},c=(u,d,y)=>(u.mock.calls&&(d+=o().gray(`
|
|
145
|
+
|
|
146
|
+
Received:
|
|
147
|
+
|
|
148
|
+
${u.mock.calls.map((g,w)=>{let v=o().bold(` ${l(w+1)} ${u.getMockName()} call:
|
|
149
|
+
|
|
150
|
+
`);return y?v+=z.diff(y,g,{omitAnnotationLines:!0}):v+=z.stringify(g).split(`
|
|
151
|
+
`).map(m=>` ${m}`).join(`
|
|
152
|
+
`),v+=`
|
|
153
|
+
`,v}).join(`
|
|
154
|
+
`)}`)),d+=o().gray(`
|
|
155
|
+
|
|
156
|
+
Number of calls: ${o().bold(u.mock.calls.length)}
|
|
157
|
+
`),d),f=(u,d,y)=>(d+=o().gray(`
|
|
158
|
+
|
|
159
|
+
Received:
|
|
160
|
+
|
|
161
|
+
${u.mock.results.map((g,w)=>{let v=o().bold(` ${l(w+1)} ${u.getMockName()} call return:
|
|
162
|
+
|
|
163
|
+
`);return y?v+=z.diff(y,g.value,{omitAnnotationLines:!0}):v+=z.stringify(g).split(`
|
|
164
|
+
`).map(m=>` ${m}`).join(`
|
|
165
|
+
`),v+=`
|
|
166
|
+
`,v}).join(`
|
|
167
|
+
`)}`),d+=o().gray(`
|
|
168
|
+
|
|
169
|
+
Number of calls: ${o().bold(u.mock.calls.length)}
|
|
170
|
+
`),d);a(["toHaveBeenCalledTimes","toBeCalledTimes"],function(u){const d=s(this),y=d.getMockName(),g=d.mock.calls.length;return this.assert(g===u,`expected "${y}" to be called #{exp} times, but got ${g} times`,`expected "${y}" to not be called #{exp} times`,u,g,!1)}),a("toHaveBeenCalledOnce",function(){const u=s(this),d=u.getMockName(),y=u.mock.calls.length;return this.assert(y===1,`expected "${d}" to be called once, but got ${y} times`,`expected "${d}" to not be called once`,1,y,!1)}),a(["toHaveBeenCalled","toBeCalled"],function(){const u=s(this),d=u.getMockName(),y=u.mock.calls.length,g=y>0,w=t.flag(this,"negate");let v=t.getMessage(this,[g,`expected "${d}" to be called at least once`,`expected "${d}" to not be called at all, but actually been called ${y} times`,!0,g]);if(g&&w&&(v=c(u,v)),g&&w||!g&&!w)throw new r(v)}),a(["toHaveBeenCalledWith","toBeCalledWith"],function(...u){const d=s(this),y=d.getMockName(),g=d.mock.calls.some(m=>ae(m,u,[...n,je])),w=t.flag(this,"negate"),v=t.getMessage(this,[g,`expected "${y}" to be called with arguments: #{exp}`,`expected "${y}" to not be called with arguments: #{exp}`,u]);if(g&&w||!g&&!w)throw new r(c(d,v,u))}),a(["toHaveBeenNthCalledWith","nthCalledWith"],function(u,...d){const y=s(this),g=y.getMockName(),w=y.mock.calls[u-1],v=y.mock.calls.length,m=u<=v;this.assert(ae(w,d,[...n,je]),`expected ${l(u)} "${g}" call to have been called with #{exp}${m?"":`, but called only ${v} times`}`,`expected ${l(u)} "${g}" call to not have been called with #{exp}`,d,w,m)}),a(["toHaveBeenLastCalledWith","lastCalledWith"],function(...u){const d=s(this),y=d.getMockName(),g=d.mock.calls[d.mock.calls.length-1];this.assert(ae(g,u,[...n,je]),`expected last "${y}" call to have been called with #{exp}`,`expected last "${y}" call to not have been called with #{exp}`,u,g)}),a(["toThrow","toThrowError"],function(u){if(typeof u=="string"||typeof u>"u"||u instanceof RegExp)return this.throws(u);const d=this._obj,y=t.flag(this,"promise"),g=t.flag(this,"negate");let w=null;if(y==="rejects")w=d;else if(y==="resolves"&&typeof d!="function"){if(g)return;{const v=t.flag(this,"message")||"expected promise to throw an error, but it didn't",m={showDiff:!1};throw new r(v,m,t.flag(this,"ssfi"))}}else{let v=!1;try{d()}catch(m){v=!0,w=m}if(!v&&!g){const m=t.flag(this,"message")||"expected function to throw an error, but it didn't",R={showDiff:!1};throw new r(m,R,t.flag(this,"ssfi"))}}if(typeof u=="function"){const v=u.name||u.prototype.constructor.name;return this.assert(w&&w instanceof u,`expected error to be instance of ${v}`,`expected error not to be instance of ${v}`,u,w)}if(u instanceof Error)return this.assert(w&&u.message===w.message,`expected error to have message: ${u.message}`,`expected error not to have message: ${u.message}`,u.message,w&&w.message);if(typeof u=="object"&&"asymmetricMatch"in u&&typeof u.asymmetricMatch=="function"){const v=u;return this.assert(w&&v.asymmetricMatch(w),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",v,w)}throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof u}"`)}),a(["toHaveReturned","toReturn"],function(){const u=s(this),d=u.getMockName(),y=u.mock.calls.length>0&&u.mock.results.some(({type:g})=>g!=="throw");this.assert(y,`expected "${d}" to be successfully called at least once`,`expected "${d}" to not be successfully called`,y,!y,!1)}),a(["toHaveReturnedTimes","toReturnTimes"],function(u){const d=s(this),y=d.getMockName(),g=d.mock.results.reduce((w,{type:v})=>v==="throw"?w:++w,0);this.assert(g===u,`expected "${y}" to be successfully called ${u} times`,`expected "${y}" to not be successfully called ${u} times`,`expected number of returns: ${u}`,`received number of returns: ${g}`,!1)}),a(["toHaveReturnedWith","toReturnWith"],function(u){const d=s(this),y=d.getMockName(),g=d.mock.results.some(({type:m,value:R})=>m==="return"&&ae(u,R)),w=t.flag(this,"negate"),v=t.getMessage(this,[g,`expected "${y}" to return with: #{exp} at least once`,`expected "${y}" to not return with: #{exp}`,u]);if(g&&w||!g&&!w)throw new r(f(d,v,u))}),a(["toHaveLastReturnedWith","lastReturnedWith"],function(u){const d=s(this),y=d.getMockName(),{value:g}=d.mock.results[d.mock.results.length-1],w=ae(g,u);this.assert(w,`expected last "${y}" call to return #{exp}`,`expected last "${y}" call to not return #{exp}`,u,g)}),a(["toHaveNthReturnedWith","nthReturnedWith"],function(u,d){const y=s(this),g=y.getMockName(),w=t.flag(this,"negate"),{type:v,value:m}=y.mock.results[u-1],R=`${l(u)} call`;!w&&v==="throw"&&e.assert.fail(`expected ${R} to return #{exp}, but instead it threw an error`);const M=ae(m,d);this.assert(M,`expected ${R} "${g}" call to return #{exp}`,`expected ${R} "${g}" call to not return #{exp}`,d,m)}),a("toSatisfy",function(u,d){return this.be.satisfy(u,d)}),t.addProperty(e.Assertion.prototype,"resolves",function(){const d=new Error("resolves");t.flag(this,"promise","resolves"),t.flag(this,"error",d);const y=t.flag(this,"vitest-test"),g=t.flag(this,"object");if(typeof(g==null?void 0:g.then)!="function")throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof g}'.`);const w=new Proxy(this,{get:(v,m,R)=>{const M=Reflect.get(v,m,R);return typeof M!="function"?M instanceof e.Assertion?w:M:async(...$)=>{const N=g.then(C=>(t.flag(this,"object",C),M.call(this,...$)),C=>{const x=new r(`promise rejected "${t.inspect(C)}" instead of resolving`,{showDiff:!1});throw x.cause=C,x.stack=d.stack.replace(d.message,x.message),x});return Nl(y,N)}}});return w}),t.addProperty(e.Assertion.prototype,"rejects",function(){const d=new Error("rejects");t.flag(this,"promise","rejects"),t.flag(this,"error",d);const y=t.flag(this,"vitest-test"),g=t.flag(this,"object"),w=typeof g=="function"?g():g;if(typeof(w==null?void 0:w.then)!="function")throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof w}'.`);const v=new Proxy(this,{get:(m,R,M)=>{const $=Reflect.get(m,R,M);return typeof $!="function"?$ instanceof e.Assertion?v:$:async(...N)=>{const C=w.then(x=>{const I=new r(`promise resolved "${t.inspect(x)}" instead of rejecting`,{showDiff:!0,expected:new Error("rejected promise"),actual:x});throw I.stack=d.stack.replace(d.message,I.message),I},x=>(t.flag(this,"object",x),$.call(this,...N)));return Nl(y,C)}}});return v})};function xm(e,t){const r=e._obj,o=hn.flag(e,"negate"),n=hn.flag(e,"promise")||"",a={...fc(),diff:z.diff,stringify:z.stringify,iterableEquality:je,subsetEquality:gr};return{state:{...fr(t),customTesters:ks(),isNot:o,utils:a,promise:n,equals:ae,suppressedErrors:[]},isNot:o,obj:r}}class kl extends Error{constructor(t,r,o){super(t),this.actual=r,this.expected=o}}function Om(e,t){return(r,o)=>{Object.entries(t).forEach(([n,a])=>{function i(...f){const{state:u,isNot:d,obj:y}=xm(this,e),g=a.call(u,y,...f);if(g&&typeof g=="object"&&g instanceof Promise)return g.then(({pass:M,message:$,actual:N,expected:C})=>{if(M&&d||!M&&!d)throw new kl($(),N,C)});const{pass:w,message:v,actual:m,expected:R}=g;if(w&&d||!w&&!d)throw new kl(v(),m,R)}const s=bc(o,i);o.addMethod(globalThis[Vr].matchers,n,s),o.addMethod(r.Assertion.prototype,n,s);class l extends Ut{constructor(u=!1,...d){super(d,u)}asymmetricMatch(u){const{pass:d}=a.call(this.getMatcherContext(e),u,...this.sample);return this.inverse?!d:d}toString(){return`${this.inverse?"not.":""}${n}`}getExpectedType(){return"any"}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map(String).join(", ")}>`}}const c=(...f)=>new l(!1,...f);Object.defineProperty(e,n,{configurable:!0,enumerable:!0,value:c,writable:!0}),Object.defineProperty(e.not,n,{configurable:!0,enumerable:!0,value:(...f)=>new l(!0,...f),writable:!0}),Object.defineProperty(globalThis[Ns],n,{configurable:!0,enumerable:!0,value:c,writable:!0})})}}const Sm=(e,t)=>{t.addMethod(e.expect,"extend",(r,o)=>{e.use(Om(r,o))})};var Dt={},Ds={exports:{}};Ds.exports;(function(e){const r=(a=0)=>i=>`\x1B[${38+a};5;${i}m`,o=(a=0)=>(i,s,l)=>`\x1B[${38+a};2;${i};${s};${l}m`;function n(){const a=new Map,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};i.color.gray=i.color.blackBright,i.bgColor.bgGray=i.bgColor.bgBlackBright,i.color.grey=i.color.blackBright,i.bgColor.bgGrey=i.bgColor.bgBlackBright;for(const[s,l]of Object.entries(i)){for(const[c,f]of Object.entries(l))i[c]={open:`\x1B[${f[0]}m`,close:`\x1B[${f[1]}m`},l[c]=i[c],a.set(f[0],f[1]);Object.defineProperty(i,s,{value:l,enumerable:!1})}return Object.defineProperty(i,"codes",{value:a,enumerable:!1}),i.color.close="\x1B[39m",i.bgColor.close="\x1B[49m",i.color.ansi256=r(),i.color.ansi16m=o(),i.bgColor.ansi256=r(10),i.bgColor.ansi16m=o(10),Object.defineProperties(i,{rgbToAnsi256:{value:(s,l,c)=>s===l&&l===c?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(l/255*5)+Math.round(c/255*5),enumerable:!1},hexToRgb:{value:s=>{const l=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(s.toString(16));if(!l)return[0,0,0];let{colorString:c}=l.groups;c.length===3&&(c=c.split("").map(u=>u+u).join(""));const f=Number.parseInt(c,16);return[f>>16&255,f>>8&255,f&255]},enumerable:!1},hexToAnsi256:{value:s=>i.rgbToAnsi256(...i.hexToRgb(s)),enumerable:!1}}),i}Object.defineProperty(e,"exports",{enumerable:!0,get:n})})(Ds);var Mm=Ds.exports,ft={};Object.defineProperty(ft,"__esModule",{value:!0});ft.printIteratorEntries=$m;ft.printIteratorValues=qm;ft.printListItems=Im;ft.printObjectProperties=Nm;const Am=(e,t)=>{const r=Object.keys(e),o=t!==null?r.sort(t):r;return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n=>{Object.getOwnPropertyDescriptor(e,n).enumerable&&o.push(n)}),o};function $m(e,t,r,o,n,a,i=": "){let s="",l=0,c=e.next();if(!c.done){s+=t.spacingOuter;const f=r+t.indent;for(;!c.done;){if(s+=f,l++===t.maxWidth){s+="…";break}const u=a(c.value[0],t,f,o,n),d=a(c.value[1],t,f,o,n);s+=u+i+d,c=e.next(),c.done?t.min||(s+=","):s+=`,${t.spacingInner}`}s+=t.spacingOuter+r}return s}function qm(e,t,r,o,n,a){let i="",s=0,l=e.next();if(!l.done){i+=t.spacingOuter;const c=r+t.indent;for(;!l.done;){if(i+=c,s++===t.maxWidth){i+="…";break}i+=a(l.value,t,c,o,n),l=e.next(),l.done?t.min||(i+=","):i+=`,${t.spacingInner}`}i+=t.spacingOuter+r}return i}function Im(e,t,r,o,n,a){let i="";if(e.length){i+=t.spacingOuter;const s=r+t.indent;for(let l=0;l<e.length;l++){if(i+=s,l===t.maxWidth){i+="…";break}l in e&&(i+=a(e[l],t,s,o,n)),l<e.length-1?i+=`,${t.spacingInner}`:t.min||(i+=",")}i+=t.spacingOuter+r}return i}function Nm(e,t,r,o,n,a){let i="";const s=Am(e,t.compareKeys);if(s.length){i+=t.spacingOuter;const l=r+t.indent;for(let c=0;c<s.length;c++){const f=s[c],u=a(f,t,l,o,n),d=a(e[f],t,l,o,n);i+=`${l+u}: ${d}`,c<s.length-1?i+=`,${t.spacingInner}`:t.min||(i+=",")}i+=t.spacingOuter+r}return i}var Rt={};Object.defineProperty(Rt,"__esModule",{value:!0});Rt.test=Rt.serialize=Rt.default=void 0;var jl=ft,Ri=globalThis["jest-symbol-do-not-touch"]||globalThis.Symbol;const km=typeof Ri=="function"&&Ri.for?Ri.for("jest.asymmetricMatcher"):1267621,Jr=" ",vc=(e,t,r,o,n,a)=>{const i=e.toString();if(i==="ArrayContaining"||i==="ArrayNotContaining")return++o>t.maxDepth?`[${i}]`:`${i+Jr}[${(0,jl.printListItems)(e.sample,t,r,o,n,a)}]`;if(i==="ObjectContaining"||i==="ObjectNotContaining")return++o>t.maxDepth?`[${i}]`:`${i+Jr}{${(0,jl.printObjectProperties)(e.sample,t,r,o,n,a)}}`;if(i==="StringMatching"||i==="StringNotMatching"||i==="StringContaining"||i==="StringNotContaining")return i+Jr+a(e.sample,t,r,o,n);if(typeof e.toAsymmetricMatcher!="function")throw new Error(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()};Rt.serialize=vc;const gc=e=>e&&e.$$typeof===km;Rt.test=gc;const jm={serialize:vc,test:gc};var Dm=jm;Rt.default=Dm;var Pt={};Object.defineProperty(Pt,"__esModule",{value:!0});Pt.test=Pt.serialize=Pt.default=void 0;var Dl=ft;const Fm=" ",wc=["DOMStringMap","NamedNodeMap"],Lm=/^(HTML\w*Collection|NodeList)$/,Bm=e=>wc.indexOf(e)!==-1||Lm.test(e),Ec=e=>e&&e.constructor&&!!e.constructor.name&&Bm(e.constructor.name);Pt.test=Ec;const Um=e=>e.constructor.name==="NamedNodeMap",_c=(e,t,r,o,n,a)=>{const i=e.constructor.name;return++o>t.maxDepth?`[${i}]`:(t.min?"":i+Fm)+(wc.indexOf(i)!==-1?`{${(0,Dl.printObjectProperties)(Um(e)?Array.from(e).reduce((s,l)=>(s[l.name]=l.value,s),{}):{...e},t,r,o,n,a)}}`:`[${(0,Dl.printListItems)(Array.from(e),t,r,o,n,a)}]`)};Pt.serialize=_c;const Hm={serialize:_c,test:Ec};var Vm=Hm;Pt.default=Vm;var xt={},Ae={},Fs={};Object.defineProperty(Fs,"__esModule",{value:!0});Fs.default=Wm;function Wm(e){return e.replace(/</g,"<").replace(/>/g,">")}Object.defineProperty(Ae,"__esModule",{value:!0});Ae.printText=Ae.printProps=Ae.printElementAsLeaf=Ae.printElement=Ae.printComment=Ae.printChildren=void 0;var Cc=zm(Fs);function zm(e){return e&&e.__esModule?e:{default:e}}const Km=(e,t,r,o,n,a,i)=>{const s=o+r.indent,l=r.colors;return e.map(c=>{const f=t[c];let u=i(f,r,s,n,a);return typeof f!="string"&&(u.indexOf(`
|
|
171
|
+
`)!==-1&&(u=r.spacingOuter+s+u+r.spacingOuter+o),u=`{${u}}`),`${r.spacingInner+o+l.prop.open+c+l.prop.close}=${l.value.open}${u}${l.value.close}`}).join("")};Ae.printProps=Km;const Ym=(e,t,r,o,n,a)=>e.map(i=>t.spacingOuter+r+(typeof i=="string"?Tc(i,t):a(i,t,r,o,n))).join("");Ae.printChildren=Ym;const Tc=(e,t)=>{const r=t.colors.content;return r.open+(0,Cc.default)(e)+r.close};Ae.printText=Tc;const Gm=(e,t)=>{const r=t.colors.comment;return`${r.open}<!--${(0,Cc.default)(e)}-->${r.close}`};Ae.printComment=Gm;const Xm=(e,t,r,o,n)=>{const a=o.colors.tag;return`${a.open}<${e}${t&&a.close+t+o.spacingOuter+n+a.open}${r?`>${a.close}${r}${o.spacingOuter}${n}${a.open}</${e}`:`${t&&!o.min?"":" "}/`}>${a.close}`};Ae.printElement=Xm;const Jm=(e,t)=>{const r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`};Ae.printElementAsLeaf=Jm;Object.defineProperty(xt,"__esModule",{value:!0});xt.test=xt.serialize=xt.default=void 0;var ar=Ae;const Qm=1,Rc=3,Pc=8,xc=11,Zm=/^((HTML|SVG)\w*)?Element$/,eh=e=>{try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}},th=e=>{const t=e.constructor.name,{nodeType:r,tagName:o}=e,n=typeof o=="string"&&o.includes("-")||eh(e);return r===Qm&&(Zm.test(t)||n)||r===Rc&&t==="Text"||r===Pc&&t==="Comment"||r===xc&&t==="DocumentFragment"},Oc=e=>{var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.name)&&th(e)};xt.test=Oc;function rh(e){return e.nodeType===Rc}function nh(e){return e.nodeType===Pc}function Pi(e){return e.nodeType===xc}const Sc=(e,t,r,o,n,a)=>{if(rh(e))return(0,ar.printText)(e.data,t);if(nh(e))return(0,ar.printComment)(e.data,t);const i=Pi(e)?"DocumentFragment":e.tagName.toLowerCase();return++o>t.maxDepth?(0,ar.printElementAsLeaf)(i,t):(0,ar.printElement)(i,(0,ar.printProps)(Pi(e)?[]:Array.from(e.attributes,s=>s.name).sort(),Pi(e)?{}:Array.from(e.attributes).reduce((s,l)=>(s[l.name]=l.value,s),{}),t,r+t.indent,o,n,a),(0,ar.printChildren)(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,o,n,a),t,r)};xt.serialize=Sc;const oh={serialize:Sc,test:Oc};var ah=oh;xt.default=ah;var Ot={};Object.defineProperty(Ot,"__esModule",{value:!0});Ot.test=Ot.serialize=Ot.default=void 0;var Nr=ft;const ih="@@__IMMUTABLE_ITERABLE__@@",sh="@@__IMMUTABLE_LIST__@@",lh="@@__IMMUTABLE_KEYED__@@",uh="@@__IMMUTABLE_MAP__@@",Fl="@@__IMMUTABLE_ORDERED__@@",ch="@@__IMMUTABLE_RECORD__@@",dh="@@__IMMUTABLE_SEQ__@@",fh="@@__IMMUTABLE_SET__@@",ph="@@__IMMUTABLE_STACK__@@",hr=e=>`Immutable.${e}`,xn=e=>`[${e}]`,kr=" ",Ll="…",mh=(e,t,r,o,n,a,i)=>++o>t.maxDepth?xn(hr(i)):`${hr(i)+kr}{${(0,Nr.printIteratorEntries)(e.entries(),t,r,o,n,a)}}`;function hh(e){let t=0;return{next(){if(t<e._keys.length){const r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}const yh=(e,t,r,o,n,a)=>{const i=hr(e._name||"Record");return++o>t.maxDepth?xn(i):`${i+kr}{${(0,Nr.printIteratorEntries)(hh(e),t,r,o,n,a)}}`},bh=(e,t,r,o,n,a)=>{const i=hr("Seq");return++o>t.maxDepth?xn(i):e[lh]?`${i+kr}{${e._iter||e._object?(0,Nr.printIteratorEntries)(e.entries(),t,r,o,n,a):Ll}}`:`${i+kr}[${e._iter||e._array||e._collection||e._iterable?(0,Nr.printIteratorValues)(e.values(),t,r,o,n,a):Ll}]`},xi=(e,t,r,o,n,a,i)=>++o>t.maxDepth?xn(hr(i)):`${hr(i)+kr}[${(0,Nr.printIteratorValues)(e.values(),t,r,o,n,a)}]`,Mc=(e,t,r,o,n,a)=>e[uh]?mh(e,t,r,o,n,a,e[Fl]?"OrderedMap":"Map"):e[sh]?xi(e,t,r,o,n,a,"List"):e[fh]?xi(e,t,r,o,n,a,e[Fl]?"OrderedSet":"Set"):e[ph]?xi(e,t,r,o,n,a,"Stack"):e[dh]?bh(e,t,r,o,n,a):yh(e,t,r,o,n,a);Ot.serialize=Mc;const Ac=e=>e&&(e[ih]===!0||e[ch]===!0);Ot.test=Ac;const vh={serialize:Mc,test:Ac};var gh=vh;Ot.default=gh;var St={},es={exports:{}},re={};/**
|
|
172
|
+
* @license React
|
|
173
|
+
* react-is.production.min.js
|
|
174
|
+
*
|
|
175
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
176
|
+
*
|
|
177
|
+
* This source code is licensed under the MIT license found in the
|
|
178
|
+
* LICENSE file in the root directory of this source tree.
|
|
179
|
+
*/var Bl;function wh(){if(Bl)return re;Bl=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function w(v){if(typeof v=="object"&&v!==null){var m=v.$$typeof;switch(m){case e:switch(v=v.type,v){case r:case n:case o:case c:case f:return v;default:switch(v=v&&v.$$typeof,v){case s:case i:case l:case d:case u:case a:return v;default:return m}}case t:return m}}}return re.ContextConsumer=i,re.ContextProvider=a,re.Element=e,re.ForwardRef=l,re.Fragment=r,re.Lazy=d,re.Memo=u,re.Portal=t,re.Profiler=n,re.StrictMode=o,re.Suspense=c,re.SuspenseList=f,re.isAsyncMode=function(){return!1},re.isConcurrentMode=function(){return!1},re.isContextConsumer=function(v){return w(v)===i},re.isContextProvider=function(v){return w(v)===a},re.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},re.isForwardRef=function(v){return w(v)===l},re.isFragment=function(v){return w(v)===r},re.isLazy=function(v){return w(v)===d},re.isMemo=function(v){return w(v)===u},re.isPortal=function(v){return w(v)===t},re.isProfiler=function(v){return w(v)===n},re.isStrictMode=function(v){return w(v)===o},re.isSuspense=function(v){return w(v)===c},re.isSuspenseList=function(v){return w(v)===f},re.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===n||v===o||v===c||v===f||v===y||typeof v=="object"&&v!==null&&(v.$$typeof===d||v.$$typeof===u||v.$$typeof===a||v.$$typeof===i||v.$$typeof===l||v.$$typeof===g||v.getModuleId!==void 0)},re.typeOf=w,re}var ne={};/**
|
|
180
|
+
* @license React
|
|
181
|
+
* react-is.development.js
|
|
182
|
+
*
|
|
183
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
184
|
+
*
|
|
185
|
+
* This source code is licensed under the MIT license found in the
|
|
186
|
+
* LICENSE file in the root directory of this source tree.
|
|
187
|
+
*/var Ul;function Eh(){return Ul||(Ul=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),g=!1,w=!1,v=!1,m=!1,R=!1,M;M=Symbol.for("react.module.reference");function $(L){return!!(typeof L=="string"||typeof L=="function"||L===r||L===n||R||L===o||L===c||L===f||m||L===y||g||w||v||typeof L=="object"&&L!==null&&(L.$$typeof===d||L.$$typeof===u||L.$$typeof===a||L.$$typeof===i||L.$$typeof===l||L.$$typeof===M||L.getModuleId!==void 0))}function N(L){if(typeof L=="object"&&L!==null){var Ue=L.$$typeof;switch(Ue){case e:var ie=L.type;switch(ie){case r:case n:case o:case c:case f:return ie;default:var xe=ie&&ie.$$typeof;switch(xe){case s:case i:case l:case d:case u:case a:return xe;default:return Ue}}case t:return Ue}}}var C=i,x=a,I=e,Z=l,K=r,oe=d,ce=u,F=t,U=n,_e=o,de=c,pe=f,Ce=!1,Ie=!1;function Ge(L){return Ce||(Ce=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Oe(L){return Ie||(Ie=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Ne(L){return N(L)===i}function Xe(L){return N(L)===a}function De(L){return typeof L=="object"&&L!==null&&L.$$typeof===e}function Te(L){return N(L)===l}function ot(L){return N(L)===r}function Je(L){return N(L)===d}function at(L){return N(L)===u}function st(L){return N(L)===t}function lt(L){return N(L)===n}function B(L){return N(L)===o}function Se(L){return N(L)===c}function Fe(L){return N(L)===f}ne.ContextConsumer=C,ne.ContextProvider=x,ne.Element=I,ne.ForwardRef=Z,ne.Fragment=K,ne.Lazy=oe,ne.Memo=ce,ne.Portal=F,ne.Profiler=U,ne.StrictMode=_e,ne.Suspense=de,ne.SuspenseList=pe,ne.isAsyncMode=Ge,ne.isConcurrentMode=Oe,ne.isContextConsumer=Ne,ne.isContextProvider=Xe,ne.isElement=De,ne.isForwardRef=Te,ne.isFragment=ot,ne.isLazy=Je,ne.isMemo=at,ne.isPortal=st,ne.isProfiler=lt,ne.isStrictMode=B,ne.isSuspense=Se,ne.isSuspenseList=Fe,ne.isValidElementType=$,ne.typeOf=N}()),ne}process.env.NODE_ENV==="production"?es.exports=wh():es.exports=Eh();var _h=es.exports;Object.defineProperty(St,"__esModule",{value:!0});St.test=St.serialize=St.default=void 0;var Kt=Ch(_h),Qr=Ae;function $c(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return($c=function(o){return o?r:t})(e)}function Ch(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=$c(t);if(r&&r.has(e))return r.get(e);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=n?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(o,a,i):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}const qc=(e,t=[])=>(Array.isArray(e)?e.forEach(r=>{qc(r,t)}):e!=null&&e!==!1&&t.push(e),t),Hl=e=>{const t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(Kt.isFragment(e))return"React.Fragment";if(Kt.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(Kt.isContextProvider(e))return"Context.Provider";if(Kt.isContextConsumer(e))return"Context.Consumer";if(Kt.isForwardRef(e)){if(t.displayName)return t.displayName;const r=t.render.displayName||t.render.name||"";return r!==""?`ForwardRef(${r})`:"ForwardRef"}if(Kt.isMemo(e)){const r=t.displayName||t.type.displayName||t.type.name||"";return r!==""?`Memo(${r})`:"Memo"}}return"UNDEFINED"},Th=e=>{const{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()},Ic=(e,t,r,o,n,a)=>++o>t.maxDepth?(0,Qr.printElementAsLeaf)(Hl(e),t):(0,Qr.printElement)(Hl(e),(0,Qr.printProps)(Th(e),e.props,t,r+t.indent,o,n,a),(0,Qr.printChildren)(qc(e.props.children),t,r+t.indent,o,n,a),t,r);St.serialize=Ic;const Nc=e=>e!=null&&Kt.isElement(e);St.test=Nc;const Rh={serialize:Ic,test:Nc};var Ph=Rh;St.default=Ph;var Mt={};Object.defineProperty(Mt,"__esModule",{value:!0});Mt.test=Mt.serialize=Mt.default=void 0;var Zr=Ae,Oi=globalThis["jest-symbol-do-not-touch"]||globalThis.Symbol;const xh=typeof Oi=="function"&&Oi.for?Oi.for("react.test.json"):245830487,Oh=e=>{const{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]},kc=(e,t,r,o,n,a)=>++o>t.maxDepth?(0,Zr.printElementAsLeaf)(e.type,t):(0,Zr.printElement)(e.type,e.props?(0,Zr.printProps)(Oh(e),e.props,t,r+t.indent,o,n,a):"",e.children?(0,Zr.printChildren)(e.children,t,r+t.indent,o,n,a):"",t,r);Mt.serialize=kc;const jc=e=>e&&e.$$typeof===xh;Mt.test=jc;const Sh={serialize:kc,test:jc};var Mh=Sh;Mt.default=Mh;Object.defineProperty(Dt,"__esModule",{value:!0});Dt.default=Dt.DEFAULT_OPTIONS=void 0;var Ah=Dt.format=Gc,Dc=Dt.plugins=void 0,$h=er(Mm),Tr=ft,qh=er(Rt),Ih=er(Pt),Nh=er(xt),kh=er(Ot),jh=er(St),Dh=er(Mt);function er(e){return e&&e.__esModule?e:{default:e}}const Fc=Object.prototype.toString,Fh=Date.prototype.toISOString,Lh=Error.prototype.toString,Vl=RegExp.prototype.toString,Si=e=>typeof e.constructor=="function"&&e.constructor.name||"Object",Bh=e=>typeof window<"u"&&e===window,Uh=/^Symbol\((.*)\)(.*)$/,Hh=/\n/gi;let Lc=class extends Error{constructor(t,r){super(t),this.stack=r,this.name=this.constructor.name}};function Vh(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function Wh(e){return Object.is(e,-0)?"-0":String(e)}function zh(e){return`${e}n`}function Wl(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function zl(e){return String(e).replace(Uh,"Symbol($1)")}function Kl(e){return`[${Lh.call(e)}]`}function Bc(e,t,r,o){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";const n=typeof e;if(n==="number")return Wh(e);if(n==="bigint")return zh(e);if(n==="string")return o?`"${e.replace(/"|\\/g,"\\$&")}"`:`"${e}"`;if(n==="function")return Wl(e,t);if(n==="symbol")return zl(e);const a=Fc.call(e);return a==="[object WeakMap]"?"WeakMap {}":a==="[object WeakSet]"?"WeakSet {}":a==="[object Function]"||a==="[object GeneratorFunction]"?Wl(e,t):a==="[object Symbol]"?zl(e):a==="[object Date]"?isNaN(+e)?"Date { NaN }":Fh.call(e):a==="[object Error]"?Kl(e):a==="[object RegExp]"?r?Vl.call(e).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):Vl.call(e):e instanceof Error?Kl(e):null}function Uc(e,t,r,o,n,a){if(n.indexOf(e)!==-1)return"[Circular]";n=n.slice(),n.push(e);const i=++o>t.maxDepth,s=t.min;if(t.callToJSON&&!i&&e.toJSON&&typeof e.toJSON=="function"&&!a)return Et(e.toJSON(),t,r,o,n,!0);const l=Fc.call(e);return l==="[object Arguments]"?i?"[Arguments]":`${s?"":"Arguments "}[${(0,Tr.printListItems)(e,t,r,o,n,Et)}]`:Vh(l)?i?`[${e.constructor.name}]`:`${s||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${(0,Tr.printListItems)(e,t,r,o,n,Et)}]`:l==="[object Map]"?i?"[Map]":`Map {${(0,Tr.printIteratorEntries)(e.entries(),t,r,o,n,Et," => ")}}`:l==="[object Set]"?i?"[Set]":`Set {${(0,Tr.printIteratorValues)(e.values(),t,r,o,n,Et)}}`:i||Bh(e)?`[${Si(e)}]`:`${s||!t.printBasicPrototype&&Si(e)==="Object"?"":`${Si(e)} `}{${(0,Tr.printObjectProperties)(e,t,r,o,n,Et)}}`}function Kh(e){return e.serialize!=null}function Hc(e,t,r,o,n,a){let i;try{i=Kh(e)?e.serialize(t,r,o,n,a,Et):e.print(t,s=>Et(s,r,o,n,a),s=>{const l=o+r.indent;return l+s.replace(Hh,`
|
|
188
|
+
${l}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(s){throw new Lc(s.message,s.stack)}if(typeof i!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof i}".`);return i}function Vc(e,t){for(let r=0;r<e.length;r++)try{if(e[r].test(t))return e[r]}catch(o){throw new Lc(o.message,o.stack)}return null}function Et(e,t,r,o,n,a){const i=Vc(t.plugins,e);if(i!==null)return Hc(i,e,t,r,o,n);const s=Bc(e,t.printFunctionName,t.escapeRegex,t.escapeString);return s!==null?s:Uc(e,t,r,o,n,a)}const Ls={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},Wc=Object.keys(Ls),Yh=e=>e,ze=Yh({callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,maxWidth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:Ls});Dt.DEFAULT_OPTIONS=ze;function Gh(e){if(Object.keys(e).forEach(t=>{if(!Object.prototype.hasOwnProperty.call(ze,t))throw new Error(`pretty-format: Unknown option "${t}".`)}),e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(e.theme!==void 0){if(e.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof e.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof e.theme}".`)}}const Xh=e=>Wc.reduce((t,r)=>{const o=e.theme&&e.theme[r]!==void 0?e.theme[r]:Ls[r],n=o&&$h.default[o];if(n&&typeof n.close=="string"&&typeof n.open=="string")t[r]=n;else throw new Error(`pretty-format: Option "theme" has a key "${r}" whose value "${o}" is undefined in ansi-styles.`);return t},Object.create(null)),Jh=()=>Wc.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null)),zc=e=>(e==null?void 0:e.printFunctionName)??ze.printFunctionName,Kc=e=>(e==null?void 0:e.escapeRegex)??ze.escapeRegex,Yc=e=>(e==null?void 0:e.escapeString)??ze.escapeString,Yl=e=>({callToJSON:(e==null?void 0:e.callToJSON)??ze.callToJSON,colors:e!=null&&e.highlight?Xh(e):Jh(),compareKeys:typeof(e==null?void 0:e.compareKeys)=="function"||(e==null?void 0:e.compareKeys)===null?e.compareKeys:ze.compareKeys,escapeRegex:Kc(e),escapeString:Yc(e),indent:e!=null&&e.min?"":Qh((e==null?void 0:e.indent)??ze.indent),maxDepth:(e==null?void 0:e.maxDepth)??ze.maxDepth,maxWidth:(e==null?void 0:e.maxWidth)??ze.maxWidth,min:(e==null?void 0:e.min)??ze.min,plugins:(e==null?void 0:e.plugins)??ze.plugins,printBasicPrototype:(e==null?void 0:e.printBasicPrototype)??!0,printFunctionName:zc(e),spacingInner:e!=null&&e.min?" ":`
|
|
189
|
+
`,spacingOuter:e!=null&&e.min?"":`
|
|
190
|
+
`});function Qh(e){return new Array(e+1).join(" ")}function Gc(e,t){if(t&&(Gh(t),t.plugins)){const o=Vc(t.plugins,e);if(o!==null)return Hc(o,e,Yl(t),"",0,[])}const r=Bc(e,zc(t),Kc(t),Yc(t));return r!==null?r:Uc(e,Yl(t),"",0,[])}const Zh={AsymmetricMatcher:qh.default,DOMCollection:Ih.default,DOMElement:Nh.default,Immutable:kh.default,ReactElement:jh.default,ReactTestComponent:Dh.default};Dc=Dt.plugins=Zh;var ey=Gc;Dt.default=ey;function ty(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xc={exports:{}};/*
|
|
191
|
+
* @version 1.4.0
|
|
192
|
+
* @date 2015-10-26
|
|
193
|
+
* @stability 3 - Stable
|
|
194
|
+
* @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
|
|
195
|
+
* @license MIT License
|
|
196
|
+
*/var Gl=function(e,t){var r,o,n=1,a=0,i=0,s=String.alphabet;function l(c,f,u){if(u){for(r=f;u=l(c,r),u<76&&u>65;)++r;return+c.slice(f-1,r)}return u=s&&s.indexOf(c.charAt(f)),u>-1?u+76:(u=c.charCodeAt(f)||0,u<45||u>127?u:u<46?65:u<48?u-1:u<58?u+18:u<65?u-11:u<91?u+11:u<97?u-37:u<123?u+5:u-63)}if((e+="")!=(t+="")){for(;n;)if(o=l(e,a++),n=l(t,i++),o<76&&n<76&&o>66&&n>66&&(o=l(e,a,a),n=l(t,i,a=r),i=r),o!=n)return o<n?-1:1}return 0};try{Xc.exports=Gl}catch{String.naturalCompare=Gl}var ry=Xc.exports,ny=ty(ry);function Jc(e){return e!=null}function oy(e){return e===null||typeof e!="function"&&typeof e!="object"}function cn(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function ay(e){let t=-1,r=null,o=0,n=0,a=null;for(;t<=e.length;){a=e[t],t++;const i=e[t];if((i==='"'||i==="'"||i==="`")&&a!=="\\"&&(r===i?r=null:r||(r=i)),r||(i==="("&&o++,i===")"&&n++),o&&n&&o===n)return t}return null}let iy=()=>"Promise{…}";try{const{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(iy=(o,n)=>{const[a,i]=e(o);return a===t?"Promise{<pending>}":`Promise${a===r?"!":""}{${n.inspect(i,n)}}`})}catch{}let Xl=!1;try{const e=require("util");Xl=e.inspect?e.inspect.custom:!1}catch{Xl=!1}const Bs=/\r?\n/;function sy(e,t,r){const o=e.split(Bs),n=/\r\n/.test(e)?2:1;let a=0;if(t>o.length)return e.length;for(let i=0;i<t-1;i++)a+=o[i].length+n;return a+r}function ly(e,t){if(t>e.length)throw new Error(`offset is longer than source length! offset ${t} > length ${e.length}`);const r=e.split(Bs),o=/\r\n/.test(e)?2:1;let n=0,a=0;for(;a<r.length;a++){const i=r[a].length+o;if(n+i>=t)break;n+=i}return a+1}var Qc;Qc=/\r?\n|[\r\u2028\u2029]/y;RegExp(Qc.source);var Zc={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(Zc.keyword);new Set(Zc.strict);const uy=(e,t,r,o,n,a)=>{const i=e.getMockName(),s=i==="vi.fn()"?"":` ${i}`;let l="";if(e.mock.calls.length!==0){const c=r+t.indent;l=` {${t.spacingOuter}${c}"calls": ${a(e.mock.calls,t,c,o,n)}${t.min?", ":","}${t.spacingOuter}${c}"results": ${a(e.mock.results,t,c,o,n)}${t.min?"":","}${t.spacingOuter}${r}}`}return`[MockFunction${s}]${l}`},cy=e=>e&&!!e._isMockFunction,dy={serialize:uy,test:cy},{DOMCollection:fy,DOMElement:py,Immutable:my,ReactElement:hy,ReactTestComponent:yy,AsymmetricMatcher:by}=Dc;let ts=[yy,hy,py,fy,my,by,dy];function vy(e){ts=[e].concat(ts)}function gy(){return ts}function wy(e,t){return`${e} ${t}`}function Ey(e){if(!/ \d+$/.test(e))throw new Error("Snapshot keys must end with a number.");return e.replace(/ \d+$/,"")}function _y(e,t){const r=t.updateSnapshot,o=Object.create(null);let n="",a=!1;if(e!=null)try{n=e,new Function("exports",n)(o)}catch{}return(r==="all"||r==="new")&&n&&(a=!0),{data:o,dirty:a}}function Cy(e){return e.includes(`
|
|
197
|
+
`)?`
|
|
198
|
+
${e}
|
|
199
|
+
`:e}function Jl(e){return e.length>2&&e.startsWith(`
|
|
200
|
+
`)&&e.endsWith(`
|
|
201
|
+
`)?e.slice(1,-1):e}const Ty=!0,Ry=!1;function Py(e,t=2,r={}){return Us(Ah(e,{escapeRegex:Ty,indent:t,plugins:gy(),printFunctionName:Ry,...r}))}function xy(e){return e.replace(/`|\\|\${/g,"\\$&")}function Ql(e){return`\`${xy(e)}\``}function Us(e){return e.replace(/\r\n|\r/g,`
|
|
202
|
+
`)}async function Oy(e,t,r){const o=Object.keys(t).sort(ny).map(s=>`exports[${Ql(s)}] = ${Ql(Us(t[s]))};`),n=`${e.getHeader()}
|
|
203
|
+
|
|
204
|
+
${o.join(`
|
|
205
|
+
|
|
206
|
+
`)}
|
|
207
|
+
`,a=await e.readSnapshotFile(r);a!=null&&a===n||await e.saveSnapshotFile(r,n)}function Zl(e){function t(){var n,a;const i=/^( +)}\s+$/m.exec(e||""),s=(n=i==null?void 0:i[1])==null?void 0:n.length;if(s)return s;const l=/^\n( +)"/.exec(e||"");return((a=l==null?void 0:l[1])==null?void 0:a.length)||0}const r=t();let o=e==null?void 0:e.trim();return r&&(o=o==null?void 0:o.replace(new RegExp(`^${" ".repeat(r)}`,"gm"),"").replace(/ +}$/,"}")),o}function rs(e=[],t=[]){const r=Array.from(e);return t.forEach((o,n)=>{const a=r[n];Array.isArray(e[n])?r[n]=rs(e[n],o):cn(a)?r[n]=Hs(e[n],o):r[n]=o}),r}function Hs(e,t){if(cn(e)&&cn(t)){const r={...e};return Object.keys(t).forEach(o=>{cn(t[o])&&!t[o].$$typeof?o in e?r[o]=Hs(e[o],t[o]):Object.assign(r,{[o]:t[o]}):Array.isArray(t[o])?r[o]=rs(e[o],t[o]):Object.assign(r,{[o]:t[o]})}),r}else if(Array.isArray(e)&&Array.isArray(t))return rs(e,t);return e}const Sy=44,eu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",My=new Uint8Array(64),ed=new Uint8Array(128);for(let e=0;e<eu.length;e++){const t=eu.charCodeAt(e);My[e]=t,ed[t]=e}function Ay(e){const t=new Int32Array(5),r=[];let o=0;do{const n=$y(e,o),a=[];let i=!0,s=0;t[0]=0;for(let l=o;l<n;l++){let c;l=Rr(e,l,t,0);const f=t[0];f<s&&(i=!1),s=f,tu(e,l,n)?(l=Rr(e,l,t,1),l=Rr(e,l,t,2),l=Rr(e,l,t,3),tu(e,l,n)?(l=Rr(e,l,t,4),c=[f,t[1],t[2],t[3],t[4]]):c=[f,t[1],t[2],t[3]]):c=[f],a.push(c)}i||qy(a),r.push(a),o=n+1}while(o<=e.length);return r}function $y(e,t){const r=e.indexOf(";",t);return r===-1?e.length:r}function Rr(e,t,r,o){let n=0,a=0,i=0;do{const l=e.charCodeAt(t++);i=ed[l],n|=(i&31)<<a,a+=5}while(i&32);const s=n&1;return n>>>=1,s&&(n=-2147483648|-n),r[o]+=n,t}function tu(e,t,r){return t>=r?!1:e.charCodeAt(t)!==Sy}function qy(e){e.sort(Iy)}function Iy(e,t){return e[0]-t[0]}const Ny=/^[\w+.-]+:\/\//,ky=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,jy=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var Ee;(function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute"})(Ee||(Ee={}));function Dy(e){return Ny.test(e)}function Fy(e){return e.startsWith("//")}function td(e){return e.startsWith("/")}function Ly(e){return e.startsWith("file:")}function ru(e){return/^[.?#]/.test(e)}function en(e){const t=ky.exec(e);return rd(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function By(e){const t=jy.exec(e),r=t[2];return rd("file:","",t[1]||"","",td(r)?r:"/"+r,t[3]||"",t[4]||"")}function rd(e,t,r,o,n,a,i){return{scheme:e,user:t,host:r,port:o,path:n,query:a,hash:i,type:Ee.Absolute}}function nu(e){if(Fy(e)){const r=en("http:"+e);return r.scheme="",r.type=Ee.SchemeRelative,r}if(td(e)){const r=en("http://foo.com"+e);return r.scheme="",r.host="",r.type=Ee.AbsolutePath,r}if(Ly(e))return By(e);if(Dy(e))return en(e);const t=en("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?Ee.Query:e.startsWith("#")?Ee.Hash:Ee.RelativePath:Ee.Empty,t}function Uy(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function Hy(e,t){nd(t,t.type),e.path==="/"?e.path=t.path:e.path=Uy(t.path)+e.path}function nd(e,t){const r=t<=Ee.RelativePath,o=e.path.split("/");let n=1,a=0,i=!1;for(let l=1;l<o.length;l++){const c=o[l];if(!c){i=!0;continue}if(i=!1,c!=="."){if(c===".."){a?(i=!0,a--,n--):r&&(o[n++]=c);continue}o[n++]=c,a++}}let s="";for(let l=1;l<n;l++)s+="/"+o[l];(!s||i&&!s.endsWith("/.."))&&(s+="/"),e.path=s}function Vy(e,t){if(!e&&!t)return"";const r=nu(e);let o=r.type;if(t&&o!==Ee.Absolute){const a=nu(t),i=a.type;switch(o){case Ee.Empty:r.hash=a.hash;case Ee.Hash:r.query=a.query;case Ee.Query:case Ee.RelativePath:Hy(r,a);case Ee.AbsolutePath:r.user=a.user,r.host=a.host,r.port=a.port;case Ee.SchemeRelative:r.scheme=a.scheme}i>o&&(o=i)}nd(r,o);const n=r.query+r.hash;switch(o){case Ee.Hash:case Ee.Query:return n;case Ee.RelativePath:{const a=r.path.slice(1);return a?ru(t||e)&&!ru(a)?"./"+a+n:a+n:n||"."}case Ee.AbsolutePath:return r.path+n;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+n}}function ou(e,t){return t&&!t.endsWith("/")&&(t+="/"),Vy(e,t)}function Wy(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const Ft=0,zy=1,Ky=2,Yy=3,Gy=4;function Xy(e,t){const r=au(e,0);if(r===e.length)return e;t||(e=e.slice());for(let o=r;o<e.length;o=au(e,o+1))e[o]=Qy(e[o],t);return e}function au(e,t){for(let r=t;r<e.length;r++)if(!Jy(e[r]))return r;return e.length}function Jy(e){for(let t=1;t<e.length;t++)if(e[t][Ft]<e[t-1][Ft])return!1;return!0}function Qy(e,t){return t||(e=e.slice()),e.sort(Zy)}function Zy(e,t){return e[Ft]-t[Ft]}let bn=!1;function eb(e,t,r,o){for(;r<=o;){const n=r+(o-r>>1),a=e[n][Ft]-t;if(a===0)return bn=!0,n;a<0?r=n+1:o=n-1}return bn=!1,r-1}function tb(e,t,r){for(let o=r+1;o<e.length&&e[o][Ft]===t;r=o++);return r}function rb(e,t,r){for(let o=r-1;o>=0&&e[o][Ft]===t;r=o--);return r}function nb(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function ob(e,t,r,o){const{lastKey:n,lastNeedle:a,lastIndex:i}=r;let s=0,l=e.length-1;if(o===n){if(t===a)return bn=i!==-1&&e[i][Ft]===t,i;t>=a?s=i===-1?0:i:l=i}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=eb(e,t,s,l)}const ab="`line` must be greater than 0 (lines start at line 1)",ib="`column` must be greater than or equal to 0 (columns start at column 0)",iu=-1,sb=1;let su,od;class lb{constructor(t,r){const o=typeof t=="string";if(!o&&t._decodedMemo)return t;const n=o?JSON.parse(t):t,{version:a,file:i,names:s,sourceRoot:l,sources:c,sourcesContent:f}=n;this.version=a,this.file=i,this.names=s||[],this.sourceRoot=l,this.sources=c,this.sourcesContent=f;const u=ou(l||"",Wy(r));this.resolvedSources=c.map(y=>ou(y||"",u));const{mappings:d}=n;typeof d=="string"?(this._encoded=d,this._decoded=void 0):(this._encoded=void 0,this._decoded=Xy(d,o)),this._decodedMemo=nb(),this._bySources=void 0,this._bySourceMemos=void 0}}su=e=>e._decoded||(e._decoded=Ay(e._encoded)),od=(e,{line:t,column:r,bias:o})=>{if(t--,t<0)throw new Error(ab);if(r<0)throw new Error(ib);const n=su(e);if(t>=n.length)return tn(null,null,null,null);const a=n[t],i=ub(a,e._decodedMemo,t,r,o||sb);if(i===-1)return tn(null,null,null,null);const s=a[i];if(s.length===1)return tn(null,null,null,null);const{names:l,resolvedSources:c}=e;return tn(c[s[zy]],s[Ky]+1,s[Yy],s.length===5?l[s[Gy]]:null)};function tn(e,t,r,o){return{source:e,line:t,column:r,name:o}}function ub(e,t,r,o,n){let a=ob(e,o,t,r);return bn?a=(n===iu?tb:rb)(e,o,a):n===iu&&a++,a===-1||a===e.length?-1:a}const ad=/^\s*at .*(\S+:\d+|\(native\))/m,cb=/^(eval@)?(\[native code])?$/,db=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/deps/chai.js",/__vitest_browser__/];function id(e){if(!e.includes(":"))return[e];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!r)return[e];let o=r[1];return(o.startsWith("http:")||o.startsWith("https:"))&&(o=new URL(o).pathname),o.startsWith("/@fs/")&&(o=o.slice(typeof process<"u"&&process.platform==="win32"?5:4)),[o,r[2]||void 0,r[3]||void 0]}function fb(e){let t=e.trim();if(cb.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":")))return null;const r=/((.*".+"[^@]*)?[^@]*)(?:@)/,o=t.match(r),n=o&&o[1]?o[1]:void 0,[a,i,s]=id(t.replace(r,""));return!a||!i||!s?null:{file:a,method:n||"",line:Number.parseInt(i),column:Number.parseInt(s)}}function pb(e){let t=e.trim();if(!ad.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=r.match(/ (\(.+\)$)/);r=o?r.replace(o[0],""):r;const[n,a,i]=id(o?o[1]:r);let s=o&&r||"",l=n&&["eval","<anonymous>"].includes(n)?void 0:n;return!l||!a||!i?null:(s.startsWith("async ")&&(s=s.slice(6)),l.startsWith("file://")&&(l=l.slice(7)),l=Pp(l),s&&(s=s.replace(/__vite_ssr_import_\d+__\./g,"")),{method:s,file:l,line:Number.parseInt(a),column:Number.parseInt(i)})}function mb(e,t={}){const{ignoreStackEntries:r=db}=t;let o=ad.test(e)?yb(e):hb(e);return r.length&&(o=o.filter(n=>!r.some(a=>n.file.match(a)))),o.map(n=>{var a;const i=(a=t.getSourceMap)==null?void 0:a.call(t,n.file);if(!i||typeof i!="object"||!i.version)return n;const s=new lb(i),{line:l,column:c}=od(s,n);return l!=null&&c!=null?{...n,line:l,column:c}:n})}function hb(e){return e.split(`
|
|
208
|
+
`).map(t=>fb(t)).filter(Jc)}function yb(e){return e.split(`
|
|
209
|
+
`).map(t=>pb(t)).filter(Jc)}function bb(e,t={}){if(!e||oy(e))return[];if(e.stacks)return e.stacks;const r=e.stack||e.stackStr||"";let o=mb(r,t);return t.frameFilter&&(o=o.filter(n=>t.frameFilter(e,n)!==!1)),e.stacks=o,o}async function vb(e,t){const r=(await Promise.resolve().then(()=>require("../magic-string.es.cjs"))).default,o=new Set(t.map(n=>n.file));await Promise.all(Array.from(o).map(async n=>{const a=t.filter(c=>c.file===n),i=await e.readSnapshotFile(n),s=new r(i);for(const c of a){const f=sy(i,c.line,c.column);Cb(i,s,f,c.snapshot)}const l=s.toString();l!==i&&await e.saveSnapshotFile(n,l)}))}const gb=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\S\s]*\*\/\s*|\/\/.*\s+)*\s*({)/m;function wb(e,t,r,o){let n=e.slice(r);const a=gb.exec(n);if(!a)return!1;n=n.slice(a.index);let i=ay(n);if(i===null)return!1;i+=r+a.index;const s=r+a.index+a[0].length,l=Eb(e,s),c=`, ${sd(o,e,r)}`;return l===i?t.appendLeft(i,c):t.overwrite(l,i,c),!0}function Eb(e,t){let r=1,o=0;for(;r!==o&&t<e.length;){const n=e[t++];n==="{"?r++:n==="}"&&o++}return t}function sd(e,t,r){const o=ly(t,r),a=t.split(Bs)[o-1].match(/^\s*/)[0]||"",i=a.includes(" ")?`${a} `:`${a} `,s=e.trim().replace(/\\/g,"\\\\").split(/\n/g),l=s.length<=1,c="`";return l?`${c}${s.join(`
|
|
210
|
+
`).replace(/`/g,"\\`").replace(/\${/g,"\\${")}${c}`:`${c}
|
|
211
|
+
${s.map(f=>f?i+f:"").join(`
|
|
212
|
+
`).replace(/`/g,"\\`").replace(/\${/g,"\\${")}
|
|
213
|
+
${a}${c}`}const _b=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\S\s]*\*\/\s*|\/\/.*\s+)*\s*[\w_$]*(['"`\)])/m;function Cb(e,t,r,o){const n=e.slice(r),a=_b.exec(n),i=/toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot/.exec(n);if(!a||a.index!==(i==null?void 0:i.index))return wb(e,t,r,o);const s=a[1],l=r+a.index+a[0].length,c=sd(o,e,r);if(s===")")return t.appendRight(l-1,c),!0;const u=new RegExp(`(?:^|[^\\\\])${s}`).exec(e.slice(l));if(!u)return!1;const d=l+u.index+u[0].length;return t.overwrite(l-1,d,c),!0}const Tb=/^([^\S\n]*)\S/m;function lu(e){const t=e.match(Tb);if(!t||!t[1])return e;const r=t[1],o=e.split(/\n/g);if(o.length<=2||o[0].trim()!==""||o[o.length-1].trim()!=="")return e;for(let n=1;n<o.length-1;n++)if(o[n]!==""){if(o[n].indexOf(r)!==0)return e;o[n]=o[n].substring(r.length)}return o[o.length-1]="",e=o.join(`
|
|
214
|
+
`),e}async function Rb(e,t){await Promise.all(t.map(async r=>{r.readonly||await e.saveSnapshotFile(r.file,r.snapshot)}))}class Vs{constructor(t,r,o,n){te(this,"_counters");te(this,"_dirty");te(this,"_updateSnapshot");te(this,"_snapshotData");te(this,"_initialData");te(this,"_inlineSnapshots");te(this,"_rawSnapshots");te(this,"_uncheckedKeys");te(this,"_snapshotFormat");te(this,"_environment");te(this,"_fileExists");te(this,"added");te(this,"expand");te(this,"matched");te(this,"unmatched");te(this,"updated");this.testFilePath=t,this.snapshotPath=r;const{data:a,dirty:i}=_y(o,n);this._fileExists=o!=null,this._initialData=a,this._snapshotData=a,this._dirty=i,this._inlineSnapshots=[],this._rawSnapshots=[],this._uncheckedKeys=new Set(Object.keys(this._snapshotData)),this._counters=new Map,this.expand=n.expand||!1,this.added=0,this.matched=0,this.unmatched=0,this._updateSnapshot=n.updateSnapshot,this.updated=0,this._snapshotFormat={printBasicPrototype:!1,escapeString:!1,...n.snapshotFormat},this._environment=n.snapshotEnvironment}static async create(t,r){const o=await r.snapshotEnvironment.resolvePath(t),n=await r.snapshotEnvironment.readSnapshotFile(o);return new Vs(t,o,n,r)}get environment(){return this._environment}markSnapshotsAsCheckedForTest(t){this._uncheckedKeys.forEach(r=>{Ey(r)===t&&this._uncheckedKeys.delete(r)})}_inferInlineSnapshotStack(t){const r=t.findIndex(n=>n.method.match(/__VITEST_(RESOLVES|REJECTS)__/));if(r!==-1)return t[r+3];const o=t.findIndex(n=>n.method.includes("__INLINE_SNAPSHOT__"));return o!==-1?t[o+2]:null}_addSnapshot(t,r,o){if(this._dirty=!0,o.isInline){const n=bb(o.error||new Error("snapshot"),{ignoreStackEntries:[]}),a=this._inferInlineSnapshotStack(n);if(!a)throw new Error(`@vitest/snapshot: Couldn't infer stack frame for inline snapshot.
|
|
215
|
+
${JSON.stringify(n)}`);a.column--,this._inlineSnapshots.push({snapshot:r,...a})}else o.rawSnapshot?this._rawSnapshots.push({...o.rawSnapshot,snapshot:r}):this._snapshotData[t]=r}clear(){this._snapshotData=this._initialData,this._counters=new Map,this.added=0,this.matched=0,this.unmatched=0,this.updated=0,this._dirty=!1}async save(){const t=Object.keys(this._snapshotData).length,r=this._inlineSnapshots.length,o=this._rawSnapshots.length,n=!t&&!r&&!o,a={deleted:!1,saved:!1};return(this._dirty||this._uncheckedKeys.size)&&!n?(t&&(await Oy(this._environment,this._snapshotData,this.snapshotPath),this._fileExists=!0),r&&await vb(this._environment,this._inlineSnapshots),o&&await Rb(this._environment,this._rawSnapshots),a.saved=!0):!t&&this._fileExists&&(this._updateSnapshot==="all"&&(await this._environment.removeSnapshotFile(this.snapshotPath),this._fileExists=!1),a.deleted=!0),a}getUncheckedCount(){return this._uncheckedKeys.size||0}getUncheckedKeys(){return Array.from(this._uncheckedKeys)}removeUncheckedKeys(){this._updateSnapshot==="all"&&this._uncheckedKeys.size&&(this._dirty=!0,this._uncheckedKeys.forEach(t=>delete this._snapshotData[t]),this._uncheckedKeys.clear())}match({testName:t,received:r,key:o,inlineSnapshot:n,isInline:a,error:i,rawSnapshot:s}){this._counters.set(t,(this._counters.get(t)||0)+1);const l=Number(this._counters.get(t));o||(o=wy(t,l)),a&&this._snapshotData[o]!==void 0||this._uncheckedKeys.delete(o);let c=s&&typeof r=="string"?r:Py(r,void 0,this._snapshotFormat);s||(c=Cy(c)),s&&s.content&&s.content.match(/\r\n/)&&!c.match(/\r\n/)&&(s.content=Us(s.content));const f=a?n:s?s.content:this._snapshotData[o],u=Zl(f),d=u===Zl(c),y=f!==void 0,g=a||this._fileExists||s&&s.content!=null;return d&&!a&&!s&&(this._snapshotData[o]=c),y&&this._updateSnapshot==="all"||(!y||!g)&&(this._updateSnapshot==="new"||this._updateSnapshot==="all")?(this._updateSnapshot==="all"?d?this.matched++:(y?this.updated++:this.added++,this._addSnapshot(o,c,{error:i,isInline:a,rawSnapshot:s})):(this._addSnapshot(o,c,{error:i,isInline:a,rawSnapshot:s}),this.added++),{actual:"",count:l,expected:"",key:o,pass:!0}):d?(this.matched++,{actual:"",count:l,expected:"",key:o,pass:!0}):(this.unmatched++,{actual:Jl(c),count:l,expected:u!==void 0?Jl(u):void 0,key:o,pass:!1})}async pack(){const t={filepath:this.testFilePath,added:0,fileDeleted:!1,matched:0,unchecked:0,uncheckedKeys:[],unmatched:0,updated:0},r=this.getUncheckedCount(),o=this.getUncheckedKeys();r&&this.removeUncheckedKeys();const n=await this.save();return t.fileDeleted=n.deleted,t.added=this.added,t.matched=this.matched,t.unmatched=this.unmatched,t.updated=this.updated,t.unchecked=n.deleted?0:r,t.uncheckedKeys=Array.from(o),t}}function uu(e,t,r,o){const n=new Error(e);return Object.defineProperty(n,"actual",{value:r,enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(n,"expected",{value:o,enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(n,"diffOptions",{value:{expand:t}}),n}class Pb{constructor(t={}){te(this,"filepath");te(this,"name");te(this,"snapshotState");te(this,"snapshotStateMap",new Map);this.options=t}async startCurrentRun(t,r,o){var n;this.filepath=t,this.name=r,((n=this.snapshotState)==null?void 0:n.testFilePath)!==t&&(await this.finishCurrentRun(),this.getSnapshotState(t)||this.snapshotStateMap.set(t,await Vs.create(t,o)),this.snapshotState=this.getSnapshotState(t))}getSnapshotState(t){return this.snapshotStateMap.get(t)}clearTest(){this.filepath=void 0,this.name=void 0}skipTestSnapshots(t){var r;(r=this.snapshotState)==null||r.markSnapshotsAsCheckedForTest(t)}assert(t){var r,o,n,a;const{filepath:i=this.filepath,name:s=this.name,message:l,isInline:c=!1,properties:f,inlineSnapshot:u,error:d,errorMessage:y,rawSnapshot:g}=t;let{received:w}=t;if(!i)throw new Error("Snapshot cannot be used outside of test");if(typeof f=="object"){if(typeof w!="object"||!w)throw new Error("Received value must be an object when the matcher has properties");try{if(((o=(r=this.options).isEqual)==null?void 0:o.call(r,w,f))??!1)w=Hs(w,f);else throw uu("Snapshot properties mismatched",(n=this.snapshotState)==null?void 0:n.expand,w,f)}catch(C){throw C.message=y||"Snapshot mismatched",C}}const v=[s,...l?[l]:[]].join(" > "),m=this.getSnapshotState(i),{actual:R,expected:M,key:$,pass:N}=m.match({testName:v,received:w,isInline:c,error:d,inlineSnapshot:u,rawSnapshot:g});if(!N)throw uu(`Snapshot \`${$||"unknown"}\` mismatched`,(a=this.snapshotState)==null?void 0:a.expand,R==null?void 0:R.trim(),M==null?void 0:M.trim())}async assertRaw(t){if(!t.rawSnapshot)throw new Error("Raw snapshot is required");const{filepath:r=this.filepath,rawSnapshot:o}=t;if(o.content==null){if(!r)throw new Error("Snapshot cannot be used outside of test");const n=this.getSnapshotState(r);t.filepath||(t.filepath=r),o.file=await n.environment.resolveRawPath(r,o.file),o.content=await n.environment.readSnapshotFile(o.file)||void 0}return this.assert(t)}async finishCurrentRun(){if(!this.snapshotState)return null;const t=await this.snapshotState.pack();return this.snapshotState=void 0,t}clear(){this.snapshotStateMap.clear()}}function ld(){return typeof process<"u"&&!!process.send}const tt=Date;let ns=null;class Lt extends tt{constructor(t,r,o,n,a,i,s){super();let l;switch(arguments.length){case 0:ns!==null?l=new tt(ns.valueOf()):l=new tt;break;case 1:l=new tt(t);break;default:o=typeof o>"u"?1:o,n=n||0,a=a||0,i=i||0,s=s||0,l=new tt(t,r,o,n,a,i,s);break}return Object.setPrototypeOf(l,Lt.prototype),l}}Lt.UTC=tt.UTC;Lt.now=function(){return new Lt().valueOf()};Lt.parse=function(e){return tt.parse(e)};Lt.toString=function(){return tt.toString()};function xb(e){const t=new tt(e.valueOf());if(Number.isNaN(t.getTime()))throw new TypeError(`mockdate: The time set is an invalid date: ${e}`);globalThis.Date=Lt,ns=t.valueOf()}function Ob(){globalThis.Date=tt}function Sb(e,t=!1){const r=[/\/vitest\/dist\//,/\/vite-node\/dist\//,/vitest-virtual-\w+\/dist/,/@vitest\/dist/,...t?[]:[/^mock:/]];e.forEach((o,n)=>{r.some(a=>a.test(n))||e.invalidateModule(o)})}function Mb(){const{setTimeout:e}=z.getSafeTimers();return new Promise(t=>e(t,0))}async function ud(){await Mb();const e=qs(),t=[];let r=0;for(const o of e.moduleCache.values())o.promise&&!o.evaluated&&t.push(o.promise),o.resolving&&r++;!t.length&&!r||(await Promise.allSettled(t),await ud())}function Ab(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var cd={exports:{}};(function(e,t){(function(){(function(r){return typeof Ab=="function"?e.exports=r:chai.use(r)})(function(r,o){var n=r.Assertion,a=n.prototype;n.addMethod("containSubset",function(s){var l=o.flag(this,"object"),c=r.config.showDiff;a.assert.call(this,i(s,l),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",s,l,c)}),r.assert.containSubset=function(s,l,c){new r.Assertion(s,c).to.be.containSubset(l)};function i(s,l){if(s===l)return!0;if(typeof l!=typeof s)return!1;if(typeof s!="object"||s===null)return s===l;if(s&&!l)return!1;if(Array.isArray(s)){if(typeof l.length!="number")return!1;var c=Array.prototype.slice.call(l);return s.every(function(f){return c.some(function(u){return i(f,u)})})}return s instanceof Date?l instanceof Date?s.getTime()===l.getTime():!1:Object.keys(s).every(function(f){var u=s[f],d=l[f];return typeof u=="object"&&u!==null&&d!==null?i(u,d):typeof u=="function"?u(d):d===u})}})}).call(Ir)})(cd);var $b=cd.exports,qb=om($b);const cu=Symbol.for("matchers-object"),Ib=Symbol.for("$$jest-matchers-object"),Nb=Symbol.for("expect-global"),kb=Symbol.for("asymmetric-matchers-object");if(!Object.prototype.hasOwnProperty.call(globalThis,cu)){const e=new WeakMap,t=Object.create(null),r=[],o=Object.create(null);Object.defineProperty(globalThis,cu,{get:()=>e}),Object.defineProperty(globalThis,Ib,{configurable:!0,get:()=>({state:e.get(globalThis[Nb]),matchers:t,customEqualityTesters:r})}),Object.defineProperty(globalThis,kb,{get:()=>o})}function jb(e,t){return e&&t instanceof Promise&&(t=t.finally(()=>{const r=e.promises.indexOf(t);r!==-1&&e.promises.splice(r,1)}),e.promises||(e.promises=[]),e.promises.push(t)),t}let Mi;function Pr(){return Mi||(Mi=new Pb({isEqual:(e,t)=>ae(e,t,[je,gr])})),Mi}function du(e,t){if(typeof e!="function"){if(!t)throw new Error(`expected must be a function, received ${typeof e}`);return e}try{e()}catch(r){return r}throw new Error("snapshot function didn't throw")}const Db=(e,t)=>{const r=o=>{var n;return o?{filepath:(n=o.file)==null?void 0:n.filepath,name:Ep(o).slice(1).join(" > ")}:{}};for(const o of["matchSnapshot","toMatchSnapshot"])t.addMethod(e.Assertion.prototype,o,function(n,a){if(t.flag(this,"negate"))throw new Error(`${o} cannot be used with "not"`);const s=t.flag(this,"object"),l=t.flag(this,"vitest-test");typeof n=="string"&&typeof a>"u"&&(a=n,n=void 0);const c=t.flag(this,"message");Pr().assert({received:s,message:a,isInline:!1,properties:n,errorMessage:c,...r(l)})});t.addMethod(e.Assertion.prototype,"toMatchFileSnapshot",function(o,n){if(t.flag(this,"negate"))throw new Error('toMatchFileSnapshot cannot be used with "not"');const i=t.flag(this,"object"),s=t.flag(this,"vitest-test"),l=t.flag(this,"message"),c=Pr().assertRaw({received:i,message:n,isInline:!1,rawSnapshot:{file:o},errorMessage:l,...r(s)});return jb(s,c)}),t.addMethod(e.Assertion.prototype,"toMatchInlineSnapshot",function(n,a,i){var s;if(t.flag(this,"negate"))throw new Error('toMatchInlineSnapshot cannot be used with "not"');const c=t.flag(this,"vitest-test");if(c&&(c.each||((s=c.suite)==null?void 0:s.each)))throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");const u=t.flag(this,"object"),d=t.flag(this,"error");typeof n=="string"&&(i=a,a=n,n=void 0),a&&(a=lu(a));const y=t.flag(this,"message");Pr().assert({received:u,message:i,isInline:!0,properties:n,inlineSnapshot:a,error:d,errorMessage:y,...r(c)})}),t.addMethod(e.Assertion.prototype,"toThrowErrorMatchingSnapshot",function(o){if(t.flag(this,"negate"))throw new Error('toThrowErrorMatchingSnapshot cannot be used with "not"');const a=t.flag(this,"object"),i=t.flag(this,"vitest-test"),s=t.flag(this,"promise"),l=t.flag(this,"message");Pr().assert({received:du(a,s),message:o,errorMessage:l,...r(i)})}),t.addMethod(e.Assertion.prototype,"toThrowErrorMatchingInlineSnapshot",function(n,a){var i;if(t.flag(this,"negate"))throw new Error('toThrowErrorMatchingInlineSnapshot cannot be used with "not"');const l=t.flag(this,"vitest-test");if(l&&(l.each||((i=l.suite)==null?void 0:i.each)))throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");const f=t.flag(this,"object"),u=t.flag(this,"error"),d=t.flag(this,"promise"),y=t.flag(this,"message");n&&(n=lu(n)),Pr().assert({received:du(f,d),message:a,inlineSnapshot:n,isInline:!0,error:u,errorMessage:y,...r(l)})}),t.addMethod(e.expect,"addSnapshotSerializer",vy)};Hr(Sm);Hr(Pm);Hr(qb);Hr(Db);Hr(Rm);function Fb(e){const t=(a,i)=>{const{assertionCalls:s}=fr(t);return Ci({assertionCalls:s+1,soft:!1},t),_i(a,i)};Object.assign(t,_i),Object.assign(t,globalThis[Ns]),t.getState=()=>fr(t),t.setState=a=>Ci(a,t);const r=fr(globalThis[Wr])||{};Ci({...r,assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null,environment:Jp(),testPath:r.testPath,currentTestName:r.currentTestName},t),t.extend=a=>_i.extend(t,a),t.addEqualityTesters=a=>pm(a),t.soft=(...a)=>{const i=t(...a);return t.setState({soft:!0}),i},t.unreachable=a=>{nm.fail(`expected${a?` "${a}" `:" "}not to be reached`)};function o(a){const i=()=>new Error(`expected number of assertions to be ${a}, but got ${t.getState().assertionCalls}`);Error.captureStackTrace&&Error.captureStackTrace(i(),o),t.setState({expectedAssertionsNumber:a,expectedAssertionsNumberErrorGen:i})}function n(){const a=new Error("expected any number of assertion, but got none");Error.captureStackTrace&&Error.captureStackTrace(a,n),t.setState({isExpectingAssertions:!0,isExpectingAssertionsError:a})}return hn.addMethod(t,"assertions",o),hn.addMethod(t,"hasAssertions",n),t}const os=Fb();Object.defineProperty(globalThis,Wr,{value:os,writable:!0,configurable:!0});var dn;typeof Ir<"u"?dn=Ir:typeof window<"u"?dn=window:dn=self;var Lb=dn;let as;try{({}).__proto__,as=!1}catch{as=!0}var Bb=as,Ub=Function.call,Hb=Bb,dd=["size","caller","callee","arguments"];Hb&&dd.push("__proto__");var wr=function(t){return Object.getOwnPropertyNames(t).reduce(function(r,o){return dd.includes(o)||typeof t[o]!="function"||(r[o]=Ub.bind(t[o])),r},Object.create(null))},Vb=wr,On=Vb(Array.prototype),Wb=On.every;function zb(e,t){return e[t.id]===void 0&&(e[t.id]=0),e[t.id]<t.callCount}function Kb(e,t,r,o){var n=!0;return r!==o.length-1&&(n=t.calledBefore(o[r+1])),zb(e,t)&&n?(e[t.id]+=1,!0):!1}function Yb(e){var t={},r=arguments.length>1?arguments:e;return Wb(r,Kb.bind(null,t))}var Gb=Yb,fd=function(t){if(!t)return"";try{return t.displayName||t.name||(String(t).match(/function ([^\s(]+)/)||[])[1]}catch{return""}},Xb=fd;function Jb(e){return e.constructor&&e.constructor.name||typeof e.constructor=="function"&&Xb(e.constructor)||null}var Qb=Jb,pd={};(function(e){e.wrap=function(t,r){var o=function(){return e.printWarning(r),t.apply(this,arguments)};return t.prototype&&(o.prototype=t.prototype),o},e.defaultMsg=function(t,r){return`${t}.${r} is deprecated and will be removed from the public API in a future version of ${t}.`},e.printWarning=function(t){typeof process=="object"&&process.emitWarning?process.emitWarning(t):console.info?console.info(t):console.log(t)}})(pd);var Zb=function(t,r){var o=!0;try{t.forEach(function(){if(!r.apply(this,arguments))throw new Error})}catch{o=!1}return o},ev=On.sort,tv=On.slice;function rv(e,t){var r=e.getCall(0),o=t.getCall(0),n=r&&r.callId||-1,a=o&&o.callId||-1;return n<a?-1:1}function nv(e){return ev(tv(e),rv)}var ov=nv,av=wr,iv=av(Function.prototype),sv=wr,lv=sv(Map.prototype),uv=wr,cv=uv(Object.prototype),dv=wr,fv=dv(Set.prototype),pv=wr,mv=pv(String.prototype),hv={array:On,function:iv,map:lv,object:cv,set:fv,string:mv},md={exports:{}};(function(e,t){(function(r,o){e.exports=o()})(Ir,function(){var r=typeof Promise=="function",o=typeof self=="object"?self:Ir,n=typeof Symbol<"u",a=typeof Map<"u",i=typeof Set<"u",s=typeof WeakMap<"u",l=typeof WeakSet<"u",c=typeof DataView<"u",f=n&&typeof Symbol.iterator<"u",u=n&&typeof Symbol.toStringTag<"u",d=i&&typeof Set.prototype.entries=="function",y=a&&typeof Map.prototype.entries=="function",g=d&&Object.getPrototypeOf(new Set().entries()),w=y&&Object.getPrototypeOf(new Map().entries()),v=f&&typeof Array.prototype[Symbol.iterator]=="function",m=v&&Object.getPrototypeOf([][Symbol.iterator]()),R=f&&typeof String.prototype[Symbol.iterator]=="function",M=R&&Object.getPrototypeOf(""[Symbol.iterator]()),$=8,N=-1;function C(x){var I=typeof x;if(I!=="object")return I;if(x===null)return"null";if(x===o)return"global";if(Array.isArray(x)&&(u===!1||!(Symbol.toStringTag in x)))return"Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&x===window.location)return"Location";if(typeof window.document=="object"&&x===window.document)return"Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&x===window.navigator.mimeTypes)return"MimeTypeArray";if(typeof window.navigator.plugins=="object"&&x===window.navigator.plugins)return"PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&x instanceof window.HTMLElement){if(x.tagName==="BLOCKQUOTE")return"HTMLQuoteElement";if(x.tagName==="TD")return"HTMLTableDataCellElement";if(x.tagName==="TH")return"HTMLTableHeaderCellElement"}}var Z=u&&x[Symbol.toStringTag];if(typeof Z=="string")return Z;var K=Object.getPrototypeOf(x);return K===RegExp.prototype?"RegExp":K===Date.prototype?"Date":r&&K===Promise.prototype?"Promise":i&&K===Set.prototype?"Set":a&&K===Map.prototype?"Map":l&&K===WeakSet.prototype?"WeakSet":s&&K===WeakMap.prototype?"WeakMap":c&&K===DataView.prototype?"DataView":a&&K===w?"Map Iterator":i&&K===g?"Set Iterator":v&&K===m?"Array Iterator":R&&K===M?"String Iterator":K===null?"Object":Object.prototype.toString.call(x).slice($,N)}return C})})(md);var yv=md.exports,bv=yv,vv=function(t){return bv(t).toLowerCase()};function gv(e){return e&&e.toString?e.toString():String(e)}var wv=gv,Ev={global:Lb,calledInOrder:Gb,className:Qb,deprecated:pd,every:Zb,functionName:fd,orderByFirstCall:ov,prototypes:hv,typeOf:vv,valueToString:wv};const hd=Ev.global;let ur;if(typeof __vitest_required__<"u")try{ur=__vitest_required__.timers}catch{}function Ws(e){const t=Math.pow(2,31)-1,r=1e12,o=function(){},n=function(){return[]},a=e.setTimeout(o,0),i=typeof a=="object",s=e.process&&typeof e.process.hrtime=="function",l=s&&typeof e.process.hrtime.bigint=="function",c=e.process&&typeof e.process.nextTick=="function",f=e.process&&e.__vitest_required__&&e.__vitest_required__.util.promisify,u=e.performance&&typeof e.performance.now=="function",d=e.Performance&&(typeof e.Performance).match(/^(function|object)$/),y=e.performance&&e.performance.constructor&&e.performance.constructor.prototype,g=e.hasOwnProperty("queueMicrotask"),w=e.requestAnimationFrame&&typeof e.requestAnimationFrame=="function",v=e.cancelAnimationFrame&&typeof e.cancelAnimationFrame=="function",m=e.requestIdleCallback&&typeof e.requestIdleCallback=="function",R=e.cancelIdleCallback&&typeof e.cancelIdleCallback=="function",M=e.setImmediate&&typeof e.setImmediate=="function",$=e.Intl&&typeof e.Intl=="object";e.clearTimeout(a);const N=e.Date,C=e.Intl;let x=r;function I(E){return Number.isFinite?Number.isFinite(E):isFinite(E)}let Z=!1;function K(E,_){E.loopLimit&&_===E.loopLimit-1&&(Z=!0)}function oe(){Z=!1}function ce(E){if(!E)return 0;const _=E.split(":"),A=_.length;let k=A,b=0,Y;if(A>3||!/^(\d\d:){0,2}\d\d?$/.test(E))throw new Error("tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits");for(;k--;){if(Y=parseInt(_[k],10),Y>=60)throw new Error(`Invalid time ${E}`);b+=Y*Math.pow(60,A-k-1)}return b*1e3}function F(E){const A=E*1e6%1e6,k=A<0?A+1e6:A;return Math.floor(k)}function U(E){if(!E)return 0;if(typeof E.getTime=="function")return E.getTime();if(typeof E=="number")return E;throw new TypeError("now should be milliseconds since UNIX epoch")}function _e(E,_,A){return A&&A.callAt>=E&&A.callAt<=_}function de(E,_){const A=new Error(`Aborting after running ${E.loopLimit} timers, assuming an infinite loop!`);if(!_.error)return A;const k=/target\.*[<|(|[].*?[>|\]|)]\s*/;let b=new RegExp(String(Object.keys(E).join("|")));i&&(b=new RegExp(`\\s+at (Object\\.)?(?:${Object.keys(E).join("|")})\\s+`));let Y=-1;_.error.stack.split(`
|
|
216
|
+
`).some(function(me,Re){return me.match(k)?(Y=Re,!0):me.match(b)?(Y=Re,!1):Y>=0});const ye=`${A}
|
|
217
|
+
${_.type||"Microtask"} - ${_.func.name||"anonymous"}
|
|
218
|
+
${_.error.stack.split(`
|
|
219
|
+
`).slice(Y+1).join(`
|
|
220
|
+
`)}`;try{Object.defineProperty(A,"stack",{value:ye})}catch{}return A}function pe(E,_){let A;for(A in _)_.hasOwnProperty(A)&&(E[A]=_[A]);return _.now?E.now=function(){return E.clock.now}:delete E.now,_.toSource?E.toSource=function(){return _.toSource()}:delete E.toSource,E.toString=function(){return _.toString()},E.prototype=_.prototype,E.parse=_.parse,E.UTC=_.UTC,E.prototype.toUTCString=_.prototype.toUTCString,E.isFake=!0,E}function Ce(){function E(_,A,k,b,Y,ye,me){if(!(this instanceof E))return new N(E.clock.now).toString();switch(arguments.length){case 0:return new N(E.clock.now);case 1:return new N(_);case 2:return new N(_,A);case 3:return new N(_,A,k);case 4:return new N(_,A,k,b);case 5:return new N(_,A,k,b,Y);case 6:return new N(_,A,k,b,Y,ye);default:return new N(_,A,k,b,Y,ye,me)}}return pe(E,N)}function Ie(){const E={...C};return E.DateTimeFormat=function(..._){const A=new C.DateTimeFormat(..._),k={};return["formatRange","formatRangeToParts","resolvedOptions"].forEach(b=>{k[b]=A[b].bind(A)}),["format","formatToParts"].forEach(b=>{k[b]=function(Y){return A[b](Y||E.clock.now)}}),k},E.DateTimeFormat.prototype=Object.create(C.DateTimeFormat.prototype),E.DateTimeFormat.supportedLocalesOf=C.DateTimeFormat.supportedLocalesOf,E}function Ge(E,_){E.jobs||(E.jobs=[]),E.jobs.push(_)}function Oe(E){if(E.jobs){for(let _=0;_<E.jobs.length;_++){const A=E.jobs[_];if(A.func.apply(null,A.args),K(E,_),E.loopLimit&&_>E.loopLimit)throw de(E,A)}oe(),E.jobs=[]}}function Ne(E,_){if(_.func===void 0)throw new Error("Callback must be provided to timer calls");if(i&&typeof _.func!="function")throw new TypeError(`[ERR_INVALID_CALLBACK]: Callback must be a function. Received ${_.func} of type ${typeof _.func}`);if(Z&&(_.error=new Error),_.type=_.immediate?"Immediate":"Timeout",_.hasOwnProperty("delay")&&(typeof _.delay!="number"&&(_.delay=parseInt(_.delay,10)),I(_.delay)||(_.delay=0),_.delay=_.delay>t?1:_.delay,_.delay=Math.max(0,_.delay)),_.hasOwnProperty("interval")&&(_.type="Interval",_.interval=_.interval>t?1:_.interval),_.hasOwnProperty("animation")&&(_.type="AnimationFrame",_.animation=!0),_.hasOwnProperty("idleCallback")&&(_.type="IdleCallback",_.idleCallback=!0),E.timers||(E.timers={}),_.id=x++,_.createdAt=E.now,_.callAt=E.now+(parseInt(_.delay)||(E.duringTick?1:0)),E.timers[_.id]=_,i){const A={refed:!0,ref:function(){return this.refed=!0,A},unref:function(){return this.refed=!1,A},hasRef:function(){return this.refed},refresh:function(){return _.callAt=E.now+(parseInt(_.delay)||(E.duringTick?1:0)),E.timers[_.id]=_,A},[Symbol.toPrimitive]:function(){return _.id}};return A}return _.id}function Xe(E,_){if(E.callAt<_.callAt)return-1;if(E.callAt>_.callAt)return 1;if(E.immediate&&!_.immediate)return-1;if(!E.immediate&&_.immediate)return 1;if(E.createdAt<_.createdAt)return-1;if(E.createdAt>_.createdAt)return 1;if(E.id<_.id)return-1;if(E.id>_.id)return 1}function De(E,_,A){const k=E.timers;let b=null,Y,ye;for(Y in k)k.hasOwnProperty(Y)&&(ye=_e(_,A,k[Y]),ye&&(!b||Xe(b,k[Y])===1)&&(b=k[Y]));return b}function Te(E){const _=E.timers;let A=null,k;for(k in _)_.hasOwnProperty(k)&&(!A||Xe(A,_[k])===1)&&(A=_[k]);return A}function ot(E){const _=E.timers;let A=null,k;for(k in _)_.hasOwnProperty(k)&&(!A||Xe(A,_[k])===-1)&&(A=_[k]);return A}function Je(E,_){if(typeof _.interval=="number"?E.timers[_.id].callAt+=_.interval:delete E.timers[_.id],typeof _.func=="function")_.func.apply(null,_.args);else{const A=eval;(function(){A(_.func)})()}}function at(E){return E==="IdleCallback"||E==="AnimationFrame"?`cancel${E}`:`clear${E}`}function st(E){return E==="IdleCallback"||E==="AnimationFrame"?`request${E}`:`set${E}`}function lt(){let E=0;return function(_){!E++&&console.warn(_)}}const B=lt();function Se(E,_,A){if(!_)return;E.timers||(E.timers={});const k=Number(_);if(Number.isNaN(k)||k<r){const b=at(A);if(E.shouldClearNativeTimers===!0){const Y=E[`_${b}`];return typeof Y=="function"?Y(_):void 0}B(`FakeTimers: ${b} was invoked to clear a native timer instead of one created by this library.
|
|
221
|
+
To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`)}if(E.timers.hasOwnProperty(k)){const b=E.timers[k];if(b.type===A||b.type==="Timeout"&&A==="Interval"||b.type==="Interval"&&A==="Timeout")delete E.timers[k];else{const Y=at(A),ye=st(b.type);throw new Error(`Cannot clear timer: timer created with ${ye}() but cleared with ${Y}()`)}}}function Fe(E,_){let A,k,b;const Y="_hrtime",ye="_nextTick";for(k=0,b=E.methods.length;k<b;k++){if(A=E.methods[k],A==="hrtime"&&e.process)e.process.hrtime=E[Y];else if(A==="nextTick"&&e.process)e.process.nextTick=E[ye];else if(A==="performance"){const me=Object.getOwnPropertyDescriptor(E,`_${A}`);me&&me.get&&!me.set?Object.defineProperty(e,A,me):me.configurable&&(e[A]=E[`_${A}`])}else if(e[A]&&e[A].hadOwnProperty)e[A]=E[`_${A}`];else try{delete e[A]}catch{}if(E.timersModuleMethods!==void 0)for(let me=0;me<E.timersModuleMethods.length;me++){const Re=E.timersModuleMethods[me];ur[Re.methodName]=Re.original}}return _.shouldAdvanceTime===!0&&e.clearInterval(E.attachedInterval),E.methods=[],E.timers?Object.keys(E.timers).map(function(Re){return E.timers[Re]}):[]}function L(E,_,A){if(A[_].hadOwnProperty=Object.prototype.hasOwnProperty.call(E,_),A[`_${_}`]=E[_],_==="Date"){const k=pe(A[_],E[_]);E[_]=k}else if(_==="Intl")E[_]=A[_];else if(_==="performance"){const k=Object.getOwnPropertyDescriptor(E,_);if(k&&k.get&&!k.set){Object.defineProperty(A,`_${_}`,k);const b=Object.getOwnPropertyDescriptor(A,_);Object.defineProperty(E,_,b)}else E[_]=A[_]}else E[_]=function(){return A[_].apply(A,arguments)},Object.defineProperties(E[_],Object.getOwnPropertyDescriptors(A[_]));E[_].clock=A}function Ue(E,_){E.tick(_)}const ie={setTimeout:e.setTimeout,clearTimeout:e.clearTimeout,setInterval:e.setInterval,clearInterval:e.clearInterval,Date:e.Date};M&&(ie.setImmediate=e.setImmediate,ie.clearImmediate=e.clearImmediate),s&&(ie.hrtime=e.process.hrtime),c&&(ie.nextTick=e.process.nextTick),u&&(ie.performance=e.performance),w&&(ie.requestAnimationFrame=e.requestAnimationFrame),g&&(ie.queueMicrotask=!0),v&&(ie.cancelAnimationFrame=e.cancelAnimationFrame),m&&(ie.requestIdleCallback=e.requestIdleCallback),R&&(ie.cancelIdleCallback=e.cancelIdleCallback),$&&(ie.Intl=e.Intl);const xe=e.setImmediate||e.setTimeout;function He(E,_){E=Math.floor(U(E)),_=_||1e3;let A=0;const k=[0,0];if(N===void 0)throw new Error("The global scope doesn't have a `Date` object (see https://github.com/sinonjs/sinon/issues/1852#issuecomment-419622780)");const b={now:E,Date:Ce(),loopLimit:_};b.Date.clock=b;function Y(){return 16-(b.now-E)%16}function ye(H){const p=b.now-k[0]-E,P=Math.floor(p/1e3),T=(p-P*1e3)*1e6+A-k[1];if(Array.isArray(H)){if(H[1]>1e9)throw new TypeError("Number of nanoseconds can't exceed a billion");const D=H[0];let V=T-H[1],Q=P-D;return V<0&&(V+=1e9,Q-=1),[Q,V]}return[P,T]}function me(){const H=ye();return H[0]*1e3+H[1]/1e6}l&&(ye.bigint=function(){const H=ye();return BigInt(H[0])*BigInt(1e9)+BigInt(H[1])}),$&&(b.Intl=Ie(),b.Intl.clock=b),b.requestIdleCallback=function(p,P){let T=0;b.countTimers()>0&&(T=50);const D=Ne(b,{func:p,args:Array.prototype.slice.call(arguments,2),delay:typeof P>"u"?T:Math.min(P,T),idleCallback:!0});return Number(D)},b.cancelIdleCallback=function(p){return Se(b,p,"IdleCallback")},b.setTimeout=function(p,P){return Ne(b,{func:p,args:Array.prototype.slice.call(arguments,2),delay:P})},typeof e.Promise<"u"&&f&&(b.setTimeout[f.custom]=function(p,P){return new e.Promise(function(D){Ne(b,{func:D,args:[P],delay:p})})}),b.clearTimeout=function(p){return Se(b,p,"Timeout")},b.nextTick=function(p){return Ge(b,{func:p,args:Array.prototype.slice.call(arguments,1),error:Z?new Error:null})},b.queueMicrotask=function(p){return b.nextTick(p)},b.setInterval=function(p,P){return P=parseInt(P,10),Ne(b,{func:p,args:Array.prototype.slice.call(arguments,2),delay:P,interval:P})},b.clearInterval=function(p){return Se(b,p,"Interval")},M&&(b.setImmediate=function(p){return Ne(b,{func:p,args:Array.prototype.slice.call(arguments,1),immediate:!0})},typeof e.Promise<"u"&&f&&(b.setImmediate[f.custom]=function(p){return new e.Promise(function(T){Ne(b,{func:T,args:[p],immediate:!0})})}),b.clearImmediate=function(p){return Se(b,p,"Immediate")}),b.countTimers=function(){return Object.keys(b.timers||{}).length+(b.jobs||[]).length},b.requestAnimationFrame=function(p){const P=Ne(b,{func:p,delay:Y(),get args(){return[me()]},animation:!0});return Number(P)},b.cancelAnimationFrame=function(p){return Se(b,p,"AnimationFrame")},b.runMicrotasks=function(){Oe(b)};function Re(H,p,P,T){const D=typeof H=="number"?H:ce(H),V=Math.floor(D),Q=F(D);let G=A+Q,X=b.now+V;if(D<0)throw new TypeError("Negative ticks are not supported");G>=1e6&&(X+=1,G-=1e6),A=G;let be=b.now,ke=b.now,Le,yt,Pe,Gr,Vt,or;b.duringTick=!0,Pe=b.now,Oe(b),Pe!==b.now&&(be+=b.now-Pe,X+=b.now-Pe);function Wt(){for(Le=De(b,be,X);Le&&be<=X;){if(b.timers[Le.id]){be=Le.callAt,b.now=Le.callAt,Pe=b.now;try{Oe(b),Je(b,Le)}catch(bt){yt=yt||bt}if(p){xe(Gr);return}Vt()}or()}if(Pe=b.now,Oe(b),Pe!==b.now&&(be+=b.now-Pe,X+=b.now-Pe),b.duringTick=!1,Le=De(b,be,X),Le)try{b.tick(X-b.now)}catch(bt){yt=yt||bt}else b.now=X,A=G;if(yt)throw yt;if(p)P(b.now);else return b.now}return Gr=p&&function(){try{Vt(),or(),Wt()}catch(bt){T(bt)}},Vt=function(){Pe!==b.now&&(be+=b.now-Pe,X+=b.now-Pe,ke+=b.now-Pe)},or=function(){Le=De(b,ke,X),ke=be},Wt()}return b.tick=function(p){return Re(p,!1)},typeof e.Promise<"u"&&(b.tickAsync=function(p){return new e.Promise(function(P,T){xe(function(){try{Re(p,!0,P,T)}catch(D){T(D)}})})}),b.next=function(){Oe(b);const p=Te(b);if(!p)return b.now;b.duringTick=!0;try{return b.now=p.callAt,Je(b,p),Oe(b),b.now}finally{b.duringTick=!1}},typeof e.Promise<"u"&&(b.nextAsync=function(){return new e.Promise(function(p,P){xe(function(){try{const T=Te(b);if(!T){p(b.now);return}let D;b.duringTick=!0,b.now=T.callAt;try{Je(b,T)}catch(V){D=V}b.duringTick=!1,xe(function(){D?P(D):p(b.now)})}catch(T){P(T)}})})}),b.runAll=function(){let p,P;for(Oe(b),P=0;P<b.loopLimit;P++){if(!b.timers||(p=Object.keys(b.timers).length,p===0))return oe(),b.now;b.next(),K(b,P)}const T=Te(b);throw de(b,T)},b.runToFrame=function(){return b.tick(Y())},typeof e.Promise<"u"&&(b.runAllAsync=function(){return new e.Promise(function(p,P){let T=0;function D(){xe(function(){try{let V;if(T<b.loopLimit){if(!b.timers){oe(),p(b.now);return}if(V=Object.keys(b.timers).length,V===0){oe(),p(b.now);return}b.next(),T++,D(),K(b,T);return}const Q=Te(b);P(de(b,Q))}catch(V){P(V)}})}D()})}),b.runToLast=function(){const p=ot(b);return p?b.tick(p.callAt-b.now):(Oe(b),b.now)},typeof e.Promise<"u"&&(b.runToLastAsync=function(){return new e.Promise(function(p,P){xe(function(){try{const T=ot(b);T||p(b.now),p(b.tickAsync(T.callAt-b.now))}catch(T){P(T)}})})}),b.reset=function(){A=0,b.timers={},b.jobs=[],b.now=E},b.setSystemTime=function(p){const P=U(p),T=P-b.now;let D,V;k[0]=k[0]+T,k[1]=k[1]+A,b.now=P,A=0;for(D in b.timers)b.timers.hasOwnProperty(D)&&(V=b.timers[D],V.createdAt+=T,V.callAt+=T)},b.jump=function(p){const P=typeof p=="number"?p:ce(p),T=Math.floor(P);for(const D of Object.values(b.timers))b.now+T>D.callAt&&(D.callAt=b.now+T);b.tick(T)},u&&(b.performance=Object.create(null),b.performance.now=me),s&&(b.hrtime=ye),b}function ht(E){if(arguments.length>1||E instanceof Date||Array.isArray(E)||typeof E=="number")throw new TypeError(`FakeTimers.install called with ${String(E)} install requires an object parameter`);if(e.Date.isFake===!0)throw new TypeError("Can't install fake timers twice on the same global object.");if(E=typeof E<"u"?E:{},E.shouldAdvanceTime=E.shouldAdvanceTime||!1,E.advanceTimeDelta=E.advanceTimeDelta||20,E.shouldClearNativeTimers=E.shouldClearNativeTimers||!1,E.target)throw new TypeError("config.target is no longer supported. Use `withGlobal(target)` instead.");let _,A;const k=He(E.now,E.loopLimit);if(k.shouldClearNativeTimers=E.shouldClearNativeTimers,k.uninstall=function(){return Fe(k,E)},k.methods=E.toFake||[],k.methods.length===0&&(k.methods=Object.keys(ie).filter(function(b){return b!=="nextTick"&&b!=="queueMicrotask"})),E.shouldAdvanceTime===!0){const b=Ue.bind(null,k,E.advanceTimeDelta),Y=e.setInterval(b,E.advanceTimeDelta);k.attachedInterval=Y}if(k.methods.includes("performance")){const b=(()=>{if(y)return e.performance.constructor.prototype;if(d)return e.Performance.prototype})();if(b)Object.getOwnPropertyNames(b).forEach(function(Y){Y!=="now"&&(k.performance[Y]=Y.indexOf("getEntries")===0?n:o)});else if((E.toFake||[]).includes("performance"))throw new ReferenceError("non-existent performance object cannot be faked")}for(e===hd&&ur&&(k.timersModuleMethods=[]),_=0,A=k.methods.length;_<A;_++){const b=k.methods[_];if(b==="hrtime"?e.process&&typeof e.process.hrtime=="function"&&L(e.process,b,k):b==="nextTick"?e.process&&typeof e.process.nextTick=="function"&&L(e.process,b,k):L(e,b,k),k.timersModuleMethods!==void 0&&ur[b]){const Y=ur[b];k.timersModuleMethods.push({methodName:b,original:Y}),ur[b]=e[b]}}return k}return{timers:ie,createClock:He,install:ht,withGlobal:Ws}}const zs=Ws(hd);zs.timers;zs.createClock;zs.install;var _v=Ws;class Cv{constructor({global:t,config:r}){te(this,"_global");te(this,"_clock");te(this,"_fakingTime");te(this,"_fakingDate");te(this,"_fakeTimers");te(this,"_userConfig");te(this,"_now",tt.now);this._userConfig=r,this._fakingDate=!1,this._fakingTime=!1,this._fakeTimers=_v(t),this._global=t}clearAllTimers(){this._fakingTime&&this._clock.reset()}dispose(){this.useRealTimers()}runAllTimers(){this._checkFakeTimers()&&this._clock.runAll()}async runAllTimersAsync(){this._checkFakeTimers()&&await this._clock.runAllAsync()}runOnlyPendingTimers(){this._checkFakeTimers()&&this._clock.runToLast()}async runOnlyPendingTimersAsync(){this._checkFakeTimers()&&await this._clock.runToLastAsync()}advanceTimersToNextTimer(t=1){if(this._checkFakeTimers())for(let r=t;r>0&&(this._clock.next(),this._clock.tick(0),this._clock.countTimers()!==0);r--);}async advanceTimersToNextTimerAsync(t=1){if(this._checkFakeTimers())for(let r=t;r>0&&(await this._clock.nextAsync(),this._clock.tick(0),this._clock.countTimers()!==0);r--);}advanceTimersByTime(t){this._checkFakeTimers()&&this._clock.tick(t)}async advanceTimersByTimeAsync(t){this._checkFakeTimers()&&await this._clock.tickAsync(t)}runAllTicks(){this._checkFakeTimers()&&this._clock.runMicrotasks()}useRealTimers(){this._fakingDate&&(Ob(),this._fakingDate=!1),this._fakingTime&&(this._clock.uninstall(),this._fakingTime=!1)}useFakeTimers(){var t,r,o;if(this._fakingDate)throw new Error('"setSystemTime" was called already and date was mocked. Reset timers using `vi.useRealTimers()` if you want to use fake timers again.');if(!this._fakingTime){const n=Object.keys(this._fakeTimers.timers).filter(i=>i!=="nextTick");if((r=(t=this._userConfig)==null?void 0:t.toFake)!=null&&r.includes("nextTick")&&ld())throw new Error("process.nextTick cannot be mocked inside child_process");const a=(((o=this._userConfig)==null?void 0:o.toFake)||n).filter(i=>{switch(i){case"setImmediate":case"clearImmediate":return i in this._global&&this._global[i];default:return!0}});this._clock=this._fakeTimers.install({now:Date.now(),...this._userConfig,toFake:a}),this._fakingTime=!0}}reset(){if(this._checkFakeTimers()){const{now:t}=this._clock;this._clock.reset(),this._clock.setSystemTime(t)}}setSystemTime(t){this._fakingTime?this._clock.setSystemTime(t):(xb(t??this.getRealSystemTime()),this._fakingDate=!0)}getRealSystemTime(){return this._now()}getTimerCount(){return this._checkFakeTimers()?this._clock.countTimers():0}configure(t){this._userConfig=t}isFakeTimers(){return this._fakingTime}_checkFakeTimers(){if(!this._fakingTime)throw new Error('Timers are not mocked. Try calling "vi.useFakeTimers()" first.');return this._fakingTime}}function yd(e,t){return t.stack!==void 0&&(e.stack=t.stack.replace(t.message,e.message)),e}function Tv(e,t={}){const{setTimeout:r,setInterval:o,clearTimeout:n,clearInterval:a}=z.getSafeTimers(),{interval:i=50,timeout:s=1e3}=typeof t=="number"?{timeout:t}:t,l=new Error("STACK_TRACE_ERROR");return new Promise((c,f)=>{let u,d="idle",y,g;const w=R=>{y&&n(y),g&&a(g),c(R)},v=()=>{let R=u;R||(R=yd(new Error("Timed out in waitFor!"),l)),f(R)},m=()=>{if(vn.isFakeTimers()&&vn.advanceTimersByTime(i),d!=="pending")try{const R=e();if(R!==null&&typeof R=="object"&&typeof R.then=="function"){const M=R;d="pending",M.then($=>{d="resolved",w($)},$=>{d="rejected",u=$})}else return w(R),!0}catch(R){u=R}};m()!==!0&&(y=r(v,s),g=o(m,i))})}function Rv(e,t={}){const{setTimeout:r,setInterval:o,clearTimeout:n,clearInterval:a}=z.getSafeTimers(),{interval:i=50,timeout:s=1e3}=typeof t=="number"?{timeout:t}:t,l=new Error("STACK_TRACE_ERROR");return new Promise((c,f)=>{let u="idle",d,y;const g=m=>{m||(m=yd(new Error("Timed out in waitUntil!"),l)),f(m)},w=m=>{if(m)return d&&n(d),y&&a(y),c(m),!0},v=()=>{if(vn.isFakeTimers()&&vn.advanceTimersByTime(i),u!=="pending")try{const m=e();if(m!==null&&typeof m=="object"&&typeof m.then=="function"){const R=m;u="pending",R.then(M=>{u="resolved",w(M)},M=>{u="rejected",g(M)})}else return w(m)}catch(m){g(m)}};v()!==!0&&(d=r(g,s),y=o(v,i))})}function Pv(){const e=typeof __vitest_mocker__<"u"?__vitest_mocker__:new Proxy({},{get(f,u){throw new Error(`Vitest mocker was not initialized in this environment. vi.${String(u)}() is forbidden.`)}});let t=null,r=null;const o=qs();let n;const a=()=>n||(n=new Cv({global:globalThis,config:o.config.fakeTimers})),i=new Map,s=new Map,l=()=>{const u=z.createSimpleStackTrace({stackTraceLimit:4}).split(`
|
|
222
|
+
`)[4],d=z.parseSingleStack(u);return(d==null?void 0:d.file)||""},c={useFakeTimers(f){var u,d,y,g;if(ld()&&((u=f==null?void 0:f.toFake)!=null&&u.includes("nextTick")||(g=(y=(d=o.config)==null?void 0:d.fakeTimers)==null?void 0:y.toFake)!=null&&g.includes("nextTick")))throw new Error('vi.useFakeTimers({ toFake: ["nextTick"] }) is not supported in node:child_process. Use --pool=threads if mocking nextTick is required.');return f?a().configure({...o.config.fakeTimers,...f}):a().configure(o.config.fakeTimers),a().useFakeTimers(),c},isFakeTimers(){return a().isFakeTimers()},useRealTimers(){return a().useRealTimers(),t=null,c},runOnlyPendingTimers(){return a().runOnlyPendingTimers(),c},async runOnlyPendingTimersAsync(){return await a().runOnlyPendingTimersAsync(),c},runAllTimers(){return a().runAllTimers(),c},async runAllTimersAsync(){return await a().runAllTimersAsync(),c},runAllTicks(){return a().runAllTicks(),c},advanceTimersByTime(f){return a().advanceTimersByTime(f),c},async advanceTimersByTimeAsync(f){return await a().advanceTimersByTimeAsync(f),c},advanceTimersToNextTimer(){return a().advanceTimersToNextTimer(),c},async advanceTimersToNextTimerAsync(){return await a().advanceTimersToNextTimerAsync(),c},getTimerCount(){return a().getTimerCount()},setSystemTime(f){const u=f instanceof Date?f:new Date(f);return t=u,a().setSystemTime(u),c},getMockedSystemTime(){return t},getRealSystemTime(){return a().getRealSystemTime()},clearAllTimers(){return a().clearAllTimers(),c},spyOn:cm,fn:fm,waitFor:Tv,waitUntil:Rv,hoisted(f){return z.assertTypes(f,'"vi.hoisted" factory',["function"]),f()},mock(f,u){const d=l();e.queueMock(f,d,u?()=>u(()=>e.importActual(f,d,e.getMockContext().callstack)):void 0,!0)},unmock(f){e.queueUnmock(f,l())},doMock(f,u){const d=l();e.queueMock(f,d,u?()=>u(()=>e.importActual(f,d,e.getMockContext().callstack)):void 0,!1)},doUnmock(f){e.queueUnmock(f,l())},async importActual(f){return e.importActual(f,l(),e.getMockContext().callstack)},async importMock(f){return e.importMock(f,l())},mocked(f,u={}){return f},isMockFunction(f){return cc(f)},clearAllMocks(){return un.forEach(f=>f.mockClear()),c},resetAllMocks(){return un.forEach(f=>f.mockReset()),c},restoreAllMocks(){return un.forEach(f=>f.mockRestore()),c},stubGlobal(f,u){return i.has(f)||i.set(f,Object.getOwnPropertyDescriptor(globalThis,f)),Object.defineProperty(globalThis,f,{value:u,writable:!0,configurable:!0,enumerable:!0}),c},stubEnv(f,u){return s.has(f)||s.set(f,process.env[f]),process.env[f]=u,c},unstubAllGlobals(){return i.forEach((f,u)=>{f?Object.defineProperty(globalThis,u,f):Reflect.deleteProperty(globalThis,u)}),i.clear(),c},unstubAllEnvs(){return s.forEach((f,u)=>{f===void 0?delete process.env[u]:process.env[u]=f}),s.clear(),c},resetModules(){return Sb(o.moduleCache),c},async dynamicImportSettled(){return ud()},setConfig(f){r||(r={...o.config}),Object.assign(o.config,f)},resetConfig(){r&&Object.assign(o.config,r)}};return c}const xv=Pv(),vn=xv;var is={exports:{}},ge={};/**
|
|
223
|
+
* @license React
|
|
224
|
+
* react-dom-test-utils.production.min.js
|
|
225
|
+
*
|
|
226
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
227
|
+
*
|
|
228
|
+
* This source code is licensed under the MIT license found in the
|
|
229
|
+
* LICENSE file in the root directory of this source tree.
|
|
230
|
+
*/var fu;function Ov(){if(fu)return ge;fu=1;var e=Pn,t=Xt;function r(p){var P=p,T=p;if(p.alternate)for(;P.return;)P=P.return;else{p=P;do P=p,P.flags&4098&&(T=P.return),p=P.return;while(p)}return P.tag===3?T:null}function o(p){if(r(p)!==p)throw Error("Unable to find node on an unmounted component.")}function n(p){var P=p.alternate;if(!P){if(P=r(p),P===null)throw Error("Unable to find node on an unmounted component.");return P!==p?null:p}for(var T=p,D=P;;){var V=T.return;if(V===null)break;var Q=V.alternate;if(Q===null){if(D=V.return,D!==null){T=D;continue}break}if(V.child===Q.child){for(Q=V.child;Q;){if(Q===T)return o(V),p;if(Q===D)return o(V),P;Q=Q.sibling}throw Error("Unable to find node on an unmounted component.")}if(T.return!==D.return)T=V,D=Q;else{for(var G=!1,X=V.child;X;){if(X===T){G=!0,T=V,D=Q;break}if(X===D){G=!0,D=V,T=Q;break}X=X.sibling}if(!G){for(X=Q.child;X;){if(X===T){G=!0,T=Q,D=V;break}if(X===D){G=!0,D=Q,T=V;break}X=X.sibling}if(!G)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(T.alternate!==D)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(T.tag!==3)throw Error("Unable to find node on an unmounted component.");return T.stateNode.current===T?p:P}var a=Object.assign;function i(p){var P=p.keyCode;return"charCode"in p?(p=p.charCode,p===0&&P===13&&(p=13)):p=P,p===10&&(p=13),32<=p||p===13?p:0}function s(){return!0}function l(){return!1}function c(p){function P(T,D,V,Q,G){this._reactName=T,this._targetInst=V,this.type=D,this.nativeEvent=Q,this.target=G,this.currentTarget=null;for(var X in p)p.hasOwnProperty(X)&&(T=p[X],this[X]=T?T(Q):Q[X]);return this.isDefaultPrevented=(Q.defaultPrevented!=null?Q.defaultPrevented:Q.returnValue===!1)?s:l,this.isPropagationStopped=l,this}return a(P.prototype,{preventDefault:function(){this.defaultPrevented=!0;var T=this.nativeEvent;T&&(T.preventDefault?T.preventDefault():typeof T.returnValue!="unknown"&&(T.returnValue=!1),this.isDefaultPrevented=s)},stopPropagation:function(){var T=this.nativeEvent;T&&(T.stopPropagation?T.stopPropagation():typeof T.cancelBubble!="unknown"&&(T.cancelBubble=!0),this.isPropagationStopped=s)},persist:function(){},isPersistent:s}),P}var f={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(p){return p.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},u=c(f),d=a({},f,{view:0,detail:0});c(d);var y,g,w,v=a({},d,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:K,button:0,buttons:0,relatedTarget:function(p){return p.relatedTarget===void 0?p.fromElement===p.srcElement?p.toElement:p.fromElement:p.relatedTarget},movementX:function(p){return"movementX"in p?p.movementX:(p!==w&&(w&&p.type==="mousemove"?(y=p.screenX-w.screenX,g=p.screenY-w.screenY):g=y=0,w=p),y)},movementY:function(p){return"movementY"in p?p.movementY:g}});c(v);var m=a({},v,{dataTransfer:0});c(m);var R=a({},d,{relatedTarget:0});c(R);var M=a({},f,{animationName:0,elapsedTime:0,pseudoElement:0});c(M);var $=a({},f,{clipboardData:function(p){return"clipboardData"in p?p.clipboardData:window.clipboardData}});c($);var N=a({},f,{data:0});c(N);var C={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},x={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},I={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Z(p){var P=this.nativeEvent;return P.getModifierState?P.getModifierState(p):(p=I[p])?!!P[p]:!1}function K(){return Z}var oe=a({},d,{key:function(p){if(p.key){var P=C[p.key]||p.key;if(P!=="Unidentified")return P}return p.type==="keypress"?(p=i(p),p===13?"Enter":String.fromCharCode(p)):p.type==="keydown"||p.type==="keyup"?x[p.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:K,charCode:function(p){return p.type==="keypress"?i(p):0},keyCode:function(p){return p.type==="keydown"||p.type==="keyup"?p.keyCode:0},which:function(p){return p.type==="keypress"?i(p):p.type==="keydown"||p.type==="keyup"?p.keyCode:0}});c(oe);var ce=a({},v,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0});c(ce);var F=a({},d,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:K});c(F);var U=a({},f,{propertyName:0,elapsedTime:0,pseudoElement:0});c(U);var _e=a({},v,{deltaX:function(p){return"deltaX"in p?p.deltaX:"wheelDeltaX"in p?-p.wheelDeltaX:0},deltaY:function(p){return"deltaY"in p?p.deltaY:"wheelDeltaY"in p?-p.wheelDeltaY:"wheelDelta"in p?-p.wheelDelta:0},deltaZ:0,deltaMode:0});c(_e);function de(p,P,T,D,V,Q,G,X,be){var ke=Array.prototype.slice.call(arguments,3);try{P.apply(T,ke)}catch(Le){this.onError(Le)}}var pe=!1,Ce=null,Ie=!1,Ge=null,Oe={onError:function(p){pe=!0,Ce=p}};function Ne(p,P,T,D,V,Q,G,X,be){pe=!1,Ce=null,de.apply(Oe,arguments)}function Xe(p,P,T,D,V,Q,G,X,be){if(Ne.apply(this,arguments),pe){if(pe){var ke=Ce;pe=!1,Ce=null}else throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.");Ie||(Ie=!0,Ge=ke)}}var De=Array.isArray,Te=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,ot=Te[0],Je=Te[1],at=Te[2],st=Te[3],lt=Te[4],B=e.unstable_act;function Se(){}function Fe(p,P){if(!p)return[];if(p=n(p),!p)return[];for(var T=p,D=[];;){if(T.tag===5||T.tag===6||T.tag===1||T.tag===0){var V=T.stateNode;P(V)&&D.push(V)}if(T.child)T.child.return=T,T=T.child;else{if(T===p)return D;for(;!T.sibling;){if(!T.return||T.return===p)return D;T=T.return}T.sibling.return=T.return,T=T.sibling}}}function L(p,P){if(p&&!p._reactInternals){var T=String(p);throw p=De(p)?"an array":p&&p.nodeType===1&&p.tagName?"a DOM node":T==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":T,Error(P+"(...): the first argument must be a React class instance. Instead received: "+(p+"."))}}function Ue(p){return!(!p||p.nodeType!==1||!p.tagName)}function ie(p){return Ue(p)?!1:p!=null&&typeof p.render=="function"&&typeof p.setState=="function"}function xe(p,P){return ie(p)?p._reactInternals.type===P:!1}function He(p,P){return L(p,"findAllInRenderedTree"),p?Fe(p._reactInternals,P):[]}function ht(p,P){return L(p,"scryRenderedDOMComponentsWithClass"),He(p,function(T){if(Ue(T)){var D=T.className;typeof D!="string"&&(D=T.getAttribute("class")||"");var V=D.split(/\s+/);if(!De(P)){if(P===void 0)throw Error("TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument.");P=P.split(/\s+/)}return P.every(function(Q){return V.indexOf(Q)!==-1})}return!1})}function E(p,P){return L(p,"scryRenderedDOMComponentsWithTag"),He(p,function(T){return Ue(T)&&T.tagName.toUpperCase()===P.toUpperCase()})}function _(p,P){return L(p,"scryRenderedComponentsWithType"),He(p,function(T){return xe(T,P)})}function A(p,P,T){var D=p.type||"unknown-event";p.currentTarget=Je(T),Xe(D,P,void 0,p),p.currentTarget=null}function k(p,P,T){for(var D=[];p;){D.push(p);do p=p.return;while(p&&p.tag!==5);p=p||null}for(p=D.length;0<p--;)P(D[p],"captured",T);for(p=0;p<D.length;p++)P(D[p],"bubbled",T)}function b(p,P){var T=p.stateNode;if(!T)return null;var D=at(T);if(!D)return null;T=D[P];e:switch(P){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(D=!D.disabled)||(p=p.type,D=!(p==="button"||p==="input"||p==="select"||p==="textarea")),p=!D;break e;default:p=!1}if(p)return null;if(T&&typeof T!="function")throw Error("Expected `"+P+"` listener to be a function, instead got a value of `"+typeof T+"` type.");return T}function Y(p,P,T){p&&T&&T._reactName&&(P=b(p,T._reactName))&&(T._dispatchListeners==null&&(T._dispatchListeners=[]),T._dispatchInstances==null&&(T._dispatchInstances=[]),T._dispatchListeners.push(P),T._dispatchInstances.push(p))}function ye(p,P,T){var D=T._reactName;P==="captured"&&(D+="Capture"),(P=b(p,D))&&(T._dispatchListeners==null&&(T._dispatchListeners=[]),T._dispatchInstances==null&&(T._dispatchInstances=[]),T._dispatchListeners.push(P),T._dispatchInstances.push(p))}var me={},Re=new Set(["mouseEnter","mouseLeave","pointerEnter","pointerLeave"]);function H(p){return function(P,T){if(e.isValidElement(P))throw Error("TestUtils.Simulate expected a DOM node as the first argument but received a React element. Pass the DOM node you wish to simulate the event on instead. Note that TestUtils.Simulate will not work if you are using shallow rendering.");if(ie(P))throw Error("TestUtils.Simulate expected a DOM node as the first argument but received a component instance. Pass the DOM node you wish to simulate the event on instead.");var D="on"+p[0].toUpperCase()+p.slice(1),V=new Se;V.target=P,V.type=p.toLowerCase();var Q=ot(P),G=new u(D,V.type,Q,V,P);G.persist(),a(G,T),Re.has(p)?G&&G._reactName&&Y(G._targetInst,null,G):G&&G._reactName&&k(G._targetInst,ye,G),t.unstable_batchedUpdates(function(){if(st(P),G){var X=G._dispatchListeners,be=G._dispatchInstances;if(De(X))for(var ke=0;ke<X.length&&!G.isPropagationStopped();ke++)A(G,X[ke],be[ke]);else X&&A(G,X,be);G._dispatchListeners=null,G._dispatchInstances=null,G.isPersistent()||G.constructor.release(G)}if(Ie)throw X=Ge,Ie=!1,Ge=null,X}),lt()}}return"blur cancel click close contextMenu copy cut auxClick doubleClick dragEnd dragStart drop focus input invalid keyDown keyPress keyUp mouseDown mouseUp paste pause play pointerCancel pointerDown pointerUp rateChange reset resize seeked submit touchCancel touchEnd touchStart volumeChange drag dragEnter dragExit dragLeave dragOver mouseMove mouseOut mouseOver pointerMove pointerOut pointerOver scroll toggle touchMove wheel abort animationEnd animationIteration animationStart canPlay canPlayThrough durationChange emptied encrypted ended error gotPointerCapture load loadedData loadedMetadata loadStart lostPointerCapture playing progress seeking stalled suspend timeUpdate transitionEnd waiting mouseEnter mouseLeave pointerEnter pointerLeave change select beforeInput compositionEnd compositionStart compositionUpdate".split(" ").forEach(function(p){me[p]=H(p)}),ge.Simulate=me,ge.act=B,ge.findAllInRenderedTree=He,ge.findRenderedComponentWithType=function(p,P){if(L(p,"findRenderedComponentWithType"),p=_(p,P),p.length!==1)throw Error("Did not find exactly one match (found: "+p.length+") for componentType:"+P);return p[0]},ge.findRenderedDOMComponentWithClass=function(p,P){if(L(p,"findRenderedDOMComponentWithClass"),p=ht(p,P),p.length!==1)throw Error("Did not find exactly one match (found: "+p.length+") for class:"+P);return p[0]},ge.findRenderedDOMComponentWithTag=function(p,P){if(L(p,"findRenderedDOMComponentWithTag"),p=E(p,P),p.length!==1)throw Error("Did not find exactly one match (found: "+p.length+") for tag:"+P);return p[0]},ge.isCompositeComponent=ie,ge.isCompositeComponentWithType=xe,ge.isDOMComponent=Ue,ge.isDOMComponentElement=function(p){return!!(p&&e.isValidElement(p)&&p.tagName)},ge.isElement=function(p){return e.isValidElement(p)},ge.isElementOfType=function(p,P){return e.isValidElement(p)&&p.type===P},ge.mockComponent=function(p,P){return P=P||p.mockTagName||"div",p.prototype.render.mockImplementation(function(){return e.createElement(P,null,this.props.children)}),this},ge.nativeTouchData=function(p,P){return{touches:[{pageX:p,pageY:P}]}},ge.renderIntoDocument=function(p){var P=document.createElement("div");return t.render(p,P)},ge.scryRenderedComponentsWithType=_,ge.scryRenderedDOMComponentsWithClass=ht,ge.scryRenderedDOMComponentsWithTag=E,ge.traverseTwoPhase=k,ge}var we={};/**
|
|
231
|
+
* @license React
|
|
232
|
+
* react-dom-test-utils.development.js
|
|
233
|
+
*
|
|
234
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
235
|
+
*
|
|
236
|
+
* This source code is licensed under the MIT license found in the
|
|
237
|
+
* LICENSE file in the root directory of this source tree.
|
|
238
|
+
*/var pu;function Sv(){return pu||(pu=1,process.env.NODE_ENV!=="production"&&function(){var e=Pn,t=Xt,r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function o(h){{for(var O=arguments.length,S=new Array(O>1?O-1:0),q=1;q<O;q++)S[q-1]=arguments[q];a("warn",h,S)}}function n(h){{for(var O=arguments.length,S=new Array(O>1?O-1:0),q=1;q<O;q++)S[q-1]=arguments[q];a("error",h,S)}}function a(h,O,S){{var q=r.ReactDebugCurrentFrame,W=q.getStackAddendum();W!==""&&(O+="%s",S=S.concat([W]));var ee=S.map(function(ve){return String(ve)});ee.unshift("Warning: "+O),Function.prototype.apply.call(console[h],console,ee)}}function i(h){return h._reactInternals}var s=0,l=1,c=3,f=5,u=6,d=0,y=2,g=4096;r.ReactCurrentOwner;function w(h){var O=h,S=h;if(h.alternate)for(;O.return;)O=O.return;else{var q=O;do O=q,(O.flags&(y|g))!==d&&(S=O.return),q=O.return;while(q)}return O.tag===c?S:null}function v(h){if(w(h)!==h)throw new Error("Unable to find node on an unmounted component.")}function m(h){var O=h.alternate;if(!O){var S=w(h);if(S===null)throw new Error("Unable to find node on an unmounted component.");return S!==h?null:h}for(var q=h,W=O;;){var ee=q.return;if(ee===null)break;var ve=ee.alternate;if(ve===null){var Ve=ee.return;if(Ve!==null){q=W=Ve;continue}break}if(ee.child===ve.child){for(var We=ee.child;We;){if(We===q)return v(ee),h;if(We===W)return v(ee),O;We=We.sibling}throw new Error("Unable to find node on an unmounted component.")}if(q.return!==W.return)q=ee,W=ve;else{for(var Be=!1,Me=ee.child;Me;){if(Me===q){Be=!0,q=ee,W=ve;break}if(Me===W){Be=!0,W=ee,q=ve;break}Me=Me.sibling}if(!Be){for(Me=ve.child;Me;){if(Me===q){Be=!0,q=ve,W=ee;break}if(Me===W){Be=!0,W=ve,q=ee;break}Me=Me.sibling}if(!Be)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(q.alternate!==W)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(q.tag!==c)throw new Error("Unable to find node on an unmounted component.");return q.stateNode.current===q?h:O}var R=Object.assign;function M(h){var O,S=h.keyCode;return"charCode"in h?(O=h.charCode,O===0&&S===13&&(O=13)):O=S,O===10&&(O=13),O>=32||O===13?O:0}function $(){return!0}function N(){return!1}function C(h){function O(S,q,W,ee,ve){this._reactName=S,this._targetInst=W,this.type=q,this.nativeEvent=ee,this.target=ve,this.currentTarget=null;for(var Ve in h)if(h.hasOwnProperty(Ve)){var We=h[Ve];We?this[Ve]=We(ee):this[Ve]=ee[Ve]}var Be=ee.defaultPrevented!=null?ee.defaultPrevented:ee.returnValue===!1;return Be?this.isDefaultPrevented=$:this.isDefaultPrevented=N,this.isPropagationStopped=N,this}return R(O.prototype,{preventDefault:function(){this.defaultPrevented=!0;var S=this.nativeEvent;S&&(S.preventDefault?S.preventDefault():typeof S.returnValue!="unknown"&&(S.returnValue=!1),this.isDefaultPrevented=$)},stopPropagation:function(){var S=this.nativeEvent;S&&(S.stopPropagation?S.stopPropagation():typeof S.cancelBubble!="unknown"&&(S.cancelBubble=!0),this.isPropagationStopped=$)},persist:function(){},isPersistent:$}),O}var x={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(h){return h.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},I=C(x),Z=R({},x,{view:0,detail:0});C(Z);var K,oe,ce;function F(h){h!==ce&&(ce&&h.type==="mousemove"?(K=h.screenX-ce.screenX,oe=h.screenY-ce.screenY):(K=0,oe=0),ce=h)}var U=R({},Z,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Te,button:0,buttons:0,relatedTarget:function(h){return h.relatedTarget===void 0?h.fromElement===h.srcElement?h.toElement:h.fromElement:h.relatedTarget},movementX:function(h){return"movementX"in h?h.movementX:(F(h),K)},movementY:function(h){return"movementY"in h?h.movementY:oe}});C(U);var _e=R({},U,{dataTransfer:0});C(_e);var de=R({},Z,{relatedTarget:0});C(de);var pe=R({},x,{animationName:0,elapsedTime:0,pseudoElement:0});C(pe);var Ce=R({},x,{clipboardData:function(h){return"clipboardData"in h?h.clipboardData:window.clipboardData}});C(Ce);var Ie=R({},x,{data:0});C(Ie);var Ge={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Oe={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};function Ne(h){if(h.key){var O=Ge[h.key]||h.key;if(O!=="Unidentified")return O}if(h.type==="keypress"){var S=M(h);return S===13?"Enter":String.fromCharCode(S)}return h.type==="keydown"||h.type==="keyup"?Oe[h.keyCode]||"Unidentified":""}var Xe={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function De(h){var O=this,S=O.nativeEvent;if(S.getModifierState)return S.getModifierState(h);var q=Xe[h];return q?!!S[q]:!1}function Te(h){return De}var ot=R({},Z,{key:Ne,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Te,charCode:function(h){return h.type==="keypress"?M(h):0},keyCode:function(h){return h.type==="keydown"||h.type==="keyup"?h.keyCode:0},which:function(h){return h.type==="keypress"?M(h):h.type==="keydown"||h.type==="keyup"?h.keyCode:0}});C(ot);var Je=R({},U,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0});C(Je);var at=R({},Z,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Te});C(at);var st=R({},x,{propertyName:0,elapsedTime:0,pseudoElement:0});C(st);var lt=R({},U,{deltaX:function(h){return"deltaX"in h?h.deltaX:"wheelDeltaX"in h?-h.wheelDeltaX:0},deltaY:function(h){return"deltaY"in h?h.deltaY:"wheelDeltaY"in h?-h.wheelDeltaY:"wheelDelta"in h?-h.wheelDelta:0},deltaZ:0,deltaMode:0});C(lt);var B=1;function Se(h,O,S,q,W,ee,ve,Ve,We){var Be=Array.prototype.slice.call(arguments,3);try{O.apply(S,Be)}catch(Me){this.onError(Me)}}var Fe=Se;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var L=document.createElement("react");Fe=function(O,S,q,W,ee,ve,Ve,We,Be){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var Me=document.createEvent("Event"),bi=!1,dl=!0,fp=window.event,fl=Object.getOwnPropertyDescriptor(window,"event");function pl(){L.removeEventListener(vi,ml,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=fp)}var pp=Array.prototype.slice.call(arguments,3);function ml(){bi=!0,pl(),S.apply(q,pp),dl=!1}var vt,hl=!1,yl=!1;function bl(Xr){if(vt=Xr.error,hl=!0,vt===null&&Xr.colno===0&&Xr.lineno===0&&(yl=!0),Xr.defaultPrevented&&vt!=null&&typeof vt=="object")try{vt._suppressLogging=!0}catch{}}var vi="react-"+(O||"invokeguardedcallback");if(window.addEventListener("error",bl),L.addEventListener(vi,ml,!1),Me.initEvent(vi,!1,!1),L.dispatchEvent(Me),fl&&Object.defineProperty(window,"event",fl),bi&&dl&&(hl?yl&&(vt=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):vt=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(vt)),window.removeEventListener("error",bl),!bi)return pl(),Se.apply(this,arguments)}}var Ue=Fe,ie=!1,xe=null,He=!1,ht=null,E={onError:function(h){ie=!0,xe=h}};function _(h,O,S,q,W,ee,ve,Ve,We){ie=!1,xe=null,Ue.apply(E,arguments)}function A(h,O,S,q,W,ee,ve,Ve,We){if(_.apply(this,arguments),ie){var Be=b();He||(He=!0,ht=Be)}}function k(){if(He){var h=ht;throw He=!1,ht=null,h}}function b(){if(ie){var h=xe;return ie=!1,xe=null,h}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}var Y=Array.isArray;function ye(h){return Y(h)}var me=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Re=me.Events,H=Re[0],p=Re[1],P=Re[2],T=Re[3],D=Re[4],V=e.unstable_act;function Q(h){}var G=!1;function X(h,O){if(!h)return[];var S=m(h);if(!S)return[];for(var q=S,W=[];;){if(q.tag===f||q.tag===u||q.tag===l||q.tag===s){var ee=q.stateNode;O(ee)&&W.push(ee)}if(q.child){q.child.return=q,q=q.child;continue}if(q===S)return W;for(;!q.sibling;){if(!q.return||q.return===S)return W;q=q.return}q.sibling.return=q.return,q=q.sibling}}function be(h,O){if(h&&!i(h)){var S,q=String(h);throw ye(h)?S="an array":h&&h.nodeType===B&&h.tagName?S="a DOM node":q==="[object Object]"?S="object with keys {"+Object.keys(h).join(", ")+"}":S=q,new Error(O+"(...): the first argument must be a React class instance. "+("Instead received: "+S+"."))}}function ke(h){var O=document.createElement("div");return t.render(h,O)}function Le(h){return e.isValidElement(h)}function yt(h,O){return e.isValidElement(h)&&h.type===O}function Pe(h){return!!(h&&h.nodeType===B&&h.tagName)}function Gr(h){return!!(h&&e.isValidElement(h)&&h.tagName)}function Vt(h){return Pe(h)?!1:h!=null&&typeof h.render=="function"&&typeof h.setState=="function"}function or(h,O){if(!Vt(h))return!1;var S=i(h),q=S.type;return q===O}function Wt(h,O){if(be(h,"findAllInRenderedTree"),!h)return[];var S=i(h);return X(S,O)}function bt(h,O){return be(h,"scryRenderedDOMComponentsWithClass"),Wt(h,function(S){if(Pe(S)){var q=S.className;typeof q!="string"&&(q=S.getAttribute("class")||"");var W=q.split(/\s+/);if(!ye(O)){if(O===void 0)throw new Error("TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument.");O=O.split(/\s+/)}return O.every(function(ee){return W.indexOf(ee)!==-1})}return!1})}function Kf(h,O){be(h,"findRenderedDOMComponentWithClass");var S=bt(h,O);if(S.length!==1)throw new Error("Did not find exactly one match (found: "+S.length+") for class:"+O);return S[0]}function al(h,O){return be(h,"scryRenderedDOMComponentsWithTag"),Wt(h,function(S){return Pe(S)&&S.tagName.toUpperCase()===O.toUpperCase()})}function Yf(h,O){be(h,"findRenderedDOMComponentWithTag");var S=al(h,O);if(S.length!==1)throw new Error("Did not find exactly one match (found: "+S.length+") for tag:"+O);return S[0]}function il(h,O){return be(h,"scryRenderedComponentsWithType"),Wt(h,function(S){return or(S,O)})}function Gf(h,O){be(h,"findRenderedComponentWithType");var S=il(h,O);if(S.length!==1)throw new Error("Did not find exactly one match (found: "+S.length+") for componentType:"+O);return S[0]}function Xf(h,O){return G||(G=!0,o(`ReactTestUtils.mockComponent() is deprecated. Use shallow rendering or jest.mock() instead.
|
|
239
|
+
|
|
240
|
+
See https://reactjs.org/link/test-utils-mock-component for more information.`)),O=O||h.mockTagName||"div",h.prototype.render.mockImplementation(function(){return e.createElement(O,null,this.props.children)}),this}function Jf(h,O){return{touches:[{pageX:h,pageY:O}]}}function sl(h,O,S){var q=h.type||"unknown-event";h.currentTarget=p(S),A(q,O,void 0,h),h.currentTarget=null}function Qf(h){var O=h._dispatchListeners,S=h._dispatchInstances;if(ye(O))for(var q=0;q<O.length&&!h.isPropagationStopped();q++)sl(h,O[q],S[q]);else O&&sl(h,O,S);h._dispatchListeners=null,h._dispatchInstances=null}var Zf=function(h){h&&(Qf(h),h.isPersistent()||h.constructor.release(h))};function ep(h){return h==="button"||h==="input"||h==="select"||h==="textarea"}function tp(h){do h=h.return;while(h&&h.tag!==f);return h||null}function ll(h,O,S){for(var q=[];h;)q.push(h),h=tp(h);var W;for(W=q.length;W-- >0;)O(q[W],"captured",S);for(W=0;W<q.length;W++)O(q[W],"bubbled",S)}function rp(h,O,S){switch(h){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(S.disabled&&ep(O));default:return!1}}function ul(h,O){var S=h.stateNode;if(!S)return null;var q=P(S);if(!q)return null;var W=q[O];if(rp(O,h.type,q))return null;if(W&&typeof W!="function")throw new Error("Expected `"+O+"` listener to be a function, instead got a value of `"+typeof W+"` type.");return W}function np(h,O,S){var q=O._reactName;return S==="captured"&&(q+="Capture"),ul(h,q)}function op(h,O,S){if(h&&S&&S._reactName){var q=S._reactName,W=ul(h,q);W&&(S._dispatchListeners==null&&(S._dispatchListeners=[]),S._dispatchInstances==null&&(S._dispatchInstances=[]),S._dispatchListeners.push(W),S._dispatchInstances.push(h))}}function ap(h,O,S){h||n("Dispatching inst must not be null");var q=np(h,S,O);q&&(S._dispatchListeners==null&&(S._dispatchListeners=[]),S._dispatchInstances==null&&(S._dispatchInstances=[]),S._dispatchListeners.push(q),S._dispatchInstances.push(h))}function ip(h){h&&h._reactName&&op(h._targetInst,null,h)}function sp(h){h&&h._reactName&&ll(h._targetInst,ap,h)}var cl={},lp=new Set(["mouseEnter","mouseLeave","pointerEnter","pointerLeave"]);function up(h){return function(O,S){if(e.isValidElement(O))throw new Error("TestUtils.Simulate expected a DOM node as the first argument but received a React element. Pass the DOM node you wish to simulate the event on instead. Note that TestUtils.Simulate will not work if you are using shallow rendering.");if(Vt(O))throw new Error("TestUtils.Simulate expected a DOM node as the first argument but received a component instance. Pass the DOM node you wish to simulate the event on instead.");var q="on"+h[0].toUpperCase()+h.slice(1),W=new Q;W.target=O,W.type=h.toLowerCase();var ee=H(O),ve=new I(q,W.type,ee,W,O);ve.persist(),R(ve,S),lp.has(h)?ip(ve):sp(ve),t.unstable_batchedUpdates(function(){T(O),Zf(ve),k()}),D()}}var cp=["blur","cancel","click","close","contextMenu","copy","cut","auxClick","doubleClick","dragEnd","dragStart","drop","focus","input","invalid","keyDown","keyPress","keyUp","mouseDown","mouseUp","paste","pause","play","pointerCancel","pointerDown","pointerUp","rateChange","reset","resize","seeked","submit","touchCancel","touchEnd","touchStart","volumeChange","drag","dragEnter","dragExit","dragLeave","dragOver","mouseMove","mouseOut","mouseOver","pointerMove","pointerOut","pointerOver","scroll","toggle","touchMove","wheel","abort","animationEnd","animationIteration","animationStart","canPlay","canPlayThrough","durationChange","emptied","encrypted","ended","error","gotPointerCapture","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","playing","progress","seeking","stalled","suspend","timeUpdate","transitionEnd","waiting","mouseEnter","mouseLeave","pointerEnter","pointerLeave","change","select","beforeInput","compositionEnd","compositionStart","compositionUpdate"];function dp(){cp.forEach(function(h){cl[h]=up(h)})}dp(),we.Simulate=cl,we.act=V,we.findAllInRenderedTree=Wt,we.findRenderedComponentWithType=Gf,we.findRenderedDOMComponentWithClass=Kf,we.findRenderedDOMComponentWithTag=Yf,we.isCompositeComponent=Vt,we.isCompositeComponentWithType=or,we.isDOMComponent=Pe,we.isDOMComponentElement=Gr,we.isElement=Le,we.isElementOfType=yt,we.mockComponent=Xf,we.nativeTouchData=Jf,we.renderIntoDocument=ke,we.scryRenderedComponentsWithType=il,we.scryRenderedDOMComponentsWithClass=bt,we.scryRenderedDOMComponentsWithTag=al,we.traverseTwoPhase=ll}()),we}process.env.NODE_ENV==="production"?is.exports=Ov():is.exports=Sv();var Mv=is.exports,ss,ls,xr=Xt;if(process.env.NODE_ENV==="production")ls=xr.createRoot,ss=xr.hydrateRoot;else{var rn=xr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ls=function(e,t){rn.usingClientEntryPoint=!0;try{return xr.createRoot(e,t)}finally{rn.usingClientEntryPoint=!1}},ss=function(e,t,r){rn.usingClientEntryPoint=!0;try{return xr.hydrateRoot(e,t,r)}finally{rn.usingClientEntryPoint=!1}}}var Bt={},Ks={exports:{}};Ks.exports;(function(e){const r=(a=0)=>i=>`\x1B[${38+a};5;${i}m`,o=(a=0)=>(i,s,l)=>`\x1B[${38+a};2;${i};${s};${l}m`;function n(){const a=new Map,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};i.color.gray=i.color.blackBright,i.bgColor.bgGray=i.bgColor.bgBlackBright,i.color.grey=i.color.blackBright,i.bgColor.bgGrey=i.bgColor.bgBlackBright;for(const[s,l]of Object.entries(i)){for(const[c,f]of Object.entries(l))i[c]={open:`\x1B[${f[0]}m`,close:`\x1B[${f[1]}m`},l[c]=i[c],a.set(f[0],f[1]);Object.defineProperty(i,s,{value:l,enumerable:!1})}return Object.defineProperty(i,"codes",{value:a,enumerable:!1}),i.color.close="\x1B[39m",i.bgColor.close="\x1B[49m",i.color.ansi256=r(),i.color.ansi16m=o(),i.bgColor.ansi256=r(10),i.bgColor.ansi16m=o(10),Object.defineProperties(i,{rgbToAnsi256:{value:(s,l,c)=>s===l&&l===c?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(l/255*5)+Math.round(c/255*5),enumerable:!1},hexToRgb:{value:s=>{const l=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(s.toString(16));if(!l)return[0,0,0];let{colorString:c}=l.groups;c.length===3&&(c=c.split("").map(u=>u+u).join(""));const f=Number.parseInt(c,16);return[f>>16&255,f>>8&255,f&255]},enumerable:!1},hexToAnsi256:{value:s=>i.rgbToAnsi256(...i.hexToRgb(s)),enumerable:!1}}),i}Object.defineProperty(e,"exports",{enumerable:!0,get:n})})(Ks);var bd=Ks.exports,pt={};Object.defineProperty(pt,"__esModule",{value:!0});pt.printIteratorEntries=$v;pt.printIteratorValues=qv;pt.printListItems=Iv;pt.printObjectProperties=Nv;const Av=(e,t)=>{const r=Object.keys(e).sort(t);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(o=>{Object.getOwnPropertyDescriptor(e,o).enumerable&&r.push(o)}),r};function $v(e,t,r,o,n,a,i=": "){let s="",l=e.next();if(!l.done){s+=t.spacingOuter;const c=r+t.indent;for(;!l.done;){const f=a(l.value[0],t,c,o,n),u=a(l.value[1],t,c,o,n);s+=c+f+i+u,l=e.next(),l.done?t.min||(s+=","):s+=","+t.spacingInner}s+=t.spacingOuter+r}return s}function qv(e,t,r,o,n,a){let i="",s=e.next();if(!s.done){i+=t.spacingOuter;const l=r+t.indent;for(;!s.done;)i+=l+a(s.value,t,l,o,n),s=e.next(),s.done?t.min||(i+=","):i+=","+t.spacingInner;i+=t.spacingOuter+r}return i}function Iv(e,t,r,o,n,a){let i="";if(e.length){i+=t.spacingOuter;const s=r+t.indent;for(let l=0;l<e.length;l++)i+=s,l in e&&(i+=a(e[l],t,s,o,n)),l<e.length-1?i+=","+t.spacingInner:t.min||(i+=",");i+=t.spacingOuter+r}return i}function Nv(e,t,r,o,n,a){let i="";const s=Av(e,t.compareKeys);if(s.length){i+=t.spacingOuter;const l=r+t.indent;for(let c=0;c<s.length;c++){const f=s[c],u=a(f,t,l,o,n),d=a(e[f],t,l,o,n);i+=l+u+": "+d,c<s.length-1?i+=","+t.spacingInner:t.min||(i+=",")}i+=t.spacingOuter+r}return i}var At={};Object.defineProperty(At,"__esModule",{value:!0});At.test=At.serialize=At.default=void 0;var mu=pt,gn=function(){return typeof globalThis<"u"?globalThis:typeof gn<"u"?gn:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()}(),Ai=gn["jest-symbol-do-not-touch"]||gn.Symbol;const kv=typeof Ai=="function"&&Ai.for?Ai.for("jest.asymmetricMatcher"):1267621,nn=" ",vd=(e,t,r,o,n,a)=>{const i=e.toString();return i==="ArrayContaining"||i==="ArrayNotContaining"?++o>t.maxDepth?"["+i+"]":i+nn+"["+(0,mu.printListItems)(e.sample,t,r,o,n,a)+"]":i==="ObjectContaining"||i==="ObjectNotContaining"?++o>t.maxDepth?"["+i+"]":i+nn+"{"+(0,mu.printObjectProperties)(e.sample,t,r,o,n,a)+"}":i==="StringMatching"||i==="StringNotMatching"||i==="StringContaining"||i==="StringNotContaining"?i+nn+a(e.sample,t,r,o,n):e.toAsymmetricMatcher()};At.serialize=vd;const gd=e=>e&&e.$$typeof===kv;At.test=gd;const jv={serialize:vd,test:gd};var Dv=jv;At.default=Dv;var $t={},Fv=({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")};Object.defineProperty($t,"__esModule",{value:!0});$t.test=$t.serialize=$t.default=void 0;var wd=Ed(Fv),fe=Ed(bd);function Ed(e){return e&&e.__esModule?e:{default:e}}const Lv=e=>e.replace((0,wd.default)(),t=>{switch(t){case fe.default.red.close:case fe.default.green.close:case fe.default.cyan.close:case fe.default.gray.close:case fe.default.white.close:case fe.default.yellow.close:case fe.default.bgRed.close:case fe.default.bgGreen.close:case fe.default.bgYellow.close:case fe.default.inverse.close:case fe.default.dim.close:case fe.default.bold.close:case fe.default.reset.open:case fe.default.reset.close:return"</>";case fe.default.red.open:return"<red>";case fe.default.green.open:return"<green>";case fe.default.cyan.open:return"<cyan>";case fe.default.gray.open:return"<gray>";case fe.default.white.open:return"<white>";case fe.default.yellow.open:return"<yellow>";case fe.default.bgRed.open:return"<bgRed>";case fe.default.bgGreen.open:return"<bgGreen>";case fe.default.bgYellow.open:return"<bgYellow>";case fe.default.inverse.open:return"<inverse>";case fe.default.dim.open:return"<dim>";case fe.default.bold.open:return"<bold>";default:return""}}),_d=e=>typeof e=="string"&&!!e.match((0,wd.default)());$t.test=_d;const Cd=(e,t,r,o,n,a)=>a(Lv(e),t,r,o,n);$t.serialize=Cd;const Bv={serialize:Cd,test:_d};var Uv=Bv;$t.default=Uv;var qt={};Object.defineProperty(qt,"__esModule",{value:!0});qt.test=qt.serialize=qt.default=void 0;var hu=pt;const Hv=" ",Td=["DOMStringMap","NamedNodeMap"],Vv=/^(HTML\w*Collection|NodeList)$/,Wv=e=>Td.indexOf(e)!==-1||Vv.test(e),Rd=e=>e&&e.constructor&&!!e.constructor.name&&Wv(e.constructor.name);qt.test=Rd;const zv=e=>e.constructor.name==="NamedNodeMap",Pd=(e,t,r,o,n,a)=>{const i=e.constructor.name;return++o>t.maxDepth?"["+i+"]":(t.min?"":i+Hv)+(Td.indexOf(i)!==-1?"{"+(0,hu.printObjectProperties)(zv(e)?Array.from(e).reduce((s,l)=>(s[l.name]=l.value,s),{}):{...e},t,r,o,n,a)+"}":"["+(0,hu.printListItems)(Array.from(e),t,r,o,n,a)+"]")};qt.serialize=Pd;const Kv={serialize:Pd,test:Rd};var Yv=Kv;qt.default=Yv;var It={},$e={},Ys={};Object.defineProperty(Ys,"__esModule",{value:!0});Ys.default=Gv;function Gv(e){return e.replace(/</g,"<").replace(/>/g,">")}Object.defineProperty($e,"__esModule",{value:!0});$e.printText=$e.printProps=$e.printElementAsLeaf=$e.printElement=$e.printComment=$e.printChildren=void 0;var xd=Xv(Ys);function Xv(e){return e&&e.__esModule?e:{default:e}}const Jv=(e,t,r,o,n,a,i)=>{const s=o+r.indent,l=r.colors;return e.map(c=>{const f=t[c];let u=i(f,r,s,n,a);return typeof f!="string"&&(u.indexOf(`
|
|
241
|
+
`)!==-1&&(u=r.spacingOuter+s+u+r.spacingOuter+o),u="{"+u+"}"),r.spacingInner+o+l.prop.open+c+l.prop.close+"="+l.value.open+u+l.value.close}).join("")};$e.printProps=Jv;const Qv=(e,t,r,o,n,a)=>e.map(i=>t.spacingOuter+r+(typeof i=="string"?Od(i,t):a(i,t,r,o,n))).join("");$e.printChildren=Qv;const Od=(e,t)=>{const r=t.colors.content;return r.open+(0,xd.default)(e)+r.close};$e.printText=Od;const Zv=(e,t)=>{const r=t.colors.comment;return r.open+"<!--"+(0,xd.default)(e)+"-->"+r.close};$e.printComment=Zv;const eg=(e,t,r,o,n)=>{const a=o.colors.tag;return a.open+"<"+e+(t&&a.close+t+o.spacingOuter+n+a.open)+(r?">"+a.close+r+o.spacingOuter+n+a.open+"</"+e:(t&&!o.min?"":" ")+"/")+">"+a.close};$e.printElement=eg;const tg=(e,t)=>{const r=t.colors.tag;return r.open+"<"+e+r.close+" …"+r.open+" />"+r.close};$e.printElementAsLeaf=tg;Object.defineProperty(It,"__esModule",{value:!0});It.test=It.serialize=It.default=void 0;var ir=$e;const rg=1,Sd=3,Md=8,Ad=11,ng=/^((HTML|SVG)\w*)?Element$/,og=e=>{try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}},ag=e=>{const t=e.constructor.name,{nodeType:r,tagName:o}=e,n=typeof o=="string"&&o.includes("-")||og(e);return r===rg&&(ng.test(t)||n)||r===Sd&&t==="Text"||r===Md&&t==="Comment"||r===Ad&&t==="DocumentFragment"},$d=e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&ag(e)};It.test=$d;function ig(e){return e.nodeType===Sd}function sg(e){return e.nodeType===Md}function $i(e){return e.nodeType===Ad}const qd=(e,t,r,o,n,a)=>{if(ig(e))return(0,ir.printText)(e.data,t);if(sg(e))return(0,ir.printComment)(e.data,t);const i=$i(e)?"DocumentFragment":e.tagName.toLowerCase();return++o>t.maxDepth?(0,ir.printElementAsLeaf)(i,t):(0,ir.printElement)(i,(0,ir.printProps)($i(e)?[]:Array.from(e.attributes).map(s=>s.name).sort(),$i(e)?{}:Array.from(e.attributes).reduce((s,l)=>(s[l.name]=l.value,s),{}),t,r+t.indent,o,n,a),(0,ir.printChildren)(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,o,n,a),t,r)};It.serialize=qd;const lg={serialize:qd,test:$d};var ug=lg;It.default=ug;var Nt={};Object.defineProperty(Nt,"__esModule",{value:!0});Nt.test=Nt.serialize=Nt.default=void 0;var jr=pt;const cg="@@__IMMUTABLE_ITERABLE__@@",dg="@@__IMMUTABLE_LIST__@@",fg="@@__IMMUTABLE_KEYED__@@",pg="@@__IMMUTABLE_MAP__@@",yu="@@__IMMUTABLE_ORDERED__@@",mg="@@__IMMUTABLE_RECORD__@@",hg="@@__IMMUTABLE_SEQ__@@",yg="@@__IMMUTABLE_SET__@@",bg="@@__IMMUTABLE_STACK__@@",yr=e=>"Immutable."+e,Sn=e=>"["+e+"]",Dr=" ",bu="…",vg=(e,t,r,o,n,a,i)=>++o>t.maxDepth?Sn(yr(i)):yr(i)+Dr+"{"+(0,jr.printIteratorEntries)(e.entries(),t,r,o,n,a)+"}";function gg(e){let t=0;return{next(){if(t<e._keys.length){const r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}const wg=(e,t,r,o,n,a)=>{const i=yr(e._name||"Record");return++o>t.maxDepth?Sn(i):i+Dr+"{"+(0,jr.printIteratorEntries)(gg(e),t,r,o,n,a)+"}"},Eg=(e,t,r,o,n,a)=>{const i=yr("Seq");return++o>t.maxDepth?Sn(i):e[fg]?i+Dr+"{"+(e._iter||e._object?(0,jr.printIteratorEntries)(e.entries(),t,r,o,n,a):bu)+"}":i+Dr+"["+(e._iter||e._array||e._collection||e._iterable?(0,jr.printIteratorValues)(e.values(),t,r,o,n,a):bu)+"]"},qi=(e,t,r,o,n,a,i)=>++o>t.maxDepth?Sn(yr(i)):yr(i)+Dr+"["+(0,jr.printIteratorValues)(e.values(),t,r,o,n,a)+"]",Id=(e,t,r,o,n,a)=>e[pg]?vg(e,t,r,o,n,a,e[yu]?"OrderedMap":"Map"):e[dg]?qi(e,t,r,o,n,a,"List"):e[yg]?qi(e,t,r,o,n,a,e[yu]?"OrderedSet":"Set"):e[bg]?qi(e,t,r,o,n,a,"Stack"):e[hg]?Eg(e,t,r,o,n,a):wg(e,t,r,o,n,a);Nt.serialize=Id;const Nd=e=>e&&(e[cg]===!0||e[mg]===!0);Nt.test=Nd;const _g={serialize:Id,test:Nd};var Cg=_g;Nt.default=Cg;var kt={},us={exports:{}},se={};/** @license React v17.0.2
|
|
242
|
+
* react-is.production.min.js
|
|
243
|
+
*
|
|
244
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
245
|
+
*
|
|
246
|
+
* This source code is licensed under the MIT license found in the
|
|
247
|
+
* LICENSE file in the root directory of this source tree.
|
|
248
|
+
*/var vu;function Tg(){if(vu)return se;vu=1;var e=60103,t=60106,r=60107,o=60108,n=60114,a=60109,i=60110,s=60112,l=60113,c=60120,f=60115,u=60116,d=60121,y=60122,g=60117,w=60129,v=60131;if(typeof Symbol=="function"&&Symbol.for){var m=Symbol.for;e=m("react.element"),t=m("react.portal"),r=m("react.fragment"),o=m("react.strict_mode"),n=m("react.profiler"),a=m("react.provider"),i=m("react.context"),s=m("react.forward_ref"),l=m("react.suspense"),c=m("react.suspense_list"),f=m("react.memo"),u=m("react.lazy"),d=m("react.block"),y=m("react.server.block"),g=m("react.fundamental"),w=m("react.debug_trace_mode"),v=m("react.legacy_hidden")}function R(F){if(typeof F=="object"&&F!==null){var U=F.$$typeof;switch(U){case e:switch(F=F.type,F){case r:case n:case o:case l:case c:return F;default:switch(F=F&&F.$$typeof,F){case i:case s:case u:case f:case a:return F;default:return U}}case t:return U}}}var M=a,$=e,N=s,C=r,x=u,I=f,Z=t,K=n,oe=o,ce=l;return se.ContextConsumer=i,se.ContextProvider=M,se.Element=$,se.ForwardRef=N,se.Fragment=C,se.Lazy=x,se.Memo=I,se.Portal=Z,se.Profiler=K,se.StrictMode=oe,se.Suspense=ce,se.isAsyncMode=function(){return!1},se.isConcurrentMode=function(){return!1},se.isContextConsumer=function(F){return R(F)===i},se.isContextProvider=function(F){return R(F)===a},se.isElement=function(F){return typeof F=="object"&&F!==null&&F.$$typeof===e},se.isForwardRef=function(F){return R(F)===s},se.isFragment=function(F){return R(F)===r},se.isLazy=function(F){return R(F)===u},se.isMemo=function(F){return R(F)===f},se.isPortal=function(F){return R(F)===t},se.isProfiler=function(F){return R(F)===n},se.isStrictMode=function(F){return R(F)===o},se.isSuspense=function(F){return R(F)===l},se.isValidElementType=function(F){return typeof F=="string"||typeof F=="function"||F===r||F===n||F===w||F===o||F===l||F===c||F===v||typeof F=="object"&&F!==null&&(F.$$typeof===u||F.$$typeof===f||F.$$typeof===a||F.$$typeof===i||F.$$typeof===s||F.$$typeof===g||F.$$typeof===d||F[0]===y)},se.typeOf=R,se}var le={};/** @license React v17.0.2
|
|
249
|
+
* react-is.development.js
|
|
250
|
+
*
|
|
251
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
252
|
+
*
|
|
253
|
+
* This source code is licensed under the MIT license found in the
|
|
254
|
+
* LICENSE file in the root directory of this source tree.
|
|
255
|
+
*/var gu;function Rg(){return gu||(gu=1,process.env.NODE_ENV!=="production"&&function(){var e=60103,t=60106,r=60107,o=60108,n=60114,a=60109,i=60110,s=60112,l=60113,c=60120,f=60115,u=60116,d=60121,y=60122,g=60117,w=60129,v=60131;if(typeof Symbol=="function"&&Symbol.for){var m=Symbol.for;e=m("react.element"),t=m("react.portal"),r=m("react.fragment"),o=m("react.strict_mode"),n=m("react.profiler"),a=m("react.provider"),i=m("react.context"),s=m("react.forward_ref"),l=m("react.suspense"),c=m("react.suspense_list"),f=m("react.memo"),u=m("react.lazy"),d=m("react.block"),y=m("react.server.block"),g=m("react.fundamental"),m("react.scope"),m("react.opaque.id"),w=m("react.debug_trace_mode"),m("react.offscreen"),v=m("react.legacy_hidden")}var R=!1;function M(B){return!!(typeof B=="string"||typeof B=="function"||B===r||B===n||B===w||B===o||B===l||B===c||B===v||R||typeof B=="object"&&B!==null&&(B.$$typeof===u||B.$$typeof===f||B.$$typeof===a||B.$$typeof===i||B.$$typeof===s||B.$$typeof===g||B.$$typeof===d||B[0]===y))}function $(B){if(typeof B=="object"&&B!==null){var Se=B.$$typeof;switch(Se){case e:var Fe=B.type;switch(Fe){case r:case n:case o:case l:case c:return Fe;default:var L=Fe&&Fe.$$typeof;switch(L){case i:case s:case u:case f:case a:return L;default:return Se}}case t:return Se}}}var N=i,C=a,x=e,I=s,Z=r,K=u,oe=f,ce=t,F=n,U=o,_e=l,de=!1,pe=!1;function Ce(B){return de||(de=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Ie(B){return pe||(pe=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Ge(B){return $(B)===i}function Oe(B){return $(B)===a}function Ne(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function Xe(B){return $(B)===s}function De(B){return $(B)===r}function Te(B){return $(B)===u}function ot(B){return $(B)===f}function Je(B){return $(B)===t}function at(B){return $(B)===n}function st(B){return $(B)===o}function lt(B){return $(B)===l}le.ContextConsumer=N,le.ContextProvider=C,le.Element=x,le.ForwardRef=I,le.Fragment=Z,le.Lazy=K,le.Memo=oe,le.Portal=ce,le.Profiler=F,le.StrictMode=U,le.Suspense=_e,le.isAsyncMode=Ce,le.isConcurrentMode=Ie,le.isContextConsumer=Ge,le.isContextProvider=Oe,le.isElement=Ne,le.isForwardRef=Xe,le.isFragment=De,le.isLazy=Te,le.isMemo=ot,le.isPortal=Je,le.isProfiler=at,le.isStrictMode=st,le.isSuspense=lt,le.isValidElementType=M,le.typeOf=$}()),le}process.env.NODE_ENV==="production"?us.exports=Tg():us.exports=Rg();var Pg=us.exports;Object.defineProperty(kt,"__esModule",{value:!0});kt.test=kt.serialize=kt.default=void 0;var Yt=xg(Pg),on=$e;function kd(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(kd=function(o){return o?r:t})(e)}function xg(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=kd(t);if(r&&r.has(e))return r.get(e);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=n?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(o,a,i):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}const jd=(e,t=[])=>(Array.isArray(e)?e.forEach(r=>{jd(r,t)}):e!=null&&e!==!1&&t.push(e),t),wu=e=>{const t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(Yt.isFragment(e))return"React.Fragment";if(Yt.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(Yt.isContextProvider(e))return"Context.Provider";if(Yt.isContextConsumer(e))return"Context.Consumer";if(Yt.isForwardRef(e)){if(t.displayName)return t.displayName;const r=t.render.displayName||t.render.name||"";return r!==""?"ForwardRef("+r+")":"ForwardRef"}if(Yt.isMemo(e)){const r=t.displayName||t.type.displayName||t.type.name||"";return r!==""?"Memo("+r+")":"Memo"}}return"UNDEFINED"},Og=e=>{const{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()},Dd=(e,t,r,o,n,a)=>++o>t.maxDepth?(0,on.printElementAsLeaf)(wu(e),t):(0,on.printElement)(wu(e),(0,on.printProps)(Og(e),e.props,t,r+t.indent,o,n,a),(0,on.printChildren)(jd(e.props.children),t,r+t.indent,o,n,a),t,r);kt.serialize=Dd;const Fd=e=>e!=null&&Yt.isElement(e);kt.test=Fd;const Sg={serialize:Dd,test:Fd};var Mg=Sg;kt.default=Mg;var jt={};Object.defineProperty(jt,"__esModule",{value:!0});jt.test=jt.serialize=jt.default=void 0;var an=$e,wn=function(){return typeof globalThis<"u"?globalThis:typeof wn<"u"?wn:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()}(),Ii=wn["jest-symbol-do-not-touch"]||wn.Symbol;const Ag=typeof Ii=="function"&&Ii.for?Ii.for("react.test.json"):245830487,$g=e=>{const{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]},Ld=(e,t,r,o,n,a)=>++o>t.maxDepth?(0,an.printElementAsLeaf)(e.type,t):(0,an.printElement)(e.type,e.props?(0,an.printProps)($g(e),e.props,t,r+t.indent,o,n,a):"",e.children?(0,an.printChildren)(e.children,t,r+t.indent,o,n,a):"",t,r);jt.serialize=Ld;const Bd=e=>e&&e.$$typeof===Ag;jt.test=Bd;const qg={serialize:Ld,test:Bd};var Ig=qg;jt.default=Ig;Object.defineProperty(Bt,"__esModule",{value:!0});Bt.default=Bt.DEFAULT_OPTIONS=void 0;var Ng=Bt.format=Zd,Ud=Bt.plugins=void 0,kg=Ht(bd),Or=pt,jg=Ht(At),Dg=Ht($t),Fg=Ht(qt),Lg=Ht(It),Bg=Ht(Nt),Ug=Ht(kt),Hg=Ht(jt);function Ht(e){return e&&e.__esModule?e:{default:e}}const Hd=Object.prototype.toString,Vg=Date.prototype.toISOString,Wg=Error.prototype.toString,Eu=RegExp.prototype.toString,Ni=e=>typeof e.constructor=="function"&&e.constructor.name||"Object",zg=e=>typeof window<"u"&&e===window,Kg=/^Symbol\((.*)\)(.*)$/,Yg=/\n/gi;class Vd extends Error{constructor(t,r){super(t),this.stack=r,this.name=this.constructor.name}}function Gg(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function Xg(e){return Object.is(e,-0)?"-0":String(e)}function Jg(e){return`${e}n`}function _u(e,t){return t?"[Function "+(e.name||"anonymous")+"]":"[Function]"}function Cu(e){return String(e).replace(Kg,"Symbol($1)")}function Tu(e){return"["+Wg.call(e)+"]"}function Wd(e,t,r,o){if(e===!0||e===!1)return""+e;if(e===void 0)return"undefined";if(e===null)return"null";const n=typeof e;if(n==="number")return Xg(e);if(n==="bigint")return Jg(e);if(n==="string")return o?'"'+e.replace(/"|\\/g,"\\$&")+'"':'"'+e+'"';if(n==="function")return _u(e,t);if(n==="symbol")return Cu(e);const a=Hd.call(e);return a==="[object WeakMap]"?"WeakMap {}":a==="[object WeakSet]"?"WeakSet {}":a==="[object Function]"||a==="[object GeneratorFunction]"?_u(e,t):a==="[object Symbol]"?Cu(e):a==="[object Date]"?isNaN(+e)?"Date { NaN }":Vg.call(e):a==="[object Error]"?Tu(e):a==="[object RegExp]"?r?Eu.call(e).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):Eu.call(e):e instanceof Error?Tu(e):null}function zd(e,t,r,o,n,a){if(n.indexOf(e)!==-1)return"[Circular]";n=n.slice(),n.push(e);const i=++o>t.maxDepth,s=t.min;if(t.callToJSON&&!i&&e.toJSON&&typeof e.toJSON=="function"&&!a)return _t(e.toJSON(),t,r,o,n,!0);const l=Hd.call(e);return l==="[object Arguments]"?i?"[Arguments]":(s?"":"Arguments ")+"["+(0,Or.printListItems)(e,t,r,o,n,_t)+"]":Gg(l)?i?"["+e.constructor.name+"]":(s||!t.printBasicPrototype&&e.constructor.name==="Array"?"":e.constructor.name+" ")+"["+(0,Or.printListItems)(e,t,r,o,n,_t)+"]":l==="[object Map]"?i?"[Map]":"Map {"+(0,Or.printIteratorEntries)(e.entries(),t,r,o,n,_t," => ")+"}":l==="[object Set]"?i?"[Set]":"Set {"+(0,Or.printIteratorValues)(e.values(),t,r,o,n,_t)+"}":i||zg(e)?"["+Ni(e)+"]":(s||!t.printBasicPrototype&&Ni(e)==="Object"?"":Ni(e)+" ")+"{"+(0,Or.printObjectProperties)(e,t,r,o,n,_t)+"}"}function Qg(e){return e.serialize!=null}function Kd(e,t,r,o,n,a){let i;try{i=Qg(e)?e.serialize(t,r,o,n,a,_t):e.print(t,s=>_t(s,r,o,n,a),s=>{const l=o+r.indent;return l+s.replace(Yg,`
|
|
256
|
+
`+l)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(s){throw new Vd(s.message,s.stack)}if(typeof i!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof i}".`);return i}function Yd(e,t){for(let r=0;r<e.length;r++)try{if(e[r].test(t))return e[r]}catch(o){throw new Vd(o.message,o.stack)}return null}function _t(e,t,r,o,n,a){const i=Yd(t.plugins,e);if(i!==null)return Kd(i,e,t,r,o,n);const s=Wd(e,t.printFunctionName,t.escapeRegex,t.escapeString);return s!==null?s:zd(e,t,r,o,n,a)}const Gs={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},Gd=Object.keys(Gs),Ze={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:Gs};Bt.DEFAULT_OPTIONS=Ze;function Zg(e){if(Object.keys(e).forEach(t=>{if(!Ze.hasOwnProperty(t))throw new Error(`pretty-format: Unknown option "${t}".`)}),e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(e.theme!==void 0){if(e.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof e.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof e.theme}".`)}}const ew=e=>Gd.reduce((t,r)=>{const o=e.theme&&e.theme[r]!==void 0?e.theme[r]:Gs[r],n=o&&kg.default[o];if(n&&typeof n.close=="string"&&typeof n.open=="string")t[r]=n;else throw new Error(`pretty-format: Option "theme" has a key "${r}" whose value "${o}" is undefined in ansi-styles.`);return t},Object.create(null)),tw=()=>Gd.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null)),Xd=e=>e&&e.printFunctionName!==void 0?e.printFunctionName:Ze.printFunctionName,Jd=e=>e&&e.escapeRegex!==void 0?e.escapeRegex:Ze.escapeRegex,Qd=e=>e&&e.escapeString!==void 0?e.escapeString:Ze.escapeString,Ru=e=>{var t;return{callToJSON:e&&e.callToJSON!==void 0?e.callToJSON:Ze.callToJSON,colors:e&&e.highlight?ew(e):tw(),compareKeys:e&&typeof e.compareKeys=="function"?e.compareKeys:Ze.compareKeys,escapeRegex:Jd(e),escapeString:Qd(e),indent:e&&e.min?"":rw(e&&e.indent!==void 0?e.indent:Ze.indent),maxDepth:e&&e.maxDepth!==void 0?e.maxDepth:Ze.maxDepth,min:e&&e.min!==void 0?e.min:Ze.min,plugins:e&&e.plugins!==void 0?e.plugins:Ze.plugins,printBasicPrototype:(t=e==null?void 0:e.printBasicPrototype)!==null&&t!==void 0?t:!0,printFunctionName:Xd(e),spacingInner:e&&e.min?" ":`
|
|
257
|
+
`,spacingOuter:e&&e.min?"":`
|
|
258
|
+
`}};function rw(e){return new Array(e+1).join(" ")}function Zd(e,t){if(t&&(Zg(t),t.plugins)){const o=Yd(t.plugins,e);if(o!==null)return Kd(o,e,Ru(t),"",0,[])}const r=Wd(e,Xd(t),Jd(t),Qd(t));return r!==null?r:zd(e,Ru(t),"",0,[])}const nw={AsymmetricMatcher:jg.default,ConvertAnsi:Dg.default,DOMCollection:Fg.default,DOMElement:Lg.default,Immutable:Bg.default,ReactElement:Ug.default,ReactTestComponent:Hg.default};Ud=Bt.plugins=nw;var ow=Zd;Bt.default=ow;var aw=Object.prototype.toString;function iw(e){return typeof e=="function"||aw.call(e)==="[object Function]"}function sw(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var lw=Math.pow(2,53)-1;function uw(e){var t=sw(e);return Math.min(Math.max(t,0),lw)}function et(e,t){var r=Array,o=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");for(var n=uw(o.length),a=iw(r)?Object(new r(n)):new Array(n),i=0,s;i<n;)s=o[i],a[i]=s,i+=1;return a.length=n,a}function Fr(e){"@babel/helpers - typeof";return Fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fr(e)}function cw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dw(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ef(o.key),o)}}function fw(e,t,r){return t&&dw(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pw(e,t,r){return t=ef(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ef(e){var t=mw(e,"string");return Fr(t)==="symbol"?t:String(t)}function mw(e,t){if(Fr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t);if(Fr(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var hw=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];cw(this,e),pw(this,"items",void 0),this.items=t}return fw(e,[{key:"add",value:function(r){return this.has(r)===!1&&this.items.push(r),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(r){var o=this.items.length;return this.items=this.items.filter(function(n){return n!==r}),o!==this.items.length}},{key:"forEach",value:function(r){var o=this;this.items.forEach(function(n){r(n,n,o)})}},{key:"has",value:function(r){return this.items.indexOf(r)!==-1}},{key:"size",get:function(){return this.items.length}}]),e}();const yw=typeof Set>"u"?Set:hw;function qe(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var bw={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},vw={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function gw(e,t){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some(function(r){var o;return e.hasAttribute(r)&&!((o=vw[t])!==null&&o!==void 0&&o.has(r))})}function tf(e,t){return gw(e,t)}function ww(e){var t=_w(e);if(t===null||t==="presentation"){var r=Ew(e);if(t!=="presentation"||tf(e,r||""))return r}return t}function Ew(e){var t=bw[qe(e)];if(t!==void 0)return t;switch(qe(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!tf(e,"img")?"presentation":"img";case"input":{var r=e,o=r.type;switch(o){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return o;case"range":return"slider";case"email":case"tel":case"text":case"url":return e.hasAttribute("list")?"combobox":"textbox";case"search":return e.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}}case"select":return e.hasAttribute("multiple")||e.size>1?"listbox":"combobox"}return null}function _w(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}function he(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function rf(e){return he(e)&&qe(e)==="caption"}function fn(e){return he(e)&&qe(e)==="input"}function Cw(e){return he(e)&&qe(e)==="optgroup"}function Tw(e){return he(e)&&qe(e)==="select"}function Rw(e){return he(e)&&qe(e)==="table"}function Pw(e){return he(e)&&qe(e)==="textarea"}function xw(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function Ow(e){return he(e)&&qe(e)==="fieldset"}function Sw(e){return he(e)&&qe(e)==="legend"}function Mw(e){return he(e)&&qe(e)==="slot"}function Aw(e){return he(e)&&e.ownerSVGElement!==void 0}function $w(e){return he(e)&&qe(e)==="svg"}function qw(e){return Aw(e)&&qe(e)==="title"}function En(e,t){if(he(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),o=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(n){return o.getElementById(n)}).filter(function(n){return n!==null})}return[]}function ct(e,t){return he(e)?t.indexOf(ww(e))!==-1:!1}function Iw(e){return e.trim().replace(/\s\s+/g," ")}function Nw(e,t){if(!he(e))return!1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return!0;var r=t(e);return r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"}function kw(e){return ct(e,["button","combobox","listbox","textbox"])||nf(e,"range")}function nf(e,t){if(!he(e))return!1;switch(t){case"range":return ct(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function Pu(e,t){var r=et(e.querySelectorAll(t));return En(e,"aria-owns").forEach(function(o){r.push.apply(r,et(o.querySelectorAll(t)))}),r}function jw(e){return Tw(e)?e.selectedOptions||Pu(e,"[selected]"):Pu(e,'[aria-selected="true"]')}function Dw(e){return ct(e,["none","presentation"])}function Fw(e){return rf(e)}function Lw(e){return ct(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function Bw(e){return!1}function Uw(e){return fn(e)||Pw(e)?e.value:e.textContent||""}function xu(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function of(e){var t=qe(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function af(e){if(of(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&he(r)){var o=af(r);o!==null&&(t=o)}}),t}function Hw(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):af(e)}function Vw(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return et(t);if(!of(e))return null;var r=e.ownerDocument;return et(r.querySelectorAll("label")).filter(function(o){return Hw(o)===e})}function Ww(e){var t=e.assignedNodes();return t.length===0?et(e.childNodes):t}function sf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new yw,o=xw(e),n=t.compute,a=n===void 0?"name":n,i=t.computedStyleSupportsPseudoElements,s=i===void 0?t.getComputedStyle!==void 0:i,l=t.getComputedStyle,c=l===void 0?o.getComputedStyle.bind(o):l,f=t.hidden,u=f===void 0?!1:f;function d(m,R){var M="";if(he(m)&&s){var $=c(m,"::before"),N=xu($);M="".concat(N," ").concat(M)}var C=Mw(m)?Ww(m):et(m.childNodes).concat(En(m,"aria-owns"));if(C.forEach(function(Z){var K=v(Z,{isEmbeddedInLabel:R.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),oe=he(Z)?c(Z).getPropertyValue("display"):"inline",ce=oe!=="inline"?" ":"";M+="".concat(ce).concat(K).concat(ce)}),he(m)&&s){var x=c(m,"::after"),I=xu(x);M="".concat(M," ").concat(I)}return M.trim()}function y(m,R){var M=m.getAttributeNode(R);return M!==null&&!r.has(M)&&M.value.trim()!==""?(r.add(M),M.value):null}function g(m){return he(m)?y(m,"title"):null}function w(m){if(!he(m))return null;if(Ow(m)){r.add(m);for(var R=et(m.childNodes),M=0;M<R.length;M+=1){var $=R[M];if(Sw($))return v($,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(Rw(m)){r.add(m);for(var N=et(m.childNodes),C=0;C<N.length;C+=1){var x=N[C];if(rf(x))return v(x,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if($w(m)){r.add(m);for(var I=et(m.childNodes),Z=0;Z<I.length;Z+=1){var K=I[Z];if(qw(K))return K.textContent}return null}else if(qe(m)==="img"||qe(m)==="area"){var oe=y(m,"alt");if(oe!==null)return oe}else if(Cw(m)){var ce=y(m,"label");if(ce!==null)return ce}if(fn(m)&&(m.type==="button"||m.type==="submit"||m.type==="reset")){var F=y(m,"value");if(F!==null)return F;if(m.type==="submit")return"Submit";if(m.type==="reset")return"Reset"}var U=Vw(m);if(U!==null&&U.length!==0)return r.add(m),et(U).map(function(Ce){return v(Ce,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(Ce){return Ce.length>0}).join(" ");if(fn(m)&&m.type==="image"){var _e=y(m,"alt");if(_e!==null)return _e;var de=y(m,"title");return de!==null?de:"Submit Query"}if(ct(m,["button"])){var pe=d(m,{isEmbeddedInLabel:!1,isReferenced:!1});if(pe!=="")return pe}return null}function v(m,R){if(r.has(m))return"";if(!u&&Nw(m,c)&&!R.isReferenced)return r.add(m),"";var M=he(m)?m.getAttributeNode("aria-labelledby"):null,$=M!==null&&!r.has(M)?En(m,"aria-labelledby"):[];if(a==="name"&&!R.isReferenced&&$.length>0)return r.add(M),$.map(function(oe){return v(oe,{isEmbeddedInLabel:R.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var N=R.recursion&&kw(m)&&a==="name";if(!N){var C=(he(m)&&m.getAttribute("aria-label")||"").trim();if(C!==""&&a==="name")return r.add(m),C;if(!Dw(m)){var x=w(m);if(x!==null)return r.add(m),x}}if(ct(m,["menu"]))return r.add(m),"";if(N||R.isEmbeddedInLabel||R.isReferenced){if(ct(m,["combobox","listbox"])){r.add(m);var I=jw(m);return I.length===0?fn(m)?m.value:"":et(I).map(function(oe){return v(oe,{isEmbeddedInLabel:R.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(nf(m,"range"))return r.add(m),m.hasAttribute("aria-valuetext")?m.getAttribute("aria-valuetext"):m.hasAttribute("aria-valuenow")?m.getAttribute("aria-valuenow"):m.getAttribute("value")||"";if(ct(m,["textbox"]))return r.add(m),Uw(m)}if(Lw(m)||he(m)&&R.isReferenced||Fw(m)||Bw()){var Z=d(m,{isEmbeddedInLabel:R.isEmbeddedInLabel,isReferenced:!1});if(Z!=="")return r.add(m),Z}if(m.nodeType===m.TEXT_NODE)return r.add(m),m.textContent||"";if(R.recursion)return r.add(m),d(m,{isEmbeddedInLabel:R.isEmbeddedInLabel,isReferenced:!1});var K=g(m);return K!==null?(r.add(m),K):(r.add(m),"")}return Iw(v(e,{isEmbeddedInLabel:!1,isReferenced:a==="description",recursion:!1}))}function Lr(e){"@babel/helpers - typeof";return Lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lr(e)}function Ou(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function Su(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ou(Object(r),!0).forEach(function(o){zw(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ou(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function zw(e,t,r){return t=Kw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kw(e){var t=Yw(e,"string");return Lr(t)==="symbol"?t:String(t)}function Yw(e,t){if(Lr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t);if(Lr(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function lf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=En(e,"aria-describedby").map(function(n){return sf(n,Su(Su({},t),{},{compute:"description"}))}).join(" ");if(r===""){var o=e.getAttribute("title");r=o===null?"":o}return r}function Gw(e){return ct(e,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}function Xs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Gw(e)?"":sf(e,t)}var rt={},Mn={},tr={},An={};Object.defineProperty(An,"__esModule",{value:!0});An.default=void 0;function Xw(){var e=this,t=0,r={"@@iterator":function(){return r},next:function(){if(t<e.length){var n=e[t];return t=t+1,{done:!1,value:n}}else return{done:!0}}};return r}var Jw=Xw;An.default=Jw;Object.defineProperty(tr,"__esModule",{value:!0});tr.default=eE;var Qw=Zw(An);function Zw(e){return e&&e.__esModule?e:{default:e}}function cs(e){"@babel/helpers - typeof";return cs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cs(e)}function eE(e,t){return typeof Symbol=="function"&&cs(Symbol.iterator)==="symbol"&&Object.defineProperty(e,Symbol.iterator,{value:Qw.default.bind(t)}),e}Object.defineProperty(Mn,"__esModule",{value:!0});Mn.default=void 0;var tE=rE(tr);function rE(e){return e&&e.__esModule?e:{default:e}}function ki(e,t){return aE(e)||oE(e,t)||uf(e,t)||nE()}function nE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
259
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var o=[],n=!0,a=!1,i,s;try{for(r=r.call(e);!(n=(i=r.next()).done)&&(o.push(i.value),!(t&&o.length===t));n=!0);}catch(l){a=!0,s=l}finally{try{!n&&r.return!=null&&r.return()}finally{if(a)throw s}}return o}}function aE(e){if(Array.isArray(e))return e}function iE(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=uf(e))||t){r&&(e=r);var o=0,n=function(){};return{s:n,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(c){throw c},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
260
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,i=!1,s;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return a=c.done,c},e:function(c){i=!0,s=c},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(i)throw s}}}}function uf(e,t){if(e){if(typeof e=="string")return Mu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mu(e,t)}}function Mu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}var sr=[["aria-activedescendant",{type:"id"}],["aria-atomic",{type:"boolean"}],["aria-autocomplete",{type:"token",values:["inline","list","both","none"]}],["aria-braillelabel",{type:"string"}],["aria-brailleroledescription",{type:"string"}],["aria-busy",{type:"boolean"}],["aria-checked",{type:"tristate"}],["aria-colcount",{type:"integer"}],["aria-colindex",{type:"integer"}],["aria-colspan",{type:"integer"}],["aria-controls",{type:"idlist"}],["aria-current",{type:"token",values:["page","step","location","date","time",!0,!1]}],["aria-describedby",{type:"idlist"}],["aria-description",{type:"string"}],["aria-details",{type:"id"}],["aria-disabled",{type:"boolean"}],["aria-dropeffect",{type:"tokenlist",values:["copy","execute","link","move","none","popup"]}],["aria-errormessage",{type:"id"}],["aria-expanded",{type:"boolean",allowundefined:!0}],["aria-flowto",{type:"idlist"}],["aria-grabbed",{type:"boolean",allowundefined:!0}],["aria-haspopup",{type:"token",values:[!1,!0,"menu","listbox","tree","grid","dialog"]}],["aria-hidden",{type:"boolean",allowundefined:!0}],["aria-invalid",{type:"token",values:["grammar",!1,"spelling",!0]}],["aria-keyshortcuts",{type:"string"}],["aria-label",{type:"string"}],["aria-labelledby",{type:"idlist"}],["aria-level",{type:"integer"}],["aria-live",{type:"token",values:["assertive","off","polite"]}],["aria-modal",{type:"boolean"}],["aria-multiline",{type:"boolean"}],["aria-multiselectable",{type:"boolean"}],["aria-orientation",{type:"token",values:["vertical","undefined","horizontal"]}],["aria-owns",{type:"idlist"}],["aria-placeholder",{type:"string"}],["aria-posinset",{type:"integer"}],["aria-pressed",{type:"tristate"}],["aria-readonly",{type:"boolean"}],["aria-relevant",{type:"tokenlist",values:["additions","all","removals","text"]}],["aria-required",{type:"boolean"}],["aria-roledescription",{type:"string"}],["aria-rowcount",{type:"integer"}],["aria-rowindex",{type:"integer"}],["aria-rowspan",{type:"integer"}],["aria-selected",{type:"boolean",allowundefined:!0}],["aria-setsize",{type:"integer"}],["aria-sort",{type:"token",values:["ascending","descending","none","other"]}],["aria-valuemax",{type:"number"}],["aria-valuemin",{type:"number"}],["aria-valuenow",{type:"number"}],["aria-valuetext",{type:"string"}]],ds={entries:function(){return sr},forEach:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,o=iE(sr),n;try{for(o.s();!(n=o.n()).done;){var a=ki(n.value,2),i=a[0],s=a[1];t.call(r,s,i,sr)}}catch(l){o.e(l)}finally{o.f()}},get:function(t){var r=sr.find(function(o){return o[0]===t});return r&&r[1]},has:function(t){return!!ds.get(t)},keys:function(){return sr.map(function(t){var r=ki(t,1),o=r[0];return o})},values:function(){return sr.map(function(t){var r=ki(t,2),o=r[1];return o})}},sE=(0,tE.default)(ds,ds.entries());Mn.default=sE;var $n={};Object.defineProperty($n,"__esModule",{value:!0});$n.default=void 0;var lE=uE(tr);function uE(e){return e&&e.__esModule?e:{default:e}}function ji(e,t){return fE(e)||dE(e,t)||cf(e,t)||cE()}function cE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
261
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var o=[],n=!0,a=!1,i,s;try{for(r=r.call(e);!(n=(i=r.next()).done)&&(o.push(i.value),!(t&&o.length===t));n=!0);}catch(l){a=!0,s=l}finally{try{!n&&r.return!=null&&r.return()}finally{if(a)throw s}}return o}}function fE(e){if(Array.isArray(e))return e}function pE(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=cf(e))||t){r&&(e=r);var o=0,n=function(){};return{s:n,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(c){throw c},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
262
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,i=!1,s;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return a=c.done,c},e:function(c){i=!0,s=c},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(i)throw s}}}}function cf(e,t){if(e){if(typeof e=="string")return Au(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Au(e,t)}}function Au(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}var lr=[["a",{reserved:!1}],["abbr",{reserved:!1}],["acronym",{reserved:!1}],["address",{reserved:!1}],["applet",{reserved:!1}],["area",{reserved:!1}],["article",{reserved:!1}],["aside",{reserved:!1}],["audio",{reserved:!1}],["b",{reserved:!1}],["base",{reserved:!0}],["bdi",{reserved:!1}],["bdo",{reserved:!1}],["big",{reserved:!1}],["blink",{reserved:!1}],["blockquote",{reserved:!1}],["body",{reserved:!1}],["br",{reserved:!1}],["button",{reserved:!1}],["canvas",{reserved:!1}],["caption",{reserved:!1}],["center",{reserved:!1}],["cite",{reserved:!1}],["code",{reserved:!1}],["col",{reserved:!0}],["colgroup",{reserved:!0}],["content",{reserved:!1}],["data",{reserved:!1}],["datalist",{reserved:!1}],["dd",{reserved:!1}],["del",{reserved:!1}],["details",{reserved:!1}],["dfn",{reserved:!1}],["dialog",{reserved:!1}],["dir",{reserved:!1}],["div",{reserved:!1}],["dl",{reserved:!1}],["dt",{reserved:!1}],["em",{reserved:!1}],["embed",{reserved:!1}],["fieldset",{reserved:!1}],["figcaption",{reserved:!1}],["figure",{reserved:!1}],["font",{reserved:!1}],["footer",{reserved:!1}],["form",{reserved:!1}],["frame",{reserved:!1}],["frameset",{reserved:!1}],["h1",{reserved:!1}],["h2",{reserved:!1}],["h3",{reserved:!1}],["h4",{reserved:!1}],["h5",{reserved:!1}],["h6",{reserved:!1}],["head",{reserved:!0}],["header",{reserved:!1}],["hgroup",{reserved:!1}],["hr",{reserved:!1}],["html",{reserved:!0}],["i",{reserved:!1}],["iframe",{reserved:!1}],["img",{reserved:!1}],["input",{reserved:!1}],["ins",{reserved:!1}],["kbd",{reserved:!1}],["keygen",{reserved:!1}],["label",{reserved:!1}],["legend",{reserved:!1}],["li",{reserved:!1}],["link",{reserved:!0}],["main",{reserved:!1}],["map",{reserved:!1}],["mark",{reserved:!1}],["marquee",{reserved:!1}],["menu",{reserved:!1}],["menuitem",{reserved:!1}],["meta",{reserved:!0}],["meter",{reserved:!1}],["nav",{reserved:!1}],["noembed",{reserved:!0}],["noscript",{reserved:!0}],["object",{reserved:!1}],["ol",{reserved:!1}],["optgroup",{reserved:!1}],["option",{reserved:!1}],["output",{reserved:!1}],["p",{reserved:!1}],["param",{reserved:!0}],["picture",{reserved:!0}],["pre",{reserved:!1}],["progress",{reserved:!1}],["q",{reserved:!1}],["rp",{reserved:!1}],["rt",{reserved:!1}],["rtc",{reserved:!1}],["ruby",{reserved:!1}],["s",{reserved:!1}],["samp",{reserved:!1}],["script",{reserved:!0}],["section",{reserved:!1}],["select",{reserved:!1}],["small",{reserved:!1}],["source",{reserved:!0}],["spacer",{reserved:!1}],["span",{reserved:!1}],["strike",{reserved:!1}],["strong",{reserved:!1}],["style",{reserved:!0}],["sub",{reserved:!1}],["summary",{reserved:!1}],["sup",{reserved:!1}],["table",{reserved:!1}],["tbody",{reserved:!1}],["td",{reserved:!1}],["textarea",{reserved:!1}],["tfoot",{reserved:!1}],["th",{reserved:!1}],["thead",{reserved:!1}],["time",{reserved:!1}],["title",{reserved:!0}],["tr",{reserved:!1}],["track",{reserved:!0}],["tt",{reserved:!1}],["u",{reserved:!1}],["ul",{reserved:!1}],["var",{reserved:!1}],["video",{reserved:!1}],["wbr",{reserved:!1}],["xmp",{reserved:!1}]],fs={entries:function(){return lr},forEach:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,o=pE(lr),n;try{for(o.s();!(n=o.n()).done;){var a=ji(n.value,2),i=a[0],s=a[1];t.call(r,s,i,lr)}}catch(l){o.e(l)}finally{o.f()}},get:function(t){var r=lr.find(function(o){return o[0]===t});return r&&r[1]},has:function(t){return!!fs.get(t)},keys:function(){return lr.map(function(t){var r=ji(t,1),o=r[0];return o})},values:function(){return lr.map(function(t){var r=ji(t,2),o=r[1];return o})}},mE=(0,lE.default)(fs,fs.entries());$n.default=mE;var Er={},qn={},In={};Object.defineProperty(In,"__esModule",{value:!0});In.default=void 0;var hE={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},yE=hE;In.default=yE;var Nn={};Object.defineProperty(Nn,"__esModule",{value:!0});Nn.default=void 0;var bE={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},vE=bE;Nn.default=vE;var kn={};Object.defineProperty(kn,"__esModule",{value:!0});kn.default=void 0;var gE={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null},relatedConcepts:[{concept:{name:"input"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},wE=gE;kn.default=wE;var jn={};Object.defineProperty(jn,"__esModule",{value:!0});jn.default=void 0;var EE={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},_E=EE;jn.default=_E;var Dn={};Object.defineProperty(Dn,"__esModule",{value:!0});Dn.default=void 0;var CE={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},TE=CE;Dn.default=TE;var Fn={};Object.defineProperty(Fn,"__esModule",{value:!0});Fn.default=void 0;var RE={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{"aria-atomic":null,"aria-busy":null,"aria-controls":null,"aria-current":null,"aria-describedby":null,"aria-details":null,"aria-dropeffect":null,"aria-flowto":null,"aria-grabbed":null,"aria-hidden":null,"aria-keyshortcuts":null,"aria-label":null,"aria-labelledby":null,"aria-live":null,"aria-owns":null,"aria-relevant":null,"aria-roledescription":null},relatedConcepts:[{concept:{name:"role"},module:"XHTML"},{concept:{name:"type"},module:"Dublin Core"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},PE=RE;Fn.default=PE;var Ln={};Object.defineProperty(Ln,"__esModule",{value:!0});Ln.default=void 0;var xE={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"frontmatter"},module:"DTB"},{concept:{name:"level"},module:"DTB"},{concept:{name:"level"},module:"SMIL"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},OE=xE;Ln.default=OE;var Bn={};Object.defineProperty(Bn,"__esModule",{value:!0});Bn.default=void 0;var SE={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},ME=SE;Bn.default=ME;var Un={};Object.defineProperty(Un,"__esModule",{value:!0});Un.default=void 0;var AE={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","group"]]},$E=AE;Un.default=$E;var Hn={};Object.defineProperty(Hn,"__esModule",{value:!0});Hn.default=void 0;var qE={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},IE=qE;Hn.default=IE;var Vn={};Object.defineProperty(Vn,"__esModule",{value:!0});Vn.default=void 0;var NE={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},kE=NE;Vn.default=kE;var Wn={};Object.defineProperty(Wn,"__esModule",{value:!0});Wn.default=void 0;var jE={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},DE=jE;Wn.default=DE;Object.defineProperty(qn,"__esModule",{value:!0});qn.default=void 0;var FE=Ye(In),LE=Ye(Nn),BE=Ye(kn),UE=Ye(jn),HE=Ye(Dn),VE=Ye(Fn),WE=Ye(Ln),zE=Ye(Bn),KE=Ye(Un),YE=Ye(Hn),GE=Ye(Vn),XE=Ye(Wn);function Ye(e){return e&&e.__esModule?e:{default:e}}var JE=[["command",FE.default],["composite",LE.default],["input",BE.default],["landmark",UE.default],["range",HE.default],["roletype",VE.default],["section",WE.default],["sectionhead",zE.default],["select",KE.default],["structure",YE.default],["widget",GE.default],["window",XE.default]],QE=JE;qn.default=QE;var zn={},Kn={};Object.defineProperty(Kn,"__esModule",{value:!0});Kn.default=void 0;var ZE={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"assertive"},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},e_=ZE;Kn.default=e_;var Yn={};Object.defineProperty(Yn,"__esModule",{value:!0});Yn.default=void 0;var t_={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","alert"],["roletype","window","dialog"]]},r_=t_;Yn.default=r_;var Gn={};Object.defineProperty(Gn,"__esModule",{value:!0});Gn.default=void 0;var n_={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},o_=n_;Gn.default=o_;var Xn={};Object.defineProperty(Xn,"__esModule",{value:!0});Xn.default=void 0;var a_={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"article"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]},i_=a_;Xn.default=i_;var Jn={};Object.defineProperty(Jn,"__esModule",{value:!0});Jn.default=void 0;var s_={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"header"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},l_=s_;Jn.default=l_;var Qn={};Object.defineProperty(Qn,"__esModule",{value:!0});Qn.default=void 0;var u_={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"blockquote"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},c_=u_;Qn.default=c_;var Zn={};Object.defineProperty(Zn,"__esModule",{value:!0});Zn.default=void 0;var d_={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-pressed":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"button"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"image"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"reset"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"submit"}],name:"input"},module:"HTML"},{concept:{name:"button"},module:"HTML"},{concept:{name:"trigger"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},f_=d_;Zn.default=f_;var eo={};Object.defineProperty(eo,"__esModule",{value:!0});eo.default=void 0;var p_={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"caption"},module:"HTML"}],requireContextRole:["figure","grid","table"],requiredContextRole:["figure","grid","table"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},m_=p_;eo.default=m_;var to={};Object.defineProperty(to,"__esModule",{value:!0});to.default=void 0;var h_={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-colspan":null,"aria-rowindex":null,"aria-rowspan":null},relatedConcepts:[{concept:{constraints:["ancestor table element has table role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},y_=h_;to.default=y_;var ro={};Object.defineProperty(ro,"__esModule",{value:!0});ro.default=void 0;var b_={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"checkbox"}],name:"input"},module:"HTML"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]},v_=b_;ro.default=v_;var no={};Object.defineProperty(no,"__esModule",{value:!0});no.default=void 0;var g_={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"code"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},w_=g_;no.default=w_;var oo={};Object.defineProperty(oo,"__esModule",{value:!0});oo.default=void 0;var E_={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"col"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"colgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]},__=E_;oo.default=__;var ao={};Object.defineProperty(ao,"__esModule",{value:!0});ao.default=void 0;var C_={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-expanded":"false","aria-haspopup":"listbox"},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"email"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"search"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"tel"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"text"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"multiple"},{constraints:["undefined"],name:"size"}],constraints:["the multiple attribute is not set and the size attribute does not have a value greater than 1"],name:"select"},module:"HTML"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-expanded":"false"},superClass:[["roletype","widget","input"]]},T_=C_;ao.default=T_;var io={};Object.defineProperty(io,"__esModule",{value:!0});io.default=void 0;var R_={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-label"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},P_=R_;io.default=P_;var so={};Object.defineProperty(so,"__esModule",{value:!0});so.default=void 0;var x_={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"footer"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},O_=x_;so.default=O_;var lo={};Object.defineProperty(lo,"__esModule",{value:!0});lo.default=void 0;var S_={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dd"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},M_=S_;lo.default=M_;var uo={};Object.defineProperty(uo,"__esModule",{value:!0});uo.default=void 0;var A_={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"del"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},$_=A_;uo.default=$_;var co={};Object.defineProperty(co,"__esModule",{value:!0});co.default=void 0;var q_={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]},I_=q_;co.default=I_;var fo={};Object.defineProperty(fo,"__esModule",{value:!0});fo.default=void 0;var N_={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]},k_=N_;fo.default=k_;var po={};Object.defineProperty(po,"__esModule",{value:!0});po.default=void 0;var j_={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}},{concept:{name:"html"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},D_=j_;po.default=D_;var mo={};Object.defineProperty(mo,"__esModule",{value:!0});mo.default=void 0;var F_={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"em"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},L_=F_;mo.default=L_;var ho={};Object.defineProperty(ho,"__esModule",{value:!0});ho.default=void 0;var B_={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]},U_=B_;ho.default=U_;var yo={};Object.defineProperty(yo,"__esModule",{value:!0});yo.default=void 0;var H_={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"figure"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},V_=H_;yo.default=V_;var bo={};Object.defineProperty(bo,"__esModule",{value:!0});bo.default=void 0;var W_={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"name"}],name:"form"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},z_=W_;bo.default=z_;var vo={};Object.defineProperty(vo,"__esModule",{value:!0});vo.default=void 0;var K_={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"a"},module:"HTML"},{concept:{name:"area"},module:"HTML"},{concept:{name:"aside"},module:"HTML"},{concept:{name:"b"},module:"HTML"},{concept:{name:"bdo"},module:"HTML"},{concept:{name:"body"},module:"HTML"},{concept:{name:"data"},module:"HTML"},{concept:{name:"div"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"footer"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"header"},module:"HTML"},{concept:{name:"hgroup"},module:"HTML"},{concept:{name:"i"},module:"HTML"},{concept:{name:"pre"},module:"HTML"},{concept:{name:"q"},module:"HTML"},{concept:{name:"samp"},module:"HTML"},{concept:{name:"section"},module:"HTML"},{concept:{name:"small"},module:"HTML"},{concept:{name:"span"},module:"HTML"},{concept:{name:"u"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},Y_=K_;vo.default=Y_;var go={};Object.defineProperty(go,"__esModule",{value:!0});go.default=void 0;var G_={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-multiselectable":null,"aria-readonly":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","table"]]},X_=G_;go.default=X_;var wo={};Object.defineProperty(wo,"__esModule",{value:!0});wo.default=void 0;var J_={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-selected":null},relatedConcepts:[{concept:{constraints:["ancestor table element has grid role","ancestor table element has treegrid role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","widget"]]},Q_=J_;wo.default=Q_;var Eo={};Object.defineProperty(Eo,"__esModule",{value:!0});Eo.default=void 0;var Z_={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[{concept:{name:"details"},module:"HTML"},{concept:{name:"fieldset"},module:"HTML"},{concept:{name:"optgroup"},module:"HTML"},{concept:{name:"address"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},eC=Z_;Eo.default=eC;var _o={};Object.defineProperty(_o,"__esModule",{value:!0});_o.default=void 0;var tC={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-level":"2"},relatedConcepts:[{concept:{name:"h1"},module:"HTML"},{concept:{name:"h2"},module:"HTML"},{concept:{name:"h3"},module:"HTML"},{concept:{name:"h4"},module:"HTML"},{concept:{name:"h5"},module:"HTML"},{concept:{name:"h6"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-level":"2"},superClass:[["roletype","structure","sectionhead"]]},rC=tC;_o.default=rC;var Co={};Object.defineProperty(Co,"__esModule",{value:!0});Co.default=void 0;var nC={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"alt"}],name:"img"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"alt"}],name:"img"},module:"HTML"},{concept:{name:"imggroup"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},oC=nC;Co.default=oC;var To={};Object.defineProperty(To,"__esModule",{value:!0});To.default=void 0;var aC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"ins"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},iC=aC;To.default=iC;var Ro={};Object.defineProperty(Ro,"__esModule",{value:!0});Ro.default=void 0;var sC={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"href"}],name:"a"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"href"}],name:"area"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},lC=sC;Ro.default=lC;var Po={};Object.defineProperty(Po,"__esModule",{value:!0});Po.default=void 0;var uC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menu"},module:"HTML"},{concept:{name:"ol"},module:"HTML"},{concept:{name:"ul"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["listitem"]],requiredProps:{},superClass:[["roletype","structure","section"]]},cC=uC;Po.default=cC;var xo={};Object.defineProperty(xo,"__esModule",{value:!0});xo.default=void 0;var dC={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-multiselectable":null,"aria-readonly":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[{concept:{attributes:[{constraints:[">1"],name:"size"}],constraints:["the size attribute value is greater than 1"],name:"select"},module:"HTML"},{concept:{attributes:[{name:"multiple"}],name:"select"},module:"HTML"},{concept:{name:"datalist"},module:"HTML"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["option","group"],["option"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},fC=dC;xo.default=fC;var Oo={};Object.defineProperty(Oo,"__esModule",{value:!0});Oo.default=void 0;var pC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{constraints:["direct descendant of ol","direct descendant of ul","direct descendant of menu"],name:"li"},module:"HTML"},{concept:{name:"item"},module:"XForms"}],requireContextRole:["directory","list"],requiredContextRole:["directory","list"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},mC=pC;Oo.default=mC;var So={};Object.defineProperty(So,"__esModule",{value:!0});So.default=void 0;var hC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},yC=hC;So.default=yC;var Mo={};Object.defineProperty(Mo,"__esModule",{value:!0});Mo.default=void 0;var bC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"main"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},vC=bC;Mo.default=vC;var Ao={};Object.defineProperty(Ao,"__esModule",{value:!0});Ao.default=void 0;var gC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null},relatedConcepts:[{concept:{name:"mark"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},wC=gC;Ao.default=wC;var $o={};Object.defineProperty($o,"__esModule",{value:!0});$o.default=void 0;var EC={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},_C=EC;$o.default=_C;var qo={};Object.defineProperty(qo,"__esModule",{value:!0});qo.default=void 0;var CC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"math"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},TC=CC;qo.default=TC;var Io={};Object.defineProperty(Io,"__esModule",{value:!0});Io.default=void 0;var RC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"vertical"},relatedConcepts:[{concept:{name:"MENU"},module:"JAPI"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"},{concept:{name:"sidebar"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},PC=RC;Io.default=PC;var No={};Object.defineProperty(No,"__esModule",{value:!0});No.default=void 0;var xC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"toolbar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select","menu"],["roletype","structure","section","group","select","menu"]]},OC=xC;No.default=OC;var ko={};Object.defineProperty(ko,"__esModule",{value:!0});ko.default=void 0;var SC={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"MENU_ITEM"},module:"JAPI"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},MC=SC;ko.default=MC;var jo={};Object.defineProperty(jo,"__esModule",{value:!0});jo.default=void 0;var AC={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"],["roletype","widget","command","menuitem"]]},$C=AC;jo.default=$C;var Do={};Object.defineProperty(Do,"__esModule",{value:!0});Do.default=void 0;var qC={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox","menuitemcheckbox"],["roletype","widget","command","menuitem","menuitemcheckbox"],["roletype","widget","input","radio"]]},IC=qC;Do.default=IC;var Fo={};Object.defineProperty(Fo,"__esModule",{value:!0});Fo.default=void 0;var NC={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null,"aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{name:"meter"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","structure","range"]]},kC=NC;Fo.default=kC;var Lo={};Object.defineProperty(Lo,"__esModule",{value:!0});Lo.default=void 0;var jC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"nav"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},DC=jC;Lo.default=DC;var Bo={};Object.defineProperty(Bo,"__esModule",{value:!0});Bo.default=void 0;var FC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},LC=FC;Bo.default=LC;var Uo={};Object.defineProperty(Uo,"__esModule",{value:!0});Uo.default=void 0;var BC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},UC=BC;Uo.default=UC;var Ho={};Object.defineProperty(Ho,"__esModule",{value:!0});Ho.default=void 0;var HC={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[{concept:{name:"item"},module:"XForms"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-selected":"false"},superClass:[["roletype","widget","input"]]},VC=HC;Ho.default=VC;var Vo={};Object.defineProperty(Vo,"__esModule",{value:!0});Vo.default=void 0;var WC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"p"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},zC=WC;Vo.default=zC;var Wo={};Object.defineProperty(Wo,"__esModule",{value:!0});Wo.default=void 0;var KC={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{attributes:[{name:"alt",value:""}],name:"img"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},YC=KC;Wo.default=YC;var zo={};Object.defineProperty(zo,"__esModule",{value:!0});zo.default=void 0;var GC={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null},relatedConcepts:[{concept:{name:"progress"},module:"HTML"},{concept:{name:"status"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","range"],["roletype","widget"]]},XC=GC;zo.default=XC;var Ko={};Object.defineProperty(Ko,"__esModule",{value:!0});Ko.default=void 0;var JC={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"radio"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]},QC=JC;Ko.default=QC;var Yo={};Object.defineProperty(Yo,"__esModule",{value:!0});Yo.default=void 0;var ZC={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{name:"list"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["radio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},eT=ZC;Yo.default=eT;var Go={};Object.defineProperty(Go,"__esModule",{value:!0});Go.default=void 0;var tT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"section"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"section"},module:"HTML"},{concept:{name:"Device Independence Glossart perceivable unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},rT=tT;Go.default=rT;var Xo={};Object.defineProperty(Xo,"__esModule",{value:!0});Xo.default=void 0;var nT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-expanded":null,"aria-level":null,"aria-posinset":null,"aria-rowindex":null,"aria-selected":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"tr"},module:"HTML"}],requireContextRole:["grid","rowgroup","table","treegrid"],requiredContextRole:["grid","rowgroup","table","treegrid"],requiredOwnedElements:[["cell"],["columnheader"],["gridcell"],["rowheader"]],requiredProps:{},superClass:[["roletype","structure","section","group"],["roletype","widget"]]},oT=nT;Xo.default=oT;var Jo={};Object.defineProperty(Jo,"__esModule",{value:!0});Jo.default=void 0;var aT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"tbody"},module:"HTML"},{concept:{name:"tfoot"},module:"HTML"},{concept:{name:"thead"},module:"HTML"}],requireContextRole:["grid","table","treegrid"],requiredContextRole:["grid","table","treegrid"],requiredOwnedElements:[["row"]],requiredProps:{},superClass:[["roletype","structure"]]},iT=aT;Jo.default=iT;var Qo={};Object.defineProperty(Qo,"__esModule",{value:!0});Qo.default=void 0;var sT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{attributes:[{name:"scope",value:"row"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"rowgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row","rowgroup"],requiredContextRole:["row","rowgroup"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]},lT=sT;Qo.default=lT;var Zo={};Object.defineProperty(Zo,"__esModule",{value:!0});Zo.default=void 0;var uT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-valuetext":null,"aria-orientation":"vertical","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-valuenow":null},superClass:[["roletype","structure","range"],["roletype","widget"]]},cT=uT;Zo.default=cT;var ea={};Object.defineProperty(ea,"__esModule",{value:!0});ea.default=void 0;var dT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},fT=dT;ea.default=fT;var ta={};Object.defineProperty(ta,"__esModule",{value:!0});ta.default=void 0;var pT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"search"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input","textbox"]]},mT=pT;ta.default=mT;var ra={};Object.defineProperty(ra,"__esModule",{value:!0});ra.default=void 0;var hT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":null,"aria-valuetext":null},relatedConcepts:[{concept:{name:"hr"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},yT=hT;ra.default=yT;var na={};Object.defineProperty(na,"__esModule",{value:!0});na.default=void 0;var bT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-valuetext":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"range"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","widget","input"],["roletype","structure","range"]]},vT=bT;na.default=vT;var oa={};Object.defineProperty(oa,"__esModule",{value:!0});oa.default=void 0;var gT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-valuetext":null,"aria-valuenow":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"number"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","widget","input"],["roletype","structure","range"]]},wT=gT;oa.default=wT;var aa={};Object.defineProperty(aa,"__esModule",{value:!0});aa.default=void 0;var ET={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"polite"},relatedConcepts:[{concept:{name:"output"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},_T=ET;aa.default=_T;var ia={};Object.defineProperty(ia,"__esModule",{value:!0});ia.default=void 0;var CT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"strong"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},TT=CT;ia.default=TT;var sa={};Object.defineProperty(sa,"__esModule",{value:!0});sa.default=void 0;var RT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sub"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},PT=RT;sa.default=PT;var la={};Object.defineProperty(la,"__esModule",{value:!0});la.default=void 0;var xT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sup"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},OT=xT;la.default=OT;var ua={};Object.defineProperty(ua,"__esModule",{value:!0});ua.default=void 0;var ST={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"button"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"]]},MT=ST;ua.default=MT;var ca={};Object.defineProperty(ca,"__esModule",{value:!0});ca.default=void 0;var AT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[],requireContextRole:["tablist"],requiredContextRole:["tablist"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"],["roletype","widget"]]},$T=AT;ca.default=$T;var da={};Object.defineProperty(da,"__esModule",{value:!0});da.default=void 0;var qT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-colcount":null,"aria-rowcount":null},relatedConcepts:[{concept:{name:"table"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","structure","section"]]},IT=qT;da.default=IT;var fa={};Object.defineProperty(fa,"__esModule",{value:!0});fa.default=void 0;var NT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-multiselectable":null,"aria-orientation":"horizontal"},relatedConcepts:[{module:"DAISY",concept:{name:"guide"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["tab"]],requiredProps:{},superClass:[["roletype","widget","composite"]]},kT=NT;fa.default=kT;var pa={};Object.defineProperty(pa,"__esModule",{value:!0});pa.default=void 0;var jT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},DT=jT;pa.default=DT;var ma={};Object.defineProperty(ma,"__esModule",{value:!0});ma.default=void 0;var FT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dfn"},module:"HTML"},{concept:{name:"dt"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},LT=FT;ma.default=LT;var ha={};Object.defineProperty(ha,"__esModule",{value:!0});ha.default=void 0;var BT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-multiline":null,"aria-placeholder":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"type"},{constraints:["undefined"],name:"list"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"email"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"tel"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"text"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"url"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{name:"input"},module:"XForms"},{concept:{name:"textarea"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input"]]},UT=BT;ha.default=UT;var ya={};Object.defineProperty(ya,"__esModule",{value:!0});ya.default=void 0;var HT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"time"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},VT=HT;ya.default=VT;var ba={};Object.defineProperty(ba,"__esModule",{value:!0});ba.default=void 0;var WT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]},zT=WT;ba.default=zT;var va={};Object.defineProperty(va,"__esModule",{value:!0});va.default=void 0;var KT={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"menubar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]},YT=KT;va.default=YT;var ga={};Object.defineProperty(ga,"__esModule",{value:!0});ga.default=void 0;var GT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},XT=GT;ga.default=XT;var wa={};Object.defineProperty(wa,"__esModule",{value:!0});wa.default=void 0;var JT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-multiselectable":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["treeitem","group"],["treeitem"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},QT=JT;wa.default=QT;var Ea={};Object.defineProperty(Ea,"__esModule",{value:!0});Ea.default=void 0;var ZT={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite","grid"],["roletype","structure","section","table","grid"],["roletype","widget","composite","select","tree"],["roletype","structure","section","group","select","tree"]]},eR=ZT;Ea.default=eR;var _a={};Object.defineProperty(_a,"__esModule",{value:!0});_a.default=void 0;var tR={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[],requireContextRole:["group","tree"],requiredContextRole:["group","tree"],requiredOwnedElements:[],requiredProps:{"aria-selected":null},superClass:[["roletype","structure","section","listitem"],["roletype","widget","input","option"]]},rR=tR;_a.default=rR;Object.defineProperty(zn,"__esModule",{value:!0});zn.default=void 0;var nR=j(Kn),oR=j(Yn),aR=j(Gn),iR=j(Xn),sR=j(Jn),lR=j(Qn),uR=j(Zn),cR=j(eo),dR=j(to),fR=j(ro),pR=j(no),mR=j(oo),hR=j(ao),yR=j(io),bR=j(so),vR=j(lo),gR=j(uo),wR=j(co),ER=j(fo),_R=j(po),CR=j(mo),TR=j(ho),RR=j(yo),PR=j(bo),xR=j(vo),OR=j(go),SR=j(wo),MR=j(Eo),AR=j(_o),$R=j(Co),qR=j(To),IR=j(Ro),NR=j(Po),kR=j(xo),jR=j(Oo),DR=j(So),FR=j(Mo),LR=j(Ao),BR=j($o),UR=j(qo),HR=j(Io),VR=j(No),WR=j(ko),zR=j(jo),KR=j(Do),YR=j(Fo),GR=j(Lo),XR=j(Bo),JR=j(Uo),QR=j(Ho),ZR=j(Vo),eP=j(Wo),tP=j(zo),rP=j(Ko),nP=j(Yo),oP=j(Go),aP=j(Xo),iP=j(Jo),sP=j(Qo),lP=j(Zo),uP=j(ea),cP=j(ta),dP=j(ra),fP=j(na),pP=j(oa),mP=j(aa),hP=j(ia),yP=j(sa),bP=j(la),vP=j(ua),gP=j(ca),wP=j(da),EP=j(fa),_P=j(pa),CP=j(ma),TP=j(ha),RP=j(ya),PP=j(ba),xP=j(va),OP=j(ga),SP=j(wa),MP=j(Ea),AP=j(_a);function j(e){return e&&e.__esModule?e:{default:e}}var $P=[["alert",nR.default],["alertdialog",oR.default],["application",aR.default],["article",iR.default],["banner",sR.default],["blockquote",lR.default],["button",uR.default],["caption",cR.default],["cell",dR.default],["checkbox",fR.default],["code",pR.default],["columnheader",mR.default],["combobox",hR.default],["complementary",yR.default],["contentinfo",bR.default],["definition",vR.default],["deletion",gR.default],["dialog",wR.default],["directory",ER.default],["document",_R.default],["emphasis",CR.default],["feed",TR.default],["figure",RR.default],["form",PR.default],["generic",xR.default],["grid",OR.default],["gridcell",SR.default],["group",MR.default],["heading",AR.default],["img",$R.default],["insertion",qR.default],["link",IR.default],["list",NR.default],["listbox",kR.default],["listitem",jR.default],["log",DR.default],["main",FR.default],["mark",LR.default],["marquee",BR.default],["math",UR.default],["menu",HR.default],["menubar",VR.default],["menuitem",WR.default],["menuitemcheckbox",zR.default],["menuitemradio",KR.default],["meter",YR.default],["navigation",GR.default],["none",XR.default],["note",JR.default],["option",QR.default],["paragraph",ZR.default],["presentation",eP.default],["progressbar",tP.default],["radio",rP.default],["radiogroup",nP.default],["region",oP.default],["row",aP.default],["rowgroup",iP.default],["rowheader",sP.default],["scrollbar",lP.default],["search",uP.default],["searchbox",cP.default],["separator",dP.default],["slider",fP.default],["spinbutton",pP.default],["status",mP.default],["strong",hP.default],["subscript",yP.default],["superscript",bP.default],["switch",vP.default],["tab",gP.default],["table",wP.default],["tablist",EP.default],["tabpanel",_P.default],["term",CP.default],["textbox",TP.default],["time",RP.default],["timer",PP.default],["toolbar",xP.default],["tooltip",OP.default],["tree",SP.default],["treegrid",MP.default],["treeitem",AP.default]],qP=$P;zn.default=qP;var Ca={},Ta={};Object.defineProperty(Ta,"__esModule",{value:!0});Ta.default=void 0;var IP={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"abstract [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},NP=IP;Ta.default=NP;var Ra={};Object.defineProperty(Ra,"__esModule",{value:!0});Ra.default=void 0;var kP={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"acknowledgments [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},jP=kP;Ra.default=jP;var Pa={};Object.defineProperty(Pa,"__esModule",{value:!0});Pa.default=void 0;var DP={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"afterword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},FP=DP;Pa.default=FP;var xa={};Object.defineProperty(xa,"__esModule",{value:!0});xa.default=void 0;var LP={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"appendix [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},BP=LP;xa.default=BP;var Oa={};Object.defineProperty(Oa,"__esModule",{value:!0});Oa.default=void 0;var UP={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"referrer [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},HP=UP;Oa.default=HP;var Sa={};Object.defineProperty(Sa,"__esModule",{value:!0});Sa.default=void 0;var VP={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"EPUB biblioentry [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-bibliography"],requiredContextRole:["doc-bibliography"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]},WP=VP;Sa.default=WP;var Ma={};Object.defineProperty(Ma,"__esModule",{value:!0});Ma.default=void 0;var zP={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"bibliography [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-biblioentry"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},KP=zP;Ma.default=KP;var Aa={};Object.defineProperty(Aa,"__esModule",{value:!0});Aa.default=void 0;var YP={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"biblioref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},GP=YP;Aa.default=GP;var $a={};Object.defineProperty($a,"__esModule",{value:!0});$a.default=void 0;var XP={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"chapter [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},JP=XP;$a.default=JP;var qa={};Object.defineProperty(qa,"__esModule",{value:!0});qa.default=void 0;var QP={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"colophon [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},ZP=QP;qa.default=ZP;var Ia={};Object.defineProperty(Ia,"__esModule",{value:!0});Ia.default=void 0;var ex={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"conclusion [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},tx=ex;Ia.default=tx;var Na={};Object.defineProperty(Na,"__esModule",{value:!0});Na.default=void 0;var rx={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"cover [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]},nx=rx;Na.default=nx;var ka={};Object.defineProperty(ka,"__esModule",{value:!0});ka.default=void 0;var ox={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credit [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},ax=ox;ka.default=ax;var ja={};Object.defineProperty(ja,"__esModule",{value:!0});ja.default=void 0;var ix={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credits [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},sx=ix;ja.default=sx;var Da={};Object.defineProperty(Da,"__esModule",{value:!0});Da.default=void 0;var lx={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"dedication [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},ux=lx;Da.default=ux;var Fa={};Object.defineProperty(Fa,"__esModule",{value:!0});Fa.default=void 0;var cx={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-endnotes"],requiredContextRole:["doc-endnotes"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]},dx=cx;Fa.default=dx;var La={};Object.defineProperty(La,"__esModule",{value:!0});La.default=void 0;var fx={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnotes [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-endnote"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},px=fx;La.default=px;var Ba={};Object.defineProperty(Ba,"__esModule",{value:!0});Ba.default=void 0;var mx={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epigraph [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},hx=mx;Ba.default=hx;var Ua={};Object.defineProperty(Ua,"__esModule",{value:!0});Ua.default=void 0;var yx={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epilogue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},bx=yx;Ua.default=bx;var Ha={};Object.defineProperty(Ha,"__esModule",{value:!0});Ha.default=void 0;var vx={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"errata [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},gx=vx;Ha.default=gx;var Va={};Object.defineProperty(Va,"__esModule",{value:!0});Va.default=void 0;var wx={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Ex=wx;Va.default=Ex;var Wa={};Object.defineProperty(Wa,"__esModule",{value:!0});Wa.default=void 0;var _x={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"footnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Cx=_x;Wa.default=Cx;var za={};Object.defineProperty(za,"__esModule",{value:!0});za.default=void 0;var Tx={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"foreword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},Rx=Tx;za.default=Rx;var Ka={};Object.defineProperty(Ka,"__esModule",{value:!0});Ka.default=void 0;var Px={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossary [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["definition"],["term"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},xx=Px;Ka.default=xx;var Ya={};Object.defineProperty(Ya,"__esModule",{value:!0});Ya.default=void 0;var Ox={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},Sx=Ox;Ya.default=Sx;var Ga={};Object.defineProperty(Ga,"__esModule",{value:!0});Ga.default=void 0;var Mx={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"index [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},Ax=Mx;Ga.default=Ax;var Xa={};Object.defineProperty(Xa,"__esModule",{value:!0});Xa.default=void 0;var $x={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"introduction [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},qx=$x;Xa.default=qx;var Ja={};Object.defineProperty(Ja,"__esModule",{value:!0});Ja.default=void 0;var Ix={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"noteref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},Nx=Ix;Ja.default=Nx;var Qa={};Object.defineProperty(Qa,"__esModule",{value:!0});Qa.default=void 0;var kx={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"notice [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]},jx=kx;Qa.default=jx;var Za={};Object.defineProperty(Za,"__esModule",{value:!0});Za.default=void 0;var Dx={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"pagebreak [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","separator"]]},Fx=Dx;Za.default=Fx;var ei={};Object.defineProperty(ei,"__esModule",{value:!0});ei.default=void 0;var Lx={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"page-list [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},Bx=Lx;ei.default=Bx;var ti={};Object.defineProperty(ti,"__esModule",{value:!0});ti.default=void 0;var Ux={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"part [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},Hx=Ux;ti.default=Hx;var ri={};Object.defineProperty(ri,"__esModule",{value:!0});ri.default=void 0;var Vx={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"preface [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},Wx=Vx;ri.default=Wx;var ni={};Object.defineProperty(ni,"__esModule",{value:!0});ni.default=void 0;var zx={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"prologue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},Kx=zx;ni.default=Kx;var oi={};Object.defineProperty(oi,"__esModule",{value:!0});oi.default=void 0;var Yx={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"pullquote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["none"]]},Gx=Yx;oi.default=Gx;var ai={};Object.defineProperty(ai,"__esModule",{value:!0});ai.default=void 0;var Xx={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"qna [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Jx=Xx;ai.default=Jx;var ii={};Object.defineProperty(ii,"__esModule",{value:!0});ii.default=void 0;var Qx={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"subtitle [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"]]},Zx=Qx;ii.default=Zx;var si={};Object.defineProperty(si,"__esModule",{value:!0});si.default=void 0;var eO={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"help [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]},tO=eO;si.default=tO;var li={};Object.defineProperty(li,"__esModule",{value:!0});li.default=void 0;var rO={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"toc [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},nO=rO;li.default=nO;Object.defineProperty(Ca,"__esModule",{value:!0});Ca.default=void 0;var oO=J(Ta),aO=J(Ra),iO=J(Pa),sO=J(xa),lO=J(Oa),uO=J(Sa),cO=J(Ma),dO=J(Aa),fO=J($a),pO=J(qa),mO=J(Ia),hO=J(Na),yO=J(ka),bO=J(ja),vO=J(Da),gO=J(Fa),wO=J(La),EO=J(Ba),_O=J(Ua),CO=J(Ha),TO=J(Va),RO=J(Wa),PO=J(za),xO=J(Ka),OO=J(Ya),SO=J(Ga),MO=J(Xa),AO=J(Ja),$O=J(Qa),qO=J(Za),IO=J(ei),NO=J(ti),kO=J(ri),jO=J(ni),DO=J(oi),FO=J(ai),LO=J(ii),BO=J(si),UO=J(li);function J(e){return e&&e.__esModule?e:{default:e}}var HO=[["doc-abstract",oO.default],["doc-acknowledgments",aO.default],["doc-afterword",iO.default],["doc-appendix",sO.default],["doc-backlink",lO.default],["doc-biblioentry",uO.default],["doc-bibliography",cO.default],["doc-biblioref",dO.default],["doc-chapter",fO.default],["doc-colophon",pO.default],["doc-conclusion",mO.default],["doc-cover",hO.default],["doc-credit",yO.default],["doc-credits",bO.default],["doc-dedication",vO.default],["doc-endnote",gO.default],["doc-endnotes",wO.default],["doc-epigraph",EO.default],["doc-epilogue",_O.default],["doc-errata",CO.default],["doc-example",TO.default],["doc-footnote",RO.default],["doc-foreword",PO.default],["doc-glossary",xO.default],["doc-glossref",OO.default],["doc-index",SO.default],["doc-introduction",MO.default],["doc-noteref",AO.default],["doc-notice",$O.default],["doc-pagebreak",qO.default],["doc-pagelist",IO.default],["doc-part",NO.default],["doc-preface",kO.default],["doc-prologue",jO.default],["doc-pullquote",DO.default],["doc-qna",FO.default],["doc-subtitle",LO.default],["doc-tip",BO.default],["doc-toc",UO.default]],VO=HO;Ca.default=VO;var ui={},ci={};Object.defineProperty(ci,"__esModule",{value:!0});ci.default=void 0;var WO={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-object"}},{module:"ARIA",concept:{name:"img"}},{module:"ARIA",concept:{name:"article"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]},zO=WO;ci.default=zO;var di={};Object.defineProperty(di,"__esModule",{value:!0});di.default=void 0;var KO={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-document"}},{module:"ARIA",concept:{name:"group"}},{module:"ARIA",concept:{name:"img"}},{module:"GRAPHICS",concept:{name:"graphics-symbol"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]},YO=KO;di.default=YO;var fi={};Object.defineProperty(fi,"__esModule",{value:!0});fi.default=void 0;var GO={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]},XO=GO;fi.default=XO;Object.defineProperty(ui,"__esModule",{value:!0});ui.default=void 0;var JO=Js(ci),QO=Js(di),ZO=Js(fi);function Js(e){return e&&e.__esModule?e:{default:e}}var eS=[["graphics-document",JO.default],["graphics-object",QO.default],["graphics-symbol",ZO.default]],tS=eS;ui.default=tS;Object.defineProperty(Er,"__esModule",{value:!0});Er.default=void 0;var rS=zr(qn),nS=zr(zn),oS=zr(Ca),aS=zr(ui),iS=zr(tr);function zr(e){return e&&e.__esModule?e:{default:e}}function sS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ps(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=df(e))||t){r&&(e=r);var o=0,n=function(){};return{s:n,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(c){throw c},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
263
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,i=!1,s;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return a=c.done,c},e:function(c){i=!0,s=c},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(i)throw s}}}}function $r(e,t){return cS(e)||uS(e,t)||df(e,t)||lS()}function lS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
264
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function df(e,t){if(e){if(typeof e=="string")return $u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $u(e,t)}}function $u(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function uS(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var o=[],n=!0,a=!1,i,s;try{for(r=r.call(e);!(n=(i=r.next()).done)&&(o.push(i.value),!(t&&o.length===t));n=!0);}catch(l){a=!0,s=l}finally{try{!n&&r.return!=null&&r.return()}finally{if(a)throw s}}return o}}function cS(e){if(Array.isArray(e))return e}var Ct=[].concat(rS.default,nS.default,oS.default,aS.default);Ct.forEach(function(e){var t=$r(e,2),r=t[1],o=ps(r.superClass),n;try{for(o.s();!(n=o.n()).done;){var a=n.value,i=ps(a),s;try{var l=function(){var f=s.value,u=Ct.find(function(v){var m=$r(v,1),R=m[0];return R===f});if(u)for(var d=u[1],y=0,g=Object.keys(d.props);y<g.length;y++){var w=g[y];Object.prototype.hasOwnProperty.call(r.props,w)||Object.assign(r.props,sS({},w,d.props[w]))}};for(i.s();!(s=i.n()).done;)l()}catch(c){i.e(c)}finally{i.f()}}}catch(c){o.e(c)}finally{o.f()}});var ms={entries:function(){return Ct},forEach:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,o=ps(Ct),n;try{for(o.s();!(n=o.n()).done;){var a=$r(n.value,2),i=a[0],s=a[1];t.call(r,s,i,Ct)}}catch(l){o.e(l)}finally{o.f()}},get:function(t){var r=Ct.find(function(o){return o[0]===t});return r&&r[1]},has:function(t){return!!ms.get(t)},keys:function(){return Ct.map(function(t){var r=$r(t,1),o=r[0];return o})},values:function(){return Ct.map(function(t){var r=$r(t,2),o=r[1];return o})}},dS=(0,iS.default)(ms,ms.entries());Er.default=dS;var pi={},ff={},qu=Object.prototype.hasOwnProperty;function hs(e,t){var r,o;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((o=e.length)===t.length)for(;o--&&hs(e[o],t[o]););return o===-1}if(!r||typeof e=="object"){o=0;for(r in e)if(qu.call(e,r)&&++o&&!qu.call(t,r)||!(r in t)||!hs(e[r],t[r]))return!1;return Object.keys(t).length===o}}return e!==e&&t!==t}ff.dequal=hs;Object.defineProperty(pi,"__esModule",{value:!0});pi.default=void 0;var pf=ff,fS=hf(tr),mf=hf(Er);function hf(e){return e&&e.__esModule?e:{default:e}}function Di(e,t){return hS(e)||mS(e,t)||yf(e,t)||pS()}function pS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
265
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mS(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var o=[],n=!0,a=!1,i,s;try{for(r=r.call(e);!(n=(i=r.next()).done)&&(o.push(i.value),!(t&&o.length===t));n=!0);}catch(l){a=!0,s=l}finally{try{!n&&r.return!=null&&r.return()}finally{if(a)throw s}}return o}}function hS(e){if(Array.isArray(e))return e}function yS(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=yf(e))||t){r&&(e=r);var o=0,n=function(){};return{s:n,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(c){throw c},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
266
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,i=!1,s;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return a=c.done,c},e:function(c){i=!0,s=c},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(i)throw s}}}}function yf(e,t){if(e){if(typeof e=="string")return Iu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Iu(e,t)}}function Iu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}var Tt=[],Nu=mf.default.keys();for(var Fi=0;Fi<Nu.length;Fi++){var Li=Nu[Fi],Bi=mf.default.get(Li);if(Bi)for(var ku=[].concat(Bi.baseConcepts,Bi.relatedConcepts),Ui=0;Ui<ku.length;Ui++){var ju=ku[Ui];ju.module==="HTML"&&function(){var e=ju.concept;if(e){var t=Tt.find(function(a){return(0,pf.dequal)(a,e)}),r;t?r=t[1]:r=[];for(var o=!0,n=0;n<r.length;n++)if(r[n]===Li){o=!1;break}o&&r.push(Li),Tt.push([e,r])}}()}}var ys={entries:function(){return Tt},forEach:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,o=yS(Tt),n;try{for(o.s();!(n=o.n()).done;){var a=Di(n.value,2),i=a[0],s=a[1];t.call(r,s,i,Tt)}}catch(l){o.e(l)}finally{o.f()}},get:function(t){var r=Tt.find(function(o){return t.name===o[0].name&&(0,pf.dequal)(t.attributes,o[0].attributes)});return r&&r[1]},has:function(t){return!!ys.get(t)},keys:function(){return Tt.map(function(t){var r=Di(t,1),o=r[0];return o})},values:function(){return Tt.map(function(t){var r=Di(t,2),o=r[1];return o})}},bS=(0,fS.default)(ys,ys.entries());pi.default=bS;var mi={};Object.defineProperty(mi,"__esModule",{value:!0});mi.default=void 0;var vS=vf(tr),bf=vf(Er);function vf(e){return e&&e.__esModule?e:{default:e}}function Hi(e,t){return ES(e)||wS(e,t)||gf(e,t)||gS()}function gS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
267
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wS(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var o=[],n=!0,a=!1,i,s;try{for(r=r.call(e);!(n=(i=r.next()).done)&&(o.push(i.value),!(t&&o.length===t));n=!0);}catch(l){a=!0,s=l}finally{try{!n&&r.return!=null&&r.return()}finally{if(a)throw s}}return o}}function ES(e){if(Array.isArray(e))return e}function _S(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=gf(e))||t){r&&(e=r);var o=0,n=function(){};return{s:n,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(c){throw c},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
268
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,i=!1,s;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return a=c.done,c},e:function(c){i=!0,s=c},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(i)throw s}}}}function gf(e,t){if(e){if(typeof e=="string")return Du(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Du(e,t)}}function Du(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}var Gt=[],Fu=bf.default.keys();for(var Vi=0;Vi<Fu.length;Vi++){var Lu=Fu[Vi],Wi=bf.default.get(Lu),zi=[];if(Wi){for(var Bu=[].concat(Wi.baseConcepts,Wi.relatedConcepts),Ki=0;Ki<Bu.length;Ki++){var Uu=Bu[Ki];if(Uu.module==="HTML"){var Hu=Uu.concept;Hu!=null&&zi.push(Hu)}}zi.length>0&&Gt.push([Lu,zi])}}var bs={entries:function(){return Gt},forEach:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,o=_S(Gt),n;try{for(o.s();!(n=o.n()).done;){var a=Hi(n.value,2),i=a[0],s=a[1];t.call(r,s,i,Gt)}}catch(l){o.e(l)}finally{o.f()}},get:function(t){var r=Gt.find(function(o){return o[0]===t});return r&&r[1]},has:function(t){return!!bs.get(t)},keys:function(){return Gt.map(function(t){var r=Hi(t,1),o=r[0];return o})},values:function(){return Gt.map(function(t){var r=Hi(t,2),o=r[1];return o})}},CS=(0,vS.default)(bs,bs.entries());mi.default=CS;Object.defineProperty(rt,"__esModule",{value:!0});var Qe=rt.roles=Ef=rt.roleElements=wf=rt.elementRoles=rt.dom=rt.aria=void 0,TS=Kr(Mn),RS=Kr($n),PS=Kr(Er),xS=Kr(pi),OS=Kr(mi);function Kr(e){return e&&e.__esModule?e:{default:e}}var SS=TS.default;rt.aria=SS;var MS=RS.default;rt.dom=MS;var AS=PS.default;Qe=rt.roles=AS;var $S=xS.default,wf=rt.elementRoles=$S,qS=OS.default,Ef=rt.roleElements=qS,Qs={exports:{}};Qs.exports;(function(e){var t=function(){var r=String.fromCharCode,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",a={};function i(l,c){if(!a[l]){a[l]={};for(var f=0;f<l.length;f++)a[l][l.charAt(f)]=f}return a[l][c]}var s={compressToBase64:function(l){if(l==null)return"";var c=s._compress(l,6,function(f){return o.charAt(f)});switch(c.length%4){default:case 0:return c;case 1:return c+"===";case 2:return c+"==";case 3:return c+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:s._decompress(l.length,32,function(c){return i(o,l.charAt(c))})},compressToUTF16:function(l){return l==null?"":s._compress(l,15,function(c){return r(c+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:s._decompress(l.length,16384,function(c){return l.charCodeAt(c)-32})},compressToUint8Array:function(l){for(var c=s.compress(l),f=new Uint8Array(c.length*2),u=0,d=c.length;u<d;u++){var y=c.charCodeAt(u);f[u*2]=y>>>8,f[u*2+1]=y%256}return f},decompressFromUint8Array:function(l){if(l==null)return s.decompress(l);for(var c=new Array(l.length/2),f=0,u=c.length;f<u;f++)c[f]=l[f*2]*256+l[f*2+1];var d=[];return c.forEach(function(y){d.push(r(y))}),s.decompress(d.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":s._compress(l,6,function(c){return n.charAt(c)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),s._decompress(l.length,32,function(c){return i(n,l.charAt(c))}))},compress:function(l){return s._compress(l,16,function(c){return r(c)})},_compress:function(l,c,f){if(l==null)return"";var u,d,y={},g={},w="",v="",m="",R=2,M=3,$=2,N=[],C=0,x=0,I;for(I=0;I<l.length;I+=1)if(w=l.charAt(I),Object.prototype.hasOwnProperty.call(y,w)||(y[w]=M++,g[w]=!0),v=m+w,Object.prototype.hasOwnProperty.call(y,v))m=v;else{if(Object.prototype.hasOwnProperty.call(g,m)){if(m.charCodeAt(0)<256){for(u=0;u<$;u++)C=C<<1,x==c-1?(x=0,N.push(f(C)),C=0):x++;for(d=m.charCodeAt(0),u=0;u<8;u++)C=C<<1|d&1,x==c-1?(x=0,N.push(f(C)),C=0):x++,d=d>>1}else{for(d=1,u=0;u<$;u++)C=C<<1|d,x==c-1?(x=0,N.push(f(C)),C=0):x++,d=0;for(d=m.charCodeAt(0),u=0;u<16;u++)C=C<<1|d&1,x==c-1?(x=0,N.push(f(C)),C=0):x++,d=d>>1}R--,R==0&&(R=Math.pow(2,$),$++),delete g[m]}else for(d=y[m],u=0;u<$;u++)C=C<<1|d&1,x==c-1?(x=0,N.push(f(C)),C=0):x++,d=d>>1;R--,R==0&&(R=Math.pow(2,$),$++),y[v]=M++,m=String(w)}if(m!==""){if(Object.prototype.hasOwnProperty.call(g,m)){if(m.charCodeAt(0)<256){for(u=0;u<$;u++)C=C<<1,x==c-1?(x=0,N.push(f(C)),C=0):x++;for(d=m.charCodeAt(0),u=0;u<8;u++)C=C<<1|d&1,x==c-1?(x=0,N.push(f(C)),C=0):x++,d=d>>1}else{for(d=1,u=0;u<$;u++)C=C<<1|d,x==c-1?(x=0,N.push(f(C)),C=0):x++,d=0;for(d=m.charCodeAt(0),u=0;u<16;u++)C=C<<1|d&1,x==c-1?(x=0,N.push(f(C)),C=0):x++,d=d>>1}R--,R==0&&(R=Math.pow(2,$),$++),delete g[m]}else for(d=y[m],u=0;u<$;u++)C=C<<1|d&1,x==c-1?(x=0,N.push(f(C)),C=0):x++,d=d>>1;R--,R==0&&(R=Math.pow(2,$),$++)}for(d=2,u=0;u<$;u++)C=C<<1|d&1,x==c-1?(x=0,N.push(f(C)),C=0):x++,d=d>>1;for(;;)if(C=C<<1,x==c-1){N.push(f(C));break}else x++;return N.join("")},decompress:function(l){return l==null?"":l==""?null:s._decompress(l.length,32768,function(c){return l.charCodeAt(c)})},_decompress:function(l,c,f){var u=[],d=4,y=4,g=3,w="",v=[],m,R,M,$,N,C,x,I={val:f(0),position:c,index:1};for(m=0;m<3;m+=1)u[m]=m;for(M=0,N=Math.pow(2,2),C=1;C!=N;)$=I.val&I.position,I.position>>=1,I.position==0&&(I.position=c,I.val=f(I.index++)),M|=($>0?1:0)*C,C<<=1;switch(M){case 0:for(M=0,N=Math.pow(2,8),C=1;C!=N;)$=I.val&I.position,I.position>>=1,I.position==0&&(I.position=c,I.val=f(I.index++)),M|=($>0?1:0)*C,C<<=1;x=r(M);break;case 1:for(M=0,N=Math.pow(2,16),C=1;C!=N;)$=I.val&I.position,I.position>>=1,I.position==0&&(I.position=c,I.val=f(I.index++)),M|=($>0?1:0)*C,C<<=1;x=r(M);break;case 2:return""}for(u[3]=x,R=x,v.push(x);;){if(I.index>l)return"";for(M=0,N=Math.pow(2,g),C=1;C!=N;)$=I.val&I.position,I.position>>=1,I.position==0&&(I.position=c,I.val=f(I.index++)),M|=($>0?1:0)*C,C<<=1;switch(x=M){case 0:for(M=0,N=Math.pow(2,8),C=1;C!=N;)$=I.val&I.position,I.position>>=1,I.position==0&&(I.position=c,I.val=f(I.index++)),M|=($>0?1:0)*C,C<<=1;u[y++]=r(M),x=y-1,d--;break;case 1:for(M=0,N=Math.pow(2,16),C=1;C!=N;)$=I.val&I.position,I.position>>=1,I.position==0&&(I.position=c,I.val=f(I.index++)),M|=($>0?1:0)*C,C<<=1;u[y++]=r(M),x=y-1,d--;break;case 2:return v.join("")}if(d==0&&(d=Math.pow(2,g),g++),u[x])w=u[x];else if(x===y)w=R+R.charAt(0);else return null;v.push(w),u[y++]=R+w.charAt(0),d--,R=w,d==0&&(d=Math.pow(2,g),g++)}}};return s}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(Qs);var IS=Qs.exports;const NS=Zu(IS);function _f(e){return e.replace(/</g,"<").replace(/>/g,">")}const kS=(e,t,r,o,n,a,i)=>{const s=o+r.indent,l=r.colors;return e.map(c=>{const f=t[c];let u=i(f,r,s,n,a);return typeof f!="string"&&(u.indexOf(`
|
|
269
|
+
`)!==-1&&(u=r.spacingOuter+s+u+r.spacingOuter+o),u="{"+u+"}"),r.spacingInner+o+l.prop.open+c+l.prop.close+"="+l.value.open+u+l.value.close}).join("")},jS=3,DS=(e,t,r,o,n,a)=>e.map(i=>{const s=typeof i=="string"?Cf(i,t):a(i,t,r,o,n);return s===""&&typeof i=="object"&&i!==null&&i.nodeType!==jS?"":t.spacingOuter+r+s}).join(""),Cf=(e,t)=>{const r=t.colors.content;return r.open+_f(e)+r.close},FS=(e,t)=>{const r=t.colors.comment;return r.open+"<!--"+_f(e)+"-->"+r.close},LS=(e,t,r,o,n)=>{const a=o.colors.tag;return a.open+"<"+e+(t&&a.close+t+o.spacingOuter+n+a.open)+(r?">"+a.close+r+o.spacingOuter+n+a.open+"</"+e:(t&&!o.min?"":" ")+"/")+">"+a.close},BS=(e,t)=>{const r=t.colors.tag;return r.open+"<"+e+r.close+" …"+r.open+" />"+r.close},US=1,Tf=3,Rf=8,Pf=11,HS=/^((HTML|SVG)\w*)?Element$/,VS=e=>{const t=e.constructor.name,{nodeType:r,tagName:o}=e,n=typeof o=="string"&&o.includes("-")||typeof e.hasAttribute=="function"&&e.hasAttribute("is");return r===US&&(HS.test(t)||n)||r===Tf&&t==="Text"||r===Rf&&t==="Comment"||r===Pf&&t==="DocumentFragment"};function WS(e){return e.nodeType===Tf}function zS(e){return e.nodeType===Rf}function Yi(e){return e.nodeType===Pf}function KS(e){return{test:t=>{var r;return(t==null||(r=t.constructor)==null?void 0:r.name)&&VS(t)},serialize:(t,r,o,n,a,i)=>{if(WS(t))return Cf(t.data,r);if(zS(t))return FS(t.data,r);const s=Yi(t)?"DocumentFragment":t.tagName.toLowerCase();return++n>r.maxDepth?BS(s,r):LS(s,kS(Yi(t)?[]:Array.from(t.attributes).map(l=>l.name).sort(),Yi(t)?{}:Array.from(t.attributes).reduce((l,c)=>(l[c.name]=c.value,l),{}),r,o+r.indent,n,a,i),DS(Array.prototype.slice.call(t.childNodes||t.children).filter(e),r,o+r.indent,n,a,i),r,o)}}}let xf=null,Zs=null,el=null;try{const e=module&&module.require;Zs=e.call(module,"fs").readFileSync,el=e.call(module,"@babel/code-frame").codeFrameColumns,xf=e.call(module,"chalk")}catch{}function YS(e){const t=e.indexOf("(")+1,r=e.indexOf(")"),o=e.slice(t,r),n=o.split(":"),[a,i,s]=[n[0],parseInt(n[1],10),parseInt(n[2],10)];let l="";try{l=Zs(a,"utf-8")}catch{return""}const c=el(l,{start:{line:i,column:s}},{highlightCode:!0,linesBelow:0});return xf.dim(o)+`
|
|
270
|
+
`+c+`
|
|
271
|
+
`}function GS(){if(!Zs||!el)return"";const t=new Error().stack.split(`
|
|
272
|
+
`).slice(1).find(r=>!r.includes("node_modules/"));return YS(t)}const Of=3;function Gi(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}function tl(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}function Sf(e){if(e.defaultView)return e.defaultView;if(e.ownerDocument&&e.ownerDocument.defaultView)return e.ownerDocument.defaultView;if(e.window)return e.window;throw e.ownerDocument&&e.ownerDocument.defaultView===null?new Error("It looks like the window object is not available for the provided node."):e.then instanceof Function?new Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?"):Array.isArray(e)?new Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?"):typeof e.debug=="function"&&typeof e.logTestingPlaygroundURL=="function"?new Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?"):new Error("The given node is not an Element, the node type is: "+typeof e+".")}function mt(e){if(!e||typeof e.querySelector!="function"||typeof e.querySelectorAll!="function")throw new TypeError("Expected container to be an Element, a Document or a DocumentFragment but got "+t(e)+".");function t(r){return typeof r=="object"?r===null?"null":r.constructor.name:typeof r}}const XS=()=>{let e;try{var t;e=JSON.parse((t=process)==null||(t=t.env)==null?void 0:t.COLORS)}catch{}return typeof e=="boolean"?e:typeof process<"u"&&process.versions!==void 0&&process.versions.node!==void 0},{DOMCollection:JS}=Ud,QS=1,ZS=8;function e0(e){return e.nodeType!==ZS&&(e.nodeType!==QS||!e.matches(ue().defaultIgnore))}function br(e,t,r){if(r===void 0&&(r={}),e||(e=tl().body),typeof t!="number"&&(t=typeof process<"u"&&process.env.DEBUG_PRINT_LIMIT||7e3),t===0)return"";e.documentElement&&(e=e.documentElement);let o=typeof e;if(o==="object"?o=e.constructor.name:e={},!("outerHTML"in e))throw new TypeError("Expected an element or document but got "+o);const{filterNode:n=e0,...a}=r,i=Ng(e,{plugins:[KS(n),JS],printFunctionName:!1,highlight:XS(),...a});return t!==void 0&&e.outerHTML.length>t?i.slice(0,t)+"...":i}const Vu=function(){const e=GS();console.log(e?br(...arguments)+`
|
|
273
|
+
|
|
274
|
+
`+e:br(...arguments))};let Jt={testIdAttribute:"data-testid",asyncUtilTimeout:1e3,asyncWrapper:e=>e(),unstable_advanceTimersWrapper:e=>e(),eventWrapper:e=>e(),defaultHidden:!1,defaultIgnore:"script, style",showOriginalStackTrace:!1,throwSuggestions:!1,getElementError(e,t){const r=br(t),o=new Error([e,"Ignored nodes: comments, "+Jt.defaultIgnore+`
|
|
275
|
+
`+r].filter(Boolean).join(`
|
|
276
|
+
|
|
277
|
+
`));return o.name="TestingLibraryElementError",o},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function t0(e){try{return Jt._disableExpensiveErrorDiagnostics=!0,e()}finally{Jt._disableExpensiveErrorDiagnostics=!1}}function r0(e){typeof e=="function"&&(e=e(Jt)),Jt={...Jt,...e}}function ue(){return Jt}const n0=["button","meter","output","progress","select","textarea","input"];function Mf(e){return n0.includes(e.nodeName.toLowerCase())?"":e.nodeType===Of?e.textContent:Array.from(e.childNodes).map(t=>Mf(t)).join("")}function vs(e){let t;return e.tagName.toLowerCase()==="label"?t=Mf(e):t=e.value||e.textContent,t}function Af(e){if(e.labels!==void 0){var t;return(t=e.labels)!=null?t:[]}if(!o0(e))return[];const r=e.ownerDocument.querySelectorAll("label");return Array.from(r).filter(o=>o.control===e)}function o0(e){return/BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName)||e.tagName==="INPUT"&&e.getAttribute("type")!=="hidden"}function $f(e,t,r){let{selector:o="*"}=r===void 0?{}:r;const n=t.getAttribute("aria-labelledby"),a=n?n.split(" "):[];return a.length?a.map(i=>{const s=e.querySelector('[id="'+i+'"]');return s?{content:vs(s),formControl:null}:{content:"",formControl:null}}):Array.from(Af(t)).map(i=>{const s=vs(i),c=Array.from(i.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter(f=>f.matches(o))[0];return{content:s,formControl:c}})}function qf(e){if(e==null)throw new Error("It looks like "+e+" was passed instead of a matcher. Did you do something like getByText("+e+")?")}function _r(e,t,r,o){if(typeof e!="string")return!1;qf(r);const n=o(e);return typeof r=="string"||typeof r=="number"?n.toLowerCase().includes(r.toString().toLowerCase()):typeof r=="function"?r(n,t):Nf(r,n)}function dt(e,t,r,o){if(typeof e!="string")return!1;qf(r);const n=o(e);return r instanceof Function?r(n,t):r instanceof RegExp?Nf(r,n):n===String(r)}function If(e){let{trim:t=!0,collapseWhitespace:r=!0}=e===void 0?{}:e;return o=>{let n=o;return n=t?n.trim():n,n=r?n.replace(/\s+/g," "):n,n}}function rr(e){let{trim:t,collapseWhitespace:r,normalizer:o}=e;if(!o)return If({trim:t,collapseWhitespace:r});if(typeof t<"u"||typeof r<"u")throw new Error('trim and collapseWhitespace are not supported with a normalizer. If you want to use the default trim and collapseWhitespace logic in your normalizer, use "getDefaultNormalizer({trim, collapseWhitespace})" and compose that into your normalizer');return o}function Nf(e,t){const r=e.test(t);return e.global&&e.lastIndex!==0&&(console.warn("To match all elements we had to reset the lastIndex of the RegExp because the global flag is enabled. We encourage to remove the global flag from the RegExp."),e.lastIndex=0),r}function hi(e){return e.matches("input[type=submit], input[type=button], input[type=reset]")?e.value:Array.from(e.childNodes).filter(t=>t.nodeType===Of&&!!t.textContent).map(t=>t.textContent).join("")}const a0=i0(wf);function kf(e){return e.hidden===!0||e.getAttribute("aria-hidden")==="true"||e.ownerDocument.defaultView.getComputedStyle(e).display==="none"}function rl(e,t){t===void 0&&(t={});const{isSubtreeInaccessible:r=kf}=t;if(e.ownerDocument.defaultView.getComputedStyle(e).visibility==="hidden")return!0;let n=e;for(;n;){if(r(n))return!0;n=n.parentElement}return!1}function nl(e){for(const{match:t,roles:r}of a0)if(t(e))return[...r];return[]}function i0(e){function t(i){let{name:s,attributes:l}=i;return""+s+l.map(c=>{let{name:f,value:u,constraints:d=[]}=c;const y=d.indexOf("undefined")!==-1,g=d.indexOf("set")!==-1;return typeof u<"u"?"["+f+'="'+u+'"]':y?":not(["+f+"])":g?"["+f+"]:not(["+f+'=""])':"["+f+"]"}).join("")}function r(i){let{attributes:s=[]}=i;return s.length}function o(i,s){let{specificity:l}=i,{specificity:c}=s;return c-l}function n(i){let{attributes:s=[]}=i;const l=s.findIndex(f=>f.value&&f.name==="type"&&f.value==="text");l>=0&&(s=[...s.slice(0,l),...s.slice(l+1)]);const c=t({...i,attributes:s});return f=>l>=0&&f.type!=="text"?!1:f.matches(c)}let a=[];for(const[i,s]of e.entries())a=[...a,{match:n(i),roles:Array.from(s),specificity:r(i)}];return a.sort(o)}function s0(e,t){let{hidden:r=!1}=t===void 0?{}:t;function o(n){return[n,...Array.from(n.children).reduce((a,i)=>[...a,...o(i)],[])]}return o(e).filter(n=>r===!1?rl(n)===!1:!0).reduce((n,a)=>{let i=[];return a.hasAttribute("role")?i=a.getAttribute("role").split(" ").slice(0,1):i=nl(a),i.reduce((s,l)=>Array.isArray(s[l])?{...s,[l]:[...s[l],a]}:{...s,[l]:[a]},n)},{})}function l0(e,t){let{hidden:r,includeDescription:o}=t;const n=s0(e,{hidden:r});return Object.entries(n).filter(a=>{let[i]=a;return i!=="generic"}).map(a=>{let[i,s]=a;const l="-".repeat(50),c=s.map(f=>{const u='Name "'+Xs(f,{computedStyleSupportsPseudoElements:ue().computedStyleSupportsPseudoElements})+`":
|
|
278
|
+
`,d=br(f.cloneNode(!1));if(o){const y='Description "'+lf(f,{computedStyleSupportsPseudoElements:ue().computedStyleSupportsPseudoElements})+`":
|
|
279
|
+
`;return""+u+y+d}return""+u+d}).join(`
|
|
280
|
+
|
|
281
|
+
`);return i+`:
|
|
282
|
+
|
|
283
|
+
`+c+`
|
|
284
|
+
|
|
285
|
+
`+l}).join(`
|
|
286
|
+
`)}function u0(e){return e.tagName==="OPTION"?e.selected:Yr(e,"aria-selected")}function c0(e){return e.getAttribute("aria-busy")==="true"}function d0(e){if(!("indeterminate"in e&&e.indeterminate))return"checked"in e?e.checked:Yr(e,"aria-checked")}function f0(e){return Yr(e,"aria-pressed")}function p0(e){var t,r;return(t=(r=Yr(e,"aria-current"))!=null?r:e.getAttribute("aria-current"))!=null?t:!1}function m0(e){return Yr(e,"aria-expanded")}function Yr(e,t){const r=e.getAttribute(t);if(r==="true")return!0;if(r==="false")return!1}function h0(e){const t={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6};return e.getAttribute("aria-level")&&Number(e.getAttribute("aria-level"))||t[e.tagName]}function y0(e){const t=e.getAttribute("aria-valuenow");return t===null?void 0:+t}function b0(e){const t=e.getAttribute("aria-valuemax");return t===null?void 0:+t}function v0(e){const t=e.getAttribute("aria-valuemin");return t===null?void 0:+t}function g0(e){const t=e.getAttribute("aria-valuetext");return t===null?void 0:t}const Wu=If();function w0(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function zu(e){return new RegExp(w0(e.toLowerCase()),"i")}function gt(e,t,r,o){let{variant:n,name:a}=o,i="";const s={},l=[["Role","TestId"].includes(e)?r:zu(r)];a&&(s.name=zu(a)),e==="Role"&&rl(t)&&(s.hidden=!0,i=`Element is inaccessible. This means that the element and all its children are invisible to screen readers.
|
|
287
|
+
If you are using the aria-hidden prop, make sure this is the right choice for your case.
|
|
288
|
+
`),Object.keys(s).length>0&&l.push(s);const c=n+"By"+e;return{queryName:e,queryMethod:c,queryArgs:l,variant:n,warning:i,toString(){i&&console.warn(i);let[f,u]=l;return f=typeof f=="string"?"'"+f+"'":f,u=u?", { "+Object.entries(u).map(d=>{let[y,g]=d;return y+": "+g}).join(", ")+" }":"",c+"("+f+u+")"}}}function wt(e,t,r){return r&&!t}function gs(e,t,r){var o,n;if(t===void 0&&(t="get"),e.matches(ue().defaultIgnore))return;const a=(o=e.getAttribute("role"))!=null?o:(n=nl(e))==null?void 0:n[0];if(a!=="generic"&&wt("Role",r,a))return gt("Role",e,a,{variant:t,name:Xs(e,{computedStyleSupportsPseudoElements:ue().computedStyleSupportsPseudoElements})});const i=$f(document,e).map(d=>d.content).join(" ");if(wt("LabelText",r,i))return gt("LabelText",e,i,{variant:t});const s=e.getAttribute("placeholder");if(wt("PlaceholderText",r,s))return gt("PlaceholderText",e,s,{variant:t});const l=Wu(hi(e));if(wt("Text",r,l))return gt("Text",e,l,{variant:t});if(wt("DisplayValue",r,e.value))return gt("DisplayValue",e,Wu(e.value),{variant:t});const c=e.getAttribute("alt");if(wt("AltText",r,c))return gt("AltText",e,c,{variant:t});const f=e.getAttribute("title");if(wt("Title",r,f))return gt("Title",e,f,{variant:t});const u=e.getAttribute(ue().testIdAttribute);if(wt("TestId",r,u))return gt("TestId",e,u,{variant:t})}function sn(e,t){e.stack=t.stack.replace(t.message,e.message)}function E0(e,t){let{container:r=tl(),timeout:o=ue().asyncUtilTimeout,showOriginalStackTrace:n=ue().showOriginalStackTrace,stackTraceError:a,interval:i=50,onTimeout:s=c=>(Object.defineProperty(c,"message",{value:ue().getElementError(c.message,r).message}),c),mutationObserverOptions:l={subtree:!0,childList:!0,attributes:!0,characterData:!0}}=t;if(typeof e!="function")throw new TypeError("Received `callback` arg must be a function");return new Promise(async(c,f)=>{let u,d,y,g=!1,w="idle";const v=setTimeout(N,o),m=Gi();if(m){const{unstable_advanceTimersWrapper:C}=ue();for($();!g;){if(!Gi()){const x=new Error("Changed from using fake timers to real timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to real timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");n||sn(x,a),f(x);return}if(await C(async()=>{jest.advanceTimersByTime(i)}),g)break;$()}}else{try{mt(r)}catch(x){f(x);return}d=setInterval(M,i);const{MutationObserver:C}=Sf(r);y=new C(M),y.observe(r,l),$()}function R(C,x){g=!0,clearTimeout(v),m||(clearInterval(d),y.disconnect()),C?f(C):c(x)}function M(){if(Gi()){const C=new Error("Changed from using real timers to fake timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to fake timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");return n||sn(C,a),f(C)}else return $()}function $(){if(w!=="pending")try{const C=t0(e);typeof(C==null?void 0:C.then)=="function"?(w="pending",C.then(x=>{w="resolved",R(null,x)},x=>{w="rejected",u=x})):R(null,C)}catch(C){u=C}}function N(){let C;u?(C=u,!n&&C.name==="TestingLibraryElementError"&&sn(C,a)):(C=new Error("Timed out in waitFor."),n||sn(C,a)),R(s(C),null)}})}function _0(e,t){const r=new Error("STACK_TRACE_MESSAGE");return ue().asyncWrapper(()=>E0(e,{stackTraceError:r,...t}))}function jf(e,t){return ue().getElementError(e,t)}function C0(e,t){return jf(e+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",t)}function yi(e,t,r,o){let{exact:n=!0,collapseWhitespace:a,trim:i,normalizer:s}=o===void 0?{}:o;const l=n?dt:_r,c=rr({collapseWhitespace:a,trim:i,normalizer:s});return Array.from(t.querySelectorAll("["+e+"]")).filter(f=>l(f.getAttribute(e),f,r,c))}function _n(e,t){return function(r){for(var o=arguments.length,n=new Array(o>1?o-1:0),a=1;a<o;a++)n[a-1]=arguments[a];const i=e(r,...n);if(i.length>1){const s=i.map(l=>jf(null,l).message).join(`
|
|
289
|
+
|
|
290
|
+
`);throw C0(t(r,...n)+`
|
|
291
|
+
|
|
292
|
+
Here are the matching elements:
|
|
293
|
+
|
|
294
|
+
`+s,r)}return i[0]||null}}function Df(e,t){return ue().getElementError(`A better query is available, try this:
|
|
295
|
+
`+e.toString()+`
|
|
296
|
+
`,t)}function T0(e,t){return function(r){for(var o=arguments.length,n=new Array(o>1?o-1:0),a=1;a<o;a++)n[a-1]=arguments[a];const i=e(r,...n);if(!i.length)throw ue().getElementError(t(r,...n),r);return i}}function Cn(e){return(t,r,o,n)=>_0(()=>e(t,r,o),{container:t,...n})}const pr=(e,t,r)=>function(o){for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];const s=e(o,...a),[{suggest:l=ue().throwSuggestions}={}]=a.slice(-1);if(s&&l){const c=gs(s,r);if(c&&!t.endsWith(c.queryName))throw Df(c.toString(),o)}return s},Ke=(e,t,r)=>function(o){for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];const s=e(o,...a),[{suggest:l=ue().throwSuggestions}={}]=a.slice(-1);if(s.length&&l){const c=[...new Set(s.map(f=>{var u;return(u=gs(f,r))==null?void 0:u.toString()}))];if(c.length===1&&!t.endsWith(gs(s[0],r).queryName))throw Df(c[0],o)}return s};function nr(e,t,r){const o=pr(_n(e,t),e.name,"query"),n=T0(e,r),a=_n(n,t),i=pr(a,e.name,"get"),s=Ke(n,e.name.replace("query","get"),"getAll"),l=Cn(Ke(n,e.name,"findAll")),c=Cn(pr(a,e.name,"find"));return[o,s,i,l,c]}function R0(e){return Array.from(e.querySelectorAll("label,input")).map(t=>({node:t,textToMatch:vs(t)})).filter(t=>{let{textToMatch:r}=t;return r!==null})}const P0=function(e,t,r){let{exact:o=!0,trim:n,collapseWhitespace:a,normalizer:i}=r===void 0?{}:r;const s=o?dt:_r,l=rr({collapseWhitespace:a,trim:n,normalizer:i});return R0(e).filter(f=>{let{node:u,textToMatch:d}=f;return s(d,u,t,l)}).map(f=>{let{node:u}=f;return u})},Br=function(e,t,r){let{selector:o="*",exact:n=!0,collapseWhitespace:a,trim:i,normalizer:s}=r===void 0?{}:r;mt(e);const l=n?dt:_r,c=rr({collapseWhitespace:a,trim:i,normalizer:s}),f=Array.from(e.querySelectorAll("*")).filter(u=>Af(u).length||u.hasAttribute("aria-labelledby")).reduce((u,d)=>{const y=$f(e,d,{selector:o});y.filter(w=>!!w.formControl).forEach(w=>{l(w.content,w.formControl,t,c)&&w.formControl&&u.push(w.formControl)});const g=y.filter(w=>!!w.content).map(w=>w.content);return l(g.join(" "),d,t,c)&&u.push(d),g.length>1&&g.forEach((w,v)=>{l(w,d,t,c)&&u.push(d);const m=[...g];m.splice(v,1),m.length>1&&l(m.join(" "),d,t,c)&&u.push(d)}),u},[]).concat(yi("aria-label",e,t,{exact:n,normalizer:c}));return Array.from(new Set(f)).filter(u=>u.matches(o))},Zt=function(e,t){for(var r=arguments.length,o=new Array(r>2?r-2:0),n=2;n<r;n++)o[n-2]=arguments[n];const a=Br(e,t,...o);if(!a.length){const i=P0(e,t,...o);if(i.length){const s=i.map(l=>x0(e,l)).filter(l=>!!l);throw s.length?ue().getElementError(s.map(l=>"Found a label with the text of: "+t+", however the element associated with this label (<"+l+" />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <"+l+" />, you can use aria-label or aria-labelledby instead.").join(`
|
|
297
|
+
|
|
298
|
+
`),e):ue().getElementError("Found a label with the text of: "+t+`, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.`,e)}else throw ue().getElementError("Unable to find a label with the text of: "+t,e)}return a};function x0(e,t){const r=t.getAttribute("for");if(!r)return null;const o=e.querySelector('[id="'+r+'"]');return o?o.tagName.toLowerCase():null}const Ff=(e,t)=>"Found multiple elements with the text of: "+t,O0=pr(_n(Br,Ff),Br.name,"query"),Lf=_n(Zt,Ff),S0=Cn(Ke(Zt,Zt.name,"findAll")),M0=Cn(pr(Lf,Zt.name,"find")),A0=Ke(Zt,Zt.name,"getAll"),$0=pr(Lf,Zt.name,"get"),q0=Ke(Br,Br.name,"queryAll"),ws=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return mt(t[0]),yi("placeholder",...t)},I0=(e,t)=>"Found multiple elements with the placeholder text of: "+t,N0=(e,t)=>"Unable to find an element with the placeholder text of: "+t,k0=Ke(ws,ws.name,"queryAll"),[j0,D0,F0,L0,B0]=nr(ws,I0,N0),Es=function(e,t,r){let{selector:o="*",exact:n=!0,collapseWhitespace:a,trim:i,ignore:s=ue().defaultIgnore,normalizer:l}=r===void 0?{}:r;mt(e);const c=n?dt:_r,f=rr({collapseWhitespace:a,trim:i,normalizer:l});let u=[];return typeof e.matches=="function"&&e.matches(o)&&(u=[e]),[...u,...Array.from(e.querySelectorAll(o))].filter(d=>!s||!d.matches(s)).filter(d=>c(hi(d),d,t,f))},U0=(e,t)=>"Found multiple elements with the text: "+t,H0=function(e,t,r){r===void 0&&(r={});const{collapseWhitespace:o,trim:n,normalizer:a,selector:i}=r,l=rr({collapseWhitespace:o,trim:n,normalizer:a})(t.toString()),c=l!==t.toString(),f=(i??"*")!=="*";return"Unable to find an element with the text: "+(c?l+" (normalized from '"+t+"')":t)+(f?", which matches selector '"+i+"'":"")+". This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible."},V0=Ke(Es,Es.name,"queryAll"),[W0,z0,K0,Y0,G0]=nr(Es,U0,H0),_s=function(e,t,r){let{exact:o=!0,collapseWhitespace:n,trim:a,normalizer:i}=r===void 0?{}:r;mt(e);const s=o?dt:_r,l=rr({collapseWhitespace:n,trim:a,normalizer:i});return Array.from(e.querySelectorAll("input,textarea,select")).filter(c=>c.tagName==="SELECT"?Array.from(c.options).filter(u=>u.selected).some(u=>s(hi(u),u,t,l)):s(c.value,c,t,l))},X0=(e,t)=>"Found multiple elements with the display value: "+t+".",J0=(e,t)=>"Unable to find an element with the display value: "+t+".",Q0=Ke(_s,_s.name,"queryAll"),[Z0,eM,tM,rM,nM]=nr(_s,X0,J0),oM=/^(img|input|area|.+-.+)$/i,Cs=function(e,t,r){return r===void 0&&(r={}),mt(e),yi("alt",e,t,r).filter(o=>oM.test(o.tagName))},aM=(e,t)=>"Found multiple elements with the alt text: "+t,iM=(e,t)=>"Unable to find an element with the alt text: "+t,sM=Ke(Cs,Cs.name,"queryAll"),[lM,uM,cM,dM,fM]=nr(Cs,aM,iM),pM=e=>{var t;return e.tagName.toLowerCase()==="title"&&((t=e.parentElement)==null?void 0:t.tagName.toLowerCase())==="svg"},Ts=function(e,t,r){let{exact:o=!0,collapseWhitespace:n,trim:a,normalizer:i}=r===void 0?{}:r;mt(e);const s=o?dt:_r,l=rr({collapseWhitespace:n,trim:a,normalizer:i});return Array.from(e.querySelectorAll("[title], svg > title")).filter(c=>s(c.getAttribute("title"),c,t,l)||pM(c)&&s(hi(c),c,t,l))},mM=(e,t)=>"Found multiple elements with the title: "+t+".",hM=(e,t)=>"Unable to find an element with the title: "+t+".",yM=Ke(Ts,Ts.name,"queryAll"),[bM,vM,gM,wM,EM]=nr(Ts,mM,hM),Rs=function(e,t,r){let{hidden:o=ue().defaultHidden,name:n,description:a,queryFallbacks:i=!1,selected:s,busy:l,checked:c,pressed:f,current:u,level:d,expanded:y,value:{now:g,min:w,max:v,text:m}={}}=r===void 0?{}:r;if(mt(e),s!==void 0){var R;if(((R=Qe.get(t))==null?void 0:R.props["aria-selected"])===void 0)throw new Error('"aria-selected" is not supported on role "'+t+'".')}if(l!==void 0){var M;if(((M=Qe.get(t))==null?void 0:M.props["aria-busy"])===void 0)throw new Error('"aria-busy" is not supported on role "'+t+'".')}if(c!==void 0){var $;if((($=Qe.get(t))==null?void 0:$.props["aria-checked"])===void 0)throw new Error('"aria-checked" is not supported on role "'+t+'".')}if(f!==void 0){var N;if(((N=Qe.get(t))==null?void 0:N.props["aria-pressed"])===void 0)throw new Error('"aria-pressed" is not supported on role "'+t+'".')}if(u!==void 0){var C;if(((C=Qe.get(t))==null?void 0:C.props["aria-current"])===void 0)throw new Error('"aria-current" is not supported on role "'+t+'".')}if(d!==void 0&&t!=="heading")throw new Error('Role "'+t+'" cannot have "level" property.');if(g!==void 0){var x;if(((x=Qe.get(t))==null?void 0:x.props["aria-valuenow"])===void 0)throw new Error('"aria-valuenow" is not supported on role "'+t+'".')}if(v!==void 0){var I;if(((I=Qe.get(t))==null?void 0:I.props["aria-valuemax"])===void 0)throw new Error('"aria-valuemax" is not supported on role "'+t+'".')}if(w!==void 0){var Z;if(((Z=Qe.get(t))==null?void 0:Z.props["aria-valuemin"])===void 0)throw new Error('"aria-valuemin" is not supported on role "'+t+'".')}if(m!==void 0){var K;if(((K=Qe.get(t))==null?void 0:K.props["aria-valuetext"])===void 0)throw new Error('"aria-valuetext" is not supported on role "'+t+'".')}if(y!==void 0){var oe;if(((oe=Qe.get(t))==null?void 0:oe.props["aria-expanded"])===void 0)throw new Error('"aria-expanded" is not supported on role "'+t+'".')}const ce=new WeakMap;function F(U){return ce.has(U)||ce.set(U,kf(U)),ce.get(U)}return Array.from(e.querySelectorAll(_M(t))).filter(U=>{if(U.hasAttribute("role")){const pe=U.getAttribute("role");if(i)return pe.split(" ").filter(Boolean).some(Ie=>Ie===t);const[Ce]=pe.split(" ");return Ce===t}return nl(U).some(pe=>pe===t)}).filter(U=>{if(s!==void 0)return s===u0(U);if(l!==void 0)return l===c0(U);if(c!==void 0)return c===d0(U);if(f!==void 0)return f===f0(U);if(u!==void 0)return u===p0(U);if(y!==void 0)return y===m0(U);if(d!==void 0)return d===h0(U);if(g!==void 0||v!==void 0||w!==void 0||m!==void 0){let de=!0;if(g!==void 0&&de&&(de=g===y0(U)),v!==void 0&&de&&(de=v===b0(U)),w!==void 0&&de&&(de=w===v0(U)),m!==void 0){var _e;de&&(de=dt((_e=g0(U))!=null?_e:null,U,m,pe=>pe))}return de}return!0}).filter(U=>n===void 0?!0:dt(Xs(U,{computedStyleSupportsPseudoElements:ue().computedStyleSupportsPseudoElements}),U,n,_e=>_e)).filter(U=>a===void 0?!0:dt(lf(U,{computedStyleSupportsPseudoElements:ue().computedStyleSupportsPseudoElements}),U,a,_e=>_e)).filter(U=>o===!1?rl(U,{isSubtreeInaccessible:F})===!1:!0)};function _M(e){var t;const r='*[role~="'+e+'"]',o=(t=Ef.get(e))!=null?t:new Set,n=new Set(Array.from(o).map(a=>{let{name:i}=a;return i}));return[r].concat(Array.from(n)).join(",")}const Bf=e=>{let t="";return e===void 0?t="":typeof e=="string"?t=' and name "'+e+'"':t=" and name `"+e+"`",t},CM=function(e,t,r){let{name:o}=r===void 0?{}:r;return'Found multiple elements with the role "'+t+'"'+Bf(o)},TM=function(e,t,r){let{hidden:o=ue().defaultHidden,name:n,description:a}=r===void 0?{}:r;if(ue()._disableExpensiveErrorDiagnostics)return'Unable to find role="'+t+'"'+Bf(n);let i="";Array.from(e.children).forEach(f=>{i+=l0(f,{hidden:o,includeDescription:a!==void 0})});let s;i.length===0?o===!1?s="There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole":s="There are no available roles.":s=(`
|
|
299
|
+
Here are the `+(o===!1?"accessible":"available")+` roles:
|
|
300
|
+
|
|
301
|
+
`+i.replace(/\n/g,`
|
|
302
|
+
`).replace(/\n\s\s\n/g,`
|
|
303
|
+
|
|
304
|
+
`)+`
|
|
305
|
+
`).trim();let l="";n===void 0?l="":typeof n=="string"?l=' and name "'+n+'"':l=" and name `"+n+"`";let c="";return a===void 0?c="":typeof a=="string"?c=' and description "'+a+'"':c=" and description `"+a+"`",(`
|
|
306
|
+
Unable to find an `+(o===!1?"accessible ":"")+'element with the role "'+t+'"'+l+c+`
|
|
307
|
+
|
|
308
|
+
`+s).trim()},RM=Ke(Rs,Rs.name,"queryAll"),[PM,xM,OM,SM,MM]=nr(Rs,CM,TM),ol=()=>ue().testIdAttribute,Ps=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return mt(t[0]),yi(ol(),...t)},AM=(e,t)=>"Found multiple elements by: ["+ol()+'="'+t+'"]',$M=(e,t)=>"Unable to find an element by: ["+ol()+'="'+t+'"]',qM=Ke(Ps,Ps.name,"queryAll"),[IM,NM,kM,jM,DM]=nr(Ps,AM,$M);var xs=Object.freeze({__proto__:null,queryAllByLabelText:q0,queryByLabelText:O0,getAllByLabelText:A0,getByLabelText:$0,findAllByLabelText:S0,findByLabelText:M0,queryByPlaceholderText:j0,queryAllByPlaceholderText:k0,getByPlaceholderText:F0,getAllByPlaceholderText:D0,findAllByPlaceholderText:L0,findByPlaceholderText:B0,queryByText:W0,queryAllByText:V0,getByText:K0,getAllByText:z0,findAllByText:Y0,findByText:G0,queryByDisplayValue:Z0,queryAllByDisplayValue:Q0,getByDisplayValue:tM,getAllByDisplayValue:eM,findAllByDisplayValue:rM,findByDisplayValue:nM,queryByAltText:lM,queryAllByAltText:sM,getByAltText:cM,getAllByAltText:uM,findAllByAltText:dM,findByAltText:fM,queryByTitle:bM,queryAllByTitle:yM,getByTitle:gM,getAllByTitle:vM,findAllByTitle:wM,findByTitle:EM,queryByRole:PM,queryAllByRole:RM,getAllByRole:xM,getByRole:OM,findAllByRole:SM,findByRole:MM,queryByTestId:IM,queryAllByTestId:qM,getByTestId:kM,getAllByTestId:NM,findAllByTestId:jM,findByTestId:DM});function Uf(e,t,r){return t===void 0&&(t=xs),r===void 0&&(r={}),Object.keys(t).reduce((o,n)=>{const a=t[n];return o[n]=a.bind(null,e),o},r)}const Ku={copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionEnd:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionStart:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionUpdate:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyDown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyPress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyUp:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},focus:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},blur:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},focusIn:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},focusOut:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},invalid:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!0}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},reset:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},click:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,button:0,composed:!0}},contextMenu:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblClick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drag:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragEnd:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragEnter:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragExit:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragLeave:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragOver:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragStart:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drop:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseDown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseEnter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseLeave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseMove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOut:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOver:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseUp:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},select:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},touchCancel:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},touchEnd:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchMove:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchStart:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},resize:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},scroll:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},wheel:{EventType:"WheelEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},abort:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlay:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlayThrough:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},durationChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},emptied:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},encrypted:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},ended:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedData:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedMetadata:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadStart:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},pause:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},play:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},playing:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},progress:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},rateChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeked:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeking:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},stalled:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},suspend:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},timeUpdate:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},volumeChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},waiting:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},load:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},error:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},animationStart:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationEnd:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationIteration:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionCancel:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionEnd:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},transitionRun:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionStart:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},pointerOver:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerEnter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerDown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerMove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerUp:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerCancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerOut:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerLeave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},gotPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},lostPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},popState:{EventType:"PopStateEvent",defaultInit:{bubbles:!0,cancelable:!1}},offline:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},online:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},pageHide:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},pageShow:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}}},Yu={doubleClick:"dblClick"};function Ur(e,t){return ue().eventWrapper(()=>{if(!t)throw new Error("Unable to fire an event - please provide an event object.");if(!e)throw new Error('Unable to fire a "'+t.type+'" event - please provide a DOM element.');return e.dispatchEvent(t)})}function Xi(e,t,r,o){let{EventType:n="Event",defaultInit:a={}}=o===void 0?{}:o;if(!t)throw new Error('Unable to fire a "'+e+'" event - please provide a DOM element.');const i={...a,...r},{target:{value:s,files:l,...c}={}}=i;s!==void 0&&FM(t,s),l!==void 0&&Object.defineProperty(t,"files",{configurable:!0,enumerable:!0,writable:!0,value:l}),Object.assign(t,c);const f=Sf(t),u=f[n]||f.Event;let d;if(typeof u=="function")d=new u(e,i);else{d=f.document.createEvent(n);const{bubbles:g,cancelable:w,detail:v,...m}=i;d.initEvent(e,g,w,v),Object.keys(m).forEach(R=>{d[R]=m[R]})}return["dataTransfer","clipboardData"].forEach(g=>{const w=i[g];typeof w=="object"&&(typeof f.DataTransfer=="function"?Object.defineProperty(d,g,{value:Object.getOwnPropertyNames(w).reduce((v,m)=>(Object.defineProperty(v,m,{value:w[m]}),v),new f.DataTransfer)}):Object.defineProperty(d,g,{value:w}))}),d}Object.keys(Ku).forEach(e=>{const{EventType:t,defaultInit:r}=Ku[e],o=e.toLowerCase();Xi[e]=(n,a)=>Xi(o,n,a,{EventType:t,defaultInit:r}),Ur[e]=(n,a)=>Ur(n,Xi[e](n,a))});function FM(e,t){const{set:r}=Object.getOwnPropertyDescriptor(e,"value")||{},o=Object.getPrototypeOf(e),{set:n}=Object.getOwnPropertyDescriptor(o,"value")||{};if(n&&r!==n)n.call(e,t);else if(r)r.call(e,t);else throw new Error("The given element does not have a value setter")}Object.keys(Yu).forEach(e=>{const t=Yu[e];Ur[e]=function(){return Ur[t](...arguments)}});function LM(e){return e.replace(/[ \t]*[\n][ \t]*/g,`
|
|
309
|
+
`)}function BM(e){return NS.compressToEncodedURIComponent(LM(e))}function UM(e){return"https://testing-playground.com/#markup="+BM(e)}const HM=(e,t,r)=>Array.isArray(e)?e.forEach(o=>Vu(o,t,r)):Vu(e,t,r),VM=function(e){if(e===void 0&&(e=tl().body),!e||!("innerHTML"in e)){console.log("The element you're providing isn't a valid DOM element.");return}if(!e.innerHTML){console.log("The provided element doesn't have any children.");return}const t=UM(e.innerHTML);return console.log(`Open this URL in your browser
|
|
310
|
+
|
|
311
|
+
`+t),t},Gu={debug:HM,logTestingPlaygroundURL:VM},WM=typeof document<"u"&&document.body?Uf(document.body,xs,Gu):Object.keys(xs).reduce((e,t)=>(e[t]=()=>{throw new TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error")},e),Gu),zM=typeof qr.act=="function"?qr.act:Mv.act;function Hf(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}function ut(e){Hf().IS_REACT_ACT_ENVIRONMENT=e}function Tn(){return Hf().IS_REACT_ACT_ENVIRONMENT}function KM(e){return t=>{const r=Tn();ut(!0);try{let o=!1;const n=e(()=>{const a=t();return a!==null&&typeof a=="object"&&typeof a.then=="function"&&(o=!0),a});if(o){const a=n;return{then:(i,s)=>{a.then(l=>{ut(r),i(l)},l=>{ut(r),s(l)})}}}else return ut(r),n}catch(o){throw ut(r),o}}}const vr=KM(zM);Object.keys(Ur).forEach(e=>{});let YM={reactStrictMode:!1};function GM(){return{...ue(),...YM}}function XM(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}r0({unstable_advanceTimersWrapper:e=>vr(e),asyncWrapper:async e=>{const t=Tn();ut(!1);try{const r=await e();return await new Promise(o=>{setTimeout(()=>{o()},0),XM()&&jest.advanceTimersByTime(0)}),r}finally{ut(t)}},eventWrapper:e=>{let t;return vr(()=>{t=e()}),t}});const Os=new Set,Rn=[];function Ss(e){return GM().reactStrictMode?qr.createElement(qr.StrictMode,null,e):e}function Ms(e,t){return t?qr.createElement(t,null,e):e}function JM(e,t){let{hydrate:r,ui:o,wrapper:n}=t,a;return r?vr(()=>{a=ss(e,Ss(Ms(o,n)))}):a=ls(e),{hydrate(){if(!r)throw new Error("Attempted to hydrate a non-hydrateable root. This is a bug in `@testing-library/react`.")},render(i){a.render(i)},unmount(){a.unmount()}}}function QM(e){return{hydrate(t){Xt.hydrate(t,e)},render(t){Xt.render(t,e)},unmount(){Xt.unmountComponentAtNode(e)}}}function Vf(e,t){let{baseElement:r,container:o,hydrate:n,queries:a,root:i,wrapper:s}=t;return vr(()=>{n?i.hydrate(Ss(Ms(e,s)),o):i.render(Ss(Ms(e,s)),o)}),{container:o,baseElement:r,debug:function(l,c,f){return l===void 0&&(l=r),Array.isArray(l)?l.forEach(u=>console.log(br(u,c,f))):console.log(br(l,c,f))},unmount:()=>{vr(()=>{i.unmount()})},rerender:l=>{Vf(l,{container:o,baseElement:r,root:i,wrapper:s})},asFragment:()=>{if(typeof document.createRange=="function")return document.createRange().createContextualFragment(o.innerHTML);{const l=document.createElement("template");return l.innerHTML=o.innerHTML,l.content}},...Uf(r,a)}}function Wf(e,t){let{container:r,baseElement:o=r,legacyRoot:n=!1,queries:a,hydrate:i=!1,wrapper:s}=t===void 0?{}:t;if(n&&typeof Xt.render!="function"){const c=new Error("`legacyRoot: true` is not supported in this version of React. If your app runs React 19 or later, you should remove this flag. If your app runs React 18 or earlier, visit https://react.dev/blog/2022/03/08/react-18-upgrade-guide for upgrade instructions.");throw Error.captureStackTrace(c,Wf),c}o||(o=document.body),r||(r=o.appendChild(document.createElement("div")));let l;return Os.has(r)?Rn.forEach(c=>{c.container===r&&(l=c.root)}):(l=(n?QM:JM)(r,{hydrate:i,ui:e,wrapper:s}),Rn.push({container:r,root:l}),Os.add(r)),Vf(e,{container:r,baseElement:o,queries:a,hydrate:i,wrapper:s,root:l})}function Xu(){Rn.forEach(e=>{let{root:t,container:r}=e;vr(()=>{t.unmount()}),r.parentNode===document.body&&document.body.removeChild(r)}),Rn.length=0,Os.clear()}var Ju;if((typeof process>"u"||!((Ju=process.env)!=null&&Ju.RTL_SKIP_AUTO_CLEANUP))&&(typeof afterEach=="function"?afterEach(()=>{Xu()}):typeof teardown=="function"&&teardown(()=>{Xu()}),typeof beforeAll=="function"&&typeof afterAll=="function")){let e=Tn();beforeAll(()=>{e=Tn(),ut(!0)}),afterAll(()=>{ut(e)})}function ZM(e,t){return Qu.jsx(yp,{tag:"label",ref:t,component:"label",...e})}const zf=Pn.forwardRef(ZM);Vp("useStyles",()=>{Wp("generates label tag item",()=>{Wf(Qu.jsx(zf,{children:"my label"}));const e=WM.getByText("my label");os(e).toBeDefined(),os(e.tagName).to.equal("LABEL")})});exports.Label=zf;exports.assertionError=sc;exports.commonjsGlobal=gp;exports.config=Is;exports.getAugmentedNamespace=wp;exports.requireChai=lc;
|