@brightspot/ui 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/custom-elements.json +144 -144
  2. package/dist/storybook/assets/{Avatar.stories-DrhezTR1.js → Avatar.stories-QxWs-YfX.js} +1 -1
  3. package/dist/storybook/assets/{AvatarGroup.stories-DrlxT-mF.js → AvatarGroup.stories-Cy_Bvn7E.js} +1 -1
  4. package/dist/storybook/assets/{Badge.stories-DtJcBfOR.js → Badge.stories-BpaApWbR.js} +1 -1
  5. package/dist/storybook/assets/{Button.stories-BKUfLgSY.js → Button.stories-C5h2usmd.js} +1 -1
  6. package/dist/storybook/assets/{CircularProgress.stories-dpmD-XJT.js → CircularProgress.stories-DlPOiGja.js} +1 -1
  7. package/dist/storybook/assets/{ClipboardMixin.stories-C0pnQ7BY.js → ClipboardMixin.stories-Bb45-UOM.js} +1 -1
  8. package/dist/storybook/assets/Color-6BZIO3FS-CcgGYVAo.js +1 -0
  9. package/dist/storybook/assets/{Colors.stories-bKK25qgF.js → Colors.stories-DP2JKWUJ.js} +1 -1
  10. package/dist/storybook/assets/{ComponentStatesMixin-C2HZ9ZFb.js → ComponentStatesMixin-B7ci0thi.js} +1 -1
  11. package/dist/storybook/assets/{ComponentStatesMixin.stories-9mRp2zuB.js → ComponentStatesMixin.stories-CyQ2aSTu.js} +1 -1
  12. package/dist/storybook/assets/{CopyToClipboard.stories-BW3oaT1i.js → CopyToClipboard.stories-DR7pckeV.js} +1 -1
  13. package/dist/storybook/assets/{Debounce.stories-BXx3CKvQ.js → Debounce.stories-hkqyvqmg.js} +3 -3
  14. package/dist/storybook/assets/DocsRenderer-LL677BLK-Dtw9GMer.js +758 -0
  15. package/dist/storybook/assets/{Events.stories-PBeiuWQn.js → Events.stories-BAgDzdyl.js} +1 -1
  16. package/dist/storybook/assets/{Heading.stories-Djkl0MoC.js → Heading.stories-CN_fPsRf.js} +1 -1
  17. package/dist/storybook/assets/{Icon.stories-Cam1fyud.js → Icon.stories-CSx_2K8V.js} +1 -1
  18. package/dist/storybook/assets/{LinearProgress.stories-BDNoYIJu.js → LinearProgress.stories-In48DY2g.js} +1 -1
  19. package/dist/storybook/assets/{Rtc.stories-BrTAIAi1.js → Rtc.stories-19d7WXe4.js} +3 -3
  20. package/dist/storybook/assets/{ScrollShadow.stories-DHcKhkag.js → ScrollShadow.stories-BFjracVd.js} +1 -1
  21. package/dist/storybook/assets/{Throttle.stories-cSYT_BXu.js → Throttle.stories-DD6ydiVq.js} +8 -8
  22. package/dist/storybook/assets/WithTooltip-65CFNBJE-Be1dKqOF.js +9 -0
  23. package/dist/storybook/assets/formatter-EIJCOSYU-anC2P5HS.js +1 -0
  24. package/dist/storybook/assets/{iframe-BMxUFmpF.css → iframe-B4njXYq6.css} +1 -1
  25. package/dist/storybook/assets/iframe-Bl9oHz5c.js +1061 -0
  26. package/dist/storybook/assets/index-Cn5E5A3G.js +1 -0
  27. package/dist/storybook/assets/onFind-DqriYjEB.js +1 -0
  28. package/dist/storybook/assets/onFind.stories-BMDLUk0l.js +1069 -0
  29. package/dist/storybook/assets/{onRemove.stories-C7W9KyRr.js → onRemove.stories-C3FcxtYh.js} +3 -3
  30. package/dist/storybook/assets/{onVisible.stories-CIl6R0q4.js → onVisible.stories-B8Zyu0Th.js} +10 -10
  31. package/dist/storybook/assets/syntaxhighlighter-ED5Y7EFY-BfTKsIVL.js +6 -0
  32. package/dist/storybook/iframe.html +57 -39
  33. package/dist/storybook/index.html +11 -4
  34. package/dist/storybook/index.json +1 -1
  35. package/dist/storybook/project.json +1 -1
  36. package/dist/storybook/sb-addons/docs-1/manager-bundle.js +1 -1
  37. package/dist/storybook/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +112 -290
  38. package/dist/storybook/sb-addons/vitest-2/manager-bundle.js +3 -0
  39. package/dist/storybook/sb-manager/globals-runtime.js +60754 -66346
  40. package/dist/storybook/sb-manager/globals.js +2 -3
  41. package/dist/storybook/sb-manager/manager-stores.js +23 -0
  42. package/dist/storybook/sb-manager/runtime.js +12983 -11699
  43. package/dist/storybook/vite-inject-mocker-entry.js +2 -2
  44. package/dist/util/onFind.d.ts +1 -0
  45. package/dist/util/onFind.d.ts.map +1 -1
  46. package/dist/util/onFind.js +73 -48
  47. package/dist/util/onFind.js.map +1 -1
  48. package/dist/util/onVisible.d.ts.map +1 -1
  49. package/dist/util/onVisible.js +13 -2
  50. package/dist/util/onVisible.js.map +1 -1
  51. package/package.json +12 -5
  52. package/dist/storybook/assets/Color-64QXVMR3-Dnd9S2a1.js +0 -1
  53. package/dist/storybook/assets/WithTooltip-SK46ZJ2J-Df0E-KJO.js +0 -825
  54. package/dist/storybook/assets/formatter-OMEEQ6HG-DFa_WTfb.js +0 -1
  55. package/dist/storybook/assets/iframe-lTczLWsL.js +0 -1064
  56. package/dist/storybook/assets/index-yMswRDPh.js +0 -1
  57. package/dist/storybook/assets/onFind-C6olvKHR.js +0 -1
  58. package/dist/storybook/assets/onFind.stories-DfW54CDE.js +0 -284
  59. package/dist/storybook/assets/syntaxhighlighter-CAVLW7PM-DoI0ixeu.js +0 -6
@@ -0,0 +1,1061 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Avatar.stories-QxWs-YfX.js","./preload-helper-PPVm8Dsz.js","./AvatarGroup.stories-Cy_Bvn7E.js","./Badge.stories-BpaApWbR.js","./Button.stories-C5h2usmd.js","./CircularProgress.stories-DlPOiGja.js","./ClipboardMixin.stories-Bb45-UOM.js","./ComponentStatesMixin-B7ci0thi.js","./Colors.stories-DP2JKWUJ.js","./ComponentStatesMixin.stories-CyQ2aSTu.js","./CopyToClipboard.stories-DR7pckeV.js","./Debounce.stories-hkqyvqmg.js","./Events.stories-BAgDzdyl.js","./Heading.stories-CN_fPsRf.js","./Icon.stories-CSx_2K8V.js","./LinearProgress.stories-In48DY2g.js","./Rtc.stories-19d7WXe4.js","./ScrollShadow.stories-BFjracVd.js","./Throttle.stories-DD6ydiVq.js","./onFind.stories-BMDLUk0l.js","./onFind-DqriYjEB.js","./_commonjsHelpers-CqkleIqs.js","./onRemove.stories-C3FcxtYh.js","./onVisible.stories-B8Zyu0Th.js","./DocsRenderer-LL677BLK-Dtw9GMer.js"])))=>i.map(i=>d[i]);
2
+ import{_ as $e}from"./preload-helper-PPVm8Dsz.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var bl={},FT=Object.create,Nu=Object.defineProperty,UT=Object.getOwnPropertyDescriptor,Tm=Object.getOwnPropertyNames,JT=Object.getPrototypeOf,VT=Object.prototype.hasOwnProperty,Ri=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),N=(e,t)=>function(){return t||(0,e[Tm(e)[0]])((t={exports:{}}).exports,t),t.exports},ft=(e,t)=>{for(var r in t)Nu(e,r,{get:t[r],enumerable:!0})},HT=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Tm(t))!VT.call(e,o)&&o!==r&&Nu(e,o,{get:()=>t[o],enumerable:!(n=UT(t,o))||n.enumerable});return e},Je=(e,t,r)=>(r=e!=null?FT(JT(e)):{},HT(t||!e||!e.__esModule?Nu(r,"default",{value:e,enumerable:!0}):r,e)),GT=N({"../../node_modules/@ngard/tiny-isequal/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=(function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,i){return(function a(s,c,u){var d,p,f,h=t.call(s),y=t.call(c);if(s===c)return!0;if(s==null||c==null)return!1;if(u.indexOf(s)>-1&&u.indexOf(c)>-1)return!0;if(u.push(s,c),h!=y||(d=n(s),p=n(c),d.length!=p.length||d.some(function(g){return!a(s[g],c[g],u)})))return!1;switch(h.slice(8,-1)){case"Symbol":return s.valueOf()==c.valueOf();case"Date":case"Number":return+s==+c||+s!=+s&&+c!=+c;case"RegExp":case"Function":case"String":case"Boolean":return""+s==""+c;case"Set":case"Map":d=s.entries(),p=c.entries();do if(!a((f=d.next()).value,p.next().value,u))return!1;while(!f.done);return!0;case"ArrayBuffer":s=new Uint8Array(s),c=new Uint8Array(c);case"DataView":s=new Uint8Array(s.buffer),c=new Uint8Array(c.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(s.length!=c.length)return!1;for(f=0;f<s.length;f++)if((f in s||f in c)&&(f in s!=f in c||!a(s[f],c[f],u)))return!1;return!0;case"Object":return a(r(s),r(c),u);default:return!1}})(o,i,[])}})()}}),zT=N({"../../node_modules/min-indent/index.js"(e,t){t.exports=r=>{let n=r.match(/^[ \t]*(?=\S)/gm);return n?n.reduce((o,i)=>Math.min(o,i.length),1/0):0}}}),WT=N({"../../node_modules/strip-indent/index.js"(e,t){var r=zT();t.exports=n=>{let o=r(n);if(o===0)return n;let i=new RegExp(`^[ \\t]{${o}}`,"gm");return n.replace(i,"")}}}),KT=N({"../../node_modules/indent-string/index.js"(e,t){t.exports=(r,n=1,o)=>{if(o={indent:" ",includeEmptyLines:!1,...o},typeof r!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof r}\``);if(typeof n!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof n}\``);if(typeof o.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof o.indent}\``);if(n===0)return r;let i=o.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return r.replace(i,o.indent.repeat(n))}}}),Sm=N({"../../node_modules/redent/index.js"(e,t){var r=WT(),n=KT();t.exports=(o,i=0,a)=>n(r(o),i,a)}}),YT=N({"../../node_modules/aria-query/lib/util/iteratorProxy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(){var r=this,n=0,o={"@@iterator":function(){return o},next:function(){if(n<r.length){var i=r[n];return n=n+1,{done:!1,value:i}}else return{done:!0}}};return o}e.default=t}}),ci=N({"../../node_modules/aria-query/lib/util/iterationDecorator.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=r(YT());function r(i){return i&&i.__esModule?i:{default:i}}function n(i){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},n(i)}function o(i,a){return typeof Symbol=="function"&&n(Symbol.iterator)==="symbol"&&Object.defineProperty(i,Symbol.iterator,{value:t.default.bind(a)}),i}}}),XT=N({"../../node_modules/aria-query/lib/ariaPropsMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(ci());function r(p){return p&&p.__esModule?p:{default:p}}function n(p,f){return c(p)||s(p,f)||i(p,f)||o()}function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(p,f){if(p){if(typeof p=="string")return a(p,f);var h={}.toString.call(p).slice(8,-1);return h==="Object"&&p.constructor&&(h=p.constructor.name),h==="Map"||h==="Set"?Array.from(p):h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)?a(p,f):void 0}}function a(p,f){(f==null||f>p.length)&&(f=p.length);for(var h=0,y=Array(f);h<f;h++)y[h]=p[h];return y}function s(p,f){var h=p==null?null:typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(h!=null){var y,g,E,b,w=[],P=!0,x=!1;try{if(E=(h=h.call(p)).next,f===0){if(Object(h)!==h)return;P=!1}else for(;!(P=(y=E.call(h)).done)&&(w.push(y.value),w.length!==f);P=!0);}catch(C){x=!0,g=C}finally{try{if(!P&&h.return!=null&&(b=h.return(),Object(b)!==b))return}finally{if(x)throw g}}return w}}function c(p){if(Array.isArray(p))return p}var u=[["aria-activedescendant",{type:"id"}],["aria-atomic",{type:"boolean"}],["aria-autocomplete",{type:"token",values:["inline","list","both","none"]}],["aria-braillelabel",{type:"string"}],["aria-brailleroledescription",{type:"string"}],["aria-busy",{type:"boolean"}],["aria-checked",{type:"tristate"}],["aria-colcount",{type:"integer"}],["aria-colindex",{type:"integer"}],["aria-colspan",{type:"integer"}],["aria-controls",{type:"idlist"}],["aria-current",{type:"token",values:["page","step","location","date","time",!0,!1]}],["aria-describedby",{type:"idlist"}],["aria-description",{type:"string"}],["aria-details",{type:"id"}],["aria-disabled",{type:"boolean"}],["aria-dropeffect",{type:"tokenlist",values:["copy","execute","link","move","none","popup"]}],["aria-errormessage",{type:"id"}],["aria-expanded",{type:"boolean",allowundefined:!0}],["aria-flowto",{type:"idlist"}],["aria-grabbed",{type:"boolean",allowundefined:!0}],["aria-haspopup",{type:"token",values:[!1,!0,"menu","listbox","tree","grid","dialog"]}],["aria-hidden",{type:"boolean",allowundefined:!0}],["aria-invalid",{type:"token",values:["grammar",!1,"spelling",!0]}],["aria-keyshortcuts",{type:"string"}],["aria-label",{type:"string"}],["aria-labelledby",{type:"idlist"}],["aria-level",{type:"integer"}],["aria-live",{type:"token",values:["assertive","off","polite"]}],["aria-modal",{type:"boolean"}],["aria-multiline",{type:"boolean"}],["aria-multiselectable",{type:"boolean"}],["aria-orientation",{type:"token",values:["vertical","undefined","horizontal"]}],["aria-owns",{type:"idlist"}],["aria-placeholder",{type:"string"}],["aria-posinset",{type:"integer"}],["aria-pressed",{type:"tristate"}],["aria-readonly",{type:"boolean"}],["aria-relevant",{type:"tokenlist",values:["additions","all","removals","text"]}],["aria-required",{type:"boolean"}],["aria-roledescription",{type:"string"}],["aria-rowcount",{type:"integer"}],["aria-rowindex",{type:"integer"}],["aria-rowspan",{type:"integer"}],["aria-selected",{type:"boolean",allowundefined:!0}],["aria-setsize",{type:"integer"}],["aria-sort",{type:"token",values:["ascending","descending","none","other"]}],["aria-valuemax",{type:"number"}],["aria-valuemin",{type:"number"}],["aria-valuenow",{type:"number"}],["aria-valuetext",{type:"string"}]],d={entries:function(){return u},forEach:function(p){for(var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,h=0,y=u;h<y.length;h++){var g=n(y[h],2),E=g[0],b=g[1];p.call(f,b,E,u)}},get:function(p){var f=u.filter(function(h){return h[0]===p})[0];return f&&f[1]},has:function(p){return!!d.get(p)},keys:function(){return u.map(function(p){var f=n(p,1),h=f[0];return h})},values:function(){return u.map(function(p){var f=n(p,2),h=f[1];return h})}};e.default=(0,t.default)(d,d.entries())}}),QT=N({"../../node_modules/aria-query/lib/domMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(ci());function r(p){return p&&p.__esModule?p:{default:p}}function n(p,f){return c(p)||s(p,f)||i(p,f)||o()}function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(p,f){if(p){if(typeof p=="string")return a(p,f);var h={}.toString.call(p).slice(8,-1);return h==="Object"&&p.constructor&&(h=p.constructor.name),h==="Map"||h==="Set"?Array.from(p):h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)?a(p,f):void 0}}function a(p,f){(f==null||f>p.length)&&(f=p.length);for(var h=0,y=Array(f);h<f;h++)y[h]=p[h];return y}function s(p,f){var h=p==null?null:typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(h!=null){var y,g,E,b,w=[],P=!0,x=!1;try{if(E=(h=h.call(p)).next,f===0){if(Object(h)!==h)return;P=!1}else for(;!(P=(y=E.call(h)).done)&&(w.push(y.value),w.length!==f);P=!0);}catch(C){x=!0,g=C}finally{try{if(!P&&h.return!=null&&(b=h.return(),Object(b)!==b))return}finally{if(x)throw g}}return w}}function c(p){if(Array.isArray(p))return p}var u=[["a",{reserved:!1}],["abbr",{reserved:!1}],["acronym",{reserved:!1}],["address",{reserved:!1}],["applet",{reserved:!1}],["area",{reserved:!1}],["article",{reserved:!1}],["aside",{reserved:!1}],["audio",{reserved:!1}],["b",{reserved:!1}],["base",{reserved:!0}],["bdi",{reserved:!1}],["bdo",{reserved:!1}],["big",{reserved:!1}],["blink",{reserved:!1}],["blockquote",{reserved:!1}],["body",{reserved:!1}],["br",{reserved:!1}],["button",{reserved:!1}],["canvas",{reserved:!1}],["caption",{reserved:!1}],["center",{reserved:!1}],["cite",{reserved:!1}],["code",{reserved:!1}],["col",{reserved:!0}],["colgroup",{reserved:!0}],["content",{reserved:!1}],["data",{reserved:!1}],["datalist",{reserved:!1}],["dd",{reserved:!1}],["del",{reserved:!1}],["details",{reserved:!1}],["dfn",{reserved:!1}],["dialog",{reserved:!1}],["dir",{reserved:!1}],["div",{reserved:!1}],["dl",{reserved:!1}],["dt",{reserved:!1}],["em",{reserved:!1}],["embed",{reserved:!1}],["fieldset",{reserved:!1}],["figcaption",{reserved:!1}],["figure",{reserved:!1}],["font",{reserved:!1}],["footer",{reserved:!1}],["form",{reserved:!1}],["frame",{reserved:!1}],["frameset",{reserved:!1}],["h1",{reserved:!1}],["h2",{reserved:!1}],["h3",{reserved:!1}],["h4",{reserved:!1}],["h5",{reserved:!1}],["h6",{reserved:!1}],["head",{reserved:!0}],["header",{reserved:!1}],["hgroup",{reserved:!1}],["hr",{reserved:!1}],["html",{reserved:!0}],["i",{reserved:!1}],["iframe",{reserved:!1}],["img",{reserved:!1}],["input",{reserved:!1}],["ins",{reserved:!1}],["kbd",{reserved:!1}],["keygen",{reserved:!1}],["label",{reserved:!1}],["legend",{reserved:!1}],["li",{reserved:!1}],["link",{reserved:!0}],["main",{reserved:!1}],["map",{reserved:!1}],["mark",{reserved:!1}],["marquee",{reserved:!1}],["menu",{reserved:!1}],["menuitem",{reserved:!1}],["meta",{reserved:!0}],["meter",{reserved:!1}],["nav",{reserved:!1}],["noembed",{reserved:!0}],["noscript",{reserved:!0}],["object",{reserved:!1}],["ol",{reserved:!1}],["optgroup",{reserved:!1}],["option",{reserved:!1}],["output",{reserved:!1}],["p",{reserved:!1}],["param",{reserved:!0}],["picture",{reserved:!0}],["pre",{reserved:!1}],["progress",{reserved:!1}],["q",{reserved:!1}],["rp",{reserved:!1}],["rt",{reserved:!1}],["rtc",{reserved:!1}],["ruby",{reserved:!1}],["s",{reserved:!1}],["samp",{reserved:!1}],["script",{reserved:!0}],["section",{reserved:!1}],["select",{reserved:!1}],["small",{reserved:!1}],["source",{reserved:!0}],["spacer",{reserved:!1}],["span",{reserved:!1}],["strike",{reserved:!1}],["strong",{reserved:!1}],["style",{reserved:!0}],["sub",{reserved:!1}],["summary",{reserved:!1}],["sup",{reserved:!1}],["table",{reserved:!1}],["tbody",{reserved:!1}],["td",{reserved:!1}],["textarea",{reserved:!1}],["tfoot",{reserved:!1}],["th",{reserved:!1}],["thead",{reserved:!1}],["time",{reserved:!1}],["title",{reserved:!0}],["tr",{reserved:!1}],["track",{reserved:!0}],["tt",{reserved:!1}],["u",{reserved:!1}],["ul",{reserved:!1}],["var",{reserved:!1}],["video",{reserved:!1}],["wbr",{reserved:!1}],["xmp",{reserved:!1}]],d={entries:function(){return u},forEach:function(p){for(var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,h=0,y=u;h<y.length;h++){var g=n(y[h],2),E=g[0],b=g[1];p.call(f,b,E,u)}},get:function(p){var f=u.filter(function(h){return h[0]===p})[0];return f&&f[1]},has:function(p){return!!d.get(p)},keys:function(){return u.map(function(p){var f=n(p,1),h=f[0];return h})},values:function(){return u.map(function(p){var f=n(p,2),h=f[1];return h})}};e.default=(0,t.default)(d,d.entries())}}),ZT=N({"../../node_modules/aria-query/lib/etc/roles/abstract/commandRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]};e.default=t}}),e0=N({"../../node_modules/aria-query/lib/etc/roles/abstract/compositeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),t0=N({"../../node_modules/aria-query/lib/etc/roles/abstract/inputRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),r0=N({"../../node_modules/aria-query/lib/etc/roles/abstract/landmarkRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),n0=N({"../../node_modules/aria-query/lib/etc/roles/abstract/rangeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),o0=N({"../../node_modules/aria-query/lib/etc/roles/abstract/roletypeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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:[]};e.default=t}}),i0=N({"../../node_modules/aria-query/lib/etc/roles/abstract/sectionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),a0=N({"../../node_modules/aria-query/lib/etc/roles/abstract/sectionheadRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),s0=N({"../../node_modules/aria-query/lib/etc/roles/abstract/selectRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","group"]]};e.default=t}}),l0=N({"../../node_modules/aria-query/lib/etc/roles/abstract/structureRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};e.default=t}}),u0=N({"../../node_modules/aria-query/lib/etc/roles/abstract/widgetRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};e.default=t}}),c0=N({"../../node_modules/aria-query/lib/etc/roles/abstract/windowRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};e.default=t}}),d0=N({"../../node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=h(ZT()),r=h(e0()),n=h(t0()),o=h(r0()),i=h(n0()),a=h(o0()),s=h(i0()),c=h(a0()),u=h(s0()),d=h(l0()),p=h(u0()),f=h(c0());function h(g){return g&&g.__esModule?g:{default:g}}var y=[["command",t.default],["composite",r.default],["input",n.default],["landmark",o.default],["range",i.default],["roletype",a.default],["section",s.default],["sectionhead",c.default],["select",u.default],["structure",d.default],["widget",p.default],["window",f.default]];e.default=y}}),p0=N({"../../node_modules/aria-query/lib/etc/roles/literal/alertRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"assertive"},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),f0=N({"../../node_modules/aria-query/lib/etc/roles/literal/alertdialogRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","alert"],["roletype","window","dialog"]]};e.default=t}}),h0=N({"../../node_modules/aria-query/lib/etc/roles/literal/applicationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),m0=N({"../../node_modules/aria-query/lib/etc/roles/literal/articleRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),y0=N({"../../node_modules/aria-query/lib/etc/roles/literal/bannerRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),g0=N({"../../node_modules/aria-query/lib/etc/roles/literal/blockquoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),b0=N({"../../node_modules/aria-query/lib/etc/roles/literal/buttonRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),v0=N({"../../node_modules/aria-query/lib/etc/roles/literal/captionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),E0=N({"../../node_modules/aria-query/lib/etc/roles/literal/cellRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),w0=N({"../../node_modules/aria-query/lib/etc/roles/literal/checkboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),_0=N({"../../node_modules/aria-query/lib/etc/roles/literal/codeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),T0=N({"../../node_modules/aria-query/lib/etc/roles/literal/columnheaderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"col"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"colgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]};e.default=t}}),S0=N({"../../node_modules/aria-query/lib/etc/roles/literal/comboboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),A0=N({"../../node_modules/aria-query/lib/etc/roles/literal/complementaryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),R0=N({"../../node_modules/aria-query/lib/etc/roles/literal/contentinfoRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),O0=N({"../../node_modules/aria-query/lib/etc/roles/literal/definitionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),P0=N({"../../node_modules/aria-query/lib/etc/roles/literal/deletionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),x0=N({"../../node_modules/aria-query/lib/etc/roles/literal/dialogRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]};e.default=t}}),C0=N({"../../node_modules/aria-query/lib/etc/roles/literal/directoryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]};e.default=t}}),N0=N({"../../node_modules/aria-query/lib/etc/roles/literal/documentRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),I0=N({"../../node_modules/aria-query/lib/etc/roles/literal/emphasisRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),j0=N({"../../node_modules/aria-query/lib/etc/roles/literal/feedRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]};e.default=t}}),q0=N({"../../node_modules/aria-query/lib/etc/roles/literal/figureRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),M0=N({"../../node_modules/aria-query/lib/etc/roles/literal/formRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),k0=N({"../../node_modules/aria-query/lib/etc/roles/literal/genericRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),L0=N({"../../node_modules/aria-query/lib/etc/roles/literal/gridRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),D0=N({"../../node_modules/aria-query/lib/etc/roles/literal/gridcellRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),$0=N({"../../node_modules/aria-query/lib/etc/roles/literal/groupRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),B0=N({"../../node_modules/aria-query/lib/etc/roles/literal/headingRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),F0=N({"../../node_modules/aria-query/lib/etc/roles/literal/imgRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),U0=N({"../../node_modules/aria-query/lib/etc/roles/literal/insertionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),J0=N({"../../node_modules/aria-query/lib/etc/roles/literal/linkRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),V0=N({"../../node_modules/aria-query/lib/etc/roles/literal/listRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),H0=N({"../../node_modules/aria-query/lib/etc/roles/literal/listboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),G0=N({"../../node_modules/aria-query/lib/etc/roles/literal/listitemRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),z0=N({"../../node_modules/aria-query/lib/etc/roles/literal/logRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),W0=N({"../../node_modules/aria-query/lib/etc/roles/literal/mainRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),K0=N({"../../node_modules/aria-query/lib/etc/roles/literal/markRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Y0=N({"../../node_modules/aria-query/lib/etc/roles/literal/marqueeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),X0=N({"../../node_modules/aria-query/lib/etc/roles/literal/mathRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Q0=N({"../../node_modules/aria-query/lib/etc/roles/literal/menuRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Z0=N({"../../node_modules/aria-query/lib/etc/roles/literal/menubarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),eS=N({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),tS=N({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemcheckboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),rS=N({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemradioRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),nS=N({"../../node_modules/aria-query/lib/etc/roles/literal/meterRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),oS=N({"../../node_modules/aria-query/lib/etc/roles/literal/navigationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),iS=N({"../../node_modules/aria-query/lib/etc/roles/literal/noneRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]};e.default=t}}),aS=N({"../../node_modules/aria-query/lib/etc/roles/literal/noteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),sS=N({"../../node_modules/aria-query/lib/etc/roles/literal/optionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),lS=N({"../../node_modules/aria-query/lib/etc/roles/literal/paragraphRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),uS=N({"../../node_modules/aria-query/lib/etc/roles/literal/presentationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),cS=N({"../../node_modules/aria-query/lib/etc/roles/literal/progressbarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),dS=N({"../../node_modules/aria-query/lib/etc/roles/literal/radioRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),pS=N({"../../node_modules/aria-query/lib/etc/roles/literal/radiogroupRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),fS=N({"../../node_modules/aria-query/lib/etc/roles/literal/regionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),hS=N({"../../node_modules/aria-query/lib/etc/roles/literal/rowRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),mS=N({"../../node_modules/aria-query/lib/etc/roles/literal/rowgroupRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),yS=N({"../../node_modules/aria-query/lib/etc/roles/literal/rowheaderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),gS=N({"../../node_modules/aria-query/lib/etc/roles/literal/scrollbarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),bS=N({"../../node_modules/aria-query/lib/etc/roles/literal/searchRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),vS=N({"../../node_modules/aria-query/lib/etc/roles/literal/searchboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),ES=N({"../../node_modules/aria-query/lib/etc/roles/literal/separatorRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),wS=N({"../../node_modules/aria-query/lib/etc/roles/literal/sliderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),_S=N({"../../node_modules/aria-query/lib/etc/roles/literal/spinbuttonRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),TS=N({"../../node_modules/aria-query/lib/etc/roles/literal/statusRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),SS=N({"../../node_modules/aria-query/lib/etc/roles/literal/strongRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),AS=N({"../../node_modules/aria-query/lib/etc/roles/literal/subscriptRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),RS=N({"../../node_modules/aria-query/lib/etc/roles/literal/superscriptRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),OS=N({"../../node_modules/aria-query/lib/etc/roles/literal/switchRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),PS=N({"../../node_modules/aria-query/lib/etc/roles/literal/tabRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),xS=N({"../../node_modules/aria-query/lib/etc/roles/literal/tableRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),CS=N({"../../node_modules/aria-query/lib/etc/roles/literal/tablistRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),NS=N({"../../node_modules/aria-query/lib/etc/roles/literal/tabpanelRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),IS=N({"../../node_modules/aria-query/lib/etc/roles/literal/termRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),jS=N({"../../node_modules/aria-query/lib/etc/roles/literal/textboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),qS=N({"../../node_modules/aria-query/lib/etc/roles/literal/timeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),MS=N({"../../node_modules/aria-query/lib/etc/roles/literal/timerRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]};e.default=t}}),kS=N({"../../node_modules/aria-query/lib/etc/roles/literal/toolbarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),LS=N({"../../node_modules/aria-query/lib/etc/roles/literal/tooltipRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),DS=N({"../../node_modules/aria-query/lib/etc/roles/literal/treeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),$S=N({"../../node_modules/aria-query/lib/etc/roles/literal/treegridRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),BS=N({"../../node_modules/aria-query/lib/etc/roles/literal/treeitemRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),FS=N({"../../node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=X(p0()),r=X(f0()),n=X(h0()),o=X(m0()),i=X(y0()),a=X(g0()),s=X(b0()),c=X(v0()),u=X(E0()),d=X(w0()),p=X(_0()),f=X(T0()),h=X(S0()),y=X(A0()),g=X(R0()),E=X(O0()),b=X(P0()),w=X(x0()),P=X(C0()),x=X(N0()),C=X(I0()),S=X(j0()),_=X(q0()),T=X(M0()),A=X(k0()),D=X(L0()),k=X(D0()),U=X($0()),I=X(B0()),R=X(F0()),M=X(U0()),L=X(J0()),J=X(V0()),W=X(H0()),ne=X(G0()),ue=X(z0()),ie=X(W0()),z=X(K0()),G=X(Y0()),re=X(X0()),Z=X(Q0()),K=X(Z0()),ye=X(eS()),ce=X(tS()),Me=X(rS()),F=X(nS()),Q=X(oS()),te=X(iS()),oe=X(aS()),ae=X(sS()),se=X(lS()),fe=X(uS()),ge=X(cS()),ke=X(dS()),lt=X(pS()),rt=X(fS()),ut=X(hS()),Qe=X(mS()),$t=X(yS()),wt=X(gS()),Bt=X(bS()),Kn=X(vS()),Yn=X(ES()),Xn=X(wS()),Qn=X(_S()),Zn=X(TS()),eo=X(SS()),to=X(AS()),ro=X(RS()),no=X(OS()),oo=X(PS()),io=X(xS()),ao=X(CS()),so=X(NS()),lo=X(IS()),uo=X(jS()),Mr=X(qS()),co=X(MS()),ht=X(kS()),le=X(LS()),kr=X(DS()),Ct=X($S()),ze=X(BS());function X(fr){return fr&&fr.__esModule?fr:{default:fr}}var po=[["alert",t.default],["alertdialog",r.default],["application",n.default],["article",o.default],["banner",i.default],["blockquote",a.default],["button",s.default],["caption",c.default],["cell",u.default],["checkbox",d.default],["code",p.default],["columnheader",f.default],["combobox",h.default],["complementary",y.default],["contentinfo",g.default],["definition",E.default],["deletion",b.default],["dialog",w.default],["directory",P.default],["document",x.default],["emphasis",C.default],["feed",S.default],["figure",_.default],["form",T.default],["generic",A.default],["grid",D.default],["gridcell",k.default],["group",U.default],["heading",I.default],["img",R.default],["insertion",M.default],["link",L.default],["list",J.default],["listbox",W.default],["listitem",ne.default],["log",ue.default],["main",ie.default],["mark",z.default],["marquee",G.default],["math",re.default],["menu",Z.default],["menubar",K.default],["menuitem",ye.default],["menuitemcheckbox",ce.default],["menuitemradio",Me.default],["meter",F.default],["navigation",Q.default],["none",te.default],["note",oe.default],["option",ae.default],["paragraph",se.default],["presentation",fe.default],["progressbar",ge.default],["radio",ke.default],["radiogroup",lt.default],["region",rt.default],["row",ut.default],["rowgroup",Qe.default],["rowheader",$t.default],["scrollbar",wt.default],["search",Bt.default],["searchbox",Kn.default],["separator",Yn.default],["slider",Xn.default],["spinbutton",Qn.default],["status",Zn.default],["strong",eo.default],["subscript",to.default],["superscript",ro.default],["switch",no.default],["tab",oo.default],["table",io.default],["tablist",ao.default],["tabpanel",so.default],["term",lo.default],["textbox",uo.default],["time",Mr.default],["timer",co.default],["toolbar",ht.default],["tooltip",le.default],["tree",kr.default],["treegrid",Ct.default],["treeitem",ze.default]];e.default=po}}),US=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docAbstractRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),JS=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),VS=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docAfterwordRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),HS=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docAppendixRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),GS=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docBacklinkRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),zS=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docBiblioentryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),WS=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docBibliographyRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),KS=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docBibliorefRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),YS=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),XS=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docColophonRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),QS=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docConclusionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),ZS=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docCoverRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),eA=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docCreditRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),tA=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docCreditsRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),rA=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),nA=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docEndnoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),oA=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docEndnotesRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),iA=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docEpigraphRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),aA=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docEpilogueRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),sA=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docErrataRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),lA=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docExampleRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),uA=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docFootnoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),cA=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docForewordRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),dA=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docGlossaryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),pA=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docGlossrefRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),fA=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docIndexRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),hA=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docIntroductionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),mA=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docNoterefRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),yA=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docNoticeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),gA=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagebreakRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),bA=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagefooterRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),vA=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docPageheaderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),EA=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagelistRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),wA=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docPartRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),_A=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docPrefaceRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),TA=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docPrologueRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),SA=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docPullquoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),AA=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docQnaRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),RA=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docSubtitleRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),OA=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docTipRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),PA=N({"../../node_modules/aria-query/lib/etc/roles/dpub/docTocRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),xA=N({"../../node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=K(US()),r=K(JS()),n=K(VS()),o=K(HS()),i=K(GS()),a=K(zS()),s=K(WS()),c=K(KS()),u=K(YS()),d=K(XS()),p=K(QS()),f=K(ZS()),h=K(eA()),y=K(tA()),g=K(rA()),E=K(nA()),b=K(oA()),w=K(iA()),P=K(aA()),x=K(sA()),C=K(lA()),S=K(uA()),_=K(cA()),T=K(dA()),A=K(pA()),D=K(fA()),k=K(hA()),U=K(mA()),I=K(yA()),R=K(gA()),M=K(bA()),L=K(vA()),J=K(EA()),W=K(wA()),ne=K(_A()),ue=K(TA()),ie=K(SA()),z=K(AA()),G=K(RA()),re=K(OA()),Z=K(PA());function K(ce){return ce&&ce.__esModule?ce:{default:ce}}var ye=[["doc-abstract",t.default],["doc-acknowledgments",r.default],["doc-afterword",n.default],["doc-appendix",o.default],["doc-backlink",i.default],["doc-biblioentry",a.default],["doc-bibliography",s.default],["doc-biblioref",c.default],["doc-chapter",u.default],["doc-colophon",d.default],["doc-conclusion",p.default],["doc-cover",f.default],["doc-credit",h.default],["doc-credits",y.default],["doc-dedication",g.default],["doc-endnote",E.default],["doc-endnotes",b.default],["doc-epigraph",w.default],["doc-epilogue",P.default],["doc-errata",x.default],["doc-example",C.default],["doc-footnote",S.default],["doc-foreword",_.default],["doc-glossary",T.default],["doc-glossref",A.default],["doc-index",D.default],["doc-introduction",k.default],["doc-noteref",U.default],["doc-notice",I.default],["doc-pagebreak",R.default],["doc-pagefooter",M.default],["doc-pageheader",L.default],["doc-pagelist",J.default],["doc-part",W.default],["doc-preface",ne.default],["doc-prologue",ue.default],["doc-pullquote",ie.default],["doc-qna",z.default],["doc-subtitle",G.default],["doc-tip",re.default],["doc-toc",Z.default]];e.default=ye}}),CA=N({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsDocumentRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),NA=N({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsObjectRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),IA=N({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsSymbolRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),jA=N({"../../node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(CA()),r=o(NA()),n=o(IA());function o(a){return a&&a.__esModule?a:{default:a}}var i=[["graphics-document",t.default],["graphics-object",r.default],["graphics-symbol",n.default]];e.default=i}}),Iu=N({"../../node_modules/aria-query/lib/rolesMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(d0()),r=a(FS()),n=a(xA()),o=a(jA()),i=a(ci());function a(E){return E&&E.__esModule?E:{default:E}}function s(E,b){var w=typeof Symbol<"u"&&E[Symbol.iterator]||E["@@iterator"];if(!w){if(Array.isArray(E)||(w=d(E))||b){w&&(E=w);var P=0,x=function(){};return{s:x,n:function(){return P>=E.length?{done:!0}:{done:!1,value:E[P++]}},e:function(T){throw T},f:x}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
5
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var C,S=!0,_=!1;return{s:function(){w=w.call(E)},n:function(){var T=w.next();return S=T.done,T},e:function(T){_=!0,C=T},f:function(){try{S||w.return==null||w.return()}finally{if(_)throw C}}}}function c(E,b){return h(E)||f(E,b)||d(E,b)||u()}function u(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
6
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d(E,b){if(E){if(typeof E=="string")return p(E,b);var w={}.toString.call(E).slice(8,-1);return w==="Object"&&E.constructor&&(w=E.constructor.name),w==="Map"||w==="Set"?Array.from(E):w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w)?p(E,b):void 0}}function p(E,b){(b==null||b>E.length)&&(b=E.length);for(var w=0,P=Array(b);w<b;w++)P[w]=E[w];return P}function f(E,b){var w=E==null?null:typeof Symbol<"u"&&E[Symbol.iterator]||E["@@iterator"];if(w!=null){var P,x,C,S,_=[],T=!0,A=!1;try{if(C=(w=w.call(E)).next,b===0){if(Object(w)!==w)return;T=!1}else for(;!(T=(P=C.call(w)).done)&&(_.push(P.value),_.length!==b);T=!0);}catch(D){A=!0,x=D}finally{try{if(!T&&w.return!=null&&(S=w.return(),Object(S)!==S))return}finally{if(A)throw x}}return _}}function h(E){if(Array.isArray(E))return E}var y=[].concat(t.default,r.default,n.default,o.default);y.forEach(function(E){var b=c(E,2),w=b[1],P=s(w.superClass),x;try{for(P.s();!(x=P.n()).done;){var C=x.value,S=s(C),_;try{var T=function(){var A=_.value,D=y.filter(function(M){var L=c(M,1),J=L[0];return J===A})[0];if(D)for(var k=D[1],U=0,I=Object.keys(k.props);U<I.length;U++){var R=I[U];Object.prototype.hasOwnProperty.call(w.props,R)||(w.props[R]=k.props[R])}};for(S.s();!(_=S.n()).done;)T()}catch(A){S.e(A)}finally{S.f()}}}catch(A){P.e(A)}finally{P.f()}});var g={entries:function(){return y},forEach:function(E){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,w=s(y),P;try{for(w.s();!(P=w.n()).done;){var x=c(P.value,2),C=x[0],S=x[1];E.call(b,S,C,y)}}catch(_){w.e(_)}finally{w.f()}},get:function(E){var b=y.filter(function(w){return w[0]===E})[0];return b&&b[1]},has:function(E){return!!g.get(E)},keys:function(){return y.map(function(E){var b=c(E,1),w=b[0];return w})},values:function(){return y.map(function(E){var b=c(E,2),w=b[1];return w})}};e.default=(0,i.default)(g,g.entries())}}),qA=N({"../../node_modules/aria-query/lib/elementRoleMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(ci()),r=n(Iu());function n(S){return S&&S.__esModule?S:{default:S}}function o(S,_){return u(S)||c(S,_)||a(S,_)||i()}function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
7
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(S,_){if(S){if(typeof S=="string")return s(S,_);var T={}.toString.call(S).slice(8,-1);return T==="Object"&&S.constructor&&(T=S.constructor.name),T==="Map"||T==="Set"?Array.from(S):T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)?s(S,_):void 0}}function s(S,_){(_==null||_>S.length)&&(_=S.length);for(var T=0,A=Array(_);T<_;T++)A[T]=S[T];return A}function c(S,_){var T=S==null?null:typeof Symbol<"u"&&S[Symbol.iterator]||S["@@iterator"];if(T!=null){var A,D,k,U,I=[],R=!0,M=!1;try{if(k=(T=T.call(S)).next,_===0){if(Object(T)!==T)return;R=!1}else for(;!(R=(A=k.call(T)).done)&&(I.push(A.value),I.length!==_);R=!0);}catch(L){M=!0,D=L}finally{try{if(!R&&T.return!=null&&(U=T.return(),Object(U)!==U))return}finally{if(M)throw D}}return I}}function u(S){if(Array.isArray(S))return S}var d=[],p=r.default.keys();for(b=0;b<p.length;b++)if(f=p[b],h=r.default.get(f),h)for(y=[].concat(h.baseConcepts,h.relatedConcepts),g=function(){var S=y[E];if(S.module==="HTML"){var _=S.concept;if(_){var T=d.filter(function(U){return P(U[0],_)})[0],A;T?A=T[1]:A=[];for(var D=!0,k=0;k<A.length;k++)if(A[k]===f){D=!1;break}D&&A.push(f),T||d.push([_,A])}}},E=0;E<y.length;E++)g();var f,h,y,g,E,b,w={entries:function(){return d},forEach:function(S){for(var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,T=0,A=d;T<A.length;T++){var D=o(A[T],2),k=D[0],U=D[1];S.call(_,U,k,d)}},get:function(S){var _=d.filter(function(T){return S.name===T[0].name&&C(S.attributes,T[0].attributes)})[0];return _&&_[1]},has:function(S){return!!w.get(S)},keys:function(){return d.map(function(S){var _=o(S,1),T=_[0];return T})},values:function(){return d.map(function(S){var _=o(S,2),T=_[1];return T})}};function P(S,_){return S.name===_.name&&x(S.constraints,_.constraints)&&C(S.attributes,_.attributes)}function x(S,_){if(S===void 0&&_!==void 0||S!==void 0&&_===void 0)return!1;if(S!==void 0&&_!==void 0){if(S.length!==_.length)return!1;for(var T=0;T<S.length;T++)if(S[T]!==_[T])return!1}return!0}function C(S,_){if(S===void 0&&_!==void 0||S!==void 0&&_===void 0)return!1;if(S!==void 0&&_!==void 0){if(S.length!==_.length)return!1;for(var T=0;T<S.length;T++){if(S[T].name!==_[T].name||S[T].value!==_[T].value||S[T].constraints===void 0&&_[T].constraints!==void 0||S[T].constraints!==void 0&&_[T].constraints===void 0)return!1;if(S[T].constraints!==void 0&&_[T].constraints!==void 0){if(S[T].constraints.length!==_[T].constraints.length)return!1;for(var A=0;A<S[T].constraints.length;A++)if(S[T].constraints[A]!==_[T].constraints[A])return!1}}}return!0}e.default=(0,t.default)(w,w.entries())}}),MA=N({"../../node_modules/aria-query/lib/roleElementMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(ci()),r=n(Iu());function n(C){return C&&C.__esModule?C:{default:C}}function o(C,S){return u(C)||c(C,S)||a(C,S)||i()}function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
8
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(C,S){if(C){if(typeof C=="string")return s(C,S);var _={}.toString.call(C).slice(8,-1);return _==="Object"&&C.constructor&&(_=C.constructor.name),_==="Map"||_==="Set"?Array.from(C):_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_)?s(C,S):void 0}}function s(C,S){(S==null||S>C.length)&&(S=C.length);for(var _=0,T=Array(S);_<S;_++)T[_]=C[_];return T}function c(C,S){var _=C==null?null:typeof Symbol<"u"&&C[Symbol.iterator]||C["@@iterator"];if(_!=null){var T,A,D,k,U=[],I=!0,R=!1;try{if(D=(_=_.call(C)).next,S===0){if(Object(_)!==_)return;I=!1}else for(;!(I=(T=D.call(_)).done)&&(U.push(T.value),U.length!==S);I=!0);}catch(M){R=!0,A=M}finally{try{if(!I&&_.return!=null&&(k=_.return(),Object(k)!==k))return}finally{if(R)throw A}}return U}}function u(C){if(Array.isArray(C))return C}var d=[],p=r.default.keys();for(P=0;P<p.length;P++)if(f=p[P],h=r.default.get(f),y=[],h){for(g=[].concat(h.baseConcepts,h.relatedConcepts),w=0;w<g.length;w++)E=g[w],E.module==="HTML"&&(b=E.concept,b!=null&&y.push(b));y.length>0&&d.push([f,y])}var f,h,y,g,E,b,w,P,x={entries:function(){return d},forEach:function(C){for(var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,_=0,T=d;_<T.length;_++){var A=o(T[_],2),D=A[0],k=A[1];C.call(S,k,D,d)}},get:function(C){var S=d.filter(function(_){return _[0]===C})[0];return S&&S[1]},has:function(C){return!!x.get(C)},keys:function(){return d.map(function(C){var S=o(C,1),_=S[0];return _})},values:function(){return d.map(function(C){var S=o(C,2),_=S[1];return _})}};e.default=(0,t.default)(x,x.entries())}}),ju=N({"../../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=a(XT()),r=a(QT()),n=a(Iu()),o=a(qA()),i=a(MA());function a(s){return s&&s.__esModule?s:{default:s}}e.aria=t.default,e.dom=r.default,e.roles=n.default,e.elementRoles=o.default,e.roleElements=i.default}}),kA=N({"../../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]}}}),Am=N({"../../node_modules/color-convert/conversions.js"(e,t){var r=kA(),n={};for(let a of Object.keys(r))n[r[a]]=a;var o={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=o;for(let a of Object.keys(o)){if(!("channels"in o[a]))throw new Error("missing channels property: "+a);if(!("labels"in o[a]))throw new Error("missing channel labels property: "+a);if(o[a].labels.length!==o[a].channels)throw new Error("channel and label counts mismatch: "+a);let{channels:s,labels:c}=o[a];delete o[a].channels,delete o[a].labels,Object.defineProperty(o[a],"channels",{value:s}),Object.defineProperty(o[a],"labels",{value:c})}o.rgb.hsl=function(a){let s=a[0]/255,c=a[1]/255,u=a[2]/255,d=Math.min(s,c,u),p=Math.max(s,c,u),f=p-d,h,y;p===d?h=0:s===p?h=(c-u)/f:c===p?h=2+(u-s)/f:u===p&&(h=4+(s-c)/f),h=Math.min(h*60,360),h<0&&(h+=360);let g=(d+p)/2;return p===d?y=0:g<=.5?y=f/(p+d):y=f/(2-p-d),[h,y*100,g*100]},o.rgb.hsv=function(a){let s,c,u,d,p,f=a[0]/255,h=a[1]/255,y=a[2]/255,g=Math.max(f,h,y),E=g-Math.min(f,h,y),b=function(w){return(g-w)/6/E+1/2};return E===0?(d=0,p=0):(p=E/g,s=b(f),c=b(h),u=b(y),f===g?d=u-c:h===g?d=1/3+s-u:y===g&&(d=2/3+c-s),d<0?d+=1:d>1&&(d-=1)),[d*360,p*100,g*100]},o.rgb.hwb=function(a){let s=a[0],c=a[1],u=a[2],d=o.rgb.hsl(a)[0],p=1/255*Math.min(s,Math.min(c,u));return u=1-1/255*Math.max(s,Math.max(c,u)),[d,p*100,u*100]},o.rgb.cmyk=function(a){let s=a[0]/255,c=a[1]/255,u=a[2]/255,d=Math.min(1-s,1-c,1-u),p=(1-s-d)/(1-d)||0,f=(1-c-d)/(1-d)||0,h=(1-u-d)/(1-d)||0;return[p*100,f*100,h*100,d*100]};function i(a,s){return(a[0]-s[0])**2+(a[1]-s[1])**2+(a[2]-s[2])**2}o.rgb.keyword=function(a){let s=n[a];if(s)return s;let c=1/0,u;for(let d of Object.keys(r)){let p=r[d],f=i(a,p);f<c&&(c=f,u=d)}return u},o.keyword.rgb=function(a){return r[a]},o.rgb.xyz=function(a){let s=a[0]/255,c=a[1]/255,u=a[2]/255;s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,c=c>.04045?((c+.055)/1.055)**2.4:c/12.92,u=u>.04045?((u+.055)/1.055)**2.4:u/12.92;let d=s*.4124+c*.3576+u*.1805,p=s*.2126+c*.7152+u*.0722,f=s*.0193+c*.1192+u*.9505;return[d*100,p*100,f*100]},o.rgb.lab=function(a){let s=o.rgb.xyz(a),c=s[0],u=s[1],d=s[2];c/=95.047,u/=100,d/=108.883,c=c>.008856?c**(1/3):7.787*c+16/116,u=u>.008856?u**(1/3):7.787*u+16/116,d=d>.008856?d**(1/3):7.787*d+16/116;let p=116*u-16,f=500*(c-u),h=200*(u-d);return[p,f,h]},o.hsl.rgb=function(a){let s=a[0]/360,c=a[1]/100,u=a[2]/100,d,p,f;if(c===0)return f=u*255,[f,f,f];u<.5?d=u*(1+c):d=u+c-u*c;let h=2*u-d,y=[0,0,0];for(let g=0;g<3;g++)p=s+1/3*-(g-1),p<0&&p++,p>1&&p--,6*p<1?f=h+(d-h)*6*p:2*p<1?f=d:3*p<2?f=h+(d-h)*(2/3-p)*6:f=h,y[g]=f*255;return y},o.hsl.hsv=function(a){let s=a[0],c=a[1]/100,u=a[2]/100,d=c,p=Math.max(u,.01);u*=2,c*=u<=1?u:2-u,d*=p<=1?p:2-p;let f=(u+c)/2,h=u===0?2*d/(p+d):2*c/(u+c);return[s,h*100,f*100]},o.hsv.rgb=function(a){let s=a[0]/60,c=a[1]/100,u=a[2]/100,d=Math.floor(s)%6,p=s-Math.floor(s),f=255*u*(1-c),h=255*u*(1-c*p),y=255*u*(1-c*(1-p));switch(u*=255,d){case 0:return[u,y,f];case 1:return[h,u,f];case 2:return[f,u,y];case 3:return[f,h,u];case 4:return[y,f,u];case 5:return[u,f,h]}},o.hsv.hsl=function(a){let s=a[0],c=a[1]/100,u=a[2]/100,d=Math.max(u,.01),p,f;f=(2-c)*u;let h=(2-c)*d;return p=c*d,p/=h<=1?h:2-h,p=p||0,f/=2,[s,p*100,f*100]},o.hwb.rgb=function(a){let s=a[0]/360,c=a[1]/100,u=a[2]/100,d=c+u,p;d>1&&(c/=d,u/=d);let f=Math.floor(6*s),h=1-u;p=6*s-f,(f&1)!==0&&(p=1-p);let y=c+p*(h-c),g,E,b;switch(f){default:case 6:case 0:g=h,E=y,b=c;break;case 1:g=y,E=h,b=c;break;case 2:g=c,E=h,b=y;break;case 3:g=c,E=y,b=h;break;case 4:g=y,E=c,b=h;break;case 5:g=h,E=c,b=y;break}return[g*255,E*255,b*255]},o.cmyk.rgb=function(a){let s=a[0]/100,c=a[1]/100,u=a[2]/100,d=a[3]/100,p=1-Math.min(1,s*(1-d)+d),f=1-Math.min(1,c*(1-d)+d),h=1-Math.min(1,u*(1-d)+d);return[p*255,f*255,h*255]},o.xyz.rgb=function(a){let s=a[0]/100,c=a[1]/100,u=a[2]/100,d,p,f;return d=s*3.2406+c*-1.5372+u*-.4986,p=s*-.9689+c*1.8758+u*.0415,f=s*.0557+c*-.204+u*1.057,d=d>.0031308?1.055*d**(1/2.4)-.055:d*12.92,p=p>.0031308?1.055*p**(1/2.4)-.055:p*12.92,f=f>.0031308?1.055*f**(1/2.4)-.055:f*12.92,d=Math.min(Math.max(0,d),1),p=Math.min(Math.max(0,p),1),f=Math.min(Math.max(0,f),1),[d*255,p*255,f*255]},o.xyz.lab=function(a){let s=a[0],c=a[1],u=a[2];s/=95.047,c/=100,u/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,c=c>.008856?c**(1/3):7.787*c+16/116,u=u>.008856?u**(1/3):7.787*u+16/116;let d=116*c-16,p=500*(s-c),f=200*(c-u);return[d,p,f]},o.lab.xyz=function(a){let s=a[0],c=a[1],u=a[2],d,p,f;p=(s+16)/116,d=c/500+p,f=p-u/200;let h=p**3,y=d**3,g=f**3;return p=h>.008856?h:(p-16/116)/7.787,d=y>.008856?y:(d-16/116)/7.787,f=g>.008856?g:(f-16/116)/7.787,d*=95.047,p*=100,f*=108.883,[d,p,f]},o.lab.lch=function(a){let s=a[0],c=a[1],u=a[2],d;d=Math.atan2(u,c)*360/2/Math.PI,d<0&&(d+=360);let p=Math.sqrt(c*c+u*u);return[s,p,d]},o.lch.lab=function(a){let s=a[0],c=a[1],u=a[2]/360*2*Math.PI,d=c*Math.cos(u),p=c*Math.sin(u);return[s,d,p]},o.rgb.ansi16=function(a,s=null){let[c,u,d]=a,p=s===null?o.rgb.hsv(a)[2]:s;if(p=Math.round(p/50),p===0)return 30;let f=30+(Math.round(d/255)<<2|Math.round(u/255)<<1|Math.round(c/255));return p===2&&(f+=60),f},o.hsv.ansi16=function(a){return o.rgb.ansi16(o.hsv.rgb(a),a[2])},o.rgb.ansi256=function(a){let s=a[0],c=a[1],u=a[2];return s===c&&c===u?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(c/255*5)+Math.round(u/255*5)},o.ansi16.rgb=function(a){let s=a%10;if(s===0||s===7)return a>50&&(s+=3.5),s=s/10.5*255,[s,s,s];let c=(~~(a>50)+1)*.5,u=(s&1)*c*255,d=(s>>1&1)*c*255,p=(s>>2&1)*c*255;return[u,d,p]},o.ansi256.rgb=function(a){if(a>=232){let p=(a-232)*10+8;return[p,p,p]}a-=16;let s,c=Math.floor(a/36)/5*255,u=Math.floor((s=a%36)/6)/5*255,d=s%6/5*255;return[c,u,d]},o.rgb.hex=function(a){let s=(((Math.round(a[0])&255)<<16)+((Math.round(a[1])&255)<<8)+(Math.round(a[2])&255)).toString(16).toUpperCase();return"000000".substring(s.length)+s},o.hex.rgb=function(a){let s=a.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!s)return[0,0,0];let c=s[0];s[0].length===3&&(c=c.split("").map(h=>h+h).join(""));let u=parseInt(c,16),d=u>>16&255,p=u>>8&255,f=u&255;return[d,p,f]},o.rgb.hcg=function(a){let s=a[0]/255,c=a[1]/255,u=a[2]/255,d=Math.max(Math.max(s,c),u),p=Math.min(Math.min(s,c),u),f=d-p,h,y;return f<1?h=p/(1-f):h=0,f<=0?y=0:d===s?y=(c-u)/f%6:d===c?y=2+(u-s)/f:y=4+(s-c)/f,y/=6,y%=1,[y*360,f*100,h*100]},o.hsl.hcg=function(a){let s=a[1]/100,c=a[2]/100,u=c<.5?2*s*c:2*s*(1-c),d=0;return u<1&&(d=(c-.5*u)/(1-u)),[a[0],u*100,d*100]},o.hsv.hcg=function(a){let s=a[1]/100,c=a[2]/100,u=s*c,d=0;return u<1&&(d=(c-u)/(1-u)),[a[0],u*100,d*100]},o.hcg.rgb=function(a){let s=a[0]/360,c=a[1]/100,u=a[2]/100;if(c===0)return[u*255,u*255,u*255];let d=[0,0,0],p=s%1*6,f=p%1,h=1-f,y=0;switch(Math.floor(p)){case 0:d[0]=1,d[1]=f,d[2]=0;break;case 1:d[0]=h,d[1]=1,d[2]=0;break;case 2:d[0]=0,d[1]=1,d[2]=f;break;case 3:d[0]=0,d[1]=h,d[2]=1;break;case 4:d[0]=f,d[1]=0,d[2]=1;break;default:d[0]=1,d[1]=0,d[2]=h}return y=(1-c)*u,[(c*d[0]+y)*255,(c*d[1]+y)*255,(c*d[2]+y)*255]},o.hcg.hsv=function(a){let s=a[1]/100,c=a[2]/100,u=s+c*(1-s),d=0;return u>0&&(d=s/u),[a[0],d*100,u*100]},o.hcg.hsl=function(a){let s=a[1]/100,c=a[2]/100*(1-s)+.5*s,u=0;return c>0&&c<.5?u=s/(2*c):c>=.5&&c<1&&(u=s/(2*(1-c))),[a[0],u*100,c*100]},o.hcg.hwb=function(a){let s=a[1]/100,c=a[2]/100,u=s+c*(1-s);return[a[0],(u-s)*100,(1-u)*100]},o.hwb.hcg=function(a){let s=a[1]/100,c=1-a[2]/100,u=c-s,d=0;return u<1&&(d=(c-u)/(1-u)),[a[0],u*100,d*100]},o.apple.rgb=function(a){return[a[0]/65535*255,a[1]/65535*255,a[2]/65535*255]},o.rgb.apple=function(a){return[a[0]/255*65535,a[1]/255*65535,a[2]/255*65535]},o.gray.rgb=function(a){return[a[0]/100*255,a[0]/100*255,a[0]/100*255]},o.gray.hsl=function(a){return[0,0,a[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(a){return[0,100,a[0]]},o.gray.cmyk=function(a){return[0,0,0,a[0]]},o.gray.lab=function(a){return[a[0],0,0]},o.gray.hex=function(a){let s=Math.round(a[0]/100*255)&255,c=((s<<16)+(s<<8)+s).toString(16).toUpperCase();return"000000".substring(c.length)+c},o.rgb.gray=function(a){return[(a[0]+a[1]+a[2])/3/255*100]}}}),LA=N({"../../node_modules/color-convert/route.js"(e,t){var r=Am();function n(){let s={},c=Object.keys(r);for(let u=c.length,d=0;d<u;d++)s[c[d]]={distance:-1,parent:null};return s}function o(s){let c=n(),u=[s];for(c[s].distance=0;u.length;){let d=u.pop(),p=Object.keys(r[d]);for(let f=p.length,h=0;h<f;h++){let y=p[h],g=c[y];g.distance===-1&&(g.distance=c[d].distance+1,g.parent=d,u.unshift(y))}}return c}function i(s,c){return function(u){return c(s(u))}}function a(s,c){let u=[c[s].parent,s],d=r[c[s].parent][s],p=c[s].parent;for(;c[p].parent;)u.unshift(c[p].parent),d=i(r[c[p].parent][p],d),p=c[p].parent;return d.conversion=u,d}t.exports=function(s){let c=o(s),u={},d=Object.keys(c);for(let p=d.length,f=0;f<p;f++){let h=d[f];c[h].parent!==null&&(u[h]=a(h,c))}return u}}}),DA=N({"../../node_modules/color-convert/index.js"(e,t){var r=Am(),n=LA(),o={},i=Object.keys(r);function a(c){let u=function(...d){let p=d[0];return p==null?p:(p.length>1&&(d=p),c(d))};return"conversion"in c&&(u.conversion=c.conversion),u}function s(c){let u=function(...d){let p=d[0];if(p==null)return p;p.length>1&&(d=p);let f=c(d);if(typeof f=="object")for(let h=f.length,y=0;y<h;y++)f[y]=Math.round(f[y]);return f};return"conversion"in c&&(u.conversion=c.conversion),u}i.forEach(c=>{o[c]={},Object.defineProperty(o[c],"channels",{value:r[c].channels}),Object.defineProperty(o[c],"labels",{value:r[c].labels});let u=n(c);Object.keys(u).forEach(d=>{let p=u[d];o[c][d]=s(p),o[c][d].raw=a(p)})}),t.exports=o}}),$A=N({"../../node_modules/ansi-styles/index.js"(e,t){var r=(p,f)=>(...h)=>`\x1B[${p(...h)+f}m`,n=(p,f)=>(...h)=>{let y=p(...h);return`\x1B[${38+f};5;${y}m`},o=(p,f)=>(...h)=>{let y=p(...h);return`\x1B[${38+f};2;${y[0]};${y[1]};${y[2]}m`},i=p=>p,a=(p,f,h)=>[p,f,h],s=(p,f,h)=>{Object.defineProperty(p,f,{get:()=>{let y=h();return Object.defineProperty(p,f,{value:y,enumerable:!0,configurable:!0}),y},enumerable:!0,configurable:!0})},c,u=(p,f,h,y)=>{c===void 0&&(c=DA());let g=y?10:0,E={};for(let[b,w]of Object.entries(c)){let P=b==="ansi16"?"ansi":b;b===f?E[P]=p(h,g):typeof w=="object"&&(E[P]=p(w[f],g))}return E};function d(){let p=new Map,f={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]}};f.color.gray=f.color.blackBright,f.bgColor.bgGray=f.bgColor.bgBlackBright,f.color.grey=f.color.blackBright,f.bgColor.bgGrey=f.bgColor.bgBlackBright;for(let[h,y]of Object.entries(f)){for(let[g,E]of Object.entries(y))f[g]={open:`\x1B[${E[0]}m`,close:`\x1B[${E[1]}m`},y[g]=f[g],p.set(E[0],E[1]);Object.defineProperty(f,h,{value:y,enumerable:!1})}return Object.defineProperty(f,"codes",{value:p,enumerable:!1}),f.color.close="\x1B[39m",f.bgColor.close="\x1B[49m",s(f.color,"ansi",()=>u(r,"ansi16",i,!1)),s(f.color,"ansi256",()=>u(n,"ansi256",i,!1)),s(f.color,"ansi16m",()=>u(o,"rgb",a,!1)),s(f.bgColor,"ansi",()=>u(r,"ansi16",i,!0)),s(f.bgColor,"ansi256",()=>u(n,"ansi256",i,!0)),s(f.bgColor,"ansi16m",()=>u(o,"rgb",a,!0)),f}Object.defineProperty(t,"exports",{enumerable:!0,get:d})}}),BA=N({"../../node_modules/supports-color/browser.js"(e,t){t.exports={stdout:!1,stderr:!1}}}),FA=N({"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/util.js"(e,t){var r=(o,i,a)=>{let s=o.indexOf(i);if(s===-1)return o;let c=i.length,u=0,d="";do d+=o.substr(u,s-u)+i+a,u=s+c,s=o.indexOf(i,u);while(s!==-1);return d+=o.substr(u),d},n=(o,i,a,s)=>{let c=0,u="";do{let d=o[s-1]==="\r";u+=o.substr(c,(d?s-1:s)-c)+i+(d?`\r
9
+ `:`
10
+ `)+a,c=s+1,s=o.indexOf(`
11
+ `,c)}while(s!==-1);return u+=o.substr(c),u};t.exports={stringReplaceAll:r,stringEncaseCRLFWithFirstIndex:n}}}),UA=N({"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/templates.js"(e,t){var r=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,o=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,i=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
12
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function s(p){let f=p[0]==="u",h=p[1]==="{";return f&&!h&&p.length===5||p[0]==="x"&&p.length===3?String.fromCharCode(parseInt(p.slice(1),16)):f&&h?String.fromCodePoint(parseInt(p.slice(2,-1),16)):a.get(p)||p}function c(p,f){let h=[],y=f.trim().split(/\s*,\s*/g),g;for(let E of y){let b=Number(E);if(!Number.isNaN(b))h.push(b);else if(g=E.match(o))h.push(g[2].replace(i,(w,P,x)=>P?s(P):x));else throw new Error(`Invalid Chalk template style argument: ${E} (in style '${p}')`)}return h}function u(p){n.lastIndex=0;let f=[],h;for(;(h=n.exec(p))!==null;){let y=h[1];if(h[2]){let g=c(y,h[2]);f.push([y].concat(g))}else f.push([y])}return f}function d(p,f){let h={};for(let g of f)for(let E of g.styles)h[E[0]]=g.inverse?null:E.slice(1);let y=p;for(let[g,E]of Object.entries(h))if(Array.isArray(E)){if(!(g in y))throw new Error(`Unknown Chalk style: ${g}`);y=E.length>0?y[g](...E):y[g]}return y}t.exports=(p,f)=>{let h=[],y=[],g=[];if(f.replace(r,(E,b,w,P,x,C)=>{if(b)g.push(s(b));else if(P){let S=g.join("");g=[],y.push(h.length===0?S:d(p,h)(S)),h.push({inverse:w,styles:u(P)})}else if(x){if(h.length===0)throw new Error("Found extraneous } in Chalk template literal");y.push(d(p,h)(g.join(""))),g=[],h.pop()}else g.push(C)}),y.push(g.join("")),h.length>0){let E=`Chalk template literal is missing ${h.length} closing bracket${h.length===1?"":"s"} (\`}\`)`;throw new Error(E)}return y.join("")}}}),Rm=N({"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/index.js"(e,t){var r=$A(),{stdout:n,stderr:o}=BA(),{stringReplaceAll:i,stringEncaseCRLFWithFirstIndex:a}=FA(),s=["ansi","ansi","ansi256","ansi16m"],c=Object.create(null),u=(C,S={})=>{if(S.level>3||S.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let _=n?n.level:0;C.level=S.level===void 0?_:S.level},d=class{constructor(C){return p(C)}},p=C=>{let S={};return u(S,C),S.template=(..._)=>P(S.template,..._),Object.setPrototypeOf(S,f.prototype),Object.setPrototypeOf(S.template,S),S.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},S.template.Instance=d,S.template};function f(C){return p(C)}for(let[C,S]of Object.entries(r))c[C]={get(){let _=E(this,g(S.open,S.close,this._styler),this._isEmpty);return Object.defineProperty(this,C,{value:_}),_}};c.visible={get(){let C=E(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:C}),C}};var h=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let C of h)c[C]={get(){let{level:S}=this;return function(..._){let T=g(r.color[s[S]][C](..._),r.color.close,this._styler);return E(this,T,this._isEmpty)}}};for(let C of h){let S="bg"+C[0].toUpperCase()+C.slice(1);c[S]={get(){let{level:_}=this;return function(...T){let A=g(r.bgColor[s[_]][C](...T),r.bgColor.close,this._styler);return E(this,A,this._isEmpty)}}}}var y=Object.defineProperties(()=>{},{...c,level:{enumerable:!0,get(){return this._generator.level},set(C){this._generator.level=C}}}),g=(C,S,_)=>{let T,A;return _===void 0?(T=C,A=S):(T=_.openAll+C,A=S+_.closeAll),{open:C,close:S,openAll:T,closeAll:A,parent:_}},E=(C,S,_)=>{let T=(...A)=>b(T,A.length===1?""+A[0]:A.join(" "));return T.__proto__=y,T._generator=C,T._styler=S,T._isEmpty=_,T},b=(C,S)=>{if(C.level<=0||!S)return C._isEmpty?"":S;let _=C._styler;if(_===void 0)return S;let{openAll:T,closeAll:A}=_;if(S.indexOf("\x1B")!==-1)for(;_!==void 0;)S=i(S,_.close,_.open),_=_.parent;let D=S.indexOf(`
13
+ `);return D!==-1&&(S=a(S,A,T,D)),T+S+A},w,P=(C,...S)=>{let[_]=S;if(!Array.isArray(_))return S.join(" ");let T=S.slice(1),A=[_.raw[0]];for(let D=1;D<_.length;D++)A.push(String(T[D-1]).replace(/[{}\\]/g,"\\$&"),String(_.raw[D]));return w===void 0&&(w=UA()),w(C,A.join(""))};Object.defineProperties(f.prototype,c);var x=f();x.supportsColor=n,x.stderr=f({level:o?o.level:0}),x.stderr.supportsColor=o,x.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"},t.exports=x}}),JA=N({"../../node_modules/lodash/_listCacheClear.js"(e,t){function r(){this.__data__=[],this.size=0}t.exports=r}}),Om=N({"../../node_modules/lodash/eq.js"(e,t){function r(n,o){return n===o||n!==n&&o!==o}t.exports=r}}),ka=N({"../../node_modules/lodash/_assocIndexOf.js"(e,t){var r=Om();function n(o,i){for(var a=o.length;a--;)if(r(o[a][0],i))return a;return-1}t.exports=n}}),VA=N({"../../node_modules/lodash/_listCacheDelete.js"(e,t){var r=ka(),n=Array.prototype,o=n.splice;function i(a){var s=this.__data__,c=r(s,a);if(c<0)return!1;var u=s.length-1;return c==u?s.pop():o.call(s,c,1),--this.size,!0}t.exports=i}}),HA=N({"../../node_modules/lodash/_listCacheGet.js"(e,t){var r=ka();function n(o){var i=this.__data__,a=r(i,o);return a<0?void 0:i[a][1]}t.exports=n}}),GA=N({"../../node_modules/lodash/_listCacheHas.js"(e,t){var r=ka();function n(o){return r(this.__data__,o)>-1}t.exports=n}}),zA=N({"../../node_modules/lodash/_listCacheSet.js"(e,t){var r=ka();function n(o,i){var a=this.__data__,s=r(a,o);return s<0?(++this.size,a.push([o,i])):a[s][1]=i,this}t.exports=n}}),La=N({"../../node_modules/lodash/_ListCache.js"(e,t){var r=JA(),n=VA(),o=HA(),i=GA(),a=zA();function s(c){var u=-1,d=c==null?0:c.length;for(this.clear();++u<d;){var p=c[u];this.set(p[0],p[1])}}s.prototype.clear=r,s.prototype.delete=n,s.prototype.get=o,s.prototype.has=i,s.prototype.set=a,t.exports=s}}),WA=N({"../../node_modules/lodash/_stackClear.js"(e,t){var r=La();function n(){this.__data__=new r,this.size=0}t.exports=n}}),KA=N({"../../node_modules/lodash/_stackDelete.js"(e,t){function r(n){var o=this.__data__,i=o.delete(n);return this.size=o.size,i}t.exports=r}}),YA=N({"../../node_modules/lodash/_stackGet.js"(e,t){function r(n){return this.__data__.get(n)}t.exports=r}}),XA=N({"../../node_modules/lodash/_stackHas.js"(e,t){function r(n){return this.__data__.has(n)}t.exports=r}}),Pm=N({"../../node_modules/lodash/_freeGlobal.js"(e,t){var r=typeof global=="object"&&global&&global.Object===Object&&global;t.exports=r}}),lr=N({"../../node_modules/lodash/_root.js"(e,t){var r=Pm(),n=typeof self=="object"&&self&&self.Object===Object&&self,o=r||n||Function("return this")();t.exports=o}}),qu=N({"../../node_modules/lodash/_Symbol.js"(e,t){var r=lr(),n=r.Symbol;t.exports=n}}),QA=N({"../../node_modules/lodash/_getRawTag.js"(e,t){var r=qu(),n=Object.prototype,o=n.hasOwnProperty,i=n.toString,a=r?r.toStringTag:void 0;function s(c){var u=o.call(c,a),d=c[a];try{c[a]=void 0;var p=!0}catch{}var f=i.call(c);return p&&(u?c[a]=d:delete c[a]),f}t.exports=s}}),ZA=N({"../../node_modules/lodash/_objectToString.js"(e,t){var r=Object.prototype,n=r.toString;function o(i){return n.call(i)}t.exports=o}}),Da=N({"../../node_modules/lodash/_baseGetTag.js"(e,t){var r=qu(),n=QA(),o=ZA(),i="[object Null]",a="[object Undefined]",s=r?r.toStringTag:void 0;function c(u){return u==null?u===void 0?a:i:s&&s in Object(u)?n(u):o(u)}t.exports=c}}),xm=N({"../../node_modules/lodash/isObject.js"(e,t){function r(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}t.exports=r}}),Cm=N({"../../node_modules/lodash/isFunction.js"(e,t){var r=Da(),n=xm(),o="[object AsyncFunction]",i="[object Function]",a="[object GeneratorFunction]",s="[object Proxy]";function c(u){if(!n(u))return!1;var d=r(u);return d==i||d==a||d==o||d==s}t.exports=c}}),eR=N({"../../node_modules/lodash/_coreJsData.js"(e,t){var r=lr(),n=r["__core-js_shared__"];t.exports=n}}),tR=N({"../../node_modules/lodash/_isMasked.js"(e,t){var r=eR(),n=(function(){var i=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function o(i){return!!n&&n in i}t.exports=o}}),Nm=N({"../../node_modules/lodash/_toSource.js"(e,t){var r=Function.prototype,n=r.toString;function o(i){if(i!=null){try{return n.call(i)}catch{}try{return i+""}catch{}}return""}t.exports=o}}),rR=N({"../../node_modules/lodash/_baseIsNative.js"(e,t){var r=Cm(),n=tR(),o=xm(),i=Nm(),a=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,d=c.toString,p=u.hasOwnProperty,f=RegExp("^"+d.call(p).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(y){if(!o(y)||n(y))return!1;var g=r(y)?f:s;return g.test(i(y))}t.exports=h}}),nR=N({"../../node_modules/lodash/_getValue.js"(e,t){function r(n,o){return n?.[o]}t.exports=r}}),Fn=N({"../../node_modules/lodash/_getNative.js"(e,t){var r=rR(),n=nR();function o(i,a){var s=n(i,a);return r(s)?s:void 0}t.exports=o}}),Mu=N({"../../node_modules/lodash/_Map.js"(e,t){var r=Fn(),n=lr(),o=r(n,"Map");t.exports=o}}),$a=N({"../../node_modules/lodash/_nativeCreate.js"(e,t){var r=Fn(),n=r(Object,"create");t.exports=n}}),oR=N({"../../node_modules/lodash/_hashClear.js"(e,t){var r=$a();function n(){this.__data__=r?r(null):{},this.size=0}t.exports=n}}),iR=N({"../../node_modules/lodash/_hashDelete.js"(e,t){function r(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}t.exports=r}}),aR=N({"../../node_modules/lodash/_hashGet.js"(e,t){var r=$a(),n="__lodash_hash_undefined__",o=Object.prototype,i=o.hasOwnProperty;function a(s){var c=this.__data__;if(r){var u=c[s];return u===n?void 0:u}return i.call(c,s)?c[s]:void 0}t.exports=a}}),sR=N({"../../node_modules/lodash/_hashHas.js"(e,t){var r=$a(),n=Object.prototype,o=n.hasOwnProperty;function i(a){var s=this.__data__;return r?s[a]!==void 0:o.call(s,a)}t.exports=i}}),lR=N({"../../node_modules/lodash/_hashSet.js"(e,t){var r=$a(),n="__lodash_hash_undefined__";function o(i,a){var s=this.__data__;return this.size+=this.has(i)?0:1,s[i]=r&&a===void 0?n:a,this}t.exports=o}}),uR=N({"../../node_modules/lodash/_Hash.js"(e,t){var r=oR(),n=iR(),o=aR(),i=sR(),a=lR();function s(c){var u=-1,d=c==null?0:c.length;for(this.clear();++u<d;){var p=c[u];this.set(p[0],p[1])}}s.prototype.clear=r,s.prototype.delete=n,s.prototype.get=o,s.prototype.has=i,s.prototype.set=a,t.exports=s}}),cR=N({"../../node_modules/lodash/_mapCacheClear.js"(e,t){var r=uR(),n=La(),o=Mu();function i(){this.size=0,this.__data__={hash:new r,map:new(o||n),string:new r}}t.exports=i}}),dR=N({"../../node_modules/lodash/_isKeyable.js"(e,t){function r(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}t.exports=r}}),Ba=N({"../../node_modules/lodash/_getMapData.js"(e,t){var r=dR();function n(o,i){var a=o.__data__;return r(i)?a[typeof i=="string"?"string":"hash"]:a.map}t.exports=n}}),pR=N({"../../node_modules/lodash/_mapCacheDelete.js"(e,t){var r=Ba();function n(o){var i=r(this,o).delete(o);return this.size-=i?1:0,i}t.exports=n}}),fR=N({"../../node_modules/lodash/_mapCacheGet.js"(e,t){var r=Ba();function n(o){return r(this,o).get(o)}t.exports=n}}),hR=N({"../../node_modules/lodash/_mapCacheHas.js"(e,t){var r=Ba();function n(o){return r(this,o).has(o)}t.exports=n}}),mR=N({"../../node_modules/lodash/_mapCacheSet.js"(e,t){var r=Ba();function n(o,i){var a=r(this,o),s=a.size;return a.set(o,i),this.size+=a.size==s?0:1,this}t.exports=n}}),Im=N({"../../node_modules/lodash/_MapCache.js"(e,t){var r=cR(),n=pR(),o=fR(),i=hR(),a=mR();function s(c){var u=-1,d=c==null?0:c.length;for(this.clear();++u<d;){var p=c[u];this.set(p[0],p[1])}}s.prototype.clear=r,s.prototype.delete=n,s.prototype.get=o,s.prototype.has=i,s.prototype.set=a,t.exports=s}}),yR=N({"../../node_modules/lodash/_stackSet.js"(e,t){var r=La(),n=Mu(),o=Im(),i=200;function a(s,c){var u=this.__data__;if(u instanceof r){var d=u.__data__;if(!n||d.length<i-1)return d.push([s,c]),this.size=++u.size,this;u=this.__data__=new o(d)}return u.set(s,c),this.size=u.size,this}t.exports=a}}),gR=N({"../../node_modules/lodash/_Stack.js"(e,t){var r=La(),n=WA(),o=KA(),i=YA(),a=XA(),s=yR();function c(u){var d=this.__data__=new r(u);this.size=d.size}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,t.exports=c}}),bR=N({"../../node_modules/lodash/_setCacheAdd.js"(e,t){var r="__lodash_hash_undefined__";function n(o){return this.__data__.set(o,r),this}t.exports=n}}),vR=N({"../../node_modules/lodash/_setCacheHas.js"(e,t){function r(n){return this.__data__.has(n)}t.exports=r}}),ER=N({"../../node_modules/lodash/_SetCache.js"(e,t){var r=Im(),n=bR(),o=vR();function i(a){var s=-1,c=a==null?0:a.length;for(this.__data__=new r;++s<c;)this.add(a[s])}i.prototype.add=i.prototype.push=n,i.prototype.has=o,t.exports=i}}),wR=N({"../../node_modules/lodash/_arraySome.js"(e,t){function r(n,o){for(var i=-1,a=n==null?0:n.length;++i<a;)if(o(n[i],i,n))return!0;return!1}t.exports=r}}),_R=N({"../../node_modules/lodash/_cacheHas.js"(e,t){function r(n,o){return n.has(o)}t.exports=r}}),jm=N({"../../node_modules/lodash/_equalArrays.js"(e,t){var r=ER(),n=wR(),o=_R(),i=1,a=2;function s(c,u,d,p,f,h){var y=d&i,g=c.length,E=u.length;if(g!=E&&!(y&&E>g))return!1;var b=h.get(c),w=h.get(u);if(b&&w)return b==u&&w==c;var P=-1,x=!0,C=d&a?new r:void 0;for(h.set(c,u),h.set(u,c);++P<g;){var S=c[P],_=u[P];if(p)var T=y?p(_,S,P,u,c,h):p(S,_,P,c,u,h);if(T!==void 0){if(T)continue;x=!1;break}if(C){if(!n(u,function(A,D){if(!o(C,D)&&(S===A||f(S,A,d,p,h)))return C.push(D)})){x=!1;break}}else if(!(S===_||f(S,_,d,p,h))){x=!1;break}}return h.delete(c),h.delete(u),x}t.exports=s}}),TR=N({"../../node_modules/lodash/_Uint8Array.js"(e,t){var r=lr(),n=r.Uint8Array;t.exports=n}}),SR=N({"../../node_modules/lodash/_mapToArray.js"(e,t){function r(n){var o=-1,i=Array(n.size);return n.forEach(function(a,s){i[++o]=[s,a]}),i}t.exports=r}}),AR=N({"../../node_modules/lodash/_setToArray.js"(e,t){function r(n){var o=-1,i=Array(n.size);return n.forEach(function(a){i[++o]=a}),i}t.exports=r}}),RR=N({"../../node_modules/lodash/_equalByTag.js"(e,t){var r=qu(),n=TR(),o=Om(),i=jm(),a=SR(),s=AR(),c=1,u=2,d="[object Boolean]",p="[object Date]",f="[object Error]",h="[object Map]",y="[object Number]",g="[object RegExp]",E="[object Set]",b="[object String]",w="[object Symbol]",P="[object ArrayBuffer]",x="[object DataView]",C=r?r.prototype:void 0,S=C?C.valueOf:void 0;function _(T,A,D,k,U,I,R){switch(D){case x:if(T.byteLength!=A.byteLength||T.byteOffset!=A.byteOffset)return!1;T=T.buffer,A=A.buffer;case P:return!(T.byteLength!=A.byteLength||!I(new n(T),new n(A)));case d:case p:case y:return o(+T,+A);case f:return T.name==A.name&&T.message==A.message;case g:case b:return T==A+"";case h:var M=a;case E:var L=k&c;if(M||(M=s),T.size!=A.size&&!L)return!1;var J=R.get(T);if(J)return J==A;k|=u,R.set(T,A);var W=i(M(T),M(A),k,U,I,R);return R.delete(T),W;case w:if(S)return S.call(T)==S.call(A)}return!1}t.exports=_}}),OR=N({"../../node_modules/lodash/_arrayPush.js"(e,t){function r(n,o){for(var i=-1,a=o.length,s=n.length;++i<a;)n[s+i]=o[i];return n}t.exports=r}}),ku=N({"../../node_modules/lodash/isArray.js"(e,t){var r=Array.isArray;t.exports=r}}),PR=N({"../../node_modules/lodash/_baseGetAllKeys.js"(e,t){var r=OR(),n=ku();function o(i,a,s){var c=a(i);return n(i)?c:r(c,s(i))}t.exports=o}}),xR=N({"../../node_modules/lodash/_arrayFilter.js"(e,t){function r(n,o){for(var i=-1,a=n==null?0:n.length,s=0,c=[];++i<a;){var u=n[i];o(u,i,n)&&(c[s++]=u)}return c}t.exports=r}}),CR=N({"../../node_modules/lodash/stubArray.js"(e,t){function r(){return[]}t.exports=r}}),NR=N({"../../node_modules/lodash/_getSymbols.js"(e,t){var r=xR(),n=CR(),o=Object.prototype,i=o.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(c){return c==null?[]:(c=Object(c),r(a(c),function(u){return i.call(c,u)}))}:n;t.exports=s}}),IR=N({"../../node_modules/lodash/_baseTimes.js"(e,t){function r(n,o){for(var i=-1,a=Array(n);++i<n;)a[i]=o(i);return a}t.exports=r}}),Fa=N({"../../node_modules/lodash/isObjectLike.js"(e,t){function r(n){return n!=null&&typeof n=="object"}t.exports=r}}),jR=N({"../../node_modules/lodash/_baseIsArguments.js"(e,t){var r=Da(),n=Fa(),o="[object Arguments]";function i(a){return n(a)&&r(a)==o}t.exports=i}}),qR=N({"../../node_modules/lodash/isArguments.js"(e,t){var r=jR(),n=Fa(),o=Object.prototype,i=o.hasOwnProperty,a=o.propertyIsEnumerable,s=r((function(){return arguments})())?r:function(c){return n(c)&&i.call(c,"callee")&&!a.call(c,"callee")};t.exports=s}}),MR=N({"../../node_modules/lodash/stubFalse.js"(e,t){function r(){return!1}t.exports=r}}),qm=N({"../../node_modules/lodash/isBuffer.js"(e,t){var r=lr(),n=MR(),o=typeof e=="object"&&e&&!e.nodeType&&e,i=o&&typeof t=="object"&&t&&!t.nodeType&&t,a=i&&i.exports===o,s=a?r.Buffer:void 0,c=s?s.isBuffer:void 0,u=c||n;t.exports=u}}),kR=N({"../../node_modules/lodash/_isIndex.js"(e,t){var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function o(i,a){var s=typeof i;return a=a??r,!!a&&(s=="number"||s!="symbol"&&n.test(i))&&i>-1&&i%1==0&&i<a}t.exports=o}}),Mm=N({"../../node_modules/lodash/isLength.js"(e,t){var r=9007199254740991;function n(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=r}t.exports=n}}),LR=N({"../../node_modules/lodash/_baseIsTypedArray.js"(e,t){var r=Da(),n=Mm(),o=Fa(),i="[object Arguments]",a="[object Array]",s="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Function]",p="[object Map]",f="[object Number]",h="[object Object]",y="[object RegExp]",g="[object Set]",E="[object String]",b="[object WeakMap]",w="[object ArrayBuffer]",P="[object DataView]",x="[object Float32Array]",C="[object Float64Array]",S="[object Int8Array]",_="[object Int16Array]",T="[object Int32Array]",A="[object Uint8Array]",D="[object Uint8ClampedArray]",k="[object Uint16Array]",U="[object Uint32Array]",I={};I[x]=I[C]=I[S]=I[_]=I[T]=I[A]=I[D]=I[k]=I[U]=!0,I[i]=I[a]=I[w]=I[s]=I[P]=I[c]=I[u]=I[d]=I[p]=I[f]=I[h]=I[y]=I[g]=I[E]=I[b]=!1;function R(M){return o(M)&&n(M.length)&&!!I[r(M)]}t.exports=R}}),DR=N({"../../node_modules/lodash/_baseUnary.js"(e,t){function r(n){return function(o){return n(o)}}t.exports=r}}),$R=N({"../../node_modules/lodash/_nodeUtil.js"(e,t){var r=Pm(),n=typeof e=="object"&&e&&!e.nodeType&&e,o=n&&typeof t=="object"&&t&&!t.nodeType&&t,i=o&&o.exports===n,a=i&&r.process,s=(function(){try{var c=o&&o.require&&o.require("util").types;return c||a&&a.binding&&a.binding("util")}catch{}})();t.exports=s}}),km=N({"../../node_modules/lodash/isTypedArray.js"(e,t){var r=LR(),n=DR(),o=$R(),i=o&&o.isTypedArray,a=i?n(i):r;t.exports=a}}),BR=N({"../../node_modules/lodash/_arrayLikeKeys.js"(e,t){var r=IR(),n=qR(),o=ku(),i=qm(),a=kR(),s=km(),c=Object.prototype,u=c.hasOwnProperty;function d(p,f){var h=o(p),y=!h&&n(p),g=!h&&!y&&i(p),E=!h&&!y&&!g&&s(p),b=h||y||g||E,w=b?r(p.length,String):[],P=w.length;for(var x in p)(f||u.call(p,x))&&!(b&&(x=="length"||g&&(x=="offset"||x=="parent")||E&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||a(x,P)))&&w.push(x);return w}t.exports=d}}),FR=N({"../../node_modules/lodash/_isPrototype.js"(e,t){var r=Object.prototype;function n(o){var i=o&&o.constructor,a=typeof i=="function"&&i.prototype||r;return o===a}t.exports=n}}),UR=N({"../../node_modules/lodash/_overArg.js"(e,t){function r(n,o){return function(i){return n(o(i))}}t.exports=r}}),JR=N({"../../node_modules/lodash/_nativeKeys.js"(e,t){var r=UR(),n=r(Object.keys,Object);t.exports=n}}),VR=N({"../../node_modules/lodash/_baseKeys.js"(e,t){var r=FR(),n=JR(),o=Object.prototype,i=o.hasOwnProperty;function a(s){if(!r(s))return n(s);var c=[];for(var u in Object(s))i.call(s,u)&&u!="constructor"&&c.push(u);return c}t.exports=a}}),HR=N({"../../node_modules/lodash/isArrayLike.js"(e,t){var r=Cm(),n=Mm();function o(i){return i!=null&&n(i.length)&&!r(i)}t.exports=o}}),GR=N({"../../node_modules/lodash/keys.js"(e,t){var r=BR(),n=VR(),o=HR();function i(a){return o(a)?r(a):n(a)}t.exports=i}}),zR=N({"../../node_modules/lodash/_getAllKeys.js"(e,t){var r=PR(),n=NR(),o=GR();function i(a){return r(a,o,n)}t.exports=i}}),WR=N({"../../node_modules/lodash/_equalObjects.js"(e,t){var r=zR(),n=1,o=Object.prototype,i=o.hasOwnProperty;function a(s,c,u,d,p,f){var h=u&n,y=r(s),g=y.length,E=r(c),b=E.length;if(g!=b&&!h)return!1;for(var w=g;w--;){var P=y[w];if(!(h?P in c:i.call(c,P)))return!1}var x=f.get(s),C=f.get(c);if(x&&C)return x==c&&C==s;var S=!0;f.set(s,c),f.set(c,s);for(var _=h;++w<g;){P=y[w];var T=s[P],A=c[P];if(d)var D=h?d(A,T,P,c,s,f):d(T,A,P,s,c,f);if(!(D===void 0?T===A||p(T,A,u,d,f):D)){S=!1;break}_||(_=P=="constructor")}if(S&&!_){var k=s.constructor,U=c.constructor;k!=U&&"constructor"in s&&"constructor"in c&&!(typeof k=="function"&&k instanceof k&&typeof U=="function"&&U instanceof U)&&(S=!1)}return f.delete(s),f.delete(c),S}t.exports=a}}),KR=N({"../../node_modules/lodash/_DataView.js"(e,t){var r=Fn(),n=lr(),o=r(n,"DataView");t.exports=o}}),YR=N({"../../node_modules/lodash/_Promise.js"(e,t){var r=Fn(),n=lr(),o=r(n,"Promise");t.exports=o}}),XR=N({"../../node_modules/lodash/_Set.js"(e,t){var r=Fn(),n=lr(),o=r(n,"Set");t.exports=o}}),QR=N({"../../node_modules/lodash/_WeakMap.js"(e,t){var r=Fn(),n=lr(),o=r(n,"WeakMap");t.exports=o}}),ZR=N({"../../node_modules/lodash/_getTag.js"(e,t){var r=KR(),n=Mu(),o=YR(),i=XR(),a=QR(),s=Da(),c=Nm(),u="[object Map]",d="[object Object]",p="[object Promise]",f="[object Set]",h="[object WeakMap]",y="[object DataView]",g=c(r),E=c(n),b=c(o),w=c(i),P=c(a),x=s;(r&&x(new r(new ArrayBuffer(1)))!=y||n&&x(new n)!=u||o&&x(o.resolve())!=p||i&&x(new i)!=f||a&&x(new a)!=h)&&(x=function(C){var S=s(C),_=S==d?C.constructor:void 0,T=_?c(_):"";if(T)switch(T){case g:return y;case E:return u;case b:return p;case w:return f;case P:return h}return S}),t.exports=x}}),eO=N({"../../node_modules/lodash/_baseIsEqualDeep.js"(e,t){var r=gR(),n=jm(),o=RR(),i=WR(),a=ZR(),s=ku(),c=qm(),u=km(),d=1,p="[object Arguments]",f="[object Array]",h="[object Object]",y=Object.prototype,g=y.hasOwnProperty;function E(b,w,P,x,C,S){var _=s(b),T=s(w),A=_?f:a(b),D=T?f:a(w);A=A==p?h:A,D=D==p?h:D;var k=A==h,U=D==h,I=A==D;if(I&&c(b)){if(!c(w))return!1;_=!0,k=!1}if(I&&!k)return S||(S=new r),_||u(b)?n(b,w,P,x,C,S):o(b,w,A,P,x,C,S);if(!(P&d)){var R=k&&g.call(b,"__wrapped__"),M=U&&g.call(w,"__wrapped__");if(R||M){var L=R?b.value():b,J=M?w.value():w;return S||(S=new r),C(L,J,P,x,S)}}return I?(S||(S=new r),i(b,w,P,x,C,S)):!1}t.exports=E}}),tO=N({"../../node_modules/lodash/_baseIsEqual.js"(e,t){var r=eO(),n=Fa();function o(i,a,s,c,u){return i===a?!0:i==null||a==null||!n(i)&&!n(a)?i!==i&&a!==a:r(i,a,s,c,o,u)}t.exports=o}}),Lm=N({"../../node_modules/lodash/isEqualWith.js"(e,t){var r=tO();function n(o,i,a){a=typeof a=="function"?a:void 0;var s=a?a(o,i):void 0;return s===void 0?r(o,i,void 0,a):!!s}t.exports=n}}),Dm=N({"../../node_modules/css.escape/css.escape.js"(e,t){(function(r,n){typeof e=="object"?t.exports=n(r):typeof define=="function"&&define.amd?define([],n.bind(r,r)):n(r)})(typeof global<"u"?global:e,function(r){if(r.CSS&&r.CSS.escape)return r.CSS.escape;var n=function(o){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var i=String(o),a=i.length,s=-1,c,u="",d=i.charCodeAt(0);++s<a;){if(c=i.charCodeAt(s),c==0){u+="�";continue}if(c>=1&&c<=31||c==127||s==0&&c>=48&&c<=57||s==1&&c>=48&&c<=57&&d==45){u+="\\"+c.toString(16)+" ";continue}if(s==0&&a==1&&c==45){u+="\\"+i.charAt(s);continue}if(c>=128||c==45||c==95||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122){u+=i.charAt(s);continue}u+="\\"+i.charAt(s)}return u};return r.CSS||(r.CSS={}),r.CSS.escape=n,n})}}),$m=N({"../../node_modules/@testing-library/dom/node_modules/ansi-styles/index.js"(e,t){var r=(i=0)=>a=>`\x1B[${38+i};5;${a}m`,n=(i=0)=>(a,s,c)=>`\x1B[${38+i};2;${a};${s};${c}m`;function o(){let i=new Map,a={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]}};a.color.gray=a.color.blackBright,a.bgColor.bgGray=a.bgColor.bgBlackBright,a.color.grey=a.color.blackBright,a.bgColor.bgGrey=a.bgColor.bgBlackBright;for(let[s,c]of Object.entries(a)){for(let[u,d]of Object.entries(c))a[u]={open:`\x1B[${d[0]}m`,close:`\x1B[${d[1]}m`},c[u]=a[u],i.set(d[0],d[1]);Object.defineProperty(a,s,{value:c,enumerable:!1})}return Object.defineProperty(a,"codes",{value:i,enumerable:!1}),a.color.close="\x1B[39m",a.bgColor.close="\x1B[49m",a.color.ansi256=r(),a.color.ansi16m=n(),a.bgColor.ansi256=r(10),a.bgColor.ansi16m=n(10),Object.defineProperties(a,{rgbToAnsi256:{value:(s,c,u)=>s===c&&c===u?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(c/255*5)+Math.round(u/255*5),enumerable:!1},hexToRgb:{value:s=>{let c=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(s.toString(16));if(!c)return[0,0,0];let{colorString:u}=c.groups;u.length===3&&(u=u.split("").map(p=>p+p).join(""));let d=Number.parseInt(u,16);return[d>>16&255,d>>8&255,d&255]},enumerable:!1},hexToAnsi256:{value:s=>a.rgbToAnsi256(...a.hexToRgb(s)),enumerable:!1}}),a}Object.defineProperty(t,"exports",{enumerable:!0,get:o})}}),Ua=N({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/collections.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printIteratorEntries=r,e.printIteratorValues=n,e.printListItems=o,e.printObjectProperties=i;var t=(a,s)=>{let c=Object.keys(a).sort(s);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(a).forEach(u=>{Object.getOwnPropertyDescriptor(a,u).enumerable&&c.push(u)}),c};function r(a,s,c,u,d,p,f=": "){let h="",y=a.next();if(!y.done){h+=s.spacingOuter;let g=c+s.indent;for(;!y.done;){let E=p(y.value[0],s,g,u,d),b=p(y.value[1],s,g,u,d);h+=g+E+f+b,y=a.next(),y.done?s.min||(h+=","):h+=","+s.spacingInner}h+=s.spacingOuter+c}return h}function n(a,s,c,u,d,p){let f="",h=a.next();if(!h.done){f+=s.spacingOuter;let y=c+s.indent;for(;!h.done;)f+=y+p(h.value,s,y,u,d),h=a.next(),h.done?s.min||(f+=","):f+=","+s.spacingInner;f+=s.spacingOuter+c}return f}function o(a,s,c,u,d,p){let f="";if(a.length){f+=s.spacingOuter;let h=c+s.indent;for(let y=0;y<a.length;y++)f+=h,y in a&&(f+=p(a[y],s,h,u,d)),y<a.length-1?f+=","+s.spacingInner:s.min||(f+=",");f+=s.spacingOuter+c}return f}function i(a,s,c,u,d,p){let f="",h=t(a,s.compareKeys);if(h.length){f+=s.spacingOuter;let y=c+s.indent;for(let g=0;g<h.length;g++){let E=h[g],b=p(E,s,y,u,d),w=p(a[E],s,y,u,d);f+=y+b+": "+w,g<h.length-1?f+=","+s.spacingInner:s.min||(f+=",")}f+=s.spacingOuter+c}return f}}}),rO=N({"../../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=Ua(),r=(function(){return typeof globalThis<"u"?globalThis:typeof r<"u"?r:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})(),n=r["jest-symbol-do-not-touch"]||r.Symbol,o=typeof n=="function"&&n.for?n.for("jest.asymmetricMatcher"):1267621,i=" ",a=(d,p,f,h,y,g)=>{let E=d.toString();return E==="ArrayContaining"||E==="ArrayNotContaining"?++h>p.maxDepth?"["+E+"]":E+i+"["+(0,t.printListItems)(d.sample,p,f,h,y,g)+"]":E==="ObjectContaining"||E==="ObjectNotContaining"?++h>p.maxDepth?"["+E+"]":E+i+"{"+(0,t.printObjectProperties)(d.sample,p,f,h,y,g)+"}":E==="StringMatching"||E==="StringNotMatching"||E==="StringContaining"||E==="StringNotContaining"?E+i+g(d.sample,p,f,h,y):d.toAsymmetricMatcher()};e.serialize=a;var s=d=>d&&d.$$typeof===o;e.test=s;var c={serialize:a,test:s},u=c;e.default=u}}),nO=N({"../../node_modules/@testing-library/dom/node_modules/ansi-regex/index.js"(e,t){t.exports=({onlyFirst:r=!1}={})=>{let n=["[\\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(n,r?void 0:"g")}}}),oO=N({"../../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=n(nO()),r=n($m());function n(u){return u&&u.__esModule?u:{default:u}}var o=u=>u.replace((0,t.default)(),d=>{switch(d){case r.default.red.close:case r.default.green.close:case r.default.cyan.close:case r.default.gray.close:case r.default.white.close:case r.default.yellow.close:case r.default.bgRed.close:case r.default.bgGreen.close:case r.default.bgYellow.close:case r.default.inverse.close:case r.default.dim.close:case r.default.bold.close:case r.default.reset.open:case r.default.reset.close:return"</>";case r.default.red.open:return"<red>";case r.default.green.open:return"<green>";case r.default.cyan.open:return"<cyan>";case r.default.gray.open:return"<gray>";case r.default.white.open:return"<white>";case r.default.yellow.open:return"<yellow>";case r.default.bgRed.open:return"<bgRed>";case r.default.bgGreen.open:return"<bgGreen>";case r.default.bgYellow.open:return"<bgYellow>";case r.default.inverse.open:return"<inverse>";case r.default.dim.open:return"<dim>";case r.default.bold.open:return"<bold>";default:return""}}),i=u=>typeof u=="string"&&!!u.match((0,t.default)());e.test=i;var a=(u,d,p,f,h,y)=>y(o(u),d,p,f,h);e.serialize=a;var s={serialize:a,test:i},c=s;e.default=c}}),iO=N({"../../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=Ua(),r=" ",n=["DOMStringMap","NamedNodeMap"],o=/^(HTML\w*Collection|NodeList)$/,i=p=>n.indexOf(p)!==-1||o.test(p),a=p=>p&&p.constructor&&!!p.constructor.name&&i(p.constructor.name);e.test=a;var s=p=>p.constructor.name==="NamedNodeMap",c=(p,f,h,y,g,E)=>{let b=p.constructor.name;return++y>f.maxDepth?"["+b+"]":(f.min?"":b+r)+(n.indexOf(b)!==-1?"{"+(0,t.printObjectProperties)(s(p)?Array.from(p).reduce((w,P)=>(w[P.name]=P.value,w),{}):{...p},f,h,y,g,E)+"}":"["+(0,t.printListItems)(Array.from(p),f,h,y,g,E)+"]")};e.serialize=c;var u={serialize:c,test:a},d=u;e.default=d}}),aO=N({"../../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(r){return r.replace(/</g,"&lt;").replace(/>/g,"&gt;")}}}),Lu=N({"../../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=r(aO());function r(u){return u&&u.__esModule?u:{default:u}}var n=(u,d,p,f,h,y,g)=>{let E=f+p.indent,b=p.colors;return u.map(w=>{let P=d[w],x=g(P,p,E,h,y);return typeof P!="string"&&(x.indexOf(`
14
+ `)!==-1&&(x=p.spacingOuter+E+x+p.spacingOuter+f),x="{"+x+"}"),p.spacingInner+f+b.prop.open+w+b.prop.close+"="+b.value.open+x+b.value.close}).join("")};e.printProps=n;var o=(u,d,p,f,h,y)=>u.map(g=>d.spacingOuter+p+(typeof g=="string"?i(g,d):y(g,d,p,f,h))).join("");e.printChildren=o;var i=(u,d)=>{let p=d.colors.content;return p.open+(0,t.default)(u)+p.close};e.printText=i;var a=(u,d)=>{let p=d.colors.comment;return p.open+"<!--"+(0,t.default)(u)+"-->"+p.close};e.printComment=a;var s=(u,d,p,f,h)=>{let y=f.colors.tag;return y.open+"<"+u+(d&&y.close+d+f.spacingOuter+h+y.open)+(p?">"+y.close+p+f.spacingOuter+h+y.open+"</"+u:(d&&!f.min?"":" ")+"/")+">"+y.close};e.printElement=s;var c=(u,d)=>{let p=d.colors.tag;return p.open+"<"+u+p.close+" …"+p.open+" />"+p.close};e.printElementAsLeaf=c}}),sO=N({"../../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=Lu(),r=1,n=3,o=8,i=11,a=/^((HTML|SVG)\w*)?Element$/,s=E=>{try{return typeof E.hasAttribute=="function"&&E.hasAttribute("is")}catch{return!1}},c=E=>{let b=E.constructor.name,{nodeType:w,tagName:P}=E,x=typeof P=="string"&&P.includes("-")||s(E);return w===r&&(a.test(b)||x)||w===n&&b==="Text"||w===o&&b==="Comment"||w===i&&b==="DocumentFragment"},u=E=>{var b;return(E==null||(b=E.constructor)===null||b===void 0?void 0:b.name)&&c(E)};e.test=u;function d(E){return E.nodeType===n}function p(E){return E.nodeType===o}function f(E){return E.nodeType===i}var h=(E,b,w,P,x,C)=>{if(d(E))return(0,t.printText)(E.data,b);if(p(E))return(0,t.printComment)(E.data,b);let S=f(E)?"DocumentFragment":E.tagName.toLowerCase();return++P>b.maxDepth?(0,t.printElementAsLeaf)(S,b):(0,t.printElement)(S,(0,t.printProps)(f(E)?[]:Array.from(E.attributes).map(_=>_.name).sort(),f(E)?{}:Array.from(E.attributes).reduce((_,T)=>(_[T.name]=T.value,_),{}),b,w+b.indent,P,x,C),(0,t.printChildren)(Array.prototype.slice.call(E.childNodes||E.children),b,w+b.indent,P,x,C),b,w)};e.serialize=h;var y={serialize:h,test:u},g=y;e.default=g}}),lO=N({"../../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=Ua(),r="@@__IMMUTABLE_ITERABLE__@@",n="@@__IMMUTABLE_LIST__@@",o="@@__IMMUTABLE_KEYED__@@",i="@@__IMMUTABLE_MAP__@@",a="@@__IMMUTABLE_ORDERED__@@",s="@@__IMMUTABLE_RECORD__@@",c="@@__IMMUTABLE_SEQ__@@",u="@@__IMMUTABLE_SET__@@",d="@@__IMMUTABLE_STACK__@@",p=T=>"Immutable."+T,f=T=>"["+T+"]",h=" ",y="…",g=(T,A,D,k,U,I,R)=>++k>A.maxDepth?f(p(R)):p(R)+h+"{"+(0,t.printIteratorEntries)(T.entries(),A,D,k,U,I)+"}";function E(T){let A=0;return{next(){if(A<T._keys.length){let D=T._keys[A++];return{done:!1,value:[D,T.get(D)]}}return{done:!0,value:void 0}}}}var b=(T,A,D,k,U,I)=>{let R=p(T._name||"Record");return++k>A.maxDepth?f(R):R+h+"{"+(0,t.printIteratorEntries)(E(T),A,D,k,U,I)+"}"},w=(T,A,D,k,U,I)=>{let R=p("Seq");return++k>A.maxDepth?f(R):T[o]?R+h+"{"+(T._iter||T._object?(0,t.printIteratorEntries)(T.entries(),A,D,k,U,I):y)+"}":R+h+"["+(T._iter||T._array||T._collection||T._iterable?(0,t.printIteratorValues)(T.values(),A,D,k,U,I):y)+"]"},P=(T,A,D,k,U,I,R)=>++k>A.maxDepth?f(p(R)):p(R)+h+"["+(0,t.printIteratorValues)(T.values(),A,D,k,U,I)+"]",x=(T,A,D,k,U,I)=>T[i]?g(T,A,D,k,U,I,T[a]?"OrderedMap":"Map"):T[n]?P(T,A,D,k,U,I,"List"):T[u]?P(T,A,D,k,U,I,T[a]?"OrderedSet":"Set"):T[d]?P(T,A,D,k,U,I,"Stack"):T[c]?w(T,A,D,k,U,I):b(T,A,D,k,U,I);e.serialize=x;var C=T=>T&&(T[r]===!0||T[s]===!0);e.test=C;var S={serialize:x,test:C},_=S;e.default=_}}),uO=N({"../../node_modules/@testing-library/dom/node_modules/react-is/cjs/react-is.production.min.js"(e){var t=60103,r=60106,n=60107,o=60108,i=60114,a=60109,s=60110,c=60112,u=60113,d=60120,p=60115,f=60116,h=60121,y=60122,g=60117,E=60129,b=60131;typeof Symbol=="function"&&Symbol.for&&(w=Symbol.for,t=w("react.element"),r=w("react.portal"),n=w("react.fragment"),o=w("react.strict_mode"),i=w("react.profiler"),a=w("react.provider"),s=w("react.context"),c=w("react.forward_ref"),u=w("react.suspense"),d=w("react.suspense_list"),p=w("react.memo"),f=w("react.lazy"),h=w("react.block"),y=w("react.server.block"),g=w("react.fundamental"),E=w("react.debug_trace_mode"),b=w("react.legacy_hidden"));var w;function P(R){if(typeof R=="object"&&R!==null){var M=R.$$typeof;switch(M){case t:switch(R=R.type,R){case n:case i:case o:case u:case d:return R;default:switch(R=R&&R.$$typeof,R){case s:case c:case f:case p:case a:return R;default:return M}}case r:return M}}}var x=a,C=t,S=c,_=n,T=f,A=p,D=r,k=i,U=o,I=u;e.ContextConsumer=s,e.ContextProvider=x,e.Element=C,e.ForwardRef=S,e.Fragment=_,e.Lazy=T,e.Memo=A,e.Portal=D,e.Profiler=k,e.StrictMode=U,e.Suspense=I,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function(R){return P(R)===s},e.isContextProvider=function(R){return P(R)===a},e.isElement=function(R){return typeof R=="object"&&R!==null&&R.$$typeof===t},e.isForwardRef=function(R){return P(R)===c},e.isFragment=function(R){return P(R)===n},e.isLazy=function(R){return P(R)===f},e.isMemo=function(R){return P(R)===p},e.isPortal=function(R){return P(R)===r},e.isProfiler=function(R){return P(R)===i},e.isStrictMode=function(R){return P(R)===o},e.isSuspense=function(R){return P(R)===u},e.isValidElementType=function(R){return typeof R=="string"||typeof R=="function"||R===n||R===i||R===E||R===o||R===u||R===d||R===b||typeof R=="object"&&R!==null&&(R.$$typeof===f||R.$$typeof===p||R.$$typeof===a||R.$$typeof===s||R.$$typeof===c||R.$$typeof===g||R.$$typeof===h||R[0]===y)},e.typeOf=P}}),cO=N({"../../node_modules/@testing-library/dom/node_modules/react-is/index.js"(e,t){t.exports=uO()}}),dO=N({"../../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=o(cO()),r=Lu();function n(f){if(typeof WeakMap!="function")return null;var h=new WeakMap,y=new WeakMap;return(n=function(g){return g?y:h})(f)}function o(f,h){if(f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var y=n(h);if(y&&y.has(f))return y.get(f);var g={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in f)if(b!=="default"&&Object.prototype.hasOwnProperty.call(f,b)){var w=E?Object.getOwnPropertyDescriptor(f,b):null;w&&(w.get||w.set)?Object.defineProperty(g,b,w):g[b]=f[b]}return g.default=f,y&&y.set(f,g),g}var i=(f,h=[])=>(Array.isArray(f)?f.forEach(y=>{i(y,h)}):f!=null&&f!==!1&&h.push(f),h),a=f=>{let h=f.type;if(typeof h=="string")return h;if(typeof h=="function")return h.displayName||h.name||"Unknown";if(t.isFragment(f))return"React.Fragment";if(t.isSuspense(f))return"React.Suspense";if(typeof h=="object"&&h!==null){if(t.isContextProvider(f))return"Context.Provider";if(t.isContextConsumer(f))return"Context.Consumer";if(t.isForwardRef(f)){if(h.displayName)return h.displayName;let y=h.render.displayName||h.render.name||"";return y!==""?"ForwardRef("+y+")":"ForwardRef"}if(t.isMemo(f)){let y=h.displayName||h.type.displayName||h.type.name||"";return y!==""?"Memo("+y+")":"Memo"}}return"UNDEFINED"},s=f=>{let{props:h}=f;return Object.keys(h).filter(y=>y!=="children"&&h[y]!==void 0).sort()},c=(f,h,y,g,E,b)=>++g>h.maxDepth?(0,r.printElementAsLeaf)(a(f),h):(0,r.printElement)(a(f),(0,r.printProps)(s(f),f.props,h,y+h.indent,g,E,b),(0,r.printChildren)(i(f.props.children),h,y+h.indent,g,E,b),h,y);e.serialize=c;var u=f=>f!=null&&t.isElement(f);e.test=u;var d={serialize:c,test:u},p=d;e.default=p}}),pO=N({"../../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=Lu(),r=(function(){return typeof globalThis<"u"?globalThis:typeof r<"u"?r:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})(),n=r["jest-symbol-do-not-touch"]||r.Symbol,o=typeof n=="function"&&n.for?n.for("react.test.json"):245830487,i=d=>{let{props:p}=d;return p?Object.keys(p).filter(f=>p[f]!==void 0).sort():[]},a=(d,p,f,h,y,g)=>++h>p.maxDepth?(0,t.printElementAsLeaf)(d.type,p):(0,t.printElement)(d.type,d.props?(0,t.printProps)(i(d),d.props,p,f+p.indent,h,y,g):"",d.children?(0,t.printChildren)(d.children,p,f+p.indent,h,y,g):"",p,f);e.serialize=a;var s=d=>d&&d.$$typeof===o;e.test=s;var c={serialize:a,test:s},u=c;e.default=u}}),fO=N({"../../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=ye,e.plugins=void 0;var t=d($m()),r=Ua(),n=d(rO()),o=d(oO()),i=d(iO()),a=d(sO()),s=d(lO()),c=d(dO()),u=d(pO());function d(F){return F&&F.__esModule?F:{default:F}}var p=Object.prototype.toString,f=Date.prototype.toISOString,h=Error.prototype.toString,y=RegExp.prototype.toString,g=F=>typeof F.constructor=="function"&&F.constructor.name||"Object",E=F=>typeof window<"u"&&F===window,b=/^Symbol\((.*)\)(.*)$/,w=/\n/gi,P=class extends Error{constructor(F,Q){super(F),this.stack=Q,this.name=this.constructor.name}};function x(F){return F==="[object Array]"||F==="[object ArrayBuffer]"||F==="[object DataView]"||F==="[object Float32Array]"||F==="[object Float64Array]"||F==="[object Int8Array]"||F==="[object Int16Array]"||F==="[object Int32Array]"||F==="[object Uint8Array]"||F==="[object Uint8ClampedArray]"||F==="[object Uint16Array]"||F==="[object Uint32Array]"}function C(F){return Object.is(F,-0)?"-0":String(F)}function S(F){return`${F}n`}function _(F,Q){return Q?"[Function "+(F.name||"anonymous")+"]":"[Function]"}function T(F){return String(F).replace(b,"Symbol($1)")}function A(F){return"["+h.call(F)+"]"}function D(F,Q,te,oe){if(F===!0||F===!1)return""+F;if(F===void 0)return"undefined";if(F===null)return"null";let ae=typeof F;if(ae==="number")return C(F);if(ae==="bigint")return S(F);if(ae==="string")return oe?'"'+F.replace(/"|\\/g,"\\$&")+'"':'"'+F+'"';if(ae==="function")return _(F,Q);if(ae==="symbol")return T(F);let se=p.call(F);return se==="[object WeakMap]"?"WeakMap {}":se==="[object WeakSet]"?"WeakSet {}":se==="[object Function]"||se==="[object GeneratorFunction]"?_(F,Q):se==="[object Symbol]"?T(F):se==="[object Date]"?isNaN(+F)?"Date { NaN }":f.call(F):se==="[object Error]"?A(F):se==="[object RegExp]"?te?y.call(F).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):y.call(F):F instanceof Error?A(F):null}function k(F,Q,te,oe,ae,se){if(ae.indexOf(F)!==-1)return"[Circular]";ae=ae.slice(),ae.push(F);let fe=++oe>Q.maxDepth,ge=Q.min;if(Q.callToJSON&&!fe&&F.toJSON&&typeof F.toJSON=="function"&&!se)return M(F.toJSON(),Q,te,oe,ae,!0);let ke=p.call(F);return ke==="[object Arguments]"?fe?"[Arguments]":(ge?"":"Arguments ")+"["+(0,r.printListItems)(F,Q,te,oe,ae,M)+"]":x(ke)?fe?"["+F.constructor.name+"]":(ge||!Q.printBasicPrototype&&F.constructor.name==="Array"?"":F.constructor.name+" ")+"["+(0,r.printListItems)(F,Q,te,oe,ae,M)+"]":ke==="[object Map]"?fe?"[Map]":"Map {"+(0,r.printIteratorEntries)(F.entries(),Q,te,oe,ae,M," => ")+"}":ke==="[object Set]"?fe?"[Set]":"Set {"+(0,r.printIteratorValues)(F.values(),Q,te,oe,ae,M)+"}":fe||E(F)?"["+g(F)+"]":(ge||!Q.printBasicPrototype&&g(F)==="Object"?"":g(F)+" ")+"{"+(0,r.printObjectProperties)(F,Q,te,oe,ae,M)+"}"}function U(F){return F.serialize!=null}function I(F,Q,te,oe,ae,se){let fe;try{fe=U(F)?F.serialize(Q,te,oe,ae,se,M):F.print(Q,ge=>M(ge,te,oe,ae,se),ge=>{let ke=oe+te.indent;return ke+ge.replace(w,`
15
+ `+ke)},{edgeSpacing:te.spacingOuter,min:te.min,spacing:te.spacingInner},te.colors)}catch(ge){throw new P(ge.message,ge.stack)}if(typeof fe!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof fe}".`);return fe}function R(F,Q){for(let te=0;te<F.length;te++)try{if(F[te].test(Q))return F[te]}catch(oe){throw new P(oe.message,oe.stack)}return null}function M(F,Q,te,oe,ae,se){let fe=R(Q.plugins,F);if(fe!==null)return I(fe,F,Q,te,oe,ae);let ge=D(F,Q.printFunctionName,Q.escapeRegex,Q.escapeString);return ge!==null?ge:k(F,Q,te,oe,ae,se)}var L={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},J=Object.keys(L),W={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:L};e.DEFAULT_OPTIONS=W;function ne(F){if(Object.keys(F).forEach(Q=>{if(!W.hasOwnProperty(Q))throw new Error(`pretty-format: Unknown option "${Q}".`)}),F.min&&F.indent!==void 0&&F.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(F.theme!==void 0){if(F.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof F.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof F.theme}".`)}}var ue=F=>J.reduce((Q,te)=>{let oe=F.theme&&F.theme[te]!==void 0?F.theme[te]:L[te],ae=oe&&t.default[oe];if(ae&&typeof ae.close=="string"&&typeof ae.open=="string")Q[te]=ae;else throw new Error(`pretty-format: Option "theme" has a key "${te}" whose value "${oe}" is undefined in ansi-styles.`);return Q},Object.create(null)),ie=()=>J.reduce((F,Q)=>(F[Q]={close:"",open:""},F),Object.create(null)),z=F=>F&&F.printFunctionName!==void 0?F.printFunctionName:W.printFunctionName,G=F=>F&&F.escapeRegex!==void 0?F.escapeRegex:W.escapeRegex,re=F=>F&&F.escapeString!==void 0?F.escapeString:W.escapeString,Z=F=>{var Q;return{callToJSON:F&&F.callToJSON!==void 0?F.callToJSON:W.callToJSON,colors:F&&F.highlight?ue(F):ie(),compareKeys:F&&typeof F.compareKeys=="function"?F.compareKeys:W.compareKeys,escapeRegex:G(F),escapeString:re(F),indent:F&&F.min?"":K(F&&F.indent!==void 0?F.indent:W.indent),maxDepth:F&&F.maxDepth!==void 0?F.maxDepth:W.maxDepth,min:F&&F.min!==void 0?F.min:W.min,plugins:F&&F.plugins!==void 0?F.plugins:W.plugins,printBasicPrototype:(Q=F?.printBasicPrototype)!==null&&Q!==void 0?Q:!0,printFunctionName:z(F),spacingInner:F&&F.min?" ":`
16
+ `,spacingOuter:F&&F.min?"":`
17
+ `}};function K(F){return new Array(F+1).join(" ")}function ye(F,Q){if(Q&&(ne(Q),Q.plugins)){let oe=R(Q.plugins,F);if(oe!==null)return I(oe,F,Z(Q),"",0,[])}let te=D(F,z(Q),G(Q),re(Q));return te!==null?te:k(F,Z(Q),"",0,[])}var ce={AsymmetricMatcher:n.default,ConvertAnsi:o.default,DOMCollection:i.default,DOMElement:a.default,Immutable:s.default,ReactElement:c.default,ReactTestComponent:u.default};e.plugins=ce;var Me=ye;e.default=Me}}),hO=N({"../../node_modules/lz-string/libs/lz-string.js"(e,t){var r=(function(){var n=String.fromCharCode,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",a={};function s(u,d){if(!a[u]){a[u]={};for(var p=0;p<u.length;p++)a[u][u.charAt(p)]=p}return a[u][d]}var c={compressToBase64:function(u){if(u==null)return"";var d=c._compress(u,6,function(p){return o.charAt(p)});switch(d.length%4){default:case 0:return d;case 1:return d+"===";case 2:return d+"==";case 3:return d+"="}},decompressFromBase64:function(u){return u==null?"":u==""?null:c._decompress(u.length,32,function(d){return s(o,u.charAt(d))})},compressToUTF16:function(u){return u==null?"":c._compress(u,15,function(d){return n(d+32)})+" "},decompressFromUTF16:function(u){return u==null?"":u==""?null:c._decompress(u.length,16384,function(d){return u.charCodeAt(d)-32})},compressToUint8Array:function(u){for(var d=c.compress(u),p=new Uint8Array(d.length*2),f=0,h=d.length;f<h;f++){var y=d.charCodeAt(f);p[f*2]=y>>>8,p[f*2+1]=y%256}return p},decompressFromUint8Array:function(u){if(u==null)return c.decompress(u);for(var d=new Array(u.length/2),p=0,f=d.length;p<f;p++)d[p]=u[p*2]*256+u[p*2+1];var h=[];return d.forEach(function(y){h.push(n(y))}),c.decompress(h.join(""))},compressToEncodedURIComponent:function(u){return u==null?"":c._compress(u,6,function(d){return i.charAt(d)})},decompressFromEncodedURIComponent:function(u){return u==null?"":u==""?null:(u=u.replace(/ /g,"+"),c._decompress(u.length,32,function(d){return s(i,u.charAt(d))}))},compress:function(u){return c._compress(u,16,function(d){return n(d)})},_compress:function(u,d,p){if(u==null)return"";var f,h,y={},g={},E="",b="",w="",P=2,x=3,C=2,S=[],_=0,T=0,A;for(A=0;A<u.length;A+=1)if(E=u.charAt(A),Object.prototype.hasOwnProperty.call(y,E)||(y[E]=x++,g[E]=!0),b=w+E,Object.prototype.hasOwnProperty.call(y,b))w=b;else{if(Object.prototype.hasOwnProperty.call(g,w)){if(w.charCodeAt(0)<256){for(f=0;f<C;f++)_=_<<1,T==d-1?(T=0,S.push(p(_)),_=0):T++;for(h=w.charCodeAt(0),f=0;f<8;f++)_=_<<1|h&1,T==d-1?(T=0,S.push(p(_)),_=0):T++,h=h>>1}else{for(h=1,f=0;f<C;f++)_=_<<1|h,T==d-1?(T=0,S.push(p(_)),_=0):T++,h=0;for(h=w.charCodeAt(0),f=0;f<16;f++)_=_<<1|h&1,T==d-1?(T=0,S.push(p(_)),_=0):T++,h=h>>1}P--,P==0&&(P=Math.pow(2,C),C++),delete g[w]}else for(h=y[w],f=0;f<C;f++)_=_<<1|h&1,T==d-1?(T=0,S.push(p(_)),_=0):T++,h=h>>1;P--,P==0&&(P=Math.pow(2,C),C++),y[b]=x++,w=String(E)}if(w!==""){if(Object.prototype.hasOwnProperty.call(g,w)){if(w.charCodeAt(0)<256){for(f=0;f<C;f++)_=_<<1,T==d-1?(T=0,S.push(p(_)),_=0):T++;for(h=w.charCodeAt(0),f=0;f<8;f++)_=_<<1|h&1,T==d-1?(T=0,S.push(p(_)),_=0):T++,h=h>>1}else{for(h=1,f=0;f<C;f++)_=_<<1|h,T==d-1?(T=0,S.push(p(_)),_=0):T++,h=0;for(h=w.charCodeAt(0),f=0;f<16;f++)_=_<<1|h&1,T==d-1?(T=0,S.push(p(_)),_=0):T++,h=h>>1}P--,P==0&&(P=Math.pow(2,C),C++),delete g[w]}else for(h=y[w],f=0;f<C;f++)_=_<<1|h&1,T==d-1?(T=0,S.push(p(_)),_=0):T++,h=h>>1;P--,P==0&&(P=Math.pow(2,C),C++)}for(h=2,f=0;f<C;f++)_=_<<1|h&1,T==d-1?(T=0,S.push(p(_)),_=0):T++,h=h>>1;for(;;)if(_=_<<1,T==d-1){S.push(p(_));break}else T++;return S.join("")},decompress:function(u){return u==null?"":u==""?null:c._decompress(u.length,32768,function(d){return u.charCodeAt(d)})},_decompress:function(u,d,p){var f=[],h=4,y=4,g=3,E="",b=[],w,P,x,C,S,_,T,A={val:p(0),position:d,index:1};for(w=0;w<3;w+=1)f[w]=w;for(x=0,S=Math.pow(2,2),_=1;_!=S;)C=A.val&A.position,A.position>>=1,A.position==0&&(A.position=d,A.val=p(A.index++)),x|=(C>0?1:0)*_,_<<=1;switch(x){case 0:for(x=0,S=Math.pow(2,8),_=1;_!=S;)C=A.val&A.position,A.position>>=1,A.position==0&&(A.position=d,A.val=p(A.index++)),x|=(C>0?1:0)*_,_<<=1;T=n(x);break;case 1:for(x=0,S=Math.pow(2,16),_=1;_!=S;)C=A.val&A.position,A.position>>=1,A.position==0&&(A.position=d,A.val=p(A.index++)),x|=(C>0?1:0)*_,_<<=1;T=n(x);break;case 2:return""}for(f[3]=T,P=T,b.push(T);;){if(A.index>u)return"";for(x=0,S=Math.pow(2,g),_=1;_!=S;)C=A.val&A.position,A.position>>=1,A.position==0&&(A.position=d,A.val=p(A.index++)),x|=(C>0?1:0)*_,_<<=1;switch(T=x){case 0:for(x=0,S=Math.pow(2,8),_=1;_!=S;)C=A.val&A.position,A.position>>=1,A.position==0&&(A.position=d,A.val=p(A.index++)),x|=(C>0?1:0)*_,_<<=1;f[y++]=n(x),T=y-1,h--;break;case 1:for(x=0,S=Math.pow(2,16),_=1;_!=S;)C=A.val&A.position,A.position>>=1,A.position==0&&(A.position=d,A.val=p(A.index++)),x|=(C>0?1:0)*_,_<<=1;f[y++]=n(x),T=y-1,h--;break;case 2:return b.join("")}if(h==0&&(h=Math.pow(2,g),g++),f[T])E=f[T];else if(T===y)E=P+P.charAt(0);else return null;b.push(E),f[y++]=P+E.charAt(0),h--,P=E,h==0&&(h=Math.pow(2,g),g++)}}};return c})();typeof define=="function"&&define.amd?define(function(){return r}):typeof t<"u"&&t!=null?t.exports=r:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return r})}}),Bm=N({"../../node_modules/memoizerific/memoizerific.js"(e,t){(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return(function r(n,o,i){function a(u,d){if(!o[u]){if(!n[u]){var p=typeof Ri=="function"&&Ri;if(!d&&p)return p(u,!0);if(s)return s(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var h=o[u]={exports:{}};n[u][0].call(h.exports,function(y){var g=n[u][1][y];return a(g||y)},h,h.exports,r,n,o,i)}return o[u].exports}for(var s=typeof Ri=="function"&&Ri,c=0;c<i.length;c++)a(i[c]);return a})({1:[function(r,n,o){n.exports=function(i){if(typeof Map!="function"||i){var a=r("./similar");return new a}else return new Map}},{"./similar":2}],2:[function(r,n,o){function i(){return this.list=[],this.lastItem=void 0,this.size=0,this}i.prototype.get=function(a){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,a))return this.lastItem.val;if(s=this.indexOf(a),s>=0)return this.lastItem=this.list[s],this.list[s].val},i.prototype.set=function(a,s){var c;return this.lastItem&&this.isEqual(this.lastItem.key,a)?(this.lastItem.val=s,this):(c=this.indexOf(a),c>=0?(this.lastItem=this.list[c],this.list[c].val=s,this):(this.lastItem={key:a,val:s},this.list.push(this.lastItem),this.size++,this))},i.prototype.delete=function(a){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,a)&&(this.lastItem=void 0),s=this.indexOf(a),s>=0)return this.size--,this.list.splice(s,1)[0]},i.prototype.has=function(a){var s;return this.lastItem&&this.isEqual(this.lastItem.key,a)?!0:(s=this.indexOf(a),s>=0?(this.lastItem=this.list[s],!0):!1)},i.prototype.forEach=function(a,s){var c;for(c=0;c<this.size;c++)a.call(s||this,this.list[c].val,this.list[c].key,this)},i.prototype.indexOf=function(a){var s;for(s=0;s<this.size;s++)if(this.isEqual(this.list[s].key,a))return s;return-1},i.prototype.isEqual=function(a,s){return a===s||a!==a&&s!==s},n.exports=i},{}],3:[function(r,n,o){var i=r("map-or-similar");n.exports=function(u){var d=new i(!1),p=[];return function(f){var h=function(){var y=d,g,E,b=arguments.length-1,w=Array(b+1),P=!0,x;if((h.numArgs||h.numArgs===0)&&h.numArgs!==b+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(x=0;x<b;x++){if(w[x]={cacheItem:y,arg:arguments[x]},y.has(arguments[x])){y=y.get(arguments[x]);continue}P=!1,g=new i(!1),y.set(arguments[x],g),y=g}return P&&(y.has(arguments[b])?E=y.get(arguments[b]):P=!1),P||(E=f.apply(null,arguments),y.set(arguments[b],E)),u>0&&(w[b]={cacheItem:y,arg:arguments[b]},P?a(p,w):p.push(w),p.length>u&&s(p.shift())),h.wasMemoized=P,h.numArgs=b+1,E};return h.limit=u,h.wasMemoized=!1,h.cache=d,h.lru=p,h}};function a(u,d){var p=u.length,f=d.length,h,y,g;for(y=0;y<p;y++){for(h=!0,g=0;g<f;g++)if(!c(u[y][g].arg,d[g].arg)){h=!1;break}if(h)break}u.push(u.splice(y,1)[0])}function s(u){var d=u.length,p=u[d-1],f,h;for(p.cacheItem.delete(p.arg),h=d-2;h>=0&&(p=u[h],f=p.cacheItem.get(p.arg),!f||!f.size);h--)p.cacheItem.delete(p.arg)}function c(u,d){return u===d||u!==u&&d!==d}},{"map-or-similar":1}]},{},[3])(3)})}}),Fm=N({"../../node_modules/picoquery/lib/string-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=n;var t=Array.from({length:256},(o,i)=>"%"+((i<16?"0":"")+i.toString(16)).toUpperCase()),r=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 n(o){let i=o.length;if(i===0)return"";let a="",s=0,c=0;e:for(;c<i;c++){let u=o.charCodeAt(c);for(;u<128;){if(r[u]!==1&&(s<c&&(a+=o.slice(s,c)),s=c+1,a+=t[u]),++c===i)break e;u=o.charCodeAt(c)}if(s<c&&(a+=o.slice(s,c)),u<2048){s=c+1,a+=t[192|u>>6]+t[128|u&63];continue}if(u<55296||u>=57344){s=c+1,a+=t[224|u>>12]+t[128|u>>6&63]+t[128|u&63];continue}if(++c,c>=i)throw new Error("URI malformed");let d=o.charCodeAt(c)&1023;s=c+1,u=65536+((u&1023)<<10|d),a+=t[240|u>>18]+t[128|u>>12&63]+t[128|u>>6&63]+t[128|u&63]}return s===0?o:s<i?a+o.slice(s):a}}}),Du=N({"../../node_modules/picoquery/lib/shared.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=Fm(),r=i=>{switch(typeof i){case"string":return(0,t.encodeString)(i);case"bigint":case"boolean":return""+i;case"number":if(Number.isFinite(i))return i<1e21?""+i:(0,t.encodeString)(""+i);break}return i instanceof Date?(0,t.encodeString)(i.toISOString()):""};e.defaultValueSerializer=r;var n=i=>i instanceof Date;e.defaultShouldSerializeObject=n;var o=i=>i;e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:o,valueSerializer:e.defaultValueSerializer,keyDeserializer:o,shouldSerializeObject:e.defaultShouldSerializeObject}}}),Um=N({"../../node_modules/picoquery/lib/object-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=o,e.stringifyObject=d;var t=Du(),r=Fm();function n(p){return p==="__proto__"||p==="constructor"||p==="prototype"}function o(p,f,h,y,g){if(n(f))return p;let E=p[f];return typeof E=="object"&&E!==null?E:!y&&(g||typeof h=="number"||typeof h=="string"&&h*0===0&&h.indexOf(".")===-1)?p[f]=[]:p[f]={}}var i=20,a="[]",s="[",c="]",u=".";function d(p,f,h=0,y,g){let{nestingSyntax:E=t.defaultOptions.nestingSyntax,arrayRepeat:b=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:w=t.defaultOptions.arrayRepeatSyntax,nesting:P=t.defaultOptions.nesting,delimiter:x=t.defaultOptions.delimiter,valueSerializer:C=t.defaultOptions.valueSerializer,shouldSerializeObject:S=t.defaultOptions.shouldSerializeObject}=f,_=typeof x=="number"?String.fromCharCode(x):x,T=g===!0&&b,A=E==="dot"||E==="js"&&!g;if(h>i)return"";let D="",k=!0,U=!1;for(let I in p){let R=p[I];if(R===void 0)continue;let M;y?(M=y,T?w==="bracket"&&(M+=a):A?(M+=u,M+=I):(M+=s,M+=I,M+=c)):M=I,k||(D+=_),typeof R=="object"&&R!==null&&!S(R)?(U=R.pop!==void 0,(P||b&&U)&&(D+=d(R,f,h+1,M,U))):(D+=(0,r.encodeString)(M),D+="=",D+=C(R,I)),k&&(k=!1)}return D}}}),mO=N({"../../node_modules/picoquery/lib/decode-uri-component.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeURIComponent=o;var t=12,r=0,n=[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 o(s){let c=s.indexOf("%");if(c===-1)return s;let u=s.length,d="",p=0,f=0,h=c,y=t;for(;c>-1&&c<u;){let g=a(s[c+1],4),E=a(s[c+2],0),b=g|E,w=n[b];if(y=n[256+y+w],f=f<<6|b&n[364+w],y===t)d+=s.slice(p,h),d+=f<=65535?String.fromCharCode(f):String.fromCharCode(55232+(f>>10),56320+(f&1023)),f=0,p=c+3,c=h=s.indexOf("%",p);else{if(y===r)return null;if(c+=3,c<u&&s.charCodeAt(c)===37)continue;return null}}return d+s.slice(p)}var i={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 a(s,c){let u=i[s];return u===void 0?255:u<<c}}}),yO=N({"../../node_modules/picoquery/lib/parse.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=u;var t=Um(),r=Du(),n=mO(),o=d=>{let p=Number(d);return Number.isNaN(p)?d:p};e.numberKeyDeserializer=o;var i=d=>{let p=Number(d);return Number.isNaN(p)?d:p};e.numberValueDeserializer=i;var a=/\+/g,s=function(){};s.prototype=Object.create(null);function c(d,p,f,h,y){let g=d.substring(p,f);return h&&(g=g.replace(a," ")),y&&(g=(0,n.decodeURIComponent)(g)||g),g}function u(d,p){let{valueDeserializer:f=r.defaultOptions.valueDeserializer,keyDeserializer:h=r.defaultOptions.keyDeserializer,arrayRepeatSyntax:y=r.defaultOptions.arrayRepeatSyntax,nesting:g=r.defaultOptions.nesting,arrayRepeat:E=r.defaultOptions.arrayRepeat,nestingSyntax:b=r.defaultOptions.nestingSyntax,delimiter:w=r.defaultOptions.delimiter}=p??{},P=typeof w=="string"?w.charCodeAt(0):w,x=b==="js",C=new s;if(typeof d!="string")return C;let S=d.length,_="",T=-1,A=-1,D=-1,k=C,U,I="",R="",M=!1,L=!1,J=!1,W=!1,ne=!1,ue=!1,ie=0,z=-1,G=-1,re=-1;for(let Z=0;Z<S+1;Z++){if(ie=Z!==S?d.charCodeAt(Z):P,ie===P){if(ue=A>T,ue||(A=Z),D!==A-1&&(R=c(d,D+1,z>-1?z:A,J,M),I=h(R),U!==void 0&&(k=(0,t.getDeepObject)(k,U,I,x&&ne,void 0))),ue||I!==""){ue&&(_=d.slice(A+1,Z),W&&(_=_.replace(a," ")),L&&(_=(0,n.decodeURIComponent)(_)||_));let K=f(_,I);if(E){let ye=k[I];ye===void 0?z>-1?k[I]=[K]:k[I]=K:ye.pop?ye.push(K):k[I]=[ye,K]}else k[I]=K}_="",T=Z,A=Z,M=!1,L=!1,J=!1,W=!1,ne=!1,z=-1,D=Z,k=C,U=void 0,I=""}else ie===93?(E&&y==="bracket"&&re===91&&(z=G),g&&(b==="index"||x)&&A<=T&&(D!==G&&(R=c(d,D+1,Z,J,M),I=h(R),U!==void 0&&(k=(0,t.getDeepObject)(k,U,I,void 0,void 0)),U=I,J=!1,M=!1),D=Z,ne=!1)):ie===46?g&&(b==="dot"||x)&&A<=T&&(D!==G&&(R=c(d,D+1,Z,J,M),I=h(R),U!==void 0&&(k=(0,t.getDeepObject)(k,U,I,x)),U=I,J=!1,M=!1),ne=!0,D=Z):ie===91?g&&(b==="index"||x)&&A<=T&&(D!==G&&(R=c(d,D+1,Z,J,M),I=h(R),x&&U!==void 0&&(k=(0,t.getDeepObject)(k,U,I,x)),U=I,J=!1,M=!1,ne=!1),D=Z):ie===61?A<=T?A=Z:L=!0:ie===43?A>T?W=!0:J=!0:ie===37&&(A>T?L=!0:M=!0);G=Z,re=ie}return C}}}),gO=N({"../../node_modules/picoquery/lib/stringify.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=Um();function r(n,o){if(n===null||typeof n!="object")return"";let i=o??{};return(0,t.stringifyObject)(n,i)}}}),$u=N({"../../node_modules/picoquery/lib/main.js"(e){var t=e&&e.__createBinding||(Object.create?(function(i,a,s,c){c===void 0&&(c=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(i,c,u)}):(function(i,a,s,c){c===void 0&&(c=s),i[c]=a[s]})),r=e&&e.__exportStar||function(i,a){for(var s in i)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&t(a,i,s)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n=yO();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return n.parse}});var o=gO();Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return o.stringify}}),r(Du(),e)}}),Jm=N({"../../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:" ",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:`
18
+ `,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:" ",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:"‌"}}}),bO=N({"../../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:" ",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:"ÿ"}}}),Vm=N({"../../node_modules/entities/lib/maps/xml.json"(e,t){t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}}),vO=N({"../../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}}}),EO=N({"../../node_modules/entities/lib/decode_codepoint.js"(e){var t=e&&e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0});var r=t(vO()),n=String.fromCodePoint||function(i){var a="";return i>65535&&(i-=65536,a+=String.fromCharCode(i>>>10&1023|55296),i=56320|i&1023),a+=String.fromCharCode(i),a};function o(i){return i>=55296&&i<=57343||i>1114111?"�":(i in r.default&&(i=r.default[i]),n(i))}e.default=o}}),Yd=N({"../../node_modules/entities/lib/decode.js"(e){var t=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var r=t(Jm()),n=t(bO()),o=t(Vm()),i=t(EO()),a=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=s(o.default),e.decodeHTMLStrict=s(r.default);function s(d){var p=u(d);return function(f){return String(f).replace(a,p)}}var c=function(d,p){return d<p?1:-1};e.decodeHTML=(function(){for(var d=Object.keys(n.default).sort(c),p=Object.keys(r.default).sort(c),f=0,h=0;f<p.length;f++)d[h]===p[f]?(p[f]+=";?",h++):p[f]+=";";var y=new RegExp("&(?:"+p.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),g=u(r.default);function E(b){return b.substr(-1)!==";"&&(b+=";"),g(b)}return function(b){return String(b).replace(y,E)}})();function u(d){return function(p){if(p.charAt(1)==="#"){var f=p.charAt(2);return f==="X"||f==="x"?i.default(parseInt(p.substr(3),16)):i.default(parseInt(p.substr(2),10))}return d[p.slice(1,-1)]||p}}}}),Xd=N({"../../node_modules/entities/lib/encode.js"(e){var t=e&&e.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(e,"__esModule",{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var r=t(Vm()),n=c(r.default),o=u(n);e.encodeXML=b(n);var i=t(Jm()),a=c(i.default),s=u(a);e.encodeHTML=h(a,s),e.encodeNonAsciiHTML=b(a);function c(w){return Object.keys(w).sort().reduce(function(P,x){return P[w[x]]="&"+x+";",P},{})}function u(w){for(var P=[],x=[],C=0,S=Object.keys(w);C<S.length;C++){var _=S[C];_.length===1?P.push("\\"+_):x.push(_)}P.sort();for(var T=0;T<P.length-1;T++){for(var A=T;A<P.length-1&&P[A].charCodeAt(1)+1===P[A+1].charCodeAt(1);)A+=1;var D=1+A-T;D<3||P.splice(T,D,P[T]+"-"+P[A])}return x.unshift("["+P.join("")+"]"),new RegExp(x.join("|"),"g")}var d=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,p=String.prototype.codePointAt!=null?(function(w){return w.codePointAt(0)}):(function(w){return(w.charCodeAt(0)-55296)*1024+w.charCodeAt(1)-56320+65536});function f(w){return"&#x"+(w.length>1?p(w):w.charCodeAt(0)).toString(16).toUpperCase()+";"}function h(w,P){return function(x){return x.replace(P,function(C){return w[C]}).replace(d,f)}}var y=new RegExp(o.source+"|"+d.source,"g");function g(w){return w.replace(y,f)}e.escape=g;function E(w){return w.replace(o,f)}e.escapeUTF8=E;function b(w){return function(P){return P.replace(y,function(x){return w[x]||f(x)})}}}}),wO=N({"../../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=Yd(),r=Xd();function n(c,u){return(!u||u<=0?t.decodeXML:t.decodeHTML)(c)}e.decode=n;function o(c,u){return(!u||u<=0?t.decodeXML:t.decodeHTMLStrict)(c)}e.decodeStrict=o;function i(c,u){return(!u||u<=0?r.encodeXML:r.encodeHTML)(c)}e.encode=i;var a=Xd();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return a.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return a.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return a.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return a.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return a.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return a.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return a.encodeHTML}});var s=Yd();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}})}}),_O=N({"../../node_modules/ansi-to-html/lib/ansi_to_html.js"(e,t){function r(R,M){if(!(R instanceof M))throw new TypeError("Cannot call a class as a function")}function n(R,M){for(var L=0;L<M.length;L++){var J=M[L];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(R,J.key,J)}}function o(R,M,L){return M&&n(R.prototype,M),R}function i(R,M){var L=typeof Symbol<"u"&&R[Symbol.iterator]||R["@@iterator"];if(!L){if(Array.isArray(R)||(L=a(R))||M){L&&(R=L);var J=0,W=function(){};return{s:W,n:function(){return J>=R.length?{done:!0}:{done:!1,value:R[J++]}},e:function(z){throw z},f:W}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
19
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ne=!0,ue=!1,ie;return{s:function(){L=L.call(R)},n:function(){var z=L.next();return ne=z.done,z},e:function(z){ue=!0,ie=z},f:function(){try{!ne&&L.return!=null&&L.return()}finally{if(ue)throw ie}}}}function a(R,M){if(R){if(typeof R=="string")return s(R,M);var L=Object.prototype.toString.call(R).slice(8,-1);if(L==="Object"&&R.constructor&&(L=R.constructor.name),L==="Map"||L==="Set")return Array.from(R);if(L==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L))return s(R,M)}}function s(R,M){(M==null||M>R.length)&&(M=R.length);for(var L=0,J=new Array(M);L<M;L++)J[L]=R[L];return J}var c=wO(),u={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:d()};function d(){var R={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 w(0,5).forEach(function(M){w(0,5).forEach(function(L){w(0,5).forEach(function(J){return p(M,L,J,R)})})}),w(0,23).forEach(function(M){var L=M+232,J=f(M*10+8);R[L]="#"+J+J+J}),R}function p(R,M,L,J){var W=16+R*36+M*6+L,ne=R>0?R*40+55:0,ue=M>0?M*40+55:0,ie=L>0?L*40+55:0;J[W]=h([ne,ue,ie])}function f(R){for(var M=R.toString(16);M.length<2;)M="0"+M;return M}function h(R){var M=[],L=i(R),J;try{for(L.s();!(J=L.n()).done;){var W=J.value;M.push(f(W))}}catch(ne){L.e(ne)}finally{L.f()}return"#"+M.join("")}function y(R,M,L,J){var W;return M==="text"?W=C(L,J):M==="display"?W=E(R,L,J):M==="xterm256Foreground"?W=T(R,J.colors[L]):M==="xterm256Background"?W=A(R,J.colors[L]):M==="rgb"&&(W=g(R,L)),W}function g(R,M){M=M.substring(2).slice(0,-1);var L=+M.substr(0,2),J=M.substring(5).split(";"),W=J.map(function(ne){return("0"+Number(ne).toString(16)).substr(-2)}).join("");return _(R,(L===38?"color:#":"background-color:#")+W)}function E(R,M,L){M=parseInt(M,10);var J={"-1":function(){return"<br/>"},0:function(){return R.length&&b(R)},1:function(){return S(R,"b")},3:function(){return S(R,"i")},4:function(){return S(R,"u")},8:function(){return _(R,"display:none")},9:function(){return S(R,"strike")},22:function(){return _(R,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return D(R,"i")},24:function(){return D(R,"u")},39:function(){return T(R,L.fg)},49:function(){return A(R,L.bg)},53:function(){return _(R,"text-decoration:overline")}},W;return J[M]?W=J[M]():4<M&&M<7?W=S(R,"blink"):29<M&&M<38?W=T(R,L.colors[M-30]):39<M&&M<48?W=A(R,L.colors[M-40]):89<M&&M<98?W=T(R,L.colors[8+(M-90)]):99<M&&M<108&&(W=A(R,L.colors[8+(M-100)])),W}function b(R){var M=R.slice(0);return R.length=0,M.reverse().map(function(L){return"</"+L+">"}).join("")}function w(R,M){for(var L=[],J=R;J<=M;J++)L.push(J);return L}function P(R){return function(M){return(R===null||M.category!==R)&&R!=="all"}}function x(R){R=parseInt(R,10);var M=null;return R===0?M="all":R===1?M="bold":2<R&&R<5?M="underline":4<R&&R<7?M="blink":R===8?M="hide":R===9?M="strike":29<R&&R<38||R===39||89<R&&R<98?M="foreground-color":(39<R&&R<48||R===49||99<R&&R<108)&&(M="background-color"),M}function C(R,M){return M.escapeXML?c.encodeXML(R):R}function S(R,M,L){return L||(L=""),R.push(M),"<".concat(M).concat(L?' style="'.concat(L,'"'):"",">")}function _(R,M){return S(R,"span",M)}function T(R,M){return S(R,"span","color:"+M)}function A(R,M){return S(R,"span","background-color:"+M)}function D(R,M){var L;if(R.slice(-1)[0]===M&&(L=R.pop()),L)return"</"+M+">"}function k(R,M,L){var J=!1,W=3;function ne(){return""}function ue(se,fe){return L("xterm256Foreground",fe),""}function ie(se,fe){return L("xterm256Background",fe),""}function z(se){return M.newline?L("display",-1):L("text",se),""}function G(se,fe){J=!0,fe.trim().length===0&&(fe="0"),fe=fe.trimRight(";").split(";");var ge=i(fe),ke;try{for(ge.s();!(ke=ge.n()).done;){var lt=ke.value;L("display",lt)}}catch(rt){ge.e(rt)}finally{ge.f()}return""}function re(se){return L("text",se),""}function Z(se){return L("rgb",se),""}var K=[{pattern:/^\x08+/,sub:ne},{pattern:/^\x1b\[[012]?K/,sub:ne},{pattern:/^\x1b\[\(B/,sub:ne},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Z},{pattern:/^\x1b\[38;5;(\d+)m/,sub:ue},{pattern:/^\x1b\[48;5;(\d+)m/,sub:ie},{pattern:/^\n/,sub:z},{pattern:/^\r+\n/,sub:z},{pattern:/^\r/,sub:z},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:G},{pattern:/^\x1b\[\d?J/,sub:ne},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:ne},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:ne},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:re}];function ye(se,fe){fe>W&&J||(J=!1,R=R.replace(se.pattern,se.sub))}var ce=[],Me=R,F=Me.length;e:for(;F>0;){for(var Q=0,te=0,oe=K.length;te<oe;Q=++te){var ae=K[Q];if(ye(ae,Q),R.length!==F){F=R.length;continue e}}if(R.length===F)break;ce.push(0),F=R.length}return ce}function U(R,M,L){return M!=="text"&&(R=R.filter(P(x(L))),R.push({token:M,data:L,category:x(L)})),R}var I=(function(){function R(M){r(this,R),M=M||{},M.colors&&(M.colors=Object.assign({},u.colors,M.colors)),this.options=Object.assign({},u,M),this.stack=[],this.stickyStack=[]}return o(R,[{key:"toHtml",value:function(M){var L=this;M=typeof M=="string"?[M]:M;var J=this.stack,W=this.options,ne=[];return this.stickyStack.forEach(function(ue){var ie=y(J,ue.token,ue.data,W);ie&&ne.push(ie)}),k(M.join(""),W,function(ue,ie){var z=y(J,ue,ie,W);z&&ne.push(z),W.stream&&(L.stickyStack=U(L.stickyStack,ue,ie))}),J.length&&ne.push(b(J)),ne.join("")}}]),R})();t.exports=I}}),TO=N({"../../node_modules/jsdoc-type-pratt-parser/dist/index.js"(e,t){(function(r,n){typeof e=="object"&&typeof t<"u"?n(e):typeof define=="function"&&define.amd?define(["exports"],n):(r=typeof globalThis<"u"?globalThis:r||self,n(r.jtpp={}))})(e,(function(r){function n(l){return l.text!==void 0&&l.text!==""?`'${l.type}' with value '${l.text}'`:`'${l.type}'`}class o extends Error{constructor(m){super(`No parslet found for token: ${n(m)}`),this.token=m,Object.setPrototypeOf(this,o.prototype)}getToken(){return this.token}}class i extends Error{constructor(m){super(`The parsing ended early. The next token was: ${n(m)}`),this.token=m,Object.setPrototypeOf(this,i.prototype)}getToken(){return this.token}}class a extends Error{constructor(m,v){let O=`Unexpected type: '${m.type}'.`;v!==void 0&&(O+=` Message: ${v}`),super(O),Object.setPrototypeOf(this,a.prototype)}}function s(l){return m=>m.startsWith(l)?{type:l,text:l}:null}function c(l){let m=0,v,O=l[0],$=!1;if(O!=="'"&&O!=='"')return null;for(;m<l.length;){if(m++,v=l[m],!$&&v===O){m++;break}$=!$&&v==="\\"}if(v!==O)throw new Error("Unterminated String");return l.slice(0,m)}let u=new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u"),d=new 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 p(l){let m=l[0];if(!u.test(m))return null;let v=1;do{if(m=l[v],!d.test(m))break;v++}while(v<l.length);return l.slice(0,v)}let f=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function h(l){var m,v;return(v=(m=f.exec(l))===null||m===void 0?void 0:m[0])!==null&&v!==void 0?v:null}let y=l=>{let m=p(l);return m==null?null:{type:"Identifier",text:m}};function g(l){return m=>{if(!m.startsWith(l))return null;let v=m[l.length];return v!==void 0&&d.test(v)?null:{type:l,text:l}}}let E=l=>{let m=c(l);return m==null?null:{type:"StringValue",text:m}},b=l=>l.length>0?null:{type:"EOF",text:""},w=l=>{let m=h(l);return m===null?null:{type:"Number",text:m}},P=[b,s("=>"),s("("),s(")"),s("{"),s("}"),s("["),s("]"),s("|"),s("&"),s("<"),s(">"),s(","),s(";"),s("*"),s("?"),s("!"),s("="),s(":"),s("..."),s("."),s("#"),s("~"),s("/"),s("@"),g("undefined"),g("null"),g("function"),g("this"),g("new"),g("module"),g("event"),g("extends"),g("external"),g("infer"),g("typeof"),g("keyof"),g("readonly"),g("import"),g("is"),g("in"),g("asserts"),w,y,E],x=/^\s*\n\s*/;class C{static create(m){let v=this.read(m);m=v.text;let O=this.read(m);return m=O.text,new C(m,void 0,v.token,O.token)}constructor(m,v,O,$){this.text="",this.text=m,this.previous=v,this.current=O,this.next=$}static read(m,v=!1){v=v||x.test(m),m=m.trim();for(let O of P){let $=O(m);if($!==null){let H=Object.assign(Object.assign({},$),{startOfLine:v});return m=m.slice(H.text.length),{text:m,token:H}}}throw new Error("Unexpected Token "+m)}advance(){let m=C.read(this.text);return new C(m.text,this.current,this.next,m.token)}}function S(l){if(l===void 0)throw new Error("Unexpected undefined");if(l.type==="JsdocTypeKeyValue"||l.type==="JsdocTypeParameterList"||l.type==="JsdocTypeProperty"||l.type==="JsdocTypeReadonlyProperty"||l.type==="JsdocTypeObjectField"||l.type==="JsdocTypeJsdocObjectField"||l.type==="JsdocTypeIndexSignature"||l.type==="JsdocTypeMappedType"||l.type==="JsdocTypeTypeParameter")throw new a(l);return l}function _(l){return l.type==="JsdocTypeKeyValue"?A(l):S(l)}function T(l){return l.type==="JsdocTypeName"?l:A(l)}function A(l){if(l.type!=="JsdocTypeKeyValue")throw new a(l);return l}function D(l){var m;if(l.type==="JsdocTypeVariadic"){if(((m=l.element)===null||m===void 0?void 0:m.type)==="JsdocTypeName")return l;throw new a(l)}if(l.type!=="JsdocTypeNumber"&&l.type!=="JsdocTypeName")throw new a(l);return l}function k(l){if(l.type==="JsdocTypeTuple"||l.type==="JsdocTypeGeneric"&&l.meta.brackets==="square")return l;throw new a(l)}function U(l){return l.type==="JsdocTypeIndexSignature"||l.type==="JsdocTypeMappedType"}var I;(function(l){l[l.ALL=0]="ALL",l[l.PARAMETER_LIST=1]="PARAMETER_LIST",l[l.OBJECT=2]="OBJECT",l[l.KEY_VALUE=3]="KEY_VALUE",l[l.INDEX_BRACKETS=4]="INDEX_BRACKETS",l[l.UNION=5]="UNION",l[l.INTERSECTION=6]="INTERSECTION",l[l.PREFIX=7]="PREFIX",l[l.INFIX=8]="INFIX",l[l.TUPLE=9]="TUPLE",l[l.SYMBOL=10]="SYMBOL",l[l.OPTIONAL=11]="OPTIONAL",l[l.NULLABLE=12]="NULLABLE",l[l.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",l[l.FUNCTION=14]="FUNCTION",l[l.ARROW=15]="ARROW",l[l.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",l[l.GENERIC=17]="GENERIC",l[l.NAME_PATH=18]="NAME_PATH",l[l.PARENTHESIS=19]="PARENTHESIS",l[l.SPECIAL_TYPES=20]="SPECIAL_TYPES"})(I||(I={}));class R{constructor(m,v,O){this.grammar=m,typeof v=="string"?this._lexer=C.create(v):this._lexer=v,this.baseParser=O}get lexer(){return this._lexer}parse(){let m=this.parseType(I.ALL);if(this.lexer.current.type!=="EOF")throw new i(this.lexer.current);return m}parseType(m){return S(this.parseIntermediateType(m))}parseIntermediateType(m){let v=this.tryParslets(null,m);if(v===null)throw new o(this.lexer.current);return this.parseInfixIntermediateType(v,m)}parseInfixIntermediateType(m,v){let O=this.tryParslets(m,v);for(;O!==null;)m=O,O=this.tryParslets(m,v);return m}tryParslets(m,v){for(let O of this.grammar){let $=O(this,v,m);if($!==null)return $}return null}consume(m){return Array.isArray(m)||(m=[m]),m.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(m){this._lexer=m.lexer}}function M(l){return l==="}"||l==="EOF"||l==="|"||l===","||l===")"||l===">"}let L=(l,m,v)=>{let O=l.lexer.current.type,$=l.lexer.next.type;return v==null&&O==="?"&&!M($)||v!=null&&O==="?"?(l.consume("?"),v==null?{type:"JsdocTypeNullable",element:l.parseType(I.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:S(v),meta:{position:"suffix"}}):null};function J(l){let m=(v,O,$)=>{let H=v.lexer.current.type,Y=v.lexer.next.type;if($===null){if("parsePrefix"in l&&l.accept(H,Y))return l.parsePrefix(v)}else if("parseInfix"in l&&l.precedence>O&&l.accept(H,Y))return l.parseInfix(v,$);return null};return Object.defineProperty(m,"name",{value:l.name}),m}let W=J({name:"optionalParslet",accept:l=>l==="=",precedence:I.OPTIONAL,parsePrefix:l=>(l.consume("="),{type:"JsdocTypeOptional",element:l.parseType(I.OPTIONAL),meta:{position:"prefix"}}),parseInfix:(l,m)=>(l.consume("="),{type:"JsdocTypeOptional",element:S(m),meta:{position:"suffix"}})}),ne=J({name:"numberParslet",accept:l=>l==="Number",parsePrefix:l=>{let m=parseFloat(l.lexer.current.text);return l.consume("Number"),{type:"JsdocTypeNumber",value:m}}}),ue=J({name:"parenthesisParslet",accept:l=>l==="(",parsePrefix:l=>{if(l.consume("("),l.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let m=l.parseIntermediateType(I.ALL);if(!l.consume(")"))throw new Error("Unterminated parenthesis");return m.type==="JsdocTypeParameterList"?m:m.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[m]}:{type:"JsdocTypeParenthesis",element:S(m)}}}),ie=J({name:"specialTypesParslet",accept:(l,m)=>l==="?"&&M(m)||l==="null"||l==="undefined"||l==="*",parsePrefix:l=>{if(l.consume("null"))return{type:"JsdocTypeNull"};if(l.consume("undefined"))return{type:"JsdocTypeUndefined"};if(l.consume("*"))return{type:"JsdocTypeAny"};if(l.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+l.lexer.current.text)}}),z=J({name:"notNullableParslet",accept:l=>l==="!",precedence:I.NULLABLE,parsePrefix:l=>(l.consume("!"),{type:"JsdocTypeNotNullable",element:l.parseType(I.NULLABLE),meta:{position:"prefix"}}),parseInfix:(l,m)=>(l.consume("!"),{type:"JsdocTypeNotNullable",element:S(m),meta:{position:"suffix"}})});function G({allowTrailingComma:l}){return J({name:"parameterListParslet",accept:m=>m===",",precedence:I.PARAMETER_LIST,parseInfix:(m,v)=>{let O=[_(v)];m.consume(",");do try{let $=m.parseIntermediateType(I.PARAMETER_LIST);O.push(_($))}catch($){if($ instanceof o)break;throw $}while(m.consume(","));if(O.length>0&&O.slice(0,-1).some($=>$.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:O}}})}let re=J({name:"genericParslet",accept:(l,m)=>l==="<"||l==="."&&m==="<",precedence:I.GENERIC,parseInfix:(l,m)=>{let v=l.consume(".");l.consume("<");let O=[],$=!1;if(l.consume("infer")){$=!0;let H=l.parseIntermediateType(I.SYMBOL);if(H.type!=="JsdocTypeName")throw new a(H,"A typescript asserts always has to have a name on the left side.");O.push(H)}else do O.push(l.parseType(I.PARAMETER_LIST));while(l.consume(","));if(!l.consume(">"))throw new Error("Unterminated generic parameter list");return Object.assign(Object.assign({type:"JsdocTypeGeneric",left:S(m),elements:O},$?{infer:!0}:{}),{meta:{brackets:"angle",dot:v}})}}),Z=J({name:"unionParslet",accept:l=>l==="|",precedence:I.UNION,parseInfix:(l,m)=>{l.consume("|");let v=[];do v.push(l.parseType(I.UNION));while(l.consume("|"));return{type:"JsdocTypeUnion",elements:[S(m),...v]}}}),K=[L,W,ne,ue,ie,z,G({allowTrailingComma:!0}),re,Z,W];function ye({allowSquareBracketsOnAnyType:l,allowJsdocNamePaths:m,pathGrammar:v}){return function(O,$,H){if(H==null||$>=I.NAME_PATH)return null;let Y=O.lexer.current.type,de=O.lexer.next.type;if(!(Y==="."&&de!=="<"||Y==="["&&(l||H.type==="JsdocTypeName")||m&&(Y==="~"||Y==="#")))return null;let pe,_e=!1;O.consume(".")?pe="property":O.consume("[")?(pe="property-brackets",_e=!0):O.consume("~")?pe="inner":(O.consume("#"),pe="instance");let We=v!==null?new R(v,O.lexer,O):O,Le=We.parseIntermediateType(I.NAME_PATH);O.acceptLexerState(We);let Nt;switch(Le.type){case"JsdocTypeName":Nt={type:"JsdocTypeProperty",value:Le.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":Nt={type:"JsdocTypeProperty",value:Le.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":Nt={type:"JsdocTypeProperty",value:Le.value,meta:{quote:Le.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(Le.specialType==="event")Nt=Le;else throw new a(Le,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new a(Le,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(_e&&!O.consume("]")){let ho=O.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${ho.type}' with text '${ho.text}'`)}return{type:"JsdocTypeNamePath",left:S(H),right:Nt,pathType:pe}}}function ce({allowedAdditionalTokens:l}){return J({name:"nameParslet",accept:m=>m==="Identifier"||m==="this"||m==="new"||l.includes(m),parsePrefix:m=>{let{type:v,text:O}=m.lexer.current;return m.consume(v),{type:"JsdocTypeName",value:O}}})}let Me=J({name:"stringValueParslet",accept:l=>l==="StringValue",parsePrefix:l=>{let m=l.lexer.current.text;return l.consume("StringValue"),{type:"JsdocTypeStringValue",value:m.slice(1,-1),meta:{quote:m[0]==="'"?"single":"double"}}}});function F({pathGrammar:l,allowedTypes:m}){return J({name:"specialNamePathParslet",accept:v=>m.includes(v),parsePrefix:v=>{let O=v.lexer.current.type;if(v.consume(O),!v.consume(":"))return{type:"JsdocTypeName",value:O};let $,H=v.lexer.current;if(v.consume("StringValue"))$={type:"JsdocTypeSpecialNamePath",value:H.text.slice(1,-1),specialType:O,meta:{quote:H.text[0]==="'"?"single":"double"}};else{let pe="",_e=["Identifier","@","/"];for(;_e.some(We=>v.consume(We));)pe+=H.text,H=v.lexer.current;$={type:"JsdocTypeSpecialNamePath",value:pe,specialType:O,meta:{quote:void 0}}}let Y=new R(l,v.lexer,v),de=Y.parseInfixIntermediateType($,I.ALL);return v.acceptLexerState(Y),S(de)}})}let Q=[ce({allowedAdditionalTokens:["external","module"]}),Me,ne,ye({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],te=[...Q,F({allowedTypes:["event"],pathGrammar:Q})];function oe(l){let m;if(l.type==="JsdocTypeParameterList")m=l.elements;else if(l.type==="JsdocTypeParenthesis")m=[l.element];else throw new a(l);return m.map(v=>_(v))}function ae(l){let m=oe(l);if(m.some(v=>v.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return m}function se({allowNamedParameters:l,allowNoReturnType:m,allowWithoutParenthesis:v,allowNewAsFunctionKeyword:O}){return J({name:"functionParslet",accept:($,H)=>$==="function"||O&&$==="new"&&H==="(",parsePrefix:$=>{let H=$.consume("new");$.consume("function");let Y=$.lexer.current.type==="(";if(!Y){if(!v)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let de={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:H,parenthesis:Y},pe=$.parseIntermediateType(I.FUNCTION);if(l===void 0)de.parameters=ae(pe);else{if(H&&pe.type==="JsdocTypeFunction"&&pe.arrow)return de=pe,de.constructor=!0,de;de.parameters=oe(pe);for(let _e of de.parameters)if(_e.type==="JsdocTypeKeyValue"&&!l.includes(_e.key))throw new Error(`only allowed named parameters are ${l.join(", ")} but got ${_e.type}`)}if($.consume(":"))de.returnType=$.parseType(I.PREFIX);else if(!m)throw new Error("function is missing return type");return de}})}function fe({allowPostfix:l,allowEnclosingBrackets:m}){return J({name:"variadicParslet",accept:v=>v==="...",precedence:I.PREFIX,parsePrefix:v=>{v.consume("...");let O=m&&v.consume("[");try{let $=v.parseType(I.PREFIX);if(O&&!v.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:S($),meta:{position:"prefix",squareBrackets:O}}}catch($){if($ instanceof o){if(O)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw $}},parseInfix:l?(v,O)=>(v.consume("..."),{type:"JsdocTypeVariadic",element:S(O),meta:{position:"suffix",squareBrackets:!1}}):void 0})}let ge=J({name:"symbolParslet",accept:l=>l==="(",precedence:I.SYMBOL,parseInfix:(l,m)=>{if(m.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");l.consume("(");let v={type:"JsdocTypeSymbol",value:m.value};if(!l.consume(")")){let O=l.parseIntermediateType(I.SYMBOL);if(v.element=D(O),!l.consume(")"))throw new Error("Symbol does not end after value")}return v}}),ke=J({name:"arrayBracketsParslet",precedence:I.ARRAY_BRACKETS,accept:(l,m)=>l==="["&&m==="]",parseInfix:(l,m)=>(l.consume("["),l.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[S(m)],meta:{brackets:"square",dot:!1}})});function lt({objectFieldGrammar:l,allowKeyTypes:m}){return J({name:"objectParslet",accept:v=>v==="{",parsePrefix:v=>{v.consume("{");let O={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!v.consume("}")){let $,H=new R(l,v.lexer,v);for(;;){H.acceptLexerState(v);let Y=H.parseIntermediateType(I.OBJECT);v.acceptLexerState(H),Y===void 0&&m&&(Y=v.parseIntermediateType(I.OBJECT));let de=!1;if(Y.type==="JsdocTypeNullable"&&(de=!0,Y=Y.element),Y.type==="JsdocTypeNumber"||Y.type==="JsdocTypeName"||Y.type==="JsdocTypeStringValue"){let pe;Y.type==="JsdocTypeStringValue"&&(pe=Y.meta.quote),O.elements.push({type:"JsdocTypeObjectField",key:Y.value.toString(),right:void 0,optional:de,readonly:!1,meta:{quote:pe}})}else if(Y.type==="JsdocTypeObjectField"||Y.type==="JsdocTypeJsdocObjectField")O.elements.push(Y);else throw new a(Y);if(v.lexer.current.startOfLine)$="linebreak",v.consume(",")||v.consume(";");else if(v.consume(","))$="comma";else if(v.consume(";"))$="semicolon";else break;if(v.lexer.current.type==="}")break}if(O.meta.separator=$??"comma",$==="linebreak"&&(O.meta.propertyIndent=" "),!v.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return O}})}function rt({allowSquaredProperties:l,allowKeyTypes:m,allowReadonly:v,allowOptional:O}){return J({name:"objectFieldParslet",precedence:I.KEY_VALUE,accept:$=>$===":",parseInfix:($,H)=>{var Y;let de=!1,pe=!1;O&&H.type==="JsdocTypeNullable"&&(de=!0,H=H.element),v&&H.type==="JsdocTypeReadonlyProperty"&&(pe=!0,H=H.element);let _e=(Y=$.baseParser)!==null&&Y!==void 0?Y:$;if(_e.acceptLexerState($),H.type==="JsdocTypeNumber"||H.type==="JsdocTypeName"||H.type==="JsdocTypeStringValue"||U(H)){if(U(H)&&!l)throw new a(H);_e.consume(":");let We;H.type==="JsdocTypeStringValue"&&(We=H.meta.quote);let Le=_e.parseType(I.KEY_VALUE);return $.acceptLexerState(_e),{type:"JsdocTypeObjectField",key:U(H)?H:H.value.toString(),right:Le,optional:de,readonly:pe,meta:{quote:We}}}else{if(!m)throw new a(H);_e.consume(":");let We=_e.parseType(I.KEY_VALUE);return $.acceptLexerState(_e),{type:"JsdocTypeJsdocObjectField",left:S(H),right:We}}}})}function ut({allowOptional:l,allowVariadic:m}){return J({name:"keyValueParslet",precedence:I.KEY_VALUE,accept:v=>v===":",parseInfix:(v,O)=>{let $=!1,H=!1;if(l&&O.type==="JsdocTypeNullable"&&($=!0,O=O.element),m&&O.type==="JsdocTypeVariadic"&&O.element!==void 0&&(H=!0,O=O.element),O.type!=="JsdocTypeName")throw new a(O);v.consume(":");let Y=v.parseType(I.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:O.value,right:Y,optional:$,variadic:H}}})}let Qe=[...K,se({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),Me,F({allowedTypes:["module","external","event"],pathGrammar:te}),fe({allowEnclosingBrackets:!0,allowPostfix:!0}),ce({allowedAdditionalTokens:["keyof"]}),ge,ke,ye({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:te})],$t=[...Qe,lt({objectFieldGrammar:[ce({allowedAdditionalTokens:["typeof","module","in"]}),rt({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...Qe],allowKeyTypes:!0}),ut({allowOptional:!0,allowVariadic:!0})],wt=J({name:"typeOfParslet",accept:l=>l==="typeof",parsePrefix:l=>(l.consume("typeof"),{type:"JsdocTypeTypeof",element:l.parseType(I.KEY_OF_TYPE_OF)})}),Bt=[ce({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),L,W,Me,ne,rt({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],Kn=[...K,lt({allowKeyTypes:!1,objectFieldGrammar:Bt}),ce({allowedAdditionalTokens:["event","external","in"]}),wt,se({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),fe({allowEnclosingBrackets:!1,allowPostfix:!1}),ce({allowedAdditionalTokens:["keyof"]}),F({allowedTypes:["module"],pathGrammar:te}),ye({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:te}),ut({allowOptional:!1,allowVariadic:!1}),ge],Yn=J({name:"assertsParslet",accept:l=>l==="asserts",parsePrefix:l=>{l.consume("asserts");let m=l.parseIntermediateType(I.SYMBOL);if(m.type!=="JsdocTypeName")throw new a(m,"A typescript asserts always has to have a name on the left side.");return l.consume("is")?{type:"JsdocTypeAsserts",left:m,right:S(l.parseIntermediateType(I.INFIX))}:{type:"JsdocTypeAssertsPlain",element:m}}});function Xn({allowQuestionMark:l}){return J({name:"tupleParslet",accept:m=>m==="[",parsePrefix:m=>{m.consume("[");let v={type:"JsdocTypeTuple",elements:[]};if(m.consume("]"))return v;let O=m.parseIntermediateType(I.ALL);if(O.type==="JsdocTypeParameterList"?O.elements[0].type==="JsdocTypeKeyValue"?v.elements=O.elements.map(A):v.elements=O.elements.map(S):O.type==="JsdocTypeKeyValue"?v.elements=[A(O)]:v.elements=[S(O)],!m.consume("]"))throw new Error("Unterminated '['");if(v.elements.some($=>$.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return v}})}let Qn=J({name:"keyOfParslet",accept:l=>l==="keyof",parsePrefix:l=>(l.consume("keyof"),{type:"JsdocTypeKeyof",element:S(l.parseType(I.KEY_OF_TYPE_OF))})}),Zn=J({name:"importParslet",accept:l=>l==="import",parsePrefix:l=>{if(l.consume("import"),!l.consume("("))throw new Error("Missing parenthesis after import keyword");let m=l.parseType(I.PREFIX);if(m.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!l.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:m}}}),eo=J({name:"readonlyPropertyParslet",accept:l=>l==="readonly",parsePrefix:l=>(l.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:l.parseIntermediateType(I.KEY_VALUE)})}),to=J({name:"arrowFunctionParslet",precedence:I.ARROW,accept:l=>l==="=>",parseInfix:(l,m)=>(l.consume("=>"),{type:"JsdocTypeFunction",parameters:oe(m).map(T),arrow:!0,constructor:!1,parenthesis:!0,returnType:l.parseType(I.OBJECT)})}),ro=J({name:"genericArrowFunctionParslet",accept:l=>l==="<",parsePrefix:l=>{let m=[];l.consume("<");do{let O,$=l.parseIntermediateType(I.SYMBOL);if($.type==="JsdocTypeOptional"&&($=$.element,O=l.parseType(I.SYMBOL)),$.type!=="JsdocTypeName")throw new a($);let H;l.consume("extends")&&(H=l.parseType(I.SYMBOL),H.type==="JsdocTypeOptional"&&(H=H.element,O=l.parseType(I.SYMBOL)));let Y={type:"JsdocTypeTypeParameter",name:$};if(H!==void 0&&(Y.constraint=H),O!==void 0&&(Y.defaultValue=O),m.push(Y),l.consume(">"))break}while(l.consume(","));let v=l.parseIntermediateType(I.SYMBOL);return v.typeParameters=m,v}}),no=J({name:"intersectionParslet",accept:l=>l==="&",precedence:I.INTERSECTION,parseInfix:(l,m)=>{l.consume("&");let v=[];do v.push(l.parseType(I.INTERSECTION));while(l.consume("&"));return{type:"JsdocTypeIntersection",elements:[S(m),...v]}}}),oo=J({name:"predicateParslet",precedence:I.INFIX,accept:l=>l==="is",parseInfix:(l,m)=>{if(m.type!=="JsdocTypeName")throw new a(m,"A typescript predicate always has to have a name on the left side.");return l.consume("is"),{type:"JsdocTypePredicate",left:m,right:S(l.parseIntermediateType(I.INFIX))}}}),io=J({name:"objectSquareBracketPropertyParslet",accept:l=>l==="[",parsePrefix:l=>{if(l.baseParser===void 0)throw new Error("Only allowed inside object grammar");l.consume("[");let m=l.lexer.current.text;l.consume("Identifier");let v;if(l.consume(":")){let O=l.baseParser;O.acceptLexerState(l),v={type:"JsdocTypeIndexSignature",key:m,right:O.parseType(I.INDEX_BRACKETS)},l.acceptLexerState(O)}else if(l.consume("in")){let O=l.baseParser;O.acceptLexerState(l),v={type:"JsdocTypeMappedType",key:m,right:O.parseType(I.ARRAY_BRACKETS)},l.acceptLexerState(O)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!l.consume("]"))throw new Error("Unterminated square brackets");return v}}),ao=J({name:"readonlyArrayParslet",accept:l=>l==="readonly",parsePrefix:l=>(l.consume("readonly"),{type:"JsdocTypeReadonlyArray",element:k(l.parseIntermediateType(I.ALL))})}),so=J({name:"conditionalParslet",precedence:I.INFIX,accept:l=>l==="extends",parseInfix:(l,m)=>{l.consume("extends");let v=l.parseType(I.KEY_OF_TYPE_OF).element,O=l.parseType(I.INFIX);return l.consume(":"),{type:"JsdocTypeConditional",checksType:S(m),extendsType:v,trueType:O,falseType:l.parseType(I.INFIX)}}}),lo=[eo,ce({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),L,W,Me,ne,rt({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),io],uo=[...K,lt({allowKeyTypes:!1,objectFieldGrammar:lo}),ao,wt,Qn,Zn,Me,se({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),Xn({allowQuestionMark:!1}),fe({allowEnclosingBrackets:!1,allowPostfix:!1}),Yn,so,ce({allowedAdditionalTokens:["event","external","in"]}),F({allowedTypes:["module"],pathGrammar:te}),ke,to,ro,ye({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:te}),no,oo,ut({allowVariadic:!0,allowOptional:!0})];function Mr(l,m){switch(m){case"closure":return new R(Kn,l).parse();case"jsdoc":return new R($t,l).parse();case"typescript":return new R(uo,l).parse()}}function co(l,m=["typescript","closure","jsdoc"]){let v;for(let O of m)try{return Mr(l,O)}catch($){v=$}throw v}function ht(l,m){let v=l[m.type];if(v===void 0)throw new Error(`In this set of transform rules exists no rule for type ${m.type}.`);return v(m,O=>ht(l,O))}function le(l){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}function kr(l){let m={params:[]};for(let v of l.parameters)v.type==="JsdocTypeKeyValue"?v.key==="this"?m.this=v.right:v.key==="new"?m.new=v.right:m.params.push(v):m.params.push(v);return m}function Ct(l,m,v){return l==="prefix"?v+m:m+v}function ze(l,m){switch(m){case"double":return`"${l}"`;case"single":return`'${l}'`;case void 0:return l}}function X(){return{JsdocTypeParenthesis:(l,m)=>`(${l.element!==void 0?m(l.element):""})`,JsdocTypeKeyof:(l,m)=>`keyof ${m(l.element)}`,JsdocTypeFunction:(l,m)=>{var v;if(l.arrow){if(l.returnType===void 0)throw new Error("Arrow function needs a return type.");let O=`${l.typeParameters!==void 0?`<${(v=l.typeParameters.map(m).join(", "))!==null&&v!==void 0?v:""}>`:""}(${l.parameters.map(m).join(", ")}) => ${m(l.returnType)}`;return l.constructor&&(O="new "+O),O}else{let O=l.constructor?"new":"function";return l.parenthesis&&(O+=`(${l.parameters.map(m).join(", ")})`,l.returnType!==void 0&&(O+=`: ${m(l.returnType)}`)),O}},JsdocTypeName:l=>l.value,JsdocTypeTuple:(l,m)=>`[${l.elements.map(m).join(", ")}]`,JsdocTypeVariadic:(l,m)=>l.meta.position===void 0?"...":Ct(l.meta.position,m(l.element),"..."),JsdocTypeNamePath:(l,m)=>{let v=m(l.left),O=m(l.right);switch(l.pathType){case"inner":return`${v}~${O}`;case"instance":return`${v}#${O}`;case"property":return`${v}.${O}`;case"property-brackets":return`${v}[${O}]`}},JsdocTypeStringValue:l=>ze(l.value,l.meta.quote),JsdocTypeAny:()=>"*",JsdocTypeGeneric:(l,m)=>{if(l.meta.brackets==="square"){let v=l.elements[0],O=m(v);return v.type==="JsdocTypeUnion"||v.type==="JsdocTypeIntersection"?`(${O})[]`:`${O}[]`}else return`${m(l.left)}${l.meta.dot?".":""}<${l.infer===!0?"infer ":""}${l.elements.map(m).join(", ")}>`},JsdocTypeImport:(l,m)=>`import(${m(l.element)})`,JsdocTypeObjectField:(l,m)=>{let v="";return l.readonly&&(v+="readonly "),typeof l.key=="string"?v+=ze(l.key,l.meta.quote):v+=m(l.key),l.optional&&(v+="?"),l.right===void 0?v:v+`: ${m(l.right)}`},JsdocTypeJsdocObjectField:(l,m)=>`${m(l.left)}: ${m(l.right)}`,JsdocTypeKeyValue:(l,m)=>{let v=l.key;return l.optional&&(v+="?"),l.variadic&&(v="..."+v),l.right===void 0?v:v+`: ${m(l.right)}`},JsdocTypeSpecialNamePath:l=>`${l.specialType}:${ze(l.value,l.meta.quote)}`,JsdocTypeNotNullable:(l,m)=>Ct(l.meta.position,m(l.element),"!"),JsdocTypeNull:()=>"null",JsdocTypeNullable:(l,m)=>Ct(l.meta.position,m(l.element),"?"),JsdocTypeNumber:l=>l.value.toString(),JsdocTypeObject:(l,m)=>{var v,O;return`{${(l.meta.separator==="linebreak"&&l.elements.length>1?`
20
+ `+((v=l.meta.propertyIndent)!==null&&v!==void 0?v:""):"")+l.elements.map(m).join(l.meta.separator==="comma"?", ":l.meta.separator==="linebreak"?`
21
+ `+((O=l.meta.propertyIndent)!==null&&O!==void 0?O:""):"; ")+(l.meta.separator==="linebreak"&&l.elements.length>1?`
22
+ `:"")}}`},JsdocTypeOptional:(l,m)=>Ct(l.meta.position,m(l.element),"="),JsdocTypeSymbol:(l,m)=>`${l.value}(${l.element!==void 0?m(l.element):""})`,JsdocTypeTypeof:(l,m)=>`typeof ${m(l.element)}`,JsdocTypeUndefined:()=>"undefined",JsdocTypeUnion:(l,m)=>l.elements.map(m).join(" | "),JsdocTypeUnknown:()=>"?",JsdocTypeIntersection:(l,m)=>l.elements.map(m).join(" & "),JsdocTypeProperty:l=>ze(l.value,l.meta.quote),JsdocTypePredicate:(l,m)=>`${m(l.left)} is ${m(l.right)}`,JsdocTypeIndexSignature:(l,m)=>`[${l.key}: ${m(l.right)}]`,JsdocTypeMappedType:(l,m)=>`[${l.key} in ${m(l.right)}]`,JsdocTypeAsserts:(l,m)=>`asserts ${m(l.left)} is ${m(l.right)}`,JsdocTypeReadonlyArray:(l,m)=>`readonly ${m(l.element)}`,JsdocTypeAssertsPlain:(l,m)=>`asserts ${m(l.element)}`,JsdocTypeConditional:(l,m)=>`${m(l.checksType)} extends ${m(l.extendsType)} ? ${m(l.trueType)} : ${m(l.falseType)}`,JsdocTypeTypeParameter:(l,m)=>`${m(l.name)}${l.constraint!==void 0?` extends ${m(l.constraint)}`:""}${l.defaultValue!==void 0?` = ${m(l.defaultValue)}`:""}`}}let po=X();function fr(l){return ht(po,l)}let Ts=["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"];function Ze(l){let m={type:"NameExpression",name:l};return Ts.includes(l)&&(m.reservedWord=!0),m}let Ss={JsdocTypeOptional:(l,m)=>{let v=m(l.element);return v.optional=!0,v},JsdocTypeNullable:(l,m)=>{let v=m(l.element);return v.nullable=!0,v},JsdocTypeNotNullable:(l,m)=>{let v=m(l.element);return v.nullable=!1,v},JsdocTypeVariadic:(l,m)=>{if(l.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");let v=m(l.element);return v.repeatable=!0,v},JsdocTypeAny:()=>({type:"AllLiteral"}),JsdocTypeNull:()=>({type:"NullLiteral"}),JsdocTypeStringValue:l=>Ze(ze(l.value,l.meta.quote)),JsdocTypeUndefined:()=>({type:"UndefinedLiteral"}),JsdocTypeUnknown:()=>({type:"UnknownLiteral"}),JsdocTypeFunction:(l,m)=>{let v=kr(l),O={type:"FunctionType",params:v.params.map(m)};return v.this!==void 0&&(O.this=m(v.this)),v.new!==void 0&&(O.new=m(v.new)),l.returnType!==void 0&&(O.result=m(l.returnType)),O},JsdocTypeGeneric:(l,m)=>({type:"TypeApplication",applications:l.elements.map(v=>m(v)),expression:m(l.left)}),JsdocTypeSpecialNamePath:l=>Ze(l.specialType+":"+ze(l.value,l.meta.quote)),JsdocTypeName:l=>l.value!=="function"?Ze(l.value):{type:"FunctionType",params:[]},JsdocTypeNumber:l=>Ze(l.value.toString()),JsdocTypeObject:(l,m)=>{let v={type:"RecordType",fields:[]};for(let O of l.elements)O.type!=="JsdocTypeObjectField"&&O.type!=="JsdocTypeJsdocObjectField"?v.fields.push({type:"FieldType",key:m(O),value:void 0}):v.fields.push(m(O));return v},JsdocTypeObjectField:(l,m)=>{if(typeof l.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:Ze(ze(l.key,l.meta.quote)),value:l.right===void 0?void 0:m(l.right)}},JsdocTypeJsdocObjectField:(l,m)=>({type:"FieldType",key:m(l.left),value:m(l.right)}),JsdocTypeUnion:(l,m)=>({type:"TypeUnion",elements:l.elements.map(v=>m(v))}),JsdocTypeKeyValue:(l,m)=>({type:"FieldType",key:Ze(l.key),value:l.right===void 0?void 0:m(l.right)}),JsdocTypeNamePath:(l,m)=>{let v=m(l.left),O;l.right.type==="JsdocTypeSpecialNamePath"?O=m(l.right).name:O=ze(l.right.value,l.right.meta.quote);let $=l.pathType==="inner"?"~":l.pathType==="instance"?"#":".";return Ze(`${v.name}${$}${O}`)},JsdocTypeSymbol:l=>{let m="",v=l.element,O=!1;return v?.type==="JsdocTypeVariadic"&&(v.meta.position==="prefix"?m="...":O=!0,v=v.element),v?.type==="JsdocTypeName"?m+=v.value:v?.type==="JsdocTypeNumber"&&(m+=v.value.toString()),O&&(m+="..."),Ze(`${l.value}(${m})`)},JsdocTypeParenthesis:(l,m)=>m(S(l.element)),JsdocTypeMappedType:le,JsdocTypeIndexSignature:le,JsdocTypeImport:le,JsdocTypeKeyof:le,JsdocTypeTuple:le,JsdocTypeTypeof:le,JsdocTypeIntersection:le,JsdocTypeProperty:le,JsdocTypePredicate:le,JsdocTypeAsserts:le,JsdocTypeReadonlyArray:le,JsdocTypeAssertsPlain:le,JsdocTypeConditional:le,JsdocTypeTypeParameter:le};function As(l){return ht(Ss,l)}function ct(l){switch(l){case void 0:return"none";case"single":return"single";case"double":return"double"}}function Rs(l){switch(l){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}function Lr(l,m){return m.length===2?{type:l,left:m[0],right:m[1]}:{type:l,left:m[0],right:Lr(l,m.slice(1))}}let Os={JsdocTypeOptional:(l,m)=>({type:"OPTIONAL",value:m(l.element),meta:{syntax:l.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),JsdocTypeNullable:(l,m)=>({type:"NULLABLE",value:m(l.element),meta:{syntax:l.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),JsdocTypeNotNullable:(l,m)=>({type:"NOT_NULLABLE",value:m(l.element),meta:{syntax:l.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),JsdocTypeVariadic:(l,m)=>{let v={type:"VARIADIC",meta:{syntax:l.meta.position==="prefix"?"PREFIX_DOTS":l.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return l.element!==void 0&&(v.value=m(l.element)),v},JsdocTypeName:l=>({type:"NAME",name:l.value}),JsdocTypeTypeof:(l,m)=>({type:"TYPE_QUERY",name:m(l.element)}),JsdocTypeTuple:(l,m)=>({type:"TUPLE",entries:l.elements.map(m)}),JsdocTypeKeyof:(l,m)=>({type:"KEY_QUERY",value:m(l.element)}),JsdocTypeImport:l=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:ct(l.element.meta.quote),string:l.element.value}}),JsdocTypeUndefined:()=>({type:"NAME",name:"undefined"}),JsdocTypeAny:()=>({type:"ANY"}),JsdocTypeFunction:(l,m)=>{let v=kr(l),O={type:l.arrow?"ARROW":"FUNCTION",params:v.params.map($=>{if($.type==="JsdocTypeKeyValue"){if($.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:$.key,typeName:m($.right)}}else return m($)}),new:null,returns:null};return v.this!==void 0?O.this=m(v.this):l.arrow||(O.this=null),v.new!==void 0&&(O.new=m(v.new)),l.returnType!==void 0&&(O.returns=m(l.returnType)),O},JsdocTypeGeneric:(l,m)=>{let v={type:"GENERIC",subject:m(l.left),objects:l.elements.map(m),meta:{syntax:l.meta.brackets==="square"?"SQUARE_BRACKET":l.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return l.meta.brackets==="square"&&l.elements[0].type==="JsdocTypeFunction"&&!l.elements[0].parenthesis&&(v.objects[0]={type:"NAME",name:"function"}),v},JsdocTypeObjectField:(l,m)=>{if(typeof l.key!="string")throw new Error("Index signatures and mapped types are not supported");if(l.right===void 0)return{type:"RECORD_ENTRY",key:l.key,quoteStyle:ct(l.meta.quote),value:null,readonly:!1};let v=m(l.right);return l.optional&&(v={type:"OPTIONAL",value:v,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:l.key.toString(),quoteStyle:ct(l.meta.quote),value:v,readonly:!1}},JsdocTypeJsdocObjectField:()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},JsdocTypeKeyValue:(l,m)=>{if(l.right===void 0)return{type:"RECORD_ENTRY",key:l.key,quoteStyle:"none",value:null,readonly:!1};let v=m(l.right);return l.optional&&(v={type:"OPTIONAL",value:v,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:l.key,quoteStyle:"none",value:v,readonly:!1}},JsdocTypeObject:(l,m)=>{let v=[];for(let O of l.elements)(O.type==="JsdocTypeObjectField"||O.type==="JsdocTypeJsdocObjectField")&&v.push(m(O));return{type:"RECORD",entries:v}},JsdocTypeSpecialNamePath:l=>{if(l.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${l.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:ct(l.meta.quote),path:l.value}}},JsdocTypeNamePath:(l,m)=>{let v=!1,O,$;l.right.type==="JsdocTypeSpecialNamePath"&&l.right.specialType==="event"?(v=!0,O=l.right.value,$=ct(l.right.meta.quote)):(O=l.right.value,$=ct(l.right.meta.quote));let H={type:Rs(l.pathType),owner:m(l.left),name:O,quoteStyle:$,hasEventPrefix:v};if(H.owner.type==="MODULE"){let Y=H.owner;return H.owner=H.owner.value,Y.value=H,Y}else return H},JsdocTypeUnion:(l,m)=>Lr("UNION",l.elements.map(m)),JsdocTypeParenthesis:(l,m)=>({type:"PARENTHESIS",value:m(S(l.element))}),JsdocTypeNull:()=>({type:"NAME",name:"null"}),JsdocTypeUnknown:()=>({type:"UNKNOWN"}),JsdocTypeStringValue:l=>({type:"STRING_VALUE",quoteStyle:ct(l.meta.quote),string:l.value}),JsdocTypeIntersection:(l,m)=>Lr("INTERSECTION",l.elements.map(m)),JsdocTypeNumber:l=>({type:"NUMBER_VALUE",number:l.value.toString()}),JsdocTypeSymbol:le,JsdocTypeProperty:le,JsdocTypePredicate:le,JsdocTypeMappedType:le,JsdocTypeIndexSignature:le,JsdocTypeAsserts:le,JsdocTypeReadonlyArray:le,JsdocTypeAssertsPlain:le,JsdocTypeConditional:le,JsdocTypeTypeParameter:le};function Ps(l){return ht(Os,l)}function xs(){return{JsdocTypeIntersection:(l,m)=>({type:"JsdocTypeIntersection",elements:l.elements.map(m)}),JsdocTypeGeneric:(l,m)=>({type:"JsdocTypeGeneric",left:m(l.left),elements:l.elements.map(m),meta:{dot:l.meta.dot,brackets:l.meta.brackets}}),JsdocTypeNullable:l=>l,JsdocTypeUnion:(l,m)=>({type:"JsdocTypeUnion",elements:l.elements.map(m)}),JsdocTypeUnknown:l=>l,JsdocTypeUndefined:l=>l,JsdocTypeTypeof:(l,m)=>({type:"JsdocTypeTypeof",element:m(l.element)}),JsdocTypeSymbol:(l,m)=>{let v={type:"JsdocTypeSymbol",value:l.value};return l.element!==void 0&&(v.element=m(l.element)),v},JsdocTypeOptional:(l,m)=>({type:"JsdocTypeOptional",element:m(l.element),meta:{position:l.meta.position}}),JsdocTypeObject:(l,m)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:l.elements.map(m)}),JsdocTypeNumber:l=>l,JsdocTypeNull:l=>l,JsdocTypeNotNullable:(l,m)=>({type:"JsdocTypeNotNullable",element:m(l.element),meta:{position:l.meta.position}}),JsdocTypeSpecialNamePath:l=>l,JsdocTypeObjectField:(l,m)=>({type:"JsdocTypeObjectField",key:l.key,right:l.right===void 0?void 0:m(l.right),optional:l.optional,readonly:l.readonly,meta:l.meta}),JsdocTypeJsdocObjectField:(l,m)=>({type:"JsdocTypeJsdocObjectField",left:m(l.left),right:m(l.right)}),JsdocTypeKeyValue:(l,m)=>({type:"JsdocTypeKeyValue",key:l.key,right:l.right===void 0?void 0:m(l.right),optional:l.optional,variadic:l.variadic}),JsdocTypeImport:(l,m)=>({type:"JsdocTypeImport",element:m(l.element)}),JsdocTypeAny:l=>l,JsdocTypeStringValue:l=>l,JsdocTypeNamePath:l=>l,JsdocTypeVariadic:(l,m)=>{let v={type:"JsdocTypeVariadic",meta:{position:l.meta.position,squareBrackets:l.meta.squareBrackets}};return l.element!==void 0&&(v.element=m(l.element)),v},JsdocTypeTuple:(l,m)=>({type:"JsdocTypeTuple",elements:l.elements.map(m)}),JsdocTypeName:l=>l,JsdocTypeFunction:(l,m)=>{let v={type:"JsdocTypeFunction",arrow:l.arrow,parameters:l.parameters.map(m),constructor:l.constructor,parenthesis:l.parenthesis};return l.returnType!==void 0&&(v.returnType=m(l.returnType)),v},JsdocTypeKeyof:(l,m)=>({type:"JsdocTypeKeyof",element:m(l.element)}),JsdocTypeParenthesis:(l,m)=>({type:"JsdocTypeParenthesis",element:m(l.element)}),JsdocTypeProperty:l=>l,JsdocTypePredicate:(l,m)=>({type:"JsdocTypePredicate",left:m(l.left),right:m(l.right)}),JsdocTypeIndexSignature:(l,m)=>({type:"JsdocTypeIndexSignature",key:l.key,right:m(l.right)}),JsdocTypeMappedType:(l,m)=>({type:"JsdocTypeMappedType",key:l.key,right:m(l.right)}),JsdocTypeAsserts:(l,m)=>({type:"JsdocTypeAsserts",left:m(l.left),right:m(l.right)}),JsdocTypeReadonlyArray:(l,m)=>({type:"JsdocTypeReadonlyArray",element:m(l.element)}),JsdocTypeAssertsPlain:(l,m)=>({type:"JsdocTypeAssertsPlain",element:m(l.element)}),JsdocTypeConditional:(l,m)=>({type:"JsdocTypeConditional",checksType:m(l.checksType),extendsType:m(l.extendsType),trueType:m(l.trueType),falseType:m(l.falseType)}),JsdocTypeTypeParameter:(l,m)=>({type:"JsdocTypeTypeParameter",name:m(l.name),constraint:l.constraint!==void 0?m(l.constraint):void 0,defaultValue:l.defaultValue!==void 0?m(l.defaultValue):void 0})}}let fo={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 Dr(l,m,v,O,$){O?.(l,m,v);let H=fo[l.type];for(let Y of H){let de=l[Y];if(de!==void 0)if(Array.isArray(de))for(let pe of de)Dr(pe,l,Y,O,$);else Dr(de,l,Y,O,$)}$?.(l,m,v)}function Cs(l,m,v){Dr(l,void 0,void 0,m,v)}r.catharsisTransform=As,r.identityTransformRules=xs,r.jtpTransform=Ps,r.parse=Mr,r.stringify=fr,r.stringifyRules=X,r.transform=ht,r.traverse=Cs,r.tryParse=co,r.visitorKeys=fo}))}}),SO=N({"../../node_modules/browser-dtector/browser-dtector.umd.min.js"(e,t){(function(r,n){typeof e=="object"&&typeof t<"u"?t.exports=n():typeof define=="function"&&define.amd?define(n):(r=typeof globalThis<"u"?globalThis:r||self).BrowserDetector=n()})(e,(function(){function r(c,u){for(var d=0;d<u.length;d++){var p=u[d];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(c,(f=p.key,h=void 0,typeof(h=(function(y,g){if(typeof y!="object"||y===null)return y;var E=y[Symbol.toPrimitive];if(E!==void 0){var b=E.call(y,g);if(typeof b!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(y)})(f,"string"))=="symbol"?h:String(h)),p)}var f,h}var n={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"},o={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"},i=function(c){var u=new RegExp("^-?\\d+(?:.\\d{0,".concat(arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,"})?")),d=Number(c).toString().match(u);return d?d[0]:null},a=function(){return typeof window<"u"?window.navigator:null},s=(function(){function c(f){var h;(function(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")})(this,c),this.userAgent=f||((h=a())===null||h===void 0?void 0:h.userAgent)||null}var u,d,p;return u=c,d=[{key:"parseUserAgent",value:function(f){var h,y,g,E={},b=f||this.userAgent||"",w=b.toLowerCase().replace(/\s\s+/g," "),P=/(edge)\/([\w.]+)/.exec(w)||/(edg)[/]([\w.]+)/.exec(w)||/(opr)[/]([\w.]+)/.exec(w)||/(opt)[/]([\w.]+)/.exec(w)||/(fxios)[/]([\w.]+)/.exec(w)||/(edgios)[/]([\w.]+)/.exec(w)||/(jsdom)[/]([\w.]+)/.exec(w)||/(samsungbrowser)[/]([\w.]+)/.exec(w)||/(electron)[/]([\w.]+)/.exec(w)||/(chrome)[/]([\w.]+)/.exec(w)||/(crios)[/]([\w.]+)/.exec(w)||/(opios)[/]([\w.]+)/.exec(w)||/(version)(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(w)||/(webkit)[/]([\w.]+).*(version)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(w)||/(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(w)||/(webkit)[/]([\w.]+)/.exec(w)||/(opera)(?:.*version|)[/]([\w.]+)/.exec(w)||/(msie) ([\w.]+)/.exec(w)||/(fennec)[/]([\w.]+)/.exec(w)||w.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(w)||w.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(w)||[],x=/(ipad)/.exec(w)||/(ipod)/.exec(w)||/(iphone)/.exec(w)||/(jsdom)/.exec(w)||/(windows phone)/.exec(w)||/(xbox)/.exec(w)||/(win)/.exec(w)||/(tablet)/.exec(w)||/(android)/.test(w)&&/(mobile)/.test(w)===!1&&["androidTablet"]||/(android)/.exec(w)||/(mac)/.exec(w)||/(linux)/.exec(w)||/(cros)/.exec(w)||[],C=P[5]||P[3]||P[1]||null,S=x[0]||null,_=P[4]||P[2]||null,T=a();C==="chrome"&&typeof(T==null||(h=T.brave)===null||h===void 0?void 0:h.isBrave)=="function"&&(C="brave"),C&&(E[C]=!0),S&&(E[S]=!0);var A=!!(E.tablet||E.android||E.androidTablet),D=!!(E.ipad||E.tablet||E.androidTablet),k=!!(E.android||E.androidTablet||E.tablet||E.ipad||E.ipod||E.iphone||E["windows phone"]),U=!!(E.cros||E.mac||E.linux||E.win),I=!!(E.brave||E.chrome||E.crios||E.opr||E.safari||E.edg||E.electron),R=!!(E.msie||E.rv);return{name:(y=n[C])!==null&&y!==void 0?y:null,platform:(g=o[S])!==null&&g!==void 0?g:null,userAgent:b,version:_,shortVersion:_?i(parseFloat(_),2):null,isAndroid:A,isTablet:D,isMobile:k,isDesktop:U,isWebkit:I,isIE:R}}},{key:"getBrowserInfo",value:function(){var f=this.parseUserAgent();return{name:f.name,platform:f.platform,userAgent:f.userAgent,version:f.version,shortVersion:f.shortVersion}}}],p=[{key:"VERSION",get:function(){return"3.4.0"}}],d&&r(u.prototype,d),p&&r(u,p),Object.defineProperty(u,"prototype",{writable:!1}),c})();return s}))}}),Bu={};ft(Bu,{ARGTYPES_INFO_REQUEST:()=>dy,ARGTYPES_INFO_RESPONSE:()=>_l,CHANNEL_CREATED:()=>RO,CHANNEL_WS_DISCONNECT:()=>Hm,CONFIG_ERROR:()=>Gm,CREATE_NEW_STORYFILE_REQUEST:()=>OO,CREATE_NEW_STORYFILE_RESPONSE:()=>PO,CURRENT_STORY_WAS_SET:()=>vl,DOCS_PREPARED:()=>zm,DOCS_RENDERED:()=>Uu,FILE_COMPONENT_SEARCH_REQUEST:()=>xO,FILE_COMPONENT_SEARCH_RESPONSE:()=>CO,FORCE_REMOUNT:()=>oa,FORCE_RE_RENDER:()=>Ju,GHOST_STORIES_REQUEST:()=>KO,GHOST_STORIES_RESPONSE:()=>YO,GLOBALS_UPDATED:()=>$o,MANAGER_INERT_ATTRIBUTE_CHANGED:()=>py,NAVIGATE_URL:()=>NO,OPEN_IN_EDITOR_REQUEST:()=>XO,OPEN_IN_EDITOR_RESPONSE:()=>QO,PLAY_FUNCTION_THREW_EXCEPTION:()=>Wm,PRELOAD_ENTRIES:()=>Ym,PREVIEW_BUILDER_PROGRESS:()=>IO,PREVIEW_INITIALIZED:()=>Xm,PREVIEW_KEYDOWN:()=>Qm,REGISTER_SUBSCRIPTION:()=>jO,REQUEST_WHATS_NEW_DATA:()=>JO,RESET_STORY_ARGS:()=>Vu,RESULT_WHATS_NEW_DATA:()=>VO,SAVE_STORY_REQUEST:()=>zO,SAVE_STORY_RESPONSE:()=>WO,SELECT_STORY:()=>qO,SET_CONFIG:()=>MO,SET_CURRENT_STORY:()=>Hu,SET_FILTER:()=>kO,SET_GLOBALS:()=>Zm,SET_INDEX:()=>LO,SET_STORIES:()=>DO,SET_WHATS_NEW_CACHE:()=>HO,SHARED_STATE_CHANGED:()=>$O,SHARED_STATE_SET:()=>BO,SHARE_ISOLATE_MODE:()=>eP,SHARE_POPOVER_OPENED:()=>tP,SHARE_STORY_LINK:()=>ZO,STORIES_COLLAPSE_ALL:()=>FO,STORIES_EXPAND_ALL:()=>UO,STORY_ARGS_UPDATED:()=>ey,STORY_CHANGED:()=>ty,STORY_ERRORED:()=>ry,STORY_FINISHED:()=>wl,STORY_HOT_UPDATED:()=>ly,STORY_INDEX_INVALIDATED:()=>ny,STORY_MISSING:()=>El,STORY_PREPARED:()=>oy,STORY_RENDERED:()=>ia,STORY_RENDER_PHASE_CHANGED:()=>Zr,STORY_SPECIFIED:()=>iy,STORY_THREW_EXCEPTION:()=>ay,STORY_UNCHANGED:()=>sy,TELEMETRY_ERROR:()=>cy,TOGGLE_WHATS_NEW_NOTIFICATIONS:()=>GO,UNHANDLED_ERRORS_WHILE_PLAYING:()=>Km,UPDATE_GLOBALS:()=>Gu,UPDATE_QUERY_PARAMS:()=>uy,UPDATE_STORY_ARGS:()=>zu,default:()=>AO});var Fu=(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))(Fu||{}),AO=Fu,{CHANNEL_WS_DISCONNECT:Hm,CHANNEL_CREATED:RO,CONFIG_ERROR:Gm,CREATE_NEW_STORYFILE_REQUEST:OO,CREATE_NEW_STORYFILE_RESPONSE:PO,CURRENT_STORY_WAS_SET:vl,DOCS_PREPARED:zm,DOCS_RENDERED:Uu,FILE_COMPONENT_SEARCH_REQUEST:xO,FILE_COMPONENT_SEARCH_RESPONSE:CO,FORCE_RE_RENDER:Ju,FORCE_REMOUNT:oa,GLOBALS_UPDATED:$o,NAVIGATE_URL:NO,PLAY_FUNCTION_THREW_EXCEPTION:Wm,UNHANDLED_ERRORS_WHILE_PLAYING:Km,PRELOAD_ENTRIES:Ym,PREVIEW_INITIALIZED:Xm,PREVIEW_BUILDER_PROGRESS:IO,PREVIEW_KEYDOWN:Qm,REGISTER_SUBSCRIPTION:jO,RESET_STORY_ARGS:Vu,SELECT_STORY:qO,SET_CONFIG:MO,SET_CURRENT_STORY:Hu,SET_FILTER:kO,SET_GLOBALS:Zm,SET_INDEX:LO,SET_STORIES:DO,SHARED_STATE_CHANGED:$O,SHARED_STATE_SET:BO,STORIES_COLLAPSE_ALL:FO,STORIES_EXPAND_ALL:UO,STORY_ARGS_UPDATED:ey,STORY_CHANGED:ty,STORY_ERRORED:ry,STORY_INDEX_INVALIDATED:ny,STORY_MISSING:El,STORY_PREPARED:oy,STORY_RENDER_PHASE_CHANGED:Zr,STORY_RENDERED:ia,STORY_FINISHED:wl,STORY_SPECIFIED:iy,STORY_THREW_EXCEPTION:ay,STORY_UNCHANGED:sy,STORY_HOT_UPDATED:ly,UPDATE_GLOBALS:Gu,UPDATE_QUERY_PARAMS:uy,UPDATE_STORY_ARGS:zu,REQUEST_WHATS_NEW_DATA:JO,RESULT_WHATS_NEW_DATA:VO,SET_WHATS_NEW_CACHE:HO,TOGGLE_WHATS_NEW_NOTIFICATIONS:GO,TELEMETRY_ERROR:cy,SAVE_STORY_REQUEST:zO,SAVE_STORY_RESPONSE:WO,ARGTYPES_INFO_REQUEST:dy,ARGTYPES_INFO_RESPONSE:_l,GHOST_STORIES_REQUEST:KO,GHOST_STORIES_RESPONSE:YO,OPEN_IN_EDITOR_REQUEST:XO,OPEN_IN_EDITOR_RESPONSE:QO,MANAGER_INERT_ATTRIBUTE_CHANGED:py,SHARE_STORY_LINK:ZO,SHARE_ISOLATE_MODE:eP,SHARE_POPOVER_OPENED:tP}=Fu,fy={};ft(fy,{global:()=>ee});var ee=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof global<"u"?e=global:typeof self<"u"?e=self:e={},e})(),hy={"@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__"},rP=Object.keys(hy),my={};ft(my,{Channel:()=>Ja,HEARTBEAT_INTERVAL:()=>$y,HEARTBEAT_MAX_LATENCY:()=>By,PostMessageTransport:()=>Dy,WebsocketTransport:()=>Fy,createBrowserChannel:()=>yN,default:()=>mN});function Ee(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var o=n.reduce(function(s,c){var u=c.match(/\n([\t ]+|(?!\s).)/g);return u?s.concat(u.map(function(d){var p,f;return(f=(p=d.match(/[\t ]/g))===null||p===void 0?void 0:p.length)!==null&&f!==void 0?f:0})):s},[]);if(o.length){var i=new RegExp(`
23
+ [ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(s){return s.replace(i,`
24
+ `)})}n[0]=n[0].replace(/^\r?\n/,"");var a=n[0];return t.forEach(function(s,c){var u=a.match(/(?:^|\n)( *)$/),d=u?u[1]:"",p=s;typeof s=="string"&&s.includes(`
25
+ `)&&(p=String(s).split(`
26
+ `).map(function(f,h){return h===0?f:""+d+f}).join(`
27
+ `)),a+=p+n[c+1]}),a}var Qd=new Map,nP="UNIVERSAL_STORE:",_t={PENDING:"PENDING",RESOLVED:"RESOLVED",REJECTED:"REJECTED"},Vr=class he{constructor(t,r){if(this.debugging=!1,this.listeners=new Map([["*",new Set]]),this.getState=()=>(this.debug("getState",{state:this.state}),this.state),this.subscribe=(n,o)=>{let i=typeof n=="function",a=i?"*":n,s=i?n:o;if(this.debug("subscribe",{eventType:a,listener:s}),!s)throw new 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(a)||this.listeners.set(a,new Set),this.listeners.get(a).add(s),()=>{this.debug("unsubscribe",{eventType:a,listener:s}),this.listeners.has(a)&&(this.listeners.get(a).delete(s),this.listeners.get(a)?.size===0&&this.listeners.delete(a))}},this.send=n=>{if(this.debug("send",{event:n}),this.status!==he.Status.READY)throw new TypeError(Ee`Cannot send event before store is ready. You can get the current status with store.status,
28
+ or await store.readyPromise to wait for the store to be ready before sending events.
29
+ ${JSON.stringify({event:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.emitToListeners(n,{actor:this.actor}),this.emitToChannel(n,{actor:this.actor})},this.debugging=t.debug??!1,!he.isInternalConstructing)throw new TypeError("UniversalStore is not constructable - use UniversalStore.create() instead");if(he.isInternalConstructing=!1,this.id=t.id,this.actorId=Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?he.ActorType.LEADER:he.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${nP}${this.id}`,this.debug("constructor",{options:t,environmentOverrides:r,channelEventName:this.channelEventName}),this.actor.type===he.ActorType.LEADER)this.syncing={state:_t.RESOLVED,promise:Promise.resolve()};else{let n,o,i=new Promise((a,s)=>{n=()=>{this.syncing.state===_t.PENDING&&(this.syncing.state=_t.RESOLVED,a())},o=c=>{this.syncing.state===_t.PENDING&&(this.syncing.state=_t.REJECTED,s(c))}});this.syncing={state:_t.PENDING,promise:i,resolve:n,reject:o}}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=r?.channel??he.preparation.channel,this.environment=r?.environment??he.preparation.environment,this.channel&&this.environment?(he.preparation.resolve({channel:this.channel,environment:this.environment}),this.prepareThis({channel:this.channel,environment:this.environment})):he.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,r,n=new Promise((o,i)=>{t=a=>{o(a)},r=(...a)=>{i(a)}});he.preparation={resolve:t,reject:r,promise:n}}get actor(){return Object.freeze({id:this.actorId,type:this.actorType,environment:this.environment??he.Environment.UNKNOWN})}get status(){if(!this.channel||!this.environment)return he.Status.UNPREPARED;switch(this.syncing?.state){case _t.PENDING:case void 0:return he.Status.SYNCING;case _t.REJECTED:return he.Status.ERROR;case _t.RESOLVED:default:return he.Status.READY}}untilReady(){return Promise.all([he.preparation.promise,this.syncing?.promise])}static create(t){if(!t||typeof t?.id!="string")throw new TypeError("id is required and must be a string, when creating a UniversalStore");t.debug&&console.debug(Ee`[UniversalStore]
30
+ create`,{options:t});let r=Qd.get(t.id);if(r)return console.warn(Ee`UniversalStore with id "${t.id}" already exists in this environment, re-using existing.
31
+ You should reuse the existing instance instead of trying to create a new one.`),r;he.isInternalConstructing=!0;let n=new he(t);return Qd.set(t.id,n),n}static __prepare(t,r){he.preparation.channel=t,he.preparation.environment=r,he.preparation.resolve({channel:t,environment:r})}setState(t){let r=this.state,n=typeof t=="function"?t(r):t;if(this.debug("setState",{newState:n,previousState:r,updater:t}),this.status!==he.Status.READY)throw new TypeError(Ee`Cannot set state before store is ready. You can get the current status with store.status,
32
+ or await store.readyPromise to wait for the store to be ready before sending events.
33
+ ${JSON.stringify({newState:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.state=n;let o={type:he.InternalEventType.SET_STATE,payload:{state:n,previousState:r}};this.emitToChannel(o,{actor:this.actor}),this.emitToListeners(o,{actor:this.actor})}onStateChange(t){return this.debug("onStateChange",{listener:t}),this.subscribe(he.InternalEventType.SET_STATE,({payload:r},n)=>{t(r.state,r.previousState,n)})}emitToChannel(t,r){this.debug("emitToChannel",{event:t,eventInfo:r,channel:!!this.channel}),this.channel?.emit(this.channelEventName,{event:t,eventInfo:r})}prepareThis({channel:t,environment:r}){this.channel=t,this.environment=r,this.debug("prepared",{channel:!!t,environment:r}),this.channel.on(this.channelEventName,this.handleChannelEvents),this.actor.type===he.ActorType.LEADER?this.emitToChannel({type:he.InternalEventType.LEADER_CREATED},{actor:this.actor}):(this.emitToChannel({type:he.InternalEventType.FOLLOWER_CREATED},{actor:this.actor}),this.emitToChannel({type:he.InternalEventType.EXISTING_STATE_REQUEST},{actor:this.actor}),setTimeout(()=>{this.syncing.reject(new 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(t,r){let n=this.listeners.get(t.type),o=this.listeners.get("*");this.debug("emitToListeners",{event:t,eventInfo:r,eventTypeListeners:n,everythingListeners:o}),[...n??[],...o??[]].forEach(i=>i(t,r))}handleChannelEvents(t){let{event:r,eventInfo:n}=t;if([n.actor.id,n.forwardingActor?.id].includes(this.actor.id)){this.debug("handleChannelEvents: Ignoring event from self",{channelEvent:t});return}else if(this.syncing?.state===_t.PENDING&&r.type!==he.InternalEventType.EXISTING_STATE_RESPONSE){this.debug("handleChannelEvents: Ignoring event while syncing",{channelEvent:t});return}if(this.debug("handleChannelEvents",{channelEvent:t}),this.actor.type===he.ActorType.LEADER){let o=!0;switch(r.type){case he.InternalEventType.EXISTING_STATE_REQUEST:o=!1;let i={type:he.InternalEventType.EXISTING_STATE_RESPONSE,payload:this.state};this.debug("handleChannelEvents: responding to existing state request",{responseEvent:i}),this.emitToChannel(i,{actor:this.actor}),this.emitToListeners(i,{actor:this.actor});break;case he.InternalEventType.LEADER_CREATED:o=!1,this.syncing.state=_t.REJECTED,this.debug("handleChannelEvents: erroring due to second leader being created",{event:r}),console.error(Ee`Detected multiple UniversalStore leaders created with the same id "${this.id}".
34
+ Only one leader can exists at a time, your stores are now in an invalid state.
35
+ Leaders detected:
36
+ this: ${JSON.stringify(this.actor,null,2)}
37
+ other: ${JSON.stringify(n.actor,null,2)}`);break}o&&(this.debug("handleChannelEvents: forwarding event",{channelEvent:t}),this.emitToChannel(r,{actor:n.actor,forwardingActor:this.actor}))}if(this.actor.type===he.ActorType.FOLLOWER)switch(r.type){case he.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug("handleChannelEvents: Setting state from leader's existing state response",{event:r}),this.syncing?.state!==_t.PENDING)break;this.syncing.resolve?.();let o={type:he.InternalEventType.SET_STATE,payload:{state:r.payload,previousState:this.state}};this.state=r.payload,this.emitToListeners(o,n);break}switch(r.type){case he.InternalEventType.SET_STATE:this.debug("handleChannelEvents: Setting state",{event:r}),this.state=r.payload.state;break}this.emitToListeners(r,{actor:n.actor})}debug(t,r){this.debugging&&console.debug(Ee`[UniversalStore::${this.id}::${this.environment??he.Environment.UNKNOWN}]
38
+ ${t}`,JSON.stringify({data:r,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){he.preparation.reject(new Error("reset")),he.setupPreparationPromise(),he.isInternalConstructing=!1}};Vr.ActorType={LEADER:"LEADER",FOLLOWER:"FOLLOWER"},Vr.Environment={SERVER:"SERVER",MANAGER:"MANAGER",PREVIEW:"PREVIEW",UNKNOWN:"UNKNOWN",MOCK:"MOCK"},Vr.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"},Vr.Status={UNPREPARED:"UNPREPARED",SYNCING:"SYNCING",READY:"READY",ERROR:"ERROR"},Vr.isInternalConstructing=!1,Vr.setupPreparationPromise();var Ns=Vr,oP=e=>e.transports!==void 0,iP=()=>Math.random().toString(16).slice(2),Ja=class{constructor(e={}){this.sender=iP(),this.events={},this.data={},this.transports=[],this.isAsync=e.async||!1,oP(e)?(this.transports=e.transports||[],this.transports.forEach(t=>{t.setHandler(r=>this.handleEvent(r))})):this.transports=e.transport?[e.transport]:[],this.transports.forEach(t=>{t.setHandler(r=>this.handleEvent(r))})}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 r={type:e,args:t,from:this.sender},n={};t.length>=1&&t[0]&&t[0].options&&(n=t[0].options);let o=()=>{this.transports.forEach(i=>{i.send(r,n)}),this.handleEvent(r)};this.isAsync?setImmediate(o):o()}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 r=this.onceListener(e,t);this.addListener(e,r)}removeAllListeners(e){e?this.events[e]&&delete this.events[e]:this.events={}}removeListener(e,t){let r=this.listeners(e);r&&(this.events[e]=r.filter(n=>n!==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(r=>{r.apply(e,e.args)}),this.data[e.type]=e.args}onceListener(e,t){let r=(...n)=>(this.removeListener(e,r),t(...n));return r}},yy={};ft(yy,{deprecate:()=>Wu,logger:()=>Ie,once:()=>Ue,pretty:()=>vt});var{LOGLEVEL:aP}=ee,vr={trace:1,debug:2,info:3,warn:4,error:5,silent:10},sP=aP,hn=vr[sP]||vr.info,Ie={trace:(e,...t)=>{hn<=vr.trace&&console.trace(e,...t)},debug:(e,...t)=>{hn<=vr.debug&&console.debug(e,...t)},info:(e,...t)=>{hn<=vr.info&&console.info(e,...t)},warn:(e,...t)=>{hn<=vr.warn&&console.warn(e,...t)},error:(e,...t)=>{hn<=vr.error&&console.error(e,...t)},log:(e,...t)=>{hn<vr.silent&&console.log(e,...t)}},Tl=new Set,Ue=e=>(t,...r)=>{if(!Tl.has(t))return Tl.add(t),Ie[e](t,...r)};Ue.clear=()=>Tl.clear();Ue.trace=Ue("trace");Ue.debug=Ue("debug");Ue.info=Ue("info");Ue.warn=Ue("warn");Ue.error=Ue("error");Ue.log=Ue("log");var Wu=Ue("warn"),vt=e=>(...t)=>{let r=[];if(t.length){let n=/<span\s+style=(['"])([^'"]*)\1\s*>/gi,o=/<\/span>/gi,i;for(r.push(t[0].replace(n,"%c").replace(o,"%c"));i=n.exec(t[0]);)r.push(i[2]),r.push("");for(let a=1;a<t.length;a++)r.push(t[a])}Ie[e].apply(Ie,r)};vt.trace=vt("trace");vt.debug=vt("debug");vt.info=vt("info");vt.warn=vt("warn");vt.error=vt("error");var lP=Object.create,gy=Object.defineProperty,uP=Object.getOwnPropertyDescriptor,by=Object.getOwnPropertyNames,cP=Object.getPrototypeOf,dP=Object.prototype.hasOwnProperty,be=(e,t)=>function(){return t||(0,e[by(e)[0]])((t={exports:{}}).exports,t),t.exports},pP=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of by(t))!dP.call(e,o)&&o!==r&&gy(e,o,{get:()=>t[o],enumerable:!(n=uP(t,o))||n.enumerable});return e},Ku=(e,t,r)=>(r=e!=null?lP(cP(e)):{},pP(!e||!e.__esModule?gy(r,"default",{value:e,enumerable:!0}):r,e)),fP=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],hP=["detail"];function mP(e){let t=fP.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of hP.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var vy=be({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),yP=be({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),gP=be({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),bP=be({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),vP=be({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),EP=be({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),Yu=be({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),wP=be({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),_P=be({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),TP=be({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),SP=be({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),AP=be({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),RP=be({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),OP=be({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),PP=be({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(r){return r!==r}}}),xP=be({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=PP();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),CP=be({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),Xu=be({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=CP();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),NP=be({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r}}),Ey=be({"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 r={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var i=42;r[n]=i;for(var a in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var s=Object.getOwnPropertySymbols(r);if(s.length!==1||s[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(r,n);if(c.value!==i||c.enumerable!==!0)return!1}return!0}}}),wy=be({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=Ey();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),_y=be({"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}}),Ty=be({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=vy();t.exports=r.getPrototypeOf||null}}),IP=be({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,o=Math.max,i="[object Function]",a=function(u,d){for(var p=[],f=0;f<u.length;f+=1)p[f]=u[f];for(var h=0;h<d.length;h+=1)p[h+u.length]=d[h];return p},s=function(u,d){for(var p=[],f=d,h=0;f<u.length;f+=1,h+=1)p[h]=u[f];return p},c=function(u,d){for(var p="",f=0;f<u.length;f+=1)p+=u[f],f+1<u.length&&(p+=d);return p};t.exports=function(u){var d=this;if(typeof d!="function"||n.apply(d)!==i)throw new TypeError(r+d);for(var p=s(arguments,1),f,h=function(){if(this instanceof f){var w=d.apply(this,a(p,arguments));return Object(w)===w?w:this}return d.apply(u,a(p,arguments))},y=o(0,d.length-p.length),g=[],E=0;E<y;E++)g[E]="$"+E;if(f=Function("binder","return function ("+c(g,",")+"){ return binder.apply(this,arguments); }")(h),d.prototype){var b=function(){};b.prototype=d.prototype,f.prototype=new b,b.prototype=null}return f}}}),Va=be({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=IP();t.exports=Function.prototype.bind||r}}),Qu=be({"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}}),Sy=be({"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}}),jP=be({"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}}),qP=be({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=Va(),n=Sy(),o=Qu(),i=jP();t.exports=i||r.call(o,n)}}),Ay=be({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=Va(),n=Yu(),o=Qu(),i=qP();t.exports=function(a){if(a.length<1||typeof a[0]!="function")throw new n("a function is required");return i(r,o,a)}}}),MP=be({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=Ay(),n=Xu(),o;try{o=[].__proto__===Array.prototype}catch(c){if(!c||typeof c!="object"||!("code"in c)||c.code!=="ERR_PROTO_ACCESS")throw c}var i=!!o&&n&&n(Object.prototype,"__proto__"),a=Object,s=a.getPrototypeOf;t.exports=i&&typeof i.get=="function"?r([i.get]):typeof s=="function"?(function(c){return s(c==null?c:a(c))}):!1}}),kP=be({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=_y(),n=Ty(),o=MP();t.exports=r?function(i){return r(i)}:n?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return n(i)}:o?function(i){return o(i)}:null}}),Ry=be({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=Va();t.exports=o.call(r,n)}}),LP=be({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=vy(),o=yP(),i=gP(),a=bP(),s=vP(),c=EP(),u=Yu(),d=wP(),p=_P(),f=TP(),h=SP(),y=AP(),g=RP(),E=OP(),b=xP(),w=Function,P=function(Q){try{return w('"use strict"; return ('+Q+").constructor;")()}catch{}},x=Xu(),C=NP(),S=function(){throw new u},_=x?(function(){try{return arguments.callee,S}catch{try{return x(arguments,"callee").get}catch{return S}}})():S,T=wy()(),A=kP(),D=Ty(),k=_y(),U=Sy(),I=Qu(),R={},M=typeof Uint8Array>"u"||!A?r:A(Uint8Array),L={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":T&&A?A([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":R,"%AsyncGenerator%":R,"%AsyncGeneratorFunction%":R,"%AsyncIteratorPrototype%":R,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":R,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&A?A(A([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!T||!A?r:A(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!T||!A?r:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&A?A(""[Symbol.iterator]()):r,"%Symbol%":T?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":_,"%TypedArray%":M,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":d,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":I,"%Function.prototype.apply%":U,"%Object.defineProperty%":C,"%Object.getPrototypeOf%":D,"%Math.abs%":p,"%Math.floor%":f,"%Math.max%":h,"%Math.min%":y,"%Math.pow%":g,"%Math.round%":E,"%Math.sign%":b,"%Reflect.getPrototypeOf%":k};if(A)try{null.error}catch(Q){J=A(A(Q)),L["%Error.prototype%"]=J}var J,W=function Q(te){var oe;if(te==="%AsyncFunction%")oe=P("async function () {}");else if(te==="%GeneratorFunction%")oe=P("function* () {}");else if(te==="%AsyncGeneratorFunction%")oe=P("async function* () {}");else if(te==="%AsyncGenerator%"){var ae=Q("%AsyncGeneratorFunction%");ae&&(oe=ae.prototype)}else if(te==="%AsyncIteratorPrototype%"){var se=Q("%AsyncGenerator%");se&&A&&(oe=A(se.prototype))}return L[te]=oe,oe},ne={__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"]},ue=Va(),ie=Ry(),z=ue.call(I,Array.prototype.concat),G=ue.call(U,Array.prototype.splice),re=ue.call(I,String.prototype.replace),Z=ue.call(I,String.prototype.slice),K=ue.call(I,RegExp.prototype.exec),ye=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ce=/\\(\\)?/g,Me=function(Q){var te=Z(Q,0,1),oe=Z(Q,-1);if(te==="%"&&oe!=="%")throw new c("invalid intrinsic syntax, expected closing `%`");if(oe==="%"&&te!=="%")throw new c("invalid intrinsic syntax, expected opening `%`");var ae=[];return re(Q,ye,function(se,fe,ge,ke){ae[ae.length]=ge?re(ke,ce,"$1"):fe||se}),ae},F=function(Q,te){var oe=Q,ae;if(ie(ne,oe)&&(ae=ne[oe],oe="%"+ae[0]+"%"),ie(L,oe)){var se=L[oe];if(se===R&&(se=W(oe)),typeof se>"u"&&!te)throw new u("intrinsic "+Q+" exists, but is not available. Please file an issue!");return{alias:ae,name:oe,value:se}}throw new c("intrinsic "+Q+" does not exist!")};t.exports=function(Q,te){if(typeof Q!="string"||Q.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof te!="boolean")throw new u('"allowMissing" argument must be a boolean');if(K(/^%?[^%]*%?$/,Q)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var oe=Me(Q),ae=oe.length>0?oe[0]:"",se=F("%"+ae+"%",te),fe=se.name,ge=se.value,ke=!1,lt=se.alias;lt&&(ae=lt[0],G(oe,z([0,1],lt)));for(var rt=1,ut=!0;rt<oe.length;rt+=1){var Qe=oe[rt],$t=Z(Qe,0,1),wt=Z(Qe,-1);if(($t==='"'||$t==="'"||$t==="`"||wt==='"'||wt==="'"||wt==="`")&&$t!==wt)throw new c("property names with quotes must have matching quotes");if((Qe==="constructor"||!ut)&&(ke=!0),ae+="."+Qe,fe="%"+ae+"%",ie(L,fe))ge=L[fe];else if(ge!=null){if(!(Qe in ge)){if(!te)throw new u("base intrinsic for "+Q+" exists, but the property is not available.");return}if(x&&rt+1>=oe.length){var Bt=x(ge,Qe);ut=!!Bt,ut&&"get"in Bt&&!("originalValue"in Bt.get)?ge=Bt.get:ge=ge[Qe]}else ut=ie(ge,Qe),ge=ge[Qe];ut&&!ke&&(L[fe]=ge)}}return ge}}}),Zu=be({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=LP(),n=Ay(),o=n([r("%String.prototype.indexOf%")]);t.exports=function(i,a){var s=r(i,!!a);return typeof s=="function"&&o(i,".prototype.")>-1?n([s]):s}}}),DP=be({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=Ey();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),Oy=be({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=Zu(),n=DP()(),o=Ry(),i=Xu(),a;n?(s=r("RegExp.prototype.exec"),c={},u=function(){throw c},d={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(d[Symbol.toPrimitive]=u),a=function(h){if(!h||typeof h!="object")return!1;var y=i(h,"lastIndex"),g=y&&o(y,"value");if(!g)return!1;try{s(h,d)}catch(E){return E===c}}):(p=r("Object.prototype.toString"),f="[object RegExp]",a=function(h){return!h||typeof h!="object"&&typeof h!="function"?!1:p(h)===f});var s,c,u,d,p,f;t.exports=a}}),$P=be({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(o){if(!o)return!1;var i=r.call(o);return i==="[object Function]"||typeof o=="function"&&i!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),BP=be({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=Zu(),n=Oy(),o=r("RegExp.prototype.exec"),i=Yu();t.exports=function(a){if(!n(a))throw new i("`regex` must be a RegExp");return function(s){return o(a,s)!==null}}}}),FP=be({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=Zu(),n=r("Object.prototype.toString"),o=wy()(),i=BP();o?(a=r("Symbol.prototype.toString"),s=i(/^Symbol\(.*\)$/),c=function(u){return typeof u.valueOf()!="symbol"?!1:s(a(u))},t.exports=function(u){if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||n(u)!=="[object Symbol]")return!1;try{return c(u)}catch{return!1}}):t.exports=function(u){return!1};var a,s,c}}),UP=Ku(Oy()),JP=Ku($P()),VP=Ku(FP());function HP(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var GP=typeof global=="object"&&global&&global.Object===Object&&global,zP=GP,WP=typeof self=="object"&&self&&self.Object===Object&&self,KP=zP||WP||Function("return this")(),ec=KP,YP=ec.Symbol,An=YP,Py=Object.prototype,XP=Py.hasOwnProperty,QP=Py.toString,mo=An?An.toStringTag:void 0;function ZP(e){var t=XP.call(e,mo),r=e[mo];try{e[mo]=void 0;var n=!0}catch{}var o=QP.call(e);return n&&(t?e[mo]=r:delete e[mo]),o}var ex=ZP,tx=Object.prototype,rx=tx.toString;function nx(e){return rx.call(e)}var ox=nx,ix="[object Null]",ax="[object Undefined]",Zd=An?An.toStringTag:void 0;function sx(e){return e==null?e===void 0?ax:ix:Zd&&Zd in Object(e)?ex(e):ox(e)}var xy=sx;function lx(e){return e!=null&&typeof e=="object"}var ux=lx,cx="[object Symbol]";function dx(e){return typeof e=="symbol"||ux(e)&&xy(e)==cx}var tc=dx;function px(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var fx=px,hx=Array.isArray,rc=hx,ep=An?An.prototype:void 0,tp=ep?ep.toString:void 0;function Cy(e){if(typeof e=="string")return e;if(rc(e))return fx(e,Cy)+"";if(tc(e))return tp?tp.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var mx=Cy;function yx(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ny=yx,gx="[object AsyncFunction]",bx="[object Function]",vx="[object GeneratorFunction]",Ex="[object Proxy]";function wx(e){if(!Ny(e))return!1;var t=xy(e);return t==bx||t==vx||t==gx||t==Ex}var _x=wx,Tx=ec["__core-js_shared__"],Is=Tx,rp=(function(){var e=/[^.]+$/.exec(Is&&Is.keys&&Is.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Sx(e){return!!rp&&rp in e}var Ax=Sx,Rx=Function.prototype,Ox=Rx.toString;function Px(e){if(e!=null){try{return Ox.call(e)}catch{}try{return e+""}catch{}}return""}var xx=Px,Cx=/[\\^$.*+?()[\]{}|]/g,Nx=/^\[object .+?Constructor\]$/,Ix=Function.prototype,jx=Object.prototype,qx=Ix.toString,Mx=jx.hasOwnProperty,kx=RegExp("^"+qx.call(Mx).replace(Cx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Lx(e){if(!Ny(e)||Ax(e))return!1;var t=_x(e)?kx:Nx;return t.test(xx(e))}var Dx=Lx;function $x(e,t){return e?.[t]}var Bx=$x;function Fx(e,t){var r=Bx(e,t);return Dx(r)?r:void 0}var Iy=Fx;function Ux(e,t){return e===t||e!==e&&t!==t}var Jx=Ux,Vx=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Hx=/^\w*$/;function Gx(e,t){if(rc(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||tc(e)?!0:Hx.test(e)||!Vx.test(e)||t!=null&&e in Object(t)}var zx=Gx,Wx=Iy(Object,"create"),Bo=Wx;function Kx(){this.__data__=Bo?Bo(null):{},this.size=0}var Yx=Kx;function Xx(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Qx=Xx,Zx="__lodash_hash_undefined__",eC=Object.prototype,tC=eC.hasOwnProperty;function rC(e){var t=this.__data__;if(Bo){var r=t[e];return r===Zx?void 0:r}return tC.call(t,e)?t[e]:void 0}var nC=rC,oC=Object.prototype,iC=oC.hasOwnProperty;function aC(e){var t=this.__data__;return Bo?t[e]!==void 0:iC.call(t,e)}var sC=aC,lC="__lodash_hash_undefined__";function uC(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Bo&&t===void 0?lC:t,this}var cC=uC;function Un(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Un.prototype.clear=Yx;Un.prototype.delete=Qx;Un.prototype.get=nC;Un.prototype.has=sC;Un.prototype.set=cC;var np=Un;function dC(){this.__data__=[],this.size=0}var pC=dC;function fC(e,t){for(var r=e.length;r--;)if(Jx(e[r][0],t))return r;return-1}var Ha=fC,hC=Array.prototype,mC=hC.splice;function yC(e){var t=this.__data__,r=Ha(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():mC.call(t,r,1),--this.size,!0}var gC=yC;function bC(e){var t=this.__data__,r=Ha(t,e);return r<0?void 0:t[r][1]}var vC=bC;function EC(e){return Ha(this.__data__,e)>-1}var wC=EC;function _C(e,t){var r=this.__data__,n=Ha(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var TC=_C;function Jn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Jn.prototype.clear=pC;Jn.prototype.delete=gC;Jn.prototype.get=vC;Jn.prototype.has=wC;Jn.prototype.set=TC;var SC=Jn,AC=Iy(ec,"Map"),RC=AC;function OC(){this.size=0,this.__data__={hash:new np,map:new(RC||SC),string:new np}}var PC=OC;function xC(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var CC=xC;function NC(e,t){var r=e.__data__;return CC(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Ga=NC;function IC(e){var t=Ga(this,e).delete(e);return this.size-=t?1:0,t}var jC=IC;function qC(e){return Ga(this,e).get(e)}var MC=qC;function kC(e){return Ga(this,e).has(e)}var LC=kC;function DC(e,t){var r=Ga(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var $C=DC;function Vn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Vn.prototype.clear=PC;Vn.prototype.delete=jC;Vn.prototype.get=MC;Vn.prototype.has=LC;Vn.prototype.set=$C;var jy=Vn,BC="Expected a function";function nc(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(BC);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(nc.Cache||jy),r}nc.Cache=jy;var FC=nc,UC=500;function JC(e){var t=FC(e,function(n){return r.size===UC&&r.clear(),n}),r=t.cache;return t}var VC=JC,HC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,GC=/\\(\\)?/g,zC=VC(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(HC,function(r,n,o,i){t.push(o?i.replace(GC,"$1"):n||r)}),t}),WC=zC;function KC(e){return e==null?"":mx(e)}var YC=KC;function XC(e,t){return rc(e)?e:zx(e,t)?[e]:WC(YC(e))}var QC=XC;function ZC(e){if(typeof e=="string"||tc(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var eN=ZC;function tN(e,t){t=QC(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[eN(t[r++])];return r&&r==n?e:void 0}var rN=tN;function nN(e,t,r){var n=e==null?void 0:rN(e,t);return n===void 0?r:n}var oN=nN,oc=HP,iN=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,ic=e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/);function qy(e){if(!oc(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=mP(t),r=!0),t=Object.keys(t).reduce((n,o)=>{try{t[o]&&t[o].toJSON,n[o]=t[o]}catch{r=!0}return n},{}),r?t:e}var aN=function(e){let t,r,n,o;return function(i,a){try{if(i==="")return o=[],t=new Map([[a,"[]"]]),r=new Map,n=[],a;let s=r.get(this)||this;for(;n.length&&s!==n[0];)n.shift(),o.pop();if(typeof a=="boolean")return a;if(a===void 0)return e.allowUndefined?"_undefined_":void 0;if(a===null)return null;if(typeof a=="number")return a===Number.NEGATIVE_INFINITY?"_-Infinity_":a===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(a)?"_NaN_":a;if(typeof a=="bigint")return`_bigint_${a.toString()}`;if(typeof a=="string")return iN.test(a)?e.allowDate?`_date_${a}`:void 0:a;if((0,UP.default)(a))return e.allowRegExp?`_regexp_${a.flags}|${a.source}`:void 0;if((0,JP.default)(a))return;if((0,VP.default)(a)){if(!e.allowSymbol)return;let u=Symbol.keyFor(a);return u!==void 0?`_gsymbol_${u}`:`_symbol_${a.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(a)?`[Array(${a.length})]`:"[Object]";if(a===this)return`_duplicate_${JSON.stringify(o)}`;if(a instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...a.cause?{cause:a.cause}:{},...a,name:a.name,message:a.message,stack:a.stack,"_constructor-name_":a.constructor.name}};if(a?.constructor?.name&&a.constructor.name!=="Object"&&!Array.isArray(a)){let u=t.get(a);if(!u){let d={__isClassInstance__:!0,__className__:a.constructor.name,...Object.getOwnPropertyNames(a).reduce((p,f)=>{try{p[f]=a[f]}catch{}return p},{})};return o.push(i),n.unshift(d),t.set(a,JSON.stringify(o)),a!==d&&r.set(a,d),d}return`_duplicate_${u}`}let c=t.get(a);if(!c){let u=Array.isArray(a)?a:qy(a);return o.push(i),n.unshift(u),t.set(a,JSON.stringify(o)),a!==u&&r.set(a,u),u}return`_duplicate_${c}`}catch{return}}},sN=function(e){let t=[],r;return function(n,o){if(n===""&&(r=o,t.forEach(({target:i,container:a,replacement:s})=>{let c=ic(s)?JSON.parse(s):s.split(".");c.length===0?a[i]=r:a[i]=oN(r,c)})),n==="_constructor-name_")return o;if(oc(o)&&o.__isConvertedError__){let{message:i,...a}=o.errorProperties,s=new Error(i);return Object.assign(s,a),s}if(typeof o=="string"&&o.startsWith("_regexp_")&&e.allowRegExp){let[,i,a]=o.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(a,i)}return typeof o=="string"&&o.startsWith("_date_")&&e.allowDate?new Date(o.replace("_date_","")):typeof o=="string"&&o.startsWith("_duplicate_")?(t.push({target:n,container:this,replacement:o.replace(/^_duplicate_/,"")}),null):typeof o=="string"&&o.startsWith("_symbol_")&&e.allowSymbol?Symbol(o.replace("_symbol_","")):typeof o=="string"&&o.startsWith("_gsymbol_")&&e.allowSymbol?Symbol.for(o.replace("_gsymbol_","")):typeof o=="string"&&o==="_-Infinity_"?Number.NEGATIVE_INFINITY:typeof o=="string"&&o==="_Infinity_"?Number.POSITIVE_INFINITY:typeof o=="string"&&o==="_NaN_"?Number.NaN:typeof o=="string"&&o.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(o.replace("_bigint_","")):o}},My={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},ky=(e,t={})=>{let r={...My,...t};return JSON.stringify(qy(e),aN(r),t.space)},lN=()=>{let e=new Map;return function t(r){oc(r)&&Object.entries(r).forEach(([n,o])=>{o==="_undefined_"?r[n]=void 0:e.get(o)||(e.set(o,!0),t(o))}),Array.isArray(r)&&r.forEach((n,o)=>{n==="_undefined_"?(e.set(n,!0),r[o]=void 0):e.get(n)||(e.set(n,!0),t(n))})}},Ly=(e,t={})=>{let r={...My,...t},n=JSON.parse(e,sN(r));return lN()(n),n},uN="Invariant failed";function ir(e,t){if(!e)throw new Error(uN)}var cN=e=>{let t=Array.from(document.querySelectorAll("iframe[data-is-storybook]")),[r,...n]=t.filter(i=>{try{return i.contentWindow?.location.origin===e.source.location.origin&&i.contentWindow?.location.pathname===e.source.location.pathname}catch{}try{return i.contentWindow===e.source}catch{}let a=i.getAttribute("src"),s;try{if(!a)return!1;({origin:s}=new URL(a,document.location.toString()))}catch{return!1}return s===e.origin}),o=r?.getAttribute("src");if(o&&n.length===0){let{protocol:i,host:a,pathname:s}=new URL(o,document.location.toString());return`${i}//${a}${s}`}return n.length>0&&Ie.error("found multiple candidates for event source"),null},{document:js,location:qs}=ee,op="storybook-channel",dN={maxDepth:25},Dy=class{constructor(e){if(this.config=e,this.connected=!1,this.buffer=[],typeof ee?.addEventListener=="function"&&ee.addEventListener("message",this.handleEvent.bind(this),!1),e.page!=="manager"&&e.page!=="preview")throw new 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:r,allowRegExp:n,allowSymbol:o,allowDate:i,allowError:a,allowUndefined:s,maxDepth:c,space:u}=t||{},d=Object.fromEntries(Object.entries({allowRegExp:n,allowSymbol:o,allowDate:i,allowError:a,allowUndefined:s,maxDepth:c,space:u}).filter(([g,E])=>typeof E<"u")),p={...dN,...ee.CHANNEL_OPTIONS||{},...d},f=this.getFrames(r),h=new URLSearchParams(qs?.search||""),y=ky({key:op,event:e,refId:h.get("refId")},p);return f.length?(this.buffer.length&&this.flush(),f.forEach(g=>{try{g.postMessage(y,"*")}catch{Ie.error("sending over postmessage fail")}}),Promise.resolve(null)):new Promise((g,E)=>{this.buffer.push({event:e,resolve:g,reject:E})})}flush(){let{buffer:e}=this;this.buffer=[],e.forEach(t=>{this.send(t.event).then(t.resolve).catch(t.reject)})}getFrames(e){if(this.config.page==="manager"){let t=Array.from(js.querySelectorAll("iframe[data-is-storybook][data-is-loaded]")).flatMap(r=>{try{return r.contentWindow&&r.dataset.isStorybook!==void 0&&r.id===e?[r.contentWindow]:[]}catch{return[]}});return t?.length?t:this.getCurrentFrames()}return ee&&ee.parent&&ee.parent!==ee.self?[ee.parent]:[]}getCurrentFrames(){return this.config.page==="manager"?Array.from(js.querySelectorAll('[data-is-storybook="true"]')).flatMap(e=>e.contentWindow?[e.contentWindow]:[]):ee&&ee.parent?[ee.parent]:[]}getLocalFrame(){return this.config.page==="manager"?Array.from(js.querySelectorAll("#storybook-preview-iframe")).flatMap(e=>e.contentWindow?[e.contentWindow]:[]):ee&&ee.parent?[ee.parent]:[]}handleEvent(e){try{let{data:t}=e,{key:r,event:n,refId:o}=typeof t=="string"&&ic(t)?Ly(t,ee.CHANNEL_OPTIONS||{}):t;if(r===op){let i=this.config.page==="manager"?'<span style="color: #37D5D3; background: black"> manager </span>':'<span style="color: #1EA7FD; background: black"> preview </span>',a=Object.values(Bu).includes(n.type)?`<span style="color: #FF4785">${n.type}</span>`:`<span style="color: #FFAE00">${n.type}</span>`;if(o&&(n.refId=o),n.source=this.config.page==="preview"?e.origin:cN(e),!n.source){vt.error(`${i} received ${a} but was unable to determine the source of the event`);return}let s=`${i} received ${a} (${t.length})`;vt.debug(qs.origin!==n.source?s:`${s} <span style="color: gray">(on ${qs.origin} from ${n.source})</span>`,...n.args),ir(this.handler,"ChannelHandler should be set"),this.handler(n)}}catch(t){Ie.error(t)}}},{WebSocket:pN}=ee,$y=15e3,By=5e3,Fy=class{constructor({url:e,onError:t,page:r}){this.buffer=[],this.isReady=!1,this.isClosed=!1,this.pingTimeout=0,this.socket=new pN(e),this.socket.onopen=()=>{this.isReady=!0,this.heartbeat(),this.flush()},this.socket.onmessage=({data:n})=>{let o=typeof n=="string"&&ic(n)?Ly(n):n;ir(this.handler),this.handler(o),o.type==="ping"&&(this.heartbeat(),this.send({type:"pong"}))},this.socket.onerror=n=>{t&&t(n)},this.socket.onclose=n=>{ir(this.handler),this.handler({type:Hm,args:[{reason:n.reason,code:n.code}],from:r||"preview"}),this.isClosed=!0,clearTimeout(this.pingTimeout)}}heartbeat(){clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout(()=>{this.socket.close(3008,"timeout")},$y+By)}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=ky(e,{maxDepth:15,...ee.CHANNEL_OPTIONS});this.socket.send(t)}flush(){let{buffer:e}=this;this.buffer=[],e.forEach(t=>this.send(t))}},{CHANNEL_OPTIONS:fN,CONFIG_TYPE:hN}=ee,mN=Ja;function yN({page:e,extraTransports:t=[]}){let r=[new Dy({page:e}),...t];if(hN==="DEVELOPMENT"){let o=window.location.protocol==="http:"?"ws":"wss",{hostname:i,port:a}=window.location,{wsToken:s}=fN||{},c=`${o}://${i}:${a}/storybook-server-channel?token=${s}`;r.push(new Fy({url:c,onError:()=>{},page:e}))}let n=new Ja({transports:r});return Ns.__prepare(n,e==="manager"?Ns.Environment.MANAGER:Ns.Environment.PREVIEW),n}var Uy={};ft(Uy,{CalledExtractOnStoreError:()=>zy,CalledPreviewMethodBeforeInitializationError:()=>yt,Category:()=>Vy,ElementA11yParameterError:()=>_N,EmptyIndexError:()=>Xy,ImplicitActionsDuringRendering:()=>Gy,MdxFileWithNoCsfReferencesError:()=>Yy,MissingRenderToCanvasError:()=>Wy,MissingStoryAfterHmrError:()=>Hy,MissingStoryFromCsfFileError:()=>Zy,MountMustBeDestructuredError:()=>ac,NextJsSharpError:()=>bN,NextjsRouterMocksNotAvailable:()=>vN,NoRenderFunctionError:()=>tg,NoStoryMatchError:()=>Qy,NoStoryMountedError:()=>rg,StatusTypeIdMismatchError:()=>gN,StoryIndexFetchError:()=>Ky,StoryStoreAccessedBeforeInitializationError:()=>eg,UnknownArgTypesError:()=>EN,UnsupportedViewportDimensionError:()=>wN});function ip({code:e,category:t}){let r=String(e).padStart(4,"0");return`SB_${t}_${r}`}function ap(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}}var Ge=class Jy extends Error{constructor(t){super(Jy.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 ip({code:this.code,category:this.category})}get name(){let t=this._name||this.constructor.name;return`${this.fullErrorCode} (${t})`}set name(t){this._name=t}static getFullMessage({documentation:t,code:r,category:n,message:o}){let i;return t===!0?i=`https://storybook.js.org/error/${ip({code:r,category:n})}?ref=error`:typeof t=="string"?i=ap(t):Array.isArray(t)&&(i=`
39
+ ${t.map(a=>` - ${ap(a)}`).join(`
40
+ `)}`),`${o}${i!=null?`
41
+
42
+ More info: ${i}
43
+ `:""}`}},Vy=(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))(Vy||{}),Hy=class extends Ge{constructor(e){super({name:"MissingStoryAfterHmrError",category:"PREVIEW_API",code:1,message:Ee`
44
+ Couldn't find story matching id '${e.storyId}' after HMR.
45
+ - Did you just rename a story?
46
+ - Did you remove it from your CSF file?
47
+ - Are you sure a story with the id '${e.storyId}' exists?
48
+ - Please check the values in the stories field of your main.js config and see if they would match your CSF File.
49
+ - Also check the browser console and terminal for potential error messages.`}),this.data=e}},Gy=class extends Ge{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:Ee`
50
+ We detected that you use an implicit action arg while ${e.phase} of your story.
51
+ ${e.deprecated?`
52
+ This is deprecated and won't work in Storybook 8 anymore.
53
+ `:""}
54
+ Please provide an explicit spy to your args like this:
55
+ import { fn } from 'storybook/test';
56
+ ...
57
+ args: {
58
+ ${e.name}: fn()
59
+ }`}),this.data=e}},zy=class extends Ge{constructor(){super({name:"CalledExtractOnStoreError",category:"PREVIEW_API",code:3,message:Ee`
60
+ Cannot call \`storyStore.extract()\` without calling \`storyStore.cacheAllCsfFiles()\` first.
61
+
62
+ You probably meant to call \`await preview.extract()\` which does the above for you.`})}},Wy=class extends Ge{constructor(){super({name:"MissingRenderToCanvasError",category:"PREVIEW_API",code:4,message:Ee`
63
+ Expected your framework's preset to export a \`renderToCanvas\` field.
64
+
65
+ Perhaps it needs to be upgraded for Storybook 7.0?`,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field"})}},yt=class extends Ge{constructor(e){super({name:"CalledPreviewMethodBeforeInitializationError",category:"PREVIEW_API",code:5,message:Ee`
66
+ Called \`Preview.${e.methodName}()\` before initialization.
67
+
68
+ The preview needs to load the story index before most methods can be called. If you want
69
+ to call \`${e.methodName}\`, try \`await preview.initializationPromise;\` first.
70
+
71
+ If you didn't call the above code, then likely it was called by an addon that needs to
72
+ do the above.`}),this.data=e}},Ky=class extends Ge{constructor(e){super({name:"StoryIndexFetchError",category:"PREVIEW_API",code:6,message:Ee`
73
+ Error fetching \`/index.json\`:
74
+
75
+ ${e.text}
76
+
77
+ If you are in development, this likely indicates a problem with your Storybook process,
78
+ check the terminal for errors.
79
+
80
+ If you are in a deployed Storybook, there may have been an issue deploying the full Storybook
81
+ build.`}),this.data=e}},Yy=class extends Ge{constructor(e){super({name:"MdxFileWithNoCsfReferencesError",category:"PREVIEW_API",code:7,message:Ee`
82
+ Tried to render docs entry ${e.storyId} but it is a MDX file that has no CSF
83
+ references, or autodocs for a CSF file that some doesn't refer to itself.
84
+
85
+ This likely is an internal error in Storybook's indexing, or you've attached the
86
+ \`attached-mdx\` tag to an MDX file that is not attached.`}),this.data=e}},Xy=class extends Ge{constructor(){super({name:"EmptyIndexError",category:"PREVIEW_API",code:8,message:Ee`
87
+ Couldn't find any stories in your Storybook.
88
+
89
+ - Please check your stories field of your main.js config: does it match correctly?
90
+ - Also check the browser console and terminal for error messages.`})}},Qy=class extends Ge{constructor(e){super({name:"NoStoryMatchError",category:"PREVIEW_API",code:9,message:Ee`
91
+ Couldn't find story matching '${e.storySpecifier}'.
92
+
93
+ - Are you sure a story with that id exists?
94
+ - Please check your stories field of your main.js config.
95
+ - Also check the browser console and terminal for error messages.`}),this.data=e}},Zy=class extends Ge{constructor(e){super({name:"MissingStoryFromCsfFileError",category:"PREVIEW_API",code:10,message:Ee`
96
+ Couldn't find story matching id '${e.storyId}' after importing a CSF file.
97
+
98
+ The file was indexed as if the story was there, but then after importing the file in the browser
99
+ we didn't find the story. Possible reasons:
100
+ - You are using a custom story indexer that is misbehaving.
101
+ - You have a custom file loader that is removing or renaming exports.
102
+
103
+ Please check your browser console and terminal for errors that may explain the issue.`}),this.data=e}},eg=class extends Ge{constructor(){super({name:"StoryStoreAccessedBeforeInitializationError",category:"PREVIEW_API",code:11,message:Ee`
104
+ Cannot access the Story Store until the index is ready.
105
+
106
+ It is not recommended to use methods directly on the Story Store anyway, in Storybook 9 we will
107
+ remove access to the store entirely`})}},ac=class extends Ge{constructor(e){super({name:"MountMustBeDestructuredError",category:"PREVIEW_API",code:12,message:Ee`
108
+ Incorrect use of mount in the play function.
109
+
110
+ To use mount in the play function, you must satisfy the following two requirements:
111
+
112
+ 1. You *must* destructure the mount property from the \`context\` (the argument passed to your play function).
113
+ This makes sure that Storybook does not start rendering the story before the play function begins.
114
+
115
+ 2. Your Storybook framework or builder must be configured to transpile to ES2017 or newer.
116
+ This is because destructuring statements and async/await usages are otherwise transpiled away,
117
+ which prevents Storybook from recognizing your usage of \`mount\`.
118
+
119
+ Note that Angular is not supported. As async/await is transpiled to support the zone.js polyfill.
120
+
121
+ More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#run-code-before-the-component-gets-rendered
122
+
123
+ Received the following play function:
124
+ ${e.playFunction}`}),this.data=e}},tg=class extends Ge{constructor(e){super({name:"NoRenderFunctionError",category:"PREVIEW_API",code:14,message:Ee`
125
+ No render function available for storyId '${e.id}'
126
+ `}),this.data=e}},rg=class extends Ge{constructor(){super({name:"NoStoryMountedError",category:"PREVIEW_API",code:15,message:Ee`
127
+ No component is mounted in your story.
128
+
129
+ This usually occurs when you destructure mount in the play function, but forget to call it.
130
+
131
+ For example:
132
+
133
+ async play({ mount, canvasElement }) {
134
+ // 👈 mount should be called: await mount();
135
+ const canvas = within(canvasElement);
136
+ const button = await canvas.findByRole('button');
137
+ await userEvent.click(button);
138
+ };
139
+
140
+ Make sure to either remove it or call mount in your play function.
141
+ `})}},gN=class extends Ge{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}},bN=class extends Ge{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:Ee`
142
+ You are importing avif images, but you don't have sharp installed.
143
+
144
+ You have to install sharp in order to use image optimization features in Next.js.
145
+ `})}},vN=class extends Ge{constructor(e){super({name:"NextjsRouterMocksNotAvailable",category:"FRAMEWORK_NEXTJS",code:2,message:Ee`
146
+ Tried to access router mocks from "${e.importType}" but they were not created yet. You might be running code in an unsupported environment.
147
+ `}),this.data=e}},EN=class extends Ge{constructor(t){super({name:"UnknownArgTypesError",category:"DOCS-TOOLS",code:1,documentation:"https://github.com/storybookjs/storybook/issues/26606",message:Ee`
148
+ There was a failure when generating detailed ArgTypes in ${t.language} for:
149
+ ${JSON.stringify(t.type,null,2)}
150
+
151
+ Storybook will fall back to use a generic type description instead.
152
+
153
+ This type is either not supported or it is a bug in the docgen generation in Storybook.
154
+ If you think this is a bug, please detail it as much as possible in the Github issue.
155
+ `}),this.data=t}},wN=class extends Ge{constructor(e){super({name:"UnsupportedViewportDimensionError",category:"ADDON_VITEST",code:1,message:Ee`
156
+ Encountered an unsupported value "${e.value}" when setting the viewport ${e.dimension} dimension.
157
+
158
+ The Storybook plugin only supports values in the following units:
159
+ - px, vh, vw, em, rem and %.
160
+
161
+ 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
162
+ `}),this.data=e}},_N=class extends Ge{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.'})}},ng={};ft(ng,{Addon_TypesEnum:()=>og,CoreWebpackCompiler:()=>sg,Feature:()=>ug,SupportedBuilder:()=>lg,SupportedFramework:()=>ig,SupportedLanguage:()=>cg,SupportedRenderer:()=>ag});var og=(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))(og||{}),ig=(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))(ig||{}),ag=(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))(ag||{}),sg=(e=>(e.Babel="babel",e.SWC="swc",e))(sg||{}),lg=(e=>(e.WEBPACK5="webpack5",e.VITE="vite",e.RSBUILD="rsbuild",e))(lg||{}),ug=(e=>(e.DOCS="docs",e.TEST="test",e.ONBOARDING="onboarding",e.A11Y="a11y",e))(ug||{}),cg=(e=>(e.JAVASCRIPT="javascript",e.TYPESCRIPT="typescript",e))(cg||{}),dg={};ft(dg,{ADDON_ID:()=>za,CLEAR_ID:()=>AN,CYCLIC_KEY:()=>RN,EVENT_ID:()=>pg,PANEL_ID:()=>SN,PARAM_KEY:()=>TN,action:()=>Ti,actions:()=>ZJ,config:()=>ii,configureActions:()=>YJ});var TN="actions",za="storybook/actions",SN=`${za}/panel`,pg=`${za}/action-event`,AN=`${za}/action-clear`,RN="$___storybook.isCyclic",Sl={};ft(Sl,{DocsContext:()=>kd,HooksContext:()=>sc,Preview:()=>z_,PreviewWeb:()=>BJ,PreviewWithSelection:()=>W_,ReporterAPI:()=>Md,StoryStore:()=>H_,Tag:()=>Zt,UrlStore:()=>Z_,WebView:()=>tT,addons:()=>Ot,applyHooks:()=>hg,combineArgs:()=>Oa,combineParameters:()=>an,composeConfigs:()=>Dn,composeStepRunners:()=>B_,composeStories:()=>hJ,composeStory:()=>V_,createPlaywrightTest:()=>mJ,decorateStory:()=>I_,defaultDecorateStory:()=>q_,emitTransformCode:()=>KJ,filterArgTypes:()=>$_,getCsfFactoryAnnotations:()=>J_,inferControls:()=>Id,makeDecorator:()=>BN,mockChannel:()=>fg,normalizeArrays:()=>Ce,normalizeProjectAnnotations:()=>xa,normalizeStory:()=>Mo,pauseAnimations:()=>jd,prepareMeta:()=>M_,prepareStory:()=>Nd,sanitizeStoryContextUpdate:()=>j_,setDefaultProjectAnnotations:()=>lJ,setProjectAnnotations:()=>pJ,simulateDOMContentLoaded:()=>Ou,simulatePageLoad:()=>VJ,sortStoriesV7:()=>TJ,useArgs:()=>DN,useCallback:()=>Fo,useChannel:()=>kN,useEffect:()=>en,useGlobals:()=>$N,useMemo:()=>yg,useParameter:()=>LN,useReducer:()=>MN,useRef:()=>IN,useState:()=>qN,useStoryContext:()=>Ka,userOrAutoTitle:()=>EJ,userOrAutoTitleFromSpecifier:()=>G_,waitForAnimations:()=>qd});function fg(){let e={setHandler:()=>{},send:()=>{}};return new Ja({transport:e})}var ON=class{constructor(){this.getChannel=()=>{if(!this.channel){let e=fg();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())})}},Ms="__STORYBOOK_ADDONS_PREVIEW";function PN(){return ee[Ms]||(ee[Ms]=new ON),ee[Ms]}var Ot=PN(),sc=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(),Ot.getChannel().on(ia,this.renderListener)}removeRenderListeners(){Ot.getChannel().removeListener(ia,this.renderListener)}};function sp(e){let t=(...r)=>{let{hooks:n}=typeof r[0]=="function"?r[1]:r[0],o=n.currentPhase,i=n.currentHooks,a=n.nextHookIndex,s=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 c=ee.STORYBOOK_HOOKS_CONTEXT;ee.STORYBOOK_HOOKS_CONTEXT=n;let u=e(...r);if(ee.STORYBOOK_HOOKS_CONTEXT=c,n.currentPhase==="UPDATE"&&n.getNextHook()!=null)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return n.currentPhase=o,n.currentHooks=i,n.nextHookIndex=a,n.currentDecoratorName=s,u};return t.originalFn=e,t}var ks=0,xN=25,hg=e=>(t,r)=>{let n=e(sp(t),r.map(o=>sp(o)));return o=>{let{hooks:i}=o;i.prevMountedDecorators??=new Set,i.mountedDecorators=new Set([t,...r]),i.currentContext=o,i.hasUpdates=!1;let a=n(o);for(ks=1;i.hasUpdates;)if(i.hasUpdates=!1,i.currentEffects=[],a=n(o),ks+=1,ks>xN)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return i.addRenderListeners(),a}},CN=(e,t)=>e.length===t.length&&e.every((r,n)=>r===t[n]),lc=()=>new Error("Storybook preview hooks can only be called inside decorators and story functions.");function mg(){return ee.STORYBOOK_HOOKS_CONTEXT||null}function uc(){let e=mg();if(e==null)throw lc();return e}function NN(e,t,r){let n=uc();if(n.currentPhase==="MOUNT"){r!=null&&!Array.isArray(r)&&Ie.warn(`${e} received a final argument that is not an array (instead, received ${r}). When specified, the final argument must be an array.`);let o={name:e,deps:r};return n.currentHooks.push(o),t(o),o}if(n.currentPhase==="UPDATE"){let o=n.getNextHook();if(o==null)throw new Error("Rendered more hooks than during the previous render.");return o.name!==e&&Ie.warn(`Storybook has detected a change in the order of Hooks${n.currentDecoratorName?` called by ${n.currentDecoratorName}`:""}. This will lead to bugs and errors if not fixed.`),r!=null&&o.deps==null&&Ie.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.`),r!=null&&o.deps!=null&&r.length!==o.deps.length&&Ie.warn(`The final argument passed to ${e} changed size between renders. The order and size of this array must remain constant.
163
+ Previous: ${o.deps}
164
+ Incoming: ${r}`),(r==null||o.deps==null||!CN(r,o.deps))&&(t(o),o.deps=r),o}throw lc()}function Wa(e,t,r){let{memoizedState:n}=NN(e,o=>{o.memoizedState=t()},r);return n}function yg(e,t){return Wa("useMemo",e,t)}function Fo(e,t){return Wa("useCallback",()=>e,t)}function gg(e,t){return Wa(e,()=>({current:t}),[])}function IN(e){return gg("useRef",e)}function jN(){let e=mg();if(e!=null&&e.currentPhase!=="NONE")e.hasUpdates=!0;else try{Ot.getChannel().emit(Ju)}catch{Ie.warn("State updates of Storybook preview hooks work only in browser")}}function bg(e,t){let r=gg(e,typeof t=="function"?t():t),n=o=>{r.current=typeof o=="function"?o(r.current):o,jN()};return[r.current,n]}function qN(e){return bg("useState",e)}function MN(e,t,r){let n=r!=null?()=>r(t):t,[o,i]=bg("useReducer",n);return[o,a=>i(s=>e(s,a))]}function en(e,t){let r=uc(),n=Wa("useEffect",()=>({create:e}),t);r.currentEffects.includes(n)||r.currentEffects.push(n)}function kN(e,t=[]){let r=Ot.getChannel();return en(()=>(Object.entries(e).forEach(([n,o])=>r.on(n,o)),()=>{Object.entries(e).forEach(([n,o])=>r.removeListener(n,o))}),[...Object.keys(e),...t]),Fo(r.emit.bind(r),[r])}function Ka(){let{currentContext:e}=uc();if(e==null)throw lc();return e}function LN(e,t){let{parameters:r}=Ka();if(e)return r[e]??t}function DN(){let e=Ot.getChannel(),{id:t,args:r}=Ka(),n=Fo(i=>e.emit(zu,{storyId:t,updatedArgs:i}),[e,t]),o=Fo(i=>e.emit(Vu,{storyId:t,argNames:i}),[e,t]);return[r,n,o]}function $N(){let e=Ot.getChannel(),{globals:t}=Ka(),r=Fo(n=>e.emit(Gu,{globals:n}),[e]);return[t,r]}var BN=({name:e,parameterName:t,wrapper:r,skipIfNoParametersOrOptions:n=!1})=>{let o=i=>(a,s)=>{let c=s.parameters&&s.parameters[t];return c&&c.disable||n&&!i&&!c?a(s):r(a,s,{options:i,parameters:c})};return(...i)=>typeof i[0]=="function"?o()(...i):(...a)=>{if(a.length>1)return i.length>1?o(i)(...a):o(...i)(...a);throw new Error(`Passing stories directly into ${e}() is not allowed,
165
+ instead use addDecorator(${e}) and pass options with the '${t}' parameter`)}};function FN(e){return e.replace(/_/g," ").replace(/-/g," ").replace(/\./g," ").replace(/([^\n])([A-Z])([a-z])/g,(t,r,n,o)=>`${r} ${n}${o}`).replace(/([a-z])([A-Z])/g,(t,r,n)=>`${r} ${n}`).replace(/([a-z])([0-9])/gi,(t,r,n)=>`${r} ${n}`).replace(/([0-9])([a-z])/gi,(t,r,n)=>`${r} ${n}`).replace(/(\s|^)(\w)/g,(t,r,n)=>`${r}${n.toUpperCase()}`).replace(/ +/g," ").trim()}var lp=Je(GT(),1),vg=e=>e.map(t=>typeof t<"u").filter(Boolean).length,UN=(e,t)=>{let{exists:r,eq:n,neq:o,truthy:i}=e;if(vg([r,n,o,i])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:o})}`);if(typeof n<"u")return(0,lp.isEqual)(t,n);if(typeof o<"u")return!(0,lp.isEqual)(t,o);if(typeof r<"u"){let a=typeof t<"u";return r?a:!a}return typeof i>"u"||i?!!t:!t},JN=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:o}=e.if;if(vg([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);let i=n?t[n]:r[o];return UN(e.if,i)};function VN(e){return e!=null&&HN(e).includes("mount")}function HN(e){let[,t,r]=e.toString().match(/[^(]*\(([^)]+)\)(?:.*{([^]+)})?/)||[];if(!t)return[];let[n]=Ls(t);if(!n)return[];let[,o]=n.match(/^{([^]+)}$/)||[];if(o)return Ls(up(o)).map(s=>s.replace(/:.*|=.*/g,"").trim());if(!n.match(/^[a-z_$][0-9a-z_$]*$/i))return[];let i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),[,a]=r?.trim()?.match(new RegExp(`^(?:const|let|var)\\s*{([^}]+)}\\s*=\\s*${i};`))||[];return a?Ls(up(a)).map(s=>s.replace(/:.*|=.*/g,"").trim()):[]}function up(e){return e=e.replace(/\/\/.*$/gm,""),e=e.replace(/\/\*[\s\S]*?\*\//g,""),e}function Ls(e){let t=[],r=[],n=0;for(let i=0;i<e.length;i++)if(e[i]==="{"||e[i]==="[")r.push(e[i]==="{"?"}":"]");else if(e[i]===r[r.length-1])r.pop();else if(!r.length&&e[i]===","){let a=e.substring(n,i).trim();a&&t.push(a),n=i+1}let o=e.substring(n).trim();return o&&t.push(o),t}var Zt={AUTODOCS:"autodocs",ATTACHED_MDX:"attached-mdx",UNATTACHED_MDX:"unattached-mdx",PLAY_FN:"play-fn",TEST_FN:"test-fn",DEV:"dev",TEST:"test",MANIFEST:"manifest"},Eg={};ft(Eg,{argsEnhancers:()=>WN});var wg=(e,t)=>typeof t[e]>"u"&&!(e in t),GN=e=>{let{initialArgs:t,argTypes:r,id:n,parameters:{actions:o}}=e;if(!o||o.disable||!o.argTypesRegex||!r)return{};let i=new RegExp(o.argTypesRegex);return Object.entries(r).filter(([a])=>!!i.test(a)).reduce((a,[s,c])=>(wg(s,t)&&(a[s]=Ti(s,{implicit:!0,id:n})),a),{})},zN=e=>{let{initialArgs:t,argTypes:r,parameters:{actions:n}}=e;return n?.disable||!r?{}:Object.entries(r).filter(([o,i])=>!!i.action).reduce((o,[i,a])=>(wg(i,t)&&(o[i]=Ti(typeof a.action=="string"?a.action:i)),o),{})},WN=[zN,GN],_g={};ft(_g,{loaders:()=>X2});var Tg={};ft(Tg,{buildQueries:()=>CF,clearAllMocks:()=>lE,configure:()=>NF,createEvent:()=>IF,expect:()=>W2,findAllByAltText:()=>qF,findAllByDisplayValue:()=>MF,findAllByLabelText:()=>kF,findAllByPlaceholderText:()=>LF,findAllByRole:()=>DF,findAllByTestId:()=>$F,findAllByText:()=>BF,findAllByTitle:()=>FF,findByAltText:()=>UF,findByDisplayValue:()=>JF,findByLabelText:()=>VF,findByPlaceholderText:()=>HF,findByRole:()=>GF,findByTestId:()=>zF,findByText:()=>WF,findByTitle:()=>KF,fireEvent:()=>jF,fn:()=>aE,getAllByAltText:()=>YF,getAllByDisplayValue:()=>XF,getAllByLabelText:()=>QF,getAllByPlaceholderText:()=>ZF,getAllByRole:()=>e2,getAllByTestId:()=>t2,getAllByText:()=>r2,getAllByTitle:()=>n2,getByAltText:()=>o2,getByDisplayValue:()=>i2,getByLabelText:()=>a2,getByPlaceholderText:()=>s2,getByRole:()=>l2,getByTestId:()=>u2,getByText:()=>c2,getByTitle:()=>d2,getConfig:()=>p2,getDefaultNormalizer:()=>f2,getElementError:()=>h2,getNodeText:()=>m2,getQueriesForElement:()=>y2,getRoles:()=>g2,getSuggestedQuery:()=>b2,isInaccessible:()=>v2,isMockFunction:()=>Tn,logDOM:()=>E2,logRoles:()=>w2,mocked:()=>nL,mocks:()=>bi,onMockCall:()=>iE,prettyDOM:()=>_2,prettyFormat:()=>G2,queries:()=>T2,queryAllByAltText:()=>S2,queryAllByAttribute:()=>A2,queryAllByDisplayValue:()=>R2,queryAllByLabelText:()=>O2,queryAllByPlaceholderText:()=>P2,queryAllByRole:()=>x2,queryAllByTestId:()=>C2,queryAllByText:()=>N2,queryAllByTitle:()=>I2,queryByAltText:()=>j2,queryByAttribute:()=>q2,queryByDisplayValue:()=>M2,queryByLabelText:()=>k2,queryByPlaceholderText:()=>L2,queryByRole:()=>D2,queryByTestId:()=>$2,queryByText:()=>B2,queryByTitle:()=>F2,queryHelpers:()=>U2,resetAllMocks:()=>uE,restoreAllMocks:()=>cE,sb:()=>K2,screen:()=>J2,spyOn:()=>rL,uninstrumentedUserEvent:()=>__,userEvent:()=>z2,waitFor:()=>V2,waitForElementToBeRemoved:()=>H2,within:()=>w_});var KN={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]},Sg=Object.entries(KN);function Ya(e){return String(e)}Ya.open="";Ya.close="";Sg.reduce((e,[t])=>(e[t]=Ya,e),{isColorSupported:!1});function YN(e=!1){let t=typeof process<"u"?process:void 0,r=t?.env||{},n=t?.argv||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||t?.platform==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function XN(e=!1){let t=YN(e),r=(a,s,c,u)=>{let d="",p=0;do d+=a.substring(p,u)+c,p=u+s.length,u=a.indexOf(s,p);while(~u);return d+a.substring(p)},n=(a,s,c=a)=>{let u=d=>{let p=String(d),f=p.indexOf(s,a.length);return~f?a+r(p,s,c,f)+s:a+p+s};return u.open=a,u.close=s,u},o={isColorSupported:t},i=a=>`\x1B[${a}m`;for(let[a,s]of Sg)o[a]=t?n(i(s[0]),i(s[1]),s[2]):Ya;return o}var er=XN();function Ag(e,t){return t.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in e)){var o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(e)}function QN(e,t){let r=Object.keys(e),n=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(let o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&n.push(o);return n}function di(e,t,r,n,o,i,a=": "){let s="",c=0,u=e.next();if(!u.done){s+=t.spacingOuter;let d=r+t.indent;for(;!u.done;){if(s+=d,c++===t.maxWidth){s+="…";break}let p=i(u.value[0],t,d,n,o),f=i(u.value[1],t,d,n,o);s+=p+a+f,u=e.next(),u.done?t.min||(s+=","):s+=`,${t.spacingInner}`}s+=t.spacingOuter+r}return s}function cc(e,t,r,n,o,i){let a="",s=0,c=e.next();if(!c.done){a+=t.spacingOuter;let u=r+t.indent;for(;!c.done;){if(a+=u,s++===t.maxWidth){a+="…";break}a+=i(c.value,t,u,n,o),c=e.next(),c.done?t.min||(a+=","):a+=`,${t.spacingInner}`}a+=t.spacingOuter+r}return a}function aa(e,t,r,n,o,i){let a="";e=e instanceof ArrayBuffer?new DataView(e):e;let s=u=>u instanceof DataView,c=s(e)?e.byteLength:e.length;if(c>0){a+=t.spacingOuter;let u=r+t.indent;for(let d=0;d<c;d++){if(a+=u,d===t.maxWidth){a+="…";break}(s(e)||d in e)&&(a+=i(s(e)?e.getInt8(d):e[d],t,u,n,o)),d<c-1?a+=`,${t.spacingInner}`:t.min||(a+=",")}a+=t.spacingOuter+r}return a}function dc(e,t,r,n,o,i){let a="",s=QN(e,t.compareKeys);if(s.length>0){a+=t.spacingOuter;let c=r+t.indent;for(let u=0;u<s.length;u++){let d=s[u],p=i(d,t,c,n,o),f=i(e[d],t,c,n,o);a+=`${c+p}: ${f}`,u<s.length-1?a+=`,${t.spacingInner}`:t.min||(a+=",")}a+=t.spacingOuter+r}return a}var ZN=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,Ds=" ",e1=(e,t,r,n,o,i)=>{let a=e.toString();if(a==="ArrayContaining"||a==="ArrayNotContaining")return++n>t.maxDepth?`[${a}]`:`${a+Ds}[${aa(e.sample,t,r,n,o,i)}]`;if(a==="ObjectContaining"||a==="ObjectNotContaining")return++n>t.maxDepth?`[${a}]`:`${a+Ds}{${dc(e.sample,t,r,n,o,i)}}`;if(a==="StringMatching"||a==="StringNotMatching"||a==="StringContaining"||a==="StringNotContaining")return a+Ds+i(e.sample,t,r,n,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},t1=e=>e&&e.$$typeof===ZN,r1={serialize:e1,test:t1},n1=" ",Rg=new Set(["DOMStringMap","NamedNodeMap"]),o1=/^(?:HTML\w*Collection|NodeList)$/;function i1(e){return Rg.has(e)||o1.test(e)}var a1=e=>e&&e.constructor&&!!e.constructor.name&&i1(e.constructor.name);function s1(e){return e.constructor.name==="NamedNodeMap"}var l1=(e,t,r,n,o,i)=>{let a=e.constructor.name;return++n>t.maxDepth?`[${a}]`:(t.min?"":a+n1)+(Rg.has(a)?`{${dc(s1(e)?[...e].reduce((s,c)=>(s[c.name]=c.value,s),{}):{...e},t,r,n,o,i)}}`:`[${aa([...e],t,r,n,o,i)}]`)},u1={serialize:l1,test:a1};function Og(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}function pc(e,t,r,n,o,i,a){let s=n+r.indent,c=r.colors;return e.map(u=>{let d=t[u],p=a(d,r,s,o,i);return typeof d!="string"&&(p.includes(`
166
+ `)&&(p=r.spacingOuter+s+p+r.spacingOuter+n),p=`{${p}}`),`${r.spacingInner+n+c.prop.open+u+c.prop.close}=${c.value.open}${p}${c.value.close}`}).join("")}function fc(e,t,r,n,o,i){return e.map(a=>t.spacingOuter+r+(typeof a=="string"?Pg(a,t):i(a,t,r,n,o))).join("")}function Pg(e,t){let r=t.colors.content;return r.open+Og(e)+r.close}function c1(e,t){let r=t.colors.comment;return`${r.open}<!--${Og(e)}-->${r.close}`}function hc(e,t,r,n,o){let i=n.colors.tag;return`${i.open}<${e}${t&&i.close+t+n.spacingOuter+o+i.open}${r?`>${i.close}${r}${n.spacingOuter}${o}${i.open}</${e}`:`${t&&!n.min?"":" "}/`}>${i.close}`}function mc(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`}var d1=1,xg=3,Cg=8,Ng=11,p1=/^(?:(?:HTML|SVG)\w*)?Element$/;function f1(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function h1(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,o=typeof n=="string"&&n.includes("-")||f1(e);return r===d1&&(p1.test(t)||o)||r===xg&&t==="Text"||r===Cg&&t==="Comment"||r===Ng&&t==="DocumentFragment"}var m1=e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&h1(e)};function y1(e){return e.nodeType===xg}function g1(e){return e.nodeType===Cg}function $s(e){return e.nodeType===Ng}var b1=(e,t,r,n,o,i)=>{if(y1(e))return Pg(e.data,t);if(g1(e))return c1(e.data,t);let a=$s(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?mc(a,t):hc(a,pc($s(e)?[]:Array.from(e.attributes,s=>s.name).sort(),$s(e)?{}:[...e.attributes].reduce((s,c)=>(s[c.name]=c.value,s),{}),t,r+t.indent,n,o,i),fc(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,o,i),t,r)},v1={serialize:b1,test:m1},E1="@@__IMMUTABLE_ITERABLE__@@",w1="@@__IMMUTABLE_LIST__@@",_1="@@__IMMUTABLE_KEYED__@@",T1="@@__IMMUTABLE_MAP__@@",cp="@@__IMMUTABLE_ORDERED__@@",S1="@@__IMMUTABLE_RECORD__@@",A1="@@__IMMUTABLE_SEQ__@@",R1="@@__IMMUTABLE_SET__@@",O1="@@__IMMUTABLE_STACK__@@",Rn=e=>`Immutable.${e}`,Xa=e=>`[${e}]`,Uo=" ",dp="…";function P1(e,t,r,n,o,i,a){return++n>t.maxDepth?Xa(Rn(a)):`${Rn(a)+Uo}{${di(e.entries(),t,r,n,o,i)}}`}function x1(e){let t=0;return{next(){if(t<e._keys.length){let r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}function C1(e,t,r,n,o,i){let a=Rn(e._name||"Record");return++n>t.maxDepth?Xa(a):`${a+Uo}{${di(x1(e),t,r,n,o,i)}}`}function N1(e,t,r,n,o,i){let a=Rn("Seq");return++n>t.maxDepth?Xa(a):e[_1]?`${a+Uo}{${e._iter||e._object?di(e.entries(),t,r,n,o,i):dp}}`:`${a+Uo}[${e._iter||e._array||e._collection||e._iterable?cc(e.values(),t,r,n,o,i):dp}]`}function Bs(e,t,r,n,o,i,a){return++n>t.maxDepth?Xa(Rn(a)):`${Rn(a)+Uo}[${cc(e.values(),t,r,n,o,i)}]`}var I1=(e,t,r,n,o,i)=>e[T1]?P1(e,t,r,n,o,i,e[cp]?"OrderedMap":"Map"):e[w1]?Bs(e,t,r,n,o,i,"List"):e[R1]?Bs(e,t,r,n,o,i,e[cp]?"OrderedSet":"Set"):e[O1]?Bs(e,t,r,n,o,i,"Stack"):e[A1]?N1(e,t,r,n,o,i):C1(e,t,r,n,o,i),j1=e=>e&&(e[E1]===!0||e[S1]===!0),q1={serialize:I1,test:j1};function Ig(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pp={exports:{}},Pe={},fp;function M1(){if(fp)return Pe;fp=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function y(g){if(typeof g=="object"&&g!==null){var E=g.$$typeof;switch(E){case e:switch(g=g.type,g){case r:case o:case n:case c:case u:case f:return g;default:switch(g=g&&g.$$typeof,g){case a:case s:case p:case d:return g;case i:return g;default:return E}}case t:return E}}}return Pe.ContextConsumer=i,Pe.ContextProvider=a,Pe.Element=e,Pe.ForwardRef=s,Pe.Fragment=r,Pe.Lazy=p,Pe.Memo=d,Pe.Portal=t,Pe.Profiler=o,Pe.StrictMode=n,Pe.Suspense=c,Pe.SuspenseList=u,Pe.isContextConsumer=function(g){return y(g)===i},Pe.isContextProvider=function(g){return y(g)===a},Pe.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},Pe.isForwardRef=function(g){return y(g)===s},Pe.isFragment=function(g){return y(g)===r},Pe.isLazy=function(g){return y(g)===p},Pe.isMemo=function(g){return y(g)===d},Pe.isPortal=function(g){return y(g)===t},Pe.isProfiler=function(g){return y(g)===o},Pe.isStrictMode=function(g){return y(g)===n},Pe.isSuspense=function(g){return y(g)===c},Pe.isSuspenseList=function(g){return y(g)===u},Pe.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===o||g===n||g===c||g===u||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===d||g.$$typeof===a||g.$$typeof===i||g.$$typeof===s||g.$$typeof===h||g.getModuleId!==void 0)},Pe.typeOf=y,Pe}var hp;function k1(){return hp||(hp=1,pp.exports=M1()),pp.exports}var jg=k1(),L1=Ig(jg),D1=Ag({__proto__:null,default:L1},[jg]),mp={exports:{}},Re={},yp;function $1(){if(yp)return Re;yp=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function g(E){if(typeof E=="object"&&E!==null){var b=E.$$typeof;switch(b){case e:switch(E=E.type,E){case r:case o:case n:case u:case d:return E;default:switch(E=E&&E.$$typeof,E){case s:case a:case c:case f:case p:case i:return E;default:return b}}case t:return b}}}return Re.ContextConsumer=a,Re.ContextProvider=i,Re.Element=e,Re.ForwardRef=c,Re.Fragment=r,Re.Lazy=f,Re.Memo=p,Re.Portal=t,Re.Profiler=o,Re.StrictMode=n,Re.Suspense=u,Re.SuspenseList=d,Re.isAsyncMode=function(){return!1},Re.isConcurrentMode=function(){return!1},Re.isContextConsumer=function(E){return g(E)===a},Re.isContextProvider=function(E){return g(E)===i},Re.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},Re.isForwardRef=function(E){return g(E)===c},Re.isFragment=function(E){return g(E)===r},Re.isLazy=function(E){return g(E)===f},Re.isMemo=function(E){return g(E)===p},Re.isPortal=function(E){return g(E)===t},Re.isProfiler=function(E){return g(E)===o},Re.isStrictMode=function(E){return g(E)===n},Re.isSuspense=function(E){return g(E)===u},Re.isSuspenseList=function(E){return g(E)===d},Re.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===o||E===n||E===u||E===d||E===h||typeof E=="object"&&E!==null&&(E.$$typeof===f||E.$$typeof===p||E.$$typeof===i||E.$$typeof===a||E.$$typeof===c||E.$$typeof===y||E.getModuleId!==void 0)},Re.typeOf=g,Re}var gp;function B1(){return gp||(gp=1,mp.exports=$1()),mp.exports}var qg=B1(),F1=Ig(qg),U1=Ag({__proto__:null,default:F1},[qg]),J1=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],Hr=Object.fromEntries(J1.map(e=>[e,t=>U1[e](t)||D1[e](t)]));function Mg(e,t=[]){if(Array.isArray(e))for(let r of e)Mg(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function bp(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(Hr.isFragment(e))return"React.Fragment";if(Hr.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(Hr.isContextProvider(e))return"Context.Provider";if(Hr.isContextConsumer(e))return"Context.Consumer";if(Hr.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(Hr.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}function V1(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}var H1=(e,t,r,n,o,i)=>++n>t.maxDepth?mc(bp(e),t):hc(bp(e),pc(V1(e),e.props,t,r+t.indent,n,o,i),fc(Mg(e.props.children),t,r+t.indent,n,o,i),t,r),G1=e=>e!=null&&Hr.isElement(e),z1={serialize:H1,test:G1},W1=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function K1(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}var Y1=(e,t,r,n,o,i)=>++n>t.maxDepth?mc(e.type,t):hc(e.type,e.props?pc(K1(e),e.props,t,r+t.indent,n,o,i):"",e.children?fc(e.children,t,r+t.indent,n,o,i):"",t,r),X1=e=>e&&e.$$typeof===W1,Q1={serialize:Y1,test:X1},kg=Object.prototype.toString,Z1=Date.prototype.toISOString,eI=Error.prototype.toString,vp=RegExp.prototype.toString;function Vi(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function tI(e){return typeof window<"u"&&e===window}var rI=/^Symbol\((.*)\)(.*)$/,nI=/\n/g,Lg=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function oI(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 iI(e){return Object.is(e,-0)?"-0":String(e)}function aI(e){return`${e}n`}function Ep(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function wp(e){return String(e).replace(rI,"Symbol($1)")}function _p(e){return`[${eI.call(e)}]`}function Dg(e,t,r,n){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";let o=typeof e;if(o==="number")return iI(e);if(o==="bigint")return aI(e);if(o==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return Ep(e,t);if(o==="symbol")return wp(e);let i=kg.call(e);return i==="[object WeakMap]"?"WeakMap {}":i==="[object WeakSet]"?"WeakSet {}":i==="[object Function]"||i==="[object GeneratorFunction]"?Ep(e,t):i==="[object Symbol]"?wp(e):i==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":Z1.call(e):i==="[object Error]"?_p(e):i==="[object RegExp]"?r?vp.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):vp.call(e):e instanceof Error?_p(e):null}function $g(e,t,r,n,o,i){if(o.includes(e))return"[Circular]";o=[...o],o.push(e);let a=++n>t.maxDepth,s=t.min;if(t.callToJSON&&!a&&e.toJSON&&typeof e.toJSON=="function"&&!i)return Er(e.toJSON(),t,r,n,o,!0);let c=kg.call(e);return c==="[object Arguments]"?a?"[Arguments]":`${s?"":"Arguments "}[${aa(e,t,r,n,o,Er)}]`:oI(c)?a?`[${e.constructor.name}]`:`${s||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${aa(e,t,r,n,o,Er)}]`:c==="[object Map]"?a?"[Map]":`Map {${di(e.entries(),t,r,n,o,Er," => ")}}`:c==="[object Set]"?a?"[Set]":`Set {${cc(e.values(),t,r,n,o,Er)}}`:a||tI(e)?`[${Vi(e)}]`:`${s||!t.printBasicPrototype&&Vi(e)==="Object"?"":`${Vi(e)} `}{${dc(e,t,r,n,o,Er)}}`}var sI={test:e=>e&&e instanceof Error,serialize(e,t,r,n,o,i){if(o.includes(e))return"[Circular]";o=[...o,e];let a=++n>t.maxDepth,{message:s,cause:c,...u}=e,d={message:s,...typeof c<"u"?{cause:c}:{},...e instanceof AggregateError?{errors:e.errors}:{},...u},p=e.name!=="Error"?e.name:Vi(e);return a?`[${p}]`:`${p} {${di(Object.entries(d).values(),t,r,n,o,i)}}`}};function lI(e){return e.serialize!=null}function Bg(e,t,r,n,o,i){let a;try{a=lI(e)?e.serialize(t,r,n,o,i,Er):e.print(t,s=>Er(s,r,n,o,i),s=>{let c=n+r.indent;return c+s.replaceAll(nI,`
167
+ ${c}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(s){throw new Lg(s.message,s.stack)}if(typeof a!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof a}".`);return a}function Fg(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new Lg(n.message,n.stack)}return null}function Er(e,t,r,n,o,i){let a=Fg(t.plugins,e);if(a!==null)return Bg(a,e,t,r,n,o);let s=Dg(e,t.printFunctionName,t.escapeRegex,t.escapeString);return s!==null?s:$g(e,t,r,n,o,i)}var yc={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},Ug=Object.keys(yc),It={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:yc};function uI(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(It,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function cI(){return Ug.reduce((e,t)=>{let r=yc[t],n=r&&er[r];if(n&&typeof n.close=="string"&&typeof n.open=="string")e[t]=n;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`);return e},Object.create(null))}function dI(){return Ug.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function Jg(e){return e?.printFunctionName??It.printFunctionName}function Vg(e){return e?.escapeRegex??It.escapeRegex}function Hg(e){return e?.escapeString??It.escapeString}function Tp(e){return{callToJSON:e?.callToJSON??It.callToJSON,colors:e?.highlight?cI():dI(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:It.compareKeys,escapeRegex:Vg(e),escapeString:Hg(e),indent:e?.min?"":pI(e?.indent??It.indent),maxDepth:e?.maxDepth??It.maxDepth,maxWidth:e?.maxWidth??It.maxWidth,min:e?.min??It.min,plugins:e?.plugins??It.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:Jg(e),spacingInner:e?.min?" ":`
168
+ `,spacingOuter:e?.min?"":`
169
+ `}}function pI(e){return Array.from({length:e+1}).join(" ")}function Jt(e,t){if(t&&(uI(t),t.plugins)){let n=Fg(t.plugins,e);if(n!==null)return Bg(n,e,Tp(t),"",0,[])}let r=Dg(e,Jg(t),Vg(t),Hg(t));return r!==null?r:$g(e,Tp(t),"",0,[])}var gc={AsymmetricMatcher:r1,DOMCollection:u1,DOMElement:v1,Immutable:q1,ReactElement:z1,ReactTestComponent:Q1,Error:sI},Sp={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"]},fI={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},On="…";function hI(e,t){let r=Sp[fI[t]]||Sp[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}function mI({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:i=1/0,breakLength:a=1/0,seen:s=[],truncate:c=1/0,stylize:u=String}={},d){let p={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(a),truncate:Number(c),seen:s,inspect:d,stylize:u};return p.colors&&(p.stylize=hI),p}function yI(e){return e>="\uD800"&&e<="\uDBFF"}function jr(e,t,r=On){e=String(e);let n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let i=t-n;return i>0&&yI(e[i-1])&&(i=i-1),`${e.slice(0,i)}${r}`}return e}function Lt(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let i=t.truncate,a="",s="",c="";for(let u=0;u<o;u+=1){let d=u+1===e.length,p=u+2===e.length;c=`${On}(${e.length-u})`;let f=e[u];t.truncate=i-a.length-(d?0:n.length);let h=s||r(f,t)+(d?"":n),y=a.length+h.length,g=y+c.length;if(d&&y>i&&a.length+c.length<=i||!d&&!p&&g>i||(s=d?"":r(e[u+1],t)+(p?"":n),!d&&p&&g>i&&y+s.length>i))break;if(a+=h,!d&&!p&&y+s.length>=i){c=`${On}(${e.length-u-1})`;break}c=""}return`${a}${c}`}function gI(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function Jo([e,t],r){return r.truncate-=2,typeof e=="string"?e=gI(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}function bI(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=Lt(e,t);t.truncate-=n.length;let o="";return r.length&&(o=Lt(r.map(i=>[i,e[i]]),t,Jo)),`[ ${n}${o?`, ${o}`:""} ]`}var vI=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function Wt(e,t){let r=vI(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let o="";for(let a=0;a<e.length;a++){let s=`${t.stylize(jr(e[a],t.truncate),"number")}${a===e.length-1?"":", "}`;if(t.truncate-=s.length,e[a]!==e.length&&t.truncate<=3){o+=`${On}(${e.length-e[a]+1})`;break}o+=s}let i="";return n.length&&(i=Lt(n.map(a=>[a,e[a]]),t,Jo)),`${r}[ ${o}${i?`, ${i}`:""} ]`}function EI(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),o=n[0];return t.stylize(`${o}T${jr(n[1],t.truncate-o.length-1)}`,"date")}function Ap(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${jr(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}function wI([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}function _I(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}function TI(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Lt(_I(e),t,wI)} }`)}var SI=Number.isNaN||(e=>e!==e);function Rp(e,t){return SI(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(jr(String(e),t.truncate),"number")}function Op(e,t){let r=jr(e.toString(),t.truncate-1);return r!==On&&(r+="n"),t.stylize(r,"bigint")}function AI(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${jr(o,n)}/${r}`,"regexp")}function RI(e){let t=[];return e.forEach(r=>{t.push(r)}),t}function OI(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Lt(RI(e),t)} }`)}var Pp=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),PI={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},xI=16;function CI(e){return PI[e]||`\\u${`0000${e.charCodeAt(0).toString(xI)}`.slice(-4)}`}function xp(e,t){return Pp.test(e)&&(e=e.replace(Pp,CI)),t.stylize(`'${jr(e,t.truncate-2)}'`,"string")}function Cp(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var Gg=()=>"Promise{…}";try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(Gg=(n,o)=>{let[i,a]=e(n);return i===t?"Promise{<pending>}":`Promise${i===r?"!":""}{${o.inspect(a,o)}}`})}catch{}var NI=Gg;function Hi(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=Lt(r.map(s=>[s,e[s]]),t,Jo),i=Lt(n.map(s=>[s,e[s]]),t,Jo);t.seen.pop();let a="";return o&&i&&(a=", "),`{ ${o}${a}${i} }`}var Fs=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function II(e,t){let r="";return Fs&&Fs in e&&(r=e[Fs]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${Hi(e,t)}`}function jI(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Lt(e,t)} ]`)}var qI=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function MI(e,t){let r=Object.getOwnPropertyNames(e).filter(a=>qI.indexOf(a)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=jr(e.message,t.truncate):r.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let i=Lt(r.map(a=>[a,e[a]]),t,Jo);return`${n}${o}${i?` { ${i} }`:""}`}function kI([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}function Al(e,t){return Lt(e,t,LI,`
170
+ `)}function LI(e,t){switch(e.nodeType){case 1:return zg(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function zg(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),i=t.stylize(">","special"),a=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let s="";r.length>0&&(s+=" ",s+=Lt(r.map(d=>[d,e.getAttribute(d)]),t,kI," ")),t.truncate-=s.length;let c=t.truncate,u=Al(e.children,t);return u&&u.length>c&&(u=`${On}(${e.children.length})`),`${o}${s}${i}${u}${a}`}var DI=typeof Symbol=="function"&&typeof Symbol.for=="function",Us=DI?Symbol.for("chai/inspect"):"@@chai/inspect",Js=Symbol.for("nodejs.util.inspect.custom"),Np=new WeakMap,Ip={},jp={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:Rp,Number:Rp,bigint:Op,BigInt:Op,string:xp,String:xp,function:Ap,Function:Ap,symbol:Cp,Symbol:Cp,Array:bI,Date:EI,Map:TI,Set:OI,RegExp:AI,Promise:NI,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:jI,Int8Array:Wt,Uint8Array:Wt,Uint8ClampedArray:Wt,Int16Array:Wt,Uint16Array:Wt,Int32Array:Wt,Uint32Array:Wt,Float32Array:Wt,Float64Array:Wt,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:MI,HTMLCollection:Al,NodeList:Al},$I=(e,t,r)=>Us in e&&typeof e[Us]=="function"?e[Us](t):Js in e&&typeof e[Js]=="function"?e[Js](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&Np.has(e.constructor)?Np.get(e.constructor)(e,t):Ip[r]?Ip[r](e,t):"",BI=Object.prototype.toString;function Rl(e,t={}){let r=mI(t,Rl),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=BI.call(e).slice(8,-1)),o in jp)return jp[o](e,r);if(n&&e){let a=$I(e,r,o);if(a)return typeof a=="string"?a:Rl(a,r)}let i=e?Object.getPrototypeOf(e):!1;return i===Object.prototype||i===null?Hi(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?zg(e,r):"constructor"in e?e.constructor!==Object?II(e,r):Hi(e,r):e===Object(e)?Hi(e,r):r.stylize(String(e),o)}var{AsymmetricMatcher:FI,DOMCollection:UI,DOMElement:JI,Immutable:VI,ReactElement:HI,ReactTestComponent:GI}=gc,qp=[GI,HI,JI,UI,VI,FI];function Et(e,t=10,{maxLength:r,...n}={}){let o=r??1e4,i;try{i=Jt(e,{maxDepth:t,escapeString:!1,plugins:qp,...n})}catch{i=Jt(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:qp,...n})}return i.length>=o&&t>1?Et(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...n}):i}var zI=/%[sdjifoOc%]/g;function WI(...e){if(typeof e[0]!="string"){let i=[];for(let a=0;a<e.length;a++)i.push(yo(e[a],{depth:0,colors:!1}));return i.join(" ")}let t=e.length,r=1,n=e[0],o=String(n).replace(zI,i=>{if(i==="%%")return"%";if(r>=t)return i;switch(i){case"%s":{let a=e[r++];return typeof a=="bigint"?`${a.toString()}n`:typeof a=="number"&&a===0&&1/a<0?"-0":typeof a=="object"&&a!==null?typeof a.toString=="function"&&a.toString!==Object.prototype.toString?a.toString():yo(a,{depth:0,colors:!1}):String(a)}case"%d":{let a=e[r++];return typeof a=="bigint"?`${a.toString()}n`:Number(a).toString()}case"%i":{let a=e[r++];return typeof a=="bigint"?`${a.toString()}n`:Number.parseInt(String(a)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return yo(e[r++],{showHidden:!0,showProxy:!0});case"%O":return yo(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(a){let s=a.message;if(s.includes("circular structure")||s.includes("cyclic structures")||s.includes("cyclic object"))return"[Circular]";throw a}default:return i}});for(let i=e[r];r<t;i=e[++r])i===null||typeof i!="object"?o+=` ${i}`:o+=` ${yo(i)}`;return o}function yo(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Rl(e,t)}function Wg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Kt(e,t,r){let n=typeof e;if(!r.includes(n))throw new TypeError(`${t} value must be ${r.join(" or ")}, received "${n}"`)}function Gi(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function KI(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function sa(e){return Object.prototype.toString.apply(e).slice(8,-1)}function YI(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}function Kg(e){let t=new Set;return KI(e)?[]:(YI(e,t),Array.from(t))}var Yg={forceWritable:!1};function Mp(e,t=Yg){return Ol(e,new WeakMap,t)}function Ol(e,t,r=Yg){let n,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array.from({length:n=e.length}),t.set(e,o);n--;)o[n]=Ol(e[n],t,r);return o}if(Object.prototype.toString.call(e)==="[object Object]"){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let i=Kg(e);for(let a of i){let s=Object.getOwnPropertyDescriptor(e,a);if(!s)continue;let c=Ol(e[a],t,r);r.forceWritable?Object.defineProperty(o,a,{enumerable:s.enumerable,configurable:!0,writable:!0,value:c}):"get"in s?Object.defineProperty(o,a,{...s,get(){return c}}):Object.defineProperty(o,a,{...s,value:c})}return o}return e}function XI(){}var ot=-1,et=1,Fe=0,De=class{0;1;constructor(e,t){this[0]=e,this[1]=t}};function QI(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,n=Math.min(e.length,t.length),o=n,i=0;for(;r<o;)e.substring(i,o)===t.substring(i,o)?(r=o,i=r):n=o,o=Math.floor((n-r)/2+r);return o}function Xg(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let r=0,n=Math.min(e.length,t.length),o=n,i=0;for(;r<o;)e.substring(e.length-o,e.length-i)===t.substring(t.length-o,t.length-i)?(r=o,i=r):n=o,o=Math.floor((n-r)/2+r);return o}function kp(e,t){let r=e.length,n=t.length;if(r===0||n===0)return 0;r>n?e=e.substring(r-n):r<n&&(t=t.substring(0,r));let o=Math.min(r,n);if(e===t)return o;let i=0,a=1;for(;;){let s=e.substring(o-a),c=t.indexOf(s);if(c===-1)return i;a+=c,(c===0||e.substring(o-a)===t.substring(0,a))&&(i=a,a++)}}function ZI(e){let t=!1,r=[],n=0,o=null,i=0,a=0,s=0,c=0,u=0;for(;i<e.length;)e[i][0]===Fe?(r[n++]=i,a=c,s=u,c=0,u=0,o=e[i][1]):(e[i][0]===et?c+=e[i][1].length:u+=e[i][1].length,o&&o.length<=Math.max(a,s)&&o.length<=Math.max(c,u)&&(e.splice(r[n-1],0,new De(ot,o)),e[r[n-1]+1][0]=et,n--,n--,i=n>0?r[n-1]:-1,a=0,s=0,c=0,u=0,o=null,t=!0)),i++;for(t&&Qg(e),rj(e),i=1;i<e.length;){if(e[i-1][0]===ot&&e[i][0]===et){let d=e[i-1][1],p=e[i][1],f=kp(d,p),h=kp(p,d);f>=h?(f>=d.length/2||f>=p.length/2)&&(e.splice(i,0,new De(Fe,p.substring(0,f))),e[i-1][1]=d.substring(0,d.length-f),e[i+1][1]=p.substring(f),i++):(h>=d.length/2||h>=p.length/2)&&(e.splice(i,0,new De(Fe,d.substring(0,h))),e[i-1][0]=et,e[i-1][1]=p.substring(0,p.length-h),e[i+1][0]=ot,e[i+1][1]=d.substring(h),i++),i++}i++}}var Lp=/[^a-z0-9]/i,Dp=/\s/,$p=/[\r\n]/,ej=/\n\r?\n$/,tj=/^\r?\n\r?\n/;function rj(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===Fe&&e[t+1][0]===Fe){let r=e[t-1][1],n=e[t][1],o=e[t+1][1],i=Xg(r,n);if(i){let d=n.substring(n.length-i);r=r.substring(0,r.length-i),n=d+n.substring(0,n.length-i),o=d+o}let a=r,s=n,c=o,u=Oi(r,n)+Oi(n,o);for(;n.charAt(0)===o.charAt(0);){r+=n.charAt(0),n=n.substring(1)+o.charAt(0),o=o.substring(1);let d=Oi(r,n)+Oi(n,o);d>=u&&(u=d,a=r,s=n,c=o)}e[t-1][1]!==a&&(a?e[t-1][1]=a:(e.splice(t-1,1),t--),e[t][1]=s,c?e[t+1][1]=c:(e.splice(t+1,1),t--))}t++}}function Qg(e){e.push(new De(Fe,""));let t=0,r=0,n=0,o="",i="",a;for(;t<e.length;)switch(e[t][0]){case et:n++,i+=e[t][1],t++;break;case ot:r++,o+=e[t][1],t++;break;case Fe:r+n>1?(r!==0&&n!==0&&(a=QI(i,o),a!==0&&(t-r-n>0&&e[t-r-n-1][0]===Fe?e[t-r-n-1][1]+=i.substring(0,a):(e.splice(0,0,new De(Fe,i.substring(0,a))),t++),i=i.substring(a),o=o.substring(a)),a=Xg(i,o),a!==0&&(e[t][1]=i.substring(i.length-a)+e[t][1],i=i.substring(0,i.length-a),o=o.substring(0,o.length-a))),t-=r+n,e.splice(t,r+n),o.length&&(e.splice(t,0,new De(ot,o)),t++),i.length&&(e.splice(t,0,new De(et,i)),t++),t++):t!==0&&e[t-1][0]===Fe?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,o="",i="";break}e[e.length-1][1]===""&&e.pop();let s=!1;for(t=1;t<e.length-1;)e[t-1][0]===Fe&&e[t+1][0]===Fe&&(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&&Qg(e)}function Oi(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),n=t.charAt(0),o=r.match(Lp),i=n.match(Lp),a=o&&r.match(Dp),s=i&&n.match(Dp),c=a&&r.match($p),u=s&&n.match($p),d=c&&e.match(ej),p=u&&t.match(tj);return d||p?5:c||u?4:o&&!a&&s?3:a||s?2:o||i?1:0}var Zg="Compared values have no visual difference.",nj="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",Pi={},Bp;function oj(){if(Bp)return Pi;Bp=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.default=f;let e="diff-sequences",t=0,r=(h,y,g,E,b)=>{let w=0;for(;h<y&&g<E&&b(h,g);)h+=1,g+=1,w+=1;return w},n=(h,y,g,E,b)=>{let w=0;for(;h<=y&&g<=E&&b(y,E);)y-=1,E-=1,w+=1;return w},o=(h,y,g,E,b,w,P)=>{let x=0,C=-h,S=w[x],_=S;w[x]+=r(S+1,y,E+S-C+1,g,b);let T=h<P?h:P;for(x+=1,C+=2;x<=T;x+=1,C+=2){if(x!==h&&_<w[x])S=w[x];else if(S=_+1,y<=S)return x-1;_=w[x],w[x]=S+r(S+1,y,E+S-C+1,g,b)}return P},i=(h,y,g,E,b,w,P)=>{let x=0,C=h,S=w[x],_=S;w[x]-=n(y,S-1,g,E+S-C-1,b);let T=h<P?h:P;for(x+=1,C-=2;x<=T;x+=1,C-=2){if(x!==h&&w[x]<_)S=w[x];else if(S=_-1,S<y)return x-1;_=w[x],w[x]=S-n(y,S-1,g,E+S-C-1,b)}return P},a=(h,y,g,E,b,w,P,x,C,S,_)=>{let T=E-y,A=g-y,D=b-E-A,k=-D-(h-1),U=-D+(h-1),I=t,R=h<x?h:x;for(let M=0,L=-h;M<=R;M+=1,L+=2){let J=M===0||M!==h&&I<P[M],W=J?P[M]:I,ne=J?W:W+1,ue=T+ne-L,ie=r(ne+1,g,ue+1,b,w),z=ne+ie;if(I=P[M],P[M]=z,k<=L&&L<=U){let G=(h-1-(L+D))/2;if(G<=S&&C[G]-1<=z){let re=T+W-(J?L+1:L-1),Z=n(y,W,E,re,w),K=W-Z,ye=re-Z,ce=K+1,Me=ye+1;_.nChangePreceding=h-1,h-1===ce+Me-y-E?(_.aEndPreceding=y,_.bEndPreceding=E):(_.aEndPreceding=ce,_.bEndPreceding=Me),_.nCommonPreceding=Z,Z!==0&&(_.aCommonPreceding=ce,_.bCommonPreceding=Me),_.nCommonFollowing=ie,ie!==0&&(_.aCommonFollowing=ne+1,_.bCommonFollowing=ue+1);let F=z+1,Q=ue+ie+1;return _.nChangeFollowing=h-1,h-1===g+b-F-Q?(_.aStartFollowing=g,_.bStartFollowing=b):(_.aStartFollowing=F,_.bStartFollowing=Q),!0}}}return!1},s=(h,y,g,E,b,w,P,x,C,S,_)=>{let T=b-g,A=g-y,D=b-E-A,k=D-h,U=D+h,I=t,R=h<S?h:S;for(let M=0,L=h;M<=R;M+=1,L-=2){let J=M===0||M!==h&&C[M]<I,W=J?C[M]:I,ne=J?W:W-1,ue=T+ne-L,ie=n(y,ne-1,E,ue-1,w),z=ne-ie;if(I=C[M],C[M]=z,k<=L&&L<=U){let G=(h+(L-D))/2;if(G<=x&&z-1<=P[G]){let re=ue-ie;if(_.nChangePreceding=h,h===z+re-y-E?(_.aEndPreceding=y,_.bEndPreceding=E):(_.aEndPreceding=z,_.bEndPreceding=re),_.nCommonPreceding=ie,ie!==0&&(_.aCommonPreceding=z,_.bCommonPreceding=re),_.nChangeFollowing=h-1,h===1)_.nCommonFollowing=0,_.aStartFollowing=g,_.bStartFollowing=b;else{let Z=T+W-(J?L-1:L+1),K=r(W,g,Z,b,w);_.nCommonFollowing=K,K!==0&&(_.aCommonFollowing=W,_.bCommonFollowing=Z);let ye=W+K,ce=Z+K;h-1===g+b-ye-ce?(_.aStartFollowing=g,_.bStartFollowing=b):(_.aStartFollowing=ye,_.bStartFollowing=ce)}return!0}}}return!1},c=(h,y,g,E,b,w,P,x,C)=>{let S=E-y,_=b-g,T=g-y,A=b-E,D=A-T,k=T,U=T;if(P[0]=y-1,x[0]=g,D%2===0){let I=(h||D)/2,R=(T+A)/2;for(let M=1;M<=R;M+=1)if(k=o(M,g,b,S,w,P,k),M<I)U=i(M,y,E,_,w,x,U);else if(s(M,y,g,E,b,w,P,k,x,U,C))return}else{let I=((h||D)+1)/2,R=(T+A+1)/2,M=1;for(k=o(M,g,b,S,w,P,k),M+=1;M<=R;M+=1)if(U=i(M-1,y,E,_,w,x,U),M<I)k=o(M,g,b,S,w,P,k);else if(a(M,y,g,E,b,w,P,k,x,U,C))return}throw new Error(`${e}: no overlap aStart=${y} aEnd=${g} bStart=${E} bEnd=${b}`)},u=(h,y,g,E,b,w,P,x,C,S)=>{if(b-E<g-y){if(w=!w,w&&P.length===1){let{foundSubsequence:G,isCommon:re}=P[0];P[1]={foundSubsequence:(Z,K,ye)=>{G(Z,ye,K)},isCommon:(Z,K)=>re(K,Z)}}let ie=y,z=g;y=E,g=b,E=ie,b=z}let{foundSubsequence:_,isCommon:T}=P[w?1:0];c(h,y,g,E,b,T,x,C,S);let{nChangePreceding:A,aEndPreceding:D,bEndPreceding:k,nCommonPreceding:U,aCommonPreceding:I,bCommonPreceding:R,nCommonFollowing:M,aCommonFollowing:L,bCommonFollowing:J,nChangeFollowing:W,aStartFollowing:ne,bStartFollowing:ue}=S;y<D&&E<k&&u(A,y,D,E,k,w,P,x,C,S),U!==0&&_(U,I,R),M!==0&&_(M,L,J),ne<g&&ue<b&&u(W,ne,g,ue,b,w,P,x,C,S)},d=(h,y)=>{if(typeof y!="number")throw new TypeError(`${e}: ${h} typeof ${typeof y} is not a number`);if(!Number.isSafeInteger(y))throw new RangeError(`${e}: ${h} value ${y} is not a safe integer`);if(y<0)throw new RangeError(`${e}: ${h} value ${y} is a negative integer`)},p=(h,y)=>{let g=typeof y;if(g!=="function")throw new TypeError(`${e}: ${h} typeof ${g} is not a function`)};function f(h,y,g,E){d("aLength",h),d("bLength",y),p("isCommon",g),p("foundSubsequence",E);let b=r(0,h,0,y,g);if(b!==0&&E(b,0,0),h!==b||y!==b){let w=b,P=b,x=n(w,h-1,P,y-1,g),C=h-x,S=y-x,_=b+x;h!==_&&y!==_&&u(0,w,C,P,S,!1,[{foundSubsequence:E,isCommon:g}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),x!==0&&E(x,C,S)}}return Pi}var ij=oj(),eb=Wg(ij);function aj(e,t){return e.replace(/\s+$/,r=>t(r))}function bc(e,t,r,n,o,i){return e.length!==0?r(`${n} ${aj(e,o)}`):n!==" "?r(n):t&&i.length!==0?r(`${n} ${i}`):""}function tb(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return bc(e,t,r,n,o,i)}function rb(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return bc(e,t,r,n,o,i)}function nb(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return bc(e,t,r,n,o,i)}function Fp(e,t,r,n,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}function sj(e,t){let r=e.length,n=t.contextLines,o=n+n,i=r,a=!1,s=0,c=0;for(;c!==r;){let x=c;for(;c!==r&&e[c][0]===Fe;)c+=1;if(x!==c)if(x===0)c>n&&(i-=c-n,a=!0);else if(c===r){let C=c-x;C>n&&(i-=C-n,a=!0)}else{let C=c-x;C>o&&(i-=C-o,s+=1)}for(;c!==r&&e[c][0]!==Fe;)c+=1}let u=s!==0||a;s!==0?i+=s+1:a&&(i+=1);let d=i-1,p=[],f=0;u&&p.push("");let h=0,y=0,g=0,E=0,b=x=>{let C=p.length;p.push(nb(x,C===0||C===d,t)),g+=1,E+=1},w=x=>{let C=p.length;p.push(tb(x,C===0||C===d,t)),g+=1},P=x=>{let C=p.length;p.push(rb(x,C===0||C===d,t)),E+=1};for(c=0;c!==r;){let x=c;for(;c!==r&&e[c][0]===Fe;)c+=1;if(x!==c)if(x===0){c>n&&(x=c-n,h=x,y=x,g=h,E=y);for(let C=x;C!==c;C+=1)b(e[C][1])}else if(c===r){let C=c-x>n?x+n:c;for(let S=x;S!==C;S+=1)b(e[S][1])}else{let C=c-x;if(C>o){let S=x+n;for(let T=x;T!==S;T+=1)b(e[T][1]);p[f]=Fp(h,g,y,E,t),f=p.length,p.push("");let _=C-o;h=g+_,y=E+_,g=h,E=y;for(let T=c-n;T!==c;T+=1)b(e[T][1])}else for(let S=x;S!==c;S+=1)b(e[S][1])}for(;c!==r&&e[c][0]===ot;)w(e[c][1]),c+=1;for(;c!==r&&e[c][0]===et;)P(e[c][1]),c+=1}return u&&(p[f]=Fp(h,g,y,E,t)),p.join(`
171
+ `)}function lj(e,t){return e.map((r,n,o)=>{let i=r[1],a=n===0||n===o.length-1;switch(r[0]){case ot:return tb(i,a,t);case et:return rb(i,a,t);default:return nb(i,a,t)}}).join(`
172
+ `)}var Vs=e=>e,ob=5,uj=0;function cj(){return{aAnnotation:"Expected",aColor:er.green,aIndicator:"-",bAnnotation:"Received",bColor:er.red,bIndicator:"+",changeColor:er.inverse,changeLineTrailingSpaceColor:Vs,commonColor:er.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Vs,compareKeys:void 0,contextLines:ob,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:er.yellow,printBasicPrototype:!1,truncateThreshold:uj,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:Vs}}function dj(e){return e&&typeof e=="function"?e:void 0}function pj(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:ob}function un(e={}){return{...cj(),...e,compareKeys:dj(e.compareKeys),contextLines:pj(e.contextLines)}}function gn(e){return e.length===1&&e[0].length===0}function fj(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case ot:t+=1;break;case et:r+=1;break}}),{a:t,b:r}}function hj({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:o,bIndicator:i,includeChangeCounts:a,omitAnnotationLines:s},c){if(s)return"";let u="",d="";if(a){let h=String(c.a),y=String(c.b),g=n.length-e.length,E=" ".repeat(Math.max(0,g)),b=" ".repeat(Math.max(0,-g)),w=y.length-h.length,P=" ".repeat(Math.max(0,w)),x=" ".repeat(Math.max(0,-w));u=`${E} ${r} ${P}${h}`,d=`${b} ${i} ${x}${y}`}let p=`${r} ${e}${u}`,f=`${i} ${n}${d}`;return`${t(p)}
173
+ ${o(f)}
174
+
175
+ `}function vc(e,t,r){return hj(r,fj(e))+(r.expand?lj(e,r):sj(e,r))+(t?r.truncateAnnotationColor(`
176
+ ${r.truncateAnnotation}`):"")}function Qa(e,t,r){let n=un(r),[o,i]=ib(gn(e)?[]:e,gn(t)?[]:t,n);return vc(o,i,n)}function mj(e,t,r,n,o){if(gn(e)&&gn(r)&&(e=[],r=[]),gn(t)&&gn(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return Qa(e,t,o);let[i,a]=ib(r,n,o),s=0,c=0;return i.forEach(u=>{switch(u[0]){case ot:u[1]=e[s],s+=1;break;case et:u[1]=t[c],c+=1;break;default:u[1]=t[c],s+=1,c+=1}}),vc(i,a,un(o))}function ib(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),i=n?Math.min(e.length,o):e.length,a=n?Math.min(t.length,o):t.length,s=i!==e.length||a!==t.length,c=(f,h)=>e[f]===t[h],u=[],d=0,p=0;for(eb(i,a,c,(f,h,y)=>{for(;d!==h;d+=1)u.push(new De(ot,e[d]));for(;p!==y;p+=1)u.push(new De(et,t[p]));for(;f!==0;f-=1,d+=1,p+=1)u.push(new De(Fe,t[p]))});d!==i;d+=1)u.push(new De(ot,e[d]));for(;p!==a;p+=1)u.push(new De(et,t[p]));return[u,s]}function Up(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 new Error(`value of unknown type: ${e}`)}function Jp(e){return e.includes(`\r
177
+ `)?`\r
178
+ `:`
179
+ `}function yj(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),i=e.length,a=t.length;if(n){let f=e.includes(`
180
+ `),h=t.includes(`
181
+ `),y=Jp(e),g=Jp(t),E=f?`${e.split(y,o).join(y)}
182
+ `:e,b=h?`${t.split(g,o).join(g)}
183
+ `:t;i=E.length,a=b.length}let s=i!==e.length||a!==t.length,c=(f,h)=>e[f]===t[h],u=0,d=0,p=[];return eb(i,a,c,(f,h,y)=>{u!==h&&p.push(new De(ot,e.slice(u,h))),d!==y&&p.push(new De(et,t.slice(d,y))),u=h+f,d=y+f,p.push(new De(Fe,t.slice(y,d)))}),u!==i&&p.push(new De(ot,e.slice(u))),d!==a&&p.push(new De(et,t.slice(d))),[p,s]}function gj(e,t,r){return t.reduce((n,o)=>n+(o[0]===Fe?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}var Vp=class{op;line;lines;changeColor;constructor(e,t){this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new De(this.op,e))}pushLine(){this.lines.push(this.line.length!==1?new De(this.op,gj(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new De(this.op,this.line[0][1])),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(`
184
+ `)){let r=t.split(`
185
+ `),n=r.length-1;r.forEach((o,i)=>{i<n?(this.pushSubstring(o),this.pushLine()):o.length!==0&&this.pushSubstring(o)})}else this.pushDiff(e)}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0}},bj=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],r=e[1];if(r.includes(`
186
+ `)){let n=r.split(`
187
+ `),o=n.length-1;n.forEach((i,a)=>{if(a===0){let s=new De(t,i);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(s)):(this.pushDiffChangeLines(s),this.flushChangeLines())}else a<o?this.pushDiffCommonLine(new De(t,i)):i.length!==0&&this.pushDiffChangeLines(new De(t,i))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function vj(e,t){let r=new Vp(ot,t),n=new Vp(et,t),o=new bj(r,n);return e.forEach(i=>{switch(i[0]){case ot:r.align(i);break;case et:n.align(i);break;default:o.align(i)}}),o.getLines()}function Ej(e,t){if(t){let r=e.length-1;return e.some((n,o)=>n[0]===Fe&&(o!==r||n[1]!==`
188
+ `))}return e.some(r=>r[0]===Fe)}function wj(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(`
189
+ `)||t.includes(`
190
+ `),[o,i]=ab(n?`${e}
191
+ `:e,n?`${t}
192
+ `:t,!0,r);if(Ej(o,n)){let a=un(r),s=vj(o,a.changeColor);return vc(s,i,a)}}return Qa(e.split(`
193
+ `),t.split(`
194
+ `),r)}function ab(e,t,r,n){let[o,i]=yj(e,t,n);return ZI(o),[o,i]}function Pl(e,t){let{commonColor:r}=un(t);return r(e)}var{AsymmetricMatcher:_j,DOMCollection:Tj,DOMElement:Sj,Immutable:Aj,ReactElement:Rj,ReactTestComponent:Oj}=gc,sb=[Oj,Rj,Sj,Tj,Aj,_j,gc.Error],xl={maxDepth:20,plugins:sb},lb={callToJSON:!1,maxDepth:8,plugins:sb};function Hn(e,t,r){if(Object.is(e,t))return"";let n=Up(e),o=n,i=!1;if(n==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;o=e.getExpectedType(),i=o==="string"}if(o!==Up(t)){let a=function(P){return P.length<=E?P:`${P.slice(0,E)}...`},{aAnnotation:s,aColor:c,aIndicator:u,bAnnotation:d,bColor:p,bIndicator:f}=un(r),h=Cl(lb,r),y=Jt(e,h),g=Jt(t,h),E=1e5;y=a(y),g=a(g);let b=`${c(`${u} ${s}:`)}
195
+ ${y}`,w=`${p(`${f} ${d}:`)}
196
+ ${g}`;return`${b}
197
+
198
+ ${w}`}if(!i)switch(n){case"string":return Qa(e.split(`
199
+ `),t.split(`
200
+ `),r);case"boolean":case"number":return Pj(e,t,r);case"map":return Hs(Hp(e),Hp(t),r);case"set":return Hs(Gp(e),Gp(t),r);default:return Hs(e,t,r)}}function Pj(e,t,r){let n=Jt(e,xl),o=Jt(t,xl);return n===o?"":Qa(n.split(`
201
+ `),o.split(`
202
+ `),r)}function Hp(e){return new Map(Array.from(e.entries()).sort())}function Gp(e){return new Set(Array.from(e.values()).sort())}function Hs(e,t,r){let n,o=!1;try{let a=Cl(xl,r);n=zp(e,t,a,r)}catch{o=!0}let i=Pl(Zg,r);if(n===void 0||n===i){let a=Cl(lb,r);n=zp(e,t,a,r),n!==i&&!o&&(n=`${Pl(nj,r)}
203
+
204
+ ${n}`)}return n}function Cl(e,t){let{compareKeys:r,printBasicPrototype:n,maxDepth:o}=un(t);return{...e,compareKeys:r,printBasicPrototype:n,maxDepth:o??e.maxDepth}}function zp(e,t,r,n){let o={...r,indent:0},i=Jt(e,o),a=Jt(t,o);if(i===a)return Pl(Zg,n);{let s=Jt(e,r),c=Jt(t,r);return mj(s.split(`
205
+ `),c.split(`
206
+ `),i.split(`
207
+ `),a.split(`
208
+ `),n)}}var Wp=2e4;function Kp(e){return sa(e)==="Object"&&typeof e.asymmetricMatch=="function"}function Yp(e,t){let r=sa(e),n=sa(t);return r===n&&(r==="Object"||r==="Array")}function ub(e,t,r){let{aAnnotation:n,bAnnotation:o}=un(r);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=Wp&&e.length<=Wp&&t!==e){if(t.includes(`
209
+ `)||e.includes(`
210
+ `))return wj(t,e,r);let[u]=ab(t,e),d=u.some(y=>y[0]===Fe),p=xj(n,o),f=p(n)+Ij(Xp(u,ot,d)),h=p(o)+Nj(Xp(u,et,d));return`${f}
211
+ ${h}`}let i=Mp(t,{forceWritable:!0}),a=Mp(e,{forceWritable:!0}),{replacedExpected:s,replacedActual:c}=cb(a,i);return Hn(s,c,r)}function cb(e,t,r=new WeakSet,n=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<"u"&&typeof t.cause>"u"?(delete e.cause,{replacedActual:e,replacedExpected:t}):Yp(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),Kg(t).forEach(o=>{let i=t[o],a=e[o];if(Kp(i))i.asymmetricMatch(a)&&(e[o]=i);else if(Kp(a))a.asymmetricMatch(i)&&(t[o]=a);else if(Yp(a,i)){let s=cb(a,i,r,n);e[o]=s.replacedActual,t[o]=s.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function xj(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}var Cj="·";function db(e){return e.replace(/\s+$/gm,t=>Cj.repeat(t.length))}function Nj(e){return er.red(db(Et(e)))}function Ij(e){return er.green(db(Et(e)))}function Xp(e,t,r){return e.reduce((n,o)=>n+(o[0]===Fe?o[1]:o[0]===t?r?er.inverse(o[1]):o[1]:""),"")}var jj="@@__IMMUTABLE_RECORD__@@",qj="@@__IMMUTABLE_ITERABLE__@@";function Mj(e){return e&&(e[qj]||e[jj])}var kj=Object.getPrototypeOf({});function Qp(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function wr(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(e instanceof Error&&"toJSON"in e&&typeof e.toJSON=="function"){let r=e.toJSON();return r&&r!==e&&typeof r=="object"&&(typeof e.message=="string"&&xi(()=>r.message??(r.message=e.message)),typeof e.stack=="string"&&xi(()=>r.stack??(r.stack=e.stack)),typeof e.name=="string"&&xi(()=>r.name??(r.name=e.name)),e.cause!=null&&xi(()=>r.cause??(r.cause=wr(e.cause,t)))),wr(r,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(Mj(e))return wr(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()} ${WI(e.sample)}`;if(typeof e.toJSON=="function")return wr(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let r=new Array(e.length);return t.set(e,r),e.forEach((n,o)=>{try{r[o]=wr(n,t)}catch(i){r[o]=Qp(i)}}),r}else{let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==kj;)Object.getOwnPropertyNames(n).forEach(o=>{if(!(o in r))try{r[o]=wr(e[o],t)}catch(i){delete r[o],r[o]=Qp(i)}}),n=Object.getPrototypeOf(n);return r}}function xi(e){try{return e()}catch{}}function Lj(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function Ec(e,t,r=new WeakSet){if(!e||typeof e!="object")return{message:String(e)};let n=e;(n.showDiff||n.showDiff===void 0&&n.expected!==void 0&&n.actual!==void 0)&&(n.diff=ub(n.actual,n.expected,{...t,...n.diffOptions})),"expected"in n&&typeof n.expected!="string"&&(n.expected=Et(n.expected,10)),"actual"in n&&typeof n.actual!="string"&&(n.actual=Et(n.actual,10));try{typeof n.message=="string"&&(n.message=Lj(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=Ec(n.cause,t,r))}catch{}try{return wr(n)}catch(o){return wr(new Error(`Failed to fully serialize error: ${o?.message}
212
+ Inner error message: ${n?.message}`))}}var Yt={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"},Gs=globalThis.__STORYBOOK_ADDONS_PREVIEW,Dj=new Error("This function ran after the play function completed. Did you forget to `await` it?"),Zp=e=>Object.prototype.toString.call(e)==="[object Object]",$j=e=>Object.prototype.toString.call(e)==="[object Module]",Bj=e=>{if(!Zp(e)&&!$j(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!Zp(t)},Fj=e=>{try{return new e.constructor}catch{return{}}},zs=()=>({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}),ef=(e,t=!1)=>{let r=(t?e.shadowCalls:e.calls).filter(o=>o.retain);if(!r.length)return;let n=new Map(Array.from(e.callRefsByResult.entries()).filter(([,o])=>o.retain));return{cursor:r.length,calls:r,callRefsByResult:n}},Uj=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=()=>{try{this.state=ee.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}},this.updateParentWindowState=()=>{try{ee.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},this.loadParentWindowState();let e=({storyId:s,renderPhase:c,isPlaying:u=!0,isDebugging:d=!1})=>{let p=this.getState(s);this.setState(s,{...zs(),...ef(p,d),renderPhase:c||p.renderPhase,shadowCalls:d?p.shadowCalls:[],chainedCallIds:d?p.chainedCallIds:new Set,playUntil:d?p.playUntil:void 0,isPlaying:u,isDebugging:d}),this.sync(s)},t=s=>({storyId:c,playUntil:u})=>{this.getState(c).isDebugging||this.setState(c,({calls:p})=>({calls:[],shadowCalls:p.map(f=>({...f,status:"waiting"})),isDebugging:!0}));let d=this.getLog(c);this.setState(c,({shadowCalls:p})=>{if(u||!d.length)return{playUntil:u};let f=p.findIndex(h=>h.id===d[0].callId);return{playUntil:p.slice(0,f).filter(h=>h.interceptable&&!h.ancestors?.length).slice(-1)[0]?.id}}),s.emit(oa,{storyId:c,isDebugging:!0})},r=s=>({storyId:c})=>{let u=this.getLog(c).filter(p=>!p.ancestors?.length),d=u.reduceRight((p,f,h)=>p>=0||f.status==="waiting"?p:h,-1);t(s)({storyId:c,playUntil:u[d-1]?.callId})},n=s=>({storyId:c,callId:u})=>{let{calls:d,shadowCalls:p,resolvers:f}=this.getState(c),h=d.find(({id:g})=>g===u),y=p.find(({id:g})=>g===u);if(!h&&y&&Object.values(f).length>0){let g=this.getLog(c).find(E=>E.status==="waiting")?.callId;y.id!==g&&this.setState(c,{playUntil:y.id}),Object.values(f).forEach(E=>E())}else t(s)({storyId:c,playUntil:u})},o=s=>({storyId:c})=>{let{resolvers:u}=this.getState(c);if(Object.values(u).length>0)Object.values(u).forEach(d=>d());else{let d=this.getLog(c).find(p=>p.status==="waiting")?.callId;d?t(s)({storyId:c,playUntil:d}):i({storyId:c})}},i=({storyId:s})=>{this.setState(s,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(s).resolvers).forEach(c=>c())},a=({storyId:s,newPhase:c})=>{let{isDebugging:u}=this.getState(s);if(c==="preparing"&&u)return e({storyId:s,renderPhase:c,isDebugging:u});if(c==="playing")return e({storyId:s,renderPhase:c,isDebugging:u});c==="played"?this.setState(s,{renderPhase:c,isLocked:!1,isPlaying:!1,isDebugging:!1}):c==="errored"?this.setState(s,{renderPhase:c,isLocked:!1,isPlaying:!1}):c==="aborted"?this.setState(s,{renderPhase:c,isLocked:!0,isPlaying:!1}):this.setState(s,{renderPhase:c}),this.sync(s)};Gs&&Gs.ready().then(()=>{this.channel=Gs.getChannel(),this.channel.on(oa,e),this.channel.on(Zr,a),this.channel.on(Hu,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(Yt.START,t(this.channel)),this.channel.on(Yt.BACK,r(this.channel)),this.channel.on(Yt.GOTO,n(this.channel)),this.channel.on(Yt.NEXT,o(this.channel)),this.channel.on(Yt.END,i)})}getState(e){return this.state[e]||zs()}setState(e,t){if(e){let r=this.getState(e),n=typeof t=="function"?t(r):t;this.state={...this.state,[e]:{...r,...n}},this.updateParentWindowState()}}cleanup(){this.state=Object.entries(this.state).reduce((t,[r,n])=>{let o=ef(n);return o&&(t[r]=Object.assign(zs(),o)),t},{});let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(Yt.SYNC,e),this.updateParentWindowState()}getLog(e){let{calls:t,shadowCalls:r}=this.getState(e),n=[...r];t.forEach((i,a)=>{n[a]=i});let o=new Set;return n.reduceRight((i,a)=>(a.args.forEach(s=>{s?.__callId__&&o.add(s.__callId__)}),a.path.forEach(s=>{s.__callId__&&o.add(s.__callId__)}),(a.interceptable||a.exception)&&!o.has(a.id)&&(i.unshift({callId:a.id,status:a.status,ancestors:a.ancestors}),o.add(a.id)),i),[])}instrument(e,t,r=0){if(!Bj(e))return e;let{mutate:n=!1,path:o=[]}=t,i=t.getKeys?t.getKeys(e,r):Object.keys(e);return r+=1,i.reduce((a,s)=>{let c=Jj(e,s);if(typeof c?.get=="function"){if(c.configurable){let d=()=>c?.get?.bind(e)?.();Object.defineProperty(a,s,{get:()=>this.instrument(d(),{...t,path:o.concat(s)},r)})}return a}let u=e[s];return typeof u!="function"?(a[s]=this.instrument(u,{...t,path:o.concat(s)},r),a):"__originalFn__"in u&&typeof u.__originalFn__=="function"?(a[s]=u,a):(a[s]=(...d)=>this.track(s,u,e,d,t),a[s].__originalFn__=u,Object.defineProperty(a[s],"name",{value:s,writable:!1}),Object.keys(u).length>0&&Object.assign(a[s],this.instrument({...u},{...t,path:o.concat(s)},r)),a)},n?e:Fj(e))}track(e,t,r,n,o){let i=n?.[0]?.__storyId__||ee.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:a,ancestors:s}=this.getState(i);this.setState(i,{cursor:a+1});let c=`${s.slice(-1)[0]||i} [${a}] ${e}`,{path:u=[],intercept:d=!1,retain:p=!1}=o,f=typeof d=="function"?d(e,u):d,h={id:c,cursor:a,storyId:i,ancestors:s,path:u,method:e,args:n,interceptable:f,retain:p},y=(f&&!s.length?this.intercept:this.invoke).call(this,t,r,h,o);return this.instrument(y,{...o,mutate:!0,path:[{__callId__:h.id}]})}intercept(e,t,r,n){let{chainedCallIds:o,isDebugging:i,playUntil:a}=this.getState(r.storyId),s=o.has(r.id);return!i||s||a?(a===r.id&&this.setState(r.storyId,{playUntil:void 0}),this.invoke(e,t,r,n)):new Promise(c=>{this.setState(r.storyId,({resolvers:u})=>({isLocked:!1,resolvers:{...u,[r.id]:c}}))}).then(()=>(this.setState(r.storyId,c=>{let{[r.id]:u,...d}=c.resolvers;return{isLocked:!0,resolvers:d}}),this.invoke(e,t,r,n)))}invoke(e,t,r,n){let{callRefsByResult:o,renderPhase:i}=this.getState(r.storyId),a=25,s=(d,p,f)=>{if(f.includes(d))return"[Circular]";if(f=[...f,d],p>a)return"...";if(o.has(d))return o.get(d);if(d instanceof Array)return d.map(h=>s(h,++p,f));if(d instanceof Date)return{__date__:{value:d.toISOString()}};if(d instanceof Error){let{name:h,message:y,stack:g}=d;return{__error__:{name:h,message:y,stack:g}}}if(d instanceof RegExp){let{flags:h,source:y}=d;return{__regexp__:{flags:h,source:y}}}if(d instanceof ee.window?.HTMLElement){let{prefix:h,localName:y,id:g,classList:E,innerText:b}=d,w=Array.from(E);return{__element__:{prefix:h,localName:y,id:g,classNames:w,innerText:b}}}return typeof d=="function"?{__function__:{name:"getMockName"in d?d.getMockName():d.name}}:typeof d=="symbol"?{__symbol__:{description:d.description}}:typeof d=="object"&&d?.constructor?.name&&d?.constructor?.name!=="Object"?{__class__:{name:d.constructor.name}}:Object.prototype.toString.call(d)==="[object Object]"?Object.fromEntries(Object.entries(d).map(([h,y])=>[h,s(y,++p,f)])):d},c={...r,args:r.args.map(d=>s(d,0,[]))};r.path.forEach(d=>{d?.__callId__&&this.setState(r.storyId,({chainedCallIds:p})=>({chainedCallIds:new Set(Array.from(p).concat(d.__callId__))}))});let u=d=>{if(d instanceof Error){let{name:p,message:f,stack:h,callId:y=r.id}=d,{showDiff:g=void 0,diff:E=void 0,actual:b=void 0,expected:w=void 0}=d.name==="AssertionError"?Ec(d):d,P={name:p,message:f,stack:h,callId:y,showDiff:g,diff:E,actual:b,expected:w};if(this.update({...c,status:"error",exception:P}),this.setState(r.storyId,x=>({callRefsByResult:new Map([...Array.from(x.callRefsByResult.entries()),[d,{__callId__:r.id,retain:r.retain}]])})),r.ancestors?.length)throw Object.prototype.hasOwnProperty.call(d,"callId")||Object.defineProperty(d,"callId",{value:r.id}),d}throw d};try{if(i==="played"&&!r.retain)throw Dj;let d=(n.getArgs?n.getArgs(r,this.getState(r.storyId)):r.args).map(f=>typeof f!="function"||Vj(f)||Object.keys(f).length?f:(...h)=>{let{cursor:y,ancestors:g}=this.getState(r.storyId);this.setState(r.storyId,{cursor:0,ancestors:[...g,r.id]});let E=()=>this.setState(r.storyId,{cursor:y,ancestors:g}),b=!1;try{let w=f(...h);return w instanceof Promise?(b=!0,w.finally(E)):w}finally{b||E()}}),p=e.apply(t,d);return p&&["object","function","symbol"].includes(typeof p)&&this.setState(r.storyId,f=>({callRefsByResult:new Map([...Array.from(f.callRefsByResult.entries()),[p,{__callId__:r.id,retain:r.retain}]])})),this.update({...c,status:p instanceof Promise?"active":"done"}),p instanceof Promise?p.then(f=>(this.update({...c,status:"done"}),f),u):p}catch(d){return u(d)}}update(e){this.channel?.emit(Yt.CALL,e),this.setState(e.storyId,({calls:t})=>{let r=t.concat(e).reduce((n,o)=>Object.assign(n,{[o.id]:o}),{});return{calls:Object.values(r).sort((n,o)=>n.id.localeCompare(o.id,void 0,{numeric:!0}))}}),this.sync(e.storyId)}sync(e){let t=()=>{let{isLocked:r,isPlaying:n}=this.getState(e),o=this.getLog(e),i=o.filter(({ancestors:u})=>!u.length).find(u=>u.status==="waiting")?.callId,a=o.some(u=>u.status==="active");if(this.detached||r||a||o.length===0){let u={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:o};this.channel?.emit(Yt.SYNC,u);return}let s=o.some(u=>u.status==="done"||u.status==="error"),c={controlStates:{detached:this.detached,start:s,back:s,goto:!0,next:n,end:n},logItems:o,pausedAt:i};this.channel?.emit(Yt.SYNC,c)};this.setState(e,({syncTimeout:r})=>(clearTimeout(r),{syncTimeout:setTimeout(t,0)}))}};function pi(e,t={}){try{let r=!1,n=!1;return ee.window?.location?.search?.includes("instrument=true")?r=!0:ee.window?.location?.search?.includes("instrument=false")&&(n=!0),ee.window?.parent===ee.window&&!r||n?e:(ee.window&&!ee.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(ee.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new Uj),(ee.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(r){return Ue.warn(r),e}}function Jj(e,t){let r=e;for(;r!=null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Vj(e){if(typeof e!="function")return!1;let t=Object.getOwnPropertyDescriptor(e,"prototype");return t?!t.writable:!1}var pb=Object.defineProperty,V=(e,t)=>pb(e,"name",{value:t,configurable:!0}),wc=(e,t)=>{for(var r in t)pb(e,r,{get:t[r],enumerable:!0})},Vt={};wc(Vt,{addChainableMethod:()=>jc,addLengthGuard:()=>mi,addMethod:()=>Cc,addProperty:()=>xc,checkError:()=>mt,compareByInspect:()=>da,eql:()=>$b,expectTypes:()=>vb,flag:()=>me,getActual:()=>es,getMessage:()=>Sc,getName:()=>rs,getOperator:()=>Lc,getOwnEnumerableProperties:()=>kc,getOwnEnumerablePropertySymbols:()=>Mc,getPathInfo:()=>Pc,hasProperty:()=>ts,inspect:()=>Te,isNaN:()=>pa,isNumeric:()=>Xe,isProxyEnabled:()=>hi,isRegExp:()=>fa,objDisplay:()=>Kr,overwriteChainableMethod:()=>qc,overwriteMethod:()=>Ic,overwriteProperty:()=>Nc,proxify:()=>Gn,test:()=>_c,transferFlags:()=>Dt,type:()=>xe});var mt={};wc(mt,{compatibleConstructor:()=>mb,compatibleInstance:()=>hb,compatibleMessage:()=>yb,getConstructorName:()=>gb,getMessage:()=>bb});function Za(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}V(Za,"isErrorInstance");function fb(e){return Object.prototype.toString.call(e)==="[object RegExp]"}V(fb,"isRegExp");function hb(e,t){return Za(t)&&e===t}V(hb,"compatibleInstance");function mb(e,t){return Za(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t=="object"||typeof t=="function")&&t.prototype?e.constructor===t||e instanceof t:!1}V(mb,"compatibleConstructor");function yb(e,t){let r=typeof e=="string"?e:e.message;return fb(t)?t.test(r):typeof t=="string"?r.indexOf(t)!==-1:!1}V(yb,"compatibleMessage");function gb(e){let t=e;return Za(e)?t=e.constructor.name:typeof e=="function"&&(t=e.name,t===""&&(t=new e().name||t)),t}V(gb,"getConstructorName");function bb(e){let t="";return e&&e.message?t=e.message:typeof e=="string"&&(t=e),t}V(bb,"getMessage");function me(e,t,r){let n=e.__flags||(e.__flags=Object.create(null));if(arguments.length===3)n[t]=r;else return n[t]}V(me,"flag");function _c(e,t){let r=me(e,"negate"),n=t[0];return r?!n:n}V(_c,"test");function xe(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)}V(xe,"type");var Hj="captureStackTrace"in Error,Ci,Se=(Ci=class extends Error{message;get name(){return"AssertionError"}get ok(){return!1}constructor(e="Unspecified AssertionError",t,r){super(e),this.message=e,Hj&&Error.captureStackTrace(this,r||Ci);for(let n in t)n in this||(this[n]=t[n])}toJSON(e){return{...this,name:this.name,message:this.message,ok:!1,stack:e!==!1?this.stack:void 0}}},V(Ci,"AssertionError"),Ci);function vb(e,t){let r=me(e,"message"),n=me(e,"ssfi");r=r?r+": ":"",e=me(e,"object"),t=t.map(function(a){return a.toLowerCase()}),t.sort();let o=t.map(function(a,s){let c=~["a","e","i","o","u"].indexOf(a.charAt(0))?"an":"a";return(t.length>1&&s===t.length-1?"or ":"")+c+" "+a}).join(", "),i=xe(e).toLowerCase();if(!t.some(function(a){return i===a}))throw new Se(r+"object tested must be "+o+", but "+i+" given",void 0,n)}V(vb,"expectTypes");function es(e,t){return t.length>4?t[4]:e._obj}V(es,"getActual");var tf={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"]},Gj={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Pn="…";function Eb(e,t){let r=tf[Gj[t]]||tf[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}V(Eb,"colorise");function wb({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:i=1/0,breakLength:a=1/0,seen:s=[],truncate:c=1/0,stylize:u=String}={},d){let p={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(a),truncate:Number(c),seen:s,inspect:d,stylize:u};return p.colors&&(p.stylize=Eb),p}V(wb,"normaliseOptions");function _b(e){return e>="\uD800"&&e<="\uDBFF"}V(_b,"isHighSurrogate");function ur(e,t,r=Pn){e=String(e);let n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let i=t-n;return i>0&&_b(e[i-1])&&(i=i-1),`${e.slice(0,i)}${r}`}return e}V(ur,"truncate");function Pt(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let i=t.truncate,a="",s="",c="";for(let u=0;u<o;u+=1){let d=u+1===e.length,p=u+2===e.length;c=`${Pn}(${e.length-u})`;let f=e[u];t.truncate=i-a.length-(d?0:n.length);let h=s||r(f,t)+(d?"":n),y=a.length+h.length,g=y+c.length;if(d&&y>i&&a.length+c.length<=i||!d&&!p&&g>i||(s=d?"":r(e[u+1],t)+(p?"":n),!d&&p&&g>i&&y+s.length>i))break;if(a+=h,!d&&!p&&y+s.length>=i){c=`${Pn}(${e.length-u-1})`;break}c=""}return`${a}${c}`}V(Pt,"inspectList");function Tb(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}V(Tb,"quoteComplexKey");function xn([e,t],r){return r.truncate-=2,typeof e=="string"?e=Tb(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}V(xn,"inspectProperty");function Sb(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=Pt(e,t);t.truncate-=n.length;let o="";return r.length&&(o=Pt(r.map(i=>[i,e[i]]),t,xn)),`[ ${n}${o?`, ${o}`:""} ]`}V(Sb,"inspectArray");var zj=V(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function Ut(e,t){let r=zj(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let o="";for(let a=0;a<e.length;a++){let s=`${t.stylize(ur(e[a],t.truncate),"number")}${a===e.length-1?"":", "}`;if(t.truncate-=s.length,e[a]!==e.length&&t.truncate<=3){o+=`${Pn}(${e.length-e[a]+1})`;break}o+=s}let i="";return n.length&&(i=Pt(n.map(a=>[a,e[a]]),t,xn)),`${r}[ ${o}${i?`, ${i}`:""} ]`}V(Ut,"inspectTypedArray");function Ab(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),o=n[0];return t.stylize(`${o}T${ur(n[1],t.truncate-o.length-1)}`,"date")}V(Ab,"inspectDate");function Nl(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${ur(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}V(Nl,"inspectFunction");function Rb([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}V(Rb,"inspectMapEntry");function Ob(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}V(Ob,"mapToEntries");function Pb(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Pt(Ob(e),t,Rb)} }`)}V(Pb,"inspectMap");var Wj=Number.isNaN||(e=>e!==e);function Il(e,t){return Wj(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(ur(String(e),t.truncate),"number")}V(Il,"inspectNumber");function jl(e,t){let r=ur(e.toString(),t.truncate-1);return r!==Pn&&(r+="n"),t.stylize(r,"bigint")}V(jl,"inspectBigInt");function xb(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${ur(o,n)}/${r}`,"regexp")}V(xb,"inspectRegExp");function Cb(e){let t=[];return e.forEach(r=>{t.push(r)}),t}V(Cb,"arrayFromSet");function Nb(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Pt(Cb(e),t)} }`)}V(Nb,"inspectSet");var rf=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),Kj={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},Yj=16;function Ib(e){return Kj[e]||`\\u${`0000${e.charCodeAt(0).toString(Yj)}`.slice(-4)}`}V(Ib,"escape");function ql(e,t){return rf.test(e)&&(e=e.replace(rf,Ib)),t.stylize(`'${ur(e,t.truncate-2)}'`,"string")}V(ql,"inspectString");function Ml(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}V(Ml,"inspectSymbol");var Xj=V(()=>"Promise{…}","getPromiseValue"),Qj=Xj;function xo(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=Pt(r.map(s=>[s,e[s]]),t,xn),i=Pt(n.map(s=>[s,e[s]]),t,xn);t.seen.pop();let a="";return o&&i&&(a=", "),`{ ${o}${a}${i} }`}V(xo,"inspectObject");var Ws=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function jb(e,t){let r="";return Ws&&Ws in e&&(r=e[Ws]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${xo(e,t)}`}V(jb,"inspectClass");function qb(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Pt(e,t)} ]`)}V(qb,"inspectArguments");var Zj=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Mb(e,t){let r=Object.getOwnPropertyNames(e).filter(a=>Zj.indexOf(a)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=ur(e.message,t.truncate):r.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let i=Pt(r.map(a=>[a,e[a]]),t,xn);return`${n}${o}${i?` { ${i} }`:""}`}V(Mb,"inspectObject");function kb([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}V(kb,"inspectAttribute");function la(e,t){return Pt(e,t,Lb,`
213
+ `)}V(la,"inspectNodeCollection");function Lb(e,t){switch(e.nodeType){case 1:return Tc(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}V(Lb,"inspectNode");function Tc(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),i=t.stylize(">","special"),a=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let s="";r.length>0&&(s+=" ",s+=Pt(r.map(d=>[d,e.getAttribute(d)]),t,kb," ")),t.truncate-=s.length;let c=t.truncate,u=la(e.children,t);return u&&u.length>c&&(u=`${Pn}(${e.children.length})`),`${o}${s}${i}${u}${a}`}V(Tc,"inspectHTML");var eq=typeof Symbol=="function"&&typeof Symbol.for=="function",Ks=eq?Symbol.for("chai/inspect"):"@@chai/inspect",Ys=Symbol.for("nodejs.util.inspect.custom"),nf=new WeakMap,of={},af={undefined:V((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:V((e,t)=>t.stylize("null","null"),"null"),boolean:V((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:V((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:Il,Number:Il,bigint:jl,BigInt:jl,string:ql,String:ql,function:Nl,Function:Nl,symbol:Ml,Symbol:Ml,Array:Sb,Date:Ab,Map:Pb,Set:Nb,RegExp:xb,Promise:Qj,WeakSet:V((e,t)=>t.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:V((e,t)=>t.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:qb,Int8Array:Ut,Uint8Array:Ut,Uint8ClampedArray:Ut,Int16Array:Ut,Uint16Array:Ut,Int32Array:Ut,Uint32Array:Ut,Float32Array:Ut,Float64Array:Ut,Generator:V(()=>"","Generator"),DataView:V(()=>"","DataView"),ArrayBuffer:V(()=>"","ArrayBuffer"),Error:Mb,HTMLCollection:la,NodeList:la},tq=V((e,t,r)=>Ks in e&&typeof e[Ks]=="function"?e[Ks](t):Ys in e&&typeof e[Ys]=="function"?e[Ys](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&nf.has(e.constructor)?nf.get(e.constructor)(e,t):of[r]?of[r](e,t):"","inspectCustom"),rq=Object.prototype.toString;function ua(e,t={}){let r=wb(t,ua),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=rq.call(e).slice(8,-1)),o in af)return af[o](e,r);if(n&&e){let a=tq(e,r,o);if(a)return typeof a=="string"?a:ua(a,r)}let i=e?Object.getPrototypeOf(e):!1;return i===Object.prototype||i===null?xo(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Tc(e,r):"constructor"in e?e.constructor!==Object?jb(e,r):xo(e,r):e===Object(e)?xo(e,r):r.stylize(String(e),o)}V(ua,"inspect");var dt={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function Te(e,t,r,n){let o={colors:n,depth:typeof r>"u"?2:r,showHidden:t,truncate:dt.truncateThreshold?dt.truncateThreshold:1/0};return ua(e,o)}V(Te,"inspect");function Kr(e){let t=Te(e),r=Object.prototype.toString.call(e);if(dt.truncateThreshold&&t.length>=dt.truncateThreshold){if(r==="[object Function]")return!e.name||e.name===""?"[Function]":"[Function: "+e.name+"]";if(r==="[object Array]")return"[ Array("+e.length+") ]";if(r==="[object Object]"){let n=Object.keys(e);return"{ Object ("+(n.length>2?n.splice(0,2).join(", ")+", ...":n.join(", "))+") }"}else return t}else return t}V(Kr,"objDisplay");function Sc(e,t){let r=me(e,"negate"),n=me(e,"object"),o=t[3],i=es(e,t),a=r?t[2]:t[1],s=me(e,"message");return typeof a=="function"&&(a=a()),a=a||"",a=a.replace(/#\{this\}/g,function(){return Kr(n)}).replace(/#\{act\}/g,function(){return Kr(i)}).replace(/#\{exp\}/g,function(){return Kr(o)}),s?s+": "+a:a}V(Sc,"getMessage");function Dt(e,t,r){let n=e.__flags||(e.__flags=Object.create(null));t.__flags||(t.__flags=Object.create(null)),r=arguments.length===3?r:!0;for(let o in n)(r||o!=="object"&&o!=="ssfi"&&o!=="lockSsfi"&&o!="message")&&(t.__flags[o]=n[o])}V(Dt,"transferFlags");function kl(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)}V(kl,"type");function Ac(){this._key="chai/deep-eql__"+Math.random()+Date.now()}V(Ac,"FakeMap");Ac.prototype={get:V(function(e){return e[this._key]},"get"),set:V(function(e,t){Object.isExtensible(e)&&Object.defineProperty(e,this._key,{value:t,configurable:!0})},"set")};var Db=typeof WeakMap=="function"?WeakMap:Ac;function Ll(e,t,r){if(!r||tn(e)||tn(t))return null;var n=r.get(e);if(n){var o=n.get(t);if(typeof o=="boolean")return o}return null}V(Ll,"memoizeCompare");function To(e,t,r,n){if(!(!r||tn(e)||tn(t))){var o=r.get(e);o?o.set(t,n):(o=new Db,o.set(t,n),r.set(e,o))}}V(To,"memoizeSet");var $b=fi;function fi(e,t,r){if(r&&r.comparator)return Dl(e,t,r);var n=Rc(e,t);return n!==null?n:Dl(e,t,r)}V(fi,"deepEqual");function Rc(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t?!0:tn(e)||tn(t)?!1:null}V(Rc,"simpleEqual");function Dl(e,t,r){r=r||{},r.memoize=r.memoize===!1?!1:r.memoize||new Db;var n=r&&r.comparator,o=Ll(e,t,r.memoize);if(o!==null)return o;var i=Ll(t,e,r.memoize);if(i!==null)return i;if(n){var a=n(e,t);if(a===!1||a===!0)return To(e,t,r.memoize,a),a;var s=Rc(e,t);if(s!==null)return s}var c=kl(e);if(c!==kl(t))return To(e,t,r.memoize,!1),!1;To(e,t,r.memoize,!0);var u=Bb(e,t,c,r);return To(e,t,r.memoize,u),u}V(Dl,"extensiveDeepEqual");function Bb(e,t,r,n){switch(r){case"String":case"Number":case"Boolean":case"Date":return fi(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return e===t;case"Error":return Oc(e,t,["name","message","code"],n);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return Rr(e,t,n);case"RegExp":return Fb(e,t);case"Generator":return Ub(e,t,n);case"DataView":return Rr(new Uint8Array(e.buffer),new Uint8Array(t.buffer),n);case"ArrayBuffer":return Rr(new Uint8Array(e),new Uint8Array(t),n);case"Set":return $l(e,t,n);case"Map":return $l(e,t,n);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return e.equals(t);case"Temporal.Duration":return e.total("nanoseconds")===t.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return e.toString()===t.toString();default:return Vb(e,t,n)}}V(Bb,"extensiveDeepEqualByType");function Fb(e,t){return e.toString()===t.toString()}V(Fb,"regexpEqual");function $l(e,t,r){try{if(e.size!==t.size)return!1;if(e.size===0)return!0}catch{return!1}var n=[],o=[];return e.forEach(V(function(i,a){n.push([i,a])},"gatherEntries")),t.forEach(V(function(i,a){o.push([i,a])},"gatherEntries")),Rr(n.sort(),o.sort(),r)}V($l,"entriesEqual");function Rr(e,t,r){var n=e.length;if(n!==t.length)return!1;if(n===0)return!0;for(var o=-1;++o<n;)if(fi(e[o],t[o],r)===!1)return!1;return!0}V(Rr,"iterableEqual");function Ub(e,t,r){return Rr(ca(e),ca(t),r)}V(Ub,"generatorEqual");function Jb(e){return typeof Symbol<"u"&&typeof e=="object"&&typeof Symbol.iterator<"u"&&typeof e[Symbol.iterator]=="function"}V(Jb,"hasIteratorFunction");function Bl(e){if(Jb(e))try{return ca(e[Symbol.iterator]())}catch{return[]}return[]}V(Bl,"getIteratorEntries");function ca(e){for(var t=e.next(),r=[t.value];t.done===!1;)t=e.next(),r.push(t.value);return r}V(ca,"getGeneratorEntries");function Fl(e){var t=[];for(var r in e)t.push(r);return t}V(Fl,"getEnumerableKeys");function Ul(e){for(var t=[],r=Object.getOwnPropertySymbols(e),n=0;n<r.length;n+=1){var o=r[n];Object.getOwnPropertyDescriptor(e,o).enumerable&&t.push(o)}return t}V(Ul,"getEnumerableSymbols");function Oc(e,t,r,n){var o=r.length;if(o===0)return!0;for(var i=0;i<o;i+=1)if(fi(e[r[i]],t[r[i]],n)===!1)return!1;return!0}V(Oc,"keysEqual");function Vb(e,t,r){var n=Fl(e),o=Fl(t),i=Ul(e),a=Ul(t);if(n=n.concat(i),o=o.concat(a),n.length&&n.length===o.length)return Rr(Jl(n).sort(),Jl(o).sort())===!1?!1:Oc(e,t,n,r);var s=Bl(e),c=Bl(t);return s.length&&s.length===c.length?(s.sort(),c.sort(),Rr(s,c,r)):n.length===0&&s.length===0&&o.length===0&&c.length===0}V(Vb,"objectEqual");function tn(e){return e===null||typeof e!="object"}V(tn,"isPrimitive");function Jl(e){return e.map(V(function(t){return typeof t=="symbol"?t.toString():t},"mapSymbol"))}V(Jl,"mapSymbols");function ts(e,t){return typeof e>"u"||e===null?!1:t in Object(e)}V(ts,"hasProperty");function Hb(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(t=>{if(t==="constructor"||t==="__proto__"||t==="prototype")return{};let r=/^\[(\d+)\]$/.exec(t),n=null;return r?n={i:parseFloat(r[1])}:n={p:t.replace(/\\([.[\]])/g,"$1")},n})}V(Hb,"parsePath");function Vl(e,t,r){let n=e,o=null;r=typeof r>"u"?t.length:r;for(let i=0;i<r;i++){let a=t[i];n&&(typeof a.p>"u"?n=n[a.i]:n=n[a.p],i===r-1&&(o=n))}return o}V(Vl,"internalGetPathValue");function Pc(e,t){let r=Hb(t),n=r[r.length-1],o={parent:r.length>1?Vl(e,r,r.length-1):e,name:n.p||n.i,value:Vl(e,r)};return o.exists=ts(o.parent,o.name),o}V(Pc,"getPathInfo");var Ni,q=(Ni=class{__flags={};constructor(e,t,r,n){return me(this,"ssfi",r||Ni),me(this,"lockSsfi",n),me(this,"object",e),me(this,"message",t),me(this,"eql",dt.deepEqual||$b),Gn(this)}static get includeStack(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),dt.includeStack}static set includeStack(e){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),dt.includeStack=e}static get showDiff(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),dt.showDiff}static set showDiff(e){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),dt.showDiff=e}static addProperty(e,t){xc(this.prototype,e,t)}static addMethod(e,t){Cc(this.prototype,e,t)}static addChainableMethod(e,t,r){jc(this.prototype,e,t,r)}static overwriteProperty(e,t){Nc(this.prototype,e,t)}static overwriteMethod(e,t){Ic(this.prototype,e,t)}static overwriteChainableMethod(e,t,r){qc(this.prototype,e,t,r)}assert(e,t,r,n,o,i){let a=_c(this,arguments);if(i!==!1&&(i=!0),n===void 0&&o===void 0&&(i=!1),dt.showDiff!==!0&&(i=!1),!a){t=Sc(this,arguments);let s={actual:es(this,arguments),expected:n,showDiff:i},c=Lc(this,arguments);throw c&&(s.operator=c),new Se(t,s,dt.includeStack?this.assert:me(this,"ssfi"))}}get _obj(){return me(this,"object")}set _obj(e){me(this,"object",e)}},V(Ni,"Assertion"),Ni);function hi(){return dt.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}V(hi,"isProxyEnabled");function xc(e,t,r){r=r===void 0?function(){}:r,Object.defineProperty(e,t,{get:V(function n(){!hi()&&!me(this,"lockSsfi")&&me(this,"ssfi",n);let o=r.call(this);if(o!==void 0)return o;let i=new q;return Dt(this,i),i},"propertyGetter"),configurable:!0})}V(xc,"addProperty");var nq=Object.getOwnPropertyDescriptor(function(){},"length");function mi(e,t,r){return nq.configurable&&Object.defineProperty(e,"length",{get:V(function(){throw Error(r?"Invalid Chai property: "+t+'.length. Due to a compatibility issue, "length" cannot directly follow "'+t+'". Use "'+t+'.lengthOf" instead.':"Invalid Chai property: "+t+'.length. See docs for proper usage of "'+t+'".')},"get")}),e}V(mi,"addLengthGuard");function Gb(e){let t=Object.getOwnPropertyNames(e);function r(o){t.indexOf(o)===-1&&t.push(o)}V(r,"addProperty");let n=Object.getPrototypeOf(e);for(;n!==null;)Object.getOwnPropertyNames(n).forEach(r),n=Object.getPrototypeOf(n);return t}V(Gb,"getProperties");var sf=["__flags","__methods","_obj","assert"];function Gn(e,t){return hi()?new Proxy(e,{get:V(function r(n,o){if(typeof o=="string"&&dt.proxyExcludedKeys.indexOf(o)===-1&&!Reflect.has(n,o)){if(t)throw Error("Invalid Chai property: "+t+"."+o+'. See docs for proper usage of "'+t+'".');let i=null,a=4;throw Gb(n).forEach(function(s){if(!Object.prototype.hasOwnProperty(s)&&sf.indexOf(s)===-1){let c=zb(o,s,a);c<a&&(i=s,a=c)}}),Error(i!==null?"Invalid Chai property: "+o+'. Did you mean "'+i+'"?':"Invalid Chai property: "+o)}return sf.indexOf(o)===-1&&!me(n,"lockSsfi")&&me(n,"ssfi",r),Reflect.get(n,o)},"proxyGetter")}):e}V(Gn,"proxify");function zb(e,t,r){if(Math.abs(e.length-t.length)>=r)return r;let n=[];for(let o=0;o<=e.length;o++)n[o]=Array(t.length+1).fill(0),n[o][0]=o;for(let o=0;o<t.length;o++)n[0][o]=o;for(let o=1;o<=e.length;o++){let i=e.charCodeAt(o-1);for(let a=1;a<=t.length;a++){if(Math.abs(o-a)>=r){n[o][a]=r;continue}n[o][a]=Math.min(n[o-1][a]+1,n[o][a-1]+1,n[o-1][a-1]+(i===t.charCodeAt(a-1)?0:1))}}return n[e.length][t.length]}V(zb,"stringDistanceCapped");function Cc(e,t,r){let n=V(function(){me(this,"lockSsfi")||me(this,"ssfi",n);let o=r.apply(this,arguments);if(o!==void 0)return o;let i=new q;return Dt(this,i),i},"methodWrapper");mi(n,t,!1),e[t]=Gn(n,t)}V(Cc,"addMethod");function Nc(e,t,r){let n=Object.getOwnPropertyDescriptor(e,t),o=V(function(){},"_super");n&&typeof n.get=="function"&&(o=n.get),Object.defineProperty(e,t,{get:V(function i(){!hi()&&!me(this,"lockSsfi")&&me(this,"ssfi",i);let a=me(this,"lockSsfi");me(this,"lockSsfi",!0);let s=r(o).call(this);if(me(this,"lockSsfi",a),s!==void 0)return s;let c=new q;return Dt(this,c),c},"overwritingPropertyGetter"),configurable:!0})}V(Nc,"overwriteProperty");function Ic(e,t,r){let n=e[t],o=V(function(){throw new Error(t+" is not a function")},"_super");n&&typeof n=="function"&&(o=n);let i=V(function(){me(this,"lockSsfi")||me(this,"ssfi",i);let a=me(this,"lockSsfi");me(this,"lockSsfi",!0);let s=r(o).apply(this,arguments);if(me(this,"lockSsfi",a),s!==void 0)return s;let c=new q;return Dt(this,c),c},"overwritingMethodWrapper");mi(i,t,!1),e[t]=Gn(i,t)}V(Ic,"overwriteMethod");var oq=typeof Object.setPrototypeOf=="function",lf=V(function(){},"testFn"),iq=Object.getOwnPropertyNames(lf).filter(function(e){let t=Object.getOwnPropertyDescriptor(lf,e);return typeof t!="object"?!0:!t.configurable}),aq=Function.prototype.call,sq=Function.prototype.apply;function jc(e,t,r,n){typeof n!="function"&&(n=V(function(){},"chainingBehavior"));let o={method:r,chainingBehavior:n};e.__methods||(e.__methods={}),e.__methods[t]=o,Object.defineProperty(e,t,{get:V(function(){o.chainingBehavior.call(this);let i=V(function(){me(this,"lockSsfi")||me(this,"ssfi",i);let a=o.method.apply(this,arguments);if(a!==void 0)return a;let s=new q;return Dt(this,s),s},"chainableMethodWrapper");if(mi(i,t,!0),oq){let a=Object.create(this);a.call=aq,a.apply=sq,Object.setPrototypeOf(i,a)}else Object.getOwnPropertyNames(e).forEach(function(a){if(iq.indexOf(a)!==-1)return;let s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(i,a,s)});return Dt(this,i),Gn(i)},"chainableMethodGetter"),configurable:!0})}V(jc,"addChainableMethod");function qc(e,t,r,n){let o=e.__methods[t],i=o.chainingBehavior;o.chainingBehavior=V(function(){let s=n(i).call(this);if(s!==void 0)return s;let c=new q;return Dt(this,c),c},"overwritingChainableMethodGetter");let a=o.method;o.method=V(function(){let s=r(a).apply(this,arguments);if(s!==void 0)return s;let c=new q;return Dt(this,c),c},"overwritingChainableMethodWrapper")}V(qc,"overwriteChainableMethod");function da(e,t){return Te(e)<Te(t)?-1:1}V(da,"compareByInspect");function Mc(e){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}V(Mc,"getOwnEnumerablePropertySymbols");function kc(e){return Object.keys(e).concat(Mc(e))}V(kc,"getOwnEnumerableProperties");var pa=Number.isNaN;function Wb(e){let t=xe(e);return["Array","Object","Function"].indexOf(t)!==-1}V(Wb,"isObjectType");function Lc(e,t){let r=me(e,"operator"),n=me(e,"negate"),o=t[3],i=n?t[2]:t[1];if(r)return r;if(typeof i=="function"&&(i=i()),i=i||"",!i||/\shave\s/.test(i))return;let a=Wb(o);return/\snot\s/.test(i)?a?"notDeepStrictEqual":"notStrictEqual":a?"deepStrictEqual":"strictEqual"}V(Lc,"getOperator");function rs(e){return e.name}V(rs,"getName");function fa(e){return Object.prototype.toString.call(e)==="[object RegExp]"}V(fa,"isRegExp");function Xe(e){return["Number","BigInt"].includes(xe(e))}V(Xe,"isNumeric");var{flag:B}=Vt;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(e){q.addProperty(e)});q.addProperty("not",function(){B(this,"negate",!0)});q.addProperty("deep",function(){B(this,"deep",!0)});q.addProperty("nested",function(){B(this,"nested",!0)});q.addProperty("own",function(){B(this,"own",!0)});q.addProperty("ordered",function(){B(this,"ordered",!0)});q.addProperty("any",function(){B(this,"any",!0),B(this,"all",!1)});q.addProperty("all",function(){B(this,"all",!0),B(this,"any",!1)});var uf={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function Dc(e,t){t&&B(this,"message",t),e=e.toLowerCase();let r=B(this,"object"),n=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ",o=xe(r).toLowerCase();uf.function.includes(e)?this.assert(uf[e].includes(o),"expected #{this} to be "+n+e,"expected #{this} not to be "+n+e):this.assert(e===o,"expected #{this} to be "+n+e,"expected #{this} not to be "+n+e)}V(Dc,"an");q.addChainableMethod("an",Dc);q.addChainableMethod("a",Dc);function Kb(e,t){return pa(e)&&pa(t)||e===t}V(Kb,"SameValueZero");function yi(){B(this,"contains",!0)}V(yi,"includeChainingBehavior");function gi(e,t){t&&B(this,"message",t);let r=B(this,"object"),n=xe(r).toLowerCase(),o=B(this,"message"),i=B(this,"negate"),a=B(this,"ssfi"),s=B(this,"deep"),c=s?"deep ":"",u=s?B(this,"eql"):Kb;o=o?o+": ":"";let d=!1;switch(n){case"string":d=r.indexOf(e)!==-1;break;case"weakset":if(s)throw new Se(o+"unable to use .deep.include with WeakSet",void 0,a);d=r.has(e);break;case"map":r.forEach(function(p){d=d||u(p,e)});break;case"set":s?r.forEach(function(p){d=d||u(p,e)}):d=r.has(e);break;case"array":s?d=r.some(function(p){return u(p,e)}):d=r.indexOf(e)!==-1;break;default:{if(e!==Object(e))throw new Se(o+"the given combination of arguments ("+n+" and "+xe(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 "+xe(e).toLowerCase(),void 0,a);let p=Object.keys(e),f=null,h=0;if(p.forEach(function(y){let g=new q(r);if(Dt(this,g,!0),B(g,"lockSsfi",!0),!i||p.length===1){g.property(y,e[y]);return}try{g.property(y,e[y])}catch(E){if(!mt.compatibleConstructor(E,Se))throw E;f===null&&(f=E),h++}},this),i&&p.length>1&&h===p.length)throw f;return}}this.assert(d,"expected #{this} to "+c+"include "+Te(e),"expected #{this} to not "+c+"include "+Te(e))}V(gi,"include");q.addChainableMethod("include",gi,yi);q.addChainableMethod("contain",gi,yi);q.addChainableMethod("contains",gi,yi);q.addChainableMethod("includes",gi,yi);q.addProperty("ok",function(){this.assert(B(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")});q.addProperty("true",function(){this.assert(B(this,"object")===!0,"expected #{this} to be true","expected #{this} to be false",!B(this,"negate"))});q.addProperty("numeric",function(){let e=B(this,"object");this.assert(["Number","BigInt"].includes(xe(e)),"expected #{this} to be numeric","expected #{this} to not be numeric",!B(this,"negate"))});q.addProperty("callable",function(){let e=B(this,"object"),t=B(this,"ssfi"),r=B(this,"message"),n=r?`${r}: `:"",o=B(this,"negate"),i=o?`${n}expected ${Te(e)} not to be a callable function`:`${n}expected ${Te(e)} to be a callable function`,a=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(xe(e));if(a&&o||!a&&!o)throw new Se(i,void 0,t)});q.addProperty("false",function(){this.assert(B(this,"object")===!1,"expected #{this} to be false","expected #{this} to be true",!!B(this,"negate"))});q.addProperty("null",function(){this.assert(B(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null")});q.addProperty("undefined",function(){this.assert(B(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined")});q.addProperty("NaN",function(){this.assert(pa(B(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")});function $c(){let e=B(this,"object");this.assert(e!=null,"expected #{this} to exist","expected #{this} to not exist")}V($c,"assertExist");q.addProperty("exist",$c);q.addProperty("exists",$c);q.addProperty("empty",function(){let e=B(this,"object"),t=B(this,"ssfi"),r=B(this,"message"),n;switch(r=r?r+": ":"",xe(e).toLowerCase()){case"array":case"string":n=e.length;break;case"map":case"set":n=e.size;break;case"weakmap":case"weakset":throw new Se(r+".empty was passed a weak collection",void 0,t);case"function":{let o=r+".empty was passed a function "+rs(e);throw new Se(o.trim(),void 0,t)}default:if(e!==Object(e))throw new Se(r+".empty was passed non-string primitive "+Te(e),void 0,t);n=Object.keys(e).length}this.assert(n===0,"expected #{this} to be empty","expected #{this} not to be empty")});function Bc(){let e=B(this,"object"),t=xe(e);this.assert(t==="Arguments","expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments")}V(Bc,"checkArguments");q.addProperty("arguments",Bc);q.addProperty("Arguments",Bc);function ns(e,t){t&&B(this,"message",t);let r=B(this,"object");if(B(this,"deep")){let n=B(this,"lockSsfi");B(this,"lockSsfi",!0),this.eql(e),B(this,"lockSsfi",n)}else this.assert(e===r,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0)}V(ns,"assertEqual");q.addMethod("equal",ns);q.addMethod("equals",ns);q.addMethod("eq",ns);function Fc(e,t){t&&B(this,"message",t);let r=B(this,"eql");this.assert(r(e,B(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0)}V(Fc,"assertEql");q.addMethod("eql",Fc);q.addMethod("eqls",Fc);function os(e,t){t&&B(this,"message",t);let r=B(this,"object"),n=B(this,"doLength"),o=B(this,"message"),i=o?o+": ":"",a=B(this,"ssfi"),s=xe(r).toLowerCase(),c=xe(e).toLowerCase();if(n&&s!=="map"&&s!=="set"&&new q(r,o,a,!0).to.have.property("length"),!n&&s==="date"&&c!=="date")throw new Se(i+"the argument to above must be a date",void 0,a);if(!Xe(e)&&(n||Xe(r)))throw new Se(i+"the argument to above must be a number",void 0,a);if(!n&&s!=="date"&&!Xe(r)){let u=s==="string"?"'"+r+"'":r;throw new Se(i+"expected "+u+" to be a number or a date",void 0,a)}if(n){let u="length",d;s==="map"||s==="set"?(u="size",d=r.size):d=r.length,this.assert(d>e,"expected #{this} to have a "+u+" above #{exp} but got #{act}","expected #{this} to not have a "+u+" above #{exp}",e,d)}else this.assert(r>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e)}V(os,"assertAbove");q.addMethod("above",os);q.addMethod("gt",os);q.addMethod("greaterThan",os);function is(e,t){t&&B(this,"message",t);let r=B(this,"object"),n=B(this,"doLength"),o=B(this,"message"),i=o?o+": ":"",a=B(this,"ssfi"),s=xe(r).toLowerCase(),c=xe(e).toLowerCase(),u,d=!0;if(n&&s!=="map"&&s!=="set"&&new q(r,o,a,!0).to.have.property("length"),!n&&s==="date"&&c!=="date")u=i+"the argument to least must be a date";else if(!Xe(e)&&(n||Xe(r)))u=i+"the argument to least must be a number";else if(!n&&s!=="date"&&!Xe(r)){let p=s==="string"?"'"+r+"'":r;u=i+"expected "+p+" to be a number or a date"}else d=!1;if(d)throw new Se(u,void 0,a);if(n){let p="length",f;s==="map"||s==="set"?(p="size",f=r.size):f=r.length,this.assert(f>=e,"expected #{this} to have a "+p+" at least #{exp} but got #{act}","expected #{this} to have a "+p+" below #{exp}",e,f)}else this.assert(r>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e)}V(is,"assertLeast");q.addMethod("least",is);q.addMethod("gte",is);q.addMethod("greaterThanOrEqual",is);function as(e,t){t&&B(this,"message",t);let r=B(this,"object"),n=B(this,"doLength"),o=B(this,"message"),i=o?o+": ":"",a=B(this,"ssfi"),s=xe(r).toLowerCase(),c=xe(e).toLowerCase(),u,d=!0;if(n&&s!=="map"&&s!=="set"&&new q(r,o,a,!0).to.have.property("length"),!n&&s==="date"&&c!=="date")u=i+"the argument to below must be a date";else if(!Xe(e)&&(n||Xe(r)))u=i+"the argument to below must be a number";else if(!n&&s!=="date"&&!Xe(r)){let p=s==="string"?"'"+r+"'":r;u=i+"expected "+p+" to be a number or a date"}else d=!1;if(d)throw new Se(u,void 0,a);if(n){let p="length",f;s==="map"||s==="set"?(p="size",f=r.size):f=r.length,this.assert(f<e,"expected #{this} to have a "+p+" below #{exp} but got #{act}","expected #{this} to not have a "+p+" below #{exp}",e,f)}else this.assert(r<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e)}V(as,"assertBelow");q.addMethod("below",as);q.addMethod("lt",as);q.addMethod("lessThan",as);function ss(e,t){t&&B(this,"message",t);let r=B(this,"object"),n=B(this,"doLength"),o=B(this,"message"),i=o?o+": ":"",a=B(this,"ssfi"),s=xe(r).toLowerCase(),c=xe(e).toLowerCase(),u,d=!0;if(n&&s!=="map"&&s!=="set"&&new q(r,o,a,!0).to.have.property("length"),!n&&s==="date"&&c!=="date")u=i+"the argument to most must be a date";else if(!Xe(e)&&(n||Xe(r)))u=i+"the argument to most must be a number";else if(!n&&s!=="date"&&!Xe(r)){let p=s==="string"?"'"+r+"'":r;u=i+"expected "+p+" to be a number or a date"}else d=!1;if(d)throw new Se(u,void 0,a);if(n){let p="length",f;s==="map"||s==="set"?(p="size",f=r.size):f=r.length,this.assert(f<=e,"expected #{this} to have a "+p+" at most #{exp} but got #{act}","expected #{this} to have a "+p+" above #{exp}",e,f)}else this.assert(r<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e)}V(ss,"assertMost");q.addMethod("most",ss);q.addMethod("lte",ss);q.addMethod("lessThanOrEqual",ss);q.addMethod("within",function(e,t,r){r&&B(this,"message",r);let n=B(this,"object"),o=B(this,"doLength"),i=B(this,"message"),a=i?i+": ":"",s=B(this,"ssfi"),c=xe(n).toLowerCase(),u=xe(e).toLowerCase(),d=xe(t).toLowerCase(),p,f=!0,h=u==="date"&&d==="date"?e.toISOString()+".."+t.toISOString():e+".."+t;if(o&&c!=="map"&&c!=="set"&&new q(n,i,s,!0).to.have.property("length"),!o&&c==="date"&&(u!=="date"||d!=="date"))p=a+"the arguments to within must be dates";else if((!Xe(e)||!Xe(t))&&(o||Xe(n)))p=a+"the arguments to within must be numbers";else if(!o&&c!=="date"&&!Xe(n)){let y=c==="string"?"'"+n+"'":n;p=a+"expected "+y+" to be a number or a date"}else f=!1;if(f)throw new Se(p,void 0,s);if(o){let y="length",g;c==="map"||c==="set"?(y="size",g=n.size):g=n.length,this.assert(g>=e&&g<=t,"expected #{this} to have a "+y+" within "+h,"expected #{this} to not have a "+y+" within "+h)}else this.assert(n>=e&&n<=t,"expected #{this} to be within "+h,"expected #{this} to not be within "+h)});function Uc(e,t){t&&B(this,"message",t);let r=B(this,"object"),n=B(this,"ssfi"),o=B(this,"message"),i;try{i=r instanceof e}catch(s){throw s instanceof TypeError?(o=o?o+": ":"",new Se(o+"The instanceof assertion needs a constructor but "+xe(e)+" was given.",void 0,n)):s}let a=rs(e);a==null&&(a="an unnamed constructor"),this.assert(i,"expected #{this} to be an instance of "+a,"expected #{this} to not be an instance of "+a)}V(Uc,"assertInstanceOf");q.addMethod("instanceof",Uc);q.addMethod("instanceOf",Uc);function Jc(e,t,r){r&&B(this,"message",r);let n=B(this,"nested"),o=B(this,"own"),i=B(this,"message"),a=B(this,"object"),s=B(this,"ssfi"),c=typeof e;if(i=i?i+": ":"",n){if(c!=="string")throw new Se(i+"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 Se(i+"the argument to property must be a string, number, or symbol",void 0,s);if(n&&o)throw new Se(i+'The "nested" and "own" flags cannot be combined.',void 0,s);if(a==null)throw new Se(i+"Target cannot be null or undefined.",void 0,s);let u=B(this,"deep"),d=B(this,"negate"),p=n?Pc(a,e):null,f=n?p.value:a[e],h=u?B(this,"eql"):(E,b)=>E===b,y="";u&&(y+="deep "),o&&(y+="own "),n&&(y+="nested "),y+="property ";let g;o?g=Object.prototype.hasOwnProperty.call(a,e):n?g=p.exists:g=ts(a,e),(!d||arguments.length===1)&&this.assert(g,"expected #{this} to have "+y+Te(e),"expected #{this} to not have "+y+Te(e)),arguments.length>1&&this.assert(g&&h(t,f),"expected #{this} to have "+y+Te(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+y+Te(e)+" of #{act}",t,f),B(this,"object",f)}V(Jc,"assertProperty");q.addMethod("property",Jc);function Vc(e,t,r){B(this,"own",!0),Jc.apply(this,arguments)}V(Vc,"assertOwnProperty");q.addMethod("ownProperty",Vc);q.addMethod("haveOwnProperty",Vc);function Hc(e,t,r){typeof t=="string"&&(r=t,t=null),r&&B(this,"message",r);let n=B(this,"object"),o=Object.getOwnPropertyDescriptor(Object(n),e),i=B(this,"eql");o&&t?this.assert(i(t,o),"expected the own property descriptor for "+Te(e)+" on #{this} to match "+Te(t)+", got "+Te(o),"expected the own property descriptor for "+Te(e)+" on #{this} to not match "+Te(t),t,o,!0):this.assert(o,"expected #{this} to have an own property descriptor for "+Te(e),"expected #{this} to not have an own property descriptor for "+Te(e)),B(this,"object",o)}V(Hc,"assertOwnPropertyDescriptor");q.addMethod("ownPropertyDescriptor",Hc);q.addMethod("haveOwnPropertyDescriptor",Hc);function Gc(){B(this,"doLength",!0)}V(Gc,"assertLengthChain");function zc(e,t){t&&B(this,"message",t);let r=B(this,"object"),n=xe(r).toLowerCase(),o=B(this,"message"),i=B(this,"ssfi"),a="length",s;switch(n){case"map":case"set":a="size",s=r.size;break;default:new q(r,o,i,!0).to.have.property("length"),s=r.length}this.assert(s==e,"expected #{this} to have a "+a+" of #{exp} but got #{act}","expected #{this} to not have a "+a+" of #{act}",e,s)}V(zc,"assertLength");q.addChainableMethod("length",zc,Gc);q.addChainableMethod("lengthOf",zc,Gc);function Wc(e,t){t&&B(this,"message",t);let r=B(this,"object");this.assert(e.exec(r),"expected #{this} to match "+e,"expected #{this} not to match "+e)}V(Wc,"assertMatch");q.addMethod("match",Wc);q.addMethod("matches",Wc);q.addMethod("string",function(e,t){t&&B(this,"message",t);let r=B(this,"object"),n=B(this,"message"),o=B(this,"ssfi");new q(r,n,o,!0).is.a("string"),this.assert(~r.indexOf(e),"expected #{this} to contain "+Te(e),"expected #{this} to not contain "+Te(e))});function Kc(e){let t=B(this,"object"),r=xe(t),n=xe(e),o=B(this,"ssfi"),i=B(this,"deep"),a,s="",c,u=!0,d=B(this,"message");d=d?d+": ":"";let p=d+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if(r==="Map"||r==="Set")s=i?"deeply ":"",c=[],t.forEach(function(b,w){c.push(w)}),n!=="Array"&&(e=Array.prototype.slice.call(arguments));else{switch(c=kc(t),n){case"Array":if(arguments.length>1)throw new Se(p,void 0,o);break;case"Object":if(arguments.length>1)throw new Se(p,void 0,o);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map(function(b){return typeof b=="symbol"?b:String(b)})}if(!e.length)throw new Se(d+"keys required",void 0,o);let f=e.length,h=B(this,"any"),y=B(this,"all"),g=e,E=i?B(this,"eql"):(b,w)=>b===w;if(!h&&!y&&(y=!0),h&&(u=g.some(function(b){return c.some(function(w){return E(b,w)})})),y&&(u=g.every(function(b){return c.some(function(w){return E(b,w)})}),B(this,"contains")||(u=u&&e.length==c.length)),f>1){e=e.map(function(w){return Te(w)});let b=e.pop();y&&(a=e.join(", ")+", and "+b),h&&(a=e.join(", ")+", or "+b)}else a=Te(e[0]);a=(f>1?"keys ":"key ")+a,a=(B(this,"contains")?"contain ":"have ")+a,this.assert(u,"expected #{this} to "+s+a,"expected #{this} to not "+s+a,g.slice(0).sort(da),c.sort(da),!0)}V(Kc,"assertKeys");q.addMethod("keys",Kc);q.addMethod("key",Kc);function ls(e,t,r){r&&B(this,"message",r);let n=B(this,"object"),o=B(this,"ssfi"),i=B(this,"message"),a=B(this,"negate")||!1;new q(n,i,o,!0).is.a("function"),(fa(e)||typeof e=="string")&&(t=e,e=null);let s,c=!1;try{n()}catch(h){c=!0,s=h}let u=e===void 0&&t===void 0,d=!!(e&&t),p=!1,f=!1;if(u||!u&&!a){let h="an error";e instanceof Error?h="#{exp}":e&&(h=mt.getConstructorName(e));let y=s;if(s instanceof Error)y=s.toString();else if(typeof s=="string")y=s;else if(s&&(typeof s=="object"||typeof s=="function"))try{y=mt.getConstructorName(s)}catch{}this.assert(c,"expected #{this} to throw "+h,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),y)}if(e&&s&&(e instanceof Error&&mt.compatibleInstance(s,e)===a&&(d&&a?p=!0:this.assert(a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(s&&!a?" but #{act} was thrown":""),e.toString(),s.toString())),mt.compatibleConstructor(s,e)===a&&(d&&a?p=!0:this.assert(a,"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&&mt.getConstructorName(e),s instanceof Error?s.toString():s&&mt.getConstructorName(s)))),s&&t!==void 0&&t!==null){let h="including";fa(t)&&(h="matching"),mt.compatibleMessage(s,t)===a&&(d&&a?f=!0:this.assert(a,"expected #{this} to throw error "+h+" #{exp} but got #{act}","expected #{this} to throw error not "+h+" #{exp}",t,mt.getMessage(s)))}p&&f&&this.assert(a,"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&&mt.getConstructorName(e),s instanceof Error?s.toString():s&&mt.getConstructorName(s)),B(this,"object",s)}V(ls,"assertThrows");q.addMethod("throw",ls);q.addMethod("throws",ls);q.addMethod("Throw",ls);function Yc(e,t){t&&B(this,"message",t);let r=B(this,"object"),n=B(this,"itself"),o=typeof r=="function"&&!n?r.prototype[e]:r[e];this.assert(typeof o=="function","expected #{this} to respond to "+Te(e),"expected #{this} to not respond to "+Te(e))}V(Yc,"respondTo");q.addMethod("respondTo",Yc);q.addMethod("respondsTo",Yc);q.addProperty("itself",function(){B(this,"itself",!0)});function Xc(e,t){t&&B(this,"message",t);let r=B(this,"object"),n=e(r);this.assert(n,"expected #{this} to satisfy "+Kr(e),"expected #{this} to not satisfy"+Kr(e),!B(this,"negate"),n)}V(Xc,"satisfy");q.addMethod("satisfy",Xc);q.addMethod("satisfies",Xc);function Qc(e,t,r){r&&B(this,"message",r);let n=B(this,"object"),o=B(this,"message"),i=B(this,"ssfi");new q(n,o,i,!0).is.numeric;let a="A `delta` value is required for `closeTo`";if(t==null)throw new Se(o?`${o}: ${a}`:a,void 0,i);if(new q(t,o,i,!0).is.numeric,a="A `expected` value is required for `closeTo`",e==null)throw new Se(o?`${o}: ${a}`:a,void 0,i);new q(e,o,i,!0).is.numeric;let s=V(u=>u<0n?-u:u,"abs"),c=V(u=>parseFloat(parseFloat(u).toPrecision(12)),"strip");this.assert(c(s(n-e))<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t)}V(Qc,"closeTo");q.addMethod("closeTo",Qc);q.addMethod("approximately",Qc);function Yb(e,t,r,n,o){let i=Array.from(t),a=Array.from(e);if(!n){if(a.length!==i.length)return!1;i=i.slice()}return a.every(function(s,c){if(o)return r?r(s,i[c]):s===i[c];if(!r){let u=i.indexOf(s);return u===-1?!1:(n||i.splice(u,1),!0)}return i.some(function(u,d){return r(s,u)?(n||i.splice(d,1),!0):!1})})}V(Yb,"isSubsetOf");q.addMethod("members",function(e,t){t&&B(this,"message",t);let r=B(this,"object"),n=B(this,"message"),o=B(this,"ssfi");new q(r,n,o,!0).to.be.iterable,new q(e,n,o,!0).to.be.iterable;let i=B(this,"contains"),a=B(this,"ordered"),s,c,u;i?(s=a?"an ordered superset":"a superset",c="expected #{this} to be "+s+" of #{exp}",u="expected #{this} to not be "+s+" of #{exp}"):(s=a?"ordered members":"members",c="expected #{this} to have the same "+s+" as #{exp}",u="expected #{this} to not have the same "+s+" as #{exp}");let d=B(this,"deep")?B(this,"eql"):void 0;this.assert(Yb(e,r,d,i,a),c,u,e,r,!0)});q.addProperty("iterable",function(e){e&&B(this,"message",e);let t=B(this,"object");this.assert(t!=null&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t)});function Xb(e,t){t&&B(this,"message",t);let r=B(this,"object"),n=B(this,"message"),o=B(this,"ssfi"),i=B(this,"contains"),a=B(this,"deep"),s=B(this,"eql");new q(e,n,o,!0).to.be.an("array"),i?this.assert(e.some(function(c){return r.indexOf(c)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,r):a?this.assert(e.some(function(c){return s(r,c)}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",e,r):this.assert(e.indexOf(r)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",e,r)}V(Xb,"oneOf");q.addMethod("oneOf",Xb);function Zc(e,t,r){r&&B(this,"message",r);let n=B(this,"object"),o=B(this,"message"),i=B(this,"ssfi");new q(n,o,i,!0).is.a("function");let a;t?(new q(e,o,i,!0).to.have.property(t),a=e[t]):(new q(e,o,i,!0).is.a("function"),a=e()),n();let s=t==null?e():e[t],c=t==null?a:"."+t;B(this,"deltaMsgObj",c),B(this,"initialDeltaValue",a),B(this,"finalDeltaValue",s),B(this,"deltaBehavior","change"),B(this,"realDelta",s!==a),this.assert(a!==s,"expected "+c+" to change","expected "+c+" to not change")}V(Zc,"assertChanges");q.addMethod("change",Zc);q.addMethod("changes",Zc);function ed(e,t,r){r&&B(this,"message",r);let n=B(this,"object"),o=B(this,"message"),i=B(this,"ssfi");new q(n,o,i,!0).is.a("function");let a;t?(new q(e,o,i,!0).to.have.property(t),a=e[t]):(new q(e,o,i,!0).is.a("function"),a=e()),new q(a,o,i,!0).is.a("number"),n();let s=t==null?e():e[t],c=t==null?a:"."+t;B(this,"deltaMsgObj",c),B(this,"initialDeltaValue",a),B(this,"finalDeltaValue",s),B(this,"deltaBehavior","increase"),B(this,"realDelta",s-a),this.assert(s-a>0,"expected "+c+" to increase","expected "+c+" to not increase")}V(ed,"assertIncreases");q.addMethod("increase",ed);q.addMethod("increases",ed);function td(e,t,r){r&&B(this,"message",r);let n=B(this,"object"),o=B(this,"message"),i=B(this,"ssfi");new q(n,o,i,!0).is.a("function");let a;t?(new q(e,o,i,!0).to.have.property(t),a=e[t]):(new q(e,o,i,!0).is.a("function"),a=e()),new q(a,o,i,!0).is.a("number"),n();let s=t==null?e():e[t],c=t==null?a:"."+t;B(this,"deltaMsgObj",c),B(this,"initialDeltaValue",a),B(this,"finalDeltaValue",s),B(this,"deltaBehavior","decrease"),B(this,"realDelta",a-s),this.assert(s-a<0,"expected "+c+" to decrease","expected "+c+" to not decrease")}V(td,"assertDecreases");q.addMethod("decrease",td);q.addMethod("decreases",td);function Qb(e,t){t&&B(this,"message",t);let r=B(this,"deltaMsgObj"),n=B(this,"initialDeltaValue"),o=B(this,"finalDeltaValue"),i=B(this,"deltaBehavior"),a=B(this,"realDelta"),s;i==="change"?s=Math.abs(o-n)===Math.abs(e):s=a===Math.abs(e),this.assert(s,"expected "+r+" to "+i+" by "+e,"expected "+r+" to not "+i+" by "+e)}V(Qb,"assertDelta");q.addMethod("by",Qb);q.addProperty("extensible",function(){let e=B(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible")});q.addProperty("sealed",function(){let e=B(this,"object"),t=e===Object(e)?Object.isSealed(e):!0;this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed")});q.addProperty("frozen",function(){let e=B(this,"object"),t=e===Object(e)?Object.isFrozen(e):!0;this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen")});q.addProperty("finite",function(e){let t=B(this,"object");this.assert(typeof t=="number"&&isFinite(t),"expected #{this} to be a finite number","expected #{this} to not be a finite number")});function ha(e,t){return e===t?!0:typeof t!=typeof e?!1:typeof e!="object"||e===null?e===t:t?Array.isArray(e)?Array.isArray(t)?e.every(function(r){return t.some(function(n){return ha(r,n)})}):!1:e instanceof Date?t instanceof Date?e.getTime()===t.getTime():!1:Object.keys(e).every(function(r){let n=e[r],o=t[r];return typeof n=="object"&&n!==null&&o!==null?ha(n,o):typeof n=="function"?n(o):o===n}):!1}V(ha,"compareSubset");q.addMethod("containSubset",function(e){let t=me(this,"object"),r=dt.showDiff;this.assert(ha(e,t),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",e,t,r)});function Yr(e,t){return new q(e,t)}V(Yr,"expect");Yr.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"expect.fail()",new Se(r,{actual:e,expected:t,operator:n},Yr.fail)};var Zb={};wc(Zb,{Should:()=>uq,should:()=>lq});function rd(){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 q(this.valueOf(),null,e):new q(this,null,e)}V(e,"shouldGetter");function t(n){Object.defineProperty(this,"should",{value:n,enumerable:!0,configurable:!0,writable:!0})}V(t,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:t,get:e,configurable:!0});let r={};return r.fail=function(n,o,i,a){throw arguments.length<2&&(i=n,n=void 0),i=i||"should.fail()",new Se(i,{actual:n,expected:o,operator:a},r.fail)},r.equal=function(n,o,i){new q(n,i).to.equal(o)},r.Throw=function(n,o,i,a){new q(n,a).to.Throw(o,i)},r.exist=function(n,o){new q(n,o).to.exist},r.not={},r.not.equal=function(n,o,i){new q(n,i).to.not.equal(o)},r.not.Throw=function(n,o,i,a){new q(n,a).to.not.Throw(o,i)},r.not.exist=function(n,o){new q(n,o).to.not.exist},r.throw=r.Throw,r.not.throw=r.not.Throw,r}V(rd,"loadShould");var lq=rd,uq=rd;function j(e,t){new q(null,null,j,!0).assert(e,t,"[ negation message unavailable ]")}V(j,"assert");j.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"assert.fail()",new Se(r,{actual:e,expected:t,operator:n},j.fail)};j.isOk=function(e,t){new q(e,t,j.isOk,!0).is.ok};j.isNotOk=function(e,t){new q(e,t,j.isNotOk,!0).is.not.ok};j.equal=function(e,t,r){let n=new q(e,r,j.equal,!0);n.assert(t==me(n,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,!0)};j.notEqual=function(e,t,r){let n=new q(e,r,j.notEqual,!0);n.assert(t!=me(n,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,!0)};j.strictEqual=function(e,t,r){new q(e,r,j.strictEqual,!0).to.equal(t)};j.notStrictEqual=function(e,t,r){new q(e,r,j.notStrictEqual,!0).to.not.equal(t)};j.deepEqual=j.deepStrictEqual=function(e,t,r){new q(e,r,j.deepEqual,!0).to.eql(t)};j.notDeepEqual=function(e,t,r){new q(e,r,j.notDeepEqual,!0).to.not.eql(t)};j.isAbove=function(e,t,r){new q(e,r,j.isAbove,!0).to.be.above(t)};j.isAtLeast=function(e,t,r){new q(e,r,j.isAtLeast,!0).to.be.least(t)};j.isBelow=function(e,t,r){new q(e,r,j.isBelow,!0).to.be.below(t)};j.isAtMost=function(e,t,r){new q(e,r,j.isAtMost,!0).to.be.most(t)};j.isTrue=function(e,t){new q(e,t,j.isTrue,!0).is.true};j.isNotTrue=function(e,t){new q(e,t,j.isNotTrue,!0).to.not.equal(!0)};j.isFalse=function(e,t){new q(e,t,j.isFalse,!0).is.false};j.isNotFalse=function(e,t){new q(e,t,j.isNotFalse,!0).to.not.equal(!1)};j.isNull=function(e,t){new q(e,t,j.isNull,!0).to.equal(null)};j.isNotNull=function(e,t){new q(e,t,j.isNotNull,!0).to.not.equal(null)};j.isNaN=function(e,t){new q(e,t,j.isNaN,!0).to.be.NaN};j.isNotNaN=function(e,t){new q(e,t,j.isNotNaN,!0).not.to.be.NaN};j.exists=function(e,t){new q(e,t,j.exists,!0).to.exist};j.notExists=function(e,t){new q(e,t,j.notExists,!0).to.not.exist};j.isUndefined=function(e,t){new q(e,t,j.isUndefined,!0).to.equal(void 0)};j.isDefined=function(e,t){new q(e,t,j.isDefined,!0).to.not.equal(void 0)};j.isCallable=function(e,t){new q(e,t,j.isCallable,!0).is.callable};j.isNotCallable=function(e,t){new q(e,t,j.isNotCallable,!0).is.not.callable};j.isObject=function(e,t){new q(e,t,j.isObject,!0).to.be.a("object")};j.isNotObject=function(e,t){new q(e,t,j.isNotObject,!0).to.not.be.a("object")};j.isArray=function(e,t){new q(e,t,j.isArray,!0).to.be.an("array")};j.isNotArray=function(e,t){new q(e,t,j.isNotArray,!0).to.not.be.an("array")};j.isString=function(e,t){new q(e,t,j.isString,!0).to.be.a("string")};j.isNotString=function(e,t){new q(e,t,j.isNotString,!0).to.not.be.a("string")};j.isNumber=function(e,t){new q(e,t,j.isNumber,!0).to.be.a("number")};j.isNotNumber=function(e,t){new q(e,t,j.isNotNumber,!0).to.not.be.a("number")};j.isNumeric=function(e,t){new q(e,t,j.isNumeric,!0).is.numeric};j.isNotNumeric=function(e,t){new q(e,t,j.isNotNumeric,!0).is.not.numeric};j.isFinite=function(e,t){new q(e,t,j.isFinite,!0).to.be.finite};j.isBoolean=function(e,t){new q(e,t,j.isBoolean,!0).to.be.a("boolean")};j.isNotBoolean=function(e,t){new q(e,t,j.isNotBoolean,!0).to.not.be.a("boolean")};j.typeOf=function(e,t,r){new q(e,r,j.typeOf,!0).to.be.a(t)};j.notTypeOf=function(e,t,r){new q(e,r,j.notTypeOf,!0).to.not.be.a(t)};j.instanceOf=function(e,t,r){new q(e,r,j.instanceOf,!0).to.be.instanceOf(t)};j.notInstanceOf=function(e,t,r){new q(e,r,j.notInstanceOf,!0).to.not.be.instanceOf(t)};j.include=function(e,t,r){new q(e,r,j.include,!0).include(t)};j.notInclude=function(e,t,r){new q(e,r,j.notInclude,!0).not.include(t)};j.deepInclude=function(e,t,r){new q(e,r,j.deepInclude,!0).deep.include(t)};j.notDeepInclude=function(e,t,r){new q(e,r,j.notDeepInclude,!0).not.deep.include(t)};j.nestedInclude=function(e,t,r){new q(e,r,j.nestedInclude,!0).nested.include(t)};j.notNestedInclude=function(e,t,r){new q(e,r,j.notNestedInclude,!0).not.nested.include(t)};j.deepNestedInclude=function(e,t,r){new q(e,r,j.deepNestedInclude,!0).deep.nested.include(t)};j.notDeepNestedInclude=function(e,t,r){new q(e,r,j.notDeepNestedInclude,!0).not.deep.nested.include(t)};j.ownInclude=function(e,t,r){new q(e,r,j.ownInclude,!0).own.include(t)};j.notOwnInclude=function(e,t,r){new q(e,r,j.notOwnInclude,!0).not.own.include(t)};j.deepOwnInclude=function(e,t,r){new q(e,r,j.deepOwnInclude,!0).deep.own.include(t)};j.notDeepOwnInclude=function(e,t,r){new q(e,r,j.notDeepOwnInclude,!0).not.deep.own.include(t)};j.match=function(e,t,r){new q(e,r,j.match,!0).to.match(t)};j.notMatch=function(e,t,r){new q(e,r,j.notMatch,!0).to.not.match(t)};j.property=function(e,t,r){new q(e,r,j.property,!0).to.have.property(t)};j.notProperty=function(e,t,r){new q(e,r,j.notProperty,!0).to.not.have.property(t)};j.propertyVal=function(e,t,r,n){new q(e,n,j.propertyVal,!0).to.have.property(t,r)};j.notPropertyVal=function(e,t,r,n){new q(e,n,j.notPropertyVal,!0).to.not.have.property(t,r)};j.deepPropertyVal=function(e,t,r,n){new q(e,n,j.deepPropertyVal,!0).to.have.deep.property(t,r)};j.notDeepPropertyVal=function(e,t,r,n){new q(e,n,j.notDeepPropertyVal,!0).to.not.have.deep.property(t,r)};j.ownProperty=function(e,t,r){new q(e,r,j.ownProperty,!0).to.have.own.property(t)};j.notOwnProperty=function(e,t,r){new q(e,r,j.notOwnProperty,!0).to.not.have.own.property(t)};j.ownPropertyVal=function(e,t,r,n){new q(e,n,j.ownPropertyVal,!0).to.have.own.property(t,r)};j.notOwnPropertyVal=function(e,t,r,n){new q(e,n,j.notOwnPropertyVal,!0).to.not.have.own.property(t,r)};j.deepOwnPropertyVal=function(e,t,r,n){new q(e,n,j.deepOwnPropertyVal,!0).to.have.deep.own.property(t,r)};j.notDeepOwnPropertyVal=function(e,t,r,n){new q(e,n,j.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,r)};j.nestedProperty=function(e,t,r){new q(e,r,j.nestedProperty,!0).to.have.nested.property(t)};j.notNestedProperty=function(e,t,r){new q(e,r,j.notNestedProperty,!0).to.not.have.nested.property(t)};j.nestedPropertyVal=function(e,t,r,n){new q(e,n,j.nestedPropertyVal,!0).to.have.nested.property(t,r)};j.notNestedPropertyVal=function(e,t,r,n){new q(e,n,j.notNestedPropertyVal,!0).to.not.have.nested.property(t,r)};j.deepNestedPropertyVal=function(e,t,r,n){new q(e,n,j.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,r)};j.notDeepNestedPropertyVal=function(e,t,r,n){new q(e,n,j.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,r)};j.lengthOf=function(e,t,r){new q(e,r,j.lengthOf,!0).to.have.lengthOf(t)};j.hasAnyKeys=function(e,t,r){new q(e,r,j.hasAnyKeys,!0).to.have.any.keys(t)};j.hasAllKeys=function(e,t,r){new q(e,r,j.hasAllKeys,!0).to.have.all.keys(t)};j.containsAllKeys=function(e,t,r){new q(e,r,j.containsAllKeys,!0).to.contain.all.keys(t)};j.doesNotHaveAnyKeys=function(e,t,r){new q(e,r,j.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)};j.doesNotHaveAllKeys=function(e,t,r){new q(e,r,j.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)};j.hasAnyDeepKeys=function(e,t,r){new q(e,r,j.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)};j.hasAllDeepKeys=function(e,t,r){new q(e,r,j.hasAllDeepKeys,!0).to.have.all.deep.keys(t)};j.containsAllDeepKeys=function(e,t,r){new q(e,r,j.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)};j.doesNotHaveAnyDeepKeys=function(e,t,r){new q(e,r,j.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)};j.doesNotHaveAllDeepKeys=function(e,t,r){new q(e,r,j.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)};j.throws=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null);let o=new q(e,n,j.throws,!0).to.throw(t,r);return me(o,"object")};j.doesNotThrow=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null),new q(e,n,j.doesNotThrow,!0).to.not.throw(t,r)};j.operator=function(e,t,r,n){let o;switch(t){case"==":o=e==r;break;case"===":o=e===r;break;case">":o=e>r;break;case">=":o=e>=r;break;case"<":o=e<r;break;case"<=":o=e<=r;break;case"!=":o=e!=r;break;case"!==":o=e!==r;break;default:throw n=n&&n+": ",new Se(n+'Invalid operator "'+t+'"',void 0,j.operator)}let i=new q(o,n,j.operator,!0);i.assert(me(i,"object")===!0,"expected "+Te(e)+" to be "+t+" "+Te(r),"expected "+Te(e)+" to not be "+t+" "+Te(r))};j.closeTo=function(e,t,r,n){new q(e,n,j.closeTo,!0).to.be.closeTo(t,r)};j.approximately=function(e,t,r,n){new q(e,n,j.approximately,!0).to.be.approximately(t,r)};j.sameMembers=function(e,t,r){new q(e,r,j.sameMembers,!0).to.have.same.members(t)};j.notSameMembers=function(e,t,r){new q(e,r,j.notSameMembers,!0).to.not.have.same.members(t)};j.sameDeepMembers=function(e,t,r){new q(e,r,j.sameDeepMembers,!0).to.have.same.deep.members(t)};j.notSameDeepMembers=function(e,t,r){new q(e,r,j.notSameDeepMembers,!0).to.not.have.same.deep.members(t)};j.sameOrderedMembers=function(e,t,r){new q(e,r,j.sameOrderedMembers,!0).to.have.same.ordered.members(t)};j.notSameOrderedMembers=function(e,t,r){new q(e,r,j.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)};j.sameDeepOrderedMembers=function(e,t,r){new q(e,r,j.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)};j.notSameDeepOrderedMembers=function(e,t,r){new q(e,r,j.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)};j.includeMembers=function(e,t,r){new q(e,r,j.includeMembers,!0).to.include.members(t)};j.notIncludeMembers=function(e,t,r){new q(e,r,j.notIncludeMembers,!0).to.not.include.members(t)};j.includeDeepMembers=function(e,t,r){new q(e,r,j.includeDeepMembers,!0).to.include.deep.members(t)};j.notIncludeDeepMembers=function(e,t,r){new q(e,r,j.notIncludeDeepMembers,!0).to.not.include.deep.members(t)};j.includeOrderedMembers=function(e,t,r){new q(e,r,j.includeOrderedMembers,!0).to.include.ordered.members(t)};j.notIncludeOrderedMembers=function(e,t,r){new q(e,r,j.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)};j.includeDeepOrderedMembers=function(e,t,r){new q(e,r,j.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)};j.notIncludeDeepOrderedMembers=function(e,t,r){new q(e,r,j.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)};j.oneOf=function(e,t,r){new q(e,r,j.oneOf,!0).to.be.oneOf(t)};j.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${Te(e)} to be an iterable`:`expected ${Te(e)} to be an iterable`,new Se(t,void 0,j.isIterable)};j.changes=function(e,t,r,n){arguments.length===3&&typeof t=="function"&&(n=r,r=null),new q(e,n,j.changes,!0).to.change(t,r)};j.changesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new q(e,o,j.changesBy,!0).to.change(t,r).by(n)};j.doesNotChange=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new q(e,n,j.doesNotChange,!0).to.not.change(t,r)};j.changesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new q(e,o,j.changesButNotBy,!0).to.change(t,r).but.not.by(n)};j.increases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new q(e,n,j.increases,!0).to.increase(t,r)};j.increasesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new q(e,o,j.increasesBy,!0).to.increase(t,r).by(n)};j.doesNotIncrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new q(e,n,j.doesNotIncrease,!0).to.not.increase(t,r)};j.increasesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new q(e,o,j.increasesButNotBy,!0).to.increase(t,r).but.not.by(n)};j.decreases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new q(e,n,j.decreases,!0).to.decrease(t,r)};j.decreasesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new q(e,o,j.decreasesBy,!0).to.decrease(t,r).by(n)};j.doesNotDecrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new q(e,n,j.doesNotDecrease,!0).to.not.decrease(t,r)};j.doesNotDecreaseBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);return new q(e,o,j.doesNotDecreaseBy,!0).to.not.decrease(t,r).by(n)};j.decreasesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new q(e,o,j.decreasesButNotBy,!0).to.decrease(t,r).but.not.by(n)};j.ifError=function(e){if(e)throw e};j.isExtensible=function(e,t){new q(e,t,j.isExtensible,!0).to.be.extensible};j.isNotExtensible=function(e,t){new q(e,t,j.isNotExtensible,!0).to.not.be.extensible};j.isSealed=function(e,t){new q(e,t,j.isSealed,!0).to.be.sealed};j.isNotSealed=function(e,t){new q(e,t,j.isNotSealed,!0).to.not.be.sealed};j.isFrozen=function(e,t){new q(e,t,j.isFrozen,!0).to.be.frozen};j.isNotFrozen=function(e,t){new q(e,t,j.isNotFrozen,!0).to.not.be.frozen};j.isEmpty=function(e,t){new q(e,t,j.isEmpty,!0).to.be.empty};j.isNotEmpty=function(e,t){new q(e,t,j.isNotEmpty,!0).to.not.be.empty};j.containsSubset=function(e,t,r){new q(e,r).to.containSubset(t)};j.doesNotContainSubset=function(e,t,r){new q(e,r).to.not.containSubset(t)};var cq=[["isOk","ok"],["isNotOk","notOk"],["throws","throw"],["throws","Throw"],["isExtensible","extensible"],["isNotExtensible","notExtensible"],["isSealed","sealed"],["isNotSealed","notSealed"],["isFrozen","frozen"],["isNotFrozen","notFrozen"],["isEmpty","empty"],["isNotEmpty","notEmpty"],["isCallable","isFunction"],["isNotCallable","isNotFunction"],["containsSubset","containSubset"]];for(let[e,t]of cq)j[t]=j[e];var cf=[];function wn(e){let t={use:wn,AssertionError:Se,util:Vt,config:dt,expect:Yr,assert:j,Assertion:q,...Zb};return~cf.indexOf(e)||(e(t,Vt),cf.push(e)),t}V(wn,"use");var ev={};ft(ev,{toBeChecked:()=>Bv,toBeDisabled:()=>Iv,toBeEmpty:()=>gv,toBeEmptyDOMElement:()=>bv,toBeEnabled:()=>jv,toBeInTheDOM:()=>zl,toBeInTheDocument:()=>yv,toBeInvalid:()=>kv,toBePartiallyChecked:()=>Uv,toBeRequired:()=>qv,toBeValid:()=>Lv,toBeVisible:()=>Ov,toContainElement:()=>Wl,toContainHTML:()=>vv,toHaveAccessibleDescription:()=>Kl,toHaveAccessibleErrorMessage:()=>wv,toHaveAccessibleName:()=>Xl,toHaveAttribute:()=>_v,toHaveClass:()=>Tv,toHaveDescription:()=>Jv,toHaveDisplayValue:()=>$v,toHaveErrorMessage:()=>Vv,toHaveFocus:()=>Sv,toHaveFormValues:()=>Av,toHaveRole:()=>Yl,toHaveSelection:()=>Hv,toHaveStyle:()=>Ql,toHaveTextContent:()=>Ev,toHaveValue:()=>Dv});var df=Je(Sm(),1);function tv(e){Object.defineProperty(e,"__esModule",{value:!0,configurable:!0})}function nd(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var rv={};tv(rv);nd(rv,"default",()=>nv);var nv=class extends Error{constructor(e,t,r,n,o){super(e+":"+r+":"+n+": "+t),this.reason=t,this.filename=e,this.line=r,this.column=n,this.source=o}},ov={};tv(ov);nd(ov,"default",()=>iv);var iv=class{constructor(e,t,r){this.start=e,this.end=t,this.source=r}},dq={};nd(dq,"CssTypes",()=>He);var He;(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"})(He||(He={}));var Xs=/\/\*[^]*?(?:\*\/|$)/g,pq=(e,t)=>{t=t||{};let r=1,n=1;function o(z){let G=z.match(/\n/g);G&&(r+=G.length);let re=z.lastIndexOf(`
214
+ `);n=~re?z.length-re:n+z.length}function i(){let z={line:r,column:n};return function(G){return G.position=new iv(z,{line:r,column:n},t?.source||""),h(),G}}let a=[];function s(z){let G=new nv(t?.source||"",z,r,n,e);if(t?.silent)a.push(G);else throw G}function c(){let z=p();return{type:He.stylesheet,stylesheet:{source:t?.source,rules:z,parsingErrors:a}}}function u(){return f(/^{\s*/)}function d(){return f(/^}/)}function p(){let z,G=[];for(h(),y(G);e.length&&e.charAt(0)!=="}"&&(z=ue()||ie());)z&&(G.push(z),y(G));return G}function f(z){let G=z.exec(e);if(!G)return;let re=G[0];return o(re),e=e.slice(re.length),G}function h(){f(/^\s*/)}function y(z){let G;for(z=z||[];G=g();)G&&z.push(G);return z}function g(){let z=i();if(e.charAt(0)!=="/"||e.charAt(1)!=="*")return;let G=f(/^\/\*[^]*?\*\//);return G?z({type:He.comment,comment:G[0].slice(2,-2)}):s("End of comment missing")}function E(z,G,re){let Z=G+1,K=!1,ye=z.indexOf(")",Z);for(;!K&&ye!==-1;){let ce=z.indexOf("(",Z);ce!==-1&&ce<ye?(Z=E(z,ce+1)+1,ye=z.indexOf(")",Z)):K=!0}return K&&ye!==-1?ye:-1}function b(){let z=f(/^([^{]+)/);if(!z)return;let G=Tt(z[0]).replace(Xs,"");if(G.indexOf(",")===-1)return[G];let re=0,Z=G.indexOf("(",re);for(;Z!==-1;){let K=E(G,Z);if(K===-1)break;re=K+1,G=G.substring(0,Z)+G.substring(Z,K).replace(/,/g,"‌")+G.substring(K),Z=G.indexOf("(",re)}return G=G.replace(/("|')(?:\\\1|.)*?\1/g,K=>K.replace(/,/g,"‌")),G.split(",").map(K=>Tt(K.replace(/\u200C/g,",")))}function w(){let z=i(),G=f(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!G)return;let re=Tt(G[0]);if(!f(/^:\s*/))return s("property missing ':'");let Z=f(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),K=z({type:He.declaration,property:re.replace(Xs,""),value:Z?Tt(Z[0]).replace(Xs,""):""});return f(/^[;\s]*/),K}function P(){let z=[];if(!u())return s("missing '{'");y(z);let G;for(;G=w();)G&&(z.push(G),y(z));return d()?z:s("missing '}'")}function x(){let z,G=[],re=i();for(;z=f(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)G.push(z[1]),f(/^,\s*/);if(G.length)return re({type:He.keyframe,values:G,declarations:P()||[]})}function C(){let z=i(),G=f(/^@([-\w]+)?keyframes\s*/);if(!G)return;let re=G[1],Z=f(/^([-\w]+)\s*/);if(!Z)return s("@keyframes missing name");let K=Z[1];if(!u())return s("@keyframes missing '{'");let ye,ce=y();for(;ye=x();)ce.push(ye),ce=ce.concat(y());return d()?z({type:He.keyframes,name:K,vendor:re,keyframes:ce}):s("@keyframes missing '}'")}function S(){let z=i(),G=f(/^@supports *([^{]+)/);if(!G)return;let re=Tt(G[1]);if(!u())return s("@supports missing '{'");let Z=y().concat(p());return d()?z({type:He.supports,supports:re,rules:Z}):s("@supports missing '}'")}function _(){let z=i();if(!f(/^@host\s*/))return;if(!u())return s("@host missing '{'");let G=y().concat(p());return d()?z({type:He.host,rules:G}):s("@host missing '}'")}function T(){let z=i(),G=f(/^@container *([^{]+)/);if(!G)return;let re=Tt(G[1]);if(!u())return s("@container missing '{'");let Z=y().concat(p());return d()?z({type:He.container,container:re,rules:Z}):s("@container missing '}'")}function A(){let z=i(),G=f(/^@layer *([^{;@]+)/);if(!G)return;let re=Tt(G[1]);if(!u())return f(/^[;\s]*/),z({type:He.layer,layer:re});let Z=y().concat(p());return d()?z({type:He.layer,layer:re,rules:Z}):s("@layer missing '}'")}function D(){let z=i(),G=f(/^@media *([^{]+)/);if(!G)return;let re=Tt(G[1]);if(!u())return s("@media missing '{'");let Z=y().concat(p());return d()?z({type:He.media,media:re,rules:Z}):s("@media missing '}'")}function k(){let z=i(),G=f(/^@custom-media\s+(--\S+)\s*([^{;\s][^{;]*);/);if(G)return z({type:He.customMedia,name:Tt(G[1]),media:Tt(G[2])})}function U(){let z=i();if(!f(/^@page */))return;let G=b()||[];if(!u())return s("@page missing '{'");let re=y(),Z;for(;Z=w();)re.push(Z),re=re.concat(y());return d()?z({type:He.page,selectors:G,declarations:re}):s("@page missing '}'")}function I(){let z=i(),G=f(/^@([-\w]+)?document *([^{]+)/);if(!G)return;let re=Tt(G[1]),Z=Tt(G[2]);if(!u())return s("@document missing '{'");let K=y().concat(p());return d()?z({type:He.document,document:Z,vendor:re,rules:K}):s("@document missing '}'")}function R(){let z=i();if(!f(/^@font-face\s*/))return;if(!u())return s("@font-face missing '{'");let G=y(),re;for(;re=w();)G.push(re),G=G.concat(y());return d()?z({type:He.fontFace,declarations:G}):s("@font-face missing '}'")}function M(){let z=i();if(!f(/^@starting-style\s*/))return;if(!u())return s("@starting-style missing '{'");let G=y().concat(p());return d()?z({type:He.startingStyle,rules:G}):s("@starting-style missing '}'")}let L=ne("import"),J=ne("charset"),W=ne("namespace");function ne(z){let G=new RegExp("^@"+z+`\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);return function(){let re=i(),Z=f(G);if(!Z)return;let K={type:z};return K[z]=Z[1].trim(),re(K)}}function ue(){if(e[0]==="@")return C()||D()||k()||S()||L()||J()||W()||I()||U()||_()||R()||T()||M()||A()}function ie(){let z=i(),G=b();return G?(y(),z({type:He.rule,selectors:G,declarations:P()||[]})):s("selector missing")}return Hl(c())};function Tt(e){return e?e.trim():""}function Hl(e,t){let r=e&&typeof e.type=="string",n=r?e:t;for(let o in e){let i=e[o];Array.isArray(i)?i.forEach(a=>{Hl(a,n)}):i&&typeof i=="object"&&Hl(i,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var fq=pq,hq=fq,mq=Object.prototype.toString;function yq(e){return typeof e=="function"||mq.call(e)==="[object Function]"}function gq(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var bq=Math.pow(2,53)-1;function vq(e){var t=gq(e);return Math.min(Math.max(t,0),bq)}function jt(e,t){var r=Array,n=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");for(var o=vq(n.length),i=yq(r)?Object(new r(o)):new Array(o),a=0,s;a<o;)s=n[a],i[a]=s,a+=1;return i.length=o,i}function Vo(e){"@babel/helpers - typeof";return Vo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vo(e)}function Eq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wq(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,av(n.key),n)}}function _q(e,t,r){return t&&wq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tq(e,t,r){return t=av(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function av(e){var t=Sq(e,"string");return Vo(t)==="symbol"?t:String(t)}function Sq(e,t){if(Vo(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Aq=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Eq(this,e),Tq(this,"items",void 0),this.items=t}return _q(e,[{key:"add",value:function(t){return this.has(t)===!1&&this.items.push(t),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(t){var r=this.items.length;return this.items=this.items.filter(function(n){return n!==t}),r!==this.items.length}},{key:"forEach",value:function(t){var r=this;this.items.forEach(function(n){t(n,n,r)})}},{key:"has",value:function(t){return this.items.indexOf(t)!==-1}},{key:"size",get:function(){return this.items.length}}]),e})(),Rq=typeof Set>"u"?Set:Aq;function it(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var Oq={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"},Pq={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"])};function xq(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(r){var n;return e.hasAttribute(r)&&!((n=Pq[t])!==null&&n!==void 0&&n.has(r))})}function sv(e,t){return xq(e,t)}function Cq(e){var t=Iq(e);if(t===null||Gl.indexOf(t)!==-1){var r=Nq(e);if(Gl.indexOf(t||"")===-1||sv(e,r||""))return r}return t}function Nq(e){var t=Oq[it(e)];if(t!==void 0)return t;switch(it(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!sv(e,"img")?"presentation":"img";case"input":{var r=e,n=r.type;switch(n){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return n;case"range":return"slider";case"email":case"tel":case"text":case"url":return e.hasAttribute("list")?"combobox":"textbox";case"search":return e.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}}case"select":return e.hasAttribute("multiple")||e.size>1?"listbox":"combobox"}return null}function Iq(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}var Gl=["presentation","none"];function je(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function lv(e){return je(e)&&it(e)==="caption"}function zi(e){return je(e)&&it(e)==="input"}function jq(e){return je(e)&&it(e)==="optgroup"}function qq(e){return je(e)&&it(e)==="select"}function Mq(e){return je(e)&&it(e)==="table"}function kq(e){return je(e)&&it(e)==="textarea"}function Lq(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function Dq(e){return je(e)&&it(e)==="fieldset"}function $q(e){return je(e)&&it(e)==="legend"}function Bq(e){return je(e)&&it(e)==="slot"}function Fq(e){return je(e)&&e.ownerSVGElement!==void 0}function Uq(e){return je(e)&&it(e)==="svg"}function Jq(e){return Fq(e)&&it(e)==="title"}function ma(e,t){if(je(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(o){return n.getElementById(o)}).filter(function(o){return o!==null})}return[]}function tr(e,t){return je(e)?t.indexOf(Cq(e))!==-1:!1}function Vq(e){return e.trim().replace(/\s\s+/g," ")}function Hq(e,t){if(!je(e))return!1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return!0;var r=t(e);return r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"}function Gq(e){return tr(e,["button","combobox","listbox","textbox"])||uv(e,"range")}function uv(e,t){if(!je(e))return!1;switch(t){case"range":return tr(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function pf(e,t){var r=jt(e.querySelectorAll(t));return ma(e,"aria-owns").forEach(function(n){r.push.apply(r,jt(n.querySelectorAll(t)))}),r}function zq(e){return qq(e)?e.selectedOptions||pf(e,"[selected]"):pf(e,'[aria-selected="true"]')}function Wq(e){return tr(e,Gl)}function Kq(e){return lv(e)}function Yq(e){return tr(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function Xq(e){return!1}function Qq(e){return zi(e)||kq(e)?e.value:e.textContent||""}function ff(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function cv(e){var t=it(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function dv(e){if(cv(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&je(r)){var n=dv(r);n!==null&&(t=n)}}),t}function Zq(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):dv(e)}function eM(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return jt(t);if(!cv(e))return null;var r=e.ownerDocument;return jt(r.querySelectorAll("label")).filter(function(n){return Zq(n)===e})}function tM(e){var t=e.assignedNodes();return t.length===0?jt(e.childNodes):t}function pv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new Rq,n=Lq(e),o=t.compute,i=o===void 0?"name":o,a=t.computedStyleSupportsPseudoElements,s=a===void 0?t.getComputedStyle!==void 0:a,c=t.getComputedStyle,u=c===void 0?n.getComputedStyle.bind(n):c,d=t.hidden,p=d===void 0?!1:d;function f(b,w){var P="";if(je(b)&&s){var x=u(b,"::before"),C=ff(x);P="".concat(C," ").concat(P)}var S=Bq(b)?tM(b):jt(b.childNodes).concat(ma(b,"aria-owns"));if(S.forEach(function(A){var D=E(A,{isEmbeddedInLabel:w.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),k=je(A)?u(A).getPropertyValue("display"):"inline",U=k!=="inline"?" ":"";P+="".concat(U).concat(D).concat(U)}),je(b)&&s){var _=u(b,"::after"),T=ff(_);P="".concat(P," ").concat(T)}return P.trim()}function h(b,w){var P=b.getAttributeNode(w);return P!==null&&!r.has(P)&&P.value.trim()!==""?(r.add(P),P.value):null}function y(b){return je(b)?h(b,"title"):null}function g(b){if(!je(b))return null;if(Dq(b)){r.add(b);for(var w=jt(b.childNodes),P=0;P<w.length;P+=1){var x=w[P];if($q(x))return E(x,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(Mq(b)){r.add(b);for(var C=jt(b.childNodes),S=0;S<C.length;S+=1){var _=C[S];if(lv(_))return E(_,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(Uq(b)){r.add(b);for(var T=jt(b.childNodes),A=0;A<T.length;A+=1){var D=T[A];if(Jq(D))return D.textContent}return null}else if(it(b)==="img"||it(b)==="area"){var k=h(b,"alt");if(k!==null)return k}else if(jq(b)){var U=h(b,"label");if(U!==null)return U}if(zi(b)&&(b.type==="button"||b.type==="submit"||b.type==="reset")){var I=h(b,"value");if(I!==null)return I;if(b.type==="submit")return"Submit";if(b.type==="reset")return"Reset"}var R=eM(b);if(R!==null&&R.length!==0)return r.add(b),jt(R).map(function(W){return E(W,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(W){return W.length>0}).join(" ");if(zi(b)&&b.type==="image"){var M=h(b,"alt");if(M!==null)return M;var L=h(b,"title");return L!==null?L:"Submit Query"}if(tr(b,["button"])){var J=f(b,{isEmbeddedInLabel:!1});if(J!=="")return J}return null}function E(b,w){if(r.has(b))return"";if(!p&&Hq(b,u)&&!w.isReferenced)return r.add(b),"";var P=je(b)?b.getAttributeNode("aria-labelledby"):null,x=P!==null&&!r.has(P)?ma(b,"aria-labelledby"):[];if(i==="name"&&!w.isReferenced&&x.length>0)return r.add(P),x.map(function(k){return E(k,{isEmbeddedInLabel:w.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var C=w.recursion&&Gq(b)&&i==="name";if(!C){var S=(je(b)&&b.getAttribute("aria-label")||"").trim();if(S!==""&&i==="name")return r.add(b),S;if(!Wq(b)){var _=g(b);if(_!==null)return r.add(b),_}}if(tr(b,["menu"]))return r.add(b),"";if(C||w.isEmbeddedInLabel||w.isReferenced){if(tr(b,["combobox","listbox"])){r.add(b);var T=zq(b);return T.length===0?zi(b)?b.value:"":jt(T).map(function(k){return E(k,{isEmbeddedInLabel:w.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(uv(b,"range"))return r.add(b),b.hasAttribute("aria-valuetext")?b.getAttribute("aria-valuetext"):b.hasAttribute("aria-valuenow")?b.getAttribute("aria-valuenow"):b.getAttribute("value")||"";if(tr(b,["textbox"]))return r.add(b),Qq(b)}if(Yq(b)||je(b)&&w.isReferenced||Kq(b)||Xq()){var A=f(b,{isEmbeddedInLabel:w.isEmbeddedInLabel});if(A!=="")return r.add(b),A}if(b.nodeType===b.TEXT_NODE)return r.add(b),b.textContent||"";if(w.recursion)return r.add(b),f(b,{isEmbeddedInLabel:w.isEmbeddedInLabel});var D=y(b);return D!==null?(r.add(b),D):(r.add(b),"")}return Vq(E(e,{isEmbeddedInLabel:!1,isReferenced:i==="description",recursion:!1}))}function Ho(e){"@babel/helpers - typeof";return Ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ho(e)}function hf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function mf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hf(Object(r),!0).forEach(function(n){rM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rM(e,t,r){return t=nM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nM(e){var t=oM(e,"string");return Ho(t)==="symbol"?t:String(t)}function oM(e,t){if(Ho(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ho(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=ma(e,"aria-describedby").map(function(i){return pv(i,mf(mf({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("aria-description");r=n===null?"":n}if(r===""){var o=e.getAttribute("title");r=o===null?"":o}return r}function aM(e){return tr(e,["caption","code","deletion","emphasis","generic","insertion","none","paragraph","presentation","strong","subscript","superscript"])}function sM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return aM(e)?"":pv(e,t)}var od=Je(ju(),1),lM=Je(Rm(),1),id=Je(Lm(),1),uM=Je(Dm(),1),fv=class extends Error{constructor(e,t,r,n){super(),Error.captureStackTrace&&Error.captureStackTrace(this,r);let o="";try{o=n.utils.printWithType("Received",t,n.utils.printReceived)}catch{}this.message=[n.utils.matcherHint(`${n.isNot?".not":""}.${r.name}`,"received",""),"",`${n.utils.RECEIVED_COLOR("received")} value must ${e}.`,o].join(`
215
+ `)}},yf=class extends fv{constructor(...e){super("be an HTMLElement or an SVGElement",...e)}},gf=class extends fv{constructor(...e){super("be a Node",...e)}};function hv(e,t,...r){if(!e||!e.ownerDocument||!e.ownerDocument.defaultView)throw new t(e,...r)}function cM(e,...t){hv(e,gf,...t);let r=e.ownerDocument.defaultView;if(!(e instanceof r.Node))throw new gf(e,...t)}function Oe(e,...t){hv(e,yf,...t);let r=e.ownerDocument.defaultView;if(!(e instanceof r.HTMLElement)&&!(e instanceof r.SVGElement))throw new yf(e,...t)}var dM=class extends Error{constructor(e,t,r){super(),Error.captureStackTrace&&Error.captureStackTrace(this,t),this.message=[e.message,"",r.utils.RECEIVED_COLOR("Failing css:"),r.utils.RECEIVED_COLOR(`${e.css}`)].join(`
216
+ `)}};function pM(e,...t){let r=hq(`selector { ${e} }`,{silent:!0}).stylesheet;if(r.parsingErrors&&r.parsingErrors.length>0){let{reason:n,line:o}=r.parsingErrors[0];throw new dM({css:e,message:`Syntax error parsing expected css: ${n} on line: ${o}`},...t)}return r.rules[0].declarations.filter(n=>n.type==="declaration").reduce((n,{property:o,value:i})=>Object.assign(n,{[o]:i}),{})}function bf(e,t){return typeof t=="string"?t:e.utils.stringify(t)}function tt(e,t,r,n,o,i){return[`${t}
217
+ `,`${r}:
218
+ ${e.utils.EXPECTED_COLOR((0,df.default)(bf(e,n),2))}`,`${o}:
219
+ ${e.utils.RECEIVED_COLOR((0,df.default)(bf(e,i),2))}`].join(`
220
+ `)}function fM(e,t){return t instanceof RegExp?t.test(e):e.includes(String(t))}function us(e,t){console.warn(`Warning: ${e} has been deprecated and will be removed in future updates.`,t)}function cs(e){return e.replace(/\s+/g," ").trim()}function Or(e){return e.tagName&&e.tagName.toLowerCase()}function hM({multiple:e,options:t}){let r=[...t].filter(n=>n.selected);if(e)return[...r].map(n=>n.value);if(r.length!==0)return r[0].value}function mM(e){switch(e.type){case"number":return e.value===""?null:Number(e.value);case"checkbox":return e.checked;default:return e.value}}var yM=["meter","progressbar","slider","spinbutton"];function gM(e){if(yM.includes(e.getAttribute("role")))return Number(e.getAttribute("aria-valuenow"))}function mv(e){if(e)switch(e.tagName.toLowerCase()){case"input":return mM(e);case"select":return hM(e);default:return e.value??gM(e)}}function bM(e,{wordConnector:t=", ",lastWordConnector:r=" and "}={}){return[e.slice(0,-1).join(t),e[e.length-1]].join(e.length>1?r:"")}function ad(e,t){if(Array.isArray(e)&&Array.isArray(t))return[...new Set(e)].every(r=>new Set(t).has(r))}function zl(e,t){return us("toBeInTheDOM","Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container."),e&&Oe(e,zl,this),t&&Oe(t,zl,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(`
221
+ `)}}function yv(e){(e!==null||!this.isNot)&&Oe(e,yv,this);let t=e===null?!1:e.ownerDocument===e.getRootNode({composed:!0}),r=()=>`expected document not to contain element, found ${this.utils.stringify(e.cloneNode(!0))} instead`,n=()=>"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?r():n())].join(`
222
+ `)}}function gv(e){return us("toBeEmpty","Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM."),Oe(e,gv,this),{pass:e.innerHTML==="",message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmpty`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
223
+ `)}}function bv(e){return Oe(e,bv,this),{pass:vM(e),message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmptyDOMElement`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
224
+ `)}}function vM(e){return[...e.childNodes].filter(t=>t.nodeType!==8).length===0}function Wl(e,t){return Oe(e,Wl,this),t!==null&&Oe(t,Wl,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))}
225
+ `)].join(`
226
+ `)}}function EM(e,t){let r=e.ownerDocument.createElement("div");return r.innerHTML=t,r.innerHTML}function vv(e,t){if(Oe(e,vv,this),typeof t!="string")throw new Error(`.toContainHTML() expects a string value, got ${t}`);return{pass:e.outerHTML.includes(EM(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(`
227
+ `)}}function Ev(e,t,r={normalizeWhitespace:!0}){cM(e,Ev,this);let n=r.normalizeWhitespace?cs(e.textContent):e.textContent.replace(/\u00a0/g," "),o=n!==""&&t==="";return{pass:!o&&fM(n,t),message:()=>{let i=this.isNot?"not to":"to";return tt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveTextContent`,"element",""),o?"Checking with empty string will always match, use .toBeEmptyDOMElement() instead":`Expected element ${i} have text content`,t,"Received",n)}}}function Kl(e,t){Oe(e,Kl,this);let r=iM(e),n=arguments.length===1,o=!1;return n?o=r!=="":o=t instanceof RegExp?t.test(r):this.equals(r,t),{pass:o,message:()=>{let i=this.isNot?"not to":"to";return tt(this,this.utils.matcherHint(`${this.isNot?".not":""}.${Kl.name}`,"element",""),`Expected element ${i} have accessible description`,t,"Received",r)}}}var go="aria-invalid",wM=["false"];function wv(e,t){Oe(e,wv,this);let r=this.isNot?"not to":"to",n=this.isNot?".not.toHaveAccessibleErrorMessage":".toHaveAccessibleErrorMessage",o=e.getAttribute("aria-errormessage");if(o&&/\s+/.test(o))return{pass:!1,message:()=>tt(this,this.utils.matcherHint(n,"element"),"Expected element's `aria-errormessage` attribute to be empty or a single, valid ID","","Received",`aria-errormessage="${o}"`)};let i=e.getAttribute(go);if(!e.hasAttribute(go)||wM.includes(i))return{pass:!1,message:()=>tt(this,this.utils.matcherHint(n,"element"),"Expected element to be marked as invalid with attribute",`${go}="${String(!0)}"`,"Received",e.hasAttribute("aria-invalid")?`${go}="${e.getAttribute(go)}`:null)};let a=cs(e.ownerDocument.getElementById(o)?.textContent??"");return{pass:t===void 0?!!a:t instanceof RegExp?t.test(a):this.equals(a,t),message:()=>tt(this,this.utils.matcherHint(n,"element"),`Expected element ${r} have accessible error message`,t??"","Received",a)}}var _M=AM(od.elementRoles);function Yl(e,t){Oe(e,Yl,this);let r=TM(e);return{pass:r.some(n=>n===t),message:()=>{let n=this.isNot?"not to":"to";return tt(this,this.utils.matcherHint(`${this.isNot?".not":""}.${Yl.name}`,"element",""),`Expected element ${n} have role`,t,"Received",r.join(", "))}}}function TM(e){return e.hasAttribute("role")?e.getAttribute("role").split(" ").filter(Boolean):SM(e)}function SM(e){for(let{match:t,roles:r}of _M)if(t(e))return[...r];return[]}function AM(e){function t({name:a,attributes:s}){return`${a}${s.map(({name:c,value:u,constraints:d=[]})=>d.indexOf("undefined")!==-1?`:not([${c}])`:u?`[${c}="${u}"]`:`[${c}]`).join("")}`}function r({attributes:a=[]}){return a.length}function n({specificity:a},{specificity:s}){return s-a}function o(a){let{attributes:s=[]}=a,c=s.findIndex(d=>d.value&&d.name==="type"&&d.value==="text");c>=0&&(s=[...s.slice(0,c),...s.slice(c+1)]);let u=t({...a,attributes:s});return d=>c>=0&&d.type!=="text"?!1:d.matches(u)}let i=[];for(let[a,s]of e.entries())i=[...i,{match:o(a),roles:Array.from(s),specificity:r(a)}];return i.sort(n)}function Xl(e,t){Oe(e,Xl,this);let r=sM(e),n=arguments.length===1,o=!1;return n?o=r!=="":o=t instanceof RegExp?t.test(r):this.equals(r,t),{pass:o,message:()=>{let i=this.isNot?"not to":"to";return tt(this,this.utils.matcherHint(`${this.isNot?".not":""}.${Xl.name}`,"element",""),`Expected element ${i} have accessible name`,t,"Received",r)}}}function vf(e,t,r){return r===void 0?t:`${t}=${e(r)}`}function RM(e,t,r){return r===void 0?`element.hasAttribute(${e(t)})`:`element.getAttribute(${e(t)}) === ${e(r)}`}function _v(e,t,r){Oe(e,_v,this);let n=r!==void 0,o=e.hasAttribute(t),i=e.getAttribute(t);return{pass:n?o&&this.equals(i,r):o,message:()=>{let a=this.isNot?"not to":"to",s=o?vf(this.utils.stringify,t,i):null,c=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveAttribute`,"element",this.utils.printExpected(t),{secondArgument:n?this.utils.printExpected(r):void 0,comment:RM(this.utils.stringify,t,r)});return tt(this,c,`Expected the element ${a} have attribute`,vf(this.utils.stringify,t,r),"Received",s)}}}function OM(e){let t=e.pop(),r,n;return typeof t=="object"&&!(t instanceof RegExp)?(r=e,n=t):(r=e.concat(t),n={exact:!1}),{expectedClassNames:r,options:n}}function Ef(e){return e?e.split(/\s+/).filter(t=>t.length>0):[]}function wf(e,t){return e.every(r=>typeof r=="string"?t.includes(r):t.some(n=>r.test(n)))}function Tv(e,...t){Oe(e,Tv,this);let{expectedClassNames:r,options:n}=OM(t),o=Ef(e.getAttribute("class")),i=r.reduce((s,c)=>s.concat(typeof c=="string"||!c?Ef(c):c),[]),a=i.some(s=>s instanceof RegExp);if(n.exact&&a)throw new Error("Exact option does not support RegExp expected class names");return n.exact?{pass:wf(i,o)&&i.length===o.length,message:()=>{let s=this.isNot?"not to":"to";return tt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveClass`,"element",this.utils.printExpected(i.join(" "))),`Expected the element ${s} have EXACTLY defined classes`,i.join(" "),"Received",o.join(" "))}}:i.length>0?{pass:wf(i,o),message:()=>{let s=this.isNot?"not to":"to";return tt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveClass`,"element",this.utils.printExpected(i.join(" "))),`Expected the element ${s} have class`,i.join(" "),"Received",o.join(" "))}}:{pass:this.isNot?o.length>0:!1,message:()=>this.isNot?tt(this,this.utils.matcherHint(".not.toHaveClass","element",""),"Expected the element to have classes","(none)","Received",o.join(" ")):[this.utils.matcherHint(".toHaveClass","element"),"At least one expected class must be provided."].join(`
228
+ `)}}function PM(e,t){let r={},n=e.createElement("div");return Object.keys(t).forEach(o=>{n.style[o]=t[o],r[o]=n.style[o]}),r}function xM(e,t){return!!Object.keys(e).length&&Object.entries(e).every(([r,n])=>{let o=r.startsWith("--"),i=[r];return o||i.push(r.toLowerCase()),i.some(a=>t[a]===n||t.getPropertyValue(a)===n)})}function _f(e){return Object.keys(e).sort().map(t=>`${t}: ${e[t]};`).join(`
229
+ `)}function CM(e,t,r){let n=Array.from(r).filter(o=>t[o]!==void 0).reduce((o,i)=>Object.assign(o,{[i]:r.getPropertyValue(i)}),{});return e(_f(t),_f(n)).replace(`${lM.default.red("+ Received")}
230
+ `,"")}function Ql(e,t){Oe(e,Ql,this);let r=typeof t=="object"?t:pM(t,Ql,this),{getComputedStyle:n}=e.ownerDocument.defaultView,o=PM(e.ownerDocument,r),i=n(e);return{pass:xM(o,i),message:()=>{let a=`${this.isNot?".not":""}.toHaveStyle`;return[this.utils.matcherHint(a,"element",""),CM(this.utils.diff,o,i)].join(`
231
+
232
+ `)}}}function Sv(e){return Oe(e,Sv,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(`
233
+ `)}}function NM(e){let t=[...new Set(e.map(r=>r.type))];if(t.length!==1)throw new Error("Multiple form elements with the same name must be of the same type");switch(t[0]){case"radio":{let r=e.find(n=>n.checked);return r?r.value:void 0}case"checkbox":return e.filter(r=>r.checked).map(r=>r.value);default:return e.map(r=>r.value)}}function IM(e,t){let r=[...e.querySelectorAll(`[name="${(0,uM.default)(t)}"]`)];if(r.length!==0)switch(r.length){case 1:return mv(r[0]);default:return NM(r)}}function jM(e){return/\[\]$/.test(e)?e.slice(0,-2):e}function qM(e){return Array.from(e.elements).map(t=>t.name).reduce((t,r)=>({...t,[jM(r)]:IM(e,r)}),{})}function Av(e,t){if(Oe(e,Av,this),!e.elements)throw new Error("toHaveFormValues must be called on a form or a fieldset");let r=qM(e);return{pass:Object.entries(t).every(([n,o])=>(0,id.default)(r[n],o,ad)),message:()=>{let n=this.isNot?"not to":"to",o=`${this.isNot?".not":""}.toHaveFormValues`,i=Object.keys(r).filter(a=>t.hasOwnProperty(a)).reduce((a,s)=>({...a,[s]:r[s]}),{});return[this.utils.matcherHint(o,"element",""),`Expected the element ${n} have form values`,this.utils.diff(t,i)].join(`
234
+
235
+ `)}}}function MM(e){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:r,visibility:n,opacity:o}=t(e);return r!=="none"&&n!=="hidden"&&n!=="collapse"&&o!=="0"&&o!==0}function kM(e,t){let r;return t?r=e.nodeName==="DETAILS"&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0:r=e.nodeName==="DETAILS"?e.hasAttribute("open"):!0,!e.hasAttribute("hidden")&&r}function Rv(e,t){return MM(e)&&kM(e,t)&&(!e.parentElement||Rv(e.parentElement,e))}function Ov(e){Oe(e,Ov,this);let t=e.ownerDocument===e.getRootNode({composed:!0}),r=t&&Rv(e);return{pass:r,message:()=>{let n=r?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeVisible`,"element",""),"",`Received element ${n} visible${t?"":" (element is not in the document)"}:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
236
+ `)}}}var LM=["fieldset","input","select","optgroup","option","button","textarea"];function DM(e,t){return Or(e)==="legend"&&Or(t)==="fieldset"&&e.isSameNode(Array.from(t.children).find(r=>Or(r)==="legend"))}function $M(e,t){return xv(t)&&!DM(e,t)}function BM(e){return e.includes("-")}function Pv(e){let t=Or(e);return LM.includes(t)||BM(t)}function xv(e){return Pv(e)&&e.hasAttribute("disabled")}function Cv(e){let t=e.parentElement;return!!t&&($M(e,t)||Cv(t))}function Nv(e){return Pv(e)&&(xv(e)||Cv(e))}function Iv(e){Oe(e,Iv,this);let t=Nv(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeDisabled`,"element",""),"",`Received element ${r} disabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
237
+ `)}}}function jv(e){Oe(e,jv,this);let t=!Nv(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEnabled`,"element",""),"",`Received element ${r} enabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
238
+ `)}}}var FM=["select","textarea"],UM=["input","select","textarea"],JM=["color","hidden","range","submit","image","reset"],VM=["checkbox","combobox","gridcell","listbox","radiogroup","spinbutton","textbox","tree"];function HM(e){return FM.includes(Or(e))&&e.hasAttribute("required")}function GM(e){return Or(e)==="input"&&e.hasAttribute("required")&&(e.hasAttribute("type")&&!JM.includes(e.getAttribute("type"))||!e.hasAttribute("type"))}function zM(e){return e.hasAttribute("aria-required")&&e.getAttribute("aria-required")==="true"&&(UM.includes(Or(e))||e.hasAttribute("role")&&VM.includes(e.getAttribute("role")))}function qv(e){Oe(e,qv,this);let t=HM(e)||GM(e)||zM(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeRequired`,"element",""),"",`Received element ${r} required:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
239
+ `)}}}var WM=["form","input","select","textarea"];function KM(e){return e.hasAttribute("aria-invalid")&&e.getAttribute("aria-invalid")!=="false"}function YM(e){return WM.includes(Or(e))}function Mv(e){let t=KM(e);return YM(e)?t||!e.checkValidity():t}function kv(e){Oe(e,kv,this);let t=Mv(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInvalid`,"element",""),"",`Received element ${r} currently invalid:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
240
+ `)}}}function Lv(e){Oe(e,Lv,this);let t=!Mv(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeValid`,"element",""),"",`Received element ${r} currently valid:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
241
+ `)}}}function Dv(e,t){if(Oe(e,Dv,this),e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.type))throw new Error("input with type=checkbox or type=radio cannot be used with .toHaveValue(). Use .toBeChecked() for type=checkbox or .toHaveFormValues() instead");let r=mv(e),n=t!==void 0,o=t,i=r;return t==r&&t!==r&&(o=`${t} (${typeof t})`,i=`${r} (${typeof r})`),{pass:n?(0,id.default)(r,t,ad):!!r,message:()=>{let a=this.isNot?"not to":"to",s=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveValue`,"element",t);return tt(this,s,`Expected the element ${a} have value`,n?o:"(any)","Received",i)}}}function $v(e,t){Oe(e,$v,this);let r=e.tagName.toLowerCase();if(!["select","input","textarea"].includes(r))throw new Error(".toHaveDisplayValue() currently supports only input, textarea or select elements, try with another matcher instead.");if(r==="input"&&["radio","checkbox"].includes(e.type))throw new Error(`.toHaveDisplayValue() currently does not support input[type="${e.type}"], try with another matcher instead.`);let n=XM(r,e),o=QM(t),i=o.filter(c=>n.some(u=>c instanceof RegExp?c.test(u):this.equals(u,String(c)))).length,a=i===n.length,s=i===o.length;return{pass:a&&s,message:()=>tt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDisplayValue`,"element",""),`Expected element ${this.isNot?"not ":""}to have display value`,t,"Received",n)}}function XM(e,t){return e==="select"?Array.from(t).filter(r=>r.selected).map(r=>r.textContent):[t.value]}function QM(e){return e instanceof Array?e:[e]}function Bv(e){Oe(e,Bv,this);let t=()=>e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.type),r=()=>Fv(e.getAttribute("role"))&&["true","false"].includes(e.getAttribute("aria-checked"));if(!t()&&!r())return{pass:!1,message:()=>`only inputs with type="checkbox" or type="radio" or elements with ${ZM()} 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 o=n()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeChecked`,"element",""),"",`Received element ${o} checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
242
+ `)}}}function ZM(){return bM(ek().map(e=>`role="${e}"`),{lastWordConnector:" or "})}function ek(){return od.roles.keys().filter(Fv)}function Fv(e){return od.roles.get(e)?.props["aria-checked"]!==void 0}function Uv(e){Oe(e,Uv,this);let t=()=>e.tagName.toLowerCase()==="input"&&e.type==="checkbox",r=()=>e.getAttribute("role")==="checkbox";if(!t()&&!r())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 o=e.getAttribute("aria-checked")==="mixed";return t()&&e.indeterminate||o};return{pass:n(),message:()=>{let o=n()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBePartiallyChecked`,"element",""),"",`Received element ${o} partially checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
243
+ `)}}}function Jv(e,t){us("toHaveDescription","Please use toHaveAccessibleDescription."),Oe(e,Jv,this);let r=t!==void 0,n=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean),o="";if(n.length>0){let i=e.ownerDocument,a=n.map(s=>i.getElementById(s)).filter(Boolean);o=cs(a.map(s=>s.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(o):this.equals(o,t):!!o,message:()=>{let i=this.isNot?"not to":"to";return tt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDescription`,"element",""),`Expected the element ${i} have description`,this.utils.printExpected(t),"Received",this.utils.printReceived(o))}}}function Vv(e,t){if(us("toHaveErrorMessage","Please use toHaveAccessibleErrorMessage."),Oe(e,Vv,this),!e.hasAttribute("aria-invalid")||e.getAttribute("aria-invalid")==="false"){let i=this.isNot?".not":"";return{pass:!1,message:()=>tt(this,this.utils.matcherHint(`${i}.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 r=t!==void 0,n=(e.getAttribute("aria-errormessage")||"").split(/\s+/).filter(Boolean),o="";if(n.length>0){let i=e.ownerDocument,a=n.map(s=>i.getElementById(s)).filter(Boolean);o=cs(a.map(s=>s.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(o):this.equals(o,t):!!o,message:()=>{let i=this.isNot?"not to":"to";return tt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveErrorMessage`,"element",""),`Expected the element ${i} have error message`,this.utils.printExpected(t),"Received",this.utils.printReceived(o))}}}function tk(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 r=t.getRangeAt(0),n=e.ownerDocument.createRange();if(t.containsNode(e,!1))n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n);else if(!(e.contains(t.anchorNode)&&e.contains(t.focusNode))){let i=e===r.startContainer||e.contains(r.startContainer),a=e===r.endContainer||e.contains(r.endContainer);t.removeAllRanges(),(i||a)&&(n.selectNodeContents(e),i&&n.setStart(r.startContainer,r.startOffset),a&&n.setEnd(r.endContainer,r.endOffset),t.addRange(n))}let o=t.toString();return t.removeAllRanges(),t.addRange(r),o}function Hv(e,t){Oe(e,Hv,this);let r=t!==void 0;if(r&&typeof t!="string")throw new Error("expected selection must be a string or undefined");let n=tk(e);return{pass:r?(0,id.default)(n,t,ad):!!n,message:()=>{let o=this.isNot?"not to":"to",i=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveSelection`,"element",t);return tt(this,i,`Expected the element ${o} have selection`,r?t:"(any)","Received",n)}}}Je(Sm(),1);Je(ju(),1);Je(Rm(),1);Je(Lm(),1);Je(Dm(),1);var Qs,Tf;function rk(){if(Tf)return Qs;Tf=1;var e,t,r,n,o,i,a,s,c,u,d,p,f,h,y,g,E,b,w;return f=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,p=/--|\+\+|=>|\.{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]+\})+/yu,y=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,d=/(?: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,g=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,w=/[\t\v\f\ufeff\p{Zs}]+/yu,s=/\r?\n|[\r\u2028\u2029]/y,c=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,h=/\/\/.*/y,r=/[<>.:={}]|\/(?![\/*])/y,t=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,n=/(['"])(?:(?!\1)[^])*(\1)?/y,o=/[^<>{}]+/y,b=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,E=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,i=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,a=/^(?:return|throw|yield)$/,u=RegExp(s.source),Qs=function*(P,{jsx:x=!1}={}){var C,S,_,T,A,D,k,U,I,R,M,L,J,W;for({length:D}=P,T=0,A="",W=[{tag:"JS"}],C=[],M=0,L=!1;T<D;){switch(U=W[W.length-1],U.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(P[T]==="/"&&(b.test(A)||i.test(A))&&(f.lastIndex=T,k=f.exec(P))){T=f.lastIndex,A=k[0],L=!0,yield{type:"RegularExpressionLiteral",value:k[0],closed:k[1]!==void 0&&k[1]!=="\\"};continue}if(p.lastIndex=T,k=p.exec(P)){switch(J=k[0],I=p.lastIndex,R=J,J){case"(":A==="?NonExpressionParenKeyword"&&W.push({tag:"JSNonExpressionParen",nesting:M}),M++,L=!1;break;case")":M--,L=!0,U.tag==="JSNonExpressionParen"&&M===U.nesting&&(W.pop(),R="?NonExpressionParenEnd",L=!1);break;case"{":p.lastIndex=0,_=!E.test(A)&&(b.test(A)||i.test(A)),C.push(_),L=!1;break;case"}":switch(U.tag){case"InterpolationInTemplate":if(C.length===U.nesting){g.lastIndex=T,k=g.exec(P),T=g.lastIndex,A=k[0],k[1]==="${"?(A="?InterpolationInTemplate",L=!1,yield{type:"TemplateMiddle",value:k[0]}):(W.pop(),L=!0,yield{type:"TemplateTail",value:k[0],closed:k[1]==="`"});continue}break;case"InterpolationInJSX":if(C.length===U.nesting){W.pop(),T+=1,A="}",yield{type:"JSXPunctuator",value:"}"};continue}}L=C.pop(),R=L?"?ExpressionBraceEnd":"}";break;case"]":L=!0;break;case"++":case"--":R=L?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(x&&(b.test(A)||i.test(A))){W.push({tag:"JSXTag"}),T+=1,A="<",yield{type:"JSXPunctuator",value:J};continue}L=!1;break;default:L=!1}T=I,A=R,yield{type:"Punctuator",value:J};continue}if(e.lastIndex=T,k=e.exec(P)){switch(T=e.lastIndex,R=k[0],k[0]){case"for":case"if":case"while":case"with":A!=="."&&A!=="?."&&(R="?NonExpressionParenKeyword")}A=R,L=!i.test(k[0]),yield{type:k[1]==="#"?"PrivateIdentifier":"IdentifierName",value:k[0]};continue}if(y.lastIndex=T,k=y.exec(P)){T=y.lastIndex,A=k[0],L=!0,yield{type:"StringLiteral",value:k[0],closed:k[2]!==void 0};continue}if(d.lastIndex=T,k=d.exec(P)){T=d.lastIndex,A=k[0],L=!0,yield{type:"NumericLiteral",value:k[0]};continue}if(g.lastIndex=T,k=g.exec(P)){T=g.lastIndex,A=k[0],k[1]==="${"?(A="?InterpolationInTemplate",W.push({tag:"InterpolationInTemplate",nesting:C.length}),L=!1,yield{type:"TemplateHead",value:k[0]}):(L=!0,yield{type:"NoSubstitutionTemplate",value:k[0],closed:k[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(r.lastIndex=T,k=r.exec(P)){switch(T=r.lastIndex,R=k[0],k[0]){case"<":W.push({tag:"JSXTag"});break;case">":W.pop(),A==="/"||U.tag==="JSXTagEnd"?(R="?JSX",L=!0):W.push({tag:"JSXChildren"});break;case"{":W.push({tag:"InterpolationInJSX",nesting:C.length}),R="?InterpolationInJSX",L=!1;break;case"/":A==="<"&&(W.pop(),W[W.length-1].tag==="JSXChildren"&&W.pop(),W.push({tag:"JSXTagEnd"}))}A=R,yield{type:"JSXPunctuator",value:k[0]};continue}if(t.lastIndex=T,k=t.exec(P)){T=t.lastIndex,A=k[0],yield{type:"JSXIdentifier",value:k[0]};continue}if(n.lastIndex=T,k=n.exec(P)){T=n.lastIndex,A=k[0],yield{type:"JSXString",value:k[0],closed:k[2]!==void 0};continue}break;case"JSXChildren":if(o.lastIndex=T,k=o.exec(P)){T=o.lastIndex,A=k[0],yield{type:"JSXText",value:k[0]};continue}switch(P[T]){case"<":W.push({tag:"JSXTag"}),T++,A="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":W.push({tag:"InterpolationInJSX",nesting:C.length}),T++,A="?InterpolationInJSX",L=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(w.lastIndex=T,k=w.exec(P)){T=w.lastIndex,yield{type:"WhiteSpace",value:k[0]};continue}if(s.lastIndex=T,k=s.exec(P)){T=s.lastIndex,L=!1,a.test(A)&&(A="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:k[0]};continue}if(c.lastIndex=T,k=c.exec(P)){T=c.lastIndex,u.test(k[0])&&(L=!1,a.test(A)&&(A="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:k[0],closed:k[1]!==void 0};continue}if(h.lastIndex=T,k=h.exec(P)){T=h.lastIndex,L=!1,yield{type:"SingleLineComment",value:k[0]};continue}S=String.fromCodePoint(P.codePointAt(T)),T+=S.length,A=S,L=!1,yield{type:U.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:S}}},Qs}var nk=rk();Wg(nk);var Gv={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(Gv.keyword);new Set(Gv.strict);var ok={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]},zv=Object.entries(ok);function ds(e){return String(e)}ds.open="";ds.close="";zv.reduce((e,[t])=>(e[t]=ds,e),{isColorSupported:!1});function ik(e=!1){let t=typeof process<"u"?process:void 0,r=t?.env||{},n=t?.argv||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||t?.platform==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function ak(e=!1){let t=ik(e),r=(a,s,c,u)=>{let d="",p=0;do d+=a.substring(p,u)+c,p=u+s.length,u=a.indexOf(s,p);while(~u);return d+a.substring(p)},n=(a,s,c=a)=>{let u=d=>{let p=String(d),f=p.indexOf(s,a.length);return~f?a+r(p,s,c,f)+s:a+p+s};return u.open=a,u.close=s,u},o={isColorSupported:t},i=a=>`\x1B[${a}m`;for(let[a,s]of zv)o[a]=t?n(i(s[0]),i(s[1]),s[2]):ds;return o}var bt=ak();function Wi(e,t){if(!e)throw new Error(t)}function bn(e,t){return typeof t===e}function sk(e){return e instanceof Promise}function Go(e,t,r){Object.defineProperty(e,t,r)}function _n(e,t,r){Go(e,t,{value:r,configurable:!0,writable:!0})}var Pr=Symbol.for("tinyspy:spy"),lk=new Set,uk=e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},ck=e=>(Go(e,Pr,{value:{reset:()=>uk(e[Pr])}}),e[Pr]),Zl=e=>e[Pr]||ck(e);function dk(e){Wi(bn("function",e)||bn("undefined",e),"cannot spy on a non-function value");let t=function(...n){let o=Zl(t);o.called=!0,o.callCount++,o.calls.push(n);let i=o.next.shift();if(i){o.results.push(i);let[d,p]=i;if(d==="ok")return p;throw p}let a,s="ok",c=o.results.length;if(o.impl)try{new.target?a=Reflect.construct(o.impl,n,new.target):a=o.impl.apply(this,n),s="ok"}catch(d){throw a=d,s="error",o.results.push([s,d]),d}let u=[s,a];return sk(a)&&a.then(d=>o.resolves[c]=["ok",d],d=>o.resolves[c]=["error",d]),o.results.push(u),a};_n(t,"_isMockFunction",!0),_n(t,"length",e?e.length:0),_n(t,"name",e&&e.name||"spy");let r=Zl(t);return r.reset(),r.impl=e,t}function pk(e){return!!e&&e._isMockFunction===!0}var Wv=(e,t)=>{let r=Object.getOwnPropertyDescriptor(e,t);if(r)return[e,r];let n=Object.getPrototypeOf(e);for(;n!==null;){let o=Object.getOwnPropertyDescriptor(n,t);if(o)return[n,o];n=Object.getPrototypeOf(n)}},Sf=(e,t)=>{t!=null&&typeof t=="function"&&t.prototype!=null&&Object.setPrototypeOf(e.prototype,t.prototype)};function Kv(e,t,r){Wi(!bn("undefined",e),"spyOn could not find an object to spy upon"),Wi(bn("object",e)||bn("function",e),"cannot spyOn on a primitive value");let[n,o]=(()=>{if(!bn("object",t))return[t,"value"];if("getter"in t&&"setter"in t)throw new Error("cannot spy on both getter and setter");if("getter"in t)return[t.getter,"get"];if("setter"in t)return[t.setter,"set"];throw new Error("specify getter or setter to spy on")})(),[i,a]=Wv(e,n)||[];Wi(a||n in e,`${String(n)} does not exist`);let s=!1;o==="value"&&a&&!a.value&&a.get&&(o="get",s=!0,r=a.get());let c;a?c=a[o]:o!=="value"?c=()=>e[n]:c=e[n],c&&yk(c)&&(c=c[Pr].getOriginal());let u=h=>{let{value:y,...g}=a||{configurable:!0,writable:!0};o!=="value"&&delete g.writable,g[o]=h,Go(e,n,g)},d=()=>{i!==e?Reflect.deleteProperty(e,n):a&&!c?Go(e,n,a):u(c)};r||(r=c);let p=mk(dk(r),r);o==="value"&&Sf(p,c);let f=p[Pr];return _n(f,"restore",d),_n(f,"getOriginal",()=>s?c():c),_n(f,"willCall",h=>(f.impl=h,p)),u(s?()=>(Sf(p,r),p):p),lk.add(p),p}var fk=new Set(["length","name","prototype"]);function hk(e){let t=new Set,r={};for(;e&&e!==Object.prototype&&e!==Function.prototype;){let n=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let o of n)r[o]||fk.has(o)||(t.add(o),r[o]=Object.getOwnPropertyDescriptor(e,o));e=Object.getPrototypeOf(e)}return{properties:t,descriptors:r}}function mk(e,t){if(!t||Pr in t)return e;let{properties:r,descriptors:n}=hk(t);for(let o of r){let i=n[o];Wv(e,o)||Go(e,o,i)}return e}function yk(e){return pk(e)&&"getOriginal"in e[Pr]}var bi=new Set;function Tn(e){return typeof e=="function"&&"_isMockFunction"in e&&e._isMockFunction}function gk(e,t,r){let n=r?{[{get:"getter",set:"setter"}[r]]:t}:t,o,i=vk(e,t),a=i&&i[r||"value"];Tn(a)&&(o=a.mock._state());try{let s=Kv(e,n),c=Yv(s);return o&&c.mock._state(o),c}catch(s){throw s instanceof TypeError&&Symbol.toStringTag&&e[Symbol.toStringTag]==="Module"&&(s.message.includes("Cannot redefine property")||s.message.includes("Cannot replace module namespace")||s.message.includes("can't redefine non-configurable property"))?new TypeError(`Cannot spy on export "${String(n)}". Module namespace is not configurable in ESM. See: https://vitest.dev/guide/browser/#limitations`,{cause:s}):s}}var bk=0;function Yv(e){let t=e,r,n=[],o=!1,i=[],a=[],s=[],c=Zl(e),u={get calls(){return c.calls},get contexts(){return a},get instances(){return i},get invocationCallOrder(){return s},get results(){return c.results.map(([h,y])=>({type:h==="error"?"throw":"return",value:y}))},get settledResults(){return c.resolves.map(([h,y])=>({type:h==="error"?"rejected":"fulfilled",value:y}))},get lastCall(){return c.calls[c.calls.length-1]},_state(h){return h&&(r=h.implementation,n=h.onceImplementations,o=h.implementationChangedTemporarily),{implementation:r,onceImplementations:n,implementationChangedTemporarily:o}}};function d(...h){return i.push(this),a.push(this),s.push(++bk),(o?r:n.shift()||r||c.getOriginal()||(()=>{})).apply(this,h)}let p=t.name;t.getMockName=()=>p||"vi.fn()",t.mockName=h=>(p=h,t),t.mockClear=()=>(c.reset(),i=[],a=[],s=[],t),t.mockReset=()=>(t.mockClear(),r=void 0,n=[],t),t.mockRestore=()=>(t.mockReset(),c.restore(),t),Symbol.dispose&&(t[Symbol.dispose]=()=>t.mockRestore()),t.getMockImplementation=()=>o?r:n.at(0)||r,t.mockImplementation=h=>(r=h,c.willCall(d),t),t.mockImplementationOnce=h=>(n.push(h),t);function f(h,y){let g=r;r=h,c.willCall(d),o=!0;let E=()=>{r=g,o=!1},b=y();return typeof b=="object"&&b&&typeof b.then=="function"?b.then(()=>(E(),t)):(E(),t)}return t.withImplementation=f,t.mockReturnThis=()=>t.mockImplementation(function(){return this}),t.mockReturnValue=h=>t.mockImplementation(()=>h),t.mockReturnValueOnce=h=>t.mockImplementationOnce(()=>h),t.mockResolvedValue=h=>t.mockImplementation(()=>Promise.resolve(h)),t.mockResolvedValueOnce=h=>t.mockImplementationOnce(()=>Promise.resolve(h)),t.mockRejectedValue=h=>t.mockImplementation(()=>Promise.reject(h)),t.mockRejectedValueOnce=h=>t.mockImplementationOnce(()=>Promise.reject(h)),Object.defineProperty(t,"mock",{get:()=>u}),c.willCall(d),bi.add(t),t}function Af(e){let t=Yv(Kv({spy:e||function(){}},"spy"));return e&&t.mockImplementation(e),t}function vk(e,t){let r=Object.getOwnPropertyDescriptor(e,t);if(r)return r;let n=Object.getPrototypeOf(e);for(;n!==null;){let o=Object.getOwnPropertyDescriptor(n,t);if(o)return o;n=Object.getPrototypeOf(n)}}var zo=Symbol.for("matchers-object"),Wo=Symbol.for("$$jest-matchers-object-storybook"),sd=Symbol.for("expect-global"),eu=Symbol.for("asymmetric-matchers-object"),Ek={toSatisfy(e,t,r){let{printReceived:n,printExpected:o,matcherHint:i}=this.utils,a=t(e);return{pass:a,message:()=>a?`${i(".not.toSatisfy","received","")}
244
+
245
+ Expected value to not satisfy:
246
+ ${r||o(t)}
247
+ Received:
248
+ ${n(e)}`:`${i(".toSatisfy","received","")}
249
+
250
+ Expected value to satisfy:
251
+ ${r||o(t)}
252
+
253
+ Received:
254
+ ${n(e)}`}},toBeOneOf(e,t){let{equals:r,customTesters:n}=this,{printReceived:o,printExpected:i,matcherHint:a}=this.utils;if(!Array.isArray(t))throw new TypeError(`You must provide an array to ${a(".toBeOneOf")}, not '${typeof t}'.`);let s=t.length===0||t.some(c=>r(c,e,n));return{pass:s,message:()=>s?`${a(".not.toBeOneOf","received","")}
255
+
256
+ Expected value to not be one of:
257
+ ${i(t)}
258
+ Received:
259
+ ${o(e)}`:`${a(".toBeOneOf","received","")}
260
+
261
+ Expected value to be one of:
262
+ ${i(t)}
263
+
264
+ Received:
265
+ ${o(e)}`}}},ya=bt.green,ld=bt.red,wk=bt.inverse,_k=bt.bold,br=bt.dim;function Tk(e,t="received",r="expected",n={}){let{comment:o="",isDirectExpectCall:i=!1,isNot:a=!1,promise:s="",secondArgument:c="",expectedColor:u=ya,receivedColor:d=ld,secondArgumentColor:p=ya}=n,f="",h="expect";return!i&&t!==""&&(f+=br(`${h}(`)+d(t),h=")"),s!==""&&(f+=br(`${h}.`)+s,h=""),a&&(f+=`${br(`${h}.`)}not`,h=""),e.includes(".")?h+=e:(f+=br(`${h}.`)+e,h=""),r===""?h+="()":(f+=br(`${h}(`)+u(r),c&&(f+=br(", ")+p(c)),h=")"),o!==""&&(h+=` // ${o}`),h!==""&&(f+=br(h)),f}var Sk="·";function Xv(e){return e.replace(/\s+$/gm,t=>Sk.repeat(t.length))}function Ak(e){return ld(Xv(Et(e)))}function Rk(e){return ya(Xv(Et(e)))}function Qv(){return{EXPECTED_COLOR:ya,RECEIVED_COLOR:ld,INVERTED_COLOR:wk,BOLD_WEIGHT:_k,DIM_COLOR:br,diff:Hn,matcherHint:Tk,printReceived:Ak,printExpected:Rk,printDiffOrStringify:ub,printWithType:Ok}}function Ok(e,t,r){let n=sa(t),o=n!=="null"&&n!=="undefined"?`${e} has type: ${n}
266
+ `:"",i=`${e} has value: ${r(t)}`;return o+i}function ud(){return globalThis[Wo].customEqualityTesters}function Ae(e,t,r,n){return r=r||[],Co(e,t,[],[],r,n?Zv:Ck)}function Rf(e){return!!e&&typeof e=="object"&&"asymmetricMatch"in e&&kt("Function",e.asymmetricMatch)}function Pk(e,t){let r=Rf(e),n=Rf(t);if(!(r&&n)){if(r)return e.asymmetricMatch(t);if(n)return t.asymmetricMatch(e)}}function Co(e,t,r,n,o,i){let a=!0,s=Pk(e,t);if(s!==void 0)return s;let c={equals:Ae};for(let y=0;y<o.length;y++){let g=o[y].call(c,e,t,o);if(g!==void 0)return g}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 u=Object.prototype.toString.call(e);if(u!==Object.prototype.toString.call(t))return!1;switch(u){case"[object Boolean]":case"[object String]":case"[object Number]":return typeof e!=typeof t?!1:typeof e!="object"&&typeof t!="object"?Object.is(e,t):Object.is(e.valueOf(),t.valueOf());case"[object Date]":{let y=+e,g=+t;return y===g||Number.isNaN(y)&&Number.isNaN(g)}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(Pf(e)&&Pf(t))return e.isEqualNode(t);let d=r.length;for(;d--;){if(r[d]===e)return n[d]===t;if(n[d]===t)return!1}if(r.push(e),n.push(t),u==="[object Array]"&&e.length!==t.length)return!1;if(e instanceof Error&&t instanceof Error)try{return xk(e,t,r,n,o,i)}finally{r.pop(),n.pop()}let p=Of(e,i),f,h=p.length;if(Of(t,i).length!==h)return!1;for(;h--;)if(f=p[h],a=i(t,f)&&Co(e[f],t[f],r,n,o,i),!a)return!1;return r.pop(),n.pop(),a}function xk(e,t,r,n,o,i){let a=Object.getPrototypeOf(e)===Object.getPrototypeOf(t)&&e.name===t.name&&e.message===t.message;return typeof t.cause<"u"&&a&&(a=Co(e.cause,t.cause,r,n,o,i)),e instanceof AggregateError&&t instanceof AggregateError&&a&&(a=Co(e.errors,t.errors,r,n,o,i)),a&&(a=Co({...e},{...t},r,n,o,i)),a}function Of(e,t){let r=[];for(let n in e)t(e,n)&&r.push(n);return r.concat(Object.getOwnPropertySymbols(e).filter(n=>Object.getOwnPropertyDescriptor(e,n).enumerable))}function Ck(e,t){return Zv(e,t)&&e[t]!==void 0}function Zv(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function kt(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}function Pf(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"&&"nodeName"in e&&typeof e.nodeName=="string"&&"isEqualNode"in e&&typeof e.isEqualNode=="function"}var eE="@@__IMMUTABLE_KEYED__@@",tE="@@__IMMUTABLE_SET__@@",Nk="@@__IMMUTABLE_LIST__@@",ps="@@__IMMUTABLE_ORDERED__@@",Ik="@@__IMMUTABLE_RECORD__@@";function jk(e){return!!(e&&e[eE]&&!e[ps])}function qk(e){return!!(e&&e[tE]&&!e[ps])}function fs(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function Mk(e){return!!(e&&fs(e)&&e[Nk])}function kk(e){return!!(e&&fs(e)&&e[eE]&&e[ps])}function Lk(e){return!!(e&&fs(e)&&e[tE]&&e[ps])}function Dk(e){return!!(e&&fs(e)&&e[Ik])}var rE=Symbol.iterator;function xf(e){return!!(e!=null&&e[rE])}function Rt(e,t,r=[],n=[],o=[]){if(typeof e!="object"||typeof t!="object"||Array.isArray(e)||Array.isArray(t)||!xf(e)||!xf(t))return;if(e.constructor!==t.constructor)return!1;let i=n.length;for(;i--;)if(n[i]===e)return o[i]===t;n.push(e),o.push(t);let a=[...r.filter(u=>u!==Rt),s];function s(u,d){return Rt(u,d,[...r],[...n],[...o])}if(e.size!==void 0){if(e.size!==t.size)return!1;if(kt("Set",e)||qk(e)){let u=!0;for(let d of e)if(!t.has(d)){let p=!1;for(let f of t)Ae(d,f,a)===!0&&(p=!0);if(p===!1){u=!1;break}}return n.pop(),o.pop(),u}else if(kt("Map",e)||jk(e)){let u=!0;for(let d of e)if(!t.has(d[0])||!Ae(d[1],t.get(d[0]),a)){let p=!1;for(let f of t){let h=Ae(d[0],f[0],a),y=!1;h===!0&&(y=Ae(d[1],f[1],a)),y===!0&&(p=!0)}if(p===!1){u=!1;break}}return n.pop(),o.pop(),u}}let c=t[rE]();for(let u of e){let d=c.next();if(d.done||!Ae(u,d.value,a))return!1}if(!c.next().done)return!1;if(!Mk(e)&&!kk(e)&&!Lk(e)&&!Dk(e)){let u=Object.entries(e),d=Object.entries(t);if(!Ae(u,d,a))return!1}return n.pop(),o.pop(),!0}function cd(e,t){return!e||typeof e!="object"||e===Object.prototype?!1:Object.prototype.hasOwnProperty.call(e,t)||cd(Object.getPrototypeOf(e),t)}function $k(e){return Gi(e)&&!(e instanceof Error)&&!Array.isArray(e)&&!(e instanceof Date)}function vi(e,t,r=[]){let n=r.filter(i=>i!==vi),o=(i=new WeakMap)=>(a,s)=>{if($k(s))return Object.keys(s).every(c=>{if(s[c]!=null&&typeof s[c]=="object"){if(i.has(s[c]))return Ae(a[c],s[c],n);i.set(s[c],!0)}let u=a!=null&&cd(a,c)&&Ae(a[c],s[c],[...n,o(i)]);return i.delete(s[c]),u})};return o()(e,t)}function Cf(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return!1}function Nf(e,t){let r=e,n=t;if(!(e instanceof DataView&&t instanceof DataView)){if(!(e instanceof ArrayBuffer)||!(t instanceof ArrayBuffer))return;try{r=new DataView(e),n=new DataView(t)}catch{return}}if(r.byteLength!==n.byteLength)return!1;for(let o=0;o<r.byteLength;o++)if(r.getUint8(o)!==n.getUint8(o))return!1;return!0}function tu(e,t,r=[]){if(!Array.isArray(e)||!Array.isArray(t))return;let n=Object.keys(e),o=Object.keys(t),i=r.filter(a=>a!==tu);return Ae(e,t,i,!0)&&Ae(n,o)}function Bk(e,t="#{this}",r="#{exp}"){let n=`expected ${t} to be ${r} // Object.is equality`;return["toStrictEqual","toEqual"].includes(e)?`${n}
267
+
268
+ If it should pass with deep equality, replace "toBe" with "${e}"
269
+
270
+ Expected: ${t}
271
+ Received: serializes to the same string
272
+ `:n}function Fk(e,t){return`${t} ${e}${t===1?"":"s"}`}function Zs(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>{var r;return(r=Object.getOwnPropertyDescriptor(e,t))===null||r===void 0?void 0:r.enumerable})]}function Uk(e,t,r){let n=0,o=(i=new WeakMap)=>(a,s)=>{if(Array.isArray(a)){if(Array.isArray(s)&&s.length===a.length)return s.map((c,u)=>o(i)(a[u],c))}else{if(a instanceof Date)return a;if(Gi(a)&&Gi(s)){if(Ae(a,s,[...r,Rt,vi]))return s;let c={};i.set(a,c),typeof a.constructor=="function"&&typeof a.constructor.name=="string"&&Object.defineProperty(c,"constructor",{enumerable:!1,value:a.constructor});for(let u of Zs(a))cd(s,u)?c[u]=i.has(a[u])?i.get(a[u]):o(i)(a[u],s[u]):i.has(a[u])||(n+=1,Gi(a[u])&&(n+=Zs(a[u]).length),o(i)(a[u],s[u]));if(Zs(c).length>0)return c}}return a};return{subset:o()(e,t),stripped:n}}if(!Object.prototype.hasOwnProperty.call(globalThis,zo)){let e=new WeakMap;Object.defineProperty(globalThis,zo,{get:()=>e})}if(!Object.prototype.hasOwnProperty.call(globalThis,Wo)){let e=Object.create(null),t=[];Object.defineProperty(globalThis,Wo,{configurable:!0,get:()=>({state:globalThis[zo].get(globalThis[sd]),matchers:e,customEqualityTesters:t})})}if(!Object.prototype.hasOwnProperty.call(globalThis,eu)){let e=Object.create(null);Object.defineProperty(globalThis,eu,{get:()=>e})}function ga(e){return globalThis[zo].get(e)}function el(e,t){let r=globalThis[zo],n=r.get(t)||{},o=Object.defineProperties(n,{...Object.getOwnPropertyDescriptors(n),...Object.getOwnPropertyDescriptors(e)});r.set(t,o)}var cr=class{$$typeof=Symbol.for("jest.asymmetricMatcher");constructor(e,t=!1){this.sample=e,this.inverse=t}getMatcherContext(e){return{...ga(e||globalThis[sd]),equals:Ae,isNot:this.inverse,customTesters:ud(),utils:{...Qv(),diff:Hn,stringify:Et,iterableEquality:Rt,subsetEquality:vi}}}};cr.prototype[Symbol.for("chai/inspect")]=function(e){let t=Et(this,e.depth,{min:!0});return t.length<=e.truncate?t:`${this.toString()}{…}`};var If=class extends cr{constructor(e,t=!1){if(!kt("String",e))throw new Error("Expected is not a string");super(e,t)}asymmetricMatch(e){let t=kt("String",e)&&e.includes(this.sample);return this.inverse?!t:t}toString(){return`String${this.inverse?"Not":""}Containing`}getExpectedType(){return"string"}},Jk=class extends cr{asymmetricMatch(e){return e!=null}toString(){return"Anything"}toAsymmetricMatcher(){return"Anything"}},jf=class extends cr{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 new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let t=!0,r=this.getMatcherContext();for(let n in this.sample)if(!this.hasProperty(e,n)||!Ae(this.sample[n],e[n],r.customTesters)){t=!1;break}return this.inverse?!t:t}toString(){return`Object${this.inverse?"Not":""}Containing`}getExpectedType(){return"object"}},qf=class extends cr{constructor(e,t=!1){super(e,t)}asymmetricMatch(e){if(!Array.isArray(this.sample))throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);let t=this.getMatcherContext(),r=this.sample.length===0||Array.isArray(e)&&this.sample.every(n=>e.some(o=>Ae(n,o,t.customTesters)));return this.inverse?!r:r}toString(){return`Array${this.inverse?"Not":""}Containing`}getExpectedType(){return"array"}},Vk=class extends cr{constructor(e){if(typeof e>"u")throw new 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)}>`}},Mf=class extends cr{constructor(e,t=!1){if(!kt("String",e)&&!kt("RegExp",e))throw new Error("Expected is not a String or a RegExp");super(new RegExp(e),t)}asymmetricMatch(e){let t=kt("String",e)&&this.sample.test(e);return this.inverse?!t:t}toString(){return`String${this.inverse?"Not":""}Matching`}getExpectedType(){return"string"}},kf=class extends cr{precision;constructor(e,t=2,r=!1){if(!kt("Number",e))throw new Error("Expected is not a Number");if(!kt("Number",t))throw new Error("Precision is not a Number");super(e),this.inverse=r,this.precision=t}asymmetricMatch(e){if(!kt("Number",e))return!1;let t=!1;return e===Number.POSITIVE_INFINITY&&this.sample===Number.POSITIVE_INFINITY||e===Number.NEGATIVE_INFINITY&&this.sample===Number.NEGATIVE_INFINITY?t=!0:t=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,`(${Fk("digit",this.precision)})`].join(" ")}},Hk=(e,t)=>{t.addMethod(e.expect,"anything",()=>new Jk),t.addMethod(e.expect,"any",r=>new Vk(r)),t.addMethod(e.expect,"stringContaining",r=>new If(r)),t.addMethod(e.expect,"objectContaining",r=>new jf(r)),t.addMethod(e.expect,"arrayContaining",r=>new qf(r)),t.addMethod(e.expect,"stringMatching",r=>new Mf(r)),t.addMethod(e.expect,"closeTo",(r,n)=>new kf(r,n)),e.expect.not={stringContaining:r=>new If(r,!0),objectContaining:r=>new jf(r,!0),arrayContaining:r=>new qf(r,!0),stringMatching:r=>new Mf(r,!0),closeTo:(r,n)=>new kf(r,n,!0)}};function Lf(e,t,r){let n=e.flag(t,"negate")?"not.":"",o=`${e.flag(t,"_name")}(${r?"expected":""})`,i=e.flag(t,"promise");return`expect(actual)${i?`.${i}`:""}.${n}${o}`}function Df(e,t,r,n){let o=e;if(o&&t instanceof Promise){t=t.finally(()=>{if(!o.promises)return;let a=o.promises.indexOf(t);a!==-1&&o.promises.splice(a,1)}),o.promises||(o.promises=[]),o.promises.push(t);let i=!1;return o.onFinished??(o.onFinished=[]),o.onFinished.push(()=>{if(!i){var a;let s=(((a=globalThis.__vitest_worker__)===null||a===void 0?void 0:a.onFilterStackTrace)||(c=>c||""))(n.stack);console.warn([`Promise returned by \`${r}\` 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.
273
+ `,s].join(""))}}),{then(a,s){return i=!0,t.then(a,s)},catch(a){return t.catch(a)},finally(a){return t.finally(a)},[Symbol.toStringTag]:"Promise"}}return t}function $f(e,t){var r;e.result||(e.result={state:"fail"}),e.result.state="fail",(r=e.result).errors||(r.errors=[]),e.result.errors.push(Ec(t))}function nE(e,t,r){return function(...n){if(t!=="withTest"&&e.flag(this,"_name",t),!e.flag(this,"soft"))return r.apply(this,n);let o=e.flag(this,"vitest-test");if(!o)throw new Error("expect.soft() can only be used inside a test");try{let i=r.apply(this,n);return i&&typeof i=="object"&&typeof i.then=="function"?i.then(XI,a=>{$f(o,a)}):i}catch(i){$f(o,i)}}}var Gk=(e,t)=>{let{AssertionError:r}=e,n=ud();function o(u,d){let p=f=>{let h=nE(t,f,d);t.addMethod(e.Assertion.prototype,f,h),t.addMethod(globalThis[Wo].matchers,f,h)};Array.isArray(u)?u.forEach(f=>p(f)):p(u)}["throw","throws","Throw"].forEach(u=>{t.overwriteMethod(e.Assertion.prototype,u,d=>function(...p){let f=t.flag(this,"promise"),h=t.flag(this,"object"),y=t.flag(this,"negate");if(f==="rejects")t.flag(this,"object",()=>{throw h});else if(f==="resolves"&&typeof h!="function"){if(y)return;{let g=t.flag(this,"message")||"expected promise to throw an error, but it didn't",E={showDiff:!1};throw new r(g,E,t.flag(this,"ssfi"))}}d.apply(this,p)})}),o("withTest",function(u){return t.flag(this,"vitest-test",u),this}),o("toEqual",function(u){let d=t.flag(this,"object"),p=Ae(d,u,[...n,Rt]);return this.assert(p,"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",u,d)}),o("toStrictEqual",function(u){let d=t.flag(this,"object"),p=Ae(d,u,[...n,Rt,Cf,tu,Nf],!0);return this.assert(p,"expected #{this} to strictly equal #{exp}","expected #{this} to not strictly equal #{exp}",u,d)}),o("toBe",function(u){let d=this._obj,p=Object.is(d,u),f="";return p||(Ae(d,u,[...n,Rt,Cf,tu,Nf],!0)?f="toStrictEqual":Ae(d,u,[...n,Rt])&&(f="toEqual")),this.assert(p,Bk(f),"expected #{this} not to be #{exp} // Object.is equality",u,d)}),o("toMatchObject",function(u){let d=this._obj,p=Ae(d,u,[...n,Rt,vi]),f=t.flag(this,"negate"),{subset:h,stripped:y}=Uk(d,u,n);if(p&&f||!p&&!f){let g=t.getMessage(this,[p,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",u,h,!1]),E=y===0?g:`${g}
274
+ (${y} matching ${y===1?"property":"properties"} omitted from actual)`;throw new r(E,{showDiff:!0,expected:u,actual:h})}}),o("toMatch",function(u){let d=this._obj;if(typeof d!="string")throw new TypeError(`.toMatch() expects to receive a string, but got ${typeof d}`);return this.assert(typeof u=="string"?d.includes(u):d.match(u),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",u,d)}),o("toContain",function(u){let d=this._obj;if(typeof Node<"u"&&d instanceof Node){if(!(u instanceof Node))throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof u}`);return this.assert(d.contains(u),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",u,d)}if(typeof DOMTokenList<"u"&&d instanceof DOMTokenList){Kt(u,"class name",["string"]);let p=t.flag(this,"negate")?d.value.replace(u,"").trim():`${d.value} ${u}`;return this.assert(d.contains(u),`expected "${d.value}" to contain "${u}"`,`expected "${d.value}" not to contain "${u}"`,p,d.value)}return typeof d=="string"&&typeof u=="string"?this.assert(d.includes(u),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",u,d):(d!=null&&typeof d!="string"&&t.flag(this,"object",Array.from(d)),this.contain(u))}),o("toContainEqual",function(u){let d=t.flag(this,"object"),p=Array.from(d).findIndex(f=>Ae(f,u,n));this.assert(p!==-1,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",u)}),o("toBeTruthy",function(){let u=t.flag(this,"object");this.assert(!!u,"expected #{this} to be truthy","expected #{this} to not be truthy",!0,u)}),o("toBeFalsy",function(){let u=t.flag(this,"object");this.assert(!u,"expected #{this} to be falsy","expected #{this} to not be falsy",!1,u)}),o("toBeGreaterThan",function(u){let d=this._obj;return Kt(d,"actual",["number","bigint"]),Kt(u,"expected",["number","bigint"]),this.assert(d>u,`expected ${d} to be greater than ${u}`,`expected ${d} to be not greater than ${u}`,u,d,!1)}),o("toBeGreaterThanOrEqual",function(u){let d=this._obj;return Kt(d,"actual",["number","bigint"]),Kt(u,"expected",["number","bigint"]),this.assert(d>=u,`expected ${d} to be greater than or equal to ${u}`,`expected ${d} to be not greater than or equal to ${u}`,u,d,!1)}),o("toBeLessThan",function(u){let d=this._obj;return Kt(d,"actual",["number","bigint"]),Kt(u,"expected",["number","bigint"]),this.assert(d<u,`expected ${d} to be less than ${u}`,`expected ${d} to be not less than ${u}`,u,d,!1)}),o("toBeLessThanOrEqual",function(u){let d=this._obj;return Kt(d,"actual",["number","bigint"]),Kt(u,"expected",["number","bigint"]),this.assert(d<=u,`expected ${d} to be less than or equal to ${u}`,`expected ${d} to be not less than or equal to ${u}`,u,d,!1)}),o("toBeNaN",function(){let u=t.flag(this,"object");this.assert(Number.isNaN(u),"expected #{this} to be NaN","expected #{this} not to be NaN",Number.NaN,u)}),o("toBeUndefined",function(){let u=t.flag(this,"object");this.assert(u===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined",void 0,u)}),o("toBeNull",function(){let u=t.flag(this,"object");this.assert(u===null,"expected #{this} to be null","expected #{this} not to be null",null,u)}),o("toBeDefined",function(){let u=t.flag(this,"object");this.assert(typeof u<"u","expected #{this} to be defined","expected #{this} to be undefined",u)}),o("toBeTypeOf",function(u){let d=typeof this._obj,p=u===d;return this.assert(p,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",u,d)}),o("toBeInstanceOf",function(u){return this.instanceOf(u)}),o("toHaveLength",function(u){return this.have.length(u)}),o("toHaveProperty",function(...u){Array.isArray(u[0])&&(u[0]=u[0].map(w=>String(w).replace(/([.[\]])/g,"\\$1")).join("."));let d=this._obj,[p,f]=u,h=()=>Object.prototype.hasOwnProperty.call(d,p)?{value:d[p],exists:!0}:t.getPathInfo(d,p),{value:y,exists:g}=h(),E=g&&(u.length===1||Ae(f,y,n)),b=u.length===1?"":` with value ${t.objDisplay(f)}`;return this.assert(E,`expected #{this} to have property "${p}"${b}`,`expected #{this} to not have property "${p}"${b}`,f,g?y:void 0)}),o("toBeCloseTo",function(u,d=2){let p=this._obj,f=!1,h=0,y=0;return u===Number.POSITIVE_INFINITY&&p===Number.POSITIVE_INFINITY||u===Number.NEGATIVE_INFINITY&&p===Number.NEGATIVE_INFINITY?f=!0:(h=10**-d/2,y=Math.abs(p-u),f=y<h),this.assert(f,`expected #{this} to be close to #{exp}, received difference is ${y}, but expected ${h}`,`expected #{this} to not be close to #{exp}, received difference is ${y}, but expected ${h}`,u,p,!1)});function i(u){if(!Tn(u._obj))throw new TypeError(`${t.inspect(u._obj)} is not a spy or a call to a spy!`)}function a(u){return i(u),u._obj}o(["toHaveBeenCalledTimes","toBeCalledTimes"],function(u){let d=a(this),p=d.getMockName(),f=d.mock.calls.length;return this.assert(f===u,`expected "${p}" to be called #{exp} times, but got ${f} times`,`expected "${p}" to not be called #{exp} times`,u,f,!1)}),o("toHaveBeenCalledOnce",function(){let u=a(this),d=u.getMockName(),p=u.mock.calls.length;return this.assert(p===1,`expected "${d}" to be called once, but got ${p} times`,`expected "${d}" to not be called once`,1,p,!1)}),o(["toHaveBeenCalled","toBeCalled"],function(){let u=a(this),d=u.getMockName(),p=u.mock.calls.length,f=p>0,h=t.flag(this,"negate"),y=t.getMessage(this,[f,`expected "${d}" to be called at least once`,`expected "${d}" to not be called at all, but actually been called ${p} times`,!0,f]);if(f&&h&&(y=tl(u,y)),f&&h||!f&&!h)throw new r(y)});function s(u,d){return u.length===d.length&&u.every((p,f)=>Ae(p,d[f],[...n,Rt]))}o(["toHaveBeenCalledWith","toBeCalledWith"],function(...u){let d=a(this),p=d.getMockName(),f=d.mock.calls.some(g=>s(g,u)),h=t.flag(this,"negate"),y=t.getMessage(this,[f,`expected "${p}" to be called with arguments: #{exp}`,`expected "${p}" to not be called with arguments: #{exp}`,u]);if(f&&h||!f&&!h)throw new r(tl(d,y,u))}),o("toHaveBeenCalledExactlyOnceWith",function(...u){let d=a(this),p=d.getMockName(),f=d.mock.calls.length,h=d.mock.calls.some(E=>s(E,u))&&f===1,y=t.flag(this,"negate"),g=t.getMessage(this,[h,`expected "${p}" to be called once with arguments: #{exp}`,`expected "${p}" to not be called once with arguments: #{exp}`,u]);if(h&&y||!h&&!y)throw new r(tl(d,g,u))}),o(["toHaveBeenNthCalledWith","nthCalledWith"],function(u,...d){let p=a(this),f=p.getMockName(),h=p.mock.calls[u-1],y=p.mock.calls.length,g=u<=y;this.assert(h&&s(h,d),`expected ${No(u)} "${f}" call to have been called with #{exp}${g?"":`, but called only ${y} times`}`,`expected ${No(u)} "${f}" call to not have been called with #{exp}`,d,h,g)}),o(["toHaveBeenLastCalledWith","lastCalledWith"],function(...u){let d=a(this),p=d.getMockName(),f=d.mock.calls[d.mock.calls.length-1];this.assert(f&&s(f,u),`expected last "${p}" call to have been called with #{exp}`,`expected last "${p}" call to not have been called with #{exp}`,u,f)});function c(u,d,p){let f=u.mock.invocationCallOrder,h=d.mock.invocationCallOrder;return f.length===0?!p:h.length===0?!1:f[0]<h[0]}o(["toHaveBeenCalledBefore"],function(u,d=!0){let p=a(this);if(!Tn(u))throw new TypeError(`${t.inspect(u)} is not a spy or a call to a spy`);this.assert(c(p,u,d),`expected "${p.getMockName()}" to have been called before "${u.getMockName()}"`,`expected "${p.getMockName()}" to not have been called before "${u.getMockName()}"`,u,p)}),o(["toHaveBeenCalledAfter"],function(u,d=!0){let p=a(this);if(!Tn(u))throw new TypeError(`${t.inspect(u)} is not a spy or a call to a spy`);this.assert(c(u,p,d),`expected "${p.getMockName()}" to have been called after "${u.getMockName()}"`,`expected "${p.getMockName()}" to not have been called after "${u.getMockName()}"`,u,p)}),o(["toThrow","toThrowError"],function(u){if(typeof u=="string"||typeof u>"u"||u instanceof RegExp)return this.throws(u===""?/^$/:u);let d=this._obj,p=t.flag(this,"promise"),f=t.flag(this,"negate"),h=null;if(p==="rejects")h=d;else if(p==="resolves"&&typeof d!="function"){if(f)return;{let y=t.flag(this,"message")||"expected promise to throw an error, but it didn't",g={showDiff:!1};throw new r(y,g,t.flag(this,"ssfi"))}}else{let y=!1;try{d()}catch(g){y=!0,h=g}if(!y&&!f){let g=t.flag(this,"message")||"expected function to throw an error, but it didn't",E={showDiff:!1};throw new r(g,E,t.flag(this,"ssfi"))}}if(typeof u=="function"){let y=u.name||u.prototype.constructor.name;return this.assert(h&&h instanceof u,`expected error to be instance of ${y}`,`expected error not to be instance of ${y}`,u,h)}if(u instanceof Error){let y=Ae(h,u,[...n,Rt]);return this.assert(y,"expected a thrown error to be #{exp}","expected a thrown error not to be #{exp}",u,h)}if(typeof u=="object"&&"asymmetricMatch"in u&&typeof u.asymmetricMatch=="function"){let y=u;return this.assert(h&&y.asymmetricMatch(h),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",y,h)}throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof u}"`)}),[{name:"toHaveResolved",condition:u=>u.mock.settledResults.length>0&&u.mock.settledResults.some(({type:d})=>d==="fulfilled"),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:u=>u.mock.calls.length>0&&u.mock.results.some(({type:d})=>d!=="throw"),action:"called"}].forEach(({name:u,condition:d,action:p})=>{o(u,function(){let f=a(this),h=f.getMockName(),y=d(f);this.assert(y,`expected "${h}" to be successfully ${p} at least once`,`expected "${h}" to not be successfully ${p}`,y,!y,!1)})}),[{name:"toHaveResolvedTimes",condition:(u,d)=>u.mock.settledResults.reduce((p,{type:f})=>f==="fulfilled"?++p:p,0)===d,action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:(u,d)=>u.mock.results.reduce((p,{type:f})=>f==="throw"?p:++p,0)===d,action:"called"}].forEach(({name:u,condition:d,action:p})=>{o(u,function(f){let h=a(this),y=h.getMockName(),g=d(h,f);this.assert(g,`expected "${y}" to be successfully ${p} ${f} times`,`expected "${y}" to not be successfully ${p} ${f} times`,`expected resolved times: ${f}`,`received resolved times: ${g}`,!1)})}),[{name:"toHaveResolvedWith",condition:(u,d)=>u.mock.settledResults.some(({type:p,value:f})=>p==="fulfilled"&&Ae(d,f)),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:(u,d)=>u.mock.results.some(({type:p,value:f})=>p==="return"&&Ae(d,f)),action:"return"}].forEach(({name:u,condition:d,action:p})=>{o(u,function(f){let h=a(this),y=d(h,f),g=t.flag(this,"negate");if(y&&g||!y&&!g){let E=h.getMockName(),b=t.getMessage(this,[y,`expected "${E}" to ${p} with: #{exp} at least once`,`expected "${E}" to not ${p} with: #{exp}`,f]),w=p==="return"?h.mock.results:h.mock.settledResults;throw new r(zk(h,w,b,f))}})}),[{name:"toHaveLastResolvedWith",condition:(u,d)=>{let p=u.mock.settledResults[u.mock.settledResults.length-1];return p&&p.type==="fulfilled"&&Ae(p.value,d)},action:"resolve"},{name:["toHaveLastReturnedWith","lastReturnedWith"],condition:(u,d)=>{let p=u.mock.results[u.mock.results.length-1];return p&&p.type==="return"&&Ae(p.value,d)},action:"return"}].forEach(({name:u,condition:d,action:p})=>{o(u,function(f){let h=a(this),y=p==="return"?h.mock.results:h.mock.settledResults,g=y[y.length-1],E=h.getMockName();this.assert(d(h,f),`expected last "${E}" call to ${p} #{exp}`,`expected last "${E}" call to not ${p} #{exp}`,f,g?.value)})}),[{name:"toHaveNthResolvedWith",condition:(u,d,p)=>{let f=u.mock.settledResults[d-1];return f&&f.type==="fulfilled"&&Ae(f.value,p)},action:"resolve"},{name:["toHaveNthReturnedWith","nthReturnedWith"],condition:(u,d,p)=>{let f=u.mock.results[d-1];return f&&f.type==="return"&&Ae(f.value,p)},action:"return"}].forEach(({name:u,condition:d,action:p})=>{o(u,function(f,h){let y=a(this),g=y.getMockName(),E=(p==="return"?y.mock.results:y.mock.settledResults)[f-1],b=`${No(f)} call`;this.assert(d(y,f,h),`expected ${b} "${g}" call to ${p} #{exp}`,`expected ${b} "${g}" call to not ${p} #{exp}`,h,E?.value)})}),o("withContext",function(u){for(let d in u)t.flag(this,d,u[d]);return this}),t.addProperty(e.Assertion.prototype,"resolves",function(){let u=new Error("resolves");t.flag(this,"promise","resolves"),t.flag(this,"error",u);let d=t.flag(this,"vitest-test"),p=t.flag(this,"object");if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .resolves");if(typeof p?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof p}'.`);let f=new Proxy(this,{get:(h,y,g)=>{let E=Reflect.get(h,y,g);return typeof E!="function"?E instanceof e.Assertion?f:E:(...b)=>{t.flag(this,"_name",y);let w=p.then(P=>(t.flag(this,"object",P),E.call(this,...b)),P=>{let x=new r(`promise rejected "${t.inspect(P)}" instead of resolving`,{showDiff:!1});throw x.cause=P,x.stack=u.stack.replace(u.message,x.message),x});return Df(d,w,Lf(t,this,!!b.length),u)}}});return f}),t.addProperty(e.Assertion.prototype,"rejects",function(){let u=new Error("rejects");t.flag(this,"promise","rejects"),t.flag(this,"error",u);let d=t.flag(this,"vitest-test"),p=t.flag(this,"object"),f=typeof p=="function"?p():p;if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .rejects");if(typeof f?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof f}'.`);let h=new Proxy(this,{get:(y,g,E)=>{let b=Reflect.get(y,g,E);return typeof b!="function"?b instanceof e.Assertion?h:b:(...w)=>{t.flag(this,"_name",g);let P=f.then(x=>{let C=new r(`promise resolved "${t.inspect(x)}" instead of rejecting`,{showDiff:!0,expected:new Error("rejected promise"),actual:x});throw C.stack=u.stack.replace(u.message,C.message),C},x=>(t.flag(this,"object",x),b.call(this,...w)));return Df(d,P,Lf(t,this,!!w.length),u)}}});return h})};function No(e){let t=e%10,r=e%100;return t===1&&r!==11?`${e}st`:t===2&&r!==12?`${e}nd`:t===3&&r!==13?`${e}rd`:`${e}th`}function tl(e,t,r){return e.mock.calls.length&&(t+=bt.gray(`
275
+
276
+ Received:
277
+
278
+ ${e.mock.calls.map((n,o)=>{let i=bt.bold(` ${No(o+1)} ${e.getMockName()} call:
279
+
280
+ `);return r?i+=Hn(r,n,{omitAnnotationLines:!0}):i+=Et(n).split(`
281
+ `).map(a=>` ${a}`).join(`
282
+ `),i+=`
283
+ `,i}).join(`
284
+ `)}`)),t+=bt.gray(`
285
+
286
+ Number of calls: ${bt.bold(e.mock.calls.length)}
287
+ `),t}function zk(e,t,r,n){return t.length&&(r+=bt.gray(`
288
+
289
+ Received:
290
+
291
+ ${t.map((o,i)=>{let a=bt.bold(` ${No(i+1)} ${e.getMockName()} call return:
292
+
293
+ `);return n?a+=Hn(n,o.value,{omitAnnotationLines:!0}):a+=Et(o).split(`
294
+ `).map(s=>` ${s}`).join(`
295
+ `),a+=`
296
+ `,a}).join(`
297
+ `)}`)),r+=bt.gray(`
298
+
299
+ Number of calls: ${bt.bold(e.mock.calls.length)}
300
+ `),r}function Wk(e,t){let r=e._obj,n=Vt.flag(e,"negate"),o=Vt.flag(e,"promise")||"",i={...Qv(),diff:Hn,stringify:Et,iterableEquality:Rt,subsetEquality:vi};return{state:{...ga(t),customTesters:ud(),isNot:n,utils:i,promise:o,equals:Ae,suppressedErrors:[],soft:Vt.flag(e,"soft"),poll:Vt.flag(e,"poll")},isNot:n,obj:r}}var Bf=class extends Error{constructor(e,t,r){super(e),this.actual=t,this.expected=r}};function Kk(e,t,r){return(n,o)=>{Object.entries(r).forEach(([i,a])=>{function s(...p){let{state:f,isNot:h,obj:y}=Wk(this,t),g=a.call(f,y,...p);if(g&&typeof g=="object"&&typeof g.then=="function")return g.then(({pass:x,message:C,actual:S,expected:_})=>{if(x&&h||!x&&!h)throw new Bf(C(),S,_)});let{pass:E,message:b,actual:w,expected:P}=g;if(E&&h||!E&&!h)throw new Bf(b(),w,P)}let c=nE(o,i,s);o.addMethod(globalThis[Wo].matchers,i,c),o.addMethod(e.Assertion.prototype,i,c);class u extends cr{constructor(f=!1,...h){super(h,f)}asymmetricMatch(f){let{pass:h}=a.call(this.getMatcherContext(t),f,...this.sample);return this.inverse?!h:h}toString(){return`${this.inverse?"not.":""}${i}`}getExpectedType(){return"any"}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map(f=>Et(f)).join(", ")}>`}}let d=(...p)=>new u(!1,...p);Object.defineProperty(t,i,{configurable:!0,enumerable:!0,value:d,writable:!0}),Object.defineProperty(t.not,i,{configurable:!0,enumerable:!0,value:(...p)=>new u(!0,...p),writable:!0}),Object.defineProperty(globalThis[eu],i,{configurable:!0,enumerable:!0,value:d,writable:!0})})}}var Yk=(e,t)=>{t.addMethod(e.expect,"extend",(r,n)=>{wn(Kk(e,r,n))})};function Xk(){wn(Yk),wn(Gk),wn(Hk);let e=((n,o)=>{let{assertionCalls:i}=ga(e);return el({assertionCalls:i+1,soft:!1},e),Yr(n,o)});Object.assign(e,Yr),e.getState=()=>ga(e),e.setState=n=>el(n,e),e.extend=n=>Yr.extend(e,n),e.soft=(...n)=>{let o=e(...n);return e.setState({soft:!0}),o},e.extend(Ek),e.unreachable=n=>{j.fail(`expected${n?` "${n}" `:" "}not to be reached`)};function t(n){let o=()=>new Error(`expected number of assertions to be ${n}, but got ${e.getState().assertionCalls}`);"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(o(),t),e.setState({expectedAssertionsNumber:n,expectedAssertionsNumberErrorGen:o})}function r(){let n=new Error("expected any number of assertion, but got none");"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(n,r),e.setState({isExpectingAssertions:!0,isExpectingAssertionsError:n})}return el({assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null},e),Vt.addMethod(e,"assertions",t),Vt.addMethod(e,"hasAssertions",r),e.extend(ev),e}var oE=Xk();Object.defineProperty(globalThis,sd,{value:oE,writable:!0,configurable:!0});function Qk(e,t,r){Object.defineProperty(e,t,r)}var Ki=Symbol.for("tinyspy:spy"),Zk=e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},eL=e=>(Qk(e,Ki,{value:{reset:()=>Zk(e[Ki])}}),e[Ki]),tL=e=>e[Ki]||eL(e),ru=new Set;function iE(e){return ru.add(e),()=>void ru.delete(e)}var rL=(...e)=>{let t=gk(...e);return sE(t)};function aE(e){let t=e?Af(e):Af();return sE(t)}function sE(e){let t=Ff(e),r=t.mockImplementation.bind(null);return t.mockImplementation=n=>Ff(r(n)),t}function Ff(e){let t=tL(e),r=t.impl;return t.willCall(function(...n){return ru.forEach(o=>o(e,n)),r?.apply(this,n)}),e}function lE(){bi.forEach(e=>e.mockClear())}function uE(){bi.forEach(e=>e.mockReset())}function cE(){bi.forEach(e=>e.mockRestore())}function nL(e,t={}){return e}var dE={};ft(dE,{buildQueries:()=>pr,configure:()=>yD,createEvent:()=>Xi,findAllByAltText:()=>mw,findAllByDisplayValue:()=>uw,findAllByLabelText:()=>UE,findAllByPlaceholderText:()=>XE,findAllByRole:()=>Pw,findAllByTestId:()=>qw,findAllByText:()=>nw,findAllByTitle:()=>ww,findByAltText:()=>yw,findByDisplayValue:()=>cw,findByLabelText:()=>JE,findByPlaceholderText:()=>QE,findByRole:()=>xw,findByTestId:()=>Mw,findByText:()=>ow,findByTitle:()=>_w,fireEvent:()=>Zo,getAllByAltText:()=>fw,getAllByDisplayValue:()=>sw,getAllByLabelText:()=>VE,getAllByPlaceholderText:()=>KE,getAllByRole:()=>Rw,getAllByTestId:()=>Iw,getAllByText:()=>tw,getAllByTitle:()=>vw,getByAltText:()=>hw,getByDisplayValue:()=>lw,getByLabelText:()=>HE,getByPlaceholderText:()=>YE,getByRole:()=>Ow,getByTestId:()=>jw,getByText:()=>rw,getByTitle:()=>Ew,getConfig:()=>we,getDefaultNormalizer:()=>yd,getElementError:()=>ms,getMultipleElementsFoundError:()=>ys,getNodeText:()=>Ei,getQueriesForElement:()=>pu,getRoles:()=>ME,getSuggestedQuery:()=>va,isInaccessible:()=>hs,logDOM:()=>nu,logRoles:()=>wD,makeFindQuery:()=>Nn,makeGetAllQuery:()=>vd,makeSingleQuery:()=>Cn,prettyDOM:()=>Xo,prettyFormat:()=>dd,queries:()=>Ea,queryAllByAltText:()=>dw,queryAllByAttribute:()=>dn,queryAllByDisplayValue:()=>iw,queryAllByLabelText:()=>GE,queryAllByPlaceholderText:()=>zE,queryAllByRole:()=>Sw,queryAllByTestId:()=>Cw,queryAllByText:()=>ZE,queryAllByTitle:()=>gw,queryByAltText:()=>pw,queryByAttribute:()=>LE,queryByDisplayValue:()=>aw,queryByLabelText:()=>BE,queryByPlaceholderText:()=>WE,queryByRole:()=>Aw,queryByTestId:()=>Nw,queryByText:()=>ew,queryByTitle:()=>bw,queryHelpers:()=>MD,screen:()=>u$,waitFor:()=>bd,waitForElementToBeRemoved:()=>r$,within:()=>pu,wrapAllByQueryWithSuggestion:()=>pt,wrapSingleQueryWithSuggestion:()=>xr});var dd=Je(fO()),oL=Object.prototype.toString;function iL(e){return typeof e=="function"||oL.call(e)==="[object Function]"}function aL(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var sL=Math.pow(2,53)-1;function lL(e){var t=aL(e);return Math.min(Math.max(t,0),sL)}function qt(e,t){var r=Array,n=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");for(var o=lL(n.length),i=iL(r)?Object(new r(o)):new Array(o),a=0,s;a<o;)s=n[a],i[a]=s,a+=1;return i.length=o,i}function Ko(e){"@babel/helpers - typeof";return Ko=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ko(e)}function uL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,pE(n.key),n)}}function dL(e,t,r){return t&&cL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pL(e,t,r){return t=pE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pE(e){var t=fL(e,"string");return Ko(t)==="symbol"?t:String(t)}function fL(e,t){if(Ko(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ko(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hL=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];uL(this,e),pL(this,"items",void 0),this.items=t}return dL(e,[{key:"add",value:function(t){return this.has(t)===!1&&this.items.push(t),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(t){var r=this.items.length;return this.items=this.items.filter(function(n){return n!==t}),r!==this.items.length}},{key:"forEach",value:function(t){var r=this;this.items.forEach(function(n){t(n,n,r)})}},{key:"has",value:function(t){return this.items.indexOf(t)!==-1}},{key:"size",get:function(){return this.items.length}}]),e})(),mL=typeof Set>"u"?Set:hL;function at(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var yL={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"},gL={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function bL(e,t){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some(function(r){var n;return e.hasAttribute(r)&&!((n=gL[t])!==null&&n!==void 0&&n.has(r))})}function fE(e,t){return bL(e,t)}function vL(e){var t=wL(e);if(t===null||t==="presentation"){var r=EL(e);if(t!=="presentation"||fE(e,r||""))return r}return t}function EL(e){var t=yL[at(e)];if(t!==void 0)return t;switch(at(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!fE(e,"img")?"presentation":"img";case"input":{var r=e,n=r.type;switch(n){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return n;case"range":return"slider";case"email":case"tel":case"text":case"url":return e.hasAttribute("list")?"combobox":"textbox";case"search":return e.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}}case"select":return e.hasAttribute("multiple")||e.size>1?"listbox":"combobox"}return null}function wL(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}function qe(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function hE(e){return qe(e)&&at(e)==="caption"}function Yi(e){return qe(e)&&at(e)==="input"}function _L(e){return qe(e)&&at(e)==="optgroup"}function TL(e){return qe(e)&&at(e)==="select"}function SL(e){return qe(e)&&at(e)==="table"}function AL(e){return qe(e)&&at(e)==="textarea"}function RL(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function OL(e){return qe(e)&&at(e)==="fieldset"}function PL(e){return qe(e)&&at(e)==="legend"}function xL(e){return qe(e)&&at(e)==="slot"}function CL(e){return qe(e)&&e.ownerSVGElement!==void 0}function NL(e){return qe(e)&&at(e)==="svg"}function IL(e){return CL(e)&&at(e)==="title"}function ba(e,t){if(qe(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(o){return n.getElementById(o)}).filter(function(o){return o!==null})}return[]}function rr(e,t){return qe(e)?t.indexOf(vL(e))!==-1:!1}function jL(e){return e.trim().replace(/\s\s+/g," ")}function qL(e,t){if(!qe(e))return!1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return!0;var r=t(e);return r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"}function ML(e){return rr(e,["button","combobox","listbox","textbox"])||mE(e,"range")}function mE(e,t){if(!qe(e))return!1;switch(t){case"range":return rr(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function Uf(e,t){var r=qt(e.querySelectorAll(t));return ba(e,"aria-owns").forEach(function(n){r.push.apply(r,qt(n.querySelectorAll(t)))}),r}function kL(e){return TL(e)?e.selectedOptions||Uf(e,"[selected]"):Uf(e,'[aria-selected="true"]')}function LL(e){return rr(e,["none","presentation"])}function DL(e){return hE(e)}function $L(e){return rr(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function BL(e){return!1}function FL(e){return Yi(e)||AL(e)?e.value:e.textContent||""}function Jf(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function yE(e){var t=at(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function gE(e){if(yE(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&qe(r)){var n=gE(r);n!==null&&(t=n)}}),t}function UL(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):gE(e)}function JL(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return qt(t);if(!yE(e))return null;var r=e.ownerDocument;return qt(r.querySelectorAll("label")).filter(function(n){return UL(n)===e})}function VL(e){var t=e.assignedNodes();return t.length===0?qt(e.childNodes):t}function bE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new mL,n=RL(e),o=t.compute,i=o===void 0?"name":o,a=t.computedStyleSupportsPseudoElements,s=a===void 0?t.getComputedStyle!==void 0:a,c=t.getComputedStyle,u=c===void 0?n.getComputedStyle.bind(n):c,d=t.hidden,p=d===void 0?!1:d;function f(b,w){var P="";if(qe(b)&&s){var x=u(b,"::before"),C=Jf(x);P="".concat(C," ").concat(P)}var S=xL(b)?VL(b):qt(b.childNodes).concat(ba(b,"aria-owns"));if(S.forEach(function(A){var D=E(A,{isEmbeddedInLabel:w.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),k=qe(A)?u(A).getPropertyValue("display"):"inline",U=k!=="inline"?" ":"";P+="".concat(U).concat(D).concat(U)}),qe(b)&&s){var _=u(b,"::after"),T=Jf(_);P="".concat(P," ").concat(T)}return P.trim()}function h(b,w){var P=b.getAttributeNode(w);return P!==null&&!r.has(P)&&P.value.trim()!==""?(r.add(P),P.value):null}function y(b){return qe(b)?h(b,"title"):null}function g(b){if(!qe(b))return null;if(OL(b)){r.add(b);for(var w=qt(b.childNodes),P=0;P<w.length;P+=1){var x=w[P];if(PL(x))return E(x,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(SL(b)){r.add(b);for(var C=qt(b.childNodes),S=0;S<C.length;S+=1){var _=C[S];if(hE(_))return E(_,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(NL(b)){r.add(b);for(var T=qt(b.childNodes),A=0;A<T.length;A+=1){var D=T[A];if(IL(D))return D.textContent}return null}else if(at(b)==="img"||at(b)==="area"){var k=h(b,"alt");if(k!==null)return k}else if(_L(b)){var U=h(b,"label");if(U!==null)return U}if(Yi(b)&&(b.type==="button"||b.type==="submit"||b.type==="reset")){var I=h(b,"value");if(I!==null)return I;if(b.type==="submit")return"Submit";if(b.type==="reset")return"Reset"}var R=JL(b);if(R!==null&&R.length!==0)return r.add(b),qt(R).map(function(W){return E(W,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(W){return W.length>0}).join(" ");if(Yi(b)&&b.type==="image"){var M=h(b,"alt");if(M!==null)return M;var L=h(b,"title");return L!==null?L:"Submit Query"}if(rr(b,["button"])){var J=f(b,{isEmbeddedInLabel:!1});if(J!=="")return J}return null}function E(b,w){if(r.has(b))return"";if(!p&&qL(b,u)&&!w.isReferenced)return r.add(b),"";var P=qe(b)?b.getAttributeNode("aria-labelledby"):null,x=P!==null&&!r.has(P)?ba(b,"aria-labelledby"):[];if(i==="name"&&!w.isReferenced&&x.length>0)return r.add(P),x.map(function(k){return E(k,{isEmbeddedInLabel:w.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var C=w.recursion&&ML(b)&&i==="name";if(!C){var S=(qe(b)&&b.getAttribute("aria-label")||"").trim();if(S!==""&&i==="name")return r.add(b),S;if(!LL(b)){var _=g(b);if(_!==null)return r.add(b),_}}if(rr(b,["menu"]))return r.add(b),"";if(C||w.isEmbeddedInLabel||w.isReferenced){if(rr(b,["combobox","listbox"])){r.add(b);var T=kL(b);return T.length===0?Yi(b)?b.value:"":qt(T).map(function(k){return E(k,{isEmbeddedInLabel:w.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(mE(b,"range"))return r.add(b),b.hasAttribute("aria-valuetext")?b.getAttribute("aria-valuetext"):b.hasAttribute("aria-valuenow")?b.getAttribute("aria-valuenow"):b.getAttribute("value")||"";if(rr(b,["textbox"]))return r.add(b),FL(b)}if($L(b)||qe(b)&&w.isReferenced||DL(b)||BL()){var A=f(b,{isEmbeddedInLabel:w.isEmbeddedInLabel});if(A!=="")return r.add(b),A}if(b.nodeType===b.TEXT_NODE)return r.add(b),b.textContent||"";if(w.recursion)return r.add(b),f(b,{isEmbeddedInLabel:w.isEmbeddedInLabel});var D=y(b);return D!==null?(r.add(b),D):(r.add(b),"")}return jL(E(e,{isEmbeddedInLabel:!1,isReferenced:i==="description",recursion:!1}))}function Yo(e){"@babel/helpers - typeof";return Yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yo(e)}function Vf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Hf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vf(Object(r),!0).forEach(function(n){HL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HL(e,t,r){return t=GL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GL(e){var t=zL(e,"string");return Yo(t)==="symbol"?t:String(t)}function zL(e,t){if(Yo(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=ba(e,"aria-describedby").map(function(o){return bE(o,Hf(Hf({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("title");r=n===null?"":n}return r}function WL(e){return rr(e,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}function pd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return WL(e)?"":bE(e,t)}var At=Je(ju()),KL=Je(hO());function EE(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}var YL=(e,t,r,n,o,i,a)=>{let s=n+r.indent,c=r.colors;return e.map(u=>{let d=t[u],p=a(d,r,s,o,i);return typeof d!="string"&&(p.indexOf(`
301
+ `)!==-1&&(p=r.spacingOuter+s+p+r.spacingOuter+n),p="{"+p+"}"),r.spacingInner+n+c.prop.open+u+c.prop.close+"="+c.value.open+p+c.value.close}).join("")},XL=3,QL=(e,t,r,n,o,i)=>e.map(a=>{let s=typeof a=="string"?wE(a,t):i(a,t,r,n,o);return s===""&&typeof a=="object"&&a!==null&&a.nodeType!==XL?"":t.spacingOuter+r+s}).join(""),wE=(e,t)=>{let r=t.colors.content;return r.open+EE(e)+r.close},ZL=(e,t)=>{let r=t.colors.comment;return r.open+"<!--"+EE(e)+"-->"+r.close},eD=(e,t,r,n,o)=>{let i=n.colors.tag;return i.open+"<"+e+(t&&i.close+t+n.spacingOuter+o+i.open)+(r?">"+i.close+r+n.spacingOuter+o+i.open+"</"+e:(t&&!n.min?"":" ")+"/")+">"+i.close},tD=(e,t)=>{let r=t.colors.tag;return r.open+"<"+e+r.close+" …"+r.open+" />"+r.close},rD=1,_E=3,TE=8,SE=11,nD=/^((HTML|SVG)\w*)?Element$/,AE=e=>{let{tagName:t}=e;return!!(typeof t=="string"&&t.includes("-")||typeof e.hasAttribute=="function"&&e.hasAttribute("is"))},oD=e=>{let t=e.constructor.name,{nodeType:r}=e;return r===rD&&(nD.test(t)||AE(e))||r===_E&&t==="Text"||r===TE&&t==="Comment"||r===SE&&t==="DocumentFragment"};function iD(e){return e.nodeType===_E}function aD(e){return e.nodeType===TE}function rl(e){return e.nodeType===SE}function sD(e){return{test:t=>{var r;return((t==null||(r=t.constructor)==null?void 0:r.name)||AE(t))&&oD(t)},serialize:(t,r,n,o,i,a)=>{if(iD(t))return wE(t.data,r);if(aD(t))return ZL(t.data,r);let s=rl(t)?"DocumentFragment":t.tagName.toLowerCase();return++o>r.maxDepth?tD(s,r):eD(s,YL(rl(t)?[]:Array.from(t.attributes).map(c=>c.name).sort(),rl(t)?{}:Array.from(t.attributes).reduce((c,u)=>(c[u.name]=u.value,c),{}),r,n+r.indent,o,i,a),QL(Array.prototype.slice.call(t.childNodes||t.children).filter(e),r,n+r.indent,o,i,a),r,n)}}}var RE=null,fd=null,hd=null;try{let e=module&&module.require;fd=e.call(module,"fs").readFileSync,hd=e.call(module,"@babel/code-frame").codeFrameColumns,RE=e.call(module,"picocolors")}catch{}function lD(e){let t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.slice(t,r),o=n.split(":"),[i,a,s]=[o[0],parseInt(o[1],10),parseInt(o[2],10)],c="";try{c=fd(i,"utf-8")}catch{return""}let u=hd(c,{start:{line:a,column:s}},{highlightCode:!0,linesBelow:0});return RE.dim(n)+`
302
+ `+u+`
303
+ `}function uD(){if(!fd||!hd)return"";let e=new Error().stack.split(`
304
+ `).slice(1).find(t=>!t.includes("node_modules/"));return lD(e)}var OE=3;function nl(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}function md(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}function PE(e){if(e.defaultView)return e.defaultView;if(e.ownerDocument&&e.ownerDocument.defaultView)return e.ownerDocument.defaultView;if(e.window)return e.window;throw e.ownerDocument&&e.ownerDocument.defaultView===null?new Error("It looks like the window object is not available for the provided node."):e.then instanceof Function?new Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?"):Array.isArray(e)?new Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?"):typeof e.debug=="function"&&typeof e.logTestingPlaygroundURL=="function"?new Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?"):new Error("The given node is not an Element, the node type is: "+typeof e+".")}function dr(e){if(!e||typeof e.querySelector!="function"||typeof e.querySelectorAll!="function")throw new TypeError("Expected container to be an Element, a Document or a DocumentFragment but got "+t(e)+".");function t(r){return typeof r=="object"?r===null?"null":r.constructor.name:typeof r}}var cD=()=>{if(typeof process>"u")return!1;let e;try{var t;let r=(t=bl)==null?void 0:t.COLORS;r&&(e=JSON.parse(r))}catch{}return typeof e=="boolean"?e:process.versions!==void 0&&process.versions.node!==void 0},{DOMCollection:dD}=dd.plugins,pD=1,fD=8;function hD(e){return e.nodeType!==fD&&(e.nodeType!==pD||!e.matches(we().defaultIgnore))}function Xo(e,t,r){if(r===void 0&&(r={}),e||(e=md().body),typeof t!="number"&&(t=typeof process<"u"&&typeof bl<"u"&&bl.DEBUG_PRINT_LIMIT||7e3),t===0)return"";e.documentElement&&(e=e.documentElement);let n=typeof e;if(n==="object"?n=e.constructor.name:e={},!("outerHTML"in e))throw new TypeError("Expected an element or document but got "+n);let{filterNode:o=hD,...i}=r,a=dd.format(e,{plugins:[sD(o),dD],printFunctionName:!1,highlight:cD(),...i});return t!==void 0&&e.outerHTML.length>t?a.slice(0,t)+"...":a}var nu=function(){let e=uD();console.log(e?Xo(...arguments)+`
305
+
306
+ `+e:Xo(...arguments))},Xr={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 r=Xo(t),n=new Error([e,"Ignored nodes: comments, "+Xr.defaultIgnore+`
307
+ `+r].filter(Boolean).join(`
308
+
309
+ `));return n.name="TestingLibraryElementError",n},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function mD(e){try{return Xr._disableExpensiveErrorDiagnostics=!0,e()}finally{Xr._disableExpensiveErrorDiagnostics=!1}}function yD(e){typeof e=="function"&&(e=e(Xr)),Xr={...Xr,...e}}function we(){return Xr}var gD=["button","meter","output","progress","select","textarea","input"];function xE(e){return gD.includes(e.nodeName.toLowerCase())?"":e.nodeType===OE?e.textContent:Array.from(e.childNodes).map(t=>xE(t)).join("")}function ou(e){let t;return e.tagName.toLowerCase()==="label"?t=xE(e):t=e.value||e.textContent,t}function CE(e){if(e.labels!==void 0){var t;return(t=e.labels)!=null?t:[]}if(!bD(e))return[];let r=e.ownerDocument.querySelectorAll("label");return Array.from(r).filter(n=>n.control===e)}function bD(e){return/BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName)||e.tagName==="INPUT"&&e.getAttribute("type")!=="hidden"}function NE(e,t,r){let{selector:n="*"}=r===void 0?{}:r,o=t.getAttribute("aria-labelledby"),i=o?o.split(" "):[];return i.length?i.map(a=>{let s=e.querySelector('[id="'+a+'"]');return s?{content:ou(s),formControl:null}:{content:"",formControl:null}}):Array.from(CE(t)).map(a=>{let s=ou(a),c=Array.from(a.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter(u=>u.matches(n))[0];return{content:s,formControl:c}})}function IE(e){if(e==null)throw new Error("It looks like "+e+" was passed instead of a matcher. Did you do something like getByText("+e+")?")}function zn(e,t,r,n){if(typeof e!="string")return!1;IE(r);let o=n(e);return typeof r=="string"||typeof r=="number"?o.toLowerCase().includes(r.toString().toLowerCase()):typeof r=="function"?r(o,t):jE(r,o)}function ar(e,t,r,n){if(typeof e!="string")return!1;IE(r);let o=n(e);return r instanceof Function?r(o,t):r instanceof RegExp?jE(r,o):o===String(r)}function yd(e){let{trim:t=!0,collapseWhitespace:r=!0}=e===void 0?{}:e;return n=>{let o=n;return o=t?o.trim():o,o=r?o.replace(/\s+/g," "):o,o}}function cn(e){let{trim:t,collapseWhitespace:r,normalizer:n}=e;if(!n)return yd({trim:t,collapseWhitespace:r});if(typeof t<"u"||typeof r<"u")throw new Error('trim and collapseWhitespace are not supported with a normalizer. If you want to use the default trim and collapseWhitespace logic in your normalizer, use "getDefaultNormalizer({trim, collapseWhitespace})" and compose that into your normalizer');return n}function jE(e,t){let r=e.test(t);return e.global&&e.lastIndex!==0&&(console.warn("To match all elements we had to reset the lastIndex of the RegExp because the global flag is enabled. We encourage to remove the global flag from the RegExp."),e.lastIndex=0),r}function Ei(e){return e.matches("input[type=submit], input[type=button], input[type=reset]")?e.value:Array.from(e.childNodes).filter(t=>t.nodeType===OE&&!!t.textContent).map(t=>t.textContent).join("")}var vD=ED(At.elementRoles);function qE(e){return e.hidden===!0||e.getAttribute("aria-hidden")==="true"||e.ownerDocument.defaultView.getComputedStyle(e).display==="none"}function hs(e,t){t===void 0&&(t={});let{isSubtreeInaccessible:r=qE}=t;if(e.ownerDocument.defaultView.getComputedStyle(e).visibility==="hidden")return!0;let n=e;for(;n;){if(r(n))return!0;n=n.parentElement}return!1}function gd(e){for(let{match:t,roles:r}of vD)if(t(e))return[...r];return[]}function ED(e){function t(a){let{name:s,attributes:c}=a;return""+s+c.map(u=>{let{name:d,value:p,constraints:f=[]}=u,h=f.indexOf("undefined")!==-1,y=f.indexOf("set")!==-1;return typeof p<"u"?"["+d+'="'+p+'"]':h?":not(["+d+"])":y?"["+d+"]:not(["+d+'=""])':"["+d+"]"}).join("")}function r(a){let{attributes:s=[]}=a;return s.length}function n(a,s){let{specificity:c}=a,{specificity:u}=s;return u-c}function o(a){let{attributes:s=[]}=a,c=s.findIndex(d=>d.value&&d.name==="type"&&d.value==="text");c>=0&&(s=[...s.slice(0,c),...s.slice(c+1)]);let u=t({...a,attributes:s});return d=>c>=0&&d.type!=="text"?!1:d.matches(u)}let i=[];for(let[a,s]of e.entries())i=[...i,{match:o(a),roles:Array.from(s),specificity:r(a)}];return i.sort(n)}function ME(e,t){let{hidden:r=!1}=t===void 0?{}:t;function n(o){return[o,...Array.from(o.children).reduce((i,a)=>[...i,...n(a)],[])]}return n(e).filter(o=>r===!1?hs(o)===!1:!0).reduce((o,i)=>{let a=[];return i.hasAttribute("role")?a=i.getAttribute("role").split(" ").slice(0,1):a=gd(i),a.reduce((s,c)=>Array.isArray(s[c])?{...s,[c]:[...s[c],i]}:{...s,[c]:[i]},o)},{})}function kE(e,t){let{hidden:r,includeDescription:n}=t,o=ME(e,{hidden:r});return Object.entries(o).filter(i=>{let[a]=i;return a!=="generic"}).map(i=>{let[a,s]=i,c="-".repeat(50),u=s.map(d=>{let p='Name "'+pd(d,{computedStyleSupportsPseudoElements:we().computedStyleSupportsPseudoElements})+`":
310
+ `,f=Xo(d.cloneNode(!1));if(n){let h='Description "'+vE(d,{computedStyleSupportsPseudoElements:we().computedStyleSupportsPseudoElements})+`":
311
+ `;return""+p+h+f}return""+p+f}).join(`
312
+
313
+ `);return a+`:
314
+
315
+ `+u+`
316
+
317
+ `+c}).join(`
318
+ `)}var wD=function(e,t){let{hidden:r=!1}=t===void 0?{}:t;return console.log(kE(e,{hidden:r}))};function _D(e){return e.tagName==="OPTION"?e.selected:wi(e,"aria-selected")}function TD(e){return e.getAttribute("aria-busy")==="true"}function SD(e){if(!("indeterminate"in e&&e.indeterminate))return"checked"in e?e.checked:wi(e,"aria-checked")}function AD(e){return wi(e,"aria-pressed")}function RD(e){var t,r;return(t=(r=wi(e,"aria-current"))!=null?r:e.getAttribute("aria-current"))!=null?t:!1}function OD(e){return wi(e,"aria-expanded")}function wi(e,t){let r=e.getAttribute(t);if(r==="true")return!0;if(r==="false")return!1}function PD(e){let t={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6};return e.getAttribute("aria-level")&&Number(e.getAttribute("aria-level"))||t[e.tagName]}function xD(e){let t=e.getAttribute("aria-valuenow");return t===null?void 0:+t}function CD(e){let t=e.getAttribute("aria-valuemax");return t===null?void 0:+t}function ND(e){let t=e.getAttribute("aria-valuemin");return t===null?void 0:+t}function ID(e){let t=e.getAttribute("aria-valuetext");return t===null?void 0:t}var Gf=yd();function jD(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function zf(e){return new RegExp(jD(e.toLowerCase()),"i")}function hr(e,t,r,n){let{variant:o,name:i}=n,a="",s={},c=[["Role","TestId"].includes(e)?r:zf(r)];i&&(s.name=zf(i)),e==="Role"&&hs(t)&&(s.hidden=!0,a=`Element is inaccessible. This means that the element and all its children are invisible to screen readers.
319
+ If you are using the aria-hidden prop, make sure this is the right choice for your case.
320
+ `),Object.keys(s).length>0&&c.push(s);let u=o+"By"+e;return{queryName:e,queryMethod:u,queryArgs:c,variant:o,warning:a,toString(){a&&console.warn(a);let[d,p]=c;return d=typeof d=="string"?"'"+d+"'":d,p=p?", { "+Object.entries(p).map(f=>{let[h,y]=f;return h+": "+y}).join(", ")+" }":"",u+"("+d+p+")"}}}function mr(e,t,r){return r&&(!t||t.toLowerCase()===e.toLowerCase())}function va(e,t,r){var n,o;if(t===void 0&&(t="get"),e.matches(we().defaultIgnore))return;let i=(n=e.getAttribute("role"))!=null?n:(o=gd(e))==null?void 0:o[0];if(i!=="generic"&&mr("Role",r,i))return hr("Role",e,i,{variant:t,name:pd(e,{computedStyleSupportsPseudoElements:we().computedStyleSupportsPseudoElements})});let a=NE(document,e).map(f=>f.content).join(" ");if(mr("LabelText",r,a))return hr("LabelText",e,a,{variant:t});let s=e.getAttribute("placeholder");if(mr("PlaceholderText",r,s))return hr("PlaceholderText",e,s,{variant:t});let c=Gf(Ei(e));if(mr("Text",r,c))return hr("Text",e,c,{variant:t});if(mr("DisplayValue",r,e.value))return hr("DisplayValue",e,Gf(e.value),{variant:t});let u=e.getAttribute("alt");if(mr("AltText",r,u))return hr("AltText",e,u,{variant:t});let d=e.getAttribute("title");if(mr("Title",r,d))return hr("Title",e,d,{variant:t});let p=e.getAttribute(we().testIdAttribute);if(mr("TestId",r,p))return hr("TestId",e,p,{variant:t})}function Ii(e,t){e.stack=t.stack.replace(t.message,e.message)}function qD(e,t){let{container:r=md(),timeout:n=we().asyncUtilTimeout,showOriginalStackTrace:o=we().showOriginalStackTrace,stackTraceError:i,interval:a=50,onTimeout:s=u=>(Object.defineProperty(u,"message",{value:we().getElementError(u.message,r).message}),u),mutationObserverOptions:c={subtree:!0,childList:!0,attributes:!0,characterData:!0}}=t;if(typeof e!="function")throw new TypeError("Received `callback` arg must be a function");return new Promise(async(u,d)=>{let p,f,h,y=!1,g="idle",E=setTimeout(C,n),b=nl();if(b){let{unstable_advanceTimersWrapper:S}=we();for(x();!y;){if(!nl()){let _=new Error("Changed from using fake timers to real timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to real timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");o||Ii(_,i),d(_);return}if(await S(async()=>{jest.advanceTimersByTime(a)}),y)break;x()}}else{try{dr(r)}catch(_){d(_);return}f=setInterval(P,a);let{MutationObserver:S}=PE(r);h=new S(P),h.observe(r,c),x()}function w(S,_){y=!0,clearTimeout(E),b||(clearInterval(f),h.disconnect()),S?d(S):u(_)}function P(){if(nl()){let S=new Error("Changed from using real timers to fake timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to fake timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");return o||Ii(S,i),d(S)}else return x()}function x(){if(g!=="pending")try{let S=mD(e);typeof S?.then=="function"?(g="pending",S.then(_=>{g="resolved",w(null,_)},_=>{g="rejected",p=_})):w(null,S)}catch(S){p=S}}function C(){let S;p?(S=p,!o&&S.name==="TestingLibraryElementError"&&Ii(S,i)):(S=new Error("Timed out in waitFor."),o||Ii(S,i)),w(s(S),null)}})}function bd(e,t){let r=new Error("STACK_TRACE_MESSAGE");return we().asyncWrapper(()=>qD(e,{stackTraceError:r,...t}))}function ms(e,t){return we().getElementError(e,t)}function ys(e,t){return ms(e+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",t)}function dn(e,t,r,n){let{exact:o=!0,collapseWhitespace:i,trim:a,normalizer:s}=n===void 0?{}:n,c=o?ar:zn,u=cn({collapseWhitespace:i,trim:a,normalizer:s});return Array.from(t.querySelectorAll("["+e+"]")).filter(d=>c(d.getAttribute(e),d,r,u))}function LE(e,t,r,n){let o=dn(e,t,r,n);if(o.length>1)throw ys("Found multiple elements by ["+e+"="+r+"]",t);return o[0]||null}function Cn(e,t){return function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];let a=e(r,...o);if(a.length>1){let s=a.map(c=>ms(null,c).message).join(`
321
+
322
+ `);throw ys(t(r,...o)+`
323
+
324
+ Here are the matching elements:
325
+
326
+ `+s,r)}return a[0]||null}}function DE(e,t){return we().getElementError(`A better query is available, try this:
327
+ `+e.toString()+`
328
+ `,t)}function vd(e,t){return function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];let a=e(r,...o);if(!a.length)throw we().getElementError(t(r,...o),r);return a}}function Nn(e){return(t,r,n,o)=>bd(()=>e(t,r,n),{container:t,...o})}var xr=(e,t,r)=>function(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];let s=e(n,...i),[{suggest:c=we().throwSuggestions}={}]=i.slice(-1);if(s&&c){let u=va(s,r);if(u&&!t.endsWith(u.queryName))throw DE(u.toString(),n)}return s},pt=(e,t,r)=>function(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];let s=e(n,...i),[{suggest:c=we().throwSuggestions}={}]=i.slice(-1);if(s.length&&c){let u=[...new Set(s.map(d=>{var p;return(p=va(d,r))==null?void 0:p.toString()}))];if(u.length===1&&!t.endsWith(va(s[0],r).queryName))throw DE(u[0],n)}return s};function pr(e,t,r){let n=xr(Cn(e,t),e.name,"query"),o=vd(e,r),i=Cn(o,t),a=xr(i,e.name,"get"),s=pt(o,e.name.replace("query","get"),"getAll"),c=Nn(pt(o,e.name,"findAll")),u=Nn(xr(i,e.name,"find"));return[n,s,a,c,u]}var MD=Object.freeze({__proto__:null,getElementError:ms,wrapAllByQueryWithSuggestion:pt,wrapSingleQueryWithSuggestion:xr,getMultipleElementsFoundError:ys,queryAllByAttribute:dn,queryByAttribute:LE,makeSingleQuery:Cn,makeGetAllQuery:vd,makeFindQuery:Nn,buildQueries:pr});function kD(e){return Array.from(e.querySelectorAll("label,input")).map(t=>({node:t,textToMatch:ou(t)})).filter(t=>{let{textToMatch:r}=t;return r!==null})}var LD=function(e,t,r){let{exact:n=!0,trim:o,collapseWhitespace:i,normalizer:a}=r===void 0?{}:r,s=n?ar:zn,c=cn({collapseWhitespace:i,trim:o,normalizer:a});return kD(e).filter(u=>{let{node:d,textToMatch:p}=u;return s(p,d,t,c)}).map(u=>{let{node:d}=u;return d})},Qo=function(e,t,r){let{selector:n="*",exact:o=!0,collapseWhitespace:i,trim:a,normalizer:s}=r===void 0?{}:r;dr(e);let c=o?ar:zn,u=cn({collapseWhitespace:i,trim:a,normalizer:s}),d=Array.from(e.querySelectorAll("*")).filter(p=>CE(p).length||p.hasAttribute("aria-labelledby")).reduce((p,f)=>{let h=NE(e,f,{selector:n});h.filter(g=>!!g.formControl).forEach(g=>{c(g.content,g.formControl,t,u)&&g.formControl&&p.push(g.formControl)});let y=h.filter(g=>!!g.content).map(g=>g.content);return c(y.join(" "),f,t,u)&&p.push(f),y.length>1&&y.forEach((g,E)=>{c(g,f,t,u)&&p.push(f);let b=[...y];b.splice(E,1),b.length>1&&c(b.join(" "),f,t,u)&&p.push(f)}),p},[]).concat(dn("aria-label",e,t,{exact:o,normalizer:u}));return Array.from(new Set(d)).filter(p=>p.matches(n))},rn=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];let i=Qo(e,t,...n);if(!i.length){let a=LD(e,t,...n);if(a.length){let s=a.map(c=>DD(e,c)).filter(c=>!!c);throw s.length?we().getElementError(s.map(c=>"Found a label with the text of: "+t+", however the element associated with this label (<"+c+" />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <"+c+" />, you can use aria-label or aria-labelledby instead.").join(`
329
+
330
+ `),e):we().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 we().getElementError("Unable to find a label with the text of: "+t,e)}return i};function DD(e,t){let r=t.getAttribute("for");if(!r)return null;let n=e.querySelector('[id="'+r+'"]');return n?n.tagName.toLowerCase():null}var $E=(e,t)=>"Found multiple elements with the text of: "+t,BE=xr(Cn(Qo,$E),Qo.name,"query"),FE=Cn(rn,$E),UE=Nn(pt(rn,rn.name,"findAll")),JE=Nn(xr(FE,rn.name,"find")),VE=pt(rn,rn.name,"getAll"),HE=xr(FE,rn.name,"get"),GE=pt(Qo,Qo.name,"queryAll"),iu=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return dr(t[0]),dn("placeholder",...t)},$D=(e,t)=>"Found multiple elements with the placeholder text of: "+t,BD=(e,t)=>"Unable to find an element with the placeholder text of: "+t,zE=pt(iu,iu.name,"queryAll"),[WE,KE,YE,XE,QE]=pr(iu,$D,BD),au=function(e,t,r){let{selector:n="*",exact:o=!0,collapseWhitespace:i,trim:a,ignore:s=we().defaultIgnore,normalizer:c}=r===void 0?{}:r;dr(e);let u=o?ar:zn,d=cn({collapseWhitespace:i,trim:a,normalizer:c}),p=[];return typeof e.matches=="function"&&e.matches(n)&&(p=[e]),[...p,...Array.from(e.querySelectorAll(n))].filter(f=>!s||!f.matches(s)).filter(f=>u(Ei(f),f,t,d))},FD=(e,t)=>"Found multiple elements with the text: "+t,UD=function(e,t,r){r===void 0&&(r={});let{collapseWhitespace:n,trim:o,normalizer:i,selector:a}=r,s=cn({collapseWhitespace:n,trim:o,normalizer:i})(t.toString()),c=s!==t.toString(),u=(a??"*")!=="*";return"Unable to find an element with the text: "+(c?s+" (normalized from '"+t+"')":t)+(u?", which matches selector '"+a+"'":"")+". 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."},ZE=pt(au,au.name,"queryAll"),[ew,tw,rw,nw,ow]=pr(au,FD,UD),su=function(e,t,r){let{exact:n=!0,collapseWhitespace:o,trim:i,normalizer:a}=r===void 0?{}:r;dr(e);let s=n?ar:zn,c=cn({collapseWhitespace:o,trim:i,normalizer:a});return Array.from(e.querySelectorAll("input,textarea,select")).filter(u=>u.tagName==="SELECT"?Array.from(u.options).filter(d=>d.selected).some(d=>s(Ei(d),d,t,c)):s(u.value,u,t,c))},JD=(e,t)=>"Found multiple elements with the display value: "+t+".",VD=(e,t)=>"Unable to find an element with the display value: "+t+".",iw=pt(su,su.name,"queryAll"),[aw,sw,lw,uw,cw]=pr(su,JD,VD),HD=/^(img|input|area|.+-.+)$/i,lu=function(e,t,r){return r===void 0&&(r={}),dr(e),dn("alt",e,t,r).filter(n=>HD.test(n.tagName))},GD=(e,t)=>"Found multiple elements with the alt text: "+t,zD=(e,t)=>"Unable to find an element with the alt text: "+t,dw=pt(lu,lu.name,"queryAll"),[pw,fw,hw,mw,yw]=pr(lu,GD,zD),WD=e=>{var t;return e.tagName.toLowerCase()==="title"&&((t=e.parentElement)==null?void 0:t.tagName.toLowerCase())==="svg"},uu=function(e,t,r){let{exact:n=!0,collapseWhitespace:o,trim:i,normalizer:a}=r===void 0?{}:r;dr(e);let s=n?ar:zn,c=cn({collapseWhitespace:o,trim:i,normalizer:a});return Array.from(e.querySelectorAll("[title], svg > title")).filter(u=>s(u.getAttribute("title"),u,t,c)||WD(u)&&s(Ei(u),u,t,c))},KD=(e,t)=>"Found multiple elements with the title: "+t+".",YD=(e,t)=>"Unable to find an element with the title: "+t+".",gw=pt(uu,uu.name,"queryAll"),[bw,vw,Ew,ww,_w]=pr(uu,KD,YD),cu=function(e,t,r){let{hidden:n=we().defaultHidden,name:o,description:i,queryFallbacks:a=!1,selected:s,busy:c,checked:u,pressed:d,current:p,level:f,expanded:h,value:{now:y,min:g,max:E,text:b}={}}=r===void 0?{}:r;if(dr(e),s!==void 0){var w;if(((w=At.roles.get(t))==null?void 0:w.props["aria-selected"])===void 0)throw new Error('"aria-selected" is not supported on role "'+t+'".')}if(c!==void 0){var P;if(((P=At.roles.get(t))==null?void 0:P.props["aria-busy"])===void 0)throw new Error('"aria-busy" is not supported on role "'+t+'".')}if(u!==void 0){var x;if(((x=At.roles.get(t))==null?void 0:x.props["aria-checked"])===void 0)throw new Error('"aria-checked" is not supported on role "'+t+'".')}if(d!==void 0){var C;if(((C=At.roles.get(t))==null?void 0:C.props["aria-pressed"])===void 0)throw new Error('"aria-pressed" is not supported on role "'+t+'".')}if(p!==void 0){var S;if(((S=At.roles.get(t))==null?void 0:S.props["aria-current"])===void 0)throw new Error('"aria-current" is not supported on role "'+t+'".')}if(f!==void 0&&t!=="heading")throw new Error('Role "'+t+'" cannot have "level" property.');if(y!==void 0){var _;if(((_=At.roles.get(t))==null?void 0:_.props["aria-valuenow"])===void 0)throw new Error('"aria-valuenow" is not supported on role "'+t+'".')}if(E!==void 0){var T;if(((T=At.roles.get(t))==null?void 0:T.props["aria-valuemax"])===void 0)throw new Error('"aria-valuemax" is not supported on role "'+t+'".')}if(g!==void 0){var A;if(((A=At.roles.get(t))==null?void 0:A.props["aria-valuemin"])===void 0)throw new Error('"aria-valuemin" is not supported on role "'+t+'".')}if(b!==void 0){var D;if(((D=At.roles.get(t))==null?void 0:D.props["aria-valuetext"])===void 0)throw new Error('"aria-valuetext" is not supported on role "'+t+'".')}if(h!==void 0){var k;if(((k=At.roles.get(t))==null?void 0:k.props["aria-expanded"])===void 0)throw new Error('"aria-expanded" is not supported on role "'+t+'".')}let U=new WeakMap;function I(R){return U.has(R)||U.set(R,qE(R)),U.get(R)}return Array.from(e.querySelectorAll(XD(t))).filter(R=>{if(R.hasAttribute("role")){let M=R.getAttribute("role");if(a)return M.split(" ").filter(Boolean).some(J=>J===t);let[L]=M.split(" ");return L===t}return gd(R).some(M=>M===t)}).filter(R=>{if(s!==void 0)return s===_D(R);if(c!==void 0)return c===TD(R);if(u!==void 0)return u===SD(R);if(d!==void 0)return d===AD(R);if(p!==void 0)return p===RD(R);if(h!==void 0)return h===OD(R);if(f!==void 0)return f===PD(R);if(y!==void 0||E!==void 0||g!==void 0||b!==void 0){let L=!0;if(y!==void 0&&L&&(L=y===xD(R)),E!==void 0&&L&&(L=E===CD(R)),g!==void 0&&L&&(L=g===ND(R)),b!==void 0){var M;L&&(L=ar((M=ID(R))!=null?M:null,R,b,J=>J))}return L}return!0}).filter(R=>o===void 0?!0:ar(pd(R,{computedStyleSupportsPseudoElements:we().computedStyleSupportsPseudoElements}),R,o,M=>M)).filter(R=>i===void 0?!0:ar(vE(R,{computedStyleSupportsPseudoElements:we().computedStyleSupportsPseudoElements}),R,i,M=>M)).filter(R=>n===!1?hs(R,{isSubtreeInaccessible:I})===!1:!0)};function XD(e){var t;let r='*[role~="'+e+'"]',n=(t=At.roleElements.get(e))!=null?t:new Set,o=new Set(Array.from(n).map(i=>{let{name:a}=i;return a}));return[r].concat(Array.from(o)).join(",")}var Tw=e=>{let t="";return e===void 0?t="":typeof e=="string"?t=' and name "'+e+'"':t=" and name `"+e+"`",t},QD=function(e,t,r){let{name:n}=r===void 0?{}:r;return'Found multiple elements with the role "'+t+'"'+Tw(n)},ZD=function(e,t,r){let{hidden:n=we().defaultHidden,name:o,description:i}=r===void 0?{}:r;if(we()._disableExpensiveErrorDiagnostics)return'Unable to find role="'+t+'"'+Tw(o);let a="";Array.from(e.children).forEach(d=>{a+=kE(d,{hidden:n,includeDescription:i!==void 0})});let s;a.length===0?n===!1?s="There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole":s="There are no available roles.":s=(`
331
+ Here are the `+(n===!1?"accessible":"available")+` roles:
332
+
333
+ `+a.replace(/\n/g,`
334
+ `).replace(/\n\s\s\n/g,`
335
+
336
+ `)+`
337
+ `).trim();let c="";o===void 0?c="":typeof o=="string"?c=' and name "'+o+'"':c=" and name `"+o+"`";let u="";return i===void 0?u="":typeof i=="string"?u=' and description "'+i+'"':u=" and description `"+i+"`",(`
338
+ Unable to find an `+(n===!1?"accessible ":"")+'element with the role "'+t+'"'+c+u+`
339
+
340
+ `+s).trim()},Sw=pt(cu,cu.name,"queryAll"),[Aw,Rw,Ow,Pw,xw]=pr(cu,QD,ZD),Ed=()=>we().testIdAttribute,du=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return dr(t[0]),dn(Ed(),...t)},e$=(e,t)=>"Found multiple elements by: ["+Ed()+'="'+t+'"]',t$=(e,t)=>"Unable to find an element by: ["+Ed()+'="'+t+'"]',Cw=pt(du,du.name,"queryAll"),[Nw,Iw,jw,qw,Mw]=pr(du,e$,t$),Ea=Object.freeze({__proto__:null,queryAllByLabelText:GE,queryByLabelText:BE,getAllByLabelText:VE,getByLabelText:HE,findAllByLabelText:UE,findByLabelText:JE,queryByPlaceholderText:WE,queryAllByPlaceholderText:zE,getByPlaceholderText:YE,getAllByPlaceholderText:KE,findAllByPlaceholderText:XE,findByPlaceholderText:QE,queryByText:ew,queryAllByText:ZE,getByText:rw,getAllByText:tw,findAllByText:nw,findByText:ow,queryByDisplayValue:aw,queryAllByDisplayValue:iw,getByDisplayValue:lw,getAllByDisplayValue:sw,findAllByDisplayValue:uw,findByDisplayValue:cw,queryByAltText:pw,queryAllByAltText:dw,getByAltText:hw,getAllByAltText:fw,findAllByAltText:mw,findByAltText:yw,queryByTitle:bw,queryAllByTitle:gw,getByTitle:Ew,getAllByTitle:vw,findAllByTitle:ww,findByTitle:_w,queryByRole:Aw,queryAllByRole:Sw,getAllByRole:Rw,getByRole:Ow,findAllByRole:Pw,findByRole:xw,queryByTestId:Nw,queryAllByTestId:Cw,getByTestId:jw,getAllByTestId:Iw,findAllByTestId:qw,findByTestId:Mw});function pu(e,t,r){return t===void 0&&(t=Ea),r===void 0&&(r={}),Object.keys(t).reduce((n,o)=>{let i=t[o];return n[o]=i.bind(null,e),n},r)}var kw=e=>!e||Array.isArray(e)&&!e.length;function Wf(e){if(kw(e))throw new Error("The element(s) given to waitForElementToBeRemoved are already removed. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal.")}async function r$(e,t){let r=new Error("Timed out in waitForElementToBeRemoved.");if(typeof e!="function"){Wf(e);let n=(Array.isArray(e)?e:[e]).map(o=>{let i=o.parentElement;if(i===null)return()=>null;for(;i.parentElement;)i=i.parentElement;return()=>i.contains(o)?o:null});e=()=>n.map(o=>o()).filter(Boolean)}return Wf(e()),bd(()=>{let n;try{n=e()}catch(o){if(o.name==="TestingLibraryElementError")return;throw o}if(!kw(n))throw r},t)}var Kf={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}}},Yf={doubleClick:"dblClick"};function Zo(e,t){return we().eventWrapper(()=>{if(!t)throw new Error("Unable to fire an event - please provide an event object.");if(!e)throw new Error('Unable to fire a "'+t.type+'" event - please provide a DOM element.');return e.dispatchEvent(t)})}function Xi(e,t,r,n){let{EventType:o="Event",defaultInit:i={}}=n===void 0?{}:n;if(!t)throw new Error('Unable to fire a "'+e+'" event - please provide a DOM element.');let a={...i,...r},{target:{value:s,files:c,...u}={}}=a;s!==void 0&&n$(t,s),c!==void 0&&Object.defineProperty(t,"files",{configurable:!0,enumerable:!0,writable:!0,value:c}),Object.assign(t,u);let d=PE(t),p=d[o]||d.Event,f;if(typeof p=="function")f=new p(e,a);else{f=d.document.createEvent(o);let{bubbles:h,cancelable:y,detail:g,...E}=a;f.initEvent(e,h,y,g),Object.keys(E).forEach(b=>{f[b]=E[b]})}return["dataTransfer","clipboardData"].forEach(h=>{let y=a[h];typeof y=="object"&&(typeof d.DataTransfer=="function"?Object.defineProperty(f,h,{value:Object.getOwnPropertyNames(y).reduce((g,E)=>(Object.defineProperty(g,E,{value:y[E]}),g),new d.DataTransfer)}):Object.defineProperty(f,h,{value:y}))}),f}Object.keys(Kf).forEach(e=>{let{EventType:t,defaultInit:r}=Kf[e],n=e.toLowerCase();Xi[e]=(o,i)=>Xi(n,o,i,{EventType:t,defaultInit:r}),Zo[e]=(o,i)=>Zo(o,Xi[e](o,i))});function n$(e,t){let{set:r}=Object.getOwnPropertyDescriptor(e,"value")||{},n=Object.getPrototypeOf(e),{set:o}=Object.getOwnPropertyDescriptor(n,"value")||{};if(o&&r!==o)o.call(e,t);else if(r)r.call(e,t);else throw new Error("The given element does not have a value setter")}Object.keys(Yf).forEach(e=>{let t=Yf[e];Zo[e]=function(){return Zo[t](...arguments)}});function o$(e){return e.replace(/[ \t]*[\n][ \t]*/g,`
341
+ `)}function i$(e){return KL.default.compressToEncodedURIComponent(o$(e))}function a$(e){return"https://testing-playground.com/#markup="+i$(e)}var s$=(e,t,r)=>Array.isArray(e)?e.forEach(n=>nu(n,t,r)):nu(e,t,r),l$=function(e){if(e===void 0&&(e=md().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=a$(e.innerHTML);return console.log(`Open this URL in your browser
342
+
343
+ `+t),t},Xf={debug:s$,logTestingPlaygroundURL:l$},u$=typeof document<"u"&&document.body?pu(document.body,Ea,Xf):Object.keys(Ea).reduce((e,t)=>(e[t]=()=>{throw new TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error")},e),Xf);function ve(e,t,r){return e.namespaceURI&&e.namespaceURI!=="http://www.w3.org/1999/xhtml"||(t=Array.isArray(t)?t:[t],!t.includes(e.tagName.toLowerCase()))?!1:r?Object.entries(r).every(([n,o])=>e[n]===o):!0}function xt(e){var t;if(c$(e)&&e.defaultView)return e.defaultView;if(!((t=e.ownerDocument)===null||t===void 0)&&t.defaultView)return e.ownerDocument.defaultView;throw new Error(`Could not determine window of node. Node was ${d$(e)}`)}function c$(e){return e.nodeType===9}function d$(e){return typeof e=="function"?`function ${e.name}`:e===null?"null":String(e)}function Lw(e,t){return new Promise((r,n)=>{let o=new t;o.onerror=n,o.onabort=n,o.onload=()=>{r(String(o.result))},o.readAsText(e)})}function wd(e,t){let r={...t,length:t.length,item:n=>r[n],[Symbol.iterator]:function*(){for(let n=0;n<r.length;n++)yield r[n]}};return r.constructor=e.FileList,e.FileList&&Object.setPrototypeOf(r,e.FileList.prototype),Object.freeze(r),r}function Sr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Dw=class{getAsFile(){return this.file}getAsString(e){typeof this.data=="string"&&e(this.data)}webkitGetAsEntry(){throw new Error("not implemented")}constructor(e,t){Sr(this,"kind",void 0),Sr(this,"type",void 0),Sr(this,"file",null),Sr(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)}},p$=class extends Array{add(...e){let t=new Dw(e[0],e[1]);return this.push(t),t}clear(){this.splice(0,this.length)}remove(e){this.splice(e,1)}};function ji(e,t){let[r,n]=e.split("/"),o=!n||n==="*";return i=>t?i.type===(o?r:e):o?i.type.startsWith(`${r}/`):i.type===r}function f$(e){return new class{getData(t){var r;let n=(r=this.items.find(ji(t,!0)))!==null&&r!==void 0?r:this.items.find(ji(t,!1)),o="";return n?.getAsString(i=>{o=i}),o}setData(t,r){let n=this.items.findIndex(ji(t,!0)),o=new Dw(r,t);n>=0?this.items.splice(n,1,o):this.items.push(o)}clearData(t){if(t){let r=this.items.findIndex(ji(t,!0));r>=0&&this.items.remove(r)}else this.items.clear()}get types(){let t=[];return this.files.length&&t.push("Files"),this.items.forEach(r=>t.push(r.type)),Object.freeze(t),t}setDragImage(){}constructor(){Sr(this,"dropEffect","none"),Sr(this,"effectAllowed","uninitialized"),Sr(this,"items",new p$),Sr(this,"files",wd(e,[]))}}}function _d(e,t=[]){let r=typeof e.DataTransfer>"u"?f$(e):new e.DataTransfer;return Object.defineProperty(r,"files",{get:()=>wd(e,t)}),r}async function h$(e,t){return t.kind==="file"?t.getAsFile():new e.Blob([await new Promise(r=>t.getAsString(r))],{type:t.type})}function $w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bw(e,...t){let r=Object.fromEntries(t.map(n=>[typeof n=="string"?"text/plain":n.type,Promise.resolve(n)]));return typeof e.ClipboardItem<"u"?new e.ClipboardItem(r):new class{get types(){return Array.from(Object.keys(this.data))}async getType(n){let o=await this.data[n];if(!o)throw new Error(`${n} is not one of the available MIME types on this item.`);return o instanceof e.Blob?o:new e.Blob([o],{type:n})}constructor(n){$w(this,"data",void 0),this.data=n}}(r)}var In=Symbol("Manage ClipboardSub");function Qf(e,t){return Object.assign(new class extends e.EventTarget{async read(){return Array.from(this.items)}async readText(){let r="";for(let n of this.items){let o=n.types.includes("text/plain")?"text/plain":n.types.find(i=>i.startsWith("text/"));o&&(r+=await n.getType(o).then(i=>Lw(i,e.FileReader)))}return r}async write(r){this.items=r}async writeText(r){this.items=[Bw(e,r)]}constructor(...r){super(...r),$w(this,"items",[])}},{[In]:t})}function Td(e){return!!e?.[In]}function m$(e){if(Td(e.navigator.clipboard))return e.navigator.clipboard[In];let t=Object.getOwnPropertyDescriptor(e.navigator,"clipboard"),r,n={resetClipboardStub:()=>{r=Qf(e,n)},detachClipboardStub:()=>{t?Object.defineProperty(e.navigator,"clipboard",t):Object.defineProperty(e.navigator,"clipboard",{value:void 0,configurable:!0})}};return r=Qf(e,n),Object.defineProperty(e.navigator,"clipboard",{get:()=>r,configurable:!0}),r[In]}function y$(e){Td(e.navigator.clipboard)&&e.navigator.clipboard[In].resetClipboardStub()}function g$(e){Td(e.navigator.clipboard)&&e.navigator.clipboard[In].detachClipboardStub()}async function b$(e){let t=e.defaultView,r=t?.navigator.clipboard,n=r&&await r.read();if(!n)throw new Error("The Clipboard API is unavailable.");let o=_d(t);for(let i of n)for(let a of i.types)o.setData(a,await i.getType(a).then(s=>Lw(s,t.FileReader)));return o}async function Fw(e,t){let r=xt(e),n=r.navigator.clipboard,o=[];for(let i=0;i<t.items.length;i++){let a=t.items[i],s=await h$(r,a);o.push(Bw(r,s))}if(!(n&&await n.write(o).then(()=>!0,()=>!1)))throw new Error("The Clipboard API is unavailable.")}var wa=globalThis;typeof wa.afterEach=="function"&&wa.afterEach(()=>{typeof globalThis.window<"u"&&y$(globalThis.window)});typeof wa.afterAll=="function"&&wa.afterAll(()=>{typeof globalThis.window<"u"&&g$(globalThis.window)});var Uw=["input:not([type=hidden]):not([disabled])","button:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contenteditable=""]','[contenteditable="true"]',"a[href]","[tabindex]:not([disabled])"].join(", ");function Sd(e){return e.matches(Uw)}function v$(e){return new e.constructor(e.type,e)}function sr(e){for(let r=e;r;r=r.parentElement)if(ve(r,["button","input","select","textarea","optgroup","option"])){if(r.hasAttribute("disabled"))return!0}else if(ve(r,"fieldset")){var t;if(r.hasAttribute("disabled")&&!(!((t=r.querySelector(":scope > legend"))===null||t===void 0)&&t.contains(e)))return!0}else if(r.tagName.includes("-")&&r.constructor.formAssociated&&r.hasAttribute("disabled"))return!0;return!1}function _i(e){let t=e.activeElement;return t?.shadowRoot?_i(t.shadowRoot):sr(t)?e.ownerDocument?e.ownerDocument.body:e.body:t}function ol(e){var t;return(t=_i(e))!==null&&t!==void 0?t:e.body}function E$(e,t){let r=e;do{if(t(r))return r;r=r.parentElement}while(r&&r!==e.ownerDocument.body)}function nn(e){return e.hasAttribute("contenteditable")&&(e.getAttribute("contenteditable")=="true"||e.getAttribute("contenteditable")=="")}function ei(e){let t=w$(e);return t&&(t.closest('[contenteditable=""]')||t.closest('[contenteditable="true"]'))}function w$(e){return e.nodeType===1?e:e.parentElement}var Jw=(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})(Jw||{});function Vw(e){return ve(e,"button")||ve(e,"input")&&e.type in Jw}function jn(e){return Gw(e)&&!e.readOnly||nn(e)}var Hw=(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})(Hw||{});function Gw(e){return ve(e,"textarea")||ve(e,"input")&&e.type in Hw}function Gt(e){return zw(e)&&Gw(e)}function _$(e){return zw(e)&&Vw(e)}function zw(e){return e.nodeType===1}function T$(e){let t=e.ownerDocument.getSelection();if(t?.focusNode&&Gt(e)){let n=ei(t.focusNode);if(n){if(!t.isCollapsed){var r;let o=((r=n.firstChild)===null||r===void 0?void 0:r.nodeType)===3?n.firstChild:n;t.setBaseAndExtent(o,0,o,0)}}else t.setBaseAndExtent(e,0,e,0)}}function qn(e,t){return we().eventWrapper(e)}function Nr(e){let t=E$(e,Sd),r=_i(e.ownerDocument);(t??e.ownerDocument.body)!==r&&(qn(t?()=>t.focus():()=>r?.blur()),T$(t??e.ownerDocument.body))}function S$(e){!Sd(e)||_i(e.ownerDocument)!==e||qn(()=>e.blur())}var Ir={};Ir.click=(e,t,r)=>{let n=t.closest("button,input,label,select,textarea"),o=n&&ve(n,"label")&&n.control;if(o&&o!==t)return()=>{Sd(o)&&(Nr(o),r.dispatchEvent(o,v$(e)))};if(ve(t,"input",{type:"file"}))return()=>{S$(t),t.dispatchEvent(new(xt(t)).Event("fileDialog")),Nr(t)}};var Mn=Symbol("Displayed value in UI"),nr=Symbol("Displayed selection in UI"),_a=Symbol("Initial value to compare on blur");function A$(e){return typeof e=="object"&&Mn in e}function R$(e){return!!e&&typeof e=="object"&&nr in e}function O$(e,t){e[_a]===void 0&&(e[_a]=e.value),e[Mn]=t,e.value=Object.assign(new String(t),{[Mn]:!0})}function zt(e){return e[Mn]===void 0?e.value:String(e[Mn])}function Ad(e){e[Mn]=void 0}function Ww(e){e[_a]=void 0}function P$(e){return e[_a]}function x$(e,t){e[nr]=t}function Wn(e,{focusOffset:t,anchorOffset:r=t},n="replace"){let o=zt(e).length,i=p=>Math.max(0,Math.min(o,p)),a=n==="replace"||e[nr]===void 0?i(r):e[nr].anchorOffset,s=i(t),c=Math.min(a,s),u=Math.max(a,s);if(e[nr]={anchorOffset:a,focusOffset:s},e.selectionStart===c&&e.selectionEnd===u)return;let d=Object.assign(new Number(c),{[nr]:!0});try{e.setSelectionRange(d,u)}catch{}}function ti(e){var t,r,n;let o=(n=e[nr])!==null&&n!==void 0?n:{anchorOffset:(t=e.selectionStart)!==null&&t!==void 0?t:0,focusOffset:(r=e.selectionEnd)!==null&&r!==void 0?r:0};return{...o,startOffset:Math.min(o.anchorOffset,o.focusOffset),endOffset:Math.max(o.anchorOffset,o.focusOffset)}}function C$(e){return!!e[nr]}function Qi(e){e[nr]=void 0}var Ta=globalThis.parseInt;function N$(e){let t=e.replace(/\D/g,"");if(t.length<2)return e;let r=Ta(t[0],10),n=Ta(t[1],10);if(r>=3||r===2&&n>=4){let o;return r>=3?o=1:o=2,Zf(t,o)}return e.length===2?e:Zf(t,2)}function Zf(e,t){let r=e.slice(0,t),n=Math.min(Ta(r,10),23),o=e.slice(t),i=Ta(o,10),a=Math.min(i,59);return`${n.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`}function Kw(e,t){let r=e.cloneNode();return r.value=t,r.value===t}var Yw=(function(e){return e.email="email",e.password="password",e.search="search",e.telephone="telephone",e.text="text",e.url="url",e})(Yw||{});function I$(e){var t;let r=(t=e.getAttribute("maxlength"))!==null&&t!==void 0?t:"";return/^\d+$/.test(r)&&Number(r)>=0?Number(r):void 0}function j$(e){return ve(e,"textarea")||ve(e,"input")&&e.type in Yw}function Xw(e,t,r,n){if(Zi(e)&&t+r>=0&&t+r<=e.nodeValue.length)return{node:e,offset:t+r};let o=eh(e,t,r);if(o){if(Zi(o))return{node:o,offset:r>0?Math.min(1,o.nodeValue.length):Math.max(o.nodeValue.length-1,0)};if(ve(o,"br")){let i=eh(o,void 0,r);return i?Zi(i)?{node:i,offset:r>0?0:i.nodeValue.length}:r<0&&ve(i,"br")?{node:o.parentNode,offset:qi(o)}:{node:i.parentNode,offset:qi(i)+(r>0?0:1)}:r<0&&n==="deleteContentBackward"?{node:o.parentNode,offset:qi(o)}:void 0}else return{node:o.parentNode,offset:qi(o)+(r>0?1:0)}}}function eh(e,t,r){let n=Number(t)+(r<0?-1:0);return t!==void 0&&Rd(e)&&n>=0&&n<e.children.length&&(e=e.children[n]),M$(e,r===1?"next":"previous",q$)}function q$(e){if(Zi(e))return!0;if(Rd(e)){if(ve(e,["input","textarea"]))return e.type!=="hidden";if(ve(e,"br"))return!0}return!1}function qi(e){let t=0;for(;e.previousSibling;)t++,e=e.previousSibling;return t}function Rd(e){return e.nodeType===1}function Zi(e){return e.nodeType===3}function M$(e,t,r){for(;;){var n;let o=e[`${t}Sibling`];if(o){if(e=k$(o,t==="next"?"first":"last"),r(e))return e}else if(e.parentNode&&(!Rd(e.parentNode)||!nn(e.parentNode)&&e.parentNode!==((n=e.ownerDocument)===null||n===void 0?void 0:n.body)))e=e.parentNode;else break}}function k$(e,t){for(;e.hasChildNodes();)e=e[`${t}Child`];return e}var ri=Symbol("Track programmatic changes for React workaround");function L$(e){return Object.getOwnPropertyNames(e).some(t=>t.startsWith("__react"))&&xt(e).REACT_VERSION===17}function D$(e){L$(e)&&(e[ri]={previousValue:String(e.value),tracked:[]})}function $$(e,t){var r,n;(n=e[ri])===null||n===void 0||(r=n.tracked)===null||r===void 0||r.push(t),e[ri]||(Ad(e),Wn(e,{focusOffset:t.length}))}function B$(e,t){var r;let n=e[ri];if(e[ri]=void 0,!(!(n==null||(r=n.tracked)===null||r===void 0)&&r.length))return;let o=n.tracked.length===2&&n.tracked[0]===n.previousValue&&n.tracked[1]===e.value;o||Ad(e),C$(e)&&Wn(e,{focusOffset:o?t:e.value.length})}function Qw(e){let t=F$(e);if(t&&Gt(t))return{type:"input",selection:ti(t)};let r=t?.ownerDocument.getSelection();return{type:ei(e)&&r?.anchorNode&&ei(r.anchorNode)?"contenteditable":"default",selection:r}}function F$(e){return e.nodeType===1?e:e.parentElement}function U$(e){let t=Qw(e);if(t.type==="input")return t.selection;if(t.type==="contenteditable"){var r;return(r=t.selection)===null||r===void 0?void 0:r.getRangeAt(0)}}function on({focusNode:e,focusOffset:t,anchorNode:r=e,anchorOffset:n=t}){var o,i;if(Qw(e).type==="input")return Wn(e,{anchorOffset:n,focusOffset:t});(i=r.ownerDocument)===null||i===void 0||(o=i.getSelection())===null||o===void 0||o.setBaseAndExtent(r,n,e,t)}function Zw(e){return ve(e,"input")&&["date","time"].includes(e.type)}function kn(e,t,r,n="insertText"){let o=U$(t);o&&(!Zw(t)&&!e.dispatchUIEvent(t,"beforeinput",{inputType:n,data:r})||("startContainer"in o?J$(e,t,o,r,n):V$(e,t,o,r,n)))}function J$(e,t,r,n,o){let i=!1;if(!r.collapsed)i=!0,r.deleteContents();else if(["deleteContentBackward","deleteContentForward"].includes(o)){let a=Xw(r.startContainer,r.startOffset,o==="deleteContentBackward"?-1:1,o);if(a){i=!0;let s=r.cloneRange();s.comparePoint(a.node,a.offset)<0?s.setStart(a.node,a.offset):s.setEnd(a.node,a.offset),s.deleteContents()}}if(n)if(r.endContainer.nodeType===3){let a=r.endOffset;r.endContainer.insertData(a,n),r.setStart(r.endContainer,a+n.length),r.setEnd(r.endContainer,a+n.length)}else{let a=t.ownerDocument.createTextNode(n);r.insertNode(a),r.setStart(a,n.length),r.setEnd(a,n.length)}(i||n)&&e.dispatchUIEvent(t,"input",{inputType:o})}function V$(e,t,r,n,o){let i=n;if(j$(t)){let u=I$(t);if(u!==void 0&&n.length>0){let d=u-t.value.length;if(d>0)i=n.substring(0,d);else return}}let{newValue:a,newOffset:s,oldValue:c}=H$(i,t,r,o);a===c&&s===r.startOffset&&s===r.endOffset||ve(t,"input",{type:"number"})&&!G$(a)||(O$(t,a),on({focusNode:t,anchorOffset:s,focusOffset:s}),Zw(t)?Kw(t,a)&&(th(e,t,s,{}),e.dispatchUIEvent(t,"change"),Ww(t)):th(e,t,s,{data:n,inputType:o}))}function H$(e,t,{startOffset:r,endOffset:n},o){let i=zt(t),a=Math.max(0,r===n&&o==="deleteContentBackward"?r-1:r),s=i.substring(0,a),c=Math.min(i.length,r===n&&o==="deleteContentForward"?r+1:n),u=i.substring(c,i.length),d=`${s}${e}${u}`,p=a+e.length;if(ve(t,"input",{type:"time"})){let f=N$(d);f!==""&&Kw(t,f)&&(d=f,p=f.length)}return{oldValue:i,newValue:d,newOffset:p}}function th(e,t,r,n){e.dispatchUIEvent(t,"input",n),B$(t,r)}function G$(e){var t,r;let n=e.split("e",2);return!(/[^\d.\-e]/.test(e)||Number((t=e.match(/-/g))===null||t===void 0?void 0:t.length)>2||Number((r=e.match(/\./g))===null||r===void 0?void 0:r.length)>1||n[1]&&!/^-?\d*$/.test(n[1]))}Ir.cut=(e,t,r)=>()=>{jn(t)&&kn(r,t,"","deleteByCut")};function z$(e){return e?nn(e)?e.textContent:zt(e):null}function W$(e){let t=xt(e);for(let r=e;r?.ownerDocument;r=r.parentElement){let{display:n,visibility:o}=t.getComputedStyle(r);if(n==="none"||o==="hidden")return!1}return!0}function K$(e,t){let r=e.ownerDocument,n=r.querySelectorAll(Uw),o=Array.from(n).filter(c=>c===e||!(Number(c.getAttribute("tabindex"))<0||sr(c)));Number(e.getAttribute("tabindex"))>=0&&o.sort((c,u)=>{let d=Number(c.getAttribute("tabindex")),p=Number(u.getAttribute("tabindex"));return d===p?0:d===0?1:p===0?-1:d-p});let i={},a=[r.body],s=ve(e,"input",{type:"radio"})?e.name:void 0;o.forEach(c=>{let u=c;if(ve(u,"input",{type:"radio"})&&u.name){if(u===e){a.push(u);return}else if(u.name===s)return;if(u.checked){a=a.filter(d=>!ve(d,"input",{type:"radio",name:u.name})),a.push(u),i[u.name]=u;return}if(typeof i[u.name]<"u")return}a.push(u)});for(let c=a.findIndex(u=>u===e);;)if(c+=t?-1:1,c===a.length?c=0:c===-1&&(c=a.length-1),a[c]===e||a[c]===r.body||W$(a[c]))return a[c]}function rh(e,t){if(Gt(e)){let r=ti(e);on({focusNode:e,focusOffset:r.startOffset===r.endOffset?r.focusOffset+t:t<0?r.startOffset:r.endOffset})}else{let r=e.ownerDocument.getSelection();if(!r?.focusNode)return;if(r.isCollapsed){let n=Xw(r.focusNode,r.focusOffset,t);n&&on({focusNode:n.node,focusOffset:n.offset})}else r[t<0?"collapseToStart":"collapseToEnd"]()}}function e_(e){if(Gt(e))return on({focusNode:e,anchorOffset:0,focusOffset:zt(e).length});var t;let r=(t=ei(e))!==null&&t!==void 0?t:e.ownerDocument.body;on({focusNode:r,anchorOffset:0,focusOffset:r.childNodes.length})}function Y$(e){if(Gt(e))return ti(e).startOffset===0&&ti(e).endOffset===zt(e).length;var t;let r=(t=ei(e))!==null&&t!==void 0?t:e.ownerDocument.body,n=e.ownerDocument.getSelection();return n?.anchorNode===r&&n.focusNode===r&&n.anchorOffset===0&&n.focusOffset===r.childNodes.length}function So(e,t,r){var n;if(Gt(e))return on({focusNode:e,anchorOffset:t,focusOffset:r});if(nn(e)&&((n=e.firstChild)===null||n===void 0?void 0:n.nodeType)===3)return on({focusNode:e.firstChild,anchorOffset:t,focusOffset:r});throw new Error("Not implemented. The result of this interaction is unreliable.")}function Mi(e,t,r){let n=xt(t),o=Array.from(t.ownerDocument.querySelectorAll(t.name?`input[type="radio"][name="${n.CSS.escape(t.name)}"]`:'input[type="radio"][name=""], input[type="radio"]:not([name])'));for(let i=o.findIndex(a=>a===t)+r;;i+=r){if(o[i]||(i=r>0?0:o.length-1),o[i]===t)return;if(!sr(o[i])){Nr(o[i]),e.dispatchUIEvent(o[i],"click");return}}}Ir.keydown=(e,t,r)=>{var n,o;return(o=(n=nh[e.key])===null||n===void 0?void 0:n.call(nh,e,t,r))!==null&&o!==void 0?o:X$(e,t,r)};var nh={ArrowDown:(e,t,r)=>{if(ve(t,"input",{type:"radio"}))return()=>Mi(r,t,1)},ArrowLeft:(e,t,r)=>ve(t,"input",{type:"radio"})?()=>Mi(r,t,-1):()=>rh(t,-1),ArrowRight:(e,t,r)=>ve(t,"input",{type:"radio"})?()=>Mi(r,t,1):()=>rh(t,1),ArrowUp:(e,t,r)=>{if(ve(t,"input",{type:"radio"}))return()=>Mi(r,t,-1)},Backspace:(e,t,r)=>{if(jn(t))return()=>{kn(r,t,"","deleteContentBackward")}},Delete:(e,t,r)=>{if(jn(t))return()=>{kn(r,t,"","deleteContentForward")}},End:(e,t)=>{if(ve(t,["input","textarea"])||nn(t))return()=>{var r,n;let o=(n=(r=z$(t))===null||r===void 0?void 0:r.length)!==null&&n!==void 0?n:0;So(t,o,o)}},Home:(e,t)=>{if(ve(t,["input","textarea"])||nn(t))return()=>{So(t,0,0)}},PageDown:(e,t)=>{if(ve(t,["input"]))return()=>{let r=zt(t).length;So(t,r,r)}},PageUp:(e,t)=>{if(ve(t,["input"]))return()=>{So(t,0,0)}},Tab:(e,t,r)=>()=>{let n=K$(t,r.system.keyboard.modifiers.Shift);Nr(n),Gt(n)&&Wn(n,{anchorOffset:0,focusOffset:n.value.length})}},X$=(e,t,r)=>{if(e.code==="KeyA"&&r.system.keyboard.modifiers.Control)return()=>e_(t)};Ir.keypress=(e,t,r)=>{if(e.key==="Enter"){if(ve(t,"button")||ve(t,"input")&&Q$.includes(t.type)||ve(t,"a")&&t.href)return()=>{r.dispatchUIEvent(t,"click")};if(ve(t,"input")){let n=t.form,o=n?.querySelector('input[type="submit"], button:not([type]), button[type="submit"]');return o?()=>r.dispatchUIEvent(o,"click"):n&&Z$.includes(t.type)&&n.querySelectorAll("input").length===1?()=>r.dispatchUIEvent(n,"submit"):void 0}}if(jn(t)){let n=e.key==="Enter"?nn(t)&&!r.system.keyboard.modifiers.Shift?"insertParagraph":"insertLineBreak":"insertText",o=e.key==="Enter"?`
344
+ `:e.key;return()=>kn(r,t,o,n)}};var Q$=["button","color","file","image","reset","submit"],Z$=["email","month","password","search","tel","text","url","week"];Ir.keyup=(e,t,r)=>{var n;return(n=oh[e.key])===null||n===void 0?void 0:n.call(oh,e,t,r)};var oh={" ":(e,t,r)=>{if(Vw(t))return()=>r.dispatchUIEvent(t,"click")}};Ir.paste=(e,t,r)=>{if(jn(t))return()=>{var n;let o=(n=e.clipboardData)===null||n===void 0?void 0:n.getData("text");o&&kn(r,t,o,"insertFromPaste")}};var t_={auxclick:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},beforeinput:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},blur:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},click:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},contextmenu:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblclick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},focus:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},focusin:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},focusout:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},keydown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keypress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyup:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},mousedown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseenter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseleave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mousemove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseout:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseover:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseup:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerover:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerenter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerdown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointermove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerup:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointercancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerout:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerleave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}}};function r_(e){return t_[e].EventType}var eB=["MouseEvent","PointerEvent"];function tB(e){return eB.includes(r_(e))}function rB(e){return r_(e)==="KeyboardEvent"}var nB={ClipboardEvent:[iB],Event:[],FocusEvent:[bo,aB],InputEvent:[bo,sB],MouseEvent:[bo,il,ih],PointerEvent:[bo,il,ih,uB],KeyboardEvent:[bo,il,lB]};function n_(e,t,r){let n=xt(t),{EventType:o,defaultInit:i}=t_[e],a=new(oB(n))[o](e,i);var s={};for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(s[c]=r[c]);return s.view=n,nB[o].forEach(function(u){u(a,s)}),a}function oB(e){var t;let r=(t=e.Event)!==null&&t!==void 0?t:class{};var n;let o=(n=e.AnimationEvent)!==null&&n!==void 0?n:class extends r{};var i;let a=(i=e.ClipboardEvent)!==null&&i!==void 0?i:class extends r{};var s;let c=(s=e.PopStateEvent)!==null&&s!==void 0?s:class extends r{};var u;let d=(u=e.ProgressEvent)!==null&&u!==void 0?u:class extends r{};var p;let f=(p=e.TransitionEvent)!==null&&p!==void 0?p:class extends r{};var h;let y=(h=e.UIEvent)!==null&&h!==void 0?h:class extends r{};var g;let E=(g=e.CompositionEvent)!==null&&g!==void 0?g:class extends y{};var b;let w=(b=e.FocusEvent)!==null&&b!==void 0?b:class extends y{};var P;let x=(P=e.InputEvent)!==null&&P!==void 0?P:class extends y{};var C;let S=(C=e.KeyboardEvent)!==null&&C!==void 0?C:class extends y{};var _;let T=(_=e.MouseEvent)!==null&&_!==void 0?_:class extends y{};var A;let D=(A=e.DragEvent)!==null&&A!==void 0?A:class extends T{};var k;let U=(k=e.PointerEvent)!==null&&k!==void 0?k:class extends T{};var I;let R=(I=e.TouchEvent)!==null&&I!==void 0?I:class extends y{};return{Event:r,AnimationEvent:o,ClipboardEvent:a,PopStateEvent:c,ProgressEvent:d,TransitionEvent:f,UIEvent:y,CompositionEvent:E,FocusEvent:w,InputEvent:x,KeyboardEvent:S,MouseEvent:T,DragEvent:D,PointerEvent:U,TouchEvent:R}}function qr(e,t){for(let[r,n]of Object.entries(t))Object.defineProperty(e,r,{get:()=>n??null})}function Be(e){return Number(e??0)}function iB(e,{clipboardData:t}){qr(e,{clipboardData:t})}function aB(e,{relatedTarget:t}){qr(e,{relatedTarget:t})}function sB(e,{data:t,inputType:r,isComposing:n}){qr(e,{data:t,isComposing:!!n,inputType:String(r)})}function bo(e,{view:t,detail:r}){qr(e,{view:t,detail:Be(r??0)})}function il(e,{altKey:t,ctrlKey:r,metaKey:n,shiftKey:o,modifierAltGraph:i,modifierCapsLock:a,modifierFn:s,modifierFnLock:c,modifierNumLock:u,modifierScrollLock:d,modifierSymbol:p,modifierSymbolLock:f}){qr(e,{altKey:!!t,ctrlKey:!!r,metaKey:!!n,shiftKey:!!o,getModifierState(h){return!!{Alt:t,AltGraph:i,CapsLock:a,Control:r,Fn:s,FnLock:c,Meta:n,NumLock:u,ScrollLock:d,Shift:o,Symbol:p,SymbolLock:f}[h]}})}function lB(e,{key:t,code:r,location:n,repeat:o,isComposing:i,charCode:a}){qr(e,{key:String(t),code:String(r),location:Be(n),repeat:!!o,isComposing:!!i,charCode:a})}function ih(e,{x:t,y:r,screenX:n,screenY:o,clientX:i=t,clientY:a=r,button:s,buttons:c,relatedTarget:u,offsetX:d,offsetY:p,pageX:f,pageY:h}){qr(e,{screenX:Be(n),screenY:Be(o),clientX:Be(i),x:Be(i),clientY:Be(a),y:Be(a),button:Be(s),buttons:Be(c),relatedTarget:u,offsetX:Be(d),offsetY:Be(p),pageX:Be(f),pageY:Be(h)})}function uB(e,{pointerId:t,width:r,height:n,pressure:o,tangentialPressure:i,tiltX:a,tiltY:s,twist:c,pointerType:u,isPrimary:d}){qr(e,{pointerId:Be(t),width:Be(r??1),height:Be(n??1),pressure:Be(o),tangentialPressure:Be(i),tiltX:Be(a),tiltY:Be(s),twist:Be(c),pointerType:String(u),isPrimary:!!d})}function cB(e,t,r,n=!1){(tB(t)||rB(t))&&(r={...r,...this.system.getUIEventModifiers()});let o=n_(t,e,r);return o_.call(this,e,o,n)}function o_(e,t,r=!1){var n;let o=t.type,i=r?()=>{}:(n=Ir[o])===null||n===void 0?void 0:n.call(Ir,t,e,this);if(i){t.preventDefault();let a=!1;return Object.defineProperty(t,"defaultPrevented",{get:()=>a}),Object.defineProperty(t,"preventDefault",{value:()=>{a=t.cancelable}}),qn(()=>e.dispatchEvent(t)),a||i(),!a}return qn(()=>e.dispatchEvent(t))}function Gr(e,t,r){let n=n_(t,e,r);qn(()=>e.dispatchEvent(n))}var ah=Symbol("patched focus/blur methods");function i_(e){if(e.prototype[ah])return;let{focus:t,blur:r}=e.prototype;Object.defineProperties(e.prototype,{focus:{configurable:!0,get:()=>o},blur:{configurable:!0,get:()=>i},[ah]:{configurable:!0,get:()=>({focus:t,blur:r})}});let n;function o(a){if(this.ownerDocument.visibilityState!=="hidden")return t.call(this,a);let s=sh(this.ownerDocument);if(s===this)return;let c=Symbol("focus call");n=c,s&&(r.call(s),Gr(s,"blur",{relatedTarget:this}),Gr(s,"focusout",{relatedTarget:n===c?this:null})),n===c&&(t.call(this,a),Gr(this,"focus",{relatedTarget:s})),n===c&&Gr(this,"focusin",{relatedTarget:s})}function i(){if(this.ownerDocument.visibilityState!=="hidden")return r.call(this);let a=sh(this.ownerDocument);a===this&&(n=Symbol("blur call"),r.call(this),Gr(a,"blur",{relatedTarget:null}),Gr(a,"focusout",{relatedTarget:null}))}}function sh(e){let t=_i(e);return t?.tagName==="BODY"?null:t}var al=Symbol("Interceptor for programmatical calls");function vn(e,t,r){let n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=Object.getOwnPropertyDescriptor(e,t),i=n?.set?"set":"value";if(typeof n?.[i]!="function"||n[i][al])throw new Error(`Element ${e.tagName} does not implement "${String(t)}".`);function a(...s){let{applyNative:c=!1,realArgs:u,then:d}=r.call(this,...s),p=(!c&&o||n)[i];i==="set"?p.call(this,u):p.call(this,...u),d?.()}a[al]=al,Object.defineProperty(e,t,{...o??n,[i]:a})}function dB(e){vn(e,"value",function(t){let r=A$(t);return r&&D$(this),{applyNative:!!r,realArgs:pB(this,t),then:r?void 0:()=>$$(this,String(t))}})}function pB(e,t){return ve(e,"input",{type:"number"})&&String(t)!==""&&!Number.isNaN(Number(t))?String(Number(t)):String(t)}function fB(e){vn(e,"setSelectionRange",function(t,...r){let n=R$(t);return{applyNative:!!n,realArgs:[Number(t),...r],then:()=>n?void 0:Qi(e)}}),vn(e,"selectionStart",function(t){return{realArgs:t,then:()=>Qi(e)}}),vn(e,"selectionEnd",function(t){return{realArgs:t,then:()=>Qi(e)}}),vn(e,"select",function(){return{realArgs:[],then:()=>x$(e,{anchorOffset:0,focusOffset:zt(e).length})}})}function hB(e){vn(e,"setRangeText",function(...t){return{realArgs:t,then:()=>{Ad(e),Qi(e)}}})}var Sn=Symbol("Node prepared with document state workarounds");function a_(e){e[Sn]||(e.addEventListener("focus",t=>{let r=t.target;lh(r)},{capture:!0,passive:!0}),e.activeElement&&lh(e.activeElement),e.addEventListener("blur",t=>{let r=t.target,n=P$(r);n!==void 0&&(r.value!==n&&Gr(r,"change"),Ww(r))},{capture:!0,passive:!0}),e[Sn]=Sn)}function lh(e){e[Sn]||(ve(e,["input","textarea"])&&(dB(e),fB(e),hB(e)),e[Sn]=Sn)}function mB(e){return yB(e)?e:e.ownerDocument}function yB(e){return e.nodeType===9}var gt=(function(e){return e[e.Trigger=2]="Trigger",e[e.Call=1]="Call",e})({});function Ao(e,t){e.levelRefs[t]={}}function ki(e,t){return e.levelRefs[t]}function Ln(e){let t=e.delay;if(typeof t=="number")return Promise.all([new Promise(r=>globalThis.setTimeout(()=>r(),t)),e.advanceTimers(t)])}var ea=(function(e){return e[e.EachTrigger=4]="EachTrigger",e[e.EachApiCall=2]="EachApiCall",e[e.EachTarget=1]="EachTarget",e[e.Never=0]="Never",e})({});function $r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ft=(function(e){return e[e.STANDARD=0]="STANDARD",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.NUMPAD=3]="NUMPAD",e})({}),gB=["Alt","AltGraph","Control","Fn","Meta","Shift","Symbol"];function uh(e){return gB.includes(e)}var bB=["CapsLock","FnLock","NumLock","ScrollLock","SymbolLock"];function ch(e){return bB.includes(e)}var vB=class{isKeyPressed(e){return this.pressed.has(String(e.code))}getPressedKeys(){return this.pressed.values().map(e=>e.keyDef)}async keydown(e,t){let r=String(t.key),n=String(t.code),o=ol(e.config.document);this.setKeydownTarget(o),this.pressed.add(n,t),uh(r)&&(this.modifiers[r]=!0);let i=e.dispatchUIEvent(o,"keydown",{key:r,code:n});ch(r)&&!this.modifiers[r]&&(this.modifiers[r]=!0,this.modifierLockStart[r]=!0),i&&this.pressed.setUnprevented(n),i&&this.hasKeyPress(r)&&e.dispatchUIEvent(ol(e.config.document),"keypress",{key:r,code:n,charCode:t.key==="Enter"?13:String(t.key).charCodeAt(0)})}async keyup(e,t){let r=String(t.key),n=String(t.code),o=this.pressed.isUnprevented(n);this.pressed.delete(n),uh(r)&&!this.pressed.values().find(i=>i.keyDef.key===r)&&(this.modifiers[r]=!1),e.dispatchUIEvent(ol(e.config.document),"keyup",{key:r,code:n},!o),ch(r)&&this.modifiers[r]&&(this.modifierLockStart[r]?this.modifierLockStart[r]=!1:this.modifiers[r]=!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){$r(this,"system",void 0),$r(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}),$r(this,"pressed",new class{add(t,r){var n,o,i;(i=(n=this.registry)[o=t])!==null&&i!==void 0||(n[o]={keyDef:r,unpreventedDefault:!1})}has(t){return!!this.registry[t]}setUnprevented(t){let r=this.registry[t];r&&(r.unpreventedDefault=!0)}isUnprevented(t){var r;return!!(!((r=this.registry[t])===null||r===void 0)&&r.unpreventedDefault)}delete(t){delete this.registry[t]}values(){return Object.values(this.registry)}constructor(){$r(this,"registry",{})}}),$r(this,"carryChar",""),$r(this,"lastKeydownTarget",void 0),$r(this,"modifierLockStart",{}),this.system=e}},EB=[..."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:Ft.LEFT},{code:"AltRight",key:"Alt",location:Ft.RIGHT},{code:"ShiftLeft",key:"Shift",location:Ft.LEFT},{code:"ShiftRight",key:"Shift",location:Ft.RIGHT},{code:"ControlLeft",key:"Control",location:Ft.LEFT},{code:"ControlRight",key:"Control",location:Ft.RIGHT},{code:"MetaLeft",key:"Meta",location:Ft.LEFT},{code:"MetaRight",key:"Meta",location:Ft.RIGHT},{code:"OSLeft",key:"OS",location:Ft.LEFT},{code:"OSRight",key:"OS",location:Ft.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"}],wB=[{name:"MouseLeft",pointerType:"mouse",button:"primary"},{name:"MouseRight",pointerType:"mouse",button:"secondary"},{name:"MouseMiddle",pointerType:"mouse",button:"auxiliary"},{name:"TouchA",pointerType:"touch"},{name:"TouchB",pointerType:"touch"},{name:"TouchC",pointerType:"touch"}];function _B(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s_=class{getButtons(){let e=0;for(let t of Object.keys(this.pressed))e|=2**Number(t);return e}down(e){let t=fu(e.button);if(t in this.pressed){this.pressed[t].push(e);return}return this.pressed[t]=[e],t}up(e){let t=fu(e.button);if(t in this.pressed&&(this.pressed[t]=this.pressed[t].filter(r=>r.name!==e.name),this.pressed[t].length===0))return delete this.pressed[t],t}constructor(){_B(this,"pressed",{})}},dh={primary:0,secondary:1,auxiliary:2,back:3,X1:3,forward:4,X2:4};function fu(e=0){return e in dh?dh[e]:Number(e)}var ph={1:2,2:1};function hu(e){return e=fu(e),e in ph?ph[e]:e}function TB(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var SB=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(){TB(this,"pressedKeys",new Set)}};function Io(e,t){let r=[];for(let i=e;i;i=i.parentElement)r.push(i);let n=[];for(let i=t;i;i=i.parentElement)n.push(i);let o=0;for(;!(o>=r.length||o>=n.length||r[r.length-1-o]!==n[n.length-1-o]);o++);return[r.slice(0,r.length-o),n.slice(0,n.length-o),n.slice(n.length-o)]}function mu({target:e,node:t,offset:r}){return Gt(e)?{node:e,offset:r??zt(e).length}:t?{node:t,offset:r??(t.nodeType===3?t.nodeValue.length:t.childNodes.length)}:l_(e,r)}function l_(e,t,r=!0){let n=t===void 0?e.childNodes.length-1:0,o=t===void 0?-1:1;for(;t===void 0?n>=(r?Math.max(e.childNodes.length-1,0):0):n<=e.childNodes.length;){if(t&&n===e.childNodes.length)throw new Error("The given offset is out of bounds.");let i=e.childNodes.item(n),a=String(i.textContent);if(a.length)if(t!==void 0&&a.length<t)t-=a.length;else{if(i.nodeType===1)return l_(i,t,!1);if(i.nodeType===3)return{node:i,offset:t??i.nodeValue.length}}n+=o}return{node:e,offset:e.childNodes.length}}function AB({document:e,target:t,clickCount:r,node:n,offset:o}){if(_$(t))return;let i=Gt(t),a=String(i?zt(t):t.textContent),[s,c]=n?[o,o]:RB(a,o,r);if(i)return Wn(t,{anchorOffset:s??a.length,focusOffset:c??a.length}),{node:t,start:s??0,end:c??a.length};{let{node:u,offset:d}=mu({target:t,node:n,offset:s}),{node:p,offset:f}=mu({target:t,node:n,offset:c}),h=t.ownerDocument.createRange();try{h.setStart(u,d),h.setEnd(p,f)}catch{throw new Error("The given offset is out of bounds.")}let y=e.getSelection();return y?.removeAllRanges(),y?.addRange(h.cloneRange()),h}}function RB(e,t,r){if(r%3===1||e.length===0)return[t,t];let n=t??e.length;return r%3===2?[n-e.substr(0,t).match(/(\w+|\s+|\W)?$/)[0].length,t===void 0?t:t+e.substr(t).match(/^(\w+|\s+|\W)?/)[0].length]:[n-e.substr(0,t).match(/[^\r\n]*$/)[0].length,t===void 0?t:t+e.substr(t).match(/^[^\r\n]*/)[0].length]}function OB(e,{document:t,target:r,node:n,offset:o}){let i=mu({target:r,node:n,offset:o});if("node"in e){if(i.node===e.node){let a=i.offset<e.start?e.end:e.start,s=i.offset>e.end||i.offset<e.start?i.offset:e.end;Wn(e.node,{anchorOffset:a,focusOffset:s})}}else{let a=e.cloneRange(),s=a.comparePoint(i.node,i.offset);s<0?a.setStart(i.node,i.offset):s>0&&a.setEnd(i.node,i.offset);let c=t.getSelection();c?.removeAllRanges(),c?.addRange(a.cloneRange())}}function u_(e,t){var r,n,o,i,a,s,c,u,d,p,f,h,y,g,E,b,w,P,x,C,S,_,T,A;return e.target!==t.target||((r=e.coords)===null||r===void 0?void 0:r.x)!==((n=t.coords)===null||n===void 0?void 0:n.x)||((o=e.coords)===null||o===void 0?void 0:o.y)!==((i=t.coords)===null||i===void 0?void 0:i.y)||((a=e.coords)===null||a===void 0?void 0:a.clientX)!==((s=t.coords)===null||s===void 0?void 0:s.clientX)||((c=e.coords)===null||c===void 0?void 0:c.clientY)!==((u=t.coords)===null||u===void 0?void 0:u.clientY)||((d=e.coords)===null||d===void 0?void 0:d.offsetX)!==((p=t.coords)===null||p===void 0?void 0:p.offsetX)||((f=e.coords)===null||f===void 0?void 0:f.offsetY)!==((h=t.coords)===null||h===void 0?void 0:h.offsetY)||((y=e.coords)===null||y===void 0?void 0:y.pageX)!==((g=t.coords)===null||g===void 0?void 0:g.pageX)||((E=e.coords)===null||E===void 0?void 0:E.pageY)!==((b=t.coords)===null||b===void 0?void 0:b.pageY)||((w=e.coords)===null||w===void 0?void 0:w.screenX)!==((P=t.coords)===null||P===void 0?void 0:P.screenX)||((x=e.coords)===null||x===void 0?void 0:x.screenY)!==((C=t.coords)===null||C===void 0?void 0:C.screenY)||((S=e.caret)===null||S===void 0?void 0:S.node)!==((_=t.caret)===null||_===void 0?void 0:_.node)||((T=e.caret)===null||T===void 0?void 0:T.offset)!==((A=t.caret)===null||A===void 0?void 0:A.offset)}function Br(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var PB=class{move(e,t,r){let n=this.position,o=this.getTarget(e);if(this.position=t,!u_(n,t))return;let i=this.getTarget(e),a=this.getEventInit("mousemove"),[s,c]=Io(o,i);return{leave:()=>{o!==i&&(e.dispatchUIEvent(o,"mouseout",a),s.forEach(u=>e.dispatchUIEvent(u,"mouseleave",a)))},enter:()=>{o!==i&&(e.dispatchUIEvent(i,"mouseover",a),c.forEach(u=>e.dispatchUIEvent(u,"mouseenter",a)))},move:()=>{r||(e.dispatchUIEvent(i,"mousemove",a),this.modifySelecting(e))}}}down(e,t,r){let n=this.buttons.down(t);if(n===void 0)return;let o=this.getTarget(e);this.buttonDownTarget[n]=o;let i=this.getEventInit("mousedown",t.button),a=sr(o);!r&&(a||e.dispatchUIEvent(o,"mousedown",i))&&(this.startSelecting(e,i.detail),Nr(o)),!a&&hu(t.button)===2&&e.dispatchUIEvent(o,"contextmenu",this.getEventInit("contextmenu",t.button))}up(e,t,r){let n=this.buttons.up(t);if(n===void 0)return;let o=this.getTarget(e);if(!sr(o)){if(!r){let a=this.getEventInit("mouseup",t.button);e.dispatchUIEvent(o,"mouseup",a),this.endSelecting()}let i=Io(this.buttonDownTarget[n],o)[2][0];if(i){let a=this.getEventInit("click",t.button);a.detail&&(e.dispatchUIEvent(i,a.button===0?"click":"auxclick",a),a.button===0&&a.detail===2&&e.dispatchUIEvent(i,"dblclick",{...this.getEventInit("dblclick",t.button),detail:a.detail}))}}}resetClickCount(){this.clickCount.reset()}getEventInit(e,t){let r={...this.position.coords};return r.button=hu(t),r.buttons=this.buttons.getButtons(),e==="mousedown"?r.detail=this.clickCount.getOnDown(r.button):e==="mouseup"?r.detail=this.clickCount.getOnUp(r.button):(e==="click"||e==="auxclick")&&(r.detail=this.clickCount.incOnClick(r.button)),r}getTarget(e){var t;return(t=this.position.target)!==null&&t!==void 0?t:e.config.document.body}startSelecting(e,t){var r,n;this.selecting=AB({document:e.config.document,target:this.getTarget(e),node:(r=this.position.caret)===null||r===void 0?void 0:r.node,offset:(n=this.position.caret)===null||n===void 0?void 0:n.offset,clickCount:t})}modifySelecting(e){var t,r;this.selecting&&OB(this.selecting,{document:e.config.document,target:this.getTarget(e),node:(t=this.position.caret)===null||t===void 0?void 0:t.node,offset:(r=this.position.caret)===null||r===void 0?void 0:r.offset})}endSelecting(){this.selecting=void 0}constructor(){Br(this,"position",{}),Br(this,"buttons",new s_),Br(this,"selecting",void 0),Br(this,"buttonDownTarget",{}),Br(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){var t;this.down={[e]:(t=this.count[e])!==null&&t!==void 0?t:0};var r;return this.count={[e]:(r=this.count[e])!==null&&r!==void 0?r: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(){Br(this,"down",{}),Br(this,"count",{})}})}};function Sa(e,t){var r;return((r=c_(e,t))===null||r===void 0?void 0:r.pointerEvents)!=="none"}function xB(e){let t=xt(e);for(let r=e,n=[];r?.ownerDocument;r=r.parentElement){n.push(r);let o=t.getComputedStyle(r).pointerEvents;if(o&&!["inherit","unset"].includes(o))return{pointerEvents:o,tree:n}}}var fh=Symbol("Last check for pointer-events");function c_(e,t){let r=t[fh];if(!(e.config.pointerEventsCheck!==ea.Never&&(!r||hh(e.config.pointerEventsCheck,ea.EachApiCall)&&r[gt.Call]!==ki(e,gt.Call)||hh(e.config.pointerEventsCheck,ea.EachTrigger)&&r[gt.Trigger]!==ki(e,gt.Trigger))))return r?.result;let n=xB(t);return t[fh]={[gt.Call]:ki(e,gt.Call),[gt.Trigger]:ki(e,gt.Trigger),result:n},n}function Ro(e,t){let r=c_(e,t);if(r?.pointerEvents==="none")throw new Error([`Unable to perform pointer interaction as the element ${r.tree.length>1?"inherits":"has"} \`pointer-events: none\`:`,"",CB(r.tree)].join(`
345
+ `))}function CB(e){return e.reverse().map((t,r)=>["".padEnd(r),t.tagName,t.id&&`#${t.id}`,t.hasAttribute("data-testid")&&`(testId=${t.getAttribute("data-testid")})`,NB(t),e.length>1&&r===0&&" <-- This element declared `pointer-events: none`",e.length>1&&r===e.length-1&&" <-- Asserted pointer events here"].filter(Boolean).join("")).join(`
346
+ `)}function NB(e){var t;let r;if(e.hasAttribute("aria-label"))r=e.getAttribute("aria-label");else if(e.hasAttribute("aria-labelledby")){var n,o;r=(o=e.ownerDocument.getElementById(e.getAttribute("aria-labelledby")))===null||o===void 0||(n=o.textContent)===null||n===void 0?void 0:n.trim()}else if(ve(e,["button","input","meter","output","progress","select","textarea"])&&!((t=e.labels)===null||t===void 0)&&t.length)r=Array.from(e.labels).map(a=>{var s;return(s=a.textContent)===null||s===void 0?void 0:s.trim()}).join("|");else if(ve(e,"button")){var i;r=(i=e.textContent)===null||i===void 0?void 0:i.trim()}return r=r?.replace(/\n/g," "),Number(r?.length)>30&&(r=`${r?.substring(0,29)}…`),r?`(label=${r})`:""}function hh(e,t){return(e&t)>0}function Xt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var IB=class{init(e){let t=this.getTarget(e),[,r]=Io(null,t),n=this.getEventInit();return Ro(e,t),e.dispatchUIEvent(t,"pointerover",n),r.forEach(o=>e.dispatchUIEvent(o,"pointerenter",n)),this}move(e,t){let r=this.position,n=this.getTarget(e);if(this.position=t,!u_(r,t))return;let o=this.getTarget(e),i=this.getEventInit(-1),[a,s]=Io(n,o);return{leave:()=>{Sa(e,n)&&n!==o&&(e.dispatchUIEvent(n,"pointerout",i),a.forEach(c=>e.dispatchUIEvent(c,"pointerleave",i)))},enter:()=>{Ro(e,o),n!==o&&(e.dispatchUIEvent(o,"pointerover",i),s.forEach(c=>e.dispatchUIEvent(c,"pointerenter",i)))},move:()=>{e.dispatchUIEvent(o,"pointermove",i)}}}down(e,t=0){if(this.isDown)return;let r=this.getTarget(e);Ro(e,r),this.isDown=!0,this.isPrevented=!e.dispatchUIEvent(r,"pointerdown",this.getEventInit(t))}up(e,t=0){if(!this.isDown)return;let r=this.getTarget(e);Ro(e,r),this.isPrevented=!1,this.isDown=!1,e.dispatchUIEvent(r,"pointerup",this.getEventInit(t))}release(e){let t=this.getTarget(e),[r]=Io(t,null),n=this.getEventInit();Sa(e,t)&&(e.dispatchUIEvent(t,"pointerout",n),r.forEach(o=>e.dispatchUIEvent(o,"pointerleave",n))),this.isCancelled=!0}getTarget(e){var t;return(t=this.position.target)!==null&&t!==void 0?t:e.config.document.body}getEventInit(e){return{...this.position.coords,pointerId:this.pointerId,pointerType:this.pointerType,isPrimary:this.isPrimary,button:hu(e),buttons:this.buttons.getButtons()}}constructor({pointerId:e,pointerType:t,isPrimary:r},n){Xt(this,"pointerId",void 0),Xt(this,"pointerType",void 0),Xt(this,"isPrimary",void 0),Xt(this,"buttons",void 0),Xt(this,"isMultitouch",!1),Xt(this,"isCancelled",!1),Xt(this,"isDown",!1),Xt(this,"isPrevented",!1),Xt(this,"position",{}),this.pointerId=e,this.pointerType=t,this.isPrimary=r,this.isMultitouch=!r,this.buttons=n}};function yr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var jB=class{isKeyPressed(e){return this.devices.get(e.pointerType).isPressed(e)}async press(e,t,r){this.devices.get(t.pointerType).addPressed(t),this.buttons.down(t);let n=this.getPointerName(t),o=t.pointerType==="touch"?this.pointers.new(n,t.pointerType,this.buttons):this.pointers.get(n);o.position=r,o.pointerType!=="touch"&&(this.mouse.position=r),o.pointerType==="touch"&&o.init(e),o.down(e,t.button),o.pointerType!=="touch"&&this.mouse.down(e,t,o.isPrevented)}async move(e,t,r){let n=this.pointers.get(t),o=n.move(e,r),i=n.pointerType==="touch"?void 0:this.mouse.move(e,r,n.isPrevented);o?.leave(),i?.leave(),o?.enter(),i?.enter(),o?.move(),i?.move()}async release(e,t,r){let n=this.devices.get(t.pointerType);n.removePressed(t),this.buttons.up(t);let o=this.pointers.get(this.getPointerName(t)),i=o.isPrevented;if(o.position=r,o.pointerType!=="touch"&&(this.mouse.position=r),n.countPressed===0&&o.up(e,t.button),o.pointerType==="touch"&&o.release(e),o.pointerType==="touch"&&!o.isMultitouch){let a=this.mouse.move(e,r,i);a?.leave(),a?.enter(),a?.move(),this.mouse.down(e,t,i)}if(!o.isMultitouch){let a=this.mouse.move(e,r,i);a?.leave(),a?.enter(),a?.move(),this.mouse.up(e,t,i)}}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){var t;return(t=this.mouse.position.target)!==null&&t!==void 0?t:e.config.document.body}setMousePosition(e){this.mouse.position=e,this.pointers.get("mouse").position=e}constructor(e){yr(this,"system",void 0),yr(this,"mouse",void 0),yr(this,"buttons",void 0),yr(this,"devices",new class{get(t){var r,n,o;return(o=(r=this.registry)[n=t])!==null&&o!==void 0?o:r[n]=new SB}constructor(){yr(this,"registry",{})}}),yr(this,"pointers",new class{new(t,r,n){let o=r!=="touch"||!Object.values(this.registry).some(i=>i.pointerType==="touch"&&!i.isCancelled);return o||Object.values(this.registry).forEach(i=>{i.pointerType===r&&!i.isCancelled&&(i.isMultitouch=!0)}),this.registry[t]=new IB({pointerId:this.nextId++,pointerType:r,isPrimary:o},n),this.registry[t]}get(t){if(!this.has(t))throw new Error(`Trying to access pointer "${t}" which does not exist.`);return this.registry[t]}has(t){return t in this.registry}constructor(){yr(this,"registry",{}),yr(this,"nextId",1)}}),this.system=e,this.buttons=new s_,this.mouse=new PB,this.pointers.new("mouse","mouse",this.buttons)}};function mh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d_=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(){mh(this,"keyboard",new vB(this)),mh(this,"pointer",new jB(this))}};async function qB(e){let t=[];return this.config.skipHover||t.push({target:e}),t.push({keys:"[MouseLeft]",target:e}),this.pointer(t)}async function MB(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft]"])}async function kB(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft][MouseLeft]"])}async function LB(e){return this.pointer({target:e})}async function DB(e){return Ro(this,this.system.pointer.getMouseTarget(this)),this.pointer({target:e.ownerDocument.body})}async function $B({shift:e}={}){return this.keyboard(e===!0?"{Shift>}{Tab}{/Shift}":e===!1?"[/ShiftLeft][/ShiftRight]{Tab}":"{Tab}")}var Od=(function(e){return e["{"]="}",e["["]="]",e})(Od||{});function p_(e,t){let r=0,n=e[r]in Od?e[r]:"";r+=n.length;let o=new RegExp(`^\\${n}{2}`).test(e)?"":n;return{type:o,...o===""?BB(e,r,t):FB(e,r,o,t)}}function BB(e,t,r){let n=e[t];return f_(n,e,t,r),t+=n.length,{consumedLength:t,descriptor:n,releasePrevious:!1,releaseSelf:!0,repeat:1}}function FB(e,t,r,n){var o,i;let a=e[t]==="/"?"/":"";t+=a.length;let s=r==="{"&&e[t]==="\\";t+=Number(s);let c=s?e[t]:(o=e.slice(t).match(r==="{"?/^\w+|^[^}>/]/:/^\w+/))===null||o===void 0?void 0:o[0];f_(c,e,t,n),t+=c.length;var u;let d=(u=(i=e.slice(t).match(/^>\d+/))===null||i===void 0?void 0:i[0])!==null&&u!==void 0?u:"";t+=d.length;let p=e[t]==="/"||!d&&e[t]===">"?e[t]:"";t+=p.length;let f=Od[r],h=e[t]===f?f:"";if(!h)throw new Error(h_([!d&&"repeat modifier",!p&&"release modifier",`"${f}"`].filter(Boolean).join(" or "),e[t],e,n));return t+=h.length,{consumedLength:t,descriptor:c,releasePrevious:!!a,repeat:d?Math.max(Number(d.substr(1)),1):1,releaseSelf:UB(p,d)}}function f_(e,t,r,n){if(!e)throw new Error(h_("key descriptor",t[r],t,n))}function UB(e,t){if(e)return e==="/";if(t)return!1}function h_(e,t,r,n){return`Expected ${e} but found "${t??""}" in "${r}"
347
+ See ${n==="pointer"?"https://testing-library.com/docs/user-event/pointer#pressing-a-button-or-touching-the-screen":"https://testing-library.com/docs/user-event/keyboard"}
348
+ for more information about how userEvent parses your input.`}function JB(e,t){let r=[];do{let{type:o,descriptor:i,consumedLength:a,releasePrevious:s,releaseSelf:c=!0,repeat:u}=p_(t,"keyboard");var n;let d=(n=e.find(p=>{if(o==="["){var f;return((f=p.code)===null||f===void 0?void 0:f.toLowerCase())===i.toLowerCase()}else if(o==="{"){var h;return((h=p.key)===null||h===void 0?void 0:h.toLowerCase())===i.toLowerCase()}return p.key===i}))!==null&&n!==void 0?n:{key:"Unknown",code:"Unknown",[o==="["?"code":"key"]:i};r.push({keyDef:d,releasePrevious:s,releaseSelf:c,repeat:u}),t=t.slice(a)}while(t);return r}async function VB(e){let t=JB(this.config.keyboardMap,e);for(let r=0;r<t.length;r++)await Ln(this.config),await HB(this,t[r])}async function HB(e,{keyDef:t,releasePrevious:r,releaseSelf:n,repeat:o}){let{system:i}=e;if(i.keyboard.isKeyPressed(t)&&await i.keyboard.keyup(e,t),!r){for(let a=1;a<=o;a++)await i.keyboard.keydown(e,t),a<o&&await Ln(e.config);n&&await i.keyboard.keyup(e,t)}}async function GB(e){for(let t of e.system.keyboard.getPressedKeys())await e.system.keyboard.keyup(e,t)}function m_(e){let t=Gt(e)?{"text/plain":zB(e)}:{"text/plain":String(e.ownerDocument.getSelection())},r=_d(xt(e));for(let n in t)t[n]&&r.setData(n,t[n]);return r}function zB(e){let t=ti(e);return zt(e).substring(t.startOffset,t.endOffset)}async function WB(){let e=this.config.document;var t;let r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=m_(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"copy",{clipboardData:n})&&this.config.writeToClipboard&&await Fw(e,n),n}async function KB(){let e=this.config.document;var t;let r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=m_(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"cut",{clipboardData:n})&&this.config.writeToClipboard&&await Fw(r.ownerDocument,n),n}async function YB(e){let t=this.config.document;var r;let n=(r=t.activeElement)!==null&&r!==void 0?r:t.body;var o;let i=(o=typeof e=="string"?XB(t,e):e)!==null&&o!==void 0?o:await b$(t).catch(()=>{throw new Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.")});this.dispatchUIEvent(n,"paste",{clipboardData:i})}function XB(e,t){let r=_d(xt(e));return r.setData("text",t),r}function yh(e,t){let r=[];do{let{descriptor:n,consumedLength:o,releasePrevious:i,releaseSelf:a=!0}=p_(t,"pointer"),s=e.find(c=>c.name===n);s&&r.push({keyDef:s,releasePrevious:i,releaseSelf:a}),t=t.slice(o)}while(t);return r}async function QB(e){let{pointerMap:t}=this.config,r=[];(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="string"?r.push(...yh(t,n)):"keys"in n?r.push(...yh(t,n.keys).map(o=>({...n,...o}))):r.push(n)});for(let n=0;n<r.length;n++)await Ln(this.config),await ZB(this,r[n]);this.system.pointer.resetClickCount()}async function ZB(e,t){var r,n;let o="pointerName"in t&&t.pointerName?t.pointerName:"keyDef"in t?e.system.pointer.getPointerName(t.keyDef):"mouse",i=e.system.pointer.getPreviousPosition(o);var a,s,c,u;let d={target:(a=t.target)!==null&&a!==void 0?a:eF(e,i),coords:(s=t.coords)!==null&&s!==void 0?s:i?.coords,caret:{node:(c=t.node)!==null&&c!==void 0?c:gh(t)||i==null||(r=i.caret)===null||r===void 0?void 0:r.node,offset:(u=t.offset)!==null&&u!==void 0?u:gh(t)||i==null||(n=i.caret)===null||n===void 0?void 0:n.offset}};"keyDef"in t?(e.system.pointer.isKeyPressed(t.keyDef)&&(Ao(e,gt.Trigger),await e.system.pointer.release(e,t.keyDef,d)),t.releasePrevious||(Ao(e,gt.Trigger),await e.system.pointer.press(e,t.keyDef,d),t.releaseSelf&&(Ao(e,gt.Trigger),await e.system.pointer.release(e,t.keyDef,d)))):(Ao(e,gt.Trigger),await e.system.pointer.move(e,o,d))}function gh(e){var t,r;return!!((r=(t=e.target)!==null&&t!==void 0?t:e.node)!==null&&r!==void 0?r:e.offset!==void 0)}function eF(e,t){if(!t)throw new Error("This pointer has no previous position. Provide a target property!");var r;return(r=t.target)!==null&&r!==void 0?r:e.config.document.body}async function tF(e){if(!jn(e)||sr(e))throw new Error("clear()` is only supported on editable elements.");if(Nr(e),e.ownerDocument.activeElement!==e)throw new Error("The element to be cleared could not be focused.");if(e_(e),!Y$(e))throw new Error("The element content to be cleared could not be selected.");kn(this,e,"","deleteContentBackward")}async function rF(e,t){return y_.call(this,!0,e,t)}async function nF(e,t){return y_.call(this,!1,e,t)}async function y_(e,t,r){if(!e&&!t.multiple)throw we().getElementError("Unable to deselect an option in a non-multiple select. Use selectOptions to change the selection instead.",t);let n=Array.isArray(r)?r:[r],o=Array.from(t.querySelectorAll('option, [role="option"]')),i=n.map(s=>{if(typeof s!="string"&&o.includes(s))return s;{let c=o.find(u=>u.value===s||u.innerHTML===s);if(c)return c;throw we().getElementError(`Value "${String(s)}" not found in options`,t)}}).filter(s=>!sr(s));if(sr(t)||!i.length)return;let a=s=>{s.selected=e,this.dispatchUIEvent(t,"input",{bubbles:!0,cancelable:!1,composed:!0}),this.dispatchUIEvent(t,"change")};if(ve(t,"select"))if(t.multiple)for(let s of i){let c=this.config.pointerEventsCheck===0?!0:Sa(this,s);c&&(this.dispatchUIEvent(s,"pointerover"),this.dispatchUIEvent(t,"pointerenter"),this.dispatchUIEvent(s,"mouseover"),this.dispatchUIEvent(t,"mouseenter"),this.dispatchUIEvent(s,"pointermove"),this.dispatchUIEvent(s,"mousemove"),this.dispatchUIEvent(s,"pointerdown"),this.dispatchUIEvent(s,"mousedown")),Nr(t),c&&(this.dispatchUIEvent(s,"pointerup"),this.dispatchUIEvent(s,"mouseup")),a(s),c&&this.dispatchUIEvent(s,"click"),await Ln(this.config)}else if(i.length===1){let s=this.config.pointerEventsCheck===0?!0:Sa(this,t);s?await this.click(t):Nr(t),a(i[0]),s&&(this.dispatchUIEvent(t,"pointerover"),this.dispatchUIEvent(t,"pointerenter"),this.dispatchUIEvent(t,"mouseover"),this.dispatchUIEvent(t,"mouseenter"),this.dispatchUIEvent(t,"pointerup"),this.dispatchUIEvent(t,"mouseup"),this.dispatchUIEvent(t,"click")),await Ln(this.config)}else throw we().getElementError("Cannot select multiple options on a non-multiple select",t);else if(t.getAttribute("role")==="listbox")for(let s of i)await this.click(s),await this.unhover(s);else throw we().getElementError("Cannot select options on elements that are neither select nor listbox elements",t)}async function oF(e,t,{skipClick:r=this.config.skipClick,skipAutoClose:n=this.config.skipAutoClose,initialSelectionStart:o,initialSelectionEnd:i}={}){e.disabled||(r||await this.click(e),o!==void 0&&So(e,o,i??o),await this.keyboard(t),n||await GB(this))}var bh=Symbol("files and value properties are mocked");function sl(e,t,r){r?Object.defineProperty(e,t,r):delete e[t]}function iF(e,t){var r;(r=e[bh])===null||r===void 0||r.restore();let n=Object.getOwnPropertyDescriptor(e,"type"),o=Object.getOwnPropertyDescriptor(e,"value"),i=Object.getOwnPropertyDescriptor(e,"files");function a(){sl(e,"type",n),sl(e,"value",o),sl(e,"files",i)}e[bh]={restore:a},Object.defineProperties(e,{files:{configurable:!0,get:()=>t},value:{configurable:!0,get:()=>t.length?`C:\\fakepath\\${t[0].name}`:"",set(s){if(s==="")a();else{var c;o==null||(c=o.set)===null||c===void 0||c.call(e,s)}}},type:{configurable:!0,get:()=>"file",set(s){s!=="file"&&(a(),e.type=s)}}})}async function aF(e,t){let r=ve(e,"label")?e.control:e;if(!r||!ve(r,"input",{type:"file"}))throw new TypeError(`The ${r===e?"given":"associated"} ${r?.tagName} element does not accept file uploads`);if(sr(e))return;let n=(Array.isArray(t)?t:[t]).filter(i=>!this.config.applyAccept||sF(i,r.accept)).slice(0,r.multiple?void 0:1),o=()=>{var i;n.length===((i=r.files)===null||i===void 0?void 0:i.length)&&n.every((a,s)=>{var c;return a===((c=r.files)===null||c===void 0?void 0:c.item(s))})||(iF(r,wd(xt(e),n)),this.dispatchUIEvent(r,"input"),this.dispatchUIEvent(r,"change"))};r.addEventListener("fileDialog",o),await this.click(e),r.removeEventListener("fileDialog",o)}function Li(e){return e.toLowerCase().replace(/(\.|\/)jpg\b/g,"$1jpeg")}function sF(e,t){if(!t)return!0;let r=["audio/*","image/*","video/*"];return Li(t).trim().split(/\s*,\s*/).some(n=>n.startsWith(".")?Li(e.name).endsWith(n):r.includes(n)?Li(e.type).startsWith(n.replace("*","")):Li(e.type)===n)}var vh={click:qB,dblClick:MB,tripleClick:kB,hover:LB,unhover:DB,tab:$B,keyboard:VB,copy:WB,cut:KB,paste:YB,pointer:QB,clear:tF,deselectOptions:nF,selectOptions:rF,type:oF,upload:aF};function lF(e){return we().asyncWrapper(e)}var g_={applyAccept:!0,autoModify:!0,delay:0,document:globalThis.document,keyboardMap:EB,pointerMap:wB,pointerEventsCheck:ea.EachApiCall,skipAutoClose:!1,skipClick:!1,skipHover:!1,writeToClipboard:!1,advanceTimers:()=>Promise.resolve()},uF={...g_,writeToClipboard:!0};function b_(e={},t=uF,r){let n=fF(e,r,t);return{...t,...e,document:n}}function cF(e={}){let t=b_(e);a_(t.document),i_(xt(t.document).HTMLElement);var r;let n=(r=t.document.defaultView)!==null&&r!==void 0?r:globalThis.window;return m$(n),Pd(t).api}function st({keyboardState:e,pointerState:t,...r}={},n){let o=b_(r,g_,n);a_(o.document),i_(xt(o.document).HTMLElement);var i;let a=(i=t??e)!==null&&i!==void 0?i:new d_;return{api:Pd(o,a).api,system:a}}function dF(e){return Pd({...this.config,...e},this.system).api}function pF(e,t){function r(...n){return Ao(e,gt.Call),lF(()=>t.apply(e,n).then(async o=>(await Ln(e.config),o)))}return Object.defineProperty(r,"name",{get:()=>t.name}),r}function Pd(e,t=new d_){let r={};return Object.assign(r,{config:e,dispatchEvent:o_.bind(r),dispatchUIEvent:cB.bind(r),system:t,levelRefs:{},...vh}),{instance:r,api:{...Object.fromEntries(Object.entries(vh).map(([n,o])=>[n,pF(r,o)])),setup:dF.bind(r)}}}function fF(e,t,r){var n,o;return(o=(n=e.document)!==null&&n!==void 0?n:t&&mB(t))!==null&&o!==void 0?o:r.document}var v_={};ft(v_,{clear:()=>hF,click:()=>mF,copy:()=>yF,cut:()=>gF,dblClick:()=>bF,deselectOptions:()=>vF,hover:()=>EF,keyboard:()=>wF,paste:()=>TF,pointer:()=>_F,selectOptions:()=>SF,tab:()=>xF,tripleClick:()=>AF,type:()=>RF,unhover:()=>OF,upload:()=>PF});function hF(e){return st().api.clear(e)}function mF(e,t={}){return st(t,e).api.click(e)}function yF(e={}){return st(e).api.copy()}function gF(e={}){return st(e).api.cut()}function bF(e,t={}){return st(t).api.dblClick(e)}function vF(e,t,r={}){return st(r).api.deselectOptions(e,t)}function EF(e,t={}){return st(t).api.hover(e)}async function wF(e,t={}){let{api:r,system:n}=st(t);return r.keyboard(e).then(()=>n)}async function _F(e,t={}){let{api:r,system:n}=st(t);return r.pointer(e).then(()=>n)}function TF(e,t){return st(t).api.paste(e)}function SF(e,t,r={}){return st(r).api.selectOptions(e,t)}function AF(e,t={}){return st(t).api.tripleClick(e)}function RF(e,t,r={}){return st(r,e).api.type(e,t,r)}function OF(e,t={}){let{api:r,system:n}=st(t);return n.pointer.setMousePosition({target:e}),r.unhover(e)}function PF(e,t,r={}){return st(r).api.upload(e,t)}function xF(e={}){return st().api.tab(e)}var E_={...v_,setup:cF},yu=pi({...dE},{getKeys:e=>Object.keys(e).filter(t=>t!=="eventWrapper"),intercept:(e,t)=>t[0]==="fireEvent"||e.startsWith("find")||e.startsWith("waitFor")});yu.screen=new Proxy(yu.screen,{get(e,t,r){return typeof window<"u"&&globalThis.location?.href?.includes("viewMode=docs")&&Ue.warn(Ee`
349
+ 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.
350
+
351
+ More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#querying-the-canvas
352
+ `),Reflect.get(e,t,r)}});var{buildQueries:CF,configure:NF,createEvent:IF,fireEvent:jF,findAllByAltText:qF,findAllByDisplayValue:MF,findAllByLabelText:kF,findAllByPlaceholderText:LF,findAllByRole:DF,findAllByTestId:$F,findAllByText:BF,findAllByTitle:FF,findByAltText:UF,findByDisplayValue:JF,findByLabelText:VF,findByPlaceholderText:HF,findByRole:GF,findByTestId:zF,findByText:WF,findByTitle:KF,getAllByAltText:YF,getAllByDisplayValue:XF,getAllByLabelText:QF,getAllByPlaceholderText:ZF,getAllByRole:e2,getAllByTestId:t2,getAllByText:r2,getAllByTitle:n2,getByAltText:o2,getByDisplayValue:i2,getByLabelText:a2,getByPlaceholderText:s2,getByRole:l2,getByTestId:u2,getByText:c2,getByTitle:d2,getConfig:p2,getDefaultNormalizer:f2,getElementError:h2,getNodeText:m2,getQueriesForElement:y2,getRoles:g2,getSuggestedQuery:b2,isInaccessible:v2,logDOM:E2,logRoles:w2,prettyDOM:_2,queries:T2,queryAllByAltText:S2,queryAllByAttribute:A2,queryAllByDisplayValue:R2,queryAllByLabelText:O2,queryAllByPlaceholderText:P2,queryAllByRole:x2,queryAllByTestId:C2,queryAllByText:N2,queryAllByTitle:I2,queryByAltText:j2,queryByAttribute:q2,queryByDisplayValue:M2,queryByLabelText:k2,queryByPlaceholderText:L2,queryByRole:D2,queryByTestId:$2,queryByText:B2,queryByTitle:F2,queryHelpers:U2,screen:J2,waitFor:V2,waitForElementToBeRemoved:H2,within:w_,prettyFormat:G2}=yu,__=E_,{userEvent:z2}=pi({userEvent:E_},{intercept:!0,getKeys:e=>Object.keys(e).filter(t=>t!=="eventWrapper")}),{expect:W2}=pi({expect:oE},{getKeys:(e,t)=>{if("constructor"in e&&e.constructor===q){let r=["assert","__methods","__flags","_obj"],n=Object.keys(Object.getPrototypeOf(e)).filter(o=>!r.includes(o));return t>2?n:[...n,"not"]}return"any"in e?Object.keys(e).filter(r=>r!=="any"):Object.keys(e)},mutate:!0,intercept:e=>e!=="expect"}),K2={mock:()=>{}},Eh=!1,Y2=e=>{let{parameters:t}=e;t?.actions?.disable||Eh||(iE((r,n)=>{let o=r.getMockName();o!=="spy"&&o!=="vi.fn()"&&(!/^next\/.*::/.test(o)||["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(i=>o.startsWith(i)))&&Ti(o)(n)}),Eh=!0)},X2=[Y2],wh=()=>({...Eg,..._g}),Aa="backgrounds",Q2={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}},{document:Mt}=globalThis,Z2=()=>globalThis?.matchMedia?!!globalThis.matchMedia("(prefers-reduced-motion: reduce)")?.matches:!1,_h=e=>{(Array.isArray(e)?e:[e]).forEach(eU)},eU=e=>{if(!Mt)return;let t=Mt.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},tU=(e,t)=>{if(!Mt)return;let r=Mt.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=Mt.createElement("style");n.setAttribute("id",e),n.innerHTML=t,Mt.head.appendChild(n)}},rU=(e,t,r)=>{if(!Mt)return;let n=Mt.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let o=Mt.createElement("style");o.setAttribute("id",e),o.innerHTML=t;let i=`addon-backgrounds-grid${r?`-docs-${r}`:""}`,a=Mt.getElementById(i);a?a.parentElement?.insertBefore(o,a):Mt.head.appendChild(o)}},nU={cellSize:100,cellAmount:10,opacity:.8},Th="addon-backgrounds",Sh="addon-backgrounds-grid",oU=Z2()?"":"transition: background-color 0.3s;",iU=(e,t)=>{let{globals:r={},parameters:n={},viewMode:o,id:i}=t,{options:a=Q2,disable:s,grid:c=nU}=n[Aa]||{},u=r[Aa]||{},d=typeof u=="string"?u:u?.value,p=d?a[d]:void 0,f=typeof p=="string"?p:p?.value||"transparent",h=typeof u=="string"?!1:u.grid||!1,y=!!p&&!s,g=o==="docs"?`#anchor--${i} .docs-story`:".sb-show-main",E=o==="docs"?`#anchor--${i} .docs-story`:".sb-show-main",b=n.layout===void 0||n.layout==="padded",w=o==="docs"?20:b?16:0,{cellAmount:P,cellSize:x,opacity:C,offsetX:S=w,offsetY:_=w}=c,T=o==="docs"?`${Th}-docs-${i}`:`${Th}-color`,A=o==="docs"?i:null;en(()=>{let k=`
353
+ ${g} {
354
+ background: ${f} !important;
355
+ ${oU}
356
+ }`;if(!y){_h(T);return}rU(T,k,A)},[g,T,A,y,f]);let D=o==="docs"?`${Sh}-docs-${i}`:`${Sh}`;return en(()=>{if(!h){_h(D);return}let k=[`${x*P}px ${x*P}px`,`${x*P}px ${x*P}px`,`${x}px ${x}px`,`${x}px ${x}px`].join(", "),U=`
357
+ ${E} {
358
+ background-size: ${k} !important;
359
+ background-position: ${S}px ${_}px, ${S}px ${_}px, ${S}px ${_}px, ${S}px ${_}px !important;
360
+ background-blend-mode: difference !important;
361
+ background-image: linear-gradient(rgba(130, 130, 130, ${C}) 1px, transparent 1px),
362
+ linear-gradient(90deg, rgba(130, 130, 130, ${C}) 1px, transparent 1px),
363
+ linear-gradient(rgba(130, 130, 130, ${C/2}) 1px, transparent 1px),
364
+ linear-gradient(90deg, rgba(130, 130, 130, ${C/2}) 1px, transparent 1px) !important;
365
+ }
366
+ `;tU(D,U)},[P,x,E,D,h,S,_,C]),e()},aU=globalThis.FEATURES?.backgrounds?[iU]:[],sU={[Aa]:{grid:{cellSize:20,opacity:.5,cellAmount:5},disable:!1}},lU={[Aa]:{value:void 0,grid:!1}},Ah=()=>({decorators:aU,parameters:sU,initialGlobals:lU}),{step:uU}=pi({step:async(e,t,r)=>t(r)},{intercept:!0}),Rh=()=>({parameters:{throwPlayFunctionExceptions:!1},runStep:uU}),cU=e=>{let t=getComputedStyle(e),r=e.getBoundingClientRect();return!(r.width>0&&r.height>0&&t.visibility!=="hidden"&&Number(t.opacity)>0&&t.display!=="none")},dU=async({reporting:e,canvasElement:t,globals:r})=>{try{if(!r.ghostStories)return;let n=cU(t.firstElementChild??t);n&&e.addReport({type:"render-analysis",version:1,result:{emptyRender:n},status:"warning"})}catch{}},Oh=()=>({afterEach:dU}),gs="storybook/highlight",pU=`${gs}/add`,fU=`${gs}/remove`,hU=`${gs}/reset`,mU=`${gs}/scroll-into-view`,Ph=2147483647,_r=28,xh={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"]},yU="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),Ke=(e,t={},r)=>{let n=yU.includes(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return Object.entries(t).forEach(([o,i])=>{/[A-Z]/.test(o)?(o==="onClick"&&(n.addEventListener("click",i),n.addEventListener("keydown",a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),i())})),o==="onMouseEnter"&&n.addEventListener("mouseenter",i),o==="onMouseLeave"&&n.addEventListener("mouseleave",i)):n.setAttribute(o,i)}),r?.forEach(o=>{if(!(o==null||o===!1))try{n.appendChild(o)}catch{n.appendChild(document.createTextNode(String(o)))}}),n},Di=e=>xh[e]&&Ke("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},xh[e].map(t=>Ke("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),gU=e=>{if("elements"in e){let{elements:n,color:o,style:i}=e;return{id:void 0,priority:0,selectors:n,styles:{outline:`2px ${i} ${o}`,outlineOffset:"2px",boxShadow:"0 0 0 6px rgba(255,255,255,0.6)"},menu:void 0}}let{menu:t,...r}=e;return{id:void 0,priority:0,styles:{outline:"2px dashed #029cfd"},...r,menu:Array.isArray(t)?t.every(Array.isArray)?t:[t]:void 0}},bU=e=>e instanceof Function,vo=new Map,Fr=new Map,$i=new Map,Qt=e=>{let t=Symbol();return Fr.set(t,[]),vo.set(t,e),{get:()=>vo.get(t),set:r=>{let n=vo.get(t),o=bU(r)?r(n):r;o!==n&&(vo.set(t,o),Fr.get(t)?.forEach(i=>{$i.get(i)?.(),$i.set(i,i(o))}))},subscribe:r=>(Fr.get(t)?.push(r),()=>{let n=Fr.get(t);n&&Fr.set(t,n.filter(o=>o!==r))}),teardown:()=>{Fr.get(t)?.forEach(r=>{$i.get(r)?.(),$i.delete(r)}),Fr.delete(t),vo.delete(t)}}},Ch=e=>{let t=document.getElementById("storybook-root"),r=new Map;for(let n of e){let{priority:o=0}=n;for(let i of n.selectors){let a=[...document.querySelectorAll(`:is(${i}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...t?.querySelectorAll(i)||[]];for(let s of a){let c=r.get(s);(!c||c.priority<=o)&&r.set(s,{...n,priority:o,selectors:Array.from(new Set((c?.selectors||[]).concat(i)))})}}}return r},vU=e=>Array.from(e.entries()).map(([t,{selectors:r,styles:n,hoverStyles:o,focusStyles:i,menu:a}])=>{let{top:s,left:c,width:u,height:d}=t.getBoundingClientRect(),{position:p}=getComputedStyle(t);return{element:t,selectors:r,styles:n,hoverStyles:o,focusStyles:i,menu:a,top:p==="fixed"?s:s+window.scrollY,left:p==="fixed"?c:c+window.scrollX,width:u,height:d}}).sort((t,r)=>r.width*r.height-t.width*t.height),Nh=(e,t)=>{let r=e.getBoundingClientRect(),{x:n,y:o}=t;return r?.top&&r?.left&&n>=r.left&&n<=r.left+r.width&&o>=r.top&&o<=r.top+r.height},Ih=(e,t,r)=>{if(!t||!r)return!1;let{left:n,top:o,width:i,height:a}=e;a<_r&&(o=o-Math.round((_r-a)/2),a=_r),i<_r&&(n=n-Math.round((_r-i)/2),i=_r),t.style.position==="fixed"&&(n+=window.scrollX,o+=window.scrollY);let{x:s,y:c}=r;return s>=n&&s<=n+i&&c>=o&&c<=o+a},EU=(e,t,r={})=>{let{x:n,y:o}=t,{margin:i=5,topOffset:a=0,centered:s=!1}=r,{scrollX:c,scrollY:u,innerHeight:d,innerWidth:p}=window,f=Math.min(e.style.position==="fixed"?o-u:o,d-e.clientHeight-i-a+u),h=s?e.clientWidth/2:0,y=e.style.position==="fixed"?Math.max(Math.min(n-c,p-h-i),h+i):Math.max(Math.min(n,p-h-i+c),h+i+c);Object.assign(e.style,{...y!==n&&{left:`${y}px`},...f!==o&&{top:`${f}px`}})},jh=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()},wU=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()},_U=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(t=>[t.name,t.value])),localName:e.element.localName,tagName:e.element.tagName,outerHTML:e.element.outerHTML}}),Ne="storybook-highlights-menu",qh="storybook-highlights-root",TU="storybook-root",SU=e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,r=Qt([]),n=Qt(new Map),o=Qt([]),i=Qt(),a=Qt(),s=Qt([]),c=Qt([]),u=Qt(),d=Qt(),p=t.getElementById(qh);r.subscribe(()=>{p||(p=Ke("div",{id:qh}),t.body.appendChild(p))}),r.subscribe(_=>{let T=t.getElementById(TU);if(!T)return;n.set(Ch(_));let A=new MutationObserver(()=>n.set(Ch(_)));return A.observe(T,{subtree:!0,childList:!0}),()=>{A.disconnect()}}),n.subscribe(_=>{let T=()=>requestAnimationFrame(()=>o.set(vU(_))),A=new ResizeObserver(T);A.observe(t.body),Array.from(_.keys()).forEach(k=>A.observe(k));let D=Array.from(t.body.querySelectorAll("*")).filter(k=>{let{overflow:U,overflowX:I,overflowY:R}=window.getComputedStyle(k);return["auto","scroll"].some(M=>[U,I,R].includes(M))});return D.forEach(k=>k.addEventListener("scroll",T)),()=>{A.disconnect(),D.forEach(k=>k.removeEventListener("scroll",T))}}),n.subscribe(_=>{let T=Array.from(_.keys()).filter(({style:D})=>D.position==="sticky"),A=()=>requestAnimationFrame(()=>{o.set(D=>D.map(k=>{if(T.includes(k.element)){let{top:U,left:I}=k.element.getBoundingClientRect();return{...k,top:U+window.scrollY,left:I+window.scrollX}}return k}))});return t.addEventListener("scroll",A),()=>t.removeEventListener("scroll",A)}),n.subscribe(_=>{s.set(T=>T.filter(({element:A})=>_.has(A)))}),s.subscribe(_=>{_.length?(d.set(T=>_.some(A=>A.element===T?.element)?T:void 0),u.set(T=>_.some(A=>A.element===T?.element)?T:void 0)):(d.set(void 0),u.set(void 0),i.set(void 0))});let f=new Map(new Map);r.subscribe(_=>{_.forEach(({keyframes:T})=>{if(T){let A=f.get(T);A||(A=t.createElement("style"),A.setAttribute("data-highlight","keyframes"),f.set(T,A),t.head.appendChild(A)),A.innerHTML=T}}),f.forEach((T,A)=>{_.some(D=>D.keyframes===A)||(T.remove(),f.delete(A))})});let h=new Map(new Map);o.subscribe(_=>{_.forEach(T=>{let A=h.get(T.element);if(p&&!A){let D={popover:"manual","data-highlight-dimensions":`w${T.width.toFixed(0)}h${T.height.toFixed(0)}`,"data-highlight-coordinates":`x${T.left.toFixed(0)}y${T.top.toFixed(0)}`};A=p.appendChild(Ke("div",D,[Ke("div")])),h.set(T.element,A)}}),h.forEach((T,A)=>{_.some(({element:D})=>D===A)||(T.remove(),h.delete(A))})}),o.subscribe(_=>{let T=_.filter(D=>D.menu);if(!T.length)return;let A=D=>{requestAnimationFrame(()=>{let k=t.getElementById(Ne),U={x:D.pageX,y:D.pageY};if(k&&!Nh(k,U)){let I=T.filter(R=>{let M=h.get(R.element);return Ih(R,M,U)});i.set(I.length?U:void 0),s.set(I)}})};return t.addEventListener("click",A),()=>t.removeEventListener("click",A)});let y=()=>{let _=t.getElementById(Ne),T=a.get();!T||_&&Nh(_,T)||c.set(A=>{let D=o.get().filter(R=>{let M=h.get(R.element);return Ih(R,M,T)}),k=A.filter(R=>D.includes(R)),U=D.filter(R=>!A.includes(R)),I=A.length-k.length;return U.length||I?[...k,...U]:A})};a.subscribe(y),o.subscribe(y);let g=()=>{let _=d.get(),T=_?[_]:s.get(),A=T.length===1?T[0]:u.get(),D=i.get()!==void 0;o.get().forEach(k=>{let U=h.get(k.element);if(U){let I=A===k,R=D?A?I:T.includes(k):c.get()?.includes(k);Object.assign(U.style,{animation:"none",background:"transparent",border:"none",boxSizing:"border-box",outline:"none",outlineOffset:"0px",...k.styles,...R?k.hoverStyles:{},...I?k.focusStyles:{},position:getComputedStyle(k.element).position==="fixed"?"fixed":"absolute",zIndex:Ph-10,top:`${k.top}px`,left:`${k.left}px`,width:`${k.width}px`,height:`${k.height}px`,margin:0,padding:0,cursor:k.menu&&R?"pointer":"default",pointerEvents:k.menu?"auto":"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),Object.assign(U.children[0].style,{width:"100%",height:"100%",minHeight:`${_r}px`,minWidth:`${_r}px`,boxSizing:"content-box",padding:U.style.outlineWidth||"0px"}),jh(U)}})};o.subscribe(g),s.subscribe(g),c.subscribe(g),u.subscribe(g),d.subscribe(g);let E=()=>{if(!p)return;let _=t.getElementById(Ne);if(_)_.innerHTML="";else{let k={id:Ne,popover:"manual"};_=p.appendChild(Ke("div",k)),p.appendChild(Ke("style",{},[`
367
+ #${Ne} {
368
+ position: absolute;
369
+ z-index: ${Ph};
370
+ width: 300px;
371
+ padding: 0px;
372
+ margin: 15px 0 0 0;
373
+ transform: translateX(-50%);
374
+ font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
375
+ font-size: 12px;
376
+ background: white;
377
+ border: none;
378
+ border-radius: 6px;
379
+ box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
380
+ color: #2E3438;
381
+ }
382
+ #${Ne} ul {
383
+ list-style: none;
384
+ margin: 0;
385
+ padding: 0;
386
+ }
387
+ #${Ne} > ul {
388
+ max-height: 300px;
389
+ overflow-y: auto;
390
+ padding: 4px 0;
391
+ }
392
+ #${Ne} li {
393
+ padding: 0 4px;
394
+ margin: 0;
395
+ }
396
+ #${Ne} li > :not(ul) {
397
+ display: flex;
398
+ padding: 8px;
399
+ margin: 0;
400
+ align-items: center;
401
+ gap: 8px;
402
+ border-radius: 4px;
403
+ }
404
+ #${Ne} button {
405
+ width: 100%;
406
+ border: 0;
407
+ background: transparent;
408
+ color: inherit;
409
+ text-align: left;
410
+ font-family: inherit;
411
+ font-size: inherit;
412
+ }
413
+ #${Ne} button:focus-visible {
414
+ outline-color: #029CFD;
415
+ }
416
+ #${Ne} button:hover {
417
+ background: rgba(2, 156, 253, 0.07);
418
+ color: #029CFD;
419
+ cursor: pointer;
420
+ }
421
+ #${Ne} li code {
422
+ white-space: nowrap;
423
+ overflow: hidden;
424
+ text-overflow: ellipsis;
425
+ line-height: 16px;
426
+ font-size: 11px;
427
+ }
428
+ #${Ne} li svg {
429
+ flex-shrink: 0;
430
+ margin: 1px;
431
+ color: #73828C;
432
+ }
433
+ #${Ne} li > button:hover svg, #${Ne} li > button:focus-visible svg {
434
+ color: #029CFD;
435
+ }
436
+ #${Ne} .element-list li svg {
437
+ display: none;
438
+ }
439
+ #${Ne} li.selectable svg, #${Ne} li.selected svg {
440
+ display: block;
441
+ }
442
+ #${Ne} .menu-list {
443
+ border-top: 1px solid rgba(38, 85, 115, 0.15);
444
+ }
445
+ #${Ne} .menu-list > li:not(:last-child) {
446
+ padding-bottom: 4px;
447
+ margin-bottom: 4px;
448
+ border-bottom: 1px solid rgba(38, 85, 115, 0.15);
449
+ }
450
+ #${Ne} .menu-items, #${Ne} .menu-items li {
451
+ padding: 0;
452
+ }
453
+ #${Ne} .menu-item {
454
+ display: flex;
455
+ }
456
+ #${Ne} .menu-item-content {
457
+ display: flex;
458
+ flex-direction: column;
459
+ flex-grow: 1;
460
+ }
461
+ `]))}let T=d.get(),A=T?[T]:s.get();if(A.length&&(_.style.position=getComputedStyle(A[0].element).position==="fixed"?"fixed":"absolute",_.appendChild(Ke("ul",{class:"element-list"},A.map(k=>{let U=A.length>1&&!!k.menu?.some(M=>M.some(L=>!L.selectors||L.selectors.some(J=>k.selectors.includes(J)))),I=U?{class:"selectable",onClick:()=>d.set(k),onMouseEnter:()=>u.set(k),onMouseLeave:()=>u.set(void 0)}:T?{class:"selected",onClick:()=>d.set(void 0)}:{},R=U||T;return Ke("li",I,[Ke(R?"button":"div",R?{type:"button"}:{},[T?Di("chevronLeft"):null,Ke("code",{},[k.element.outerHTML]),U?Di("chevronRight"):null])])})))),d.get()||s.get().length===1){let k=d.get()||s.get()[0],U=k.menu?.filter(I=>I.some(R=>!R.selectors||R.selectors.some(M=>k.selectors.includes(M))));U?.length&&_.appendChild(Ke("ul",{class:"menu-list"},U.map(I=>Ke("li",{},[Ke("ul",{class:"menu-items"},I.map(({id:R,title:M,description:L,iconLeft:J,iconRight:W,clickEvent:ne})=>{let ue=ne&&(()=>e.emit(ne,R,_U(k)));return Ke("li",{},[Ke(ue?"button":"div",ue?{class:"menu-item",type:"button",onClick:ue}:{class:"menu-item"},[J?Di(J):null,Ke("div",{class:"menu-item-content"},[Ke(L?"strong":"span",{},[M]),L&&Ke("span",{},[L])]),W?Di(W):null])])}))]))))}let D=i.get();D?(Object.assign(_.style,{display:"block",left:`${_.style.position==="fixed"?D.x-window.scrollX:D.x}px`,top:`${_.style.position==="fixed"?D.y-window.scrollY:D.y}px`}),jh(_),requestAnimationFrame(()=>EU(_,D,{topOffset:15,centered:!0}))):(wU(_),Object.assign(_.style,{display:"none"}))};s.subscribe(E),d.subscribe(E);let b=_=>{let T=gU(_);r.set(A=>{let D=T.id?A.filter(k=>k.id!==T.id):A;return T.selectors?.length?[...D,T]:D})},w=_=>{_&&r.set(T=>T.filter(A=>A.id!==_))},P=()=>{r.set([]),n.set(new Map),o.set([]),i.set(void 0),a.set(void 0),s.set([]),c.set([]),u.set(void 0),d.set(void 0)},x,C=(_,T)=>{let A="scrollIntoView-highlight";clearTimeout(x),w(A);let D=t.querySelector(_);if(!D){console.warn(`Cannot scroll into view: ${_} not found`);return}D.scrollIntoView({behavior:"smooth",block:"center",...T});let k=`kf-${Math.random().toString(36).substring(2,15)}`;r.set(U=>[...U,{id:A,priority:1e3,selectors:[_],styles:{outline:"2px solid #1EA7FD",outlineOffset:"-1px",animation:`${k} 3s linear forwards`},keyframes:`@keyframes ${k} {
462
+ 0% { outline: 2px solid #1EA7FD; }
463
+ 20% { outline: 2px solid #1EA7FD00; }
464
+ 40% { outline: 2px solid #1EA7FD; }
465
+ 60% { outline: 2px solid #1EA7FD00; }
466
+ 80% { outline: 2px solid #1EA7FD; }
467
+ 100% { outline: 2px solid #1EA7FD00; }
468
+ }`}]),x=setTimeout(()=>w(A),3500)},S=_=>{requestAnimationFrame(()=>a.set({x:_.pageX,y:_.pageY}))};t.body.addEventListener("mousemove",S),e.on(pU,b),e.on(fU,w),e.on(hU,P),e.on(mU,C),e.on(Zr,({newPhase:_})=>{_==="loading"&&P()})};globalThis?.FEATURES?.highlight&&Ot?.ready&&Ot.ready().then(SU);var Mh=()=>({}),AU="measureEnabled";function T_(){let e=ee.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function RU(){let e=ee.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");ir(t!=null);let{width:r,height:n}=T_();return gu(e,t,{width:r,height:n}),e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.zIndex="2147483647",e.style.pointerEvents="none",ee.document.body.appendChild(e),{canvas:e,context:t,width:r,height:n}}function gu(e,t,{width:r,height:n}){e.style.width=`${r}px`,e.style.height=`${n}px`;let o=ee.window.devicePixelRatio;e.width=Math.floor(r*o),e.height=Math.floor(n*o),t.scale(o,o)}var Ye={};function OU(){Ye.canvas||(Ye=RU())}function S_(){Ye.context&&Ye.context.clearRect(0,0,Ye.width??0,Ye.height??0)}function PU(e){S_(),e(Ye.context)}function xU(){ir(Ye.canvas),ir(Ye.context),gu(Ye.canvas,Ye.context,{width:0,height:0});let{width:e,height:t}=T_();gu(Ye.canvas,Ye.context,{width:e,height:t}),Ye.width=e,Ye.height=t}function CU(){Ye.canvas&&(S_(),Ye.canvas.parentNode?.removeChild(Ye.canvas),Ye={})}var mn={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},or=6;function kh(e,{x:t,y:r,w:n,h:o,r:i}){t=t-n/2,r=r-o/2,n<2*i&&(i=n/2),o<2*i&&(i=o/2),e.beginPath(),e.moveTo(t+i,r),e.arcTo(t+n,r,t+n,r+o,i),e.arcTo(t+n,r+o,t,r+o,i),e.arcTo(t,r+o,t,r,i),e.arcTo(t,r,t+n,r,i),e.closePath()}function NU(e,{padding:t,border:r,width:n,height:o,top:i,left:a}){let s=n-r.left-r.right-t.left-t.right,c=o-t.top-t.bottom-r.top-r.bottom,u=a+r.left+t.left,d=i+r.top+t.top;return e==="top"?u+=s/2:e==="right"?(u+=s,d+=c/2):e==="bottom"?(u+=s/2,d+=c):e==="left"?d+=c/2:e==="center"&&(u+=s/2,d+=c/2),{x:u,y:d}}function IU(e,t,{margin:r,border:n,padding:o},i,a){let s=f=>0,c=0,u=0,d=a?1:.5,p=a?i*2:0;return e==="padding"?s=f=>o[f]*d+p:e==="border"?s=f=>o[f]+n[f]*d+p:e==="margin"&&(s=f=>o[f]+n[f]+r[f]*d+p),t==="top"?u=-s("top"):t==="right"?c=s("right"):t==="bottom"?u=s("bottom"):t==="left"&&(c=-s("left")),{offsetX:c,offsetY:u}}function jU(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 qU(e,t,r){return e==="top"?t.y=r.y-r.h-or:e==="right"?t.x=r.x+r.w/2+or+t.w/2:e==="bottom"?t.y=r.y+r.h+or:e==="left"&&(t.x=r.x-r.w/2-or-t.w/2),{x:t.x,y:t.y}}function A_(e,t,{x:r,y:n,w:o,h:i},a){return kh(e,{x:r,y:n,w:o,h:i,r:3}),e.fillStyle=`${mn[t]}dd`,e.fill(),e.strokeStyle=mn[t],e.stroke(),e.fillStyle=mn.text,e.fillText(a,r,n),kh(e,{x:r,y:n,w:o,h:i,r:3}),e.fillStyle=`${mn[t]}dd`,e.fill(),e.strokeStyle=mn[t],e.stroke(),e.fillStyle=mn.text,e.fillText(a,r,n),{x:r,y:n,w:o,h:i}}function R_(e,t){e.font="600 12px monospace",e.textBaseline="middle",e.textAlign="center";let r=e.measureText(t),n=r.actualBoundingBoxAscent+r.actualBoundingBoxDescent,o=r.width+or*2,i=n+or*2;return{w:o,h:i}}function MU(e,t,{type:r,position:n="center",text:o},i,a=!1){let{x:s,y:c}=NU(n,t),{offsetX:u,offsetY:d}=IU(r,n,t,or+1,a);s+=u,c+=d;let{w:p,h:f}=R_(e,o);if(i&&jU({x:s,y:c,w:p,h:f},i)){let h=qU(n,{x:s,y:c,w:p},i);s=h.x,c=h.y}return A_(e,r,{x:s,y:c,w:p,h:f},o)}function kU(e,{w:t,h:r}){let n=t*.5+or,o=r*.5+or;return{offsetX:(e.x==="left"?-1:1)*n,offsetY:(e.y==="top"?-1:1)*o}}function LU(e,t,{type:r,text:n}){let{floatingAlignment:o,extremities:i}=t,a=i[o.x],s=i[o.y],{w:c,h:u}=R_(e,n),{offsetX:d,offsetY:p}=kU(o,{w:c,h:u});return a+=d,s+=p,A_(e,r,{x:a,y:s,w:c,h:u},n)}function Eo(e,t,r,n){let o=[];r.forEach((i,a)=>{let s=n&&i.position==="center"?LU(e,t,i):MU(e,t,i,o[a-1],n);o[a]=s})}function DU(e,t,r,n){let o=r.reduce((i,a)=>(Object.prototype.hasOwnProperty.call(i,a.position)||(i[a.position]=[]),i[a.position]?.push(a),i),{});o.top&&Eo(e,t,o.top,n),o.right&&Eo(e,t,o.right,n),o.bottom&&Eo(e,t,o.bottom,n),o.left&&Eo(e,t,o.left,n),o.center&&Eo(e,t,o.center,n)}var bs={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},Lh=30;function St(e){return parseInt(e.replace("px",""),10)}function En(e){return Number.isInteger(e)?e:e.toFixed(2)}function xd(e){return e.filter(t=>t.text!==0&&t.text!=="0")}function $U(e){let t={top:ee.window.scrollY,bottom:ee.window.scrollY+ee.window.innerHeight,left:ee.window.scrollX,right:ee.window.scrollX+ee.window.innerWidth},r={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:r.left>r.right?"left":"right",y:r.top>r.bottom?"top":"bottom"}}function BU(e){let t=ee.getComputedStyle(e),{top:r,left:n,right:o,bottom:i,width:a,height:s}=e.getBoundingClientRect(),{marginTop:c,marginBottom:u,marginLeft:d,marginRight:p,paddingTop:f,paddingBottom:h,paddingLeft:y,paddingRight:g,borderBottomWidth:E,borderTopWidth:b,borderLeftWidth:w,borderRightWidth:P}=t;r=r+ee.window.scrollY,n=n+ee.window.scrollX,i=i+ee.window.scrollY,o=o+ee.window.scrollX;let x={top:St(c),bottom:St(u),left:St(d),right:St(p)},C={top:St(f),bottom:St(h),left:St(y),right:St(g)},S={top:St(b),bottom:St(E),left:St(w),right:St(P)},_={top:r-x.top,bottom:i+x.bottom,left:n-x.left,right:o+x.right};return{margin:x,padding:C,border:S,top:r,left:n,bottom:i,right:o,width:a,height:s,extremities:_,floatingAlignment:$U(_)}}function FU(e,{margin:t,width:r,height:n,top:o,left:i,bottom:a,right:s}){let c=n+t.bottom+t.top;e.fillStyle=bs.margin,e.fillRect(i,o-t.top,r,t.top),e.fillRect(s,o-t.top,t.right,c),e.fillRect(i,a,r,t.bottom),e.fillRect(i-t.left,o-t.top,t.left,c);let u=[{type:"margin",text:En(t.top),position:"top"},{type:"margin",text:En(t.right),position:"right"},{type:"margin",text:En(t.bottom),position:"bottom"},{type:"margin",text:En(t.left),position:"left"}];return xd(u)}function UU(e,{padding:t,border:r,width:n,height:o,top:i,left:a,bottom:s,right:c}){let u=n-r.left-r.right,d=o-t.top-t.bottom-r.top-r.bottom;e.fillStyle=bs.padding,e.fillRect(a+r.left,i+r.top,u,t.top),e.fillRect(c-t.right-r.right,i+t.top+r.top,t.right,d),e.fillRect(a+r.left,s-t.bottom-r.bottom,u,t.bottom),e.fillRect(a+r.left,i+t.top+r.top,t.left,d);let p=[{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"}];return xd(p)}function JU(e,{border:t,width:r,height:n,top:o,left:i,bottom:a,right:s}){let c=n-t.top-t.bottom;e.fillStyle=bs.border,e.fillRect(i,o,r,t.top),e.fillRect(i,a-t.bottom,r,t.bottom),e.fillRect(i,o+t.top,t.left,c),e.fillRect(s-t.right,o+t.top,t.right,c);let u=[{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"}];return xd(u)}function VU(e,{padding:t,border:r,width:n,height:o,top:i,left:a}){let s=n-r.left-r.right-t.left-t.right,c=o-t.top-t.bottom-r.top-r.bottom;return e.fillStyle=bs.content,e.fillRect(a+r.left+t.left,i+r.top+t.top,s,c),[{type:"content",position:"center",text:`${En(s)} x ${En(c)}`}]}function HU(e){return t=>{if(e&&t){let r=BU(e),n=FU(t,r),o=UU(t,r),i=JU(t,r),a=VU(t,r),s=r.width<=Lh*3||r.height<=Lh;DU(t,r,[...a,...o,...i,...n],s)}}}function GU(e){PU(HU(e))}var zU=(e,t)=>{let r=ee.document.elementFromPoint(e,t),n=o=>{if(o&&o.shadowRoot){let i=o.shadowRoot.elementFromPoint(e,t);return o.isEqualNode(i)?o:i.shadowRoot?n(i):i}return o};return n(r)||r},Dh,Bi={x:0,y:0};function $h(e,t){Dh=zU(e,t),GU(Dh)}var WU=(e,t)=>{let{measureEnabled:r}=t.globals||{};return en(()=>{if(typeof globalThis.document>"u")return;let n=o=>{window.requestAnimationFrame(()=>{o.stopPropagation(),Bi.x=o.clientX,Bi.y=o.clientY})};return globalThis.document.addEventListener("pointermove",n),()=>{globalThis.document.removeEventListener("pointermove",n)}},[]),en(()=>{let n=i=>{window.requestAnimationFrame(()=>{i.stopPropagation(),$h(i.clientX,i.clientY)})},o=()=>{window.requestAnimationFrame(()=>{xU()})};return t.viewMode==="story"&&r&&(globalThis.document.addEventListener("pointerover",n),OU(),globalThis.window.addEventListener("resize",o),$h(Bi.x,Bi.y)),()=>{globalThis.window.removeEventListener("resize",o),CU()}},[r,t.viewMode]),e()},KU=globalThis.FEATURES?.measure?[WU]:[],YU={[AU]:!1},Bh=()=>({decorators:KU,initialGlobals:YU}),O_="outline",Fh=e=>{(Array.isArray(e)?e:[e]).forEach(XU)},XU=e=>{let t=typeof e=="string"?e:e.join(""),r=ee.document.getElementById(t);r&&r.parentElement&&r.parentElement.removeChild(r)},QU=(e,t)=>{let r=ee.document.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=ee.document.createElement("style");n.setAttribute("id",e),n.innerHTML=t,ee.document.head.appendChild(n)}};function ZU(e){return Ee`
469
+ ${e} body {
470
+ outline: 1px solid #2980b9 !important;
471
+ }
472
+
473
+ ${e} article {
474
+ outline: 1px solid #3498db !important;
475
+ }
476
+
477
+ ${e} nav {
478
+ outline: 1px solid #0088c3 !important;
479
+ }
480
+
481
+ ${e} aside {
482
+ outline: 1px solid #33a0ce !important;
483
+ }
484
+
485
+ ${e} section {
486
+ outline: 1px solid #66b8da !important;
487
+ }
488
+
489
+ ${e} header {
490
+ outline: 1px solid #99cfe7 !important;
491
+ }
492
+
493
+ ${e} footer {
494
+ outline: 1px solid #cce7f3 !important;
495
+ }
496
+
497
+ ${e} h1 {
498
+ outline: 1px solid #162544 !important;
499
+ }
500
+
501
+ ${e} h2 {
502
+ outline: 1px solid #314e6e !important;
503
+ }
504
+
505
+ ${e} h3 {
506
+ outline: 1px solid #3e5e85 !important;
507
+ }
508
+
509
+ ${e} h4 {
510
+ outline: 1px solid #449baf !important;
511
+ }
512
+
513
+ ${e} h5 {
514
+ outline: 1px solid #c7d1cb !important;
515
+ }
516
+
517
+ ${e} h6 {
518
+ outline: 1px solid #4371d0 !important;
519
+ }
520
+
521
+ ${e} main {
522
+ outline: 1px solid #2f4f90 !important;
523
+ }
524
+
525
+ ${e} address {
526
+ outline: 1px solid #1a2c51 !important;
527
+ }
528
+
529
+ ${e} div {
530
+ outline: 1px solid #036cdb !important;
531
+ }
532
+
533
+ ${e} p {
534
+ outline: 1px solid #ac050b !important;
535
+ }
536
+
537
+ ${e} hr {
538
+ outline: 1px solid #ff063f !important;
539
+ }
540
+
541
+ ${e} pre {
542
+ outline: 1px solid #850440 !important;
543
+ }
544
+
545
+ ${e} blockquote {
546
+ outline: 1px solid #f1b8e7 !important;
547
+ }
548
+
549
+ ${e} ol {
550
+ outline: 1px solid #ff050c !important;
551
+ }
552
+
553
+ ${e} ul {
554
+ outline: 1px solid #d90416 !important;
555
+ }
556
+
557
+ ${e} li {
558
+ outline: 1px solid #d90416 !important;
559
+ }
560
+
561
+ ${e} dl {
562
+ outline: 1px solid #fd3427 !important;
563
+ }
564
+
565
+ ${e} dt {
566
+ outline: 1px solid #ff0043 !important;
567
+ }
568
+
569
+ ${e} dd {
570
+ outline: 1px solid #e80174 !important;
571
+ }
572
+
573
+ ${e} figure {
574
+ outline: 1px solid #ff00bb !important;
575
+ }
576
+
577
+ ${e} figcaption {
578
+ outline: 1px solid #bf0032 !important;
579
+ }
580
+
581
+ ${e} table {
582
+ outline: 1px solid #00cc99 !important;
583
+ }
584
+
585
+ ${e} caption {
586
+ outline: 1px solid #37ffc4 !important;
587
+ }
588
+
589
+ ${e} thead {
590
+ outline: 1px solid #98daca !important;
591
+ }
592
+
593
+ ${e} tbody {
594
+ outline: 1px solid #64a7a0 !important;
595
+ }
596
+
597
+ ${e} tfoot {
598
+ outline: 1px solid #22746b !important;
599
+ }
600
+
601
+ ${e} tr {
602
+ outline: 1px solid #86c0b2 !important;
603
+ }
604
+
605
+ ${e} th {
606
+ outline: 1px solid #a1e7d6 !important;
607
+ }
608
+
609
+ ${e} td {
610
+ outline: 1px solid #3f5a54 !important;
611
+ }
612
+
613
+ ${e} col {
614
+ outline: 1px solid #6c9a8f !important;
615
+ }
616
+
617
+ ${e} colgroup {
618
+ outline: 1px solid #6c9a9d !important;
619
+ }
620
+
621
+ ${e} button {
622
+ outline: 1px solid #da8301 !important;
623
+ }
624
+
625
+ ${e} datalist {
626
+ outline: 1px solid #c06000 !important;
627
+ }
628
+
629
+ ${e} fieldset {
630
+ outline: 1px solid #d95100 !important;
631
+ }
632
+
633
+ ${e} form {
634
+ outline: 1px solid #d23600 !important;
635
+ }
636
+
637
+ ${e} input {
638
+ outline: 1px solid #fca600 !important;
639
+ }
640
+
641
+ ${e} keygen {
642
+ outline: 1px solid #b31e00 !important;
643
+ }
644
+
645
+ ${e} label {
646
+ outline: 1px solid #ee8900 !important;
647
+ }
648
+
649
+ ${e} legend {
650
+ outline: 1px solid #de6d00 !important;
651
+ }
652
+
653
+ ${e} meter {
654
+ outline: 1px solid #e8630c !important;
655
+ }
656
+
657
+ ${e} optgroup {
658
+ outline: 1px solid #b33600 !important;
659
+ }
660
+
661
+ ${e} option {
662
+ outline: 1px solid #ff8a00 !important;
663
+ }
664
+
665
+ ${e} output {
666
+ outline: 1px solid #ff9619 !important;
667
+ }
668
+
669
+ ${e} progress {
670
+ outline: 1px solid #e57c00 !important;
671
+ }
672
+
673
+ ${e} select {
674
+ outline: 1px solid #e26e0f !important;
675
+ }
676
+
677
+ ${e} textarea {
678
+ outline: 1px solid #cc5400 !important;
679
+ }
680
+
681
+ ${e} details {
682
+ outline: 1px solid #33848f !important;
683
+ }
684
+
685
+ ${e} summary {
686
+ outline: 1px solid #60a1a6 !important;
687
+ }
688
+
689
+ ${e} command {
690
+ outline: 1px solid #438da1 !important;
691
+ }
692
+
693
+ ${e} menu {
694
+ outline: 1px solid #449da6 !important;
695
+ }
696
+
697
+ ${e} del {
698
+ outline: 1px solid #bf0000 !important;
699
+ }
700
+
701
+ ${e} ins {
702
+ outline: 1px solid #400000 !important;
703
+ }
704
+
705
+ ${e} img {
706
+ outline: 1px solid #22746b !important;
707
+ }
708
+
709
+ ${e} iframe {
710
+ outline: 1px solid #64a7a0 !important;
711
+ }
712
+
713
+ ${e} embed {
714
+ outline: 1px solid #98daca !important;
715
+ }
716
+
717
+ ${e} object {
718
+ outline: 1px solid #00cc99 !important;
719
+ }
720
+
721
+ ${e} param {
722
+ outline: 1px solid #37ffc4 !important;
723
+ }
724
+
725
+ ${e} video {
726
+ outline: 1px solid #6ee866 !important;
727
+ }
728
+
729
+ ${e} audio {
730
+ outline: 1px solid #027353 !important;
731
+ }
732
+
733
+ ${e} source {
734
+ outline: 1px solid #012426 !important;
735
+ }
736
+
737
+ ${e} canvas {
738
+ outline: 1px solid #a2f570 !important;
739
+ }
740
+
741
+ ${e} track {
742
+ outline: 1px solid #59a600 !important;
743
+ }
744
+
745
+ ${e} map {
746
+ outline: 1px solid #7be500 !important;
747
+ }
748
+
749
+ ${e} area {
750
+ outline: 1px solid #305900 !important;
751
+ }
752
+
753
+ ${e} a {
754
+ outline: 1px solid #ff62ab !important;
755
+ }
756
+
757
+ ${e} em {
758
+ outline: 1px solid #800b41 !important;
759
+ }
760
+
761
+ ${e} strong {
762
+ outline: 1px solid #ff1583 !important;
763
+ }
764
+
765
+ ${e} i {
766
+ outline: 1px solid #803156 !important;
767
+ }
768
+
769
+ ${e} b {
770
+ outline: 1px solid #cc1169 !important;
771
+ }
772
+
773
+ ${e} u {
774
+ outline: 1px solid #ff0430 !important;
775
+ }
776
+
777
+ ${e} s {
778
+ outline: 1px solid #f805e3 !important;
779
+ }
780
+
781
+ ${e} small {
782
+ outline: 1px solid #d107b2 !important;
783
+ }
784
+
785
+ ${e} abbr {
786
+ outline: 1px solid #4a0263 !important;
787
+ }
788
+
789
+ ${e} q {
790
+ outline: 1px solid #240018 !important;
791
+ }
792
+
793
+ ${e} cite {
794
+ outline: 1px solid #64003c !important;
795
+ }
796
+
797
+ ${e} dfn {
798
+ outline: 1px solid #b4005a !important;
799
+ }
800
+
801
+ ${e} sub {
802
+ outline: 1px solid #dba0c8 !important;
803
+ }
804
+
805
+ ${e} sup {
806
+ outline: 1px solid #cc0256 !important;
807
+ }
808
+
809
+ ${e} time {
810
+ outline: 1px solid #d6606d !important;
811
+ }
812
+
813
+ ${e} code {
814
+ outline: 1px solid #e04251 !important;
815
+ }
816
+
817
+ ${e} kbd {
818
+ outline: 1px solid #5e001f !important;
819
+ }
820
+
821
+ ${e} samp {
822
+ outline: 1px solid #9c0033 !important;
823
+ }
824
+
825
+ ${e} var {
826
+ outline: 1px solid #d90047 !important;
827
+ }
828
+
829
+ ${e} mark {
830
+ outline: 1px solid #ff0053 !important;
831
+ }
832
+
833
+ ${e} bdi {
834
+ outline: 1px solid #bf3668 !important;
835
+ }
836
+
837
+ ${e} bdo {
838
+ outline: 1px solid #6f1400 !important;
839
+ }
840
+
841
+ ${e} ruby {
842
+ outline: 1px solid #ff7b93 !important;
843
+ }
844
+
845
+ ${e} rt {
846
+ outline: 1px solid #ff2f54 !important;
847
+ }
848
+
849
+ ${e} rp {
850
+ outline: 1px solid #803e49 !important;
851
+ }
852
+
853
+ ${e} span {
854
+ outline: 1px solid #cc2643 !important;
855
+ }
856
+
857
+ ${e} br {
858
+ outline: 1px solid #db687d !important;
859
+ }
860
+
861
+ ${e} wbr {
862
+ outline: 1px solid #db175b !important;
863
+ }`}var e5=(e,t)=>{let r=t.globals||{},n=[!0,"true"].includes(r[O_]),o=t.viewMode==="docs",i=yg(()=>ZU(o?'[data-story-block="true"]':".sb-show-main"),[t]);return en(()=>{let a=o?`addon-outline-docs-${t.id}`:"addon-outline";return n?QU(a,i):Fh(a),()=>{Fh(a)}},[n,i,t]),e()},t5=globalThis.FEATURES?.outline?[e5]:[],r5={[O_]:!1},Uh=()=>({decorators:t5,initialGlobals:r5}),n5=({parameters:e})=>{e?.test?.mockReset===!0?uE():e?.test?.clearMocks===!0?lE():e?.test?.restoreMocks!==!1&&cE()},bu=(e,t=0,r)=>{if(t>5||e==null)return e;if(Tn(e))return r&&e.mockName(r),e;if(typeof e=="function"&&"isAction"in e&&e.isAction&&!("implicit"in e&&e.implicit)){let n=aE(e);return r&&n.mockName(r),n}if(Array.isArray(e)){t++;for(let n=0;n<e.length;n++)Object.getOwnPropertyDescriptor(e,n)?.writable&&(e[n]=bu(e[n],t));return e}if(typeof e=="object"&&e.constructor===Object){t++;for(let[n,o]of Object.entries(e))Object.getOwnPropertyDescriptor(e,n)?.writable&&(e[n]=bu(o,t,n));return e}return e},o5=({initialArgs:e})=>{bu(e)},Jh=!1,i5=async e=>{globalThis.HTMLElement&&e.canvasElement instanceof globalThis.HTMLElement&&(e.canvas=w_(e.canvasElement));try{let t=globalThis.window?.navigator?.clipboard;if(t&&(e.userEvent=pi({userEvent:__.setup()},{intercept:!0,getKeys:r=>Object.keys(r).filter(n=>n!=="eventWrapper")}).userEvent,Object.defineProperty(globalThis.window.navigator,"clipboard",{get:()=>t,configurable:!0}),!Jh)){let r=HTMLElement.prototype.focus,n=HTMLElement.prototype.focus,o=new Set;Object.defineProperties(HTMLElement.prototype,{focus:{configurable:!0,set:i=>{n=i},get(){return o.has(this)?r:(o.add(this),setTimeout(()=>o.delete(this),0),n)}}}),Jh=!0}}catch{}},Vh=()=>({loaders:[n5,o5,i5]}),a5="viewport",s5={[a5]:{value:void 0,isRotated:!1}},Hh=()=>({initialGlobals:s5});function P_(){return[(Bh.default??Bh)(),(Ah.default??Ah)(),(Mh.default??Mh)(),(Uh.default??Uh)(),(Hh.default??Hh)(),(wh.default??wh)(),(Rh.default??Rh)(),(Vh.default??Vh)(),(Oh.default??Oh)()]}function l5(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Meta"}function Ra(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Story"}function u5(e){return"__children"in e?e.__children:[]}var x_=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),vu=(e,t)=>{let r=x_(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},c5=(e,t)=>`${vu(e,"kind")}${t?`--${vu(t,"name")}`:""}`,d5=(e,t)=>`${e}:${vu(t,"test")}`,p5=e=>FN(e);function Gh(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}function Eu(e,{includeStories:t,excludeStories:r}){return e!=="__esModule"&&(!t||Gh(e,t))&&(!r||!Gh(e,r))}var f5=(...e)=>{let t=e.reduce((r,n)=>(n.startsWith("!")?r.delete(n.slice(1)):r.add(n),r),new Set);return Array.from(t)};function zh(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Wh(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var h5="[object RegExp]",m5="[object String]",y5="[object Number]",g5="[object Boolean]",Kh="[object Arguments]",b5="[object Symbol]",v5="[object Date]",E5="[object Map]",w5="[object Set]",_5="[object Array]",T5="[object Function]",S5="[object ArrayBuffer]",ll="[object Object]",A5="[object Error]",R5="[object DataView]",O5="[object Uint8Array]",P5="[object Uint8ClampedArray]",x5="[object Uint16Array]",C5="[object Uint32Array]",N5="[object BigUint64Array]",I5="[object Int8Array]",j5="[object Int16Array]",q5="[object Int32Array]",M5="[object BigInt64Array]",k5="[object Float32Array]",L5="[object Float64Array]";function Ht(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 ni(e,t){let r={},n=Object.keys(e);for(let o=0;o<n.length;o++){let i=n[o],a=e[i];r[i]=t(a,i,e)}return r}function D5(e,t){let r={},n=Object.keys(e);for(let o=0;o<n.length;o++){let i=n[o],a=e[i];t(a,i)&&(r[i]=a)}return r}var ul=Je(Bm(),1);function $5(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function B5(e,t,r){return Oo(e,t,void 0,void 0,void 0,void 0,r)}function Oo(e,t,r,n,o,i,a){let s=a(e,t,r,n,o,i);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 jo(e,t,i,a)}return jo(e,t,i,a)}function jo(e,t,r,n){if(Object.is(e,t))return!0;let o=Wh(e),i=Wh(t);if(o===Kh&&(o=ll),i===Kh&&(i=ll),o!==i)return!1;switch(o){case m5:return e.toString()===t.toString();case y5:{let c=e.valueOf(),u=t.valueOf();return $5(c,u)}case g5:case v5:case b5:return Object.is(e.valueOf(),t.valueOf());case h5:return e.source===t.source&&e.flags===t.flags;case T5:return e===t}r=r??new Map;let a=r.get(e),s=r.get(t);if(a!=null&&s!=null)return a===t;r.set(e,t),r.set(t,e);try{switch(o){case E5:{if(e.size!==t.size)return!1;for(let[c,u]of e.entries())if(!t.has(c)||!Oo(u,t.get(c),c,e,t,r,n))return!1;return!0}case w5:{if(e.size!==t.size)return!1;let c=Array.from(e.values()),u=Array.from(t.values());for(let d=0;d<c.length;d++){let p=c[d],f=u.findIndex(h=>Oo(p,h,void 0,e,t,r,n));if(f===-1)return!1;u.splice(f,1)}return!0}case _5:case O5:case P5:case x5:case C5:case N5:case I5:case j5:case q5:case M5:case k5:case L5:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let c=0;c<e.length;c++)if(!Oo(e[c],t[c],c,e,t,r,n))return!1;return!0}case S5:return e.byteLength!==t.byteLength?!1:jo(new Uint8Array(e),new Uint8Array(t),r,n);case R5:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:jo(new Uint8Array(e),new Uint8Array(t),r,n);case A5:return e.name===t.name&&e.message===t.message;case ll:{if(!(jo(e.constructor,t.constructor,r,n)||Ht(e)&&Ht(t)))return!1;let c=[...Object.keys(e),...zh(e)],u=[...Object.keys(t),...zh(t)];if(c.length!==u.length)return!1;for(let d=0;d<c.length;d++){let p=c[d],f=e[p];if(!Object.hasOwn(t,p))return!1;let h=t[p];if(!Oo(f,h,p,e,t,r,n))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}function F5(){}function U5(e,t){return B5(e,t,F5)}var zr=Symbol("incompatible"),wu=(e,t)=>{let r=t.type;if(e==null||!r||t.mapping)return e;switch(r.name){case"string":return String(e);case"enum":return e;case"number":return Number(e);case"boolean":return String(e)==="true";case"array":return!r.value||!Array.isArray(e)?zr:e.reduce((n,o,i)=>{let a=wu(o,{type:r.value});return a!==zr&&(n[i]=a),n},new Array(e.length));case"object":return typeof e=="string"||typeof e=="number"?e:!r.value||typeof e!="object"?zr:Object.entries(e).reduce((n,[o,i])=>{let a=wu(i,{type:r.value[o]});return a===zr?n:Object.assign(n,{[o]:a})},{});case"other":{let n=typeof e=="string"||typeof e=="number"||typeof e=="boolean";return r.value==="ReactNode"&&n?e:zr}default:return zr}},J5=(e,t)=>Object.entries(e).reduce((r,[n,o])=>{if(!t[n])return r;let i=wu(o,t[n]);return i===zr?r:Object.assign(r,{[n]:i})},{}),Oa=(e,t)=>Array.isArray(e)&&Array.isArray(t)?t.reduce((r,n,o)=>(r[o]=Oa(e[o],t[o]),r),[...e]).filter(r=>r!==void 0):!Ht(e)||!Ht(t)?t:Object.keys({...e,...t}).reduce((r,n)=>{if(n in t){let o=Oa(e[n],t[n]);o!==void 0&&(r[n]=o)}else r[n]=e[n];return r},{}),V5=(e,t)=>Object.entries(t).reduce((r,[n,{options:o}])=>{function i(){return n in e&&(r[n]=e[n]),r}if(!o)return i();if(!Array.isArray(o))return Ue.error(Ee`
864
+ Invalid argType: '${n}.options' should be an array.
865
+
866
+ More info: https://storybook.js.org/docs/api/arg-types?ref=error
867
+ `),i();if(o.some(p=>p&&["object","function"].includes(typeof p)))return Ue.error(Ee`
868
+ Invalid argType: '${n}.options' should only contain primitives. Use a 'mapping' for complex values.
869
+
870
+ More info: https://storybook.js.org/docs/writing-stories/args?ref=error#mapping-to-complex-arg-values
871
+ `),i();let a=Array.isArray(e[n]),s=a&&e[n].findIndex(p=>!o.includes(p)),c=a&&s===-1;if(e[n]===void 0||o.includes(e[n])||c)return i();let u=a?`${n}[${s}]`:n,d=o.map(p=>typeof p=="string"?`'${p}'`:String(p)).join(", ");return Ue.warn(`Received illegal value for '${u}'. Supported options: ${d}`),r},{}),qo=Symbol("Deeply equal"),Pa=(e,t)=>{if(typeof e!=typeof t)return t;if(U5(e,t))return qo;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((n,o,i)=>{let a=Pa(e[i],o);return a!==qo&&(n[i]=a),n},new Array(t.length));return t.length>=e.length?r:r.concat(new Array(e.length-t.length).fill(void 0))}return Ht(e)&&Ht(t)?Object.keys({...e,...t}).reduce((r,n)=>{let o=Pa(e?.[n],t?.[n]);return o===qo?r:Object.assign(r,{[n]:o})},{}):t},C_="UNTARGETED";function H5({args:e,argTypes:t}){let r={};return Object.entries(e).forEach(([n,o])=>{let{target:i=C_}=t[n]||{};r[i]=r[i]||{},r[i][n]=o}),r}function G5(e){return Object.keys(e).forEach(t=>e[t]===void 0&&delete e[t]),e}var z5=class{constructor(){this.initialArgsByStoryId={},this.argsByStoryId={}}get(e){if(!(e in this.argsByStoryId))throw new 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=Pa(this.initialArgsByStoryId[e.id],this.argsByStoryId[e.id]);this.initialArgsByStoryId[e.id]=e.initialArgs,this.argsByStoryId[e.id]=e.initialArgs,t!==qo&&this.updateFromDelta(e,t)}}updateFromDelta(e,t){let r=V5(t,e.argTypes);this.argsByStoryId[e.id]=Oa(this.argsByStoryId[e.id],r)}updateFromPersisted(e,t){let r=J5(t,e.argTypes);return this.updateFromDelta(e,r)}update(e,t){if(!(e in this.argsByStoryId))throw new Error(`No args known for ${e} -- has it been rendered yet?`);this.argsByStoryId[e]=G5({...this.argsByStoryId[e],...t})}},N_=(e={})=>Object.entries(e).reduce((t,[r,{defaultValue:n}])=>(typeof n<"u"&&(t[r]=n),t),{}),W5=class{constructor({globals:e={},globalTypes:t={}}){this.set({globals:e,globalTypes:t})}set({globals:e={},globalTypes:t={}}){let r=this.initialGlobals&&Pa(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(e),...Object.keys(t)]);let n=N_(t);this.initialGlobals={...n,...e},this.globals=this.initialGlobals,r&&r!==qo&&this.updateFromPersisted(r)}filterAllowedGlobals(e){return Object.entries(e).reduce((t,[r,n])=>(this.allowedGlobalNames.has(r)?t[r]=n:Ie.warn(`Attempted to set a global (${r}) that is not defined in initial globals or globalTypes`),t),{})}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])}},K5=Je(Bm(),1),Y5=(0,K5.default)(1)(e=>Object.values(e).reduce((t,r)=>(t[r.importPath]=t[r.importPath]||r,t),{})),X5=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(o=>o.id.startsWith(e));let{name:r,title:n}=e;return t.find(o=>o.name===r&&o.title===n)}storyIdToEntry(e){let t=this.entries[e];if(!t)throw new Hy({storyId:e});return t}importPathToEntry(e){return Y5(this.entries)[e]}},Q5=e=>typeof e=="string"?{name:e}:e,Z5=e=>typeof e=="string"?{type:e}:e,eJ=(e,t)=>{let{type:r,control:n,...o}=e,i={name:t,...o};return r&&(i.type=Q5(r)),n?i.control=Z5(n):n===!1&&(i.control={disable:!0}),i},Cd=e=>ni(e,eJ),Ce=e=>Array.isArray(e)?e:e?[e]:[],tJ=Ee`
872
+ CSF .story annotations deprecated; annotate story functions directly:
873
+ - StoryFn.story.name => StoryFn.storyName
874
+ - StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
875
+ See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
876
+ `;function Mo(e,t,r){let n=t,o=typeof t=="function"?t:null,{story:i}=n;i&&(Ie.debug("deprecated story",i),Wu(tJ));let a=p5(e),s=typeof n!="function"&&n.name||n.storyName||i?.name||a,c=[...Ce(n.decorators),...Ce(i?.decorators)],u={...i?.parameters,...n.parameters},d={...i?.args,...n.args},p={...i?.argTypes,...n.argTypes},f=[...Ce(n.loaders),...Ce(i?.loaders)],h=[...Ce(n.beforeEach),...Ce(i?.beforeEach)],y=[...Ce(n.afterEach),...Ce(i?.afterEach)],{render:g,play:E,tags:b=[],globals:w={}}=n,P=u.__id||c5(r.id,a);return{moduleExport:t,id:P,name:s,tags:b,decorators:c,parameters:u,args:d,argTypes:Cd(p),loaders:f,beforeEach:h,afterEach:y,globals:w,...g&&{render:g},...o&&{userStoryFn:o},...E&&{play:E}}}function _u(e,t=e.title,r){let{id:n,argTypes:o}=e;return{id:x_(n||t),...e,title:t,...o&&{argTypes:Cd(o)},parameters:{fileName:r,...e.parameters}}}var rJ=e=>{let{globals:t,globalTypes:r}=e;(t||r)&&Ie.error("Global args/argTypes can only be set globally",JSON.stringify({globals:t,globalTypes:r}))},nJ=e=>{let{options:t}=e;t?.storySort&&Ie.error("The storySort option parameter can only be set globally")},Fi=e=>{e&&(rJ(e),nJ(e))};function oJ(e,t,r){let{default:n,__namedExportsOrder:o,...i}=e,a=Object.values(i).find(u=>Ra(u));if(a){let u=_u(a.meta.input,r,t);Fi(u.parameters);let d={meta:u,stories:{},moduleExports:e};return Object.keys(i).forEach(p=>{if(Eu(p,u)&&Ra(i[p])){let f=i[p],h=Mo(p,f.input,u);Fi(h.parameters),d.stories[h.id]=h,u5(f).forEach(y=>{let g=y.input.name,E=d5(h.id,g);y.input.parameters??={},y.input.parameters.__id=E,d.stories[E]=Mo(g,y.input,u)})}}),d.projectAnnotations=a.meta.preview.composed,d}let s=_u(n,r,t);Fi(s.parameters);let c={meta:s,stories:{},moduleExports:e};return Object.keys(i).forEach(u=>{if(Eu(u,s)){let d=Mo(u,i[u],s);Fi(d.parameters),c.stories[d.id]=d}}),c}function I_(e,t,r){let n=r(e);return o=>t(n,o)}function j_({componentId:e,title:t,kind:r,id:n,name:o,story:i,parameters:a,initialArgs:s,argTypes:c,...u}={}){return u}function q_(e,t){let r={},n=i=>a=>{if(!r.value)throw new Error("Decorated function called without init");return r.value={...r.value,...j_(a)},i(r.value)},o=t.reduce((i,a)=>I_(i,a,n),e);return i=>(r.value=i,o(i))}var an=(...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((o,i)=>(Object.entries(i).forEach(([a,s])=>{let c=o[a];Array.isArray(s)||typeof c>"u"?o[a]=s:Ht(s)&&Ht(c)?t[a]=!0:typeof s<"u"&&(o[a]=s)}),o),{});return Object.keys(t).forEach(o=>{let i=r.filter(Boolean).map(a=>a[o]).filter(a=>typeof a<"u");i.every(a=>Ht(a))?n[o]=an(...i):n[o]=i[i.length-1]}),n};function Nd(e,t,r){let{moduleExport:n,id:o,name:i}=e||{},a=k_(e,t,r),s=async S=>{let _={};for(let T of[Ce(r.loaders),Ce(t.loaders),Ce(e.loaders)]){if(S.abortSignal.aborted)return _;let A=await Promise.all(T.map(D=>D(S)));Object.assign(_,...A)}return _},c=async S=>{let _=new Array;for(let T of[...Ce(r.beforeEach),...Ce(t.beforeEach),...Ce(e.beforeEach)]){if(S.abortSignal.aborted)return _;let A=await T(S);A&&_.push(A)}return _},u=async S=>{let _=[...Ce(r.afterEach),...Ce(t.afterEach),...Ce(e.afterEach)].reverse();for(let T of _){if(S.abortSignal.aborted)return;await T(S)}},d=S=>S.originalStoryFn(S.args,S),{applyDecorators:p=q_,runStep:f}=r,h=[...Ce(e?.decorators),...Ce(t?.decorators),...Ce(r?.decorators)],y=e?.userStoryFn||e?.render||t.render||r.render,g=hg(p)(d,h),E=S=>g(S),b=e?.play??t?.play,w=VN(b);if(!y&&!w)throw new tg({id:o});let P=S=>async()=>(await S.renderToCanvas(),S.canvas),x=e.mount??t.mount??r.mount??P,C=r.testingLibraryRender;return{storyGlobals:{},...a,moduleExport:n,id:o,name:i,story:i,originalStoryFn:y,undecoratedStoryFn:d,unboundStoryFn:E,applyLoaders:s,applyBeforeEach:c,applyAfterEach:u,playFunction:b,runStep:f,mount:x,testingLibraryRender:C,renderToCanvas:r.renderToCanvas,usesMount:w}}function M_(e,t,r){return{...k_(void 0,e,t),moduleExport:r}}function k_(e,t,r){let n=[Zt.DEV,Zt.TEST],o=ee.DOCS_OPTIONS?.autodocs===!0?[Zt.AUTODOCS]:[],i=e?.tags?.includes(Zt.TEST_FN)?[`!${Zt.AUTODOCS}`]:[],a=f5(...n,...o,...r.tags??[],...t.tags??[],...i,...e?.tags??[]),s=an(r.parameters,t.parameters,e?.parameters),{argTypesEnhancers:c=[],argsEnhancers:u=[]}=r,d=an(r.argTypes,t.argTypes,e?.argTypes);if(e){let w=e?.userStoryFn||e?.render||t.render||r.render;s.__isArgsStory=w&&w.length>0}let p={...r.args,...t.args,...e?.args},f={...t.globals,...e?.globals},h={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:a,parameters:s,initialArgs:p,argTypes:d,storyGlobals:f};h.argTypes=c.reduce((w,P)=>P({...h,argTypes:w}),h.argTypes);let y={...p};h.initialArgs=[...u].reduce((w,P)=>({...w,...P({...h,initialArgs:w})}),y);let{name:g,story:E,...b}=h;return b}function L_(e){let{args:t}=e,r={...e,allArgs:void 0,argsByTarget:void 0};if(ee.FEATURES?.argTypeTargetsV7){let i=H5(e);r={...e,allArgs:e.args,argsByTarget:i,args:i[C_]||{}}}let n=Object.entries(r.args).reduce((i,[a,s])=>{if(!r.argTypes[a]?.mapping)return i[a]=s,i;let c=u=>{let d=r.argTypes[a].mapping;return d&&u in d?d[u]:u};return i[a]=Array.isArray(s)?s.map(c):c(s),i},{}),o=Object.entries(n).reduce((i,[a,s])=>{let c=r.argTypes[a]||{};return JN(c,n,r.globals)&&(i[a]=s),i},{});return{...r,unmappedArgs:t,args:o}}var Tu=(e,t,r)=>{let n=typeof e;switch(n){case"boolean":case"string":case"number":case"function":case"symbol":return{name:n}}return e?r.has(e)?(Ie.warn(Ee`
877
+ We've detected a cycle in arg '${t}'. Args should be JSON-serializable.
878
+
879
+ Consider using the mapping feature or fully custom args:
880
+ - Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
881
+ - Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args
882
+ `),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?Tu(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:ni(e,o=>Tu(o,t,new Set(r)))}):{name:"object",value:{}}},D_=e=>{let{id:t,argTypes:r={},initialArgs:n={}}=e,o=ni(n,(a,s)=>({name:s,type:Tu(a,`${t}.${s}`,new Set)})),i=ni(r,(a,s)=>({name:s}));return an(o,i,r)};D_.secondPass=!0;var Yh=(e,t)=>Array.isArray(t)?t.includes(e):e.match(t),$_=(e,t,r)=>!t&&!r?e:e&&D5(e,(n,o)=>{let i=n.name||o.toString();return!!(!t||Yh(i,t))&&(!r||!Yh(i,r))}),iJ=(e,t,r)=>{let{type:n,options:o}=e;if(n){if(r.color&&r.color.test(t)){let i=n.name;if(i==="string")return{control:{type:"color"}};i!=="enum"&&Ie.warn(`Addon controls: Control of type color only supports string, received "${i}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(n.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:i}=n;return{control:{type:i?.length<=5?"radio":"select"},options:i}}case"function":case"symbol":return null;default:return{control:{type:o?"select":"object"}}}}},Id=e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:o=null,matchers:i={}}={}}}=e;if(!r)return t;let a=$_(t,n,o),s=ni(a,(c,u)=>c?.type&&iJ(c,u.toString(),i));return an(s,a)};Id.secondPass=!0;function xa({argTypes:e,argTypesEnhancers:t,decorators:r,loaders:n,beforeEach:o,afterEach:i,initialGlobals:a,...s}){return{...e&&{argTypes:Cd(e)},decorators:Ce(r),loaders:Ce(n),beforeEach:Ce(o),afterEach:Ce(i),argTypesEnhancers:[...t||[],D_,Id],initialGlobals:a,...s}}var aJ=e=>async()=>{let t=[];for(let r of e){let n=await r();n&&t.unshift(n)}return async()=>{for(let r of t)await r()}};function B_(e){return async(t,r,n)=>{await e.reduceRight((o,i)=>async()=>i(t,o,n),async()=>r(n))()}}function oi(e,t){return e.map(r=>r.default?.[t]??r[t]).filter(Boolean)}function gr(e,t,r={}){return oi(e,t).reduce((n,o)=>{let i=Ce(o);return r.reverseFileOrder?[...i,...n]:[...n,...i]},[])}function Ui(e,t){return Object.assign({},...oi(e,t))}function wo(e,t){return oi(e,t).pop()}function Dn(e){let t=gr(e,"argTypesEnhancers"),r=oi(e,"runStep"),n=gr(e,"beforeAll");return{parameters:an(...oi(e,"parameters")),decorators:gr(e,"decorators",{reverseFileOrder:!(ee.FEATURES?.legacyDecoratorFileOrder??!1)}),args:Ui(e,"args"),argsEnhancers:gr(e,"argsEnhancers"),argTypes:Ui(e,"argTypes"),argTypesEnhancers:[...t.filter(o=>!o.secondPass),...t.filter(o=>o.secondPass)],initialGlobals:Ui(e,"initialGlobals"),globalTypes:Ui(e,"globalTypes"),loaders:gr(e,"loaders"),beforeAll:aJ(n),beforeEach:gr(e,"beforeEach"),afterEach:gr(e,"afterEach"),render:wo(e,"render"),renderToCanvas:wo(e,"renderToCanvas"),applyDecorators:wo(e,"applyDecorators"),runStep:B_(r),tags:gr(e,"tags"),mount:wo(e,"mount"),testingLibraryRender:wo(e,"testingLibraryRender")}}function F_(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}function jd(e=!0){if(!("document"in globalThis&&"createElement"in globalThis.document))return()=>{};let t=document.createElement("style");t.textContent=`*, *:before, *:after {
883
+ animation: none !important;
884
+ }`,document.head.appendChild(t);let r=document.createElement("style");return r.textContent=`*, *:before, *:after {
885
+ animation-delay: 0s !important;
886
+ animation-direction: ${e?"reverse":"normal"} !important;
887
+ animation-play-state: paused !important;
888
+ transition: none !important;
889
+ }`,document.head.appendChild(r),document.body.clientHeight,document.head.removeChild(t),()=>{r.parentNode?.removeChild(r)}}async function qd(e){if(!("document"in globalThis&&"getAnimations"in globalThis.document&&"querySelectorAll"in globalThis.document))return;let t=!1;await Promise.race([new Promise(r=>{setTimeout(()=>{let n=[globalThis.document,...U_(globalThis.document)],o=async()=>{if(t||e?.aborted)return;let i=n.flatMap(a=>a?.getAnimations?.()||[]).filter(a=>a.playState==="running"&&!sJ(a));i.length>0&&(await Promise.allSettled(i.map(async a=>a.finished)),await o())};o().then(r)},100)}),new Promise(r=>setTimeout(()=>{t=!0,r(void 0)},5e3))])}function U_(e){return[e,...e.querySelectorAll("*")].reduce((t,r)=>("shadowRoot"in r&&r.shadowRoot&&t.push(r.shadowRoot,...U_(r.shadowRoot)),t),[])}function sJ(e){if(e instanceof CSSAnimation&&e.effect instanceof KeyframeEffect&&e.effect.target){let t=getComputedStyle(e.effect.target,e.effect.pseudoElement),r=t.animationName?.split(", ").indexOf(e.animationName);return t.animationIterationCount.split(", ")[r]==="infinite"}return!1}var Md=class{constructor(){this.reports=[]}async addReport(e){this.reports.push(e)}};function J_(e,t,r){return Ra(e)?{story:e.input,meta:e.meta.input,preview:e.meta.preview.composed}:{story:e,meta:l5(t)?t.input:t,preview:r}}function lJ(e){globalThis.defaultProjectAnnotations=e}var uJ="ComposedStory",cJ="Unnamed Story";function dJ(e){return e?Dn([e]):{}}function pJ(e){let t=Array.isArray(e)?e:[e];return globalThis.globalProjectAnnotations=Dn([...P_(),globalThis.defaultProjectAnnotations??{},Dn(t.map(dJ))]),globalThis.globalProjectAnnotations??{}}var Ar=[];function V_(e,t,r,n,o){if(e===void 0)throw new Error("Expected a story but received undefined.");t.title=t.title??uJ;let i=_u(t),a=o||e.storyName||e.story?.name||e.name||cJ,s=Mo(a,e,i),c=xa(Dn([n??globalThis.globalProjectAnnotations??{},r??{}])),u=Nd(s,i,c),d={...N_(c.globalTypes),...c.initialGlobals,...u.storyGlobals},p=new Md,f=()=>{let b=L_({hooks:new sc,globals:d,args:{...u.initialArgs},viewMode:"story",reporting:p,loaded:{},abortSignal:new AbortController().signal,step:(w,P)=>u.runStep(w,P,b),canvasElement:null,canvas:{},userEvent:{},globalTypes:c.globalTypes,...u,context:null,mount:null});return b.parameters.__isPortableStory=!0,b.context=b,u.renderToCanvas&&(b.renderToCanvas=async()=>{let w=await u.renderToCanvas?.({componentId:u.componentId,title:u.title,id:u.id,name:u.name,tags:u.tags,showMain:()=>{},showError:P=>{throw new Error(`${P.title}
890
+ ${P.description}`)},showException:P=>{throw P},forceRemount:!0,storyContext:b,storyFn:()=>u.unboundStoryFn(b),unboundStoryFn:u.unboundStoryFn},b.canvasElement);w&&Ar.push(w)}),b.mount=u.mount(b),b},h,y=async b=>{let w=f();return w.canvasElement??=globalThis?.document?.body,h&&(w.loaded=h.loaded),Object.assign(w,b),u.playFunction(w)},g=b=>{let w=f();return Object.assign(w,b),yJ(u,w)},E=u.playFunction?y:void 0;return Object.assign(function(b){let w=f();return h&&(w.loaded=h.loaded),w.args={...w.initialArgs,...b},u.unboundStoryFn(w)},{id:u.id,storyName:a,load:async()=>{for(let w of[...Ar].reverse())await w();Ar.length=0;let b=f();b.loaded=await u.applyLoaders(b),Ar.push(...(await u.applyBeforeEach(b)).filter(Boolean)),h=b},globals:d,args:u.initialArgs,parameters:u.parameters,argTypes:u.argTypes,play:E,run:g,reporting:p,tags:u.tags})}var fJ=(e,t,r,n)=>V_(e,t,r,{},n);function hJ(e,t,r=fJ){let{default:n,__esModule:o,__namedExportsOrder:i,...a}=e,s=n;return Object.entries(a).reduce((c,[u,d])=>{let{story:p,meta:f}=J_(d);return!s&&f&&(s=f),Eu(u,s)?Object.assign(c,{[u]:r(p,s,t,u)}):c},{})}function mJ(e){return e.extend({mount:async({mount:t,page:r},n)=>{await n(async(o,...i)=>{if(!("__pw_type"in o)||"__pw_type"in o&&o.__pw_type!=="jsx")throw new Error(Ee`
891
+ Portable stories in Playwright CT only work when referencing JSX elements.
892
+ Please use JSX format for your components such as:
893
+
894
+ instead of:
895
+ await mount(MyComponent, { props: { foo: 'bar' } })
896
+
897
+ do:
898
+ await mount(<MyComponent foo="bar"/>)
899
+
900
+ More info: https://storybook.js.org/docs/api/portable-stories/portable-stories-playwright?ref=error
901
+ `);let{props:a,...s}=o;await r.evaluate(async u=>{let d=await globalThis.__pwUnwrapObject?.(u);return("__pw_type"in d?d.type:d)?.load?.()},s);let c=await t(o,...i);return await r.evaluate(async u=>{let d=await globalThis.__pwUnwrapObject?.(u),p="__pw_type"in d?d.type:d,f=document.querySelector("#root");return p?.play?.({canvasElement:f})},s),c})}})}async function yJ(e,t){for(let i of[...Ar].reverse())await i();if(Ar.length=0,!t.canvasElement){let i=document.createElement("div");globalThis?.document?.body?.appendChild(i),t.canvasElement=i,Ar.push(()=>{globalThis?.document?.body?.contains(i)&&globalThis?.document?.body?.removeChild(i)})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;Ar.push(...(await e.applyBeforeEach(t)).filter(Boolean));let r=e.playFunction,n=e.usesMount;if(n||await t.mount(),t.abortSignal.aborted)return;r&&(n||(t.mount=async()=>{throw new ac({playFunction:r.toString()})}),await r(t));let o;F_()?o=jd():await qd(t.abortSignal),await e.applyAfterEach(t),await o?.()}var Xh=1e3,gJ=1e4,H_=class{constructor(e,t,r){this.importFn=t,this.storyIndex=new X5(e),this.projectAnnotations=xa(Dn([...P_(),r]));let{initialGlobals:n,globalTypes:o}=this.projectAnnotations;this.args=new z5,this.userGlobals=new W5({globals:n,globalTypes:o}),this.hooks={},this.cleanupCallbacks={},this.processCSFFileWithCache=(0,ul.default)(Xh)(oJ),this.prepareMetaWithCache=(0,ul.default)(Xh)(M_),this.prepareStoryWithCache=(0,ul.default)(gJ)(Nd)}setProjectAnnotations(e){this.projectAnnotations=xa(e);let{initialGlobals:t,globalTypes:r}=e;this.userGlobals.set({globals:t,globalTypes:r})}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:r}=this.storyIndex.storyIdToEntry(e),n=await this.importFn(t);return this.processCSFFileWithCache(n,t,r)}async loadAllCSFFiles(){let e={};return Object.entries(this.storyIndex.entries).forEach(([t,{importPath:r}])=>{e[r]=t}),(await Promise.all(Object.entries(e).map(async([t,r])=>({importPath:t,csfFile:await this.loadCSFFileByStoryId(r)})))).reduce((t,{importPath:r,csfFile:n})=>(t[r]=n,t),{})}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 r=t.stories[e];if(!r)throw new Zy({storyId:e});let n=t.meta,o=this.prepareStoryWithCache(r,n,t.projectAnnotations??this.projectAnnotations);return this.args.setInitial(o),this.hooks[o.id]=this.hooks[o.id]||new sc,o}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),r=t.type==="docs"?t.storiesImports:[],[n,...o]=await Promise.all([this.importFn(t.importPath),...r.map(i=>{let a=this.storyIndex.importPathToEntry(i);return this.loadCSFFileByStoryId(a.id)})]);return{entryExports:n,csfFiles:o}}getStoryContext(e,{forceInitialArgs:t=!1}={}){let r=this.userGlobals.get(),{initialGlobals:n}=this.userGlobals,o=new Md;return L_({...e,args:t?e.initialArgs:this.args.get(e.id),initialGlobals:n,globalTypes:this.projectAnnotations.globalTypes,userGlobals:r,reporting:o,globals:{...r,...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 r of[...t].reverse())await r();delete this.cleanupCallbacks[e.id]}extract(e={includeDocsOnly:!1}){let{cachedCSFFiles:t}=this;if(console.log("extract: extracting stories",t),!t)throw new zy;let r=Object.entries(this.storyIndex.entries).reduce((n,[o,i])=>{if(i.type==="docs")return n;let a=t[i.importPath],s=this.storyFromCSFFile({storyId:o,csfFile:a});return!e.includeDocsOnly&&s.parameters.docsOnly||(n[o]=Object.entries(s).reduce((c,[u,d])=>u==="story"&&i.subtype==="test"?{...c,story:i.parentName}:u==="moduleExport"||typeof d=="function"?c:Array.isArray(d)?Object.assign(c,{[u]:d.slice().sort()}):Object.assign(c,{[u]:d}),{args:s.initialArgs,globals:{...this.userGlobals.initialGlobals,...this.userGlobals.globals,...s.storyGlobals},storyId:i.parent?i.parent:o})),n},{});return console.log("extract: stories",r),r}};function bJ(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}var vJ=e=>{if(e.length===0)return e;let t=e[e.length-1],r=t?.replace(/(?:[.](?:story|stories))?([.][^.]+)$/i,"");if(e.length===1)return[r];let n=e[e.length-2];return r&&n&&r.toLowerCase()===n.toLowerCase()?[...e.slice(0,-2),r]:r&&(/^(story|stories)([.][^.]+)$/i.test(t)||/^index$/i.test(r))?e.slice(0,-1):[...e.slice(0,-1),r]};function Qh(e){return e.flatMap(t=>t.split("/")).filter(Boolean).join("/")}var G_=(e,t,r)=>{let{directory:n,importPathMatcher:o,titlePrefix:i=""}=t||{};typeof e=="number"&&Ue.warn(Ee`
902
+ CSF Auto-title received a numeric fileName. This typically happens when
903
+ webpack is mis-configured in production mode. To force webpack to produce
904
+ filenames, set optimization.moduleIds = "named" in your webpack config.
905
+ `);let a=bJ(String(e));if(o.exec(a)){if(!r){let s=a.replace(n,""),c=Qh([i,s]).split("/");return c=vJ(c),c.join("/")}return i?Qh([i,r]):r}},EJ=(e,t,r)=>{for(let n=0;n<t.length;n+=1){let o=G_(e,t[n],r);if(o)return o}return r||void 0},Zh=/\s*\/\s*/,wJ=(e={})=>(t,r)=>{if(t.title===r.title&&!e.includeNames)return 0;let n=e.method||"configure",o=e.order||[],i=t.title.trim().split(Zh),a=r.title.trim().split(Zh);e.includeNames&&(i.push(t.name),a.push(r.name));let s=0;for(;i[s]||a[s];){if(!i[s])return-1;if(!a[s])return 1;let c=i[s],u=a[s];if(c!==u){let p=o.indexOf(c),f=o.indexOf(u),h=o.indexOf("*");return p!==-1||f!==-1?(p===-1&&(h!==-1?p=h:p=o.length),f===-1&&(h!==-1?f=h:f=o.length),p-f):n==="configure"?0:c.localeCompare(u,e.locales?e.locales:void 0,{numeric:!0,sensitivity:"accent"})}let d=o.indexOf(c);d===-1&&(d=o.indexOf("*")),o=d!==-1&&Array.isArray(o[d+1])?o[d+1]:[],s+=1}return 0},_J=(e,t,r)=>{if(t){let n;typeof t=="function"?n=t:n=wJ(t),e.sort(n)}else e.sort((n,o)=>r.indexOf(n.importPath)-r.indexOf(o.importPath));return e},TJ=(e,t,r)=>{try{return _J(e,t,r)}catch(n){throw new Error(Ee`
906
+ Error sorting stories with sort parameter ${t}:
907
+
908
+ > ${n.message}
909
+
910
+ Are you using a V6-style sort function in V7 mode?
911
+
912
+ More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#v7-style-story-sort
913
+ `)}},vs=new Error("prepareAborted"),{AbortController:em}=globalThis;function tm(e){try{let{name:t="Error",message:r=String(e),stack:n}=e;return{name:t,message:r,stack:n}}catch{return{name:"Error",message:String(e)}}}var Su=class{constructor(e,t,r,n,o,i,a={autoplay:!0,forceInitialArgs:!1},s){this.channel=e,this.store=t,this.renderToScreen=r,this.callbacks=n,this.id=o,this.viewMode=i,this.renderOptions=a,this.type="story",this.notYetRendered=!0,this.rerenderEnqueued=!1,this.disableKeyListeners=!1,this.teardownRender=()=>{},this.torndown=!1,this.abortController=new em,this.renderId=Date.now(),s&&(this.story=s,this.phase="preparing")}async runPhase(e,t,r){this.phase=t,this.channel.emit(Zr,{newPhase:this.phase,renderId:this.renderId,storyId:this.id}),r&&(await r(),this.checkIfAborted(e))}checkIfAborted(e){return e.aborted&&!["finished","aborted","errored"].includes(this.phase)&&(this.phase="aborted",this.channel.emit(Zr,{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),vs}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 new 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:r}=this;if(!this.story)throw new Error("cannot render when not prepared");let n=this.story;if(!r)throw new Error("cannot render when canvasElement is unset");let{id:o,componentId:i,title:a,name:s,tags:c,applyLoaders:u,applyBeforeEach:d,applyAfterEach:p,unboundStoryFn:f,playFunction:h,runStep:y}=n;t&&!e&&(this.cancelRender(),this.abortController=new em);let g=this.abortController.signal,E=!1,b=n.usesMount;try{let w={...this.storyContext(),viewMode:this.viewMode,abortSignal:g,canvasElement:r,loaded:{},step:(U,I)=>y(U,I,w),context:null,canvas:{},userEvent:{},renderToCanvas:async()=>{let U=await this.renderToScreen(P,r);this.teardownRender=U||(()=>{}),E=!0},mount:async(...U)=>{this.callbacks.showStoryDuringRender?.();let I=null;return await this.runPhase(g,"rendering",async()=>{I=await n.mount(w)(...U)}),b&&await this.runPhase(g,"playing"),I}};w.context=w;let P={componentId:i,title:a,kind:a,id:o,name:s,story:s,tags:c,...this.callbacks,showError:U=>(this.phase="errored",this.callbacks.showError(U)),showException:U=>(this.phase="errored",this.callbacks.showException(U)),forceRemount:t||this.notYetRendered,storyContext:w,storyFn:()=>f(w),unboundStoryFn:f};if(await this.runPhase(g,"loading",async()=>{w.loaded=await u(w)}),g.aborted)return;let x=await d(w);if(this.store.addCleanupCallbacks(n,...x),this.checkIfAborted(g)||(!E&&!b&&await w.mount(),this.notYetRendered=!1,g.aborted))return;let C=this.story.parameters?.test?.dangerouslyIgnoreUnhandledErrors===!0,S=new Set,_=U=>{U.error&&S.add(U.error)},T=U=>{U.reason&&S.add(U.reason)};if(this.renderOptions.autoplay&&t&&h&&this.phase!=="errored"){window?.addEventListener?.("error",_),window?.addEventListener?.("unhandledrejection",T),this.disableKeyListeners=!0;try{if(b?await h(w):(w.mount=async()=>{throw new ac({playFunction:h.toString()})},await this.runPhase(g,"playing",async()=>h(w))),!E)throw new rg;this.checkIfAborted(g),!C&&S.size>0?await this.runPhase(g,"errored"):await this.runPhase(g,"played")}catch(U){if(this.callbacks.showStoryDuringRender?.(),await this.runPhase(g,"errored",async()=>{this.channel.emit(Wm,tm(U))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw U;console.error(U)}if(!C&&S.size>0&&this.channel.emit(Km,Array.from(S).map(tm)),this.disableKeyListeners=!1,window?.removeEventListener?.("unhandledrejection",T),window?.removeEventListener?.("error",_),g.aborted)return}await this.runPhase(g,"completing",async()=>{F_()?this.store.addCleanupCallbacks(n,jd()):await qd(g)}),await this.runPhase(g,"completed",async()=>{this.channel.emit(ia,o)}),this.phase!=="errored"&&await this.runPhase(g,"afterEach",async()=>{await p(w)});let A=!C&&S.size>0,D=w.reporting.reports.some(U=>U.status==="failed"),k=A||D;await this.runPhase(g,"finished",async()=>this.channel.emit(wl,{storyId:o,status:k?"error":"success",reporters:w.reporting.reports}))}catch(w){this.phase="errored",this.callbacks.showException(w),await this.runPhase(g,"finished",async()=>this.channel.emit(wl,{storyId:o,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(t=>setTimeout(t,0))}window?.location?.reload?.(),await new Promise(()=>{})}},{fetch:SJ}=ee,AJ="./index.json",z_=class{constructor(e,t,r=Ot.getChannel(),n=!0){this.importFn=e,this.getProjectAnnotations=t,this.channel=r,this.storyRenders=[],this.storeInitializationPromise=new Promise((o,i)=>{this.resolveStoreInitializationPromise=o,this.rejectStoreInitializationPromise=i}),n&&this.initialize()}get storyStore(){return new Proxy({},{get:(e,t)=>{if(this.storyStoreValue)return Wu("Accessing the Story Store is deprecated and will be removed in 9.0"),this.storyStoreValue[t];throw new eg}})}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(Xm,{userAgent:t})}catch(e){this.rejectStoreInitializationPromise(e)}}ready(){return this.storeInitializationPromise}setupListeners(){this.channel.on(ny,this.onStoryIndexChanged.bind(this)),this.channel.on(Gu,this.onUpdateGlobals.bind(this)),this.channel.on(zu,this.onUpdateArgs.bind(this)),this.channel.on(dy,this.onRequestArgTypesInfo.bind(this)),this.channel.on(Vu,this.onResetArgs.bind(this)),this.channel.on(Ju,this.onForceReRender.bind(this)),this.channel.on(oa,this.onForceRemount.bind(this)),this.channel.on(ly,this.onStoryHotUpdated.bind(this))}async getProjectAnnotationsOrRenderError(){try{let e=await this.getProjectAnnotations();if(this.renderToCanvas=e.renderToCanvas,!this.renderToCanvas)throw new Wy;return e}catch(e){throw this.renderPreviewEntryError("Error reading preview.js:",e),e}}async initializeWithProjectAnnotations(e){this.projectAnnotationsBeforeInitialization=e;try{let t=await this.getStoryIndexFromServer();return this.initializeWithStoryIndex(t)}catch(t){throw this.renderPreviewEntryError("Error loading story index:",t),t}}async runBeforeAllHook(e){try{await this.beforeAllCleanup?.(),this.beforeAllCleanup=await e.beforeAll?.()}catch(t){throw this.renderPreviewEntryError("Error in beforeAll hook:",t),t}}async getStoryIndexFromServer(){let e=await SJ(AJ);if(e.status===200)return e.json();throw new Ky({text:await e.text()})}initializeWithStoryIndex(e){if(!this.projectAnnotationsBeforeInitialization)throw new Error("Cannot call initializeWithStoryIndex until project annotations resolve");this.storyStoreValue=new H_(e,this.importFn,this.projectAnnotationsBeforeInitialization),delete this.projectAnnotationsBeforeInitialization,this.setInitialGlobals(),this.resolveStoreInitializationPromise()}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStoreValue)throw new yt({methodName:"emitGlobals"});let e={globals:this.storyStoreValue.userGlobals.get()||{},globalTypes:this.storyStoreValue.projectAnnotations.globalTypes||{}};this.channel.emit(Zm,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 yt({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 yt({methodName:"onUpdateGlobals"});if(this.storyStoreValue.userGlobals.update(e),t){let{initialGlobals:r,storyGlobals:n,userGlobals:o,globals:i}=this.storyStoreValue.getStoryContext(t);this.channel.emit($o,{initialGlobals:r,userGlobals:o,storyGlobals:n,globals:i})}else{let{initialGlobals:r,globals:n}=this.storyStoreValue.userGlobals;this.channel.emit($o,{initialGlobals:r,userGlobals:n,storyGlobals:{},globals:n})}await Promise.all(this.storyRenders.map(r=>r.rerender()))}async onUpdateArgs({storyId:e,updatedArgs:t}){if(!this.storyStoreValue)throw new yt({methodName:"onUpdateArgs"});this.storyStoreValue.args.update(e,t),await Promise.all(this.storyRenders.filter(r=>r.id===e&&!r.renderOptions.forceInitialArgs).map(r=>r.story&&r.story.usesMount?r.remount():r.rerender())),this.channel.emit(ey,{storyId:e,args:this.storyStoreValue.args.get(e)})}async onRequestArgTypesInfo({id:e,payload:t}){try{await this.storeInitializationPromise;let r=await this.storyStoreValue?.loadStory(t);this.channel.emit(_l,{id:e,success:!0,payload:{argTypes:r?.argTypes||{}},error:null})}catch(r){this.channel.emit(_l,{id:e,success:!1,error:r?.message})}}async onResetArgs({storyId:e,argNames:t}){if(!this.storyStoreValue)throw new yt({methodName:"onResetArgs"});let r=this.storyRenders.find(o=>o.id===e)?.story||await this.storyStoreValue.loadStory({storyId:e}),n=(t||[...new Set([...Object.keys(r.initialArgs),...Object.keys(this.storyStoreValue.args.get(e))])]).reduce((o,i)=>(o[i]=r.initialArgs[i],o),{});await this.onUpdateArgs({storyId:e,updatedArgs:n})}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(t=>t.remount()))}async onStoryHotUpdated(){await Promise.all(this.storyRenders.map(e=>e.cancelPlayFunction()))}renderStoryToElement(e,t,r,n){if(!this.renderToCanvas||!this.storyStoreValue)throw new yt({methodName:"renderStoryToElement"});let o=new Su(this.channel,this.storyStoreValue,this.renderToCanvas,r,e.id,"docs",n,e);return o.renderToElement(t),this.storyRenders.push(o),async()=>{await this.teardownRender(o)}}async teardownRender(e,{viewModeChanged:t}={}){this.storyRenders=this.storyRenders.filter(r=>r!==e),await e?.teardown?.({viewModeChanged:t})}async loadStory({storyId:e}){if(!this.storyStoreValue)throw new yt({methodName:"loadStory"});return this.storyStoreValue.loadStory({storyId:e})}getStoryContext(e,{forceInitialArgs:t=!1}={}){if(!this.storyStoreValue)throw new yt({methodName:"getStoryContext"});return this.storyStoreValue.getStoryContext(e,{forceInitialArgs:t})}async extract(e){if(!this.storyStoreValue)throw new yt({methodName:"extract"});if(this.previewEntryError)throw this.previewEntryError;return await this.storyStoreValue.cacheAllCSFFiles(),this.storyStoreValue.extract(e)}renderPreviewEntryError(e,t){this.previewEntryError=t,Ie.error(e),Ie.error(t),this.channel.emit(Gm,t)}},kd=class{constructor(e,t,r,n){this.channel=e,this.store=t,this.renderStoryToElement=r,this.storyIdByName=o=>{let i=this.nameToStoryId.get(o);if(i)return i;throw new Error(`No story found with that name: ${o}`)},this.componentStories=()=>this.componentStoriesValue,this.componentStoriesFromCSFFile=o=>this.store.componentStoriesFromCSFFile({csfFile:o}),this.storyById=o=>{if(!o){if(!this.primaryStory)throw new Error("No primary story defined for docs entry. Did you forget to use `<Meta>`?");return this.primaryStory}let i=this.storyIdToCSFFile.get(o);if(!i)throw new Error(`Called \`storyById\` for story that was never loaded: ${o}`);return this.store.storyFromCSFFile({storyId:o,csfFile:i})},this.getStoryContext=o=>({...this.store.getStoryContext(o),loaded:{},viewMode:"docs"}),this.loadStory=o=>this.store.loadStory({storyId:o}),this.componentStoriesValue=[],this.storyIdToCSFFile=new Map,this.exportToStory=new Map,this.exportsToCSFFile=new Map,this.nameToStoryId=new Map,this.attachedCSFFiles=new Set,n.forEach((o,i)=>{this.referenceCSFFile(o)})}referenceCSFFile(e){this.exportsToCSFFile.set(e.moduleExports,e),this.exportsToCSFFile.set(e.moduleExports.default,e),this.store.componentStoriesFromCSFFile({csfFile:e}).forEach(t=>{let r=e.stories[t.id];this.storyIdToCSFFile.set(r.id,e),this.exportToStory.set(r.moduleExport,t)})}attachCSFFile(e){if(!this.exportsToCSFFile.has(e.moduleExports))throw new 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(t=>{this.nameToStoryId.set(t.name,t.id),this.componentStoriesValue.push(t),this.primaryStory||(this.primaryStory=t)}))}referenceMeta(e,t){let r=this.resolveModuleExport(e);if(r.type!=="meta")throw new 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(r.csfFile)}get projectAnnotations(){let{projectAnnotations:e}=this.store;if(!e)throw new Error("Can't get projectAnnotations from DocsContext before they are initialized");return e}resolveAttachedModuleExportType(e){if(e==="story"){if(!this.primaryStory)throw new 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 new 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:r}=t.meta;if(!r)throw new Error("Attached CSF file does not defined a component, did you forget to export one?");return{type:"component",component:r}}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 r=this.exportToStory.get(Ra(e)?e.input:e);return r?{type:"story",story:r}:{type:"component",component:e}}resolveOf(e,t=[]){let r;if(["component","meta","story"].includes(e)){let n=e;r=this.resolveAttachedModuleExportType(n)}else r=this.resolveModuleExport(e);if(t.length&&!t.includes(r.type)){let n=r.type==="component"?"component or unknown":r.type;throw new Error(Ee`Invalid value passed to the 'of' prop. The value was resolved to a '${n}' type but the only types for this block are: ${t.join(", ")}.
914
+ - Did you pass a component to the 'of' prop when the block only supports a story or a meta?
915
+ - ... or vice versa?
916
+ - 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(r.type){case"component":return{...r,projectAnnotations:this.projectAnnotations};case"meta":return{...r,preparedMeta:this.store.preparedMetaFromCSFFile({csfFile:r.csfFile})};case"story":default:return r}}},rm=class{constructor(e,t,r,n){this.channel=e,this.store=t,this.entry=r,this.callbacks=n,this.type="docs",this.subtype="csf",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=r.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 vs;let{importPath:r,title:n}=this.entry,o=this.store.processCSFFileWithCache(e,r,n),i=Object.keys(o.stories)[0];this.story=this.store.storyFromCSFFile({storyId:i,csfFile:o}),this.csfFiles=[o,...t],this.preparing=!1}isEqual(e){return!!(this.id===e.id&&this.story&&this.story===e.story)}docsContext(e){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");let t=new kd(this.channel,this.store,e,this.csfFiles);return this.csfFiles.forEach(r=>t.attachCSFFile(r)),t}async renderToElement(e,t){if(!this.story||!this.csfFiles)throw new Error("Cannot render docs before preparing");let r=this.docsContext(t),{docs:n}=this.story.parameters||{};if(!n)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let o=await n.renderer(),{render:i}=o,a=async()=>{try{await i(r,n,e),this.channel.emit(Uu,this.id)}catch(s){this.callbacks.showException(s)}};return this.rerender=async()=>a(),this.teardownRender=async({viewModeChanged:s})=>{!s||!e||o.unmount(e)},a()}async teardown({viewModeChanged:e}={}){this.teardownRender?.({viewModeChanged:e}),this.torndown=!0}},nm=class{constructor(e,t,r,n){this.channel=e,this.store=t,this.entry=r,this.callbacks=n,this.type="docs",this.subtype="mdx",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=r.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 vs;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 new Error("Cannot render docs before preparing");return new kd(this.channel,this.store,e,this.csfFiles)}async renderToElement(e,t){if(!this.exports||!this.csfFiles||!this.store.projectAnnotations)throw new Error("Cannot render docs before preparing");let r=this.docsContext(t),{docs:n}=this.store.projectAnnotations.parameters??{};if(!n)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let o={...n,page:this.exports.default},i=await n.renderer(),{render:a}=i,s=async()=>{try{await a(r,o,e),this.channel.emit(Uu,this.id)}catch(c){this.callbacks.showException(c)}};return this.rerender=async()=>s(),this.teardownRender=async({viewModeChanged:c}={})=>{!c||!e||(i.unmount(e),this.torndown=!0)},s()}async teardown({viewModeChanged:e}={}){this.teardownRender?.({viewModeChanged:e}),this.torndown=!0}},RJ=globalThis;function OJ(e){let t=e.composedPath&&e.composedPath()[0]||e.target;return/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null}function PJ({tags:e}){return e?.includes(Zt.UNATTACHED_MDX)||e?.includes(Zt.ATTACHED_MDX)}function cl(e){return e.type==="story"}function xJ(e){return e.type==="docs"}function CJ(e){return xJ(e)&&e.subtype==="csf"}var W_=class extends z_{constructor(e,t,r,n){super(e,t,void 0,!1),this.importFn=e,this.getProjectAnnotations=t,this.selectionStore=r,this.view=n,this.initialize()}setupListeners(){super.setupListeners(),RJ.onkeydown=this.onKeydown.bind(this),this.channel.on(Hu,this.onSetCurrentStory.bind(this)),this.channel.on(uy,this.onUpdateQueryParams.bind(this)),this.channel.on(Ym,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStoreValue)throw new yt({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 yt({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,r=this.storyStoreValue.storyIndex.entryFromSpecifier(e);if(!r){e==="*"?this.renderStoryLoadingException(e,new Xy):this.renderStoryLoadingException(e,new Qy({storySpecifier:e.toString()}));return}let{id:n,type:o}=r;this.selectionStore.setSelection({storyId:n,viewMode:o}),this.channel.emit(iy,this.selectionStore.selection),this.channel.emit(vl,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(t=>t.disableKeyListeners)&&!OJ(e)){let{altKey:t,ctrlKey:r,metaKey:n,shiftKey:o,key:i,code:a,keyCode:s}=e;this.channel.emit(Qm,{event:{altKey:t,ctrlKey:r,metaKey:n,shiftKey:o,key:i,code:a,keyCode:s}})}}async onSetCurrentStory(e){this.selectionStore.setSelection({viewMode:"story",...e}),await this.storeInitializationPromise,this.channel.emit(vl,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(e){this.selectionStore.setQueryParams(e)}async onUpdateGlobals({globals:e}){let t=this.currentRender instanceof Su&&this.currentRender.story||void 0;super.onUpdateGlobals({globals:e,currentStory:t}),(this.currentRender instanceof nm||this.currentRender instanceof rm)&&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(t=>this.storyStoreValue?.loadEntry(t)))}async renderSelection({persistedArgs:e}={}){let{renderToCanvas:t}=this;if(!this.storyStoreValue||!t)throw new yt({methodName:"renderSelection"});let{selection:r}=this.selectionStore;if(!r)throw new Error("Cannot call renderSelection as no selection was made");let{storyId:n}=r,o;try{o=await this.storyStoreValue.storyIdToEntry(n)}catch(p){this.currentRender&&await this.teardownRender(this.currentRender),this.renderStoryLoadingException(n,p);return}let i=this.currentSelection?.storyId!==n,a=this.currentRender?.type!==o.type;o.type==="story"?this.view.showPreparingStory({immediate:a}):this.view.showPreparingDocs({immediate:a}),this.currentRender?.isPreparing()&&await this.teardownRender(this.currentRender);let s;o.type==="story"?s=new Su(this.channel,this.storyStoreValue,t,this.mainStoryCallbacks(n),n,"story"):PJ(o)?s=new nm(this.channel,this.storyStoreValue,o,this.mainStoryCallbacks(n)):s=new rm(this.channel,this.storyStoreValue,o,this.mainStoryCallbacks(n));let c=this.currentSelection;this.currentSelection=r;let u=this.currentRender;this.currentRender=s;try{await s.prepare()}catch(p){u&&await this.teardownRender(u),p!==vs&&this.renderStoryLoadingException(n,p);return}let d=!i&&u&&!s.isEqual(u);if(e&&cl(s)&&(ir(!!s.story),this.storyStoreValue.args.updateFromPersisted(s.story,e)),u&&!u.torndown&&!i&&!d&&!a){this.currentRender=u,this.channel.emit(sy,n),this.view.showMain();return}if(u&&await this.teardownRender(u,{viewModeChanged:a}),c&&(i||a)&&this.channel.emit(ty,n),cl(s)){ir(!!s.story);let{parameters:p,initialArgs:f,argTypes:h,unmappedArgs:y,initialGlobals:g,userGlobals:E,storyGlobals:b,globals:w}=this.storyStoreValue.getStoryContext(s.story);this.channel.emit(oy,{id:n,parameters:p,initialArgs:f,argTypes:h,args:y}),this.channel.emit($o,{userGlobals:E,storyGlobals:b,globals:w,initialGlobals:g})}else{let{parameters:p}=this.storyStoreValue.projectAnnotations,{initialGlobals:f,globals:h}=this.storyStoreValue.userGlobals;if(this.channel.emit($o,{globals:h,initialGlobals:f,storyGlobals:{},userGlobals:h}),CJ(s)||s.entry.tags?.includes(Zt.ATTACHED_MDX)){if(!s.csfFiles)throw new Yy({storyId:n});({parameters:p}=this.storyStoreValue.preparedMetaFromCSFFile({csfFile:s.csfFiles[0]}))}this.channel.emit(zm,{id:n,parameters:p})}cl(s)?(ir(!!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(r=>r!==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(El)}renderStoryLoadingException(e,t){Ie.error(t),this.view.showErrorDisplay(t),this.channel.emit(El,e)}renderException(e,t){let{name:r="Error",message:n=String(t),stack:o}=t,i=this.currentRender?.renderId;this.channel.emit(ay,{name:r,message:n,stack:o}),this.channel.emit(Zr,{newPhase:"errored",renderId:i,storyId:e}),this.view.showErrorDisplay(t),Ie.error(`Error rendering story '${e}':`),Ie.error(t)}renderError(e,{title:t,description:r}){let n=this.currentRender?.renderId;this.channel.emit(ry,{title:t,description:r}),this.channel.emit(Zr,{newPhase:"errored",renderId:n,storyId:e}),this.view.showErrorDisplay({message:t,stack:r}),Ie.error(`Error rendering story ${t}: ${r}`)}},Au=Je($u(),1),NJ=Je($u(),1),om=/^[a-zA-Z0-9 _-]*$/,K_=/^-?[0-9]+(\.[0-9]+)?$/,IJ=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,Y_=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,Ru=(e="",t)=>e===null||e===""||!om.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?om.test(t)||K_.test(t)||IJ.test(t)||Y_.test(t):Array.isArray(t)?t.every(r=>Ru(e,r)):Ht(t)?Object.entries(t).every(([r,n])=>Ru(r,n)):!1,jJ={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(Y_);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 K_.test(e)?Number(e):e}},im=e=>{let t=e.split(";").map(r=>r.replace("=","~").replace(":","="));return Object.entries((0,NJ.parse)(t.join(";"),jJ)).reduce((r,[n,o])=>Ru(n,o)?Object.assign(r,{[n]:o}):(Ue.warn(Ee`
917
+ Omitted potentially unsafe URL args.
918
+
919
+ More info: https://storybook.js.org/docs/writing-stories/args?ref=error#setting-args-through-the-url
920
+ `),r),{})},{history:X_,document:Cr}=ee;function qJ(e){let t=(e||"").match(/^\/story\/(.+)/);if(!t)throw new Error(`Invalid path '${e}', must start with '/story/'`);return t[1]}var Q_=({selection:e,extraParams:t})=>{let r=Cr?.location.search.slice(1),{path:n,selectedKind:o,selectedStory:i,...a}=(0,Au.parse)(r);return`?${(0,Au.stringify)({...a,...t,...e&&{id:e.storyId,viewMode:e.viewMode}})}`},MJ=e=>{if(!e)return;let t=Q_({selection:e}),{hash:r=""}=Cr.location;Cr.title=e.storyId,X_.replaceState({},"",`${Cr.location.pathname}${t}${r}`)},kJ=e=>e!=null&&typeof e=="object"&&Array.isArray(e)===!1,ko=e=>{if(e!==void 0){if(typeof e=="string")return e;if(Array.isArray(e))return ko(e[0]);if(kJ(e))return ko(Object.values(e).filter(Boolean))}},LJ=()=>{if(typeof Cr<"u"){let e=Cr.location.search.slice(1),t=(0,Au.parse)(e),r=typeof t.args=="string"?im(t.args):void 0,n=typeof t.globals=="string"?im(t.globals):void 0,o=ko(t.viewMode);if(typeof o!="string"||!o)o="story";else if(!o.match(/docs|story/))return null;let i=ko(t.path),a=i?qJ(i):ko(t.id);if(a)return{storySpecifier:a,args:r,globals:n,viewMode:o}}return null},Z_=class{constructor(){this.selectionSpecifier=LJ()}setSelection(e){this.selection=e,MJ(this.selection)}setQueryParams(e){let t=Q_({extraParams:e}),{hash:r=""}=Cr.location;X_.replaceState({},"",`${Cr.location.pathname}${t}${r}`)}},DJ=Je(_O(),1),$J=Je($u(),1),{document:nt}=ee,am=100,eT=(e=>(e.MAIN="MAIN",e.NOPREVIEW="NOPREVIEW",e.PREPARING_STORY="PREPARING_STORY",e.PREPARING_DOCS="PREPARING_DOCS",e.ERROR="ERROR",e))(eT||{}),dl={PREPARING_STORY:"sb-show-preparing-story",PREPARING_DOCS:"sb-show-preparing-docs",MAIN:"sb-show-main",NOPREVIEW:"sb-show-nopreview",ERROR:"sb-show-errordisplay"},pl={centered:"sb-main-centered",fullscreen:"sb-main-fullscreen",padded:"sb-main-padded"},sm=new DJ.default({escapeXML:!0}),tT=class{constructor(){if(this.testing=!1,typeof nt<"u"){let{__SPECIAL_TEST_PARAMETER__:e}=(0,$J.parse)(nt.location.search.slice(1));switch(e){case"preparing-story":{this.showPreparingStory(),this.testing=!0;break}case"preparing-docs":{this.showPreparingDocs(),this.testing=!0;break}}}}prepareForStory(e){return this.showStory(),this.applyLayout(e.parameters.layout),nt.documentElement.scrollTop=0,nt.documentElement.scrollLeft=0,this.storyRoot()}storyRoot(){return nt.getElementById("storybook-root")}prepareForDocs(){return this.showMain(),this.showDocs(),this.applyLayout("fullscreen"),nt.documentElement.scrollTop=0,nt.documentElement.scrollLeft=0,this.docsRoot()}docsRoot(){return nt.getElementById("storybook-docs")}applyLayout(e="padded"){if(e==="none"){nt.body.classList.remove(this.currentLayoutClass),this.currentLayoutClass=null;return}this.checkIfLayoutExists(e);let t=pl[e];nt.body.classList.remove(this.currentLayoutClass),nt.body.classList.add(t),this.currentLayoutClass=t}checkIfLayoutExists(e){pl[e]||Ie.warn(Ee`
921
+ The desired layout: ${e} is not a valid option.
922
+ The possible options are: ${Object.keys(pl).join(", ")}, none.
923
+ `)}showMode(e){clearTimeout(this.preparingTimeout),Object.keys(eT).forEach(t=>{t===e?nt.body.classList.add(dl[t]):nt.body.classList.remove(dl[t])})}showErrorDisplay({message:e="",stack:t=""}){let r=e,n=t,o=e.split(`
924
+ `);o.length>1&&([r]=o,n=o.slice(1).join(`
925
+ `).replace(/^\n/,"")),nt.getElementById("error-message").innerHTML=sm.toHtml(r),nt.getElementById("error-stack").innerHTML=sm.toHtml(n),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"),am)}showPreparingDocs({immediate:e=!1}={}){clearTimeout(this.preparingTimeout),e?this.showMode("PREPARING_DOCS"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_DOCS"),am)}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(){nt.body.classList.add(dl.MAIN)}},BJ=class extends W_{constructor(t,r){super(t,r,new Z_,new tT),this.importFn=t,this.getProjectAnnotations=r,ee.__STORYBOOK_PREVIEW__=this}},{document:Qr}=ee,FJ=["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"],UJ="script",lm="scripts-root";function Ou(){let e=Qr.createEvent("Event");e.initEvent("DOMContentLoaded",!0,!0),Qr.dispatchEvent(e)}function JJ(e,t,r){let n=Qr.createElement("script");n.type=e.type==="module"?"module":"text/javascript",e.src?(n.onload=t,n.onerror=t,n.src=e.src):n.textContent=e.innerText,r?r.appendChild(n):Qr.head.appendChild(n),e.parentNode.removeChild(e),e.src||t()}function rT(e,t,r=0){e[r](()=>{r++,r===e.length?t():rT(e,t,r)})}function VJ(e){let t=Qr.getElementById(lm);t?t.innerHTML="":(t=Qr.createElement("div"),t.id=lm,Qr.body.appendChild(t));let r=Array.from(e.querySelectorAll(UJ));if(r.length){let n=[];r.forEach(o=>{let i=o.getAttribute("type");(!i||FJ.includes(i))&&n.push(a=>JJ(o,a,t))}),n.length&&rT(n,Ou,void 0)}else Ou()}var fl;(function(e){e.start="/**",e.nostart="/***",e.delim="*",e.end="*/"})(fl=fl||(fl={}));var HJ=Je(TO(),1),pn=(0,HJ.stringifyRules)(),GJ=pn.JsdocTypeObject;pn.JsdocTypeAny=()=>"any";pn.JsdocTypeObject=(e,t)=>`(${GJ(e,t)})`;pn.JsdocTypeOptional=(e,t)=>t(e.element);pn.JsdocTypeNullable=(e,t)=>t(e.element);pn.JsdocTypeNotNullable=(e,t)=>t(e.element);pn.JsdocTypeUnion=(e,t)=>e.elements.map(t).join("|");var zJ="storybook/docs",WJ=`${zJ}/snippet-rendered`;async function KJ(e,t){let r=t.parameters?.docs?.source?.transform,{id:n,unmappedArgs:o}=t,i=r&&e?r?.(e,t):e,a=i?await i:void 0;Ot.getChannel().emit(WJ,{id:n,source:a,args:o})}var ii={depth:10,clearOnStoryChange:!0,limit:50},YJ=(e={})=>{Object.assign(ii,e)},nT=(e,t)=>{let r=Object.getPrototypeOf(e);return!r||t(r)?r:nT(r,t)},XJ=e=>!!(typeof e=="object"&&e&&nT(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),QJ=e=>{if(XJ(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let r=Object.getOwnPropertyDescriptor(t,"view"),n=r?.value;return typeof n=="object"&&n?.constructor.name==="Window"&&Object.defineProperty(t,"view",{...r,value:Object.create(n.constructor.prototype)}),t}return e};function Ti(e,t={}){let r={...ii,...t},n=function(...o){if(t.implicit){let p=("__STORYBOOK_PREVIEW__"in ee?ee.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(f=>f.phase==="playing"||f.phase==="rendering");if(p){let f=!globalThis?.FEATURES?.disallowImplicitActionsInRenderV8,h=new Gy({phase:p.phase,name:e,deprecated:f});if(f)console.warn(h);else throw h}}let i=Ot.getChannel(),a=Date.now().toString(36)+Math.random().toString(36).substring(2),s=5,c=o.map(QJ),u=o.length>1?c:c[0],d={id:a,count:0,data:{name:e,args:u},options:{...r,maxDepth:s+(r.depth||3)}};i.emit(pg,d)};return n.isAction=!0,n.implicit=t.implicit,n}var ZJ=(...e)=>{let t=ii,r=e;r.length===1&&Array.isArray(r[0])&&([r]=r),r.length!==1&&typeof r[r.length-1]!="string"&&(t={...ii,...r.pop()});let n=r[0];(r.length!==1||typeof n=="string")&&(n={},r.forEach(i=>{n[i]=i}));let o={};return Object.keys(n).forEach(i=>{o[i]=Ti(n[i],t)}),o},eV={"@storybook/global":fy,"storybook/test":Tg,"storybook/actions":dg,"storybook/preview-api":Sl,"storybook/internal/channels":my,"storybook/internal/client-logger":yy,"storybook/internal/core-events":Bu,"storybook/internal/types":ng,"storybook/internal/preview-errors":Uy,"storybook/internal/preview-api":Sl};async function tV(){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(),r=e.searchParams.get("id");if(!r){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}rV(t,r)}var rV=async(e,t)=>{let r={entries:{}};for(let s of Object.values(e.entries)){let c=s.title.split("/"),u=r;for(let d of c)u.entries||(u.entries={}),u.entries[d]?t===s.id&&(u.entries[d].isActive=!0):u.entries[d]={title:d,isActive:t===s.id,entries:{}},u=u.entries[d];u.entries||(u.entries={}),u.entries[s.name]={id:s.id,name:s.name,href:`?id=${s.id}&viewMode=${s.type}&navigator=true`,isActive:t===s.id}}let n=s=>{if("entries"in s&&"title"in s){let u=s;return`
926
+ <li class="sb-navigator-branch">
927
+ <details${u.isActive?" open":""}>
928
+ <summary class="sb-navigator-title">
929
+ ${u.title}
930
+ </summary>
931
+ <ul class="sb-navigator-entries" aria-label="${u.title}">
932
+ ${Object.values(u.entries).map(n).join("")}
933
+ </ul>
934
+ </details>
935
+ </li>
936
+ `}let c=s;return`
937
+ <li class="sb-navigator-story-item">
938
+ <a href="${c.href}"
939
+ class="sb-navigator-story-link${c.isActive?" active":""}"
940
+ aria-current="${c.isActive?"location":"false"}">${c.name}</a>
941
+ </li>
942
+ `},o=Object.values(r.entries).map(n).join(""),i=document.createElement("nav");i.id="sb-navigator-container",i.setAttribute("role","navigation"),i.setAttribute("aria-label","Story navigation"),i.innerHTML=`
943
+ <ul class="sb-navigator-list">${o}</ul>
944
+ `,document.body.insertBefore(i,document.body.firstChild);let a=document.createElement("style");a.id="sb-navigator-style",a.textContent=`
945
+ body {
946
+ display: grid !important;
947
+ grid-template-columns: 300px 1fr;
948
+ font-family: 'Nunito', sans-serif;
949
+ height: 100vh;
950
+ margin: 0;
951
+
952
+ --text-color: rgb(46, 52, 56);
953
+ --bg-color: rgb(246, 249, 252);
954
+
955
+ @media (prefers-color-scheme: dark) {
956
+ --text-color: rgb(201, 205, 207);
957
+ --bg-color: rgb(34, 36, 37);
958
+ }
959
+ }
960
+ #storybook-root, #storybook-docs {
961
+ overflow-y: auto;
962
+ max-height: 100vh;
963
+ max-width: 100%;
964
+ }
965
+ #sb-navigator-container, #sb-navigator-container * {
966
+ box-sizing: border-box;
967
+ }
968
+ #sb-navigator-container {
969
+ height: 100vh;
970
+ overflow-y: auto;
971
+ border-right: 1px solid #eee;
972
+ padding: 1rem;
973
+ font-size: 14px;
974
+ color: var(--text-color);
975
+ background-color: var(--bg-color);
976
+ align-self: start;
977
+ z-index: 1000;
978
+ }
979
+ .sb-main-padded #sb-navigator-container {
980
+ margin: -1rem 1rem -1rem -1rem;
981
+ }
982
+ .sb-navigator-list {
983
+ list-style-type: none;
984
+ padding: 0;
985
+ margin: 0;
986
+ }
987
+ .sb-navigator-branch {
988
+ list-style-type: none;
989
+ }
990
+ .sb-navigator-item {
991
+ margin-bottom: 15px;
992
+ }
993
+ .sb-navigator-title {
994
+ color: var(--text-color);
995
+ text-decoration: none;
996
+ padding-block: 5px;
997
+ cursor: pointer;
998
+ }
999
+ .sb-navigator-entries {
1000
+ padding-left: 15px;
1001
+ }
1002
+ .sb-navigator-story-item {
1003
+ margin-bottom: 8px;
1004
+ margin-left: 8px;
1005
+ }
1006
+ .sb-navigator-story-link {
1007
+ color: var(--text-color);
1008
+ }
1009
+ .sb-navigator-story-link.active {
1010
+ font-weight: bold;
1011
+ color: hsl(212 100 46);
1012
+ }
1013
+ `,document.head.appendChild(a),i.querySelector(".sb-navigator-story-link.active")?.closest("details")?.scrollIntoView({block:"center"})},nV=Je(SO(),1),hl;function oV(){return hl||(hl=new nV.default(ee.navigator?.userAgent).getBrowserInfo()),hl}function iV(e){return e.browserInfo=oV(),e}function aV(e){let t=e.error||e;t.fromStorybook&&ee.sendTelemetryError(t)}function sV({reason:e}){e.fromStorybook&&ee.sendTelemetryError(e)}function oT(){rP.forEach(e=>{ee[hy[e]]=eV[e]}),ee.sendTelemetryError=e=>{ee.__STORYBOOK_ADDONS_CHANNEL__.emit(cy,iV(e))},document.addEventListener("DOMContentLoaded",()=>{ee.__STORYBOOK_ADDONS_CHANNEL__.on(py,e=>{e?document.body.setAttribute("inert","true"):document.body.removeAttribute("inert")})}),ee.addEventListener("error",aV),ee.addEventListener("unhandledrejection",sV),tV()}oT();const{createBrowserChannel:lV}=__STORYBOOK_MODULE_CHANNELS__,{addons:uV}=__STORYBOOK_MODULE_PREVIEW_API__,Ld=lV({page:"preview"});uV.setChannel(Ld);window.__STORYBOOK_ADDONS_CHANNEL__=Ld;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=Ld);var cV=Object.create,Dd=Object.defineProperty,dV=Object.getOwnPropertyDescriptor,iT=Object.getOwnPropertyNames,pV=Object.getPrototypeOf,fV=Object.prototype.hasOwnProperty,x3=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),hV=(e,t)=>function(){return t||(0,e[iT(e)[0]])((t={exports:{}}).exports,t),t.exports},C3=(e,t)=>{for(var r in t)Dd(e,r,{get:t[r],enumerable:!0})},mV=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of iT(t))!fV.call(e,o)&&o!==r&&Dd(e,o,{get:()=>t[o],enumerable:!(n=dV(t,o))||n.enumerable});return e},yV=(e,t,r)=>(r=e!=null?cV(pV(e)):{},mV(t||!e||!e.__esModule?Dd(r,"default",{value:e,enumerable:!0}):r,e));function ml(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 N3(e){return e==null||typeof e!="object"&&typeof e!="function"}function I3(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function j3(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function q3(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var M3="[object RegExp]",k3="[object String]",L3="[object Number]",D3="[object Boolean]",$3="[object Arguments]",B3="[object Symbol]",F3="[object Date]",U3="[object Map]",J3="[object Set]",V3="[object Array]",H3="[object Function]",G3="[object ArrayBuffer]",z3="[object Object]",W3="[object Error]",K3="[object DataView]",Y3="[object Uint8Array]",X3="[object Uint8ClampedArray]",Q3="[object Uint16Array]",Z3="[object Uint32Array]",eG="[object BigUint64Array]",tG="[object Int8Array]",rG="[object Int16Array]",nG="[object Int32Array]",oG="[object BigInt64Array]",iG="[object Float32Array]",aG="[object Float64Array]",gV=hV({"../../node_modules/jsdoc-type-pratt-parser/dist/index.js"(e,t){(function(r,n){typeof e=="object"&&typeof t<"u"?n(e):typeof define=="function"&&define.amd?define(["exports"],n):(r=typeof globalThis<"u"?globalThis:r||self,n(r.jtpp={}))})(e,(function(r){function n(l){return l.text!==void 0&&l.text!==""?`'${l.type}' with value '${l.text}'`:`'${l.type}'`}class o extends Error{constructor(m){super(`No parslet found for token: ${n(m)}`),this.token=m,Object.setPrototypeOf(this,o.prototype)}getToken(){return this.token}}class i extends Error{constructor(m){super(`The parsing ended early. The next token was: ${n(m)}`),this.token=m,Object.setPrototypeOf(this,i.prototype)}getToken(){return this.token}}class a extends Error{constructor(m,v){let O=`Unexpected type: '${m.type}'.`;v!==void 0&&(O+=` Message: ${v}`),super(O),Object.setPrototypeOf(this,a.prototype)}}function s(l){return m=>m.startsWith(l)?{type:l,text:l}:null}function c(l){let m=0,v,O=l[0],$=!1;if(O!=="'"&&O!=='"')return null;for(;m<l.length;){if(m++,v=l[m],!$&&v===O){m++;break}$=!$&&v==="\\"}if(v!==O)throw new Error("Unterminated String");return l.slice(0,m)}let u=new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u"),d=new 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 p(l){let m=l[0];if(!u.test(m))return null;let v=1;do{if(m=l[v],!d.test(m))break;v++}while(v<l.length);return l.slice(0,v)}let f=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function h(l){var m,v;return(v=(m=f.exec(l))===null||m===void 0?void 0:m[0])!==null&&v!==void 0?v:null}let y=l=>{let m=p(l);return m==null?null:{type:"Identifier",text:m}};function g(l){return m=>{if(!m.startsWith(l))return null;let v=m[l.length];return v!==void 0&&d.test(v)?null:{type:l,text:l}}}let E=l=>{let m=c(l);return m==null?null:{type:"StringValue",text:m}},b=l=>l.length>0?null:{type:"EOF",text:""},w=l=>{let m=h(l);return m===null?null:{type:"Number",text:m}},P=[b,s("=>"),s("("),s(")"),s("{"),s("}"),s("["),s("]"),s("|"),s("&"),s("<"),s(">"),s(","),s(";"),s("*"),s("?"),s("!"),s("="),s(":"),s("..."),s("."),s("#"),s("~"),s("/"),s("@"),g("undefined"),g("null"),g("function"),g("this"),g("new"),g("module"),g("event"),g("extends"),g("external"),g("infer"),g("typeof"),g("keyof"),g("readonly"),g("import"),g("is"),g("in"),g("asserts"),w,y,E],x=/^\s*\n\s*/;class C{static create(m){let v=this.read(m);m=v.text;let O=this.read(m);return m=O.text,new C(m,void 0,v.token,O.token)}constructor(m,v,O,$){this.text="",this.text=m,this.previous=v,this.current=O,this.next=$}static read(m,v=!1){v=v||x.test(m),m=m.trim();for(let O of P){let $=O(m);if($!==null){let H=Object.assign(Object.assign({},$),{startOfLine:v});return m=m.slice(H.text.length),{text:m,token:H}}}throw new Error("Unexpected Token "+m)}advance(){let m=C.read(this.text);return new C(m.text,this.current,this.next,m.token)}}function S(l){if(l===void 0)throw new Error("Unexpected undefined");if(l.type==="JsdocTypeKeyValue"||l.type==="JsdocTypeParameterList"||l.type==="JsdocTypeProperty"||l.type==="JsdocTypeReadonlyProperty"||l.type==="JsdocTypeObjectField"||l.type==="JsdocTypeJsdocObjectField"||l.type==="JsdocTypeIndexSignature"||l.type==="JsdocTypeMappedType"||l.type==="JsdocTypeTypeParameter")throw new a(l);return l}function _(l){return l.type==="JsdocTypeKeyValue"?A(l):S(l)}function T(l){return l.type==="JsdocTypeName"?l:A(l)}function A(l){if(l.type!=="JsdocTypeKeyValue")throw new a(l);return l}function D(l){var m;if(l.type==="JsdocTypeVariadic"){if(((m=l.element)===null||m===void 0?void 0:m.type)==="JsdocTypeName")return l;throw new a(l)}if(l.type!=="JsdocTypeNumber"&&l.type!=="JsdocTypeName")throw new a(l);return l}function k(l){if(l.type==="JsdocTypeTuple"||l.type==="JsdocTypeGeneric"&&l.meta.brackets==="square")return l;throw new a(l)}function U(l){return l.type==="JsdocTypeIndexSignature"||l.type==="JsdocTypeMappedType"}var I;(function(l){l[l.ALL=0]="ALL",l[l.PARAMETER_LIST=1]="PARAMETER_LIST",l[l.OBJECT=2]="OBJECT",l[l.KEY_VALUE=3]="KEY_VALUE",l[l.INDEX_BRACKETS=4]="INDEX_BRACKETS",l[l.UNION=5]="UNION",l[l.INTERSECTION=6]="INTERSECTION",l[l.PREFIX=7]="PREFIX",l[l.INFIX=8]="INFIX",l[l.TUPLE=9]="TUPLE",l[l.SYMBOL=10]="SYMBOL",l[l.OPTIONAL=11]="OPTIONAL",l[l.NULLABLE=12]="NULLABLE",l[l.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",l[l.FUNCTION=14]="FUNCTION",l[l.ARROW=15]="ARROW",l[l.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",l[l.GENERIC=17]="GENERIC",l[l.NAME_PATH=18]="NAME_PATH",l[l.PARENTHESIS=19]="PARENTHESIS",l[l.SPECIAL_TYPES=20]="SPECIAL_TYPES"})(I||(I={}));class R{constructor(m,v,O){this.grammar=m,typeof v=="string"?this._lexer=C.create(v):this._lexer=v,this.baseParser=O}get lexer(){return this._lexer}parse(){let m=this.parseType(I.ALL);if(this.lexer.current.type!=="EOF")throw new i(this.lexer.current);return m}parseType(m){return S(this.parseIntermediateType(m))}parseIntermediateType(m){let v=this.tryParslets(null,m);if(v===null)throw new o(this.lexer.current);return this.parseInfixIntermediateType(v,m)}parseInfixIntermediateType(m,v){let O=this.tryParslets(m,v);for(;O!==null;)m=O,O=this.tryParslets(m,v);return m}tryParslets(m,v){for(let O of this.grammar){let $=O(this,v,m);if($!==null)return $}return null}consume(m){return Array.isArray(m)||(m=[m]),m.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(m){this._lexer=m.lexer}}function M(l){return l==="}"||l==="EOF"||l==="|"||l===","||l===")"||l===">"}let L=(l,m,v)=>{let O=l.lexer.current.type,$=l.lexer.next.type;return v==null&&O==="?"&&!M($)||v!=null&&O==="?"?(l.consume("?"),v==null?{type:"JsdocTypeNullable",element:l.parseType(I.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:S(v),meta:{position:"suffix"}}):null};function J(l){let m=(v,O,$)=>{let H=v.lexer.current.type,Y=v.lexer.next.type;if($===null){if("parsePrefix"in l&&l.accept(H,Y))return l.parsePrefix(v)}else if("parseInfix"in l&&l.precedence>O&&l.accept(H,Y))return l.parseInfix(v,$);return null};return Object.defineProperty(m,"name",{value:l.name}),m}let W=J({name:"optionalParslet",accept:l=>l==="=",precedence:I.OPTIONAL,parsePrefix:l=>(l.consume("="),{type:"JsdocTypeOptional",element:l.parseType(I.OPTIONAL),meta:{position:"prefix"}}),parseInfix:(l,m)=>(l.consume("="),{type:"JsdocTypeOptional",element:S(m),meta:{position:"suffix"}})}),ne=J({name:"numberParslet",accept:l=>l==="Number",parsePrefix:l=>{let m=parseFloat(l.lexer.current.text);return l.consume("Number"),{type:"JsdocTypeNumber",value:m}}}),ue=J({name:"parenthesisParslet",accept:l=>l==="(",parsePrefix:l=>{if(l.consume("("),l.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let m=l.parseIntermediateType(I.ALL);if(!l.consume(")"))throw new Error("Unterminated parenthesis");return m.type==="JsdocTypeParameterList"?m:m.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[m]}:{type:"JsdocTypeParenthesis",element:S(m)}}}),ie=J({name:"specialTypesParslet",accept:(l,m)=>l==="?"&&M(m)||l==="null"||l==="undefined"||l==="*",parsePrefix:l=>{if(l.consume("null"))return{type:"JsdocTypeNull"};if(l.consume("undefined"))return{type:"JsdocTypeUndefined"};if(l.consume("*"))return{type:"JsdocTypeAny"};if(l.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+l.lexer.current.text)}}),z=J({name:"notNullableParslet",accept:l=>l==="!",precedence:I.NULLABLE,parsePrefix:l=>(l.consume("!"),{type:"JsdocTypeNotNullable",element:l.parseType(I.NULLABLE),meta:{position:"prefix"}}),parseInfix:(l,m)=>(l.consume("!"),{type:"JsdocTypeNotNullable",element:S(m),meta:{position:"suffix"}})});function G({allowTrailingComma:l}){return J({name:"parameterListParslet",accept:m=>m===",",precedence:I.PARAMETER_LIST,parseInfix:(m,v)=>{let O=[_(v)];m.consume(",");do try{let $=m.parseIntermediateType(I.PARAMETER_LIST);O.push(_($))}catch($){if($ instanceof o)break;throw $}while(m.consume(","));if(O.length>0&&O.slice(0,-1).some($=>$.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:O}}})}let re=J({name:"genericParslet",accept:(l,m)=>l==="<"||l==="."&&m==="<",precedence:I.GENERIC,parseInfix:(l,m)=>{let v=l.consume(".");l.consume("<");let O=[],$=!1;if(l.consume("infer")){$=!0;let H=l.parseIntermediateType(I.SYMBOL);if(H.type!=="JsdocTypeName")throw new a(H,"A typescript asserts always has to have a name on the left side.");O.push(H)}else do O.push(l.parseType(I.PARAMETER_LIST));while(l.consume(","));if(!l.consume(">"))throw new Error("Unterminated generic parameter list");return Object.assign(Object.assign({type:"JsdocTypeGeneric",left:S(m),elements:O},$?{infer:!0}:{}),{meta:{brackets:"angle",dot:v}})}}),Z=J({name:"unionParslet",accept:l=>l==="|",precedence:I.UNION,parseInfix:(l,m)=>{l.consume("|");let v=[];do v.push(l.parseType(I.UNION));while(l.consume("|"));return{type:"JsdocTypeUnion",elements:[S(m),...v]}}}),K=[L,W,ne,ue,ie,z,G({allowTrailingComma:!0}),re,Z,W];function ye({allowSquareBracketsOnAnyType:l,allowJsdocNamePaths:m,pathGrammar:v}){return function(O,$,H){if(H==null||$>=I.NAME_PATH)return null;let Y=O.lexer.current.type,de=O.lexer.next.type;if(!(Y==="."&&de!=="<"||Y==="["&&(l||H.type==="JsdocTypeName")||m&&(Y==="~"||Y==="#")))return null;let pe,_e=!1;O.consume(".")?pe="property":O.consume("[")?(pe="property-brackets",_e=!0):O.consume("~")?pe="inner":(O.consume("#"),pe="instance");let We=v!==null?new R(v,O.lexer,O):O,Le=We.parseIntermediateType(I.NAME_PATH);O.acceptLexerState(We);let Nt;switch(Le.type){case"JsdocTypeName":Nt={type:"JsdocTypeProperty",value:Le.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":Nt={type:"JsdocTypeProperty",value:Le.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":Nt={type:"JsdocTypeProperty",value:Le.value,meta:{quote:Le.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(Le.specialType==="event")Nt=Le;else throw new a(Le,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new a(Le,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(_e&&!O.consume("]")){let ho=O.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${ho.type}' with text '${ho.text}'`)}return{type:"JsdocTypeNamePath",left:S(H),right:Nt,pathType:pe}}}function ce({allowedAdditionalTokens:l}){return J({name:"nameParslet",accept:m=>m==="Identifier"||m==="this"||m==="new"||l.includes(m),parsePrefix:m=>{let{type:v,text:O}=m.lexer.current;return m.consume(v),{type:"JsdocTypeName",value:O}}})}let Me=J({name:"stringValueParslet",accept:l=>l==="StringValue",parsePrefix:l=>{let m=l.lexer.current.text;return l.consume("StringValue"),{type:"JsdocTypeStringValue",value:m.slice(1,-1),meta:{quote:m[0]==="'"?"single":"double"}}}});function F({pathGrammar:l,allowedTypes:m}){return J({name:"specialNamePathParslet",accept:v=>m.includes(v),parsePrefix:v=>{let O=v.lexer.current.type;if(v.consume(O),!v.consume(":"))return{type:"JsdocTypeName",value:O};let $,H=v.lexer.current;if(v.consume("StringValue"))$={type:"JsdocTypeSpecialNamePath",value:H.text.slice(1,-1),specialType:O,meta:{quote:H.text[0]==="'"?"single":"double"}};else{let pe="",_e=["Identifier","@","/"];for(;_e.some(We=>v.consume(We));)pe+=H.text,H=v.lexer.current;$={type:"JsdocTypeSpecialNamePath",value:pe,specialType:O,meta:{quote:void 0}}}let Y=new R(l,v.lexer,v),de=Y.parseInfixIntermediateType($,I.ALL);return v.acceptLexerState(Y),S(de)}})}let Q=[ce({allowedAdditionalTokens:["external","module"]}),Me,ne,ye({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],te=[...Q,F({allowedTypes:["event"],pathGrammar:Q})];function oe(l){let m;if(l.type==="JsdocTypeParameterList")m=l.elements;else if(l.type==="JsdocTypeParenthesis")m=[l.element];else throw new a(l);return m.map(v=>_(v))}function ae(l){let m=oe(l);if(m.some(v=>v.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return m}function se({allowNamedParameters:l,allowNoReturnType:m,allowWithoutParenthesis:v,allowNewAsFunctionKeyword:O}){return J({name:"functionParslet",accept:($,H)=>$==="function"||O&&$==="new"&&H==="(",parsePrefix:$=>{let H=$.consume("new");$.consume("function");let Y=$.lexer.current.type==="(";if(!Y){if(!v)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let de={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:H,parenthesis:Y},pe=$.parseIntermediateType(I.FUNCTION);if(l===void 0)de.parameters=ae(pe);else{if(H&&pe.type==="JsdocTypeFunction"&&pe.arrow)return de=pe,de.constructor=!0,de;de.parameters=oe(pe);for(let _e of de.parameters)if(_e.type==="JsdocTypeKeyValue"&&!l.includes(_e.key))throw new Error(`only allowed named parameters are ${l.join(", ")} but got ${_e.type}`)}if($.consume(":"))de.returnType=$.parseType(I.PREFIX);else if(!m)throw new Error("function is missing return type");return de}})}function fe({allowPostfix:l,allowEnclosingBrackets:m}){return J({name:"variadicParslet",accept:v=>v==="...",precedence:I.PREFIX,parsePrefix:v=>{v.consume("...");let O=m&&v.consume("[");try{let $=v.parseType(I.PREFIX);if(O&&!v.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:S($),meta:{position:"prefix",squareBrackets:O}}}catch($){if($ instanceof o){if(O)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw $}},parseInfix:l?(v,O)=>(v.consume("..."),{type:"JsdocTypeVariadic",element:S(O),meta:{position:"suffix",squareBrackets:!1}}):void 0})}let ge=J({name:"symbolParslet",accept:l=>l==="(",precedence:I.SYMBOL,parseInfix:(l,m)=>{if(m.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");l.consume("(");let v={type:"JsdocTypeSymbol",value:m.value};if(!l.consume(")")){let O=l.parseIntermediateType(I.SYMBOL);if(v.element=D(O),!l.consume(")"))throw new Error("Symbol does not end after value")}return v}}),ke=J({name:"arrayBracketsParslet",precedence:I.ARRAY_BRACKETS,accept:(l,m)=>l==="["&&m==="]",parseInfix:(l,m)=>(l.consume("["),l.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[S(m)],meta:{brackets:"square",dot:!1}})});function lt({objectFieldGrammar:l,allowKeyTypes:m}){return J({name:"objectParslet",accept:v=>v==="{",parsePrefix:v=>{v.consume("{");let O={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!v.consume("}")){let $,H=new R(l,v.lexer,v);for(;;){H.acceptLexerState(v);let Y=H.parseIntermediateType(I.OBJECT);v.acceptLexerState(H),Y===void 0&&m&&(Y=v.parseIntermediateType(I.OBJECT));let de=!1;if(Y.type==="JsdocTypeNullable"&&(de=!0,Y=Y.element),Y.type==="JsdocTypeNumber"||Y.type==="JsdocTypeName"||Y.type==="JsdocTypeStringValue"){let pe;Y.type==="JsdocTypeStringValue"&&(pe=Y.meta.quote),O.elements.push({type:"JsdocTypeObjectField",key:Y.value.toString(),right:void 0,optional:de,readonly:!1,meta:{quote:pe}})}else if(Y.type==="JsdocTypeObjectField"||Y.type==="JsdocTypeJsdocObjectField")O.elements.push(Y);else throw new a(Y);if(v.lexer.current.startOfLine)$="linebreak",v.consume(",")||v.consume(";");else if(v.consume(","))$="comma";else if(v.consume(";"))$="semicolon";else break;if(v.lexer.current.type==="}")break}if(O.meta.separator=$??"comma",$==="linebreak"&&(O.meta.propertyIndent=" "),!v.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return O}})}function rt({allowSquaredProperties:l,allowKeyTypes:m,allowReadonly:v,allowOptional:O}){return J({name:"objectFieldParslet",precedence:I.KEY_VALUE,accept:$=>$===":",parseInfix:($,H)=>{var Y;let de=!1,pe=!1;O&&H.type==="JsdocTypeNullable"&&(de=!0,H=H.element),v&&H.type==="JsdocTypeReadonlyProperty"&&(pe=!0,H=H.element);let _e=(Y=$.baseParser)!==null&&Y!==void 0?Y:$;if(_e.acceptLexerState($),H.type==="JsdocTypeNumber"||H.type==="JsdocTypeName"||H.type==="JsdocTypeStringValue"||U(H)){if(U(H)&&!l)throw new a(H);_e.consume(":");let We;H.type==="JsdocTypeStringValue"&&(We=H.meta.quote);let Le=_e.parseType(I.KEY_VALUE);return $.acceptLexerState(_e),{type:"JsdocTypeObjectField",key:U(H)?H:H.value.toString(),right:Le,optional:de,readonly:pe,meta:{quote:We}}}else{if(!m)throw new a(H);_e.consume(":");let We=_e.parseType(I.KEY_VALUE);return $.acceptLexerState(_e),{type:"JsdocTypeJsdocObjectField",left:S(H),right:We}}}})}function ut({allowOptional:l,allowVariadic:m}){return J({name:"keyValueParslet",precedence:I.KEY_VALUE,accept:v=>v===":",parseInfix:(v,O)=>{let $=!1,H=!1;if(l&&O.type==="JsdocTypeNullable"&&($=!0,O=O.element),m&&O.type==="JsdocTypeVariadic"&&O.element!==void 0&&(H=!0,O=O.element),O.type!=="JsdocTypeName")throw new a(O);v.consume(":");let Y=v.parseType(I.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:O.value,right:Y,optional:$,variadic:H}}})}let Qe=[...K,se({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),Me,F({allowedTypes:["module","external","event"],pathGrammar:te}),fe({allowEnclosingBrackets:!0,allowPostfix:!0}),ce({allowedAdditionalTokens:["keyof"]}),ge,ke,ye({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:te})],$t=[...Qe,lt({objectFieldGrammar:[ce({allowedAdditionalTokens:["typeof","module","in"]}),rt({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...Qe],allowKeyTypes:!0}),ut({allowOptional:!0,allowVariadic:!0})],wt=J({name:"typeOfParslet",accept:l=>l==="typeof",parsePrefix:l=>(l.consume("typeof"),{type:"JsdocTypeTypeof",element:l.parseType(I.KEY_OF_TYPE_OF)})}),Bt=[ce({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),L,W,Me,ne,rt({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],Kn=[...K,lt({allowKeyTypes:!1,objectFieldGrammar:Bt}),ce({allowedAdditionalTokens:["event","external","in"]}),wt,se({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),fe({allowEnclosingBrackets:!1,allowPostfix:!1}),ce({allowedAdditionalTokens:["keyof"]}),F({allowedTypes:["module"],pathGrammar:te}),ye({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:te}),ut({allowOptional:!1,allowVariadic:!1}),ge],Yn=J({name:"assertsParslet",accept:l=>l==="asserts",parsePrefix:l=>{l.consume("asserts");let m=l.parseIntermediateType(I.SYMBOL);if(m.type!=="JsdocTypeName")throw new a(m,"A typescript asserts always has to have a name on the left side.");return l.consume("is")?{type:"JsdocTypeAsserts",left:m,right:S(l.parseIntermediateType(I.INFIX))}:{type:"JsdocTypeAssertsPlain",element:m}}});function Xn({allowQuestionMark:l}){return J({name:"tupleParslet",accept:m=>m==="[",parsePrefix:m=>{m.consume("[");let v={type:"JsdocTypeTuple",elements:[]};if(m.consume("]"))return v;let O=m.parseIntermediateType(I.ALL);if(O.type==="JsdocTypeParameterList"?O.elements[0].type==="JsdocTypeKeyValue"?v.elements=O.elements.map(A):v.elements=O.elements.map(S):O.type==="JsdocTypeKeyValue"?v.elements=[A(O)]:v.elements=[S(O)],!m.consume("]"))throw new Error("Unterminated '['");if(v.elements.some($=>$.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return v}})}let Qn=J({name:"keyOfParslet",accept:l=>l==="keyof",parsePrefix:l=>(l.consume("keyof"),{type:"JsdocTypeKeyof",element:S(l.parseType(I.KEY_OF_TYPE_OF))})}),Zn=J({name:"importParslet",accept:l=>l==="import",parsePrefix:l=>{if(l.consume("import"),!l.consume("("))throw new Error("Missing parenthesis after import keyword");let m=l.parseType(I.PREFIX);if(m.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!l.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:m}}}),eo=J({name:"readonlyPropertyParslet",accept:l=>l==="readonly",parsePrefix:l=>(l.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:l.parseIntermediateType(I.KEY_VALUE)})}),to=J({name:"arrowFunctionParslet",precedence:I.ARROW,accept:l=>l==="=>",parseInfix:(l,m)=>(l.consume("=>"),{type:"JsdocTypeFunction",parameters:oe(m).map(T),arrow:!0,constructor:!1,parenthesis:!0,returnType:l.parseType(I.OBJECT)})}),ro=J({name:"genericArrowFunctionParslet",accept:l=>l==="<",parsePrefix:l=>{let m=[];l.consume("<");do{let O,$=l.parseIntermediateType(I.SYMBOL);if($.type==="JsdocTypeOptional"&&($=$.element,O=l.parseType(I.SYMBOL)),$.type!=="JsdocTypeName")throw new a($);let H;l.consume("extends")&&(H=l.parseType(I.SYMBOL),H.type==="JsdocTypeOptional"&&(H=H.element,O=l.parseType(I.SYMBOL)));let Y={type:"JsdocTypeTypeParameter",name:$};if(H!==void 0&&(Y.constraint=H),O!==void 0&&(Y.defaultValue=O),m.push(Y),l.consume(">"))break}while(l.consume(","));let v=l.parseIntermediateType(I.SYMBOL);return v.typeParameters=m,v}}),no=J({name:"intersectionParslet",accept:l=>l==="&",precedence:I.INTERSECTION,parseInfix:(l,m)=>{l.consume("&");let v=[];do v.push(l.parseType(I.INTERSECTION));while(l.consume("&"));return{type:"JsdocTypeIntersection",elements:[S(m),...v]}}}),oo=J({name:"predicateParslet",precedence:I.INFIX,accept:l=>l==="is",parseInfix:(l,m)=>{if(m.type!=="JsdocTypeName")throw new a(m,"A typescript predicate always has to have a name on the left side.");return l.consume("is"),{type:"JsdocTypePredicate",left:m,right:S(l.parseIntermediateType(I.INFIX))}}}),io=J({name:"objectSquareBracketPropertyParslet",accept:l=>l==="[",parsePrefix:l=>{if(l.baseParser===void 0)throw new Error("Only allowed inside object grammar");l.consume("[");let m=l.lexer.current.text;l.consume("Identifier");let v;if(l.consume(":")){let O=l.baseParser;O.acceptLexerState(l),v={type:"JsdocTypeIndexSignature",key:m,right:O.parseType(I.INDEX_BRACKETS)},l.acceptLexerState(O)}else if(l.consume("in")){let O=l.baseParser;O.acceptLexerState(l),v={type:"JsdocTypeMappedType",key:m,right:O.parseType(I.ARRAY_BRACKETS)},l.acceptLexerState(O)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!l.consume("]"))throw new Error("Unterminated square brackets");return v}}),ao=J({name:"readonlyArrayParslet",accept:l=>l==="readonly",parsePrefix:l=>(l.consume("readonly"),{type:"JsdocTypeReadonlyArray",element:k(l.parseIntermediateType(I.ALL))})}),so=J({name:"conditionalParslet",precedence:I.INFIX,accept:l=>l==="extends",parseInfix:(l,m)=>{l.consume("extends");let v=l.parseType(I.KEY_OF_TYPE_OF).element,O=l.parseType(I.INFIX);return l.consume(":"),{type:"JsdocTypeConditional",checksType:S(m),extendsType:v,trueType:O,falseType:l.parseType(I.INFIX)}}}),lo=[eo,ce({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),L,W,Me,ne,rt({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),io],uo=[...K,lt({allowKeyTypes:!1,objectFieldGrammar:lo}),ao,wt,Qn,Zn,Me,se({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),Xn({allowQuestionMark:!1}),fe({allowEnclosingBrackets:!1,allowPostfix:!1}),Yn,so,ce({allowedAdditionalTokens:["event","external","in"]}),F({allowedTypes:["module"],pathGrammar:te}),ke,to,ro,ye({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:te}),no,oo,ut({allowVariadic:!0,allowOptional:!0})];function Mr(l,m){switch(m){case"closure":return new R(Kn,l).parse();case"jsdoc":return new R($t,l).parse();case"typescript":return new R(uo,l).parse()}}function co(l,m=["typescript","closure","jsdoc"]){let v;for(let O of m)try{return Mr(l,O)}catch($){v=$}throw v}function ht(l,m){let v=l[m.type];if(v===void 0)throw new Error(`In this set of transform rules exists no rule for type ${m.type}.`);return v(m,O=>ht(l,O))}function le(l){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}function kr(l){let m={params:[]};for(let v of l.parameters)v.type==="JsdocTypeKeyValue"?v.key==="this"?m.this=v.right:v.key==="new"?m.new=v.right:m.params.push(v):m.params.push(v);return m}function Ct(l,m,v){return l==="prefix"?v+m:m+v}function ze(l,m){switch(m){case"double":return`"${l}"`;case"single":return`'${l}'`;case void 0:return l}}function X(){return{JsdocTypeParenthesis:(l,m)=>`(${l.element!==void 0?m(l.element):""})`,JsdocTypeKeyof:(l,m)=>`keyof ${m(l.element)}`,JsdocTypeFunction:(l,m)=>{var v;if(l.arrow){if(l.returnType===void 0)throw new Error("Arrow function needs a return type.");let O=`${l.typeParameters!==void 0?`<${(v=l.typeParameters.map(m).join(", "))!==null&&v!==void 0?v:""}>`:""}(${l.parameters.map(m).join(", ")}) => ${m(l.returnType)}`;return l.constructor&&(O="new "+O),O}else{let O=l.constructor?"new":"function";return l.parenthesis&&(O+=`(${l.parameters.map(m).join(", ")})`,l.returnType!==void 0&&(O+=`: ${m(l.returnType)}`)),O}},JsdocTypeName:l=>l.value,JsdocTypeTuple:(l,m)=>`[${l.elements.map(m).join(", ")}]`,JsdocTypeVariadic:(l,m)=>l.meta.position===void 0?"...":Ct(l.meta.position,m(l.element),"..."),JsdocTypeNamePath:(l,m)=>{let v=m(l.left),O=m(l.right);switch(l.pathType){case"inner":return`${v}~${O}`;case"instance":return`${v}#${O}`;case"property":return`${v}.${O}`;case"property-brackets":return`${v}[${O}]`}},JsdocTypeStringValue:l=>ze(l.value,l.meta.quote),JsdocTypeAny:()=>"*",JsdocTypeGeneric:(l,m)=>{if(l.meta.brackets==="square"){let v=l.elements[0],O=m(v);return v.type==="JsdocTypeUnion"||v.type==="JsdocTypeIntersection"?`(${O})[]`:`${O}[]`}else return`${m(l.left)}${l.meta.dot?".":""}<${l.infer===!0?"infer ":""}${l.elements.map(m).join(", ")}>`},JsdocTypeImport:(l,m)=>`import(${m(l.element)})`,JsdocTypeObjectField:(l,m)=>{let v="";return l.readonly&&(v+="readonly "),typeof l.key=="string"?v+=ze(l.key,l.meta.quote):v+=m(l.key),l.optional&&(v+="?"),l.right===void 0?v:v+`: ${m(l.right)}`},JsdocTypeJsdocObjectField:(l,m)=>`${m(l.left)}: ${m(l.right)}`,JsdocTypeKeyValue:(l,m)=>{let v=l.key;return l.optional&&(v+="?"),l.variadic&&(v="..."+v),l.right===void 0?v:v+`: ${m(l.right)}`},JsdocTypeSpecialNamePath:l=>`${l.specialType}:${ze(l.value,l.meta.quote)}`,JsdocTypeNotNullable:(l,m)=>Ct(l.meta.position,m(l.element),"!"),JsdocTypeNull:()=>"null",JsdocTypeNullable:(l,m)=>Ct(l.meta.position,m(l.element),"?"),JsdocTypeNumber:l=>l.value.toString(),JsdocTypeObject:(l,m)=>{var v,O;return`{${(l.meta.separator==="linebreak"&&l.elements.length>1?`
1014
+ `+((v=l.meta.propertyIndent)!==null&&v!==void 0?v:""):"")+l.elements.map(m).join(l.meta.separator==="comma"?", ":l.meta.separator==="linebreak"?`
1015
+ `+((O=l.meta.propertyIndent)!==null&&O!==void 0?O:""):"; ")+(l.meta.separator==="linebreak"&&l.elements.length>1?`
1016
+ `:"")}}`},JsdocTypeOptional:(l,m)=>Ct(l.meta.position,m(l.element),"="),JsdocTypeSymbol:(l,m)=>`${l.value}(${l.element!==void 0?m(l.element):""})`,JsdocTypeTypeof:(l,m)=>`typeof ${m(l.element)}`,JsdocTypeUndefined:()=>"undefined",JsdocTypeUnion:(l,m)=>l.elements.map(m).join(" | "),JsdocTypeUnknown:()=>"?",JsdocTypeIntersection:(l,m)=>l.elements.map(m).join(" & "),JsdocTypeProperty:l=>ze(l.value,l.meta.quote),JsdocTypePredicate:(l,m)=>`${m(l.left)} is ${m(l.right)}`,JsdocTypeIndexSignature:(l,m)=>`[${l.key}: ${m(l.right)}]`,JsdocTypeMappedType:(l,m)=>`[${l.key} in ${m(l.right)}]`,JsdocTypeAsserts:(l,m)=>`asserts ${m(l.left)} is ${m(l.right)}`,JsdocTypeReadonlyArray:(l,m)=>`readonly ${m(l.element)}`,JsdocTypeAssertsPlain:(l,m)=>`asserts ${m(l.element)}`,JsdocTypeConditional:(l,m)=>`${m(l.checksType)} extends ${m(l.extendsType)} ? ${m(l.trueType)} : ${m(l.falseType)}`,JsdocTypeTypeParameter:(l,m)=>`${m(l.name)}${l.constraint!==void 0?` extends ${m(l.constraint)}`:""}${l.defaultValue!==void 0?` = ${m(l.defaultValue)}`:""}`}}let po=X();function fr(l){return ht(po,l)}let Ts=["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"];function Ze(l){let m={type:"NameExpression",name:l};return Ts.includes(l)&&(m.reservedWord=!0),m}let Ss={JsdocTypeOptional:(l,m)=>{let v=m(l.element);return v.optional=!0,v},JsdocTypeNullable:(l,m)=>{let v=m(l.element);return v.nullable=!0,v},JsdocTypeNotNullable:(l,m)=>{let v=m(l.element);return v.nullable=!1,v},JsdocTypeVariadic:(l,m)=>{if(l.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");let v=m(l.element);return v.repeatable=!0,v},JsdocTypeAny:()=>({type:"AllLiteral"}),JsdocTypeNull:()=>({type:"NullLiteral"}),JsdocTypeStringValue:l=>Ze(ze(l.value,l.meta.quote)),JsdocTypeUndefined:()=>({type:"UndefinedLiteral"}),JsdocTypeUnknown:()=>({type:"UnknownLiteral"}),JsdocTypeFunction:(l,m)=>{let v=kr(l),O={type:"FunctionType",params:v.params.map(m)};return v.this!==void 0&&(O.this=m(v.this)),v.new!==void 0&&(O.new=m(v.new)),l.returnType!==void 0&&(O.result=m(l.returnType)),O},JsdocTypeGeneric:(l,m)=>({type:"TypeApplication",applications:l.elements.map(v=>m(v)),expression:m(l.left)}),JsdocTypeSpecialNamePath:l=>Ze(l.specialType+":"+ze(l.value,l.meta.quote)),JsdocTypeName:l=>l.value!=="function"?Ze(l.value):{type:"FunctionType",params:[]},JsdocTypeNumber:l=>Ze(l.value.toString()),JsdocTypeObject:(l,m)=>{let v={type:"RecordType",fields:[]};for(let O of l.elements)O.type!=="JsdocTypeObjectField"&&O.type!=="JsdocTypeJsdocObjectField"?v.fields.push({type:"FieldType",key:m(O),value:void 0}):v.fields.push(m(O));return v},JsdocTypeObjectField:(l,m)=>{if(typeof l.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:Ze(ze(l.key,l.meta.quote)),value:l.right===void 0?void 0:m(l.right)}},JsdocTypeJsdocObjectField:(l,m)=>({type:"FieldType",key:m(l.left),value:m(l.right)}),JsdocTypeUnion:(l,m)=>({type:"TypeUnion",elements:l.elements.map(v=>m(v))}),JsdocTypeKeyValue:(l,m)=>({type:"FieldType",key:Ze(l.key),value:l.right===void 0?void 0:m(l.right)}),JsdocTypeNamePath:(l,m)=>{let v=m(l.left),O;l.right.type==="JsdocTypeSpecialNamePath"?O=m(l.right).name:O=ze(l.right.value,l.right.meta.quote);let $=l.pathType==="inner"?"~":l.pathType==="instance"?"#":".";return Ze(`${v.name}${$}${O}`)},JsdocTypeSymbol:l=>{let m="",v=l.element,O=!1;return v?.type==="JsdocTypeVariadic"&&(v.meta.position==="prefix"?m="...":O=!0,v=v.element),v?.type==="JsdocTypeName"?m+=v.value:v?.type==="JsdocTypeNumber"&&(m+=v.value.toString()),O&&(m+="..."),Ze(`${l.value}(${m})`)},JsdocTypeParenthesis:(l,m)=>m(S(l.element)),JsdocTypeMappedType:le,JsdocTypeIndexSignature:le,JsdocTypeImport:le,JsdocTypeKeyof:le,JsdocTypeTuple:le,JsdocTypeTypeof:le,JsdocTypeIntersection:le,JsdocTypeProperty:le,JsdocTypePredicate:le,JsdocTypeAsserts:le,JsdocTypeReadonlyArray:le,JsdocTypeAssertsPlain:le,JsdocTypeConditional:le,JsdocTypeTypeParameter:le};function As(l){return ht(Ss,l)}function ct(l){switch(l){case void 0:return"none";case"single":return"single";case"double":return"double"}}function Rs(l){switch(l){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}function Lr(l,m){return m.length===2?{type:l,left:m[0],right:m[1]}:{type:l,left:m[0],right:Lr(l,m.slice(1))}}let Os={JsdocTypeOptional:(l,m)=>({type:"OPTIONAL",value:m(l.element),meta:{syntax:l.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),JsdocTypeNullable:(l,m)=>({type:"NULLABLE",value:m(l.element),meta:{syntax:l.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),JsdocTypeNotNullable:(l,m)=>({type:"NOT_NULLABLE",value:m(l.element),meta:{syntax:l.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),JsdocTypeVariadic:(l,m)=>{let v={type:"VARIADIC",meta:{syntax:l.meta.position==="prefix"?"PREFIX_DOTS":l.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return l.element!==void 0&&(v.value=m(l.element)),v},JsdocTypeName:l=>({type:"NAME",name:l.value}),JsdocTypeTypeof:(l,m)=>({type:"TYPE_QUERY",name:m(l.element)}),JsdocTypeTuple:(l,m)=>({type:"TUPLE",entries:l.elements.map(m)}),JsdocTypeKeyof:(l,m)=>({type:"KEY_QUERY",value:m(l.element)}),JsdocTypeImport:l=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:ct(l.element.meta.quote),string:l.element.value}}),JsdocTypeUndefined:()=>({type:"NAME",name:"undefined"}),JsdocTypeAny:()=>({type:"ANY"}),JsdocTypeFunction:(l,m)=>{let v=kr(l),O={type:l.arrow?"ARROW":"FUNCTION",params:v.params.map($=>{if($.type==="JsdocTypeKeyValue"){if($.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:$.key,typeName:m($.right)}}else return m($)}),new:null,returns:null};return v.this!==void 0?O.this=m(v.this):l.arrow||(O.this=null),v.new!==void 0&&(O.new=m(v.new)),l.returnType!==void 0&&(O.returns=m(l.returnType)),O},JsdocTypeGeneric:(l,m)=>{let v={type:"GENERIC",subject:m(l.left),objects:l.elements.map(m),meta:{syntax:l.meta.brackets==="square"?"SQUARE_BRACKET":l.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return l.meta.brackets==="square"&&l.elements[0].type==="JsdocTypeFunction"&&!l.elements[0].parenthesis&&(v.objects[0]={type:"NAME",name:"function"}),v},JsdocTypeObjectField:(l,m)=>{if(typeof l.key!="string")throw new Error("Index signatures and mapped types are not supported");if(l.right===void 0)return{type:"RECORD_ENTRY",key:l.key,quoteStyle:ct(l.meta.quote),value:null,readonly:!1};let v=m(l.right);return l.optional&&(v={type:"OPTIONAL",value:v,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:l.key.toString(),quoteStyle:ct(l.meta.quote),value:v,readonly:!1}},JsdocTypeJsdocObjectField:()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},JsdocTypeKeyValue:(l,m)=>{if(l.right===void 0)return{type:"RECORD_ENTRY",key:l.key,quoteStyle:"none",value:null,readonly:!1};let v=m(l.right);return l.optional&&(v={type:"OPTIONAL",value:v,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:l.key,quoteStyle:"none",value:v,readonly:!1}},JsdocTypeObject:(l,m)=>{let v=[];for(let O of l.elements)(O.type==="JsdocTypeObjectField"||O.type==="JsdocTypeJsdocObjectField")&&v.push(m(O));return{type:"RECORD",entries:v}},JsdocTypeSpecialNamePath:l=>{if(l.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${l.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:ct(l.meta.quote),path:l.value}}},JsdocTypeNamePath:(l,m)=>{let v=!1,O,$;l.right.type==="JsdocTypeSpecialNamePath"&&l.right.specialType==="event"?(v=!0,O=l.right.value,$=ct(l.right.meta.quote)):(O=l.right.value,$=ct(l.right.meta.quote));let H={type:Rs(l.pathType),owner:m(l.left),name:O,quoteStyle:$,hasEventPrefix:v};if(H.owner.type==="MODULE"){let Y=H.owner;return H.owner=H.owner.value,Y.value=H,Y}else return H},JsdocTypeUnion:(l,m)=>Lr("UNION",l.elements.map(m)),JsdocTypeParenthesis:(l,m)=>({type:"PARENTHESIS",value:m(S(l.element))}),JsdocTypeNull:()=>({type:"NAME",name:"null"}),JsdocTypeUnknown:()=>({type:"UNKNOWN"}),JsdocTypeStringValue:l=>({type:"STRING_VALUE",quoteStyle:ct(l.meta.quote),string:l.value}),JsdocTypeIntersection:(l,m)=>Lr("INTERSECTION",l.elements.map(m)),JsdocTypeNumber:l=>({type:"NUMBER_VALUE",number:l.value.toString()}),JsdocTypeSymbol:le,JsdocTypeProperty:le,JsdocTypePredicate:le,JsdocTypeMappedType:le,JsdocTypeIndexSignature:le,JsdocTypeAsserts:le,JsdocTypeReadonlyArray:le,JsdocTypeAssertsPlain:le,JsdocTypeConditional:le,JsdocTypeTypeParameter:le};function Ps(l){return ht(Os,l)}function xs(){return{JsdocTypeIntersection:(l,m)=>({type:"JsdocTypeIntersection",elements:l.elements.map(m)}),JsdocTypeGeneric:(l,m)=>({type:"JsdocTypeGeneric",left:m(l.left),elements:l.elements.map(m),meta:{dot:l.meta.dot,brackets:l.meta.brackets}}),JsdocTypeNullable:l=>l,JsdocTypeUnion:(l,m)=>({type:"JsdocTypeUnion",elements:l.elements.map(m)}),JsdocTypeUnknown:l=>l,JsdocTypeUndefined:l=>l,JsdocTypeTypeof:(l,m)=>({type:"JsdocTypeTypeof",element:m(l.element)}),JsdocTypeSymbol:(l,m)=>{let v={type:"JsdocTypeSymbol",value:l.value};return l.element!==void 0&&(v.element=m(l.element)),v},JsdocTypeOptional:(l,m)=>({type:"JsdocTypeOptional",element:m(l.element),meta:{position:l.meta.position}}),JsdocTypeObject:(l,m)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:l.elements.map(m)}),JsdocTypeNumber:l=>l,JsdocTypeNull:l=>l,JsdocTypeNotNullable:(l,m)=>({type:"JsdocTypeNotNullable",element:m(l.element),meta:{position:l.meta.position}}),JsdocTypeSpecialNamePath:l=>l,JsdocTypeObjectField:(l,m)=>({type:"JsdocTypeObjectField",key:l.key,right:l.right===void 0?void 0:m(l.right),optional:l.optional,readonly:l.readonly,meta:l.meta}),JsdocTypeJsdocObjectField:(l,m)=>({type:"JsdocTypeJsdocObjectField",left:m(l.left),right:m(l.right)}),JsdocTypeKeyValue:(l,m)=>({type:"JsdocTypeKeyValue",key:l.key,right:l.right===void 0?void 0:m(l.right),optional:l.optional,variadic:l.variadic}),JsdocTypeImport:(l,m)=>({type:"JsdocTypeImport",element:m(l.element)}),JsdocTypeAny:l=>l,JsdocTypeStringValue:l=>l,JsdocTypeNamePath:l=>l,JsdocTypeVariadic:(l,m)=>{let v={type:"JsdocTypeVariadic",meta:{position:l.meta.position,squareBrackets:l.meta.squareBrackets}};return l.element!==void 0&&(v.element=m(l.element)),v},JsdocTypeTuple:(l,m)=>({type:"JsdocTypeTuple",elements:l.elements.map(m)}),JsdocTypeName:l=>l,JsdocTypeFunction:(l,m)=>{let v={type:"JsdocTypeFunction",arrow:l.arrow,parameters:l.parameters.map(m),constructor:l.constructor,parenthesis:l.parenthesis};return l.returnType!==void 0&&(v.returnType=m(l.returnType)),v},JsdocTypeKeyof:(l,m)=>({type:"JsdocTypeKeyof",element:m(l.element)}),JsdocTypeParenthesis:(l,m)=>({type:"JsdocTypeParenthesis",element:m(l.element)}),JsdocTypeProperty:l=>l,JsdocTypePredicate:(l,m)=>({type:"JsdocTypePredicate",left:m(l.left),right:m(l.right)}),JsdocTypeIndexSignature:(l,m)=>({type:"JsdocTypeIndexSignature",key:l.key,right:m(l.right)}),JsdocTypeMappedType:(l,m)=>({type:"JsdocTypeMappedType",key:l.key,right:m(l.right)}),JsdocTypeAsserts:(l,m)=>({type:"JsdocTypeAsserts",left:m(l.left),right:m(l.right)}),JsdocTypeReadonlyArray:(l,m)=>({type:"JsdocTypeReadonlyArray",element:m(l.element)}),JsdocTypeAssertsPlain:(l,m)=>({type:"JsdocTypeAssertsPlain",element:m(l.element)}),JsdocTypeConditional:(l,m)=>({type:"JsdocTypeConditional",checksType:m(l.checksType),extendsType:m(l.extendsType),trueType:m(l.trueType),falseType:m(l.falseType)}),JsdocTypeTypeParameter:(l,m)=>({type:"JsdocTypeTypeParameter",name:m(l.name),constraint:l.constraint!==void 0?m(l.constraint):void 0,defaultValue:l.defaultValue!==void 0?m(l.defaultValue):void 0})}}let fo={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 Dr(l,m,v,O,$){O?.(l,m,v);let H=fo[l.type];for(let Y of H){let de=l[Y];if(de!==void 0)if(Array.isArray(de))for(let pe of de)Dr(pe,l,Y,O,$);else Dr(de,l,Y,O,$)}$?.(l,m,v)}function Cs(l,m,v){Dr(l,void 0,void 0,m,v)}r.catharsisTransform=As,r.identityTransformRules=xs,r.jtpTransform=Ps,r.parse=Mr,r.stringify=fr,r.stringifyRules=X,r.transform=ht,r.traverse=Cs,r.tryParse=co,r.visitorKeys=fo}))}});const{UnknownArgTypesError:sG}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{UnknownArgTypesError:lG}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var yl;(function(e){e.start="/**",e.nostart="/***",e.delim="*",e.end="*/"})(yl=yl||(yl={}));var bV=yV(gV(),1),fn=(0,bV.stringifyRules)(),vV=fn.JsdocTypeObject;fn.JsdocTypeAny=()=>"any";fn.JsdocTypeObject=(e,t)=>`(${vV(e,t)})`;fn.JsdocTypeOptional=(e,t)=>t(e.element);fn.JsdocTypeNullable=(e,t)=>t(e.element);fn.JsdocTypeNotNullable=(e,t)=>t(e.element);fn.JsdocTypeUnion=(e,t)=>e.elements.map(t).join("|");var aT=(...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((o,i)=>(Object.entries(i).forEach(([a,s])=>{let c=o[a];Array.isArray(s)||typeof c>"u"?o[a]=s:ml(s)&&ml(c)?t[a]=!0:typeof s<"u"&&(o[a]=s)}),o),{});return Object.keys(t).forEach(o=>{let i=r.filter(Boolean).map(a=>a[o]).filter(a=>typeof a<"u");i.every(a=>ml(a))?n[o]=aT(...i):n[o]=i[i.length-1]}),n},EV=e=>{let{component:t,argTypes:r,parameters:{docs:n={}}}=e,{extractArgTypes:o}=n;if(!o||!t)return r;let i=o(t);return i?aT(i,r):r},wV="storybook/docs",uG=`${wV}/snippet-rendered`,Ca=(e=>(e.AUTO="auto",e.CODE="code",e.DYNAMIC="dynamic",e))(Ca||{});const _V={"./src/stories/Avatar.stories.ts":()=>$e(()=>import("./Avatar.stories-QxWs-YfX.js"),__vite__mapDeps([0,1]),import.meta.url),"./src/stories/AvatarGroup.stories.ts":()=>$e(()=>import("./AvatarGroup.stories-Cy_Bvn7E.js"),__vite__mapDeps([2,1]),import.meta.url),"./src/stories/Badge.stories.ts":()=>$e(()=>import("./Badge.stories-BpaApWbR.js"),__vite__mapDeps([3,1]),import.meta.url),"./src/stories/Button.stories.ts":()=>$e(()=>import("./Button.stories-C5h2usmd.js"),__vite__mapDeps([4,1]),import.meta.url),"./src/stories/CircularProgress.stories.ts":()=>$e(()=>import("./CircularProgress.stories-DlPOiGja.js"),__vite__mapDeps([5,1]),import.meta.url),"./src/stories/ClipboardMixin.stories.ts":()=>$e(()=>import("./ClipboardMixin.stories-Bb45-UOM.js"),__vite__mapDeps([6,7,1]),import.meta.url),"./src/stories/Colors.stories.ts":()=>$e(()=>import("./Colors.stories-DP2JKWUJ.js"),__vite__mapDeps([8,1]),import.meta.url),"./src/stories/ComponentStatesMixin.stories.ts":()=>$e(()=>import("./ComponentStatesMixin.stories-CyQ2aSTu.js"),__vite__mapDeps([9,7,1]),import.meta.url),"./src/stories/CopyToClipboard.stories.ts":()=>$e(()=>import("./CopyToClipboard.stories-DR7pckeV.js"),__vite__mapDeps([10,1]),import.meta.url),"./src/stories/Debounce.stories.ts":()=>$e(()=>import("./Debounce.stories-hkqyvqmg.js"),__vite__mapDeps([11,1]),import.meta.url),"./src/stories/Events.stories.ts":()=>$e(()=>import("./Events.stories-BAgDzdyl.js"),__vite__mapDeps([12,1]),import.meta.url),"./src/stories/Heading.stories.ts":()=>$e(()=>import("./Heading.stories-CN_fPsRf.js"),__vite__mapDeps([13,1]),import.meta.url),"./src/stories/Icon.stories.ts":()=>$e(()=>import("./Icon.stories-CSx_2K8V.js"),__vite__mapDeps([14,1]),import.meta.url),"./src/stories/LinearProgress.stories.ts":()=>$e(()=>import("./LinearProgress.stories-In48DY2g.js"),__vite__mapDeps([15,1]),import.meta.url),"./src/stories/ReadyMixin.stories.ts":()=>$e(()=>import("./ReadyMixin.stories-DavcxbQ0.js"),[],import.meta.url),"./src/stories/Rtc.stories.ts":()=>$e(()=>import("./Rtc.stories-19d7WXe4.js"),__vite__mapDeps([16,1]),import.meta.url),"./src/stories/ScrollShadow.stories.ts":()=>$e(()=>import("./ScrollShadow.stories-BFjracVd.js"),__vite__mapDeps([17,1]),import.meta.url),"./src/stories/Throttle.stories.ts":()=>$e(()=>import("./Throttle.stories-DD6ydiVq.js"),__vite__mapDeps([18,1]),import.meta.url),"./src/stories/onFind.stories.ts":()=>$e(()=>import("./onFind.stories-BMDLUk0l.js"),__vite__mapDeps([19,20,21,1]),import.meta.url),"./src/stories/onRemove.stories.ts":()=>$e(()=>import("./onRemove.stories-C3FcxtYh.js"),__vite__mapDeps([22,1]),import.meta.url),"./src/stories/onVisible.stories.ts":()=>$e(()=>import("./onVisible.stories-B8Zyu0Th.js"),__vite__mapDeps([23,20,21,1]),import.meta.url)};async function TV(e){return await _V[e]()}var SV=Object.defineProperty,sT=(e,t)=>{for(var r in t)SV(e,r,{get:t[r],enumerable:!0})};const ta=globalThis,$d=ta.ShadowRoot&&(ta.ShadyCSS===void 0||ta.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,lT=Symbol(),um=new WeakMap;let AV=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==lT)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o;const r=this.t;if($d&&t===void 0){const n=r!==void 0&&r.length===1;n&&(t=um.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&um.set(r,t))}return t}toString(){return this.cssText}};const RV=e=>new AV(typeof e=="string"?e:e+"",void 0,lT),OV=(e,t)=>{if($d)e.adoptedStyleSheets=t.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(const r of t){const n=document.createElement("style"),o=ta.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)}},cm=$d?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(const n of t.cssRules)r+=n.cssText;return RV(r)})(e):e;const{is:PV,defineProperty:xV,getOwnPropertyDescriptor:CV,getOwnPropertyNames:NV,getOwnPropertySymbols:IV,getPrototypeOf:jV}=Object,Es=globalThis,dm=Es.trustedTypes,qV=dm?dm.emptyScript:"",MV=Es.reactiveElementPolyfillSupport,Lo=(e,t)=>e,Pu={toAttribute(e,t){switch(t){case Boolean:e=e?qV:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},uT=(e,t)=>!PV(e,t),pm={attribute:!0,type:String,converter:Pu,reflect:!1,useDefault:!1,hasChanged:uT};Symbol.metadata??=Symbol("metadata"),Es.litPropertyMetadata??=new WeakMap;let yn=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=pm){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(t,r),!r.noAccessor){const n=Symbol(),o=this.getPropertyDescriptor(t,n,r);o!==void 0&&xV(this.prototype,t,o)}}static getPropertyDescriptor(t,r,n){const{get:o,set:i}=CV(this.prototype,t)??{get(){return this[r]},set(a){this[r]=a}};return{get:o,set(a){const s=o?.call(this);i?.call(this,a),this.requestUpdate(t,s,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??pm}static _$Ei(){if(this.hasOwnProperty(Lo("elementProperties")))return;const t=jV(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Lo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Lo("properties"))){const r=this.properties,n=[...NV(r),...IV(r)];for(const o of n)this.createProperty(o,r[o])}const t=this[Symbol.metadata];if(t!==null){const r=litPropertyMetadata.get(t);if(r!==void 0)for(const[n,o]of r)this.elementProperties.set(n,o)}this._$Eh=new Map;for(const[r,n]of this.elementProperties){const o=this._$Eu(r,n);o!==void 0&&this._$Eh.set(o,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const r=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const o of n)r.unshift(cm(o))}else t!==void 0&&r.push(cm(t));return r}static _$Eu(t,r){const n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,r=this.constructor.elementProperties;for(const n of r.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return OV(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$ET(t,r){const n=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,n);if(o!==void 0&&n.reflect===!0){const i=(n.converter?.toAttribute!==void 0?n.converter:Pu).toAttribute(r,n.type);this._$Em=t,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(t,r){const n=this.constructor,o=n._$Eh.get(t);if(o!==void 0&&this._$Em!==o){const i=n.getPropertyOptions(o),a=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:Pu;this._$Em=o;const s=a.fromAttribute(r,i.type);this[o]=s??this._$Ej?.get(o)??s,this._$Em=null}}requestUpdate(t,r,n){if(t!==void 0){const o=this.constructor,i=this[t];if(n??=o.getPropertyOptions(t),!((n.hasChanged??uT)(i,r)||n.useDefault&&n.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,n))))return;this.C(t,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,r,{useDefault:n,reflect:o,wrapped:i},a){n&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,a??r??this[t]),i!==!0||a!==void 0)||(this._$AL.has(t)||(this.hasUpdated||n||(r=void 0),this._$AL.set(t,r)),o===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[o,i]of this._$Ep)this[o]=i;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[o,i]of n){const{wrapped:a}=i,s=this[o];a!==!0||this._$AL.has(o)||s===void 0||this.C(o,void 0,i,s)}}let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$EO?.forEach((n=>n.hostUpdate?.())),this.update(r)):this._$EM()}catch(n){throw t=!1,this._$EM(),n}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$EO?.forEach((r=>r.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((r=>this._$ET(r,this[r]))),this._$EM()}updated(t){}firstUpdated(t){}};yn.elementStyles=[],yn.shadowRootOptions={mode:"open"},yn[Lo("elementProperties")]=new Map,yn[Lo("finalized")]=new Map,MV?.({ReactiveElement:yn}),(Es.reactiveElementVersions??=[]).push("2.1.1");const Bd=globalThis,Na=Bd.trustedTypes,fm=Na?Na.createPolicy("lit-html",{createHTML:e=>e}):void 0,cT="$lit$",Tr=`lit$${Math.random().toFixed(9).slice(2)}$`,dT="?"+Tr,kV=`<${dT}>`,sn=document,ai=()=>sn.createComment(""),si=e=>e===null||typeof e!="object"&&typeof e!="function",Fd=Array.isArray,LV=e=>Fd(e)||typeof e?.[Symbol.iterator]=="function",gl=`[
1017
+ \f\r]`,_o=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,hm=/-->/g,mm=/>/g,Ur=RegExp(`>|${gl}(?:([^\\s"'>=/]+)(${gl}*=${gl}*(?:[^
1018
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ym=/'/g,gm=/"/g,pT=/^(?:script|style|textarea|title)$/i,DV=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),fT=DV(1),ln=Symbol.for("lit-noChange"),Ve=Symbol.for("lit-nothing"),bm=new WeakMap,Wr=sn.createTreeWalker(sn,129);function hT(e,t){if(!Fd(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return fm!==void 0?fm.createHTML(t):t}const $V=(e,t)=>{const r=e.length-1,n=[];let o,i=t===2?"<svg>":t===3?"<math>":"",a=_o;for(let s=0;s<r;s++){const c=e[s];let u,d,p=-1,f=0;for(;f<c.length&&(a.lastIndex=f,d=a.exec(c),d!==null);)f=a.lastIndex,a===_o?d[1]==="!--"?a=hm:d[1]!==void 0?a=mm:d[2]!==void 0?(pT.test(d[2])&&(o=RegExp("</"+d[2],"g")),a=Ur):d[3]!==void 0&&(a=Ur):a===Ur?d[0]===">"?(a=o??_o,p=-1):d[1]===void 0?p=-2:(p=a.lastIndex-d[2].length,u=d[1],a=d[3]===void 0?Ur:d[3]==='"'?gm:ym):a===gm||a===ym?a=Ur:a===hm||a===mm?a=_o:(a=Ur,o=void 0);const h=a===Ur&&e[s+1].startsWith("/>")?" ":"";i+=a===_o?c+kV:p>=0?(n.push(u),c.slice(0,p)+cT+c.slice(p)+Tr+h):c+Tr+(p===-2?s:h)}return[hT(e,i+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class li{constructor({strings:t,_$litType$:r},n){let o;this.parts=[];let i=0,a=0;const s=t.length-1,c=this.parts,[u,d]=$V(t,r);if(this.el=li.createElement(u,n),Wr.currentNode=this.el.content,r===2||r===3){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(o=Wr.nextNode())!==null&&c.length<s;){if(o.nodeType===1){if(o.hasAttributes())for(const p of o.getAttributeNames())if(p.endsWith(cT)){const f=d[a++],h=o.getAttribute(p).split(Tr),y=/([.?@])?(.*)/.exec(f);c.push({type:1,index:i,name:y[2],strings:h,ctor:y[1]==="."?FV:y[1]==="?"?UV:y[1]==="@"?JV:ws}),o.removeAttribute(p)}else p.startsWith(Tr)&&(c.push({type:6,index:i}),o.removeAttribute(p));if(pT.test(o.tagName)){const p=o.textContent.split(Tr),f=p.length-1;if(f>0){o.textContent=Na?Na.emptyScript:"";for(let h=0;h<f;h++)o.append(p[h],ai()),Wr.nextNode(),c.push({type:2,index:++i});o.append(p[f],ai())}}}else if(o.nodeType===8)if(o.data===dT)c.push({type:2,index:i});else{let p=-1;for(;(p=o.data.indexOf(Tr,p+1))!==-1;)c.push({type:7,index:i}),p+=Tr.length-1}i++}}static createElement(t,r){const n=sn.createElement("template");return n.innerHTML=t,n}}function $n(e,t,r=e,n){if(t===ln)return t;let o=n!==void 0?r._$Co?.[n]:r._$Cl;const i=si(t)?void 0:t._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),i===void 0?o=void 0:(o=new i(e),o._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=o:r._$Cl=o),o!==void 0&&(t=$n(e,o._$AS(e,t.values),o,n)),t}class BV{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:r},parts:n}=this._$AD,o=(t?.creationScope??sn).importNode(r,!0);Wr.currentNode=o;let i=Wr.nextNode(),a=0,s=0,c=n[0];for(;c!==void 0;){if(a===c.index){let u;c.type===2?u=new Si(i,i.nextSibling,this,t):c.type===1?u=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(u=new VV(i,this,t)),this._$AV.push(u),c=n[++s]}a!==c?.index&&(i=Wr.nextNode(),a++)}return Wr.currentNode=sn,o}p(t){let r=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}}class Si{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,o){this.type=2,this._$AH=Ve,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=$n(this,t,r),si(t)?t===Ve||t==null||t===""?(this._$AH!==Ve&&this._$AR(),this._$AH=Ve):t!==this._$AH&&t!==ln&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):LV(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Ve&&si(this._$AH)?this._$AA.nextSibling.data=t:this.T(sn.createTextNode(t)),this._$AH=t}$(t){const{values:r,_$litType$:n}=t,o=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=li.createElement(hT(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(r);else{const i=new BV(o,this),a=i.u(this.options);i.p(r),this.T(a),this._$AH=i}}_$AC(t){let r=bm.get(t.strings);return r===void 0&&bm.set(t.strings,r=new li(t)),r}k(t){Fd(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let n,o=0;for(const i of t)o===r.length?r.push(n=new Si(this.O(ai()),this.O(ai()),this,this.options)):n=r[o],n._$AI(i),o++;o<r.length&&(this._$AR(n&&n._$AB.nextSibling,o),r.length=o)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){const n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}}class ws{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,o,i){this.type=1,this._$AH=Ve,this._$AN=void 0,this.element=t,this.name=r,this._$AM=o,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Ve}_$AI(t,r=this,n,o){const i=this.strings;let a=!1;if(i===void 0)t=$n(this,t,r,0),a=!si(t)||t!==this._$AH&&t!==ln,a&&(this._$AH=t);else{const s=t;let c,u;for(t=i[0],c=0;c<i.length-1;c++)u=$n(this,s[n+c],r,c),u===ln&&(u=this._$AH[c]),a||=!si(u)||u!==this._$AH[c],u===Ve?t=Ve:t!==Ve&&(t+=(u??"")+i[c+1]),this._$AH[c]=u}a&&!o&&this.j(t)}j(t){t===Ve?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class FV extends ws{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Ve?void 0:t}}class UV extends ws{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Ve)}}class JV extends ws{constructor(t,r,n,o,i){super(t,r,n,o,i),this.type=5}_$AI(t,r=this){if((t=$n(this,t,r,0)??Ve)===ln)return;const n=this._$AH,o=t===Ve&&n!==Ve||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==Ve&&(n===Ve||o);o&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class VV{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){$n(this,t)}}const HV=Bd.litHtmlPolyfillSupport;HV?.(li,Si),(Bd.litHtmlVersions??=[]).push("3.3.1");const Ia=(e,t,r)=>{const n=r?.renderBefore??t;let o=n._$litPart$;if(o===void 0){const i=r?.renderBefore??null;n._$litPart$=o=new Si(t.insertBefore(ai(),i),i,void 0,r??{})}return o._$AI(e),o};const Ud=globalThis;let ra=class extends yn{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ia(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ln}};ra._$litElement$=!0,ra.finalized=!0,Ud.litElementHydrateSupport?.({LitElement:ra});const GV=Ud.litElementPolyfillSupport;GV?.({LitElement:ra});(Ud.litElementVersions??=[]).push("4.2.1");const zV=(e,t)=>t===void 0?e?._$litType$!==void 0:e?._$litType$===t,WV=e=>e.strings===void 0;function KV(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var o=n.reduce(function(s,c){var u=c.match(/\n([\t ]+|(?!\s).)/g);return u?s.concat(u.map(function(d){var p,f;return(f=(p=d.match(/[\t ]/g))===null||p===void 0?void 0:p.length)!==null&&f!==void 0?f:0})):s},[]);if(o.length){var i=new RegExp(`
1019
+ [ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(s){return s.replace(i,`
1020
+ `)})}n[0]=n[0].replace(/^\r?\n/,"");var a=n[0];return t.forEach(function(s,c){var u=a.match(/(?:^|\n)( *)$/),d=u?u[1]:"",p=s;typeof s=="string"&&s.includes(`
1021
+ `)&&(p=String(s).split(`
1022
+ `).map(function(f,h){return h===0?f:""+d+f}).join(`
1023
+ `)),a+=p+n[c+1]}),a}var YV={};sT(YV,{parameters:()=>gT,render:()=>mT,renderToCanvas:()=>yT});const{global:XV}=__STORYBOOK_MODULE_GLOBAL__,{simulateDOMContentLoaded:QV,simulatePageLoad:vm}=__STORYBOOK_MODULE_PREVIEW_API__;var{Node:ZV}=XV,mT=(e,t)=>{let{id:r,component:n}=t;if(!n)throw new Error(`Unable to render story ${r} as the component annotation is missing from the default export`);let o=document.createElement(n);return Object.entries(e).forEach(([i,a])=>{o[i]=a}),o};function yT({storyFn:e,kind:t,name:r,showMain:n,showError:o,forceRemount:i},a){let s=e();if(n(),zV(s)){(i||!a.querySelector('[id="root-inner"]'))&&(a.innerHTML='<div id="root-inner"></div>');let c=a.querySelector('[id="root-inner"]');Ia(s,c),vm(a)}else if(typeof s=="string")a.innerHTML=s,vm(a);else if(s instanceof ZV){if(a.firstChild===s&&!i)return;a.innerHTML="",a.appendChild(s),QV()}else o({title:`Expecting an HTML snippet or DOM node from the story: "${r}" of "${t}".`,description:KV`
1024
+ Did you forget to return the HTML snippet from the story?
1025
+ Use "() => <your snippet or node>" or when defining the story.
1026
+ `})}var gT={renderer:"web-components"};const eH=Object.freeze(Object.defineProperty({__proto__:null,parameters:gT,render:mT,renderToCanvas:yT},Symbol.toStringTag,{value:"Module"}));var tH={};sT(tH,{decorators:()=>bT,parameters:()=>vT});const{emitTransformCode:rH,useEffect:nH}=__STORYBOOK_MODULE_PREVIEW_API__;var oH=/<!--\?lit\$[0-9]+\$-->|<!--\??-->/g;function iH(e){let t=e?.parameters.docs?.source,r=e?.parameters.__isArgsStory;return t?.type===Ca.DYNAMIC?!1:!r||t?.code||t?.type===Ca.CODE}function aH(e,t){let r=e(),n=t?.parameters.docs?.source?.excludeDecorators?t.originalStoryFn(t.args,t):r,o;if(nH(()=>{o&&rH(o,t)}),!iH(t)){let i=window.document.createElement("div");n instanceof DocumentFragment?Ia(n.cloneNode(!0),i):Ia(n,i),o=i.innerHTML.replace(oH,"")}return r}var bT=[aH],vT={docs:{source:{type:Ca.DYNAMIC,language:"html"},story:{inline:!0}}};const{global:sH}=__STORYBOOK_MODULE_GLOBAL__,{global:lH}=__STORYBOOK_MODULE_GLOBAL__;var{window:uH}=lH;uH.STORYBOOK_ENV="web-components";const{global:xu}=__STORYBOOK_MODULE_GLOBAL__;function ET(e){if(!e)return!1;if(typeof e=="string")return!0;throw new Error('Provided component needs to be a string. e.g. component: "my-element"')}function wT(e){if(!e)return!1;if(e.tags&&Array.isArray(e.tags)||e.modules&&Array.isArray(e.modules))return!0;throw new Error(`You need to setup valid meta data in your config.js via setCustomElements().
1027
+ See the readme of addon-docs for web components for more details.`)}function cH(e){xu.__STORYBOOK_CUSTOM_ELEMENTS_MANIFEST__=e}function _T(){return xu.__STORYBOOK_CUSTOM_ELEMENTS__||xu.__STORYBOOK_CUSTOM_ELEMENTS_MANIFEST__}const{setProjectAnnotations:fG,setDefaultProjectAnnotations:hG}=__STORYBOOK_MODULE_PREVIEW_API__;var{window:dH,EventSource:pH}=sH;typeof module<"u"&&module?.hot?.decline&&(module.hot.decline(),new pH("__webpack_hmr").addEventListener("message",function(e){try{let{action:t}=JSON.parse(e.data);t==="built"&&dH.location.reload()}catch{}}));var fH="Invariant failed";function hH(e,t){if(!e)throw new Error(fH)}const{logger:TT}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function ST(e,t){let r;switch(t){case"attributes":case"properties":r={name:e.type?.text||e.type};break;case"slots":r={name:"string"};break;default:r={name:"void"};break}return{name:e.name,required:!1,description:e.description,type:r,table:{category:t,type:{summary:e.type?.text||e.type},defaultValue:{summary:e.default!==void 0?e.default:e.defaultValue}}}}function mH(e){let t=e.name.replace(/(-|_|:|\.|\s)+(.)?/g,(r,n,o)=>o?o.toUpperCase():"").replace(/^([A-Z])/,r=>r.toLowerCase());return t=`on${t.charAt(0).toUpperCase()+t.substr(1)}`,[{name:t,action:{name:e.name},table:{disable:!0}},ST(e,"events")]}function Jr(e,t){return e&&e.filter(r=>r&&r.name).reduce((r,n)=>{if(n.kind==="method")return r;switch(t){case"events":mH(n).forEach(o=>{hH(o.name),r[o.name]=o});break;default:r[n.name]=ST(n,t);break}return r},{})}var yH=(e,t)=>{if(!ET(e)||!wT(t))return null;let r=t.tags.find(n=>n.name.toUpperCase()===e.toUpperCase());return r||TT.warn(`Component not found in custom-elements.json: ${e}`),r},gH=(e,t)=>{if(!ET(e)||!wT(t))return null;let r;return t?.modules?.forEach(n=>{n?.declarations?.forEach(o=>{o.tagName===e&&(r=o)})}),r||TT.warn(`Component not found in custom-elements.json: ${e}`),r},AT=(e,t)=>t?.version==="experimental"?yH(e,t):gH(e,t),bH=(e,t)=>{let r=AT(e,t);return r&&{...Jr(r.members??[],"properties"),...Jr(r.properties??[],"properties"),...Jr(r.attributes??[],"attributes"),...Jr(r.events??[],"events"),...Jr(r.slots??[],"slots"),...Jr(r.cssProperties??[],"css custom properties"),...Jr(r.cssParts??[],"css shadow parts")}},vH=e=>{let t=_T();return bH(e,t)},EH=e=>{let t=AT(e,_T());return t&&t.description},wH={docs:{extractArgTypes:vH,extractComponentDescription:EH}},_H=[EV];const TH=Object.freeze(Object.defineProperty({__proto__:null,argTypesEnhancers:_H,parameters:wH},Symbol.toStringTag,{value:"Module"})),SH=Object.freeze(Object.defineProperty({__proto__:null,decorators:bT,parameters:vT},Symbol.toStringTag,{value:"Module"}));var AH=Object.create,Jd=Object.defineProperty,RH=Object.getOwnPropertyDescriptor,RT=Object.getOwnPropertyNames,OH=Object.getPrototypeOf,PH=Object.prototype.hasOwnProperty,mG=(e,t)=>function(){return t||(0,e[RT(e)[0]])((t={exports:{}}).exports,t),t.exports},xH=(e,t)=>{for(var r in t)Jd(e,r,{get:t[r],enumerable:!0})},CH=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of RT(t))!PH.call(e,o)&&o!==r&&Jd(e,o,{get:()=>t[o],enumerable:!(n=RH(t,o))||n.enumerable});return e},yG=(e,t,r)=>(r=e!=null?AH(OH(e)):{},CH(Jd(r,"default",{value:e,enumerable:!0}),e)),NH={};xH(NH,{parameters:()=>OT});var IH=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((e,t)=>{let[r,n]=t;return n.excludeFromDocsStories&&(e[r]=!0),e},{}),OT={docs:{renderer:async()=>{let{DocsRenderer:e}=await $e(async()=>{const{DocsRenderer:t}=await import("./DocsRenderer-LL677BLK-Dtw9GMer.js").then(r=>r.D);return{DocsRenderer:t}},__vite__mapDeps([24,1,21]),import.meta.url);return new e},stories:{filter:e=>(e.tags||[]).filter(t=>IH[t]).length===0&&!e.parameters.docs?.disable}}};const jH=Object.freeze(Object.defineProperty({__proto__:null,parameters:OT},Symbol.toStringTag,{value:"Module"}));const PT={CHILD:2},xT=e=>(...t)=>({_$litDirective$:e,values:t});class CT{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,n){this._$Ct=t,this._$AM=r,this._$Ci=n}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}}const Do=(e,t)=>{const r=e._$AN;if(r===void 0)return!1;for(const n of r)n._$AO?.(t,!1),Do(n,t);return!0},ja=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while(r?.size===0)},NT=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(r===void 0)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),kH(t)}};function qH(e){this._$AN!==void 0?(ja(this),this._$AM=e,NT(this)):this._$AM=e}function MH(e,t=!1,r=0){const n=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(n))for(let i=r;i<n.length;i++)Do(n[i],!1),ja(n[i]);else n!=null&&(Do(n,!1),ja(n));else Do(this,e)}const kH=e=>{e.type==PT.CHILD&&(e._$AP??=MH,e._$AQ??=qH)};class LH extends CT{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,n){super._$AT(t,r,n),NT(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(Do(this,t),ja(this))}setValue(t){if(WV(this._$Ct))this._$Ct._$AI(t,this);else{const r=[...this._$Ct._$AH];r[this._$Ci]=t,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}}const IT=Symbol.for(""),DH=e=>{if(e?.r===IT)return e?._$litStatic$},Po=e=>({_$litStatic$:e,r:IT}),Em=new Map,$H=e=>(t,...r)=>{const n=r.length;let o,i;const a=[],s=[];let c,u=0,d=!1;for(;u<n;){for(c=t[u];u<n&&(i=r[u],(o=DH(i))!==void 0);)c+=o+t[++u],d=!0;u!==n&&s.push(i),a.push(c),u++}if(u===n&&a.push(t[n]),d){const p=a.join("$$lit$$");(t=Em.get(p))===void 0&&(a.raw=a,Em.set(p,t=a)),r=s}return e(t,...r)},wm=$H(fT);class Cu extends CT{constructor(t){if(super(t),this.it=Ve,t.type!==PT.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Ve||t==null)return this._t=void 0,this.it=t;if(t===ln)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const r=[t];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}}Cu.directiveName="unsafeHTML",Cu.resultType=1;const jT=xT(Cu);var BH=class extends LH{constructor(){super(...arguments),this.prevData={}}render(e){return Ve}update(e,[t]){this.element!==e.element&&(this.element=e.element),this.host=e.options?.host||this.element,this.apply(t),this.groom(t),this.prevData={...t}}apply(e){if(!e)return;const{prevData:t,element:r}=this;for(const n in e){const o=e[n];o!==t[n]&&qa(r,n,o)}}groom(e){const{prevData:t,element:r}=this;if(t)for(const n in t)(!e||!(n in e)&&r[n]===t[n])&&qa(r,n,void 0)}},FH=class extends BH{constructor(){super(...arguments),this.eventData={}}apply(e){if(e)for(const t in e){const r=e[t];r!==this.eventData[t]&&this.applyEvent(t,r)}}applyEvent(e,t){const{prevData:r,element:n}=this;this.eventData[e]=t,r[e]&&n.removeEventListener(e,this,t),n.addEventListener(e,this,t)}groom(e){const{prevData:t,element:r}=this;if(t)for(const n in t)(!e||!(n in e)&&r[n]===t[n])&&this.groomEvent(n,t[n])}groomEvent(e,t){const{element:r}=this;delete this.eventData[e],r.removeEventListener(e,this,t)}handleEvent(e){const t=this.eventData[e.type];typeof t=="function"?t.call(this.host,e):t.handleEvent(e)}disconnected(){const{eventData:e,element:t}=this;for(const r in e){const n=r.slice(1),o=e[r];t.removeEventListener(n,this,o)}}reconnected(){const{eventData:e,element:t}=this;for(const r in e){const n=r.slice(1),o=e[r];t.addEventListener(n,this,o)}}},UH=class extends FH{apply(e){if(!e)return;const{prevData:t,element:r}=this;for(const n in e){const o=e[n];if(o===t[n])continue;const i=n.slice(1);switch(n[0]){case"@":this.eventData[i]=o,this.applyEvent(i,o);break;case".":qa(r,i,o);break;case"?":o?r.setAttribute(i,""):r.removeAttribute(i);break;default:o?r.setAttribute(n,String(o)):r.removeAttribute(n);break}}}groom(e){const{prevData:t,element:r}=this;if(t)for(const n in t){const o=n.slice(1);if(!e||!(n in e)&&r[o]===t[n])switch(n[0]){case"@":this.groomEvent(o,t[n]);break;case".":qa(r,o,void 0);break;case"?":r.removeAttribute(o);break;default:r.removeAttribute(n);break}}}};function qa(e,t,r){try{e[t]=r}catch(n){console.warn(`Could not set property "${t}" on ${e.tagName} because it has no "setter".`,n)}}var JH=xT(UH);const{useArgs:VH}=__STORYBOOK_MODULE_PREVIEW_API__;var HH=new Set(["AnimationEvent","BeforeUnloadEvent","ClipboardEvent","DragEvent","Event","FocusEvent","HashChangeEvent","InputEvent","KeyboardEvent","MessageEvent","MouseEvent","MutationObserver","PageTransitionEvent","PointerEvent","PopStateEvent","ProgressEvent","StorageEvent","TouchEvent","TransitionEvent","UIEvent","WebGLContextEvent","WheelEvent"]);function GH(e,t=[]){return(e.modules?.map(r=>r.declarations?.filter(n=>n.customElement)?.flat())?.flat()||[]).filter(r=>r&&!t?.includes(r.name))}function zH(e,t){return GH(e).find(r=>r?.tagName===t)}function WH(e){const t=o=>o.name+r(o)+n(o),r=o=>o.type?.text?`${o.optional?"?":""}: ${o.type?.text}`:"",n=o=>o.default?` = ${o.default}`:"";return e?.members?.filter(o=>o.kind==="method"&&o.privacy!=="private"&&o.privacy!=="protected"&&!o.name.startsWith("#"))?.map(o=>(o.type={text:`${o.name}(${o.parameters?.map(i=>t(i)).join(", ")||""}) => ${o.return?.type?.text||"void"}`},o))}function KH(e,t={}){return e?.events?.map(n=>{const o=n[`${t.customEventDetailTypePropName}`]?.text||n.type?.text,i=t.overrideCustomEventType?o||"CustomEvent":HH.has(o)?o:o&&o!=="CustomEvent"?`CustomEvent<${o}>`:"CustomEvent";return{...n,type:{text:i}}})||[]}function YH(e,t){if(!t)return e||"";const r=e?`- ${e}`:"";return typeof t=="string"?`@deprecated ${t} ${r}`:`@deprecated ${r}`}function ui(e){return e.trim().replace(/^["'](.+(?=["']$))["']$/,"$1")}var Bn={};setTimeout(()=>{Bn=globalThis?.__WC_STORYBOOK_HELPERS_CONFIG__||{}});function Vd(e,t=!0){const r={},n={},o={};return e?.members?.forEach(i=>{if(i.kind!=="field")return;const a=e.attributes?.find(g=>i.name===g.fieldName),s=i.name,c=a?n:o;if(r[s]={name:s,table:{disable:!0}},i.privacy==="private"||i.privacy==="protected"||i.static)return;const u=a?.name||i.name,d=Bn.typeRef&&i[`${Bn.typeRef}`]?.text||i?.type?.text,p=LT(d),f=i.readonly?void 0:ui(i.default||""),h=kT(p,a!==void 0);c[u]={name:u,description:_s(i.description,s,i.deprecated),defaultValue:f?f==="''"?"":h==="object"?JSON.parse(t3(f)):f:void 0,control:t&&!i.readonly&&h?{type:h}:!1,table:{category:a?"attributes":"properties",defaultValue:{summary:f},type:{summary:d}}};const y=p?.split("|");y&&y?.length>1&&(c[u].options=y.map(g=>ui(g)))}),{resets:r,propArgs:o,attrArgs:n}}function XH(e,t=!0){const r={},n={};return e?.members?.forEach(o=>{if(o.kind!=="field"||(r[o.name]={name:o.name,table:{disable:!0}},o.privacy==="private"||o.privacy==="protected"||o.static))return;const i=Bn.typeRef&&o[`${Bn.typeRef}`]?.text||o?.type?.text,a=LT(i),s=`${o.name}`,c=kT(a);n[s]={name:o.name,description:o.description,defaultValue:ZH(c,o.default),control:t&&!o.readonly&&c?{type:c}:!1,table:{category:"properties",defaultValue:{summary:ui(o.default||"")},type:{summary:i}}};const u=a?.split("|");u&&u?.length>1&&(n[s].options=u.map(d=>ui(d)))}),delete n.ref,{resets:r,args:n}}function qT(e){const t={};return e?.events?.forEach(r=>{const n=`on${r.name}`;t[n]={name:n,description:r.description,control:!1,table:{category:"events"}}}),{args:t}}function Hd(e,t=!0){const r={},n={};return e?.cssProperties?.forEach(o=>{r[o.name]={name:o.name,table:{disable:!0}}}),e?.cssProperties?.forEach(o=>{n[o.name]={name:o.name,description:o.description,defaultValue:o.default,control:t?{type:o.name?.toLowerCase()?.includes("color")?"color":"text"}:!1,table:{category:"css properties"}}}),{resets:r,args:n}}function Gd(e,t=!0){const r={},n={};return e?.cssParts?.forEach(o=>{r[o.name]={name:o.name,table:{disable:!0}},n[`${o.name}-part`]={name:o.name,description:_s(o.description,t?`${o.name}-part`:""),control:t?"text":!1,table:{category:"css shadow parts"}}}),{resets:r,args:n}}function zd(e,t=!0){const r={},n={};return e?.cssStates?.forEach(o=>{r[o.name]={name:o.name,table:{disable:!0}},n[`${o.name}-state`]={name:o.name,description:_s(o.description,t?`${o.name}-state`:""),control:t?"text":!1,table:{category:"css states"}}}),{resets:r,args:n}}function Wd(e,t=!0){const r={},n={};return e?.slots?.forEach(o=>{r[o.name]={name:o.name,table:{disable:!0}};const i=o.name||"default";n[`${i}-slot`]={name:i,description:_s(o.description,t?`${i}-slot`:""),control:t?"text":!1,table:{category:"slots"}}}),{resets:r,args:n}}function QH(e){const t={},r={};return e?.events?.forEach(o=>{r[o.name]={name:o.name,table:{disable:!0}}}),KH(e)?.forEach(o=>{t[`${o.name}-event`]={name:o.name,description:o.description,control:!1,table:{category:"events",type:{summary:o.type.text}}}}),{resets:r,args:t}}function MT(e){const t={};return WH(e)?.forEach(n=>{t[`${n.name}-method`]={name:n.name,description:n.description,control:!1,table:{category:"methods",type:{summary:n.type.text}}}}),{args:t}}function ZH(e,t){const r=ui(t||"");return e==="boolean"?r==="true":r==="''"?"":r}function kT(e,t=!1){if(!e)return"text";const r=e.toLowerCase(),n=r.split("|").map(o=>o.trim()).filter(o=>o!==""&&o!=="null"&&o!=="undefined");return e3(r)&&!t?"object":Ji(n,"boolean")?"boolean":Ji(n,"number")&&!Ji(n,"string")?"number":Ji(n,"date")?"date":n.length>1?"select":"text"}function e3(e){return e.includes("array")||e.includes("object")||e.includes("{")||e.includes("[")||e.includes("<")}function Ji(e=[],t){return e?.find(r=>r===t)!==void 0}function LT(e){return e?e.replace(" | undefined","").replace(" | null","").replace(" | void","").replace(" | any","").replace(" | unknown","").replace(" | string & {}","|").replace(" | (string & {})","|").replace(" | string","|").replace(" | number","|").replace(" | boolean","|").replace(" | object","|").replace(" | Function","|").replace(" | {}","|").replace(" | []","|"):""}function _s(e,t,r){let n=YH(e,r);return Bn.hideArgRef||!t?n:n+=`
1028
+
1029
+
1030
+ arg ref - \`${t}\``}function t3(e){return e.replace(/'([^']+)'/g,'"$1"').replace(/([{,]\s*)(\w+)\s*:/g,'$1"$2":').replace(/,\s*(}|])/g,"$1")}var Ma,_m,Ai={};setTimeout(()=>{Ai=globalThis?.__WC_STORYBOOK_HELPERS_CONFIG__||{}});function r3(e,t,r,n,o,i){if(!t)return wm`<${Po(e.tagName)}></${Po(e.tagName)}>`;e?.tagName!==_m&&(Ma=void 0,_m=e?.tagName);const{attrOperators:a,propOperators:s,additionalAttrs:c}=n3(e,t,n),u={...a,...s,...c},d=s3(e,t,o);return l3(e),wm`${DT(e,t,o)}
1031
+ <${Po(e.tagName)} ${JH(u)}>${d}${r||""}</${Po(e.tagName)}>
1032
+ ${Ai.setComponentVariable||i?jT(`<script>
1033
+ window.component = document.querySelector('`+e.tagName+`');
1034
+ <\/script>`):""}
1035
+ `}function DT(e,t,r){const n=na("cssProps",r)?"":o3(e,t)||"",o=na("cssParts",r)?"":i3(e,t)||"",i=na("cssStates",r)?"":a3(e,t)||"",a=[n,o,i].filter(s=>s.length).join(`
1036
+
1037
+ `);return`${n}${o}${i}`.replace(/\s+/g,"")!==""?jT(`<style>
1038
+ ${a}
1039
+ </style>`):""}function na(e,t){return!Ai.categoryOrder?.includes(e)||t?.includes(e)||!1}function n3(e,t,r){const{propArgs:n,attrArgs:o}=Vd(e),i={},a={},s={};return Object.keys(o).forEach(c=>{const u=o[c],d=u.name,p=t[c],f=u.control.type==="boolean"?`?${d}`:d;p!==o[c].defaultValue||Ai.renderDefaultValues?i[f]=p==="false"?!1:p:i[f]=void 0}),Object.keys(t).filter(c=>n[c]).forEach(c=>{if(c.startsWith("on"))return;const u=t[c];a[`.${c}`]=u}),Object.keys(t).filter(c=>!Object.keys(r||{}).includes(c)).forEach(c=>{!c.startsWith("on")&&typeof t[c]!="function"&&(s[c]=t[c])}),{attrOperators:i,propOperators:a,additionalAttrs:s}}function o3(e,t){if(!e?.cssProperties?.length)return;const{args:r}=Hd(e),n=Object.keys(r).map(o=>{const i=t[o]===r[o].defaultValue,a=r[o].name,s=t[o];return s&&(!i||i&&Ai.renderDefaultValues)?` ${a}: ${s}`:null}).filter(o=>o!==null).join(`;
1040
+ `);return n?` ${e.tagName} {
1041
+ ${n};
1042
+ }`:""}function i3(e,t){if(!e?.cssParts?.length)return;const{args:r}=Gd(e);return`${Object.keys(r).filter(n=>n.endsWith("-part")).map(n=>{const o=r[n].name,i=t[n];return i.replace(/\s+/g,"")!==""?` ${e?.tagName}::part(${o}) {
1043
+ ${i.split(`
1044
+ `).map(a=>` ${a}`).join(`
1045
+ `)}
1046
+ }`:null}).filter(n=>n!==null).join(`
1047
+
1048
+ `)}`}function a3(e,t){if(!e?.cssStates?.length)return;const{args:r}=zd(e);return`${Object.keys(r).filter(n=>n.endsWith("-state")).map(n=>{const o=r[n].name,i=t[n];return i.replace(/\s+/g,"")!==""?` ${e?.tagName}:state(${o}) {
1049
+ ${i.split(`
1050
+ `).map(a=>` ${a}`).join(`
1051
+ `)}
1052
+ }`:null}).filter(n=>n!==null).join(`
1053
+
1054
+ `)}`}function s3(e,t,r){if(!e?.slots?.length||na("slots",r))return;const{args:n}=Wd(e),o=`${Object.keys(n).filter(i=>i.endsWith("-slot")).map(i=>{const a=i==="default-slot"?null:i.slice(0,-5),s=t[i];if(!a&&s)return` ${s}`;let c="";const u=document.createElement("div");u.innerHTML=s;for(const d of u.childNodes)d instanceof Text?c+=` <span slot=${a}>${d.textContent}</span>`:d instanceof Element?(d.setAttribute("slot",a),c+=` ${d.outerHTML}`):(d.textContent?.trim()===""||d.textContent===`
1055
+ `)&&(c+=d.textContent);return c}).filter(i=>i!==null&&i!=="").join(`
1056
+ `)}`;return o.trim()?Po(`
1057
+ ${o}
1058
+ `):""}function l3(e){u3(e),setTimeout(()=>{const t=document.querySelector(e.tagName);Ma?.observe(t,{attributes:!0})})}function u3(e){let t=!1;const r=VH()[1],{attrArgs:n}=Vd(e);Ma||(Ma=new MutationObserver(o=>{o.forEach(i=>{if(i.attributeName==="class"&&t)return;t=!0;const a=n[`${i.attributeName}`];a?.control==="boolean"||a?.control?.type==="boolean"?r({[`${i.attributeName}`]:i.target?.hasAttribute(i.attributeName||"")}):r({[`${i.attributeName}`]:i.target.getAttribute(i.attributeName||"")}),t=!1})}))}var Kd=globalThis?.__WC_STORYBOOK_HELPERS_CONFIG__||{},c3={typeRef:"parsedType",categoryOrder:["attributes","properties","slots","cssProps","cssParts","cssStates","methods","events"]};function d3(e){e={...c3,...e},globalThis.__WC_STORYBOOK_HELPERS_CONFIG__=e,Kd=e}function gG(e,t){Kd=globalThis?.__WC_STORYBOOK_HELPERS_CONFIG__||{};const r=p3(),n=f3(r,e),o=n?.events?.map(s=>s.name)||[],i=h3(n,[]);return{args:$T(i),argTypes:i,reactArgs:y3(n),reactArgTypes:BT(n),events:o,styleTemplate:s=>DT(n,s,[]),template:(s,c)=>r3(n,s,c,i,[],t?.setComponentVariable)}}function p3(){const e=window.__STORYBOOK_CUSTOM_ELEMENTS_MANIFEST__;if(!e)throw new Error(`Custom Elements Manifest not found. Be sure to follow the pre-install steps in this guide:
1059
+ https://www.npmjs.com/package/wc-storybook-helpers#before-you-install`);return e}function f3(e,t){const r=zH(e,t);if(!r)throw new Error(`A component with the tag name "${t}" was not found in the Custom Elements Manifest. If it's missing in the CEM, it's often the result of a missing "@tag" or "@tagName" tag in the component's JSDoc.
1060
+ Additional information can be found here:
1061
+ https://custom-elements-manifest.open-wc.org/analyzer/getting-started/#supported-jsdoc`);return r}function h3(e,t){const r=Hd(e),n=Gd(e),o=Wd(e),i=Vd(e),a=QH(e),s=zd(e),c=MT(e),u={attributes:i.attrArgs,cssParts:n.args,cssProps:r.args,cssStates:s.args,events:a.args,methods:c.args,properties:i.propArgs,slots:o.args},d={};return Object.assign(d,r.resets,n.resets,o.resets,i.resets,a.resets,s.resets,c.resets),Kd.categoryOrder?.forEach(p=>{t?.includes(p)||Object.assign(d,u[p])}),d}function $T(e){const t={};for(const[r,n]of Object.entries(e))n?.control&&(t[r]=m3(n.defaultValue)||"");return t}function m3(e){if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e}function BT(e,t){const r=Hd(e),n=Gd(e),o=Wd(e),i=XH(e),a=qT(e),s=zd(e),c=MT(e),u=globalThis?.__WC_STORYBOOK_HELPERS_CONFIG__||{},d={cssParts:n.args,cssProps:r.args,cssStates:s.args,events:a.args,methods:c.args,properties:i.args,slots:o.args};let p={...r.resets,...n.resets,...o.resets,...i.resets,...a.resets,...s.resets,...c.resets};return u.categoryOrder?.forEach(f=>{p={...p,...d[f]||{}}}),p}function y3(e){const t=$T(BT(e)),r=Object.entries(qT(e)).map(([n])=>({[n]:()=>{}})).reduce((n,o)=>({...n,...o}),{});return{...t,...r}}const g3="1.0.0",b3="",v3=JSON.parse(`[{"kind":"javascript-module","path":"src/components/badge/Badge.ts","declarations":[{"kind":"class","description":"A badge component for highlighting important information.\\n\\nBadges help highlight notifications, status, or new messages.\\nPrimarily used for communicating secondary or additional information.","name":"Badge","cssProperties":[{"description":"Text color (overrides theme color)","name":"--badge-color-foreground"},{"description":"Background color (overrides theme color)","name":"--badge-color-background"},{"description":"Border radius size (overrides shape default, default: 999px)","name":"--badge-radius-size"},{"description":"Horizontal padding (overrides size default)","name":"--badge-px"},{"description":"Vertical padding (overrides size default)","name":"--badge-py"},{"description":"Size of the dot affordance (default: 6px)","name":"--badge-dot-size"}],"members":[{"kind":"field","name":"variant","type":{"text":"'info' | 'primary' | 'error' | 'success' | 'warning'"},"default":"'info'","description":"Style of the badge.\\n- 'info': Informational (default)\\n- 'primary': Primary action or emphasis\\n- 'error': Error or danger state\\n- 'success': Success or completion state\\n- 'warning': Warning or caution state","attribute":"variant"},{"kind":"field","name":"dot","type":{"text":"boolean"},"default":"false","description":"Should a dot be displayed before the label?","attribute":"dot"},{"kind":"field","name":"size","type":{"text":"string"},"default":"'sm'","description":"Size variant.\\n- 'sm': Small (default)\\n- 'md': Medium\\n- 'lg': Large","attribute":"size"}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and initialization","name":"btu-badge-ready"}],"attributes":[{"name":"variant","type":{"text":"'info' | 'primary' | 'error' | 'success' | 'warning'"},"default":"'info'","description":"Style of the badge.\\n- 'info': Informational (default)\\n- 'primary': Primary action or emphasis\\n- 'error': Error or danger state\\n- 'success': Success or completion state\\n- 'warning': Warning or caution state","fieldName":"variant","attribute":"variant"},{"name":"dot","type":{"text":"boolean"},"default":"false","description":"Should a dot be displayed before the label?","fieldName":"dot","attribute":"dot"},{"name":"size","type":{"text":"string"},"default":"'sm'","description":"Size variant.\\n- 'sm': Small (default)\\n- 'md': Medium\\n- 'lg': Large","fieldName":"size","attribute":"size"}],"mixins":[{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-badge","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"Badge","module":"src/components/badge/Badge.ts"}},{"kind":"custom-element-definition","name":"btu-badge","declaration":{"name":"Badge","module":"src/components/badge/Badge.ts"}}]},{"kind":"javascript-module","path":"src/components/avatar/Avatar.ts","declarations":[{"kind":"class","description":"An avatar component for displaying user profile images with fallback support.\\n\\nAvatars display user profile images with automatic fallback to initials when\\nthe image fails to load or is not provided.","name":"Avatar","cssProperties":[{"description":"Custom size (overrides size prop)","name":"--avatar-size"},{"description":"Fallback background color (default: purple-600)","name":"--avatar-bg-color"},{"description":"How rounded is the avatar (default: circle)","name":"--avatar-corner-rounding"},{"description":"Optional ring border color","name":"--avatar-ring-color"},{"description":"Ring border width (default: 2px)","name":"--avatar-ring-width"}],"members":[{"kind":"field","name":"src","type":{"text":"string"},"default":"''","description":"Image source URL","attribute":"src"},{"kind":"field","name":"alt","type":{"text":"string"},"default":"''","description":"Alt text for the image","attribute":"alt"},{"kind":"field","name":"fallback","type":{"text":"string"},"default":"''","description":"Fallback text (typically user initials)","attribute":"fallback"},{"kind":"field","name":"size","type":{"text":"'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'"},"default":"'md'","description":"Size variant.\\n- 'xs': Extra small (1.5rem)\\n- 'sm': Small (2.25rem)\\n- 'md': Medium (2.5rem) - default\\n- 'lg': Large (3rem)\\n- 'xl': Extra large (3.5rem)\\n- 'xxl': Extra extra large (4rem)","attribute":"size"}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and initialization","name":"btu-avatar-ready"},{"type":{"text":"CustomEvent<{src: string}>"},"description":"Fired when image successfully loads","name":"btu-avatar-image-loaded"},{"type":{"text":"CustomEvent<{src: string, error: Event}>"},"description":"Fired when image fails to load","name":"btu-avatar-image-error"}],"attributes":[{"name":"src","type":{"text":"string"},"default":"''","description":"Image source URL","fieldName":"src","attribute":"src"},{"name":"alt","type":{"text":"string"},"default":"''","description":"Alt text for the image","fieldName":"alt","attribute":"alt"},{"name":"fallback","type":{"text":"string"},"default":"''","description":"Fallback text (typically user initials)","fieldName":"fallback","attribute":"fallback"},{"name":"size","type":{"text":"'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'"},"default":"'md'","description":"Size variant.\\n- 'xs': Extra small (1.5rem)\\n- 'sm': Small (2.25rem)\\n- 'md': Medium (2.5rem) - default\\n- 'lg': Large (3rem)\\n- 'xl': Extra large (3.5rem)\\n- 'xxl': Extra extra large (4rem)","fieldName":"size","attribute":"size"}],"mixins":[{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-avatar","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"Avatar","module":"src/components/avatar/Avatar.ts"}},{"kind":"custom-element-definition","name":"btu-avatar","declaration":{"name":"Avatar","module":"src/components/avatar/Avatar.ts"}}]},{"kind":"javascript-module","path":"src/components/avatar/AvatarGroup.ts","declarations":[{"kind":"class","description":"A container component for grouping multiple avatars with consistent styling.\\n\\nAvatarGroup wraps multiple avatar elements and provides:\\n- Overflow handling (shows \\"+N\\" for excess avatars)\\n- Consistent spacing and ring borders\\n- Size inheritance for all child avatars","name":"AvatarGroup","members":[{"kind":"field","name":"max","type":{"text":"number | undefined"},"description":"Maximum number of visible avatars. Remaining avatars shown as \\"+N\\"","attribute":"max"},{"kind":"field","name":"size","type":{"text":"'xs' | 'sm' | 'md'"},"default":"'md'","description":"Size variant for all child avatars (unless individually overridden)","attribute":"size"},{"kind":"method","name":"processAvatars","return":{"type":{"text":"void"}},"description":"Process all avatar children: apply size, handle overflow\\nCall this method when avatars are dynamically added or removed"}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and initialization","name":"btu-avatar-group-ready"},{"type":{"text":"CustomEvent<{hidden: number}>"},"description":"Fired when avatars are hidden due to max limit","name":"btu-avatar-group-overflow"}],"attributes":[{"name":"max","type":{"text":"number | undefined"},"description":"Maximum number of visible avatars. Remaining avatars shown as \\"+N\\"","fieldName":"max","attribute":"max"},{"name":"size","type":{"text":"'xs' | 'sm' | 'md'"},"default":"'md'","description":"Size variant for all child avatars (unless individually overridden)","fieldName":"size","attribute":"size"}],"mixins":[{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-avatar-group","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"AvatarGroup","module":"src/components/avatar/AvatarGroup.ts"}},{"kind":"custom-element-definition","name":"btu-avatar-group","declaration":{"name":"AvatarGroup","module":"src/components/avatar/AvatarGroup.ts"}}]},{"kind":"javascript-module","path":"src/components/circular-progress/CircularProgress.ts","declarations":[{"kind":"class","description":"A circular progress indicator for showing loading states or progress.","name":"CircularProgress","cssProperties":[{"description":"Custom progress indicator color (overrides theme color)","name":"--progress-color"},{"description":"Track/background color (overrides default gray-100)","name":"--track-color"},{"description":"Custom size in pixels (overrides size preset)","name":"--progress-size"}],"members":[{"kind":"field","name":"indeterminate","type":{"text":"boolean"},"default":"true","description":"Whether the progress indicator is indeterminate (animated spinner).\\nWhen false, shows determinate progress based on the progress value.","attribute":"indeterminate"},{"kind":"field","name":"size","type":{"text":"'sm' | 'md' | 'lg'"},"default":"'sm'","description":"Size variant.\\n- 'sm': Small (16px) - default\\n- 'md': Medium (32px)\\n- 'lg': Large (48px)","attribute":"size"}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and initialization","name":"btu-progress-ready"},{"type":{"text":"CustomEvent"},"description":"Fired when determinate progress reaches 100","name":"btu-progress-complete"}],"attributes":[{"name":"indeterminate","type":{"text":"boolean"},"default":"true","description":"Whether the progress indicator is indeterminate (animated spinner).\\nWhen false, shows determinate progress based on the progress value.","fieldName":"indeterminate","attribute":"indeterminate"},{"name":"size","type":{"text":"'sm' | 'md' | 'lg'"},"default":"'sm'","description":"Size variant.\\n- 'sm': Small (16px) - default\\n- 'md': Medium (32px)\\n- 'lg': Large (48px)","fieldName":"size","attribute":"size"}],"mixins":[{"name":"ProgressMixin","module":"/src/util/ProgressMixin.js"},{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-circular-progress","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"CircularProgress","module":"src/components/circular-progress/CircularProgress.ts"}},{"kind":"custom-element-definition","name":"btu-circular-progress","declaration":{"name":"CircularProgress","module":"src/components/circular-progress/CircularProgress.ts"}}]},{"kind":"javascript-module","path":"src/components/copy-to-clipboard/CopyToClipboard.ts","declarations":[{"kind":"class","description":"A button component that copies text to the system clipboard.\\n\\nProvides visual feedback when text is successfully copied by applying\\na temporary state that can be styled with CSS.","name":"CopyToClipboard","members":[{"kind":"field","name":"copydata","type":{"text":"string | undefined"},"description":"The text to be copied to the system clipboard.","attribute":"copydata"},{"kind":"field","name":"buttonClasses","type":{"text":"string | undefined"},"description":"Custom CSS classes for the button. If provided, replaces the default classes.","attribute":"buttonClasses"},{"kind":"method","name":"copy","description":"Copies the copydata to the system clipboard.\\nDisplays a success state for 3 seconds after copying."}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and initialization","name":"btu-clipboard-ready"},{"type":{"text":"CustomEvent"},"description":"Fired when text is successfully copied to clipboard","name":"btu-clipboard-copied"}],"attributes":[{"name":"copydata","type":{"text":"string | undefined"},"description":"The text to be copied to the system clipboard.","fieldName":"copydata","attribute":"copydata"},{"name":"buttonClasses","type":{"text":"string | undefined"},"description":"Custom CSS classes for the button. If provided, replaces the default classes.","fieldName":"buttonClasses","attribute":"buttonClasses"}],"mixins":[{"name":"ClipboardMixin","module":"/src/util/ClipboardMixin.js"},{"name":"ComponentStatesMixin","module":"/src/util/ComponentStatesMixin.js"},{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-copy-to-clipboard","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"CopyToClipboard","module":"src/components/copy-to-clipboard/CopyToClipboard.ts"}},{"kind":"custom-element-definition","name":"btu-copy-to-clipboard","declaration":{"name":"CopyToClipboard","module":"src/components/copy-to-clipboard/CopyToClipboard.ts"}}]},{"kind":"javascript-module","path":"src/components/icon/Icon.ts","declarations":[{"kind":"class","description":"An icon component for displaying Lucide icons.\\n\\nIcons inherit parent text color by default or can use gradient fills.\\nAll icons are from the Lucide icon library (https://lucide.dev/icons/).\\nSupports both direct SVG rendering and mask-based gradient fills.","name":"Icon","cssProperties":[{"description":"Icon size (overrides size default)","name":"--Icon-size"},{"description":"Icon fill color for filled icons (e.g., \\"currentColor\\")","name":"--Icon-fill"},{"description":"SVG data URI for mask-based rendering","name":"--Icon-svg"}],"members":[{"kind":"field","name":"tagName","static":true,"readonly":true},{"kind":"field","name":"size","type":{"text":"'xs' | 'sm' | 'md' | 'lg' | 'xl'"},"default":"'md'","description":"Size of the icon.\\n- 'xs': Extra small (0.75rem)\\n- 'sm': Small (1rem)\\n- 'md': Medium (1.25rem, default)\\n- 'lg': Large (1.5rem)\\n- 'xl': Extra large (1.75rem)","attribute":"size"},{"kind":"field","name":"symbol","type":{"text":"string"},"default":"'circle-dashed'","description":"Lucide icon name to display.\\nSee https://lucide.dev/icons/ for available icons.","attribute":"symbol"},{"kind":"field","name":"gradient","type":{"text":"'ai' | 'error' | 'gray' | 'primary' | 'purple' | 'rose' | 'success' | 'teal' | 'warning' | undefined"},"description":"Theme color to use for gradient fill.\\nWhen set, icon displays with gradient. When undefined, icon inherits parent text color.","attribute":"gradient"}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and initialization","name":"btu-icon-ready"}],"attributes":[{"name":"size","type":{"text":"'xs' | 'sm' | 'md' | 'lg' | 'xl'"},"default":"'md'","description":"Size of the icon.\\n- 'xs': Extra small (0.75rem)\\n- 'sm': Small (1rem)\\n- 'md': Medium (1.25rem, default)\\n- 'lg': Large (1.5rem)\\n- 'xl': Extra large (1.75rem)","fieldName":"size","attribute":"size"},{"name":"symbol","type":{"text":"string"},"default":"'circle-dashed'","description":"Lucide icon name to display.\\nSee https://lucide.dev/icons/ for available icons.","fieldName":"symbol","attribute":"symbol"},{"name":"gradient","type":{"text":"'ai' | 'error' | 'gray' | 'primary' | 'purple' | 'rose' | 'success' | 'teal' | 'warning' | undefined"},"description":"Theme color to use for gradient fill.\\nWhen set, icon displays with gradient. When undefined, icon inherits parent text color.","fieldName":"gradient","attribute":"gradient"}],"mixins":[{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-icon","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"Icon","module":"src/components/icon/Icon.ts"}},{"kind":"custom-element-definition","name":"btu-icon","declaration":{"name":"Icon","module":"src/components/icon/Icon.ts"}}]},{"kind":"javascript-module","path":"src/components/linear-progress/LinearProgress.ts","declarations":[{"kind":"class","description":"A horizontal linear progress bar for showing task completion.","name":"LinearProgress","cssProperties":[{"description":"Custom progress bar color (overrides theme color)","name":"--progress-color"},{"description":"Track/background color (overrides default gray-100)","name":"--track-color"}],"members":[],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and initialization","name":"btu-progress-ready"},{"type":{"text":"CustomEvent"},"description":"Fired when progress reaches 100","name":"btu-progress-complete"}],"mixins":[{"name":"ProgressMixin","module":"/src/util/ProgressMixin.js"},{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-linear-progress","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"LinearProgress","module":"src/components/linear-progress/LinearProgress.ts"}},{"kind":"custom-element-definition","name":"btu-linear-progress","declaration":{"name":"LinearProgress","module":"src/components/linear-progress/LinearProgress.ts"}}]}]`),E3={schemaVersion:g3,readme:b3,modules:v3};cH(E3);d3({hideArgRef:!1,typeRef:{"lit-html":"https://lit.dev/docs/api/templates/"},renderDefault:!0});const w3={parameters:{backgrounds:{options:{customColor:{name:"gradient",value:"linear-gradient(330deg, #dee0f0 0, #fefdff 100%)"}}},controls:{expanded:!0,matchers:{color:/(background|color)$/i,date:/Date$/i}}},globalTypes:{theme:{description:"Light/Dark mode for components",toolbar:{title:"Theme",icon:"circlehollow",items:[{value:"light",title:"Light mode",icon:"sun"},{value:"dark",title:"Dark mode",icon:"moon"}],dynamicTitle:!0}}},initialGlobals:{theme:"light"},decorators:[(e,t)=>{const r=t.globals.theme||"light";return fT`<div class="${r==="dark"?"is-dark":""}">${e()}</div>`}]},_3=Object.freeze(Object.defineProperty({__proto__:null,default:w3},Symbol.toStringTag,{value:"Module"}));oT();const{composeConfigs:T3,PreviewWeb:S3}=__STORYBOOK_MODULE_PREVIEW_API__,A3=(e=[])=>{const t=[e[0]??eH,e[1]??TH,e[2]??SH,e[3]??jH,e[4]??_3];return T3(t)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new S3(TV,A3);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{Z3 as A,Q3 as B,X3 as C,Y3 as D,Ve as E,V3 as F,J3 as G,U3 as H,$3 as I,x3 as J,yV as K,C3 as L,KV as M,Ca as N,yG as O,mG as P,uG as S,hV as _,ml as a,N3 as b,I3 as c,q3 as d,F3 as e,H3 as f,gG as g,D3 as h,ra as i,k3 as j,j3 as k,W3 as l,K3 as m,L3 as n,z3 as o,G3 as p,aG as q,M3 as r,B3 as s,iG as t,oG as u,nG as v,rG as w,fT as x,tG as y,eG as z};