1114 lines
No EOL
1 MiB
1114 lines
No EOL
1 MiB
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./react-18-TPsEcK46.js","./react-18-BQs_Gmad.js","./chunk-BneVvdWh.js","./react-dom-P9SK4Tis.js","./axe-TgFz8JLl.js","./matchers-5TDFFDYO-DhLEHMH_.js","./DocsRenderer-LL677BLK-BYDUOrCP.js","./preload-helper-nVtPd9zc.js","./chunk-CYSK6WYR-BwloUEI2.js","./components-BJM7pUDn.js","./chunk-242VQQM5-EiyAdkXv.js","./chunk-3LY4VQVK-Di70sXb8.js","./csf-w9PT11_Q.js","./theming-CFy5g9Ag.js","./chunk-YKABRMAI-qYi2mBo7.js"])))=>i.map(i=>d[i]);
|
||
import{a as e,i as t,n,r,t as i}from"./chunk-BneVvdWh.js";import{_ as a,c as o,d as s,f as c,g as l,h as u,l as d,m as f,p,u as m,v as h}from"./csf-w9PT11_Q.js";import{n as g,t as _}from"./preload-helper-nVtPd9zc.js";var v=n((()=>{(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})()})),y=n((()=>{}));function b(e){var t=[...arguments].slice(1),n=Array.from(typeof e==`string`?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,``);var r=n.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){return e.match(/[\t ]/g)?.length??0})):e},[]);if(r.length){var i=RegExp(`
|
||
[ ]{`+Math.min.apply(Math,r)+`}`,`g`);n=n.map(function(e){return e.replace(i,`
|
||
`)})}n[0]=n[0].replace(/^\r?\n/,``);var a=n[0];return t.forEach(function(e,t){var r=a.match(/(?:^|\n)( *)$/),i=r?r[1]:``,o=e;typeof e==`string`&&e.includes(`
|
||
`)&&(o=String(e).split(`
|
||
`).map(function(e,t){return t===0?e:``+i+e}).join(`
|
||
`)),a+=o+n[t+1]}),a}function x(e){let t=lE.filter(t=>e[t]!==void 0).reduce((t,n)=>(t[n]=e[n],t),{});if(e instanceof CustomEvent)for(let n of uE.filter(t=>e[t]!==void 0))t[n]=e[n];return t}function S(e){return typeof e==`object`&&!!e&&Array.isArray(e)===!1}function C(e){var t=aD.call(e,sD),n=e[sD];try{e[sD]=void 0;var r=!0}catch{}var i=oD.call(e);return r&&(t?e[sD]=n:delete e[sD]),i}function w(e){return lD.call(e)}function T(e){return e==null?e===void 0?fD:dD:pD&&pD in Object(e)?cD(e):uD(e)}function E(e){return typeof e==`object`&&!!e}function D(e){return typeof e==`symbol`||hD(e)&&mD(e)==gD}function O(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function k(e){if(typeof e==`string`)return e;if(yD(e))return vD(e,k)+``;if(_D(e))return SD?SD.call(e):``;var t=e+``;return t==`0`&&1/e==-bD?`-0`:t}function A(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function j(e){if(!wD(e))return!1;var t=mD(e);return t==ED||t==DD||t==TD||t==OD}function M(e){return!!jD&&jD in e}function ee(e){if(e!=null){try{return ND.call(e)}catch{}try{return e+``}catch{}}return``}function N(e){return!wD(e)||MD(e)?!1:(kD(e)?VD:ID).test(PD(e))}function te(e,t){return e?.[t]}function ne(e,t){var n=UD(e,t);return HD(n)?n:void 0}function re(e,t){return e===t||e!==e&&t!==t}function P(e,t){if(yD(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||_D(e)?!0:qD.test(e)||!KD.test(e)||t!=null&&e in Object(t)}function ie(){this.__data__=YD?YD(null):{},this.size=0}function ae(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function oe(e){var t=this.__data__;if(YD){var n=t[e];return n===QD?void 0:n}return $D.call(t,e)?t[e]:void 0}function F(e){var t=this.__data__;return YD?t[e]!==void 0:tO.call(t,e)}function se(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=YD&&t===void 0?rO:t,this}function ce(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function le(){this.__data__=[],this.size=0}function ue(e,t){for(var n=e.length;n--;)if(GD(e[n][0],t))return n;return-1}function de(e){var t=this.__data__,n=sO(t,e);return n<0?!1:(n==t.length-1?t.pop():cO.call(t,n,1),--this.size,!0)}function fe(e){var t=this.__data__,n=sO(t,e);return n<0?void 0:t[n][1]}function pe(e){return sO(this.__data__,e)>-1}function me(e,t){var n=this.__data__,r=sO(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function he(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ge(){this.size=0,this.__data__={hash:new aO,map:new(mO||pO),string:new aO}}function _e(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function ve(e,t){var n=e.__data__;return gO(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function ye(e){var t=_O(this,e).delete(e);return this.size-=t?1:0,t}function be(e){return _O(this,e).get(e)}function xe(e){return _O(this,e).has(e)}function Se(e,t){var n=_O(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function I(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ce(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(CO);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Ce.Cache||SO),n}function we(e){var t=wO(e,function(e){return n.size===TO&&n.clear(),e}),n=t.cache;return t}function Te(e){return e==null?``:CD(e)}function L(e,t){return yD(e)?e:JD(e,t)?[e]:kO(AO(e))}function Ee(e){if(typeof e==`string`||_D(e))return e;var t=e+``;return t==`0`&&1/e==-MO?`-0`:t}function De(e,t){t=jO(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[NO(t[n++])];return n&&n==r?e:void 0}function Oe(e,t,n){var r=e==null?void 0:PO(e,t);return r===void 0?n:r}function R(e){if(!IO(e))return e;let t=e,n=!1;return typeof Event<`u`&&e instanceof Event&&(t=x(t),n=!0),t=Object.keys(t).reduce((e,r)=>{try{t[r]&&t[r].toJSON,e[r]=t[r]}catch{n=!0}return e},{}),n?t:e}function ke(e,t){if(!e){if(GO)throw Error(KO);var n=typeof t==`function`?t():t,r=n?`${KO}: ${n}`:KO;throw Error(r)}}function Ae({page:e,extraTransports:t=[]}){let n=[new QO({page:e}),...t];if(ik===`DEVELOPMENT`){let t=window.location.protocol===`http:`?`ws`:`wss`,{hostname:r,port:i}=window.location,{wsToken:a}=rk||{},o=`${t}://${r}:${i}/storybook-server-channel?token=${a}`;n.push(new nk({url:o,onError:()=>{},page:e}))}let r=new GT({transports:n});return HT.__prepare(r,e===`manager`?HT.Environment.MANAGER:HT.Environment.PREVIEW),r}function je({code:e,category:t}){return`SB_${t}_${String(e).padStart(4,`0`)}`}function Me(e){if(/^(?!.*storybook\.js\.org)|[?&]ref=error\b/.test(e))return e;try{let t=new URL(e);return t.searchParams.set(`ref`,`error`),t.toString()}catch{return e}}function Ne(){return new GT({transport:{setHandler:()=>{},send:()=>{}}})}function Pe(){return q[Kk]||(q[Kk]=new Gk),q[Kk]}function Fe(e){let t=(...t)=>{let{hooks:n}=typeof t[0]==`function`?t[1]:t[0],r=n.currentPhase,i=n.currentHooks,a=n.nextHookIndex,o=n.currentDecoratorName;n.currentDecoratorName=e.name,n.prevMountedDecorators.has(e)?(n.currentPhase=`UPDATE`,n.currentHooks=n.hookListsMap.get(e)||[]):(n.currentPhase=`MOUNT`,n.currentHooks=[],n.hookListsMap.set(e,n.currentHooks),n.prevMountedDecorators.add(e)),n.nextHookIndex=0;let s=q.STORYBOOK_HOOKS_CONTEXT;q.STORYBOOK_HOOKS_CONTEXT=n;let c=e(...t);if(q.STORYBOOK_HOOKS_CONTEXT=s,n.currentPhase===`UPDATE`&&n.getNextHook()!=null)throw Error(`Rendered fewer hooks than expected. This may be caused by an accidental early return statement.`);return n.currentPhase=r,n.currentHooks=i,n.nextHookIndex=a,n.currentDecoratorName=o,c};return t.originalFn=e,t}function z(){return q.STORYBOOK_HOOKS_CONTEXT||null}function Ie(){let e=z();if(e==null)throw $k();return e}function Le(e,t,n){let r=Ie();if(r.currentPhase===`MOUNT`){n!=null&&!Array.isArray(n)&&XT.warn(`${e} received a final argument that is not an array (instead, received ${n}). When specified, the final argument must be an array.`);let i={name:e,deps:n};return r.currentHooks.push(i),t(i),i}if(r.currentPhase===`UPDATE`){let i=r.getNextHook();if(i==null)throw Error(`Rendered more hooks than during the previous render.`);return i.name!==e&&XT.warn(`Storybook has detected a change in the order of Hooks${r.currentDecoratorName?` called by ${r.currentDecoratorName}`:``}. This will lead to bugs and errors if not fixed.`),n!=null&&i.deps==null&&XT.warn(`${e} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`),n!=null&&i.deps!=null&&n.length!==i.deps.length&&XT.warn(`The final argument passed to ${e} changed size between renders. The order and size of this array must remain constant.
|
||
Previous: ${i.deps}
|
||
Incoming: ${n}`),(n==null||i.deps==null||!Qk(n,i.deps))&&(t(i),i.deps=n),i}throw $k()}function Re(e,t,n){let{memoizedState:r}=Le(e,e=>{e.memoizedState=t()},n);return r}function ze(e,t){return Re(`useMemo`,e,t)}function Be(e,t){return Re(`useCallback`,()=>e,t)}function Ve(e,t){return Re(e,()=>({current:t}),[])}function He(e){return Ve(`useRef`,e)}function Ue(){let e=z();if(e!=null&&e.currentPhase!==`NONE`)e.hasUpdates=!0;else try{qk.getChannel().emit(Mw)}catch{XT.warn(`State updates of Storybook preview hooks work only in browser`)}}function B(e,t){let n=Ve(e,typeof t==`function`?t():t);return[n.current,e=>{n.current=typeof e==`function`?e(n.current):e,Ue()}]}function We(e){return B(`useState`,e)}function Ge(e,t,n){let[r,i]=B(`useReducer`,n==null?t:()=>n(t));return[r,t=>i(n=>e(n,t))]}function Ke(e,t){let n=Ie(),r=Re(`useEffect`,()=>({create:e}),t);n.currentEffects.includes(r)||n.currentEffects.push(r)}function qe(e,t=[]){let n=qk.getChannel();return Ke(()=>(Object.entries(e).forEach(([e,t])=>n.on(e,t)),()=>{Object.entries(e).forEach(([e,t])=>n.removeListener(e,t))}),[...Object.keys(e),...t]),Be(n.emit.bind(n),[n])}function V(){let{currentContext:e}=Ie();if(e==null)throw $k();return e}function Je(e,t){let{parameters:n}=V();if(e)return n[e]??t}function Ye(){let e=qk.getChannel(),{id:t,args:n}=V();return[n,Be(n=>e.emit(gT,{storyId:t,updatedArgs:n}),[e,t]),Be(n=>e.emit(Uw,{storyId:t,argNames:n}),[e,t])]}function Xe(){let e=qk.getChannel(),{globals:t}=V();return[t,Be(t=>e.emit(mT,{globals:t}),[e])]}function Ze(e){return e.replace(/_/g,` `).replace(/-/g,` `).replace(/\./g,` `).replace(/([^\n])([A-Z])([a-z])/g,(e,t,n,r)=>`${t} ${n}${r}`).replace(/([a-z])([A-Z])/g,(e,t,n)=>`${t} ${n}`).replace(/([a-z])([0-9])/gi,(e,t,n)=>`${t} ${n}`).replace(/([0-9])([a-z])/gi,(e,t,n)=>`${t} ${n}`).replace(/(\s|^)(\w)/g,(e,t,n)=>`${t}${n.toUpperCase()}`).replace(/ +/g,` `).trim()}function Qe(e){return e!=null&&$e(e).includes(`mount`)}function $e(e){let[,t,n]=e.toString().match(/[^(]*\(([^)]+)\)(?:.*{([^]+)})?/)||[];if(!t)return[];let[r]=tt(t);if(!r)return[];let[,i]=r.match(/^{([^]+)}$/)||[];if(i)return tt(et(i)).map(e=>e.replace(/:.*|=.*/g,``).trim());if(!r.match(/^[a-z_$][0-9a-z_$]*$/i))return[];let a=r.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),[,o]=n?.trim()?.match(RegExp(`^(?:const|let|var)\\s*{([^}]+)}\\s*=\\s*${a};`))||[];return o?tt(et(o)).map(e=>e.replace(/:.*|=.*/g,``).trim()):[]}function et(e){return e=e.replace(/\/\/.*$/gm,``),e=e.replace(/\/\*[\s\S]*?\*\//g,``),e}function tt(e){let t=[],n=[],r=0;for(let i=0;i<e.length;i++)if(e[i]===`{`||e[i]===`[`)n.push(e[i]===`{`?`}`:`]`);else if(e[i]===n[n.length-1])n.pop();else if(!n.length&&e[i]===`,`){let n=e.substring(r,i).trim();n&&t.push(n),r=i+1}let i=e.substring(r).trim();return i&&t.push(i),t}function nt(e){return String(e)}function rt(e=!1){let t=typeof process<`u`?process:void 0,n=t?.env||{},r=t?.argv||[];return!(`NO_COLOR`in n||r.includes(`--no-color`))&&(`FORCE_COLOR`in n||r.includes(`--color`)||t?.platform===`win32`||e&&n.TERM!==`dumb`||`CI`in n)||typeof window<`u`&&!!window.chrome}function it(e=!1){let t=rt(e),n=(e,t,n,r)=>{let i=``,a=0;do i+=e.substring(a,r)+n,a=r+t.length,r=e.indexOf(t,a);while(~r);return i+e.substring(a)},r=(e,t,r=e)=>{let i=i=>{let a=String(i),o=a.indexOf(t,e.length);return~o?e+n(a,t,r,o)+t:e+a+t};return i.open=e,i.close=t,i},i={isColorSupported:t},a=e=>`\x1B[${e}m`;for(let[e,n]of pA)i[e]=t?r(a(n[0]),a(n[1]),n[2]):nt;return i}function at(e,t){return t.forEach(function(t){t&&typeof t!=`string`&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if(n!==`default`&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}function ot(e,t){let n=Object.keys(e),r=t===null?n:n.sort(t);if(Object.getOwnPropertySymbols)for(let t of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,t).enumerable&&r.push(t);return r}function st(e,t,n,r,i,a,o=`: `){let s=``,c=0,l=e.next();if(!l.done){s+=t.spacingOuter;let u=n+t.indent;for(;!l.done;){if(s+=u,c++===t.maxWidth){s+=`…`;break}let n=a(l.value[0],t,u,r,i),d=a(l.value[1],t,u,r,i);s+=n+o+d,l=e.next(),l.done?t.min||(s+=`,`):s+=`,${t.spacingInner}`}s+=t.spacingOuter+n}return s}function ct(e,t,n,r,i,a){let o=``,s=0,c=e.next();if(!c.done){o+=t.spacingOuter;let l=n+t.indent;for(;!c.done;){if(o+=l,s++===t.maxWidth){o+=`…`;break}o+=a(c.value,t,l,r,i),c=e.next(),c.done?t.min||(o+=`,`):o+=`,${t.spacingInner}`}o+=t.spacingOuter+n}return o}function H(e,t,n,r,i,a){let o=``;e=e instanceof ArrayBuffer?new DataView(e):e;let s=e=>e instanceof DataView,c=s(e)?e.byteLength:e.length;if(c>0){o+=t.spacingOuter;let l=n+t.indent;for(let n=0;n<c;n++){if(o+=l,n===t.maxWidth){o+=`…`;break}(s(e)||n in e)&&(o+=a(s(e)?e.getInt8(n):e[n],t,l,r,i)),n<c-1?o+=`,${t.spacingInner}`:t.min||(o+=`,`)}o+=t.spacingOuter+n}return o}function lt(e,t,n,r,i,a){let o=``,s=ot(e,t.compareKeys);if(s.length>0){o+=t.spacingOuter;let c=n+t.indent;for(let n=0;n<s.length;n++){let l=s[n],u=a(l,t,c,r,i),d=a(e[l],t,c,r,i);o+=`${c+u}: ${d}`,n<s.length-1?o+=`,${t.spacingInner}`:t.min||(o+=`,`)}o+=t.spacingOuter+n}return o}function ut(e){return xA.has(e)||SA.test(e)}function dt(e){return e.constructor.name===`NamedNodeMap`}function ft(e){return e.replaceAll(`<`,`<`).replaceAll(`>`,`>`)}function pt(e,t,n,r,i,a,o){let s=r+n.indent,c=n.colors;return e.map(e=>{let l=t[e],u=o(l,n,s,i,a);return typeof l!=`string`&&(u.includes(`
|
||
`)&&(u=n.spacingOuter+s+u+n.spacingOuter+r),u=`{${u}}`),`${n.spacingInner+r+c.prop.open+e+c.prop.close}=${c.value.open}${u}${c.value.close}`}).join(``)}function mt(e,t,n,r,i,a){return e.map(e=>t.spacingOuter+n+(typeof e==`string`?ht(e,t):a(e,t,n,r,i))).join(``)}function ht(e,t){let n=t.colors.content;return n.open+ft(e)+n.close}function gt(e,t){let n=t.colors.comment;return`${n.open}<!--${ft(e)}-->${n.close}`}function _t(e,t,n,r,i){let a=r.colors.tag;return`${a.open}<${e}${t&&a.close+t+r.spacingOuter+i+a.open}${n?`>${a.close}${n}${r.spacingOuter}${i}${a.open}</${e}`:`${t&&!r.min?``:` `}/`}>${a.close}`}function vt(e,t){let n=t.colors.tag;return`${n.open}<${e}${n.close} \u2026${n.open} />${n.close}`}function yt(e){try{return typeof e.hasAttribute==`function`&&e.hasAttribute(`is`)}catch{return!1}}function bt(e){let t=e.constructor.name,{nodeType:n,tagName:r}=e,i=typeof r==`string`&&r.includes(`-`)||yt(e);return n===EA&&(AA.test(t)||i)||n===DA&&t===`Text`||n===OA&&t===`Comment`||n===kA&&t===`DocumentFragment`}function xt(e){return e.nodeType===DA}function St(e){return e.nodeType===OA}function Ct(e){return e.nodeType===kA}function wt(e,t,n,r,i,a,o){return++r>t.maxDepth?WA(UA(o)):`${UA(o)+GA}{${st(e.entries(),t,n,r,i,a)}}`}function Tt(e){let t=0;return{next(){if(t<e._keys.length){let n=e._keys[t++];return{done:!1,value:[n,e.get(n)]}}return{done:!0,value:void 0}}}}function Et(e,t,n,r,i,a){let o=UA(e._name||`Record`);return++r>t.maxDepth?WA(o):`${o+GA}{${st(Tt(e),t,n,r,i,a)}}`}function Dt(e,t,n,r,i,a){let o=UA(`Seq`);return++r>t.maxDepth?WA(o):e[IA]?`${o+GA}{${e._iter||e._object?st(e.entries(),t,n,r,i,a):KA}}`:`${o+GA}[${e._iter||e._array||e._collection||e._iterable?ct(e.values(),t,n,r,i,a):KA}]`}function Ot(e,t,n,r,i,a,o){return++r>t.maxDepth?WA(UA(o)):`${UA(o)+GA}[${ct(e.values(),t,n,r,i,a)}]`}function kt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function At(){if(QA)return ZA;QA=1;var e=Symbol.for(`react.transitional.element`),t=Symbol.for(`react.portal`),n=Symbol.for(`react.fragment`),r=Symbol.for(`react.strict_mode`),i=Symbol.for(`react.profiler`),a=Symbol.for(`react.consumer`),o=Symbol.for(`react.context`),s=Symbol.for(`react.forward_ref`),c=Symbol.for(`react.suspense`),l=Symbol.for(`react.suspense_list`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.view_transition`),p=Symbol.for(`react.client.reference`);function m(p){if(typeof p==`object`&&p){var m=p.$$typeof;switch(m){case e:switch(p=p.type,p){case n:case i:case r:case c:case l:case f:return p;default:switch(p&&=p.$$typeof,p){case o:case s:case d:case u:return p;case a:return p;default:return m}}case t:return m}}}return ZA.ContextConsumer=a,ZA.ContextProvider=o,ZA.Element=e,ZA.ForwardRef=s,ZA.Fragment=n,ZA.Lazy=d,ZA.Memo=u,ZA.Portal=t,ZA.Profiler=i,ZA.StrictMode=r,ZA.Suspense=c,ZA.SuspenseList=l,ZA.isContextConsumer=function(e){return m(e)===a},ZA.isContextProvider=function(e){return m(e)===o},ZA.isElement=function(t){return typeof t==`object`&&!!t&&t.$$typeof===e},ZA.isForwardRef=function(e){return m(e)===s},ZA.isFragment=function(e){return m(e)===n},ZA.isLazy=function(e){return m(e)===d},ZA.isMemo=function(e){return m(e)===u},ZA.isPortal=function(e){return m(e)===t},ZA.isProfiler=function(e){return m(e)===i},ZA.isStrictMode=function(e){return m(e)===r},ZA.isSuspense=function(e){return m(e)===c},ZA.isSuspenseList=function(e){return m(e)===l},ZA.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===n||e===i||e===r||e===c||e===l||typeof e==`object`&&!!e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===o||e.$$typeof===a||e.$$typeof===s||e.$$typeof===p||e.getModuleId!==void 0)},ZA.typeOf=m,ZA}function jt(){return $A||($A=1,XA.exports=At()),XA.exports}function Mt(){if(ij)return rj;ij=1;var e=Symbol.for(`react.element`),t=Symbol.for(`react.portal`),n=Symbol.for(`react.fragment`),r=Symbol.for(`react.strict_mode`),i=Symbol.for(`react.profiler`),a=Symbol.for(`react.provider`),o=Symbol.for(`react.context`),s=Symbol.for(`react.server_context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.suspense_list`),d=Symbol.for(`react.memo`),f=Symbol.for(`react.lazy`),p=Symbol.for(`react.offscreen`),m=Symbol.for(`react.module.reference`);function h(p){if(typeof p==`object`&&p){var m=p.$$typeof;switch(m){case e:switch(p=p.type,p){case n:case i:case r:case l:case u:return p;default:switch(p&&=p.$$typeof,p){case s:case o:case c:case f:case d:case a:return p;default:return m}}case t:return m}}}return rj.ContextConsumer=o,rj.ContextProvider=a,rj.Element=e,rj.ForwardRef=c,rj.Fragment=n,rj.Lazy=f,rj.Memo=d,rj.Portal=t,rj.Profiler=i,rj.StrictMode=r,rj.Suspense=l,rj.SuspenseList=u,rj.isAsyncMode=function(){return!1},rj.isConcurrentMode=function(){return!1},rj.isContextConsumer=function(e){return h(e)===o},rj.isContextProvider=function(e){return h(e)===a},rj.isElement=function(t){return typeof t==`object`&&!!t&&t.$$typeof===e},rj.isForwardRef=function(e){return h(e)===c},rj.isFragment=function(e){return h(e)===n},rj.isLazy=function(e){return h(e)===f},rj.isMemo=function(e){return h(e)===d},rj.isPortal=function(e){return h(e)===t},rj.isProfiler=function(e){return h(e)===i},rj.isStrictMode=function(e){return h(e)===r},rj.isSuspense=function(e){return h(e)===l},rj.isSuspenseList=function(e){return h(e)===u},rj.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===n||e===i||e===r||e===l||e===u||e===p||typeof e==`object`&&!!e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===a||e.$$typeof===o||e.$$typeof===c||e.$$typeof===m||e.getModuleId!==void 0)},rj.typeOf=h,rj}function Nt(){return aj||(aj=1,nj.exports=Mt()),nj.exports}function Pt(e,t=[]){if(Array.isArray(e))for(let n of e)Pt(n,t);else e!=null&&e!==!1&&e!==``&&t.push(e);return t}function Ft(e){let t=e.type;if(typeof t==`string`)return t;if(typeof t==`function`)return t.displayName||t.name||`Unknown`;if(cj.isFragment(e))return`React.Fragment`;if(cj.isSuspense(e))return`React.Suspense`;if(typeof t==`object`&&t){if(cj.isContextProvider(e))return`Context.Provider`;if(cj.isContextConsumer(e))return`Context.Consumer`;if(cj.isForwardRef(e)){if(t.displayName)return t.displayName;let e=t.render.displayName||t.render.name||``;return e===``?`ForwardRef`:`ForwardRef(${e})`}if(cj.isMemo(e)){let e=t.displayName||t.type.displayName||t.type.name||``;return e===``?`Memo`:`Memo(${e})`}}return`UNDEFINED`}function It(e){let{props:t}=e;return Object.keys(t).filter(e=>e!==`children`&&t[e]!==void 0).sort()}function Lt(e){let{props:t}=e;return t?Object.keys(t).filter(e=>t[e]!==void 0).sort():[]}function Rt(e){return typeof e.constructor==`function`&&e.constructor.name||`Object`}function zt(e){return typeof window<`u`&&e===window}function Bt(e){return e===`[object Array]`||e===`[object ArrayBuffer]`||e===`[object DataView]`||e===`[object Float32Array]`||e===`[object Float64Array]`||e===`[object Int8Array]`||e===`[object Int16Array]`||e===`[object Int32Array]`||e===`[object Uint8Array]`||e===`[object Uint8ClampedArray]`||e===`[object Uint16Array]`||e===`[object Uint32Array]`}function Vt(e){return Object.is(e,-0)?`-0`:String(e)}function Ht(e){return`${e}n`}function Ut(e,t){return t?`[Function ${e.name||`anonymous`}]`:`[Function]`}function Wt(e){return String(e).replace(bj,`Symbol($1)`)}function Gt(e){return`[${vj.call(e)}]`}function Kt(e,t,n,r){if(e===!0||e===!1)return`${e}`;if(e===void 0)return`undefined`;if(e===null)return`null`;let i=typeof e;if(i===`number`)return Vt(e);if(i===`bigint`)return Ht(e);if(i===`string`)return r?`"${e.replaceAll(/"|\\/g,`\\$&`)}"`:`"${e}"`;if(i===`function`)return Ut(e,t);if(i===`symbol`)return Wt(e);let a=gj.call(e);return a===`[object WeakMap]`?`WeakMap {}`:a===`[object WeakSet]`?`WeakSet {}`:a===`[object Function]`||a===`[object GeneratorFunction]`?Ut(e,t):a===`[object Symbol]`?Wt(e):a===`[object Date]`?Number.isNaN(+e)?`Date { NaN }`:_j.call(e):a===`[object Error]`?Gt(e):a===`[object RegExp]`?n?yj.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,`\\$&`):yj.call(e):e instanceof Error?Gt(e):null}function qt(e,t,n,r,i,a){if(i.includes(e))return`[Circular]`;i=[...i],i.push(e);let o=++r>t.maxDepth,s=t.min;if(t.callToJSON&&!o&&e.toJSON&&typeof e.toJSON==`function`&&!a)return Zt(e.toJSON(),t,n,r,i,!0);let c=gj.call(e);return c===`[object Arguments]`?o?`[Arguments]`:`${s?``:`Arguments `}[${H(e,t,n,r,i,Zt)}]`:Bt(c)?o?`[${e.constructor.name}]`:`${s||!t.printBasicPrototype&&e.constructor.name===`Array`?``:`${e.constructor.name} `}[${H(e,t,n,r,i,Zt)}]`:c===`[object Map]`?o?`[Map]`:`Map {${st(e.entries(),t,n,r,i,Zt,` => `)}}`:c===`[object Set]`?o?`[Set]`:`Set {${ct(e.values(),t,n,r,i,Zt)}}`:o||zt(e)?`[${Rt(e)}]`:`${s||!t.printBasicPrototype&&Rt(e)===`Object`?``:`${Rt(e)} `}{${lt(e,t,n,r,i,Zt)}}`}function Jt(e){return e.serialize!=null}function Yt(e,t,n,r,i,a){let o;try{o=Jt(e)?e.serialize(t,n,r,i,a,Zt):e.print(t,e=>Zt(e,n,r,i,a),e=>{let t=r+n.indent;return t+e.replaceAll(xj,`
|
||
${t}`)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(e){throw new Sj(e.message,e.stack)}if(typeof o!=`string`)throw TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof o}".`);return o}function Xt(e,t){for(let n of e)try{if(n.test(t))return n}catch(e){throw new Sj(e.message,e.stack)}return null}function Zt(e,t,n,r,i,a){let o=Xt(t.plugins,e);if(o!==null)return Yt(o,e,t,n,r,i);let s=Kt(e,t.printFunctionName,t.escapeRegex,t.escapeString);return s===null?qt(e,t,n,r,i,a):s}function Qt(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(Ej,t))throw Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw Error(`pretty-format: Options "min" and "indent" cannot be used together.`)}function $t(){return Tj.reduce((e,t)=>{let n=wj[t],r=n&&mA[n];if(r&&typeof r.close==`string`&&typeof r.open==`string`)e[t]=r;else throw Error(`pretty-format: Option "theme" has a key "${t}" whose value "${n}" is undefined in ansi-styles.`);return e},Object.create(null))}function en(){return Tj.reduce((e,t)=>(e[t]={close:``,open:``},e),Object.create(null))}function tn(e){return e?.printFunctionName??Ej.printFunctionName}function nn(e){return e?.escapeRegex??Ej.escapeRegex}function rn(e){return e?.escapeString??Ej.escapeString}function an(e){return{callToJSON:e?.callToJSON??Ej.callToJSON,colors:e?.highlight?$t():en(),compareKeys:typeof e?.compareKeys==`function`||e?.compareKeys===null?e.compareKeys:Ej.compareKeys,escapeRegex:nn(e),escapeString:rn(e),indent:e?.min?``:on(e?.indent??Ej.indent),maxDepth:e?.maxDepth??Ej.maxDepth,maxWidth:e?.maxWidth??Ej.maxWidth,min:e?.min??Ej.min,plugins:e?.plugins??Ej.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:tn(e),spacingInner:e?.min?` `:`
|
||
`,spacingOuter:e?.min?``:`
|
||
`}}function on(e){return Array.from({length:e+1}).join(` `)}function sn(e,t){if(t&&(Qt(t),t.plugins)){let n=Xt(t.plugins,e);if(n!==null)return Yt(n,e,an(t),``,0,[])}let n=Kt(e,tn(t),nn(t),rn(t));return n===null?qt(e,an(t),``,0,[]):n}function cn(e,t){let n=Oj[kj[t]]||Oj[t]||``;return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}function ln({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:r=!0,showProxy:i=!1,maxArrayLength:a=1/0,breakLength:o=1/0,seen:s=[],truncate:c=1/0,stylize:l=String}={},u){let d={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!i,maxArrayLength:Number(a),breakLength:Number(o),truncate:Number(c),seen:s,inspect:u,stylize:l};return d.colors&&(d.stylize=cn),d}function un(e){return e>=`\ud800`&&e<=`\udbff`}function dn(e,t,n=Aj){e=String(e);let r=n.length,i=e.length;if(r>t&&i>r)return n;if(i>t&&i>r){let i=t-r;return i>0&&un(e[i-1])&&--i,`${e.slice(0,i)}${n}`}return e}function fn(e,t,n,r=`, `){n||=t.inspect;let i=e.length;if(i===0)return``;let a=t.truncate,o=``,s=``,c=``;for(let l=0;l<i;l+=1){let i=l+1===e.length,u=l+2===e.length;c=`${Aj}(${e.length-l})`;let d=e[l];t.truncate=a-o.length-(i?0:r.length);let f=s||n(d,t)+(i?``:r),p=o.length+f.length,m=p+c.length;if(i&&p>a&&o.length+c.length<=a||!i&&!u&&m>a||(s=i?``:n(e[l+1],t)+(u?``:r),!i&&u&&m>a&&p+s.length>a))break;if(o+=f,!i&&!u&&p+s.length>=a){c=`${Aj}(${e.length-l-1})`;break}c=``}return`${o}${c}`}function pn(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,`\\'`).replace(/\\"/g,`"`).replace(/(^"|"$)/g,`'`)}function mn([e,t],n){return n.truncate-=2,typeof e==`string`?e=pn(e):typeof e!=`number`&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}function hn(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`[]`;t.truncate-=4;let r=fn(e,t);t.truncate-=r.length;let i=``;return n.length&&(i=fn(n.map(t=>[t,e[t]]),t,mn)),`[ ${r}${i?`, ${i}`:``} ]`}function gn(e,t){let n=jj(e);t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return`${n}[]`;let i=``;for(let n=0;n<e.length;n++){let r=`${t.stylize(dn(e[n],t.truncate),`number`)}${n===e.length-1?``:`, `}`;if(t.truncate-=r.length,e[n]!==e.length&&t.truncate<=3){i+=`${Aj}(${e.length-e[n]+1})`;break}i+=r}let a=``;return r.length&&(a=fn(r.map(t=>[t,e[t]]),t,mn)),`${n}[ ${i}${a?`, ${a}`:``} ]`}function _n(e,t){let n=e.toJSON();if(n===null)return`Invalid Date`;let r=n.split(`T`),i=r[0];return t.stylize(`${i}T${dn(r[1],t.truncate-i.length-1)}`,`date`)}function vn(e,t){let n=e[Symbol.toStringTag]||`Function`,r=e.name;return r?t.stylize(`[${n} ${dn(r,t.truncate-11)}]`,`special`):t.stylize(`[${n}]`,`special`)}function yn([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}function bn(e){let t=[];return e.forEach((e,n)=>{t.push([n,e])}),t}function xn(e,t){return e.size===0?`Map{}`:(t.truncate-=7,`Map{ ${fn(bn(e),t,yn)} }`)}function Sn(e,t){return Mj(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(dn(String(e),t.truncate),`number`)}function Cn(e,t){let n=dn(e.toString(),t.truncate-1);return n!==Aj&&(n+=`n`),t.stylize(n,`bigint`)}function wn(e,t){let n=e.toString().split(`/`)[2],r=t.truncate-(2+n.length),i=e.source;return t.stylize(`/${dn(i,r)}/${n}`,`regexp`)}function Tn(e){let t=[];return e.forEach(e=>{t.push(e)}),t}function En(e,t){return e.size===0?`Set{}`:(t.truncate-=7,`Set{ ${fn(Tn(e),t)} }`)}function Dn(e){return Pj[e]||`\\u${`0000${e.charCodeAt(0).toString(Fj)}`.slice(-Ij)}`}function On(e,t){return Nj.test(e)&&(e=e.replace(Nj,Dn)),t.stylize(`'${dn(e,t.truncate-2)}'`,`string`)}function kn(e){return`description`in Symbol.prototype?e.description?`Symbol(${e.description})`:`Symbol()`:e.toString()}function An(e,t){let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&r.length===0)return`{}`;if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return`[Circular]`;t.seen.push(e);let i=fn(n.map(t=>[t,e[t]]),t,mn),a=fn(r.map(t=>[t,e[t]]),t,mn);t.seen.pop();let o=``;return i&&a&&(o=`, `),`{ ${i}${o}${a} }`}function jn(e,t){let n=``;return zj&&zj in e&&(n=e[zj]),n||=e.constructor.name,(!n||n===`_class`)&&(n=`<Anonymous Class>`),t.truncate-=n.length,`${n}${An(e,t)}`}function Mn(e,t){return e.length===0?`Arguments[]`:(t.truncate-=13,`Arguments[ ${fn(e,t)} ]`)}function Nn(e,t){let n=Object.getOwnPropertyNames(e).filter(e=>Bj.indexOf(e)===-1),r=e.name;t.truncate-=r.length;let i=``;if(typeof e.message==`string`?i=dn(e.message,t.truncate):n.unshift(`message`),i=i?`: ${i}`:``,t.truncate-=i.length+5,t.seen=t.seen||[],t.seen.includes(e))return`[Circular]`;t.seen.push(e);let a=fn(n.map(t=>[t,e[t]]),t,mn);return`${r}${i}${a?` { ${a} }`:``}`}function Pn([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),`yellow`)}=${n.stylize(`"${t}"`,`string`)}`:`${n.stylize(String(e),`yellow`)}`}function Fn(e,t){return fn(e,t,In,`
|
||
`)}function In(e,t){switch(e.nodeType){case 1:return Ln(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function Ln(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),i=t.stylize(`<${r}`,`special`),a=t.stylize(`>`,`special`),o=t.stylize(`</${r}>`,`special`);t.truncate-=r.length*2+5;let s=``;n.length>0&&(s+=` `,s+=fn(n.map(t=>[t,e.getAttribute(t)]),t,Pn,` `)),t.truncate-=s.length;let c=t.truncate,l=Fn(e.children,t);return l&&l.length>c&&(l=`${Aj}(${e.children.length})`),`${i}${s}${a}${l}${o}`}function Rn(e,t={}){let n=ln(t,Rn),{customInspect:r}=n,i=e===null?`null`:typeof e;if(i===`object`&&(i=qj.call(e).slice(8,-1)),i in Gj)return Gj[i](e,n);if(r&&e){let t=Kj(e,n,i);if(t)return typeof t==`string`?t:Rn(t,n)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?An(e,n):e&&typeof HTMLElement==`function`&&e instanceof HTMLElement?Ln(e,n):`constructor`in e?e.constructor===Object?An(e,n):jn(e,n):e===Object(e)?An(e,n):n.stylize(String(e),i)}function zn(e,t=10,{maxLength:n,...r}={}){let i=n??1e4,a;try{a=sn(e,{maxDepth:t,escapeString:!1,plugins:eM,...r})}catch{a=sn(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:eM,...r})}return a.length>=i&&t>1?zn(e,Math.floor(Math.min(t,2**53-1)/2),{maxLength:n,...r}):a}function Bn(...e){if(typeof e[0]!=`string`){let t=[];for(let n=0;n<e.length;n++)t.push(Vn(e[n],{depth:0,colors:!1}));return t.join(` `)}let t=e.length,n=1,r=e[0],i=String(r).replace(tM,r=>{if(r===`%%`)return`%`;if(n>=t)return r;switch(r){case`%s`:{let t=e[n++];return typeof t==`bigint`?`${t.toString()}n`:typeof t==`number`&&t===0&&1/t<0?`-0`:typeof t==`object`&&t?typeof t.toString==`function`&&t.toString!==Object.prototype.toString?t.toString():Vn(t,{depth:0,colors:!1}):String(t)}case`%d`:{let t=e[n++];return typeof t==`bigint`?`${t.toString()}n`:Number(t).toString()}case`%i`:{let t=e[n++];return typeof t==`bigint`?`${t.toString()}n`:Number.parseInt(String(t)).toString()}case`%f`:return Number.parseFloat(String(e[n++])).toString();case`%o`:return Vn(e[n++],{showHidden:!0,showProxy:!0});case`%O`:return Vn(e[n++]);case`%c`:return n++,``;case`%j`:try{return JSON.stringify(e[n++])}catch(e){let t=e.message;if(t.includes(`circular structure`)||t.includes(`cyclic structures`)||t.includes(`cyclic object`))return`[Circular]`;throw e}default:return r}});for(let r=e[n];n<t;r=e[++n])typeof r!=`object`||!r?i+=` ${r}`:i+=` ${Vn(r)}`;return i}function Vn(e,t={}){return t.truncate===0&&(t.truncate=1/0),Rn(e,t)}function Hn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function Un(e,t,n){let r=typeof e;if(!n.includes(r))throw TypeError(`${t} value must be ${n.join(` or `)}, received "${r}"`)}function Wn(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Gn(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function Kn(e){return Object.prototype.toString.apply(e).slice(8,-1)}function qn(e,t){let n=typeof t==`function`?t:e=>t.add(e);Object.getOwnPropertyNames(e).forEach(n),Object.getOwnPropertySymbols(e).forEach(n)}function Jn(e){let t=new Set;return Gn(e)?[]:(qn(e,t),Array.from(t))}function Yn(e,t=nM){return Xn(e,new WeakMap,t)}function Xn(e,t,n=nM){let r,i;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(i=Array.from({length:r=e.length}),t.set(e,i);r--;)i[r]=Xn(e[r],t,n);return i}if(Object.prototype.toString.call(e)===`[object Object]`){i=Object.create(Object.getPrototypeOf(e)),t.set(e,i);let r=Jn(e);for(let a of r){let r=Object.getOwnPropertyDescriptor(e,a);if(!r)continue;let o=Xn(e[a],t,n);n.forceWritable?Object.defineProperty(i,a,{enumerable:r.enumerable,configurable:!0,writable:!0,value:o}):`get`in r?Object.defineProperty(i,a,{...r,get(){return o}}):Object.defineProperty(i,a,{...r,value:o})}return i}return e}function Zn(){}function Qn(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let n=0,r=Math.min(e.length,t.length),i=r,a=0;for(;n<i;)e.substring(a,i)===t.substring(a,i)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return i}function $n(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let n=0,r=Math.min(e.length,t.length),i=r,a=0;for(;n<i;)e.substring(e.length-i,e.length-a)===t.substring(t.length-i,t.length-a)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return i}function er(e,t){let n=e.length,r=t.length;if(n===0||r===0)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));let i=Math.min(n,r);if(e===t)return i;let a=0,o=1;for(;;){let n=e.substring(i-o),r=t.indexOf(n);if(r===-1)return a;o+=r,(r===0||e.substring(i-o)===t.substring(0,o))&&(a=o,o++)}}function tr(e){let t=!1,n=[],r=0,i=null,a=0,o=0,s=0,c=0,l=0;for(;a<e.length;)e[a][0]===aM?(n[r++]=a,o=c,s=l,c=0,l=0,i=e[a][1]):(e[a][0]===iM?c+=e[a][1].length:l+=e[a][1].length,i&&i.length<=Math.max(o,s)&&i.length<=Math.max(c,l)&&(e.splice(n[r-1],0,new oM(rM,i)),e[n[r-1]+1][0]=iM,r--,r--,a=r>0?n[r-1]:-1,o=0,s=0,c=0,l=0,i=null,t=!0)),a++;for(t&&rr(e),nr(e),a=1;a<e.length;){if(e[a-1][0]===rM&&e[a][0]===iM){let t=e[a-1][1],n=e[a][1],r=er(t,n),i=er(n,t);r>=i?(r>=t.length/2||r>=n.length/2)&&(e.splice(a,0,new oM(aM,n.substring(0,r))),e[a-1][1]=t.substring(0,t.length-r),e[a+1][1]=n.substring(r),a++):(i>=t.length/2||i>=n.length/2)&&(e.splice(a,0,new oM(aM,t.substring(0,i))),e[a-1][0]=iM,e[a-1][1]=n.substring(0,n.length-i),e[a+1][0]=rM,e[a+1][1]=t.substring(i),a++),a++}a++}}function nr(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===aM&&e[t+1][0]===aM){let n=e[t-1][1],r=e[t][1],i=e[t+1][1],a=$n(n,r);if(a){let e=r.substring(r.length-a);n=n.substring(0,n.length-a),r=e+r.substring(0,r.length-a),i=e+i}let o=n,s=r,c=i,l=ir(n,r)+ir(r,i);for(;r.charAt(0)===i.charAt(0);){n+=r.charAt(0),r=r.substring(1)+i.charAt(0),i=i.substring(1);let e=ir(n,r)+ir(r,i);e>=l&&(l=e,o=n,s=r,c=i)}e[t-1][1]!==o&&(o?e[t-1][1]=o:(e.splice(t-1,1),t--),e[t][1]=s,c?e[t+1][1]=c:(e.splice(t+1,1),t--))}t++}}function rr(e){e.push(new oM(aM,``));let t=0,n=0,r=0,i=``,a=``,o;for(;t<e.length;)switch(e[t][0]){case iM:r++,a+=e[t][1],t++;break;case rM:n++,i+=e[t][1],t++;break;case aM:n+r>1?(n!==0&&r!==0&&(o=Qn(a,i),o!==0&&(t-n-r>0&&e[t-n-r-1][0]===aM?e[t-n-r-1][1]+=a.substring(0,o):(e.splice(0,0,new oM(aM,a.substring(0,o))),t++),a=a.substring(o),i=i.substring(o)),o=$n(a,i),o!==0&&(e[t][1]=a.substring(a.length-o)+e[t][1],a=a.substring(0,a.length-o),i=i.substring(0,i.length-o))),t-=n+r,e.splice(t,n+r),i.length&&(e.splice(t,0,new oM(rM,i)),t++),a.length&&(e.splice(t,0,new oM(iM,a)),t++),t++):t!==0&&e[t-1][0]===aM?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,r=0,n=0,i=``,a=``;break}e[e.length-1][1]===``&&e.pop();let s=!1;for(t=1;t<e.length-1;)e[t-1][0]===aM&&e[t+1][0]===aM&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),s=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),s=!0)),t++;s&&rr(e)}function ir(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),i=n.match(sM),a=r.match(sM),o=i&&n.match(cM),s=a&&r.match(cM),c=o&&n.match(lM),l=s&&r.match(lM),u=c&&e.match(uM),d=l&&t.match(dM);return u||d?5:c||l?4:i&&!o&&s?3:o||s?2:i||a?1:0}function ar(){if(hM)return mM;hM=1,Object.defineProperty(mM,`__esModule`,{value:!0}),mM.default=d;let e=`diff-sequences`,t=(e,t,n,r,i)=>{let a=0;for(;e<t&&n<r&&i(e,n);)e+=1,n+=1,a+=1;return a},n=(e,t,n,r,i)=>{let a=0;for(;e<=t&&n<=r&&i(t,r);)--t,--r,a+=1;return a},r=(e,n,r,i,a,o,s)=>{let c=0,l=-e,u=o[c],d=u;o[c]+=t(u+1,n,i+u-l+1,r,a);let f=e<s?e:s;for(c+=1,l+=2;c<=f;c+=1,l+=2){if(c!==e&&d<o[c])u=o[c];else if(u=d+1,n<=u)return c-1;d=o[c],o[c]=u+t(u+1,n,i+u-l+1,r,a)}return s},i=(e,t,r,i,a,o,s)=>{let c=0,l=e,u=o[c],d=u;o[c]-=n(t,u-1,r,i+u-l-1,a);let f=e<s?e:s;for(c+=1,l-=2;c<=f;c+=1,l-=2){if(c!==e&&o[c]<d)u=o[c];else if(u=d-1,u<t)return c-1;d=o[c],o[c]=u-n(t,u-1,r,i+u-l-1,a)}return s},a=(e,r,i,a,o,s,c,l,u,d,f)=>{let p=a-r,m=i-r,h=o-a-m,g=-h-(e-1),_=-h+(e-1),v=0,y=e<l?e:l;for(let l=0,m=-e;l<=y;l+=1,m+=2){let y=l===0||l!==e&&v<c[l],b=y?c[l]:v,x=y?b:b+1,S=p+x-m,C=t(x+1,i,S+1,o,s),w=x+C;if(v=c[l],c[l]=w,g<=m&&m<=_){let t=(e-1-(m+h))/2;if(t<=d&&u[t]-1<=w){let t=p+b-(y?m+1:m-1),c=n(r,b,a,t,s),l=b-c,u=t-c,d=l+1,h=u+1;f.nChangePreceding=e-1,e-1===d+h-r-a?(f.aEndPreceding=r,f.bEndPreceding=a):(f.aEndPreceding=d,f.bEndPreceding=h),f.nCommonPreceding=c,c!==0&&(f.aCommonPreceding=d,f.bCommonPreceding=h),f.nCommonFollowing=C,C!==0&&(f.aCommonFollowing=x+1,f.bCommonFollowing=S+1);let g=w+1,_=S+C+1;return f.nChangeFollowing=e-1,e-1===i+o-g-_?(f.aStartFollowing=i,f.bStartFollowing=o):(f.aStartFollowing=g,f.bStartFollowing=_),!0}}}return!1},o=(e,r,i,a,o,s,c,l,u,d,f)=>{let p=o-i,m=i-r,h=o-a-m,g=h-e,_=h+e,v=0,y=e<d?e:d;for(let d=0,m=e;d<=y;d+=1,m-=2){let y=d===0||d!==e&&u[d]<v,b=y?u[d]:v,x=y?b:b-1,S=p+x-m,C=n(r,x-1,a,S-1,s),w=x-C;if(v=u[d],u[d]=w,g<=m&&m<=_){let n=(e+(m-h))/2;if(n<=l&&w-1<=c[n]){let n=S-C;if(f.nChangePreceding=e,e===w+n-r-a?(f.aEndPreceding=r,f.bEndPreceding=a):(f.aEndPreceding=w,f.bEndPreceding=n),f.nCommonPreceding=C,C!==0&&(f.aCommonPreceding=w,f.bCommonPreceding=n),f.nChangeFollowing=e-1,e===1)f.nCommonFollowing=0,f.aStartFollowing=i,f.bStartFollowing=o;else{let n=p+b-(y?m-1:m+1),r=t(b,i,n,o,s);f.nCommonFollowing=r,r!==0&&(f.aCommonFollowing=b,f.bCommonFollowing=n);let a=b+r,c=n+r;e-1===i+o-a-c?(f.aStartFollowing=i,f.bStartFollowing=o):(f.aStartFollowing=a,f.bStartFollowing=c)}return!0}}}return!1},s=(t,n,s,c,l,u,d,f,p)=>{let m=c-n,h=l-s,g=s-n,_=l-c,v=_-g,y=g,b=g;if(d[0]=n-1,f[0]=s,v%2==0){let e=(t||v)/2,a=(g+_)/2;for(let t=1;t<=a;t+=1)if(y=r(t,s,l,m,u,d,y),t<e)b=i(t,n,c,h,u,f,b);else if(o(t,n,s,c,l,u,d,y,f,b,p))return}else{let e=((t||v)+1)/2,o=(g+_+1)/2,x=1;for(y=r(x,s,l,m,u,d,y),x+=1;x<=o;x+=1)if(b=i(x-1,n,c,h,u,f,b),x<e)y=r(x,s,l,m,u,d,y);else if(a(x,n,s,c,l,u,d,y,f,b,p))return}throw Error(`${e}: no overlap aStart=${n} aEnd=${s} bStart=${c} bEnd=${l}`)},c=(e,t,n,r,i,a,o,l,u,d)=>{if(i-r<n-t){if(a=!a,a&&o.length===1){let{foundSubsequence:e,isCommon:t}=o[0];o[1]={foundSubsequence:(t,n,r)=>{e(t,r,n)},isCommon:(e,n)=>t(n,e)}}let e=t,s=n;t=r,n=i,r=e,i=s}let{foundSubsequence:f,isCommon:p}=o[a?1:0];s(e,t,n,r,i,p,l,u,d);let{nChangePreceding:m,aEndPreceding:h,bEndPreceding:g,nCommonPreceding:_,aCommonPreceding:v,bCommonPreceding:y,nCommonFollowing:b,aCommonFollowing:x,bCommonFollowing:S,nChangeFollowing:C,aStartFollowing:w,bStartFollowing:T}=d;t<h&&r<g&&c(m,t,h,r,g,a,o,l,u,d),_!==0&&f(_,v,y),b!==0&&f(b,x,S),w<n&&T<i&&c(C,w,n,T,i,a,o,l,u,d)},l=(t,n)=>{if(typeof n!=`number`)throw TypeError(`${e}: ${t} typeof ${typeof n} is not a number`);if(!Number.isSafeInteger(n))throw RangeError(`${e}: ${t} value ${n} is not a safe integer`);if(n<0)throw RangeError(`${e}: ${t} value ${n} is a negative integer`)},u=(t,n)=>{let r=typeof n;if(r!==`function`)throw TypeError(`${e}: ${t} typeof ${r} is not a function`)};function d(e,r,i,a){l(`aLength`,e),l(`bLength`,r),u(`isCommon`,i),u(`foundSubsequence`,a);let o=t(0,e,0,r,i);if(o!==0&&a(o,0,0),e!==o||r!==o){let t=o,s=o,l=n(t,e-1,s,r-1,i),u=e-l,d=r-l,f=o+l;e!==f&&r!==f&&c(0,t,u,s,d,!1,[{foundSubsequence:a,isCommon:i}],[0],[0],{aCommonFollowing:0,aCommonPreceding:0,aEndPreceding:0,aStartFollowing:0,bCommonFollowing:0,bCommonPreceding:0,bEndPreceding:0,bStartFollowing:0,nChangeFollowing:0,nChangePreceding:0,nCommonFollowing:0,nCommonPreceding:0}),l!==0&&a(l,u,d)}}return mM}function or(e,t){return e.replace(/\s+$/,e=>t(e))}function sr(e,t,n,r,i,a){return e.length===0?r===` `?t&&a.length!==0?n(`${r} ${a}`):``:n(r):n(`${r} ${or(e,i)}`)}function cr(e,t,{aColor:n,aIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return sr(e,t,n,r,i,a)}function lr(e,t,{bColor:n,bIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return sr(e,t,n,r,i,a)}function ur(e,t,{commonColor:n,commonIndicator:r,commonLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return sr(e,t,n,r,i,a)}function dr(e,t,n,r,{patchColor:i}){return i(`@@ -${e+1},${t-e} +${n+1},${r-n} @@`)}function fr(e,t){let n=e.length,r=t.contextLines,i=r+r,a=n,o=!1,s=0,c=0;for(;c!==n;){let t=c;for(;c!==n&&e[c][0]===aM;)c+=1;if(t!==c)if(t===0)c>r&&(a-=c-r,o=!0);else if(c===n){let e=c-t;e>r&&(a-=e-r,o=!0)}else{let e=c-t;e>i&&(a-=e-i,s+=1)}for(;c!==n&&e[c][0]!==aM;)c+=1}let l=s!==0||o;s===0?o&&(a+=1):a+=s+1;let u=a-1,d=[],f=0;l&&d.push(``);let p=0,m=0,h=0,g=0,_=e=>{let n=d.length;d.push(ur(e,n===0||n===u,t)),h+=1,g+=1},v=e=>{let n=d.length;d.push(cr(e,n===0||n===u,t)),h+=1},y=e=>{let n=d.length;d.push(lr(e,n===0||n===u,t)),g+=1};for(c=0;c!==n;){let a=c;for(;c!==n&&e[c][0]===aM;)c+=1;if(a!==c)if(a===0){c>r&&(a=c-r,p=a,m=a,h=p,g=m);for(let t=a;t!==c;t+=1)_(e[t][1])}else if(c===n){let t=c-a>r?a+r:c;for(let n=a;n!==t;n+=1)_(e[n][1])}else{let n=c-a;if(n>i){let o=a+r;for(let t=a;t!==o;t+=1)_(e[t][1]);d[f]=dr(p,h,m,g,t),f=d.length,d.push(``);let s=n-i;p=h+s,m=g+s,h=p,g=m;for(let t=c-r;t!==c;t+=1)_(e[t][1])}else for(let t=a;t!==c;t+=1)_(e[t][1])}for(;c!==n&&e[c][0]===rM;)v(e[c][1]),c+=1;for(;c!==n&&e[c][0]===iM;)y(e[c][1]),c+=1}return l&&(d[f]=dr(p,h,m,g,t)),d.join(`
|
||
`)}function pr(e,t){return e.map((e,n,r)=>{let i=e[1],a=n===0||n===r.length-1;switch(e[0]){case rM:return cr(i,a,t);case iM:return lr(i,a,t);default:return ur(i,a,t)}}).join(`
|
||
`)}function mr(){return{aAnnotation:`Expected`,aColor:mA.green,aIndicator:`-`,bAnnotation:`Received`,bColor:mA.red,bIndicator:`+`,changeColor:mA.inverse,changeLineTrailingSpaceColor:_M,commonColor:mA.dim,commonIndicator:` `,commonLineTrailingSpaceColor:_M,compareKeys:void 0,contextLines:vM,emptyFirstOrLastLinePlaceholder:``,expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:mA.yellow,printBasicPrototype:!1,truncateThreshold:yM,truncateAnnotation:`... Diff result is truncated`,truncateAnnotationColor:_M}}function hr(e){return e&&typeof e==`function`?e:void 0}function gr(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>=0?e:vM}function _r(e={}){return{...mr(),...e,compareKeys:hr(e.compareKeys),contextLines:gr(e.contextLines)}}function vr(e){return e.length===1&&e[0].length===0}function yr(e){let t=0,n=0;return e.forEach(e=>{switch(e[0]){case rM:t+=1;break;case iM:n+=1;break}}),{a:t,b:n}}function br({aAnnotation:e,aColor:t,aIndicator:n,bAnnotation:r,bColor:i,bIndicator:a,includeChangeCounts:o,omitAnnotationLines:s},c){if(s)return``;let l=``,u=``;if(o){let t=String(c.a),i=String(c.b),o=r.length-e.length,s=` `.repeat(Math.max(0,o)),d=` `.repeat(Math.max(0,-o)),f=i.length-t.length,p=` `.repeat(Math.max(0,f)),m=` `.repeat(Math.max(0,-f));l=`${s} ${n} ${p}${t}`,u=`${d} ${a} ${m}${i}`}let d=`${n} ${e}${l}`,f=`${a} ${r}${u}`;return`${t(d)}
|
||
${i(f)}
|
||
|
||
`}function xr(e,t,n){return br(n,yr(e))+(n.expand?pr(e,n):fr(e,n))+(t?n.truncateAnnotationColor(`
|
||
${n.truncateAnnotation}`):``)}function Sr(e,t,n){let r=_r(n),[i,a]=wr(vr(e)?[]:e,vr(t)?[]:t,r);return xr(i,a,r)}function Cr(e,t,n,r,i){if(vr(e)&&vr(n)&&(e=[],n=[]),vr(t)&&vr(r)&&(t=[],r=[]),e.length!==n.length||t.length!==r.length)return Sr(e,t,i);let[a,o]=wr(n,r,i),s=0,c=0;return a.forEach(n=>{switch(n[0]){case rM:n[1]=e[s],s+=1;break;case iM:n[1]=t[c],c+=1;break;default:n[1]=t[c],s+=1,c+=1}}),xr(a,o,_r(i))}function wr(e,t,n){let r=n?.truncateThreshold??!1,i=Math.max(Math.floor(n?.truncateThreshold??0),0),a=r?Math.min(e.length,i):e.length,o=r?Math.min(t.length,i):t.length,s=a!==e.length||o!==t.length,c=(n,r)=>e[n]===t[r],l=[],u=0,d=0;for(gM(a,o,c,(n,r,i)=>{for(;u!==r;u+=1)l.push(new oM(rM,e[u]));for(;d!==i;d+=1)l.push(new oM(iM,t[d]));for(;n!==0;--n,u+=1,d+=1)l.push(new oM(aM,t[d]))});u!==a;u+=1)l.push(new oM(rM,e[u]));for(;d!==o;d+=1)l.push(new oM(iM,t[d]));return[l,s]}function Tr(e){if(e===void 0)return`undefined`;if(e===null)return`null`;if(Array.isArray(e))return`array`;if(typeof e==`boolean`)return`boolean`;if(typeof e==`function`)return`function`;if(typeof e==`number`)return`number`;if(typeof e==`string`)return`string`;if(typeof e==`bigint`)return`bigint`;if(typeof e==`object`){if(e!=null){if(e.constructor===RegExp)return`regexp`;if(e.constructor===Map)return`map`;if(e.constructor===Set)return`set`;if(e.constructor===Date)return`date`}return`object`}else if(typeof e==`symbol`)return`symbol`;throw Error(`value of unknown type: ${e}`)}function Er(e){return e.includes(`\r
|
||
`)?`\r
|
||
`:`
|
||
`}function Dr(e,t,n){let r=n?.truncateThreshold??!1,i=Math.max(Math.floor(n?.truncateThreshold??0),0),a=e.length,o=t.length;if(r){let n=e.includes(`
|
||
`),r=t.includes(`
|
||
`),s=Er(e),c=Er(t),l=n?`${e.split(s,i).join(s)}
|
||
`:e,u=r?`${t.split(c,i).join(c)}
|
||
`:t;a=l.length,o=u.length}let s=a!==e.length||o!==t.length,c=(n,r)=>e[n]===t[r],l=0,u=0,d=[];return gM(a,o,c,(n,r,i)=>{l!==r&&d.push(new oM(rM,e.slice(l,r))),u!==i&&d.push(new oM(iM,t.slice(u,i))),l=r+n,u=i+n,d.push(new oM(aM,t.slice(i,u)))}),l!==a&&d.push(new oM(rM,e.slice(l))),u!==o&&d.push(new oM(iM,t.slice(u))),[d,s]}function Or(e,t,n){return t.reduce((t,r)=>t+(r[0]===aM?r[1]:r[0]===e&&r[1].length!==0?n(r[1]):``),``)}function kr(e,t){let n=new bM(rM,t),r=new bM(iM,t),i=new xM(n,r);return e.forEach(e=>{switch(e[0]){case rM:n.align(e);break;case iM:r.align(e);break;default:i.align(e)}}),i.getLines()}function Ar(e,t){if(t){let t=e.length-1;return e.some((e,n)=>e[0]===aM&&(n!==t||e[1]!==`
|
||
`))}return e.some(e=>e[0]===aM)}function jr(e,t,n){if(e!==t&&e.length!==0&&t.length!==0){let r=e.includes(`
|
||
`)||t.includes(`
|
||
`),[i,a]=Mr(r?`${e}
|
||
`:e,r?`${t}
|
||
`:t,!0,n);if(Ar(i,r)){let e=_r(n);return xr(kr(i,e.changeColor),a,e)}}return Sr(e.split(`
|
||
`),t.split(`
|
||
`),n)}function Mr(e,t,n,r){let[i,a]=Dr(e,t,r);return n&&tr(i),[i,a]}function Nr(e,t){let{commonColor:n}=_r(t);return n(e)}function Pr(e,t,n){if(Object.is(e,t))return``;let r=Tr(e),i=r,a=!1;if(r===`object`&&typeof e.asymmetricMatch==`function`){if(e.$$typeof!==Symbol.for(`jest.asymmetricMatcher`)||typeof e.getExpectedType!=`function`)return;i=e.getExpectedType(),a=i===`string`}if(i!==Tr(t)){let r=function(e){return e.length<=p?e:`${e.slice(0,p)}...`},{aAnnotation:i,aColor:a,aIndicator:o,bAnnotation:s,bColor:c,bIndicator:l}=_r(n),u=zr(AM,n),d=sn(e,u),f=sn(t,u),p=1e5;return d=r(d),f=r(f),`${`${a(`${o} ${i}:`)}
|
||
${d}`}
|
||
|
||
${`${c(`${l} ${s}:`)}
|
||
${f}`}`}if(!a)switch(r){case`string`:return Sr(e.split(`
|
||
`),t.split(`
|
||
`),n);case`boolean`:case`number`:return Fr(e,t,n);case`map`:return Rr(Ir(e),Ir(t),n);case`set`:return Rr(Lr(e),Lr(t),n);default:return Rr(e,t,n)}}function Fr(e,t,n){let r=sn(e,kM),i=sn(t,kM);return r===i?``:Sr(r.split(`
|
||
`),i.split(`
|
||
`),n)}function Ir(e){return new Map(Array.from(e.entries()).sort())}function Lr(e){return new Set(Array.from(e.values()).sort())}function Rr(e,t,n){let r,i=!1;try{r=Br(e,t,zr(kM,n),n)}catch{i=!0}let a=Nr(fM,n);return(r===void 0||r===a)&&(r=Br(e,t,zr(AM,n),n),r!==a&&!i&&(r=`${Nr(pM,n)}
|
||
|
||
${r}`)),r}function zr(e,t){let{compareKeys:n,printBasicPrototype:r,maxDepth:i}=_r(t);return{...e,compareKeys:n,printBasicPrototype:r,maxDepth:i??e.maxDepth}}function Br(e,t,n,r){let i={...n,indent:0},a=sn(e,i),o=sn(t,i);if(a===o)return Nr(fM,r);{let i=sn(e,n),s=sn(t,n);return Cr(i.split(`
|
||
`),s.split(`
|
||
`),a.split(`
|
||
`),o.split(`
|
||
`),r)}}function Vr(e){return Kn(e)===`Object`&&typeof e.asymmetricMatch==`function`}function Hr(e,t){let n=Kn(e);return n===Kn(t)&&(n===`Object`||n===`Array`)}function Ur(e,t,n){let{aAnnotation:r,bAnnotation:i}=_r(n);if(typeof t==`string`&&typeof e==`string`&&t.length>0&&e.length>0&&t.length<=jM&&e.length<=jM&&t!==e){if(t.includes(`
|
||
`)||e.includes(`
|
||
`))return jr(t,e,n);let[a]=Mr(t,e,!0),o=a.some(e=>e[0]===aM),s=Gr(r,i);return`${s(r)+Jr(Yr(a,rM,o))}
|
||
${s(i)+qr(Yr(a,iM,o))}`}let a=Yn(t,{forceWritable:!0}),{replacedExpected:o,replacedActual:s}=Wr(Yn(e,{forceWritable:!0}),a);return Pr(o,s,n)}function Wr(e,t,n=new WeakSet,r=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<`u`&&typeof t.cause>`u`?(delete e.cause,{replacedActual:e,replacedExpected:t}):Hr(e,t)?n.has(e)||r.has(t)?{replacedActual:e,replacedExpected:t}:(n.add(e),r.add(t),Jn(t).forEach(i=>{let a=t[i],o=e[i];if(Vr(a))a.asymmetricMatch(o)&&(e[i]=a);else if(Vr(o))o.asymmetricMatch(a)&&(t[i]=o);else if(Hr(o,a)){let s=Wr(o,a,n,r);e[i]=s.replacedActual,t[i]=s.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function Gr(...e){let t=e.reduce((e,t)=>t.length>e?t.length:e,0);return e=>`${e}: ${` `.repeat(t-e.length)}`}function Kr(e){return e.replace(/\s+$/gm,e=>MM.repeat(e.length))}function qr(e){return mA.red(Kr(zn(e)))}function Jr(e){return mA.green(Kr(zn(e)))}function Yr(e,t,n){return e.reduce((e,r)=>e+(r[0]===aM?r[1]:r[0]===t?n?mA.inverse(r[1]):r[1]:``),``)}function Xr(e){return e&&(e[PM]||e[NM])}function Zr(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e==`string`?`<unserializable>: ${e}`:`<unserializable>`}function Qr(e,t=new WeakMap){if(!e||typeof e==`string`)return e;if(e instanceof Error&&`toJSON`in e&&typeof e.toJSON==`function`){let n=e.toJSON();return n&&n!==e&&typeof n==`object`&&(typeof e.message==`string`&&$r(()=>n.message??=e.message),typeof e.stack==`string`&&$r(()=>n.stack??=e.stack),typeof e.name==`string`&&$r(()=>n.name??=e.name),e.cause!=null&&$r(()=>n.cause??=Qr(e.cause,t))),Qr(n,t)}if(typeof e==`function`)return`Function<${e.name||`anonymous`}>`;if(typeof e==`symbol`)return e.toString();if(typeof e!=`object`)return e;if(typeof Buffer<`u`&&e instanceof Buffer)return`<Buffer(${e.length}) ...>`;if(typeof Uint8Array<`u`&&e instanceof Uint8Array)return`<Uint8Array(${e.length}) ...>`;if(Xr(e))return Qr(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype===`AsyncFunction`)return`Promise`;if(typeof Element<`u`&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch==`function`)return`${e.toString()} ${Bn(e.sample)}`;if(typeof e.toJSON==`function`)return Qr(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let n=Array(e.length);return t.set(e,n),e.forEach((e,r)=>{try{n[r]=Qr(e,t)}catch(e){n[r]=Zr(e)}}),n}else{let n=Object.create(null);t.set(e,n);let r=e;for(;r&&r!==FM;)Object.getOwnPropertyNames(r).forEach(r=>{if(!(r in n))try{n[r]=Qr(e[r],t)}catch(e){delete n[r],n[r]=Zr(e)}}),r=Object.getPrototypeOf(r);return n}}function $r(e){try{return e()}catch{}}function ei(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,``)}function ti(e,t,n=new WeakSet){if(!e||typeof e!=`object`)return{message:String(e)};let r=e;(r.showDiff||r.showDiff===void 0&&r.expected!==void 0&&r.actual!==void 0)&&(r.diff=Ur(r.actual,r.expected,{...t,...r.diffOptions})),`expected`in r&&typeof r.expected!=`string`&&(r.expected=zn(r.expected,10)),`actual`in r&&typeof r.actual!=`string`&&(r.actual=zn(r.actual,10));try{typeof r.message==`string`&&(r.message=ei(r.message))}catch{}try{!n.has(r)&&typeof r.cause==`object`&&(n.add(r),r.cause=ti(r.cause,t,n))}catch{}try{return Qr(r)}catch(e){return Qr(Error(`Failed to fully serialize error: ${e?.message}
|
||
Inner error message: ${r?.message}`))}}function ni(e,t={}){try{let n=!1,r=!1;return q.window?.location?.search?.includes(`instrument=true`)?n=!0:q.window?.location?.search?.includes(`instrument=false`)&&(r=!0),q.window?.parent===q.window&&!n||r?e:(q.window&&!q.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(q.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new GM),(q.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(t){return QT.warn(t),e}}function ri(e,t){let n=e;for(;n!=null;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Object.getPrototypeOf(n)}}function ii(e){if(typeof e!=`function`)return!1;let t=Object.getOwnPropertyDescriptor(e,`prototype`);return t?!t.writable:!1}function ai(e){return e instanceof Error||Object.prototype.toString.call(e)===`[object Error]`}function oi(e){return Object.prototype.toString.call(e)===`[object RegExp]`}function si(e,t){return ai(t)&&e===t}function ci(e,t){return ai(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t==`object`||typeof t==`function`)&&t.prototype?e.constructor===t||e instanceof t:!1}function li(e,t){let n=typeof e==`string`?e:e.message;return oi(t)?t.test(n):typeof t==`string`?n.indexOf(t)!==-1:!1}function ui(e){let t=e;return ai(e)?t=e.constructor.name:typeof e==`function`&&(t=e.name,t===``&&(t=new e().name||t)),t}function di(e){let t=``;return e&&e.message?t=e.message:typeof e==`string`&&(t=e),t}function U(e,t,n){let r=e.__flags||=Object.create(null);if(arguments.length===3)r[t]=n;else return r[t]}function fi(e,t){let n=U(e,`negate`),r=t[0];return n?!r:r}function pi(e){if(typeof e>`u`)return`undefined`;if(e===null)return`null`;let t=e[Symbol.toStringTag];return typeof t==`string`?t:Object.prototype.toString.call(e).slice(8,-1)}function mi(e,t){let n=U(e,`message`),r=U(e,`ssfi`);n=n?n+`: `:``,e=U(e,`object`),t=t.map(function(e){return e.toLowerCase()}),t.sort();let i=t.map(function(e,n){let r=~[`a`,`e`,`i`,`o`,`u`].indexOf(e.charAt(0))?`an`:`a`;return(t.length>1&&n===t.length-1?`or `:``)+r+` `+e}).join(`, `),a=pi(e).toLowerCase();if(!t.some(function(e){return a===e}))throw new QM(n+`object tested must be `+i+`, but `+a+` given`,void 0,r)}function hi(e,t){return t.length>4?t[4]:e._obj}function gi(e,t){let n=$M[eN[t]]||$M[t]||``;return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}function _i({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:r=!0,showProxy:i=!1,maxArrayLength:a=1/0,breakLength:o=1/0,seen:s=[],truncate:c=1/0,stylize:l=String}={},u){let d={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!i,maxArrayLength:Number(a),breakLength:Number(o),truncate:Number(c),seen:s,inspect:u,stylize:l};return d.colors&&(d.stylize=gi),d}function vi(e){return e>=`\ud800`&&e<=`\udbff`}function yi(e,t,n=tN){e=String(e);let r=n.length,i=e.length;if(r>t&&i>r)return n;if(i>t&&i>r){let i=t-r;return i>0&&vi(e[i-1])&&--i,`${e.slice(0,i)}${n}`}return e}function bi(e,t,n,r=`, `){n||=t.inspect;let i=e.length;if(i===0)return``;let a=t.truncate,o=``,s=``,c=``;for(let l=0;l<i;l+=1){let i=l+1===e.length,u=l+2===e.length;c=`${tN}(${e.length-l})`;let d=e[l];t.truncate=a-o.length-(i?0:r.length);let f=s||n(d,t)+(i?``:r),p=o.length+f.length,m=p+c.length;if(i&&p>a&&o.length+c.length<=a||!i&&!u&&m>a||(s=i?``:n(e[l+1],t)+(u?``:r),!i&&u&&m>a&&p+s.length>a))break;if(o+=f,!i&&!u&&p+s.length>=a){c=`${tN}(${e.length-l-1})`;break}c=``}return`${o}${c}`}function xi(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,`\\'`).replace(/\\"/g,`"`).replace(/(^"|"$)/g,`'`)}function Si([e,t],n){return n.truncate-=2,typeof e==`string`?e=xi(e):typeof e!=`number`&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}function Ci(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`[]`;t.truncate-=4;let r=bi(e,t);t.truncate-=r.length;let i=``;return n.length&&(i=bi(n.map(t=>[t,e[t]]),t,Si)),`[ ${r}${i?`, ${i}`:``} ]`}function wi(e,t){let n=nN(e);t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return`${n}[]`;let i=``;for(let n=0;n<e.length;n++){let r=`${t.stylize(yi(e[n],t.truncate),`number`)}${n===e.length-1?``:`, `}`;if(t.truncate-=r.length,e[n]!==e.length&&t.truncate<=3){i+=`${tN}(${e.length-e[n]+1})`;break}i+=r}let a=``;return r.length&&(a=bi(r.map(t=>[t,e[t]]),t,Si)),`${n}[ ${i}${a?`, ${a}`:``} ]`}function Ti(e,t){let n=e.toJSON();if(n===null)return`Invalid Date`;let r=n.split(`T`),i=r[0];return t.stylize(`${i}T${yi(r[1],t.truncate-i.length-1)}`,`date`)}function Ei(e,t){let n=e[Symbol.toStringTag]||`Function`,r=e.name;return r?t.stylize(`[${n} ${yi(r,t.truncate-11)}]`,`special`):t.stylize(`[${n}]`,`special`)}function Di([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}function Oi(e){let t=[];return e.forEach((e,n)=>{t.push([n,e])}),t}function ki(e,t){return e.size===0?`Map{}`:(t.truncate-=7,`Map{ ${bi(Oi(e),t,Di)} }`)}function Ai(e,t){return rN(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(yi(String(e),t.truncate),`number`)}function ji(e,t){let n=yi(e.toString(),t.truncate-1);return n!==tN&&(n+=`n`),t.stylize(n,`bigint`)}function Mi(e,t){let n=e.toString().split(`/`)[2],r=t.truncate-(2+n.length),i=e.source;return t.stylize(`/${yi(i,r)}/${n}`,`regexp`)}function Ni(e){let t=[];return e.forEach(e=>{t.push(e)}),t}function Pi(e,t){return e.size===0?`Set{}`:(t.truncate-=7,`Set{ ${bi(Ni(e),t)} }`)}function Fi(e){return aN[e]||`\\u${`0000${e.charCodeAt(0).toString(oN)}`.slice(-sN)}`}function Ii(e,t){return iN.test(e)&&(e=e.replace(iN,Fi)),t.stylize(`'${yi(e,t.truncate-2)}'`,`string`)}function Li(e){return`description`in Symbol.prototype?e.description?`Symbol(${e.description})`:`Symbol()`:e.toString()}function Ri(e,t){let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&r.length===0)return`{}`;if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return`[Circular]`;t.seen.push(e);let i=bi(n.map(t=>[t,e[t]]),t,Si),a=bi(r.map(t=>[t,e[t]]),t,Si);t.seen.pop();let o=``;return i&&a&&(o=`, `),`{ ${i}${o}${a} }`}function zi(e,t){let n=``;return lN&&lN in e&&(n=e[lN]),n||=e.constructor.name,(!n||n===`_class`)&&(n=`<Anonymous Class>`),t.truncate-=n.length,`${n}${Ri(e,t)}`}function Bi(e,t){return e.length===0?`Arguments[]`:(t.truncate-=13,`Arguments[ ${bi(e,t)} ]`)}function Vi(e,t){let n=Object.getOwnPropertyNames(e).filter(e=>uN.indexOf(e)===-1),r=e.name;t.truncate-=r.length;let i=``;if(typeof e.message==`string`?i=yi(e.message,t.truncate):n.unshift(`message`),i=i?`: ${i}`:``,t.truncate-=i.length+5,t.seen=t.seen||[],t.seen.includes(e))return`[Circular]`;t.seen.push(e);let a=bi(n.map(t=>[t,e[t]]),t,Si);return`${r}${i}${a?` { ${a} }`:``}`}function Hi([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),`yellow`)}=${n.stylize(`"${t}"`,`string`)}`:`${n.stylize(String(e),`yellow`)}`}function Ui(e,t){return bi(e,t,Wi,`
|
||
`)}function Wi(e,t){switch(e.nodeType){case 1:return Gi(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function Gi(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),i=t.stylize(`<${r}`,`special`),a=t.stylize(`>`,`special`),o=t.stylize(`</${r}>`,`special`);t.truncate-=r.length*2+5;let s=``;n.length>0&&(s+=` `,s+=bi(n.map(t=>[t,e.getAttribute(t)]),t,Hi,` `)),t.truncate-=s.length;let c=t.truncate,l=Ui(e.children,t);return l&&l.length>c&&(l=`${tN}(${e.children.length})`),`${i}${s}${a}${l}${o}`}function Ki(e,t={}){let n=_i(t,Ki),{customInspect:r}=n,i=e===null?`null`:typeof e;if(i===`object`&&(i=_N.call(e).slice(8,-1)),i in hN)return hN[i](e,n);if(r&&e){let t=gN(e,n,i);if(t)return typeof t==`string`?t:Ki(t,n)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?Ri(e,n):e&&typeof HTMLElement==`function`&&e instanceof HTMLElement?Gi(e,n):`constructor`in e?e.constructor===Object?Ri(e,n):zi(e,n):e===Object(e)?Ri(e,n):n.stylize(String(e),i)}function qi(e,t,n,r){return Ki(e,{colors:r,depth:typeof n>`u`?2:n,showHidden:t,truncate:vN.truncateThreshold?vN.truncateThreshold:1/0})}function Ji(e){let t=qi(e),n=Object.prototype.toString.call(e);if(vN.truncateThreshold&&t.length>=vN.truncateThreshold){if(n===`[object Function]`)return!e.name||e.name===``?`[Function]`:`[Function: `+e.name+`]`;if(n===`[object Array]`)return`[ Array(`+e.length+`) ]`;if(n===`[object Object]`){let t=Object.keys(e);return`{ Object (`+(t.length>2?t.splice(0,2).join(`, `)+`, ...`:t.join(`, `))+`) }`}else return t}else return t}function Yi(e,t){let n=U(e,`negate`),r=U(e,`object`),i=t[3],a=hi(e,t),o=n?t[2]:t[1],s=U(e,`message`);return typeof o==`function`&&(o=o()),o||=``,o=o.replace(/#\{this\}/g,function(){return Ji(r)}).replace(/#\{act\}/g,function(){return Ji(a)}).replace(/#\{exp\}/g,function(){return Ji(i)}),s?s+`: `+o:o}function Xi(e,t,n){let r=e.__flags||=Object.create(null);t.__flags||=Object.create(null),n=arguments.length===3?n:!0;for(let e in r)(n||e!==`object`&&e!==`ssfi`&&e!==`lockSsfi`&&e!=`message`)&&(t.__flags[e]=r[e])}function Zi(e){if(typeof e>`u`)return`undefined`;if(e===null)return`null`;let t=e[Symbol.toStringTag];return typeof t==`string`?t:Object.prototype.toString.call(e).slice(8,-1)}function Qi(){this._key=`chai/deep-eql__`+Math.random()+Date.now()}function $i(e,t,n){if(!n||ga(e)||ga(t))return null;var r=n.get(e);if(r){var i=r.get(t);if(typeof i==`boolean`)return i}return null}function ea(e,t,n,r){if(!(!n||ga(e)||ga(t))){var i=n.get(e);i?i.set(t,r):(i=new yN,i.set(t,r),n.set(e,i))}}function ta(e,t,n){if(n&&n.comparator)return ra(e,t,n);var r=na(e,t);return r===null?ra(e,t,n):r}function na(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t?!0:ga(e)||ga(t)?!1:null}function ra(e,t,n){n||={},n.memoize=n.memoize===!1?!1:n.memoize||new yN;var r=n&&n.comparator,i=$i(e,t,n.memoize);if(i!==null)return i;var a=$i(t,e,n.memoize);if(a!==null)return a;if(r){var o=r(e,t);if(o===!1||o===!0)return ea(e,t,n.memoize,o),o;var s=na(e,t);if(s!==null)return s}var c=Zi(e);if(c!==Zi(t))return ea(e,t,n.memoize,!1),!1;ea(e,t,n.memoize,!0);var l=ia(e,t,c,n);return ea(e,t,n.memoize,l),l}function ia(e,t,n,r){switch(n){case`String`:case`Number`:case`Boolean`:case`Date`:return ta(e.valueOf(),t.valueOf());case`Promise`:case`Symbol`:case`function`:case`WeakMap`:case`WeakSet`:return e===t;case`Error`:return ma(e,t,[`name`,`message`,`code`],r);case`Arguments`:case`Int8Array`:case`Uint8Array`:case`Uint8ClampedArray`:case`Int16Array`:case`Uint16Array`:case`Int32Array`:case`Uint32Array`:case`Float32Array`:case`Float64Array`:case`Array`:return sa(e,t,r);case`RegExp`:return aa(e,t);case`Generator`:return ca(e,t,r);case`DataView`:return sa(new Uint8Array(e.buffer),new Uint8Array(t.buffer),r);case`ArrayBuffer`:return sa(new Uint8Array(e),new Uint8Array(t),r);case`Set`:return oa(e,t,r);case`Map`:return oa(e,t,r);case`Temporal.PlainDate`:case`Temporal.PlainTime`:case`Temporal.PlainDateTime`:case`Temporal.Instant`:case`Temporal.ZonedDateTime`:case`Temporal.PlainYearMonth`:case`Temporal.PlainMonthDay`:return e.equals(t);case`Temporal.Duration`:return e.total(`nanoseconds`)===t.total(`nanoseconds`);case`Temporal.TimeZone`:case`Temporal.Calendar`:return e.toString()===t.toString();default:return ha(e,t,r)}}function aa(e,t){return e.toString()===t.toString()}function oa(e,t,n){try{if(e.size!==t.size)return!1;if(e.size===0)return!0}catch{return!1}var r=[],i=[];return e.forEach(Y(function(e,t){r.push([e,t])},`gatherEntries`)),t.forEach(Y(function(e,t){i.push([e,t])},`gatherEntries`)),sa(r.sort(),i.sort(),n)}function sa(e,t,n){var r=e.length;if(r!==t.length)return!1;if(r===0)return!0;for(var i=-1;++i<r;)if(ta(e[i],t[i],n)===!1)return!1;return!0}function ca(e,t,n){return sa(da(e),da(t),n)}function la(e){return typeof Symbol<`u`&&typeof e==`object`&&typeof Symbol.iterator<`u`&&typeof e[Symbol.iterator]==`function`}function ua(e){if(la(e))try{return da(e[Symbol.iterator]())}catch{return[]}return[]}function da(e){for(var t=e.next(),n=[t.value];t.done===!1;)t=e.next(),n.push(t.value);return n}function fa(e){var t=[];for(var n in e)t.push(n);return t}function pa(e){for(var t=[],n=Object.getOwnPropertySymbols(e),r=0;r<n.length;r+=1){var i=n[r];Object.getOwnPropertyDescriptor(e,i).enumerable&&t.push(i)}return t}function ma(e,t,n,r){var i=n.length;if(i===0)return!0;for(var a=0;a<i;a+=1)if(ta(e[n[a]],t[n[a]],r)===!1)return!1;return!0}function ha(e,t,n){var r=fa(e),i=fa(t),a=pa(e),o=pa(t);if(r=r.concat(a),i=i.concat(o),r.length&&r.length===i.length)return sa(_a(r).sort(),_a(i).sort())===!1?!1:ma(e,t,r,n);var s=ua(e),c=ua(t);return s.length&&s.length===c.length?(s.sort(),c.sort(),sa(s,c,n)):r.length===0&&s.length===0&&i.length===0&&c.length===0}function ga(e){return typeof e!=`object`||!e}function _a(e){return e.map(Y(function(e){return typeof e==`symbol`?e.toString():e},`mapSymbol`))}function va(e,t){return typeof e>`u`||e===null?!1:t in Object(e)}function ya(e){return e.replace(/([^\\])\[/g,`$1.[`).match(/(\\\.|[^.]+?)+/g).map(e=>{if(e===`constructor`||e===`__proto__`||e===`prototype`)return{};let t=/^\[(\d+)\]$/.exec(e),n=null;return n=t?{i:parseFloat(t[1])}:{p:e.replace(/\\([.[\]])/g,`$1`)},n})}function ba(e,t,n){let r=e,i=null;n=typeof n>`u`?t.length:n;for(let e=0;e<n;e++){let a=t[e];r&&(r=typeof a.p>`u`?r[a.i]:r[a.p],e===n-1&&(i=r))}return i}function xa(e,t){let n=ya(t),r=n[n.length-1],i={parent:n.length>1?ba(e,n,n.length-1):e,name:r.p||r.i,value:ba(e,n)};return i.exists=va(i.parent,i.name),i}function Sa(){return vN.useProxy&&typeof Proxy<`u`&&typeof Reflect<`u`}function Ca(e,t,n){n=n===void 0?function(){}:n,Object.defineProperty(e,t,{get:Y(function e(){!Sa()&&!U(this,`lockSsfi`)&&U(this,`ssfi`,e);let t=n.call(this);if(t!==void 0)return t;let r=new X;return Xi(this,r),r},`propertyGetter`),configurable:!0})}function wa(e,t,n){return SN.configurable&&Object.defineProperty(e,`length`,{get:Y(function(){throw Error(n?`Invalid Chai property: `+t+`.length. Due to a compatibility issue, "length" cannot directly follow "`+t+`". Use "`+t+`.lengthOf" instead.`:`Invalid Chai property: `+t+`.length. See docs for proper usage of "`+t+`".`)},`get`)}),e}function Ta(e){let t=Object.getOwnPropertyNames(e);function n(e){t.indexOf(e)===-1&&t.push(e)}Y(n,`addProperty`);let r=Object.getPrototypeOf(e);for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n),r=Object.getPrototypeOf(r);return t}function Ea(e,t){return Sa()?new Proxy(e,{get:Y(function e(n,r){if(typeof r==`string`&&vN.proxyExcludedKeys.indexOf(r)===-1&&!Reflect.has(n,r)){if(t)throw Error(`Invalid Chai property: `+t+`.`+r+`. See docs for proper usage of "`+t+`".`);let e=null,i=4;throw Ta(n).forEach(function(t){if(!Object.prototype.hasOwnProperty(t)&&CN.indexOf(t)===-1){let n=Da(r,t,i);n<i&&(e=t,i=n)}}),Error(e===null?`Invalid Chai property: `+r:`Invalid Chai property: `+r+`. Did you mean "`+e+`"?`)}return CN.indexOf(r)===-1&&!U(n,`lockSsfi`)&&U(n,`ssfi`,e),Reflect.get(n,r)},`proxyGetter`)}):e}function Da(e,t,n){if(Math.abs(e.length-t.length)>=n)return n;let r=[];for(let n=0;n<=e.length;n++)r[n]=Array(t.length+1).fill(0),r[n][0]=n;for(let e=0;e<t.length;e++)r[0][e]=e;for(let i=1;i<=e.length;i++){let a=e.charCodeAt(i-1);for(let e=1;e<=t.length;e++){if(Math.abs(i-e)>=n){r[i][e]=n;continue}r[i][e]=Math.min(r[i-1][e]+1,r[i][e-1]+1,r[i-1][e-1]+(a===t.charCodeAt(e-1)?0:1))}}return r[e.length][t.length]}function Oa(e,t,n){let r=Y(function(){U(this,`lockSsfi`)||U(this,`ssfi`,r);let e=n.apply(this,arguments);if(e!==void 0)return e;let t=new X;return Xi(this,t),t},`methodWrapper`);wa(r,t,!1),e[t]=Ea(r,t)}function ka(e,t,n){let r=Object.getOwnPropertyDescriptor(e,t),i=Y(function(){},`_super`);r&&typeof r.get==`function`&&(i=r.get),Object.defineProperty(e,t,{get:Y(function e(){!Sa()&&!U(this,`lockSsfi`)&&U(this,`ssfi`,e);let t=U(this,`lockSsfi`);U(this,`lockSsfi`,!0);let r=n(i).call(this);if(U(this,`lockSsfi`,t),r!==void 0)return r;let a=new X;return Xi(this,a),a},`overwritingPropertyGetter`),configurable:!0})}function Aa(e,t,n){let r=e[t],i=Y(function(){throw Error(t+` is not a function`)},`_super`);r&&typeof r==`function`&&(i=r);let a=Y(function(){U(this,`lockSsfi`)||U(this,`ssfi`,a);let e=U(this,`lockSsfi`);U(this,`lockSsfi`,!0);let t=n(i).apply(this,arguments);if(U(this,`lockSsfi`,e),t!==void 0)return t;let r=new X;return Xi(this,r),r},`overwritingMethodWrapper`);wa(a,t,!1),e[t]=Ea(a,t)}function ja(e,t,n,r){typeof r!=`function`&&(r=Y(function(){},`chainingBehavior`));let i={method:n,chainingBehavior:r};e.__methods||={},e.__methods[t]=i,Object.defineProperty(e,t,{get:Y(function(){i.chainingBehavior.call(this);let n=Y(function(){U(this,`lockSsfi`)||U(this,`ssfi`,n);let e=i.method.apply(this,arguments);if(e!==void 0)return e;let t=new X;return Xi(this,t),t},`chainableMethodWrapper`);if(wa(n,t,!0),wN){let e=Object.create(this);e.call=DN,e.apply=ON,Object.setPrototypeOf(n,e)}else Object.getOwnPropertyNames(e).forEach(function(t){if(EN.indexOf(t)!==-1)return;let r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r)});return Xi(this,n),Ea(n)},`chainableMethodGetter`),configurable:!0})}function Ma(e,t,n,r){let i=e.__methods[t],a=i.chainingBehavior;i.chainingBehavior=Y(function(){let e=r(a).call(this);if(e!==void 0)return e;let t=new X;return Xi(this,t),t},`overwritingChainableMethodGetter`);let o=i.method;i.method=Y(function(){let e=n(o).apply(this,arguments);if(e!==void 0)return e;let t=new X;return Xi(this,t),t},`overwritingChainableMethodWrapper`)}function Na(e,t){return qi(e)<qi(t)?-1:1}function Pa(e){return typeof Object.getOwnPropertySymbols==`function`?Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}):[]}function Fa(e){return Object.keys(e).concat(Pa(e))}function Ia(e){let t=pi(e);return[`Array`,`Object`,`Function`].indexOf(t)!==-1}function La(e,t){let n=U(e,`operator`),r=U(e,`negate`),i=t[3],a=r?t[2]:t[1];if(n)return n;if(typeof a==`function`&&(a=a()),a||=``,!a||/\shave\s/.test(a))return;let o=Ia(i);return/\snot\s/.test(a)?o?`notDeepStrictEqual`:`notStrictEqual`:o?`deepStrictEqual`:`strictEqual`}function Ra(e){return e.name}function za(e){return Object.prototype.toString.call(e)===`[object RegExp]`}function Ba(e){return[`Number`,`BigInt`].includes(pi(e))}function Va(e,t){t&&Z(this,`message`,t),e=e.toLowerCase();let n=Z(this,`object`),r=~[`a`,`e`,`i`,`o`,`u`].indexOf(e.charAt(0))?`an `:`a `,i=pi(n).toLowerCase();AN.function.includes(e)?this.assert(AN[e].includes(i),`expected #{this} to be `+r+e,`expected #{this} not to be `+r+e):this.assert(e===i,`expected #{this} to be `+r+e,`expected #{this} not to be `+r+e)}function Ha(e,t){return kN(e)&&kN(t)||e===t}function Ua(){Z(this,`contains`,!0)}function Wa(e,t){t&&Z(this,`message`,t);let n=Z(this,`object`),r=pi(n).toLowerCase(),i=Z(this,`message`),a=Z(this,`negate`),o=Z(this,`ssfi`),s=Z(this,`deep`),c=s?`deep `:``,l=s?Z(this,`eql`):Ha;i=i?i+`: `:``;let u=!1;switch(r){case`string`:u=n.indexOf(e)!==-1;break;case`weakset`:if(s)throw new QM(i+`unable to use .deep.include with WeakSet`,void 0,o);u=n.has(e);break;case`map`:n.forEach(function(t){u||=l(t,e)});break;case`set`:s?n.forEach(function(t){u||=l(t,e)}):u=n.has(e);break;case`array`:u=s?n.some(function(t){return l(t,e)}):n.indexOf(e)!==-1;break;default:{if(e!==Object(e))throw new QM(i+`the given combination of arguments (`+r+` and `+pi(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 `+pi(e).toLowerCase(),void 0,o);let t=Object.keys(e),s=null,c=0;if(t.forEach(function(r){let i=new X(n);if(Xi(this,i,!0),Z(i,`lockSsfi`,!0),!a||t.length===1){i.property(r,e[r]);return}try{i.property(r,e[r])}catch(e){if(!YM.compatibleConstructor(e,QM))throw e;s===null&&(s=e),c++}},this),a&&t.length>1&&c===t.length)throw s;return}}this.assert(u,`expected #{this} to `+c+`include `+qi(e),`expected #{this} to not `+c+`include `+qi(e))}function Ga(){let e=Z(this,`object`);this.assert(e!=null,`expected #{this} to exist`,`expected #{this} to not exist`)}function Ka(){let e=pi(Z(this,`object`));this.assert(e===`Arguments`,`expected #{this} to be arguments but got `+e,`expected #{this} to not be arguments`)}function qa(e,t){t&&Z(this,`message`,t);let n=Z(this,`object`);if(Z(this,`deep`)){let t=Z(this,`lockSsfi`);Z(this,`lockSsfi`,!0),this.eql(e),Z(this,`lockSsfi`,t)}else this.assert(e===n,`expected #{this} to equal #{exp}`,`expected #{this} to not equal #{exp}`,e,this._obj,!0)}function Ja(e,t){t&&Z(this,`message`,t);let n=Z(this,`eql`);this.assert(n(e,Z(this,`object`)),`expected #{this} to deeply equal #{exp}`,`expected #{this} to not deeply equal #{exp}`,e,this._obj,!0)}function Ya(e,t){t&&Z(this,`message`,t);let n=Z(this,`object`),r=Z(this,`doLength`),i=Z(this,`message`),a=i?i+`: `:``,o=Z(this,`ssfi`),s=pi(n).toLowerCase(),c=pi(e).toLowerCase();if(r&&s!==`map`&&s!==`set`&&new X(n,i,o,!0).to.have.property(`length`),!r&&s===`date`&&c!==`date`)throw new QM(a+`the argument to above must be a date`,void 0,o);if(!Ba(e)&&(r||Ba(n)))throw new QM(a+`the argument to above must be a number`,void 0,o);if(!r&&s!==`date`&&!Ba(n)){let e=s===`string`?`'`+n+`'`:n;throw new QM(a+`expected `+e+` to be a number or a date`,void 0,o)}if(r){let t=`length`,r;s===`map`||s===`set`?(t=`size`,r=n.size):r=n.length,this.assert(r>e,`expected #{this} to have a `+t+` above #{exp} but got #{act}`,`expected #{this} to not have a `+t+` above #{exp}`,e,r)}else this.assert(n>e,`expected #{this} to be above #{exp}`,`expected #{this} to be at most #{exp}`,e)}function Xa(e,t){t&&Z(this,`message`,t);let n=Z(this,`object`),r=Z(this,`doLength`),i=Z(this,`message`),a=i?i+`: `:``,o=Z(this,`ssfi`),s=pi(n).toLowerCase(),c=pi(e).toLowerCase(),l,u=!0;if(r&&s!==`map`&&s!==`set`&&new X(n,i,o,!0).to.have.property(`length`),!r&&s===`date`&&c!==`date`)l=a+`the argument to least must be a date`;else if(!Ba(e)&&(r||Ba(n)))l=a+`the argument to least must be a number`;else if(!r&&s!==`date`&&!Ba(n)){let e=s===`string`?`'`+n+`'`:n;l=a+`expected `+e+` to be a number or a date`}else u=!1;if(u)throw new QM(l,void 0,o);if(r){let t=`length`,r;s===`map`||s===`set`?(t=`size`,r=n.size):r=n.length,this.assert(r>=e,`expected #{this} to have a `+t+` at least #{exp} but got #{act}`,`expected #{this} to have a `+t+` below #{exp}`,e,r)}else this.assert(n>=e,`expected #{this} to be at least #{exp}`,`expected #{this} to be below #{exp}`,e)}function Za(e,t){t&&Z(this,`message`,t);let n=Z(this,`object`),r=Z(this,`doLength`),i=Z(this,`message`),a=i?i+`: `:``,o=Z(this,`ssfi`),s=pi(n).toLowerCase(),c=pi(e).toLowerCase(),l,u=!0;if(r&&s!==`map`&&s!==`set`&&new X(n,i,o,!0).to.have.property(`length`),!r&&s===`date`&&c!==`date`)l=a+`the argument to below must be a date`;else if(!Ba(e)&&(r||Ba(n)))l=a+`the argument to below must be a number`;else if(!r&&s!==`date`&&!Ba(n)){let e=s===`string`?`'`+n+`'`:n;l=a+`expected `+e+` to be a number or a date`}else u=!1;if(u)throw new QM(l,void 0,o);if(r){let t=`length`,r;s===`map`||s===`set`?(t=`size`,r=n.size):r=n.length,this.assert(r<e,`expected #{this} to have a `+t+` below #{exp} but got #{act}`,`expected #{this} to not have a `+t+` below #{exp}`,e,r)}else this.assert(n<e,`expected #{this} to be below #{exp}`,`expected #{this} to be at least #{exp}`,e)}function Qa(e,t){t&&Z(this,`message`,t);let n=Z(this,`object`),r=Z(this,`doLength`),i=Z(this,`message`),a=i?i+`: `:``,o=Z(this,`ssfi`),s=pi(n).toLowerCase(),c=pi(e).toLowerCase(),l,u=!0;if(r&&s!==`map`&&s!==`set`&&new X(n,i,o,!0).to.have.property(`length`),!r&&s===`date`&&c!==`date`)l=a+`the argument to most must be a date`;else if(!Ba(e)&&(r||Ba(n)))l=a+`the argument to most must be a number`;else if(!r&&s!==`date`&&!Ba(n)){let e=s===`string`?`'`+n+`'`:n;l=a+`expected `+e+` to be a number or a date`}else u=!1;if(u)throw new QM(l,void 0,o);if(r){let t=`length`,r;s===`map`||s===`set`?(t=`size`,r=n.size):r=n.length,this.assert(r<=e,`expected #{this} to have a `+t+` at most #{exp} but got #{act}`,`expected #{this} to have a `+t+` above #{exp}`,e,r)}else this.assert(n<=e,`expected #{this} to be at most #{exp}`,`expected #{this} to be above #{exp}`,e)}function $a(e,t){t&&Z(this,`message`,t);let n=Z(this,`object`),r=Z(this,`ssfi`),i=Z(this,`message`),a;try{a=n instanceof e}catch(t){throw t instanceof TypeError?(i=i?i+`: `:``,new QM(i+`The instanceof assertion needs a constructor but `+pi(e)+` was given.`,void 0,r)):t}let o=Ra(e);o??=`an unnamed constructor`,this.assert(a,`expected #{this} to be an instance of `+o,`expected #{this} to not be an instance of `+o)}function eo(e,t,n){n&&Z(this,`message`,n);let r=Z(this,`nested`),i=Z(this,`own`),a=Z(this,`message`),o=Z(this,`object`),s=Z(this,`ssfi`),c=typeof e;if(a=a?a+`: `:``,r){if(c!==`string`)throw new QM(a+`the argument to property must be a string when using nested syntax`,void 0,s)}else if(c!==`string`&&c!==`number`&&c!==`symbol`)throw new QM(a+`the argument to property must be a string, number, or symbol`,void 0,s);if(r&&i)throw new QM(a+`The "nested" and "own" flags cannot be combined.`,void 0,s);if(o==null)throw new QM(a+`Target cannot be null or undefined.`,void 0,s);let l=Z(this,`deep`),u=Z(this,`negate`),d=r?xa(o,e):null,f=r?d.value:o[e],p=l?Z(this,`eql`):(e,t)=>e===t,m=``;l&&(m+=`deep `),i&&(m+=`own `),r&&(m+=`nested `),m+=`property `;let h;h=i?Object.prototype.hasOwnProperty.call(o,e):r?d.exists:va(o,e),(!u||arguments.length===1)&&this.assert(h,`expected #{this} to have `+m+qi(e),`expected #{this} to not have `+m+qi(e)),arguments.length>1&&this.assert(h&&p(t,f),`expected #{this} to have `+m+qi(e)+` of #{exp}, but got #{act}`,`expected #{this} to not have `+m+qi(e)+` of #{act}`,t,f),Z(this,`object`,f)}function to(e,t,n){Z(this,`own`,!0),eo.apply(this,arguments)}function no(e,t,n){typeof t==`string`&&(n=t,t=null),n&&Z(this,`message`,n);let r=Z(this,`object`),i=Object.getOwnPropertyDescriptor(Object(r),e),a=Z(this,`eql`);i&&t?this.assert(a(t,i),`expected the own property descriptor for `+qi(e)+` on #{this} to match `+qi(t)+`, got `+qi(i),`expected the own property descriptor for `+qi(e)+` on #{this} to not match `+qi(t),t,i,!0):this.assert(i,`expected #{this} to have an own property descriptor for `+qi(e),`expected #{this} to not have an own property descriptor for `+qi(e)),Z(this,`object`,i)}function ro(){Z(this,`doLength`,!0)}function io(e,t){t&&Z(this,`message`,t);let n=Z(this,`object`),r=pi(n).toLowerCase(),i=Z(this,`message`),a=Z(this,`ssfi`),o=`length`,s;switch(r){case`map`:case`set`:o=`size`,s=n.size;break;default:new X(n,i,a,!0).to.have.property(`length`),s=n.length}this.assert(s==e,`expected #{this} to have a `+o+` of #{exp} but got #{act}`,`expected #{this} to not have a `+o+` of #{act}`,e,s)}function ao(e,t){t&&Z(this,`message`,t);let n=Z(this,`object`);this.assert(e.exec(n),`expected #{this} to match `+e,`expected #{this} not to match `+e)}function oo(e){let t=Z(this,`object`),n=pi(t),r=pi(e),i=Z(this,`ssfi`),a=Z(this,`deep`),o,s=``,c,l=!0,u=Z(this,`message`);u=u?u+`: `:``;let d=u+`when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments`;if(n===`Map`||n===`Set`)s=a?`deeply `:``,c=[],t.forEach(function(e,t){c.push(t)}),r!==`Array`&&(e=Array.prototype.slice.call(arguments));else{switch(c=Fa(t),r){case`Array`:if(arguments.length>1)throw new QM(d,void 0,i);break;case`Object`:if(arguments.length>1)throw new QM(d,void 0,i);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map(function(e){return typeof e==`symbol`?e:String(e)})}if(!e.length)throw new QM(u+`keys required`,void 0,i);let f=e.length,p=Z(this,`any`),m=Z(this,`all`),h=e,g=a?Z(this,`eql`):(e,t)=>e===t;if(!p&&!m&&(m=!0),p&&(l=h.some(function(e){return c.some(function(t){return g(e,t)})})),m&&(l=h.every(function(e){return c.some(function(t){return g(e,t)})}),Z(this,`contains`)||(l&&=e.length==c.length)),f>1){e=e.map(function(e){return qi(e)});let t=e.pop();m&&(o=e.join(`, `)+`, and `+t),p&&(o=e.join(`, `)+`, or `+t)}else o=qi(e[0]);o=(f>1?`keys `:`key `)+o,o=(Z(this,`contains`)?`contain `:`have `)+o,this.assert(l,`expected #{this} to `+s+o,`expected #{this} to not `+s+o,h.slice(0).sort(Na),c.sort(Na),!0)}function so(e,t,n){n&&Z(this,`message`,n);let r=Z(this,`object`),i=Z(this,`ssfi`),a=Z(this,`message`),o=Z(this,`negate`)||!1;new X(r,a,i,!0).is.a(`function`),(za(e)||typeof e==`string`)&&(t=e,e=null);let s,c=!1;try{r()}catch(e){c=!0,s=e}let l=e===void 0&&t===void 0,u=!!(e&&t),d=!1,f=!1;if(l||!l&&!o){let t=`an error`;e instanceof Error?t=`#{exp}`:e&&(t=YM.getConstructorName(e));let n=s;if(s instanceof Error)n=s.toString();else if(typeof s==`string`)n=s;else if(s&&(typeof s==`object`||typeof s==`function`))try{n=YM.getConstructorName(s)}catch{}this.assert(c,`expected #{this} to throw `+t,`expected #{this} to not throw an error but #{act} was thrown`,e&&e.toString(),n)}if(e&&s&&(e instanceof Error&&YM.compatibleInstance(s,e)===o&&(u&&o?d=!0:this.assert(o,`expected #{this} to throw #{exp} but #{act} was thrown`,`expected #{this} to not throw #{exp}`+(s&&!o?` but #{act} was thrown`:``),e.toString(),s.toString())),YM.compatibleConstructor(s,e)===o&&(u&&o?d=!0:this.assert(o,`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&&YM.getConstructorName(e),s instanceof Error?s.toString():s&&YM.getConstructorName(s)))),s&&t!=null){let e=`including`;za(t)&&(e=`matching`),YM.compatibleMessage(s,t)===o&&(u&&o?f=!0:this.assert(o,`expected #{this} to throw error `+e+` #{exp} but got #{act}`,`expected #{this} to throw error not `+e+` #{exp}`,t,YM.getMessage(s)))}d&&f&&this.assert(o,`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&&YM.getConstructorName(e),s instanceof Error?s.toString():s&&YM.getConstructorName(s)),Z(this,`object`,s)}function co(e,t){t&&Z(this,`message`,t);let n=Z(this,`object`),r=Z(this,`itself`),i=typeof n==`function`&&!r?n.prototype[e]:n[e];this.assert(typeof i==`function`,`expected #{this} to respond to `+qi(e),`expected #{this} to not respond to `+qi(e))}function lo(e,t){t&&Z(this,`message`,t);let n=e(Z(this,`object`));this.assert(n,`expected #{this} to satisfy `+Ji(e),`expected #{this} to not satisfy`+Ji(e),!Z(this,`negate`),n)}function uo(e,t,n){n&&Z(this,`message`,n);let r=Z(this,`object`),i=Z(this,`message`),a=Z(this,`ssfi`);new X(r,i,a,!0).is.numeric;let o="A `delta` value is required for `closeTo`";if(t==null||(new X(t,i,a,!0).is.numeric,o="A `expected` value is required for `closeTo`",e==null))throw new QM(i?`${i}: ${o}`:o,void 0,a);new X(e,i,a,!0).is.numeric;let s=Y(e=>e<0n?-e:e,`abs`),c=Y(e=>parseFloat(parseFloat(e).toPrecision(12)),`strip`);this.assert(c(s(r-e))<=t,`expected #{this} to be close to `+e+` +/- `+t,`expected #{this} not to be close to `+e+` +/- `+t)}function fo(e,t,n,r,i){let a=Array.from(t),o=Array.from(e);if(!r){if(o.length!==a.length)return!1;a=a.slice()}return o.every(function(e,t){if(i)return n?n(e,a[t]):e===a[t];if(!n){let t=a.indexOf(e);return t===-1?!1:(r||a.splice(t,1),!0)}return a.some(function(t,i){return n(e,t)?(r||a.splice(i,1),!0):!1})})}function po(e,t){t&&Z(this,`message`,t);let n=Z(this,`object`),r=Z(this,`message`),i=Z(this,`ssfi`),a=Z(this,`contains`),o=Z(this,`deep`),s=Z(this,`eql`);new X(e,r,i,!0).to.be.an(`array`),a?this.assert(e.some(function(e){return n.indexOf(e)>-1}),`expected #{this} to contain one of #{exp}`,`expected #{this} to not contain one of #{exp}`,e,n):o?this.assert(e.some(function(e){return s(n,e)}),`expected #{this} to deeply equal one of #{exp}`,`expected #{this} to deeply equal one of #{exp}`,e,n):this.assert(e.indexOf(n)>-1,`expected #{this} to be one of #{exp}`,`expected #{this} to not be one of #{exp}`,e,n)}function mo(e,t,n){n&&Z(this,`message`,n);let r=Z(this,`object`),i=Z(this,`message`),a=Z(this,`ssfi`);new X(r,i,a,!0).is.a(`function`);let o;t?(new X(e,i,a,!0).to.have.property(t),o=e[t]):(new X(e,i,a,!0).is.a(`function`),o=e()),r();let s=t==null?e():e[t],c=t==null?o:`.`+t;Z(this,`deltaMsgObj`,c),Z(this,`initialDeltaValue`,o),Z(this,`finalDeltaValue`,s),Z(this,`deltaBehavior`,`change`),Z(this,`realDelta`,s!==o),this.assert(o!==s,`expected `+c+` to change`,`expected `+c+` to not change`)}function ho(e,t,n){n&&Z(this,`message`,n);let r=Z(this,`object`),i=Z(this,`message`),a=Z(this,`ssfi`);new X(r,i,a,!0).is.a(`function`);let o;t?(new X(e,i,a,!0).to.have.property(t),o=e[t]):(new X(e,i,a,!0).is.a(`function`),o=e()),new X(o,i,a,!0).is.a(`number`),r();let s=t==null?e():e[t],c=t==null?o:`.`+t;Z(this,`deltaMsgObj`,c),Z(this,`initialDeltaValue`,o),Z(this,`finalDeltaValue`,s),Z(this,`deltaBehavior`,`increase`),Z(this,`realDelta`,s-o),this.assert(s-o>0,`expected `+c+` to increase`,`expected `+c+` to not increase`)}function go(e,t,n){n&&Z(this,`message`,n);let r=Z(this,`object`),i=Z(this,`message`),a=Z(this,`ssfi`);new X(r,i,a,!0).is.a(`function`);let o;t?(new X(e,i,a,!0).to.have.property(t),o=e[t]):(new X(e,i,a,!0).is.a(`function`),o=e()),new X(o,i,a,!0).is.a(`number`),r();let s=t==null?e():e[t],c=t==null?o:`.`+t;Z(this,`deltaMsgObj`,c),Z(this,`initialDeltaValue`,o),Z(this,`finalDeltaValue`,s),Z(this,`deltaBehavior`,`decrease`),Z(this,`realDelta`,o-s),this.assert(s-o<0,`expected `+c+` to decrease`,`expected `+c+` to not decrease`)}function _o(e,t){t&&Z(this,`message`,t);let n=Z(this,`deltaMsgObj`),r=Z(this,`initialDeltaValue`),i=Z(this,`finalDeltaValue`),a=Z(this,`deltaBehavior`),o=Z(this,`realDelta`),s;s=a===`change`?Math.abs(i-r)===Math.abs(e):o===Math.abs(e),this.assert(s,`expected `+n+` to `+a+` by `+e,`expected `+n+` to not `+a+` by `+e)}function vo(e,t){return e===t?!0:typeof t==typeof e?typeof e!=`object`||!e?e===t:t?Array.isArray(e)?Array.isArray(t)?e.every(function(e){return t.some(function(t){return vo(e,t)})}):!1:e instanceof Date?t instanceof Date?e.getTime()===t.getTime():!1:Object.keys(e).every(function(n){let r=e[n],i=t[n];return typeof r==`object`&&r&&i!==null?vo(r,i):typeof r==`function`?r(i):i===r}):!1:!1}function yo(e,t){return new X(e,t)}function bo(){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 X(this.valueOf(),null,e):new X(this,null,e)}Y(e,`shouldGetter`);function t(e){Object.defineProperty(this,`should`,{value:e,enumerable:!0,configurable:!0,writable:!0})}Y(t,`shouldSetter`),Object.defineProperty(Object.prototype,`should`,{set:t,get:e,configurable:!0});let n={};return n.fail=function(e,t,r,i){throw arguments.length<2&&(r=e,e=void 0),r||=`should.fail()`,new QM(r,{actual:e,expected:t,operator:i},n.fail)},n.equal=function(e,t,n){new X(e,n).to.equal(t)},n.Throw=function(e,t,n,r){new X(e,r).to.Throw(t,n)},n.exist=function(e,t){new X(e,t).to.exist},n.not={},n.not.equal=function(e,t,n){new X(e,n).to.not.equal(t)},n.not.Throw=function(e,t,n,r){new X(e,r).to.not.Throw(t,n)},n.not.exist=function(e,t){new X(e,t).to.not.exist},n.throw=n.Throw,n.not.throw=n.not.Throw,n}function W(e,t){new X(null,null,W,!0).assert(e,t,`[ negation message unavailable ]`)}function xo(e){let t={use:xo,AssertionError:QM,util:JM,config:vN,expect:yo,assert:W,Assertion:X,...jN};return~PN.indexOf(e)||(e(t,JM),PN.push(e)),t}function So(e){Object.defineProperty(e,`__esModule`,{value:!0,configurable:!0})}function Co(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function wo(e){return e?e.trim():``}function To(e,t){let n=e&&typeof e.type==`string`,r=n?e:t;for(let t in e){let n=e[t];Array.isArray(n)?n.forEach(e=>{To(e,r)}):n&&typeof n==`object`&&To(n,r)}return n&&Object.defineProperty(e,`parent`,{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}function Eo(e){return typeof e==`function`||GN.call(e)===`[object Function]`}function Do(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}function Oo(e){var t=Do(e);return Math.min(Math.max(t,0),KN)}function ko(e,t){var n=Array,r=Object(e);if(e==null)throw TypeError(`Array.from requires an array-like object - not null or undefined`);if(typeof t<`u`&&!Eo(t))throw TypeError(`Array.from: when provided, the second argument must be a function`);for(var i=Oo(r.length),a=Eo(n)?Object(new n(i)):Array(i),o=0,s;o<i;)s=r[o],t?a[o]=t(s,o):a[o]=s,o+=1;return a.length=i,a}function Ao(e){"@babel/helpers - typeof";return Ao=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ao(e)}function jo(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Mo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Fo(r.key),r)}}function No(e,t,n){return t&&Mo(e.prototype,t),n&&Mo(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function Po(e,t,n){return t=Fo(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fo(e){var t=Io(e,`string`);return Ao(t)===`symbol`?t:String(t)}function Io(e,t){if(Ao(e)!==`object`||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Ao(r)!==`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Lo(e){return e.localName??e.tagName.toLowerCase()}function Ro(e,t){return[`aria-atomic`,`aria-busy`,`aria-controls`,`aria-current`,`aria-description`,`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(n){var r;return e.hasAttribute(n)&&!((r=XN[t])!=null&&r.has(n))})}function zo(e,t){return Ro(e,t)}function Bo(e){var t=Ho(e);if(t===null||ZN.indexOf(t)!==-1){var n=Vo(e);if(ZN.indexOf(t||``)===-1||zo(e,n||``))return n}return t}function Vo(e){var t=YN[Lo(e)];if(t!==void 0)return t;switch(Lo(e)){case`a`:case`area`:case`link`:if(e.hasAttribute(`href`))return`link`;break;case`img`:return e.getAttribute(`alt`)===``&&!zo(e,`img`)?`presentation`:`img`;case`input`:var n=e.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 Ho(e){var t=e.getAttribute(`role`);if(t!==null){var n=t.trim().split(` `)[0];if(n.length>0)return n}return null}function Uo(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function Wo(e){return Uo(e)&&Lo(e)===`caption`}function Go(e){return Uo(e)&&Lo(e)===`input`}function Ko(e){return Uo(e)&&Lo(e)===`optgroup`}function qo(e){return Uo(e)&&Lo(e)===`select`}function Jo(e){return Uo(e)&&Lo(e)===`table`}function Yo(e){return Uo(e)&&Lo(e)===`textarea`}function Xo(e){var t=(e.ownerDocument===null?e:e.ownerDocument).defaultView;if(t===null)throw TypeError(`no window available`);return t}function Zo(e){return Uo(e)&&Lo(e)===`fieldset`}function Qo(e){return Uo(e)&&Lo(e)===`legend`}function $o(e){return Uo(e)&&Lo(e)===`slot`}function es(e){return Uo(e)&&e.ownerSVGElement!==void 0}function ts(e){return Uo(e)&&Lo(e)===`svg`}function ns(e){return es(e)&&Lo(e)===`title`}function rs(e,t){if(Uo(e)&&e.hasAttribute(t)){var n=e.getAttribute(t).split(` `),r=e.getRootNode?e.getRootNode():e.ownerDocument;return n.map(function(e){return r.getElementById(e)}).filter(function(e){return e!==null})}return[]}function is(e,t){return Uo(e)?t.indexOf(Bo(e))!==-1:!1}function as(e){return e.trim().replace(/\s\s+/g,` `)}function os(e,t){if(!Uo(e))return!1;if(e.hasAttribute(`hidden`)||e.getAttribute(`aria-hidden`)===`true`)return!0;var n=t(e);return n.getPropertyValue(`display`)===`none`||n.getPropertyValue(`visibility`)===`hidden`}function ss(e){return is(e,[`button`,`combobox`,`listbox`,`textbox`])||cs(e,`range`)}function cs(e,t){if(!Uo(e))return!1;switch(t){case`range`:return is(e,[`meter`,`progressbar`,`scrollbar`,`slider`,`spinbutton`]);default:throw TypeError(`No knowledge about abstract role '${t}'. This is likely a bug :(`)}}function ls(e,t){var n=ko(e.querySelectorAll(t));return rs(e,`aria-owns`).forEach(function(e){n.push.apply(n,ko(e.querySelectorAll(t)))}),n}function us(e){return qo(e)?e.selectedOptions||ls(e,`[selected]`):ls(e,`[aria-selected="true"]`)}function ds(e){return is(e,ZN)}function fs(e){return Wo(e)}function ps(e){return is(e,[`button`,`cell`,`checkbox`,`columnheader`,`gridcell`,`heading`,`label`,`legend`,`link`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`row`,`rowheader`,`switch`,`tab`,`tooltip`,`treeitem`])}function ms(e){return!1}function hs(e){return Go(e)||Yo(e)?e.value:e.textContent||``}function gs(e){var t=e.getPropertyValue(`content`);return/^["'].*["']$/.test(t)?t.slice(1,-1):``}function _s(e){var t=Lo(e);return t===`button`||t===`input`&&e.getAttribute(`type`)!==`hidden`||t===`meter`||t===`output`||t===`progress`||t===`select`||t===`textarea`}function vs(e){if(_s(e))return e;var t=null;return e.childNodes.forEach(function(e){if(t===null&&Uo(e)){var n=vs(e);n!==null&&(t=n)}}),t}function ys(e){if(e.control!==void 0)return e.control;var t=e.getAttribute(`for`);return t===null?vs(e):e.ownerDocument.getElementById(t)}function bs(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return ko(t);if(!_s(e))return null;var n=e.ownerDocument;return ko(n.querySelectorAll(`label`)).filter(function(t){return ys(t)===e})}function xs(e){var t=e.assignedNodes();return t.length===0?ko(e.childNodes):t}function Ss(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new JN,r=Xo(e),i=t.compute,a=i===void 0?`name`:i,o=t.computedStyleSupportsPseudoElements,s=o===void 0?t.getComputedStyle!==void 0:o,c=t.getComputedStyle,l=c===void 0?r.getComputedStyle.bind(r):c,u=t.hidden,d=u===void 0?!1:u;function f(e,t){var n=``;if(Uo(e)&&s&&(n=`${gs(l(e,`::before`))} ${n}`),($o(e)?xs(e):ko(e.childNodes).concat(rs(e,`aria-owns`))).forEach(function(e){var r=g(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),i=(Uo(e)?l(e).getPropertyValue(`display`):`inline`)===`inline`?``:` `;n+=`${i}${r}${i}`}),Uo(e)&&s){var r=gs(l(e,`::after`));n=`${n} ${r}`}return n.trim()}function p(e,t){var r=e.getAttributeNode(t);return r!==null&&!n.has(r)&&r.value.trim()!==``?(n.add(r),r.value):null}function m(e){return Uo(e)?p(e,`title`):null}function h(e){if(!Uo(e))return null;if(Zo(e)){n.add(e);for(var t=ko(e.childNodes),r=0;r<t.length;r+=1){var i=t[r];if(Qo(i))return g(i,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(Jo(e)){n.add(e);for(var a=ko(e.childNodes),o=0;o<a.length;o+=1){var s=a[o];if(Wo(s))return g(s,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(ts(e)){n.add(e);for(var c=ko(e.childNodes),l=0;l<c.length;l+=1){var u=c[l];if(ns(u))return u.textContent}return null}else if(Lo(e)===`img`||Lo(e)===`area`){var d=p(e,`alt`);if(d!==null)return d}else if(Ko(e)){var m=p(e,`label`);if(m!==null)return m}if(Go(e)&&(e.type===`button`||e.type===`submit`||e.type===`reset`)){var h=p(e,`value`);if(h!==null)return h;if(e.type===`submit`)return`Submit`;if(e.type===`reset`)return`Reset`}var _=bs(e);if(_!==null&&_.length!==0)return n.add(e),ko(_).map(function(e){return g(e,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(e){return e.length>0}).join(` `);if(Go(e)&&e.type===`image`){var v=p(e,`alt`);if(v!==null)return v;var y=p(e,`title`);return y===null?`Submit Query`:y}if(is(e,[`button`])){var b=f(e,{isEmbeddedInLabel:!1,isReferenced:!1});if(b!==``)return b}return null}function g(e,t){if(n.has(e))return``;if(!d&&os(e,l)&&!t.isReferenced)return n.add(e),``;var r=Uo(e)?e.getAttributeNode(`aria-labelledby`):null,i=r!==null&&!n.has(r)?rs(e,`aria-labelledby`):[];if(a===`name`&&!t.isReferenced&&i.length>0)return n.add(r),i.map(function(e){return g(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(` `);var o=t.recursion&&ss(e)&&a===`name`;if(!o){var s=(Uo(e)&&e.getAttribute(`aria-label`)||``).trim();if(s!==``&&a===`name`)return n.add(e),s;if(!ds(e)){var c=h(e);if(c!==null)return n.add(e),c}}if(is(e,[`menu`]))return n.add(e),``;if(o||t.isEmbeddedInLabel||t.isReferenced){if(is(e,[`combobox`,`listbox`])){n.add(e);var u=us(e);return u.length===0?Go(e)?e.value:``:ko(u).map(function(e){return g(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(` `)}if(cs(e,`range`))return n.add(e),e.hasAttribute(`aria-valuetext`)?e.getAttribute(`aria-valuetext`):e.hasAttribute(`aria-valuenow`)?e.getAttribute(`aria-valuenow`):e.getAttribute(`value`)||``;if(is(e,[`textbox`]))return n.add(e),hs(e)}if(ps(e)||Uo(e)&&t.isReferenced||fs(e)||ms(e)){var p=f(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1});if(p!==``)return n.add(e),p}if(e.nodeType===e.TEXT_NODE)return n.add(e),e.textContent||``;if(t.recursion)return n.add(e),f(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1});var _=m(e);return _===null?(n.add(e),``):(n.add(e),_)}return as(g(e,{isEmbeddedInLabel:!1,isReferenced:a===`description`,recursion:!1}))}function Cs(e){"@babel/helpers - typeof";return Cs=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Cs(e)}function ws(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ts(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ws(Object(n),!0).forEach(function(t){Es(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ws(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Es(e,t,n){return t=Ds(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ds(e){var t=Os(e,`string`);return Cs(t)===`symbol`?t:String(t)}function Os(e,t){if(Cs(e)!==`object`||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Cs(r)!==`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ks(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=rs(e,`aria-describedby`).map(function(e){return Ss(e,Ts(Ts({},t),{},{compute:`description`}))}).join(` `);if(n===``){var r=e.getAttribute(`aria-description`);n=r===null?``:r}if(n===``){var i=e.getAttribute(`title`);n=i===null?``:i}return n}function As(e){return is(e,[`caption`,`code`,`deletion`,`emphasis`,`generic`,`insertion`,`none`,`paragraph`,`presentation`,`strong`,`subscript`,`superscript`])}function js(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return As(e)?``:Ss(e,t)}function Ms(e,t,...n){if(!e||!e.ownerDocument||!e.ownerDocument.defaultView)throw new t(e,...n)}function Ns(e,...t){if(Ms(e,iP,...t),!(e instanceof e.ownerDocument.defaultView.Node))throw new iP(e,...t)}function Ps(e,...t){Ms(e,rP,...t);let n=e.ownerDocument.defaultView;if(!(e instanceof n.HTMLElement)&&!(e instanceof n.SVGElement))throw new rP(e,...t)}function Fs(e,...t){let n=WN(`selector { ${e} }`,{silent:!0}).stylesheet;if(n.parsingErrors&&n.parsingErrors.length>0){let{reason:r,line:i}=n.parsingErrors[0];throw new aP({css:e,message:`Syntax error parsing expected css: ${r} on line: ${i}`},...t)}return n.rules[0].declarations.filter(e=>e.type===`declaration`).reduce((e,{property:t,value:n})=>Object.assign(e,{[t]:n}),{})}function Is(e,t){return typeof t==`string`?t:e.utils.stringify(t)}function Ls(e,t,n,r,i,a){return[`${t}
|
||
`,`${n}:
|
||
${e.utils.EXPECTED_COLOR((0,IN.default)(Is(e,r),2))}`,`${i}:
|
||
${e.utils.RECEIVED_COLOR((0,IN.default)(Is(e,a),2))}`].join(`
|
||
`)}function Rs(e,t){return t instanceof RegExp?t.test(e):e.includes(String(t))}function zs(e,t){console.warn(`Warning: ${e} has been deprecated and will be removed in future updates.`,t)}function Bs(e){return e.replace(/\s+/g,` `).trim()}function Vs(e){return e.tagName&&e.tagName.toLowerCase()}function Hs({multiple:e,options:t}){let n=[...t].filter(e=>e.selected);if(e)return[...n].map(e=>e.value);if(n.length!==0)return n[0].value}function Us(e){switch(e.type){case`number`:return e.value===``?null:Number(e.value);case`checkbox`:return e.checked;default:return e.value}}function Ws(e){if(oP.includes(e.getAttribute(`role`)))return Number(e.getAttribute(`aria-valuenow`))}function Gs(e){if(e)switch(e.tagName.toLowerCase()){case`input`:return Us(e);case`select`:return Hs(e);default:return e.value??Ws(e)}}function Ks(e,{wordConnector:t=`, `,lastWordConnector:n=` and `}={}){return[e.slice(0,-1).join(t),e[e.length-1]].join(e.length>1?n:``)}function qs(e,t){if(Array.isArray(e)&&Array.isArray(t))return[...new Set(e)].every(e=>new Set(t).has(e))}function Js(e,t){return zs(`toBeInTheDOM`,`Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container.`),e&&Ps(e,Js,this),t&&Ps(t,Js,this),{pass:t?t.contains(e):!!e,message:()=>[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeInTheDOM`,`element`,``),``,`Received:`,` ${this.utils.printReceived(e&&e.cloneNode(!1))}`].join(`
|
||
`)}}function Ys(e){(e!==null||!this.isNot)&&Ps(e,Ys,this);let t=e===null?!1:e.ownerDocument===e.getRootNode({composed:!0}),n=()=>`expected document not to contain element, found ${this.utils.stringify(e.cloneNode(!0))} instead`,r=()=>`element could not be found in the document`;return{pass:t,message:()=>[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeInTheDocument`,`element`,``),``,this.utils.RECEIVED_COLOR(this.isNot?n():r())].join(`
|
||
`)}}function Xs(e){return zs(`toBeEmpty`,`Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM.`),Ps(e,Xs,this),{pass:e.innerHTML===``,message:()=>[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeEmpty`,`element`,``),``,`Received:`,` ${this.utils.printReceived(e.innerHTML)}`].join(`
|
||
`)}}function Zs(e){return Ps(e,Zs,this),{pass:Qs(e),message:()=>[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeEmptyDOMElement`,`element`,``),``,`Received:`,` ${this.utils.printReceived(e.innerHTML)}`].join(`
|
||
`)}}function Qs(e){return[...e.childNodes].filter(e=>e.nodeType!==8).length===0}function $s(e,t){return Ps(e,$s,this),t!==null&&Ps(t,$s,this),{pass:e.contains(t),message:()=>[this.utils.matcherHint(`${this.isNot?`.not`:``}.toContainElement`,`element`,`element`),``,this.utils.RECEIVED_COLOR(`${this.utils.stringify(e.cloneNode(!1))} ${this.isNot?`contains:`:`does not contain:`} ${this.utils.stringify(t&&t.cloneNode(!1))}
|
||
`)].join(`
|
||
`)}}function ec(e,t){let n=e.ownerDocument.createElement(`div`);return n.innerHTML=t,n.innerHTML}function tc(e,t){if(Ps(e,tc,this),typeof t!=`string`)throw Error(`.toContainHTML() expects a string value, got ${t}`);return{pass:e.outerHTML.includes(ec(e,t)),message:()=>[this.utils.matcherHint(`${this.isNot?`.not`:``}.toContainHTML`,`element`,``),`Expected:`,` ${this.utils.EXPECTED_COLOR(t)}`,`Received:`,` ${this.utils.printReceived(e.cloneNode(!0))}`].join(`
|
||
`)}}function nc(e,t,n={normalizeWhitespace:!0}){Ns(e,nc,this);let r=n.normalizeWhitespace?Bs(e.textContent):e.textContent.replace(/\u00a0/g,` `),i=r!==``&&t===``;return{pass:!i&&Rs(r,t),message:()=>{let e=this.isNot?`not to`:`to`;return Ls(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveTextContent`,`element`,``),i?`Checking with empty string will always match, use .toBeEmptyDOMElement() instead`:`Expected element ${e} have text content`,t,`Received`,r)}}}function rc(e,t){Ps(e,rc,this);let n=ks(e),r=arguments.length===1,i=!1;return i=r?n!==``:t instanceof RegExp?t.test(n):this.equals(n,t),{pass:i,message:()=>{let e=this.isNot?`not to`:`to`;return Ls(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.${rc.name}`,`element`,``),`Expected element ${e} have accessible description`,t,`Received`,n)}}}function ic(e,t){Ps(e,ic,this);let n=this.isNot?`not to`:`to`,r=this.isNot?`.not.toHaveAccessibleErrorMessage`:`.toHaveAccessibleErrorMessage`,i=e.getAttribute(`aria-errormessage`);if(i&&/\s+/.test(i))return{pass:!1,message:()=>Ls(this,this.utils.matcherHint(r,`element`),"Expected element's `aria-errormessage` attribute to be empty or a single, valid ID",``,`Received`,`aria-errormessage="${i}"`)};let a=e.getAttribute(sP);if(!e.hasAttribute(sP)||cP.includes(a))return{pass:!1,message:()=>Ls(this,this.utils.matcherHint(r,`element`),`Expected element to be marked as invalid with attribute`,`${sP}="true"`,`Received`,e.hasAttribute(`aria-invalid`)?`${sP}="${e.getAttribute(sP)}`:null)};let o=Bs(e.ownerDocument.getElementById(i)?.textContent??``);return{pass:t===void 0?!!o:t instanceof RegExp?t.test(o):this.equals(o,t),message:()=>Ls(this,this.utils.matcherHint(r,`element`),`Expected element ${n} have accessible error message`,t??``,`Received`,o)}}function ac(e,t){Ps(e,ac,this);let n=oc(e);return{pass:n.some(e=>e===t),message:()=>{let e=this.isNot?`not to`:`to`;return Ls(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.${ac.name}`,`element`,``),`Expected element ${e} have role`,t,`Received`,n.join(`, `))}}}function oc(e){return e.hasAttribute(`role`)?e.getAttribute(`role`).split(` `).filter(Boolean):sc(e)}function sc(e){for(let{match:t,roles:n}of lP)if(t(e))return[...n];return[]}function cc(e){function t({name:e,attributes:t}){return`${e}${t.map(({name:e,value:t,constraints:n=[]})=>n.indexOf(`undefined`)===-1?t?`[${e}="${t}"]`:`[${e}]`:`:not([${e}])`).join(``)}`}function n({attributes:e=[]}){return e.length}function r({specificity:e},{specificity:t}){return t-e}function i(e){let{attributes:n=[]}=e,r=n.findIndex(e=>e.value&&e.name===`type`&&e.value===`text`);r>=0&&(n=[...n.slice(0,r),...n.slice(r+1)]);let i=t({...e,attributes:n});return e=>r>=0&&e.type!==`text`?!1:e.matches(i)}let a=[];for(let[t,r]of e.entries())a=[...a,{match:i(t),roles:Array.from(r),specificity:n(t)}];return a.sort(r)}function lc(e,t){Ps(e,lc,this);let n=js(e),r=arguments.length===1,i=!1;return i=r?n!==``:t instanceof RegExp?t.test(n):this.equals(n,t),{pass:i,message:()=>{let e=this.isNot?`not to`:`to`;return Ls(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.${lc.name}`,`element`,``),`Expected element ${e} have accessible name`,t,`Received`,n)}}}function uc(e,t,n){return n===void 0?t:`${t}=${e(n)}`}function dc(e,t,n){return n===void 0?`element.hasAttribute(${e(t)})`:`element.getAttribute(${e(t)}) === ${e(n)}`}function fc(e,t,n){Ps(e,fc,this);let r=n!==void 0,i=e.hasAttribute(t),a=e.getAttribute(t);return{pass:r?i&&this.equals(a,n):i,message:()=>{let e=this.isNot?`not to`:`to`,o=i?uc(this.utils.stringify,t,a):null,s=this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveAttribute`,`element`,this.utils.printExpected(t),{secondArgument:r?this.utils.printExpected(n):void 0,comment:dc(this.utils.stringify,t,n)});return Ls(this,s,`Expected the element ${e} have attribute`,uc(this.utils.stringify,t,n),`Received`,o)}}}function pc(e){let t=e.pop(),n,r;return typeof t==`object`&&!(t instanceof RegExp)?(n=e,r=t):(n=e.concat(t),r={exact:!1}),{expectedClassNames:n,options:r}}function mc(e){return e?e.split(/\s+/).filter(e=>e.length>0):[]}function hc(e,t){return e.every(e=>typeof e==`string`?t.includes(e):t.some(t=>e.test(t)))}function gc(e,...t){Ps(e,gc,this);let{expectedClassNames:n,options:r}=pc(t),i=mc(e.getAttribute(`class`)),a=n.reduce((e,t)=>e.concat(typeof t==`string`||!t?mc(t):t),[]),o=a.some(e=>e instanceof RegExp);if(r.exact&&o)throw Error(`Exact option does not support RegExp expected class names`);return r.exact?{pass:hc(a,i)&&a.length===i.length,message:()=>{let e=this.isNot?`not to`:`to`;return Ls(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveClass`,`element`,this.utils.printExpected(a.join(` `))),`Expected the element ${e} have EXACTLY defined classes`,a.join(` `),`Received`,i.join(` `))}}:a.length>0?{pass:hc(a,i),message:()=>{let e=this.isNot?`not to`:`to`;return Ls(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveClass`,`element`,this.utils.printExpected(a.join(` `))),`Expected the element ${e} have class`,a.join(` `),`Received`,i.join(` `))}}:{pass:this.isNot?i.length>0:!1,message:()=>this.isNot?Ls(this,this.utils.matcherHint(`.not.toHaveClass`,`element`,``),`Expected the element to have classes`,`(none)`,`Received`,i.join(` `)):[this.utils.matcherHint(`.toHaveClass`,`element`),`At least one expected class must be provided.`].join(`
|
||
`)}}function _c(e,t){let n={},r=e.createElement(`div`);return Object.keys(t).forEach(e=>{r.style[e]=t[e],n[e]=r.style[e]}),n}function vc(e,t){return!!Object.keys(e).length&&Object.entries(e).every(([e,n])=>{let r=e.startsWith(`--`),i=[e];return r||i.push(e.toLowerCase()),i.some(e=>t[e]===n||t.getPropertyValue(e)===n)})}function yc(e){return Object.keys(e).sort().map(t=>`${t}: ${e[t]};`).join(`
|
||
`)}function bc(e,t,n){let r=Array.from(n).filter(e=>t[e]!==void 0).reduce((e,t)=>Object.assign(e,{[t]:n.getPropertyValue(t)}),{});return e(yc(t),yc(r)).replace(`${$N.default.red(`+ Received`)}
|
||
`,``)}function xc(e,t){Ps(e,xc,this);let n=typeof t==`object`?t:Fs(t,xc,this),{getComputedStyle:r}=e.ownerDocument.defaultView,i=_c(e.ownerDocument,n),a=r(e);return{pass:vc(i,a),message:()=>{let e=`${this.isNot?`.not`:``}.toHaveStyle`;return[this.utils.matcherHint(e,`element`,``),bc(this.utils.diff,i,a)].join(`
|
||
|
||
`)}}}function Sc(e){return Ps(e,Sc,this),{pass:e.ownerDocument.activeElement===e,message:()=>[this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveFocus`,`element`,``),``,...this.isNot?[`Received element is focused:`,` ${this.utils.printReceived(e)}`]:[`Expected element with focus:`,` ${this.utils.printExpected(e)}`,`Received element with focus:`,` ${this.utils.printReceived(e.ownerDocument.activeElement)}`]].join(`
|
||
`)}}function Cc(e){let t=[...new Set(e.map(e=>e.type))];if(t.length!==1)throw Error(`Multiple form elements with the same name must be of the same type`);switch(t[0]){case`radio`:{let t=e.find(e=>e.checked);return t?t.value:void 0}case`checkbox`:return e.filter(e=>e.checked).map(e=>e.value);default:return e.map(e=>e.value)}}function wc(e,t){let n=[...e.querySelectorAll(`[name="${(0,tP.default)(t)}"]`)];if(n.length!==0)switch(n.length){case 1:return Gs(n[0]);default:return Cc(n)}}function Tc(e){return/\[\]$/.test(e)?e.slice(0,-2):e}function Ec(e){return Array.from(e.elements).map(e=>e.name).reduce((t,n)=>({...t,[Tc(n)]:wc(e,n)}),{})}function Dc(e,t){if(Ps(e,Dc,this),!e.elements)throw Error(`toHaveFormValues must be called on a form or a fieldset`);let n=Ec(e);return{pass:Object.entries(t).every(([e,t])=>(0,eP.default)(n[e],t,qs)),message:()=>{let e=this.isNot?`not to`:`to`,r=`${this.isNot?`.not`:``}.toHaveFormValues`,i=Object.keys(n).filter(e=>t.hasOwnProperty(e)).reduce((e,t)=>({...e,[t]:n[t]}),{});return[this.utils.matcherHint(r,`element`,``),`Expected the element ${e} have form values`,this.utils.diff(t,i)].join(`
|
||
|
||
`)}}}function Oc(e){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:n,visibility:r,opacity:i}=t(e);return n!==`none`&&r!==`hidden`&&r!==`collapse`&&i!==`0`&&i!==0}function kc(e,t){let n;return n=t?e.nodeName===`DETAILS`&&t.nodeName!==`SUMMARY`?e.hasAttribute(`open`):!0:e.nodeName===`DETAILS`?e.hasAttribute(`open`):!0,!e.hasAttribute(`hidden`)&&n}function Ac(e,t){return Oc(e)&&kc(e,t)&&(!e.parentElement||Ac(e.parentElement,e))}function jc(e){Ps(e,jc,this);let t=e.ownerDocument===e.getRootNode({composed:!0}),n=t&&Ac(e);return{pass:n,message:()=>{let r=n?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeVisible`,`element`,``),``,`Received element ${r} visible${t?``:` (element is not in the document)`}:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
||
`)}}}function Mc(e,t){return Vs(e)===`legend`&&Vs(t)===`fieldset`&&e.isSameNode(Array.from(t.children).find(e=>Vs(e)===`legend`))}function Nc(e,t){return Ic(t)&&!Mc(e,t)}function Pc(e){return e.includes(`-`)}function Fc(e){let t=Vs(e);return uP.includes(t)||Pc(t)}function Ic(e){return Fc(e)&&e.hasAttribute(`disabled`)}function Lc(e){let t=e.parentElement;return!!t&&(Nc(e,t)||Lc(t))}function Rc(e){return Fc(e)&&(Ic(e)||Lc(e))}function zc(e){Ps(e,zc,this);let t=Rc(e);return{pass:t,message:()=>{let n=t?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeDisabled`,`element`,``),``,`Received element ${n} disabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
||
`)}}}function Bc(e){Ps(e,Bc,this);let t=!Rc(e);return{pass:t,message:()=>{let n=t?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeEnabled`,`element`,``),``,`Received element ${n} enabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
||
`)}}}function Vc(e){return dP.includes(Vs(e))&&e.hasAttribute(`required`)}function Hc(e){return Vs(e)===`input`&&e.hasAttribute(`required`)&&(e.hasAttribute(`type`)&&!pP.includes(e.getAttribute(`type`))||!e.hasAttribute(`type`))}function Uc(e){return e.hasAttribute(`aria-required`)&&e.getAttribute(`aria-required`)===`true`&&(fP.includes(Vs(e))||e.hasAttribute(`role`)&&mP.includes(e.getAttribute(`role`)))}function Wc(e){Ps(e,Wc,this);let t=Vc(e)||Hc(e)||Uc(e);return{pass:t,message:()=>{let n=t?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeRequired`,`element`,``),``,`Received element ${n} required:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
||
`)}}}function Gc(e){return e.hasAttribute(`aria-invalid`)&&e.getAttribute(`aria-invalid`)!==`false`}function Kc(e){return hP.includes(Vs(e))}function qc(e){let t=Gc(e);return Kc(e)?t||!e.checkValidity():t}function Jc(e){Ps(e,Jc,this);let t=qc(e);return{pass:t,message:()=>{let n=t?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeInvalid`,`element`,``),``,`Received element ${n} currently invalid:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
||
`)}}}function Yc(e){Ps(e,Yc,this);let t=!qc(e);return{pass:t,message:()=>{let n=t?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeValid`,`element`,``),``,`Received element ${n} currently valid:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
||
`)}}}function Xc(e,t){if(Ps(e,Xc,this),e.tagName.toLowerCase()===`input`&&[`checkbox`,`radio`].includes(e.type))throw Error(`input with type=checkbox or type=radio cannot be used with .toHaveValue(). Use .toBeChecked() for type=checkbox or .toHaveFormValues() instead`);let n=Gs(e),r=t!==void 0,i=t,a=n;return t==n&&t!==n&&(i=`${t} (${typeof t})`,a=`${n} (${typeof n})`),{pass:r?(0,eP.default)(n,t,qs):!!n,message:()=>{let e=this.isNot?`not to`:`to`,n=this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveValue`,`element`,t);return Ls(this,n,`Expected the element ${e} have value`,r?i:`(any)`,`Received`,a)}}}function Zc(e,t){Ps(e,Zc,this);let n=e.tagName.toLowerCase();if(![`select`,`input`,`textarea`].includes(n))throw Error(`.toHaveDisplayValue() currently supports only input, textarea or select elements, try with another matcher instead.`);if(n===`input`&&[`radio`,`checkbox`].includes(e.type))throw Error(`.toHaveDisplayValue() currently does not support input[type="${e.type}"], try with another matcher instead.`);let r=Qc(n,e),i=$c(t),a=i.filter(e=>r.some(t=>e instanceof RegExp?e.test(t):this.equals(t,String(e)))).length,o=a===r.length,s=a===i.length;return{pass:o&&s,message:()=>Ls(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveDisplayValue`,`element`,``),`Expected element ${this.isNot?`not `:``}to have display value`,t,`Received`,r)}}function Qc(e,t){return e===`select`?Array.from(t).filter(e=>e.selected).map(e=>e.textContent):[t.value]}function $c(e){return e instanceof Array?e:[e]}function el(e){Ps(e,el,this);let t=()=>e.tagName.toLowerCase()===`input`&&[`checkbox`,`radio`].includes(e.type);if(!t()&&!(rl(e.getAttribute(`role`))&&[`true`,`false`].includes(e.getAttribute(`aria-checked`))))return{pass:!1,message:()=>`only inputs with type="checkbox" or type="radio" or elements with ${tl()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`};let n=()=>t()?e.checked:e.getAttribute(`aria-checked`)===`true`;return{pass:n(),message:()=>{let t=n()?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeChecked`,`element`,``),``,`Received element ${t} checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
||
`)}}}function tl(){return Ks(nl().map(e=>`role="${e}"`),{lastWordConnector:` or `})}function nl(){return QN.roles.keys().filter(rl)}function rl(e){return QN.roles.get(e)?.props[`aria-checked`]!==void 0}function il(e){Ps(e,il,this);let t=()=>e.tagName.toLowerCase()===`input`&&e.type===`checkbox`;if(!t()&&e.getAttribute(`role`)!==`checkbox`)return{pass:!1,message:()=>`only inputs with type="checkbox" or elements with role="checkbox" and a valid aria-checked attribute can be used with .toBePartiallyChecked(). Use .toHaveValue() instead`};let n=()=>{let n=e.getAttribute(`aria-checked`)===`mixed`;return t()&&e.indeterminate||n};return{pass:n(),message:()=>{let t=n()?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBePartiallyChecked`,`element`,``),``,`Received element ${t} partially checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
||
`)}}}function al(e,t){zs(`toHaveDescription`,`Please use toHaveAccessibleDescription.`),Ps(e,al,this);let n=t!==void 0,r=(e.getAttribute(`aria-describedby`)||``).split(/\s+/).filter(Boolean),i=``;if(r.length>0){let t=e.ownerDocument;i=Bs(r.map(e=>t.getElementById(e)).filter(Boolean).map(e=>e.textContent).join(` `))}return{pass:n?t instanceof RegExp?t.test(i):this.equals(i,t):!!i,message:()=>{let e=this.isNot?`not to`:`to`;return Ls(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveDescription`,`element`,``),`Expected the element ${e} have description`,this.utils.printExpected(t),`Received`,this.utils.printReceived(i))}}}function ol(e,t){if(zs(`toHaveErrorMessage`,`Please use toHaveAccessibleErrorMessage.`),Ps(e,ol,this),!e.hasAttribute(`aria-invalid`)||e.getAttribute(`aria-invalid`)===`false`){let t=this.isNot?`.not`:``;return{pass:!1,message:()=>Ls(this,this.utils.matcherHint(`${t}.toHaveErrorMessage`,`element`,``),`Expected the element to have invalid state indicated by`,`aria-invalid="true"`,`Received`,e.hasAttribute(`aria-invalid`)?`aria-invalid="${e.getAttribute(`aria-invalid`)}"`:this.utils.printReceived(``))}}let n=t!==void 0,r=(e.getAttribute(`aria-errormessage`)||``).split(/\s+/).filter(Boolean),i=``;if(r.length>0){let t=e.ownerDocument;i=Bs(r.map(e=>t.getElementById(e)).filter(Boolean).map(e=>e.textContent).join(` `))}return{pass:n?t instanceof RegExp?t.test(i):this.equals(i,t):!!i,message:()=>{let e=this.isNot?`not to`:`to`;return Ls(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveErrorMessage`,`element`,``),`Expected the element ${e} have error message`,this.utils.printExpected(t),`Received`,this.utils.printReceived(i))}}}function sl(e){let t=e.ownerDocument.getSelection();if([`input`,`textarea`].includes(e.tagName.toLowerCase()))return[`radio`,`checkbox`].includes(e.type)?``:e.value.toString().substring(e.selectionStart,e.selectionEnd);if(t.anchorNode===null||t.focusNode===null)return``;let n=t.getRangeAt(0),r=e.ownerDocument.createRange();if(t.containsNode(e,!1))r.selectNodeContents(e),t.removeAllRanges(),t.addRange(r);else if(!(e.contains(t.anchorNode)&&e.contains(t.focusNode))){let i=e===n.startContainer||e.contains(n.startContainer),a=e===n.endContainer||e.contains(n.endContainer);t.removeAllRanges(),(i||a)&&(r.selectNodeContents(e),i&&r.setStart(n.startContainer,n.startOffset),a&&r.setEnd(n.endContainer,n.endOffset),t.addRange(r))}let i=t.toString();return t.removeAllRanges(),t.addRange(n),i}function cl(e,t){Ps(e,cl,this);let n=t!==void 0;if(n&&typeof t!=`string`)throw Error(`expected selection must be a string or undefined`);let r=sl(e);return{pass:n?(0,eP.default)(r,t,qs):!!r,message:()=>{let e=this.isNot?`not to`:`to`,i=this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveSelection`,`element`,t);return Ls(this,i,`Expected the element ${e} have selection`,n?t:`(any)`,`Received`,r)}}}function ll(){if(_P)return gP;_P=1;var e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v;return f=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/uy,d=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,e=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/uy,m=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,u=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,h=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,v=/[\t\v\f\ufeff\p{Zs}]+/uy,s=/\r?\n|[\r\u2028\u2029]/y,c=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,p=/\/\/.*/y,n=/[<>.:={}]|\/(?![\/*])/y,t=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/uy,r=/(['"])(?:(?!\1)[^])*(\1)?/y,i=/[^<>{}]+/y,_=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,g=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,a=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,o=/^(?:return|throw|yield)$/,l=RegExp(s.source),gP=function*(y,{jsx:b=!1}={}){var x,S,C,w,T,E,D,O,k,A,j,M,ee,N;for({length:E}=y,w=0,T=``,N=[{tag:`JS`}],x=[],j=0,M=!1;w<E;){switch(O=N[N.length-1],O.tag){case`JS`:case`JSNonExpressionParen`:case`InterpolationInTemplate`:case`InterpolationInJSX`:if(y[w]===`/`&&(_.test(T)||a.test(T))&&(f.lastIndex=w,D=f.exec(y))){w=f.lastIndex,T=D[0],M=!0,yield{type:`RegularExpressionLiteral`,value:D[0],closed:D[1]!==void 0&&D[1]!==`\\`};continue}if(d.lastIndex=w,D=d.exec(y)){switch(ee=D[0],k=d.lastIndex,A=ee,ee){case`(`:T===`?NonExpressionParenKeyword`&&N.push({tag:`JSNonExpressionParen`,nesting:j}),j++,M=!1;break;case`)`:j--,M=!0,O.tag===`JSNonExpressionParen`&&j===O.nesting&&(N.pop(),A=`?NonExpressionParenEnd`,M=!1);break;case`{`:d.lastIndex=0,C=!g.test(T)&&(_.test(T)||a.test(T)),x.push(C),M=!1;break;case`}`:switch(O.tag){case`InterpolationInTemplate`:if(x.length===O.nesting){h.lastIndex=w,D=h.exec(y),w=h.lastIndex,T=D[0],D[1]==="${"?(T=`?InterpolationInTemplate`,M=!1,yield{type:`TemplateMiddle`,value:D[0]}):(N.pop(),M=!0,yield{type:`TemplateTail`,value:D[0],closed:D[1]==="`"});continue}break;case`InterpolationInJSX`:if(x.length===O.nesting){N.pop(),w+=1,T=`}`,yield{type:`JSXPunctuator`,value:`}`};continue}}M=x.pop(),A=M?`?ExpressionBraceEnd`:`}`;break;case`]`:M=!0;break;case`++`:case`--`:A=M?`?PostfixIncDec`:`?UnaryIncDec`;break;case`<`:if(b&&(_.test(T)||a.test(T))){N.push({tag:`JSXTag`}),w+=1,T=`<`,yield{type:`JSXPunctuator`,value:ee};continue}M=!1;break;default:M=!1}w=k,T=A,yield{type:`Punctuator`,value:ee};continue}if(e.lastIndex=w,D=e.exec(y)){switch(w=e.lastIndex,A=D[0],D[0]){case`for`:case`if`:case`while`:case`with`:T!==`.`&&T!==`?.`&&(A=`?NonExpressionParenKeyword`)}T=A,M=!a.test(D[0]),yield{type:D[1]===`#`?`PrivateIdentifier`:`IdentifierName`,value:D[0]};continue}if(m.lastIndex=w,D=m.exec(y)){w=m.lastIndex,T=D[0],M=!0,yield{type:`StringLiteral`,value:D[0],closed:D[2]!==void 0};continue}if(u.lastIndex=w,D=u.exec(y)){w=u.lastIndex,T=D[0],M=!0,yield{type:`NumericLiteral`,value:D[0]};continue}if(h.lastIndex=w,D=h.exec(y)){w=h.lastIndex,T=D[0],D[1]==="${"?(T=`?InterpolationInTemplate`,N.push({tag:`InterpolationInTemplate`,nesting:x.length}),M=!1,yield{type:`TemplateHead`,value:D[0]}):(M=!0,yield{type:`NoSubstitutionTemplate`,value:D[0],closed:D[1]==="`"});continue}break;case`JSXTag`:case`JSXTagEnd`:if(n.lastIndex=w,D=n.exec(y)){switch(w=n.lastIndex,A=D[0],D[0]){case`<`:N.push({tag:`JSXTag`});break;case`>`:N.pop(),T===`/`||O.tag===`JSXTagEnd`?(A=`?JSX`,M=!0):N.push({tag:`JSXChildren`});break;case`{`:N.push({tag:`InterpolationInJSX`,nesting:x.length}),A=`?InterpolationInJSX`,M=!1;break;case`/`:T===`<`&&(N.pop(),N[N.length-1].tag===`JSXChildren`&&N.pop(),N.push({tag:`JSXTagEnd`}))}T=A,yield{type:`JSXPunctuator`,value:D[0]};continue}if(t.lastIndex=w,D=t.exec(y)){w=t.lastIndex,T=D[0],yield{type:`JSXIdentifier`,value:D[0]};continue}if(r.lastIndex=w,D=r.exec(y)){w=r.lastIndex,T=D[0],yield{type:`JSXString`,value:D[0],closed:D[2]!==void 0};continue}break;case`JSXChildren`:if(i.lastIndex=w,D=i.exec(y)){w=i.lastIndex,T=D[0],yield{type:`JSXText`,value:D[0]};continue}switch(y[w]){case`<`:N.push({tag:`JSXTag`}),w++,T=`<`,yield{type:`JSXPunctuator`,value:`<`};continue;case`{`:N.push({tag:`InterpolationInJSX`,nesting:x.length}),w++,T=`?InterpolationInJSX`,M=!1,yield{type:`JSXPunctuator`,value:`{`};continue}}if(v.lastIndex=w,D=v.exec(y)){w=v.lastIndex,yield{type:`WhiteSpace`,value:D[0]};continue}if(s.lastIndex=w,D=s.exec(y)){w=s.lastIndex,M=!1,o.test(T)&&(T=`?NoLineTerminatorHere`),yield{type:`LineTerminatorSequence`,value:D[0]};continue}if(c.lastIndex=w,D=c.exec(y)){w=c.lastIndex,l.test(D[0])&&(M=!1,o.test(T)&&(T=`?NoLineTerminatorHere`)),yield{type:`MultiLineComment`,value:D[0],closed:D[1]!==void 0};continue}if(p.lastIndex=w,D=p.exec(y)){w=p.lastIndex,M=!1,yield{type:`SingleLineComment`,value:D[0]};continue}S=String.fromCodePoint(y.codePointAt(w)),w+=S.length,T=S,M=!1,yield{type:O.tag.startsWith(`JSX`)?`JSXInvalid`:`Invalid`,value:S}}},gP}function ul(e){return String(e)}function dl(e=!1){let t=typeof process<`u`?process:void 0,n=t?.env||{},r=t?.argv||[];return!(`NO_COLOR`in n||r.includes(`--no-color`))&&(`FORCE_COLOR`in n||r.includes(`--color`)||t?.platform===`win32`||e&&n.TERM!==`dumb`||`CI`in n)||typeof window<`u`&&!!window.chrome}function fl(e=!1){let t=dl(e),n=(e,t,n,r)=>{let i=``,a=0;do i+=e.substring(a,r)+n,a=r+t.length,r=e.indexOf(t,a);while(~r);return i+e.substring(a)},r=(e,t,r=e)=>{let i=i=>{let a=String(i),o=a.indexOf(t,e.length);return~o?e+n(a,t,r,o)+t:e+a+t};return i.open=e,i.close=t,i},i={isColorSupported:t},a=e=>`\x1B[${e}m`;for(let[e,n]of yP)i[e]=t?r(a(n[0]),a(n[1]),n[2]):ul;return i}function pl(e,t){if(!e)throw Error(t)}function ml(e,t){return typeof t===e}function hl(e){return e instanceof Promise}function gl(e,t,n){Object.defineProperty(e,t,n)}function _l(e,t,n){gl(e,t,{value:n,configurable:!0,writable:!0})}function vl(e){pl(ml(`function`,e)||ml(`undefined`,e),`cannot spy on a non-function value`);let t=function(...e){let n=TP(t);n.called=!0,n.callCount++,n.calls.push(e);let r=n.next.shift();if(r){n.results.push(r);let[e,t]=r;if(e===`ok`)return t;throw t}let i,a=`ok`,o=n.results.length;if(n.impl)try{i=new.target?Reflect.construct(n.impl,e,new.target):n.impl.apply(this,e),a=`ok`}catch(e){throw i=e,a=`error`,n.results.push([a,e]),e}let s=[a,i];return hl(i)&&i.then(e=>n.resolves[o]=[`ok`,e],e=>n.resolves[o]=[`error`,e]),n.results.push(s),i};_l(t,`_isMockFunction`,!0),_l(t,`length`,e?e.length:0),_l(t,`name`,e&&e.name||`spy`);let n=TP(t);return n.reset(),n.impl=e,t}function yl(e){return!!e&&e._isMockFunction===!0}function bl(e,t,n){pl(!ml(`undefined`,e),`spyOn could not find an object to spy upon`),pl(ml(`object`,e)||ml(`function`,e),`cannot spyOn on a primitive value`);let[r,i]=(()=>{if(!ml(`object`,t))return[t,`value`];if(`getter`in t&&`setter`in t)throw Error(`cannot spy on both getter and setter`);if(`getter`in t)return[t.getter,`get`];if(`setter`in t)return[t.setter,`set`];throw Error(`specify getter or setter to spy on`)})(),[a,o]=EP(e,r)||[];pl(o||r in e,`${String(r)} does not exist`);let s=!1;i===`value`&&o&&!o.value&&o.get&&(i=`get`,s=!0,n=o.get());let c;c=o?o[i]:i===`value`?e[r]:()=>e[r],c&&Cl(c)&&(c=c[xP].getOriginal());let l=t=>{let{value:n,...a}=o||{configurable:!0,writable:!0};i!==`value`&&delete a.writable,a[i]=t,gl(e,r,a)},u=()=>{a===e?o&&!c?gl(e,r,o):l(c):Reflect.deleteProperty(e,r)};n||=c;let d=Sl(vl(n),n);i===`value`&&DP(d,c);let f=d[xP];return _l(f,`restore`,u),_l(f,`getOriginal`,()=>s?c():c),_l(f,`willCall`,e=>(f.impl=e,d)),l(s?()=>(DP(d,n),d):d),SP.add(d),d}function xl(e){let t=new Set,n={};for(;e&&e!==Object.prototype&&e!==Function.prototype;){let r=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let i of r)n[i]||OP.has(i)||(t.add(i),n[i]=Object.getOwnPropertyDescriptor(e,i));e=Object.getPrototypeOf(e)}return{properties:t,descriptors:n}}function Sl(e,t){if(!t||xP in t)return e;let{properties:n,descriptors:r}=xl(t);for(let t of n){let n=r[t];EP(e,t)||gl(e,t,n)}return e}function Cl(e){return yl(e)&&`getOriginal`in e[xP]}function wl(e){return typeof e==`function`&&`_isMockFunction`in e&&e._isMockFunction}function Tl(e,t,n){let r=n?{[{get:`getter`,set:`setter`}[n]]:t}:t,i,a=Ol(e,t),o=a&&a[n||`value`];wl(o)&&(i=o.mock._state());try{let t=El(bl(e,r));return i&&t.mock._state(i),t}catch(t){throw t instanceof TypeError&&Symbol.toStringTag&&e[Symbol.toStringTag]===`Module`&&(t.message.includes(`Cannot redefine property`)||t.message.includes(`Cannot replace module namespace`)||t.message.includes(`can't redefine non-configurable property`))?TypeError(`Cannot spy on export "${String(r)}". Module namespace is not configurable in ESM. See: https://vitest.dev/guide/browser/#limitations`,{cause:t}):t}}function El(e){let t=e,n,r=[],i=!1,a=[],o=[],s=[],c=TP(e),l={get calls(){return c.calls},get contexts(){return o},get instances(){return a},get invocationCallOrder(){return s},get results(){return c.results.map(([e,t])=>({type:e===`error`?`throw`:`return`,value:t}))},get settledResults(){return c.resolves.map(([e,t])=>({type:e===`error`?`rejected`:`fulfilled`,value:t}))},get lastCall(){return c.calls[c.calls.length-1]},_state(e){return e&&(n=e.implementation,r=e.onceImplementations,i=e.implementationChangedTemporarily),{implementation:n,onceImplementations:r,implementationChangedTemporarily:i}}};function u(...e){return a.push(this),o.push(this),s.push(++AP),(i?n:r.shift()||n||c.getOriginal()||(()=>{})).apply(this,e)}let d=t.name;t.getMockName=()=>d||`vi.fn()`,t.mockName=e=>(d=e,t),t.mockClear=()=>(c.reset(),a=[],o=[],s=[],t),t.mockReset=()=>(t.mockClear(),n=void 0,r=[],t),t.mockRestore=()=>(t.mockReset(),c.restore(),t),Symbol.dispose&&(t[Symbol.dispose]=()=>t.mockRestore()),t.getMockImplementation=()=>i?n:r.at(0)||n,t.mockImplementation=e=>(n=e,c.willCall(u),t),t.mockImplementationOnce=e=>(r.push(e),t);function f(e,r){let a=n;n=e,c.willCall(u),i=!0;let o=()=>{n=a,i=!1},s=r();return typeof s==`object`&&s&&typeof s.then==`function`?s.then(()=>(o(),t)):(o(),t)}return t.withImplementation=f,t.mockReturnThis=()=>t.mockImplementation(function(){return this}),t.mockReturnValue=e=>t.mockImplementation(()=>e),t.mockReturnValueOnce=e=>t.mockImplementationOnce(()=>e),t.mockResolvedValue=e=>t.mockImplementation(()=>Promise.resolve(e)),t.mockResolvedValueOnce=e=>t.mockImplementationOnce(()=>Promise.resolve(e)),t.mockRejectedValue=e=>t.mockImplementation(()=>Promise.reject(e)),t.mockRejectedValueOnce=e=>t.mockImplementationOnce(()=>Promise.reject(e)),Object.defineProperty(t,`mock`,{get:()=>l}),c.willCall(u),kP.add(t),t}function Dl(e){let t=El(bl({spy:e||function(){}},`spy`));return e&&t.mockImplementation(e),t}function Ol(e,t){let n=Object.getOwnPropertyDescriptor(e,t);if(n)return n;let r=Object.getPrototypeOf(e);for(;r!==null;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Object.getPrototypeOf(r)}}function kl(e,t=`received`,n=`expected`,r={}){let{comment:i=``,isDirectExpectCall:a=!1,isNot:o=!1,promise:s=``,secondArgument:c=``,expectedColor:l=IP,receivedColor:u=LP,secondArgumentColor:d=IP}=r,f=``,p=`expect`;return!a&&t!==``&&(f+=BP(`${p}(`)+u(t),p=`)`),s!==``&&(f+=BP(`${p}.`)+s,p=``),o&&(f+=`${BP(`${p}.`)}not`,p=``),e.includes(`.`)?p+=e:(f+=BP(`${p}.`)+e,p=``),n===``?p+=`()`:(f+=BP(`${p}(`)+l(n),c&&(f+=BP(`, `)+d(c)),p=`)`),i!==``&&(p+=` // ${i}`),p!==``&&(f+=BP(p)),f}function Al(e){return e.replace(/\s+$/gm,e=>VP.repeat(e.length))}function jl(e){return LP(Al(zn(e)))}function Ml(e){return IP(Al(zn(e)))}function Nl(){return{EXPECTED_COLOR:IP,RECEIVED_COLOR:LP,INVERTED_COLOR:RP,BOLD_WEIGHT:zP,DIM_COLOR:BP,diff:Pr,matcherHint:kl,printReceived:jl,printExpected:Ml,printDiffOrStringify:Ur,printWithType:Pl}}function Pl(e,t,n){let r=Kn(t);return(r!==`null`&&r!==`undefined`?`${e} has type: ${r}
|
||
`:``)+`${e} has value: ${n(t)}`}function Fl(){return globalThis[MP].customEqualityTesters}function Il(e,t,n,r){return n||=[],zl(e,t,[],[],n,r?Ul:Hl)}function Ll(e){return!!e&&typeof e==`object`&&`asymmetricMatch`in e&&Wl(`Function`,e.asymmetricMatch)}function Rl(e,t){let n=Ll(e),r=Ll(t);if(!(n&&r)){if(n)return e.asymmetricMatch(t);if(r)return t.asymmetricMatch(e)}}function zl(e,t,n,r,i,a){let o=!0,s=Rl(e,t);if(s!==void 0)return s;let c={equals:Il};for(let n=0;n<i.length;n++){let r=i[n].call(c,e,t,i);if(r!==void 0)return r}if(typeof URL==`function`&&e instanceof URL&&t instanceof URL)return e.href===t.href;if(Object.is(e,t))return!0;if(e===null||t===null)return e===t;let l=Object.prototype.toString.call(e);if(l!==Object.prototype.toString.call(t))return!1;switch(l){case`[object Boolean]`:case`[object String]`:case`[object Number]`:return typeof e==typeof t?typeof e!=`object`&&typeof t!=`object`?Object.is(e,t):Object.is(e.valueOf(),t.valueOf()):!1;case`[object Date]`:{let n=+e,r=+t;return n===r||Number.isNaN(n)&&Number.isNaN(r)}case`[object RegExp]`:return e.source===t.source&&e.flags===t.flags;case`[object Temporal.Instant]`:case`[object Temporal.ZonedDateTime]`:case`[object Temporal.PlainDateTime]`:case`[object Temporal.PlainDate]`:case`[object Temporal.PlainTime]`:case`[object Temporal.PlainYearMonth]`:case`[object Temporal.PlainMonthDay]`:return e.equals(t);case`[object Temporal.Duration]`:return e.toString()===t.toString()}if(typeof e!=`object`||typeof t!=`object`)return!1;if(Gl(e)&&Gl(t))return e.isEqualNode(t);let u=n.length;for(;u--;){if(n[u]===e)return r[u]===t;if(r[u]===t)return!1}if(n.push(e),r.push(t),l===`[object Array]`&&e.length!==t.length)return!1;if(e instanceof Error&&t instanceof Error)try{return Bl(e,t,n,r,i,a)}finally{n.pop(),r.pop()}let d=Vl(e,a),f,p=d.length;if(Vl(t,a).length!==p)return!1;for(;p--;)if(f=d[p],o=a(t,f)&&zl(e[f],t[f],n,r,i,a),!o)return!1;return n.pop(),r.pop(),o}function Bl(e,t,n,r,i,a){let o=Object.getPrototypeOf(e)===Object.getPrototypeOf(t)&&e.name===t.name&&e.message===t.message;return typeof t.cause<`u`&&o&&(o=zl(e.cause,t.cause,n,r,i,a)),e instanceof AggregateError&&t instanceof AggregateError&&o&&(o=zl(e.errors,t.errors,n,r,i,a)),o&&=zl({...e},{...t},n,r,i,a),o}function Vl(e,t){let n=[];for(let r in e)t(e,r)&&n.push(r);return n.concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable))}function Hl(e,t){return Ul(e,t)&&e[t]!==void 0}function Ul(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Wl(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}function Gl(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`&&`nodeName`in e&&typeof e.nodeName==`string`&&`isEqualNode`in e&&typeof e.isEqualNode==`function`}function Kl(e){return!!(e&&e[HP]&&!e[GP])}function ql(e){return!!(e&&e[UP]&&!e[GP])}function Jl(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Yl(e){return!!(e&&Jl(e)&&e[WP])}function Xl(e){return!!(e&&Jl(e)&&e[HP]&&e[GP])}function Zl(e){return!!(e&&Jl(e)&&e[UP]&&e[GP])}function Ql(e){return!!(e&&Jl(e)&&e[KP])}function $l(e){return!!(e!=null&&e[qP])}function eu(e,t,n=[],r=[],i=[]){if(typeof e!=`object`||typeof t!=`object`||Array.isArray(e)||Array.isArray(t)||!$l(e)||!$l(t))return;if(e.constructor!==t.constructor)return!1;let a=r.length;for(;a--;)if(r[a]===e)return i[a]===t;r.push(e),i.push(t);let o=[...n.filter(e=>e!==eu),s];function s(e,t){return eu(e,t,[...n],[...r],[...i])}if(e.size!==void 0){if(e.size!==t.size)return!1;if(Wl(`Set`,e)||ql(e)){let n=!0;for(let r of e)if(!t.has(r)){let e=!1;for(let n of t)Il(r,n,o)===!0&&(e=!0);if(e===!1){n=!1;break}}return r.pop(),i.pop(),n}else if(Wl(`Map`,e)||Kl(e)){let n=!0;for(let r of e)if(!t.has(r[0])||!Il(r[1],t.get(r[0]),o)){let e=!1;for(let n of t){let t=Il(r[0],n[0],o),i=!1;t===!0&&(i=Il(r[1],n[1],o)),i===!0&&(e=!0)}if(e===!1){n=!1;break}}return r.pop(),i.pop(),n}}let c=t[qP]();for(let t of e){let e=c.next();if(e.done||!Il(t,e.value,o))return!1}return!c.next().done||!Yl(e)&&!Xl(e)&&!Zl(e)&&!Ql(e)&&!Il(Object.entries(e),Object.entries(t),o)?!1:(r.pop(),i.pop(),!0)}function tu(e,t){return!e||typeof e!=`object`||e===Object.prototype?!1:Object.prototype.hasOwnProperty.call(e,t)||tu(Object.getPrototypeOf(e),t)}function nu(e){return Wn(e)&&!(e instanceof Error)&&!Array.isArray(e)&&!(e instanceof Date)}function ru(e,t,n=[]){let r=n.filter(e=>e!==ru),i=(e=new WeakMap)=>(t,n)=>{if(nu(n))return Object.keys(n).every(a=>{if(n[a]!=null&&typeof n[a]==`object`){if(e.has(n[a]))return Il(t[a],n[a],r);e.set(n[a],!0)}let o=t!=null&&tu(t,a)&&Il(t[a],n[a],[...r,i(e)]);return e.delete(n[a]),o})};return i()(e,t)}function iu(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return!1}function au(e,t){let n=e,r=t;if(!(e instanceof DataView&&t instanceof DataView)){if(!(e instanceof ArrayBuffer)||!(t instanceof ArrayBuffer))return;try{n=new DataView(e),r=new DataView(t)}catch{return}}if(n.byteLength!==r.byteLength)return!1;for(let e=0;e<n.byteLength;e++)if(n.getUint8(e)!==r.getUint8(e))return!1;return!0}function ou(e,t,n=[]){if(!Array.isArray(e)||!Array.isArray(t))return;let r=Object.keys(e),i=Object.keys(t);return Il(e,t,n.filter(e=>e!==ou),!0)&&Il(r,i)}function su(e,t=`#{this}`,n=`#{exp}`){let r=`expected ${t} to be ${n} // Object.is equality`;return[`toStrictEqual`,`toEqual`].includes(e)?`${r}
|
||
|
||
If it should pass with deep equality, replace "toBe" with "${e}"
|
||
|
||
Expected: ${t}
|
||
Received: serializes to the same string
|
||
`:r}function cu(e,t){return`${t} ${e}${t===1?``:`s`}`}function lu(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t)?.enumerable)]}function uu(e,t,n){let r=0,i=(e=new WeakMap)=>(t,a)=>{if(Array.isArray(t)){if(Array.isArray(a)&&a.length===t.length)return a.map((n,r)=>i(e)(t[r],n))}else{if(t instanceof Date)return t;if(Wn(t)&&Wn(a)){if(Il(t,a,[...n,eu,ru]))return a;let o={};e.set(t,o),typeof t.constructor==`function`&&typeof t.constructor.name==`string`&&Object.defineProperty(o,`constructor`,{enumerable:!1,value:t.constructor});for(let n of lu(t))tu(a,n)?o[n]=e.has(t[n])?e.get(t[n]):i(e)(t[n],a[n]):e.has(t[n])||(r+=1,Wn(t[n])&&(r+=lu(t[n]).length),i(e)(t[n],a[n]));if(lu(o).length>0)return o}}return t};return{subset:i()(e,t),stripped:r}}function du(e){return globalThis[jP].get(e)}function fu(e,t){let n=globalThis[jP],r=n.get(t)||{},i=Object.defineProperties(r,{...Object.getOwnPropertyDescriptors(r),...Object.getOwnPropertyDescriptors(e)});n.set(t,i)}function pu(e,t,n){let r=e.flag(t,`negate`)?`not.`:``,i=`${e.flag(t,`_name`)}(${n?`expected`:``})`,a=e.flag(t,`promise`);return`expect(actual)${a?`.${a}`:``}.${r}${i}`}function mu(e,t,n,r){let i=e;if(i&&t instanceof Promise){t=t.finally(()=>{if(!i.promises)return;let e=i.promises.indexOf(t);e!==-1&&i.promises.splice(e,1)}),i.promises||=[],i.promises.push(t);let e=!1;return i.onFinished??=[],i.onFinished.push(()=>{if(!e){let e=(globalThis.__vitest_worker__?.onFilterStackTrace||(e=>e||``))(r.stack);console.warn([`Promise returned by \`${n}\` was not awaited. `,`Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. `,`Please remember to await the assertion.
|
||
`,e].join(``))}}),{then(n,r){return e=!0,t.then(n,r)},catch(e){return t.catch(e)},finally(e){return t.finally(e)},[Symbol.toStringTag]:`Promise`}}return t}function hu(e,t){var n;e.result||={state:`fail`},e.result.state=`fail`,(n=e.result).errors||(n.errors=[]),e.result.errors.push(ti(t))}function gu(e,t,n){return function(...r){if(t!==`withTest`&&e.flag(this,`_name`,t),!e.flag(this,`soft`))return n.apply(this,r);let i=e.flag(this,`vitest-test`);if(!i)throw Error(`expect.soft() can only be used inside a test`);try{let e=n.apply(this,r);return e&&typeof e==`object`&&typeof e.then==`function`?e.then(Zn,e=>{hu(i,e)}):e}catch(e){hu(i,e)}}}function _u(e){let t=e%10,n=e%100;return t===1&&n!==11?`${e}st`:t===2&&n!==12?`${e}nd`:t===3&&n!==13?`${e}rd`:`${e}th`}function vu(e,t,n){return e.mock.calls.length&&(t+=bP.gray(`
|
||
|
||
Received:
|
||
|
||
${e.mock.calls.map((t,r)=>{let i=bP.bold(` ${_u(r+1)} ${e.getMockName()} call:
|
||
|
||
`);return n?i+=Pr(n,t,{omitAnnotationLines:!0}):i+=zn(t).split(`
|
||
`).map(e=>` ${e}`).join(`
|
||
`),i+=`
|
||
`,i}).join(`
|
||
`)}`)),t+=bP.gray(`
|
||
|
||
Number of calls: ${bP.bold(e.mock.calls.length)}
|
||
`),t}function yu(e,t,n,r){return t.length&&(n+=bP.gray(`
|
||
|
||
Received:
|
||
|
||
${t.map((t,n)=>{let i=bP.bold(` ${_u(n+1)} ${e.getMockName()} call return:
|
||
|
||
`);return r?i+=Pr(r,t.value,{omitAnnotationLines:!0}):i+=zn(t).split(`
|
||
`).map(e=>` ${e}`).join(`
|
||
`),i+=`
|
||
`,i}).join(`
|
||
`)}`)),n+=bP.gray(`
|
||
|
||
Number of calls: ${bP.bold(e.mock.calls.length)}
|
||
`),n}function bu(e,t){let n=e._obj,r=JM.flag(e,`negate`),i=JM.flag(e,`promise`)||``,a={...Nl(),diff:Pr,stringify:zn,iterableEquality:eu,subsetEquality:ru};return{state:{...du(t),customTesters:Fl(),isNot:r,utils:a,promise:i,equals:Il,suppressedErrors:[],soft:JM.flag(e,`soft`),poll:JM.flag(e,`poll`)},isNot:r,obj:n}}function xu(e,t,n){return(r,i)=>{Object.entries(n).forEach(([n,r])=>{function a(...e){let{state:n,isNot:i,obj:a}=bu(this,t),o=r.call(n,a,...e);if(o&&typeof o==`object`&&typeof o.then==`function`)return o.then(({pass:e,message:t,actual:n,expected:r})=>{if(e&&i||!e&&!i)throw new iF(t(),n,r)});let{pass:s,message:c,actual:l,expected:u}=o;if(s&&i||!s&&!i)throw new iF(c(),l,u)}let o=gu(i,n,a);i.addMethod(globalThis[MP].matchers,n,o),i.addMethod(e.Assertion.prototype,n,o);class s extends JP{constructor(e=!1,...t){super(t,e)}asymmetricMatch(e){let{pass:n}=r.call(this.getMatcherContext(t),e,...this.sample);return this.inverse?!n:n}toString(){return`${this.inverse?`not.`:``}${n}`}getExpectedType(){return`any`}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map(e=>zn(e)).join(`, `)}>`}}let c=(...e)=>new s(!1,...e);Object.defineProperty(t,n,{configurable:!0,enumerable:!0,value:c,writable:!0}),Object.defineProperty(t.not,n,{configurable:!0,enumerable:!0,value:(...e)=>new s(!0,...e),writable:!0}),Object.defineProperty(globalThis[PP],n,{configurable:!0,enumerable:!0,value:c,writable:!0})})}}function Su(){xo(aF),xo(rF),xo(nF);let e=((t,n)=>{let{assertionCalls:r}=du(e);return fu({assertionCalls:r+1,soft:!1},e),yo(t,n)});Object.assign(e,yo),e.getState=()=>du(e),e.setState=t=>fu(t,e),e.extend=t=>yo.extend(e,t),e.soft=(...t)=>{let n=e(...t);return e.setState({soft:!0}),n},e.extend(FP),e.unreachable=e=>{W.fail(`expected${e?` "${e}" `:` `}not to be reached`)};function t(n){let r=()=>Error(`expected number of assertions to be ${n}, but got ${e.getState().assertionCalls}`);`captureStackTrace`in Error&&typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(r(),t),e.setState({expectedAssertionsNumber:n,expectedAssertionsNumberErrorGen:r})}function n(){let t=Error(`expected any number of assertion, but got none`);`captureStackTrace`in Error&&typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(t,n),e.setState({isExpectingAssertions:!0,isExpectingAssertionsError:t})}return fu({assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null},e),JM.addMethod(e,`assertions`,t),JM.addMethod(e,`hasAssertions`,n),e.extend(FN),e}function Cu(e,t,n){Object.defineProperty(e,t,n)}function wu(e){return dF.add(e),()=>void dF.delete(e)}function Tu(e){return Eu(e?Dl(e):Dl())}function Eu(e){let t=Du(e),n=t.mockImplementation.bind(null);return t.mockImplementation=e=>Du(n(e)),t}function Du(e){let t=uF(e),n=t.impl;return t.willCall(function(...t){return dF.forEach(n=>n(e,t)),n?.apply(this,t)}),e}function Ou(){kP.forEach(e=>e.mockClear())}function ku(){kP.forEach(e=>e.mockReset())}function Au(){kP.forEach(e=>e.mockRestore())}function ju(e,t={}){return e}function Mu(e){return typeof e==`function`||hF.call(e)===`[object Function]`}function Nu(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}function Pu(e){var t=Nu(e);return Math.min(Math.max(t,0),gF)}function Fu(e,t){var n=Array,r=Object(e);if(e==null)throw TypeError(`Array.from requires an array-like object - not null or undefined`);if(typeof t<`u`&&!Mu(t))throw TypeError(`Array.from: when provided, the second argument must be a function`);for(var i=Pu(r.length),a=Mu(n)?Object(new n(i)):Array(i),o=0,s;o<i;)s=r[o],t?a[o]=t(s,o):a[o]=s,o+=1;return a.length=i,a}function Iu(e){"@babel/helpers - typeof";return Iu=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Iu(e)}function Lu(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Ru(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Vu(r.key),r)}}function zu(e,t,n){return t&&Ru(e.prototype,t),n&&Ru(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function Bu(e,t,n){return t=Vu(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vu(e){var t=Hu(e,`string`);return Iu(t)===`symbol`?t:String(t)}function Hu(e,t){if(Iu(e)!==`object`||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Iu(r)!==`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Uu(e){return e.localName??e.tagName.toLowerCase()}function Wu(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(n){var r;return e.hasAttribute(n)&&!((r=bF[t])!=null&&r.has(n))})}function Gu(e,t){return Wu(e,t)}function Ku(e){var t=Ju(e);if(t===null||t===`presentation`){var n=qu(e);if(t!==`presentation`||Gu(e,n||``))return n}return t}function qu(e){var t=yF[Uu(e)];if(t!==void 0)return t;switch(Uu(e)){case`a`:case`area`:case`link`:if(e.hasAttribute(`href`))return`link`;break;case`img`:return e.getAttribute(`alt`)===``&&!Gu(e,`img`)?`presentation`:`img`;case`input`:var n=e.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 Ju(e){var t=e.getAttribute(`role`);if(t!==null){var n=t.trim().split(` `)[0];if(n.length>0)return n}return null}function Yu(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function Xu(e){return Yu(e)&&Uu(e)===`caption`}function Zu(e){return Yu(e)&&Uu(e)===`input`}function Qu(e){return Yu(e)&&Uu(e)===`optgroup`}function $u(e){return Yu(e)&&Uu(e)===`select`}function ed(e){return Yu(e)&&Uu(e)===`table`}function td(e){return Yu(e)&&Uu(e)===`textarea`}function nd(e){var t=(e.ownerDocument===null?e:e.ownerDocument).defaultView;if(t===null)throw TypeError(`no window available`);return t}function rd(e){return Yu(e)&&Uu(e)===`fieldset`}function id(e){return Yu(e)&&Uu(e)===`legend`}function ad(e){return Yu(e)&&Uu(e)===`slot`}function od(e){return Yu(e)&&e.ownerSVGElement!==void 0}function sd(e){return Yu(e)&&Uu(e)===`svg`}function cd(e){return od(e)&&Uu(e)===`title`}function ld(e,t){if(Yu(e)&&e.hasAttribute(t)){var n=e.getAttribute(t).split(` `),r=e.getRootNode?e.getRootNode():e.ownerDocument;return n.map(function(e){return r.getElementById(e)}).filter(function(e){return e!==null})}return[]}function ud(e,t){return Yu(e)?t.indexOf(Ku(e))!==-1:!1}function dd(e){return e.trim().replace(/\s\s+/g,` `)}function fd(e,t){if(!Yu(e))return!1;if(e.hasAttribute(`hidden`)||e.getAttribute(`aria-hidden`)===`true`)return!0;var n=t(e);return n.getPropertyValue(`display`)===`none`||n.getPropertyValue(`visibility`)===`hidden`}function pd(e){return ud(e,[`button`,`combobox`,`listbox`,`textbox`])||md(e,`range`)}function md(e,t){if(!Yu(e))return!1;switch(t){case`range`:return ud(e,[`meter`,`progressbar`,`scrollbar`,`slider`,`spinbutton`]);default:throw TypeError(`No knowledge about abstract role '${t}'. This is likely a bug :(`)}}function hd(e,t){var n=Fu(e.querySelectorAll(t));return ld(e,`aria-owns`).forEach(function(e){n.push.apply(n,Fu(e.querySelectorAll(t)))}),n}function gd(e){return $u(e)?e.selectedOptions||hd(e,`[selected]`):hd(e,`[aria-selected="true"]`)}function _d(e){return ud(e,[`none`,`presentation`])}function vd(e){return Xu(e)}function yd(e){return ud(e,[`button`,`cell`,`checkbox`,`columnheader`,`gridcell`,`heading`,`label`,`legend`,`link`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`row`,`rowheader`,`switch`,`tab`,`tooltip`,`treeitem`])}function bd(e){return!1}function xd(e){return Zu(e)||td(e)?e.value:e.textContent||``}function Sd(e){var t=e.getPropertyValue(`content`);return/^["'].*["']$/.test(t)?t.slice(1,-1):``}function Cd(e){var t=Uu(e);return t===`button`||t===`input`&&e.getAttribute(`type`)!==`hidden`||t===`meter`||t===`output`||t===`progress`||t===`select`||t===`textarea`}function wd(e){if(Cd(e))return e;var t=null;return e.childNodes.forEach(function(e){if(t===null&&Yu(e)){var n=wd(e);n!==null&&(t=n)}}),t}function Td(e){if(e.control!==void 0)return e.control;var t=e.getAttribute(`for`);return t===null?wd(e):e.ownerDocument.getElementById(t)}function Ed(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return Fu(t);if(!Cd(e))return null;var n=e.ownerDocument;return Fu(n.querySelectorAll(`label`)).filter(function(t){return Td(t)===e})}function Dd(e){var t=e.assignedNodes();return t.length===0?Fu(e.childNodes):t}function Od(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new vF,r=nd(e),i=t.compute,a=i===void 0?`name`:i,o=t.computedStyleSupportsPseudoElements,s=o===void 0?t.getComputedStyle!==void 0:o,c=t.getComputedStyle,l=c===void 0?r.getComputedStyle.bind(r):c,u=t.hidden,d=u===void 0?!1:u;function f(e,t){var n=``;if(Yu(e)&&s&&(n=`${Sd(l(e,`::before`))} ${n}`),(ad(e)?Dd(e):Fu(e.childNodes).concat(ld(e,`aria-owns`))).forEach(function(e){var r=g(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),i=(Yu(e)?l(e).getPropertyValue(`display`):`inline`)===`inline`?``:` `;n+=`${i}${r}${i}`}),Yu(e)&&s){var r=Sd(l(e,`::after`));n=`${n} ${r}`}return n.trim()}function p(e,t){var r=e.getAttributeNode(t);return r!==null&&!n.has(r)&&r.value.trim()!==``?(n.add(r),r.value):null}function m(e){return Yu(e)?p(e,`title`):null}function h(e){if(!Yu(e))return null;if(rd(e)){n.add(e);for(var t=Fu(e.childNodes),r=0;r<t.length;r+=1){var i=t[r];if(id(i))return g(i,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(ed(e)){n.add(e);for(var a=Fu(e.childNodes),o=0;o<a.length;o+=1){var s=a[o];if(Xu(s))return g(s,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(sd(e)){n.add(e);for(var c=Fu(e.childNodes),l=0;l<c.length;l+=1){var u=c[l];if(cd(u))return u.textContent}return null}else if(Uu(e)===`img`||Uu(e)===`area`){var d=p(e,`alt`);if(d!==null)return d}else if(Qu(e)){var m=p(e,`label`);if(m!==null)return m}if(Zu(e)&&(e.type===`button`||e.type===`submit`||e.type===`reset`)){var h=p(e,`value`);if(h!==null)return h;if(e.type===`submit`)return`Submit`;if(e.type===`reset`)return`Reset`}var _=Ed(e);if(_!==null&&_.length!==0)return n.add(e),Fu(_).map(function(e){return g(e,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(e){return e.length>0}).join(` `);if(Zu(e)&&e.type===`image`){var v=p(e,`alt`);if(v!==null)return v;var y=p(e,`title`);return y===null?`Submit Query`:y}if(ud(e,[`button`])){var b=f(e,{isEmbeddedInLabel:!1,isReferenced:!1});if(b!==``)return b}return null}function g(e,t){if(n.has(e))return``;if(!d&&fd(e,l)&&!t.isReferenced)return n.add(e),``;var r=Yu(e)?e.getAttributeNode(`aria-labelledby`):null,i=r!==null&&!n.has(r)?ld(e,`aria-labelledby`):[];if(a===`name`&&!t.isReferenced&&i.length>0)return n.add(r),i.map(function(e){return g(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(` `);var o=t.recursion&&pd(e)&&a===`name`;if(!o){var s=(Yu(e)&&e.getAttribute(`aria-label`)||``).trim();if(s!==``&&a===`name`)return n.add(e),s;if(!_d(e)){var c=h(e);if(c!==null)return n.add(e),c}}if(ud(e,[`menu`]))return n.add(e),``;if(o||t.isEmbeddedInLabel||t.isReferenced){if(ud(e,[`combobox`,`listbox`])){n.add(e);var u=gd(e);return u.length===0?Zu(e)?e.value:``:Fu(u).map(function(e){return g(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(` `)}if(md(e,`range`))return n.add(e),e.hasAttribute(`aria-valuetext`)?e.getAttribute(`aria-valuetext`):e.hasAttribute(`aria-valuenow`)?e.getAttribute(`aria-valuenow`):e.getAttribute(`value`)||``;if(ud(e,[`textbox`]))return n.add(e),xd(e)}if(yd(e)||Yu(e)&&t.isReferenced||vd(e)||bd(e)){var p=f(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1});if(p!==``)return n.add(e),p}if(e.nodeType===e.TEXT_NODE)return n.add(e),e.textContent||``;if(t.recursion)return n.add(e),f(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1});var _=m(e);return _===null?(n.add(e),``):(n.add(e),_)}return dd(g(e,{isEmbeddedInLabel:!1,isReferenced:a===`description`,recursion:!1}))}function kd(e){"@babel/helpers - typeof";return kd=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},kd(e)}function Ad(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ad(Object(n),!0).forEach(function(t){Md(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ad(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Md(e,t,n){return t=Nd(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nd(e){var t=Pd(e,`string`);return kd(t)===`symbol`?t:String(t)}function Pd(e,t){if(kd(e)!==`object`||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(kd(r)!==`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Fd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=ld(e,`aria-describedby`).map(function(e){return Od(e,jd(jd({},t),{},{compute:`description`}))}).join(` `);if(n===``){var r=e.getAttribute(`title`);n=r===null?``:r}return n}function Id(e){return ud(e,[`caption`,`code`,`deletion`,`emphasis`,`generic`,`insertion`,`paragraph`,`presentation`,`strong`,`subscript`,`superscript`])}function Ld(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Id(e)?``:Od(e,t)}function Rd(e){return e.replace(/</g,`<`).replace(/>/g,`>`)}function zd(e){return e.nodeType===jF}function Bd(e){return e.nodeType===MF}function Vd(e){return e.nodeType===NF}function Hd(e){return{test:e=>{var t;return((e==null||(t=e.constructor)==null?void 0:t.name)||FF(e))&&IF(e)},serialize:(t,n,r,i,a,o)=>{if(zd(t))return EF(t.data,n);if(Bd(t))return DF(t.data,n);let s=Vd(t)?`DocumentFragment`:t.tagName.toLowerCase();return++i>n.maxDepth?kF(s,n):OF(s,CF(Vd(t)?[]:Array.from(t.attributes).map(e=>e.name).sort(),Vd(t)?{}:Array.from(t.attributes).reduce((e,t)=>(e[t.name]=t.value,e),{}),n,r+n.indent,i,a,o),TF(Array.prototype.slice.call(t.childNodes||t.children).filter(e),n,r+n.indent,i,a,o),n,r)}}}function Ud(e){let t=e.indexOf(`(`)+1,n=e.indexOf(`)`),r=e.slice(t,n),i=r.split(`:`),[a,o,s]=[i[0],parseInt(i[1],10),parseInt(i[2],10)],c=``;try{c=RF(a,`utf-8`)}catch{return``}let l=zF(c,{start:{line:o,column:s}},{highlightCode:!0,linesBelow:0});return LF.dim(r)+`
|
||
`+l+`
|
||
`}function Wd(){return!RF||!zF?``:Ud(Error().stack.split(`
|
||
`).slice(1).find(e=>!e.includes(`node_modules/`)))}function Gd(){return typeof jest<`u`&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,`clock`):!1}function Kd(){if(typeof window>`u`)throw Error(`Could not find default container`);return window.document}function qd(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?Error(`It looks like the window object is not available for the provided node.`):e.then instanceof Function?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)?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`?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..., `?"):Error(`The given node is not an Element, the node type is: `+typeof e+`.`)}function Jd(e){if(!e||typeof e.querySelector!=`function`||typeof e.querySelectorAll!=`function`)throw TypeError(`Expected container to be an Element, a Document or a DocumentFragment but got `+t(e)+`.`);function t(e){return typeof e==`object`?e===null?`null`:e.constructor.name:typeof e}}function Yd(e){return e.nodeType!==WF&&(e.nodeType!==UF||!e.matches($d().defaultIgnore))}function Xd(e,t,n){if(n===void 0&&(n={}),e||=Kd().body,typeof t!=`number`&&(t=typeof process<`u`&&{}.DEBUG_PRINT_LIMIT||7e3),t===0)return``;e.documentElement&&(e=e.documentElement);let r=typeof e;if(r===`object`?r=e.constructor.name:e={},!(`outerHTML`in e))throw TypeError(`Expected an element or document but got `+r);let{filterNode:i=Yd,...a}=n,o=mF.format(e,{plugins:[Hd(i),HF],printFunctionName:!1,highlight:VF(),...a});return t!==void 0&&e.outerHTML.length>t?o.slice(0,t)+`...`:o}function Zd(e){try{return KF._disableExpensiveErrorDiagnostics=!0,e()}finally{KF._disableExpensiveErrorDiagnostics=!1}}function Qd(e){typeof e==`function`&&(e=e(KF)),KF={...KF,...e}}function $d(){return KF}function ef(e){return qF.includes(e.nodeName.toLowerCase())?``:e.nodeType===BF?e.textContent:Array.from(e.childNodes).map(e=>ef(e)).join(``)}function tf(e){let t;return t=e.tagName.toLowerCase()===`label`?ef(e):e.value||e.textContent,t}function nf(e){if(e.labels!==void 0)return e.labels??[];if(!rf(e))return[];let t=e.ownerDocument.querySelectorAll(`label`);return Array.from(t).filter(t=>t.control===e)}function rf(e){return/BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName)||e.tagName===`INPUT`&&e.getAttribute(`type`)!==`hidden`}function af(e,t,n){let{selector:r=`*`}=n===void 0?{}:n,i=t.getAttribute(`aria-labelledby`),a=i?i.split(` `):[];return a.length?a.map(t=>{let n=e.querySelector(`[id="`+t+`"]`);return n?{content:tf(n),formControl:null}:{content:``,formControl:null}}):Array.from(nf(t)).map(e=>({content:tf(e),formControl:Array.from(e.querySelectorAll(`button, input, meter, output, progress, select, textarea`)).filter(e=>e.matches(r))[0]}))}function of(e){if(e==null)throw Error(`It looks like `+e+` was passed instead of a matcher. Did you do something like getByText(`+e+`)?`)}function sf(e,t,n,r){if(typeof e!=`string`)return!1;of(n);let i=r(e);return typeof n==`string`||typeof n==`number`?i.toLowerCase().includes(n.toString().toLowerCase()):typeof n==`function`?n(i,t):df(n,i)}function cf(e,t,n,r){if(typeof e!=`string`)return!1;of(n);let i=r(e);return n instanceof Function?n(i,t):n instanceof RegExp?df(n,i):i===String(n)}function lf(e){let{trim:t=!0,collapseWhitespace:n=!0}=e===void 0?{}:e;return e=>{let r=e;return r=t?r.trim():r,r=n?r.replace(/\s+/g,` `):r,r}}function uf(e){let{trim:t,collapseWhitespace:n,normalizer:r}=e;if(!r)return lf({trim:t,collapseWhitespace:n});if(typeof t<`u`||typeof n<`u`)throw 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 r}function df(e,t){let n=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),n}function ff(e){return e.matches(`input[type=submit], input[type=button], input[type=reset]`)?e.value:Array.from(e.childNodes).filter(e=>e.nodeType===BF&&!!e.textContent).map(e=>e.textContent).join(``)}function pf(e){return e.hidden===!0||e.getAttribute(`aria-hidden`)===`true`||e.ownerDocument.defaultView.getComputedStyle(e).display===`none`}function mf(e,t){t===void 0&&(t={});let{isSubtreeInaccessible:n=pf}=t;if(e.ownerDocument.defaultView.getComputedStyle(e).visibility===`hidden`)return!0;let r=e;for(;r;){if(n(r))return!0;r=r.parentElement}return!1}function hf(e){for(let{match:t,roles:n}of JF)if(t(e))return[...n];return[]}function gf(e){function t(e){let{name:t,attributes:n}=e;return``+t+n.map(e=>{let{name:t,value:n,constraints:r=[]}=e,i=r.indexOf(`undefined`)!==-1,a=r.indexOf(`set`)!==-1;return typeof n<`u`?`[`+t+`="`+n+`"]`:i?`:not([`+t+`])`:a?`[`+t+`]:not([`+t+`=""])`:`[`+t+`]`}).join(``)}function n(e){let{attributes:t=[]}=e;return t.length}function r(e,t){let{specificity:n}=e,{specificity:r}=t;return r-n}function i(e){let{attributes:n=[]}=e,r=n.findIndex(e=>e.value&&e.name===`type`&&e.value===`text`);r>=0&&(n=[...n.slice(0,r),...n.slice(r+1)]);let i=t({...e,attributes:n});return e=>r>=0&&e.type!==`text`?!1:e.matches(i)}let a=[];for(let[t,r]of e.entries())a=[...a,{match:i(t),roles:Array.from(r),specificity:n(t)}];return a.sort(r)}function _f(e,t){let{hidden:n=!1}=t===void 0?{}:t;function r(e){return[e,...Array.from(e.children).reduce((e,t)=>[...e,...r(t)],[])]}return r(e).filter(e=>n===!1?mf(e)===!1:!0).reduce((e,t)=>{let n=[];return n=t.hasAttribute(`role`)?t.getAttribute(`role`).split(` `).slice(0,1):hf(t),n.reduce((e,n)=>Array.isArray(e[n])?{...e,[n]:[...e[n],t]}:{...e,[n]:[t]},e)},{})}function vf(e,t){let{hidden:n,includeDescription:r}=t,i=_f(e,{hidden:n});return Object.entries(i).filter(e=>{let[t]=e;return t!==`generic`}).map(e=>{let[t,n]=e,i=`-`.repeat(50),a=n.map(e=>{let t=`Name "`+Ld(e,{computedStyleSupportsPseudoElements:$d().computedStyleSupportsPseudoElements})+`":
|
||
`,n=Xd(e.cloneNode(!1));if(r){let r=`Description "`+Fd(e,{computedStyleSupportsPseudoElements:$d().computedStyleSupportsPseudoElements})+`":
|
||
`;return``+t+r+n}return``+t+n}).join(`
|
||
|
||
`);return t+`:
|
||
|
||
`+a+`
|
||
|
||
`+i}).join(`
|
||
`)}function yf(e){return e.tagName===`OPTION`?e.selected:Tf(e,`aria-selected`)}function bf(e){return e.getAttribute(`aria-busy`)===`true`}function xf(e){if(!(`indeterminate`in e&&e.indeterminate))return`checked`in e?e.checked:Tf(e,`aria-checked`)}function Sf(e){return Tf(e,`aria-pressed`)}function Cf(e){return Tf(e,`aria-current`)??e.getAttribute(`aria-current`)??!1}function wf(e){return Tf(e,`aria-expanded`)}function Tf(e,t){let n=e.getAttribute(t);if(n===`true`)return!0;if(n===`false`)return!1}function Ef(e){return e.getAttribute(`aria-level`)&&Number(e.getAttribute(`aria-level`))||{H1:1,H2:2,H3:3,H4:4,H5:5,H6:6}[e.tagName]}function Df(e){let t=e.getAttribute(`aria-valuenow`);return t===null?void 0:+t}function Of(e){let t=e.getAttribute(`aria-valuemax`);return t===null?void 0:+t}function kf(e){let t=e.getAttribute(`aria-valuemin`);return t===null?void 0:+t}function Af(e){let t=e.getAttribute(`aria-valuetext`);return t===null?void 0:t}function jf(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,`\\$&`)}function Mf(e){return new RegExp(jf(e.toLowerCase()),`i`)}function Nf(e,t,n,r){let{variant:i,name:a}=r,o=``,s={},c=[[`Role`,`TestId`].includes(e)?n:Mf(n)];a&&(s.name=Mf(a)),e===`Role`&&mf(t)&&(s.hidden=!0,o=`Element is inaccessible. This means that the element and all its children are invisible to screen readers.
|
||
If you are using the aria-hidden prop, make sure this is the right choice for your case.
|
||
`),Object.keys(s).length>0&&c.push(s);let l=i+`By`+e;return{queryName:e,queryMethod:l,queryArgs:c,variant:i,warning:o,toString(){o&&console.warn(o);let[e,t]=c;return e=typeof e==`string`?`'`+e+`'`:e,t=t?`, { `+Object.entries(t).map(e=>{let[t,n]=e;return t+`: `+n}).join(`, `)+` }`:``,l+`(`+e+t+`)`}}}function Pf(e,t,n){return n&&(!t||t.toLowerCase()===e.toLowerCase())}function Ff(e,t,n){if(t===void 0&&(t=`get`),e.matches($d().defaultIgnore))return;let r=e.getAttribute(`role`)??hf(e)?.[0];if(r!==`generic`&&Pf(`Role`,n,r))return Nf(`Role`,e,r,{variant:t,name:Ld(e,{computedStyleSupportsPseudoElements:$d().computedStyleSupportsPseudoElements})});let i=af(document,e).map(e=>e.content).join(` `);if(Pf(`LabelText`,n,i))return Nf(`LabelText`,e,i,{variant:t});let a=e.getAttribute(`placeholder`);if(Pf(`PlaceholderText`,n,a))return Nf(`PlaceholderText`,e,a,{variant:t});let o=XF(ff(e));if(Pf(`Text`,n,o))return Nf(`Text`,e,o,{variant:t});if(Pf(`DisplayValue`,n,e.value))return Nf(`DisplayValue`,e,XF(e.value),{variant:t});let s=e.getAttribute(`alt`);if(Pf(`AltText`,n,s))return Nf(`AltText`,e,s,{variant:t});let c=e.getAttribute(`title`);if(Pf(`Title`,n,c))return Nf(`Title`,e,c,{variant:t});let l=e.getAttribute($d().testIdAttribute);if(Pf(`TestId`,n,l))return Nf(`TestId`,e,l,{variant:t})}function If(e,t){e.stack=t.stack.replace(t.message,e.message)}function Lf(e,t){let{container:n=Kd(),timeout:r=$d().asyncUtilTimeout,showOriginalStackTrace:i=$d().showOriginalStackTrace,stackTraceError:a,interval:o=50,onTimeout:s=e=>(Object.defineProperty(e,`message`,{value:$d().getElementError(e.message,n).message}),e),mutationObserverOptions:c={subtree:!0,childList:!0,attributes:!0,characterData:!0}}=t;if(typeof e!=`function`)throw TypeError("Received `callback` arg must be a function");return new Promise(async(t,l)=>{let u,d,f,p=!1,m=`idle`,h=setTimeout(b,r),g=Gd();if(g){let{unstable_advanceTimersWrapper:e}=$d();for(y();!p;){if(!Gd()){let e=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`);i||If(e,a),l(e);return}if(await e(async()=>{jest.advanceTimersByTime(o)}),p)break;y()}}else{try{Jd(n)}catch(e){l(e);return}d=setInterval(v,o);let{MutationObserver:e}=qd(n);f=new e(v),f.observe(n,c),y()}function _(e,n){p=!0,clearTimeout(h),g||(clearInterval(d),f.disconnect()),e?l(e):t(n)}function v(){if(Gd()){let e=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 i||If(e,a),l(e)}else return y()}function y(){if(m!==`pending`)try{let t=Zd(e);typeof t?.then==`function`?(m=`pending`,t.then(e=>{m=`resolved`,_(null,e)},e=>{m=`rejected`,u=e})):_(null,t)}catch(e){u=e}}function b(){let e;u?(e=u,!i&&e.name===`TestingLibraryElementError`&&If(e,a)):(e=Error(`Timed out in waitFor.`),i||If(e,a)),_(s(e),null)}})}function Rf(e,t){let n=Error(`STACK_TRACE_MESSAGE`);return $d().asyncWrapper(()=>Lf(e,{stackTraceError:n,...t}))}function zf(e,t){return $d().getElementError(e,t)}function Bf(e,t){return zf(e+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",t)}function Vf(e,t,n,r){let{exact:i=!0,collapseWhitespace:a,trim:o,normalizer:s}=r===void 0?{}:r,c=i?cf:sf,l=uf({collapseWhitespace:a,trim:o,normalizer:s});return Array.from(t.querySelectorAll(`[`+e+`]`)).filter(t=>c(t.getAttribute(e),t,n,l))}function Hf(e,t,n,r){let i=Vf(e,t,n,r);if(i.length>1)throw Bf(`Found multiple elements by [`+e+`=`+n+`]`,t);return i[0]||null}function Uf(e,t){return function(n){var r=[...arguments].slice(1);let i=e(n,...r);if(i.length>1){let e=i.map(e=>zf(null,e).message).join(`
|
||
|
||
`);throw Bf(t(n,...r)+`
|
||
|
||
Here are the matching elements:
|
||
|
||
`+e,n)}return i[0]||null}}function Wf(e,t){return $d().getElementError(`A better query is available, try this:
|
||
`+e.toString()+`
|
||
`,t)}function Gf(e,t){return function(n){var r=[...arguments].slice(1);let i=e(n,...r);if(!i.length)throw $d().getElementError(t(n,...r),n);return i}}function Kf(e){return(t,n,r,i)=>Rf(()=>e(t,n,r),{container:t,...i})}function qf(e,t,n){let r=ZF(Uf(e,t),e.name,`query`),i=Gf(e,n),a=Uf(i,t),o=ZF(a,e.name,`get`);return[r,QF(i,e.name.replace(`query`,`get`),`getAll`),o,Kf(QF(i,e.name,`findAll`)),Kf(ZF(a,e.name,`find`))]}function Jf(e){return Array.from(e.querySelectorAll(`label,input`)).map(e=>({node:e,textToMatch:tf(e)})).filter(e=>{let{textToMatch:t}=e;return t!==null})}function Yf(e,t){let n=t.getAttribute(`for`);if(!n)return null;let r=e.querySelector(`[id="`+n+`"]`);return r?r.tagName.toLowerCase():null}function Xf(e){let t=`*[role~="`+e+`"]`,n=xF.roleElements.get(e)??new Set,r=new Set(Array.from(n).map(e=>{let{name:t}=e;return t}));return[t].concat(Array.from(r)).join(`,`)}function Zf(e,t,n){return t===void 0&&(t=wL),n===void 0&&(n={}),Object.keys(t).reduce((n,r)=>(n[r]=t[r].bind(null,e),n),n)}function Qf(e){if(TL(e))throw Error(`The element(s) given to waitForElementToBeRemoved are already removed. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal.`)}async function $f(e,t){let n=Error(`Timed out in waitForElementToBeRemoved.`);if(typeof e!=`function`){Qf(e);let t=(Array.isArray(e)?e:[e]).map(e=>{let t=e.parentElement;if(t===null)return()=>null;for(;t.parentElement;)t=t.parentElement;return()=>t.contains(e)?e:null});e=()=>t.map(e=>e()).filter(Boolean)}return Qf(e()),Rf(()=>{let t;try{t=e()}catch(e){if(e.name===`TestingLibraryElementError`)return;throw e}if(!TL(t))throw n},t)}function ep(e,t){return $d().eventWrapper(()=>{if(!t)throw Error(`Unable to fire an event - please provide an event object.`);if(!e)throw Error(`Unable to fire a "`+t.type+`" event - please provide a DOM element.`);return e.dispatchEvent(t)})}function tp(e,t,n,r){let{EventType:i=`Event`,defaultInit:a={}}=r===void 0?{}:r;if(!t)throw Error(`Unable to fire a "`+e+`" event - please provide a DOM element.`);let o={...a,...n},{target:{value:s,files:c,...l}={}}=o;s!==void 0&&np(t,s),c!==void 0&&Object.defineProperty(t,`files`,{configurable:!0,enumerable:!0,writable:!0,value:c}),Object.assign(t,l);let u=qd(t),d=u[i]||u.Event,f;if(typeof d==`function`)f=new d(e,o);else{f=u.document.createEvent(i);let{bubbles:t,cancelable:n,detail:r,...a}=o;f.initEvent(e,t,n,r),Object.keys(a).forEach(e=>{f[e]=a[e]})}return[`dataTransfer`,`clipboardData`].forEach(e=>{let t=o[e];typeof t==`object`&&(typeof u.DataTransfer==`function`?Object.defineProperty(f,e,{value:Object.getOwnPropertyNames(t).reduce((e,n)=>(Object.defineProperty(e,n,{value:t[n]}),e),new u.DataTransfer)}):Object.defineProperty(f,e,{value:t}))}),f}function np(e,t){let{set:n}=Object.getOwnPropertyDescriptor(e,`value`)||{},r=Object.getPrototypeOf(e),{set:i}=Object.getOwnPropertyDescriptor(r,`value`)||{};if(i&&n!==i)i.call(e,t);else if(n)n.call(e,t);else throw Error(`The given element does not have a value setter`)}function rp(e){return e.replace(/[ \t]*[\n][ \t]*/g,`
|
||
`)}function ip(e){return SF.default.compressToEncodedURIComponent(rp(e))}function ap(e){return`https://testing-playground.com/#markup=`+ip(e)}function G(e,t,n){return e.namespaceURI&&e.namespaceURI!==`http://www.w3.org/1999/xhtml`||(t=Array.isArray(t)?t:[t],!t.includes(e.tagName.toLowerCase()))?!1:n?Object.entries(n).every(([t,n])=>e[t]===n):!0}function op(e){var t;if(sp(e)&&e.defaultView)return e.defaultView;if((t=e.ownerDocument)!=null&&t.defaultView)return e.ownerDocument.defaultView;throw Error(`Could not determine window of node. Node was ${cp(e)}`)}function sp(e){return e.nodeType===9}function cp(e){return typeof e==`function`?`function ${e.name}`:e===null?`null`:String(e)}function lp(e,t){return new Promise((n,r)=>{let i=new t;i.onerror=r,i.onabort=r,i.onload=()=>{n(String(i.result))},i.readAsText(e)})}function up(e,t){let n={...t,length:t.length,item:e=>n[e],[Symbol.iterator]:function*(){for(let e=0;e<n.length;e++)yield n[e]}};return n.constructor=e.FileList,e.FileList&&Object.setPrototypeOf(n,e.FileList.prototype),Object.freeze(n),n}function dp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fp(e,t){let[n,r]=e.split(`/`),i=!r||r===`*`;return r=>t?r.type===(i?n:e):i?r.type.startsWith(`${n}/`):r.type===n}function pp(e){return new class{getData(e){let t=this.items.find(fp(e,!0))??this.items.find(fp(e,!1)),n=``;return t?.getAsString(e=>{n=e}),n}setData(e,t){let n=this.items.findIndex(fp(e,!0)),r=new ML(t,e);n>=0?this.items.splice(n,1,r):this.items.push(r)}clearData(e){if(e){let t=this.items.findIndex(fp(e,!0));t>=0&&this.items.remove(t)}else this.items.clear()}get types(){let e=[];return this.files.length&&e.push(`Files`),this.items.forEach(t=>e.push(t.type)),Object.freeze(e),e}setDragImage(){}constructor(){dp(this,`dropEffect`,`none`),dp(this,`effectAllowed`,`uninitialized`),dp(this,`items`,new NL),dp(this,`files`,up(e,[]))}}}function mp(e,t=[]){let n=typeof e.DataTransfer>`u`?pp(e):new e.DataTransfer;return Object.defineProperty(n,`files`,{get:()=>up(e,t)}),n}async function hp(e,t){return t.kind===`file`?t.getAsFile():new e.Blob([await new Promise(e=>t.getAsString(e))],{type:t.type})}function gp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _p(e,...t){let n=Object.fromEntries(t.map(e=>[typeof e==`string`?`text/plain`:e.type,Promise.resolve(e)]));return typeof e.ClipboardItem<`u`?new e.ClipboardItem(n):new class{get types(){return Array.from(Object.keys(this.data))}async getType(t){let n=await this.data[t];if(!n)throw Error(`${t} is not one of the available MIME types on this item.`);return n instanceof e.Blob?n:new e.Blob([n],{type:t})}constructor(e){gp(this,`data`,void 0),this.data=e}}(n)}function vp(e,t){return Object.assign(new class extends e.EventTarget{async read(){return Array.from(this.items)}async readText(){let t=``;for(let n of this.items){let r=n.types.includes(`text/plain`)?`text/plain`:n.types.find(e=>e.startsWith(`text/`));r&&(t+=await n.getType(r).then(t=>lp(t,e.FileReader)))}return t}async write(e){this.items=e}async writeText(t){this.items=[_p(e,t)]}constructor(...e){super(...e),gp(this,`items`,[])}},{[PL]:t})}function yp(e){return!!e?.[PL]}function bp(e){if(yp(e.navigator.clipboard))return e.navigator.clipboard[PL];let t=Object.getOwnPropertyDescriptor(e.navigator,`clipboard`),n,r={resetClipboardStub:()=>{n=vp(e,r)},detachClipboardStub:()=>{t?Object.defineProperty(e.navigator,`clipboard`,t):Object.defineProperty(e.navigator,`clipboard`,{value:void 0,configurable:!0})}};return n=vp(e,r),Object.defineProperty(e.navigator,`clipboard`,{get:()=>n,configurable:!0}),n[PL]}function xp(e){yp(e.navigator.clipboard)&&e.navigator.clipboard[PL].resetClipboardStub()}function Sp(e){yp(e.navigator.clipboard)&&e.navigator.clipboard[PL].detachClipboardStub()}async function Cp(e){let t=e.defaultView,n=t?.navigator.clipboard,r=n&&await n.read();if(!r)throw Error(`The Clipboard API is unavailable.`);let i=mp(t);for(let e of r)for(let n of e.types)i.setData(n,await e.getType(n).then(e=>lp(e,t.FileReader)));return i}async function wp(e,t){let n=op(e),r=n.navigator.clipboard,i=[];for(let e=0;e<t.items.length;e++){let r=t.items[e],a=await hp(n,r);i.push(_p(n,a))}if(!(r&&await r.write(i).then(()=>!0,()=>!1)))throw Error(`The Clipboard API is unavailable.`)}function Tp(e){return e.matches(IL)}function Ep(e){return new e.constructor(e.type,e)}function Dp(e){for(let n=e;n;n=n.parentElement)if(G(n,[`button`,`input`,`select`,`textarea`,`optgroup`,`option`])){if(n.hasAttribute(`disabled`))return!0}else if(G(n,`fieldset`)){var t;if(n.hasAttribute(`disabled`)&&!((t=n.querySelector(`:scope > legend`))!=null&&t.contains(e)))return!0}else if(n.tagName.includes(`-`)&&n.constructor.formAssociated&&n.hasAttribute(`disabled`))return!0;return!1}function Op(e){let t=e.activeElement;return t?.shadowRoot?Op(t.shadowRoot):Dp(t)?e.ownerDocument?e.ownerDocument.body:e.body:t}function kp(e){return Op(e)??e.body}function Ap(e,t){let n=e;do{if(t(n))return n;n=n.parentElement}while(n&&n!==e.ownerDocument.body)}function jp(e){return e.hasAttribute(`contenteditable`)&&(e.getAttribute(`contenteditable`)==`true`||e.getAttribute(`contenteditable`)==``)}function Mp(e){let t=Np(e);return t&&(t.closest(`[contenteditable=""]`)||t.closest(`[contenteditable="true"]`))}function Np(e){return e.nodeType===1?e:e.parentElement}function Pp(e){return G(e,`button`)||G(e,`input`)&&e.type in LL}function Fp(e){return Ip(e)&&!e.readOnly||jp(e)}function Ip(e){return G(e,`textarea`)||G(e,`input`)&&e.type in RL}function Lp(e){return zp(e)&&Ip(e)}function Rp(e){return zp(e)&&Pp(e)}function zp(e){return e.nodeType===1}function Bp(e){let t=e.ownerDocument.getSelection();if(t?.focusNode&&Lp(e)){let n=Mp(t.focusNode);if(n){if(!t.isCollapsed){let e=n.firstChild?.nodeType===3?n.firstChild:n;t.setBaseAndExtent(e,0,e,0)}}else t.setBaseAndExtent(e,0,e,0)}}function Vp(e,t){return $d().eventWrapper(e)}function Hp(e){let t=Ap(e,Tp),n=Op(e.ownerDocument);(t??e.ownerDocument.body)!==n&&(Vp(t?()=>t.focus():()=>n?.blur()),Bp(t??e.ownerDocument.body))}function Up(e){!Tp(e)||Op(e.ownerDocument)!==e||Vp(()=>e.blur())}function Wp(e){return typeof e==`object`&&BL in e}function Gp(e){return!!e&&typeof e==`object`&&VL in e}function Kp(e,t){e[HL]===void 0&&(e[HL]=e.value),e[BL]=t,e.value=Object.assign(new String(t),{[BL]:!0})}function qp(e){return e[BL]===void 0?e.value:String(e[BL])}function Jp(e){e[BL]=void 0}function Yp(e){e[HL]=void 0}function Xp(e){return e[HL]}function Zp(e,t){e[VL]=t}function Qp(e,{focusOffset:t,anchorOffset:n=t},r=`replace`){let i=qp(e).length,a=e=>Math.max(0,Math.min(i,e)),o=r===`replace`||e[VL]===void 0?a(n):e[VL].anchorOffset,s=a(t),c=Math.min(o,s),l=Math.max(o,s);if(e[VL]={anchorOffset:o,focusOffset:s},e.selectionStart===c&&e.selectionEnd===l)return;let u=Object.assign(new Number(c),{[VL]:!0});try{e.setSelectionRange(u,l)}catch{}}function $p(e){let t=e[VL]??{anchorOffset:e.selectionStart??0,focusOffset:e.selectionEnd??0};return{...t,startOffset:Math.min(t.anchorOffset,t.focusOffset),endOffset:Math.max(t.anchorOffset,t.focusOffset)}}function em(e){return!!e[VL]}function tm(e){e[VL]=void 0}function nm(e){let t=e.replace(/\D/g,``);if(t.length<2)return e;let n=UL(t[0],10),r=UL(t[1],10);if(n>=3||n===2&&r>=4){let e;return e=n>=3?1:2,rm(t,e)}return e.length===2?e:rm(t,2)}function rm(e,t){let n=e.slice(0,t),r=Math.min(UL(n,10),23),i=UL(e.slice(t),10),a=Math.min(i,59);return`${r.toString().padStart(2,`0`)}:${a.toString().padStart(2,`0`)}`}function im(e,t){let n=e.cloneNode();return n.value=t,n.value===t}function am(e){let t=e.getAttribute(`maxlength`)??``;return/^\d+$/.test(t)&&Number(t)>=0?Number(t):void 0}function om(e){return G(e,`textarea`)||G(e,`input`)&&e.type in WL}function sm(e,t,n,r){if(fm(e)&&t+n>=0&&t+n<=e.nodeValue.length)return{node:e,offset:t+n};let i=cm(e,t,n);if(i){if(fm(i))return{node:i,offset:n>0?Math.min(1,i.nodeValue.length):Math.max(i.nodeValue.length-1,0)};if(G(i,`br`)){let e=cm(i,void 0,n);return e?fm(e)?{node:e,offset:n>0?0:e.nodeValue.length}:n<0&&G(e,`br`)?{node:i.parentNode,offset:um(i)}:{node:e.parentNode,offset:um(e)+(n>0?0:1)}:n<0&&r===`deleteContentBackward`?{node:i.parentNode,offset:um(i)}:void 0}else return{node:i.parentNode,offset:um(i)+(n>0?1:0)}}}function cm(e,t,n){let r=Number(t)+(n<0?-1:0);return t!==void 0&&dm(e)&&r>=0&&r<e.children.length&&(e=e.children[r]),pm(e,n===1?`next`:`previous`,lm)}function lm(e){if(fm(e))return!0;if(dm(e)){if(G(e,[`input`,`textarea`]))return e.type!==`hidden`;if(G(e,`br`))return!0}return!1}function um(e){let t=0;for(;e.previousSibling;)t++,e=e.previousSibling;return t}function dm(e){return e.nodeType===1}function fm(e){return e.nodeType===3}function pm(e,t,n){for(;;){let r=e[`${t}Sibling`];if(r){if(e=mm(r,t===`next`?`first`:`last`),n(e))return e}else if(e.parentNode&&(!dm(e.parentNode)||!jp(e.parentNode)&&e.parentNode!==e.ownerDocument?.body))e=e.parentNode;else break}}function mm(e,t){for(;e.hasChildNodes();)e=e[`${t}Child`];return e}function hm(e){return Object.getOwnPropertyNames(e).some(e=>e.startsWith(`__react`))&&op(e).REACT_VERSION===17}function gm(e){hm(e)&&(e[GL]={previousValue:String(e.value),tracked:[]})}function _m(e,t){var n,r;(r=e[GL])==null||(n=r.tracked)==null||n.push(t),e[GL]||(Jp(e),Qp(e,{focusOffset:t.length}))}function vm(e,t){var n;let r=e[GL];if(e[GL]=void 0,!(!(r==null||(n=r.tracked)==null)&&n.length))return;let i=r.tracked.length===2&&r.tracked[0]===r.previousValue&&r.tracked[1]===e.value;i||Jp(e),em(e)&&Qp(e,{focusOffset:i?t:e.value.length})}function ym(e){let t=bm(e);if(t&&Lp(t))return{type:`input`,selection:$p(t)};let n=t?.ownerDocument.getSelection();return{type:Mp(e)&&n?.anchorNode&&Mp(n.anchorNode)?`contenteditable`:`default`,selection:n}}function bm(e){return e.nodeType===1?e:e.parentElement}function xm(e){let t=ym(e);if(t.type===`input`)return t.selection;if(t.type===`contenteditable`)return t.selection?.getRangeAt(0)}function Sm({focusNode:e,focusOffset:t,anchorNode:n=e,anchorOffset:r=t}){var i,a;if(ym(e).type===`input`)return Qp(e,{anchorOffset:r,focusOffset:t});(a=n.ownerDocument)==null||(i=a.getSelection())==null||i.setBaseAndExtent(n,r,e,t)}function Cm(e){return G(e,`input`)&&[`date`,`time`].includes(e.type)}function wm(e,t,n,r=`insertText`){let i=xm(t);i&&(!Cm(t)&&!e.dispatchUIEvent(t,`beforeinput`,{inputType:r,data:n})||(`startContainer`in i?Tm(e,t,i,n,r):Em(e,t,i,n,r)))}function Tm(e,t,n,r,i){let a=!1;if(!n.collapsed)a=!0,n.deleteContents();else if([`deleteContentBackward`,`deleteContentForward`].includes(i)){let e=sm(n.startContainer,n.startOffset,i===`deleteContentBackward`?-1:1,i);if(e){a=!0;let t=n.cloneRange();t.comparePoint(e.node,e.offset)<0?t.setStart(e.node,e.offset):t.setEnd(e.node,e.offset),t.deleteContents()}}if(r)if(n.endContainer.nodeType===3){let e=n.endOffset;n.endContainer.insertData(e,r),n.setStart(n.endContainer,e+r.length),n.setEnd(n.endContainer,e+r.length)}else{let e=t.ownerDocument.createTextNode(r);n.insertNode(e),n.setStart(e,r.length),n.setEnd(e,r.length)}(a||r)&&e.dispatchUIEvent(t,`input`,{inputType:i})}function Em(e,t,n,r,i){let a=r;if(om(t)){let e=am(t);if(e!==void 0&&r.length>0){let n=e-t.value.length;if(n>0)a=r.substring(0,n);else return}}let{newValue:o,newOffset:s,oldValue:c}=Dm(a,t,n,i);o===c&&s===n.startOffset&&s===n.endOffset||G(t,`input`,{type:`number`})&&!km(o)||(Kp(t,o),Sm({focusNode:t,anchorOffset:s,focusOffset:s}),Cm(t)?im(t,o)&&(Om(e,t,s,{}),e.dispatchUIEvent(t,`change`),Yp(t)):Om(e,t,s,{data:r,inputType:i}))}function Dm(e,t,{startOffset:n,endOffset:r},i){let a=qp(t),o=Math.max(0,n===r&&i===`deleteContentBackward`?n-1:n),s=a.substring(0,o),c=Math.min(a.length,n===r&&i===`deleteContentForward`?n+1:r),l=`${s}${e}${a.substring(c,a.length)}`,u=o+e.length;if(G(t,`input`,{type:`time`})){let e=nm(l);e!==``&&im(t,e)&&(l=e,u=e.length)}return{oldValue:a,newValue:l,newOffset:u}}function Om(e,t,n,r){e.dispatchUIEvent(t,`input`,r),vm(t,n)}function km(e){let t=e.split(`e`,2);return!(/[^\d.\-e]/.test(e)||Number(e.match(/-/g)?.length)>2||Number(e.match(/\./g)?.length)>1||t[1]&&!/^-?\d*$/.test(t[1]))}function Am(e){return e?jp(e)?e.textContent:qp(e):null}function jm(e){let t=op(e);for(let n=e;n?.ownerDocument;n=n.parentElement){let{display:e,visibility:r}=t.getComputedStyle(n);if(e===`none`||r===`hidden`)return!1}return!0}function Mm(e,t){let n=e.ownerDocument,r=n.querySelectorAll(IL),i=Array.from(r).filter(t=>t===e||!(Number(t.getAttribute(`tabindex`))<0||Dp(t)));Number(e.getAttribute(`tabindex`))>=0&&i.sort((e,t)=>{let n=Number(e.getAttribute(`tabindex`)),r=Number(t.getAttribute(`tabindex`));return n===r?0:n===0?1:r===0?-1:n-r});let a={},o=[n.body],s=G(e,`input`,{type:`radio`})?e.name:void 0;i.forEach(t=>{let n=t;if(G(n,`input`,{type:`radio`})&&n.name){if(n===e){o.push(n);return}else if(n.name===s)return;if(n.checked){o=o.filter(e=>!G(e,`input`,{type:`radio`,name:n.name})),o.push(n),a[n.name]=n;return}if(typeof a[n.name]<`u`)return}o.push(n)});for(let r=o.findIndex(t=>t===e);;)if(r+=t?-1:1,r===o.length?r=0:r===-1&&(r=o.length-1),o[r]===e||o[r]===n.body||jm(o[r]))return o[r]}function Nm(e,t){if(Lp(e)){let n=$p(e);Sm({focusNode:e,focusOffset:n.startOffset===n.endOffset?n.focusOffset+t:t<0?n.startOffset:n.endOffset})}else{let n=e.ownerDocument.getSelection();if(!n?.focusNode)return;if(n.isCollapsed){let e=sm(n.focusNode,n.focusOffset,t);e&&Sm({focusNode:e.node,focusOffset:e.offset})}else n[t<0?`collapseToStart`:`collapseToEnd`]()}}function Pm(e){if(Lp(e))return Sm({focusNode:e,anchorOffset:0,focusOffset:qp(e).length});let t=Mp(e)??e.ownerDocument.body;Sm({focusNode:t,anchorOffset:0,focusOffset:t.childNodes.length})}function Fm(e){if(Lp(e))return $p(e).startOffset===0&&$p(e).endOffset===qp(e).length;let t=Mp(e)??e.ownerDocument.body,n=e.ownerDocument.getSelection();return n?.anchorNode===t&&n.focusNode===t&&n.anchorOffset===0&&n.focusOffset===t.childNodes.length}function Im(e,t,n){if(Lp(e))return Sm({focusNode:e,anchorOffset:t,focusOffset:n});if(jp(e)&&e.firstChild?.nodeType===3)return Sm({focusNode:e.firstChild,anchorOffset:t,focusOffset:n});throw Error(`Not implemented. The result of this interaction is unreliable.`)}function Lm(e,t,n){let r=op(t),i=Array.from(t.ownerDocument.querySelectorAll(t.name?`input[type="radio"][name="${r.CSS.escape(t.name)}"]`:`input[type="radio"][name=""], input[type="radio"]:not([name])`));for(let r=i.findIndex(e=>e===t)+n;;r+=n){if(i[r]||(r=n>0?0:i.length-1),i[r]===t)return;if(!Dp(i[r])){Hp(i[r]),e.dispatchUIEvent(i[r],`click`);return}}}function Rm(e){return ZL[e].EventType}function zm(e){return QL.includes(Rm(e))}function Bm(e){return Rm(e)===`KeyboardEvent`}function Vm(e,t,n){let r=op(t),{EventType:i,defaultInit:a}=ZL[e],o=new(Hm(r))[i](e,a);var s={};for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(s[c]=n[c]);return s.view=r,$L[i].forEach(function(e){e(o,s)}),o}function Hm(e){let t=e.Event??class{},n=e.AnimationEvent??class extends t{},r=e.ClipboardEvent??class extends t{},i=e.PopStateEvent??class extends t{},a=e.ProgressEvent??class extends t{},o=e.TransitionEvent??class extends t{},s=e.UIEvent??class extends t{},c=e.CompositionEvent??class extends s{},l=e.FocusEvent??class extends s{},u=e.InputEvent??class extends s{},d=e.KeyboardEvent??class extends s{},f=e.MouseEvent??class extends s{};return{Event:t,AnimationEvent:n,ClipboardEvent:r,PopStateEvent:i,ProgressEvent:a,TransitionEvent:o,UIEvent:s,CompositionEvent:c,FocusEvent:l,InputEvent:u,KeyboardEvent:d,MouseEvent:f,DragEvent:e.DragEvent??class extends f{},PointerEvent:e.PointerEvent??class extends f{},TouchEvent:e.TouchEvent??class extends s{}}}function Um(e,t){for(let[n,r]of Object.entries(t))Object.defineProperty(e,n,{get:()=>r??null})}function Wm(e){return Number(e??0)}function Gm(e,{clipboardData:t}){Um(e,{clipboardData:t})}function Km(e,{relatedTarget:t}){Um(e,{relatedTarget:t})}function qm(e,{data:t,inputType:n,isComposing:r}){Um(e,{data:t,isComposing:!!r,inputType:String(n)})}function Jm(e,{view:t,detail:n}){Um(e,{view:t,detail:Wm(n??0)})}function Ym(e,{altKey:t,ctrlKey:n,metaKey:r,shiftKey:i,modifierAltGraph:a,modifierCapsLock:o,modifierFn:s,modifierFnLock:c,modifierNumLock:l,modifierScrollLock:u,modifierSymbol:d,modifierSymbolLock:f}){Um(e,{altKey:!!t,ctrlKey:!!n,metaKey:!!r,shiftKey:!!i,getModifierState(e){return!!{Alt:t,AltGraph:a,CapsLock:o,Control:n,Fn:s,FnLock:c,Meta:r,NumLock:l,ScrollLock:u,Shift:i,Symbol:d,SymbolLock:f}[e]}})}function Xm(e,{key:t,code:n,location:r,repeat:i,isComposing:a,charCode:o}){Um(e,{key:String(t),code:String(n),location:Wm(r),repeat:!!i,isComposing:!!a,charCode:o})}function Zm(e,{x:t,y:n,screenX:r,screenY:i,clientX:a=t,clientY:o=n,button:s,buttons:c,relatedTarget:l,offsetX:u,offsetY:d,pageX:f,pageY:p}){Um(e,{screenX:Wm(r),screenY:Wm(i),clientX:Wm(a),x:Wm(a),clientY:Wm(o),y:Wm(o),button:Wm(s),buttons:Wm(c),relatedTarget:l,offsetX:Wm(u),offsetY:Wm(d),pageX:Wm(f),pageY:Wm(p)})}function Qm(e,{pointerId:t,width:n,height:r,pressure:i,tangentialPressure:a,tiltX:o,tiltY:s,twist:c,pointerType:l,isPrimary:u}){Um(e,{pointerId:Wm(t),width:Wm(n??1),height:Wm(r??1),pressure:Wm(i),tangentialPressure:Wm(a),tiltX:Wm(o),tiltY:Wm(s),twist:Wm(c),pointerType:String(l),isPrimary:!!u})}function $m(e,t,n,r=!1){(zm(t)||Bm(t))&&(n={...n,...this.system.getUIEventModifiers()});let i=Vm(t,e,n);return eh.call(this,e,i,r)}function eh(e,t,n=!1){let r=t.type,i=n?()=>{}:zL[r]?.call(zL,t,e,this);if(i){t.preventDefault();let n=!1;return Object.defineProperty(t,`defaultPrevented`,{get:()=>n}),Object.defineProperty(t,`preventDefault`,{value:()=>{n=t.cancelable}}),Vp(()=>e.dispatchEvent(t)),n||i(),!n}return Vp(()=>e.dispatchEvent(t))}function th(e,t,n){let r=Vm(t,e,n);Vp(()=>e.dispatchEvent(r))}function nh(e){if(e.prototype[eR])return;let{focus:t,blur:n}=e.prototype;Object.defineProperties(e.prototype,{focus:{configurable:!0,get:()=>i},blur:{configurable:!0,get:()=>a},[eR]:{configurable:!0,get:()=>({focus:t,blur:n})}});let r;function i(e){if(this.ownerDocument.visibilityState!==`hidden`)return t.call(this,e);let i=rh(this.ownerDocument);if(i===this)return;let a=Symbol(`focus call`);r=a,i&&(n.call(i),th(i,`blur`,{relatedTarget:this}),th(i,`focusout`,{relatedTarget:r===a?this:null})),r===a&&(t.call(this,e),th(this,`focus`,{relatedTarget:i})),r===a&&th(this,`focusin`,{relatedTarget:i})}function a(){if(this.ownerDocument.visibilityState!==`hidden`)return n.call(this);let e=rh(this.ownerDocument);e===this&&(r=Symbol(`blur call`),n.call(this),th(e,`blur`,{relatedTarget:null}),th(e,`focusout`,{relatedTarget:null}))}}function rh(e){let t=Op(e);return t?.tagName===`BODY`?null:t}function ih(e,t,n){let r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=Object.getOwnPropertyDescriptor(e,t),a=r?.set?`set`:`value`;if(typeof r?.[a]!=`function`||r[a][tR])throw Error(`Element ${e.tagName} does not implement "${String(t)}".`);function o(...e){let{applyNative:t=!1,realArgs:o,then:s}=n.call(this,...e),c=(!t&&i||r)[a];a===`set`?c.call(this,o):c.call(this,...o),s?.()}o[tR]=tR,Object.defineProperty(e,t,{...i??r,[a]:o})}function ah(e){ih(e,`value`,function(e){let t=Wp(e);return t&&gm(this),{applyNative:!!t,realArgs:oh(this,e),then:t?void 0:()=>_m(this,String(e))}})}function oh(e,t){return G(e,`input`,{type:`number`})&&String(t)!==``&&!Number.isNaN(Number(t))?String(Number(t)):String(t)}function sh(e){ih(e,`setSelectionRange`,function(t,...n){let r=Gp(t);return{applyNative:!!r,realArgs:[Number(t),...n],then:()=>r?void 0:tm(e)}}),ih(e,`selectionStart`,function(t){return{realArgs:t,then:()=>tm(e)}}),ih(e,`selectionEnd`,function(t){return{realArgs:t,then:()=>tm(e)}}),ih(e,`select`,function(){return{realArgs:[],then:()=>Zp(e,{anchorOffset:0,focusOffset:qp(e).length})}})}function ch(e){ih(e,`setRangeText`,function(...t){return{realArgs:t,then:()=>{Jp(e),tm(e)}}})}function lh(e){e[nR]||(e.addEventListener(`focus`,e=>{let t=e.target;uh(t)},{capture:!0,passive:!0}),e.activeElement&&uh(e.activeElement),e.addEventListener(`blur`,e=>{let t=e.target,n=Xp(t);n!==void 0&&(t.value!==n&&th(t,`change`),Yp(t))},{capture:!0,passive:!0}),e[nR]=nR)}function uh(e){e[nR]||(G(e,[`input`,`textarea`])&&(ah(e),sh(e),ch(e)),e[nR]=nR)}function dh(e){return fh(e)?e:e.ownerDocument}function fh(e){return e.nodeType===9}function ph(e,t){e.levelRefs[t]={}}function mh(e,t){return e.levelRefs[t]}function hh(e){let t=e.delay;if(typeof t==`number`)return Promise.all([new Promise(e=>globalThis.setTimeout(()=>e(),t)),e.advanceTimers(t)])}function gh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _h(e){return oR.includes(e)}function vh(e){return sR.includes(e)}function yh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bh(e=0){return e in fR?fR[e]:Number(e)}function xh(e){return e=bh(e),e in pR?pR[e]:e}function Sh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ch(e,t){let n=[];for(let t=e;t;t=t.parentElement)n.push(t);let r=[];for(let e=t;e;e=e.parentElement)r.push(e);let i=0;for(;!(i>=n.length||i>=r.length||n[n.length-1-i]!==r[r.length-1-i]);i++);return[n.slice(0,n.length-i),r.slice(0,r.length-i),r.slice(r.length-i)]}function wh({target:e,node:t,offset:n}){return Lp(e)?{node:e,offset:n??qp(e).length}:t?{node:t,offset:n??(t.nodeType===3?t.nodeValue.length:t.childNodes.length)}:Th(e,n)}function Th(e,t,n=!0){let r=t===void 0?e.childNodes.length-1:0,i=t===void 0?-1:1;for(;t===void 0?r>=(n?Math.max(e.childNodes.length-1,0):0):r<=e.childNodes.length;){if(t&&r===e.childNodes.length)throw Error(`The given offset is out of bounds.`);let n=e.childNodes.item(r),a=String(n.textContent);if(a.length)if(t!==void 0&&a.length<t)t-=a.length;else{if(n.nodeType===1)return Th(n,t,!1);if(n.nodeType===3)return{node:n,offset:t??n.nodeValue.length}}r+=i}return{node:e,offset:e.childNodes.length}}function Eh({document:e,target:t,clickCount:n,node:r,offset:i}){if(Rp(t))return;let a=Lp(t),o=String(a?qp(t):t.textContent),[s,c]=r?[i,i]:Dh(o,i,n);if(a)return Qp(t,{anchorOffset:s??o.length,focusOffset:c??o.length}),{node:t,start:s??0,end:c??o.length};{let{node:n,offset:i}=wh({target:t,node:r,offset:s}),{node:a,offset:o}=wh({target:t,node:r,offset:c}),l=t.ownerDocument.createRange();try{l.setStart(n,i),l.setEnd(a,o)}catch{throw Error(`The given offset is out of bounds.`)}let u=e.getSelection();return u?.removeAllRanges(),u?.addRange(l.cloneRange()),l}}function Dh(e,t,n){if(n%3==1||e.length===0)return[t,t];let r=t??e.length;return n%3==2?[r-e.substr(0,t).match(/(\w+|\s+|\W)?$/)[0].length,t===void 0?t:t+e.substr(t).match(/^(\w+|\s+|\W)?/)[0].length]:[r-e.substr(0,t).match(/[^\r\n]*$/)[0].length,t===void 0?t:t+e.substr(t).match(/^[^\r\n]*/)[0].length]}function Oh(e,{document:t,target:n,node:r,offset:i}){let a=wh({target:n,node:r,offset:i});if(`node`in e){if(a.node===e.node){let t=a.offset<e.start?e.end:e.start,n=a.offset>e.end||a.offset<e.start?a.offset:e.end;Qp(e.node,{anchorOffset:t,focusOffset:n})}}else{let n=e.cloneRange(),r=n.comparePoint(a.node,a.offset);r<0?n.setStart(a.node,a.offset):r>0&&n.setEnd(a.node,a.offset);let i=t.getSelection();i?.removeAllRanges(),i?.addRange(n.cloneRange())}}function kh(e,t){return e.target!==t.target||e.coords?.x!==t.coords?.x||e.coords?.y!==t.coords?.y||e.coords?.clientX!==t.coords?.clientX||e.coords?.clientY!==t.coords?.clientY||e.coords?.offsetX!==t.coords?.offsetX||e.coords?.offsetY!==t.coords?.offsetY||e.coords?.pageX!==t.coords?.pageX||e.coords?.pageY!==t.coords?.pageY||e.coords?.screenX!==t.coords?.screenX||e.coords?.screenY!==t.coords?.screenY||e.caret?.node!==t.caret?.node||e.caret?.offset!==t.caret?.offset}function Ah(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jh(e,t){return Nh(e,t)?.pointerEvents!==`none`}function Mh(e){let t=op(e);for(let n=e,r=[];n?.ownerDocument;n=n.parentElement){r.push(n);let e=t.getComputedStyle(n).pointerEvents;if(e&&![`inherit`,`unset`].includes(e))return{pointerEvents:e,tree:r}}}function Nh(e,t){let n=t[gR];if(!(e.config.pointerEventsCheck!==iR.Never&&(!n||Lh(e.config.pointerEventsCheck,iR.EachApiCall)&&n[rR.Call]!==mh(e,rR.Call)||Lh(e.config.pointerEventsCheck,iR.EachTrigger)&&n[rR.Trigger]!==mh(e,rR.Trigger))))return n?.result;let r=Mh(t);return t[gR]={[rR.Call]:mh(e,rR.Call),[rR.Trigger]:mh(e,rR.Trigger),result:r},r}function Ph(e,t){let n=Nh(e,t);if(n?.pointerEvents===`none`)throw Error([`Unable to perform pointer interaction as the element ${n.tree.length>1?`inherits`:`has`} \`pointer-events: none\`:`,``,Fh(n.tree)].join(`
|
||
`))}function Fh(e){return e.reverse().map((t,n)=>[``.padEnd(n),t.tagName,t.id&&`#${t.id}`,t.hasAttribute(`data-testid`)&&`(testId=${t.getAttribute(`data-testid`)})`,Ih(t),e.length>1&&n===0&&" <-- This element declared `pointer-events: none`",e.length>1&&n===e.length-1&&` <-- Asserted pointer events here`].filter(Boolean).join(``)).join(`
|
||
`)}function Ih(e){var t;let n;if(e.hasAttribute(`aria-label`))n=e.getAttribute(`aria-label`);else if(e.hasAttribute(`aria-labelledby`)){var r,i;n=(i=e.ownerDocument.getElementById(e.getAttribute(`aria-labelledby`)))==null||(r=i.textContent)==null?void 0:r.trim()}else G(e,[`button`,`input`,`meter`,`output`,`progress`,`select`,`textarea`])&&(t=e.labels)!=null&&t.length?n=Array.from(e.labels).map(e=>e.textContent?.trim()).join(`|`):G(e,`button`)&&(n=e.textContent?.trim());return n=n?.replace(/\n/g,` `),Number(n?.length)>30&&(n=`${n?.substring(0,29)}\u2026`),n?`(label=${n})`:``}function Lh(e,t){return(e&t)>0}function Rh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}async function Vh(e){let t=[];return this.config.skipHover||t.push({target:e}),t.push({keys:`[MouseLeft]`,target:e}),this.pointer(t)}async function Hh(e){return this.pointer([{target:e},`[MouseLeft][MouseLeft]`])}async function Uh(e){return this.pointer([{target:e},`[MouseLeft][MouseLeft][MouseLeft]`])}async function Wh(e){return this.pointer({target:e})}async function Gh(e){return Ph(this,this.system.pointer.getMouseTarget(this)),this.pointer({target:e.ownerDocument.body})}async function Kh({shift:e}={}){return this.keyboard(e===!0?`{Shift>}{Tab}{/Shift}`:e===!1?`[/ShiftLeft][/ShiftRight]{Tab}`:`{Tab}`)}function qh(e,t){let n=0,r=e[n]in bR?e[n]:``;n+=r.length;let i=RegExp(`^\\${r}{2}`).test(e)?``:r;return{type:i,...i===``?Jh(e,n,t):Yh(e,n,i,t)}}function Jh(e,t,n){let r=e[t];return Xh(r,e,t,n),t+=r.length,{consumedLength:t,descriptor:r,releasePrevious:!1,releaseSelf:!0,repeat:1}}function Yh(e,t,n,r){let i=e[t]===`/`?`/`:``;t+=i.length;let a=n===`{`&&e[t]===`\\`;t+=Number(a);let o=a?e[t]:e.slice(t).match(n===`{`?/^\w+|^[^}>/]/:/^\w+/)?.[0];Xh(o,e,t,r),t+=o.length;let s=e.slice(t).match(/^>\d+/)?.[0]??``;t+=s.length;let c=e[t]===`/`||!s&&e[t]===`>`?e[t]:``;t+=c.length;let l=bR[n],u=e[t]===l?l:``;if(!u)throw Error(Qh([!s&&`repeat modifier`,!c&&`release modifier`,`"${l}"`].filter(Boolean).join(` or `),e[t],e,r));return t+=u.length,{consumedLength:t,descriptor:o,releasePrevious:!!i,repeat:s?Math.max(Number(s.substr(1)),1):1,releaseSelf:Zh(c,s)}}function Xh(e,t,n,r){if(!e)throw Error(Qh(`key descriptor`,t[n],t,r))}function Zh(e,t){if(e)return e===`/`;if(t)return!1}function Qh(e,t,n,r){return`Expected ${e} but found "${t??``}" in "${n}"
|
||
See ${r===`pointer`?`https://testing-library.com/docs/user-event/pointer#pressing-a-button-or-touching-the-screen`:`https://testing-library.com/docs/user-event/keyboard`}
|
||
for more information about how userEvent parses your input.`}function $h(e,t){let n=[];do{let{type:r,descriptor:i,consumedLength:a,releasePrevious:o,releaseSelf:s=!0,repeat:c}=qh(t,`keyboard`),l=e.find(e=>r===`[`?e.code?.toLowerCase()===i.toLowerCase():r===`{`?e.key?.toLowerCase()===i.toLowerCase():e.key===i)??{key:`Unknown`,code:`Unknown`,[r===`[`?`code`:`key`]:i};n.push({keyDef:l,releasePrevious:o,releaseSelf:s,repeat:c}),t=t.slice(a)}while(t);return n}async function eg(e){let t=$h(this.config.keyboardMap,e);for(let e=0;e<t.length;e++)await hh(this.config),await tg(this,t[e])}async function tg(e,{keyDef:t,releasePrevious:n,releaseSelf:r,repeat:i}){let{system:a}=e;if(a.keyboard.isKeyPressed(t)&&await a.keyboard.keyup(e,t),!n){for(let n=1;n<=i;n++)await a.keyboard.keydown(e,t),n<i&&await hh(e.config);r&&await a.keyboard.keyup(e,t)}}async function ng(e){for(let t of e.system.keyboard.getPressedKeys())await e.system.keyboard.keyup(e,t)}function rg(e){let t=Lp(e)?{"text/plain":ig(e)}:{"text/plain":String(e.ownerDocument.getSelection())},n=mp(op(e));for(let e in t)t[e]&&n.setData(e,t[e]);return n}function ig(e){let t=$p(e);return qp(e).substring(t.startOffset,t.endOffset)}async function ag(){let e=this.config.document,t=e.activeElement??e.body,n=rg(t);if(n.items.length!==0)return this.dispatchUIEvent(t,`copy`,{clipboardData:n})&&this.config.writeToClipboard&&await wp(e,n),n}async function og(){let e=this.config.document,t=e.activeElement??e.body,n=rg(t);if(n.items.length!==0)return this.dispatchUIEvent(t,`cut`,{clipboardData:n})&&this.config.writeToClipboard&&await wp(t.ownerDocument,n),n}async function sg(e){let t=this.config.document,n=t.activeElement??t.body,r=(typeof e==`string`?cg(t,e):e)??await Cp(t).catch(()=>{throw Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.")});this.dispatchUIEvent(n,`paste`,{clipboardData:r})}function cg(e,t){let n=mp(op(e));return n.setData(`text`,t),n}function lg(e,t){let n=[];do{let{descriptor:r,consumedLength:i,releasePrevious:a,releaseSelf:o=!0}=qh(t,`pointer`),s=e.find(e=>e.name===r);s&&n.push({keyDef:s,releasePrevious:a,releaseSelf:o}),t=t.slice(i)}while(t);return n}async function ug(e){let{pointerMap:t}=this.config,n=[];(Array.isArray(e)?e:[e]).forEach(e=>{typeof e==`string`?n.push(...lg(t,e)):`keys`in e?n.push(...lg(t,e.keys).map(t=>({...e,...t}))):n.push(e)});for(let e=0;e<n.length;e++)await hh(this.config),await dg(this,n[e]);this.system.pointer.resetClickCount()}async function dg(e,t){var n,r;let i=`pointerName`in t&&t.pointerName?t.pointerName:`keyDef`in t?e.system.pointer.getPointerName(t.keyDef):`mouse`,a=e.system.pointer.getPreviousPosition(i),o={target:t.target??pg(e,a),coords:t.coords??a?.coords,caret:{node:t.node??(fg(t)||a==null||(n=a.caret)==null?void 0:n.node),offset:t.offset??(fg(t)||a==null||(r=a.caret)==null?void 0:r.offset)}};`keyDef`in t?(e.system.pointer.isKeyPressed(t.keyDef)&&(ph(e,rR.Trigger),await e.system.pointer.release(e,t.keyDef,o)),t.releasePrevious||(ph(e,rR.Trigger),await e.system.pointer.press(e,t.keyDef,o),t.releaseSelf&&(ph(e,rR.Trigger),await e.system.pointer.release(e,t.keyDef,o)))):(ph(e,rR.Trigger),await e.system.pointer.move(e,i,o))}function fg(e){return!!(e.target??e.node??e.offset!==void 0)}function pg(e,t){if(!t)throw Error(`This pointer has no previous position. Provide a target property!`);return t.target??e.config.document.body}async function mg(e){if(!Fp(e)||Dp(e))throw Error("clear()` is only supported on editable elements.");if(Hp(e),e.ownerDocument.activeElement!==e)throw Error(`The element to be cleared could not be focused.`);if(Pm(e),!Fm(e))throw Error(`The element content to be cleared could not be selected.`);wm(this,e,``,`deleteContentBackward`)}async function hg(e,t){return _g.call(this,!0,e,t)}async function gg(e,t){return _g.call(this,!1,e,t)}async function _g(e,t,n){if(!e&&!t.multiple)throw $d().getElementError(`Unable to deselect an option in a non-multiple select. Use selectOptions to change the selection instead.`,t);let r=Array.isArray(n)?n:[n],i=Array.from(t.querySelectorAll(`option, [role="option"]`)),a=r.map(e=>{if(typeof e!=`string`&&i.includes(e))return e;{let n=i.find(t=>t.value===e||t.innerHTML===e);if(n)return n;throw $d().getElementError(`Value "${String(e)}" not found in options`,t)}}).filter(e=>!Dp(e));if(Dp(t)||!a.length)return;let o=n=>{n.selected=e,this.dispatchUIEvent(t,`input`,{bubbles:!0,cancelable:!1,composed:!0}),this.dispatchUIEvent(t,`change`)};if(G(t,`select`))if(t.multiple)for(let e of a){let n=this.config.pointerEventsCheck===0?!0:jh(this,e);n&&(this.dispatchUIEvent(e,`pointerover`),this.dispatchUIEvent(t,`pointerenter`),this.dispatchUIEvent(e,`mouseover`),this.dispatchUIEvent(t,`mouseenter`),this.dispatchUIEvent(e,`pointermove`),this.dispatchUIEvent(e,`mousemove`),this.dispatchUIEvent(e,`pointerdown`),this.dispatchUIEvent(e,`mousedown`)),Hp(t),n&&(this.dispatchUIEvent(e,`pointerup`),this.dispatchUIEvent(e,`mouseup`)),o(e),n&&this.dispatchUIEvent(e,`click`),await hh(this.config)}else if(a.length===1){let e=this.config.pointerEventsCheck===0?!0:jh(this,t);e?await this.click(t):Hp(t),o(a[0]),e&&(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 hh(this.config)}else throw $d().getElementError(`Cannot select multiple options on a non-multiple select`,t);else if(t.getAttribute(`role`)===`listbox`)for(let e of a)await this.click(e),await this.unhover(e);else throw $d().getElementError(`Cannot select options on elements that are neither select nor listbox elements`,t)}async function vg(e,t,{skipClick:n=this.config.skipClick,skipAutoClose:r=this.config.skipAutoClose,initialSelectionStart:i,initialSelectionEnd:a}={}){e.disabled||(n||await this.click(e),i!==void 0&&Im(e,i,a??i),await this.keyboard(t),r||await ng(this))}function yg(e,t,n){n?Object.defineProperty(e,t,n):delete e[t]}function bg(e,t){var n;(n=e[xR])==null||n.restore();let r=Object.getOwnPropertyDescriptor(e,`type`),i=Object.getOwnPropertyDescriptor(e,`value`),a=Object.getOwnPropertyDescriptor(e,`files`);function o(){yg(e,`type`,r),yg(e,`value`,i),yg(e,`files`,a)}e[xR]={restore:o},Object.defineProperties(e,{files:{configurable:!0,get:()=>t},value:{configurable:!0,get:()=>t.length?`C:\\fakepath\\${t[0].name}`:``,set(t){if(t===``)o();else{var n;i==null||(n=i.set)==null||n.call(e,t)}}},type:{configurable:!0,get:()=>`file`,set(t){t!==`file`&&(o(),e.type=t)}}})}async function xg(e,t){let n=G(e,`label`)?e.control:e;if(!n||!G(n,`input`,{type:`file`}))throw TypeError(`The ${n===e?`given`:`associated`} ${n?.tagName} element does not accept file uploads`);if(Dp(e))return;let r=(Array.isArray(t)?t:[t]).filter(e=>!this.config.applyAccept||Cg(e,n.accept)).slice(0,n.multiple?void 0:1),i=()=>{r.length===n.files?.length&&r.every((e,t)=>e===n.files?.item(t))||(bg(n,up(op(e),r)),this.dispatchUIEvent(n,`input`),this.dispatchUIEvent(n,`change`))};n.addEventListener(`fileDialog`,i),await this.click(e),n.removeEventListener(`fileDialog`,i)}function Sg(e){return e.toLowerCase().replace(/(\.|\/)jpg\b/g,`$1jpeg`)}function Cg(e,t){if(!t)return!0;let n=[`audio/*`,`image/*`,`video/*`];return Sg(t).trim().split(/\s*,\s*/).some(t=>t.startsWith(`.`)?Sg(e.name).endsWith(t):n.includes(t)?Sg(e.type).startsWith(t.replace(`*`,``)):Sg(e.type)===t)}function wg(e){return $d().asyncWrapper(e)}function Tg(e={},t=wR,n){let r=jg(e,n,t);return{...t,...e,document:r}}function Eg(e={}){let t=Tg(e);return lh(t.document),nh(op(t.document).HTMLElement),bp(t.document.defaultView??globalThis.window),Ag(t).api}function Dg({keyboardState:e,pointerState:t,...n}={},r){let i=Tg(n,CR,r);lh(i.document),nh(op(i.document).HTMLElement);let a=t??e??new yR;return{api:Ag(i,a).api,system:a}}function Og(e){return Ag({...this.config,...e},this.system).api}function kg(e,t){function n(...n){return ph(e,rR.Call),wg(()=>t.apply(e,n).then(async t=>(await hh(e.config),t)))}return Object.defineProperty(n,`name`,{get:()=>t.name}),n}function Ag(e,t=new yR){let n={};return Object.assign(n,{config:e,dispatchEvent:eh.bind(n),dispatchUIEvent:$m.bind(n),system:t,levelRefs:{},...SR}),{instance:n,api:{...Object.fromEntries(Object.entries(SR).map(([e,t])=>[e,kg(n,t)])),setup:Og.bind(n)}}}function jg(e,t,n){return e.document??(t&&dh(t))??n.document}function Mg(e){return Dg().api.clear(e)}function Ng(e,t={}){return Dg(t,e).api.click(e)}function Pg(e={}){return Dg(e).api.copy()}function Fg(e={}){return Dg(e).api.cut()}function Ig(e,t={}){return Dg(t).api.dblClick(e)}function Lg(e,t,n={}){return Dg(n).api.deselectOptions(e,t)}function Rg(e,t={}){return Dg(t).api.hover(e)}async function zg(e,t={}){let{api:n,system:r}=Dg(t);return n.keyboard(e).then(()=>r)}async function Bg(e,t={}){let{api:n,system:r}=Dg(t);return n.pointer(e).then(()=>r)}function Vg(e,t){return Dg(t).api.paste(e)}function Hg(e,t,n={}){return Dg(n).api.selectOptions(e,t)}function Ug(e,t={}){return Dg(t).api.tripleClick(e)}function Wg(e,t,n={}){return Dg(n,e).api.type(e,t,n)}function Gg(e,t={}){let{api:n,system:r}=Dg(t);return r.pointer.setMousePosition({target:e}),n.unhover(e)}function Kg(e,t,n={}){return Dg(n).api.upload(e,t)}function qg(e={}){return Dg().api.tab(e)}function Jg(){let e=q.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function Yg(){let e=q.document.createElement(`canvas`);e.id=`storybook-addon-measure`;let t=e.getContext(`2d`);ke(t!=null);let{width:n,height:r}=Jg();return Xg(e,t,{width:n,height:r}),e.style.position=`absolute`,e.style.left=`0`,e.style.top=`0`,e.style.zIndex=`2147483647`,e.style.pointerEvents=`none`,q.document.body.appendChild(e),{canvas:e,context:t,width:n,height:r}}function Xg(e,t,{width:n,height:r}){e.style.width=`${n}px`,e.style.height=`${r}px`;let i=q.window.devicePixelRatio;e.width=Math.floor(n*i),e.height=Math.floor(r*i),t.scale(i,i)}function Zg(){tV.canvas||(tV=Yg())}function Qg(){tV.context&&tV.context.clearRect(0,0,tV.width??0,tV.height??0)}function $g(e){Qg(),e(tV.context)}function e_(){ke(tV.canvas,`Canvas should exist in the state.`),ke(tV.context,`Context should exist in the state.`),Xg(tV.canvas,tV.context,{width:0,height:0});let{width:e,height:t}=Jg();Xg(tV.canvas,tV.context,{width:e,height:t}),tV.width=e,tV.height=t}function t_(){tV.canvas&&(Qg(),tV.canvas.parentNode?.removeChild(tV.canvas),tV={})}function n_(e,{x:t,y:n,w:r,h:i,r:a}){t-=r/2,n-=i/2,r<2*a&&(a=r/2),i<2*a&&(a=i/2),e.beginPath(),e.moveTo(t+a,n),e.arcTo(t+r,n,t+r,n+i,a),e.arcTo(t+r,n+i,t,n+i,a),e.arcTo(t,n+i,t,n,a),e.arcTo(t,n,t+r,n,a),e.closePath()}function r_(e,{padding:t,border:n,width:r,height:i,top:a,left:o}){let s=r-n.left-n.right-t.left-t.right,c=i-t.top-t.bottom-n.top-n.bottom,l=o+n.left+t.left,u=a+n.top+t.top;return e===`top`?l+=s/2:e===`right`?(l+=s,u+=c/2):e===`bottom`?(l+=s/2,u+=c):e===`left`?u+=c/2:e===`center`&&(l+=s/2,u+=c/2),{x:l,y:u}}function i_(e,t,{margin:n,border:r,padding:i},a,o){let s=e=>0,c=0,l=0,u=o?1:.5,d=o?a*2:0;return e===`padding`?s=e=>i[e]*u+d:e===`border`?s=e=>i[e]+r[e]*u+d:e===`margin`&&(s=e=>i[e]+r[e]+n[e]*u+d),t===`top`?l=-s(`top`):t===`right`?c=s(`right`):t===`bottom`?l=s(`bottom`):t===`left`&&(c=-s(`left`)),{offsetX:c,offsetY:l}}function a_(e,t){return Math.abs(e.x-t.x)<Math.abs(e.w+t.w)/2&&Math.abs(e.y-t.y)<Math.abs(e.h+t.h)/2}function o_(e,t,n){return e===`top`?t.y=n.y-n.h-rV:e===`right`?t.x=n.x+n.w/2+rV+t.w/2:e===`bottom`?t.y=n.y+n.h+rV:e===`left`&&(t.x=n.x-n.w/2-rV-t.w/2),{x:t.x,y:t.y}}function s_(e,t,{x:n,y:r,w:i,h:a},o){return n_(e,{x:n,y:r,w:i,h:a,r:3}),e.fillStyle=`${nV[t]}dd`,e.fill(),e.strokeStyle=nV[t],e.stroke(),e.fillStyle=nV.text,e.fillText(o,n,r),n_(e,{x:n,y:r,w:i,h:a,r:3}),e.fillStyle=`${nV[t]}dd`,e.fill(),e.strokeStyle=nV[t],e.stroke(),e.fillStyle=nV.text,e.fillText(o,n,r),{x:n,y:r,w:i,h:a}}function c_(e,t){e.font=`600 12px monospace`,e.textBaseline=`middle`,e.textAlign=`center`;let n=e.measureText(t),r=n.actualBoundingBoxAscent+n.actualBoundingBoxDescent;return{w:n.width+rV*2,h:r+rV*2}}function l_(e,t,{type:n,position:r=`center`,text:i},a,o=!1){let{x:s,y:c}=r_(r,t),{offsetX:l,offsetY:u}=i_(n,r,t,rV+1,o);s+=l,c+=u;let{w:d,h:f}=c_(e,i);if(a&&a_({x:s,y:c,w:d,h:f},a)){let e=o_(r,{x:s,y:c,w:d,h:f},a);s=e.x,c=e.y}return s_(e,n,{x:s,y:c,w:d,h:f},i)}function u_(e,{w:t,h:n}){let r=t*.5+rV,i=n*.5+rV;return{offsetX:(e.x===`left`?-1:1)*r,offsetY:(e.y===`top`?-1:1)*i}}function d_(e,t,{type:n,text:r}){let{floatingAlignment:i,extremities:a}=t,o=a[i.x],s=a[i.y],{w:c,h:l}=c_(e,r),{offsetX:u,offsetY:d}=u_(i,{w:c,h:l});return o+=u,s+=d,s_(e,n,{x:o,y:s,w:c,h:l},r)}function f_(e,t,n,r){let i=[];n.forEach((n,a)=>{i[a]=r&&n.position===`center`?d_(e,t,n):l_(e,t,n,i[a-1],r)})}function p_(e,t,n,r){let i=n.reduce((e,t)=>(Object.prototype.hasOwnProperty.call(e,t.position)||(e[t.position]=[]),e[t.position]?.push(t),e),{});i.top&&f_(e,t,i.top,r),i.right&&f_(e,t,i.right,r),i.bottom&&f_(e,t,i.bottom,r),i.left&&f_(e,t,i.left,r),i.center&&f_(e,t,i.center,r)}function m_(e){return parseInt(e.replace(`px`,``),10)}function h_(e){return Number.isInteger(e)?e:e.toFixed(2)}function g_(e){return e.filter(e=>e.text!==0&&e.text!==`0`)}function __(e){let t={top:q.window.scrollY,bottom:q.window.scrollY+q.window.innerHeight,left:q.window.scrollX,right:q.window.scrollX+q.window.innerWidth},n={top:Math.abs(t.top-e.top),bottom:Math.abs(t.bottom-e.bottom),left:Math.abs(t.left-e.left),right:Math.abs(t.right-e.right)};return{x:n.left>n.right?`left`:`right`,y:n.top>n.bottom?`top`:`bottom`}}function v_(e){let t=q.getComputedStyle(e),{top:n,left:r,right:i,bottom:a,width:o,height:s}=e.getBoundingClientRect(),{marginTop:c,marginBottom:l,marginLeft:u,marginRight:d,paddingTop:f,paddingBottom:p,paddingLeft:m,paddingRight:h,borderBottomWidth:g,borderTopWidth:_,borderLeftWidth:v,borderRightWidth:y}=t;n+=q.window.scrollY,r+=q.window.scrollX,a+=q.window.scrollY,i+=q.window.scrollX;let b={top:m_(c),bottom:m_(l),left:m_(u),right:m_(d)},x={top:m_(f),bottom:m_(p),left:m_(m),right:m_(h)},S={top:m_(_),bottom:m_(g),left:m_(v),right:m_(y)},C={top:n-b.top,bottom:a+b.bottom,left:r-b.left,right:i+b.right};return{margin:b,padding:x,border:S,top:n,left:r,bottom:a,right:i,width:o,height:s,extremities:C,floatingAlignment:__(C)}}function y_(e,{margin:t,width:n,height:r,top:i,left:a,bottom:o,right:s}){let c=r+t.bottom+t.top;return e.fillStyle=iV.margin,e.fillRect(a,i-t.top,n,t.top),e.fillRect(s,i-t.top,t.right,c),e.fillRect(a,o,n,t.bottom),e.fillRect(a-t.left,i-t.top,t.left,c),g_([{type:`margin`,text:h_(t.top),position:`top`},{type:`margin`,text:h_(t.right),position:`right`},{type:`margin`,text:h_(t.bottom),position:`bottom`},{type:`margin`,text:h_(t.left),position:`left`}])}function b_(e,{padding:t,border:n,width:r,height:i,top:a,left:o,bottom:s,right:c}){let l=r-n.left-n.right,u=i-t.top-t.bottom-n.top-n.bottom;return e.fillStyle=iV.padding,e.fillRect(o+n.left,a+n.top,l,t.top),e.fillRect(c-t.right-n.right,a+t.top+n.top,t.right,u),e.fillRect(o+n.left,s-t.bottom-n.bottom,l,t.bottom),e.fillRect(o+n.left,a+t.top+n.top,t.left,u),g_([{type:`padding`,text:t.top,position:`top`},{type:`padding`,text:t.right,position:`right`},{type:`padding`,text:t.bottom,position:`bottom`},{type:`padding`,text:t.left,position:`left`}])}function x_(e,{border:t,width:n,height:r,top:i,left:a,bottom:o,right:s}){let c=r-t.top-t.bottom;return e.fillStyle=iV.border,e.fillRect(a,i,n,t.top),e.fillRect(a,o-t.bottom,n,t.bottom),e.fillRect(a,i+t.top,t.left,c),e.fillRect(s-t.right,i+t.top,t.right,c),g_([{type:`border`,text:t.top,position:`top`},{type:`border`,text:t.right,position:`right`},{type:`border`,text:t.bottom,position:`bottom`},{type:`border`,text:t.left,position:`left`}])}function S_(e,{padding:t,border:n,width:r,height:i,top:a,left:o}){let s=r-n.left-n.right-t.left-t.right,c=i-t.top-t.bottom-n.top-n.bottom;return e.fillStyle=iV.content,e.fillRect(o+n.left+t.left,a+n.top+t.top,s,c),[{type:`content`,position:`center`,text:`${h_(s)} x ${h_(c)}`}]}function C_(e){return t=>{if(e&&t){let n=v_(e),r=y_(t,n),i=b_(t,n),a=x_(t,n),o=S_(t,n),s=n.width<=aV*3||n.height<=aV;p_(t,n,[...o,...i,...a,...r],s)}}}function w_(e){$g(C_(e))}function T_(e,t){sV=oV(e,t),w_(sV)}function E_(e){return b`
|
||
${e} body {
|
||
outline: 1px solid #2980b9 !important;
|
||
}
|
||
|
||
${e} article {
|
||
outline: 1px solid #3498db !important;
|
||
}
|
||
|
||
${e} nav {
|
||
outline: 1px solid #0088c3 !important;
|
||
}
|
||
|
||
${e} aside {
|
||
outline: 1px solid #33a0ce !important;
|
||
}
|
||
|
||
${e} section {
|
||
outline: 1px solid #66b8da !important;
|
||
}
|
||
|
||
${e} header {
|
||
outline: 1px solid #99cfe7 !important;
|
||
}
|
||
|
||
${e} footer {
|
||
outline: 1px solid #cce7f3 !important;
|
||
}
|
||
|
||
${e} h1 {
|
||
outline: 1px solid #162544 !important;
|
||
}
|
||
|
||
${e} h2 {
|
||
outline: 1px solid #314e6e !important;
|
||
}
|
||
|
||
${e} h3 {
|
||
outline: 1px solid #3e5e85 !important;
|
||
}
|
||
|
||
${e} h4 {
|
||
outline: 1px solid #449baf !important;
|
||
}
|
||
|
||
${e} h5 {
|
||
outline: 1px solid #c7d1cb !important;
|
||
}
|
||
|
||
${e} h6 {
|
||
outline: 1px solid #4371d0 !important;
|
||
}
|
||
|
||
${e} main {
|
||
outline: 1px solid #2f4f90 !important;
|
||
}
|
||
|
||
${e} address {
|
||
outline: 1px solid #1a2c51 !important;
|
||
}
|
||
|
||
${e} div {
|
||
outline: 1px solid #036cdb !important;
|
||
}
|
||
|
||
${e} p {
|
||
outline: 1px solid #ac050b !important;
|
||
}
|
||
|
||
${e} hr {
|
||
outline: 1px solid #ff063f !important;
|
||
}
|
||
|
||
${e} pre {
|
||
outline: 1px solid #850440 !important;
|
||
}
|
||
|
||
${e} blockquote {
|
||
outline: 1px solid #f1b8e7 !important;
|
||
}
|
||
|
||
${e} ol {
|
||
outline: 1px solid #ff050c !important;
|
||
}
|
||
|
||
${e} ul {
|
||
outline: 1px solid #d90416 !important;
|
||
}
|
||
|
||
${e} li {
|
||
outline: 1px solid #d90416 !important;
|
||
}
|
||
|
||
${e} dl {
|
||
outline: 1px solid #fd3427 !important;
|
||
}
|
||
|
||
${e} dt {
|
||
outline: 1px solid #ff0043 !important;
|
||
}
|
||
|
||
${e} dd {
|
||
outline: 1px solid #e80174 !important;
|
||
}
|
||
|
||
${e} figure {
|
||
outline: 1px solid #ff00bb !important;
|
||
}
|
||
|
||
${e} figcaption {
|
||
outline: 1px solid #bf0032 !important;
|
||
}
|
||
|
||
${e} table {
|
||
outline: 1px solid #00cc99 !important;
|
||
}
|
||
|
||
${e} caption {
|
||
outline: 1px solid #37ffc4 !important;
|
||
}
|
||
|
||
${e} thead {
|
||
outline: 1px solid #98daca !important;
|
||
}
|
||
|
||
${e} tbody {
|
||
outline: 1px solid #64a7a0 !important;
|
||
}
|
||
|
||
${e} tfoot {
|
||
outline: 1px solid #22746b !important;
|
||
}
|
||
|
||
${e} tr {
|
||
outline: 1px solid #86c0b2 !important;
|
||
}
|
||
|
||
${e} th {
|
||
outline: 1px solid #a1e7d6 !important;
|
||
}
|
||
|
||
${e} td {
|
||
outline: 1px solid #3f5a54 !important;
|
||
}
|
||
|
||
${e} col {
|
||
outline: 1px solid #6c9a8f !important;
|
||
}
|
||
|
||
${e} colgroup {
|
||
outline: 1px solid #6c9a9d !important;
|
||
}
|
||
|
||
${e} button {
|
||
outline: 1px solid #da8301 !important;
|
||
}
|
||
|
||
${e} datalist {
|
||
outline: 1px solid #c06000 !important;
|
||
}
|
||
|
||
${e} fieldset {
|
||
outline: 1px solid #d95100 !important;
|
||
}
|
||
|
||
${e} form {
|
||
outline: 1px solid #d23600 !important;
|
||
}
|
||
|
||
${e} input {
|
||
outline: 1px solid #fca600 !important;
|
||
}
|
||
|
||
${e} keygen {
|
||
outline: 1px solid #b31e00 !important;
|
||
}
|
||
|
||
${e} label {
|
||
outline: 1px solid #ee8900 !important;
|
||
}
|
||
|
||
${e} legend {
|
||
outline: 1px solid #de6d00 !important;
|
||
}
|
||
|
||
${e} meter {
|
||
outline: 1px solid #e8630c !important;
|
||
}
|
||
|
||
${e} optgroup {
|
||
outline: 1px solid #b33600 !important;
|
||
}
|
||
|
||
${e} option {
|
||
outline: 1px solid #ff8a00 !important;
|
||
}
|
||
|
||
${e} output {
|
||
outline: 1px solid #ff9619 !important;
|
||
}
|
||
|
||
${e} progress {
|
||
outline: 1px solid #e57c00 !important;
|
||
}
|
||
|
||
${e} select {
|
||
outline: 1px solid #e26e0f !important;
|
||
}
|
||
|
||
${e} textarea {
|
||
outline: 1px solid #cc5400 !important;
|
||
}
|
||
|
||
${e} details {
|
||
outline: 1px solid #33848f !important;
|
||
}
|
||
|
||
${e} summary {
|
||
outline: 1px solid #60a1a6 !important;
|
||
}
|
||
|
||
${e} command {
|
||
outline: 1px solid #438da1 !important;
|
||
}
|
||
|
||
${e} menu {
|
||
outline: 1px solid #449da6 !important;
|
||
}
|
||
|
||
${e} del {
|
||
outline: 1px solid #bf0000 !important;
|
||
}
|
||
|
||
${e} ins {
|
||
outline: 1px solid #400000 !important;
|
||
}
|
||
|
||
${e} img {
|
||
outline: 1px solid #22746b !important;
|
||
}
|
||
|
||
${e} iframe {
|
||
outline: 1px solid #64a7a0 !important;
|
||
}
|
||
|
||
${e} embed {
|
||
outline: 1px solid #98daca !important;
|
||
}
|
||
|
||
${e} object {
|
||
outline: 1px solid #00cc99 !important;
|
||
}
|
||
|
||
${e} param {
|
||
outline: 1px solid #37ffc4 !important;
|
||
}
|
||
|
||
${e} video {
|
||
outline: 1px solid #6ee866 !important;
|
||
}
|
||
|
||
${e} audio {
|
||
outline: 1px solid #027353 !important;
|
||
}
|
||
|
||
${e} source {
|
||
outline: 1px solid #012426 !important;
|
||
}
|
||
|
||
${e} canvas {
|
||
outline: 1px solid #a2f570 !important;
|
||
}
|
||
|
||
${e} track {
|
||
outline: 1px solid #59a600 !important;
|
||
}
|
||
|
||
${e} map {
|
||
outline: 1px solid #7be500 !important;
|
||
}
|
||
|
||
${e} area {
|
||
outline: 1px solid #305900 !important;
|
||
}
|
||
|
||
${e} a {
|
||
outline: 1px solid #ff62ab !important;
|
||
}
|
||
|
||
${e} em {
|
||
outline: 1px solid #800b41 !important;
|
||
}
|
||
|
||
${e} strong {
|
||
outline: 1px solid #ff1583 !important;
|
||
}
|
||
|
||
${e} i {
|
||
outline: 1px solid #803156 !important;
|
||
}
|
||
|
||
${e} b {
|
||
outline: 1px solid #cc1169 !important;
|
||
}
|
||
|
||
${e} u {
|
||
outline: 1px solid #ff0430 !important;
|
||
}
|
||
|
||
${e} s {
|
||
outline: 1px solid #f805e3 !important;
|
||
}
|
||
|
||
${e} small {
|
||
outline: 1px solid #d107b2 !important;
|
||
}
|
||
|
||
${e} abbr {
|
||
outline: 1px solid #4a0263 !important;
|
||
}
|
||
|
||
${e} q {
|
||
outline: 1px solid #240018 !important;
|
||
}
|
||
|
||
${e} cite {
|
||
outline: 1px solid #64003c !important;
|
||
}
|
||
|
||
${e} dfn {
|
||
outline: 1px solid #b4005a !important;
|
||
}
|
||
|
||
${e} sub {
|
||
outline: 1px solid #dba0c8 !important;
|
||
}
|
||
|
||
${e} sup {
|
||
outline: 1px solid #cc0256 !important;
|
||
}
|
||
|
||
${e} time {
|
||
outline: 1px solid #d6606d !important;
|
||
}
|
||
|
||
${e} code {
|
||
outline: 1px solid #e04251 !important;
|
||
}
|
||
|
||
${e} kbd {
|
||
outline: 1px solid #5e001f !important;
|
||
}
|
||
|
||
${e} samp {
|
||
outline: 1px solid #9c0033 !important;
|
||
}
|
||
|
||
${e} var {
|
||
outline: 1px solid #d90047 !important;
|
||
}
|
||
|
||
${e} mark {
|
||
outline: 1px solid #ff0053 !important;
|
||
}
|
||
|
||
${e} bdi {
|
||
outline: 1px solid #bf3668 !important;
|
||
}
|
||
|
||
${e} bdo {
|
||
outline: 1px solid #6f1400 !important;
|
||
}
|
||
|
||
${e} ruby {
|
||
outline: 1px solid #ff7b93 !important;
|
||
}
|
||
|
||
${e} rt {
|
||
outline: 1px solid #ff2f54 !important;
|
||
}
|
||
|
||
${e} rp {
|
||
outline: 1px solid #803e49 !important;
|
||
}
|
||
|
||
${e} span {
|
||
outline: 1px solid #cc2643 !important;
|
||
}
|
||
|
||
${e} br {
|
||
outline: 1px solid #db687d !important;
|
||
}
|
||
|
||
${e} wbr {
|
||
outline: 1px solid #db175b !important;
|
||
}`}function D_(){return[(fV.default??fV)(),(_B.default??_B)(),(QB.default??QB)(),(bV.default??bV)(),(AV.default??AV)(),($z.default??$z)(),(yB.default??yB)(),(EV.default??EV)(),(SB.default??SB)()]}function O_(e){return typeof e==`object`&&!!e&&`_tag`in e&&e?._tag===`Meta`}function k_(e){return typeof e==`object`&&!!e&&`_tag`in e&&e?._tag===`Story`}function A_(e){return`__children`in e?e.__children:[]}function j_(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}function M_(e,{includeStories:t,excludeStories:n}){return e!==`__esModule`&&(!t||j_(e,t))&&(!n||!j_(e,n))}function N_(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function P_(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}function F_(e){if(!e||typeof e!=`object`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)===`[object Object]`:!1}function I_(e,t){let n={},r=Object.keys(e);for(let i=0;i<r.length;i++){let a=r[i],o=e[a];n[a]=t(o,a,e)}return n}function L_(e,t){let n={},r=Object.keys(e);for(let i=0;i<r.length;i++){let a=r[i],o=e[a];t(o,a)&&(n[a]=o)}return n}function R_(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function z_(e,t,n){return B_(e,t,void 0,void 0,void 0,void 0,n)}function B_(e,t,n,r,i,a,o){let s=o(e,t,n,r,i,a);if(s!==void 0)return s;if(typeof e==typeof t)switch(typeof e){case`bigint`:case`string`:case`boolean`:case`symbol`:case`undefined`:return e===t;case`number`:return e===t||Object.is(e,t);case`function`:return e===t;case`object`:return V_(e,t,a,o)}return V_(e,t,a,o)}function V_(e,t,n,r){if(Object.is(e,t))return!0;let i=P_(e),a=P_(t);if(i===VV&&(i=YV),a===VV&&(a=YV),i!==a)return!1;switch(i){case RV:return e.toString()===t.toString();case zV:return R_(e.valueOf(),t.valueOf());case BV:case UV:case HV:return Object.is(e.valueOf(),t.valueOf());case LV:return e.source===t.source&&e.flags===t.flags;case qV:return e===t}n??=new Map;let o=n.get(e),s=n.get(t);if(o!=null&&s!=null)return o===t;n.set(e,t),n.set(t,e);try{switch(i){case WV:if(e.size!==t.size)return!1;for(let[i,a]of e.entries())if(!t.has(i)||!B_(a,t.get(i),i,e,t,n,r))return!1;return!0;case GV:{if(e.size!==t.size)return!1;let i=Array.from(e.values()),a=Array.from(t.values());for(let o=0;o<i.length;o++){let s=i[o],c=a.findIndex(i=>B_(s,i,void 0,e,t,n,r));if(c===-1)return!1;a.splice(c,1)}return!0}case KV:case QV:case $V:case eH:case tH:case nH:case rH:case iH:case aH:case oH:case sH:case cH:if(typeof Buffer<`u`&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!B_(e[i],t[i],i,e,t,n,r))return!1;return!0;case JV:return e.byteLength===t.byteLength?V_(new Uint8Array(e),new Uint8Array(t),n,r):!1;case ZV:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:V_(new Uint8Array(e),new Uint8Array(t),n,r);case XV:return e.name===t.name&&e.message===t.message;case YV:{if(!(V_(e.constructor,t.constructor,n,r)||F_(e)&&F_(t)))return!1;let i=[...Object.keys(e),...N_(e)],a=[...Object.keys(t),...N_(t)];if(i.length!==a.length)return!1;for(let a=0;a<i.length;a++){let o=i[a],s=e[o];if(!Object.hasOwn(t,o))return!1;let c=t[o];if(!B_(s,c,o,e,t,n,r))return!1}return!0}default:return!1}}finally{n.delete(e),n.delete(t)}}function H_(){}function U_(e,t){return z_(e,t,H_)}function W_({args:e,argTypes:t}){let n={};return Object.entries(e).forEach(([e,r])=>{let{target:i=_H}=t[e]||{};n[i]=n[i]||{},n[i][e]=r}),n}function G_(e){return Object.keys(e).forEach(t=>e[t]===void 0&&delete e[t]),e}function K_(e,t,n){let r=t,i=typeof t==`function`?t:null,{story:a}=r;a&&(XT.debug(`deprecated story`,a),$T(OH));let o=FV(e),s=typeof r!=`function`&&r.name||r.storyName||a?.name||o,c=[...DH(r.decorators),...DH(a?.decorators)],l={...a?.parameters,...r.parameters},u={...a?.args,...r.args},d={...a?.argTypes,...r.argTypes},f=[...DH(r.loaders),...DH(a?.loaders)],p=[...DH(r.beforeEach),...DH(a?.beforeEach)],m=[...DH(r.afterEach),...DH(a?.afterEach)],{render:h,play:g,tags:_=[],globals:v={}}=r;return{moduleExport:t,id:l.__id||NV(n.id,o),name:s,tags:_,decorators:c,parameters:l,args:u,argTypes:EH(d),loaders:f,beforeEach:p,afterEach:m,globals:v,...h&&{render:h},...i&&{userStoryFn:i},...g&&{play:g}}}function q_(e,t=e.title,n){let{id:r,argTypes:i}=e;return{id:jV(r||t),...e,title:t,...i&&{argTypes:EH(i)},parameters:{fileName:n,...e.parameters}}}function J_(e,t,n){let{default:r,__namedExportsOrder:i,...a}=e,o=Object.values(a).find(e=>k_(e));if(o){let r=q_(o.meta.input,n,t);jH(r.parameters);let i={meta:r,stories:{},moduleExports:e};return Object.keys(a).forEach(e=>{if(M_(e,r)&&k_(a[e])){let t=a[e],n=K_(e,t.input,r);jH(n.parameters),i.stories[n.id]=n,A_(t).forEach(e=>{let t=e.input.name,a=PV(n.id,t);e.input.parameters??={},e.input.parameters.__id=a,i.stories[a]=K_(t,e.input,r)})}}),i.projectAnnotations=o.meta.preview.composed,i}let s=q_(r,n,t);jH(s.parameters);let c={meta:s,stories:{},moduleExports:e};return Object.keys(a).forEach(e=>{if(M_(e,s)){let t=K_(e,a[e],s);jH(t.parameters),c.stories[t.id]=t}}),c}function Y_(e,t,n){let r=n(e);return e=>t(r,e)}function X_({componentId:e,title:t,kind:n,id:r,name:i,story:a,parameters:o,initialArgs:s,argTypes:c,...l}={}){return l}function Z_(e,t){let n={},r=e=>t=>{if(!n.value)throw Error(`Decorated function called without init`);return n.value={...n.value,...X_(t)},e(n.value)},i=t.reduce((e,t)=>Y_(e,t,r),e);return e=>(n.value=e,i(e))}function Q_(e,t,n){let{moduleExport:r,id:i,name:a}=e||{},o=ev(e,t,n),s=async r=>{let i={};for(let a of[DH(n.loaders),DH(t.loaders),DH(e.loaders)]){if(r.abortSignal.aborted)return i;let e=await Promise.all(a.map(e=>e(r)));Object.assign(i,...e)}return i},c=async r=>{let i=[];for(let a of[...DH(n.beforeEach),...DH(t.beforeEach),...DH(e.beforeEach)]){if(r.abortSignal.aborted)return i;let e=await a(r);e&&i.push(e)}return i},l=async r=>{let i=[...DH(n.afterEach),...DH(t.afterEach),...DH(e.afterEach)].reverse();for(let e of i){if(r.abortSignal.aborted)return;await e(r)}},u=e=>e.originalStoryFn(e.args,e),{applyDecorators:d=Z_,runStep:f}=n,p=[...DH(e?.decorators),...DH(t?.decorators),...DH(n?.decorators)],m=e?.userStoryFn||e?.render||t.render||n.render,h=Zk(d)(u,p),g=e=>h(e),_=e?.play??t?.play,v=Qe(_);if(!m&&!v)throw new xk({id:i});let y=e.mount??t.mount??n.mount??(e=>async()=>(await e.renderToCanvas(),e.canvas)),b=n.testingLibraryRender;return{storyGlobals:{},...o,moduleExport:r,id:i,name:a,story:a,originalStoryFn:m,undecoratedStoryFn:u,unboundStoryFn:g,applyLoaders:s,applyBeforeEach:c,applyAfterEach:l,playFunction:_,runStep:f,mount:y,testingLibraryRender:b,renderToCanvas:n.renderToCanvas,usesMount:v}}function $_(e,t,n){return{...ev(void 0,e,t),moduleExport:n}}function ev(e,t,n){let r=[aA.DEV,aA.TEST],i=q.DOCS_OPTIONS?.autodocs===!0?[aA.AUTODOCS]:[],a=e?.tags?.includes(aA.TEST_FN)?[`!${aA.AUTODOCS}`]:[],o=IV(...r,...i,...n.tags??[],...t.tags??[],...a,...e?.tags??[]),s=MH(n.parameters,t.parameters,e?.parameters),{argTypesEnhancers:c=[],argsEnhancers:l=[]}=n,u=MH(n.argTypes,t.argTypes,e?.argTypes);if(e){let r=e?.userStoryFn||e?.render||t.render||n.render;s.__isArgsStory=r&&r.length>0}let d={...n.args,...t.args,...e?.args},f={...t.globals,...e?.globals},p={componentId:t.id,title:t.title,kind:t.title,id:e?.id||t.id,name:e?.name||`__meta`,story:e?.name||`__meta`,component:t.component,subcomponents:t.subcomponents,tags:o,parameters:s,initialArgs:d,argTypes:u,storyGlobals:f};p.argTypes=c.reduce((e,t)=>t({...p,argTypes:e}),p.argTypes);let m={...d};p.initialArgs=[...l].reduce((e,t)=>({...e,...t({...p,initialArgs:e})}),m);let{name:h,story:g,..._}=p;return _}function tv(e){let{args:t}=e,n={...e,allArgs:void 0,argsByTarget:void 0};if(q.FEATURES?.argTypeTargetsV7){let t=W_(e);n={...e,allArgs:e.args,argsByTarget:t,args:t[_H]||{}}}let r=Object.entries(n.args).reduce((e,[t,r])=>{if(!n.argTypes[t]?.mapping)return e[t]=r,e;let i=e=>{let r=n.argTypes[t].mapping;return r&&e in r?r[e]:e};return e[t]=Array.isArray(r)?r.map(i):i(r),e},{}),i=Object.entries(r).reduce((e,[t,i])=>(iA(n.argTypes[t]||{},r,n.globals)&&(e[t]=i),e),{});return{...n,unmappedArgs:t,args:i}}function nv({argTypes:e,argTypesEnhancers:t,decorators:n,loaders:r,beforeEach:i,afterEach:a,initialGlobals:o,...s}){return{...e&&{argTypes:EH(e)},decorators:DH(n),loaders:DH(r),beforeEach:DH(i),afterEach:DH(a),argTypesEnhancers:[...t||[],PH,RH],initialGlobals:o,...s}}function rv(e){return async(t,n,r)=>{await e.reduceRight((e,n)=>async()=>n(t,e,r),async()=>n(r))()}}function iv(e,t){return e.map(e=>e.default?.[t]??e[t]).filter(Boolean)}function av(e,t,n={}){return iv(e,t).reduce((e,t)=>{let r=DH(t);return n.reverseFileOrder?[...r,...e]:[...e,...r]},[])}function ov(e,t){return Object.assign({},...iv(e,t))}function sv(e,t){return iv(e,t).pop()}function cv(e){let t=av(e,`argTypesEnhancers`),n=iv(e,`runStep`),r=av(e,`beforeAll`);return{parameters:MH(...iv(e,`parameters`)),decorators:av(e,`decorators`,{reverseFileOrder:!(q.FEATURES?.legacyDecoratorFileOrder??!1)}),args:ov(e,`args`),argsEnhancers:av(e,`argsEnhancers`),argTypes:ov(e,`argTypes`),argTypesEnhancers:[...t.filter(e=>!e.secondPass),...t.filter(e=>e.secondPass)],initialGlobals:ov(e,`initialGlobals`),globalTypes:ov(e,`globalTypes`),loaders:av(e,`loaders`),beforeAll:zH(r),beforeEach:av(e,`beforeEach`),afterEach:av(e,`afterEach`),render:sv(e,`render`),renderToCanvas:sv(e,`renderToCanvas`),applyDecorators:sv(e,`applyDecorators`),runStep:rv(n),tags:av(e,`tags`),mount:sv(e,`mount`),testingLibraryRender:sv(e,`testingLibraryRender`)}}function lv(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}function uv(e=!0){if(!(`document`in globalThis&&`createElement`in globalThis.document))return()=>{};let t=document.createElement(`style`);t.textContent=`*, *:before, *:after {
|
||
animation: none !important;
|
||
}`,document.head.appendChild(t);let n=document.createElement(`style`);return n.textContent=`*, *:before, *:after {
|
||
animation-delay: 0s !important;
|
||
animation-direction: ${e?`reverse`:`normal`} !important;
|
||
animation-play-state: paused !important;
|
||
transition: none !important;
|
||
}`,document.head.appendChild(n),document.body.clientHeight,document.head.removeChild(t),()=>{n.parentNode?.removeChild(n)}}async function dv(e){if(!(`document`in globalThis&&`getAnimations`in globalThis.document&&`querySelectorAll`in globalThis.document))return;let t=!1;await Promise.race([new Promise(n=>{setTimeout(()=>{let r=[globalThis.document,...fv(globalThis.document)],i=async()=>{if(t||e?.aborted)return;let n=r.flatMap(e=>e?.getAnimations?.()||[]).filter(e=>e.playState===`running`&&!pv(e));n.length>0&&(await Promise.allSettled(n.map(async e=>e.finished)),await i())};i().then(n)},100)}),new Promise(e=>setTimeout(()=>{t=!0,e(void 0)},5e3))])}function fv(e){return[e,...e.querySelectorAll(`*`)].reduce((e,t)=>(`shadowRoot`in t&&t.shadowRoot&&e.push(t.shadowRoot,...fv(t.shadowRoot)),e),[])}function pv(e){if(e instanceof CSSAnimation&&e.effect instanceof KeyframeEffect&&e.effect.target){let t=getComputedStyle(e.effect.target,e.effect.pseudoElement),n=t.animationName?.split(`, `).indexOf(e.animationName);return t.animationIterationCount.split(`, `)[n]===`infinite`}return!1}function mv(e,t,n){return k_(e)?{story:e.input,meta:e.meta.input,preview:e.meta.preview.composed}:{story:e,meta:O_(t)?t.input:t,preview:n}}function hv(e){globalThis.defaultProjectAnnotations=e}function gv(e){return e?cv([e]):{}}function _v(e){let t=Array.isArray(e)?e:[e];return globalThis.globalProjectAnnotations=cv([...D_(),globalThis.defaultProjectAnnotations??{},cv(t.map(gv))]),globalThis.globalProjectAnnotations??{}}function vv(e,t,n,r,i){if(e===void 0)throw Error(`Expected a story but received undefined.`);t.title=t.title??VH;let a=q_(t),o=i||e.storyName||e.story?.name||e.name||HH,s=K_(o,e,a),c=nv(cv([r??globalThis.globalProjectAnnotations??{},n??{}])),l=Q_(s,a,c),u={...yH(c.globalTypes),...c.initialGlobals,...l.storyGlobals},d=new BH,f=()=>{let e=tv({hooks:new Jk,globals:u,args:{...l.initialArgs},viewMode:`story`,reporting:d,loaded:{},abortSignal:new AbortController().signal,step:(t,n)=>l.runStep(t,n,e),canvasElement:null,canvas:{},userEvent:{},globalTypes:c.globalTypes,...l,context:null,mount:null});return e.parameters.__isPortableStory=!0,e.context=e,l.renderToCanvas&&(e.renderToCanvas=async()=>{let t=await l.renderToCanvas?.({componentId:l.componentId,title:l.title,id:l.id,name:l.name,tags:l.tags,showMain:()=>{},showError:e=>{throw Error(`${e.title}
|
||
${e.description}`)},showException:e=>{throw e},forceRemount:!0,storyContext:e,storyFn:()=>l.unboundStoryFn(e),unboundStoryFn:l.unboundStoryFn},e.canvasElement);t&&UH.push(t)}),e.mount=l.mount(e),e},p,m=async e=>{let t=f();return t.canvasElement??=globalThis?.document?.body,p&&(t.loaded=p.loaded),Object.assign(t,e),l.playFunction(t)},h=e=>{let t=f();return Object.assign(t,e),xv(l,t)},g=l.playFunction?m:void 0;return Object.assign(function(e){let t=f();return p&&(t.loaded=p.loaded),t.args={...t.initialArgs,...e},l.unboundStoryFn(t)},{id:l.id,storyName:o,load:async()=>{for(let e of[...UH].reverse())await e();UH.length=0;let e=f();e.loaded=await l.applyLoaders(e),UH.push(...(await l.applyBeforeEach(e)).filter(Boolean)),p=e},globals:u,args:l.initialArgs,parameters:l.parameters,argTypes:l.argTypes,play:g,run:h,reporting:d,tags:l.tags})}function yv(e,t,n=WH){let{default:r,__esModule:i,__namedExportsOrder:a,...o}=e,s=r;return Object.entries(o).reduce((e,[r,i])=>{let{story:a,meta:o}=mv(i);return!s&&o&&(s=o),M_(r,s)?Object.assign(e,{[r]:n(a,s,t,r)}):e},{})}function bv(e){return e.extend({mount:async({mount:e,page:t},n)=>{await n(async(n,...r)=>{if(!(`__pw_type`in n)||`__pw_type`in n&&n.__pw_type!==`jsx`)throw Error(b`
|
||
Portable stories in Playwright CT only work when referencing JSX elements.
|
||
Please use JSX format for your components such as:
|
||
|
||
instead of:
|
||
await mount(MyComponent, { props: { foo: 'bar' } })
|
||
|
||
do:
|
||
await mount(<MyComponent foo="bar"/>)
|
||
|
||
More info: https://storybook.js.org/docs/api/portable-stories/portable-stories-playwright?ref=error
|
||
`);let{props:i,...a}=n;await t.evaluate(async e=>{let t=await globalThis.__pwUnwrapObject?.(e);return(`__pw_type`in t?t.type:t)?.load?.()},a);let o=await e(n,...r);return await t.evaluate(async e=>{let t=await globalThis.__pwUnwrapObject?.(e),n=`__pw_type`in t?t.type:t,r=document.querySelector(`#root`);return n?.play?.({canvasElement:r})},a),o})}})}async function xv(e,t){for(let e of[...UH].reverse())await e();if(UH.length=0,!t.canvasElement){let e=document.createElement(`div`);globalThis?.document?.body?.appendChild(e),t.canvasElement=e,UH.push(()=>{globalThis?.document?.body?.contains(e)&&globalThis?.document?.body?.removeChild(e)})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;UH.push(...(await e.applyBeforeEach(t)).filter(Boolean));let n=e.playFunction,r=e.usesMount;if(r||await t.mount(),t.abortSignal.aborted)return;n&&(r||(t.mount=async()=>{throw new bk({playFunction:n.toString()})}),await n(t));let i;lv()?i=uv():await dv(t.abortSignal),await e.applyAfterEach(t),await i?.()}function Sv(e){return e.startsWith(`\\\\?\\`)?e:e.replace(/\\/g,`/`)}function Cv(e){return e.flatMap(e=>e.split(`/`)).filter(Boolean).join(`/`)}function wv(e){try{let{name:t=`Error`,message:n=String(e),stack:r}=e;return{name:t,message:n,stack:r}}catch{return{name:`Error`,message:String(e)}}}function Tv(e){let t=e.composedPath&&e.composedPath()[0]||e.target;return/input|textarea/i.test(t.tagName)||t.getAttribute(`contenteditable`)!==null}function Ev({tags:e}){return e?.includes(aA.UNATTACHED_MDX)||e?.includes(aA.ATTACHED_MDX)}function Dv(e){return e.type===`story`}function Ov(e){return e.type===`docs`}function kv(e){return Ov(e)&&e.subtype===`csf`}function Av(e){let t=(e||``).match(/^\/story\/(.+)/);if(!t)throw Error(`Invalid path '${e}', must start with '/story/'`);return t[1]}function jv(){let e=zU.createEvent(`Event`);e.initEvent(`DOMContentLoaded`,!0,!0),zU.dispatchEvent(e)}function Mv(e,t,n){let r=zU.createElement(`script`);r.type=e.type===`module`?`module`:`text/javascript`,e.src?(r.onload=t,r.onerror=t,r.src=e.src):r.textContent=e.innerText,n?n.appendChild(r):zU.head.appendChild(r),e.parentNode.removeChild(e),e.src||t()}function Nv(e,t,n=0){e[n](()=>{n++,n===e.length?t():Nv(e,t,n)})}function Pv(e){let t=zU.getElementById(HU);t?t.innerHTML=``:(t=zU.createElement(`div`),t.id=HU,zU.body.appendChild(t));let n=Array.from(e.querySelectorAll(VU));if(n.length){let e=[];n.forEach(n=>{let r=n.getAttribute(`type`);(!r||BU.includes(r))&&e.push(e=>Mv(n,e,t))}),e.length&&Nv(e,jv,void 0)}else jv()}async function Fv(e,t){let n=t.parameters?.docs?.source?.transform,{id:r,unmappedArgs:i}=t,a=n&&e?n?.(e,t):e,o=a?await a:void 0;qk.getChannel().emit(qU,{id:r,source:o,args:i})}function Iv(e,t={}){let n={...JU,...t},r=function(...r){if(t.implicit){let t=(`__STORYBOOK_PREVIEW__`in q?q.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(e=>e.phase===`playing`||e.phase===`rendering`);if(t){let n=!globalThis?.FEATURES?.disallowImplicitActionsInRenderV8,r=new uk({phase:t.phase,name:e,deprecated:n});if(n)console.warn(r);else throw r}}let i=qk.getChannel(),a=Date.now().toString(36)+Math.random().toString(36).substring(2),o=r.map(QU),s={id:a,count:0,data:{name:e,args:r.length>1?o:o[0]},options:{...n,maxDepth:5+(n.depth||3)}};i.emit(Vk,s)};return r.isAction=!0,r.implicit=t.implicit,r}async function Lv(){let e=new URL(window.location.href);if(e.searchParams.get(`navigator`)!==`true`||globalThis.__STORYBOOK_PREVIEW_NAVIGATOR__)return;globalThis.__STORYBOOK_PREVIEW_NAVIGATOR__=!0;let t=await(await fetch(`/index.json`)).json(),n=e.searchParams.get(`id`);if(!n){let n=Object.values(t.entries)[0];n&&(e.searchParams.set(`id`,n.id),e.searchParams.set(`viewMode`,n.type),window.location.href=e.toString());return}tW(t,n)}function Rv(){return rW||=new nW.default(q.navigator?.userAgent).getBrowserInfo(),rW}function zv(e){return e.browserInfo=Rv(),e}function Bv(e){let t=e.error||e;t.fromStorybook&&q.sendTelemetryError(t)}function Vv({reason:e}){e.fromStorybook&&q.sendTelemetryError(e)}function Hv(){IT.forEach(e=>{q[FT[e]]=eW[e]}),q.sendTelemetryError=e=>{q.__STORYBOOK_ADDONS_CHANNEL__.emit(xT,zv(e))},document.addEventListener(`DOMContentLoaded`,()=>{q.__STORYBOOK_ADDONS_CHANNEL__.on(AT,e=>{e?document.body.setAttribute(`inert`,`true`):document.body.removeAttribute(`inert`)})}),q.addEventListener(`error`,Bv),q.addEventListener(`unhandledrejection`,Vv),Lv()}var Uv,Wv,Gv,Kv,qv,Jv,Yv,K,Xv,Zv,Qv,$v,ey,ty,ny,ry,iy,ay,oy,sy,cy,ly,uy,dy,fy,py,my,hy,gy,_y,vy,yy,by,xy,Sy,Cy,wy,Ty,Ey,Dy,Oy,ky,Ay,jy,My,Ny,Py,Fy,Iy,Ly,Ry,zy,By,Vy,Hy,Uy,Wy,Gy,Ky,qy,Jy,Yy,Xy,Zy,Qy,$y,eb,tb,nb,rb,ib,ab,ob,sb,cb,lb,ub,db,fb,pb,mb,hb,gb,_b,vb,yb,bb,xb,Sb,Cb,wb,Tb,Eb,Db,Ob,kb,Ab,jb,Mb,Nb,Pb,Fb,Ib,Lb,Rb,zb,Bb,Vb,Hb,Ub,Wb,Gb,Kb,qb,Jb,Yb,Xb,Zb,Qb,$b,ex,tx,nx,rx,ix,ax,ox,sx,cx,lx,ux,dx,fx,px,mx,hx,gx,_x,vx,yx,bx,xx,Sx,Cx,wx,Tx,Ex,Dx,Ox,kx,Ax,jx,Mx,Nx,Px,Fx,Ix,Lx,Rx,zx,Bx,Vx,Hx,Ux,Wx,Gx,Kx,qx,Jx,Yx,Xx,Zx,Qx,$x,eS,tS,nS,rS,iS,aS,oS,sS,cS,lS,uS,dS,fS,pS,mS,hS,gS,_S,vS,yS,bS,xS,SS,CS,wS,TS,ES,DS,OS,kS,AS,jS,MS,NS,PS,FS,IS,LS,RS,zS,BS,VS,HS,US,WS,GS,KS,qS,JS,YS,XS,ZS,QS,$S,eC,tC,nC,rC,iC,aC,oC,sC,cC,lC,uC,dC,fC,pC,mC,hC,gC,_C,vC,yC,bC,xC,SC,CC,wC,TC,EC,DC,OC,kC,AC,jC,MC,NC,PC,FC,IC,LC,RC,zC,BC,VC,HC,UC,WC,GC,KC,qC,JC,YC,XC,ZC,QC,$C,ew,tw,nw,rw,iw,aw,ow,sw,cw,lw,uw,dw,fw,pw,mw,hw,gw,_w,vw,yw,bw,xw,Sw,Cw,ww,Tw,Ew,Dw,Ow,kw,Aw,jw,Mw,Nw,Pw,Fw,Iw,Lw,Rw,zw,Bw,Vw,Hw,Uw,Ww,Gw,Kw,qw,Jw,Yw,Xw,Zw,Qw,$w,eT,tT,nT,rT,iT,aT,oT,sT,cT,lT,uT,dT,fT,pT,mT,hT,gT,_T,vT,yT,bT,xT,ST,CT,wT,TT,ET,DT,OT,kT,AT,jT,MT,NT,PT,q,FT,IT,LT,RT,zT,BT,VT,HT,UT,WT,GT,KT,qT,JT,YT,XT,ZT,QT,$T,eE,tE,nE,rE,iE,aE,oE,J,sE,cE,lE,uE,dE,fE,pE,mE,hE,gE,_E,vE,yE,bE,xE,SE,CE,wE,TE,EE,DE,OE,kE,AE,jE,ME,NE,PE,FE,IE,LE,RE,zE,BE,VE,HE,UE,WE,GE,KE,qE,JE,YE,XE,ZE,QE,$E,eD,tD,nD,rD,iD,aD,oD,sD,cD,lD,uD,dD,fD,pD,mD,hD,gD,_D,vD,yD,bD,xD,SD,CD,wD,TD,ED,DD,OD,kD,AD,jD,MD,ND,PD,FD,ID,LD,RD,zD,BD,VD,HD,UD,WD,GD,KD,qD,JD,YD,XD,ZD,QD,$D,eO,tO,nO,rO,iO,aO,oO,sO,cO,lO,uO,dO,fO,pO,mO,hO,gO,_O,vO,yO,bO,xO,SO,CO,wO,TO,EO,DO,OO,kO,AO,jO,MO,NO,PO,FO,IO,LO,RO,zO,BO,VO,HO,UO,WO,GO,KO,qO,JO,YO,XO,ZO,QO,$O,ek,tk,nk,rk,ik,ak,ok,sk,ck,lk,uk,dk,fk,pk,mk,hk,gk,_k,vk,yk,bk,xk,Sk,Ck,wk,Tk,Ek,Dk,Ok,kk,Ak,jk,Mk,Nk,Pk,Fk,Ik,Lk,Rk,zk,Bk,Vk,Hk,Uk,Wk,Gk,Kk,qk,Jk,Yk,Xk,Zk,Qk,$k,eA,tA,nA,rA,iA,aA,oA,sA,cA,lA,uA,dA,fA,pA,mA,hA,gA,_A,vA,yA,bA,xA,SA,CA,wA,TA,EA,DA,OA,kA,AA,jA,MA,NA,PA,FA,IA,LA,RA,zA,BA,VA,HA,UA,WA,GA,KA,qA,JA,YA,XA,ZA,QA,$A,ej,tj,nj,rj,ij,aj,oj,sj,cj,lj,uj,dj,fj,pj,mj,hj,gj,_j,vj,yj,bj,xj,Sj,Cj,wj,Tj,Ej,Dj,Oj,kj,Aj,jj,Mj,Nj,Pj,Fj,Ij,Lj,Rj,zj,Bj,Vj,Hj,Uj,Wj,Gj,Kj,qj,Jj,Yj,Xj,Zj,Qj,$j,eM,tM,nM,rM,iM,aM,oM,sM,cM,lM,uM,dM,fM,pM,mM,hM,gM,_M,vM,yM,bM,xM,SM,CM,wM,TM,EM,DM,OM,kM,AM,jM,MM,NM,PM,FM,IM,LM,RM,zM,BM,VM,HM,UM,WM,GM,KM,Y,qM,JM,YM,XM,ZM,QM,$M,eN,tN,nN,rN,iN,aN,oN,sN,cN,lN,uN,dN,fN,pN,mN,hN,gN,_N,vN,yN,bN,xN,X,SN,CN,wN,TN,EN,DN,ON,kN,Z,AN,jN,MN,NN,PN,FN,IN,LN,RN,zN,BN,VN,HN,UN,WN,GN,KN,qN,JN,YN,XN,ZN,QN,$N,eP,tP,nP,rP,iP,aP,oP,sP,cP,lP,uP,dP,fP,pP,mP,hP,gP,_P,vP,yP,bP,xP,SP,CP,wP,TP,EP,DP,OP,kP,AP,jP,MP,NP,PP,FP,IP,LP,RP,zP,BP,VP,HP,UP,WP,GP,KP,qP,JP,YP,XP,ZP,QP,$P,eF,tF,nF,rF,iF,aF,oF,sF,cF,lF,uF,dF,fF,pF,mF,hF,gF,_F,vF,yF,bF,xF,SF,CF,wF,TF,EF,DF,OF,kF,AF,jF,MF,NF,PF,FF,IF,LF,RF,zF,BF,VF,HF,UF,WF,GF,KF,qF,JF,YF,XF,ZF,QF,$F,eI,tI,nI,rI,iI,aI,oI,sI,cI,lI,uI,dI,fI,pI,mI,hI,gI,_I,vI,yI,bI,xI,SI,CI,wI,TI,EI,DI,OI,kI,AI,jI,MI,NI,PI,FI,II,LI,RI,zI,BI,VI,HI,UI,WI,GI,KI,qI,JI,YI,XI,ZI,QI,$I,eL,tL,nL,rL,iL,aL,oL,sL,cL,lL,uL,dL,fL,pL,mL,hL,gL,_L,vL,yL,bL,xL,SL,CL,wL,TL,EL,DL,OL,kL,AL,jL,ML,NL,PL,FL,IL,LL,RL,zL,BL,VL,HL,UL,WL,GL,KL,qL,JL,YL,XL,ZL,QL,$L,eR,tR,nR,rR,iR,aR,oR,sR,cR,lR,uR,dR,fR,pR,mR,hR,gR,_R,vR,yR,bR,xR,SR,CR,wR,TR,ER,DR,OR,kR,AR,jR,MR,NR,PR,FR,IR,LR,RR,zR,BR,VR,HR,UR,WR,GR,KR,qR,JR,YR,XR,ZR,QR,$R,ez,tz,nz,rz,iz,az,oz,sz,cz,lz,uz,dz,fz,pz,mz,hz,gz,_z,vz,yz,bz,xz,Sz,Cz,wz,Tz,Ez,Dz,Oz,kz,Az,jz,Mz,Nz,Pz,Fz,Iz,Lz,Rz,zz,Bz,Vz,Hz,Uz,Wz,Gz,Kz,qz,Jz,Yz,Xz,Zz,Qz,$z,eB,tB,nB,rB,iB,aB,oB,sB,cB,lB,uB,dB,fB,pB,mB,hB,gB,_B,vB,yB,bB,xB,SB,CB,wB,TB,EB,DB,OB,kB,AB,jB,MB,NB,PB,FB,IB,LB,RB,zB,BB,VB,HB,UB,WB,GB,KB,qB,JB,YB,XB,ZB,QB,$B,eV,tV,nV,rV,iV,aV,oV,sV,cV,lV,uV,dV,fV,pV,mV,hV,gV,_V,vV,yV,bV,xV,SV,CV,wV,TV,EV,DV,OV,kV,AV,jV,MV,NV,PV,FV,IV,LV,RV,zV,BV,VV,HV,UV,WV,GV,KV,qV,JV,YV,XV,ZV,QV,$V,eH,tH,nH,rH,iH,aH,oH,sH,cH,lH,uH,dH,fH,pH,mH,hH,gH,_H,vH,yH,bH,xH,SH,CH,wH,TH,EH,DH,OH,kH,AH,jH,MH,NH,PH,FH,IH,LH,RH,zH,BH,VH,HH,UH,WH,GH,KH,qH,JH,YH,XH,ZH,QH,$H,eU,tU,nU,rU,iU,aU,oU,sU,cU,lU,uU,dU,fU,pU,mU,hU,gU,_U,vU,yU,bU,xU,SU,CU,wU,TU,EU,DU,OU,kU,AU,jU,MU,NU,PU,FU,IU,LU,RU,zU,BU,VU,HU,UU,WU,GU,KU,qU,JU,YU,XU,ZU,QU,$U,eW,tW,nW,rW,iW=n((()=>{Uv=Object.create,Wv=Object.defineProperty,Gv=Object.getOwnPropertyDescriptor,Kv=Object.getOwnPropertyNames,qv=Object.getPrototypeOf,Jv=Object.prototype.hasOwnProperty,Yv=(e=>typeof t<`u`?t:typeof Proxy<`u`?new Proxy(e,{get:(e,n)=>(typeof t<`u`?t:e)[n]}):e)(function(e){if(typeof t<`u`)return t.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)}),K=(e,t)=>function(){return t||(0,e[Kv(e)[0]])((t={exports:{}}).exports,t),t.exports},Xv=(e,t)=>{for(var n in t)Wv(e,n,{get:t[n],enumerable:!0})},Zv=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of Kv(t))!Jv.call(e,i)&&i!==n&&Wv(e,i,{get:()=>t[i],enumerable:!(r=Gv(t,i))||r.enumerable});return e},Qv=(e,t,n)=>(n=e==null?{}:Uv(qv(e)),Zv(t||!e||!e.__esModule?Wv(n,`default`,{value:e,enumerable:!0}):n,e)),$v=K({"../../node_modules/@ngard/tiny-isequal/index.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.isEqual=(function(){var e=Object.prototype.toString,t=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:Object.keys;return function(r,i){return(function r(i,a,o){var s,c,l,u=e.call(i),d=e.call(a);if(i===a)return!0;if(i==null||a==null)return!1;if(o.indexOf(i)>-1&&o.indexOf(a)>-1)return!0;if(o.push(i,a),u!=d||(s=n(i),c=n(a),s.length!=c.length||s.some(function(e){return!r(i[e],a[e],o)})))return!1;switch(u.slice(8,-1)){case`Symbol`:return i.valueOf()==a.valueOf();case`Date`:case`Number`:return+i==+a||+i!=+i&&+a!=+a;case`RegExp`:case`Function`:case`String`:case`Boolean`:return``+i==``+a;case`Set`:case`Map`:s=i.entries(),c=a.entries();do if(!r((l=s.next()).value,c.next().value,o))return!1;while(!l.done);return!0;case`ArrayBuffer`:i=new Uint8Array(i),a=new Uint8Array(a);case`DataView`:i=new Uint8Array(i.buffer),a=new Uint8Array(a.buffer);case`Float32Array`:case`Float64Array`:case`Int8Array`:case`Int16Array`:case`Int32Array`:case`Uint8Array`:case`Uint16Array`:case`Uint32Array`:case`Uint8ClampedArray`:case`Arguments`:case`Array`:if(i.length!=a.length)return!1;for(l=0;l<i.length;l++)if((l in i||l in a)&&(l in i!=l in a||!r(i[l],a[l],o)))return!1;return!0;case`Object`:return r(t(i),t(a),o);default:return!1}})(r,i,[])}})()}}),ey=K({"../../node_modules/min-indent/index.js"(e,t){t.exports=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((e,t)=>Math.min(e,t.length),1/0):0}}}),ty=K({"../../node_modules/strip-indent/index.js"(e,t){var n=ey();t.exports=e=>{let t=n(e);if(t===0)return e;let r=RegExp(`^[ \\t]{${t}}`,`gm`);return e.replace(r,``)}}}),ny=K({"../../node_modules/indent-string/index.js"(e,t){t.exports=(e,t=1,n)=>{if(n={indent:` `,includeEmptyLines:!1,...n},typeof e!=`string`)throw TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!=`number`)throw TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof n.indent!=`string`)throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``);if(t===0)return e;let r=n.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(r,n.indent.repeat(t))}}}),ry=K({"../../node_modules/redent/index.js"(e,t){var n=ty(),r=ny();t.exports=(e,t=0,i)=>r(n(e),t,i)}}),iy=K({"../../node_modules/aria-query/lib/util/iteratorProxy.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;function t(){var e=this,t=0,n={"@@iterator":function(){return n},next:function(){if(t<e.length){var n=e[t];return t+=1,{done:!1,value:n}}else return{done:!0}}};return n}e.default=t}}),ay=K({"../../node_modules/aria-query/lib/util/iterationDecorator.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=i;var t=n(iy());function n(e){return e&&e.__esModule?e:{default:e}}function r(e){"@babel/helpers - typeof";return r=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},r(e)}function i(e,n){return typeof Symbol==`function`&&r(Symbol.iterator)===`symbol`&&Object.defineProperty(e,Symbol.iterator,{value:t.default.bind(n)}),e}}}),oy=K({"../../node_modules/aria-query/lib/ariaPropsMap.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=n(ay());function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return c(e)||s(e,t)||a(e,t)||i()}function i(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(e,t){if(e){if(typeof e==`string`)return o(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function c(e){if(Array.isArray(e))return e}var l=[[`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`}]],u={entries:function(){return l},forEach:function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=0,i=l;n<i.length;n++){var a=r(i[n],2),o=a[0],s=a[1];e.call(t,s,o,l)}},get:function(e){var t=l.filter(function(t){return t[0]===e})[0];return t&&t[1]},has:function(e){return!!u.get(e)},keys:function(){return l.map(function(e){return r(e,1)[0]})},values:function(){return l.map(function(e){return r(e,2)[1]})}};e.default=(0,t.default)(u,u.entries())}}),sy=K({"../../node_modules/aria-query/lib/domMap.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=n(ay());function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return c(e)||s(e,t)||a(e,t)||i()}function i(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(e,t){if(e){if(typeof e==`string`)return o(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function c(e){if(Array.isArray(e))return e}var l=[[`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}]],u={entries:function(){return l},forEach:function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=0,i=l;n<i.length;n++){var a=r(i[n],2),o=a[0],s=a[1];e.call(t,s,o,l)}},get:function(e){var t=l.filter(function(t){return t[0]===e})[0];return t&&t[1]},has:function(e){return!!u.get(e)},keys:function(){return l.map(function(e){return r(e,1)[0]})},values:function(){return l.map(function(e){return r(e,2)[1]})}};e.default=(0,t.default)(u,u.entries())}}),cy=K({"../../node_modules/aria-query/lib/etc/roles/abstract/commandRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`]]}}}),ly=K({"../../node_modules/aria-query/lib/etc/roles/abstract/compositeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),uy=K({"../../node_modules/aria-query/lib/etc/roles/abstract/inputRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),dy=K({"../../node_modules/aria-query/lib/etc/roles/abstract/landmarkRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),fy=K({"../../node_modules/aria-query/lib/etc/roles/abstract/rangeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),py=K({"../../node_modules/aria-query/lib/etc/roles/abstract/roletypeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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:[]}}}),my=K({"../../node_modules/aria-query/lib/etc/roles/abstract/sectionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),hy=K({"../../node_modules/aria-query/lib/etc/roles/abstract/sectionheadRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`]]}}}),gy=K({"../../node_modules/aria-query/lib/etc/roles/abstract/selectRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),_y=K({"../../node_modules/aria-query/lib/etc/roles/abstract/structureRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`]]}}}),vy=K({"../../node_modules/aria-query/lib/etc/roles/abstract/widgetRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`]]}}}),yy=K({"../../node_modules/aria-query/lib/etc/roles/abstract/windowRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`]]}}}),by=K({"../../node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=p(cy()),n=p(ly()),r=p(uy()),i=p(dy()),a=p(fy()),o=p(py()),s=p(my()),c=p(hy()),l=p(gy()),u=p(_y()),d=p(vy()),f=p(yy());function p(e){return e&&e.__esModule?e:{default:e}}e.default=[[`command`,t.default],[`composite`,n.default],[`input`,r.default],[`landmark`,i.default],[`range`,a.default],[`roletype`,o.default],[`section`,s.default],[`sectionhead`,c.default],[`select`,l.default],[`structure`,u.default],[`widget`,d.default],[`window`,f.default]]}}),xy=K({"../../node_modules/aria-query/lib/etc/roles/literal/alertRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Sy=K({"../../node_modules/aria-query/lib/etc/roles/literal/alertdialogRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Cy=K({"../../node_modules/aria-query/lib/etc/roles/literal/applicationRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),wy=K({"../../node_modules/aria-query/lib/etc/roles/literal/articleRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Ty=K({"../../node_modules/aria-query/lib/etc/roles/literal/bannerRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Ey=K({"../../node_modules/aria-query/lib/etc/roles/literal/blockquoteRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Dy=K({"../../node_modules/aria-query/lib/etc/roles/literal/buttonRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Oy=K({"../../node_modules/aria-query/lib/etc/roles/literal/captionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),ky=K({"../../node_modules/aria-query/lib/etc/roles/literal/cellRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Ay=K({"../../node_modules/aria-query/lib/etc/roles/literal/checkboxRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),jy=K({"../../node_modules/aria-query/lib/etc/roles/literal/codeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),My=K({"../../node_modules/aria-query/lib/etc/roles/literal/columnheaderRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Ny=K({"../../node_modules/aria-query/lib/etc/roles/literal/comboboxRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Py=K({"../../node_modules/aria-query/lib/etc/roles/literal/complementaryRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:[`scoped to the body element`,`scoped to the main element`],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`]]}}}),Fy=K({"../../node_modules/aria-query/lib/etc/roles/literal/contentinfoRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Iy=K({"../../node_modules/aria-query/lib/etc/roles/literal/definitionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Ly=K({"../../node_modules/aria-query/lib/etc/roles/literal/deletionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Ry=K({"../../node_modules/aria-query/lib/etc/roles/literal/dialogRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`dialog`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`window`]]}}}),zy=K({"../../node_modules/aria-query/lib/etc/roles/literal/directoryRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{module:`DAISY Guide`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`list`]]}}}),By=K({"../../node_modules/aria-query/lib/etc/roles/literal/documentRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Vy=K({"../../node_modules/aria-query/lib/etc/roles/literal/emphasisRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Hy=K({"../../node_modules/aria-query/lib/etc/roles/literal/feedRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`article`]],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`list`]]}}}),Uy=K({"../../node_modules/aria-query/lib/etc/roles/literal/figureRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Wy=K({"../../node_modules/aria-query/lib/etc/roles/literal/formRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Gy=K({"../../node_modules/aria-query/lib/etc/roles/literal/genericRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Ky=K({"../../node_modules/aria-query/lib/etc/roles/literal/gridRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),qy=K({"../../node_modules/aria-query/lib/etc/roles/literal/gridcellRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Jy=K({"../../node_modules/aria-query/lib/etc/roles/literal/groupRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Yy=K({"../../node_modules/aria-query/lib/etc/roles/literal/headingRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Xy=K({"../../node_modules/aria-query/lib/etc/roles/literal/imgRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Zy=K({"../../node_modules/aria-query/lib/etc/roles/literal/insertionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Qy=K({"../../node_modules/aria-query/lib/etc/roles/literal/linkRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),$y=K({"../../node_modules/aria-query/lib/etc/roles/literal/listRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),eb=K({"../../node_modules/aria-query/lib/etc/roles/literal/listboxRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),tb=K({"../../node_modules/aria-query/lib/etc/roles/literal/listitemRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),nb=K({"../../node_modules/aria-query/lib/etc/roles/literal/logRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-live":`polite`},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),rb=K({"../../node_modules/aria-query/lib/etc/roles/literal/mainRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),ib=K({"../../node_modules/aria-query/lib/etc/roles/literal/markRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),ab=K({"../../node_modules/aria-query/lib/etc/roles/literal/marqueeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),ob=K({"../../node_modules/aria-query/lib/etc/roles/literal/mathRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),sb=K({"../../node_modules/aria-query/lib/etc/roles/literal/menuRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),cb=K({"../../node_modules/aria-query/lib/etc/roles/literal/menubarRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),lb=K({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),ub=K({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemcheckboxRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),db=K({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemradioRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),fb=K({"../../node_modules/aria-query/lib/etc/roles/literal/meterRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),pb=K({"../../node_modules/aria-query/lib/etc/roles/literal/navigationRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),mb=K({"../../node_modules/aria-query/lib/etc/roles/literal/noneRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]}}}),hb=K({"../../node_modules/aria-query/lib/etc/roles/literal/noteRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),gb=K({"../../node_modules/aria-query/lib/etc/roles/literal/optionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),_b=K({"../../node_modules/aria-query/lib/etc/roles/literal/paragraphRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),vb=K({"../../node_modules/aria-query/lib/etc/roles/literal/presentationRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),yb=K({"../../node_modules/aria-query/lib/etc/roles/literal/progressbarRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),bb=K({"../../node_modules/aria-query/lib/etc/roles/literal/radioRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),xb=K({"../../node_modules/aria-query/lib/etc/roles/literal/radiogroupRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Sb=K({"../../node_modules/aria-query/lib/etc/roles/literal/regionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Cb=K({"../../node_modules/aria-query/lib/etc/roles/literal/rowRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),wb=K({"../../node_modules/aria-query/lib/etc/roles/literal/rowgroupRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Tb=K({"../../node_modules/aria-query/lib/etc/roles/literal/rowheaderRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Eb=K({"../../node_modules/aria-query/lib/etc/roles/literal/scrollbarRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Db=K({"../../node_modules/aria-query/lib/etc/roles/literal/searchRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Ob=K({"../../node_modules/aria-query/lib/etc/roles/literal/searchboxRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),kb=K({"../../node_modules/aria-query/lib/etc/roles/literal/separatorRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Ab=K({"../../node_modules/aria-query/lib/etc/roles/literal/sliderRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),jb=K({"../../node_modules/aria-query/lib/etc/roles/literal/spinbuttonRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Mb=K({"../../node_modules/aria-query/lib/etc/roles/literal/statusRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Nb=K({"../../node_modules/aria-query/lib/etc/roles/literal/strongRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Pb=K({"../../node_modules/aria-query/lib/etc/roles/literal/subscriptRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Fb=K({"../../node_modules/aria-query/lib/etc/roles/literal/superscriptRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Ib=K({"../../node_modules/aria-query/lib/etc/roles/literal/switchRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Lb=K({"../../node_modules/aria-query/lib/etc/roles/literal/tabRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Rb=K({"../../node_modules/aria-query/lib/etc/roles/literal/tableRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),zb=K({"../../node_modules/aria-query/lib/etc/roles/literal/tablistRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Bb=K({"../../node_modules/aria-query/lib/etc/roles/literal/tabpanelRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Vb=K({"../../node_modules/aria-query/lib/etc/roles/literal/termRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Hb=K({"../../node_modules/aria-query/lib/etc/roles/literal/textboxRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Ub=K({"../../node_modules/aria-query/lib/etc/roles/literal/timeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Wb=K({"../../node_modules/aria-query/lib/etc/roles/literal/timerRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`status`]]}}}),Gb=K({"../../node_modules/aria-query/lib/etc/roles/literal/toolbarRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Kb=K({"../../node_modules/aria-query/lib/etc/roles/literal/tooltipRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),qb=K({"../../node_modules/aria-query/lib/etc/roles/literal/treeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Jb=K({"../../node_modules/aria-query/lib/etc/roles/literal/treegridRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Yb=K({"../../node_modules/aria-query/lib/etc/roles/literal/treeitemRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Xb=K({"../../node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=B(xy()),n=B(Sy()),r=B(Cy()),i=B(wy()),a=B(Ty()),o=B(Ey()),s=B(Dy()),c=B(Oy()),l=B(ky()),u=B(Ay()),d=B(jy()),f=B(My()),p=B(Ny()),m=B(Py()),h=B(Fy()),g=B(Iy()),_=B(Ly()),v=B(Ry()),y=B(zy()),b=B(By()),x=B(Vy()),S=B(Hy()),C=B(Uy()),w=B(Wy()),T=B(Gy()),E=B(Ky()),D=B(qy()),O=B(Jy()),k=B(Yy()),A=B(Xy()),j=B(Zy()),M=B(Qy()),ee=B($y()),N=B(eb()),te=B(tb()),ne=B(nb()),re=B(rb()),P=B(ib()),ie=B(ab()),ae=B(ob()),oe=B(sb()),F=B(cb()),se=B(lb()),ce=B(ub()),le=B(db()),ue=B(fb()),de=B(pb()),fe=B(mb()),pe=B(hb()),me=B(gb()),he=B(_b()),ge=B(vb()),_e=B(yb()),ve=B(bb()),ye=B(xb()),be=B(Sb()),xe=B(Cb()),Se=B(wb()),I=B(Tb()),Ce=B(Eb()),we=B(Db()),Te=B(Ob()),L=B(kb()),Ee=B(Ab()),De=B(jb()),Oe=B(Mb()),R=B(Nb()),ke=B(Pb()),Ae=B(Fb()),je=B(Ib()),Me=B(Lb()),Ne=B(Rb()),Pe=B(zb()),Fe=B(Bb()),z=B(Vb()),Ie=B(Hb()),Le=B(Ub()),Re=B(Wb()),ze=B(Gb()),Be=B(Kb()),Ve=B(qb()),He=B(Jb()),Ue=B(Yb());function B(e){return e&&e.__esModule?e:{default:e}}e.default=[[`alert`,t.default],[`alertdialog`,n.default],[`application`,r.default],[`article`,i.default],[`banner`,a.default],[`blockquote`,o.default],[`button`,s.default],[`caption`,c.default],[`cell`,l.default],[`checkbox`,u.default],[`code`,d.default],[`columnheader`,f.default],[`combobox`,p.default],[`complementary`,m.default],[`contentinfo`,h.default],[`definition`,g.default],[`deletion`,_.default],[`dialog`,v.default],[`directory`,y.default],[`document`,b.default],[`emphasis`,x.default],[`feed`,S.default],[`figure`,C.default],[`form`,w.default],[`generic`,T.default],[`grid`,E.default],[`gridcell`,D.default],[`group`,O.default],[`heading`,k.default],[`img`,A.default],[`insertion`,j.default],[`link`,M.default],[`list`,ee.default],[`listbox`,N.default],[`listitem`,te.default],[`log`,ne.default],[`main`,re.default],[`mark`,P.default],[`marquee`,ie.default],[`math`,ae.default],[`menu`,oe.default],[`menubar`,F.default],[`menuitem`,se.default],[`menuitemcheckbox`,ce.default],[`menuitemradio`,le.default],[`meter`,ue.default],[`navigation`,de.default],[`none`,fe.default],[`note`,pe.default],[`option`,me.default],[`paragraph`,he.default],[`presentation`,ge.default],[`progressbar`,_e.default],[`radio`,ve.default],[`radiogroup`,ye.default],[`region`,be.default],[`row`,xe.default],[`rowgroup`,Se.default],[`rowheader`,I.default],[`scrollbar`,Ce.default],[`search`,we.default],[`searchbox`,Te.default],[`separator`,L.default],[`slider`,Ee.default],[`spinbutton`,De.default],[`status`,Oe.default],[`strong`,R.default],[`subscript`,ke.default],[`superscript`,Ae.default],[`switch`,je.default],[`tab`,Me.default],[`table`,Ne.default],[`tablist`,Pe.default],[`tabpanel`,Fe.default],[`term`,z.default],[`textbox`,Ie.default],[`time`,Le.default],[`timer`,Re.default],[`toolbar`,ze.default],[`tooltip`,Be.default],[`tree`,Ve.default],[`treegrid`,He.default],[`treeitem`,Ue.default]]}}),Zb=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docAbstractRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Qb=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),$b=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docAfterwordRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),ex=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docAppendixRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),tx=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docBacklinkRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),nx=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docBiblioentryRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),rx=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docBibliographyRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),ix=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docBibliorefRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),ax=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),ox=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docColophonRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),sx=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docConclusionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),cx=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docCoverRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),lx=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docCreditRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),ux=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docCreditsRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),dx=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),fx=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docEndnoteRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),px=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docEndnotesRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),mx=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docEpigraphRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`epigraph [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),hx=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docEpilogueRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),gx=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docErrataRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),_x=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docExampleRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),vx=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docFootnoteRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),yx=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docForewordRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),bx=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docGlossaryRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`glossary [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`definition`],[`term`]],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),xx=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docGlossrefRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`glossref [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`command`,`link`]]}}}),Sx=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docIndexRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Cx=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docIntroductionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),wx=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docNoterefRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Tx=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docNoticeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Ex=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagebreakRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Dx=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagefooterRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Ox=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docPageheaderRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),kx=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagelistRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Ax=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docPartRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),jx=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docPrefaceRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Mx=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docPrologueRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Nx=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docPullquoteRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Px=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docQnaRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Fx=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docSubtitleRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Ix=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docTipRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Lx=K({"../../node_modules/aria-query/lib/etc/roles/dpub/docTocRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Rx=K({"../../node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=F(Zb()),n=F(Qb()),r=F($b()),i=F(ex()),a=F(tx()),o=F(nx()),s=F(rx()),c=F(ix()),l=F(ax()),u=F(ox()),d=F(sx()),f=F(cx()),p=F(lx()),m=F(ux()),h=F(dx()),g=F(fx()),_=F(px()),v=F(mx()),y=F(hx()),b=F(gx()),x=F(_x()),S=F(vx()),C=F(yx()),w=F(bx()),T=F(xx()),E=F(Sx()),D=F(Cx()),O=F(wx()),k=F(Tx()),A=F(Ex()),j=F(Dx()),M=F(Ox()),ee=F(kx()),N=F(Ax()),te=F(jx()),ne=F(Mx()),re=F(Nx()),P=F(Px()),ie=F(Fx()),ae=F(Ix()),oe=F(Lx());function F(e){return e&&e.__esModule?e:{default:e}}e.default=[[`doc-abstract`,t.default],[`doc-acknowledgments`,n.default],[`doc-afterword`,r.default],[`doc-appendix`,i.default],[`doc-backlink`,a.default],[`doc-biblioentry`,o.default],[`doc-bibliography`,s.default],[`doc-biblioref`,c.default],[`doc-chapter`,l.default],[`doc-colophon`,u.default],[`doc-conclusion`,d.default],[`doc-cover`,f.default],[`doc-credit`,p.default],[`doc-credits`,m.default],[`doc-dedication`,h.default],[`doc-endnote`,g.default],[`doc-endnotes`,_.default],[`doc-epigraph`,v.default],[`doc-epilogue`,y.default],[`doc-errata`,b.default],[`doc-example`,x.default],[`doc-footnote`,S.default],[`doc-foreword`,C.default],[`doc-glossary`,w.default],[`doc-glossref`,T.default],[`doc-index`,E.default],[`doc-introduction`,D.default],[`doc-noteref`,O.default],[`doc-notice`,k.default],[`doc-pagebreak`,A.default],[`doc-pagefooter`,j.default],[`doc-pageheader`,M.default],[`doc-pagelist`,ee.default],[`doc-part`,N.default],[`doc-preface`,te.default],[`doc-prologue`,ne.default],[`doc-pullquote`,re.default],[`doc-qna`,P.default],[`doc-subtitle`,ie.default],[`doc-tip`,ae.default],[`doc-toc`,oe.default]]}}),zx=K({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsDocumentRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Bx=K({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsObjectRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Vx=K({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsSymbolRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={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`]]}}}),Hx=K({"../../node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=i(zx()),n=i(Bx()),r=i(Vx());function i(e){return e&&e.__esModule?e:{default:e}}e.default=[[`graphics-document`,t.default],[`graphics-object`,n.default],[`graphics-symbol`,r.default]]}}),Ux=K({"../../node_modules/aria-query/lib/rolesMap.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=o(by()),n=o(Xb()),r=o(Rx()),i=o(Hx()),a=o(ay());function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function c(e,t){return p(e)||f(e,t)||u(e,t)||l()}function l(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u(e,t){if(e){if(typeof e==`string`)return d(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function p(e){if(Array.isArray(e))return e}var m=[].concat(t.default,n.default,r.default,i.default);m.forEach(function(e){var t=c(e,2)[1],n=s(t.superClass),r;try{for(n.s();!(r=n.n()).done;){var i=r.value,a=s(i),o;try{var l=function(){var e=o.value,n=m.filter(function(t){return c(t,1)[0]===e})[0];if(n)for(var r=n[1],i=0,a=Object.keys(r.props);i<a.length;i++){var s=a[i];Object.prototype.hasOwnProperty.call(t.props,s)||(t.props[s]=r.props[s])}};for(a.s();!(o=a.n()).done;)l()}catch(e){a.e(e)}finally{a.f()}}}catch(e){n.e(e)}finally{n.f()}});var h={entries:function(){return m},forEach:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=s(m),r;try{for(n.s();!(r=n.n()).done;){var i=c(r.value,2),a=i[0],o=i[1];e.call(t,o,a,m)}}catch(e){n.e(e)}finally{n.f()}},get:function(e){var t=m.filter(function(t){return t[0]===e})[0];return t&&t[1]},has:function(e){return!!h.get(e)},keys:function(){return m.map(function(e){return c(e,1)[0]})},values:function(){return m.map(function(e){return c(e,2)[1]})}};e.default=(0,a.default)(h,h.entries())}}),Wx=K({"../../node_modules/aria-query/lib/elementRoleMap.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=r(ay()),n=r(Ux());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){return l(e)||c(e,t)||o(e,t)||a()}function a(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(e,t){if(e){if(typeof e==`string`)return s(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function l(e){if(Array.isArray(e))return e}var u=[],d=n.default.keys();for(_=0;_<d.length;_++)if(f=d[_],p=n.default.get(f),p)for(m=[].concat(p.baseConcepts,p.relatedConcepts),h=function(){var e=m[g];if(e.module===`HTML`){var t=e.concept;if(t){for(var n=u.filter(function(e){return y(e[0],t)})[0],r=n?n[1]:[],i=!0,a=0;a<r.length;a++)if(r[a]===f){i=!1;break}i&&r.push(f),n||u.push([t,r])}}},g=0;g<m.length;g++)h();var f,p,m,h,g,_,v={entries:function(){return u},forEach:function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=0,r=u;n<r.length;n++){var a=i(r[n],2),o=a[0],s=a[1];e.call(t,s,o,u)}},get:function(e){var t=u.filter(function(t){return e.name===t[0].name&&x(e.attributes,t[0].attributes)})[0];return t&&t[1]},has:function(e){return!!v.get(e)},keys:function(){return u.map(function(e){return i(e,1)[0]})},values:function(){return u.map(function(e){return i(e,2)[1]})}};function y(e,t){return e.name===t.name&&b(e.constraints,t.constraints)&&x(e.attributes,t.attributes)}function b(e,t){if(e===void 0&&t!==void 0||e!==void 0&&t===void 0)return!1;if(e!==void 0&&t!==void 0){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1}return!0}function x(e,t){if(e===void 0&&t!==void 0||e!==void 0&&t===void 0)return!1;if(e!==void 0&&t!==void 0){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){if(e[n].name!==t[n].name||e[n].value!==t[n].value||e[n].constraints===void 0&&t[n].constraints!==void 0||e[n].constraints!==void 0&&t[n].constraints===void 0)return!1;if(e[n].constraints!==void 0&&t[n].constraints!==void 0){if(e[n].constraints.length!==t[n].constraints.length)return!1;for(var r=0;r<e[n].constraints.length;r++)if(e[n].constraints[r]!==t[n].constraints[r])return!1}}}return!0}e.default=(0,t.default)(v,v.entries())}}),Gx=K({"../../node_modules/aria-query/lib/roleElementMap.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=r(ay()),n=r(Ux());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){return l(e)||c(e,t)||o(e,t)||a()}function a(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(e,t){if(e){if(typeof e==`string`)return s(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function l(e){if(Array.isArray(e))return e}var u=[],d=n.default.keys();for(y=0;y<d.length;y++)if(f=d[y],p=n.default.get(f),m=[],p){for(h=[].concat(p.baseConcepts,p.relatedConcepts),v=0;v<h.length;v++)g=h[v],g.module===`HTML`&&(_=g.concept,_!=null&&m.push(_));m.length>0&&u.push([f,m])}var f,p,m,h,g,_,v,y,b={entries:function(){return u},forEach:function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=0,r=u;n<r.length;n++){var a=i(r[n],2),o=a[0],s=a[1];e.call(t,s,o,u)}},get:function(e){var t=u.filter(function(t){return t[0]===e})[0];return t&&t[1]},has:function(e){return!!b.get(e)},keys:function(){return u.map(function(e){return i(e,1)[0]})},values:function(){return u.map(function(e){return i(e,2)[1]})}};e.default=(0,t.default)(b,b.entries())}}),Kx=K({"../../node_modules/aria-query/lib/index.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.roles=e.roleElements=e.elementRoles=e.dom=e.aria=void 0;var t=o(oy()),n=o(sy()),r=o(Ux()),i=o(Wx()),a=o(Gx());function o(e){return e&&e.__esModule?e:{default:e}}e.aria=t.default,e.dom=n.default,e.roles=r.default,e.elementRoles=i.default,e.roleElements=a.default}}),qx=K({"../../node_modules/color-name/index.js"(e,t){t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}}),Jx=K({"../../node_modules/color-convert/conversions.js"(e,t){var n=qx(),r={};for(let e of Object.keys(n))r[n[e]]=e;var i={rgb:{channels:3,labels:`rgb`},hsl:{channels:3,labels:`hsl`},hsv:{channels:3,labels:`hsv`},hwb:{channels:3,labels:`hwb`},cmyk:{channels:4,labels:`cmyk`},xyz:{channels:3,labels:`xyz`},lab:{channels:3,labels:`lab`},lch:{channels:3,labels:`lch`},hex:{channels:1,labels:[`hex`]},keyword:{channels:1,labels:[`keyword`]},ansi16:{channels:1,labels:[`ansi16`]},ansi256:{channels:1,labels:[`ansi256`]},hcg:{channels:3,labels:[`h`,`c`,`g`]},apple:{channels:3,labels:[`r16`,`g16`,`b16`]},gray:{channels:1,labels:[`gray`]}};t.exports=i;for(let e of Object.keys(i)){if(!(`channels`in i[e]))throw Error(`missing channels property: `+e);if(!(`labels`in i[e]))throw Error(`missing channel labels property: `+e);if(i[e].labels.length!==i[e].channels)throw Error(`channel and label counts mismatch: `+e);let{channels:t,labels:n}=i[e];delete i[e].channels,delete i[e].labels,Object.defineProperty(i[e],`channels`,{value:t}),Object.defineProperty(i[e],`labels`,{value:n})}i.rgb.hsl=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s,c;a===i?s=0:t===a?s=(n-r)/o:n===a?s=2+(r-t)/o:r===a&&(s=4+(t-n)/o),s=Math.min(s*60,360),s<0&&(s+=360);let l=(i+a)/2;return c=a===i?0:l<=.5?o/(a+i):o/(2-a-i),[s,c*100,l*100]},i.rgb.hsv=function(e){let t,n,r,i,a,o=e[0]/255,s=e[1]/255,c=e[2]/255,l=Math.max(o,s,c),u=l-Math.min(o,s,c),d=function(e){return(l-e)/6/u+1/2};return u===0?(i=0,a=0):(a=u/l,t=d(o),n=d(s),r=d(c),o===l?i=r-n:s===l?i=1/3+t-r:c===l&&(i=2/3+n-t),i<0?i+=1:i>1&&--i),[i*360,a*100,l*100]},i.rgb.hwb=function(e){let t=e[0],n=e[1],r=e[2],a=i.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[a,o*100,r*100]},i.rgb.cmyk=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r),a=(1-t-i)/(1-i)||0,o=(1-n-i)/(1-i)||0,s=(1-r-i)/(1-i)||0;return[a*100,o*100,s*100,i*100]};function a(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}i.rgb.keyword=function(e){let t=r[e];if(t)return t;let i=1/0,o;for(let t of Object.keys(n)){let r=n[t],s=a(e,r);s<i&&(i=s,o=t)}return o},i.keyword.rgb=function(e){return n[e]},i.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;let i=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,o=t*.0193+n*.1192+r*.9505;return[i*100,a*100,o*100]},i.rgb.lab=function(e){let t=i.rgb.xyz(e),n=t[0],r=t[1],a=t[2];return n/=95.047,r/=100,a/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,[116*r-16,500*(n-r),200*(r-a)]},i.hsl.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100,i,a,o;if(n===0)return o=r*255,[o,o,o];i=r<.5?r*(1+n):r+n-r*n;let s=2*r-i,c=[0,0,0];for(let e=0;e<3;e++)a=t+1/3*-(e-1),a<0&&a++,a>1&&a--,o=6*a<1?s+(i-s)*6*a:2*a<1?i:3*a<2?s+(i-s)*(2/3-a)*6:s,c[e]=o*255;return c},i.hsl.hsv=function(e){let t=e[0],n=e[1]/100,r=e[2]/100,i=n,a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=a<=1?a:2-a;let o=(r+n)/2;return[t,(r===0?2*i/(a+i):2*n/(r+n))*100,o*100]},i.hsv.rgb=function(e){let t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,a=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*a),c=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,c,o];case 1:return[s,r,o];case 2:return[o,r,c];case 3:return[o,s,r];case 4:return[c,o,r];case 5:return[r,o,s]}},i.hsv.hsl=function(e){let t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01),a,o;o=(2-n)*r;let s=(2-n)*i;return a=n*i,a/=s<=1?s:2-s,a||=0,o/=2,[t,a*100,o*100]},i.hwb.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100,i=n+r,a;i>1&&(n/=i,r/=i);let o=Math.floor(6*t),s=1-r;a=6*t-o,o&1&&(a=1-a);let c=n+a*(s-n),l,u,d;switch(o){default:case 6:case 0:l=s,u=c,d=n;break;case 1:l=c,u=s,d=n;break;case 2:l=n,u=s,d=c;break;case 3:l=n,u=c,d=s;break;case 4:l=c,u=n,d=s;break;case 5:l=s,u=n,d=c;break}return[l*255,u*255,d*255]},i.cmyk.rgb=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,n*(1-i)+i),s=1-Math.min(1,r*(1-i)+i);return[a*255,o*255,s*255]},i.xyz.rgb=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,i,a,o;return i=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,o=t*.0557+n*-.204+r*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[i*255,a*255,o*255]},i.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},i.lab.xyz=function(e){let t=e[0],n=e[1],r=e[2],i,a,o;a=(t+16)/116,i=n/500+a,o=a-r/200;let s=a**3,c=i**3,l=o**3;return a=s>.008856?s:(a-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,i*=95.047,a*=100,o*=108.883,[i,a,o]},i.lab.lch=function(e){let t=e[0],n=e[1],r=e[2],i;return i=Math.atan2(r,n)*360/2/Math.PI,i<0&&(i+=360),[t,Math.sqrt(n*n+r*r),i]},i.lch.lab=function(e){let t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},i.rgb.ansi16=function(e,t=null){let[n,r,a]=e,o=t===null?i.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let s=30+(Math.round(a/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return o===2&&(s+=60),s},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){let t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},i.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let n=(~~(e>50)+1)*.5;return[(t&1)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},i.ansi256.rgb=function(e){if(e>=232){let t=(e-232)*10+8;return[t,t,t]}e-=16;let t;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},i.rgb.hex=function(e){let t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return`000000`.substring(t.length)+t},i.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split(``).map(e=>e+e).join(``));let r=parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},i.rgb.hcg=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),o=i-a,s,c;return s=o<1?a/(1-o):0,c=o<=0?0:i===t?(n-r)/o%6:i===n?2+(r-t)/o:4+(t-n)/o,c/=6,c%=1,[c*360,o*100,s*100]},i.hsl.hcg=function(e){let t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n),i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],r*100,i*100]},i.hsv.hcg=function(e){let t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]},i.hcg.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];let i=[0,0,0],a=t%1*6,o=a%1,s=1-o,c=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return c=(1-n)*r,[(n*i[0]+c)*255,(n*i[1]+c)*255,(n*i[2]+c)*255]},i.hcg.hsv=function(e){let t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],r*100,n*100]},i.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],r*100,n*100]},i.hcg.hwb=function(e){let t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],(n-t)*100,(1-n)*100]},i.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=function(e){return[0,0,e[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return`000000`.substring(n.length)+n},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}}),Yx=K({"../../node_modules/color-convert/route.js"(e,t){var n=Jx();function r(){let e={},t=Object.keys(n);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function i(e){let t=r(),i=[e];for(t[e].distance=0;i.length;){let e=i.pop(),r=Object.keys(n[e]);for(let n=r.length,a=0;a<n;a++){let n=r[a],o=t[n];o.distance===-1&&(o.distance=t[e].distance+1,o.parent=e,i.unshift(n))}}return t}function a(e,t){return function(n){return t(e(n))}}function o(e,t){let r=[t[e].parent,e],i=n[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)r.unshift(t[o].parent),i=a(n[t[o].parent][o],i),o=t[o].parent;return i.conversion=r,i}t.exports=function(e){let t=i(e),n={},r=Object.keys(t);for(let e=r.length,i=0;i<e;i++){let e=r[i];t[e].parent!==null&&(n[e]=o(e,t))}return n}}}),Xx=K({"../../node_modules/color-convert/index.js"(e,t){var n=Jx(),r=Yx(),i={},a=Object.keys(n);function o(e){let t=function(...t){let n=t[0];return n==null?n:(n.length>1&&(t=n),e(t))};return`conversion`in e&&(t.conversion=e.conversion),t}function s(e){let t=function(...t){let n=t[0];if(n==null)return n;n.length>1&&(t=n);let r=e(t);if(typeof r==`object`)for(let e=r.length,t=0;t<e;t++)r[t]=Math.round(r[t]);return r};return`conversion`in e&&(t.conversion=e.conversion),t}a.forEach(e=>{i[e]={},Object.defineProperty(i[e],`channels`,{value:n[e].channels}),Object.defineProperty(i[e],`labels`,{value:n[e].labels});let t=r(e);Object.keys(t).forEach(n=>{let r=t[n];i[e][n]=s(r),i[e][n].raw=o(r)})}),t.exports=i}}),Zx=K({"../../node_modules/ansi-styles/index.js"(e,t){var n=(e,t)=>(...n)=>`\x1B[${e(...n)+t}m`,r=(e,t)=>(...n)=>{let r=e(...n);return`\x1B[${38+t};5;${r}m`},i=(e,t)=>(...n)=>{let r=e(...n);return`\x1B[${38+t};2;${r[0]};${r[1]};${r[2]}m`},a=e=>e,o=(e,t,n)=>[e,t,n],s=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{let r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})},c,l=(e,t,n,r)=>{c===void 0&&(c=Xx());let i=r?10:0,a={};for(let[r,o]of Object.entries(c)){let s=r===`ansi16`?`ansi`:r;r===t?a[s]=e(n,i):typeof o==`object`&&(a[s]=e(o[t],i))}return a};function u(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],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]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[n,r]of Object.entries(t)){for(let[n,i]of Object.entries(r))t[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=t[n],e.set(i[0],i[1]);Object.defineProperty(t,n,{value:r,enumerable:!1})}return Object.defineProperty(t,`codes`,{value:e,enumerable:!1}),t.color.close=`\x1B[39m`,t.bgColor.close=`\x1B[49m`,s(t.color,`ansi`,()=>l(n,`ansi16`,a,!1)),s(t.color,`ansi256`,()=>l(r,`ansi256`,a,!1)),s(t.color,`ansi16m`,()=>l(i,`rgb`,o,!1)),s(t.bgColor,`ansi`,()=>l(n,`ansi16`,a,!0)),s(t.bgColor,`ansi256`,()=>l(r,`ansi256`,a,!0)),s(t.bgColor,`ansi16m`,()=>l(i,`rgb`,o,!0)),t}Object.defineProperty(t,`exports`,{enumerable:!0,get:u})}}),Qx=K({"../../node_modules/supports-color/browser.js"(e,t){t.exports={stdout:!1,stderr:!1}}}),$x=K({"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/util.js"(e,t){t.exports={stringReplaceAll:(e,t,n)=>{let r=e.indexOf(t);if(r===-1)return e;let i=t.length,a=0,o=``;do o+=e.substr(a,r-a)+t+n,a=r+i,r=e.indexOf(t,a);while(r!==-1);return o+=e.substr(a),o},stringEncaseCRLFWithFirstIndex:(e,t,n,r)=>{let i=0,a=``;do{let o=e[r-1]===`\r`;a+=e.substr(i,(o?r-1:r)-i)+t+(o?`\r
|
||
`:`
|
||
`)+n,i=r+1,r=e.indexOf(`
|
||
`,i)}while(r!==-1);return a+=e.substr(i),a}}}}),eS=K({"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/templates.js"(e,t){var n=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,a=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,o=new Map([[`n`,`
|
||
`],[`r`,`\r`],[`t`,` `],[`b`,`\b`],[`f`,`\f`],[`v`,`\v`],[`0`,`\0`],[`\\`,`\\`],[`e`,`\x1B`],[`a`,`\x07`]]);function s(e){let t=e[0]===`u`,n=e[1]===`{`;return t&&!n&&e.length===5||e[0]===`x`&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):o.get(e)||e}function c(e,t){let n=[],r=t.trim().split(/\s*,\s*/g),o;for(let t of r){let r=Number(t);if(!Number.isNaN(r))n.push(r);else if(o=t.match(i))n.push(o[2].replace(a,(e,t,n)=>t?s(t):n));else throw Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}return n}function l(e){r.lastIndex=0;let t=[],n;for(;(n=r.exec(e))!==null;){let e=n[1];if(n[2]){let r=c(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function u(e,t){let n={};for(let e of t)for(let t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(let[e,t]of Object.entries(n))if(Array.isArray(t)){if(!(e in r))throw Error(`Unknown Chalk style: ${e}`);r=t.length>0?r[e](...t):r[e]}return r}t.exports=(e,t)=>{let r=[],i=[],a=[];if(t.replace(n,(t,n,o,c,d,f)=>{if(n)a.push(s(n));else if(c){let t=a.join(``);a=[],i.push(r.length===0?t:u(e,r)(t)),r.push({inverse:o,styles:l(c)})}else if(d){if(r.length===0)throw Error(`Found extraneous } in Chalk template literal`);i.push(u(e,r)(a.join(``))),a=[],r.pop()}else a.push(f)}),i.push(a.join(``)),r.length>0){let e=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?``:`s`} (\`}\`)`;throw Error(e)}return i.join(``)}}}),tS=K({"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/index.js"(e,t){var n=Zx(),{stdout:r,stderr:i}=Qx(),{stringReplaceAll:a,stringEncaseCRLFWithFirstIndex:o}=$x(),s=[`ansi`,`ansi`,`ansi256`,`ansi16m`],c=Object.create(null),l=(e,t={})=>{if(t.level>3||t.level<0)throw Error("The `level` option should be an integer from 0 to 3");let n=r?r.level:0;e.level=t.level===void 0?n:t.level},u=class{constructor(e){return d(e)}},d=e=>{let t={};return l(t,e),t.template=(...e)=>y(t.template,...e),Object.setPrototypeOf(t,f.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=u,t.template};function f(e){return d(e)}for(let[e,t]of Object.entries(n))c[e]={get(){let n=g(this,h(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:n}),n}};c.visible={get(){let e=g(this,this._styler,!0);return Object.defineProperty(this,`visible`,{value:e}),e}};var p=[`rgb`,`hex`,`keyword`,`hsl`,`hsv`,`hwb`,`ansi`,`ansi256`];for(let e of p)c[e]={get(){let{level:t}=this;return function(...r){let i=h(n.color[s[t]][e](...r),n.color.close,this._styler);return g(this,i,this._isEmpty)}}};for(let e of p){let t=`bg`+e[0].toUpperCase()+e.slice(1);c[t]={get(){let{level:t}=this;return function(...r){let i=h(n.bgColor[s[t]][e](...r),n.bgColor.close,this._styler);return g(this,i,this._isEmpty)}}}}var m=Object.defineProperties(()=>{},{...c,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),h=(e,t,n)=>{let r,i;return n===void 0?(r=e,i=t):(r=n.openAll+e,i=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:i,parent:n}},g=(e,t,n)=>{let r=(...e)=>_(r,e.length===1?``+e[0]:e.join(` `));return r.__proto__=m,r._generator=e,r._styler=t,r._isEmpty=n,r},_=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?``:t;let n=e._styler;if(n===void 0)return t;let{openAll:r,closeAll:i}=n;if(t.indexOf(`\x1B`)!==-1)for(;n!==void 0;)t=a(t,n.close,n.open),n=n.parent;let s=t.indexOf(`
|
||
`);return s!==-1&&(t=o(t,i,r,s)),r+t+i},v,y=(e,...t)=>{let[n]=t;if(!Array.isArray(n))return t.join(` `);let r=t.slice(1),i=[n.raw[0]];for(let e=1;e<n.length;e++)i.push(String(r[e-1]).replace(/[{}\\]/g,`\\$&`),String(n.raw[e]));return v===void 0&&(v=eS()),v(e,i.join(``))};Object.defineProperties(f.prototype,c);var b=f();b.supportsColor=r,b.stderr=f({level:i?i.level:0}),b.stderr.supportsColor=i,b.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:`None`,1:`Basic`,2:`Ansi256`,3:`TrueColor`},t.exports=b}}),nS=K({"../../node_modules/lodash/_listCacheClear.js"(e,t){function n(){this.__data__=[],this.size=0}t.exports=n}}),rS=K({"../../node_modules/lodash/eq.js"(e,t){function n(e,t){return e===t||e!==e&&t!==t}t.exports=n}}),iS=K({"../../node_modules/lodash/_assocIndexOf.js"(e,t){var n=rS();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r}}),aS=K({"../../node_modules/lodash/_listCacheDelete.js"(e,t){var n=iS(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i}}),oS=K({"../../node_modules/lodash/_listCacheGet.js"(e,t){var n=iS();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r}}),sS=K({"../../node_modules/lodash/_listCacheHas.js"(e,t){var n=iS();function r(e){return n(this.__data__,e)>-1}t.exports=r}}),cS=K({"../../node_modules/lodash/_listCacheSet.js"(e,t){var n=iS();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r}}),lS=K({"../../node_modules/lodash/_ListCache.js"(e,t){var n=nS(),r=aS(),i=oS(),a=sS(),o=cS();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s}}),uS=K({"../../node_modules/lodash/_stackClear.js"(e,t){var n=lS();function r(){this.__data__=new n,this.size=0}t.exports=r}}),dS=K({"../../node_modules/lodash/_stackDelete.js"(e,t){function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}t.exports=n}}),fS=K({"../../node_modules/lodash/_stackGet.js"(e,t){function n(e){return this.__data__.get(e)}t.exports=n}}),pS=K({"../../node_modules/lodash/_stackHas.js"(e,t){function n(e){return this.__data__.has(e)}t.exports=n}}),mS=K({"../../node_modules/lodash/_freeGlobal.js"(e,t){t.exports=typeof global==`object`&&global&&global.Object===Object&&global}}),hS=K({"../../node_modules/lodash/_root.js"(e,t){var n=mS(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()}}),gS=K({"../../node_modules/lodash/_Symbol.js"(e,t){t.exports=hS().Symbol}}),_S=K({"../../node_modules/lodash/_getRawTag.js"(e,t){var n=gS(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s}}),vS=K({"../../node_modules/lodash/_objectToString.js"(e,t){var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r}}),yS=K({"../../node_modules/lodash/_baseGetTag.js"(e,t){var n=gS(),r=_S(),i=vS(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c}}),bS=K({"../../node_modules/lodash/isObject.js"(e,t){function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n}}),xS=K({"../../node_modules/lodash/isFunction.js"(e,t){var n=yS(),r=bS(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c}}),SS=K({"../../node_modules/lodash/_coreJsData.js"(e,t){t.exports=hS()[`__core-js_shared__`]}}),CS=K({"../../node_modules/lodash/_isMasked.js"(e,t){var n=SS(),r=(function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``})();function i(e){return!!r&&r in e}t.exports=i}}),wS=K({"../../node_modules/lodash/_toSource.js"(e,t){var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r}}),TS=K({"../../node_modules/lodash/_baseIsNative.js"(e,t){var n=xS(),r=CS(),i=bS(),a=wS(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p}}),ES=K({"../../node_modules/lodash/_getValue.js"(e,t){function n(e,t){return e?.[t]}t.exports=n}}),DS=K({"../../node_modules/lodash/_getNative.js"(e,t){var n=TS(),r=ES();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i}}),OS=K({"../../node_modules/lodash/_Map.js"(e,t){t.exports=DS()(hS(),`Map`)}}),kS=K({"../../node_modules/lodash/_nativeCreate.js"(e,t){t.exports=DS()(Object,`create`)}}),AS=K({"../../node_modules/lodash/_hashClear.js"(e,t){var n=kS();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r}}),jS=K({"../../node_modules/lodash/_hashDelete.js"(e,t){function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}t.exports=n}}),MS=K({"../../node_modules/lodash/_hashGet.js"(e,t){var n=kS(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a}}),NS=K({"../../node_modules/lodash/_hashHas.js"(e,t){var n=kS(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i}}),PS=K({"../../node_modules/lodash/_hashSet.js"(e,t){var n=kS(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=n&&t===void 0?r:t,this}t.exports=i}}),FS=K({"../../node_modules/lodash/_Hash.js"(e,t){var n=AS(),r=jS(),i=MS(),a=NS(),o=PS();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s}}),IS=K({"../../node_modules/lodash/_mapCacheClear.js"(e,t){var n=FS(),r=lS(),i=OS();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a}}),LS=K({"../../node_modules/lodash/_isKeyable.js"(e,t){function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n}}),RS=K({"../../node_modules/lodash/_getMapData.js"(e,t){var n=LS();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r}}),zS=K({"../../node_modules/lodash/_mapCacheDelete.js"(e,t){var n=RS();function r(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}t.exports=r}}),BS=K({"../../node_modules/lodash/_mapCacheGet.js"(e,t){var n=RS();function r(e){return n(this,e).get(e)}t.exports=r}}),VS=K({"../../node_modules/lodash/_mapCacheHas.js"(e,t){var n=RS();function r(e){return n(this,e).has(e)}t.exports=r}}),HS=K({"../../node_modules/lodash/_mapCacheSet.js"(e,t){var n=RS();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r}}),US=K({"../../node_modules/lodash/_MapCache.js"(e,t){var n=IS(),r=zS(),i=BS(),a=VS(),o=HS();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s}}),WS=K({"../../node_modules/lodash/_stackSet.js"(e,t){var n=lS(),r=OS(),i=US(),a=200;function o(e,t){var o=this.__data__;if(o instanceof n){var s=o.__data__;if(!r||s.length<a-1)return s.push([e,t]),this.size=++o.size,this;o=this.__data__=new i(s)}return o.set(e,t),this.size=o.size,this}t.exports=o}}),GS=K({"../../node_modules/lodash/_Stack.js"(e,t){var n=lS(),r=uS(),i=dS(),a=fS(),o=pS(),s=WS();function c(e){this.size=(this.__data__=new n(e)).size}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c}}),KS=K({"../../node_modules/lodash/_setCacheAdd.js"(e,t){var n=`__lodash_hash_undefined__`;function r(e){return this.__data__.set(e,n),this}t.exports=r}}),qS=K({"../../node_modules/lodash/_setCacheHas.js"(e,t){function n(e){return this.__data__.has(e)}t.exports=n}}),JS=K({"../../node_modules/lodash/_SetCache.js"(e,t){var n=US(),r=KS(),i=qS();function a(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=r,a.prototype.has=i,t.exports=a}}),YS=K({"../../node_modules/lodash/_arraySome.js"(e,t){function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}t.exports=n}}),XS=K({"../../node_modules/lodash/_cacheHas.js"(e,t){function n(e,t){return e.has(t)}t.exports=n}}),ZS=K({"../../node_modules/lodash/_equalArrays.js"(e,t){var n=JS(),r=YS(),i=XS(),a=1,o=2;function s(e,t,s,c,l,u){var d=s&a,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var m=u.get(e),h=u.get(t);if(m&&h)return m==t&&h==e;var g=-1,_=!0,v=s&o?new n:void 0;for(u.set(e,t),u.set(t,e);++g<f;){var y=e[g],b=t[g];if(c)var x=d?c(b,y,g,t,e,u):c(y,b,g,e,t,u);if(x!==void 0){if(x)continue;_=!1;break}if(v){if(!r(t,function(e,t){if(!i(v,t)&&(y===e||l(y,e,s,c,u)))return v.push(t)})){_=!1;break}}else if(!(y===b||l(y,b,s,c,u))){_=!1;break}}return u.delete(e),u.delete(t),_}t.exports=s}}),QS=K({"../../node_modules/lodash/_Uint8Array.js"(e,t){t.exports=hS().Uint8Array}}),$S=K({"../../node_modules/lodash/_mapToArray.js"(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}t.exports=n}}),eC=K({"../../node_modules/lodash/_setToArray.js"(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.exports=n}}),tC=K({"../../node_modules/lodash/_equalByTag.js"(e,t){var n=gS(),r=QS(),i=rS(),a=ZS(),o=$S(),s=eC(),c=1,l=2,u=`[object Boolean]`,d=`[object Date]`,f=`[object Error]`,p=`[object Map]`,m=`[object Number]`,h=`[object RegExp]`,g=`[object Set]`,_=`[object String]`,v=`[object Symbol]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=n?n.prototype:void 0,S=x?x.valueOf:void 0;function C(e,t,n,x,C,w,T){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!w(new r(e),new r(t)));case u:case d:case m:return i(+e,+t);case f:return e.name==t.name&&e.message==t.message;case h:case _:return e==t+``;case p:var E=o;case g:var D=x&c;if(E||=s,e.size!=t.size&&!D)return!1;var O=T.get(e);if(O)return O==t;x|=l,T.set(e,t);var k=a(E(e),E(t),x,C,w,T);return T.delete(e),k;case v:if(S)return S.call(e)==S.call(t)}return!1}t.exports=C}}),nC=K({"../../node_modules/lodash/_arrayPush.js"(e,t){function n(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}t.exports=n}}),rC=K({"../../node_modules/lodash/isArray.js"(e,t){t.exports=Array.isArray}}),iC=K({"../../node_modules/lodash/_baseGetAllKeys.js"(e,t){var n=nC(),r=rC();function i(e,t,i){var a=t(e);return r(e)?a:n(a,i(e))}t.exports=i}}),aC=K({"../../node_modules/lodash/_arrayFilter.js"(e,t){function n(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}t.exports=n}}),oC=K({"../../node_modules/lodash/stubArray.js"(e,t){function n(){return[]}t.exports=n}}),sC=K({"../../node_modules/lodash/_getSymbols.js"(e,t){var n=aC(),r=oC(),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;t.exports=a?function(e){return e==null?[]:(e=Object(e),n(a(e),function(t){return i.call(e,t)}))}:r}}),cC=K({"../../node_modules/lodash/_baseTimes.js"(e,t){function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=n}}),lC=K({"../../node_modules/lodash/isObjectLike.js"(e,t){function n(e){return typeof e==`object`&&!!e}t.exports=n}}),uC=K({"../../node_modules/lodash/_baseIsArguments.js"(e,t){var n=yS(),r=lC(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a}}),dC=K({"../../node_modules/lodash/isArguments.js"(e,t){var n=uC(),r=lC(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n((function(){return arguments})())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}}}),fC=K({"../../node_modules/lodash/stubFalse.js"(e,t){function n(){return!1}t.exports=n}}),pC=K({"../../node_modules/lodash/isBuffer.js"(e,t){var n=hS(),r=fC(),i=typeof e==`object`&&e&&!e.nodeType&&e,a=i&&typeof t==`object`&&t&&!t.nodeType&&t,o=a&&a.exports===i?n.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||r}}),mC=K({"../../node_modules/lodash/_isIndex.js"(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t??=n,!!t&&(i==`number`||i!=`symbol`&&r.test(e))&&e>-1&&e%1==0&&e<t}t.exports=i}}),hC=K({"../../node_modules/lodash/isLength.js"(e,t){var n=9007199254740991;function r(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}t.exports=r}}),gC=K({"../../node_modules/lodash/_baseIsTypedArray.js"(e,t){var n=yS(),r=hC(),i=lC(),a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object Map]`,f=`[object Number]`,p=`[object Object]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,D=`[object Uint16Array]`,O=`[object Uint32Array]`,k={};k[b]=k[x]=k[S]=k[C]=k[w]=k[T]=k[E]=k[D]=k[O]=!0,k[a]=k[o]=k[v]=k[s]=k[y]=k[c]=k[l]=k[u]=k[d]=k[f]=k[p]=k[m]=k[h]=k[g]=k[_]=!1;function A(e){return i(e)&&r(e.length)&&!!k[n(e)]}t.exports=A}}),_C=K({"../../node_modules/lodash/_baseUnary.js"(e,t){function n(e){return function(t){return e(t)}}t.exports=n}}),vC=K({"../../node_modules/lodash/_nodeUtil.js"(e,t){var n=mS(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r&&n.process;t.exports=(function(){try{return i&&i.require&&i.require(`util`).types||a&&a.binding&&a.binding(`util`)}catch{}})()}}),yC=K({"../../node_modules/lodash/isTypedArray.js"(e,t){var n=gC(),r=_C(),i=vC(),a=i&&i.isTypedArray;t.exports=a?r(a):n}}),bC=K({"../../node_modules/lodash/_arrayLikeKeys.js"(e,t){var n=cC(),r=dC(),i=rC(),a=pC(),o=mC(),s=yC(),c=Object.prototype.hasOwnProperty;function l(e,t){var l=i(e),u=!l&&r(e),d=!l&&!u&&a(e),f=!l&&!u&&!d&&s(e),p=l||u||d||f,m=p?n(e.length,String):[],h=m.length;for(var g in e)(t||c.call(e,g))&&!(p&&(g==`length`||d&&(g==`offset`||g==`parent`)||f&&(g==`buffer`||g==`byteLength`||g==`byteOffset`)||o(g,h)))&&m.push(g);return m}t.exports=l}}),xC=K({"../../node_modules/lodash/_isPrototype.js"(e,t){var n=Object.prototype;function r(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||n)}t.exports=r}}),SC=K({"../../node_modules/lodash/_overArg.js"(e,t){function n(e,t){return function(n){return e(t(n))}}t.exports=n}}),CC=K({"../../node_modules/lodash/_nativeKeys.js"(e,t){t.exports=SC()(Object.keys,Object)}}),wC=K({"../../node_modules/lodash/_baseKeys.js"(e,t){var n=xC(),r=CC(),i=Object.prototype.hasOwnProperty;function a(e){if(!n(e))return r(e);var t=[];for(var a in Object(e))i.call(e,a)&&a!=`constructor`&&t.push(a);return t}t.exports=a}}),TC=K({"../../node_modules/lodash/isArrayLike.js"(e,t){var n=xS(),r=hC();function i(e){return e!=null&&r(e.length)&&!n(e)}t.exports=i}}),EC=K({"../../node_modules/lodash/keys.js"(e,t){var n=bC(),r=wC(),i=TC();function a(e){return i(e)?n(e):r(e)}t.exports=a}}),DC=K({"../../node_modules/lodash/_getAllKeys.js"(e,t){var n=iC(),r=sC(),i=EC();function a(e){return n(e,i,r)}t.exports=a}}),OC=K({"../../node_modules/lodash/_equalObjects.js"(e,t){var n=DC(),r=1,i=Object.prototype.hasOwnProperty;function a(e,t,a,o,s,c){var l=a&r,u=n(e),d=u.length;if(d!=n(t).length&&!l)return!1;for(var f=d;f--;){var p=u[f];if(!(l?p in t:i.call(t,p)))return!1}var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var g=!0;c.set(e,t),c.set(t,e);for(var _=l;++f<d;){p=u[f];var v=e[p],y=t[p];if(o)var b=l?o(y,v,p,t,e,c):o(v,y,p,e,t,c);if(!(b===void 0?v===y||s(v,y,a,o,c):b)){g=!1;break}_||=p==`constructor`}if(g&&!_){var x=e.constructor,S=t.constructor;x!=S&&`constructor`in e&&`constructor`in t&&!(typeof x==`function`&&x instanceof x&&typeof S==`function`&&S instanceof S)&&(g=!1)}return c.delete(e),c.delete(t),g}t.exports=a}}),kC=K({"../../node_modules/lodash/_DataView.js"(e,t){t.exports=DS()(hS(),`DataView`)}}),AC=K({"../../node_modules/lodash/_Promise.js"(e,t){t.exports=DS()(hS(),`Promise`)}}),jC=K({"../../node_modules/lodash/_Set.js"(e,t){t.exports=DS()(hS(),`Set`)}}),MC=K({"../../node_modules/lodash/_WeakMap.js"(e,t){t.exports=DS()(hS(),`WeakMap`)}}),NC=K({"../../node_modules/lodash/_getTag.js"(e,t){var n=kC(),r=OS(),i=AC(),a=jC(),o=MC(),s=yS(),c=wS(),l=`[object Map]`,u=`[object Object]`,d=`[object Promise]`,f=`[object Set]`,p=`[object WeakMap]`,m=`[object DataView]`,h=c(n),g=c(r),_=c(i),v=c(a),y=c(o),b=s;(n&&b(new n(new ArrayBuffer(1)))!=m||r&&b(new r)!=l||i&&b(i.resolve())!=d||a&&b(new a)!=f||o&&b(new o)!=p)&&(b=function(e){var t=s(e),n=t==u?e.constructor:void 0,r=n?c(n):``;if(r)switch(r){case h:return m;case g:return l;case _:return d;case v:return f;case y:return p}return t}),t.exports=b}}),PC=K({"../../node_modules/lodash/_baseIsEqualDeep.js"(e,t){var n=GS(),r=ZS(),i=tC(),a=OC(),o=NC(),s=rC(),c=pC(),l=yC(),u=1,d=`[object Arguments]`,f=`[object Array]`,p=`[object Object]`,m=Object.prototype.hasOwnProperty;function h(e,t,h,g,_,v){var y=s(e),b=s(t),x=y?f:o(e),S=b?f:o(t);x=x==d?p:x,S=S==d?p:S;var C=x==p,w=S==p,T=x==S;if(T&&c(e)){if(!c(t))return!1;y=!0,C=!1}if(T&&!C)return v||=new n,y||l(e)?r(e,t,h,g,_,v):i(e,t,x,h,g,_,v);if(!(h&u)){var E=C&&m.call(e,`__wrapped__`),D=w&&m.call(t,`__wrapped__`);if(E||D){var O=E?e.value():e,k=D?t.value():t;return v||=new n,_(O,k,h,g,v)}}return T?(v||=new n,a(e,t,h,g,_,v)):!1}t.exports=h}}),FC=K({"../../node_modules/lodash/_baseIsEqual.js"(e,t){var n=PC(),r=lC();function i(e,t,a,o,s){return e===t?!0:e==null||t==null||!r(e)&&!r(t)?e!==e&&t!==t:n(e,t,a,o,i,s)}t.exports=i}}),IC=K({"../../node_modules/lodash/isEqualWith.js"(e,t){var n=FC();function r(e,t,r){r=typeof r==`function`?r:void 0;var i=r?r(e,t):void 0;return i===void 0?n(e,t,void 0,r):!!i}t.exports=r}}),LC=K({"../../node_modules/css.escape/css.escape.js"(e,t){(function(n,r){typeof e==`object`?t.exports=r(n):typeof define==`function`&&define.amd?define([],r.bind(n,n)):r(n)})(typeof global<`u`?global:e,function(e){if(e.CSS&&e.CSS.escape)return e.CSS.escape;var t=function(e){if(arguments.length==0)throw TypeError("`CSS.escape` requires an argument.");for(var t=String(e),n=t.length,r=-1,i,a=``,o=t.charCodeAt(0);++r<n;){if(i=t.charCodeAt(r),i==0){a+=`<60>`;continue}if(i>=1&&i<=31||i==127||r==0&&i>=48&&i<=57||r==1&&i>=48&&i<=57&&o==45){a+=`\\`+i.toString(16)+` `;continue}if(r==0&&n==1&&i==45){a+=`\\`+t.charAt(r);continue}if(i>=128||i==45||i==95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){a+=t.charAt(r);continue}a+=`\\`+t.charAt(r)}return a};return e.CSS||={},e.CSS.escape=t,t})}}),RC=K({"../../node_modules/@testing-library/dom/node_modules/ansi-styles/index.js"(e,t){var n=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,r=(e=0)=>(t,n,r)=>`\x1B[${38+e};2;${t};${n};${r}m`;function i(){let e=new Map,t={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]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[n,r]of Object.entries(t)){for(let[n,i]of Object.entries(r))t[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=t[n],e.set(i[0],i[1]);Object.defineProperty(t,n,{value:r,enumerable:!1})}return Object.defineProperty(t,`codes`,{value:e,enumerable:!1}),t.color.close=`\x1B[39m`,t.bgColor.close=`\x1B[49m`,t.color.ansi256=n(),t.color.ansi16m=r(),t.bgColor.ansi256=n(10),t.bgColor.ansi16m=r(10),Object.defineProperties(t,{rgbToAnsi256:{value:(e,t,n)=>e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:e=>{let t=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(e.toString(16));if(!t)return[0,0,0];let{colorString:n}=t.groups;n.length===3&&(n=n.split(``).map(e=>e+e).join(``));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:e=>t.rgbToAnsi256(...t.hexToRgb(e)),enumerable:!1}}),t}Object.defineProperty(t,`exports`,{enumerable:!0,get:i})}}),zC=K({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/collections.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.printIteratorEntries=n,e.printIteratorValues=r,e.printListItems=i,e.printObjectProperties=a;var t=(e,t)=>{let n=Object.keys(e).sort(t);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(t=>{Object.getOwnPropertyDescriptor(e,t).enumerable&&n.push(t)}),n};function n(e,t,n,r,i,a,o=`: `){let s=``,c=e.next();if(!c.done){s+=t.spacingOuter;let l=n+t.indent;for(;!c.done;){let n=a(c.value[0],t,l,r,i),u=a(c.value[1],t,l,r,i);s+=l+n+o+u,c=e.next(),c.done?t.min||(s+=`,`):s+=`,`+t.spacingInner}s+=t.spacingOuter+n}return s}function r(e,t,n,r,i,a){let o=``,s=e.next();if(!s.done){o+=t.spacingOuter;let c=n+t.indent;for(;!s.done;)o+=c+a(s.value,t,c,r,i),s=e.next(),s.done?t.min||(o+=`,`):o+=`,`+t.spacingInner;o+=t.spacingOuter+n}return o}function i(e,t,n,r,i,a){let o=``;if(e.length){o+=t.spacingOuter;let s=n+t.indent;for(let n=0;n<e.length;n++)o+=s,n in e&&(o+=a(e[n],t,s,r,i)),n<e.length-1?o+=`,`+t.spacingInner:t.min||(o+=`,`);o+=t.spacingOuter+n}return o}function a(e,n,r,i,a,o){let s=``,c=t(e,n.compareKeys);if(c.length){s+=n.spacingOuter;let t=r+n.indent;for(let r=0;r<c.length;r++){let l=c[r],u=o(l,n,t,i,a),d=o(e[l],n,t,i,a);s+=t+u+`: `+d,r<c.length-1?s+=`,`+n.spacingInner:n.min||(s+=`,`)}s+=n.spacingOuter+r}return s}}}),BC=K({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.test=e.serialize=e.default=void 0;var t=zC(),n=(function(){return typeof globalThis<`u`?globalThis:typeof n<`u`?n:typeof self<`u`?self:typeof window<`u`?window:Function(`return this`)()})(),r=n[`jest-symbol-do-not-touch`]||n.Symbol,i=typeof r==`function`&&r.for?r.for(`jest.asymmetricMatcher`):1267621,a=` `,o=(e,n,r,i,o,s)=>{let c=e.toString();return c===`ArrayContaining`||c===`ArrayNotContaining`?++i>n.maxDepth?`[`+c+`]`:c+a+`[`+(0,t.printListItems)(e.sample,n,r,i,o,s)+`]`:c===`ObjectContaining`||c===`ObjectNotContaining`?++i>n.maxDepth?`[`+c+`]`:c+a+`{`+(0,t.printObjectProperties)(e.sample,n,r,i,o,s)+`}`:c===`StringMatching`||c===`StringNotMatching`||c===`StringContaining`||c===`StringNotContaining`?c+a+s(e.sample,n,r,i,o):e.toAsymmetricMatcher()};e.serialize=o;var s=e=>e&&e.$$typeof===i;e.test=s,e.default={serialize:o,test:s}}}),VC=K({"../../node_modules/@testing-library/dom/node_modules/ansi-regex/index.js"(e,t){t.exports=({onlyFirst:e=!1}={})=>{let 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`)}}}),HC=K({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ConvertAnsi.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.test=e.serialize=e.default=void 0;var t=r(VC()),n=r(RC());function r(e){return e&&e.__esModule?e:{default:e}}var i=e=>e.replace((0,t.default)(),e=>{switch(e){case n.default.red.close:case n.default.green.close:case n.default.cyan.close:case n.default.gray.close:case n.default.white.close:case n.default.yellow.close:case n.default.bgRed.close:case n.default.bgGreen.close:case n.default.bgYellow.close:case n.default.inverse.close:case n.default.dim.close:case n.default.bold.close:case n.default.reset.open:case n.default.reset.close:return`</>`;case n.default.red.open:return`<red>`;case n.default.green.open:return`<green>`;case n.default.cyan.open:return`<cyan>`;case n.default.gray.open:return`<gray>`;case n.default.white.open:return`<white>`;case n.default.yellow.open:return`<yellow>`;case n.default.bgRed.open:return`<bgRed>`;case n.default.bgGreen.open:return`<bgGreen>`;case n.default.bgYellow.open:return`<bgYellow>`;case n.default.inverse.open:return`<inverse>`;case n.default.dim.open:return`<dim>`;case n.default.bold.open:return`<bold>`;default:return``}}),a=e=>typeof e==`string`&&!!e.match((0,t.default)());e.test=a;var o=(e,t,n,r,a,o)=>o(i(e),t,n,r,a);e.serialize=o,e.default={serialize:o,test:a}}}),UC=K({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMCollection.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.test=e.serialize=e.default=void 0;var t=zC(),n=` `,r=[`DOMStringMap`,`NamedNodeMap`],i=/^(HTML\w*Collection|NodeList)$/,a=e=>r.indexOf(e)!==-1||i.test(e),o=e=>e&&e.constructor&&!!e.constructor.name&&a(e.constructor.name);e.test=o;var s=e=>e.constructor.name===`NamedNodeMap`,c=(e,i,a,o,c,l)=>{let u=e.constructor.name;return++o>i.maxDepth?`[`+u+`]`:(i.min?``:u+n)+(r.indexOf(u)===-1?`[`+(0,t.printListItems)(Array.from(e),i,a,o,c,l)+`]`:`{`+(0,t.printObjectProperties)(s(e)?Array.from(e).reduce((e,t)=>(e[t.name]=t.value,e),{}):{...e},i,a,o,c,l)+`}`)};e.serialize=c,e.default={serialize:c,test:o}}}),WC=K({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=t;function t(e){return e.replace(/</g,`<`).replace(/>/g,`>`)}}}),GC=K({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/markup.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.printText=e.printProps=e.printElementAsLeaf=e.printElement=e.printComment=e.printChildren=void 0;var t=n(WC());function n(e){return e&&e.__esModule?e:{default:e}}e.printProps=(e,t,n,r,i,a,o)=>{let s=r+n.indent,c=n.colors;return e.map(e=>{let l=t[e],u=o(l,n,s,i,a);return typeof l!=`string`&&(u.indexOf(`
|
||
`)!==-1&&(u=n.spacingOuter+s+u+n.spacingOuter+r),u=`{`+u+`}`),n.spacingInner+r+c.prop.open+e+c.prop.close+`=`+c.value.open+u+c.value.close}).join(``)},e.printChildren=(e,t,n,i,a,o)=>e.map(e=>t.spacingOuter+n+(typeof e==`string`?r(e,t):o(e,t,n,i,a))).join(``);var r=(e,n)=>{let r=n.colors.content;return r.open+(0,t.default)(e)+r.close};e.printText=r,e.printComment=(e,n)=>{let r=n.colors.comment;return r.open+`<!--`+(0,t.default)(e)+`-->`+r.close},e.printElement=(e,t,n,r,i)=>{let a=r.colors.tag;return a.open+`<`+e+(t&&a.close+t+r.spacingOuter+i+a.open)+(n?`>`+a.close+n+r.spacingOuter+i+a.open+`</`+e:(t&&!r.min?``:` `)+`/`)+`>`+a.close},e.printElementAsLeaf=(e,t)=>{let n=t.colors.tag;return n.open+`<`+e+n.close+` …`+n.open+` />`+n.close}}}),KC=K({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMElement.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.test=e.serialize=e.default=void 0;var t=GC(),n=1,r=3,i=8,a=11,o=/^((HTML|SVG)\w*)?Element$/,s=e=>{try{return typeof e.hasAttribute==`function`&&e.hasAttribute(`is`)}catch{return!1}},c=e=>{let t=e.constructor.name,{nodeType:c,tagName:l}=e,u=typeof l==`string`&&l.includes(`-`)||s(e);return c===n&&(o.test(t)||u)||c===r&&t===`Text`||c===i&&t===`Comment`||c===a&&t===`DocumentFragment`},l=e=>{var t;return(e==null||(t=e.constructor)==null?void 0:t.name)&&c(e)};e.test=l;function u(e){return e.nodeType===r}function d(e){return e.nodeType===i}function f(e){return e.nodeType===a}var p=(e,n,r,i,a,o)=>{if(u(e))return(0,t.printText)(e.data,n);if(d(e))return(0,t.printComment)(e.data,n);let s=f(e)?`DocumentFragment`:e.tagName.toLowerCase();return++i>n.maxDepth?(0,t.printElementAsLeaf)(s,n):(0,t.printElement)(s,(0,t.printProps)(f(e)?[]:Array.from(e.attributes).map(e=>e.name).sort(),f(e)?{}:Array.from(e.attributes).reduce((e,t)=>(e[t.name]=t.value,e),{}),n,r+n.indent,i,a,o),(0,t.printChildren)(Array.prototype.slice.call(e.childNodes||e.children),n,r+n.indent,i,a,o),n,r)};e.serialize=p,e.default={serialize:p,test:l}}}),qC=K({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/Immutable.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.test=e.serialize=e.default=void 0;var t=zC(),n=`@@__IMMUTABLE_ITERABLE__@@`,r=`@@__IMMUTABLE_LIST__@@`,i=`@@__IMMUTABLE_KEYED__@@`,a=`@@__IMMUTABLE_MAP__@@`,o=`@@__IMMUTABLE_ORDERED__@@`,s=`@@__IMMUTABLE_RECORD__@@`,c=`@@__IMMUTABLE_SEQ__@@`,l=`@@__IMMUTABLE_SET__@@`,u=`@@__IMMUTABLE_STACK__@@`,d=e=>`Immutable.`+e,f=e=>`[`+e+`]`,p=` `,m=`…`,h=(e,n,r,i,a,o,s)=>++i>n.maxDepth?f(d(s)):d(s)+p+`{`+(0,t.printIteratorEntries)(e.entries(),n,r,i,a,o)+`}`;function g(e){let t=0;return{next(){if(t<e._keys.length){let n=e._keys[t++];return{done:!1,value:[n,e.get(n)]}}return{done:!0,value:void 0}}}}var _=(e,n,r,i,a,o)=>{let s=d(e._name||`Record`);return++i>n.maxDepth?f(s):s+p+`{`+(0,t.printIteratorEntries)(g(e),n,r,i,a,o)+`}`},v=(e,n,r,a,o,s)=>{let c=d(`Seq`);return++a>n.maxDepth?f(c):e[i]?c+p+`{`+(e._iter||e._object?(0,t.printIteratorEntries)(e.entries(),n,r,a,o,s):m)+`}`:c+p+`[`+(e._iter||e._array||e._collection||e._iterable?(0,t.printIteratorValues)(e.values(),n,r,a,o,s):m)+`]`},y=(e,n,r,i,a,o,s)=>++i>n.maxDepth?f(d(s)):d(s)+p+`[`+(0,t.printIteratorValues)(e.values(),n,r,i,a,o)+`]`,b=(e,t,n,i,s,d)=>e[a]?h(e,t,n,i,s,d,e[o]?`OrderedMap`:`Map`):e[r]?y(e,t,n,i,s,d,`List`):e[l]?y(e,t,n,i,s,d,e[o]?`OrderedSet`:`Set`):e[u]?y(e,t,n,i,s,d,`Stack`):e[c]?v(e,t,n,i,s,d):_(e,t,n,i,s,d);e.serialize=b;var x=e=>e&&(e[n]===!0||e[s]===!0);e.test=x,e.default={serialize:b,test:x}}}),JC=K({"../../node_modules/@testing-library/dom/node_modules/react-is/cjs/react-is.production.min.js"(e){var t=60103,n=60106,r=60107,i=60108,a=60114,o=60109,s=60110,c=60112,l=60113,u=60120,d=60115,f=60116,p=60121,m=60122,h=60117,g=60129,_=60131;typeof Symbol==`function`&&Symbol.for&&(v=Symbol.for,t=v(`react.element`),n=v(`react.portal`),r=v(`react.fragment`),i=v(`react.strict_mode`),a=v(`react.profiler`),o=v(`react.provider`),s=v(`react.context`),c=v(`react.forward_ref`),l=v(`react.suspense`),u=v(`react.suspense_list`),d=v(`react.memo`),f=v(`react.lazy`),p=v(`react.block`),m=v(`react.server.block`),h=v(`react.fundamental`),g=v(`react.debug_trace_mode`),_=v(`react.legacy_hidden`));var v;function y(e){if(typeof e==`object`&&e){var p=e.$$typeof;switch(p){case t:switch(e=e.type,e){case r:case a:case i:case l:case u:return e;default:switch(e&&=e.$$typeof,e){case s:case c:case f:case d:case o:return e;default:return p}}case n:return p}}}var b=o,x=t,S=c,C=r,w=f,T=d,E=n,D=a,O=i,k=l;e.ContextConsumer=s,e.ContextProvider=b,e.Element=x,e.ForwardRef=S,e.Fragment=C,e.Lazy=w,e.Memo=T,e.Portal=E,e.Profiler=D,e.StrictMode=O,e.Suspense=k,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function(e){return y(e)===s},e.isContextProvider=function(e){return y(e)===o},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===t},e.isForwardRef=function(e){return y(e)===c},e.isFragment=function(e){return y(e)===r},e.isLazy=function(e){return y(e)===f},e.isMemo=function(e){return y(e)===d},e.isPortal=function(e){return y(e)===n},e.isProfiler=function(e){return y(e)===a},e.isStrictMode=function(e){return y(e)===i},e.isSuspense=function(e){return y(e)===l},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===r||e===a||e===g||e===i||e===l||e===u||e===_||typeof e==`object`&&!!e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===o||e.$$typeof===s||e.$$typeof===c||e.$$typeof===h||e.$$typeof===p||e[0]===m)},e.typeOf=y}}),YC=K({"../../node_modules/@testing-library/dom/node_modules/react-is/index.js"(e,t){t.exports=JC()}}),XC=K({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactElement.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.test=e.serialize=e.default=void 0;var t=i(YC()),n=GC();function r(e){if(typeof WeakMap!=`function`)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function i(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!=`object`&&typeof e!=`function`)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!==`default`&&Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=e[o]}return i.default=e,n&&n.set(e,i),i}var a=(e,t=[])=>(Array.isArray(e)?e.forEach(e=>{a(e,t)}):e!=null&&e!==!1&&t.push(e),t),o=e=>{let n=e.type;if(typeof n==`string`)return n;if(typeof n==`function`)return n.displayName||n.name||`Unknown`;if(t.isFragment(e))return`React.Fragment`;if(t.isSuspense(e))return`React.Suspense`;if(typeof n==`object`&&n){if(t.isContextProvider(e))return`Context.Provider`;if(t.isContextConsumer(e))return`Context.Consumer`;if(t.isForwardRef(e)){if(n.displayName)return n.displayName;let e=n.render.displayName||n.render.name||``;return e===``?`ForwardRef`:`ForwardRef(`+e+`)`}if(t.isMemo(e)){let e=n.displayName||n.type.displayName||n.type.name||``;return e===``?`Memo`:`Memo(`+e+`)`}}return`UNDEFINED`},s=e=>{let{props:t}=e;return Object.keys(t).filter(e=>e!==`children`&&t[e]!==void 0).sort()},c=(e,t,r,i,c,l)=>++i>t.maxDepth?(0,n.printElementAsLeaf)(o(e),t):(0,n.printElement)(o(e),(0,n.printProps)(s(e),e.props,t,r+t.indent,i,c,l),(0,n.printChildren)(a(e.props.children),t,r+t.indent,i,c,l),t,r);e.serialize=c;var l=e=>e!=null&&t.isElement(e);e.test=l,e.default={serialize:c,test:l}}}),ZC=K({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactTestComponent.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.test=e.serialize=e.default=void 0;var t=GC(),n=(function(){return typeof globalThis<`u`?globalThis:typeof n<`u`?n:typeof self<`u`?self:typeof window<`u`?window:Function(`return this`)()})(),r=n[`jest-symbol-do-not-touch`]||n.Symbol,i=typeof r==`function`&&r.for?r.for(`react.test.json`):245830487,a=e=>{let{props:t}=e;return t?Object.keys(t).filter(e=>t[e]!==void 0).sort():[]},o=(e,n,r,i,o,s)=>++i>n.maxDepth?(0,t.printElementAsLeaf)(e.type,n):(0,t.printElement)(e.type,e.props?(0,t.printProps)(a(e),e.props,n,r+n.indent,i,o,s):``,e.children?(0,t.printChildren)(e.children,n,r+n.indent,i,o,s):``,n,r);e.serialize=o;var s=e=>e&&e.$$typeof===i;e.test=s,e.default={serialize:o,test:s}}}),QC=K({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/index.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=e.DEFAULT_OPTIONS=void 0,e.format=se,e.plugins=void 0;var t=u(RC()),n=zC(),r=u(BC()),i=u(HC()),a=u(UC()),o=u(KC()),s=u(qC()),c=u(XC()),l=u(ZC());function u(e){return e&&e.__esModule?e:{default:e}}var d=Object.prototype.toString,f=Date.prototype.toISOString,p=Error.prototype.toString,m=RegExp.prototype.toString,h=e=>typeof e.constructor==`function`&&e.constructor.name||`Object`,g=e=>typeof window<`u`&&e===window,_=/^Symbol\((.*)\)(.*)$/,v=/\n/gi,y=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function b(e){return e===`[object Array]`||e===`[object ArrayBuffer]`||e===`[object DataView]`||e===`[object Float32Array]`||e===`[object Float64Array]`||e===`[object Int8Array]`||e===`[object Int16Array]`||e===`[object Int32Array]`||e===`[object Uint8Array]`||e===`[object Uint8ClampedArray]`||e===`[object Uint16Array]`||e===`[object Uint32Array]`}function x(e){return Object.is(e,-0)?`-0`:String(e)}function S(e){return`${e}n`}function C(e,t){return t?`[Function `+(e.name||`anonymous`)+`]`:`[Function]`}function w(e){return String(e).replace(_,`Symbol($1)`)}function T(e){return`[`+p.call(e)+`]`}function E(e,t,n,r){if(e===!0||e===!1)return``+e;if(e===void 0)return`undefined`;if(e===null)return`null`;let i=typeof e;if(i===`number`)return x(e);if(i===`bigint`)return S(e);if(i===`string`)return r?`"`+e.replace(/"|\\/g,`\\$&`)+`"`:`"`+e+`"`;if(i===`function`)return C(e,t);if(i===`symbol`)return w(e);let a=d.call(e);return a===`[object WeakMap]`?`WeakMap {}`:a===`[object WeakSet]`?`WeakSet {}`:a===`[object Function]`||a===`[object GeneratorFunction]`?C(e,t):a===`[object Symbol]`?w(e):a===`[object Date]`?isNaN(+e)?`Date { NaN }`:f.call(e):a===`[object Error]`?T(e):a===`[object RegExp]`?n?m.call(e).replace(/[\\^$*+?.()|[\]{}]/g,`\\$&`):m.call(e):e instanceof Error?T(e):null}function D(e,t,r,i,a,o){if(a.indexOf(e)!==-1)return`[Circular]`;a=a.slice(),a.push(e);let s=++i>t.maxDepth,c=t.min;if(t.callToJSON&&!s&&e.toJSON&&typeof e.toJSON==`function`&&!o)return j(e.toJSON(),t,r,i,a,!0);let l=d.call(e);return l===`[object Arguments]`?s?`[Arguments]`:(c?``:`Arguments `)+`[`+(0,n.printListItems)(e,t,r,i,a,j)+`]`:b(l)?s?`[`+e.constructor.name+`]`:(c||!t.printBasicPrototype&&e.constructor.name===`Array`?``:e.constructor.name+` `)+`[`+(0,n.printListItems)(e,t,r,i,a,j)+`]`:l===`[object Map]`?s?`[Map]`:`Map {`+(0,n.printIteratorEntries)(e.entries(),t,r,i,a,j,` => `)+`}`:l===`[object Set]`?s?`[Set]`:`Set {`+(0,n.printIteratorValues)(e.values(),t,r,i,a,j)+`}`:s||g(e)?`[`+h(e)+`]`:(c||!t.printBasicPrototype&&h(e)===`Object`?``:h(e)+` `)+`{`+(0,n.printObjectProperties)(e,t,r,i,a,j)+`}`}function O(e){return e.serialize!=null}function k(e,t,n,r,i,a){let o;try{o=O(e)?e.serialize(t,n,r,i,a,j):e.print(t,e=>j(e,n,r,i,a),e=>{let t=r+n.indent;return t+e.replace(v,`
|
||
`+t)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(e){throw new y(e.message,e.stack)}if(typeof o!=`string`)throw Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof o}".`);return o}function A(e,t){for(let n=0;n<e.length;n++)try{if(e[n].test(t))return e[n]}catch(e){throw new y(e.message,e.stack)}return null}function j(e,t,n,r,i,a){let o=A(t.plugins,e);if(o!==null)return k(o,e,t,n,r,i);let s=E(e,t.printFunctionName,t.escapeRegex,t.escapeString);return s===null?D(e,t,n,r,i,a):s}var M={comment:`gray`,content:`reset`,prop:`yellow`,tag:`cyan`,value:`green`},ee=Object.keys(M),N={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:M};e.DEFAULT_OPTIONS=N;function te(e){if(Object.keys(e).forEach(e=>{if(!N.hasOwnProperty(e))throw Error(`pretty-format: Unknown option "${e}".`)}),e.min&&e.indent!==void 0&&e.indent!==0)throw Error(`pretty-format: Options "min" and "indent" cannot be used together.`);if(e.theme!==void 0){if(e.theme===null)throw Error(`pretty-format: Option "theme" must not be null.`);if(typeof e.theme!=`object`)throw Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof e.theme}".`)}}var ne=e=>ee.reduce((n,r)=>{let i=e.theme&&e.theme[r]!==void 0?e.theme[r]:M[r],a=i&&t.default[i];if(a&&typeof a.close==`string`&&typeof a.open==`string`)n[r]=a;else throw Error(`pretty-format: Option "theme" has a key "${r}" whose value "${i}" is undefined in ansi-styles.`);return n},Object.create(null)),re=()=>ee.reduce((e,t)=>(e[t]={close:``,open:``},e),Object.create(null)),P=e=>e&&e.printFunctionName!==void 0?e.printFunctionName:N.printFunctionName,ie=e=>e&&e.escapeRegex!==void 0?e.escapeRegex:N.escapeRegex,ae=e=>e&&e.escapeString!==void 0?e.escapeString:N.escapeString,oe=e=>({callToJSON:e&&e.callToJSON!==void 0?e.callToJSON:N.callToJSON,colors:e&&e.highlight?ne(e):re(),compareKeys:e&&typeof e.compareKeys==`function`?e.compareKeys:N.compareKeys,escapeRegex:ie(e),escapeString:ae(e),indent:e&&e.min?``:F(e&&e.indent!==void 0?e.indent:N.indent),maxDepth:e&&e.maxDepth!==void 0?e.maxDepth:N.maxDepth,min:e&&e.min!==void 0?e.min:N.min,plugins:e&&e.plugins!==void 0?e.plugins:N.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:P(e),spacingInner:e&&e.min?` `:`
|
||
`,spacingOuter:e&&e.min?``:`
|
||
`});function F(e){return Array(e+1).join(` `)}function se(e,t){if(t&&(te(t),t.plugins)){let n=A(t.plugins,e);if(n!==null)return k(n,e,oe(t),``,0,[])}let n=E(e,P(t),ie(t),ae(t));return n===null?D(e,oe(t),``,0,[]):n}e.plugins={AsymmetricMatcher:r.default,ConvertAnsi:i.default,DOMCollection:a.default,DOMElement:o.default,Immutable:s.default,ReactElement:c.default,ReactTestComponent:l.default},e.default=se}}),$C=K({"../../node_modules/lz-string/libs/lz-string.js"(e,t){var n=(function(){var e=String.fromCharCode,t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`,n=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$`,r={};function i(e,t){if(!r[e]){r[e]={};for(var n=0;n<e.length;n++)r[e][e.charAt(n)]=n}return r[e][t]}var a={compressToBase64:function(e){if(e==null)return``;var n=a._compress(e,6,function(e){return t.charAt(e)});switch(n.length%4){default:case 0:return n;case 1:return n+`===`;case 2:return n+`==`;case 3:return n+`=`}},decompressFromBase64:function(e){return e==null?``:e==``?null:a._decompress(e.length,32,function(n){return i(t,e.charAt(n))})},compressToUTF16:function(t){return t==null?``:a._compress(t,15,function(t){return e(t+32)})+` `},decompressFromUTF16:function(e){return e==null?``:e==``?null:a._decompress(e.length,16384,function(t){return e.charCodeAt(t)-32})},compressToUint8Array:function(e){for(var t=a.compress(e),n=new Uint8Array(t.length*2),r=0,i=t.length;r<i;r++){var o=t.charCodeAt(r);n[r*2]=o>>>8,n[r*2+1]=o%256}return n},decompressFromUint8Array:function(t){if(t==null)return a.decompress(t);for(var n=Array(t.length/2),r=0,i=n.length;r<i;r++)n[r]=t[r*2]*256+t[r*2+1];var o=[];return n.forEach(function(t){o.push(e(t))}),a.decompress(o.join(``))},compressToEncodedURIComponent:function(e){return e==null?``:a._compress(e,6,function(e){return n.charAt(e)})},decompressFromEncodedURIComponent:function(e){return e==null?``:e==``?null:(e=e.replace(/ /g,`+`),a._decompress(e.length,32,function(t){return i(n,e.charAt(t))}))},compress:function(t){return a._compress(t,16,function(t){return e(t)})},_compress:function(e,t,n){if(e==null)return``;var r,i,a={},o={},s=``,c=``,l=``,u=2,d=3,f=2,p=[],m=0,h=0,g;for(g=0;g<e.length;g+=1)if(s=e.charAt(g),Object.prototype.hasOwnProperty.call(a,s)||(a[s]=d++,o[s]=!0),c=l+s,Object.prototype.hasOwnProperty.call(a,c))l=c;else{if(Object.prototype.hasOwnProperty.call(o,l)){if(l.charCodeAt(0)<256){for(r=0;r<f;r++)m<<=1,h==t-1?(h=0,p.push(n(m)),m=0):h++;for(i=l.charCodeAt(0),r=0;r<8;r++)m=m<<1|i&1,h==t-1?(h=0,p.push(n(m)),m=0):h++,i>>=1}else{for(i=1,r=0;r<f;r++)m=m<<1|i,h==t-1?(h=0,p.push(n(m)),m=0):h++,i=0;for(i=l.charCodeAt(0),r=0;r<16;r++)m=m<<1|i&1,h==t-1?(h=0,p.push(n(m)),m=0):h++,i>>=1}u--,u==0&&(u=2**f,f++),delete o[l]}else for(i=a[l],r=0;r<f;r++)m=m<<1|i&1,h==t-1?(h=0,p.push(n(m)),m=0):h++,i>>=1;u--,u==0&&(u=2**f,f++),a[c]=d++,l=String(s)}if(l!==``){if(Object.prototype.hasOwnProperty.call(o,l)){if(l.charCodeAt(0)<256){for(r=0;r<f;r++)m<<=1,h==t-1?(h=0,p.push(n(m)),m=0):h++;for(i=l.charCodeAt(0),r=0;r<8;r++)m=m<<1|i&1,h==t-1?(h=0,p.push(n(m)),m=0):h++,i>>=1}else{for(i=1,r=0;r<f;r++)m=m<<1|i,h==t-1?(h=0,p.push(n(m)),m=0):h++,i=0;for(i=l.charCodeAt(0),r=0;r<16;r++)m=m<<1|i&1,h==t-1?(h=0,p.push(n(m)),m=0):h++,i>>=1}u--,u==0&&(u=2**f,f++),delete o[l]}else for(i=a[l],r=0;r<f;r++)m=m<<1|i&1,h==t-1?(h=0,p.push(n(m)),m=0):h++,i>>=1;u--,u==0&&(u=2**f,f++)}for(i=2,r=0;r<f;r++)m=m<<1|i&1,h==t-1?(h=0,p.push(n(m)),m=0):h++,i>>=1;for(;;)if(m<<=1,h==t-1){p.push(n(m));break}else h++;return p.join(``)},decompress:function(e){return e==null?``:e==``?null:a._decompress(e.length,32768,function(t){return e.charCodeAt(t)})},_decompress:function(t,n,r){var i=[],a=4,o=4,s=3,c=``,l=[],u,d,f,p,m,h,g,_={val:r(0),position:n,index:1};for(u=0;u<3;u+=1)i[u]=u;for(f=0,m=2**2,h=1;h!=m;)p=_.val&_.position,_.position>>=1,_.position==0&&(_.position=n,_.val=r(_.index++)),f|=(p>0?1:0)*h,h<<=1;switch(f){case 0:for(f=0,m=2**8,h=1;h!=m;)p=_.val&_.position,_.position>>=1,_.position==0&&(_.position=n,_.val=r(_.index++)),f|=(p>0?1:0)*h,h<<=1;g=e(f);break;case 1:for(f=0,m=2**16,h=1;h!=m;)p=_.val&_.position,_.position>>=1,_.position==0&&(_.position=n,_.val=r(_.index++)),f|=(p>0?1:0)*h,h<<=1;g=e(f);break;case 2:return``}for(i[3]=g,d=g,l.push(g);;){if(_.index>t)return``;for(f=0,m=2**s,h=1;h!=m;)p=_.val&_.position,_.position>>=1,_.position==0&&(_.position=n,_.val=r(_.index++)),f|=(p>0?1:0)*h,h<<=1;switch(g=f){case 0:for(f=0,m=2**8,h=1;h!=m;)p=_.val&_.position,_.position>>=1,_.position==0&&(_.position=n,_.val=r(_.index++)),f|=(p>0?1:0)*h,h<<=1;i[o++]=e(f),g=o-1,a--;break;case 1:for(f=0,m=2**16,h=1;h!=m;)p=_.val&_.position,_.position>>=1,_.position==0&&(_.position=n,_.val=r(_.index++)),f|=(p>0?1:0)*h,h<<=1;i[o++]=e(f),g=o-1,a--;break;case 2:return l.join(``)}if(a==0&&(a=2**s,s++),i[g])c=i[g];else if(g===o)c=d+d.charAt(0);else return null;l.push(c),i[o++]=d+c.charAt(0),a--,d=c,a==0&&(a=2**s,s++)}}};return a})();typeof define==`function`&&define.amd?define(function(){return n}):typeof t<`u`&&t!=null?t.exports=n:typeof angular<`u`&&angular!=null&&angular.module(`LZString`,[]).factory(`LZString`,function(){return n})}}),ew=K({"../../node_modules/memoizerific/memoizerific.js"(e,t){(function(n){if(typeof e==`object`&&typeof t<`u`)t.exports=n();else if(typeof define==`function`&&define.amd)define([],n);else{var r=typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:this;r.memoizerific=n()}})(function(){return(function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){var c=typeof Yv==`function`&&Yv;if(!s&&c)return c(o,!0);if(a)return a(o,!0);var l=Error(`Cannot find module '`+o+`'`);throw l.code=`MODULE_NOT_FOUND`,l}var u=n[o]={exports:{}};t[o][0].call(u.exports,function(e){var n=t[o][1][e];return i(n||e)},u,u.exports,e,t,n,r)}return n[o].exports}for(var a=typeof Yv==`function`&&Yv,o=0;o<r.length;o++)i(r[o]);return i})({1:[function(e,t,n){t.exports=function(t){return typeof Map!=`function`||t?new(e(`./similar`)):new Map}},{"./similar":2}],2:[function(e,t,n){function r(){return this.list=[],this.lastItem=void 0,this.size=0,this}r.prototype.get=function(e){var t;if(this.lastItem&&this.isEqual(this.lastItem.key,e))return this.lastItem.val;if(t=this.indexOf(e),t>=0)return this.lastItem=this.list[t],this.list[t].val},r.prototype.set=function(e,t){var n;return this.lastItem&&this.isEqual(this.lastItem.key,e)?(this.lastItem.val=t,this):(n=this.indexOf(e),n>=0?(this.lastItem=this.list[n],this.list[n].val=t,this):(this.lastItem={key:e,val:t},this.list.push(this.lastItem),this.size++,this))},r.prototype.delete=function(e){var t;if(this.lastItem&&this.isEqual(this.lastItem.key,e)&&(this.lastItem=void 0),t=this.indexOf(e),t>=0)return this.size--,this.list.splice(t,1)[0]},r.prototype.has=function(e){var t;return this.lastItem&&this.isEqual(this.lastItem.key,e)?!0:(t=this.indexOf(e),t>=0?(this.lastItem=this.list[t],!0):!1)},r.prototype.forEach=function(e,t){var n;for(n=0;n<this.size;n++)e.call(t||this,this.list[n].val,this.list[n].key,this)},r.prototype.indexOf=function(e){var t;for(t=0;t<this.size;t++)if(this.isEqual(this.list[t].key,e))return t;return-1},r.prototype.isEqual=function(e,t){return e===t||e!==e&&t!==t},t.exports=r},{}],3:[function(e,t,n){var r=e(`map-or-similar`);t.exports=function(e){var t=new r(!1),n=[];return function(o){var s=function(){var c=t,l,u,d=arguments.length-1,f=Array(d+1),p=!0,m;if((s.numArgs||s.numArgs===0)&&s.numArgs!==d+1)throw Error(`Memoizerific functions should always be called with the same number of arguments`);for(m=0;m<d;m++){if(f[m]={cacheItem:c,arg:arguments[m]},c.has(arguments[m])){c=c.get(arguments[m]);continue}p=!1,l=new r(!1),c.set(arguments[m],l),c=l}return p&&(c.has(arguments[d])?u=c.get(arguments[d]):p=!1),p||(u=o.apply(null,arguments),c.set(arguments[d],u)),e>0&&(f[d]={cacheItem:c,arg:arguments[d]},p?i(n,f):n.push(f),n.length>e&&a(n.shift())),s.wasMemoized=p,s.numArgs=d+1,u};return s.limit=e,s.wasMemoized=!1,s.cache=t,s.lru=n,s}};function i(e,t){var n=e.length,r=t.length,i,a,s;for(a=0;a<n;a++){for(i=!0,s=0;s<r;s++)if(!o(e[a][s].arg,t[s].arg)){i=!1;break}if(i)break}e.push(e.splice(a,1)[0])}function a(e){var t=e.length,n=e[t-1],r,i;for(n.cacheItem.delete(n.arg),i=t-2;i>=0&&(n=e[i],r=n.cacheItem.get(n.arg),!r||!r.size);i--)n.cacheItem.delete(n.arg)}function o(e,t){return e===t||e!==e&&t!==t}},{"map-or-similar":1}]},{},[3])(3)})}}),tw=K({"../../node_modules/picoquery/lib/string-util.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.encodeString=r;var t=Array.from({length:256},(e,t)=>`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase()),n=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function r(e){let r=e.length;if(r===0)return``;let i=``,a=0,o=0;outer:for(;o<r;o++){let s=e.charCodeAt(o);for(;s<128;){if(n[s]!==1&&(a<o&&(i+=e.slice(a,o)),a=o+1,i+=t[s]),++o===r)break outer;s=e.charCodeAt(o)}if(a<o&&(i+=e.slice(a,o)),s<2048){a=o+1,i+=t[192|s>>6]+t[128|s&63];continue}if(s<55296||s>=57344){a=o+1,i+=t[224|s>>12]+t[128|s>>6&63]+t[128|s&63];continue}if(++o,o>=r)throw Error(`URI malformed`);let c=e.charCodeAt(o)&1023;a=o+1,s=65536+((s&1023)<<10|c),i+=t[240|s>>18]+t[128|s>>12&63]+t[128|s>>6&63]+t[128|s&63]}return a===0?e:a<r?i+e.slice(a):i}}}),nw=K({"../../node_modules/picoquery/lib/shared.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=tw();e.defaultValueSerializer=e=>{switch(typeof e){case`string`:return(0,t.encodeString)(e);case`bigint`:case`boolean`:return``+e;case`number`:if(Number.isFinite(e))return e<1e21?``+e:(0,t.encodeString)(``+e);break}return e instanceof Date?(0,t.encodeString)(e.toISOString()):``},e.defaultShouldSerializeObject=e=>e instanceof Date;var n=e=>e;e.defaultOptions={nesting:!0,nestingSyntax:`dot`,arrayRepeat:!1,arrayRepeatSyntax:`repeat`,delimiter:38,valueDeserializer:n,valueSerializer:e.defaultValueSerializer,keyDeserializer:n,shouldSerializeObject:e.defaultShouldSerializeObject}}}),rw=K({"../../node_modules/picoquery/lib/object-util.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.getDeepObject=i,e.stringifyObject=u;var t=nw(),n=tw();function r(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function i(e,t,n,i,a){if(r(t))return e;let o=e[t];return typeof o==`object`&&o?o:!i&&(a||typeof n==`number`||typeof n==`string`&&n*0==0&&n.indexOf(`.`)===-1)?e[t]=[]:e[t]={}}var a=20,o=`[]`,s=`[`,c=`]`,l=`.`;function u(e,r,i=0,d,f){let{nestingSyntax:p=t.defaultOptions.nestingSyntax,arrayRepeat:m=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:h=t.defaultOptions.arrayRepeatSyntax,nesting:g=t.defaultOptions.nesting,delimiter:_=t.defaultOptions.delimiter,valueSerializer:v=t.defaultOptions.valueSerializer,shouldSerializeObject:y=t.defaultOptions.shouldSerializeObject}=r,b=typeof _==`number`?String.fromCharCode(_):_,x=f===!0&&m,S=p===`dot`||p===`js`&&!f;if(i>a)return``;let C=``,w=!0,T=!1;for(let t in e){let a=e[t];if(a===void 0)continue;let f;d?(f=d,x?h===`bracket`&&(f+=o):S?(f+=l,f+=t):(f+=s,f+=t,f+=c)):f=t,w||(C+=b),typeof a==`object`&&a&&!y(a)?(T=a.pop!==void 0,(g||m&&T)&&(C+=u(a,r,i+1,f,T))):(C+=(0,n.encodeString)(f),C+=`=`,C+=v(a,t)),w&&=!1}return C}}}),iw=K({"../../node_modules/picoquery/lib/decode-uri-component.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.decodeURIComponent=i;var t=12,n=0,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function i(e){let i=e.indexOf(`%`);if(i===-1)return e;let a=e.length,s=``,c=0,l=0,u=i,d=t;for(;i>-1&&i<a;){let f=o(e[i+1],4)|o(e[i+2],0),p=r[f];if(d=r[256+d+p],l=l<<6|f&r[364+p],d===t)s+=e.slice(c,u),s+=l<=65535?String.fromCharCode(l):String.fromCharCode(55232+(l>>10),56320+(l&1023)),l=0,c=i+3,i=u=e.indexOf(`%`,c);else{if(d===n)return null;if(i+=3,i<a&&e.charCodeAt(i)===37)continue;return null}}return s+e.slice(c)}var a={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function o(e,t){let n=a[e];return n===void 0?255:n<<t}}}),aw=K({"../../node_modules/picoquery/lib/parse.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=s;var t=rw(),n=nw(),r=iw();e.numberKeyDeserializer=e=>{let t=Number(e);return Number.isNaN(t)?e:t},e.numberValueDeserializer=e=>{let t=Number(e);return Number.isNaN(t)?e:t};var i=/\+/g,a=function(){};a.prototype=Object.create(null);function o(e,t,n,a,o){let s=e.substring(t,n);return a&&(s=s.replace(i,` `)),o&&(s=(0,r.decodeURIComponent)(s)||s),s}function s(e,s){let{valueDeserializer:c=n.defaultOptions.valueDeserializer,keyDeserializer:l=n.defaultOptions.keyDeserializer,arrayRepeatSyntax:u=n.defaultOptions.arrayRepeatSyntax,nesting:d=n.defaultOptions.nesting,arrayRepeat:f=n.defaultOptions.arrayRepeat,nestingSyntax:p=n.defaultOptions.nestingSyntax,delimiter:m=n.defaultOptions.delimiter}=s??{},h=typeof m==`string`?m.charCodeAt(0):m,g=p===`js`,_=new a;if(typeof e!=`string`)return _;let v=e.length,y=``,b=-1,x=-1,S=-1,C=_,w,T=``,E=``,D=!1,O=!1,k=!1,A=!1,j=!1,M=!1,ee=0,N=-1,te=-1,ne=-1;for(let n=0;n<v+1;n++){if(ee=n===v?h:e.charCodeAt(n),ee===h){if(M=x>b,M||(x=n),S!==x-1&&(E=o(e,S+1,N>-1?N:x,k,D),T=l(E),w!==void 0&&(C=(0,t.getDeepObject)(C,w,T,g&&j,void 0))),M||T!==``){M&&(y=e.slice(x+1,n),A&&(y=y.replace(i,` `)),O&&(y=(0,r.decodeURIComponent)(y)||y));let t=c(y,T);if(f){let e=C[T];e===void 0?N>-1?C[T]=[t]:C[T]=t:e.pop?e.push(t):C[T]=[e,t]}else C[T]=t}y=``,b=n,x=n,D=!1,O=!1,k=!1,A=!1,j=!1,N=-1,S=n,C=_,w=void 0,T=``}else ee===93?(f&&u===`bracket`&&ne===91&&(N=te),d&&(p===`index`||g)&&x<=b&&(S!==te&&(E=o(e,S+1,n,k,D),T=l(E),w!==void 0&&(C=(0,t.getDeepObject)(C,w,T,void 0,void 0)),w=T,k=!1,D=!1),S=n,j=!1)):ee===46?d&&(p===`dot`||g)&&x<=b&&(S!==te&&(E=o(e,S+1,n,k,D),T=l(E),w!==void 0&&(C=(0,t.getDeepObject)(C,w,T,g)),w=T,k=!1,D=!1),j=!0,S=n):ee===91?d&&(p===`index`||g)&&x<=b&&(S!==te&&(E=o(e,S+1,n,k,D),T=l(E),g&&w!==void 0&&(C=(0,t.getDeepObject)(C,w,T,g)),w=T,k=!1,D=!1,j=!1),S=n):ee===61?x<=b?x=n:O=!0:ee===43?x>b?A=!0:k=!0:ee===37&&(x>b?O=!0:D=!0);te=n,ne=ee}return _}}}),ow=K({"../../node_modules/picoquery/lib/stringify.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.stringify=n;var t=rw();function n(e,n){if(typeof e!=`object`||!e)return``;let r=n??{};return(0,t.stringifyObject)(e,r)}}}),sw=K({"../../node_modules/picoquery/lib/main.js"(e){var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.stringify=e.parse=void 0;var r=aw();Object.defineProperty(e,`parse`,{enumerable:!0,get:function(){return r.parse}});var i=ow();Object.defineProperty(e,`stringify`,{enumerable:!0,get:function(){return i.stringify}}),n(nw(),e)}}),cw=K({"../../node_modules/entities/lib/maps/entities.json"(e,t){t.exports={Aacute:`Á`,aacute:`á`,Abreve:`Ă`,abreve:`ă`,ac:`∾`,acd:`∿`,acE:`∾̳`,Acirc:`Â`,acirc:`â`,acute:`´`,Acy:`А`,acy:`а`,AElig:`Æ`,aelig:`æ`,af:``,Afr:`𝔄`,afr:`𝔞`,Agrave:`À`,agrave:`à`,alefsym:`ℵ`,aleph:`ℵ`,Alpha:`Α`,alpha:`α`,Amacr:`Ā`,amacr:`ā`,amalg:`⨿`,amp:`&`,AMP:`&`,andand:`⩕`,And:`⩓`,and:`∧`,andd:`⩜`,andslope:`⩘`,andv:`⩚`,ang:`∠`,ange:`⦤`,angle:`∠`,angmsdaa:`⦨`,angmsdab:`⦩`,angmsdac:`⦪`,angmsdad:`⦫`,angmsdae:`⦬`,angmsdaf:`⦭`,angmsdag:`⦮`,angmsdah:`⦯`,angmsd:`∡`,angrt:`∟`,angrtvb:`⊾`,angrtvbd:`⦝`,angsph:`∢`,angst:`Å`,angzarr:`⍼`,Aogon:`Ą`,aogon:`ą`,Aopf:`𝔸`,aopf:`𝕒`,apacir:`⩯`,ap:`≈`,apE:`⩰`,ape:`≊`,apid:`≋`,apos:`'`,ApplyFunction:``,approx:`≈`,approxeq:`≊`,Aring:`Å`,aring:`å`,Ascr:`𝒜`,ascr:`𝒶`,Assign:`≔`,ast:`*`,asymp:`≈`,asympeq:`≍`,Atilde:`Ã`,atilde:`ã`,Auml:`Ä`,auml:`ä`,awconint:`∳`,awint:`⨑`,backcong:`≌`,backepsilon:`϶`,backprime:`‵`,backsim:`∽`,backsimeq:`⋍`,Backslash:`∖`,Barv:`⫧`,barvee:`⊽`,barwed:`⌅`,Barwed:`⌆`,barwedge:`⌅`,bbrk:`⎵`,bbrktbrk:`⎶`,bcong:`≌`,Bcy:`Б`,bcy:`б`,bdquo:`„`,becaus:`∵`,because:`∵`,Because:`∵`,bemptyv:`⦰`,bepsi:`϶`,bernou:`ℬ`,Bernoullis:`ℬ`,Beta:`Β`,beta:`β`,beth:`ℶ`,between:`≬`,Bfr:`𝔅`,bfr:`𝔟`,bigcap:`⋂`,bigcirc:`◯`,bigcup:`⋃`,bigodot:`⨀`,bigoplus:`⨁`,bigotimes:`⨂`,bigsqcup:`⨆`,bigstar:`★`,bigtriangledown:`▽`,bigtriangleup:`△`,biguplus:`⨄`,bigvee:`⋁`,bigwedge:`⋀`,bkarow:`⤍`,blacklozenge:`⧫`,blacksquare:`▪`,blacktriangle:`▴`,blacktriangledown:`▾`,blacktriangleleft:`◂`,blacktriangleright:`▸`,blank:`␣`,blk12:`▒`,blk14:`░`,blk34:`▓`,block:`█`,bne:`=⃥`,bnequiv:`≡⃥`,bNot:`⫭`,bnot:`⌐`,Bopf:`𝔹`,bopf:`𝕓`,bot:`⊥`,bottom:`⊥`,bowtie:`⋈`,boxbox:`⧉`,boxdl:`┐`,boxdL:`╕`,boxDl:`╖`,boxDL:`╗`,boxdr:`┌`,boxdR:`╒`,boxDr:`╓`,boxDR:`╔`,boxh:`─`,boxH:`═`,boxhd:`┬`,boxHd:`╤`,boxhD:`╥`,boxHD:`╦`,boxhu:`┴`,boxHu:`╧`,boxhU:`╨`,boxHU:`╩`,boxminus:`⊟`,boxplus:`⊞`,boxtimes:`⊠`,boxul:`┘`,boxuL:`╛`,boxUl:`╜`,boxUL:`╝`,boxur:`└`,boxuR:`╘`,boxUr:`╙`,boxUR:`╚`,boxv:`│`,boxV:`║`,boxvh:`┼`,boxvH:`╪`,boxVh:`╫`,boxVH:`╬`,boxvl:`┤`,boxvL:`╡`,boxVl:`╢`,boxVL:`╣`,boxvr:`├`,boxvR:`╞`,boxVr:`╟`,boxVR:`╠`,bprime:`‵`,breve:`˘`,Breve:`˘`,brvbar:`¦`,bscr:`𝒷`,Bscr:`ℬ`,bsemi:`⁏`,bsim:`∽`,bsime:`⋍`,bsolb:`⧅`,bsol:`\\`,bsolhsub:`⟈`,bull:`•`,bullet:`•`,bump:`≎`,bumpE:`⪮`,bumpe:`≏`,Bumpeq:`≎`,bumpeq:`≏`,Cacute:`Ć`,cacute:`ć`,capand:`⩄`,capbrcup:`⩉`,capcap:`⩋`,cap:`∩`,Cap:`⋒`,capcup:`⩇`,capdot:`⩀`,CapitalDifferentialD:`ⅅ`,caps:`∩︀`,caret:`⁁`,caron:`ˇ`,Cayleys:`ℭ`,ccaps:`⩍`,Ccaron:`Č`,ccaron:`č`,Ccedil:`Ç`,ccedil:`ç`,Ccirc:`Ĉ`,ccirc:`ĉ`,Cconint:`∰`,ccups:`⩌`,ccupssm:`⩐`,Cdot:`Ċ`,cdot:`ċ`,cedil:`¸`,Cedilla:`¸`,cemptyv:`⦲`,cent:`¢`,centerdot:`·`,CenterDot:`·`,cfr:`𝔠`,Cfr:`ℭ`,CHcy:`Ч`,chcy:`ч`,check:`✓`,checkmark:`✓`,Chi:`Χ`,chi:`χ`,circ:`ˆ`,circeq:`≗`,circlearrowleft:`↺`,circlearrowright:`↻`,circledast:`⊛`,circledcirc:`⊚`,circleddash:`⊝`,CircleDot:`⊙`,circledR:`®`,circledS:`Ⓢ`,CircleMinus:`⊖`,CirclePlus:`⊕`,CircleTimes:`⊗`,cir:`○`,cirE:`⧃`,cire:`≗`,cirfnint:`⨐`,cirmid:`⫯`,cirscir:`⧂`,ClockwiseContourIntegral:`∲`,CloseCurlyDoubleQuote:`”`,CloseCurlyQuote:`’`,clubs:`♣`,clubsuit:`♣`,colon:`:`,Colon:`∷`,Colone:`⩴`,colone:`≔`,coloneq:`≔`,comma:`,`,commat:`@`,comp:`∁`,compfn:`∘`,complement:`∁`,complexes:`ℂ`,cong:`≅`,congdot:`⩭`,Congruent:`≡`,conint:`∮`,Conint:`∯`,ContourIntegral:`∮`,copf:`𝕔`,Copf:`ℂ`,coprod:`∐`,Coproduct:`∐`,copy:`©`,COPY:`©`,copysr:`℗`,CounterClockwiseContourIntegral:`∳`,crarr:`↵`,cross:`✗`,Cross:`⨯`,Cscr:`𝒞`,cscr:`𝒸`,csub:`⫏`,csube:`⫑`,csup:`⫐`,csupe:`⫒`,ctdot:`⋯`,cudarrl:`⤸`,cudarrr:`⤵`,cuepr:`⋞`,cuesc:`⋟`,cularr:`↶`,cularrp:`⤽`,cupbrcap:`⩈`,cupcap:`⩆`,CupCap:`≍`,cup:`∪`,Cup:`⋓`,cupcup:`⩊`,cupdot:`⊍`,cupor:`⩅`,cups:`∪︀`,curarr:`↷`,curarrm:`⤼`,curlyeqprec:`⋞`,curlyeqsucc:`⋟`,curlyvee:`⋎`,curlywedge:`⋏`,curren:`¤`,curvearrowleft:`↶`,curvearrowright:`↷`,cuvee:`⋎`,cuwed:`⋏`,cwconint:`∲`,cwint:`∱`,cylcty:`⌭`,dagger:`†`,Dagger:`‡`,daleth:`ℸ`,darr:`↓`,Darr:`↡`,dArr:`⇓`,dash:`‐`,Dashv:`⫤`,dashv:`⊣`,dbkarow:`⤏`,dblac:`˝`,Dcaron:`Ď`,dcaron:`ď`,Dcy:`Д`,dcy:`д`,ddagger:`‡`,ddarr:`⇊`,DD:`ⅅ`,dd:`ⅆ`,DDotrahd:`⤑`,ddotseq:`⩷`,deg:`°`,Del:`∇`,Delta:`Δ`,delta:`δ`,demptyv:`⦱`,dfisht:`⥿`,Dfr:`𝔇`,dfr:`𝔡`,dHar:`⥥`,dharl:`⇃`,dharr:`⇂`,DiacriticalAcute:`´`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,DiacriticalGrave:"`",DiacriticalTilde:`˜`,diam:`⋄`,diamond:`⋄`,Diamond:`⋄`,diamondsuit:`♦`,diams:`♦`,die:`¨`,DifferentialD:`ⅆ`,digamma:`ϝ`,disin:`⋲`,div:`÷`,divide:`÷`,divideontimes:`⋇`,divonx:`⋇`,DJcy:`Ђ`,djcy:`ђ`,dlcorn:`⌞`,dlcrop:`⌍`,dollar:`$`,Dopf:`𝔻`,dopf:`𝕕`,Dot:`¨`,dot:`˙`,DotDot:`⃜`,doteq:`≐`,doteqdot:`≑`,DotEqual:`≐`,dotminus:`∸`,dotplus:`∔`,dotsquare:`⊡`,doublebarwedge:`⌆`,DoubleContourIntegral:`∯`,DoubleDot:`¨`,DoubleDownArrow:`⇓`,DoubleLeftArrow:`⇐`,DoubleLeftRightArrow:`⇔`,DoubleLeftTee:`⫤`,DoubleLongLeftArrow:`⟸`,DoubleLongLeftRightArrow:`⟺`,DoubleLongRightArrow:`⟹`,DoubleRightArrow:`⇒`,DoubleRightTee:`⊨`,DoubleUpArrow:`⇑`,DoubleUpDownArrow:`⇕`,DoubleVerticalBar:`∥`,DownArrowBar:`⤓`,downarrow:`↓`,DownArrow:`↓`,Downarrow:`⇓`,DownArrowUpArrow:`⇵`,DownBreve:`̑`,downdownarrows:`⇊`,downharpoonleft:`⇃`,downharpoonright:`⇂`,DownLeftRightVector:`⥐`,DownLeftTeeVector:`⥞`,DownLeftVectorBar:`⥖`,DownLeftVector:`↽`,DownRightTeeVector:`⥟`,DownRightVectorBar:`⥗`,DownRightVector:`⇁`,DownTeeArrow:`↧`,DownTee:`⊤`,drbkarow:`⤐`,drcorn:`⌟`,drcrop:`⌌`,Dscr:`𝒟`,dscr:`𝒹`,DScy:`Ѕ`,dscy:`ѕ`,dsol:`⧶`,Dstrok:`Đ`,dstrok:`đ`,dtdot:`⋱`,dtri:`▿`,dtrif:`▾`,duarr:`⇵`,duhar:`⥯`,dwangle:`⦦`,DZcy:`Џ`,dzcy:`џ`,dzigrarr:`⟿`,Eacute:`É`,eacute:`é`,easter:`⩮`,Ecaron:`Ě`,ecaron:`ě`,Ecirc:`Ê`,ecirc:`ê`,ecir:`≖`,ecolon:`≕`,Ecy:`Э`,ecy:`э`,eDDot:`⩷`,Edot:`Ė`,edot:`ė`,eDot:`≑`,ee:`ⅇ`,efDot:`≒`,Efr:`𝔈`,efr:`𝔢`,eg:`⪚`,Egrave:`È`,egrave:`è`,egs:`⪖`,egsdot:`⪘`,el:`⪙`,Element:`∈`,elinters:`⏧`,ell:`ℓ`,els:`⪕`,elsdot:`⪗`,Emacr:`Ē`,emacr:`ē`,empty:`∅`,emptyset:`∅`,EmptySmallSquare:`◻`,emptyv:`∅`,EmptyVerySmallSquare:`▫`,emsp13:` `,emsp14:` `,emsp:` `,ENG:`Ŋ`,eng:`ŋ`,ensp:` `,Eogon:`Ę`,eogon:`ę`,Eopf:`𝔼`,eopf:`𝕖`,epar:`⋕`,eparsl:`⧣`,eplus:`⩱`,epsi:`ε`,Epsilon:`Ε`,epsilon:`ε`,epsiv:`ϵ`,eqcirc:`≖`,eqcolon:`≕`,eqsim:`≂`,eqslantgtr:`⪖`,eqslantless:`⪕`,Equal:`⩵`,equals:`=`,EqualTilde:`≂`,equest:`≟`,Equilibrium:`⇌`,equiv:`≡`,equivDD:`⩸`,eqvparsl:`⧥`,erarr:`⥱`,erDot:`≓`,escr:`ℯ`,Escr:`ℰ`,esdot:`≐`,Esim:`⩳`,esim:`≂`,Eta:`Η`,eta:`η`,ETH:`Ð`,eth:`ð`,Euml:`Ë`,euml:`ë`,euro:`€`,excl:`!`,exist:`∃`,Exists:`∃`,expectation:`ℰ`,exponentiale:`ⅇ`,ExponentialE:`ⅇ`,fallingdotseq:`≒`,Fcy:`Ф`,fcy:`ф`,female:`♀`,ffilig:`ffi`,fflig:`ff`,ffllig:`ffl`,Ffr:`𝔉`,ffr:`𝔣`,filig:`fi`,FilledSmallSquare:`◼`,FilledVerySmallSquare:`▪`,fjlig:`fj`,flat:`♭`,fllig:`fl`,fltns:`▱`,fnof:`ƒ`,Fopf:`𝔽`,fopf:`𝕗`,forall:`∀`,ForAll:`∀`,fork:`⋔`,forkv:`⫙`,Fouriertrf:`ℱ`,fpartint:`⨍`,frac12:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`,frown:`⌢`,fscr:`𝒻`,Fscr:`ℱ`,gacute:`ǵ`,Gamma:`Γ`,gamma:`γ`,Gammad:`Ϝ`,gammad:`ϝ`,gap:`⪆`,Gbreve:`Ğ`,gbreve:`ğ`,Gcedil:`Ģ`,Gcirc:`Ĝ`,gcirc:`ĝ`,Gcy:`Г`,gcy:`г`,Gdot:`Ġ`,gdot:`ġ`,ge:`≥`,gE:`≧`,gEl:`⪌`,gel:`⋛`,geq:`≥`,geqq:`≧`,geqslant:`⩾`,gescc:`⪩`,ges:`⩾`,gesdot:`⪀`,gesdoto:`⪂`,gesdotol:`⪄`,gesl:`⋛︀`,gesles:`⪔`,Gfr:`𝔊`,gfr:`𝔤`,gg:`≫`,Gg:`⋙`,ggg:`⋙`,gimel:`ℷ`,GJcy:`Ѓ`,gjcy:`ѓ`,gla:`⪥`,gl:`≷`,glE:`⪒`,glj:`⪤`,gnap:`⪊`,gnapprox:`⪊`,gne:`⪈`,gnE:`≩`,gneq:`⪈`,gneqq:`≩`,gnsim:`⋧`,Gopf:`𝔾`,gopf:`𝕘`,grave:"`",GreaterEqual:`≥`,GreaterEqualLess:`⋛`,GreaterFullEqual:`≧`,GreaterGreater:`⪢`,GreaterLess:`≷`,GreaterSlantEqual:`⩾`,GreaterTilde:`≳`,Gscr:`𝒢`,gscr:`ℊ`,gsim:`≳`,gsime:`⪎`,gsiml:`⪐`,gtcc:`⪧`,gtcir:`⩺`,gt:`>`,GT:`>`,Gt:`≫`,gtdot:`⋗`,gtlPar:`⦕`,gtquest:`⩼`,gtrapprox:`⪆`,gtrarr:`⥸`,gtrdot:`⋗`,gtreqless:`⋛`,gtreqqless:`⪌`,gtrless:`≷`,gtrsim:`≳`,gvertneqq:`≩︀`,gvnE:`≩︀`,Hacek:`ˇ`,hairsp:` `,half:`½`,hamilt:`ℋ`,HARDcy:`Ъ`,hardcy:`ъ`,harrcir:`⥈`,harr:`↔`,hArr:`⇔`,harrw:`↭`,Hat:`^`,hbar:`ℏ`,Hcirc:`Ĥ`,hcirc:`ĥ`,hearts:`♥`,heartsuit:`♥`,hellip:`…`,hercon:`⊹`,hfr:`𝔥`,Hfr:`ℌ`,HilbertSpace:`ℋ`,hksearow:`⤥`,hkswarow:`⤦`,hoarr:`⇿`,homtht:`∻`,hookleftarrow:`↩`,hookrightarrow:`↪`,hopf:`𝕙`,Hopf:`ℍ`,horbar:`―`,HorizontalLine:`─`,hscr:`𝒽`,Hscr:`ℋ`,hslash:`ℏ`,Hstrok:`Ħ`,hstrok:`ħ`,HumpDownHump:`≎`,HumpEqual:`≏`,hybull:`⁃`,hyphen:`‐`,Iacute:`Í`,iacute:`í`,ic:``,Icirc:`Î`,icirc:`î`,Icy:`И`,icy:`и`,Idot:`İ`,IEcy:`Е`,iecy:`е`,iexcl:`¡`,iff:`⇔`,ifr:`𝔦`,Ifr:`ℑ`,Igrave:`Ì`,igrave:`ì`,ii:`ⅈ`,iiiint:`⨌`,iiint:`∭`,iinfin:`⧜`,iiota:`℩`,IJlig:`IJ`,ijlig:`ij`,Imacr:`Ī`,imacr:`ī`,image:`ℑ`,ImaginaryI:`ⅈ`,imagline:`ℐ`,imagpart:`ℑ`,imath:`ı`,Im:`ℑ`,imof:`⊷`,imped:`Ƶ`,Implies:`⇒`,incare:`℅`,in:`∈`,infin:`∞`,infintie:`⧝`,inodot:`ı`,intcal:`⊺`,int:`∫`,Int:`∬`,integers:`ℤ`,Integral:`∫`,intercal:`⊺`,Intersection:`⋂`,intlarhk:`⨗`,intprod:`⨼`,InvisibleComma:``,InvisibleTimes:``,IOcy:`Ё`,iocy:`ё`,Iogon:`Į`,iogon:`į`,Iopf:`𝕀`,iopf:`𝕚`,Iota:`Ι`,iota:`ι`,iprod:`⨼`,iquest:`¿`,iscr:`𝒾`,Iscr:`ℐ`,isin:`∈`,isindot:`⋵`,isinE:`⋹`,isins:`⋴`,isinsv:`⋳`,isinv:`∈`,it:``,Itilde:`Ĩ`,itilde:`ĩ`,Iukcy:`І`,iukcy:`і`,Iuml:`Ï`,iuml:`ï`,Jcirc:`Ĵ`,jcirc:`ĵ`,Jcy:`Й`,jcy:`й`,Jfr:`𝔍`,jfr:`𝔧`,jmath:`ȷ`,Jopf:`𝕁`,jopf:`𝕛`,Jscr:`𝒥`,jscr:`𝒿`,Jsercy:`Ј`,jsercy:`ј`,Jukcy:`Є`,jukcy:`є`,Kappa:`Κ`,kappa:`κ`,kappav:`ϰ`,Kcedil:`Ķ`,kcedil:`ķ`,Kcy:`К`,kcy:`к`,Kfr:`𝔎`,kfr:`𝔨`,kgreen:`ĸ`,KHcy:`Х`,khcy:`х`,KJcy:`Ќ`,kjcy:`ќ`,Kopf:`𝕂`,kopf:`𝕜`,Kscr:`𝒦`,kscr:`𝓀`,lAarr:`⇚`,Lacute:`Ĺ`,lacute:`ĺ`,laemptyv:`⦴`,lagran:`ℒ`,Lambda:`Λ`,lambda:`λ`,lang:`⟨`,Lang:`⟪`,langd:`⦑`,langle:`⟨`,lap:`⪅`,Laplacetrf:`ℒ`,laquo:`«`,larrb:`⇤`,larrbfs:`⤟`,larr:`←`,Larr:`↞`,lArr:`⇐`,larrfs:`⤝`,larrhk:`↩`,larrlp:`↫`,larrpl:`⤹`,larrsim:`⥳`,larrtl:`↢`,latail:`⤙`,lAtail:`⤛`,lat:`⪫`,late:`⪭`,lates:`⪭︀`,lbarr:`⤌`,lBarr:`⤎`,lbbrk:`❲`,lbrace:`{`,lbrack:`[`,lbrke:`⦋`,lbrksld:`⦏`,lbrkslu:`⦍`,Lcaron:`Ľ`,lcaron:`ľ`,Lcedil:`Ļ`,lcedil:`ļ`,lceil:`⌈`,lcub:`{`,Lcy:`Л`,lcy:`л`,ldca:`⤶`,ldquo:`“`,ldquor:`„`,ldrdhar:`⥧`,ldrushar:`⥋`,ldsh:`↲`,le:`≤`,lE:`≦`,LeftAngleBracket:`⟨`,LeftArrowBar:`⇤`,leftarrow:`←`,LeftArrow:`←`,Leftarrow:`⇐`,LeftArrowRightArrow:`⇆`,leftarrowtail:`↢`,LeftCeiling:`⌈`,LeftDoubleBracket:`⟦`,LeftDownTeeVector:`⥡`,LeftDownVectorBar:`⥙`,LeftDownVector:`⇃`,LeftFloor:`⌊`,leftharpoondown:`↽`,leftharpoonup:`↼`,leftleftarrows:`⇇`,leftrightarrow:`↔`,LeftRightArrow:`↔`,Leftrightarrow:`⇔`,leftrightarrows:`⇆`,leftrightharpoons:`⇋`,leftrightsquigarrow:`↭`,LeftRightVector:`⥎`,LeftTeeArrow:`↤`,LeftTee:`⊣`,LeftTeeVector:`⥚`,leftthreetimes:`⋋`,LeftTriangleBar:`⧏`,LeftTriangle:`⊲`,LeftTriangleEqual:`⊴`,LeftUpDownVector:`⥑`,LeftUpTeeVector:`⥠`,LeftUpVectorBar:`⥘`,LeftUpVector:`↿`,LeftVectorBar:`⥒`,LeftVector:`↼`,lEg:`⪋`,leg:`⋚`,leq:`≤`,leqq:`≦`,leqslant:`⩽`,lescc:`⪨`,les:`⩽`,lesdot:`⩿`,lesdoto:`⪁`,lesdotor:`⪃`,lesg:`⋚︀`,lesges:`⪓`,lessapprox:`⪅`,lessdot:`⋖`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,LessEqualGreater:`⋚`,LessFullEqual:`≦`,LessGreater:`≶`,lessgtr:`≶`,LessLess:`⪡`,lesssim:`≲`,LessSlantEqual:`⩽`,LessTilde:`≲`,lfisht:`⥼`,lfloor:`⌊`,Lfr:`𝔏`,lfr:`𝔩`,lg:`≶`,lgE:`⪑`,lHar:`⥢`,lhard:`↽`,lharu:`↼`,lharul:`⥪`,lhblk:`▄`,LJcy:`Љ`,ljcy:`љ`,llarr:`⇇`,ll:`≪`,Ll:`⋘`,llcorner:`⌞`,Lleftarrow:`⇚`,llhard:`⥫`,lltri:`◺`,Lmidot:`Ŀ`,lmidot:`ŀ`,lmoustache:`⎰`,lmoust:`⎰`,lnap:`⪉`,lnapprox:`⪉`,lne:`⪇`,lnE:`≨`,lneq:`⪇`,lneqq:`≨`,lnsim:`⋦`,loang:`⟬`,loarr:`⇽`,lobrk:`⟦`,longleftarrow:`⟵`,LongLeftArrow:`⟵`,Longleftarrow:`⟸`,longleftrightarrow:`⟷`,LongLeftRightArrow:`⟷`,Longleftrightarrow:`⟺`,longmapsto:`⟼`,longrightarrow:`⟶`,LongRightArrow:`⟶`,Longrightarrow:`⟹`,looparrowleft:`↫`,looparrowright:`↬`,lopar:`⦅`,Lopf:`𝕃`,lopf:`𝕝`,loplus:`⨭`,lotimes:`⨴`,lowast:`∗`,lowbar:`_`,LowerLeftArrow:`↙`,LowerRightArrow:`↘`,loz:`◊`,lozenge:`◊`,lozf:`⧫`,lpar:`(`,lparlt:`⦓`,lrarr:`⇆`,lrcorner:`⌟`,lrhar:`⇋`,lrhard:`⥭`,lrm:``,lrtri:`⊿`,lsaquo:`‹`,lscr:`𝓁`,Lscr:`ℒ`,lsh:`↰`,Lsh:`↰`,lsim:`≲`,lsime:`⪍`,lsimg:`⪏`,lsqb:`[`,lsquo:`‘`,lsquor:`‚`,Lstrok:`Ł`,lstrok:`ł`,ltcc:`⪦`,ltcir:`⩹`,lt:`<`,LT:`<`,Lt:`≪`,ltdot:`⋖`,lthree:`⋋`,ltimes:`⋉`,ltlarr:`⥶`,ltquest:`⩻`,ltri:`◃`,ltrie:`⊴`,ltrif:`◂`,ltrPar:`⦖`,lurdshar:`⥊`,luruhar:`⥦`,lvertneqq:`≨︀`,lvnE:`≨︀`,macr:`¯`,male:`♂`,malt:`✠`,maltese:`✠`,Map:`⤅`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,mapstoleft:`↤`,mapstoup:`↥`,marker:`▮`,mcomma:`⨩`,Mcy:`М`,mcy:`м`,mdash:`—`,mDDot:`∺`,measuredangle:`∡`,MediumSpace:` `,Mellintrf:`ℳ`,Mfr:`𝔐`,mfr:`𝔪`,mho:`℧`,micro:`µ`,midast:`*`,midcir:`⫰`,mid:`∣`,middot:`·`,minusb:`⊟`,minus:`−`,minusd:`∸`,minusdu:`⨪`,MinusPlus:`∓`,mlcp:`⫛`,mldr:`…`,mnplus:`∓`,models:`⊧`,Mopf:`𝕄`,mopf:`𝕞`,mp:`∓`,mscr:`𝓂`,Mscr:`ℳ`,mstpos:`∾`,Mu:`Μ`,mu:`μ`,multimap:`⊸`,mumap:`⊸`,nabla:`∇`,Nacute:`Ń`,nacute:`ń`,nang:`∠⃒`,nap:`≉`,napE:`⩰̸`,napid:`≋̸`,napos:`ʼn`,napprox:`≉`,natural:`♮`,naturals:`ℕ`,natur:`♮`,nbsp:`\xA0`,nbump:`≎̸`,nbumpe:`≏̸`,ncap:`⩃`,Ncaron:`Ň`,ncaron:`ň`,Ncedil:`Ņ`,ncedil:`ņ`,ncong:`≇`,ncongdot:`⩭̸`,ncup:`⩂`,Ncy:`Н`,ncy:`н`,ndash:`–`,nearhk:`⤤`,nearr:`↗`,neArr:`⇗`,nearrow:`↗`,ne:`≠`,nedot:`≐̸`,NegativeMediumSpace:``,NegativeThickSpace:``,NegativeThinSpace:``,NegativeVeryThinSpace:``,nequiv:`≢`,nesear:`⤨`,nesim:`≂̸`,NestedGreaterGreater:`≫`,NestedLessLess:`≪`,NewLine:`
|
||
`,nexist:`∄`,nexists:`∄`,Nfr:`𝔑`,nfr:`𝔫`,ngE:`≧̸`,nge:`≱`,ngeq:`≱`,ngeqq:`≧̸`,ngeqslant:`⩾̸`,nges:`⩾̸`,nGg:`⋙̸`,ngsim:`≵`,nGt:`≫⃒`,ngt:`≯`,ngtr:`≯`,nGtv:`≫̸`,nharr:`↮`,nhArr:`⇎`,nhpar:`⫲`,ni:`∋`,nis:`⋼`,nisd:`⋺`,niv:`∋`,NJcy:`Њ`,njcy:`њ`,nlarr:`↚`,nlArr:`⇍`,nldr:`‥`,nlE:`≦̸`,nle:`≰`,nleftarrow:`↚`,nLeftarrow:`⇍`,nleftrightarrow:`↮`,nLeftrightarrow:`⇎`,nleq:`≰`,nleqq:`≦̸`,nleqslant:`⩽̸`,nles:`⩽̸`,nless:`≮`,nLl:`⋘̸`,nlsim:`≴`,nLt:`≪⃒`,nlt:`≮`,nltri:`⋪`,nltrie:`⋬`,nLtv:`≪̸`,nmid:`∤`,NoBreak:``,NonBreakingSpace:`\xA0`,nopf:`𝕟`,Nopf:`ℕ`,Not:`⫬`,not:`¬`,NotCongruent:`≢`,NotCupCap:`≭`,NotDoubleVerticalBar:`∦`,NotElement:`∉`,NotEqual:`≠`,NotEqualTilde:`≂̸`,NotExists:`∄`,NotGreater:`≯`,NotGreaterEqual:`≱`,NotGreaterFullEqual:`≧̸`,NotGreaterGreater:`≫̸`,NotGreaterLess:`≹`,NotGreaterSlantEqual:`⩾̸`,NotGreaterTilde:`≵`,NotHumpDownHump:`≎̸`,NotHumpEqual:`≏̸`,notin:`∉`,notindot:`⋵̸`,notinE:`⋹̸`,notinva:`∉`,notinvb:`⋷`,notinvc:`⋶`,NotLeftTriangleBar:`⧏̸`,NotLeftTriangle:`⋪`,NotLeftTriangleEqual:`⋬`,NotLess:`≮`,NotLessEqual:`≰`,NotLessGreater:`≸`,NotLessLess:`≪̸`,NotLessSlantEqual:`⩽̸`,NotLessTilde:`≴`,NotNestedGreaterGreater:`⪢̸`,NotNestedLessLess:`⪡̸`,notni:`∌`,notniva:`∌`,notnivb:`⋾`,notnivc:`⋽`,NotPrecedes:`⊀`,NotPrecedesEqual:`⪯̸`,NotPrecedesSlantEqual:`⋠`,NotReverseElement:`∌`,NotRightTriangleBar:`⧐̸`,NotRightTriangle:`⋫`,NotRightTriangleEqual:`⋭`,NotSquareSubset:`⊏̸`,NotSquareSubsetEqual:`⋢`,NotSquareSuperset:`⊐̸`,NotSquareSupersetEqual:`⋣`,NotSubset:`⊂⃒`,NotSubsetEqual:`⊈`,NotSucceeds:`⊁`,NotSucceedsEqual:`⪰̸`,NotSucceedsSlantEqual:`⋡`,NotSucceedsTilde:`≿̸`,NotSuperset:`⊃⃒`,NotSupersetEqual:`⊉`,NotTilde:`≁`,NotTildeEqual:`≄`,NotTildeFullEqual:`≇`,NotTildeTilde:`≉`,NotVerticalBar:`∤`,nparallel:`∦`,npar:`∦`,nparsl:`⫽⃥`,npart:`∂̸`,npolint:`⨔`,npr:`⊀`,nprcue:`⋠`,nprec:`⊀`,npreceq:`⪯̸`,npre:`⪯̸`,nrarrc:`⤳̸`,nrarr:`↛`,nrArr:`⇏`,nrarrw:`↝̸`,nrightarrow:`↛`,nRightarrow:`⇏`,nrtri:`⋫`,nrtrie:`⋭`,nsc:`⊁`,nsccue:`⋡`,nsce:`⪰̸`,Nscr:`𝒩`,nscr:`𝓃`,nshortmid:`∤`,nshortparallel:`∦`,nsim:`≁`,nsime:`≄`,nsimeq:`≄`,nsmid:`∤`,nspar:`∦`,nsqsube:`⋢`,nsqsupe:`⋣`,nsub:`⊄`,nsubE:`⫅̸`,nsube:`⊈`,nsubset:`⊂⃒`,nsubseteq:`⊈`,nsubseteqq:`⫅̸`,nsucc:`⊁`,nsucceq:`⪰̸`,nsup:`⊅`,nsupE:`⫆̸`,nsupe:`⊉`,nsupset:`⊃⃒`,nsupseteq:`⊉`,nsupseteqq:`⫆̸`,ntgl:`≹`,Ntilde:`Ñ`,ntilde:`ñ`,ntlg:`≸`,ntriangleleft:`⋪`,ntrianglelefteq:`⋬`,ntriangleright:`⋫`,ntrianglerighteq:`⋭`,Nu:`Ν`,nu:`ν`,num:`#`,numero:`№`,numsp:` `,nvap:`≍⃒`,nvdash:`⊬`,nvDash:`⊭`,nVdash:`⊮`,nVDash:`⊯`,nvge:`≥⃒`,nvgt:`>⃒`,nvHarr:`⤄`,nvinfin:`⧞`,nvlArr:`⤂`,nvle:`≤⃒`,nvlt:`<⃒`,nvltrie:`⊴⃒`,nvrArr:`⤃`,nvrtrie:`⊵⃒`,nvsim:`∼⃒`,nwarhk:`⤣`,nwarr:`↖`,nwArr:`⇖`,nwarrow:`↖`,nwnear:`⤧`,Oacute:`Ó`,oacute:`ó`,oast:`⊛`,Ocirc:`Ô`,ocirc:`ô`,ocir:`⊚`,Ocy:`О`,ocy:`о`,odash:`⊝`,Odblac:`Ő`,odblac:`ő`,odiv:`⨸`,odot:`⊙`,odsold:`⦼`,OElig:`Œ`,oelig:`œ`,ofcir:`⦿`,Ofr:`𝔒`,ofr:`𝔬`,ogon:`˛`,Ograve:`Ò`,ograve:`ò`,ogt:`⧁`,ohbar:`⦵`,ohm:`Ω`,oint:`∮`,olarr:`↺`,olcir:`⦾`,olcross:`⦻`,oline:`‾`,olt:`⧀`,Omacr:`Ō`,omacr:`ō`,Omega:`Ω`,omega:`ω`,Omicron:`Ο`,omicron:`ο`,omid:`⦶`,ominus:`⊖`,Oopf:`𝕆`,oopf:`𝕠`,opar:`⦷`,OpenCurlyDoubleQuote:`“`,OpenCurlyQuote:`‘`,operp:`⦹`,oplus:`⊕`,orarr:`↻`,Or:`⩔`,or:`∨`,ord:`⩝`,order:`ℴ`,orderof:`ℴ`,ordf:`ª`,ordm:`º`,origof:`⊶`,oror:`⩖`,orslope:`⩗`,orv:`⩛`,oS:`Ⓢ`,Oscr:`𝒪`,oscr:`ℴ`,Oslash:`Ø`,oslash:`ø`,osol:`⊘`,Otilde:`Õ`,otilde:`õ`,otimesas:`⨶`,Otimes:`⨷`,otimes:`⊗`,Ouml:`Ö`,ouml:`ö`,ovbar:`⌽`,OverBar:`‾`,OverBrace:`⏞`,OverBracket:`⎴`,OverParenthesis:`⏜`,para:`¶`,parallel:`∥`,par:`∥`,parsim:`⫳`,parsl:`⫽`,part:`∂`,PartialD:`∂`,Pcy:`П`,pcy:`п`,percnt:`%`,period:`.`,permil:`‰`,perp:`⊥`,pertenk:`‱`,Pfr:`𝔓`,pfr:`𝔭`,Phi:`Φ`,phi:`φ`,phiv:`ϕ`,phmmat:`ℳ`,phone:`☎`,Pi:`Π`,pi:`π`,pitchfork:`⋔`,piv:`ϖ`,planck:`ℏ`,planckh:`ℎ`,plankv:`ℏ`,plusacir:`⨣`,plusb:`⊞`,pluscir:`⨢`,plus:`+`,plusdo:`∔`,plusdu:`⨥`,pluse:`⩲`,PlusMinus:`±`,plusmn:`±`,plussim:`⨦`,plustwo:`⨧`,pm:`±`,Poincareplane:`ℌ`,pointint:`⨕`,popf:`𝕡`,Popf:`ℙ`,pound:`£`,prap:`⪷`,Pr:`⪻`,pr:`≺`,prcue:`≼`,precapprox:`⪷`,prec:`≺`,preccurlyeq:`≼`,Precedes:`≺`,PrecedesEqual:`⪯`,PrecedesSlantEqual:`≼`,PrecedesTilde:`≾`,preceq:`⪯`,precnapprox:`⪹`,precneqq:`⪵`,precnsim:`⋨`,pre:`⪯`,prE:`⪳`,precsim:`≾`,prime:`′`,Prime:`″`,primes:`ℙ`,prnap:`⪹`,prnE:`⪵`,prnsim:`⋨`,prod:`∏`,Product:`∏`,profalar:`⌮`,profline:`⌒`,profsurf:`⌓`,prop:`∝`,Proportional:`∝`,Proportion:`∷`,propto:`∝`,prsim:`≾`,prurel:`⊰`,Pscr:`𝒫`,pscr:`𝓅`,Psi:`Ψ`,psi:`ψ`,puncsp:` `,Qfr:`𝔔`,qfr:`𝔮`,qint:`⨌`,qopf:`𝕢`,Qopf:`ℚ`,qprime:`⁗`,Qscr:`𝒬`,qscr:`𝓆`,quaternions:`ℍ`,quatint:`⨖`,quest:`?`,questeq:`≟`,quot:`"`,QUOT:`"`,rAarr:`⇛`,race:`∽̱`,Racute:`Ŕ`,racute:`ŕ`,radic:`√`,raemptyv:`⦳`,rang:`⟩`,Rang:`⟫`,rangd:`⦒`,range:`⦥`,rangle:`⟩`,raquo:`»`,rarrap:`⥵`,rarrb:`⇥`,rarrbfs:`⤠`,rarrc:`⤳`,rarr:`→`,Rarr:`↠`,rArr:`⇒`,rarrfs:`⤞`,rarrhk:`↪`,rarrlp:`↬`,rarrpl:`⥅`,rarrsim:`⥴`,Rarrtl:`⤖`,rarrtl:`↣`,rarrw:`↝`,ratail:`⤚`,rAtail:`⤜`,ratio:`∶`,rationals:`ℚ`,rbarr:`⤍`,rBarr:`⤏`,RBarr:`⤐`,rbbrk:`❳`,rbrace:`}`,rbrack:`]`,rbrke:`⦌`,rbrksld:`⦎`,rbrkslu:`⦐`,Rcaron:`Ř`,rcaron:`ř`,Rcedil:`Ŗ`,rcedil:`ŗ`,rceil:`⌉`,rcub:`}`,Rcy:`Р`,rcy:`р`,rdca:`⤷`,rdldhar:`⥩`,rdquo:`”`,rdquor:`”`,rdsh:`↳`,real:`ℜ`,realine:`ℛ`,realpart:`ℜ`,reals:`ℝ`,Re:`ℜ`,rect:`▭`,reg:`®`,REG:`®`,ReverseElement:`∋`,ReverseEquilibrium:`⇋`,ReverseUpEquilibrium:`⥯`,rfisht:`⥽`,rfloor:`⌋`,rfr:`𝔯`,Rfr:`ℜ`,rHar:`⥤`,rhard:`⇁`,rharu:`⇀`,rharul:`⥬`,Rho:`Ρ`,rho:`ρ`,rhov:`ϱ`,RightAngleBracket:`⟩`,RightArrowBar:`⇥`,rightarrow:`→`,RightArrow:`→`,Rightarrow:`⇒`,RightArrowLeftArrow:`⇄`,rightarrowtail:`↣`,RightCeiling:`⌉`,RightDoubleBracket:`⟧`,RightDownTeeVector:`⥝`,RightDownVectorBar:`⥕`,RightDownVector:`⇂`,RightFloor:`⌋`,rightharpoondown:`⇁`,rightharpoonup:`⇀`,rightleftarrows:`⇄`,rightleftharpoons:`⇌`,rightrightarrows:`⇉`,rightsquigarrow:`↝`,RightTeeArrow:`↦`,RightTee:`⊢`,RightTeeVector:`⥛`,rightthreetimes:`⋌`,RightTriangleBar:`⧐`,RightTriangle:`⊳`,RightTriangleEqual:`⊵`,RightUpDownVector:`⥏`,RightUpTeeVector:`⥜`,RightUpVectorBar:`⥔`,RightUpVector:`↾`,RightVectorBar:`⥓`,RightVector:`⇀`,ring:`˚`,risingdotseq:`≓`,rlarr:`⇄`,rlhar:`⇌`,rlm:``,rmoustache:`⎱`,rmoust:`⎱`,rnmid:`⫮`,roang:`⟭`,roarr:`⇾`,robrk:`⟧`,ropar:`⦆`,ropf:`𝕣`,Ropf:`ℝ`,roplus:`⨮`,rotimes:`⨵`,RoundImplies:`⥰`,rpar:`)`,rpargt:`⦔`,rppolint:`⨒`,rrarr:`⇉`,Rrightarrow:`⇛`,rsaquo:`›`,rscr:`𝓇`,Rscr:`ℛ`,rsh:`↱`,Rsh:`↱`,rsqb:`]`,rsquo:`’`,rsquor:`’`,rthree:`⋌`,rtimes:`⋊`,rtri:`▹`,rtrie:`⊵`,rtrif:`▸`,rtriltri:`⧎`,RuleDelayed:`⧴`,ruluhar:`⥨`,rx:`℞`,Sacute:`Ś`,sacute:`ś`,sbquo:`‚`,scap:`⪸`,Scaron:`Š`,scaron:`š`,Sc:`⪼`,sc:`≻`,sccue:`≽`,sce:`⪰`,scE:`⪴`,Scedil:`Ş`,scedil:`ş`,Scirc:`Ŝ`,scirc:`ŝ`,scnap:`⪺`,scnE:`⪶`,scnsim:`⋩`,scpolint:`⨓`,scsim:`≿`,Scy:`С`,scy:`с`,sdotb:`⊡`,sdot:`⋅`,sdote:`⩦`,searhk:`⤥`,searr:`↘`,seArr:`⇘`,searrow:`↘`,sect:`§`,semi:`;`,seswar:`⤩`,setminus:`∖`,setmn:`∖`,sext:`✶`,Sfr:`𝔖`,sfr:`𝔰`,sfrown:`⌢`,sharp:`♯`,SHCHcy:`Щ`,shchcy:`щ`,SHcy:`Ш`,shcy:`ш`,ShortDownArrow:`↓`,ShortLeftArrow:`←`,shortmid:`∣`,shortparallel:`∥`,ShortRightArrow:`→`,ShortUpArrow:`↑`,shy:``,Sigma:`Σ`,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,sim:`∼`,simdot:`⩪`,sime:`≃`,simeq:`≃`,simg:`⪞`,simgE:`⪠`,siml:`⪝`,simlE:`⪟`,simne:`≆`,simplus:`⨤`,simrarr:`⥲`,slarr:`←`,SmallCircle:`∘`,smallsetminus:`∖`,smashp:`⨳`,smeparsl:`⧤`,smid:`∣`,smile:`⌣`,smt:`⪪`,smte:`⪬`,smtes:`⪬︀`,SOFTcy:`Ь`,softcy:`ь`,solbar:`⌿`,solb:`⧄`,sol:`/`,Sopf:`𝕊`,sopf:`𝕤`,spades:`♠`,spadesuit:`♠`,spar:`∥`,sqcap:`⊓`,sqcaps:`⊓︀`,sqcup:`⊔`,sqcups:`⊔︀`,Sqrt:`√`,sqsub:`⊏`,sqsube:`⊑`,sqsubset:`⊏`,sqsubseteq:`⊑`,sqsup:`⊐`,sqsupe:`⊒`,sqsupset:`⊐`,sqsupseteq:`⊒`,square:`□`,Square:`□`,SquareIntersection:`⊓`,SquareSubset:`⊏`,SquareSubsetEqual:`⊑`,SquareSuperset:`⊐`,SquareSupersetEqual:`⊒`,SquareUnion:`⊔`,squarf:`▪`,squ:`□`,squf:`▪`,srarr:`→`,Sscr:`𝒮`,sscr:`𝓈`,ssetmn:`∖`,ssmile:`⌣`,sstarf:`⋆`,Star:`⋆`,star:`☆`,starf:`★`,straightepsilon:`ϵ`,straightphi:`ϕ`,strns:`¯`,sub:`⊂`,Sub:`⋐`,subdot:`⪽`,subE:`⫅`,sube:`⊆`,subedot:`⫃`,submult:`⫁`,subnE:`⫋`,subne:`⊊`,subplus:`⪿`,subrarr:`⥹`,subset:`⊂`,Subset:`⋐`,subseteq:`⊆`,subseteqq:`⫅`,SubsetEqual:`⊆`,subsetneq:`⊊`,subsetneqq:`⫋`,subsim:`⫇`,subsub:`⫕`,subsup:`⫓`,succapprox:`⪸`,succ:`≻`,succcurlyeq:`≽`,Succeeds:`≻`,SucceedsEqual:`⪰`,SucceedsSlantEqual:`≽`,SucceedsTilde:`≿`,succeq:`⪰`,succnapprox:`⪺`,succneqq:`⪶`,succnsim:`⋩`,succsim:`≿`,SuchThat:`∋`,sum:`∑`,Sum:`∑`,sung:`♪`,sup1:`¹`,sup2:`²`,sup3:`³`,sup:`⊃`,Sup:`⋑`,supdot:`⪾`,supdsub:`⫘`,supE:`⫆`,supe:`⊇`,supedot:`⫄`,Superset:`⊃`,SupersetEqual:`⊇`,suphsol:`⟉`,suphsub:`⫗`,suplarr:`⥻`,supmult:`⫂`,supnE:`⫌`,supne:`⊋`,supplus:`⫀`,supset:`⊃`,Supset:`⋑`,supseteq:`⊇`,supseteqq:`⫆`,supsetneq:`⊋`,supsetneqq:`⫌`,supsim:`⫈`,supsub:`⫔`,supsup:`⫖`,swarhk:`⤦`,swarr:`↙`,swArr:`⇙`,swarrow:`↙`,swnwar:`⤪`,szlig:`ß`,Tab:` `,target:`⌖`,Tau:`Τ`,tau:`τ`,tbrk:`⎴`,Tcaron:`Ť`,tcaron:`ť`,Tcedil:`Ţ`,tcedil:`ţ`,Tcy:`Т`,tcy:`т`,tdot:`⃛`,telrec:`⌕`,Tfr:`𝔗`,tfr:`𝔱`,there4:`∴`,therefore:`∴`,Therefore:`∴`,Theta:`Θ`,theta:`θ`,thetasym:`ϑ`,thetav:`ϑ`,thickapprox:`≈`,thicksim:`∼`,ThickSpace:` `,ThinSpace:` `,thinsp:` `,thkap:`≈`,thksim:`∼`,THORN:`Þ`,thorn:`þ`,tilde:`˜`,Tilde:`∼`,TildeEqual:`≃`,TildeFullEqual:`≅`,TildeTilde:`≈`,timesbar:`⨱`,timesb:`⊠`,times:`×`,timesd:`⨰`,tint:`∭`,toea:`⤨`,topbot:`⌶`,topcir:`⫱`,top:`⊤`,Topf:`𝕋`,topf:`𝕥`,topfork:`⫚`,tosa:`⤩`,tprime:`‴`,trade:`™`,TRADE:`™`,triangle:`▵`,triangledown:`▿`,triangleleft:`◃`,trianglelefteq:`⊴`,triangleq:`≜`,triangleright:`▹`,trianglerighteq:`⊵`,tridot:`◬`,trie:`≜`,triminus:`⨺`,TripleDot:`⃛`,triplus:`⨹`,trisb:`⧍`,tritime:`⨻`,trpezium:`⏢`,Tscr:`𝒯`,tscr:`𝓉`,TScy:`Ц`,tscy:`ц`,TSHcy:`Ћ`,tshcy:`ћ`,Tstrok:`Ŧ`,tstrok:`ŧ`,twixt:`≬`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,Uacute:`Ú`,uacute:`ú`,uarr:`↑`,Uarr:`↟`,uArr:`⇑`,Uarrocir:`⥉`,Ubrcy:`Ў`,ubrcy:`ў`,Ubreve:`Ŭ`,ubreve:`ŭ`,Ucirc:`Û`,ucirc:`û`,Ucy:`У`,ucy:`у`,udarr:`⇅`,Udblac:`Ű`,udblac:`ű`,udhar:`⥮`,ufisht:`⥾`,Ufr:`𝔘`,ufr:`𝔲`,Ugrave:`Ù`,ugrave:`ù`,uHar:`⥣`,uharl:`↿`,uharr:`↾`,uhblk:`▀`,ulcorn:`⌜`,ulcorner:`⌜`,ulcrop:`⌏`,ultri:`◸`,Umacr:`Ū`,umacr:`ū`,uml:`¨`,UnderBar:`_`,UnderBrace:`⏟`,UnderBracket:`⎵`,UnderParenthesis:`⏝`,Union:`⋃`,UnionPlus:`⊎`,Uogon:`Ų`,uogon:`ų`,Uopf:`𝕌`,uopf:`𝕦`,UpArrowBar:`⤒`,uparrow:`↑`,UpArrow:`↑`,Uparrow:`⇑`,UpArrowDownArrow:`⇅`,updownarrow:`↕`,UpDownArrow:`↕`,Updownarrow:`⇕`,UpEquilibrium:`⥮`,upharpoonleft:`↿`,upharpoonright:`↾`,uplus:`⊎`,UpperLeftArrow:`↖`,UpperRightArrow:`↗`,upsi:`υ`,Upsi:`ϒ`,upsih:`ϒ`,Upsilon:`Υ`,upsilon:`υ`,UpTeeArrow:`↥`,UpTee:`⊥`,upuparrows:`⇈`,urcorn:`⌝`,urcorner:`⌝`,urcrop:`⌎`,Uring:`Ů`,uring:`ů`,urtri:`◹`,Uscr:`𝒰`,uscr:`𝓊`,utdot:`⋰`,Utilde:`Ũ`,utilde:`ũ`,utri:`▵`,utrif:`▴`,uuarr:`⇈`,Uuml:`Ü`,uuml:`ü`,uwangle:`⦧`,vangrt:`⦜`,varepsilon:`ϵ`,varkappa:`ϰ`,varnothing:`∅`,varphi:`ϕ`,varpi:`ϖ`,varpropto:`∝`,varr:`↕`,vArr:`⇕`,varrho:`ϱ`,varsigma:`ς`,varsubsetneq:`⊊︀`,varsubsetneqq:`⫋︀`,varsupsetneq:`⊋︀`,varsupsetneqq:`⫌︀`,vartheta:`ϑ`,vartriangleleft:`⊲`,vartriangleright:`⊳`,vBar:`⫨`,Vbar:`⫫`,vBarv:`⫩`,Vcy:`В`,vcy:`в`,vdash:`⊢`,vDash:`⊨`,Vdash:`⊩`,VDash:`⊫`,Vdashl:`⫦`,veebar:`⊻`,vee:`∨`,Vee:`⋁`,veeeq:`≚`,vellip:`⋮`,verbar:`|`,Verbar:`‖`,vert:`|`,Vert:`‖`,VerticalBar:`∣`,VerticalLine:`|`,VerticalSeparator:`❘`,VerticalTilde:`≀`,VeryThinSpace:` `,Vfr:`𝔙`,vfr:`𝔳`,vltri:`⊲`,vnsub:`⊂⃒`,vnsup:`⊃⃒`,Vopf:`𝕍`,vopf:`𝕧`,vprop:`∝`,vrtri:`⊳`,Vscr:`𝒱`,vscr:`𝓋`,vsubnE:`⫋︀`,vsubne:`⊊︀`,vsupnE:`⫌︀`,vsupne:`⊋︀`,Vvdash:`⊪`,vzigzag:`⦚`,Wcirc:`Ŵ`,wcirc:`ŵ`,wedbar:`⩟`,wedge:`∧`,Wedge:`⋀`,wedgeq:`≙`,weierp:`℘`,Wfr:`𝔚`,wfr:`𝔴`,Wopf:`𝕎`,wopf:`𝕨`,wp:`℘`,wr:`≀`,wreath:`≀`,Wscr:`𝒲`,wscr:`𝓌`,xcap:`⋂`,xcirc:`◯`,xcup:`⋃`,xdtri:`▽`,Xfr:`𝔛`,xfr:`𝔵`,xharr:`⟷`,xhArr:`⟺`,Xi:`Ξ`,xi:`ξ`,xlarr:`⟵`,xlArr:`⟸`,xmap:`⟼`,xnis:`⋻`,xodot:`⨀`,Xopf:`𝕏`,xopf:`𝕩`,xoplus:`⨁`,xotime:`⨂`,xrarr:`⟶`,xrArr:`⟹`,Xscr:`𝒳`,xscr:`𝓍`,xsqcup:`⨆`,xuplus:`⨄`,xutri:`△`,xvee:`⋁`,xwedge:`⋀`,Yacute:`Ý`,yacute:`ý`,YAcy:`Я`,yacy:`я`,Ycirc:`Ŷ`,ycirc:`ŷ`,Ycy:`Ы`,ycy:`ы`,yen:`¥`,Yfr:`𝔜`,yfr:`𝔶`,YIcy:`Ї`,yicy:`ї`,Yopf:`𝕐`,yopf:`𝕪`,Yscr:`𝒴`,yscr:`𝓎`,YUcy:`Ю`,yucy:`ю`,yuml:`ÿ`,Yuml:`Ÿ`,Zacute:`Ź`,zacute:`ź`,Zcaron:`Ž`,zcaron:`ž`,Zcy:`З`,zcy:`з`,Zdot:`Ż`,zdot:`ż`,zeetrf:`ℨ`,ZeroWidthSpace:``,Zeta:`Ζ`,zeta:`ζ`,zfr:`𝔷`,Zfr:`ℨ`,ZHcy:`Ж`,zhcy:`ж`,zigrarr:`⇝`,zopf:`𝕫`,Zopf:`ℤ`,Zscr:`𝒵`,zscr:`𝓏`,zwj:``,zwnj:``}}}),lw=K({"../../node_modules/entities/lib/maps/legacy.json"(e,t){t.exports={Aacute:`Á`,aacute:`á`,Acirc:`Â`,acirc:`â`,acute:`´`,AElig:`Æ`,aelig:`æ`,Agrave:`À`,agrave:`à`,amp:`&`,AMP:`&`,Aring:`Å`,aring:`å`,Atilde:`Ã`,atilde:`ã`,Auml:`Ä`,auml:`ä`,brvbar:`¦`,Ccedil:`Ç`,ccedil:`ç`,cedil:`¸`,cent:`¢`,copy:`©`,COPY:`©`,curren:`¤`,deg:`°`,divide:`÷`,Eacute:`É`,eacute:`é`,Ecirc:`Ê`,ecirc:`ê`,Egrave:`È`,egrave:`è`,ETH:`Ð`,eth:`ð`,Euml:`Ë`,euml:`ë`,frac12:`½`,frac14:`¼`,frac34:`¾`,gt:`>`,GT:`>`,Iacute:`Í`,iacute:`í`,Icirc:`Î`,icirc:`î`,iexcl:`¡`,Igrave:`Ì`,igrave:`ì`,iquest:`¿`,Iuml:`Ï`,iuml:`ï`,laquo:`«`,lt:`<`,LT:`<`,macr:`¯`,micro:`µ`,middot:`·`,nbsp:`\xA0`,not:`¬`,Ntilde:`Ñ`,ntilde:`ñ`,Oacute:`Ó`,oacute:`ó`,Ocirc:`Ô`,ocirc:`ô`,Ograve:`Ò`,ograve:`ò`,ordf:`ª`,ordm:`º`,Oslash:`Ø`,oslash:`ø`,Otilde:`Õ`,otilde:`õ`,Ouml:`Ö`,ouml:`ö`,para:`¶`,plusmn:`±`,pound:`£`,quot:`"`,QUOT:`"`,raquo:`»`,reg:`®`,REG:`®`,sect:`§`,shy:``,sup1:`¹`,sup2:`²`,sup3:`³`,szlig:`ß`,THORN:`Þ`,thorn:`þ`,times:`×`,Uacute:`Ú`,uacute:`ú`,Ucirc:`Û`,ucirc:`û`,Ugrave:`Ù`,ugrave:`ù`,uml:`¨`,Uuml:`Ü`,uuml:`ü`,Yacute:`Ý`,yacute:`ý`,yen:`¥`,yuml:`ÿ`}}}),uw=K({"../../node_modules/entities/lib/maps/xml.json"(e,t){t.exports={amp:`&`,apos:`'`,gt:`>`,lt:`<`,quot:`"`}}}),dw=K({"../../node_modules/entities/lib/maps/decode.json"(e,t){t.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}}}),fw=K({"../../node_modules/entities/lib/decode_codepoint.js"(e){var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var n=t(dw()),r=String.fromCodePoint||function(e){var t=``;return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function i(e){return e>=55296&&e<=57343||e>1114111?`<60>`:(e in n.default&&(e=n.default[e]),r(e))}e.default=i}}),pw=K({"../../node_modules/entities/lib/decode.js"(e){var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var n=t(cw()),r=t(lw()),i=t(uw()),a=t(fw()),o=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=s(i.default),e.decodeHTMLStrict=s(n.default);function s(e){var t=l(e);return function(e){return String(e).replace(o,t)}}var c=function(e,t){return e<t?1:-1};e.decodeHTML=(function(){for(var e=Object.keys(r.default).sort(c),t=Object.keys(n.default).sort(c),i=0,a=0;i<t.length;i++)e[a]===t[i]?(t[i]+=`;?`,a++):t[i]+=`;`;var o=RegExp(`&(?:`+t.join(`|`)+`|#[xX][\\da-fA-F]+;?|#\\d+;?)`,`g`),s=l(n.default);function u(e){return e.substr(-1)!==`;`&&(e+=`;`),s(e)}return function(e){return String(e).replace(o,u)}})();function l(e){return function(t){if(t.charAt(1)===`#`){var n=t.charAt(2);return n===`X`||n===`x`?a.default(parseInt(t.substr(3),16)):a.default(parseInt(t.substr(2),10))}return e[t.slice(1,-1)]||t}}}}),mw=K({"../../node_modules/entities/lib/encode.js"(e){var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var n=a(t(uw()).default),r=o(n);e.encodeXML=m(n);var i=a(t(cw()).default);e.encodeHTML=u(i,o(i)),e.encodeNonAsciiHTML=m(i);function a(e){return Object.keys(e).sort().reduce(function(t,n){return t[e[n]]=`&`+n+`;`,t},{})}function o(e){for(var t=[],n=[],r=0,i=Object.keys(e);r<i.length;r++){var a=i[r];a.length===1?t.push(`\\`+a):n.push(a)}t.sort();for(var o=0;o<t.length-1;o++){for(var s=o;s<t.length-1&&t[s].charCodeAt(1)+1===t[s+1].charCodeAt(1);)s+=1;var c=1+s-o;c<3||t.splice(o,c,t[o]+`-`+t[s])}return n.unshift(`[`+t.join(``)+`]`),new RegExp(n.join(`|`),`g`)}var s=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,c=String.prototype.codePointAt==null?(function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536}):(function(e){return e.codePointAt(0)});function l(e){return`&#x`+(e.length>1?c(e):e.charCodeAt(0)).toString(16).toUpperCase()+`;`}function u(e,t){return function(n){return n.replace(t,function(t){return e[t]}).replace(s,l)}}var d=RegExp(r.source+`|`+s.source,`g`);function f(e){return e.replace(d,l)}e.escape=f;function p(e){return e.replace(r,l)}e.escapeUTF8=p;function m(e){return function(t){return t.replace(d,function(t){return e[t]||l(t)})}}}}),hw=K({"../../node_modules/entities/lib/index.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=pw(),n=mw();function r(e,n){return(!n||n<=0?t.decodeXML:t.decodeHTML)(e)}e.decode=r;function i(e,n){return(!n||n<=0?t.decodeXML:t.decodeHTMLStrict)(e)}e.decodeStrict=i;function a(e,t){return(!t||t<=0?n.encodeXML:n.encodeHTML)(e)}e.encode=a;var o=mw();Object.defineProperty(e,`encodeXML`,{enumerable:!0,get:function(){return o.encodeXML}}),Object.defineProperty(e,`encodeHTML`,{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(e,`encodeNonAsciiHTML`,{enumerable:!0,get:function(){return o.encodeNonAsciiHTML}}),Object.defineProperty(e,`escape`,{enumerable:!0,get:function(){return o.escape}}),Object.defineProperty(e,`escapeUTF8`,{enumerable:!0,get:function(){return o.escapeUTF8}}),Object.defineProperty(e,`encodeHTML4`,{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(e,`encodeHTML5`,{enumerable:!0,get:function(){return o.encodeHTML}});var s=pw();Object.defineProperty(e,`decodeXML`,{enumerable:!0,get:function(){return s.decodeXML}}),Object.defineProperty(e,`decodeHTML`,{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,`decodeHTMLStrict`,{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,`decodeHTML4`,{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,`decodeHTML5`,{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,`decodeHTML4Strict`,{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,`decodeHTML5Strict`,{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,`decodeXMLStrict`,{enumerable:!0,get:function(){return s.decodeXML}})}}),gw=K({"../../node_modules/ansi-to-html/lib/ansi_to_html.js"(e,t){function n(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function a(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=o(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,s=!1,c;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,c=e},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(s)throw c}}}}function o(e,t){if(e){if(typeof e==`string`)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}}function s(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var c=hw(),l={fg:`#FFF`,bg:`#000`,newline:!1,escapeXML:!1,stream:!1,colors:u()};function u(){var e={0:`#000`,1:`#A00`,2:`#0A0`,3:`#A50`,4:`#00A`,5:`#A0A`,6:`#0AA`,7:`#AAA`,8:`#555`,9:`#F55`,10:`#5F5`,11:`#FF5`,12:`#55F`,13:`#F5F`,14:`#5FF`,15:`#FFF`};return v(0,5).forEach(function(t){v(0,5).forEach(function(n){v(0,5).forEach(function(r){return d(t,n,r,e)})})}),v(0,23).forEach(function(t){var n=t+232,r=f(t*10+8);e[n]=`#`+r+r+r}),e}function d(e,t,n,r){var i=16+e*36+t*6+n;r[i]=p([e>0?e*40+55:0,t>0?t*40+55:0,n>0?n*40+55:0])}function f(e){for(var t=e.toString(16);t.length<2;)t=`0`+t;return t}function p(e){var t=[],n=a(e),r;try{for(n.s();!(r=n.n()).done;){var i=r.value;t.push(f(i))}}catch(e){n.e(e)}finally{n.f()}return`#`+t.join(``)}function m(e,t,n,r){var i;return t===`text`?i=x(n,r):t===`display`?i=g(e,n,r):t===`xterm256Foreground`?i=w(e,r.colors[n]):t===`xterm256Background`?i=T(e,r.colors[n]):t===`rgb`&&(i=h(e,n)),i}function h(e,t){t=t.substring(2).slice(0,-1);var n=+t.substr(0,2),r=t.substring(5).split(`;`).map(function(e){return(`0`+Number(e).toString(16)).substr(-2)}).join(``);return C(e,(n===38?`color:#`:`background-color:#`)+r)}function g(e,t,n){t=parseInt(t,10);var r={"-1":function(){return`<br/>`},0:function(){return e.length&&_(e)},1:function(){return S(e,`b`)},3:function(){return S(e,`i`)},4:function(){return S(e,`u`)},8:function(){return C(e,`display:none`)},9:function(){return S(e,`strike`)},22:function(){return C(e,`font-weight:normal;text-decoration:none;font-style:normal`)},23:function(){return E(e,`i`)},24:function(){return E(e,`u`)},39:function(){return w(e,n.fg)},49:function(){return T(e,n.bg)},53:function(){return C(e,`text-decoration:overline`)}},i;return r[t]?i=r[t]():4<t&&t<7?i=S(e,`blink`):29<t&&t<38?i=w(e,n.colors[t-30]):39<t&&t<48?i=T(e,n.colors[t-40]):89<t&&t<98?i=w(e,n.colors[8+(t-90)]):99<t&&t<108&&(i=T(e,n.colors[8+(t-100)])),i}function _(e){var t=e.slice(0);return e.length=0,t.reverse().map(function(e){return`</`+e+`>`}).join(``)}function v(e,t){for(var n=[],r=e;r<=t;r++)n.push(r);return n}function y(e){return function(t){return(e===null||t.category!==e)&&e!==`all`}}function b(e){e=parseInt(e,10);var t=null;return e===0?t=`all`:e===1?t=`bold`:2<e&&e<5?t=`underline`:4<e&&e<7?t=`blink`:e===8?t=`hide`:e===9?t=`strike`:29<e&&e<38||e===39||89<e&&e<98?t=`foreground-color`:(39<e&&e<48||e===49||99<e&&e<108)&&(t=`background-color`),t}function x(e,t){return t.escapeXML?c.encodeXML(e):e}function S(e,t,n){return n||=``,e.push(t),`<${t}${n?` style="${n}"`:``}>`}function C(e,t){return S(e,`span`,t)}function w(e,t){return S(e,`span`,`color:`+t)}function T(e,t){return S(e,`span`,`background-color:`+t)}function E(e,t){var n;if(e.slice(-1)[0]===t&&(n=e.pop()),n)return`</`+t+`>`}function D(e,t,n){var r=!1,i=3;function o(){return``}function s(e,t){return n(`xterm256Foreground`,t),``}function c(e,t){return n(`xterm256Background`,t),``}function l(e){return t.newline?n(`display`,-1):n(`text`,e),``}function u(e,t){r=!0,t.trim().length===0&&(t=`0`),t=t.trimRight(`;`).split(`;`);var i=a(t),o;try{for(i.s();!(o=i.n()).done;){var s=o.value;n(`display`,s)}}catch(e){i.e(e)}finally{i.f()}return``}function d(e){return n(`text`,e),``}function f(e){return n(`rgb`,e),``}var p=[{pattern:/^\x08+/,sub:o},{pattern:/^\x1b\[[012]?K/,sub:o},{pattern:/^\x1b\[\(B/,sub:o},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:f},{pattern:/^\x1b\[38;5;(\d+)m/,sub:s},{pattern:/^\x1b\[48;5;(\d+)m/,sub:c},{pattern:/^\n/,sub:l},{pattern:/^\r+\n/,sub:l},{pattern:/^\r/,sub:l},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:u},{pattern:/^\x1b\[\d?J/,sub:o},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:o},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:o},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:d}];function m(t,n){n>i&&r||(r=!1,e=e.replace(t.pattern,t.sub))}var h=[],g=e.length;outer:for(;g>0;){for(var _=0,v=0,y=p.length;v<y;_=++v){var b=p[_];if(m(b,_),e.length!==g){g=e.length;continue outer}}if(e.length===g)break;h.push(0),g=e.length}return h}function O(e,t,n){return t!==`text`&&(e=e.filter(y(b(n))),e.push({token:t,data:n,category:b(n)})),e}t.exports=(function(){function e(t){n(this,e),t||={},t.colors&&=Object.assign({},l.colors,t.colors),this.options=Object.assign({},l,t),this.stack=[],this.stickyStack=[]}return i(e,[{key:`toHtml`,value:function(e){var t=this;e=typeof e==`string`?[e]:e;var n=this.stack,r=this.options,i=[];return this.stickyStack.forEach(function(e){var t=m(n,e.token,e.data,r);t&&i.push(t)}),D(e.join(``),r,function(e,a){var o=m(n,e,a,r);o&&i.push(o),r.stream&&(t.stickyStack=O(t.stickyStack,e,a))}),n.length&&i.push(_(n)),i.join(``)}}]),e})()}}),_w=K({"../../node_modules/jsdoc-type-pratt-parser/dist/index.js"(e,t){(function(n,r){typeof e==`object`&&typeof t<`u`?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n=typeof globalThis<`u`?globalThis:n||self,r(n.jtpp={}))})(e,(function(e){function t(e){return e.text!==void 0&&e.text!==``?`'${e.type}' with value '${e.text}'`:`'${e.type}'`}class n extends Error{constructor(e){super(`No parslet found for token: ${t(e)}`),this.token=e,Object.setPrototypeOf(this,n.prototype)}getToken(){return this.token}}class r extends Error{constructor(e){super(`The parsing ended early. The next token was: ${t(e)}`),this.token=e,Object.setPrototypeOf(this,r.prototype)}getToken(){return this.token}}class i extends Error{constructor(e,t){let n=`Unexpected type: '${e.type}'.`;t!==void 0&&(n+=` Message: ${t}`),super(n),Object.setPrototypeOf(this,i.prototype)}}function a(e){return t=>t.startsWith(e)?{type:e,text:e}:null}function o(e){let t=0,n,r=e[0],i=!1;if(r!==`'`&&r!==`"`)return null;for(;t<e.length;){if(t++,n=e[t],!i&&n===r){t++;break}i=!i&&n===`\\`}if(n!==r)throw Error(`Unterminated String`);return e.slice(0,t)}let s=RegExp(`[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}`,`u`),c=RegExp(`[$\\-\\p{ID_Continue}\\u200C\\u200D]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}`,`u`);function l(e){let t=e[0];if(!s.test(t))return null;let n=1;do{if(t=e[n],!c.test(t))break;n++}while(n<e.length);return e.slice(0,n)}let u=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function d(e){return u.exec(e)?.[0]??null}let f=e=>{let t=l(e);return t==null?null:{type:`Identifier`,text:t}};function p(e){return t=>{if(!t.startsWith(e))return null;let n=t[e.length];return n!==void 0&&c.test(n)?null:{type:e,text:e}}}let m=[e=>e.length>0?null:{type:`EOF`,text:``},a(`=>`),a(`(`),a(`)`),a(`{`),a(`}`),a(`[`),a(`]`),a(`|`),a(`&`),a(`<`),a(`>`),a(`,`),a(`;`),a(`*`),a(`?`),a(`!`),a(`=`),a(`:`),a(`...`),a(`.`),a(`#`),a(`~`),a(`/`),a(`@`),p(`undefined`),p(`null`),p(`function`),p(`this`),p(`new`),p(`module`),p(`event`),p(`extends`),p(`external`),p(`infer`),p(`typeof`),p(`keyof`),p(`readonly`),p(`import`),p(`is`),p(`in`),p(`asserts`),e=>{let t=d(e);return t===null?null:{type:`Number`,text:t}},f,e=>{let t=o(e);return t==null?null:{type:`StringValue`,text:t}}],h=/^\s*\n\s*/;class g{static create(e){let t=this.read(e);e=t.text;let n=this.read(e);return e=n.text,new g(e,void 0,t.token,n.token)}constructor(e,t,n,r){this.text=``,this.text=e,this.previous=t,this.current=n,this.next=r}static read(e,t=!1){t||=h.test(e),e=e.trim();for(let n of m){let r=n(e);if(r!==null){let n=Object.assign(Object.assign({},r),{startOfLine:t});return e=e.slice(n.text.length),{text:e,token:n}}}throw Error(`Unexpected Token `+e)}advance(){let e=g.read(this.text);return new g(e.text,this.current,this.next,e.token)}}function _(e){if(e===void 0)throw Error(`Unexpected undefined`);if(e.type===`JsdocTypeKeyValue`||e.type===`JsdocTypeParameterList`||e.type===`JsdocTypeProperty`||e.type===`JsdocTypeReadonlyProperty`||e.type===`JsdocTypeObjectField`||e.type===`JsdocTypeJsdocObjectField`||e.type===`JsdocTypeIndexSignature`||e.type===`JsdocTypeMappedType`||e.type===`JsdocTypeTypeParameter`)throw new i(e);return e}function v(e){return e.type===`JsdocTypeKeyValue`?b(e):_(e)}function y(e){return e.type===`JsdocTypeName`?e:b(e)}function b(e){if(e.type!==`JsdocTypeKeyValue`)throw new i(e);return e}function x(e){if(e.type===`JsdocTypeVariadic`){if(e.element?.type===`JsdocTypeName`)return e;throw new i(e)}if(e.type!==`JsdocTypeNumber`&&e.type!==`JsdocTypeName`)throw new i(e);return e}function S(e){if(e.type===`JsdocTypeTuple`||e.type===`JsdocTypeGeneric`&&e.meta.brackets===`square`)return e;throw new i(e)}function C(e){return e.type===`JsdocTypeIndexSignature`||e.type===`JsdocTypeMappedType`}var w;(function(e){e[e.ALL=0]=`ALL`,e[e.PARAMETER_LIST=1]=`PARAMETER_LIST`,e[e.OBJECT=2]=`OBJECT`,e[e.KEY_VALUE=3]=`KEY_VALUE`,e[e.INDEX_BRACKETS=4]=`INDEX_BRACKETS`,e[e.UNION=5]=`UNION`,e[e.INTERSECTION=6]=`INTERSECTION`,e[e.PREFIX=7]=`PREFIX`,e[e.INFIX=8]=`INFIX`,e[e.TUPLE=9]=`TUPLE`,e[e.SYMBOL=10]=`SYMBOL`,e[e.OPTIONAL=11]=`OPTIONAL`,e[e.NULLABLE=12]=`NULLABLE`,e[e.KEY_OF_TYPE_OF=13]=`KEY_OF_TYPE_OF`,e[e.FUNCTION=14]=`FUNCTION`,e[e.ARROW=15]=`ARROW`,e[e.ARRAY_BRACKETS=16]=`ARRAY_BRACKETS`,e[e.GENERIC=17]=`GENERIC`,e[e.NAME_PATH=18]=`NAME_PATH`,e[e.PARENTHESIS=19]=`PARENTHESIS`,e[e.SPECIAL_TYPES=20]=`SPECIAL_TYPES`})(w||={});class T{constructor(e,t,n){this.grammar=e,typeof t==`string`?this._lexer=g.create(t):this._lexer=t,this.baseParser=n}get lexer(){return this._lexer}parse(){let e=this.parseType(w.ALL);if(this.lexer.current.type!==`EOF`)throw new r(this.lexer.current);return e}parseType(e){return _(this.parseIntermediateType(e))}parseIntermediateType(e){let t=this.tryParslets(null,e);if(t===null)throw new n(this.lexer.current);return this.parseInfixIntermediateType(t,e)}parseInfixIntermediateType(e,t){let n=this.tryParslets(e,t);for(;n!==null;)e=n,n=this.tryParslets(e,t);return e}tryParslets(e,t){for(let n of this.grammar){let r=n(this,t,e);if(r!==null)return r}return null}consume(e){return Array.isArray(e)||(e=[e]),e.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(e){this._lexer=e.lexer}}function E(e){return e===`}`||e===`EOF`||e===`|`||e===`,`||e===`)`||e===`>`}let D=(e,t,n)=>{let r=e.lexer.current.type,i=e.lexer.next.type;return n==null&&r===`?`&&!E(i)||n!=null&&r===`?`?(e.consume(`?`),n==null?{type:`JsdocTypeNullable`,element:e.parseType(w.NULLABLE),meta:{position:`prefix`}}:{type:`JsdocTypeNullable`,element:_(n),meta:{position:`suffix`}}):null};function O(e){let t=(t,n,r)=>{let i=t.lexer.current.type,a=t.lexer.next.type;if(r===null){if(`parsePrefix`in e&&e.accept(i,a))return e.parsePrefix(t)}else if(`parseInfix`in e&&e.precedence>n&&e.accept(i,a))return e.parseInfix(t,r);return null};return Object.defineProperty(t,`name`,{value:e.name}),t}let k=O({name:`optionalParslet`,accept:e=>e===`=`,precedence:w.OPTIONAL,parsePrefix:e=>(e.consume(`=`),{type:`JsdocTypeOptional`,element:e.parseType(w.OPTIONAL),meta:{position:`prefix`}}),parseInfix:(e,t)=>(e.consume(`=`),{type:`JsdocTypeOptional`,element:_(t),meta:{position:`suffix`}})}),A=O({name:`numberParslet`,accept:e=>e===`Number`,parsePrefix:e=>{let t=parseFloat(e.lexer.current.text);return e.consume(`Number`),{type:`JsdocTypeNumber`,value:t}}}),j=O({name:`parenthesisParslet`,accept:e=>e===`(`,parsePrefix:e=>{if(e.consume(`(`),e.consume(`)`))return{type:`JsdocTypeParameterList`,elements:[]};let t=e.parseIntermediateType(w.ALL);if(!e.consume(`)`))throw Error(`Unterminated parenthesis`);return t.type===`JsdocTypeParameterList`?t:t.type===`JsdocTypeKeyValue`?{type:`JsdocTypeParameterList`,elements:[t]}:{type:`JsdocTypeParenthesis`,element:_(t)}}}),M=O({name:`specialTypesParslet`,accept:(e,t)=>e===`?`&&E(t)||e===`null`||e===`undefined`||e===`*`,parsePrefix:e=>{if(e.consume(`null`))return{type:`JsdocTypeNull`};if(e.consume(`undefined`))return{type:`JsdocTypeUndefined`};if(e.consume(`*`))return{type:`JsdocTypeAny`};if(e.consume(`?`))return{type:`JsdocTypeUnknown`};throw Error(`Unacceptable token: `+e.lexer.current.text)}}),ee=O({name:`notNullableParslet`,accept:e=>e===`!`,precedence:w.NULLABLE,parsePrefix:e=>(e.consume(`!`),{type:`JsdocTypeNotNullable`,element:e.parseType(w.NULLABLE),meta:{position:`prefix`}}),parseInfix:(e,t)=>(e.consume(`!`),{type:`JsdocTypeNotNullable`,element:_(t),meta:{position:`suffix`}})});function N({allowTrailingComma:e}){return O({name:`parameterListParslet`,accept:e=>e===`,`,precedence:w.PARAMETER_LIST,parseInfix:(e,t)=>{let r=[v(t)];e.consume(`,`);do try{let t=e.parseIntermediateType(w.PARAMETER_LIST);r.push(v(t))}catch(e){if(e instanceof n)break;throw e}while(e.consume(`,`));if(r.length>0&&r.slice(0,-1).some(e=>e.type===`JsdocTypeVariadic`))throw Error(`Only the last parameter may be a rest parameter`);return{type:`JsdocTypeParameterList`,elements:r}}})}let te=O({name:`genericParslet`,accept:(e,t)=>e===`<`||e===`.`&&t===`<`,precedence:w.GENERIC,parseInfix:(e,t)=>{let n=e.consume(`.`);e.consume(`<`);let r=[],a=!1;if(e.consume(`infer`)){a=!0;let t=e.parseIntermediateType(w.SYMBOL);if(t.type!==`JsdocTypeName`)throw new i(t,`A typescript asserts always has to have a name on the left side.`);r.push(t)}else do r.push(e.parseType(w.PARAMETER_LIST));while(e.consume(`,`));if(!e.consume(`>`))throw Error(`Unterminated generic parameter list`);return Object.assign(Object.assign({type:`JsdocTypeGeneric`,left:_(t),elements:r},a?{infer:!0}:{}),{meta:{brackets:`angle`,dot:n}})}}),ne=O({name:`unionParslet`,accept:e=>e===`|`,precedence:w.UNION,parseInfix:(e,t)=>{e.consume(`|`);let n=[];do n.push(e.parseType(w.UNION));while(e.consume(`|`));return{type:`JsdocTypeUnion`,elements:[_(t),...n]}}}),re=[D,k,A,j,M,ee,N({allowTrailingComma:!0}),te,ne,k];function P({allowSquareBracketsOnAnyType:e,allowJsdocNamePaths:t,pathGrammar:n}){return function(r,a,o){if(o==null||a>=w.NAME_PATH)return null;let s=r.lexer.current.type,c=r.lexer.next.type;if(!(s===`.`&&c!==`<`||s===`[`&&(e||o.type===`JsdocTypeName`)||t&&(s===`~`||s===`#`)))return null;let l,u=!1;r.consume(`.`)?l=`property`:r.consume(`[`)?(l=`property-brackets`,u=!0):r.consume(`~`)?l=`inner`:(r.consume(`#`),l=`instance`);let d=n===null?r:new T(n,r.lexer,r),f=d.parseIntermediateType(w.NAME_PATH);r.acceptLexerState(d);let p;switch(f.type){case`JsdocTypeName`:p={type:`JsdocTypeProperty`,value:f.value,meta:{quote:void 0}};break;case`JsdocTypeNumber`:p={type:`JsdocTypeProperty`,value:f.value.toString(10),meta:{quote:void 0}};break;case`JsdocTypeStringValue`:p={type:`JsdocTypeProperty`,value:f.value,meta:{quote:f.meta.quote}};break;case`JsdocTypeSpecialNamePath`:if(f.specialType===`event`)p=f;else throw new i(f,`Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'`);break;default:throw new i(f,`Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'`)}if(u&&!r.consume(`]`)){let e=r.lexer.current;throw Error(`Unterminated square brackets. Next token is '${e.type}' with text '${e.text}'`)}return{type:`JsdocTypeNamePath`,left:_(o),right:p,pathType:l}}}function ie({allowedAdditionalTokens:e}){return O({name:`nameParslet`,accept:t=>t===`Identifier`||t===`this`||t===`new`||e.includes(t),parsePrefix:e=>{let{type:t,text:n}=e.lexer.current;return e.consume(t),{type:`JsdocTypeName`,value:n}}})}let ae=O({name:`stringValueParslet`,accept:e=>e===`StringValue`,parsePrefix:e=>{let t=e.lexer.current.text;return e.consume(`StringValue`),{type:`JsdocTypeStringValue`,value:t.slice(1,-1),meta:{quote:t[0]===`'`?`single`:`double`}}}});function oe({pathGrammar:e,allowedTypes:t}){return O({name:`specialNamePathParslet`,accept:e=>t.includes(e),parsePrefix:t=>{let n=t.lexer.current.type;if(t.consume(n),!t.consume(`:`))return{type:`JsdocTypeName`,value:n};let r,i=t.lexer.current;if(t.consume(`StringValue`))r={type:`JsdocTypeSpecialNamePath`,value:i.text.slice(1,-1),specialType:n,meta:{quote:i.text[0]===`'`?`single`:`double`}};else{let e=``,a=[`Identifier`,`@`,`/`];for(;a.some(e=>t.consume(e));)e+=i.text,i=t.lexer.current;r={type:`JsdocTypeSpecialNamePath`,value:e,specialType:n,meta:{quote:void 0}}}let a=new T(e,t.lexer,t),o=a.parseInfixIntermediateType(r,w.ALL);return t.acceptLexerState(a),_(o)}})}let F=[ie({allowedAdditionalTokens:[`external`,`module`]}),ae,A,P({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],se=[...F,oe({allowedTypes:[`event`],pathGrammar:F})];function ce(e){let t;if(e.type===`JsdocTypeParameterList`)t=e.elements;else if(e.type===`JsdocTypeParenthesis`)t=[e.element];else throw new i(e);return t.map(e=>v(e))}function le(e){let t=ce(e);if(t.some(e=>e.type===`JsdocTypeKeyValue`))throw Error(`No parameter should be named`);return t}function ue({allowNamedParameters:e,allowNoReturnType:t,allowWithoutParenthesis:n,allowNewAsFunctionKeyword:r}){return O({name:`functionParslet`,accept:(e,t)=>e===`function`||r&&e===`new`&&t===`(`,parsePrefix:r=>{let i=r.consume(`new`);r.consume(`function`);let a=r.lexer.current.type===`(`;if(!a){if(!n)throw Error(`function is missing parameter list`);return{type:`JsdocTypeName`,value:`function`}}let o={type:`JsdocTypeFunction`,parameters:[],arrow:!1,constructor:i,parenthesis:a},s=r.parseIntermediateType(w.FUNCTION);if(e===void 0)o.parameters=le(s);else{if(i&&s.type===`JsdocTypeFunction`&&s.arrow)return o=s,o.constructor=!0,o;o.parameters=ce(s);for(let t of o.parameters)if(t.type===`JsdocTypeKeyValue`&&!e.includes(t.key))throw Error(`only allowed named parameters are ${e.join(`, `)} but got ${t.type}`)}if(r.consume(`:`))o.returnType=r.parseType(w.PREFIX);else if(!t)throw Error(`function is missing return type`);return o}})}function de({allowPostfix:e,allowEnclosingBrackets:t}){return O({name:`variadicParslet`,accept:e=>e===`...`,precedence:w.PREFIX,parsePrefix:e=>{e.consume(`...`);let r=t&&e.consume(`[`);try{let t=e.parseType(w.PREFIX);if(r&&!e.consume(`]`))throw Error(`Unterminated variadic type. Missing ']'`);return{type:`JsdocTypeVariadic`,element:_(t),meta:{position:`prefix`,squareBrackets:r}}}catch(e){if(e instanceof n){if(r)throw Error(`Empty square brackets for variadic are not allowed.`);return{type:`JsdocTypeVariadic`,meta:{position:void 0,squareBrackets:!1}}}else throw e}},parseInfix:e?(e,t)=>(e.consume(`...`),{type:`JsdocTypeVariadic`,element:_(t),meta:{position:`suffix`,squareBrackets:!1}}):void 0})}let fe=O({name:`symbolParslet`,accept:e=>e===`(`,precedence:w.SYMBOL,parseInfix:(e,t)=>{if(t.type!==`JsdocTypeName`)throw Error(`Symbol expects a name on the left side. (Reacting on '(')`);e.consume(`(`);let n={type:`JsdocTypeSymbol`,value:t.value};if(!e.consume(`)`)&&(n.element=x(e.parseIntermediateType(w.SYMBOL)),!e.consume(`)`)))throw Error(`Symbol does not end after value`);return n}}),pe=O({name:`arrayBracketsParslet`,precedence:w.ARRAY_BRACKETS,accept:(e,t)=>e===`[`&&t===`]`,parseInfix:(e,t)=>(e.consume(`[`),e.consume(`]`),{type:`JsdocTypeGeneric`,left:{type:`JsdocTypeName`,value:`Array`},elements:[_(t)],meta:{brackets:`square`,dot:!1}})});function me({objectFieldGrammar:e,allowKeyTypes:t}){return O({name:`objectParslet`,accept:e=>e===`{`,parsePrefix:n=>{n.consume(`{`);let r={type:`JsdocTypeObject`,meta:{separator:`comma`},elements:[]};if(!n.consume(`}`)){let a,o=new T(e,n.lexer,n);for(;;){o.acceptLexerState(n);let e=o.parseIntermediateType(w.OBJECT);n.acceptLexerState(o),e===void 0&&t&&(e=n.parseIntermediateType(w.OBJECT));let s=!1;if(e.type===`JsdocTypeNullable`&&(s=!0,e=e.element),e.type===`JsdocTypeNumber`||e.type===`JsdocTypeName`||e.type===`JsdocTypeStringValue`){let t;e.type===`JsdocTypeStringValue`&&(t=e.meta.quote),r.elements.push({type:`JsdocTypeObjectField`,key:e.value.toString(),right:void 0,optional:s,readonly:!1,meta:{quote:t}})}else if(e.type===`JsdocTypeObjectField`||e.type===`JsdocTypeJsdocObjectField`)r.elements.push(e);else throw new i(e);if(n.lexer.current.startOfLine)a=`linebreak`,n.consume(`,`)||n.consume(`;`);else if(n.consume(`,`))a=`comma`;else if(n.consume(`;`))a=`semicolon`;else break;if(n.lexer.current.type===`}`)break}if(r.meta.separator=a??`comma`,a===`linebreak`&&(r.meta.propertyIndent=` `),!n.consume(`}`))throw Error(`Unterminated record type. Missing '}'`)}return r}})}function he({allowSquaredProperties:e,allowKeyTypes:t,allowReadonly:n,allowOptional:r}){return O({name:`objectFieldParslet`,precedence:w.KEY_VALUE,accept:e=>e===`:`,parseInfix:(a,o)=>{let s=!1,c=!1;r&&o.type===`JsdocTypeNullable`&&(s=!0,o=o.element),n&&o.type===`JsdocTypeReadonlyProperty`&&(c=!0,o=o.element);let l=a.baseParser??a;if(l.acceptLexerState(a),o.type===`JsdocTypeNumber`||o.type===`JsdocTypeName`||o.type===`JsdocTypeStringValue`||C(o)){if(C(o)&&!e)throw new i(o);l.consume(`:`);let t;o.type===`JsdocTypeStringValue`&&(t=o.meta.quote);let n=l.parseType(w.KEY_VALUE);return a.acceptLexerState(l),{type:`JsdocTypeObjectField`,key:C(o)?o:o.value.toString(),right:n,optional:s,readonly:c,meta:{quote:t}}}else{if(!t)throw new i(o);l.consume(`:`);let e=l.parseType(w.KEY_VALUE);return a.acceptLexerState(l),{type:`JsdocTypeJsdocObjectField`,left:_(o),right:e}}}})}function ge({allowOptional:e,allowVariadic:t}){return O({name:`keyValueParslet`,precedence:w.KEY_VALUE,accept:e=>e===`:`,parseInfix:(n,r)=>{let a=!1,o=!1;if(e&&r.type===`JsdocTypeNullable`&&(a=!0,r=r.element),t&&r.type===`JsdocTypeVariadic`&&r.element!==void 0&&(o=!0,r=r.element),r.type!==`JsdocTypeName`)throw new i(r);n.consume(`:`);let s=n.parseType(w.KEY_VALUE);return{type:`JsdocTypeKeyValue`,key:r.value,right:s,optional:a,variadic:o}}})}let _e=[...re,ue({allowWithoutParenthesis:!0,allowNamedParameters:[`this`,`new`],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),ae,oe({allowedTypes:[`module`,`external`,`event`],pathGrammar:se}),de({allowEnclosingBrackets:!0,allowPostfix:!0}),ie({allowedAdditionalTokens:[`keyof`]}),fe,pe,P({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:se})],ve=[..._e,me({objectFieldGrammar:[ie({allowedAdditionalTokens:[`typeof`,`module`,`in`]}),he({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),..._e],allowKeyTypes:!0}),ge({allowOptional:!0,allowVariadic:!0})],ye=O({name:`typeOfParslet`,accept:e=>e===`typeof`,parsePrefix:e=>(e.consume(`typeof`),{type:`JsdocTypeTypeof`,element:e.parseType(w.KEY_OF_TYPE_OF)})}),be=[ie({allowedAdditionalTokens:[`typeof`,`module`,`keyof`,`event`,`external`,`in`]}),D,k,ae,A,he({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],xe=[...re,me({allowKeyTypes:!1,objectFieldGrammar:be}),ie({allowedAdditionalTokens:[`event`,`external`,`in`]}),ye,ue({allowWithoutParenthesis:!1,allowNamedParameters:[`this`,`new`],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),de({allowEnclosingBrackets:!1,allowPostfix:!1}),ie({allowedAdditionalTokens:[`keyof`]}),oe({allowedTypes:[`module`],pathGrammar:se}),P({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:se}),ge({allowOptional:!1,allowVariadic:!1}),fe],Se=O({name:`assertsParslet`,accept:e=>e===`asserts`,parsePrefix:e=>{e.consume(`asserts`);let t=e.parseIntermediateType(w.SYMBOL);if(t.type!==`JsdocTypeName`)throw new i(t,`A typescript asserts always has to have a name on the left side.`);return e.consume(`is`)?{type:`JsdocTypeAsserts`,left:t,right:_(e.parseIntermediateType(w.INFIX))}:{type:`JsdocTypeAssertsPlain`,element:t}}});function I({allowQuestionMark:e}){return O({name:`tupleParslet`,accept:e=>e===`[`,parsePrefix:e=>{e.consume(`[`);let t={type:`JsdocTypeTuple`,elements:[]};if(e.consume(`]`))return t;let n=e.parseIntermediateType(w.ALL);if(n.type===`JsdocTypeParameterList`?n.elements[0].type===`JsdocTypeKeyValue`?t.elements=n.elements.map(b):t.elements=n.elements.map(_):n.type===`JsdocTypeKeyValue`?t.elements=[b(n)]:t.elements=[_(n)],!e.consume(`]`))throw Error(`Unterminated '['`);if(t.elements.some(e=>e.type===`JsdocTypeUnknown`))throw Error(`Question mark in tuple not allowed`);return t}})}let Ce=O({name:`keyOfParslet`,accept:e=>e===`keyof`,parsePrefix:e=>(e.consume(`keyof`),{type:`JsdocTypeKeyof`,element:_(e.parseType(w.KEY_OF_TYPE_OF))})}),we=O({name:`importParslet`,accept:e=>e===`import`,parsePrefix:e=>{if(e.consume(`import`),!e.consume(`(`))throw Error(`Missing parenthesis after import keyword`);let t=e.parseType(w.PREFIX);if(t.type!==`JsdocTypeStringValue`)throw Error(`Only string values are allowed as paths for imports`);if(!e.consume(`)`))throw Error(`Missing closing parenthesis after import keyword`);return{type:`JsdocTypeImport`,element:t}}}),Te=O({name:`readonlyPropertyParslet`,accept:e=>e===`readonly`,parsePrefix:e=>(e.consume(`readonly`),{type:`JsdocTypeReadonlyProperty`,element:e.parseIntermediateType(w.KEY_VALUE)})}),L=O({name:`arrowFunctionParslet`,precedence:w.ARROW,accept:e=>e===`=>`,parseInfix:(e,t)=>(e.consume(`=>`),{type:`JsdocTypeFunction`,parameters:ce(t).map(y),arrow:!0,constructor:!1,parenthesis:!0,returnType:e.parseType(w.OBJECT)})}),Ee=O({name:`genericArrowFunctionParslet`,accept:e=>e===`<`,parsePrefix:e=>{let t=[];e.consume(`<`);do{let n,r=e.parseIntermediateType(w.SYMBOL);if(r.type===`JsdocTypeOptional`&&(r=r.element,n=e.parseType(w.SYMBOL)),r.type!==`JsdocTypeName`)throw new i(r);let a;e.consume(`extends`)&&(a=e.parseType(w.SYMBOL),a.type===`JsdocTypeOptional`&&(a=a.element,n=e.parseType(w.SYMBOL)));let o={type:`JsdocTypeTypeParameter`,name:r};if(a!==void 0&&(o.constraint=a),n!==void 0&&(o.defaultValue=n),t.push(o),e.consume(`>`))break}while(e.consume(`,`));let n=e.parseIntermediateType(w.SYMBOL);return n.typeParameters=t,n}}),De=O({name:`intersectionParslet`,accept:e=>e===`&`,precedence:w.INTERSECTION,parseInfix:(e,t)=>{e.consume(`&`);let n=[];do n.push(e.parseType(w.INTERSECTION));while(e.consume(`&`));return{type:`JsdocTypeIntersection`,elements:[_(t),...n]}}}),Oe=O({name:`predicateParslet`,precedence:w.INFIX,accept:e=>e===`is`,parseInfix:(e,t)=>{if(t.type!==`JsdocTypeName`)throw new i(t,`A typescript predicate always has to have a name on the left side.`);return e.consume(`is`),{type:`JsdocTypePredicate`,left:t,right:_(e.parseIntermediateType(w.INFIX))}}}),R=O({name:`objectSquareBracketPropertyParslet`,accept:e=>e===`[`,parsePrefix:e=>{if(e.baseParser===void 0)throw Error(`Only allowed inside object grammar`);e.consume(`[`);let t=e.lexer.current.text;e.consume(`Identifier`);let n;if(e.consume(`:`)){let r=e.baseParser;r.acceptLexerState(e),n={type:`JsdocTypeIndexSignature`,key:t,right:r.parseType(w.INDEX_BRACKETS)},e.acceptLexerState(r)}else if(e.consume(`in`)){let r=e.baseParser;r.acceptLexerState(e),n={type:`JsdocTypeMappedType`,key:t,right:r.parseType(w.ARRAY_BRACKETS)},e.acceptLexerState(r)}else throw Error(`Missing ':' or 'in' inside square bracketed property.`);if(!e.consume(`]`))throw Error(`Unterminated square brackets`);return n}}),ke=O({name:`readonlyArrayParslet`,accept:e=>e===`readonly`,parsePrefix:e=>(e.consume(`readonly`),{type:`JsdocTypeReadonlyArray`,element:S(e.parseIntermediateType(w.ALL))})}),Ae=O({name:`conditionalParslet`,precedence:w.INFIX,accept:e=>e===`extends`,parseInfix:(e,t)=>{e.consume(`extends`);let n=e.parseType(w.KEY_OF_TYPE_OF).element,r=e.parseType(w.INFIX);return e.consume(`:`),{type:`JsdocTypeConditional`,checksType:_(t),extendsType:n,trueType:r,falseType:e.parseType(w.INFIX)}}}),je=[Te,ie({allowedAdditionalTokens:[`typeof`,`module`,`keyof`,`event`,`external`,`in`]}),D,k,ae,A,he({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),R],Me=[...re,me({allowKeyTypes:!1,objectFieldGrammar:je}),ke,ye,Ce,we,ae,ue({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:[`this`,`new`,`args`],allowNewAsFunctionKeyword:!0}),I({allowQuestionMark:!1}),de({allowEnclosingBrackets:!1,allowPostfix:!1}),Se,Ae,ie({allowedAdditionalTokens:[`event`,`external`,`in`]}),oe({allowedTypes:[`module`],pathGrammar:se}),pe,L,Ee,P({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:se}),De,Oe,ge({allowVariadic:!0,allowOptional:!0})];function Ne(e,t){switch(t){case`closure`:return new T(xe,e).parse();case`jsdoc`:return new T(ve,e).parse();case`typescript`:return new T(Me,e).parse()}}function Pe(e,t=[`typescript`,`closure`,`jsdoc`]){let n;for(let r of t)try{return Ne(e,r)}catch(e){n=e}throw n}function Fe(e,t){let n=e[t.type];if(n===void 0)throw Error(`In this set of transform rules exists no rule for type ${t.type}.`);return n(t,t=>Fe(e,t))}function z(e){throw Error(`This transform is not available. Are you trying the correct parsing mode?`)}function Ie(e){let t={params:[]};for(let n of e.parameters)n.type===`JsdocTypeKeyValue`?n.key===`this`?t.this=n.right:n.key===`new`?t.new=n.right:t.params.push(n):t.params.push(n);return t}function Le(e,t,n){return e===`prefix`?n+t:t+n}function Re(e,t){switch(t){case`double`:return`"${e}"`;case`single`:return`'${e}'`;case void 0:return e}}function ze(){return{JsdocTypeParenthesis:(e,t)=>`(${e.element===void 0?``:t(e.element)})`,JsdocTypeKeyof:(e,t)=>`keyof ${t(e.element)}`,JsdocTypeFunction:(e,t)=>{if(e.arrow){if(e.returnType===void 0)throw Error(`Arrow function needs a return type.`);let n=`${e.typeParameters===void 0?``:`<${e.typeParameters.map(t).join(`, `)??``}>`}(${e.parameters.map(t).join(`, `)}) => ${t(e.returnType)}`;return e.constructor&&(n=`new `+n),n}else{let n=e.constructor?`new`:`function`;return e.parenthesis&&(n+=`(${e.parameters.map(t).join(`, `)})`,e.returnType!==void 0&&(n+=`: ${t(e.returnType)}`)),n}},JsdocTypeName:e=>e.value,JsdocTypeTuple:(e,t)=>`[${e.elements.map(t).join(`, `)}]`,JsdocTypeVariadic:(e,t)=>e.meta.position===void 0?`...`:Le(e.meta.position,t(e.element),`...`),JsdocTypeNamePath:(e,t)=>{let n=t(e.left),r=t(e.right);switch(e.pathType){case`inner`:return`${n}~${r}`;case`instance`:return`${n}#${r}`;case`property`:return`${n}.${r}`;case`property-brackets`:return`${n}[${r}]`}},JsdocTypeStringValue:e=>Re(e.value,e.meta.quote),JsdocTypeAny:()=>`*`,JsdocTypeGeneric:(e,t)=>{if(e.meta.brackets===`square`){let n=e.elements[0],r=t(n);return n.type===`JsdocTypeUnion`||n.type===`JsdocTypeIntersection`?`(${r})[]`:`${r}[]`}else return`${t(e.left)}${e.meta.dot?`.`:``}<${e.infer===!0?`infer `:``}${e.elements.map(t).join(`, `)}>`},JsdocTypeImport:(e,t)=>`import(${t(e.element)})`,JsdocTypeObjectField:(e,t)=>{let n=``;return e.readonly&&(n+=`readonly `),typeof e.key==`string`?n+=Re(e.key,e.meta.quote):n+=t(e.key),e.optional&&(n+=`?`),e.right===void 0?n:n+`: ${t(e.right)}`},JsdocTypeJsdocObjectField:(e,t)=>`${t(e.left)}: ${t(e.right)}`,JsdocTypeKeyValue:(e,t)=>{let n=e.key;return e.optional&&(n+=`?`),e.variadic&&(n=`...`+n),e.right===void 0?n:n+`: ${t(e.right)}`},JsdocTypeSpecialNamePath:e=>`${e.specialType}:${Re(e.value,e.meta.quote)}`,JsdocTypeNotNullable:(e,t)=>Le(e.meta.position,t(e.element),`!`),JsdocTypeNull:()=>`null`,JsdocTypeNullable:(e,t)=>Le(e.meta.position,t(e.element),`?`),JsdocTypeNumber:e=>e.value.toString(),JsdocTypeObject:(e,t)=>`{${(e.meta.separator===`linebreak`&&e.elements.length>1?`
|
||
`+(e.meta.propertyIndent??``):``)+e.elements.map(t).join(e.meta.separator===`comma`?`, `:e.meta.separator===`linebreak`?`
|
||
`+(e.meta.propertyIndent??``):`; `)+(e.meta.separator===`linebreak`&&e.elements.length>1?`
|
||
`:``)}}`,JsdocTypeOptional:(e,t)=>Le(e.meta.position,t(e.element),`=`),JsdocTypeSymbol:(e,t)=>`${e.value}(${e.element===void 0?``:t(e.element)})`,JsdocTypeTypeof:(e,t)=>`typeof ${t(e.element)}`,JsdocTypeUndefined:()=>`undefined`,JsdocTypeUnion:(e,t)=>e.elements.map(t).join(` | `),JsdocTypeUnknown:()=>`?`,JsdocTypeIntersection:(e,t)=>e.elements.map(t).join(` & `),JsdocTypeProperty:e=>Re(e.value,e.meta.quote),JsdocTypePredicate:(e,t)=>`${t(e.left)} is ${t(e.right)}`,JsdocTypeIndexSignature:(e,t)=>`[${e.key}: ${t(e.right)}]`,JsdocTypeMappedType:(e,t)=>`[${e.key} in ${t(e.right)}]`,JsdocTypeAsserts:(e,t)=>`asserts ${t(e.left)} is ${t(e.right)}`,JsdocTypeReadonlyArray:(e,t)=>`readonly ${t(e.element)}`,JsdocTypeAssertsPlain:(e,t)=>`asserts ${t(e.element)}`,JsdocTypeConditional:(e,t)=>`${t(e.checksType)} extends ${t(e.extendsType)} ? ${t(e.trueType)} : ${t(e.falseType)}`,JsdocTypeTypeParameter:(e,t)=>`${t(e.name)}${e.constraint===void 0?``:` extends ${t(e.constraint)}`}${e.defaultValue===void 0?``:` = ${t(e.defaultValue)}`}`}}let Be=ze();function Ve(e){return Fe(Be,e)}let He=`null.true.false.break.case.catch.class.const.continue.debugger.default.delete.do.else.export.extends.finally.for.function.if.import.in.instanceof.new.return.super.switch.this.throw.try.typeof.var.void.while.with.yield`.split(`.`);function Ue(e){let t={type:`NameExpression`,name:e};return He.includes(e)&&(t.reservedWord=!0),t}let B={JsdocTypeOptional:(e,t)=>{let n=t(e.element);return n.optional=!0,n},JsdocTypeNullable:(e,t)=>{let n=t(e.element);return n.nullable=!0,n},JsdocTypeNotNullable:(e,t)=>{let n=t(e.element);return n.nullable=!1,n},JsdocTypeVariadic:(e,t)=>{if(e.element===void 0)throw Error(`dots without value are not allowed in catharsis mode`);let n=t(e.element);return n.repeatable=!0,n},JsdocTypeAny:()=>({type:`AllLiteral`}),JsdocTypeNull:()=>({type:`NullLiteral`}),JsdocTypeStringValue:e=>Ue(Re(e.value,e.meta.quote)),JsdocTypeUndefined:()=>({type:`UndefinedLiteral`}),JsdocTypeUnknown:()=>({type:`UnknownLiteral`}),JsdocTypeFunction:(e,t)=>{let n=Ie(e),r={type:`FunctionType`,params:n.params.map(t)};return n.this!==void 0&&(r.this=t(n.this)),n.new!==void 0&&(r.new=t(n.new)),e.returnType!==void 0&&(r.result=t(e.returnType)),r},JsdocTypeGeneric:(e,t)=>({type:`TypeApplication`,applications:e.elements.map(e=>t(e)),expression:t(e.left)}),JsdocTypeSpecialNamePath:e=>Ue(e.specialType+`:`+Re(e.value,e.meta.quote)),JsdocTypeName:e=>e.value===`function`?{type:`FunctionType`,params:[]}:Ue(e.value),JsdocTypeNumber:e=>Ue(e.value.toString()),JsdocTypeObject:(e,t)=>{let n={type:`RecordType`,fields:[]};for(let r of e.elements)r.type!==`JsdocTypeObjectField`&&r.type!==`JsdocTypeJsdocObjectField`?n.fields.push({type:`FieldType`,key:t(r),value:void 0}):n.fields.push(t(r));return n},JsdocTypeObjectField:(e,t)=>{if(typeof e.key!=`string`)throw Error(`Index signatures and mapped types are not supported`);return{type:`FieldType`,key:Ue(Re(e.key,e.meta.quote)),value:e.right===void 0?void 0:t(e.right)}},JsdocTypeJsdocObjectField:(e,t)=>({type:`FieldType`,key:t(e.left),value:t(e.right)}),JsdocTypeUnion:(e,t)=>({type:`TypeUnion`,elements:e.elements.map(e=>t(e))}),JsdocTypeKeyValue:(e,t)=>({type:`FieldType`,key:Ue(e.key),value:e.right===void 0?void 0:t(e.right)}),JsdocTypeNamePath:(e,t)=>{let n=t(e.left),r;r=e.right.type===`JsdocTypeSpecialNamePath`?t(e.right).name:Re(e.right.value,e.right.meta.quote);let i=e.pathType===`inner`?`~`:e.pathType===`instance`?`#`:`.`;return Ue(`${n.name}${i}${r}`)},JsdocTypeSymbol:e=>{let t=``,n=e.element,r=!1;return n?.type===`JsdocTypeVariadic`&&(n.meta.position===`prefix`?t=`...`:r=!0,n=n.element),n?.type===`JsdocTypeName`?t+=n.value:n?.type===`JsdocTypeNumber`&&(t+=n.value.toString()),r&&(t+=`...`),Ue(`${e.value}(${t})`)},JsdocTypeParenthesis:(e,t)=>t(_(e.element)),JsdocTypeMappedType:z,JsdocTypeIndexSignature:z,JsdocTypeImport:z,JsdocTypeKeyof:z,JsdocTypeTuple:z,JsdocTypeTypeof:z,JsdocTypeIntersection:z,JsdocTypeProperty:z,JsdocTypePredicate:z,JsdocTypeAsserts:z,JsdocTypeReadonlyArray:z,JsdocTypeAssertsPlain:z,JsdocTypeConditional:z,JsdocTypeTypeParameter:z};function We(e){return Fe(B,e)}function Ge(e){switch(e){case void 0:return`none`;case`single`:return`single`;case`double`:return`double`}}function Ke(e){switch(e){case`inner`:return`INNER_MEMBER`;case`instance`:return`INSTANCE_MEMBER`;case`property`:return`MEMBER`;case`property-brackets`:return`MEMBER`}}function qe(e,t){return t.length===2?{type:e,left:t[0],right:t[1]}:{type:e,left:t[0],right:qe(e,t.slice(1))}}let V={JsdocTypeOptional:(e,t)=>({type:`OPTIONAL`,value:t(e.element),meta:{syntax:e.meta.position===`prefix`?`PREFIX_EQUAL_SIGN`:`SUFFIX_EQUALS_SIGN`}}),JsdocTypeNullable:(e,t)=>({type:`NULLABLE`,value:t(e.element),meta:{syntax:e.meta.position===`prefix`?`PREFIX_QUESTION_MARK`:`SUFFIX_QUESTION_MARK`}}),JsdocTypeNotNullable:(e,t)=>({type:`NOT_NULLABLE`,value:t(e.element),meta:{syntax:e.meta.position===`prefix`?`PREFIX_BANG`:`SUFFIX_BANG`}}),JsdocTypeVariadic:(e,t)=>{let n={type:`VARIADIC`,meta:{syntax:e.meta.position===`prefix`?`PREFIX_DOTS`:e.meta.position===`suffix`?`SUFFIX_DOTS`:`ONLY_DOTS`}};return e.element!==void 0&&(n.value=t(e.element)),n},JsdocTypeName:e=>({type:`NAME`,name:e.value}),JsdocTypeTypeof:(e,t)=>({type:`TYPE_QUERY`,name:t(e.element)}),JsdocTypeTuple:(e,t)=>({type:`TUPLE`,entries:e.elements.map(t)}),JsdocTypeKeyof:(e,t)=>({type:`KEY_QUERY`,value:t(e.element)}),JsdocTypeImport:e=>({type:`IMPORT`,path:{type:`STRING_VALUE`,quoteStyle:Ge(e.element.meta.quote),string:e.element.value}}),JsdocTypeUndefined:()=>({type:`NAME`,name:`undefined`}),JsdocTypeAny:()=>({type:`ANY`}),JsdocTypeFunction:(e,t)=>{let n=Ie(e),r={type:e.arrow?`ARROW`:`FUNCTION`,params:n.params.map(e=>{if(e.type===`JsdocTypeKeyValue`){if(e.right===void 0)throw Error(`Function parameter without ':' is not expected to be 'KEY_VALUE'`);return{type:`NAMED_PARAMETER`,name:e.key,typeName:t(e.right)}}else return t(e)}),new:null,returns:null};return n.this===void 0?e.arrow||(r.this=null):r.this=t(n.this),n.new!==void 0&&(r.new=t(n.new)),e.returnType!==void 0&&(r.returns=t(e.returnType)),r},JsdocTypeGeneric:(e,t)=>{let n={type:`GENERIC`,subject:t(e.left),objects:e.elements.map(t),meta:{syntax:e.meta.brackets===`square`?`SQUARE_BRACKET`:e.meta.dot?`ANGLE_BRACKET_WITH_DOT`:`ANGLE_BRACKET`}};return e.meta.brackets===`square`&&e.elements[0].type===`JsdocTypeFunction`&&!e.elements[0].parenthesis&&(n.objects[0]={type:`NAME`,name:`function`}),n},JsdocTypeObjectField:(e,t)=>{if(typeof e.key!=`string`)throw Error(`Index signatures and mapped types are not supported`);if(e.right===void 0)return{type:`RECORD_ENTRY`,key:e.key,quoteStyle:Ge(e.meta.quote),value:null,readonly:!1};let n=t(e.right);return e.optional&&(n={type:`OPTIONAL`,value:n,meta:{syntax:`SUFFIX_KEY_QUESTION_MARK`}}),{type:`RECORD_ENTRY`,key:e.key.toString(),quoteStyle:Ge(e.meta.quote),value:n,readonly:!1}},JsdocTypeJsdocObjectField:()=>{throw Error(`Keys may not be typed in jsdoctypeparser.`)},JsdocTypeKeyValue:(e,t)=>{if(e.right===void 0)return{type:`RECORD_ENTRY`,key:e.key,quoteStyle:`none`,value:null,readonly:!1};let n=t(e.right);return e.optional&&(n={type:`OPTIONAL`,value:n,meta:{syntax:`SUFFIX_KEY_QUESTION_MARK`}}),{type:`RECORD_ENTRY`,key:e.key,quoteStyle:`none`,value:n,readonly:!1}},JsdocTypeObject:(e,t)=>{let n=[];for(let r of e.elements)(r.type===`JsdocTypeObjectField`||r.type===`JsdocTypeJsdocObjectField`)&&n.push(t(r));return{type:`RECORD`,entries:n}},JsdocTypeSpecialNamePath:e=>{if(e.specialType!==`module`)throw Error(`jsdoctypeparser does not support type ${e.specialType} at this point.`);return{type:`MODULE`,value:{type:`FILE_PATH`,quoteStyle:Ge(e.meta.quote),path:e.value}}},JsdocTypeNamePath:(e,t)=>{let n=!1,r,i;e.right.type===`JsdocTypeSpecialNamePath`&&e.right.specialType===`event`?(n=!0,r=e.right.value,i=Ge(e.right.meta.quote)):(r=e.right.value,i=Ge(e.right.meta.quote));let a={type:Ke(e.pathType),owner:t(e.left),name:r,quoteStyle:i,hasEventPrefix:n};if(a.owner.type===`MODULE`){let e=a.owner;return a.owner=a.owner.value,e.value=a,e}else return a},JsdocTypeUnion:(e,t)=>qe(`UNION`,e.elements.map(t)),JsdocTypeParenthesis:(e,t)=>({type:`PARENTHESIS`,value:t(_(e.element))}),JsdocTypeNull:()=>({type:`NAME`,name:`null`}),JsdocTypeUnknown:()=>({type:`UNKNOWN`}),JsdocTypeStringValue:e=>({type:`STRING_VALUE`,quoteStyle:Ge(e.meta.quote),string:e.value}),JsdocTypeIntersection:(e,t)=>qe(`INTERSECTION`,e.elements.map(t)),JsdocTypeNumber:e=>({type:`NUMBER_VALUE`,number:e.value.toString()}),JsdocTypeSymbol:z,JsdocTypeProperty:z,JsdocTypePredicate:z,JsdocTypeMappedType:z,JsdocTypeIndexSignature:z,JsdocTypeAsserts:z,JsdocTypeReadonlyArray:z,JsdocTypeAssertsPlain:z,JsdocTypeConditional:z,JsdocTypeTypeParameter:z};function Je(e){return Fe(V,e)}function Ye(){return{JsdocTypeIntersection:(e,t)=>({type:`JsdocTypeIntersection`,elements:e.elements.map(t)}),JsdocTypeGeneric:(e,t)=>({type:`JsdocTypeGeneric`,left:t(e.left),elements:e.elements.map(t),meta:{dot:e.meta.dot,brackets:e.meta.brackets}}),JsdocTypeNullable:e=>e,JsdocTypeUnion:(e,t)=>({type:`JsdocTypeUnion`,elements:e.elements.map(t)}),JsdocTypeUnknown:e=>e,JsdocTypeUndefined:e=>e,JsdocTypeTypeof:(e,t)=>({type:`JsdocTypeTypeof`,element:t(e.element)}),JsdocTypeSymbol:(e,t)=>{let n={type:`JsdocTypeSymbol`,value:e.value};return e.element!==void 0&&(n.element=t(e.element)),n},JsdocTypeOptional:(e,t)=>({type:`JsdocTypeOptional`,element:t(e.element),meta:{position:e.meta.position}}),JsdocTypeObject:(e,t)=>({type:`JsdocTypeObject`,meta:{separator:`comma`},elements:e.elements.map(t)}),JsdocTypeNumber:e=>e,JsdocTypeNull:e=>e,JsdocTypeNotNullable:(e,t)=>({type:`JsdocTypeNotNullable`,element:t(e.element),meta:{position:e.meta.position}}),JsdocTypeSpecialNamePath:e=>e,JsdocTypeObjectField:(e,t)=>({type:`JsdocTypeObjectField`,key:e.key,right:e.right===void 0?void 0:t(e.right),optional:e.optional,readonly:e.readonly,meta:e.meta}),JsdocTypeJsdocObjectField:(e,t)=>({type:`JsdocTypeJsdocObjectField`,left:t(e.left),right:t(e.right)}),JsdocTypeKeyValue:(e,t)=>({type:`JsdocTypeKeyValue`,key:e.key,right:e.right===void 0?void 0:t(e.right),optional:e.optional,variadic:e.variadic}),JsdocTypeImport:(e,t)=>({type:`JsdocTypeImport`,element:t(e.element)}),JsdocTypeAny:e=>e,JsdocTypeStringValue:e=>e,JsdocTypeNamePath:e=>e,JsdocTypeVariadic:(e,t)=>{let n={type:`JsdocTypeVariadic`,meta:{position:e.meta.position,squareBrackets:e.meta.squareBrackets}};return e.element!==void 0&&(n.element=t(e.element)),n},JsdocTypeTuple:(e,t)=>({type:`JsdocTypeTuple`,elements:e.elements.map(t)}),JsdocTypeName:e=>e,JsdocTypeFunction:(e,t)=>{let n={type:`JsdocTypeFunction`,arrow:e.arrow,parameters:e.parameters.map(t),constructor:e.constructor,parenthesis:e.parenthesis};return e.returnType!==void 0&&(n.returnType=t(e.returnType)),n},JsdocTypeKeyof:(e,t)=>({type:`JsdocTypeKeyof`,element:t(e.element)}),JsdocTypeParenthesis:(e,t)=>({type:`JsdocTypeParenthesis`,element:t(e.element)}),JsdocTypeProperty:e=>e,JsdocTypePredicate:(e,t)=>({type:`JsdocTypePredicate`,left:t(e.left),right:t(e.right)}),JsdocTypeIndexSignature:(e,t)=>({type:`JsdocTypeIndexSignature`,key:e.key,right:t(e.right)}),JsdocTypeMappedType:(e,t)=>({type:`JsdocTypeMappedType`,key:e.key,right:t(e.right)}),JsdocTypeAsserts:(e,t)=>({type:`JsdocTypeAsserts`,left:t(e.left),right:t(e.right)}),JsdocTypeReadonlyArray:(e,t)=>({type:`JsdocTypeReadonlyArray`,element:t(e.element)}),JsdocTypeAssertsPlain:(e,t)=>({type:`JsdocTypeAssertsPlain`,element:t(e.element)}),JsdocTypeConditional:(e,t)=>({type:`JsdocTypeConditional`,checksType:t(e.checksType),extendsType:t(e.extendsType),trueType:t(e.trueType),falseType:t(e.falseType)}),JsdocTypeTypeParameter:(e,t)=>({type:`JsdocTypeTypeParameter`,name:t(e.name),constraint:e.constraint===void 0?void 0:t(e.constraint),defaultValue:e.defaultValue===void 0?void 0:t(e.defaultValue)})}}let Xe={JsdocTypeAny:[],JsdocTypeFunction:[`parameters`,`returnType`],JsdocTypeGeneric:[`left`,`elements`],JsdocTypeImport:[],JsdocTypeIndexSignature:[`right`],JsdocTypeIntersection:[`elements`],JsdocTypeKeyof:[`element`],JsdocTypeKeyValue:[`right`],JsdocTypeMappedType:[`right`],JsdocTypeName:[],JsdocTypeNamePath:[`left`,`right`],JsdocTypeNotNullable:[`element`],JsdocTypeNull:[],JsdocTypeNullable:[`element`],JsdocTypeNumber:[],JsdocTypeObject:[`elements`],JsdocTypeObjectField:[`right`],JsdocTypeJsdocObjectField:[`left`,`right`],JsdocTypeOptional:[`element`],JsdocTypeParenthesis:[`element`],JsdocTypeSpecialNamePath:[],JsdocTypeStringValue:[],JsdocTypeSymbol:[`element`],JsdocTypeTuple:[`elements`],JsdocTypeTypeof:[`element`],JsdocTypeUndefined:[],JsdocTypeUnion:[`elements`],JsdocTypeUnknown:[],JsdocTypeVariadic:[`element`],JsdocTypeProperty:[],JsdocTypePredicate:[`left`,`right`],JsdocTypeAsserts:[`left`,`right`],JsdocTypeReadonlyArray:[`element`],JsdocTypeAssertsPlain:[`element`],JsdocTypeConditional:[`checksType`,`extendsType`,`trueType`,`falseType`],JsdocTypeTypeParameter:[`name`,`constraint`,`defaultValue`]};function Ze(e,t,n,r,i){r?.(e,t,n);let a=Xe[e.type];for(let t of a){let n=e[t];if(n!==void 0)if(Array.isArray(n))for(let a of n)Ze(a,e,t,r,i);else Ze(n,e,t,r,i)}i?.(e,t,n)}function Qe(e,t,n){Ze(e,void 0,void 0,t,n)}e.catharsisTransform=We,e.identityTransformRules=Ye,e.jtpTransform=Je,e.parse=Ne,e.stringify=Ve,e.stringifyRules=ze,e.transform=Fe,e.traverse=Qe,e.tryParse=Pe,e.visitorKeys=Xe}))}}),vw=K({"../../node_modules/browser-dtector/browser-dtector.umd.min.js"(e,t){(function(n,r){typeof e==`object`&&typeof t<`u`?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).BrowserDetector=r()})(e,(function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,(i=r.key,a=void 0,typeof(a=(function(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)})(i,`string`))==`symbol`?a:String(a)),r)}var i,a}var t={chrome:`Google Chrome`,brave:`Brave`,crios:`Google Chrome`,edge:`Microsoft Edge`,edg:`Microsoft Edge`,edgios:`Microsoft Edge`,fennec:`Mozilla Firefox`,jsdom:`JsDOM`,mozilla:`Mozilla Firefox`,fxios:`Mozilla Firefox`,msie:`Microsoft Internet Explorer`,opera:`Opera`,opios:`Opera`,opr:`Opera`,opt:`Opera`,rv:`Microsoft Internet Explorer`,safari:`Safari`,samsungbrowser:`Samsung Browser`,electron:`Electron`},n={android:`Android`,androidTablet:`Android Tablet`,cros:`Chrome OS`,fennec:`Android Tablet`,ipad:`IPad`,iphone:`IPhone`,jsdom:`JsDOM`,linux:`Linux`,mac:`Macintosh`,tablet:`Android Tablet`,win:`Windows`,"windows phone":`Windows Phone`,xbox:`Microsoft Xbox`},r=function(e){var t=RegExp(`^-?\\d+(?:.\\d{0,${arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1}})?`),n=Number(e).toString().match(t);return n?n[0]:null},i=function(){return typeof window<`u`?window.navigator:null};return(function(){function a(e){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,a),this.userAgent=e||i()?.userAgent||null}var o,s,c;return o=a,s=[{key:`parseUserAgent`,value:function(e){var a,o={},s=e||this.userAgent||``,c=s.toLowerCase().replace(/\s\s+/g,` `),l=/(edge)\/([\w.]+)/.exec(c)||/(edg)[/]([\w.]+)/.exec(c)||/(opr)[/]([\w.]+)/.exec(c)||/(opt)[/]([\w.]+)/.exec(c)||/(fxios)[/]([\w.]+)/.exec(c)||/(edgios)[/]([\w.]+)/.exec(c)||/(jsdom)[/]([\w.]+)/.exec(c)||/(samsungbrowser)[/]([\w.]+)/.exec(c)||/(electron)[/]([\w.]+)/.exec(c)||/(chrome)[/]([\w.]+)/.exec(c)||/(crios)[/]([\w.]+)/.exec(c)||/(opios)[/]([\w.]+)/.exec(c)||/(version)(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(c)||/(webkit)[/]([\w.]+).*(version)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(c)||/(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(c)||/(webkit)[/]([\w.]+)/.exec(c)||/(opera)(?:.*version|)[/]([\w.]+)/.exec(c)||/(msie) ([\w.]+)/.exec(c)||/(fennec)[/]([\w.]+)/.exec(c)||c.indexOf(`trident`)>=0&&/(rv)(?::| )([\w.]+)/.exec(c)||c.indexOf(`compatible`)<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(c)||[],u=/(ipad)/.exec(c)||/(ipod)/.exec(c)||/(iphone)/.exec(c)||/(jsdom)/.exec(c)||/(windows phone)/.exec(c)||/(xbox)/.exec(c)||/(win)/.exec(c)||/(tablet)/.exec(c)||/(android)/.test(c)&&/(mobile)/.test(c)===!1&&[`androidTablet`]||/(android)/.exec(c)||/(mac)/.exec(c)||/(linux)/.exec(c)||/(cros)/.exec(c)||[],d=l[5]||l[3]||l[1]||null,f=u[0]||null,p=l[4]||l[2]||null,m=i();d===`chrome`&&typeof(m==null||(a=m.brave)==null?void 0:a.isBrave)==`function`&&(d=`brave`),d&&(o[d]=!0),f&&(o[f]=!0);var h=!!(o.tablet||o.android||o.androidTablet),g=!!(o.ipad||o.tablet||o.androidTablet),_=!!(o.android||o.androidTablet||o.tablet||o.ipad||o.ipod||o.iphone||o[`windows phone`]),v=!!(o.cros||o.mac||o.linux||o.win),y=!!(o.brave||o.chrome||o.crios||o.opr||o.safari||o.edg||o.electron),b=!!(o.msie||o.rv);return{name:t[d]??null,platform:n[f]??null,userAgent:s,version:p,shortVersion:p?r(parseFloat(p),2):null,isAndroid:h,isTablet:g,isMobile:_,isDesktop:v,isWebkit:y,isIE:b}}},{key:`getBrowserInfo`,value:function(){var e=this.parseUserAgent();return{name:e.name,platform:e.platform,userAgent:e.userAgent,version:e.version,shortVersion:e.shortVersion}}}],c=[{key:`VERSION`,get:function(){return`3.4.0`}}],s&&e(o.prototype,s),c&&e(o,c),Object.defineProperty(o,`prototype`,{writable:!1}),a})()}))}}),yw={},Xv(yw,{ARGTYPES_INFO_REQUEST:()=>wT,ARGTYPES_INFO_RESPONSE:()=>TT,CHANNEL_CREATED:()=>Cw,CHANNEL_WS_DISCONNECT:()=>Sw,CONFIG_ERROR:()=>ww,CREATE_NEW_STORYFILE_REQUEST:()=>Tw,CREATE_NEW_STORYFILE_RESPONSE:()=>Ew,CURRENT_STORY_WAS_SET:()=>Dw,DOCS_PREPARED:()=>Ow,DOCS_RENDERED:()=>kw,FILE_COMPONENT_SEARCH_REQUEST:()=>Aw,FILE_COMPONENT_SEARCH_RESPONSE:()=>jw,FORCE_REMOUNT:()=>Nw,FORCE_RE_RENDER:()=>Mw,GHOST_STORIES_REQUEST:()=>ET,GHOST_STORIES_RESPONSE:()=>DT,GLOBALS_UPDATED:()=>Pw,MANAGER_INERT_ATTRIBUTE_CHANGED:()=>AT,NAVIGATE_URL:()=>Fw,OPEN_IN_EDITOR_REQUEST:()=>OT,OPEN_IN_EDITOR_RESPONSE:()=>kT,PLAY_FUNCTION_THREW_EXCEPTION:()=>Iw,PRELOAD_ENTRIES:()=>Rw,PREVIEW_BUILDER_PROGRESS:()=>Bw,PREVIEW_INITIALIZED:()=>zw,PREVIEW_KEYDOWN:()=>Vw,REGISTER_SUBSCRIPTION:()=>Hw,REQUEST_WHATS_NEW_DATA:()=>_T,RESET_STORY_ARGS:()=>Uw,RESULT_WHATS_NEW_DATA:()=>vT,SAVE_STORY_REQUEST:()=>ST,SAVE_STORY_RESPONSE:()=>CT,SELECT_STORY:()=>Ww,SET_CONFIG:()=>Gw,SET_CURRENT_STORY:()=>Kw,SET_FILTER:()=>qw,SET_GLOBALS:()=>Jw,SET_INDEX:()=>Yw,SET_STORIES:()=>Xw,SET_WHATS_NEW_CACHE:()=>yT,SHARED_STATE_CHANGED:()=>Zw,SHARED_STATE_SET:()=>Qw,SHARE_ISOLATE_MODE:()=>MT,SHARE_POPOVER_OPENED:()=>NT,SHARE_STORY_LINK:()=>jT,STORIES_COLLAPSE_ALL:()=>$w,STORIES_EXPAND_ALL:()=>eT,STORY_ARGS_UPDATED:()=>tT,STORY_CHANGED:()=>nT,STORY_ERRORED:()=>rT,STORY_FINISHED:()=>lT,STORY_HOT_UPDATED:()=>pT,STORY_INDEX_INVALIDATED:()=>iT,STORY_MISSING:()=>aT,STORY_PREPARED:()=>oT,STORY_RENDERED:()=>cT,STORY_RENDER_PHASE_CHANGED:()=>sT,STORY_SPECIFIED:()=>uT,STORY_THREW_EXCEPTION:()=>dT,STORY_UNCHANGED:()=>fT,TELEMETRY_ERROR:()=>xT,TOGGLE_WHATS_NEW_NOTIFICATIONS:()=>bT,UNHANDLED_ERRORS_WHILE_PLAYING:()=>Lw,UPDATE_GLOBALS:()=>mT,UPDATE_QUERY_PARAMS:()=>hT,UPDATE_STORY_ARGS:()=>gT,default:()=>xw}),bw=(e=>(e.CHANNEL_WS_DISCONNECT=`channelWSDisconnect`,e.CHANNEL_CREATED=`channelCreated`,e.CONFIG_ERROR=`configError`,e.STORY_INDEX_INVALIDATED=`storyIndexInvalidated`,e.STORY_SPECIFIED=`storySpecified`,e.SET_CONFIG=`setConfig`,e.SET_STORIES=`setStories`,e.SET_INDEX=`setIndex`,e.SET_CURRENT_STORY=`setCurrentStory`,e.CURRENT_STORY_WAS_SET=`currentStoryWasSet`,e.FORCE_RE_RENDER=`forceReRender`,e.FORCE_REMOUNT=`forceRemount`,e.PRELOAD_ENTRIES=`preloadStories`,e.STORY_PREPARED=`storyPrepared`,e.DOCS_PREPARED=`docsPrepared`,e.STORY_CHANGED=`storyChanged`,e.STORY_UNCHANGED=`storyUnchanged`,e.STORY_RENDERED=`storyRendered`,e.STORY_FINISHED=`storyFinished`,e.STORY_MISSING=`storyMissing`,e.STORY_ERRORED=`storyErrored`,e.STORY_THREW_EXCEPTION=`storyThrewException`,e.STORY_RENDER_PHASE_CHANGED=`storyRenderPhaseChanged`,e.STORY_HOT_UPDATED=`storyHotUpdated`,e.PLAY_FUNCTION_THREW_EXCEPTION=`playFunctionThrewException`,e.UNHANDLED_ERRORS_WHILE_PLAYING=`unhandledErrorsWhilePlaying`,e.UPDATE_STORY_ARGS=`updateStoryArgs`,e.STORY_ARGS_UPDATED=`storyArgsUpdated`,e.RESET_STORY_ARGS=`resetStoryArgs`,e.SET_FILTER=`setFilter`,e.SET_GLOBALS=`setGlobals`,e.UPDATE_GLOBALS=`updateGlobals`,e.GLOBALS_UPDATED=`globalsUpdated`,e.REGISTER_SUBSCRIPTION=`registerSubscription`,e.PREVIEW_INITIALIZED=`previewInitialized`,e.PREVIEW_KEYDOWN=`previewKeydown`,e.PREVIEW_BUILDER_PROGRESS=`preview_builder_progress`,e.SELECT_STORY=`selectStory`,e.STORIES_COLLAPSE_ALL=`storiesCollapseAll`,e.STORIES_EXPAND_ALL=`storiesExpandAll`,e.DOCS_RENDERED=`docsRendered`,e.SHARED_STATE_CHANGED=`sharedStateChanged`,e.SHARED_STATE_SET=`sharedStateSet`,e.NAVIGATE_URL=`navigateUrl`,e.UPDATE_QUERY_PARAMS=`updateQueryParams`,e.REQUEST_WHATS_NEW_DATA=`requestWhatsNewData`,e.RESULT_WHATS_NEW_DATA=`resultWhatsNewData`,e.SET_WHATS_NEW_CACHE=`setWhatsNewCache`,e.TOGGLE_WHATS_NEW_NOTIFICATIONS=`toggleWhatsNewNotifications`,e.TELEMETRY_ERROR=`telemetryError`,e.FILE_COMPONENT_SEARCH_REQUEST=`fileComponentSearchRequest`,e.FILE_COMPONENT_SEARCH_RESPONSE=`fileComponentSearchResponse`,e.SAVE_STORY_REQUEST=`saveStoryRequest`,e.SAVE_STORY_RESPONSE=`saveStoryResponse`,e.ARGTYPES_INFO_REQUEST=`argtypesInfoRequest`,e.ARGTYPES_INFO_RESPONSE=`argtypesInfoResponse`,e.CREATE_NEW_STORYFILE_REQUEST=`createNewStoryfileRequest`,e.CREATE_NEW_STORYFILE_RESPONSE=`createNewStoryfileResponse`,e.GHOST_STORIES_REQUEST=`ghostStoriesRequest`,e.GHOST_STORIES_RESPONSE=`ghostStoriesResponse`,e.OPEN_IN_EDITOR_REQUEST=`openInEditorRequest`,e.OPEN_IN_EDITOR_RESPONSE=`openInEditorResponse`,e.MANAGER_INERT_ATTRIBUTE_CHANGED=`managerInertAttributeChanged`,e.SHARE_STORY_LINK=`shareStoryLink`,e.SHARE_ISOLATE_MODE=`shareIsolateMode`,e.SHARE_POPOVER_OPENED=`sharePopoverOpened`,e))(bw||{}),xw=bw,{CHANNEL_WS_DISCONNECT:Sw,CHANNEL_CREATED:Cw,CONFIG_ERROR:ww,CREATE_NEW_STORYFILE_REQUEST:Tw,CREATE_NEW_STORYFILE_RESPONSE:Ew,CURRENT_STORY_WAS_SET:Dw,DOCS_PREPARED:Ow,DOCS_RENDERED:kw,FILE_COMPONENT_SEARCH_REQUEST:Aw,FILE_COMPONENT_SEARCH_RESPONSE:jw,FORCE_RE_RENDER:Mw,FORCE_REMOUNT:Nw,GLOBALS_UPDATED:Pw,NAVIGATE_URL:Fw,PLAY_FUNCTION_THREW_EXCEPTION:Iw,UNHANDLED_ERRORS_WHILE_PLAYING:Lw,PRELOAD_ENTRIES:Rw,PREVIEW_INITIALIZED:zw,PREVIEW_BUILDER_PROGRESS:Bw,PREVIEW_KEYDOWN:Vw,REGISTER_SUBSCRIPTION:Hw,RESET_STORY_ARGS:Uw,SELECT_STORY:Ww,SET_CONFIG:Gw,SET_CURRENT_STORY:Kw,SET_FILTER:qw,SET_GLOBALS:Jw,SET_INDEX:Yw,SET_STORIES:Xw,SHARED_STATE_CHANGED:Zw,SHARED_STATE_SET:Qw,STORIES_COLLAPSE_ALL:$w,STORIES_EXPAND_ALL:eT,STORY_ARGS_UPDATED:tT,STORY_CHANGED:nT,STORY_ERRORED:rT,STORY_INDEX_INVALIDATED:iT,STORY_MISSING:aT,STORY_PREPARED:oT,STORY_RENDER_PHASE_CHANGED:sT,STORY_RENDERED:cT,STORY_FINISHED:lT,STORY_SPECIFIED:uT,STORY_THREW_EXCEPTION:dT,STORY_UNCHANGED:fT,STORY_HOT_UPDATED:pT,UPDATE_GLOBALS:mT,UPDATE_QUERY_PARAMS:hT,UPDATE_STORY_ARGS:gT,REQUEST_WHATS_NEW_DATA:_T,RESULT_WHATS_NEW_DATA:vT,SET_WHATS_NEW_CACHE:yT,TOGGLE_WHATS_NEW_NOTIFICATIONS:bT,TELEMETRY_ERROR:xT,SAVE_STORY_REQUEST:ST,SAVE_STORY_RESPONSE:CT,ARGTYPES_INFO_REQUEST:wT,ARGTYPES_INFO_RESPONSE:TT,GHOST_STORIES_REQUEST:ET,GHOST_STORIES_RESPONSE:DT,OPEN_IN_EDITOR_REQUEST:OT,OPEN_IN_EDITOR_RESPONSE:kT,MANAGER_INERT_ATTRIBUTE_CHANGED:AT,SHARE_STORY_LINK:jT,SHARE_ISOLATE_MODE:MT,SHARE_POPOVER_OPENED:NT}=bw,PT={},Xv(PT,{global:()=>q}),q=(()=>{let e;return e=typeof window<`u`?window:typeof globalThis<`u`?globalThis:typeof global<`u`?global:typeof self<`u`?self:{},e})(),FT={"@storybook/global":`__STORYBOOK_MODULE_GLOBAL__`,"storybook/test":`__STORYBOOK_MODULE_TEST__`,"storybook/actions":`__STORYBOOK_MODULE_ACTIONS__`,"storybook/preview-api":`__STORYBOOK_MODULE_PREVIEW_API__`,"storybook/internal/channels":`__STORYBOOK_MODULE_CHANNELS__`,"storybook/internal/client-logger":`__STORYBOOK_MODULE_CLIENT_LOGGER__`,"storybook/internal/core-events":`__STORYBOOK_MODULE_CORE_EVENTS__`,"storybook/internal/preview-errors":`__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__`,"storybook/internal/types":`__STORYBOOK_MODULE_TYPES__`,"storybook/internal/preview-api":`__STORYBOOK_MODULE_PREVIEW_API__`},IT=Object.keys(FT),LT={},Xv(LT,{Channel:()=>GT,HEARTBEAT_INTERVAL:()=>ek,HEARTBEAT_MAX_LATENCY:()=>tk,PostMessageTransport:()=>QO,WebsocketTransport:()=>nk,createBrowserChannel:()=>Ae,default:()=>ak}),RT=new Map,zT=`UNIVERSAL_STORE:`,BT={PENDING:`PENDING`,RESOLVED:`RESOLVED`,REJECTED:`REJECTED`},VT=class e{constructor(t,n){if(this.debugging=!1,this.listeners=new Map([[`*`,new Set]]),this.getState=()=>(this.debug(`getState`,{state:this.state}),this.state),this.subscribe=(e,t)=>{let n=typeof e==`function`,r=n?`*`:e,i=n?e:t;if(this.debug(`subscribe`,{eventType:r,listener:i}),!i)throw TypeError(`Missing first subscribe argument, or second if first is the event type, when subscribing to a UniversalStore with id '${this.id}'`);return this.listeners.has(r)||this.listeners.set(r,new Set),this.listeners.get(r).add(i),()=>{this.debug(`unsubscribe`,{eventType:r,listener:i}),this.listeners.has(r)&&(this.listeners.get(r).delete(i),this.listeners.get(r)?.size===0&&this.listeners.delete(r))}},this.send=t=>{if(this.debug(`send`,{event:t}),this.status!==e.Status.READY)throw TypeError(b`Cannot send event before store is ready. You can get the current status with store.status,
|
||
or await store.readyPromise to wait for the store to be ready before sending events.
|
||
${JSON.stringify({event:t,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.emitToListeners(t,{actor:this.actor}),this.emitToChannel(t,{actor:this.actor})},this.debugging=t.debug??!1,!e.isInternalConstructing)throw TypeError(`UniversalStore is not constructable - use UniversalStore.create() instead`);if(e.isInternalConstructing=!1,this.id=t.id,this.actorId=Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?e.ActorType.LEADER:e.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${zT}${this.id}`,this.debug(`constructor`,{options:t,environmentOverrides:n,channelEventName:this.channelEventName}),this.actor.type===e.ActorType.LEADER)this.syncing={state:BT.RESOLVED,promise:Promise.resolve()};else{let e,t,n=new Promise((n,r)=>{e=()=>{this.syncing.state===BT.PENDING&&(this.syncing.state=BT.RESOLVED,n())},t=e=>{this.syncing.state===BT.PENDING&&(this.syncing.state=BT.REJECTED,r(e))}});this.syncing={state:BT.PENDING,promise:n,resolve:e,reject:t}}this.getState=this.getState.bind(this),this.setState=this.setState.bind(this),this.subscribe=this.subscribe.bind(this),this.onStateChange=this.onStateChange.bind(this),this.send=this.send.bind(this),this.emitToChannel=this.emitToChannel.bind(this),this.prepareThis=this.prepareThis.bind(this),this.emitToListeners=this.emitToListeners.bind(this),this.handleChannelEvents=this.handleChannelEvents.bind(this),this.debug=this.debug.bind(this),this.channel=n?.channel??e.preparation.channel,this.environment=n?.environment??e.preparation.environment,this.channel&&this.environment?(e.preparation.resolve({channel:this.channel,environment:this.environment}),this.prepareThis({channel:this.channel,environment:this.environment})):e.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,n,r=new Promise((e,r)=>{t=t=>{e(t)},n=(...e)=>{r(e)}});e.preparation={resolve:t,reject:n,promise:r}}get actor(){return Object.freeze({id:this.actorId,type:this.actorType,environment:this.environment??e.Environment.UNKNOWN})}get status(){if(!this.channel||!this.environment)return e.Status.UNPREPARED;switch(this.syncing?.state){case BT.PENDING:case void 0:return e.Status.SYNCING;case BT.REJECTED:return e.Status.ERROR;case BT.RESOLVED:default:return e.Status.READY}}untilReady(){return Promise.all([e.preparation.promise,this.syncing?.promise])}static create(t){if(!t||typeof t?.id!=`string`)throw TypeError(`id is required and must be a string, when creating a UniversalStore`);t.debug&&console.debug(b`[UniversalStore]
|
||
create`,{options:t});let n=RT.get(t.id);if(n)return console.warn(b`UniversalStore with id "${t.id}" already exists in this environment, re-using existing.
|
||
You should reuse the existing instance instead of trying to create a new one.`),n;e.isInternalConstructing=!0;let r=new e(t);return RT.set(t.id,r),r}static __prepare(t,n){e.preparation.channel=t,e.preparation.environment=n,e.preparation.resolve({channel:t,environment:n})}setState(t){let n=this.state,r=typeof t==`function`?t(n):t;if(this.debug(`setState`,{newState:r,previousState:n,updater:t}),this.status!==e.Status.READY)throw TypeError(b`Cannot set state before store is ready. You can get the current status with store.status,
|
||
or await store.readyPromise to wait for the store to be ready before sending events.
|
||
${JSON.stringify({newState:r,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.state=r;let i={type:e.InternalEventType.SET_STATE,payload:{state:r,previousState:n}};this.emitToChannel(i,{actor:this.actor}),this.emitToListeners(i,{actor:this.actor})}onStateChange(t){return this.debug(`onStateChange`,{listener:t}),this.subscribe(e.InternalEventType.SET_STATE,({payload:e},n)=>{t(e.state,e.previousState,n)})}emitToChannel(e,t){this.debug(`emitToChannel`,{event:e,eventInfo:t,channel:!!this.channel}),this.channel?.emit(this.channelEventName,{event:e,eventInfo:t})}prepareThis({channel:t,environment:n}){this.channel=t,this.environment=n,this.debug(`prepared`,{channel:!!t,environment:n}),this.channel.on(this.channelEventName,this.handleChannelEvents),this.actor.type===e.ActorType.LEADER?this.emitToChannel({type:e.InternalEventType.LEADER_CREATED},{actor:this.actor}):(this.emitToChannel({type:e.InternalEventType.FOLLOWER_CREATED},{actor:this.actor}),this.emitToChannel({type:e.InternalEventType.EXISTING_STATE_REQUEST},{actor:this.actor}),setTimeout(()=>{this.syncing.reject(TypeError(`No existing state found for follower with id: '${this.id}'. Make sure a leader with the same id exists before creating a follower.`))},1e3))}emitToListeners(e,t){let n=this.listeners.get(e.type),r=this.listeners.get(`*`);this.debug(`emitToListeners`,{event:e,eventInfo:t,eventTypeListeners:n,everythingListeners:r}),[...n??[],...r??[]].forEach(n=>n(e,t))}handleChannelEvents(t){let{event:n,eventInfo:r}=t;if([r.actor.id,r.forwardingActor?.id].includes(this.actor.id)){this.debug(`handleChannelEvents: Ignoring event from self`,{channelEvent:t});return}else if(this.syncing?.state===BT.PENDING&&n.type!==e.InternalEventType.EXISTING_STATE_RESPONSE){this.debug(`handleChannelEvents: Ignoring event while syncing`,{channelEvent:t});return}if(this.debug(`handleChannelEvents`,{channelEvent:t}),this.actor.type===e.ActorType.LEADER){let i=!0;switch(n.type){case e.InternalEventType.EXISTING_STATE_REQUEST:i=!1;let t={type:e.InternalEventType.EXISTING_STATE_RESPONSE,payload:this.state};this.debug(`handleChannelEvents: responding to existing state request`,{responseEvent:t}),this.emitToChannel(t,{actor:this.actor}),this.emitToListeners(t,{actor:this.actor});break;case e.InternalEventType.LEADER_CREATED:i=!1,this.syncing.state=BT.REJECTED,this.debug(`handleChannelEvents: erroring due to second leader being created`,{event:n}),console.error(b`Detected multiple UniversalStore leaders created with the same id "${this.id}".
|
||
Only one leader can exists at a time, your stores are now in an invalid state.
|
||
Leaders detected:
|
||
this: ${JSON.stringify(this.actor,null,2)}
|
||
other: ${JSON.stringify(r.actor,null,2)}`);break}i&&(this.debug(`handleChannelEvents: forwarding event`,{channelEvent:t}),this.emitToChannel(n,{actor:r.actor,forwardingActor:this.actor}))}if(this.actor.type===e.ActorType.FOLLOWER)switch(n.type){case e.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug(`handleChannelEvents: Setting state from leader's existing state response`,{event:n}),this.syncing?.state!==BT.PENDING)break;this.syncing.resolve?.();let t={type:e.InternalEventType.SET_STATE,payload:{state:n.payload,previousState:this.state}};this.state=n.payload,this.emitToListeners(t,r);break}switch(n.type){case e.InternalEventType.SET_STATE:this.debug(`handleChannelEvents: Setting state`,{event:n}),this.state=n.payload.state;break}this.emitToListeners(n,{actor:r.actor})}debug(t,n){this.debugging&&console.debug(b`[UniversalStore::${this.id}::${this.environment??e.Environment.UNKNOWN}]
|
||
${t}`,JSON.stringify({data:n,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){e.preparation.reject(Error(`reset`)),e.setupPreparationPromise(),e.isInternalConstructing=!1}},VT.ActorType={LEADER:`LEADER`,FOLLOWER:`FOLLOWER`},VT.Environment={SERVER:`SERVER`,MANAGER:`MANAGER`,PREVIEW:`PREVIEW`,UNKNOWN:`UNKNOWN`,MOCK:`MOCK`},VT.InternalEventType={EXISTING_STATE_REQUEST:`__EXISTING_STATE_REQUEST`,EXISTING_STATE_RESPONSE:`__EXISTING_STATE_RESPONSE`,SET_STATE:`__SET_STATE`,LEADER_CREATED:`__LEADER_CREATED`,FOLLOWER_CREATED:`__FOLLOWER_CREATED`},VT.Status={UNPREPARED:`UNPREPARED`,SYNCING:`SYNCING`,READY:`READY`,ERROR:`ERROR`},VT.isInternalConstructing=!1,VT.setupPreparationPromise(),HT=VT,UT=e=>e.transports!==void 0,WT=()=>Math.random().toString(16).slice(2),GT=class{constructor(e={}){this.sender=WT(),this.events={},this.data={},this.transports=[],this.isAsync=e.async||!1,UT(e)?(this.transports=e.transports||[],this.transports.forEach(e=>{e.setHandler(e=>this.handleEvent(e))})):this.transports=e.transport?[e.transport]:[],this.transports.forEach(e=>{e.setHandler(e=>this.handleEvent(e))})}get hasTransport(){return this.transports.length>0}addListener(e,t){this.events[e]=this.events[e]||[],this.events[e].push(t)}emit(e,...t){let n={type:e,args:t,from:this.sender},r={};t.length>=1&&t[0]&&t[0].options&&(r=t[0].options);let i=()=>{this.transports.forEach(e=>{e.send(n,r)}),this.handleEvent(n)};this.isAsync?setImmediate(i):i()}last(e){return this.data[e]}eventNames(){return Object.keys(this.events)}listenerCount(e){let t=this.listeners(e);return t?t.length:0}listeners(e){return this.events[e]||void 0}once(e,t){let n=this.onceListener(e,t);this.addListener(e,n)}removeAllListeners(e){e?this.events[e]&&delete this.events[e]:this.events={}}removeListener(e,t){let n=this.listeners(e);n&&(this.events[e]=n.filter(e=>e!==t))}on(e,t){this.addListener(e,t)}off(e,t){this.removeListener(e,t)}handleEvent(e){let t=this.listeners(e.type);t&&t.length&&t.forEach(t=>{t.apply(e,e.args)}),this.data[e.type]=e.args}onceListener(e,t){let n=(...r)=>(this.removeListener(e,n),t(...r));return n}},KT={},Xv(KT,{deprecate:()=>$T,logger:()=>XT,once:()=>QT,pretty:()=>eE}),{LOGLEVEL:qT}=q,JT={trace:1,debug:2,info:3,warn:4,error:5,silent:10},YT=JT[qT]||JT.info,XT={trace:(e,...t)=>{YT<=JT.trace&&console.trace(e,...t)},debug:(e,...t)=>{YT<=JT.debug&&console.debug(e,...t)},info:(e,...t)=>{YT<=JT.info&&console.info(e,...t)},warn:(e,...t)=>{YT<=JT.warn&&console.warn(e,...t)},error:(e,...t)=>{YT<=JT.error&&console.error(e,...t)},log:(e,...t)=>{YT<JT.silent&&console.log(e,...t)}},ZT=new Set,QT=e=>(t,...n)=>{if(!ZT.has(t))return ZT.add(t),XT[e](t,...n)},QT.clear=()=>ZT.clear(),QT.trace=QT(`trace`),QT.debug=QT(`debug`),QT.info=QT(`info`),QT.warn=QT(`warn`),QT.error=QT(`error`),QT.log=QT(`log`),$T=QT(`warn`),eE=e=>(...t)=>{let n=[];if(t.length){let e=/<span\s+style=(['"])([^'"]*)\1\s*>/gi,r=/<\/span>/gi,i;for(n.push(t[0].replace(e,`%c`).replace(r,`%c`));i=e.exec(t[0]);)n.push(i[2]),n.push(``);for(let e=1;e<t.length;e++)n.push(t[e])}XT[e].apply(XT,n)},eE.trace=eE(`trace`),eE.debug=eE(`debug`),eE.info=eE(`info`),eE.warn=eE(`warn`),eE.error=eE(`error`),tE=Object.create,nE=Object.defineProperty,rE=Object.getOwnPropertyDescriptor,iE=Object.getOwnPropertyNames,aE=Object.getPrototypeOf,oE=Object.prototype.hasOwnProperty,J=(e,t)=>function(){return t||(0,e[iE(e)[0]])((t={exports:{}}).exports,t),t.exports},sE=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of iE(t))!oE.call(e,i)&&i!==n&&nE(e,i,{get:()=>t[i],enumerable:!(r=rE(t,i))||r.enumerable});return e},cE=(e,t,n)=>(n=e==null?{}:tE(aE(e)),sE(t||!e||!e.__esModule?nE(n,`default`,{value:e,enumerable:!0}):n,e)),lE=[`bubbles`,`cancelBubble`,`cancelable`,`composed`,`currentTarget`,`defaultPrevented`,`eventPhase`,`isTrusted`,`returnValue`,`srcElement`,`target`,`timeStamp`,`type`],uE=[`detail`],dE=J({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),fE=J({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),pE=J({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),mE=J({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),hE=J({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),gE=J({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),_E=J({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),vE=J({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),yE=J({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),bE=J({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),xE=J({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),SE=J({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),CE=J({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),wE=J({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),TE=J({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(e){return e!==e}}}),EE=J({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var n=TE();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}}}),DE=J({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),OE=J({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var n=DE();if(n)try{n([],`length`)}catch{n=null}t.exports=n}}),kE=J({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n}}),AE=J({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}}}),jE=J({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var n=typeof Symbol<`u`&&Symbol,r=AE();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}}}),ME=J({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null}}),NE=J({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){t.exports=dE().getPrototypeOf||null}}),PE=J({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}}}),FE=J({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var n=PE();t.exports=Function.prototype.bind||n}}),IE=J({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),LE=J({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),RE=J({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply}}),zE=J({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var n=FE(),r=LE(),i=IE();t.exports=RE()||n.call(i,r)}}),BE=J({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var n=FE(),r=_E(),i=IE(),a=zE();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}}}),VE=J({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var n=BE(),r=OE(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?(function(e){return s(e==null?e:o(e))}):!1}}),HE=J({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var n=ME(),r=NE(),i=VE();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null}}),UE=J({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=FE().call(n,r)}}),WE=J({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var n,r=dE(),i=fE(),a=pE(),o=mE(),s=hE(),c=gE(),l=_E(),u=vE(),d=yE(),f=bE(),p=xE(),m=SE(),h=CE(),g=wE(),_=EE(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=OE(),x=kE(),S=function(){throw new l},C=b?(function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}})():S,w=jE()(),T=HE(),E=NE(),D=ME(),O=LE(),k=IE(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){ee=T(T(e)),M[`%Error.prototype%`]=ee}var ee,N=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},te={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},ne=FE(),re=UE(),P=ne.call(k,Array.prototype.concat),ie=ne.call(O,Array.prototype.splice),ae=ne.call(k,String.prototype.replace),oe=ne.call(k,String.prototype.slice),F=ne.call(k,RegExp.prototype.exec),se=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ce=/\\(\\)?/g,le=function(e){var t=oe(e,0,1),n=oe(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return ae(e,se,function(e,t,n,i){r[r.length]=n?ae(i,ce,`$1`):t||e}),r},ue=function(e,t){var n=e,r;if(re(te,n)&&(r=te[n],n=`%`+r[0]+`%`),re(M,n)){var i=M[n];if(i===A&&(i=N(n)),typeof i>`u`&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(F(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=le(e),r=n.length>0?n[0]:``,i=ue(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],ie(n,P([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=oe(p,0,1),h=oe(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,re(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=re(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}}}),GE=J({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var n=WE(),r=BE(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}}}),KE=J({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var n=AE();t.exports=function(){return n()&&!!Symbol.toStringTag}}}),qE=J({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var n=GE(),r=KE()(),i=UE(),a=OE(),o;r?(s=n(`RegExp.prototype.exec`),c={},l=function(){throw c},u={toString:l,valueOf:l},typeof Symbol.toPrimitive==`symbol`&&(u[Symbol.toPrimitive]=l),o=function(e){if(!e||typeof e!=`object`)return!1;var t=a(e,`lastIndex`);if(!(t&&i(t,`value`)))return!1;try{s(e,u)}catch(e){return e===c}}):(d=n(`Object.prototype.toString`),f=`[object RegExp]`,o=function(e){return!e||typeof e!=`object`&&typeof e!=`function`?!1:d(e)===f});var s,c,l,u,d,f;t.exports=o}}),JE=J({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=r;var n=Object.prototype.toString;function r(e){if(!e)return!1;var t=n.call(e);return t===`[object Function]`||typeof e==`function`&&t!==`[object RegExp]`||typeof window<`u`&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}}}),YE=J({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var n=GE(),r=qE(),i=n(`RegExp.prototype.exec`),a=_E();t.exports=function(e){if(!r(e))throw new a("`regex` must be a RegExp");return function(t){return i(e,t)!==null}}}}),XE=J({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var n=GE(),r=n(`Object.prototype.toString`),i=jE()(),a=YE();i?(o=n(`Symbol.prototype.toString`),s=a(/^Symbol\(.*\)$/),c=function(e){return typeof e.valueOf()==`symbol`?s(o(e)):!1},t.exports=function(e){if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||r(e)!==`[object Symbol]`)return!1;try{return c(e)}catch{return!1}}):t.exports=function(e){return!1};var o,s,c}}),ZE=cE(qE()),QE=cE(JE()),$E=cE(XE()),eD=typeof global==`object`&&global&&global.Object===Object&&global,tD=typeof self==`object`&&self&&self.Object===Object&&self,nD=eD||tD||Function(`return this`)(),rD=nD.Symbol,iD=Object.prototype,aD=iD.hasOwnProperty,oD=iD.toString,sD=rD?rD.toStringTag:void 0,cD=C,lD=Object.prototype.toString,uD=w,dD=`[object Null]`,fD=`[object Undefined]`,pD=rD?rD.toStringTag:void 0,mD=T,hD=E,gD=`[object Symbol]`,_D=D,vD=O,yD=Array.isArray,bD=1/0,xD=rD?rD.prototype:void 0,SD=xD?xD.toString:void 0,CD=k,wD=A,TD=`[object AsyncFunction]`,ED=`[object Function]`,DD=`[object GeneratorFunction]`,OD=`[object Proxy]`,kD=j,AD=nD[`__core-js_shared__`],jD=(function(){var e=/[^.]+$/.exec(AD&&AD.keys&&AD.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``})(),MD=M,ND=Function.prototype.toString,PD=ee,FD=/[\\^$.*+?()[\]{}|]/g,ID=/^\[object .+?Constructor\]$/,LD=Function.prototype,RD=Object.prototype,zD=LD.toString,BD=RD.hasOwnProperty,VD=RegExp(`^`+zD.call(BD).replace(FD,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),HD=N,UD=te,WD=ne,GD=re,KD=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qD=/^\w*$/,JD=P,YD=WD(Object,`create`),XD=ie,ZD=ae,QD=`__lodash_hash_undefined__`,$D=Object.prototype.hasOwnProperty,eO=oe,tO=Object.prototype.hasOwnProperty,nO=F,rO=`__lodash_hash_undefined__`,iO=se,ce.prototype.clear=XD,ce.prototype.delete=ZD,ce.prototype.get=eO,ce.prototype.has=nO,ce.prototype.set=iO,aO=ce,oO=le,sO=ue,cO=Array.prototype.splice,lO=de,uO=fe,dO=pe,fO=me,he.prototype.clear=oO,he.prototype.delete=lO,he.prototype.get=uO,he.prototype.has=dO,he.prototype.set=fO,pO=he,mO=WD(nD,`Map`),hO=ge,gO=_e,_O=ve,vO=ye,yO=be,bO=xe,xO=Se,I.prototype.clear=hO,I.prototype.delete=vO,I.prototype.get=yO,I.prototype.has=bO,I.prototype.set=xO,SO=I,CO=`Expected a function`,Ce.Cache=SO,wO=Ce,TO=500,EO=we,DO=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,OO=/\\(\\)?/g,kO=EO(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(DO,function(e,n,r,i){t.push(r?i.replace(OO,`$1`):n||e)}),t}),AO=Te,jO=L,MO=1/0,NO=Ee,PO=De,FO=Oe,IO=S,LO=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,RO=e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/),zO=function(e){let t,n,r,i;return function(a,o){try{if(a===``)return i=[],t=new Map([[o,`[]`]]),n=new Map,r=[],o;let s=n.get(this)||this;for(;r.length&&s!==r[0];)r.shift(),i.pop();if(typeof o==`boolean`)return o;if(o===void 0)return e.allowUndefined?`_undefined_`:void 0;if(o===null)return null;if(typeof o==`number`)return o===-1/0?`_-Infinity_`:o===1/0?`_Infinity_`:Number.isNaN(o)?`_NaN_`:o;if(typeof o==`bigint`)return`_bigint_${o.toString()}`;if(typeof o==`string`)return LO.test(o)?e.allowDate?`_date_${o}`:void 0:o;if((0,ZE.default)(o))return e.allowRegExp?`_regexp_${o.flags}|${o.source}`:void 0;if((0,QE.default)(o))return;if((0,$E.default)(o)){if(!e.allowSymbol)return;let t=Symbol.keyFor(o);return t===void 0?`_symbol_${o.toString().slice(7,-1)}`:`_gsymbol_${t}`}if(r.length>=e.maxDepth)return Array.isArray(o)?`[Array(${o.length})]`:`[Object]`;if(o===this)return`_duplicate_${JSON.stringify(i)}`;if(o instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...o.cause?{cause:o.cause}:{},...o,name:o.name,message:o.message,stack:o.stack,"_constructor-name_":o.constructor.name}};if(o?.constructor?.name&&o.constructor.name!==`Object`&&!Array.isArray(o)){let e=t.get(o);if(!e){let e={__isClassInstance__:!0,__className__:o.constructor.name,...Object.getOwnPropertyNames(o).reduce((e,t)=>{try{e[t]=o[t]}catch{}return e},{})};return i.push(a),r.unshift(e),t.set(o,JSON.stringify(i)),o!==e&&n.set(o,e),e}return`_duplicate_${e}`}let c=t.get(o);if(!c){let e=Array.isArray(o)?o:R(o);return i.push(a),r.unshift(e),t.set(o,JSON.stringify(i)),o!==e&&n.set(o,e),e}return`_duplicate_${c}`}catch{return}}},BO=function(e){let t=[],n;return function(r,i){if(r===``&&(n=i,t.forEach(({target:e,container:t,replacement:r})=>{let i=RO(r)?JSON.parse(r):r.split(`.`);i.length===0?t[e]=n:t[e]=FO(n,i)})),r===`_constructor-name_`)return i;if(IO(i)&&i.__isConvertedError__){let{message:e,...t}=i.errorProperties,n=Error(e);return Object.assign(n,t),n}if(typeof i==`string`&&i.startsWith(`_regexp_`)&&e.allowRegExp){let[,e,t]=i.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(t,e)}return typeof i==`string`&&i.startsWith(`_date_`)&&e.allowDate?new Date(i.replace(`_date_`,``)):typeof i==`string`&&i.startsWith(`_duplicate_`)?(t.push({target:r,container:this,replacement:i.replace(/^_duplicate_/,``)}),null):typeof i==`string`&&i.startsWith(`_symbol_`)&&e.allowSymbol?Symbol(i.replace(`_symbol_`,``)):typeof i==`string`&&i.startsWith(`_gsymbol_`)&&e.allowSymbol?Symbol.for(i.replace(`_gsymbol_`,``)):typeof i==`string`&&i===`_-Infinity_`?-1/0:typeof i==`string`&&i===`_Infinity_`?1/0:typeof i==`string`&&i===`_NaN_`?NaN:typeof i==`string`&&i.startsWith(`_bigint_`)&&typeof BigInt==`function`?BigInt(i.replace(`_bigint_`,``)):i}},VO={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},HO=(e,t={})=>{let n={...VO,...t};return JSON.stringify(R(e),zO(n),t.space)},UO=()=>{let e=new Map;return function t(n){IO(n)&&Object.entries(n).forEach(([r,i])=>{i===`_undefined_`?n[r]=void 0:e.get(i)||(e.set(i,!0),t(i))}),Array.isArray(n)&&n.forEach((r,i)=>{r===`_undefined_`?(e.set(r,!0),n[i]=void 0):e.get(r)||(e.set(r,!0),t(r))})}},WO=(e,t={})=>{let n={...VO,...t},r=JSON.parse(e,BO(n));return UO()(r),r},GO=!0,KO=`Invariant failed`,qO=e=>{let[t,...n]=Array.from(document.querySelectorAll(`iframe[data-is-storybook]`)).filter(t=>{try{return t.contentWindow?.location.origin===e.source.location.origin&&t.contentWindow?.location.pathname===e.source.location.pathname}catch{}try{return t.contentWindow===e.source}catch{}let n=t.getAttribute(`src`),r;try{if(!n)return!1;({origin:r}=new URL(n,document.location.toString()))}catch{return!1}return r===e.origin}),r=t?.getAttribute(`src`);if(r&&n.length===0){let{protocol:e,host:t,pathname:n}=new URL(r,document.location.toString());return`${e}//${t}${n}`}return n.length>0&&XT.error(`found multiple candidates for event source`),null},{document:JO,location:YO}=q,XO=`storybook-channel`,ZO={maxDepth:25},QO=class{constructor(e){if(this.config=e,this.connected=!1,this.buffer=[],typeof q?.addEventListener==`function`&&q.addEventListener(`message`,this.handleEvent.bind(this),!1),e.page!==`manager`&&e.page!==`preview`)throw Error(`postmsg-channel: "config.page" cannot be "${e.page}"`)}setHandler(e){this.handler=(...t)=>{e.apply(this,t),!this.connected&&this.getLocalFrame().length&&(this.flush(),this.connected=!0)}}send(e,t){let{target:n,allowRegExp:r,allowSymbol:i,allowDate:a,allowError:o,allowUndefined:s,maxDepth:c,space:l}=t||{},u=Object.fromEntries(Object.entries({allowRegExp:r,allowSymbol:i,allowDate:a,allowError:o,allowUndefined:s,maxDepth:c,space:l}).filter(([e,t])=>typeof t<`u`)),d={...ZO,...q.CHANNEL_OPTIONS||{},...u},f=this.getFrames(n),p=HO({key:XO,event:e,refId:new URLSearchParams(YO?.search||``).get(`refId`)},d);return f.length?(this.buffer.length&&this.flush(),f.forEach(e=>{try{e.postMessage(p,`*`)}catch{XT.error(`sending over postmessage fail`)}}),Promise.resolve(null)):new Promise((t,n)=>{this.buffer.push({event:e,resolve:t,reject:n})})}flush(){let{buffer:e}=this;this.buffer=[],e.forEach(e=>{this.send(e.event).then(e.resolve).catch(e.reject)})}getFrames(e){if(this.config.page===`manager`){let t=Array.from(JO.querySelectorAll(`iframe[data-is-storybook][data-is-loaded]`)).flatMap(t=>{try{return t.contentWindow&&t.dataset.isStorybook!==void 0&&t.id===e?[t.contentWindow]:[]}catch{return[]}});return t?.length?t:this.getCurrentFrames()}return q&&q.parent&&q.parent!==q.self?[q.parent]:[]}getCurrentFrames(){return this.config.page===`manager`?Array.from(JO.querySelectorAll(`[data-is-storybook="true"]`)).flatMap(e=>e.contentWindow?[e.contentWindow]:[]):q&&q.parent?[q.parent]:[]}getLocalFrame(){return this.config.page===`manager`?Array.from(JO.querySelectorAll(`#storybook-preview-iframe`)).flatMap(e=>e.contentWindow?[e.contentWindow]:[]):q&&q.parent?[q.parent]:[]}handleEvent(e){try{let{data:t}=e,{key:n,event:r,refId:i}=typeof t==`string`&&RO(t)?WO(t,q.CHANNEL_OPTIONS||{}):t;if(n===XO){let n=this.config.page===`manager`?`<span style="color: #37D5D3; background: black"> manager </span>`:`<span style="color: #1EA7FD; background: black"> preview </span>`,a=Object.values(yw).includes(r.type)?`<span style="color: #FF4785">${r.type}</span>`:`<span style="color: #FFAE00">${r.type}</span>`;if(i&&(r.refId=i),r.source=this.config.page===`preview`?e.origin:qO(e),!r.source){eE.error(`${n} received ${a} but was unable to determine the source of the event`);return}let o=`${n} received ${a} (${t.length})`;eE.debug(YO.origin===r.source?`${o} <span style="color: gray">(on ${YO.origin} from ${r.source})</span>`:o,...r.args),ke(this.handler,`ChannelHandler should be set`),this.handler(r)}}catch(e){XT.error(e)}}},{WebSocket:$O}=q,ek=15e3,tk=5e3,nk=class{constructor({url:e,onError:t,page:n}){this.buffer=[],this.isReady=!1,this.isClosed=!1,this.pingTimeout=0,this.socket=new $O(e),this.socket.onopen=()=>{this.isReady=!0,this.heartbeat(),this.flush()},this.socket.onmessage=({data:e})=>{let t=typeof e==`string`&&RO(e)?WO(e):e;ke(this.handler,`WebsocketTransport handler should be set`),this.handler(t),t.type===`ping`&&(this.heartbeat(),this.send({type:`pong`}))},this.socket.onerror=e=>{t&&t(e)},this.socket.onclose=e=>{ke(this.handler,`WebsocketTransport handler should be set`),this.handler({type:Sw,args:[{reason:e.reason,code:e.code}],from:n||`preview`}),this.isClosed=!0,clearTimeout(this.pingTimeout)}}heartbeat(){clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout(()=>{this.socket.close(3008,`timeout`)},ek+tk)}setHandler(e){this.handler=e}send(e){this.isClosed||(this.isReady?this.sendNow(e):this.sendLater(e))}sendLater(e){this.buffer.push(e)}sendNow(e){let t=HO(e,{maxDepth:15,...q.CHANNEL_OPTIONS});this.socket.send(t)}flush(){let{buffer:e}=this;this.buffer=[],e.forEach(e=>this.send(e))}},{CHANNEL_OPTIONS:rk,CONFIG_TYPE:ik}=q,ak=GT,ok={},Xv(ok,{CalledExtractOnStoreError:()=>dk,CalledPreviewMethodBeforeInitializationError:()=>pk,Category:()=>ck,ElementA11yParameterError:()=>Ok,EmptyIndexError:()=>gk,ImplicitActionsDuringRendering:()=>uk,MdxFileWithNoCsfReferencesError:()=>hk,MissingRenderToCanvasError:()=>fk,MissingStoryAfterHmrError:()=>lk,MissingStoryFromCsfFileError:()=>vk,MountMustBeDestructuredError:()=>bk,NextJsSharpError:()=>wk,NextjsRouterMocksNotAvailable:()=>Tk,NoRenderFunctionError:()=>xk,NoStoryMatchError:()=>_k,NoStoryMountedError:()=>Sk,StatusTypeIdMismatchError:()=>Ck,StoryIndexFetchError:()=>mk,StoryStoreAccessedBeforeInitializationError:()=>yk,UnknownArgTypesError:()=>Ek,UnsupportedViewportDimensionError:()=>Dk}),sk=class e extends Error{constructor(t){super(e.getFullMessage(t)),this.data={},this.fromStorybook=!0,this.isHandledError=!1,this.subErrors=[],this.category=t.category,this.documentation=t.documentation??!1,this.code=t.code,this.isHandledError=t.isHandledError??!1,this.name=t.name,this.subErrors=t.subErrors??[]}get fullErrorCode(){return je({code:this.code,category:this.category})}get name(){let e=this._name||this.constructor.name;return`${this.fullErrorCode} (${e})`}set name(e){this._name=e}static getFullMessage({documentation:e,code:t,category:n,message:r}){let i;return e===!0?i=`https://storybook.js.org/error/${je({code:t,category:n})}?ref=error`:typeof e==`string`?i=Me(e):Array.isArray(e)&&(i=`
|
||
${e.map(e=>` - ${Me(e)}`).join(`
|
||
`)}`),`${r}${i==null?``:`
|
||
|
||
More info: ${i}
|
||
`}`}},ck=(e=>(e.BLOCKS=`BLOCKS`,e.DOCS_TOOLS=`DOCS-TOOLS`,e.PREVIEW_CLIENT_LOGGER=`PREVIEW_CLIENT-LOGGER`,e.PREVIEW_CHANNELS=`PREVIEW_CHANNELS`,e.PREVIEW_CORE_EVENTS=`PREVIEW_CORE-EVENTS`,e.PREVIEW_INSTRUMENTER=`PREVIEW_INSTRUMENTER`,e.PREVIEW_API=`PREVIEW_API`,e.PREVIEW_REACT_DOM_SHIM=`PREVIEW_REACT-DOM-SHIM`,e.PREVIEW_ROUTER=`PREVIEW_ROUTER`,e.PREVIEW_THEMING=`PREVIEW_THEMING`,e.RENDERER_HTML=`RENDERER_HTML`,e.RENDERER_PREACT=`RENDERER_PREACT`,e.RENDERER_REACT=`RENDERER_REACT`,e.RENDERER_SERVER=`RENDERER_SERVER`,e.RENDERER_SVELTE=`RENDERER_SVELTE`,e.RENDERER_VUE=`RENDERER_VUE`,e.RENDERER_VUE3=`RENDERER_VUE3`,e.RENDERER_WEB_COMPONENTS=`RENDERER_WEB-COMPONENTS`,e.FRAMEWORK_NEXTJS=`FRAMEWORK_NEXTJS`,e.ADDON_VITEST=`ADDON_VITEST`,e.ADDON_A11Y=`ADDON_A11Y`,e))(ck||{}),lk=class extends sk{constructor(e){super({name:`MissingStoryAfterHmrError`,category:`PREVIEW_API`,code:1,message:b`
|
||
Couldn't find story matching id '${e.storyId}' after HMR.
|
||
- Did you just rename a story?
|
||
- Did you remove it from your CSF file?
|
||
- Are you sure a story with the id '${e.storyId}' exists?
|
||
- Please check the values in the stories field of your main.js config and see if they would match your CSF File.
|
||
- Also check the browser console and terminal for potential error messages.`}),this.data=e}},uk=class extends sk{constructor(e){super({name:`ImplicitActionsDuringRendering`,category:`PREVIEW_API`,code:2,documentation:`https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#using-implicit-actions-during-rendering-is-deprecated-for-example-in-the-play-function`,message:b`
|
||
We detected that you use an implicit action arg while ${e.phase} of your story.
|
||
${e.deprecated?`
|
||
This is deprecated and won't work in Storybook 8 anymore.
|
||
`:``}
|
||
Please provide an explicit spy to your args like this:
|
||
import { fn } from 'storybook/test';
|
||
...
|
||
args: {
|
||
${e.name}: fn()
|
||
}`}),this.data=e}},dk=class extends sk{constructor(){super({name:`CalledExtractOnStoreError`,category:`PREVIEW_API`,code:3,message:b`
|
||
Cannot call \`storyStore.extract()\` without calling \`storyStore.cacheAllCsfFiles()\` first.
|
||
|
||
You probably meant to call \`await preview.extract()\` which does the above for you.`})}},fk=class extends sk{constructor(){super({name:`MissingRenderToCanvasError`,category:`PREVIEW_API`,code:4,message:b`
|
||
Expected your framework's preset to export a \`renderToCanvas\` field.
|
||
|
||
Perhaps it needs to be upgraded for Storybook 7.0?`,documentation:`https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field`})}},pk=class extends sk{constructor(e){super({name:`CalledPreviewMethodBeforeInitializationError`,category:`PREVIEW_API`,code:5,message:b`
|
||
Called \`Preview.${e.methodName}()\` before initialization.
|
||
|
||
The preview needs to load the story index before most methods can be called. If you want
|
||
to call \`${e.methodName}\`, try \`await preview.initializationPromise;\` first.
|
||
|
||
If you didn't call the above code, then likely it was called by an addon that needs to
|
||
do the above.`}),this.data=e}},mk=class extends sk{constructor(e){super({name:`StoryIndexFetchError`,category:`PREVIEW_API`,code:6,message:b`
|
||
Error fetching \`/index.json\`:
|
||
|
||
${e.text}
|
||
|
||
If you are in development, this likely indicates a problem with your Storybook process,
|
||
check the terminal for errors.
|
||
|
||
If you are in a deployed Storybook, there may have been an issue deploying the full Storybook
|
||
build.`}),this.data=e}},hk=class extends sk{constructor(e){super({name:`MdxFileWithNoCsfReferencesError`,category:`PREVIEW_API`,code:7,message:b`
|
||
Tried to render docs entry ${e.storyId} but it is a MDX file that has no CSF
|
||
references, or autodocs for a CSF file that some doesn't refer to itself.
|
||
|
||
This likely is an internal error in Storybook's indexing, or you've attached the
|
||
\`attached-mdx\` tag to an MDX file that is not attached.`}),this.data=e}},gk=class extends sk{constructor(){super({name:`EmptyIndexError`,category:`PREVIEW_API`,code:8,message:b`
|
||
Couldn't find any stories in your Storybook.
|
||
|
||
- Please check your stories field of your main.js config: does it match correctly?
|
||
- Also check the browser console and terminal for error messages.`})}},_k=class extends sk{constructor(e){super({name:`NoStoryMatchError`,category:`PREVIEW_API`,code:9,message:b`
|
||
Couldn't find story matching '${e.storySpecifier}'.
|
||
|
||
- Are you sure a story with that id exists?
|
||
- Please check your stories field of your main.js config.
|
||
- Also check the browser console and terminal for error messages.`}),this.data=e}},vk=class extends sk{constructor(e){super({name:`MissingStoryFromCsfFileError`,category:`PREVIEW_API`,code:10,message:b`
|
||
Couldn't find story matching id '${e.storyId}' after importing a CSF file.
|
||
|
||
The file was indexed as if the story was there, but then after importing the file in the browser
|
||
we didn't find the story. Possible reasons:
|
||
- You are using a custom story indexer that is misbehaving.
|
||
- You have a custom file loader that is removing or renaming exports.
|
||
|
||
Please check your browser console and terminal for errors that may explain the issue.`}),this.data=e}},yk=class extends sk{constructor(){super({name:`StoryStoreAccessedBeforeInitializationError`,category:`PREVIEW_API`,code:11,message:b`
|
||
Cannot access the Story Store until the index is ready.
|
||
|
||
It is not recommended to use methods directly on the Story Store anyway, in Storybook 9 we will
|
||
remove access to the store entirely`})}},bk=class extends sk{constructor(e){super({name:`MountMustBeDestructuredError`,category:`PREVIEW_API`,code:12,message:b`
|
||
Incorrect use of mount in the play function.
|
||
|
||
To use mount in the play function, you must satisfy the following two requirements:
|
||
|
||
1. You *must* destructure the mount property from the \`context\` (the argument passed to your play function).
|
||
This makes sure that Storybook does not start rendering the story before the play function begins.
|
||
|
||
2. Your Storybook framework or builder must be configured to transpile to ES2017 or newer.
|
||
This is because destructuring statements and async/await usages are otherwise transpiled away,
|
||
which prevents Storybook from recognizing your usage of \`mount\`.
|
||
|
||
Note that Angular is not supported. As async/await is transpiled to support the zone.js polyfill.
|
||
|
||
More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#run-code-before-the-component-gets-rendered
|
||
|
||
Received the following play function:
|
||
${e.playFunction}`}),this.data=e}},xk=class extends sk{constructor(e){super({name:`NoRenderFunctionError`,category:`PREVIEW_API`,code:14,message:b`
|
||
No render function available for storyId '${e.id}'
|
||
`}),this.data=e}},Sk=class extends sk{constructor(){super({name:`NoStoryMountedError`,category:`PREVIEW_API`,code:15,message:b`
|
||
No component is mounted in your story.
|
||
|
||
This usually occurs when you destructure mount in the play function, but forget to call it.
|
||
|
||
For example:
|
||
|
||
async play({ mount, canvasElement }) {
|
||
// 👈 mount should be called: await mount();
|
||
const canvas = within(canvasElement);
|
||
const button = await canvas.findByRole('button');
|
||
await userEvent.click(button);
|
||
};
|
||
|
||
Make sure to either remove it or call mount in your play function.
|
||
`})}},Ck=class extends sk{constructor(e){super({name:`StatusTypeIdMismatchError`,category:`PREVIEW_API`,code:16,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}},wk=class extends sk{constructor(){super({name:`NextJsSharpError`,category:`FRAMEWORK_NEXTJS`,code:1,documentation:`https://storybook.js.org/docs/get-started/frameworks/nextjs#error-you-are-importing-avif-images-but-you-dont-have-sharp-installed-you-have-to-install-sharp-in-order-to-use-image-optimization-features-in-nextjs`,message:b`
|
||
You are importing avif images, but you don't have sharp installed.
|
||
|
||
You have to install sharp in order to use image optimization features in Next.js.
|
||
`})}},Tk=class extends sk{constructor(e){super({name:`NextjsRouterMocksNotAvailable`,category:`FRAMEWORK_NEXTJS`,code:2,message:b`
|
||
Tried to access router mocks from "${e.importType}" but they were not created yet. You might be running code in an unsupported environment.
|
||
`}),this.data=e}},Ek=class extends sk{constructor(e){super({name:`UnknownArgTypesError`,category:`DOCS-TOOLS`,code:1,documentation:`https://github.com/storybookjs/storybook/issues/26606`,message:b`
|
||
There was a failure when generating detailed ArgTypes in ${e.language} for:
|
||
${JSON.stringify(e.type,null,2)}
|
||
|
||
Storybook will fall back to use a generic type description instead.
|
||
|
||
This type is either not supported or it is a bug in the docgen generation in Storybook.
|
||
If you think this is a bug, please detail it as much as possible in the Github issue.
|
||
`}),this.data=e}},Dk=class extends sk{constructor(e){super({name:`UnsupportedViewportDimensionError`,category:`ADDON_VITEST`,code:1,message:b`
|
||
Encountered an unsupported value "${e.value}" when setting the viewport ${e.dimension} dimension.
|
||
|
||
The Storybook plugin only supports values in the following units:
|
||
- px, vh, vw, em, rem and %.
|
||
|
||
You can either change the viewport for this story to use one of the supported units or skip the test by adding '!test' to the story's tags per https://storybook.js.org/docs/writing-stories/tags
|
||
`}),this.data=e}},Ok=class extends sk{constructor(){super({name:`ElementA11yParameterError`,category:`ADDON_A11Y`,code:1,documentation:`https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#a11y-addon-replace-element-parameter-with-context-parameter`,message:`The "element" parameter in parameters.a11y has been removed. Use "context" instead.`})}},kk={},Xv(kk,{Addon_TypesEnum:()=>Ak,CoreWebpackCompiler:()=>Nk,Feature:()=>Fk,SupportedBuilder:()=>Pk,SupportedFramework:()=>jk,SupportedLanguage:()=>Ik,SupportedRenderer:()=>Mk}),Ak=(e=>(e.TAB=`tab`,e.PANEL=`panel`,e.TOOL=`tool`,e.TOOLEXTRA=`toolextra`,e.PREVIEW=`preview`,e.experimental_PAGE=`page`,e.experimental_TEST_PROVIDER=`test-provider`,e))(Ak||{}),jk=(e=>(e.ANGULAR=`angular`,e.EMBER=`ember`,e.HTML_VITE=`html-vite`,e.NEXTJS=`nextjs`,e.NEXTJS_VITE=`nextjs-vite`,e.PREACT_VITE=`preact-vite`,e.REACT_NATIVE_WEB_VITE=`react-native-web-vite`,e.REACT_VITE=`react-vite`,e.REACT_WEBPACK5=`react-webpack5`,e.SERVER_WEBPACK5=`server-webpack5`,e.SVELTE_VITE=`svelte-vite`,e.SVELTEKIT=`sveltekit`,e.VUE3_VITE=`vue3-vite`,e.WEB_COMPONENTS_VITE=`web-components-vite`,e.HTML_RSBUILD=`html-rsbuild`,e.NUXT=`nuxt`,e.QWIK=`qwik`,e.REACT_RSBUILD=`react-rsbuild`,e.SOLID=`solid`,e.VUE3_RSBUILD=`vue3-rsbuild`,e.WEB_COMPONENTS_RSBUILD=`web-components-rsbuild`,e))(jk||{}),Mk=(e=>(e.REACT=`react`,e.REACT_NATIVE=`react-native`,e.VUE3=`vue3`,e.ANGULAR=`angular`,e.EMBER=`ember`,e.PREACT=`preact`,e.SVELTE=`svelte`,e.QWIK=`qwik`,e.HTML=`html`,e.WEB_COMPONENTS=`web-components`,e.SERVER=`server`,e.SOLID=`solid`,e.NUXT=`nuxt`,e))(Mk||{}),Nk=(e=>(e.Babel=`babel`,e.SWC=`swc`,e))(Nk||{}),Pk=(e=>(e.WEBPACK5=`webpack5`,e.VITE=`vite`,e.RSBUILD=`rsbuild`,e))(Pk||{}),Fk=(e=>(e.DOCS=`docs`,e.TEST=`test`,e.ONBOARDING=`onboarding`,e.A11Y=`a11y`,e))(Fk||{}),Ik=(e=>(e.JAVASCRIPT=`javascript`,e.TYPESCRIPT=`typescript`,e))(Ik||{}),Lk={},Xv(Lk,{ADDON_ID:()=>zk,CLEAR_ID:()=>Hk,CYCLIC_KEY:()=>Uk,EVENT_ID:()=>Vk,PANEL_ID:()=>Bk,PARAM_KEY:()=>Rk,action:()=>Iv,actions:()=>$U,config:()=>JU,configureActions:()=>YU}),Rk=`actions`,zk=`storybook/actions`,Bk=`${zk}/panel`,Vk=`${zk}/action-event`,Hk=`${zk}/action-clear`,Uk=`$___storybook.isCyclic`,Wk={},Xv(Wk,{DocsContext:()=>sU,HooksContext:()=>Jk,Preview:()=>oU,PreviewWeb:()=>RU,PreviewWithSelection:()=>dU,ReporterAPI:()=>BH,StoryStore:()=>qH,Tag:()=>aA,UrlStore:()=>OU,WebView:()=>LU,addons:()=>qk,applyHooks:()=>Zk,combineArgs:()=>pH,combineParameters:()=>MH,composeConfigs:()=>cv,composeStepRunners:()=>rv,composeStories:()=>yv,composeStory:()=>vv,createPlaywrightTest:()=>bv,decorateStory:()=>Y_,defaultDecorateStory:()=>Z_,emitTransformCode:()=>Fv,filterArgTypes:()=>IH,getCsfFactoryAnnotations:()=>mv,inferControls:()=>RH,makeDecorator:()=>eA,mockChannel:()=>Ne,normalizeArrays:()=>DH,normalizeProjectAnnotations:()=>nv,normalizeStory:()=>K_,pauseAnimations:()=>uv,prepareMeta:()=>$_,prepareStory:()=>Q_,sanitizeStoryContextUpdate:()=>X_,setDefaultProjectAnnotations:()=>hv,setProjectAnnotations:()=>_v,simulateDOMContentLoaded:()=>jv,simulatePageLoad:()=>Pv,sortStoriesV7:()=>eU,useArgs:()=>Ye,useCallback:()=>Be,useChannel:()=>qe,useEffect:()=>Ke,useGlobals:()=>Xe,useMemo:()=>ze,useParameter:()=>Je,useReducer:()=>Ge,useRef:()=>He,useState:()=>We,useStoryContext:()=>V,userOrAutoTitle:()=>XH,userOrAutoTitleFromSpecifier:()=>YH,waitForAnimations:()=>dv}),Gk=class{constructor(){this.getChannel=()=>{if(!this.channel){let e=Ne();return this.setChannel(e),e}return this.channel},this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel,this.setChannel=e=>{this.channel=e,this.resolve()},this.promise=new Promise(e=>{this.resolve=()=>e(this.getChannel())})}},Kk=`__STORYBOOK_ADDONS_PREVIEW`,qk=Pe(),Jk=class{constructor(){this.hookListsMap=void 0,this.mountedDecorators=void 0,this.prevMountedDecorators=void 0,this.currentHooks=void 0,this.nextHookIndex=void 0,this.currentPhase=void 0,this.currentEffects=void 0,this.prevEffects=void 0,this.currentDecoratorName=void 0,this.hasUpdates=void 0,this.currentContext=void 0,this.renderListener=e=>{e===this.currentContext?.id&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},this.init()}init(){this.hookListsMap=new WeakMap,this.mountedDecorators=new Set,this.prevMountedDecorators=new Set,this.currentHooks=[],this.nextHookIndex=0,this.currentPhase=`NONE`,this.currentEffects=[],this.prevEffects=[],this.currentDecoratorName=null,this.hasUpdates=!1,this.currentContext=null}clean(){this.prevEffects.forEach(e=>{e.destroy&&e.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){let e=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,e}triggerEffects(){this.prevEffects.forEach(e=>{!this.currentEffects.includes(e)&&e.destroy&&e.destroy()}),this.currentEffects.forEach(e=>{this.prevEffects.includes(e)||(e.destroy=e.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),qk.getChannel().on(cT,this.renderListener)}removeRenderListeners(){qk.getChannel().removeListener(cT,this.renderListener)}},Yk=0,Xk=25,Zk=e=>(t,n)=>{let r=e(Fe(t),n.map(e=>Fe(e)));return e=>{let{hooks:i}=e;i.prevMountedDecorators??=new Set,i.mountedDecorators=new Set([t,...n]),i.currentContext=e,i.hasUpdates=!1;let a=r(e);for(Yk=1;i.hasUpdates;)if(i.hasUpdates=!1,i.currentEffects=[],a=r(e),Yk+=1,Yk>Xk)throw Error(`Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.`);return i.addRenderListeners(),a}},Qk=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),$k=()=>Error(`Storybook preview hooks can only be called inside decorators and story functions.`),eA=({name:e,parameterName:t,wrapper:n,skipIfNoParametersOrOptions:r=!1})=>{let i=e=>(i,a)=>{let o=a.parameters&&a.parameters[t];return o&&o.disable||r&&!e&&!o?i(a):n(i,a,{options:e,parameters:o})};return(...n)=>typeof n[0]==`function`?i()(...n):(...r)=>{if(r.length>1)return n.length>1?i(n)(...r):i(...n)(...r);throw Error(`Passing stories directly into ${e}() is not allowed,
|
||
instead use addDecorator(${e}) and pass options with the '${t}' parameter`)}},tA=Qv($v(),1),nA=e=>e.map(e=>typeof e<`u`).filter(Boolean).length,rA=(e,t)=>{let{exists:n,eq:r,neq:i,truthy:a}=e;if(nA([n,r,i,a])>1)throw Error(`Invalid conditional test ${JSON.stringify({exists:n,eq:r,neq:i})}`);if(typeof r<`u`)return(0,tA.isEqual)(t,r);if(typeof i<`u`)return!(0,tA.isEqual)(t,i);if(typeof n<`u`){let e=typeof t<`u`;return n?e:!e}return typeof a>`u`||a?!!t:!t},iA=(e,t,n)=>{if(!e.if)return!0;let{arg:r,global:i}=e.if;if(nA([r,i])!==1)throw Error(`Invalid conditional value ${JSON.stringify({arg:r,global:i})}`);let a=r?t[r]:n[i];return rA(e.if,a)},aA={AUTODOCS:`autodocs`,ATTACHED_MDX:`attached-mdx`,UNATTACHED_MDX:`unattached-mdx`,PLAY_FN:`play-fn`,TEST_FN:`test-fn`,DEV:`dev`,TEST:`test`,MANIFEST:`manifest`},oA={},Xv(oA,{argsEnhancers:()=>uA}),sA=(e,t)=>typeof t[e]>`u`&&!(e in t),cA=e=>{let{initialArgs:t,argTypes:n,id:r,parameters:{actions:i}}=e;if(!i||i.disable||!i.argTypesRegex||!n)return{};let a=new RegExp(i.argTypesRegex);return Object.entries(n).filter(([e])=>!!a.test(e)).reduce((e,[n,i])=>(sA(n,t)&&(e[n]=Iv(n,{implicit:!0,id:r})),e),{})},lA=e=>{let{initialArgs:t,argTypes:n,parameters:{actions:r}}=e;return r?.disable||!n?{}:Object.entries(n).filter(([e,t])=>!!t.action).reduce((e,[n,r])=>(sA(n,t)&&(e[n]=Iv(typeof r.action==`string`?r.action:n)),e),{})},uA=[lA,cA],dA={},Xv(dA,{loaders:()=>Qz}),fA={},Xv(fA,{buildQueries:()=>OR,clearAllMocks:()=>Ou,configure:()=>kR,createEvent:()=>AR,expect:()=>Jz,findAllByAltText:()=>MR,findAllByDisplayValue:()=>NR,findAllByLabelText:()=>PR,findAllByPlaceholderText:()=>FR,findAllByRole:()=>IR,findAllByTestId:()=>LR,findAllByText:()=>RR,findAllByTitle:()=>zR,findByAltText:()=>BR,findByDisplayValue:()=>VR,findByLabelText:()=>HR,findByPlaceholderText:()=>UR,findByRole:()=>WR,findByTestId:()=>GR,findByText:()=>KR,findByTitle:()=>qR,fireEvent:()=>jR,fn:()=>Tu,getAllByAltText:()=>JR,getAllByDisplayValue:()=>YR,getAllByLabelText:()=>XR,getAllByPlaceholderText:()=>ZR,getAllByRole:()=>QR,getAllByTestId:()=>$R,getAllByText:()=>ez,getAllByTitle:()=>tz,getByAltText:()=>nz,getByDisplayValue:()=>rz,getByLabelText:()=>iz,getByPlaceholderText:()=>az,getByRole:()=>oz,getByTestId:()=>sz,getByText:()=>cz,getByTitle:()=>lz,getConfig:()=>uz,getDefaultNormalizer:()=>dz,getElementError:()=>fz,getNodeText:()=>pz,getQueriesForElement:()=>mz,getRoles:()=>hz,getSuggestedQuery:()=>gz,isInaccessible:()=>_z,isMockFunction:()=>wl,logDOM:()=>vz,logRoles:()=>yz,mocked:()=>ju,mocks:()=>kP,onMockCall:()=>wu,prettyDOM:()=>bz,prettyFormat:()=>Gz,queries:()=>xz,queryAllByAltText:()=>Sz,queryAllByAttribute:()=>Cz,queryAllByDisplayValue:()=>wz,queryAllByLabelText:()=>Tz,queryAllByPlaceholderText:()=>Ez,queryAllByRole:()=>Dz,queryAllByTestId:()=>Oz,queryAllByText:()=>kz,queryAllByTitle:()=>Az,queryByAltText:()=>jz,queryByAttribute:()=>Mz,queryByDisplayValue:()=>Nz,queryByLabelText:()=>Pz,queryByPlaceholderText:()=>Fz,queryByRole:()=>Iz,queryByTestId:()=>Lz,queryByText:()=>Rz,queryByTitle:()=>zz,queryHelpers:()=>Bz,resetAllMocks:()=>ku,restoreAllMocks:()=>Au,sb:()=>Yz,screen:()=>Vz,spyOn:()=>fF,uninstrumentedUserEvent:()=>Kz,userEvent:()=>qz,waitFor:()=>Hz,waitForElementToBeRemoved:()=>Uz,within:()=>Wz}),pA=Object.entries({reset:[0,0],bold:[1,22,`\x1B[22m\x1B[1m`],dim:[2,22,`\x1B[22m\x1B[2m`],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}),nt.open=``,nt.close=``,pA.reduce((e,[t])=>(e[t]=nt,e),{isColorSupported:!1}),mA=it(),hA=typeof Symbol==`function`&&Symbol.for?Symbol.for(`jest.asymmetricMatcher`):1267621,gA=` `,_A=(e,t,n,r,i,a)=>{let o=e.toString();if(o===`ArrayContaining`||o===`ArrayNotContaining`)return++r>t.maxDepth?`[${o}]`:`${o+gA}[${H(e.sample,t,n,r,i,a)}]`;if(o===`ObjectContaining`||o===`ObjectNotContaining`)return++r>t.maxDepth?`[${o}]`:`${o+gA}{${lt(e.sample,t,n,r,i,a)}}`;if(o===`StringMatching`||o===`StringNotMatching`||o===`StringContaining`||o===`StringNotContaining`)return o+gA+a(e.sample,t,n,r,i);if(typeof e.toAsymmetricMatcher!=`function`)throw TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},vA=e=>e&&e.$$typeof===hA,yA={serialize:_A,test:vA},bA=` `,xA=new Set([`DOMStringMap`,`NamedNodeMap`]),SA=/^(?:HTML\w*Collection|NodeList)$/,CA=e=>e&&e.constructor&&!!e.constructor.name&&ut(e.constructor.name),wA=(e,t,n,r,i,a)=>{let o=e.constructor.name;return++r>t.maxDepth?`[${o}]`:(t.min?``:o+bA)+(xA.has(o)?`{${lt(dt(e)?[...e].reduce((e,t)=>(e[t.name]=t.value,e),{}):{...e},t,n,r,i,a)}}`:`[${H([...e],t,n,r,i,a)}]`)},TA={serialize:wA,test:CA},EA=1,DA=3,OA=8,kA=11,AA=/^(?:(?:HTML|SVG)\w*)?Element$/,jA=e=>{var t;return(e==null||(t=e.constructor)==null?void 0:t.name)&&bt(e)},MA=(e,t,n,r,i,a)=>{if(xt(e))return ht(e.data,t);if(St(e))return gt(e.data,t);let o=Ct(e)?`DocumentFragment`:e.tagName.toLowerCase();return++r>t.maxDepth?vt(o,t):_t(o,pt(Ct(e)?[]:Array.from(e.attributes,e=>e.name).sort(),Ct(e)?{}:[...e.attributes].reduce((e,t)=>(e[t.name]=t.value,e),{}),t,n+t.indent,r,i,a),mt(Array.prototype.slice.call(e.childNodes||e.children),t,n+t.indent,r,i,a),t,n)},NA={serialize:MA,test:jA},PA=`@@__IMMUTABLE_ITERABLE__@@`,FA=`@@__IMMUTABLE_LIST__@@`,IA=`@@__IMMUTABLE_KEYED__@@`,LA=`@@__IMMUTABLE_MAP__@@`,RA=`@@__IMMUTABLE_ORDERED__@@`,zA=`@@__IMMUTABLE_RECORD__@@`,BA=`@@__IMMUTABLE_SEQ__@@`,VA=`@@__IMMUTABLE_SET__@@`,HA=`@@__IMMUTABLE_STACK__@@`,UA=e=>`Immutable.${e}`,WA=e=>`[${e}]`,GA=` `,KA=`…`,qA=(e,t,n,r,i,a)=>e[LA]?wt(e,t,n,r,i,a,e[RA]?`OrderedMap`:`Map`):e[FA]?Ot(e,t,n,r,i,a,`List`):e[VA]?Ot(e,t,n,r,i,a,e[RA]?`OrderedSet`:`Set`):e[HA]?Ot(e,t,n,r,i,a,`Stack`):e[BA]?Dt(e,t,n,r,i,a):Et(e,t,n,r,i,a),JA=e=>e&&(e[PA]===!0||e[zA]===!0),YA={serialize:qA,test:JA},XA={exports:{}},ZA={},ej=jt(),tj=at({__proto__:null,default:kt(ej)},[ej]),nj={exports:{}},rj={},oj=Nt(),sj=at({__proto__:null,default:kt(oj)},[oj]),cj=Object.fromEntries([`isAsyncMode`,`isConcurrentMode`,`isContextConsumer`,`isContextProvider`,`isElement`,`isForwardRef`,`isFragment`,`isLazy`,`isMemo`,`isPortal`,`isProfiler`,`isStrictMode`,`isSuspense`,`isSuspenseList`,`isValidElementType`].map(e=>[e,t=>sj[e](t)||tj[e](t)])),lj=(e,t,n,r,i,a)=>++r>t.maxDepth?vt(Ft(e),t):_t(Ft(e),pt(It(e),e.props,t,n+t.indent,r,i,a),mt(Pt(e.props.children),t,n+t.indent,r,i,a),t,n),uj=e=>e!=null&&cj.isElement(e),dj={serialize:lj,test:uj},fj=typeof Symbol==`function`&&Symbol.for?Symbol.for(`react.test.json`):245830487,pj=(e,t,n,r,i,a)=>++r>t.maxDepth?vt(e.type,t):_t(e.type,e.props?pt(Lt(e),e.props,t,n+t.indent,r,i,a):``,e.children?mt(e.children,t,n+t.indent,r,i,a):``,t,n),mj=e=>e&&e.$$typeof===fj,hj={serialize:pj,test:mj},gj=Object.prototype.toString,_j=Date.prototype.toISOString,vj=Error.prototype.toString,yj=RegExp.prototype.toString,bj=/^Symbol\((.*)\)(.*)$/,xj=/\n/g,Sj=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}},Cj={test:e=>e&&e instanceof Error,serialize(e,t,n,r,i,a){if(i.includes(e))return`[Circular]`;i=[...i,e];let o=++r>t.maxDepth,{message:s,cause:c,...l}=e,u={message:s,...typeof c<`u`?{cause:c}:{},...e instanceof AggregateError?{errors:e.errors}:{},...l},d=e.name===`Error`?Rt(e):e.name;return o?`[${d}]`:`${d} {${st(Object.entries(u).values(),t,n,r,i,a)}}`}},wj={comment:`gray`,content:`reset`,prop:`yellow`,tag:`cyan`,value:`green`},Tj=Object.keys(wj),Ej={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,maxWidth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:wj},Dj={AsymmetricMatcher:yA,DOMCollection:TA,DOMElement:NA,Immutable:YA,ReactElement:dj,ReactTestComponent:hj,Error:Cj},Oj={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`]},kj={special:`cyan`,number:`yellow`,bigint:`yellow`,boolean:`yellow`,undefined:`grey`,null:`bold`,string:`green`,symbol:`green`,date:`magenta`,regexp:`red`},Aj=`…`,jj=e=>typeof Buffer==`function`&&e instanceof Buffer?`Buffer`:e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,Mj=Number.isNaN||(e=>e!==e),Nj=RegExp(`['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]`,`g`),Pj={"\b":`\\b`," ":`\\t`,"\n":`\\n`,"\f":`\\f`,"\r":`\\r`,"'":`\\'`,"\\":`\\\\`},Fj=16,Ij=4,Lj=()=>`Promise{…}`;try{let{getPromiseDetails:e,kPending:t,kRejected:n}=process.binding(`util`);Array.isArray(e(Promise.resolve()))&&(Lj=(r,i)=>{let[a,o]=e(r);return a===t?`Promise{<pending>}`:`Promise${a===n?`!`:``}{${i.inspect(o,i)}}`})}catch{}Rj=Lj,zj=typeof Symbol<`u`&&Symbol.toStringTag?Symbol.toStringTag:!1,Bj=[`stack`,`line`,`column`,`name`,`message`,`fileName`,`lineNumber`,`columnNumber`,`number`,`description`,`cause`],Vj=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`chai/inspect`):`@@chai/inspect`,Hj=Symbol.for(`nodejs.util.inspect.custom`),Uj=new WeakMap,Wj={},Gj={undefined:(e,t)=>t.stylize(`undefined`,`undefined`),null:(e,t)=>t.stylize(`null`,`null`),boolean:(e,t)=>t.stylize(String(e),`boolean`),Boolean:(e,t)=>t.stylize(String(e),`boolean`),number:Sn,Number:Sn,bigint:Cn,BigInt:Cn,string:On,String:On,function:vn,Function:vn,symbol:kn,Symbol:kn,Array:hn,Date:_n,Map:xn,Set:En,RegExp:wn,Promise:Rj,WeakSet:(e,t)=>t.stylize(`WeakSet{…}`,`special`),WeakMap:(e,t)=>t.stylize(`WeakMap{…}`,`special`),Arguments:Mn,Int8Array:gn,Uint8Array:gn,Uint8ClampedArray:gn,Int16Array:gn,Uint16Array:gn,Int32Array:gn,Uint32Array:gn,Float32Array:gn,Float64Array:gn,Generator:()=>``,DataView:()=>``,ArrayBuffer:()=>``,Error:Nn,HTMLCollection:Fn,NodeList:Fn},Kj=(e,t,n)=>Vj in e&&typeof e[Vj]==`function`?e[Vj](t):Hj in e&&typeof e[Hj]==`function`?e[Hj](t.depth,t):`inspect`in e&&typeof e.inspect==`function`?e.inspect(t.depth,t):`constructor`in e&&Uj.has(e.constructor)?Uj.get(e.constructor)(e,t):Wj[n]?Wj[n](e,t):``,qj=Object.prototype.toString,{AsymmetricMatcher:Jj,DOMCollection:Yj,DOMElement:Xj,Immutable:Zj,ReactElement:Qj,ReactTestComponent:$j}=Dj,eM=[$j,Qj,Xj,Yj,Zj,Jj],tM=/%[sdjifoOc%]/g,nM={forceWritable:!1},rM=-1,iM=1,aM=0,oM=class{0;1;constructor(e,t){this[0]=e,this[1]=t}},sM=/[^a-z0-9]/i,cM=/\s/,lM=/[\r\n]/,uM=/\n\r?\n$/,dM=/^\r?\n\r?\n/,fM=`Compared values have no visual difference.`,pM="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",mM={},gM=Hn(ar()),_M=e=>e,vM=5,yM=0,bM=class{op;line;lines;changeColor;constructor(e,t){this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new oM(this.op,e))}pushLine(){this.lines.push(this.line.length===1?this.line[0][0]===this.op?this.line[0]:new oM(this.op,this.line[0][1]):new oM(this.op,Or(this.op,this.line,this.changeColor))),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e)}align(e){let t=e[1];if(t.includes(`
|
||
`)){let e=t.split(`
|
||
`),n=e.length-1;e.forEach((e,t)=>{t<n?(this.pushSubstring(e),this.pushLine()):e.length!==0&&this.pushSubstring(e)})}else this.pushDiff(e)}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0}},xM=class{deleteBuffer;insertBuffer;lines;constructor(e,t){this.deleteBuffer=e,this.insertBuffer=t,this.lines=[]}pushDiffCommonLine(e){this.lines.push(e)}pushDiffChangeLines(e){let t=e[1].length===0;(!t||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(e),(!t||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(e)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(e){let t=e[0],n=e[1];if(n.includes(`
|
||
`)){let e=n.split(`
|
||
`),r=e.length-1;e.forEach((e,n)=>{if(n===0){let n=new oM(t,e);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(n)):(this.pushDiffChangeLines(n),this.flushChangeLines())}else n<r?this.pushDiffCommonLine(new oM(t,e)):e.length!==0&&this.pushDiffChangeLines(new oM(t,e))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}},{AsymmetricMatcher:SM,DOMCollection:CM,DOMElement:wM,Immutable:TM,ReactElement:EM,ReactTestComponent:DM}=Dj,OM=[DM,EM,wM,CM,TM,SM,Dj.Error],kM={maxDepth:20,plugins:OM},AM={callToJSON:!1,maxDepth:8,plugins:OM},jM=2e4,MM=`·`,NM=`@@__IMMUTABLE_RECORD__@@`,PM=`@@__IMMUTABLE_ITERABLE__@@`,FM=Object.getPrototypeOf({}),IM={CALL:`storybook/instrumenter/call`,SYNC:`storybook/instrumenter/sync`,START:`storybook/instrumenter/start`,BACK:`storybook/instrumenter/back`,GOTO:`storybook/instrumenter/goto`,NEXT:`storybook/instrumenter/next`,END:`storybook/instrumenter/end`},LM=globalThis.__STORYBOOK_ADDONS_PREVIEW,RM=Error("This function ran after the play function completed. Did you forget to `await` it?"),zM=e=>Object.prototype.toString.call(e)===`[object Object]`,BM=e=>Object.prototype.toString.call(e)===`[object Module]`,VM=e=>{if(!zM(e)&&!BM(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!zM(t)},HM=e=>{try{return new e.constructor}catch{return{}}},UM=()=>({renderPhase:`preparing`,isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),WM=(e,t=!1)=>{let n=(t?e.shadowCalls:e.calls).filter(e=>e.retain);if(!n.length)return;let r=new Map(Array.from(e.callRefsByResult.entries()).filter(([,e])=>e.retain));return{cursor:n.length,calls:n,callRefsByResult:r}},GM=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=()=>{try{this.state=q.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}},this.updateParentWindowState=()=>{try{q.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},this.loadParentWindowState();let e=({storyId:e,renderPhase:t,isPlaying:n=!0,isDebugging:r=!1})=>{let i=this.getState(e);this.setState(e,{...UM(),...WM(i,r),renderPhase:t||i.renderPhase,shadowCalls:r?i.shadowCalls:[],chainedCallIds:r?i.chainedCallIds:new Set,playUntil:r?i.playUntil:void 0,isPlaying:n,isDebugging:r}),this.sync(e)},t=e=>({storyId:t,playUntil:n})=>{this.getState(t).isDebugging||this.setState(t,({calls:e})=>({calls:[],shadowCalls:e.map(e=>({...e,status:`waiting`})),isDebugging:!0}));let r=this.getLog(t);this.setState(t,({shadowCalls:e})=>{if(n||!r.length)return{playUntil:n};let t=e.findIndex(e=>e.id===r[0].callId);return{playUntil:e.slice(0,t).filter(e=>e.interceptable&&!e.ancestors?.length).slice(-1)[0]?.id}}),e.emit(Nw,{storyId:t,isDebugging:!0})},n=e=>({storyId:n})=>{let r=this.getLog(n).filter(e=>!e.ancestors?.length),i=r.reduceRight((e,t,n)=>e>=0||t.status===`waiting`?e:n,-1);t(e)({storyId:n,playUntil:r[i-1]?.callId})},r=e=>({storyId:n,callId:r})=>{let{calls:i,shadowCalls:a,resolvers:o}=this.getState(n),s=i.find(({id:e})=>e===r),c=a.find(({id:e})=>e===r);if(!s&&c&&Object.values(o).length>0){let e=this.getLog(n).find(e=>e.status===`waiting`)?.callId;c.id!==e&&this.setState(n,{playUntil:c.id}),Object.values(o).forEach(e=>e())}else t(e)({storyId:n,playUntil:r})},i=e=>({storyId:n})=>{let{resolvers:r}=this.getState(n);if(Object.values(r).length>0)Object.values(r).forEach(e=>e());else{let r=this.getLog(n).find(e=>e.status===`waiting`)?.callId;r?t(e)({storyId:n,playUntil:r}):a({storyId:n})}},a=({storyId:e})=>{this.setState(e,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(e).resolvers).forEach(e=>e())},o=({storyId:t,newPhase:n})=>{let{isDebugging:r}=this.getState(t);if(n===`preparing`&&r||n===`playing`)return e({storyId:t,renderPhase:n,isDebugging:r});n===`played`?this.setState(t,{renderPhase:n,isLocked:!1,isPlaying:!1,isDebugging:!1}):n===`errored`?this.setState(t,{renderPhase:n,isLocked:!1,isPlaying:!1}):n===`aborted`?this.setState(t,{renderPhase:n,isLocked:!0,isPlaying:!1}):this.setState(t,{renderPhase:n}),this.sync(t)};LM&&LM.ready().then(()=>{this.channel=LM.getChannel(),this.channel.on(Nw,e),this.channel.on(sT,o),this.channel.on(Kw,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(IM.START,t(this.channel)),this.channel.on(IM.BACK,n(this.channel)),this.channel.on(IM.GOTO,r(this.channel)),this.channel.on(IM.NEXT,i(this.channel)),this.channel.on(IM.END,a)})}getState(e){return this.state[e]||UM()}setState(e,t){if(e){let n=this.getState(e),r=typeof t==`function`?t(n):t;this.state={...this.state,[e]:{...n,...r}},this.updateParentWindowState()}}cleanup(){this.state=Object.entries(this.state).reduce((e,[t,n])=>{let r=WM(n);return r&&(e[t]=Object.assign(UM(),r)),e},{});let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(IM.SYNC,e),this.updateParentWindowState()}getLog(e){let{calls:t,shadowCalls:n}=this.getState(e),r=[...n];t.forEach((e,t)=>{r[t]=e});let i=new Set;return r.reduceRight((e,t)=>(t.args.forEach(e=>{e?.__callId__&&i.add(e.__callId__)}),t.path.forEach(e=>{e.__callId__&&i.add(e.__callId__)}),(t.interceptable||t.exception)&&!i.has(t.id)&&(e.unshift({callId:t.id,status:t.status,ancestors:t.ancestors}),i.add(t.id)),e),[])}instrument(e,t,n=0){if(!VM(e))return e;let{mutate:r=!1,path:i=[]}=t,a=t.getKeys?t.getKeys(e,n):Object.keys(e);return n+=1,a.reduce((r,a)=>{let o=ri(e,a);if(typeof o?.get==`function`){if(o.configurable){let s=()=>o?.get?.bind(e)?.();Object.defineProperty(r,a,{get:()=>this.instrument(s(),{...t,path:i.concat(a)},n)})}return r}let s=e[a];return typeof s==`function`?`__originalFn__`in s&&typeof s.__originalFn__==`function`?(r[a]=s,r):(r[a]=(...n)=>this.track(a,s,e,n,t),r[a].__originalFn__=s,Object.defineProperty(r[a],`name`,{value:a,writable:!1}),Object.keys(s).length>0&&Object.assign(r[a],this.instrument({...s},{...t,path:i.concat(a)},n)),r):(r[a]=this.instrument(s,{...t,path:i.concat(a)},n),r)},r?e:HM(e))}track(e,t,n,r,i){let a=r?.[0]?.__storyId__||q.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:o,ancestors:s}=this.getState(a);this.setState(a,{cursor:o+1});let c=`${s.slice(-1)[0]||a} [${o}] ${e}`,{path:l=[],intercept:u=!1,retain:d=!1}=i,f=typeof u==`function`?u(e,l):u,p={id:c,cursor:o,storyId:a,ancestors:s,path:l,method:e,args:r,interceptable:f,retain:d},m=(f&&!s.length?this.intercept:this.invoke).call(this,t,n,p,i);return this.instrument(m,{...i,mutate:!0,path:[{__callId__:p.id}]})}intercept(e,t,n,r){let{chainedCallIds:i,isDebugging:a,playUntil:o}=this.getState(n.storyId),s=i.has(n.id);return!a||s||o?(o===n.id&&this.setState(n.storyId,{playUntil:void 0}),this.invoke(e,t,n,r)):new Promise(e=>{this.setState(n.storyId,({resolvers:t})=>({isLocked:!1,resolvers:{...t,[n.id]:e}}))}).then(()=>(this.setState(n.storyId,e=>{let{[n.id]:t,...r}=e.resolvers;return{isLocked:!0,resolvers:r}}),this.invoke(e,t,n,r)))}invoke(e,t,n,r){let{callRefsByResult:i,renderPhase:a}=this.getState(n.storyId),o=(e,t,n)=>{if(n.includes(e))return`[Circular]`;if(n=[...n,e],t>25)return`...`;if(i.has(e))return i.get(e);if(e instanceof Array)return e.map(e=>o(e,++t,n));if(e instanceof Date)return{__date__:{value:e.toISOString()}};if(e instanceof Error){let{name:t,message:n,stack:r}=e;return{__error__:{name:t,message:n,stack:r}}}if(e instanceof RegExp){let{flags:t,source:n}=e;return{__regexp__:{flags:t,source:n}}}if(e instanceof q.window?.HTMLElement){let{prefix:t,localName:n,id:r,classList:i,innerText:a}=e;return{__element__:{prefix:t,localName:n,id:r,classNames:Array.from(i),innerText:a}}}return typeof e==`function`?{__function__:{name:`getMockName`in e?e.getMockName():e.name}}:typeof e==`symbol`?{__symbol__:{description:e.description}}:typeof e==`object`&&e?.constructor?.name&&e?.constructor?.name!==`Object`?{__class__:{name:e.constructor.name}}:Object.prototype.toString.call(e)===`[object Object]`?Object.fromEntries(Object.entries(e).map(([e,r])=>[e,o(r,++t,n)])):e},s={...n,args:n.args.map(e=>o(e,0,[]))};n.path.forEach(e=>{e?.__callId__&&this.setState(n.storyId,({chainedCallIds:t})=>({chainedCallIds:new Set(Array.from(t).concat(e.__callId__))}))});let c=e=>{if(e instanceof Error){let{name:t,message:r,stack:i,callId:a=n.id}=e,{showDiff:o=void 0,diff:c=void 0,actual:l=void 0,expected:u=void 0}=e.name===`AssertionError`?ti(e):e,d={name:t,message:r,stack:i,callId:a,showDiff:o,diff:c,actual:l,expected:u};if(this.update({...s,status:`error`,exception:d}),this.setState(n.storyId,t=>({callRefsByResult:new Map([...Array.from(t.callRefsByResult.entries()),[e,{__callId__:n.id,retain:n.retain}]])})),n.ancestors?.length)throw Object.prototype.hasOwnProperty.call(e,`callId`)||Object.defineProperty(e,`callId`,{value:n.id}),e}throw e};try{if(a===`played`&&!n.retain)throw RM;let i=(r.getArgs?r.getArgs(n,this.getState(n.storyId)):n.args).map(e=>typeof e!=`function`||ii(e)||Object.keys(e).length?e:(...t)=>{let{cursor:r,ancestors:i}=this.getState(n.storyId);this.setState(n.storyId,{cursor:0,ancestors:[...i,n.id]});let a=()=>this.setState(n.storyId,{cursor:r,ancestors:i}),o=!1;try{let n=e(...t);return n instanceof Promise?(o=!0,n.finally(a)):n}finally{o||a()}}),o=e.apply(t,i);return o&&[`object`,`function`,`symbol`].includes(typeof o)&&this.setState(n.storyId,e=>({callRefsByResult:new Map([...Array.from(e.callRefsByResult.entries()),[o,{__callId__:n.id,retain:n.retain}]])})),this.update({...s,status:o instanceof Promise?`active`:`done`}),o instanceof Promise?o.then(e=>(this.update({...s,status:`done`}),e),c):o}catch(e){return c(e)}}update(e){this.channel?.emit(IM.CALL,e),this.setState(e.storyId,({calls:t})=>{let n=t.concat(e).reduce((e,t)=>Object.assign(e,{[t.id]:t}),{});return{calls:Object.values(n).sort((e,t)=>e.id.localeCompare(t.id,void 0,{numeric:!0}))}}),this.sync(e.storyId)}sync(e){let t=()=>{let{isLocked:t,isPlaying:n}=this.getState(e),r=this.getLog(e),i=r.filter(({ancestors:e})=>!e.length).find(e=>e.status===`waiting`)?.callId,a=r.some(e=>e.status===`active`);if(this.detached||t||a||r.length===0){let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:r};this.channel?.emit(IM.SYNC,e);return}let o=r.some(e=>e.status===`done`||e.status===`error`),s={controlStates:{detached:this.detached,start:o,back:o,goto:!0,next:n,end:n},logItems:r,pausedAt:i};this.channel?.emit(IM.SYNC,s)};this.setState(e,({syncTimeout:e})=>(clearTimeout(e),{syncTimeout:setTimeout(t,0)}))}},KM=Object.defineProperty,Y=(e,t)=>KM(e,`name`,{value:t,configurable:!0}),qM=(e,t)=>{for(var n in t)KM(e,n,{get:t[n],enumerable:!0})},JM={},qM(JM,{addChainableMethod:()=>ja,addLengthGuard:()=>wa,addMethod:()=>Oa,addProperty:()=>Ca,checkError:()=>YM,compareByInspect:()=>Na,eql:()=>bN,expectTypes:()=>mi,flag:()=>U,getActual:()=>hi,getMessage:()=>Yi,getName:()=>Ra,getOperator:()=>La,getOwnEnumerableProperties:()=>Fa,getOwnEnumerablePropertySymbols:()=>Pa,getPathInfo:()=>xa,hasProperty:()=>va,inspect:()=>qi,isNaN:()=>kN,isNumeric:()=>Ba,isProxyEnabled:()=>Sa,isRegExp:()=>za,objDisplay:()=>Ji,overwriteChainableMethod:()=>Ma,overwriteMethod:()=>Aa,overwriteProperty:()=>ka,proxify:()=>Ea,test:()=>fi,transferFlags:()=>Xi,type:()=>pi}),YM={},qM(YM,{compatibleConstructor:()=>ci,compatibleInstance:()=>si,compatibleMessage:()=>li,getConstructorName:()=>ui,getMessage:()=>di}),Y(ai,`isErrorInstance`),Y(oi,`isRegExp`),Y(si,`compatibleInstance`),Y(ci,`compatibleConstructor`),Y(li,`compatibleMessage`),Y(ui,`getConstructorName`),Y(di,`getMessage`),Y(U,`flag`),Y(fi,`test`),Y(pi,`type`),XM=`captureStackTrace`in Error,QM=(ZM=class extends Error{message;get name(){return`AssertionError`}get ok(){return!1}constructor(e=`Unspecified AssertionError`,t,n){super(e),this.message=e,XM&&Error.captureStackTrace(this,n||ZM);for(let e in t)e in this||(this[e]=t[e])}toJSON(e){return{...this,name:this.name,message:this.message,ok:!1,stack:e===!1?void 0:this.stack}}},Y(ZM,`AssertionError`),ZM),Y(mi,`expectTypes`),Y(hi,`getActual`),$M={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`]},eN={special:`cyan`,number:`yellow`,bigint:`yellow`,boolean:`yellow`,undefined:`grey`,null:`bold`,string:`green`,symbol:`green`,date:`magenta`,regexp:`red`},tN=`…`,Y(gi,`colorise`),Y(_i,`normaliseOptions`),Y(vi,`isHighSurrogate`),Y(yi,`truncate`),Y(bi,`inspectList`),Y(xi,`quoteComplexKey`),Y(Si,`inspectProperty`),Y(Ci,`inspectArray`),nN=Y(e=>typeof Buffer==`function`&&e instanceof Buffer?`Buffer`:e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,`getArrayName`),Y(wi,`inspectTypedArray`),Y(Ti,`inspectDate`),Y(Ei,`inspectFunction`),Y(Di,`inspectMapEntry`),Y(Oi,`mapToEntries`),Y(ki,`inspectMap`),rN=Number.isNaN||(e=>e!==e),Y(Ai,`inspectNumber`),Y(ji,`inspectBigInt`),Y(Mi,`inspectRegExp`),Y(Ni,`arrayFromSet`),Y(Pi,`inspectSet`),iN=RegExp(`['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]`,`g`),aN={"\b":`\\b`," ":`\\t`,"\n":`\\n`,"\f":`\\f`,"\r":`\\r`,"'":`\\'`,"\\":`\\\\`},oN=16,sN=4,Y(Fi,`escape`),Y(Ii,`inspectString`),Y(Li,`inspectSymbol`),cN=Y(()=>`Promise{…}`,`getPromiseValue`),Y(Ri,`inspectObject`),lN=typeof Symbol<`u`&&Symbol.toStringTag?Symbol.toStringTag:!1,Y(zi,`inspectClass`),Y(Bi,`inspectArguments`),uN=[`stack`,`line`,`column`,`name`,`message`,`fileName`,`lineNumber`,`columnNumber`,`number`,`description`,`cause`],Y(Vi,`inspectObject`),Y(Hi,`inspectAttribute`),Y(Ui,`inspectNodeCollection`),Y(Wi,`inspectNode`),Y(Gi,`inspectHTML`),dN=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`chai/inspect`):`@@chai/inspect`,fN=Symbol.for(`nodejs.util.inspect.custom`),pN=new WeakMap,mN={},hN={undefined:Y((e,t)=>t.stylize(`undefined`,`undefined`),`undefined`),null:Y((e,t)=>t.stylize(`null`,`null`),`null`),boolean:Y((e,t)=>t.stylize(String(e),`boolean`),`boolean`),Boolean:Y((e,t)=>t.stylize(String(e),`boolean`),`Boolean`),number:Ai,Number:Ai,bigint:ji,BigInt:ji,string:Ii,String:Ii,function:Ei,Function:Ei,symbol:Li,Symbol:Li,Array:Ci,Date:Ti,Map:ki,Set:Pi,RegExp:Mi,Promise:cN,WeakSet:Y((e,t)=>t.stylize(`WeakSet{…}`,`special`),`WeakSet`),WeakMap:Y((e,t)=>t.stylize(`WeakMap{…}`,`special`),`WeakMap`),Arguments:Bi,Int8Array:wi,Uint8Array:wi,Uint8ClampedArray:wi,Int16Array:wi,Uint16Array:wi,Int32Array:wi,Uint32Array:wi,Float32Array:wi,Float64Array:wi,Generator:Y(()=>``,`Generator`),DataView:Y(()=>``,`DataView`),ArrayBuffer:Y(()=>``,`ArrayBuffer`),Error:Vi,HTMLCollection:Ui,NodeList:Ui},gN=Y((e,t,n)=>dN in e&&typeof e[dN]==`function`?e[dN](t):fN in e&&typeof e[fN]==`function`?e[fN](t.depth,t):`inspect`in e&&typeof e.inspect==`function`?e.inspect(t.depth,t):`constructor`in e&&pN.has(e.constructor)?pN.get(e.constructor)(e,t):mN[n]?mN[n](e,t):``,`inspectCustom`),_N=Object.prototype.toString,Y(Ki,`inspect`),vN={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:[`then`,`catch`,`inspect`,`toJSON`],deepEqual:null},Y(qi,`inspect`),Y(Ji,`objDisplay`),Y(Yi,`getMessage`),Y(Xi,`transferFlags`),Y(Zi,`type`),Y(Qi,`FakeMap`),Qi.prototype={get:Y(function(e){return e[this._key]},`get`),set:Y(function(e,t){Object.isExtensible(e)&&Object.defineProperty(e,this._key,{value:t,configurable:!0})},`set`)},yN=typeof WeakMap==`function`?WeakMap:Qi,Y($i,`memoizeCompare`),Y(ea,`memoizeSet`),bN=ta,Y(ta,`deepEqual`),Y(na,`simpleEqual`),Y(ra,`extensiveDeepEqual`),Y(ia,`extensiveDeepEqualByType`),Y(aa,`regexpEqual`),Y(oa,`entriesEqual`),Y(sa,`iterableEqual`),Y(ca,`generatorEqual`),Y(la,`hasIteratorFunction`),Y(ua,`getIteratorEntries`),Y(da,`getGeneratorEntries`),Y(fa,`getEnumerableKeys`),Y(pa,`getEnumerableSymbols`),Y(ma,`keysEqual`),Y(ha,`objectEqual`),Y(ga,`isPrimitive`),Y(_a,`mapSymbols`),Y(va,`hasProperty`),Y(ya,`parsePath`),Y(ba,`internalGetPathValue`),Y(xa,`getPathInfo`),X=(xN=class{__flags={};constructor(e,t,n,r){return U(this,`ssfi`,n||xN),U(this,`lockSsfi`,r),U(this,`object`,e),U(this,`message`,t),U(this,`eql`,vN.deepEqual||bN),Ea(this)}static get includeStack(){return console.warn(`Assertion.includeStack is deprecated, use chai.config.includeStack instead.`),vN.includeStack}static set includeStack(e){console.warn(`Assertion.includeStack is deprecated, use chai.config.includeStack instead.`),vN.includeStack=e}static get showDiff(){return console.warn(`Assertion.showDiff is deprecated, use chai.config.showDiff instead.`),vN.showDiff}static set showDiff(e){console.warn(`Assertion.showDiff is deprecated, use chai.config.showDiff instead.`),vN.showDiff=e}static addProperty(e,t){Ca(this.prototype,e,t)}static addMethod(e,t){Oa(this.prototype,e,t)}static addChainableMethod(e,t,n){ja(this.prototype,e,t,n)}static overwriteProperty(e,t){ka(this.prototype,e,t)}static overwriteMethod(e,t){Aa(this.prototype,e,t)}static overwriteChainableMethod(e,t,n){Ma(this.prototype,e,t,n)}assert(e,t,n,r,i,a){let o=fi(this,arguments);if(a!==!1&&(a=!0),r===void 0&&i===void 0&&(a=!1),vN.showDiff!==!0&&(a=!1),!o){t=Yi(this,arguments);let e={actual:hi(this,arguments),expected:r,showDiff:a},n=La(this,arguments);throw n&&(e.operator=n),new QM(t,e,vN.includeStack?this.assert:U(this,`ssfi`))}}get _obj(){return U(this,`object`)}set _obj(e){U(this,`object`,e)}},Y(xN,`Assertion`),xN),Y(Sa,`isProxyEnabled`),Y(Ca,`addProperty`),SN=Object.getOwnPropertyDescriptor(function(){},`length`),Y(wa,`addLengthGuard`),Y(Ta,`getProperties`),CN=[`__flags`,`__methods`,`_obj`,`assert`],Y(Ea,`proxify`),Y(Da,`stringDistanceCapped`),Y(Oa,`addMethod`),Y(ka,`overwriteProperty`),Y(Aa,`overwriteMethod`),wN=typeof Object.setPrototypeOf==`function`,TN=Y(function(){},`testFn`),EN=Object.getOwnPropertyNames(TN).filter(function(e){let t=Object.getOwnPropertyDescriptor(TN,e);return typeof t==`object`?!t.configurable:!0}),DN=Function.prototype.call,ON=Function.prototype.apply,Y(ja,`addChainableMethod`),Y(Ma,`overwriteChainableMethod`),Y(Na,`compareByInspect`),Y(Pa,`getOwnEnumerablePropertySymbols`),Y(Fa,`getOwnEnumerableProperties`),kN=Number.isNaN,Y(Ia,`isObjectType`),Y(La,`getOperator`),Y(Ra,`getName`),Y(za,`isRegExp`),Y(Ba,`isNumeric`),{flag:Z}=JM,[`to`,`be`,`been`,`is`,`and`,`has`,`have`,`with`,`that`,`which`,`at`,`of`,`same`,`but`,`does`,`still`,`also`].forEach(function(e){X.addProperty(e)}),X.addProperty(`not`,function(){Z(this,`negate`,!0)}),X.addProperty(`deep`,function(){Z(this,`deep`,!0)}),X.addProperty(`nested`,function(){Z(this,`nested`,!0)}),X.addProperty(`own`,function(){Z(this,`own`,!0)}),X.addProperty(`ordered`,function(){Z(this,`ordered`,!0)}),X.addProperty(`any`,function(){Z(this,`any`,!0),Z(this,`all`,!1)}),X.addProperty(`all`,function(){Z(this,`all`,!0),Z(this,`any`,!1)}),AN={function:[`function`,`asyncfunction`,`generatorfunction`,`asyncgeneratorfunction`],asyncfunction:[`asyncfunction`,`asyncgeneratorfunction`],generatorfunction:[`generatorfunction`,`asyncgeneratorfunction`],asyncgeneratorfunction:[`asyncgeneratorfunction`]},Y(Va,`an`),X.addChainableMethod(`an`,Va),X.addChainableMethod(`a`,Va),Y(Ha,`SameValueZero`),Y(Ua,`includeChainingBehavior`),Y(Wa,`include`),X.addChainableMethod(`include`,Wa,Ua),X.addChainableMethod(`contain`,Wa,Ua),X.addChainableMethod(`contains`,Wa,Ua),X.addChainableMethod(`includes`,Wa,Ua),X.addProperty(`ok`,function(){this.assert(Z(this,`object`),`expected #{this} to be truthy`,`expected #{this} to be falsy`)}),X.addProperty(`true`,function(){this.assert(Z(this,`object`)===!0,`expected #{this} to be true`,`expected #{this} to be false`,!Z(this,`negate`))}),X.addProperty(`numeric`,function(){let e=Z(this,`object`);this.assert([`Number`,`BigInt`].includes(pi(e)),`expected #{this} to be numeric`,`expected #{this} to not be numeric`,!Z(this,`negate`))}),X.addProperty(`callable`,function(){let e=Z(this,`object`),t=Z(this,`ssfi`),n=Z(this,`message`),r=n?`${n}: `:``,i=Z(this,`negate`),a=i?`${r}expected ${qi(e)} not to be a callable function`:`${r}expected ${qi(e)} to be a callable function`,o=[`Function`,`AsyncFunction`,`GeneratorFunction`,`AsyncGeneratorFunction`].includes(pi(e));if(o&&i||!o&&!i)throw new QM(a,void 0,t)}),X.addProperty(`false`,function(){this.assert(Z(this,`object`)===!1,`expected #{this} to be false`,`expected #{this} to be true`,!!Z(this,`negate`))}),X.addProperty(`null`,function(){this.assert(Z(this,`object`)===null,`expected #{this} to be null`,`expected #{this} not to be null`)}),X.addProperty(`undefined`,function(){this.assert(Z(this,`object`)===void 0,`expected #{this} to be undefined`,`expected #{this} not to be undefined`)}),X.addProperty(`NaN`,function(){this.assert(kN(Z(this,`object`)),`expected #{this} to be NaN`,`expected #{this} not to be NaN`)}),Y(Ga,`assertExist`),X.addProperty(`exist`,Ga),X.addProperty(`exists`,Ga),X.addProperty(`empty`,function(){let e=Z(this,`object`),t=Z(this,`ssfi`),n=Z(this,`message`),r;switch(n=n?n+`: `:``,pi(e).toLowerCase()){case`array`:case`string`:r=e.length;break;case`map`:case`set`:r=e.size;break;case`weakmap`:case`weakset`:throw new QM(n+`.empty was passed a weak collection`,void 0,t);case`function`:throw new QM((n+`.empty was passed a function `+Ra(e)).trim(),void 0,t);default:if(e!==Object(e))throw new QM(n+`.empty was passed non-string primitive `+qi(e),void 0,t);r=Object.keys(e).length}this.assert(r===0,`expected #{this} to be empty`,`expected #{this} not to be empty`)}),Y(Ka,`checkArguments`),X.addProperty(`arguments`,Ka),X.addProperty(`Arguments`,Ka),Y(qa,`assertEqual`),X.addMethod(`equal`,qa),X.addMethod(`equals`,qa),X.addMethod(`eq`,qa),Y(Ja,`assertEql`),X.addMethod(`eql`,Ja),X.addMethod(`eqls`,Ja),Y(Ya,`assertAbove`),X.addMethod(`above`,Ya),X.addMethod(`gt`,Ya),X.addMethod(`greaterThan`,Ya),Y(Xa,`assertLeast`),X.addMethod(`least`,Xa),X.addMethod(`gte`,Xa),X.addMethod(`greaterThanOrEqual`,Xa),Y(Za,`assertBelow`),X.addMethod(`below`,Za),X.addMethod(`lt`,Za),X.addMethod(`lessThan`,Za),Y(Qa,`assertMost`),X.addMethod(`most`,Qa),X.addMethod(`lte`,Qa),X.addMethod(`lessThanOrEqual`,Qa),X.addMethod(`within`,function(e,t,n){n&&Z(this,`message`,n);let r=Z(this,`object`),i=Z(this,`doLength`),a=Z(this,`message`),o=a?a+`: `:``,s=Z(this,`ssfi`),c=pi(r).toLowerCase(),l=pi(e).toLowerCase(),u=pi(t).toLowerCase(),d,f=!0,p=l===`date`&&u===`date`?e.toISOString()+`..`+t.toISOString():e+`..`+t;if(i&&c!==`map`&&c!==`set`&&new X(r,a,s,!0).to.have.property(`length`),!i&&c===`date`&&(l!==`date`||u!==`date`))d=o+`the arguments to within must be dates`;else if((!Ba(e)||!Ba(t))&&(i||Ba(r)))d=o+`the arguments to within must be numbers`;else if(!i&&c!==`date`&&!Ba(r)){let e=c===`string`?`'`+r+`'`:r;d=o+`expected `+e+` to be a number or a date`}else f=!1;if(f)throw new QM(d,void 0,s);if(i){let n=`length`,i;c===`map`||c===`set`?(n=`size`,i=r.size):i=r.length,this.assert(i>=e&&i<=t,`expected #{this} to have a `+n+` within `+p,`expected #{this} to not have a `+n+` within `+p)}else this.assert(r>=e&&r<=t,`expected #{this} to be within `+p,`expected #{this} to not be within `+p)}),Y($a,`assertInstanceOf`),X.addMethod(`instanceof`,$a),X.addMethod(`instanceOf`,$a),Y(eo,`assertProperty`),X.addMethod(`property`,eo),Y(to,`assertOwnProperty`),X.addMethod(`ownProperty`,to),X.addMethod(`haveOwnProperty`,to),Y(no,`assertOwnPropertyDescriptor`),X.addMethod(`ownPropertyDescriptor`,no),X.addMethod(`haveOwnPropertyDescriptor`,no),Y(ro,`assertLengthChain`),Y(io,`assertLength`),X.addChainableMethod(`length`,io,ro),X.addChainableMethod(`lengthOf`,io,ro),Y(ao,`assertMatch`),X.addMethod(`match`,ao),X.addMethod(`matches`,ao),X.addMethod(`string`,function(e,t){t&&Z(this,`message`,t);let n=Z(this,`object`);new X(n,Z(this,`message`),Z(this,`ssfi`),!0).is.a(`string`),this.assert(~n.indexOf(e),`expected #{this} to contain `+qi(e),`expected #{this} to not contain `+qi(e))}),Y(oo,`assertKeys`),X.addMethod(`keys`,oo),X.addMethod(`key`,oo),Y(so,`assertThrows`),X.addMethod(`throw`,so),X.addMethod(`throws`,so),X.addMethod(`Throw`,so),Y(co,`respondTo`),X.addMethod(`respondTo`,co),X.addMethod(`respondsTo`,co),X.addProperty(`itself`,function(){Z(this,`itself`,!0)}),Y(lo,`satisfy`),X.addMethod(`satisfy`,lo),X.addMethod(`satisfies`,lo),Y(uo,`closeTo`),X.addMethod(`closeTo`,uo),X.addMethod(`approximately`,uo),Y(fo,`isSubsetOf`),X.addMethod(`members`,function(e,t){t&&Z(this,`message`,t);let n=Z(this,`object`),r=Z(this,`message`),i=Z(this,`ssfi`);new X(n,r,i,!0).to.be.iterable,new X(e,r,i,!0).to.be.iterable;let a=Z(this,`contains`),o=Z(this,`ordered`),s,c,l;a?(s=o?`an ordered superset`:`a superset`,c=`expected #{this} to be `+s+` of #{exp}`,l=`expected #{this} to not be `+s+` of #{exp}`):(s=o?`ordered members`:`members`,c=`expected #{this} to have the same `+s+` as #{exp}`,l=`expected #{this} to not have the same `+s+` as #{exp}`);let u=Z(this,`deep`)?Z(this,`eql`):void 0;this.assert(fo(e,n,u,a,o),c,l,e,n,!0)}),X.addProperty(`iterable`,function(e){e&&Z(this,`message`,e);let t=Z(this,`object`);this.assert(t!=null&&t[Symbol.iterator],`expected #{this} to be an iterable`,`expected #{this} to not be an iterable`,t)}),Y(po,`oneOf`),X.addMethod(`oneOf`,po),Y(mo,`assertChanges`),X.addMethod(`change`,mo),X.addMethod(`changes`,mo),Y(ho,`assertIncreases`),X.addMethod(`increase`,ho),X.addMethod(`increases`,ho),Y(go,`assertDecreases`),X.addMethod(`decrease`,go),X.addMethod(`decreases`,go),Y(_o,`assertDelta`),X.addMethod(`by`,_o),X.addProperty(`extensible`,function(){let e=Z(this,`object`),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,`expected #{this} to be extensible`,`expected #{this} to not be extensible`)}),X.addProperty(`sealed`,function(){let e=Z(this,`object`),t=e===Object(e)?Object.isSealed(e):!0;this.assert(t,`expected #{this} to be sealed`,`expected #{this} to not be sealed`)}),X.addProperty(`frozen`,function(){let e=Z(this,`object`),t=e===Object(e)?Object.isFrozen(e):!0;this.assert(t,`expected #{this} to be frozen`,`expected #{this} to not be frozen`)}),X.addProperty(`finite`,function(e){let t=Z(this,`object`);this.assert(typeof t==`number`&&isFinite(t),`expected #{this} to be a finite number`,`expected #{this} to not be a finite number`)}),Y(vo,`compareSubset`),X.addMethod(`containSubset`,function(e){let t=U(this,`object`),n=vN.showDiff;this.assert(vo(e,t),`expected #{act} to contain subset #{exp}`,`expected #{act} to not contain subset #{exp}`,e,t,n)}),Y(yo,`expect`),yo.fail=function(e,t,n,r){throw arguments.length<2&&(n=e,e=void 0),n||=`expect.fail()`,new QM(n,{actual:e,expected:t,operator:r},yo.fail)},jN={},qM(jN,{Should:()=>NN,should:()=>MN}),Y(bo,`loadShould`),MN=bo,NN=bo,Y(W,`assert`),W.fail=function(e,t,n,r){throw arguments.length<2&&(n=e,e=void 0),n||=`assert.fail()`,new QM(n,{actual:e,expected:t,operator:r},W.fail)},W.isOk=function(e,t){new X(e,t,W.isOk,!0).is.ok},W.isNotOk=function(e,t){new X(e,t,W.isNotOk,!0).is.not.ok},W.equal=function(e,t,n){let r=new X(e,n,W.equal,!0);r.assert(t==U(r,`object`),`expected #{this} to equal #{exp}`,`expected #{this} to not equal #{act}`,t,e,!0)},W.notEqual=function(e,t,n){let r=new X(e,n,W.notEqual,!0);r.assert(t!=U(r,`object`),`expected #{this} to not equal #{exp}`,`expected #{this} to equal #{act}`,t,e,!0)},W.strictEqual=function(e,t,n){new X(e,n,W.strictEqual,!0).to.equal(t)},W.notStrictEqual=function(e,t,n){new X(e,n,W.notStrictEqual,!0).to.not.equal(t)},W.deepEqual=W.deepStrictEqual=function(e,t,n){new X(e,n,W.deepEqual,!0).to.eql(t)},W.notDeepEqual=function(e,t,n){new X(e,n,W.notDeepEqual,!0).to.not.eql(t)},W.isAbove=function(e,t,n){new X(e,n,W.isAbove,!0).to.be.above(t)},W.isAtLeast=function(e,t,n){new X(e,n,W.isAtLeast,!0).to.be.least(t)},W.isBelow=function(e,t,n){new X(e,n,W.isBelow,!0).to.be.below(t)},W.isAtMost=function(e,t,n){new X(e,n,W.isAtMost,!0).to.be.most(t)},W.isTrue=function(e,t){new X(e,t,W.isTrue,!0).is.true},W.isNotTrue=function(e,t){new X(e,t,W.isNotTrue,!0).to.not.equal(!0)},W.isFalse=function(e,t){new X(e,t,W.isFalse,!0).is.false},W.isNotFalse=function(e,t){new X(e,t,W.isNotFalse,!0).to.not.equal(!1)},W.isNull=function(e,t){new X(e,t,W.isNull,!0).to.equal(null)},W.isNotNull=function(e,t){new X(e,t,W.isNotNull,!0).to.not.equal(null)},W.isNaN=function(e,t){new X(e,t,W.isNaN,!0).to.be.NaN},W.isNotNaN=function(e,t){new X(e,t,W.isNotNaN,!0).not.to.be.NaN},W.exists=function(e,t){new X(e,t,W.exists,!0).to.exist},W.notExists=function(e,t){new X(e,t,W.notExists,!0).to.not.exist},W.isUndefined=function(e,t){new X(e,t,W.isUndefined,!0).to.equal(void 0)},W.isDefined=function(e,t){new X(e,t,W.isDefined,!0).to.not.equal(void 0)},W.isCallable=function(e,t){new X(e,t,W.isCallable,!0).is.callable},W.isNotCallable=function(e,t){new X(e,t,W.isNotCallable,!0).is.not.callable},W.isObject=function(e,t){new X(e,t,W.isObject,!0).to.be.a(`object`)},W.isNotObject=function(e,t){new X(e,t,W.isNotObject,!0).to.not.be.a(`object`)},W.isArray=function(e,t){new X(e,t,W.isArray,!0).to.be.an(`array`)},W.isNotArray=function(e,t){new X(e,t,W.isNotArray,!0).to.not.be.an(`array`)},W.isString=function(e,t){new X(e,t,W.isString,!0).to.be.a(`string`)},W.isNotString=function(e,t){new X(e,t,W.isNotString,!0).to.not.be.a(`string`)},W.isNumber=function(e,t){new X(e,t,W.isNumber,!0).to.be.a(`number`)},W.isNotNumber=function(e,t){new X(e,t,W.isNotNumber,!0).to.not.be.a(`number`)},W.isNumeric=function(e,t){new X(e,t,W.isNumeric,!0).is.numeric},W.isNotNumeric=function(e,t){new X(e,t,W.isNotNumeric,!0).is.not.numeric},W.isFinite=function(e,t){new X(e,t,W.isFinite,!0).to.be.finite},W.isBoolean=function(e,t){new X(e,t,W.isBoolean,!0).to.be.a(`boolean`)},W.isNotBoolean=function(e,t){new X(e,t,W.isNotBoolean,!0).to.not.be.a(`boolean`)},W.typeOf=function(e,t,n){new X(e,n,W.typeOf,!0).to.be.a(t)},W.notTypeOf=function(e,t,n){new X(e,n,W.notTypeOf,!0).to.not.be.a(t)},W.instanceOf=function(e,t,n){new X(e,n,W.instanceOf,!0).to.be.instanceOf(t)},W.notInstanceOf=function(e,t,n){new X(e,n,W.notInstanceOf,!0).to.not.be.instanceOf(t)},W.include=function(e,t,n){new X(e,n,W.include,!0).include(t)},W.notInclude=function(e,t,n){new X(e,n,W.notInclude,!0).not.include(t)},W.deepInclude=function(e,t,n){new X(e,n,W.deepInclude,!0).deep.include(t)},W.notDeepInclude=function(e,t,n){new X(e,n,W.notDeepInclude,!0).not.deep.include(t)},W.nestedInclude=function(e,t,n){new X(e,n,W.nestedInclude,!0).nested.include(t)},W.notNestedInclude=function(e,t,n){new X(e,n,W.notNestedInclude,!0).not.nested.include(t)},W.deepNestedInclude=function(e,t,n){new X(e,n,W.deepNestedInclude,!0).deep.nested.include(t)},W.notDeepNestedInclude=function(e,t,n){new X(e,n,W.notDeepNestedInclude,!0).not.deep.nested.include(t)},W.ownInclude=function(e,t,n){new X(e,n,W.ownInclude,!0).own.include(t)},W.notOwnInclude=function(e,t,n){new X(e,n,W.notOwnInclude,!0).not.own.include(t)},W.deepOwnInclude=function(e,t,n){new X(e,n,W.deepOwnInclude,!0).deep.own.include(t)},W.notDeepOwnInclude=function(e,t,n){new X(e,n,W.notDeepOwnInclude,!0).not.deep.own.include(t)},W.match=function(e,t,n){new X(e,n,W.match,!0).to.match(t)},W.notMatch=function(e,t,n){new X(e,n,W.notMatch,!0).to.not.match(t)},W.property=function(e,t,n){new X(e,n,W.property,!0).to.have.property(t)},W.notProperty=function(e,t,n){new X(e,n,W.notProperty,!0).to.not.have.property(t)},W.propertyVal=function(e,t,n,r){new X(e,r,W.propertyVal,!0).to.have.property(t,n)},W.notPropertyVal=function(e,t,n,r){new X(e,r,W.notPropertyVal,!0).to.not.have.property(t,n)},W.deepPropertyVal=function(e,t,n,r){new X(e,r,W.deepPropertyVal,!0).to.have.deep.property(t,n)},W.notDeepPropertyVal=function(e,t,n,r){new X(e,r,W.notDeepPropertyVal,!0).to.not.have.deep.property(t,n)},W.ownProperty=function(e,t,n){new X(e,n,W.ownProperty,!0).to.have.own.property(t)},W.notOwnProperty=function(e,t,n){new X(e,n,W.notOwnProperty,!0).to.not.have.own.property(t)},W.ownPropertyVal=function(e,t,n,r){new X(e,r,W.ownPropertyVal,!0).to.have.own.property(t,n)},W.notOwnPropertyVal=function(e,t,n,r){new X(e,r,W.notOwnPropertyVal,!0).to.not.have.own.property(t,n)},W.deepOwnPropertyVal=function(e,t,n,r){new X(e,r,W.deepOwnPropertyVal,!0).to.have.deep.own.property(t,n)},W.notDeepOwnPropertyVal=function(e,t,n,r){new X(e,r,W.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,n)},W.nestedProperty=function(e,t,n){new X(e,n,W.nestedProperty,!0).to.have.nested.property(t)},W.notNestedProperty=function(e,t,n){new X(e,n,W.notNestedProperty,!0).to.not.have.nested.property(t)},W.nestedPropertyVal=function(e,t,n,r){new X(e,r,W.nestedPropertyVal,!0).to.have.nested.property(t,n)},W.notNestedPropertyVal=function(e,t,n,r){new X(e,r,W.notNestedPropertyVal,!0).to.not.have.nested.property(t,n)},W.deepNestedPropertyVal=function(e,t,n,r){new X(e,r,W.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,n)},W.notDeepNestedPropertyVal=function(e,t,n,r){new X(e,r,W.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,n)},W.lengthOf=function(e,t,n){new X(e,n,W.lengthOf,!0).to.have.lengthOf(t)},W.hasAnyKeys=function(e,t,n){new X(e,n,W.hasAnyKeys,!0).to.have.any.keys(t)},W.hasAllKeys=function(e,t,n){new X(e,n,W.hasAllKeys,!0).to.have.all.keys(t)},W.containsAllKeys=function(e,t,n){new X(e,n,W.containsAllKeys,!0).to.contain.all.keys(t)},W.doesNotHaveAnyKeys=function(e,t,n){new X(e,n,W.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)},W.doesNotHaveAllKeys=function(e,t,n){new X(e,n,W.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)},W.hasAnyDeepKeys=function(e,t,n){new X(e,n,W.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)},W.hasAllDeepKeys=function(e,t,n){new X(e,n,W.hasAllDeepKeys,!0).to.have.all.deep.keys(t)},W.containsAllDeepKeys=function(e,t,n){new X(e,n,W.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)},W.doesNotHaveAnyDeepKeys=function(e,t,n){new X(e,n,W.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)},W.doesNotHaveAllDeepKeys=function(e,t,n){new X(e,n,W.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)},W.throws=function(e,t,n,r){return(typeof t==`string`||t instanceof RegExp)&&(n=t,t=null),U(new X(e,r,W.throws,!0).to.throw(t,n),`object`)},W.doesNotThrow=function(e,t,n,r){(typeof t==`string`||t instanceof RegExp)&&(n=t,t=null),new X(e,r,W.doesNotThrow,!0).to.not.throw(t,n)},W.operator=function(e,t,n,r){let i;switch(t){case`==`:i=e==n;break;case`===`:i=e===n;break;case`>`:i=e>n;break;case`>=`:i=e>=n;break;case`<`:i=e<n;break;case`<=`:i=e<=n;break;case`!=`:i=e!=n;break;case`!==`:i=e!==n;break;default:throw r&&=r+`: `,new QM(r+`Invalid operator "`+t+`"`,void 0,W.operator)}let a=new X(i,r,W.operator,!0);a.assert(U(a,`object`)===!0,`expected `+qi(e)+` to be `+t+` `+qi(n),`expected `+qi(e)+` to not be `+t+` `+qi(n))},W.closeTo=function(e,t,n,r){new X(e,r,W.closeTo,!0).to.be.closeTo(t,n)},W.approximately=function(e,t,n,r){new X(e,r,W.approximately,!0).to.be.approximately(t,n)},W.sameMembers=function(e,t,n){new X(e,n,W.sameMembers,!0).to.have.same.members(t)},W.notSameMembers=function(e,t,n){new X(e,n,W.notSameMembers,!0).to.not.have.same.members(t)},W.sameDeepMembers=function(e,t,n){new X(e,n,W.sameDeepMembers,!0).to.have.same.deep.members(t)},W.notSameDeepMembers=function(e,t,n){new X(e,n,W.notSameDeepMembers,!0).to.not.have.same.deep.members(t)},W.sameOrderedMembers=function(e,t,n){new X(e,n,W.sameOrderedMembers,!0).to.have.same.ordered.members(t)},W.notSameOrderedMembers=function(e,t,n){new X(e,n,W.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)},W.sameDeepOrderedMembers=function(e,t,n){new X(e,n,W.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)},W.notSameDeepOrderedMembers=function(e,t,n){new X(e,n,W.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)},W.includeMembers=function(e,t,n){new X(e,n,W.includeMembers,!0).to.include.members(t)},W.notIncludeMembers=function(e,t,n){new X(e,n,W.notIncludeMembers,!0).to.not.include.members(t)},W.includeDeepMembers=function(e,t,n){new X(e,n,W.includeDeepMembers,!0).to.include.deep.members(t)},W.notIncludeDeepMembers=function(e,t,n){new X(e,n,W.notIncludeDeepMembers,!0).to.not.include.deep.members(t)},W.includeOrderedMembers=function(e,t,n){new X(e,n,W.includeOrderedMembers,!0).to.include.ordered.members(t)},W.notIncludeOrderedMembers=function(e,t,n){new X(e,n,W.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)},W.includeDeepOrderedMembers=function(e,t,n){new X(e,n,W.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)},W.notIncludeDeepOrderedMembers=function(e,t,n){new X(e,n,W.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)},W.oneOf=function(e,t,n){new X(e,n,W.oneOf,!0).to.be.oneOf(t)},W.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${qi(e)} to be an iterable`:`expected ${qi(e)} to be an iterable`,new QM(t,void 0,W.isIterable)},W.changes=function(e,t,n,r){arguments.length===3&&typeof t==`function`&&(r=n,n=null),new X(e,r,W.changes,!0).to.change(t,n)},W.changesBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new X(e,i,W.changesBy,!0).to.change(t,n).by(r)},W.doesNotChange=function(e,t,n,r){return arguments.length===3&&typeof t==`function`&&(r=n,n=null),new X(e,r,W.doesNotChange,!0).to.not.change(t,n)},W.changesButNotBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new X(e,i,W.changesButNotBy,!0).to.change(t,n).but.not.by(r)},W.increases=function(e,t,n,r){return arguments.length===3&&typeof t==`function`&&(r=n,n=null),new X(e,r,W.increases,!0).to.increase(t,n)},W.increasesBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new X(e,i,W.increasesBy,!0).to.increase(t,n).by(r)},W.doesNotIncrease=function(e,t,n,r){return arguments.length===3&&typeof t==`function`&&(r=n,n=null),new X(e,r,W.doesNotIncrease,!0).to.not.increase(t,n)},W.increasesButNotBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new X(e,i,W.increasesButNotBy,!0).to.increase(t,n).but.not.by(r)},W.decreases=function(e,t,n,r){return arguments.length===3&&typeof t==`function`&&(r=n,n=null),new X(e,r,W.decreases,!0).to.decrease(t,n)},W.decreasesBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new X(e,i,W.decreasesBy,!0).to.decrease(t,n).by(r)},W.doesNotDecrease=function(e,t,n,r){return arguments.length===3&&typeof t==`function`&&(r=n,n=null),new X(e,r,W.doesNotDecrease,!0).to.not.decrease(t,n)},W.doesNotDecreaseBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);return new X(e,i,W.doesNotDecreaseBy,!0).to.not.decrease(t,n).by(r)},W.decreasesButNotBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new X(e,i,W.decreasesButNotBy,!0).to.decrease(t,n).but.not.by(r)},W.ifError=function(e){if(e)throw e},W.isExtensible=function(e,t){new X(e,t,W.isExtensible,!0).to.be.extensible},W.isNotExtensible=function(e,t){new X(e,t,W.isNotExtensible,!0).to.not.be.extensible},W.isSealed=function(e,t){new X(e,t,W.isSealed,!0).to.be.sealed},W.isNotSealed=function(e,t){new X(e,t,W.isNotSealed,!0).to.not.be.sealed},W.isFrozen=function(e,t){new X(e,t,W.isFrozen,!0).to.be.frozen},W.isNotFrozen=function(e,t){new X(e,t,W.isNotFrozen,!0).to.not.be.frozen},W.isEmpty=function(e,t){new X(e,t,W.isEmpty,!0).to.be.empty},W.isNotEmpty=function(e,t){new X(e,t,W.isNotEmpty,!0).to.not.be.empty},W.containsSubset=function(e,t,n){new X(e,n).to.containSubset(t)},W.doesNotContainSubset=function(e,t,n){new X(e,n).to.not.containSubset(t)};for(let[e,t]of[[`isOk`,`ok`],[`isNotOk`,`notOk`],[`throws`,`throw`],[`throws`,`Throw`],[`isExtensible`,`extensible`],[`isNotExtensible`,`notExtensible`],[`isSealed`,`sealed`],[`isNotSealed`,`notSealed`],[`isFrozen`,`frozen`],[`isNotFrozen`,`notFrozen`],[`isEmpty`,`empty`],[`isNotEmpty`,`notEmpty`],[`isCallable`,`isFunction`],[`isNotCallable`,`isNotFunction`],[`containsSubset`,`containSubset`]])W[t]=W[e];if(PN=[],Y(xo,`use`),FN={},Xv(FN,{toBeChecked:()=>el,toBeDisabled:()=>zc,toBeEmpty:()=>Xs,toBeEmptyDOMElement:()=>Zs,toBeEnabled:()=>Bc,toBeInTheDOM:()=>Js,toBeInTheDocument:()=>Ys,toBeInvalid:()=>Jc,toBePartiallyChecked:()=>il,toBeRequired:()=>Wc,toBeValid:()=>Yc,toBeVisible:()=>jc,toContainElement:()=>$s,toContainHTML:()=>tc,toHaveAccessibleDescription:()=>rc,toHaveAccessibleErrorMessage:()=>ic,toHaveAccessibleName:()=>lc,toHaveAttribute:()=>fc,toHaveClass:()=>gc,toHaveDescription:()=>al,toHaveDisplayValue:()=>Zc,toHaveErrorMessage:()=>ol,toHaveFocus:()=>Sc,toHaveFormValues:()=>Dc,toHaveRole:()=>ac,toHaveSelection:()=>cl,toHaveStyle:()=>xc,toHaveTextContent:()=>nc,toHaveValue:()=>Xc}),IN=Qv(ry(),1),LN={},So(LN),Co(LN,`default`,()=>RN),RN=class extends Error{constructor(e,t,n,r,i){super(e+`:`+n+`:`+r+`: `+t),this.reason=t,this.filename=e,this.line=n,this.column=r,this.source=i}},zN={},So(zN),Co(zN,`default`,()=>BN),BN=class{constructor(e,t,n){this.start=e,this.end=t,this.source=n}},Co({},`CssTypes`,()=>VN),(function(e){e.stylesheet=`stylesheet`,e.rule=`rule`,e.declaration=`declaration`,e.comment=`comment`,e.container=`container`,e.charset=`charset`,e.document=`document`,e.customMedia=`custom-media`,e.fontFace=`font-face`,e.host=`host`,e.import=`import`,e.keyframes=`keyframes`,e.keyframe=`keyframe`,e.layer=`layer`,e.media=`media`,e.namespace=`namespace`,e.page=`page`,e.startingStyle=`starting-style`,e.supports=`supports`})(VN||={}),HN=/\/\*[^]*?(?:\*\/|$)/g,UN=(e,t)=>{t||={};let n=1,r=1;function i(e){let t=e.match(/\n/g);t&&(n+=t.length);let i=e.lastIndexOf(`
|
||
`);r=~i?e.length-i:r+e.length}function a(){let e={line:n,column:r};return function(i){return i.position=new BN(e,{line:n,column:r},t?.source||``),p(),i}}let o=[];function s(i){let a=new RN(t?.source||``,i,n,r,e);if(t?.silent)o.push(a);else throw a}function c(){let e=d();return{type:VN.stylesheet,stylesheet:{source:t?.source,rules:e,parsingErrors:o}}}function l(){return f(/^{\s*/)}function u(){return f(/^}/)}function d(){let t,n=[];for(p(),m(n);e.length&&e.charAt(0)!==`}`&&(t=ne()||re());)t&&(n.push(t),m(n));return n}function f(t){let n=t.exec(e);if(!n)return;let r=n[0];return i(r),e=e.slice(r.length),n}function p(){f(/^\s*/)}function m(e){let t;for(e||=[];t=h();)t&&e.push(t);return e}function h(){let t=a();if(e.charAt(0)!==`/`||e.charAt(1)!==`*`)return;let n=f(/^\/\*[^]*?\*\//);return n?t({type:VN.comment,comment:n[0].slice(2,-2)}):s(`End of comment missing`)}function g(e,t,n){let r=t+1,i=!1,a=e.indexOf(`)`,r);for(;!i&&a!==-1;){let t=e.indexOf(`(`,r);t!==-1&&t<a?(r=g(e,t+1,n+1)+1,a=e.indexOf(`)`,r)):i=!0}return i&&a!==-1?a:-1}function _(){let e=f(/^([^{]+)/);if(!e)return;let t=wo(e[0]).replace(HN,``);if(t.indexOf(`,`)===-1)return[t];let n=0,r=t.indexOf(`(`,n);for(;r!==-1;){let e=g(t,r,0);if(e===-1)break;n=e+1,t=t.substring(0,r)+t.substring(r,e).replace(/,/g,``)+t.substring(e),r=t.indexOf(`(`,n)}return t=t.replace(/("|')(?:\\\1|.)*?\1/g,e=>e.replace(/,/g,``)),t.split(`,`).map(e=>wo(e.replace(/\u200C/g,`,`)))}function v(){let e=a(),t=f(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!t)return;let n=wo(t[0]);if(!f(/^:\s*/))return s(`property missing ':'`);let r=f(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),i=e({type:VN.declaration,property:n.replace(HN,``),value:r?wo(r[0]).replace(HN,``):``});return f(/^[;\s]*/),i}function y(){let e=[];if(!l())return s(`missing '{'`);m(e);let t;for(;t=v();)t&&(e.push(t),m(e));return u()?e:s(`missing '}'`)}function b(){let e,t=[],n=a();for(;e=f(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),f(/^,\s*/);if(t.length)return n({type:VN.keyframe,values:t,declarations:y()||[]})}function x(){let e=a(),t=f(/^@([-\w]+)?keyframes\s*/);if(!t)return;let n=t[1],r=f(/^([-\w]+)\s*/);if(!r)return s(`@keyframes missing name`);let i=r[1];if(!l())return s(`@keyframes missing '{'`);let o,c=m();for(;o=b();)c.push(o),c=c.concat(m());return u()?e({type:VN.keyframes,name:i,vendor:n,keyframes:c}):s(`@keyframes missing '}'`)}function S(){let e=a(),t=f(/^@supports *([^{]+)/);if(!t)return;let n=wo(t[1]);if(!l())return s(`@supports missing '{'`);let r=m().concat(d());return u()?e({type:VN.supports,supports:n,rules:r}):s(`@supports missing '}'`)}function C(){let e=a();if(!f(/^@host\s*/))return;if(!l())return s(`@host missing '{'`);let t=m().concat(d());return u()?e({type:VN.host,rules:t}):s(`@host missing '}'`)}function w(){let e=a(),t=f(/^@container *([^{]+)/);if(!t)return;let n=wo(t[1]);if(!l())return s(`@container missing '{'`);let r=m().concat(d());return u()?e({type:VN.container,container:n,rules:r}):s(`@container missing '}'`)}function T(){let e=a(),t=f(/^@layer *([^{;@]+)/);if(!t)return;let n=wo(t[1]);if(!l())return f(/^[;\s]*/),e({type:VN.layer,layer:n});let r=m().concat(d());return u()?e({type:VN.layer,layer:n,rules:r}):s(`@layer missing '}'`)}function E(){let e=a(),t=f(/^@media *([^{]+)/);if(!t)return;let n=wo(t[1]);if(!l())return s(`@media missing '{'`);let r=m().concat(d());return u()?e({type:VN.media,media:n,rules:r}):s(`@media missing '}'`)}function D(){let e=a(),t=f(/^@custom-media\s+(--\S+)\s*([^{;\s][^{;]*);/);if(t)return e({type:VN.customMedia,name:wo(t[1]),media:wo(t[2])})}function O(){let e=a();if(!f(/^@page */))return;let t=_()||[];if(!l())return s(`@page missing '{'`);let n=m(),r;for(;r=v();)n.push(r),n=n.concat(m());return u()?e({type:VN.page,selectors:t,declarations:n}):s(`@page missing '}'`)}function k(){let e=a(),t=f(/^@([-\w]+)?document *([^{]+)/);if(!t)return;let n=wo(t[1]),r=wo(t[2]);if(!l())return s(`@document missing '{'`);let i=m().concat(d());return u()?e({type:VN.document,document:r,vendor:n,rules:i}):s(`@document missing '}'`)}function A(){let e=a();if(!f(/^@font-face\s*/))return;if(!l())return s(`@font-face missing '{'`);let t=m(),n;for(;n=v();)t.push(n),t=t.concat(m());return u()?e({type:VN.fontFace,declarations:t}):s(`@font-face missing '}'`)}function j(){let e=a();if(!f(/^@starting-style\s*/))return;if(!l())return s(`@starting-style missing '{'`);let t=m().concat(d());return u()?e({type:VN.startingStyle,rules:t}):s(`@starting-style missing '}'`)}let M=te(`import`),ee=te(`charset`),N=te(`namespace`);function te(e){let t=RegExp(`^@`+e+`\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);return function(){let n=a(),r=f(t);if(!r)return;let i={type:e};return i[e]=r[1].trim(),n(i)}}function ne(){if(e[0]===`@`)return x()||E()||D()||S()||M()||ee()||N()||k()||O()||C()||A()||w()||j()||T()}function re(){let e=a(),t=_();return t?(m(),e({type:VN.rule,selectors:t,declarations:y()||[]})):s(`selector missing`)}return To(c())},WN=UN,GN=Object.prototype.toString,KN=2**53-1,qN=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];jo(this,e),Po(this,`items`,void 0),this.items=t}return No(e,[{key:`add`,value:function(e){return this.has(e)===!1&&this.items.push(e),this}},{key:`clear`,value:function(){this.items=[]}},{key:`delete`,value:function(e){var t=this.items.length;return this.items=this.items.filter(function(t){return t!==e}),t!==this.items.length}},{key:`forEach`,value:function(e){var t=this;this.items.forEach(function(n){e(n,n,t)})}},{key:`has`,value:function(e){return this.items.indexOf(e)!==-1}},{key:`size`,get:function(){return this.items.length}}]),e})(),JN=typeof Set>`u`?Set:qN,YN={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`},XN={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`]),none: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`])},ZN=[`presentation`,`none`],QN=Qv(Kx(),1),$N=Qv(tS(),1),eP=Qv(IC(),1),tP=Qv(LC(),1),nP=class extends Error{constructor(e,t,n,r){super(),Error.captureStackTrace&&Error.captureStackTrace(this,n);let i=``;try{i=r.utils.printWithType(`Received`,t,r.utils.printReceived)}catch{}this.message=[r.utils.matcherHint(`${r.isNot?`.not`:``}.${n.name}`,`received`,``),``,`${r.utils.RECEIVED_COLOR(`received`)} value must ${e}.`,i].join(`
|
||
`)}},rP=class extends nP{constructor(...e){super(`be an HTMLElement or an SVGElement`,...e)}},iP=class extends nP{constructor(...e){super(`be a Node`,...e)}},aP=class extends Error{constructor(e,t,n){super(),Error.captureStackTrace&&Error.captureStackTrace(this,t),this.message=[e.message,``,n.utils.RECEIVED_COLOR(`Failing css:`),n.utils.RECEIVED_COLOR(`${e.css}`)].join(`
|
||
`)}},oP=[`meter`,`progressbar`,`slider`,`spinbutton`],sP=`aria-invalid`,cP=[`false`],lP=cc(QN.elementRoles),uP=[`fieldset`,`input`,`select`,`optgroup`,`option`,`button`,`textarea`],dP=[`select`,`textarea`],fP=[`input`,`select`,`textarea`],pP=[`color`,`hidden`,`range`,`submit`,`image`,`reset`],mP=[`checkbox`,`combobox`,`gridcell`,`listbox`,`radiogroup`,`spinbutton`,`textbox`,`tree`],hP=[`form`,`input`,`select`,`textarea`],Object.freeze({__proto__:null,toBeChecked:el,toBeDisabled:zc,toBeEmpty:Xs,toBeEmptyDOMElement:Zs,toBeEnabled:Bc,toBeInTheDOM:Js,toBeInTheDocument:Ys,toBeInvalid:Jc,toBePartiallyChecked:il,toBeRequired:Wc,toBeValid:Yc,toBeVisible:jc,toContainElement:$s,toContainHTML:tc,toHaveAccessibleDescription:rc,toHaveAccessibleErrorMessage:ic,toHaveAccessibleName:lc,toHaveAttribute:fc,toHaveClass:gc,toHaveDescription:al,toHaveDisplayValue:Zc,toHaveErrorMessage:ol,toHaveFocus:Sc,toHaveFormValues:Dc,toHaveRole:ac,toHaveSelection:cl,toHaveStyle:xc,toHaveTextContent:nc,toHaveValue:Xc}),Qv(ry(),1),Qv(Kx(),1),Qv(tS(),1),Qv(IC(),1),Qv(LC(),1),Hn(ll()),vP={keyword:`break.case.catch.continue.debugger.default.do.else.finally.for.function.if.return.switch.throw.try.var.const.while.with.new.this.super.class.extends.export.import.null.true.false.in.instanceof.typeof.void.delete`.split(`.`),strict:[`implements`,`interface`,`let`,`package`,`private`,`protected`,`public`,`static`,`yield`]},new Set(vP.keyword),new Set(vP.strict),yP=Object.entries({reset:[0,0],bold:[1,22,`\x1B[22m\x1B[1m`],dim:[2,22,`\x1B[22m\x1B[2m`],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}),ul.open=``,ul.close=``,yP.reduce((e,[t])=>(e[t]=ul,e),{isColorSupported:!1}),bP=fl(),xP=Symbol.for(`tinyspy:spy`),SP=new Set,CP=e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},wP=e=>(gl(e,xP,{value:{reset:()=>CP(e[xP])}}),e[xP]),TP=e=>e[xP]||wP(e),EP=(e,t)=>{let n=Object.getOwnPropertyDescriptor(e,t);if(n)return[e,n];let r=Object.getPrototypeOf(e);for(;r!==null;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return[r,e];r=Object.getPrototypeOf(r)}},DP=(e,t)=>{t!=null&&typeof t==`function`&&t.prototype!=null&&Object.setPrototypeOf(e.prototype,t.prototype)},OP=new Set([`length`,`name`,`prototype`]),kP=new Set,AP=0,jP=Symbol.for(`matchers-object`),MP=Symbol.for(`$$jest-matchers-object-storybook`),NP=Symbol.for(`expect-global`),PP=Symbol.for(`asymmetric-matchers-object`),FP={toSatisfy(e,t,n){let{printReceived:r,printExpected:i,matcherHint:a}=this.utils,o=t(e);return{pass:o,message:()=>o?`${a(`.not.toSatisfy`,`received`,``)}
|
||
|
||
Expected value to not satisfy:
|
||
${n||i(t)}
|
||
Received:
|
||
${r(e)}`:`${a(`.toSatisfy`,`received`,``)}
|
||
|
||
Expected value to satisfy:
|
||
${n||i(t)}
|
||
|
||
Received:
|
||
${r(e)}`}},toBeOneOf(e,t){let{equals:n,customTesters:r}=this,{printReceived:i,printExpected:a,matcherHint:o}=this.utils;if(!Array.isArray(t))throw TypeError(`You must provide an array to ${o(`.toBeOneOf`)}, not '${typeof t}'.`);let s=t.length===0||t.some(t=>n(t,e,r));return{pass:s,message:()=>s?`${o(`.not.toBeOneOf`,`received`,``)}
|
||
|
||
Expected value to not be one of:
|
||
${a(t)}
|
||
Received:
|
||
${i(e)}`:`${o(`.toBeOneOf`,`received`,``)}
|
||
|
||
Expected value to be one of:
|
||
${a(t)}
|
||
|
||
Received:
|
||
${i(e)}`}}},IP=bP.green,LP=bP.red,RP=bP.inverse,zP=bP.bold,BP=bP.dim,VP=`·`,Function.prototype.toString,HP=`@@__IMMUTABLE_KEYED__@@`,UP=`@@__IMMUTABLE_SET__@@`,WP=`@@__IMMUTABLE_LIST__@@`,GP=`@@__IMMUTABLE_ORDERED__@@`,KP=`@@__IMMUTABLE_RECORD__@@`,qP=Symbol.iterator,!Object.prototype.hasOwnProperty.call(globalThis,jP)){let e=new WeakMap;Object.defineProperty(globalThis,jP,{get:()=>e})}if(!Object.prototype.hasOwnProperty.call(globalThis,MP)){let e=Object.create(null),t=[];Object.defineProperty(globalThis,MP,{configurable:!0,get:()=>({state:globalThis[jP].get(globalThis[NP]),matchers:e,customEqualityTesters:t})})}if(!Object.prototype.hasOwnProperty.call(globalThis,PP)){let e=Object.create(null);Object.defineProperty(globalThis,PP,{get:()=>e})}JP=class{$$typeof=Symbol.for(`jest.asymmetricMatcher`);constructor(e,t=!1){this.sample=e,this.inverse=t}getMatcherContext(e){return{...du(e||globalThis[NP]),equals:Il,isNot:this.inverse,customTesters:Fl(),utils:{...Nl(),diff:Pr,stringify:zn,iterableEquality:eu,subsetEquality:ru}}}},JP.prototype[Symbol.for(`chai/inspect`)]=function(e){let t=zn(this,e.depth,{min:!0});return t.length<=e.truncate?t:`${this.toString()}{\u2026}`},YP=class extends JP{constructor(e,t=!1){if(!Wl(`String`,e))throw Error(`Expected is not a string`);super(e,t)}asymmetricMatch(e){let t=Wl(`String`,e)&&e.includes(this.sample);return this.inverse?!t:t}toString(){return`String${this.inverse?`Not`:``}Containing`}getExpectedType(){return`string`}},XP=class extends JP{asymmetricMatch(e){return e!=null}toString(){return`Anything`}toAsymmetricMatcher(){return`Anything`}},ZP=class extends JP{constructor(e,t=!1){super(e,t)}getPrototype(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.constructor.prototype===e?null:e.constructor.prototype}hasProperty(e,t){return e?Object.prototype.hasOwnProperty.call(e,t)?!0:this.hasProperty(this.getPrototype(e),t):!1}asymmetricMatch(e){if(typeof this.sample!=`object`)throw TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let t=!0,n=this.getMatcherContext();for(let r in this.sample)if(!this.hasProperty(e,r)||!Il(this.sample[r],e[r],n.customTesters)){t=!1;break}return this.inverse?!t:t}toString(){return`Object${this.inverse?`Not`:``}Containing`}getExpectedType(){return`object`}},QP=class extends JP{constructor(e,t=!1){super(e,t)}asymmetricMatch(e){if(!Array.isArray(this.sample))throw TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);let t=this.getMatcherContext(),n=this.sample.length===0||Array.isArray(e)&&this.sample.every(n=>e.some(e=>Il(n,e,t.customTesters)));return this.inverse?!n:n}toString(){return`Array${this.inverse?`Not`:``}Containing`}getExpectedType(){return`array`}},$P=class extends JP{constructor(e){if(typeof e>`u`)throw TypeError(`any() expects to be passed a constructor function. Please pass one or use anything() to match any object.`);super(e)}fnNameFor(e){if(e.name)return e.name;let t=Function.prototype.toString.call(e).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return t?t[1]:`<anonymous>`}asymmetricMatch(e){return this.sample===String?typeof e==`string`||e instanceof String:this.sample===Number?typeof e==`number`||e instanceof Number:this.sample===Function?typeof e==`function`||typeof e==`function`:this.sample===Boolean?typeof e==`boolean`||e instanceof Boolean:this.sample===BigInt?typeof e==`bigint`||e instanceof BigInt:this.sample===Symbol?typeof e==`symbol`||e instanceof Symbol:this.sample===Object?typeof e==`object`:e instanceof this.sample}toString(){return`Any`}getExpectedType(){return this.sample===String?`string`:this.sample===Number?`number`:this.sample===Function?`function`:this.sample===Object?`object`:this.sample===Boolean?`boolean`:this.fnNameFor(this.sample)}toAsymmetricMatcher(){return`Any<${this.fnNameFor(this.sample)}>`}},eF=class extends JP{constructor(e,t=!1){if(!Wl(`String`,e)&&!Wl(`RegExp`,e))throw Error(`Expected is not a String or a RegExp`);super(new RegExp(e),t)}asymmetricMatch(e){let t=Wl(`String`,e)&&this.sample.test(e);return this.inverse?!t:t}toString(){return`String${this.inverse?`Not`:``}Matching`}getExpectedType(){return`string`}},tF=class extends JP{precision;constructor(e,t=2,n=!1){if(!Wl(`Number`,e))throw Error(`Expected is not a Number`);if(!Wl(`Number`,t))throw Error(`Precision is not a Number`);super(e),this.inverse=n,this.precision=t}asymmetricMatch(e){if(!Wl(`Number`,e))return!1;let t=!1;return t=e===1/0&&this.sample===1/0||e===-1/0&&this.sample===-1/0?!0:Math.abs(this.sample-e)<10**-this.precision/2,this.inverse?!t:t}toString(){return`Number${this.inverse?`Not`:``}CloseTo`}getExpectedType(){return`number`}toAsymmetricMatcher(){return[this.toString(),this.sample,`(${cu(`digit`,this.precision)})`].join(` `)}},nF=(e,t)=>{t.addMethod(e.expect,`anything`,()=>new XP),t.addMethod(e.expect,`any`,e=>new $P(e)),t.addMethod(e.expect,`stringContaining`,e=>new YP(e)),t.addMethod(e.expect,`objectContaining`,e=>new ZP(e)),t.addMethod(e.expect,`arrayContaining`,e=>new QP(e)),t.addMethod(e.expect,`stringMatching`,e=>new eF(e)),t.addMethod(e.expect,`closeTo`,(e,t)=>new tF(e,t)),e.expect.not={stringContaining:e=>new YP(e,!0),objectContaining:e=>new ZP(e,!0),arrayContaining:e=>new QP(e,!0),stringMatching:e=>new eF(e,!0),closeTo:(e,t)=>new tF(e,t,!0)}},rF=(e,t)=>{let{AssertionError:n}=e,r=Fl();function i(n,r){let i=n=>{let i=gu(t,n,r);t.addMethod(e.Assertion.prototype,n,i),t.addMethod(globalThis[MP].matchers,n,i)};Array.isArray(n)?n.forEach(e=>i(e)):i(n)}[`throw`,`throws`,`Throw`].forEach(r=>{t.overwriteMethod(e.Assertion.prototype,r,e=>function(...r){let i=t.flag(this,`promise`),a=t.flag(this,`object`),o=t.flag(this,`negate`);if(i===`rejects`)t.flag(this,`object`,()=>{throw a});else if(i===`resolves`&&typeof a!=`function`){if(o)return;throw new n(t.flag(this,`message`)||`expected promise to throw an error, but it didn't`,{showDiff:!1},t.flag(this,`ssfi`))}e.apply(this,r)})}),i(`withTest`,function(e){return t.flag(this,`vitest-test`,e),this}),i(`toEqual`,function(e){let n=t.flag(this,`object`),i=Il(n,e,[...r,eu]);return this.assert(i,`expected #{this} to deeply equal #{exp}`,`expected #{this} to not deeply equal #{exp}`,e,n)}),i(`toStrictEqual`,function(e){let n=t.flag(this,`object`),i=Il(n,e,[...r,eu,iu,ou,au],!0);return this.assert(i,`expected #{this} to strictly equal #{exp}`,`expected #{this} to not strictly equal #{exp}`,e,n)}),i(`toBe`,function(e){let t=this._obj,n=Object.is(t,e),i=``;return n||(Il(t,e,[...r,eu,iu,ou,au],!0)?i=`toStrictEqual`:Il(t,e,[...r,eu])&&(i=`toEqual`)),this.assert(n,su(i),`expected #{this} not to be #{exp} // Object.is equality`,e,t)}),i(`toMatchObject`,function(e){let i=this._obj,a=Il(i,e,[...r,eu,ru]),o=t.flag(this,`negate`),{subset:s,stripped:c}=uu(i,e,r);if(a&&o||!a&&!o){let r=t.getMessage(this,[a,`expected #{this} to match object #{exp}`,`expected #{this} to not match object #{exp}`,e,s,!1]);throw new n(c===0?r:`${r}
|
||
(${c} matching ${c===1?`property`:`properties`} omitted from actual)`,{showDiff:!0,expected:e,actual:s})}}),i(`toMatch`,function(e){let t=this._obj;if(typeof t!=`string`)throw TypeError(`.toMatch() expects to receive a string, but got ${typeof t}`);return this.assert(typeof e==`string`?t.includes(e):t.match(e),`expected #{this} to match #{exp}`,`expected #{this} not to match #{exp}`,e,t)}),i(`toContain`,function(e){let n=this._obj;if(typeof Node<`u`&&n instanceof Node){if(!(e instanceof Node))throw TypeError(`toContain() expected a DOM node as the argument, but got ${typeof e}`);return this.assert(n.contains(e),`expected #{this} to contain element #{exp}`,`expected #{this} not to contain element #{exp}`,e,n)}if(typeof DOMTokenList<`u`&&n instanceof DOMTokenList){Un(e,`class name`,[`string`]);let r=t.flag(this,`negate`)?n.value.replace(e,``).trim():`${n.value} ${e}`;return this.assert(n.contains(e),`expected "${n.value}" to contain "${e}"`,`expected "${n.value}" not to contain "${e}"`,r,n.value)}return typeof n==`string`&&typeof e==`string`?this.assert(n.includes(e),`expected #{this} to contain #{exp}`,`expected #{this} not to contain #{exp}`,e,n):(n!=null&&typeof n!=`string`&&t.flag(this,`object`,Array.from(n)),this.contain(e))}),i(`toContainEqual`,function(e){let n=t.flag(this,`object`),i=Array.from(n).findIndex(t=>Il(t,e,r));this.assert(i!==-1,`expected #{this} to deep equally contain #{exp}`,`expected #{this} to not deep equally contain #{exp}`,e)}),i(`toBeTruthy`,function(){let e=t.flag(this,`object`);this.assert(!!e,`expected #{this} to be truthy`,`expected #{this} to not be truthy`,!0,e)}),i(`toBeFalsy`,function(){let e=t.flag(this,`object`);this.assert(!e,`expected #{this} to be falsy`,`expected #{this} to not be falsy`,!1,e)}),i(`toBeGreaterThan`,function(e){let t=this._obj;return Un(t,`actual`,[`number`,`bigint`]),Un(e,`expected`,[`number`,`bigint`]),this.assert(t>e,`expected ${t} to be greater than ${e}`,`expected ${t} to be not greater than ${e}`,e,t,!1)}),i(`toBeGreaterThanOrEqual`,function(e){let t=this._obj;return Un(t,`actual`,[`number`,`bigint`]),Un(e,`expected`,[`number`,`bigint`]),this.assert(t>=e,`expected ${t} to be greater than or equal to ${e}`,`expected ${t} to be not greater than or equal to ${e}`,e,t,!1)}),i(`toBeLessThan`,function(e){let t=this._obj;return Un(t,`actual`,[`number`,`bigint`]),Un(e,`expected`,[`number`,`bigint`]),this.assert(t<e,`expected ${t} to be less than ${e}`,`expected ${t} to be not less than ${e}`,e,t,!1)}),i(`toBeLessThanOrEqual`,function(e){let t=this._obj;return Un(t,`actual`,[`number`,`bigint`]),Un(e,`expected`,[`number`,`bigint`]),this.assert(t<=e,`expected ${t} to be less than or equal to ${e}`,`expected ${t} to be not less than or equal to ${e}`,e,t,!1)}),i(`toBeNaN`,function(){let e=t.flag(this,`object`);this.assert(Number.isNaN(e),`expected #{this} to be NaN`,`expected #{this} not to be NaN`,NaN,e)}),i(`toBeUndefined`,function(){let e=t.flag(this,`object`);this.assert(e===void 0,`expected #{this} to be undefined`,`expected #{this} not to be undefined`,void 0,e)}),i(`toBeNull`,function(){let e=t.flag(this,`object`);this.assert(e===null,`expected #{this} to be null`,`expected #{this} not to be null`,null,e)}),i(`toBeDefined`,function(){let e=t.flag(this,`object`);this.assert(typeof e<`u`,`expected #{this} to be defined`,`expected #{this} to be undefined`,e)}),i(`toBeTypeOf`,function(e){let t=typeof this._obj,n=e===t;return this.assert(n,`expected #{this} to be type of #{exp}`,`expected #{this} not to be type of #{exp}`,e,t)}),i(`toBeInstanceOf`,function(e){return this.instanceOf(e)}),i(`toHaveLength`,function(e){return this.have.length(e)}),i(`toHaveProperty`,function(...e){Array.isArray(e[0])&&(e[0]=e[0].map(e=>String(e).replace(/([.[\]])/g,`\\$1`)).join(`.`));let n=this._obj,[i,a]=e,{value:o,exists:s}=Object.prototype.hasOwnProperty.call(n,i)?{value:n[i],exists:!0}:t.getPathInfo(n,i),c=s&&(e.length===1||Il(a,o,r)),l=e.length===1?``:` with value ${t.objDisplay(a)}`;return this.assert(c,`expected #{this} to have property "${i}"${l}`,`expected #{this} to not have property "${i}"${l}`,a,s?o:void 0)}),i(`toBeCloseTo`,function(e,t=2){let n=this._obj,r=!1,i=0,a=0;return e===1/0&&n===1/0||e===-1/0&&n===-1/0?r=!0:(i=10**-t/2,a=Math.abs(n-e),r=a<i),this.assert(r,`expected #{this} to be close to #{exp}, received difference is ${a}, but expected ${i}`,`expected #{this} to not be close to #{exp}, received difference is ${a}, but expected ${i}`,e,n,!1)});function a(e){if(!wl(e._obj))throw TypeError(`${t.inspect(e._obj)} is not a spy or a call to a spy!`)}function o(e){return a(e),e._obj}i([`toHaveBeenCalledTimes`,`toBeCalledTimes`],function(e){let t=o(this),n=t.getMockName(),r=t.mock.calls.length;return this.assert(r===e,`expected "${n}" to be called #{exp} times, but got ${r} times`,`expected "${n}" to not be called #{exp} times`,e,r,!1)}),i(`toHaveBeenCalledOnce`,function(){let e=o(this),t=e.getMockName(),n=e.mock.calls.length;return this.assert(n===1,`expected "${t}" to be called once, but got ${n} times`,`expected "${t}" to not be called once`,1,n,!1)}),i([`toHaveBeenCalled`,`toBeCalled`],function(){let e=o(this),r=e.getMockName(),i=e.mock.calls.length,a=i>0,s=t.flag(this,`negate`),c=t.getMessage(this,[a,`expected "${r}" to be called at least once`,`expected "${r}" to not be called at all, but actually been called ${i} times`,!0,a]);if(a&&s&&(c=vu(e,c)),a&&s||!a&&!s)throw new n(c)});function s(e,t){return e.length===t.length&&e.every((e,n)=>Il(e,t[n],[...r,eu]))}i([`toHaveBeenCalledWith`,`toBeCalledWith`],function(...e){let r=o(this),i=r.getMockName(),a=r.mock.calls.some(t=>s(t,e)),c=t.flag(this,`negate`),l=t.getMessage(this,[a,`expected "${i}" to be called with arguments: #{exp}`,`expected "${i}" to not be called with arguments: #{exp}`,e]);if(a&&c||!a&&!c)throw new n(vu(r,l,e))}),i(`toHaveBeenCalledExactlyOnceWith`,function(...e){let r=o(this),i=r.getMockName(),a=r.mock.calls.length,c=r.mock.calls.some(t=>s(t,e))&&a===1,l=t.flag(this,`negate`),u=t.getMessage(this,[c,`expected "${i}" to be called once with arguments: #{exp}`,`expected "${i}" to not be called once with arguments: #{exp}`,e]);if(c&&l||!c&&!l)throw new n(vu(r,u,e))}),i([`toHaveBeenNthCalledWith`,`nthCalledWith`],function(e,...t){let n=o(this),r=n.getMockName(),i=n.mock.calls[e-1],a=n.mock.calls.length,c=e<=a;this.assert(i&&s(i,t),`expected ${_u(e)} "${r}" call to have been called with #{exp}${c?``:`, but called only ${a} times`}`,`expected ${_u(e)} "${r}" call to not have been called with #{exp}`,t,i,c)}),i([`toHaveBeenLastCalledWith`,`lastCalledWith`],function(...e){let t=o(this),n=t.getMockName(),r=t.mock.calls[t.mock.calls.length-1];this.assert(r&&s(r,e),`expected last "${n}" call to have been called with #{exp}`,`expected last "${n}" call to not have been called with #{exp}`,e,r)});function c(e,t,n){let r=e.mock.invocationCallOrder,i=t.mock.invocationCallOrder;return r.length===0?!n:i.length===0?!1:r[0]<i[0]}i([`toHaveBeenCalledBefore`],function(e,n=!0){let r=o(this);if(!wl(e))throw TypeError(`${t.inspect(e)} is not a spy or a call to a spy`);this.assert(c(r,e,n),`expected "${r.getMockName()}" to have been called before "${e.getMockName()}"`,`expected "${r.getMockName()}" to not have been called before "${e.getMockName()}"`,e,r)}),i([`toHaveBeenCalledAfter`],function(e,n=!0){let r=o(this);if(!wl(e))throw TypeError(`${t.inspect(e)} is not a spy or a call to a spy`);this.assert(c(e,r,n),`expected "${r.getMockName()}" to have been called after "${e.getMockName()}"`,`expected "${r.getMockName()}" to not have been called after "${e.getMockName()}"`,e,r)}),i([`toThrow`,`toThrowError`],function(e){if(typeof e==`string`||typeof e>`u`||e instanceof RegExp)return this.throws(e===``?/^$/:e);let i=this._obj,a=t.flag(this,`promise`),o=t.flag(this,`negate`),s=null;if(a===`rejects`)s=i;else if(a===`resolves`&&typeof i!=`function`){if(o)return;throw new n(t.flag(this,`message`)||`expected promise to throw an error, but it didn't`,{showDiff:!1},t.flag(this,`ssfi`))}else{let e=!1;try{i()}catch(t){e=!0,s=t}if(!e&&!o)throw new n(t.flag(this,`message`)||`expected function to throw an error, but it didn't`,{showDiff:!1},t.flag(this,`ssfi`))}if(typeof e==`function`){let t=e.name||e.prototype.constructor.name;return this.assert(s&&s instanceof e,`expected error to be instance of ${t}`,`expected error not to be instance of ${t}`,e,s)}if(e instanceof Error){let t=Il(s,e,[...r,eu]);return this.assert(t,`expected a thrown error to be #{exp}`,`expected a thrown error not to be #{exp}`,e,s)}if(typeof e==`object`&&`asymmetricMatch`in e&&typeof e.asymmetricMatch==`function`){let t=e;return this.assert(s&&t.asymmetricMatch(s),`expected error to match asymmetric matcher`,`expected error not to match asymmetric matcher`,t,s)}throw Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof e}"`)}),[{name:`toHaveResolved`,condition:e=>e.mock.settledResults.length>0&&e.mock.settledResults.some(({type:e})=>e===`fulfilled`),action:`resolved`},{name:[`toHaveReturned`,`toReturn`],condition:e=>e.mock.calls.length>0&&e.mock.results.some(({type:e})=>e!==`throw`),action:`called`}].forEach(({name:e,condition:t,action:n})=>{i(e,function(){let e=o(this),r=e.getMockName(),i=t(e);this.assert(i,`expected "${r}" to be successfully ${n} at least once`,`expected "${r}" to not be successfully ${n}`,i,!i,!1)})}),[{name:`toHaveResolvedTimes`,condition:(e,t)=>e.mock.settledResults.reduce((e,{type:t})=>t===`fulfilled`?++e:e,0)===t,action:`resolved`},{name:[`toHaveReturnedTimes`,`toReturnTimes`],condition:(e,t)=>e.mock.results.reduce((e,{type:t})=>t===`throw`?e:++e,0)===t,action:`called`}].forEach(({name:e,condition:t,action:n})=>{i(e,function(e){let r=o(this),i=r.getMockName(),a=t(r,e);this.assert(a,`expected "${i}" to be successfully ${n} ${e} times`,`expected "${i}" to not be successfully ${n} ${e} times`,`expected resolved times: ${e}`,`received resolved times: ${a}`,!1)})}),[{name:`toHaveResolvedWith`,condition:(e,t)=>e.mock.settledResults.some(({type:e,value:n})=>e===`fulfilled`&&Il(t,n)),action:`resolve`},{name:[`toHaveReturnedWith`,`toReturnWith`],condition:(e,t)=>e.mock.results.some(({type:e,value:n})=>e===`return`&&Il(t,n)),action:`return`}].forEach(({name:e,condition:r,action:a})=>{i(e,function(e){let i=o(this),s=r(i,e),c=t.flag(this,`negate`);if(s&&c||!s&&!c){let r=i.getMockName(),o=t.getMessage(this,[s,`expected "${r}" to ${a} with: #{exp} at least once`,`expected "${r}" to not ${a} with: #{exp}`,e]);throw new n(yu(i,a===`return`?i.mock.results:i.mock.settledResults,o,e))}})}),[{name:`toHaveLastResolvedWith`,condition:(e,t)=>{let n=e.mock.settledResults[e.mock.settledResults.length-1];return n&&n.type===`fulfilled`&&Il(n.value,t)},action:`resolve`},{name:[`toHaveLastReturnedWith`,`lastReturnedWith`],condition:(e,t)=>{let n=e.mock.results[e.mock.results.length-1];return n&&n.type===`return`&&Il(n.value,t)},action:`return`}].forEach(({name:e,condition:t,action:n})=>{i(e,function(e){let r=o(this),i=n===`return`?r.mock.results:r.mock.settledResults,a=i[i.length-1],s=r.getMockName();this.assert(t(r,e),`expected last "${s}" call to ${n} #{exp}`,`expected last "${s}" call to not ${n} #{exp}`,e,a?.value)})}),[{name:`toHaveNthResolvedWith`,condition:(e,t,n)=>{let r=e.mock.settledResults[t-1];return r&&r.type===`fulfilled`&&Il(r.value,n)},action:`resolve`},{name:[`toHaveNthReturnedWith`,`nthReturnedWith`],condition:(e,t,n)=>{let r=e.mock.results[t-1];return r&&r.type===`return`&&Il(r.value,n)},action:`return`}].forEach(({name:e,condition:t,action:n})=>{i(e,function(e,r){let i=o(this),a=i.getMockName(),s=(n===`return`?i.mock.results:i.mock.settledResults)[e-1],c=`${_u(e)} call`;this.assert(t(i,e,r),`expected ${c} "${a}" call to ${n} #{exp}`,`expected ${c} "${a}" call to not ${n} #{exp}`,r,s?.value)})}),i(`withContext`,function(e){for(let n in e)t.flag(this,n,e[n]);return this}),t.addProperty(e.Assertion.prototype,`resolves`,function(){let r=Error(`resolves`);t.flag(this,`promise`,`resolves`),t.flag(this,`error`,r);let i=t.flag(this,`vitest-test`),a=t.flag(this,`object`);if(t.flag(this,`poll`))throw SyntaxError(`expect.poll() is not supported in combination with .resolves`);if(typeof a?.then!=`function`)throw TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof a}'.`);let o=new Proxy(this,{get:(s,c,l)=>{let u=Reflect.get(s,c,l);return typeof u==`function`?(...e)=>(t.flag(this,`_name`,c),mu(i,a.then(n=>(t.flag(this,`object`,n),u.call(this,...e)),e=>{let i=new n(`promise rejected "${t.inspect(e)}" instead of resolving`,{showDiff:!1});throw i.cause=e,i.stack=r.stack.replace(r.message,i.message),i}),pu(t,this,!!e.length),r)):u instanceof e.Assertion?o:u}});return o}),t.addProperty(e.Assertion.prototype,`rejects`,function(){let r=Error(`rejects`);t.flag(this,`promise`,`rejects`),t.flag(this,`error`,r);let i=t.flag(this,`vitest-test`),a=t.flag(this,`object`),o=typeof a==`function`?a():a;if(t.flag(this,`poll`))throw SyntaxError(`expect.poll() is not supported in combination with .rejects`);if(typeof o?.then!=`function`)throw TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof o}'.`);let s=new Proxy(this,{get:(a,c,l)=>{let u=Reflect.get(a,c,l);return typeof u==`function`?(...e)=>(t.flag(this,`_name`,c),mu(i,o.then(e=>{let i=new n(`promise resolved "${t.inspect(e)}" instead of rejecting`,{showDiff:!0,expected:Error(`rejected promise`),actual:e});throw i.stack=r.stack.replace(r.message,i.message),i},n=>(t.flag(this,`object`,n),u.call(this,...e))),pu(t,this,!!e.length),r)):u instanceof e.Assertion?s:u}});return s})},iF=class extends Error{constructor(e,t,n){super(e),this.actual=t,this.expected=n}},aF=(e,t)=>{t.addMethod(e.expect,`extend`,(t,n)=>{xo(xu(e,t,n))})},oF=Su(),Object.defineProperty(globalThis,NP,{value:oF,writable:!0,configurable:!0}),sF=Symbol.for(`tinyspy:spy`),cF=e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},lF=e=>(Cu(e,sF,{value:{reset:()=>cF(e[sF])}}),e[sF]),uF=e=>e[sF]||lF(e),dF=new Set,fF=(...e)=>Eu(Tl(...e)),pF={},Xv(pF,{buildQueries:()=>qf,configure:()=>Qd,createEvent:()=>tp,findAllByAltText:()=>KI,findAllByDisplayValue:()=>II,findAllByLabelText:()=>oI,findAllByPlaceholderText:()=>vI,findAllByRole:()=>fL,findAllByTestId:()=>SL,findAllByText:()=>DI,findAllByTitle:()=>nL,findByAltText:()=>qI,findByDisplayValue:()=>LI,findByLabelText:()=>sI,findByPlaceholderText:()=>yI,findByRole:()=>pL,findByTestId:()=>CL,findByText:()=>OI,findByTitle:()=>rL,fireEvent:()=>ep,getAllByAltText:()=>WI,getAllByDisplayValue:()=>PI,getAllByLabelText:()=>cI,getAllByPlaceholderText:()=>gI,getAllByRole:()=>uL,getAllByTestId:()=>bL,getAllByText:()=>TI,getAllByTitle:()=>eL,getByAltText:()=>GI,getByDisplayValue:()=>FI,getByLabelText:()=>lI,getByPlaceholderText:()=>_I,getByRole:()=>dL,getByTestId:()=>xL,getByText:()=>EI,getByTitle:()=>tL,getConfig:()=>$d,getDefaultNormalizer:()=>lf,getElementError:()=>zf,getMultipleElementsFoundError:()=>Bf,getNodeText:()=>ff,getQueriesForElement:()=>Zf,getRoles:()=>_f,getSuggestedQuery:()=>Ff,isInaccessible:()=>mf,logDOM:()=>GF,logRoles:()=>YF,makeFindQuery:()=>Kf,makeGetAllQuery:()=>Gf,makeSingleQuery:()=>Uf,prettyDOM:()=>Xd,prettyFormat:()=>mF,queries:()=>wL,queryAllByAltText:()=>HI,queryAllByAttribute:()=>Vf,queryAllByDisplayValue:()=>MI,queryAllByLabelText:()=>uI,queryAllByPlaceholderText:()=>mI,queryAllByRole:()=>cL,queryAllByTestId:()=>vL,queryAllByText:()=>CI,queryAllByTitle:()=>QI,queryByAltText:()=>UI,queryByAttribute:()=>Hf,queryByDisplayValue:()=>NI,queryByLabelText:()=>iI,queryByPlaceholderText:()=>hI,queryByRole:()=>lL,queryByTestId:()=>yL,queryByText:()=>wI,queryByTitle:()=>$I,queryHelpers:()=>$F,screen:()=>jL,waitFor:()=>Rf,waitForElementToBeRemoved:()=>$f,within:()=>Zf,wrapAllByQueryWithSuggestion:()=>QF,wrapSingleQueryWithSuggestion:()=>ZF}),mF=Qv(QC()),hF=Object.prototype.toString,gF=2**53-1,_F=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Lu(this,e),Bu(this,`items`,void 0),this.items=t}return zu(e,[{key:`add`,value:function(e){return this.has(e)===!1&&this.items.push(e),this}},{key:`clear`,value:function(){this.items=[]}},{key:`delete`,value:function(e){var t=this.items.length;return this.items=this.items.filter(function(t){return t!==e}),t!==this.items.length}},{key:`forEach`,value:function(e){var t=this;this.items.forEach(function(n){e(n,n,t)})}},{key:`has`,value:function(e){return this.items.indexOf(e)!==-1}},{key:`size`,get:function(){return this.items.length}}]),e})(),vF=typeof Set>`u`?Set:_F,yF={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`},bF={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`])},xF=Qv(Kx()),SF=Qv($C()),CF=(e,t,n,r,i,a,o)=>{let s=r+n.indent,c=n.colors;return e.map(e=>{let l=t[e],u=o(l,n,s,i,a);return typeof l!=`string`&&(u.indexOf(`
|
||
`)!==-1&&(u=n.spacingOuter+s+u+n.spacingOuter+r),u=`{`+u+`}`),n.spacingInner+r+c.prop.open+e+c.prop.close+`=`+c.value.open+u+c.value.close}).join(``)},wF=3,TF=(e,t,n,r,i,a)=>e.map(e=>{let o=typeof e==`string`?EF(e,t):a(e,t,n,r,i);return o===``&&typeof e==`object`&&e&&e.nodeType!==wF?``:t.spacingOuter+n+o}).join(``),EF=(e,t)=>{let n=t.colors.content;return n.open+Rd(e)+n.close},DF=(e,t)=>{let n=t.colors.comment;return n.open+`<!--`+Rd(e)+`-->`+n.close},OF=(e,t,n,r,i)=>{let a=r.colors.tag;return a.open+`<`+e+(t&&a.close+t+r.spacingOuter+i+a.open)+(n?`>`+a.close+n+r.spacingOuter+i+a.open+`</`+e:(t&&!r.min?``:` `)+`/`)+`>`+a.close},kF=(e,t)=>{let n=t.colors.tag;return n.open+`<`+e+n.close+` …`+n.open+` />`+n.close},AF=1,jF=3,MF=8,NF=11,PF=/^((HTML|SVG)\w*)?Element$/,FF=e=>{let{tagName:t}=e;return!!(typeof t==`string`&&t.includes(`-`)||typeof e.hasAttribute==`function`&&e.hasAttribute(`is`))},IF=e=>{let t=e.constructor.name,{nodeType:n}=e;return n===AF&&(PF.test(t)||FF(e))||n===jF&&t===`Text`||n===MF&&t===`Comment`||n===NF&&t===`DocumentFragment`},LF=null,RF=null,zF=null;try{let e=module&&module.require;RF=e.call(module,`fs`).readFileSync,zF=e.call(module,`@babel/code-frame`).codeFrameColumns,LF=e.call(module,`picocolors`)}catch{}BF=3,VF=()=>{if(typeof process>`u`)return!1;let e;try{let t={}?.COLORS;t&&(e=JSON.parse(t))}catch{}return typeof e==`boolean`?e:process.versions!==void 0&&process.versions.node!==void 0},{DOMCollection:HF}=mF.plugins,UF=1,WF=8,GF=function(){let e=Wd();console.log(e?Xd(...arguments)+`
|
||
|
||
`+e:Xd(...arguments))},KF={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){let n=Xd(t),r=Error([e,`Ignored nodes: comments, `+KF.defaultIgnore+`
|
||
`+n].filter(Boolean).join(`
|
||
|
||
`));return r.name=`TestingLibraryElementError`,r},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1},qF=[`button`,`meter`,`output`,`progress`,`select`,`textarea`,`input`],JF=gf(xF.elementRoles),YF=function(e,t){let{hidden:n=!1}=t===void 0?{}:t;return console.log(vf(e,{hidden:n}))},XF=lf(),ZF=(e,t,n)=>function(r){var i=[...arguments].slice(1);let a=e(r,...i),[{suggest:o=$d().throwSuggestions}={}]=i.slice(-1);if(a&&o){let e=Ff(a,n);if(e&&!t.endsWith(e.queryName))throw Wf(e.toString(),r)}return a},QF=(e,t,n)=>function(r){var i=[...arguments].slice(1);let a=e(r,...i),[{suggest:o=$d().throwSuggestions}={}]=i.slice(-1);if(a.length&&o){let e=[...new Set(a.map(e=>Ff(e,n)?.toString()))];if(e.length===1&&!t.endsWith(Ff(a[0],n).queryName))throw Wf(e[0],r)}return a},$F=Object.freeze({__proto__:null,getElementError:zf,wrapAllByQueryWithSuggestion:QF,wrapSingleQueryWithSuggestion:ZF,getMultipleElementsFoundError:Bf,queryAllByAttribute:Vf,queryByAttribute:Hf,makeSingleQuery:Uf,makeGetAllQuery:Gf,makeFindQuery:Kf,buildQueries:qf}),eI=function(e,t,n){let{exact:r=!0,trim:i,collapseWhitespace:a,normalizer:o}=n===void 0?{}:n,s=r?cf:sf,c=uf({collapseWhitespace:a,trim:i,normalizer:o});return Jf(e).filter(e=>{let{node:n,textToMatch:r}=e;return s(r,n,t,c)}).map(e=>{let{node:t}=e;return t})},tI=function(e,t,n){let{selector:r=`*`,exact:i=!0,collapseWhitespace:a,trim:o,normalizer:s}=n===void 0?{}:n;Jd(e);let c=i?cf:sf,l=uf({collapseWhitespace:a,trim:o,normalizer:s}),u=Array.from(e.querySelectorAll(`*`)).filter(e=>nf(e).length||e.hasAttribute(`aria-labelledby`)).reduce((n,i)=>{let a=af(e,i,{selector:r});a.filter(e=>!!e.formControl).forEach(e=>{c(e.content,e.formControl,t,l)&&e.formControl&&n.push(e.formControl)});let o=a.filter(e=>!!e.content).map(e=>e.content);return c(o.join(` `),i,t,l)&&n.push(i),o.length>1&&o.forEach((e,r)=>{c(e,i,t,l)&&n.push(i);let a=[...o];a.splice(r,1),a.length>1&&c(a.join(` `),i,t,l)&&n.push(i)}),n},[]).concat(Vf(`aria-label`,e,t,{exact:i,normalizer:l}));return Array.from(new Set(u)).filter(e=>e.matches(r))},nI=function(e,t){var n=[...arguments].slice(2);let r=tI(e,t,...n);if(!r.length){let r=eI(e,t,...n);if(r.length){let n=r.map(t=>Yf(e,t)).filter(e=>!!e);throw n.length?$d().getElementError(n.map(e=>`Found a label with the text of: `+t+`, however the element associated with this label (<`+e+` />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <`+e+` />, you can use aria-label or aria-labelledby instead.`).join(`
|
||
|
||
`),e):$d().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 $d().getElementError(`Unable to find a label with the text of: `+t,e)}return r},rI=(e,t)=>`Found multiple elements with the text of: `+t,iI=ZF(Uf(tI,rI),tI.name,`query`),aI=Uf(nI,rI),oI=Kf(QF(nI,nI.name,`findAll`)),sI=Kf(ZF(aI,nI.name,`find`)),cI=QF(nI,nI.name,`getAll`),lI=ZF(aI,nI.name,`get`),uI=QF(tI,tI.name,`queryAll`),dI=function(){var e=[...arguments];return Jd(e[0]),Vf(`placeholder`,...e)},fI=(e,t)=>`Found multiple elements with the placeholder text of: `+t,pI=(e,t)=>`Unable to find an element with the placeholder text of: `+t,mI=QF(dI,dI.name,`queryAll`),[hI,gI,_I,vI,yI]=qf(dI,fI,pI),bI=function(e,t,n){let{selector:r=`*`,exact:i=!0,collapseWhitespace:a,trim:o,ignore:s=$d().defaultIgnore,normalizer:c}=n===void 0?{}:n;Jd(e);let l=i?cf:sf,u=uf({collapseWhitespace:a,trim:o,normalizer:c}),d=[];return typeof e.matches==`function`&&e.matches(r)&&(d=[e]),[...d,...Array.from(e.querySelectorAll(r))].filter(e=>!s||!e.matches(s)).filter(e=>l(ff(e),e,t,u))},xI=(e,t)=>`Found multiple elements with the text: `+t,SI=function(e,t,n){n===void 0&&(n={});let{collapseWhitespace:r,trim:i,normalizer:a,selector:o}=n,s=uf({collapseWhitespace:r,trim:i,normalizer:a})(t.toString()),c=s!==t.toString(),l=(o??`*`)!==`*`;return`Unable to find an element with the text: `+(c?s+` (normalized from '`+t+`')`:t)+(l?`, which matches selector '`+o+`'`:``)+`. 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.`},CI=QF(bI,bI.name,`queryAll`),[wI,TI,EI,DI,OI]=qf(bI,xI,SI),kI=function(e,t,n){let{exact:r=!0,collapseWhitespace:i,trim:a,normalizer:o}=n===void 0?{}:n;Jd(e);let s=r?cf:sf,c=uf({collapseWhitespace:i,trim:a,normalizer:o});return Array.from(e.querySelectorAll(`input,textarea,select`)).filter(e=>e.tagName===`SELECT`?Array.from(e.options).filter(e=>e.selected).some(e=>s(ff(e),e,t,c)):s(e.value,e,t,c))},AI=(e,t)=>`Found multiple elements with the display value: `+t+`.`,jI=(e,t)=>`Unable to find an element with the display value: `+t+`.`,MI=QF(kI,kI.name,`queryAll`),[NI,PI,FI,II,LI]=qf(kI,AI,jI),RI=/^(img|input|area|.+-.+)$/i,zI=function(e,t,n){return n===void 0&&(n={}),Jd(e),Vf(`alt`,e,t,n).filter(e=>RI.test(e.tagName))},BI=(e,t)=>`Found multiple elements with the alt text: `+t,VI=(e,t)=>`Unable to find an element with the alt text: `+t,HI=QF(zI,zI.name,`queryAll`),[UI,WI,GI,KI,qI]=qf(zI,BI,VI),JI=e=>e.tagName.toLowerCase()===`title`&&e.parentElement?.tagName.toLowerCase()===`svg`,YI=function(e,t,n){let{exact:r=!0,collapseWhitespace:i,trim:a,normalizer:o}=n===void 0?{}:n;Jd(e);let s=r?cf:sf,c=uf({collapseWhitespace:i,trim:a,normalizer:o});return Array.from(e.querySelectorAll(`[title], svg > title`)).filter(e=>s(e.getAttribute(`title`),e,t,c)||JI(e)&&s(ff(e),e,t,c))},XI=(e,t)=>`Found multiple elements with the title: `+t+`.`,ZI=(e,t)=>`Unable to find an element with the title: `+t+`.`,QI=QF(YI,YI.name,`queryAll`),[$I,eL,tL,nL,rL]=qf(YI,XI,ZI),iL=function(e,t,n){let{hidden:r=$d().defaultHidden,name:i,description:a,queryFallbacks:o=!1,selected:s,busy:c,checked:l,pressed:u,current:d,level:f,expanded:p,value:{now:m,min:h,max:g,text:_}={}}=n===void 0?{}:n;if(Jd(e),s!==void 0&&xF.roles.get(t)?.props[`aria-selected`]===void 0)throw Error(`"aria-selected" is not supported on role "`+t+`".`);if(c!==void 0&&xF.roles.get(t)?.props[`aria-busy`]===void 0)throw Error(`"aria-busy" is not supported on role "`+t+`".`);if(l!==void 0&&xF.roles.get(t)?.props[`aria-checked`]===void 0)throw Error(`"aria-checked" is not supported on role "`+t+`".`);if(u!==void 0&&xF.roles.get(t)?.props[`aria-pressed`]===void 0)throw Error(`"aria-pressed" is not supported on role "`+t+`".`);if(d!==void 0&&xF.roles.get(t)?.props[`aria-current`]===void 0)throw Error(`"aria-current" is not supported on role "`+t+`".`);if(f!==void 0&&t!==`heading`)throw Error(`Role "`+t+`" cannot have "level" property.`);if(m!==void 0&&xF.roles.get(t)?.props[`aria-valuenow`]===void 0)throw Error(`"aria-valuenow" is not supported on role "`+t+`".`);if(g!==void 0&&xF.roles.get(t)?.props[`aria-valuemax`]===void 0)throw Error(`"aria-valuemax" is not supported on role "`+t+`".`);if(h!==void 0&&xF.roles.get(t)?.props[`aria-valuemin`]===void 0)throw Error(`"aria-valuemin" is not supported on role "`+t+`".`);if(_!==void 0&&xF.roles.get(t)?.props[`aria-valuetext`]===void 0)throw Error(`"aria-valuetext" is not supported on role "`+t+`".`);if(p!==void 0&&xF.roles.get(t)?.props[`aria-expanded`]===void 0)throw Error(`"aria-expanded" is not supported on role "`+t+`".`);let v=new WeakMap;function y(e){return v.has(e)||v.set(e,pf(e)),v.get(e)}return Array.from(e.querySelectorAll(Xf(t))).filter(e=>{if(e.hasAttribute(`role`)){let n=e.getAttribute(`role`);if(o)return n.split(` `).filter(Boolean).some(e=>e===t);let[r]=n.split(` `);return r===t}return hf(e).some(e=>e===t)}).filter(e=>{if(s!==void 0)return s===yf(e);if(c!==void 0)return c===bf(e);if(l!==void 0)return l===xf(e);if(u!==void 0)return u===Sf(e);if(d!==void 0)return d===Cf(e);if(p!==void 0)return p===wf(e);if(f!==void 0)return f===Ef(e);if(m!==void 0||g!==void 0||h!==void 0||_!==void 0){let t=!0;return m!==void 0&&t&&(t=m===Df(e)),g!==void 0&&t&&(t=g===Of(e)),h!==void 0&&t&&(t=h===kf(e)),_!==void 0&&(t&&=cf(Af(e)??null,e,_,e=>e)),t}return!0}).filter(e=>i===void 0?!0:cf(Ld(e,{computedStyleSupportsPseudoElements:$d().computedStyleSupportsPseudoElements}),e,i,e=>e)).filter(e=>a===void 0?!0:cf(Fd(e,{computedStyleSupportsPseudoElements:$d().computedStyleSupportsPseudoElements}),e,a,e=>e)).filter(e=>r===!1?mf(e,{isSubtreeInaccessible:y})===!1:!0)},aL=e=>{let t=``;return t=e===void 0?``:typeof e==`string`?` and name "`+e+`"`:" and name `"+e+"`",t},oL=function(e,t,n){let{name:r}=n===void 0?{}:n;return`Found multiple elements with the role "`+t+`"`+aL(r)},sL=function(e,t,n){let{hidden:r=$d().defaultHidden,name:i,description:a}=n===void 0?{}:n;if($d()._disableExpensiveErrorDiagnostics)return`Unable to find role="`+t+`"`+aL(i);let o=``;Array.from(e.children).forEach(e=>{o+=vf(e,{hidden:r,includeDescription:a!==void 0})});let s;s=o.length===0?r===!1?"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":`There are no available roles.`:(`
|
||
Here are the `+(r===!1?`accessible`:`available`)+` roles:
|
||
|
||
`+o.replace(/\n/g,`
|
||
`).replace(/\n\s\s\n/g,`
|
||
|
||
`)+`
|
||
`).trim();let c=``;c=i===void 0?``:typeof i==`string`?` and name "`+i+`"`:" and name `"+i+"`";let l=``;return l=a===void 0?``:typeof a==`string`?` and description "`+a+`"`:" and description `"+a+"`",(`
|
||
Unable to find an `+(r===!1?`accessible `:``)+`element with the role "`+t+`"`+c+l+`
|
||
|
||
`+s).trim()},cL=QF(iL,iL.name,`queryAll`),[lL,uL,dL,fL,pL]=qf(iL,oL,sL),mL=()=>$d().testIdAttribute,hL=function(){var e=[...arguments];return Jd(e[0]),Vf(mL(),...e)},gL=(e,t)=>`Found multiple elements by: [`+mL()+`="`+t+`"]`,_L=(e,t)=>`Unable to find an element by: [`+mL()+`="`+t+`"]`,vL=QF(hL,hL.name,`queryAll`),[yL,bL,xL,SL,CL]=qf(hL,gL,_L),wL=Object.freeze({__proto__:null,queryAllByLabelText:uI,queryByLabelText:iI,getAllByLabelText:cI,getByLabelText:lI,findAllByLabelText:oI,findByLabelText:sI,queryByPlaceholderText:hI,queryAllByPlaceholderText:mI,getByPlaceholderText:_I,getAllByPlaceholderText:gI,findAllByPlaceholderText:vI,findByPlaceholderText:yI,queryByText:wI,queryAllByText:CI,getByText:EI,getAllByText:TI,findAllByText:DI,findByText:OI,queryByDisplayValue:NI,queryAllByDisplayValue:MI,getByDisplayValue:FI,getAllByDisplayValue:PI,findAllByDisplayValue:II,findByDisplayValue:LI,queryByAltText:UI,queryAllByAltText:HI,getByAltText:GI,getAllByAltText:WI,findAllByAltText:KI,findByAltText:qI,queryByTitle:$I,queryAllByTitle:QI,getByTitle:tL,getAllByTitle:eL,findAllByTitle:nL,findByTitle:rL,queryByRole:lL,queryAllByRole:cL,getAllByRole:uL,getByRole:dL,findAllByRole:fL,findByRole:pL,queryByTestId:yL,queryAllByTestId:vL,getByTestId:xL,getAllByTestId:bL,findAllByTestId:SL,findByTestId:CL}),TL=e=>!e||Array.isArray(e)&&!e.length,EL={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}}},DL={doubleClick:`dblClick`},Object.keys(EL).forEach(e=>{let{EventType:t,defaultInit:n}=EL[e],r=e.toLowerCase();tp[e]=(e,i)=>tp(r,e,i,{EventType:t,defaultInit:n}),ep[e]=(t,n)=>ep(t,tp[e](t,n))}),Object.keys(DL).forEach(e=>{let t=DL[e];ep[e]=function(){return ep[t](...arguments)}}),OL=(e,t,n)=>Array.isArray(e)?e.forEach(e=>GF(e,t,n)):GF(e,t,n),kL=function(e){if(e===void 0&&(e=Kd().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}let t=ap(e.innerHTML);return console.log(`Open this URL in your browser
|
||
|
||
`+t),t},AL={debug:OL,logTestingPlaygroundURL:kL},jL=typeof document<`u`&&document.body?Zf(document.body,wL,AL):Object.keys(wL).reduce((e,t)=>(e[t]=()=>{throw 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),AL),ML=class{getAsFile(){return this.file}getAsString(e){typeof this.data==`string`&&e(this.data)}webkitGetAsEntry(){throw Error(`not implemented`)}constructor(e,t){dp(this,`kind`,void 0),dp(this,`type`,void 0),dp(this,`file`,null),dp(this,`data`,void 0),typeof e==`string`?(this.kind=`string`,this.type=String(t),this.data=e):(this.kind=`file`,this.type=e.type,this.file=e)}},NL=class extends Array{add(...e){let t=new ML(e[0],e[1]);return this.push(t),t}clear(){this.splice(0,this.length)}remove(e){this.splice(e,1)}},PL=Symbol(`Manage ClipboardSub`),FL=globalThis,typeof FL.afterEach==`function`&&FL.afterEach(()=>{typeof globalThis.window<`u`&&xp(globalThis.window)}),typeof FL.afterAll==`function`&&FL.afterAll(()=>{typeof globalThis.window<`u`&&Sp(globalThis.window)}),IL=[`input:not([type=hidden]):not([disabled])`,`button:not([disabled])`,`select:not([disabled])`,`textarea:not([disabled])`,`[contenteditable=""]`,`[contenteditable="true"]`,`a[href]`,`[tabindex]:not([disabled])`].join(`, `),LL=(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})(LL||{}),RL=(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})(RL||{}),zL={},zL.click=(e,t,n)=>{let r=t.closest(`button,input,label,select,textarea`),i=r&&G(r,`label`)&&r.control;if(i&&i!==t)return()=>{Tp(i)&&(Hp(i),n.dispatchEvent(i,Ep(e)))};if(G(t,`input`,{type:`file`}))return()=>{Up(t),t.dispatchEvent(new(op(t)).Event(`fileDialog`)),Hp(t)}},BL=Symbol(`Displayed value in UI`),VL=Symbol(`Displayed selection in UI`),HL=Symbol(`Initial value to compare on blur`),UL=globalThis.parseInt,WL=(function(e){return e.email=`email`,e.password=`password`,e.search=`search`,e.telephone=`telephone`,e.text=`text`,e.url=`url`,e})(WL||{}),GL=Symbol(`Track programmatic changes for React workaround`),zL.cut=(e,t,n)=>()=>{Fp(t)&&wm(n,t,``,`deleteByCut`)},zL.keydown=(e,t,n)=>KL[e.key]?.call(KL,e,t,n)??qL(e,t,n),KL={ArrowDown:(e,t,n)=>{if(G(t,`input`,{type:`radio`}))return()=>Lm(n,t,1)},ArrowLeft:(e,t,n)=>G(t,`input`,{type:`radio`})?()=>Lm(n,t,-1):()=>Nm(t,-1),ArrowRight:(e,t,n)=>G(t,`input`,{type:`radio`})?()=>Lm(n,t,1):()=>Nm(t,1),ArrowUp:(e,t,n)=>{if(G(t,`input`,{type:`radio`}))return()=>Lm(n,t,-1)},Backspace:(e,t,n)=>{if(Fp(t))return()=>{wm(n,t,``,`deleteContentBackward`)}},Delete:(e,t,n)=>{if(Fp(t))return()=>{wm(n,t,``,`deleteContentForward`)}},End:(e,t)=>{if(G(t,[`input`,`textarea`])||jp(t))return()=>{let e=Am(t)?.length??0;Im(t,e,e)}},Home:(e,t)=>{if(G(t,[`input`,`textarea`])||jp(t))return()=>{Im(t,0,0)}},PageDown:(e,t)=>{if(G(t,[`input`]))return()=>{let e=qp(t).length;Im(t,e,e)}},PageUp:(e,t)=>{if(G(t,[`input`]))return()=>{Im(t,0,0)}},Tab:(e,t,n)=>()=>{let e=Mm(t,n.system.keyboard.modifiers.Shift);Hp(e),Lp(e)&&Qp(e,{anchorOffset:0,focusOffset:e.value.length})}},qL=(e,t,n)=>{if(e.code===`KeyA`&&n.system.keyboard.modifiers.Control)return()=>Pm(t)},zL.keypress=(e,t,n)=>{if(e.key===`Enter`){if(G(t,`button`)||G(t,`input`)&&JL.includes(t.type)||G(t,`a`)&&t.href)return()=>{n.dispatchUIEvent(t,`click`)};if(G(t,`input`)){let e=t.form,r=e?.querySelector(`input[type="submit"], button:not([type]), button[type="submit"]`);return r?()=>n.dispatchUIEvent(r,`click`):e&&YL.includes(t.type)&&e.querySelectorAll(`input`).length===1?()=>n.dispatchUIEvent(e,`submit`):void 0}}if(Fp(t)){let r=e.key===`Enter`?jp(t)&&!n.system.keyboard.modifiers.Shift?`insertParagraph`:`insertLineBreak`:`insertText`,i=e.key===`Enter`?`
|
||
`:e.key;return()=>wm(n,t,i,r)}},JL=[`button`,`color`,`file`,`image`,`reset`,`submit`],YL=[`email`,`month`,`password`,`search`,`tel`,`text`,`url`,`week`],zL.keyup=(e,t,n)=>XL[e.key]?.call(XL,e,t,n),XL={" ":(e,t,n)=>{if(Pp(t))return()=>n.dispatchUIEvent(t,`click`)}},zL.paste=(e,t,n)=>{if(Fp(t))return()=>{let r=e.clipboardData?.getData(`text`);r&&wm(n,t,r,`insertFromPaste`)}},ZL={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}}},QL=[`MouseEvent`,`PointerEvent`],$L={ClipboardEvent:[Gm],Event:[],FocusEvent:[Jm,Km],InputEvent:[Jm,qm],MouseEvent:[Jm,Ym,Zm],PointerEvent:[Jm,Ym,Zm,Qm],KeyboardEvent:[Jm,Ym,Xm]},eR=Symbol(`patched focus/blur methods`),tR=Symbol(`Interceptor for programmatical calls`),nR=Symbol(`Node prepared with document state workarounds`),rR=(function(e){return e[e.Trigger=2]=`Trigger`,e[e.Call=1]=`Call`,e})({}),iR=(function(e){return e[e.EachTrigger=4]=`EachTrigger`,e[e.EachApiCall=2]=`EachApiCall`,e[e.EachTarget=1]=`EachTarget`,e[e.Never=0]=`Never`,e})({}),aR=(function(e){return e[e.STANDARD=0]=`STANDARD`,e[e.LEFT=1]=`LEFT`,e[e.RIGHT=2]=`RIGHT`,e[e.NUMPAD=3]=`NUMPAD`,e})({}),oR=[`Alt`,`AltGraph`,`Control`,`Fn`,`Meta`,`Shift`,`Symbol`],sR=[`CapsLock`,`FnLock`,`NumLock`,`ScrollLock`,`SymbolLock`],cR=class{isKeyPressed(e){return this.pressed.has(String(e.code))}getPressedKeys(){return this.pressed.values().map(e=>e.keyDef)}async keydown(e,t){let n=String(t.key),r=String(t.code),i=kp(e.config.document);this.setKeydownTarget(i),this.pressed.add(r,t),_h(n)&&(this.modifiers[n]=!0);let a=e.dispatchUIEvent(i,`keydown`,{key:n,code:r});vh(n)&&!this.modifiers[n]&&(this.modifiers[n]=!0,this.modifierLockStart[n]=!0),a&&this.pressed.setUnprevented(r),a&&this.hasKeyPress(n)&&e.dispatchUIEvent(kp(e.config.document),`keypress`,{key:n,code:r,charCode:t.key===`Enter`?13:String(t.key).charCodeAt(0)})}async keyup(e,t){let n=String(t.key),r=String(t.code),i=this.pressed.isUnprevented(r);this.pressed.delete(r),_h(n)&&!this.pressed.values().find(e=>e.keyDef.key===n)&&(this.modifiers[n]=!1),e.dispatchUIEvent(kp(e.config.document),`keyup`,{key:n,code:r},!i),vh(n)&&this.modifiers[n]&&(this.modifierLockStart[n]?this.modifierLockStart[n]=!1:this.modifiers[n]=!1)}setKeydownTarget(e){e!==this.lastKeydownTarget&&(this.carryChar=``),this.lastKeydownTarget=e}hasKeyPress(e){return(e.length===1||e===`Enter`)&&!this.modifiers.Control&&!this.modifiers.Alt}constructor(e){gh(this,`system`,void 0),gh(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}),gh(this,`pressed`,new class{add(e,t){var n,r;(n=this.registry)[r=e]??(n[r]={keyDef:t,unpreventedDefault:!1})}has(e){return!!this.registry[e]}setUnprevented(e){let t=this.registry[e];t&&(t.unpreventedDefault=!0)}isUnprevented(e){var t;return!!((t=this.registry[e])!=null&&t.unpreventedDefault)}delete(e){delete this.registry[e]}values(){return Object.values(this.registry)}constructor(){gh(this,`registry`,{})}}),gh(this,`carryChar`,``),gh(this,`lastKeydownTarget`,void 0),gh(this,`modifierLockStart`,{}),this.system=e}},lR=[...`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:aR.LEFT},{code:`AltRight`,key:`Alt`,location:aR.RIGHT},{code:`ShiftLeft`,key:`Shift`,location:aR.LEFT},{code:`ShiftRight`,key:`Shift`,location:aR.RIGHT},{code:`ControlLeft`,key:`Control`,location:aR.LEFT},{code:`ControlRight`,key:`Control`,location:aR.RIGHT},{code:`MetaLeft`,key:`Meta`,location:aR.LEFT},{code:`MetaRight`,key:`Meta`,location:aR.RIGHT},{code:`OSLeft`,key:`OS`,location:aR.LEFT},{code:`OSRight`,key:`OS`,location:aR.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`}],uR=[{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`}],dR=class{getButtons(){let e=0;for(let t of Object.keys(this.pressed))e|=2**Number(t);return e}down(e){let t=bh(e.button);if(t in this.pressed){this.pressed[t].push(e);return}return this.pressed[t]=[e],t}up(e){let t=bh(e.button);if(t in this.pressed&&(this.pressed[t]=this.pressed[t].filter(t=>t.name!==e.name),this.pressed[t].length===0))return delete this.pressed[t],t}constructor(){yh(this,`pressed`,{})}},fR={primary:0,secondary:1,auxiliary:2,back:3,X1:3,forward:4,X2:4},pR={1:2,2:1},mR=class{get countPressed(){return this.pressedKeys.size}isPressed(e){return this.pressedKeys.has(e.name)}addPressed(e){return this.pressedKeys.add(e.name)}removePressed(e){return this.pressedKeys.delete(e.name)}constructor(){Sh(this,`pressedKeys`,new Set)}},hR=class{move(e,t,n){let r=this.position,i=this.getTarget(e);if(this.position=t,!kh(r,t))return;let a=this.getTarget(e),o=this.getEventInit(`mousemove`),[s,c]=Ch(i,a);return{leave:()=>{i!==a&&(e.dispatchUIEvent(i,`mouseout`,o),s.forEach(t=>e.dispatchUIEvent(t,`mouseleave`,o)))},enter:()=>{i!==a&&(e.dispatchUIEvent(a,`mouseover`,o),c.forEach(t=>e.dispatchUIEvent(t,`mouseenter`,o)))},move:()=>{n||(e.dispatchUIEvent(a,`mousemove`,o),this.modifySelecting(e))}}}down(e,t,n){let r=this.buttons.down(t);if(r===void 0)return;let i=this.getTarget(e);this.buttonDownTarget[r]=i;let a=this.getEventInit(`mousedown`,t.button),o=Dp(i);!n&&(o||e.dispatchUIEvent(i,`mousedown`,a))&&(this.startSelecting(e,a.detail),Hp(i)),!o&&xh(t.button)===2&&e.dispatchUIEvent(i,`contextmenu`,this.getEventInit(`contextmenu`,t.button))}up(e,t,n){let r=this.buttons.up(t);if(r===void 0)return;let i=this.getTarget(e);if(!Dp(i)){if(!n){let n=this.getEventInit(`mouseup`,t.button);e.dispatchUIEvent(i,`mouseup`,n),this.endSelecting()}let a=Ch(this.buttonDownTarget[r],i)[2][0];if(a){let n=this.getEventInit(`click`,t.button);n.detail&&(e.dispatchUIEvent(a,n.button===0?`click`:`auxclick`,n),n.button===0&&n.detail===2&&e.dispatchUIEvent(a,`dblclick`,{...this.getEventInit(`dblclick`,t.button),detail:n.detail}))}}}resetClickCount(){this.clickCount.reset()}getEventInit(e,t){let n={...this.position.coords};return n.button=xh(t),n.buttons=this.buttons.getButtons(),e===`mousedown`?n.detail=this.clickCount.getOnDown(n.button):e===`mouseup`?n.detail=this.clickCount.getOnUp(n.button):(e===`click`||e===`auxclick`)&&(n.detail=this.clickCount.incOnClick(n.button)),n}getTarget(e){return this.position.target??e.config.document.body}startSelecting(e,t){this.selecting=Eh({document:e.config.document,target:this.getTarget(e),node:this.position.caret?.node,offset:this.position.caret?.offset,clickCount:t})}modifySelecting(e){this.selecting&&Oh(this.selecting,{document:e.config.document,target:this.getTarget(e),node:this.position.caret?.node,offset:this.position.caret?.offset})}endSelecting(){this.selecting=void 0}constructor(){Ah(this,`position`,{}),Ah(this,`buttons`,new dR),Ah(this,`selecting`,void 0),Ah(this,`buttonDownTarget`,{}),Ah(this,`clickCount`,new class{incOnClick(e){let t=this.down[e]===void 0?void 0:Number(this.down[e])+1;return this.count=this.count[e]===void 0?{}:{[e]:Number(this.count[e])+1},t}getOnDown(e){return this.down={[e]:this.count[e]??0},this.count={[e]:this.count[e]??0},Number(this.count[e])+1}getOnUp(e){return this.down[e]===void 0?void 0:Number(this.down[e])+1}reset(){this.count={}}constructor(){Ah(this,`down`,{}),Ah(this,`count`,{})}})}},gR=Symbol(`Last check for pointer-events`),_R=class{init(e){let t=this.getTarget(e),[,n]=Ch(null,t),r=this.getEventInit();return Ph(e,t),e.dispatchUIEvent(t,`pointerover`,r),n.forEach(t=>e.dispatchUIEvent(t,`pointerenter`,r)),this}move(e,t){let n=this.position,r=this.getTarget(e);if(this.position=t,!kh(n,t))return;let i=this.getTarget(e),a=this.getEventInit(-1),[o,s]=Ch(r,i);return{leave:()=>{jh(e,r)&&r!==i&&(e.dispatchUIEvent(r,`pointerout`,a),o.forEach(t=>e.dispatchUIEvent(t,`pointerleave`,a)))},enter:()=>{Ph(e,i),r!==i&&(e.dispatchUIEvent(i,`pointerover`,a),s.forEach(t=>e.dispatchUIEvent(t,`pointerenter`,a)))},move:()=>{e.dispatchUIEvent(i,`pointermove`,a)}}}down(e,t=0){if(this.isDown)return;let n=this.getTarget(e);Ph(e,n),this.isDown=!0,this.isPrevented=!e.dispatchUIEvent(n,`pointerdown`,this.getEventInit(t))}up(e,t=0){if(!this.isDown)return;let n=this.getTarget(e);Ph(e,n),this.isPrevented=!1,this.isDown=!1,e.dispatchUIEvent(n,`pointerup`,this.getEventInit(t))}release(e){let t=this.getTarget(e),[n]=Ch(t,null),r=this.getEventInit();jh(e,t)&&(e.dispatchUIEvent(t,`pointerout`,r),n.forEach(t=>e.dispatchUIEvent(t,`pointerleave`,r))),this.isCancelled=!0}getTarget(e){return this.position.target??e.config.document.body}getEventInit(e){return{...this.position.coords,pointerId:this.pointerId,pointerType:this.pointerType,isPrimary:this.isPrimary,button:xh(e),buttons:this.buttons.getButtons()}}constructor({pointerId:e,pointerType:t,isPrimary:n},r){Rh(this,`pointerId`,void 0),Rh(this,`pointerType`,void 0),Rh(this,`isPrimary`,void 0),Rh(this,`buttons`,void 0),Rh(this,`isMultitouch`,!1),Rh(this,`isCancelled`,!1),Rh(this,`isDown`,!1),Rh(this,`isPrevented`,!1),Rh(this,`position`,{}),this.pointerId=e,this.pointerType=t,this.isPrimary=n,this.isMultitouch=!n,this.buttons=r}},vR=class{isKeyPressed(e){return this.devices.get(e.pointerType).isPressed(e)}async press(e,t,n){this.devices.get(t.pointerType).addPressed(t),this.buttons.down(t);let r=this.getPointerName(t),i=t.pointerType===`touch`?this.pointers.new(r,t.pointerType,this.buttons):this.pointers.get(r);i.position=n,i.pointerType!==`touch`&&(this.mouse.position=n),i.pointerType===`touch`&&i.init(e),i.down(e,t.button),i.pointerType!==`touch`&&this.mouse.down(e,t,i.isPrevented)}async move(e,t,n){let r=this.pointers.get(t),i=r.move(e,n),a=r.pointerType===`touch`?void 0:this.mouse.move(e,n,r.isPrevented);i?.leave(),a?.leave(),i?.enter(),a?.enter(),i?.move(),a?.move()}async release(e,t,n){let r=this.devices.get(t.pointerType);r.removePressed(t),this.buttons.up(t);let i=this.pointers.get(this.getPointerName(t)),a=i.isPrevented;if(i.position=n,i.pointerType!==`touch`&&(this.mouse.position=n),r.countPressed===0&&i.up(e,t.button),i.pointerType===`touch`&&i.release(e),i.pointerType===`touch`&&!i.isMultitouch){let r=this.mouse.move(e,n,a);r?.leave(),r?.enter(),r?.move(),this.mouse.down(e,t,a)}if(!i.isMultitouch){let r=this.mouse.move(e,n,a);r?.leave(),r?.enter(),r?.move(),this.mouse.up(e,t,a)}}getPointerName(e){return e.pointerType===`touch`?e.name:e.pointerType}getPreviousPosition(e){return this.pointers.has(e)?this.pointers.get(e).position:void 0}resetClickCount(){this.mouse.resetClickCount()}getMouseTarget(e){return this.mouse.position.target??e.config.document.body}setMousePosition(e){this.mouse.position=e,this.pointers.get(`mouse`).position=e}constructor(e){zh(this,`system`,void 0),zh(this,`mouse`,void 0),zh(this,`buttons`,void 0),zh(this,`devices`,new class{get(e){var t,n;return(t=this.registry)[n=e]??(t[n]=new mR)}constructor(){zh(this,`registry`,{})}}),zh(this,`pointers`,new class{new(e,t,n){let r=t!==`touch`||!Object.values(this.registry).some(e=>e.pointerType===`touch`&&!e.isCancelled);return r||Object.values(this.registry).forEach(e=>{e.pointerType===t&&!e.isCancelled&&(e.isMultitouch=!0)}),this.registry[e]=new _R({pointerId:this.nextId++,pointerType:t,isPrimary:r},n),this.registry[e]}get(e){if(!this.has(e))throw Error(`Trying to access pointer "${e}" which does not exist.`);return this.registry[e]}has(e){return e in this.registry}constructor(){zh(this,`registry`,{}),zh(this,`nextId`,1)}}),this.system=e,this.buttons=new dR,this.mouse=new hR,this.pointers.new(`mouse`,`mouse`,this.buttons)}},yR=class{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(){Bh(this,`keyboard`,new cR(this)),Bh(this,`pointer`,new vR(this))}},bR=(function(e){return e[`{`]=`}`,e[`[`]=`]`,e})(bR||{}),xR=Symbol(`files and value properties are mocked`),SR={click:Vh,dblClick:Hh,tripleClick:Uh,hover:Wh,unhover:Gh,tab:Kh,keyboard:eg,copy:ag,cut:og,paste:sg,pointer:ug,clear:mg,deselectOptions:gg,selectOptions:hg,type:vg,upload:xg},CR={applyAccept:!0,autoModify:!0,delay:0,document:globalThis.document,keyboardMap:lR,pointerMap:uR,pointerEventsCheck:iR.EachApiCall,skipAutoClose:!1,skipClick:!1,skipHover:!1,writeToClipboard:!1,advanceTimers:()=>Promise.resolve()},wR={...CR,writeToClipboard:!0},TR={},Xv(TR,{clear:()=>Mg,click:()=>Ng,copy:()=>Pg,cut:()=>Fg,dblClick:()=>Ig,deselectOptions:()=>Lg,hover:()=>Rg,keyboard:()=>zg,paste:()=>Vg,pointer:()=>Bg,selectOptions:()=>Hg,tab:()=>qg,tripleClick:()=>Ug,type:()=>Wg,unhover:()=>Gg,upload:()=>Kg}),ER={...TR,setup:Eg},DR=ni({...pF},{getKeys:e=>Object.keys(e).filter(e=>e!==`eventWrapper`),intercept:(e,t)=>t[0]===`fireEvent`||e.startsWith(`find`)||e.startsWith(`waitFor`)}),DR.screen=new Proxy(DR.screen,{get(e,t,n){return typeof window<`u`&&globalThis.location?.href?.includes(`viewMode=docs`)&&QT.warn(b`
|
||
You are using Testing Library's \`screen\` object while the story is rendered in docs mode. This will likely lead to issues, as multiple stories are rendered in the same page and therefore screen will potentially find multiple elements. Use the \`canvas\` utility from the story context instead, which will scope the queries to each story's canvas.
|
||
|
||
More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#querying-the-canvas
|
||
`),Reflect.get(e,t,n)}}),{buildQueries:OR,configure:kR,createEvent:AR,fireEvent:jR,findAllByAltText:MR,findAllByDisplayValue:NR,findAllByLabelText:PR,findAllByPlaceholderText:FR,findAllByRole:IR,findAllByTestId:LR,findAllByText:RR,findAllByTitle:zR,findByAltText:BR,findByDisplayValue:VR,findByLabelText:HR,findByPlaceholderText:UR,findByRole:WR,findByTestId:GR,findByText:KR,findByTitle:qR,getAllByAltText:JR,getAllByDisplayValue:YR,getAllByLabelText:XR,getAllByPlaceholderText:ZR,getAllByRole:QR,getAllByTestId:$R,getAllByText:ez,getAllByTitle:tz,getByAltText:nz,getByDisplayValue:rz,getByLabelText:iz,getByPlaceholderText:az,getByRole:oz,getByTestId:sz,getByText:cz,getByTitle:lz,getConfig:uz,getDefaultNormalizer:dz,getElementError:fz,getNodeText:pz,getQueriesForElement:mz,getRoles:hz,getSuggestedQuery:gz,isInaccessible:_z,logDOM:vz,logRoles:yz,prettyDOM:bz,queries:xz,queryAllByAltText:Sz,queryAllByAttribute:Cz,queryAllByDisplayValue:wz,queryAllByLabelText:Tz,queryAllByPlaceholderText:Ez,queryAllByRole:Dz,queryAllByTestId:Oz,queryAllByText:kz,queryAllByTitle:Az,queryByAltText:jz,queryByAttribute:Mz,queryByDisplayValue:Nz,queryByLabelText:Pz,queryByPlaceholderText:Fz,queryByRole:Iz,queryByTestId:Lz,queryByText:Rz,queryByTitle:zz,queryHelpers:Bz,screen:Vz,waitFor:Hz,waitForElementToBeRemoved:Uz,within:Wz,prettyFormat:Gz}=DR,Kz=ER,{userEvent:qz}=ni({userEvent:ER},{intercept:!0,getKeys:e=>Object.keys(e).filter(e=>e!==`eventWrapper`)}),{expect:Jz}=ni({expect:oF},{getKeys:(e,t)=>{if(`constructor`in e&&e.constructor===X){let n=[`assert`,`__methods`,`__flags`,`_obj`],r=Object.keys(Object.getPrototypeOf(e)).filter(e=>!n.includes(e));return t>2?r:[...r,`not`]}return`any`in e?Object.keys(e).filter(e=>e!==`any`):Object.keys(e)},mutate:!0,intercept:e=>e!==`expect`}),Yz={mock:()=>{}},Xz=!1,Zz=e=>{let{parameters:t}=e;t?.actions?.disable||Xz||(wu((e,t)=>{let n=e.getMockName();n!==`spy`&&n!==`vi.fn()`&&(!/^next\/.*::/.test(n)||[`next/router::useRouter()`,`next/navigation::useRouter()`,`next/navigation::redirect`,`next/cache::`,`next/headers::cookies().set`,`next/headers::cookies().delete`,`next/headers::headers().set`,`next/headers::headers().delete`].some(e=>n.startsWith(e)))&&Iv(n)(t)}),Xz=!0)},Qz=[Zz],$z=()=>({...oA,...dA}),eB=`storybook/background`,tB=`backgrounds`,`${eB}`,nB={light:{name:`light`,value:`#F8F8F8`},dark:{name:`dark`,value:`#333`}},{document:rB}=globalThis,iB=()=>globalThis?.matchMedia?!!globalThis.matchMedia(`(prefers-reduced-motion: reduce)`)?.matches:!1,aB=e=>{(Array.isArray(e)?e:[e]).forEach(oB)},oB=e=>{if(!rB)return;let t=rB.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},sB=(e,t)=>{if(!rB)return;let n=rB.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let n=rB.createElement(`style`);n.setAttribute(`id`,e),n.innerHTML=t,rB.head.appendChild(n)}},cB=(e,t,n)=>{if(!rB)return;let r=rB.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let r=rB.createElement(`style`);r.setAttribute(`id`,e),r.innerHTML=t;let i=`addon-backgrounds-grid${n?`-docs-${n}`:``}`,a=rB.getElementById(i);a?a.parentElement?.insertBefore(r,a):rB.head.appendChild(r)}},lB={cellSize:100,cellAmount:10,opacity:.8},uB=`addon-backgrounds`,dB=`addon-backgrounds-grid`,fB=iB()?``:`transition: background-color 0.3s;`,pB=(e,t)=>{let{globals:n={},parameters:r={},viewMode:i,id:a}=t,{options:o=nB,disable:s,grid:c=lB}=r[tB]||{},l=n[tB]||{},u=typeof l==`string`?l:l?.value,d=u?o[u]:void 0,f=typeof d==`string`?d:d?.value||`transparent`,p=typeof l==`string`?!1:l.grid||!1,m=!!d&&!s,h=i===`docs`?`#anchor--${a} .docs-story`:`.sb-show-main`,g=i===`docs`?`#anchor--${a} .docs-story`:`.sb-show-main`,_=r.layout===void 0||r.layout===`padded`,v=i===`docs`?20:_?16:0,{cellAmount:y,cellSize:b,opacity:x,offsetX:S=v,offsetY:C=v}=c,w=i===`docs`?`${uB}-docs-${a}`:`${uB}-color`,T=i===`docs`?a:null;Ke(()=>{let e=`
|
||
${h} {
|
||
background: ${f} !important;
|
||
${fB}
|
||
}`;if(!m){aB(w);return}cB(w,e,T)},[h,w,T,m,f]);let E=i===`docs`?`${dB}-docs-${a}`:`${dB}`;return Ke(()=>{if(!p){aB(E);return}sB(E,`
|
||
${g} {
|
||
background-size: ${[`${b*y}px ${b*y}px`,`${b*y}px ${b*y}px`,`${b}px ${b}px`,`${b}px ${b}px`].join(`, `)} !important;
|
||
background-position: ${S}px ${C}px, ${S}px ${C}px, ${S}px ${C}px, ${S}px ${C}px !important;
|
||
background-blend-mode: difference !important;
|
||
background-image: linear-gradient(rgba(130, 130, 130, ${x}) 1px, transparent 1px),
|
||
linear-gradient(90deg, rgba(130, 130, 130, ${x}) 1px, transparent 1px),
|
||
linear-gradient(rgba(130, 130, 130, ${x/2}) 1px, transparent 1px),
|
||
linear-gradient(90deg, rgba(130, 130, 130, ${x/2}) 1px, transparent 1px) !important;
|
||
}
|
||
`)},[y,b,g,E,p,S,C,x]),e()},mB=globalThis.FEATURES?.backgrounds?[pB]:[],hB={[tB]:{grid:{cellSize:20,opacity:.5,cellAmount:5},disable:!1}},gB={[tB]:{value:void 0,grid:!1}},_B=()=>({decorators:mB,parameters:hB,initialGlobals:gB}),{step:vB}=ni({step:async(e,t,n)=>t(n)},{intercept:!0}),yB=()=>({parameters:{throwPlayFunctionExceptions:!1},runStep:vB}),bB=e=>{let t=getComputedStyle(e),n=e.getBoundingClientRect();return!(n.width>0&&n.height>0&&t.visibility!==`hidden`&&Number(t.opacity)>0&&t.display!==`none`)},xB=async({reporting:e,canvasElement:t,globals:n})=>{try{if(!n.ghostStories)return;let r=bB(t.firstElementChild??t);r&&e.addReport({type:`render-analysis`,version:1,result:{emptyRender:r},status:`warning`})}catch{}},SB=()=>({afterEach:xB}),CB=`storybook/highlight`,wB=`${CB}/add`,TB=`${CB}/remove`,EB=`${CB}/reset`,DB=`${CB}/scroll-into-view`,OB=2147483647,kB=28,AB={chevronLeft:[`M9.10355 10.1464C9.29882 10.3417 9.29882 10.6583 9.10355 10.8536C8.90829 11.0488 8.59171 11.0488 8.39645 10.8536L4.89645 7.35355C4.70118 7.15829 4.70118 6.84171 4.89645 6.64645L8.39645 3.14645C8.59171 2.95118 8.90829 2.95118 9.10355 3.14645C9.29882 3.34171 9.29882 3.65829 9.10355 3.85355L5.95711 7L9.10355 10.1464Z`],chevronRight:[`M4.89645 10.1464C4.70118 10.3417 4.70118 10.6583 4.89645 10.8536C5.09171 11.0488 5.40829 11.0488 5.60355 10.8536L9.10355 7.35355C9.29882 7.15829 9.29882 6.84171 9.10355 6.64645L5.60355 3.14645C5.40829 2.95118 5.09171 2.95118 4.89645 3.14645C4.70118 3.34171 4.70118 3.65829 4.89645 3.85355L8.04289 7L4.89645 10.1464Z`],info:[`M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z`,`M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z`],shareAlt:[`M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z`,`M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z`]},jB=`svg,path,rect,circle,line,polyline,polygon,ellipse,text`.split(`,`),MB=(e,t={},n)=>{let r=jB.includes(e)?document.createElementNS(`http://www.w3.org/2000/svg`,e):document.createElement(e);return Object.entries(t).forEach(([e,t])=>{/[A-Z]/.test(e)?(e===`onClick`&&(r.addEventListener(`click`,t),r.addEventListener(`keydown`,e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),t())})),e===`onMouseEnter`&&r.addEventListener(`mouseenter`,t),e===`onMouseLeave`&&r.addEventListener(`mouseleave`,t)):r.setAttribute(e,t)}),n?.forEach(e=>{if(!(e==null||e===!1))try{r.appendChild(e)}catch{r.appendChild(document.createTextNode(String(e)))}}),r},NB=e=>AB[e]&&MB(`svg`,{width:`14`,height:`14`,viewBox:`0 0 14 14`,xmlns:`http://www.w3.org/2000/svg`},AB[e].map(e=>MB(`path`,{fill:`currentColor`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:e}))),PB=e=>{if(`elements`in e){let{elements:t,color:n,style:r}=e;return{id:void 0,priority:0,selectors:t,styles:{outline:`2px ${r} ${n}`,outlineOffset:`2px`,boxShadow:`0 0 0 6px rgba(255,255,255,0.6)`},menu:void 0}}let{menu:t,...n}=e;return{id:void 0,priority:0,styles:{outline:`2px dashed #029cfd`},...n,menu:Array.isArray(t)?t.every(Array.isArray)?t:[t]:void 0}},FB=e=>e instanceof Function,IB=new Map,LB=new Map,RB=new Map,zB=e=>{let t=Symbol();return LB.set(t,[]),IB.set(t,e),{get:()=>IB.get(t),set:e=>{let n=IB.get(t),r=FB(e)?e(n):e;r!==n&&(IB.set(t,r),LB.get(t)?.forEach(e=>{RB.get(e)?.(),RB.set(e,e(r))}))},subscribe:e=>(LB.get(t)?.push(e),()=>{let n=LB.get(t);n&&LB.set(t,n.filter(t=>t!==e))}),teardown:()=>{LB.get(t)?.forEach(e=>{RB.get(e)?.(),RB.delete(e)}),LB.delete(t),IB.delete(t)}}},BB=e=>{let t=document.getElementById(`storybook-root`),n=new Map;for(let r of e){let{priority:e=0}=r;for(let i of r.selectors){let a=[...document.querySelectorAll(`:is(${i}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...t?.querySelectorAll(i)||[]];for(let t of a){let a=n.get(t);(!a||a.priority<=e)&&n.set(t,{...r,priority:e,selectors:Array.from(new Set((a?.selectors||[]).concat(i)))})}}}return n},VB=e=>Array.from(e.entries()).map(([e,{selectors:t,styles:n,hoverStyles:r,focusStyles:i,menu:a}])=>{let{top:o,left:s,width:c,height:l}=e.getBoundingClientRect(),{position:u}=getComputedStyle(e);return{element:e,selectors:t,styles:n,hoverStyles:r,focusStyles:i,menu:a,top:u===`fixed`?o:o+window.scrollY,left:u===`fixed`?s:s+window.scrollX,width:c,height:l}}).sort((e,t)=>t.width*t.height-e.width*e.height),HB=(e,t)=>{let n=e.getBoundingClientRect(),{x:r,y:i}=t;return n?.top&&n?.left&&r>=n.left&&r<=n.left+n.width&&i>=n.top&&i<=n.top+n.height},UB=(e,t,n)=>{if(!t||!n)return!1;let{left:r,top:i,width:a,height:o}=e;o<kB&&(i-=Math.round((kB-o)/2),o=kB),a<kB&&(r-=Math.round((kB-a)/2),a=kB),t.style.position===`fixed`&&(r+=window.scrollX,i+=window.scrollY);let{x:s,y:c}=n;return s>=r&&s<=r+a&&c>=i&&c<=i+o},WB=(e,t,n={})=>{let{x:r,y:i}=t,{margin:a=5,topOffset:o=0,centered:s=!1}=n,{scrollX:c,scrollY:l,innerHeight:u,innerWidth:d}=window,f=Math.min(e.style.position===`fixed`?i-l:i,u-e.clientHeight-a-o+l),p=s?e.clientWidth/2:0,m=e.style.position===`fixed`?Math.max(Math.min(r-c,d-p-a),p+a):Math.max(Math.min(r,d-p-a+c),p+a+c);Object.assign(e.style,{...m!==r&&{left:`${m}px`},...f!==i&&{top:`${f}px`}})},GB=e=>{window.HTMLElement.prototype.hasOwnProperty(`showPopover`)&&e.showPopover()},KB=e=>{window.HTMLElement.prototype.hasOwnProperty(`showPopover`)&&e.hidePopover()},qB=e=>({top:e.top,left:e.left,width:e.width,height:e.height,selectors:e.selectors,element:{attributes:Object.fromEntries(Array.from(e.element.attributes).map(e=>[e.name,e.value])),localName:e.element.localName,tagName:e.element.tagName,outerHTML:e.element.outerHTML}}),JB=`storybook-highlights-menu`,YB=`storybook-highlights-root`,XB=`storybook-root`,ZB=e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,n=zB([]),r=zB(new Map),i=zB([]),a=zB(),o=zB(),s=zB([]),c=zB([]),l=zB(),u=zB(),d=t.getElementById(YB);n.subscribe(()=>{d||(d=MB(`div`,{id:YB}),t.body.appendChild(d))}),n.subscribe(e=>{let n=t.getElementById(XB);if(!n)return;r.set(BB(e));let i=new MutationObserver(()=>r.set(BB(e)));return i.observe(n,{subtree:!0,childList:!0}),()=>{i.disconnect()}}),r.subscribe(e=>{let n=()=>requestAnimationFrame(()=>i.set(VB(e))),r=new ResizeObserver(n);r.observe(t.body),Array.from(e.keys()).forEach(e=>r.observe(e));let a=Array.from(t.body.querySelectorAll(`*`)).filter(e=>{let{overflow:t,overflowX:n,overflowY:r}=window.getComputedStyle(e);return[`auto`,`scroll`].some(e=>[t,n,r].includes(e))});return a.forEach(e=>e.addEventListener(`scroll`,n)),()=>{r.disconnect(),a.forEach(e=>e.removeEventListener(`scroll`,n))}}),r.subscribe(e=>{let n=Array.from(e.keys()).filter(({style:e})=>e.position===`sticky`),r=()=>requestAnimationFrame(()=>{i.set(e=>e.map(e=>{if(n.includes(e.element)){let{top:t,left:n}=e.element.getBoundingClientRect();return{...e,top:t+window.scrollY,left:n+window.scrollX}}return e}))});return t.addEventListener(`scroll`,r),()=>t.removeEventListener(`scroll`,r)}),r.subscribe(e=>{s.set(t=>t.filter(({element:t})=>e.has(t)))}),s.subscribe(e=>{e.length?(u.set(t=>e.some(e=>e.element===t?.element)?t:void 0),l.set(t=>e.some(e=>e.element===t?.element)?t:void 0)):(u.set(void 0),l.set(void 0),a.set(void 0))});let f=new Map(new Map);n.subscribe(e=>{e.forEach(({keyframes:e})=>{if(e){let n=f.get(e);n||(n=t.createElement(`style`),n.setAttribute(`data-highlight`,`keyframes`),f.set(e,n),t.head.appendChild(n)),n.innerHTML=e}}),f.forEach((t,n)=>{e.some(e=>e.keyframes===n)||(t.remove(),f.delete(n))})});let p=new Map(new Map);i.subscribe(e=>{e.forEach(e=>{let t=p.get(e.element);if(d&&!t){let n={popover:`manual`,"data-highlight-dimensions":`w${e.width.toFixed(0)}h${e.height.toFixed(0)}`,"data-highlight-coordinates":`x${e.left.toFixed(0)}y${e.top.toFixed(0)}`};t=d.appendChild(MB(`div`,n,[MB(`div`)])),p.set(e.element,t)}}),p.forEach((t,n)=>{e.some(({element:e})=>e===n)||(t.remove(),p.delete(n))})}),i.subscribe(e=>{let n=e.filter(e=>e.menu);if(!n.length)return;let r=e=>{requestAnimationFrame(()=>{let r=t.getElementById(JB),i={x:e.pageX,y:e.pageY};if(r&&!HB(r,i)){let e=n.filter(e=>UB(e,p.get(e.element),i));a.set(e.length?i:void 0),s.set(e)}})};return t.addEventListener(`click`,r),()=>t.removeEventListener(`click`,r)});let m=()=>{let e=t.getElementById(JB),n=o.get();!n||e&&HB(e,n)||c.set(e=>{let t=i.get().filter(e=>UB(e,p.get(e.element),n)),r=e.filter(e=>t.includes(e)),a=t.filter(t=>!e.includes(t)),o=e.length-r.length;return a.length||o?[...r,...a]:e})};o.subscribe(m),i.subscribe(m);let h=()=>{let e=u.get(),t=e?[e]:s.get(),n=t.length===1?t[0]:l.get(),r=a.get()!==void 0;i.get().forEach(e=>{let i=p.get(e.element);if(i){let a=n===e,o=r?n?a:t.includes(e):c.get()?.includes(e);Object.assign(i.style,{animation:`none`,background:`transparent`,border:`none`,boxSizing:`border-box`,outline:`none`,outlineOffset:`0px`,...e.styles,...o?e.hoverStyles:{},...a?e.focusStyles:{},position:getComputedStyle(e.element).position===`fixed`?`fixed`:`absolute`,zIndex:OB-10,top:`${e.top}px`,left:`${e.left}px`,width:`${e.width}px`,height:`${e.height}px`,margin:0,padding:0,cursor:e.menu&&o?`pointer`:`default`,pointerEvents:e.menu?`auto`:`none`,display:`flex`,alignItems:`center`,justifyContent:`center`,overflow:`visible`}),Object.assign(i.children[0].style,{width:`100%`,height:`100%`,minHeight:`${kB}px`,minWidth:`${kB}px`,boxSizing:`content-box`,padding:i.style.outlineWidth||`0px`}),GB(i)}})};i.subscribe(h),s.subscribe(h),c.subscribe(h),l.subscribe(h),u.subscribe(h);let g=()=>{if(!d)return;let n=t.getElementById(JB);if(n)n.innerHTML=``;else{let e={id:JB,popover:`manual`};n=d.appendChild(MB(`div`,e)),d.appendChild(MB(`style`,{},[`
|
||
#${JB} {
|
||
position: absolute;
|
||
z-index: ${OB};
|
||
width: 300px;
|
||
padding: 0px;
|
||
margin: 15px 0 0 0;
|
||
transform: translateX(-50%);
|
||
font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||
font-size: 12px;
|
||
background: white;
|
||
border: none;
|
||
border-radius: 6px;
|
||
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
|
||
color: #2E3438;
|
||
}
|
||
#${JB} ul {
|
||
list-style: none;
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
#${JB} > ul {
|
||
max-height: 300px;
|
||
overflow-y: auto;
|
||
padding: 4px 0;
|
||
}
|
||
#${JB} li {
|
||
padding: 0 4px;
|
||
margin: 0;
|
||
}
|
||
#${JB} li > :not(ul) {
|
||
display: flex;
|
||
padding: 8px;
|
||
margin: 0;
|
||
align-items: center;
|
||
gap: 8px;
|
||
border-radius: 4px;
|
||
}
|
||
#${JB} button {
|
||
width: 100%;
|
||
border: 0;
|
||
background: transparent;
|
||
color: inherit;
|
||
text-align: left;
|
||
font-family: inherit;
|
||
font-size: inherit;
|
||
}
|
||
#${JB} button:focus-visible {
|
||
outline-color: #029CFD;
|
||
}
|
||
#${JB} button:hover {
|
||
background: rgba(2, 156, 253, 0.07);
|
||
color: #029CFD;
|
||
cursor: pointer;
|
||
}
|
||
#${JB} li code {
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
line-height: 16px;
|
||
font-size: 11px;
|
||
}
|
||
#${JB} li svg {
|
||
flex-shrink: 0;
|
||
margin: 1px;
|
||
color: #73828C;
|
||
}
|
||
#${JB} li > button:hover svg, #${JB} li > button:focus-visible svg {
|
||
color: #029CFD;
|
||
}
|
||
#${JB} .element-list li svg {
|
||
display: none;
|
||
}
|
||
#${JB} li.selectable svg, #${JB} li.selected svg {
|
||
display: block;
|
||
}
|
||
#${JB} .menu-list {
|
||
border-top: 1px solid rgba(38, 85, 115, 0.15);
|
||
}
|
||
#${JB} .menu-list > li:not(:last-child) {
|
||
padding-bottom: 4px;
|
||
margin-bottom: 4px;
|
||
border-bottom: 1px solid rgba(38, 85, 115, 0.15);
|
||
}
|
||
#${JB} .menu-items, #${JB} .menu-items li {
|
||
padding: 0;
|
||
}
|
||
#${JB} .menu-item {
|
||
display: flex;
|
||
}
|
||
#${JB} .menu-item-content {
|
||
display: flex;
|
||
flex-direction: column;
|
||
flex-grow: 1;
|
||
}
|
||
`]))}let r=u.get(),i=r?[r]:s.get();if(i.length&&(n.style.position=getComputedStyle(i[0].element).position===`fixed`?`fixed`:`absolute`,n.appendChild(MB(`ul`,{class:`element-list`},i.map(e=>{let t=i.length>1&&!!e.menu?.some(t=>t.some(t=>!t.selectors||t.selectors.some(t=>e.selectors.includes(t)))),n=t?{class:`selectable`,onClick:()=>u.set(e),onMouseEnter:()=>l.set(e),onMouseLeave:()=>l.set(void 0)}:r?{class:`selected`,onClick:()=>u.set(void 0)}:{},a=t||r;return MB(`li`,n,[MB(a?`button`:`div`,a?{type:`button`}:{},[r?NB(`chevronLeft`):null,MB(`code`,{},[e.element.outerHTML]),t?NB(`chevronRight`):null])])})))),u.get()||s.get().length===1){let t=u.get()||s.get()[0],r=t.menu?.filter(e=>e.some(e=>!e.selectors||e.selectors.some(e=>t.selectors.includes(e))));r?.length&&n.appendChild(MB(`ul`,{class:`menu-list`},r.map(n=>MB(`li`,{},[MB(`ul`,{class:`menu-items`},n.map(({id:n,title:r,description:i,iconLeft:a,iconRight:o,clickEvent:s})=>{let c=s&&(()=>e.emit(s,n,qB(t)));return MB(`li`,{},[MB(c?`button`:`div`,c?{class:`menu-item`,type:`button`,onClick:c}:{class:`menu-item`},[a?NB(a):null,MB(`div`,{class:`menu-item-content`},[MB(i?`strong`:`span`,{},[r]),i&&MB(`span`,{},[i])]),o?NB(o):null])])}))]))))}let o=a.get();o?(Object.assign(n.style,{display:`block`,left:`${n.style.position===`fixed`?o.x-window.scrollX:o.x}px`,top:`${n.style.position===`fixed`?o.y-window.scrollY:o.y}px`}),GB(n),requestAnimationFrame(()=>WB(n,o,{topOffset:15,centered:!0}))):(KB(n),Object.assign(n.style,{display:`none`}))};s.subscribe(g),u.subscribe(g);let _=e=>{let t=PB(e);n.set(e=>{let n=t.id?e.filter(e=>e.id!==t.id):e;return t.selectors?.length?[...n,t]:n})},v=e=>{e&&n.set(t=>t.filter(t=>t.id!==e))},y=()=>{n.set([]),r.set(new Map),i.set([]),a.set(void 0),o.set(void 0),s.set([]),c.set([]),l.set(void 0),u.set(void 0)},b;t.body.addEventListener(`mousemove`,e=>{requestAnimationFrame(()=>o.set({x:e.pageX,y:e.pageY}))}),e.on(wB,_),e.on(TB,v),e.on(EB,y),e.on(DB,(e,r)=>{let i=`scrollIntoView-highlight`;clearTimeout(b),v(i);let a=t.querySelector(e);if(!a){console.warn(`Cannot scroll into view: ${e} not found`);return}a.scrollIntoView({behavior:`smooth`,block:`center`,...r});let o=`kf-${Math.random().toString(36).substring(2,15)}`;n.set(t=>[...t,{id:i,priority:1e3,selectors:[e],styles:{outline:`2px solid #1EA7FD`,outlineOffset:`-1px`,animation:`${o} 3s linear forwards`},keyframes:`@keyframes ${o} {
|
||
0% { outline: 2px solid #1EA7FD; }
|
||
20% { outline: 2px solid #1EA7FD00; }
|
||
40% { outline: 2px solid #1EA7FD; }
|
||
60% { outline: 2px solid #1EA7FD00; }
|
||
80% { outline: 2px solid #1EA7FD; }
|
||
100% { outline: 2px solid #1EA7FD00; }
|
||
}`}]),b=setTimeout(()=>v(i),3500)}),e.on(sT,({newPhase:e})=>{e===`loading`&&y()})},globalThis?.FEATURES?.highlight&&qk?.ready&&qk.ready().then(ZB),QB=()=>({}),$B=`storybook/measure-addon`,`${$B}`,eV=`measureEnabled`,`${$B}`,`${$B}`,`${$B}`,tV={},nV={margin:`#f6b26b`,border:`#ffe599`,padding:`#93c47d`,content:`#6fa8dc`,text:`#232020`},rV=6,iV={margin:`#f6b26ba8`,border:`#ffe599a8`,padding:`#93c47d8c`,content:`#6fa8dca8`},aV=30,oV=(e,t)=>{let n=q.document.elementFromPoint(e,t),r=n=>{if(n&&n.shadowRoot){let i=n.shadowRoot.elementFromPoint(e,t);return n.isEqualNode(i)?n:i.shadowRoot?r(i):i}return n};return r(n)||n},cV={x:0,y:0},lV=(e,t)=>{let{measureEnabled:n}=t.globals||{};return Ke(()=>{if(typeof globalThis.document>`u`)return;let e=e=>{window.requestAnimationFrame(()=>{e.stopPropagation(),cV.x=e.clientX,cV.y=e.clientY})};return globalThis.document.addEventListener(`pointermove`,e),()=>{globalThis.document.removeEventListener(`pointermove`,e)}},[]),Ke(()=>{let e=e=>{window.requestAnimationFrame(()=>{e.stopPropagation(),T_(e.clientX,e.clientY)})},r=()=>{window.requestAnimationFrame(()=>{e_()})};return t.viewMode===`story`&&n&&(globalThis.document.addEventListener(`pointerover`,e),Zg(),globalThis.window.addEventListener(`resize`,r),T_(cV.x,cV.y)),()=>{globalThis.window.removeEventListener(`resize`,r),t_()}},[n,t.viewMode]),e()},uV=globalThis.FEATURES?.measure?[lV]:[],dV={[eV]:!1},fV=()=>({decorators:uV,initialGlobals:dV}),pV=`outline`,mV=e=>{(Array.isArray(e)?e:[e]).forEach(hV)},hV=e=>{let t=typeof e==`string`?e:e.join(``),n=q.document.getElementById(t);n&&n.parentElement&&n.parentElement.removeChild(n)},gV=(e,t)=>{let n=q.document.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let n=q.document.createElement(`style`);n.setAttribute(`id`,e),n.innerHTML=t,q.document.head.appendChild(n)}},_V=(e,t)=>{let n=t.globals||{},r=[!0,`true`].includes(n[pV]),i=t.viewMode===`docs`,a=ze(()=>E_(i?`[data-story-block="true"]`:`.sb-show-main`),[t]);return Ke(()=>{let e=i?`addon-outline-docs-${t.id}`:`addon-outline`;return r?gV(e,a):mV(e),()=>{mV(e)}},[r,a,t]),e()},vV=globalThis.FEATURES?.outline?[_V]:[],yV={[pV]:!1},bV=()=>({decorators:vV,initialGlobals:yV}),xV=({parameters:e})=>{e?.test?.mockReset===!0?ku():e?.test?.clearMocks===!0?Ou():e?.test?.restoreMocks!==!1&&Au()},SV=(e,t=0,n)=>{if(t>5||e==null)return e;if(wl(e))return n&&e.mockName(n),e;if(typeof e==`function`&&`isAction`in e&&e.isAction&&!(`implicit`in e&&e.implicit)){let t=Tu(e);return n&&t.mockName(n),t}if(Array.isArray(e)){t++;for(let n=0;n<e.length;n++)Object.getOwnPropertyDescriptor(e,n)?.writable&&(e[n]=SV(e[n],t));return e}if(typeof e==`object`&&e.constructor===Object){t++;for(let[n,r]of Object.entries(e))Object.getOwnPropertyDescriptor(e,n)?.writable&&(e[n]=SV(r,t,n));return e}return e},CV=({initialArgs:e})=>{SV(e)},wV=!1,TV=async e=>{globalThis.HTMLElement&&e.canvasElement instanceof globalThis.HTMLElement&&(e.canvas=Wz(e.canvasElement));try{let t=globalThis.window?.navigator?.clipboard;if(t&&(e.userEvent=ni({userEvent:Kz.setup()},{intercept:!0,getKeys:e=>Object.keys(e).filter(e=>e!==`eventWrapper`)}).userEvent,Object.defineProperty(globalThis.window.navigator,`clipboard`,{get:()=>t,configurable:!0}),!wV)){let e=HTMLElement.prototype.focus,t=HTMLElement.prototype.focus,n=new Set;Object.defineProperties(HTMLElement.prototype,{focus:{configurable:!0,set:e=>{t=e},get(){return n.has(this)?e:(n.add(this),setTimeout(()=>n.delete(this),0),t)}}}),wV=!0}}catch{}},EV=()=>({loaders:[xV,CV,TV]}),DV=`storybook/viewport`,OV=`viewport`,`${DV}`,`${DV}`,kV={[OV]:{value:void 0,isRotated:!1}},AV=()=>({initialGlobals:kV}),jV=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,`-`).replace(/-+/g,`-`).replace(/^-+/,``).replace(/-+$/,``),MV=(e,t)=>{let n=jV(e);if(n===``)throw Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return n},NV=(e,t)=>`${MV(e,`kind`)}${t?`--${MV(t,`name`)}`:``}`,PV=(e,t)=>`${e}:${MV(t,`test`)}`,FV=e=>Ze(e),IV=(...e)=>{let t=e.reduce((e,t)=>(t.startsWith(`!`)?e.delete(t.slice(1)):e.add(t),e),new Set);return Array.from(t)},LV=`[object RegExp]`,RV=`[object String]`,zV=`[object Number]`,BV=`[object Boolean]`,VV=`[object Arguments]`,HV=`[object Symbol]`,UV=`[object Date]`,WV=`[object Map]`,GV=`[object Set]`,KV=`[object Array]`,qV=`[object Function]`,JV=`[object ArrayBuffer]`,YV=`[object Object]`,XV=`[object Error]`,ZV=`[object DataView]`,QV=`[object Uint8Array]`,$V=`[object Uint8ClampedArray]`,eH=`[object Uint16Array]`,tH=`[object Uint32Array]`,nH=`[object BigUint64Array]`,rH=`[object Int8Array]`,iH=`[object Int16Array]`,aH=`[object Int32Array]`,oH=`[object BigInt64Array]`,sH=`[object Float32Array]`,cH=`[object Float64Array]`,lH=Qv(ew(),1),uH=Symbol(`incompatible`),dH=(e,t)=>{let n=t.type;if(e==null||!n||t.mapping)return e;switch(n.name){case`string`:return String(e);case`enum`:return e;case`number`:return Number(e);case`boolean`:return String(e)===`true`;case`array`:return!n.value||!Array.isArray(e)?uH:e.reduce((e,t,r)=>{let i=dH(t,{type:n.value});return i!==uH&&(e[r]=i),e},Array(e.length));case`object`:return typeof e==`string`||typeof e==`number`?e:!n.value||typeof e!=`object`?uH:Object.entries(e).reduce((e,[t,r])=>{let i=dH(r,{type:n.value[t]});return i===uH?e:Object.assign(e,{[t]:i})},{});case`other`:{let t=typeof e==`string`||typeof e==`number`||typeof e==`boolean`;return n.value===`ReactNode`&&t?e:uH}default:return uH}},fH=(e,t)=>Object.entries(e).reduce((e,[n,r])=>{if(!t[n])return e;let i=dH(r,t[n]);return i===uH?e:Object.assign(e,{[n]:i})},{}),pH=(e,t)=>Array.isArray(e)&&Array.isArray(t)?t.reduce((n,r,i)=>(n[i]=pH(e[i],t[i]),n),[...e]).filter(e=>e!==void 0):!F_(e)||!F_(t)?t:Object.keys({...e,...t}).reduce((n,r)=>{if(r in t){let i=pH(e[r],t[r]);i!==void 0&&(n[r]=i)}else n[r]=e[r];return n},{}),mH=(e,t)=>Object.entries(t).reduce((t,[n,{options:r}])=>{function i(){return n in e&&(t[n]=e[n]),t}if(!r)return i();if(!Array.isArray(r))return QT.error(b`
|
||
Invalid argType: '${n}.options' should be an array.
|
||
|
||
More info: https://storybook.js.org/docs/api/arg-types?ref=error
|
||
`),i();if(r.some(e=>e&&[`object`,`function`].includes(typeof e)))return QT.error(b`
|
||
Invalid argType: '${n}.options' should only contain primitives. Use a 'mapping' for complex values.
|
||
|
||
More info: https://storybook.js.org/docs/writing-stories/args?ref=error#mapping-to-complex-arg-values
|
||
`),i();let a=Array.isArray(e[n]),o=a&&e[n].findIndex(e=>!r.includes(e)),s=a&&o===-1;if(e[n]===void 0||r.includes(e[n])||s)return i();let c=a?`${n}[${o}]`:n,l=r.map(e=>typeof e==`string`?`'${e}'`:String(e)).join(`, `);return QT.warn(`Received illegal value for '${c}'. Supported options: ${l}`),t},{}),hH=Symbol(`Deeply equal`),gH=(e,t)=>{if(typeof e!=typeof t)return t;if(U_(e,t))return hH;if(Array.isArray(e)&&Array.isArray(t)){let n=t.reduce((t,n,r)=>{let i=gH(e[r],n);return i!==hH&&(t[r]=i),t},Array(t.length));return t.length>=e.length?n:n.concat(Array(e.length-t.length).fill(void 0))}return F_(e)&&F_(t)?Object.keys({...e,...t}).reduce((n,r)=>{let i=gH(e?.[r],t?.[r]);return i===hH?n:Object.assign(n,{[r]:i})},{}):t},_H=`UNTARGETED`,vH=class{constructor(){this.initialArgsByStoryId={},this.argsByStoryId={}}get(e){if(!(e in this.argsByStoryId))throw Error(`No args known for ${e} -- has it been rendered yet?`);return this.argsByStoryId[e]}setInitial(e){if(!this.initialArgsByStoryId[e.id])this.initialArgsByStoryId[e.id]=e.initialArgs,this.argsByStoryId[e.id]=e.initialArgs;else if(this.initialArgsByStoryId[e.id]!==e.initialArgs){let t=gH(this.initialArgsByStoryId[e.id],this.argsByStoryId[e.id]);this.initialArgsByStoryId[e.id]=e.initialArgs,this.argsByStoryId[e.id]=e.initialArgs,t!==hH&&this.updateFromDelta(e,t)}}updateFromDelta(e,t){let n=mH(t,e.argTypes);this.argsByStoryId[e.id]=pH(this.argsByStoryId[e.id],n)}updateFromPersisted(e,t){let n=fH(t,e.argTypes);return this.updateFromDelta(e,n)}update(e,t){if(!(e in this.argsByStoryId))throw Error(`No args known for ${e} -- has it been rendered yet?`);this.argsByStoryId[e]=G_({...this.argsByStoryId[e],...t})}},yH=(e={})=>Object.entries(e).reduce((e,[t,{defaultValue:n}])=>(typeof n<`u`&&(e[t]=n),e),{}),bH=class{constructor({globals:e={},globalTypes:t={}}){this.set({globals:e,globalTypes:t})}set({globals:e={},globalTypes:t={}}){let n=this.initialGlobals&&gH(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(e),...Object.keys(t)]),this.initialGlobals={...yH(t),...e},this.globals=this.initialGlobals,n&&n!==hH&&this.updateFromPersisted(n)}filterAllowedGlobals(e){return Object.entries(e).reduce((e,[t,n])=>(this.allowedGlobalNames.has(t)?e[t]=n:XT.warn(`Attempted to set a global (${t}) that is not defined in initial globals or globalTypes`),e),{})}updateFromPersisted(e){let t=this.filterAllowedGlobals(e);this.globals={...this.globals,...t}}get(){return this.globals}update(e){this.globals={...this.globals,...this.filterAllowedGlobals(e)};for(let t in e)e[t]===void 0&&(this.globals[t]=this.initialGlobals[t])}},xH=(0,Qv(ew(),1).default)(1)(e=>Object.values(e).reduce((e,t)=>(e[t.importPath]=e[t.importPath]||t,e),{})),SH=class{constructor({entries:e}={v:5,entries:{}}){this.entries=e}entryFromSpecifier(e){let t=Object.values(this.entries);if(e===`*`)return t[0];if(typeof e==`string`)return this.entries[e]?this.entries[e]:t.find(t=>t.id.startsWith(e));let{name:n,title:r}=e;return t.find(e=>e.name===n&&e.title===r)}storyIdToEntry(e){let t=this.entries[e];if(!t)throw new lk({storyId:e});return t}importPathToEntry(e){return xH(this.entries)[e]}},CH=e=>typeof e==`string`?{name:e}:e,wH=e=>typeof e==`string`?{type:e}:e,TH=(e,t)=>{let{type:n,control:r,...i}=e,a={name:t,...i};return n&&(a.type=CH(n)),r?a.control=wH(r):r===!1&&(a.control={disable:!0}),a},EH=e=>I_(e,TH),DH=e=>Array.isArray(e)?e:e?[e]:[],OH=b`
|
||
CSF .story annotations deprecated; annotate story functions directly:
|
||
- StoryFn.story.name => StoryFn.storyName
|
||
- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
|
||
See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
|
||
`,kH=e=>{let{globals:t,globalTypes:n}=e;(t||n)&&XT.error(`Global args/argTypes can only be set globally`,JSON.stringify({globals:t,globalTypes:n}))},AH=e=>{let{options:t}=e;t?.storySort&&XT.error(`The storySort option parameter can only be set globally`)},jH=e=>{e&&(kH(e),AH(e))},MH=(...e)=>{let t={},n=e.filter(Boolean),r=n.reduce((e,n)=>(Object.entries(n).forEach(([n,r])=>{let i=e[n];Array.isArray(r)||typeof i>`u`?e[n]=r:F_(r)&&F_(i)?t[n]=!0:typeof r<`u`&&(e[n]=r)}),e),{});return Object.keys(t).forEach(e=>{let t=n.filter(Boolean).map(t=>t[e]).filter(e=>typeof e<`u`);t.every(e=>F_(e))?r[e]=MH(...t):r[e]=t[t.length-1]}),r},NH=(e,t,n,r)=>{let i=typeof e;switch(i){case`boolean`:case`string`:case`number`:case`function`:case`symbol`:return{name:i};default:break}if(e){if(r.has(e))return r.get(e);if(n.has(e))return XT.warn(b`
|
||
We've detected a cycle in arg '${t}'. Args should be JSON-serializable.
|
||
|
||
Consider using the mapping feature or fully custom args:
|
||
- Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
|
||
- Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args
|
||
`),{name:`other`,value:`cyclic object`};n.add(e);let i;return i=Array.isArray(e)?{name:`array`,value:e.length>0?NH(e[0],t,n,r):{name:`other`,value:`unknown`}}:{name:`object`,value:I_(e,e=>NH(e,t,n,r))},n.delete(e),r.set(e,i),i}return{name:`object`,value:{}}},PH=e=>{let{id:t,argTypes:n={},initialArgs:r={}}=e,i=new Map;return MH(I_(r,(e,n)=>({name:n,type:NH(e,`${t}.${n}`,new Set,i)})),I_(n,(e,t)=>({name:t})),n)},PH.secondPass=!0,FH=(e,t)=>Array.isArray(t)?t.includes(e):e.match(t),IH=(e,t,n)=>!t&&!n?e:e&&L_(e,(e,r)=>{let i=e.name||r.toString();return!!(!t||FH(i,t))&&(!n||!FH(i,n))}),LH=(e,t,n)=>{let{type:r,options:i}=e;if(r){if(n.color&&n.color.test(t)){let e=r.name;if(e===`string`)return{control:{type:`color`}};e!==`enum`&&XT.warn(`Addon controls: Control of type color only supports string, received "${e}" instead`)}if(n.date&&n.date.test(t))return{control:{type:`date`}};switch(r.name){case`array`:return{control:{type:`object`}};case`boolean`:return{control:{type:`boolean`}};case`string`:return{control:{type:`text`}};case`number`:return{control:{type:`number`}};case`enum`:{let{value:e}=r;return{control:{type:e?.length<=5?`radio`:`select`},options:e}}case`function`:case`symbol`:return null;default:return{control:{type:i?`select`:`object`}}}}},RH=e=>{let{argTypes:t,parameters:{__isArgsStory:n,controls:{include:r=null,exclude:i=null,matchers:a={}}={}}}=e;if(!n)return t;let o=IH(t,r,i);return MH(I_(o,(e,t)=>e?.type&&LH(e,t.toString(),a)),o)},RH.secondPass=!0,zH=e=>async()=>{let t=[];for(let n of e){let e=await n();e&&t.unshift(e)}return async()=>{for(let e of t)await e()}},BH=class{constructor(){this.reports=[]}async addReport(e){this.reports.push(e)}},VH=`ComposedStory`,HH=`Unnamed Story`,UH=[],WH=(e,t,n,r)=>vv(e,t,n,{},r),GH=1e3,KH=1e4,qH=class{constructor(e,t,n){this.importFn=t,this.storyIndex=new SH(e),this.projectAnnotations=nv(cv([...D_(),n]));let{initialGlobals:r,globalTypes:i}=this.projectAnnotations;this.args=new vH,this.userGlobals=new bH({globals:r,globalTypes:i}),this.hooks={},this.cleanupCallbacks={},this.processCSFFileWithCache=(0,lH.default)(GH)(J_),this.prepareMetaWithCache=(0,lH.default)(GH)($_),this.prepareStoryWithCache=(0,lH.default)(KH)(Q_)}setProjectAnnotations(e){this.projectAnnotations=nv(e);let{initialGlobals:t,globalTypes:n}=e;this.userGlobals.set({globals:t,globalTypes:n})}async onStoriesChanged({importFn:e,storyIndex:t}){e&&(this.importFn=e),t&&(this.storyIndex.entries=t.entries),this.cachedCSFFiles&&await this.cacheAllCSFFiles()}async storyIdToEntry(e){return this.storyIndex.storyIdToEntry(e)}async loadCSFFileByStoryId(e){let{importPath:t,title:n}=this.storyIndex.storyIdToEntry(e),r=await this.importFn(t);return this.processCSFFileWithCache(r,t,n)}async loadAllCSFFiles(){let e={};return Object.entries(this.storyIndex.entries).forEach(([t,{importPath:n}])=>{e[n]=t}),(await Promise.all(Object.entries(e).map(async([e,t])=>({importPath:e,csfFile:await this.loadCSFFileByStoryId(t)})))).reduce((e,{importPath:t,csfFile:n})=>(e[t]=n,e),{})}async cacheAllCSFFiles(){this.cachedCSFFiles=await this.loadAllCSFFiles()}preparedMetaFromCSFFile({csfFile:e}){let t=e.meta;return this.prepareMetaWithCache(t,this.projectAnnotations,e.moduleExports.default)}async loadStory({storyId:e}){let t=await this.loadCSFFileByStoryId(e);return this.storyFromCSFFile({storyId:e,csfFile:t})}storyFromCSFFile({storyId:e,csfFile:t}){let n=t.stories[e];if(!n)throw new vk({storyId:e});let r=t.meta,i=this.prepareStoryWithCache(n,r,t.projectAnnotations??this.projectAnnotations);return this.args.setInitial(i),this.hooks[i.id]=this.hooks[i.id]||new Jk,i}componentStoriesFromCSFFile({csfFile:e}){return Object.keys(this.storyIndex.entries).filter(t=>!!e.stories[t]).map(t=>this.storyFromCSFFile({storyId:t,csfFile:e}))}async loadEntry(e){let t=await this.storyIdToEntry(e),n=t.type===`docs`?t.storiesImports:[],[r,...i]=await Promise.all([this.importFn(t.importPath),...n.map(e=>{let t=this.storyIndex.importPathToEntry(e);return this.loadCSFFileByStoryId(t.id)})]);return{entryExports:r,csfFiles:i}}getStoryContext(e,{forceInitialArgs:t=!1}={}){let n=this.userGlobals.get(),{initialGlobals:r}=this.userGlobals,i=new BH;return tv({...e,args:t?e.initialArgs:this.args.get(e.id),initialGlobals:r,globalTypes:this.projectAnnotations.globalTypes,userGlobals:n,reporting:i,globals:{...n,...e.storyGlobals},hooks:this.hooks[e.id]})}addCleanupCallbacks(e,...t){this.cleanupCallbacks[e.id]=(this.cleanupCallbacks[e.id]||[]).concat(t)}async cleanupStory(e){this.hooks[e.id].clean();let t=this.cleanupCallbacks[e.id];if(t)for(let e of[...t].reverse())await e();delete this.cleanupCallbacks[e.id]}extract(e={includeDocsOnly:!1}){let{cachedCSFFiles:t}=this;if(console.log(`extract: extracting stories`,t),!t)throw new dk;let n=Object.entries(this.storyIndex.entries).reduce((n,[r,i])=>{if(i.type===`docs`)return n;let a=t[i.importPath],o=this.storyFromCSFFile({storyId:r,csfFile:a});return!e.includeDocsOnly&&o.parameters.docsOnly||(n[r]=Object.entries(o).reduce((e,[t,n])=>t===`story`&&i.subtype===`test`?{...e,story:i.parentName}:t===`moduleExport`||typeof n==`function`?e:Array.isArray(n)?Object.assign(e,{[t]:n.slice().sort()}):Object.assign(e,{[t]:n}),{args:o.initialArgs,globals:{...this.userGlobals.initialGlobals,...this.userGlobals.globals,...o.storyGlobals},storyId:i.parent?i.parent:r})),n},{});return console.log(`extract: stories`,n),n}},JH=e=>{if(e.length===0)return e;let t=e[e.length-1],n=t?.replace(/(?:[.](?:story|stories))?([.][^.]+)$/i,``);if(e.length===1)return[n];let r=e[e.length-2];return n&&r&&n.toLowerCase()===r.toLowerCase()?[...e.slice(0,-2),n]:n&&(/^(story|stories)([.][^.]+)$/i.test(t)||/^index$/i.test(n))?e.slice(0,-1):[...e.slice(0,-1),n]},YH=(e,t,n)=>{let{directory:r,importPathMatcher:i,titlePrefix:a=``}=t||{};typeof e==`number`&&QT.warn(b`
|
||
CSF Auto-title received a numeric fileName. This typically happens when
|
||
webpack is mis-configured in production mode. To force webpack to produce
|
||
filenames, set optimization.moduleIds = "named" in your webpack config.
|
||
`);let o=Sv(String(e));if(i.exec(o)){if(!n){let e=Cv([a,o.replace(r,``)]).split(`/`);return e=JH(e),e.join(`/`)}return a?Cv([a,n]):n}},XH=(e,t,n)=>{for(let r=0;r<t.length;r+=1){let i=YH(e,t[r],n);if(i)return i}return n||void 0},ZH=/\s*\/\s*/,QH=(e={})=>(t,n)=>{if(t.title===n.title&&!e.includeNames)return 0;let r=e.method||`configure`,i=e.order||[],a=t.title.trim().split(ZH),o=n.title.trim().split(ZH);e.includeNames&&(a.push(t.name),o.push(n.name));let s=0;for(;a[s]||o[s];){if(!a[s])return-1;if(!o[s])return 1;let t=a[s],n=o[s];if(t!==n){let a=i.indexOf(t),o=i.indexOf(n),s=i.indexOf(`*`);return a!==-1||o!==-1?(a===-1&&(a=s===-1?i.length:s),o===-1&&(o=s===-1?i.length:s),a-o):r===`configure`?0:t.localeCompare(n,e.locales?e.locales:void 0,{numeric:!0,sensitivity:`accent`})}let c=i.indexOf(t);c===-1&&(c=i.indexOf(`*`)),i=c!==-1&&Array.isArray(i[c+1])?i[c+1]:[],s+=1}return 0},$H=(e,t,n)=>{if(t){let n;n=typeof t==`function`?t:QH(t),e.sort(n)}else e.sort((e,t)=>n.indexOf(e.importPath)-n.indexOf(t.importPath));return e},eU=(e,t,n)=>{try{return $H(e,t,n)}catch(e){throw Error(b`
|
||
Error sorting stories with sort parameter ${t}:
|
||
|
||
> ${e.message}
|
||
|
||
Are you using a V6-style sort function in V7 mode?
|
||
|
||
More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#v7-style-story-sort
|
||
`)}},tU=Error(`prepareAborted`),{AbortController:nU}=globalThis,rU=class{constructor(e,t,n,r,i,a,o={autoplay:!0,forceInitialArgs:!1},s){this.channel=e,this.store=t,this.renderToScreen=n,this.callbacks=r,this.id=i,this.viewMode=a,this.renderOptions=o,this.type=`story`,this.notYetRendered=!0,this.rerenderEnqueued=!1,this.disableKeyListeners=!1,this.teardownRender=()=>{},this.torndown=!1,this.abortController=new nU,this.renderId=Date.now(),s&&(this.story=s,this.phase=`preparing`)}async runPhase(e,t,n){this.phase=t,this.channel.emit(sT,{newPhase:this.phase,renderId:this.renderId,storyId:this.id}),n&&(await n(),this.checkIfAborted(e))}checkIfAborted(e){return e.aborted&&![`finished`,`aborted`,`errored`].includes(this.phase)&&(this.phase=`aborted`,this.channel.emit(sT,{newPhase:this.phase,renderId:this.renderId,storyId:this.id})),e.aborted}async prepare(){if(await this.runPhase(this.abortController.signal,`preparing`,async()=>{this.story=await this.store.loadStory({storyId:this.id})}),this.abortController.signal.aborted)throw await this.store.cleanupStory(this.story),tU}isEqual(e){return!!(this.id===e.id&&this.story&&this.story===e.story)}isPreparing(){return[`preparing`].includes(this.phase)}isPending(){return[`loading`,`beforeEach`,`rendering`,`playing`,`afterEach`].includes(this.phase)}async renderToElement(e){return this.canvasElement=e,this.render({initial:!0,forceRemount:!0})}storyContext(){if(!this.story)throw Error(`Cannot call storyContext before preparing`);let{forceInitialArgs:e}=this.renderOptions;return this.store.getStoryContext(this.story,{forceInitialArgs:e})}async render({initial:e=!1,forceRemount:t=!1}={}){let{canvasElement:n}=this;if(!this.story)throw Error(`cannot render when not prepared`);let r=this.story;if(!n)throw Error(`cannot render when canvasElement is unset`);let{id:i,componentId:a,title:o,name:s,tags:c,applyLoaders:l,applyBeforeEach:u,applyAfterEach:d,unboundStoryFn:f,playFunction:p,runStep:m}=r;t&&!e&&(this.cancelRender(),this.abortController=new nU);let h=this.abortController.signal,g=!1,_=r.usesMount;try{let e={...this.storyContext(),viewMode:this.viewMode,abortSignal:h,canvasElement:n,loaded:{},step:(t,n)=>m(t,n,e),context:null,canvas:{},userEvent:{},renderToCanvas:async()=>{this.teardownRender=await this.renderToScreen(v,n)||(()=>{}),g=!0},mount:async(...t)=>{this.callbacks.showStoryDuringRender?.();let n=null;return await this.runPhase(h,`rendering`,async()=>{n=await r.mount(e)(...t)}),_&&await this.runPhase(h,`playing`),n}};e.context=e;let v={componentId:a,title:o,kind:o,id:i,name:s,story:s,tags:c,...this.callbacks,showError:e=>(this.phase=`errored`,this.callbacks.showError(e)),showException:e=>(this.phase=`errored`,this.callbacks.showException(e)),forceRemount:t||this.notYetRendered,storyContext:e,storyFn:()=>f(e),unboundStoryFn:f};if(await this.runPhase(h,`loading`,async()=>{e.loaded=await l(e)}),h.aborted)return;let y=await u(e);if(this.store.addCleanupCallbacks(r,...y),this.checkIfAborted(h)||(!g&&!_&&await e.mount(),this.notYetRendered=!1,h.aborted))return;let b=this.story.parameters?.test?.dangerouslyIgnoreUnhandledErrors===!0,x=new Set,S=e=>{e.error&&x.add(e.error)},C=e=>{e.reason&&x.add(e.reason)};if(this.renderOptions.autoplay&&t&&p&&this.phase!==`errored`){window?.addEventListener?.(`error`,S),window?.addEventListener?.(`unhandledrejection`,C),this.disableKeyListeners=!0;try{if(_?await p(e):(e.mount=async()=>{throw new bk({playFunction:p.toString()})},await this.runPhase(h,`playing`,async()=>p(e))),!g)throw new Sk;this.checkIfAborted(h),!b&&x.size>0?await this.runPhase(h,`errored`):await this.runPhase(h,`played`)}catch(e){if(this.callbacks.showStoryDuringRender?.(),await this.runPhase(h,`errored`,async()=>{this.channel.emit(Iw,wv(e))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw e;console.error(e)}if(!b&&x.size>0&&this.channel.emit(Lw,Array.from(x).map(wv)),this.disableKeyListeners=!1,window?.removeEventListener?.(`unhandledrejection`,C),window?.removeEventListener?.(`error`,S),h.aborted)return}await this.runPhase(h,`completing`,async()=>{lv()?this.store.addCleanupCallbacks(r,uv()):await dv(h)}),await this.runPhase(h,`completed`,async()=>{this.channel.emit(cT,i)}),this.phase!==`errored`&&await this.runPhase(h,`afterEach`,async()=>{await d(e)});let w=!b&&x.size>0,T=e.reporting.reports.some(e=>e.status===`failed`),E=w||T;await this.runPhase(h,`finished`,async()=>this.channel.emit(lT,{storyId:i,status:E?`error`:`success`,reporters:e.reporting.reports}))}catch(e){this.phase=`errored`,this.callbacks.showException(e),await this.runPhase(h,`finished`,async()=>this.channel.emit(lT,{storyId:i,status:`error`,reporters:[]}))}this.rerenderEnqueued&&(this.rerenderEnqueued=!1,this.render())}async rerender(){if(this.isPending()&&this.phase!==`playing`)this.rerenderEnqueued=!0;else return this.render()}async remount(){return await this.teardown(),this.render({forceRemount:!0})}cancelRender(){this.abortController.abort()}cancelPlayFunction(){this.phase===`playing`&&(this.abortController.abort(),this.runPhase(this.abortController.signal,`aborted`))}async teardown(){this.torndown=!0,this.cancelRender(),this.story&&await this.store.cleanupStory(this.story);for(let e=0;e<3;e+=1){if(!this.isPending()){await this.teardownRender();return}await new Promise(e=>setTimeout(e,0))}window?.location?.reload?.(),await new Promise(()=>{})}},{fetch:iU}=q,aU=`./index.json`,oU=class{constructor(e,t,n=qk.getChannel(),r=!0){this.importFn=e,this.getProjectAnnotations=t,this.channel=n,this.storyRenders=[],this.storeInitializationPromise=new Promise((e,t)=>{this.resolveStoreInitializationPromise=e,this.rejectStoreInitializationPromise=t}),r&&this.initialize()}get storyStore(){return new Proxy({},{get:(e,t)=>{if(this.storyStoreValue)return $T(`Accessing the Story Store is deprecated and will be removed in 9.0`),this.storyStoreValue[t];throw new yk}})}async initialize(){this.setupListeners();try{let e=await this.getProjectAnnotationsOrRenderError();await this.runBeforeAllHook(e),await this.initializeWithProjectAnnotations(e);let t=globalThis?.navigator?.userAgent;await this.channel.emit(zw,{userAgent:t})}catch(e){this.rejectStoreInitializationPromise(e)}}ready(){return this.storeInitializationPromise}setupListeners(){this.channel.on(iT,this.onStoryIndexChanged.bind(this)),this.channel.on(mT,this.onUpdateGlobals.bind(this)),this.channel.on(gT,this.onUpdateArgs.bind(this)),this.channel.on(wT,this.onRequestArgTypesInfo.bind(this)),this.channel.on(Uw,this.onResetArgs.bind(this)),this.channel.on(Mw,this.onForceReRender.bind(this)),this.channel.on(Nw,this.onForceRemount.bind(this)),this.channel.on(pT,this.onStoryHotUpdated.bind(this))}async getProjectAnnotationsOrRenderError(){try{let e=await this.getProjectAnnotations();if(this.renderToCanvas=e.renderToCanvas,!this.renderToCanvas)throw new fk;return e}catch(e){throw this.renderPreviewEntryError(`Error reading preview.js:`,e),e}}async initializeWithProjectAnnotations(e){this.projectAnnotationsBeforeInitialization=e;try{let e=await this.getStoryIndexFromServer();return this.initializeWithStoryIndex(e)}catch(e){throw this.renderPreviewEntryError(`Error loading story index:`,e),e}}async runBeforeAllHook(e){try{await this.beforeAllCleanup?.(),this.beforeAllCleanup=await e.beforeAll?.()}catch(e){throw this.renderPreviewEntryError(`Error in beforeAll hook:`,e),e}}async getStoryIndexFromServer(){let e=await iU(aU);if(e.status===200)return e.json();throw new mk({text:await e.text()})}initializeWithStoryIndex(e){if(!this.projectAnnotationsBeforeInitialization)throw Error(`Cannot call initializeWithStoryIndex until project annotations resolve`);this.storyStoreValue=new qH(e,this.importFn,this.projectAnnotationsBeforeInitialization),delete this.projectAnnotationsBeforeInitialization,this.setInitialGlobals(),this.resolveStoreInitializationPromise()}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStoreValue)throw new pk({methodName:`emitGlobals`});let e={globals:this.storyStoreValue.userGlobals.get()||{},globalTypes:this.storyStoreValue.projectAnnotations.globalTypes||{}};this.channel.emit(Jw,e)}async onGetProjectAnnotationsChanged({getProjectAnnotations:e}){delete this.previewEntryError,this.getProjectAnnotations=e;let t=await this.getProjectAnnotationsOrRenderError();if(await this.runBeforeAllHook(t),!this.storyStoreValue){await this.initializeWithProjectAnnotations(t);return}this.storyStoreValue.setProjectAnnotations(t),this.emitGlobals()}async onStoryIndexChanged(){if(delete this.previewEntryError,!(!this.storyStoreValue&&!this.projectAnnotationsBeforeInitialization))try{let e=await this.getStoryIndexFromServer();if(this.projectAnnotationsBeforeInitialization){this.initializeWithStoryIndex(e);return}await this.onStoriesChanged({storyIndex:e})}catch(e){throw this.renderPreviewEntryError(`Error loading story index:`,e),e}}async onStoriesChanged({importFn:e,storyIndex:t}){if(!this.storyStoreValue)throw new pk({methodName:`onStoriesChanged`});await this.storyStoreValue.onStoriesChanged({importFn:e,storyIndex:t})}async onUpdateGlobals({globals:e,currentStory:t}){if(this.storyStoreValue||await this.storeInitializationPromise,!this.storyStoreValue)throw new pk({methodName:`onUpdateGlobals`});if(this.storyStoreValue.userGlobals.update(e),t){let{initialGlobals:e,storyGlobals:n,userGlobals:r,globals:i}=this.storyStoreValue.getStoryContext(t);this.channel.emit(Pw,{initialGlobals:e,userGlobals:r,storyGlobals:n,globals:i})}else{let{initialGlobals:e,globals:t}=this.storyStoreValue.userGlobals;this.channel.emit(Pw,{initialGlobals:e,userGlobals:t,storyGlobals:{},globals:t})}await Promise.all(this.storyRenders.map(e=>e.rerender()))}async onUpdateArgs({storyId:e,updatedArgs:t}){if(!this.storyStoreValue)throw new pk({methodName:`onUpdateArgs`});this.storyStoreValue.args.update(e,t),await Promise.all(this.storyRenders.filter(t=>t.id===e&&!t.renderOptions.forceInitialArgs).map(e=>e.story&&e.story.usesMount?e.remount():e.rerender())),this.channel.emit(tT,{storyId:e,args:this.storyStoreValue.args.get(e)})}async onRequestArgTypesInfo({id:e,payload:t}){try{await this.storeInitializationPromise;let n=await this.storyStoreValue?.loadStory(t);this.channel.emit(TT,{id:e,success:!0,payload:{argTypes:n?.argTypes||{}},error:null})}catch(t){this.channel.emit(TT,{id:e,success:!1,error:t?.message})}}async onResetArgs({storyId:e,argNames:t}){if(!this.storyStoreValue)throw new pk({methodName:`onResetArgs`});let n=this.storyRenders.find(t=>t.id===e)?.story||await this.storyStoreValue.loadStory({storyId:e}),r=(t||[...new Set([...Object.keys(n.initialArgs),...Object.keys(this.storyStoreValue.args.get(e))])]).reduce((e,t)=>(e[t]=n.initialArgs[t],e),{});await this.onUpdateArgs({storyId:e,updatedArgs:r})}async onForceReRender(){await Promise.all(this.storyRenders.map(e=>e.rerender()))}async onForceRemount({storyId:e}){await Promise.all(this.storyRenders.filter(t=>t.id===e).map(e=>e.remount()))}async onStoryHotUpdated(){await Promise.all(this.storyRenders.map(e=>e.cancelPlayFunction()))}renderStoryToElement(e,t,n,r){if(!this.renderToCanvas||!this.storyStoreValue)throw new pk({methodName:`renderStoryToElement`});let i=new rU(this.channel,this.storyStoreValue,this.renderToCanvas,n,e.id,`docs`,r,e);return i.renderToElement(t),this.storyRenders.push(i),async()=>{await this.teardownRender(i)}}async teardownRender(e,{viewModeChanged:t}={}){this.storyRenders=this.storyRenders.filter(t=>t!==e),await e?.teardown?.({viewModeChanged:t})}async loadStory({storyId:e}){if(!this.storyStoreValue)throw new pk({methodName:`loadStory`});return this.storyStoreValue.loadStory({storyId:e})}getStoryContext(e,{forceInitialArgs:t=!1}={}){if(!this.storyStoreValue)throw new pk({methodName:`getStoryContext`});return this.storyStoreValue.getStoryContext(e,{forceInitialArgs:t})}async extract(e){if(!this.storyStoreValue)throw new pk({methodName:`extract`});if(this.previewEntryError)throw this.previewEntryError;return await this.storyStoreValue.cacheAllCSFFiles(),this.storyStoreValue.extract(e)}renderPreviewEntryError(e,t){this.previewEntryError=t,XT.error(e),XT.error(t),this.channel.emit(ww,t)}},sU=class{constructor(e,t,n,r){this.channel=e,this.store=t,this.renderStoryToElement=n,this.storyIdByName=e=>{let t=this.nameToStoryId.get(e);if(t)return t;throw Error(`No story found with that name: ${e}`)},this.componentStories=()=>this.componentStoriesValue,this.componentStoriesFromCSFFile=e=>this.store.componentStoriesFromCSFFile({csfFile:e}),this.storyById=e=>{if(!e){if(!this.primaryStory)throw Error("No primary story defined for docs entry. Did you forget to use `<Meta>`?");return this.primaryStory}let t=this.storyIdToCSFFile.get(e);if(!t)throw Error(`Called \`storyById\` for story that was never loaded: ${e}`);return this.store.storyFromCSFFile({storyId:e,csfFile:t})},this.getStoryContext=e=>({...this.store.getStoryContext(e),loaded:{},viewMode:`docs`}),this.loadStory=e=>this.store.loadStory({storyId:e}),this.componentStoriesValue=[],this.storyIdToCSFFile=new Map,this.exportToStory=new Map,this.exportsToCSFFile=new Map,this.nameToStoryId=new Map,this.attachedCSFFiles=new Set,r.forEach((e,t)=>{this.referenceCSFFile(e)})}referenceCSFFile(e){this.exportsToCSFFile.set(e.moduleExports,e),this.exportsToCSFFile.set(e.moduleExports.default,e),this.store.componentStoriesFromCSFFile({csfFile:e}).forEach(t=>{let n=e.stories[t.id];this.storyIdToCSFFile.set(n.id,e),this.exportToStory.set(n.moduleExport,t)})}attachCSFFile(e){if(!this.exportsToCSFFile.has(e.moduleExports))throw Error(`Cannot attach a CSF file that has not been referenced`);this.attachedCSFFiles.has(e)||(this.attachedCSFFiles.add(e),this.store.componentStoriesFromCSFFile({csfFile:e}).forEach(e=>{this.nameToStoryId.set(e.name,e.id),this.componentStoriesValue.push(e),this.primaryStory||=e}))}referenceMeta(e,t){let n=this.resolveModuleExport(e);if(n.type!==`meta`)throw Error(`<Meta of={} /> must reference a CSF file module export or meta export. Did you mistakenly reference your component instead of your CSF file?`);t&&this.attachCSFFile(n.csfFile)}get projectAnnotations(){let{projectAnnotations:e}=this.store;if(!e)throw Error(`Can't get projectAnnotations from DocsContext before they are initialized`);return e}resolveAttachedModuleExportType(e){if(e===`story`){if(!this.primaryStory)throw Error(`No primary story attached to this docs file, did you forget to use <Meta of={} />?`);return{type:`story`,story:this.primaryStory}}if(this.attachedCSFFiles.size===0)throw Error(`No CSF file attached to this docs file, did you forget to use <Meta of={} />?`);let t=Array.from(this.attachedCSFFiles)[0];if(e===`meta`)return{type:`meta`,csfFile:t};let{component:n}=t.meta;if(!n)throw Error(`Attached CSF file does not defined a component, did you forget to export one?`);return{type:`component`,component:n}}resolveModuleExport(e){let t=this.exportsToCSFFile.get(e);if(!t&&e&&typeof e==`object`&&`default`in e&&(t=this.exportsToCSFFile.get(e.default)),t)return{type:`meta`,csfFile:t};let n=this.exportToStory.get(k_(e)?e.input:e);return n?{type:`story`,story:n}:{type:`component`,component:e}}resolveOf(e,t=[]){let n;if([`component`,`meta`,`story`].includes(e)){let t=e;n=this.resolveAttachedModuleExportType(t)}else n=this.resolveModuleExport(e);if(t.length&&!t.includes(n.type)){let e=n.type===`component`?`component or unknown`:n.type;throw Error(b`Invalid value passed to the 'of' prop. The value was resolved to a '${e}' type but the only types for this block are: ${t.join(`, `)}.
|
||
- Did you pass a component to the 'of' prop when the block only supports a story or a meta?
|
||
- ... or vice versa?
|
||
- Did you pass a story, CSF file or meta to the 'of' prop that is not indexed, ie. is not targeted by the 'stories' globs in the main configuration?`)}switch(n.type){case`component`:return{...n,projectAnnotations:this.projectAnnotations};case`meta`:return{...n,preparedMeta:this.store.preparedMetaFromCSFFile({csfFile:n.csfFile})};default:return n}}},cU=class{constructor(e,t,n,r){this.channel=e,this.store=t,this.entry=n,this.callbacks=r,this.type=`docs`,this.subtype=`csf`,this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=n.id,this.renderId=Date.now()}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:e,csfFiles:t=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw tU;let{importPath:n,title:r}=this.entry,i=this.store.processCSFFileWithCache(e,n,r),a=Object.keys(i.stories)[0];this.story=this.store.storyFromCSFFile({storyId:a,csfFile:i}),this.csfFiles=[i,...t],this.preparing=!1}isEqual(e){return!!(this.id===e.id&&this.story&&this.story===e.story)}docsContext(e){if(!this.csfFiles)throw Error(`Cannot render docs before preparing`);let t=new sU(this.channel,this.store,e,this.csfFiles);return this.csfFiles.forEach(e=>t.attachCSFFile(e)),t}async renderToElement(e,t){if(!this.story||!this.csfFiles)throw Error(`Cannot render docs before preparing`);let n=this.docsContext(t),{docs:r}=this.story.parameters||{};if(!r)throw Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let i=await r.renderer(),{render:a}=i,o=async()=>{try{await a(n,r,e),this.channel.emit(kw,this.id)}catch(e){this.callbacks.showException(e)}};return this.rerender=async()=>o(),this.teardownRender=async({viewModeChanged:t})=>{!t||!e||i.unmount(e)},o()}async teardown({viewModeChanged:e}={}){this.teardownRender?.({viewModeChanged:e}),this.torndown=!0}},lU=class{constructor(e,t,n,r){this.channel=e,this.store=t,this.entry=n,this.callbacks=r,this.type=`docs`,this.subtype=`mdx`,this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=n.id,this.renderId=Date.now()}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:e,csfFiles:t=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw tU;this.csfFiles=t,this.exports=e,this.preparing=!1}isEqual(e){return!!(this.id===e.id&&this.exports&&this.exports===e.exports)}docsContext(e){if(!this.csfFiles)throw Error(`Cannot render docs before preparing`);return new sU(this.channel,this.store,e,this.csfFiles)}async renderToElement(e,t){if(!this.exports||!this.csfFiles||!this.store.projectAnnotations)throw Error(`Cannot render docs before preparing`);let n=this.docsContext(t),{docs:r}=this.store.projectAnnotations.parameters??{};if(!r)throw Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let i={...r,page:this.exports.default},a=await r.renderer(),{render:o}=a,s=async()=>{try{await o(n,i,e),this.channel.emit(kw,this.id)}catch(e){this.callbacks.showException(e)}};return this.rerender=async()=>s(),this.teardownRender=async({viewModeChanged:t}={})=>{!t||!e||(a.unmount(e),this.torndown=!0)},s()}async teardown({viewModeChanged:e}={}){this.teardownRender?.({viewModeChanged:e}),this.torndown=!0}},uU=globalThis,dU=class extends oU{constructor(e,t,n,r){super(e,t,void 0,!1),this.importFn=e,this.getProjectAnnotations=t,this.selectionStore=n,this.view=r,this.initialize()}setupListeners(){super.setupListeners(),uU.onkeydown=this.onKeydown.bind(this),this.channel.on(Kw,this.onSetCurrentStory.bind(this)),this.channel.on(hT,this.onUpdateQueryParams.bind(this)),this.channel.on(Rw,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStoreValue)throw new pk({methodName:`setInitialGlobals`});let{globals:e}=this.selectionStore.selectionSpecifier||{};e&&this.storyStoreValue.userGlobals.updateFromPersisted(e),this.emitGlobals()}async initializeWithStoryIndex(e){return await super.initializeWithStoryIndex(e),this.selectSpecifiedStory()}async selectSpecifiedStory(){if(!this.storyStoreValue)throw new pk({methodName:`selectSpecifiedStory`});if(this.selectionStore.selection){await this.renderSelection();return}if(!this.selectionStore.selectionSpecifier){this.renderMissingStory();return}let{storySpecifier:e,args:t}=this.selectionStore.selectionSpecifier,n=this.storyStoreValue.storyIndex.entryFromSpecifier(e);if(!n){e===`*`?this.renderStoryLoadingException(e,new gk):this.renderStoryLoadingException(e,new _k({storySpecifier:e.toString()}));return}let{id:r,type:i}=n;this.selectionStore.setSelection({storyId:r,viewMode:i}),this.channel.emit(uT,this.selectionStore.selection),this.channel.emit(Dw,this.selectionStore.selection),await this.renderSelection({persistedArgs:t})}async onGetProjectAnnotationsChanged({getProjectAnnotations:e}){await super.onGetProjectAnnotationsChanged({getProjectAnnotations:e}),this.selectionStore.selection&&this.renderSelection()}async onStoriesChanged({importFn:e,storyIndex:t}){await super.onStoriesChanged({importFn:e,storyIndex:t}),this.selectionStore.selection?await this.renderSelection():await this.selectSpecifiedStory()}onKeydown(e){if(!this.storyRenders.find(e=>e.disableKeyListeners)&&!Tv(e)){let{altKey:t,ctrlKey:n,metaKey:r,shiftKey:i,key:a,code:o,keyCode:s}=e;this.channel.emit(Vw,{event:{altKey:t,ctrlKey:n,metaKey:r,shiftKey:i,key:a,code:o,keyCode:s}})}}async onSetCurrentStory(e){this.selectionStore.setSelection({viewMode:`story`,...e}),await this.storeInitializationPromise,this.channel.emit(Dw,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(e){this.selectionStore.setQueryParams(e)}async onUpdateGlobals({globals:e}){let t=this.currentRender instanceof rU&&this.currentRender.story||void 0;super.onUpdateGlobals({globals:e,currentStory:t}),(this.currentRender instanceof lU||this.currentRender instanceof cU)&&await this.currentRender.rerender?.()}async onUpdateArgs({storyId:e,updatedArgs:t}){super.onUpdateArgs({storyId:e,updatedArgs:t})}async onPreloadStories({ids:e}){await this.storeInitializationPromise,this.storyStoreValue&&await Promise.allSettled(e.map(e=>this.storyStoreValue?.loadEntry(e)))}async renderSelection({persistedArgs:e}={}){let{renderToCanvas:t}=this;if(!this.storyStoreValue||!t)throw new pk({methodName:`renderSelection`});let{selection:n}=this.selectionStore;if(!n)throw Error(`Cannot call renderSelection as no selection was made`);let{storyId:r}=n,i;try{i=await this.storyStoreValue.storyIdToEntry(r)}catch(e){this.currentRender&&await this.teardownRender(this.currentRender),this.renderStoryLoadingException(r,e);return}let a=this.currentSelection?.storyId!==r,o=this.currentRender?.type!==i.type;i.type===`story`?this.view.showPreparingStory({immediate:o}):this.view.showPreparingDocs({immediate:o}),this.currentRender?.isPreparing()&&await this.teardownRender(this.currentRender);let s;s=i.type===`story`?new rU(this.channel,this.storyStoreValue,t,this.mainStoryCallbacks(r),r,`story`):Ev(i)?new lU(this.channel,this.storyStoreValue,i,this.mainStoryCallbacks(r)):new cU(this.channel,this.storyStoreValue,i,this.mainStoryCallbacks(r));let c=this.currentSelection;this.currentSelection=n;let l=this.currentRender;this.currentRender=s;try{await s.prepare()}catch(e){l&&await this.teardownRender(l),e!==tU&&this.renderStoryLoadingException(r,e);return}let u=!a&&l&&!s.isEqual(l);if(e&&Dv(s)&&(ke(!!s.story),this.storyStoreValue.args.updateFromPersisted(s.story,e)),l&&!l.torndown&&!a&&!u&&!o){this.currentRender=l,this.channel.emit(fT,r),this.view.showMain();return}if(l&&await this.teardownRender(l,{viewModeChanged:o}),c&&(a||o)&&this.channel.emit(nT,r),Dv(s)){ke(!!s.story);let{parameters:e,initialArgs:t,argTypes:n,unmappedArgs:i,initialGlobals:a,userGlobals:o,storyGlobals:c,globals:l}=this.storyStoreValue.getStoryContext(s.story);this.channel.emit(oT,{id:r,parameters:e,initialArgs:t,argTypes:n,args:i}),this.channel.emit(Pw,{userGlobals:o,storyGlobals:c,globals:l,initialGlobals:a})}else{let{parameters:e}=this.storyStoreValue.projectAnnotations,{initialGlobals:t,globals:n}=this.storyStoreValue.userGlobals;if(this.channel.emit(Pw,{globals:n,initialGlobals:t,storyGlobals:{},userGlobals:n}),kv(s)||s.entry.tags?.includes(aA.ATTACHED_MDX)){if(!s.csfFiles)throw new hk({storyId:r});({parameters:e}=this.storyStoreValue.preparedMetaFromCSFFile({csfFile:s.csfFiles[0]}))}this.channel.emit(Ow,{id:r,parameters:e})}Dv(s)?(ke(!!s.story),this.storyRenders.push(s),this.currentRender.renderToElement(this.view.prepareForStory(s.story))):this.currentRender.renderToElement(this.view.prepareForDocs(),this.renderStoryToElement.bind(this))}async teardownRender(e,{viewModeChanged:t=!1}={}){this.storyRenders=this.storyRenders.filter(t=>t!==e),await e?.teardown?.({viewModeChanged:t})}mainStoryCallbacks(e){return{showStoryDuringRender:()=>this.view.showStoryDuringRender(),showMain:()=>this.view.showMain(),showError:t=>this.renderError(e,t),showException:t=>this.renderException(e,t)}}renderPreviewEntryError(e,t){super.renderPreviewEntryError(e,t),this.view.showErrorDisplay(t)}renderMissingStory(){this.view.showNoPreview(),this.channel.emit(aT)}renderStoryLoadingException(e,t){XT.error(t),this.view.showErrorDisplay(t),this.channel.emit(aT,e)}renderException(e,t){let{name:n=`Error`,message:r=String(t),stack:i}=t,a=this.currentRender?.renderId;this.channel.emit(dT,{name:n,message:r,stack:i}),this.channel.emit(sT,{newPhase:`errored`,renderId:a,storyId:e}),this.view.showErrorDisplay(t),XT.error(`Error rendering story '${e}':`),XT.error(t)}renderError(e,{title:t,description:n}){let r=this.currentRender?.renderId;this.channel.emit(rT,{title:t,description:n}),this.channel.emit(sT,{newPhase:`errored`,renderId:r,storyId:e}),this.view.showErrorDisplay({message:t,stack:n}),XT.error(`Error rendering story ${t}: ${n}`)}},fU=Qv(sw(),1),pU=Qv(sw(),1),mU=/^[a-zA-Z0-9 _-]*$/,hU=/^-?[0-9]+(\.[0-9]+)?$/,gU=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,_U=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,vU=(e=``,t)=>e===null||e===``||!mU.test(e)?!1:t==null||t instanceof Date||typeof t==`number`||typeof t==`boolean`?!0:typeof t==`string`?mU.test(t)||hU.test(t)||gU.test(t)||_U.test(t):Array.isArray(t)?t.every(t=>vU(e,t)):F_(t)?Object.entries(t).every(([e,t])=>vU(e,t)):!1,yU={delimiter:`;`,nesting:!0,arrayRepeat:!0,arrayRepeatSyntax:`bracket`,nestingSyntax:`js`,valueDeserializer(e){if(e.startsWith(`!`)){if(e===`!undefined`)return;if(e===`!null`)return null;if(e===`!true`)return!0;if(e===`!false`)return!1;if(e.startsWith(`!date(`)&&e.endsWith(`)`))return new Date(e.replaceAll(` `,`+`).slice(6,-1));if(e.startsWith(`!hex(`)&&e.endsWith(`)`))return`#${e.slice(5,-1)}`;let t=e.slice(1).match(_U);if(t)return e.startsWith(`!rgba`)||e.startsWith(`!RGBA`)?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]}, ${t[5]})`:e.startsWith(`!hsla`)||e.startsWith(`!HSLA`)?`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%, ${t[5]})`:e.startsWith(`!rgb`)||e.startsWith(`!RGB`)?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]})`:`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%)`}return hU.test(e)?Number(e):e}},bU=e=>{let t=e.split(`;`).map(e=>e.replace(`=`,`~`).replace(`:`,`=`));return Object.entries((0,pU.parse)(t.join(`;`),yU)).reduce((e,[t,n])=>vU(t,n)?Object.assign(e,{[t]:n}):(QT.warn(b`
|
||
Omitted potentially unsafe URL args.
|
||
|
||
More info: https://storybook.js.org/docs/writing-stories/args?ref=error#setting-args-through-the-url
|
||
`),e),{})},{history:xU,document:SU}=q,CU=({selection:e,extraParams:t})=>{let n=SU?.location.search.slice(1),{path:r,selectedKind:i,selectedStory:a,...o}=(0,fU.parse)(n);return`?${(0,fU.stringify)({...o,...t,...e&&{id:e.storyId,viewMode:e.viewMode}})}`},wU=e=>{if(!e)return;let t=CU({selection:e}),{hash:n=``}=SU.location;SU.title=e.storyId,xU.replaceState({},``,`${SU.location.pathname}${t}${n}`)},TU=e=>typeof e==`object`&&!!e&&Array.isArray(e)===!1,EU=e=>{if(e!==void 0){if(typeof e==`string`)return e;if(Array.isArray(e))return EU(e[0]);if(TU(e))return EU(Object.values(e).filter(Boolean))}},DU=()=>{if(typeof SU<`u`){let e=SU.location.search.slice(1),t=(0,fU.parse)(e),n=typeof t.args==`string`?bU(t.args):void 0,r=typeof t.globals==`string`?bU(t.globals):void 0,i=EU(t.viewMode);if(typeof i!=`string`||!i)i=`story`;else if(!i.match(/docs|story/))return null;let a=EU(t.path),o=a?Av(a):EU(t.id);if(o)return{storySpecifier:o,args:n,globals:r,viewMode:i}}return null},OU=class{constructor(){this.selectionSpecifier=DU()}setSelection(e){this.selection=e,wU(this.selection)}setQueryParams(e){let t=CU({extraParams:e}),{hash:n=``}=SU.location;xU.replaceState({},``,`${SU.location.pathname}${t}${n}`)}},kU=Qv(gw(),1),AU=Qv(sw(),1),{document:jU}=q,MU=100,NU=(e=>(e.MAIN=`MAIN`,e.NOPREVIEW=`NOPREVIEW`,e.PREPARING_STORY=`PREPARING_STORY`,e.PREPARING_DOCS=`PREPARING_DOCS`,e.ERROR=`ERROR`,e))(NU||{}),PU={PREPARING_STORY:`sb-show-preparing-story`,PREPARING_DOCS:`sb-show-preparing-docs`,MAIN:`sb-show-main`,NOPREVIEW:`sb-show-nopreview`,ERROR:`sb-show-errordisplay`},FU={centered:`sb-main-centered`,fullscreen:`sb-main-fullscreen`,padded:`sb-main-padded`},IU=new kU.default({escapeXML:!0}),LU=class{constructor(){if(this.testing=!1,typeof jU<`u`){let{__SPECIAL_TEST_PARAMETER__:e}=(0,AU.parse)(jU.location.search.slice(1));switch(e){case`preparing-story`:this.showPreparingStory(),this.testing=!0;break;case`preparing-docs`:this.showPreparingDocs(),this.testing=!0;break;default:}}}prepareForStory(e){return this.showStory(),this.applyLayout(e.parameters.layout),jU.documentElement.scrollTop=0,jU.documentElement.scrollLeft=0,this.storyRoot()}storyRoot(){return jU.getElementById(`storybook-root`)}prepareForDocs(){return this.showMain(),this.showDocs(),this.applyLayout(`fullscreen`),jU.documentElement.scrollTop=0,jU.documentElement.scrollLeft=0,this.docsRoot()}docsRoot(){return jU.getElementById(`storybook-docs`)}applyLayout(e=`padded`){if(e===`none`){jU.body.classList.remove(this.currentLayoutClass),this.currentLayoutClass=null;return}this.checkIfLayoutExists(e);let t=FU[e];jU.body.classList.remove(this.currentLayoutClass),jU.body.classList.add(t),this.currentLayoutClass=t}checkIfLayoutExists(e){FU[e]||XT.warn(b`
|
||
The desired layout: ${e} is not a valid option.
|
||
The possible options are: ${Object.keys(FU).join(`, `)}, none.
|
||
`)}showMode(e){clearTimeout(this.preparingTimeout),Object.keys(NU).forEach(t=>{t===e?jU.body.classList.add(PU[t]):jU.body.classList.remove(PU[t])})}showErrorDisplay({message:e=``,stack:t=``}){let n=e,r=t,i=e.split(`
|
||
`);i.length>1&&([n]=i,r=i.slice(1).join(`
|
||
`).replace(/^\n/,``)),jU.getElementById(`error-message`).innerHTML=IU.toHtml(n),jU.getElementById(`error-stack`).innerHTML=IU.toHtml(r),this.showMode(`ERROR`)}showNoPreview(){this.testing||(this.showMode(`NOPREVIEW`),this.storyRoot()?.setAttribute(`hidden`,`true`),this.docsRoot()?.setAttribute(`hidden`,`true`))}showPreparingStory({immediate:e=!1}={}){clearTimeout(this.preparingTimeout),e?this.showMode(`PREPARING_STORY`):this.preparingTimeout=setTimeout(()=>this.showMode(`PREPARING_STORY`),MU)}showPreparingDocs({immediate:e=!1}={}){clearTimeout(this.preparingTimeout),e?this.showMode(`PREPARING_DOCS`):this.preparingTimeout=setTimeout(()=>this.showMode(`PREPARING_DOCS`),MU)}showMain(){this.showMode(`MAIN`)}showDocs(){this.storyRoot().setAttribute(`hidden`,`true`),this.docsRoot().removeAttribute(`hidden`)}showStory(){this.docsRoot().setAttribute(`hidden`,`true`),this.storyRoot().removeAttribute(`hidden`)}showStoryDuringRender(){jU.body.classList.add(PU.MAIN)}},RU=class extends dU{constructor(e,t){super(e,t,new OU,new LU),this.importFn=e,this.getProjectAnnotations=t,q.__STORYBOOK_PREVIEW__=this}},{document:zU}=q,BU=[`application/javascript`,`application/ecmascript`,`application/x-ecmascript`,`application/x-javascript`,`text/ecmascript`,`text/javascript`,`text/javascript1.0`,`text/javascript1.1`,`text/javascript1.2`,`text/javascript1.3`,`text/javascript1.4`,`text/javascript1.5`,`text/jscript`,`text/livescript`,`text/x-ecmascript`,`text/x-javascript`,`module`],VU=`script`,HU=`scripts-root`,(function(e){e.start=`/**`,e.nostart=`/***`,e.delim=`*`,e.end=`*/`})(UU=UU||={}),WU=(0,Qv(_w(),1).stringifyRules)(),GU=WU.JsdocTypeObject,WU.JsdocTypeAny=()=>`any`,WU.JsdocTypeObject=(e,t)=>`(${GU(e,t)})`,WU.JsdocTypeOptional=(e,t)=>t(e.element),WU.JsdocTypeNullable=(e,t)=>t(e.element),WU.JsdocTypeNotNullable=(e,t)=>t(e.element),WU.JsdocTypeUnion=(e,t)=>e.elements.map(t).join(`|`),KU=`storybook/docs`,`${KU}`,qU=`${KU}/snippet-rendered`,JU={depth:10,clearOnStoryChange:!0,limit:50},YU=(e={})=>{Object.assign(JU,e)},XU=(e,t)=>{let n=Object.getPrototypeOf(e);return!n||t(n)?n:XU(n,t)},ZU=e=>!!(typeof e==`object`&&e&&XU(e,e=>/^Synthetic(?:Base)?Event$/.test(e.constructor.name))&&typeof e.persist==`function`),QU=e=>{if(ZU(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let n=Object.getOwnPropertyDescriptor(t,`view`),r=n?.value;return typeof r==`object`&&r?.constructor.name===`Window`&&Object.defineProperty(t,`view`,{...n,value:Object.create(r.constructor.prototype)}),t}return e},$U=(...e)=>{let t=JU,n=e;n.length===1&&Array.isArray(n[0])&&([n]=n),n.length!==1&&typeof n[n.length-1]!=`string`&&(t={...JU,...n.pop()});let r=n[0];(n.length!==1||typeof r==`string`)&&(r={},n.forEach(e=>{r[e]=e}));let i={};return Object.keys(r).forEach(e=>{i[e]=Iv(r[e],t)}),i},eW={"@storybook/global":PT,"storybook/test":fA,"storybook/actions":Lk,"storybook/preview-api":Wk,"storybook/internal/channels":LT,"storybook/internal/client-logger":KT,"storybook/internal/core-events":yw,"storybook/internal/types":kk,"storybook/internal/preview-errors":ok,"storybook/internal/preview-api":Wk},tW=async(e,t)=>{let n={title:``,entries:{},isActive:!0};for(let r of Object.values(e.entries)){let e=r.title.split(`/`),i=n;for(let n of e)i.entries||={},i.entries[n]?t===r.id&&(i.entries[n].isActive=!0):i.entries[n]={title:n,isActive:t===r.id,entries:{}},i=i.entries[n];i.entries||={},i.entries[r.name]={id:r.id,name:r.name,href:`?id=${r.id}&viewMode=${r.type}&navigator=true`,isActive:t===r.id}}let r=e=>{if(`entries`in e&&`title`in e){let t=e;return`
|
||
<li class="sb-navigator-branch">
|
||
<details${t.isActive?` open`:``}>
|
||
<summary class="sb-navigator-title">
|
||
${t.title}
|
||
</summary>
|
||
<ul class="sb-navigator-entries" aria-label="${t.title}">
|
||
${Object.values(t.entries).map(r).join(``)}
|
||
</ul>
|
||
</details>
|
||
</li>
|
||
`}let t=e;return`
|
||
<li class="sb-navigator-story-item">
|
||
<a href="${t.href}"
|
||
class="sb-navigator-story-link${t.isActive?` active`:``}"
|
||
aria-current="${t.isActive?`location`:`false`}">${t.name}</a>
|
||
</li>
|
||
`},i=Object.values(n.entries).map(r).join(``),a=document.createElement(`nav`);a.id=`sb-navigator-container`,a.setAttribute(`role`,`navigation`),a.setAttribute(`aria-label`,`Story navigation`),a.innerHTML=`
|
||
<ul class="sb-navigator-list">${i}</ul>
|
||
`,document.body.insertBefore(a,document.body.firstChild);let o=document.createElement(`style`);o.id=`sb-navigator-style`,o.textContent=`
|
||
body {
|
||
display: grid !important;
|
||
grid-template-columns: 300px 1fr;
|
||
font-family: 'Nunito', sans-serif;
|
||
height: 100vh;
|
||
margin: 0;
|
||
|
||
--text-color: rgb(46, 52, 56);
|
||
--bg-color: rgb(246, 249, 252);
|
||
|
||
@media (prefers-color-scheme: dark) {
|
||
--text-color: rgb(201, 205, 207);
|
||
--bg-color: rgb(34, 36, 37);
|
||
}
|
||
}
|
||
#storybook-root, #storybook-docs {
|
||
overflow-y: auto;
|
||
max-height: 100vh;
|
||
max-width: 100%;
|
||
}
|
||
#sb-navigator-container, #sb-navigator-container * {
|
||
box-sizing: border-box;
|
||
}
|
||
#sb-navigator-container {
|
||
height: 100vh;
|
||
overflow-y: auto;
|
||
border-right: 1px solid #eee;
|
||
padding: 1rem;
|
||
font-size: 14px;
|
||
color: var(--text-color);
|
||
background-color: var(--bg-color);
|
||
align-self: start;
|
||
z-index: 1000;
|
||
}
|
||
.sb-main-padded #sb-navigator-container {
|
||
margin: -1rem 1rem -1rem -1rem;
|
||
}
|
||
.sb-navigator-list {
|
||
list-style-type: none;
|
||
padding: 0;
|
||
margin: 0;
|
||
}
|
||
.sb-navigator-branch {
|
||
list-style-type: none;
|
||
}
|
||
.sb-navigator-item {
|
||
margin-bottom: 15px;
|
||
}
|
||
.sb-navigator-title {
|
||
color: var(--text-color);
|
||
text-decoration: none;
|
||
padding-block: 5px;
|
||
cursor: pointer;
|
||
}
|
||
.sb-navigator-entries {
|
||
padding-left: 15px;
|
||
}
|
||
.sb-navigator-story-item {
|
||
margin-bottom: 8px;
|
||
margin-left: 8px;
|
||
}
|
||
.sb-navigator-story-link {
|
||
color: var(--text-color);
|
||
}
|
||
.sb-navigator-story-link.active {
|
||
font-weight: bold;
|
||
color: hsl(212 100 46);
|
||
}
|
||
`,document.head.appendChild(o),a.querySelector(`.sb-navigator-story-link.active`)?.closest(`details`)?.scrollIntoView({block:`center`})},nW=Qv(vw(),1),Hv()})),aW,oW,sW,cW=n((()=>{({createBrowserChannel:aW}=__STORYBOOK_MODULE_CHANNELS__),{addons:oW}=__STORYBOOK_MODULE_PREVIEW_API__,sW=aW({page:`preview`}),oW.setChannel(sW),window.__STORYBOOK_ADDONS_CHANNEL__=sW,window.CONFIG_TYPE===`DEVELOPMENT`&&(window.__STORYBOOK_SERVER_CHANNEL__=sW)}));async function lW(e){return await uW[e]()}var uW,dW=n((()=>{uW={}})),fW=i((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ee(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,ee(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),ee(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=ee(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=ee(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ee(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function N(e,t,n){if(e==null)return e;var r=[],i=0;return ee(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function te(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ne=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},re={map:N,forEach:function(e,t,n){N(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return N(e,function(){t++}),t},toArray:function(e){return N(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=re,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:te}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,ne)}catch(e){ne(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.4`})),pW=i(((e,t)=>{t.exports=fW()})),mW,hW,gW,_W=n((()=>{mW=e(pW(),1),{defaultDecorateStory:hW}=__STORYBOOK_MODULE_PREVIEW_API__,gW=(e,t)=>hW(t=>mW.createElement(e,t),t)})),vW,yW,bW,xW,SW,CW,wW,TW,EW,DW,OW=n((()=>{vW=Object.create,yW=Object.defineProperty,bW=Object.getOwnPropertyDescriptor,xW=Object.getOwnPropertyNames,SW=Object.getPrototypeOf,CW=Object.prototype.hasOwnProperty,wW=(e,t)=>function(){return t||(0,e[xW(e)[0]])((t={exports:{}}).exports,t),t.exports},TW=(e,t)=>{for(var n in t)yW(e,n,{get:t[n],enumerable:!0})},EW=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of xW(t))!CW.call(e,i)&&i!==n&&yW(e,i,{get:()=>t[i],enumerable:!(r=bW(t,i))||r.enumerable});return e},DW=(e,t,n)=>(n=e==null?{}:vW(SW(e)),EW(t||!e||!e.__esModule?yW(n,`default`,{value:e,enumerable:!0}):n,e))}));function kW(e){globalThis.IS_REACT_ACT_ENVIRONMENT=e}function AW(){return globalThis.IS_REACT_ACT_ENVIRONMENT}async function jW({storyContext:e,unboundStoryFn:t,showMain:n,showException:r,forceRemount:i},a){let{renderElement:o,unmountElement:s}=await _(async()=>{let{renderElement:e,unmountElement:t}=await import(`./react-18-TPsEcK46.js`);return{renderElement:e,unmountElement:t}},__vite__mapDeps([0,1,2,3]),import.meta.url),c=t,l=e.parameters.__isPortableStory?IW.createElement(c,{...e}):IW.createElement(GW,{key:e.id,showMain:n,showException:r},IW.createElement(c,{...e})),u=KW?IW.createElement(KW,null,l):l;i&&s(a);let d=await VW({disableAct:e.viewMode===`docs`});return await new Promise(async(t,n)=>{qW.push(async()=>{try{await d(async()=>{await o(u,a,e?.parameters?.react?.rootOptions)}),t()}catch(e){n(e)}}),YW()}),async()=>{await d(()=>{s(a)})}}function MW(){return typeof jest<`u`&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,`clock`):!1}var NW,PW,FW,IW,LW,RW,zW,BW,VW,HW,UW,WW,GW,KW,qW,JW,YW,XW,ZW,QW,$W,eG=n((()=>{_W(),OW(),NW=e(pW(),1),PW=e(pW(),1),FW=e(pW(),1),IW=e(pW(),1),g(),LW={},TW(LW,{applyDecorators:()=>gW,beforeAll:()=>$W,decorators:()=>ZW,mount:()=>XW,parameters:()=>QW,render:()=>HW,renderToCanvas:()=>jW}),{Tag:RW}=__STORYBOOK_MODULE_PREVIEW_API__,{global:zW}=__STORYBOOK_MODULE_GLOBAL__,{configure:BW}=__STORYBOOK_MODULE_TEST__,{...PW},VW=async({disableAct:e=!1}={})=>e=>e(),HW=(e,t)=>{let{id:n,component:r}=t;if(!r)throw Error(`Unable to render story ${n} as the component annotation is missing from the default export`);return FW.createElement(r,{...e})},{global:UW}=__STORYBOOK_MODULE_GLOBAL__,{FRAMEWORK_OPTIONS:WW}=UW,GW=class extends IW.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidMount(){let{hasError:e}=this.state,{showMain:t}=this.props;e||t()}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:t}},KW=WW?.strictMode?IW.StrictMode:IW.Fragment,qW=[],JW=!1,YW=async()=>{if(JW||qW.length===0)return;JW=!0;let e=qW.shift();e&&await e(),JW=!1,YW()},XW=e=>async t=>(t!=null&&(e.originalStoryFn=()=>t),await e.renderToCanvas(),e.canvas),ZW=[(e,t)=>{if(!t.parameters?.react?.rsc)return e();let[n,r]=`19.2.4`.split(`.`).map(e=>parseInt(e,10));if(!Number.isInteger(n)||!Number.isInteger(r))throw Error(`Unable to parse React version`);if(n<18||n===18&&r<3)throw Error(`React Server Components require React >= 18.3`);return NW.createElement(NW.Suspense,null,e())},(e,t)=>{if(t.tags?.includes(RW.TEST_FN)&&!zW.FEATURES?.experimentalTestSyntax)throw Error(`To use the experimental test function, you must enable the experimentalTestSyntax feature flag. See https://storybook.js.org/docs/api/main-config/main-config-features#experimentaltestsyntax`);return e()}],QW={renderer:`react`},$W=async()=>{try{let e=await VW();BW({unstable_advanceTimersWrapper:t=>e(t),asyncWrapper:async e=>{let t=AW();kW(!1);try{let t=await e();return await new Promise(e=>{setTimeout(()=>{e()},0),MW()&&jest.advanceTimersByTime(0)}),t}finally{kW(t)}},eventWrapper:t=>{let n;return e(()=>(n=t(),n)),n}})}catch{}}})),tG=r({applyDecorators:()=>gW,beforeAll:()=>$W,decorators:()=>ZW,mount:()=>XW,parameters:()=>QW,render:()=>HW,renderToCanvas:()=>jW}),nG=n((()=>{eG(),_W()}));function rG(e){return Object.prototype.toString.call(e)===`[object Object]`}function iG(e){var t,n;return rG(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(rG(n)===!1||n.hasOwnProperty(`isPrototypeOf`)===!1)))}function aG(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function oG(e){if(Array.isArray(e))return aG(e)}function sG(e,t,n){return(t=mG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cG(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function lG(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?uG(Object(n),!0).forEach(function(t){sG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fG(e){return oG(e)||cG(e)||gG(e)||lG()}function pG(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function mG(e){var t=pG(e,`string`);return typeof t==`symbol`?t:t+``}function hG(e){"@babel/helpers - typeof";return hG=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},hG(e)}function gG(e,t){if(e){if(typeof e==`string`)return aG(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?aG(e,t):void 0}}function _G(e,t){if(e===null||hG(e)!==`object`||e instanceof Date||e instanceof RegExp)return e;if(xG.isValidElement(e)){var n=dG({},e);return delete n._owner,n}return t.add(e),Array.isArray(e)?e.map(function(e){return _G(e,t)}):Object.keys(e).sort().reduce(function(n,r){return r===`current`||t.has(e[r])?n[r]=`[Circular]`:n[r]=_G(e[r],t),n},{})}function vG(e){return _G(e,new WeakSet)}function yG(){}function bG(e,t){return Array.isArray(t)?function(e){return t.indexOf(e)===-1}:function(n){return t(e[n],n)}}var xG,SG,CG,wG,TG,EG,DG,OG,kG,AG,jG,MG,NG,PG,FG,IG,LG,RG,zG,BG,VG,HG,UG,WG,GG,KG,qG,JG,YG,XG,ZG,QG,$G,eK,tK,nK,rK,iK,aK,oK,sK,cK,lK,uK,dK,fK,pK,mK,hK,gK,_K,vK=n((()=>{OW(),xG=e(pW(),1),SG=e(pW(),1),CG=wW({"../../../node_modules/@base2/pretty-print-object/dist/index.js"(e){var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)},n=e&&e.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};Object.defineProperty(e,`__esModule`,{value:!0});var r=[];function i(e){var t=typeof e;return e!==null&&(t===`object`||t===`function`)}function a(e){return Object.prototype.toString.call(e)===`[object RegExp]`}function o(e){return Object.getOwnPropertySymbols(e).filter(function(t){return Object.prototype.propertyIsEnumerable.call(e,t)})}function s(e,c,l){l===void 0&&(l=``);var u=t(t({},{indent:` `,singleQuotes:!0}),c),d=u.inlineCharacterLimit===void 0?{newLine:`
|
||
`,newLineOrSpace:`
|
||
`,pad:l,indent:l+u.indent}:{newLine:`@@__PRETTY_PRINT_NEW_LINE__@@`,newLineOrSpace:`@@__PRETTY_PRINT_NEW_LINE_OR_SPACE__@@`,pad:`@@__PRETTY_PRINT_PAD__@@`,indent:`@@__PRETTY_PRINT_INDENT__@@`},f=function(e){if(u.inlineCharacterLimit===void 0)return e;var t=e.replace(new RegExp(d.newLine,`g`),``).replace(new RegExp(d.newLineOrSpace,`g`),` `).replace(RegExp(d.pad+`|`+d.indent,`g`),``);return t.length<=u.inlineCharacterLimit?t:e.replace(RegExp(d.newLine+`|`+d.newLineOrSpace,`g`),`
|
||
`).replace(new RegExp(d.pad,`g`),l).replace(new RegExp(d.indent,`g`),l+u.indent)};if(r.indexOf(e)!==-1)return`"[Circular]"`;if(e==null||typeof e==`number`||typeof e==`boolean`||typeof e==`function`||typeof e==`symbol`||a(e))return String(e);if(e instanceof Date)return`new Date('`+e.toISOString()+`')`;if(Array.isArray(e)){if(e.length===0)return`[]`;r.push(e);var p=`[`+d.newLine+e.map(function(t,n){var r=e.length-1===n?d.newLine:`,`+d.newLineOrSpace,i=s(t,u,l+u.indent);return u.transform&&(i=u.transform(e,n,i)),d.indent+i+r}).join(``)+d.pad+`]`;return r.pop(),f(p)}if(i(e)){var m=n(Object.keys(e),o(e));if(u.filter&&(m=m.filter(function(t){return u.filter&&u.filter(e,t)})),m.length===0)return`{}`;r.push(e);var p=`{`+d.newLine+m.map(function(t,n){var r=m.length-1===n?d.newLine:`,`+d.newLineOrSpace,i=typeof t==`symbol`,a=!i&&/^[a-z$_][a-z$_0-9]*$/i.test(t.toString()),o=i||a?t:s(t,u),c=s(e[t],u,l+u.indent);return u.transform&&(c=u.transform(e,t,c)),d.indent+String(o)+`: `+c+r}).join(``)+d.pad+`}`;return r.pop(),f(p)}return e=String(e).replace(/[\r\n]/g,function(e){return e===`
|
||
`?`\\n`:`\\r`}),u.singleQuotes?(e=e.replace(/\\?'/g,`\\'`),`'`+e+`'`):(e=e.replace(/"/g,`\\"`),`"`+e+`"`)}e.prettyPrint=s}}),wG=wW({"../../../node_modules/react-element-to-jsx-string/node_modules/react-is/cjs/react-is.production.min.js"(e){var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.server_context`),l=Symbol.for(`react.forward_ref`),u=Symbol.for(`react.suspense`),d=Symbol.for(`react.suspense_list`),f=Symbol.for(`react.memo`),p=Symbol.for(`react.lazy`),m=Symbol.for(`react.offscreen`),h=Symbol.for(`react.module.reference`);function g(e){if(typeof e==`object`&&e){var m=e.$$typeof;switch(m){case t:switch(e=e.type,e){case r:case a:case i:case u:case d:return e;default:switch(e&&=e.$$typeof,e){case c:case s:case l:case p:case f:case o:return e;default:return m}}case n:return m}}}e.ContextConsumer=s,e.ContextProvider=o,e.Element=t,e.ForwardRef=l,e.Fragment=r,e.Lazy=p,e.Memo=f,e.Portal=n,e.Profiler=a,e.StrictMode=i,e.Suspense=u,e.SuspenseList=d,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function(e){return g(e)===s},e.isContextProvider=function(e){return g(e)===o},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===t},e.isForwardRef=function(e){return g(e)===l},e.isFragment=function(e){return g(e)===r},e.isLazy=function(e){return g(e)===p},e.isMemo=function(e){return g(e)===f},e.isPortal=function(e){return g(e)===n},e.isProfiler=function(e){return g(e)===a},e.isStrictMode=function(e){return g(e)===i},e.isSuspense=function(e){return g(e)===u},e.isSuspenseList=function(e){return g(e)===d},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===r||e===a||e===i||e===u||e===d||e===m||typeof e==`object`&&!!e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===o||e.$$typeof===s||e.$$typeof===l||e.$$typeof===h||e.getModuleId!==void 0)},e.typeOf=g}}),wW({"../../../node_modules/react-element-to-jsx-string/node_modules/react-is/cjs/react-is.development.js"(e){}}),TG=wW({"../../../node_modules/react-element-to-jsx-string/node_modules/react-is/index.js"(e,t){t.exports=wG()}}),EG=e=>e.$$typeof===Symbol.for(`react.memo`),DG=e=>e.$$typeof===Symbol.for(`react.forward_ref`),OG=DW(CG()),kG=DW(TG()),AG=(function(e,t){return e===0?``:Array(e*t).fill(` `).join(``)}),jG=function(e){return{type:`string`,value:e}},MG=function(e){return{type:`number`,value:e}},NG=function(e,t,n,r){return{type:`ReactElement`,displayName:e,props:t,defaultProps:n,childrens:r}},PG=function(e,t){return{type:`ReactFragment`,key:e,childrens:t}},FG=!!SG.Fragment,IG=function(e){return!e.name||e.name===`_default`?`No Display Name`:e.name},LG=function(e){switch(!0){case!!e.displayName:return e.displayName;case e.$$typeof===kG.Memo:return LG(e.type);case e.$$typeof===kG.ForwardRef:return LG(e.render);default:return IG(e)}},RG=function(e){switch(!0){case typeof e.type==`string`:return e.type;case typeof e.type==`function`:return e.type.displayName?e.type.displayName:IG(e.type);case(0,kG.isForwardRef)(e):case(0,kG.isMemo)(e):return LG(e.type);case(0,kG.isContextConsumer)(e):return`${e.type._context.displayName||`Context`}.Consumer`;case(0,kG.isContextProvider)(e):return`${e.type._context.displayName||`Context`}.Provider`;case(0,kG.isLazy)(e):return`Lazy`;case(0,kG.isProfiler)(e):return`Profiler`;case(0,kG.isStrictMode)(e):return`StrictMode`;case(0,kG.isSuspense)(e):return`Suspense`;default:return`UnknownElementType`}},zG=function(e,t){return t!==`children`},BG=function(e){return e!==!0&&e!==!1&&e!==null&&e!==``},VG=function(e,t){var n={};return Object.keys(e).filter(function(n){return t(e[n],n)}).forEach(function(t){return n[t]=e[t]}),n},HG=function(e,t){var n=t.displayName,r=n===void 0?RG:n;if(typeof e==`string`)return jG(e);if(typeof e==`number`)return MG(e);if(!SG.isValidElement(e))throw Error(`react-element-to-jsx-string: Expected a React.Element, got \`${hG(e)}\``);var i=r(e),a=VG(e.props,zG);e.ref!==null&&(a.ref=e.ref);var o=e.key;typeof o==`string`&&o.search(/^\./)&&(a.key=o);var s=VG(e.type.defaultProps||{},zG),c=SG.Children.toArray(e.props.children).filter(BG).map(function(e){return HG(e,t)});return FG&&e.type===SG.Fragment?PG(o,c):NG(i,a,s,c)},UG=function(e){return e.toString().split(`
|
||
`).map(function(e){return e.trim()}).join(``)},WG=UG,GG=(function(e,t){var n=t.functionValue,r=n===void 0?WG:n,i=t.showFunctions;return r(!i&&r===WG?yG:e)}),KG=(function(e,t,n,r){var i=vG(e),a=(0,OG.prettyPrint)(i,{transform:function(e,t,i){var a=e[t];return a&&(0,SG.isValidElement)(a)?hK(HG(a,r),!0,n,r):typeof a==`function`?GG(a,r):i}});return t?a.replace(/\s+/g,` `).replace(/{ /g,`{`).replace(/ }/g,`}`).replace(/\[ /g,`[`).replace(/ ]/g,`]`):a.replace(/\t/g,AG(1,r.tabStop)).replace(/\n([^$])/g,`
|
||
${AG(n+1,r.tabStop)}\$1`)}),qG=function(e){return e.replace(/"/g,`"`)},JG=function(e,t,n,r){if(typeof e==`number`)return`{${String(e)}}`;if(typeof e==`string`)return`"${qG(e)}"`;if(hG(e)===`symbol`){var i=e.valueOf().toString().replace(/Symbol\((.*)\)/,`$1`);return i?`{Symbol('${i}')}`:`{Symbol()}`}return typeof e==`function`?`{${GG(e,r)}}`:(0,SG.isValidElement)(e)?`{${hK(HG(e,r),!0,n,r)}}`:e instanceof Date?isNaN(e.valueOf())?`{new Date(NaN)}`:`{new Date("${e.toISOString()}")}`:iG(e)||Array.isArray(e)?`{${KG(e,t,n,r)}}`:`{${String(e)}}`},YG=(function(e,t,n,r,i,a,o,s){if(!t&&!r)throw Error(`The prop "${e}" has no value and no default: could not be formatted`);var c=t?n:i,l=s.useBooleanShorthandSyntax,u=s.tabStop,d=JG(c,a,o,s),f=` `,p=`
|
||
${AG(o+1,u)}`,m=d.includes(`
|
||
`);return l&&d===`{false}`&&!r?(f=``,p=``):l&&d===`{true}`?(f+=`${e}`,p+=`${e}`):(f+=`${e}=${d}`,p+=`${e}=${d}`),{attributeFormattedInline:f,attributeFormattedMultiline:p,isMultilineAttribute:m}}),XG=(function(e,t){var n=e.slice(0,e.length>0?e.length-1:0),r=e[e.length-1];return r&&(t.type===`string`||t.type===`number`)&&(r.type===`string`||r.type===`number`)?n.push(jG(String(r.value)+String(t.value))):(r&&n.push(r),n.push(t)),n}),ZG=function(e){return[`key`,`ref`].includes(e)},QG=(function(e){return function(t){var n=t.includes(`key`),r=t.includes(`ref`),i=t.filter(function(e){return!ZG(e)}),a=fG(e?i.sort():i);return r&&a.unshift(`ref`),n&&a.unshift(`key`),a}}),$G=function(e,t,n,r,i){var a=i.tabStop;return e.type===`string`?t.split(`
|
||
`).map(function(e,t){return t===0?e:`${AG(r,a)}${e}`}).join(`
|
||
`):t},eK=function(e,t,n){return function(r){return $G(r,hK(r,e,t,n),e,t,n)}},tK=function(e,t){return function(n){var r=Object.keys(e).includes(n);return!r||r&&e[n]!==t[n]}},nK=function(e,t,n,r,i){return i?AG(n,r).length+t.length>i:e.length>1},rK=function(e,t,n,r,i,a,o){return(nK(e,t,i,a,o)||n)&&!r},iK=(function(e,t,n,r){var i=e.type,a=e.displayName,o=a===void 0?``:a,s=e.childrens,c=e.props,l=c===void 0?{}:c,u=e.defaultProps,d=u===void 0?{}:u;if(i!==`ReactElement`)throw Error(`The "formatReactElementNode" function could only format node of type "ReactElement". Given: ${i}`);var f=r.filterProps,p=r.maxInlineAttributesLineLength,m=r.showDefaultProps,h=r.sortProps,g=r.tabStop,_=`<${o}`,v=_,y=_,b=!1,x=[],S=bG(l,f);Object.keys(l).filter(S).filter(tK(d,l)).forEach(function(e){return x.push(e)}),Object.keys(d).filter(S).filter(function(){return m}).filter(function(e){return!x.includes(e)}).forEach(function(e){return x.push(e)});var C=QG(h)(x);if(C.forEach(function(e){var i=YG(e,Object.keys(l).includes(e),l[e],Object.keys(d).includes(e),d[e],t,n,r),a=i.attributeFormattedInline,o=i.attributeFormattedMultiline;i.isMultilineAttribute&&(b=!0),v+=a,y+=o}),y+=`
|
||
${AG(n,g)}`,_=rK(C,v,b,t,n,g,p)?y:v,s&&s.length>0){var w=n+1;_+=`>`,t||(_+=`
|
||
`,_+=AG(w,g)),_+=s.reduce(XG,[]).map(eK(t,w,r)).join(t?``:`
|
||
${AG(w,g)}`),t||(_+=`
|
||
`,_+=AG(w-1,g)),_+=`</${o}>`}else nK(C,v,n,g,p)||(_+=` `),_+=`/>`;return _}),aK=``,oK=`React.Fragment`,sK=function(e,t,n){var r={};return t&&(r={key:t}),{type:`ReactElement`,displayName:e,props:r,defaultProps:{},childrens:n}},cK=function(e){return!!e.key},lK=function(e){return e.childrens.length===0},uK=(function(e,t,n,r){var i=e.type,a=e.key,o=e.childrens;if(i!==`ReactFragment`)throw Error(`The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: ${i}`);var s=r.useFragmentShortSyntax,c;return c=s?lK(e)||cK(e)?oK:aK:oK,iK(sK(c,a,o),t,n,r)}),dK=[`<`,`>`,`{`,`}`],fK=function(e){return dK.some(function(t){return e.includes(t)})},pK=function(e){return fK(e)?`{\`${e}\`}`:e},mK=function(e){var t=e;return t.endsWith(` `)&&(t=t.replace(/^(.*?)(\s+)$/,`$1{'$2'}`)),t.startsWith(` `)&&(t=t.replace(/^(\s+)(.*)$/,`{'$1'}$2`)),t},hK=(function(e,t,n,r){if(e.type===`number`)return String(e.value);if(e.type===`string`)return e.value?`${mK(pK(String(e.value)))}`:``;if(e.type===`ReactElement`)return iK(e,t,n,r);if(e.type===`ReactFragment`)return uK(e,t,n,r);throw TypeError(`Unknow format type "${e.type}"`)}),gK=(function(e,t){return hK(e,!1,0,t)}),_K=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.filterProps,r=n===void 0?[]:n,i=t.showDefaultProps,a=i===void 0?!0:i,o=t.showFunctions,s=o===void 0?!1:o,c=t.functionValue,l=t.tabStop,u=l===void 0?2:l,d=t.useBooleanShorthandSyntax,f=d===void 0?!0:d,p=t.useFragmentShortSyntax,m=p===void 0?!0:p,h=t.sortProps,g=h===void 0?!0:h,_=t.maxInlineAttributesLineLength,v=t.displayName;if(!e)throw Error(`react-element-to-jsx-string: Expected a ReactElement`);var y={filterProps:r,showDefaultProps:a,showFunctions:s,functionValue:c,tabStop:u,useBooleanShorthandSyntax:f,useFragmentShortSyntax:m,sortProps:g,maxInlineAttributesLineLength:_,displayName:v};return gK(HG(e,y),y)}})),yK=n((()=>{l()}));function bK(e){var t=[...arguments].slice(1),n=Array.from(typeof e==`string`?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,``);var r=n.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){return e.match(/[\t ]/g)?.length??0})):e},[]);if(r.length){var i=RegExp(`
|
||
[ ]{`+Math.min.apply(Math,r)+`}`,`g`);n=n.map(function(e){return e.replace(i,`
|
||
`)})}n[0]=n[0].replace(/^\r?\n/,``);var a=n[0];return t.forEach(function(e,t){var r=a.match(/(?:^|\n)( *)$/),i=r?r[1]:``,o=e;typeof e==`string`&&e.includes(`
|
||
`)&&(o=String(e).split(`
|
||
`).map(function(e,t){return t===0?e:``+i+e}).join(`
|
||
`)),a+=o+n[t+1]}),a}function xK(e,t=!1){return(0,mJ.generate)(e,t?gJ:_J)}function SK(e,t=!1){return t?CK(e):xK(e)}function CK(e){let t=xK(e,!0);return t.endsWith(` }`)||(t=`${t.slice(0,-1)} }`),t}function wK(e,t=!1){return t?EK(e):TK(e)}function TK(e){let t=xK(e);return t.endsWith(` }]`)&&(t=bK(t)),t}function EK(e){let t=xK(e,!0);return t.startsWith(`[ `)&&(t=t.replace(`[ `,`[`)),t}function DK(e,t,n,r,i){n||=Q,(function e(r,i,a){var o=a||r.type,s=t[o];n[o](r,i,e),s&&s(r,i)})(e,r,i)}function OK(e,t,n,r,i){var a=[];n||=Q,(function e(r,i,o){var s=o||r.type,c=t[s],l=r!==a[a.length-1];l&&a.push(r),n[s](r,i,e),c&&c(r,i||a,a),l&&a.pop()})(e,r,i)}function kK(e,t,n){n(e,t)}function AK(e,t,n){}function jK(e){return e==null?null:e.name}function MK(e){return e.filter(e=>e.type===`ObjectExpression`||e.type===`ArrayExpression`)}function NK(e){let t=[];return OK(e,{ObjectExpression(e,n){t.push(MK(n).length)},ArrayExpression(e,n){t.push(MK(n).length)}},bJ),Math.max(...t)}function PK(e){return{inferredType:{type:`Identifier`,identifier:jK(e)},ast:e}}function FK(e){return{inferredType:{type:`Literal`},ast:e}}function IK(e){let t;DK(e.body,{JSXElement(e){t=e}},bJ);let n={type:t==null?`Function`:`Element`,params:e.params,hasParams:e.params.length!==0},r=jK(e.id);return r!=null&&(n.identifier=r),{inferredType:n,ast:e}}function LK(e){let t;return DK(e.body,{JSXElement(e){t=e}},bJ),{inferredType:{type:t==null?`Class`:`Element`,identifier:jK(e.id)},ast:e}}function RK(e){let t={type:`Element`},n=jK(e.openingElement.name);return n!=null&&(t.identifier=n),{inferredType:t,ast:e}}function zK(e){return jK(e.callee.type===`MemberExpression`?e.callee.property:e.callee)===`shape`?BK(e.arguments[0]):null}function BK(e){return{inferredType:{type:`Object`,depth:NK(e)},ast:e}}function VK(e){return{inferredType:{type:`Array`,depth:NK(e)},ast:e}}function HK(e){switch(e.type){case`Identifier`:return PK(e);case`Literal`:return FK(e);case`FunctionExpression`:case`ArrowFunctionExpression`:return IK(e);case`ClassExpression`:return LK(e);case`JSXElement`:return RK(e);case`CallExpression`:return zK(e);case`ObjectExpression`:return BK(e);case`ArrayExpression`:return VK(e);default:return null}}function UK(e){let t=xJ.parse(`(${e})`,{ecmaVersion:2020}),n={inferredType:{type:`Unknown`},ast:t};if(t.body[0]!=null){let e=t.body[0];switch(e.type){case`ExpressionStatement`:{let t=HK(e.expression);t!=null&&(n=t);break}default:break}}return n}function WK(e){try{return{...UK(e)}}catch{}return{inferredType:{type:`Unknown`}}}function GK(e){return SJ.default.includes(e.toLowerCase())}function KK({inferredType:e,ast:t}){let{depth:n}=e;if(n<=2){let e=wK(t,!0);if(!a(e))return m(e)}return m(uJ,wK(t))}function qK({inferredType:e,ast:t}){let{depth:n}=e;if(n===1){let e=SK(t,!0);if(!a(e))return m(e)}return m(lJ,SK(t))}function JK(e,t){return t?`${e}( ... )`:`${e}()`}function YK(e){return`<${e} />`}function XK(e){let{type:t,identifier:n}=e;switch(t){case`Function`:return JK(n,e.hasParams);case`Element`:return YK(n);default:return n}}function ZK({inferredType:e,ast:t}){let{identifier:n}=e;if(n!=null)return m(XK(e),xK(t));let r=xK(t,!0);return a(r)?m(fJ,xK(t)):m(r)}function QK(e,t){let{inferredType:n}=t,{identifier:r}=n;return r!=null&&!GK(r)?m(XK(n),e):a(e)?m(pJ,e):m(e)}function $K(e){try{let t=WK(e);switch(t.inferredType.type){case`Object`:return qK(t);case`Function`:return ZK(t);case`Element`:return QK(e,t);case`Array`:return KK(t);default:return null}}catch(e){console.error(e)}return null}function eq(e){if(!e||typeof e!=`object`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)===`[object Object]`:!1}function tq(e){return typeof e==`function`}function nq(e){return typeof e==`string`}function rq(e){return e.$$typeof!=null}function iq(e,t){let{name:n}=e;return n!==``&&n!==`anonymous`&&n!==t?n:null}function aq(e){let{type:t}=e,{displayName:n}=t,r=CJ(e,{});if(n!=null)return m(YK(n),r);if(nq(t)&&GK(t)){let t=CJ(e,{tabStop:0}).replace(/\r?\n|\r/g,``);if(!a(t))return m(t)}return m(pJ,r)}function oq(e={}){return{...OJ,...e}}function sq(e,t,n=OJ){try{switch(typeof e){case`string`:return n.string(e,t);case`object`:return n.object(e,t);case`function`:return n.function(e,t);default:return n.default(e,t)}}catch(e){console.error(e)}return null}function cq(e,t){let n=e!=null,r=t!=null;if(!n&&!r)return``;let i=[];if(n){let t=e.map(e=>{let t=e.getPrettyName(),n=e.getTypeName();return n==null?t:`${t}: ${n}`});i.push(`(${t.join(`, `)})`)}else i.push(`()`);return r&&i.push(`=> ${t.getTypeName()}`),i.join(` `)}function lq(e,t){let n=e!=null,r=t!=null;if(!n&&!r)return``;let i=[];return n?i.push(`( ... )`):i.push(`()`),r&&i.push(`=> ${t.getTypeName()}`),i.join(` `)}function uq(e){return e.replace(/,/g,`,\r
|
||
`)}function dq({name:e,short:t,compact:n,full:r,inferredType:i}){return{name:e,short:t,compact:n,full:r??t,inferredType:i}}function fq(e){return e.replace(/PropTypes./g,``).replace(/.isRequired/g,``)}function pq(e){return e.split(/\r?\n/)}function mq(e,t=!1){return fq(SK(e,t))}function hq(e,t=!1){return fq(xK(e,t))}function gq(e){switch(e){case`Object`:return lJ;case`Array`:return uJ;case`Class`:return dJ;case`Function`:return fJ;case`Element`:return pJ;default:return cJ}}function _q(e,t){let{inferredType:n,ast:r}=WK(e),{type:i}=n,a,o,s;switch(i){case`Identifier`:case`Literal`:a=e,o=e;break;case`Object`:{let{depth:e}=n;a=lJ,o=e===1?mq(r,!0):null,s=mq(r);break}case`Element`:{let{identifier:t}=n;a=t!=null&&!GK(t)?t:pJ,o=pq(e).length===1?e:null,s=e;break}case`Array`:{let{depth:e}=n;a=uJ,o=e<=2?hq(r,!0):null,s=hq(r);break}default:a=gq(i),o=pq(e).length===1?e:null,s=e;break}return dq({name:t,short:a,compact:o,full:s,inferredType:i})}function vq({raw:e}){return e==null?dq({name:`custom`,short:cJ,compact:cJ}):_q(e,`custom`)}function yq(e){let{jsDocTags:t}=e;return t!=null&&(t.params!=null||t.returns!=null)?dq({name:`func`,short:lq(t.params,t.returns),compact:null,full:cq(t.params,t.returns)}):dq({name:`func`,short:fJ,compact:fJ})}function bq(e,t){let{inferredType:n,ast:r}=WK(`{ ${Object.keys(e.value).map(n=>`${n}: ${Aq(e.value[n],t).full}`).join(`, `)} }`),{depth:i}=n;return dq({name:`shape`,short:lJ,compact:i===1&&r?mq(r,!0):null,full:r?mq(r):null})}function xq(e){return`objectOf(${e})`}function Sq(e,t){let{short:n,compact:r,full:i}=Aq(e.value,t);return dq({name:`objectOf`,short:xq(n),compact:r==null?null:xq(r),full:i&&xq(i)})}function Cq(e,t){if(Array.isArray(e.value)){let n=e.value.reduce((e,n)=>{let{short:r,compact:i,full:a}=Aq(n,t);return e.short.push(r),e.compact.push(i),e.full.push(a),e},{short:[],compact:[],full:[]});return dq({name:`union`,short:n.short.join(` | `),compact:n.compact.every(e=>e!=null)?n.compact.join(` | `):null,full:n.full.join(` | `)})}return dq({name:`union`,short:e.value,compact:null})}function wq({value:e,computed:t}){return t?_q(e,`enumvalue`):dq({name:`enumvalue`,short:e,compact:e})}function Tq(e){if(Array.isArray(e.value)){let t=e.value.reduce((e,t)=>{let{short:n,compact:r,full:i}=wq(t);return e.short.push(n),e.compact.push(r),e.full.push(i),e},{short:[],compact:[],full:[]});return dq({name:`enum`,short:t.short.join(` | `),compact:t.compact.every(e=>e!=null)?t.compact.join(` | `):null,full:t.full.join(` | `)})}return dq({name:`enum`,short:e.value,compact:e.value})}function Eq(e){return`${e}[]`}function Dq(e){return`[${e}]`}function Oq(e,t,n){return dq({name:`arrayOf`,short:Eq(e),compact:t==null?null:Dq(t),full:n&&Dq(n)})}function kq(e,t){let{name:n,short:r,compact:i,full:a,inferredType:o}=Aq(e.value,t);if(n===`custom`){if(o===`Object`)return Oq(r,i,a)}else if(n===`shape`)return Oq(r,i,a);return dq({name:`arrayOf`,short:Eq(r),compact:Eq(r)})}function Aq(e,t){try{switch(e.name){case`custom`:return vq(e);case`func`:return yq(t);case`shape`:return bq(e,t);case`instanceOf`:return dq({name:`instanceOf`,short:e.value,compact:e.value});case`objectOf`:return Sq(e,t);case`union`:return Cq(e,t);case`enum`:return Tq(e);case`arrayOf`:return kq(e,t);default:return dq({name:e.name,short:e.name,compact:e.name})}}catch(e){console.error(e)}return dq({name:`unknown`,short:`unknown`,compact:`unknown`})}function jq(e){let{type:t}=e.docgenInfo;if(t==null)return null;try{switch(t.name){case`custom`:case`shape`:case`instanceOf`:case`objectOf`:case`union`:case`enum`:case`arrayOf`:{let{short:n,compact:r,full:i}=Aq(t,e);return r!=null&&!h(r)?m(r):i?m(n,i):m(n)}case`func`:{let{short:n,full:r}=Aq(t,e),i=n,a;return r&&r.length<kJ?i=r:r&&(a=uq(r)),m(i,a)}default:return null}}catch(e){console.error(e)}return null}function Mq(e,t){let{propTypes:n}=t;return n==null?e:Object.keys(n).map(t=>e.find(e=>e.name===t)).filter(Boolean)}function Nq(e,t){let{propDef:n}=e,r=jq(e);r!=null&&(n.type=r);let{defaultValue:i}=e.docgenInfo;if(i!=null&&i.value!=null){let e=$K(i.value);e!=null&&(n.defaultValue=e)}else if(t!=null){let e=sq(t,n,jJ);e!=null&&(n.defaultValue=e)}return n}function Pq(e,t){let n=t.defaultProps==null?{}:t.defaultProps;return Mq(e.map(e=>Nq(e,n[e.propDef.name])),t)}function Fq(e,t){let{propDef:n}=e,{defaultValue:r}=e.docgenInfo;if(r!=null&&r.value!=null){let e=$K(r.value);e!=null&&(n.defaultValue=e)}else if(t!=null){let e=sq(t,n);e!=null&&(n.defaultValue=e)}return n}function Iq(e){return e.map(e=>Fq(e))}function Lq(e,t){let n=e;!u(e)&&!e.propTypes&&EG(e)&&(n=e.type);let r=p(n,t);if(r.length===0)return[];switch(r[0].typeSystem){case d.JAVASCRIPT:return Pq(r,e);case d.TYPESCRIPT:return Iq(r);default:return r.map(e=>e.propDef)}}var Rq,zq,Bq,Vq,Hq,Uq,Wq,Gq,Kq,qq,Jq,Yq,Xq,Zq,Qq,$q,eJ,tJ,nJ,rJ,iJ,aJ,oJ,sJ,cJ,lJ,uJ,dJ,fJ,pJ,mJ,hJ,gJ,_J,vJ,yJ,Q,bJ,xJ,SJ,CJ,wJ,TJ,EJ,DJ,OJ,kJ,AJ,jJ,MJ,NJ,PJ,FJ,IJ=n((()=>{vK(),OW(),yK(),Rq=wW({"../../../node_modules/estraverse/estraverse.js"(e){(function e(t){var n,r,i,a,o,s;function c(e){var t={},n,r;for(n in e)e.hasOwnProperty(n)&&(r=e[n],typeof r==`object`&&r?t[n]=c(r):t[n]=r);return t}function l(e,t){var n,r,i,a;for(r=e.length,i=0;r;)n=r>>>1,a=i+n,t(e[a])?r=n:(i=a+1,r-=n+1);return i}n={AssignmentExpression:`AssignmentExpression`,AssignmentPattern:`AssignmentPattern`,ArrayExpression:`ArrayExpression`,ArrayPattern:`ArrayPattern`,ArrowFunctionExpression:`ArrowFunctionExpression`,AwaitExpression:`AwaitExpression`,BlockStatement:`BlockStatement`,BinaryExpression:`BinaryExpression`,BreakStatement:`BreakStatement`,CallExpression:`CallExpression`,CatchClause:`CatchClause`,ChainExpression:`ChainExpression`,ClassBody:`ClassBody`,ClassDeclaration:`ClassDeclaration`,ClassExpression:`ClassExpression`,ComprehensionBlock:`ComprehensionBlock`,ComprehensionExpression:`ComprehensionExpression`,ConditionalExpression:`ConditionalExpression`,ContinueStatement:`ContinueStatement`,DebuggerStatement:`DebuggerStatement`,DirectiveStatement:`DirectiveStatement`,DoWhileStatement:`DoWhileStatement`,EmptyStatement:`EmptyStatement`,ExportAllDeclaration:`ExportAllDeclaration`,ExportDefaultDeclaration:`ExportDefaultDeclaration`,ExportNamedDeclaration:`ExportNamedDeclaration`,ExportSpecifier:`ExportSpecifier`,ExpressionStatement:`ExpressionStatement`,ForStatement:`ForStatement`,ForInStatement:`ForInStatement`,ForOfStatement:`ForOfStatement`,FunctionDeclaration:`FunctionDeclaration`,FunctionExpression:`FunctionExpression`,GeneratorExpression:`GeneratorExpression`,Identifier:`Identifier`,IfStatement:`IfStatement`,ImportExpression:`ImportExpression`,ImportDeclaration:`ImportDeclaration`,ImportDefaultSpecifier:`ImportDefaultSpecifier`,ImportNamespaceSpecifier:`ImportNamespaceSpecifier`,ImportSpecifier:`ImportSpecifier`,Literal:`Literal`,LabeledStatement:`LabeledStatement`,LogicalExpression:`LogicalExpression`,MemberExpression:`MemberExpression`,MetaProperty:`MetaProperty`,MethodDefinition:`MethodDefinition`,ModuleSpecifier:`ModuleSpecifier`,NewExpression:`NewExpression`,ObjectExpression:`ObjectExpression`,ObjectPattern:`ObjectPattern`,PrivateIdentifier:`PrivateIdentifier`,Program:`Program`,Property:`Property`,PropertyDefinition:`PropertyDefinition`,RestElement:`RestElement`,ReturnStatement:`ReturnStatement`,SequenceExpression:`SequenceExpression`,SpreadElement:`SpreadElement`,Super:`Super`,SwitchStatement:`SwitchStatement`,SwitchCase:`SwitchCase`,TaggedTemplateExpression:`TaggedTemplateExpression`,TemplateElement:`TemplateElement`,TemplateLiteral:`TemplateLiteral`,ThisExpression:`ThisExpression`,ThrowStatement:`ThrowStatement`,TryStatement:`TryStatement`,UnaryExpression:`UnaryExpression`,UpdateExpression:`UpdateExpression`,VariableDeclaration:`VariableDeclaration`,VariableDeclarator:`VariableDeclarator`,WhileStatement:`WhileStatement`,WithStatement:`WithStatement`,YieldExpression:`YieldExpression`},i={AssignmentExpression:[`left`,`right`],AssignmentPattern:[`left`,`right`],ArrayExpression:[`elements`],ArrayPattern:[`elements`],ArrowFunctionExpression:[`params`,`body`],AwaitExpression:[`argument`],BlockStatement:[`body`],BinaryExpression:[`left`,`right`],BreakStatement:[`label`],CallExpression:[`callee`,`arguments`],CatchClause:[`param`,`body`],ChainExpression:[`expression`],ClassBody:[`body`],ClassDeclaration:[`id`,`superClass`,`body`],ClassExpression:[`id`,`superClass`,`body`],ComprehensionBlock:[`left`,`right`],ComprehensionExpression:[`blocks`,`filter`,`body`],ConditionalExpression:[`test`,`consequent`,`alternate`],ContinueStatement:[`label`],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:[`body`,`test`],EmptyStatement:[],ExportAllDeclaration:[`source`],ExportDefaultDeclaration:[`declaration`],ExportNamedDeclaration:[`declaration`,`specifiers`,`source`],ExportSpecifier:[`exported`,`local`],ExpressionStatement:[`expression`],ForStatement:[`init`,`test`,`update`,`body`],ForInStatement:[`left`,`right`,`body`],ForOfStatement:[`left`,`right`,`body`],FunctionDeclaration:[`id`,`params`,`body`],FunctionExpression:[`id`,`params`,`body`],GeneratorExpression:[`blocks`,`filter`,`body`],Identifier:[],IfStatement:[`test`,`consequent`,`alternate`],ImportExpression:[`source`],ImportDeclaration:[`specifiers`,`source`],ImportDefaultSpecifier:[`local`],ImportNamespaceSpecifier:[`local`],ImportSpecifier:[`imported`,`local`],Literal:[],LabeledStatement:[`label`,`body`],LogicalExpression:[`left`,`right`],MemberExpression:[`object`,`property`],MetaProperty:[`meta`,`property`],MethodDefinition:[`key`,`value`],ModuleSpecifier:[],NewExpression:[`callee`,`arguments`],ObjectExpression:[`properties`],ObjectPattern:[`properties`],PrivateIdentifier:[],Program:[`body`],Property:[`key`,`value`],PropertyDefinition:[`key`,`value`],RestElement:[`argument`],ReturnStatement:[`argument`],SequenceExpression:[`expressions`],SpreadElement:[`argument`],Super:[],SwitchStatement:[`discriminant`,`cases`],SwitchCase:[`test`,`consequent`],TaggedTemplateExpression:[`tag`,`quasi`],TemplateElement:[],TemplateLiteral:[`quasis`,`expressions`],ThisExpression:[],ThrowStatement:[`argument`],TryStatement:[`block`,`handler`,`finalizer`],UnaryExpression:[`argument`],UpdateExpression:[`argument`],VariableDeclaration:[`declarations`],VariableDeclarator:[`id`,`init`],WhileStatement:[`test`,`body`],WithStatement:[`object`,`body`],YieldExpression:[`argument`]},a={},o={},s={},r={Break:a,Skip:o,Remove:s};function u(e,t){this.parent=e,this.key=t}u.prototype.replace=function(e){this.parent[this.key]=e},u.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function d(e,t,n,r){this.node=e,this.path=t,this.wrap=n,this.ref=r}function f(){}f.prototype.path=function(){var e,t,n,r,i,a;function o(e,t){if(Array.isArray(t))for(n=0,r=t.length;n<r;++n)e.push(t[n]);else e.push(t)}if(!this.__current.path)return null;for(i=[],e=2,t=this.__leavelist.length;e<t;++e)a=this.__leavelist[e],o(i,a.path);return o(i,this.__current.path),i},f.prototype.type=function(){return this.current().type||this.__current.wrap},f.prototype.parents=function(){var e,t,n;for(n=[],e=1,t=this.__leavelist.length;e<t;++e)n.push(this.__leavelist[e].node);return n},f.prototype.current=function(){return this.__current.node},f.prototype.__execute=function(e,t){var n,r;return r=void 0,n=this.__current,this.__current=t,this.__state=null,e&&(r=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=n,r},f.prototype.notify=function(e){this.__state=e},f.prototype.skip=function(){this.notify(o)},f.prototype.break=function(){this.notify(a)},f.prototype.remove=function(){this.notify(s)},f.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,t.fallback===`iteration`?this.__fallback=Object.keys:typeof t.fallback==`function`&&(this.__fallback=t.fallback),this.__keys=i,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))};function p(e){return e==null?!1:typeof e==`object`&&typeof e.type==`string`}function m(e,t){return(e===n.ObjectExpression||e===n.ObjectPattern)&&t===`properties`}function h(e,t){for(var n=e.length-1;n>=0;--n)if(e[n].node===t)return!0;return!1}f.prototype.traverse=function(e,t){var n,r,i,s,c,l,u,f,g,_,v,y;for(this.__initialize(e,t),y={},n=this.__worklist,r=this.__leavelist,n.push(new d(e,null,null,null)),r.push(new d(null,null,null,null));n.length;){if(i=n.pop(),i===y){if(i=r.pop(),l=this.__execute(t.leave,i),this.__state===a||l===a)return;continue}if(i.node){if(l=this.__execute(t.enter,i),this.__state===a||l===a)return;if(n.push(y),r.push(i),this.__state===o||l===o)continue;if(s=i.node,c=s.type||i.wrap,_=this.__keys[c],!_)if(this.__fallback)_=this.__fallback(s);else throw Error(`Unknown node type `+c+`.`);for(f=_.length;--f>=0;)if(u=_[f],v=s[u],v){if(Array.isArray(v)){for(g=v.length;--g>=0;)if(v[g]&&!h(r,v[g])){if(m(c,_[f]))i=new d(v[g],[u,g],`Property`,null);else if(p(v[g]))i=new d(v[g],[u,g],null,null);else continue;n.push(i)}}else if(p(v)){if(h(r,v))continue;n.push(new d(v,u,null,null))}}}}},f.prototype.replace=function(e,t){var n,r,i,c,l,f,h,g,_,v,y,b,x;function S(e){var t,r,i,a;if(e.ref.remove()){for(r=e.ref.key,a=e.ref.parent,t=n.length;t--;)if(i=n[t],i.ref&&i.ref.parent===a){if(i.ref.key<r)break;--i.ref.key}}}for(this.__initialize(e,t),y={},n=this.__worklist,r=this.__leavelist,b={root:e},f=new d(e,null,null,new u(b,`root`)),n.push(f),r.push(f);n.length;){if(f=n.pop(),f===y){if(f=r.pop(),l=this.__execute(t.leave,f),l!==void 0&&l!==a&&l!==o&&l!==s&&f.ref.replace(l),(this.__state===s||l===s)&&S(f),this.__state===a||l===a)return b.root;continue}if(l=this.__execute(t.enter,f),l!==void 0&&l!==a&&l!==o&&l!==s&&(f.ref.replace(l),f.node=l),(this.__state===s||l===s)&&(S(f),f.node=null),this.__state===a||l===a)return b.root;if(i=f.node,i&&(n.push(y),r.push(f),!(this.__state===o||l===o))){if(c=i.type||f.wrap,_=this.__keys[c],!_)if(this.__fallback)_=this.__fallback(i);else throw Error(`Unknown node type `+c+`.`);for(h=_.length;--h>=0;)if(x=_[h],v=i[x],v)if(Array.isArray(v)){for(g=v.length;--g>=0;)if(v[g]){if(m(c,_[h]))f=new d(v[g],[x,g],`Property`,new u(v,g));else if(p(v[g]))f=new d(v[g],[x,g],null,new u(v,g));else continue;n.push(f)}}else p(v)&&n.push(new d(v,x,null,new u(i,x)))}}return b.root};function g(e,t){return new f().traverse(e,t)}function _(e,t){return new f().replace(e,t)}function v(e,t){var n;return n=l(t,function(t){return t.range[0]>e.range[0]}),e.extendedRange=[e.range[0],e.range[1]],n!==t.length&&(e.extendedRange[1]=t[n].range[0]),--n,n>=0&&(e.extendedRange[0]=t[n].range[1]),e}function y(e,t,n){var i=[],a,o,s,l;if(!e.range)throw Error(`attachComments needs range information`);if(!n.length){if(t.length){for(s=0,o=t.length;s<o;s+=1)a=c(t[s]),a.extendedRange=[0,e.range[0]],i.push(a);e.leadingComments=i}return e}for(s=0,o=t.length;s<o;s+=1)i.push(v(c(t[s]),n));return l=0,g(e,{enter:function(e){for(var t;l<i.length&&(t=i[l],!(t.extendedRange[1]>e.range[0]));)t.extendedRange[1]===e.range[0]?(e.leadingComments||=[],e.leadingComments.push(t),i.splice(l,1)):l+=1;if(l===i.length)return r.Break;if(i[l].extendedRange[0]>e.range[1])return r.Skip}}),l=0,g(e,{leave:function(e){for(var t;l<i.length&&(t=i[l],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||=[],e.trailingComments.push(t),i.splice(l,1)):l+=1;if(l===i.length)return r.Break;if(i[l].extendedRange[0]>e.range[1])return r.Skip}}),e}return t.Syntax=n,t.traverse=g,t.replace=_,t.attachComments=y,t.VisitorKeys=i,t.VisitorOption=r,t.Controller=f,t.cloneEnvironment=function(){return e({})},t})(e)}}),zq=wW({"../../../node_modules/esutils/lib/ast.js"(e,t){(function(){function e(e){if(e==null)return!1;switch(e.type){case`ArrayExpression`:case`AssignmentExpression`:case`BinaryExpression`:case`CallExpression`:case`ConditionalExpression`:case`FunctionExpression`:case`Identifier`:case`Literal`:case`LogicalExpression`:case`MemberExpression`:case`NewExpression`:case`ObjectExpression`:case`SequenceExpression`:case`ThisExpression`:case`UnaryExpression`:case`UpdateExpression`:return!0}return!1}function n(e){if(e==null)return!1;switch(e.type){case`DoWhileStatement`:case`ForInStatement`:case`ForStatement`:case`WhileStatement`:return!0}return!1}function r(e){if(e==null)return!1;switch(e.type){case`BlockStatement`:case`BreakStatement`:case`ContinueStatement`:case`DebuggerStatement`:case`DoWhileStatement`:case`EmptyStatement`:case`ExpressionStatement`:case`ForInStatement`:case`ForStatement`:case`IfStatement`:case`LabeledStatement`:case`ReturnStatement`:case`SwitchStatement`:case`ThrowStatement`:case`TryStatement`:case`VariableDeclaration`:case`WhileStatement`:case`WithStatement`:return!0}return!1}function i(e){return r(e)||e!=null&&e.type===`FunctionDeclaration`}function a(e){switch(e.type){case`IfStatement`:return e.alternate==null?e.consequent:e.alternate;case`LabeledStatement`:case`ForStatement`:case`ForInStatement`:case`WhileStatement`:case`WithStatement`:return e.body}return null}function o(e){var t;if(e.type!==`IfStatement`||e.alternate==null)return!1;t=e.consequent;do{if(t.type===`IfStatement`&&t.alternate==null)return!0;t=a(t)}while(t);return!1}t.exports={isExpression:e,isStatement:r,isIterationStatement:n,isSourceElement:i,isProblematicIfStatement:o,trailingStatement:a}})()}}),Bq=wW({"../../../node_modules/esutils/lib/code.js"(e,t){(function(){var e,n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},r,i,a,o;e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function s(e){return 48<=e&&e<=57}function c(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70}function l(e){return e>=48&&e<=55}r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function u(e){return e===32||e===9||e===11||e===12||e===160||e>=5760&&r.indexOf(e)>=0}function d(e){return e===10||e===13||e===8232||e===8233}function f(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(i=Array(128),o=0;o<128;++o)i[o]=o>=97&&o<=122||o>=65&&o<=90||o===36||o===95;for(a=Array(128),o=0;o<128;++o)a[o]=o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===36||o===95;function p(e){return e<128?i[e]:n.NonAsciiIdentifierStart.test(f(e))}function m(e){return e<128?a[e]:n.NonAsciiIdentifierPart.test(f(e))}function h(t){return t<128?i[t]:e.NonAsciiIdentifierStart.test(f(t))}function g(t){return t<128?a[t]:e.NonAsciiIdentifierPart.test(f(t))}t.exports={isDecimalDigit:s,isHexDigit:c,isOctalDigit:l,isWhiteSpace:u,isLineTerminator:d,isIdentifierStartES5:p,isIdentifierPartES5:m,isIdentifierStartES6:h,isIdentifierPartES6:g}})()}}),Vq=wW({"../../../node_modules/esutils/lib/keyword.js"(e,t){(function(){var e=Bq();function n(e){switch(e){case`implements`:case`interface`:case`package`:case`private`:case`protected`:case`public`:case`static`:case`let`:return!0;default:return!1}}function r(e,t){return!t&&e===`yield`?!1:i(e,t)}function i(e,t){if(t&&n(e))return!0;switch(e.length){case 2:return e===`if`||e===`in`||e===`do`;case 3:return e===`var`||e===`for`||e===`new`||e===`try`;case 4:return e===`this`||e===`else`||e===`case`||e===`void`||e===`with`||e===`enum`;case 5:return e===`while`||e===`break`||e===`catch`||e===`throw`||e===`const`||e===`yield`||e===`class`||e===`super`;case 6:return e===`return`||e===`typeof`||e===`delete`||e===`switch`||e===`export`||e===`import`;case 7:return e===`default`||e===`finally`||e===`extends`;case 8:return e===`function`||e===`continue`||e===`debugger`;case 10:return e===`instanceof`;default:return!1}}function a(e,t){return e===`null`||e===`true`||e===`false`||r(e,t)}function o(e,t){return e===`null`||e===`true`||e===`false`||i(e,t)}function s(e){return e===`eval`||e===`arguments`}function c(t){var n,r,i;if(t.length===0||(i=t.charCodeAt(0),!e.isIdentifierStartES5(i)))return!1;for(n=1,r=t.length;n<r;++n)if(i=t.charCodeAt(n),!e.isIdentifierPartES5(i))return!1;return!0}function l(e,t){return(e-55296)*1024+(t-56320)+65536}function u(t){var n,r,i,a,o;if(t.length===0)return!1;for(o=e.isIdentifierStartES6,n=0,r=t.length;n<r;++n){if(i=t.charCodeAt(n),55296<=i&&i<=56319){if(++n,n>=r||(a=t.charCodeAt(n),!(56320<=a&&a<=57343)))return!1;i=l(i,a)}if(!o(i))return!1;o=e.isIdentifierPartES6}return!0}function d(e,t){return c(e)&&!a(e,t)}function f(e,t){return u(e)&&!o(e,t)}t.exports={isKeywordES5:r,isKeywordES6:i,isReservedWordES5:a,isReservedWordES6:o,isRestrictedWord:s,isIdentifierNameES5:c,isIdentifierNameES6:u,isIdentifierES5:d,isIdentifierES6:f}})()}}),Hq=wW({"../../../node_modules/esutils/lib/utils.js"(e){(function(){e.ast=zq(),e.code=Bq(),e.keyword=Vq()})()}}),Uq=wW({"../../../node_modules/escodegen/node_modules/source-map/lib/base64.js"(e){var t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``);e.encode=function(e){if(0<=e&&e<t.length)return t[e];throw TypeError(`Must be between 0 and 63: `+e)},e.decode=function(e){var t=65,n=90,r=97,i=122,a=48;return t<=e&&e<=n?e-t:r<=e&&e<=i?e-r+26:a<=e&&e<=57?e-a+52:e==43?62:e==47?63:-1}}}),Wq=wW({"../../../node_modules/escodegen/node_modules/source-map/lib/base64-vlq.js"(e){var t=Uq(),n=5,r=1<<n,i=r-1,a=r;function o(e){return e<0?(-e<<1)+1:(e<<1)+0}function s(e){var t=(e&1)==1,n=e>>1;return t?-n:n}e.encode=function(e){var r=``,s,c=o(e);do s=c&i,c>>>=n,c>0&&(s|=a),r+=t.encode(s);while(c>0);return r},e.decode=function(e,r,o){var c=e.length,l=0,u=0,d,f;do{if(r>=c)throw Error(`Expected more digits in base 64 VLQ value.`);if(f=t.decode(e.charCodeAt(r++)),f===-1)throw Error(`Invalid base64 digit: `+e.charAt(r-1));d=!!(f&a),f&=i,l+=f<<u,u+=n}while(d);o.value=s(l),o.rest=r}}}),Gq=wW({"../../../node_modules/escodegen/node_modules/source-map/lib/util.js"(e){function t(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw Error(`"`+t+`" is a required argument.`)}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}e.urlParse=i;function a(e){var t=``;return e.scheme&&(t+=e.scheme+`:`),t+=`//`,e.auth&&(t+=e.auth+`@`),e.host&&(t+=e.host),e.port&&(t+=`:`+e.port),e.path&&(t+=e.path),t}e.urlGenerate=a;function o(t){var n=t,r=i(t);if(r){if(!r.path)return t;n=r.path}for(var o=e.isAbsolute(n),s=n.split(/\/+/),c,l=0,u=s.length-1;u>=0;u--)c=s[u],c===`.`?s.splice(u,1):c===`..`?l++:l>0&&(c===``?(s.splice(u+1,l),l=0):(s.splice(u,2),l--));return n=s.join(`/`),n===``&&(n=o?`/`:`.`),r?(r.path=n,a(r)):n}e.normalize=o;function s(e,t){e===``&&(e=`.`),t===``&&(t=`.`);var n=i(t),s=i(e);if(s&&(e=s.path||`/`),n&&!n.scheme)return s&&(n.scheme=s.scheme),a(n);if(n||t.match(r))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var c=t.charAt(0)===`/`?t:o(e.replace(/\/+$/,``)+`/`+t);return s?(s.path=c,a(s)):c}e.join=s,e.isAbsolute=function(e){return e.charAt(0)===`/`||n.test(e)};function c(e,t){e===``&&(e=`.`),e=e.replace(/\/$/,``);for(var n=0;t.indexOf(e+`/`)!==0;){var r=e.lastIndexOf(`/`);if(r<0||(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/)))return t;++n}return Array(n+1).join(`../`)+t.substr(e.length+1)}e.relative=c;var l=(function(){return!(`__proto__`in Object.create(null))})();function u(e){return e}function d(e){return p(e)?`$`+e:e}e.toSetString=l?u:d;function f(e){return p(e)?e.slice(1):e}e.fromSetString=l?u:f;function p(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var n=t-10;n>=0;n--)if(e.charCodeAt(n)!==36)return!1;return!0}function m(e,t,n){var r=g(e.source,t.source);return r!==0||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:g(e.name,t.name)}e.compareByOriginalPositions=m;function h(e,t,n){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||n)||(r=g(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:g(e.name,t.name)}e.compareByGeneratedPositionsDeflated=h;function g(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function _(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=g(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:g(e.name,t.name)}e.compareByGeneratedPositionsInflated=_;function v(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,``))}e.parseSourceMapInput=v;function y(e,t,n){if(t||=``,e&&(e[e.length-1]!==`/`&&t[0]!==`/`&&(e+=`/`),t=e+t),n){var r=i(n);if(!r)throw Error(`sourceMapURL could not be parsed`);if(r.path){var c=r.path.lastIndexOf(`/`);c>=0&&(r.path=r.path.substring(0,c+1))}t=s(a(r),t)}return o(t)}e.computeSourceURL=y}}),Kq=wW({"../../../node_modules/escodegen/node_modules/source-map/lib/array-set.js"(e){var t=Gq(),n=Object.prototype.hasOwnProperty,r=typeof Map<`u`;function i(){this._array=[],this._set=r?new Map:Object.create(null)}i.fromArray=function(e,t){for(var n=new i,r=0,a=e.length;r<a;r++)n.add(e[r],t);return n},i.prototype.size=function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},i.prototype.add=function(e,i){var a=r?e:t.toSetString(e),o=r?this.has(e):n.call(this._set,a),s=this._array.length;(!o||i)&&this._array.push(e),o||(r?this._set.set(e,s):this._set[a]=s)},i.prototype.has=function(e){if(r)return this._set.has(e);var i=t.toSetString(e);return n.call(this._set,i)},i.prototype.indexOf=function(e){if(r){var i=this._set.get(e);if(i>=0)return i}else{var a=t.toSetString(e);if(n.call(this._set,a))return this._set[a]}throw Error(`"`+e+`" is not in the set.`)},i.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw Error(`No element indexed by `+e)},i.prototype.toArray=function(){return this._array.slice()},e.ArraySet=i}}),qq=wW({"../../../node_modules/escodegen/node_modules/source-map/lib/mapping-list.js"(e){var t=Gq();function n(e,n){var r=e.generatedLine,i=n.generatedLine,a=e.generatedColumn,o=n.generatedColumn;return i>r||i==r&&o>=a||t.compareByGeneratedPositionsInflated(e,n)<=0}function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}r.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},r.prototype.add=function(e){n(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},r.prototype.toArray=function(){return this._sorted||=(this._array.sort(t.compareByGeneratedPositionsInflated),!0),this._array},e.MappingList=r}}),Jq=wW({"../../../node_modules/escodegen/node_modules/source-map/lib/source-map-generator.js"(e){var t=Wq(),n=Gq(),r=Kq().ArraySet,i=qq().MappingList;function a(e){e||={},this._file=n.getArg(e,`file`,null),this._sourceRoot=n.getArg(e,`sourceRoot`,null),this._skipValidation=n.getArg(e,`skipValidation`,!1),this._sources=new r,this._names=new r,this._mappings=new i,this._sourcesContents=null}a.prototype._version=3,a.fromSourceMap=function(e){var t=e.sourceRoot,r=new a({file:e.file,sourceRoot:t});return e.eachMapping(function(e){var i={generated:{line:e.generatedLine,column:e.generatedColumn}};e.source!=null&&(i.source=e.source,t!=null&&(i.source=n.relative(t,i.source)),i.original={line:e.originalLine,column:e.originalColumn},e.name!=null&&(i.name=e.name)),r.addMapping(i)}),e.sources.forEach(function(i){var a=i;t!==null&&(a=n.relative(t,i)),r._sources.has(a)||r._sources.add(a);var o=e.sourceContentFor(i);o!=null&&r.setSourceContent(i,o)}),r},a.prototype.addMapping=function(e){var t=n.getArg(e,`generated`),r=n.getArg(e,`original`,null),i=n.getArg(e,`source`,null),a=n.getArg(e,`name`,null);this._skipValidation||this._validateMapping(t,r,i,a),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),a!=null&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:i,name:a})},a.prototype.setSourceContent=function(e,t){var r=e;this._sourceRoot!=null&&(r=n.relative(this._sourceRoot,r)),t==null?this._sourcesContents&&(delete this._sourcesContents[n.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null)):(this._sourcesContents||=Object.create(null),this._sourcesContents[n.toSetString(r)]=t)},a.prototype.applySourceMap=function(e,t,i){var a=t;if(t==null){if(e.file==null)throw Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);a=e.file}var o=this._sourceRoot;o!=null&&(a=n.relative(o,a));var s=new r,c=new r;this._mappings.unsortedForEach(function(t){if(t.source===a&&t.originalLine!=null){var r=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});r.source!=null&&(t.source=r.source,i!=null&&(t.source=n.join(i,t.source)),o!=null&&(t.source=n.relative(o,t.source)),t.originalLine=r.line,t.originalColumn=r.column,r.name!=null&&(t.name=r.name))}var l=t.source;l!=null&&!s.has(l)&&s.add(l);var u=t.name;u!=null&&!c.has(u)&&c.add(u)},this),this._sources=s,this._names=c,e.sources.forEach(function(t){var r=e.sourceContentFor(t);r!=null&&(i!=null&&(t=n.join(i,t)),o!=null&&(t=n.relative(o,t)),this.setSourceContent(t,r))},this)},a.prototype._validateMapping=function(e,t,n,r){if(t&&typeof t.line!=`number`&&typeof t.column!=`number`)throw Error(`original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.`);if(!(e&&`line`in e&&`column`in e&&e.line>0&&e.column>=0&&!t&&!n&&!r)){if(e&&`line`in e&&`column`in e&&t&&`line`in t&&`column`in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n)return;throw Error(`Invalid mapping: `+JSON.stringify({generated:e,source:n,original:t,name:r}))}},a.prototype._serializeMappings=function(){for(var e=0,r=1,i=0,a=0,o=0,s=0,c=``,l,u,d,f,p=this._mappings.toArray(),m=0,h=p.length;m<h;m++){if(u=p[m],l=``,u.generatedLine!==r)for(e=0;u.generatedLine!==r;)l+=`;`,r++;else if(m>0){if(!n.compareByGeneratedPositionsInflated(u,p[m-1]))continue;l+=`,`}l+=t.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(f=this._sources.indexOf(u.source),l+=t.encode(f-s),s=f,l+=t.encode(u.originalLine-1-a),a=u.originalLine-1,l+=t.encode(u.originalColumn-i),i=u.originalColumn,u.name!=null&&(d=this._names.indexOf(u.name),l+=t.encode(d-o),o=d)),c+=l}return c},a.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;t!=null&&(e=n.relative(t,e));var r=n.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},a.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=a}}),Yq=wW({"../../../node_modules/escodegen/node_modules/source-map/lib/binary-search.js"(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,r,i,a,o,s){var c=Math.floor((r-n)/2)+n,l=o(i,a[c],!0);return l===0?c:l>0?r-c>1?t(c,r,i,a,o,s):s==e.LEAST_UPPER_BOUND?r<a.length?r:-1:c:c-n>1?t(n,c,i,a,o,s):s==e.LEAST_UPPER_BOUND?c:n<0?-1:n}e.search=function(n,r,i,a){if(r.length===0)return-1;var o=t(-1,r.length,n,r,i,a||e.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&i(r[o],r[o-1],!0)===0;)--o;return o}}}),Xq=wW({"../../../node_modules/escodegen/node_modules/source-map/lib/quick-sort.js"(e){function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function n(e,t){return Math.round(e+Math.random()*(t-e))}function r(e,i,a,o){if(a<o){var s=n(a,o),c=a-1;t(e,s,o);for(var l=e[o],u=a;u<o;u++)i(e[u],l)<=0&&(c+=1,t(e,c,u));t(e,c+1,u);var d=c+1;r(e,i,a,d-1),r(e,i,d+1,o)}}e.quickSort=function(e,t){r(e,t,0,e.length-1)}}}),Zq=wW({"../../../node_modules/escodegen/node_modules/source-map/lib/source-map-consumer.js"(e){var t=Gq(),n=Yq(),r=Kq().ArraySet,i=Wq(),a=Xq().quickSort;function o(e,n){var r=e;return typeof e==`string`&&(r=t.parseSourceMapInput(e)),r.sections==null?new s(r,n):new l(r,n)}o.fromSourceMap=function(e,t){return s.fromSourceMap(e,t)},o.prototype._version=3,o.prototype.__generatedMappings=null,Object.defineProperty(o.prototype,`_generatedMappings`,{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),o.prototype.__originalMappings=null,Object.defineProperty(o.prototype,`_originalMappings`,{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),o.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return n===`;`||n===`,`},o.prototype._parseMappings=function(e,t){throw Error(`Subclasses must implement _parseMappings`)},o.GENERATED_ORDER=1,o.ORIGINAL_ORDER=2,o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2,o.prototype.eachMapping=function(e,n,r){var i=n||null,a=r||o.GENERATED_ORDER,s;switch(a){case o.GENERATED_ORDER:s=this._generatedMappings;break;case o.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw Error(`Unknown order of iteration.`)}var c=this.sourceRoot;s.map(function(e){var n=e.source===null?null:this._sources.at(e.source);return n=t.computeSourceURL(c,n,this._sourceMapURL),{source:n,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:e.name===null?null:this._names.at(e.name)}},this).forEach(e,i)},o.prototype.allGeneratedPositionsFor=function(e){var r=t.getArg(e,`line`),i={source:t.getArg(e,`source`),originalLine:r,originalColumn:t.getArg(e,`column`,0)};if(i.source=this._findSourceIndex(i.source),i.source<0)return[];var a=[],o=this._findMapping(i,this._originalMappings,`originalLine`,`originalColumn`,t.compareByOriginalPositions,n.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(e.column===void 0)for(var c=s.originalLine;s&&s.originalLine===c;)a.push({line:t.getArg(s,`generatedLine`,null),column:t.getArg(s,`generatedColumn`,null),lastColumn:t.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o];else for(var l=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==l;)a.push({line:t.getArg(s,`generatedLine`,null),column:t.getArg(s,`generatedColumn`,null),lastColumn:t.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o]}return a},e.SourceMapConsumer=o;function s(e,n){var i=e;typeof e==`string`&&(i=t.parseSourceMapInput(e));var a=t.getArg(i,`version`),o=t.getArg(i,`sources`),s=t.getArg(i,`names`,[]),c=t.getArg(i,`sourceRoot`,null),l=t.getArg(i,`sourcesContent`,null),u=t.getArg(i,`mappings`),d=t.getArg(i,`file`,null);if(a!=this._version)throw Error(`Unsupported version: `+a);c&&=t.normalize(c),o=o.map(String).map(t.normalize).map(function(e){return c&&t.isAbsolute(c)&&t.isAbsolute(e)?t.relative(c,e):e}),this._names=r.fromArray(s.map(String),!0),this._sources=r.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map(function(e){return t.computeSourceURL(c,e,n)}),this.sourceRoot=c,this.sourcesContent=l,this._mappings=u,this._sourceMapURL=n,this.file=d}s.prototype=Object.create(o.prototype),s.prototype.consumer=o,s.prototype._findSourceIndex=function(e){var n=e;if(this.sourceRoot!=null&&(n=t.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1},s.fromSourceMap=function(e,n){var i=Object.create(s.prototype),o=i._names=r.fromArray(e._names.toArray(),!0),l=i._sources=r.fromArray(e._sources.toArray(),!0);i.sourceRoot=e._sourceRoot,i.sourcesContent=e._generateSourcesContent(i._sources.toArray(),i.sourceRoot),i.file=e._file,i._sourceMapURL=n,i._absoluteSources=i._sources.toArray().map(function(e){return t.computeSourceURL(i.sourceRoot,e,n)});for(var u=e._mappings.toArray().slice(),d=i.__generatedMappings=[],f=i.__originalMappings=[],p=0,m=u.length;p<m;p++){var h=u[p],g=new c;g.generatedLine=h.generatedLine,g.generatedColumn=h.generatedColumn,h.source&&(g.source=l.indexOf(h.source),g.originalLine=h.originalLine,g.originalColumn=h.originalColumn,h.name&&(g.name=o.indexOf(h.name)),f.push(g)),d.push(g)}return a(i.__originalMappings,t.compareByOriginalPositions),i},s.prototype._version=3,Object.defineProperty(s.prototype,`sources`,{get:function(){return this._absoluteSources.slice()}});function c(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s.prototype._parseMappings=function(e,n){for(var r=1,o=0,s=0,l=0,u=0,d=0,f=e.length,p=0,m={},h={},g=[],_=[],v,y,b,x,S;p<f;)if(e.charAt(p)===`;`)r++,p++,o=0;else if(e.charAt(p)===`,`)p++;else{for(v=new c,v.generatedLine=r,x=p;x<f&&!this._charIsMappingSeparator(e,x);x++);if(y=e.slice(p,x),b=m[y],b)p+=y.length;else{for(b=[];p<x;)i.decode(e,p,h),S=h.value,p=h.rest,b.push(S);if(b.length===2)throw Error(`Found a source, but no line and column`);if(b.length===3)throw Error(`Found a source and line, but no column`);m[y]=b}v.generatedColumn=o+b[0],o=v.generatedColumn,b.length>1&&(v.source=u+b[1],u+=b[1],v.originalLine=s+b[2],s=v.originalLine,v.originalLine+=1,v.originalColumn=l+b[3],l=v.originalColumn,b.length>4&&(v.name=d+b[4],d+=b[4])),_.push(v),typeof v.originalLine==`number`&&g.push(v)}a(_,t.compareByGeneratedPositionsDeflated),this.__generatedMappings=_,a(g,t.compareByOriginalPositions),this.__originalMappings=g},s.prototype._findMapping=function(e,t,r,i,a,o){if(e[r]<=0)throw TypeError(`Line must be greater than or equal to 1, got `+e[r]);if(e[i]<0)throw TypeError(`Column must be greater than or equal to 0, got `+e[i]);return n.search(e,t,a,o)},s.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},s.prototype.originalPositionFor=function(e){var n={generatedLine:t.getArg(e,`line`),generatedColumn:t.getArg(e,`column`)},r=this._findMapping(n,this._generatedMappings,`generatedLine`,`generatedColumn`,t.compareByGeneratedPositionsDeflated,t.getArg(e,`bias`,o.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===n.generatedLine){var a=t.getArg(i,`source`,null);a!==null&&(a=this._sources.at(a),a=t.computeSourceURL(this.sourceRoot,a,this._sourceMapURL));var s=t.getArg(i,`name`,null);return s!==null&&(s=this._names.at(s)),{source:a,line:t.getArg(i,`originalLine`,null),column:t.getArg(i,`originalColumn`,null),name:s}}}return{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1},s.prototype.sourceContentFor=function(e,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var i=e;this.sourceRoot!=null&&(i=t.relative(this.sourceRoot,i));var a;if(this.sourceRoot!=null&&(a=t.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,``);if(a.scheme==`file`&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!a.path||a.path==`/`)&&this._sources.has(`/`+i))return this.sourcesContent[this._sources.indexOf(`/`+i)]}if(n)return null;throw Error(`"`+i+`" is not in the SourceMap.`)},s.prototype.generatedPositionFor=function(e){var n=t.getArg(e,`source`);if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:t.getArg(e,`line`),originalColumn:t.getArg(e,`column`)},i=this._findMapping(r,this._originalMappings,`originalLine`,`originalColumn`,t.compareByOriginalPositions,t.getArg(e,`bias`,o.GREATEST_LOWER_BOUND));if(i>=0){var a=this._originalMappings[i];if(a.source===r.source)return{line:t.getArg(a,`generatedLine`,null),column:t.getArg(a,`generatedColumn`,null),lastColumn:t.getArg(a,`lastGeneratedColumn`,null)}}return{line:null,column:null,lastColumn:null}},e.BasicSourceMapConsumer=s;function l(e,n){var i=e;typeof e==`string`&&(i=t.parseSourceMapInput(e));var a=t.getArg(i,`version`),s=t.getArg(i,`sections`);if(a!=this._version)throw Error(`Unsupported version: `+a);this._sources=new r,this._names=new r;var c={line:-1,column:0};this._sections=s.map(function(e){if(e.url)throw Error(`Support for url field in sections not implemented.`);var r=t.getArg(e,`offset`),i=t.getArg(r,`line`),a=t.getArg(r,`column`);if(i<c.line||i===c.line&&a<c.column)throw Error(`Section offsets must be ordered and non-overlapping.`);return c=r,{generatedOffset:{generatedLine:i+1,generatedColumn:a+1},consumer:new o(t.getArg(e,`map`),n)}})}l.prototype=Object.create(o.prototype),l.prototype.constructor=o,l.prototype._version=3,Object.defineProperty(l.prototype,`sources`,{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),l.prototype.originalPositionFor=function(e){var r={generatedLine:t.getArg(e,`line`),generatedColumn:t.getArg(e,`column`)},i=n.search(r,this._sections,function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn}),a=this._sections[i];return a?a.consumer.originalPositionFor({line:r.generatedLine-(a.generatedOffset.generatedLine-1),column:r.generatedColumn-(a.generatedOffset.generatedLine===r.generatedLine?a.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},l.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},l.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw Error(`"`+e+`" is not in the SourceMap.`)},l.prototype.generatedPositionFor=function(e){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(r.consumer._findSourceIndex(t.getArg(e,`source`))!==-1){var i=r.consumer.generatedPositionFor(e);if(i)return{line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},l.prototype._parseMappings=function(e,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var i=this._sections[r],o=i.consumer._generatedMappings,s=0;s<o.length;s++){var c=o[s],l=i.consumer._sources.at(c.source);l=t.computeSourceURL(i.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var u=null;c.name&&(u=i.consumer._names.at(c.name),this._names.add(u),u=this._names.indexOf(u));var d={source:l,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:u};this.__generatedMappings.push(d),typeof d.originalLine==`number`&&this.__originalMappings.push(d)}a(this.__generatedMappings,t.compareByGeneratedPositionsDeflated),a(this.__originalMappings,t.compareByOriginalPositions)},e.IndexedSourceMapConsumer=l}}),Qq=wW({"../../../node_modules/escodegen/node_modules/source-map/lib/source-node.js"(e){var t=Jq().SourceMapGenerator,n=Gq(),r=/(\r?\n)/,i=10,a=`$$$isSourceNode$$$`;function o(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=n??null,this.name=i??null,this[a]=!0,r!=null&&this.add(r)}o.fromStringWithSourceMap=function(e,t,i){var a=new o,s=e.split(r),c=0,l=function(){return e()+(e()||``);function e(){return c<s.length?s[c++]:void 0}},u=1,d=0,f=null;return t.eachMapping(function(e){if(f!==null)if(u<e.generatedLine)p(f,l()),u++,d=0;else{var t=s[c]||``,n=t.substr(0,e.generatedColumn-d);s[c]=t.substr(e.generatedColumn-d),d=e.generatedColumn,p(f,n),f=e;return}for(;u<e.generatedLine;)a.add(l()),u++;if(d<e.generatedColumn){var t=s[c]||``;a.add(t.substr(0,e.generatedColumn)),s[c]=t.substr(e.generatedColumn),d=e.generatedColumn}f=e},this),c<s.length&&(f&&p(f,l()),a.add(s.splice(c).join(``))),t.sources.forEach(function(e){var r=t.sourceContentFor(e);r!=null&&(i!=null&&(e=n.join(i,e)),a.setSourceContent(e,r))}),a;function p(e,t){if(e===null||e.source===void 0)a.add(t);else{var r=i?n.join(i,e.source):e.source;a.add(new o(e.originalLine,e.originalColumn,r,t,e.name))}}},o.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else if(e[a]||typeof e==`string`)e&&this.children.push(e);else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got `+e);return this},o.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[a]||typeof e==`string`)this.children.unshift(e);else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got `+e);return this},o.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)t=this.children[n],t[a]?t.walk(e):t!==``&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},o.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},o.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[a]?n.replaceRight(e,t):typeof n==`string`?this.children[this.children.length-1]=n.replace(e,t):this.children.push(``.replace(e,t)),this},o.prototype.setSourceContent=function(e,t){this.sourceContents[n.toSetString(e)]=t},o.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][a]&&this.children[t].walkSourceContents(e);for(var i=Object.keys(this.sourceContents),t=0,r=i.length;t<r;t++)e(n.fromSetString(i[t]),this.sourceContents[i[t]])},o.prototype.toString=function(){var e=``;return this.walk(function(t){e+=t}),e},o.prototype.toStringWithSourceMap=function(e){var n={code:``,line:1,column:0},r=new t(e),a=!1,o=null,s=null,c=null,l=null;return this.walk(function(e,t){n.code+=e,t.source!==null&&t.line!==null&&t.column!==null?((o!==t.source||s!==t.line||c!==t.column||l!==t.name)&&r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name}),o=t.source,s=t.line,c=t.column,l=t.name,a=!0):a&&=(r.addMapping({generated:{line:n.line,column:n.column}}),o=null,!1);for(var u=0,d=e.length;u<d;u++)e.charCodeAt(u)===i?(n.line++,n.column=0,u+1===d?(o=null,a=!1):a&&r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name})):n.column++}),this.walkSourceContents(function(e,t){r.setSourceContent(e,t)}),{code:n.code,map:r}},e.SourceNode=o}}),$q=wW({"../../../node_modules/escodegen/node_modules/source-map/source-map.js"(e){e.SourceMapGenerator=Jq().SourceMapGenerator,e.SourceMapConsumer=Zq().SourceMapConsumer,e.SourceNode=Qq().SourceNode}}),eJ=wW({"../../../node_modules/escodegen/package.json"(e,t){t.exports={name:`escodegen`,description:`ECMAScript code generator`,homepage:`http://github.com/estools/escodegen`,main:`escodegen.js`,bin:{esgenerate:`./bin/esgenerate.js`,escodegen:`./bin/escodegen.js`},files:[`LICENSE.BSD`,`README.md`,`bin`,`escodegen.js`,`package.json`],version:`2.1.0`,engines:{node:`>=6.0`},maintainers:[{name:`Yusuke Suzuki`,email:`utatane.tea@gmail.com`,web:`http://github.com/Constellation`}],repository:{type:`git`,url:`http://github.com/estools/escodegen.git`},dependencies:{estraverse:`^5.2.0`,esutils:`^2.0.2`,esprima:`^4.0.1`},optionalDependencies:{"source-map":`~0.6.1`},devDependencies:{acorn:`^8.0.4`,bluebird:`^3.4.7`,"bower-registry-client":`^1.0.0`,chai:`^4.2.0`,"chai-exclude":`^2.0.2`,"commonjs-everywhere":`^0.9.7`,gulp:`^4.0.2`,"gulp-eslint":`^6.0.0`,"gulp-mocha":`^7.0.2`,minimist:`^1.2.5`,optionator:`^0.9.1`,semver:`^7.3.4`},license:`BSD-2-Clause`,scripts:{test:`gulp travis`,"unit-test":`gulp test`,lint:`gulp lint`,release:`node tools/release.js`,"build-min":`./node_modules/.bin/cjsify -ma path: tools/entry-point.js > escodegen.browser.min.js`,build:`./node_modules/.bin/cjsify -a path: tools/entry-point.js > escodegen.browser.js`}}}}),tJ=wW({"../../../node_modules/escodegen/escodegen.js"(e){(function(){var t,n,r,i,a=Rq(),o=Hq(),s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E;t=a.Syntax;function D(e){return Fe.Expression.hasOwnProperty(e.type)}function O(e){return Fe.Statement.hasOwnProperty(e.type)}n={Sequence:0,Yield:1,Assignment:1,Conditional:2,ArrowFunction:2,Coalesce:3,LogicalOR:4,LogicalAND:5,BitwiseOR:6,BitwiseXOR:7,BitwiseAND:8,Equality:9,Relational:10,BitwiseSHIFT:11,Additive:12,Multiplicative:13,Exponentiation:14,Await:15,Unary:15,Postfix:16,OptionalChaining:17,Call:18,New:19,TaggedTemplate:20,Member:21,Primary:22},r={"??":n.Coalesce,"||":n.LogicalOR,"&&":n.LogicalAND,"|":n.BitwiseOR,"^":n.BitwiseXOR,"&":n.BitwiseAND,"==":n.Equality,"!=":n.Equality,"===":n.Equality,"!==":n.Equality,is:n.Equality,isnt:n.Equality,"<":n.Relational,">":n.Relational,"<=":n.Relational,">=":n.Relational,in:n.Relational,instanceof:n.Relational,"<<":n.BitwiseSHIFT,">>":n.BitwiseSHIFT,">>>":n.BitwiseSHIFT,"+":n.Additive,"-":n.Additive,"*":n.Multiplicative,"%":n.Multiplicative,"/":n.Multiplicative,"**":n.Exponentiation};var k=1,A=2,j=4,M=8,ee=16,N=32,te=64,ne=A|j,re=k|A,P=k|A|j,ie=k,ae=j,oe=k|j,F=k,se=k|N,ce=0,le=k|ee,ue=k|M;function de(){return{indent:null,base:null,parse:null,comment:!1,format:{indent:{style:` `,base:0,adjustMultilineComment:!1},newline:`
|
||
`,space:` `,json:!1,renumber:!1,hexadecimal:!1,quotes:`single`,escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},moz:{comprehensionExpressionStartsWithAssignment:!1,starlessGenerator:!1},sourceMap:null,sourceMapRoot:null,sourceMapWithCode:!1,directive:!1,raw:!0,verbatim:null,sourceCode:null}}function fe(e,t){var n=``;for(t|=0;t>0;t>>>=1,e+=e)t&1&&(n+=e);return n}function pe(e){return/[\r\n]/g.test(e)}function me(e){var t=e.length;return t&&o.code.isLineTerminator(e.charCodeAt(t-1))}function he(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function ge(e,t){var n,r;function i(e){return typeof e==`object`&&e instanceof Object&&!(e instanceof RegExp)}for(n in t)t.hasOwnProperty(n)&&(r=t[n],i(r)?i(e[n])?ge(e[n],r):e[n]=ge({},r):e[n]=r);return e}function _e(e){var t,n,r,i,a;if(e!==e)throw Error(`Numeric literal whose value is NaN`);if(e<0||e===0&&1/e<0)throw Error(`Numeric literal whose value is negative`);if(e===1/0)return l?`null`:u?`1e400`:`1e+400`;if(t=``+e,!u||t.length<3)return t;for(n=t.indexOf(`.`),!l&&t.charCodeAt(0)===48&&n===1&&(n=0,t=t.slice(1)),r=t,t=t.replace(`e+`,`e`),i=0,(a=r.indexOf(`e`))>0&&(i=+r.slice(a+1),r=r.slice(0,a)),n>=0&&(i-=r.length-n-1,r=+(r.slice(0,n)+r.slice(n+1))+``),a=0;r.charCodeAt(r.length+a-1)===48;)--a;return a!==0&&(i-=a,r=r.slice(0,a)),i!==0&&(r+=`e`+i),(r.length<t.length||d&&e>0xe8d4a51000&&Math.floor(e)===e&&(r=`0x`+e.toString(16)).length<t.length)&&+r===e&&(t=r),t}function ve(e,t){return(e&-2)==8232?(t?`u`:`\\u`)+(e===8232?`2028`:`2029`):e===10||e===13?(t?``:`\\`)+(e===10?`n`:`r`):String.fromCharCode(e)}function ye(e){var t,n,r,i,a,o,s,c;if(n=e.toString(),e.source){if(t=n.match(/\/([^/]*)$/),!t)return n;for(r=t[1],n=``,s=!1,c=!1,i=0,a=e.source.length;i<a;++i)o=e.source.charCodeAt(i),c?(n+=ve(o,c),c=!1):(s?o===93&&(s=!1):o===47?n+=`\\`:o===91&&(s=!0),n+=ve(o,c),c=o===92);return`/`+n+`/`+r}return n}function be(e,t){var n;return e===8?`\\b`:e===12?`\\f`:e===9?`\\t`:(n=e.toString(16).toUpperCase(),l||e>255?`\\u`+`0000`.slice(n.length)+n:e===0&&!o.code.isDecimalDigit(t)?`\\0`:e===11?`\\x0B`:`\\x`+`00`.slice(n.length)+n)}function xe(e){if(e===92)return`\\\\`;if(e===10)return`\\n`;if(e===13)return`\\r`;if(e===8232)return`\\u2028`;if(e===8233)return`\\u2029`;throw Error(`Incorrectly classified character`)}function Se(e){var t,n,r,i;for(i=f===`double`?`"`:`'`,t=0,n=e.length;t<n;++t)if(r=e.charCodeAt(t),r===39){i=`"`;break}else if(r===34){i=`'`;break}else r===92&&++t;return i+e+i}function I(e){var t=``,n,r,i,a=0,s=0,c,u;for(n=0,r=e.length;n<r;++n){if(i=e.charCodeAt(n),i===39)++a;else if(i===34)++s;else if(i===47&&l)t+=`\\`;else if(o.code.isLineTerminator(i)||i===92){t+=xe(i);continue}else if(!o.code.isIdentifierPartES5(i)&&(l&&i<32||!l&&!p&&(i<32||i>126))){t+=be(i,e.charCodeAt(n+1));continue}t+=String.fromCharCode(i)}if(c=!(f===`double`||f===`auto`&&s<a),u=c?`'`:`"`,!(c?a:s))return u+t+u;for(e=t,t=u,n=0,r=e.length;n<r;++n)i=e.charCodeAt(n),(i===39&&c||i===34&&!c)&&(t+=`\\`),t+=String.fromCharCode(i);return t+u}function Ce(e){var t,n,r,i=``;for(t=0,n=e.length;t<n;++t)r=e[t],i+=Array.isArray(r)?Ce(r):r;return i}function we(e,t){if(!S)return Array.isArray(e)?Ce(e):e;if(t==null){if(e instanceof i)return e;t={}}return t.loc==null?new i(null,null,S,e,t.name||null):new i(t.loc.start.line,t.loc.start.column,S===!0?t.loc.source||null:S,e,t.name||null)}function Te(){return h||` `}function L(e,t){var n,r,i,a;return n=we(e).toString(),n.length===0?[t]:(r=we(t).toString(),r.length===0?[e]:(i=n.charCodeAt(n.length-1),a=r.charCodeAt(0),(i===43||i===45)&&i===a||o.code.isIdentifierPartES5(i)&&o.code.isIdentifierPartES5(a)||i===47&&a===105?[e,Te(),t]:o.code.isWhiteSpace(i)||o.code.isLineTerminator(i)||o.code.isWhiteSpace(a)||o.code.isLineTerminator(a)?[e,t]:[e,h,t]))}function Ee(e){return[s,e]}function De(e){var t=s;s+=c,e(s),s=t}function Oe(e){var t;for(t=e.length-1;t>=0&&!o.code.isLineTerminator(e.charCodeAt(t));--t);return e.length-1-t}function R(e,t){var n,r,i,a,c,l,u,d;for(n=e.split(/\r\n|[\r\n]/),l=Number.MAX_VALUE,r=1,i=n.length;r<i;++r){for(a=n[r],c=0;c<a.length&&o.code.isWhiteSpace(a.charCodeAt(c));)++c;l>c&&(l=c)}for(typeof t<`u`?(u=s,n[1][l]===`*`&&(t+=` `),s=t):(l&1&&--l,u=s),r=1,i=n.length;r<i;++r)d=we(Ee(n[r].slice(l))),n[r]=S?d.join(``):d;return s=u,n.join(`
|
||
`)}function ke(e,t){if(e.type===`Line`){if(me(e.value))return`//`+e.value;var n=`//`+e.value;return w||(n+=`
|
||
`),n}return b.format.indent.adjustMultilineComment&&/[\n\r]/.test(e.value)?R(`/*`+e.value+`*/`,t):`/*`+e.value+`*/`}function Ae(e,n){var r,i,a,o,l,u,d,f,p,m,h,g,_,y;if(e.leadingComments&&e.leadingComments.length>0){if(o=n,w){for(a=e.leadingComments[0],n=[],f=a.extendedRange,p=a.range,h=C.substring(f[0],p[0]),y=(h.match(/\n/g)||[]).length,y>0?(n.push(fe(`
|
||
`,y)),n.push(Ee(ke(a)))):(n.push(h),n.push(ke(a))),m=p,r=1,i=e.leadingComments.length;r<i;r++)a=e.leadingComments[r],p=a.range,g=C.substring(m[1],p[0]),y=(g.match(/\n/g)||[]).length,n.push(fe(`
|
||
`,y)),n.push(Ee(ke(a))),m=p;_=C.substring(p[1],f[1]),y=(_.match(/\n/g)||[]).length,n.push(fe(`
|
||
`,y))}else for(a=e.leadingComments[0],n=[],v&&e.type===t.Program&&e.body.length===0&&n.push(`
|
||
`),n.push(ke(a)),me(we(n).toString())||n.push(`
|
||
`),r=1,i=e.leadingComments.length;r<i;++r)a=e.leadingComments[r],d=[ke(a)],me(we(d).toString())||d.push(`
|
||
`),n.push(Ee(d));n.push(Ee(o))}if(e.trailingComments)if(w)a=e.trailingComments[0],f=a.extendedRange,p=a.range,h=C.substring(f[0],p[0]),y=(h.match(/\n/g)||[]).length,y>0?(n.push(fe(`
|
||
`,y)),n.push(Ee(ke(a)))):(n.push(h),n.push(ke(a)));else for(l=!me(we(n).toString()),u=fe(` `,Oe(we([s,n,c]).toString())),r=0,i=e.trailingComments.length;r<i;++r)a=e.trailingComments[r],l?(n=r===0?[n,c]:[n,u],n.push(ke(a,u))):n=[n,Ee(ke(a))],r!==i-1&&!me(we(n).toString())&&(n=[n,`
|
||
`]);return n}function je(e,t,n){var r,i=0;for(r=e;r<t;r++)C[r]===`
|
||
`&&i++;for(r=1;r<i;r++)n.push(m)}function Me(e,t,n){return t<n?[`(`,e,`)`]:e}function Ne(e){var t,n,r;for(r=e.split(/\r\n|\n/),t=1,n=r.length;t<n;t++)r[t]=m+s+r[t];return r}function Pe(e,t){var r,i,a;return r=e[b.verbatim],typeof r==`string`?i=Me(Ne(r),n.Sequence,t):(i=Ne(r.content),a=r.precedence==null?n.Sequence:r.precedence,i=Me(i,a,t)),we(i,e)}function Fe(){}Fe.prototype.maybeBlock=function(e,n){var r,i,a=this;return i=!b.comment||!e.leadingComments,e.type===t.BlockStatement&&i?[h,this.generateStatement(e,n)]:e.type===t.EmptyStatement&&i?`;`:(De(function(){r=[m,Ee(a.generateStatement(e,n))]}),r)},Fe.prototype.maybeBlockSuffix=function(e,n){var r=me(we(n).toString());return e.type===t.BlockStatement&&(!b.comment||!e.leadingComments)&&!r?[n,h]:r?[n,s]:[n,m,s]};function z(e){return we(e.name,e)}function Ie(e,t){return e.async?`async`+(t?Te():h):``}function Le(e){return e.generator&&!b.moz.starlessGenerator?`*`+h:``}function Re(e){var t=e.value,n=``;return t.async&&(n+=Ie(t,!e.computed)),t.generator&&(n+=Le(t)?`*`:``),n}Fe.prototype.generatePattern=function(e,n,r){return e.type===t.Identifier?z(e):this.generateExpression(e,n,r)},Fe.prototype.generateFunctionParams=function(e){var r,i,a,o;if(o=!1,e.type===t.ArrowFunctionExpression&&!e.rest&&(!e.defaults||e.defaults.length===0)&&e.params.length===1&&e.params[0].type===t.Identifier)a=[Ie(e,!0),z(e.params[0])];else{for(a=e.type===t.ArrowFunctionExpression?[Ie(e,!1)]:[],a.push(`(`),e.defaults&&(o=!0),r=0,i=e.params.length;r<i;++r)o&&e.defaults[r]?a.push(this.generateAssignment(e.params[r],e.defaults[r],`=`,n.Assignment,P)):a.push(this.generatePattern(e.params[r],n.Assignment,P)),r+1<i&&a.push(`,`+h);e.rest&&(e.params.length&&a.push(`,`+h),a.push(`...`),a.push(z(e.rest))),a.push(`)`)}return a},Fe.prototype.generateFunctionBody=function(e){var r,i;return r=this.generateFunctionParams(e),e.type===t.ArrowFunctionExpression&&(r.push(h),r.push(`=>`)),e.expression?(r.push(h),i=this.generateExpression(e.body,n.Assignment,P),i.toString().charAt(0)===`{`&&(i=[`(`,i,`)`]),r.push(i)):r.push(this.maybeBlock(e.body,ue)),r},Fe.prototype.generateIterationForStatement=function(e,r,i){var a=[`for`+(r.await?Te()+`await`:``)+h+`(`],o=this;return De(function(){r.left.type===t.VariableDeclaration?De(function(){a.push(r.left.kind+Te()),a.push(o.generateStatement(r.left.declarations[0],ce))}):a.push(o.generateExpression(r.left,n.Call,P)),a=L(a,e),a=[L(a,o.generateExpression(r.right,n.Assignment,P)),`)`]}),a.push(this.maybeBlock(r.body,i)),a},Fe.prototype.generatePropertyKey=function(e,t){var r=[];return t&&r.push(`[`),r.push(this.generateExpression(e,n.Assignment,P)),t&&r.push(`]`),r},Fe.prototype.generateAssignment=function(e,t,r,i,a){return n.Assignment<i&&(a|=k),Me([this.generateExpression(e,n.Call,a),h+r+h,this.generateExpression(t,n.Assignment,a)],n.Assignment,i)},Fe.prototype.semicolon=function(e){return!_&&e&N?``:`;`},Fe.Statement={BlockStatement:function(e,t){var n,r,i=[`{`,m],a=this;return De(function(){e.body.length===0&&w&&(n=e.range,n[1]-n[0]>2&&(r=C.substring(n[0]+1,n[1]-1),r[0]===`
|
||
`&&(i=[`{`]),i.push(r)));var o,s,c,l;for(l=F,t&M&&(l|=ee),o=0,s=e.body.length;o<s;++o)w&&(o===0&&(e.body[0].leadingComments&&(n=e.body[0].leadingComments[0].extendedRange,r=C.substring(n[0],n[1]),r[0]===`
|
||
`&&(i=[`{`])),e.body[0].leadingComments||je(e.range[0],e.body[0].range[0],i)),o>0&&!e.body[o-1].trailingComments&&!e.body[o].leadingComments&&je(e.body[o-1].range[1],e.body[o].range[0],i)),o===s-1&&(l|=N),c=e.body[o].leadingComments&&w?a.generateStatement(e.body[o],l):Ee(a.generateStatement(e.body[o],l)),i.push(c),me(we(c).toString())||w&&o<s-1&&e.body[o+1].leadingComments||i.push(m),w&&o===s-1&&(e.body[o].trailingComments||je(e.body[o].range[1],e.range[1],i))}),i.push(Ee(`}`)),i},BreakStatement:function(e,t){return e.label?`break `+e.label.name+this.semicolon(t):`break`+this.semicolon(t)},ContinueStatement:function(e,t){return e.label?`continue `+e.label.name+this.semicolon(t):`continue`+this.semicolon(t)},ClassBody:function(e,t){var r=[`{`,m],i=this;return De(function(t){var a,o;for(a=0,o=e.body.length;a<o;++a)r.push(t),r.push(i.generateExpression(e.body[a],n.Sequence,P)),a+1<o&&r.push(m)}),me(we(r).toString())||r.push(m),r.push(s),r.push(`}`),r},ClassDeclaration:function(e,t){var r,i;return r=[`class`],e.id&&(r=L(r,this.generateExpression(e.id,n.Sequence,P))),e.superClass&&(i=L(`extends`,this.generateExpression(e.superClass,n.Unary,P)),r=L(r,i)),r.push(h),r.push(this.generateStatement(e.body,se)),r},DirectiveStatement:function(e,t){return b.raw&&e.raw?e.raw+this.semicolon(t):Se(e.directive)+this.semicolon(t)},DoWhileStatement:function(e,t){var r=L(`do`,this.maybeBlock(e.body,F));return r=this.maybeBlockSuffix(e.body,r),L(r,[`while`+h+`(`,this.generateExpression(e.test,n.Sequence,P),`)`+this.semicolon(t)])},CatchClause:function(e,t){var r,i=this;return De(function(){var t;e.param?(r=[`catch`+h+`(`,i.generateExpression(e.param,n.Sequence,P),`)`],e.guard&&(t=i.generateExpression(e.guard,n.Sequence,P),r.splice(2,0,` if `,t))):r=[`catch`]}),r.push(this.maybeBlock(e.body,F)),r},DebuggerStatement:function(e,t){return`debugger`+this.semicolon(t)},EmptyStatement:function(e,t){return`;`},ExportDefaultDeclaration:function(e,t){var r=[`export`],i;return i=t&N?se:F,r=L(r,`default`),r=O(e.declaration)?L(r,this.generateStatement(e.declaration,i)):L(r,this.generateExpression(e.declaration,n.Assignment,P)+this.semicolon(t)),r},ExportNamedDeclaration:function(e,r){var i=[`export`],a,o=this;return a=r&N?se:F,e.declaration?L(i,this.generateStatement(e.declaration,a)):(e.specifiers&&(e.specifiers.length===0?i=L(i,`{`+h+`}`):e.specifiers[0].type===t.ExportBatchSpecifier?i=L(i,this.generateExpression(e.specifiers[0],n.Sequence,P)):(i=L(i,`{`),De(function(t){var r,a;for(i.push(m),r=0,a=e.specifiers.length;r<a;++r)i.push(t),i.push(o.generateExpression(e.specifiers[r],n.Sequence,P)),r+1<a&&i.push(`,`+m)}),me(we(i).toString())||i.push(m),i.push(s+`}`)),e.source?i=L(i,[`from`+h,this.generateExpression(e.source,n.Sequence,P),this.semicolon(r)]):i.push(this.semicolon(r))),i)},ExportAllDeclaration:function(e,t){return[`export`+h,`*`+h,`from`+h,this.generateExpression(e.source,n.Sequence,P),this.semicolon(t)]},ExpressionStatement:function(e,r){var i,a;function s(e){var t;return e.slice(0,5)===`class`?(t=e.charCodeAt(5),t===123||o.code.isWhiteSpace(t)||o.code.isLineTerminator(t)):!1}function c(e){var t;return e.slice(0,8)===`function`?(t=e.charCodeAt(8),t===40||o.code.isWhiteSpace(t)||t===42||o.code.isLineTerminator(t)):!1}function l(e){var t,n,r;if(e.slice(0,5)!==`async`||!o.code.isWhiteSpace(e.charCodeAt(5)))return!1;for(n=6,r=e.length;n<r&&o.code.isWhiteSpace(e.charCodeAt(n));++n);return n===r||e.slice(n,n+8)!==`function`?!1:(t=e.charCodeAt(n+8),t===40||o.code.isWhiteSpace(t)||t===42||o.code.isLineTerminator(t))}return i=[this.generateExpression(e.expression,n.Sequence,P)],a=we(i).toString(),a.charCodeAt(0)===123||s(a)||c(a)||l(a)||y&&r&ee&&e.expression.type===t.Literal&&typeof e.expression.value==`string`?i=[`(`,i,`)`+this.semicolon(r)]:i.push(this.semicolon(r)),i},ImportDeclaration:function(e,r){var i,a,o=this;return e.specifiers.length===0?[`import`,h,this.generateExpression(e.source,n.Sequence,P),this.semicolon(r)]:(i=[`import`],a=0,e.specifiers[a].type===t.ImportDefaultSpecifier&&(i=L(i,[this.generateExpression(e.specifiers[a],n.Sequence,P)]),++a),e.specifiers[a]&&(a!==0&&i.push(`,`),e.specifiers[a].type===t.ImportNamespaceSpecifier?i=L(i,[h,this.generateExpression(e.specifiers[a],n.Sequence,P)]):(i.push(h+`{`),e.specifiers.length-a===1?(i.push(h),i.push(this.generateExpression(e.specifiers[a],n.Sequence,P)),i.push(h+`}`+h)):(De(function(t){var r,s;for(i.push(m),r=a,s=e.specifiers.length;r<s;++r)i.push(t),i.push(o.generateExpression(e.specifiers[r],n.Sequence,P)),r+1<s&&i.push(`,`+m)}),me(we(i).toString())||i.push(m),i.push(s+`}`+h)))),i=L(i,[`from`+h,this.generateExpression(e.source,n.Sequence,P),this.semicolon(r)]),i)},VariableDeclarator:function(e,t){var r=t&k?P:ne;return e.init?[this.generateExpression(e.id,n.Assignment,r),h,`=`,h,this.generateExpression(e.init,n.Assignment,r)]:this.generatePattern(e.id,n.Assignment,r)},VariableDeclaration:function(e,t){var n,r,i,a,o,s=this;n=[e.kind],o=t&k?F:ce;function c(){for(a=e.declarations[0],b.comment&&a.leadingComments?(n.push(`
|
||
`),n.push(Ee(s.generateStatement(a,o)))):(n.push(Te()),n.push(s.generateStatement(a,o))),r=1,i=e.declarations.length;r<i;++r)a=e.declarations[r],b.comment&&a.leadingComments?(n.push(`,`+m),n.push(Ee(s.generateStatement(a,o)))):(n.push(`,`+h),n.push(s.generateStatement(a,o)))}return e.declarations.length>1?De(c):c(),n.push(this.semicolon(t)),n},ThrowStatement:function(e,t){return[L(`throw`,this.generateExpression(e.argument,n.Sequence,P)),this.semicolon(t)]},TryStatement:function(e,t){var n,r,i,a;if(n=[`try`,this.maybeBlock(e.block,F)],n=this.maybeBlockSuffix(e.block,n),e.handlers)for(r=0,i=e.handlers.length;r<i;++r)n=L(n,this.generateStatement(e.handlers[r],F)),(e.finalizer||r+1!==i)&&(n=this.maybeBlockSuffix(e.handlers[r].body,n));else{for(a=e.guardedHandlers||[],r=0,i=a.length;r<i;++r)n=L(n,this.generateStatement(a[r],F)),(e.finalizer||r+1!==i)&&(n=this.maybeBlockSuffix(a[r].body,n));if(e.handler)if(Array.isArray(e.handler))for(r=0,i=e.handler.length;r<i;++r)n=L(n,this.generateStatement(e.handler[r],F)),(e.finalizer||r+1!==i)&&(n=this.maybeBlockSuffix(e.handler[r].body,n));else n=L(n,this.generateStatement(e.handler,F)),e.finalizer&&(n=this.maybeBlockSuffix(e.handler.body,n))}return e.finalizer&&(n=L(n,[`finally`,this.maybeBlock(e.finalizer,F)])),n},SwitchStatement:function(e,t){var r,i,a,o,s,c=this;if(De(function(){r=[`switch`+h+`(`,c.generateExpression(e.discriminant,n.Sequence,P),`)`+h+`{`+m]}),e.cases)for(s=F,a=0,o=e.cases.length;a<o;++a)a===o-1&&(s|=N),i=Ee(this.generateStatement(e.cases[a],s)),r.push(i),me(we(i).toString())||r.push(m);return r.push(Ee(`}`)),r},SwitchCase:function(e,r){var i,a,o,s,c,l=this;return De(function(){for(i=e.test?[L(`case`,l.generateExpression(e.test,n.Sequence,P)),`:`]:[`default:`],o=0,s=e.consequent.length,s&&e.consequent[0].type===t.BlockStatement&&(a=l.maybeBlock(e.consequent[0],F),i.push(a),o=1),o!==s&&!me(we(i).toString())&&i.push(m),c=F;o<s;++o)o===s-1&&r&N&&(c|=N),a=Ee(l.generateStatement(e.consequent[o],c)),i.push(a),o+1!==s&&!me(we(a).toString())&&i.push(m)}),i},IfStatement:function(e,r){var i,a,o,s=this;return De(function(){i=[`if`+h+`(`,s.generateExpression(e.test,n.Sequence,P),`)`]}),o=r&N,a=F,o&&(a|=N),e.alternate?(i.push(this.maybeBlock(e.consequent,F)),i=this.maybeBlockSuffix(e.consequent,i),i=e.alternate.type===t.IfStatement?L(i,[`else `,this.generateStatement(e.alternate,a)]):L(i,L(`else`,this.maybeBlock(e.alternate,a)))):i.push(this.maybeBlock(e.consequent,a)),i},ForStatement:function(e,r){var i,a=this;return De(function(){i=[`for`+h+`(`],e.init?e.init.type===t.VariableDeclaration?i.push(a.generateStatement(e.init,ce)):(i.push(a.generateExpression(e.init,n.Sequence,ne)),i.push(`;`)):i.push(`;`),e.test&&(i.push(h),i.push(a.generateExpression(e.test,n.Sequence,P))),i.push(`;`),e.update&&(i.push(h),i.push(a.generateExpression(e.update,n.Sequence,P))),i.push(`)`)}),i.push(this.maybeBlock(e.body,r&N?se:F)),i},ForInStatement:function(e,t){return this.generateIterationForStatement(`in`,e,t&N?se:F)},ForOfStatement:function(e,t){return this.generateIterationForStatement(`of`,e,t&N?se:F)},LabeledStatement:function(e,t){return[e.label.name+`:`,this.maybeBlock(e.body,t&N?se:F)]},Program:function(e,t){var n,r,i,a,o;for(a=e.body.length,n=[v&&a>0?`
|
||
`:``],o=le,i=0;i<a;++i)!v&&i===a-1&&(o|=N),w&&(i===0&&(e.body[0].leadingComments||je(e.range[0],e.body[i].range[0],n)),i>0&&!e.body[i-1].trailingComments&&!e.body[i].leadingComments&&je(e.body[i-1].range[1],e.body[i].range[0],n)),r=Ee(this.generateStatement(e.body[i],o)),n.push(r),i+1<a&&!me(we(r).toString())&&(w&&e.body[i+1].leadingComments||n.push(m)),w&&i===a-1&&(e.body[i].trailingComments||je(e.body[i].range[1],e.range[1],n));return n},FunctionDeclaration:function(e,t){return[Ie(e,!0),`function`,Le(e)||Te(),e.id?z(e.id):``,this.generateFunctionBody(e)]},ReturnStatement:function(e,t){return e.argument?[L(`return`,this.generateExpression(e.argument,n.Sequence,P)),this.semicolon(t)]:[`return`+this.semicolon(t)]},WhileStatement:function(e,t){var r,i=this;return De(function(){r=[`while`+h+`(`,i.generateExpression(e.test,n.Sequence,P),`)`]}),r.push(this.maybeBlock(e.body,t&N?se:F)),r},WithStatement:function(e,t){var r,i=this;return De(function(){r=[`with`+h+`(`,i.generateExpression(e.object,n.Sequence,P),`)`]}),r.push(this.maybeBlock(e.body,t&N?se:F)),r}},he(Fe.prototype,Fe.Statement),Fe.Expression={SequenceExpression:function(e,t,r){var i,a,o;for(n.Sequence<t&&(r|=k),i=[],a=0,o=e.expressions.length;a<o;++a)i.push(this.generateExpression(e.expressions[a],n.Assignment,r)),a+1<o&&i.push(`,`+h);return Me(i,n.Sequence,t)},AssignmentExpression:function(e,t,n){return this.generateAssignment(e.left,e.right,e.operator,t,n)},ArrowFunctionExpression:function(e,t,r){return Me(this.generateFunctionBody(e),n.ArrowFunction,t)},ConditionalExpression:function(e,t,r){return n.Conditional<t&&(r|=k),Me([this.generateExpression(e.test,n.Coalesce,r),h+`?`+h,this.generateExpression(e.consequent,n.Assignment,r),h+`:`+h,this.generateExpression(e.alternate,n.Assignment,r)],n.Conditional,t)},LogicalExpression:function(e,t,n){return e.operator===`??`&&(n|=te),this.BinaryExpression(e,t,n)},BinaryExpression:function(e,t,i){var a,s,c,l,u,d;return l=r[e.operator],s=e.operator===`**`?n.Postfix:l,c=e.operator===`**`?l:l+1,l<t&&(i|=k),u=this.generateExpression(e.left,s,i),d=u.toString(),a=d.charCodeAt(d.length-1)===47&&o.code.isIdentifierPartES5(e.operator.charCodeAt(0))?[u,Te(),e.operator]:L(u,e.operator),u=this.generateExpression(e.right,c,i),e.operator===`/`&&u.toString().charAt(0)===`/`||e.operator.slice(-1)===`<`&&u.toString().slice(0,3)===`!--`?(a.push(Te()),a.push(u)):a=L(a,u),e.operator===`in`&&!(i&k)||(e.operator===`||`||e.operator===`&&`)&&i&te?[`(`,a,`)`]:Me(a,l,t)},CallExpression:function(e,t,r){var i,a,o;for(i=[this.generateExpression(e.callee,n.Call,re)],e.optional&&i.push(`?.`),i.push(`(`),a=0,o=e.arguments.length;a<o;++a)i.push(this.generateExpression(e.arguments[a],n.Assignment,P)),a+1<o&&i.push(`,`+h);return i.push(`)`),r&A?Me(i,n.Call,t):[`(`,i,`)`]},ChainExpression:function(e,t,r){return n.OptionalChaining<t&&(r|=A),Me(this.generateExpression(e.expression,n.OptionalChaining,r),n.OptionalChaining,t)},NewExpression:function(e,t,r){var i,a,o,s,c;if(a=e.arguments.length,c=r&j&&!g&&a===0?oe:ie,i=L(`new`,this.generateExpression(e.callee,n.New,c)),!(r&j)||g||a>0){for(i.push(`(`),o=0,s=a;o<s;++o)i.push(this.generateExpression(e.arguments[o],n.Assignment,P)),o+1<s&&i.push(`,`+h);i.push(`)`)}return Me(i,n.New,t)},MemberExpression:function(e,r,i){var a,s;return a=[this.generateExpression(e.object,n.Call,i&A?re:ie)],e.computed?(e.optional&&a.push(`?.`),a.push(`[`),a.push(this.generateExpression(e.property,n.Sequence,i&A?P:oe)),a.push(`]`)):(!e.optional&&e.object.type===t.Literal&&typeof e.object.value==`number`&&(s=we(a).toString(),s.indexOf(`.`)<0&&!/[eExX]/.test(s)&&o.code.isDecimalDigit(s.charCodeAt(s.length-1))&&!(s.length>=2&&s.charCodeAt(0)===48)&&a.push(` `)),a.push(e.optional?`?.`:`.`),a.push(z(e.property))),Me(a,n.Member,r)},MetaProperty:function(e,t,r){var i;return i=[],i.push(typeof e.meta==`string`?e.meta:z(e.meta)),i.push(`.`),i.push(typeof e.property==`string`?e.property:z(e.property)),Me(i,n.Member,t)},UnaryExpression:function(e,t,r){var i,a,s,c,l;return a=this.generateExpression(e.argument,n.Unary,P),h===``?i=L(e.operator,a):(i=[e.operator],e.operator.length>2?i=L(i,a):(c=we(i).toString(),l=c.charCodeAt(c.length-1),s=a.toString().charCodeAt(0),((l===43||l===45)&&l===s||o.code.isIdentifierPartES5(l)&&o.code.isIdentifierPartES5(s))&&i.push(Te()),i.push(a))),Me(i,n.Unary,t)},YieldExpression:function(e,t,r){var i;return i=e.delegate?`yield*`:`yield`,e.argument&&(i=L(i,this.generateExpression(e.argument,n.Yield,P))),Me(i,n.Yield,t)},AwaitExpression:function(e,t,r){return Me(L(e.all?`await*`:`await`,this.generateExpression(e.argument,n.Await,P)),n.Await,t)},UpdateExpression:function(e,t,r){return e.prefix?Me([e.operator,this.generateExpression(e.argument,n.Unary,P)],n.Unary,t):Me([this.generateExpression(e.argument,n.Postfix,P),e.operator],n.Postfix,t)},FunctionExpression:function(e,t,n){var r=[Ie(e,!0),`function`];return e.id?(r.push(Le(e)||Te()),r.push(z(e.id))):r.push(Le(e)||h),r.push(this.generateFunctionBody(e)),r},ArrayPattern:function(e,t,n){return this.ArrayExpression(e,t,n,!0)},ArrayExpression:function(e,t,r,i){var a,o,c=this;return e.elements.length?(o=i?!1:e.elements.length>1,a=[`[`,o?m:``],De(function(t){var r,i;for(r=0,i=e.elements.length;r<i;++r)e.elements[r]?(a.push(o?t:``),a.push(c.generateExpression(e.elements[r],n.Assignment,P))):(o&&a.push(t),r+1===i&&a.push(`,`)),r+1<i&&a.push(`,`+(o?m:h))}),o&&!me(we(a).toString())&&a.push(m),a.push(o?s:``),a.push(`]`),a):`[]`},RestElement:function(e,t,n){return`...`+this.generatePattern(e.argument)},ClassExpression:function(e,t,r){var i,a;return i=[`class`],e.id&&(i=L(i,this.generateExpression(e.id,n.Sequence,P))),e.superClass&&(a=L(`extends`,this.generateExpression(e.superClass,n.Unary,P)),i=L(i,a)),i.push(h),i.push(this.generateStatement(e.body,se)),i},MethodDefinition:function(e,t,n){var r,i;return r=e.static?[`static`+h]:[],i=e.kind===`get`||e.kind===`set`?[L(e.kind,this.generatePropertyKey(e.key,e.computed)),this.generateFunctionBody(e.value)]:[Re(e),this.generatePropertyKey(e.key,e.computed),this.generateFunctionBody(e.value)],L(r,i)},Property:function(e,t,r){return e.kind===`get`||e.kind===`set`?[e.kind,Te(),this.generatePropertyKey(e.key,e.computed),this.generateFunctionBody(e.value)]:e.shorthand?e.value.type===`AssignmentPattern`?this.AssignmentPattern(e.value,n.Sequence,P):this.generatePropertyKey(e.key,e.computed):e.method?[Re(e),this.generatePropertyKey(e.key,e.computed),this.generateFunctionBody(e.value)]:[this.generatePropertyKey(e.key,e.computed),`:`+h,this.generateExpression(e.value,n.Assignment,P)]},ObjectExpression:function(e,t,r){var i,a,o,c=this;return e.properties.length?(i=e.properties.length>1,De(function(){o=c.generateExpression(e.properties[0],n.Sequence,P)}),!i&&!pe(we(o).toString())?[`{`,h,o,h,`}`]:(De(function(t){var r,s;if(a=[`{`,m,t,o],i)for(a.push(`,`+m),r=1,s=e.properties.length;r<s;++r)a.push(t),a.push(c.generateExpression(e.properties[r],n.Sequence,P)),r+1<s&&a.push(`,`+m)}),me(we(a).toString())||a.push(m),a.push(s),a.push(`}`),a)):`{}`},AssignmentPattern:function(e,t,n){return this.generateAssignment(e.left,e.right,`=`,t,n)},ObjectPattern:function(e,r,i){var a,o,c,l,u,d=this;if(!e.properties.length)return`{}`;if(l=!1,e.properties.length===1)u=e.properties[0],u.type===t.Property&&u.value.type!==t.Identifier&&(l=!0);else for(o=0,c=e.properties.length;o<c;++o)if(u=e.properties[o],u.type===t.Property&&!u.shorthand){l=!0;break}return a=[`{`,l?m:``],De(function(t){var r,i;for(r=0,i=e.properties.length;r<i;++r)a.push(l?t:``),a.push(d.generateExpression(e.properties[r],n.Sequence,P)),r+1<i&&a.push(`,`+(l?m:h))}),l&&!me(we(a).toString())&&a.push(m),a.push(l?s:``),a.push(`}`),a},ThisExpression:function(e,t,n){return`this`},Super:function(e,t,n){return`super`},Identifier:function(e,t,n){return z(e)},ImportDefaultSpecifier:function(e,t,n){return z(e.id||e.local)},ImportNamespaceSpecifier:function(e,t,n){var r=[`*`],i=e.id||e.local;return i&&r.push(h+`as`+Te()+z(i)),r},ImportSpecifier:function(e,t,n){var r=e.imported,i=[r.name],a=e.local;return a&&a.name!==r.name&&i.push(Te()+`as`+Te()+z(a)),i},ExportSpecifier:function(e,t,n){var r=e.local,i=[r.name],a=e.exported;return a&&a.name!==r.name&&i.push(Te()+`as`+Te()+z(a)),i},Literal:function(e,n,r){var i;if(e.hasOwnProperty(`raw`)&&x&&b.raw)try{if(i=x(e.raw).body[0].expression,i.type===t.Literal&&i.value===e.value)return e.raw}catch{}return e.regex?`/`+e.regex.pattern+`/`+e.regex.flags:typeof e.value==`bigint`?e.value.toString()+`n`:e.bigint?e.bigint+`n`:e.value===null?`null`:typeof e.value==`string`?I(e.value):typeof e.value==`number`?_e(e.value):typeof e.value==`boolean`?e.value?`true`:`false`:ye(e.value)},GeneratorExpression:function(e,t,n){return this.ComprehensionExpression(e,t,n)},ComprehensionExpression:function(e,r,i){var a,o,s,c,l=this;return a=e.type===t.GeneratorExpression?[`(`]:[`[`],b.moz.comprehensionExpressionStartsWithAssignment&&(c=this.generateExpression(e.body,n.Assignment,P),a.push(c)),e.blocks&&De(function(){for(o=0,s=e.blocks.length;o<s;++o)c=l.generateExpression(e.blocks[o],n.Sequence,P),o>0||b.moz.comprehensionExpressionStartsWithAssignment?a=L(a,c):a.push(c)}),e.filter&&(a=L(a,`if`+h),c=this.generateExpression(e.filter,n.Sequence,P),a=L(a,[`(`,c,`)`])),b.moz.comprehensionExpressionStartsWithAssignment||(c=this.generateExpression(e.body,n.Assignment,P),a=L(a,c)),a.push(e.type===t.GeneratorExpression?`)`:`]`),a},ComprehensionBlock:function(e,r,i){var a;return a=e.left.type===t.VariableDeclaration?[e.left.kind,Te(),this.generateStatement(e.left.declarations[0],ce)]:this.generateExpression(e.left,n.Call,P),a=L(a,e.of?`of`:`in`),a=L(a,this.generateExpression(e.right,n.Sequence,P)),[`for`+h+`(`,a,`)`]},SpreadElement:function(e,t,r){return[`...`,this.generateExpression(e.argument,n.Assignment,P)]},TaggedTemplateExpression:function(e,t,r){var i=re;return r&A||(i=ie),Me([this.generateExpression(e.tag,n.Call,i),this.generateExpression(e.quasi,n.Primary,ae)],n.TaggedTemplate,t)},TemplateElement:function(e,t,n){return e.value.raw},TemplateLiteral:function(e,t,r){var i,a,o;for(i=["`"],a=0,o=e.quasis.length;a<o;++a)i.push(this.generateExpression(e.quasis[a],n.Primary,P)),a+1<o&&(i.push("${"+h),i.push(this.generateExpression(e.expressions[a],n.Sequence,P)),i.push(h+`}`));return i.push("`"),i},ModuleSpecifier:function(e,t,n){return this.Literal(e,t,n)},ImportExpression:function(e,t,r){return Me([`import(`,this.generateExpression(e.source,n.Assignment,P),`)`],n.Call,t)}},he(Fe.prototype,Fe.Expression),Fe.prototype.generateExpression=function(e,n,r){var i,a;return a=e.type||t.Property,b.verbatim&&e.hasOwnProperty(b.verbatim)?Pe(e,n):(i=this[a](e,n,r),b.comment&&(i=Ae(e,i)),we(i,e))},Fe.prototype.generateStatement=function(e,n){var r,i;return r=this[e.type](e,n),b.comment&&(r=Ae(e,r)),i=we(r).toString(),e.type===t.Program&&!v&&m===``&&i.charAt(i.length-1)===`
|
||
`&&(r=S?we(r).replaceRight(/\s+$/,``):i.replace(/\s+$/,``)),we(r,e)};function ze(e){var t;if(t=new Fe,O(e))return t.generateStatement(e,F);if(D(e))return t.generateExpression(e,n.Sequence,P);throw Error(`Unknown node type: `+e.type)}function Be(t,n){var r=de(),a,o;return n==null?(n=r,c=n.format.indent.style,s=fe(c,n.format.indent.base)):(typeof n.indent==`string`&&(r.format.indent.style=n.indent),typeof n.base==`number`&&(r.format.indent.base=n.base),n=ge(r,n),c=n.format.indent.style,s=typeof n.base==`string`?n.base:fe(c,n.format.indent.base)),l=n.format.json,u=n.format.renumber,d=l?!1:n.format.hexadecimal,f=l?`double`:n.format.quotes,p=n.format.escapeless,m=n.format.newline,h=n.format.space,n.format.compact&&(m=h=c=s=``),g=n.format.parentheses,_=n.format.semicolons,v=n.format.safeConcatenation,y=n.directive,x=l?null:n.parse,S=n.sourceMap,C=n.sourceCode,w=n.format.preserveBlankLines&&C!==null,b=n,S&&(i=e.browser?global.sourceMap.SourceNode:$q().SourceNode),a=ze(t),S?(o=a.toStringWithSourceMap({file:n.file,sourceRoot:n.sourceMapRoot}),n.sourceContent&&o.map.setSourceContent(n.sourceMap,n.sourceContent),n.sourceMapWithCode?o:o.map.toString()):(o={code:a.toString(),map:null},n.sourceMapWithCode?o:o.code)}T={indent:{style:``,base:0},renumber:!0,hexadecimal:!0,quotes:`auto`,escapeless:!0,compact:!0,parentheses:!1,semicolons:!1},E=de().format,e.version=eJ().version,e.generate=Be,e.attachComments=a.attachComments,e.Precedence=ge({},n),e.browser=!1,e.FORMAT_MINIFY=T,e.FORMAT_DEFAULTS=E})()}}),nJ=wW({"../../../node_modules/acorn/dist/acorn.js"(e,t){(function(n,r){typeof e==`object`&&typeof t<`u`?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n||=self,r(n.acorn={}))})(e,(function(e){var t={3:`abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile`,5:`class enum extends super const export import`,6:`enum`,strict:`implements interface let package private protected public static yield`,strictBind:`eval arguments`},n=`break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this`,r={5:n,"5module":n+` export import`,6:n+` const class extends export import super`},i=/^in(stanceof)?$/,a=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,o=`·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_`,s=RegExp(`[`+a+`]`),c=RegExp(`[`+a+o+`]`);a=o=null;var l=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],u=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function d(e,t){for(var n=65536,r=0;r<t.length;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}}function f(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&s.test(String.fromCharCode(e)):t===!1?!1:d(e,l)}function p(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&c.test(String.fromCharCode(e)):t===!1?!1:d(e,l)||d(e,u)}var m=function(e,t){t===void 0&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function h(e,t){return new m(e,{beforeExpr:!0,binop:t})}var g={beforeExpr:!0},_={startsExpr:!0},v={};function y(e,t){return t===void 0&&(t={}),t.keyword=e,v[e]=new m(e,t)}var b={num:new m(`num`,_),regexp:new m(`regexp`,_),string:new m(`string`,_),name:new m(`name`,_),eof:new m(`eof`),bracketL:new m(`[`,{beforeExpr:!0,startsExpr:!0}),bracketR:new m(`]`),braceL:new m(`{`,{beforeExpr:!0,startsExpr:!0}),braceR:new m(`}`),parenL:new m(`(`,{beforeExpr:!0,startsExpr:!0}),parenR:new m(`)`),comma:new m(`,`,g),semi:new m(`;`,g),colon:new m(`:`,g),dot:new m(`.`),question:new m(`?`,g),questionDot:new m(`?.`),arrow:new m(`=>`,g),template:new m(`template`),invalidTemplate:new m(`invalidTemplate`),ellipsis:new m(`...`,g),backQuote:new m("`",_),dollarBraceL:new m("${",{beforeExpr:!0,startsExpr:!0}),eq:new m(`=`,{beforeExpr:!0,isAssign:!0}),assign:new m(`_=`,{beforeExpr:!0,isAssign:!0}),incDec:new m(`++/--`,{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new m(`!/~`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:h(`||`,1),logicalAND:h(`&&`,2),bitwiseOR:h(`|`,3),bitwiseXOR:h(`^`,4),bitwiseAND:h(`&`,5),equality:h(`==/!=/===/!==`,6),relational:h(`</>/<=/>=`,7),bitShift:h(`<</>>/>>>`,8),plusMin:new m(`+/-`,{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:h(`%`,10),star:h(`*`,10),slash:h(`/`,10),starstar:new m(`**`,{beforeExpr:!0}),coalesce:h(`??`,1),_break:y(`break`),_case:y(`case`,g),_catch:y(`catch`),_continue:y(`continue`),_debugger:y(`debugger`),_default:y(`default`,g),_do:y(`do`,{isLoop:!0,beforeExpr:!0}),_else:y(`else`,g),_finally:y(`finally`),_for:y(`for`,{isLoop:!0}),_function:y(`function`,_),_if:y(`if`),_return:y(`return`,g),_switch:y(`switch`),_throw:y(`throw`,g),_try:y(`try`),_var:y(`var`),_const:y(`const`),_while:y(`while`,{isLoop:!0}),_with:y(`with`),_new:y(`new`,{beforeExpr:!0,startsExpr:!0}),_this:y(`this`,_),_super:y(`super`,_),_class:y(`class`,_),_extends:y(`extends`,g),_export:y(`export`),_import:y(`import`,_),_null:y(`null`,_),_true:y(`true`,_),_false:y(`false`,_),_in:y(`in`,{beforeExpr:!0,binop:7}),_instanceof:y(`instanceof`,{beforeExpr:!0,binop:7}),_typeof:y(`typeof`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:y(`void`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:y(`delete`,{beforeExpr:!0,prefix:!0,startsExpr:!0})},x=/\r\n?|\n|\u2028|\u2029/,S=new RegExp(x.source,`g`);function C(e,t){return e===10||e===13||!t&&(e===8232||e===8233)}var w=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,T=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,E=Object.prototype,D=E.hasOwnProperty,O=E.toString;function k(e,t){return D.call(e,t)}var A=Array.isArray||(function(e){return O.call(e)===`[object Array]`});function j(e){return RegExp(`^(?:`+e.replace(/ /g,`|`)+`)$`)}var M=function(e,t){this.line=e,this.column=t};M.prototype.offset=function(e){return new M(this.line,this.column+e)};var ee=function(e,t,n){this.start=t,this.end=n,e.sourceFile!==null&&(this.source=e.sourceFile)};function N(e,t){for(var n=1,r=0;;){S.lastIndex=r;var i=S.exec(e);if(i&&i.index<t)++n,r=i.index+i[0].length;else return new M(n,t-r)}}var te={ecmaVersion:10,sourceType:`script`,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};function ne(e){var t={};for(var n in te)t[n]=e&&k(e,n)?e[n]:te[n];if(t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved??=t.ecmaVersion<5,A(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return A(t.onComment)&&(t.onComment=re(t,t.onComment)),t}function re(e,t){return function(n,r,i,a,o,s){var c={type:n?`Block`:`Line`,value:r,start:i,end:a};e.locations&&(c.loc=new ee(this,o,s)),e.ranges&&(c.range=[i,a]),t.push(c)}}var P=1,ie=2,ae=P|ie,oe=4,F=8,se=16,ce=32,le=64,ue=128;function de(e,t){return ie|(e?oe:0)|(t?F:0)}var fe=0,pe=1,me=2,he=3,ge=4,_e=5,ve=function(e,n,i){this.options=e=ne(e),this.sourceFile=e.sourceFile,this.keywords=j(r[e.ecmaVersion>=6?6:e.sourceType===`module`?`5module`:5]);var a=``;if(e.allowReserved!==!0){for(var o=e.ecmaVersion;!(a=t[o]);o--);e.sourceType===`module`&&(a+=` await`)}this.reservedWords=j(a);var s=(a?a+` `:``)+t.strict;this.reservedWordsStrict=j(s),this.reservedWordsStrictBind=j(s+` `+t.strictBind),this.input=String(n),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf(`
|
||
`,i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(x).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=b.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=e.sourceType===`module`,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},this.pos===0&&e.allowHashBang&&this.input.slice(0,2)===`#!`&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(P),this.regexpState=null},ye={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};ve.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},ye.inFunction.get=function(){return(this.currentVarScope().flags&ie)>0},ye.inGenerator.get=function(){return(this.currentVarScope().flags&F)>0},ye.inAsync.get=function(){return(this.currentVarScope().flags&oe)>0},ye.allowSuper.get=function(){return(this.currentThisScope().flags&le)>0},ye.allowDirectSuper.get=function(){return(this.currentThisScope().flags&ue)>0},ye.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},ve.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags&ie)>0},ve.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},ve.parse=function(e,t){return new this(t,e).parse()},ve.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},ve.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(ve.prototype,ye);var be=ve.prototype,xe=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;be.strictDirective=function(e){for(;;){T.lastIndex=e,e+=T.exec(this.input)[0].length;var t=xe.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])===`use strict`){T.lastIndex=e+t[0].length;var n=T.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return i===`;`||i===`}`||x.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i===`!`&&this.input.charAt(r+1)===`=`)}e+=t[0].length,T.lastIndex=e,e+=T.exec(this.input)[0].length,this.input[e]===`;`&&e++}},be.eat=function(e){return this.type===e?(this.next(),!0):!1},be.isContextual=function(e){return this.type===b.name&&this.value===e&&!this.containsEsc},be.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},be.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},be.canInsertSemicolon=function(){return this.type===b.eof||this.type===b.braceR||x.test(this.input.slice(this.lastTokEnd,this.start))},be.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},be.semicolon=function(){!this.eat(b.semi)&&!this.insertSemicolon()&&this.unexpected()},be.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},be.expect=function(e){this.eat(e)||this.unexpected()},be.unexpected=function(e){this.raise(e??this.start,`Unexpected token`)};function Se(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}be.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,`Comma is not permitted after the rest element`);var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,`Parenthesized pattern`)}},be.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,`Shorthand property assignments are valid only in destructuring patterns`),r>=0&&this.raiseRecoverable(r,`Redefinition of __proto__ property`)},be.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,`Yield expression cannot be a default value`),this.awaitPos&&this.raise(this.awaitPos,`Await expression cannot be a default value`)},be.isSimpleAssignTarget=function(e){return e.type===`ParenthesizedExpression`?this.isSimpleAssignTarget(e.expression):e.type===`Identifier`||e.type===`MemberExpression`};var I=ve.prototype;I.parseTopLevel=function(e){var t={};for(e.body||=[];this.type!==b.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var a=i[r];this.raiseRecoverable(this.undefinedExports[a].start,`Export '`+a+`' is not defined`)}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,`Program`)};var Ce={kind:`loop`},we={kind:`switch`};I.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual(`let`))return!1;T.lastIndex=this.pos;var t=T.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(r===91)return!0;if(e)return!1;if(r===123)return!0;if(f(r,!0)){for(var a=n+1;p(this.input.charCodeAt(a),!0);)++a;var o=this.input.slice(n,a);if(!i.test(o))return!0}return!1},I.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual(`async`))return!1;T.lastIndex=this.pos;var e=T.exec(this.input),t=this.pos+e[0].length;return!x.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)===`function`&&(t+8===this.input.length||!p(this.input.charAt(t+8)))},I.parseStatement=function(e,t,n){var r=this.type,i=this.startNode(),a;switch(this.isLet(e)&&(r=b._var,a=`let`),r){case b._break:case b._continue:return this.parseBreakContinueStatement(i,r.keyword);case b._debugger:return this.parseDebuggerStatement(i);case b._do:return this.parseDoStatement(i);case b._for:return this.parseForStatement(i);case b._function:return e&&(this.strict||e!==`if`&&e!==`label`)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case b._class:return e&&this.unexpected(),this.parseClass(i,!0);case b._if:return this.parseIfStatement(i);case b._return:return this.parseReturnStatement(i);case b._switch:return this.parseSwitchStatement(i);case b._throw:return this.parseThrowStatement(i);case b._try:return this.parseTryStatement(i);case b._const:case b._var:return a||=this.value,e&&a!==`var`&&this.unexpected(),this.parseVarStatement(i,a);case b._while:return this.parseWhileStatement(i);case b._with:return this.parseWithStatement(i);case b.braceL:return this.parseBlock(!0,i);case b.semi:return this.parseEmptyStatement(i);case b._export:case b._import:if(this.options.ecmaVersion>10&&r===b._import){T.lastIndex=this.pos;var o=T.exec(this.input),s=this.pos+o[0].length,c=this.input.charCodeAt(s);if(c===40||c===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,`'import' and 'export' may only appear at the top level`),this.inModule||this.raise(this.start,`'import' and 'export' may appear only with 'sourceType: module'`)),r===b._import?this.parseImport(i):this.parseExport(i,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var l=this.value,u=this.parseExpression();return r===b.name&&u.type===`Identifier`&&this.eat(b.colon)?this.parseLabeledStatement(i,l,u,e):this.parseExpressionStatement(i,u)}},I.parseBreakContinueStatement=function(e,t){var n=t===`break`;this.next(),this.eat(b.semi)||this.insertSemicolon()?e.label=null:this.type===b.name?(e.label=this.parseIdent(),this.semicolon()):this.unexpected();for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(n||i.kind===`loop`)||e.label&&n))break}return r===this.labels.length&&this.raise(e.start,`Unsyntactic `+t),this.finishNode(e,n?`BreakStatement`:`ContinueStatement`)},I.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,`DebuggerStatement`)},I.parseDoStatement=function(e){return this.next(),this.labels.push(Ce),e.body=this.parseStatement(`do`),this.labels.pop(),this.expect(b._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(b.semi):this.semicolon(),this.finishNode(e,`DoWhileStatement`)},I.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual(`await`)?this.lastTokStart:-1;if(this.labels.push(Ce),this.enterScope(0),this.expect(b.parenL),this.type===b.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===b._var||this.type===b._const||n){var r=this.startNode(),i=n?`let`:this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,`VariableDeclaration`),(this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))&&r.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===b._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var a=new Se,o=this.parseExpression(!0,a);return this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual(`of`)?(this.options.ecmaVersion>=9&&(this.type===b._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(o,!1,a),this.checkLVal(o),this.parseForIn(e,o)):(this.checkExpressionErrors(a,!0),t>-1&&this.unexpected(t),this.parseFor(e,o))},I.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,L|(n?0:Ee),!1,t)},I.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(`if`),e.alternate=this.eat(b._else)?this.parseStatement(`if`):null,this.finishNode(e,`IfStatement`)},I.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,`'return' outside of function`),this.next(),this.eat(b.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,`ReturnStatement`)},I.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(b.braceL),this.labels.push(we),this.enterScope(0);for(var t,n=!1;this.type!==b.braceR;)if(this.type===b._case||this.type===b._default){var r=this.type===b._case;t&&this.finishNode(t,`SwitchCase`),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,`Multiple default clauses`),n=!0,t.test=null),this.expect(b.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,`SwitchCase`),this.next(),this.labels.pop(),this.finishNode(e,`SwitchStatement`)},I.parseThrowStatement=function(e){return this.next(),x.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,`Illegal newline after throw`),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,`ThrowStatement`)};var Te=[];I.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===b._catch){var t=this.startNode();if(this.next(),this.eat(b.parenL)){t.param=this.parseBindingAtom();var n=t.param.type===`Identifier`;this.enterScope(n?ce:0),this.checkLVal(t.param,n?ge:me),this.expect(b.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,`CatchClause`)}return e.finalizer=this.eat(b._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,`Missing catch or finally clause`),this.finishNode(e,`TryStatement`)},I.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,`VariableDeclaration`)},I.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Ce),e.body=this.parseStatement(`while`),this.labels.pop(),this.finishNode(e,`WhileStatement`)},I.parseWithStatement=function(e){return this.strict&&this.raise(this.start,`'with' in strict mode`),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement(`with`),this.finishNode(e,`WithStatement`)},I.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,`EmptyStatement`)},I.parseLabeledStatement=function(e,t,n,r){for(var i=0,a=this.labels;i<a.length;i+=1)a[i].name===t&&this.raise(n.start,`Label '`+t+`' is already declared`);for(var o=this.type.isLoop?`loop`:this.type===b._switch?`switch`:null,s=this.labels.length-1;s>=0;s--){var c=this.labels[s];if(c.statementStart===e.start)c.statementStart=this.start,c.kind=o;else break}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(r?r.indexOf(`label`)===-1?r+`label`:r:`label`),this.labels.pop(),e.label=n,this.finishNode(e,`LabeledStatement`)},I.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,`ExpressionStatement`)},I.parseBlock=function(e,t,n){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(b.braceL),e&&this.enterScope(0);this.type!==b.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,`BlockStatement`)},I.parseFor=function(e,t){return e.init=t,this.expect(b.semi),e.test=this.type===b.semi?null:this.parseExpression(),this.expect(b.semi),e.update=this.type===b.parenR?null:this.parseExpression(),this.expect(b.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,`ForStatement`)},I.parseForIn=function(e,t){var n=this.type===b._in;return this.next(),t.type===`VariableDeclaration`&&t.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||t.kind!==`var`||t.declarations[0].id.type!==`Identifier`)?this.raise(t.start,(n?`for-in`:`for-of`)+` loop variable declaration may not have an initializer`):t.type===`AssignmentPattern`&&this.raise(t.start,`Invalid left-hand side in for-loop`),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(b.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,n?`ForInStatement`:`ForOfStatement`)},I.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(b.eq)?r.init=this.parseMaybeAssign(t):n===`const`&&!(this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))?this.unexpected():r.id.type!==`Identifier`&&!(t&&(this.type===b._in||this.isContextual(`of`)))?this.raise(this.lastTokEnd,`Complex binding patterns require an initialization value`):r.init=null,e.declarations.push(this.finishNode(r,`VariableDeclarator`)),!this.eat(b.comma))break}return e},I.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLVal(e.id,t===`var`?pe:me,!1)};var L=1,Ee=2,De=4;I.parseFunction=function(e,t,n,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===b.star&&t&Ee&&this.unexpected(),e.generator=this.eat(b.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&L&&(e.id=t&De&&this.type!==b.name?null:this.parseIdent(),e.id&&!(t&Ee)&&this.checkLVal(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?pe:me:he));var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(de(e.async,e.generator)),t&L||(e.id=this.type===b.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,t&L?`FunctionDeclaration`:`FunctionExpression`)},I.parseFunctionParams=function(e){this.expect(b.parenL),e.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},I.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.startNode(),i=!1;for(r.body=[],this.expect(b.braceL);this.type!==b.braceR;){var a=this.parseClassElement(e.superClass!==null);a&&(r.body.push(a),a.type===`MethodDefinition`&&a.kind===`constructor`&&(i&&this.raise(a.start,`Duplicate constructor in the same class`),i=!0))}return this.strict=n,this.next(),e.body=this.finishNode(r,`ClassBody`),this.finishNode(e,t?`ClassDeclaration`:`ClassExpression`)},I.parseClassElement=function(e){var t=this;if(this.eat(b.semi))return null;var n=this.startNode(),r=function(e,r){r===void 0&&(r=!1);var i=t.start,a=t.startLoc;return t.eatContextual(e)?t.type!==b.parenL&&(!r||!t.canInsertSemicolon())?!0:(n.key&&t.unexpected(),n.computed=!1,n.key=t.startNodeAt(i,a),n.key.name=e,t.finishNode(n.key,`Identifier`),!1):!1};n.kind=`method`,n.static=r(`static`);var i=this.eat(b.star),a=!1;i||(this.options.ecmaVersion>=8&&r(`async`,!0)?(a=!0,i=this.options.ecmaVersion>=9&&this.eat(b.star)):r(`get`)?n.kind=`get`:r(`set`)&&(n.kind=`set`)),n.key||this.parsePropertyName(n);var o=n.key,s=!1;return!n.computed&&!n.static&&(o.type===`Identifier`&&o.name===`constructor`||o.type===`Literal`&&o.value===`constructor`)?(n.kind!==`method`&&this.raise(o.start,`Constructor can't have get/set modifier`),i&&this.raise(o.start,`Constructor can't be a generator`),a&&this.raise(o.start,`Constructor can't be an async method`),n.kind=`constructor`,s=e):n.static&&o.type===`Identifier`&&o.name===`prototype`&&this.raise(o.start,`Classes may not have a static property named prototype`),this.parseClassMethod(n,i,a,s),n.kind===`get`&&n.value.params.length!==0&&this.raiseRecoverable(n.value.start,`getter should have no params`),n.kind===`set`&&n.value.params.length!==1&&this.raiseRecoverable(n.value.start,`setter should have exactly one param`),n.kind===`set`&&n.value.params[0].type===`RestElement`&&this.raiseRecoverable(n.value.params[0].start,`Setter cannot use rest params`),n},I.parseClassMethod=function(e,t,n,r){return e.value=this.parseMethod(t,n,r),this.finishNode(e,`MethodDefinition`)},I.parseClassId=function(e,t){this.type===b.name?(e.id=this.parseIdent(),t&&this.checkLVal(e.id,me,!1)):(t===!0&&this.unexpected(),e.id=null)},I.parseClassSuper=function(e){e.superClass=this.eat(b._extends)?this.parseExprSubscripts():null},I.parseExport=function(e,t){if(this.next(),this.eat(b.star))return this.options.ecmaVersion>=11&&(this.eatContextual(`as`)?(e.exported=this.parseIdent(!0),this.checkExport(t,e.exported.name,this.lastTokStart)):e.exported=null),this.expectContextual(`from`),this.type!==b.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,`ExportAllDeclaration`);if(this.eat(b._default)){this.checkExport(t,`default`,this.lastTokStart);var n;if(this.type===b._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(r,L|De,!1,n)}else if(this.type===b._class){var i=this.startNode();e.declaration=this.parseClass(i,`nullableID`)}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,`ExportDefaultDeclaration`)}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),e.declaration.type===`VariableDeclaration`?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual(`from`))this.type!==b.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var a=0,o=e.specifiers;a<o.length;a+=1){var s=o[a];this.checkUnreserved(s.local),this.checkLocalExport(s.local)}e.source=null}this.semicolon()}return this.finishNode(e,`ExportNamedDeclaration`)},I.checkExport=function(e,t,n){e&&(k(e,t)&&this.raiseRecoverable(n,`Duplicate export '`+t+`'`),e[t]=!0)},I.checkPatternExport=function(e,t){var n=t.type;if(n===`Identifier`)this.checkExport(e,t.name,t.start);else if(n===`ObjectPattern`)for(var r=0,i=t.properties;r<i.length;r+=1){var a=i[r];this.checkPatternExport(e,a)}else if(n===`ArrayPattern`)for(var o=0,s=t.elements;o<s.length;o+=1){var c=s[o];c&&this.checkPatternExport(e,c)}else n===`Property`?this.checkPatternExport(e,t.value):n===`AssignmentPattern`?this.checkPatternExport(e,t.left):n===`RestElement`?this.checkPatternExport(e,t.argument):n===`ParenthesizedExpression`&&this.checkPatternExport(e,t.expression)},I.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},I.shouldParseExportStatement=function(){return this.type.keyword===`var`||this.type.keyword===`const`||this.type.keyword===`class`||this.type.keyword===`function`||this.isLet()||this.isAsyncFunction()},I.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(b.braceL);!this.eat(b.braceR);){if(n)n=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;var r=this.startNode();r.local=this.parseIdent(!0),r.exported=this.eatContextual(`as`)?this.parseIdent(!0):r.local,this.checkExport(e,r.exported.name,r.exported.start),t.push(this.finishNode(r,`ExportSpecifier`))}return t},I.parseImport=function(e){return this.next(),this.type===b.string?(e.specifiers=Te,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual(`from`),e.source=this.type===b.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,`ImportDeclaration`)},I.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===b.name){var n=this.startNode();if(n.local=this.parseIdent(),this.checkLVal(n.local,me),e.push(this.finishNode(n,`ImportDefaultSpecifier`)),!this.eat(b.comma))return e}if(this.type===b.star){var r=this.startNode();return this.next(),this.expectContextual(`as`),r.local=this.parseIdent(),this.checkLVal(r.local,me),e.push(this.finishNode(r,`ImportNamespaceSpecifier`)),e}for(this.expect(b.braceL);!this.eat(b.braceR);){if(t)t=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;var i=this.startNode();i.imported=this.parseIdent(!0),this.eatContextual(`as`)?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLVal(i.local,me),e.push(this.finishNode(i,`ImportSpecifier`))}return e},I.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},I.isDirectiveCandidate=function(e){return e.type===`ExpressionStatement`&&e.expression.type===`Literal`&&typeof e.expression.value==`string`&&(this.input[e.start]===`"`||this.input[e.start]===`'`)};var Oe=ve.prototype;Oe.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case`Identifier`:this.inAsync&&e.name===`await`&&this.raise(e.start,`Cannot use 'await' as identifier inside an async function`);break;case`ObjectPattern`:case`ArrayPattern`:case`RestElement`:break;case`ObjectExpression`:e.type=`ObjectPattern`,n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.toAssignable(a,t),a.type===`RestElement`&&(a.argument.type===`ArrayPattern`||a.argument.type===`ObjectPattern`)&&this.raise(a.argument.start,`Unexpected token`)}break;case`Property`:e.kind!==`init`&&this.raise(e.key.start,`Object pattern can't contain getter or setter`),this.toAssignable(e.value,t);break;case`ArrayExpression`:e.type=`ArrayPattern`,n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case`SpreadElement`:e.type=`RestElement`,this.toAssignable(e.argument,t),e.argument.type===`AssignmentPattern`&&this.raise(e.argument.start,`Rest elements cannot have a default value`);break;case`AssignmentExpression`:e.operator!==`=`&&this.raise(e.left.end,`Only '=' operator can be used for specifying default value.`),e.type=`AssignmentPattern`,delete e.operator,this.toAssignable(e.left,t);case`AssignmentPattern`:break;case`ParenthesizedExpression`:this.toAssignable(e.expression,t,n);break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:if(!t)break;default:this.raise(e.start,`Assigning to rvalue`)}else n&&this.checkPatternErrors(n,!0);return e},Oe.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var a=e[n-1];this.options.ecmaVersion===6&&t&&a&&a.type===`RestElement`&&a.argument.type!==`Identifier`&&this.unexpected(a.argument.start)}return e},Oe.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,`SpreadElement`)},Oe.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==b.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,`RestElement`)},Oe.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case b.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(b.bracketR,!0,!0),this.finishNode(e,`ArrayPattern`);case b.braceL:return this.parseObj(!0)}return this.parseIdent()},Oe.parseBindingList=function(e,t,n){for(var r=[],i=!0;!this.eat(e);)if(i?i=!1:this.expect(b.comma),t&&this.type===b.comma)r.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===b.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),r.push(a),this.type===b.comma&&this.raise(this.start,`Comma is not permitted after the rest element`),this.expect(e);break}else{var o=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(o),r.push(o)}}return r},Oe.parseBindingListItem=function(e){return e},Oe.parseMaybeDefault=function(e,t,n){if(n||=this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(b.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,`AssignmentPattern`)},Oe.checkLVal=function(e,t,n){switch(t===void 0&&(t=fe),e.type){case`Identifier`:t===me&&e.name===`let`&&this.raiseRecoverable(e.start,`let is disallowed as a lexically bound name`),this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(t?`Binding `:`Assigning to `)+e.name+` in strict mode`),n&&(k(n,e.name)&&this.raiseRecoverable(e.start,`Argument name clash`),n[e.name]=!0),t!==fe&&t!==_e&&this.declareName(e.name,t,e.start);break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:t&&this.raiseRecoverable(e.start,`Binding member expression`);break;case`ObjectPattern`:for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.checkLVal(a,t,n)}break;case`Property`:this.checkLVal(e.value,t,n);break;case`ArrayPattern`:for(var o=0,s=e.elements;o<s.length;o+=1){var c=s[o];c&&this.checkLVal(c,t,n)}break;case`AssignmentPattern`:this.checkLVal(e.left,t,n);break;case`RestElement`:this.checkLVal(e.argument,t,n);break;case`ParenthesizedExpression`:this.checkLVal(e.expression,t,n);break;default:this.raise(e.start,(t?`Binding`:`Assigning to`)+` rvalue`)}};var R=ve.prototype;R.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&e.type===`SpreadElement`)&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r=e.key,i;switch(r.type){case`Identifier`:i=r.name;break;case`Literal`:i=String(r.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6){i===`__proto__`&&a===`init`&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=r.start):this.raiseRecoverable(r.start,`Redefinition of __proto__ property`)),t.proto=!0);return}i=`$`+i;var o=t[i];o?(a===`init`?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(r.start,`Redefinition of property`):o=t[i]={init:!1,get:!1,set:!1},o[a]=!0}},R.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===b.comma){var a=this.startNodeAt(n,r);for(a.expressions=[i];this.eat(b.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,`SequenceExpression`)}return i},R.parseMaybeAssign=function(e,t,n){if(this.isContextual(`yield`)){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,a=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,t.parenthesizedAssign=t.trailingComma=-1):(t=new Se,r=!0);var o=this.start,s=this.startLoc;(this.type===b.parenL||this.type===b.name)&&(this.potentialArrowAt=this.start);var c=this.parseMaybeConditional(e,t);if(n&&(c=n.call(this,c,o,s)),this.type.isAssign){var l=this.startNodeAt(o,s);return l.operator=this.value,l.left=this.type===b.eq?this.toAssignable(c,!1,t):c,r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.left.start&&(t.shorthandAssign=-1),this.checkLVal(c),this.next(),l.right=this.parseMaybeAssign(e),this.finishNode(l,`AssignmentExpression`)}else r&&this.checkExpressionErrors(t,!0);return i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),c},R.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(b.question)){var a=this.startNodeAt(n,r);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(b.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,`ConditionalExpression`)}return i},R.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1);return this.checkExpressionErrors(t)||i.start===n&&i.type===`ArrowFunctionExpression`?i:this.parseExprOp(i,n,r,-1,e)},R.parseExprOp=function(e,t,n,r,i){var a=this.type.binop;if(a!=null&&(!i||this.type!==b._in)&&a>r){var o=this.type===b.logicalOR||this.type===b.logicalAND,s=this.type===b.coalesce;s&&(a=b.logicalAND.binop);var c=this.value;this.next();var l=this.start,u=this.startLoc,d=this.parseExprOp(this.parseMaybeUnary(null,!1),l,u,a,i),f=this.buildBinary(t,n,e,d,c,o||s);return(o&&this.type===b.coalesce||s&&(this.type===b.logicalOR||this.type===b.logicalAND))&&this.raiseRecoverable(this.start,`Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses`),this.parseExprOp(f,t,n,r,i)}return e},R.buildBinary=function(e,t,n,r,i,a){var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,a?`LogicalExpression`:`BinaryExpression`)},R.parseMaybeUnary=function(e,t){var n=this.start,r=this.startLoc,i;if(this.isContextual(`await`)&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))i=this.parseAwait(),t=!0;else if(this.type.prefix){var a=this.startNode(),o=this.type===b.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),o?this.checkLVal(a.argument):this.strict&&a.operator===`delete`&&a.argument.type===`Identifier`?this.raiseRecoverable(a.start,`Deleting local variable in strict mode`):t=!0,i=this.finishNode(a,o?`UpdateExpression`:`UnaryExpression`)}else{if(i=this.parseExprSubscripts(e),this.checkExpressionErrors(e))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var s=this.startNodeAt(n,r);s.operator=this.value,s.prefix=!1,s.argument=i,this.checkLVal(i),this.next(),i=this.finishNode(s,`UpdateExpression`)}}return!t&&this.eat(b.starstar)?this.buildBinary(n,r,i,this.parseMaybeUnary(null,!1),`**`,!1):i},R.parseExprSubscripts=function(e){var t=this.start,n=this.startLoc,r=this.parseExprAtom(e);if(r.type===`ArrowFunctionExpression`&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==`)`)return r;var i=this.parseSubscripts(r,t,n);return e&&i.type===`MemberExpression`&&(e.parenthesizedAssign>=i.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=i.start&&(e.parenthesizedBind=-1)),i},R.parseSubscripts=function(e,t,n,r){for(var i=this.options.ecmaVersion>=8&&e.type===`Identifier`&&e.name===`async`&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,a=!1;;){var o=this.parseSubscript(e,t,n,r,i,a);if(o.optional&&(a=!0),o===e||o.type===`ArrowFunctionExpression`){if(a){var s=this.startNodeAt(t,n);s.expression=o,o=this.finishNode(s,`ChainExpression`)}return o}e=o}},R.parseSubscript=function(e,t,n,r,i,a){var o=this.options.ecmaVersion>=11,s=o&&this.eat(b.questionDot);r&&s&&this.raise(this.lastTokStart,`Optional chaining cannot appear in the callee of new expressions`);var c=this.eat(b.bracketL);if(c||s&&this.type!==b.parenL&&this.type!==b.backQuote||this.eat(b.dot)){var l=this.startNodeAt(t,n);l.object=e,l.property=c?this.parseExpression():this.parseIdent(this.options.allowReserved!==`never`),l.computed=!!c,c&&this.expect(b.bracketR),o&&(l.optional=s),e=this.finishNode(l,`MemberExpression`)}else if(!r&&this.eat(b.parenL)){var u=new Se,d=this.yieldPos,f=this.awaitPos,p=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1,u);if(i&&!s&&!this.canInsertSemicolon()&&this.eat(b.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,`Cannot use 'await' as identifier inside an async function`),this.yieldPos=d,this.awaitPos=f,this.awaitIdentPos=p,this.parseArrowExpression(this.startNodeAt(t,n),m,!0);this.checkExpressionErrors(u,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=f||this.awaitPos,this.awaitIdentPos=p||this.awaitIdentPos;var h=this.startNodeAt(t,n);h.callee=e,h.arguments=m,o&&(h.optional=s),e=this.finishNode(h,`CallExpression`)}else if(this.type===b.backQuote){(s||a)&&this.raise(this.start,`Optional chaining cannot appear in the tag of tagged template expressions`);var g=this.startNodeAt(t,n);g.tag=e,g.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(g,`TaggedTemplateExpression`)}return e},R.parseExprAtom=function(e){this.type===b.slash&&this.readRegexp();var t,n=this.potentialArrowAt===this.start;switch(this.type){case b._super:return this.allowSuper||this.raise(this.start,`'super' keyword outside a method`),t=this.startNode(),this.next(),this.type===b.parenL&&!this.allowDirectSuper&&this.raise(t.start,`super() call outside constructor of a subclass`),this.type!==b.dot&&this.type!==b.bracketL&&this.type!==b.parenL&&this.unexpected(),this.finishNode(t,`Super`);case b._this:return t=this.startNode(),this.next(),this.finishNode(t,`ThisExpression`);case b.name:var r=this.start,i=this.startLoc,a=this.containsEsc,o=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!a&&o.name===`async`&&!this.canInsertSemicolon()&&this.eat(b._function))return this.parseFunction(this.startNodeAt(r,i),0,!1,!0);if(n&&!this.canInsertSemicolon()){if(this.eat(b.arrow))return this.parseArrowExpression(this.startNodeAt(r,i),[o],!1);if(this.options.ecmaVersion>=8&&o.name===`async`&&this.type===b.name&&!a)return o=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(b.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(r,i),[o],!0)}return o;case b.regexp:var s=this.value;return t=this.parseLiteral(s.value),t.regex={pattern:s.pattern,flags:s.flags},t;case b.num:case b.string:return this.parseLiteral(this.value);case b._null:case b._true:case b._false:return t=this.startNode(),t.value=this.type===b._null?null:this.type===b._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,`Literal`);case b.parenL:var c=this.start,l=this.parseParenAndDistinguishExpression(n);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(l)&&(e.parenthesizedAssign=c),e.parenthesizedBind<0&&(e.parenthesizedBind=c)),l;case b.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(b.bracketR,!0,!0,e),this.finishNode(t,`ArrayExpression`);case b.braceL:return this.parseObj(!1,e);case b._function:return t=this.startNode(),this.next(),this.parseFunction(t,0);case b._class:return this.parseClass(this.startNode(),!1);case b._new:return this.parseNew();case b.backQuote:return this.parseTemplate();case b._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},R.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword import`);var t=this.parseIdent(!0);switch(this.type){case b.parenL:return this.parseDynamicImport(e);case b.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},R.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(b.parenR)){var t=this.start;this.eat(b.comma)&&this.eat(b.parenR)?this.raiseRecoverable(t,`Trailing comma is not allowed in import()`):this.unexpected(t)}return this.finishNode(e,`ImportExpression`)},R.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`meta`&&this.raiseRecoverable(e.property.start,`The only valid meta property for import is 'import.meta'`),t&&this.raiseRecoverable(e.start,`'import.meta' must not contain escaped characters`),this.options.sourceType!==`module`&&this.raiseRecoverable(e.start,`Cannot use 'import.meta' outside a module`),this.finishNode(e,`MetaProperty`)},R.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,``)),this.next(),this.finishNode(t,`Literal`)},R.parseParenExpression=function(){this.expect(b.parenL);var e=this.parseExpression();return this.expect(b.parenR),e},R.parseParenAndDistinguishExpression=function(e){var t=this.start,n=this.startLoc,r,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a=this.start,o=this.startLoc,s=[],c=!0,l=!1,u=new Se,d=this.yieldPos,f=this.awaitPos,p;for(this.yieldPos=0,this.awaitPos=0;this.type!==b.parenR;)if(c?c=!1:this.expect(b.comma),i&&this.afterTrailingComma(b.parenR,!0)){l=!0;break}else if(this.type===b.ellipsis){p=this.start,s.push(this.parseParenItem(this.parseRestBinding())),this.type===b.comma&&this.raise(this.start,`Comma is not permitted after the rest element`);break}else s.push(this.parseMaybeAssign(!1,u,this.parseParenItem));var m=this.start,h=this.startLoc;if(this.expect(b.parenR),e&&!this.canInsertSemicolon()&&this.eat(b.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=f,this.parseParenArrowList(t,n,s);(!s.length||l)&&this.unexpected(this.lastTokStart),p&&this.unexpected(p),this.checkExpressionErrors(u,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=f||this.awaitPos,s.length>1?(r=this.startNodeAt(a,o),r.expressions=s,this.finishNodeAt(r,`SequenceExpression`,m,h)):r=s[0]}else r=this.parseParenExpression();if(this.options.preserveParens){var g=this.startNodeAt(t,n);return g.expression=r,this.finishNode(g,`ParenthesizedExpression`)}else return r},R.parseParenItem=function(e){return e},R.parseParenArrowList=function(e,t,n){return this.parseArrowExpression(this.startNodeAt(e,t),n)};var ke=[];R.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword new`);var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(b.dot)){e.meta=t;var n=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`target`&&this.raiseRecoverable(e.property.start,`The only valid meta property for new is 'new.target'`),n&&this.raiseRecoverable(e.start,`'new.target' must not contain escaped characters`),this.inNonArrowFunction()||this.raiseRecoverable(e.start,`'new.target' can only be used in functions`),this.finishNode(e,`MetaProperty`)}var r=this.start,i=this.startLoc,a=this.type===b._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0),a&&e.callee.type===`ImportExpression`&&this.raise(r,`Cannot use new with import()`),this.eat(b.parenL)?e.arguments=this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1):e.arguments=ke,this.finishNode(e,`NewExpression`)},R.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===b.invalidTemplate?(t||this.raiseRecoverable(this.start,`Bad escape sequence in untagged template literal`),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
||
`),cooked:this.value},this.next(),n.tail=this.type===b.backQuote,this.finishNode(n,`TemplateElement`)},R.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===b.eof&&this.raise(this.pos,`Unterminated template literal`),this.expect(b.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(b.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,`TemplateLiteral`)},R.isAsyncProp=function(e){return!e.computed&&e.key.type===`Identifier`&&e.key.name===`async`&&(this.type===b.name||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===b.star)&&!x.test(this.input.slice(this.lastTokEnd,this.start))},R.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(b.braceR);){if(r)r=!1;else if(this.expect(b.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(b.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?`ObjectPattern`:`ObjectExpression`)},R.parseProperty=function(e,t){var n=this.startNode(),r,i,a,o;if(this.options.ecmaVersion>=9&&this.eat(b.ellipsis))return e?(n.argument=this.parseIdent(!1),this.type===b.comma&&this.raise(this.start,`Comma is not permitted after the rest element`),this.finishNode(n,`RestElement`)):(this.type===b.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),n.argument=this.parseMaybeAssign(!1,t),this.type===b.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(n,`SpreadElement`));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(e||t)&&(a=this.start,o=this.startLoc),e||(r=this.eat(b.star)));var s=this.containsEsc;return this.parsePropertyName(n),!e&&!s&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(n)?(i=!0,r=this.options.ecmaVersion>=9&&this.eat(b.star),this.parsePropertyName(n,t)):i=!1,this.parsePropertyValue(n,e,r,i,a,o,t,s),this.finishNode(n,`Property`)},R.parsePropertyValue=function(e,t,n,r,i,a,o,s){if((n||r)&&this.type===b.colon&&this.unexpected(),this.eat(b.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind=`init`;else if(this.options.ecmaVersion>=6&&this.type===b.parenL)t&&this.unexpected(),e.kind=`init`,e.method=!0,e.value=this.parseMethod(n,r);else if(!t&&!s&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type===`Identifier`&&(e.key.name===`get`||e.key.name===`set`)&&this.type!==b.comma&&this.type!==b.braceR&&this.type!==b.eq){(n||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var c=e.kind===`get`?0:1;if(e.value.params.length!==c){var l=e.value.start;e.kind===`get`?this.raiseRecoverable(l,`getter should have no params`):this.raiseRecoverable(l,`setter should have exactly one param`)}else e.kind===`set`&&e.value.params[0].type===`RestElement`&&this.raiseRecoverable(e.value.params[0].start,`Setter cannot use rest params`)}else this.options.ecmaVersion>=6&&!e.computed&&e.key.type===`Identifier`?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=i),e.kind=`init`,t?e.value=this.parseMaybeDefault(i,a,e.key):this.type===b.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,e.key)):e.value=e.key,e.shorthand=!0):this.unexpected()},R.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(b.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(b.bracketR),e.key;e.computed=!1}return e.key=this.type===b.num||this.type===b.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`)},R.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},R.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(de(t,r.generator)|le|(n?ue:0)),this.expect(b.parenL),r.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(r,`FunctionExpression`)},R.parseArrowExpression=function(e,t,n){var r=this.yieldPos,i=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(de(n,!1)|se),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1),this.yieldPos=r,this.awaitPos=i,this.awaitIdentPos=a,this.finishNode(e,`ArrowFunctionExpression`)},R.parseFunctionBody=function(e,t,n){var r=t&&this.type!==b.braceL,i=this.strict,a=!1;if(r)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!i||o)&&(a=this.strictDirective(this.end),a&&o&&this.raiseRecoverable(e.start,`Illegal 'use strict' directive in function with non-simple parameter list`));var s=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!i&&!a&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLVal(e.id,_e),e.body=this.parseBlock(!1,void 0,a&&!i),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=s}this.exitScope()},R.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1)if(n[t].type!==`Identifier`)return!1;return!0},R.checkParams=function(e,t){for(var n={},r=0,i=e.params;r<i.length;r+=1){var a=i[r];this.checkLVal(a,pe,t?null:n)}},R.parseExprList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(b.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===b.comma?o=null:this.type===b.ellipsis?(o=this.parseSpread(r),r&&this.type===b.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i},R.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;this.inGenerator&&r===`yield`&&this.raiseRecoverable(t,`Cannot use 'yield' as identifier inside a generator`),this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use 'await' as identifier inside an async function`),this.keywords.test(r)&&this.raise(t,`Unexpected keyword '`+r+`'`),!(this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf(`\\`)!==-1)&&(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(!this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use keyword 'await' outside an async function`),this.raiseRecoverable(t,`The keyword '`+r+`' is reserved`))},R.parseIdent=function(e,t){var n=this.startNode();return this.type===b.name?n.name=this.value:this.type.keyword?(n.name=this.type.keyword,(n.name===`class`||n.name===`function`)&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(n,`Identifier`),e||(this.checkUnreserved(n),n.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=n.start)),n},R.parseYield=function(e){this.yieldPos||=this.start;var t=this.startNode();return this.next(),this.type===b.semi||this.canInsertSemicolon()||this.type!==b.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(b.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,`YieldExpression`)},R.parseAwait=function(){this.awaitPos||=this.start;var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!1),this.finishNode(e,`AwaitExpression`)};var Ae=ve.prototype;Ae.raise=function(e,t){var n=N(this.input,e);t+=` (`+n.line+`:`+n.column+`)`;var r=SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},Ae.raiseRecoverable=Ae.raise,Ae.curPosition=function(){if(this.options.locations)return new M(this.curLine,this.pos-this.lineStart)};var je=ve.prototype,Me=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};je.enterScope=function(e){this.scopeStack.push(new Me(e))},je.exitScope=function(){this.scopeStack.pop()},je.treatFunctionsAsVarInScope=function(e){return e.flags&ie||!this.inModule&&e.flags&P},je.declareName=function(e,t,n){var r=!1;if(t===me){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&P&&delete this.undefinedExports[e]}else if(t===ge)this.currentScope().lexical.push(e);else if(t===he){var a=this.currentScope();r=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var s=this.scopeStack[o];if(s.lexical.indexOf(e)>-1&&!(s.flags&ce&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){r=!0;break}if(s.var.push(e),this.inModule&&s.flags&P&&delete this.undefinedExports[e],s.flags&ae)break}r&&this.raiseRecoverable(n,`Identifier '`+e+`' has already been declared`)},je.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},je.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},je.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&ae)return t}},je.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&ae&&!(t.flags&se))return t}};var Ne=function(e,t,n){this.type=``,this.start=t,this.end=0,e.options.locations&&(this.loc=new ee(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},Pe=ve.prototype;Pe.startNode=function(){return new Ne(this,this.start,this.startLoc)},Pe.startNodeAt=function(e,t){return new Ne(this,e,t)};function Fe(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}Pe.finishNode=function(e,t){return Fe.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},Pe.finishNodeAt=function(e,t,n,r){return Fe.call(this,e,t,n,r)};var z=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},Ie={b_stat:new z(`{`,!1),b_expr:new z(`{`,!0),b_tmpl:new z("${",!1),p_stat:new z(`(`,!1),p_expr:new z(`(`,!0),q_tmpl:new z("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new z(`function`,!1),f_expr:new z(`function`,!0),f_expr_gen:new z(`function`,!0,!1,null,!0),f_gen:new z(`function`,!1,!1,null,!0)},Le=ve.prototype;Le.initialContext=function(){return[Ie.b_stat]},Le.braceIsBlock=function(e){var t=this.curContext();return t===Ie.f_expr||t===Ie.f_stat?!0:e===b.colon&&(t===Ie.b_stat||t===Ie.b_expr)?!t.isExpr:e===b._return||e===b.name&&this.exprAllowed?x.test(this.input.slice(this.lastTokEnd,this.start)):e===b._else||e===b.semi||e===b.eof||e===b.parenR||e===b.arrow?!0:e===b.braceL?t===Ie.b_stat:e===b._var||e===b._const||e===b.name?!1:!this.exprAllowed},Le.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token===`function`)return t.generator}return!1},Le.updateContext=function(e){var t,n=this.type;n.keyword&&e===b.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},b.parenR.updateContext=b.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===Ie.b_stat&&this.curContext().token===`function`&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},b.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?Ie.b_stat:Ie.b_expr),this.exprAllowed=!0},b.dollarBraceL.updateContext=function(){this.context.push(Ie.b_tmpl),this.exprAllowed=!0},b.parenL.updateContext=function(e){var t=e===b._if||e===b._for||e===b._with||e===b._while;this.context.push(t?Ie.p_stat:Ie.p_expr),this.exprAllowed=!0},b.incDec.updateContext=function(){},b._function.updateContext=b._class.updateContext=function(e){e.beforeExpr&&e!==b.semi&&e!==b._else&&!(e===b._return&&x.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===b.colon||e===b.braceL)&&this.curContext()===Ie.b_stat)?this.context.push(Ie.f_expr):this.context.push(Ie.f_stat),this.exprAllowed=!1},b.backQuote.updateContext=function(){this.curContext()===Ie.q_tmpl?this.context.pop():this.context.push(Ie.q_tmpl),this.exprAllowed=!1},b.star.updateContext=function(e){if(e===b._function){var t=this.context.length-1;this.context[t]===Ie.f_expr?this.context[t]=Ie.f_expr_gen:this.context[t]=Ie.f_gen}this.exprAllowed=!0},b.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==b.dot&&(this.value===`of`&&!this.exprAllowed||this.value===`yield`&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var Re=`ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS`,ze=Re+` Extended_Pictographic`,Be=ze,Ve={9:Re,10:ze,11:Be},He=`Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu`,Ue=`Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb`,B=Ue+` Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd`,We=B+` Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho`,Ge={9:Ue,10:B,11:We},Ke={};function qe(e){var t=Ke[e]={binary:j(Ve[e]+` `+He),nonBinary:{General_Category:j(He),Script:j(Ge[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}qe(9),qe(10),qe(11);var V=ve.prototype,Je=function(e){this.parser=e,this.validFlags=`gim`+(e.options.ecmaVersion>=6?`uy`:``)+(e.options.ecmaVersion>=9?`s`:``),this.unicodeProperties=Ke[e.options.ecmaVersion>=11?11:e.options.ecmaVersion],this.source=``,this.flags=``,this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue=``,this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};Je.prototype.reset=function(e,t,n){var r=n.indexOf(`u`)!==-1;this.start=e|0,this.source=t+``,this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},Je.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,`Invalid regular expression: /`+this.source+`/: `+e)},Je.prototype.at=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!(t||this.switchU)||i<=55295||i>=57344||e+1>=r)return i;var a=n.charCodeAt(e+1);return a>=56320&&a<=57343?(i<<10)+a-56613888:i},Je.prototype.nextIndex=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i=n.charCodeAt(e),a;return!(t||this.switchU)||i<=55295||i>=57344||e+1>=r||(a=n.charCodeAt(e+1))<56320||a>57343?e+1:e+2},Je.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)},Je.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Je.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Je.prototype.eat=function(e,t){return t===void 0&&(t=!1),this.current(t)===e?(this.advance(t),!0):!1};function Ye(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}V.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=0;r<n.length;r++){var i=n.charAt(r);t.indexOf(i)===-1&&this.raise(e.start,`Invalid regular expression flag`),n.indexOf(i,r+1)>-1&&this.raise(e.start,`Duplicate regular expression flag`)}},V.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},V.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue=``,e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise(`Unmatched ')'`),(e.eat(93)||e.eat(125))&&e.raise(`Lone quantifier brackets`)),e.maxBackReference>e.numCapturingParens&&e.raise(`Invalid escape`);for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];e.groupNames.indexOf(r)===-1&&e.raise(`Invalid named capture referenced`)}},V.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise(`Nothing to repeat`),e.eat(123)&&e.raise(`Lone quantifier brackets`)},V.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},V.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise(`Invalid quantifier`),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1},V.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise(`Unterminated group`),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},V.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},V.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},V.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i<r&&!t&&e.raise(`numbers out of order in {} quantifier`),!0;e.switchU&&!t&&e.raise(`Incomplete quantifier`),e.pos=n}return!1},V.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},V.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},V.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise(`Unterminated group`)}e.pos=t}return!1},V.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise(`Invalid group`),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise(`Unterminated group`)}return!1},V.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},V.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise(`Nothing to repeat`),!1},V.regexp_eatSyntaxCharacter=function(e){var t=e.current();return Xe(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Xe(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}V.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!Xe(n);)e.advance();return e.pos!==t},V.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1},V.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise(`Duplicate capture group name`),e.groupNames.push(e.lastStringValue);return}e.raise(`Invalid group`)}},V.regexp_eatGroupName=function(e){if(e.lastStringValue=``,e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise(`Invalid capture group name`)}return!1},V.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue=``,this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Ye(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Ye(e.lastIntValue);return!0}return!1},V.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),Ze(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function Ze(e){return f(e,!0)||e===36||e===95}V.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),Qe(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function Qe(e){return p(e,!0)||e===36||e===95||e===8204||e===8205}V.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise(`Invalid unicode escape`),e.raise(`Invalid escape`)),!1)},V.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},V.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise(`Invalid named reference`)}return!1},V.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},V.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},V.regexp_eatZero=function(e){return e.current()===48&&!it(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1},V.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1},V.regexp_eatControlLetter=function(e){var t=e.current();return $e(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function $e(e){return e>=65&&e<=90||e>=97&&e<=122}V.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(r&&i>=55296&&i<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(i-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=i}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&et(e.lastIntValue))return!0;r&&e.raise(`Invalid unicode escape`),e.pos=n}return!1};function et(e){return e>=0&&e<=1114111}V.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1},V.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1},V.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(tt(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(t===80||t===112)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise(`Invalid property name`)}return!1};function tt(e){return e===100||e===68||e===115||e===83||e===119||e===87}V.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},V.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){k(e.unicodeProperties.nonBinary,t)||e.raise(`Invalid property name`),e.unicodeProperties.nonBinary[t].test(n)||e.raise(`Invalid property value`)},V.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise(`Invalid property name`)},V.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue=``;nt(t=e.current());)e.lastStringValue+=Ye(t),e.advance();return e.lastStringValue!==``};function nt(e){return $e(e)||e===95}V.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue=``;rt(t=e.current());)e.lastStringValue+=Ye(t),e.advance();return e.lastStringValue!==``};function rt(e){return nt(e)||it(e)}V.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},V.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise(`Unterminated character class`)}return!1},V.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;e.switchU&&(t===-1||n===-1)&&e.raise(`Invalid character class`),t!==-1&&n!==-1&&t>n&&e.raise(`Range out of order in character class`)}}},V.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(n===99||st(n))&&e.raise(`Invalid class escape`),e.raise(`Invalid escape`)}e.pos=t}var r=e.current();return r===93?!1:(e.lastIntValue=r,e.advance(),!0)},V.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},V.regexp_eatClassControlLetter=function(e){var t=e.current();return it(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},V.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise(`Invalid escape`),e.pos=t}return!1},V.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;it(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function it(e){return e>=48&&e<=57}V.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;at(n=e.current());)e.lastIntValue=16*e.lastIntValue+ot(n),e.advance();return e.pos!==t};function at(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function ot(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}V.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+n*8+e.lastIntValue:e.lastIntValue=t*8+n}else e.lastIntValue=t;return!0}return!1},V.regexp_eatOctalDigit=function(e){var t=e.current();return st(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function st(e){return e>=48&&e<=55}V.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!at(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+ot(i),e.advance()}return!0};var ct=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new ee(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},H=ve.prototype;H.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword `+this.type.keyword),this.options.onToken&&this.options.onToken(new ct(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},H.getToken=function(){return this.next(),new ct(this)},typeof Symbol<`u`&&(H[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===b.eof,value:t}}}}),H.curContext=function(){return this.context[this.context.length-1]},H.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(b.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},H.readToken=function(e){return f(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},H.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=57344)return e;var t=this.input.charCodeAt(this.pos+1);return(e<<10)+t-56613888},H.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf(`*/`,this.pos+=2);if(n===-1&&this.raise(this.pos-2,`Unterminated comment`),this.pos=n+2,this.options.locations){S.lastIndex=t;for(var r;(r=S.exec(this.input))&&r.index<this.pos;)++this.curLine,this.lineStart=r.index+r[0].length}this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},H.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!C(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},H.skipSpace=function(){loop:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break loop}break;default:if(e>8&&e<14||e>=5760&&w.test(String.fromCharCode(e)))++this.pos;else break loop}}},H.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},H.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(b.ellipsis)):(++this.pos,this.finishToken(b.dot))},H.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(b.assign,2):this.finishOp(b.slash,1)},H.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=e===42?b.star:b.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,r=b.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(b.assign,n+1):this.finishOp(r,n)},H.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(b.assign,3):this.finishOp(e===124?b.logicalOR:b.logicalAND,2):t===61?this.finishOp(b.assign,2):this.finishOp(e===124?b.bitwiseOR:b.bitwiseAND,1)},H.readToken_caret=function(){return this.input.charCodeAt(this.pos+1)===61?this.finishOp(b.assign,2):this.finishOp(b.bitwiseXOR,1)},H.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||x.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(b.incDec,2):t===61?this.finishOp(b.assign,2):this.finishOp(b.plusMin,1)},H.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(b.assign,n+1):this.finishOp(b.bitShift,n)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(n=2),this.finishOp(b.relational,n))},H.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(b.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(b.arrow)):this.finishOp(e===61?b.eq:b.prefix,1)},H.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(b.questionDot,2)}if(t===63)return e>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(b.assign,3):this.finishOp(b.coalesce,2)}return this.finishOp(b.question,1)},H.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(b.parenL);case 41:return++this.pos,this.finishToken(b.parenR);case 59:return++this.pos,this.finishToken(b.semi);case 44:return++this.pos,this.finishToken(b.comma);case 91:return++this.pos,this.finishToken(b.bracketL);case 93:return++this.pos,this.finishToken(b.bracketR);case 123:return++this.pos,this.finishToken(b.braceL);case 125:return++this.pos,this.finishToken(b.braceR);case 58:return++this.pos,this.finishToken(b.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(b.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(b.prefix,1)}this.raise(this.pos,`Unexpected character '`+dt(e)+`'`)},H.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},H.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,`Unterminated regular expression`);var r=this.input.charAt(this.pos);if(x.test(r)&&this.raise(n,`Unterminated regular expression`),e)e=!1;else{if(r===`[`)t=!0;else if(r===`]`&&t)t=!1;else if(r===`/`&&!t)break;e=r===`\\`}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||=new Je(this);s.reset(n,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var c=null;try{c=new RegExp(i,o)}catch{}return this.finishToken(b.regexp,{pattern:i,flags:o,value:c})},H.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&t===void 0,i=n&&this.input.charCodeAt(this.pos)===48,a=this.pos,o=0,s=0,c=0,l=t??1/0;c<l;++c,++this.pos){var u=this.input.charCodeAt(this.pos),d=void 0;if(r&&u===95){i&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed in legacy octal numeric literals`),s===95&&this.raiseRecoverable(this.pos,`Numeric separator must be exactly one underscore`),c===0&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed at the first of digits`),s=u;continue}if(d=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0,d>=e)break;s=u,o=o*e+d}return r&&s===95&&this.raiseRecoverable(this.pos-1,`Numeric separator is not allowed at the last of digits`),this.pos===a||t!=null&&this.pos-a!==t?null:o};function lt(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,``))}function ut(e){return typeof BigInt==`function`?BigInt(e.replace(/_/g,``)):null}H.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return n??this.raise(this.start+2,`Expected number in radix `+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=ut(this.input.slice(t,this.pos)),++this.pos):f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(b.num,n)},H.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,`Invalid number`);var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;n&&this.strict&&this.raise(t,`Invalid number`);var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&r===110){var i=ut(this.input.slice(t,this.pos));return++this.pos,f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(b.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),r===46&&!n&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),(r===69||r===101)&&!n&&(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,`Invalid number`)),f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`);var a=lt(this.input.slice(t,this.pos),n);return this.finishToken(b.num,a)},H.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;t=this.readHexChar(this.input.indexOf(`}`,this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(n,`Code point out of bounds`)}else t=this.readHexChar(4);return t};function dt(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}H.readString=function(e){for(var t=``,n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);var r=this.input.charCodeAt(this.pos);if(r===e)break;r===92?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):(C(r,this.options.ecmaVersion>=10)&&this.raise(this.start,`Unterminated string constant`),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(b.string,t)};var ft={};H.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===ft)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},H.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw ft;this.raise(e,t)},H.readTmplToken=function(){for(var e=``,t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated template`);var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===b.template||this.type===b.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(b.dollarBraceL)):(++this.pos,this.finishToken(b.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(b.template,e));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(C(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
|
||
`;break;default:e+=String.fromCharCode(n);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else ++this.pos}},H.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case`\\`:++this.pos;break;case`$`:if(this.input[this.pos+1]!==`{`)break;case"`":return this.finishToken(b.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,`Unterminated template`)},H.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
|
||
`;case 114:return`\r`;case 120:return String.fromCharCode(this.readHexChar(2));case 117:return dt(this.readCodePoint());case 116:return` `;case 98:return`\b`;case 118:return`\v`;case 102:return`\f`;case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),``;case 56:case 57:if(e){var n=this.pos-1;return this.invalidStringToken(n,`Invalid escape sequence in template string`),null}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),(r!==`0`||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?`Octal literal in template string`:`Octal literal in strict mode`),String.fromCharCode(i)}return C(t)?``:String.fromCharCode(t)}},H.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,`Bad character escape sequence`),n},H.readWord1=function(){this.containsEsc=!1;for(var e=``,t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(p(i,r))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,e+=this.input.slice(n,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,`Expecting Unicode escape sequence \\uXXXX`),++this.pos;var o=this.readCodePoint();(t?f:p)(o,r)||this.invalidStringToken(a,`Invalid Unicode escape`),e+=dt(o),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)},H.readWord=function(){var e=this.readWord1(),t=b.name;return this.keywords.test(e)&&(t=v[e]),this.finishToken(t,e)};var pt=`7.4.1`;ve.acorn={Parser:ve,version:pt,defaultOptions:te,Position:M,SourceLocation:ee,getLineInfo:N,Node:Ne,TokenType:m,tokTypes:b,keywordTypes:v,TokContext:z,tokContexts:Ie,isIdentifierChar:p,isIdentifierStart:f,Token:ct,isNewLine:C,lineBreak:x,lineBreakG:S,nonASCIIwhitespace:w};function mt(e,t){return ve.parse(e,t)}function ht(e,t,n){return ve.parseExpressionAt(e,t,n)}function gt(e,t){return ve.tokenizer(e,t)}e.Node=Ne,e.Parser=ve,e.Position=M,e.SourceLocation=ee,e.TokContext=z,e.Token=ct,e.TokenType=m,e.defaultOptions=te,e.getLineInfo=N,e.isIdentifierChar=p,e.isIdentifierStart=f,e.isNewLine=C,e.keywordTypes=v,e.lineBreak=x,e.lineBreakG=S,e.nonASCIIwhitespace=w,e.parse=mt,e.parseExpressionAt=ht,e.tokContexts=Ie,e.tokTypes=b,e.tokenizer=gt,e.version=pt,Object.defineProperty(e,`__esModule`,{value:!0})}))}}),rJ=wW({"../../../node_modules/acorn-jsx/xhtml.js"(e,t){t.exports={quot:`"`,amp:`&`,apos:`'`,lt:`<`,gt:`>`,nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:``,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,fnof:`ƒ`,circ:`ˆ`,tilde:`˜`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,ensp:` `,emsp:` `,thinsp:` `,zwnj:``,zwj:``,lrm:``,rlm:``,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,bull:`•`,hellip:`…`,permil:`‰`,prime:`′`,Prime:`″`,lsaquo:`‹`,rsaquo:`›`,oline:`‾`,frasl:`⁄`,euro:`€`,image:`ℑ`,weierp:`℘`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,lang:`〈`,rang:`〉`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`}}}),iJ=wW({"../../../node_modules/acorn-jsx/index.js"(e,t){var n=rJ(),r=/^[\da-fA-F]+$/,i=/^\d+$/,a=new WeakMap;function o(e){e=e.Parser.acorn||e;let t=a.get(e);if(!t){let n=e.tokTypes,r=e.TokContext,i=e.TokenType,o=new r(`<tag`,!1),s=new r(`</tag`,!1),c=new r(`<tag>...</tag>`,!0,!0),l={tc_oTag:o,tc_cTag:s,tc_expr:c},u={jsxName:new i(`jsxName`),jsxText:new i(`jsxText`,{beforeExpr:!0}),jsxTagStart:new i(`jsxTagStart`,{startsExpr:!0}),jsxTagEnd:new i(`jsxTagEnd`)};u.jsxTagStart.updateContext=function(){this.context.push(c),this.context.push(o),this.exprAllowed=!1},u.jsxTagEnd.updateContext=function(e){let t=this.context.pop();t===o&&e===n.slash||t===s?(this.context.pop(),this.exprAllowed=this.curContext()===c):this.exprAllowed=!0},t={tokContexts:l,tokTypes:u},a.set(e,t)}return t}function s(e){if(!e)return e;if(e.type===`JSXIdentifier`)return e.name;if(e.type===`JSXNamespacedName`)return e.namespace.name+`:`+e.name.name;if(e.type===`JSXMemberExpression`)return s(e.object)+`.`+s(e.property)}t.exports=function(e){return e||={},function(t){return c({allowNamespaces:e.allowNamespaces!==!1,allowNamespacedObjects:!!e.allowNamespacedObjects},t)}},Object.defineProperty(t.exports,`tokTypes`,{get:function(){return o(nJ()).tokTypes},configurable:!0,enumerable:!0});function c(e,t){let a=t.acorn||nJ(),c=o(a),l=a.tokTypes,u=c.tokTypes,d=a.tokContexts,f=c.tokContexts.tc_oTag,p=c.tokContexts.tc_cTag,m=c.tokContexts.tc_expr,h=a.isNewLine,g=a.isIdentifierStart,_=a.isIdentifierChar;return class extends t{static get acornJsx(){return c}jsx_readToken(){let e=``,t=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated JSX contents`);let n=this.input.charCodeAt(this.pos);switch(n){case 60:case 123:return this.pos===this.start?n===60&&this.exprAllowed?(++this.pos,this.finishToken(u.jsxTagStart)):this.getTokenFromCode(n):(e+=this.input.slice(t,this.pos),this.finishToken(u.jsxText,e));case 38:e+=this.input.slice(t,this.pos),e+=this.jsx_readEntity(),t=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(n===62?`>`:`}`)+'` or `{"'+this.input[this.pos]+'"}`?');default:h(n)?(e+=this.input.slice(t,this.pos),e+=this.jsx_readNewLine(!0),t=this.pos):++this.pos}}}jsx_readNewLine(e){let t=this.input.charCodeAt(this.pos),n;return++this.pos,t===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,n=e?`
|
||
`:`\r
|
||
`):n=String.fromCharCode(t),this.options.locations&&(++this.curLine,this.lineStart=this.pos),n}jsx_readString(e){let t=``,n=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);let r=this.input.charCodeAt(this.pos);if(r===e)break;r===38?(t+=this.input.slice(n,this.pos),t+=this.jsx_readEntity(),n=this.pos):h(r)?(t+=this.input.slice(n,this.pos),t+=this.jsx_readNewLine(!1),n=this.pos):++this.pos}return t+=this.input.slice(n,this.pos++),this.finishToken(l.string,t)}jsx_readEntity(){let e=``,t=0,a,o=this.input[this.pos];o!==`&`&&this.raise(this.pos,`Entity must start with an ampersand`);let s=++this.pos;for(;this.pos<this.input.length&&t++<10;){if(o=this.input[this.pos++],o===`;`){e[0]===`#`?e[1]===`x`?(e=e.substr(2),r.test(e)&&(a=String.fromCharCode(parseInt(e,16)))):(e=e.substr(1),i.test(e)&&(a=String.fromCharCode(parseInt(e,10)))):a=n[e];break}e+=o}return a||(this.pos=s,`&`)}jsx_readWord(){let e,t=this.pos;do e=this.input.charCodeAt(++this.pos);while(_(e)||e===45);return this.finishToken(u.jsxName,this.input.slice(t,this.pos))}jsx_parseIdentifier(){let e=this.startNode();return this.type===u.jsxName?e.name=this.value:this.type.keyword?e.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(e,`JSXIdentifier`)}jsx_parseNamespacedName(){let t=this.start,n=this.startLoc,r=this.jsx_parseIdentifier();if(!e.allowNamespaces||!this.eat(l.colon))return r;var i=this.startNodeAt(t,n);return i.namespace=r,i.name=this.jsx_parseIdentifier(),this.finishNode(i,`JSXNamespacedName`)}jsx_parseElementName(){if(this.type===u.jsxTagEnd)return``;let t=this.start,n=this.startLoc,r=this.jsx_parseNamespacedName();for(this.type===l.dot&&r.type===`JSXNamespacedName`&&!e.allowNamespacedObjects&&this.unexpected();this.eat(l.dot);){let e=this.startNodeAt(t,n);e.object=r,e.property=this.jsx_parseIdentifier(),r=this.finishNode(e,`JSXMemberExpression`)}return r}jsx_parseAttributeValue(){switch(this.type){case l.braceL:let e=this.jsx_parseExpressionContainer();return e.expression.type===`JSXEmptyExpression`&&this.raise(e.start,`JSX attributes must only be assigned a non-empty expression`),e;case u.jsxTagStart:case l.string:return this.parseExprAtom();default:this.raise(this.start,`JSX value should be either an expression or a quoted JSX text`)}}jsx_parseEmptyExpression(){let e=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(e,`JSXEmptyExpression`,this.start,this.startLoc)}jsx_parseExpressionContainer(){let e=this.startNode();return this.next(),e.expression=this.type===l.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(l.braceR),this.finishNode(e,`JSXExpressionContainer`)}jsx_parseAttribute(){let e=this.startNode();return this.eat(l.braceL)?(this.expect(l.ellipsis),e.argument=this.parseMaybeAssign(),this.expect(l.braceR),this.finishNode(e,`JSXSpreadAttribute`)):(e.name=this.jsx_parseNamespacedName(),e.value=this.eat(l.eq)?this.jsx_parseAttributeValue():null,this.finishNode(e,`JSXAttribute`))}jsx_parseOpeningElementAt(e,t){let n=this.startNodeAt(e,t);n.attributes=[];let r=this.jsx_parseElementName();for(r&&(n.name=r);this.type!==l.slash&&this.type!==u.jsxTagEnd;)n.attributes.push(this.jsx_parseAttribute());return n.selfClosing=this.eat(l.slash),this.expect(u.jsxTagEnd),this.finishNode(n,r?`JSXOpeningElement`:`JSXOpeningFragment`)}jsx_parseClosingElementAt(e,t){let n=this.startNodeAt(e,t),r=this.jsx_parseElementName();return r&&(n.name=r),this.expect(u.jsxTagEnd),this.finishNode(n,r?`JSXClosingElement`:`JSXClosingFragment`)}jsx_parseElementAt(e,t){let n=this.startNodeAt(e,t),r=[],i=this.jsx_parseOpeningElementAt(e,t),a=null;if(!i.selfClosing){contents:for(;;)switch(this.type){case u.jsxTagStart:if(e=this.start,t=this.startLoc,this.next(),this.eat(l.slash)){a=this.jsx_parseClosingElementAt(e,t);break contents}r.push(this.jsx_parseElementAt(e,t));break;case u.jsxText:r.push(this.parseExprAtom());break;case l.braceL:r.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}s(a.name)!==s(i.name)&&this.raise(a.start,`Expected corresponding JSX closing tag for <`+s(i.name)+`>`)}let o=i.name?`Element`:`Fragment`;return n[`opening`+o]=i,n[`closing`+o]=a,n.children=r,this.type===l.relational&&this.value===`<`&&this.raise(this.start,`Adjacent JSX elements must be wrapped in an enclosing tag`),this.finishNode(n,`JSX`+o)}jsx_parseText(){let e=this.parseLiteral(this.value);return e.type=`JSXText`,e}jsx_parseElement(){let e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)}parseExprAtom(e){return this.type===u.jsxText?this.jsx_parseText():this.type===u.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let t=this.curContext();if(t===m)return this.jsx_readToken();if(t===f||t===p){if(g(e))return this.jsx_readWord();if(e==62)return++this.pos,this.finishToken(u.jsxTagEnd);if((e===34||e===39)&&t==f)return this.jsx_readString(e)}return e===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(u.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==l.braceL){var t=this.curContext();t==f?this.context.push(d.b_expr):t==m?this.context.push(d.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else if(this.type===l.slash&&e===u.jsxTagStart)this.context.length-=2,this.context.push(p),this.exprAllowed=!1;else return super.updateContext(e)}}}}}),aJ=wW({"../../../node_modules/html-tags/html-tags.json"(e,t){t.exports=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.link.main.map.mark.math.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rb.rp.rt.rtc.ruby.s.samp.script.search.section.select.slot.small.source.span.strong.style.sub.summary.sup.svg.table.tbody.td.template.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr`.split(`.`)}}),oJ=wW({"../../../node_modules/html-tags/index.js"(e,t){t.exports=aJ()}}),sJ={},TW(sJ,{argTypesEnhancers:()=>FJ,parameters:()=>PJ}),cJ=`custom`,lJ=`object`,uJ=`array`,dJ=`class`,fJ=`func`,pJ=`element`,mJ=DW(tJ(),1),hJ={format:{indent:{style:` `},semicolons:!1}},gJ={...hJ,format:{newline:``}},_J={...hJ},vJ=DW(nJ(),1),yJ=DW(iJ(),1),Q={},Q.Program=Q.BlockStatement=function(e,t,n){for(var r=0,i=e.body;r<i.length;r+=1){var a=i[r];n(a,t,`Statement`)}},Q.Statement=kK,Q.EmptyStatement=AK,Q.ExpressionStatement=Q.ParenthesizedExpression=Q.ChainExpression=function(e,t,n){return n(e.expression,t,`Expression`)},Q.IfStatement=function(e,t,n){n(e.test,t,`Expression`),n(e.consequent,t,`Statement`),e.alternate&&n(e.alternate,t,`Statement`)},Q.LabeledStatement=function(e,t,n){return n(e.body,t,`Statement`)},Q.BreakStatement=Q.ContinueStatement=AK,Q.WithStatement=function(e,t,n){n(e.object,t,`Expression`),n(e.body,t,`Statement`)},Q.SwitchStatement=function(e,t,n){n(e.discriminant,t,`Expression`);for(var r=0,i=e.cases;r<i.length;r+=1){var a=i[r];a.test&&n(a.test,t,`Expression`);for(var o=0,s=a.consequent;o<s.length;o+=1){var c=s[o];n(c,t,`Statement`)}}},Q.SwitchCase=function(e,t,n){e.test&&n(e.test,t,`Expression`);for(var r=0,i=e.consequent;r<i.length;r+=1){var a=i[r];n(a,t,`Statement`)}},Q.ReturnStatement=Q.YieldExpression=Q.AwaitExpression=function(e,t,n){e.argument&&n(e.argument,t,`Expression`)},Q.ThrowStatement=Q.SpreadElement=function(e,t,n){return n(e.argument,t,`Expression`)},Q.TryStatement=function(e,t,n){n(e.block,t,`Statement`),e.handler&&n(e.handler,t),e.finalizer&&n(e.finalizer,t,`Statement`)},Q.CatchClause=function(e,t,n){e.param&&n(e.param,t,`Pattern`),n(e.body,t,`Statement`)},Q.WhileStatement=Q.DoWhileStatement=function(e,t,n){n(e.test,t,`Expression`),n(e.body,t,`Statement`)},Q.ForStatement=function(e,t,n){e.init&&n(e.init,t,`ForInit`),e.test&&n(e.test,t,`Expression`),e.update&&n(e.update,t,`Expression`),n(e.body,t,`Statement`)},Q.ForInStatement=Q.ForOfStatement=function(e,t,n){n(e.left,t,`ForInit`),n(e.right,t,`Expression`),n(e.body,t,`Statement`)},Q.ForInit=function(e,t,n){e.type===`VariableDeclaration`?n(e,t):n(e,t,`Expression`)},Q.DebuggerStatement=AK,Q.FunctionDeclaration=function(e,t,n){return n(e,t,`Function`)},Q.VariableDeclaration=function(e,t,n){for(var r=0,i=e.declarations;r<i.length;r+=1){var a=i[r];n(a,t)}},Q.VariableDeclarator=function(e,t,n){n(e.id,t,`Pattern`),e.init&&n(e.init,t,`Expression`)},Q.Function=function(e,t,n){e.id&&n(e.id,t,`Pattern`);for(var r=0,i=e.params;r<i.length;r+=1){var a=i[r];n(a,t,`Pattern`)}n(e.body,t,e.expression?`Expression`:`Statement`)},Q.Pattern=function(e,t,n){e.type===`Identifier`?n(e,t,`VariablePattern`):e.type===`MemberExpression`?n(e,t,`MemberPattern`):n(e,t)},Q.VariablePattern=AK,Q.MemberPattern=kK,Q.RestElement=function(e,t,n){return n(e.argument,t,`Pattern`)},Q.ArrayPattern=function(e,t,n){for(var r=0,i=e.elements;r<i.length;r+=1){var a=i[r];a&&n(a,t,`Pattern`)}},Q.ObjectPattern=function(e,t,n){for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];a.type===`Property`?(a.computed&&n(a.key,t,`Expression`),n(a.value,t,`Pattern`)):a.type===`RestElement`&&n(a.argument,t,`Pattern`)}},Q.Expression=kK,Q.ThisExpression=Q.Super=Q.MetaProperty=AK,Q.ArrayExpression=function(e,t,n){for(var r=0,i=e.elements;r<i.length;r+=1){var a=i[r];a&&n(a,t,`Expression`)}},Q.ObjectExpression=function(e,t,n){for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];n(a,t)}},Q.FunctionExpression=Q.ArrowFunctionExpression=Q.FunctionDeclaration,Q.SequenceExpression=function(e,t,n){for(var r=0,i=e.expressions;r<i.length;r+=1){var a=i[r];n(a,t,`Expression`)}},Q.TemplateLiteral=function(e,t,n){for(var r=0,i=e.quasis;r<i.length;r+=1){var a=i[r];n(a,t)}for(var o=0,s=e.expressions;o<s.length;o+=1){var c=s[o];n(c,t,`Expression`)}},Q.TemplateElement=AK,Q.UnaryExpression=Q.UpdateExpression=function(e,t,n){n(e.argument,t,`Expression`)},Q.BinaryExpression=Q.LogicalExpression=function(e,t,n){n(e.left,t,`Expression`),n(e.right,t,`Expression`)},Q.AssignmentExpression=Q.AssignmentPattern=function(e,t,n){n(e.left,t,`Pattern`),n(e.right,t,`Expression`)},Q.ConditionalExpression=function(e,t,n){n(e.test,t,`Expression`),n(e.consequent,t,`Expression`),n(e.alternate,t,`Expression`)},Q.NewExpression=Q.CallExpression=function(e,t,n){if(n(e.callee,t,`Expression`),e.arguments)for(var r=0,i=e.arguments;r<i.length;r+=1){var a=i[r];n(a,t,`Expression`)}},Q.MemberExpression=function(e,t,n){n(e.object,t,`Expression`),e.computed&&n(e.property,t,`Expression`)},Q.ExportNamedDeclaration=Q.ExportDefaultDeclaration=function(e,t,n){e.declaration&&n(e.declaration,t,e.type===`ExportNamedDeclaration`||e.declaration.id?`Statement`:`Expression`),e.source&&n(e.source,t,`Expression`)},Q.ExportAllDeclaration=function(e,t,n){e.exported&&n(e.exported,t),n(e.source,t,`Expression`)},Q.ImportDeclaration=function(e,t,n){for(var r=0,i=e.specifiers;r<i.length;r+=1){var a=i[r];n(a,t)}n(e.source,t,`Expression`)},Q.ImportExpression=function(e,t,n){n(e.source,t,`Expression`)},Q.ImportSpecifier=Q.ImportDefaultSpecifier=Q.ImportNamespaceSpecifier=Q.Identifier=Q.Literal=AK,Q.TaggedTemplateExpression=function(e,t,n){n(e.tag,t,`Expression`),n(e.quasi,t,`Expression`)},Q.ClassDeclaration=Q.ClassExpression=function(e,t,n){return n(e,t,`Class`)},Q.Class=function(e,t,n){e.id&&n(e.id,t,`Pattern`),e.superClass&&n(e.superClass,t,`Expression`),n(e.body,t)},Q.ClassBody=function(e,t,n){for(var r=0,i=e.body;r<i.length;r+=1){var a=i[r];n(a,t)}},Q.MethodDefinition=Q.Property=function(e,t,n){e.computed&&n(e.key,t,`Expression`),n(e.value,t,`Expression`)},bJ={...Q,JSXElement:()=>{}},xJ=vJ.Parser.extend((0,yJ.default)()),SJ=DW(oJ(),1),CJ=_K,wJ=e=>m(JSON.stringify(e)),TJ=e=>rq(e)&&e.type!=null?aq(e):eq(e)?qK(WK(JSON.stringify(e))):Array.isArray(e)?KK(WK(JSON.stringify(e))):m(lJ),EJ=(e,t)=>{let n=!1,r;if(tq(e.render))n=!0;else if(e.prototype!=null&&tq(e.prototype.render))n=!0;else{let t;try{r=WK(e.toString());let{hasParams:i,params:a}=r.inferredType;i?a.length===1&&a[0].type===`ObjectPattern`&&(t=e({})):t=e(),t!=null&&rq(t)&&(n=!0)}catch{}}let i=iq(e,t.name);if(i!=null){if(n)return m(YK(i));r!=null&&(r=WK(e.toString()));let{hasParams:t}=r.inferredType;return m(JK(i,t))}return m(n?pJ:fJ)},DJ=e=>m(e.toString()),OJ={string:wJ,object:TJ,function:EJ,default:DJ},kJ=150,AJ=(e,{name:t,type:n})=>{let r=n?.summary===`element`||n?.summary===`elementType`,i=iq(e,t);if(i!=null){if(r)return m(YK(i));let{hasParams:t}=WK(e.toString()).inferredType;return m(JK(i,t))}return m(r?pJ:fJ)},jJ=oq({function:AJ}),MJ=e=>({rows:Lq(e,`props`)}),NJ=e=>{if(e){let{rows:t}=MJ(e);if(t)return t.reduce((e,t)=>{let{name:n,description:r,type:i,sbType:a,defaultValue:o,jsDocTags:s,required:c}=t;return e[n]={name:n,description:r,type:{required:c,...a},table:{type:i??void 0,jsDocTags:s,defaultValue:o??void 0}},e},{})}return null},PJ={docs:{extractArgTypes:NJ,extractComponentDescription:c}},FJ=[s]})),LJ=r({argTypesEnhancers:()=>FJ,parameters:()=>PJ}),RJ=n((()=>{IJ(),vK()}));function zJ(e){if((0,BJ.isValidElement)(e)){let t=Object.keys(e.props).reduce((t,n)=>(t[n]=zJ(e.props[n]),t),{});return{...e,props:t,_owner:null}}return Array.isArray(e)?e.map(zJ):e}var BJ,VJ,HJ,UJ,WJ,GJ,KJ,qJ,JJ,YJ,XJ,ZJ,QJ,$J,eY,tY,nY,rY,iY=n((()=>{_W(),vK(),OW(),BJ=e(pW(),1),yK(),VJ={},TW(VJ,{applyDecorators:()=>tY,decorators:()=>nY,parameters:()=>rY}),{logger:HJ}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{emitTransformCode:UJ,useEffect:WJ,useRef:GJ}=__STORYBOOK_MODULE_PREVIEW_API__,KJ=_K,qJ=e=>e.charAt(0).toUpperCase()+e.slice(1),JJ=e=>(e.$$typeof||e).toString().replace(/^Symbol\((.*)\)$/,`$1`).split(`.`).map(e=>e.split(`_`).map(qJ).join(``)).join(`.`),YJ=(e,t)=>{if(typeof e>`u`)return HJ.warn(`Too many skip or undefined component`),null;let n=e,r=n.type;for(let e=0;e<t?.skip;e+=1){if(typeof n>`u`)return HJ.warn(`Cannot skip undefined element`),null;if(BJ.Children.count(n)>1)return HJ.warn(`Trying to skip an array of elements`),null;typeof n.props.children>`u`?(HJ.warn(`Not enough children to skip elements.`),typeof n.type==`function`&&n.type.name===``&&(n=BJ.createElement(r,{...n.props}))):n=typeof n.props.children==`function`?n.props.children():n.props.children}let i;i=typeof t?.displayName==`string`?{showFunctions:!0,displayName:()=>t.displayName}:{displayName:e=>e.type.displayName?e.type.displayName:f(e.type,`displayName`)?f(e.type,`displayName`):e.type.render?.displayName?e.type.render.displayName:typeof e.type==`symbol`||e.type.$$typeof&&typeof e.type.$$typeof==`symbol`?JJ(e.type):e.type.name&&e.type.name!==`_default`?e.type.name:typeof e.type==`function`?`No Display Name`:DG(e.type)?e.type.render.name:EG(e.type)?e.type.type.name:e.type};let a={...i,filterProps:(e,t)=>e!==void 0,...t};return BJ.Children.map(e,e=>{let t=typeof e==`number`?e.toString():e,n=(typeof KJ==`function`?KJ:KJ.default)(zJ(t),a);if(n.indexOf(`"`)>-1){let e=n.match(/\S+=\\"([^"]*)\\"/g);e&&e.forEach(e=>{n=n.replace(e,e.replace(/"/g,`'`))})}return n}).join(`
|
||
`).replace(/function\s+noRefCheck\(\)\s*\{\}/g,`() => {}`)},XJ={skip:0,showFunctions:!1,enableBeautify:!0,showDefaultProps:!1},ZJ=e=>{let t=e?.parameters.docs?.source,n=e?.parameters.__isArgsStory;return t?.type===o.DYNAMIC?!1:!n||t?.code||t?.type===o.CODE},QJ=e=>e.type?.displayName===`MDXCreateElement`&&!!e.props?.mdxType,$J=e=>{if(!QJ(e))return e;let{mdxType:t,originalType:n,children:r,...i}=e.props,a=[];return r&&(a=(Array.isArray(r)?r:[r]).map($J)),(0,BJ.createElement)(n,i,...a)},eY=(e,t)=>{let n=GJ(void 0),r=e(),i=ZJ(t),a={...XJ,...t?.parameters.jsx||{}},o=t.originalStoryFn(t.args,t);return WJ(()=>{if(i)return;let e=YJ($J(o),a);e&&n.current!==e&&(UJ(e,t),n.current=e)}),r},tY=(e,t)=>{let n=t.findIndex(e=>e.originalFn===eY);return gW(e,n===-1?t:[...t.splice(n,1),...t])},nY=`FEATURES`in globalThis&&globalThis?.FEATURES?.experimentalCodeExamples?[]:[eY],rY={docs:{story:{inline:!0}}}})),aY=r({applyDecorators:()=>tY,decorators:()=>nY,parameters:()=>rY}),oY=n((()=>{iY(),_W(),vK()})),sY,cY,lY,uY,dY,fY,pY,mY,hY,gY,_Y,vY=n((()=>{sY=`storybook/a11y`,cY=`${sY}/panel`,`${sY}`,lY=`${sY}/result`,uY=`${sY}/request`,dY=`${sY}/running`,fY=`${sY}/error`,pY=`${sY}/manual`,mY=`${sY}/select`,hY={RESULT:lY,REQUEST:uY,RUNNING:dY,ERROR:fY,MANUAL:pY,SELECT:mY},gY={blurred:{label:`Blurred vision`,filter:`blur(2px)`,percentage:22.9},deuteranomaly:{label:`Deuteranomaly`,filter:`url("#storybook-a11y-vision-deuteranomaly")`,percentage:2.7},deuteranopia:{label:`Deuteranopia`,filter:`url("#storybook-a11y-vision-deuteranopia")`,percentage:.56},protanomaly:{label:`Protanomaly`,filter:`url("#storybook-a11y-vision-protanomaly")`,percentage:.66},protanopia:{label:`Protanopia`,filter:`url("#storybook-a11y-vision-protanopia")`,percentage:.59},tritanomaly:{label:`Tritanomaly`,filter:`url("#storybook-a11y-vision-tritanomaly")`,percentage:.01},tritanopia:{label:`Tritanopia`,filter:`url("#storybook-a11y-vision-tritanopia")`,percentage:.016},achromatopsia:{label:`Achromatopsia`,filter:`url("#storybook-a11y-vision-achromatopsia")`,percentage:1e-4},grayscale:{label:`Grayscale`,filter:`grayscale(100%)`}},_Y=`<svg id="storybook-a11y-vision-filters" style="display: none !important;">
|
||
<defs>
|
||
<filter id="storybook-a11y-vision-protanopia">
|
||
<feColorMatrix
|
||
in="SourceGraphic"
|
||
type="matrix"
|
||
values="0.567, 0.433, 0, 0, 0 0.558, 0.442, 0, 0, 0 0, 0.242, 0.758, 0, 0 0, 0, 0, 1, 0"
|
||
/>
|
||
</filter>
|
||
<filter id="storybook-a11y-vision-protanomaly">
|
||
<feColorMatrix
|
||
in="SourceGraphic"
|
||
type="matrix"
|
||
values="0.817, 0.183, 0, 0, 0 0.333, 0.667, 0, 0, 0 0, 0.125, 0.875, 0, 0 0, 0, 0, 1, 0"
|
||
/>
|
||
</filter>
|
||
<filter id="storybook-a11y-vision-deuteranopia">
|
||
<feColorMatrix
|
||
in="SourceGraphic"
|
||
type="matrix"
|
||
values="0.625, 0.375, 0, 0, 0 0.7, 0.3, 0, 0, 0 0, 0.3, 0.7, 0, 0 0, 0, 0, 1, 0"
|
||
/>
|
||
</filter>
|
||
<filter id="storybook-a11y-vision-deuteranomaly">
|
||
<feColorMatrix
|
||
in="SourceGraphic"
|
||
type="matrix"
|
||
values="0.8, 0.2, 0, 0, 0 0.258, 0.742, 0, 0, 0 0, 0.142, 0.858, 0, 0 0, 0, 0, 1, 0"
|
||
/>
|
||
</filter>
|
||
<filter id="storybook-a11y-vision-tritanopia">
|
||
<feColorMatrix
|
||
in="SourceGraphic"
|
||
type="matrix"
|
||
values="0.95, 0.05, 0, 0, 0 0, 0.433, 0.567, 0, 0 0, 0.475, 0.525, 0, 0 0, 0, 0, 1, 0"
|
||
/>
|
||
</filter>
|
||
<filter id="storybook-a11y-vision-tritanomaly">
|
||
<feColorMatrix
|
||
in="SourceGraphic"
|
||
type="matrix"
|
||
values="0.967, 0.033, 0, 0, 0 0, 0.733, 0.267, 0, 0 0, 0.183, 0.817, 0, 0 0, 0, 0, 1, 0"
|
||
/>
|
||
</filter>
|
||
<filter id="storybook-a11y-vision-achromatopsia">
|
||
<feColorMatrix
|
||
in="SourceGraphic"
|
||
type="matrix"
|
||
values="0.299, 0.587, 0.114, 0, 0 0.299, 0.587, 0.114, 0, 0 0.299, 0.587, 0.114, 0, 0 0, 0, 0, 1, 0"
|
||
/>
|
||
</filter>
|
||
</defs>
|
||
</svg>`})),yY,bY,xY=n((()=>{yY=Object.defineProperty,bY=(e,t)=>{for(var n in t)yY(e,n,{get:t[n],enumerable:!0})}}));function SY(){try{return!1}catch{return!1}}var CY,wY,TY,EY,DY,OY,kY,AY,jY,MY,NY,PY,FY,IY,LY,RY,zY,BY,VY,HY,UY,WY,GY,KY,qY,JY,YY,XY=n((()=>{vY(),xY(),g(),CY={},bY(CY,{afterEach:()=>qY,decorators:()=>KY,initialGlobals:()=>JY,parameters:()=>YY}),{expect:wY}=__STORYBOOK_MODULE_TEST__,{ElementA11yParameterError:TY}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{global:EY}=__STORYBOOK_MODULE_GLOBAL__,{addons:DY,waitForAnimations:OY}=__STORYBOOK_MODULE_PREVIEW_API__,{global:kY}=__STORYBOOK_MODULE_GLOBAL__,{document:AY}=kY,jY=(e,t)=>{let n=AY.location.pathname.replace(/iframe\.html$/,``),r={...e};return[`incomplete`,`passes`,`violations`].forEach(i=>{Array.isArray(e[i])&&(r[i]=e[i].map(e=>({...e,nodes:e.nodes.map((r,a)=>{let o=`${i}.${e.id}.${a+1}`,s=`${n}?path=/story/${t}&addonPanel=${cY}&a11ySelection=${o}`;return{id:o,...r,linkPath:s}})})))}),r},{document:MY}=EY,NY=DY.getChannel(),PY={config:{},options:{}},FY=[`region`],IY=[],LY=!1,RY=async()=>{if(IY.length===0){LY=!1;return}LY=!0;let e=IY.shift();e&&await e(),RY()},zY=async(t=PY,n)=>{let r=(await _(()=>import(`./axe-TgFz8JLl.js`).then(t=>e(t.default,1)),__vite__mapDeps([4,2]),import.meta.url))?.default||globalThis.axe,{config:i={},options:a={}}=t;if(t.element)throw new TY;let o={include:MY?.body,exclude:[`.sb-wrapper`,`#storybook-docs`,`#storybook-highlights-root`]};if(t.context){let e=typeof t.context==`object`&&`include`in t.context&&t.context.include!==void 0,n=typeof t.context==`object`&&`exclude`in t.context&&t.context.exclude!==void 0;e?o.include=t.context.include:!e&&!n&&(o.include=t.context),n&&(o.exclude=o.exclude.concat(t.context.exclude))}r.reset();let s={...i,rules:[...FY.map(e=>({id:e,enabled:!1})),...i?.rules??[]]};return r.configure(s),new Promise((e,t)=>{let i=MY?.getElementById(`storybook-highlights-root`);i&&(i.style.display=`none`),IY.push(async()=>{try{e(jY(await r.run(o,a),n))}catch(e){t(e)}}),LY||RY(),i&&(i.style.display=``)})},NY.on(hY.MANUAL,async(e,t=PY)=>{try{await OY();let n=await zY(t,e),r=JSON.parse(JSON.stringify(n));NY.emit(hY.RESULT,r,e)}catch(e){NY.emit(hY.ERROR,e)}}),{useCallback:BY,useEffect:VY}=__STORYBOOK_MODULE_PREVIEW_API__,HY=Object.values(gY).map(e=>e.filter),UY=RegExp(`\\b(${HY.join(`|`)})\\b`,`g`),WY=(e,{globals:t})=>{let{vision:n}=t,r=BY(()=>{let e=document.body.style.filter.replaceAll(UY,``).trim(),t=gY[n]?.filter;return t&&document.body.classList.contains(`sb-show-main`)?!e||e===`none`?document.body.style.filter=t:document.body.style.filter=`${e} ${t}`:document.body.style.filter=e||`none`,()=>document.body.style.filter=e||`none`},[n]);return VY(()=>{let e=r(),t=new MutationObserver(()=>r());return t.observe(document.body,{attributeFilter:[`class`]}),()=>{e(),t.disconnect()}},[r]),VY(()=>(document.body.insertAdjacentHTML(`beforeend`,_Y),()=>{let e=document.getElementById(`storybook-a11y-vision-filters`);e?.parentElement?.removeChild(e)}),[]),e()},GY=!1,KY=[WY],qY=async({id:e,reporting:t,parameters:n,globals:r,viewMode:i})=>{let a=n.a11y,o=r.a11y,s=!r.ghostStories&&a?.disable!==!0&&a?.test!==`off`&&o?.manual!==!0,c=()=>{switch(a?.test){case`todo`:return`warning`;default:return`failed`}};if(s&&i===`story`)try{let n=await zY(a,e);if(n){let e=(n?.violations.length??0)>0;if(t.addReport({type:`a11y`,version:1,result:n,status:e?c():`passed`}),SY()&&e&&c()===`failed`){if(!GY){let{toHaveNoViolations:e}=await _(async()=>{let{toHaveNoViolations:e}=await import(`./matchers-5TDFFDYO-DhLEHMH_.js`);return{toHaveNoViolations:e}},__vite__mapDeps([5,2]),import.meta.url);wY.extend({toHaveNoViolations:e}),GY=!0}wY(n).toHaveNoViolations()}}}catch(e){if(t.addReport({type:`a11y`,version:1,result:{error:e},status:`failed`}),SY())throw e}},JY={a11y:{manual:!1},vision:void 0},YY={a11y:{test:`todo`}}})),ZY=r({afterEach:()=>qY,decorators:()=>KY,initialGlobals:()=>JY,parameters:()=>YY}),QY=n((()=>{XY(),vY()})),$Y,eX,tX,nX,rX,iX,aX,oX,sX,cX,lX=n((()=>{$Y=Object.create,eX=Object.defineProperty,tX=Object.getOwnPropertyDescriptor,nX=Object.getOwnPropertyNames,rX=Object.getPrototypeOf,iX=Object.prototype.hasOwnProperty,aX=(e,t)=>function(){return t||(0,e[nX(e)[0]])((t={exports:{}}).exports,t),t.exports},oX=(e,t)=>{for(var n in t)eX(e,n,{get:t[n],enumerable:!0})},sX=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of nX(t))!iX.call(e,i)&&i!==n&&eX(e,i,{get:()=>t[i],enumerable:!(r=tX(t,i))||r.enumerable});return e},cX=(e,t,n)=>(n=e==null?{}:$Y(rX(e)),sX(t||!e||!e.__esModule?eX(n,`default`,{value:e,enumerable:!0}):n,e))})),uX,dX,fX,pX=n((()=>{lX(),g(),uX={},oX(uX,{parameters:()=>fX}),dX=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((e,t)=>{let[n,r]=t;return r.excludeFromDocsStories&&(e[n]=!0),e},{}),fX={docs:{renderer:async()=>{let{DocsRenderer:e}=await _(async()=>{let{DocsRenderer:e}=await import(`./DocsRenderer-LL677BLK-BYDUOrCP.js`);return{DocsRenderer:e}},__vite__mapDeps([6,2,7,8,9,3,10,11,12,13,14,1]),import.meta.url);return new e},stories:{filter:e=>(e.tags||[]).filter(e=>dX[e]).length===0&&!e.parameters.docs?.disable}}}})),mX=r({parameters:()=>fX}),hX=n((()=>{pX()}));function gX(e){return Object.keys(e)}var _X=n((()=>{}));function vX(e){return e&&typeof e==`object`&&!Array.isArray(e)}function yX(e,t){let n={...e},r=t;return vX(e)&&vX(t)&&Object.keys(t).forEach(t=>{vX(r[t])&&t in e?n[t]=yX(n[t],r[t]):n[t]=r[t]}),n}var bX=n((()=>{}));function xX(e){return typeof e!=`string`||!e.includes(`var(--mantine-scale)`)?e:e.match(/^calc\((.*?)\)$/)?.[1].split(`*`)[0].trim()}function SX(e){let t=xX(e);return typeof t==`number`?t:typeof t==`string`?t.includes(`calc`)||t.includes(`var`)?t:t.includes(`px`)?Number(t.replace(`px`,``)):t.includes(`rem`)?Number(t.replace(`rem`,``))*16:t.includes(`em`)?Number(t.replace(`em`,``))*16:Number(t):NaN}var CX=n((()=>{}));function wX(e){return e===`0rem`?`0rem`:`calc(${e} * var(--mantine-scale))`}function TX(e,{shouldScale:t=!1}={}){function n(r){if(r===0||r===`0`)return`0${e}`;if(typeof r==`number`){let n=`${r/16}${e}`;return t?wX(n):n}if(typeof r==`string`){if(r===``||r.startsWith(`calc(`)||r.startsWith(`clamp(`)||r.includes(`rgba(`))return r;if(r.includes(`,`))return r.split(`,`).map(e=>n(e)).join(`,`);if(r.includes(` `))return r.split(` `).map(e=>n(e)).join(` `);let i=r.replace(`px`,``);if(!Number.isNaN(Number(i))){let n=`${Number(i)/16}${e}`;return t?wX(n):n}}return r}return n}var $,EX,DX=n((()=>{$=TX(`rem`,{shouldScale:!0}),EX=TX(`em`)})),OX=i((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),kX=i(((e,t)=>{t.exports=OX()})),AX,jX,MX=n((()=>{AX=e(pW(),1),jX=typeof document<`u`?AX.useLayoutEffect:AX.useEffect})),NX=n((()=>{MX()}));function PX(){let e=(0,LX.useContext)(RX);if(!e)throw Error(`[@mantine/core] MantineProvider was not found in tree`);return e}function FX(){return PX().cssVariablesResolver}function IX(){return PX().getStyleNonce}var LX,RX,zX=n((()=>{LX=e(pW(),1),RX=(0,LX.createContext)(null)}));function BX(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function VX(e){let t=e.replace(`#`,``);if(t.length===3){let e=t.split(``);t=[e[0],e[0],e[1],e[1],e[2],e[2]].join(``)}if(t.length===8){let e=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:e}}let n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255,a:1}}function HX(e){let[t,n,r,i]=e.replace(/[^0-9,./]/g,``).split(/[/,]/).map(Number);return{r:t,g:n,b:r,a:i===void 0?1:i}}function UX(e){let t=e.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!t)return{r:0,g:0,b:0,a:1};let n=parseInt(t[1],10),r=parseInt(t[2],10)/100,i=parseInt(t[3],10)/100,a=t[5]?parseFloat(t[5]):void 0,o=(1-Math.abs(2*i-1))*r,s=n/60,c=o*(1-Math.abs(s%2-1)),l=i-o/2,u,d,f;return s>=0&&s<1?(u=o,d=c,f=0):s>=1&&s<2?(u=c,d=o,f=0):s>=2&&s<3?(u=0,d=o,f=c):s>=3&&s<4?(u=0,d=c,f=o):s>=4&&s<5?(u=c,d=0,f=o):(u=o,d=0,f=c),{r:Math.round((u+l)*255),g:Math.round((d+l)*255),b:Math.round((f+l)*255),a:a||1}}function WX(e){return BX(e)?VX(e):e.startsWith(`rgb`)?HX(e):e.startsWith(`hsl`)?UX(e):{r:0,g:0,b:0,a:1}}var GX=n((()=>{}));function KX(e,t){if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, black ${t*100}%)`;let{r:n,g:r,b:i,a}=WX(e),o=1-t,s=e=>Math.round(e*o);return`rgba(${s(n)}, ${s(r)}, ${s(i)}, ${a})`}var qX=n((()=>{GX()}));function JX(e,t){return typeof e.primaryShade==`number`?e.primaryShade:t===`dark`?e.primaryShade.dark:e.primaryShade.light}var YX=n((()=>{}));function XX(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function ZX(e){let t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function QX(e){if(e.startsWith(`oklch(`))return(ZX(e)||0)/100;let{r:t,g:n,b:r}=WX(e),i=t/255,a=n/255,o=r/255,s=XX(i),c=XX(a),l=XX(o);return .2126*s+.7152*c+.0722*l}function $X(e,t=.179){return e.startsWith(`var(`)?!1:QX(e)>t}var eZ=n((()=>{GX()}));function tZ({color:e,theme:t,colorScheme:n}){if(typeof e!=`string`)throw Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e===`bright`)return{color:e,value:n===`dark`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:$X(n===`dark`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-bright`};if(e===`dimmed`)return{color:e,value:n===`dark`?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:$X(n===`dark`?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:`--mantine-color-dimmed`};if(e===`white`||e===`black`)return{color:e,value:e===`white`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:$X(e===`white`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};let[r,i]=e.split(`.`),a=i?Number(i):void 0,o=r in t.colors;if(o){let e=a===void 0?t.colors[r][JX(t,n||`light`)]:t.colors[r][a];return{color:r,value:e,shade:a,isThemeColor:o,isLight:$X(e,t.luminanceThreshold),variable:i?`--mantine-color-${r}-${a}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:o,isLight:$X(e,t.luminanceThreshold),shade:a,variable:void 0}}var nZ=n((()=>{YX(),eZ()}));function rZ(e,t){let n=tZ({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}var iZ=n((()=>{nZ()}));function aZ(e,t){let n={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg??t.defaultGradient.deg??0},r=rZ(n.from,t),i=rZ(n.to,t);return`linear-gradient(${n.deg}deg, ${r} 0%, ${i} 100%)`}var oZ=n((()=>{iZ()}));function sZ(e,t){if(typeof e!=`string`||t>1||t<0)return`rgba(0, 0, 0, 1)`;if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, transparent ${(1-t)*100}%)`;if(e.startsWith(`oklch`))return e.includes(`/`)?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(`)`,` / ${t})`);let{r:n,g:r,b:i}=WX(e);return`rgba(${n}, ${r}, ${i}, ${t})`}var cZ,lZ=n((()=>{GX(),cZ=sZ})),uZ,dZ=n((()=>{DX(),e(pW(),1),kX(),qX(),oZ(),nZ(),lZ(),uZ=({color:e,theme:t,variant:n,gradient:r,autoContrast:i})=>{let a=tZ({color:e,theme:t}),o=typeof i==`boolean`?i:t.autoContrast;if(n===`none`)return{background:`transparent`,hover:`transparent`,color:`inherit`,border:`none`};if(n===`filled`){let t=o&&a.isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`;return a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:t,border:`${$(1)} solid transparent`}:{background:`var(--mantine-color-${a.color}-${a.shade})`,hover:`var(--mantine-color-${a.color}-${a.shade===9?8:a.shade+1})`,color:t,border:`${$(1)} solid transparent`}:{background:e,hover:KX(e,.1),color:t,border:`${$(1)} solid transparent`}}if(n===`light`){if(a.isThemeColor){if(a.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${$(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:sZ(n,.1),hover:sZ(n,.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${$(1)} solid transparent`}}return{background:sZ(e,.1),hover:sZ(e,.12),color:e,border:`${$(1)} solid transparent`}}if(n===`outline`)return a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${$(1)} solid var(--mantine-color-${e}-outline)`}:{background:`transparent`,hover:sZ(t.colors[a.color][a.shade],.05),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${$(1)} solid var(--mantine-color-${a.color}-${a.shade})`}:{background:`transparent`,hover:sZ(e,.05),color:e,border:`${$(1)} solid ${e}`};if(n===`subtle`){if(a.isThemeColor){if(a.shade===void 0)return{background:`transparent`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${$(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:`transparent`,hover:sZ(n,.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${$(1)} solid transparent`}}return{background:`transparent`,hover:sZ(e,.12),color:e,border:`${$(1)} solid transparent`}}return n===`transparent`?a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${e}-light-color)`,border:`${$(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${$(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:e,border:`${$(1)} solid transparent`}:n===`white`?a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-white)`,hover:KX(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${$(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:KX(t.white,.01),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${$(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:KX(t.white,.01),color:e,border:`${$(1)} solid transparent`}:n===`gradient`?{background:aZ(r,t),hover:aZ(r,t),color:`var(--mantine-color-white)`,border:`none`}:n===`default`?{background:`var(--mantine-color-default)`,hover:`var(--mantine-color-default-hover)`,color:`var(--mantine-color-default-color)`,border:`${$(1)} solid var(--mantine-color-default-border)`}:{}}})),fZ,pZ=n((()=>{fZ={dark:[`#C9C9C9`,`#b8b8b8`,`#828282`,`#696969`,`#424242`,`#3b3b3b`,`#2e2e2e`,`#242424`,`#1f1f1f`,`#141414`],gray:[`#f8f9fa`,`#f1f3f5`,`#e9ecef`,`#dee2e6`,`#ced4da`,`#adb5bd`,`#868e96`,`#495057`,`#343a40`,`#212529`],red:[`#fff5f5`,`#ffe3e3`,`#ffc9c9`,`#ffa8a8`,`#ff8787`,`#ff6b6b`,`#fa5252`,`#f03e3e`,`#e03131`,`#c92a2a`],pink:[`#fff0f6`,`#ffdeeb`,`#fcc2d7`,`#faa2c1`,`#f783ac`,`#f06595`,`#e64980`,`#d6336c`,`#c2255c`,`#a61e4d`],grape:[`#f8f0fc`,`#f3d9fa`,`#eebefa`,`#e599f7`,`#da77f2`,`#cc5de8`,`#be4bdb`,`#ae3ec9`,`#9c36b5`,`#862e9c`],violet:[`#f3f0ff`,`#e5dbff`,`#d0bfff`,`#b197fc`,`#9775fa`,`#845ef7`,`#7950f2`,`#7048e8`,`#6741d9`,`#5f3dc4`],indigo:[`#edf2ff`,`#dbe4ff`,`#bac8ff`,`#91a7ff`,`#748ffc`,`#5c7cfa`,`#4c6ef5`,`#4263eb`,`#3b5bdb`,`#364fc7`],blue:[`#e7f5ff`,`#d0ebff`,`#a5d8ff`,`#74c0fc`,`#4dabf7`,`#339af0`,`#228be6`,`#1c7ed6`,`#1971c2`,`#1864ab`],cyan:[`#e3fafc`,`#c5f6fa`,`#99e9f2`,`#66d9e8`,`#3bc9db`,`#22b8cf`,`#15aabf`,`#1098ad`,`#0c8599`,`#0b7285`],teal:[`#e6fcf5`,`#c3fae8`,`#96f2d7`,`#63e6be`,`#38d9a9`,`#20c997`,`#12b886`,`#0ca678`,`#099268`,`#087f5b`],green:[`#ebfbee`,`#d3f9d8`,`#b2f2bb`,`#8ce99a`,`#69db7c`,`#51cf66`,`#40c057`,`#37b24d`,`#2f9e44`,`#2b8a3e`],lime:[`#f4fce3`,`#e9fac8`,`#d8f5a2`,`#c0eb75`,`#a9e34b`,`#94d82d`,`#82c91e`,`#74b816`,`#66a80f`,`#5c940d`],yellow:[`#fff9db`,`#fff3bf`,`#ffec99`,`#ffe066`,`#ffd43b`,`#fcc419`,`#fab005`,`#f59f00`,`#f08c00`,`#e67700`],orange:[`#fff4e6`,`#ffe8cc`,`#ffd8a8`,`#ffc078`,`#ffa94d`,`#ff922b`,`#fd7e14`,`#f76707`,`#e8590c`,`#d9480f`]}})),mZ,hZ,gZ=n((()=>{DX(),e(pW(),1),kX(),dZ(),pZ(),mZ=`-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji`,hZ={scale:1,fontSmoothing:!0,focusRing:`auto`,white:`#fff`,black:`#000`,colors:fZ,primaryShade:{light:6,dark:8},primaryColor:`blue`,variantColorResolver:uZ,autoContrast:!1,luminanceThreshold:.3,fontFamily:mZ,fontFamilyMonospace:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace`,respectReducedMotion:!1,cursorType:`default`,defaultGradient:{from:`blue`,to:`cyan`,deg:45},defaultRadius:`sm`,activeClassName:`mantine-active`,focusClassName:``,headings:{fontFamily:mZ,fontWeight:`700`,textWrap:`wrap`,sizes:{h1:{fontSize:$(34),lineHeight:`1.3`},h2:{fontSize:$(26),lineHeight:`1.35`},h3:{fontSize:$(22),lineHeight:`1.4`},h4:{fontSize:$(18),lineHeight:`1.45`},h5:{fontSize:$(16),lineHeight:`1.5`},h6:{fontSize:$(14),lineHeight:`1.5`}}},fontSizes:{xs:$(12),sm:$(14),md:$(16),lg:$(18),xl:$(20)},lineHeights:{xs:`1.4`,sm:`1.45`,md:`1.55`,lg:`1.6`,xl:`1.65`},radius:{xs:$(2),sm:$(4),md:$(8),lg:$(16),xl:$(32)},spacing:{xs:$(10),sm:$(12),md:$(16),lg:$(20),xl:$(32)},breakpoints:{xs:`36em`,sm:`48em`,md:`62em`,lg:`75em`,xl:`88em`},shadows:{xs:`0 ${$(1)} ${$(3)} rgba(0, 0, 0, 0.05), 0 ${$(1)} ${$(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${$(1)} ${$(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${$(10)} ${$(15)} ${$(-5)}, rgba(0, 0, 0, 0.04) 0 ${$(7)} ${$(7)} ${$(-5)}`,md:`0 ${$(1)} ${$(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${$(20)} ${$(25)} ${$(-5)}, rgba(0, 0, 0, 0.04) 0 ${$(10)} ${$(10)} ${$(-5)}`,lg:`0 ${$(1)} ${$(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${$(28)} ${$(23)} ${$(-7)}, rgba(0, 0, 0, 0.04) 0 ${$(12)} ${$(12)} ${$(-7)}`,xl:`0 ${$(1)} ${$(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${$(36)} ${$(28)} ${$(-7)}, rgba(0, 0, 0, 0.04) 0 ${$(17)} ${$(17)} ${$(-7)}`},other:{},components:{}}}));function _Z(e){return e===`auto`||e===`dark`||e===`light`}var vZ=n((()=>{}));function yZ({key:e=`mantine-color-scheme-value`}={}){let t;return{get:t=>{if(typeof window>`u`)return t;try{let n=window.localStorage.getItem(e);return _Z(n)?n:t}catch{return t}},set:t=>{try{window.localStorage.setItem(e,t)}catch(e){console.warn(`[@mantine/core] Local storage color scheme manager was unable to save color scheme.`,e)}},subscribe:n=>{t=t=>{t.storageArea===window.localStorage&&t.key===e&&_Z(t.newValue)&&n(t.newValue)},window.addEventListener(`storage`,t)},unsubscribe:()=>{window.removeEventListener(`storage`,t)},clear:()=>{window.localStorage.removeItem(e)}}}var bZ=n((()=>{vZ()}));function xZ(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function SZ(e){if(!(e.primaryColor in e.colors))throw Error(wZ);if(typeof e.primaryShade==`object`&&(!xZ(e.primaryShade.dark)||!xZ(e.primaryShade.light))||typeof e.primaryShade==`number`&&!xZ(e.primaryShade))throw Error(TZ)}function CZ(e,t){if(!t)return SZ(e),e;let n=yX(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(n.headings.fontFamily=t.fontFamily),SZ(n),n}var wZ,TZ,EZ=n((()=>{bX(),e(pW(),1),kX(),wZ=`[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color`,TZ=`[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }`}));function DZ(){let e=(0,AZ.useContext)(jZ);if(!e)throw Error(`@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app`);return e}function OZ({theme:e,children:t,inherit:n=!0}){let r=MZ(),i=(0,AZ.useMemo)(()=>CZ(n?r:hZ,e),[e,r,n]);return(0,kZ.jsx)(jZ.Provider,{value:i,children:t})}var kZ,AZ,jZ,MZ,NZ=n((()=>{kZ=kX(),AZ=e(pW(),1),gZ(),EZ(),jZ=(0,AZ.createContext)(null),MZ=()=>(0,AZ.useContext)(jZ)||hZ,OZ.displayName=`@mantine/core/MantineThemeProvider`}));function PZ(){let e=DZ(),t=IX(),n=gX(e.breakpoints).reduce((t,n)=>{let r=e.breakpoints[n].includes(`px`),i=SX(e.breakpoints[n]);return`${t}@media (max-width: ${r?`${i-.1}px`:EX(i-.1)}) {.mantine-visible-from-${n} {display: none !important;}}@media (min-width: ${r?`${i}px`:EX(i)}) {.mantine-hidden-from-${n} {display: none !important;}}`},``);return(0,FZ.jsx)(`style`,{"data-mantine-styles":`classes`,nonce:t?.(),dangerouslySetInnerHTML:{__html:n}})}var FZ,IZ=n((()=>{FZ=kX(),_X(),CX(),DX(),e(pW(),1),zX(),NZ()}));function LZ(e){return Object.entries(e).map(([e,t])=>`${e}: ${t};`).join(``)}var RZ=n((()=>{}));function zZ(e,t){let n=t?[t]:[`:root`,`:host`],r=LZ(e.variables),i=r?`${n.join(`, `)}{${r}}`:``,a=LZ(e.dark),o=LZ(e.light),s=e=>n.map(t=>t===`:host`?`${t}([data-mantine-color-scheme="${e}"])`:`${t}[data-mantine-color-scheme="${e}"]`).join(`, `);return`${i}
|
||
|
||
${a?`${s(`dark`)}{${a}}`:``}
|
||
|
||
${o?`${s(`light`)}{${o}}`:``}`}var BZ=n((()=>{RZ()}));function VZ({color:e,theme:t,autoContrast:n}){return(typeof n==`boolean`?n:t.autoContrast)&&tZ({color:e||t.primaryColor,theme:t}).isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`}function HZ(e,t){return VZ({color:e.colors[e.primaryColor][JX(e,t)],theme:e,autoContrast:null})}var UZ=n((()=>{YX(),nZ()}));function WZ({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:i=!0}){if(!e.colors[t])return{};if(n===`light`){let n=JX(e,`light`),a={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${n===9?8:n+1})`,[`--mantine-color-${r}-light`]:cZ(e.colors[t][n],.1),[`--mantine-color-${r}-light-hover`]:cZ(e.colors[t][n],.12),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-outline-hover`]:cZ(e.colors[t][n],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...a}:a}let a=JX(e,`dark`),o={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${a===9?8:a+1})`,[`--mantine-color-${r}-light`]:cZ(e.colors[t][Math.max(0,a-2)],.15),[`--mantine-color-${r}-light-hover`]:cZ(e.colors[t][Math.max(0,a-2)],.2),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${Math.max(a-5,0)})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(a-4,0)})`,[`--mantine-color-${r}-outline-hover`]:cZ(e.colors[t][Math.max(a-4,0)],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...o}:o}var GZ=n((()=>{YX(),e(pW(),1),kX(),lZ()}));function KZ(e){return!!e&&typeof e==`object`&&`mantine-virtual-color`in e}var qZ=n((()=>{e(pW(),1),kX()}));function JZ(e,t,n){gX(t).forEach(r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]}))}var YZ,XZ=n((()=>{_X(),DX(),e(pW(),1),kX(),YX(),UZ(),GZ(),qZ(),YZ=e=>{let t=JX(e,`light`),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:$(e.defaultRadius),r={variables:{"--mantine-z-index-app":`100`,"--mantine-z-index-modal":`200`,"--mantine-z-index-popover":`300`,"--mantine-z-index-overlay":`400`,"--mantine-z-index-max":`9999`,"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?`antialiased`:`unset`,"--mantine-moz-font-smoothing":e.fontSmoothing?`grayscale`:`unset`,"--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":`light`,"--mantine-primary-color-contrast":HZ(e,`light`),"--mantine-color-bright":`var(--mantine-color-black)`,"--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":`var(--mantine-color-red-6)`,"--mantine-color-placeholder":`var(--mantine-color-gray-5)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":`var(--mantine-color-white)`,"--mantine-color-default-hover":`var(--mantine-color-gray-0)`,"--mantine-color-default-color":`var(--mantine-color-black)`,"--mantine-color-default-border":`var(--mantine-color-gray-4)`,"--mantine-color-dimmed":`var(--mantine-color-gray-6)`,"--mantine-color-disabled":`var(--mantine-color-gray-2)`,"--mantine-color-disabled-color":`var(--mantine-color-gray-5)`,"--mantine-color-disabled-border":`var(--mantine-color-gray-3)`},dark:{"--mantine-color-scheme":`dark`,"--mantine-primary-color-contrast":HZ(e,`dark`),"--mantine-color-bright":`var(--mantine-color-white)`,"--mantine-color-text":`var(--mantine-color-dark-0)`,"--mantine-color-body":`var(--mantine-color-dark-7)`,"--mantine-color-error":`var(--mantine-color-red-8)`,"--mantine-color-placeholder":`var(--mantine-color-dark-3)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":`var(--mantine-color-dark-6)`,"--mantine-color-default-hover":`var(--mantine-color-dark-5)`,"--mantine-color-default-color":`var(--mantine-color-white)`,"--mantine-color-default-border":`var(--mantine-color-dark-4)`,"--mantine-color-dimmed":`var(--mantine-color-dark-2)`,"--mantine-color-disabled":`var(--mantine-color-dark-6)`,"--mantine-color-disabled-color":`var(--mantine-color-dark-3)`,"--mantine-color-disabled-border":`var(--mantine-color-dark-4)`}};JZ(r.variables,e.breakpoints,`breakpoint`),JZ(r.variables,e.spacing,`spacing`),JZ(r.variables,e.fontSizes,`font-size`),JZ(r.variables,e.lineHeights,`line-height`),JZ(r.variables,e.shadows,`shadow`),JZ(r.variables,e.radius,`radius`),e.colors[e.primaryColor].forEach((t,n)=>{r.variables[`--mantine-primary-color-${n}`]=`var(--mantine-color-${e.primaryColor}-${n})`}),gX(e.colors).forEach(t=>{let n=e.colors[t];if(KZ(n)){Object.assign(r.light,WZ({theme:e,name:n.name,color:n.light,colorScheme:`light`,withColorValues:!0})),Object.assign(r.dark,WZ({theme:e,name:n.name,color:n.dark,colorScheme:`dark`,withColorValues:!0}));return}n.forEach((e,n)=>{r.variables[`--mantine-color-${t}-${n}`]=e}),Object.assign(r.light,WZ({theme:e,color:t,colorScheme:`light`,withColorValues:!1})),Object.assign(r.dark,WZ({theme:e,color:t,colorScheme:`dark`,withColorValues:!1}))});let i=e.headings.sizes;return gX(i).forEach(t=>{r.variables[`--mantine-${t}-font-size`]=i[t].fontSize,r.variables[`--mantine-${t}-line-height`]=i[t].lineHeight,r.variables[`--mantine-${t}-font-weight`]=i[t].fontWeight||e.headings.fontWeight}),r}}));function ZZ({theme:e,generator:t}){let n=YZ(e),r=t?.(e);return r?yX(n,r):n}var QZ=n((()=>{bX(),e(pW(),1),kX(),XZ()}));function $Z(e){let t={variables:{},light:{},dark:{}};return gX(e.variables).forEach(n=>{eQ.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),gX(e.light).forEach(n=>{eQ.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}),gX(e.dark).forEach(n=>{eQ.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}var eQ,tQ=n((()=>{_X(),e(pW(),1),kX(),gZ(),XZ(),eQ=YZ(hZ)}));function nQ(e){return zZ({variables:{},dark:{"--mantine-color-scheme":`dark`},light:{"--mantine-color-scheme":`light`}},e)}function rQ({cssVariablesSelector:e,deduplicateCssVariables:t}){let n=DZ(),r=IX(),i=ZZ({theme:n,generator:FX()}),a=(e===void 0||e===`:root`||e===`:host`)&&t,o=zZ(a?$Z(i):i,e);return o?(0,iQ.jsx)(`style`,{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${o}${a?``:nQ(e)}`}}):null}var iQ,aQ=n((()=>{iQ=kX(),BZ(),zX(),NZ(),QZ(),tQ(),rQ.displayName=`@mantine/CssVariables`}));function oQ(e,t){let n=typeof window<`u`&&`matchMedia`in window&&window.matchMedia(`(prefers-color-scheme: dark)`)?.matches,r=e===`auto`?n?`dark`:`light`:e;t()?.setAttribute(`data-mantine-color-scheme`,r)}function sQ({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:r}){let i=(0,cQ.useRef)(null),[a,o]=(0,cQ.useState)(()=>e.get(t)),s=r||a,c=(0,cQ.useCallback)(t=>{r||(oQ(t,n),o(t),e.set(t))},[e.set,s,r]),l=(0,cQ.useCallback)(()=>{o(t),oQ(t,n),e.clear()},[e.clear,t]);return(0,cQ.useEffect)(()=>(e.subscribe(c),e.unsubscribe),[e.subscribe,e.unsubscribe]),jX(()=>{oQ(e.get(t),n)},[]),(0,cQ.useEffect)(()=>{if(r)return oQ(r,n),()=>{};r===void 0&&oQ(a,n),typeof window<`u`&&`matchMedia`in window&&(i.current=window.matchMedia(`(prefers-color-scheme: dark)`));let e=e=>{a===`auto`&&oQ(e.matches?`dark`:`light`,n)};return i.current?.addEventListener(`change`,e),()=>i.current?.removeEventListener(`change`,e)},[a,r]),{colorScheme:s,setColorScheme:c,clearColorScheme:l}}var cQ,lQ=n((()=>{cQ=e(pW(),1),NX()}));function uQ({respectReducedMotion:e,getRootElement:t}){jX(()=>{e&&t()?.setAttribute(`data-respect-reduced-motion`,`true`)},[e])}var dQ=n((()=>{NX()}));function fQ({theme:e,children:t,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:i=!0,deduplicateCssVariables:a=!0,withCssVariables:o=!0,cssVariablesSelector:s,classNamesPrefix:c=`mantine`,colorSchemeManager:l=yZ(),defaultColorScheme:u=`light`,getRootElement:d=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:p,stylesTransform:m,env:h}){let{colorScheme:g,setColorScheme:_,clearColorScheme:v}=sQ({defaultColorScheme:u,forceColorScheme:p,manager:l,getRootElement:d});return uQ({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:d}),(0,mQ.jsx)(RX.Provider,{value:{colorScheme:g,setColorScheme:_,clearColorScheme:v,getRootElement:d,classNamesPrefix:c,getStyleNonce:n,cssVariablesResolver:f,cssVariablesSelector:s??`:root`,withStaticClasses:r,stylesTransform:m,env:h},children:(0,mQ.jsxs)(OZ,{theme:e,children:[o&&(0,mQ.jsx)(rQ,{cssVariablesSelector:s,deduplicateCssVariables:a}),i&&(0,mQ.jsx)(PZ,{}),t]})})}function pQ({children:e,theme:t,env:n}){return(0,mQ.jsx)(RX.Provider,{value:{colorScheme:`auto`,setColorScheme:()=>{},clearColorScheme:()=>{},getRootElement:()=>document.documentElement,classNamesPrefix:`mantine`,cssVariablesSelector:`:root`,withStaticClasses:!1,headless:!0,env:n},children:(0,mQ.jsx)(OZ,{theme:t,children:e})})}var mQ,hQ=n((()=>{mQ=kX(),bZ(),zX(),IZ(),aQ(),e(pW(),1),NZ(),lQ(),dQ(),fQ.displayName=`@mantine/core/MantineProvider`,pQ.displayName=`@mantine/core/HeadlessMantineProvider`})),gQ=n((()=>{hQ()})),_Q=n((()=>{})),vQ=n((()=>{})),yQ=r({default:()=>xQ}),bQ,xQ,SQ=n((()=>{gQ(),_Q(),vQ(),bQ=kX(),xQ={decorators:[e=>(0,bQ.jsx)(fQ,{children:(0,bQ.jsx)(e,{})})],parameters:{controls:{matchers:{color:/(background|color)$/i,date:/Date$/i}},a11y:{test:`todo`}}}})),CQ,wQ,TQ,EQ=n((()=>{iW(),cW(),dW(),nG(),RJ(),oY(),QY(),hX(),SQ(),Hv(),{composeConfigs:CQ,PreviewWeb:wQ}=__STORYBOOK_MODULE_PREVIEW_API__,TQ=(e=[])=>CQ([e[0]??tG,e[1]??LJ,e[2]??aY,e[3]??ZY,e[4]??mX,e[5]??yQ]),window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new wQ(lW,TQ),window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore}));n((()=>{v(),y(),EQ()}))();export{yK as a,lX as i,aX as n,pW as o,cX as r,kX as t}; |