twd-js 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/twd.umd.js DELETED
@@ -1,320 +0,0 @@
1
- (function(se,Oe){typeof exports=="object"&&typeof module<"u"?Oe(exports,require("react"),require("fs"),require("path")):typeof define=="function"&&define.amd?define(["exports","react","fs","path"],Oe):(se=typeof globalThis<"u"?globalThis:se||self,Oe(se.TWD={},se.React,se.fs,se.path))})(this,(function(se,Oe,Sp,Op){"use strict";var Rt,wt;const Ap=(e,t=2e3,r=50)=>new Promise((n,o)=>{const a=Date.now(),i=()=>{const s=e();if(s)return n(s);if(Date.now()-a>t)return o(new Error("Timeout waiting for element"));setTimeout(i,r)};i()}),Mp=(e,t=2e3,r=50)=>new Promise((n,o)=>{const a=Date.now(),i=()=>{const s=e();if(s&&s.length>0)return n(Array.from(s));if(Date.now()-a>t)return o(new Error("Timeout waiting for elements"));setTimeout(i,r)};i()}),Ko=e=>new Promise(t=>setTimeout(t,e)),Qe=[];let Ua=[];const za=(e,t,r={})=>{Qe.push({name:e,fn:t,status:"idle",logs:[],suite:[...Ua],...r})},Ip=e=>{Ua.push(e)},Np=()=>{Ua.pop()},ge=(e,t,r,n)=>{if(!e&&!t)throw new Error(n);if(e&&t)throw new Error(n.replace("to be","to not be").replace("to have","to not have").replace("to contain","to not contain"));return r};function kp(e){if(!e.isConnected)return!1;let t=e;for(;t;){const r=getComputedStyle(t);if(r.display==="none"||r.visibility==="hidden"||r.visibility==="collapse")return!1;t=t.parentElement}return!0}const Ss=(e,t,...r)=>{const n=t.startsWith("not."),o=n?t.slice(4):t,a=(e.textContent||"").trim();switch(o){case"have.text":return ge(a===r[0],n,`Assertion passed: Text is exactly "${r[0]}"`,`Assertion failed: Expected text to be "${r[0]}", but got "${a}"`);case"contain.text":return ge(a.includes(r[0]),n,`Assertion passed: Text contains "${r[0]}"`,`Assertion failed: Expected text to contain "${r[0]}", but got "${a}"`);case"be.empty":return ge(a.length===0,n,"Assertion passed: Text is empty",`Assertion failed: Expected text to be empty, but got "${a}"`);case"have.attr":return ge(e.getAttribute(r[0])===r[1],n,`Assertion passed: Attribute "${r[0]}" is "${r[1]}"`,`Assertion failed: Expected attribute "${r[0]}" to be "${r[1]}", but got "${e.getAttribute(r[0])}"`);case"have.value":return ge(e.value===r[0],n,`Assertion passed: Value is "${r[0]}"`,`Assertion failed: Expected value to be "${r[0]}", but got "${e.value}"`);case"be.disabled":return ge(e.disabled===!0,n,"Assertion passed: Element is disabled","Assertion failed: Expected element to be disabled");case"be.enabled":return ge(e.disabled===!1,n,"Assertion passed: Element is enabled","Assertion failed: Expected element to be enabled");case"be.checked":return ge(e.checked===!0,n,"Assertion passed: Element is checked","Assertion failed: Expected element to be checked");case"be.selected":return ge(e.selected===!0,n,"Assertion passed: Element is selected","Assertion failed: Expected element to be selected");case"be.focused":return ge(document.activeElement===e,n,"Assertion passed: Element is focused","Assertion failed: Expected element to be focused");case"be.visible":return ge(kp(e),n,"Assertion passed: Element is visible","Assertion failed: Expected element to be visible");case"have.class":return ge(e.classList.contains(r[0]),n,`Assertion passed: Element has class "${r[0]}"`,`Assertion failed: Expected element to have class "${r[0]}"`);default:throw new Error(`Unknown assertion: ${o}`)}},st=e=>{const t=Qe.find(r=>r.status==="running");t&&t.logs?.push(e)},lt=[],Os=100,Dp=async()=>{"serviceWorker"in navigator&&(await navigator.serviceWorker.register("/mock-sw.js?v=1"),navigator.serviceWorker.addEventListener("message",e=>{if(e.data?.type==="EXECUTED"){const{alias:t,request:r}=e.data,n=lt.find(o=>o.alias===t);n&&(n.executed=!0,n.request=r)}}))},jp=async(e,t)=>{const r={alias:e,...t,executed:!1},n=lt.findIndex(o=>o.alias===e);n!==-1?lt[n]=r:lt.push(r),navigator.serviceWorker.controller?.postMessage({type:"ADD_RULE",rule:r}),await Ko(Os),await Promise.resolve()},Bp=async e=>await Promise.all(e.map(r=>As(r))),As=async e=>{await Ko(Os);const t=lt.find(r=>r.alias===e&&r.executed);if(!t)throw new Error(`Rule ${e} not found or not executed`);return Promise.resolve(t)},Lp=()=>lt,$p=()=>{navigator.serviceWorker.controller?.postMessage({type:"CLEAR_RULES"}),lt.length=0},Fp=(e,t)=>{const r=e.startsWith("not.");switch(r?e.slice(4):e){case"eq":return ge(window.location.href===t,r,`Assertion passed: URL is ${t}`,`Assertion failed: Expected URL to be ${t}, but got ${window.location.href}`);case"contain.url":return ge(window.location.href.includes(t),r,`Assertion passed: URL contains ${t}`,`Assertion failed: Expected URL to contain ${t}, but got ${window.location.href}`);default:throw new Error(`Unknown assertion: ${e}`)}},Up=()=>({location:window.location,should:(e,t)=>{const r=Fp(e,t);return st(r),r}}),zp=100,Vp=async e=>{st(`visit("${e}")`),window.history.pushState({},"",e),window.dispatchEvent(new PopStateEvent("popstate")),await Ko(zp)};let Dt=null;const Hp=e=>{Dt=e},Wp=(e,t)=>{Ip(e),t(),Np()},Gp=(e,t)=>{za(e,async()=>{Dt&&await Dt(),await t()})},Kp=(e,t)=>{za(e,async()=>{Dt&&await Dt(),await t()},{only:!0})},Yp=(e,t)=>{za(e,async()=>{},{skip:!0})},Xp={get:async e=>{const t=`body > div:not(#twd-sidebar-root) ${e}`;st(`Searching get("${e}")`);const r=await Ap(()=>document.querySelector(t)),n={el:r,should:(o,...a)=>{const i=Ss(r,o,...a);return st(i),n}};return n},getAll:async e=>{const t=`body > div:not(#twd-sidebar-root) ${e}`;return st(`Searching getAll("${e}")`),(await Mp(()=>document.querySelectorAll(t))).map(n=>{const o={el:n,should:(a,...i)=>{const s=Ss(n,a,...i);return st(s),o}};return o})},visit:Vp,url:Up,mockRequest:jp,waitForRequest:As,waitForRequests:Bp,initRequestMocking:Dp,clearRequestMockRules:$p,getRequestMockRules:Lp,wait:Ko};var Ms=Object.defineProperty,x=(e,t)=>Ms(e,"name",{value:t,configurable:!0}),Va=(e,t)=>{for(var r in t)Ms(e,r,{get:t[r],enumerable:!0})},Yo={};Va(Yo,{addChainableMethod:()=>gi,addLengthGuard:()=>Ft,addMethod:()=>bi,addProperty:()=>hi,checkError:()=>we,compareByInspect:()=>ra,eql:()=>cl,expectTypes:()=>Ls,flag:()=>z,getActual:()=>Jo,getMessage:()=>ti,getName:()=>oa,getOperator:()=>Ci,getOwnEnumerableProperties:()=>Ei,getOwnEnumerablePropertySymbols:()=>wi,getPathInfo:()=>mi,hasProperty:()=>ta,inspect:()=>G,isNaN:()=>na,isNumeric:()=>le,isProxyEnabled:()=>$t,isRegExp:()=>aa,objDisplay:()=>ut,overwriteChainableMethod:()=>Ri,overwriteMethod:()=>yi,overwriteProperty:()=>vi,proxify:()=>xt,test:()=>Ha,transferFlags:()=>Te,type:()=>ee});var we={};Va(we,{compatibleConstructor:()=>ks,compatibleInstance:()=>Ns,compatibleMessage:()=>Ds,getConstructorName:()=>js,getMessage:()=>Bs});function Xo(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}x(Xo,"isErrorInstance");function Is(e){return Object.prototype.toString.call(e)==="[object RegExp]"}x(Is,"isRegExp");function Ns(e,t){return Xo(t)&&e===t}x(Ns,"compatibleInstance");function ks(e,t){return Xo(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t=="object"||typeof t=="function")&&t.prototype?e.constructor===t||e instanceof t:!1}x(ks,"compatibleConstructor");function Ds(e,t){const r=typeof e=="string"?e:e.message;return Is(t)?t.test(r):typeof t=="string"?r.indexOf(t)!==-1:!1}x(Ds,"compatibleMessage");function js(e){let t=e;return Xo(e)?t=e.constructor.name:typeof e=="function"&&(t=e.name,t===""&&(t=new e().name||t)),t}x(js,"getConstructorName");function Bs(e){let t="";return e&&e.message?t=e.message:typeof e=="string"&&(t=e),t}x(Bs,"getMessage");function z(e,t,r){let n=e.__flags||(e.__flags=Object.create(null));if(arguments.length===3)n[t]=r;else return n[t]}x(z,"flag");function Ha(e,t){let r=z(e,"negate"),n=t[0];return r?!n:n}x(Ha,"test");function ee(e){if(typeof e>"u")return"undefined";if(e===null)return"null";const t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}x(ee,"type");var Jp="captureStackTrace"in Error,Y=(Rt=class extends Error{message;get name(){return"AssertionError"}get ok(){return!1}constructor(t="Unspecified AssertionError",r,n){super(t),this.message=t,Jp&&Error.captureStackTrace(this,n||Rt);for(const o in r)o in this||(this[o]=r[o])}toJSON(t){return{...this,name:this.name,message:this.message,ok:!1,stack:t!==!1?this.stack:void 0}}},x(Rt,"AssertionError"),Rt);function Ls(e,t){let r=z(e,"message"),n=z(e,"ssfi");r=r?r+": ":"",e=z(e,"object"),t=t.map(function(i){return i.toLowerCase()}),t.sort();let o=t.map(function(i,s){let l=~["a","e","i","o","u"].indexOf(i.charAt(0))?"an":"a";return(t.length>1&&s===t.length-1?"or ":"")+l+" "+i}).join(", "),a=ee(e).toLowerCase();if(!t.some(function(i){return a===i}))throw new Y(r+"object tested must be "+o+", but "+a+" given",void 0,n)}x(Ls,"expectTypes");function Jo(e,t){return t.length>4?t[4]:e._obj}x(Jo,"getActual");var $s={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},Qp={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Et="…";function Fs(e,t){const r=$s[Qp[t]]||$s[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}x(Fs,"colorise");function Us({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:a=1/0,breakLength:i=1/0,seen:s=[],truncate:l=1/0,stylize:u=String}={},f){const d={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(a),breakLength:Number(i),truncate:Number(l),seen:s,inspect:f,stylize:u};return d.colors&&(d.stylize=Fs),d}x(Us,"normaliseOptions");function zs(e){return e>="\uD800"&&e<="\uDBFF"}x(zs,"isHighSurrogate");function De(e,t,r=Et){e=String(e);const n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let a=t-n;return a>0&&zs(e[a-1])&&(a=a-1),`${e.slice(0,a)}${r}`}return e}x(De,"truncate");function xe(e,t,r,n=", "){r=r||t.inspect;const o=e.length;if(o===0)return"";const a=t.truncate;let i="",s="",l="";for(let u=0;u<o;u+=1){const f=u+1===e.length,d=u+2===e.length;l=`${Et}(${e.length-u})`;const c=e[u];t.truncate=a-i.length-(f?0:n.length);const h=s||r(c,t)+(f?"":n),v=i.length+h.length,R=v+l.length;if(f&&v>a&&i.length+l.length<=a||!f&&!d&&R>a||(s=f?"":r(e[u+1],t)+(d?"":n),!f&&d&&R>a&&v+s.length>a))break;if(i+=h,!f&&!d&&v+s.length>=a){l=`${Et}(${e.length-u-1})`;break}l=""}return`${i}${l}`}x(xe,"inspectList");function Vs(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}x(Vs,"quoteComplexKey");function Ct([e,t],r){return r.truncate-=2,typeof e=="string"?e=Vs(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}x(Ct,"inspectProperty");function Hs(e,t){const r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;const n=xe(e,t);t.truncate-=n.length;let o="";return r.length&&(o=xe(r.map(a=>[a,e[a]]),t,Ct)),`[ ${n}${o?`, ${o}`:""} ]`}x(Hs,"inspectArray");var Zp=x(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function Ae(e,t){const r=Zp(e);t.truncate-=r.length+4;const n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let o="";for(let i=0;i<e.length;i++){const s=`${t.stylize(De(e[i],t.truncate),"number")}${i===e.length-1?"":", "}`;if(t.truncate-=s.length,e[i]!==e.length&&t.truncate<=3){o+=`${Et}(${e.length-e[i]+1})`;break}o+=s}let a="";return n.length&&(a=xe(n.map(i=>[i,e[i]]),t,Ct)),`${r}[ ${o}${a?`, ${a}`:""} ]`}x(Ae,"inspectTypedArray");function Ws(e,t){const r=e.toJSON();if(r===null)return"Invalid Date";const n=r.split("T"),o=n[0];return t.stylize(`${o}T${De(n[1],t.truncate-o.length-1)}`,"date")}x(Ws,"inspectDate");function Wa(e,t){const r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${De(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}x(Wa,"inspectFunction");function Gs([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}x(Gs,"inspectMapEntry");function Ks(e){const t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}x(Ks,"mapToEntries");function Ys(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${xe(Ks(e),t,Gs)} }`)}x(Ys,"inspectMap");var em=Number.isNaN||(e=>e!==e);function Ga(e,t){return em(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(De(String(e),t.truncate),"number")}x(Ga,"inspectNumber");function Ka(e,t){let r=De(e.toString(),t.truncate-1);return r!==Et&&(r+="n"),t.stylize(r,"bigint")}x(Ka,"inspectBigInt");function Xs(e,t){const r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${De(o,n)}/${r}`,"regexp")}x(Xs,"inspectRegExp");function Js(e){const t=[];return e.forEach(r=>{t.push(r)}),t}x(Js,"arrayFromSet");function Qs(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${xe(Js(e),t)} }`)}x(Qs,"inspectSet");var Zs=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),tm={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},rm=16;function el(e){return tm[e]||`\\u${`0000${e.charCodeAt(0).toString(rm)}`.slice(-4)}`}x(el,"escape");function Ya(e,t){return Zs.test(e)&&(e=e.replace(Zs,el)),t.stylize(`'${De(e,t.truncate-2)}'`,"string")}x(Ya,"inspectString");function Xa(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}x(Xa,"inspectSymbol");var nm=x(()=>"Promise{…}","getPromiseValue"),om=nm;function jt(e,t){const r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);const o=xe(r.map(s=>[s,e[s]]),t,Ct),a=xe(n.map(s=>[s,e[s]]),t,Ct);t.seen.pop();let i="";return o&&a&&(i=", "),`{ ${o}${i}${a} }`}x(jt,"inspectObject");var Ja=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function tl(e,t){let r="";return Ja&&Ja in e&&(r=e[Ja]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${jt(e,t)}`}x(tl,"inspectClass");function rl(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${xe(e,t)} ]`)}x(rl,"inspectArguments");var am=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function nl(e,t){const r=Object.getOwnPropertyNames(e).filter(i=>am.indexOf(i)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=De(e.message,t.truncate):r.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);const a=xe(r.map(i=>[i,e[i]]),t,Ct);return`${n}${o}${a?` { ${a} }`:""}`}x(nl,"inspectObject");function ol([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}x(ol,"inspectAttribute");function Qo(e,t){return xe(e,t,al,`
2
- `)}x(Qo,"inspectNodeCollection");function al(e,t){switch(e.nodeType){case 1:return Qa(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}x(al,"inspectNode");function Qa(e,t){const r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),a=t.stylize(">","special"),i=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let s="";r.length>0&&(s+=" ",s+=xe(r.map(f=>[f,e.getAttribute(f)]),t,ol," ")),t.truncate-=s.length;const l=t.truncate;let u=Qo(e.children,t);return u&&u.length>l&&(u=`${Et}(${e.children.length})`),`${o}${s}${a}${u}${i}`}x(Qa,"inspectHTML");var im=typeof Symbol=="function"&&typeof Symbol.for=="function",Za=im?Symbol.for("chai/inspect"):"@@chai/inspect",ei=Symbol.for("nodejs.util.inspect.custom"),il=new WeakMap,sl={},ll={undefined:x((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:x((e,t)=>t.stylize("null","null"),"null"),boolean:x((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:x((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:Ga,Number:Ga,bigint:Ka,BigInt:Ka,string:Ya,String:Ya,function:Wa,Function:Wa,symbol:Xa,Symbol:Xa,Array:Hs,Date:Ws,Map:Ys,Set:Qs,RegExp:Xs,Promise:om,WeakSet:x((e,t)=>t.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:x((e,t)=>t.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:rl,Int8Array:Ae,Uint8Array:Ae,Uint8ClampedArray:Ae,Int16Array:Ae,Uint16Array:Ae,Int32Array:Ae,Uint32Array:Ae,Float32Array:Ae,Float64Array:Ae,Generator:x(()=>"","Generator"),DataView:x(()=>"","DataView"),ArrayBuffer:x(()=>"","ArrayBuffer"),Error:nl,HTMLCollection:Qo,NodeList:Qo},sm=x((e,t,r)=>Za in e&&typeof e[Za]=="function"?e[Za](t):ei in e&&typeof e[ei]=="function"?e[ei](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&il.has(e.constructor)?il.get(e.constructor)(e,t):sl[r]?sl[r](e,t):"","inspectCustom"),lm=Object.prototype.toString;function Zo(e,t={}){const r=Us(t,Zo),{customInspect:n}=r;let o=e===null?"null":typeof e;if(o==="object"&&(o=lm.call(e).slice(8,-1)),o in ll)return ll[o](e,r);if(n&&e){const i=sm(e,r,o);if(i)return typeof i=="string"?i:Zo(i,r)}const a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?jt(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Qa(e,r):"constructor"in e?e.constructor!==Object?tl(e,r):jt(e,r):e===Object(e)?jt(e,r):r.stylize(String(e),o)}x(Zo,"inspect");var fe={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function G(e,t,r,n){let o={colors:n,depth:typeof r>"u"?2:r,showHidden:t,truncate:fe.truncateThreshold?fe.truncateThreshold:1/0};return Zo(e,o)}x(G,"inspect");function ut(e){let t=G(e),r=Object.prototype.toString.call(e);if(fe.truncateThreshold&&t.length>=fe.truncateThreshold){if(r==="[object Function]")return!e.name||e.name===""?"[Function]":"[Function: "+e.name+"]";if(r==="[object Array]")return"[ Array("+e.length+") ]";if(r==="[object Object]"){let n=Object.keys(e);return"{ Object ("+(n.length>2?n.splice(0,2).join(", ")+", ...":n.join(", "))+") }"}else return t}else return t}x(ut,"objDisplay");function ti(e,t){let r=z(e,"negate"),n=z(e,"object"),o=t[3],a=Jo(e,t),i=r?t[2]:t[1],s=z(e,"message");return typeof i=="function"&&(i=i()),i=i||"",i=i.replace(/#\{this\}/g,function(){return ut(n)}).replace(/#\{act\}/g,function(){return ut(a)}).replace(/#\{exp\}/g,function(){return ut(o)}),s?s+": "+i:i}x(ti,"getMessage");function Te(e,t,r){let n=e.__flags||(e.__flags=Object.create(null));t.__flags||(t.__flags=Object.create(null)),r=arguments.length===3?r:!0;for(let o in n)(r||o!=="object"&&o!=="ssfi"&&o!=="lockSsfi"&&o!="message")&&(t.__flags[o]=n[o])}x(Te,"transferFlags");function ri(e){if(typeof e>"u")return"undefined";if(e===null)return"null";const t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}x(ri,"type");function ni(){this._key="chai/deep-eql__"+Math.random()+Date.now()}x(ni,"FakeMap"),ni.prototype={get:x(function(t){return t[this._key]},"get"),set:x(function(t,r){Object.isExtensible(t)&&Object.defineProperty(t,this._key,{value:r,configurable:!0})},"set")};var ul=typeof WeakMap=="function"?WeakMap:ni;function oi(e,t,r){if(!r||ct(e)||ct(t))return null;var n=r.get(e);if(n){var o=n.get(t);if(typeof o=="boolean")return o}return null}x(oi,"memoizeCompare");function Bt(e,t,r,n){if(!(!r||ct(e)||ct(t))){var o=r.get(e);o?o.set(t,n):(o=new ul,o.set(t,n),r.set(e,o))}}x(Bt,"memoizeSet");var cl=Lt;function Lt(e,t,r){if(r&&r.comparator)return ii(e,t,r);var n=ai(e,t);return n!==null?n:ii(e,t,r)}x(Lt,"deepEqual");function ai(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t?!0:ct(e)||ct(t)?!1:null}x(ai,"simpleEqual");function ii(e,t,r){r=r||{},r.memoize=r.memoize===!1?!1:r.memoize||new ul;var n=r&&r.comparator,o=oi(e,t,r.memoize);if(o!==null)return o;var a=oi(t,e,r.memoize);if(a!==null)return a;if(n){var i=n(e,t);if(i===!1||i===!0)return Bt(e,t,r.memoize,i),i;var s=ai(e,t);if(s!==null)return s}var l=ri(e);if(l!==ri(t))return Bt(e,t,r.memoize,!1),!1;Bt(e,t,r.memoize,!0);var u=dl(e,t,l,r);return Bt(e,t,r.memoize,u),u}x(ii,"extensiveDeepEqual");function dl(e,t,r,n){switch(r){case"String":case"Number":case"Boolean":case"Date":return Lt(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return e===t;case"Error":return di(e,t,["name","message","code"],n);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return Ze(e,t,n);case"RegExp":return fl(e,t);case"Generator":return pl(e,t,n);case"DataView":return Ze(new Uint8Array(e.buffer),new Uint8Array(t.buffer),n);case"ArrayBuffer":return Ze(new Uint8Array(e),new Uint8Array(t),n);case"Set":return si(e,t,n);case"Map":return si(e,t,n);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return e.equals(t);case"Temporal.Duration":return e.total("nanoseconds")===t.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return e.toString()===t.toString();default:return hl(e,t,n)}}x(dl,"extensiveDeepEqualByType");function fl(e,t){return e.toString()===t.toString()}x(fl,"regexpEqual");function si(e,t,r){try{if(e.size!==t.size)return!1;if(e.size===0)return!0}catch{return!1}var n=[],o=[];return e.forEach(x(function(i,s){n.push([i,s])},"gatherEntries")),t.forEach(x(function(i,s){o.push([i,s])},"gatherEntries")),Ze(n.sort(),o.sort(),r)}x(si,"entriesEqual");function Ze(e,t,r){var n=e.length;if(n!==t.length)return!1;if(n===0)return!0;for(var o=-1;++o<n;)if(Lt(e[o],t[o],r)===!1)return!1;return!0}x(Ze,"iterableEqual");function pl(e,t,r){return Ze(ea(e),ea(t),r)}x(pl,"generatorEqual");function ml(e){return typeof Symbol<"u"&&typeof e=="object"&&typeof Symbol.iterator<"u"&&typeof e[Symbol.iterator]=="function"}x(ml,"hasIteratorFunction");function li(e){if(ml(e))try{return ea(e[Symbol.iterator]())}catch{return[]}return[]}x(li,"getIteratorEntries");function ea(e){for(var t=e.next(),r=[t.value];t.done===!1;)t=e.next(),r.push(t.value);return r}x(ea,"getGeneratorEntries");function ui(e){var t=[];for(var r in e)t.push(r);return t}x(ui,"getEnumerableKeys");function ci(e){for(var t=[],r=Object.getOwnPropertySymbols(e),n=0;n<r.length;n+=1){var o=r[n];Object.getOwnPropertyDescriptor(e,o).enumerable&&t.push(o)}return t}x(ci,"getEnumerableSymbols");function di(e,t,r,n){var o=r.length;if(o===0)return!0;for(var a=0;a<o;a+=1)if(Lt(e[r[a]],t[r[a]],n)===!1)return!1;return!0}x(di,"keysEqual");function hl(e,t,r){var n=ui(e),o=ui(t),a=ci(e),i=ci(t);if(n=n.concat(a),o=o.concat(i),n.length&&n.length===o.length)return Ze(fi(n).sort(),fi(o).sort())===!1?!1:di(e,t,n,r);var s=li(e),l=li(t);return s.length&&s.length===l.length?(s.sort(),l.sort(),Ze(s,l,r)):n.length===0&&s.length===0&&o.length===0&&l.length===0}x(hl,"objectEqual");function ct(e){return e===null||typeof e!="object"}x(ct,"isPrimitive");function fi(e){return e.map(x(function(r){return typeof r=="symbol"?r.toString():r},"mapSymbol"))}x(fi,"mapSymbols");function ta(e,t){return typeof e>"u"||e===null?!1:t in Object(e)}x(ta,"hasProperty");function bl(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(n=>{if(n==="constructor"||n==="__proto__"||n==="prototype")return{};const a=/^\[(\d+)\]$/.exec(n);let i=null;return a?i={i:parseFloat(a[1])}:i={p:n.replace(/\\([.[\]])/g,"$1")},i})}x(bl,"parsePath");function pi(e,t,r){let n=e,o=null;r=typeof r>"u"?t.length:r;for(let a=0;a<r;a++){const i=t[a];n&&(typeof i.p>"u"?n=n[i.i]:n=n[i.p],a===r-1&&(o=n))}return o}x(pi,"internalGetPathValue");function mi(e,t){const r=bl(t),n=r[r.length-1],o={parent:r.length>1?pi(e,r,r.length-1):e,name:n.p||n.i,value:pi(e,r)};return o.exists=ta(o.parent,o.name),o}x(mi,"getPathInfo");var b=(wt=class{__flags={};constructor(t,r,n,o){return z(this,"ssfi",n||wt),z(this,"lockSsfi",o),z(this,"object",t),z(this,"message",r),z(this,"eql",fe.deepEqual||cl),xt(this)}static get includeStack(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),fe.includeStack}static set includeStack(t){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),fe.includeStack=t}static get showDiff(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),fe.showDiff}static set showDiff(t){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),fe.showDiff=t}static addProperty(t,r){hi(this.prototype,t,r)}static addMethod(t,r){bi(this.prototype,t,r)}static addChainableMethod(t,r,n){gi(this.prototype,t,r,n)}static overwriteProperty(t,r){vi(this.prototype,t,r)}static overwriteMethod(t,r){yi(this.prototype,t,r)}static overwriteChainableMethod(t,r,n){Ri(this.prototype,t,r,n)}assert(t,r,n,o,a,i){const s=Ha(this,arguments);if(i!==!1&&(i=!0),o===void 0&&a===void 0&&(i=!1),fe.showDiff!==!0&&(i=!1),!s){r=ti(this,arguments);const u={actual:Jo(this,arguments),expected:o,showDiff:i},f=Ci(this,arguments);throw f&&(u.operator=f),new Y(r,u,fe.includeStack?this.assert:z(this,"ssfi"))}}get _obj(){return z(this,"object")}set _obj(t){z(this,"object",t)}},x(wt,"Assertion"),wt);function $t(){return fe.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}x($t,"isProxyEnabled");function hi(e,t,r){r=r===void 0?function(){}:r,Object.defineProperty(e,t,{get:x(function n(){!$t()&&!z(this,"lockSsfi")&&z(this,"ssfi",n);let o=r.call(this);if(o!==void 0)return o;let a=new b;return Te(this,a),a},"propertyGetter"),configurable:!0})}x(hi,"addProperty");var um=Object.getOwnPropertyDescriptor(function(){},"length");function Ft(e,t,r){return um.configurable&&Object.defineProperty(e,"length",{get:x(function(){throw Error(r?"Invalid Chai property: "+t+'.length. Due to a compatibility issue, "length" cannot directly follow "'+t+'". Use "'+t+'.lengthOf" instead.':"Invalid Chai property: "+t+'.length. See docs for proper usage of "'+t+'".')},"get")}),e}x(Ft,"addLengthGuard");function vl(e){let t=Object.getOwnPropertyNames(e);function r(o){t.indexOf(o)===-1&&t.push(o)}x(r,"addProperty");let n=Object.getPrototypeOf(e);for(;n!==null;)Object.getOwnPropertyNames(n).forEach(r),n=Object.getPrototypeOf(n);return t}x(vl,"getProperties");var yl=["__flags","__methods","_obj","assert"];function xt(e,t){return $t()?new Proxy(e,{get:x(function r(n,o){if(typeof o=="string"&&fe.proxyExcludedKeys.indexOf(o)===-1&&!Reflect.has(n,o)){if(t)throw Error("Invalid Chai property: "+t+"."+o+'. See docs for proper usage of "'+t+'".');let a=null,i=4;throw vl(n).forEach(function(s){if(!Object.prototype.hasOwnProperty(s)&&yl.indexOf(s)===-1){let l=gl(o,s,i);l<i&&(a=s,i=l)}}),Error(a!==null?"Invalid Chai property: "+o+'. Did you mean "'+a+'"?':"Invalid Chai property: "+o)}return yl.indexOf(o)===-1&&!z(n,"lockSsfi")&&z(n,"ssfi",r),Reflect.get(n,o)},"proxyGetter")}):e}x(xt,"proxify");function gl(e,t,r){if(Math.abs(e.length-t.length)>=r)return r;let n=[];for(let o=0;o<=e.length;o++)n[o]=Array(t.length+1).fill(0),n[o][0]=o;for(let o=0;o<t.length;o++)n[0][o]=o;for(let o=1;o<=e.length;o++){let a=e.charCodeAt(o-1);for(let i=1;i<=t.length;i++){if(Math.abs(o-i)>=r){n[o][i]=r;continue}n[o][i]=Math.min(n[o-1][i]+1,n[o][i-1]+1,n[o-1][i-1]+(a===t.charCodeAt(i-1)?0:1))}}return n[e.length][t.length]}x(gl,"stringDistanceCapped");function bi(e,t,r){let n=x(function(){z(this,"lockSsfi")||z(this,"ssfi",n);let o=r.apply(this,arguments);if(o!==void 0)return o;let a=new b;return Te(this,a),a},"methodWrapper");Ft(n,t,!1),e[t]=xt(n,t)}x(bi,"addMethod");function vi(e,t,r){let n=Object.getOwnPropertyDescriptor(e,t),o=x(function(){},"_super");n&&typeof n.get=="function"&&(o=n.get),Object.defineProperty(e,t,{get:x(function a(){!$t()&&!z(this,"lockSsfi")&&z(this,"ssfi",a);let i=z(this,"lockSsfi");z(this,"lockSsfi",!0);let s=r(o).call(this);if(z(this,"lockSsfi",i),s!==void 0)return s;let l=new b;return Te(this,l),l},"overwritingPropertyGetter"),configurable:!0})}x(vi,"overwriteProperty");function yi(e,t,r){let n=e[t],o=x(function(){throw new Error(t+" is not a function")},"_super");n&&typeof n=="function"&&(o=n);let a=x(function(){z(this,"lockSsfi")||z(this,"ssfi",a);let i=z(this,"lockSsfi");z(this,"lockSsfi",!0);let s=r(o).apply(this,arguments);if(z(this,"lockSsfi",i),s!==void 0)return s;let l=new b;return Te(this,l),l},"overwritingMethodWrapper");Ft(a,t,!1),e[t]=xt(a,t)}x(yi,"overwriteMethod");var cm=typeof Object.setPrototypeOf=="function",Rl=x(function(){},"testFn"),dm=Object.getOwnPropertyNames(Rl).filter(function(e){let t=Object.getOwnPropertyDescriptor(Rl,e);return typeof t!="object"?!0:!t.configurable}),fm=Function.prototype.call,pm=Function.prototype.apply;function gi(e,t,r,n){typeof n!="function"&&(n=x(function(){},"chainingBehavior"));let o={method:r,chainingBehavior:n};e.__methods||(e.__methods={}),e.__methods[t]=o,Object.defineProperty(e,t,{get:x(function(){o.chainingBehavior.call(this);let i=x(function(){z(this,"lockSsfi")||z(this,"ssfi",i);let s=o.method.apply(this,arguments);if(s!==void 0)return s;let l=new b;return Te(this,l),l},"chainableMethodWrapper");if(Ft(i,t,!0),cm){let s=Object.create(this);s.call=fm,s.apply=pm,Object.setPrototypeOf(i,s)}else Object.getOwnPropertyNames(e).forEach(function(l){if(dm.indexOf(l)!==-1)return;let u=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(i,l,u)});return Te(this,i),xt(i)},"chainableMethodGetter"),configurable:!0})}x(gi,"addChainableMethod");function Ri(e,t,r,n){let o=e.__methods[t],a=o.chainingBehavior;o.chainingBehavior=x(function(){let l=n(a).call(this);if(l!==void 0)return l;let u=new b;return Te(this,u),u},"overwritingChainableMethodGetter");let i=o.method;o.method=x(function(){let l=r(i).apply(this,arguments);if(l!==void 0)return l;let u=new b;return Te(this,u),u},"overwritingChainableMethodWrapper")}x(Ri,"overwriteChainableMethod");function ra(e,t){return G(e)<G(t)?-1:1}x(ra,"compareByInspect");function wi(e){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}x(wi,"getOwnEnumerablePropertySymbols");function Ei(e){return Object.keys(e).concat(wi(e))}x(Ei,"getOwnEnumerableProperties");var na=Number.isNaN;function wl(e){let t=ee(e);return["Array","Object","Function"].indexOf(t)!==-1}x(wl,"isObjectType");function Ci(e,t){let r=z(e,"operator"),n=z(e,"negate"),o=t[3],a=n?t[2]:t[1];if(r)return r;if(typeof a=="function"&&(a=a()),a=a||"",!a||/\shave\s/.test(a))return;let i=wl(o);return/\snot\s/.test(a)?i?"notDeepStrictEqual":"notStrictEqual":i?"deepStrictEqual":"strictEqual"}x(Ci,"getOperator");function oa(e){return e.name}x(oa,"getName");function aa(e){return Object.prototype.toString.call(e)==="[object RegExp]"}x(aa,"isRegExp");function le(e){return["Number","BigInt"].includes(ee(e))}x(le,"isNumeric");var{flag:w}=Yo;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(e){b.addProperty(e)}),b.addProperty("not",function(){w(this,"negate",!0)}),b.addProperty("deep",function(){w(this,"deep",!0)}),b.addProperty("nested",function(){w(this,"nested",!0)}),b.addProperty("own",function(){w(this,"own",!0)}),b.addProperty("ordered",function(){w(this,"ordered",!0)}),b.addProperty("any",function(){w(this,"any",!0),w(this,"all",!1)}),b.addProperty("all",function(){w(this,"all",!0),w(this,"any",!1)});var El={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function xi(e,t){t&&w(this,"message",t),e=e.toLowerCase();let r=w(this,"object"),n=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ";const o=ee(r).toLowerCase();El.function.includes(e)?this.assert(El[e].includes(o),"expected #{this} to be "+n+e,"expected #{this} not to be "+n+e):this.assert(e===o,"expected #{this} to be "+n+e,"expected #{this} not to be "+n+e)}x(xi,"an"),b.addChainableMethod("an",xi),b.addChainableMethod("a",xi);function Cl(e,t){return na(e)&&na(t)||e===t}x(Cl,"SameValueZero");function Ut(){w(this,"contains",!0)}x(Ut,"includeChainingBehavior");function zt(e,t){t&&w(this,"message",t);let r=w(this,"object"),n=ee(r).toLowerCase(),o=w(this,"message"),a=w(this,"negate"),i=w(this,"ssfi"),s=w(this,"deep"),l=s?"deep ":"",u=s?w(this,"eql"):Cl;o=o?o+": ":"";let f=!1;switch(n){case"string":f=r.indexOf(e)!==-1;break;case"weakset":if(s)throw new Y(o+"unable to use .deep.include with WeakSet",void 0,i);f=r.has(e);break;case"map":r.forEach(function(d){f=f||u(d,e)});break;case"set":s?r.forEach(function(d){f=f||u(d,e)}):f=r.has(e);break;case"array":s?f=r.some(function(d){return u(d,e)}):f=r.indexOf(e)!==-1;break;default:{if(e!==Object(e))throw new Y(o+"the given combination of arguments ("+n+" and "+ee(e).toLowerCase()+") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a "+ee(e).toLowerCase(),void 0,i);let d=Object.keys(e),c=null,h=0;if(d.forEach(function(v){let R=new b(r);if(Te(this,R,!0),w(R,"lockSsfi",!0),!a||d.length===1){R.property(v,e[v]);return}try{R.property(v,e[v])}catch(S){if(!we.compatibleConstructor(S,Y))throw S;c===null&&(c=S),h++}},this),a&&d.length>1&&h===d.length)throw c;return}}this.assert(f,"expected #{this} to "+l+"include "+G(e),"expected #{this} to not "+l+"include "+G(e))}x(zt,"include"),b.addChainableMethod("include",zt,Ut),b.addChainableMethod("contain",zt,Ut),b.addChainableMethod("contains",zt,Ut),b.addChainableMethod("includes",zt,Ut),b.addProperty("ok",function(){this.assert(w(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")}),b.addProperty("true",function(){this.assert(w(this,"object")===!0,"expected #{this} to be true","expected #{this} to be false",!w(this,"negate"))}),b.addProperty("numeric",function(){const e=w(this,"object");this.assert(["Number","BigInt"].includes(ee(e)),"expected #{this} to be numeric","expected #{this} to not be numeric",!w(this,"negate"))}),b.addProperty("callable",function(){const e=w(this,"object"),t=w(this,"ssfi"),r=w(this,"message"),n=r?`${r}: `:"",o=w(this,"negate"),a=o?`${n}expected ${G(e)} not to be a callable function`:`${n}expected ${G(e)} to be a callable function`,i=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(ee(e));if(i&&o||!i&&!o)throw new Y(a,void 0,t)}),b.addProperty("false",function(){this.assert(w(this,"object")===!1,"expected #{this} to be false","expected #{this} to be true",!!w(this,"negate"))}),b.addProperty("null",function(){this.assert(w(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null")}),b.addProperty("undefined",function(){this.assert(w(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined")}),b.addProperty("NaN",function(){this.assert(na(w(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")});function qi(){let e=w(this,"object");this.assert(e!=null,"expected #{this} to exist","expected #{this} to not exist")}x(qi,"assertExist"),b.addProperty("exist",qi),b.addProperty("exists",qi),b.addProperty("empty",function(){let e=w(this,"object"),t=w(this,"ssfi"),r=w(this,"message"),n;switch(r=r?r+": ":"",ee(e).toLowerCase()){case"array":case"string":n=e.length;break;case"map":case"set":n=e.size;break;case"weakmap":case"weakset":throw new Y(r+".empty was passed a weak collection",void 0,t);case"function":{const o=r+".empty was passed a function "+oa(e);throw new Y(o.trim(),void 0,t)}default:if(e!==Object(e))throw new Y(r+".empty was passed non-string primitive "+G(e),void 0,t);n=Object.keys(e).length}this.assert(n===0,"expected #{this} to be empty","expected #{this} not to be empty")});function _i(){let e=w(this,"object"),t=ee(e);this.assert(t==="Arguments","expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments")}x(_i,"checkArguments"),b.addProperty("arguments",_i),b.addProperty("Arguments",_i);function ia(e,t){t&&w(this,"message",t);let r=w(this,"object");if(w(this,"deep")){let n=w(this,"lockSsfi");w(this,"lockSsfi",!0),this.eql(e),w(this,"lockSsfi",n)}else this.assert(e===r,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0)}x(ia,"assertEqual"),b.addMethod("equal",ia),b.addMethod("equals",ia),b.addMethod("eq",ia);function Pi(e,t){t&&w(this,"message",t);let r=w(this,"eql");this.assert(r(e,w(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0)}x(Pi,"assertEql"),b.addMethod("eql",Pi),b.addMethod("eqls",Pi);function sa(e,t){t&&w(this,"message",t);let r=w(this,"object"),n=w(this,"doLength"),o=w(this,"message"),a=o?o+": ":"",i=w(this,"ssfi"),s=ee(r).toLowerCase(),l=ee(e).toLowerCase();if(n&&s!=="map"&&s!=="set"&&new b(r,o,i,!0).to.have.property("length"),!n&&s==="date"&&l!=="date")throw new Y(a+"the argument to above must be a date",void 0,i);if(!le(e)&&(n||le(r)))throw new Y(a+"the argument to above must be a number",void 0,i);if(!n&&s!=="date"&&!le(r)){let u=s==="string"?"'"+r+"'":r;throw new Y(a+"expected "+u+" to be a number or a date",void 0,i)}if(n){let u="length",f;s==="map"||s==="set"?(u="size",f=r.size):f=r.length,this.assert(f>e,"expected #{this} to have a "+u+" above #{exp} but got #{act}","expected #{this} to not have a "+u+" above #{exp}",e,f)}else this.assert(r>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e)}x(sa,"assertAbove"),b.addMethod("above",sa),b.addMethod("gt",sa),b.addMethod("greaterThan",sa);function la(e,t){t&&w(this,"message",t);let r=w(this,"object"),n=w(this,"doLength"),o=w(this,"message"),a=o?o+": ":"",i=w(this,"ssfi"),s=ee(r).toLowerCase(),l=ee(e).toLowerCase(),u,f=!0;if(n&&s!=="map"&&s!=="set"&&new b(r,o,i,!0).to.have.property("length"),!n&&s==="date"&&l!=="date")u=a+"the argument to least must be a date";else if(!le(e)&&(n||le(r)))u=a+"the argument to least must be a number";else if(!n&&s!=="date"&&!le(r)){let d=s==="string"?"'"+r+"'":r;u=a+"expected "+d+" to be a number or a date"}else f=!1;if(f)throw new Y(u,void 0,i);if(n){let d="length",c;s==="map"||s==="set"?(d="size",c=r.size):c=r.length,this.assert(c>=e,"expected #{this} to have a "+d+" at least #{exp} but got #{act}","expected #{this} to have a "+d+" below #{exp}",e,c)}else this.assert(r>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e)}x(la,"assertLeast"),b.addMethod("least",la),b.addMethod("gte",la),b.addMethod("greaterThanOrEqual",la);function ua(e,t){t&&w(this,"message",t);let r=w(this,"object"),n=w(this,"doLength"),o=w(this,"message"),a=o?o+": ":"",i=w(this,"ssfi"),s=ee(r).toLowerCase(),l=ee(e).toLowerCase(),u,f=!0;if(n&&s!=="map"&&s!=="set"&&new b(r,o,i,!0).to.have.property("length"),!n&&s==="date"&&l!=="date")u=a+"the argument to below must be a date";else if(!le(e)&&(n||le(r)))u=a+"the argument to below must be a number";else if(!n&&s!=="date"&&!le(r)){let d=s==="string"?"'"+r+"'":r;u=a+"expected "+d+" to be a number or a date"}else f=!1;if(f)throw new Y(u,void 0,i);if(n){let d="length",c;s==="map"||s==="set"?(d="size",c=r.size):c=r.length,this.assert(c<e,"expected #{this} to have a "+d+" below #{exp} but got #{act}","expected #{this} to not have a "+d+" below #{exp}",e,c)}else this.assert(r<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e)}x(ua,"assertBelow"),b.addMethod("below",ua),b.addMethod("lt",ua),b.addMethod("lessThan",ua);function ca(e,t){t&&w(this,"message",t);let r=w(this,"object"),n=w(this,"doLength"),o=w(this,"message"),a=o?o+": ":"",i=w(this,"ssfi"),s=ee(r).toLowerCase(),l=ee(e).toLowerCase(),u,f=!0;if(n&&s!=="map"&&s!=="set"&&new b(r,o,i,!0).to.have.property("length"),!n&&s==="date"&&l!=="date")u=a+"the argument to most must be a date";else if(!le(e)&&(n||le(r)))u=a+"the argument to most must be a number";else if(!n&&s!=="date"&&!le(r)){let d=s==="string"?"'"+r+"'":r;u=a+"expected "+d+" to be a number or a date"}else f=!1;if(f)throw new Y(u,void 0,i);if(n){let d="length",c;s==="map"||s==="set"?(d="size",c=r.size):c=r.length,this.assert(c<=e,"expected #{this} to have a "+d+" at most #{exp} but got #{act}","expected #{this} to have a "+d+" above #{exp}",e,c)}else this.assert(r<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e)}x(ca,"assertMost"),b.addMethod("most",ca),b.addMethod("lte",ca),b.addMethod("lessThanOrEqual",ca),b.addMethod("within",function(e,t,r){r&&w(this,"message",r);let n=w(this,"object"),o=w(this,"doLength"),a=w(this,"message"),i=a?a+": ":"",s=w(this,"ssfi"),l=ee(n).toLowerCase(),u=ee(e).toLowerCase(),f=ee(t).toLowerCase(),d,c=!0,h=u==="date"&&f==="date"?e.toISOString()+".."+t.toISOString():e+".."+t;if(o&&l!=="map"&&l!=="set"&&new b(n,a,s,!0).to.have.property("length"),!o&&l==="date"&&(u!=="date"||f!=="date"))d=i+"the arguments to within must be dates";else if((!le(e)||!le(t))&&(o||le(n)))d=i+"the arguments to within must be numbers";else if(!o&&l!=="date"&&!le(n)){let v=l==="string"?"'"+n+"'":n;d=i+"expected "+v+" to be a number or a date"}else c=!1;if(c)throw new Y(d,void 0,s);if(o){let v="length",R;l==="map"||l==="set"?(v="size",R=n.size):R=n.length,this.assert(R>=e&&R<=t,"expected #{this} to have a "+v+" within "+h,"expected #{this} to not have a "+v+" within "+h)}else this.assert(n>=e&&n<=t,"expected #{this} to be within "+h,"expected #{this} to not be within "+h)});function Ti(e,t){t&&w(this,"message",t);let r=w(this,"object"),n=w(this,"ssfi"),o=w(this,"message"),a;try{a=r instanceof e}catch(s){throw s instanceof TypeError?(o=o?o+": ":"",new Y(o+"The instanceof assertion needs a constructor but "+ee(e)+" was given.",void 0,n)):s}let i=oa(e);i==null&&(i="an unnamed constructor"),this.assert(a,"expected #{this} to be an instance of "+i,"expected #{this} to not be an instance of "+i)}x(Ti,"assertInstanceOf"),b.addMethod("instanceof",Ti),b.addMethod("instanceOf",Ti);function Si(e,t,r){r&&w(this,"message",r);let n=w(this,"nested"),o=w(this,"own"),a=w(this,"message"),i=w(this,"object"),s=w(this,"ssfi"),l=typeof e;if(a=a?a+": ":"",n){if(l!=="string")throw new Y(a+"the argument to property must be a string when using nested syntax",void 0,s)}else if(l!=="string"&&l!=="number"&&l!=="symbol")throw new Y(a+"the argument to property must be a string, number, or symbol",void 0,s);if(n&&o)throw new Y(a+'The "nested" and "own" flags cannot be combined.',void 0,s);if(i==null)throw new Y(a+"Target cannot be null or undefined.",void 0,s);let u=w(this,"deep"),f=w(this,"negate"),d=n?mi(i,e):null,c=n?d.value:i[e],h=u?w(this,"eql"):(S,p)=>S===p,v="";u&&(v+="deep "),o&&(v+="own "),n&&(v+="nested "),v+="property ";let R;o?R=Object.prototype.hasOwnProperty.call(i,e):n?R=d.exists:R=ta(i,e),(!f||arguments.length===1)&&this.assert(R,"expected #{this} to have "+v+G(e),"expected #{this} to not have "+v+G(e)),arguments.length>1&&this.assert(R&&h(t,c),"expected #{this} to have "+v+G(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+v+G(e)+" of #{act}",t,c),w(this,"object",c)}x(Si,"assertProperty"),b.addMethod("property",Si);function Oi(e,t,r){w(this,"own",!0),Si.apply(this,arguments)}x(Oi,"assertOwnProperty"),b.addMethod("ownProperty",Oi),b.addMethod("haveOwnProperty",Oi);function Ai(e,t,r){typeof t=="string"&&(r=t,t=null),r&&w(this,"message",r);let n=w(this,"object"),o=Object.getOwnPropertyDescriptor(Object(n),e),a=w(this,"eql");o&&t?this.assert(a(t,o),"expected the own property descriptor for "+G(e)+" on #{this} to match "+G(t)+", got "+G(o),"expected the own property descriptor for "+G(e)+" on #{this} to not match "+G(t),t,o,!0):this.assert(o,"expected #{this} to have an own property descriptor for "+G(e),"expected #{this} to not have an own property descriptor for "+G(e)),w(this,"object",o)}x(Ai,"assertOwnPropertyDescriptor"),b.addMethod("ownPropertyDescriptor",Ai),b.addMethod("haveOwnPropertyDescriptor",Ai);function Mi(){w(this,"doLength",!0)}x(Mi,"assertLengthChain");function Ii(e,t){t&&w(this,"message",t);let r=w(this,"object"),n=ee(r).toLowerCase(),o=w(this,"message"),a=w(this,"ssfi"),i="length",s;switch(n){case"map":case"set":i="size",s=r.size;break;default:new b(r,o,a,!0).to.have.property("length"),s=r.length}this.assert(s==e,"expected #{this} to have a "+i+" of #{exp} but got #{act}","expected #{this} to not have a "+i+" of #{act}",e,s)}x(Ii,"assertLength"),b.addChainableMethod("length",Ii,Mi),b.addChainableMethod("lengthOf",Ii,Mi);function Ni(e,t){t&&w(this,"message",t);let r=w(this,"object");this.assert(e.exec(r),"expected #{this} to match "+e,"expected #{this} not to match "+e)}x(Ni,"assertMatch"),b.addMethod("match",Ni),b.addMethod("matches",Ni),b.addMethod("string",function(e,t){t&&w(this,"message",t);let r=w(this,"object"),n=w(this,"message"),o=w(this,"ssfi");new b(r,n,o,!0).is.a("string"),this.assert(~r.indexOf(e),"expected #{this} to contain "+G(e),"expected #{this} to not contain "+G(e))});function ki(e){let t=w(this,"object"),r=ee(t),n=ee(e),o=w(this,"ssfi"),a=w(this,"deep"),i,s="",l,u=!0,f=w(this,"message");f=f?f+": ":"";let d=f+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if(r==="Map"||r==="Set")s=a?"deeply ":"",l=[],t.forEach(function(p,q){l.push(q)}),n!=="Array"&&(e=Array.prototype.slice.call(arguments));else{switch(l=Ei(t),n){case"Array":if(arguments.length>1)throw new Y(d,void 0,o);break;case"Object":if(arguments.length>1)throw new Y(d,void 0,o);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map(function(p){return typeof p=="symbol"?p:String(p)})}if(!e.length)throw new Y(f+"keys required",void 0,o);let c=e.length,h=w(this,"any"),v=w(this,"all"),R=e,S=a?w(this,"eql"):(p,q)=>p===q;if(!h&&!v&&(v=!0),h&&(u=R.some(function(p){return l.some(function(q){return S(p,q)})})),v&&(u=R.every(function(p){return l.some(function(q){return S(p,q)})}),w(this,"contains")||(u=u&&e.length==l.length)),c>1){e=e.map(function(q){return G(q)});let p=e.pop();v&&(i=e.join(", ")+", and "+p),h&&(i=e.join(", ")+", or "+p)}else i=G(e[0]);i=(c>1?"keys ":"key ")+i,i=(w(this,"contains")?"contain ":"have ")+i,this.assert(u,"expected #{this} to "+s+i,"expected #{this} to not "+s+i,R.slice(0).sort(ra),l.sort(ra),!0)}x(ki,"assertKeys"),b.addMethod("keys",ki),b.addMethod("key",ki);function da(e,t,r){r&&w(this,"message",r);let n=w(this,"object"),o=w(this,"ssfi"),a=w(this,"message"),i=w(this,"negate")||!1;new b(n,a,o,!0).is.a("function"),(aa(e)||typeof e=="string")&&(t=e,e=null);let s,l=!1;try{n()}catch(h){l=!0,s=h}let u=e===void 0&&t===void 0,f=!!(e&&t),d=!1,c=!1;if(u||!u&&!i){let h="an error";e instanceof Error?h="#{exp}":e&&(h=we.getConstructorName(e));let v=s;if(s instanceof Error)v=s.toString();else if(typeof s=="string")v=s;else if(s&&(typeof s=="object"||typeof s=="function"))try{v=we.getConstructorName(s)}catch{}this.assert(l,"expected #{this} to throw "+h,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),v)}if(e&&s&&(e instanceof Error&&we.compatibleInstance(s,e)===i&&(f&&i?d=!0:this.assert(i,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(s&&!i?" but #{act} was thrown":""),e.toString(),s.toString())),we.compatibleConstructor(s,e)===i&&(f&&i?d=!0:this.assert(i,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(s?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&we.getConstructorName(e),s instanceof Error?s.toString():s&&we.getConstructorName(s)))),s&&t!==void 0&&t!==null){let h="including";aa(t)&&(h="matching"),we.compatibleMessage(s,t)===i&&(f&&i?c=!0:this.assert(i,"expected #{this} to throw error "+h+" #{exp} but got #{act}","expected #{this} to throw error not "+h+" #{exp}",t,we.getMessage(s)))}d&&c&&this.assert(i,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(s?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&we.getConstructorName(e),s instanceof Error?s.toString():s&&we.getConstructorName(s)),w(this,"object",s)}x(da,"assertThrows"),b.addMethod("throw",da),b.addMethod("throws",da),b.addMethod("Throw",da);function Di(e,t){t&&w(this,"message",t);let r=w(this,"object"),n=w(this,"itself"),o=typeof r=="function"&&!n?r.prototype[e]:r[e];this.assert(typeof o=="function","expected #{this} to respond to "+G(e),"expected #{this} to not respond to "+G(e))}x(Di,"respondTo"),b.addMethod("respondTo",Di),b.addMethod("respondsTo",Di),b.addProperty("itself",function(){w(this,"itself",!0)});function ji(e,t){t&&w(this,"message",t);let r=w(this,"object"),n=e(r);this.assert(n,"expected #{this} to satisfy "+ut(e),"expected #{this} to not satisfy"+ut(e),!w(this,"negate"),n)}x(ji,"satisfy"),b.addMethod("satisfy",ji),b.addMethod("satisfies",ji);function Bi(e,t,r){r&&w(this,"message",r);let n=w(this,"object"),o=w(this,"message"),a=w(this,"ssfi");new b(n,o,a,!0).is.numeric;let i="A `delta` value is required for `closeTo`";if(t==null)throw new Y(o?`${o}: ${i}`:i,void 0,a);if(new b(t,o,a,!0).is.numeric,i="A `expected` value is required for `closeTo`",e==null)throw new Y(o?`${o}: ${i}`:i,void 0,a);new b(e,o,a,!0).is.numeric;const s=x(u=>u<0n?-u:u,"abs"),l=x(u=>parseFloat(parseFloat(u).toPrecision(12)),"strip");this.assert(l(s(n-e))<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t)}x(Bi,"closeTo"),b.addMethod("closeTo",Bi),b.addMethod("approximately",Bi);function xl(e,t,r,n,o){let a=Array.from(t),i=Array.from(e);if(!n){if(i.length!==a.length)return!1;a=a.slice()}return i.every(function(s,l){if(o)return r?r(s,a[l]):s===a[l];if(!r){let u=a.indexOf(s);return u===-1?!1:(n||a.splice(u,1),!0)}return a.some(function(u,f){return r(s,u)?(n||a.splice(f,1),!0):!1})})}x(xl,"isSubsetOf"),b.addMethod("members",function(e,t){t&&w(this,"message",t);let r=w(this,"object"),n=w(this,"message"),o=w(this,"ssfi");new b(r,n,o,!0).to.be.iterable,new b(e,n,o,!0).to.be.iterable;let a=w(this,"contains"),i=w(this,"ordered"),s,l,u;a?(s=i?"an ordered superset":"a superset",l="expected #{this} to be "+s+" of #{exp}",u="expected #{this} to not be "+s+" of #{exp}"):(s=i?"ordered members":"members",l="expected #{this} to have the same "+s+" as #{exp}",u="expected #{this} to not have the same "+s+" as #{exp}");let f=w(this,"deep")?w(this,"eql"):void 0;this.assert(xl(e,r,f,a,i),l,u,e,r,!0)}),b.addProperty("iterable",function(e){e&&w(this,"message",e);let t=w(this,"object");this.assert(t!=null&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t)});function ql(e,t){t&&w(this,"message",t);let r=w(this,"object"),n=w(this,"message"),o=w(this,"ssfi"),a=w(this,"contains"),i=w(this,"deep"),s=w(this,"eql");new b(e,n,o,!0).to.be.an("array"),a?this.assert(e.some(function(l){return r.indexOf(l)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,r):i?this.assert(e.some(function(l){return s(r,l)}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",e,r):this.assert(e.indexOf(r)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",e,r)}x(ql,"oneOf"),b.addMethod("oneOf",ql);function Li(e,t,r){r&&w(this,"message",r);let n=w(this,"object"),o=w(this,"message"),a=w(this,"ssfi");new b(n,o,a,!0).is.a("function");let i;t?(new b(e,o,a,!0).to.have.property(t),i=e[t]):(new b(e,o,a,!0).is.a("function"),i=e()),n();let s=t==null?e():e[t],l=t==null?i:"."+t;w(this,"deltaMsgObj",l),w(this,"initialDeltaValue",i),w(this,"finalDeltaValue",s),w(this,"deltaBehavior","change"),w(this,"realDelta",s!==i),this.assert(i!==s,"expected "+l+" to change","expected "+l+" to not change")}x(Li,"assertChanges"),b.addMethod("change",Li),b.addMethod("changes",Li);function $i(e,t,r){r&&w(this,"message",r);let n=w(this,"object"),o=w(this,"message"),a=w(this,"ssfi");new b(n,o,a,!0).is.a("function");let i;t?(new b(e,o,a,!0).to.have.property(t),i=e[t]):(new b(e,o,a,!0).is.a("function"),i=e()),new b(i,o,a,!0).is.a("number"),n();let s=t==null?e():e[t],l=t==null?i:"."+t;w(this,"deltaMsgObj",l),w(this,"initialDeltaValue",i),w(this,"finalDeltaValue",s),w(this,"deltaBehavior","increase"),w(this,"realDelta",s-i),this.assert(s-i>0,"expected "+l+" to increase","expected "+l+" to not increase")}x($i,"assertIncreases"),b.addMethod("increase",$i),b.addMethod("increases",$i);function Fi(e,t,r){r&&w(this,"message",r);let n=w(this,"object"),o=w(this,"message"),a=w(this,"ssfi");new b(n,o,a,!0).is.a("function");let i;t?(new b(e,o,a,!0).to.have.property(t),i=e[t]):(new b(e,o,a,!0).is.a("function"),i=e()),new b(i,o,a,!0).is.a("number"),n();let s=t==null?e():e[t],l=t==null?i:"."+t;w(this,"deltaMsgObj",l),w(this,"initialDeltaValue",i),w(this,"finalDeltaValue",s),w(this,"deltaBehavior","decrease"),w(this,"realDelta",i-s),this.assert(s-i<0,"expected "+l+" to decrease","expected "+l+" to not decrease")}x(Fi,"assertDecreases"),b.addMethod("decrease",Fi),b.addMethod("decreases",Fi);function _l(e,t){t&&w(this,"message",t);let r=w(this,"deltaMsgObj"),n=w(this,"initialDeltaValue"),o=w(this,"finalDeltaValue"),a=w(this,"deltaBehavior"),i=w(this,"realDelta"),s;a==="change"?s=Math.abs(o-n)===Math.abs(e):s=i===Math.abs(e),this.assert(s,"expected "+r+" to "+a+" by "+e,"expected "+r+" to not "+a+" by "+e)}x(_l,"assertDelta"),b.addMethod("by",_l),b.addProperty("extensible",function(){let e=w(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible")}),b.addProperty("sealed",function(){let e=w(this,"object"),t=e===Object(e)?Object.isSealed(e):!0;this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed")}),b.addProperty("frozen",function(){let e=w(this,"object"),t=e===Object(e)?Object.isFrozen(e):!0;this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen")}),b.addProperty("finite",function(e){let t=w(this,"object");this.assert(typeof t=="number"&&isFinite(t),"expected #{this} to be a finite number","expected #{this} to not be a finite number")});function fa(e,t){return e===t?!0:typeof t!=typeof e?!1:typeof e!="object"||e===null?e===t:t?Array.isArray(e)?Array.isArray(t)?e.every(function(r){return t.some(function(n){return fa(r,n)})}):!1:e instanceof Date?t instanceof Date?e.getTime()===t.getTime():!1:Object.keys(e).every(function(r){let n=e[r],o=t[r];return typeof n=="object"&&n!==null&&o!==null?fa(n,o):typeof n=="function"?n(o):o===n}):!1}x(fa,"compareSubset"),b.addMethod("containSubset",function(e){const t=z(this,"object"),r=fe.showDiff;this.assert(fa(e,t),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",e,t,r)});function Vt(e,t){return new b(e,t)}x(Vt,"expect"),Vt.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"expect.fail()",new Y(r,{actual:e,expected:t,operator:n},Vt.fail)};var Pl={};Va(Pl,{Should:()=>hm,should:()=>mm});function Ui(){function e(){return this instanceof String||this instanceof Number||this instanceof Boolean||typeof Symbol=="function"&&this instanceof Symbol||typeof BigInt=="function"&&this instanceof BigInt?new b(this.valueOf(),null,e):new b(this,null,e)}x(e,"shouldGetter");function t(n){Object.defineProperty(this,"should",{value:n,enumerable:!0,configurable:!0,writable:!0})}x(t,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:t,get:e,configurable:!0});let r={};return r.fail=function(n,o,a,i){throw arguments.length<2&&(a=n,n=void 0),a=a||"should.fail()",new Y(a,{actual:n,expected:o,operator:i},r.fail)},r.equal=function(n,o,a){new b(n,a).to.equal(o)},r.Throw=function(n,o,a,i){new b(n,i).to.Throw(o,a)},r.exist=function(n,o){new b(n,o).to.exist},r.not={},r.not.equal=function(n,o,a){new b(n,a).to.not.equal(o)},r.not.Throw=function(n,o,a,i){new b(n,i).to.not.Throw(o,a)},r.not.exist=function(n,o){new b(n,o).to.not.exist},r.throw=r.Throw,r.not.throw=r.not.Throw,r}x(Ui,"loadShould");var mm=Ui,hm=Ui;function m(e,t){new b(null,null,m,!0).assert(e,t,"[ negation message unavailable ]")}x(m,"assert"),m.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"assert.fail()",new Y(r,{actual:e,expected:t,operator:n},m.fail)},m.isOk=function(e,t){new b(e,t,m.isOk,!0).is.ok},m.isNotOk=function(e,t){new b(e,t,m.isNotOk,!0).is.not.ok},m.equal=function(e,t,r){let n=new b(e,r,m.equal,!0);n.assert(t==z(n,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,!0)},m.notEqual=function(e,t,r){let n=new b(e,r,m.notEqual,!0);n.assert(t!=z(n,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,!0)},m.strictEqual=function(e,t,r){new b(e,r,m.strictEqual,!0).to.equal(t)},m.notStrictEqual=function(e,t,r){new b(e,r,m.notStrictEqual,!0).to.not.equal(t)},m.deepEqual=m.deepStrictEqual=function(e,t,r){new b(e,r,m.deepEqual,!0).to.eql(t)},m.notDeepEqual=function(e,t,r){new b(e,r,m.notDeepEqual,!0).to.not.eql(t)},m.isAbove=function(e,t,r){new b(e,r,m.isAbove,!0).to.be.above(t)},m.isAtLeast=function(e,t,r){new b(e,r,m.isAtLeast,!0).to.be.least(t)},m.isBelow=function(e,t,r){new b(e,r,m.isBelow,!0).to.be.below(t)},m.isAtMost=function(e,t,r){new b(e,r,m.isAtMost,!0).to.be.most(t)},m.isTrue=function(e,t){new b(e,t,m.isTrue,!0).is.true},m.isNotTrue=function(e,t){new b(e,t,m.isNotTrue,!0).to.not.equal(!0)},m.isFalse=function(e,t){new b(e,t,m.isFalse,!0).is.false},m.isNotFalse=function(e,t){new b(e,t,m.isNotFalse,!0).to.not.equal(!1)},m.isNull=function(e,t){new b(e,t,m.isNull,!0).to.equal(null)},m.isNotNull=function(e,t){new b(e,t,m.isNotNull,!0).to.not.equal(null)},m.isNaN=function(e,t){new b(e,t,m.isNaN,!0).to.be.NaN},m.isNotNaN=function(e,t){new b(e,t,m.isNotNaN,!0).not.to.be.NaN},m.exists=function(e,t){new b(e,t,m.exists,!0).to.exist},m.notExists=function(e,t){new b(e,t,m.notExists,!0).to.not.exist},m.isUndefined=function(e,t){new b(e,t,m.isUndefined,!0).to.equal(void 0)},m.isDefined=function(e,t){new b(e,t,m.isDefined,!0).to.not.equal(void 0)},m.isCallable=function(e,t){new b(e,t,m.isCallable,!0).is.callable},m.isNotCallable=function(e,t){new b(e,t,m.isNotCallable,!0).is.not.callable},m.isObject=function(e,t){new b(e,t,m.isObject,!0).to.be.a("object")},m.isNotObject=function(e,t){new b(e,t,m.isNotObject,!0).to.not.be.a("object")},m.isArray=function(e,t){new b(e,t,m.isArray,!0).to.be.an("array")},m.isNotArray=function(e,t){new b(e,t,m.isNotArray,!0).to.not.be.an("array")},m.isString=function(e,t){new b(e,t,m.isString,!0).to.be.a("string")},m.isNotString=function(e,t){new b(e,t,m.isNotString,!0).to.not.be.a("string")},m.isNumber=function(e,t){new b(e,t,m.isNumber,!0).to.be.a("number")},m.isNotNumber=function(e,t){new b(e,t,m.isNotNumber,!0).to.not.be.a("number")},m.isNumeric=function(e,t){new b(e,t,m.isNumeric,!0).is.numeric},m.isNotNumeric=function(e,t){new b(e,t,m.isNotNumeric,!0).is.not.numeric},m.isFinite=function(e,t){new b(e,t,m.isFinite,!0).to.be.finite},m.isBoolean=function(e,t){new b(e,t,m.isBoolean,!0).to.be.a("boolean")},m.isNotBoolean=function(e,t){new b(e,t,m.isNotBoolean,!0).to.not.be.a("boolean")},m.typeOf=function(e,t,r){new b(e,r,m.typeOf,!0).to.be.a(t)},m.notTypeOf=function(e,t,r){new b(e,r,m.notTypeOf,!0).to.not.be.a(t)},m.instanceOf=function(e,t,r){new b(e,r,m.instanceOf,!0).to.be.instanceOf(t)},m.notInstanceOf=function(e,t,r){new b(e,r,m.notInstanceOf,!0).to.not.be.instanceOf(t)},m.include=function(e,t,r){new b(e,r,m.include,!0).include(t)},m.notInclude=function(e,t,r){new b(e,r,m.notInclude,!0).not.include(t)},m.deepInclude=function(e,t,r){new b(e,r,m.deepInclude,!0).deep.include(t)},m.notDeepInclude=function(e,t,r){new b(e,r,m.notDeepInclude,!0).not.deep.include(t)},m.nestedInclude=function(e,t,r){new b(e,r,m.nestedInclude,!0).nested.include(t)},m.notNestedInclude=function(e,t,r){new b(e,r,m.notNestedInclude,!0).not.nested.include(t)},m.deepNestedInclude=function(e,t,r){new b(e,r,m.deepNestedInclude,!0).deep.nested.include(t)},m.notDeepNestedInclude=function(e,t,r){new b(e,r,m.notDeepNestedInclude,!0).not.deep.nested.include(t)},m.ownInclude=function(e,t,r){new b(e,r,m.ownInclude,!0).own.include(t)},m.notOwnInclude=function(e,t,r){new b(e,r,m.notOwnInclude,!0).not.own.include(t)},m.deepOwnInclude=function(e,t,r){new b(e,r,m.deepOwnInclude,!0).deep.own.include(t)},m.notDeepOwnInclude=function(e,t,r){new b(e,r,m.notDeepOwnInclude,!0).not.deep.own.include(t)},m.match=function(e,t,r){new b(e,r,m.match,!0).to.match(t)},m.notMatch=function(e,t,r){new b(e,r,m.notMatch,!0).to.not.match(t)},m.property=function(e,t,r){new b(e,r,m.property,!0).to.have.property(t)},m.notProperty=function(e,t,r){new b(e,r,m.notProperty,!0).to.not.have.property(t)},m.propertyVal=function(e,t,r,n){new b(e,n,m.propertyVal,!0).to.have.property(t,r)},m.notPropertyVal=function(e,t,r,n){new b(e,n,m.notPropertyVal,!0).to.not.have.property(t,r)},m.deepPropertyVal=function(e,t,r,n){new b(e,n,m.deepPropertyVal,!0).to.have.deep.property(t,r)},m.notDeepPropertyVal=function(e,t,r,n){new b(e,n,m.notDeepPropertyVal,!0).to.not.have.deep.property(t,r)},m.ownProperty=function(e,t,r){new b(e,r,m.ownProperty,!0).to.have.own.property(t)},m.notOwnProperty=function(e,t,r){new b(e,r,m.notOwnProperty,!0).to.not.have.own.property(t)},m.ownPropertyVal=function(e,t,r,n){new b(e,n,m.ownPropertyVal,!0).to.have.own.property(t,r)},m.notOwnPropertyVal=function(e,t,r,n){new b(e,n,m.notOwnPropertyVal,!0).to.not.have.own.property(t,r)},m.deepOwnPropertyVal=function(e,t,r,n){new b(e,n,m.deepOwnPropertyVal,!0).to.have.deep.own.property(t,r)},m.notDeepOwnPropertyVal=function(e,t,r,n){new b(e,n,m.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,r)},m.nestedProperty=function(e,t,r){new b(e,r,m.nestedProperty,!0).to.have.nested.property(t)},m.notNestedProperty=function(e,t,r){new b(e,r,m.notNestedProperty,!0).to.not.have.nested.property(t)},m.nestedPropertyVal=function(e,t,r,n){new b(e,n,m.nestedPropertyVal,!0).to.have.nested.property(t,r)},m.notNestedPropertyVal=function(e,t,r,n){new b(e,n,m.notNestedPropertyVal,!0).to.not.have.nested.property(t,r)},m.deepNestedPropertyVal=function(e,t,r,n){new b(e,n,m.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,r)},m.notDeepNestedPropertyVal=function(e,t,r,n){new b(e,n,m.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,r)},m.lengthOf=function(e,t,r){new b(e,r,m.lengthOf,!0).to.have.lengthOf(t)},m.hasAnyKeys=function(e,t,r){new b(e,r,m.hasAnyKeys,!0).to.have.any.keys(t)},m.hasAllKeys=function(e,t,r){new b(e,r,m.hasAllKeys,!0).to.have.all.keys(t)},m.containsAllKeys=function(e,t,r){new b(e,r,m.containsAllKeys,!0).to.contain.all.keys(t)},m.doesNotHaveAnyKeys=function(e,t,r){new b(e,r,m.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)},m.doesNotHaveAllKeys=function(e,t,r){new b(e,r,m.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)},m.hasAnyDeepKeys=function(e,t,r){new b(e,r,m.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)},m.hasAllDeepKeys=function(e,t,r){new b(e,r,m.hasAllDeepKeys,!0).to.have.all.deep.keys(t)},m.containsAllDeepKeys=function(e,t,r){new b(e,r,m.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)},m.doesNotHaveAnyDeepKeys=function(e,t,r){new b(e,r,m.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)},m.doesNotHaveAllDeepKeys=function(e,t,r){new b(e,r,m.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)},m.throws=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null);let o=new b(e,n,m.throws,!0).to.throw(t,r);return z(o,"object")},m.doesNotThrow=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null),new b(e,n,m.doesNotThrow,!0).to.not.throw(t,r)},m.operator=function(e,t,r,n){let o;switch(t){case"==":o=e==r;break;case"===":o=e===r;break;case">":o=e>r;break;case">=":o=e>=r;break;case"<":o=e<r;break;case"<=":o=e<=r;break;case"!=":o=e!=r;break;case"!==":o=e!==r;break;default:throw n=n&&n+": ",new Y(n+'Invalid operator "'+t+'"',void 0,m.operator)}let a=new b(o,n,m.operator,!0);a.assert(z(a,"object")===!0,"expected "+G(e)+" to be "+t+" "+G(r),"expected "+G(e)+" to not be "+t+" "+G(r))},m.closeTo=function(e,t,r,n){new b(e,n,m.closeTo,!0).to.be.closeTo(t,r)},m.approximately=function(e,t,r,n){new b(e,n,m.approximately,!0).to.be.approximately(t,r)},m.sameMembers=function(e,t,r){new b(e,r,m.sameMembers,!0).to.have.same.members(t)},m.notSameMembers=function(e,t,r){new b(e,r,m.notSameMembers,!0).to.not.have.same.members(t)},m.sameDeepMembers=function(e,t,r){new b(e,r,m.sameDeepMembers,!0).to.have.same.deep.members(t)},m.notSameDeepMembers=function(e,t,r){new b(e,r,m.notSameDeepMembers,!0).to.not.have.same.deep.members(t)},m.sameOrderedMembers=function(e,t,r){new b(e,r,m.sameOrderedMembers,!0).to.have.same.ordered.members(t)},m.notSameOrderedMembers=function(e,t,r){new b(e,r,m.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)},m.sameDeepOrderedMembers=function(e,t,r){new b(e,r,m.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)},m.notSameDeepOrderedMembers=function(e,t,r){new b(e,r,m.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)},m.includeMembers=function(e,t,r){new b(e,r,m.includeMembers,!0).to.include.members(t)},m.notIncludeMembers=function(e,t,r){new b(e,r,m.notIncludeMembers,!0).to.not.include.members(t)},m.includeDeepMembers=function(e,t,r){new b(e,r,m.includeDeepMembers,!0).to.include.deep.members(t)},m.notIncludeDeepMembers=function(e,t,r){new b(e,r,m.notIncludeDeepMembers,!0).to.not.include.deep.members(t)},m.includeOrderedMembers=function(e,t,r){new b(e,r,m.includeOrderedMembers,!0).to.include.ordered.members(t)},m.notIncludeOrderedMembers=function(e,t,r){new b(e,r,m.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)},m.includeDeepOrderedMembers=function(e,t,r){new b(e,r,m.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)},m.notIncludeDeepOrderedMembers=function(e,t,r){new b(e,r,m.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)},m.oneOf=function(e,t,r){new b(e,r,m.oneOf,!0).to.be.oneOf(t)},m.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${G(e)} to be an iterable`:`expected ${G(e)} to be an iterable`,new Y(t,void 0,m.isIterable)},m.changes=function(e,t,r,n){arguments.length===3&&typeof t=="function"&&(n=r,r=null),new b(e,n,m.changes,!0).to.change(t,r)},m.changesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let a=n;n=r,o=a}else arguments.length===3&&(n=r,r=null);new b(e,o,m.changesBy,!0).to.change(t,r).by(n)},m.doesNotChange=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new b(e,n,m.doesNotChange,!0).to.not.change(t,r)},m.changesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let a=n;n=r,o=a}else arguments.length===3&&(n=r,r=null);new b(e,o,m.changesButNotBy,!0).to.change(t,r).but.not.by(n)},m.increases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new b(e,n,m.increases,!0).to.increase(t,r)},m.increasesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let a=n;n=r,o=a}else arguments.length===3&&(n=r,r=null);new b(e,o,m.increasesBy,!0).to.increase(t,r).by(n)},m.doesNotIncrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new b(e,n,m.doesNotIncrease,!0).to.not.increase(t,r)},m.increasesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let a=n;n=r,o=a}else arguments.length===3&&(n=r,r=null);new b(e,o,m.increasesButNotBy,!0).to.increase(t,r).but.not.by(n)},m.decreases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new b(e,n,m.decreases,!0).to.decrease(t,r)},m.decreasesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let a=n;n=r,o=a}else arguments.length===3&&(n=r,r=null);new b(e,o,m.decreasesBy,!0).to.decrease(t,r).by(n)},m.doesNotDecrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new b(e,n,m.doesNotDecrease,!0).to.not.decrease(t,r)},m.doesNotDecreaseBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let a=n;n=r,o=a}else arguments.length===3&&(n=r,r=null);return new b(e,o,m.doesNotDecreaseBy,!0).to.not.decrease(t,r).by(n)},m.decreasesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let a=n;n=r,o=a}else arguments.length===3&&(n=r,r=null);new b(e,o,m.decreasesButNotBy,!0).to.decrease(t,r).but.not.by(n)},m.ifError=function(e){if(e)throw e},m.isExtensible=function(e,t){new b(e,t,m.isExtensible,!0).to.be.extensible},m.isNotExtensible=function(e,t){new b(e,t,m.isNotExtensible,!0).to.not.be.extensible},m.isSealed=function(e,t){new b(e,t,m.isSealed,!0).to.be.sealed},m.isNotSealed=function(e,t){new b(e,t,m.isNotSealed,!0).to.not.be.sealed},m.isFrozen=function(e,t){new b(e,t,m.isFrozen,!0).to.be.frozen},m.isNotFrozen=function(e,t){new b(e,t,m.isNotFrozen,!0).to.not.be.frozen},m.isEmpty=function(e,t){new b(e,t,m.isEmpty,!0).to.be.empty},m.isNotEmpty=function(e,t){new b(e,t,m.isNotEmpty,!0).to.not.be.empty},m.containsSubset=function(e,t,r){new b(e,r).to.containSubset(t)},m.doesNotContainSubset=function(e,t,r){new b(e,r).to.not.containSubset(t)};var bm=[["isOk","ok"],["isNotOk","notOk"],["throws","throw"],["throws","Throw"],["isExtensible","extensible"],["isNotExtensible","notExtensible"],["isSealed","sealed"],["isNotSealed","notSealed"],["isFrozen","frozen"],["isNotFrozen","notFrozen"],["isEmpty","empty"],["isNotEmpty","notEmpty"],["isCallable","isFunction"],["isNotCallable","isNotFunction"],["containsSubset","containSubset"]];for(const[e,t]of bm)m[t]=m[e];var Tl=[];function Sl(e){const t={use:Sl,AssertionError:Y,util:Yo,config:fe,expect:Vt,assert:m,Assertion:b,...Pl};return~Tl.indexOf(e)||(e(t,Yo),Tl.push(e)),t}x(Sl,"use");/*!
3
- * Chai - flag utility
4
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
5
- * MIT Licensed
6
- *//*!
7
- * Chai - test utility
8
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
9
- * MIT Licensed
10
- *//*!
11
- * Chai - expectTypes utility
12
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
13
- * MIT Licensed
14
- *//*!
15
- * Chai - getActual utility
16
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
17
- * MIT Licensed
18
- *//*!
19
- * Chai - message composition utility
20
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
21
- * MIT Licensed
22
- *//*!
23
- * Chai - transferFlags utility
24
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
25
- * MIT Licensed
26
- *//*!
27
- * chai
28
- * http://chaijs.com
29
- * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
30
- * MIT Licensed
31
- *//*!
32
- * Chai - isProxyEnabled helper
33
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
34
- * MIT Licensed
35
- *//*!
36
- * Chai - addProperty utility
37
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
38
- * MIT Licensed
39
- *//*!
40
- * Chai - addLengthGuard utility
41
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
42
- * MIT Licensed
43
- *//*!
44
- * Chai - getProperties utility
45
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
46
- * MIT Licensed
47
- *//*!
48
- * Chai - proxify utility
49
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
50
- * MIT Licensed
51
- *//*!
52
- * Chai - addMethod utility
53
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
54
- * MIT Licensed
55
- *//*!
56
- * Chai - overwriteProperty utility
57
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
58
- * MIT Licensed
59
- *//*!
60
- * Chai - overwriteMethod utility
61
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
62
- * MIT Licensed
63
- *//*!
64
- * Chai - addChainingMethod utility
65
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
66
- * MIT Licensed
67
- *//*!
68
- * Chai - overwriteChainableMethod utility
69
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
70
- * MIT Licensed
71
- *//*!
72
- * Chai - compareByInspect utility
73
- * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
74
- * MIT Licensed
75
- *//*!
76
- * Chai - getOwnEnumerablePropertySymbols utility
77
- * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
78
- * MIT Licensed
79
- *//*!
80
- * Chai - getOwnEnumerableProperties utility
81
- * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
82
- * MIT Licensed
83
- *//*!
84
- * Chai - isNaN utility
85
- * Copyright(c) 2012-2015 Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
86
- * MIT Licensed
87
- *//*!
88
- * chai
89
- * Copyright(c) 2011 Jake Luer <jake@alogicalparadox.com>
90
- * MIT Licensed
91
- *//*!
92
- * chai
93
- * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
94
- * MIT Licensed
95
- *//*! Bundled license information:
96
-
97
- deep-eql/index.js:
98
- (*!
99
- * deep-eql
100
- * Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>
101
- * MIT Licensed
102
- *)
103
- (*!
104
- * Check to see if the MemoizeMap has recorded a result of the two operands
105
- *
106
- * @param {Mixed} leftHandOperand
107
- * @param {Mixed} rightHandOperand
108
- * @param {MemoizeMap} memoizeMap
109
- * @returns {Boolean|null} result
110
- *)
111
- (*!
112
- * Set the result of the equality into the MemoizeMap
113
- *
114
- * @param {Mixed} leftHandOperand
115
- * @param {Mixed} rightHandOperand
116
- * @param {MemoizeMap} memoizeMap
117
- * @param {Boolean} result
118
- *)
119
- (*!
120
- * Primary Export
121
- *)
122
- (*!
123
- * The main logic of the `deepEqual` function.
124
- *
125
- * @param {Mixed} leftHandOperand
126
- * @param {Mixed} rightHandOperand
127
- * @param {Object} [options] (optional) Additional options
128
- * @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality.
129
- * @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of
130
- complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular
131
- references to blow the stack.
132
- * @return {Boolean} equal match
133
- *)
134
- (*!
135
- * Compare two Regular Expressions for equality.
136
- *
137
- * @param {RegExp} leftHandOperand
138
- * @param {RegExp} rightHandOperand
139
- * @return {Boolean} result
140
- *)
141
- (*!
142
- * Compare two Sets/Maps for equality. Faster than other equality functions.
143
- *
144
- * @param {Set} leftHandOperand
145
- * @param {Set} rightHandOperand
146
- * @param {Object} [options] (Optional)
147
- * @return {Boolean} result
148
- *)
149
- (*!
150
- * Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers.
151
- *
152
- * @param {Iterable} leftHandOperand
153
- * @param {Iterable} rightHandOperand
154
- * @param {Object} [options] (Optional)
155
- * @return {Boolean} result
156
- *)
157
- (*!
158
- * Simple equality for generator objects such as those returned by generator functions.
159
- *
160
- * @param {Iterable} leftHandOperand
161
- * @param {Iterable} rightHandOperand
162
- * @param {Object} [options] (Optional)
163
- * @return {Boolean} result
164
- *)
165
- (*!
166
- * Determine if the given object has an @@iterator function.
167
- *
168
- * @param {Object} target
169
- * @return {Boolean} `true` if the object has an @@iterator function.
170
- *)
171
- (*!
172
- * Gets all iterator entries from the given Object. If the Object has no @@iterator function, returns an empty array.
173
- * This will consume the iterator - which could have side effects depending on the @@iterator implementation.
174
- *
175
- * @param {Object} target
176
- * @returns {Array} an array of entries from the @@iterator function
177
- *)
178
- (*!
179
- * Gets all entries from a Generator. This will consume the generator - which could have side effects.
180
- *
181
- * @param {Generator} target
182
- * @returns {Array} an array of entries from the Generator.
183
- *)
184
- (*!
185
- * Gets all own and inherited enumerable keys from a target.
186
- *
187
- * @param {Object} target
188
- * @returns {Array} an array of own and inherited enumerable keys from the target.
189
- *)
190
- (*!
191
- * Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of
192
- * each key. If any value of the given key is not equal, the function will return false (early).
193
- *
194
- * @param {Mixed} leftHandOperand
195
- * @param {Mixed} rightHandOperand
196
- * @param {Array} keys An array of keys to compare the values of leftHandOperand and rightHandOperand against
197
- * @param {Object} [options] (Optional)
198
- * @return {Boolean} result
199
- *)
200
- (*!
201
- * Recursively check the equality of two Objects. Once basic sameness has been established it will defer to `deepEqual`
202
- * for each enumerable key in the object.
203
- *
204
- * @param {Mixed} leftHandOperand
205
- * @param {Mixed} rightHandOperand
206
- * @param {Object} [options] (Optional)
207
- * @return {Boolean} result
208
- *)
209
- (*!
210
- * Returns true if the argument is a primitive.
211
- *
212
- * This intentionally returns true for all objects that can be compared by reference,
213
- * including functions and symbols.
214
- *
215
- * @param {Mixed} value
216
- * @return {Boolean} result
217
- *)
218
- */function vm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pa={exports:{}},Ht={};/**
219
- * @license React
220
- * react-jsx-runtime.production.js
221
- *
222
- * Copyright (c) Meta Platforms, Inc. and affiliates.
223
- *
224
- * This source code is licensed under the MIT license found in the
225
- * LICENSE file in the root directory of this source tree.
226
- */var Ol;function ym(){if(Ol)return Ht;Ol=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var i=null;if(a!==void 0&&(i=""+a),o.key!==void 0&&(i=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:i,ref:o!==void 0?o:null,props:a}}return Ht.Fragment=t,Ht.jsx=r,Ht.jsxs=r,Ht}var Wt={};/**
227
- * @license React
228
- * react-jsx-runtime.development.js
229
- *
230
- * Copyright (c) Meta Platforms, Inc. and affiliates.
231
- *
232
- * This source code is licensed under the MIT license found in the
233
- * LICENSE file in the root directory of this source tree.
234
- */var Al;function gm(){return Al||(Al=1,process.env.NODE_ENV!=="production"&&(function(){function e(M){if(M==null)return null;if(typeof M=="function")return M.$$typeof===D?null:M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case R:return"Fragment";case p:return"Profiler";case S:return"StrictMode";case P:return"Suspense";case y:return"SuspenseList";case A:return"Activity"}if(typeof M=="object")switch(typeof M.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),M.$$typeof){case v:return"Portal";case _:return(M.displayName||"Context")+".Provider";case q:return(M._context.displayName||"Context")+".Consumer";case T:var U=M.render;return M=M.displayName,M||(M=U.displayName||U.name||"",M=M!==""?"ForwardRef("+M+")":"ForwardRef"),M;case g:return U=M.displayName||null,U!==null?U:e(M.type)||"Memo";case E:U=M._payload,M=M._init;try{return e(M(U))}catch{}}return null}function t(M){return""+M}function r(M){try{t(M);var U=!1}catch{U=!0}if(U){U=console;var J=U.error,B=typeof Symbol=="function"&&Symbol.toStringTag&&M[Symbol.toStringTag]||M.constructor.name||"Object";return J.call(U,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",B),t(M)}}function n(M){if(M===R)return"<>";if(typeof M=="object"&&M!==null&&M.$$typeof===E)return"<...>";try{var U=e(M);return U?"<"+U+">":"<...>"}catch{return"<...>"}}function o(){var M=j.A;return M===null?null:M.getOwner()}function a(){return Error("react-stack-top-frame")}function i(M){if(L.call(M,"key")){var U=Object.getOwnPropertyDescriptor(M,"key").get;if(U&&U.isReactWarning)return!1}return M.key!==void 0}function s(M,U){function J(){F||(F=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",U))}J.isReactWarning=!0,Object.defineProperty(M,"key",{get:J,configurable:!0})}function l(){var M=e(this.type);return Z[M]||(Z[M]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),M=this.props.ref,M!==void 0?M:null}function u(M,U,J,B,de,ce,ve,Xe){return J=ce.ref,M={$$typeof:h,type:M,key:U,props:ce,_owner:de},(J!==void 0?J:null)!==null?Object.defineProperty(M,"ref",{enumerable:!1,get:l}):Object.defineProperty(M,"ref",{enumerable:!1,value:null}),M._store={},Object.defineProperty(M._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(M,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(M,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ve}),Object.defineProperty(M,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Xe}),Object.freeze&&(Object.freeze(M.props),Object.freeze(M)),M}function f(M,U,J,B,de,ce,ve,Xe){var ae=U.children;if(ae!==void 0)if(B)if(O(ae)){for(B=0;B<ae.length;B++)d(ae[B]);Object.freeze&&Object.freeze(ae)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(ae);if(L.call(U,"key")){ae=e(M);var C=Object.keys(U).filter(function(I){return I!=="key"});B=0<C.length?"{key: someKey, "+C.join(": ..., ")+": ...}":"{key: someKey}",Re[ae+B]||(C=0<C.length?"{"+C.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
235
- let props = %s;
236
- <%s {...props} />
237
- React keys must be passed directly to JSX without using spread:
238
- let props = %s;
239
- <%s key={someKey} {...props} />`,B,ae,C,ae),Re[ae+B]=!0)}if(ae=null,J!==void 0&&(r(J),ae=""+J),i(U)&&(r(U.key),ae=""+U.key),"key"in U){J={};for(var $ in U)$!=="key"&&(J[$]=U[$])}else J=U;return ae&&s(J,typeof M=="function"?M.displayName||M.name||"Unknown":M),u(M,ae,ce,de,o(),J,ve,Xe)}function d(M){typeof M=="object"&&M!==null&&M.$$typeof===h&&M._store&&(M._store.validated=1)}var c=Oe,h=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),_=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),D=Symbol.for("react.client.reference"),j=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=Object.prototype.hasOwnProperty,O=Array.isArray,k=console.createTask?console.createTask:function(){return null};c={react_stack_bottom_frame:function(M){return M()}};var F,Z={},K=c.react_stack_bottom_frame.bind(c,a)(),ue=k(n(a)),Re={};Wt.Fragment=R,Wt.jsx=function(M,U,J,B,de){var ce=1e4>j.recentlyCreatedOwnerStacks++;return f(M,U,J,!1,B,de,ce?Error("react-stack-top-frame"):K,ce?k(n(M)):ue)},Wt.jsxs=function(M,U,J,B,de){var ce=1e4>j.recentlyCreatedOwnerStacks++;return f(M,U,J,!0,B,de,ce?Error("react-stack-top-frame"):K,ce?k(n(M)):ue)}})()),Wt}var Ml;function Rm(){return Ml||(Ml=1,process.env.NODE_ENV==="production"?pa.exports=ym():pa.exports=gm()),pa.exports}var H=Rm();const wm=e=>{const t={children:[]};for(const r of e){let n=t;r.suite.forEach(o=>{let a=n.children.find(i=>"name"in i&&!i.status&&i.name===o);a||(a={name:o,children:[]},n.children.push(a)),n=a}),n.children.push(r)}return t.children},Em={animation:"spin 1s linear infinite"},Cm=()=>H.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-loader-circle-icon lucide-loader-circle",style:Em,"data-testid":"loader-icon",children:H.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})}),ma=typeof document<"u"?document.createElement("style"):null;ma&&!document.getElementById("loader-spin-keyframes")&&(ma.id="loader-spin-keyframes",ma.innerHTML=`
240
- @keyframes spin {
241
- 0% { transform: rotate(0deg); }
242
- 100% { transform: rotate(360deg); }
243
- }
244
- `,document.head.appendChild(ma));const zi=({className:e,children:t,dataTestId:r})=>H.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#000",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:`lucide ${e}`,"data-testid":r,children:t}),xm=()=>H.jsx(zi,{className:"lucide-play-icon lucide-play",dataTestId:"play-icon",children:H.jsx("path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z"})}),qm=e=>{switch(e.status){case"pass":return{item:{background:"#dcfce7"},container:{borderLeft:"3px solid #00c951"}};case"fail":return{item:{background:"#fee2e2"},container:{borderLeft:"3px solid #fb2c36"}};case"skip":return{item:{background:"#f3f4f6"}};case"running":return{item:{background:"#fef9c3"}};default:return{item:{background:"transparent"}}}},_m=e=>e.startsWith("Assertion passed")||e.startsWith("Event fired")?{color:"#0d542b",fontWeight:"700"}:e.startsWith("Test failed")?{color:"#fb2c36",fontWeight:"700"}:{},Pm=({node:e,depth:t,idx:r,runTest:n})=>{const o=qm(e);return H.jsxs("li",{style:{marginBottom:"4px",marginLeft:t*6,...o.container},"data-testid":`test-list-item-${r}`,children:[H.jsxs("div",{style:{display:"flex",alignItems:"left",justifyContent:"space-between",padding:"4px 6px",borderRadius:"4px",...o.item},children:[H.jsxs("span",{style:{fontWeight:"500",color:"#374151",maxWidth:"220px"},children:[e.name," ",e.only&&H.jsx("span",{style:{color:"#2563eb"},"data-testid":`only-indicator-${r}`,children:" (only)"}),e.skip&&H.jsx("span",{style:{color:"#6b7280"},"data-testid":`skip-indicator-${r}`,children:" (skipped)"})]}),H.jsx("button",{onClick:()=>n(r),"aria-label":`Run ${e.name} test`,style:{background:"transparent",border:"1px solid #d1d5db",borderRadius:"4px",padding:"0",cursor:"pointer",verticalAlign:"middle",fontSize:"12px",width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center"},disabled:e.status==="running","data-testid":`run-test-button-${r}`,children:e.status==="running"?H.jsx(Cm,{}):H.jsx(xm,{})})]}),e.logs&&e.logs.length>0&&H.jsx("ul",{style:{borderRadius:"4px",maxHeight:"260px",overflowY:"auto",padding:0,background:"#f3f4f6",listStyle:"none",marginTop:"4px",textAlign:"left"},children:e.logs.map((a,i)=>H.jsx("li",{style:{fontSize:"12px",padding:"4px 6px",borderBottom:"1px solid #d1d5db",color:"#374151",..._m(a)},children:a},i))})]},e.name)},Tm=()=>H.jsx(zi,{className:"lucide-chevron-down-icon lucide-chevron-down",dataTestId:"chevron-down-icon",children:H.jsx("path",{d:"m6 9 6 6 6-6"})}),Sm=()=>H.jsx(zi,{className:"lucide-chevron-right-icon lucide-chevron-right",dataTestId:"chevron-right-icon",children:H.jsx("path",{d:"m9 18 6-6-6-6"})}),Om=({runTest:e,tests:t})=>{const[r,n]=Oe.useState({}),o=(i,s=0)=>{if("status"in i)return H.jsx(Pm,{node:i,depth:s,idx:t.indexOf(i),runTest:e},i.name);const l=r[i.name];return H.jsxs("li",{style:{marginBottom:"6px",marginLeft:s*12,textAlign:"left"},children:[H.jsxs("div",{style:{fontWeight:"bold",cursor:"pointer",color:"#374151",marginBottom:"4px",display:"flex",alignItems:"center",gap:"4px"},onClick:()=>n(u=>({...u,[i.name]:!u[i.name]})),"data-testid":`test-group-${i.name}`,tabIndex:0,role:"button","aria-expanded":!l,children:[i.name," ",l?H.jsx(Sm,{}):H.jsx(Tm,{})]}),!l&&H.jsx("ul",{style:{listStyle:"none",padding:0},children:i.children.map(u=>o(u,s+1))})]},i.name)},a=wm(t);return H.jsx("ul",{style:{listStyle:"none",padding:0,margin:0},children:a.map(i=>o(i))})},Am={left:{left:0,borderTopRightRadius:"6px",borderBottomRightRadius:"6px",borderTopLeftRadius:"0",borderBottomLeftRadius:"0"},right:{right:0,borderTopLeftRadius:"6px",borderBottomLeftRadius:"6px",borderTopRightRadius:"0",borderBottomRightRadius:"0"}},Mm=({setOpen:e,position:t})=>H.jsx("button",{"aria-label":"Open TWD sidebar",style:{position:"fixed",top:"50%",transform:"translateY(-50%)",background:"#3b82f6",color:"white",padding:"6px 10px",cursor:"pointer",fontSize:"12px",...Am[t]},onClick:()=>e(!0),children:"TWD"}),Im=({isOpen:e,position:t})=>{Oe.useEffect(()=>{const r=document.documentElement;return e?t==="left"?r.style.marginLeft="280px":r.style.marginRight="280px":(r.style.marginRight="0",r.style.marginLeft="0"),()=>{r.style.marginRight="0",r.style.marginLeft="0"}},[e,t])},Nm={left:{left:0,borderRight:"1px solid #e5e7eb"},right:{right:0,borderLeft:"1px solid #e5e7eb"}},km='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',Dm=({open:e,position:t="left"})=>{const[r,n]=Oe.useState(0),[o,a]=Oe.useState(e),[i,s]=Oe.useState("");Im({isOpen:o,position:t});const l=async d=>{const c=Qe[d];if(c.logs=[],c.status="running",n(h=>h+1),c.skip)c.status="skip";else try{await c.fn(),c.status="pass"}catch(h){c.status="fail",console.error("Test failed:",c.name,h),c.logs.push(`Test failed: ${h.message}`)}n(h=>h+1)},u=async()=>{const d=Qe.filter(h=>h.only),c=d.length>0?d:Qe;for(let h=0;h<c.length;h++){const v=Qe.indexOf(c[h]);await l(v)}},f=i.trim()?Qe.filter(d=>d.name.toLowerCase().includes(i.trim().toLowerCase())):Qe;return o?H.jsxs("div",{style:{fontFamily:km,position:"fixed",top:0,bottom:0,width:"280px",background:"#f9fafb",padding:"8px",fontSize:"14px",overflowY:"auto",boxShadow:"2px 0 6px rgba(0,0,0,0.1)",textAlign:"left",zIndex:1e3,...Nm[t]},"data-testid":"twd-sidebar",children:[H.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"14px"},children:[H.jsx("strong",{style:{fontSize:"18px",fontWeight:"bold",color:"#374151"},children:"TWD Tests"}),H.jsx("button",{"aria-label":"Close sidebar",style:{background:"transparent",border:"none",cursor:"pointer",fontSize:"14px"},onClick:()=>a(!1),children:"✖"})]}),H.jsx("input",{type:"text","aria-label":"Filter tests",placeholder:"Filter tests...",value:i,onChange:d=>s(d.target.value),style:{width:"100%",padding:"6px 8px",marginBottom:"10px",border:"1px solid #d1d5db",borderRadius:"4px",fontSize:"14px",outline:"none",boxSizing:"border-box",background:"#fff"},"data-testid":"twd-sidebar-filter"}),H.jsx("button",{onClick:u,style:{background:"#3b82f6",color:"white",padding:"4px 8px",borderRadius:"4px",border:"none",marginBottom:"10px",cursor:"pointer"},children:"Run All"}),H.jsx(Om,{tests:f,runTest:l})]}):H.jsx(Mm,{position:t,setOpen:a})},jm=e=>{const{Component:t,createRoot:r}=e,n=document.createElement("div");n.setAttribute("id","twd-sidebar-root"),document.body.appendChild(n),r(n).render(t)},Bm=async(e,t,r)=>{for(const n in e)await e[n]();jm({Component:t,createRoot:r})};function V(e,t,r){return e.namespaceURI&&e.namespaceURI!=="http://www.w3.org/1999/xhtml"||(t=Array.isArray(t)?t:[t],!t.includes(e.tagName.toLowerCase()))?!1:r?Object.entries(r).every(([n,o])=>e[n]===o):!0}function qe(e){var t;if(Lm(e)&&e.defaultView)return e.defaultView;if(!((t=e.ownerDocument)===null||t===void 0)&&t.defaultView)return e.ownerDocument.defaultView;throw new Error(`Could not determine window of node. Node was ${$m(e)}`)}function Lm(e){return e.nodeType===9}function $m(e){return typeof e=="function"?`function ${e.name}`:e===null?"null":String(e)}function Il(e,t){return new Promise((r,n)=>{const o=new t;o.onerror=n,o.onabort=n,o.onload=()=>{r(String(o.result))},o.readAsText(e)})}function Vi(e,t){const r={...t,length:t.length,item:n=>r[n],[Symbol.iterator]:function*(){for(let o=0;o<r.length;o++)yield r[o]}};return r.constructor=e.FileList,e.FileList&&Object.setPrototypeOf(r,e.FileList.prototype),Object.freeze(r),r}function et(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Nl{getAsFile(){return this.file}getAsString(t){typeof this.data=="string"&&t(this.data)}webkitGetAsEntry(){throw new Error("not implemented")}constructor(t,r){et(this,"kind",void 0),et(this,"type",void 0),et(this,"file",null),et(this,"data",void 0),typeof t=="string"?(this.kind="string",this.type=String(r),this.data=t):(this.kind="file",this.type=t.type,this.file=t)}}class Fm extends Array{add(...t){const r=new Nl(t[0],t[1]);return this.push(r),r}clear(){this.splice(0,this.length)}remove(t){this.splice(t,1)}}function ha(e,t){const[r,n]=e.split("/"),o=!n||n==="*";return a=>t?a.type===(o?r:e):o?a.type.startsWith(`${r}/`):a.type===r}function Um(e){return new class{getData(r){var n;const o=(n=this.items.find(ha(r,!0)))!==null&&n!==void 0?n:this.items.find(ha(r,!1));let a="";return o?.getAsString(i=>{a=i}),a}setData(r,n){const o=this.items.findIndex(ha(r,!0)),a=new Nl(n,r);o>=0?this.items.splice(o,1,a):this.items.push(a)}clearData(r){if(r){const n=this.items.findIndex(ha(r,!0));n>=0&&this.items.remove(n)}else this.items.clear()}get types(){const r=[];return this.files.length&&r.push("Files"),this.items.forEach(n=>r.push(n.type)),Object.freeze(r),r}setDragImage(){}constructor(){et(this,"dropEffect","none"),et(this,"effectAllowed","uninitialized"),et(this,"items",new Fm),et(this,"files",Vi(e,[]))}}}function Hi(e,t=[]){const r=typeof e.DataTransfer>"u"?Um(e):new e.DataTransfer;return Object.defineProperty(r,"files",{get:()=>Vi(e,t)}),r}async function zm(e,t){return t.kind==="file"?t.getAsFile():new e.Blob([await new Promise(r=>t.getAsString(r))],{type:t.type})}function kl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dl(e,...t){const r=Object.fromEntries(t.map(n=>[typeof n=="string"?"text/plain":n.type,Promise.resolve(n)]));return typeof e.ClipboardItem<"u"?new e.ClipboardItem(r):new class{get types(){return Array.from(Object.keys(this.data))}async getType(o){const a=await this.data[o];if(!a)throw new Error(`${o} is not one of the available MIME types on this item.`);return a instanceof e.Blob?a:new e.Blob([a],{type:o})}constructor(o){kl(this,"data",void 0),this.data=o}}(r)}const qt=Symbol("Manage ClipboardSub");function jl(e,t){return Object.assign(new class extends e.EventTarget{async read(){return Array.from(this.items)}async readText(){let n="";for(const o of this.items){const a=o.types.includes("text/plain")?"text/plain":o.types.find(i=>i.startsWith("text/"));a&&(n+=await o.getType(a).then(i=>Il(i,e.FileReader)))}return n}async write(n){this.items=n}async writeText(n){this.items=[Dl(e,n)]}constructor(...n){super(...n),kl(this,"items",[])}},{[qt]:t})}function Wi(e){return!!e?.[qt]}function Vm(e){if(Wi(e.navigator.clipboard))return e.navigator.clipboard[qt];const t=Object.getOwnPropertyDescriptor(e.navigator,"clipboard");let r;const n={resetClipboardStub:()=>{r=jl(e,n)},detachClipboardStub:()=>{t?Object.defineProperty(e.navigator,"clipboard",t):Object.defineProperty(e.navigator,"clipboard",{value:void 0,configurable:!0})}};return r=jl(e,n),Object.defineProperty(e.navigator,"clipboard",{get:()=>r,configurable:!0}),r[qt]}function Hm(e){Wi(e.navigator.clipboard)&&e.navigator.clipboard[qt].resetClipboardStub()}function Wm(e){Wi(e.navigator.clipboard)&&e.navigator.clipboard[qt].detachClipboardStub()}async function Gm(e){const t=e.defaultView,r=t?.navigator.clipboard,n=r&&await r.read();if(!n)throw new Error("The Clipboard API is unavailable.");const o=Hi(t);for(const a of n)for(const i of a.types)o.setData(i,await a.getType(i).then(s=>Il(s,t.FileReader)));return o}async function Bl(e,t){const r=qe(e),n=r.navigator.clipboard,o=[];for(let i=0;i<t.items.length;i++){const s=t.items[i],l=await zm(r,s);o.push(Dl(r,l))}if(!(n&&await n.write(o).then(()=>!0,()=>!1)))throw new Error("The Clipboard API is unavailable.")}const ba=globalThis;typeof ba.afterEach=="function"&&ba.afterEach(()=>Hm(globalThis.window)),typeof ba.afterAll=="function"&&ba.afterAll(()=>Wm(globalThis.window));const Ll=["input:not([type=hidden]):not([disabled])","button:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contenteditable=""]','[contenteditable="true"]',"a[href]","[tabindex]:not([disabled])"].join(", ");function Gi(e){return e.matches(Ll)}function Km(e){return new e.constructor(e.type,e)}function je(e){for(let r=e;r;r=r.parentElement)if(V(r,["button","input","select","textarea","optgroup","option"])){if(r.hasAttribute("disabled"))return!0}else if(V(r,"fieldset")){var t;if(r.hasAttribute("disabled")&&!(!((t=r.querySelector(":scope > legend"))===null||t===void 0)&&t.contains(e)))return!0}else if(r.tagName.includes("-")&&r.constructor.formAssociated&&r.hasAttribute("disabled"))return!0;return!1}function Gt(e){const t=e.activeElement;return t?.shadowRoot?Gt(t.shadowRoot):je(t)?e.ownerDocument?e.ownerDocument.body:e.body:t}function Ki(e){var t;return(t=Gt(e))!==null&&t!==void 0?t:e.body}function Ym(e,t){let r=e;do{if(t(r))return r;r=r.parentElement}while(r&&r!==e.ownerDocument.body)}function dt(e){return e.hasAttribute("contenteditable")&&(e.getAttribute("contenteditable")=="true"||e.getAttribute("contenteditable")=="")}function Kt(e){const t=Xm(e);return t&&(t.closest('[contenteditable=""]')||t.closest('[contenteditable="true"]'))}function Xm(e){return e.nodeType===1?e:e.parentElement}var $l=(function(e){return e.button="button",e.color="color",e.file="file",e.image="image",e.reset="reset",e.submit="submit",e.checkbox="checkbox",e.radio="radio",e})($l||{});function Fl(e){return V(e,"button")||V(e,"input")&&e.type in $l}function _t(e){return zl(e)&&!e.readOnly||dt(e)}var Ul=(function(e){return e.text="text",e.date="date",e["datetime-local"]="datetime-local",e.email="email",e.month="month",e.number="number",e.password="password",e.search="search",e.tel="tel",e.time="time",e.url="url",e.week="week",e})(Ul||{});function zl(e){return V(e,"textarea")||V(e,"input")&&e.type in Ul}function Me(e){return Vl(e)&&zl(e)}function Jm(e){return Vl(e)&&Fl(e)}function Vl(e){return e.nodeType===1}function Qm(e){const t=e.ownerDocument.getSelection();if(t?.focusNode&&Me(e)){const n=Kt(t.focusNode);if(n){if(!t.isCollapsed){var r;const o=((r=n.firstChild)===null||r===void 0?void 0:r.nodeType)===3?n.firstChild:n;t.setBaseAndExtent(o,0,o,0)}}else t.setBaseAndExtent(e,0,e,0)}}var Ie={},va={exports:{}};va.exports;var Hl;function Wl(){return Hl||(Hl=1,(function(e){const r=(a=0)=>i=>`\x1B[${38+a};5;${i}m`,n=(a=0)=>(i,s,l)=>`\x1B[${38+a};2;${i};${s};${l}m`;function o(){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[u,f]of Object.entries(l))i[u]={open:`\x1B[${f[0]}m`,close:`\x1B[${f[1]}m`},l[u]=i[u],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=n(),i.bgColor.ansi256=r(10),i.bgColor.ansi16m=n(10),Object.defineProperties(i,{rgbToAnsi256:{value:(s,l,u)=>s===l&&l===u?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(u/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:u}=l.groups;u.length===3&&(u=u.split("").map(d=>d+d).join(""));const f=Number.parseInt(u,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:o})})(va)),va.exports}var ft={},Gl;function ya(){if(Gl)return ft;Gl=1,Object.defineProperty(ft,"__esModule",{value:!0}),ft.printIteratorEntries=t,ft.printIteratorValues=r,ft.printListItems=n,ft.printObjectProperties=o;const e=(a,i)=>{const s=Object.keys(a).sort(i);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(a).forEach(l=>{Object.getOwnPropertyDescriptor(a,l).enumerable&&s.push(l)}),s};function t(a,i,s,l,u,f,d=": "){let c="",h=a.next();if(!h.done){c+=i.spacingOuter;const v=s+i.indent;for(;!h.done;){const R=f(h.value[0],i,v,l,u),S=f(h.value[1],i,v,l,u);c+=v+R+d+S,h=a.next(),h.done?i.min||(c+=","):c+=","+i.spacingInner}c+=i.spacingOuter+s}return c}function r(a,i,s,l,u,f){let d="",c=a.next();if(!c.done){d+=i.spacingOuter;const h=s+i.indent;for(;!c.done;)d+=h+f(c.value,i,h,l,u),c=a.next(),c.done?i.min||(d+=","):d+=","+i.spacingInner;d+=i.spacingOuter+s}return d}function n(a,i,s,l,u,f){let d="";if(a.length){d+=i.spacingOuter;const c=s+i.indent;for(let h=0;h<a.length;h++)d+=c,h in a&&(d+=f(a[h],i,c,l,u)),h<a.length-1?d+=","+i.spacingInner:i.min||(d+=",");d+=i.spacingOuter+s}return d}function o(a,i,s,l,u,f){let d="";const c=e(a,i.compareKeys);if(c.length){d+=i.spacingOuter;const h=s+i.indent;for(let v=0;v<c.length;v++){const R=c[v],S=f(R,i,h,l,u),p=f(a[R],i,h,l,u);d+=h+S+": "+p,v<c.length-1?d+=","+i.spacingInner:i.min||(d+=",")}d+=i.spacingOuter+s}return d}return ft}var Be={},Kl;function Zm(){if(Kl)return Be;Kl=1,Object.defineProperty(Be,"__esModule",{value:!0}),Be.test=Be.serialize=Be.default=void 0;var e=ya(),t=(function(){return typeof globalThis<"u"?globalThis:typeof t<"u"?t:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})(),r=t["jest-symbol-do-not-touch"]||t.Symbol;const n=typeof r=="function"&&r.for?r.for("jest.asymmetricMatcher"):1267621,o=" ",a=(u,f,d,c,h,v)=>{const R=u.toString();return R==="ArrayContaining"||R==="ArrayNotContaining"?++c>f.maxDepth?"["+R+"]":R+o+"["+(0,e.printListItems)(u.sample,f,d,c,h,v)+"]":R==="ObjectContaining"||R==="ObjectNotContaining"?++c>f.maxDepth?"["+R+"]":R+o+"{"+(0,e.printObjectProperties)(u.sample,f,d,c,h,v)+"}":R==="StringMatching"||R==="StringNotMatching"||R==="StringContaining"||R==="StringNotContaining"?R+o+v(u.sample,f,d,c,h):u.toAsymmetricMatcher()};Be.serialize=a;const i=u=>u&&u.$$typeof===n;Be.test=i;var l={serialize:a,test:i};return Be.default=l,Be}var Le={},Yi,Yl;function eh(){return Yl||(Yl=1,Yi=({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")}),Yi}var Xl;function th(){if(Xl)return Le;Xl=1,Object.defineProperty(Le,"__esModule",{value:!0}),Le.test=Le.serialize=Le.default=void 0;var e=r(eh()),t=r(Wl());function r(l){return l&&l.__esModule?l:{default:l}}const n=l=>l.replace((0,e.default)(),u=>{switch(u){case t.default.red.close:case t.default.green.close:case t.default.cyan.close:case t.default.gray.close:case t.default.white.close:case t.default.yellow.close:case t.default.bgRed.close:case t.default.bgGreen.close:case t.default.bgYellow.close:case t.default.inverse.close:case t.default.dim.close:case t.default.bold.close:case t.default.reset.open:case t.default.reset.close:return"</>";case t.default.red.open:return"<red>";case t.default.green.open:return"<green>";case t.default.cyan.open:return"<cyan>";case t.default.gray.open:return"<gray>";case t.default.white.open:return"<white>";case t.default.yellow.open:return"<yellow>";case t.default.bgRed.open:return"<bgRed>";case t.default.bgGreen.open:return"<bgGreen>";case t.default.bgYellow.open:return"<bgYellow>";case t.default.inverse.open:return"<inverse>";case t.default.dim.open:return"<dim>";case t.default.bold.open:return"<bold>";default:return""}}),o=l=>typeof l=="string"&&!!l.match((0,e.default)());Le.test=o;const a=(l,u,f,d,c,h)=>h(n(l),u,f,d,c);Le.serialize=a;var s={serialize:a,test:o};return Le.default=s,Le}var $e={},Jl;function rh(){if(Jl)return $e;Jl=1,Object.defineProperty($e,"__esModule",{value:!0}),$e.test=$e.serialize=$e.default=void 0;var e=ya();const t=" ",r=["DOMStringMap","NamedNodeMap"],n=/^(HTML\w*Collection|NodeList)$/,o=f=>r.indexOf(f)!==-1||n.test(f),a=f=>f&&f.constructor&&!!f.constructor.name&&o(f.constructor.name);$e.test=a;const i=f=>f.constructor.name==="NamedNodeMap",s=(f,d,c,h,v,R)=>{const S=f.constructor.name;return++h>d.maxDepth?"["+S+"]":(d.min?"":S+t)+(r.indexOf(S)!==-1?"{"+(0,e.printObjectProperties)(i(f)?Array.from(f).reduce((p,q)=>(p[q.name]=q.value,p),{}):{...f},d,c,h,v,R)+"}":"["+(0,e.printListItems)(Array.from(f),d,c,h,v,R)+"]")};$e.serialize=s;var u={serialize:s,test:a};return $e.default=u,$e}var Fe={},be={},ga={},Ql;function nh(){if(Ql)return ga;Ql=1,Object.defineProperty(ga,"__esModule",{value:!0}),ga.default=e;function e(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;")}return ga}var Zl;function Xi(){if(Zl)return be;Zl=1,Object.defineProperty(be,"__esModule",{value:!0}),be.printText=be.printProps=be.printElementAsLeaf=be.printElement=be.printComment=be.printChildren=void 0;var e=t(nh());function t(l){return l&&l.__esModule?l:{default:l}}const r=(l,u,f,d,c,h,v)=>{const R=d+f.indent,S=f.colors;return l.map(p=>{const q=u[p];let _=v(q,f,R,c,h);return typeof q!="string"&&(_.indexOf(`
245
- `)!==-1&&(_=f.spacingOuter+R+_+f.spacingOuter+d),_="{"+_+"}"),f.spacingInner+d+S.prop.open+p+S.prop.close+"="+S.value.open+_+S.value.close}).join("")};be.printProps=r;const n=(l,u,f,d,c,h)=>l.map(v=>u.spacingOuter+f+(typeof v=="string"?o(v,u):h(v,u,f,d,c))).join("");be.printChildren=n;const o=(l,u)=>{const f=u.colors.content;return f.open+(0,e.default)(l)+f.close};be.printText=o;const a=(l,u)=>{const f=u.colors.comment;return f.open+"<!--"+(0,e.default)(l)+"-->"+f.close};be.printComment=a;const i=(l,u,f,d,c)=>{const h=d.colors.tag;return h.open+"<"+l+(u&&h.close+u+d.spacingOuter+c+h.open)+(f?">"+h.close+f+d.spacingOuter+c+h.open+"</"+l:(u&&!d.min?"":" ")+"/")+">"+h.close};be.printElement=i;const s=(l,u)=>{const f=u.colors.tag;return f.open+"<"+l+f.close+" …"+f.open+" />"+f.close};return be.printElementAsLeaf=s,be}var eu;function oh(){if(eu)return Fe;eu=1,Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.test=Fe.serialize=Fe.default=void 0;var e=Xi();const t=1,r=3,n=8,o=11,a=/^((HTML|SVG)\w*)?Element$/,i=R=>{try{return typeof R.hasAttribute=="function"&&R.hasAttribute("is")}catch{return!1}},s=R=>{const S=R.constructor.name,{nodeType:p,tagName:q}=R,_=typeof q=="string"&&q.includes("-")||i(R);return p===t&&(a.test(S)||_)||p===r&&S==="Text"||p===n&&S==="Comment"||p===o&&S==="DocumentFragment"},l=R=>{var S;return(R==null||(S=R.constructor)===null||S===void 0?void 0:S.name)&&s(R)};Fe.test=l;function u(R){return R.nodeType===r}function f(R){return R.nodeType===n}function d(R){return R.nodeType===o}const c=(R,S,p,q,_,T)=>{if(u(R))return(0,e.printText)(R.data,S);if(f(R))return(0,e.printComment)(R.data,S);const P=d(R)?"DocumentFragment":R.tagName.toLowerCase();return++q>S.maxDepth?(0,e.printElementAsLeaf)(P,S):(0,e.printElement)(P,(0,e.printProps)(d(R)?[]:Array.from(R.attributes).map(y=>y.name).sort(),d(R)?{}:Array.from(R.attributes).reduce((y,g)=>(y[g.name]=g.value,y),{}),S,p+S.indent,q,_,T),(0,e.printChildren)(Array.prototype.slice.call(R.childNodes||R.children),S,p+S.indent,q,_,T),S,p)};Fe.serialize=c;var v={serialize:c,test:l};return Fe.default=v,Fe}var Ue={},tu;function ah(){if(tu)return Ue;tu=1,Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.test=Ue.serialize=Ue.default=void 0;var e=ya();const t="@@__IMMUTABLE_ITERABLE__@@",r="@@__IMMUTABLE_LIST__@@",n="@@__IMMUTABLE_KEYED__@@",o="@@__IMMUTABLE_MAP__@@",a="@@__IMMUTABLE_ORDERED__@@",i="@@__IMMUTABLE_RECORD__@@",s="@@__IMMUTABLE_SEQ__@@",l="@@__IMMUTABLE_SET__@@",u="@@__IMMUTABLE_STACK__@@",f=g=>"Immutable."+g,d=g=>"["+g+"]",c=" ",h="…",v=(g,E,A,D,j,L,O)=>++D>E.maxDepth?d(f(O)):f(O)+c+"{"+(0,e.printIteratorEntries)(g.entries(),E,A,D,j,L)+"}";function R(g){let E=0;return{next(){if(E<g._keys.length){const A=g._keys[E++];return{done:!1,value:[A,g.get(A)]}}return{done:!0,value:void 0}}}}const S=(g,E,A,D,j,L)=>{const O=f(g._name||"Record");return++D>E.maxDepth?d(O):O+c+"{"+(0,e.printIteratorEntries)(R(g),E,A,D,j,L)+"}"},p=(g,E,A,D,j,L)=>{const O=f("Seq");return++D>E.maxDepth?d(O):g[n]?O+c+"{"+(g._iter||g._object?(0,e.printIteratorEntries)(g.entries(),E,A,D,j,L):h)+"}":O+c+"["+(g._iter||g._array||g._collection||g._iterable?(0,e.printIteratorValues)(g.values(),E,A,D,j,L):h)+"]"},q=(g,E,A,D,j,L,O)=>++D>E.maxDepth?d(f(O)):f(O)+c+"["+(0,e.printIteratorValues)(g.values(),E,A,D,j,L)+"]",_=(g,E,A,D,j,L)=>g[o]?v(g,E,A,D,j,L,g[a]?"OrderedMap":"Map"):g[r]?q(g,E,A,D,j,L,"List"):g[l]?q(g,E,A,D,j,L,g[a]?"OrderedSet":"Set"):g[u]?q(g,E,A,D,j,L,"Stack"):g[s]?p(g,E,A,D,j,L):S(g,E,A,D,j,L);Ue.serialize=_;const T=g=>g&&(g[t]===!0||g[i]===!0);Ue.test=T;var y={serialize:_,test:T};return Ue.default=y,Ue}var ze={},Ra={exports:{}},te={};/** @license React v17.0.2
246
- * react-is.production.min.js
247
- *
248
- * Copyright (c) Facebook, Inc. and its affiliates.
249
- *
250
- * This source code is licensed under the MIT license found in the
251
- * LICENSE file in the root directory of this source tree.
252
- */var ru;function ih(){if(ru)return te;ru=1;var e=60103,t=60106,r=60107,n=60108,o=60114,a=60109,i=60110,s=60112,l=60113,u=60120,f=60115,d=60116,c=60121,h=60122,v=60117,R=60129,S=60131;if(typeof Symbol=="function"&&Symbol.for){var p=Symbol.for;e=p("react.element"),t=p("react.portal"),r=p("react.fragment"),n=p("react.strict_mode"),o=p("react.profiler"),a=p("react.provider"),i=p("react.context"),s=p("react.forward_ref"),l=p("react.suspense"),u=p("react.suspense_list"),f=p("react.memo"),d=p("react.lazy"),c=p("react.block"),h=p("react.server.block"),v=p("react.fundamental"),R=p("react.debug_trace_mode"),S=p("react.legacy_hidden")}function q(O){if(typeof O=="object"&&O!==null){var k=O.$$typeof;switch(k){case e:switch(O=O.type,O){case r:case o:case n:case l:case u:return O;default:switch(O=O&&O.$$typeof,O){case i:case s:case d:case f:case a:return O;default:return k}}case t:return k}}}var _=a,T=e,P=s,y=r,g=d,E=f,A=t,D=o,j=n,L=l;return te.ContextConsumer=i,te.ContextProvider=_,te.Element=T,te.ForwardRef=P,te.Fragment=y,te.Lazy=g,te.Memo=E,te.Portal=A,te.Profiler=D,te.StrictMode=j,te.Suspense=L,te.isAsyncMode=function(){return!1},te.isConcurrentMode=function(){return!1},te.isContextConsumer=function(O){return q(O)===i},te.isContextProvider=function(O){return q(O)===a},te.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===e},te.isForwardRef=function(O){return q(O)===s},te.isFragment=function(O){return q(O)===r},te.isLazy=function(O){return q(O)===d},te.isMemo=function(O){return q(O)===f},te.isPortal=function(O){return q(O)===t},te.isProfiler=function(O){return q(O)===o},te.isStrictMode=function(O){return q(O)===n},te.isSuspense=function(O){return q(O)===l},te.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===r||O===o||O===R||O===n||O===l||O===u||O===S||typeof O=="object"&&O!==null&&(O.$$typeof===d||O.$$typeof===f||O.$$typeof===a||O.$$typeof===i||O.$$typeof===s||O.$$typeof===v||O.$$typeof===c||O[0]===h)},te.typeOf=q,te}var re={};/** @license React v17.0.2
253
- * react-is.development.js
254
- *
255
- * Copyright (c) Facebook, Inc. and its affiliates.
256
- *
257
- * This source code is licensed under the MIT license found in the
258
- * LICENSE file in the root directory of this source tree.
259
- */var nu;function sh(){return nu||(nu=1,process.env.NODE_ENV!=="production"&&(function(){var e=60103,t=60106,r=60107,n=60108,o=60114,a=60109,i=60110,s=60112,l=60113,u=60120,f=60115,d=60116,c=60121,h=60122,v=60117,R=60129,S=60131;if(typeof Symbol=="function"&&Symbol.for){var p=Symbol.for;e=p("react.element"),t=p("react.portal"),r=p("react.fragment"),n=p("react.strict_mode"),o=p("react.profiler"),a=p("react.provider"),i=p("react.context"),s=p("react.forward_ref"),l=p("react.suspense"),u=p("react.suspense_list"),f=p("react.memo"),d=p("react.lazy"),c=p("react.block"),h=p("react.server.block"),v=p("react.fundamental"),p("react.scope"),p("react.opaque.id"),R=p("react.debug_trace_mode"),p("react.offscreen"),S=p("react.legacy_hidden")}var q=!1;function _(I){return!!(typeof I=="string"||typeof I=="function"||I===r||I===o||I===R||I===n||I===l||I===u||I===S||q||typeof I=="object"&&I!==null&&(I.$$typeof===d||I.$$typeof===f||I.$$typeof===a||I.$$typeof===i||I.$$typeof===s||I.$$typeof===v||I.$$typeof===c||I[0]===h))}function T(I){if(typeof I=="object"&&I!==null){var Q=I.$$typeof;switch(Q){case e:var W=I.type;switch(W){case r:case o:case n:case l:case u:return W;default:var ie=W&&W.$$typeof;switch(ie){case i:case s:case d:case f:case a:return ie;default:return Q}}case t:return Q}}}var P=i,y=a,g=e,E=s,A=r,D=d,j=f,L=t,O=o,k=n,F=l,Z=!1,K=!1;function ue(I){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Re(I){return K||(K=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function M(I){return T(I)===i}function U(I){return T(I)===a}function J(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function B(I){return T(I)===s}function de(I){return T(I)===r}function ce(I){return T(I)===d}function ve(I){return T(I)===f}function Xe(I){return T(I)===t}function ae(I){return T(I)===o}function C(I){return T(I)===n}function $(I){return T(I)===l}re.ContextConsumer=P,re.ContextProvider=y,re.Element=g,re.ForwardRef=E,re.Fragment=A,re.Lazy=D,re.Memo=j,re.Portal=L,re.Profiler=O,re.StrictMode=k,re.Suspense=F,re.isAsyncMode=ue,re.isConcurrentMode=Re,re.isContextConsumer=M,re.isContextProvider=U,re.isElement=J,re.isForwardRef=B,re.isFragment=de,re.isLazy=ce,re.isMemo=ve,re.isPortal=Xe,re.isProfiler=ae,re.isStrictMode=C,re.isSuspense=$,re.isValidElementType=_,re.typeOf=T})()),re}var ou;function lh(){return ou||(ou=1,process.env.NODE_ENV==="production"?Ra.exports=ih():Ra.exports=sh()),Ra.exports}var au;function uh(){if(au)return ze;au=1,Object.defineProperty(ze,"__esModule",{value:!0}),ze.test=ze.serialize=ze.default=void 0;var e=n(lh()),t=Xi();function r(d){if(typeof WeakMap!="function")return null;var c=new WeakMap,h=new WeakMap;return(r=function(v){return v?h:c})(d)}function n(d,c){if(d&&d.__esModule)return d;if(d===null||typeof d!="object"&&typeof d!="function")return{default:d};var h=r(c);if(h&&h.has(d))return h.get(d);var v={},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in d)if(S!=="default"&&Object.prototype.hasOwnProperty.call(d,S)){var p=R?Object.getOwnPropertyDescriptor(d,S):null;p&&(p.get||p.set)?Object.defineProperty(v,S,p):v[S]=d[S]}return v.default=d,h&&h.set(d,v),v}const o=(d,c=[])=>(Array.isArray(d)?d.forEach(h=>{o(h,c)}):d!=null&&d!==!1&&c.push(d),c),a=d=>{const c=d.type;if(typeof c=="string")return c;if(typeof c=="function")return c.displayName||c.name||"Unknown";if(e.isFragment(d))return"React.Fragment";if(e.isSuspense(d))return"React.Suspense";if(typeof c=="object"&&c!==null){if(e.isContextProvider(d))return"Context.Provider";if(e.isContextConsumer(d))return"Context.Consumer";if(e.isForwardRef(d)){if(c.displayName)return c.displayName;const h=c.render.displayName||c.render.name||"";return h!==""?"ForwardRef("+h+")":"ForwardRef"}if(e.isMemo(d)){const h=c.displayName||c.type.displayName||c.type.name||"";return h!==""?"Memo("+h+")":"Memo"}}return"UNDEFINED"},i=d=>{const{props:c}=d;return Object.keys(c).filter(h=>h!=="children"&&c[h]!==void 0).sort()},s=(d,c,h,v,R,S)=>++v>c.maxDepth?(0,t.printElementAsLeaf)(a(d),c):(0,t.printElement)(a(d),(0,t.printProps)(i(d),d.props,c,h+c.indent,v,R,S),(0,t.printChildren)(o(d.props.children),c,h+c.indent,v,R,S),c,h);ze.serialize=s;const l=d=>d!=null&&e.isElement(d);ze.test=l;var f={serialize:s,test:l};return ze.default=f,ze}var Ve={},iu;function ch(){if(iu)return Ve;iu=1,Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.test=Ve.serialize=Ve.default=void 0;var e=Xi(),t=(function(){return typeof globalThis<"u"?globalThis:typeof t<"u"?t:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})(),r=t["jest-symbol-do-not-touch"]||t.Symbol;const n=typeof r=="function"&&r.for?r.for("react.test.json"):245830487,o=u=>{const{props:f}=u;return f?Object.keys(f).filter(d=>f[d]!==void 0).sort():[]},a=(u,f,d,c,h,v)=>++c>f.maxDepth?(0,e.printElementAsLeaf)(u.type,f):(0,e.printElement)(u.type,u.props?(0,e.printProps)(o(u),u.props,f,d+f.indent,c,h,v):"",u.children?(0,e.printChildren)(u.children,f,d+f.indent,c,h,v):"",f,d);Ve.serialize=a;const i=u=>u&&u.$$typeof===n;Ve.test=i;var l={serialize:a,test:i};return Ve.default=l,Ve}var su;function dh(){if(su)return Ie;su=1,Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.default=Ie.DEFAULT_OPTIONS=void 0,Ie.format=ve,Ie.plugins=void 0;var e=u(Wl()),t=ya(),r=u(Zm()),n=u(th()),o=u(rh()),a=u(oh()),i=u(ah()),s=u(uh()),l=u(ch());function u(C){return C&&C.__esModule?C:{default:C}}const f=Object.prototype.toString,d=Date.prototype.toISOString,c=Error.prototype.toString,h=RegExp.prototype.toString,v=C=>typeof C.constructor=="function"&&C.constructor.name||"Object",R=C=>typeof window<"u"&&C===window,S=/^Symbol\((.*)\)(.*)$/,p=/\n/gi;class q extends Error{constructor($,I){super($),this.stack=I,this.name=this.constructor.name}}function _(C){return C==="[object Array]"||C==="[object ArrayBuffer]"||C==="[object DataView]"||C==="[object Float32Array]"||C==="[object Float64Array]"||C==="[object Int8Array]"||C==="[object Int16Array]"||C==="[object Int32Array]"||C==="[object Uint8Array]"||C==="[object Uint8ClampedArray]"||C==="[object Uint16Array]"||C==="[object Uint32Array]"}function T(C){return Object.is(C,-0)?"-0":String(C)}function P(C){return`${C}n`}function y(C,$){return $?"[Function "+(C.name||"anonymous")+"]":"[Function]"}function g(C){return String(C).replace(S,"Symbol($1)")}function E(C){return"["+c.call(C)+"]"}function A(C,$,I,Q){if(C===!0||C===!1)return""+C;if(C===void 0)return"undefined";if(C===null)return"null";const W=typeof C;if(W==="number")return T(C);if(W==="bigint")return P(C);if(W==="string")return Q?'"'+C.replace(/"|\\/g,"\\$&")+'"':'"'+C+'"';if(W==="function")return y(C,$);if(W==="symbol")return g(C);const ie=f.call(C);return ie==="[object WeakMap]"?"WeakMap {}":ie==="[object WeakSet]"?"WeakSet {}":ie==="[object Function]"||ie==="[object GeneratorFunction]"?y(C,$):ie==="[object Symbol]"?g(C):ie==="[object Date]"?isNaN(+C)?"Date { NaN }":d.call(C):ie==="[object Error]"?E(C):ie==="[object RegExp]"?I?h.call(C).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):h.call(C):C instanceof Error?E(C):null}function D(C,$,I,Q,W,ie){if(W.indexOf(C)!==-1)return"[Circular]";W=W.slice(),W.push(C);const he=++Q>$.maxDepth,ye=$.min;if($.callToJSON&&!he&&C.toJSON&&typeof C.toJSON=="function"&&!ie)return k(C.toJSON(),$,I,Q,W,!0);const Je=f.call(C);return Je==="[object Arguments]"?he?"[Arguments]":(ye?"":"Arguments ")+"["+(0,t.printListItems)(C,$,I,Q,W,k)+"]":_(Je)?he?"["+C.constructor.name+"]":(ye||!$.printBasicPrototype&&C.constructor.name==="Array"?"":C.constructor.name+" ")+"["+(0,t.printListItems)(C,$,I,Q,W,k)+"]":Je==="[object Map]"?he?"[Map]":"Map {"+(0,t.printIteratorEntries)(C.entries(),$,I,Q,W,k," => ")+"}":Je==="[object Set]"?he?"[Set]":"Set {"+(0,t.printIteratorValues)(C.values(),$,I,Q,W,k)+"}":he||R(C)?"["+v(C)+"]":(ye||!$.printBasicPrototype&&v(C)==="Object"?"":v(C)+" ")+"{"+(0,t.printObjectProperties)(C,$,I,Q,W,k)+"}"}function j(C){return C.serialize!=null}function L(C,$,I,Q,W,ie){let he;try{he=j(C)?C.serialize($,I,Q,W,ie,k):C.print($,ye=>k(ye,I,Q,W,ie),ye=>{const Je=Q+I.indent;return Je+ye.replace(p,`
260
- `+Je)},{edgeSpacing:I.spacingOuter,min:I.min,spacing:I.spacingInner},I.colors)}catch(ye){throw new q(ye.message,ye.stack)}if(typeof he!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof he}".`);return he}function O(C,$){for(let I=0;I<C.length;I++)try{if(C[I].test($))return C[I]}catch(Q){throw new q(Q.message,Q.stack)}return null}function k(C,$,I,Q,W,ie){const he=O($.plugins,C);if(he!==null)return L(he,C,$,I,Q,W);const ye=A(C,$.printFunctionName,$.escapeRegex,$.escapeString);return ye!==null?ye:D(C,$,I,Q,W,ie)}const F={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},Z=Object.keys(F),K={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:F};Ie.DEFAULT_OPTIONS=K;function ue(C){if(Object.keys(C).forEach($=>{if(!K.hasOwnProperty($))throw new Error(`pretty-format: Unknown option "${$}".`)}),C.min&&C.indent!==void 0&&C.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(C.theme!==void 0){if(C.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof C.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof C.theme}".`)}}const Re=C=>Z.reduce(($,I)=>{const Q=C.theme&&C.theme[I]!==void 0?C.theme[I]:F[I],W=Q&&e.default[Q];if(W&&typeof W.close=="string"&&typeof W.open=="string")$[I]=W;else throw new Error(`pretty-format: Option "theme" has a key "${I}" whose value "${Q}" is undefined in ansi-styles.`);return $},Object.create(null)),M=()=>Z.reduce((C,$)=>(C[$]={close:"",open:""},C),Object.create(null)),U=C=>C&&C.printFunctionName!==void 0?C.printFunctionName:K.printFunctionName,J=C=>C&&C.escapeRegex!==void 0?C.escapeRegex:K.escapeRegex,B=C=>C&&C.escapeString!==void 0?C.escapeString:K.escapeString,de=C=>{var $;return{callToJSON:C&&C.callToJSON!==void 0?C.callToJSON:K.callToJSON,colors:C&&C.highlight?Re(C):M(),compareKeys:C&&typeof C.compareKeys=="function"?C.compareKeys:K.compareKeys,escapeRegex:J(C),escapeString:B(C),indent:C&&C.min?"":ce(C&&C.indent!==void 0?C.indent:K.indent),maxDepth:C&&C.maxDepth!==void 0?C.maxDepth:K.maxDepth,min:C&&C.min!==void 0?C.min:K.min,plugins:C&&C.plugins!==void 0?C.plugins:K.plugins,printBasicPrototype:($=C?.printBasicPrototype)!==null&&$!==void 0?$:!0,printFunctionName:U(C),spacingInner:C&&C.min?" ":`
261
- `,spacingOuter:C&&C.min?"":`
262
- `}};function ce(C){return new Array(C+1).join(" ")}function ve(C,$){if($&&(ue($),$.plugins)){const Q=O($.plugins,C);if(Q!==null)return L(Q,C,de($),"",0,[])}const I=A(C,U($),J($),B($));return I!==null?I:D(C,de($),"",0,[])}const Xe={AsymmetricMatcher:r.default,ConvertAnsi:n.default,DOMCollection:o.default,DOMElement:a.default,Immutable:i.default,ReactElement:s.default,ReactTestComponent:l.default};Ie.plugins=Xe;var ae=ve;return Ie.default=ae,Ie}var lu=dh(),fh=Object.prototype.toString;function ph(e){return typeof e=="function"||fh.call(e)==="[object Function]"}function mh(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var hh=Math.pow(2,53)-1;function bh(e){var t=mh(e);return Math.min(Math.max(t,0),hh)}function Se(e,t){var r=Array,n=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");for(var o=bh(n.length),a=ph(r)?Object(new r(o)):new Array(o),i=0,s;i<o;)s=n[i],a[i]=s,i+=1;return a.length=o,a}function Yt(e){"@babel/helpers - typeof";return Yt=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},Yt(e)}function vh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,uu(n.key),n)}}function gh(e,t,r){return t&&yh(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rh(e,t,r){return t=uu(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uu(e){var t=wh(e,"string");return Yt(t)==="symbol"?t:String(t)}function wh(e,t){if(Yt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Eh=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];vh(this,e),Rh(this,"items",void 0),this.items=t}return gh(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 n=this.items.length;return this.items=this.items.filter(function(o){return o!==r}),n!==this.items.length}},{key:"forEach",value:function(r){var n=this;this.items.forEach(function(o){r(o,o,n)})}},{key:"has",value:function(r){return this.items.indexOf(r)!==-1}},{key:"size",get:function(){return this.items.length}}]),e})();const Ch=typeof Set>"u"?Set:Eh;function pe(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var xh={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"},qh={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 _h(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 n;return e.hasAttribute(r)&&!((n=qh[t])!==null&&n!==void 0&&n.has(r))})}function cu(e,t){return _h(e,t)}function Ph(e){var t=Sh(e);if(t===null||t==="presentation"){var r=Th(e);if(t!=="presentation"||cu(e,r||""))return r}return t}function Th(e){var t=xh[pe(e)];if(t!==void 0)return t;switch(pe(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!cu(e,"img")?"presentation":"img";case"input":{var r=e,n=r.type;switch(n){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return n;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 Sh(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}function ne(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function du(e){return ne(e)&&pe(e)==="caption"}function wa(e){return ne(e)&&pe(e)==="input"}function Oh(e){return ne(e)&&pe(e)==="optgroup"}function Ah(e){return ne(e)&&pe(e)==="select"}function Mh(e){return ne(e)&&pe(e)==="table"}function Ih(e){return ne(e)&&pe(e)==="textarea"}function Nh(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function kh(e){return ne(e)&&pe(e)==="fieldset"}function Dh(e){return ne(e)&&pe(e)==="legend"}function jh(e){return ne(e)&&pe(e)==="slot"}function Bh(e){return ne(e)&&e.ownerSVGElement!==void 0}function Lh(e){return ne(e)&&pe(e)==="svg"}function $h(e){return Bh(e)&&pe(e)==="title"}function Ea(e,t){if(ne(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(o){return n.getElementById(o)}).filter(function(o){return o!==null})}return[]}function He(e,t){return ne(e)?t.indexOf(Ph(e))!==-1:!1}function Fh(e){return e.trim().replace(/\s\s+/g," ")}function Uh(e,t){if(!ne(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 zh(e){return He(e,["button","combobox","listbox","textbox"])||fu(e,"range")}function fu(e,t){if(!ne(e))return!1;switch(t){case"range":return He(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=Se(e.querySelectorAll(t));return Ea(e,"aria-owns").forEach(function(n){r.push.apply(r,Se(n.querySelectorAll(t)))}),r}function Vh(e){return Ah(e)?e.selectedOptions||pu(e,"[selected]"):pu(e,'[aria-selected="true"]')}function Hh(e){return He(e,["none","presentation"])}function Wh(e){return du(e)}function Gh(e){return He(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function Kh(e){return!1}function Yh(e){return wa(e)||Ih(e)?e.value:e.textContent||""}function mu(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function hu(e){var t=pe(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function bu(e){if(hu(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&ne(r)){var n=bu(r);n!==null&&(t=n)}}),t}function Xh(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):bu(e)}function Jh(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return Se(t);if(!hu(e))return null;var r=e.ownerDocument;return Se(r.querySelectorAll("label")).filter(function(n){return Xh(n)===e})}function Qh(e){var t=e.assignedNodes();return t.length===0?Se(e.childNodes):t}function vu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new Ch,n=Nh(e),o=t.compute,a=o===void 0?"name":o,i=t.computedStyleSupportsPseudoElements,s=i===void 0?t.getComputedStyle!==void 0:i,l=t.getComputedStyle,u=l===void 0?n.getComputedStyle.bind(n):l,f=t.hidden,d=f===void 0?!1:f;function c(p,q){var _="";if(ne(p)&&s){var T=u(p,"::before"),P=mu(T);_="".concat(P," ").concat(_)}var y=jh(p)?Qh(p):Se(p.childNodes).concat(Ea(p,"aria-owns"));if(y.forEach(function(A){var D=S(A,{isEmbeddedInLabel:q.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),j=ne(A)?u(A).getPropertyValue("display"):"inline",L=j!=="inline"?" ":"";_+="".concat(L).concat(D).concat(L)}),ne(p)&&s){var g=u(p,"::after"),E=mu(g);_="".concat(_," ").concat(E)}return _.trim()}function h(p,q){var _=p.getAttributeNode(q);return _!==null&&!r.has(_)&&_.value.trim()!==""?(r.add(_),_.value):null}function v(p){return ne(p)?h(p,"title"):null}function R(p){if(!ne(p))return null;if(kh(p)){r.add(p);for(var q=Se(p.childNodes),_=0;_<q.length;_+=1){var T=q[_];if(Dh(T))return S(T,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(Mh(p)){r.add(p);for(var P=Se(p.childNodes),y=0;y<P.length;y+=1){var g=P[y];if(du(g))return S(g,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(Lh(p)){r.add(p);for(var E=Se(p.childNodes),A=0;A<E.length;A+=1){var D=E[A];if($h(D))return D.textContent}return null}else if(pe(p)==="img"||pe(p)==="area"){var j=h(p,"alt");if(j!==null)return j}else if(Oh(p)){var L=h(p,"label");if(L!==null)return L}if(wa(p)&&(p.type==="button"||p.type==="submit"||p.type==="reset")){var O=h(p,"value");if(O!==null)return O;if(p.type==="submit")return"Submit";if(p.type==="reset")return"Reset"}var k=Jh(p);if(k!==null&&k.length!==0)return r.add(p),Se(k).map(function(ue){return S(ue,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(ue){return ue.length>0}).join(" ");if(wa(p)&&p.type==="image"){var F=h(p,"alt");if(F!==null)return F;var Z=h(p,"title");return Z!==null?Z:"Submit Query"}if(He(p,["button"])){var K=c(p,{isEmbeddedInLabel:!1});if(K!=="")return K}return null}function S(p,q){if(r.has(p))return"";if(!d&&Uh(p,u)&&!q.isReferenced)return r.add(p),"";var _=ne(p)?p.getAttributeNode("aria-labelledby"):null,T=_!==null&&!r.has(_)?Ea(p,"aria-labelledby"):[];if(a==="name"&&!q.isReferenced&&T.length>0)return r.add(_),T.map(function(j){return S(j,{isEmbeddedInLabel:q.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var P=q.recursion&&zh(p)&&a==="name";if(!P){var y=(ne(p)&&p.getAttribute("aria-label")||"").trim();if(y!==""&&a==="name")return r.add(p),y;if(!Hh(p)){var g=R(p);if(g!==null)return r.add(p),g}}if(He(p,["menu"]))return r.add(p),"";if(P||q.isEmbeddedInLabel||q.isReferenced){if(He(p,["combobox","listbox"])){r.add(p);var E=Vh(p);return E.length===0?wa(p)?p.value:"":Se(E).map(function(j){return S(j,{isEmbeddedInLabel:q.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(fu(p,"range"))return r.add(p),p.hasAttribute("aria-valuetext")?p.getAttribute("aria-valuetext"):p.hasAttribute("aria-valuenow")?p.getAttribute("aria-valuenow"):p.getAttribute("value")||"";if(He(p,["textbox"]))return r.add(p),Yh(p)}if(Gh(p)||ne(p)&&q.isReferenced||Wh(p)||Kh()){var A=c(p,{isEmbeddedInLabel:q.isEmbeddedInLabel});if(A!=="")return r.add(p),A}if(p.nodeType===p.TEXT_NODE)return r.add(p),p.textContent||"";if(q.recursion)return r.add(p),c(p,{isEmbeddedInLabel:q.isEmbeddedInLabel});var D=v(p);return D!==null?(r.add(p),D):(r.add(p),"")}return Fh(S(e,{isEmbeddedInLabel:!1,isReferenced:a==="description",recursion:!1}))}function Xt(e){"@babel/helpers - typeof";return Xt=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},Xt(e)}function yu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function gu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yu(Object(r),!0).forEach(function(n){Zh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Zh(e,t,r){return t=eb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eb(e){var t=tb(e,"string");return Xt(t)==="symbol"?t:String(t)}function tb(e,t){if(Xt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ru(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Ea(e,"aria-describedby").map(function(o){return vu(o,gu(gu({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("title");r=n===null?"":n}return r}function rb(e){return He(e,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}function Ji(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return rb(e)?"":vu(e,t)}var Ee={},Jt={},Ca={},Qt={},wu;function nb(){if(wu)return Qt;wu=1,Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.default=void 0;function e(){var r=this,n=0,o={"@@iterator":function(){return o},next:function(){if(n<r.length){var i=r[n];return n=n+1,{done:!1,value:i}}else return{done:!0}}};return o}var t=e;return Qt.default=t,Qt}var Eu;function Zt(){if(Eu)return Ca;Eu=1,Object.defineProperty(Ca,"__esModule",{value:!0}),Ca.default=n;var e=t(nb());function t(o){return o&&o.__esModule?o:{default:o}}function r(o){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},r(o)}function n(o,a){return typeof Symbol=="function"&&r(Symbol.iterator)==="symbol"&&Object.defineProperty(o,Symbol.iterator,{value:e.default.bind(a)}),o}return Ca}var Cu;function ob(){if(Cu)return Jt;Cu=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.default=void 0;var e=t(Zt());function t(c){return c&&c.__esModule?c:{default:c}}function r(c,h){return a(c)||o(c,h)||s(c,h)||n()}function n(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
263
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(c,h){var v=c==null?null:typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(v!=null){var R=[],S=!0,p=!1,q,_;try{for(v=v.call(c);!(S=(q=v.next()).done)&&(R.push(q.value),!(h&&R.length===h));S=!0);}catch(T){p=!0,_=T}finally{try{!S&&v.return!=null&&v.return()}finally{if(p)throw _}}return R}}function a(c){if(Array.isArray(c))return c}function i(c,h){var v=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!v){if(Array.isArray(c)||(v=s(c))||h){v&&(c=v);var R=0,S=function(){};return{s:S,n:function(){return R>=c.length?{done:!0}:{done:!1,value:c[R++]}},e:function(P){throw P},f:S}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
264
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,q=!1,_;return{s:function(){v=v.call(c)},n:function(){var P=v.next();return p=P.done,P},e:function(P){q=!0,_=P},f:function(){try{!p&&v.return!=null&&v.return()}finally{if(q)throw _}}}}function s(c,h){if(c){if(typeof c=="string")return l(c,h);var v=Object.prototype.toString.call(c).slice(8,-1);if(v==="Object"&&c.constructor&&(v=c.constructor.name),v==="Map"||v==="Set")return Array.from(c);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return l(c,h)}}function l(c,h){(h==null||h>c.length)&&(h=c.length);for(var v=0,R=new Array(h);v<h;v++)R[v]=c[v];return R}var u=[["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"}]],f={entries:function(){return u},forEach:function(h){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,R=i(u),S;try{for(R.s();!(S=R.n()).done;){var p=r(S.value,2),q=p[0],_=p[1];h.call(v,_,q,u)}}catch(T){R.e(T)}finally{R.f()}},get:function(h){var v=u.find(function(R){return R[0]===h});return v&&v[1]},has:function(h){return!!f.get(h)},keys:function(){return u.map(function(h){var v=r(h,1),R=v[0];return R})},values:function(){return u.map(function(h){var v=r(h,2),R=v[1];return R})}},d=(0,e.default)(f,f.entries());return Jt.default=d,Jt}var er={},xu;function ab(){if(xu)return er;xu=1,Object.defineProperty(er,"__esModule",{value:!0}),er.default=void 0;var e=t(Zt());function t(c){return c&&c.__esModule?c:{default:c}}function r(c,h){return a(c)||o(c,h)||s(c,h)||n()}function n(){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 o(c,h){var v=c==null?null:typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(v!=null){var R=[],S=!0,p=!1,q,_;try{for(v=v.call(c);!(S=(q=v.next()).done)&&(R.push(q.value),!(h&&R.length===h));S=!0);}catch(T){p=!0,_=T}finally{try{!S&&v.return!=null&&v.return()}finally{if(p)throw _}}return R}}function a(c){if(Array.isArray(c))return c}function i(c,h){var v=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!v){if(Array.isArray(c)||(v=s(c))||h){v&&(c=v);var R=0,S=function(){};return{s:S,n:function(){return R>=c.length?{done:!0}:{done:!1,value:c[R++]}},e:function(P){throw P},f:S}}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 p=!0,q=!1,_;return{s:function(){v=v.call(c)},n:function(){var P=v.next();return p=P.done,P},e:function(P){q=!0,_=P},f:function(){try{!p&&v.return!=null&&v.return()}finally{if(q)throw _}}}}function s(c,h){if(c){if(typeof c=="string")return l(c,h);var v=Object.prototype.toString.call(c).slice(8,-1);if(v==="Object"&&c.constructor&&(v=c.constructor.name),v==="Map"||v==="Set")return Array.from(c);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return l(c,h)}}function l(c,h){(h==null||h>c.length)&&(h=c.length);for(var v=0,R=new Array(h);v<h;v++)R[v]=c[v];return R}var u=[["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}]],f={entries:function(){return u},forEach:function(h){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,R=i(u),S;try{for(R.s();!(S=R.n()).done;){var p=r(S.value,2),q=p[0],_=p[1];h.call(v,_,q,u)}}catch(T){R.e(T)}finally{R.f()}},get:function(h){var v=u.find(function(R){return R[0]===h});return v&&v[1]},has:function(h){return!!f.get(h)},keys:function(){return u.map(function(h){var v=r(h,1),R=v[0];return R})},values:function(){return u.map(function(h){var v=r(h,2),R=v[1];return R})}},d=(0,e.default)(f,f.entries());return er.default=d,er}var tr={},rr={},nr={},qu;function ib(){if(qu)return nr;qu=1,Object.defineProperty(nr,"__esModule",{value:!0}),nr.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},t=e;return nr.default=t,nr}var or={},_u;function sb(){if(_u)return or;_u=1,Object.defineProperty(or,"__esModule",{value:!0}),or.default=void 0;var e={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"]]},t=e;return or.default=t,or}var ar={},Pu;function lb(){if(Pu)return ar;Pu=1,Object.defineProperty(ar,"__esModule",{value:!0}),ar.default=void 0;var e={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"]]},t=e;return ar.default=t,ar}var ir={},Tu;function ub(){if(Tu)return ir;Tu=1,Object.defineProperty(ir,"__esModule",{value:!0}),ir.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return ir.default=t,ir}var sr={},Su;function cb(){if(Su)return sr;Su=1,Object.defineProperty(sr,"__esModule",{value:!0}),sr.default=void 0;var e={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"]]},t=e;return sr.default=t,sr}var lr={},Ou;function db(){if(Ou)return lr;Ou=1,Object.defineProperty(lr,"__esModule",{value:!0}),lr.default=void 0;var e={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:[]},t=e;return lr.default=t,lr}var ur={},Au;function fb(){if(Au)return ur;Au=1,Object.defineProperty(ur,"__esModule",{value:!0}),ur.default=void 0;var e={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"]]},t=e;return ur.default=t,ur}var cr={},Mu;function pb(){if(Mu)return cr;Mu=1,Object.defineProperty(cr,"__esModule",{value:!0}),cr.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},t=e;return cr.default=t,cr}var dr={},Iu;function mb(){if(Iu)return dr;Iu=1,Object.defineProperty(dr,"__esModule",{value:!0}),dr.default=void 0;var e={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"]]},t=e;return dr.default=t,dr}var fr={},Nu;function hb(){if(Nu)return fr;Nu=1,Object.defineProperty(fr,"__esModule",{value:!0}),fr.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},t=e;return fr.default=t,fr}var pr={},ku;function bb(){if(ku)return pr;ku=1,Object.defineProperty(pr,"__esModule",{value:!0}),pr.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},t=e;return pr.default=t,pr}var mr={},Du;function vb(){if(Du)return mr;Du=1,Object.defineProperty(mr,"__esModule",{value:!0}),mr.default=void 0;var e={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},t=e;return mr.default=t,mr}var ju;function yb(){if(ju)return rr;ju=1,Object.defineProperty(rr,"__esModule",{value:!0}),rr.default=void 0;var e=c(ib()),t=c(sb()),r=c(lb()),n=c(ub()),o=c(cb()),a=c(db()),i=c(fb()),s=c(pb()),l=c(mb()),u=c(hb()),f=c(bb()),d=c(vb());function c(R){return R&&R.__esModule?R:{default:R}}var h=[["command",e.default],["composite",t.default],["input",r.default],["landmark",n.default],["range",o.default],["roletype",a.default],["section",i.default],["sectionhead",s.default],["select",l.default],["structure",u.default],["widget",f.default],["window",d.default]],v=h;return rr.default=v,rr}var hr={},br={},Bu;function gb(){if(Bu)return br;Bu=1,Object.defineProperty(br,"__esModule",{value:!0}),br.default=void 0;var e={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"]]},t=e;return br.default=t,br}var vr={},Lu;function Rb(){if(Lu)return vr;Lu=1,Object.defineProperty(vr,"__esModule",{value:!0}),vr.default=void 0;var e={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"]]},t=e;return vr.default=t,vr}var yr={},$u;function wb(){if($u)return yr;$u=1,Object.defineProperty(yr,"__esModule",{value:!0}),yr.default=void 0;var e={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"]]},t=e;return yr.default=t,yr}var gr={},Fu;function Eb(){if(Fu)return gr;Fu=1,Object.defineProperty(gr,"__esModule",{value:!0}),gr.default=void 0;var e={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"]]},t=e;return gr.default=t,gr}var Rr={},Uu;function Cb(){if(Uu)return Rr;Uu=1,Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.default=void 0;var e={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"]]},t=e;return Rr.default=t,Rr}var wr={},zu;function xb(){if(zu)return wr;zu=1,Object.defineProperty(wr,"__esModule",{value:!0}),wr.default=void 0;var e={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"]]},t=e;return wr.default=t,wr}var Er={},Vu;function qb(){if(Vu)return Er;Vu=1,Object.defineProperty(Er,"__esModule",{value:!0}),Er.default=void 0;var e={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"]]},t=e;return Er.default=t,Er}var Cr={},Hu;function _b(){if(Hu)return Cr;Hu=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.default=void 0;var e={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"]]},t=e;return Cr.default=t,Cr}var xr={},Wu;function Pb(){if(Wu)return xr;Wu=1,Object.defineProperty(xr,"__esModule",{value:!0}),xr.default=void 0;var e={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"]]},t=e;return xr.default=t,xr}var qr={},Gu;function Tb(){if(Gu)return qr;Gu=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.default=void 0;var e={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"]]},t=e;return qr.default=t,qr}var _r={},Ku;function Sb(){if(Ku)return _r;Ku=1,Object.defineProperty(_r,"__esModule",{value:!0}),_r.default=void 0;var e={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"]]},t=e;return _r.default=t,_r}var Pr={},Yu;function Ob(){if(Yu)return Pr;Yu=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.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"]]},t=e;return Pr.default=t,Pr}var Tr={},Xu;function Ab(){if(Xu)return Tr;Xu=1,Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.default=void 0;var e={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=e;return Tr.default=t,Tr}var Sr={},Ju;function Mb(){if(Ju)return Sr;Ju=1,Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.default=void 0;var e={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"]]},t=e;return Sr.default=t,Sr}var Or={},Qu;function Ib(){if(Qu)return Or;Qu=1,Object.defineProperty(Or,"__esModule",{value:!0}),Or.default=void 0;var e={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"]]},t=e;return Or.default=t,Or}var Ar={},Zu;function Nb(){if(Zu)return Ar;Zu=1,Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.default=void 0;var e={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"]]},t=e;return Ar.default=t,Ar}var Mr={},ec;function kb(){if(ec)return Mr;ec=1,Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.default=void 0;var e={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"]]},t=e;return Mr.default=t,Mr}var Ir={},tc;function Db(){if(tc)return Ir;tc=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]},t=e;return Ir.default=t,Ir}var Nr={},rc;function jb(){if(rc)return Nr;rc=1,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]},t=e;return Nr.default=t,Nr}var kr={},nc;function Bb(){if(nc)return kr;nc=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr.default=void 0;var e={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"]]},t=e;return kr.default=t,kr}var Dr={},oc;function Lb(){if(oc)return Dr;oc=1,Object.defineProperty(Dr,"__esModule",{value:!0}),Dr.default=void 0;var e={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"]]},t=e;return Dr.default=t,Dr}var jr={},ac;function $b(){if(ac)return jr;ac=1,Object.defineProperty(jr,"__esModule",{value:!0}),jr.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]},t=e;return jr.default=t,jr}var Br={},ic;function Fb(){if(ic)return Br;ic=1,Object.defineProperty(Br,"__esModule",{value:!0}),Br.default=void 0;var e={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"]]},t=e;return Br.default=t,Br}var Lr={},sc;function Ub(){if(sc)return Lr;sc=1,Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.default=void 0;var e={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"]]},t=e;return Lr.default=t,Lr}var $r={},lc;function zb(){if(lc)return $r;lc=1,Object.defineProperty($r,"__esModule",{value:!0}),$r.default=void 0;var e={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"]]},t=e;return $r.default=t,$r}var Fr={},uc;function Vb(){if(uc)return Fr;uc=1,Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.default=void 0;var e={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"]]},t=e;return Fr.default=t,Fr}var Ur={},cc;function Hb(){if(cc)return Ur;cc=1,Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.default=void 0;var e={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"]]},t=e;return Ur.default=t,Ur}var zr={},dc;function Wb(){if(dc)return zr;dc=1,Object.defineProperty(zr,"__esModule",{value:!0}),zr.default=void 0;var e={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"]]},t=e;return zr.default=t,zr}var Vr={},fc;function Gb(){if(fc)return Vr;fc=1,Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.default=void 0;var e={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"]]},t=e;return Vr.default=t,Vr}var Hr={},pc;function Kb(){if(pc)return Hr;pc=1,Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.default=void 0;var e={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"]]},t=e;return Hr.default=t,Hr}var Wr={},mc;function Yb(){if(mc)return Wr;mc=1,Object.defineProperty(Wr,"__esModule",{value:!0}),Wr.default=void 0;var e={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"]]},t=e;return Wr.default=t,Wr}var Gr={},hc;function Xb(){if(hc)return Gr;hc=1,Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.default=void 0;var e={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"]]},t=e;return Gr.default=t,Gr}var Kr={},bc;function Jb(){if(bc)return Kr;bc=1,Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.default=void 0;var e={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"]]},t=e;return Kr.default=t,Kr}var Yr={},vc;function Qb(){if(vc)return Yr;vc=1,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.default=void 0;var e={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"]]},t=e;return Yr.default=t,Yr}var Xr={},yc;function Zb(){if(yc)return Xr;yc=1,Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.default=void 0;var e={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"]]},t=e;return Xr.default=t,Xr}var Jr={},gc;function ev(){if(gc)return Jr;gc=1,Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Jr.default=t,Jr}var Qr={},Rc;function tv(){if(Rc)return Qr;Rc=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.default=void 0;var e={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"]]},t=e;return Qr.default=t,Qr}var Zr={},wc;function rv(){if(wc)return Zr;wc=1,Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.default=void 0;var e={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"]]},t=e;return Zr.default=t,Zr}var en={},Ec;function nv(){if(Ec)return en;Ec=1,Object.defineProperty(en,"__esModule",{value:!0}),en.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return en.default=t,en}var tn={},Cc;function ov(){if(Cc)return tn;Cc=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.default=void 0;var e={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"]]},t=e;return tn.default=t,tn}var rn={},xc;function av(){if(xc)return rn;xc=1,Object.defineProperty(rn,"__esModule",{value:!0}),rn.default=void 0;var e={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"]]},t=e;return rn.default=t,rn}var nn={},qc;function iv(){if(qc)return nn;qc=1,Object.defineProperty(nn,"__esModule",{value:!0}),nn.default=void 0;var e={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"]]},t=e;return nn.default=t,nn}var on={},_c;function sv(){if(_c)return on;_c=1,Object.defineProperty(on,"__esModule",{value:!0}),on.default=void 0;var e={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"]]},t=e;return on.default=t,on}var an={},Pc;function lv(){if(Pc)return an;Pc=1,Object.defineProperty(an,"__esModule",{value:!0}),an.default=void 0;var e={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"]]},t=e;return an.default=t,an}var sn={},Tc;function uv(){if(Tc)return sn;Tc=1,Object.defineProperty(sn,"__esModule",{value:!0}),sn.default=void 0;var e={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"]]},t=e;return sn.default=t,sn}var ln={},Sc;function cv(){if(Sc)return ln;Sc=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.default=void 0;var e={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"]]},t=e;return ln.default=t,ln}var un={},Oc;function dv(){if(Oc)return un;Oc=1,Object.defineProperty(un,"__esModule",{value:!0}),un.default=void 0;var e={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"]]},t=e;return un.default=t,un}var cn={},Ac;function fv(){if(Ac)return cn;Ac=1,Object.defineProperty(cn,"__esModule",{value:!0}),cn.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},t=e;return cn.default=t,cn}var dn={},Mc;function pv(){if(Mc)return dn;Mc=1,Object.defineProperty(dn,"__esModule",{value:!0}),dn.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return dn.default=t,dn}var fn={},Ic;function mv(){if(Ic)return fn;Ic=1,Object.defineProperty(fn,"__esModule",{value:!0}),fn.default=void 0;var e={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"]]},t=e;return fn.default=t,fn}var pn={},Nc;function hv(){if(Nc)return pn;Nc=1,Object.defineProperty(pn,"__esModule",{value:!0}),pn.default=void 0;var e={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"]]},t=e;return pn.default=t,pn}var mn={},kc;function bv(){if(kc)return mn;kc=1,Object.defineProperty(mn,"__esModule",{value:!0}),mn.default=void 0;var e={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"]]},t=e;return mn.default=t,mn}var hn={},Dc;function vv(){if(Dc)return hn;Dc=1,Object.defineProperty(hn,"__esModule",{value:!0}),hn.default=void 0;var e={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"]]},t=e;return hn.default=t,hn}var bn={},jc;function yv(){if(jc)return bn;jc=1,Object.defineProperty(bn,"__esModule",{value:!0}),bn.default=void 0;var e={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"]]},t=e;return bn.default=t,bn}var vn={},Bc;function gv(){if(Bc)return vn;Bc=1,Object.defineProperty(vn,"__esModule",{value:!0}),vn.default=void 0;var e={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"]]},t=e;return vn.default=t,vn}var yn={},Lc;function Rv(){if(Lc)return yn;Lc=1,Object.defineProperty(yn,"__esModule",{value:!0}),yn.default=void 0;var e={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"]]},t=e;return yn.default=t,yn}var gn={},$c;function wv(){if($c)return gn;$c=1,Object.defineProperty(gn,"__esModule",{value:!0}),gn.default=void 0;var e={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"]]},t=e;return gn.default=t,gn}var Rn={},Fc;function Ev(){if(Fc)return Rn;Fc=1,Object.defineProperty(Rn,"__esModule",{value:!0}),Rn.default=void 0;var e={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"]]},t=e;return Rn.default=t,Rn}var wn={},Uc;function Cv(){if(Uc)return wn;Uc=1,Object.defineProperty(wn,"__esModule",{value:!0}),wn.default=void 0;var e={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"]]},t=e;return wn.default=t,wn}var En={},zc;function xv(){if(zc)return En;zc=1,Object.defineProperty(En,"__esModule",{value:!0}),En.default=void 0;var e={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"]]},t=e;return En.default=t,En}var Cn={},Vc;function qv(){if(Vc)return Cn;Vc=1,Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},t=e;return Cn.default=t,Cn}var xn={},Hc;function _v(){if(Hc)return xn;Hc=1,Object.defineProperty(xn,"__esModule",{value:!0}),xn.default=void 0;var e={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"]]},t=e;return xn.default=t,xn}var qn={},Wc;function Pv(){if(Wc)return qn;Wc=1,Object.defineProperty(qn,"__esModule",{value:!0}),qn.default=void 0;var e={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"]]},t=e;return qn.default=t,qn}var _n={},Gc;function Tv(){if(Gc)return _n;Gc=1,Object.defineProperty(_n,"__esModule",{value:!0}),_n.default=void 0;var e={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"]]},t=e;return _n.default=t,_n}var Pn={},Kc;function Sv(){if(Kc)return Pn;Kc=1,Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.default=void 0;var e={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"]]},t=e;return Pn.default=t,Pn}var Tn={},Yc;function Ov(){if(Yc)return Tn;Yc=1,Object.defineProperty(Tn,"__esModule",{value:!0}),Tn.default=void 0;var e={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=e;return Tn.default=t,Tn}var Sn={},Xc;function Av(){if(Xc)return Sn;Xc=1,Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.default=void 0;var e={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"]]},t=e;return Sn.default=t,Sn}var On={},Jc;function Mv(){if(Jc)return On;Jc=1,Object.defineProperty(On,"__esModule",{value:!0}),On.default=void 0;var e={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"]]},t=e;return On.default=t,On}var An={},Qc;function Iv(){if(Qc)return An;Qc=1,Object.defineProperty(An,"__esModule",{value:!0}),An.default=void 0;var e={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"]]},t=e;return An.default=t,An}var Mn={},Zc;function Nv(){if(Zc)return Mn;Zc=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.default=void 0;var e={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"]]},t=e;return Mn.default=t,Mn}var In={},ed;function kv(){if(ed)return In;ed=1,Object.defineProperty(In,"__esModule",{value:!0}),In.default=void 0;var e={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=e;return In.default=t,In}var Nn={},td;function Dv(){if(td)return Nn;td=1,Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.default=void 0;var e={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"]]},t=e;return Nn.default=t,Nn}var kn={},rd;function jv(){if(rd)return kn;rd=1,Object.defineProperty(kn,"__esModule",{value:!0}),kn.default=void 0;var e={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"]]},t=e;return kn.default=t,kn}var Dn={},nd;function Bv(){if(nd)return Dn;nd=1,Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Dn.default=t,Dn}var jn={},od;function Lv(){if(od)return jn;od=1,Object.defineProperty(jn,"__esModule",{value:!0}),jn.default=void 0;var e={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"]]},t=e;return jn.default=t,jn}var Bn={},ad;function $v(){if(ad)return Bn;ad=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.default=void 0;var e={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"]]},t=e;return Bn.default=t,Bn}var Ln={},id;function Fv(){if(id)return Ln;id=1,Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.default=void 0;var e={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"]]},t=e;return Ln.default=t,Ln}var $n={},sd;function Uv(){if(sd)return $n;sd=1,Object.defineProperty($n,"__esModule",{value:!0}),$n.default=void 0;var e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]},t=e;return $n.default=t,$n}var Fn={},ld;function zv(){if(ld)return Fn;ld=1,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.default=void 0;var e={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"]]},t=e;return Fn.default=t,Fn}var Un={},ud;function Vv(){if(ud)return Un;ud=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.default=void 0;var e={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t=e;return Un.default=t,Un}var zn={},cd;function Hv(){if(cd)return zn;cd=1,Object.defineProperty(zn,"__esModule",{value:!0}),zn.default=void 0;var e={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"]]},t=e;return zn.default=t,zn}var Vn={},dd;function Wv(){if(dd)return Vn;dd=1,Object.defineProperty(Vn,"__esModule",{value:!0}),Vn.default=void 0;var e={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"]]},t=e;return Vn.default=t,Vn}var Hn={},fd;function Gv(){if(fd)return Hn;fd=1,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.default=void 0;var e={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"]]},t=e;return Hn.default=t,Hn}var pd;function Kv(){if(pd)return hr;pd=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.default=void 0;var e=N(gb()),t=N(Rb()),r=N(wb()),n=N(Eb()),o=N(Cb()),a=N(xb()),i=N(qb()),s=N(_b()),l=N(Pb()),u=N(Tb()),f=N(Sb()),d=N(Ob()),c=N(Ab()),h=N(Mb()),v=N(Ib()),R=N(Nb()),S=N(kb()),p=N(Db()),q=N(jb()),_=N(Bb()),T=N(Lb()),P=N($b()),y=N(Fb()),g=N(Ub()),E=N(zb()),A=N(Vb()),D=N(Hb()),j=N(Wb()),L=N(Gb()),O=N(Kb()),k=N(Yb()),F=N(Xb()),Z=N(Jb()),K=N(Qb()),ue=N(Zb()),Re=N(ev()),M=N(tv()),U=N(rv()),J=N(nv()),B=N(ov()),de=N(av()),ce=N(iv()),ve=N(sv()),Xe=N(lv()),ae=N(uv()),C=N(cv()),$=N(dv()),I=N(fv()),Q=N(pv()),W=N(mv()),ie=N(hv()),he=N(bv()),ye=N(vv()),Je=N(yv()),cC=N(gv()),dC=N(Rv()),fC=N(wv()),pC=N(Ev()),mC=N(Cv()),hC=N(xv()),bC=N(qv()),vC=N(_v()),yC=N(Pv()),gC=N(Tv()),RC=N(Sv()),wC=N(Ov()),EC=N(Av()),CC=N(Mv()),xC=N(Iv()),qC=N(Nv()),_C=N(kv()),PC=N(Dv()),TC=N(jv()),SC=N(Bv()),OC=N(Lv()),AC=N($v()),MC=N(Fv()),IC=N(Uv()),NC=N(zv()),kC=N(Vv()),DC=N(Hv()),jC=N(Wv()),BC=N(Gv());function N(Fa){return Fa&&Fa.__esModule?Fa:{default:Fa}}var LC=[["alert",e.default],["alertdialog",t.default],["application",r.default],["article",n.default],["banner",o.default],["blockquote",a.default],["button",i.default],["caption",s.default],["cell",l.default],["checkbox",u.default],["code",f.default],["columnheader",d.default],["combobox",c.default],["complementary",h.default],["contentinfo",v.default],["definition",R.default],["deletion",S.default],["dialog",p.default],["directory",q.default],["document",_.default],["emphasis",T.default],["feed",P.default],["figure",y.default],["form",g.default],["generic",E.default],["grid",A.default],["gridcell",D.default],["group",j.default],["heading",L.default],["img",O.default],["insertion",k.default],["link",F.default],["list",Z.default],["listbox",K.default],["listitem",ue.default],["log",Re.default],["main",M.default],["mark",U.default],["marquee",J.default],["math",B.default],["menu",de.default],["menubar",ce.default],["menuitem",ve.default],["menuitemcheckbox",Xe.default],["menuitemradio",ae.default],["meter",C.default],["navigation",$.default],["none",I.default],["note",Q.default],["option",W.default],["paragraph",ie.default],["presentation",he.default],["progressbar",ye.default],["radio",Je.default],["radiogroup",cC.default],["region",dC.default],["row",fC.default],["rowgroup",pC.default],["rowheader",mC.default],["scrollbar",hC.default],["search",bC.default],["searchbox",vC.default],["separator",yC.default],["slider",gC.default],["spinbutton",RC.default],["status",wC.default],["strong",EC.default],["subscript",CC.default],["superscript",xC.default],["switch",qC.default],["tab",_C.default],["table",PC.default],["tablist",TC.default],["tabpanel",SC.default],["term",OC.default],["textbox",AC.default],["time",MC.default],["timer",IC.default],["toolbar",NC.default],["tooltip",kC.default],["tree",DC.default],["treegrid",jC.default],["treeitem",BC.default]],$C=LC;return hr.default=$C,hr}var Wn={},Gn={},md;function Yv(){if(md)return Gn;md=1,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.default=void 0;var e={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"]]},t=e;return Gn.default=t,Gn}var Kn={},hd;function Xv(){if(hd)return Kn;hd=1,Object.defineProperty(Kn,"__esModule",{value:!0}),Kn.default=void 0;var e={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"]]},t=e;return Kn.default=t,Kn}var Yn={},bd;function Jv(){if(bd)return Yn;bd=1,Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.default=void 0;var e={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"]]},t=e;return Yn.default=t,Yn}var Xn={},vd;function Qv(){if(vd)return Xn;vd=1,Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.default=void 0;var e={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"]]},t=e;return Xn.default=t,Xn}var Jn={},yd;function Zv(){if(yd)return Jn;yd=1,Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.default=void 0;var e={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"]]},t=e;return Jn.default=t,Jn}var Qn={},gd;function ey(){if(gd)return Qn;gd=1,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.default=void 0;var e={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"]]},t=e;return Qn.default=t,Qn}var Zn={},Rd;function ty(){if(Rd)return Zn;Rd=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.default=void 0;var e={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"]]},t=e;return Zn.default=t,Zn}var eo={},wd;function ry(){if(wd)return eo;wd=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=void 0;var e={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"]]},t=e;return eo.default=t,eo}var to={},Ed;function ny(){if(Ed)return to;Ed=1,Object.defineProperty(to,"__esModule",{value:!0}),to.default=void 0;var e={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"]]},t=e;return to.default=t,to}var ro={},Cd;function oy(){if(Cd)return ro;Cd=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.default=void 0;var e={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"]]},t=e;return ro.default=t,ro}var no={},xd;function ay(){if(xd)return no;xd=1,Object.defineProperty(no,"__esModule",{value:!0}),no.default=void 0;var e={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"]]},t=e;return no.default=t,no}var oo={},qd;function iy(){if(qd)return oo;qd=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.default=void 0;var e={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"]]},t=e;return oo.default=t,oo}var ao={},_d;function sy(){if(_d)return ao;_d=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.default=void 0;var e={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"]]},t=e;return ao.default=t,ao}var io={},Pd;function ly(){if(Pd)return io;Pd=1,Object.defineProperty(io,"__esModule",{value:!0}),io.default=void 0;var e={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"]]},t=e;return io.default=t,io}var so={},Td;function uy(){if(Td)return so;Td=1,Object.defineProperty(so,"__esModule",{value:!0}),so.default=void 0;var e={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"]]},t=e;return so.default=t,so}var lo={},Sd;function cy(){if(Sd)return lo;Sd=1,Object.defineProperty(lo,"__esModule",{value:!0}),lo.default=void 0;var e={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"]]},t=e;return lo.default=t,lo}var uo={},Od;function dy(){if(Od)return uo;Od=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.default=void 0;var e={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"]]},t=e;return uo.default=t,uo}var co={},Ad;function fy(){if(Ad)return co;Ad=1,Object.defineProperty(co,"__esModule",{value:!0}),co.default=void 0;var e={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"]]},t=e;return co.default=t,co}var fo={},Md;function py(){if(Md)return fo;Md=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.default=void 0;var e={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"]]},t=e;return fo.default=t,fo}var po={},Id;function my(){if(Id)return po;Id=1,Object.defineProperty(po,"__esModule",{value:!0}),po.default=void 0;var e={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"]]},t=e;return po.default=t,po}var mo={},Nd;function hy(){if(Nd)return mo;Nd=1,Object.defineProperty(mo,"__esModule",{value:!0}),mo.default=void 0;var e={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"]]},t=e;return mo.default=t,mo}var ho={},kd;function by(){if(kd)return ho;kd=1,Object.defineProperty(ho,"__esModule",{value:!0}),ho.default=void 0;var e={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"]]},t=e;return ho.default=t,ho}var bo={},Dd;function vy(){if(Dd)return bo;Dd=1,Object.defineProperty(bo,"__esModule",{value:!0}),bo.default=void 0;var e={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"]]},t=e;return bo.default=t,bo}var vo={},jd;function yy(){if(jd)return vo;jd=1,Object.defineProperty(vo,"__esModule",{value:!0}),vo.default=void 0;var e={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"]]},t=e;return vo.default=t,vo}var yo={},Bd;function gy(){if(Bd)return yo;Bd=1,Object.defineProperty(yo,"__esModule",{value:!0}),yo.default=void 0;var e={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"]]},t=e;return yo.default=t,yo}var go={},Ld;function Ry(){if(Ld)return go;Ld=1,Object.defineProperty(go,"__esModule",{value:!0}),go.default=void 0;var e={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"]]},t=e;return go.default=t,go}var Ro={},$d;function wy(){if($d)return Ro;$d=1,Object.defineProperty(Ro,"__esModule",{value:!0}),Ro.default=void 0;var e={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"]]},t=e;return Ro.default=t,Ro}var wo={},Fd;function Ey(){if(Fd)return wo;Fd=1,Object.defineProperty(wo,"__esModule",{value:!0}),wo.default=void 0;var e={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"]]},t=e;return wo.default=t,wo}var Eo={},Ud;function Cy(){if(Ud)return Eo;Ud=1,Object.defineProperty(Eo,"__esModule",{value:!0}),Eo.default=void 0;var e={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"]]},t=e;return Eo.default=t,Eo}var Co={},zd;function xy(){if(zd)return Co;zd=1,Object.defineProperty(Co,"__esModule",{value:!0}),Co.default=void 0;var e={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"]]},t=e;return Co.default=t,Co}var xo={},Vd;function qy(){if(Vd)return xo;Vd=1,Object.defineProperty(xo,"__esModule",{value:!0}),xo.default=void 0;var e={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"]]},t=e;return xo.default=t,xo}var qo={},Hd;function _y(){if(Hd)return qo;Hd=1,Object.defineProperty(qo,"__esModule",{value:!0}),qo.default=void 0;var e={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"]]},t=e;return qo.default=t,qo}var _o={},Wd;function Py(){if(Wd)return _o;Wd=1,Object.defineProperty(_o,"__esModule",{value:!0}),_o.default=void 0;var e={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"]]},t=e;return _o.default=t,_o}var Po={},Gd;function Ty(){if(Gd)return Po;Gd=1,Object.defineProperty(Po,"__esModule",{value:!0}),Po.default=void 0;var e={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"]]},t=e;return Po.default=t,Po}var To={},Kd;function Sy(){if(Kd)return To;Kd=1,Object.defineProperty(To,"__esModule",{value:!0}),To.default=void 0;var e={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"]]},t=e;return To.default=t,To}var So={},Yd;function Oy(){if(Yd)return So;Yd=1,Object.defineProperty(So,"__esModule",{value:!0}),So.default=void 0;var e={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"]]},t=e;return So.default=t,So}var Oo={},Xd;function Ay(){if(Xd)return Oo;Xd=1,Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.default=void 0;var e={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"]]},t=e;return Oo.default=t,Oo}var Ao={},Jd;function My(){if(Jd)return Ao;Jd=1,Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.default=void 0;var e={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"]]},t=e;return Ao.default=t,Ao}var Mo={},Qd;function Iy(){if(Qd)return Mo;Qd=1,Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.default=void 0;var e={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"]]},t=e;return Mo.default=t,Mo}var Zd;function Ny(){if(Zd)return Wn;Zd=1,Object.defineProperty(Wn,"__esModule",{value:!0}),Wn.default=void 0;var e=B(Yv()),t=B(Xv()),r=B(Jv()),n=B(Qv()),o=B(Zv()),a=B(ey()),i=B(ty()),s=B(ry()),l=B(ny()),u=B(oy()),f=B(ay()),d=B(iy()),c=B(sy()),h=B(ly()),v=B(uy()),R=B(cy()),S=B(dy()),p=B(fy()),q=B(py()),_=B(my()),T=B(hy()),P=B(by()),y=B(vy()),g=B(yy()),E=B(gy()),A=B(Ry()),D=B(wy()),j=B(Ey()),L=B(Cy()),O=B(xy()),k=B(qy()),F=B(_y()),Z=B(Py()),K=B(Ty()),ue=B(Sy()),Re=B(Oy()),M=B(Ay()),U=B(My()),J=B(Iy());function B(ve){return ve&&ve.__esModule?ve:{default:ve}}var de=[["doc-abstract",e.default],["doc-acknowledgments",t.default],["doc-afterword",r.default],["doc-appendix",n.default],["doc-backlink",o.default],["doc-biblioentry",a.default],["doc-bibliography",i.default],["doc-biblioref",s.default],["doc-chapter",l.default],["doc-colophon",u.default],["doc-conclusion",f.default],["doc-cover",d.default],["doc-credit",c.default],["doc-credits",h.default],["doc-dedication",v.default],["doc-endnote",R.default],["doc-endnotes",S.default],["doc-epigraph",p.default],["doc-epilogue",q.default],["doc-errata",_.default],["doc-example",T.default],["doc-footnote",P.default],["doc-foreword",y.default],["doc-glossary",g.default],["doc-glossref",E.default],["doc-index",A.default],["doc-introduction",D.default],["doc-noteref",j.default],["doc-notice",L.default],["doc-pagebreak",O.default],["doc-pagelist",k.default],["doc-part",F.default],["doc-preface",Z.default],["doc-prologue",K.default],["doc-pullquote",ue.default],["doc-qna",Re.default],["doc-subtitle",M.default],["doc-tip",U.default],["doc-toc",J.default]],ce=de;return Wn.default=ce,Wn}var Io={},No={},ef;function ky(){if(ef)return No;ef=1,Object.defineProperty(No,"__esModule",{value:!0}),No.default=void 0;var e={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"]]},t=e;return No.default=t,No}var ko={},tf;function Dy(){if(tf)return ko;tf=1,Object.defineProperty(ko,"__esModule",{value:!0}),ko.default=void 0;var e={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"]]},t=e;return ko.default=t,ko}var Do={},rf;function jy(){if(rf)return Do;rf=1,Object.defineProperty(Do,"__esModule",{value:!0}),Do.default=void 0;var e={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"]]},t=e;return Do.default=t,Do}var nf;function By(){if(nf)return Io;nf=1,Object.defineProperty(Io,"__esModule",{value:!0}),Io.default=void 0;var e=n(ky()),t=n(Dy()),r=n(jy());function n(i){return i&&i.__esModule?i:{default:i}}var o=[["graphics-document",e.default],["graphics-object",t.default],["graphics-symbol",r.default]],a=o;return Io.default=a,Io}var of;function Qi(){if(of)return tr;of=1,Object.defineProperty(tr,"__esModule",{value:!0}),tr.default=void 0;var e=a(yb()),t=a(Kv()),r=a(Ny()),n=a(By()),o=a(Zt());function a(p){return p&&p.__esModule?p:{default:p}}function i(p,q,_){return q in p?Object.defineProperty(p,q,{value:_,enumerable:!0,configurable:!0,writable:!0}):p[q]=_,p}function s(p,q){var _=typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(!_){if(Array.isArray(p)||(_=f(p))||q){_&&(p=_);var T=0,P=function(){};return{s:P,n:function(){return T>=p.length?{done:!0}:{done:!1,value:p[T++]}},e:function(D){throw D},f:P}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
267
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var y=!0,g=!1,E;return{s:function(){_=_.call(p)},n:function(){var D=_.next();return y=D.done,D},e:function(D){g=!0,E=D},f:function(){try{!y&&_.return!=null&&_.return()}finally{if(g)throw E}}}}function l(p,q){return h(p)||c(p,q)||f(p,q)||u()}function u(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
268
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(p,q){if(p){if(typeof p=="string")return d(p,q);var _=Object.prototype.toString.call(p).slice(8,-1);if(_==="Object"&&p.constructor&&(_=p.constructor.name),_==="Map"||_==="Set")return Array.from(p);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return d(p,q)}}function d(p,q){(q==null||q>p.length)&&(q=p.length);for(var _=0,T=new Array(q);_<q;_++)T[_]=p[_];return T}function c(p,q){var _=p==null?null:typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(_!=null){var T=[],P=!0,y=!1,g,E;try{for(_=_.call(p);!(P=(g=_.next()).done)&&(T.push(g.value),!(q&&T.length===q));P=!0);}catch(A){y=!0,E=A}finally{try{!P&&_.return!=null&&_.return()}finally{if(y)throw E}}return T}}function h(p){if(Array.isArray(p))return p}var v=[].concat(e.default,t.default,r.default,n.default);v.forEach(function(p){var q=l(p,2),_=q[1],T=s(_.superClass),P;try{for(T.s();!(P=T.n()).done;){var y=P.value,g=s(y),E;try{var A=function(){var j=E.value,L=v.find(function(K){var ue=l(K,1),Re=ue[0];return Re===j});if(L)for(var O=L[1],k=0,F=Object.keys(O.props);k<F.length;k++){var Z=F[k];Object.prototype.hasOwnProperty.call(_.props,Z)||Object.assign(_.props,i({},Z,O.props[Z]))}};for(g.s();!(E=g.n()).done;)A()}catch(D){g.e(D)}finally{g.f()}}}catch(D){T.e(D)}finally{T.f()}});var R={entries:function(){return v},forEach:function(q){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,T=s(v),P;try{for(T.s();!(P=T.n()).done;){var y=l(P.value,2),g=y[0],E=y[1];q.call(_,E,g,v)}}catch(A){T.e(A)}finally{T.f()}},get:function(q){var _=v.find(function(T){return T[0]===q});return _&&_[1]},has:function(q){return!!R.get(q)},keys:function(){return v.map(function(q){var _=l(q,1),T=_[0];return T})},values:function(){return v.map(function(q){var _=l(q,2),T=_[1];return T})}},S=(0,o.default)(R,R.entries());return tr.default=S,tr}var jo={},Zi={},af;function Ly(){if(af)return Zi;af=1;var e=Object.prototype.hasOwnProperty;function t(r,n){var o,a;if(r===n)return!0;if(r&&n&&(o=r.constructor)===n.constructor){if(o===Date)return r.getTime()===n.getTime();if(o===RegExp)return r.toString()===n.toString();if(o===Array){if((a=r.length)===n.length)for(;a--&&t(r[a],n[a]););return a===-1}if(!o||typeof r=="object"){a=0;for(o in r)if(e.call(r,o)&&++a&&!e.call(n,o)||!(o in n)||!t(r[o],n[o]))return!1;return Object.keys(n).length===a}}return r!==r&&n!==n}return Zi.dequal=t,Zi}var sf;function $y(){if(sf)return jo;sf=1,Object.defineProperty(jo,"__esModule",{value:!0}),jo.default=void 0;var e=Ly(),t=n(Zt()),r=n(Qi());function n(P){return P&&P.__esModule?P:{default:P}}function o(P,y){return s(P)||i(P,y)||u(P,y)||a()}function a(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
269
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(P,y){var g=P==null?null:typeof Symbol<"u"&&P[Symbol.iterator]||P["@@iterator"];if(g!=null){var E=[],A=!0,D=!1,j,L;try{for(g=g.call(P);!(A=(j=g.next()).done)&&(E.push(j.value),!(y&&E.length===y));A=!0);}catch(O){D=!0,L=O}finally{try{!A&&g.return!=null&&g.return()}finally{if(D)throw L}}return E}}function s(P){if(Array.isArray(P))return P}function l(P,y){var g=typeof Symbol<"u"&&P[Symbol.iterator]||P["@@iterator"];if(!g){if(Array.isArray(P)||(g=u(P))||y){g&&(P=g);var E=0,A=function(){};return{s:A,n:function(){return E>=P.length?{done:!0}:{done:!1,value:P[E++]}},e:function(k){throw k},f:A}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
270
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var D=!0,j=!1,L;return{s:function(){g=g.call(P)},n:function(){var k=g.next();return D=k.done,k},e:function(k){j=!0,L=k},f:function(){try{!D&&g.return!=null&&g.return()}finally{if(j)throw L}}}}function u(P,y){if(P){if(typeof P=="string")return f(P,y);var g=Object.prototype.toString.call(P).slice(8,-1);if(g==="Object"&&P.constructor&&(g=P.constructor.name),g==="Map"||g==="Set")return Array.from(P);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return f(P,y)}}function f(P,y){(y==null||y>P.length)&&(y=P.length);for(var g=0,E=new Array(y);g<y;g++)E[g]=P[g];return E}for(var d=[],c=r.default.keys(),h=0;h<c.length;h++){var v=c[h],R=r.default.get(v);if(R)for(var S=[].concat(R.baseConcepts,R.relatedConcepts),p=0;p<S.length;p++){var q=S[p];q.module==="HTML"&&(function(){var P=q.concept;if(P){var y=d.find(function(D){return(0,e.dequal)(D,P)}),g;y?g=y[1]:g=[];for(var E=!0,A=0;A<g.length;A++)if(g[A]===v){E=!1;break}E&&g.push(v),d.push([P,g])}})()}}var _={entries:function(){return d},forEach:function(y){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,E=l(d),A;try{for(E.s();!(A=E.n()).done;){var D=o(A.value,2),j=D[0],L=D[1];y.call(g,L,j,d)}}catch(O){E.e(O)}finally{E.f()}},get:function(y){var g=d.find(function(E){return y.name===E[0].name&&(0,e.dequal)(y.attributes,E[0].attributes)});return g&&g[1]},has:function(y){return!!_.get(y)},keys:function(){return d.map(function(y){var g=o(y,1),E=g[0];return E})},values:function(){return d.map(function(y){var g=o(y,2),E=g[1];return E})}},T=(0,t.default)(_,_.entries());return jo.default=T,jo}var Bo={},lf;function Fy(){if(lf)return Bo;lf=1,Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.default=void 0;var e=r(Zt()),t=r(Qi());function r(y){return y&&y.__esModule?y:{default:y}}function n(y,g){return i(y)||a(y,g)||l(y,g)||o()}function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
271
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(y,g){var E=y==null?null:typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(E!=null){var A=[],D=!0,j=!1,L,O;try{for(E=E.call(y);!(D=(L=E.next()).done)&&(A.push(L.value),!(g&&A.length===g));D=!0);}catch(k){j=!0,O=k}finally{try{!D&&E.return!=null&&E.return()}finally{if(j)throw O}}return A}}function i(y){if(Array.isArray(y))return y}function s(y,g){var E=typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(!E){if(Array.isArray(y)||(E=l(y))||g){E&&(y=E);var A=0,D=function(){};return{s:D,n:function(){return A>=y.length?{done:!0}:{done:!1,value:y[A++]}},e:function(F){throw F},f:D}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
272
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var j=!0,L=!1,O;return{s:function(){E=E.call(y)},n:function(){var F=E.next();return j=F.done,F},e:function(F){L=!0,O=F},f:function(){try{!j&&E.return!=null&&E.return()}finally{if(L)throw O}}}}function l(y,g){if(y){if(typeof y=="string")return u(y,g);var E=Object.prototype.toString.call(y).slice(8,-1);if(E==="Object"&&y.constructor&&(E=y.constructor.name),E==="Map"||E==="Set")return Array.from(y);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return u(y,g)}}function u(y,g){(g==null||g>y.length)&&(g=y.length);for(var E=0,A=new Array(g);E<g;E++)A[E]=y[E];return A}for(var f=[],d=t.default.keys(),c=0;c<d.length;c++){var h=d[c],v=t.default.get(h),R=[];if(v){for(var S=[].concat(v.baseConcepts,v.relatedConcepts),p=0;p<S.length;p++){var q=S[p];if(q.module==="HTML"){var _=q.concept;_!=null&&R.push(_)}}R.length>0&&f.push([h,R])}}var T={entries:function(){return f},forEach:function(g){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,A=s(f),D;try{for(A.s();!(D=A.n()).done;){var j=n(D.value,2),L=j[0],O=j[1];g.call(E,O,L,f)}}catch(k){A.e(k)}finally{A.f()}},get:function(g){var E=f.find(function(A){return A[0]===g});return E&&E[1]},has:function(g){return!!T.get(g)},keys:function(){return f.map(function(g){var E=n(g,1),A=E[0];return A})},values:function(){return f.map(function(g){var E=n(g,2),A=E[1];return A})}},P=(0,e.default)(T,T.entries());return Bo.default=P,Bo}var uf;function Uy(){if(uf)return Ee;uf=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.roles=Ee.roleElements=Ee.elementRoles=Ee.dom=Ee.aria=void 0;var e=a(ob()),t=a(ab()),r=a(Qi()),n=a($y()),o=a(Fy());function a(d){return d&&d.__esModule?d:{default:d}}var i=e.default;Ee.aria=i;var s=t.default;Ee.dom=s;var l=r.default;Ee.roles=l;var u=n.default;Ee.elementRoles=u;var f=o.default;return Ee.roleElements=f,Ee}var _e=Uy(),es={exports:{}},cf;function zy(){return cf||(cf=1,(function(e){var t=(function(){var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",a={};function i(l,u){if(!a[l]){a[l]={};for(var f=0;f<l.length;f++)a[l][l.charAt(f)]=f}return a[l][u]}var s={compressToBase64:function(l){if(l==null)return"";var u=s._compress(l,6,function(f){return n.charAt(f)});switch(u.length%4){default:case 0:return u;case 1:return u+"===";case 2:return u+"==";case 3:return u+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:s._decompress(l.length,32,function(u){return i(n,l.charAt(u))})},compressToUTF16:function(l){return l==null?"":s._compress(l,15,function(u){return r(u+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:s._decompress(l.length,16384,function(u){return l.charCodeAt(u)-32})},compressToUint8Array:function(l){for(var u=s.compress(l),f=new Uint8Array(u.length*2),d=0,c=u.length;d<c;d++){var h=u.charCodeAt(d);f[d*2]=h>>>8,f[d*2+1]=h%256}return f},decompressFromUint8Array:function(l){if(l==null)return s.decompress(l);for(var u=new Array(l.length/2),f=0,d=u.length;f<d;f++)u[f]=l[f*2]*256+l[f*2+1];var c=[];return u.forEach(function(h){c.push(r(h))}),s.decompress(c.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":s._compress(l,6,function(u){return o.charAt(u)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),s._decompress(l.length,32,function(u){return i(o,l.charAt(u))}))},compress:function(l){return s._compress(l,16,function(u){return r(u)})},_compress:function(l,u,f){if(l==null)return"";var d,c,h={},v={},R="",S="",p="",q=2,_=3,T=2,P=[],y=0,g=0,E;for(E=0;E<l.length;E+=1)if(R=l.charAt(E),Object.prototype.hasOwnProperty.call(h,R)||(h[R]=_++,v[R]=!0),S=p+R,Object.prototype.hasOwnProperty.call(h,S))p=S;else{if(Object.prototype.hasOwnProperty.call(v,p)){if(p.charCodeAt(0)<256){for(d=0;d<T;d++)y=y<<1,g==u-1?(g=0,P.push(f(y)),y=0):g++;for(c=p.charCodeAt(0),d=0;d<8;d++)y=y<<1|c&1,g==u-1?(g=0,P.push(f(y)),y=0):g++,c=c>>1}else{for(c=1,d=0;d<T;d++)y=y<<1|c,g==u-1?(g=0,P.push(f(y)),y=0):g++,c=0;for(c=p.charCodeAt(0),d=0;d<16;d++)y=y<<1|c&1,g==u-1?(g=0,P.push(f(y)),y=0):g++,c=c>>1}q--,q==0&&(q=Math.pow(2,T),T++),delete v[p]}else for(c=h[p],d=0;d<T;d++)y=y<<1|c&1,g==u-1?(g=0,P.push(f(y)),y=0):g++,c=c>>1;q--,q==0&&(q=Math.pow(2,T),T++),h[S]=_++,p=String(R)}if(p!==""){if(Object.prototype.hasOwnProperty.call(v,p)){if(p.charCodeAt(0)<256){for(d=0;d<T;d++)y=y<<1,g==u-1?(g=0,P.push(f(y)),y=0):g++;for(c=p.charCodeAt(0),d=0;d<8;d++)y=y<<1|c&1,g==u-1?(g=0,P.push(f(y)),y=0):g++,c=c>>1}else{for(c=1,d=0;d<T;d++)y=y<<1|c,g==u-1?(g=0,P.push(f(y)),y=0):g++,c=0;for(c=p.charCodeAt(0),d=0;d<16;d++)y=y<<1|c&1,g==u-1?(g=0,P.push(f(y)),y=0):g++,c=c>>1}q--,q==0&&(q=Math.pow(2,T),T++),delete v[p]}else for(c=h[p],d=0;d<T;d++)y=y<<1|c&1,g==u-1?(g=0,P.push(f(y)),y=0):g++,c=c>>1;q--,q==0&&(q=Math.pow(2,T),T++)}for(c=2,d=0;d<T;d++)y=y<<1|c&1,g==u-1?(g=0,P.push(f(y)),y=0):g++,c=c>>1;for(;;)if(y=y<<1,g==u-1){P.push(f(y));break}else g++;return P.join("")},decompress:function(l){return l==null?"":l==""?null:s._decompress(l.length,32768,function(u){return l.charCodeAt(u)})},_decompress:function(l,u,f){var d=[],c=4,h=4,v=3,R="",S=[],p,q,_,T,P,y,g,E={val:f(0),position:u,index:1};for(p=0;p<3;p+=1)d[p]=p;for(_=0,P=Math.pow(2,2),y=1;y!=P;)T=E.val&E.position,E.position>>=1,E.position==0&&(E.position=u,E.val=f(E.index++)),_|=(T>0?1:0)*y,y<<=1;switch(_){case 0:for(_=0,P=Math.pow(2,8),y=1;y!=P;)T=E.val&E.position,E.position>>=1,E.position==0&&(E.position=u,E.val=f(E.index++)),_|=(T>0?1:0)*y,y<<=1;g=r(_);break;case 1:for(_=0,P=Math.pow(2,16),y=1;y!=P;)T=E.val&E.position,E.position>>=1,E.position==0&&(E.position=u,E.val=f(E.index++)),_|=(T>0?1:0)*y,y<<=1;g=r(_);break;case 2:return""}for(d[3]=g,q=g,S.push(g);;){if(E.index>l)return"";for(_=0,P=Math.pow(2,v),y=1;y!=P;)T=E.val&E.position,E.position>>=1,E.position==0&&(E.position=u,E.val=f(E.index++)),_|=(T>0?1:0)*y,y<<=1;switch(g=_){case 0:for(_=0,P=Math.pow(2,8),y=1;y!=P;)T=E.val&E.position,E.position>>=1,E.position==0&&(E.position=u,E.val=f(E.index++)),_|=(T>0?1:0)*y,y<<=1;d[h++]=r(_),g=h-1,c--;break;case 1:for(_=0,P=Math.pow(2,16),y=1;y!=P;)T=E.val&E.position,E.position>>=1,E.position==0&&(E.position=u,E.val=f(E.index++)),_|=(T>0?1:0)*y,y<<=1;d[h++]=r(_),g=h-1,c--;break;case 2:return S.join("")}if(c==0&&(c=Math.pow(2,v),v++),d[g])R=d[g];else if(g===h)R=q+q.charAt(0);else return null;S.push(R),d[h++]=q+R.charAt(0),c--,q=R,c==0&&(c=Math.pow(2,v),v++)}}};return s})();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(es)),es.exports}var Vy=zy();const Hy=vm(Vy);function df(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}const Wy=(e,t,r,n,o,a,i)=>{const s=n+r.indent,l=r.colors;return e.map(u=>{const f=t[u];let d=i(f,r,s,o,a);return typeof f!="string"&&(d.indexOf(`
273
- `)!==-1&&(d=r.spacingOuter+s+d+r.spacingOuter+n),d="{"+d+"}"),r.spacingInner+n+l.prop.open+u+l.prop.close+"="+l.value.open+d+l.value.close}).join("")},Gy=3,Ky=(e,t,r,n,o,a)=>e.map(i=>{const s=typeof i=="string"?ff(i,t):a(i,t,r,n,o);return s===""&&typeof i=="object"&&i!==null&&i.nodeType!==Gy?"":t.spacingOuter+r+s}).join(""),ff=(e,t)=>{const r=t.colors.content;return r.open+df(e)+r.close},Yy=(e,t)=>{const r=t.colors.comment;return r.open+"<!--"+df(e)+"-->"+r.close},Xy=(e,t,r,n,o)=>{const a=n.colors.tag;return a.open+"<"+e+(t&&a.close+t+n.spacingOuter+o+a.open)+(r?">"+a.close+r+n.spacingOuter+o+a.open+"</"+e:(t&&!n.min?"":" ")+"/")+">"+a.close},Jy=(e,t)=>{const r=t.colors.tag;return r.open+"<"+e+r.close+" …"+r.open+" />"+r.close},Qy=1,pf=3,mf=8,hf=11,Zy=/^((HTML|SVG)\w*)?Element$/,bf=e=>{const{tagName:t}=e;return!!(typeof t=="string"&&t.includes("-")||typeof e.hasAttribute=="function"&&e.hasAttribute("is"))},eg=e=>{const t=e.constructor.name,{nodeType:r}=e;return r===Qy&&(Zy.test(t)||bf(e))||r===pf&&t==="Text"||r===mf&&t==="Comment"||r===hf&&t==="DocumentFragment"};function tg(e){return e.nodeType===pf}function rg(e){return e.nodeType===mf}function ts(e){return e.nodeType===hf}function ng(e){return{test:t=>{var r;return((t==null||(r=t.constructor)==null?void 0:r.name)||bf(t))&&eg(t)},serialize:(t,r,n,o,a,i)=>{if(tg(t))return ff(t.data,r);if(rg(t))return Yy(t.data,r);const s=ts(t)?"DocumentFragment":t.tagName.toLowerCase();return++o>r.maxDepth?Jy(s,r):Xy(s,Wy(ts(t)?[]:Array.from(t.attributes).map(l=>l.name).sort(),ts(t)?{}:Array.from(t.attributes).reduce((l,u)=>(l[u.name]=u.value,l),{}),r,n+r.indent,o,a,i),Ky(Array.prototype.slice.call(t.childNodes||t.children).filter(e),r,n+r.indent,o,a,i),r,n)}}}let vf=null,rs=null,ns=null;try{const e=module&&module.require;rs=e.call(module,"fs").readFileSync,ns=e.call(module,"@babel/code-frame").codeFrameColumns,vf=e.call(module,"picocolors")}catch{}function og(e){const t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.slice(t,r),o=n.split(":"),[a,i,s]=[o[0],parseInt(o[1],10),parseInt(o[2],10)];let l="";try{l=rs(a,"utf-8")}catch{return""}const u=ns(l,{start:{line:i,column:s}},{highlightCode:!0,linesBelow:0});return vf.dim(n)+`
274
- `+u+`
275
- `}function ag(){if(!rs||!ns)return"";const t=new Error().stack.split(`
276
- `).slice(1).find(r=>!r.includes("node_modules/"));return og(t)}const yf=3;function os(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}function as(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}function ig(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 We(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 sg=()=>{if(typeof process>"u")return!1;let e;try{var t;const r=(t=process.env)==null?void 0:t.COLORS;r&&(e=JSON.parse(r))}catch{}return typeof e=="boolean"?e:process.versions!==void 0&&process.versions.node!==void 0},{DOMCollection:lg}=lu.plugins,ug=1,cg=8;function dg(e){return e.nodeType!==cg&&(e.nodeType!==ug||!e.matches(X().defaultIgnore))}function xa(e,t,r){if(r===void 0&&(r={}),e||(e=as().body),typeof t!="number"&&(t=typeof process<"u"&&typeof process.env<"u"&&process.env.DEBUG_PRINT_LIMIT||7e3),t===0)return"";e.documentElement&&(e=e.documentElement);let n=typeof e;if(n==="object"?n=e.constructor.name:e={},!("outerHTML"in e))throw new TypeError("Expected an element or document but got "+n);const{filterNode:o=dg,...a}=r,i=lu.format(e,{plugins:[ng(o),lg],printFunctionName:!1,highlight:sg(),...a});return t!==void 0&&e.outerHTML.length>t?i.slice(0,t)+"...":i}const gf=function(){const e=ag();console.log(e?xa(...arguments)+`
277
-
278
- `+e:xa(...arguments))};let qa={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=xa(t),n=new Error([e,"Ignored nodes: comments, "+qa.defaultIgnore+`
279
- `+r].filter(Boolean).join(`
280
-
281
- `));return n.name="TestingLibraryElementError",n},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function fg(e){try{return qa._disableExpensiveErrorDiagnostics=!0,e()}finally{qa._disableExpensiveErrorDiagnostics=!1}}function X(){return qa}const pg=["button","meter","output","progress","select","textarea","input"];function Rf(e){return pg.includes(e.nodeName.toLowerCase())?"":e.nodeType===yf?e.textContent:Array.from(e.childNodes).map(t=>Rf(t)).join("")}function is(e){let t;return e.tagName.toLowerCase()==="label"?t=Rf(e):t=e.value||e.textContent,t}function wf(e){if(e.labels!==void 0){var t;return(t=e.labels)!=null?t:[]}if(!mg(e))return[];const r=e.ownerDocument.querySelectorAll("label");return Array.from(r).filter(n=>n.control===e)}function mg(e){return/BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName)||e.tagName==="INPUT"&&e.getAttribute("type")!=="hidden"}function Ef(e,t,r){let{selector:n="*"}=r===void 0?{}:r;const o=t.getAttribute("aria-labelledby"),a=o?o.split(" "):[];return a.length?a.map(i=>{const s=e.querySelector('[id="'+i+'"]');return s?{content:is(s),formControl:null}:{content:"",formControl:null}}):Array.from(wf(t)).map(i=>{const s=is(i),u=Array.from(i.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter(f=>f.matches(n))[0];return{content:s,formControl:u}})}function Cf(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 Pt(e,t,r,n){if(typeof e!="string")return!1;Cf(r);const o=n(e);return typeof r=="string"||typeof r=="number"?o.toLowerCase().includes(r.toString().toLowerCase()):typeof r=="function"?r(o,t):qf(r,o)}function Ge(e,t,r,n){if(typeof e!="string")return!1;Cf(r);const o=n(e);return r instanceof Function?r(o,t):r instanceof RegExp?qf(r,o):o===String(r)}function xf(e){let{trim:t=!0,collapseWhitespace:r=!0}=e===void 0?{}:e;return n=>{let o=n;return o=t?o.trim():o,o=r?o.replace(/\s+/g," "):o,o}}function pt(e){let{trim:t,collapseWhitespace:r,normalizer:n}=e;if(!n)return xf({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 n}function qf(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 _a(e){return e.matches("input[type=submit], input[type=button], input[type=reset]")?e.value:Array.from(e.childNodes).filter(t=>t.nodeType===yf&&!!t.textContent).map(t=>t.textContent).join("")}const hg=bg(_e.elementRoles);function _f(e){return e.hidden===!0||e.getAttribute("aria-hidden")==="true"||e.ownerDocument.defaultView.getComputedStyle(e).display==="none"}function ss(e,t){t===void 0&&(t={});const{isSubtreeInaccessible:r=_f}=t;if(e.ownerDocument.defaultView.getComputedStyle(e).visibility==="hidden")return!0;let o=e;for(;o;){if(r(o))return!0;o=o.parentElement}return!1}function ls(e){for(const{match:t,roles:r}of hg)if(t(e))return[...r];return[]}function bg(e){function t(i){let{name:s,attributes:l}=i;return""+s+l.map(u=>{let{name:f,value:d,constraints:c=[]}=u;const h=c.indexOf("undefined")!==-1,v=c.indexOf("set")!==-1;return typeof d<"u"?"["+f+'="'+d+'"]':h?":not(["+f+"])":v?"["+f+"]:not(["+f+'=""])':"["+f+"]"}).join("")}function r(i){let{attributes:s=[]}=i;return s.length}function n(i,s){let{specificity:l}=i,{specificity:u}=s;return u-l}function o(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 u=t({...i,attributes:s});return f=>l>=0&&f.type!=="text"?!1:f.matches(u)}let a=[];for(const[i,s]of e.entries())a=[...a,{match:o(i),roles:Array.from(s),specificity:r(i)}];return a.sort(n)}function vg(e,t){let{hidden:r=!1}=t===void 0?{}:t;function n(o){return[o,...Array.from(o.children).reduce((a,i)=>[...a,...n(i)],[])]}return n(e).filter(o=>r===!1?ss(o)===!1:!0).reduce((o,a)=>{let i=[];return a.hasAttribute("role")?i=a.getAttribute("role").split(" ").slice(0,1):i=ls(a),i.reduce((s,l)=>Array.isArray(s[l])?{...s,[l]:[...s[l],a]}:{...s,[l]:[a]},o)},{})}function yg(e,t){let{hidden:r,includeDescription:n}=t;const o=vg(e,{hidden:r});return Object.entries(o).filter(a=>{let[i]=a;return i!=="generic"}).map(a=>{let[i,s]=a;const l="-".repeat(50),u=s.map(f=>{const d='Name "'+Ji(f,{computedStyleSupportsPseudoElements:X().computedStyleSupportsPseudoElements})+`":
282
- `,c=xa(f.cloneNode(!1));if(n){const h='Description "'+Ru(f,{computedStyleSupportsPseudoElements:X().computedStyleSupportsPseudoElements})+`":
283
- `;return""+d+h+c}return""+d+c}).join(`
284
-
285
- `);return i+`:
286
-
287
- `+u+`
288
-
289
- `+l}).join(`
290
- `)}function gg(e){return e.tagName==="OPTION"?e.selected:Lo(e,"aria-selected")}function Rg(e){return e.getAttribute("aria-busy")==="true"}function wg(e){if(!("indeterminate"in e&&e.indeterminate))return"checked"in e?e.checked:Lo(e,"aria-checked")}function Eg(e){return Lo(e,"aria-pressed")}function Cg(e){var t,r;return(t=(r=Lo(e,"aria-current"))!=null?r:e.getAttribute("aria-current"))!=null?t:!1}function xg(e){return Lo(e,"aria-expanded")}function Lo(e,t){const r=e.getAttribute(t);if(r==="true")return!0;if(r==="false")return!1}function qg(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 _g(e){const t=e.getAttribute("aria-valuenow");return t===null?void 0:+t}function Pg(e){const t=e.getAttribute("aria-valuemax");return t===null?void 0:+t}function Tg(e){const t=e.getAttribute("aria-valuemin");return t===null?void 0:+t}function Sg(e){const t=e.getAttribute("aria-valuetext");return t===null?void 0:t}const Pf=xf();function Og(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function Tf(e){return new RegExp(Og(e.toLowerCase()),"i")}function tt(e,t,r,n){let{variant:o,name:a}=n,i="";const s={},l=[["Role","TestId"].includes(e)?r:Tf(r)];a&&(s.name=Tf(a)),e==="Role"&&ss(t)&&(s.hidden=!0,i=`Element is inaccessible. This means that the element and all its children are invisible to screen readers.
291
- If you are using the aria-hidden prop, make sure this is the right choice for your case.
292
- `),Object.keys(s).length>0&&l.push(s);const u=o+"By"+e;return{queryName:e,queryMethod:u,queryArgs:l,variant:o,warning:i,toString(){i&&console.warn(i);let[f,d]=l;return f=typeof f=="string"?"'"+f+"'":f,d=d?", { "+Object.entries(d).map(c=>{let[h,v]=c;return h+": "+v}).join(", ")+" }":"",u+"("+f+d+")"}}}function rt(e,t,r){return r&&!0}function us(e,t,r){var n,o;if(t===void 0&&(t="get"),e.matches(X().defaultIgnore))return;const a=(n=e.getAttribute("role"))!=null?n:(o=ls(e))==null?void 0:o[0];if(a!=="generic"&&rt("Role",r,a))return tt("Role",e,a,{variant:t,name:Ji(e,{computedStyleSupportsPseudoElements:X().computedStyleSupportsPseudoElements})});const i=Ef(document,e).map(c=>c.content).join(" ");if(rt("LabelText",r,i))return tt("LabelText",e,i,{variant:t});const s=e.getAttribute("placeholder");if(rt("PlaceholderText",r,s))return tt("PlaceholderText",e,s,{variant:t});const l=Pf(_a(e));if(rt("Text",r,l))return tt("Text",e,l,{variant:t});if(rt("DisplayValue",r,e.value))return tt("DisplayValue",e,Pf(e.value),{variant:t});const u=e.getAttribute("alt");if(rt("AltText",r,u))return tt("AltText",e,u,{variant:t});const f=e.getAttribute("title");if(rt("Title",r,f))return tt("Title",e,f,{variant:t});const d=e.getAttribute(X().testIdAttribute);if(rt("TestId",r,d))return tt("TestId",e,d,{variant:t})}function Pa(e,t){e.stack=t.stack.replace(t.message,e.message)}function Ag(e,t){let{container:r=as(),timeout:n=X().asyncUtilTimeout,showOriginalStackTrace:o=X().showOriginalStackTrace,stackTraceError:a,interval:i=50,onTimeout:s=u=>(Object.defineProperty(u,"message",{value:X().getElementError(u.message,r).message}),u),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(u,f)=>{let d,c,h,v=!1,R="idle";const S=setTimeout(P,n),p=os();if(p){const{unstable_advanceTimersWrapper:y}=X();for(T();!v;){if(!os()){const g=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");o||Pa(g,a),f(g);return}if(await y(async()=>{jest.advanceTimersByTime(i)}),v)break;T()}}else{try{We(r)}catch(g){f(g);return}c=setInterval(_,i);const{MutationObserver:y}=ig(r);h=new y(_),h.observe(r,l),T()}function q(y,g){v=!0,clearTimeout(S),p||(clearInterval(c),h.disconnect()),y?f(y):u(g)}function _(){if(os()){const y=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 o||Pa(y,a),f(y)}else return T()}function T(){if(R!=="pending")try{const y=fg(e);typeof y?.then=="function"?(R="pending",y.then(g=>{R="resolved",q(null,g)},g=>{R="rejected",d=g})):q(null,y)}catch(y){d=y}}function P(){let y;d?(y=d,!o&&y.name==="TestingLibraryElementError"&&Pa(y,a)):(y=new Error("Timed out in waitFor."),o||Pa(y,a)),q(s(y),null)}})}function Mg(e,t){const r=new Error("STACK_TRACE_MESSAGE");return X().asyncWrapper(()=>Ag(e,{stackTraceError:r,...t}))}function Sf(e,t){return X().getElementError(e,t)}function Ig(e,t){return Sf(e+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",t)}function Ta(e,t,r,n){let{exact:o=!0,collapseWhitespace:a,trim:i,normalizer:s}=n===void 0?{}:n;const l=o?Ge:Pt,u=pt({collapseWhitespace:a,trim:i,normalizer:s});return Array.from(t.querySelectorAll("["+e+"]")).filter(f=>l(f.getAttribute(e),f,r,u))}function Sa(e,t){return function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];const i=e(r,...o);if(i.length>1){const s=i.map(l=>Sf(null,l).message).join(`
293
-
294
- `);throw Ig(t(r,...o)+`
295
-
296
- Here are the matching elements:
297
-
298
- `+s,r)}return i[0]||null}}function Of(e,t){return X().getElementError(`A better query is available, try this:
299
- `+e.toString()+`
300
- `,t)}function Ng(e,t){return function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];const i=e(r,...o);if(!i.length)throw X().getElementError(t(r,...o),r);return i}}function Oa(e){return(t,r,n,o)=>Mg(()=>e(t,r,n),{container:t,...o})}const Tt=(e,t,r)=>function(n){for(var o=arguments.length,a=new Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];const s=e(n,...a),[{suggest:l=X().throwSuggestions}={}]=a.slice(-1);if(s&&l){const u=us(s,r);if(u&&!t.endsWith(u.queryName))throw Of(u.toString(),n)}return s},Pe=(e,t,r)=>function(n){for(var o=arguments.length,a=new Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];const s=e(n,...a),[{suggest:l=X().throwSuggestions}={}]=a.slice(-1);if(s.length&&l){const u=[...new Set(s.map(f=>{var d;return(d=us(f,r))==null?void 0:d.toString()}))];if(u.length===1&&!t.endsWith(us(s[0],r).queryName))throw Of(u[0],n)}return s};function mt(e,t,r){const n=Tt(Sa(e,t),e.name,"query"),o=Ng(e,r),a=Sa(o,t),i=Tt(a,e.name,"get"),s=Pe(o,e.name.replace("query","get"),"getAll"),l=Oa(Pe(o,e.name,"findAll")),u=Oa(Tt(a,e.name,"find"));return[n,s,i,l,u]}function kg(e){return Array.from(e.querySelectorAll("label,input")).map(t=>({node:t,textToMatch:is(t)})).filter(t=>{let{textToMatch:r}=t;return r!==null})}const Dg=function(e,t,r){let{exact:n=!0,trim:o,collapseWhitespace:a,normalizer:i}=r===void 0?{}:r;const s=n?Ge:Pt,l=pt({collapseWhitespace:a,trim:o,normalizer:i});return kg(e).filter(f=>{let{node:d,textToMatch:c}=f;return s(c,d,t,l)}).map(f=>{let{node:d}=f;return d})},$o=function(e,t,r){let{selector:n="*",exact:o=!0,collapseWhitespace:a,trim:i,normalizer:s}=r===void 0?{}:r;We(e);const l=o?Ge:Pt,u=pt({collapseWhitespace:a,trim:i,normalizer:s}),f=Array.from(e.querySelectorAll("*")).filter(d=>wf(d).length||d.hasAttribute("aria-labelledby")).reduce((d,c)=>{const h=Ef(e,c,{selector:n});h.filter(R=>!!R.formControl).forEach(R=>{l(R.content,R.formControl,t,u)&&R.formControl&&d.push(R.formControl)});const v=h.filter(R=>!!R.content).map(R=>R.content);return l(v.join(" "),c,t,u)&&d.push(c),v.length>1&&v.forEach((R,S)=>{l(R,c,t,u)&&d.push(c);const p=[...v];p.splice(S,1),p.length>1&&l(p.join(" "),c,t,u)&&d.push(c)}),d},[]).concat(Ta("aria-label",e,t,{exact:o,normalizer:u}));return Array.from(new Set(f)).filter(d=>d.matches(n))},ht=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];const a=$o(e,t,...n);if(!a.length){const i=Dg(e,t,...n);if(i.length){const s=i.map(l=>jg(e,l)).filter(l=>!!l);throw s.length?X().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(`
301
-
302
- `),e):X().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 X().getElementError("Unable to find a label with the text of: "+t,e)}return a};function jg(e,t){const r=t.getAttribute("for");if(!r)return null;const n=e.querySelector('[id="'+r+'"]');return n?n.tagName.toLowerCase():null}const Af=(e,t)=>"Found multiple elements with the text of: "+t,Bg=Tt(Sa($o,Af),$o.name,"query"),Mf=Sa(ht,Af),Lg=Oa(Pe(ht,ht.name,"findAll")),$g=Oa(Tt(Mf,ht.name,"find")),Fg=Pe(ht,ht.name,"getAll"),Ug=Tt(Mf,ht.name,"get"),zg=Pe($o,$o.name,"queryAll"),cs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return We(t[0]),Ta("placeholder",...t)},Vg=(e,t)=>"Found multiple elements with the placeholder text of: "+t,Hg=(e,t)=>"Unable to find an element with the placeholder text of: "+t,Wg=Pe(cs,cs.name,"queryAll"),[Gg,Kg,Yg,Xg,Jg]=mt(cs,Vg,Hg),ds=function(e,t,r){let{selector:n="*",exact:o=!0,collapseWhitespace:a,trim:i,ignore:s=X().defaultIgnore,normalizer:l}=r===void 0?{}:r;We(e);const u=o?Ge:Pt,f=pt({collapseWhitespace:a,trim:i,normalizer:l});let d=[];return typeof e.matches=="function"&&e.matches(n)&&(d=[e]),[...d,...Array.from(e.querySelectorAll(n))].filter(c=>!s||!c.matches(s)).filter(c=>u(_a(c),c,t,f))},Qg=(e,t)=>"Found multiple elements with the text: "+t,Zg=function(e,t,r){r===void 0&&(r={});const{collapseWhitespace:n,trim:o,normalizer:a,selector:i}=r,l=pt({collapseWhitespace:n,trim:o,normalizer:a})(t.toString()),u=l!==t.toString(),f=(i??"*")!=="*";return"Unable to find an element with the text: "+(u?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."},eR=Pe(ds,ds.name,"queryAll"),[tR,rR,nR,oR,aR]=mt(ds,Qg,Zg),fs=function(e,t,r){let{exact:n=!0,collapseWhitespace:o,trim:a,normalizer:i}=r===void 0?{}:r;We(e);const s=n?Ge:Pt,l=pt({collapseWhitespace:o,trim:a,normalizer:i});return Array.from(e.querySelectorAll("input,textarea,select")).filter(u=>u.tagName==="SELECT"?Array.from(u.options).filter(d=>d.selected).some(d=>s(_a(d),d,t,l)):s(u.value,u,t,l))},iR=(e,t)=>"Found multiple elements with the display value: "+t+".",sR=(e,t)=>"Unable to find an element with the display value: "+t+".",lR=Pe(fs,fs.name,"queryAll"),[uR,cR,dR,fR,pR]=mt(fs,iR,sR),mR=/^(img|input|area|.+-.+)$/i,ps=function(e,t,r){return r===void 0&&(r={}),We(e),Ta("alt",e,t,r).filter(n=>mR.test(n.tagName))},hR=(e,t)=>"Found multiple elements with the alt text: "+t,bR=(e,t)=>"Unable to find an element with the alt text: "+t,vR=Pe(ps,ps.name,"queryAll"),[yR,gR,RR,wR,ER]=mt(ps,hR,bR),CR=e=>{var t;return e.tagName.toLowerCase()==="title"&&((t=e.parentElement)==null?void 0:t.tagName.toLowerCase())==="svg"},ms=function(e,t,r){let{exact:n=!0,collapseWhitespace:o,trim:a,normalizer:i}=r===void 0?{}:r;We(e);const s=n?Ge:Pt,l=pt({collapseWhitespace:o,trim:a,normalizer:i});return Array.from(e.querySelectorAll("[title], svg > title")).filter(u=>s(u.getAttribute("title"),u,t,l)||CR(u)&&s(_a(u),u,t,l))},xR=(e,t)=>"Found multiple elements with the title: "+t+".",qR=(e,t)=>"Unable to find an element with the title: "+t+".",_R=Pe(ms,ms.name,"queryAll"),[PR,TR,SR,OR,AR]=mt(ms,xR,qR),hs=function(e,t,r){let{hidden:n=X().defaultHidden,name:o,description:a,queryFallbacks:i=!1,selected:s,busy:l,checked:u,pressed:f,current:d,level:c,expanded:h,value:{now:v,min:R,max:S,text:p}={}}=r===void 0?{}:r;if(We(e),s!==void 0){var q;if(((q=_e.roles.get(t))==null?void 0:q.props["aria-selected"])===void 0)throw new Error('"aria-selected" is not supported on role "'+t+'".')}if(l!==void 0){var _;if(((_=_e.roles.get(t))==null?void 0:_.props["aria-busy"])===void 0)throw new Error('"aria-busy" is not supported on role "'+t+'".')}if(u!==void 0){var T;if(((T=_e.roles.get(t))==null?void 0:T.props["aria-checked"])===void 0)throw new Error('"aria-checked" is not supported on role "'+t+'".')}if(f!==void 0){var P;if(((P=_e.roles.get(t))==null?void 0:P.props["aria-pressed"])===void 0)throw new Error('"aria-pressed" is not supported on role "'+t+'".')}if(d!==void 0){var y;if(((y=_e.roles.get(t))==null?void 0:y.props["aria-current"])===void 0)throw new Error('"aria-current" is not supported on role "'+t+'".')}if(c!==void 0&&t!=="heading")throw new Error('Role "'+t+'" cannot have "level" property.');if(v!==void 0){var g;if(((g=_e.roles.get(t))==null?void 0:g.props["aria-valuenow"])===void 0)throw new Error('"aria-valuenow" is not supported on role "'+t+'".')}if(S!==void 0){var E;if(((E=_e.roles.get(t))==null?void 0:E.props["aria-valuemax"])===void 0)throw new Error('"aria-valuemax" is not supported on role "'+t+'".')}if(R!==void 0){var A;if(((A=_e.roles.get(t))==null?void 0:A.props["aria-valuemin"])===void 0)throw new Error('"aria-valuemin" is not supported on role "'+t+'".')}if(p!==void 0){var D;if(((D=_e.roles.get(t))==null?void 0:D.props["aria-valuetext"])===void 0)throw new Error('"aria-valuetext" is not supported on role "'+t+'".')}if(h!==void 0){var j;if(((j=_e.roles.get(t))==null?void 0:j.props["aria-expanded"])===void 0)throw new Error('"aria-expanded" is not supported on role "'+t+'".')}const L=new WeakMap;function O(k){return L.has(k)||L.set(k,_f(k)),L.get(k)}return Array.from(e.querySelectorAll(MR(t))).filter(k=>{if(k.hasAttribute("role")){const K=k.getAttribute("role");if(i)return K.split(" ").filter(Boolean).some(Re=>Re===t);const[ue]=K.split(" ");return ue===t}return ls(k).some(K=>K===t)}).filter(k=>{if(s!==void 0)return s===gg(k);if(l!==void 0)return l===Rg(k);if(u!==void 0)return u===wg(k);if(f!==void 0)return f===Eg(k);if(d!==void 0)return d===Cg(k);if(h!==void 0)return h===xg(k);if(c!==void 0)return c===qg(k);if(v!==void 0||S!==void 0||R!==void 0||p!==void 0){let Z=!0;if(v!==void 0&&Z&&(Z=v===_g(k)),S!==void 0&&Z&&(Z=S===Pg(k)),R!==void 0&&Z&&(Z=R===Tg(k)),p!==void 0){var F;Z&&(Z=Ge((F=Sg(k))!=null?F:null,k,p,K=>K))}return Z}return!0}).filter(k=>o===void 0?!0:Ge(Ji(k,{computedStyleSupportsPseudoElements:X().computedStyleSupportsPseudoElements}),k,o,F=>F)).filter(k=>a===void 0?!0:Ge(Ru(k,{computedStyleSupportsPseudoElements:X().computedStyleSupportsPseudoElements}),k,a,F=>F)).filter(k=>n===!1?ss(k,{isSubtreeInaccessible:O})===!1:!0)};function MR(e){var t;const r='*[role~="'+e+'"]',n=(t=_e.roleElements.get(e))!=null?t:new Set,o=new Set(Array.from(n).map(a=>{let{name:i}=a;return i}));return[r].concat(Array.from(o)).join(",")}const If=e=>{let t="";return e===void 0?t="":typeof e=="string"?t=' and name "'+e+'"':t=" and name `"+e+"`",t},IR=function(e,t,r){let{name:n}=r===void 0?{}:r;return'Found multiple elements with the role "'+t+'"'+If(n)},NR=function(e,t,r){let{hidden:n=X().defaultHidden,name:o,description:a}=r===void 0?{}:r;if(X()._disableExpensiveErrorDiagnostics)return'Unable to find role="'+t+'"'+If(o);let i="";Array.from(e.children).forEach(f=>{i+=yg(f,{hidden:n,includeDescription:a!==void 0})});let s;i.length===0?n===!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=(`
303
- Here are the `+(n===!1?"accessible":"available")+` roles:
304
-
305
- `+i.replace(/\n/g,`
306
- `).replace(/\n\s\s\n/g,`
307
-
308
- `)+`
309
- `).trim();let l="";o===void 0?l="":typeof o=="string"?l=' and name "'+o+'"':l=" and name `"+o+"`";let u="";return a===void 0?u="":typeof a=="string"?u=' and description "'+a+'"':u=" and description `"+a+"`",(`
310
- Unable to find an `+(n===!1?"accessible ":"")+'element with the role "'+t+'"'+l+u+`
311
-
312
- `+s).trim()},kR=Pe(hs,hs.name,"queryAll"),[DR,jR,BR,LR,$R]=mt(hs,IR,NR),bs=()=>X().testIdAttribute,vs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return We(t[0]),Ta(bs(),...t)},FR=(e,t)=>"Found multiple elements by: ["+bs()+'="'+t+'"]',UR=(e,t)=>"Unable to find an element by: ["+bs()+'="'+t+'"]',zR=Pe(vs,vs.name,"queryAll"),[VR,HR,WR,GR,KR]=mt(vs,FR,UR);var ys=Object.freeze({__proto__:null,queryAllByLabelText:zg,queryByLabelText:Bg,getAllByLabelText:Fg,getByLabelText:Ug,findAllByLabelText:Lg,findByLabelText:$g,queryByPlaceholderText:Gg,queryAllByPlaceholderText:Wg,getByPlaceholderText:Yg,getAllByPlaceholderText:Kg,findAllByPlaceholderText:Xg,findByPlaceholderText:Jg,queryByText:tR,queryAllByText:eR,getByText:nR,getAllByText:rR,findAllByText:oR,findByText:aR,queryByDisplayValue:uR,queryAllByDisplayValue:lR,getByDisplayValue:dR,getAllByDisplayValue:cR,findAllByDisplayValue:fR,findByDisplayValue:pR,queryByAltText:yR,queryAllByAltText:vR,getByAltText:RR,getAllByAltText:gR,findAllByAltText:wR,findByAltText:ER,queryByTitle:PR,queryAllByTitle:_R,getByTitle:SR,getAllByTitle:TR,findAllByTitle:OR,findByTitle:AR,queryByRole:DR,queryAllByRole:kR,getAllByRole:jR,getByRole:BR,findAllByRole:LR,findByRole:$R,queryByTestId:VR,queryAllByTestId:zR,getByTestId:WR,getAllByTestId:HR,findAllByTestId:GR,findByTestId:KR});function YR(e,t,r){return t===void 0&&(t=ys),r===void 0&&(r={}),Object.keys(t).reduce((n,o)=>{const a=t[o];return n[o]=a.bind(null,e),n},r)}const Nf={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}}},XR={doubleClick:"dblClick"};Object.keys(Nf).forEach(e=>{const{EventType:t,defaultInit:r}=Nf[e];e.toLowerCase()}),Object.keys(XR).forEach(e=>{});function JR(e){return e.replace(/[ \t]*[\n][ \t]*/g,`
313
- `)}function QR(e){return Hy.compressToEncodedURIComponent(JR(e))}function ZR(e){return"https://testing-playground.com/#markup="+QR(e)}const kf={debug:(e,t,r)=>Array.isArray(e)?e.forEach(n=>gf(n,t,r)):gf(e,t,r),logTestingPlaygroundURL:function(e){if(e===void 0&&(e=as().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=ZR(e.innerHTML);return console.log(`Open this URL in your browser
314
-
315
- `+t),t}};typeof document<"u"&&document.body?YR(document.body,ys,kf):Object.keys(ys).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),kf);function St(e,t){return X().eventWrapper(e)}function nt(e){const t=Ym(e,Gi),r=Gt(e.ownerDocument);(t??e.ownerDocument.body)!==r&&(St(t?()=>t.focus():()=>r?.blur()),Qm(t??e.ownerDocument.body))}function ew(e){!Gi(e)||!(Gt(e.ownerDocument)===e)||St(()=>e.blur())}const ot={};ot.click=(e,t,r)=>{const n=t.closest("button,input,label,select,textarea"),o=n&&V(n,"label")&&n.control;if(o&&o!==t)return()=>{Gi(o)&&(nt(o),r.dispatchEvent(o,Km(e)))};if(V(t,"input",{type:"file"}))return()=>{ew(t),t.dispatchEvent(new(qe(t)).Event("fileDialog")),nt(t)}};const Ot=Symbol("Displayed value in UI"),Ke=Symbol("Displayed selection in UI"),Aa=Symbol("Initial value to compare on blur");function tw(e){return typeof e=="object"&&Ot in e}function rw(e){return!!e&&typeof e=="object"&&Ke in e}function nw(e,t){e[Aa]===void 0&&(e[Aa]=e.value),e[Ot]=t,e.value=Object.assign(new String(t),{[Ot]:!0})}function Ne(e){return e[Ot]===void 0?e.value:String(e[Ot])}function gs(e){e[Ot]=void 0}function Df(e){e[Aa]=void 0}function ow(e){return e[Aa]}function aw(e,t){e[Ke]=t}function At(e,{focusOffset:t,anchorOffset:r=t},n="replace"){const o=Ne(e).length,a=d=>Math.max(0,Math.min(o,d)),i=n==="replace"||e[Ke]===void 0?a(r):e[Ke].anchorOffset,s=a(t),l=Math.min(i,s),u=Math.max(i,s);if(e[Ke]={anchorOffset:i,focusOffset:s},e.selectionStart===l&&e.selectionEnd===u)return;const f=Object.assign(new Number(l),{[Ke]:!0});try{e.setSelectionRange(f,u)}catch{}}function Fo(e){var t,r,n;const o=(n=e[Ke])!==null&&n!==void 0?n:{anchorOffset:(t=e.selectionStart)!==null&&t!==void 0?t:0,focusOffset:(r=e.selectionEnd)!==null&&r!==void 0?r:0};return{...o,startOffset:Math.min(o.anchorOffset,o.focusOffset),endOffset:Math.max(o.anchorOffset,o.focusOffset)}}function iw(e){return!!e[Ke]}function Ma(e){e[Ke]=void 0}const Ia=globalThis.parseInt;function sw(e){const t=e.replace(/\D/g,"");if(t.length<2)return e;const r=Ia(t[0],10),n=Ia(t[1],10);if(r>=3||r===2&&n>=4){let o;return r>=3?o=1:o=2,jf(t,o)}return e.length===2?e:jf(t,2)}function jf(e,t){const r=e.slice(0,t),n=Math.min(Ia(r,10),23),o=e.slice(t),a=Ia(o,10),i=Math.min(a,59);return`${n.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`}function Bf(e,t){const r=e.cloneNode();return r.value=t,r.value===t}var Lf=(function(e){return e.email="email",e.password="password",e.search="search",e.telephone="telephone",e.text="text",e.url="url",e})(Lf||{});function lw(e){var t;const r=(t=e.getAttribute("maxlength"))!==null&&t!==void 0?t:"";return/^\d+$/.test(r)&&Number(r)>=0?Number(r):void 0}function uw(e){return V(e,"textarea")||V(e,"input")&&e.type in Lf}function $f(e,t,r,n){if(ka(e)&&t+r>=0&&t+r<=e.nodeValue.length)return{node:e,offset:t+r};const o=Ff(e,t,r);if(o){if(ka(o))return{node:o,offset:r>0?Math.min(1,o.nodeValue.length):Math.max(o.nodeValue.length-1,0)};if(V(o,"br")){const a=Ff(o,void 0,r);return a?ka(a)?{node:a,offset:r>0?0:a.nodeValue.length}:r<0&&V(a,"br")?{node:o.parentNode,offset:Na(o)}:{node:a.parentNode,offset:Na(a)+(r>0?0:1)}:r<0&&n==="deleteContentBackward"?{node:o.parentNode,offset:Na(o)}:void 0}else return{node:o.parentNode,offset:Na(o)+(r>0?1:0)}}}function Ff(e,t,r){const n=Number(t)+(r<0?-1:0);return t!==void 0&&Rs(e)&&n>=0&&n<e.children.length&&(e=e.children[n]),dw(e,r===1?"next":"previous",cw)}function cw(e){if(ka(e))return!0;if(Rs(e)){if(V(e,["input","textarea"]))return e.type!=="hidden";if(V(e,"br"))return!0}return!1}function Na(e){let t=0;for(;e.previousSibling;)t++,e=e.previousSibling;return t}function Rs(e){return e.nodeType===1}function ka(e){return e.nodeType===3}function dw(e,t,r){for(;;){var n;const o=e[`${t}Sibling`];if(o){if(e=fw(o,t==="next"?"first":"last"),r(e))return e}else if(e.parentNode&&(!Rs(e.parentNode)||!dt(e.parentNode)&&e.parentNode!==((n=e.ownerDocument)===null||n===void 0?void 0:n.body)))e=e.parentNode;else break}}function fw(e,t){for(;e.hasChildNodes();)e=e[`${t}Child`];return e}const Uo=Symbol("Track programmatic changes for React workaround");function pw(e){return Object.getOwnPropertyNames(e).some(t=>t.startsWith("__react"))&&qe(e).REACT_VERSION===17}function mw(e){pw(e)&&(e[Uo]={previousValue:String(e.value),tracked:[]})}function hw(e,t){var r,n;(n=e[Uo])===null||n===void 0||(r=n.tracked)===null||r===void 0||r.push(t),e[Uo]||(gs(e),At(e,{focusOffset:t.length}))}function bw(e,t){var r;const n=e[Uo];if(e[Uo]=void 0,!(!(n==null||(r=n.tracked)===null||r===void 0)&&r.length))return;const o=n.tracked.length===2&&n.tracked[0]===n.previousValue&&n.tracked[1]===e.value;o||gs(e),iw(e)&&At(e,{focusOffset:o?t:e.value.length})}function Uf(e){const t=vw(e);if(t&&Me(t))return{type:"input",selection:Fo(t)};const r=t?.ownerDocument.getSelection();return{type:Kt(e)&&r?.anchorNode&&Kt(r.anchorNode)?"contenteditable":"default",selection:r}}function vw(e){return e.nodeType===1?e:e.parentElement}function yw(e){const t=Uf(e);if(t.type==="input")return t.selection;if(t.type==="contenteditable"){var r;return(r=t.selection)===null||r===void 0?void 0:r.getRangeAt(0)}}function bt({focusNode:e,focusOffset:t,anchorNode:r=e,anchorOffset:n=t}){var o,a;if(Uf(e).type==="input")return At(e,{anchorOffset:n,focusOffset:t});(a=r.ownerDocument)===null||a===void 0||(o=a.getSelection())===null||o===void 0||o.setBaseAndExtent(r,n,e,t)}function zf(e){return V(e,"input")&&["date","time"].includes(e.type)}function Mt(e,t,r,n="insertText"){const o=yw(t);o&&(!zf(t)&&!e.dispatchUIEvent(t,"beforeinput",{inputType:n,data:r})||("startContainer"in o?gw(e,t,o,r,n):Rw(e,t,o,r,n)))}function gw(e,t,r,n,o){let a=!1;if(!r.collapsed)a=!0,r.deleteContents();else if(["deleteContentBackward","deleteContentForward"].includes(o)){const i=$f(r.startContainer,r.startOffset,o==="deleteContentBackward"?-1:1,o);if(i){a=!0;const s=r.cloneRange();s.comparePoint(i.node,i.offset)<0?s.setStart(i.node,i.offset):s.setEnd(i.node,i.offset),s.deleteContents()}}if(n)if(r.endContainer.nodeType===3){const i=r.endOffset;r.endContainer.insertData(i,n),r.setStart(r.endContainer,i+n.length),r.setEnd(r.endContainer,i+n.length)}else{const i=t.ownerDocument.createTextNode(n);r.insertNode(i),r.setStart(i,n.length),r.setEnd(i,n.length)}(a||n)&&e.dispatchUIEvent(t,"input",{inputType:o})}function Rw(e,t,r,n,o){let a=n;if(uw(t)){const u=lw(t);if(u!==void 0&&n.length>0){const f=u-t.value.length;if(f>0)a=n.substring(0,f);else return}}const{newValue:i,newOffset:s,oldValue:l}=ww(a,t,r,o);i===l&&s===r.startOffset&&s===r.endOffset||V(t,"input",{type:"number"})&&!Ew(i)||(nw(t,i),bt({focusNode:t,anchorOffset:s,focusOffset:s}),zf(t)?Bf(t,i)&&(Vf(e,t,s,{}),e.dispatchUIEvent(t,"change"),Df(t)):Vf(e,t,s,{data:n,inputType:o}))}function ww(e,t,{startOffset:r,endOffset:n},o){const a=Ne(t),i=Math.max(0,r===n&&o==="deleteContentBackward"?r-1:r),s=a.substring(0,i),l=Math.min(a.length,r===n&&o==="deleteContentForward"?r+1:n),u=a.substring(l,a.length);let f=`${s}${e}${u}`,d=i+e.length;if(V(t,"input",{type:"time"})){const c=sw(f);c!==""&&Bf(t,c)&&(f=c,d=c.length)}return{oldValue:a,newValue:f,newOffset:d}}function Vf(e,t,r,n){e.dispatchUIEvent(t,"input",n),bw(t,r)}function Ew(e){var t,r;const n=e.split("e",2);return!(/[^\d.\-e]/.test(e)||Number((t=e.match(/-/g))===null||t===void 0?void 0:t.length)>2||Number((r=e.match(/\./g))===null||r===void 0?void 0:r.length)>1||n[1]&&!/^-?\d*$/.test(n[1]))}ot.cut=(e,t,r)=>()=>{_t(t)&&Mt(r,t,"","deleteByCut")};function Cw(e){return e?dt(e)?e.textContent:Ne(e):null}function xw(e){const t=qe(e);for(let r=e;r?.ownerDocument;r=r.parentElement){const{display:n,visibility:o}=t.getComputedStyle(r);if(n==="none"||o==="hidden")return!1}return!0}function qw(e,t){const r=e.ownerDocument,n=r.querySelectorAll(Ll),o=Array.from(n).filter(l=>l===e||!(Number(l.getAttribute("tabindex"))<0||je(l)));Number(e.getAttribute("tabindex"))>=0&&o.sort((l,u)=>{const f=Number(l.getAttribute("tabindex")),d=Number(u.getAttribute("tabindex"));return f===d?0:f===0?1:d===0?-1:f-d});const a={};let i=[r.body];const s=V(e,"input",{type:"radio"})?e.name:void 0;o.forEach(l=>{const u=l;if(V(u,"input",{type:"radio"})&&u.name){if(u===e){i.push(u);return}else if(u.name===s)return;if(u.checked){i=i.filter(f=>!V(f,"input",{type:"radio",name:u.name})),i.push(u),a[u.name]=u;return}if(typeof a[u.name]<"u")return}i.push(u)});for(let l=i.findIndex(u=>u===e);;)if(l+=t?-1:1,l===i.length?l=0:l===-1&&(l=i.length-1),i[l]===e||i[l]===r.body||xw(i[l]))return i[l]}function Hf(e,t){if(Me(e)){const r=Fo(e);bt({focusNode:e,focusOffset:r.startOffset===r.endOffset?r.focusOffset+t:t<0?r.startOffset:r.endOffset})}else{const r=e.ownerDocument.getSelection();if(!r?.focusNode)return;if(r.isCollapsed){const n=$f(r.focusNode,r.focusOffset,t);n&&bt({focusNode:n.node,focusOffset:n.offset})}else r[t<0?"collapseToStart":"collapseToEnd"]()}}function Wf(e){if(Me(e))return bt({focusNode:e,anchorOffset:0,focusOffset:Ne(e).length});var t;const r=(t=Kt(e))!==null&&t!==void 0?t:e.ownerDocument.body;bt({focusNode:r,anchorOffset:0,focusOffset:r.childNodes.length})}function _w(e){if(Me(e))return Fo(e).startOffset===0&&Fo(e).endOffset===Ne(e).length;var t;const r=(t=Kt(e))!==null&&t!==void 0?t:e.ownerDocument.body,n=e.ownerDocument.getSelection();return n?.anchorNode===r&&n.focusNode===r&&n.anchorOffset===0&&n.focusOffset===r.childNodes.length}function zo(e,t,r){var n;if(Me(e))return bt({focusNode:e,anchorOffset:t,focusOffset:r});if(dt(e)&&((n=e.firstChild)===null||n===void 0?void 0:n.nodeType)===3)return bt({focusNode:e.firstChild,anchorOffset:t,focusOffset:r});throw new Error("Not implemented. The result of this interaction is unreliable.")}function Da(e,t,r){const n=qe(t),o=Array.from(t.ownerDocument.querySelectorAll(t.name?`input[type="radio"][name="${n.CSS.escape(t.name)}"]`:'input[type="radio"][name=""], input[type="radio"]:not([name])'));for(let a=o.findIndex(i=>i===t)+r;;a+=r){if(o[a]||(a=r>0?0:o.length-1),o[a]===t)return;if(!je(o[a])){nt(o[a]),e.dispatchUIEvent(o[a],"click");return}}}ot.keydown=(e,t,r)=>{var n,o;return(o=(n=Gf[e.key])===null||n===void 0?void 0:n.call(Gf,e,t,r))!==null&&o!==void 0?o:Pw(e,t,r)};const Gf={ArrowDown:(e,t,r)=>{if(V(t,"input",{type:"radio"}))return()=>Da(r,t,1)},ArrowLeft:(e,t,r)=>V(t,"input",{type:"radio"})?()=>Da(r,t,-1):()=>Hf(t,-1),ArrowRight:(e,t,r)=>V(t,"input",{type:"radio"})?()=>Da(r,t,1):()=>Hf(t,1),ArrowUp:(e,t,r)=>{if(V(t,"input",{type:"radio"}))return()=>Da(r,t,-1)},Backspace:(e,t,r)=>{if(_t(t))return()=>{Mt(r,t,"","deleteContentBackward")}},Delete:(e,t,r)=>{if(_t(t))return()=>{Mt(r,t,"","deleteContentForward")}},End:(e,t)=>{if(V(t,["input","textarea"])||dt(t))return()=>{var r,n;const o=(n=(r=Cw(t))===null||r===void 0?void 0:r.length)!==null&&n!==void 0?n:0;zo(t,o,o)}},Home:(e,t)=>{if(V(t,["input","textarea"])||dt(t))return()=>{zo(t,0,0)}},PageDown:(e,t)=>{if(V(t,["input"]))return()=>{const r=Ne(t).length;zo(t,r,r)}},PageUp:(e,t)=>{if(V(t,["input"]))return()=>{zo(t,0,0)}},Tab:(e,t,r)=>()=>{const n=qw(t,r.system.keyboard.modifiers.Shift);nt(n),Me(n)&&At(n,{anchorOffset:0,focusOffset:n.value.length})}},Pw=(e,t,r)=>{if(e.code==="KeyA"&&r.system.keyboard.modifiers.Control)return()=>Wf(t)};ot.keypress=(e,t,r)=>{if(e.key==="Enter"){if(V(t,"button")||V(t,"input")&&Tw.includes(t.type)||V(t,"a")&&t.href)return()=>{r.dispatchUIEvent(t,"click")};if(V(t,"input")){const n=t.form,o=n?.querySelector('input[type="submit"], button:not([type]), button[type="submit"]');return o?()=>r.dispatchUIEvent(o,"click"):n&&Sw.includes(t.type)&&n.querySelectorAll("input").length===1?()=>r.dispatchUIEvent(n,"submit"):void 0}}if(_t(t)){const n=e.key==="Enter"?dt(t)&&!r.system.keyboard.modifiers.Shift?"insertParagraph":"insertLineBreak":"insertText",o=e.key==="Enter"?`
316
- `:e.key;return()=>Mt(r,t,o,n)}};const Tw=["button","color","file","image","reset","submit"],Sw=["email","month","password","search","tel","text","url","week"];ot.keyup=(e,t,r)=>{var n;return(n=Kf[e.key])===null||n===void 0?void 0:n.call(Kf,e,t,r)};const Kf={" ":(e,t,r)=>{if(Fl(t))return()=>r.dispatchUIEvent(t,"click")}};ot.paste=(e,t,r)=>{if(_t(t))return()=>{var n;const o=(n=e.clipboardData)===null||n===void 0?void 0:n.getData("text");o&&Mt(r,t,o,"insertFromPaste")}};const Yf={auxclick:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},beforeinput:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},blur:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},click:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},contextmenu:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblclick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},focus:{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}},keydown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keypress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyup:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,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}},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}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}}};function Xf(e){return Yf[e].EventType}const Ow=["MouseEvent","PointerEvent"];function Aw(e){return Ow.includes(Xf(e))}function Mw(e){return Xf(e)==="KeyboardEvent"}const Iw={ClipboardEvent:[kw],Event:[],FocusEvent:[Vo,Dw],InputEvent:[Vo,jw],MouseEvent:[Vo,ws,Qf],PointerEvent:[Vo,ws,Qf,Lw],KeyboardEvent:[Vo,ws,Bw]};function Jf(e,t,r){const n=qe(t),{EventType:o,defaultInit:a}=Yf[e],i=new(Nw(n))[o](e,a);return Iw[o].forEach(s=>s(i,r??{})),i}function Nw(e){var t;const r=(t=e.Event)!==null&&t!==void 0?t:class{};var n;const o=(n=e.AnimationEvent)!==null&&n!==void 0?n:class extends r{};var a;const i=(a=e.ClipboardEvent)!==null&&a!==void 0?a:class extends r{};var s;const l=(s=e.PopStateEvent)!==null&&s!==void 0?s:class extends r{};var u;const f=(u=e.ProgressEvent)!==null&&u!==void 0?u:class extends r{};var d;const c=(d=e.TransitionEvent)!==null&&d!==void 0?d:class extends r{};var h;const v=(h=e.UIEvent)!==null&&h!==void 0?h:class extends r{};var R;const S=(R=e.CompositionEvent)!==null&&R!==void 0?R:class extends v{};var p;const q=(p=e.FocusEvent)!==null&&p!==void 0?p:class extends v{};var _;const T=(_=e.InputEvent)!==null&&_!==void 0?_:class extends v{};var P;const y=(P=e.KeyboardEvent)!==null&&P!==void 0?P:class extends v{};var g;const E=(g=e.MouseEvent)!==null&&g!==void 0?g:class extends v{};var A;const D=(A=e.DragEvent)!==null&&A!==void 0?A:class extends E{};var j;const L=(j=e.PointerEvent)!==null&&j!==void 0?j:class extends E{};var O;const k=(O=e.TouchEvent)!==null&&O!==void 0?O:class extends v{};return{Event:r,AnimationEvent:o,ClipboardEvent:i,PopStateEvent:l,ProgressEvent:f,TransitionEvent:c,UIEvent:v,CompositionEvent:S,FocusEvent:q,InputEvent:T,KeyboardEvent:y,MouseEvent:E,DragEvent:D,PointerEvent:L,TouchEvent:k}}function at(e,t){for(const[r,n]of Object.entries(t))Object.defineProperty(e,r,{get:()=>n??null})}function oe(e){return Number(e??0)}function kw(e,{clipboardData:t}){at(e,{clipboardData:t})}function Dw(e,{relatedTarget:t}){at(e,{relatedTarget:t})}function jw(e,{data:t,inputType:r,isComposing:n}){at(e,{data:t,isComposing:!!n,inputType:String(r)})}function Vo(e,{view:t,detail:r}){at(e,{view:t,detail:oe(r??0)})}function ws(e,{altKey:t,ctrlKey:r,metaKey:n,shiftKey:o,modifierAltGraph:a,modifierCapsLock:i,modifierFn:s,modifierFnLock:l,modifierNumLock:u,modifierScrollLock:f,modifierSymbol:d,modifierSymbolLock:c}){at(e,{altKey:!!t,ctrlKey:!!r,metaKey:!!n,shiftKey:!!o,getModifierState(h){return!!{Alt:t,AltGraph:a,CapsLock:i,Control:r,Fn:s,FnLock:l,Meta:n,NumLock:u,ScrollLock:f,Shift:o,Symbol:d,SymbolLock:c}[h]}})}function Bw(e,{key:t,code:r,location:n,repeat:o,isComposing:a,charCode:i}){at(e,{key:String(t),code:String(r),location:oe(n),repeat:!!o,isComposing:!!a,charCode:i})}function Qf(e,{x:t,y:r,screenX:n,screenY:o,clientX:a=t,clientY:i=r,button:s,buttons:l,relatedTarget:u,offsetX:f,offsetY:d,pageX:c,pageY:h}){at(e,{screenX:oe(n),screenY:oe(o),clientX:oe(a),x:oe(a),clientY:oe(i),y:oe(i),button:oe(s),buttons:oe(l),relatedTarget:u,offsetX:oe(f),offsetY:oe(d),pageX:oe(c),pageY:oe(h)})}function Lw(e,{pointerId:t,width:r,height:n,pressure:o,tangentialPressure:a,tiltX:i,tiltY:s,twist:l,pointerType:u,isPrimary:f}){at(e,{pointerId:oe(t),width:oe(r??1),height:oe(n??1),pressure:oe(o),tangentialPressure:oe(a),tiltX:oe(i),tiltY:oe(s),twist:oe(l),pointerType:String(u),isPrimary:!!f})}function $w(e,t,r,n=!1){(Aw(t)||Mw(t))&&(r={...r,...this.system.getUIEventModifiers()});const o=Jf(t,e,r);return Zf.call(this,e,o,n)}function Zf(e,t,r=!1){var n;const o=t.type,a=r?()=>{}:(n=ot[o])===null||n===void 0?void 0:n.call(ot,t,e,this);if(a){t.preventDefault();let i=!1;return Object.defineProperty(t,"defaultPrevented",{get:()=>i}),Object.defineProperty(t,"preventDefault",{value:()=>{i=t.cancelable}}),St(()=>e.dispatchEvent(t)),i||a(),!i}return St(()=>e.dispatchEvent(t))}function vt(e,t,r){const n=Jf(t,e,r);St(()=>e.dispatchEvent(n))}const ep=Symbol("patched focus/blur methods");function tp(e){if(e.prototype[ep])return;const{focus:t,blur:r}=e.prototype;Object.defineProperties(e.prototype,{focus:{configurable:!0,get:()=>o},blur:{configurable:!0,get:()=>a},[ep]:{configurable:!0,get:()=>({focus:t,blur:r})}});let n;function o(i){if(this.ownerDocument.visibilityState!=="hidden")return t.call(this,i);const s=rp(this.ownerDocument);if(s===this)return;const l=Symbol("focus call");n=l,s&&(r.call(s),vt(s,"blur",{relatedTarget:this}),vt(s,"focusout",{relatedTarget:n===l?this:null})),n===l&&(t.call(this,i),vt(this,"focus",{relatedTarget:s})),n===l&&vt(this,"focusin",{relatedTarget:s})}function a(){if(this.ownerDocument.visibilityState!=="hidden")return r.call(this);const i=rp(this.ownerDocument);if(i!==this)return;n=Symbol("blur call"),r.call(this),vt(i,"blur",{relatedTarget:null}),vt(i,"focusout",{relatedTarget:null})}}function rp(e){const t=Gt(e);return t?.tagName==="BODY"?null:t}const Es=Symbol("Interceptor for programmatical calls");function It(e,t,r){const n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=Object.getOwnPropertyDescriptor(e,t),a=n?.set?"set":"value";if(typeof n?.[a]!="function"||n[a][Es])throw new Error(`Element ${e.tagName} does not implement "${String(t)}".`);function i(...s){const{applyNative:l=!1,realArgs:u,then:f}=r.call(this,...s),d=(!l&&o||n)[a];a==="set"?d.call(this,u):d.call(this,...u),f?.()}i[Es]=Es,Object.defineProperty(e,t,{...o??n,[a]:i})}function Fw(e){It(e,"value",function(r){const n=tw(r);return n&&mw(this),{applyNative:!!n,realArgs:Uw(this,r),then:n?void 0:()=>hw(this,String(r))}})}function Uw(e,t){return V(e,"input",{type:"number"})&&String(t)!==""&&!Number.isNaN(Number(t))?String(Number(t)):String(t)}function zw(e){It(e,"setSelectionRange",function(r,...n){const o=rw(r);return{applyNative:!!o,realArgs:[Number(r),...n],then:()=>o?void 0:Ma(e)}}),It(e,"selectionStart",function(r){return{realArgs:r,then:()=>Ma(e)}}),It(e,"selectionEnd",function(r){return{realArgs:r,then:()=>Ma(e)}}),It(e,"select",function(){return{realArgs:[],then:()=>aw(e,{anchorOffset:0,focusOffset:Ne(e).length})}})}function Vw(e){It(e,"setRangeText",function(...r){return{realArgs:r,then:()=>{gs(e),Ma(e)}}})}const Nt=Symbol("Node prepared with document state workarounds");function np(e){e[Nt]||(e.addEventListener("focus",t=>{const r=t.target;op(r)},{capture:!0,passive:!0}),e.activeElement&&op(e.activeElement),e.addEventListener("blur",t=>{const r=t.target,n=ow(r);n!==void 0&&(r.value!==n&&vt(r,"change"),Df(r))},{capture:!0,passive:!0}),e[Nt]=Nt)}function op(e){e[Nt]||(V(e,["input","textarea"])&&(Fw(e),zw(e),Vw(e)),e[Nt]=Nt)}function Hw(e){return Ww(e)?e:e.ownerDocument}function Ww(e){return e.nodeType===9}var Ce=(function(e){return e[e.Trigger=2]="Trigger",e[e.Call=1]="Call",e})({});function Ho(e,t){e.levelRefs[t]={}}function ja(e,t){return e.levelRefs[t]}function kt(e){const t=e.delay;if(typeof t=="number")return Promise.all([new Promise(r=>globalThis.setTimeout(()=>r(),t)),e.advanceTimers(t)])}var Ba=(function(e){return e[e.EachTrigger=4]="EachTrigger",e[e.EachApiCall=2]="EachApiCall",e[e.EachTarget=1]="EachTarget",e[e.Never=0]="Never",e})({});function yt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ke=(function(e){return e[e.STANDARD=0]="STANDARD",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.NUMPAD=3]="NUMPAD",e})({});const Gw=["Alt","AltGraph","Control","Fn","Meta","Shift","Symbol"];function ap(e){return Gw.includes(e)}const Kw=["CapsLock","FnLock","NumLock","ScrollLock","SymbolLock"];function ip(e){return Kw.includes(e)}class Yw{isKeyPressed(t){return this.pressed.has(String(t.code))}getPressedKeys(){return this.pressed.values().map(t=>t.keyDef)}async keydown(t,r){const n=String(r.key),o=String(r.code),a=Ki(t.config.document);this.setKeydownTarget(a),this.pressed.add(o,r),ap(n)&&(this.modifiers[n]=!0);const i=t.dispatchUIEvent(a,"keydown",{key:n,code:o});ip(n)&&!this.modifiers[n]&&(this.modifiers[n]=!0,this.modifierLockStart[n]=!0),i&&this.pressed.setUnprevented(o),i&&this.hasKeyPress(n)&&t.dispatchUIEvent(Ki(t.config.document),"keypress",{key:n,code:o,charCode:r.key==="Enter"?13:String(r.key).charCodeAt(0)})}async keyup(t,r){const n=String(r.key),o=String(r.code),a=this.pressed.isUnprevented(o);this.pressed.delete(o),ap(n)&&!this.pressed.values().find(i=>i.keyDef.key===n)&&(this.modifiers[n]=!1),t.dispatchUIEvent(Ki(t.config.document),"keyup",{key:n,code:o},!a),ip(n)&&this.modifiers[n]&&(this.modifierLockStart[n]?this.modifierLockStart[n]=!1:this.modifiers[n]=!1)}setKeydownTarget(t){t!==this.lastKeydownTarget&&(this.carryChar=""),this.lastKeydownTarget=t}hasKeyPress(t){return(t.length===1||t==="Enter")&&!this.modifiers.Control&&!this.modifiers.Alt}constructor(t){yt(this,"system",void 0),yt(this,"modifiers",{Alt:!1,AltGraph:!1,CapsLock:!1,Control:!1,Fn:!1,FnLock:!1,Meta:!1,NumLock:!1,ScrollLock:!1,Shift:!1,Symbol:!1,SymbolLock:!1}),yt(this,"pressed",new class{add(r,n){var o,a,i;(i=(o=this.registry)[a=r])!==null&&i!==void 0||(o[a]={keyDef:n,unpreventedDefault:!1})}has(r){return!!this.registry[r]}setUnprevented(r){const n=this.registry[r];n&&(n.unpreventedDefault=!0)}isUnprevented(r){var n;return!!(!((n=this.registry[r])===null||n===void 0)&&n.unpreventedDefault)}delete(r){delete this.registry[r]}values(){return Object.values(this.registry)}constructor(){yt(this,"registry",{})}}),yt(this,"carryChar",""),yt(this,"lastKeydownTarget",void 0),yt(this,"modifierLockStart",{}),this.system=t}}const Xw=[..."0123456789".split("").map(e=>({code:`Digit${e}`,key:e})),...")!@#$%^&*(".split("").map((e,t)=>({code:`Digit${t}`,key:e,shiftKey:!0})),..."abcdefghijklmnopqrstuvwxyz".split("").map(e=>({code:`Key${e.toUpperCase()}`,key:e})),..."ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").map(e=>({code:`Key${e}`,key:e,shiftKey:!0})),{code:"BracketLeft",key:"["},{code:"BracketLeft",key:"{",shiftKey:!0},{code:"BracketRight",key:"]"},{code:"BracketRight",key:"}",shiftKey:!0},{code:"Space",key:" "},{code:"AltLeft",key:"Alt",location:ke.LEFT},{code:"AltRight",key:"Alt",location:ke.RIGHT},{code:"ShiftLeft",key:"Shift",location:ke.LEFT},{code:"ShiftRight",key:"Shift",location:ke.RIGHT},{code:"ControlLeft",key:"Control",location:ke.LEFT},{code:"ControlRight",key:"Control",location:ke.RIGHT},{code:"MetaLeft",key:"Meta",location:ke.LEFT},{code:"MetaRight",key:"Meta",location:ke.RIGHT},{code:"OSLeft",key:"OS",location:ke.LEFT},{code:"OSRight",key:"OS",location:ke.RIGHT},{code:"ContextMenu",key:"ContextMenu"},{code:"Tab",key:"Tab"},{code:"CapsLock",key:"CapsLock"},{code:"Backspace",key:"Backspace"},{code:"Enter",key:"Enter"},{code:"Escape",key:"Escape"},{code:"ArrowUp",key:"ArrowUp"},{code:"ArrowDown",key:"ArrowDown"},{code:"ArrowLeft",key:"ArrowLeft"},{code:"ArrowRight",key:"ArrowRight"},{code:"Home",key:"Home"},{code:"End",key:"End"},{code:"Delete",key:"Delete"},{code:"PageUp",key:"PageUp"},{code:"PageDown",key:"PageDown"},{code:"Fn",key:"Fn"},{code:"Symbol",key:"Symbol"},{code:"AltRight",key:"AltGraph"}],Jw=[{name:"MouseLeft",pointerType:"mouse",button:"primary"},{name:"MouseRight",pointerType:"mouse",button:"secondary"},{name:"MouseMiddle",pointerType:"mouse",button:"auxiliary"},{name:"TouchA",pointerType:"touch"},{name:"TouchB",pointerType:"touch"},{name:"TouchC",pointerType:"touch"}];function Qw(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class sp{getButtons(){let t=0;for(const r of Object.keys(this.pressed))t|=2**Number(r);return t}down(t){const r=Cs(t.button);if(r in this.pressed){this.pressed[r].push(t);return}return this.pressed[r]=[t],r}up(t){const r=Cs(t.button);if(r in this.pressed&&(this.pressed[r]=this.pressed[r].filter(n=>n.name!==t.name),this.pressed[r].length===0))return delete this.pressed[r],r}constructor(){Qw(this,"pressed",{})}}const lp={primary:0,secondary:1,auxiliary:2,back:3,X1:3,forward:4,X2:4};function Cs(e=0){return e in lp?lp[e]:Number(e)}const up={1:2,2:1};function xs(e){return e=Cs(e),e in up?up[e]:e}function Zw(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class eE{get countPressed(){return this.pressedKeys.size}isPressed(t){return this.pressedKeys.has(t.name)}addPressed(t){return this.pressedKeys.add(t.name)}removePressed(t){return this.pressedKeys.delete(t.name)}constructor(){Zw(this,"pressedKeys",new Set)}}function Wo(e,t){const r=[];for(let a=e;a;a=a.parentElement)r.push(a);const n=[];for(let a=t;a;a=a.parentElement)n.push(a);let o=0;for(;!(o>=r.length||o>=n.length||r[r.length-1-o]!==n[n.length-1-o]);o++);return[r.slice(0,r.length-o),n.slice(0,n.length-o),n.slice(n.length-o)]}function qs({target:e,node:t,offset:r}){return Me(e)?{node:e,offset:r??Ne(e).length}:t?{node:t,offset:r??(t.nodeType===3?t.nodeValue.length:t.childNodes.length)}:cp(e,r)}function cp(e,t,r=!0){let n=t===void 0?e.childNodes.length-1:0;const o=t===void 0?-1:1;for(;t===void 0?n>=(r?Math.max(e.childNodes.length-1,0):0):n<=e.childNodes.length;){if(t&&n===e.childNodes.length)throw new Error("The given offset is out of bounds.");const a=e.childNodes.item(n),i=String(a.textContent);if(i.length)if(t!==void 0&&i.length<t)t-=i.length;else{if(a.nodeType===1)return cp(a,t,!1);if(a.nodeType===3)return{node:a,offset:t??a.nodeValue.length}}n+=o}return{node:e,offset:e.childNodes.length}}function tE({document:e,target:t,clickCount:r,node:n,offset:o}){if(Jm(t))return;const a=Me(t),i=String(a?Ne(t):t.textContent),[s,l]=n?[o,o]:rE(i,o,r);if(a)return At(t,{anchorOffset:s??i.length,focusOffset:l??i.length}),{node:t,start:s??0,end:l??i.length};{const{node:u,offset:f}=qs({target:t,node:n,offset:s}),{node:d,offset:c}=qs({target:t,node:n,offset:l}),h=t.ownerDocument.createRange();try{h.setStart(u,f),h.setEnd(d,c)}catch{throw new Error("The given offset is out of bounds.")}const v=e.getSelection();return v?.removeAllRanges(),v?.addRange(h.cloneRange()),h}}function rE(e,t,r){if(r%3===1||e.length===0)return[t,t];const n=t??e.length;return r%3===2?[n-e.substr(0,t).match(/(\w+|\s+|\W)?$/)[0].length,t===void 0?t:t+e.substr(t).match(/^(\w+|\s+|\W)?/)[0].length]:[n-e.substr(0,t).match(/[^\r\n]*$/)[0].length,t===void 0?t:t+e.substr(t).match(/^[^\r\n]*/)[0].length]}function nE(e,{document:t,target:r,node:n,offset:o}){const a=qs({target:r,node:n,offset:o});if("node"in e){if(a.node===e.node){const i=a.offset<e.start?e.end:e.start,s=a.offset>e.end||a.offset<e.start?a.offset:e.end;At(e.node,{anchorOffset:i,focusOffset:s})}}else{const i=e.cloneRange(),s=i.comparePoint(a.node,a.offset);s<0?i.setStart(a.node,a.offset):s>0&&i.setEnd(a.node,a.offset);const l=t.getSelection();l?.removeAllRanges(),l?.addRange(i.cloneRange())}}function dp(e,t){var r,n,o,a,i,s,l,u,f,d,c,h,v,R,S,p,q,_,T,P,y,g,E,A;return e.target!==t.target||((r=e.coords)===null||r===void 0?void 0:r.x)!==((n=t.coords)===null||n===void 0?void 0:n.x)||((o=e.coords)===null||o===void 0?void 0:o.y)!==((a=t.coords)===null||a===void 0?void 0:a.y)||((i=e.coords)===null||i===void 0?void 0:i.clientX)!==((s=t.coords)===null||s===void 0?void 0:s.clientX)||((l=e.coords)===null||l===void 0?void 0:l.clientY)!==((u=t.coords)===null||u===void 0?void 0:u.clientY)||((f=e.coords)===null||f===void 0?void 0:f.offsetX)!==((d=t.coords)===null||d===void 0?void 0:d.offsetX)||((c=e.coords)===null||c===void 0?void 0:c.offsetY)!==((h=t.coords)===null||h===void 0?void 0:h.offsetY)||((v=e.coords)===null||v===void 0?void 0:v.pageX)!==((R=t.coords)===null||R===void 0?void 0:R.pageX)||((S=e.coords)===null||S===void 0?void 0:S.pageY)!==((p=t.coords)===null||p===void 0?void 0:p.pageY)||((q=e.coords)===null||q===void 0?void 0:q.screenX)!==((_=t.coords)===null||_===void 0?void 0:_.screenX)||((T=e.coords)===null||T===void 0?void 0:T.screenY)!==((P=t.coords)===null||P===void 0?void 0:P.screenY)||((y=e.caret)===null||y===void 0?void 0:y.node)!==((g=t.caret)===null||g===void 0?void 0:g.node)||((E=e.caret)===null||E===void 0?void 0:E.offset)!==((A=t.caret)===null||A===void 0?void 0:A.offset)}function gt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class oE{move(t,r,n){const o=this.position,a=this.getTarget(t);if(this.position=r,!dp(o,r))return;const i=this.getTarget(t),s=this.getEventInit("mousemove"),[l,u]=Wo(a,i);return{leave:()=>{a!==i&&(t.dispatchUIEvent(a,"mouseout",s),l.forEach(f=>t.dispatchUIEvent(f,"mouseleave",s)))},enter:()=>{a!==i&&(t.dispatchUIEvent(i,"mouseover",s),u.forEach(f=>t.dispatchUIEvent(f,"mouseenter",s)))},move:()=>{n||(t.dispatchUIEvent(i,"mousemove",s),this.modifySelecting(t))}}}down(t,r,n){const o=this.buttons.down(r);if(o===void 0)return;const a=this.getTarget(t);this.buttonDownTarget[o]=a;const i=this.getEventInit("mousedown",r.button),s=je(a);!n&&(s||t.dispatchUIEvent(a,"mousedown",i))&&(this.startSelecting(t,i.detail),nt(a)),!s&&xs(r.button)===2&&t.dispatchUIEvent(a,"contextmenu",this.getEventInit("contextmenu",r.button))}up(t,r,n){const o=this.buttons.up(r);if(o===void 0)return;const a=this.getTarget(t);if(!je(a)){if(!n){const s=this.getEventInit("mouseup",r.button);t.dispatchUIEvent(a,"mouseup",s),this.endSelecting()}const i=Wo(this.buttonDownTarget[o],a)[2][0];if(i){const s=this.getEventInit("click",r.button);s.detail&&(t.dispatchUIEvent(i,s.button===0?"click":"auxclick",s),s.button===0&&s.detail===2&&t.dispatchUIEvent(i,"dblclick",{...this.getEventInit("dblclick",r.button),detail:s.detail}))}}}resetClickCount(){this.clickCount.reset()}getEventInit(t,r){const n={...this.position.coords};return n.button=xs(r),n.buttons=this.buttons.getButtons(),t==="mousedown"?n.detail=this.clickCount.getOnDown(n.button):t==="mouseup"?n.detail=this.clickCount.getOnUp(n.button):(t==="click"||t==="auxclick")&&(n.detail=this.clickCount.incOnClick(n.button)),n}getTarget(t){var r;return(r=this.position.target)!==null&&r!==void 0?r:t.config.document.body}startSelecting(t,r){var n,o;this.selecting=tE({document:t.config.document,target:this.getTarget(t),node:(n=this.position.caret)===null||n===void 0?void 0:n.node,offset:(o=this.position.caret)===null||o===void 0?void 0:o.offset,clickCount:r})}modifySelecting(t){var r,n;this.selecting&&nE(this.selecting,{document:t.config.document,target:this.getTarget(t),node:(r=this.position.caret)===null||r===void 0?void 0:r.node,offset:(n=this.position.caret)===null||n===void 0?void 0:n.offset})}endSelecting(){this.selecting=void 0}constructor(){gt(this,"position",{}),gt(this,"buttons",new sp),gt(this,"selecting",void 0),gt(this,"buttonDownTarget",{}),gt(this,"clickCount",new class{incOnClick(t){const r=this.down[t]===void 0?void 0:Number(this.down[t])+1;return this.count=this.count[t]===void 0?{}:{[t]:Number(this.count[t])+1},r}getOnDown(t){var r;this.down={[t]:(r=this.count[t])!==null&&r!==void 0?r:0};var n;return this.count={[t]:(n=this.count[t])!==null&&n!==void 0?n:0},Number(this.count[t])+1}getOnUp(t){return this.down[t]===void 0?void 0:Number(this.down[t])+1}reset(){this.count={}}constructor(){gt(this,"down",{}),gt(this,"count",{})}})}}function La(e,t){var r;return((r=pp(e,t))===null||r===void 0?void 0:r.pointerEvents)!=="none"}function aE(e){const t=qe(e);for(let r=e,n=[];r?.ownerDocument;r=r.parentElement){n.push(r);const o=t.getComputedStyle(r).pointerEvents;if(o&&!["inherit","unset"].includes(o))return{pointerEvents:o,tree:n}}}const fp=Symbol("Last check for pointer-events");function pp(e,t){const r=t[fp];if(!(e.config.pointerEventsCheck!==Ba.Never&&(!r||mp(e.config.pointerEventsCheck,Ba.EachApiCall)&&r[Ce.Call]!==ja(e,Ce.Call)||mp(e.config.pointerEventsCheck,Ba.EachTrigger)&&r[Ce.Trigger]!==ja(e,Ce.Trigger))))return r?.result;const o=aE(t);return t[fp]={[Ce.Call]:ja(e,Ce.Call),[Ce.Trigger]:ja(e,Ce.Trigger),result:o},o}function Go(e,t){const r=pp(e,t);if(r?.pointerEvents==="none")throw new Error([`Unable to perform pointer interaction as the element ${r.tree.length>1?"inherits":"has"} \`pointer-events: none\`:`,"",iE(r.tree)].join(`
317
- `))}function iE(e){return e.reverse().map((t,r)=>["".padEnd(r),t.tagName,t.id&&`#${t.id}`,t.hasAttribute("data-testid")&&`(testId=${t.getAttribute("data-testid")})`,sE(t),e.length>1&&r===0&&" <-- This element declared `pointer-events: none`",e.length>1&&r===e.length-1&&" <-- Asserted pointer events here"].filter(Boolean).join("")).join(`
318
- `)}function sE(e){var t;let r;if(e.hasAttribute("aria-label"))r=e.getAttribute("aria-label");else if(e.hasAttribute("aria-labelledby")){var n,o;r=(o=e.ownerDocument.getElementById(e.getAttribute("aria-labelledby")))===null||o===void 0||(n=o.textContent)===null||n===void 0?void 0:n.trim()}else if(V(e,["button","input","meter","output","progress","select","textarea"])&&(!((t=e.labels)===null||t===void 0)&&t.length))r=Array.from(e.labels).map(i=>{var s;return(s=i.textContent)===null||s===void 0?void 0:s.trim()}).join("|");else if(V(e,"button")){var a;r=(a=e.textContent)===null||a===void 0?void 0:a.trim()}return r=r?.replace(/\n/g," "),Number(r?.length)>30&&(r=`${r?.substring(0,29)}…`),r?`(label=${r})`:""}function mp(e,t){return(e&t)>0}function Ye(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class lE{init(t){const r=this.getTarget(t),[,n]=Wo(null,r),o=this.getEventInit();return Go(t,r),t.dispatchUIEvent(r,"pointerover",o),n.forEach(a=>t.dispatchUIEvent(a,"pointerenter",o)),this}move(t,r){const n=this.position,o=this.getTarget(t);if(this.position=r,!dp(n,r))return;const a=this.getTarget(t),i=this.getEventInit(-1),[s,l]=Wo(o,a);return{leave:()=>{La(t,o)&&o!==a&&(t.dispatchUIEvent(o,"pointerout",i),s.forEach(u=>t.dispatchUIEvent(u,"pointerleave",i)))},enter:()=>{Go(t,a),o!==a&&(t.dispatchUIEvent(a,"pointerover",i),l.forEach(u=>t.dispatchUIEvent(u,"pointerenter",i)))},move:()=>{t.dispatchUIEvent(a,"pointermove",i)}}}down(t,r=0){if(this.isDown)return;const n=this.getTarget(t);Go(t,n),this.isDown=!0,this.isPrevented=!t.dispatchUIEvent(n,"pointerdown",this.getEventInit(r))}up(t,r=0){if(!this.isDown)return;const n=this.getTarget(t);Go(t,n),this.isPrevented=!1,this.isDown=!1,t.dispatchUIEvent(n,"pointerup",this.getEventInit(r))}release(t){const r=this.getTarget(t),[n]=Wo(r,null),o=this.getEventInit();La(t,r)&&(t.dispatchUIEvent(r,"pointerout",o),n.forEach(a=>t.dispatchUIEvent(a,"pointerleave",o))),this.isCancelled=!0}getTarget(t){var r;return(r=this.position.target)!==null&&r!==void 0?r:t.config.document.body}getEventInit(t){return{...this.position.coords,pointerId:this.pointerId,pointerType:this.pointerType,isPrimary:this.isPrimary,button:xs(t),buttons:this.buttons.getButtons()}}constructor({pointerId:t,pointerType:r,isPrimary:n},o){Ye(this,"pointerId",void 0),Ye(this,"pointerType",void 0),Ye(this,"isPrimary",void 0),Ye(this,"buttons",void 0),Ye(this,"isMultitouch",!1),Ye(this,"isCancelled",!1),Ye(this,"isDown",!1),Ye(this,"isPrevented",!1),Ye(this,"position",{}),this.pointerId=t,this.pointerType=r,this.isPrimary=n,this.isMultitouch=!n,this.buttons=o}}function it(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class uE{isKeyPressed(t){return this.devices.get(t.pointerType).isPressed(t)}async press(t,r,n){this.devices.get(r.pointerType).addPressed(r),this.buttons.down(r);const o=this.getPointerName(r),a=r.pointerType==="touch"?this.pointers.new(o,r.pointerType,this.buttons):this.pointers.get(o);a.position=n,a.pointerType!=="touch"&&(this.mouse.position=n),a.pointerType==="touch"&&a.init(t),a.down(t,r.button),a.pointerType!=="touch"&&this.mouse.down(t,r,a.isPrevented)}async move(t,r,n){const o=this.pointers.get(r),a=o.move(t,n),i=o.pointerType==="touch"?void 0:this.mouse.move(t,n,o.isPrevented);a?.leave(),i?.leave(),a?.enter(),i?.enter(),a?.move(),i?.move()}async release(t,r,n){const o=this.devices.get(r.pointerType);o.removePressed(r),this.buttons.up(r);const a=this.pointers.get(this.getPointerName(r)),i=a.isPrevented;if(a.position=n,a.pointerType!=="touch"&&(this.mouse.position=n),o.countPressed===0&&a.up(t,r.button),a.pointerType==="touch"&&a.release(t),a.pointerType==="touch"&&!a.isMultitouch){const s=this.mouse.move(t,n,i);s?.leave(),s?.enter(),s?.move(),this.mouse.down(t,r,i)}if(!a.isMultitouch){const s=this.mouse.move(t,n,i);s?.leave(),s?.enter(),s?.move(),this.mouse.up(t,r,i)}}getPointerName(t){return t.pointerType==="touch"?t.name:t.pointerType}getPreviousPosition(t){return this.pointers.has(t)?this.pointers.get(t).position:void 0}resetClickCount(){this.mouse.resetClickCount()}getMouseTarget(t){var r;return(r=this.mouse.position.target)!==null&&r!==void 0?r:t.config.document.body}setMousePosition(t){this.mouse.position=t,this.pointers.get("mouse").position=t}constructor(t){it(this,"system",void 0),it(this,"mouse",void 0),it(this,"buttons",void 0),it(this,"devices",new class{get(r){var n,o,a;return(a=(n=this.registry)[o=r])!==null&&a!==void 0?a:n[o]=new eE}constructor(){it(this,"registry",{})}}),it(this,"pointers",new class{new(r,n,o){const a=n!=="touch"||!Object.values(this.registry).some(i=>i.pointerType==="touch"&&!i.isCancelled);return a||Object.values(this.registry).forEach(i=>{i.pointerType===n&&!i.isCancelled&&(i.isMultitouch=!0)}),this.registry[r]=new lE({pointerId:this.nextId++,pointerType:n,isPrimary:a},o),this.registry[r]}get(r){if(!this.has(r))throw new Error(`Trying to access pointer "${r}" which does not exist.`);return this.registry[r]}has(r){return r in this.registry}constructor(){it(this,"registry",{}),it(this,"nextId",1)}}),this.system=t,this.buttons=new sp,this.mouse=new oE,this.pointers.new("mouse","mouse",this.buttons)}}function hp(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class bp{getUIEventModifiers(){return{altKey:this.keyboard.modifiers.Alt,ctrlKey:this.keyboard.modifiers.Control,metaKey:this.keyboard.modifiers.Meta,shiftKey:this.keyboard.modifiers.Shift,modifierAltGraph:this.keyboard.modifiers.AltGraph,modifierCapsLock:this.keyboard.modifiers.CapsLock,modifierFn:this.keyboard.modifiers.Fn,modifierFnLock:this.keyboard.modifiers.FnLock,modifierNumLock:this.keyboard.modifiers.NumLock,modifierScrollLock:this.keyboard.modifiers.ScrollLock,modifierSymbol:this.keyboard.modifiers.Symbol,modifierSymbolLock:this.keyboard.modifiers.SymbolLock}}constructor(){hp(this,"keyboard",new Yw(this)),hp(this,"pointer",new uE(this))}}async function cE(e){const t=[];return this.config.skipHover||t.push({target:e}),t.push({keys:"[MouseLeft]",target:e}),this.pointer(t)}async function dE(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft]"])}async function fE(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft][MouseLeft]"])}async function pE(e){return this.pointer({target:e})}async function mE(e){return Go(this,this.system.pointer.getMouseTarget(this)),this.pointer({target:e.ownerDocument.body})}async function hE({shift:e}={}){return this.keyboard(e===!0?"{Shift>}{Tab}{/Shift}":e===!1?"[/ShiftLeft][/ShiftRight]{Tab}":"{Tab}")}var _s=(function(e){return e["{"]="}",e["["]="]",e})(_s||{});function vp(e,t){let r=0;const n=e[r]in _s?e[r]:"";r+=n.length;const a=new RegExp(`^\\${n}{2}`).test(e)?"":n;return{type:a,...a===""?bE(e,r,t):vE(e,r,a,t)}}function bE(e,t,r){const n=e[t];return yp(n,e,t,r),t+=n.length,{consumedLength:t,descriptor:n,releasePrevious:!1,releaseSelf:!0,repeat:1}}function vE(e,t,r,n){var o,a;const i=e[t]==="/"?"/":"";t+=i.length;const s=r==="{"&&e[t]==="\\";t+=Number(s);const l=s?e[t]:(o=e.slice(t).match(r==="{"?/^\w+|^[^}>/]/:/^\w+/))===null||o===void 0?void 0:o[0];yp(l,e,t,n),t+=l.length;var u;const f=(u=(a=e.slice(t).match(/^>\d+/))===null||a===void 0?void 0:a[0])!==null&&u!==void 0?u:"";t+=f.length;const d=e[t]==="/"||!f&&e[t]===">"?e[t]:"";t+=d.length;const c=_s[r],h=e[t]===c?c:"";if(!h)throw new Error(gp([!f&&"repeat modifier",!d&&"release modifier",`"${c}"`].filter(Boolean).join(" or "),e[t],e,n));return t+=h.length,{consumedLength:t,descriptor:l,releasePrevious:!!i,repeat:f?Math.max(Number(f.substr(1)),1):1,releaseSelf:yE(d,f)}}function yp(e,t,r,n){if(!e)throw new Error(gp("key descriptor",t[r],t,n))}function yE(e,t){if(e)return e==="/";if(t)return!1}function gp(e,t,r,n){return`Expected ${e} but found "${t??""}" in "${r}"
319
- See ${n==="pointer"?"https://testing-library.com/docs/user-event/pointer#pressing-a-button-or-touching-the-screen":"https://testing-library.com/docs/user-event/keyboard"}
320
- for more information about how userEvent parses your input.`}function gE(e,t){const r=[];do{const{type:o,descriptor:a,consumedLength:i,releasePrevious:s,releaseSelf:l=!0,repeat:u}=vp(t,"keyboard");var n;const f=(n=e.find(d=>{if(o==="["){var c;return((c=d.code)===null||c===void 0?void 0:c.toLowerCase())===a.toLowerCase()}else if(o==="{"){var h;return((h=d.key)===null||h===void 0?void 0:h.toLowerCase())===a.toLowerCase()}return d.key===a}))!==null&&n!==void 0?n:{key:"Unknown",code:"Unknown",[o==="["?"code":"key"]:a};r.push({keyDef:f,releasePrevious:s,releaseSelf:l,repeat:u}),t=t.slice(i)}while(t);return r}async function RE(e){const t=gE(this.config.keyboardMap,e);for(let r=0;r<t.length;r++)await kt(this.config),await wE(this,t[r])}async function wE(e,{keyDef:t,releasePrevious:r,releaseSelf:n,repeat:o}){const{system:a}=e;if(a.keyboard.isKeyPressed(t)&&await a.keyboard.keyup(e,t),!r){for(let i=1;i<=o;i++)await a.keyboard.keydown(e,t),i<o&&await kt(e.config);n&&await a.keyboard.keyup(e,t)}}async function EE(e){for(const t of e.system.keyboard.getPressedKeys())await e.system.keyboard.keyup(e,t)}function Rp(e){const t=Me(e)?{"text/plain":CE(e)}:{"text/plain":String(e.ownerDocument.getSelection())},r=Hi(qe(e));for(const n in t)t[n]&&r.setData(n,t[n]);return r}function CE(e){const t=Fo(e);return Ne(e).substring(t.startOffset,t.endOffset)}async function xE(){const e=this.config.document;var t;const r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=Rp(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"copy",{clipboardData:n})&&this.config.writeToClipboard&&await Bl(e,n),n}async function qE(){const e=this.config.document;var t;const r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=Rp(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"cut",{clipboardData:n})&&this.config.writeToClipboard&&await Bl(r.ownerDocument,n),n}async function _E(e){const t=this.config.document;var r;const n=(r=t.activeElement)!==null&&r!==void 0?r:t.body;var o;const a=(o=typeof e=="string"?PE(t,e):e)!==null&&o!==void 0?o:await Gm(t).catch(()=>{throw new Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.")});this.dispatchUIEvent(n,"paste",{clipboardData:a})}function PE(e,t){const r=Hi(qe(e));return r.setData("text",t),r}function wp(e,t){const r=[];do{const{descriptor:n,consumedLength:o,releasePrevious:a,releaseSelf:i=!0}=vp(t,"pointer"),s=e.find(l=>l.name===n);s&&r.push({keyDef:s,releasePrevious:a,releaseSelf:i}),t=t.slice(o)}while(t);return r}async function TE(e){const{pointerMap:t}=this.config,r=[];(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="string"?r.push(...wp(t,n)):"keys"in n?r.push(...wp(t,n.keys).map(o=>({...n,...o}))):r.push(n)});for(let n=0;n<r.length;n++)await kt(this.config),await SE(this,r[n]);this.system.pointer.resetClickCount()}async function SE(e,t){var r,n;const o="pointerName"in t&&t.pointerName?t.pointerName:"keyDef"in t?e.system.pointer.getPointerName(t.keyDef):"mouse",a=e.system.pointer.getPreviousPosition(o);var i,s,l,u;const f={target:(i=t.target)!==null&&i!==void 0?i:OE(e,a),coords:(s=t.coords)!==null&&s!==void 0?s:a?.coords,caret:{node:(l=t.node)!==null&&l!==void 0?l:Ep(t)||a==null||(r=a.caret)===null||r===void 0?void 0:r.node,offset:(u=t.offset)!==null&&u!==void 0?u:Ep(t)||a==null||(n=a.caret)===null||n===void 0?void 0:n.offset}};"keyDef"in t?(e.system.pointer.isKeyPressed(t.keyDef)&&(Ho(e,Ce.Trigger),await e.system.pointer.release(e,t.keyDef,f)),t.releasePrevious||(Ho(e,Ce.Trigger),await e.system.pointer.press(e,t.keyDef,f),t.releaseSelf&&(Ho(e,Ce.Trigger),await e.system.pointer.release(e,t.keyDef,f)))):(Ho(e,Ce.Trigger),await e.system.pointer.move(e,o,f))}function Ep(e){var t,r;return!!((r=(t=e.target)!==null&&t!==void 0?t:e.node)!==null&&r!==void 0?r:e.offset!==void 0)}function OE(e,t){if(!t)throw new Error("This pointer has no previous position. Provide a target property!");var r;return(r=t.target)!==null&&r!==void 0?r:e.config.document.body}async function AE(e){if(!_t(e)||je(e))throw new Error("clear()` is only supported on editable elements.");if(nt(e),e.ownerDocument.activeElement!==e)throw new Error("The element to be cleared could not be focused.");if(Wf(e),!_w(e))throw new Error("The element content to be cleared could not be selected.");Mt(this,e,"","deleteContentBackward")}async function ME(e,t){return Cp.call(this,!0,e,t)}async function IE(e,t){return Cp.call(this,!1,e,t)}async function Cp(e,t,r){if(!e&&!t.multiple)throw X().getElementError("Unable to deselect an option in a non-multiple select. Use selectOptions to change the selection instead.",t);const n=Array.isArray(r)?r:[r],o=Array.from(t.querySelectorAll('option, [role="option"]')),a=n.map(s=>{if(typeof s!="string"&&o.includes(s))return s;{const l=o.find(u=>u.value===s||u.innerHTML===s);if(l)return l;throw X().getElementError(`Value "${String(s)}" not found in options`,t)}}).filter(s=>!je(s));if(je(t)||!a.length)return;const i=s=>{s.selected=e,this.dispatchUIEvent(t,"input",{bubbles:!0,cancelable:!1,composed:!0}),this.dispatchUIEvent(t,"change")};if(V(t,"select"))if(t.multiple)for(const s of a){const l=this.config.pointerEventsCheck===0?!0:La(this,s);l&&(this.dispatchUIEvent(s,"pointerover"),this.dispatchUIEvent(t,"pointerenter"),this.dispatchUIEvent(s,"mouseover"),this.dispatchUIEvent(t,"mouseenter"),this.dispatchUIEvent(s,"pointermove"),this.dispatchUIEvent(s,"mousemove"),this.dispatchUIEvent(s,"pointerdown"),this.dispatchUIEvent(s,"mousedown")),nt(t),l&&(this.dispatchUIEvent(s,"pointerup"),this.dispatchUIEvent(s,"mouseup")),i(s),l&&this.dispatchUIEvent(s,"click"),await kt(this.config)}else if(a.length===1){const s=this.config.pointerEventsCheck===0?!0:La(this,t);s?await this.click(t):nt(t),i(a[0]),s&&(this.dispatchUIEvent(t,"pointerover"),this.dispatchUIEvent(t,"pointerenter"),this.dispatchUIEvent(t,"mouseover"),this.dispatchUIEvent(t,"mouseenter"),this.dispatchUIEvent(t,"pointerup"),this.dispatchUIEvent(t,"mouseup"),this.dispatchUIEvent(t,"click")),await kt(this.config)}else throw X().getElementError("Cannot select multiple options on a non-multiple select",t);else if(t.getAttribute("role")==="listbox")for(const s of a)await this.click(s),await this.unhover(s);else throw X().getElementError("Cannot select options on elements that are neither select nor listbox elements",t)}async function NE(e,t,{skipClick:r=this.config.skipClick,skipAutoClose:n=this.config.skipAutoClose,initialSelectionStart:o,initialSelectionEnd:a}={}){e.disabled||(r||await this.click(e),o!==void 0&&zo(e,o,a??o),await this.keyboard(t),n||await EE(this))}const xp=Symbol("files and value properties are mocked");function Ps(e,t,r){r?Object.defineProperty(e,t,r):delete e[t]}function kE(e,t){var r;(r=e[xp])===null||r===void 0||r.restore();const n=Object.getOwnPropertyDescriptor(e,"type"),o=Object.getOwnPropertyDescriptor(e,"value"),a=Object.getOwnPropertyDescriptor(e,"files");function i(){Ps(e,"type",n),Ps(e,"value",o),Ps(e,"files",a)}e[xp]={restore:i},Object.defineProperties(e,{files:{configurable:!0,get:()=>t},value:{configurable:!0,get:()=>t.length?`C:\\fakepath\\${t[0].name}`:"",set(s){if(s==="")i();else{var l;o==null||(l=o.set)===null||l===void 0||l.call(e,s)}}},type:{configurable:!0,get:()=>"file",set(s){s!=="file"&&(i(),e.type=s)}}})}async function DE(e,t){const r=V(e,"label")?e.control:e;if(!r||!V(r,"input",{type:"file"}))throw new TypeError(`The ${r===e?"given":"associated"} ${r?.tagName} element does not accept file uploads`);if(je(e))return;const n=(Array.isArray(t)?t:[t]).filter(a=>!this.config.applyAccept||jE(a,r.accept)).slice(0,r.multiple?void 0:1),o=()=>{var a;n.length===((a=r.files)===null||a===void 0?void 0:a.length)&&n.every((i,s)=>{var l;return i===((l=r.files)===null||l===void 0?void 0:l.item(s))})||(kE(r,Vi(qe(e),n)),this.dispatchUIEvent(r,"input"),this.dispatchUIEvent(r,"change"))};r.addEventListener("fileDialog",o),await this.click(e),r.removeEventListener("fileDialog",o)}function $a(e){return e.toLowerCase().replace(/(\.|\/)jpg\b/g,"$1jpeg")}function jE(e,t){if(!t)return!0;const r=["audio/*","image/*","video/*"];return $a(t).trim().split(/\s*,\s*/).some(n=>n.startsWith(".")?$a(e.name).endsWith(n):r.includes(n)?$a(e.type).startsWith(n.replace("*","")):$a(e.type)===n)}const qp={click:cE,dblClick:dE,tripleClick:fE,hover:pE,unhover:mE,tab:hE,keyboard:RE,copy:xE,cut:qE,paste:_E,pointer:TE,clear:AE,deselectOptions:IE,selectOptions:ME,type:NE,upload:DE};function BE(e){return X().asyncWrapper(e)}const _p={applyAccept:!0,autoModify:!0,delay:0,document:globalThis.document,keyboardMap:Xw,pointerMap:Jw,pointerEventsCheck:Ba.EachApiCall,skipAutoClose:!1,skipClick:!1,skipHover:!1,writeToClipboard:!1,advanceTimers:()=>Promise.resolve()},LE={..._p,writeToClipboard:!0};function Pp(e={},t=LE,r){const n=zE(e,r,t);return{...t,...e,document:n}}function $E(e={}){const t=Pp(e);np(t.document),tp(qe(t.document).HTMLElement);var r;const n=(r=t.document.defaultView)!==null&&r!==void 0?r:globalThis.window;return Vm(n),Ts(t).api}function me({keyboardState:e,pointerState:t,...r}={},n){const o=Pp(r,_p,n);np(o.document),tp(qe(o.document).HTMLElement);var a;const i=(a=t??e)!==null&&a!==void 0?a:new bp;return{api:Ts(o,i).api,system:i}}function FE(e){return Ts({...this.config,...e},this.system).api}function UE(e,t){function r(...n){return Ho(e,Ce.Call),BE(()=>t.apply(e,n).then(async o=>(await kt(e.config),o)))}return Object.defineProperty(r,"name",{get:()=>t.name}),r}function Ts(e,t=new bp){const r={};return Object.assign(r,{config:e,dispatchEvent:Zf.bind(r),dispatchUIEvent:$w.bind(r),system:t,levelRefs:{},...qp}),{instance:r,api:{...Object.fromEntries(Object.entries(qp).map(([n,o])=>[n,UE(r,o)])),setup:FE.bind(r)}}}function zE(e,t,r){var n,o;return(o=(n=e.document)!==null&&n!==void 0?n:t&&Hw(t))!==null&&o!==void 0?o:r.document}function VE(e){return me().api.clear(e)}function HE(e,t={}){return me(t,e).api.click(e)}function WE(e={}){return me(e).api.copy()}function GE(e={}){return me(e).api.cut()}function KE(e,t={}){return me(t).api.dblClick(e)}function YE(e,t,r={}){return me(r).api.deselectOptions(e,t)}function XE(e,t={}){return me(t).api.hover(e)}async function JE(e,t={}){const{api:r,system:n}=me(t);return r.keyboard(e).then(()=>n)}async function QE(e,t={}){const{api:r,system:n}=me(t);return r.pointer(e).then(()=>n)}function ZE(e,t){return me(t).api.paste(e)}function eC(e,t,r={}){return me(r).api.selectOptions(e,t)}function tC(e,t={}){return me(t).api.tripleClick(e)}function rC(e,t,r={}){return me(r,e).api.type(e,t,r)}function nC(e,t={}){const{api:r,system:n}=me(t);return n.pointer.setMousePosition({target:e}),r.unhover(e)}function oC(e,t,r={}){return me(r).api.upload(e,t)}function aC(e={}){return me().api.tab(e)}const iC={...Object.freeze(Object.defineProperty({__proto__:null,clear:VE,click:HE,copy:WE,cut:GE,dblClick:KE,deselectOptions:YE,hover:XE,keyboard:JE,paste:ZE,pointer:QE,selectOptions:eC,tab:aC,tripleClick:tC,type:rC,unhover:nC,upload:oC},Symbol.toStringTag,{value:"Module"})),setup:$E};function sC(e,t,r){switch(t){case"type":return`Event fired: Typed "${r[1]}" into element`;case"selectOptions":return`Event fired: Selected option(s) ${JSON.stringify(r[1])}`;case"click":return"Event fired: Clicked element";case"dblClick":return"Event fired: Double-clicked element";case"tripleClick":return"Event fired: Triple-clicked element";default:return`Event fired: ${e}.${String(t)} executed`}}function Tp(e,t="userEvent"){return new Proxy(e,{get(r,n,o){const a=Reflect.get(r,n,o);return typeof a!="function"?a:n==="setup"?(...i)=>{const s=a(...i);return Tp(s,`${t}.instance`)}:async(...i)=>{const s=await a(...i);return st(sC(t,n,i)),s}}})}const lC=Tp(iC);function uC(){return{name:"remove-mock-sw",apply:"build",closeBundle(){try{Sp.rmSync(Op.resolve("dist/mock-sw.js")),console.log("🧹 Removed mock-sw.js from build")}catch{console.log("🧹 No mock-sw.js found in build")}}}}fe.truncateThreshold=0,se.TWDSidebar=Dm,se.beforeEach=Hp,se.describe=Wp,se.expect=Vt,se.initTests=Bm,se.it=Gp,se.itOnly=Kp,se.itSkip=Yp,se.removeMockServiceWorker=uC,se.twd=Xp,se.userEvent=lC,Object.defineProperty(se,Symbol.toStringTag,{value:"Module"})}));