@brightspot/ui 1.8.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/dist/LucideDynamicLoader.js +1 -1
  2. package/dist/LucideDynamicLoader.js.map +1 -1
  3. package/dist/LucideDynamicLoader.ts +1 -1
  4. package/dist/components/copy-to-clipboard/CopyToClipboard.d.ts.map +1 -1
  5. package/dist/components/copy-to-clipboard/CopyToClipboard.js +4 -0
  6. package/dist/components/copy-to-clipboard/CopyToClipboard.js.map +1 -1
  7. package/dist/components/icon/Icon.d.ts +1 -0
  8. package/dist/components/icon/Icon.d.ts.map +1 -1
  9. package/dist/components/icon/Icon.js +2 -1
  10. package/dist/components/icon/Icon.js.map +1 -1
  11. package/dist/components/switch/Switch.d.ts +92 -0
  12. package/dist/components/switch/Switch.d.ts.map +1 -0
  13. package/dist/components/switch/Switch.js +189 -0
  14. package/dist/components/switch/Switch.js.map +1 -0
  15. package/dist/custom-elements.json +510 -204
  16. package/dist/effects/celebrate.d.ts +18 -0
  17. package/dist/effects/celebrate.d.ts.map +1 -0
  18. package/dist/effects/celebrate.js +81 -0
  19. package/dist/effects/celebrate.js.map +1 -0
  20. package/dist/effects/ripple.d.ts +31 -0
  21. package/dist/effects/ripple.d.ts.map +1 -0
  22. package/dist/effects/ripple.js +131 -0
  23. package/dist/effects/ripple.js.map +1 -0
  24. package/dist/effects/sparkle-worklet.d.ts +7 -0
  25. package/dist/effects/sparkle-worklet.d.ts.map +1 -0
  26. package/dist/effects/sparkle-worklet.js +211 -0
  27. package/dist/effects/sparkle-worklet.js.map +1 -0
  28. package/dist/effects/sparkle.d.ts +6 -0
  29. package/dist/effects/sparkle.d.ts.map +1 -0
  30. package/dist/effects/sparkle.js +91 -0
  31. package/dist/effects/sparkle.js.map +1 -0
  32. package/dist/storybook/BSPLogoMark.svg +3 -0
  33. package/dist/storybook/WelcomeBG.svg +292 -0
  34. package/dist/storybook/assets/{Avatar.stories-XfJUoW42.js → Avatar.stories-B26mRkkZ.js} +1 -1
  35. package/dist/storybook/assets/{AvatarGroup.stories-CPkv0mVI.js → AvatarGroup.stories-J7lVGsMY.js} +1 -1
  36. package/dist/storybook/assets/{Badge.stories-Z42hQyzK.js → Badge.stories-BpTIV61M.js} +1 -1
  37. package/dist/storybook/assets/Button-Dg-fIrzT.js +10 -0
  38. package/dist/storybook/assets/Button.stories-gPKRVbxk.js +54 -0
  39. package/dist/storybook/assets/Celebrate.stories-DbY-sKEe.js +184 -0
  40. package/dist/storybook/assets/{CircularProgress.stories-B59nHh_k.js → CircularProgress.stories-DeH5JYX_.js} +1 -1
  41. package/dist/storybook/assets/{ClipboardMixin.stories-C6DraZ93.js → ClipboardMixin.stories-C-lZ4uuw.js} +1 -1
  42. package/dist/storybook/assets/Color-6BZIO3FS-Cu6zVIuG.js +1 -0
  43. package/dist/storybook/assets/{Colors.stories-B3Capc8F.js → Colors.stories-D6XYMrTD.js} +1 -1
  44. package/dist/storybook/assets/CombinedEffects.stories-jFekKTYg.js +355 -0
  45. package/dist/storybook/assets/{ComponentStatesMixin-DRalOmcW.js → ComponentStatesMixin-g50hRCPT.js} +1 -1
  46. package/dist/storybook/assets/{ComponentStatesMixin.stories-TKD7YrVe.js → ComponentStatesMixin.stories-D3Q5pR38.js} +1 -1
  47. package/dist/storybook/assets/{CopyToClipboard.stories-Bv8jZ7TL.js → CopyToClipboard.stories-COZZ1VC2.js} +1 -1
  48. package/dist/storybook/assets/{Debounce.stories-CLwXI3OZ.js → Debounce.stories-Dl10LAnx.js} +1 -1
  49. package/dist/storybook/assets/DocsRenderer-LL677BLK-CFLtMbUx.js +10 -0
  50. package/dist/storybook/assets/{Dropdown.stories-D7X0Dbnt.js → Dropdown.stories-Drwq-0Z2.js} +1 -1
  51. package/dist/storybook/assets/{Events.stories-Dgn1N8jT.js → Events.stories-dODeR-g-.js} +1 -1
  52. package/dist/storybook/assets/{Heading.stories-BcciQ3Ug.js → Heading.stories-CH7_-_q3.js} +1 -1
  53. package/dist/storybook/assets/HueRipple.stories-CH1Y739k.js +310 -0
  54. package/dist/storybook/assets/{Icon.stories-BWqJoZUM.js → Icon.stories-CPjM-jTU.js} +32 -13
  55. package/dist/storybook/assets/{IconButton.stories-BrMDAi9q.js → IconButton.stories-DuzqvcnN.js} +1 -1
  56. package/dist/storybook/assets/{LinearProgress.stories-INijWBr_.js → LinearProgress.stories-C7IdnJd3.js} +1 -1
  57. package/dist/storybook/assets/{Pagination.stories-CrExaWpC.js → Pagination.stories-C4cLjS_9.js} +1 -1
  58. package/dist/storybook/assets/{Popover.stories-Bh6IUPG_.js → Popover.stories-Ca1F-wrI.js} +3 -11
  59. package/dist/storybook/assets/{ReadyMixin-C1lZU7vt.js → ReadyMixin-DNZ5dCsZ.js} +1 -1
  60. package/dist/storybook/assets/{Rtc.stories-BHqFwgR7.js → Rtc.stories-BVJc1vCA.js} +1 -1
  61. package/dist/storybook/assets/{ScrollShadow.stories-DnIj5cZF.js → ScrollShadow.stories-C3W5o9ZW.js} +1 -1
  62. package/dist/storybook/assets/Switch.stories-BEEHP8mD.js +312 -0
  63. package/dist/storybook/assets/{Throttle.stories-Dilsv90H.js → Throttle.stories-C4xsYeAb.js} +1 -1
  64. package/dist/storybook/assets/{Tooltip.stories-Dnb76OXa.js → Tooltip.stories-Ccm4AnSv.js} +3 -7
  65. package/dist/storybook/assets/Welcome.stories-Degjk-M0.js +215 -0
  66. package/dist/storybook/assets/{Widget.stories-Cl-3dv15.js → Widget.stories-OKnZ9sDs.js} +1 -1
  67. package/dist/storybook/assets/WithTooltip-65CFNBJE-CXL3TyJ2.js +9 -0
  68. package/dist/storybook/assets/blocks-DLdUKG_W.js +707 -0
  69. package/dist/storybook/assets/celebrate-KwPoF1K3.js +21 -0
  70. package/dist/storybook/assets/formatter-EIJCOSYU-29NCxjfM.js +1 -0
  71. package/dist/storybook/assets/if-defined-BZFPaJjl.js +1 -0
  72. package/dist/storybook/assets/iframe-BqvwP3or.js +1104 -0
  73. package/dist/storybook/assets/{iframe-CNxIA3cQ.css → iframe-C5bIZMJ5.css} +1 -1
  74. package/dist/storybook/assets/index-BIyTv1BF.js +1 -0
  75. package/dist/storybook/assets/onFind-1l3EPW-I.js +1 -0
  76. package/dist/storybook/assets/{onFind.stories-CGeGoVR6.js → onFind.stories-D64-QZqf.js} +2 -2
  77. package/dist/storybook/assets/{onRemove.stories-DXOwfv14.js → onRemove.stories-BICsnIJL.js} +1 -1
  78. package/dist/storybook/assets/{onVisible.stories-DNzXceKW.js → onVisible.stories-DpDZP9_5.js} +2 -2
  79. package/dist/storybook/assets/position-CFNQy3J6.js +1 -0
  80. package/dist/storybook/assets/ripple-DQbyyRUw.js +251 -0
  81. package/dist/storybook/assets/{style-map-kcS06w9f.js → style-map-CBrSnxRe.js} +1 -1
  82. package/dist/storybook/assets/syntaxhighlighter-ED5Y7EFY-Bz_DuQj8.js +6 -0
  83. package/dist/storybook/brightspot-logo.svg +19 -0
  84. package/dist/storybook/iframe.html +23 -3
  85. package/dist/storybook/index.html +42 -1
  86. package/dist/storybook/index.json +1 -1
  87. package/dist/storybook/project.json +1 -1
  88. package/dist/storybook/sb-addons/storybook-3/manager-bundle.js +3 -0
  89. package/dist/tailwind-plugin-switch.d.ts +2 -0
  90. package/dist/tailwind-plugin-switch.d.ts.map +1 -0
  91. package/dist/tailwind-plugin-switch.js +223 -0
  92. package/dist/tailwind-plugin-switch.js.map +1 -0
  93. package/dist/tailwind-plugin-switch.ts +252 -0
  94. package/dist/util/EventEmitterMixin.d.ts +5 -0
  95. package/dist/util/EventEmitterMixin.d.ts.map +1 -1
  96. package/dist/util/EventEmitterMixin.js.map +1 -1
  97. package/dist/util/position.d.ts +9 -0
  98. package/dist/util/position.d.ts.map +1 -0
  99. package/dist/util/position.js +11 -0
  100. package/dist/util/position.js.map +1 -0
  101. package/docs/components/Icon.md +6 -5
  102. package/docs/components/README.md +1 -0
  103. package/docs/components/Switch.md +79 -0
  104. package/package.json +2 -1
  105. package/dist/storybook/assets/Button.stories-DTcnCrp-.js +0 -63
  106. package/dist/storybook/assets/Color-6BZIO3FS-BuNGIaf5.js +0 -1
  107. package/dist/storybook/assets/DocsRenderer-LL677BLK-DjMDalQg.js +0 -758
  108. package/dist/storybook/assets/WithTooltip-65CFNBJE-Bq21jhKM.js +0 -9
  109. package/dist/storybook/assets/_commonjsHelpers-CqkleIqs.js +0 -1
  110. package/dist/storybook/assets/formatter-EIJCOSYU-CwrejIu0.js +0 -1
  111. package/dist/storybook/assets/if-defined-D1UQmdjo.js +0 -1
  112. package/dist/storybook/assets/iframe-CsKt54V3.js +0 -1061
  113. package/dist/storybook/assets/index-DQ0xe06s.js +0 -1
  114. package/dist/storybook/assets/onFind-DqriYjEB.js +0 -1
  115. package/dist/storybook/assets/syntaxhighlighter-ED5Y7EFY-BnpaJz4a.js +0 -6
@@ -0,0 +1,1104 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Welcome.stories-Degjk-M0.js","./blocks-DLdUKG_W.js","./preload-helper-PPVm8Dsz.js","./Avatar.stories-B26mRkkZ.js","./style-map-CBrSnxRe.js","./AvatarGroup.stories-J7lVGsMY.js","./Badge.stories-BpTIV61M.js","./Button.stories-gPKRVbxk.js","./Button-Dg-fIrzT.js","./Celebrate.stories-DbY-sKEe.js","./celebrate-KwPoF1K3.js","./position-CFNQy3J6.js","./CircularProgress.stories-DeH5JYX_.js","./ClipboardMixin.stories-C-lZ4uuw.js","./custom-element-UsVr97OX.js","./ComponentStatesMixin-g50hRCPT.js","./ReadyMixin-DNZ5dCsZ.js","./Colors.stories-D6XYMrTD.js","./CombinedEffects.stories-jFekKTYg.js","./ripple-DQbyyRUw.js","./ComponentStatesMixin.stories-D3Q5pR38.js","./CopyToClipboard.stories-COZZ1VC2.js","./Debounce.stories-Dl10LAnx.js","./Dropdown.stories-Drwq-0Z2.js","./Events.stories-dODeR-g-.js","./Heading.stories-CH7_-_q3.js","./HueRipple.stories-CH1Y739k.js","./Icon.stories-CPjM-jTU.js","./LucideDynamicLoader-jmdq8YDM.js","./IconButton.stories-DuzqvcnN.js","./if-defined-BZFPaJjl.js","./LinearProgress.stories-C7IdnJd3.js","./Pagination.stories-C4cLjS_9.js","./Popover.stories-Ca1F-wrI.js","./Rtc.stories-BVJc1vCA.js","./ScrollShadow.stories-C3W5o9ZW.js","./Switch.stories-BEEHP8mD.js","./Throttle.stories-C4xsYeAb.js","./Tooltip.stories-Ccm4AnSv.js","./Widget.stories-OKnZ9sDs.js","./onFind.stories-D64-QZqf.js","./onFind-1l3EPW-I.js","./onRemove.stories-BICsnIJL.js","./onVisible.stories-DpDZP9_5.js","./DocsRenderer-LL677BLK-CFLtMbUx.js"])))=>i.map(i=>d[i]);
2
+ import{_ as Re}from"./preload-helper-PPVm8Dsz.js";function eA(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(n,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(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 Ou={},tA=Object.create,Qc=Object.defineProperty,rA=Object.getOwnPropertyDescriptor,pg=Object.getOwnPropertyNames,nA=Object.getPrototypeOf,oA=Object.prototype.hasOwnProperty,ca=(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[pg(e)[0]])((t={exports:{}}).exports,t),t.exports},Tt=(e,t)=>{for(var r in t)Qc(e,r,{get:t[r],enumerable:!0})},iA=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of pg(t))!oA.call(e,o)&&o!==r&&Qc(e,o,{get:()=>t[o],enumerable:!(n=rA(t,o))||n.enumerable});return e},We=(e,t,r)=>(r=e!=null?tA(nA(e)):{},iA(t||!e||!e.__esModule?Qc(r,"default",{value:e,enumerable:!0}):r,e)),aA=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,l){var d,p,f,m=t.call(s),y=t.call(c);if(s===c)return!0;if(s==null||c==null)return!1;if(l.indexOf(s)>-1&&l.indexOf(c)>-1)return!0;if(l.push(s,c),m!=y||(d=n(s),p=n(c),d.length!=p.length||d.some(function(g){return!a(s[g],c[g],l)})))return!1;switch(m.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,l))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],l)))return!1;return!0;case"Object":return a(r(s),r(c),l);default:return!1}})(o,i,[])}})()}}),sA=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}}}),lA=N({"../../node_modules/strip-indent/index.js"(e,t){var r=sA();t.exports=n=>{let o=r(n);if(o===0)return n;let i=new RegExp(`^[ \\t]{${o}}`,"gm");return n.replace(i,"")}}}),uA=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))}}}),fg=N({"../../node_modules/redent/index.js"(e,t){var r=lA(),n=uA();t.exports=(o,i=0,a)=>n(r(o),i,a)}}),cA=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}}),Hi=N({"../../node_modules/aria-query/lib/util/iterationDecorator.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=r(cA());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}}}),dA=N({"../../node_modules/aria-query/lib/ariaPropsMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Hi());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 m={}.toString.call(p).slice(8,-1);return m==="Object"&&p.constructor&&(m=p.constructor.name),m==="Map"||m==="Set"?Array.from(p):m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m)?a(p,f):void 0}}function a(p,f){(f==null||f>p.length)&&(f=p.length);for(var m=0,y=Array(f);m<f;m++)y[m]=p[m];return y}function s(p,f){var m=p==null?null:typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(m!=null){var y,g,v,b,T=[],R=!0,x=!1;try{if(v=(m=m.call(p)).next,f===0){if(Object(m)!==m)return;R=!1}else for(;!(R=(y=v.call(m)).done)&&(T.push(y.value),T.length!==f);R=!0);}catch(C){x=!0,g=C}finally{try{if(!R&&m.return!=null&&(b=m.return(),Object(b)!==b))return}finally{if(x)throw g}}return T}}function c(p){if(Array.isArray(p))return p}var l=[["aria-activedescendant",{type:"id"}],["aria-atomic",{type:"boolean"}],["aria-autocomplete",{type:"token",values:["inline","list","both","none"]}],["aria-braillelabel",{type:"string"}],["aria-brailleroledescription",{type:"string"}],["aria-busy",{type:"boolean"}],["aria-checked",{type:"tristate"}],["aria-colcount",{type:"integer"}],["aria-colindex",{type:"integer"}],["aria-colspan",{type:"integer"}],["aria-controls",{type:"idlist"}],["aria-current",{type:"token",values:["page","step","location","date","time",!0,!1]}],["aria-describedby",{type:"idlist"}],["aria-description",{type:"string"}],["aria-details",{type:"id"}],["aria-disabled",{type:"boolean"}],["aria-dropeffect",{type:"tokenlist",values:["copy","execute","link","move","none","popup"]}],["aria-errormessage",{type:"id"}],["aria-expanded",{type:"boolean",allowundefined:!0}],["aria-flowto",{type:"idlist"}],["aria-grabbed",{type:"boolean",allowundefined:!0}],["aria-haspopup",{type:"token",values:[!1,!0,"menu","listbox","tree","grid","dialog"]}],["aria-hidden",{type:"boolean",allowundefined:!0}],["aria-invalid",{type:"token",values:["grammar",!1,"spelling",!0]}],["aria-keyshortcuts",{type:"string"}],["aria-label",{type:"string"}],["aria-labelledby",{type:"idlist"}],["aria-level",{type:"integer"}],["aria-live",{type:"token",values:["assertive","off","polite"]}],["aria-modal",{type:"boolean"}],["aria-multiline",{type:"boolean"}],["aria-multiselectable",{type:"boolean"}],["aria-orientation",{type:"token",values:["vertical","undefined","horizontal"]}],["aria-owns",{type:"idlist"}],["aria-placeholder",{type:"string"}],["aria-posinset",{type:"integer"}],["aria-pressed",{type:"tristate"}],["aria-readonly",{type:"boolean"}],["aria-relevant",{type:"tokenlist",values:["additions","all","removals","text"]}],["aria-required",{type:"boolean"}],["aria-roledescription",{type:"string"}],["aria-rowcount",{type:"integer"}],["aria-rowindex",{type:"integer"}],["aria-rowspan",{type:"integer"}],["aria-selected",{type:"boolean",allowundefined:!0}],["aria-setsize",{type:"integer"}],["aria-sort",{type:"token",values:["ascending","descending","none","other"]}],["aria-valuemax",{type:"number"}],["aria-valuemin",{type:"number"}],["aria-valuenow",{type:"number"}],["aria-valuetext",{type:"string"}]],d={entries:function(){return l},forEach:function(p){for(var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,m=0,y=l;m<y.length;m++){var g=n(y[m],2),v=g[0],b=g[1];p.call(f,b,v,l)}},get:function(p){var f=l.filter(function(m){return m[0]===p})[0];return f&&f[1]},has:function(p){return!!d.get(p)},keys:function(){return l.map(function(p){var f=n(p,1),m=f[0];return m})},values:function(){return l.map(function(p){var f=n(p,2),m=f[1];return m})}};e.default=(0,t.default)(d,d.entries())}}),pA=N({"../../node_modules/aria-query/lib/domMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Hi());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 m={}.toString.call(p).slice(8,-1);return m==="Object"&&p.constructor&&(m=p.constructor.name),m==="Map"||m==="Set"?Array.from(p):m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m)?a(p,f):void 0}}function a(p,f){(f==null||f>p.length)&&(f=p.length);for(var m=0,y=Array(f);m<f;m++)y[m]=p[m];return y}function s(p,f){var m=p==null?null:typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(m!=null){var y,g,v,b,T=[],R=!0,x=!1;try{if(v=(m=m.call(p)).next,f===0){if(Object(m)!==m)return;R=!1}else for(;!(R=(y=v.call(m)).done)&&(T.push(y.value),T.length!==f);R=!0);}catch(C){x=!0,g=C}finally{try{if(!R&&m.return!=null&&(b=m.return(),Object(b)!==b))return}finally{if(x)throw g}}return T}}function c(p){if(Array.isArray(p))return p}var l=[["a",{reserved:!1}],["abbr",{reserved:!1}],["acronym",{reserved:!1}],["address",{reserved:!1}],["applet",{reserved:!1}],["area",{reserved:!1}],["article",{reserved:!1}],["aside",{reserved:!1}],["audio",{reserved:!1}],["b",{reserved:!1}],["base",{reserved:!0}],["bdi",{reserved:!1}],["bdo",{reserved:!1}],["big",{reserved:!1}],["blink",{reserved:!1}],["blockquote",{reserved:!1}],["body",{reserved:!1}],["br",{reserved:!1}],["button",{reserved:!1}],["canvas",{reserved:!1}],["caption",{reserved:!1}],["center",{reserved:!1}],["cite",{reserved:!1}],["code",{reserved:!1}],["col",{reserved:!0}],["colgroup",{reserved:!0}],["content",{reserved:!1}],["data",{reserved:!1}],["datalist",{reserved:!1}],["dd",{reserved:!1}],["del",{reserved:!1}],["details",{reserved:!1}],["dfn",{reserved:!1}],["dialog",{reserved:!1}],["dir",{reserved:!1}],["div",{reserved:!1}],["dl",{reserved:!1}],["dt",{reserved:!1}],["em",{reserved:!1}],["embed",{reserved:!1}],["fieldset",{reserved:!1}],["figcaption",{reserved:!1}],["figure",{reserved:!1}],["font",{reserved:!1}],["footer",{reserved:!1}],["form",{reserved:!1}],["frame",{reserved:!1}],["frameset",{reserved:!1}],["h1",{reserved:!1}],["h2",{reserved:!1}],["h3",{reserved:!1}],["h4",{reserved:!1}],["h5",{reserved:!1}],["h6",{reserved:!1}],["head",{reserved:!0}],["header",{reserved:!1}],["hgroup",{reserved:!1}],["hr",{reserved:!1}],["html",{reserved:!0}],["i",{reserved:!1}],["iframe",{reserved:!1}],["img",{reserved:!1}],["input",{reserved:!1}],["ins",{reserved:!1}],["kbd",{reserved:!1}],["keygen",{reserved:!1}],["label",{reserved:!1}],["legend",{reserved:!1}],["li",{reserved:!1}],["link",{reserved:!0}],["main",{reserved:!1}],["map",{reserved:!1}],["mark",{reserved:!1}],["marquee",{reserved:!1}],["menu",{reserved:!1}],["menuitem",{reserved:!1}],["meta",{reserved:!0}],["meter",{reserved:!1}],["nav",{reserved:!1}],["noembed",{reserved:!0}],["noscript",{reserved:!0}],["object",{reserved:!1}],["ol",{reserved:!1}],["optgroup",{reserved:!1}],["option",{reserved:!1}],["output",{reserved:!1}],["p",{reserved:!1}],["param",{reserved:!0}],["picture",{reserved:!0}],["pre",{reserved:!1}],["progress",{reserved:!1}],["q",{reserved:!1}],["rp",{reserved:!1}],["rt",{reserved:!1}],["rtc",{reserved:!1}],["ruby",{reserved:!1}],["s",{reserved:!1}],["samp",{reserved:!1}],["script",{reserved:!0}],["section",{reserved:!1}],["select",{reserved:!1}],["small",{reserved:!1}],["source",{reserved:!0}],["spacer",{reserved:!1}],["span",{reserved:!1}],["strike",{reserved:!1}],["strong",{reserved:!1}],["style",{reserved:!0}],["sub",{reserved:!1}],["summary",{reserved:!1}],["sup",{reserved:!1}],["table",{reserved:!1}],["tbody",{reserved:!1}],["td",{reserved:!1}],["textarea",{reserved:!1}],["tfoot",{reserved:!1}],["th",{reserved:!1}],["thead",{reserved:!1}],["time",{reserved:!1}],["title",{reserved:!0}],["tr",{reserved:!1}],["track",{reserved:!0}],["tt",{reserved:!1}],["u",{reserved:!1}],["ul",{reserved:!1}],["var",{reserved:!1}],["video",{reserved:!1}],["wbr",{reserved:!1}],["xmp",{reserved:!1}]],d={entries:function(){return l},forEach:function(p){for(var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,m=0,y=l;m<y.length;m++){var g=n(y[m],2),v=g[0],b=g[1];p.call(f,b,v,l)}},get:function(p){var f=l.filter(function(m){return m[0]===p})[0];return f&&f[1]},has:function(p){return!!d.get(p)},keys:function(){return l.map(function(p){var f=n(p,1),m=f[0];return m})},values:function(){return l.map(function(p){var f=n(p,2),m=f[1];return m})}};e.default=(0,t.default)(d,d.entries())}}),fA=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}}),mA=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}}),hA=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}}),yA=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}}),gA=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}}),bA=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}}),vA=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}}),EA=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}}),wA=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}}),_A=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}}),TA=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}}),SA=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}}),AA=N({"../../node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=m(fA()),r=m(mA()),n=m(hA()),o=m(yA()),i=m(gA()),a=m(bA()),s=m(vA()),c=m(EA()),l=m(wA()),d=m(_A()),p=m(TA()),f=m(SA());function m(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",l.default],["structure",d.default],["widget",p.default],["window",f.default]];e.default=y}}),RA=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}}),OA=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}}),xA=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}}),PA=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}}),CA=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}}),NA=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}}),IA=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}}),MA=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}}),jA=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}}),kA=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}}),qA=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}}),LA=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}}),DA=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}}),$A=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}}),FA=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}}),BA=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}}),UA=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}}),JA=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}}),HA=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}}),VA=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}}),zA=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}}),GA=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}}),WA=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}}),YA=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}}),KA=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}}),XA=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}}),QA=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}}),ZA=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}}),eR=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}}),tR=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}}),rR=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}}),nR=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}}),oR=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}}),iR=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}}),aR=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}}),sR=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}}),lR=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}}),uR=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}}),cR=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}}),dR=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}}),pR=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}}),fR=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}}),mR=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}}),hR=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}}),yR=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}}),gR=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}}),bR=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}}),vR=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}}),ER=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}}),wR=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}}),_R=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}}),TR=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}}),SR=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}}),AR=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}}),RR=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}}),OR=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}}),xR=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}}),PR=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}}),CR=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}}),NR=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}}),IR=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}}),MR=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}}),jR=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}}),kR=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}}),qR=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}}),LR=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}}),DR=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}}),$R=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}}),FR=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}}),BR=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}}),UR=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}}),JR=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}}),HR=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}}),VR=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}}),zR=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}}),GR=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}}),WR=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}}),YR=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}}),KR=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}}),XR=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}}),QR=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}}),ZR=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}}),eO=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}}),tO=N({"../../node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=ee(RA()),r=ee(OA()),n=ee(xA()),o=ee(PA()),i=ee(CA()),a=ee(NA()),s=ee(IA()),c=ee(MA()),l=ee(jA()),d=ee(kA()),p=ee(qA()),f=ee(LA()),m=ee(DA()),y=ee($A()),g=ee(FA()),v=ee(BA()),b=ee(UA()),T=ee(JA()),R=ee(HA()),x=ee(VA()),C=ee(zA()),E=ee(GA()),_=ee(WA()),S=ee(YA()),A=ee(KA()),$=ee(XA()),k=ee(QA()),H=ee(ZA()),I=ee(eR()),O=ee(tR()),q=ee(rR()),F=ee(nR()),V=ee(oR()),K=ee(iR()),oe=ee(aR()),ue=ee(sR()),L=ee(lR()),D=ee(uR()),G=ee(cR()),Q=ee(dR()),X=ee(pR()),Y=ee(fR()),ie=ee(mR()),se=ee(hR()),_e=ee(yR()),B=ee(gR()),te=ee(bR()),ne=ee(vR()),ae=ee(ER()),ce=ee(wR()),de=ee(_R()),ye=ee(TR()),ve=ee(SR()),Ue=ee(AR()),gt=ee(RR()),ut=ee(OR()),bt=ee(xR()),ot=ee(PR()),Xt=ee(CR()),Mt=ee(NR()),Qt=ee(IR()),So=ee(MR()),Ao=ee(jR()),Ro=ee(kR()),Oo=ee(qR()),xo=ee(LR()),Po=ee(DR()),Co=ee($R()),No=ee(FR()),Io=ee(BR()),Mo=ee(UR()),jo=ee(JR()),ko=ee(HR()),qo=ee(VR()),Lo=ee(zR()),Do=ee(GR()),tn=ee(WR()),$o=ee(YR()),St=ee(KR()),pe=ee(XR()),rn=ee(QR()),Ut=ee(ZR()),Ze=ee(eO());function ee(Nr){return Nr&&Nr.__esModule?Nr:{default:Nr}}var Fo=[["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",l.default],["checkbox",d.default],["code",p.default],["columnheader",f.default],["combobox",m.default],["complementary",y.default],["contentinfo",g.default],["definition",v.default],["deletion",b.default],["dialog",T.default],["directory",R.default],["document",x.default],["emphasis",C.default],["feed",E.default],["figure",_.default],["form",S.default],["generic",A.default],["grid",$.default],["gridcell",k.default],["group",H.default],["heading",I.default],["img",O.default],["insertion",q.default],["link",F.default],["list",V.default],["listbox",K.default],["listitem",oe.default],["log",ue.default],["main",L.default],["mark",D.default],["marquee",G.default],["math",Q.default],["menu",X.default],["menubar",Y.default],["menuitem",ie.default],["menuitemcheckbox",se.default],["menuitemradio",_e.default],["meter",B.default],["navigation",te.default],["none",ne.default],["note",ae.default],["option",ce.default],["paragraph",de.default],["presentation",ye.default],["progressbar",ve.default],["radio",Ue.default],["radiogroup",gt.default],["region",ut.default],["row",bt.default],["rowgroup",ot.default],["rowheader",Xt.default],["scrollbar",Mt.default],["search",Qt.default],["searchbox",So.default],["separator",Ao.default],["slider",Ro.default],["spinbutton",Oo.default],["status",xo.default],["strong",Po.default],["subscript",Co.default],["superscript",No.default],["switch",Io.default],["tab",Mo.default],["table",jo.default],["tablist",ko.default],["tabpanel",qo.default],["term",Lo.default],["textbox",Do.default],["time",tn.default],["timer",$o.default],["toolbar",St.default],["tooltip",pe.default],["tree",rn.default],["treegrid",Ut.default],["treeitem",Ze.default]];e.default=Fo}}),rO=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}}),nO=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}}),oO=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}}),iO=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}}),aO=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}}),sO=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}}),lO=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}}),uO=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}}),cO=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}}),dO=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}}),pO=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}}),fO=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}}),mO=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}}),hO=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}}),yO=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}}),gO=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}}),bO=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}}),vO=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}}),EO=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}}),wO=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}}),_O=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}}),TO=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}}),SO=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}}),AO=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}}),RO=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}}),OO=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}}),xO=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}}),PO=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}}),CO=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}}),NO=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}}),IO=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}}),MO=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}}),jO=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}}),kO=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}}),qO=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}}),LO=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}}),DO=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}}),$O=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}}),FO=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}}),BO=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}}),UO=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}}),JO=N({"../../node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=Y(rO()),r=Y(nO()),n=Y(oO()),o=Y(iO()),i=Y(aO()),a=Y(sO()),s=Y(lO()),c=Y(uO()),l=Y(cO()),d=Y(dO()),p=Y(pO()),f=Y(fO()),m=Y(mO()),y=Y(hO()),g=Y(yO()),v=Y(gO()),b=Y(bO()),T=Y(vO()),R=Y(EO()),x=Y(wO()),C=Y(_O()),E=Y(TO()),_=Y(SO()),S=Y(AO()),A=Y(RO()),$=Y(OO()),k=Y(xO()),H=Y(PO()),I=Y(CO()),O=Y(NO()),q=Y(IO()),F=Y(MO()),V=Y(jO()),K=Y(kO()),oe=Y(qO()),ue=Y(LO()),L=Y(DO()),D=Y($O()),G=Y(FO()),Q=Y(BO()),X=Y(UO());function Y(se){return se&&se.__esModule?se:{default:se}}var ie=[["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",l.default],["doc-colophon",d.default],["doc-conclusion",p.default],["doc-cover",f.default],["doc-credit",m.default],["doc-credits",y.default],["doc-dedication",g.default],["doc-endnote",v.default],["doc-endnotes",b.default],["doc-epigraph",T.default],["doc-epilogue",R.default],["doc-errata",x.default],["doc-example",C.default],["doc-footnote",E.default],["doc-foreword",_.default],["doc-glossary",S.default],["doc-glossref",A.default],["doc-index",$.default],["doc-introduction",k.default],["doc-noteref",H.default],["doc-notice",I.default],["doc-pagebreak",O.default],["doc-pagefooter",q.default],["doc-pageheader",F.default],["doc-pagelist",V.default],["doc-part",K.default],["doc-preface",oe.default],["doc-prologue",ue.default],["doc-pullquote",L.default],["doc-qna",D.default],["doc-subtitle",G.default],["doc-tip",Q.default],["doc-toc",X.default]];e.default=ie}}),HO=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}}),VO=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}}),zO=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}}),GO=N({"../../node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(HO()),r=o(VO()),n=o(zO());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}}),Zc=N({"../../node_modules/aria-query/lib/rolesMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(AA()),r=a(tO()),n=a(JO()),o=a(GO()),i=a(Hi());function a(v){return v&&v.__esModule?v:{default:v}}function s(v,b){var T=typeof Symbol<"u"&&v[Symbol.iterator]||v["@@iterator"];if(!T){if(Array.isArray(v)||(T=d(v))||b){T&&(v=T);var R=0,x=function(){};return{s:x,n:function(){return R>=v.length?{done:!0}:{done:!1,value:v[R++]}},e:function(S){throw S},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,E=!0,_=!1;return{s:function(){T=T.call(v)},n:function(){var S=T.next();return E=S.done,S},e:function(S){_=!0,C=S},f:function(){try{E||T.return==null||T.return()}finally{if(_)throw C}}}}function c(v,b){return m(v)||f(v,b)||d(v,b)||l()}function l(){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(v,b){if(v){if(typeof v=="string")return p(v,b);var T={}.toString.call(v).slice(8,-1);return T==="Object"&&v.constructor&&(T=v.constructor.name),T==="Map"||T==="Set"?Array.from(v):T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)?p(v,b):void 0}}function p(v,b){(b==null||b>v.length)&&(b=v.length);for(var T=0,R=Array(b);T<b;T++)R[T]=v[T];return R}function f(v,b){var T=v==null?null:typeof Symbol<"u"&&v[Symbol.iterator]||v["@@iterator"];if(T!=null){var R,x,C,E,_=[],S=!0,A=!1;try{if(C=(T=T.call(v)).next,b===0){if(Object(T)!==T)return;S=!1}else for(;!(S=(R=C.call(T)).done)&&(_.push(R.value),_.length!==b);S=!0);}catch($){A=!0,x=$}finally{try{if(!S&&T.return!=null&&(E=T.return(),Object(E)!==E))return}finally{if(A)throw x}}return _}}function m(v){if(Array.isArray(v))return v}var y=[].concat(t.default,r.default,n.default,o.default);y.forEach(function(v){var b=c(v,2),T=b[1],R=s(T.superClass),x;try{for(R.s();!(x=R.n()).done;){var C=x.value,E=s(C),_;try{var S=function(){var A=_.value,$=y.filter(function(q){var F=c(q,1),V=F[0];return V===A})[0];if($)for(var k=$[1],H=0,I=Object.keys(k.props);H<I.length;H++){var O=I[H];Object.prototype.hasOwnProperty.call(T.props,O)||(T.props[O]=k.props[O])}};for(E.s();!(_=E.n()).done;)S()}catch(A){E.e(A)}finally{E.f()}}}catch(A){R.e(A)}finally{R.f()}});var g={entries:function(){return y},forEach:function(v){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,T=s(y),R;try{for(T.s();!(R=T.n()).done;){var x=c(R.value,2),C=x[0],E=x[1];v.call(b,E,C,y)}}catch(_){T.e(_)}finally{T.f()}},get:function(v){var b=y.filter(function(T){return T[0]===v})[0];return b&&b[1]},has:function(v){return!!g.get(v)},keys:function(){return y.map(function(v){var b=c(v,1),T=b[0];return T})},values:function(){return y.map(function(v){var b=c(v,2),T=b[1];return T})}};e.default=(0,i.default)(g,g.entries())}}),WO=N({"../../node_modules/aria-query/lib/elementRoleMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(Hi()),r=n(Zc());function n(E){return E&&E.__esModule?E:{default:E}}function o(E,_){return l(E)||c(E,_)||a(E,_)||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(E,_){if(E){if(typeof E=="string")return s(E,_);var S={}.toString.call(E).slice(8,-1);return S==="Object"&&E.constructor&&(S=E.constructor.name),S==="Map"||S==="Set"?Array.from(E):S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S)?s(E,_):void 0}}function s(E,_){(_==null||_>E.length)&&(_=E.length);for(var S=0,A=Array(_);S<_;S++)A[S]=E[S];return A}function c(E,_){var S=E==null?null:typeof Symbol<"u"&&E[Symbol.iterator]||E["@@iterator"];if(S!=null){var A,$,k,H,I=[],O=!0,q=!1;try{if(k=(S=S.call(E)).next,_===0){if(Object(S)!==S)return;O=!1}else for(;!(O=(A=k.call(S)).done)&&(I.push(A.value),I.length!==_);O=!0);}catch(F){q=!0,$=F}finally{try{if(!O&&S.return!=null&&(H=S.return(),Object(H)!==H))return}finally{if(q)throw $}}return I}}function l(E){if(Array.isArray(E))return E}var d=[],p=r.default.keys();for(b=0;b<p.length;b++)if(f=p[b],m=r.default.get(f),m)for(y=[].concat(m.baseConcepts,m.relatedConcepts),g=function(){var E=y[v];if(E.module==="HTML"){var _=E.concept;if(_){var S=d.filter(function(H){return R(H[0],_)})[0],A;S?A=S[1]:A=[];for(var $=!0,k=0;k<A.length;k++)if(A[k]===f){$=!1;break}$&&A.push(f),S||d.push([_,A])}}},v=0;v<y.length;v++)g();var f,m,y,g,v,b,T={entries:function(){return d},forEach:function(E){for(var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,S=0,A=d;S<A.length;S++){var $=o(A[S],2),k=$[0],H=$[1];E.call(_,H,k,d)}},get:function(E){var _=d.filter(function(S){return E.name===S[0].name&&C(E.attributes,S[0].attributes)})[0];return _&&_[1]},has:function(E){return!!T.get(E)},keys:function(){return d.map(function(E){var _=o(E,1),S=_[0];return S})},values:function(){return d.map(function(E){var _=o(E,2),S=_[1];return S})}};function R(E,_){return E.name===_.name&&x(E.constraints,_.constraints)&&C(E.attributes,_.attributes)}function x(E,_){if(E===void 0&&_!==void 0||E!==void 0&&_===void 0)return!1;if(E!==void 0&&_!==void 0){if(E.length!==_.length)return!1;for(var S=0;S<E.length;S++)if(E[S]!==_[S])return!1}return!0}function C(E,_){if(E===void 0&&_!==void 0||E!==void 0&&_===void 0)return!1;if(E!==void 0&&_!==void 0){if(E.length!==_.length)return!1;for(var S=0;S<E.length;S++){if(E[S].name!==_[S].name||E[S].value!==_[S].value||E[S].constraints===void 0&&_[S].constraints!==void 0||E[S].constraints!==void 0&&_[S].constraints===void 0)return!1;if(E[S].constraints!==void 0&&_[S].constraints!==void 0){if(E[S].constraints.length!==_[S].constraints.length)return!1;for(var A=0;A<E[S].constraints.length;A++)if(E[S].constraints[A]!==_[S].constraints[A])return!1}}}return!0}e.default=(0,t.default)(T,T.entries())}}),YO=N({"../../node_modules/aria-query/lib/roleElementMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(Hi()),r=n(Zc());function n(C){return C&&C.__esModule?C:{default:C}}function o(C,E){return l(C)||c(C,E)||a(C,E)||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,E){if(C){if(typeof C=="string")return s(C,E);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,E):void 0}}function s(C,E){(E==null||E>C.length)&&(E=C.length);for(var _=0,S=Array(E);_<E;_++)S[_]=C[_];return S}function c(C,E){var _=C==null?null:typeof Symbol<"u"&&C[Symbol.iterator]||C["@@iterator"];if(_!=null){var S,A,$,k,H=[],I=!0,O=!1;try{if($=(_=_.call(C)).next,E===0){if(Object(_)!==_)return;I=!1}else for(;!(I=(S=$.call(_)).done)&&(H.push(S.value),H.length!==E);I=!0);}catch(q){O=!0,A=q}finally{try{if(!I&&_.return!=null&&(k=_.return(),Object(k)!==k))return}finally{if(O)throw A}}return H}}function l(C){if(Array.isArray(C))return C}var d=[],p=r.default.keys();for(R=0;R<p.length;R++)if(f=p[R],m=r.default.get(f),y=[],m){for(g=[].concat(m.baseConcepts,m.relatedConcepts),T=0;T<g.length;T++)v=g[T],v.module==="HTML"&&(b=v.concept,b!=null&&y.push(b));y.length>0&&d.push([f,y])}var f,m,y,g,v,b,T,R,x={entries:function(){return d},forEach:function(C){for(var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,_=0,S=d;_<S.length;_++){var A=o(S[_],2),$=A[0],k=A[1];C.call(E,k,$,d)}},get:function(C){var E=d.filter(function(_){return _[0]===C})[0];return E&&E[1]},has:function(C){return!!x.get(C)},keys:function(){return d.map(function(C){var E=o(C,1),_=E[0];return _})},values:function(){return d.map(function(C){var E=o(C,2),_=E[1];return _})}};e.default=(0,t.default)(x,x.entries())}}),ed=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(dA()),r=a(pA()),n=a(Zc()),o=a(WO()),i=a(YO());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}}),KO=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]}}}),mg=N({"../../node_modules/color-convert/conversions.js"(e,t){var r=KO(),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,l=a[2]/255,d=Math.min(s,c,l),p=Math.max(s,c,l),f=p-d,m,y;p===d?m=0:s===p?m=(c-l)/f:c===p?m=2+(l-s)/f:l===p&&(m=4+(s-c)/f),m=Math.min(m*60,360),m<0&&(m+=360);let g=(d+p)/2;return p===d?y=0:g<=.5?y=f/(p+d):y=f/(2-p-d),[m,y*100,g*100]},o.rgb.hsv=function(a){let s,c,l,d,p,f=a[0]/255,m=a[1]/255,y=a[2]/255,g=Math.max(f,m,y),v=g-Math.min(f,m,y),b=function(T){return(g-T)/6/v+1/2};return v===0?(d=0,p=0):(p=v/g,s=b(f),c=b(m),l=b(y),f===g?d=l-c:m===g?d=1/3+s-l: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],l=a[2],d=o.rgb.hsl(a)[0],p=1/255*Math.min(s,Math.min(c,l));return l=1-1/255*Math.max(s,Math.max(c,l)),[d,p*100,l*100]},o.rgb.cmyk=function(a){let s=a[0]/255,c=a[1]/255,l=a[2]/255,d=Math.min(1-s,1-c,1-l),p=(1-s-d)/(1-d)||0,f=(1-c-d)/(1-d)||0,m=(1-l-d)/(1-d)||0;return[p*100,f*100,m*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,l;for(let d of Object.keys(r)){let p=r[d],f=i(a,p);f<c&&(c=f,l=d)}return l},o.keyword.rgb=function(a){return r[a]},o.rgb.xyz=function(a){let s=a[0]/255,c=a[1]/255,l=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,l=l>.04045?((l+.055)/1.055)**2.4:l/12.92;let d=s*.4124+c*.3576+l*.1805,p=s*.2126+c*.7152+l*.0722,f=s*.0193+c*.1192+l*.9505;return[d*100,p*100,f*100]},o.rgb.lab=function(a){let s=o.rgb.xyz(a),c=s[0],l=s[1],d=s[2];c/=95.047,l/=100,d/=108.883,c=c>.008856?c**(1/3):7.787*c+16/116,l=l>.008856?l**(1/3):7.787*l+16/116,d=d>.008856?d**(1/3):7.787*d+16/116;let p=116*l-16,f=500*(c-l),m=200*(l-d);return[p,f,m]},o.hsl.rgb=function(a){let s=a[0]/360,c=a[1]/100,l=a[2]/100,d,p,f;if(c===0)return f=l*255,[f,f,f];l<.5?d=l*(1+c):d=l+c-l*c;let m=2*l-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=m+(d-m)*6*p:2*p<1?f=d:3*p<2?f=m+(d-m)*(2/3-p)*6:f=m,y[g]=f*255;return y},o.hsl.hsv=function(a){let s=a[0],c=a[1]/100,l=a[2]/100,d=c,p=Math.max(l,.01);l*=2,c*=l<=1?l:2-l,d*=p<=1?p:2-p;let f=(l+c)/2,m=l===0?2*d/(p+d):2*c/(l+c);return[s,m*100,f*100]},o.hsv.rgb=function(a){let s=a[0]/60,c=a[1]/100,l=a[2]/100,d=Math.floor(s)%6,p=s-Math.floor(s),f=255*l*(1-c),m=255*l*(1-c*p),y=255*l*(1-c*(1-p));switch(l*=255,d){case 0:return[l,y,f];case 1:return[m,l,f];case 2:return[f,l,y];case 3:return[f,m,l];case 4:return[y,f,l];case 5:return[l,f,m]}},o.hsv.hsl=function(a){let s=a[0],c=a[1]/100,l=a[2]/100,d=Math.max(l,.01),p,f;f=(2-c)*l;let m=(2-c)*d;return p=c*d,p/=m<=1?m:2-m,p=p||0,f/=2,[s,p*100,f*100]},o.hwb.rgb=function(a){let s=a[0]/360,c=a[1]/100,l=a[2]/100,d=c+l,p;d>1&&(c/=d,l/=d);let f=Math.floor(6*s),m=1-l;p=6*s-f,(f&1)!==0&&(p=1-p);let y=c+p*(m-c),g,v,b;switch(f){default:case 6:case 0:g=m,v=y,b=c;break;case 1:g=y,v=m,b=c;break;case 2:g=c,v=m,b=y;break;case 3:g=c,v=y,b=m;break;case 4:g=y,v=c,b=m;break;case 5:g=m,v=c,b=y;break}return[g*255,v*255,b*255]},o.cmyk.rgb=function(a){let s=a[0]/100,c=a[1]/100,l=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),m=1-Math.min(1,l*(1-d)+d);return[p*255,f*255,m*255]},o.xyz.rgb=function(a){let s=a[0]/100,c=a[1]/100,l=a[2]/100,d,p,f;return d=s*3.2406+c*-1.5372+l*-.4986,p=s*-.9689+c*1.8758+l*.0415,f=s*.0557+c*-.204+l*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],l=a[2];s/=95.047,c/=100,l/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,c=c>.008856?c**(1/3):7.787*c+16/116,l=l>.008856?l**(1/3):7.787*l+16/116;let d=116*c-16,p=500*(s-c),f=200*(c-l);return[d,p,f]},o.lab.xyz=function(a){let s=a[0],c=a[1],l=a[2],d,p,f;p=(s+16)/116,d=c/500+p,f=p-l/200;let m=p**3,y=d**3,g=f**3;return p=m>.008856?m:(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],l=a[2],d;d=Math.atan2(l,c)*360/2/Math.PI,d<0&&(d+=360);let p=Math.sqrt(c*c+l*l);return[s,p,d]},o.lch.lab=function(a){let s=a[0],c=a[1],l=a[2]/360*2*Math.PI,d=c*Math.cos(l),p=c*Math.sin(l);return[s,d,p]},o.rgb.ansi16=function(a,s=null){let[c,l,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(l/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],l=a[2];return s===c&&c===l?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(l/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,l=(s&1)*c*255,d=(s>>1&1)*c*255,p=(s>>2&1)*c*255;return[l,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,l=Math.floor((s=a%36)/6)/5*255,d=s%6/5*255;return[c,l,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(m=>m+m).join(""));let l=parseInt(c,16),d=l>>16&255,p=l>>8&255,f=l&255;return[d,p,f]},o.rgb.hcg=function(a){let s=a[0]/255,c=a[1]/255,l=a[2]/255,d=Math.max(Math.max(s,c),l),p=Math.min(Math.min(s,c),l),f=d-p,m,y;return f<1?m=p/(1-f):m=0,f<=0?y=0:d===s?y=(c-l)/f%6:d===c?y=2+(l-s)/f:y=4+(s-c)/f,y/=6,y%=1,[y*360,f*100,m*100]},o.hsl.hcg=function(a){let s=a[1]/100,c=a[2]/100,l=c<.5?2*s*c:2*s*(1-c),d=0;return l<1&&(d=(c-.5*l)/(1-l)),[a[0],l*100,d*100]},o.hsv.hcg=function(a){let s=a[1]/100,c=a[2]/100,l=s*c,d=0;return l<1&&(d=(c-l)/(1-l)),[a[0],l*100,d*100]},o.hcg.rgb=function(a){let s=a[0]/360,c=a[1]/100,l=a[2]/100;if(c===0)return[l*255,l*255,l*255];let d=[0,0,0],p=s%1*6,f=p%1,m=1-f,y=0;switch(Math.floor(p)){case 0:d[0]=1,d[1]=f,d[2]=0;break;case 1:d[0]=m,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]=m,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]=m}return y=(1-c)*l,[(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,l=s+c*(1-s),d=0;return l>0&&(d=s/l),[a[0],d*100,l*100]},o.hcg.hsl=function(a){let s=a[1]/100,c=a[2]/100*(1-s)+.5*s,l=0;return c>0&&c<.5?l=s/(2*c):c>=.5&&c<1&&(l=s/(2*(1-c))),[a[0],l*100,c*100]},o.hcg.hwb=function(a){let s=a[1]/100,c=a[2]/100,l=s+c*(1-s);return[a[0],(l-s)*100,(1-l)*100]},o.hwb.hcg=function(a){let s=a[1]/100,c=1-a[2]/100,l=c-s,d=0;return l<1&&(d=(c-l)/(1-l)),[a[0],l*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]}}}),XO=N({"../../node_modules/color-convert/route.js"(e,t){var r=mg();function n(){let s={},c=Object.keys(r);for(let l=c.length,d=0;d<l;d++)s[c[d]]={distance:-1,parent:null};return s}function o(s){let c=n(),l=[s];for(c[s].distance=0;l.length;){let d=l.pop(),p=Object.keys(r[d]);for(let f=p.length,m=0;m<f;m++){let y=p[m],g=c[y];g.distance===-1&&(g.distance=c[d].distance+1,g.parent=d,l.unshift(y))}}return c}function i(s,c){return function(l){return c(s(l))}}function a(s,c){let l=[c[s].parent,s],d=r[c[s].parent][s],p=c[s].parent;for(;c[p].parent;)l.unshift(c[p].parent),d=i(r[c[p].parent][p],d),p=c[p].parent;return d.conversion=l,d}t.exports=function(s){let c=o(s),l={},d=Object.keys(c);for(let p=d.length,f=0;f<p;f++){let m=d[f];c[m].parent!==null&&(l[m]=a(m,c))}return l}}}),QO=N({"../../node_modules/color-convert/index.js"(e,t){var r=mg(),n=XO(),o={},i=Object.keys(r);function a(c){let l=function(...d){let p=d[0];return p==null?p:(p.length>1&&(d=p),c(d))};return"conversion"in c&&(l.conversion=c.conversion),l}function s(c){let l=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 m=f.length,y=0;y<m;y++)f[y]=Math.round(f[y]);return f};return"conversion"in c&&(l.conversion=c.conversion),l}i.forEach(c=>{o[c]={},Object.defineProperty(o[c],"channels",{value:r[c].channels}),Object.defineProperty(o[c],"labels",{value:r[c].labels});let l=n(c);Object.keys(l).forEach(d=>{let p=l[d];o[c][d]=s(p),o[c][d].raw=a(p)})}),t.exports=o}}),ZO=N({"../../node_modules/ansi-styles/index.js"(e,t){var r=(p,f)=>(...m)=>`\x1B[${p(...m)+f}m`,n=(p,f)=>(...m)=>{let y=p(...m);return`\x1B[${38+f};5;${y}m`},o=(p,f)=>(...m)=>{let y=p(...m);return`\x1B[${38+f};2;${y[0]};${y[1]};${y[2]}m`},i=p=>p,a=(p,f,m)=>[p,f,m],s=(p,f,m)=>{Object.defineProperty(p,f,{get:()=>{let y=m();return Object.defineProperty(p,f,{value:y,enumerable:!0,configurable:!0}),y},enumerable:!0,configurable:!0})},c,l=(p,f,m,y)=>{c===void 0&&(c=QO());let g=y?10:0,v={};for(let[b,T]of Object.entries(c)){let R=b==="ansi16"?"ansi":b;b===f?v[R]=p(m,g):typeof T=="object"&&(v[R]=p(T[f],g))}return v};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[m,y]of Object.entries(f)){for(let[g,v]of Object.entries(y))f[g]={open:`\x1B[${v[0]}m`,close:`\x1B[${v[1]}m`},y[g]=f[g],p.set(v[0],v[1]);Object.defineProperty(f,m,{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",()=>l(r,"ansi16",i,!1)),s(f.color,"ansi256",()=>l(n,"ansi256",i,!1)),s(f.color,"ansi16m",()=>l(o,"rgb",a,!1)),s(f.bgColor,"ansi",()=>l(r,"ansi16",i,!0)),s(f.bgColor,"ansi256",()=>l(n,"ansi256",i,!0)),s(f.bgColor,"ansi16m",()=>l(o,"rgb",a,!0)),f}Object.defineProperty(t,"exports",{enumerable:!0,get:d})}}),ex=N({"../../node_modules/supports-color/browser.js"(e,t){t.exports={stdout:!1,stderr:!1}}}),tx=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,l=0,d="";do d+=o.substr(l,s-l)+i+a,l=s+c,s=o.indexOf(i,l);while(s!==-1);return d+=o.substr(l),d},n=(o,i,a,s)=>{let c=0,l="";do{let d=o[s-1]==="\r";l+=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 l+=o.substr(c),l};t.exports={stringReplaceAll:r,stringEncaseCRLFWithFirstIndex:n}}}),rx=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",m=p[1]==="{";return f&&!m&&p.length===5||p[0]==="x"&&p.length===3?String.fromCharCode(parseInt(p.slice(1),16)):f&&m?String.fromCodePoint(parseInt(p.slice(2,-1),16)):a.get(p)||p}function c(p,f){let m=[],y=f.trim().split(/\s*,\s*/g),g;for(let v of y){let b=Number(v);if(!Number.isNaN(b))m.push(b);else if(g=v.match(o))m.push(g[2].replace(i,(T,R,x)=>R?s(R):x));else throw new Error(`Invalid Chalk template style argument: ${v} (in style '${p}')`)}return m}function l(p){n.lastIndex=0;let f=[],m;for(;(m=n.exec(p))!==null;){let y=m[1];if(m[2]){let g=c(y,m[2]);f.push([y].concat(g))}else f.push([y])}return f}function d(p,f){let m={};for(let g of f)for(let v of g.styles)m[v[0]]=g.inverse?null:v.slice(1);let y=p;for(let[g,v]of Object.entries(m))if(Array.isArray(v)){if(!(g in y))throw new Error(`Unknown Chalk style: ${g}`);y=v.length>0?y[g](...v):y[g]}return y}t.exports=(p,f)=>{let m=[],y=[],g=[];if(f.replace(r,(v,b,T,R,x,C)=>{if(b)g.push(s(b));else if(R){let E=g.join("");g=[],y.push(m.length===0?E:d(p,m)(E)),m.push({inverse:T,styles:l(R)})}else if(x){if(m.length===0)throw new Error("Found extraneous } in Chalk template literal");y.push(d(p,m)(g.join(""))),g=[],m.pop()}else g.push(C)}),y.push(g.join("")),m.length>0){let v=`Chalk template literal is missing ${m.length} closing bracket${m.length===1?"":"s"} (\`}\`)`;throw new Error(v)}return y.join("")}}}),hg=N({"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/index.js"(e,t){var r=ZO(),{stdout:n,stderr:o}=ex(),{stringReplaceAll:i,stringEncaseCRLFWithFirstIndex:a}=tx(),s=["ansi","ansi","ansi256","ansi16m"],c=Object.create(null),l=(C,E={})=>{if(E.level>3||E.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let _=n?n.level:0;C.level=E.level===void 0?_:E.level},d=class{constructor(C){return p(C)}},p=C=>{let E={};return l(E,C),E.template=(..._)=>R(E.template,..._),Object.setPrototypeOf(E,f.prototype),Object.setPrototypeOf(E.template,E),E.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},E.template.Instance=d,E.template};function f(C){return p(C)}for(let[C,E]of Object.entries(r))c[C]={get(){let _=v(this,g(E.open,E.close,this._styler),this._isEmpty);return Object.defineProperty(this,C,{value:_}),_}};c.visible={get(){let C=v(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:C}),C}};var m=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let C of m)c[C]={get(){let{level:E}=this;return function(..._){let S=g(r.color[s[E]][C](..._),r.color.close,this._styler);return v(this,S,this._isEmpty)}}};for(let C of m){let E="bg"+C[0].toUpperCase()+C.slice(1);c[E]={get(){let{level:_}=this;return function(...S){let A=g(r.bgColor[s[_]][C](...S),r.bgColor.close,this._styler);return v(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,E,_)=>{let S,A;return _===void 0?(S=C,A=E):(S=_.openAll+C,A=E+_.closeAll),{open:C,close:E,openAll:S,closeAll:A,parent:_}},v=(C,E,_)=>{let S=(...A)=>b(S,A.length===1?""+A[0]:A.join(" "));return S.__proto__=y,S._generator=C,S._styler=E,S._isEmpty=_,S},b=(C,E)=>{if(C.level<=0||!E)return C._isEmpty?"":E;let _=C._styler;if(_===void 0)return E;let{openAll:S,closeAll:A}=_;if(E.indexOf("\x1B")!==-1)for(;_!==void 0;)E=i(E,_.close,_.open),_=_.parent;let $=E.indexOf(`
13
+ `);return $!==-1&&(E=a(E,A,S,$)),S+E+A},T,R=(C,...E)=>{let[_]=E;if(!Array.isArray(_))return E.join(" ");let S=E.slice(1),A=[_.raw[0]];for(let $=1;$<_.length;$++)A.push(String(S[$-1]).replace(/[{}\\]/g,"\\$&"),String(_.raw[$]));return T===void 0&&(T=rx()),T(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}}),nx=N({"../../node_modules/lodash/_listCacheClear.js"(e,t){function r(){this.__data__=[],this.size=0}t.exports=r}}),yg=N({"../../node_modules/lodash/eq.js"(e,t){function r(n,o){return n===o||n!==n&&o!==o}t.exports=r}}),xs=N({"../../node_modules/lodash/_assocIndexOf.js"(e,t){var r=yg();function n(o,i){for(var a=o.length;a--;)if(r(o[a][0],i))return a;return-1}t.exports=n}}),ox=N({"../../node_modules/lodash/_listCacheDelete.js"(e,t){var r=xs(),n=Array.prototype,o=n.splice;function i(a){var s=this.__data__,c=r(s,a);if(c<0)return!1;var l=s.length-1;return c==l?s.pop():o.call(s,c,1),--this.size,!0}t.exports=i}}),ix=N({"../../node_modules/lodash/_listCacheGet.js"(e,t){var r=xs();function n(o){var i=this.__data__,a=r(i,o);return a<0?void 0:i[a][1]}t.exports=n}}),ax=N({"../../node_modules/lodash/_listCacheHas.js"(e,t){var r=xs();function n(o){return r(this.__data__,o)>-1}t.exports=n}}),sx=N({"../../node_modules/lodash/_listCacheSet.js"(e,t){var r=xs();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}}),Ps=N({"../../node_modules/lodash/_ListCache.js"(e,t){var r=nx(),n=ox(),o=ix(),i=ax(),a=sx();function s(c){var l=-1,d=c==null?0:c.length;for(this.clear();++l<d;){var p=c[l];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}}),lx=N({"../../node_modules/lodash/_stackClear.js"(e,t){var r=Ps();function n(){this.__data__=new r,this.size=0}t.exports=n}}),ux=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}}),cx=N({"../../node_modules/lodash/_stackGet.js"(e,t){function r(n){return this.__data__.get(n)}t.exports=r}}),dx=N({"../../node_modules/lodash/_stackHas.js"(e,t){function r(n){return this.__data__.has(n)}t.exports=r}}),gg=N({"../../node_modules/lodash/_freeGlobal.js"(e,t){var r=typeof global=="object"&&global&&global.Object===Object&&global;t.exports=r}}),Rr=N({"../../node_modules/lodash/_root.js"(e,t){var r=gg(),n=typeof self=="object"&&self&&self.Object===Object&&self,o=r||n||Function("return this")();t.exports=o}}),td=N({"../../node_modules/lodash/_Symbol.js"(e,t){var r=Rr(),n=r.Symbol;t.exports=n}}),px=N({"../../node_modules/lodash/_getRawTag.js"(e,t){var r=td(),n=Object.prototype,o=n.hasOwnProperty,i=n.toString,a=r?r.toStringTag:void 0;function s(c){var l=o.call(c,a),d=c[a];try{c[a]=void 0;var p=!0}catch{}var f=i.call(c);return p&&(l?c[a]=d:delete c[a]),f}t.exports=s}}),fx=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}}),Cs=N({"../../node_modules/lodash/_baseGetTag.js"(e,t){var r=td(),n=px(),o=fx(),i="[object Null]",a="[object Undefined]",s=r?r.toStringTag:void 0;function c(l){return l==null?l===void 0?a:i:s&&s in Object(l)?n(l):o(l)}t.exports=c}}),bg=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}}),vg=N({"../../node_modules/lodash/isFunction.js"(e,t){var r=Cs(),n=bg(),o="[object AsyncFunction]",i="[object Function]",a="[object GeneratorFunction]",s="[object Proxy]";function c(l){if(!n(l))return!1;var d=r(l);return d==i||d==a||d==o||d==s}t.exports=c}}),mx=N({"../../node_modules/lodash/_coreJsData.js"(e,t){var r=Rr(),n=r["__core-js_shared__"];t.exports=n}}),hx=N({"../../node_modules/lodash/_isMasked.js"(e,t){var r=mx(),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}}),Eg=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}}),yx=N({"../../node_modules/lodash/_baseIsNative.js"(e,t){var r=vg(),n=hx(),o=bg(),i=Eg(),a=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,d=c.toString,p=l.hasOwnProperty,f=RegExp("^"+d.call(p).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(y){if(!o(y)||n(y))return!1;var g=r(y)?f:s;return g.test(i(y))}t.exports=m}}),gx=N({"../../node_modules/lodash/_getValue.js"(e,t){function r(n,o){return n?.[o]}t.exports=r}}),mo=N({"../../node_modules/lodash/_getNative.js"(e,t){var r=yx(),n=gx();function o(i,a){var s=n(i,a);return r(s)?s:void 0}t.exports=o}}),rd=N({"../../node_modules/lodash/_Map.js"(e,t){var r=mo(),n=Rr(),o=r(n,"Map");t.exports=o}}),Ns=N({"../../node_modules/lodash/_nativeCreate.js"(e,t){var r=mo(),n=r(Object,"create");t.exports=n}}),bx=N({"../../node_modules/lodash/_hashClear.js"(e,t){var r=Ns();function n(){this.__data__=r?r(null):{},this.size=0}t.exports=n}}),vx=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}}),Ex=N({"../../node_modules/lodash/_hashGet.js"(e,t){var r=Ns(),n="__lodash_hash_undefined__",o=Object.prototype,i=o.hasOwnProperty;function a(s){var c=this.__data__;if(r){var l=c[s];return l===n?void 0:l}return i.call(c,s)?c[s]:void 0}t.exports=a}}),wx=N({"../../node_modules/lodash/_hashHas.js"(e,t){var r=Ns(),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}}),_x=N({"../../node_modules/lodash/_hashSet.js"(e,t){var r=Ns(),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}}),Tx=N({"../../node_modules/lodash/_Hash.js"(e,t){var r=bx(),n=vx(),o=Ex(),i=wx(),a=_x();function s(c){var l=-1,d=c==null?0:c.length;for(this.clear();++l<d;){var p=c[l];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}}),Sx=N({"../../node_modules/lodash/_mapCacheClear.js"(e,t){var r=Tx(),n=Ps(),o=rd();function i(){this.size=0,this.__data__={hash:new r,map:new(o||n),string:new r}}t.exports=i}}),Ax=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}}),Is=N({"../../node_modules/lodash/_getMapData.js"(e,t){var r=Ax();function n(o,i){var a=o.__data__;return r(i)?a[typeof i=="string"?"string":"hash"]:a.map}t.exports=n}}),Rx=N({"../../node_modules/lodash/_mapCacheDelete.js"(e,t){var r=Is();function n(o){var i=r(this,o).delete(o);return this.size-=i?1:0,i}t.exports=n}}),Ox=N({"../../node_modules/lodash/_mapCacheGet.js"(e,t){var r=Is();function n(o){return r(this,o).get(o)}t.exports=n}}),xx=N({"../../node_modules/lodash/_mapCacheHas.js"(e,t){var r=Is();function n(o){return r(this,o).has(o)}t.exports=n}}),Px=N({"../../node_modules/lodash/_mapCacheSet.js"(e,t){var r=Is();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}}),wg=N({"../../node_modules/lodash/_MapCache.js"(e,t){var r=Sx(),n=Rx(),o=Ox(),i=xx(),a=Px();function s(c){var l=-1,d=c==null?0:c.length;for(this.clear();++l<d;){var p=c[l];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}}),Cx=N({"../../node_modules/lodash/_stackSet.js"(e,t){var r=Ps(),n=rd(),o=wg(),i=200;function a(s,c){var l=this.__data__;if(l instanceof r){var d=l.__data__;if(!n||d.length<i-1)return d.push([s,c]),this.size=++l.size,this;l=this.__data__=new o(d)}return l.set(s,c),this.size=l.size,this}t.exports=a}}),Nx=N({"../../node_modules/lodash/_Stack.js"(e,t){var r=Ps(),n=lx(),o=ux(),i=cx(),a=dx(),s=Cx();function c(l){var d=this.__data__=new r(l);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}}),Ix=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}}),Mx=N({"../../node_modules/lodash/_setCacheHas.js"(e,t){function r(n){return this.__data__.has(n)}t.exports=r}}),jx=N({"../../node_modules/lodash/_SetCache.js"(e,t){var r=wg(),n=Ix(),o=Mx();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}}),kx=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}}),qx=N({"../../node_modules/lodash/_cacheHas.js"(e,t){function r(n,o){return n.has(o)}t.exports=r}}),_g=N({"../../node_modules/lodash/_equalArrays.js"(e,t){var r=jx(),n=kx(),o=qx(),i=1,a=2;function s(c,l,d,p,f,m){var y=d&i,g=c.length,v=l.length;if(g!=v&&!(y&&v>g))return!1;var b=m.get(c),T=m.get(l);if(b&&T)return b==l&&T==c;var R=-1,x=!0,C=d&a?new r:void 0;for(m.set(c,l),m.set(l,c);++R<g;){var E=c[R],_=l[R];if(p)var S=y?p(_,E,R,l,c,m):p(E,_,R,c,l,m);if(S!==void 0){if(S)continue;x=!1;break}if(C){if(!n(l,function(A,$){if(!o(C,$)&&(E===A||f(E,A,d,p,m)))return C.push($)})){x=!1;break}}else if(!(E===_||f(E,_,d,p,m))){x=!1;break}}return m.delete(c),m.delete(l),x}t.exports=s}}),Lx=N({"../../node_modules/lodash/_Uint8Array.js"(e,t){var r=Rr(),n=r.Uint8Array;t.exports=n}}),Dx=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}}),$x=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}}),Fx=N({"../../node_modules/lodash/_equalByTag.js"(e,t){var r=td(),n=Lx(),o=yg(),i=_g(),a=Dx(),s=$x(),c=1,l=2,d="[object Boolean]",p="[object Date]",f="[object Error]",m="[object Map]",y="[object Number]",g="[object RegExp]",v="[object Set]",b="[object String]",T="[object Symbol]",R="[object ArrayBuffer]",x="[object DataView]",C=r?r.prototype:void 0,E=C?C.valueOf:void 0;function _(S,A,$,k,H,I,O){switch($){case x:if(S.byteLength!=A.byteLength||S.byteOffset!=A.byteOffset)return!1;S=S.buffer,A=A.buffer;case R:return!(S.byteLength!=A.byteLength||!I(new n(S),new n(A)));case d:case p:case y:return o(+S,+A);case f:return S.name==A.name&&S.message==A.message;case g:case b:return S==A+"";case m:var q=a;case v:var F=k&c;if(q||(q=s),S.size!=A.size&&!F)return!1;var V=O.get(S);if(V)return V==A;k|=l,O.set(S,A);var K=i(q(S),q(A),k,H,I,O);return O.delete(S),K;case T:if(E)return E.call(S)==E.call(A)}return!1}t.exports=_}}),Bx=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}}),nd=N({"../../node_modules/lodash/isArray.js"(e,t){var r=Array.isArray;t.exports=r}}),Ux=N({"../../node_modules/lodash/_baseGetAllKeys.js"(e,t){var r=Bx(),n=nd();function o(i,a,s){var c=a(i);return n(i)?c:r(c,s(i))}t.exports=o}}),Jx=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 l=n[i];o(l,i,n)&&(c[s++]=l)}return c}t.exports=r}}),Hx=N({"../../node_modules/lodash/stubArray.js"(e,t){function r(){return[]}t.exports=r}}),Vx=N({"../../node_modules/lodash/_getSymbols.js"(e,t){var r=Jx(),n=Hx(),o=Object.prototype,i=o.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(c){return c==null?[]:(c=Object(c),r(a(c),function(l){return i.call(c,l)}))}:n;t.exports=s}}),zx=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}}),Ms=N({"../../node_modules/lodash/isObjectLike.js"(e,t){function r(n){return n!=null&&typeof n=="object"}t.exports=r}}),Gx=N({"../../node_modules/lodash/_baseIsArguments.js"(e,t){var r=Cs(),n=Ms(),o="[object Arguments]";function i(a){return n(a)&&r(a)==o}t.exports=i}}),Wx=N({"../../node_modules/lodash/isArguments.js"(e,t){var r=Gx(),n=Ms(),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}}),Yx=N({"../../node_modules/lodash/stubFalse.js"(e,t){function r(){return!1}t.exports=r}}),Tg=N({"../../node_modules/lodash/isBuffer.js"(e,t){var r=Rr(),n=Yx(),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,l=c||n;t.exports=l}}),Kx=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}}),Sg=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}}),Xx=N({"../../node_modules/lodash/_baseIsTypedArray.js"(e,t){var r=Cs(),n=Sg(),o=Ms(),i="[object Arguments]",a="[object Array]",s="[object Boolean]",c="[object Date]",l="[object Error]",d="[object Function]",p="[object Map]",f="[object Number]",m="[object Object]",y="[object RegExp]",g="[object Set]",v="[object String]",b="[object WeakMap]",T="[object ArrayBuffer]",R="[object DataView]",x="[object Float32Array]",C="[object Float64Array]",E="[object Int8Array]",_="[object Int16Array]",S="[object Int32Array]",A="[object Uint8Array]",$="[object Uint8ClampedArray]",k="[object Uint16Array]",H="[object Uint32Array]",I={};I[x]=I[C]=I[E]=I[_]=I[S]=I[A]=I[$]=I[k]=I[H]=!0,I[i]=I[a]=I[T]=I[s]=I[R]=I[c]=I[l]=I[d]=I[p]=I[f]=I[m]=I[y]=I[g]=I[v]=I[b]=!1;function O(q){return o(q)&&n(q.length)&&!!I[r(q)]}t.exports=O}}),Qx=N({"../../node_modules/lodash/_baseUnary.js"(e,t){function r(n){return function(o){return n(o)}}t.exports=r}}),Zx=N({"../../node_modules/lodash/_nodeUtil.js"(e,t){var r=gg(),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}}),Ag=N({"../../node_modules/lodash/isTypedArray.js"(e,t){var r=Xx(),n=Qx(),o=Zx(),i=o&&o.isTypedArray,a=i?n(i):r;t.exports=a}}),eP=N({"../../node_modules/lodash/_arrayLikeKeys.js"(e,t){var r=zx(),n=Wx(),o=nd(),i=Tg(),a=Kx(),s=Ag(),c=Object.prototype,l=c.hasOwnProperty;function d(p,f){var m=o(p),y=!m&&n(p),g=!m&&!y&&i(p),v=!m&&!y&&!g&&s(p),b=m||y||g||v,T=b?r(p.length,String):[],R=T.length;for(var x in p)(f||l.call(p,x))&&!(b&&(x=="length"||g&&(x=="offset"||x=="parent")||v&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||a(x,R)))&&T.push(x);return T}t.exports=d}}),tP=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}}),rP=N({"../../node_modules/lodash/_overArg.js"(e,t){function r(n,o){return function(i){return n(o(i))}}t.exports=r}}),nP=N({"../../node_modules/lodash/_nativeKeys.js"(e,t){var r=rP(),n=r(Object.keys,Object);t.exports=n}}),oP=N({"../../node_modules/lodash/_baseKeys.js"(e,t){var r=tP(),n=nP(),o=Object.prototype,i=o.hasOwnProperty;function a(s){if(!r(s))return n(s);var c=[];for(var l in Object(s))i.call(s,l)&&l!="constructor"&&c.push(l);return c}t.exports=a}}),iP=N({"../../node_modules/lodash/isArrayLike.js"(e,t){var r=vg(),n=Sg();function o(i){return i!=null&&n(i.length)&&!r(i)}t.exports=o}}),aP=N({"../../node_modules/lodash/keys.js"(e,t){var r=eP(),n=oP(),o=iP();function i(a){return o(a)?r(a):n(a)}t.exports=i}}),sP=N({"../../node_modules/lodash/_getAllKeys.js"(e,t){var r=Ux(),n=Vx(),o=aP();function i(a){return r(a,o,n)}t.exports=i}}),lP=N({"../../node_modules/lodash/_equalObjects.js"(e,t){var r=sP(),n=1,o=Object.prototype,i=o.hasOwnProperty;function a(s,c,l,d,p,f){var m=l&n,y=r(s),g=y.length,v=r(c),b=v.length;if(g!=b&&!m)return!1;for(var T=g;T--;){var R=y[T];if(!(m?R in c:i.call(c,R)))return!1}var x=f.get(s),C=f.get(c);if(x&&C)return x==c&&C==s;var E=!0;f.set(s,c),f.set(c,s);for(var _=m;++T<g;){R=y[T];var S=s[R],A=c[R];if(d)var $=m?d(A,S,R,c,s,f):d(S,A,R,s,c,f);if(!($===void 0?S===A||p(S,A,l,d,f):$)){E=!1;break}_||(_=R=="constructor")}if(E&&!_){var k=s.constructor,H=c.constructor;k!=H&&"constructor"in s&&"constructor"in c&&!(typeof k=="function"&&k instanceof k&&typeof H=="function"&&H instanceof H)&&(E=!1)}return f.delete(s),f.delete(c),E}t.exports=a}}),uP=N({"../../node_modules/lodash/_DataView.js"(e,t){var r=mo(),n=Rr(),o=r(n,"DataView");t.exports=o}}),cP=N({"../../node_modules/lodash/_Promise.js"(e,t){var r=mo(),n=Rr(),o=r(n,"Promise");t.exports=o}}),dP=N({"../../node_modules/lodash/_Set.js"(e,t){var r=mo(),n=Rr(),o=r(n,"Set");t.exports=o}}),pP=N({"../../node_modules/lodash/_WeakMap.js"(e,t){var r=mo(),n=Rr(),o=r(n,"WeakMap");t.exports=o}}),fP=N({"../../node_modules/lodash/_getTag.js"(e,t){var r=uP(),n=rd(),o=cP(),i=dP(),a=pP(),s=Cs(),c=Eg(),l="[object Map]",d="[object Object]",p="[object Promise]",f="[object Set]",m="[object WeakMap]",y="[object DataView]",g=c(r),v=c(n),b=c(o),T=c(i),R=c(a),x=s;(r&&x(new r(new ArrayBuffer(1)))!=y||n&&x(new n)!=l||o&&x(o.resolve())!=p||i&&x(new i)!=f||a&&x(new a)!=m)&&(x=function(C){var E=s(C),_=E==d?C.constructor:void 0,S=_?c(_):"";if(S)switch(S){case g:return y;case v:return l;case b:return p;case T:return f;case R:return m}return E}),t.exports=x}}),mP=N({"../../node_modules/lodash/_baseIsEqualDeep.js"(e,t){var r=Nx(),n=_g(),o=Fx(),i=lP(),a=fP(),s=nd(),c=Tg(),l=Ag(),d=1,p="[object Arguments]",f="[object Array]",m="[object Object]",y=Object.prototype,g=y.hasOwnProperty;function v(b,T,R,x,C,E){var _=s(b),S=s(T),A=_?f:a(b),$=S?f:a(T);A=A==p?m:A,$=$==p?m:$;var k=A==m,H=$==m,I=A==$;if(I&&c(b)){if(!c(T))return!1;_=!0,k=!1}if(I&&!k)return E||(E=new r),_||l(b)?n(b,T,R,x,C,E):o(b,T,A,R,x,C,E);if(!(R&d)){var O=k&&g.call(b,"__wrapped__"),q=H&&g.call(T,"__wrapped__");if(O||q){var F=O?b.value():b,V=q?T.value():T;return E||(E=new r),C(F,V,R,x,E)}}return I?(E||(E=new r),i(b,T,R,x,C,E)):!1}t.exports=v}}),hP=N({"../../node_modules/lodash/_baseIsEqual.js"(e,t){var r=mP(),n=Ms();function o(i,a,s,c,l){return i===a?!0:i==null||a==null||!n(i)&&!n(a)?i!==i&&a!==a:r(i,a,s,c,o,l)}t.exports=o}}),Rg=N({"../../node_modules/lodash/isEqualWith.js"(e,t){var r=hP();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}}),Og=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,l="",d=i.charCodeAt(0);++s<a;){if(c=i.charCodeAt(s),c==0){l+="�";continue}if(c>=1&&c<=31||c==127||s==0&&c>=48&&c<=57||s==1&&c>=48&&c<=57&&d==45){l+="\\"+c.toString(16)+" ";continue}if(s==0&&a==1&&c==45){l+="\\"+i.charAt(s);continue}if(c>=128||c==45||c==95||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122){l+=i.charAt(s);continue}l+="\\"+i.charAt(s)}return l};return r.CSS||(r.CSS={}),r.CSS.escape=n,n})}}),xg=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[l,d]of Object.entries(c))a[l]={open:`\x1B[${d[0]}m`,close:`\x1B[${d[1]}m`},c[l]=a[l],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,l)=>s===c&&c===l?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(l/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:l}=c.groups;l.length===3&&(l=l.split("").map(p=>p+p).join(""));let d=Number.parseInt(l,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})}}),js=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(l=>{Object.getOwnPropertyDescriptor(a,l).enumerable&&c.push(l)}),c};function r(a,s,c,l,d,p,f=": "){let m="",y=a.next();if(!y.done){m+=s.spacingOuter;let g=c+s.indent;for(;!y.done;){let v=p(y.value[0],s,g,l,d),b=p(y.value[1],s,g,l,d);m+=g+v+f+b,y=a.next(),y.done?s.min||(m+=","):m+=","+s.spacingInner}m+=s.spacingOuter+c}return m}function n(a,s,c,l,d,p){let f="",m=a.next();if(!m.done){f+=s.spacingOuter;let y=c+s.indent;for(;!m.done;)f+=y+p(m.value,s,y,l,d),m=a.next(),m.done?s.min||(f+=","):f+=","+s.spacingInner;f+=s.spacingOuter+c}return f}function o(a,s,c,l,d,p){let f="";if(a.length){f+=s.spacingOuter;let m=c+s.indent;for(let y=0;y<a.length;y++)f+=m,y in a&&(f+=p(a[y],s,m,l,d)),y<a.length-1?f+=","+s.spacingInner:s.min||(f+=",");f+=s.spacingOuter+c}return f}function i(a,s,c,l,d,p){let f="",m=t(a,s.compareKeys);if(m.length){f+=s.spacingOuter;let y=c+s.indent;for(let g=0;g<m.length;g++){let v=m[g],b=p(v,s,y,l,d),T=p(a[v],s,y,l,d);f+=y+b+": "+T,g<m.length-1?f+=","+s.spacingInner:s.min||(f+=",")}f+=s.spacingOuter+c}return f}}}),yP=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=js(),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,m,y,g)=>{let v=d.toString();return v==="ArrayContaining"||v==="ArrayNotContaining"?++m>p.maxDepth?"["+v+"]":v+i+"["+(0,t.printListItems)(d.sample,p,f,m,y,g)+"]":v==="ObjectContaining"||v==="ObjectNotContaining"?++m>p.maxDepth?"["+v+"]":v+i+"{"+(0,t.printObjectProperties)(d.sample,p,f,m,y,g)+"}":v==="StringMatching"||v==="StringNotMatching"||v==="StringContaining"||v==="StringNotContaining"?v+i+g(d.sample,p,f,m,y):d.toAsymmetricMatcher()};e.serialize=a;var s=d=>d&&d.$$typeof===o;e.test=s;var c={serialize:a,test:s},l=c;e.default=l}}),gP=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")}}}),bP=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(gP()),r=n(xg());function n(l){return l&&l.__esModule?l:{default:l}}var o=l=>l.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=l=>typeof l=="string"&&!!l.match((0,t.default)());e.test=i;var a=(l,d,p,f,m,y)=>y(o(l),d,p,f,m);e.serialize=a;var s={serialize:a,test:i},c=s;e.default=c}}),vP=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=js(),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,m,y,g,v)=>{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((T,R)=>(T[R.name]=R.value,T),{}):{...p},f,m,y,g,v)+"}":"["+(0,t.printListItems)(Array.from(p),f,m,y,g,v)+"]")};e.serialize=c;var l={serialize:c,test:a},d=l;e.default=d}}),EP=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;")}}}),od=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(EP());function r(l){return l&&l.__esModule?l:{default:l}}var n=(l,d,p,f,m,y,g)=>{let v=f+p.indent,b=p.colors;return l.map(T=>{let R=d[T],x=g(R,p,v,m,y);return typeof R!="string"&&(x.indexOf(`
14
+ `)!==-1&&(x=p.spacingOuter+v+x+p.spacingOuter+f),x="{"+x+"}"),p.spacingInner+f+b.prop.open+T+b.prop.close+"="+b.value.open+x+b.value.close}).join("")};e.printProps=n;var o=(l,d,p,f,m,y)=>l.map(g=>d.spacingOuter+p+(typeof g=="string"?i(g,d):y(g,d,p,f,m))).join("");e.printChildren=o;var i=(l,d)=>{let p=d.colors.content;return p.open+(0,t.default)(l)+p.close};e.printText=i;var a=(l,d)=>{let p=d.colors.comment;return p.open+"<!--"+(0,t.default)(l)+"-->"+p.close};e.printComment=a;var s=(l,d,p,f,m)=>{let y=f.colors.tag;return y.open+"<"+l+(d&&y.close+d+f.spacingOuter+m+y.open)+(p?">"+y.close+p+f.spacingOuter+m+y.open+"</"+l:(d&&!f.min?"":" ")+"/")+">"+y.close};e.printElement=s;var c=(l,d)=>{let p=d.colors.tag;return p.open+"<"+l+p.close+" …"+p.open+" />"+p.close};e.printElementAsLeaf=c}}),wP=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=od(),r=1,n=3,o=8,i=11,a=/^((HTML|SVG)\w*)?Element$/,s=v=>{try{return typeof v.hasAttribute=="function"&&v.hasAttribute("is")}catch{return!1}},c=v=>{let b=v.constructor.name,{nodeType:T,tagName:R}=v,x=typeof R=="string"&&R.includes("-")||s(v);return T===r&&(a.test(b)||x)||T===n&&b==="Text"||T===o&&b==="Comment"||T===i&&b==="DocumentFragment"},l=v=>{var b;return(v==null||(b=v.constructor)===null||b===void 0?void 0:b.name)&&c(v)};e.test=l;function d(v){return v.nodeType===n}function p(v){return v.nodeType===o}function f(v){return v.nodeType===i}var m=(v,b,T,R,x,C)=>{if(d(v))return(0,t.printText)(v.data,b);if(p(v))return(0,t.printComment)(v.data,b);let E=f(v)?"DocumentFragment":v.tagName.toLowerCase();return++R>b.maxDepth?(0,t.printElementAsLeaf)(E,b):(0,t.printElement)(E,(0,t.printProps)(f(v)?[]:Array.from(v.attributes).map(_=>_.name).sort(),f(v)?{}:Array.from(v.attributes).reduce((_,S)=>(_[S.name]=S.value,_),{}),b,T+b.indent,R,x,C),(0,t.printChildren)(Array.prototype.slice.call(v.childNodes||v.children),b,T+b.indent,R,x,C),b,T)};e.serialize=m;var y={serialize:m,test:l},g=y;e.default=g}}),_P=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=js(),r="@@__IMMUTABLE_ITERABLE__@@",n="@@__IMMUTABLE_LIST__@@",o="@@__IMMUTABLE_KEYED__@@",i="@@__IMMUTABLE_MAP__@@",a="@@__IMMUTABLE_ORDERED__@@",s="@@__IMMUTABLE_RECORD__@@",c="@@__IMMUTABLE_SEQ__@@",l="@@__IMMUTABLE_SET__@@",d="@@__IMMUTABLE_STACK__@@",p=S=>"Immutable."+S,f=S=>"["+S+"]",m=" ",y="…",g=(S,A,$,k,H,I,O)=>++k>A.maxDepth?f(p(O)):p(O)+m+"{"+(0,t.printIteratorEntries)(S.entries(),A,$,k,H,I)+"}";function v(S){let A=0;return{next(){if(A<S._keys.length){let $=S._keys[A++];return{done:!1,value:[$,S.get($)]}}return{done:!0,value:void 0}}}}var b=(S,A,$,k,H,I)=>{let O=p(S._name||"Record");return++k>A.maxDepth?f(O):O+m+"{"+(0,t.printIteratorEntries)(v(S),A,$,k,H,I)+"}"},T=(S,A,$,k,H,I)=>{let O=p("Seq");return++k>A.maxDepth?f(O):S[o]?O+m+"{"+(S._iter||S._object?(0,t.printIteratorEntries)(S.entries(),A,$,k,H,I):y)+"}":O+m+"["+(S._iter||S._array||S._collection||S._iterable?(0,t.printIteratorValues)(S.values(),A,$,k,H,I):y)+"]"},R=(S,A,$,k,H,I,O)=>++k>A.maxDepth?f(p(O)):p(O)+m+"["+(0,t.printIteratorValues)(S.values(),A,$,k,H,I)+"]",x=(S,A,$,k,H,I)=>S[i]?g(S,A,$,k,H,I,S[a]?"OrderedMap":"Map"):S[n]?R(S,A,$,k,H,I,"List"):S[l]?R(S,A,$,k,H,I,S[a]?"OrderedSet":"Set"):S[d]?R(S,A,$,k,H,I,"Stack"):S[c]?T(S,A,$,k,H,I):b(S,A,$,k,H,I);e.serialize=x;var C=S=>S&&(S[r]===!0||S[s]===!0);e.test=C;var E={serialize:x,test:C},_=E;e.default=_}}),TP=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,l=60113,d=60120,p=60115,f=60116,m=60121,y=60122,g=60117,v=60129,b=60131;typeof Symbol=="function"&&Symbol.for&&(T=Symbol.for,t=T("react.element"),r=T("react.portal"),n=T("react.fragment"),o=T("react.strict_mode"),i=T("react.profiler"),a=T("react.provider"),s=T("react.context"),c=T("react.forward_ref"),l=T("react.suspense"),d=T("react.suspense_list"),p=T("react.memo"),f=T("react.lazy"),m=T("react.block"),y=T("react.server.block"),g=T("react.fundamental"),v=T("react.debug_trace_mode"),b=T("react.legacy_hidden"));var T;function R(O){if(typeof O=="object"&&O!==null){var q=O.$$typeof;switch(q){case t:switch(O=O.type,O){case n:case i:case o:case l:case d:return O;default:switch(O=O&&O.$$typeof,O){case s:case c:case f:case p:case a:return O;default:return q}}case r:return q}}}var x=a,C=t,E=c,_=n,S=f,A=p,$=r,k=i,H=o,I=l;e.ContextConsumer=s,e.ContextProvider=x,e.Element=C,e.ForwardRef=E,e.Fragment=_,e.Lazy=S,e.Memo=A,e.Portal=$,e.Profiler=k,e.StrictMode=H,e.Suspense=I,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function(O){return R(O)===s},e.isContextProvider=function(O){return R(O)===a},e.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===t},e.isForwardRef=function(O){return R(O)===c},e.isFragment=function(O){return R(O)===n},e.isLazy=function(O){return R(O)===f},e.isMemo=function(O){return R(O)===p},e.isPortal=function(O){return R(O)===r},e.isProfiler=function(O){return R(O)===i},e.isStrictMode=function(O){return R(O)===o},e.isSuspense=function(O){return R(O)===l},e.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===n||O===i||O===v||O===o||O===l||O===d||O===b||typeof O=="object"&&O!==null&&(O.$$typeof===f||O.$$typeof===p||O.$$typeof===a||O.$$typeof===s||O.$$typeof===c||O.$$typeof===g||O.$$typeof===m||O[0]===y)},e.typeOf=R}}),SP=N({"../../node_modules/@testing-library/dom/node_modules/react-is/index.js"(e,t){t.exports=TP()}}),AP=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(SP()),r=od();function n(f){if(typeof WeakMap!="function")return null;var m=new WeakMap,y=new WeakMap;return(n=function(g){return g?y:m})(f)}function o(f,m){if(f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var y=n(m);if(y&&y.has(f))return y.get(f);var g={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in f)if(b!=="default"&&Object.prototype.hasOwnProperty.call(f,b)){var T=v?Object.getOwnPropertyDescriptor(f,b):null;T&&(T.get||T.set)?Object.defineProperty(g,b,T):g[b]=f[b]}return g.default=f,y&&y.set(f,g),g}var i=(f,m=[])=>(Array.isArray(f)?f.forEach(y=>{i(y,m)}):f!=null&&f!==!1&&m.push(f),m),a=f=>{let m=f.type;if(typeof m=="string")return m;if(typeof m=="function")return m.displayName||m.name||"Unknown";if(t.isFragment(f))return"React.Fragment";if(t.isSuspense(f))return"React.Suspense";if(typeof m=="object"&&m!==null){if(t.isContextProvider(f))return"Context.Provider";if(t.isContextConsumer(f))return"Context.Consumer";if(t.isForwardRef(f)){if(m.displayName)return m.displayName;let y=m.render.displayName||m.render.name||"";return y!==""?"ForwardRef("+y+")":"ForwardRef"}if(t.isMemo(f)){let y=m.displayName||m.type.displayName||m.type.name||"";return y!==""?"Memo("+y+")":"Memo"}}return"UNDEFINED"},s=f=>{let{props:m}=f;return Object.keys(m).filter(y=>y!=="children"&&m[y]!==void 0).sort()},c=(f,m,y,g,v,b)=>++g>m.maxDepth?(0,r.printElementAsLeaf)(a(f),m):(0,r.printElement)(a(f),(0,r.printProps)(s(f),f.props,m,y+m.indent,g,v,b),(0,r.printChildren)(i(f.props.children),m,y+m.indent,g,v,b),m,y);e.serialize=c;var l=f=>f!=null&&t.isElement(f);e.test=l;var d={serialize:c,test:l},p=d;e.default=p}}),RP=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=od(),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,m,y,g)=>++m>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,m,y,g):"",d.children?(0,t.printChildren)(d.children,p,f+p.indent,m,y,g):"",p,f);e.serialize=a;var s=d=>d&&d.$$typeof===o;e.test=s;var c={serialize:a,test:s},l=c;e.default=l}}),OP=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=ie,e.plugins=void 0;var t=d(xg()),r=js(),n=d(yP()),o=d(bP()),i=d(vP()),a=d(wP()),s=d(_P()),c=d(AP()),l=d(RP());function d(B){return B&&B.__esModule?B:{default:B}}var p=Object.prototype.toString,f=Date.prototype.toISOString,m=Error.prototype.toString,y=RegExp.prototype.toString,g=B=>typeof B.constructor=="function"&&B.constructor.name||"Object",v=B=>typeof window<"u"&&B===window,b=/^Symbol\((.*)\)(.*)$/,T=/\n/gi,R=class extends Error{constructor(B,te){super(B),this.stack=te,this.name=this.constructor.name}};function x(B){return B==="[object Array]"||B==="[object ArrayBuffer]"||B==="[object DataView]"||B==="[object Float32Array]"||B==="[object Float64Array]"||B==="[object Int8Array]"||B==="[object Int16Array]"||B==="[object Int32Array]"||B==="[object Uint8Array]"||B==="[object Uint8ClampedArray]"||B==="[object Uint16Array]"||B==="[object Uint32Array]"}function C(B){return Object.is(B,-0)?"-0":String(B)}function E(B){return`${B}n`}function _(B,te){return te?"[Function "+(B.name||"anonymous")+"]":"[Function]"}function S(B){return String(B).replace(b,"Symbol($1)")}function A(B){return"["+m.call(B)+"]"}function $(B,te,ne,ae){if(B===!0||B===!1)return""+B;if(B===void 0)return"undefined";if(B===null)return"null";let ce=typeof B;if(ce==="number")return C(B);if(ce==="bigint")return E(B);if(ce==="string")return ae?'"'+B.replace(/"|\\/g,"\\$&")+'"':'"'+B+'"';if(ce==="function")return _(B,te);if(ce==="symbol")return S(B);let de=p.call(B);return de==="[object WeakMap]"?"WeakMap {}":de==="[object WeakSet]"?"WeakSet {}":de==="[object Function]"||de==="[object GeneratorFunction]"?_(B,te):de==="[object Symbol]"?S(B):de==="[object Date]"?isNaN(+B)?"Date { NaN }":f.call(B):de==="[object Error]"?A(B):de==="[object RegExp]"?ne?y.call(B).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):y.call(B):B instanceof Error?A(B):null}function k(B,te,ne,ae,ce,de){if(ce.indexOf(B)!==-1)return"[Circular]";ce=ce.slice(),ce.push(B);let ye=++ae>te.maxDepth,ve=te.min;if(te.callToJSON&&!ye&&B.toJSON&&typeof B.toJSON=="function"&&!de)return q(B.toJSON(),te,ne,ae,ce,!0);let Ue=p.call(B);return Ue==="[object Arguments]"?ye?"[Arguments]":(ve?"":"Arguments ")+"["+(0,r.printListItems)(B,te,ne,ae,ce,q)+"]":x(Ue)?ye?"["+B.constructor.name+"]":(ve||!te.printBasicPrototype&&B.constructor.name==="Array"?"":B.constructor.name+" ")+"["+(0,r.printListItems)(B,te,ne,ae,ce,q)+"]":Ue==="[object Map]"?ye?"[Map]":"Map {"+(0,r.printIteratorEntries)(B.entries(),te,ne,ae,ce,q," => ")+"}":Ue==="[object Set]"?ye?"[Set]":"Set {"+(0,r.printIteratorValues)(B.values(),te,ne,ae,ce,q)+"}":ye||v(B)?"["+g(B)+"]":(ve||!te.printBasicPrototype&&g(B)==="Object"?"":g(B)+" ")+"{"+(0,r.printObjectProperties)(B,te,ne,ae,ce,q)+"}"}function H(B){return B.serialize!=null}function I(B,te,ne,ae,ce,de){let ye;try{ye=H(B)?B.serialize(te,ne,ae,ce,de,q):B.print(te,ve=>q(ve,ne,ae,ce,de),ve=>{let Ue=ae+ne.indent;return Ue+ve.replace(T,`
15
+ `+Ue)},{edgeSpacing:ne.spacingOuter,min:ne.min,spacing:ne.spacingInner},ne.colors)}catch(ve){throw new R(ve.message,ve.stack)}if(typeof ye!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof ye}".`);return ye}function O(B,te){for(let ne=0;ne<B.length;ne++)try{if(B[ne].test(te))return B[ne]}catch(ae){throw new R(ae.message,ae.stack)}return null}function q(B,te,ne,ae,ce,de){let ye=O(te.plugins,B);if(ye!==null)return I(ye,B,te,ne,ae,ce);let ve=$(B,te.printFunctionName,te.escapeRegex,te.escapeString);return ve!==null?ve:k(B,te,ne,ae,ce,de)}var F={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},V=Object.keys(F),K={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:F};e.DEFAULT_OPTIONS=K;function oe(B){if(Object.keys(B).forEach(te=>{if(!K.hasOwnProperty(te))throw new Error(`pretty-format: Unknown option "${te}".`)}),B.min&&B.indent!==void 0&&B.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(B.theme!==void 0){if(B.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof B.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof B.theme}".`)}}var ue=B=>V.reduce((te,ne)=>{let ae=B.theme&&B.theme[ne]!==void 0?B.theme[ne]:F[ne],ce=ae&&t.default[ae];if(ce&&typeof ce.close=="string"&&typeof ce.open=="string")te[ne]=ce;else throw new Error(`pretty-format: Option "theme" has a key "${ne}" whose value "${ae}" is undefined in ansi-styles.`);return te},Object.create(null)),L=()=>V.reduce((B,te)=>(B[te]={close:"",open:""},B),Object.create(null)),D=B=>B&&B.printFunctionName!==void 0?B.printFunctionName:K.printFunctionName,G=B=>B&&B.escapeRegex!==void 0?B.escapeRegex:K.escapeRegex,Q=B=>B&&B.escapeString!==void 0?B.escapeString:K.escapeString,X=B=>{var te;return{callToJSON:B&&B.callToJSON!==void 0?B.callToJSON:K.callToJSON,colors:B&&B.highlight?ue(B):L(),compareKeys:B&&typeof B.compareKeys=="function"?B.compareKeys:K.compareKeys,escapeRegex:G(B),escapeString:Q(B),indent:B&&B.min?"":Y(B&&B.indent!==void 0?B.indent:K.indent),maxDepth:B&&B.maxDepth!==void 0?B.maxDepth:K.maxDepth,min:B&&B.min!==void 0?B.min:K.min,plugins:B&&B.plugins!==void 0?B.plugins:K.plugins,printBasicPrototype:(te=B?.printBasicPrototype)!==null&&te!==void 0?te:!0,printFunctionName:D(B),spacingInner:B&&B.min?" ":`
16
+ `,spacingOuter:B&&B.min?"":`
17
+ `}};function Y(B){return new Array(B+1).join(" ")}function ie(B,te){if(te&&(oe(te),te.plugins)){let ae=O(te.plugins,B);if(ae!==null)return I(ae,B,X(te),"",0,[])}let ne=$(B,D(te),G(te),Q(te));return ne!==null?ne:k(B,X(te),"",0,[])}var se={AsymmetricMatcher:n.default,ConvertAnsi:o.default,DOMCollection:i.default,DOMElement:a.default,Immutable:s.default,ReactElement:c.default,ReactTestComponent:l.default};e.plugins=se;var _e=ie;e.default=_e}}),xP=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(l,d){if(!a[l]){a[l]={};for(var p=0;p<l.length;p++)a[l][l.charAt(p)]=p}return a[l][d]}var c={compressToBase64:function(l){if(l==null)return"";var d=c._compress(l,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(l){return l==null?"":l==""?null:c._decompress(l.length,32,function(d){return s(o,l.charAt(d))})},compressToUTF16:function(l){return l==null?"":c._compress(l,15,function(d){return n(d+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:c._decompress(l.length,16384,function(d){return l.charCodeAt(d)-32})},compressToUint8Array:function(l){for(var d=c.compress(l),p=new Uint8Array(d.length*2),f=0,m=d.length;f<m;f++){var y=d.charCodeAt(f);p[f*2]=y>>>8,p[f*2+1]=y%256}return p},decompressFromUint8Array:function(l){if(l==null)return c.decompress(l);for(var d=new Array(l.length/2),p=0,f=d.length;p<f;p++)d[p]=l[p*2]*256+l[p*2+1];var m=[];return d.forEach(function(y){m.push(n(y))}),c.decompress(m.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":c._compress(l,6,function(d){return i.charAt(d)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),c._decompress(l.length,32,function(d){return s(i,l.charAt(d))}))},compress:function(l){return c._compress(l,16,function(d){return n(d)})},_compress:function(l,d,p){if(l==null)return"";var f,m,y={},g={},v="",b="",T="",R=2,x=3,C=2,E=[],_=0,S=0,A;for(A=0;A<l.length;A+=1)if(v=l.charAt(A),Object.prototype.hasOwnProperty.call(y,v)||(y[v]=x++,g[v]=!0),b=T+v,Object.prototype.hasOwnProperty.call(y,b))T=b;else{if(Object.prototype.hasOwnProperty.call(g,T)){if(T.charCodeAt(0)<256){for(f=0;f<C;f++)_=_<<1,S==d-1?(S=0,E.push(p(_)),_=0):S++;for(m=T.charCodeAt(0),f=0;f<8;f++)_=_<<1|m&1,S==d-1?(S=0,E.push(p(_)),_=0):S++,m=m>>1}else{for(m=1,f=0;f<C;f++)_=_<<1|m,S==d-1?(S=0,E.push(p(_)),_=0):S++,m=0;for(m=T.charCodeAt(0),f=0;f<16;f++)_=_<<1|m&1,S==d-1?(S=0,E.push(p(_)),_=0):S++,m=m>>1}R--,R==0&&(R=Math.pow(2,C),C++),delete g[T]}else for(m=y[T],f=0;f<C;f++)_=_<<1|m&1,S==d-1?(S=0,E.push(p(_)),_=0):S++,m=m>>1;R--,R==0&&(R=Math.pow(2,C),C++),y[b]=x++,T=String(v)}if(T!==""){if(Object.prototype.hasOwnProperty.call(g,T)){if(T.charCodeAt(0)<256){for(f=0;f<C;f++)_=_<<1,S==d-1?(S=0,E.push(p(_)),_=0):S++;for(m=T.charCodeAt(0),f=0;f<8;f++)_=_<<1|m&1,S==d-1?(S=0,E.push(p(_)),_=0):S++,m=m>>1}else{for(m=1,f=0;f<C;f++)_=_<<1|m,S==d-1?(S=0,E.push(p(_)),_=0):S++,m=0;for(m=T.charCodeAt(0),f=0;f<16;f++)_=_<<1|m&1,S==d-1?(S=0,E.push(p(_)),_=0):S++,m=m>>1}R--,R==0&&(R=Math.pow(2,C),C++),delete g[T]}else for(m=y[T],f=0;f<C;f++)_=_<<1|m&1,S==d-1?(S=0,E.push(p(_)),_=0):S++,m=m>>1;R--,R==0&&(R=Math.pow(2,C),C++)}for(m=2,f=0;f<C;f++)_=_<<1|m&1,S==d-1?(S=0,E.push(p(_)),_=0):S++,m=m>>1;for(;;)if(_=_<<1,S==d-1){E.push(p(_));break}else S++;return E.join("")},decompress:function(l){return l==null?"":l==""?null:c._decompress(l.length,32768,function(d){return l.charCodeAt(d)})},_decompress:function(l,d,p){var f=[],m=4,y=4,g=3,v="",b=[],T,R,x,C,E,_,S,A={val:p(0),position:d,index:1};for(T=0;T<3;T+=1)f[T]=T;for(x=0,E=Math.pow(2,2),_=1;_!=E;)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,E=Math.pow(2,8),_=1;_!=E;)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;S=n(x);break;case 1:for(x=0,E=Math.pow(2,16),_=1;_!=E;)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;S=n(x);break;case 2:return""}for(f[3]=S,R=S,b.push(S);;){if(A.index>l)return"";for(x=0,E=Math.pow(2,g),_=1;_!=E;)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(S=x){case 0:for(x=0,E=Math.pow(2,8),_=1;_!=E;)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),S=y-1,m--;break;case 1:for(x=0,E=Math.pow(2,16),_=1;_!=E;)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),S=y-1,m--;break;case 2:return b.join("")}if(m==0&&(m=Math.pow(2,g),g++),f[S])v=f[S];else if(S===y)v=R+R.charAt(0);else return null;b.push(v),f[y++]=R+v.charAt(0),m--,R=v,m==0&&(m=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})}}),Pg=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(l,d){if(!o[l]){if(!n[l]){var p=typeof ca=="function"&&ca;if(!d&&p)return p(l,!0);if(s)return s(l,!0);var f=new Error("Cannot find module '"+l+"'");throw f.code="MODULE_NOT_FOUND",f}var m=o[l]={exports:{}};n[l][0].call(m.exports,function(y){var g=n[l][1][y];return a(g||y)},m,m.exports,r,n,o,i)}return o[l].exports}for(var s=typeof ca=="function"&&ca,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(l){var d=new i(!1),p=[];return function(f){var m=function(){var y=d,g,v,b=arguments.length-1,T=Array(b+1),R=!0,x;if((m.numArgs||m.numArgs===0)&&m.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(T[x]={cacheItem:y,arg:arguments[x]},y.has(arguments[x])){y=y.get(arguments[x]);continue}R=!1,g=new i(!1),y.set(arguments[x],g),y=g}return R&&(y.has(arguments[b])?v=y.get(arguments[b]):R=!1),R||(v=f.apply(null,arguments),y.set(arguments[b],v)),l>0&&(T[b]={cacheItem:y,arg:arguments[b]},R?a(p,T):p.push(T),p.length>l&&s(p.shift())),m.wasMemoized=R,m.numArgs=b+1,v};return m.limit=l,m.wasMemoized=!1,m.cache=d,m.lru=p,m}};function a(l,d){var p=l.length,f=d.length,m,y,g;for(y=0;y<p;y++){for(m=!0,g=0;g<f;g++)if(!c(l[y][g].arg,d[g].arg)){m=!1;break}if(m)break}l.push(l.splice(y,1)[0])}function s(l){var d=l.length,p=l[d-1],f,m;for(p.cacheItem.delete(p.arg),m=d-2;m>=0&&(p=l[m],f=p.cacheItem.get(p.arg),!f||!f.size);m--)p.cacheItem.delete(p.arg)}function c(l,d){return l===d||l!==l&&d!==d}},{"map-or-similar":1}]},{},[3])(3)})}}),Cg=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 l=o.charCodeAt(c);for(;l<128;){if(r[l]!==1&&(s<c&&(a+=o.slice(s,c)),s=c+1,a+=t[l]),++c===i)break e;l=o.charCodeAt(c)}if(s<c&&(a+=o.slice(s,c)),l<2048){s=c+1,a+=t[192|l>>6]+t[128|l&63];continue}if(l<55296||l>=57344){s=c+1,a+=t[224|l>>12]+t[128|l>>6&63]+t[128|l&63];continue}if(++c,c>=i)throw new Error("URI malformed");let d=o.charCodeAt(c)&1023;s=c+1,l=65536+((l&1023)<<10|d),a+=t[240|l>>18]+t[128|l>>12&63]+t[128|l>>6&63]+t[128|l&63]}return s===0?o:s<i?a+o.slice(s):a}}}),id=N({"../../node_modules/picoquery/lib/shared.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=Cg(),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}}}),Ng=N({"../../node_modules/picoquery/lib/object-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=o,e.stringifyObject=d;var t=id(),r=Cg();function n(p){return p==="__proto__"||p==="constructor"||p==="prototype"}function o(p,f,m,y,g){if(n(f))return p;let v=p[f];return typeof v=="object"&&v!==null?v:!y&&(g||typeof m=="number"||typeof m=="string"&&m*0===0&&m.indexOf(".")===-1)?p[f]=[]:p[f]={}}var i=20,a="[]",s="[",c="]",l=".";function d(p,f,m=0,y,g){let{nestingSyntax:v=t.defaultOptions.nestingSyntax,arrayRepeat:b=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:T=t.defaultOptions.arrayRepeatSyntax,nesting:R=t.defaultOptions.nesting,delimiter:x=t.defaultOptions.delimiter,valueSerializer:C=t.defaultOptions.valueSerializer,shouldSerializeObject:E=t.defaultOptions.shouldSerializeObject}=f,_=typeof x=="number"?String.fromCharCode(x):x,S=g===!0&&b,A=v==="dot"||v==="js"&&!g;if(m>i)return"";let $="",k=!0,H=!1;for(let I in p){let O=p[I];if(O===void 0)continue;let q;y?(q=y,S?T==="bracket"&&(q+=a):A?(q+=l,q+=I):(q+=s,q+=I,q+=c)):q=I,k||($+=_),typeof O=="object"&&O!==null&&!E(O)?(H=O.pop!==void 0,(R||b&&H)&&($+=d(O,f,m+1,q,H))):($+=(0,r.encodeString)(q),$+="=",$+=C(O,I)),k&&(k=!1)}return $}}}),PP=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 l=s.length,d="",p=0,f=0,m=c,y=t;for(;c>-1&&c<l;){let g=a(s[c+1],4),v=a(s[c+2],0),b=g|v,T=n[b];if(y=n[256+y+T],f=f<<6|b&n[364+T],y===t)d+=s.slice(p,m),d+=f<=65535?String.fromCharCode(f):String.fromCharCode(55232+(f>>10),56320+(f&1023)),f=0,p=c+3,c=m=s.indexOf("%",p);else{if(y===r)return null;if(c+=3,c<l&&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 l=i[s];return l===void 0?255:l<<c}}}),CP=N({"../../node_modules/picoquery/lib/parse.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=l;var t=Ng(),r=id(),n=PP(),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,m,y){let g=d.substring(p,f);return m&&(g=g.replace(a," ")),y&&(g=(0,n.decodeURIComponent)(g)||g),g}function l(d,p){let{valueDeserializer:f=r.defaultOptions.valueDeserializer,keyDeserializer:m=r.defaultOptions.keyDeserializer,arrayRepeatSyntax:y=r.defaultOptions.arrayRepeatSyntax,nesting:g=r.defaultOptions.nesting,arrayRepeat:v=r.defaultOptions.arrayRepeat,nestingSyntax:b=r.defaultOptions.nestingSyntax,delimiter:T=r.defaultOptions.delimiter}=p??{},R=typeof T=="string"?T.charCodeAt(0):T,x=b==="js",C=new s;if(typeof d!="string")return C;let E=d.length,_="",S=-1,A=-1,$=-1,k=C,H,I="",O="",q=!1,F=!1,V=!1,K=!1,oe=!1,ue=!1,L=0,D=-1,G=-1,Q=-1;for(let X=0;X<E+1;X++){if(L=X!==E?d.charCodeAt(X):R,L===R){if(ue=A>S,ue||(A=X),$!==A-1&&(O=c(d,$+1,D>-1?D:A,V,q),I=m(O),H!==void 0&&(k=(0,t.getDeepObject)(k,H,I,x&&oe,void 0))),ue||I!==""){ue&&(_=d.slice(A+1,X),K&&(_=_.replace(a," ")),F&&(_=(0,n.decodeURIComponent)(_)||_));let Y=f(_,I);if(v){let ie=k[I];ie===void 0?D>-1?k[I]=[Y]:k[I]=Y:ie.pop?ie.push(Y):k[I]=[ie,Y]}else k[I]=Y}_="",S=X,A=X,q=!1,F=!1,V=!1,K=!1,oe=!1,D=-1,$=X,k=C,H=void 0,I=""}else L===93?(v&&y==="bracket"&&Q===91&&(D=G),g&&(b==="index"||x)&&A<=S&&($!==G&&(O=c(d,$+1,X,V,q),I=m(O),H!==void 0&&(k=(0,t.getDeepObject)(k,H,I,void 0,void 0)),H=I,V=!1,q=!1),$=X,oe=!1)):L===46?g&&(b==="dot"||x)&&A<=S&&($!==G&&(O=c(d,$+1,X,V,q),I=m(O),H!==void 0&&(k=(0,t.getDeepObject)(k,H,I,x)),H=I,V=!1,q=!1),oe=!0,$=X):L===91?g&&(b==="index"||x)&&A<=S&&($!==G&&(O=c(d,$+1,X,V,q),I=m(O),x&&H!==void 0&&(k=(0,t.getDeepObject)(k,H,I,x)),H=I,V=!1,q=!1,oe=!1),$=X):L===61?A<=S?A=X:F=!0:L===43?A>S?K=!0:V=!0:L===37&&(A>S?F=!0:q=!0);G=X,Q=L}return C}}}),NP=N({"../../node_modules/picoquery/lib/stringify.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=Ng();function r(n,o){if(n===null||typeof n!="object")return"";let i=o??{};return(0,t.stringifyObject)(n,i)}}}),ad=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 l=Object.getOwnPropertyDescriptor(a,s);(!l||("get"in l?!a.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(i,c,l)}):(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=CP();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return n.parse}});var o=NP();Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return o.stringify}}),r(id(),e)}}),Ig=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:"‌"}}}),IP=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:"ÿ"}}}),Mg=N({"../../node_modules/entities/lib/maps/xml.json"(e,t){t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}}),MP=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}}}),jP=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(MP()),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}}),Rf=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(Ig()),n=t(IP()),o=t(Mg()),i=t(jP()),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=l(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,m=0;f<p.length;f++)d[m]===p[f]?(p[f]+=";?",m++):p[f]+=";";var y=new RegExp("&(?:"+p.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),g=l(r.default);function v(b){return b.substr(-1)!==";"&&(b+=";"),g(b)}return function(b){return String(b).replace(y,v)}})();function l(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}}}}),Of=N({"../../node_modules/entities/lib/encode.js"(e){var t=e&&e.__importDefault||function(T){return T&&T.__esModule?T:{default:T}};Object.defineProperty(e,"__esModule",{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var r=t(Mg()),n=c(r.default),o=l(n);e.encodeXML=b(n);var i=t(Ig()),a=c(i.default),s=l(a);e.encodeHTML=m(a,s),e.encodeNonAsciiHTML=b(a);function c(T){return Object.keys(T).sort().reduce(function(R,x){return R[T[x]]="&"+x+";",R},{})}function l(T){for(var R=[],x=[],C=0,E=Object.keys(T);C<E.length;C++){var _=E[C];_.length===1?R.push("\\"+_):x.push(_)}R.sort();for(var S=0;S<R.length-1;S++){for(var A=S;A<R.length-1&&R[A].charCodeAt(1)+1===R[A+1].charCodeAt(1);)A+=1;var $=1+A-S;$<3||R.splice(S,$,R[S]+"-"+R[A])}return x.unshift("["+R.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(T){return T.codePointAt(0)}):(function(T){return(T.charCodeAt(0)-55296)*1024+T.charCodeAt(1)-56320+65536});function f(T){return"&#x"+(T.length>1?p(T):T.charCodeAt(0)).toString(16).toUpperCase()+";"}function m(T,R){return function(x){return x.replace(R,function(C){return T[C]}).replace(d,f)}}var y=new RegExp(o.source+"|"+d.source,"g");function g(T){return T.replace(y,f)}e.escape=g;function v(T){return T.replace(o,f)}e.escapeUTF8=v;function b(T){return function(R){return R.replace(y,function(x){return T[x]||f(x)})}}}}),kP=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=Rf(),r=Of();function n(c,l){return(!l||l<=0?t.decodeXML:t.decodeHTML)(c)}e.decode=n;function o(c,l){return(!l||l<=0?t.decodeXML:t.decodeHTMLStrict)(c)}e.decodeStrict=o;function i(c,l){return(!l||l<=0?r.encodeXML:r.encodeHTML)(c)}e.encode=i;var a=Of();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=Rf();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}})}}),qP=N({"../../node_modules/ansi-to-html/lib/ansi_to_html.js"(e,t){function r(O,q){if(!(O instanceof q))throw new TypeError("Cannot call a class as a function")}function n(O,q){for(var F=0;F<q.length;F++){var V=q[F];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(O,V.key,V)}}function o(O,q,F){return q&&n(O.prototype,q),O}function i(O,q){var F=typeof Symbol<"u"&&O[Symbol.iterator]||O["@@iterator"];if(!F){if(Array.isArray(O)||(F=a(O))||q){F&&(O=F);var V=0,K=function(){};return{s:K,n:function(){return V>=O.length?{done:!0}:{done:!1,value:O[V++]}},e:function(D){throw D},f:K}}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 oe=!0,ue=!1,L;return{s:function(){F=F.call(O)},n:function(){var D=F.next();return oe=D.done,D},e:function(D){ue=!0,L=D},f:function(){try{!oe&&F.return!=null&&F.return()}finally{if(ue)throw L}}}}function a(O,q){if(O){if(typeof O=="string")return s(O,q);var F=Object.prototype.toString.call(O).slice(8,-1);if(F==="Object"&&O.constructor&&(F=O.constructor.name),F==="Map"||F==="Set")return Array.from(O);if(F==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(F))return s(O,q)}}function s(O,q){(q==null||q>O.length)&&(q=O.length);for(var F=0,V=new Array(q);F<q;F++)V[F]=O[F];return V}var c=kP(),l={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:d()};function d(){var O={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 T(0,5).forEach(function(q){T(0,5).forEach(function(F){T(0,5).forEach(function(V){return p(q,F,V,O)})})}),T(0,23).forEach(function(q){var F=q+232,V=f(q*10+8);O[F]="#"+V+V+V}),O}function p(O,q,F,V){var K=16+O*36+q*6+F,oe=O>0?O*40+55:0,ue=q>0?q*40+55:0,L=F>0?F*40+55:0;V[K]=m([oe,ue,L])}function f(O){for(var q=O.toString(16);q.length<2;)q="0"+q;return q}function m(O){var q=[],F=i(O),V;try{for(F.s();!(V=F.n()).done;){var K=V.value;q.push(f(K))}}catch(oe){F.e(oe)}finally{F.f()}return"#"+q.join("")}function y(O,q,F,V){var K;return q==="text"?K=C(F,V):q==="display"?K=v(O,F,V):q==="xterm256Foreground"?K=S(O,V.colors[F]):q==="xterm256Background"?K=A(O,V.colors[F]):q==="rgb"&&(K=g(O,F)),K}function g(O,q){q=q.substring(2).slice(0,-1);var F=+q.substr(0,2),V=q.substring(5).split(";"),K=V.map(function(oe){return("0"+Number(oe).toString(16)).substr(-2)}).join("");return _(O,(F===38?"color:#":"background-color:#")+K)}function v(O,q,F){q=parseInt(q,10);var V={"-1":function(){return"<br/>"},0:function(){return O.length&&b(O)},1:function(){return E(O,"b")},3:function(){return E(O,"i")},4:function(){return E(O,"u")},8:function(){return _(O,"display:none")},9:function(){return E(O,"strike")},22:function(){return _(O,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return $(O,"i")},24:function(){return $(O,"u")},39:function(){return S(O,F.fg)},49:function(){return A(O,F.bg)},53:function(){return _(O,"text-decoration:overline")}},K;return V[q]?K=V[q]():4<q&&q<7?K=E(O,"blink"):29<q&&q<38?K=S(O,F.colors[q-30]):39<q&&q<48?K=A(O,F.colors[q-40]):89<q&&q<98?K=S(O,F.colors[8+(q-90)]):99<q&&q<108&&(K=A(O,F.colors[8+(q-100)])),K}function b(O){var q=O.slice(0);return O.length=0,q.reverse().map(function(F){return"</"+F+">"}).join("")}function T(O,q){for(var F=[],V=O;V<=q;V++)F.push(V);return F}function R(O){return function(q){return(O===null||q.category!==O)&&O!=="all"}}function x(O){O=parseInt(O,10);var q=null;return O===0?q="all":O===1?q="bold":2<O&&O<5?q="underline":4<O&&O<7?q="blink":O===8?q="hide":O===9?q="strike":29<O&&O<38||O===39||89<O&&O<98?q="foreground-color":(39<O&&O<48||O===49||99<O&&O<108)&&(q="background-color"),q}function C(O,q){return q.escapeXML?c.encodeXML(O):O}function E(O,q,F){return F||(F=""),O.push(q),"<".concat(q).concat(F?' style="'.concat(F,'"'):"",">")}function _(O,q){return E(O,"span",q)}function S(O,q){return E(O,"span","color:"+q)}function A(O,q){return E(O,"span","background-color:"+q)}function $(O,q){var F;if(O.slice(-1)[0]===q&&(F=O.pop()),F)return"</"+q+">"}function k(O,q,F){var V=!1,K=3;function oe(){return""}function ue(de,ye){return F("xterm256Foreground",ye),""}function L(de,ye){return F("xterm256Background",ye),""}function D(de){return q.newline?F("display",-1):F("text",de),""}function G(de,ye){V=!0,ye.trim().length===0&&(ye="0"),ye=ye.trimRight(";").split(";");var ve=i(ye),Ue;try{for(ve.s();!(Ue=ve.n()).done;){var gt=Ue.value;F("display",gt)}}catch(ut){ve.e(ut)}finally{ve.f()}return""}function Q(de){return F("text",de),""}function X(de){return F("rgb",de),""}var Y=[{pattern:/^\x08+/,sub:oe},{pattern:/^\x1b\[[012]?K/,sub:oe},{pattern:/^\x1b\[\(B/,sub:oe},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:X},{pattern:/^\x1b\[38;5;(\d+)m/,sub:ue},{pattern:/^\x1b\[48;5;(\d+)m/,sub:L},{pattern:/^\n/,sub:D},{pattern:/^\r+\n/,sub:D},{pattern:/^\r/,sub:D},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:G},{pattern:/^\x1b\[\d?J/,sub:oe},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:oe},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:oe},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:Q}];function ie(de,ye){ye>K&&V||(V=!1,O=O.replace(de.pattern,de.sub))}var se=[],_e=O,B=_e.length;e:for(;B>0;){for(var te=0,ne=0,ae=Y.length;ne<ae;te=++ne){var ce=Y[te];if(ie(ce,te),O.length!==B){B=O.length;continue e}}if(O.length===B)break;se.push(0),B=O.length}return se}function H(O,q,F){return q!=="text"&&(O=O.filter(R(x(F))),O.push({token:q,data:F,category:x(F)})),O}var I=(function(){function O(q){r(this,O),q=q||{},q.colors&&(q.colors=Object.assign({},l.colors,q.colors)),this.options=Object.assign({},l,q),this.stack=[],this.stickyStack=[]}return o(O,[{key:"toHtml",value:function(q){var F=this;q=typeof q=="string"?[q]:q;var V=this.stack,K=this.options,oe=[];return this.stickyStack.forEach(function(ue){var L=y(V,ue.token,ue.data,K);L&&oe.push(L)}),k(q.join(""),K,function(ue,L){var D=y(V,ue,L,K);D&&oe.push(D),K.stream&&(F.stickyStack=H(F.stickyStack,ue,L))}),V.length&&oe.push(b(V)),oe.join("")}}]),O})();t.exports=I}}),LP=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(u){return u.text!==void 0&&u.text!==""?`'${u.type}' with value '${u.text}'`:`'${u.type}'`}class o extends Error{constructor(h){super(`No parslet found for token: ${n(h)}`),this.token=h,Object.setPrototypeOf(this,o.prototype)}getToken(){return this.token}}class i extends Error{constructor(h){super(`The parsing ended early. The next token was: ${n(h)}`),this.token=h,Object.setPrototypeOf(this,i.prototype)}getToken(){return this.token}}class a extends Error{constructor(h,w){let P=`Unexpected type: '${h.type}'.`;w!==void 0&&(P+=` Message: ${w}`),super(P),Object.setPrototypeOf(this,a.prototype)}}function s(u){return h=>h.startsWith(u)?{type:u,text:u}:null}function c(u){let h=0,w,P=u[0],U=!1;if(P!=="'"&&P!=='"')return null;for(;h<u.length;){if(h++,w=u[h],!U&&w===P){h++;break}U=!U&&w==="\\"}if(w!==P)throw new Error("Unterminated String");return u.slice(0,h)}let l=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(u){let h=u[0];if(!l.test(h))return null;let w=1;do{if(h=u[w],!d.test(h))break;w++}while(w<u.length);return u.slice(0,w)}let f=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function m(u){var h,w;return(w=(h=f.exec(u))===null||h===void 0?void 0:h[0])!==null&&w!==void 0?w:null}let y=u=>{let h=p(u);return h==null?null:{type:"Identifier",text:h}};function g(u){return h=>{if(!h.startsWith(u))return null;let w=h[u.length];return w!==void 0&&d.test(w)?null:{type:u,text:u}}}let v=u=>{let h=c(u);return h==null?null:{type:"StringValue",text:h}},b=u=>u.length>0?null:{type:"EOF",text:""},T=u=>{let h=m(u);return h===null?null:{type:"Number",text:h}},R=[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"),T,y,v],x=/^\s*\n\s*/;class C{static create(h){let w=this.read(h);h=w.text;let P=this.read(h);return h=P.text,new C(h,void 0,w.token,P.token)}constructor(h,w,P,U){this.text="",this.text=h,this.previous=w,this.current=P,this.next=U}static read(h,w=!1){w=w||x.test(h),h=h.trim();for(let P of R){let U=P(h);if(U!==null){let W=Object.assign(Object.assign({},U),{startOfLine:w});return h=h.slice(W.text.length),{text:h,token:W}}}throw new Error("Unexpected Token "+h)}advance(){let h=C.read(this.text);return new C(h.text,this.current,this.next,h.token)}}function E(u){if(u===void 0)throw new Error("Unexpected undefined");if(u.type==="JsdocTypeKeyValue"||u.type==="JsdocTypeParameterList"||u.type==="JsdocTypeProperty"||u.type==="JsdocTypeReadonlyProperty"||u.type==="JsdocTypeObjectField"||u.type==="JsdocTypeJsdocObjectField"||u.type==="JsdocTypeIndexSignature"||u.type==="JsdocTypeMappedType"||u.type==="JsdocTypeTypeParameter")throw new a(u);return u}function _(u){return u.type==="JsdocTypeKeyValue"?A(u):E(u)}function S(u){return u.type==="JsdocTypeName"?u:A(u)}function A(u){if(u.type!=="JsdocTypeKeyValue")throw new a(u);return u}function $(u){var h;if(u.type==="JsdocTypeVariadic"){if(((h=u.element)===null||h===void 0?void 0:h.type)==="JsdocTypeName")return u;throw new a(u)}if(u.type!=="JsdocTypeNumber"&&u.type!=="JsdocTypeName")throw new a(u);return u}function k(u){if(u.type==="JsdocTypeTuple"||u.type==="JsdocTypeGeneric"&&u.meta.brackets==="square")return u;throw new a(u)}function H(u){return u.type==="JsdocTypeIndexSignature"||u.type==="JsdocTypeMappedType"}var I;(function(u){u[u.ALL=0]="ALL",u[u.PARAMETER_LIST=1]="PARAMETER_LIST",u[u.OBJECT=2]="OBJECT",u[u.KEY_VALUE=3]="KEY_VALUE",u[u.INDEX_BRACKETS=4]="INDEX_BRACKETS",u[u.UNION=5]="UNION",u[u.INTERSECTION=6]="INTERSECTION",u[u.PREFIX=7]="PREFIX",u[u.INFIX=8]="INFIX",u[u.TUPLE=9]="TUPLE",u[u.SYMBOL=10]="SYMBOL",u[u.OPTIONAL=11]="OPTIONAL",u[u.NULLABLE=12]="NULLABLE",u[u.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",u[u.FUNCTION=14]="FUNCTION",u[u.ARROW=15]="ARROW",u[u.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",u[u.GENERIC=17]="GENERIC",u[u.NAME_PATH=18]="NAME_PATH",u[u.PARENTHESIS=19]="PARENTHESIS",u[u.SPECIAL_TYPES=20]="SPECIAL_TYPES"})(I||(I={}));class O{constructor(h,w,P){this.grammar=h,typeof w=="string"?this._lexer=C.create(w):this._lexer=w,this.baseParser=P}get lexer(){return this._lexer}parse(){let h=this.parseType(I.ALL);if(this.lexer.current.type!=="EOF")throw new i(this.lexer.current);return h}parseType(h){return E(this.parseIntermediateType(h))}parseIntermediateType(h){let w=this.tryParslets(null,h);if(w===null)throw new o(this.lexer.current);return this.parseInfixIntermediateType(w,h)}parseInfixIntermediateType(h,w){let P=this.tryParslets(h,w);for(;P!==null;)h=P,P=this.tryParslets(h,w);return h}tryParslets(h,w){for(let P of this.grammar){let U=P(this,w,h);if(U!==null)return U}return null}consume(h){return Array.isArray(h)||(h=[h]),h.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(h){this._lexer=h.lexer}}function q(u){return u==="}"||u==="EOF"||u==="|"||u===","||u===")"||u===">"}let F=(u,h,w)=>{let P=u.lexer.current.type,U=u.lexer.next.type;return w==null&&P==="?"&&!q(U)||w!=null&&P==="?"?(u.consume("?"),w==null?{type:"JsdocTypeNullable",element:u.parseType(I.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:E(w),meta:{position:"suffix"}}):null};function V(u){let h=(w,P,U)=>{let W=w.lexer.current.type,Z=w.lexer.next.type;if(U===null){if("parsePrefix"in u&&u.accept(W,Z))return u.parsePrefix(w)}else if("parseInfix"in u&&u.precedence>P&&u.accept(W,Z))return u.parseInfix(w,U);return null};return Object.defineProperty(h,"name",{value:u.name}),h}let K=V({name:"optionalParslet",accept:u=>u==="=",precedence:I.OPTIONAL,parsePrefix:u=>(u.consume("="),{type:"JsdocTypeOptional",element:u.parseType(I.OPTIONAL),meta:{position:"prefix"}}),parseInfix:(u,h)=>(u.consume("="),{type:"JsdocTypeOptional",element:E(h),meta:{position:"suffix"}})}),oe=V({name:"numberParslet",accept:u=>u==="Number",parsePrefix:u=>{let h=parseFloat(u.lexer.current.text);return u.consume("Number"),{type:"JsdocTypeNumber",value:h}}}),ue=V({name:"parenthesisParslet",accept:u=>u==="(",parsePrefix:u=>{if(u.consume("("),u.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let h=u.parseIntermediateType(I.ALL);if(!u.consume(")"))throw new Error("Unterminated parenthesis");return h.type==="JsdocTypeParameterList"?h:h.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[h]}:{type:"JsdocTypeParenthesis",element:E(h)}}}),L=V({name:"specialTypesParslet",accept:(u,h)=>u==="?"&&q(h)||u==="null"||u==="undefined"||u==="*",parsePrefix:u=>{if(u.consume("null"))return{type:"JsdocTypeNull"};if(u.consume("undefined"))return{type:"JsdocTypeUndefined"};if(u.consume("*"))return{type:"JsdocTypeAny"};if(u.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+u.lexer.current.text)}}),D=V({name:"notNullableParslet",accept:u=>u==="!",precedence:I.NULLABLE,parsePrefix:u=>(u.consume("!"),{type:"JsdocTypeNotNullable",element:u.parseType(I.NULLABLE),meta:{position:"prefix"}}),parseInfix:(u,h)=>(u.consume("!"),{type:"JsdocTypeNotNullable",element:E(h),meta:{position:"suffix"}})});function G({allowTrailingComma:u}){return V({name:"parameterListParslet",accept:h=>h===",",precedence:I.PARAMETER_LIST,parseInfix:(h,w)=>{let P=[_(w)];h.consume(",");do try{let U=h.parseIntermediateType(I.PARAMETER_LIST);P.push(_(U))}catch(U){if(U instanceof o)break;throw U}while(h.consume(","));if(P.length>0&&P.slice(0,-1).some(U=>U.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:P}}})}let Q=V({name:"genericParslet",accept:(u,h)=>u==="<"||u==="."&&h==="<",precedence:I.GENERIC,parseInfix:(u,h)=>{let w=u.consume(".");u.consume("<");let P=[],U=!1;if(u.consume("infer")){U=!0;let W=u.parseIntermediateType(I.SYMBOL);if(W.type!=="JsdocTypeName")throw new a(W,"A typescript asserts always has to have a name on the left side.");P.push(W)}else do P.push(u.parseType(I.PARAMETER_LIST));while(u.consume(","));if(!u.consume(">"))throw new Error("Unterminated generic parameter list");return Object.assign(Object.assign({type:"JsdocTypeGeneric",left:E(h),elements:P},U?{infer:!0}:{}),{meta:{brackets:"angle",dot:w}})}}),X=V({name:"unionParslet",accept:u=>u==="|",precedence:I.UNION,parseInfix:(u,h)=>{u.consume("|");let w=[];do w.push(u.parseType(I.UNION));while(u.consume("|"));return{type:"JsdocTypeUnion",elements:[E(h),...w]}}}),Y=[F,K,oe,ue,L,D,G({allowTrailingComma:!0}),Q,X,K];function ie({allowSquareBracketsOnAnyType:u,allowJsdocNamePaths:h,pathGrammar:w}){return function(P,U,W){if(W==null||U>=I.NAME_PATH)return null;let Z=P.lexer.current.type,fe=P.lexer.next.type;if(!(Z==="."&&fe!=="<"||Z==="["&&(u||W.type==="JsdocTypeName")||h&&(Z==="~"||Z==="#")))return null;let me,Ae=!1;P.consume(".")?me="property":P.consume("[")?(me="property-brackets",Ae=!0):P.consume("~")?me="inner":(P.consume("#"),me="instance");let et=w!==null?new O(w,P.lexer,P):P,Je=et.parseIntermediateType(I.NAME_PATH);P.acceptLexerState(et);let Jt;switch(Je.type){case"JsdocTypeName":Jt={type:"JsdocTypeProperty",value:Je.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":Jt={type:"JsdocTypeProperty",value:Je.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":Jt={type:"JsdocTypeProperty",value:Je.value,meta:{quote:Je.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(Je.specialType==="event")Jt=Je;else throw new a(Je,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new a(Je,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(Ae&&!P.consume("]")){let Uo=P.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${Uo.type}' with text '${Uo.text}'`)}return{type:"JsdocTypeNamePath",left:E(W),right:Jt,pathType:me}}}function se({allowedAdditionalTokens:u}){return V({name:"nameParslet",accept:h=>h==="Identifier"||h==="this"||h==="new"||u.includes(h),parsePrefix:h=>{let{type:w,text:P}=h.lexer.current;return h.consume(w),{type:"JsdocTypeName",value:P}}})}let _e=V({name:"stringValueParslet",accept:u=>u==="StringValue",parsePrefix:u=>{let h=u.lexer.current.text;return u.consume("StringValue"),{type:"JsdocTypeStringValue",value:h.slice(1,-1),meta:{quote:h[0]==="'"?"single":"double"}}}});function B({pathGrammar:u,allowedTypes:h}){return V({name:"specialNamePathParslet",accept:w=>h.includes(w),parsePrefix:w=>{let P=w.lexer.current.type;if(w.consume(P),!w.consume(":"))return{type:"JsdocTypeName",value:P};let U,W=w.lexer.current;if(w.consume("StringValue"))U={type:"JsdocTypeSpecialNamePath",value:W.text.slice(1,-1),specialType:P,meta:{quote:W.text[0]==="'"?"single":"double"}};else{let me="",Ae=["Identifier","@","/"];for(;Ae.some(et=>w.consume(et));)me+=W.text,W=w.lexer.current;U={type:"JsdocTypeSpecialNamePath",value:me,specialType:P,meta:{quote:void 0}}}let Z=new O(u,w.lexer,w),fe=Z.parseInfixIntermediateType(U,I.ALL);return w.acceptLexerState(Z),E(fe)}})}let te=[se({allowedAdditionalTokens:["external","module"]}),_e,oe,ie({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],ne=[...te,B({allowedTypes:["event"],pathGrammar:te})];function ae(u){let h;if(u.type==="JsdocTypeParameterList")h=u.elements;else if(u.type==="JsdocTypeParenthesis")h=[u.element];else throw new a(u);return h.map(w=>_(w))}function ce(u){let h=ae(u);if(h.some(w=>w.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return h}function de({allowNamedParameters:u,allowNoReturnType:h,allowWithoutParenthesis:w,allowNewAsFunctionKeyword:P}){return V({name:"functionParslet",accept:(U,W)=>U==="function"||P&&U==="new"&&W==="(",parsePrefix:U=>{let W=U.consume("new");U.consume("function");let Z=U.lexer.current.type==="(";if(!Z){if(!w)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let fe={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:W,parenthesis:Z},me=U.parseIntermediateType(I.FUNCTION);if(u===void 0)fe.parameters=ce(me);else{if(W&&me.type==="JsdocTypeFunction"&&me.arrow)return fe=me,fe.constructor=!0,fe;fe.parameters=ae(me);for(let Ae of fe.parameters)if(Ae.type==="JsdocTypeKeyValue"&&!u.includes(Ae.key))throw new Error(`only allowed named parameters are ${u.join(", ")} but got ${Ae.type}`)}if(U.consume(":"))fe.returnType=U.parseType(I.PREFIX);else if(!h)throw new Error("function is missing return type");return fe}})}function ye({allowPostfix:u,allowEnclosingBrackets:h}){return V({name:"variadicParslet",accept:w=>w==="...",precedence:I.PREFIX,parsePrefix:w=>{w.consume("...");let P=h&&w.consume("[");try{let U=w.parseType(I.PREFIX);if(P&&!w.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:E(U),meta:{position:"prefix",squareBrackets:P}}}catch(U){if(U instanceof o){if(P)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw U}},parseInfix:u?(w,P)=>(w.consume("..."),{type:"JsdocTypeVariadic",element:E(P),meta:{position:"suffix",squareBrackets:!1}}):void 0})}let ve=V({name:"symbolParslet",accept:u=>u==="(",precedence:I.SYMBOL,parseInfix:(u,h)=>{if(h.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");u.consume("(");let w={type:"JsdocTypeSymbol",value:h.value};if(!u.consume(")")){let P=u.parseIntermediateType(I.SYMBOL);if(w.element=$(P),!u.consume(")"))throw new Error("Symbol does not end after value")}return w}}),Ue=V({name:"arrayBracketsParslet",precedence:I.ARRAY_BRACKETS,accept:(u,h)=>u==="["&&h==="]",parseInfix:(u,h)=>(u.consume("["),u.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[E(h)],meta:{brackets:"square",dot:!1}})});function gt({objectFieldGrammar:u,allowKeyTypes:h}){return V({name:"objectParslet",accept:w=>w==="{",parsePrefix:w=>{w.consume("{");let P={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!w.consume("}")){let U,W=new O(u,w.lexer,w);for(;;){W.acceptLexerState(w);let Z=W.parseIntermediateType(I.OBJECT);w.acceptLexerState(W),Z===void 0&&h&&(Z=w.parseIntermediateType(I.OBJECT));let fe=!1;if(Z.type==="JsdocTypeNullable"&&(fe=!0,Z=Z.element),Z.type==="JsdocTypeNumber"||Z.type==="JsdocTypeName"||Z.type==="JsdocTypeStringValue"){let me;Z.type==="JsdocTypeStringValue"&&(me=Z.meta.quote),P.elements.push({type:"JsdocTypeObjectField",key:Z.value.toString(),right:void 0,optional:fe,readonly:!1,meta:{quote:me}})}else if(Z.type==="JsdocTypeObjectField"||Z.type==="JsdocTypeJsdocObjectField")P.elements.push(Z);else throw new a(Z);if(w.lexer.current.startOfLine)U="linebreak",w.consume(",")||w.consume(";");else if(w.consume(","))U="comma";else if(w.consume(";"))U="semicolon";else break;if(w.lexer.current.type==="}")break}if(P.meta.separator=U??"comma",U==="linebreak"&&(P.meta.propertyIndent=" "),!w.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return P}})}function ut({allowSquaredProperties:u,allowKeyTypes:h,allowReadonly:w,allowOptional:P}){return V({name:"objectFieldParslet",precedence:I.KEY_VALUE,accept:U=>U===":",parseInfix:(U,W)=>{var Z;let fe=!1,me=!1;P&&W.type==="JsdocTypeNullable"&&(fe=!0,W=W.element),w&&W.type==="JsdocTypeReadonlyProperty"&&(me=!0,W=W.element);let Ae=(Z=U.baseParser)!==null&&Z!==void 0?Z:U;if(Ae.acceptLexerState(U),W.type==="JsdocTypeNumber"||W.type==="JsdocTypeName"||W.type==="JsdocTypeStringValue"||H(W)){if(H(W)&&!u)throw new a(W);Ae.consume(":");let et;W.type==="JsdocTypeStringValue"&&(et=W.meta.quote);let Je=Ae.parseType(I.KEY_VALUE);return U.acceptLexerState(Ae),{type:"JsdocTypeObjectField",key:H(W)?W:W.value.toString(),right:Je,optional:fe,readonly:me,meta:{quote:et}}}else{if(!h)throw new a(W);Ae.consume(":");let et=Ae.parseType(I.KEY_VALUE);return U.acceptLexerState(Ae),{type:"JsdocTypeJsdocObjectField",left:E(W),right:et}}}})}function bt({allowOptional:u,allowVariadic:h}){return V({name:"keyValueParslet",precedence:I.KEY_VALUE,accept:w=>w===":",parseInfix:(w,P)=>{let U=!1,W=!1;if(u&&P.type==="JsdocTypeNullable"&&(U=!0,P=P.element),h&&P.type==="JsdocTypeVariadic"&&P.element!==void 0&&(W=!0,P=P.element),P.type!=="JsdocTypeName")throw new a(P);w.consume(":");let Z=w.parseType(I.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:P.value,right:Z,optional:U,variadic:W}}})}let ot=[...Y,de({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),_e,B({allowedTypes:["module","external","event"],pathGrammar:ne}),ye({allowEnclosingBrackets:!0,allowPostfix:!0}),se({allowedAdditionalTokens:["keyof"]}),ve,Ue,ie({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:ne})],Xt=[...ot,gt({objectFieldGrammar:[se({allowedAdditionalTokens:["typeof","module","in"]}),ut({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...ot],allowKeyTypes:!0}),bt({allowOptional:!0,allowVariadic:!0})],Mt=V({name:"typeOfParslet",accept:u=>u==="typeof",parsePrefix:u=>(u.consume("typeof"),{type:"JsdocTypeTypeof",element:u.parseType(I.KEY_OF_TYPE_OF)})}),Qt=[se({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),F,K,_e,oe,ut({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],So=[...Y,gt({allowKeyTypes:!1,objectFieldGrammar:Qt}),se({allowedAdditionalTokens:["event","external","in"]}),Mt,de({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),ye({allowEnclosingBrackets:!1,allowPostfix:!1}),se({allowedAdditionalTokens:["keyof"]}),B({allowedTypes:["module"],pathGrammar:ne}),ie({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:ne}),bt({allowOptional:!1,allowVariadic:!1}),ve],Ao=V({name:"assertsParslet",accept:u=>u==="asserts",parsePrefix:u=>{u.consume("asserts");let h=u.parseIntermediateType(I.SYMBOL);if(h.type!=="JsdocTypeName")throw new a(h,"A typescript asserts always has to have a name on the left side.");return u.consume("is")?{type:"JsdocTypeAsserts",left:h,right:E(u.parseIntermediateType(I.INFIX))}:{type:"JsdocTypeAssertsPlain",element:h}}});function Ro({allowQuestionMark:u}){return V({name:"tupleParslet",accept:h=>h==="[",parsePrefix:h=>{h.consume("[");let w={type:"JsdocTypeTuple",elements:[]};if(h.consume("]"))return w;let P=h.parseIntermediateType(I.ALL);if(P.type==="JsdocTypeParameterList"?P.elements[0].type==="JsdocTypeKeyValue"?w.elements=P.elements.map(A):w.elements=P.elements.map(E):P.type==="JsdocTypeKeyValue"?w.elements=[A(P)]:w.elements=[E(P)],!h.consume("]"))throw new Error("Unterminated '['");if(w.elements.some(U=>U.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return w}})}let Oo=V({name:"keyOfParslet",accept:u=>u==="keyof",parsePrefix:u=>(u.consume("keyof"),{type:"JsdocTypeKeyof",element:E(u.parseType(I.KEY_OF_TYPE_OF))})}),xo=V({name:"importParslet",accept:u=>u==="import",parsePrefix:u=>{if(u.consume("import"),!u.consume("("))throw new Error("Missing parenthesis after import keyword");let h=u.parseType(I.PREFIX);if(h.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!u.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:h}}}),Po=V({name:"readonlyPropertyParslet",accept:u=>u==="readonly",parsePrefix:u=>(u.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:u.parseIntermediateType(I.KEY_VALUE)})}),Co=V({name:"arrowFunctionParslet",precedence:I.ARROW,accept:u=>u==="=>",parseInfix:(u,h)=>(u.consume("=>"),{type:"JsdocTypeFunction",parameters:ae(h).map(S),arrow:!0,constructor:!1,parenthesis:!0,returnType:u.parseType(I.OBJECT)})}),No=V({name:"genericArrowFunctionParslet",accept:u=>u==="<",parsePrefix:u=>{let h=[];u.consume("<");do{let P,U=u.parseIntermediateType(I.SYMBOL);if(U.type==="JsdocTypeOptional"&&(U=U.element,P=u.parseType(I.SYMBOL)),U.type!=="JsdocTypeName")throw new a(U);let W;u.consume("extends")&&(W=u.parseType(I.SYMBOL),W.type==="JsdocTypeOptional"&&(W=W.element,P=u.parseType(I.SYMBOL)));let Z={type:"JsdocTypeTypeParameter",name:U};if(W!==void 0&&(Z.constraint=W),P!==void 0&&(Z.defaultValue=P),h.push(Z),u.consume(">"))break}while(u.consume(","));let w=u.parseIntermediateType(I.SYMBOL);return w.typeParameters=h,w}}),Io=V({name:"intersectionParslet",accept:u=>u==="&",precedence:I.INTERSECTION,parseInfix:(u,h)=>{u.consume("&");let w=[];do w.push(u.parseType(I.INTERSECTION));while(u.consume("&"));return{type:"JsdocTypeIntersection",elements:[E(h),...w]}}}),Mo=V({name:"predicateParslet",precedence:I.INFIX,accept:u=>u==="is",parseInfix:(u,h)=>{if(h.type!=="JsdocTypeName")throw new a(h,"A typescript predicate always has to have a name on the left side.");return u.consume("is"),{type:"JsdocTypePredicate",left:h,right:E(u.parseIntermediateType(I.INFIX))}}}),jo=V({name:"objectSquareBracketPropertyParslet",accept:u=>u==="[",parsePrefix:u=>{if(u.baseParser===void 0)throw new Error("Only allowed inside object grammar");u.consume("[");let h=u.lexer.current.text;u.consume("Identifier");let w;if(u.consume(":")){let P=u.baseParser;P.acceptLexerState(u),w={type:"JsdocTypeIndexSignature",key:h,right:P.parseType(I.INDEX_BRACKETS)},u.acceptLexerState(P)}else if(u.consume("in")){let P=u.baseParser;P.acceptLexerState(u),w={type:"JsdocTypeMappedType",key:h,right:P.parseType(I.ARRAY_BRACKETS)},u.acceptLexerState(P)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!u.consume("]"))throw new Error("Unterminated square brackets");return w}}),ko=V({name:"readonlyArrayParslet",accept:u=>u==="readonly",parsePrefix:u=>(u.consume("readonly"),{type:"JsdocTypeReadonlyArray",element:k(u.parseIntermediateType(I.ALL))})}),qo=V({name:"conditionalParslet",precedence:I.INFIX,accept:u=>u==="extends",parseInfix:(u,h)=>{u.consume("extends");let w=u.parseType(I.KEY_OF_TYPE_OF).element,P=u.parseType(I.INFIX);return u.consume(":"),{type:"JsdocTypeConditional",checksType:E(h),extendsType:w,trueType:P,falseType:u.parseType(I.INFIX)}}}),Lo=[Po,se({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),F,K,_e,oe,ut({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),jo],Do=[...Y,gt({allowKeyTypes:!1,objectFieldGrammar:Lo}),ko,Mt,Oo,xo,_e,de({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),Ro({allowQuestionMark:!1}),ye({allowEnclosingBrackets:!1,allowPostfix:!1}),Ao,qo,se({allowedAdditionalTokens:["event","external","in"]}),B({allowedTypes:["module"],pathGrammar:ne}),Ue,Co,No,ie({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:ne}),Io,Mo,bt({allowVariadic:!0,allowOptional:!0})];function tn(u,h){switch(h){case"closure":return new O(So,u).parse();case"jsdoc":return new O(Xt,u).parse();case"typescript":return new O(Do,u).parse()}}function $o(u,h=["typescript","closure","jsdoc"]){let w;for(let P of h)try{return tn(u,P)}catch(U){w=U}throw w}function St(u,h){let w=u[h.type];if(w===void 0)throw new Error(`In this set of transform rules exists no rule for type ${h.type}.`);return w(h,P=>St(u,P))}function pe(u){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}function rn(u){let h={params:[]};for(let w of u.parameters)w.type==="JsdocTypeKeyValue"?w.key==="this"?h.this=w.right:w.key==="new"?h.new=w.right:h.params.push(w):h.params.push(w);return h}function Ut(u,h,w){return u==="prefix"?w+h:h+w}function Ze(u,h){switch(h){case"double":return`"${u}"`;case"single":return`'${u}'`;case void 0:return u}}function ee(){return{JsdocTypeParenthesis:(u,h)=>`(${u.element!==void 0?h(u.element):""})`,JsdocTypeKeyof:(u,h)=>`keyof ${h(u.element)}`,JsdocTypeFunction:(u,h)=>{var w;if(u.arrow){if(u.returnType===void 0)throw new Error("Arrow function needs a return type.");let P=`${u.typeParameters!==void 0?`<${(w=u.typeParameters.map(h).join(", "))!==null&&w!==void 0?w:""}>`:""}(${u.parameters.map(h).join(", ")}) => ${h(u.returnType)}`;return u.constructor&&(P="new "+P),P}else{let P=u.constructor?"new":"function";return u.parenthesis&&(P+=`(${u.parameters.map(h).join(", ")})`,u.returnType!==void 0&&(P+=`: ${h(u.returnType)}`)),P}},JsdocTypeName:u=>u.value,JsdocTypeTuple:(u,h)=>`[${u.elements.map(h).join(", ")}]`,JsdocTypeVariadic:(u,h)=>u.meta.position===void 0?"...":Ut(u.meta.position,h(u.element),"..."),JsdocTypeNamePath:(u,h)=>{let w=h(u.left),P=h(u.right);switch(u.pathType){case"inner":return`${w}~${P}`;case"instance":return`${w}#${P}`;case"property":return`${w}.${P}`;case"property-brackets":return`${w}[${P}]`}},JsdocTypeStringValue:u=>Ze(u.value,u.meta.quote),JsdocTypeAny:()=>"*",JsdocTypeGeneric:(u,h)=>{if(u.meta.brackets==="square"){let w=u.elements[0],P=h(w);return w.type==="JsdocTypeUnion"||w.type==="JsdocTypeIntersection"?`(${P})[]`:`${P}[]`}else return`${h(u.left)}${u.meta.dot?".":""}<${u.infer===!0?"infer ":""}${u.elements.map(h).join(", ")}>`},JsdocTypeImport:(u,h)=>`import(${h(u.element)})`,JsdocTypeObjectField:(u,h)=>{let w="";return u.readonly&&(w+="readonly "),typeof u.key=="string"?w+=Ze(u.key,u.meta.quote):w+=h(u.key),u.optional&&(w+="?"),u.right===void 0?w:w+`: ${h(u.right)}`},JsdocTypeJsdocObjectField:(u,h)=>`${h(u.left)}: ${h(u.right)}`,JsdocTypeKeyValue:(u,h)=>{let w=u.key;return u.optional&&(w+="?"),u.variadic&&(w="..."+w),u.right===void 0?w:w+`: ${h(u.right)}`},JsdocTypeSpecialNamePath:u=>`${u.specialType}:${Ze(u.value,u.meta.quote)}`,JsdocTypeNotNullable:(u,h)=>Ut(u.meta.position,h(u.element),"!"),JsdocTypeNull:()=>"null",JsdocTypeNullable:(u,h)=>Ut(u.meta.position,h(u.element),"?"),JsdocTypeNumber:u=>u.value.toString(),JsdocTypeObject:(u,h)=>{var w,P;return`{${(u.meta.separator==="linebreak"&&u.elements.length>1?`
20
+ `+((w=u.meta.propertyIndent)!==null&&w!==void 0?w:""):"")+u.elements.map(h).join(u.meta.separator==="comma"?", ":u.meta.separator==="linebreak"?`
21
+ `+((P=u.meta.propertyIndent)!==null&&P!==void 0?P:""):"; ")+(u.meta.separator==="linebreak"&&u.elements.length>1?`
22
+ `:"")}}`},JsdocTypeOptional:(u,h)=>Ut(u.meta.position,h(u.element),"="),JsdocTypeSymbol:(u,h)=>`${u.value}(${u.element!==void 0?h(u.element):""})`,JsdocTypeTypeof:(u,h)=>`typeof ${h(u.element)}`,JsdocTypeUndefined:()=>"undefined",JsdocTypeUnion:(u,h)=>u.elements.map(h).join(" | "),JsdocTypeUnknown:()=>"?",JsdocTypeIntersection:(u,h)=>u.elements.map(h).join(" & "),JsdocTypeProperty:u=>Ze(u.value,u.meta.quote),JsdocTypePredicate:(u,h)=>`${h(u.left)} is ${h(u.right)}`,JsdocTypeIndexSignature:(u,h)=>`[${u.key}: ${h(u.right)}]`,JsdocTypeMappedType:(u,h)=>`[${u.key} in ${h(u.right)}]`,JsdocTypeAsserts:(u,h)=>`asserts ${h(u.left)} is ${h(u.right)}`,JsdocTypeReadonlyArray:(u,h)=>`readonly ${h(u.element)}`,JsdocTypeAssertsPlain:(u,h)=>`asserts ${h(u.element)}`,JsdocTypeConditional:(u,h)=>`${h(u.checksType)} extends ${h(u.extendsType)} ? ${h(u.trueType)} : ${h(u.falseType)}`,JsdocTypeTypeParameter:(u,h)=>`${h(u.name)}${u.constraint!==void 0?` extends ${h(u.constraint)}`:""}${u.defaultValue!==void 0?` = ${h(u.defaultValue)}`:""}`}}let Fo=ee();function Nr(u){return St(Fo,u)}let Tl=["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 it(u){let h={type:"NameExpression",name:u};return Tl.includes(u)&&(h.reservedWord=!0),h}let Sl={JsdocTypeOptional:(u,h)=>{let w=h(u.element);return w.optional=!0,w},JsdocTypeNullable:(u,h)=>{let w=h(u.element);return w.nullable=!0,w},JsdocTypeNotNullable:(u,h)=>{let w=h(u.element);return w.nullable=!1,w},JsdocTypeVariadic:(u,h)=>{if(u.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");let w=h(u.element);return w.repeatable=!0,w},JsdocTypeAny:()=>({type:"AllLiteral"}),JsdocTypeNull:()=>({type:"NullLiteral"}),JsdocTypeStringValue:u=>it(Ze(u.value,u.meta.quote)),JsdocTypeUndefined:()=>({type:"UndefinedLiteral"}),JsdocTypeUnknown:()=>({type:"UnknownLiteral"}),JsdocTypeFunction:(u,h)=>{let w=rn(u),P={type:"FunctionType",params:w.params.map(h)};return w.this!==void 0&&(P.this=h(w.this)),w.new!==void 0&&(P.new=h(w.new)),u.returnType!==void 0&&(P.result=h(u.returnType)),P},JsdocTypeGeneric:(u,h)=>({type:"TypeApplication",applications:u.elements.map(w=>h(w)),expression:h(u.left)}),JsdocTypeSpecialNamePath:u=>it(u.specialType+":"+Ze(u.value,u.meta.quote)),JsdocTypeName:u=>u.value!=="function"?it(u.value):{type:"FunctionType",params:[]},JsdocTypeNumber:u=>it(u.value.toString()),JsdocTypeObject:(u,h)=>{let w={type:"RecordType",fields:[]};for(let P of u.elements)P.type!=="JsdocTypeObjectField"&&P.type!=="JsdocTypeJsdocObjectField"?w.fields.push({type:"FieldType",key:h(P),value:void 0}):w.fields.push(h(P));return w},JsdocTypeObjectField:(u,h)=>{if(typeof u.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:it(Ze(u.key,u.meta.quote)),value:u.right===void 0?void 0:h(u.right)}},JsdocTypeJsdocObjectField:(u,h)=>({type:"FieldType",key:h(u.left),value:h(u.right)}),JsdocTypeUnion:(u,h)=>({type:"TypeUnion",elements:u.elements.map(w=>h(w))}),JsdocTypeKeyValue:(u,h)=>({type:"FieldType",key:it(u.key),value:u.right===void 0?void 0:h(u.right)}),JsdocTypeNamePath:(u,h)=>{let w=h(u.left),P;u.right.type==="JsdocTypeSpecialNamePath"?P=h(u.right).name:P=Ze(u.right.value,u.right.meta.quote);let U=u.pathType==="inner"?"~":u.pathType==="instance"?"#":".";return it(`${w.name}${U}${P}`)},JsdocTypeSymbol:u=>{let h="",w=u.element,P=!1;return w?.type==="JsdocTypeVariadic"&&(w.meta.position==="prefix"?h="...":P=!0,w=w.element),w?.type==="JsdocTypeName"?h+=w.value:w?.type==="JsdocTypeNumber"&&(h+=w.value.toString()),P&&(h+="..."),it(`${u.value}(${h})`)},JsdocTypeParenthesis:(u,h)=>h(E(u.element)),JsdocTypeMappedType:pe,JsdocTypeIndexSignature:pe,JsdocTypeImport:pe,JsdocTypeKeyof:pe,JsdocTypeTuple:pe,JsdocTypeTypeof:pe,JsdocTypeIntersection:pe,JsdocTypeProperty:pe,JsdocTypePredicate:pe,JsdocTypeAsserts:pe,JsdocTypeReadonlyArray:pe,JsdocTypeAssertsPlain:pe,JsdocTypeConditional:pe,JsdocTypeTypeParameter:pe};function Al(u){return St(Sl,u)}function vt(u){switch(u){case void 0:return"none";case"single":return"single";case"double":return"double"}}function Rl(u){switch(u){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}function nn(u,h){return h.length===2?{type:u,left:h[0],right:h[1]}:{type:u,left:h[0],right:nn(u,h.slice(1))}}let Ol={JsdocTypeOptional:(u,h)=>({type:"OPTIONAL",value:h(u.element),meta:{syntax:u.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),JsdocTypeNullable:(u,h)=>({type:"NULLABLE",value:h(u.element),meta:{syntax:u.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),JsdocTypeNotNullable:(u,h)=>({type:"NOT_NULLABLE",value:h(u.element),meta:{syntax:u.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),JsdocTypeVariadic:(u,h)=>{let w={type:"VARIADIC",meta:{syntax:u.meta.position==="prefix"?"PREFIX_DOTS":u.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return u.element!==void 0&&(w.value=h(u.element)),w},JsdocTypeName:u=>({type:"NAME",name:u.value}),JsdocTypeTypeof:(u,h)=>({type:"TYPE_QUERY",name:h(u.element)}),JsdocTypeTuple:(u,h)=>({type:"TUPLE",entries:u.elements.map(h)}),JsdocTypeKeyof:(u,h)=>({type:"KEY_QUERY",value:h(u.element)}),JsdocTypeImport:u=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:vt(u.element.meta.quote),string:u.element.value}}),JsdocTypeUndefined:()=>({type:"NAME",name:"undefined"}),JsdocTypeAny:()=>({type:"ANY"}),JsdocTypeFunction:(u,h)=>{let w=rn(u),P={type:u.arrow?"ARROW":"FUNCTION",params:w.params.map(U=>{if(U.type==="JsdocTypeKeyValue"){if(U.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:U.key,typeName:h(U.right)}}else return h(U)}),new:null,returns:null};return w.this!==void 0?P.this=h(w.this):u.arrow||(P.this=null),w.new!==void 0&&(P.new=h(w.new)),u.returnType!==void 0&&(P.returns=h(u.returnType)),P},JsdocTypeGeneric:(u,h)=>{let w={type:"GENERIC",subject:h(u.left),objects:u.elements.map(h),meta:{syntax:u.meta.brackets==="square"?"SQUARE_BRACKET":u.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return u.meta.brackets==="square"&&u.elements[0].type==="JsdocTypeFunction"&&!u.elements[0].parenthesis&&(w.objects[0]={type:"NAME",name:"function"}),w},JsdocTypeObjectField:(u,h)=>{if(typeof u.key!="string")throw new Error("Index signatures and mapped types are not supported");if(u.right===void 0)return{type:"RECORD_ENTRY",key:u.key,quoteStyle:vt(u.meta.quote),value:null,readonly:!1};let w=h(u.right);return u.optional&&(w={type:"OPTIONAL",value:w,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:u.key.toString(),quoteStyle:vt(u.meta.quote),value:w,readonly:!1}},JsdocTypeJsdocObjectField:()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},JsdocTypeKeyValue:(u,h)=>{if(u.right===void 0)return{type:"RECORD_ENTRY",key:u.key,quoteStyle:"none",value:null,readonly:!1};let w=h(u.right);return u.optional&&(w={type:"OPTIONAL",value:w,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:u.key,quoteStyle:"none",value:w,readonly:!1}},JsdocTypeObject:(u,h)=>{let w=[];for(let P of u.elements)(P.type==="JsdocTypeObjectField"||P.type==="JsdocTypeJsdocObjectField")&&w.push(h(P));return{type:"RECORD",entries:w}},JsdocTypeSpecialNamePath:u=>{if(u.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${u.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:vt(u.meta.quote),path:u.value}}},JsdocTypeNamePath:(u,h)=>{let w=!1,P,U;u.right.type==="JsdocTypeSpecialNamePath"&&u.right.specialType==="event"?(w=!0,P=u.right.value,U=vt(u.right.meta.quote)):(P=u.right.value,U=vt(u.right.meta.quote));let W={type:Rl(u.pathType),owner:h(u.left),name:P,quoteStyle:U,hasEventPrefix:w};if(W.owner.type==="MODULE"){let Z=W.owner;return W.owner=W.owner.value,Z.value=W,Z}else return W},JsdocTypeUnion:(u,h)=>nn("UNION",u.elements.map(h)),JsdocTypeParenthesis:(u,h)=>({type:"PARENTHESIS",value:h(E(u.element))}),JsdocTypeNull:()=>({type:"NAME",name:"null"}),JsdocTypeUnknown:()=>({type:"UNKNOWN"}),JsdocTypeStringValue:u=>({type:"STRING_VALUE",quoteStyle:vt(u.meta.quote),string:u.value}),JsdocTypeIntersection:(u,h)=>nn("INTERSECTION",u.elements.map(h)),JsdocTypeNumber:u=>({type:"NUMBER_VALUE",number:u.value.toString()}),JsdocTypeSymbol:pe,JsdocTypeProperty:pe,JsdocTypePredicate:pe,JsdocTypeMappedType:pe,JsdocTypeIndexSignature:pe,JsdocTypeAsserts:pe,JsdocTypeReadonlyArray:pe,JsdocTypeAssertsPlain:pe,JsdocTypeConditional:pe,JsdocTypeTypeParameter:pe};function xl(u){return St(Ol,u)}function Pl(){return{JsdocTypeIntersection:(u,h)=>({type:"JsdocTypeIntersection",elements:u.elements.map(h)}),JsdocTypeGeneric:(u,h)=>({type:"JsdocTypeGeneric",left:h(u.left),elements:u.elements.map(h),meta:{dot:u.meta.dot,brackets:u.meta.brackets}}),JsdocTypeNullable:u=>u,JsdocTypeUnion:(u,h)=>({type:"JsdocTypeUnion",elements:u.elements.map(h)}),JsdocTypeUnknown:u=>u,JsdocTypeUndefined:u=>u,JsdocTypeTypeof:(u,h)=>({type:"JsdocTypeTypeof",element:h(u.element)}),JsdocTypeSymbol:(u,h)=>{let w={type:"JsdocTypeSymbol",value:u.value};return u.element!==void 0&&(w.element=h(u.element)),w},JsdocTypeOptional:(u,h)=>({type:"JsdocTypeOptional",element:h(u.element),meta:{position:u.meta.position}}),JsdocTypeObject:(u,h)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:u.elements.map(h)}),JsdocTypeNumber:u=>u,JsdocTypeNull:u=>u,JsdocTypeNotNullable:(u,h)=>({type:"JsdocTypeNotNullable",element:h(u.element),meta:{position:u.meta.position}}),JsdocTypeSpecialNamePath:u=>u,JsdocTypeObjectField:(u,h)=>({type:"JsdocTypeObjectField",key:u.key,right:u.right===void 0?void 0:h(u.right),optional:u.optional,readonly:u.readonly,meta:u.meta}),JsdocTypeJsdocObjectField:(u,h)=>({type:"JsdocTypeJsdocObjectField",left:h(u.left),right:h(u.right)}),JsdocTypeKeyValue:(u,h)=>({type:"JsdocTypeKeyValue",key:u.key,right:u.right===void 0?void 0:h(u.right),optional:u.optional,variadic:u.variadic}),JsdocTypeImport:(u,h)=>({type:"JsdocTypeImport",element:h(u.element)}),JsdocTypeAny:u=>u,JsdocTypeStringValue:u=>u,JsdocTypeNamePath:u=>u,JsdocTypeVariadic:(u,h)=>{let w={type:"JsdocTypeVariadic",meta:{position:u.meta.position,squareBrackets:u.meta.squareBrackets}};return u.element!==void 0&&(w.element=h(u.element)),w},JsdocTypeTuple:(u,h)=>({type:"JsdocTypeTuple",elements:u.elements.map(h)}),JsdocTypeName:u=>u,JsdocTypeFunction:(u,h)=>{let w={type:"JsdocTypeFunction",arrow:u.arrow,parameters:u.parameters.map(h),constructor:u.constructor,parenthesis:u.parenthesis};return u.returnType!==void 0&&(w.returnType=h(u.returnType)),w},JsdocTypeKeyof:(u,h)=>({type:"JsdocTypeKeyof",element:h(u.element)}),JsdocTypeParenthesis:(u,h)=>({type:"JsdocTypeParenthesis",element:h(u.element)}),JsdocTypeProperty:u=>u,JsdocTypePredicate:(u,h)=>({type:"JsdocTypePredicate",left:h(u.left),right:h(u.right)}),JsdocTypeIndexSignature:(u,h)=>({type:"JsdocTypeIndexSignature",key:u.key,right:h(u.right)}),JsdocTypeMappedType:(u,h)=>({type:"JsdocTypeMappedType",key:u.key,right:h(u.right)}),JsdocTypeAsserts:(u,h)=>({type:"JsdocTypeAsserts",left:h(u.left),right:h(u.right)}),JsdocTypeReadonlyArray:(u,h)=>({type:"JsdocTypeReadonlyArray",element:h(u.element)}),JsdocTypeAssertsPlain:(u,h)=>({type:"JsdocTypeAssertsPlain",element:h(u.element)}),JsdocTypeConditional:(u,h)=>({type:"JsdocTypeConditional",checksType:h(u.checksType),extendsType:h(u.extendsType),trueType:h(u.trueType),falseType:h(u.falseType)}),JsdocTypeTypeParameter:(u,h)=>({type:"JsdocTypeTypeParameter",name:h(u.name),constraint:u.constraint!==void 0?h(u.constraint):void 0,defaultValue:u.defaultValue!==void 0?h(u.defaultValue):void 0})}}let Bo={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 on(u,h,w,P,U){P?.(u,h,w);let W=Bo[u.type];for(let Z of W){let fe=u[Z];if(fe!==void 0)if(Array.isArray(fe))for(let me of fe)on(me,u,Z,P,U);else on(fe,u,Z,P,U)}U?.(u,h,w)}function Cl(u,h,w){on(u,void 0,void 0,h,w)}r.catharsisTransform=Al,r.identityTransformRules=Pl,r.jtpTransform=xl,r.parse=tn,r.stringify=Nr,r.stringifyRules=ee,r.transform=St,r.traverse=Cl,r.tryParse=$o,r.visitorKeys=Bo}))}}),DP=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,l){for(var d=0;d<l.length;d++){var p=l[d];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(c,(f=p.key,m=void 0,typeof(m=(function(y,g){if(typeof y!="object"||y===null)return y;var v=y[Symbol.toPrimitive];if(v!==void 0){var b=v.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"?m:String(m)),p)}var f,m}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 l=new RegExp("^-?\\d+(?:.\\d{0,".concat(arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,"})?")),d=Number(c).toString().match(l);return d?d[0]:null},a=function(){return typeof window<"u"?window.navigator:null},s=(function(){function c(f){var m;(function(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")})(this,c),this.userAgent=f||((m=a())===null||m===void 0?void 0:m.userAgent)||null}var l,d,p;return l=c,d=[{key:"parseUserAgent",value:function(f){var m,y,g,v={},b=f||this.userAgent||"",T=b.toLowerCase().replace(/\s\s+/g," "),R=/(edge)\/([\w.]+)/.exec(T)||/(edg)[/]([\w.]+)/.exec(T)||/(opr)[/]([\w.]+)/.exec(T)||/(opt)[/]([\w.]+)/.exec(T)||/(fxios)[/]([\w.]+)/.exec(T)||/(edgios)[/]([\w.]+)/.exec(T)||/(jsdom)[/]([\w.]+)/.exec(T)||/(samsungbrowser)[/]([\w.]+)/.exec(T)||/(electron)[/]([\w.]+)/.exec(T)||/(chrome)[/]([\w.]+)/.exec(T)||/(crios)[/]([\w.]+)/.exec(T)||/(opios)[/]([\w.]+)/.exec(T)||/(version)(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(T)||/(webkit)[/]([\w.]+).*(version)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(T)||/(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(T)||/(webkit)[/]([\w.]+)/.exec(T)||/(opera)(?:.*version|)[/]([\w.]+)/.exec(T)||/(msie) ([\w.]+)/.exec(T)||/(fennec)[/]([\w.]+)/.exec(T)||T.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(T)||T.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(T)||[],x=/(ipad)/.exec(T)||/(ipod)/.exec(T)||/(iphone)/.exec(T)||/(jsdom)/.exec(T)||/(windows phone)/.exec(T)||/(xbox)/.exec(T)||/(win)/.exec(T)||/(tablet)/.exec(T)||/(android)/.test(T)&&/(mobile)/.test(T)===!1&&["androidTablet"]||/(android)/.exec(T)||/(mac)/.exec(T)||/(linux)/.exec(T)||/(cros)/.exec(T)||[],C=R[5]||R[3]||R[1]||null,E=x[0]||null,_=R[4]||R[2]||null,S=a();C==="chrome"&&typeof(S==null||(m=S.brave)===null||m===void 0?void 0:m.isBrave)=="function"&&(C="brave"),C&&(v[C]=!0),E&&(v[E]=!0);var A=!!(v.tablet||v.android||v.androidTablet),$=!!(v.ipad||v.tablet||v.androidTablet),k=!!(v.android||v.androidTablet||v.tablet||v.ipad||v.ipod||v.iphone||v["windows phone"]),H=!!(v.cros||v.mac||v.linux||v.win),I=!!(v.brave||v.chrome||v.crios||v.opr||v.safari||v.edg||v.electron),O=!!(v.msie||v.rv);return{name:(y=n[C])!==null&&y!==void 0?y:null,platform:(g=o[E])!==null&&g!==void 0?g:null,userAgent:b,version:_,shortVersion:_?i(parseFloat(_),2):null,isAndroid:A,isTablet:$,isMobile:k,isDesktop:H,isWebkit:I,isIE:O}}},{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(l.prototype,d),p&&r(l,p),Object.defineProperty(l,"prototype",{writable:!1}),c})();return s}))}}),sd={};Tt(sd,{ARGTYPES_INFO_REQUEST:()=>eb,ARGTYPES_INFO_RESPONSE:()=>Nu,CHANNEL_CREATED:()=>FP,CHANNEL_WS_DISCONNECT:()=>jg,CONFIG_ERROR:()=>kg,CREATE_NEW_STORYFILE_REQUEST:()=>BP,CREATE_NEW_STORYFILE_RESPONSE:()=>UP,CURRENT_STORY_WAS_SET:()=>xu,DOCS_PREPARED:()=>qg,DOCS_RENDERED:()=>ud,FILE_COMPONENT_SEARCH_REQUEST:()=>JP,FILE_COMPONENT_SEARCH_RESPONSE:()=>HP,FORCE_REMOUNT:()=>Wa,FORCE_RE_RENDER:()=>cd,GHOST_STORIES_REQUEST:()=>uC,GHOST_STORIES_RESPONSE:()=>cC,GLOBALS_UPDATED:()=>hi,MANAGER_INERT_ATTRIBUTE_CHANGED:()=>tb,NAVIGATE_URL:()=>VP,OPEN_IN_EDITOR_REQUEST:()=>dC,OPEN_IN_EDITOR_RESPONSE:()=>pC,PLAY_FUNCTION_THREW_EXCEPTION:()=>Lg,PRELOAD_ENTRIES:()=>$g,PREVIEW_BUILDER_PROGRESS:()=>zP,PREVIEW_INITIALIZED:()=>Fg,PREVIEW_KEYDOWN:()=>Bg,REGISTER_SUBSCRIPTION:()=>GP,REQUEST_WHATS_NEW_DATA:()=>nC,RESET_STORY_ARGS:()=>dd,RESULT_WHATS_NEW_DATA:()=>oC,SAVE_STORY_REQUEST:()=>sC,SAVE_STORY_RESPONSE:()=>lC,SELECT_STORY:()=>WP,SET_CONFIG:()=>YP,SET_CURRENT_STORY:()=>pd,SET_FILTER:()=>KP,SET_GLOBALS:()=>Ug,SET_INDEX:()=>XP,SET_STORIES:()=>QP,SET_WHATS_NEW_CACHE:()=>iC,SHARED_STATE_CHANGED:()=>ZP,SHARED_STATE_SET:()=>eC,SHARE_ISOLATE_MODE:()=>mC,SHARE_POPOVER_OPENED:()=>hC,SHARE_STORY_LINK:()=>fC,STORIES_COLLAPSE_ALL:()=>tC,STORIES_EXPAND_ALL:()=>rC,STORY_ARGS_UPDATED:()=>Jg,STORY_CHANGED:()=>Hg,STORY_ERRORED:()=>Vg,STORY_FINISHED:()=>Cu,STORY_HOT_UPDATED:()=>Xg,STORY_INDEX_INVALIDATED:()=>zg,STORY_MISSING:()=>Pu,STORY_PREPARED:()=>Gg,STORY_RENDERED:()=>Ya,STORY_RENDER_PHASE_CHANGED:()=>wn,STORY_SPECIFIED:()=>Wg,STORY_THREW_EXCEPTION:()=>Yg,STORY_UNCHANGED:()=>Kg,TELEMETRY_ERROR:()=>Zg,TOGGLE_WHATS_NEW_NOTIFICATIONS:()=>aC,UNHANDLED_ERRORS_WHILE_PLAYING:()=>Dg,UPDATE_GLOBALS:()=>fd,UPDATE_QUERY_PARAMS:()=>Qg,UPDATE_STORY_ARGS:()=>md,default:()=>$P});var ld=(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))(ld||{}),$P=ld,{CHANNEL_WS_DISCONNECT:jg,CHANNEL_CREATED:FP,CONFIG_ERROR:kg,CREATE_NEW_STORYFILE_REQUEST:BP,CREATE_NEW_STORYFILE_RESPONSE:UP,CURRENT_STORY_WAS_SET:xu,DOCS_PREPARED:qg,DOCS_RENDERED:ud,FILE_COMPONENT_SEARCH_REQUEST:JP,FILE_COMPONENT_SEARCH_RESPONSE:HP,FORCE_RE_RENDER:cd,FORCE_REMOUNT:Wa,GLOBALS_UPDATED:hi,NAVIGATE_URL:VP,PLAY_FUNCTION_THREW_EXCEPTION:Lg,UNHANDLED_ERRORS_WHILE_PLAYING:Dg,PRELOAD_ENTRIES:$g,PREVIEW_INITIALIZED:Fg,PREVIEW_BUILDER_PROGRESS:zP,PREVIEW_KEYDOWN:Bg,REGISTER_SUBSCRIPTION:GP,RESET_STORY_ARGS:dd,SELECT_STORY:WP,SET_CONFIG:YP,SET_CURRENT_STORY:pd,SET_FILTER:KP,SET_GLOBALS:Ug,SET_INDEX:XP,SET_STORIES:QP,SHARED_STATE_CHANGED:ZP,SHARED_STATE_SET:eC,STORIES_COLLAPSE_ALL:tC,STORIES_EXPAND_ALL:rC,STORY_ARGS_UPDATED:Jg,STORY_CHANGED:Hg,STORY_ERRORED:Vg,STORY_INDEX_INVALIDATED:zg,STORY_MISSING:Pu,STORY_PREPARED:Gg,STORY_RENDER_PHASE_CHANGED:wn,STORY_RENDERED:Ya,STORY_FINISHED:Cu,STORY_SPECIFIED:Wg,STORY_THREW_EXCEPTION:Yg,STORY_UNCHANGED:Kg,STORY_HOT_UPDATED:Xg,UPDATE_GLOBALS:fd,UPDATE_QUERY_PARAMS:Qg,UPDATE_STORY_ARGS:md,REQUEST_WHATS_NEW_DATA:nC,RESULT_WHATS_NEW_DATA:oC,SET_WHATS_NEW_CACHE:iC,TOGGLE_WHATS_NEW_NOTIFICATIONS:aC,TELEMETRY_ERROR:Zg,SAVE_STORY_REQUEST:sC,SAVE_STORY_RESPONSE:lC,ARGTYPES_INFO_REQUEST:eb,ARGTYPES_INFO_RESPONSE:Nu,GHOST_STORIES_REQUEST:uC,GHOST_STORIES_RESPONSE:cC,OPEN_IN_EDITOR_REQUEST:dC,OPEN_IN_EDITOR_RESPONSE:pC,MANAGER_INERT_ATTRIBUTE_CHANGED:tb,SHARE_STORY_LINK:fC,SHARE_ISOLATE_MODE:mC,SHARE_POPOVER_OPENED:hC}=ld,rb={};Tt(rb,{global:()=>re});var re=(()=>{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})(),nb={"@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__"},yC=Object.keys(nb),ob={};Tt(ob,{Channel:()=>ks,HEARTBEAT_INTERVAL:()=>xb,HEARTBEAT_MAX_LATENCY:()=>Pb,PostMessageTransport:()=>Ob,WebsocketTransport:()=>Cb,createBrowserChannel:()=>CI,default:()=>PI});function Te(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 l=c.match(/\n([\t ]+|(?!\s).)/g);return l?s.concat(l.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 l=a.match(/(?:^|\n)( *)$/),d=l?l[1]:"",p=s;typeof s=="string"&&s.includes(`
25
+ `)&&(p=String(s).split(`
26
+ `).map(function(f,m){return m===0?f:""+d+f}).join(`
27
+ `)),a+=p+n[c+1]}),a}var xf=new Map,gC="UNIVERSAL_STORE:",jt={PENDING:"PENDING",RESOLVED:"RESOLVED",REJECTED:"REJECTED"},dn=class ge{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!==ge.Status.READY)throw new TypeError(Te`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,!ge.isInternalConstructing)throw new TypeError("UniversalStore is not constructable - use UniversalStore.create() instead");if(ge.isInternalConstructing=!1,this.id=t.id,this.actorId=Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?ge.ActorType.LEADER:ge.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${gC}${this.id}`,this.debug("constructor",{options:t,environmentOverrides:r,channelEventName:this.channelEventName}),this.actor.type===ge.ActorType.LEADER)this.syncing={state:jt.RESOLVED,promise:Promise.resolve()};else{let n,o,i=new Promise((a,s)=>{n=()=>{this.syncing.state===jt.PENDING&&(this.syncing.state=jt.RESOLVED,a())},o=c=>{this.syncing.state===jt.PENDING&&(this.syncing.state=jt.REJECTED,s(c))}});this.syncing={state:jt.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??ge.preparation.channel,this.environment=r?.environment??ge.preparation.environment,this.channel&&this.environment?(ge.preparation.resolve({channel:this.channel,environment:this.environment}),this.prepareThis({channel:this.channel,environment:this.environment})):ge.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,r,n=new Promise((o,i)=>{t=a=>{o(a)},r=(...a)=>{i(a)}});ge.preparation={resolve:t,reject:r,promise:n}}get actor(){return Object.freeze({id:this.actorId,type:this.actorType,environment:this.environment??ge.Environment.UNKNOWN})}get status(){if(!this.channel||!this.environment)return ge.Status.UNPREPARED;switch(this.syncing?.state){case jt.PENDING:case void 0:return ge.Status.SYNCING;case jt.REJECTED:return ge.Status.ERROR;case jt.RESOLVED:default:return ge.Status.READY}}untilReady(){return Promise.all([ge.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(Te`[UniversalStore]
30
+ create`,{options:t});let r=xf.get(t.id);if(r)return console.warn(Te`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;ge.isInternalConstructing=!0;let n=new ge(t);return xf.set(t.id,n),n}static __prepare(t,r){ge.preparation.channel=t,ge.preparation.environment=r,ge.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!==ge.Status.READY)throw new TypeError(Te`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:ge.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(ge.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===ge.ActorType.LEADER?this.emitToChannel({type:ge.InternalEventType.LEADER_CREATED},{actor:this.actor}):(this.emitToChannel({type:ge.InternalEventType.FOLLOWER_CREATED},{actor:this.actor}),this.emitToChannel({type:ge.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===jt.PENDING&&r.type!==ge.InternalEventType.EXISTING_STATE_RESPONSE){this.debug("handleChannelEvents: Ignoring event while syncing",{channelEvent:t});return}if(this.debug("handleChannelEvents",{channelEvent:t}),this.actor.type===ge.ActorType.LEADER){let o=!0;switch(r.type){case ge.InternalEventType.EXISTING_STATE_REQUEST:o=!1;let i={type:ge.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 ge.InternalEventType.LEADER_CREATED:o=!1,this.syncing.state=jt.REJECTED,this.debug("handleChannelEvents: erroring due to second leader being created",{event:r}),console.error(Te`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===ge.ActorType.FOLLOWER)switch(r.type){case ge.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug("handleChannelEvents: Setting state from leader's existing state response",{event:r}),this.syncing?.state!==jt.PENDING)break;this.syncing.resolve?.();let o={type:ge.InternalEventType.SET_STATE,payload:{state:r.payload,previousState:this.state}};this.state=r.payload,this.emitToListeners(o,n);break}switch(r.type){case ge.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(Te`[UniversalStore::${this.id}::${this.environment??ge.Environment.UNKNOWN}]
38
+ ${t}`,JSON.stringify({data:r,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){ge.preparation.reject(new Error("reset")),ge.setupPreparationPromise(),ge.isInternalConstructing=!1}};dn.ActorType={LEADER:"LEADER",FOLLOWER:"FOLLOWER"},dn.Environment={SERVER:"SERVER",MANAGER:"MANAGER",PREVIEW:"PREVIEW",UNKNOWN:"UNKNOWN",MOCK:"MOCK"},dn.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"},dn.Status={UNPREPARED:"UNPREPARED",SYNCING:"SYNCING",READY:"READY",ERROR:"ERROR"},dn.isInternalConstructing=!1,dn.setupPreparationPromise();var Nl=dn,bC=e=>e.transports!==void 0,vC=()=>Math.random().toString(16).slice(2),ks=class{constructor(e={}){this.sender=vC(),this.events={},this.data={},this.transports=[],this.isAsync=e.async||!1,bC(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}},ib={};Tt(ib,{deprecate:()=>hd,logger:()=>$e,once:()=>Ge,pretty:()=>Ct});var{LOGLEVEL:EC}=re,Lr={trace:1,debug:2,info:3,warn:4,error:5,silent:10},wC=EC,qn=Lr[wC]||Lr.info,$e={trace:(e,...t)=>{qn<=Lr.trace&&console.trace(e,...t)},debug:(e,...t)=>{qn<=Lr.debug&&console.debug(e,...t)},info:(e,...t)=>{qn<=Lr.info&&console.info(e,...t)},warn:(e,...t)=>{qn<=Lr.warn&&console.warn(e,...t)},error:(e,...t)=>{qn<=Lr.error&&console.error(e,...t)},log:(e,...t)=>{qn<Lr.silent&&console.log(e,...t)}},Iu=new Set,Ge=e=>(t,...r)=>{if(!Iu.has(t))return Iu.add(t),$e[e](t,...r)};Ge.clear=()=>Iu.clear();Ge.trace=Ge("trace");Ge.debug=Ge("debug");Ge.info=Ge("info");Ge.warn=Ge("warn");Ge.error=Ge("error");Ge.log=Ge("log");var hd=Ge("warn"),Ct=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])}$e[e].apply($e,r)};Ct.trace=Ct("trace");Ct.debug=Ct("debug");Ct.info=Ct("info");Ct.warn=Ct("warn");Ct.error=Ct("error");var _C=Object.create,ab=Object.defineProperty,TC=Object.getOwnPropertyDescriptor,sb=Object.getOwnPropertyNames,SC=Object.getPrototypeOf,AC=Object.prototype.hasOwnProperty,Ee=(e,t)=>function(){return t||(0,e[sb(e)[0]])((t={exports:{}}).exports,t),t.exports},RC=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of sb(t))!AC.call(e,o)&&o!==r&&ab(e,o,{get:()=>t[o],enumerable:!(n=TC(t,o))||n.enumerable});return e},yd=(e,t,r)=>(r=e!=null?_C(SC(e)):{},RC(!e||!e.__esModule?ab(r,"default",{value:e,enumerable:!0}):r,e)),OC=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],xC=["detail"];function PC(e){let t=OC.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of xC.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var lb=Ee({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),CC=Ee({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),NC=Ee({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),IC=Ee({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),MC=Ee({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),jC=Ee({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),gd=Ee({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),kC=Ee({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),qC=Ee({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),LC=Ee({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),DC=Ee({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),$C=Ee({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),FC=Ee({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),BC=Ee({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),UC=Ee({"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}}}),JC=Ee({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=UC();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),HC=Ee({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),bd=Ee({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=HC();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),VC=Ee({"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}}),ub=Ee({"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}}}),cb=Ee({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=ub();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),db=Ee({"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}}),pb=Ee({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=lb();t.exports=r.getPrototypeOf||null}}),zC=Ee({"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(l,d){for(var p=[],f=0;f<l.length;f+=1)p[f]=l[f];for(var m=0;m<d.length;m+=1)p[m+l.length]=d[m];return p},s=function(l,d){for(var p=[],f=d,m=0;f<l.length;f+=1,m+=1)p[m]=l[f];return p},c=function(l,d){for(var p="",f=0;f<l.length;f+=1)p+=l[f],f+1<l.length&&(p+=d);return p};t.exports=function(l){var d=this;if(typeof d!="function"||n.apply(d)!==i)throw new TypeError(r+d);for(var p=s(arguments,1),f,m=function(){if(this instanceof f){var T=d.apply(this,a(p,arguments));return Object(T)===T?T:this}return d.apply(l,a(p,arguments))},y=o(0,d.length-p.length),g=[],v=0;v<y;v++)g[v]="$"+v;if(f=Function("binder","return function ("+c(g,",")+"){ return binder.apply(this,arguments); }")(m),d.prototype){var b=function(){};b.prototype=d.prototype,f.prototype=new b,b.prototype=null}return f}}}),qs=Ee({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=zC();t.exports=Function.prototype.bind||r}}),vd=Ee({"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}}),fb=Ee({"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}}),GC=Ee({"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}}),WC=Ee({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=qs(),n=fb(),o=vd(),i=GC();t.exports=i||r.call(o,n)}}),mb=Ee({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=qs(),n=gd(),o=vd(),i=WC();t.exports=function(a){if(a.length<1||typeof a[0]!="function")throw new n("a function is required");return i(r,o,a)}}}),YC=Ee({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=mb(),n=bd(),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}}),KC=Ee({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=db(),n=pb(),o=YC();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}}),hb=Ee({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=qs();t.exports=o.call(r,n)}}),XC=Ee({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=lb(),o=CC(),i=NC(),a=IC(),s=MC(),c=jC(),l=gd(),d=kC(),p=qC(),f=LC(),m=DC(),y=$C(),g=FC(),v=BC(),b=JC(),T=Function,R=function(te){try{return T('"use strict"; return ('+te+").constructor;")()}catch{}},x=bd(),C=VC(),E=function(){throw new l},_=x?(function(){try{return arguments.callee,E}catch{try{return x(arguments,"callee").get}catch{return E}}})():E,S=cb()(),A=KC(),$=pb(),k=db(),H=fb(),I=vd(),O={},q=typeof Uint8Array>"u"||!A?r:A(Uint8Array),F={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":S&&A?A([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":O,"%AsyncGenerator%":O,"%AsyncGeneratorFunction%":O,"%AsyncIteratorPrototype%":O,"%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%":T,"%GeneratorFunction%":O,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S&&A?A(A([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!S||!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"||!S||!A?r:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&A?A(""[Symbol.iterator]()):r,"%Symbol%":S?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":_,"%TypedArray%":q,"%TypeError%":l,"%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%":H,"%Object.defineProperty%":C,"%Object.getPrototypeOf%":$,"%Math.abs%":p,"%Math.floor%":f,"%Math.max%":m,"%Math.min%":y,"%Math.pow%":g,"%Math.round%":v,"%Math.sign%":b,"%Reflect.getPrototypeOf%":k};if(A)try{null.error}catch(te){V=A(A(te)),F["%Error.prototype%"]=V}var V,K=function te(ne){var ae;if(ne==="%AsyncFunction%")ae=R("async function () {}");else if(ne==="%GeneratorFunction%")ae=R("function* () {}");else if(ne==="%AsyncGeneratorFunction%")ae=R("async function* () {}");else if(ne==="%AsyncGenerator%"){var ce=te("%AsyncGeneratorFunction%");ce&&(ae=ce.prototype)}else if(ne==="%AsyncIteratorPrototype%"){var de=te("%AsyncGenerator%");de&&A&&(ae=A(de.prototype))}return F[ne]=ae,ae},oe={__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=qs(),L=hb(),D=ue.call(I,Array.prototype.concat),G=ue.call(H,Array.prototype.splice),Q=ue.call(I,String.prototype.replace),X=ue.call(I,String.prototype.slice),Y=ue.call(I,RegExp.prototype.exec),ie=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,se=/\\(\\)?/g,_e=function(te){var ne=X(te,0,1),ae=X(te,-1);if(ne==="%"&&ae!=="%")throw new c("invalid intrinsic syntax, expected closing `%`");if(ae==="%"&&ne!=="%")throw new c("invalid intrinsic syntax, expected opening `%`");var ce=[];return Q(te,ie,function(de,ye,ve,Ue){ce[ce.length]=ve?Q(Ue,se,"$1"):ye||de}),ce},B=function(te,ne){var ae=te,ce;if(L(oe,ae)&&(ce=oe[ae],ae="%"+ce[0]+"%"),L(F,ae)){var de=F[ae];if(de===O&&(de=K(ae)),typeof de>"u"&&!ne)throw new l("intrinsic "+te+" exists, but is not available. Please file an issue!");return{alias:ce,name:ae,value:de}}throw new c("intrinsic "+te+" does not exist!")};t.exports=function(te,ne){if(typeof te!="string"||te.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ne!="boolean")throw new l('"allowMissing" argument must be a boolean');if(Y(/^%?[^%]*%?$/,te)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ae=_e(te),ce=ae.length>0?ae[0]:"",de=B("%"+ce+"%",ne),ye=de.name,ve=de.value,Ue=!1,gt=de.alias;gt&&(ce=gt[0],G(ae,D([0,1],gt)));for(var ut=1,bt=!0;ut<ae.length;ut+=1){var ot=ae[ut],Xt=X(ot,0,1),Mt=X(ot,-1);if((Xt==='"'||Xt==="'"||Xt==="`"||Mt==='"'||Mt==="'"||Mt==="`")&&Xt!==Mt)throw new c("property names with quotes must have matching quotes");if((ot==="constructor"||!bt)&&(Ue=!0),ce+="."+ot,ye="%"+ce+"%",L(F,ye))ve=F[ye];else if(ve!=null){if(!(ot in ve)){if(!ne)throw new l("base intrinsic for "+te+" exists, but the property is not available.");return}if(x&&ut+1>=ae.length){var Qt=x(ve,ot);bt=!!Qt,bt&&"get"in Qt&&!("originalValue"in Qt.get)?ve=Qt.get:ve=ve[ot]}else bt=L(ve,ot),ve=ve[ot];bt&&!Ue&&(F[ye]=ve)}}return ve}}}),Ed=Ee({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=XC(),n=mb(),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}}}),QC=Ee({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=ub();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),yb=Ee({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=Ed(),n=QC()(),o=hb(),i=bd(),a;n?(s=r("RegExp.prototype.exec"),c={},l=function(){throw c},d={toString:l,valueOf:l},typeof Symbol.toPrimitive=="symbol"&&(d[Symbol.toPrimitive]=l),a=function(m){if(!m||typeof m!="object")return!1;var y=i(m,"lastIndex"),g=y&&o(y,"value");if(!g)return!1;try{s(m,d)}catch(v){return v===c}}):(p=r("Object.prototype.toString"),f="[object RegExp]",a=function(m){return!m||typeof m!="object"&&typeof m!="function"?!1:p(m)===f});var s,c,l,d,p,f;t.exports=a}}),ZC=Ee({"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)}}}),e1=Ee({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=Ed(),n=yb(),o=r("RegExp.prototype.exec"),i=gd();t.exports=function(a){if(!n(a))throw new i("`regex` must be a RegExp");return function(s){return o(a,s)!==null}}}}),t1=Ee({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=Ed(),n=r("Object.prototype.toString"),o=cb()(),i=e1();o?(a=r("Symbol.prototype.toString"),s=i(/^Symbol\(.*\)$/),c=function(l){return typeof l.valueOf()!="symbol"?!1:s(a(l))},t.exports=function(l){if(typeof l=="symbol")return!0;if(!l||typeof l!="object"||n(l)!=="[object Symbol]")return!1;try{return c(l)}catch{return!1}}):t.exports=function(l){return!1};var a,s,c}}),r1=yd(yb()),n1=yd(ZC()),o1=yd(t1());function i1(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var a1=typeof global=="object"&&global&&global.Object===Object&&global,s1=a1,l1=typeof self=="object"&&self&&self.Object===Object&&self,u1=s1||l1||Function("return this")(),wd=u1,c1=wd.Symbol,Wn=c1,gb=Object.prototype,d1=gb.hasOwnProperty,p1=gb.toString,Jo=Wn?Wn.toStringTag:void 0;function f1(e){var t=d1.call(e,Jo),r=e[Jo];try{e[Jo]=void 0;var n=!0}catch{}var o=p1.call(e);return n&&(t?e[Jo]=r:delete e[Jo]),o}var m1=f1,h1=Object.prototype,y1=h1.toString;function g1(e){return y1.call(e)}var b1=g1,v1="[object Null]",E1="[object Undefined]",Pf=Wn?Wn.toStringTag:void 0;function w1(e){return e==null?e===void 0?E1:v1:Pf&&Pf in Object(e)?m1(e):b1(e)}var bb=w1;function _1(e){return e!=null&&typeof e=="object"}var T1=_1,S1="[object Symbol]";function A1(e){return typeof e=="symbol"||T1(e)&&bb(e)==S1}var _d=A1;function R1(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 O1=R1,x1=Array.isArray,Td=x1,Cf=Wn?Wn.prototype:void 0,Nf=Cf?Cf.toString:void 0;function vb(e){if(typeof e=="string")return e;if(Td(e))return O1(e,vb)+"";if(_d(e))return Nf?Nf.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var P1=vb;function C1(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Eb=C1,N1="[object AsyncFunction]",I1="[object Function]",M1="[object GeneratorFunction]",j1="[object Proxy]";function k1(e){if(!Eb(e))return!1;var t=bb(e);return t==I1||t==M1||t==N1||t==j1}var q1=k1,L1=wd["__core-js_shared__"],Il=L1,If=(function(){var e=/[^.]+$/.exec(Il&&Il.keys&&Il.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function D1(e){return!!If&&If in e}var $1=D1,F1=Function.prototype,B1=F1.toString;function U1(e){if(e!=null){try{return B1.call(e)}catch{}try{return e+""}catch{}}return""}var J1=U1,H1=/[\\^$.*+?()[\]{}|]/g,V1=/^\[object .+?Constructor\]$/,z1=Function.prototype,G1=Object.prototype,W1=z1.toString,Y1=G1.hasOwnProperty,K1=RegExp("^"+W1.call(Y1).replace(H1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function X1(e){if(!Eb(e)||$1(e))return!1;var t=q1(e)?K1:V1;return t.test(J1(e))}var Q1=X1;function Z1(e,t){return e?.[t]}var eN=Z1;function tN(e,t){var r=eN(e,t);return Q1(r)?r:void 0}var wb=tN;function rN(e,t){return e===t||e!==e&&t!==t}var nN=rN,oN=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,iN=/^\w*$/;function aN(e,t){if(Td(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||_d(e)?!0:iN.test(e)||!oN.test(e)||t!=null&&e in Object(t)}var sN=aN,lN=wb(Object,"create"),yi=lN;function uN(){this.__data__=yi?yi(null):{},this.size=0}var cN=uN;function dN(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var pN=dN,fN="__lodash_hash_undefined__",mN=Object.prototype,hN=mN.hasOwnProperty;function yN(e){var t=this.__data__;if(yi){var r=t[e];return r===fN?void 0:r}return hN.call(t,e)?t[e]:void 0}var gN=yN,bN=Object.prototype,vN=bN.hasOwnProperty;function EN(e){var t=this.__data__;return yi?t[e]!==void 0:vN.call(t,e)}var wN=EN,_N="__lodash_hash_undefined__";function TN(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=yi&&t===void 0?_N:t,this}var SN=TN;function ho(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])}}ho.prototype.clear=cN;ho.prototype.delete=pN;ho.prototype.get=gN;ho.prototype.has=wN;ho.prototype.set=SN;var Mf=ho;function AN(){this.__data__=[],this.size=0}var RN=AN;function ON(e,t){for(var r=e.length;r--;)if(nN(e[r][0],t))return r;return-1}var Ls=ON,xN=Array.prototype,PN=xN.splice;function CN(e){var t=this.__data__,r=Ls(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():PN.call(t,r,1),--this.size,!0}var NN=CN;function IN(e){var t=this.__data__,r=Ls(t,e);return r<0?void 0:t[r][1]}var MN=IN;function jN(e){return Ls(this.__data__,e)>-1}var kN=jN;function qN(e,t){var r=this.__data__,n=Ls(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var LN=qN;function yo(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])}}yo.prototype.clear=RN;yo.prototype.delete=NN;yo.prototype.get=MN;yo.prototype.has=kN;yo.prototype.set=LN;var DN=yo,$N=wb(wd,"Map"),FN=$N;function BN(){this.size=0,this.__data__={hash:new Mf,map:new(FN||DN),string:new Mf}}var UN=BN;function JN(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var HN=JN;function VN(e,t){var r=e.__data__;return HN(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Ds=VN;function zN(e){var t=Ds(this,e).delete(e);return this.size-=t?1:0,t}var GN=zN;function WN(e){return Ds(this,e).get(e)}var YN=WN;function KN(e){return Ds(this,e).has(e)}var XN=KN;function QN(e,t){var r=Ds(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var ZN=QN;function go(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])}}go.prototype.clear=UN;go.prototype.delete=GN;go.prototype.get=YN;go.prototype.has=XN;go.prototype.set=ZN;var _b=go,eI="Expected a function";function Sd(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(eI);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(Sd.Cache||_b),r}Sd.Cache=_b;var tI=Sd,rI=500;function nI(e){var t=tI(e,function(n){return r.size===rI&&r.clear(),n}),r=t.cache;return t}var oI=nI,iI=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,aI=/\\(\\)?/g,sI=oI(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(iI,function(r,n,o,i){t.push(o?i.replace(aI,"$1"):n||r)}),t}),lI=sI;function uI(e){return e==null?"":P1(e)}var cI=uI;function dI(e,t){return Td(e)?e:sN(e,t)?[e]:lI(cI(e))}var pI=dI;function fI(e){if(typeof e=="string"||_d(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var mI=fI;function hI(e,t){t=pI(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[mI(t[r++])];return r&&r==n?e:void 0}var yI=hI;function gI(e,t,r){var n=e==null?void 0:yI(e,t);return n===void 0?r:n}var bI=gI,Ad=i1,vI=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Rd=e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/);function Tb(e){if(!Ad(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=PC(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 EI=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 vI.test(a)?e.allowDate?`_date_${a}`:void 0:a;if((0,r1.default)(a))return e.allowRegExp?`_regexp_${a.flags}|${a.source}`:void 0;if((0,n1.default)(a))return;if((0,o1.default)(a)){if(!e.allowSymbol)return;let l=Symbol.keyFor(a);return l!==void 0?`_gsymbol_${l}`:`_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 l=t.get(a);if(!l){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_${l}`}let c=t.get(a);if(!c){let l=Array.isArray(a)?a:Tb(a);return o.push(i),n.unshift(l),t.set(a,JSON.stringify(o)),a!==l&&r.set(a,l),l}return`_duplicate_${c}`}catch{return}}},wI=function(e){let t=[],r;return function(n,o){if(n===""&&(r=o,t.forEach(({target:i,container:a,replacement:s})=>{let c=Rd(s)?JSON.parse(s):s.split(".");c.length===0?a[i]=r:a[i]=bI(r,c)})),n==="_constructor-name_")return o;if(Ad(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}},Sb={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},Ab=(e,t={})=>{let r={...Sb,...t};return JSON.stringify(Tb(e),EI(r),t.space)},_I=()=>{let e=new Map;return function t(r){Ad(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))})}},Rb=(e,t={})=>{let r={...Sb,...t},n=JSON.parse(e,wI(r));return _I()(n),n},TI="Invariant failed";function Tr(e,t){if(!e)throw new Error(TI)}var SI=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&&$e.error("found multiple candidates for event source"),null},{document:Ml,location:jl}=re,jf="storybook-channel",AI={maxDepth:25},Ob=class{constructor(e){if(this.config=e,this.connected=!1,this.buffer=[],typeof re?.addEventListener=="function"&&re.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:l}=t||{},d=Object.fromEntries(Object.entries({allowRegExp:n,allowSymbol:o,allowDate:i,allowError:a,allowUndefined:s,maxDepth:c,space:l}).filter(([g,v])=>typeof v<"u")),p={...AI,...re.CHANNEL_OPTIONS||{},...d},f=this.getFrames(r),m=new URLSearchParams(jl?.search||""),y=Ab({key:jf,event:e,refId:m.get("refId")},p);return f.length?(this.buffer.length&&this.flush(),f.forEach(g=>{try{g.postMessage(y,"*")}catch{$e.error("sending over postmessage fail")}}),Promise.resolve(null)):new Promise((g,v)=>{this.buffer.push({event:e,resolve:g,reject:v})})}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(Ml.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 re&&re.parent&&re.parent!==re.self?[re.parent]:[]}getCurrentFrames(){return this.config.page==="manager"?Array.from(Ml.querySelectorAll('[data-is-storybook="true"]')).flatMap(e=>e.contentWindow?[e.contentWindow]:[]):re&&re.parent?[re.parent]:[]}getLocalFrame(){return this.config.page==="manager"?Array.from(Ml.querySelectorAll("#storybook-preview-iframe")).flatMap(e=>e.contentWindow?[e.contentWindow]:[]):re&&re.parent?[re.parent]:[]}handleEvent(e){try{let{data:t}=e,{key:r,event:n,refId:o}=typeof t=="string"&&Rd(t)?Rb(t,re.CHANNEL_OPTIONS||{}):t;if(r===jf){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(sd).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:SI(e),!n.source){Ct.error(`${i} received ${a} but was unable to determine the source of the event`);return}let s=`${i} received ${a} (${t.length})`;Ct.debug(jl.origin!==n.source?s:`${s} <span style="color: gray">(on ${jl.origin} from ${n.source})</span>`,...n.args),Tr(this.handler,"ChannelHandler should be set"),this.handler(n)}}catch(t){$e.error(t)}}},{WebSocket:RI}=re,xb=15e3,Pb=5e3,Cb=class{constructor({url:e,onError:t,page:r}){this.buffer=[],this.isReady=!1,this.isClosed=!1,this.pingTimeout=0,this.socket=new RI(e),this.socket.onopen=()=>{this.isReady=!0,this.heartbeat(),this.flush()},this.socket.onmessage=({data:n})=>{let o=typeof n=="string"&&Rd(n)?Rb(n):n;Tr(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=>{Tr(this.handler),this.handler({type:jg,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")},xb+Pb)}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=Ab(e,{maxDepth:15,...re.CHANNEL_OPTIONS});this.socket.send(t)}flush(){let{buffer:e}=this;this.buffer=[],e.forEach(t=>this.send(t))}},{CHANNEL_OPTIONS:OI,CONFIG_TYPE:xI}=re,PI=ks;function CI({page:e,extraTransports:t=[]}){let r=[new Ob({page:e}),...t];if(xI==="DEVELOPMENT"){let o=window.location.protocol==="http:"?"ws":"wss",{hostname:i,port:a}=window.location,{wsToken:s}=OI||{},c=`${o}://${i}:${a}/storybook-server-channel?token=${s}`;r.push(new Cb({url:c,onError:()=>{},page:e}))}let n=new ks({transports:r});return Nl.__prepare(n,e==="manager"?Nl.Environment.MANAGER:Nl.Environment.PREVIEW),n}var Nb={};Tt(Nb,{CalledExtractOnStoreError:()=>qb,CalledPreviewMethodBeforeInitializationError:()=>Rt,Category:()=>Mb,ElementA11yParameterError:()=>qI,EmptyIndexError:()=>Fb,ImplicitActionsDuringRendering:()=>kb,MdxFileWithNoCsfReferencesError:()=>$b,MissingRenderToCanvasError:()=>Lb,MissingStoryAfterHmrError:()=>jb,MissingStoryFromCsfFileError:()=>Ub,MountMustBeDestructuredError:()=>Od,NextJsSharpError:()=>II,NextjsRouterMocksNotAvailable:()=>MI,NoRenderFunctionError:()=>Hb,NoStoryMatchError:()=>Bb,NoStoryMountedError:()=>Vb,StatusTypeIdMismatchError:()=>NI,StoryIndexFetchError:()=>Db,StoryStoreAccessedBeforeInitializationError:()=>Jb,UnknownArgTypesError:()=>jI,UnsupportedViewportDimensionError:()=>kI});function kf({code:e,category:t}){let r=String(e).padStart(4,"0");return`SB_${t}_${r}`}function qf(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 Qe=class Ib extends Error{constructor(t){super(Ib.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 kf({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/${kf({code:r,category:n})}?ref=error`:typeof t=="string"?i=qf(t):Array.isArray(t)&&(i=`
39
+ ${t.map(a=>` - ${qf(a)}`).join(`
40
+ `)}`),`${o}${i!=null?`
41
+
42
+ More info: ${i}
43
+ `:""}`}},Mb=(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))(Mb||{}),jb=class extends Qe{constructor(e){super({name:"MissingStoryAfterHmrError",category:"PREVIEW_API",code:1,message:Te`
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}},kb=class extends Qe{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:Te`
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}},qb=class extends Qe{constructor(){super({name:"CalledExtractOnStoreError",category:"PREVIEW_API",code:3,message:Te`
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.`})}},Lb=class extends Qe{constructor(){super({name:"MissingRenderToCanvasError",category:"PREVIEW_API",code:4,message:Te`
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"})}},Rt=class extends Qe{constructor(e){super({name:"CalledPreviewMethodBeforeInitializationError",category:"PREVIEW_API",code:5,message:Te`
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}},Db=class extends Qe{constructor(e){super({name:"StoryIndexFetchError",category:"PREVIEW_API",code:6,message:Te`
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}},$b=class extends Qe{constructor(e){super({name:"MdxFileWithNoCsfReferencesError",category:"PREVIEW_API",code:7,message:Te`
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}},Fb=class extends Qe{constructor(){super({name:"EmptyIndexError",category:"PREVIEW_API",code:8,message:Te`
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.`})}},Bb=class extends Qe{constructor(e){super({name:"NoStoryMatchError",category:"PREVIEW_API",code:9,message:Te`
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}},Ub=class extends Qe{constructor(e){super({name:"MissingStoryFromCsfFileError",category:"PREVIEW_API",code:10,message:Te`
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}},Jb=class extends Qe{constructor(){super({name:"StoryStoreAccessedBeforeInitializationError",category:"PREVIEW_API",code:11,message:Te`
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`})}},Od=class extends Qe{constructor(e){super({name:"MountMustBeDestructuredError",category:"PREVIEW_API",code:12,message:Te`
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}},Hb=class extends Qe{constructor(e){super({name:"NoRenderFunctionError",category:"PREVIEW_API",code:14,message:Te`
125
+ No render function available for storyId '${e.id}'
126
+ `}),this.data=e}},Vb=class extends Qe{constructor(){super({name:"NoStoryMountedError",category:"PREVIEW_API",code:15,message:Te`
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
+ `})}},NI=class extends Qe{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}},II=class extends Qe{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:Te`
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
+ `})}},MI=class extends Qe{constructor(e){super({name:"NextjsRouterMocksNotAvailable",category:"FRAMEWORK_NEXTJS",code:2,message:Te`
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}},jI=class extends Qe{constructor(t){super({name:"UnknownArgTypesError",category:"DOCS-TOOLS",code:1,documentation:"https://github.com/storybookjs/storybook/issues/26606",message:Te`
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}},kI=class extends Qe{constructor(e){super({name:"UnsupportedViewportDimensionError",category:"ADDON_VITEST",code:1,message:Te`
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}},qI=class extends Qe{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.'})}},zb={};Tt(zb,{Addon_TypesEnum:()=>Gb,CoreWebpackCompiler:()=>Kb,Feature:()=>Qb,SupportedBuilder:()=>Xb,SupportedFramework:()=>Wb,SupportedLanguage:()=>Zb,SupportedRenderer:()=>Yb});var Gb=(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))(Gb||{}),Wb=(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))(Wb||{}),Yb=(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))(Yb||{}),Kb=(e=>(e.Babel="babel",e.SWC="swc",e))(Kb||{}),Xb=(e=>(e.WEBPACK5="webpack5",e.VITE="vite",e.RSBUILD="rsbuild",e))(Xb||{}),Qb=(e=>(e.DOCS="docs",e.TEST="test",e.ONBOARDING="onboarding",e.A11Y="a11y",e))(Qb||{}),Zb=(e=>(e.JAVASCRIPT="javascript",e.TYPESCRIPT="typescript",e))(Zb||{}),ev={};Tt(ev,{ADDON_ID:()=>$s,CLEAR_ID:()=>$I,CYCLIC_KEY:()=>FI,EVENT_ID:()=>tv,PANEL_ID:()=>DI,PARAM_KEY:()=>LI,action:()=>na,actions:()=>fV,config:()=>ki,configureActions:()=>cV});var LI="actions",$s="storybook/actions",DI=`${$s}/panel`,tv=`${$s}/action-event`,$I=`${$s}/action-clear`,FI="$___storybook.isCyclic",Mu={};Tt(Mu,{DocsContext:()=>nf,HooksContext:()=>xd,Preview:()=>q0,PreviewWeb:()=>eV,PreviewWithSelection:()=>L0,ReporterAPI:()=>rf,StoryStore:()=>j0,Tag:()=>hr,UrlStore:()=>U0,WebView:()=>H0,addons:()=>$t,applyHooks:()=>nv,combineArgs:()=>gs,combineParameters:()=>On,composeConfigs:()=>so,composeStepRunners:()=>P0,composeStories:()=>xH,composeStory:()=>M0,createPlaywrightTest:()=>PH,decorateStory:()=>w0,defaultDecorateStory:()=>T0,emitTransformCode:()=>uV,filterArgTypes:()=>x0,getCsfFactoryAnnotations:()=>I0,inferControls:()=>Zp,makeDecorator:()=>eM,mockChannel:()=>rv,normalizeArrays:()=>Le,normalizeProjectAnnotations:()=>vs,normalizeStory:()=>ci,pauseAnimations:()=>ef,prepareMeta:()=>S0,prepareStory:()=>Qp,sanitizeStoryContextUpdate:()=>_0,setDefaultProjectAnnotations:()=>_H,setProjectAnnotations:()=>RH,simulateDOMContentLoaded:()=>qc,simulatePageLoad:()=>oV,sortStoriesV7:()=>LH,useArgs:()=>QI,useCallback:()=>gi,useChannel:()=>KI,useEffect:()=>_n,useGlobals:()=>ZI,useMemo:()=>iv,useParameter:()=>XI,useReducer:()=>YI,useRef:()=>zI,useState:()=>WI,useStoryContext:()=>Bs,userOrAutoTitle:()=>jH,userOrAutoTitleFromSpecifier:()=>k0,waitForAnimations:()=>tf});function rv(){let e={setHandler:()=>{},send:()=>{}};return new ks({transport:e})}var BI=class{constructor(){this.getChannel=()=>{if(!this.channel){let e=rv();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())})}},kl="__STORYBOOK_ADDONS_PREVIEW";function UI(){return re[kl]||(re[kl]=new BI),re[kl]}var $t=UI(),xd=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(),$t.getChannel().on(Ya,this.renderListener)}removeRenderListeners(){$t.getChannel().removeListener(Ya,this.renderListener)}};function Lf(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=re.STORYBOOK_HOOKS_CONTEXT;re.STORYBOOK_HOOKS_CONTEXT=n;let l=e(...r);if(re.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,l};return t.originalFn=e,t}var ql=0,JI=25,nv=e=>(t,r)=>{let n=e(Lf(t),r.map(o=>Lf(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(ql=1;i.hasUpdates;)if(i.hasUpdates=!1,i.currentEffects=[],a=n(o),ql+=1,ql>JI)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return i.addRenderListeners(),a}},HI=(e,t)=>e.length===t.length&&e.every((r,n)=>r===t[n]),Pd=()=>new Error("Storybook preview hooks can only be called inside decorators and story functions.");function ov(){return re.STORYBOOK_HOOKS_CONTEXT||null}function Cd(){let e=ov();if(e==null)throw Pd();return e}function VI(e,t,r){let n=Cd();if(n.currentPhase==="MOUNT"){r!=null&&!Array.isArray(r)&&$e.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&&$e.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&&$e.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&&$e.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||!HI(r,o.deps))&&(t(o),o.deps=r),o}throw Pd()}function Fs(e,t,r){let{memoizedState:n}=VI(e,o=>{o.memoizedState=t()},r);return n}function iv(e,t){return Fs("useMemo",e,t)}function gi(e,t){return Fs("useCallback",()=>e,t)}function av(e,t){return Fs(e,()=>({current:t}),[])}function zI(e){return av("useRef",e)}function GI(){let e=ov();if(e!=null&&e.currentPhase!=="NONE")e.hasUpdates=!0;else try{$t.getChannel().emit(cd)}catch{$e.warn("State updates of Storybook preview hooks work only in browser")}}function sv(e,t){let r=av(e,typeof t=="function"?t():t),n=o=>{r.current=typeof o=="function"?o(r.current):o,GI()};return[r.current,n]}function WI(e){return sv("useState",e)}function YI(e,t,r){let n=r!=null?()=>r(t):t,[o,i]=sv("useReducer",n);return[o,a=>i(s=>e(s,a))]}function _n(e,t){let r=Cd(),n=Fs("useEffect",()=>({create:e}),t);r.currentEffects.includes(n)||r.currentEffects.push(n)}function KI(e,t=[]){let r=$t.getChannel();return _n(()=>(Object.entries(e).forEach(([n,o])=>r.on(n,o)),()=>{Object.entries(e).forEach(([n,o])=>r.removeListener(n,o))}),[...Object.keys(e),...t]),gi(r.emit.bind(r),[r])}function Bs(){let{currentContext:e}=Cd();if(e==null)throw Pd();return e}function XI(e,t){let{parameters:r}=Bs();if(e)return r[e]??t}function QI(){let e=$t.getChannel(),{id:t,args:r}=Bs(),n=gi(i=>e.emit(md,{storyId:t,updatedArgs:i}),[e,t]),o=gi(i=>e.emit(dd,{storyId:t,argNames:i}),[e,t]);return[r,n,o]}function ZI(){let e=$t.getChannel(),{globals:t}=Bs(),r=gi(n=>e.emit(fd,{globals:n}),[e]);return[t,r]}var eM=({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 tM(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 Df=We(aA(),1),lv=e=>e.map(t=>typeof t<"u").filter(Boolean).length,rM=(e,t)=>{let{exists:r,eq:n,neq:o,truthy:i}=e;if(lv([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,Df.isEqual)(t,n);if(typeof o<"u")return!(0,Df.isEqual)(t,o);if(typeof r<"u"){let a=typeof t<"u";return r?a:!a}return typeof i>"u"||i?!!t:!t},nM=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:o}=e.if;if(lv([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);let i=n?t[n]:r[o];return rM(e.if,i)};function oM(e){return e!=null&&iM(e).includes("mount")}function iM(e){let[,t,r]=e.toString().match(/[^(]*\(([^)]+)\)(?:.*{([^]+)})?/)||[];if(!t)return[];let[n]=Ll(t);if(!n)return[];let[,o]=n.match(/^{([^]+)}$/)||[];if(o)return Ll($f(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?Ll($f(a)).map(s=>s.replace(/:.*|=.*/g,"").trim()):[]}function $f(e){return e=e.replace(/\/\/.*$/gm,""),e=e.replace(/\/\*[\s\S]*?\*\//g,""),e}function Ll(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 hr={AUTODOCS:"autodocs",ATTACHED_MDX:"attached-mdx",UNATTACHED_MDX:"unattached-mdx",PLAY_FN:"play-fn",TEST_FN:"test-fn",DEV:"dev",TEST:"test",MANIFEST:"manifest"},uv={};Tt(uv,{argsEnhancers:()=>lM});var cv=(e,t)=>typeof t[e]>"u"&&!(e in t),aM=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])=>(cv(s,t)&&(a[s]=na(s,{implicit:!0,id:n})),a),{})},sM=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])=>(cv(i,t)&&(o[i]=na(typeof a.action=="string"?a.action:i)),o),{})},lM=[sM,aM],dv={};Tt(dv,{loaders:()=>d3});var pv={};Tt(pv,{buildQueries:()=>H5,clearAllMocks:()=>Xw,configure:()=>V5,createEvent:()=>z5,expect:()=>l3,findAllByAltText:()=>W5,findAllByDisplayValue:()=>Y5,findAllByLabelText:()=>K5,findAllByPlaceholderText:()=>X5,findAllByRole:()=>Q5,findAllByTestId:()=>Z5,findAllByText:()=>eU,findAllByTitle:()=>tU,findByAltText:()=>rU,findByDisplayValue:()=>nU,findByLabelText:()=>oU,findByPlaceholderText:()=>iU,findByRole:()=>aU,findByTestId:()=>sU,findByText:()=>lU,findByTitle:()=>uU,fireEvent:()=>G5,fn:()=>Yw,getAllByAltText:()=>cU,getAllByDisplayValue:()=>dU,getAllByLabelText:()=>pU,getAllByPlaceholderText:()=>fU,getAllByRole:()=>mU,getAllByTestId:()=>hU,getAllByText:()=>yU,getAllByTitle:()=>gU,getByAltText:()=>bU,getByDisplayValue:()=>vU,getByLabelText:()=>EU,getByPlaceholderText:()=>wU,getByRole:()=>_U,getByTestId:()=>TU,getByText:()=>SU,getByTitle:()=>AU,getConfig:()=>RU,getDefaultNormalizer:()=>OU,getElementError:()=>xU,getNodeText:()=>PU,getQueriesForElement:()=>CU,getRoles:()=>NU,getSuggestedQuery:()=>IU,isInaccessible:()=>MU,isMockFunction:()=>Vn,logDOM:()=>jU,logRoles:()=>kU,mocked:()=>g$,mocks:()=>Qi,onMockCall:()=>Ww,prettyDOM:()=>qU,prettyFormat:()=>a3,queries:()=>LU,queryAllByAltText:()=>DU,queryAllByAttribute:()=>$U,queryAllByDisplayValue:()=>FU,queryAllByLabelText:()=>BU,queryAllByPlaceholderText:()=>UU,queryAllByRole:()=>JU,queryAllByTestId:()=>HU,queryAllByText:()=>VU,queryAllByTitle:()=>zU,queryByAltText:()=>GU,queryByAttribute:()=>WU,queryByDisplayValue:()=>YU,queryByLabelText:()=>KU,queryByPlaceholderText:()=>XU,queryByRole:()=>QU,queryByTestId:()=>ZU,queryByText:()=>e3,queryByTitle:()=>t3,queryHelpers:()=>r3,resetAllMocks:()=>Qw,restoreAllMocks:()=>Zw,sb:()=>u3,screen:()=>n3,spyOn:()=>y$,uninstrumentedUserEvent:()=>d0,userEvent:()=>s3,waitFor:()=>o3,waitForElementToBeRemoved:()=>i3,within:()=>c0});var uM={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]},fv=Object.entries(uM);function Us(e){return String(e)}Us.open="";Us.close="";fv.reduce((e,[t])=>(e[t]=Us,e),{isColorSupported:!1});function cM(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 dM(e=!1){let t=cM(e),r=(a,s,c,l)=>{let d="",p=0;do d+=a.substring(p,l)+c,p=l+s.length,l=a.indexOf(s,p);while(~l);return d+a.substring(p)},n=(a,s,c=a)=>{let l=d=>{let p=String(d),f=p.indexOf(s,a.length);return~f?a+r(p,s,c,f)+s:a+p+s};return l.open=a,l.close=s,l},o={isColorSupported:t},i=a=>`\x1B[${a}m`;for(let[a,s]of fv)o[a]=t?n(i(s[0]),i(s[1]),s[2]):Us;return o}var yr=dM();function mv(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 pM(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 Vi(e,t,r,n,o,i,a=": "){let s="",c=0,l=e.next();if(!l.done){s+=t.spacingOuter;let d=r+t.indent;for(;!l.done;){if(s+=d,c++===t.maxWidth){s+="…";break}let p=i(l.value[0],t,d,n,o),f=i(l.value[1],t,d,n,o);s+=p+a+f,l=e.next(),l.done?t.min||(s+=","):s+=`,${t.spacingInner}`}s+=t.spacingOuter+r}return s}function Nd(e,t,r,n,o,i){let a="",s=0,c=e.next();if(!c.done){a+=t.spacingOuter;let l=r+t.indent;for(;!c.done;){if(a+=l,s++===t.maxWidth){a+="…";break}a+=i(c.value,t,l,n,o),c=e.next(),c.done?t.min||(a+=","):a+=`,${t.spacingInner}`}a+=t.spacingOuter+r}return a}function Ka(e,t,r,n,o,i){let a="";e=e instanceof ArrayBuffer?new DataView(e):e;let s=l=>l instanceof DataView,c=s(e)?e.byteLength:e.length;if(c>0){a+=t.spacingOuter;let l=r+t.indent;for(let d=0;d<c;d++){if(a+=l,d===t.maxWidth){a+="…";break}(s(e)||d in e)&&(a+=i(s(e)?e.getInt8(d):e[d],t,l,n,o)),d<c-1?a+=`,${t.spacingInner}`:t.min||(a+=",")}a+=t.spacingOuter+r}return a}function Id(e,t,r,n,o,i){let a="",s=pM(e,t.compareKeys);if(s.length>0){a+=t.spacingOuter;let c=r+t.indent;for(let l=0;l<s.length;l++){let d=s[l],p=i(d,t,c,n,o),f=i(e[d],t,c,n,o);a+=`${c+p}: ${f}`,l<s.length-1?a+=`,${t.spacingInner}`:t.min||(a+=",")}a+=t.spacingOuter+r}return a}var fM=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,Dl=" ",mM=(e,t,r,n,o,i)=>{let a=e.toString();if(a==="ArrayContaining"||a==="ArrayNotContaining")return++n>t.maxDepth?`[${a}]`:`${a+Dl}[${Ka(e.sample,t,r,n,o,i)}]`;if(a==="ObjectContaining"||a==="ObjectNotContaining")return++n>t.maxDepth?`[${a}]`:`${a+Dl}{${Id(e.sample,t,r,n,o,i)}}`;if(a==="StringMatching"||a==="StringNotMatching"||a==="StringContaining"||a==="StringNotContaining")return a+Dl+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()},hM=e=>e&&e.$$typeof===fM,yM={serialize:mM,test:hM},gM=" ",hv=new Set(["DOMStringMap","NamedNodeMap"]),bM=/^(?:HTML\w*Collection|NodeList)$/;function vM(e){return hv.has(e)||bM.test(e)}var EM=e=>e&&e.constructor&&!!e.constructor.name&&vM(e.constructor.name);function wM(e){return e.constructor.name==="NamedNodeMap"}var _M=(e,t,r,n,o,i)=>{let a=e.constructor.name;return++n>t.maxDepth?`[${a}]`:(t.min?"":a+gM)+(hv.has(a)?`{${Id(wM(e)?[...e].reduce((s,c)=>(s[c.name]=c.value,s),{}):{...e},t,r,n,o,i)}}`:`[${Ka([...e],t,r,n,o,i)}]`)},TM={serialize:_M,test:EM};function yv(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}function Md(e,t,r,n,o,i,a){let s=n+r.indent,c=r.colors;return e.map(l=>{let d=t[l],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+l+c.prop.close}=${c.value.open}${p}${c.value.close}`}).join("")}function jd(e,t,r,n,o,i){return e.map(a=>t.spacingOuter+r+(typeof a=="string"?gv(a,t):i(a,t,r,n,o))).join("")}function gv(e,t){let r=t.colors.content;return r.open+yv(e)+r.close}function SM(e,t){let r=t.colors.comment;return`${r.open}<!--${yv(e)}-->${r.close}`}function kd(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 qd(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`}var AM=1,bv=3,vv=8,Ev=11,RM=/^(?:(?:HTML|SVG)\w*)?Element$/;function OM(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function xM(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,o=typeof n=="string"&&n.includes("-")||OM(e);return r===AM&&(RM.test(t)||o)||r===bv&&t==="Text"||r===vv&&t==="Comment"||r===Ev&&t==="DocumentFragment"}var PM=e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&xM(e)};function CM(e){return e.nodeType===bv}function NM(e){return e.nodeType===vv}function $l(e){return e.nodeType===Ev}var IM=(e,t,r,n,o,i)=>{if(CM(e))return gv(e.data,t);if(NM(e))return SM(e.data,t);let a=$l(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?qd(a,t):kd(a,Md($l(e)?[]:Array.from(e.attributes,s=>s.name).sort(),$l(e)?{}:[...e.attributes].reduce((s,c)=>(s[c.name]=c.value,s),{}),t,r+t.indent,n,o,i),jd(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,o,i),t,r)},MM={serialize:IM,test:PM},jM="@@__IMMUTABLE_ITERABLE__@@",kM="@@__IMMUTABLE_LIST__@@",qM="@@__IMMUTABLE_KEYED__@@",LM="@@__IMMUTABLE_MAP__@@",Ff="@@__IMMUTABLE_ORDERED__@@",DM="@@__IMMUTABLE_RECORD__@@",$M="@@__IMMUTABLE_SEQ__@@",FM="@@__IMMUTABLE_SET__@@",BM="@@__IMMUTABLE_STACK__@@",Yn=e=>`Immutable.${e}`,Js=e=>`[${e}]`,bi=" ",Bf="…";function UM(e,t,r,n,o,i,a){return++n>t.maxDepth?Js(Yn(a)):`${Yn(a)+bi}{${Vi(e.entries(),t,r,n,o,i)}}`}function JM(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 HM(e,t,r,n,o,i){let a=Yn(e._name||"Record");return++n>t.maxDepth?Js(a):`${a+bi}{${Vi(JM(e),t,r,n,o,i)}}`}function VM(e,t,r,n,o,i){let a=Yn("Seq");return++n>t.maxDepth?Js(a):e[qM]?`${a+bi}{${e._iter||e._object?Vi(e.entries(),t,r,n,o,i):Bf}}`:`${a+bi}[${e._iter||e._array||e._collection||e._iterable?Nd(e.values(),t,r,n,o,i):Bf}]`}function Fl(e,t,r,n,o,i,a){return++n>t.maxDepth?Js(Yn(a)):`${Yn(a)+bi}[${Nd(e.values(),t,r,n,o,i)}]`}var zM=(e,t,r,n,o,i)=>e[LM]?UM(e,t,r,n,o,i,e[Ff]?"OrderedMap":"Map"):e[kM]?Fl(e,t,r,n,o,i,"List"):e[FM]?Fl(e,t,r,n,o,i,e[Ff]?"OrderedSet":"Set"):e[BM]?Fl(e,t,r,n,o,i,"Stack"):e[$M]?VM(e,t,r,n,o,i):HM(e,t,r,n,o,i),GM=e=>e&&(e[jM]===!0||e[DM]===!0),WM={serialize:zM,test:GM};function wv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Uf={exports:{}},ke={},Jf;function YM(){if(Jf)return ke;Jf=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"),l=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function y(g){if(typeof g=="object"&&g!==null){var v=g.$$typeof;switch(v){case e:switch(g=g.type,g){case r:case o:case n:case c:case l: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 v}}case t:return v}}}return ke.ContextConsumer=i,ke.ContextProvider=a,ke.Element=e,ke.ForwardRef=s,ke.Fragment=r,ke.Lazy=p,ke.Memo=d,ke.Portal=t,ke.Profiler=o,ke.StrictMode=n,ke.Suspense=c,ke.SuspenseList=l,ke.isContextConsumer=function(g){return y(g)===i},ke.isContextProvider=function(g){return y(g)===a},ke.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},ke.isForwardRef=function(g){return y(g)===s},ke.isFragment=function(g){return y(g)===r},ke.isLazy=function(g){return y(g)===p},ke.isMemo=function(g){return y(g)===d},ke.isPortal=function(g){return y(g)===t},ke.isProfiler=function(g){return y(g)===o},ke.isStrictMode=function(g){return y(g)===n},ke.isSuspense=function(g){return y(g)===c},ke.isSuspenseList=function(g){return y(g)===l},ke.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===o||g===n||g===c||g===l||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===d||g.$$typeof===a||g.$$typeof===i||g.$$typeof===s||g.$$typeof===m||g.getModuleId!==void 0)},ke.typeOf=y,ke}var Hf;function KM(){return Hf||(Hf=1,Uf.exports=YM()),Uf.exports}var _v=KM(),XM=wv(_v),QM=mv({__proto__:null,default:XM},[_v]),Vf={exports:{}},Ie={},zf;function ZM(){if(zf)return Ie;zf=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"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function g(v){if(typeof v=="object"&&v!==null){var b=v.$$typeof;switch(b){case e:switch(v=v.type,v){case r:case o:case n:case l:case d:return v;default:switch(v=v&&v.$$typeof,v){case s:case a:case c:case f:case p:case i:return v;default:return b}}case t:return b}}}return Ie.ContextConsumer=a,Ie.ContextProvider=i,Ie.Element=e,Ie.ForwardRef=c,Ie.Fragment=r,Ie.Lazy=f,Ie.Memo=p,Ie.Portal=t,Ie.Profiler=o,Ie.StrictMode=n,Ie.Suspense=l,Ie.SuspenseList=d,Ie.isAsyncMode=function(){return!1},Ie.isConcurrentMode=function(){return!1},Ie.isContextConsumer=function(v){return g(v)===a},Ie.isContextProvider=function(v){return g(v)===i},Ie.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},Ie.isForwardRef=function(v){return g(v)===c},Ie.isFragment=function(v){return g(v)===r},Ie.isLazy=function(v){return g(v)===f},Ie.isMemo=function(v){return g(v)===p},Ie.isPortal=function(v){return g(v)===t},Ie.isProfiler=function(v){return g(v)===o},Ie.isStrictMode=function(v){return g(v)===n},Ie.isSuspense=function(v){return g(v)===l},Ie.isSuspenseList=function(v){return g(v)===d},Ie.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===o||v===n||v===l||v===d||v===m||typeof v=="object"&&v!==null&&(v.$$typeof===f||v.$$typeof===p||v.$$typeof===i||v.$$typeof===a||v.$$typeof===c||v.$$typeof===y||v.getModuleId!==void 0)},Ie.typeOf=g,Ie}var Gf;function ej(){return Gf||(Gf=1,Vf.exports=ZM()),Vf.exports}var Tv=ej(),tj=wv(Tv),rj=mv({__proto__:null,default:tj},[Tv]),nj=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],pn=Object.fromEntries(nj.map(e=>[e,t=>rj[e](t)||QM[e](t)]));function Sv(e,t=[]){if(Array.isArray(e))for(let r of e)Sv(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function Wf(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(pn.isFragment(e))return"React.Fragment";if(pn.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(pn.isContextProvider(e))return"Context.Provider";if(pn.isContextConsumer(e))return"Context.Consumer";if(pn.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(pn.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}function oj(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}var ij=(e,t,r,n,o,i)=>++n>t.maxDepth?qd(Wf(e),t):kd(Wf(e),Md(oj(e),e.props,t,r+t.indent,n,o,i),jd(Sv(e.props.children),t,r+t.indent,n,o,i),t,r),aj=e=>e!=null&&pn.isElement(e),sj={serialize:ij,test:aj},lj=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function uj(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}var cj=(e,t,r,n,o,i)=>++n>t.maxDepth?qd(e.type,t):kd(e.type,e.props?Md(uj(e),e.props,t,r+t.indent,n,o,i):"",e.children?jd(e.children,t,r+t.indent,n,o,i):"",t,r),dj=e=>e&&e.$$typeof===lj,pj={serialize:cj,test:dj},Av=Object.prototype.toString,fj=Date.prototype.toISOString,mj=Error.prototype.toString,Yf=RegExp.prototype.toString;function Ca(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function hj(e){return typeof window<"u"&&e===window}var yj=/^Symbol\((.*)\)(.*)$/,gj=/\n/g,Rv=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function bj(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 vj(e){return Object.is(e,-0)?"-0":String(e)}function Ej(e){return`${e}n`}function Kf(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function Xf(e){return String(e).replace(yj,"Symbol($1)")}function Qf(e){return`[${mj.call(e)}]`}function Ov(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 vj(e);if(o==="bigint")return Ej(e);if(o==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return Kf(e,t);if(o==="symbol")return Xf(e);let i=Av.call(e);return i==="[object WeakMap]"?"WeakMap {}":i==="[object WeakSet]"?"WeakSet {}":i==="[object Function]"||i==="[object GeneratorFunction]"?Kf(e,t):i==="[object Symbol]"?Xf(e):i==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":fj.call(e):i==="[object Error]"?Qf(e):i==="[object RegExp]"?r?Yf.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):Yf.call(e):e instanceof Error?Qf(e):null}function xv(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 Dr(e.toJSON(),t,r,n,o,!0);let c=Av.call(e);return c==="[object Arguments]"?a?"[Arguments]":`${s?"":"Arguments "}[${Ka(e,t,r,n,o,Dr)}]`:bj(c)?a?`[${e.constructor.name}]`:`${s||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${Ka(e,t,r,n,o,Dr)}]`:c==="[object Map]"?a?"[Map]":`Map {${Vi(e.entries(),t,r,n,o,Dr," => ")}}`:c==="[object Set]"?a?"[Set]":`Set {${Nd(e.values(),t,r,n,o,Dr)}}`:a||hj(e)?`[${Ca(e)}]`:`${s||!t.printBasicPrototype&&Ca(e)==="Object"?"":`${Ca(e)} `}{${Id(e,t,r,n,o,Dr)}}`}var wj={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,...l}=e,d={message:s,...typeof c<"u"?{cause:c}:{},...e instanceof AggregateError?{errors:e.errors}:{},...l},p=e.name!=="Error"?e.name:Ca(e);return a?`[${p}]`:`${p} {${Vi(Object.entries(d).values(),t,r,n,o,i)}}`}};function _j(e){return e.serialize!=null}function Pv(e,t,r,n,o,i){let a;try{a=_j(e)?e.serialize(t,r,n,o,i,Dr):e.print(t,s=>Dr(s,r,n,o,i),s=>{let c=n+r.indent;return c+s.replaceAll(gj,`
167
+ ${c}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(s){throw new Rv(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 Cv(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new Rv(n.message,n.stack)}return null}function Dr(e,t,r,n,o,i){let a=Cv(t.plugins,e);if(a!==null)return Pv(a,e,t,r,n,o);let s=Ov(e,t.printFunctionName,t.escapeRegex,t.escapeString);return s!==null?s:xv(e,t,r,n,o,i)}var Ld={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},Nv=Object.keys(Ld),Ht={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:Ld};function Tj(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(Ht,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 Sj(){return Nv.reduce((e,t)=>{let r=Ld[t],n=r&&yr[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 Aj(){return Nv.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function Iv(e){return e?.printFunctionName??Ht.printFunctionName}function Mv(e){return e?.escapeRegex??Ht.escapeRegex}function jv(e){return e?.escapeString??Ht.escapeString}function Zf(e){return{callToJSON:e?.callToJSON??Ht.callToJSON,colors:e?.highlight?Sj():Aj(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:Ht.compareKeys,escapeRegex:Mv(e),escapeString:jv(e),indent:e?.min?"":Rj(e?.indent??Ht.indent),maxDepth:e?.maxDepth??Ht.maxDepth,maxWidth:e?.maxWidth??Ht.maxWidth,min:e?.min??Ht.min,plugins:e?.plugins??Ht.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:Iv(e),spacingInner:e?.min?" ":`
168
+ `,spacingOuter:e?.min?"":`
169
+ `}}function Rj(e){return Array.from({length:e+1}).join(" ")}function nr(e,t){if(t&&(Tj(t),t.plugins)){let n=Cv(t.plugins,e);if(n!==null)return Pv(n,e,Zf(t),"",0,[])}let r=Ov(e,Iv(t),Mv(t),jv(t));return r!==null?r:xv(e,Zf(t),"",0,[])}var Dd={AsymmetricMatcher:yM,DOMCollection:TM,DOMElement:MM,Immutable:WM,ReactElement:sj,ReactTestComponent:pj,Error:wj},em={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"]},Oj={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Kn="…";function xj(e,t){let r=em[Oj[t]]||em[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}function Pj({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:l=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:l};return p.colors&&(p.stylize=xj),p}function Cj(e){return e>="\uD800"&&e<="\uDBFF"}function Xr(e,t,r=Kn){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&&Cj(e[i-1])&&(i=i-1),`${e.slice(0,i)}${r}`}return e}function Yt(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 l=0;l<o;l+=1){let d=l+1===e.length,p=l+2===e.length;c=`${Kn}(${e.length-l})`;let f=e[l];t.truncate=i-a.length-(d?0:n.length);let m=s||r(f,t)+(d?"":n),y=a.length+m.length,g=y+c.length;if(d&&y>i&&a.length+c.length<=i||!d&&!p&&g>i||(s=d?"":r(e[l+1],t)+(p?"":n),!d&&p&&g>i&&y+s.length>i))break;if(a+=m,!d&&!p&&y+s.length>=i){c=`${Kn}(${e.length-l-1})`;break}c=""}return`${a}${c}`}function Nj(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function vi([e,t],r){return r.truncate-=2,typeof e=="string"?e=Nj(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}function Ij(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=Yt(e,t);t.truncate-=n.length;let o="";return r.length&&(o=Yt(r.map(i=>[i,e[i]]),t,vi)),`[ ${n}${o?`, ${o}`:""} ]`}var Mj=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function cr(e,t){let r=Mj(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(Xr(e[a],t.truncate),"number")}${a===e.length-1?"":", "}`;if(t.truncate-=s.length,e[a]!==e.length&&t.truncate<=3){o+=`${Kn}(${e.length-e[a]+1})`;break}o+=s}let i="";return n.length&&(i=Yt(n.map(a=>[a,e[a]]),t,vi)),`${r}[ ${o}${i?`, ${i}`:""} ]`}function jj(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${Xr(n[1],t.truncate-o.length-1)}`,"date")}function tm(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${Xr(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}function kj([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}function qj(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}function Lj(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Yt(qj(e),t,kj)} }`)}var Dj=Number.isNaN||(e=>e!==e);function rm(e,t){return Dj(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(Xr(String(e),t.truncate),"number")}function nm(e,t){let r=Xr(e.toString(),t.truncate-1);return r!==Kn&&(r+="n"),t.stylize(r,"bigint")}function $j(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${Xr(o,n)}/${r}`,"regexp")}function Fj(e){let t=[];return e.forEach(r=>{t.push(r)}),t}function Bj(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Yt(Fj(e),t)} }`)}var om=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),Uj={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},Jj=16;function Hj(e){return Uj[e]||`\\u${`0000${e.charCodeAt(0).toString(Jj)}`.slice(-4)}`}function im(e,t){return om.test(e)&&(e=e.replace(om,Hj)),t.stylize(`'${Xr(e,t.truncate-2)}'`,"string")}function am(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var kv=()=>"Promise{…}";try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(kv=(n,o)=>{let[i,a]=e(n);return i===t?"Promise{<pending>}":`Promise${i===r?"!":""}{${o.inspect(a,o)}}`})}catch{}var Vj=kv;function Na(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=Yt(r.map(s=>[s,e[s]]),t,vi),i=Yt(n.map(s=>[s,e[s]]),t,vi);t.seen.pop();let a="";return o&&i&&(a=", "),`{ ${o}${a}${i} }`}var Bl=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function zj(e,t){let r="";return Bl&&Bl in e&&(r=e[Bl]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${Na(e,t)}`}function Gj(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Yt(e,t)} ]`)}var Wj=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Yj(e,t){let r=Object.getOwnPropertyNames(e).filter(a=>Wj.indexOf(a)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=Xr(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=Yt(r.map(a=>[a,e[a]]),t,vi);return`${n}${o}${i?` { ${i} }`:""}`}function Kj([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}function ju(e,t){return Yt(e,t,Xj,`
170
+ `)}function Xj(e,t){switch(e.nodeType){case 1:return qv(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function qv(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+=Yt(r.map(d=>[d,e.getAttribute(d)]),t,Kj," ")),t.truncate-=s.length;let c=t.truncate,l=ju(e.children,t);return l&&l.length>c&&(l=`${Kn}(${e.children.length})`),`${o}${s}${i}${l}${a}`}var Qj=typeof Symbol=="function"&&typeof Symbol.for=="function",Ul=Qj?Symbol.for("chai/inspect"):"@@chai/inspect",Jl=Symbol.for("nodejs.util.inspect.custom"),sm=new WeakMap,lm={},um={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:rm,Number:rm,bigint:nm,BigInt:nm,string:im,String:im,function:tm,Function:tm,symbol:am,Symbol:am,Array:Ij,Date:jj,Map:Lj,Set:Bj,RegExp:$j,Promise:Vj,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:Gj,Int8Array:cr,Uint8Array:cr,Uint8ClampedArray:cr,Int16Array:cr,Uint16Array:cr,Int32Array:cr,Uint32Array:cr,Float32Array:cr,Float64Array:cr,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:Yj,HTMLCollection:ju,NodeList:ju},Zj=(e,t,r)=>Ul in e&&typeof e[Ul]=="function"?e[Ul](t):Jl in e&&typeof e[Jl]=="function"?e[Jl](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&sm.has(e.constructor)?sm.get(e.constructor)(e,t):lm[r]?lm[r](e,t):"",ek=Object.prototype.toString;function ku(e,t={}){let r=Pj(t,ku),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=ek.call(e).slice(8,-1)),o in um)return um[o](e,r);if(n&&e){let a=Zj(e,r,o);if(a)return typeof a=="string"?a:ku(a,r)}let i=e?Object.getPrototypeOf(e):!1;return i===Object.prototype||i===null?Na(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?qv(e,r):"constructor"in e?e.constructor!==Object?zj(e,r):Na(e,r):e===Object(e)?Na(e,r):r.stylize(String(e),o)}var{AsymmetricMatcher:tk,DOMCollection:rk,DOMElement:nk,Immutable:ok,ReactElement:ik,ReactTestComponent:ak}=Dd,cm=[ak,ik,nk,rk,ok,tk];function Nt(e,t=10,{maxLength:r,...n}={}){let o=r??1e4,i;try{i=nr(e,{maxDepth:t,escapeString:!1,plugins:cm,...n})}catch{i=nr(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:cm,...n})}return i.length>=o&&t>1?Nt(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...n}):i}var sk=/%[sdjifoOc%]/g;function lk(...e){if(typeof e[0]!="string"){let i=[];for(let a=0;a<e.length;a++)i.push(Ho(e[a],{depth:0,colors:!1}));return i.join(" ")}let t=e.length,r=1,n=e[0],o=String(n).replace(sk,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():Ho(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 Ho(e[r++],{showHidden:!0,showProxy:!0});case"%O":return Ho(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+=` ${Ho(i)}`;return o}function Ho(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),ku(e,t)}function Lv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function dr(e,t,r){let n=typeof e;if(!r.includes(n))throw new TypeError(`${t} value must be ${r.join(" or ")}, received "${n}"`)}function Ia(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function uk(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function Xa(e){return Object.prototype.toString.apply(e).slice(8,-1)}function ck(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}function Dv(e){let t=new Set;return uk(e)?[]:(ck(e,t),Array.from(t))}var $v={forceWritable:!1};function dm(e,t=$v){return qu(e,new WeakMap,t)}function qu(e,t,r=$v){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]=qu(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=Dv(e);for(let a of i){let s=Object.getOwnPropertyDescriptor(e,a);if(!s)continue;let c=qu(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 dk(){}var pt=-1,st=1,ze=0,He=class{0;1;constructor(e,t){this[0]=e,this[1]=t}};function pk(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 Fv(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 pm(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 fk(e){let t=!1,r=[],n=0,o=null,i=0,a=0,s=0,c=0,l=0;for(;i<e.length;)e[i][0]===ze?(r[n++]=i,a=c,s=l,c=0,l=0,o=e[i][1]):(e[i][0]===st?c+=e[i][1].length:l+=e[i][1].length,o&&o.length<=Math.max(a,s)&&o.length<=Math.max(c,l)&&(e.splice(r[n-1],0,new He(pt,o)),e[r[n-1]+1][0]=st,n--,n--,i=n>0?r[n-1]:-1,a=0,s=0,c=0,l=0,o=null,t=!0)),i++;for(t&&Bv(e),yk(e),i=1;i<e.length;){if(e[i-1][0]===pt&&e[i][0]===st){let d=e[i-1][1],p=e[i][1],f=pm(d,p),m=pm(p,d);f>=m?(f>=d.length/2||f>=p.length/2)&&(e.splice(i,0,new He(ze,p.substring(0,f))),e[i-1][1]=d.substring(0,d.length-f),e[i+1][1]=p.substring(f),i++):(m>=d.length/2||m>=p.length/2)&&(e.splice(i,0,new He(ze,d.substring(0,m))),e[i-1][0]=st,e[i-1][1]=p.substring(0,p.length-m),e[i+1][0]=pt,e[i+1][1]=d.substring(m),i++),i++}i++}}var fm=/[^a-z0-9]/i,mm=/\s/,hm=/[\r\n]/,mk=/\n\r?\n$/,hk=/^\r?\n\r?\n/;function yk(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===ze&&e[t+1][0]===ze){let r=e[t-1][1],n=e[t][1],o=e[t+1][1],i=Fv(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,l=da(r,n)+da(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=da(r,n)+da(n,o);d>=l&&(l=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 Bv(e){e.push(new He(ze,""));let t=0,r=0,n=0,o="",i="",a;for(;t<e.length;)switch(e[t][0]){case st:n++,i+=e[t][1],t++;break;case pt:r++,o+=e[t][1],t++;break;case ze:r+n>1?(r!==0&&n!==0&&(a=pk(i,o),a!==0&&(t-r-n>0&&e[t-r-n-1][0]===ze?e[t-r-n-1][1]+=i.substring(0,a):(e.splice(0,0,new He(ze,i.substring(0,a))),t++),i=i.substring(a),o=o.substring(a)),a=Fv(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 He(pt,o)),t++),i.length&&(e.splice(t,0,new He(st,i)),t++),t++):t!==0&&e[t-1][0]===ze?(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]===ze&&e[t+1][0]===ze&&(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&&Bv(e)}function da(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),n=t.charAt(0),o=r.match(fm),i=n.match(fm),a=o&&r.match(mm),s=i&&n.match(mm),c=a&&r.match(hm),l=s&&n.match(hm),d=c&&e.match(mk),p=l&&t.match(hk);return d||p?5:c||l?4:o&&!a&&s?3:a||s?2:o||i?1:0}var Uv="Compared values have no visual difference.",gk="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",pa={},ym;function bk(){if(ym)return pa;ym=1,Object.defineProperty(pa,"__esModule",{value:!0}),pa.default=f;let e="diff-sequences",t=0,r=(m,y,g,v,b)=>{let T=0;for(;m<y&&g<v&&b(m,g);)m+=1,g+=1,T+=1;return T},n=(m,y,g,v,b)=>{let T=0;for(;m<=y&&g<=v&&b(y,v);)y-=1,v-=1,T+=1;return T},o=(m,y,g,v,b,T,R)=>{let x=0,C=-m,E=T[x],_=E;T[x]+=r(E+1,y,v+E-C+1,g,b);let S=m<R?m:R;for(x+=1,C+=2;x<=S;x+=1,C+=2){if(x!==m&&_<T[x])E=T[x];else if(E=_+1,y<=E)return x-1;_=T[x],T[x]=E+r(E+1,y,v+E-C+1,g,b)}return R},i=(m,y,g,v,b,T,R)=>{let x=0,C=m,E=T[x],_=E;T[x]-=n(y,E-1,g,v+E-C-1,b);let S=m<R?m:R;for(x+=1,C-=2;x<=S;x+=1,C-=2){if(x!==m&&T[x]<_)E=T[x];else if(E=_-1,E<y)return x-1;_=T[x],T[x]=E-n(y,E-1,g,v+E-C-1,b)}return R},a=(m,y,g,v,b,T,R,x,C,E,_)=>{let S=v-y,A=g-y,$=b-v-A,k=-$-(m-1),H=-$+(m-1),I=t,O=m<x?m:x;for(let q=0,F=-m;q<=O;q+=1,F+=2){let V=q===0||q!==m&&I<R[q],K=V?R[q]:I,oe=V?K:K+1,ue=S+oe-F,L=r(oe+1,g,ue+1,b,T),D=oe+L;if(I=R[q],R[q]=D,k<=F&&F<=H){let G=(m-1-(F+$))/2;if(G<=E&&C[G]-1<=D){let Q=S+K-(V?F+1:F-1),X=n(y,K,v,Q,T),Y=K-X,ie=Q-X,se=Y+1,_e=ie+1;_.nChangePreceding=m-1,m-1===se+_e-y-v?(_.aEndPreceding=y,_.bEndPreceding=v):(_.aEndPreceding=se,_.bEndPreceding=_e),_.nCommonPreceding=X,X!==0&&(_.aCommonPreceding=se,_.bCommonPreceding=_e),_.nCommonFollowing=L,L!==0&&(_.aCommonFollowing=oe+1,_.bCommonFollowing=ue+1);let B=D+1,te=ue+L+1;return _.nChangeFollowing=m-1,m-1===g+b-B-te?(_.aStartFollowing=g,_.bStartFollowing=b):(_.aStartFollowing=B,_.bStartFollowing=te),!0}}}return!1},s=(m,y,g,v,b,T,R,x,C,E,_)=>{let S=b-g,A=g-y,$=b-v-A,k=$-m,H=$+m,I=t,O=m<E?m:E;for(let q=0,F=m;q<=O;q+=1,F-=2){let V=q===0||q!==m&&C[q]<I,K=V?C[q]:I,oe=V?K:K-1,ue=S+oe-F,L=n(y,oe-1,v,ue-1,T),D=oe-L;if(I=C[q],C[q]=D,k<=F&&F<=H){let G=(m+(F-$))/2;if(G<=x&&D-1<=R[G]){let Q=ue-L;if(_.nChangePreceding=m,m===D+Q-y-v?(_.aEndPreceding=y,_.bEndPreceding=v):(_.aEndPreceding=D,_.bEndPreceding=Q),_.nCommonPreceding=L,L!==0&&(_.aCommonPreceding=D,_.bCommonPreceding=Q),_.nChangeFollowing=m-1,m===1)_.nCommonFollowing=0,_.aStartFollowing=g,_.bStartFollowing=b;else{let X=S+K-(V?F-1:F+1),Y=r(K,g,X,b,T);_.nCommonFollowing=Y,Y!==0&&(_.aCommonFollowing=K,_.bCommonFollowing=X);let ie=K+Y,se=X+Y;m-1===g+b-ie-se?(_.aStartFollowing=g,_.bStartFollowing=b):(_.aStartFollowing=ie,_.bStartFollowing=se)}return!0}}}return!1},c=(m,y,g,v,b,T,R,x,C)=>{let E=v-y,_=b-g,S=g-y,A=b-v,$=A-S,k=S,H=S;if(R[0]=y-1,x[0]=g,$%2===0){let I=(m||$)/2,O=(S+A)/2;for(let q=1;q<=O;q+=1)if(k=o(q,g,b,E,T,R,k),q<I)H=i(q,y,v,_,T,x,H);else if(s(q,y,g,v,b,T,R,k,x,H,C))return}else{let I=((m||$)+1)/2,O=(S+A+1)/2,q=1;for(k=o(q,g,b,E,T,R,k),q+=1;q<=O;q+=1)if(H=i(q-1,y,v,_,T,x,H),q<I)k=o(q,g,b,E,T,R,k);else if(a(q,y,g,v,b,T,R,k,x,H,C))return}throw new Error(`${e}: no overlap aStart=${y} aEnd=${g} bStart=${v} bEnd=${b}`)},l=(m,y,g,v,b,T,R,x,C,E)=>{if(b-v<g-y){if(T=!T,T&&R.length===1){let{foundSubsequence:G,isCommon:Q}=R[0];R[1]={foundSubsequence:(X,Y,ie)=>{G(X,ie,Y)},isCommon:(X,Y)=>Q(Y,X)}}let L=y,D=g;y=v,g=b,v=L,b=D}let{foundSubsequence:_,isCommon:S}=R[T?1:0];c(m,y,g,v,b,S,x,C,E);let{nChangePreceding:A,aEndPreceding:$,bEndPreceding:k,nCommonPreceding:H,aCommonPreceding:I,bCommonPreceding:O,nCommonFollowing:q,aCommonFollowing:F,bCommonFollowing:V,nChangeFollowing:K,aStartFollowing:oe,bStartFollowing:ue}=E;y<$&&v<k&&l(A,y,$,v,k,T,R,x,C,E),H!==0&&_(H,I,O),q!==0&&_(q,F,V),oe<g&&ue<b&&l(K,oe,g,ue,b,T,R,x,C,E)},d=(m,y)=>{if(typeof y!="number")throw new TypeError(`${e}: ${m} typeof ${typeof y} is not a number`);if(!Number.isSafeInteger(y))throw new RangeError(`${e}: ${m} value ${y} is not a safe integer`);if(y<0)throw new RangeError(`${e}: ${m} value ${y} is a negative integer`)},p=(m,y)=>{let g=typeof y;if(g!=="function")throw new TypeError(`${e}: ${m} typeof ${g} is not a function`)};function f(m,y,g,v){d("aLength",m),d("bLength",y),p("isCommon",g),p("foundSubsequence",v);let b=r(0,m,0,y,g);if(b!==0&&v(b,0,0),m!==b||y!==b){let T=b,R=b,x=n(T,m-1,R,y-1,g),C=m-x,E=y-x,_=b+x;m!==_&&y!==_&&l(0,T,C,R,E,!1,[{foundSubsequence:v,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&&v(x,C,E)}}return pa}var vk=bk(),Jv=Lv(vk);function Ek(e,t){return e.replace(/\s+$/,r=>t(r))}function $d(e,t,r,n,o,i){return e.length!==0?r(`${n} ${Ek(e,o)}`):n!==" "?r(n):t&&i.length!==0?r(`${n} ${i}`):""}function Hv(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return $d(e,t,r,n,o,i)}function Vv(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return $d(e,t,r,n,o,i)}function zv(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return $d(e,t,r,n,o,i)}function gm(e,t,r,n,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}function wk(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]===ze;)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]!==ze;)c+=1}let l=s!==0||a;s!==0?i+=s+1:a&&(i+=1);let d=i-1,p=[],f=0;l&&p.push("");let m=0,y=0,g=0,v=0,b=x=>{let C=p.length;p.push(zv(x,C===0||C===d,t)),g+=1,v+=1},T=x=>{let C=p.length;p.push(Hv(x,C===0||C===d,t)),g+=1},R=x=>{let C=p.length;p.push(Vv(x,C===0||C===d,t)),v+=1};for(c=0;c!==r;){let x=c;for(;c!==r&&e[c][0]===ze;)c+=1;if(x!==c)if(x===0){c>n&&(x=c-n,m=x,y=x,g=m,v=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 E=x;E!==C;E+=1)b(e[E][1])}else{let C=c-x;if(C>o){let E=x+n;for(let S=x;S!==E;S+=1)b(e[S][1]);p[f]=gm(m,g,y,v,t),f=p.length,p.push("");let _=C-o;m=g+_,y=v+_,g=m,v=y;for(let S=c-n;S!==c;S+=1)b(e[S][1])}else for(let E=x;E!==c;E+=1)b(e[E][1])}for(;c!==r&&e[c][0]===pt;)T(e[c][1]),c+=1;for(;c!==r&&e[c][0]===st;)R(e[c][1]),c+=1}return l&&(p[f]=gm(m,g,y,v,t)),p.join(`
171
+ `)}function _k(e,t){return e.map((r,n,o)=>{let i=r[1],a=n===0||n===o.length-1;switch(r[0]){case pt:return Hv(i,a,t);case st:return Vv(i,a,t);default:return zv(i,a,t)}}).join(`
172
+ `)}var Hl=e=>e,Gv=5,Tk=0;function Sk(){return{aAnnotation:"Expected",aColor:yr.green,aIndicator:"-",bAnnotation:"Received",bColor:yr.red,bIndicator:"+",changeColor:yr.inverse,changeLineTrailingSpaceColor:Hl,commonColor:yr.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Hl,compareKeys:void 0,contextLines:Gv,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:yr.yellow,printBasicPrototype:!1,truncateThreshold:Tk,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:Hl}}function Ak(e){return e&&typeof e=="function"?e:void 0}function Rk(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:Gv}function Nn(e={}){return{...Sk(),...e,compareKeys:Ak(e.compareKeys),contextLines:Rk(e.contextLines)}}function $n(e){return e.length===1&&e[0].length===0}function Ok(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case pt:t+=1;break;case st:r+=1;break}}),{a:t,b:r}}function xk({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:o,bIndicator:i,includeChangeCounts:a,omitAnnotationLines:s},c){if(s)return"";let l="",d="";if(a){let m=String(c.a),y=String(c.b),g=n.length-e.length,v=" ".repeat(Math.max(0,g)),b=" ".repeat(Math.max(0,-g)),T=y.length-m.length,R=" ".repeat(Math.max(0,T)),x=" ".repeat(Math.max(0,-T));l=`${v} ${r} ${R}${m}`,d=`${b} ${i} ${x}${y}`}let p=`${r} ${e}${l}`,f=`${i} ${n}${d}`;return`${t(p)}
173
+ ${o(f)}
174
+
175
+ `}function Fd(e,t,r){return xk(r,Ok(e))+(r.expand?_k(e,r):wk(e,r))+(t?r.truncateAnnotationColor(`
176
+ ${r.truncateAnnotation}`):"")}function Hs(e,t,r){let n=Nn(r),[o,i]=Wv($n(e)?[]:e,$n(t)?[]:t,n);return Fd(o,i,n)}function Pk(e,t,r,n,o){if($n(e)&&$n(r)&&(e=[],r=[]),$n(t)&&$n(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return Hs(e,t,o);let[i,a]=Wv(r,n,o),s=0,c=0;return i.forEach(l=>{switch(l[0]){case pt:l[1]=e[s],s+=1;break;case st:l[1]=t[c],c+=1;break;default:l[1]=t[c],s+=1,c+=1}}),Fd(i,a,Nn(o))}function Wv(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,m)=>e[f]===t[m],l=[],d=0,p=0;for(Jv(i,a,c,(f,m,y)=>{for(;d!==m;d+=1)l.push(new He(pt,e[d]));for(;p!==y;p+=1)l.push(new He(st,t[p]));for(;f!==0;f-=1,d+=1,p+=1)l.push(new He(ze,t[p]))});d!==i;d+=1)l.push(new He(pt,e[d]));for(;p!==a;p+=1)l.push(new He(st,t[p]));return[l,s]}function bm(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 vm(e){return e.includes(`\r
177
+ `)?`\r
178
+ `:`
179
+ `}function Ck(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
+ `),m=t.includes(`
181
+ `),y=vm(e),g=vm(t),v=f?`${e.split(y,o).join(y)}
182
+ `:e,b=m?`${t.split(g,o).join(g)}
183
+ `:t;i=v.length,a=b.length}let s=i!==e.length||a!==t.length,c=(f,m)=>e[f]===t[m],l=0,d=0,p=[];return Jv(i,a,c,(f,m,y)=>{l!==m&&p.push(new He(pt,e.slice(l,m))),d!==y&&p.push(new He(st,t.slice(d,y))),l=m+f,d=y+f,p.push(new He(ze,t.slice(y,d)))}),l!==i&&p.push(new He(pt,e.slice(l))),d!==a&&p.push(new He(st,t.slice(d))),[p,s]}function Nk(e,t,r){return t.reduce((n,o)=>n+(o[0]===ze?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}var Em=class{op;line;lines;changeColor;constructor(e,t){this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new He(this.op,e))}pushLine(){this.lines.push(this.line.length!==1?new He(this.op,Nk(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new He(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}},Ik=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 He(t,i);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(s)):(this.pushDiffChangeLines(s),this.flushChangeLines())}else a<o?this.pushDiffCommonLine(new He(t,i)):i.length!==0&&this.pushDiffChangeLines(new He(t,i))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function Mk(e,t){let r=new Em(pt,t),n=new Em(st,t),o=new Ik(r,n);return e.forEach(i=>{switch(i[0]){case pt:r.align(i);break;case st:n.align(i);break;default:o.align(i)}}),o.getLines()}function jk(e,t){if(t){let r=e.length-1;return e.some((n,o)=>n[0]===ze&&(o!==r||n[1]!==`
188
+ `))}return e.some(r=>r[0]===ze)}function kk(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(`
189
+ `)||t.includes(`
190
+ `),[o,i]=Yv(n?`${e}
191
+ `:e,n?`${t}
192
+ `:t,!0,r);if(jk(o,n)){let a=Nn(r),s=Mk(o,a.changeColor);return Fd(s,i,a)}}return Hs(e.split(`
193
+ `),t.split(`
194
+ `),r)}function Yv(e,t,r,n){let[o,i]=Ck(e,t,n);return fk(o),[o,i]}function Lu(e,t){let{commonColor:r}=Nn(t);return r(e)}var{AsymmetricMatcher:qk,DOMCollection:Lk,DOMElement:Dk,Immutable:$k,ReactElement:Fk,ReactTestComponent:Bk}=Dd,Kv=[Bk,Fk,Dk,Lk,$k,qk,Dd.Error],Du={maxDepth:20,plugins:Kv},Xv={callToJSON:!1,maxDepth:8,plugins:Kv};function bo(e,t,r){if(Object.is(e,t))return"";let n=bm(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!==bm(t)){let a=function(R){return R.length<=v?R:`${R.slice(0,v)}...`},{aAnnotation:s,aColor:c,aIndicator:l,bAnnotation:d,bColor:p,bIndicator:f}=Nn(r),m=$u(Xv,r),y=nr(e,m),g=nr(t,m),v=1e5;y=a(y),g=a(g);let b=`${c(`${l} ${s}:`)}
195
+ ${y}`,T=`${p(`${f} ${d}:`)}
196
+ ${g}`;return`${b}
197
+
198
+ ${T}`}if(!i)switch(n){case"string":return Hs(e.split(`
199
+ `),t.split(`
200
+ `),r);case"boolean":case"number":return Uk(e,t,r);case"map":return Vl(wm(e),wm(t),r);case"set":return Vl(_m(e),_m(t),r);default:return Vl(e,t,r)}}function Uk(e,t,r){let n=nr(e,Du),o=nr(t,Du);return n===o?"":Hs(n.split(`
201
+ `),o.split(`
202
+ `),r)}function wm(e){return new Map(Array.from(e.entries()).sort())}function _m(e){return new Set(Array.from(e.values()).sort())}function Vl(e,t,r){let n,o=!1;try{let a=$u(Du,r);n=Tm(e,t,a,r)}catch{o=!0}let i=Lu(Uv,r);if(n===void 0||n===i){let a=$u(Xv,r);n=Tm(e,t,a,r),n!==i&&!o&&(n=`${Lu(gk,r)}
203
+
204
+ ${n}`)}return n}function $u(e,t){let{compareKeys:r,printBasicPrototype:n,maxDepth:o}=Nn(t);return{...e,compareKeys:r,printBasicPrototype:n,maxDepth:o??e.maxDepth}}function Tm(e,t,r,n){let o={...r,indent:0},i=nr(e,o),a=nr(t,o);if(i===a)return Lu(Uv,n);{let s=nr(e,r),c=nr(t,r);return Pk(s.split(`
205
+ `),c.split(`
206
+ `),i.split(`
207
+ `),a.split(`
208
+ `),n)}}var Sm=2e4;function Am(e){return Xa(e)==="Object"&&typeof e.asymmetricMatch=="function"}function Rm(e,t){let r=Xa(e),n=Xa(t);return r===n&&(r==="Object"||r==="Array")}function Qv(e,t,r){let{aAnnotation:n,bAnnotation:o}=Nn(r);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=Sm&&e.length<=Sm&&t!==e){if(t.includes(`
209
+ `)||e.includes(`
210
+ `))return kk(t,e,r);let[l]=Yv(t,e),d=l.some(y=>y[0]===ze),p=Jk(n,o),f=p(n)+zk(Om(l,pt,d)),m=p(o)+Vk(Om(l,st,d));return`${f}
211
+ ${m}`}let i=dm(t,{forceWritable:!0}),a=dm(e,{forceWritable:!0}),{replacedExpected:s,replacedActual:c}=Zv(a,i);return bo(s,c,r)}function Zv(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}):Rm(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),Dv(t).forEach(o=>{let i=t[o],a=e[o];if(Am(i))i.asymmetricMatch(a)&&(e[o]=i);else if(Am(a))a.asymmetricMatch(i)&&(t[o]=a);else if(Rm(a,i)){let s=Zv(a,i,r,n);e[o]=s.replacedActual,t[o]=s.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function Jk(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}var Hk="·";function eE(e){return e.replace(/\s+$/gm,t=>Hk.repeat(t.length))}function Vk(e){return yr.red(eE(Nt(e)))}function zk(e){return yr.green(eE(Nt(e)))}function Om(e,t,r){return e.reduce((n,o)=>n+(o[0]===ze?o[1]:o[0]===t?r?yr.inverse(o[1]):o[1]:""),"")}var Gk="@@__IMMUTABLE_RECORD__@@",Wk="@@__IMMUTABLE_ITERABLE__@@";function Yk(e){return e&&(e[Wk]||e[Gk])}var Kk=Object.getPrototypeOf({});function xm(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function $r(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"&&fa(()=>r.message??(r.message=e.message)),typeof e.stack=="string"&&fa(()=>r.stack??(r.stack=e.stack)),typeof e.name=="string"&&fa(()=>r.name??(r.name=e.name)),e.cause!=null&&fa(()=>r.cause??(r.cause=$r(e.cause,t)))),$r(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(Yk(e))return $r(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()} ${lk(e.sample)}`;if(typeof e.toJSON=="function")return $r(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]=$r(n,t)}catch(i){r[o]=xm(i)}}),r}else{let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==Kk;)Object.getOwnPropertyNames(n).forEach(o=>{if(!(o in r))try{r[o]=$r(e[o],t)}catch(i){delete r[o],r[o]=xm(i)}}),n=Object.getPrototypeOf(n);return r}}function fa(e){try{return e()}catch{}}function Xk(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function Bd(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=Qv(n.actual,n.expected,{...t,...n.diffOptions})),"expected"in n&&typeof n.expected!="string"&&(n.expected=Nt(n.expected,10)),"actual"in n&&typeof n.actual!="string"&&(n.actual=Nt(n.actual,10));try{typeof n.message=="string"&&(n.message=Xk(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=Bd(n.cause,t,r))}catch{}try{return $r(n)}catch(o){return $r(new Error(`Failed to fully serialize error: ${o?.message}
212
+ Inner error message: ${n?.message}`))}}var pr={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"},zl=globalThis.__STORYBOOK_ADDONS_PREVIEW,Qk=new Error("This function ran after the play function completed. Did you forget to `await` it?"),Pm=e=>Object.prototype.toString.call(e)==="[object Object]",Zk=e=>Object.prototype.toString.call(e)==="[object Module]",eq=e=>{if(!Pm(e)&&!Zk(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!Pm(t)},tq=e=>{try{return new e.constructor}catch{return{}}},Gl=()=>({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}),Cm=(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}},rq=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=()=>{try{this.state=re.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}},this.updateParentWindowState=()=>{try{re.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},this.loadParentWindowState();let e=({storyId:s,renderPhase:c,isPlaying:l=!0,isDebugging:d=!1})=>{let p=this.getState(s);this.setState(s,{...Gl(),...Cm(p,d),renderPhase:c||p.renderPhase,shadowCalls:d?p.shadowCalls:[],chainedCallIds:d?p.chainedCallIds:new Set,playUntil:d?p.playUntil:void 0,isPlaying:l,isDebugging:d}),this.sync(s)},t=s=>({storyId:c,playUntil:l})=>{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(l||!d.length)return{playUntil:l};let f=p.findIndex(m=>m.id===d[0].callId);return{playUntil:p.slice(0,f).filter(m=>m.interceptable&&!m.ancestors?.length).slice(-1)[0]?.id}}),s.emit(Wa,{storyId:c,isDebugging:!0})},r=s=>({storyId:c})=>{let l=this.getLog(c).filter(p=>!p.ancestors?.length),d=l.reduceRight((p,f,m)=>p>=0||f.status==="waiting"?p:m,-1);t(s)({storyId:c,playUntil:l[d-1]?.callId})},n=s=>({storyId:c,callId:l})=>{let{calls:d,shadowCalls:p,resolvers:f}=this.getState(c),m=d.find(({id:g})=>g===l),y=p.find(({id:g})=>g===l);if(!m&&y&&Object.values(f).length>0){let g=this.getLog(c).find(v=>v.status==="waiting")?.callId;y.id!==g&&this.setState(c,{playUntil:y.id}),Object.values(f).forEach(v=>v())}else t(s)({storyId:c,playUntil:l})},o=s=>({storyId:c})=>{let{resolvers:l}=this.getState(c);if(Object.values(l).length>0)Object.values(l).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:l}=this.getState(s);if(c==="preparing"&&l)return e({storyId:s,renderPhase:c,isDebugging:l});if(c==="playing")return e({storyId:s,renderPhase:c,isDebugging:l});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)};zl&&zl.ready().then(()=>{this.channel=zl.getChannel(),this.channel.on(Wa,e),this.channel.on(wn,a),this.channel.on(pd,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(pr.START,t(this.channel)),this.channel.on(pr.BACK,r(this.channel)),this.channel.on(pr.GOTO,n(this.channel)),this.channel.on(pr.NEXT,o(this.channel)),this.channel.on(pr.END,i)})}getState(e){return this.state[e]||Gl()}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=Cm(n);return o&&(t[r]=Object.assign(Gl(),o)),t},{});let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(pr.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(!eq(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=nq(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 l=e[s];return typeof l!="function"?(a[s]=this.instrument(l,{...t,path:o.concat(s)},r),a):"__originalFn__"in l&&typeof l.__originalFn__=="function"?(a[s]=l,a):(a[s]=(...d)=>this.track(s,l,e,d,t),a[s].__originalFn__=l,Object.defineProperty(a[s],"name",{value:s,writable:!1}),Object.keys(l).length>0&&Object.assign(a[s],this.instrument({...l},{...t,path:o.concat(s)},r)),a)},n?e:tq(e))}track(e,t,r,n,o){let i=n?.[0]?.__storyId__||re.__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:l=[],intercept:d=!1,retain:p=!1}=o,f=typeof d=="function"?d(e,l):d,m={id:c,cursor:a,storyId:i,ancestors:s,path:l,method:e,args:n,interceptable:f,retain:p},y=(f&&!s.length?this.intercept:this.invoke).call(this,t,r,m,o);return this.instrument(y,{...o,mutate:!0,path:[{__callId__:m.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:l})=>({isLocked:!1,resolvers:{...l,[r.id]:c}}))}).then(()=>(this.setState(r.storyId,c=>{let{[r.id]:l,...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(m=>s(m,++p,f));if(d instanceof Date)return{__date__:{value:d.toISOString()}};if(d instanceof Error){let{name:m,message:y,stack:g}=d;return{__error__:{name:m,message:y,stack:g}}}if(d instanceof RegExp){let{flags:m,source:y}=d;return{__regexp__:{flags:m,source:y}}}if(d instanceof re.window?.HTMLElement){let{prefix:m,localName:y,id:g,classList:v,innerText:b}=d,T=Array.from(v);return{__element__:{prefix:m,localName:y,id:g,classNames:T,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(([m,y])=>[m,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 l=d=>{if(d instanceof Error){let{name:p,message:f,stack:m,callId:y=r.id}=d,{showDiff:g=void 0,diff:v=void 0,actual:b=void 0,expected:T=void 0}=d.name==="AssertionError"?Bd(d):d,R={name:p,message:f,stack:m,callId:y,showDiff:g,diff:v,actual:b,expected:T};if(this.update({...c,status:"error",exception:R}),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 Qk;let d=(n.getArgs?n.getArgs(r,this.getState(r.storyId)):r.args).map(f=>typeof f!="function"||oq(f)||Object.keys(f).length?f:(...m)=>{let{cursor:y,ancestors:g}=this.getState(r.storyId);this.setState(r.storyId,{cursor:0,ancestors:[...g,r.id]});let v=()=>this.setState(r.storyId,{cursor:y,ancestors:g}),b=!1;try{let T=f(...m);return T instanceof Promise?(b=!0,T.finally(v)):T}finally{b||v()}}),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),l):p}catch(d){return l(d)}}update(e){this.channel?.emit(pr.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:l})=>!l.length).find(l=>l.status==="waiting")?.callId,a=o.some(l=>l.status==="active");if(this.detached||r||a||o.length===0){let l={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:o};this.channel?.emit(pr.SYNC,l);return}let s=o.some(l=>l.status==="done"||l.status==="error"),c={controlStates:{detached:this.detached,start:s,back:s,goto:!0,next:n,end:n},logItems:o,pausedAt:i};this.channel?.emit(pr.SYNC,c)};this.setState(e,({syncTimeout:r})=>(clearTimeout(r),{syncTimeout:setTimeout(t,0)}))}};function zi(e,t={}){try{let r=!1,n=!1;return re.window?.location?.search?.includes("instrument=true")?r=!0:re.window?.location?.search?.includes("instrument=false")&&(n=!0),re.window?.parent===re.window&&!r||n?e:(re.window&&!re.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(re.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new rq),(re.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(r){return Ge.warn(r),e}}function nq(e,t){let r=e;for(;r!=null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function oq(e){if(typeof e!="function")return!1;let t=Object.getOwnPropertyDescriptor(e,"prototype");return t?!t.writable:!1}var tE=Object.defineProperty,z=(e,t)=>tE(e,"name",{value:t,configurable:!0}),Ud=(e,t)=>{for(var r in t)tE(e,r,{get:t[r],enumerable:!0})},or={};Ud(or,{addChainableMethod:()=>ep,addLengthGuard:()=>Yi,addMethod:()=>Xd,addProperty:()=>Kd,checkError:()=>At,compareByInspect:()=>ts,eql:()=>xE,expectTypes:()=>lE,flag:()=>be,getActual:()=>zs,getMessage:()=>Vd,getName:()=>Ws,getOperator:()=>op,getOwnEnumerableProperties:()=>np,getOwnEnumerablePropertySymbols:()=>rp,getPathInfo:()=>Yd,hasProperty:()=>Gs,inspect:()=>Oe,isNaN:()=>rs,isNumeric:()=>nt,isProxyEnabled:()=>Wi,isRegExp:()=>ns,objDisplay:()=>gn,overwriteChainableMethod:()=>tp,overwriteMethod:()=>Zd,overwriteProperty:()=>Qd,proxify:()=>vo,test:()=>Jd,transferFlags:()=>Kt,type:()=>qe});var At={};Ud(At,{compatibleConstructor:()=>oE,compatibleInstance:()=>nE,compatibleMessage:()=>iE,getConstructorName:()=>aE,getMessage:()=>sE});function Vs(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}z(Vs,"isErrorInstance");function rE(e){return Object.prototype.toString.call(e)==="[object RegExp]"}z(rE,"isRegExp");function nE(e,t){return Vs(t)&&e===t}z(nE,"compatibleInstance");function oE(e,t){return Vs(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t=="object"||typeof t=="function")&&t.prototype?e.constructor===t||e instanceof t:!1}z(oE,"compatibleConstructor");function iE(e,t){let r=typeof e=="string"?e:e.message;return rE(t)?t.test(r):typeof t=="string"?r.indexOf(t)!==-1:!1}z(iE,"compatibleMessage");function aE(e){let t=e;return Vs(e)?t=e.constructor.name:typeof e=="function"&&(t=e.name,t===""&&(t=new e().name||t)),t}z(aE,"getConstructorName");function sE(e){let t="";return e&&e.message?t=e.message:typeof e=="string"&&(t=e),t}z(sE,"getMessage");function be(e,t,r){let n=e.__flags||(e.__flags=Object.create(null));if(arguments.length===3)n[t]=r;else return n[t]}z(be,"flag");function Jd(e,t){let r=be(e,"negate"),n=t[0];return r?!n:n}z(Jd,"test");function qe(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)}z(qe,"type");var iq="captureStackTrace"in Error,ma,xe=(ma=class extends Error{message;get name(){return"AssertionError"}get ok(){return!1}constructor(e="Unspecified AssertionError",t,r){super(e),this.message=e,iq&&Error.captureStackTrace(this,r||ma);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}}},z(ma,"AssertionError"),ma);function lE(e,t){let r=be(e,"message"),n=be(e,"ssfi");r=r?r+": ":"",e=be(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=qe(e).toLowerCase();if(!t.some(function(a){return i===a}))throw new xe(r+"object tested must be "+o+", but "+i+" given",void 0,n)}z(lE,"expectTypes");function zs(e,t){return t.length>4?t[4]:e._obj}z(zs,"getActual");var Nm={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"]},aq={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Xn="…";function uE(e,t){let r=Nm[aq[t]]||Nm[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}z(uE,"colorise");function cE({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:l=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:l};return p.colors&&(p.stylize=uE),p}z(cE,"normaliseOptions");function dE(e){return e>="\uD800"&&e<="\uDBFF"}z(dE,"isHighSurrogate");function Or(e,t,r=Xn){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&&dE(e[i-1])&&(i=i-1),`${e.slice(0,i)}${r}`}return e}z(Or,"truncate");function Ft(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 l=0;l<o;l+=1){let d=l+1===e.length,p=l+2===e.length;c=`${Xn}(${e.length-l})`;let f=e[l];t.truncate=i-a.length-(d?0:n.length);let m=s||r(f,t)+(d?"":n),y=a.length+m.length,g=y+c.length;if(d&&y>i&&a.length+c.length<=i||!d&&!p&&g>i||(s=d?"":r(e[l+1],t)+(p?"":n),!d&&p&&g>i&&y+s.length>i))break;if(a+=m,!d&&!p&&y+s.length>=i){c=`${Xn}(${e.length-l-1})`;break}c=""}return`${a}${c}`}z(Ft,"inspectList");function pE(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}z(pE,"quoteComplexKey");function Qn([e,t],r){return r.truncate-=2,typeof e=="string"?e=pE(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}z(Qn,"inspectProperty");function fE(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=Ft(e,t);t.truncate-=n.length;let o="";return r.length&&(o=Ft(r.map(i=>[i,e[i]]),t,Qn)),`[ ${n}${o?`, ${o}`:""} ]`}z(fE,"inspectArray");var sq=z(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function er(e,t){let r=sq(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(Or(e[a],t.truncate),"number")}${a===e.length-1?"":", "}`;if(t.truncate-=s.length,e[a]!==e.length&&t.truncate<=3){o+=`${Xn}(${e.length-e[a]+1})`;break}o+=s}let i="";return n.length&&(i=Ft(n.map(a=>[a,e[a]]),t,Qn)),`${r}[ ${o}${i?`, ${i}`:""} ]`}z(er,"inspectTypedArray");function mE(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${Or(n[1],t.truncate-o.length-1)}`,"date")}z(mE,"inspectDate");function Fu(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${Or(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}z(Fu,"inspectFunction");function hE([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}z(hE,"inspectMapEntry");function yE(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}z(yE,"mapToEntries");function gE(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Ft(yE(e),t,hE)} }`)}z(gE,"inspectMap");var lq=Number.isNaN||(e=>e!==e);function Bu(e,t){return lq(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(Or(String(e),t.truncate),"number")}z(Bu,"inspectNumber");function Uu(e,t){let r=Or(e.toString(),t.truncate-1);return r!==Xn&&(r+="n"),t.stylize(r,"bigint")}z(Uu,"inspectBigInt");function bE(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${Or(o,n)}/${r}`,"regexp")}z(bE,"inspectRegExp");function vE(e){let t=[];return e.forEach(r=>{t.push(r)}),t}z(vE,"arrayFromSet");function EE(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Ft(vE(e),t)} }`)}z(EE,"inspectSet");var Im=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),uq={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},cq=16;function wE(e){return uq[e]||`\\u${`0000${e.charCodeAt(0).toString(cq)}`.slice(-4)}`}z(wE,"escape");function Ju(e,t){return Im.test(e)&&(e=e.replace(Im,wE)),t.stylize(`'${Or(e,t.truncate-2)}'`,"string")}z(Ju,"inspectString");function Hu(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}z(Hu,"inspectSymbol");var dq=z(()=>"Promise{…}","getPromiseValue"),pq=dq;function oi(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=Ft(r.map(s=>[s,e[s]]),t,Qn),i=Ft(n.map(s=>[s,e[s]]),t,Qn);t.seen.pop();let a="";return o&&i&&(a=", "),`{ ${o}${a}${i} }`}z(oi,"inspectObject");var Wl=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function _E(e,t){let r="";return Wl&&Wl in e&&(r=e[Wl]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${oi(e,t)}`}z(_E,"inspectClass");function TE(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Ft(e,t)} ]`)}z(TE,"inspectArguments");var fq=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function SE(e,t){let r=Object.getOwnPropertyNames(e).filter(a=>fq.indexOf(a)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=Or(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=Ft(r.map(a=>[a,e[a]]),t,Qn);return`${n}${o}${i?` { ${i} }`:""}`}z(SE,"inspectObject");function AE([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}z(AE,"inspectAttribute");function Qa(e,t){return Ft(e,t,RE,`
213
+ `)}z(Qa,"inspectNodeCollection");function RE(e,t){switch(e.nodeType){case 1:return Hd(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}z(RE,"inspectNode");function Hd(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+=Ft(r.map(d=>[d,e.getAttribute(d)]),t,AE," ")),t.truncate-=s.length;let c=t.truncate,l=Qa(e.children,t);return l&&l.length>c&&(l=`${Xn}(${e.children.length})`),`${o}${s}${i}${l}${a}`}z(Hd,"inspectHTML");var mq=typeof Symbol=="function"&&typeof Symbol.for=="function",Yl=mq?Symbol.for("chai/inspect"):"@@chai/inspect",Kl=Symbol.for("nodejs.util.inspect.custom"),Mm=new WeakMap,jm={},km={undefined:z((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:z((e,t)=>t.stylize("null","null"),"null"),boolean:z((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:z((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:Bu,Number:Bu,bigint:Uu,BigInt:Uu,string:Ju,String:Ju,function:Fu,Function:Fu,symbol:Hu,Symbol:Hu,Array:fE,Date:mE,Map:gE,Set:EE,RegExp:bE,Promise:pq,WeakSet:z((e,t)=>t.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:z((e,t)=>t.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:TE,Int8Array:er,Uint8Array:er,Uint8ClampedArray:er,Int16Array:er,Uint16Array:er,Int32Array:er,Uint32Array:er,Float32Array:er,Float64Array:er,Generator:z(()=>"","Generator"),DataView:z(()=>"","DataView"),ArrayBuffer:z(()=>"","ArrayBuffer"),Error:SE,HTMLCollection:Qa,NodeList:Qa},hq=z((e,t,r)=>Yl in e&&typeof e[Yl]=="function"?e[Yl](t):Kl in e&&typeof e[Kl]=="function"?e[Kl](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&Mm.has(e.constructor)?Mm.get(e.constructor)(e,t):jm[r]?jm[r](e,t):"","inspectCustom"),yq=Object.prototype.toString;function Za(e,t={}){let r=cE(t,Za),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=yq.call(e).slice(8,-1)),o in km)return km[o](e,r);if(n&&e){let a=hq(e,r,o);if(a)return typeof a=="string"?a:Za(a,r)}let i=e?Object.getPrototypeOf(e):!1;return i===Object.prototype||i===null?oi(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Hd(e,r):"constructor"in e?e.constructor!==Object?_E(e,r):oi(e,r):e===Object(e)?oi(e,r):r.stylize(String(e),o)}z(Za,"inspect");var Et={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function Oe(e,t,r,n){let o={colors:n,depth:typeof r>"u"?2:r,showHidden:t,truncate:Et.truncateThreshold?Et.truncateThreshold:1/0};return Za(e,o)}z(Oe,"inspect");function gn(e){let t=Oe(e),r=Object.prototype.toString.call(e);if(Et.truncateThreshold&&t.length>=Et.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}z(gn,"objDisplay");function Vd(e,t){let r=be(e,"negate"),n=be(e,"object"),o=t[3],i=zs(e,t),a=r?t[2]:t[1],s=be(e,"message");return typeof a=="function"&&(a=a()),a=a||"",a=a.replace(/#\{this\}/g,function(){return gn(n)}).replace(/#\{act\}/g,function(){return gn(i)}).replace(/#\{exp\}/g,function(){return gn(o)}),s?s+": "+a:a}z(Vd,"getMessage");function Kt(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])}z(Kt,"transferFlags");function Vu(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)}z(Vu,"type");function zd(){this._key="chai/deep-eql__"+Math.random()+Date.now()}z(zd,"FakeMap");zd.prototype={get:z(function(e){return e[this._key]},"get"),set:z(function(e,t){Object.isExtensible(e)&&Object.defineProperty(e,this._key,{value:t,configurable:!0})},"set")};var OE=typeof WeakMap=="function"?WeakMap:zd;function zu(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}z(zu,"memoizeCompare");function Qo(e,t,r,n){if(!(!r||Tn(e)||Tn(t))){var o=r.get(e);o?o.set(t,n):(o=new OE,o.set(t,n),r.set(e,o))}}z(Qo,"memoizeSet");var xE=Gi;function Gi(e,t,r){if(r&&r.comparator)return Gu(e,t,r);var n=Gd(e,t);return n!==null?n:Gu(e,t,r)}z(Gi,"deepEqual");function Gd(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t?!0:Tn(e)||Tn(t)?!1:null}z(Gd,"simpleEqual");function Gu(e,t,r){r=r||{},r.memoize=r.memoize===!1?!1:r.memoize||new OE;var n=r&&r.comparator,o=zu(e,t,r.memoize);if(o!==null)return o;var i=zu(t,e,r.memoize);if(i!==null)return i;if(n){var a=n(e,t);if(a===!1||a===!0)return Qo(e,t,r.memoize,a),a;var s=Gd(e,t);if(s!==null)return s}var c=Vu(e);if(c!==Vu(t))return Qo(e,t,r.memoize,!1),!1;Qo(e,t,r.memoize,!0);var l=PE(e,t,c,r);return Qo(e,t,r.memoize,l),l}z(Gu,"extensiveDeepEqual");function PE(e,t,r,n){switch(r){case"String":case"Number":case"Boolean":case"Date":return Gi(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return e===t;case"Error":return Wd(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 Hr(e,t,n);case"RegExp":return CE(e,t);case"Generator":return NE(e,t,n);case"DataView":return Hr(new Uint8Array(e.buffer),new Uint8Array(t.buffer),n);case"ArrayBuffer":return Hr(new Uint8Array(e),new Uint8Array(t),n);case"Set":return Wu(e,t,n);case"Map":return Wu(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 ME(e,t,n)}}z(PE,"extensiveDeepEqualByType");function CE(e,t){return e.toString()===t.toString()}z(CE,"regexpEqual");function Wu(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(z(function(i,a){n.push([i,a])},"gatherEntries")),t.forEach(z(function(i,a){o.push([i,a])},"gatherEntries")),Hr(n.sort(),o.sort(),r)}z(Wu,"entriesEqual");function Hr(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(Gi(e[o],t[o],r)===!1)return!1;return!0}z(Hr,"iterableEqual");function NE(e,t,r){return Hr(es(e),es(t),r)}z(NE,"generatorEqual");function IE(e){return typeof Symbol<"u"&&typeof e=="object"&&typeof Symbol.iterator<"u"&&typeof e[Symbol.iterator]=="function"}z(IE,"hasIteratorFunction");function Yu(e){if(IE(e))try{return es(e[Symbol.iterator]())}catch{return[]}return[]}z(Yu,"getIteratorEntries");function es(e){for(var t=e.next(),r=[t.value];t.done===!1;)t=e.next(),r.push(t.value);return r}z(es,"getGeneratorEntries");function Ku(e){var t=[];for(var r in e)t.push(r);return t}z(Ku,"getEnumerableKeys");function Xu(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}z(Xu,"getEnumerableSymbols");function Wd(e,t,r,n){var o=r.length;if(o===0)return!0;for(var i=0;i<o;i+=1)if(Gi(e[r[i]],t[r[i]],n)===!1)return!1;return!0}z(Wd,"keysEqual");function ME(e,t,r){var n=Ku(e),o=Ku(t),i=Xu(e),a=Xu(t);if(n=n.concat(i),o=o.concat(a),n.length&&n.length===o.length)return Hr(Qu(n).sort(),Qu(o).sort())===!1?!1:Wd(e,t,n,r);var s=Yu(e),c=Yu(t);return s.length&&s.length===c.length?(s.sort(),c.sort(),Hr(s,c,r)):n.length===0&&s.length===0&&o.length===0&&c.length===0}z(ME,"objectEqual");function Tn(e){return e===null||typeof e!="object"}z(Tn,"isPrimitive");function Qu(e){return e.map(z(function(t){return typeof t=="symbol"?t.toString():t},"mapSymbol"))}z(Qu,"mapSymbols");function Gs(e,t){return typeof e>"u"||e===null?!1:t in Object(e)}z(Gs,"hasProperty");function jE(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})}z(jE,"parsePath");function Zu(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}z(Zu,"internalGetPathValue");function Yd(e,t){let r=jE(t),n=r[r.length-1],o={parent:r.length>1?Zu(e,r,r.length-1):e,name:n.p||n.i,value:Zu(e,r)};return o.exists=Gs(o.parent,o.name),o}z(Yd,"getPathInfo");var ha,j=(ha=class{__flags={};constructor(e,t,r,n){return be(this,"ssfi",r||ha),be(this,"lockSsfi",n),be(this,"object",e),be(this,"message",t),be(this,"eql",Et.deepEqual||xE),vo(this)}static get includeStack(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),Et.includeStack}static set includeStack(e){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),Et.includeStack=e}static get showDiff(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),Et.showDiff}static set showDiff(e){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),Et.showDiff=e}static addProperty(e,t){Kd(this.prototype,e,t)}static addMethod(e,t){Xd(this.prototype,e,t)}static addChainableMethod(e,t,r){ep(this.prototype,e,t,r)}static overwriteProperty(e,t){Qd(this.prototype,e,t)}static overwriteMethod(e,t){Zd(this.prototype,e,t)}static overwriteChainableMethod(e,t,r){tp(this.prototype,e,t,r)}assert(e,t,r,n,o,i){let a=Jd(this,arguments);if(i!==!1&&(i=!0),n===void 0&&o===void 0&&(i=!1),Et.showDiff!==!0&&(i=!1),!a){t=Vd(this,arguments);let s={actual:zs(this,arguments),expected:n,showDiff:i},c=op(this,arguments);throw c&&(s.operator=c),new xe(t,s,Et.includeStack?this.assert:be(this,"ssfi"))}}get _obj(){return be(this,"object")}set _obj(e){be(this,"object",e)}},z(ha,"Assertion"),ha);function Wi(){return Et.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}z(Wi,"isProxyEnabled");function Kd(e,t,r){r=r===void 0?function(){}:r,Object.defineProperty(e,t,{get:z(function n(){!Wi()&&!be(this,"lockSsfi")&&be(this,"ssfi",n);let o=r.call(this);if(o!==void 0)return o;let i=new j;return Kt(this,i),i},"propertyGetter"),configurable:!0})}z(Kd,"addProperty");var gq=Object.getOwnPropertyDescriptor(function(){},"length");function Yi(e,t,r){return gq.configurable&&Object.defineProperty(e,"length",{get:z(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}z(Yi,"addLengthGuard");function kE(e){let t=Object.getOwnPropertyNames(e);function r(o){t.indexOf(o)===-1&&t.push(o)}z(r,"addProperty");let n=Object.getPrototypeOf(e);for(;n!==null;)Object.getOwnPropertyNames(n).forEach(r),n=Object.getPrototypeOf(n);return t}z(kE,"getProperties");var qm=["__flags","__methods","_obj","assert"];function vo(e,t){return Wi()?new Proxy(e,{get:z(function r(n,o){if(typeof o=="string"&&Et.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 kE(n).forEach(function(s){if(!Object.prototype.hasOwnProperty(s)&&qm.indexOf(s)===-1){let c=qE(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 qm.indexOf(o)===-1&&!be(n,"lockSsfi")&&be(n,"ssfi",r),Reflect.get(n,o)},"proxyGetter")}):e}z(vo,"proxify");function qE(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]}z(qE,"stringDistanceCapped");function Xd(e,t,r){let n=z(function(){be(this,"lockSsfi")||be(this,"ssfi",n);let o=r.apply(this,arguments);if(o!==void 0)return o;let i=new j;return Kt(this,i),i},"methodWrapper");Yi(n,t,!1),e[t]=vo(n,t)}z(Xd,"addMethod");function Qd(e,t,r){let n=Object.getOwnPropertyDescriptor(e,t),o=z(function(){},"_super");n&&typeof n.get=="function"&&(o=n.get),Object.defineProperty(e,t,{get:z(function i(){!Wi()&&!be(this,"lockSsfi")&&be(this,"ssfi",i);let a=be(this,"lockSsfi");be(this,"lockSsfi",!0);let s=r(o).call(this);if(be(this,"lockSsfi",a),s!==void 0)return s;let c=new j;return Kt(this,c),c},"overwritingPropertyGetter"),configurable:!0})}z(Qd,"overwriteProperty");function Zd(e,t,r){let n=e[t],o=z(function(){throw new Error(t+" is not a function")},"_super");n&&typeof n=="function"&&(o=n);let i=z(function(){be(this,"lockSsfi")||be(this,"ssfi",i);let a=be(this,"lockSsfi");be(this,"lockSsfi",!0);let s=r(o).apply(this,arguments);if(be(this,"lockSsfi",a),s!==void 0)return s;let c=new j;return Kt(this,c),c},"overwritingMethodWrapper");Yi(i,t,!1),e[t]=vo(i,t)}z(Zd,"overwriteMethod");var bq=typeof Object.setPrototypeOf=="function",Lm=z(function(){},"testFn"),vq=Object.getOwnPropertyNames(Lm).filter(function(e){let t=Object.getOwnPropertyDescriptor(Lm,e);return typeof t!="object"?!0:!t.configurable}),Eq=Function.prototype.call,wq=Function.prototype.apply;function ep(e,t,r,n){typeof n!="function"&&(n=z(function(){},"chainingBehavior"));let o={method:r,chainingBehavior:n};e.__methods||(e.__methods={}),e.__methods[t]=o,Object.defineProperty(e,t,{get:z(function(){o.chainingBehavior.call(this);let i=z(function(){be(this,"lockSsfi")||be(this,"ssfi",i);let a=o.method.apply(this,arguments);if(a!==void 0)return a;let s=new j;return Kt(this,s),s},"chainableMethodWrapper");if(Yi(i,t,!0),bq){let a=Object.create(this);a.call=Eq,a.apply=wq,Object.setPrototypeOf(i,a)}else Object.getOwnPropertyNames(e).forEach(function(a){if(vq.indexOf(a)!==-1)return;let s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(i,a,s)});return Kt(this,i),vo(i)},"chainableMethodGetter"),configurable:!0})}z(ep,"addChainableMethod");function tp(e,t,r,n){let o=e.__methods[t],i=o.chainingBehavior;o.chainingBehavior=z(function(){let s=n(i).call(this);if(s!==void 0)return s;let c=new j;return Kt(this,c),c},"overwritingChainableMethodGetter");let a=o.method;o.method=z(function(){let s=r(a).apply(this,arguments);if(s!==void 0)return s;let c=new j;return Kt(this,c),c},"overwritingChainableMethodWrapper")}z(tp,"overwriteChainableMethod");function ts(e,t){return Oe(e)<Oe(t)?-1:1}z(ts,"compareByInspect");function rp(e){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}z(rp,"getOwnEnumerablePropertySymbols");function np(e){return Object.keys(e).concat(rp(e))}z(np,"getOwnEnumerableProperties");var rs=Number.isNaN;function LE(e){let t=qe(e);return["Array","Object","Function"].indexOf(t)!==-1}z(LE,"isObjectType");function op(e,t){let r=be(e,"operator"),n=be(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=LE(o);return/\snot\s/.test(i)?a?"notDeepStrictEqual":"notStrictEqual":a?"deepStrictEqual":"strictEqual"}z(op,"getOperator");function Ws(e){return e.name}z(Ws,"getName");function ns(e){return Object.prototype.toString.call(e)==="[object RegExp]"}z(ns,"isRegExp");function nt(e){return["Number","BigInt"].includes(qe(e))}z(nt,"isNumeric");var{flag:J}=or;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(e){j.addProperty(e)});j.addProperty("not",function(){J(this,"negate",!0)});j.addProperty("deep",function(){J(this,"deep",!0)});j.addProperty("nested",function(){J(this,"nested",!0)});j.addProperty("own",function(){J(this,"own",!0)});j.addProperty("ordered",function(){J(this,"ordered",!0)});j.addProperty("any",function(){J(this,"any",!0),J(this,"all",!1)});j.addProperty("all",function(){J(this,"all",!0),J(this,"any",!1)});var Dm={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function ip(e,t){t&&J(this,"message",t),e=e.toLowerCase();let r=J(this,"object"),n=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ",o=qe(r).toLowerCase();Dm.function.includes(e)?this.assert(Dm[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)}z(ip,"an");j.addChainableMethod("an",ip);j.addChainableMethod("a",ip);function DE(e,t){return rs(e)&&rs(t)||e===t}z(DE,"SameValueZero");function Ki(){J(this,"contains",!0)}z(Ki,"includeChainingBehavior");function Xi(e,t){t&&J(this,"message",t);let r=J(this,"object"),n=qe(r).toLowerCase(),o=J(this,"message"),i=J(this,"negate"),a=J(this,"ssfi"),s=J(this,"deep"),c=s?"deep ":"",l=s?J(this,"eql"):DE;o=o?o+": ":"";let d=!1;switch(n){case"string":d=r.indexOf(e)!==-1;break;case"weakset":if(s)throw new xe(o+"unable to use .deep.include with WeakSet",void 0,a);d=r.has(e);break;case"map":r.forEach(function(p){d=d||l(p,e)});break;case"set":s?r.forEach(function(p){d=d||l(p,e)}):d=r.has(e);break;case"array":s?d=r.some(function(p){return l(p,e)}):d=r.indexOf(e)!==-1;break;default:{if(e!==Object(e))throw new xe(o+"the given combination of arguments ("+n+" and "+qe(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 "+qe(e).toLowerCase(),void 0,a);let p=Object.keys(e),f=null,m=0;if(p.forEach(function(y){let g=new j(r);if(Kt(this,g,!0),J(g,"lockSsfi",!0),!i||p.length===1){g.property(y,e[y]);return}try{g.property(y,e[y])}catch(v){if(!At.compatibleConstructor(v,xe))throw v;f===null&&(f=v),m++}},this),i&&p.length>1&&m===p.length)throw f;return}}this.assert(d,"expected #{this} to "+c+"include "+Oe(e),"expected #{this} to not "+c+"include "+Oe(e))}z(Xi,"include");j.addChainableMethod("include",Xi,Ki);j.addChainableMethod("contain",Xi,Ki);j.addChainableMethod("contains",Xi,Ki);j.addChainableMethod("includes",Xi,Ki);j.addProperty("ok",function(){this.assert(J(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")});j.addProperty("true",function(){this.assert(J(this,"object")===!0,"expected #{this} to be true","expected #{this} to be false",!J(this,"negate"))});j.addProperty("numeric",function(){let e=J(this,"object");this.assert(["Number","BigInt"].includes(qe(e)),"expected #{this} to be numeric","expected #{this} to not be numeric",!J(this,"negate"))});j.addProperty("callable",function(){let e=J(this,"object"),t=J(this,"ssfi"),r=J(this,"message"),n=r?`${r}: `:"",o=J(this,"negate"),i=o?`${n}expected ${Oe(e)} not to be a callable function`:`${n}expected ${Oe(e)} to be a callable function`,a=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(qe(e));if(a&&o||!a&&!o)throw new xe(i,void 0,t)});j.addProperty("false",function(){this.assert(J(this,"object")===!1,"expected #{this} to be false","expected #{this} to be true",!!J(this,"negate"))});j.addProperty("null",function(){this.assert(J(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null")});j.addProperty("undefined",function(){this.assert(J(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined")});j.addProperty("NaN",function(){this.assert(rs(J(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")});function ap(){let e=J(this,"object");this.assert(e!=null,"expected #{this} to exist","expected #{this} to not exist")}z(ap,"assertExist");j.addProperty("exist",ap);j.addProperty("exists",ap);j.addProperty("empty",function(){let e=J(this,"object"),t=J(this,"ssfi"),r=J(this,"message"),n;switch(r=r?r+": ":"",qe(e).toLowerCase()){case"array":case"string":n=e.length;break;case"map":case"set":n=e.size;break;case"weakmap":case"weakset":throw new xe(r+".empty was passed a weak collection",void 0,t);case"function":{let o=r+".empty was passed a function "+Ws(e);throw new xe(o.trim(),void 0,t)}default:if(e!==Object(e))throw new xe(r+".empty was passed non-string primitive "+Oe(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 sp(){let e=J(this,"object"),t=qe(e);this.assert(t==="Arguments","expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments")}z(sp,"checkArguments");j.addProperty("arguments",sp);j.addProperty("Arguments",sp);function Ys(e,t){t&&J(this,"message",t);let r=J(this,"object");if(J(this,"deep")){let n=J(this,"lockSsfi");J(this,"lockSsfi",!0),this.eql(e),J(this,"lockSsfi",n)}else this.assert(e===r,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0)}z(Ys,"assertEqual");j.addMethod("equal",Ys);j.addMethod("equals",Ys);j.addMethod("eq",Ys);function lp(e,t){t&&J(this,"message",t);let r=J(this,"eql");this.assert(r(e,J(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0)}z(lp,"assertEql");j.addMethod("eql",lp);j.addMethod("eqls",lp);function Ks(e,t){t&&J(this,"message",t);let r=J(this,"object"),n=J(this,"doLength"),o=J(this,"message"),i=o?o+": ":"",a=J(this,"ssfi"),s=qe(r).toLowerCase(),c=qe(e).toLowerCase();if(n&&s!=="map"&&s!=="set"&&new j(r,o,a,!0).to.have.property("length"),!n&&s==="date"&&c!=="date")throw new xe(i+"the argument to above must be a date",void 0,a);if(!nt(e)&&(n||nt(r)))throw new xe(i+"the argument to above must be a number",void 0,a);if(!n&&s!=="date"&&!nt(r)){let l=s==="string"?"'"+r+"'":r;throw new xe(i+"expected "+l+" to be a number or a date",void 0,a)}if(n){let l="length",d;s==="map"||s==="set"?(l="size",d=r.size):d=r.length,this.assert(d>e,"expected #{this} to have a "+l+" above #{exp} but got #{act}","expected #{this} to not have a "+l+" above #{exp}",e,d)}else this.assert(r>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e)}z(Ks,"assertAbove");j.addMethod("above",Ks);j.addMethod("gt",Ks);j.addMethod("greaterThan",Ks);function Xs(e,t){t&&J(this,"message",t);let r=J(this,"object"),n=J(this,"doLength"),o=J(this,"message"),i=o?o+": ":"",a=J(this,"ssfi"),s=qe(r).toLowerCase(),c=qe(e).toLowerCase(),l,d=!0;if(n&&s!=="map"&&s!=="set"&&new j(r,o,a,!0).to.have.property("length"),!n&&s==="date"&&c!=="date")l=i+"the argument to least must be a date";else if(!nt(e)&&(n||nt(r)))l=i+"the argument to least must be a number";else if(!n&&s!=="date"&&!nt(r)){let p=s==="string"?"'"+r+"'":r;l=i+"expected "+p+" to be a number or a date"}else d=!1;if(d)throw new xe(l,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)}z(Xs,"assertLeast");j.addMethod("least",Xs);j.addMethod("gte",Xs);j.addMethod("greaterThanOrEqual",Xs);function Qs(e,t){t&&J(this,"message",t);let r=J(this,"object"),n=J(this,"doLength"),o=J(this,"message"),i=o?o+": ":"",a=J(this,"ssfi"),s=qe(r).toLowerCase(),c=qe(e).toLowerCase(),l,d=!0;if(n&&s!=="map"&&s!=="set"&&new j(r,o,a,!0).to.have.property("length"),!n&&s==="date"&&c!=="date")l=i+"the argument to below must be a date";else if(!nt(e)&&(n||nt(r)))l=i+"the argument to below must be a number";else if(!n&&s!=="date"&&!nt(r)){let p=s==="string"?"'"+r+"'":r;l=i+"expected "+p+" to be a number or a date"}else d=!1;if(d)throw new xe(l,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)}z(Qs,"assertBelow");j.addMethod("below",Qs);j.addMethod("lt",Qs);j.addMethod("lessThan",Qs);function Zs(e,t){t&&J(this,"message",t);let r=J(this,"object"),n=J(this,"doLength"),o=J(this,"message"),i=o?o+": ":"",a=J(this,"ssfi"),s=qe(r).toLowerCase(),c=qe(e).toLowerCase(),l,d=!0;if(n&&s!=="map"&&s!=="set"&&new j(r,o,a,!0).to.have.property("length"),!n&&s==="date"&&c!=="date")l=i+"the argument to most must be a date";else if(!nt(e)&&(n||nt(r)))l=i+"the argument to most must be a number";else if(!n&&s!=="date"&&!nt(r)){let p=s==="string"?"'"+r+"'":r;l=i+"expected "+p+" to be a number or a date"}else d=!1;if(d)throw new xe(l,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)}z(Zs,"assertMost");j.addMethod("most",Zs);j.addMethod("lte",Zs);j.addMethod("lessThanOrEqual",Zs);j.addMethod("within",function(e,t,r){r&&J(this,"message",r);let n=J(this,"object"),o=J(this,"doLength"),i=J(this,"message"),a=i?i+": ":"",s=J(this,"ssfi"),c=qe(n).toLowerCase(),l=qe(e).toLowerCase(),d=qe(t).toLowerCase(),p,f=!0,m=l==="date"&&d==="date"?e.toISOString()+".."+t.toISOString():e+".."+t;if(o&&c!=="map"&&c!=="set"&&new j(n,i,s,!0).to.have.property("length"),!o&&c==="date"&&(l!=="date"||d!=="date"))p=a+"the arguments to within must be dates";else if((!nt(e)||!nt(t))&&(o||nt(n)))p=a+"the arguments to within must be numbers";else if(!o&&c!=="date"&&!nt(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 xe(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 "+m,"expected #{this} to not have a "+y+" within "+m)}else this.assert(n>=e&&n<=t,"expected #{this} to be within "+m,"expected #{this} to not be within "+m)});function up(e,t){t&&J(this,"message",t);let r=J(this,"object"),n=J(this,"ssfi"),o=J(this,"message"),i;try{i=r instanceof e}catch(s){throw s instanceof TypeError?(o=o?o+": ":"",new xe(o+"The instanceof assertion needs a constructor but "+qe(e)+" was given.",void 0,n)):s}let a=Ws(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)}z(up,"assertInstanceOf");j.addMethod("instanceof",up);j.addMethod("instanceOf",up);function cp(e,t,r){r&&J(this,"message",r);let n=J(this,"nested"),o=J(this,"own"),i=J(this,"message"),a=J(this,"object"),s=J(this,"ssfi"),c=typeof e;if(i=i?i+": ":"",n){if(c!=="string")throw new xe(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 xe(i+"the argument to property must be a string, number, or symbol",void 0,s);if(n&&o)throw new xe(i+'The "nested" and "own" flags cannot be combined.',void 0,s);if(a==null)throw new xe(i+"Target cannot be null or undefined.",void 0,s);let l=J(this,"deep"),d=J(this,"negate"),p=n?Yd(a,e):null,f=n?p.value:a[e],m=l?J(this,"eql"):(v,b)=>v===b,y="";l&&(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=Gs(a,e),(!d||arguments.length===1)&&this.assert(g,"expected #{this} to have "+y+Oe(e),"expected #{this} to not have "+y+Oe(e)),arguments.length>1&&this.assert(g&&m(t,f),"expected #{this} to have "+y+Oe(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+y+Oe(e)+" of #{act}",t,f),J(this,"object",f)}z(cp,"assertProperty");j.addMethod("property",cp);function dp(e,t,r){J(this,"own",!0),cp.apply(this,arguments)}z(dp,"assertOwnProperty");j.addMethod("ownProperty",dp);j.addMethod("haveOwnProperty",dp);function pp(e,t,r){typeof t=="string"&&(r=t,t=null),r&&J(this,"message",r);let n=J(this,"object"),o=Object.getOwnPropertyDescriptor(Object(n),e),i=J(this,"eql");o&&t?this.assert(i(t,o),"expected the own property descriptor for "+Oe(e)+" on #{this} to match "+Oe(t)+", got "+Oe(o),"expected the own property descriptor for "+Oe(e)+" on #{this} to not match "+Oe(t),t,o,!0):this.assert(o,"expected #{this} to have an own property descriptor for "+Oe(e),"expected #{this} to not have an own property descriptor for "+Oe(e)),J(this,"object",o)}z(pp,"assertOwnPropertyDescriptor");j.addMethod("ownPropertyDescriptor",pp);j.addMethod("haveOwnPropertyDescriptor",pp);function fp(){J(this,"doLength",!0)}z(fp,"assertLengthChain");function mp(e,t){t&&J(this,"message",t);let r=J(this,"object"),n=qe(r).toLowerCase(),o=J(this,"message"),i=J(this,"ssfi"),a="length",s;switch(n){case"map":case"set":a="size",s=r.size;break;default:new j(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)}z(mp,"assertLength");j.addChainableMethod("length",mp,fp);j.addChainableMethod("lengthOf",mp,fp);function hp(e,t){t&&J(this,"message",t);let r=J(this,"object");this.assert(e.exec(r),"expected #{this} to match "+e,"expected #{this} not to match "+e)}z(hp,"assertMatch");j.addMethod("match",hp);j.addMethod("matches",hp);j.addMethod("string",function(e,t){t&&J(this,"message",t);let r=J(this,"object"),n=J(this,"message"),o=J(this,"ssfi");new j(r,n,o,!0).is.a("string"),this.assert(~r.indexOf(e),"expected #{this} to contain "+Oe(e),"expected #{this} to not contain "+Oe(e))});function yp(e){let t=J(this,"object"),r=qe(t),n=qe(e),o=J(this,"ssfi"),i=J(this,"deep"),a,s="",c,l=!0,d=J(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,T){c.push(T)}),n!=="Array"&&(e=Array.prototype.slice.call(arguments));else{switch(c=np(t),n){case"Array":if(arguments.length>1)throw new xe(p,void 0,o);break;case"Object":if(arguments.length>1)throw new xe(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 xe(d+"keys required",void 0,o);let f=e.length,m=J(this,"any"),y=J(this,"all"),g=e,v=i?J(this,"eql"):(b,T)=>b===T;if(!m&&!y&&(y=!0),m&&(l=g.some(function(b){return c.some(function(T){return v(b,T)})})),y&&(l=g.every(function(b){return c.some(function(T){return v(b,T)})}),J(this,"contains")||(l=l&&e.length==c.length)),f>1){e=e.map(function(T){return Oe(T)});let b=e.pop();y&&(a=e.join(", ")+", and "+b),m&&(a=e.join(", ")+", or "+b)}else a=Oe(e[0]);a=(f>1?"keys ":"key ")+a,a=(J(this,"contains")?"contain ":"have ")+a,this.assert(l,"expected #{this} to "+s+a,"expected #{this} to not "+s+a,g.slice(0).sort(ts),c.sort(ts),!0)}z(yp,"assertKeys");j.addMethod("keys",yp);j.addMethod("key",yp);function el(e,t,r){r&&J(this,"message",r);let n=J(this,"object"),o=J(this,"ssfi"),i=J(this,"message"),a=J(this,"negate")||!1;new j(n,i,o,!0).is.a("function"),(ns(e)||typeof e=="string")&&(t=e,e=null);let s,c=!1;try{n()}catch(m){c=!0,s=m}let l=e===void 0&&t===void 0,d=!!(e&&t),p=!1,f=!1;if(l||!l&&!a){let m="an error";e instanceof Error?m="#{exp}":e&&(m=At.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=At.getConstructorName(s)}catch{}this.assert(c,"expected #{this} to throw "+m,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),y)}if(e&&s&&(e instanceof Error&&At.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())),At.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&&At.getConstructorName(e),s instanceof Error?s.toString():s&&At.getConstructorName(s)))),s&&t!==void 0&&t!==null){let m="including";ns(t)&&(m="matching"),At.compatibleMessage(s,t)===a&&(d&&a?f=!0:this.assert(a,"expected #{this} to throw error "+m+" #{exp} but got #{act}","expected #{this} to throw error not "+m+" #{exp}",t,At.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&&At.getConstructorName(e),s instanceof Error?s.toString():s&&At.getConstructorName(s)),J(this,"object",s)}z(el,"assertThrows");j.addMethod("throw",el);j.addMethod("throws",el);j.addMethod("Throw",el);function gp(e,t){t&&J(this,"message",t);let r=J(this,"object"),n=J(this,"itself"),o=typeof r=="function"&&!n?r.prototype[e]:r[e];this.assert(typeof o=="function","expected #{this} to respond to "+Oe(e),"expected #{this} to not respond to "+Oe(e))}z(gp,"respondTo");j.addMethod("respondTo",gp);j.addMethod("respondsTo",gp);j.addProperty("itself",function(){J(this,"itself",!0)});function bp(e,t){t&&J(this,"message",t);let r=J(this,"object"),n=e(r);this.assert(n,"expected #{this} to satisfy "+gn(e),"expected #{this} to not satisfy"+gn(e),!J(this,"negate"),n)}z(bp,"satisfy");j.addMethod("satisfy",bp);j.addMethod("satisfies",bp);function vp(e,t,r){r&&J(this,"message",r);let n=J(this,"object"),o=J(this,"message"),i=J(this,"ssfi");new j(n,o,i,!0).is.numeric;let a="A `delta` value is required for `closeTo`";if(t==null)throw new xe(o?`${o}: ${a}`:a,void 0,i);if(new j(t,o,i,!0).is.numeric,a="A `expected` value is required for `closeTo`",e==null)throw new xe(o?`${o}: ${a}`:a,void 0,i);new j(e,o,i,!0).is.numeric;let s=z(l=>l<0n?-l:l,"abs"),c=z(l=>parseFloat(parseFloat(l).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)}z(vp,"closeTo");j.addMethod("closeTo",vp);j.addMethod("approximately",vp);function $E(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 l=i.indexOf(s);return l===-1?!1:(n||i.splice(l,1),!0)}return i.some(function(l,d){return r(s,l)?(n||i.splice(d,1),!0):!1})})}z($E,"isSubsetOf");j.addMethod("members",function(e,t){t&&J(this,"message",t);let r=J(this,"object"),n=J(this,"message"),o=J(this,"ssfi");new j(r,n,o,!0).to.be.iterable,new j(e,n,o,!0).to.be.iterable;let i=J(this,"contains"),a=J(this,"ordered"),s,c,l;i?(s=a?"an ordered superset":"a superset",c="expected #{this} to be "+s+" of #{exp}",l="expected #{this} to not be "+s+" of #{exp}"):(s=a?"ordered members":"members",c="expected #{this} to have the same "+s+" as #{exp}",l="expected #{this} to not have the same "+s+" as #{exp}");let d=J(this,"deep")?J(this,"eql"):void 0;this.assert($E(e,r,d,i,a),c,l,e,r,!0)});j.addProperty("iterable",function(e){e&&J(this,"message",e);let t=J(this,"object");this.assert(t!=null&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t)});function FE(e,t){t&&J(this,"message",t);let r=J(this,"object"),n=J(this,"message"),o=J(this,"ssfi"),i=J(this,"contains"),a=J(this,"deep"),s=J(this,"eql");new j(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)}z(FE,"oneOf");j.addMethod("oneOf",FE);function Ep(e,t,r){r&&J(this,"message",r);let n=J(this,"object"),o=J(this,"message"),i=J(this,"ssfi");new j(n,o,i,!0).is.a("function");let a;t?(new j(e,o,i,!0).to.have.property(t),a=e[t]):(new j(e,o,i,!0).is.a("function"),a=e()),n();let s=t==null?e():e[t],c=t==null?a:"."+t;J(this,"deltaMsgObj",c),J(this,"initialDeltaValue",a),J(this,"finalDeltaValue",s),J(this,"deltaBehavior","change"),J(this,"realDelta",s!==a),this.assert(a!==s,"expected "+c+" to change","expected "+c+" to not change")}z(Ep,"assertChanges");j.addMethod("change",Ep);j.addMethod("changes",Ep);function wp(e,t,r){r&&J(this,"message",r);let n=J(this,"object"),o=J(this,"message"),i=J(this,"ssfi");new j(n,o,i,!0).is.a("function");let a;t?(new j(e,o,i,!0).to.have.property(t),a=e[t]):(new j(e,o,i,!0).is.a("function"),a=e()),new j(a,o,i,!0).is.a("number"),n();let s=t==null?e():e[t],c=t==null?a:"."+t;J(this,"deltaMsgObj",c),J(this,"initialDeltaValue",a),J(this,"finalDeltaValue",s),J(this,"deltaBehavior","increase"),J(this,"realDelta",s-a),this.assert(s-a>0,"expected "+c+" to increase","expected "+c+" to not increase")}z(wp,"assertIncreases");j.addMethod("increase",wp);j.addMethod("increases",wp);function _p(e,t,r){r&&J(this,"message",r);let n=J(this,"object"),o=J(this,"message"),i=J(this,"ssfi");new j(n,o,i,!0).is.a("function");let a;t?(new j(e,o,i,!0).to.have.property(t),a=e[t]):(new j(e,o,i,!0).is.a("function"),a=e()),new j(a,o,i,!0).is.a("number"),n();let s=t==null?e():e[t],c=t==null?a:"."+t;J(this,"deltaMsgObj",c),J(this,"initialDeltaValue",a),J(this,"finalDeltaValue",s),J(this,"deltaBehavior","decrease"),J(this,"realDelta",a-s),this.assert(s-a<0,"expected "+c+" to decrease","expected "+c+" to not decrease")}z(_p,"assertDecreases");j.addMethod("decrease",_p);j.addMethod("decreases",_p);function BE(e,t){t&&J(this,"message",t);let r=J(this,"deltaMsgObj"),n=J(this,"initialDeltaValue"),o=J(this,"finalDeltaValue"),i=J(this,"deltaBehavior"),a=J(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)}z(BE,"assertDelta");j.addMethod("by",BE);j.addProperty("extensible",function(){let e=J(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible")});j.addProperty("sealed",function(){let e=J(this,"object"),t=e===Object(e)?Object.isSealed(e):!0;this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed")});j.addProperty("frozen",function(){let e=J(this,"object"),t=e===Object(e)?Object.isFrozen(e):!0;this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen")});j.addProperty("finite",function(e){let t=J(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 os(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 os(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?os(n,o):typeof n=="function"?n(o):o===n}):!1}z(os,"compareSubset");j.addMethod("containSubset",function(e){let t=be(this,"object"),r=Et.showDiff;this.assert(os(e,t),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",e,t,r)});function bn(e,t){return new j(e,t)}z(bn,"expect");bn.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"expect.fail()",new xe(r,{actual:e,expected:t,operator:n},bn.fail)};var UE={};Ud(UE,{Should:()=>Tq,should:()=>_q});function Tp(){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 j(this.valueOf(),null,e):new j(this,null,e)}z(e,"shouldGetter");function t(n){Object.defineProperty(this,"should",{value:n,enumerable:!0,configurable:!0,writable:!0})}z(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 xe(i,{actual:n,expected:o,operator:a},r.fail)},r.equal=function(n,o,i){new j(n,i).to.equal(o)},r.Throw=function(n,o,i,a){new j(n,a).to.Throw(o,i)},r.exist=function(n,o){new j(n,o).to.exist},r.not={},r.not.equal=function(n,o,i){new j(n,i).to.not.equal(o)},r.not.Throw=function(n,o,i,a){new j(n,a).to.not.Throw(o,i)},r.not.exist=function(n,o){new j(n,o).to.not.exist},r.throw=r.Throw,r.not.throw=r.not.Throw,r}z(Tp,"loadShould");var _q=Tp,Tq=Tp;function M(e,t){new j(null,null,M,!0).assert(e,t,"[ negation message unavailable ]")}z(M,"assert");M.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"assert.fail()",new xe(r,{actual:e,expected:t,operator:n},M.fail)};M.isOk=function(e,t){new j(e,t,M.isOk,!0).is.ok};M.isNotOk=function(e,t){new j(e,t,M.isNotOk,!0).is.not.ok};M.equal=function(e,t,r){let n=new j(e,r,M.equal,!0);n.assert(t==be(n,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,!0)};M.notEqual=function(e,t,r){let n=new j(e,r,M.notEqual,!0);n.assert(t!=be(n,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,!0)};M.strictEqual=function(e,t,r){new j(e,r,M.strictEqual,!0).to.equal(t)};M.notStrictEqual=function(e,t,r){new j(e,r,M.notStrictEqual,!0).to.not.equal(t)};M.deepEqual=M.deepStrictEqual=function(e,t,r){new j(e,r,M.deepEqual,!0).to.eql(t)};M.notDeepEqual=function(e,t,r){new j(e,r,M.notDeepEqual,!0).to.not.eql(t)};M.isAbove=function(e,t,r){new j(e,r,M.isAbove,!0).to.be.above(t)};M.isAtLeast=function(e,t,r){new j(e,r,M.isAtLeast,!0).to.be.least(t)};M.isBelow=function(e,t,r){new j(e,r,M.isBelow,!0).to.be.below(t)};M.isAtMost=function(e,t,r){new j(e,r,M.isAtMost,!0).to.be.most(t)};M.isTrue=function(e,t){new j(e,t,M.isTrue,!0).is.true};M.isNotTrue=function(e,t){new j(e,t,M.isNotTrue,!0).to.not.equal(!0)};M.isFalse=function(e,t){new j(e,t,M.isFalse,!0).is.false};M.isNotFalse=function(e,t){new j(e,t,M.isNotFalse,!0).to.not.equal(!1)};M.isNull=function(e,t){new j(e,t,M.isNull,!0).to.equal(null)};M.isNotNull=function(e,t){new j(e,t,M.isNotNull,!0).to.not.equal(null)};M.isNaN=function(e,t){new j(e,t,M.isNaN,!0).to.be.NaN};M.isNotNaN=function(e,t){new j(e,t,M.isNotNaN,!0).not.to.be.NaN};M.exists=function(e,t){new j(e,t,M.exists,!0).to.exist};M.notExists=function(e,t){new j(e,t,M.notExists,!0).to.not.exist};M.isUndefined=function(e,t){new j(e,t,M.isUndefined,!0).to.equal(void 0)};M.isDefined=function(e,t){new j(e,t,M.isDefined,!0).to.not.equal(void 0)};M.isCallable=function(e,t){new j(e,t,M.isCallable,!0).is.callable};M.isNotCallable=function(e,t){new j(e,t,M.isNotCallable,!0).is.not.callable};M.isObject=function(e,t){new j(e,t,M.isObject,!0).to.be.a("object")};M.isNotObject=function(e,t){new j(e,t,M.isNotObject,!0).to.not.be.a("object")};M.isArray=function(e,t){new j(e,t,M.isArray,!0).to.be.an("array")};M.isNotArray=function(e,t){new j(e,t,M.isNotArray,!0).to.not.be.an("array")};M.isString=function(e,t){new j(e,t,M.isString,!0).to.be.a("string")};M.isNotString=function(e,t){new j(e,t,M.isNotString,!0).to.not.be.a("string")};M.isNumber=function(e,t){new j(e,t,M.isNumber,!0).to.be.a("number")};M.isNotNumber=function(e,t){new j(e,t,M.isNotNumber,!0).to.not.be.a("number")};M.isNumeric=function(e,t){new j(e,t,M.isNumeric,!0).is.numeric};M.isNotNumeric=function(e,t){new j(e,t,M.isNotNumeric,!0).is.not.numeric};M.isFinite=function(e,t){new j(e,t,M.isFinite,!0).to.be.finite};M.isBoolean=function(e,t){new j(e,t,M.isBoolean,!0).to.be.a("boolean")};M.isNotBoolean=function(e,t){new j(e,t,M.isNotBoolean,!0).to.not.be.a("boolean")};M.typeOf=function(e,t,r){new j(e,r,M.typeOf,!0).to.be.a(t)};M.notTypeOf=function(e,t,r){new j(e,r,M.notTypeOf,!0).to.not.be.a(t)};M.instanceOf=function(e,t,r){new j(e,r,M.instanceOf,!0).to.be.instanceOf(t)};M.notInstanceOf=function(e,t,r){new j(e,r,M.notInstanceOf,!0).to.not.be.instanceOf(t)};M.include=function(e,t,r){new j(e,r,M.include,!0).include(t)};M.notInclude=function(e,t,r){new j(e,r,M.notInclude,!0).not.include(t)};M.deepInclude=function(e,t,r){new j(e,r,M.deepInclude,!0).deep.include(t)};M.notDeepInclude=function(e,t,r){new j(e,r,M.notDeepInclude,!0).not.deep.include(t)};M.nestedInclude=function(e,t,r){new j(e,r,M.nestedInclude,!0).nested.include(t)};M.notNestedInclude=function(e,t,r){new j(e,r,M.notNestedInclude,!0).not.nested.include(t)};M.deepNestedInclude=function(e,t,r){new j(e,r,M.deepNestedInclude,!0).deep.nested.include(t)};M.notDeepNestedInclude=function(e,t,r){new j(e,r,M.notDeepNestedInclude,!0).not.deep.nested.include(t)};M.ownInclude=function(e,t,r){new j(e,r,M.ownInclude,!0).own.include(t)};M.notOwnInclude=function(e,t,r){new j(e,r,M.notOwnInclude,!0).not.own.include(t)};M.deepOwnInclude=function(e,t,r){new j(e,r,M.deepOwnInclude,!0).deep.own.include(t)};M.notDeepOwnInclude=function(e,t,r){new j(e,r,M.notDeepOwnInclude,!0).not.deep.own.include(t)};M.match=function(e,t,r){new j(e,r,M.match,!0).to.match(t)};M.notMatch=function(e,t,r){new j(e,r,M.notMatch,!0).to.not.match(t)};M.property=function(e,t,r){new j(e,r,M.property,!0).to.have.property(t)};M.notProperty=function(e,t,r){new j(e,r,M.notProperty,!0).to.not.have.property(t)};M.propertyVal=function(e,t,r,n){new j(e,n,M.propertyVal,!0).to.have.property(t,r)};M.notPropertyVal=function(e,t,r,n){new j(e,n,M.notPropertyVal,!0).to.not.have.property(t,r)};M.deepPropertyVal=function(e,t,r,n){new j(e,n,M.deepPropertyVal,!0).to.have.deep.property(t,r)};M.notDeepPropertyVal=function(e,t,r,n){new j(e,n,M.notDeepPropertyVal,!0).to.not.have.deep.property(t,r)};M.ownProperty=function(e,t,r){new j(e,r,M.ownProperty,!0).to.have.own.property(t)};M.notOwnProperty=function(e,t,r){new j(e,r,M.notOwnProperty,!0).to.not.have.own.property(t)};M.ownPropertyVal=function(e,t,r,n){new j(e,n,M.ownPropertyVal,!0).to.have.own.property(t,r)};M.notOwnPropertyVal=function(e,t,r,n){new j(e,n,M.notOwnPropertyVal,!0).to.not.have.own.property(t,r)};M.deepOwnPropertyVal=function(e,t,r,n){new j(e,n,M.deepOwnPropertyVal,!0).to.have.deep.own.property(t,r)};M.notDeepOwnPropertyVal=function(e,t,r,n){new j(e,n,M.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,r)};M.nestedProperty=function(e,t,r){new j(e,r,M.nestedProperty,!0).to.have.nested.property(t)};M.notNestedProperty=function(e,t,r){new j(e,r,M.notNestedProperty,!0).to.not.have.nested.property(t)};M.nestedPropertyVal=function(e,t,r,n){new j(e,n,M.nestedPropertyVal,!0).to.have.nested.property(t,r)};M.notNestedPropertyVal=function(e,t,r,n){new j(e,n,M.notNestedPropertyVal,!0).to.not.have.nested.property(t,r)};M.deepNestedPropertyVal=function(e,t,r,n){new j(e,n,M.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,r)};M.notDeepNestedPropertyVal=function(e,t,r,n){new j(e,n,M.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,r)};M.lengthOf=function(e,t,r){new j(e,r,M.lengthOf,!0).to.have.lengthOf(t)};M.hasAnyKeys=function(e,t,r){new j(e,r,M.hasAnyKeys,!0).to.have.any.keys(t)};M.hasAllKeys=function(e,t,r){new j(e,r,M.hasAllKeys,!0).to.have.all.keys(t)};M.containsAllKeys=function(e,t,r){new j(e,r,M.containsAllKeys,!0).to.contain.all.keys(t)};M.doesNotHaveAnyKeys=function(e,t,r){new j(e,r,M.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)};M.doesNotHaveAllKeys=function(e,t,r){new j(e,r,M.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)};M.hasAnyDeepKeys=function(e,t,r){new j(e,r,M.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)};M.hasAllDeepKeys=function(e,t,r){new j(e,r,M.hasAllDeepKeys,!0).to.have.all.deep.keys(t)};M.containsAllDeepKeys=function(e,t,r){new j(e,r,M.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)};M.doesNotHaveAnyDeepKeys=function(e,t,r){new j(e,r,M.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)};M.doesNotHaveAllDeepKeys=function(e,t,r){new j(e,r,M.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)};M.throws=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null);let o=new j(e,n,M.throws,!0).to.throw(t,r);return be(o,"object")};M.doesNotThrow=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null),new j(e,n,M.doesNotThrow,!0).to.not.throw(t,r)};M.operator=function(e,t,r,n){let o;switch(t){case"==":o=e==r;break;case"===":o=e===r;break;case">":o=e>r;break;case">=":o=e>=r;break;case"<":o=e<r;break;case"<=":o=e<=r;break;case"!=":o=e!=r;break;case"!==":o=e!==r;break;default:throw n=n&&n+": ",new xe(n+'Invalid operator "'+t+'"',void 0,M.operator)}let i=new j(o,n,M.operator,!0);i.assert(be(i,"object")===!0,"expected "+Oe(e)+" to be "+t+" "+Oe(r),"expected "+Oe(e)+" to not be "+t+" "+Oe(r))};M.closeTo=function(e,t,r,n){new j(e,n,M.closeTo,!0).to.be.closeTo(t,r)};M.approximately=function(e,t,r,n){new j(e,n,M.approximately,!0).to.be.approximately(t,r)};M.sameMembers=function(e,t,r){new j(e,r,M.sameMembers,!0).to.have.same.members(t)};M.notSameMembers=function(e,t,r){new j(e,r,M.notSameMembers,!0).to.not.have.same.members(t)};M.sameDeepMembers=function(e,t,r){new j(e,r,M.sameDeepMembers,!0).to.have.same.deep.members(t)};M.notSameDeepMembers=function(e,t,r){new j(e,r,M.notSameDeepMembers,!0).to.not.have.same.deep.members(t)};M.sameOrderedMembers=function(e,t,r){new j(e,r,M.sameOrderedMembers,!0).to.have.same.ordered.members(t)};M.notSameOrderedMembers=function(e,t,r){new j(e,r,M.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)};M.sameDeepOrderedMembers=function(e,t,r){new j(e,r,M.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)};M.notSameDeepOrderedMembers=function(e,t,r){new j(e,r,M.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)};M.includeMembers=function(e,t,r){new j(e,r,M.includeMembers,!0).to.include.members(t)};M.notIncludeMembers=function(e,t,r){new j(e,r,M.notIncludeMembers,!0).to.not.include.members(t)};M.includeDeepMembers=function(e,t,r){new j(e,r,M.includeDeepMembers,!0).to.include.deep.members(t)};M.notIncludeDeepMembers=function(e,t,r){new j(e,r,M.notIncludeDeepMembers,!0).to.not.include.deep.members(t)};M.includeOrderedMembers=function(e,t,r){new j(e,r,M.includeOrderedMembers,!0).to.include.ordered.members(t)};M.notIncludeOrderedMembers=function(e,t,r){new j(e,r,M.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)};M.includeDeepOrderedMembers=function(e,t,r){new j(e,r,M.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)};M.notIncludeDeepOrderedMembers=function(e,t,r){new j(e,r,M.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)};M.oneOf=function(e,t,r){new j(e,r,M.oneOf,!0).to.be.oneOf(t)};M.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${Oe(e)} to be an iterable`:`expected ${Oe(e)} to be an iterable`,new xe(t,void 0,M.isIterable)};M.changes=function(e,t,r,n){arguments.length===3&&typeof t=="function"&&(n=r,r=null),new j(e,n,M.changes,!0).to.change(t,r)};M.changesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new j(e,o,M.changesBy,!0).to.change(t,r).by(n)};M.doesNotChange=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new j(e,n,M.doesNotChange,!0).to.not.change(t,r)};M.changesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new j(e,o,M.changesButNotBy,!0).to.change(t,r).but.not.by(n)};M.increases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new j(e,n,M.increases,!0).to.increase(t,r)};M.increasesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new j(e,o,M.increasesBy,!0).to.increase(t,r).by(n)};M.doesNotIncrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new j(e,n,M.doesNotIncrease,!0).to.not.increase(t,r)};M.increasesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new j(e,o,M.increasesButNotBy,!0).to.increase(t,r).but.not.by(n)};M.decreases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new j(e,n,M.decreases,!0).to.decrease(t,r)};M.decreasesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new j(e,o,M.decreasesBy,!0).to.decrease(t,r).by(n)};M.doesNotDecrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new j(e,n,M.doesNotDecrease,!0).to.not.decrease(t,r)};M.doesNotDecreaseBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);return new j(e,o,M.doesNotDecreaseBy,!0).to.not.decrease(t,r).by(n)};M.decreasesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new j(e,o,M.decreasesButNotBy,!0).to.decrease(t,r).but.not.by(n)};M.ifError=function(e){if(e)throw e};M.isExtensible=function(e,t){new j(e,t,M.isExtensible,!0).to.be.extensible};M.isNotExtensible=function(e,t){new j(e,t,M.isNotExtensible,!0).to.not.be.extensible};M.isSealed=function(e,t){new j(e,t,M.isSealed,!0).to.be.sealed};M.isNotSealed=function(e,t){new j(e,t,M.isNotSealed,!0).to.not.be.sealed};M.isFrozen=function(e,t){new j(e,t,M.isFrozen,!0).to.be.frozen};M.isNotFrozen=function(e,t){new j(e,t,M.isNotFrozen,!0).to.not.be.frozen};M.isEmpty=function(e,t){new j(e,t,M.isEmpty,!0).to.be.empty};M.isNotEmpty=function(e,t){new j(e,t,M.isNotEmpty,!0).to.not.be.empty};M.containsSubset=function(e,t,r){new j(e,r).to.containSubset(t)};M.doesNotContainSubset=function(e,t,r){new j(e,r).to.not.containSubset(t)};var Sq=[["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 Sq)M[t]=M[e];var $m=[];function Jn(e){let t={use:Jn,AssertionError:xe,util:or,config:Et,expect:bn,assert:M,Assertion:j,...UE};return~$m.indexOf(e)||(e(t,or),$m.push(e)),t}z(Jn,"use");var JE={};Tt(JE,{toBeChecked:()=>Pw,toBeDisabled:()=>ww,toBeEmpty:()=>aw,toBeEmptyDOMElement:()=>sw,toBeEnabled:()=>_w,toBeInTheDOM:()=>rc,toBeInTheDocument:()=>iw,toBeInvalid:()=>Aw,toBePartiallyChecked:()=>Nw,toBeRequired:()=>Tw,toBeValid:()=>Rw,toBeVisible:()=>yw,toContainElement:()=>nc,toContainHTML:()=>lw,toHaveAccessibleDescription:()=>oc,toHaveAccessibleErrorMessage:()=>cw,toHaveAccessibleName:()=>ac,toHaveAttribute:()=>dw,toHaveClass:()=>pw,toHaveDescription:()=>Iw,toHaveDisplayValue:()=>xw,toHaveErrorMessage:()=>Mw,toHaveFocus:()=>fw,toHaveFormValues:()=>mw,toHaveRole:()=>ic,toHaveSelection:()=>jw,toHaveStyle:()=>sc,toHaveTextContent:()=>uw,toHaveValue:()=>Ow});var Fm=We(fg(),1);function HE(e){Object.defineProperty(e,"__esModule",{value:!0,configurable:!0})}function Sp(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var VE={};HE(VE);Sp(VE,"default",()=>zE);var zE=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}},GE={};HE(GE);Sp(GE,"default",()=>WE);var WE=class{constructor(e,t,r){this.start=e,this.end=t,this.source=r}},Aq={};Sp(Aq,"CssTypes",()=>Ke);var Ke;(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"})(Ke||(Ke={}));var Xl=/\/\*[^]*?(?:\*\/|$)/g,Rq=(e,t)=>{t=t||{};let r=1,n=1;function o(D){let G=D.match(/\n/g);G&&(r+=G.length);let Q=D.lastIndexOf(`
214
+ `);n=~Q?D.length-Q:n+D.length}function i(){let D={line:r,column:n};return function(G){return G.position=new WE(D,{line:r,column:n},t?.source||""),m(),G}}let a=[];function s(D){let G=new zE(t?.source||"",D,r,n,e);if(t?.silent)a.push(G);else throw G}function c(){let D=p();return{type:Ke.stylesheet,stylesheet:{source:t?.source,rules:D,parsingErrors:a}}}function l(){return f(/^{\s*/)}function d(){return f(/^}/)}function p(){let D,G=[];for(m(),y(G);e.length&&e.charAt(0)!=="}"&&(D=ue()||L());)D&&(G.push(D),y(G));return G}function f(D){let G=D.exec(e);if(!G)return;let Q=G[0];return o(Q),e=e.slice(Q.length),G}function m(){f(/^\s*/)}function y(D){let G;for(D=D||[];G=g();)G&&D.push(G);return D}function g(){let D=i();if(e.charAt(0)!=="/"||e.charAt(1)!=="*")return;let G=f(/^\/\*[^]*?\*\//);return G?D({type:Ke.comment,comment:G[0].slice(2,-2)}):s("End of comment missing")}function v(D,G,Q){let X=G+1,Y=!1,ie=D.indexOf(")",X);for(;!Y&&ie!==-1;){let se=D.indexOf("(",X);se!==-1&&se<ie?(X=v(D,se+1)+1,ie=D.indexOf(")",X)):Y=!0}return Y&&ie!==-1?ie:-1}function b(){let D=f(/^([^{]+)/);if(!D)return;let G=kt(D[0]).replace(Xl,"");if(G.indexOf(",")===-1)return[G];let Q=0,X=G.indexOf("(",Q);for(;X!==-1;){let Y=v(G,X);if(Y===-1)break;Q=Y+1,G=G.substring(0,X)+G.substring(X,Y).replace(/,/g,"‌")+G.substring(Y),X=G.indexOf("(",Q)}return G=G.replace(/("|')(?:\\\1|.)*?\1/g,Y=>Y.replace(/,/g,"‌")),G.split(",").map(Y=>kt(Y.replace(/\u200C/g,",")))}function T(){let D=i(),G=f(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!G)return;let Q=kt(G[0]);if(!f(/^:\s*/))return s("property missing ':'");let X=f(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),Y=D({type:Ke.declaration,property:Q.replace(Xl,""),value:X?kt(X[0]).replace(Xl,""):""});return f(/^[;\s]*/),Y}function R(){let D=[];if(!l())return s("missing '{'");y(D);let G;for(;G=T();)G&&(D.push(G),y(D));return d()?D:s("missing '}'")}function x(){let D,G=[],Q=i();for(;D=f(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)G.push(D[1]),f(/^,\s*/);if(G.length)return Q({type:Ke.keyframe,values:G,declarations:R()||[]})}function C(){let D=i(),G=f(/^@([-\w]+)?keyframes\s*/);if(!G)return;let Q=G[1],X=f(/^([-\w]+)\s*/);if(!X)return s("@keyframes missing name");let Y=X[1];if(!l())return s("@keyframes missing '{'");let ie,se=y();for(;ie=x();)se.push(ie),se=se.concat(y());return d()?D({type:Ke.keyframes,name:Y,vendor:Q,keyframes:se}):s("@keyframes missing '}'")}function E(){let D=i(),G=f(/^@supports *([^{]+)/);if(!G)return;let Q=kt(G[1]);if(!l())return s("@supports missing '{'");let X=y().concat(p());return d()?D({type:Ke.supports,supports:Q,rules:X}):s("@supports missing '}'")}function _(){let D=i();if(!f(/^@host\s*/))return;if(!l())return s("@host missing '{'");let G=y().concat(p());return d()?D({type:Ke.host,rules:G}):s("@host missing '}'")}function S(){let D=i(),G=f(/^@container *([^{]+)/);if(!G)return;let Q=kt(G[1]);if(!l())return s("@container missing '{'");let X=y().concat(p());return d()?D({type:Ke.container,container:Q,rules:X}):s("@container missing '}'")}function A(){let D=i(),G=f(/^@layer *([^{;@]+)/);if(!G)return;let Q=kt(G[1]);if(!l())return f(/^[;\s]*/),D({type:Ke.layer,layer:Q});let X=y().concat(p());return d()?D({type:Ke.layer,layer:Q,rules:X}):s("@layer missing '}'")}function $(){let D=i(),G=f(/^@media *([^{]+)/);if(!G)return;let Q=kt(G[1]);if(!l())return s("@media missing '{'");let X=y().concat(p());return d()?D({type:Ke.media,media:Q,rules:X}):s("@media missing '}'")}function k(){let D=i(),G=f(/^@custom-media\s+(--\S+)\s*([^{;\s][^{;]*);/);if(G)return D({type:Ke.customMedia,name:kt(G[1]),media:kt(G[2])})}function H(){let D=i();if(!f(/^@page */))return;let G=b()||[];if(!l())return s("@page missing '{'");let Q=y(),X;for(;X=T();)Q.push(X),Q=Q.concat(y());return d()?D({type:Ke.page,selectors:G,declarations:Q}):s("@page missing '}'")}function I(){let D=i(),G=f(/^@([-\w]+)?document *([^{]+)/);if(!G)return;let Q=kt(G[1]),X=kt(G[2]);if(!l())return s("@document missing '{'");let Y=y().concat(p());return d()?D({type:Ke.document,document:X,vendor:Q,rules:Y}):s("@document missing '}'")}function O(){let D=i();if(!f(/^@font-face\s*/))return;if(!l())return s("@font-face missing '{'");let G=y(),Q;for(;Q=T();)G.push(Q),G=G.concat(y());return d()?D({type:Ke.fontFace,declarations:G}):s("@font-face missing '}'")}function q(){let D=i();if(!f(/^@starting-style\s*/))return;if(!l())return s("@starting-style missing '{'");let G=y().concat(p());return d()?D({type:Ke.startingStyle,rules:G}):s("@starting-style missing '}'")}let F=oe("import"),V=oe("charset"),K=oe("namespace");function oe(D){let G=new RegExp("^@"+D+`\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);return function(){let Q=i(),X=f(G);if(!X)return;let Y={type:D};return Y[D]=X[1].trim(),Q(Y)}}function ue(){if(e[0]==="@")return C()||$()||k()||E()||F()||V()||K()||I()||H()||_()||O()||S()||q()||A()}function L(){let D=i(),G=b();return G?(y(),D({type:Ke.rule,selectors:G,declarations:R()||[]})):s("selector missing")}return ec(c())};function kt(e){return e?e.trim():""}function ec(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=>{ec(a,n)}):i&&typeof i=="object"&&ec(i,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var Oq=Rq,xq=Oq,Pq=Object.prototype.toString;function Cq(e){return typeof e=="function"||Pq.call(e)==="[object Function]"}function Nq(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var Iq=Math.pow(2,53)-1;function Mq(e){var t=Nq(e);return Math.min(Math.max(t,0),Iq)}function Vt(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=Mq(n.length),i=Cq(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 Ei(e){"@babel/helpers - typeof";return Ei=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},Ei(e)}function jq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kq(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,YE(n.key),n)}}function qq(e,t,r){return t&&kq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lq(e,t,r){return t=YE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YE(e){var t=Dq(e,"string");return Ei(t)==="symbol"?t:String(t)}function Dq(e,t){if(Ei(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ei(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $q=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];jq(this,e),Lq(this,"items",void 0),this.items=t}return qq(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})(),Fq=typeof Set>"u"?Set:$q;function ft(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var Bq={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"},Uq={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 Jq(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=Uq[t])!==null&&n!==void 0&&n.has(r))})}function KE(e,t){return Jq(e,t)}function Hq(e){var t=zq(e);if(t===null||tc.indexOf(t)!==-1){var r=Vq(e);if(tc.indexOf(t||"")===-1||KE(e,r||""))return r}return t}function Vq(e){var t=Bq[ft(e)];if(t!==void 0)return t;switch(ft(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!KE(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 zq(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}var tc=["presentation","none"];function Fe(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function XE(e){return Fe(e)&&ft(e)==="caption"}function Ma(e){return Fe(e)&&ft(e)==="input"}function Gq(e){return Fe(e)&&ft(e)==="optgroup"}function Wq(e){return Fe(e)&&ft(e)==="select"}function Yq(e){return Fe(e)&&ft(e)==="table"}function Kq(e){return Fe(e)&&ft(e)==="textarea"}function Xq(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function Qq(e){return Fe(e)&&ft(e)==="fieldset"}function Zq(e){return Fe(e)&&ft(e)==="legend"}function eL(e){return Fe(e)&&ft(e)==="slot"}function tL(e){return Fe(e)&&e.ownerSVGElement!==void 0}function rL(e){return Fe(e)&&ft(e)==="svg"}function nL(e){return tL(e)&&ft(e)==="title"}function is(e,t){if(Fe(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 br(e,t){return Fe(e)?t.indexOf(Hq(e))!==-1:!1}function oL(e){return e.trim().replace(/\s\s+/g," ")}function iL(e,t){if(!Fe(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 aL(e){return br(e,["button","combobox","listbox","textbox"])||QE(e,"range")}function QE(e,t){if(!Fe(e))return!1;switch(t){case"range":return br(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function Bm(e,t){var r=Vt(e.querySelectorAll(t));return is(e,"aria-owns").forEach(function(n){r.push.apply(r,Vt(n.querySelectorAll(t)))}),r}function sL(e){return Wq(e)?e.selectedOptions||Bm(e,"[selected]"):Bm(e,'[aria-selected="true"]')}function lL(e){return br(e,tc)}function uL(e){return XE(e)}function cL(e){return br(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function dL(e){return!1}function pL(e){return Ma(e)||Kq(e)?e.value:e.textContent||""}function Um(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function ZE(e){var t=ft(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function ew(e){if(ZE(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&Fe(r)){var n=ew(r);n!==null&&(t=n)}}),t}function fL(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):ew(e)}function mL(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return Vt(t);if(!ZE(e))return null;var r=e.ownerDocument;return Vt(r.querySelectorAll("label")).filter(function(n){return fL(n)===e})}function hL(e){var t=e.assignedNodes();return t.length===0?Vt(e.childNodes):t}function tw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new Fq,n=Xq(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,l=c===void 0?n.getComputedStyle.bind(n):c,d=t.hidden,p=d===void 0?!1:d;function f(b,T){var R="";if(Fe(b)&&s){var x=l(b,"::before"),C=Um(x);R="".concat(C," ").concat(R)}var E=eL(b)?hL(b):Vt(b.childNodes).concat(is(b,"aria-owns"));if(E.forEach(function(A){var $=v(A,{isEmbeddedInLabel:T.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),k=Fe(A)?l(A).getPropertyValue("display"):"inline",H=k!=="inline"?" ":"";R+="".concat(H).concat($).concat(H)}),Fe(b)&&s){var _=l(b,"::after"),S=Um(_);R="".concat(R," ").concat(S)}return R.trim()}function m(b,T){var R=b.getAttributeNode(T);return R!==null&&!r.has(R)&&R.value.trim()!==""?(r.add(R),R.value):null}function y(b){return Fe(b)?m(b,"title"):null}function g(b){if(!Fe(b))return null;if(Qq(b)){r.add(b);for(var T=Vt(b.childNodes),R=0;R<T.length;R+=1){var x=T[R];if(Zq(x))return v(x,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(Yq(b)){r.add(b);for(var C=Vt(b.childNodes),E=0;E<C.length;E+=1){var _=C[E];if(XE(_))return v(_,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(rL(b)){r.add(b);for(var S=Vt(b.childNodes),A=0;A<S.length;A+=1){var $=S[A];if(nL($))return $.textContent}return null}else if(ft(b)==="img"||ft(b)==="area"){var k=m(b,"alt");if(k!==null)return k}else if(Gq(b)){var H=m(b,"label");if(H!==null)return H}if(Ma(b)&&(b.type==="button"||b.type==="submit"||b.type==="reset")){var I=m(b,"value");if(I!==null)return I;if(b.type==="submit")return"Submit";if(b.type==="reset")return"Reset"}var O=mL(b);if(O!==null&&O.length!==0)return r.add(b),Vt(O).map(function(K){return v(K,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(K){return K.length>0}).join(" ");if(Ma(b)&&b.type==="image"){var q=m(b,"alt");if(q!==null)return q;var F=m(b,"title");return F!==null?F:"Submit Query"}if(br(b,["button"])){var V=f(b,{isEmbeddedInLabel:!1});if(V!=="")return V}return null}function v(b,T){if(r.has(b))return"";if(!p&&iL(b,l)&&!T.isReferenced)return r.add(b),"";var R=Fe(b)?b.getAttributeNode("aria-labelledby"):null,x=R!==null&&!r.has(R)?is(b,"aria-labelledby"):[];if(i==="name"&&!T.isReferenced&&x.length>0)return r.add(R),x.map(function(k){return v(k,{isEmbeddedInLabel:T.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var C=T.recursion&&aL(b)&&i==="name";if(!C){var E=(Fe(b)&&b.getAttribute("aria-label")||"").trim();if(E!==""&&i==="name")return r.add(b),E;if(!lL(b)){var _=g(b);if(_!==null)return r.add(b),_}}if(br(b,["menu"]))return r.add(b),"";if(C||T.isEmbeddedInLabel||T.isReferenced){if(br(b,["combobox","listbox"])){r.add(b);var S=sL(b);return S.length===0?Ma(b)?b.value:"":Vt(S).map(function(k){return v(k,{isEmbeddedInLabel:T.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(QE(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(br(b,["textbox"]))return r.add(b),pL(b)}if(cL(b)||Fe(b)&&T.isReferenced||uL(b)||dL()){var A=f(b,{isEmbeddedInLabel:T.isEmbeddedInLabel});if(A!=="")return r.add(b),A}if(b.nodeType===b.TEXT_NODE)return r.add(b),b.textContent||"";if(T.recursion)return r.add(b),f(b,{isEmbeddedInLabel:T.isEmbeddedInLabel});var $=y(b);return $!==null?(r.add(b),$):(r.add(b),"")}return oL(v(e,{isEmbeddedInLabel:!1,isReferenced:i==="description",recursion:!1}))}function wi(e){"@babel/helpers - typeof";return wi=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},wi(e)}function Jm(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 Hm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jm(Object(r),!0).forEach(function(n){yL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yL(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=bL(e,"string");return wi(t)==="symbol"?t:String(t)}function bL(e,t){if(wi(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wi(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=is(e,"aria-describedby").map(function(i){return tw(i,Hm(Hm({},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 EL(e){return br(e,["caption","code","deletion","emphasis","generic","insertion","none","paragraph","presentation","strong","subscript","superscript"])}function wL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return EL(e)?"":tw(e,t)}var Ap=We(ed(),1),_L=We(hg(),1),Rp=We(Rg(),1),TL=We(Og(),1),rw=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
+ `)}},Vm=class extends rw{constructor(...e){super("be an HTMLElement or an SVGElement",...e)}},zm=class extends rw{constructor(...e){super("be a Node",...e)}};function nw(e,t,...r){if(!e||!e.ownerDocument||!e.ownerDocument.defaultView)throw new t(e,...r)}function SL(e,...t){nw(e,zm,...t);let r=e.ownerDocument.defaultView;if(!(e instanceof r.Node))throw new zm(e,...t)}function je(e,...t){nw(e,Vm,...t);let r=e.ownerDocument.defaultView;if(!(e instanceof r.HTMLElement)&&!(e instanceof r.SVGElement))throw new Vm(e,...t)}var AL=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 RL(e,...t){let r=xq(`selector { ${e} }`,{silent:!0}).stylesheet;if(r.parsingErrors&&r.parsingErrors.length>0){let{reason:n,line:o}=r.parsingErrors[0];throw new AL({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 Gm(e,t){return typeof t=="string"?t:e.utils.stringify(t)}function lt(e,t,r,n,o,i){return[`${t}
217
+ `,`${r}:
218
+ ${e.utils.EXPECTED_COLOR((0,Fm.default)(Gm(e,n),2))}`,`${o}:
219
+ ${e.utils.RECEIVED_COLOR((0,Fm.default)(Gm(e,i),2))}`].join(`
220
+ `)}function OL(e,t){return t instanceof RegExp?t.test(e):e.includes(String(t))}function tl(e,t){console.warn(`Warning: ${e} has been deprecated and will be removed in future updates.`,t)}function rl(e){return e.replace(/\s+/g," ").trim()}function Vr(e){return e.tagName&&e.tagName.toLowerCase()}function xL({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 PL(e){switch(e.type){case"number":return e.value===""?null:Number(e.value);case"checkbox":return e.checked;default:return e.value}}var CL=["meter","progressbar","slider","spinbutton"];function NL(e){if(CL.includes(e.getAttribute("role")))return Number(e.getAttribute("aria-valuenow"))}function ow(e){if(e)switch(e.tagName.toLowerCase()){case"input":return PL(e);case"select":return xL(e);default:return e.value??NL(e)}}function IL(e,{wordConnector:t=", ",lastWordConnector:r=" and "}={}){return[e.slice(0,-1).join(t),e[e.length-1]].join(e.length>1?r:"")}function Op(e,t){if(Array.isArray(e)&&Array.isArray(t))return[...new Set(e)].every(r=>new Set(t).has(r))}function rc(e,t){return tl("toBeInTheDOM","Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container."),e&&je(e,rc,this),t&&je(t,rc,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 iw(e){(e!==null||!this.isNot)&&je(e,iw,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 aw(e){return tl("toBeEmpty","Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM."),je(e,aw,this),{pass:e.innerHTML==="",message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmpty`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
223
+ `)}}function sw(e){return je(e,sw,this),{pass:ML(e),message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmptyDOMElement`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
224
+ `)}}function ML(e){return[...e.childNodes].filter(t=>t.nodeType!==8).length===0}function nc(e,t){return je(e,nc,this),t!==null&&je(t,nc,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 jL(e,t){let r=e.ownerDocument.createElement("div");return r.innerHTML=t,r.innerHTML}function lw(e,t){if(je(e,lw,this),typeof t!="string")throw new Error(`.toContainHTML() expects a string value, got ${t}`);return{pass:e.outerHTML.includes(jL(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 uw(e,t,r={normalizeWhitespace:!0}){SL(e,uw,this);let n=r.normalizeWhitespace?rl(e.textContent):e.textContent.replace(/\u00a0/g," "),o=n!==""&&t==="";return{pass:!o&&OL(n,t),message:()=>{let i=this.isNot?"not to":"to";return lt(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 oc(e,t){je(e,oc,this);let r=vL(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 lt(this,this.utils.matcherHint(`${this.isNot?".not":""}.${oc.name}`,"element",""),`Expected element ${i} have accessible description`,t,"Received",r)}}}var Vo="aria-invalid",kL=["false"];function cw(e,t){je(e,cw,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:()=>lt(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(Vo);if(!e.hasAttribute(Vo)||kL.includes(i))return{pass:!1,message:()=>lt(this,this.utils.matcherHint(n,"element"),"Expected element to be marked as invalid with attribute",`${Vo}="${String(!0)}"`,"Received",e.hasAttribute("aria-invalid")?`${Vo}="${e.getAttribute(Vo)}`:null)};let a=rl(e.ownerDocument.getElementById(o)?.textContent??"");return{pass:t===void 0?!!a:t instanceof RegExp?t.test(a):this.equals(a,t),message:()=>lt(this,this.utils.matcherHint(n,"element"),`Expected element ${r} have accessible error message`,t??"","Received",a)}}var qL=$L(Ap.elementRoles);function ic(e,t){je(e,ic,this);let r=LL(e);return{pass:r.some(n=>n===t),message:()=>{let n=this.isNot?"not to":"to";return lt(this,this.utils.matcherHint(`${this.isNot?".not":""}.${ic.name}`,"element",""),`Expected element ${n} have role`,t,"Received",r.join(", "))}}}function LL(e){return e.hasAttribute("role")?e.getAttribute("role").split(" ").filter(Boolean):DL(e)}function DL(e){for(let{match:t,roles:r}of qL)if(t(e))return[...r];return[]}function $L(e){function t({name:a,attributes:s}){return`${a}${s.map(({name:c,value:l,constraints:d=[]})=>d.indexOf("undefined")!==-1?`:not([${c}])`:l?`[${c}="${l}"]`:`[${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 l=t({...a,attributes:s});return d=>c>=0&&d.type!=="text"?!1:d.matches(l)}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 ac(e,t){je(e,ac,this);let r=wL(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 lt(this,this.utils.matcherHint(`${this.isNot?".not":""}.${ac.name}`,"element",""),`Expected element ${i} have accessible name`,t,"Received",r)}}}function Wm(e,t,r){return r===void 0?t:`${t}=${e(r)}`}function FL(e,t,r){return r===void 0?`element.hasAttribute(${e(t)})`:`element.getAttribute(${e(t)}) === ${e(r)}`}function dw(e,t,r){je(e,dw,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?Wm(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:FL(this.utils.stringify,t,r)});return lt(this,c,`Expected the element ${a} have attribute`,Wm(this.utils.stringify,t,r),"Received",s)}}}function BL(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 Ym(e){return e?e.split(/\s+/).filter(t=>t.length>0):[]}function Km(e,t){return e.every(r=>typeof r=="string"?t.includes(r):t.some(n=>r.test(n)))}function pw(e,...t){je(e,pw,this);let{expectedClassNames:r,options:n}=BL(t),o=Ym(e.getAttribute("class")),i=r.reduce((s,c)=>s.concat(typeof c=="string"||!c?Ym(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:Km(i,o)&&i.length===o.length,message:()=>{let s=this.isNot?"not to":"to";return lt(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:Km(i,o),message:()=>{let s=this.isNot?"not to":"to";return lt(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?lt(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 UL(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 JL(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 Xm(e){return Object.keys(e).sort().map(t=>`${t}: ${e[t]};`).join(`
229
+ `)}function HL(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(Xm(t),Xm(n)).replace(`${_L.default.red("+ Received")}
230
+ `,"")}function sc(e,t){je(e,sc,this);let r=typeof t=="object"?t:RL(t,sc,this),{getComputedStyle:n}=e.ownerDocument.defaultView,o=UL(e.ownerDocument,r),i=n(e);return{pass:JL(o,i),message:()=>{let a=`${this.isNot?".not":""}.toHaveStyle`;return[this.utils.matcherHint(a,"element",""),HL(this.utils.diff,o,i)].join(`
231
+
232
+ `)}}}function fw(e){return je(e,fw,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 VL(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 zL(e,t){let r=[...e.querySelectorAll(`[name="${(0,TL.default)(t)}"]`)];if(r.length!==0)switch(r.length){case 1:return ow(r[0]);default:return VL(r)}}function GL(e){return/\[\]$/.test(e)?e.slice(0,-2):e}function WL(e){return Array.from(e.elements).map(t=>t.name).reduce((t,r)=>({...t,[GL(r)]:zL(e,r)}),{})}function mw(e,t){if(je(e,mw,this),!e.elements)throw new Error("toHaveFormValues must be called on a form or a fieldset");let r=WL(e);return{pass:Object.entries(t).every(([n,o])=>(0,Rp.default)(r[n],o,Op)),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 YL(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 KL(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 hw(e,t){return YL(e)&&KL(e,t)&&(!e.parentElement||hw(e.parentElement,e))}function yw(e){je(e,yw,this);let t=e.ownerDocument===e.getRootNode({composed:!0}),r=t&&hw(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 XL=["fieldset","input","select","optgroup","option","button","textarea"];function QL(e,t){return Vr(e)==="legend"&&Vr(t)==="fieldset"&&e.isSameNode(Array.from(t.children).find(r=>Vr(r)==="legend"))}function ZL(e,t){return bw(t)&&!QL(e,t)}function eD(e){return e.includes("-")}function gw(e){let t=Vr(e);return XL.includes(t)||eD(t)}function bw(e){return gw(e)&&e.hasAttribute("disabled")}function vw(e){let t=e.parentElement;return!!t&&(ZL(e,t)||vw(t))}function Ew(e){return gw(e)&&(bw(e)||vw(e))}function ww(e){je(e,ww,this);let t=Ew(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 _w(e){je(e,_w,this);let t=!Ew(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 tD=["select","textarea"],rD=["input","select","textarea"],nD=["color","hidden","range","submit","image","reset"],oD=["checkbox","combobox","gridcell","listbox","radiogroup","spinbutton","textbox","tree"];function iD(e){return tD.includes(Vr(e))&&e.hasAttribute("required")}function aD(e){return Vr(e)==="input"&&e.hasAttribute("required")&&(e.hasAttribute("type")&&!nD.includes(e.getAttribute("type"))||!e.hasAttribute("type"))}function sD(e){return e.hasAttribute("aria-required")&&e.getAttribute("aria-required")==="true"&&(rD.includes(Vr(e))||e.hasAttribute("role")&&oD.includes(e.getAttribute("role")))}function Tw(e){je(e,Tw,this);let t=iD(e)||aD(e)||sD(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 lD=["form","input","select","textarea"];function uD(e){return e.hasAttribute("aria-invalid")&&e.getAttribute("aria-invalid")!=="false"}function cD(e){return lD.includes(Vr(e))}function Sw(e){let t=uD(e);return cD(e)?t||!e.checkValidity():t}function Aw(e){je(e,Aw,this);let t=Sw(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 Rw(e){je(e,Rw,this);let t=!Sw(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 Ow(e,t){if(je(e,Ow,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=ow(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,Rp.default)(r,t,Op):!!r,message:()=>{let a=this.isNot?"not to":"to",s=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveValue`,"element",t);return lt(this,s,`Expected the element ${a} have value`,n?o:"(any)","Received",i)}}}function xw(e,t){je(e,xw,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=dD(r,e),o=pD(t),i=o.filter(c=>n.some(l=>c instanceof RegExp?c.test(l):this.equals(l,String(c)))).length,a=i===n.length,s=i===o.length;return{pass:a&&s,message:()=>lt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDisplayValue`,"element",""),`Expected element ${this.isNot?"not ":""}to have display value`,t,"Received",n)}}function dD(e,t){return e==="select"?Array.from(t).filter(r=>r.selected).map(r=>r.textContent):[t.value]}function pD(e){return e instanceof Array?e:[e]}function Pw(e){je(e,Pw,this);let t=()=>e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.type),r=()=>Cw(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 ${fD()} 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 fD(){return IL(mD().map(e=>`role="${e}"`),{lastWordConnector:" or "})}function mD(){return Ap.roles.keys().filter(Cw)}function Cw(e){return Ap.roles.get(e)?.props["aria-checked"]!==void 0}function Nw(e){je(e,Nw,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 Iw(e,t){tl("toHaveDescription","Please use toHaveAccessibleDescription."),je(e,Iw,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=rl(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 lt(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 Mw(e,t){if(tl("toHaveErrorMessage","Please use toHaveAccessibleErrorMessage."),je(e,Mw,this),!e.hasAttribute("aria-invalid")||e.getAttribute("aria-invalid")==="false"){let i=this.isNot?".not":"";return{pass:!1,message:()=>lt(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=rl(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 lt(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 hD(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 jw(e,t){je(e,jw,this);let r=t!==void 0;if(r&&typeof t!="string")throw new Error("expected selection must be a string or undefined");let n=hD(e);return{pass:r?(0,Rp.default)(n,t,Op):!!n,message:()=>{let o=this.isNot?"not to":"to",i=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveSelection`,"element",t);return lt(this,i,`Expected the element ${o} have selection`,r?t:"(any)","Received",n)}}}We(fg(),1);We(ed(),1);We(hg(),1);We(Rg(),1);We(Og(),1);var Ql,Qm;function yD(){if(Qm)return Ql;Qm=1;var e,t,r,n,o,i,a,s,c,l,d,p,f,m,y,g,v,b,T;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,T=/[\t\v\f\ufeff\p{Zs}]+/yu,s=/\r?\n|[\r\u2028\u2029]/y,c=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,m=/\/\/.*/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))?$|[{}([,;<>=*%&|^!~?:]$/,v=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,i=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,a=/^(?:return|throw|yield)$/,l=RegExp(s.source),Ql=function*(R,{jsx:x=!1}={}){var C,E,_,S,A,$,k,H,I,O,q,F,V,K;for({length:$}=R,S=0,A="",K=[{tag:"JS"}],C=[],q=0,F=!1;S<$;){switch(H=K[K.length-1],H.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(R[S]==="/"&&(b.test(A)||i.test(A))&&(f.lastIndex=S,k=f.exec(R))){S=f.lastIndex,A=k[0],F=!0,yield{type:"RegularExpressionLiteral",value:k[0],closed:k[1]!==void 0&&k[1]!=="\\"};continue}if(p.lastIndex=S,k=p.exec(R)){switch(V=k[0],I=p.lastIndex,O=V,V){case"(":A==="?NonExpressionParenKeyword"&&K.push({tag:"JSNonExpressionParen",nesting:q}),q++,F=!1;break;case")":q--,F=!0,H.tag==="JSNonExpressionParen"&&q===H.nesting&&(K.pop(),O="?NonExpressionParenEnd",F=!1);break;case"{":p.lastIndex=0,_=!v.test(A)&&(b.test(A)||i.test(A)),C.push(_),F=!1;break;case"}":switch(H.tag){case"InterpolationInTemplate":if(C.length===H.nesting){g.lastIndex=S,k=g.exec(R),S=g.lastIndex,A=k[0],k[1]==="${"?(A="?InterpolationInTemplate",F=!1,yield{type:"TemplateMiddle",value:k[0]}):(K.pop(),F=!0,yield{type:"TemplateTail",value:k[0],closed:k[1]==="`"});continue}break;case"InterpolationInJSX":if(C.length===H.nesting){K.pop(),S+=1,A="}",yield{type:"JSXPunctuator",value:"}"};continue}}F=C.pop(),O=F?"?ExpressionBraceEnd":"}";break;case"]":F=!0;break;case"++":case"--":O=F?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(x&&(b.test(A)||i.test(A))){K.push({tag:"JSXTag"}),S+=1,A="<",yield{type:"JSXPunctuator",value:V};continue}F=!1;break;default:F=!1}S=I,A=O,yield{type:"Punctuator",value:V};continue}if(e.lastIndex=S,k=e.exec(R)){switch(S=e.lastIndex,O=k[0],k[0]){case"for":case"if":case"while":case"with":A!=="."&&A!=="?."&&(O="?NonExpressionParenKeyword")}A=O,F=!i.test(k[0]),yield{type:k[1]==="#"?"PrivateIdentifier":"IdentifierName",value:k[0]};continue}if(y.lastIndex=S,k=y.exec(R)){S=y.lastIndex,A=k[0],F=!0,yield{type:"StringLiteral",value:k[0],closed:k[2]!==void 0};continue}if(d.lastIndex=S,k=d.exec(R)){S=d.lastIndex,A=k[0],F=!0,yield{type:"NumericLiteral",value:k[0]};continue}if(g.lastIndex=S,k=g.exec(R)){S=g.lastIndex,A=k[0],k[1]==="${"?(A="?InterpolationInTemplate",K.push({tag:"InterpolationInTemplate",nesting:C.length}),F=!1,yield{type:"TemplateHead",value:k[0]}):(F=!0,yield{type:"NoSubstitutionTemplate",value:k[0],closed:k[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(r.lastIndex=S,k=r.exec(R)){switch(S=r.lastIndex,O=k[0],k[0]){case"<":K.push({tag:"JSXTag"});break;case">":K.pop(),A==="/"||H.tag==="JSXTagEnd"?(O="?JSX",F=!0):K.push({tag:"JSXChildren"});break;case"{":K.push({tag:"InterpolationInJSX",nesting:C.length}),O="?InterpolationInJSX",F=!1;break;case"/":A==="<"&&(K.pop(),K[K.length-1].tag==="JSXChildren"&&K.pop(),K.push({tag:"JSXTagEnd"}))}A=O,yield{type:"JSXPunctuator",value:k[0]};continue}if(t.lastIndex=S,k=t.exec(R)){S=t.lastIndex,A=k[0],yield{type:"JSXIdentifier",value:k[0]};continue}if(n.lastIndex=S,k=n.exec(R)){S=n.lastIndex,A=k[0],yield{type:"JSXString",value:k[0],closed:k[2]!==void 0};continue}break;case"JSXChildren":if(o.lastIndex=S,k=o.exec(R)){S=o.lastIndex,A=k[0],yield{type:"JSXText",value:k[0]};continue}switch(R[S]){case"<":K.push({tag:"JSXTag"}),S++,A="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":K.push({tag:"InterpolationInJSX",nesting:C.length}),S++,A="?InterpolationInJSX",F=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(T.lastIndex=S,k=T.exec(R)){S=T.lastIndex,yield{type:"WhiteSpace",value:k[0]};continue}if(s.lastIndex=S,k=s.exec(R)){S=s.lastIndex,F=!1,a.test(A)&&(A="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:k[0]};continue}if(c.lastIndex=S,k=c.exec(R)){S=c.lastIndex,l.test(k[0])&&(F=!1,a.test(A)&&(A="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:k[0],closed:k[1]!==void 0};continue}if(m.lastIndex=S,k=m.exec(R)){S=m.lastIndex,F=!1,yield{type:"SingleLineComment",value:k[0]};continue}E=String.fromCodePoint(R.codePointAt(S)),S+=E.length,A=E,F=!1,yield{type:H.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:E}}},Ql}var gD=yD();Lv(gD);var kw={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(kw.keyword);new Set(kw.strict);var bD={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]},qw=Object.entries(bD);function nl(e){return String(e)}nl.open="";nl.close="";qw.reduce((e,[t])=>(e[t]=nl,e),{isColorSupported:!1});function vD(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 ED(e=!1){let t=vD(e),r=(a,s,c,l)=>{let d="",p=0;do d+=a.substring(p,l)+c,p=l+s.length,l=a.indexOf(s,p);while(~l);return d+a.substring(p)},n=(a,s,c=a)=>{let l=d=>{let p=String(d),f=p.indexOf(s,a.length);return~f?a+r(p,s,c,f)+s:a+p+s};return l.open=a,l.close=s,l},o={isColorSupported:t},i=a=>`\x1B[${a}m`;for(let[a,s]of qw)o[a]=t?n(i(s[0]),i(s[1]),s[2]):nl;return o}var xt=ED();function ja(e,t){if(!e)throw new Error(t)}function Fn(e,t){return typeof t===e}function wD(e){return e instanceof Promise}function _i(e,t,r){Object.defineProperty(e,t,r)}function Hn(e,t,r){_i(e,t,{value:r,configurable:!0,writable:!0})}var zr=Symbol.for("tinyspy:spy"),_D=new Set,TD=e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},SD=e=>(_i(e,zr,{value:{reset:()=>TD(e[zr])}}),e[zr]),lc=e=>e[zr]||SD(e);function AD(e){ja(Fn("function",e)||Fn("undefined",e),"cannot spy on a non-function value");let t=function(...n){let o=lc(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 l=[s,a];return wD(a)&&a.then(d=>o.resolves[c]=["ok",d],d=>o.resolves[c]=["error",d]),o.results.push(l),a};Hn(t,"_isMockFunction",!0),Hn(t,"length",e?e.length:0),Hn(t,"name",e&&e.name||"spy");let r=lc(t);return r.reset(),r.impl=e,t}function RD(e){return!!e&&e._isMockFunction===!0}var Lw=(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)}},Zm=(e,t)=>{t!=null&&typeof t=="function"&&t.prototype!=null&&Object.setPrototypeOf(e.prototype,t.prototype)};function Dw(e,t,r){ja(!Fn("undefined",e),"spyOn could not find an object to spy upon"),ja(Fn("object",e)||Fn("function",e),"cannot spyOn on a primitive value");let[n,o]=(()=>{if(!Fn("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]=Lw(e,n)||[];ja(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&&CD(c)&&(c=c[zr].getOriginal());let l=m=>{let{value:y,...g}=a||{configurable:!0,writable:!0};o!=="value"&&delete g.writable,g[o]=m,_i(e,n,g)},d=()=>{i!==e?Reflect.deleteProperty(e,n):a&&!c?_i(e,n,a):l(c)};r||(r=c);let p=PD(AD(r),r);o==="value"&&Zm(p,c);let f=p[zr];return Hn(f,"restore",d),Hn(f,"getOriginal",()=>s?c():c),Hn(f,"willCall",m=>(f.impl=m,p)),l(s?()=>(Zm(p,r),p):p),_D.add(p),p}var OD=new Set(["length","name","prototype"]);function xD(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]||OD.has(o)||(t.add(o),r[o]=Object.getOwnPropertyDescriptor(e,o));e=Object.getPrototypeOf(e)}return{properties:t,descriptors:r}}function PD(e,t){if(!t||zr in t)return e;let{properties:r,descriptors:n}=xD(t);for(let o of r){let i=n[o];Lw(e,o)||_i(e,o,i)}return e}function CD(e){return RD(e)&&"getOriginal"in e[zr]}var Qi=new Set;function Vn(e){return typeof e=="function"&&"_isMockFunction"in e&&e._isMockFunction}function ND(e,t,r){let n=r?{[{get:"getter",set:"setter"}[r]]:t}:t,o,i=MD(e,t),a=i&&i[r||"value"];Vn(a)&&(o=a.mock._state());try{let s=Dw(e,n),c=$w(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 ID=0;function $w(e){let t=e,r,n=[],o=!1,i=[],a=[],s=[],c=lc(e),l={get calls(){return c.calls},get contexts(){return a},get instances(){return i},get invocationCallOrder(){return s},get results(){return c.results.map(([m,y])=>({type:m==="error"?"throw":"return",value:y}))},get settledResults(){return c.resolves.map(([m,y])=>({type:m==="error"?"rejected":"fulfilled",value:y}))},get lastCall(){return c.calls[c.calls.length-1]},_state(m){return m&&(r=m.implementation,n=m.onceImplementations,o=m.implementationChangedTemporarily),{implementation:r,onceImplementations:n,implementationChangedTemporarily:o}}};function d(...m){return i.push(this),a.push(this),s.push(++ID),(o?r:n.shift()||r||c.getOriginal()||(()=>{})).apply(this,m)}let p=t.name;t.getMockName=()=>p||"vi.fn()",t.mockName=m=>(p=m,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=m=>(r=m,c.willCall(d),t),t.mockImplementationOnce=m=>(n.push(m),t);function f(m,y){let g=r;r=m,c.willCall(d),o=!0;let v=()=>{r=g,o=!1},b=y();return typeof b=="object"&&b&&typeof b.then=="function"?b.then(()=>(v(),t)):(v(),t)}return t.withImplementation=f,t.mockReturnThis=()=>t.mockImplementation(function(){return this}),t.mockReturnValue=m=>t.mockImplementation(()=>m),t.mockReturnValueOnce=m=>t.mockImplementationOnce(()=>m),t.mockResolvedValue=m=>t.mockImplementation(()=>Promise.resolve(m)),t.mockResolvedValueOnce=m=>t.mockImplementationOnce(()=>Promise.resolve(m)),t.mockRejectedValue=m=>t.mockImplementation(()=>Promise.reject(m)),t.mockRejectedValueOnce=m=>t.mockImplementationOnce(()=>Promise.reject(m)),Object.defineProperty(t,"mock",{get:()=>l}),c.willCall(d),Qi.add(t),t}function eh(e){let t=$w(Dw({spy:e||function(){}},"spy"));return e&&t.mockImplementation(e),t}function MD(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 Ti=Symbol.for("matchers-object"),Si=Symbol.for("$$jest-matchers-object-storybook"),xp=Symbol.for("expect-global"),uc=Symbol.for("asymmetric-matchers-object"),jD={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)}`}}},as=xt.green,Pp=xt.red,kD=xt.inverse,qD=xt.bold,qr=xt.dim;function LD(e,t="received",r="expected",n={}){let{comment:o="",isDirectExpectCall:i=!1,isNot:a=!1,promise:s="",secondArgument:c="",expectedColor:l=as,receivedColor:d=Pp,secondArgumentColor:p=as}=n,f="",m="expect";return!i&&t!==""&&(f+=qr(`${m}(`)+d(t),m=")"),s!==""&&(f+=qr(`${m}.`)+s,m=""),a&&(f+=`${qr(`${m}.`)}not`,m=""),e.includes(".")?m+=e:(f+=qr(`${m}.`)+e,m=""),r===""?m+="()":(f+=qr(`${m}(`)+l(r),c&&(f+=qr(", ")+p(c)),m=")"),o!==""&&(m+=` // ${o}`),m!==""&&(f+=qr(m)),f}var DD="·";function Fw(e){return e.replace(/\s+$/gm,t=>DD.repeat(t.length))}function $D(e){return Pp(Fw(Nt(e)))}function FD(e){return as(Fw(Nt(e)))}function Bw(){return{EXPECTED_COLOR:as,RECEIVED_COLOR:Pp,INVERTED_COLOR:kD,BOLD_WEIGHT:qD,DIM_COLOR:qr,diff:bo,matcherHint:LD,printReceived:$D,printExpected:FD,printDiffOrStringify:Qv,printWithType:BD}}function BD(e,t,r){let n=Xa(t),o=n!=="null"&&n!=="undefined"?`${e} has type: ${n}
266
+ `:"",i=`${e} has value: ${r(t)}`;return o+i}function Cp(){return globalThis[Si].customEqualityTesters}function Ne(e,t,r,n){return r=r||[],ii(e,t,[],[],r,n?Uw:HD)}function th(e){return!!e&&typeof e=="object"&&"asymmetricMatch"in e&&Wt("Function",e.asymmetricMatch)}function UD(e,t){let r=th(e),n=th(t);if(!(r&&n)){if(r)return e.asymmetricMatch(t);if(n)return t.asymmetricMatch(e)}}function ii(e,t,r,n,o,i){let a=!0,s=UD(e,t);if(s!==void 0)return s;let c={equals:Ne};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 l=Object.prototype.toString.call(e);if(l!==Object.prototype.toString.call(t))return!1;switch(l){case"[object Boolean]":case"[object String]":case"[object Number]":return typeof e!=typeof t?!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(nh(e)&&nh(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),l==="[object Array]"&&e.length!==t.length)return!1;if(e instanceof Error&&t instanceof Error)try{return JD(e,t,r,n,o,i)}finally{r.pop(),n.pop()}let p=rh(e,i),f,m=p.length;if(rh(t,i).length!==m)return!1;for(;m--;)if(f=p[m],a=i(t,f)&&ii(e[f],t[f],r,n,o,i),!a)return!1;return r.pop(),n.pop(),a}function JD(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=ii(e.cause,t.cause,r,n,o,i)),e instanceof AggregateError&&t instanceof AggregateError&&a&&(a=ii(e.errors,t.errors,r,n,o,i)),a&&(a=ii({...e},{...t},r,n,o,i)),a}function rh(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 HD(e,t){return Uw(e,t)&&e[t]!==void 0}function Uw(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Wt(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}function nh(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 Jw="@@__IMMUTABLE_KEYED__@@",Hw="@@__IMMUTABLE_SET__@@",VD="@@__IMMUTABLE_LIST__@@",ol="@@__IMMUTABLE_ORDERED__@@",zD="@@__IMMUTABLE_RECORD__@@";function GD(e){return!!(e&&e[Jw]&&!e[ol])}function WD(e){return!!(e&&e[Hw]&&!e[ol])}function il(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function YD(e){return!!(e&&il(e)&&e[VD])}function KD(e){return!!(e&&il(e)&&e[Jw]&&e[ol])}function XD(e){return!!(e&&il(e)&&e[Hw]&&e[ol])}function QD(e){return!!(e&&il(e)&&e[zD])}var Vw=Symbol.iterator;function oh(e){return!!(e!=null&&e[Vw])}function Dt(e,t,r=[],n=[],o=[]){if(typeof e!="object"||typeof t!="object"||Array.isArray(e)||Array.isArray(t)||!oh(e)||!oh(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(l=>l!==Dt),s];function s(l,d){return Dt(l,d,[...r],[...n],[...o])}if(e.size!==void 0){if(e.size!==t.size)return!1;if(Wt("Set",e)||WD(e)){let l=!0;for(let d of e)if(!t.has(d)){let p=!1;for(let f of t)Ne(d,f,a)===!0&&(p=!0);if(p===!1){l=!1;break}}return n.pop(),o.pop(),l}else if(Wt("Map",e)||GD(e)){let l=!0;for(let d of e)if(!t.has(d[0])||!Ne(d[1],t.get(d[0]),a)){let p=!1;for(let f of t){let m=Ne(d[0],f[0],a),y=!1;m===!0&&(y=Ne(d[1],f[1],a)),y===!0&&(p=!0)}if(p===!1){l=!1;break}}return n.pop(),o.pop(),l}}let c=t[Vw]();for(let l of e){let d=c.next();if(d.done||!Ne(l,d.value,a))return!1}if(!c.next().done)return!1;if(!YD(e)&&!KD(e)&&!XD(e)&&!QD(e)){let l=Object.entries(e),d=Object.entries(t);if(!Ne(l,d,a))return!1}return n.pop(),o.pop(),!0}function Np(e,t){return!e||typeof e!="object"||e===Object.prototype?!1:Object.prototype.hasOwnProperty.call(e,t)||Np(Object.getPrototypeOf(e),t)}function ZD(e){return Ia(e)&&!(e instanceof Error)&&!Array.isArray(e)&&!(e instanceof Date)}function Zi(e,t,r=[]){let n=r.filter(i=>i!==Zi),o=(i=new WeakMap)=>(a,s)=>{if(ZD(s))return Object.keys(s).every(c=>{if(s[c]!=null&&typeof s[c]=="object"){if(i.has(s[c]))return Ne(a[c],s[c],n);i.set(s[c],!0)}let l=a!=null&&Np(a,c)&&Ne(a[c],s[c],[...n,o(i)]);return i.delete(s[c]),l})};return o()(e,t)}function ih(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return!1}function ah(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 cc(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!==cc);return Ne(e,t,i,!0)&&Ne(n,o)}function e$(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 t$(e,t){return`${t} ${e}${t===1?"":"s"}`}function Zl(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 r$(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,l)=>o(i)(a[l],c))}else{if(a instanceof Date)return a;if(Ia(a)&&Ia(s)){if(Ne(a,s,[...r,Dt,Zi]))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 l of Zl(a))Np(s,l)?c[l]=i.has(a[l])?i.get(a[l]):o(i)(a[l],s[l]):i.has(a[l])||(n+=1,Ia(a[l])&&(n+=Zl(a[l]).length),o(i)(a[l],s[l]));if(Zl(c).length>0)return c}}return a};return{subset:o()(e,t),stripped:n}}if(!Object.prototype.hasOwnProperty.call(globalThis,Ti)){let e=new WeakMap;Object.defineProperty(globalThis,Ti,{get:()=>e})}if(!Object.prototype.hasOwnProperty.call(globalThis,Si)){let e=Object.create(null),t=[];Object.defineProperty(globalThis,Si,{configurable:!0,get:()=>({state:globalThis[Ti].get(globalThis[xp]),matchers:e,customEqualityTesters:t})})}if(!Object.prototype.hasOwnProperty.call(globalThis,uc)){let e=Object.create(null);Object.defineProperty(globalThis,uc,{get:()=>e})}function ss(e){return globalThis[Ti].get(e)}function eu(e,t){let r=globalThis[Ti],n=r.get(t)||{},o=Object.defineProperties(n,{...Object.getOwnPropertyDescriptors(n),...Object.getOwnPropertyDescriptors(e)});r.set(t,o)}var xr=class{$$typeof=Symbol.for("jest.asymmetricMatcher");constructor(e,t=!1){this.sample=e,this.inverse=t}getMatcherContext(e){return{...ss(e||globalThis[xp]),equals:Ne,isNot:this.inverse,customTesters:Cp(),utils:{...Bw(),diff:bo,stringify:Nt,iterableEquality:Dt,subsetEquality:Zi}}}};xr.prototype[Symbol.for("chai/inspect")]=function(e){let t=Nt(this,e.depth,{min:!0});return t.length<=e.truncate?t:`${this.toString()}{…}`};var sh=class extends xr{constructor(e,t=!1){if(!Wt("String",e))throw new Error("Expected is not a string");super(e,t)}asymmetricMatch(e){let t=Wt("String",e)&&e.includes(this.sample);return this.inverse?!t:t}toString(){return`String${this.inverse?"Not":""}Containing`}getExpectedType(){return"string"}},n$=class extends xr{asymmetricMatch(e){return e!=null}toString(){return"Anything"}toAsymmetricMatcher(){return"Anything"}},lh=class extends xr{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)||!Ne(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"}},uh=class extends xr{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=>Ne(n,o,t.customTesters)));return this.inverse?!r:r}toString(){return`Array${this.inverse?"Not":""}Containing`}getExpectedType(){return"array"}},o$=class extends xr{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)}>`}},ch=class extends xr{constructor(e,t=!1){if(!Wt("String",e)&&!Wt("RegExp",e))throw new Error("Expected is not a String or a RegExp");super(new RegExp(e),t)}asymmetricMatch(e){let t=Wt("String",e)&&this.sample.test(e);return this.inverse?!t:t}toString(){return`String${this.inverse?"Not":""}Matching`}getExpectedType(){return"string"}},dh=class extends xr{precision;constructor(e,t=2,r=!1){if(!Wt("Number",e))throw new Error("Expected is not a Number");if(!Wt("Number",t))throw new Error("Precision is not a Number");super(e),this.inverse=r,this.precision=t}asymmetricMatch(e){if(!Wt("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,`(${t$("digit",this.precision)})`].join(" ")}},i$=(e,t)=>{t.addMethod(e.expect,"anything",()=>new n$),t.addMethod(e.expect,"any",r=>new o$(r)),t.addMethod(e.expect,"stringContaining",r=>new sh(r)),t.addMethod(e.expect,"objectContaining",r=>new lh(r)),t.addMethod(e.expect,"arrayContaining",r=>new uh(r)),t.addMethod(e.expect,"stringMatching",r=>new ch(r)),t.addMethod(e.expect,"closeTo",(r,n)=>new dh(r,n)),e.expect.not={stringContaining:r=>new sh(r,!0),objectContaining:r=>new lh(r,!0),arrayContaining:r=>new uh(r,!0),stringMatching:r=>new ch(r,!0),closeTo:(r,n)=>new dh(r,n,!0)}};function ph(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 fh(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 mh(e,t){var r;e.result||(e.result={state:"fail"}),e.result.state="fail",(r=e.result).errors||(r.errors=[]),e.result.errors.push(Bd(t))}function zw(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(dk,a=>{mh(o,a)}):i}catch(i){mh(o,i)}}}var a$=(e,t)=>{let{AssertionError:r}=e,n=Cp();function o(l,d){let p=f=>{let m=zw(t,f,d);t.addMethod(e.Assertion.prototype,f,m),t.addMethod(globalThis[Si].matchers,f,m)};Array.isArray(l)?l.forEach(f=>p(f)):p(l)}["throw","throws","Throw"].forEach(l=>{t.overwriteMethod(e.Assertion.prototype,l,d=>function(...p){let f=t.flag(this,"promise"),m=t.flag(this,"object"),y=t.flag(this,"negate");if(f==="rejects")t.flag(this,"object",()=>{throw m});else if(f==="resolves"&&typeof m!="function"){if(y)return;{let g=t.flag(this,"message")||"expected promise to throw an error, but it didn't",v={showDiff:!1};throw new r(g,v,t.flag(this,"ssfi"))}}d.apply(this,p)})}),o("withTest",function(l){return t.flag(this,"vitest-test",l),this}),o("toEqual",function(l){let d=t.flag(this,"object"),p=Ne(d,l,[...n,Dt]);return this.assert(p,"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",l,d)}),o("toStrictEqual",function(l){let d=t.flag(this,"object"),p=Ne(d,l,[...n,Dt,ih,cc,ah],!0);return this.assert(p,"expected #{this} to strictly equal #{exp}","expected #{this} to not strictly equal #{exp}",l,d)}),o("toBe",function(l){let d=this._obj,p=Object.is(d,l),f="";return p||(Ne(d,l,[...n,Dt,ih,cc,ah],!0)?f="toStrictEqual":Ne(d,l,[...n,Dt])&&(f="toEqual")),this.assert(p,e$(f),"expected #{this} not to be #{exp} // Object.is equality",l,d)}),o("toMatchObject",function(l){let d=this._obj,p=Ne(d,l,[...n,Dt,Zi]),f=t.flag(this,"negate"),{subset:m,stripped:y}=r$(d,l,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}",l,m,!1]),v=y===0?g:`${g}
274
+ (${y} matching ${y===1?"property":"properties"} omitted from actual)`;throw new r(v,{showDiff:!0,expected:l,actual:m})}}),o("toMatch",function(l){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 l=="string"?d.includes(l):d.match(l),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",l,d)}),o("toContain",function(l){let d=this._obj;if(typeof Node<"u"&&d instanceof Node){if(!(l instanceof Node))throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof l}`);return this.assert(d.contains(l),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",l,d)}if(typeof DOMTokenList<"u"&&d instanceof DOMTokenList){dr(l,"class name",["string"]);let p=t.flag(this,"negate")?d.value.replace(l,"").trim():`${d.value} ${l}`;return this.assert(d.contains(l),`expected "${d.value}" to contain "${l}"`,`expected "${d.value}" not to contain "${l}"`,p,d.value)}return typeof d=="string"&&typeof l=="string"?this.assert(d.includes(l),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",l,d):(d!=null&&typeof d!="string"&&t.flag(this,"object",Array.from(d)),this.contain(l))}),o("toContainEqual",function(l){let d=t.flag(this,"object"),p=Array.from(d).findIndex(f=>Ne(f,l,n));this.assert(p!==-1,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",l)}),o("toBeTruthy",function(){let l=t.flag(this,"object");this.assert(!!l,"expected #{this} to be truthy","expected #{this} to not be truthy",!0,l)}),o("toBeFalsy",function(){let l=t.flag(this,"object");this.assert(!l,"expected #{this} to be falsy","expected #{this} to not be falsy",!1,l)}),o("toBeGreaterThan",function(l){let d=this._obj;return dr(d,"actual",["number","bigint"]),dr(l,"expected",["number","bigint"]),this.assert(d>l,`expected ${d} to be greater than ${l}`,`expected ${d} to be not greater than ${l}`,l,d,!1)}),o("toBeGreaterThanOrEqual",function(l){let d=this._obj;return dr(d,"actual",["number","bigint"]),dr(l,"expected",["number","bigint"]),this.assert(d>=l,`expected ${d} to be greater than or equal to ${l}`,`expected ${d} to be not greater than or equal to ${l}`,l,d,!1)}),o("toBeLessThan",function(l){let d=this._obj;return dr(d,"actual",["number","bigint"]),dr(l,"expected",["number","bigint"]),this.assert(d<l,`expected ${d} to be less than ${l}`,`expected ${d} to be not less than ${l}`,l,d,!1)}),o("toBeLessThanOrEqual",function(l){let d=this._obj;return dr(d,"actual",["number","bigint"]),dr(l,"expected",["number","bigint"]),this.assert(d<=l,`expected ${d} to be less than or equal to ${l}`,`expected ${d} to be not less than or equal to ${l}`,l,d,!1)}),o("toBeNaN",function(){let l=t.flag(this,"object");this.assert(Number.isNaN(l),"expected #{this} to be NaN","expected #{this} not to be NaN",Number.NaN,l)}),o("toBeUndefined",function(){let l=t.flag(this,"object");this.assert(l===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined",void 0,l)}),o("toBeNull",function(){let l=t.flag(this,"object");this.assert(l===null,"expected #{this} to be null","expected #{this} not to be null",null,l)}),o("toBeDefined",function(){let l=t.flag(this,"object");this.assert(typeof l<"u","expected #{this} to be defined","expected #{this} to be undefined",l)}),o("toBeTypeOf",function(l){let d=typeof this._obj,p=l===d;return this.assert(p,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",l,d)}),o("toBeInstanceOf",function(l){return this.instanceOf(l)}),o("toHaveLength",function(l){return this.have.length(l)}),o("toHaveProperty",function(...l){Array.isArray(l[0])&&(l[0]=l[0].map(T=>String(T).replace(/([.[\]])/g,"\\$1")).join("."));let d=this._obj,[p,f]=l,m=()=>Object.prototype.hasOwnProperty.call(d,p)?{value:d[p],exists:!0}:t.getPathInfo(d,p),{value:y,exists:g}=m(),v=g&&(l.length===1||Ne(f,y,n)),b=l.length===1?"":` with value ${t.objDisplay(f)}`;return this.assert(v,`expected #{this} to have property "${p}"${b}`,`expected #{this} to not have property "${p}"${b}`,f,g?y:void 0)}),o("toBeCloseTo",function(l,d=2){let p=this._obj,f=!1,m=0,y=0;return l===Number.POSITIVE_INFINITY&&p===Number.POSITIVE_INFINITY||l===Number.NEGATIVE_INFINITY&&p===Number.NEGATIVE_INFINITY?f=!0:(m=10**-d/2,y=Math.abs(p-l),f=y<m),this.assert(f,`expected #{this} to be close to #{exp}, received difference is ${y}, but expected ${m}`,`expected #{this} to not be close to #{exp}, received difference is ${y}, but expected ${m}`,l,p,!1)});function i(l){if(!Vn(l._obj))throw new TypeError(`${t.inspect(l._obj)} is not a spy or a call to a spy!`)}function a(l){return i(l),l._obj}o(["toHaveBeenCalledTimes","toBeCalledTimes"],function(l){let d=a(this),p=d.getMockName(),f=d.mock.calls.length;return this.assert(f===l,`expected "${p}" to be called #{exp} times, but got ${f} times`,`expected "${p}" to not be called #{exp} times`,l,f,!1)}),o("toHaveBeenCalledOnce",function(){let l=a(this),d=l.getMockName(),p=l.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 l=a(this),d=l.getMockName(),p=l.mock.calls.length,f=p>0,m=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&&m&&(y=tu(l,y)),f&&m||!f&&!m)throw new r(y)});function s(l,d){return l.length===d.length&&l.every((p,f)=>Ne(p,d[f],[...n,Dt]))}o(["toHaveBeenCalledWith","toBeCalledWith"],function(...l){let d=a(this),p=d.getMockName(),f=d.mock.calls.some(g=>s(g,l)),m=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}`,l]);if(f&&m||!f&&!m)throw new r(tu(d,y,l))}),o("toHaveBeenCalledExactlyOnceWith",function(...l){let d=a(this),p=d.getMockName(),f=d.mock.calls.length,m=d.mock.calls.some(v=>s(v,l))&&f===1,y=t.flag(this,"negate"),g=t.getMessage(this,[m,`expected "${p}" to be called once with arguments: #{exp}`,`expected "${p}" to not be called once with arguments: #{exp}`,l]);if(m&&y||!m&&!y)throw new r(tu(d,g,l))}),o(["toHaveBeenNthCalledWith","nthCalledWith"],function(l,...d){let p=a(this),f=p.getMockName(),m=p.mock.calls[l-1],y=p.mock.calls.length,g=l<=y;this.assert(m&&s(m,d),`expected ${ai(l)} "${f}" call to have been called with #{exp}${g?"":`, but called only ${y} times`}`,`expected ${ai(l)} "${f}" call to not have been called with #{exp}`,d,m,g)}),o(["toHaveBeenLastCalledWith","lastCalledWith"],function(...l){let d=a(this),p=d.getMockName(),f=d.mock.calls[d.mock.calls.length-1];this.assert(f&&s(f,l),`expected last "${p}" call to have been called with #{exp}`,`expected last "${p}" call to not have been called with #{exp}`,l,f)});function c(l,d,p){let f=l.mock.invocationCallOrder,m=d.mock.invocationCallOrder;return f.length===0?!p:m.length===0?!1:f[0]<m[0]}o(["toHaveBeenCalledBefore"],function(l,d=!0){let p=a(this);if(!Vn(l))throw new TypeError(`${t.inspect(l)} is not a spy or a call to a spy`);this.assert(c(p,l,d),`expected "${p.getMockName()}" to have been called before "${l.getMockName()}"`,`expected "${p.getMockName()}" to not have been called before "${l.getMockName()}"`,l,p)}),o(["toHaveBeenCalledAfter"],function(l,d=!0){let p=a(this);if(!Vn(l))throw new TypeError(`${t.inspect(l)} is not a spy or a call to a spy`);this.assert(c(l,p,d),`expected "${p.getMockName()}" to have been called after "${l.getMockName()}"`,`expected "${p.getMockName()}" to not have been called after "${l.getMockName()}"`,l,p)}),o(["toThrow","toThrowError"],function(l){if(typeof l=="string"||typeof l>"u"||l instanceof RegExp)return this.throws(l===""?/^$/:l);let d=this._obj,p=t.flag(this,"promise"),f=t.flag(this,"negate"),m=null;if(p==="rejects")m=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,m=g}if(!y&&!f){let g=t.flag(this,"message")||"expected function to throw an error, but it didn't",v={showDiff:!1};throw new r(g,v,t.flag(this,"ssfi"))}}if(typeof l=="function"){let y=l.name||l.prototype.constructor.name;return this.assert(m&&m instanceof l,`expected error to be instance of ${y}`,`expected error not to be instance of ${y}`,l,m)}if(l instanceof Error){let y=Ne(m,l,[...n,Dt]);return this.assert(y,"expected a thrown error to be #{exp}","expected a thrown error not to be #{exp}",l,m)}if(typeof l=="object"&&"asymmetricMatch"in l&&typeof l.asymmetricMatch=="function"){let y=l;return this.assert(m&&y.asymmetricMatch(m),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",y,m)}throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof l}"`)}),[{name:"toHaveResolved",condition:l=>l.mock.settledResults.length>0&&l.mock.settledResults.some(({type:d})=>d==="fulfilled"),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:l=>l.mock.calls.length>0&&l.mock.results.some(({type:d})=>d!=="throw"),action:"called"}].forEach(({name:l,condition:d,action:p})=>{o(l,function(){let f=a(this),m=f.getMockName(),y=d(f);this.assert(y,`expected "${m}" to be successfully ${p} at least once`,`expected "${m}" to not be successfully ${p}`,y,!y,!1)})}),[{name:"toHaveResolvedTimes",condition:(l,d)=>l.mock.settledResults.reduce((p,{type:f})=>f==="fulfilled"?++p:p,0)===d,action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:(l,d)=>l.mock.results.reduce((p,{type:f})=>f==="throw"?p:++p,0)===d,action:"called"}].forEach(({name:l,condition:d,action:p})=>{o(l,function(f){let m=a(this),y=m.getMockName(),g=d(m,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:(l,d)=>l.mock.settledResults.some(({type:p,value:f})=>p==="fulfilled"&&Ne(d,f)),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:(l,d)=>l.mock.results.some(({type:p,value:f})=>p==="return"&&Ne(d,f)),action:"return"}].forEach(({name:l,condition:d,action:p})=>{o(l,function(f){let m=a(this),y=d(m,f),g=t.flag(this,"negate");if(y&&g||!y&&!g){let v=m.getMockName(),b=t.getMessage(this,[y,`expected "${v}" to ${p} with: #{exp} at least once`,`expected "${v}" to not ${p} with: #{exp}`,f]),T=p==="return"?m.mock.results:m.mock.settledResults;throw new r(s$(m,T,b,f))}})}),[{name:"toHaveLastResolvedWith",condition:(l,d)=>{let p=l.mock.settledResults[l.mock.settledResults.length-1];return p&&p.type==="fulfilled"&&Ne(p.value,d)},action:"resolve"},{name:["toHaveLastReturnedWith","lastReturnedWith"],condition:(l,d)=>{let p=l.mock.results[l.mock.results.length-1];return p&&p.type==="return"&&Ne(p.value,d)},action:"return"}].forEach(({name:l,condition:d,action:p})=>{o(l,function(f){let m=a(this),y=p==="return"?m.mock.results:m.mock.settledResults,g=y[y.length-1],v=m.getMockName();this.assert(d(m,f),`expected last "${v}" call to ${p} #{exp}`,`expected last "${v}" call to not ${p} #{exp}`,f,g?.value)})}),[{name:"toHaveNthResolvedWith",condition:(l,d,p)=>{let f=l.mock.settledResults[d-1];return f&&f.type==="fulfilled"&&Ne(f.value,p)},action:"resolve"},{name:["toHaveNthReturnedWith","nthReturnedWith"],condition:(l,d,p)=>{let f=l.mock.results[d-1];return f&&f.type==="return"&&Ne(f.value,p)},action:"return"}].forEach(({name:l,condition:d,action:p})=>{o(l,function(f,m){let y=a(this),g=y.getMockName(),v=(p==="return"?y.mock.results:y.mock.settledResults)[f-1],b=`${ai(f)} call`;this.assert(d(y,f,m),`expected ${b} "${g}" call to ${p} #{exp}`,`expected ${b} "${g}" call to not ${p} #{exp}`,m,v?.value)})}),o("withContext",function(l){for(let d in l)t.flag(this,d,l[d]);return this}),t.addProperty(e.Assertion.prototype,"resolves",function(){let l=new Error("resolves");t.flag(this,"promise","resolves"),t.flag(this,"error",l);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:(m,y,g)=>{let v=Reflect.get(m,y,g);return typeof v!="function"?v instanceof e.Assertion?f:v:(...b)=>{t.flag(this,"_name",y);let T=p.then(R=>(t.flag(this,"object",R),v.call(this,...b)),R=>{let x=new r(`promise rejected "${t.inspect(R)}" instead of resolving`,{showDiff:!1});throw x.cause=R,x.stack=l.stack.replace(l.message,x.message),x});return fh(d,T,ph(t,this,!!b.length),l)}}});return f}),t.addProperty(e.Assertion.prototype,"rejects",function(){let l=new Error("rejects");t.flag(this,"promise","rejects"),t.flag(this,"error",l);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 m=new Proxy(this,{get:(y,g,v)=>{let b=Reflect.get(y,g,v);return typeof b!="function"?b instanceof e.Assertion?m:b:(...T)=>{t.flag(this,"_name",g);let R=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=l.stack.replace(l.message,C.message),C},x=>(t.flag(this,"object",x),b.call(this,...T)));return fh(d,R,ph(t,this,!!T.length),l)}}});return m})};function ai(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 tu(e,t,r){return e.mock.calls.length&&(t+=xt.gray(`
275
+
276
+ Received:
277
+
278
+ ${e.mock.calls.map((n,o)=>{let i=xt.bold(` ${ai(o+1)} ${e.getMockName()} call:
279
+
280
+ `);return r?i+=bo(r,n,{omitAnnotationLines:!0}):i+=Nt(n).split(`
281
+ `).map(a=>` ${a}`).join(`
282
+ `),i+=`
283
+ `,i}).join(`
284
+ `)}`)),t+=xt.gray(`
285
+
286
+ Number of calls: ${xt.bold(e.mock.calls.length)}
287
+ `),t}function s$(e,t,r,n){return t.length&&(r+=xt.gray(`
288
+
289
+ Received:
290
+
291
+ ${t.map((o,i)=>{let a=xt.bold(` ${ai(i+1)} ${e.getMockName()} call return:
292
+
293
+ `);return n?a+=bo(n,o.value,{omitAnnotationLines:!0}):a+=Nt(o).split(`
294
+ `).map(s=>` ${s}`).join(`
295
+ `),a+=`
296
+ `,a}).join(`
297
+ `)}`)),r+=xt.gray(`
298
+
299
+ Number of calls: ${xt.bold(e.mock.calls.length)}
300
+ `),r}function l$(e,t){let r=e._obj,n=or.flag(e,"negate"),o=or.flag(e,"promise")||"",i={...Bw(),diff:bo,stringify:Nt,iterableEquality:Dt,subsetEquality:Zi};return{state:{...ss(t),customTesters:Cp(),isNot:n,utils:i,promise:o,equals:Ne,suppressedErrors:[],soft:or.flag(e,"soft"),poll:or.flag(e,"poll")},isNot:n,obj:r}}var hh=class extends Error{constructor(e,t,r){super(e),this.actual=t,this.expected=r}};function u$(e,t,r){return(n,o)=>{Object.entries(r).forEach(([i,a])=>{function s(...p){let{state:f,isNot:m,obj:y}=l$(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:E,expected:_})=>{if(x&&m||!x&&!m)throw new hh(C(),E,_)});let{pass:v,message:b,actual:T,expected:R}=g;if(v&&m||!v&&!m)throw new hh(b(),T,R)}let c=zw(o,i,s);o.addMethod(globalThis[Si].matchers,i,c),o.addMethod(e.Assertion.prototype,i,c);class l extends xr{constructor(f=!1,...m){super(m,f)}asymmetricMatch(f){let{pass:m}=a.call(this.getMatcherContext(t),f,...this.sample);return this.inverse?!m:m}toString(){return`${this.inverse?"not.":""}${i}`}getExpectedType(){return"any"}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map(f=>Nt(f)).join(", ")}>`}}let d=(...p)=>new l(!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 l(!0,...p),writable:!0}),Object.defineProperty(globalThis[uc],i,{configurable:!0,enumerable:!0,value:d,writable:!0})})}}var c$=(e,t)=>{t.addMethod(e.expect,"extend",(r,n)=>{Jn(u$(e,r,n))})};function d$(){Jn(c$),Jn(a$),Jn(i$);let e=((n,o)=>{let{assertionCalls:i}=ss(e);return eu({assertionCalls:i+1,soft:!1},e),bn(n,o)});Object.assign(e,bn),e.getState=()=>ss(e),e.setState=n=>eu(n,e),e.extend=n=>bn.extend(e,n),e.soft=(...n)=>{let o=e(...n);return e.setState({soft:!0}),o},e.extend(jD),e.unreachable=n=>{M.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 eu({assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null},e),or.addMethod(e,"assertions",t),or.addMethod(e,"hasAssertions",r),e.extend(JE),e}var Gw=d$();Object.defineProperty(globalThis,xp,{value:Gw,writable:!0,configurable:!0});function p$(e,t,r){Object.defineProperty(e,t,r)}var ka=Symbol.for("tinyspy:spy"),f$=e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},m$=e=>(p$(e,ka,{value:{reset:()=>f$(e[ka])}}),e[ka]),h$=e=>e[ka]||m$(e),dc=new Set;function Ww(e){return dc.add(e),()=>void dc.delete(e)}var y$=(...e)=>{let t=ND(...e);return Kw(t)};function Yw(e){let t=e?eh(e):eh();return Kw(t)}function Kw(e){let t=yh(e),r=t.mockImplementation.bind(null);return t.mockImplementation=n=>yh(r(n)),t}function yh(e){let t=h$(e),r=t.impl;return t.willCall(function(...n){return dc.forEach(o=>o(e,n)),r?.apply(this,n)}),e}function Xw(){Qi.forEach(e=>e.mockClear())}function Qw(){Qi.forEach(e=>e.mockReset())}function Zw(){Qi.forEach(e=>e.mockRestore())}function g$(e,t={}){return e}var e_={};Tt(e_,{buildQueries:()=>Cr,configure:()=>CF,createEvent:()=>La,findAllByAltText:()=>oT,findAllByDisplayValue:()=>Q_,findAllByLabelText:()=>N_,findAllByPlaceholderText:()=>F_,findAllByRole:()=>gT,findAllByTestId:()=>TT,findAllByText:()=>z_,findAllByTitle:()=>cT,findByAltText:()=>iT,findByDisplayValue:()=>Z_,findByLabelText:()=>I_,findByPlaceholderText:()=>B_,findByRole:()=>bT,findByTestId:()=>ST,findByText:()=>G_,findByTitle:()=>dT,fireEvent:()=>Pi,getAllByAltText:()=>rT,getAllByDisplayValue:()=>K_,getAllByLabelText:()=>M_,getAllByPlaceholderText:()=>D_,getAllByRole:()=>hT,getAllByTestId:()=>wT,getAllByText:()=>H_,getAllByTitle:()=>lT,getByAltText:()=>nT,getByDisplayValue:()=>X_,getByLabelText:()=>j_,getByPlaceholderText:()=>$_,getByRole:()=>yT,getByTestId:()=>_T,getByText:()=>V_,getByTitle:()=>uT,getConfig:()=>Se,getDefaultNormalizer:()=>Lp,getElementError:()=>sl,getMultipleElementsFoundError:()=>ll,getNodeText:()=>ea,getQueriesForElement:()=>wc,getRoles:()=>S_,getSuggestedQuery:()=>us,isInaccessible:()=>al,logDOM:()=>pc,logRoles:()=>kF,makeFindQuery:()=>eo,makeGetAllQuery:()=>Fp,makeSingleQuery:()=>Zn,prettyDOM:()=>Oi,prettyFormat:()=>Ip,queries:()=>cs,queryAllByAltText:()=>eT,queryAllByAttribute:()=>Mn,queryAllByDisplayValue:()=>W_,queryAllByLabelText:()=>k_,queryAllByPlaceholderText:()=>q_,queryAllByRole:()=>fT,queryAllByTestId:()=>vT,queryAllByText:()=>U_,queryAllByTitle:()=>aT,queryByAltText:()=>tT,queryByAttribute:()=>R_,queryByDisplayValue:()=>Y_,queryByLabelText:()=>P_,queryByPlaceholderText:()=>L_,queryByRole:()=>mT,queryByTestId:()=>ET,queryByText:()=>J_,queryByTitle:()=>sT,queryHelpers:()=>YF,screen:()=>TB,waitFor:()=>$p,waitForElementToBeRemoved:()=>yB,within:()=>wc,wrapAllByQueryWithSuggestion:()=>wt,wrapSingleQueryWithSuggestion:()=>Gr});var Ip=We(OP()),b$=Object.prototype.toString;function v$(e){return typeof e=="function"||b$.call(e)==="[object Function]"}function E$(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var w$=Math.pow(2,53)-1;function _$(e){var t=E$(e);return Math.min(Math.max(t,0),w$)}function zt(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=_$(n.length),i=v$(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 Ai(e){"@babel/helpers - typeof";return Ai=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},Ai(e)}function T$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S$(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,t_(n.key),n)}}function A$(e,t,r){return t&&S$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function R$(e,t,r){return t=t_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t_(e){var t=O$(e,"string");return Ai(t)==="symbol"?t:String(t)}function O$(e,t){if(Ai(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ai(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var x$=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];T$(this,e),R$(this,"items",void 0),this.items=t}return A$(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})(),P$=typeof Set>"u"?Set:x$;function mt(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var C$={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"},N$={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 I$(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=N$[t])!==null&&n!==void 0&&n.has(r))})}function r_(e,t){return I$(e,t)}function M$(e){var t=k$(e);if(t===null||t==="presentation"){var r=j$(e);if(t!=="presentation"||r_(e,r||""))return r}return t}function j$(e){var t=C$[mt(e)];if(t!==void 0)return t;switch(mt(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!r_(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 k$(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}function Be(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function n_(e){return Be(e)&&mt(e)==="caption"}function qa(e){return Be(e)&&mt(e)==="input"}function q$(e){return Be(e)&&mt(e)==="optgroup"}function L$(e){return Be(e)&&mt(e)==="select"}function D$(e){return Be(e)&&mt(e)==="table"}function $$(e){return Be(e)&&mt(e)==="textarea"}function F$(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function B$(e){return Be(e)&&mt(e)==="fieldset"}function U$(e){return Be(e)&&mt(e)==="legend"}function J$(e){return Be(e)&&mt(e)==="slot"}function H$(e){return Be(e)&&e.ownerSVGElement!==void 0}function V$(e){return Be(e)&&mt(e)==="svg"}function z$(e){return H$(e)&&mt(e)==="title"}function ls(e,t){if(Be(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 vr(e,t){return Be(e)?t.indexOf(M$(e))!==-1:!1}function G$(e){return e.trim().replace(/\s\s+/g," ")}function W$(e,t){if(!Be(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 Y$(e){return vr(e,["button","combobox","listbox","textbox"])||o_(e,"range")}function o_(e,t){if(!Be(e))return!1;switch(t){case"range":return vr(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function gh(e,t){var r=zt(e.querySelectorAll(t));return ls(e,"aria-owns").forEach(function(n){r.push.apply(r,zt(n.querySelectorAll(t)))}),r}function K$(e){return L$(e)?e.selectedOptions||gh(e,"[selected]"):gh(e,'[aria-selected="true"]')}function X$(e){return vr(e,["none","presentation"])}function Q$(e){return n_(e)}function Z$(e){return vr(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function eF(e){return!1}function tF(e){return qa(e)||$$(e)?e.value:e.textContent||""}function bh(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function i_(e){var t=mt(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function a_(e){if(i_(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&Be(r)){var n=a_(r);n!==null&&(t=n)}}),t}function rF(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):a_(e)}function nF(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return zt(t);if(!i_(e))return null;var r=e.ownerDocument;return zt(r.querySelectorAll("label")).filter(function(n){return rF(n)===e})}function oF(e){var t=e.assignedNodes();return t.length===0?zt(e.childNodes):t}function s_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new P$,n=F$(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,l=c===void 0?n.getComputedStyle.bind(n):c,d=t.hidden,p=d===void 0?!1:d;function f(b,T){var R="";if(Be(b)&&s){var x=l(b,"::before"),C=bh(x);R="".concat(C," ").concat(R)}var E=J$(b)?oF(b):zt(b.childNodes).concat(ls(b,"aria-owns"));if(E.forEach(function(A){var $=v(A,{isEmbeddedInLabel:T.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),k=Be(A)?l(A).getPropertyValue("display"):"inline",H=k!=="inline"?" ":"";R+="".concat(H).concat($).concat(H)}),Be(b)&&s){var _=l(b,"::after"),S=bh(_);R="".concat(R," ").concat(S)}return R.trim()}function m(b,T){var R=b.getAttributeNode(T);return R!==null&&!r.has(R)&&R.value.trim()!==""?(r.add(R),R.value):null}function y(b){return Be(b)?m(b,"title"):null}function g(b){if(!Be(b))return null;if(B$(b)){r.add(b);for(var T=zt(b.childNodes),R=0;R<T.length;R+=1){var x=T[R];if(U$(x))return v(x,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(D$(b)){r.add(b);for(var C=zt(b.childNodes),E=0;E<C.length;E+=1){var _=C[E];if(n_(_))return v(_,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(V$(b)){r.add(b);for(var S=zt(b.childNodes),A=0;A<S.length;A+=1){var $=S[A];if(z$($))return $.textContent}return null}else if(mt(b)==="img"||mt(b)==="area"){var k=m(b,"alt");if(k!==null)return k}else if(q$(b)){var H=m(b,"label");if(H!==null)return H}if(qa(b)&&(b.type==="button"||b.type==="submit"||b.type==="reset")){var I=m(b,"value");if(I!==null)return I;if(b.type==="submit")return"Submit";if(b.type==="reset")return"Reset"}var O=nF(b);if(O!==null&&O.length!==0)return r.add(b),zt(O).map(function(K){return v(K,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(K){return K.length>0}).join(" ");if(qa(b)&&b.type==="image"){var q=m(b,"alt");if(q!==null)return q;var F=m(b,"title");return F!==null?F:"Submit Query"}if(vr(b,["button"])){var V=f(b,{isEmbeddedInLabel:!1});if(V!=="")return V}return null}function v(b,T){if(r.has(b))return"";if(!p&&W$(b,l)&&!T.isReferenced)return r.add(b),"";var R=Be(b)?b.getAttributeNode("aria-labelledby"):null,x=R!==null&&!r.has(R)?ls(b,"aria-labelledby"):[];if(i==="name"&&!T.isReferenced&&x.length>0)return r.add(R),x.map(function(k){return v(k,{isEmbeddedInLabel:T.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var C=T.recursion&&Y$(b)&&i==="name";if(!C){var E=(Be(b)&&b.getAttribute("aria-label")||"").trim();if(E!==""&&i==="name")return r.add(b),E;if(!X$(b)){var _=g(b);if(_!==null)return r.add(b),_}}if(vr(b,["menu"]))return r.add(b),"";if(C||T.isEmbeddedInLabel||T.isReferenced){if(vr(b,["combobox","listbox"])){r.add(b);var S=K$(b);return S.length===0?qa(b)?b.value:"":zt(S).map(function(k){return v(k,{isEmbeddedInLabel:T.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(o_(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(vr(b,["textbox"]))return r.add(b),tF(b)}if(Z$(b)||Be(b)&&T.isReferenced||Q$(b)||eF()){var A=f(b,{isEmbeddedInLabel:T.isEmbeddedInLabel});if(A!=="")return r.add(b),A}if(b.nodeType===b.TEXT_NODE)return r.add(b),b.textContent||"";if(T.recursion)return r.add(b),f(b,{isEmbeddedInLabel:T.isEmbeddedInLabel});var $=y(b);return $!==null?(r.add(b),$):(r.add(b),"")}return G$(v(e,{isEmbeddedInLabel:!1,isReferenced:i==="description",recursion:!1}))}function Ri(e){"@babel/helpers - typeof";return Ri=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},Ri(e)}function vh(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 Eh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vh(Object(r),!0).forEach(function(n){iF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iF(e,t,r){return t=aF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aF(e){var t=sF(e,"string");return Ri(t)==="symbol"?t:String(t)}function sF(e,t){if(Ri(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ri(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function l_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=ls(e,"aria-describedby").map(function(o){return s_(o,Eh(Eh({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("title");r=n===null?"":n}return r}function lF(e){return vr(e,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}function Mp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return lF(e)?"":s_(e,t)}var Lt=We(ed()),uF=We(xP());function u_(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}var cF=(e,t,r,n,o,i,a)=>{let s=n+r.indent,c=r.colors;return e.map(l=>{let d=t[l],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+l+c.prop.close+"="+c.value.open+p+c.value.close}).join("")},dF=3,pF=(e,t,r,n,o,i)=>e.map(a=>{let s=typeof a=="string"?c_(a,t):i(a,t,r,n,o);return s===""&&typeof a=="object"&&a!==null&&a.nodeType!==dF?"":t.spacingOuter+r+s}).join(""),c_=(e,t)=>{let r=t.colors.content;return r.open+u_(e)+r.close},fF=(e,t)=>{let r=t.colors.comment;return r.open+"<!--"+u_(e)+"-->"+r.close},mF=(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},hF=(e,t)=>{let r=t.colors.tag;return r.open+"<"+e+r.close+" …"+r.open+" />"+r.close},yF=1,d_=3,p_=8,f_=11,gF=/^((HTML|SVG)\w*)?Element$/,m_=e=>{let{tagName:t}=e;return!!(typeof t=="string"&&t.includes("-")||typeof e.hasAttribute=="function"&&e.hasAttribute("is"))},bF=e=>{let t=e.constructor.name,{nodeType:r}=e;return r===yF&&(gF.test(t)||m_(e))||r===d_&&t==="Text"||r===p_&&t==="Comment"||r===f_&&t==="DocumentFragment"};function vF(e){return e.nodeType===d_}function EF(e){return e.nodeType===p_}function ru(e){return e.nodeType===f_}function wF(e){return{test:t=>{var r;return((t==null||(r=t.constructor)==null?void 0:r.name)||m_(t))&&bF(t)},serialize:(t,r,n,o,i,a)=>{if(vF(t))return c_(t.data,r);if(EF(t))return fF(t.data,r);let s=ru(t)?"DocumentFragment":t.tagName.toLowerCase();return++o>r.maxDepth?hF(s,r):mF(s,cF(ru(t)?[]:Array.from(t.attributes).map(c=>c.name).sort(),ru(t)?{}:Array.from(t.attributes).reduce((c,l)=>(c[l.name]=l.value,c),{}),r,n+r.indent,o,i,a),pF(Array.prototype.slice.call(t.childNodes||t.children).filter(e),r,n+r.indent,o,i,a),r,n)}}}var h_=null,jp=null,kp=null;try{let e=module&&module.require;jp=e.call(module,"fs").readFileSync,kp=e.call(module,"@babel/code-frame").codeFrameColumns,h_=e.call(module,"picocolors")}catch{}function _F(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=jp(i,"utf-8")}catch{return""}let l=kp(c,{start:{line:a,column:s}},{highlightCode:!0,linesBelow:0});return h_.dim(n)+`
302
+ `+l+`
303
+ `}function TF(){if(!jp||!kp)return"";let e=new Error().stack.split(`
304
+ `).slice(1).find(t=>!t.includes("node_modules/"));return _F(e)}var y_=3;function nu(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}function qp(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}function g_(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 Pr(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 SF=()=>{if(typeof process>"u")return!1;let e;try{var t;let r=(t=Ou)==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:AF}=Ip.plugins,RF=1,OF=8;function xF(e){return e.nodeType!==OF&&(e.nodeType!==RF||!e.matches(Se().defaultIgnore))}function Oi(e,t,r){if(r===void 0&&(r={}),e||(e=qp().body),typeof t!="number"&&(t=typeof process<"u"&&typeof Ou<"u"&&Ou.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=xF,...i}=r,a=Ip.format(e,{plugins:[wF(o),AF],printFunctionName:!1,highlight:SF(),...i});return t!==void 0&&e.outerHTML.length>t?a.slice(0,t)+"...":a}var pc=function(){let e=TF();console.log(e?Oi(...arguments)+`
305
+
306
+ `+e:Oi(...arguments))},vn={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=Oi(t),n=new Error([e,"Ignored nodes: comments, "+vn.defaultIgnore+`
307
+ `+r].filter(Boolean).join(`
308
+
309
+ `));return n.name="TestingLibraryElementError",n},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function PF(e){try{return vn._disableExpensiveErrorDiagnostics=!0,e()}finally{vn._disableExpensiveErrorDiagnostics=!1}}function CF(e){typeof e=="function"&&(e=e(vn)),vn={...vn,...e}}function Se(){return vn}var NF=["button","meter","output","progress","select","textarea","input"];function b_(e){return NF.includes(e.nodeName.toLowerCase())?"":e.nodeType===y_?e.textContent:Array.from(e.childNodes).map(t=>b_(t)).join("")}function fc(e){let t;return e.tagName.toLowerCase()==="label"?t=b_(e):t=e.value||e.textContent,t}function v_(e){if(e.labels!==void 0){var t;return(t=e.labels)!=null?t:[]}if(!IF(e))return[];let r=e.ownerDocument.querySelectorAll("label");return Array.from(r).filter(n=>n.control===e)}function IF(e){return/BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName)||e.tagName==="INPUT"&&e.getAttribute("type")!=="hidden"}function E_(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:fc(s),formControl:null}:{content:"",formControl:null}}):Array.from(v_(t)).map(a=>{let s=fc(a),c=Array.from(a.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter(l=>l.matches(n))[0];return{content:s,formControl:c}})}function w_(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 Eo(e,t,r,n){if(typeof e!="string")return!1;w_(r);let o=n(e);return typeof r=="string"||typeof r=="number"?o.toLowerCase().includes(r.toString().toLowerCase()):typeof r=="function"?r(o,t):__(r,o)}function Sr(e,t,r,n){if(typeof e!="string")return!1;w_(r);let o=n(e);return r instanceof Function?r(o,t):r instanceof RegExp?__(r,o):o===String(r)}function Lp(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 In(e){let{trim:t,collapseWhitespace:r,normalizer:n}=e;if(!n)return Lp({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 __(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 ea(e){return e.matches("input[type=submit], input[type=button], input[type=reset]")?e.value:Array.from(e.childNodes).filter(t=>t.nodeType===y_&&!!t.textContent).map(t=>t.textContent).join("")}var MF=jF(Lt.elementRoles);function T_(e){return e.hidden===!0||e.getAttribute("aria-hidden")==="true"||e.ownerDocument.defaultView.getComputedStyle(e).display==="none"}function al(e,t){t===void 0&&(t={});let{isSubtreeInaccessible:r=T_}=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 Dp(e){for(let{match:t,roles:r}of MF)if(t(e))return[...r];return[]}function jF(e){function t(a){let{name:s,attributes:c}=a;return""+s+c.map(l=>{let{name:d,value:p,constraints:f=[]}=l,m=f.indexOf("undefined")!==-1,y=f.indexOf("set")!==-1;return typeof p<"u"?"["+d+'="'+p+'"]':m?":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:l}=s;return l-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 l=t({...a,attributes:s});return d=>c>=0&&d.type!=="text"?!1:d.matches(l)}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 S_(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?al(o)===!1:!0).reduce((o,i)=>{let a=[];return i.hasAttribute("role")?a=i.getAttribute("role").split(" ").slice(0,1):a=Dp(i),a.reduce((s,c)=>Array.isArray(s[c])?{...s,[c]:[...s[c],i]}:{...s,[c]:[i]},o)},{})}function A_(e,t){let{hidden:r,includeDescription:n}=t,o=S_(e,{hidden:r});return Object.entries(o).filter(i=>{let[a]=i;return a!=="generic"}).map(i=>{let[a,s]=i,c="-".repeat(50),l=s.map(d=>{let p='Name "'+Mp(d,{computedStyleSupportsPseudoElements:Se().computedStyleSupportsPseudoElements})+`":
310
+ `,f=Oi(d.cloneNode(!1));if(n){let m='Description "'+l_(d,{computedStyleSupportsPseudoElements:Se().computedStyleSupportsPseudoElements})+`":
311
+ `;return""+p+m+f}return""+p+f}).join(`
312
+
313
+ `);return a+`:
314
+
315
+ `+l+`
316
+
317
+ `+c}).join(`
318
+ `)}var kF=function(e,t){let{hidden:r=!1}=t===void 0?{}:t;return console.log(A_(e,{hidden:r}))};function qF(e){return e.tagName==="OPTION"?e.selected:ta(e,"aria-selected")}function LF(e){return e.getAttribute("aria-busy")==="true"}function DF(e){if(!("indeterminate"in e&&e.indeterminate))return"checked"in e?e.checked:ta(e,"aria-checked")}function $F(e){return ta(e,"aria-pressed")}function FF(e){var t,r;return(t=(r=ta(e,"aria-current"))!=null?r:e.getAttribute("aria-current"))!=null?t:!1}function BF(e){return ta(e,"aria-expanded")}function ta(e,t){let r=e.getAttribute(t);if(r==="true")return!0;if(r==="false")return!1}function UF(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 JF(e){let t=e.getAttribute("aria-valuenow");return t===null?void 0:+t}function HF(e){let t=e.getAttribute("aria-valuemax");return t===null?void 0:+t}function VF(e){let t=e.getAttribute("aria-valuemin");return t===null?void 0:+t}function zF(e){let t=e.getAttribute("aria-valuetext");return t===null?void 0:t}var wh=Lp();function GF(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function _h(e){return new RegExp(GF(e.toLowerCase()),"i")}function Ir(e,t,r,n){let{variant:o,name:i}=n,a="",s={},c=[["Role","TestId"].includes(e)?r:_h(r)];i&&(s.name=_h(i)),e==="Role"&&al(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 l=o+"By"+e;return{queryName:e,queryMethod:l,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[m,y]=f;return m+": "+y}).join(", ")+" }":"",l+"("+d+p+")"}}}function Mr(e,t,r){return r&&(!t||t.toLowerCase()===e.toLowerCase())}function us(e,t,r){var n,o;if(t===void 0&&(t="get"),e.matches(Se().defaultIgnore))return;let i=(n=e.getAttribute("role"))!=null?n:(o=Dp(e))==null?void 0:o[0];if(i!=="generic"&&Mr("Role",r,i))return Ir("Role",e,i,{variant:t,name:Mp(e,{computedStyleSupportsPseudoElements:Se().computedStyleSupportsPseudoElements})});let a=E_(document,e).map(f=>f.content).join(" ");if(Mr("LabelText",r,a))return Ir("LabelText",e,a,{variant:t});let s=e.getAttribute("placeholder");if(Mr("PlaceholderText",r,s))return Ir("PlaceholderText",e,s,{variant:t});let c=wh(ea(e));if(Mr("Text",r,c))return Ir("Text",e,c,{variant:t});if(Mr("DisplayValue",r,e.value))return Ir("DisplayValue",e,wh(e.value),{variant:t});let l=e.getAttribute("alt");if(Mr("AltText",r,l))return Ir("AltText",e,l,{variant:t});let d=e.getAttribute("title");if(Mr("Title",r,d))return Ir("Title",e,d,{variant:t});let p=e.getAttribute(Se().testIdAttribute);if(Mr("TestId",r,p))return Ir("TestId",e,p,{variant:t})}function ya(e,t){e.stack=t.stack.replace(t.message,e.message)}function WF(e,t){let{container:r=qp(),timeout:n=Se().asyncUtilTimeout,showOriginalStackTrace:o=Se().showOriginalStackTrace,stackTraceError:i,interval:a=50,onTimeout:s=l=>(Object.defineProperty(l,"message",{value:Se().getElementError(l.message,r).message}),l),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(l,d)=>{let p,f,m,y=!1,g="idle",v=setTimeout(C,n),b=nu();if(b){let{unstable_advanceTimersWrapper:E}=Se();for(x();!y;){if(!nu()){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||ya(_,i),d(_);return}if(await E(async()=>{jest.advanceTimersByTime(a)}),y)break;x()}}else{try{Pr(r)}catch(_){d(_);return}f=setInterval(R,a);let{MutationObserver:E}=g_(r);m=new E(R),m.observe(r,c),x()}function T(E,_){y=!0,clearTimeout(v),b||(clearInterval(f),m.disconnect()),E?d(E):l(_)}function R(){if(nu()){let E=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||ya(E,i),d(E)}else return x()}function x(){if(g!=="pending")try{let E=PF(e);typeof E?.then=="function"?(g="pending",E.then(_=>{g="resolved",T(null,_)},_=>{g="rejected",p=_})):T(null,E)}catch(E){p=E}}function C(){let E;p?(E=p,!o&&E.name==="TestingLibraryElementError"&&ya(E,i)):(E=new Error("Timed out in waitFor."),o||ya(E,i)),T(s(E),null)}})}function $p(e,t){let r=new Error("STACK_TRACE_MESSAGE");return Se().asyncWrapper(()=>WF(e,{stackTraceError:r,...t}))}function sl(e,t){return Se().getElementError(e,t)}function ll(e,t){return sl(e+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",t)}function Mn(e,t,r,n){let{exact:o=!0,collapseWhitespace:i,trim:a,normalizer:s}=n===void 0?{}:n,c=o?Sr:Eo,l=In({collapseWhitespace:i,trim:a,normalizer:s});return Array.from(t.querySelectorAll("["+e+"]")).filter(d=>c(d.getAttribute(e),d,r,l))}function R_(e,t,r,n){let o=Mn(e,t,r,n);if(o.length>1)throw ll("Found multiple elements by ["+e+"="+r+"]",t);return o[0]||null}function Zn(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=>sl(null,c).message).join(`
321
+
322
+ `);throw ll(t(r,...o)+`
323
+
324
+ Here are the matching elements:
325
+
326
+ `+s,r)}return a[0]||null}}function O_(e,t){return Se().getElementError(`A better query is available, try this:
327
+ `+e.toString()+`
328
+ `,t)}function Fp(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 Se().getElementError(t(r,...o),r);return a}}function eo(e){return(t,r,n,o)=>$p(()=>e(t,r,n),{container:t,...o})}var Gr=(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=Se().throwSuggestions}={}]=i.slice(-1);if(s&&c){let l=us(s,r);if(l&&!t.endsWith(l.queryName))throw O_(l.toString(),n)}return s},wt=(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=Se().throwSuggestions}={}]=i.slice(-1);if(s.length&&c){let l=[...new Set(s.map(d=>{var p;return(p=us(d,r))==null?void 0:p.toString()}))];if(l.length===1&&!t.endsWith(us(s[0],r).queryName))throw O_(l[0],n)}return s};function Cr(e,t,r){let n=Gr(Zn(e,t),e.name,"query"),o=Fp(e,r),i=Zn(o,t),a=Gr(i,e.name,"get"),s=wt(o,e.name.replace("query","get"),"getAll"),c=eo(wt(o,e.name,"findAll")),l=eo(Gr(i,e.name,"find"));return[n,s,a,c,l]}var YF=Object.freeze({__proto__:null,getElementError:sl,wrapAllByQueryWithSuggestion:wt,wrapSingleQueryWithSuggestion:Gr,getMultipleElementsFoundError:ll,queryAllByAttribute:Mn,queryByAttribute:R_,makeSingleQuery:Zn,makeGetAllQuery:Fp,makeFindQuery:eo,buildQueries:Cr});function KF(e){return Array.from(e.querySelectorAll("label,input")).map(t=>({node:t,textToMatch:fc(t)})).filter(t=>{let{textToMatch:r}=t;return r!==null})}var XF=function(e,t,r){let{exact:n=!0,trim:o,collapseWhitespace:i,normalizer:a}=r===void 0?{}:r,s=n?Sr:Eo,c=In({collapseWhitespace:i,trim:o,normalizer:a});return KF(e).filter(l=>{let{node:d,textToMatch:p}=l;return s(p,d,t,c)}).map(l=>{let{node:d}=l;return d})},xi=function(e,t,r){let{selector:n="*",exact:o=!0,collapseWhitespace:i,trim:a,normalizer:s}=r===void 0?{}:r;Pr(e);let c=o?Sr:Eo,l=In({collapseWhitespace:i,trim:a,normalizer:s}),d=Array.from(e.querySelectorAll("*")).filter(p=>v_(p).length||p.hasAttribute("aria-labelledby")).reduce((p,f)=>{let m=E_(e,f,{selector:n});m.filter(g=>!!g.formControl).forEach(g=>{c(g.content,g.formControl,t,l)&&g.formControl&&p.push(g.formControl)});let y=m.filter(g=>!!g.content).map(g=>g.content);return c(y.join(" "),f,t,l)&&p.push(f),y.length>1&&y.forEach((g,v)=>{c(g,f,t,l)&&p.push(f);let b=[...y];b.splice(v,1),b.length>1&&c(b.join(" "),f,t,l)&&p.push(f)}),p},[]).concat(Mn("aria-label",e,t,{exact:o,normalizer:l}));return Array.from(new Set(d)).filter(p=>p.matches(n))},Sn=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=xi(e,t,...n);if(!i.length){let a=XF(e,t,...n);if(a.length){let s=a.map(c=>QF(e,c)).filter(c=>!!c);throw s.length?Se().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):Se().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 Se().getElementError("Unable to find a label with the text of: "+t,e)}return i};function QF(e,t){let r=t.getAttribute("for");if(!r)return null;let n=e.querySelector('[id="'+r+'"]');return n?n.tagName.toLowerCase():null}var x_=(e,t)=>"Found multiple elements with the text of: "+t,P_=Gr(Zn(xi,x_),xi.name,"query"),C_=Zn(Sn,x_),N_=eo(wt(Sn,Sn.name,"findAll")),I_=eo(Gr(C_,Sn.name,"find")),M_=wt(Sn,Sn.name,"getAll"),j_=Gr(C_,Sn.name,"get"),k_=wt(xi,xi.name,"queryAll"),mc=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Pr(t[0]),Mn("placeholder",...t)},ZF=(e,t)=>"Found multiple elements with the placeholder text of: "+t,eB=(e,t)=>"Unable to find an element with the placeholder text of: "+t,q_=wt(mc,mc.name,"queryAll"),[L_,D_,$_,F_,B_]=Cr(mc,ZF,eB),hc=function(e,t,r){let{selector:n="*",exact:o=!0,collapseWhitespace:i,trim:a,ignore:s=Se().defaultIgnore,normalizer:c}=r===void 0?{}:r;Pr(e);let l=o?Sr:Eo,d=In({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=>l(ea(f),f,t,d))},tB=(e,t)=>"Found multiple elements with the text: "+t,rB=function(e,t,r){r===void 0&&(r={});let{collapseWhitespace:n,trim:o,normalizer:i,selector:a}=r,s=In({collapseWhitespace:n,trim:o,normalizer:i})(t.toString()),c=s!==t.toString(),l=(a??"*")!=="*";return"Unable to find an element with the text: "+(c?s+" (normalized from '"+t+"')":t)+(l?", 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."},U_=wt(hc,hc.name,"queryAll"),[J_,H_,V_,z_,G_]=Cr(hc,tB,rB),yc=function(e,t,r){let{exact:n=!0,collapseWhitespace:o,trim:i,normalizer:a}=r===void 0?{}:r;Pr(e);let s=n?Sr:Eo,c=In({collapseWhitespace:o,trim:i,normalizer:a});return Array.from(e.querySelectorAll("input,textarea,select")).filter(l=>l.tagName==="SELECT"?Array.from(l.options).filter(d=>d.selected).some(d=>s(ea(d),d,t,c)):s(l.value,l,t,c))},nB=(e,t)=>"Found multiple elements with the display value: "+t+".",oB=(e,t)=>"Unable to find an element with the display value: "+t+".",W_=wt(yc,yc.name,"queryAll"),[Y_,K_,X_,Q_,Z_]=Cr(yc,nB,oB),iB=/^(img|input|area|.+-.+)$/i,gc=function(e,t,r){return r===void 0&&(r={}),Pr(e),Mn("alt",e,t,r).filter(n=>iB.test(n.tagName))},aB=(e,t)=>"Found multiple elements with the alt text: "+t,sB=(e,t)=>"Unable to find an element with the alt text: "+t,eT=wt(gc,gc.name,"queryAll"),[tT,rT,nT,oT,iT]=Cr(gc,aB,sB),lB=e=>{var t;return e.tagName.toLowerCase()==="title"&&((t=e.parentElement)==null?void 0:t.tagName.toLowerCase())==="svg"},bc=function(e,t,r){let{exact:n=!0,collapseWhitespace:o,trim:i,normalizer:a}=r===void 0?{}:r;Pr(e);let s=n?Sr:Eo,c=In({collapseWhitespace:o,trim:i,normalizer:a});return Array.from(e.querySelectorAll("[title], svg > title")).filter(l=>s(l.getAttribute("title"),l,t,c)||lB(l)&&s(ea(l),l,t,c))},uB=(e,t)=>"Found multiple elements with the title: "+t+".",cB=(e,t)=>"Unable to find an element with the title: "+t+".",aT=wt(bc,bc.name,"queryAll"),[sT,lT,uT,cT,dT]=Cr(bc,uB,cB),vc=function(e,t,r){let{hidden:n=Se().defaultHidden,name:o,description:i,queryFallbacks:a=!1,selected:s,busy:c,checked:l,pressed:d,current:p,level:f,expanded:m,value:{now:y,min:g,max:v,text:b}={}}=r===void 0?{}:r;if(Pr(e),s!==void 0){var T;if(((T=Lt.roles.get(t))==null?void 0:T.props["aria-selected"])===void 0)throw new Error('"aria-selected" is not supported on role "'+t+'".')}if(c!==void 0){var R;if(((R=Lt.roles.get(t))==null?void 0:R.props["aria-busy"])===void 0)throw new Error('"aria-busy" is not supported on role "'+t+'".')}if(l!==void 0){var x;if(((x=Lt.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=Lt.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 E;if(((E=Lt.roles.get(t))==null?void 0:E.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(((_=Lt.roles.get(t))==null?void 0:_.props["aria-valuenow"])===void 0)throw new Error('"aria-valuenow" is not supported on role "'+t+'".')}if(v!==void 0){var S;if(((S=Lt.roles.get(t))==null?void 0:S.props["aria-valuemax"])===void 0)throw new Error('"aria-valuemax" is not supported on role "'+t+'".')}if(g!==void 0){var A;if(((A=Lt.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 $;if((($=Lt.roles.get(t))==null?void 0:$.props["aria-valuetext"])===void 0)throw new Error('"aria-valuetext" is not supported on role "'+t+'".')}if(m!==void 0){var k;if(((k=Lt.roles.get(t))==null?void 0:k.props["aria-expanded"])===void 0)throw new Error('"aria-expanded" is not supported on role "'+t+'".')}let H=new WeakMap;function I(O){return H.has(O)||H.set(O,T_(O)),H.get(O)}return Array.from(e.querySelectorAll(dB(t))).filter(O=>{if(O.hasAttribute("role")){let q=O.getAttribute("role");if(a)return q.split(" ").filter(Boolean).some(V=>V===t);let[F]=q.split(" ");return F===t}return Dp(O).some(q=>q===t)}).filter(O=>{if(s!==void 0)return s===qF(O);if(c!==void 0)return c===LF(O);if(l!==void 0)return l===DF(O);if(d!==void 0)return d===$F(O);if(p!==void 0)return p===FF(O);if(m!==void 0)return m===BF(O);if(f!==void 0)return f===UF(O);if(y!==void 0||v!==void 0||g!==void 0||b!==void 0){let F=!0;if(y!==void 0&&F&&(F=y===JF(O)),v!==void 0&&F&&(F=v===HF(O)),g!==void 0&&F&&(F=g===VF(O)),b!==void 0){var q;F&&(F=Sr((q=zF(O))!=null?q:null,O,b,V=>V))}return F}return!0}).filter(O=>o===void 0?!0:Sr(Mp(O,{computedStyleSupportsPseudoElements:Se().computedStyleSupportsPseudoElements}),O,o,q=>q)).filter(O=>i===void 0?!0:Sr(l_(O,{computedStyleSupportsPseudoElements:Se().computedStyleSupportsPseudoElements}),O,i,q=>q)).filter(O=>n===!1?al(O,{isSubtreeInaccessible:I})===!1:!0)};function dB(e){var t;let r='*[role~="'+e+'"]',n=(t=Lt.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 pT=e=>{let t="";return e===void 0?t="":typeof e=="string"?t=' and name "'+e+'"':t=" and name `"+e+"`",t},pB=function(e,t,r){let{name:n}=r===void 0?{}:r;return'Found multiple elements with the role "'+t+'"'+pT(n)},fB=function(e,t,r){let{hidden:n=Se().defaultHidden,name:o,description:i}=r===void 0?{}:r;if(Se()._disableExpensiveErrorDiagnostics)return'Unable to find role="'+t+'"'+pT(o);let a="";Array.from(e.children).forEach(d=>{a+=A_(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 l="";return i===void 0?l="":typeof i=="string"?l=' and description "'+i+'"':l=" and description `"+i+"`",(`
338
+ Unable to find an `+(n===!1?"accessible ":"")+'element with the role "'+t+'"'+c+l+`
339
+
340
+ `+s).trim()},fT=wt(vc,vc.name,"queryAll"),[mT,hT,yT,gT,bT]=Cr(vc,pB,fB),Bp=()=>Se().testIdAttribute,Ec=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Pr(t[0]),Mn(Bp(),...t)},mB=(e,t)=>"Found multiple elements by: ["+Bp()+'="'+t+'"]',hB=(e,t)=>"Unable to find an element by: ["+Bp()+'="'+t+'"]',vT=wt(Ec,Ec.name,"queryAll"),[ET,wT,_T,TT,ST]=Cr(Ec,mB,hB),cs=Object.freeze({__proto__:null,queryAllByLabelText:k_,queryByLabelText:P_,getAllByLabelText:M_,getByLabelText:j_,findAllByLabelText:N_,findByLabelText:I_,queryByPlaceholderText:L_,queryAllByPlaceholderText:q_,getByPlaceholderText:$_,getAllByPlaceholderText:D_,findAllByPlaceholderText:F_,findByPlaceholderText:B_,queryByText:J_,queryAllByText:U_,getByText:V_,getAllByText:H_,findAllByText:z_,findByText:G_,queryByDisplayValue:Y_,queryAllByDisplayValue:W_,getByDisplayValue:X_,getAllByDisplayValue:K_,findAllByDisplayValue:Q_,findByDisplayValue:Z_,queryByAltText:tT,queryAllByAltText:eT,getByAltText:nT,getAllByAltText:rT,findAllByAltText:oT,findByAltText:iT,queryByTitle:sT,queryAllByTitle:aT,getByTitle:uT,getAllByTitle:lT,findAllByTitle:cT,findByTitle:dT,queryByRole:mT,queryAllByRole:fT,getAllByRole:hT,getByRole:yT,findAllByRole:gT,findByRole:bT,queryByTestId:ET,queryAllByTestId:vT,getByTestId:_T,getAllByTestId:wT,findAllByTestId:TT,findByTestId:ST});function wc(e,t,r){return t===void 0&&(t=cs),r===void 0&&(r={}),Object.keys(t).reduce((n,o)=>{let i=t[o];return n[o]=i.bind(null,e),n},r)}var AT=e=>!e||Array.isArray(e)&&!e.length;function Th(e){if(AT(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 yB(e,t){let r=new Error("Timed out in waitForElementToBeRemoved.");if(typeof e!="function"){Th(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 Th(e()),$p(()=>{let n;try{n=e()}catch(o){if(o.name==="TestingLibraryElementError")return;throw o}if(!AT(n))throw r},t)}var Sh={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}}},Ah={doubleClick:"dblClick"};function Pi(e,t){return Se().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 La(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,...l}={}}=a;s!==void 0&&gB(t,s),c!==void 0&&Object.defineProperty(t,"files",{configurable:!0,enumerable:!0,writable:!0,value:c}),Object.assign(t,l);let d=g_(t),p=d[o]||d.Event,f;if(typeof p=="function")f=new p(e,a);else{f=d.document.createEvent(o);let{bubbles:m,cancelable:y,detail:g,...v}=a;f.initEvent(e,m,y,g),Object.keys(v).forEach(b=>{f[b]=v[b]})}return["dataTransfer","clipboardData"].forEach(m=>{let y=a[m];typeof y=="object"&&(typeof d.DataTransfer=="function"?Object.defineProperty(f,m,{value:Object.getOwnPropertyNames(y).reduce((g,v)=>(Object.defineProperty(g,v,{value:y[v]}),g),new d.DataTransfer)}):Object.defineProperty(f,m,{value:y}))}),f}Object.keys(Sh).forEach(e=>{let{EventType:t,defaultInit:r}=Sh[e],n=e.toLowerCase();La[e]=(o,i)=>La(n,o,i,{EventType:t,defaultInit:r}),Pi[e]=(o,i)=>Pi(o,La[e](o,i))});function gB(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(Ah).forEach(e=>{let t=Ah[e];Pi[e]=function(){return Pi[t](...arguments)}});function bB(e){return e.replace(/[ \t]*[\n][ \t]*/g,`
341
+ `)}function vB(e){return uF.default.compressToEncodedURIComponent(bB(e))}function EB(e){return"https://testing-playground.com/#markup="+vB(e)}var wB=(e,t,r)=>Array.isArray(e)?e.forEach(n=>pc(n,t,r)):pc(e,t,r),_B=function(e){if(e===void 0&&(e=qp().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=EB(e.innerHTML);return console.log(`Open this URL in your browser
342
+
343
+ `+t),t},Rh={debug:wB,logTestingPlaygroundURL:_B},TB=typeof document<"u"&&document.body?wc(document.body,cs,Rh):Object.keys(cs).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),Rh);function we(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 Bt(e){var t;if(SB(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 ${AB(e)}`)}function SB(e){return e.nodeType===9}function AB(e){return typeof e=="function"?`function ${e.name}`:e===null?"null":String(e)}function RT(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 Up(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 Ur(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var OT=class{getAsFile(){return this.file}getAsString(e){typeof this.data=="string"&&e(this.data)}webkitGetAsEntry(){throw new Error("not implemented")}constructor(e,t){Ur(this,"kind",void 0),Ur(this,"type",void 0),Ur(this,"file",null),Ur(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)}},RB=class extends Array{add(...e){let t=new OT(e[0],e[1]);return this.push(t),t}clear(){this.splice(0,this.length)}remove(e){this.splice(e,1)}};function ga(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 OB(e){return new class{getData(t){var r;let n=(r=this.items.find(ga(t,!0)))!==null&&r!==void 0?r:this.items.find(ga(t,!1)),o="";return n?.getAsString(i=>{o=i}),o}setData(t,r){let n=this.items.findIndex(ga(t,!0)),o=new OT(r,t);n>=0?this.items.splice(n,1,o):this.items.push(o)}clearData(t){if(t){let r=this.items.findIndex(ga(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(){Ur(this,"dropEffect","none"),Ur(this,"effectAllowed","uninitialized"),Ur(this,"items",new RB),Ur(this,"files",Up(e,[]))}}}function Jp(e,t=[]){let r=typeof e.DataTransfer>"u"?OB(e):new e.DataTransfer;return Object.defineProperty(r,"files",{get:()=>Up(e,t)}),r}async function xB(e,t){return t.kind==="file"?t.getAsFile():new e.Blob([await new Promise(r=>t.getAsString(r))],{type:t.type})}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}function PT(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){xT(this,"data",void 0),this.data=n}}(r)}var to=Symbol("Manage ClipboardSub");function Oh(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=>RT(i,e.FileReader)))}return r}async write(r){this.items=r}async writeText(r){this.items=[PT(e,r)]}constructor(...r){super(...r),xT(this,"items",[])}},{[to]:t})}function Hp(e){return!!e?.[to]}function PB(e){if(Hp(e.navigator.clipboard))return e.navigator.clipboard[to];let t=Object.getOwnPropertyDescriptor(e.navigator,"clipboard"),r,n={resetClipboardStub:()=>{r=Oh(e,n)},detachClipboardStub:()=>{t?Object.defineProperty(e.navigator,"clipboard",t):Object.defineProperty(e.navigator,"clipboard",{value:void 0,configurable:!0})}};return r=Oh(e,n),Object.defineProperty(e.navigator,"clipboard",{get:()=>r,configurable:!0}),r[to]}function CB(e){Hp(e.navigator.clipboard)&&e.navigator.clipboard[to].resetClipboardStub()}function NB(e){Hp(e.navigator.clipboard)&&e.navigator.clipboard[to].detachClipboardStub()}async function IB(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=Jp(t);for(let i of n)for(let a of i.types)o.setData(a,await i.getType(a).then(s=>RT(s,t.FileReader)));return o}async function CT(e,t){let r=Bt(e),n=r.navigator.clipboard,o=[];for(let i=0;i<t.items.length;i++){let a=t.items[i],s=await xB(r,a);o.push(PT(r,s))}if(!(n&&await n.write(o).then(()=>!0,()=>!1)))throw new Error("The Clipboard API is unavailable.")}var ds=globalThis;typeof ds.afterEach=="function"&&ds.afterEach(()=>{typeof globalThis.window<"u"&&CB(globalThis.window)});typeof ds.afterAll=="function"&&ds.afterAll(()=>{typeof globalThis.window<"u"&&NB(globalThis.window)});var NT=["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 Vp(e){return e.matches(NT)}function MB(e){return new e.constructor(e.type,e)}function Ar(e){for(let r=e;r;r=r.parentElement)if(we(r,["button","input","select","textarea","optgroup","option"])){if(r.hasAttribute("disabled"))return!0}else if(we(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 ra(e){let t=e.activeElement;return t?.shadowRoot?ra(t.shadowRoot):Ar(t)?e.ownerDocument?e.ownerDocument.body:e.body:t}function ou(e){var t;return(t=ra(e))!==null&&t!==void 0?t:e.body}function jB(e,t){let r=e;do{if(t(r))return r;r=r.parentElement}while(r&&r!==e.ownerDocument.body)}function An(e){return e.hasAttribute("contenteditable")&&(e.getAttribute("contenteditable")=="true"||e.getAttribute("contenteditable")=="")}function Ci(e){let t=kB(e);return t&&(t.closest('[contenteditable=""]')||t.closest('[contenteditable="true"]'))}function kB(e){return e.nodeType===1?e:e.parentElement}var IT=(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})(IT||{});function MT(e){return we(e,"button")||we(e,"input")&&e.type in IT}function ro(e){return kT(e)&&!e.readOnly||An(e)}var jT=(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})(jT||{});function kT(e){return we(e,"textarea")||we(e,"input")&&e.type in jT}function lr(e){return qT(e)&&kT(e)}function qB(e){return qT(e)&&MT(e)}function qT(e){return e.nodeType===1}function LB(e){let t=e.ownerDocument.getSelection();if(t?.focusNode&&lr(e)){let n=Ci(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 no(e,t){return Se().eventWrapper(e)}function Yr(e){let t=jB(e,Vp),r=ra(e.ownerDocument);(t??e.ownerDocument.body)!==r&&(no(t?()=>t.focus():()=>r?.blur()),LB(t??e.ownerDocument.body))}function DB(e){!Vp(e)||ra(e.ownerDocument)!==e||no(()=>e.blur())}var Kr={};Kr.click=(e,t,r)=>{let n=t.closest("button,input,label,select,textarea"),o=n&&we(n,"label")&&n.control;if(o&&o!==t)return()=>{Vp(o)&&(Yr(o),r.dispatchEvent(o,MB(e)))};if(we(t,"input",{type:"file"}))return()=>{DB(t),t.dispatchEvent(new(Bt(t)).Event("fileDialog")),Yr(t)}};var oo=Symbol("Displayed value in UI"),Er=Symbol("Displayed selection in UI"),ps=Symbol("Initial value to compare on blur");function $B(e){return typeof e=="object"&&oo in e}function FB(e){return!!e&&typeof e=="object"&&Er in e}function BB(e,t){e[ps]===void 0&&(e[ps]=e.value),e[oo]=t,e.value=Object.assign(new String(t),{[oo]:!0})}function ur(e){return e[oo]===void 0?e.value:String(e[oo])}function zp(e){e[oo]=void 0}function LT(e){e[ps]=void 0}function UB(e){return e[ps]}function JB(e,t){e[Er]=t}function wo(e,{focusOffset:t,anchorOffset:r=t},n="replace"){let o=ur(e).length,i=p=>Math.max(0,Math.min(o,p)),a=n==="replace"||e[Er]===void 0?i(r):e[Er].anchorOffset,s=i(t),c=Math.min(a,s),l=Math.max(a,s);if(e[Er]={anchorOffset:a,focusOffset:s},e.selectionStart===c&&e.selectionEnd===l)return;let d=Object.assign(new Number(c),{[Er]:!0});try{e.setSelectionRange(d,l)}catch{}}function Ni(e){var t,r,n;let o=(n=e[Er])!==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 HB(e){return!!e[Er]}function Da(e){e[Er]=void 0}var fs=globalThis.parseInt;function VB(e){let t=e.replace(/\D/g,"");if(t.length<2)return e;let r=fs(t[0],10),n=fs(t[1],10);if(r>=3||r===2&&n>=4){let o;return r>=3?o=1:o=2,xh(t,o)}return e.length===2?e:xh(t,2)}function xh(e,t){let r=e.slice(0,t),n=Math.min(fs(r,10),23),o=e.slice(t),i=fs(o,10),a=Math.min(i,59);return`${n.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`}function DT(e,t){let r=e.cloneNode();return r.value=t,r.value===t}var $T=(function(e){return e.email="email",e.password="password",e.search="search",e.telephone="telephone",e.text="text",e.url="url",e})($T||{});function zB(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 GB(e){return we(e,"textarea")||we(e,"input")&&e.type in $T}function FT(e,t,r,n){if($a(e)&&t+r>=0&&t+r<=e.nodeValue.length)return{node:e,offset:t+r};let o=Ph(e,t,r);if(o){if($a(o))return{node:o,offset:r>0?Math.min(1,o.nodeValue.length):Math.max(o.nodeValue.length-1,0)};if(we(o,"br")){let i=Ph(o,void 0,r);return i?$a(i)?{node:i,offset:r>0?0:i.nodeValue.length}:r<0&&we(i,"br")?{node:o.parentNode,offset:ba(o)}:{node:i.parentNode,offset:ba(i)+(r>0?0:1)}:r<0&&n==="deleteContentBackward"?{node:o.parentNode,offset:ba(o)}:void 0}else return{node:o.parentNode,offset:ba(o)+(r>0?1:0)}}}function Ph(e,t,r){let n=Number(t)+(r<0?-1:0);return t!==void 0&&Gp(e)&&n>=0&&n<e.children.length&&(e=e.children[n]),YB(e,r===1?"next":"previous",WB)}function WB(e){if($a(e))return!0;if(Gp(e)){if(we(e,["input","textarea"]))return e.type!=="hidden";if(we(e,"br"))return!0}return!1}function ba(e){let t=0;for(;e.previousSibling;)t++,e=e.previousSibling;return t}function Gp(e){return e.nodeType===1}function $a(e){return e.nodeType===3}function YB(e,t,r){for(;;){var n;let o=e[`${t}Sibling`];if(o){if(e=KB(o,t==="next"?"first":"last"),r(e))return e}else if(e.parentNode&&(!Gp(e.parentNode)||!An(e.parentNode)&&e.parentNode!==((n=e.ownerDocument)===null||n===void 0?void 0:n.body)))e=e.parentNode;else break}}function KB(e,t){for(;e.hasChildNodes();)e=e[`${t}Child`];return e}var Ii=Symbol("Track programmatic changes for React workaround");function XB(e){return Object.getOwnPropertyNames(e).some(t=>t.startsWith("__react"))&&Bt(e).REACT_VERSION===17}function QB(e){XB(e)&&(e[Ii]={previousValue:String(e.value),tracked:[]})}function ZB(e,t){var r,n;(n=e[Ii])===null||n===void 0||(r=n.tracked)===null||r===void 0||r.push(t),e[Ii]||(zp(e),wo(e,{focusOffset:t.length}))}function e2(e,t){var r;let n=e[Ii];if(e[Ii]=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||zp(e),HB(e)&&wo(e,{focusOffset:o?t:e.value.length})}function BT(e){let t=t2(e);if(t&&lr(t))return{type:"input",selection:Ni(t)};let r=t?.ownerDocument.getSelection();return{type:Ci(e)&&r?.anchorNode&&Ci(r.anchorNode)?"contenteditable":"default",selection:r}}function t2(e){return e.nodeType===1?e:e.parentElement}function r2(e){let t=BT(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 Rn({focusNode:e,focusOffset:t,anchorNode:r=e,anchorOffset:n=t}){var o,i;if(BT(e).type==="input")return wo(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 UT(e){return we(e,"input")&&["date","time"].includes(e.type)}function io(e,t,r,n="insertText"){let o=r2(t);o&&(!UT(t)&&!e.dispatchUIEvent(t,"beforeinput",{inputType:n,data:r})||("startContainer"in o?n2(e,t,o,r,n):o2(e,t,o,r,n)))}function n2(e,t,r,n,o){let i=!1;if(!r.collapsed)i=!0,r.deleteContents();else if(["deleteContentBackward","deleteContentForward"].includes(o)){let a=FT(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 o2(e,t,r,n,o){let i=n;if(GB(t)){let l=zB(t);if(l!==void 0&&n.length>0){let d=l-t.value.length;if(d>0)i=n.substring(0,d);else return}}let{newValue:a,newOffset:s,oldValue:c}=i2(i,t,r,o);a===c&&s===r.startOffset&&s===r.endOffset||we(t,"input",{type:"number"})&&!a2(a)||(BB(t,a),Rn({focusNode:t,anchorOffset:s,focusOffset:s}),UT(t)?DT(t,a)&&(Ch(e,t,s,{}),e.dispatchUIEvent(t,"change"),LT(t)):Ch(e,t,s,{data:n,inputType:o}))}function i2(e,t,{startOffset:r,endOffset:n},o){let i=ur(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),l=i.substring(c,i.length),d=`${s}${e}${l}`,p=a+e.length;if(we(t,"input",{type:"time"})){let f=VB(d);f!==""&&DT(t,f)&&(d=f,p=f.length)}return{oldValue:i,newValue:d,newOffset:p}}function Ch(e,t,r,n){e.dispatchUIEvent(t,"input",n),e2(t,r)}function a2(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]))}Kr.cut=(e,t,r)=>()=>{ro(t)&&io(r,t,"","deleteByCut")};function s2(e){return e?An(e)?e.textContent:ur(e):null}function l2(e){let t=Bt(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 u2(e,t){let r=e.ownerDocument,n=r.querySelectorAll(NT),o=Array.from(n).filter(c=>c===e||!(Number(c.getAttribute("tabindex"))<0||Ar(c)));Number(e.getAttribute("tabindex"))>=0&&o.sort((c,l)=>{let d=Number(c.getAttribute("tabindex")),p=Number(l.getAttribute("tabindex"));return d===p?0:d===0?1:p===0?-1:d-p});let i={},a=[r.body],s=we(e,"input",{type:"radio"})?e.name:void 0;o.forEach(c=>{let l=c;if(we(l,"input",{type:"radio"})&&l.name){if(l===e){a.push(l);return}else if(l.name===s)return;if(l.checked){a=a.filter(d=>!we(d,"input",{type:"radio",name:l.name})),a.push(l),i[l.name]=l;return}if(typeof i[l.name]<"u")return}a.push(l)});for(let c=a.findIndex(l=>l===e);;)if(c+=t?-1:1,c===a.length?c=0:c===-1&&(c=a.length-1),a[c]===e||a[c]===r.body||l2(a[c]))return a[c]}function Nh(e,t){if(lr(e)){let r=Ni(e);Rn({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=FT(r.focusNode,r.focusOffset,t);n&&Rn({focusNode:n.node,focusOffset:n.offset})}else r[t<0?"collapseToStart":"collapseToEnd"]()}}function JT(e){if(lr(e))return Rn({focusNode:e,anchorOffset:0,focusOffset:ur(e).length});var t;let r=(t=Ci(e))!==null&&t!==void 0?t:e.ownerDocument.body;Rn({focusNode:r,anchorOffset:0,focusOffset:r.childNodes.length})}function c2(e){if(lr(e))return Ni(e).startOffset===0&&Ni(e).endOffset===ur(e).length;var t;let r=(t=Ci(e))!==null&&t!==void 0?t:e.ownerDocument.body,n=e.ownerDocument.getSelection();return n?.anchorNode===r&&n.focusNode===r&&n.anchorOffset===0&&n.focusOffset===r.childNodes.length}function Zo(e,t,r){var n;if(lr(e))return Rn({focusNode:e,anchorOffset:t,focusOffset:r});if(An(e)&&((n=e.firstChild)===null||n===void 0?void 0:n.nodeType)===3)return Rn({focusNode:e.firstChild,anchorOffset:t,focusOffset:r});throw new Error("Not implemented. The result of this interaction is unreliable.")}function va(e,t,r){let n=Bt(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(!Ar(o[i])){Yr(o[i]),e.dispatchUIEvent(o[i],"click");return}}}Kr.keydown=(e,t,r)=>{var n,o;return(o=(n=Ih[e.key])===null||n===void 0?void 0:n.call(Ih,e,t,r))!==null&&o!==void 0?o:d2(e,t,r)};var Ih={ArrowDown:(e,t,r)=>{if(we(t,"input",{type:"radio"}))return()=>va(r,t,1)},ArrowLeft:(e,t,r)=>we(t,"input",{type:"radio"})?()=>va(r,t,-1):()=>Nh(t,-1),ArrowRight:(e,t,r)=>we(t,"input",{type:"radio"})?()=>va(r,t,1):()=>Nh(t,1),ArrowUp:(e,t,r)=>{if(we(t,"input",{type:"radio"}))return()=>va(r,t,-1)},Backspace:(e,t,r)=>{if(ro(t))return()=>{io(r,t,"","deleteContentBackward")}},Delete:(e,t,r)=>{if(ro(t))return()=>{io(r,t,"","deleteContentForward")}},End:(e,t)=>{if(we(t,["input","textarea"])||An(t))return()=>{var r,n;let o=(n=(r=s2(t))===null||r===void 0?void 0:r.length)!==null&&n!==void 0?n:0;Zo(t,o,o)}},Home:(e,t)=>{if(we(t,["input","textarea"])||An(t))return()=>{Zo(t,0,0)}},PageDown:(e,t)=>{if(we(t,["input"]))return()=>{let r=ur(t).length;Zo(t,r,r)}},PageUp:(e,t)=>{if(we(t,["input"]))return()=>{Zo(t,0,0)}},Tab:(e,t,r)=>()=>{let n=u2(t,r.system.keyboard.modifiers.Shift);Yr(n),lr(n)&&wo(n,{anchorOffset:0,focusOffset:n.value.length})}},d2=(e,t,r)=>{if(e.code==="KeyA"&&r.system.keyboard.modifiers.Control)return()=>JT(t)};Kr.keypress=(e,t,r)=>{if(e.key==="Enter"){if(we(t,"button")||we(t,"input")&&p2.includes(t.type)||we(t,"a")&&t.href)return()=>{r.dispatchUIEvent(t,"click")};if(we(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&&f2.includes(t.type)&&n.querySelectorAll("input").length===1?()=>r.dispatchUIEvent(n,"submit"):void 0}}if(ro(t)){let n=e.key==="Enter"?An(t)&&!r.system.keyboard.modifiers.Shift?"insertParagraph":"insertLineBreak":"insertText",o=e.key==="Enter"?`
344
+ `:e.key;return()=>io(r,t,o,n)}};var p2=["button","color","file","image","reset","submit"],f2=["email","month","password","search","tel","text","url","week"];Kr.keyup=(e,t,r)=>{var n;return(n=Mh[e.key])===null||n===void 0?void 0:n.call(Mh,e,t,r)};var Mh={" ":(e,t,r)=>{if(MT(t))return()=>r.dispatchUIEvent(t,"click")}};Kr.paste=(e,t,r)=>{if(ro(t))return()=>{var n;let o=(n=e.clipboardData)===null||n===void 0?void 0:n.getData("text");o&&io(r,t,o,"insertFromPaste")}};var HT={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 VT(e){return HT[e].EventType}var m2=["MouseEvent","PointerEvent"];function h2(e){return m2.includes(VT(e))}function y2(e){return VT(e)==="KeyboardEvent"}var g2={ClipboardEvent:[v2],Event:[],FocusEvent:[zo,E2],InputEvent:[zo,w2],MouseEvent:[zo,iu,jh],PointerEvent:[zo,iu,jh,T2],KeyboardEvent:[zo,iu,_2]};function zT(e,t,r){let n=Bt(t),{EventType:o,defaultInit:i}=HT[e],a=new(b2(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,g2[o].forEach(function(l){l(a,s)}),a}function b2(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 l;let d=(l=e.ProgressEvent)!==null&&l!==void 0?l:class extends r{};var p;let f=(p=e.TransitionEvent)!==null&&p!==void 0?p:class extends r{};var m;let y=(m=e.UIEvent)!==null&&m!==void 0?m:class extends r{};var g;let v=(g=e.CompositionEvent)!==null&&g!==void 0?g:class extends y{};var b;let T=(b=e.FocusEvent)!==null&&b!==void 0?b:class extends y{};var R;let x=(R=e.InputEvent)!==null&&R!==void 0?R:class extends y{};var C;let E=(C=e.KeyboardEvent)!==null&&C!==void 0?C:class extends y{};var _;let S=(_=e.MouseEvent)!==null&&_!==void 0?_:class extends y{};var A;let $=(A=e.DragEvent)!==null&&A!==void 0?A:class extends S{};var k;let H=(k=e.PointerEvent)!==null&&k!==void 0?k:class extends S{};var I;let O=(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:v,FocusEvent:T,InputEvent:x,KeyboardEvent:E,MouseEvent:S,DragEvent:$,PointerEvent:H,TouchEvent:O}}function Qr(e,t){for(let[r,n]of Object.entries(t))Object.defineProperty(e,r,{get:()=>n??null})}function Ve(e){return Number(e??0)}function v2(e,{clipboardData:t}){Qr(e,{clipboardData:t})}function E2(e,{relatedTarget:t}){Qr(e,{relatedTarget:t})}function w2(e,{data:t,inputType:r,isComposing:n}){Qr(e,{data:t,isComposing:!!n,inputType:String(r)})}function zo(e,{view:t,detail:r}){Qr(e,{view:t,detail:Ve(r??0)})}function iu(e,{altKey:t,ctrlKey:r,metaKey:n,shiftKey:o,modifierAltGraph:i,modifierCapsLock:a,modifierFn:s,modifierFnLock:c,modifierNumLock:l,modifierScrollLock:d,modifierSymbol:p,modifierSymbolLock:f}){Qr(e,{altKey:!!t,ctrlKey:!!r,metaKey:!!n,shiftKey:!!o,getModifierState(m){return!!{Alt:t,AltGraph:i,CapsLock:a,Control:r,Fn:s,FnLock:c,Meta:n,NumLock:l,ScrollLock:d,Shift:o,Symbol:p,SymbolLock:f}[m]}})}function _2(e,{key:t,code:r,location:n,repeat:o,isComposing:i,charCode:a}){Qr(e,{key:String(t),code:String(r),location:Ve(n),repeat:!!o,isComposing:!!i,charCode:a})}function jh(e,{x:t,y:r,screenX:n,screenY:o,clientX:i=t,clientY:a=r,button:s,buttons:c,relatedTarget:l,offsetX:d,offsetY:p,pageX:f,pageY:m}){Qr(e,{screenX:Ve(n),screenY:Ve(o),clientX:Ve(i),x:Ve(i),clientY:Ve(a),y:Ve(a),button:Ve(s),buttons:Ve(c),relatedTarget:l,offsetX:Ve(d),offsetY:Ve(p),pageX:Ve(f),pageY:Ve(m)})}function T2(e,{pointerId:t,width:r,height:n,pressure:o,tangentialPressure:i,tiltX:a,tiltY:s,twist:c,pointerType:l,isPrimary:d}){Qr(e,{pointerId:Ve(t),width:Ve(r??1),height:Ve(n??1),pressure:Ve(o),tangentialPressure:Ve(i),tiltX:Ve(a),tiltY:Ve(s),twist:Ve(c),pointerType:String(l),isPrimary:!!d})}function S2(e,t,r,n=!1){(h2(t)||y2(t))&&(r={...r,...this.system.getUIEventModifiers()});let o=zT(t,e,r);return GT.call(this,e,o,n)}function GT(e,t,r=!1){var n;let o=t.type,i=r?()=>{}:(n=Kr[o])===null||n===void 0?void 0:n.call(Kr,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}}),no(()=>e.dispatchEvent(t)),a||i(),!a}return no(()=>e.dispatchEvent(t))}function fn(e,t,r){let n=zT(t,e,r);no(()=>e.dispatchEvent(n))}var kh=Symbol("patched focus/blur methods");function WT(e){if(e.prototype[kh])return;let{focus:t,blur:r}=e.prototype;Object.defineProperties(e.prototype,{focus:{configurable:!0,get:()=>o},blur:{configurable:!0,get:()=>i},[kh]:{configurable:!0,get:()=>({focus:t,blur:r})}});let n;function o(a){if(this.ownerDocument.visibilityState!=="hidden")return t.call(this,a);let s=qh(this.ownerDocument);if(s===this)return;let c=Symbol("focus call");n=c,s&&(r.call(s),fn(s,"blur",{relatedTarget:this}),fn(s,"focusout",{relatedTarget:n===c?this:null})),n===c&&(t.call(this,a),fn(this,"focus",{relatedTarget:s})),n===c&&fn(this,"focusin",{relatedTarget:s})}function i(){if(this.ownerDocument.visibilityState!=="hidden")return r.call(this);let a=qh(this.ownerDocument);a===this&&(n=Symbol("blur call"),r.call(this),fn(a,"blur",{relatedTarget:null}),fn(a,"focusout",{relatedTarget:null}))}}function qh(e){let t=ra(e);return t?.tagName==="BODY"?null:t}var au=Symbol("Interceptor for programmatical calls");function Bn(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][au])throw new Error(`Element ${e.tagName} does not implement "${String(t)}".`);function a(...s){let{applyNative:c=!1,realArgs:l,then:d}=r.call(this,...s),p=(!c&&o||n)[i];i==="set"?p.call(this,l):p.call(this,...l),d?.()}a[au]=au,Object.defineProperty(e,t,{...o??n,[i]:a})}function A2(e){Bn(e,"value",function(t){let r=$B(t);return r&&QB(this),{applyNative:!!r,realArgs:R2(this,t),then:r?void 0:()=>ZB(this,String(t))}})}function R2(e,t){return we(e,"input",{type:"number"})&&String(t)!==""&&!Number.isNaN(Number(t))?String(Number(t)):String(t)}function O2(e){Bn(e,"setSelectionRange",function(t,...r){let n=FB(t);return{applyNative:!!n,realArgs:[Number(t),...r],then:()=>n?void 0:Da(e)}}),Bn(e,"selectionStart",function(t){return{realArgs:t,then:()=>Da(e)}}),Bn(e,"selectionEnd",function(t){return{realArgs:t,then:()=>Da(e)}}),Bn(e,"select",function(){return{realArgs:[],then:()=>JB(e,{anchorOffset:0,focusOffset:ur(e).length})}})}function x2(e){Bn(e,"setRangeText",function(...t){return{realArgs:t,then:()=>{zp(e),Da(e)}}})}var zn=Symbol("Node prepared with document state workarounds");function YT(e){e[zn]||(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=UB(r);n!==void 0&&(r.value!==n&&fn(r,"change"),LT(r))},{capture:!0,passive:!0}),e[zn]=zn)}function Lh(e){e[zn]||(we(e,["input","textarea"])&&(A2(e),O2(e),x2(e)),e[zn]=zn)}function P2(e){return C2(e)?e:e.ownerDocument}function C2(e){return e.nodeType===9}var Ot=(function(e){return e[e.Trigger=2]="Trigger",e[e.Call=1]="Call",e})({});function ei(e,t){e.levelRefs[t]={}}function Ea(e,t){return e.levelRefs[t]}function ao(e){let t=e.delay;if(typeof t=="number")return Promise.all([new Promise(r=>globalThis.setTimeout(()=>r(),t)),e.advanceTimers(t)])}var Fa=(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 an(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Zt=(function(e){return e[e.STANDARD=0]="STANDARD",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.NUMPAD=3]="NUMPAD",e})({}),N2=["Alt","AltGraph","Control","Fn","Meta","Shift","Symbol"];function Dh(e){return N2.includes(e)}var I2=["CapsLock","FnLock","NumLock","ScrollLock","SymbolLock"];function $h(e){return I2.includes(e)}var M2=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=ou(e.config.document);this.setKeydownTarget(o),this.pressed.add(n,t),Dh(r)&&(this.modifiers[r]=!0);let i=e.dispatchUIEvent(o,"keydown",{key:r,code:n});$h(r)&&!this.modifiers[r]&&(this.modifiers[r]=!0,this.modifierLockStart[r]=!0),i&&this.pressed.setUnprevented(n),i&&this.hasKeyPress(r)&&e.dispatchUIEvent(ou(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),Dh(r)&&!this.pressed.values().find(i=>i.keyDef.key===r)&&(this.modifiers[r]=!1),e.dispatchUIEvent(ou(e.config.document),"keyup",{key:r,code:n},!o),$h(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){an(this,"system",void 0),an(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}),an(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(){an(this,"registry",{})}}),an(this,"carryChar",""),an(this,"lastKeydownTarget",void 0),an(this,"modifierLockStart",{}),this.system=e}},j2=[..."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:Zt.LEFT},{code:"AltRight",key:"Alt",location:Zt.RIGHT},{code:"ShiftLeft",key:"Shift",location:Zt.LEFT},{code:"ShiftRight",key:"Shift",location:Zt.RIGHT},{code:"ControlLeft",key:"Control",location:Zt.LEFT},{code:"ControlRight",key:"Control",location:Zt.RIGHT},{code:"MetaLeft",key:"Meta",location:Zt.LEFT},{code:"MetaRight",key:"Meta",location:Zt.RIGHT},{code:"OSLeft",key:"OS",location:Zt.LEFT},{code:"OSRight",key:"OS",location:Zt.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"}],k2=[{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 q2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var KT=class{getButtons(){let e=0;for(let t of Object.keys(this.pressed))e|=2**Number(t);return e}down(e){let t=_c(e.button);if(t in this.pressed){this.pressed[t].push(e);return}return this.pressed[t]=[e],t}up(e){let t=_c(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(){q2(this,"pressed",{})}},Fh={primary:0,secondary:1,auxiliary:2,back:3,X1:3,forward:4,X2:4};function _c(e=0){return e in Fh?Fh[e]:Number(e)}var Bh={1:2,2:1};function Tc(e){return e=_c(e),e in Bh?Bh[e]:e}function L2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var D2=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(){L2(this,"pressedKeys",new Set)}};function si(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 Sc({target:e,node:t,offset:r}){return lr(e)?{node:e,offset:r??ur(e).length}:t?{node:t,offset:r??(t.nodeType===3?t.nodeValue.length:t.childNodes.length)}:XT(e,r)}function XT(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 XT(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 $2({document:e,target:t,clickCount:r,node:n,offset:o}){if(qB(t))return;let i=lr(t),a=String(i?ur(t):t.textContent),[s,c]=n?[o,o]:F2(a,o,r);if(i)return wo(t,{anchorOffset:s??a.length,focusOffset:c??a.length}),{node:t,start:s??0,end:c??a.length};{let{node:l,offset:d}=Sc({target:t,node:n,offset:s}),{node:p,offset:f}=Sc({target:t,node:n,offset:c}),m=t.ownerDocument.createRange();try{m.setStart(l,d),m.setEnd(p,f)}catch{throw new Error("The given offset is out of bounds.")}let y=e.getSelection();return y?.removeAllRanges(),y?.addRange(m.cloneRange()),m}}function F2(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 B2(e,{document:t,target:r,node:n,offset:o}){let i=Sc({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;wo(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 QT(e,t){var r,n,o,i,a,s,c,l,d,p,f,m,y,g,v,b,T,R,x,C,E,_,S,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)!==((l=t.coords)===null||l===void 0?void 0:l.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)!==((m=t.coords)===null||m===void 0?void 0:m.offsetY)||((y=e.coords)===null||y===void 0?void 0:y.pageX)!==((g=t.coords)===null||g===void 0?void 0:g.pageX)||((v=e.coords)===null||v===void 0?void 0:v.pageY)!==((b=t.coords)===null||b===void 0?void 0:b.pageY)||((T=e.coords)===null||T===void 0?void 0:T.screenX)!==((R=t.coords)===null||R===void 0?void 0:R.screenX)||((x=e.coords)===null||x===void 0?void 0:x.screenY)!==((C=t.coords)===null||C===void 0?void 0:C.screenY)||((E=e.caret)===null||E===void 0?void 0:E.node)!==((_=t.caret)===null||_===void 0?void 0:_.node)||((S=e.caret)===null||S===void 0?void 0:S.offset)!==((A=t.caret)===null||A===void 0?void 0:A.offset)}function sn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var U2=class{move(e,t,r){let n=this.position,o=this.getTarget(e);if(this.position=t,!QT(n,t))return;let i=this.getTarget(e),a=this.getEventInit("mousemove"),[s,c]=si(o,i);return{leave:()=>{o!==i&&(e.dispatchUIEvent(o,"mouseout",a),s.forEach(l=>e.dispatchUIEvent(l,"mouseleave",a)))},enter:()=>{o!==i&&(e.dispatchUIEvent(i,"mouseover",a),c.forEach(l=>e.dispatchUIEvent(l,"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=Ar(o);!r&&(a||e.dispatchUIEvent(o,"mousedown",i))&&(this.startSelecting(e,i.detail),Yr(o)),!a&&Tc(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(!Ar(o)){if(!r){let a=this.getEventInit("mouseup",t.button);e.dispatchUIEvent(o,"mouseup",a),this.endSelecting()}let i=si(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=Tc(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=$2({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&&B2(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(){sn(this,"position",{}),sn(this,"buttons",new KT),sn(this,"selecting",void 0),sn(this,"buttonDownTarget",{}),sn(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(){sn(this,"down",{}),sn(this,"count",{})}})}};function ms(e,t){var r;return((r=ZT(e,t))===null||r===void 0?void 0:r.pointerEvents)!=="none"}function J2(e){let t=Bt(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 Uh=Symbol("Last check for pointer-events");function ZT(e,t){let r=t[Uh];if(!(e.config.pointerEventsCheck!==Fa.Never&&(!r||Jh(e.config.pointerEventsCheck,Fa.EachApiCall)&&r[Ot.Call]!==Ea(e,Ot.Call)||Jh(e.config.pointerEventsCheck,Fa.EachTrigger)&&r[Ot.Trigger]!==Ea(e,Ot.Trigger))))return r?.result;let n=J2(t);return t[Uh]={[Ot.Call]:Ea(e,Ot.Call),[Ot.Trigger]:Ea(e,Ot.Trigger),result:n},n}function ti(e,t){let r=ZT(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\`:`,"",H2(r.tree)].join(`
345
+ `))}function H2(e){return e.reverse().map((t,r)=>["".padEnd(r),t.tagName,t.id&&`#${t.id}`,t.hasAttribute("data-testid")&&`(testId=${t.getAttribute("data-testid")})`,V2(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 V2(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(we(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(we(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 Jh(e,t){return(e&t)>0}function fr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var z2=class{init(e){let t=this.getTarget(e),[,r]=si(null,t),n=this.getEventInit();return ti(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,!QT(r,t))return;let o=this.getTarget(e),i=this.getEventInit(-1),[a,s]=si(n,o);return{leave:()=>{ms(e,n)&&n!==o&&(e.dispatchUIEvent(n,"pointerout",i),a.forEach(c=>e.dispatchUIEvent(c,"pointerleave",i)))},enter:()=>{ti(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);ti(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);ti(e,r),this.isPrevented=!1,this.isDown=!1,e.dispatchUIEvent(r,"pointerup",this.getEventInit(t))}release(e){let t=this.getTarget(e),[r]=si(t,null),n=this.getEventInit();ms(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:Tc(e),buttons:this.buttons.getButtons()}}constructor({pointerId:e,pointerType:t,isPrimary:r},n){fr(this,"pointerId",void 0),fr(this,"pointerType",void 0),fr(this,"isPrimary",void 0),fr(this,"buttons",void 0),fr(this,"isMultitouch",!1),fr(this,"isCancelled",!1),fr(this,"isDown",!1),fr(this,"isPrevented",!1),fr(this,"position",{}),this.pointerId=e,this.pointerType=t,this.isPrimary=r,this.isMultitouch=!r,this.buttons=n}};function jr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var G2=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){jr(this,"system",void 0),jr(this,"mouse",void 0),jr(this,"buttons",void 0),jr(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 D2}constructor(){jr(this,"registry",{})}}),jr(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 z2({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(){jr(this,"registry",{}),jr(this,"nextId",1)}}),this.system=e,this.buttons=new KT,this.mouse=new U2,this.pointers.new("mouse","mouse",this.buttons)}};function Hh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var e0=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(){Hh(this,"keyboard",new M2(this)),Hh(this,"pointer",new G2(this))}};async function W2(e){let t=[];return this.config.skipHover||t.push({target:e}),t.push({keys:"[MouseLeft]",target:e}),this.pointer(t)}async function Y2(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft]"])}async function K2(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft][MouseLeft]"])}async function X2(e){return this.pointer({target:e})}async function Q2(e){return ti(this,this.system.pointer.getMouseTarget(this)),this.pointer({target:e.ownerDocument.body})}async function Z2({shift:e}={}){return this.keyboard(e===!0?"{Shift>}{Tab}{/Shift}":e===!1?"[/ShiftLeft][/ShiftRight]{Tab}":"{Tab}")}var Wp=(function(e){return e["{"]="}",e["["]="]",e})(Wp||{});function t0(e,t){let r=0,n=e[r]in Wp?e[r]:"";r+=n.length;let o=new RegExp(`^\\${n}{2}`).test(e)?"":n;return{type:o,...o===""?e5(e,r,t):t5(e,r,o,t)}}function e5(e,t,r){let n=e[t];return r0(n,e,t,r),t+=n.length,{consumedLength:t,descriptor:n,releasePrevious:!1,releaseSelf:!0,repeat:1}}function t5(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];r0(c,e,t,n),t+=c.length;var l;let d=(l=(i=e.slice(t).match(/^>\d+/))===null||i===void 0?void 0:i[0])!==null&&l!==void 0?l:"";t+=d.length;let p=e[t]==="/"||!d&&e[t]===">"?e[t]:"";t+=p.length;let f=Wp[r],m=e[t]===f?f:"";if(!m)throw new Error(n0([!d&&"repeat modifier",!p&&"release modifier",`"${f}"`].filter(Boolean).join(" or "),e[t],e,n));return t+=m.length,{consumedLength:t,descriptor:c,releasePrevious:!!a,repeat:d?Math.max(Number(d.substr(1)),1):1,releaseSelf:r5(p,d)}}function r0(e,t,r,n){if(!e)throw new Error(n0("key descriptor",t[r],t,n))}function r5(e,t){if(e)return e==="/";if(t)return!1}function n0(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 n5(e,t){let r=[];do{let{type:o,descriptor:i,consumedLength:a,releasePrevious:s,releaseSelf:c=!0,repeat:l}=t0(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 m;return((m=p.key)===null||m===void 0?void 0:m.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:l}),t=t.slice(a)}while(t);return r}async function o5(e){let t=n5(this.config.keyboardMap,e);for(let r=0;r<t.length;r++)await ao(this.config),await i5(this,t[r])}async function i5(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 ao(e.config);n&&await i.keyboard.keyup(e,t)}}async function a5(e){for(let t of e.system.keyboard.getPressedKeys())await e.system.keyboard.keyup(e,t)}function o0(e){let t=lr(e)?{"text/plain":s5(e)}:{"text/plain":String(e.ownerDocument.getSelection())},r=Jp(Bt(e));for(let n in t)t[n]&&r.setData(n,t[n]);return r}function s5(e){let t=Ni(e);return ur(e).substring(t.startOffset,t.endOffset)}async function l5(){let e=this.config.document;var t;let r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=o0(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"copy",{clipboardData:n})&&this.config.writeToClipboard&&await CT(e,n),n}async function u5(){let e=this.config.document;var t;let r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=o0(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"cut",{clipboardData:n})&&this.config.writeToClipboard&&await CT(r.ownerDocument,n),n}async function c5(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"?d5(t,e):e)!==null&&o!==void 0?o:await IB(t).catch(()=>{throw new Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.")});this.dispatchUIEvent(n,"paste",{clipboardData:i})}function d5(e,t){let r=Jp(Bt(e));return r.setData("text",t),r}function Vh(e,t){let r=[];do{let{descriptor:n,consumedLength:o,releasePrevious:i,releaseSelf:a=!0}=t0(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 p5(e){let{pointerMap:t}=this.config,r=[];(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="string"?r.push(...Vh(t,n)):"keys"in n?r.push(...Vh(t,n.keys).map(o=>({...n,...o}))):r.push(n)});for(let n=0;n<r.length;n++)await ao(this.config),await f5(this,r[n]);this.system.pointer.resetClickCount()}async function f5(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,l;let d={target:(a=t.target)!==null&&a!==void 0?a:m5(e,i),coords:(s=t.coords)!==null&&s!==void 0?s:i?.coords,caret:{node:(c=t.node)!==null&&c!==void 0?c:zh(t)||i==null||(r=i.caret)===null||r===void 0?void 0:r.node,offset:(l=t.offset)!==null&&l!==void 0?l:zh(t)||i==null||(n=i.caret)===null||n===void 0?void 0:n.offset}};"keyDef"in t?(e.system.pointer.isKeyPressed(t.keyDef)&&(ei(e,Ot.Trigger),await e.system.pointer.release(e,t.keyDef,d)),t.releasePrevious||(ei(e,Ot.Trigger),await e.system.pointer.press(e,t.keyDef,d),t.releaseSelf&&(ei(e,Ot.Trigger),await e.system.pointer.release(e,t.keyDef,d)))):(ei(e,Ot.Trigger),await e.system.pointer.move(e,o,d))}function zh(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 m5(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 h5(e){if(!ro(e)||Ar(e))throw new Error("clear()` is only supported on editable elements.");if(Yr(e),e.ownerDocument.activeElement!==e)throw new Error("The element to be cleared could not be focused.");if(JT(e),!c2(e))throw new Error("The element content to be cleared could not be selected.");io(this,e,"","deleteContentBackward")}async function y5(e,t){return i0.call(this,!0,e,t)}async function g5(e,t){return i0.call(this,!1,e,t)}async function i0(e,t,r){if(!e&&!t.multiple)throw Se().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(l=>l.value===s||l.innerHTML===s);if(c)return c;throw Se().getElementError(`Value "${String(s)}" not found in options`,t)}}).filter(s=>!Ar(s));if(Ar(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(we(t,"select"))if(t.multiple)for(let s of i){let c=this.config.pointerEventsCheck===0?!0:ms(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")),Yr(t),c&&(this.dispatchUIEvent(s,"pointerup"),this.dispatchUIEvent(s,"mouseup")),a(s),c&&this.dispatchUIEvent(s,"click"),await ao(this.config)}else if(i.length===1){let s=this.config.pointerEventsCheck===0?!0:ms(this,t);s?await this.click(t):Yr(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 ao(this.config)}else throw Se().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 Se().getElementError("Cannot select options on elements that are neither select nor listbox elements",t)}async function b5(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&&Zo(e,o,i??o),await this.keyboard(t),n||await a5(this))}var Gh=Symbol("files and value properties are mocked");function su(e,t,r){r?Object.defineProperty(e,t,r):delete e[t]}function v5(e,t){var r;(r=e[Gh])===null||r===void 0||r.restore();let n=Object.getOwnPropertyDescriptor(e,"type"),o=Object.getOwnPropertyDescriptor(e,"value"),i=Object.getOwnPropertyDescriptor(e,"files");function a(){su(e,"type",n),su(e,"value",o),su(e,"files",i)}e[Gh]={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 E5(e,t){let r=we(e,"label")?e.control:e;if(!r||!we(r,"input",{type:"file"}))throw new TypeError(`The ${r===e?"given":"associated"} ${r?.tagName} element does not accept file uploads`);if(Ar(e))return;let n=(Array.isArray(t)?t:[t]).filter(i=>!this.config.applyAccept||w5(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))})||(v5(r,Up(Bt(e),n)),this.dispatchUIEvent(r,"input"),this.dispatchUIEvent(r,"change"))};r.addEventListener("fileDialog",o),await this.click(e),r.removeEventListener("fileDialog",o)}function wa(e){return e.toLowerCase().replace(/(\.|\/)jpg\b/g,"$1jpeg")}function w5(e,t){if(!t)return!0;let r=["audio/*","image/*","video/*"];return wa(t).trim().split(/\s*,\s*/).some(n=>n.startsWith(".")?wa(e.name).endsWith(n):r.includes(n)?wa(e.type).startsWith(n.replace("*","")):wa(e.type)===n)}var Wh={click:W2,dblClick:Y2,tripleClick:K2,hover:X2,unhover:Q2,tab:Z2,keyboard:o5,copy:l5,cut:u5,paste:c5,pointer:p5,clear:h5,deselectOptions:g5,selectOptions:y5,type:b5,upload:E5};function _5(e){return Se().asyncWrapper(e)}var a0={applyAccept:!0,autoModify:!0,delay:0,document:globalThis.document,keyboardMap:j2,pointerMap:k2,pointerEventsCheck:Fa.EachApiCall,skipAutoClose:!1,skipClick:!1,skipHover:!1,writeToClipboard:!1,advanceTimers:()=>Promise.resolve()},T5={...a0,writeToClipboard:!0};function s0(e={},t=T5,r){let n=O5(e,r,t);return{...t,...e,document:n}}function S5(e={}){let t=s0(e);YT(t.document),WT(Bt(t.document).HTMLElement);var r;let n=(r=t.document.defaultView)!==null&&r!==void 0?r:globalThis.window;return PB(n),Yp(t).api}function yt({keyboardState:e,pointerState:t,...r}={},n){let o=s0(r,a0,n);YT(o.document),WT(Bt(o.document).HTMLElement);var i;let a=(i=t??e)!==null&&i!==void 0?i:new e0;return{api:Yp(o,a).api,system:a}}function A5(e){return Yp({...this.config,...e},this.system).api}function R5(e,t){function r(...n){return ei(e,Ot.Call),_5(()=>t.apply(e,n).then(async o=>(await ao(e.config),o)))}return Object.defineProperty(r,"name",{get:()=>t.name}),r}function Yp(e,t=new e0){let r={};return Object.assign(r,{config:e,dispatchEvent:GT.bind(r),dispatchUIEvent:S2.bind(r),system:t,levelRefs:{},...Wh}),{instance:r,api:{...Object.fromEntries(Object.entries(Wh).map(([n,o])=>[n,R5(r,o)])),setup:A5.bind(r)}}}function O5(e,t,r){var n,o;return(o=(n=e.document)!==null&&n!==void 0?n:t&&P2(t))!==null&&o!==void 0?o:r.document}var l0={};Tt(l0,{clear:()=>x5,click:()=>P5,copy:()=>C5,cut:()=>N5,dblClick:()=>I5,deselectOptions:()=>M5,hover:()=>j5,keyboard:()=>k5,paste:()=>L5,pointer:()=>q5,selectOptions:()=>D5,tab:()=>J5,tripleClick:()=>$5,type:()=>F5,unhover:()=>B5,upload:()=>U5});function x5(e){return yt().api.clear(e)}function P5(e,t={}){return yt(t,e).api.click(e)}function C5(e={}){return yt(e).api.copy()}function N5(e={}){return yt(e).api.cut()}function I5(e,t={}){return yt(t).api.dblClick(e)}function M5(e,t,r={}){return yt(r).api.deselectOptions(e,t)}function j5(e,t={}){return yt(t).api.hover(e)}async function k5(e,t={}){let{api:r,system:n}=yt(t);return r.keyboard(e).then(()=>n)}async function q5(e,t={}){let{api:r,system:n}=yt(t);return r.pointer(e).then(()=>n)}function L5(e,t){return yt(t).api.paste(e)}function D5(e,t,r={}){return yt(r).api.selectOptions(e,t)}function $5(e,t={}){return yt(t).api.tripleClick(e)}function F5(e,t,r={}){return yt(r,e).api.type(e,t,r)}function B5(e,t={}){let{api:r,system:n}=yt(t);return n.pointer.setMousePosition({target:e}),r.unhover(e)}function U5(e,t,r={}){return yt(r).api.upload(e,t)}function J5(e={}){return yt().api.tab(e)}var u0={...l0,setup:S5},Ac=zi({...e_},{getKeys:e=>Object.keys(e).filter(t=>t!=="eventWrapper"),intercept:(e,t)=>t[0]==="fireEvent"||e.startsWith("find")||e.startsWith("waitFor")});Ac.screen=new Proxy(Ac.screen,{get(e,t,r){return typeof window<"u"&&globalThis.location?.href?.includes("viewMode=docs")&&Ge.warn(Te`
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:H5,configure:V5,createEvent:z5,fireEvent:G5,findAllByAltText:W5,findAllByDisplayValue:Y5,findAllByLabelText:K5,findAllByPlaceholderText:X5,findAllByRole:Q5,findAllByTestId:Z5,findAllByText:eU,findAllByTitle:tU,findByAltText:rU,findByDisplayValue:nU,findByLabelText:oU,findByPlaceholderText:iU,findByRole:aU,findByTestId:sU,findByText:lU,findByTitle:uU,getAllByAltText:cU,getAllByDisplayValue:dU,getAllByLabelText:pU,getAllByPlaceholderText:fU,getAllByRole:mU,getAllByTestId:hU,getAllByText:yU,getAllByTitle:gU,getByAltText:bU,getByDisplayValue:vU,getByLabelText:EU,getByPlaceholderText:wU,getByRole:_U,getByTestId:TU,getByText:SU,getByTitle:AU,getConfig:RU,getDefaultNormalizer:OU,getElementError:xU,getNodeText:PU,getQueriesForElement:CU,getRoles:NU,getSuggestedQuery:IU,isInaccessible:MU,logDOM:jU,logRoles:kU,prettyDOM:qU,queries:LU,queryAllByAltText:DU,queryAllByAttribute:$U,queryAllByDisplayValue:FU,queryAllByLabelText:BU,queryAllByPlaceholderText:UU,queryAllByRole:JU,queryAllByTestId:HU,queryAllByText:VU,queryAllByTitle:zU,queryByAltText:GU,queryByAttribute:WU,queryByDisplayValue:YU,queryByLabelText:KU,queryByPlaceholderText:XU,queryByRole:QU,queryByTestId:ZU,queryByText:e3,queryByTitle:t3,queryHelpers:r3,screen:n3,waitFor:o3,waitForElementToBeRemoved:i3,within:c0,prettyFormat:a3}=Ac,d0=u0,{userEvent:s3}=zi({userEvent:u0},{intercept:!0,getKeys:e=>Object.keys(e).filter(t=>t!=="eventWrapper")}),{expect:l3}=zi({expect:Gw},{getKeys:(e,t)=>{if("constructor"in e&&e.constructor===j){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"}),u3={mock:()=>{}},Yh=!1,c3=e=>{let{parameters:t}=e;t?.actions?.disable||Yh||(Ww((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)))&&na(o)(n)}),Yh=!0)},d3=[c3],Kh=()=>({...uv,...dv}),hs="backgrounds",p3={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}},{document:Gt}=globalThis,f3=()=>globalThis?.matchMedia?!!globalThis.matchMedia("(prefers-reduced-motion: reduce)")?.matches:!1,Xh=e=>{(Array.isArray(e)?e:[e]).forEach(m3)},m3=e=>{if(!Gt)return;let t=Gt.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},h3=(e,t)=>{if(!Gt)return;let r=Gt.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=Gt.createElement("style");n.setAttribute("id",e),n.innerHTML=t,Gt.head.appendChild(n)}},y3=(e,t,r)=>{if(!Gt)return;let n=Gt.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let o=Gt.createElement("style");o.setAttribute("id",e),o.innerHTML=t;let i=`addon-backgrounds-grid${r?`-docs-${r}`:""}`,a=Gt.getElementById(i);a?a.parentElement?.insertBefore(o,a):Gt.head.appendChild(o)}},g3={cellSize:100,cellAmount:10,opacity:.8},Qh="addon-backgrounds",Zh="addon-backgrounds-grid",b3=f3()?"":"transition: background-color 0.3s;",v3=(e,t)=>{let{globals:r={},parameters:n={},viewMode:o,id:i}=t,{options:a=p3,disable:s,grid:c=g3}=n[hs]||{},l=r[hs]||{},d=typeof l=="string"?l:l?.value,p=d?a[d]:void 0,f=typeof p=="string"?p:p?.value||"transparent",m=typeof l=="string"?!1:l.grid||!1,y=!!p&&!s,g=o==="docs"?`#anchor--${i} .docs-story`:".sb-show-main",v=o==="docs"?`#anchor--${i} .docs-story`:".sb-show-main",b=n.layout===void 0||n.layout==="padded",T=o==="docs"?20:b?16:0,{cellAmount:R,cellSize:x,opacity:C,offsetX:E=T,offsetY:_=T}=c,S=o==="docs"?`${Qh}-docs-${i}`:`${Qh}-color`,A=o==="docs"?i:null;_n(()=>{let k=`
353
+ ${g} {
354
+ background: ${f} !important;
355
+ ${b3}
356
+ }`;if(!y){Xh(S);return}y3(S,k,A)},[g,S,A,y,f]);let $=o==="docs"?`${Zh}-docs-${i}`:`${Zh}`;return _n(()=>{if(!m){Xh($);return}let k=[`${x*R}px ${x*R}px`,`${x*R}px ${x*R}px`,`${x}px ${x}px`,`${x}px ${x}px`].join(", "),H=`
357
+ ${v} {
358
+ background-size: ${k} !important;
359
+ background-position: ${E}px ${_}px, ${E}px ${_}px, ${E}px ${_}px, ${E}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
+ `;h3($,H)},[R,x,v,$,m,E,_,C]),e()},E3=globalThis.FEATURES?.backgrounds?[v3]:[],w3={[hs]:{grid:{cellSize:20,opacity:.5,cellAmount:5},disable:!1}},_3={[hs]:{value:void 0,grid:!1}},ey=()=>({decorators:E3,parameters:w3,initialGlobals:_3}),{step:T3}=zi({step:async(e,t,r)=>t(r)},{intercept:!0}),ty=()=>({parameters:{throwPlayFunctionExceptions:!1},runStep:T3}),S3=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")},A3=async({reporting:e,canvasElement:t,globals:r})=>{try{if(!r.ghostStories)return;let n=S3(t.firstElementChild??t);n&&e.addReport({type:"render-analysis",version:1,result:{emptyRender:n},status:"warning"})}catch{}},ry=()=>({afterEach:A3}),ul="storybook/highlight",R3=`${ul}/add`,O3=`${ul}/remove`,x3=`${ul}/reset`,P3=`${ul}/scroll-into-view`,ny=2147483647,Fr=28,oy={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"]},C3="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),tt=(e,t={},r)=>{let n=C3.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},_a=e=>oy[e]&&tt("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},oy[e].map(t=>tt("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),N3=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}},I3=e=>e instanceof Function,Go=new Map,ln=new Map,Ta=new Map,mr=e=>{let t=Symbol();return ln.set(t,[]),Go.set(t,e),{get:()=>Go.get(t),set:r=>{let n=Go.get(t),o=I3(r)?r(n):r;o!==n&&(Go.set(t,o),ln.get(t)?.forEach(i=>{Ta.get(i)?.(),Ta.set(i,i(o))}))},subscribe:r=>(ln.get(t)?.push(r),()=>{let n=ln.get(t);n&&ln.set(t,n.filter(o=>o!==r))}),teardown:()=>{ln.get(t)?.forEach(r=>{Ta.get(r)?.(),Ta.delete(r)}),ln.delete(t),Go.delete(t)}}},iy=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},M3=e=>Array.from(e.entries()).map(([t,{selectors:r,styles:n,hoverStyles:o,focusStyles:i,menu:a}])=>{let{top:s,left:c,width:l,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:l,height:d}}).sort((t,r)=>r.width*r.height-t.width*t.height),ay=(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},sy=(e,t,r)=>{if(!t||!r)return!1;let{left:n,top:o,width:i,height:a}=e;a<Fr&&(o=o-Math.round((Fr-a)/2),a=Fr),i<Fr&&(n=n-Math.round((Fr-i)/2),i=Fr),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},j3=(e,t,r={})=>{let{x:n,y:o}=t,{margin:i=5,topOffset:a=0,centered:s=!1}=r,{scrollX:c,scrollY:l,innerHeight:d,innerWidth:p}=window,f=Math.min(e.style.position==="fixed"?o-l:o,d-e.clientHeight-i-a+l),m=s?e.clientWidth/2:0,y=e.style.position==="fixed"?Math.max(Math.min(n-c,p-m-i),m+i):Math.max(Math.min(n,p-m-i+c),m+i+c);Object.assign(e.style,{...y!==n&&{left:`${y}px`},...f!==o&&{top:`${f}px`}})},ly=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()},k3=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()},q3=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}}),De="storybook-highlights-menu",uy="storybook-highlights-root",L3="storybook-root",D3=e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,r=mr([]),n=mr(new Map),o=mr([]),i=mr(),a=mr(),s=mr([]),c=mr([]),l=mr(),d=mr(),p=t.getElementById(uy);r.subscribe(()=>{p||(p=tt("div",{id:uy}),t.body.appendChild(p))}),r.subscribe(_=>{let S=t.getElementById(L3);if(!S)return;n.set(iy(_));let A=new MutationObserver(()=>n.set(iy(_)));return A.observe(S,{subtree:!0,childList:!0}),()=>{A.disconnect()}}),n.subscribe(_=>{let S=()=>requestAnimationFrame(()=>o.set(M3(_))),A=new ResizeObserver(S);A.observe(t.body),Array.from(_.keys()).forEach(k=>A.observe(k));let $=Array.from(t.body.querySelectorAll("*")).filter(k=>{let{overflow:H,overflowX:I,overflowY:O}=window.getComputedStyle(k);return["auto","scroll"].some(q=>[H,I,O].includes(q))});return $.forEach(k=>k.addEventListener("scroll",S)),()=>{A.disconnect(),$.forEach(k=>k.removeEventListener("scroll",S))}}),n.subscribe(_=>{let S=Array.from(_.keys()).filter(({style:$})=>$.position==="sticky"),A=()=>requestAnimationFrame(()=>{o.set($=>$.map(k=>{if(S.includes(k.element)){let{top:H,left:I}=k.element.getBoundingClientRect();return{...k,top:H+window.scrollY,left:I+window.scrollX}}return k}))});return t.addEventListener("scroll",A),()=>t.removeEventListener("scroll",A)}),n.subscribe(_=>{s.set(S=>S.filter(({element:A})=>_.has(A)))}),s.subscribe(_=>{_.length?(d.set(S=>_.some(A=>A.element===S?.element)?S:void 0),l.set(S=>_.some(A=>A.element===S?.element)?S:void 0)):(d.set(void 0),l.set(void 0),i.set(void 0))});let f=new Map(new Map);r.subscribe(_=>{_.forEach(({keyframes:S})=>{if(S){let A=f.get(S);A||(A=t.createElement("style"),A.setAttribute("data-highlight","keyframes"),f.set(S,A),t.head.appendChild(A)),A.innerHTML=S}}),f.forEach((S,A)=>{_.some($=>$.keyframes===A)||(S.remove(),f.delete(A))})});let m=new Map(new Map);o.subscribe(_=>{_.forEach(S=>{let A=m.get(S.element);if(p&&!A){let $={popover:"manual","data-highlight-dimensions":`w${S.width.toFixed(0)}h${S.height.toFixed(0)}`,"data-highlight-coordinates":`x${S.left.toFixed(0)}y${S.top.toFixed(0)}`};A=p.appendChild(tt("div",$,[tt("div")])),m.set(S.element,A)}}),m.forEach((S,A)=>{_.some(({element:$})=>$===A)||(S.remove(),m.delete(A))})}),o.subscribe(_=>{let S=_.filter($=>$.menu);if(!S.length)return;let A=$=>{requestAnimationFrame(()=>{let k=t.getElementById(De),H={x:$.pageX,y:$.pageY};if(k&&!ay(k,H)){let I=S.filter(O=>{let q=m.get(O.element);return sy(O,q,H)});i.set(I.length?H:void 0),s.set(I)}})};return t.addEventListener("click",A),()=>t.removeEventListener("click",A)});let y=()=>{let _=t.getElementById(De),S=a.get();!S||_&&ay(_,S)||c.set(A=>{let $=o.get().filter(O=>{let q=m.get(O.element);return sy(O,q,S)}),k=A.filter(O=>$.includes(O)),H=$.filter(O=>!A.includes(O)),I=A.length-k.length;return H.length||I?[...k,...H]:A})};a.subscribe(y),o.subscribe(y);let g=()=>{let _=d.get(),S=_?[_]:s.get(),A=S.length===1?S[0]:l.get(),$=i.get()!==void 0;o.get().forEach(k=>{let H=m.get(k.element);if(H){let I=A===k,O=$?A?I:S.includes(k):c.get()?.includes(k);Object.assign(H.style,{animation:"none",background:"transparent",border:"none",boxSizing:"border-box",outline:"none",outlineOffset:"0px",...k.styles,...O?k.hoverStyles:{},...I?k.focusStyles:{},position:getComputedStyle(k.element).position==="fixed"?"fixed":"absolute",zIndex:ny-10,top:`${k.top}px`,left:`${k.left}px`,width:`${k.width}px`,height:`${k.height}px`,margin:0,padding:0,cursor:k.menu&&O?"pointer":"default",pointerEvents:k.menu?"auto":"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),Object.assign(H.children[0].style,{width:"100%",height:"100%",minHeight:`${Fr}px`,minWidth:`${Fr}px`,boxSizing:"content-box",padding:H.style.outlineWidth||"0px"}),ly(H)}})};o.subscribe(g),s.subscribe(g),c.subscribe(g),l.subscribe(g),d.subscribe(g);let v=()=>{if(!p)return;let _=t.getElementById(De);if(_)_.innerHTML="";else{let k={id:De,popover:"manual"};_=p.appendChild(tt("div",k)),p.appendChild(tt("style",{},[`
367
+ #${De} {
368
+ position: absolute;
369
+ z-index: ${ny};
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
+ #${De} ul {
383
+ list-style: none;
384
+ margin: 0;
385
+ padding: 0;
386
+ }
387
+ #${De} > ul {
388
+ max-height: 300px;
389
+ overflow-y: auto;
390
+ padding: 4px 0;
391
+ }
392
+ #${De} li {
393
+ padding: 0 4px;
394
+ margin: 0;
395
+ }
396
+ #${De} 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
+ #${De} 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
+ #${De} button:focus-visible {
414
+ outline-color: #029CFD;
415
+ }
416
+ #${De} button:hover {
417
+ background: rgba(2, 156, 253, 0.07);
418
+ color: #029CFD;
419
+ cursor: pointer;
420
+ }
421
+ #${De} li code {
422
+ white-space: nowrap;
423
+ overflow: hidden;
424
+ text-overflow: ellipsis;
425
+ line-height: 16px;
426
+ font-size: 11px;
427
+ }
428
+ #${De} li svg {
429
+ flex-shrink: 0;
430
+ margin: 1px;
431
+ color: #73828C;
432
+ }
433
+ #${De} li > button:hover svg, #${De} li > button:focus-visible svg {
434
+ color: #029CFD;
435
+ }
436
+ #${De} .element-list li svg {
437
+ display: none;
438
+ }
439
+ #${De} li.selectable svg, #${De} li.selected svg {
440
+ display: block;
441
+ }
442
+ #${De} .menu-list {
443
+ border-top: 1px solid rgba(38, 85, 115, 0.15);
444
+ }
445
+ #${De} .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
+ #${De} .menu-items, #${De} .menu-items li {
451
+ padding: 0;
452
+ }
453
+ #${De} .menu-item {
454
+ display: flex;
455
+ }
456
+ #${De} .menu-item-content {
457
+ display: flex;
458
+ flex-direction: column;
459
+ flex-grow: 1;
460
+ }
461
+ `]))}let S=d.get(),A=S?[S]:s.get();if(A.length&&(_.style.position=getComputedStyle(A[0].element).position==="fixed"?"fixed":"absolute",_.appendChild(tt("ul",{class:"element-list"},A.map(k=>{let H=A.length>1&&!!k.menu?.some(q=>q.some(F=>!F.selectors||F.selectors.some(V=>k.selectors.includes(V)))),I=H?{class:"selectable",onClick:()=>d.set(k),onMouseEnter:()=>l.set(k),onMouseLeave:()=>l.set(void 0)}:S?{class:"selected",onClick:()=>d.set(void 0)}:{},O=H||S;return tt("li",I,[tt(O?"button":"div",O?{type:"button"}:{},[S?_a("chevronLeft"):null,tt("code",{},[k.element.outerHTML]),H?_a("chevronRight"):null])])})))),d.get()||s.get().length===1){let k=d.get()||s.get()[0],H=k.menu?.filter(I=>I.some(O=>!O.selectors||O.selectors.some(q=>k.selectors.includes(q))));H?.length&&_.appendChild(tt("ul",{class:"menu-list"},H.map(I=>tt("li",{},[tt("ul",{class:"menu-items"},I.map(({id:O,title:q,description:F,iconLeft:V,iconRight:K,clickEvent:oe})=>{let ue=oe&&(()=>e.emit(oe,O,q3(k)));return tt("li",{},[tt(ue?"button":"div",ue?{class:"menu-item",type:"button",onClick:ue}:{class:"menu-item"},[V?_a(V):null,tt("div",{class:"menu-item-content"},[tt(F?"strong":"span",{},[q]),F&&tt("span",{},[F])]),K?_a(K):null])])}))]))))}let $=i.get();$?(Object.assign(_.style,{display:"block",left:`${_.style.position==="fixed"?$.x-window.scrollX:$.x}px`,top:`${_.style.position==="fixed"?$.y-window.scrollY:$.y}px`}),ly(_),requestAnimationFrame(()=>j3(_,$,{topOffset:15,centered:!0}))):(k3(_),Object.assign(_.style,{display:"none"}))};s.subscribe(v),d.subscribe(v);let b=_=>{let S=N3(_);r.set(A=>{let $=S.id?A.filter(k=>k.id!==S.id):A;return S.selectors?.length?[...$,S]:$})},T=_=>{_&&r.set(S=>S.filter(A=>A.id!==_))},R=()=>{r.set([]),n.set(new Map),o.set([]),i.set(void 0),a.set(void 0),s.set([]),c.set([]),l.set(void 0),d.set(void 0)},x,C=(_,S)=>{let A="scrollIntoView-highlight";clearTimeout(x),T(A);let $=t.querySelector(_);if(!$){console.warn(`Cannot scroll into view: ${_} not found`);return}$.scrollIntoView({behavior:"smooth",block:"center",...S});let k=`kf-${Math.random().toString(36).substring(2,15)}`;r.set(H=>[...H,{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(()=>T(A),3500)},E=_=>{requestAnimationFrame(()=>a.set({x:_.pageX,y:_.pageY}))};t.body.addEventListener("mousemove",E),e.on(R3,b),e.on(O3,T),e.on(x3,R),e.on(P3,C),e.on(wn,({newPhase:_})=>{_==="loading"&&R()})};globalThis?.FEATURES?.highlight&&$t?.ready&&$t.ready().then(D3);var cy=()=>({}),$3="measureEnabled";function p0(){let e=re.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function F3(){let e=re.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");Tr(t!=null);let{width:r,height:n}=p0();return Rc(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",re.document.body.appendChild(e),{canvas:e,context:t,width:r,height:n}}function Rc(e,t,{width:r,height:n}){e.style.width=`${r}px`,e.style.height=`${n}px`;let o=re.window.devicePixelRatio;e.width=Math.floor(r*o),e.height=Math.floor(n*o),t.scale(o,o)}var rt={};function B3(){rt.canvas||(rt=F3())}function f0(){rt.context&&rt.context.clearRect(0,0,rt.width??0,rt.height??0)}function U3(e){f0(),e(rt.context)}function J3(){Tr(rt.canvas),Tr(rt.context),Rc(rt.canvas,rt.context,{width:0,height:0});let{width:e,height:t}=p0();Rc(rt.canvas,rt.context,{width:e,height:t}),rt.width=e,rt.height=t}function H3(){rt.canvas&&(f0(),rt.canvas.parentNode?.removeChild(rt.canvas),rt={})}var Ln={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},wr=6;function dy(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 V3(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,l=a+r.left+t.left,d=i+r.top+t.top;return e==="top"?l+=s/2:e==="right"?(l+=s,d+=c/2):e==="bottom"?(l+=s/2,d+=c):e==="left"?d+=c/2:e==="center"&&(l+=s/2,d+=c/2),{x:l,y:d}}function z3(e,t,{margin:r,border:n,padding:o},i,a){let s=f=>0,c=0,l=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"?l=-s("top"):t==="right"?c=s("right"):t==="bottom"?l=s("bottom"):t==="left"&&(c=-s("left")),{offsetX:c,offsetY:l}}function G3(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 W3(e,t,r){return e==="top"?t.y=r.y-r.h-wr:e==="right"?t.x=r.x+r.w/2+wr+t.w/2:e==="bottom"?t.y=r.y+r.h+wr:e==="left"&&(t.x=r.x-r.w/2-wr-t.w/2),{x:t.x,y:t.y}}function m0(e,t,{x:r,y:n,w:o,h:i},a){return dy(e,{x:r,y:n,w:o,h:i,r:3}),e.fillStyle=`${Ln[t]}dd`,e.fill(),e.strokeStyle=Ln[t],e.stroke(),e.fillStyle=Ln.text,e.fillText(a,r,n),dy(e,{x:r,y:n,w:o,h:i,r:3}),e.fillStyle=`${Ln[t]}dd`,e.fill(),e.strokeStyle=Ln[t],e.stroke(),e.fillStyle=Ln.text,e.fillText(a,r,n),{x:r,y:n,w:o,h:i}}function h0(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+wr*2,i=n+wr*2;return{w:o,h:i}}function Y3(e,t,{type:r,position:n="center",text:o},i,a=!1){let{x:s,y:c}=V3(n,t),{offsetX:l,offsetY:d}=z3(r,n,t,wr+1,a);s+=l,c+=d;let{w:p,h:f}=h0(e,o);if(i&&G3({x:s,y:c,w:p,h:f},i)){let m=W3(n,{x:s,y:c,w:p},i);s=m.x,c=m.y}return m0(e,r,{x:s,y:c,w:p,h:f},o)}function K3(e,{w:t,h:r}){let n=t*.5+wr,o=r*.5+wr;return{offsetX:(e.x==="left"?-1:1)*n,offsetY:(e.y==="top"?-1:1)*o}}function X3(e,t,{type:r,text:n}){let{floatingAlignment:o,extremities:i}=t,a=i[o.x],s=i[o.y],{w:c,h:l}=h0(e,n),{offsetX:d,offsetY:p}=K3(o,{w:c,h:l});return a+=d,s+=p,m0(e,r,{x:a,y:s,w:c,h:l},n)}function Wo(e,t,r,n){let o=[];r.forEach((i,a)=>{let s=n&&i.position==="center"?X3(e,t,i):Y3(e,t,i,o[a-1],n);o[a]=s})}function Q3(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&&Wo(e,t,o.top,n),o.right&&Wo(e,t,o.right,n),o.bottom&&Wo(e,t,o.bottom,n),o.left&&Wo(e,t,o.left,n),o.center&&Wo(e,t,o.center,n)}var cl={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},py=30;function qt(e){return parseInt(e.replace("px",""),10)}function Un(e){return Number.isInteger(e)?e:e.toFixed(2)}function Kp(e){return e.filter(t=>t.text!==0&&t.text!=="0")}function Z3(e){let t={top:re.window.scrollY,bottom:re.window.scrollY+re.window.innerHeight,left:re.window.scrollX,right:re.window.scrollX+re.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 eJ(e){let t=re.getComputedStyle(e),{top:r,left:n,right:o,bottom:i,width:a,height:s}=e.getBoundingClientRect(),{marginTop:c,marginBottom:l,marginLeft:d,marginRight:p,paddingTop:f,paddingBottom:m,paddingLeft:y,paddingRight:g,borderBottomWidth:v,borderTopWidth:b,borderLeftWidth:T,borderRightWidth:R}=t;r=r+re.window.scrollY,n=n+re.window.scrollX,i=i+re.window.scrollY,o=o+re.window.scrollX;let x={top:qt(c),bottom:qt(l),left:qt(d),right:qt(p)},C={top:qt(f),bottom:qt(m),left:qt(y),right:qt(g)},E={top:qt(b),bottom:qt(v),left:qt(T),right:qt(R)},_={top:r-x.top,bottom:i+x.bottom,left:n-x.left,right:o+x.right};return{margin:x,padding:C,border:E,top:r,left:n,bottom:i,right:o,width:a,height:s,extremities:_,floatingAlignment:Z3(_)}}function tJ(e,{margin:t,width:r,height:n,top:o,left:i,bottom:a,right:s}){let c=n+t.bottom+t.top;e.fillStyle=cl.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 l=[{type:"margin",text:Un(t.top),position:"top"},{type:"margin",text:Un(t.right),position:"right"},{type:"margin",text:Un(t.bottom),position:"bottom"},{type:"margin",text:Un(t.left),position:"left"}];return Kp(l)}function rJ(e,{padding:t,border:r,width:n,height:o,top:i,left:a,bottom:s,right:c}){let l=n-r.left-r.right,d=o-t.top-t.bottom-r.top-r.bottom;e.fillStyle=cl.padding,e.fillRect(a+r.left,i+r.top,l,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,l,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 Kp(p)}function nJ(e,{border:t,width:r,height:n,top:o,left:i,bottom:a,right:s}){let c=n-t.top-t.bottom;e.fillStyle=cl.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 l=[{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 Kp(l)}function oJ(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=cl.content,e.fillRect(a+r.left+t.left,i+r.top+t.top,s,c),[{type:"content",position:"center",text:`${Un(s)} x ${Un(c)}`}]}function iJ(e){return t=>{if(e&&t){let r=eJ(e),n=tJ(t,r),o=rJ(t,r),i=nJ(t,r),a=oJ(t,r),s=r.width<=py*3||r.height<=py;Q3(t,r,[...a,...o,...i,...n],s)}}}function aJ(e){U3(iJ(e))}var sJ=(e,t)=>{let r=re.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},fy,Sa={x:0,y:0};function my(e,t){fy=sJ(e,t),aJ(fy)}var lJ=(e,t)=>{let{measureEnabled:r}=t.globals||{};return _n(()=>{if(typeof globalThis.document>"u")return;let n=o=>{window.requestAnimationFrame(()=>{o.stopPropagation(),Sa.x=o.clientX,Sa.y=o.clientY})};return globalThis.document.addEventListener("pointermove",n),()=>{globalThis.document.removeEventListener("pointermove",n)}},[]),_n(()=>{let n=i=>{window.requestAnimationFrame(()=>{i.stopPropagation(),my(i.clientX,i.clientY)})},o=()=>{window.requestAnimationFrame(()=>{J3()})};return t.viewMode==="story"&&r&&(globalThis.document.addEventListener("pointerover",n),B3(),globalThis.window.addEventListener("resize",o),my(Sa.x,Sa.y)),()=>{globalThis.window.removeEventListener("resize",o),H3()}},[r,t.viewMode]),e()},uJ=globalThis.FEATURES?.measure?[lJ]:[],cJ={[$3]:!1},hy=()=>({decorators:uJ,initialGlobals:cJ}),y0="outline",yy=e=>{(Array.isArray(e)?e:[e]).forEach(dJ)},dJ=e=>{let t=typeof e=="string"?e:e.join(""),r=re.document.getElementById(t);r&&r.parentElement&&r.parentElement.removeChild(r)},pJ=(e,t)=>{let r=re.document.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=re.document.createElement("style");n.setAttribute("id",e),n.innerHTML=t,re.document.head.appendChild(n)}};function fJ(e){return Te`
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 mJ=(e,t)=>{let r=t.globals||{},n=[!0,"true"].includes(r[y0]),o=t.viewMode==="docs",i=iv(()=>fJ(o?'[data-story-block="true"]':".sb-show-main"),[t]);return _n(()=>{let a=o?`addon-outline-docs-${t.id}`:"addon-outline";return n?pJ(a,i):yy(a),()=>{yy(a)}},[n,i,t]),e()},hJ=globalThis.FEATURES?.outline?[mJ]:[],yJ={[y0]:!1},gy=()=>({decorators:hJ,initialGlobals:yJ}),gJ=({parameters:e})=>{e?.test?.mockReset===!0?Qw():e?.test?.clearMocks===!0?Xw():e?.test?.restoreMocks!==!1&&Zw()},Oc=(e,t=0,r)=>{if(t>5||e==null)return e;if(Vn(e))return r&&e.mockName(r),e;if(typeof e=="function"&&"isAction"in e&&e.isAction&&!("implicit"in e&&e.implicit)){let n=Yw(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]=Oc(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]=Oc(o,t,n));return e}return e},bJ=({initialArgs:e})=>{Oc(e)},by=!1,vJ=async e=>{globalThis.HTMLElement&&e.canvasElement instanceof globalThis.HTMLElement&&(e.canvas=c0(e.canvasElement));try{let t=globalThis.window?.navigator?.clipboard;if(t&&(e.userEvent=zi({userEvent:d0.setup()},{intercept:!0,getKeys:r=>Object.keys(r).filter(n=>n!=="eventWrapper")}).userEvent,Object.defineProperty(globalThis.window.navigator,"clipboard",{get:()=>t,configurable:!0}),!by)){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)}}}),by=!0}}catch{}},vy=()=>({loaders:[gJ,bJ,vJ]}),EJ="viewport",wJ={[EJ]:{value:void 0,isRotated:!1}},Ey=()=>({initialGlobals:wJ});function g0(){return[(hy.default??hy)(),(ey.default??ey)(),(cy.default??cy)(),(gy.default??gy)(),(Ey.default??Ey)(),(Kh.default??Kh)(),(ty.default??ty)(),(vy.default??vy)(),(ry.default??ry)()]}function _J(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Meta"}function ys(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Story"}function TJ(e){return"__children"in e?e.__children:[]}var b0=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),xc=(e,t)=>{let r=b0(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},SJ=(e,t)=>`${xc(e,"kind")}${t?`--${xc(t,"name")}`:""}`,AJ=(e,t)=>`${e}:${xc(t,"test")}`,RJ=e=>tM(e);function wy(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}function Pc(e,{includeStories:t,excludeStories:r}){return e!=="__esModule"&&(!t||wy(e,t))&&(!r||!wy(e,r))}var OJ=(...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 _y(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Ty(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var xJ="[object RegExp]",PJ="[object String]",CJ="[object Number]",NJ="[object Boolean]",Sy="[object Arguments]",IJ="[object Symbol]",MJ="[object Date]",jJ="[object Map]",kJ="[object Set]",qJ="[object Array]",LJ="[object Function]",DJ="[object ArrayBuffer]",lu="[object Object]",$J="[object Error]",FJ="[object DataView]",BJ="[object Uint8Array]",UJ="[object Uint8ClampedArray]",JJ="[object Uint16Array]",HJ="[object Uint32Array]",VJ="[object BigUint64Array]",zJ="[object Int8Array]",GJ="[object Int16Array]",WJ="[object Int32Array]",YJ="[object BigInt64Array]",KJ="[object Float32Array]",XJ="[object Float64Array]";function ar(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 Mi(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 QJ(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 uu=We(Pg(),1);function ZJ(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function eH(e,t,r){return ri(e,t,void 0,void 0,void 0,void 0,r)}function ri(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 li(e,t,i,a)}return li(e,t,i,a)}function li(e,t,r,n){if(Object.is(e,t))return!0;let o=Ty(e),i=Ty(t);if(o===Sy&&(o=lu),i===Sy&&(i=lu),o!==i)return!1;switch(o){case PJ:return e.toString()===t.toString();case CJ:{let c=e.valueOf(),l=t.valueOf();return ZJ(c,l)}case NJ:case MJ:case IJ:return Object.is(e.valueOf(),t.valueOf());case xJ:return e.source===t.source&&e.flags===t.flags;case LJ: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 jJ:{if(e.size!==t.size)return!1;for(let[c,l]of e.entries())if(!t.has(c)||!ri(l,t.get(c),c,e,t,r,n))return!1;return!0}case kJ:{if(e.size!==t.size)return!1;let c=Array.from(e.values()),l=Array.from(t.values());for(let d=0;d<c.length;d++){let p=c[d],f=l.findIndex(m=>ri(p,m,void 0,e,t,r,n));if(f===-1)return!1;l.splice(f,1)}return!0}case qJ:case BJ:case UJ:case JJ:case HJ:case VJ:case zJ:case GJ:case WJ:case YJ:case KJ:case XJ:{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(!ri(e[c],t[c],c,e,t,r,n))return!1;return!0}case DJ:return e.byteLength!==t.byteLength?!1:li(new Uint8Array(e),new Uint8Array(t),r,n);case FJ:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:li(new Uint8Array(e),new Uint8Array(t),r,n);case $J:return e.name===t.name&&e.message===t.message;case lu:{if(!(li(e.constructor,t.constructor,r,n)||ar(e)&&ar(t)))return!1;let c=[...Object.keys(e),..._y(e)],l=[...Object.keys(t),..._y(t)];if(c.length!==l.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 m=t[p];if(!ri(f,m,p,e,t,r,n))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}function tH(){}function rH(e,t){return eH(e,t,tH)}var mn=Symbol("incompatible"),Cc=(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)?mn:e.reduce((n,o,i)=>{let a=Cc(o,{type:r.value});return a!==mn&&(n[i]=a),n},new Array(e.length));case"object":return typeof e=="string"||typeof e=="number"?e:!r.value||typeof e!="object"?mn:Object.entries(e).reduce((n,[o,i])=>{let a=Cc(i,{type:r.value[o]});return a===mn?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:mn}default:return mn}},nH=(e,t)=>Object.entries(e).reduce((r,[n,o])=>{if(!t[n])return r;let i=Cc(o,t[n]);return i===mn?r:Object.assign(r,{[n]:i})},{}),gs=(e,t)=>Array.isArray(e)&&Array.isArray(t)?t.reduce((r,n,o)=>(r[o]=gs(e[o],t[o]),r),[...e]).filter(r=>r!==void 0):!ar(e)||!ar(t)?t:Object.keys({...e,...t}).reduce((r,n)=>{if(n in t){let o=gs(e[n],t[n]);o!==void 0&&(r[n]=o)}else r[n]=e[n];return r},{}),oH=(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 Ge.error(Te`
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 Ge.error(Te`
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 l=a?`${n}[${s}]`:n,d=o.map(p=>typeof p=="string"?`'${p}'`:String(p)).join(", ");return Ge.warn(`Received illegal value for '${l}'. Supported options: ${d}`),r},{}),ui=Symbol("Deeply equal"),bs=(e,t)=>{if(typeof e!=typeof t)return t;if(rH(e,t))return ui;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((n,o,i)=>{let a=bs(e[i],o);return a!==ui&&(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 ar(e)&&ar(t)?Object.keys({...e,...t}).reduce((r,n)=>{let o=bs(e?.[n],t?.[n]);return o===ui?r:Object.assign(r,{[n]:o})},{}):t},v0="UNTARGETED";function iH({args:e,argTypes:t}){let r={};return Object.entries(e).forEach(([n,o])=>{let{target:i=v0}=t[n]||{};r[i]=r[i]||{},r[i][n]=o}),r}function aH(e){return Object.keys(e).forEach(t=>e[t]===void 0&&delete e[t]),e}var sH=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=bs(this.initialArgsByStoryId[e.id],this.argsByStoryId[e.id]);this.initialArgsByStoryId[e.id]=e.initialArgs,this.argsByStoryId[e.id]=e.initialArgs,t!==ui&&this.updateFromDelta(e,t)}}updateFromDelta(e,t){let r=oH(t,e.argTypes);this.argsByStoryId[e.id]=gs(this.argsByStoryId[e.id],r)}updateFromPersisted(e,t){let r=nH(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]=aH({...this.argsByStoryId[e],...t})}},E0=(e={})=>Object.entries(e).reduce((t,[r,{defaultValue:n}])=>(typeof n<"u"&&(t[r]=n),t),{}),lH=class{constructor({globals:e={},globalTypes:t={}}){this.set({globals:e,globalTypes:t})}set({globals:e={},globalTypes:t={}}){let r=this.initialGlobals&&bs(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(e),...Object.keys(t)]);let n=E0(t);this.initialGlobals={...n,...e},this.globals=this.initialGlobals,r&&r!==ui&&this.updateFromPersisted(r)}filterAllowedGlobals(e){return Object.entries(e).reduce((t,[r,n])=>(this.allowedGlobalNames.has(r)?t[r]=n:$e.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])}},uH=We(Pg(),1),cH=(0,uH.default)(1)(e=>Object.values(e).reduce((t,r)=>(t[r.importPath]=t[r.importPath]||r,t),{})),dH=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 jb({storyId:e});return t}importPathToEntry(e){return cH(this.entries)[e]}},pH=e=>typeof e=="string"?{name:e}:e,fH=e=>typeof e=="string"?{type:e}:e,mH=(e,t)=>{let{type:r,control:n,...o}=e,i={name:t,...o};return r&&(i.type=pH(r)),n?i.control=fH(n):n===!1&&(i.control={disable:!0}),i},Xp=e=>Mi(e,mH),Le=e=>Array.isArray(e)?e:e?[e]:[],hH=Te`
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 ci(e,t,r){let n=t,o=typeof t=="function"?t:null,{story:i}=n;i&&($e.debug("deprecated story",i),hd(hH));let a=RJ(e),s=typeof n!="function"&&n.name||n.storyName||i?.name||a,c=[...Le(n.decorators),...Le(i?.decorators)],l={...i?.parameters,...n.parameters},d={...i?.args,...n.args},p={...i?.argTypes,...n.argTypes},f=[...Le(n.loaders),...Le(i?.loaders)],m=[...Le(n.beforeEach),...Le(i?.beforeEach)],y=[...Le(n.afterEach),...Le(i?.afterEach)],{render:g,play:v,tags:b=[],globals:T={}}=n,R=l.__id||SJ(r.id,a);return{moduleExport:t,id:R,name:s,tags:b,decorators:c,parameters:l,args:d,argTypes:Xp(p),loaders:f,beforeEach:m,afterEach:y,globals:T,...g&&{render:g},...o&&{userStoryFn:o},...v&&{play:v}}}function Nc(e,t=e.title,r){let{id:n,argTypes:o}=e;return{id:b0(n||t),...e,title:t,...o&&{argTypes:Xp(o)},parameters:{fileName:r,...e.parameters}}}var yH=e=>{let{globals:t,globalTypes:r}=e;(t||r)&&$e.error("Global args/argTypes can only be set globally",JSON.stringify({globals:t,globalTypes:r}))},gH=e=>{let{options:t}=e;t?.storySort&&$e.error("The storySort option parameter can only be set globally")},Aa=e=>{e&&(yH(e),gH(e))};function bH(e,t,r){let{default:n,__namedExportsOrder:o,...i}=e,a=Object.values(i).find(l=>ys(l));if(a){let l=Nc(a.meta.input,r,t);Aa(l.parameters);let d={meta:l,stories:{},moduleExports:e};return Object.keys(i).forEach(p=>{if(Pc(p,l)&&ys(i[p])){let f=i[p],m=ci(p,f.input,l);Aa(m.parameters),d.stories[m.id]=m,TJ(f).forEach(y=>{let g=y.input.name,v=AJ(m.id,g);y.input.parameters??={},y.input.parameters.__id=v,d.stories[v]=ci(g,y.input,l)})}}),d.projectAnnotations=a.meta.preview.composed,d}let s=Nc(n,r,t);Aa(s.parameters);let c={meta:s,stories:{},moduleExports:e};return Object.keys(i).forEach(l=>{if(Pc(l,s)){let d=ci(l,i[l],s);Aa(d.parameters),c.stories[d.id]=d}}),c}function w0(e,t,r){let n=r(e);return o=>t(n,o)}function _0({componentId:e,title:t,kind:r,id:n,name:o,story:i,parameters:a,initialArgs:s,argTypes:c,...l}={}){return l}function T0(e,t){let r={},n=i=>a=>{if(!r.value)throw new Error("Decorated function called without init");return r.value={...r.value,..._0(a)},i(r.value)},o=t.reduce((i,a)=>w0(i,a,n),e);return i=>(r.value=i,o(i))}var On=(...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:ar(s)&&ar(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=>ar(a))?n[o]=On(...i):n[o]=i[i.length-1]}),n};function Qp(e,t,r){let{moduleExport:n,id:o,name:i}=e||{},a=A0(e,t,r),s=async E=>{let _={};for(let S of[Le(r.loaders),Le(t.loaders),Le(e.loaders)]){if(E.abortSignal.aborted)return _;let A=await Promise.all(S.map($=>$(E)));Object.assign(_,...A)}return _},c=async E=>{let _=new Array;for(let S of[...Le(r.beforeEach),...Le(t.beforeEach),...Le(e.beforeEach)]){if(E.abortSignal.aborted)return _;let A=await S(E);A&&_.push(A)}return _},l=async E=>{let _=[...Le(r.afterEach),...Le(t.afterEach),...Le(e.afterEach)].reverse();for(let S of _){if(E.abortSignal.aborted)return;await S(E)}},d=E=>E.originalStoryFn(E.args,E),{applyDecorators:p=T0,runStep:f}=r,m=[...Le(e?.decorators),...Le(t?.decorators),...Le(r?.decorators)],y=e?.userStoryFn||e?.render||t.render||r.render,g=nv(p)(d,m),v=E=>g(E),b=e?.play??t?.play,T=oM(b);if(!y&&!T)throw new Hb({id:o});let R=E=>async()=>(await E.renderToCanvas(),E.canvas),x=e.mount??t.mount??r.mount??R,C=r.testingLibraryRender;return{storyGlobals:{},...a,moduleExport:n,id:o,name:i,story:i,originalStoryFn:y,undecoratedStoryFn:d,unboundStoryFn:v,applyLoaders:s,applyBeforeEach:c,applyAfterEach:l,playFunction:b,runStep:f,mount:x,testingLibraryRender:C,renderToCanvas:r.renderToCanvas,usesMount:T}}function S0(e,t,r){return{...A0(void 0,e,t),moduleExport:r}}function A0(e,t,r){let n=[hr.DEV,hr.TEST],o=re.DOCS_OPTIONS?.autodocs===!0?[hr.AUTODOCS]:[],i=e?.tags?.includes(hr.TEST_FN)?[`!${hr.AUTODOCS}`]:[],a=OJ(...n,...o,...r.tags??[],...t.tags??[],...i,...e?.tags??[]),s=On(r.parameters,t.parameters,e?.parameters),{argTypesEnhancers:c=[],argsEnhancers:l=[]}=r,d=On(r.argTypes,t.argTypes,e?.argTypes);if(e){let T=e?.userStoryFn||e?.render||t.render||r.render;s.__isArgsStory=T&&T.length>0}let p={...r.args,...t.args,...e?.args},f={...t.globals,...e?.globals},m={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};m.argTypes=c.reduce((T,R)=>R({...m,argTypes:T}),m.argTypes);let y={...p};m.initialArgs=[...l].reduce((T,R)=>({...T,...R({...m,initialArgs:T})}),y);let{name:g,story:v,...b}=m;return b}function R0(e){let{args:t}=e,r={...e,allArgs:void 0,argsByTarget:void 0};if(re.FEATURES?.argTypeTargetsV7){let i=iH(e);r={...e,allArgs:e.args,argsByTarget:i,args:i[v0]||{}}}let n=Object.entries(r.args).reduce((i,[a,s])=>{if(!r.argTypes[a]?.mapping)return i[a]=s,i;let c=l=>{let d=r.argTypes[a].mapping;return d&&l in d?d[l]:l};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 nM(c,n,r.globals)&&(i[a]=s),i},{});return{...r,unmappedArgs:t,args:o}}var Ic=(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)?($e.warn(Te`
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?Ic(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:Mi(e,o=>Ic(o,t,new Set(r)))}):{name:"object",value:{}}},O0=e=>{let{id:t,argTypes:r={},initialArgs:n={}}=e,o=Mi(n,(a,s)=>({name:s,type:Ic(a,`${t}.${s}`,new Set)})),i=Mi(r,(a,s)=>({name:s}));return On(o,i,r)};O0.secondPass=!0;var Ay=(e,t)=>Array.isArray(t)?t.includes(e):e.match(t),x0=(e,t,r)=>!t&&!r?e:e&&QJ(e,(n,o)=>{let i=n.name||o.toString();return!!(!t||Ay(i,t))&&(!r||!Ay(i,r))}),vH=(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"&&$e.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"}}}}},Zp=e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:o=null,matchers:i={}}={}}}=e;if(!r)return t;let a=x0(t,n,o),s=Mi(a,(c,l)=>c?.type&&vH(c,l.toString(),i));return On(s,a)};Zp.secondPass=!0;function vs({argTypes:e,argTypesEnhancers:t,decorators:r,loaders:n,beforeEach:o,afterEach:i,initialGlobals:a,...s}){return{...e&&{argTypes:Xp(e)},decorators:Le(r),loaders:Le(n),beforeEach:Le(o),afterEach:Le(i),argTypesEnhancers:[...t||[],O0,Zp],initialGlobals:a,...s}}var EH=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 P0(e){return async(t,r,n)=>{await e.reduceRight((o,i)=>async()=>i(t,o,n),async()=>r(n))()}}function ji(e,t){return e.map(r=>r.default?.[t]??r[t]).filter(Boolean)}function kr(e,t,r={}){return ji(e,t).reduce((n,o)=>{let i=Le(o);return r.reverseFileOrder?[...i,...n]:[...n,...i]},[])}function Ra(e,t){return Object.assign({},...ji(e,t))}function Yo(e,t){return ji(e,t).pop()}function so(e){let t=kr(e,"argTypesEnhancers"),r=ji(e,"runStep"),n=kr(e,"beforeAll");return{parameters:On(...ji(e,"parameters")),decorators:kr(e,"decorators",{reverseFileOrder:!(re.FEATURES?.legacyDecoratorFileOrder??!1)}),args:Ra(e,"args"),argsEnhancers:kr(e,"argsEnhancers"),argTypes:Ra(e,"argTypes"),argTypesEnhancers:[...t.filter(o=>!o.secondPass),...t.filter(o=>o.secondPass)],initialGlobals:Ra(e,"initialGlobals"),globalTypes:Ra(e,"globalTypes"),loaders:kr(e,"loaders"),beforeAll:EH(n),beforeEach:kr(e,"beforeEach"),afterEach:kr(e,"afterEach"),render:Yo(e,"render"),renderToCanvas:Yo(e,"renderToCanvas"),applyDecorators:Yo(e,"applyDecorators"),runStep:P0(r),tags:kr(e,"tags"),mount:Yo(e,"mount"),testingLibraryRender:Yo(e,"testingLibraryRender")}}function C0(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}function ef(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 tf(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,...N0(globalThis.document)],o=async()=>{if(t||e?.aborted)return;let i=n.flatMap(a=>a?.getAnimations?.()||[]).filter(a=>a.playState==="running"&&!wH(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 N0(e){return[e,...e.querySelectorAll("*")].reduce((t,r)=>("shadowRoot"in r&&r.shadowRoot&&t.push(r.shadowRoot,...N0(r.shadowRoot)),t),[])}function wH(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 rf=class{constructor(){this.reports=[]}async addReport(e){this.reports.push(e)}};function I0(e,t,r){return ys(e)?{story:e.input,meta:e.meta.input,preview:e.meta.preview.composed}:{story:e,meta:_J(t)?t.input:t,preview:r}}function _H(e){globalThis.defaultProjectAnnotations=e}var TH="ComposedStory",SH="Unnamed Story";function AH(e){return e?so([e]):{}}function RH(e){let t=Array.isArray(e)?e:[e];return globalThis.globalProjectAnnotations=so([...g0(),globalThis.defaultProjectAnnotations??{},so(t.map(AH))]),globalThis.globalProjectAnnotations??{}}var Jr=[];function M0(e,t,r,n,o){if(e===void 0)throw new Error("Expected a story but received undefined.");t.title=t.title??TH;let i=Nc(t),a=o||e.storyName||e.story?.name||e.name||SH,s=ci(a,e,i),c=vs(so([n??globalThis.globalProjectAnnotations??{},r??{}])),l=Qp(s,i,c),d={...E0(c.globalTypes),...c.initialGlobals,...l.storyGlobals},p=new rf,f=()=>{let b=R0({hooks:new xd,globals:d,args:{...l.initialArgs},viewMode:"story",reporting:p,loaded:{},abortSignal:new AbortController().signal,step:(T,R)=>l.runStep(T,R,b),canvasElement:null,canvas:{},userEvent:{},globalTypes:c.globalTypes,...l,context:null,mount:null});return b.parameters.__isPortableStory=!0,b.context=b,l.renderToCanvas&&(b.renderToCanvas=async()=>{let T=await l.renderToCanvas?.({componentId:l.componentId,title:l.title,id:l.id,name:l.name,tags:l.tags,showMain:()=>{},showError:R=>{throw new Error(`${R.title}
890
+ ${R.description}`)},showException:R=>{throw R},forceRemount:!0,storyContext:b,storyFn:()=>l.unboundStoryFn(b),unboundStoryFn:l.unboundStoryFn},b.canvasElement);T&&Jr.push(T)}),b.mount=l.mount(b),b},m,y=async b=>{let T=f();return T.canvasElement??=globalThis?.document?.body,m&&(T.loaded=m.loaded),Object.assign(T,b),l.playFunction(T)},g=b=>{let T=f();return Object.assign(T,b),CH(l,T)},v=l.playFunction?y:void 0;return Object.assign(function(b){let T=f();return m&&(T.loaded=m.loaded),T.args={...T.initialArgs,...b},l.unboundStoryFn(T)},{id:l.id,storyName:a,load:async()=>{for(let T of[...Jr].reverse())await T();Jr.length=0;let b=f();b.loaded=await l.applyLoaders(b),Jr.push(...(await l.applyBeforeEach(b)).filter(Boolean)),m=b},globals:d,args:l.initialArgs,parameters:l.parameters,argTypes:l.argTypes,play:v,run:g,reporting:p,tags:l.tags})}var OH=(e,t,r,n)=>M0(e,t,r,{},n);function xH(e,t,r=OH){let{default:n,__esModule:o,__namedExportsOrder:i,...a}=e,s=n;return Object.entries(a).reduce((c,[l,d])=>{let{story:p,meta:f}=I0(d);return!s&&f&&(s=f),Pc(l,s)?Object.assign(c,{[l]:r(p,s,t,l)}):c},{})}function PH(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(Te`
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 l=>{let d=await globalThis.__pwUnwrapObject?.(l);return("__pw_type"in d?d.type:d)?.load?.()},s);let c=await t(o,...i);return await r.evaluate(async l=>{let d=await globalThis.__pwUnwrapObject?.(l),p="__pw_type"in d?d.type:d,f=document.querySelector("#root");return p?.play?.({canvasElement:f})},s),c})}})}async function CH(e,t){for(let i of[...Jr].reverse())await i();if(Jr.length=0,!t.canvasElement){let i=document.createElement("div");globalThis?.document?.body?.appendChild(i),t.canvasElement=i,Jr.push(()=>{globalThis?.document?.body?.contains(i)&&globalThis?.document?.body?.removeChild(i)})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;Jr.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 Od({playFunction:r.toString()})}),await r(t));let o;C0()?o=ef():await tf(t.abortSignal),await e.applyAfterEach(t),await o?.()}var Ry=1e3,NH=1e4,j0=class{constructor(e,t,r){this.importFn=t,this.storyIndex=new dH(e),this.projectAnnotations=vs(so([...g0(),r]));let{initialGlobals:n,globalTypes:o}=this.projectAnnotations;this.args=new sH,this.userGlobals=new lH({globals:n,globalTypes:o}),this.hooks={},this.cleanupCallbacks={},this.processCSFFileWithCache=(0,uu.default)(Ry)(bH),this.prepareMetaWithCache=(0,uu.default)(Ry)(S0),this.prepareStoryWithCache=(0,uu.default)(NH)(Qp)}setProjectAnnotations(e){this.projectAnnotations=vs(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 Ub({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 xd,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 rf;return R0({...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 qb;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,[l,d])=>l==="story"&&i.subtype==="test"?{...c,story:i.parentName}:l==="moduleExport"||typeof d=="function"?c:Array.isArray(d)?Object.assign(c,{[l]:d.slice().sort()}):Object.assign(c,{[l]: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 IH(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}var MH=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 Oy(e){return e.flatMap(t=>t.split("/")).filter(Boolean).join("/")}var k0=(e,t,r)=>{let{directory:n,importPathMatcher:o,titlePrefix:i=""}=t||{};typeof e=="number"&&Ge.warn(Te`
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=IH(String(e));if(o.exec(a)){if(!r){let s=a.replace(n,""),c=Oy([i,s]).split("/");return c=MH(c),c.join("/")}return i?Oy([i,r]):r}},jH=(e,t,r)=>{for(let n=0;n<t.length;n+=1){let o=k0(e,t[n],r);if(o)return o}return r||void 0},xy=/\s*\/\s*/,kH=(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(xy),a=r.title.trim().split(xy);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],l=a[s];if(c!==l){let p=o.indexOf(c),f=o.indexOf(l),m=o.indexOf("*");return p!==-1||f!==-1?(p===-1&&(m!==-1?p=m:p=o.length),f===-1&&(m!==-1?f=m:f=o.length),p-f):n==="configure"?0:c.localeCompare(l,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},qH=(e,t,r)=>{if(t){let n;typeof t=="function"?n=t:n=kH(t),e.sort(n)}else e.sort((n,o)=>r.indexOf(n.importPath)-r.indexOf(o.importPath));return e},LH=(e,t,r)=>{try{return qH(e,t,r)}catch(n){throw new Error(Te`
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
+ `)}},dl=new Error("prepareAborted"),{AbortController:Py}=globalThis;function Cy(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 Mc=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 Py,this.renderId=Date.now(),s&&(this.story=s,this.phase="preparing")}async runPhase(e,t,r){this.phase=t,this.channel.emit(wn,{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(wn,{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),dl}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:l,applyBeforeEach:d,applyAfterEach:p,unboundStoryFn:f,playFunction:m,runStep:y}=n;t&&!e&&(this.cancelRender(),this.abortController=new Py);let g=this.abortController.signal,v=!1,b=n.usesMount;try{let T={...this.storyContext(),viewMode:this.viewMode,abortSignal:g,canvasElement:r,loaded:{},step:(H,I)=>y(H,I,T),context:null,canvas:{},userEvent:{},renderToCanvas:async()=>{let H=await this.renderToScreen(R,r);this.teardownRender=H||(()=>{}),v=!0},mount:async(...H)=>{this.callbacks.showStoryDuringRender?.();let I=null;return await this.runPhase(g,"rendering",async()=>{I=await n.mount(T)(...H)}),b&&await this.runPhase(g,"playing"),I}};T.context=T;let R={componentId:i,title:a,kind:a,id:o,name:s,story:s,tags:c,...this.callbacks,showError:H=>(this.phase="errored",this.callbacks.showError(H)),showException:H=>(this.phase="errored",this.callbacks.showException(H)),forceRemount:t||this.notYetRendered,storyContext:T,storyFn:()=>f(T),unboundStoryFn:f};if(await this.runPhase(g,"loading",async()=>{T.loaded=await l(T)}),g.aborted)return;let x=await d(T);if(this.store.addCleanupCallbacks(n,...x),this.checkIfAborted(g)||(!v&&!b&&await T.mount(),this.notYetRendered=!1,g.aborted))return;let C=this.story.parameters?.test?.dangerouslyIgnoreUnhandledErrors===!0,E=new Set,_=H=>{H.error&&E.add(H.error)},S=H=>{H.reason&&E.add(H.reason)};if(this.renderOptions.autoplay&&t&&m&&this.phase!=="errored"){window?.addEventListener?.("error",_),window?.addEventListener?.("unhandledrejection",S),this.disableKeyListeners=!0;try{if(b?await m(T):(T.mount=async()=>{throw new Od({playFunction:m.toString()})},await this.runPhase(g,"playing",async()=>m(T))),!v)throw new Vb;this.checkIfAborted(g),!C&&E.size>0?await this.runPhase(g,"errored"):await this.runPhase(g,"played")}catch(H){if(this.callbacks.showStoryDuringRender?.(),await this.runPhase(g,"errored",async()=>{this.channel.emit(Lg,Cy(H))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw H;console.error(H)}if(!C&&E.size>0&&this.channel.emit(Dg,Array.from(E).map(Cy)),this.disableKeyListeners=!1,window?.removeEventListener?.("unhandledrejection",S),window?.removeEventListener?.("error",_),g.aborted)return}await this.runPhase(g,"completing",async()=>{C0()?this.store.addCleanupCallbacks(n,ef()):await tf(g)}),await this.runPhase(g,"completed",async()=>{this.channel.emit(Ya,o)}),this.phase!=="errored"&&await this.runPhase(g,"afterEach",async()=>{await p(T)});let A=!C&&E.size>0,$=T.reporting.reports.some(H=>H.status==="failed"),k=A||$;await this.runPhase(g,"finished",async()=>this.channel.emit(Cu,{storyId:o,status:k?"error":"success",reporters:T.reporting.reports}))}catch(T){this.phase="errored",this.callbacks.showException(T),await this.runPhase(g,"finished",async()=>this.channel.emit(Cu,{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:DH}=re,$H="./index.json",q0=class{constructor(e,t,r=$t.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 hd("Accessing the Story Store is deprecated and will be removed in 9.0"),this.storyStoreValue[t];throw new Jb}})}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(Fg,{userAgent:t})}catch(e){this.rejectStoreInitializationPromise(e)}}ready(){return this.storeInitializationPromise}setupListeners(){this.channel.on(zg,this.onStoryIndexChanged.bind(this)),this.channel.on(fd,this.onUpdateGlobals.bind(this)),this.channel.on(md,this.onUpdateArgs.bind(this)),this.channel.on(eb,this.onRequestArgTypesInfo.bind(this)),this.channel.on(dd,this.onResetArgs.bind(this)),this.channel.on(cd,this.onForceReRender.bind(this)),this.channel.on(Wa,this.onForceRemount.bind(this)),this.channel.on(Xg,this.onStoryHotUpdated.bind(this))}async getProjectAnnotationsOrRenderError(){try{let e=await this.getProjectAnnotations();if(this.renderToCanvas=e.renderToCanvas,!this.renderToCanvas)throw new Lb;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 DH($H);if(e.status===200)return e.json();throw new Db({text:await e.text()})}initializeWithStoryIndex(e){if(!this.projectAnnotationsBeforeInitialization)throw new Error("Cannot call initializeWithStoryIndex until project annotations resolve");this.storyStoreValue=new j0(e,this.importFn,this.projectAnnotationsBeforeInitialization),delete this.projectAnnotationsBeforeInitialization,this.setInitialGlobals(),this.resolveStoreInitializationPromise()}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStoreValue)throw new Rt({methodName:"emitGlobals"});let e={globals:this.storyStoreValue.userGlobals.get()||{},globalTypes:this.storyStoreValue.projectAnnotations.globalTypes||{}};this.channel.emit(Ug,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 Rt({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 Rt({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(hi,{initialGlobals:r,userGlobals:o,storyGlobals:n,globals:i})}else{let{initialGlobals:r,globals:n}=this.storyStoreValue.userGlobals;this.channel.emit(hi,{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 Rt({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(Jg,{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(Nu,{id:e,success:!0,payload:{argTypes:r?.argTypes||{}},error:null})}catch(r){this.channel.emit(Nu,{id:e,success:!1,error:r?.message})}}async onResetArgs({storyId:e,argNames:t}){if(!this.storyStoreValue)throw new Rt({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 Rt({methodName:"renderStoryToElement"});let o=new Mc(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 Rt({methodName:"loadStory"});return this.storyStoreValue.loadStory({storyId:e})}getStoryContext(e,{forceInitialArgs:t=!1}={}){if(!this.storyStoreValue)throw new Rt({methodName:"getStoryContext"});return this.storyStoreValue.getStoryContext(e,{forceInitialArgs:t})}async extract(e){if(!this.storyStoreValue)throw new Rt({methodName:"extract"});if(this.previewEntryError)throw this.previewEntryError;return await this.storyStoreValue.cacheAllCSFFiles(),this.storyStoreValue.extract(e)}renderPreviewEntryError(e,t){this.previewEntryError=t,$e.error(e),$e.error(t),this.channel.emit(kg,t)}},nf=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(ys(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(Te`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}}},Ny=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 dl;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 nf(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(ud,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}},Iy=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 dl;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 nf(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(ud,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}},FH=globalThis;function BH(e){let t=e.composedPath&&e.composedPath()[0]||e.target;return/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null}function UH({tags:e}){return e?.includes(hr.UNATTACHED_MDX)||e?.includes(hr.ATTACHED_MDX)}function cu(e){return e.type==="story"}function JH(e){return e.type==="docs"}function HH(e){return JH(e)&&e.subtype==="csf"}var L0=class extends q0{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(),FH.onkeydown=this.onKeydown.bind(this),this.channel.on(pd,this.onSetCurrentStory.bind(this)),this.channel.on(Qg,this.onUpdateQueryParams.bind(this)),this.channel.on($g,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStoreValue)throw new Rt({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 Rt({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 Fb):this.renderStoryLoadingException(e,new Bb({storySpecifier:e.toString()}));return}let{id:n,type:o}=r;this.selectionStore.setSelection({storyId:n,viewMode:o}),this.channel.emit(Wg,this.selectionStore.selection),this.channel.emit(xu,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)&&!BH(e)){let{altKey:t,ctrlKey:r,metaKey:n,shiftKey:o,key:i,code:a,keyCode:s}=e;this.channel.emit(Bg,{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(xu,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(e){this.selectionStore.setQueryParams(e)}async onUpdateGlobals({globals:e}){let t=this.currentRender instanceof Mc&&this.currentRender.story||void 0;super.onUpdateGlobals({globals:e,currentStory:t}),(this.currentRender instanceof Iy||this.currentRender instanceof Ny)&&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 Rt({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 Mc(this.channel,this.storyStoreValue,t,this.mainStoryCallbacks(n),n,"story"):UH(o)?s=new Iy(this.channel,this.storyStoreValue,o,this.mainStoryCallbacks(n)):s=new Ny(this.channel,this.storyStoreValue,o,this.mainStoryCallbacks(n));let c=this.currentSelection;this.currentSelection=r;let l=this.currentRender;this.currentRender=s;try{await s.prepare()}catch(p){l&&await this.teardownRender(l),p!==dl&&this.renderStoryLoadingException(n,p);return}let d=!i&&l&&!s.isEqual(l);if(e&&cu(s)&&(Tr(!!s.story),this.storyStoreValue.args.updateFromPersisted(s.story,e)),l&&!l.torndown&&!i&&!d&&!a){this.currentRender=l,this.channel.emit(Kg,n),this.view.showMain();return}if(l&&await this.teardownRender(l,{viewModeChanged:a}),c&&(i||a)&&this.channel.emit(Hg,n),cu(s)){Tr(!!s.story);let{parameters:p,initialArgs:f,argTypes:m,unmappedArgs:y,initialGlobals:g,userGlobals:v,storyGlobals:b,globals:T}=this.storyStoreValue.getStoryContext(s.story);this.channel.emit(Gg,{id:n,parameters:p,initialArgs:f,argTypes:m,args:y}),this.channel.emit(hi,{userGlobals:v,storyGlobals:b,globals:T,initialGlobals:g})}else{let{parameters:p}=this.storyStoreValue.projectAnnotations,{initialGlobals:f,globals:m}=this.storyStoreValue.userGlobals;if(this.channel.emit(hi,{globals:m,initialGlobals:f,storyGlobals:{},userGlobals:m}),HH(s)||s.entry.tags?.includes(hr.ATTACHED_MDX)){if(!s.csfFiles)throw new $b({storyId:n});({parameters:p}=this.storyStoreValue.preparedMetaFromCSFFile({csfFile:s.csfFiles[0]}))}this.channel.emit(qg,{id:n,parameters:p})}cu(s)?(Tr(!!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(Pu)}renderStoryLoadingException(e,t){$e.error(t),this.view.showErrorDisplay(t),this.channel.emit(Pu,e)}renderException(e,t){let{name:r="Error",message:n=String(t),stack:o}=t,i=this.currentRender?.renderId;this.channel.emit(Yg,{name:r,message:n,stack:o}),this.channel.emit(wn,{newPhase:"errored",renderId:i,storyId:e}),this.view.showErrorDisplay(t),$e.error(`Error rendering story '${e}':`),$e.error(t)}renderError(e,{title:t,description:r}){let n=this.currentRender?.renderId;this.channel.emit(Vg,{title:t,description:r}),this.channel.emit(wn,{newPhase:"errored",renderId:n,storyId:e}),this.view.showErrorDisplay({message:t,stack:r}),$e.error(`Error rendering story ${t}: ${r}`)}},jc=We(ad(),1),VH=We(ad(),1),My=/^[a-zA-Z0-9 _-]*$/,D0=/^-?[0-9]+(\.[0-9]+)?$/,zH=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,$0=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,kc=(e="",t)=>e===null||e===""||!My.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?My.test(t)||D0.test(t)||zH.test(t)||$0.test(t):Array.isArray(t)?t.every(r=>kc(e,r)):ar(t)?Object.entries(t).every(([r,n])=>kc(r,n)):!1,GH={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($0);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 D0.test(e)?Number(e):e}},jy=e=>{let t=e.split(";").map(r=>r.replace("=","~").replace(":","="));return Object.entries((0,VH.parse)(t.join(";"),GH)).reduce((r,[n,o])=>kc(n,o)?Object.assign(r,{[n]:o}):(Ge.warn(Te`
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:F0,document:Wr}=re;function WH(e){let t=(e||"").match(/^\/story\/(.+)/);if(!t)throw new Error(`Invalid path '${e}', must start with '/story/'`);return t[1]}var B0=({selection:e,extraParams:t})=>{let r=Wr?.location.search.slice(1),{path:n,selectedKind:o,selectedStory:i,...a}=(0,jc.parse)(r);return`?${(0,jc.stringify)({...a,...t,...e&&{id:e.storyId,viewMode:e.viewMode}})}`},YH=e=>{if(!e)return;let t=B0({selection:e}),{hash:r=""}=Wr.location;Wr.title=e.storyId,F0.replaceState({},"",`${Wr.location.pathname}${t}${r}`)},KH=e=>e!=null&&typeof e=="object"&&Array.isArray(e)===!1,di=e=>{if(e!==void 0){if(typeof e=="string")return e;if(Array.isArray(e))return di(e[0]);if(KH(e))return di(Object.values(e).filter(Boolean))}},XH=()=>{if(typeof Wr<"u"){let e=Wr.location.search.slice(1),t=(0,jc.parse)(e),r=typeof t.args=="string"?jy(t.args):void 0,n=typeof t.globals=="string"?jy(t.globals):void 0,o=di(t.viewMode);if(typeof o!="string"||!o)o="story";else if(!o.match(/docs|story/))return null;let i=di(t.path),a=i?WH(i):di(t.id);if(a)return{storySpecifier:a,args:r,globals:n,viewMode:o}}return null},U0=class{constructor(){this.selectionSpecifier=XH()}setSelection(e){this.selection=e,YH(this.selection)}setQueryParams(e){let t=B0({extraParams:e}),{hash:r=""}=Wr.location;F0.replaceState({},"",`${Wr.location.pathname}${t}${r}`)}},QH=We(qP(),1),ZH=We(ad(),1),{document:ct}=re,ky=100,J0=(e=>(e.MAIN="MAIN",e.NOPREVIEW="NOPREVIEW",e.PREPARING_STORY="PREPARING_STORY",e.PREPARING_DOCS="PREPARING_DOCS",e.ERROR="ERROR",e))(J0||{}),du={PREPARING_STORY:"sb-show-preparing-story",PREPARING_DOCS:"sb-show-preparing-docs",MAIN:"sb-show-main",NOPREVIEW:"sb-show-nopreview",ERROR:"sb-show-errordisplay"},pu={centered:"sb-main-centered",fullscreen:"sb-main-fullscreen",padded:"sb-main-padded"},qy=new QH.default({escapeXML:!0}),H0=class{constructor(){if(this.testing=!1,typeof ct<"u"){let{__SPECIAL_TEST_PARAMETER__:e}=(0,ZH.parse)(ct.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),ct.documentElement.scrollTop=0,ct.documentElement.scrollLeft=0,this.storyRoot()}storyRoot(){return ct.getElementById("storybook-root")}prepareForDocs(){return this.showMain(),this.showDocs(),this.applyLayout("fullscreen"),ct.documentElement.scrollTop=0,ct.documentElement.scrollLeft=0,this.docsRoot()}docsRoot(){return ct.getElementById("storybook-docs")}applyLayout(e="padded"){if(e==="none"){ct.body.classList.remove(this.currentLayoutClass),this.currentLayoutClass=null;return}this.checkIfLayoutExists(e);let t=pu[e];ct.body.classList.remove(this.currentLayoutClass),ct.body.classList.add(t),this.currentLayoutClass=t}checkIfLayoutExists(e){pu[e]||$e.warn(Te`
921
+ The desired layout: ${e} is not a valid option.
922
+ The possible options are: ${Object.keys(pu).join(", ")}, none.
923
+ `)}showMode(e){clearTimeout(this.preparingTimeout),Object.keys(J0).forEach(t=>{t===e?ct.body.classList.add(du[t]):ct.body.classList.remove(du[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/,"")),ct.getElementById("error-message").innerHTML=qy.toHtml(r),ct.getElementById("error-stack").innerHTML=qy.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"),ky)}showPreparingDocs({immediate:e=!1}={}){clearTimeout(this.preparingTimeout),e?this.showMode("PREPARING_DOCS"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_DOCS"),ky)}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(){ct.body.classList.add(du.MAIN)}},eV=class extends L0{constructor(t,r){super(t,r,new U0,new H0),this.importFn=t,this.getProjectAnnotations=r,re.__STORYBOOK_PREVIEW__=this}},{document:En}=re,tV=["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"],rV="script",Ly="scripts-root";function qc(){let e=En.createEvent("Event");e.initEvent("DOMContentLoaded",!0,!0),En.dispatchEvent(e)}function nV(e,t,r){let n=En.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):En.head.appendChild(n),e.parentNode.removeChild(e),e.src||t()}function V0(e,t,r=0){e[r](()=>{r++,r===e.length?t():V0(e,t,r)})}function oV(e){let t=En.getElementById(Ly);t?t.innerHTML="":(t=En.createElement("div"),t.id=Ly,En.body.appendChild(t));let r=Array.from(e.querySelectorAll(rV));if(r.length){let n=[];r.forEach(o=>{let i=o.getAttribute("type");(!i||tV.includes(i))&&n.push(a=>nV(o,a,t))}),n.length&&V0(n,qc,void 0)}else qc()}var fu;(function(e){e.start="/**",e.nostart="/***",e.delim="*",e.end="*/"})(fu=fu||(fu={}));var iV=We(LP(),1),jn=(0,iV.stringifyRules)(),aV=jn.JsdocTypeObject;jn.JsdocTypeAny=()=>"any";jn.JsdocTypeObject=(e,t)=>`(${aV(e,t)})`;jn.JsdocTypeOptional=(e,t)=>t(e.element);jn.JsdocTypeNullable=(e,t)=>t(e.element);jn.JsdocTypeNotNullable=(e,t)=>t(e.element);jn.JsdocTypeUnion=(e,t)=>e.elements.map(t).join("|");var sV="storybook/docs",lV=`${sV}/snippet-rendered`;async function uV(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;$t.getChannel().emit(lV,{id:n,source:a,args:o})}var ki={depth:10,clearOnStoryChange:!0,limit:50},cV=(e={})=>{Object.assign(ki,e)},z0=(e,t)=>{let r=Object.getPrototypeOf(e);return!r||t(r)?r:z0(r,t)},dV=e=>!!(typeof e=="object"&&e&&z0(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),pV=e=>{if(dV(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 na(e,t={}){let r={...ki,...t},n=function(...o){if(t.implicit){let p=("__STORYBOOK_PREVIEW__"in re?re.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(f=>f.phase==="playing"||f.phase==="rendering");if(p){let f=!globalThis?.FEATURES?.disallowImplicitActionsInRenderV8,m=new kb({phase:p.phase,name:e,deprecated:f});if(f)console.warn(m);else throw m}}let i=$t.getChannel(),a=Date.now().toString(36)+Math.random().toString(36).substring(2),s=5,c=o.map(pV),l=o.length>1?c:c[0],d={id:a,count:0,data:{name:e,args:l},options:{...r,maxDepth:s+(r.depth||3)}};i.emit(tv,d)};return n.isAction=!0,n.implicit=t.implicit,n}var fV=(...e)=>{let t=ki,r=e;r.length===1&&Array.isArray(r[0])&&([r]=r),r.length!==1&&typeof r[r.length-1]!="string"&&(t={...ki,...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]=na(n[i],t)}),o},mV={"@storybook/global":rb,"storybook/test":pv,"storybook/actions":ev,"storybook/preview-api":Mu,"storybook/internal/channels":ob,"storybook/internal/client-logger":ib,"storybook/internal/core-events":sd,"storybook/internal/types":zb,"storybook/internal/preview-errors":Nb,"storybook/internal/preview-api":Mu};async function hV(){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}yV(t,r)}var yV=async(e,t)=>{let r={entries:{}};for(let s of Object.values(e.entries)){let c=s.title.split("/"),l=r;for(let d of c)l.entries||(l.entries={}),l.entries[d]?t===s.id&&(l.entries[d].isActive=!0):l.entries[d]={title:d,isActive:t===s.id,entries:{}},l=l.entries[d];l.entries||(l.entries={}),l.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 l=s;return`
926
+ <li class="sb-navigator-branch">
927
+ <details${l.isActive?" open":""}>
928
+ <summary class="sb-navigator-title">
929
+ ${l.title}
930
+ </summary>
931
+ <ul class="sb-navigator-entries" aria-label="${l.title}">
932
+ ${Object.values(l.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"})},gV=We(DP(),1),mu;function bV(){return mu||(mu=new gV.default(re.navigator?.userAgent).getBrowserInfo()),mu}function vV(e){return e.browserInfo=bV(),e}function EV(e){let t=e.error||e;t.fromStorybook&&re.sendTelemetryError(t)}function wV({reason:e}){e.fromStorybook&&re.sendTelemetryError(e)}function G0(){yC.forEach(e=>{re[nb[e]]=mV[e]}),re.sendTelemetryError=e=>{re.__STORYBOOK_ADDONS_CHANNEL__.emit(Zg,vV(e))},document.addEventListener("DOMContentLoaded",()=>{re.__STORYBOOK_ADDONS_CHANNEL__.on(tb,e=>{e?document.body.setAttribute("inert","true"):document.body.removeAttribute("inert")})}),re.addEventListener("error",EV),re.addEventListener("unhandledrejection",wV),hV()}G0();const{createBrowserChannel:_V}=__STORYBOOK_MODULE_CHANNELS__,{addons:TV}=__STORYBOOK_MODULE_PREVIEW_API__,of=_V({page:"preview"});TV.setChannel(of);window.__STORYBOOK_ADDONS_CHANNEL__=of;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=of);var SV=Object.create,af=Object.defineProperty,AV=Object.getOwnPropertyDescriptor,W0=Object.getOwnPropertyNames,RV=Object.getPrototypeOf,OV=Object.prototype.hasOwnProperty,Oa=(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')}),oa=(e,t)=>function(){return t||(0,e[W0(e)[0]])((t={exports:{}}).exports,t),t.exports},m8=(e,t)=>{for(var r in t)af(e,r,{get:t[r],enumerable:!0})},xV=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of W0(t))!OV.call(e,o)&&o!==r&&af(e,o,{get:()=>t[o],enumerable:!(n=AV(t,o))||n.enumerable});return e},pl=(e,t,r)=>(r=e!=null?SV(RV(e)):{},xV(t||!e||!e.__esModule?af(r,"default",{value:e,enumerable:!0}):r,e));function hu(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 h8(e){return e==null||typeof e!="object"&&typeof e!="function"}function y8(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function g8(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function b8(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var v8="[object RegExp]",E8="[object String]",w8="[object Number]",_8="[object Boolean]",T8="[object Arguments]",S8="[object Symbol]",A8="[object Date]",R8="[object Map]",O8="[object Set]",x8="[object Array]",P8="[object Function]",C8="[object ArrayBuffer]",N8="[object Object]",I8="[object Error]",M8="[object DataView]",j8="[object Uint8Array]",k8="[object Uint8ClampedArray]",q8="[object Uint16Array]",L8="[object Uint32Array]",D8="[object BigUint64Array]",$8="[object Int8Array]",F8="[object Int16Array]",B8="[object Int32Array]",U8="[object BigInt64Array]",J8="[object Float32Array]",H8="[object Float64Array]",PV=oa({"../../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(u){return u.text!==void 0&&u.text!==""?`'${u.type}' with value '${u.text}'`:`'${u.type}'`}class o extends Error{constructor(h){super(`No parslet found for token: ${n(h)}`),this.token=h,Object.setPrototypeOf(this,o.prototype)}getToken(){return this.token}}class i extends Error{constructor(h){super(`The parsing ended early. The next token was: ${n(h)}`),this.token=h,Object.setPrototypeOf(this,i.prototype)}getToken(){return this.token}}class a extends Error{constructor(h,w){let P=`Unexpected type: '${h.type}'.`;w!==void 0&&(P+=` Message: ${w}`),super(P),Object.setPrototypeOf(this,a.prototype)}}function s(u){return h=>h.startsWith(u)?{type:u,text:u}:null}function c(u){let h=0,w,P=u[0],U=!1;if(P!=="'"&&P!=='"')return null;for(;h<u.length;){if(h++,w=u[h],!U&&w===P){h++;break}U=!U&&w==="\\"}if(w!==P)throw new Error("Unterminated String");return u.slice(0,h)}let l=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(u){let h=u[0];if(!l.test(h))return null;let w=1;do{if(h=u[w],!d.test(h))break;w++}while(w<u.length);return u.slice(0,w)}let f=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function m(u){var h,w;return(w=(h=f.exec(u))===null||h===void 0?void 0:h[0])!==null&&w!==void 0?w:null}let y=u=>{let h=p(u);return h==null?null:{type:"Identifier",text:h}};function g(u){return h=>{if(!h.startsWith(u))return null;let w=h[u.length];return w!==void 0&&d.test(w)?null:{type:u,text:u}}}let v=u=>{let h=c(u);return h==null?null:{type:"StringValue",text:h}},b=u=>u.length>0?null:{type:"EOF",text:""},T=u=>{let h=m(u);return h===null?null:{type:"Number",text:h}},R=[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"),T,y,v],x=/^\s*\n\s*/;class C{static create(h){let w=this.read(h);h=w.text;let P=this.read(h);return h=P.text,new C(h,void 0,w.token,P.token)}constructor(h,w,P,U){this.text="",this.text=h,this.previous=w,this.current=P,this.next=U}static read(h,w=!1){w=w||x.test(h),h=h.trim();for(let P of R){let U=P(h);if(U!==null){let W=Object.assign(Object.assign({},U),{startOfLine:w});return h=h.slice(W.text.length),{text:h,token:W}}}throw new Error("Unexpected Token "+h)}advance(){let h=C.read(this.text);return new C(h.text,this.current,this.next,h.token)}}function E(u){if(u===void 0)throw new Error("Unexpected undefined");if(u.type==="JsdocTypeKeyValue"||u.type==="JsdocTypeParameterList"||u.type==="JsdocTypeProperty"||u.type==="JsdocTypeReadonlyProperty"||u.type==="JsdocTypeObjectField"||u.type==="JsdocTypeJsdocObjectField"||u.type==="JsdocTypeIndexSignature"||u.type==="JsdocTypeMappedType"||u.type==="JsdocTypeTypeParameter")throw new a(u);return u}function _(u){return u.type==="JsdocTypeKeyValue"?A(u):E(u)}function S(u){return u.type==="JsdocTypeName"?u:A(u)}function A(u){if(u.type!=="JsdocTypeKeyValue")throw new a(u);return u}function $(u){var h;if(u.type==="JsdocTypeVariadic"){if(((h=u.element)===null||h===void 0?void 0:h.type)==="JsdocTypeName")return u;throw new a(u)}if(u.type!=="JsdocTypeNumber"&&u.type!=="JsdocTypeName")throw new a(u);return u}function k(u){if(u.type==="JsdocTypeTuple"||u.type==="JsdocTypeGeneric"&&u.meta.brackets==="square")return u;throw new a(u)}function H(u){return u.type==="JsdocTypeIndexSignature"||u.type==="JsdocTypeMappedType"}var I;(function(u){u[u.ALL=0]="ALL",u[u.PARAMETER_LIST=1]="PARAMETER_LIST",u[u.OBJECT=2]="OBJECT",u[u.KEY_VALUE=3]="KEY_VALUE",u[u.INDEX_BRACKETS=4]="INDEX_BRACKETS",u[u.UNION=5]="UNION",u[u.INTERSECTION=6]="INTERSECTION",u[u.PREFIX=7]="PREFIX",u[u.INFIX=8]="INFIX",u[u.TUPLE=9]="TUPLE",u[u.SYMBOL=10]="SYMBOL",u[u.OPTIONAL=11]="OPTIONAL",u[u.NULLABLE=12]="NULLABLE",u[u.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",u[u.FUNCTION=14]="FUNCTION",u[u.ARROW=15]="ARROW",u[u.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",u[u.GENERIC=17]="GENERIC",u[u.NAME_PATH=18]="NAME_PATH",u[u.PARENTHESIS=19]="PARENTHESIS",u[u.SPECIAL_TYPES=20]="SPECIAL_TYPES"})(I||(I={}));class O{constructor(h,w,P){this.grammar=h,typeof w=="string"?this._lexer=C.create(w):this._lexer=w,this.baseParser=P}get lexer(){return this._lexer}parse(){let h=this.parseType(I.ALL);if(this.lexer.current.type!=="EOF")throw new i(this.lexer.current);return h}parseType(h){return E(this.parseIntermediateType(h))}parseIntermediateType(h){let w=this.tryParslets(null,h);if(w===null)throw new o(this.lexer.current);return this.parseInfixIntermediateType(w,h)}parseInfixIntermediateType(h,w){let P=this.tryParslets(h,w);for(;P!==null;)h=P,P=this.tryParslets(h,w);return h}tryParslets(h,w){for(let P of this.grammar){let U=P(this,w,h);if(U!==null)return U}return null}consume(h){return Array.isArray(h)||(h=[h]),h.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(h){this._lexer=h.lexer}}function q(u){return u==="}"||u==="EOF"||u==="|"||u===","||u===")"||u===">"}let F=(u,h,w)=>{let P=u.lexer.current.type,U=u.lexer.next.type;return w==null&&P==="?"&&!q(U)||w!=null&&P==="?"?(u.consume("?"),w==null?{type:"JsdocTypeNullable",element:u.parseType(I.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:E(w),meta:{position:"suffix"}}):null};function V(u){let h=(w,P,U)=>{let W=w.lexer.current.type,Z=w.lexer.next.type;if(U===null){if("parsePrefix"in u&&u.accept(W,Z))return u.parsePrefix(w)}else if("parseInfix"in u&&u.precedence>P&&u.accept(W,Z))return u.parseInfix(w,U);return null};return Object.defineProperty(h,"name",{value:u.name}),h}let K=V({name:"optionalParslet",accept:u=>u==="=",precedence:I.OPTIONAL,parsePrefix:u=>(u.consume("="),{type:"JsdocTypeOptional",element:u.parseType(I.OPTIONAL),meta:{position:"prefix"}}),parseInfix:(u,h)=>(u.consume("="),{type:"JsdocTypeOptional",element:E(h),meta:{position:"suffix"}})}),oe=V({name:"numberParslet",accept:u=>u==="Number",parsePrefix:u=>{let h=parseFloat(u.lexer.current.text);return u.consume("Number"),{type:"JsdocTypeNumber",value:h}}}),ue=V({name:"parenthesisParslet",accept:u=>u==="(",parsePrefix:u=>{if(u.consume("("),u.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let h=u.parseIntermediateType(I.ALL);if(!u.consume(")"))throw new Error("Unterminated parenthesis");return h.type==="JsdocTypeParameterList"?h:h.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[h]}:{type:"JsdocTypeParenthesis",element:E(h)}}}),L=V({name:"specialTypesParslet",accept:(u,h)=>u==="?"&&q(h)||u==="null"||u==="undefined"||u==="*",parsePrefix:u=>{if(u.consume("null"))return{type:"JsdocTypeNull"};if(u.consume("undefined"))return{type:"JsdocTypeUndefined"};if(u.consume("*"))return{type:"JsdocTypeAny"};if(u.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+u.lexer.current.text)}}),D=V({name:"notNullableParslet",accept:u=>u==="!",precedence:I.NULLABLE,parsePrefix:u=>(u.consume("!"),{type:"JsdocTypeNotNullable",element:u.parseType(I.NULLABLE),meta:{position:"prefix"}}),parseInfix:(u,h)=>(u.consume("!"),{type:"JsdocTypeNotNullable",element:E(h),meta:{position:"suffix"}})});function G({allowTrailingComma:u}){return V({name:"parameterListParslet",accept:h=>h===",",precedence:I.PARAMETER_LIST,parseInfix:(h,w)=>{let P=[_(w)];h.consume(",");do try{let U=h.parseIntermediateType(I.PARAMETER_LIST);P.push(_(U))}catch(U){if(U instanceof o)break;throw U}while(h.consume(","));if(P.length>0&&P.slice(0,-1).some(U=>U.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:P}}})}let Q=V({name:"genericParslet",accept:(u,h)=>u==="<"||u==="."&&h==="<",precedence:I.GENERIC,parseInfix:(u,h)=>{let w=u.consume(".");u.consume("<");let P=[],U=!1;if(u.consume("infer")){U=!0;let W=u.parseIntermediateType(I.SYMBOL);if(W.type!=="JsdocTypeName")throw new a(W,"A typescript asserts always has to have a name on the left side.");P.push(W)}else do P.push(u.parseType(I.PARAMETER_LIST));while(u.consume(","));if(!u.consume(">"))throw new Error("Unterminated generic parameter list");return Object.assign(Object.assign({type:"JsdocTypeGeneric",left:E(h),elements:P},U?{infer:!0}:{}),{meta:{brackets:"angle",dot:w}})}}),X=V({name:"unionParslet",accept:u=>u==="|",precedence:I.UNION,parseInfix:(u,h)=>{u.consume("|");let w=[];do w.push(u.parseType(I.UNION));while(u.consume("|"));return{type:"JsdocTypeUnion",elements:[E(h),...w]}}}),Y=[F,K,oe,ue,L,D,G({allowTrailingComma:!0}),Q,X,K];function ie({allowSquareBracketsOnAnyType:u,allowJsdocNamePaths:h,pathGrammar:w}){return function(P,U,W){if(W==null||U>=I.NAME_PATH)return null;let Z=P.lexer.current.type,fe=P.lexer.next.type;if(!(Z==="."&&fe!=="<"||Z==="["&&(u||W.type==="JsdocTypeName")||h&&(Z==="~"||Z==="#")))return null;let me,Ae=!1;P.consume(".")?me="property":P.consume("[")?(me="property-brackets",Ae=!0):P.consume("~")?me="inner":(P.consume("#"),me="instance");let et=w!==null?new O(w,P.lexer,P):P,Je=et.parseIntermediateType(I.NAME_PATH);P.acceptLexerState(et);let Jt;switch(Je.type){case"JsdocTypeName":Jt={type:"JsdocTypeProperty",value:Je.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":Jt={type:"JsdocTypeProperty",value:Je.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":Jt={type:"JsdocTypeProperty",value:Je.value,meta:{quote:Je.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(Je.specialType==="event")Jt=Je;else throw new a(Je,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new a(Je,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(Ae&&!P.consume("]")){let Uo=P.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${Uo.type}' with text '${Uo.text}'`)}return{type:"JsdocTypeNamePath",left:E(W),right:Jt,pathType:me}}}function se({allowedAdditionalTokens:u}){return V({name:"nameParslet",accept:h=>h==="Identifier"||h==="this"||h==="new"||u.includes(h),parsePrefix:h=>{let{type:w,text:P}=h.lexer.current;return h.consume(w),{type:"JsdocTypeName",value:P}}})}let _e=V({name:"stringValueParslet",accept:u=>u==="StringValue",parsePrefix:u=>{let h=u.lexer.current.text;return u.consume("StringValue"),{type:"JsdocTypeStringValue",value:h.slice(1,-1),meta:{quote:h[0]==="'"?"single":"double"}}}});function B({pathGrammar:u,allowedTypes:h}){return V({name:"specialNamePathParslet",accept:w=>h.includes(w),parsePrefix:w=>{let P=w.lexer.current.type;if(w.consume(P),!w.consume(":"))return{type:"JsdocTypeName",value:P};let U,W=w.lexer.current;if(w.consume("StringValue"))U={type:"JsdocTypeSpecialNamePath",value:W.text.slice(1,-1),specialType:P,meta:{quote:W.text[0]==="'"?"single":"double"}};else{let me="",Ae=["Identifier","@","/"];for(;Ae.some(et=>w.consume(et));)me+=W.text,W=w.lexer.current;U={type:"JsdocTypeSpecialNamePath",value:me,specialType:P,meta:{quote:void 0}}}let Z=new O(u,w.lexer,w),fe=Z.parseInfixIntermediateType(U,I.ALL);return w.acceptLexerState(Z),E(fe)}})}let te=[se({allowedAdditionalTokens:["external","module"]}),_e,oe,ie({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],ne=[...te,B({allowedTypes:["event"],pathGrammar:te})];function ae(u){let h;if(u.type==="JsdocTypeParameterList")h=u.elements;else if(u.type==="JsdocTypeParenthesis")h=[u.element];else throw new a(u);return h.map(w=>_(w))}function ce(u){let h=ae(u);if(h.some(w=>w.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return h}function de({allowNamedParameters:u,allowNoReturnType:h,allowWithoutParenthesis:w,allowNewAsFunctionKeyword:P}){return V({name:"functionParslet",accept:(U,W)=>U==="function"||P&&U==="new"&&W==="(",parsePrefix:U=>{let W=U.consume("new");U.consume("function");let Z=U.lexer.current.type==="(";if(!Z){if(!w)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let fe={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:W,parenthesis:Z},me=U.parseIntermediateType(I.FUNCTION);if(u===void 0)fe.parameters=ce(me);else{if(W&&me.type==="JsdocTypeFunction"&&me.arrow)return fe=me,fe.constructor=!0,fe;fe.parameters=ae(me);for(let Ae of fe.parameters)if(Ae.type==="JsdocTypeKeyValue"&&!u.includes(Ae.key))throw new Error(`only allowed named parameters are ${u.join(", ")} but got ${Ae.type}`)}if(U.consume(":"))fe.returnType=U.parseType(I.PREFIX);else if(!h)throw new Error("function is missing return type");return fe}})}function ye({allowPostfix:u,allowEnclosingBrackets:h}){return V({name:"variadicParslet",accept:w=>w==="...",precedence:I.PREFIX,parsePrefix:w=>{w.consume("...");let P=h&&w.consume("[");try{let U=w.parseType(I.PREFIX);if(P&&!w.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:E(U),meta:{position:"prefix",squareBrackets:P}}}catch(U){if(U instanceof o){if(P)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw U}},parseInfix:u?(w,P)=>(w.consume("..."),{type:"JsdocTypeVariadic",element:E(P),meta:{position:"suffix",squareBrackets:!1}}):void 0})}let ve=V({name:"symbolParslet",accept:u=>u==="(",precedence:I.SYMBOL,parseInfix:(u,h)=>{if(h.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");u.consume("(");let w={type:"JsdocTypeSymbol",value:h.value};if(!u.consume(")")){let P=u.parseIntermediateType(I.SYMBOL);if(w.element=$(P),!u.consume(")"))throw new Error("Symbol does not end after value")}return w}}),Ue=V({name:"arrayBracketsParslet",precedence:I.ARRAY_BRACKETS,accept:(u,h)=>u==="["&&h==="]",parseInfix:(u,h)=>(u.consume("["),u.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[E(h)],meta:{brackets:"square",dot:!1}})});function gt({objectFieldGrammar:u,allowKeyTypes:h}){return V({name:"objectParslet",accept:w=>w==="{",parsePrefix:w=>{w.consume("{");let P={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!w.consume("}")){let U,W=new O(u,w.lexer,w);for(;;){W.acceptLexerState(w);let Z=W.parseIntermediateType(I.OBJECT);w.acceptLexerState(W),Z===void 0&&h&&(Z=w.parseIntermediateType(I.OBJECT));let fe=!1;if(Z.type==="JsdocTypeNullable"&&(fe=!0,Z=Z.element),Z.type==="JsdocTypeNumber"||Z.type==="JsdocTypeName"||Z.type==="JsdocTypeStringValue"){let me;Z.type==="JsdocTypeStringValue"&&(me=Z.meta.quote),P.elements.push({type:"JsdocTypeObjectField",key:Z.value.toString(),right:void 0,optional:fe,readonly:!1,meta:{quote:me}})}else if(Z.type==="JsdocTypeObjectField"||Z.type==="JsdocTypeJsdocObjectField")P.elements.push(Z);else throw new a(Z);if(w.lexer.current.startOfLine)U="linebreak",w.consume(",")||w.consume(";");else if(w.consume(","))U="comma";else if(w.consume(";"))U="semicolon";else break;if(w.lexer.current.type==="}")break}if(P.meta.separator=U??"comma",U==="linebreak"&&(P.meta.propertyIndent=" "),!w.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return P}})}function ut({allowSquaredProperties:u,allowKeyTypes:h,allowReadonly:w,allowOptional:P}){return V({name:"objectFieldParslet",precedence:I.KEY_VALUE,accept:U=>U===":",parseInfix:(U,W)=>{var Z;let fe=!1,me=!1;P&&W.type==="JsdocTypeNullable"&&(fe=!0,W=W.element),w&&W.type==="JsdocTypeReadonlyProperty"&&(me=!0,W=W.element);let Ae=(Z=U.baseParser)!==null&&Z!==void 0?Z:U;if(Ae.acceptLexerState(U),W.type==="JsdocTypeNumber"||W.type==="JsdocTypeName"||W.type==="JsdocTypeStringValue"||H(W)){if(H(W)&&!u)throw new a(W);Ae.consume(":");let et;W.type==="JsdocTypeStringValue"&&(et=W.meta.quote);let Je=Ae.parseType(I.KEY_VALUE);return U.acceptLexerState(Ae),{type:"JsdocTypeObjectField",key:H(W)?W:W.value.toString(),right:Je,optional:fe,readonly:me,meta:{quote:et}}}else{if(!h)throw new a(W);Ae.consume(":");let et=Ae.parseType(I.KEY_VALUE);return U.acceptLexerState(Ae),{type:"JsdocTypeJsdocObjectField",left:E(W),right:et}}}})}function bt({allowOptional:u,allowVariadic:h}){return V({name:"keyValueParslet",precedence:I.KEY_VALUE,accept:w=>w===":",parseInfix:(w,P)=>{let U=!1,W=!1;if(u&&P.type==="JsdocTypeNullable"&&(U=!0,P=P.element),h&&P.type==="JsdocTypeVariadic"&&P.element!==void 0&&(W=!0,P=P.element),P.type!=="JsdocTypeName")throw new a(P);w.consume(":");let Z=w.parseType(I.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:P.value,right:Z,optional:U,variadic:W}}})}let ot=[...Y,de({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),_e,B({allowedTypes:["module","external","event"],pathGrammar:ne}),ye({allowEnclosingBrackets:!0,allowPostfix:!0}),se({allowedAdditionalTokens:["keyof"]}),ve,Ue,ie({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:ne})],Xt=[...ot,gt({objectFieldGrammar:[se({allowedAdditionalTokens:["typeof","module","in"]}),ut({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...ot],allowKeyTypes:!0}),bt({allowOptional:!0,allowVariadic:!0})],Mt=V({name:"typeOfParslet",accept:u=>u==="typeof",parsePrefix:u=>(u.consume("typeof"),{type:"JsdocTypeTypeof",element:u.parseType(I.KEY_OF_TYPE_OF)})}),Qt=[se({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),F,K,_e,oe,ut({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],So=[...Y,gt({allowKeyTypes:!1,objectFieldGrammar:Qt}),se({allowedAdditionalTokens:["event","external","in"]}),Mt,de({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),ye({allowEnclosingBrackets:!1,allowPostfix:!1}),se({allowedAdditionalTokens:["keyof"]}),B({allowedTypes:["module"],pathGrammar:ne}),ie({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:ne}),bt({allowOptional:!1,allowVariadic:!1}),ve],Ao=V({name:"assertsParslet",accept:u=>u==="asserts",parsePrefix:u=>{u.consume("asserts");let h=u.parseIntermediateType(I.SYMBOL);if(h.type!=="JsdocTypeName")throw new a(h,"A typescript asserts always has to have a name on the left side.");return u.consume("is")?{type:"JsdocTypeAsserts",left:h,right:E(u.parseIntermediateType(I.INFIX))}:{type:"JsdocTypeAssertsPlain",element:h}}});function Ro({allowQuestionMark:u}){return V({name:"tupleParslet",accept:h=>h==="[",parsePrefix:h=>{h.consume("[");let w={type:"JsdocTypeTuple",elements:[]};if(h.consume("]"))return w;let P=h.parseIntermediateType(I.ALL);if(P.type==="JsdocTypeParameterList"?P.elements[0].type==="JsdocTypeKeyValue"?w.elements=P.elements.map(A):w.elements=P.elements.map(E):P.type==="JsdocTypeKeyValue"?w.elements=[A(P)]:w.elements=[E(P)],!h.consume("]"))throw new Error("Unterminated '['");if(w.elements.some(U=>U.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return w}})}let Oo=V({name:"keyOfParslet",accept:u=>u==="keyof",parsePrefix:u=>(u.consume("keyof"),{type:"JsdocTypeKeyof",element:E(u.parseType(I.KEY_OF_TYPE_OF))})}),xo=V({name:"importParslet",accept:u=>u==="import",parsePrefix:u=>{if(u.consume("import"),!u.consume("("))throw new Error("Missing parenthesis after import keyword");let h=u.parseType(I.PREFIX);if(h.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!u.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:h}}}),Po=V({name:"readonlyPropertyParslet",accept:u=>u==="readonly",parsePrefix:u=>(u.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:u.parseIntermediateType(I.KEY_VALUE)})}),Co=V({name:"arrowFunctionParslet",precedence:I.ARROW,accept:u=>u==="=>",parseInfix:(u,h)=>(u.consume("=>"),{type:"JsdocTypeFunction",parameters:ae(h).map(S),arrow:!0,constructor:!1,parenthesis:!0,returnType:u.parseType(I.OBJECT)})}),No=V({name:"genericArrowFunctionParslet",accept:u=>u==="<",parsePrefix:u=>{let h=[];u.consume("<");do{let P,U=u.parseIntermediateType(I.SYMBOL);if(U.type==="JsdocTypeOptional"&&(U=U.element,P=u.parseType(I.SYMBOL)),U.type!=="JsdocTypeName")throw new a(U);let W;u.consume("extends")&&(W=u.parseType(I.SYMBOL),W.type==="JsdocTypeOptional"&&(W=W.element,P=u.parseType(I.SYMBOL)));let Z={type:"JsdocTypeTypeParameter",name:U};if(W!==void 0&&(Z.constraint=W),P!==void 0&&(Z.defaultValue=P),h.push(Z),u.consume(">"))break}while(u.consume(","));let w=u.parseIntermediateType(I.SYMBOL);return w.typeParameters=h,w}}),Io=V({name:"intersectionParslet",accept:u=>u==="&",precedence:I.INTERSECTION,parseInfix:(u,h)=>{u.consume("&");let w=[];do w.push(u.parseType(I.INTERSECTION));while(u.consume("&"));return{type:"JsdocTypeIntersection",elements:[E(h),...w]}}}),Mo=V({name:"predicateParslet",precedence:I.INFIX,accept:u=>u==="is",parseInfix:(u,h)=>{if(h.type!=="JsdocTypeName")throw new a(h,"A typescript predicate always has to have a name on the left side.");return u.consume("is"),{type:"JsdocTypePredicate",left:h,right:E(u.parseIntermediateType(I.INFIX))}}}),jo=V({name:"objectSquareBracketPropertyParslet",accept:u=>u==="[",parsePrefix:u=>{if(u.baseParser===void 0)throw new Error("Only allowed inside object grammar");u.consume("[");let h=u.lexer.current.text;u.consume("Identifier");let w;if(u.consume(":")){let P=u.baseParser;P.acceptLexerState(u),w={type:"JsdocTypeIndexSignature",key:h,right:P.parseType(I.INDEX_BRACKETS)},u.acceptLexerState(P)}else if(u.consume("in")){let P=u.baseParser;P.acceptLexerState(u),w={type:"JsdocTypeMappedType",key:h,right:P.parseType(I.ARRAY_BRACKETS)},u.acceptLexerState(P)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!u.consume("]"))throw new Error("Unterminated square brackets");return w}}),ko=V({name:"readonlyArrayParslet",accept:u=>u==="readonly",parsePrefix:u=>(u.consume("readonly"),{type:"JsdocTypeReadonlyArray",element:k(u.parseIntermediateType(I.ALL))})}),qo=V({name:"conditionalParslet",precedence:I.INFIX,accept:u=>u==="extends",parseInfix:(u,h)=>{u.consume("extends");let w=u.parseType(I.KEY_OF_TYPE_OF).element,P=u.parseType(I.INFIX);return u.consume(":"),{type:"JsdocTypeConditional",checksType:E(h),extendsType:w,trueType:P,falseType:u.parseType(I.INFIX)}}}),Lo=[Po,se({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),F,K,_e,oe,ut({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),jo],Do=[...Y,gt({allowKeyTypes:!1,objectFieldGrammar:Lo}),ko,Mt,Oo,xo,_e,de({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),Ro({allowQuestionMark:!1}),ye({allowEnclosingBrackets:!1,allowPostfix:!1}),Ao,qo,se({allowedAdditionalTokens:["event","external","in"]}),B({allowedTypes:["module"],pathGrammar:ne}),Ue,Co,No,ie({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:ne}),Io,Mo,bt({allowVariadic:!0,allowOptional:!0})];function tn(u,h){switch(h){case"closure":return new O(So,u).parse();case"jsdoc":return new O(Xt,u).parse();case"typescript":return new O(Do,u).parse()}}function $o(u,h=["typescript","closure","jsdoc"]){let w;for(let P of h)try{return tn(u,P)}catch(U){w=U}throw w}function St(u,h){let w=u[h.type];if(w===void 0)throw new Error(`In this set of transform rules exists no rule for type ${h.type}.`);return w(h,P=>St(u,P))}function pe(u){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}function rn(u){let h={params:[]};for(let w of u.parameters)w.type==="JsdocTypeKeyValue"?w.key==="this"?h.this=w.right:w.key==="new"?h.new=w.right:h.params.push(w):h.params.push(w);return h}function Ut(u,h,w){return u==="prefix"?w+h:h+w}function Ze(u,h){switch(h){case"double":return`"${u}"`;case"single":return`'${u}'`;case void 0:return u}}function ee(){return{JsdocTypeParenthesis:(u,h)=>`(${u.element!==void 0?h(u.element):""})`,JsdocTypeKeyof:(u,h)=>`keyof ${h(u.element)}`,JsdocTypeFunction:(u,h)=>{var w;if(u.arrow){if(u.returnType===void 0)throw new Error("Arrow function needs a return type.");let P=`${u.typeParameters!==void 0?`<${(w=u.typeParameters.map(h).join(", "))!==null&&w!==void 0?w:""}>`:""}(${u.parameters.map(h).join(", ")}) => ${h(u.returnType)}`;return u.constructor&&(P="new "+P),P}else{let P=u.constructor?"new":"function";return u.parenthesis&&(P+=`(${u.parameters.map(h).join(", ")})`,u.returnType!==void 0&&(P+=`: ${h(u.returnType)}`)),P}},JsdocTypeName:u=>u.value,JsdocTypeTuple:(u,h)=>`[${u.elements.map(h).join(", ")}]`,JsdocTypeVariadic:(u,h)=>u.meta.position===void 0?"...":Ut(u.meta.position,h(u.element),"..."),JsdocTypeNamePath:(u,h)=>{let w=h(u.left),P=h(u.right);switch(u.pathType){case"inner":return`${w}~${P}`;case"instance":return`${w}#${P}`;case"property":return`${w}.${P}`;case"property-brackets":return`${w}[${P}]`}},JsdocTypeStringValue:u=>Ze(u.value,u.meta.quote),JsdocTypeAny:()=>"*",JsdocTypeGeneric:(u,h)=>{if(u.meta.brackets==="square"){let w=u.elements[0],P=h(w);return w.type==="JsdocTypeUnion"||w.type==="JsdocTypeIntersection"?`(${P})[]`:`${P}[]`}else return`${h(u.left)}${u.meta.dot?".":""}<${u.infer===!0?"infer ":""}${u.elements.map(h).join(", ")}>`},JsdocTypeImport:(u,h)=>`import(${h(u.element)})`,JsdocTypeObjectField:(u,h)=>{let w="";return u.readonly&&(w+="readonly "),typeof u.key=="string"?w+=Ze(u.key,u.meta.quote):w+=h(u.key),u.optional&&(w+="?"),u.right===void 0?w:w+`: ${h(u.right)}`},JsdocTypeJsdocObjectField:(u,h)=>`${h(u.left)}: ${h(u.right)}`,JsdocTypeKeyValue:(u,h)=>{let w=u.key;return u.optional&&(w+="?"),u.variadic&&(w="..."+w),u.right===void 0?w:w+`: ${h(u.right)}`},JsdocTypeSpecialNamePath:u=>`${u.specialType}:${Ze(u.value,u.meta.quote)}`,JsdocTypeNotNullable:(u,h)=>Ut(u.meta.position,h(u.element),"!"),JsdocTypeNull:()=>"null",JsdocTypeNullable:(u,h)=>Ut(u.meta.position,h(u.element),"?"),JsdocTypeNumber:u=>u.value.toString(),JsdocTypeObject:(u,h)=>{var w,P;return`{${(u.meta.separator==="linebreak"&&u.elements.length>1?`
1014
+ `+((w=u.meta.propertyIndent)!==null&&w!==void 0?w:""):"")+u.elements.map(h).join(u.meta.separator==="comma"?", ":u.meta.separator==="linebreak"?`
1015
+ `+((P=u.meta.propertyIndent)!==null&&P!==void 0?P:""):"; ")+(u.meta.separator==="linebreak"&&u.elements.length>1?`
1016
+ `:"")}}`},JsdocTypeOptional:(u,h)=>Ut(u.meta.position,h(u.element),"="),JsdocTypeSymbol:(u,h)=>`${u.value}(${u.element!==void 0?h(u.element):""})`,JsdocTypeTypeof:(u,h)=>`typeof ${h(u.element)}`,JsdocTypeUndefined:()=>"undefined",JsdocTypeUnion:(u,h)=>u.elements.map(h).join(" | "),JsdocTypeUnknown:()=>"?",JsdocTypeIntersection:(u,h)=>u.elements.map(h).join(" & "),JsdocTypeProperty:u=>Ze(u.value,u.meta.quote),JsdocTypePredicate:(u,h)=>`${h(u.left)} is ${h(u.right)}`,JsdocTypeIndexSignature:(u,h)=>`[${u.key}: ${h(u.right)}]`,JsdocTypeMappedType:(u,h)=>`[${u.key} in ${h(u.right)}]`,JsdocTypeAsserts:(u,h)=>`asserts ${h(u.left)} is ${h(u.right)}`,JsdocTypeReadonlyArray:(u,h)=>`readonly ${h(u.element)}`,JsdocTypeAssertsPlain:(u,h)=>`asserts ${h(u.element)}`,JsdocTypeConditional:(u,h)=>`${h(u.checksType)} extends ${h(u.extendsType)} ? ${h(u.trueType)} : ${h(u.falseType)}`,JsdocTypeTypeParameter:(u,h)=>`${h(u.name)}${u.constraint!==void 0?` extends ${h(u.constraint)}`:""}${u.defaultValue!==void 0?` = ${h(u.defaultValue)}`:""}`}}let Fo=ee();function Nr(u){return St(Fo,u)}let Tl=["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 it(u){let h={type:"NameExpression",name:u};return Tl.includes(u)&&(h.reservedWord=!0),h}let Sl={JsdocTypeOptional:(u,h)=>{let w=h(u.element);return w.optional=!0,w},JsdocTypeNullable:(u,h)=>{let w=h(u.element);return w.nullable=!0,w},JsdocTypeNotNullable:(u,h)=>{let w=h(u.element);return w.nullable=!1,w},JsdocTypeVariadic:(u,h)=>{if(u.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");let w=h(u.element);return w.repeatable=!0,w},JsdocTypeAny:()=>({type:"AllLiteral"}),JsdocTypeNull:()=>({type:"NullLiteral"}),JsdocTypeStringValue:u=>it(Ze(u.value,u.meta.quote)),JsdocTypeUndefined:()=>({type:"UndefinedLiteral"}),JsdocTypeUnknown:()=>({type:"UnknownLiteral"}),JsdocTypeFunction:(u,h)=>{let w=rn(u),P={type:"FunctionType",params:w.params.map(h)};return w.this!==void 0&&(P.this=h(w.this)),w.new!==void 0&&(P.new=h(w.new)),u.returnType!==void 0&&(P.result=h(u.returnType)),P},JsdocTypeGeneric:(u,h)=>({type:"TypeApplication",applications:u.elements.map(w=>h(w)),expression:h(u.left)}),JsdocTypeSpecialNamePath:u=>it(u.specialType+":"+Ze(u.value,u.meta.quote)),JsdocTypeName:u=>u.value!=="function"?it(u.value):{type:"FunctionType",params:[]},JsdocTypeNumber:u=>it(u.value.toString()),JsdocTypeObject:(u,h)=>{let w={type:"RecordType",fields:[]};for(let P of u.elements)P.type!=="JsdocTypeObjectField"&&P.type!=="JsdocTypeJsdocObjectField"?w.fields.push({type:"FieldType",key:h(P),value:void 0}):w.fields.push(h(P));return w},JsdocTypeObjectField:(u,h)=>{if(typeof u.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:it(Ze(u.key,u.meta.quote)),value:u.right===void 0?void 0:h(u.right)}},JsdocTypeJsdocObjectField:(u,h)=>({type:"FieldType",key:h(u.left),value:h(u.right)}),JsdocTypeUnion:(u,h)=>({type:"TypeUnion",elements:u.elements.map(w=>h(w))}),JsdocTypeKeyValue:(u,h)=>({type:"FieldType",key:it(u.key),value:u.right===void 0?void 0:h(u.right)}),JsdocTypeNamePath:(u,h)=>{let w=h(u.left),P;u.right.type==="JsdocTypeSpecialNamePath"?P=h(u.right).name:P=Ze(u.right.value,u.right.meta.quote);let U=u.pathType==="inner"?"~":u.pathType==="instance"?"#":".";return it(`${w.name}${U}${P}`)},JsdocTypeSymbol:u=>{let h="",w=u.element,P=!1;return w?.type==="JsdocTypeVariadic"&&(w.meta.position==="prefix"?h="...":P=!0,w=w.element),w?.type==="JsdocTypeName"?h+=w.value:w?.type==="JsdocTypeNumber"&&(h+=w.value.toString()),P&&(h+="..."),it(`${u.value}(${h})`)},JsdocTypeParenthesis:(u,h)=>h(E(u.element)),JsdocTypeMappedType:pe,JsdocTypeIndexSignature:pe,JsdocTypeImport:pe,JsdocTypeKeyof:pe,JsdocTypeTuple:pe,JsdocTypeTypeof:pe,JsdocTypeIntersection:pe,JsdocTypeProperty:pe,JsdocTypePredicate:pe,JsdocTypeAsserts:pe,JsdocTypeReadonlyArray:pe,JsdocTypeAssertsPlain:pe,JsdocTypeConditional:pe,JsdocTypeTypeParameter:pe};function Al(u){return St(Sl,u)}function vt(u){switch(u){case void 0:return"none";case"single":return"single";case"double":return"double"}}function Rl(u){switch(u){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}function nn(u,h){return h.length===2?{type:u,left:h[0],right:h[1]}:{type:u,left:h[0],right:nn(u,h.slice(1))}}let Ol={JsdocTypeOptional:(u,h)=>({type:"OPTIONAL",value:h(u.element),meta:{syntax:u.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),JsdocTypeNullable:(u,h)=>({type:"NULLABLE",value:h(u.element),meta:{syntax:u.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),JsdocTypeNotNullable:(u,h)=>({type:"NOT_NULLABLE",value:h(u.element),meta:{syntax:u.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),JsdocTypeVariadic:(u,h)=>{let w={type:"VARIADIC",meta:{syntax:u.meta.position==="prefix"?"PREFIX_DOTS":u.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return u.element!==void 0&&(w.value=h(u.element)),w},JsdocTypeName:u=>({type:"NAME",name:u.value}),JsdocTypeTypeof:(u,h)=>({type:"TYPE_QUERY",name:h(u.element)}),JsdocTypeTuple:(u,h)=>({type:"TUPLE",entries:u.elements.map(h)}),JsdocTypeKeyof:(u,h)=>({type:"KEY_QUERY",value:h(u.element)}),JsdocTypeImport:u=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:vt(u.element.meta.quote),string:u.element.value}}),JsdocTypeUndefined:()=>({type:"NAME",name:"undefined"}),JsdocTypeAny:()=>({type:"ANY"}),JsdocTypeFunction:(u,h)=>{let w=rn(u),P={type:u.arrow?"ARROW":"FUNCTION",params:w.params.map(U=>{if(U.type==="JsdocTypeKeyValue"){if(U.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:U.key,typeName:h(U.right)}}else return h(U)}),new:null,returns:null};return w.this!==void 0?P.this=h(w.this):u.arrow||(P.this=null),w.new!==void 0&&(P.new=h(w.new)),u.returnType!==void 0&&(P.returns=h(u.returnType)),P},JsdocTypeGeneric:(u,h)=>{let w={type:"GENERIC",subject:h(u.left),objects:u.elements.map(h),meta:{syntax:u.meta.brackets==="square"?"SQUARE_BRACKET":u.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return u.meta.brackets==="square"&&u.elements[0].type==="JsdocTypeFunction"&&!u.elements[0].parenthesis&&(w.objects[0]={type:"NAME",name:"function"}),w},JsdocTypeObjectField:(u,h)=>{if(typeof u.key!="string")throw new Error("Index signatures and mapped types are not supported");if(u.right===void 0)return{type:"RECORD_ENTRY",key:u.key,quoteStyle:vt(u.meta.quote),value:null,readonly:!1};let w=h(u.right);return u.optional&&(w={type:"OPTIONAL",value:w,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:u.key.toString(),quoteStyle:vt(u.meta.quote),value:w,readonly:!1}},JsdocTypeJsdocObjectField:()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},JsdocTypeKeyValue:(u,h)=>{if(u.right===void 0)return{type:"RECORD_ENTRY",key:u.key,quoteStyle:"none",value:null,readonly:!1};let w=h(u.right);return u.optional&&(w={type:"OPTIONAL",value:w,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:u.key,quoteStyle:"none",value:w,readonly:!1}},JsdocTypeObject:(u,h)=>{let w=[];for(let P of u.elements)(P.type==="JsdocTypeObjectField"||P.type==="JsdocTypeJsdocObjectField")&&w.push(h(P));return{type:"RECORD",entries:w}},JsdocTypeSpecialNamePath:u=>{if(u.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${u.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:vt(u.meta.quote),path:u.value}}},JsdocTypeNamePath:(u,h)=>{let w=!1,P,U;u.right.type==="JsdocTypeSpecialNamePath"&&u.right.specialType==="event"?(w=!0,P=u.right.value,U=vt(u.right.meta.quote)):(P=u.right.value,U=vt(u.right.meta.quote));let W={type:Rl(u.pathType),owner:h(u.left),name:P,quoteStyle:U,hasEventPrefix:w};if(W.owner.type==="MODULE"){let Z=W.owner;return W.owner=W.owner.value,Z.value=W,Z}else return W},JsdocTypeUnion:(u,h)=>nn("UNION",u.elements.map(h)),JsdocTypeParenthesis:(u,h)=>({type:"PARENTHESIS",value:h(E(u.element))}),JsdocTypeNull:()=>({type:"NAME",name:"null"}),JsdocTypeUnknown:()=>({type:"UNKNOWN"}),JsdocTypeStringValue:u=>({type:"STRING_VALUE",quoteStyle:vt(u.meta.quote),string:u.value}),JsdocTypeIntersection:(u,h)=>nn("INTERSECTION",u.elements.map(h)),JsdocTypeNumber:u=>({type:"NUMBER_VALUE",number:u.value.toString()}),JsdocTypeSymbol:pe,JsdocTypeProperty:pe,JsdocTypePredicate:pe,JsdocTypeMappedType:pe,JsdocTypeIndexSignature:pe,JsdocTypeAsserts:pe,JsdocTypeReadonlyArray:pe,JsdocTypeAssertsPlain:pe,JsdocTypeConditional:pe,JsdocTypeTypeParameter:pe};function xl(u){return St(Ol,u)}function Pl(){return{JsdocTypeIntersection:(u,h)=>({type:"JsdocTypeIntersection",elements:u.elements.map(h)}),JsdocTypeGeneric:(u,h)=>({type:"JsdocTypeGeneric",left:h(u.left),elements:u.elements.map(h),meta:{dot:u.meta.dot,brackets:u.meta.brackets}}),JsdocTypeNullable:u=>u,JsdocTypeUnion:(u,h)=>({type:"JsdocTypeUnion",elements:u.elements.map(h)}),JsdocTypeUnknown:u=>u,JsdocTypeUndefined:u=>u,JsdocTypeTypeof:(u,h)=>({type:"JsdocTypeTypeof",element:h(u.element)}),JsdocTypeSymbol:(u,h)=>{let w={type:"JsdocTypeSymbol",value:u.value};return u.element!==void 0&&(w.element=h(u.element)),w},JsdocTypeOptional:(u,h)=>({type:"JsdocTypeOptional",element:h(u.element),meta:{position:u.meta.position}}),JsdocTypeObject:(u,h)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:u.elements.map(h)}),JsdocTypeNumber:u=>u,JsdocTypeNull:u=>u,JsdocTypeNotNullable:(u,h)=>({type:"JsdocTypeNotNullable",element:h(u.element),meta:{position:u.meta.position}}),JsdocTypeSpecialNamePath:u=>u,JsdocTypeObjectField:(u,h)=>({type:"JsdocTypeObjectField",key:u.key,right:u.right===void 0?void 0:h(u.right),optional:u.optional,readonly:u.readonly,meta:u.meta}),JsdocTypeJsdocObjectField:(u,h)=>({type:"JsdocTypeJsdocObjectField",left:h(u.left),right:h(u.right)}),JsdocTypeKeyValue:(u,h)=>({type:"JsdocTypeKeyValue",key:u.key,right:u.right===void 0?void 0:h(u.right),optional:u.optional,variadic:u.variadic}),JsdocTypeImport:(u,h)=>({type:"JsdocTypeImport",element:h(u.element)}),JsdocTypeAny:u=>u,JsdocTypeStringValue:u=>u,JsdocTypeNamePath:u=>u,JsdocTypeVariadic:(u,h)=>{let w={type:"JsdocTypeVariadic",meta:{position:u.meta.position,squareBrackets:u.meta.squareBrackets}};return u.element!==void 0&&(w.element=h(u.element)),w},JsdocTypeTuple:(u,h)=>({type:"JsdocTypeTuple",elements:u.elements.map(h)}),JsdocTypeName:u=>u,JsdocTypeFunction:(u,h)=>{let w={type:"JsdocTypeFunction",arrow:u.arrow,parameters:u.parameters.map(h),constructor:u.constructor,parenthesis:u.parenthesis};return u.returnType!==void 0&&(w.returnType=h(u.returnType)),w},JsdocTypeKeyof:(u,h)=>({type:"JsdocTypeKeyof",element:h(u.element)}),JsdocTypeParenthesis:(u,h)=>({type:"JsdocTypeParenthesis",element:h(u.element)}),JsdocTypeProperty:u=>u,JsdocTypePredicate:(u,h)=>({type:"JsdocTypePredicate",left:h(u.left),right:h(u.right)}),JsdocTypeIndexSignature:(u,h)=>({type:"JsdocTypeIndexSignature",key:u.key,right:h(u.right)}),JsdocTypeMappedType:(u,h)=>({type:"JsdocTypeMappedType",key:u.key,right:h(u.right)}),JsdocTypeAsserts:(u,h)=>({type:"JsdocTypeAsserts",left:h(u.left),right:h(u.right)}),JsdocTypeReadonlyArray:(u,h)=>({type:"JsdocTypeReadonlyArray",element:h(u.element)}),JsdocTypeAssertsPlain:(u,h)=>({type:"JsdocTypeAssertsPlain",element:h(u.element)}),JsdocTypeConditional:(u,h)=>({type:"JsdocTypeConditional",checksType:h(u.checksType),extendsType:h(u.extendsType),trueType:h(u.trueType),falseType:h(u.falseType)}),JsdocTypeTypeParameter:(u,h)=>({type:"JsdocTypeTypeParameter",name:h(u.name),constraint:u.constraint!==void 0?h(u.constraint):void 0,defaultValue:u.defaultValue!==void 0?h(u.defaultValue):void 0})}}let Bo={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 on(u,h,w,P,U){P?.(u,h,w);let W=Bo[u.type];for(let Z of W){let fe=u[Z];if(fe!==void 0)if(Array.isArray(fe))for(let me of fe)on(me,u,Z,P,U);else on(fe,u,Z,P,U)}U?.(u,h,w)}function Cl(u,h,w){on(u,void 0,void 0,h,w)}r.catharsisTransform=Al,r.identityTransformRules=Pl,r.jtpTransform=xl,r.parse=tn,r.stringify=Nr,r.stringifyRules=ee,r.transform=St,r.traverse=Cl,r.tryParse=$o,r.visitorKeys=Bo}))}});const{UnknownArgTypesError:V8}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{UnknownArgTypesError:z8}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var yu;(function(e){e.start="/**",e.nostart="/***",e.delim="*",e.end="*/"})(yu=yu||(yu={}));var CV=pl(PV(),1),kn=(0,CV.stringifyRules)(),NV=kn.JsdocTypeObject;kn.JsdocTypeAny=()=>"any";kn.JsdocTypeObject=(e,t)=>`(${NV(e,t)})`;kn.JsdocTypeOptional=(e,t)=>t(e.element);kn.JsdocTypeNullable=(e,t)=>t(e.element);kn.JsdocTypeNotNullable=(e,t)=>t(e.element);kn.JsdocTypeUnion=(e,t)=>e.elements.map(t).join("|");var Y0=(...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:hu(s)&&hu(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=>hu(a))?n[o]=Y0(...i):n[o]=i[i.length-1]}),n},IV=e=>{let{component:t,argTypes:r,parameters:{docs:n={}}}=e,{extractArgTypes:o}=n;if(!o||!t)return r;let i=o(t);return i?Y0(i,r):r},MV="storybook/docs",G8=`${MV}/snippet-rendered`,Es=(e=>(e.AUTO="auto",e.CODE="code",e.DYNAMIC="dynamic",e))(Es||{}),jV=oa({"../../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(l,d){if(!o[l]){if(!n[l]){var p=typeof Oa=="function"&&Oa;if(!d&&p)return p(l,!0);if(s)return s(l,!0);var f=new Error("Cannot find module '"+l+"'");throw f.code="MODULE_NOT_FOUND",f}var m=o[l]={exports:{}};n[l][0].call(m.exports,function(y){var g=n[l][1][y];return a(g||y)},m,m.exports,r,n,o,i)}return o[l].exports}for(var s=typeof Oa=="function"&&Oa,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(l){var d=new i(!1),p=[];return function(f){var m=function(){var y=d,g,v,b=arguments.length-1,T=Array(b+1),R=!0,x;if((m.numArgs||m.numArgs===0)&&m.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(T[x]={cacheItem:y,arg:arguments[x]},y.has(arguments[x])){y=y.get(arguments[x]);continue}R=!1,g=new i(!1),y.set(arguments[x],g),y=g}return R&&(y.has(arguments[b])?v=y.get(arguments[b]):R=!1),R||(v=f.apply(null,arguments),y.set(arguments[b],v)),l>0&&(T[b]={cacheItem:y,arg:arguments[b]},R?a(p,T):p.push(T),p.length>l&&s(p.shift())),m.wasMemoized=R,m.numArgs=b+1,v};return m.limit=l,m.wasMemoized=!1,m.cache=d,m.lru=p,m}};function a(l,d){var p=l.length,f=d.length,m,y,g;for(y=0;y<p;y++){for(m=!0,g=0;g<f;g++)if(!c(l[y][g].arg,d[g].arg)){m=!1;break}if(m)break}l.push(l.splice(y,1)[0])}function s(l){var d=l.length,p=l[d-1],f,m;for(p.cacheItem.delete(p.arg),m=d-2;m>=0&&(p=l[m],f=p.cacheItem.get(p.arg),!f||!f.size);m--)p.cacheItem.delete(p.arg)}function c(l,d){return l===d||l!==l&&d!==d}},{"map-or-similar":1}]},{},[3])(3)})}});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 l=c.match(/\n([\t ]+|(?!\s).)/g);return l?s.concat(l.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(`
1017
+ [ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(s){return s.replace(i,`
1018
+ `)})}n[0]=n[0].replace(/^\r?\n/,"");var a=n[0];return t.forEach(function(s,c){var l=a.match(/(?:^|\n)( *)$/),d=l?l[1]:"",p=s;typeof s=="string"&&s.includes(`
1019
+ `)&&(p=String(s).split(`
1020
+ `).map(function(f,m){return m===0?f:""+d+f}).join(`
1021
+ `)),a+=p+n[c+1]}),a}const qV={"./src/stories/Welcome.stories.ts":()=>Re(()=>import("./Welcome.stories-Degjk-M0.js"),__vite__mapDeps([0,1,2]),import.meta.url),"./src/stories/Avatar.stories.ts":()=>Re(()=>import("./Avatar.stories-B26mRkkZ.js"),__vite__mapDeps([3,4,2]),import.meta.url),"./src/stories/AvatarGroup.stories.ts":()=>Re(()=>import("./AvatarGroup.stories-J7lVGsMY.js"),__vite__mapDeps([5,4,2]),import.meta.url),"./src/stories/Badge.stories.ts":()=>Re(()=>import("./Badge.stories-BpTIV61M.js"),__vite__mapDeps([6,4,2]),import.meta.url),"./src/stories/Button.stories.ts":()=>Re(()=>import("./Button.stories-gPKRVbxk.js"),__vite__mapDeps([7,8,2]),import.meta.url),"./src/stories/Celebrate.stories.ts":()=>Re(()=>import("./Celebrate.stories-DbY-sKEe.js"),__vite__mapDeps([9,10,11,8,2]),import.meta.url),"./src/stories/CircularProgress.stories.ts":()=>Re(()=>import("./CircularProgress.stories-DeH5JYX_.js"),__vite__mapDeps([12,4,2]),import.meta.url),"./src/stories/ClipboardMixin.stories.ts":()=>Re(()=>import("./ClipboardMixin.stories-C-lZ4uuw.js"),__vite__mapDeps([13,14,15,16,2]),import.meta.url),"./src/stories/Colors.stories.ts":()=>Re(()=>import("./Colors.stories-D6XYMrTD.js"),__vite__mapDeps([17,2]),import.meta.url),"./src/stories/CombinedEffects.stories.ts":()=>Re(()=>import("./CombinedEffects.stories-jFekKTYg.js"),__vite__mapDeps([18,10,11,19,8,2]),import.meta.url),"./src/stories/ComponentStatesMixin.stories.ts":()=>Re(()=>import("./ComponentStatesMixin.stories-D3Q5pR38.js"),__vite__mapDeps([20,14,15,2]),import.meta.url),"./src/stories/CopyToClipboard.stories.ts":()=>Re(()=>import("./CopyToClipboard.stories-COZZ1VC2.js"),__vite__mapDeps([21,2]),import.meta.url),"./src/stories/Debounce.stories.ts":()=>Re(()=>import("./Debounce.stories-Dl10LAnx.js"),__vite__mapDeps([22,2]),import.meta.url),"./src/stories/Dropdown.stories.ts":()=>Re(()=>import("./Dropdown.stories-Drwq-0Z2.js"),__vite__mapDeps([23,4,2]),import.meta.url),"./src/stories/Events.stories.ts":()=>Re(()=>import("./Events.stories-dODeR-g-.js"),__vite__mapDeps([24,2]),import.meta.url),"./src/stories/Heading.stories.ts":()=>Re(()=>import("./Heading.stories-CH7_-_q3.js"),__vite__mapDeps([25,2]),import.meta.url),"./src/stories/HueRipple.stories.ts":()=>Re(()=>import("./HueRipple.stories-CH1Y739k.js"),__vite__mapDeps([26,19,11,8,2]),import.meta.url),"./src/stories/Icon.stories.ts":()=>Re(()=>import("./Icon.stories-CPjM-jTU.js"),__vite__mapDeps([27,4,28,2]),import.meta.url),"./src/stories/IconButton.stories.ts":()=>Re(()=>import("./IconButton.stories-DuzqvcnN.js"),__vite__mapDeps([29,30,28,2]),import.meta.url),"./src/stories/LinearProgress.stories.ts":()=>Re(()=>import("./LinearProgress.stories-C7IdnJd3.js"),__vite__mapDeps([31,4,2]),import.meta.url),"./src/stories/Pagination.stories.ts":()=>Re(()=>import("./Pagination.stories-C4cLjS_9.js"),__vite__mapDeps([32,4,2]),import.meta.url),"./src/stories/Popover.stories.ts":()=>Re(()=>import("./Popover.stories-Ca1F-wrI.js"),__vite__mapDeps([33,30,4,2]),import.meta.url),"./src/stories/ReadyMixin.stories.ts":()=>Re(()=>import("./ReadyMixin.stories-DavcxbQ0.js"),[],import.meta.url),"./src/stories/Rtc.stories.ts":()=>Re(()=>import("./Rtc.stories-BVJc1vCA.js"),__vite__mapDeps([34,2]),import.meta.url),"./src/stories/ScrollShadow.stories.ts":()=>Re(()=>import("./ScrollShadow.stories-C3W5o9ZW.js"),__vite__mapDeps([35,2]),import.meta.url),"./src/stories/Switch.stories.ts":()=>Re(()=>import("./Switch.stories-BEEHP8mD.js"),__vite__mapDeps([36,30,4,28,2]),import.meta.url),"./src/stories/Throttle.stories.ts":()=>Re(()=>import("./Throttle.stories-C4xsYeAb.js"),__vite__mapDeps([37,2]),import.meta.url),"./src/stories/Tooltip.stories.ts":()=>Re(()=>import("./Tooltip.stories-Ccm4AnSv.js"),__vite__mapDeps([38,14,30,4,16,2]),import.meta.url),"./src/stories/Widget.stories.ts":()=>Re(()=>import("./Widget.stories-OKnZ9sDs.js"),__vite__mapDeps([39,4,2]),import.meta.url),"./src/stories/onFind.stories.ts":()=>Re(()=>import("./onFind.stories-D64-QZqf.js"),__vite__mapDeps([40,41,2]),import.meta.url),"./src/stories/onRemove.stories.ts":()=>Re(()=>import("./onRemove.stories-BICsnIJL.js"),__vite__mapDeps([42,2]),import.meta.url),"./src/stories/onVisible.stories.ts":()=>Re(()=>import("./onVisible.stories-DpDZP9_5.js"),__vite__mapDeps([43,41,2]),import.meta.url)};async function LV(e){return await qV[e]()}var DV=Object.defineProperty,K0=(e,t)=>{for(var r in t)DV(e,r,{get:t[r],enumerable:!0})};const Ba=globalThis,sf=Ba.ShadowRoot&&(Ba.ShadyCSS===void 0||Ba.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,X0=Symbol(),Dy=new WeakMap;let $V=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==X0)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(sf&&t===void 0){const n=r!==void 0&&r.length===1;n&&(t=Dy.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&Dy.set(r,t))}return t}toString(){return this.cssText}};const FV=e=>new $V(typeof e=="string"?e:e+"",void 0,X0),BV=(e,t)=>{if(sf)e.adoptedStyleSheets=t.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(const r of t){const n=document.createElement("style"),o=Ba.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)}},$y=sf?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(const n of t.cssRules)r+=n.cssText;return FV(r)})(e):e;const{is:UV,defineProperty:JV,getOwnPropertyDescriptor:HV,getOwnPropertyNames:VV,getOwnPropertySymbols:zV,getPrototypeOf:GV}=Object,fl=globalThis,Fy=fl.trustedTypes,WV=Fy?Fy.emptyScript:"",YV=fl.reactiveElementPolyfillSupport,pi=(e,t)=>e,Lc={toAttribute(e,t){switch(t){case Boolean:e=e?WV: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}},Q0=(e,t)=>!UV(e,t),By={attribute:!0,type:String,converter:Lc,reflect:!1,useDefault:!1,hasChanged:Q0};Symbol.metadata??=Symbol("metadata"),fl.litPropertyMetadata??=new WeakMap;let Dn=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=By){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&&JV(this.prototype,t,o)}}static getPropertyDescriptor(t,r,n){const{get:o,set:i}=HV(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)??By}static _$Ei(){if(this.hasOwnProperty(pi("elementProperties")))return;const t=GV(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(pi("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(pi("properties"))){const r=this.properties,n=[...VV(r),...zV(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($y(o))}else t!==void 0&&r.push($y(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 BV(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:Lc).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:Lc;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??Q0)(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){}};Dn.elementStyles=[],Dn.shadowRootOptions={mode:"open"},Dn[pi("elementProperties")]=new Map,Dn[pi("finalized")]=new Map,YV?.({ReactiveElement:Dn}),(fl.reactiveElementVersions??=[]).push("2.1.1");const lf=globalThis,ws=lf.trustedTypes,Uy=ws?ws.createPolicy("lit-html",{createHTML:e=>e}):void 0,Z0="$lit$",Br=`lit$${Math.random().toFixed(9).slice(2)}$`,eS="?"+Br,KV=`<${eS}>`,xn=document,qi=()=>xn.createComment(""),Li=e=>e===null||typeof e!="object"&&typeof e!="function",uf=Array.isArray,XV=e=>uf(e)||typeof e?.[Symbol.iterator]=="function",gu=`[
1022
+ \f\r]`,Ko=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Jy=/-->/g,Hy=/>/g,un=RegExp(`>|${gu}(?:([^\\s"'>=/]+)(${gu}*=${gu}*(?:[^
1023
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Vy=/'/g,zy=/"/g,tS=/^(?:script|style|textarea|title)$/i,QV=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),rS=QV(1),Pn=Symbol.for("lit-noChange"),Ye=Symbol.for("lit-nothing"),Gy=new WeakMap,yn=xn.createTreeWalker(xn,129);function nS(e,t){if(!uf(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Uy!==void 0?Uy.createHTML(t):t}const ZV=(e,t)=>{const r=e.length-1,n=[];let o,i=t===2?"<svg>":t===3?"<math>":"",a=Ko;for(let s=0;s<r;s++){const c=e[s];let l,d,p=-1,f=0;for(;f<c.length&&(a.lastIndex=f,d=a.exec(c),d!==null);)f=a.lastIndex,a===Ko?d[1]==="!--"?a=Jy:d[1]!==void 0?a=Hy:d[2]!==void 0?(tS.test(d[2])&&(o=RegExp("</"+d[2],"g")),a=un):d[3]!==void 0&&(a=un):a===un?d[0]===">"?(a=o??Ko,p=-1):d[1]===void 0?p=-2:(p=a.lastIndex-d[2].length,l=d[1],a=d[3]===void 0?un:d[3]==='"'?zy:Vy):a===zy||a===Vy?a=un:a===Jy||a===Hy?a=Ko:(a=un,o=void 0);const m=a===un&&e[s+1].startsWith("/>")?" ":"";i+=a===Ko?c+KV:p>=0?(n.push(l),c.slice(0,p)+Z0+c.slice(p)+Br+m):c+Br+(p===-2?s:m)}return[nS(e,i+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class Di{constructor({strings:t,_$litType$:r},n){let o;this.parts=[];let i=0,a=0;const s=t.length-1,c=this.parts,[l,d]=ZV(t,r);if(this.el=Di.createElement(l,n),yn.currentNode=this.el.content,r===2||r===3){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(o=yn.nextNode())!==null&&c.length<s;){if(o.nodeType===1){if(o.hasAttributes())for(const p of o.getAttributeNames())if(p.endsWith(Z0)){const f=d[a++],m=o.getAttribute(p).split(Br),y=/([.?@])?(.*)/.exec(f);c.push({type:1,index:i,name:y[2],strings:m,ctor:y[1]==="."?t6:y[1]==="?"?r6:y[1]==="@"?n6:ml}),o.removeAttribute(p)}else p.startsWith(Br)&&(c.push({type:6,index:i}),o.removeAttribute(p));if(tS.test(o.tagName)){const p=o.textContent.split(Br),f=p.length-1;if(f>0){o.textContent=ws?ws.emptyScript:"";for(let m=0;m<f;m++)o.append(p[m],qi()),yn.nextNode(),c.push({type:2,index:++i});o.append(p[f],qi())}}}else if(o.nodeType===8)if(o.data===eS)c.push({type:2,index:i});else{let p=-1;for(;(p=o.data.indexOf(Br,p+1))!==-1;)c.push({type:7,index:i}),p+=Br.length-1}i++}}static createElement(t,r){const n=xn.createElement("template");return n.innerHTML=t,n}}function lo(e,t,r=e,n){if(t===Pn)return t;let o=n!==void 0?r._$Co?.[n]:r._$Cl;const i=Li(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=lo(e,o._$AS(e,t.values),o,n)),t}class e6{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??xn).importNode(r,!0);yn.currentNode=o;let i=yn.nextNode(),a=0,s=0,c=n[0];for(;c!==void 0;){if(a===c.index){let l;c.type===2?l=new ia(i,i.nextSibling,this,t):c.type===1?l=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(l=new o6(i,this,t)),this._$AV.push(l),c=n[++s]}a!==c?.index&&(i=yn.nextNode(),a++)}return yn.currentNode=xn,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 ia{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,o){this.type=2,this._$AH=Ye,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=lo(this,t,r),Li(t)?t===Ye||t==null||t===""?(this._$AH!==Ye&&this._$AR(),this._$AH=Ye):t!==this._$AH&&t!==Pn&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):XV(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!==Ye&&Li(this._$AH)?this._$AA.nextSibling.data=t:this.T(xn.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=Di.createElement(nS(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(r);else{const i=new e6(o,this),a=i.u(this.options);i.p(r),this.T(a),this._$AH=i}}_$AC(t){let r=Gy.get(t.strings);return r===void 0&&Gy.set(t.strings,r=new Di(t)),r}k(t){uf(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 ia(this.O(qi()),this.O(qi()),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 ml{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,o,i){this.type=1,this._$AH=Ye,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=Ye}_$AI(t,r=this,n,o){const i=this.strings;let a=!1;if(i===void 0)t=lo(this,t,r,0),a=!Li(t)||t!==this._$AH&&t!==Pn,a&&(this._$AH=t);else{const s=t;let c,l;for(t=i[0],c=0;c<i.length-1;c++)l=lo(this,s[n+c],r,c),l===Pn&&(l=this._$AH[c]),a||=!Li(l)||l!==this._$AH[c],l===Ye?t=Ye:t!==Ye&&(t+=(l??"")+i[c+1]),this._$AH[c]=l}a&&!o&&this.j(t)}j(t){t===Ye?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class t6 extends ml{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Ye?void 0:t}}class r6 extends ml{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Ye)}}class n6 extends ml{constructor(t,r,n,o,i){super(t,r,n,o,i),this.type=5}_$AI(t,r=this){if((t=lo(this,t,r,0)??Ye)===Pn)return;const n=this._$AH,o=t===Ye&&n!==Ye||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==Ye&&(n===Ye||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 o6{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){lo(this,t)}}const i6=lf.litHtmlPolyfillSupport;i6?.(Di,ia),(lf.litHtmlVersions??=[]).push("3.3.1");const _s=(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 ia(t.insertBefore(qi(),i),i,void 0,r??{})}return o._$AI(e),o};const cf=globalThis;let Ua=class extends Dn{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=_s(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Pn}};Ua._$litElement$=!0,Ua.finalized=!0,cf.litElementHydrateSupport?.({LitElement:Ua});const a6=cf.litElementPolyfillSupport;a6?.({LitElement:Ua});(cf.litElementVersions??=[]).push("4.2.1");const s6=(e,t)=>t===void 0?e?._$litType$!==void 0:e?._$litType$===t,l6=e=>e.strings===void 0;function u6(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 l=c.match(/\n([\t ]+|(?!\s).)/g);return l?s.concat(l.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(`
1024
+ [ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(s){return s.replace(i,`
1025
+ `)})}n[0]=n[0].replace(/^\r?\n/,"");var a=n[0];return t.forEach(function(s,c){var l=a.match(/(?:^|\n)( *)$/),d=l?l[1]:"",p=s;typeof s=="string"&&s.includes(`
1026
+ `)&&(p=String(s).split(`
1027
+ `).map(function(f,m){return m===0?f:""+d+f}).join(`
1028
+ `)),a+=p+n[c+1]}),a}var c6={};K0(c6,{parameters:()=>aS,render:()=>oS,renderToCanvas:()=>iS});const{global:d6}=__STORYBOOK_MODULE_GLOBAL__,{simulateDOMContentLoaded:p6,simulatePageLoad:Wy}=__STORYBOOK_MODULE_PREVIEW_API__;var{Node:f6}=d6,oS=(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 iS({storyFn:e,kind:t,name:r,showMain:n,showError:o,forceRemount:i},a){let s=e();if(n(),s6(s)){(i||!a.querySelector('[id="root-inner"]'))&&(a.innerHTML='<div id="root-inner"></div>');let c=a.querySelector('[id="root-inner"]');_s(s,c),Wy(a)}else if(typeof s=="string")a.innerHTML=s,Wy(a);else if(s instanceof f6){if(a.firstChild===s&&!i)return;a.innerHTML="",a.appendChild(s),p6()}else o({title:`Expecting an HTML snippet or DOM node from the story: "${r}" of "${t}".`,description:u6`
1029
+ Did you forget to return the HTML snippet from the story?
1030
+ Use "() => <your snippet or node>" or when defining the story.
1031
+ `})}var aS={renderer:"web-components"};const m6=Object.freeze(Object.defineProperty({__proto__:null,parameters:aS,render:oS,renderToCanvas:iS},Symbol.toStringTag,{value:"Module"}));var h6={};K0(h6,{decorators:()=>sS,parameters:()=>lS});const{emitTransformCode:y6,useEffect:g6}=__STORYBOOK_MODULE_PREVIEW_API__;var b6=/<!--\?lit\$[0-9]+\$-->|<!--\??-->/g;function v6(e){let t=e?.parameters.docs?.source,r=e?.parameters.__isArgsStory;return t?.type===Es.DYNAMIC?!1:!r||t?.code||t?.type===Es.CODE}function E6(e,t){let r=e(),n=t?.parameters.docs?.source?.excludeDecorators?t.originalStoryFn(t.args,t):r,o;if(g6(()=>{o&&y6(o,t)}),!v6(t)){let i=window.document.createElement("div");n instanceof DocumentFragment?_s(n.cloneNode(!0),i):_s(n,i),o=i.innerHTML.replace(b6,"")}return r}var sS=[E6],lS={docs:{source:{type:Es.DYNAMIC,language:"html"},story:{inline:!0}}};const{global:w6}=__STORYBOOK_MODULE_GLOBAL__,{global:_6}=__STORYBOOK_MODULE_GLOBAL__;var{window:T6}=_6;T6.STORYBOOK_ENV="web-components";const{global:Dc}=__STORYBOOK_MODULE_GLOBAL__;function uS(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 cS(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().
1032
+ See the readme of addon-docs for web components for more details.`)}function S6(e){Dc.__STORYBOOK_CUSTOM_ELEMENTS_MANIFEST__=e}function dS(){return Dc.__STORYBOOK_CUSTOM_ELEMENTS__||Dc.__STORYBOOK_CUSTOM_ELEMENTS_MANIFEST__}const{setProjectAnnotations:X8,setDefaultProjectAnnotations:Q8}=__STORYBOOK_MODULE_PREVIEW_API__;var{window:A6,EventSource:R6}=w6;typeof module<"u"&&module?.hot?.decline&&(module.hot.decline(),new R6("__webpack_hmr").addEventListener("message",function(e){try{let{action:t}=JSON.parse(e.data);t==="built"&&A6.location.reload()}catch{}}));var O6="Invariant failed";function x6(e,t){if(!e)throw new Error(O6)}const{logger:pS}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function fS(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 P6(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}},fS(e,"events")]}function cn(e,t){return e&&e.filter(r=>r&&r.name).reduce((r,n)=>{if(n.kind==="method")return r;switch(t){case"events":P6(n).forEach(o=>{x6(o.name),r[o.name]=o});break;default:r[n.name]=fS(n,t);break}return r},{})}var C6=(e,t)=>{if(!uS(e)||!cS(t))return null;let r=t.tags.find(n=>n.name.toUpperCase()===e.toUpperCase());return r||pS.warn(`Component not found in custom-elements.json: ${e}`),r},N6=(e,t)=>{if(!uS(e)||!cS(t))return null;let r;return t?.modules?.forEach(n=>{n?.declarations?.forEach(o=>{o.tagName===e&&(r=o)})}),r||pS.warn(`Component not found in custom-elements.json: ${e}`),r},mS=(e,t)=>t?.version==="experimental"?C6(e,t):N6(e,t),I6=(e,t)=>{let r=mS(e,t);return r&&{...cn(r.members??[],"properties"),...cn(r.properties??[],"properties"),...cn(r.attributes??[],"attributes"),...cn(r.events??[],"events"),...cn(r.slots??[],"slots"),...cn(r.cssProperties??[],"css custom properties"),...cn(r.cssParts??[],"css shadow parts")}},M6=e=>{let t=dS();return I6(e,t)},j6=e=>{let t=mS(e,dS());return t&&t.description},k6={docs:{extractArgTypes:M6,extractComponentDescription:j6}},q6=[IV];const L6=Object.freeze(Object.defineProperty({__proto__:null,argTypesEnhancers:q6,parameters:k6},Symbol.toStringTag,{value:"Module"})),D6=Object.freeze(Object.defineProperty({__proto__:null,decorators:sS,parameters:lS},Symbol.toStringTag,{value:"Module"}));var $6=Object.create,df=Object.defineProperty,F6=Object.getOwnPropertyDescriptor,hS=Object.getOwnPropertyNames,B6=Object.getPrototypeOf,U6=Object.prototype.hasOwnProperty,Z8=(e,t)=>function(){return t||(0,e[hS(e)[0]])((t={exports:{}}).exports,t),t.exports},J6=(e,t)=>{for(var r in t)df(e,r,{get:t[r],enumerable:!0})},H6=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of hS(t))!U6.call(e,o)&&o!==r&&df(e,o,{get:()=>t[o],enumerable:!(n=F6(t,o))||n.enumerable});return e},e4=(e,t,r)=>(r=e!=null?$6(B6(e)):{},H6(df(r,"default",{value:e,enumerable:!0}),e)),V6={};J6(V6,{parameters:()=>yS});var z6=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((e,t)=>{let[r,n]=t;return n.excludeFromDocsStories&&(e[r]=!0),e},{}),yS={docs:{renderer:async()=>{let{DocsRenderer:e}=await Re(async()=>{const{DocsRenderer:t}=await import("./DocsRenderer-LL677BLK-CFLtMbUx.js");return{DocsRenderer:t}},__vite__mapDeps([44,2,1]),import.meta.url);return new e},stories:{filter:e=>(e.tags||[]).filter(t=>z6[t]).length===0&&!e.parameters.docs?.disable}}};const G6=Object.freeze(Object.defineProperty({__proto__:null,parameters:yS},Symbol.toStringTag,{value:"Module"}));const gS={ATTRIBUTE:1,CHILD:2},bS=e=>(...t)=>({_$litDirective$:e,values:t});class vS{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 fi=(e,t)=>{const r=e._$AN;if(r===void 0)return!1;for(const n of r)n._$AO?.(t,!1),fi(n,t);return!0},Ts=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while(r?.size===0)},ES=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),K6(t)}};function W6(e){this._$AN!==void 0?(Ts(this),this._$AM=e,ES(this)):this._$AM=e}function Y6(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++)fi(n[i],!1),Ts(n[i]);else n!=null&&(fi(n,!1),Ts(n));else fi(this,e)}const K6=e=>{e.type==gS.CHILD&&(e._$AP??=Y6,e._$AQ??=W6)};class X6 extends vS{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,n){super._$AT(t,r,n),ES(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(fi(this,t),Ts(this))}setValue(t){if(l6(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 wS=Symbol.for(""),Q6=e=>{if(e?.r===wS)return e?._$litStatic$},ni=e=>({_$litStatic$:e,r:wS}),Yy=new Map,Z6=e=>(t,...r)=>{const n=r.length;let o,i;const a=[],s=[];let c,l=0,d=!1;for(;l<n;){for(c=t[l];l<n&&(i=r[l],(o=Q6(i))!==void 0);)c+=o+t[++l],d=!0;l!==n&&s.push(i),a.push(c),l++}if(l===n&&a.push(t[n]),d){const p=a.join("$$lit$$");(t=Yy.get(p))===void 0&&(a.raw=a,Yy.set(p,t=a)),r=s}return e(t,...r)},Ky=Z6(rS);class $c extends vS{constructor(t){if(super(t),this.it=Ye,t.type!==gS.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Ye||t==null)return this._t=void 0,this.it=t;if(t===Pn)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:[]}}}$c.directiveName="unsafeHTML",$c.resultType=1;const _S=bS($c);var ez=class extends X6{constructor(){super(...arguments),this.prevData={}}render(e){return Ye}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]&&Ss(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])&&Ss(r,n,void 0)}},tz=class extends ez{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)}}},rz=class extends tz{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".":Ss(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".":Ss(r,o,void 0);break;case"?":r.removeAttribute(o);break;default:r.removeAttribute(n);break}}}};function Ss(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 nz=bS(rz);const{useArgs:oz}=__STORYBOOK_MODULE_PREVIEW_API__;var iz=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 az(e,t=[]){return(e.modules?.map(r=>r.declarations?.filter(n=>n.customElement)?.flat())?.flat()||[]).filter(r=>r&&!t?.includes(r.name))}function sz(e,t){return az(e).find(r=>r?.tagName===t)}function lz(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 uz(e,t={}){return e?.events?.map(n=>{const o=n[`${t.customEventDetailTypePropName}`]?.text||n.type?.text,i=t.overrideCustomEventType?o||"CustomEvent":iz.has(o)?o:o&&o!=="CustomEvent"?`CustomEvent<${o}>`:"CustomEvent";return{...n,type:{text:i}}})||[]}function cz(e,t){if(!t)return e||"";const r=e?`- ${e}`:"";return typeof t=="string"?`@deprecated ${t} ${r}`:`@deprecated ${r}`}function $i(e){return e.trim().replace(/^["'](.+(?=["']$))["']$/,"$1")}var uo={};setTimeout(()=>{uo=globalThis?.__WC_STORYBOOK_HELPERS_CONFIG__||{}});function pf(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 l=a?.name||i.name,d=uo.typeRef&&i[`${uo.typeRef}`]?.text||i?.type?.text,p=RS(d),f=i.readonly?void 0:$i(i.default||""),m=AS(p,a!==void 0);c[l]={name:l,description:hl(i.description,s,i.deprecated),defaultValue:f?f==="''"?"":m==="object"?JSON.parse(hz(f)):f:void 0,control:t&&!i.readonly&&m?{type:m}:!1,table:{category:a?"attributes":"properties",defaultValue:{summary:f},type:{summary:d}}};const y=p?.split("|");y&&y?.length>1&&(c[l].options=y.map(g=>$i(g)))}),{resets:r,propArgs:o,attrArgs:n}}function dz(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=uo.typeRef&&o[`${uo.typeRef}`]?.text||o?.type?.text,a=RS(i),s=`${o.name}`,c=AS(a);n[s]={name:o.name,description:o.description,defaultValue:fz(c,o.default),control:t&&!o.readonly&&c?{type:c}:!1,table:{category:"properties",defaultValue:{summary:$i(o.default||"")},type:{summary:i}}};const l=a?.split("|");l&&l?.length>1&&(n[s].options=l.map(d=>$i(d)))}),delete n.ref,{resets:r,args:n}}function TS(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 ff(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 mf(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:hl(o.description,t?`${o.name}-part`:""),control:t?"text":!1,table:{category:"css shadow parts"}}}),{resets:r,args:n}}function hf(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:hl(o.description,t?`${o.name}-state`:""),control:t?"text":!1,table:{category:"css states"}}}),{resets:r,args:n}}function yf(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:hl(o.description,t?`${i}-slot`:""),control:t?"text":!1,table:{category:"slots"}}}),{resets:r,args:n}}function pz(e){const t={},r={};return e?.events?.forEach(o=>{r[o.name]={name:o.name,table:{disable:!0}}}),uz(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 SS(e){const t={};return lz(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 fz(e,t){const r=$i(t||"");return e==="boolean"?r==="true":r==="''"?"":r}function AS(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 mz(r)&&!t?"object":xa(n,"boolean")?"boolean":xa(n,"number")&&!xa(n,"string")?"number":xa(n,"date")?"date":n.length>1?"select":"text"}function mz(e){return e.includes("array")||e.includes("object")||e.includes("{")||e.includes("[")||e.includes("<")}function xa(e=[],t){return e?.find(r=>r===t)!==void 0}function RS(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 hl(e,t,r){let n=cz(e,r);return uo.hideArgRef||!t?n:n+=`
1033
+
1034
+
1035
+ arg ref - \`${t}\``}function hz(e){return e.replace(/'([^']+)'/g,'"$1"').replace(/([{,]\s*)(\w+)\s*:/g,'$1"$2":').replace(/,\s*(}|])/g,"$1")}var As,Xy,aa={};setTimeout(()=>{aa=globalThis?.__WC_STORYBOOK_HELPERS_CONFIG__||{}});function yz(e,t,r,n,o,i){if(!t)return Ky`<${ni(e.tagName)}></${ni(e.tagName)}>`;e?.tagName!==Xy&&(As=void 0,Xy=e?.tagName);const{attrOperators:a,propOperators:s,additionalAttrs:c}=gz(e,t,n),l={...a,...s,...c},d=wz(e,t,o);return _z(e),Ky`${OS(e,t,o)}
1036
+ <${ni(e.tagName)} ${nz(l)}>${d}${r||""}</${ni(e.tagName)}>
1037
+ ${aa.setComponentVariable||i?_S(`<script>
1038
+ window.component = document.querySelector('`+e.tagName+`');
1039
+ <\/script>`):""}
1040
+ `}function OS(e,t,r){const n=Ja("cssProps",r)?"":bz(e,t)||"",o=Ja("cssParts",r)?"":vz(e,t)||"",i=Ja("cssStates",r)?"":Ez(e,t)||"",a=[n,o,i].filter(s=>s.length).join(`
1041
+
1042
+ `);return`${n}${o}${i}`.replace(/\s+/g,"")!==""?_S(`<style>
1043
+ ${a}
1044
+ </style>`):""}function Ja(e,t){return!aa.categoryOrder?.includes(e)||t?.includes(e)||!1}function gz(e,t,r){const{propArgs:n,attrArgs:o}=pf(e),i={},a={},s={};return Object.keys(o).forEach(c=>{const l=o[c],d=l.name,p=t[c],f=l.control.type==="boolean"?`?${d}`:d;p!==o[c].defaultValue||aa.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 l=t[c];a[`.${c}`]=l}),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 bz(e,t){if(!e?.cssProperties?.length)return;const{args:r}=ff(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&&aa.renderDefaultValues)?` ${a}: ${s}`:null}).filter(o=>o!==null).join(`;
1045
+ `);return n?` ${e.tagName} {
1046
+ ${n};
1047
+ }`:""}function vz(e,t){if(!e?.cssParts?.length)return;const{args:r}=mf(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}) {
1048
+ ${i.split(`
1049
+ `).map(a=>` ${a}`).join(`
1050
+ `)}
1051
+ }`:null}).filter(n=>n!==null).join(`
1052
+
1053
+ `)}`}function Ez(e,t){if(!e?.cssStates?.length)return;const{args:r}=hf(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}) {
1054
+ ${i.split(`
1055
+ `).map(a=>` ${a}`).join(`
1056
+ `)}
1057
+ }`:null}).filter(n=>n!==null).join(`
1058
+
1059
+ `)}`}function wz(e,t,r){if(!e?.slots?.length||Ja("slots",r))return;const{args:n}=yf(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 l=document.createElement("div");l.innerHTML=s;for(const d of l.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===`
1060
+ `)&&(c+=d.textContent);return c}).filter(i=>i!==null&&i!=="").join(`
1061
+ `)}`;return o.trim()?ni(`
1062
+ ${o}
1063
+ `):""}function _z(e){Tz(e),setTimeout(()=>{const t=document.querySelector(e.tagName);As?.observe(t,{attributes:!0})})}function Tz(e){let t=!1;const r=oz()[1],{attrArgs:n}=pf(e);As||(As=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 gf=globalThis?.__WC_STORYBOOK_HELPERS_CONFIG__||{},Sz={typeRef:"parsedType",categoryOrder:["attributes","properties","slots","cssProps","cssParts","cssStates","methods","events"]};function Az(e){e={...Sz,...e},globalThis.__WC_STORYBOOK_HELPERS_CONFIG__=e,gf=e}function t4(e,t){gf=globalThis?.__WC_STORYBOOK_HELPERS_CONFIG__||{};const r=Rz(),n=Oz(r,e),o=n?.events?.map(s=>s.name)||[],i=xz(n,[]);return{args:xS(i),argTypes:i,reactArgs:Cz(n),reactArgTypes:PS(n),events:o,styleTemplate:s=>OS(n,s,[]),template:(s,c)=>yz(n,s,c,i,[],t?.setComponentVariable)}}function Rz(){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:
1064
+ https://www.npmjs.com/package/wc-storybook-helpers#before-you-install`);return e}function Oz(e,t){const r=sz(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.
1065
+ Additional information can be found here:
1066
+ https://custom-elements-manifest.open-wc.org/analyzer/getting-started/#supported-jsdoc`);return r}function xz(e,t){const r=ff(e),n=mf(e),o=yf(e),i=pf(e),a=pz(e),s=hf(e),c=SS(e),l={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),gf.categoryOrder?.forEach(p=>{t?.includes(p)||Object.assign(d,l[p])}),d}function xS(e){const t={};for(const[r,n]of Object.entries(e))n?.control&&(t[r]=Pz(n.defaultValue)||"");return t}function Pz(e){if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e}function PS(e,t){const r=ff(e),n=mf(e),o=yf(e),i=dz(e),a=TS(e),s=hf(e),c=SS(e),l=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 l.categoryOrder?.forEach(f=>{p={...p,...d[f]||{}}}),p}function Cz(e){const t=xS(PS(e)),r=Object.entries(TS(e)).map(([n])=>({[n]:()=>{}})).reduce((n,o)=>({...n,...o}),{});return{...t,...r}}const Nz="1.0.0",Iz="",Mz=JSON.parse(`[{"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":"TooltipMixin","module":"/src/util/TooltipMixin.js"},{"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/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/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/dropdown/Dropdown.ts","declarations":[{"kind":"class","description":"A dropdown component that renders a trigger button and manages a floating panel\\ncontaining a \`btu-dropdown-menu\`.\\n\\nUses the native Popover API and CSS anchor positioning for panel management.\\nThe trigger button is built with existing \`btu-button-*\` classes.\\n\\n**Trigger button styling:** Set \`--button-*\` CSS custom properties on \`<btu-dropdown>\`\\nor a parent element to customize the trigger via CSS inheritance (e.g.,\\n\`--button-border-radius\`, \`--button-color-background\`). See\\n\`tailwind-plugin-button.ts\` for available props.","name":"Dropdown","cssProperties":[{"description":"Panel background color (default: white)","name":"--dropdown-panel-background"},{"description":"Panel border color (default: gray-200)","name":"--dropdown-panel-border-color"},{"description":"Panel border radius (default: borderRadius.lg)","name":"--dropdown-panel-border-radius"},{"description":"Panel minimum width (default: max(12rem, anchor-size(width)))","name":"--dropdown-panel-min-width"},{"description":"Item background color (default: transparent)","name":"--dropdown-item-background"},{"description":"Item text color (default: gray-700)","name":"--dropdown-item-color"},{"description":"Item hover background (default: gray-100)","name":"--dropdown-item-hover-background"},{"description":"Item hover text color (default: gray-900)","name":"--dropdown-item-hover-color"},{"description":"Selected item background (default: primary-50)","name":"--dropdown-item-selected-background"},{"description":"Selected item text color (default: primary-700)","name":"--dropdown-item-selected-color"},{"description":"Item font size (default: fontSize.sm)","name":"--dropdown-item-font-size"},{"description":"Divider line color (default: gray-200)","name":"--dropdown-divider-color"},{"description":"Empty state text color (default: gray-400)","name":"--dropdown-empty-color"}],"slots":[{"description":"A \`btu-dropdown-menu\` element containing \`btu-dropdown-item\` children","name":""}],"members":[{"kind":"field","name":"label","type":{"text":"string"},"default":"''","description":"Trigger button text.","attribute":"label"},{"kind":"field","name":"open","type":{"text":"boolean"},"default":"false","description":"Panel visibility state. Can be set programmatically (e.g., for tour UIs)\\n— syncs to \`showPopover()\`/\`hidePopover()\` in \`updated()\`.","attribute":"open","reflects":true},{"kind":"field","name":"placement","type":{"text":"Placement"},"default":"'bottom-start'","description":"Panel placement: 'bottom-start', 'bottom-end', 'top-start', 'top-end'.","attribute":"placement"},{"kind":"field","name":"size","type":{"text":"Size"},"default":"'medium'","description":"Button size: 'small', 'medium', 'large'.","attribute":"size"},{"kind":"field","name":"disabled","type":{"text":"boolean"},"default":"false","description":"Prevents opening.","attribute":"disabled","reflects":true},{"kind":"field","name":"variant","type":{"text":"Variant"},"default":"'secondary'","description":"Button variant: 'primary', 'secondary', 'tertiary', 'primary-clear', 'secondary-clear', 'tertiary-clear'.","attribute":"variant"},{"kind":"field","name":"iconSymbol","type":{"text":"string"},"default":"''","description":"Lucide icon symbol for the trigger.","attribute":"icon-symbol"},{"kind":"field","name":"iconPosition","type":{"text":"'leading' | 'trailing'"},"default":"'leading'","description":"Icon position: 'leading' or 'trailing'.","attribute":"icon-position"},{"kind":"field","name":"iconOnly","type":{"text":"boolean"},"default":"false","description":"Hides label, shows icon only.","attribute":"icon-only"},{"kind":"field","name":"stayOpenOnSelect","type":{"text":"boolean"},"default":"false","description":"Keeps panel open on item click.","attribute":"stay-open-on-select"},{"kind":"field","name":"noChevron","type":{"text":"boolean"},"default":"false","description":"Hides the chevron icon on the trigger button.","attribute":"no-chevron","reflects":true},{"kind":"method","name":"_getButtonClasses","privacy":"private","return":{"type":{"text":"string"}},"description":"Build the button class string based on variant and size"},{"kind":"method","name":"_showPanel","privacy":"private","return":{"type":{"text":"void"}},"description":"Show the dropdown panel"},{"kind":"method","name":"_hidePanel","privacy":"private","return":{"type":{"text":"void"}},"description":"Hide the dropdown panel"}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and initialization","name":"btu-dropdown-ready"},{"type":{"text":"CustomEvent"},"description":"Fired when the dropdown panel opens","name":"btu-dropdown-show"},{"type":{"text":"CustomEvent"},"description":"Fired when the dropdown panel closes","name":"btu-dropdown-hide"},{"type":{"text":"CustomEvent<{label: string, selected: boolean}>"},"description":"Fired when a menu item is activated (bubbles from btu-dropdown-item)","name":"btu-dropdown-item-select"},{"type":{"text":"CustomEvent<{label: string, favorited: boolean}>"},"description":"Fired when a menu item's favorite is toggled (bubbles from btu-dropdown-item)","name":"btu-dropdown-item-favorite"}],"attributes":[{"name":"label","type":{"text":"string"},"default":"''","description":"Trigger button text.","fieldName":"label","attribute":"label"},{"name":"open","type":{"text":"boolean"},"default":"false","description":"Panel visibility state. Can be set programmatically (e.g., for tour UIs)\\n— syncs to \`showPopover()\`/\`hidePopover()\` in \`updated()\`.","fieldName":"open","attribute":"open"},{"name":"placement","type":{"text":"Placement"},"default":"'bottom-start'","description":"Panel placement: 'bottom-start', 'bottom-end', 'top-start', 'top-end'.","fieldName":"placement","attribute":"placement"},{"name":"size","type":{"text":"Size"},"default":"'medium'","description":"Button size: 'small', 'medium', 'large'.","fieldName":"size","attribute":"size"},{"name":"disabled","type":{"text":"boolean"},"default":"false","description":"Prevents opening.","fieldName":"disabled","attribute":"disabled"},{"name":"variant","type":{"text":"Variant"},"default":"'secondary'","description":"Button variant: 'primary', 'secondary', 'tertiary', 'primary-clear', 'secondary-clear', 'tertiary-clear'.","fieldName":"variant","attribute":"variant"},{"name":"icon-symbol","type":{"text":"string"},"default":"''","description":"Lucide icon symbol for the trigger.","fieldName":"iconSymbol","attribute":"icon-symbol"},{"name":"icon-position","type":{"text":"'leading' | 'trailing'"},"default":"'leading'","description":"Icon position: 'leading' or 'trailing'.","fieldName":"iconPosition","attribute":"icon-position"},{"name":"icon-only","type":{"text":"boolean"},"default":"false","description":"Hides label, shows icon only.","fieldName":"iconOnly","attribute":"icon-only"},{"name":"stay-open-on-select","type":{"text":"boolean"},"default":"false","description":"Keeps panel open on item click.","fieldName":"stayOpenOnSelect","attribute":"stay-open-on-select"},{"name":"no-chevron","type":{"text":"boolean"},"default":"false","description":"Hides the chevron icon on the trigger button.","fieldName":"noChevron","attribute":"no-chevron"}],"mixins":[{"name":"TooltipMixin","module":"/src/util/TooltipMixin.js"},{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-dropdown","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"Dropdown","module":"src/components/dropdown/Dropdown.ts"}},{"kind":"custom-element-definition","name":"btu-dropdown","declaration":{"name":"Dropdown","module":"src/components/dropdown/Dropdown.ts"}}]},{"kind":"javascript-module","path":"src/components/dropdown/DropdownItem.ts","declarations":[{"kind":"class","description":"A menu item component for use inside \`btu-dropdown-menu\`.\\n\\nRenders as a menu item, divider, or subhead depending on the \`type\` property.\\nSupports checkbox mode (inherited from parent menu), icons, keyboard shortcuts,\\nand favorite toggles.","name":"DropdownItem","members":[{"kind":"field","name":"label","type":{"text":"string"},"default":"''","description":"Display text for the item.","attribute":"label"},{"kind":"field","name":"type","type":{"text":"'default' | 'divider' | 'subhead'"},"default":"'default'","description":"Item type: 'default', 'divider', or 'subhead'.","attribute":"type"},{"kind":"field","name":"iconSymbol","type":{"text":"string"},"default":"''","description":"Lucide icon symbol.","attribute":"icon-symbol"},{"kind":"field","name":"shortcut","type":{"text":"string"},"default":"''","description":"Keyboard shortcut display text.","attribute":"shortcut"},{"kind":"field","name":"disabled","type":{"text":"boolean"},"default":"false","description":"Whether the item is disabled.","attribute":"disabled"},{"kind":"field","name":"selected","type":{"text":"boolean"},"default":"false","description":"Whether the item is selected/checked.","attribute":"selected","reflects":true},{"kind":"field","name":"favorited","type":{"text":"boolean"},"default":"false","description":"Whether the item is favorited.","attribute":"favorited"},{"kind":"method","name":"_toggleFavorite","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"e","type":{"text":"Event"}}],"description":"Toggle favorite state"},{"kind":"method","name":"_handleClick","privacy":"private","return":{"type":{"text":"void"}}}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render","name":"btu-dropdown-item-ready"},{"type":{"text":"CustomEvent<{label: string, selected: boolean}>"},"description":"Fired when item is activated","name":"btu-dropdown-item-select"},{"type":{"text":"CustomEvent<{label: string, favorited: boolean}>"},"description":"Fired when favorite is toggled","name":"btu-dropdown-item-favorite"}],"attributes":[{"name":"label","type":{"text":"string"},"default":"''","description":"Display text for the item.","fieldName":"label","attribute":"label"},{"name":"type","type":{"text":"'default' | 'divider' | 'subhead'"},"default":"'default'","description":"Item type: 'default', 'divider', or 'subhead'.","fieldName":"type","attribute":"type"},{"name":"icon-symbol","type":{"text":"string"},"default":"''","description":"Lucide icon symbol.","fieldName":"iconSymbol","attribute":"icon-symbol"},{"name":"shortcut","type":{"text":"string"},"default":"''","description":"Keyboard shortcut display text.","fieldName":"shortcut","attribute":"shortcut"},{"name":"disabled","type":{"text":"boolean"},"default":"false","description":"Whether the item is disabled.","fieldName":"disabled","attribute":"disabled"},{"name":"selected","type":{"text":"boolean"},"default":"false","description":"Whether the item is selected/checked.","fieldName":"selected","attribute":"selected"},{"name":"favorited","type":{"text":"boolean"},"default":"false","description":"Whether the item is favorited.","fieldName":"favorited","attribute":"favorited"}],"mixins":[{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-dropdown-item","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"DropdownItem","module":"src/components/dropdown/DropdownItem.ts"}},{"kind":"custom-element-definition","name":"btu-dropdown-item","declaration":{"name":"DropdownItem","module":"src/components/dropdown/DropdownItem.ts"}}]},{"kind":"javascript-module","path":"src/components/dropdown/DropdownMenu.ts","declarations":[{"kind":"class","description":"A menu container component that provides keyboard navigation and ARIA menu semantics.\\n\\nContains \`btu-dropdown-item\` children and manages roving tabindex, typeahead search,\\nand keyboard navigation following the WAI-ARIA Menu Button Pattern.","name":"DropdownMenu","cssProperties":[{"description":"Empty state text color (default: gray-400)","name":"--dropdown-empty-color"}],"slots":[{"description":"Menu items (\`btu-dropdown-item\` elements)","name":""}],"members":[{"kind":"field","name":"name","type":{"text":"string"},"default":"''","description":"Accessible name for the menu, displayed in header when header is true.","attribute":"name"},{"kind":"field","name":"header","type":{"text":"boolean"},"default":"false","description":"Show header bar with menu name.","attribute":"header"},{"kind":"field","name":"checkbox","type":{"text":"boolean"},"default":"false","description":"Enable checkbox mode for items (menuitemcheckbox role).","attribute":"checkbox"},{"kind":"field","name":"icon","type":{"text":"boolean"},"default":"false","description":"Show icons before each item.","attribute":"icon"},{"kind":"field","name":"iconSymbol","type":{"text":"string"},"default":"''","description":"Fallback Lucide icon symbol for items without their own.","attribute":"icon-symbol"},{"kind":"field","name":"favorites","type":{"text":"boolean"},"default":"false","description":"Show favorite toggle on each item.","attribute":"favorites"},{"kind":"field","name":"shortcuts","type":{"text":"boolean"},"default":"false","description":"Show keyboard shortcut text on each item.","attribute":"shortcuts"},{"kind":"field","name":"emptyMessage","type":{"text":"string"},"default":"'No items available'","description":"Message displayed when the menu has no focusable items.","attribute":"empty-message"},{"kind":"method","name":"_configureItems","privacy":"private","return":{"type":{"text":"void"}},"description":"Configure all child items with menu-level settings"},{"kind":"method","name":"_getAllItems","privacy":"private","return":{"type":{"text":"DropdownItem[]"}},"description":"Get all btu-dropdown-item children"},{"kind":"method","name":"_getFocusableItems","privacy":"private","return":{"type":{"text":"DropdownItem[]"}},"description":"Get only focusable items (default type, skip dividers/subheads)"},{"kind":"method","name":"_getCurrentFocusIndex","privacy":"private","return":{"type":{"text":"number"}},"parameters":[{"name":"focusable","type":{"text":"DropdownItem[]"}}],"description":"Find the current focused item index"},{"kind":"method","name":"_findNextIndex","privacy":"private","return":{"type":{"text":"number"}},"parameters":[{"name":"focusable","type":{"text":"DropdownItem[]"}},{"name":"current","type":{"text":"number"}},{"name":"direction","type":{"text":"1 | -1"}}],"description":"Find next index wrapping around, moving in direction (+1 or -1)"},{"kind":"method","name":"_handleTypeahead","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"char","type":{"text":"string"}},{"name":"focusable","type":{"text":"DropdownItem[]"}}],"description":"Typeahead character matching with 500ms accumulation"},{"kind":"field","name":"_isEmpty","type":{"text":"boolean"},"privacy":"private","description":"Check whether the menu has zero focusable items","readonly":true}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render","name":"btu-dropdown-menu-ready"}],"attributes":[{"name":"name","type":{"text":"string"},"default":"''","description":"Accessible name for the menu, displayed in header when header is true.","fieldName":"name","attribute":"name"},{"name":"header","type":{"text":"boolean"},"default":"false","description":"Show header bar with menu name.","fieldName":"header","attribute":"header"},{"name":"checkbox","type":{"text":"boolean"},"default":"false","description":"Enable checkbox mode for items (menuitemcheckbox role).","fieldName":"checkbox","attribute":"checkbox"},{"name":"icon","type":{"text":"boolean"},"default":"false","description":"Show icons before each item.","fieldName":"icon","attribute":"icon"},{"name":"icon-symbol","type":{"text":"string"},"default":"''","description":"Fallback Lucide icon symbol for items without their own.","fieldName":"iconSymbol","attribute":"icon-symbol"},{"name":"favorites","type":{"text":"boolean"},"default":"false","description":"Show favorite toggle on each item.","fieldName":"favorites","attribute":"favorites"},{"name":"shortcuts","type":{"text":"boolean"},"default":"false","description":"Show keyboard shortcut text on each item.","fieldName":"shortcuts","attribute":"shortcuts"},{"name":"empty-message","type":{"text":"string"},"default":"'No items available'","description":"Message displayed when the menu has no focusable items.","fieldName":"emptyMessage","attribute":"empty-message"}],"mixins":[{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-dropdown-menu","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"DropdownMenu","module":"src/components/dropdown/DropdownMenu.ts"}},{"kind":"custom-element-definition","name":"btu-dropdown-menu","declaration":{"name":"DropdownMenu","module":"src/components/dropdown/DropdownMenu.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":"SVG stroke width as a unitless number in viewBox units; scales visually with icon size (default: 2)","name":"--Icon-stroke-width"},{"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"}}]},{"kind":"javascript-module","path":"src/components/icon-button/IconButton.ts","declarations":[{"kind":"class","description":"Surfaces the different actions someone can perform in an interface where space is limited.\\n\\nUses an icon to communicate the action and supports multiple visual types and sizes.\\nTooltip support is built-in for accessibility in compact layouts.","name":"IconButton","members":[{"kind":"field","name":"name","type":{"text":"string | undefined"},"description":"Optional name for the button which can be used to identify the button in a callback.","attribute":"name"},{"kind":"field","name":"type","type":{"text":"IconButtonType"},"default":"'primary'","description":"Specifies the type of icon-button, controlling the visual style.","attribute":"type"},{"kind":"field","name":"iconSymbol","type":{"text":"string | undefined"},"description":"Lucide icon name.","attribute":"icon-symbol"},{"kind":"field","name":"size","type":{"text":"IconButtonSize"},"default":"'medium'","description":"Specifies the size of icon-button.","attribute":"size"},{"kind":"field","name":"destructive","type":{"text":"boolean"},"default":"false","description":"Specifies an icon-button will be used to take any destructive action overriding the\\ndefault color used for the icon-button type with the error color.","attribute":"destructive"},{"kind":"field","name":"disabled","type":{"text":"boolean"},"default":"false","description":"Disables the button, preventing interaction and indicating an inactive state.","attribute":"disabled"},{"kind":"method","name":"_relayTooltipAttrs","privacy":"private","return":{"type":{"text":"void"}}},{"kind":"method","name":"_handleClick","privacy":"private","return":{"type":{"text":"void"}}},{"kind":"method","name":"_buildButtonClasses","privacy":"private","return":{"type":{"text":"string"}}}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and initialization","name":"btu-icon-button-ready"},{"type":{"text":"CustomEvent<{name: string | undefined}>"},"description":"Fired when the button is clicked","name":"btu-icon-button-click"}],"attributes":[{"name":"name","type":{"text":"string | undefined"},"description":"Optional name for the button which can be used to identify the button in a callback.","fieldName":"name","attribute":"name"},{"name":"type","type":{"text":"IconButtonType"},"default":"'primary'","description":"Specifies the type of icon-button, controlling the visual style.","fieldName":"type","attribute":"type"},{"name":"icon-symbol","type":{"text":"string | undefined"},"description":"Lucide icon name.","fieldName":"iconSymbol","attribute":"icon-symbol"},{"name":"size","type":{"text":"IconButtonSize"},"default":"'medium'","description":"Specifies the size of icon-button.","fieldName":"size","attribute":"size"},{"name":"destructive","type":{"text":"boolean"},"default":"false","description":"Specifies an icon-button will be used to take any destructive action overriding the\\ndefault color used for the icon-button type with the error color.","fieldName":"destructive","attribute":"destructive"},{"name":"disabled","type":{"text":"boolean"},"default":"false","description":"Disables the button, preventing interaction and indicating an inactive state.","fieldName":"disabled","attribute":"disabled"}],"mixins":[{"name":"TooltipMixin","module":"/src/util/TooltipMixin.js"},{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-icon-button","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"IconButton","module":"src/components/icon-button/IconButton.ts"}},{"kind":"custom-element-definition","name":"btu-icon-button","declaration":{"name":"IconButton","module":"src/components/icon-button/IconButton.ts"}}]},{"kind":"javascript-module","path":"src/components/pagination/Pagination.ts","declarations":[{"kind":"class","description":"A pagination component for navigating through paged content.\\n\\nSupports multiple layout variants (Search, Widget, Widget Small, Calendar)\\nthrough configurable props and pseudo-slots.","name":"Pagination","cssProperties":[{"description":"Background color for select, buttons, and jumper","name":"--pagination-color-background"},{"description":"Text/icon color","name":"--pagination-color-foreground"}],"slots":[{"description":"Custom page-size selector (replaces built-in select)","name":"page-size"},{"description":"Custom jumper content (e.g., page dropdown, \\"Today\\" button)","name":"jumper"}],"members":[{"kind":"field","name":"page","type":{"text":"number"},"default":"1","description":"Current page number (1-based)","attribute":"page"},{"kind":"field","name":"pageSize","type":{"text":"number"},"default":"0","description":"Number of items per page","attribute":"page-size"},{"kind":"field","name":"disabled","type":{"text":"boolean"},"default":"false","description":"Disables all pagination controls","attribute":"disabled"},{"kind":"field","name":"loading","type":{"text":"boolean"},"default":"false","description":"Shows loading spinner and dims controls","attribute":"loading"},{"kind":"field","name":"hideOnSinglePage","type":{"text":"boolean"},"default":"true","description":"Hide controls when there is only one page","attribute":"hide-on-single-page"},{"kind":"field","name":"pageSizeChanger","type":{"text":"boolean"},"default":"true","description":"Show the page size dropdown","attribute":"page-size-changer"},{"kind":"field","name":"pageSizeOptions","type":{"text":"string"},"default":"'10, 20, 50'","description":"Comma-separated page size options","attribute":"page-size-options"},{"kind":"field","name":"totalItems","type":{"text":"number"},"default":"0","description":"Total number of items across all pages","attribute":"total-items"},{"kind":"field","name":"boundaryButtons","type":{"text":"boolean"},"default":"true","description":"Show first and last page buttons","attribute":"boundary-buttons"},{"kind":"field","name":"hideTotalCount","type":{"text":"boolean"},"default":"false","description":"Hide the item count display (e.g., \\"1-10 of 200\\")","attribute":"hide-total-count"},{"kind":"field","name":"label","type":{"text":"string | undefined"},"description":"Accessible label for the pagination nav landmark","attribute":"label"},{"kind":"field","name":"_parsedPageSizeOptions","type":{"text":"number[]"},"privacy":"private","readonly":true},{"kind":"field","name":"_totalPages","type":{"text":"number"},"privacy":"private","readonly":true},{"kind":"field","name":"_startItem","type":{"text":"number"},"privacy":"private","readonly":true},{"kind":"field","name":"_endItem","type":{"text":"number"},"privacy":"private","readonly":true},{"kind":"method","name":"_setupSlots","privacy":"private","return":{"type":{"text":"void"}}},{"kind":"method","name":"_goToFirstPage","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"e","type":{"text":"Event"}}]},{"kind":"method","name":"_goToPreviousPage","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"e","type":{"text":"Event"}}]},{"kind":"method","name":"_goToNextPage","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"e","type":{"text":"Event"}}]},{"kind":"method","name":"_goToLastPage","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"e","type":{"text":"Event"}}]},{"kind":"method","name":"_manageBoundaryFocus","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"clickedButton","type":{"text":"IconButton"}}]},{"kind":"method","name":"_onPageSizeChange","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"e","type":{"text":"Event"}}]}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render","name":"btu-pagination-ready"},{"type":{"text":"CustomEvent<{page: number, pageSize: number}>"},"description":"Fired on page navigation","name":"btu-pagination-change"},{"type":{"text":"CustomEvent<{page: number, pageSize: number}>"},"description":"Fired on page size change","name":"btu-pagination-page-size-change"}],"attributes":[{"name":"page","type":{"text":"number"},"default":"1","description":"Current page number (1-based)","fieldName":"page","attribute":"page"},{"name":"page-size","type":{"text":"number"},"default":"0","description":"Number of items per page","fieldName":"pageSize","attribute":"page-size"},{"name":"disabled","type":{"text":"boolean"},"default":"false","description":"Disables all pagination controls","fieldName":"disabled","attribute":"disabled"},{"name":"loading","type":{"text":"boolean"},"default":"false","description":"Shows loading spinner and dims controls","fieldName":"loading","attribute":"loading"},{"name":"hide-on-single-page","type":{"text":"boolean"},"default":"true","description":"Hide controls when there is only one page","fieldName":"hideOnSinglePage","attribute":"hide-on-single-page"},{"name":"page-size-changer","type":{"text":"boolean"},"default":"true","description":"Show the page size dropdown","fieldName":"pageSizeChanger","attribute":"page-size-changer"},{"name":"page-size-options","type":{"text":"string"},"default":"'10, 20, 50'","description":"Comma-separated page size options","fieldName":"pageSizeOptions","attribute":"page-size-options"},{"name":"total-items","type":{"text":"number"},"default":"0","description":"Total number of items across all pages","fieldName":"totalItems","attribute":"total-items"},{"name":"boundary-buttons","type":{"text":"boolean"},"default":"true","description":"Show first and last page buttons","fieldName":"boundaryButtons","attribute":"boundary-buttons"},{"name":"hide-total-count","type":{"text":"boolean"},"default":"false","description":"Hide the item count display (e.g., \\"1-10 of 200\\")","fieldName":"hideTotalCount","attribute":"hide-total-count"},{"name":"label","type":{"text":"string | undefined"},"description":"Accessible label for the pagination nav landmark","fieldName":"label","attribute":"label"}],"mixins":[{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-pagination","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"Pagination","module":"src/components/pagination/Pagination.ts"}},{"kind":"custom-element-definition","name":"btu-pagination","declaration":{"name":"Pagination","module":"src/components/pagination/Pagination.ts"}}]},{"kind":"javascript-module","path":"src/components/popover/Popover.ts","declarations":[{"kind":"class","description":"A popover component for displaying rich interactive content anchored to a trigger element.\\n\\nUses the native HTML Popover API for top-layer rendering, light dismiss (click-outside\\nand Escape for click triggers), and focus management. CSS anchor positioning handles\\nviewport-aware placement.\\n\\nFor click triggers (\`popover=\\"auto\\"\`), the browser provides:\\n- Light dismiss (Escape key and click-outside)\\n- Top-layer rendering (no z-index needed)\\n- Focus restoration on close\\n- \`autofocus\` support — add \`autofocus\` to an element inside \`slot=\\"content\\"\`\\n to have it receive focus when the popover opens","name":"Popover","slots":[{"description":"The element that activates the popover","name":"trigger"},{"description":"Rich HTML content displayed inside the popover panel","name":"content"}],"members":[{"kind":"field","name":"position","type":{"text":"'top' | 'bottom' | 'left' | 'right'"},"default":"'bottom'","description":"Position relative to the trigger element.\\nAuto-flips when constrained by the viewport.","attribute":"position"},{"kind":"field","name":"trigger","type":{"text":"'click' | 'hover' | 'focus'"},"default":"'click'","description":"How the popover is activated.\\n- 'click': Toggle on click with light dismiss\\n- 'hover': Show on mouseenter with delay\\n- 'focus': Show on focusin","attribute":"trigger"},{"kind":"field","name":"delay","type":{"text":"number"},"default":"300","description":"Show delay in milliseconds (hover trigger only).","attribute":"delay"},{"kind":"field","name":"offset","type":{"text":"PopoverOffset | null"},"default":"null","description":"Gap between trigger and popover (sm=4px, md=8px, lg=12px, xl=16px).","attribute":"offset"},{"kind":"field","name":"noArrow","type":{"text":"boolean"},"default":"false","description":"Hide the arrow pseudo-element.","attribute":"no-arrow"},{"kind":"field","name":"open","type":{"text":"boolean"},"default":"false","description":"Programmatic open/close state (reflected).","attribute":"open","reflects":true},{"kind":"field","name":"panelLabel","type":{"text":"string"},"default":"''","description":"Accessible label for the popover panel (applied as aria-label on the dialog).","attribute":"panel-label"},{"kind":"field","name":"_onTriggerMouseLeave","privacy":"private"},{"kind":"field","name":"_onTriggerFocusIn","privacy":"private"},{"kind":"field","name":"_onTriggerFocusOut","privacy":"private"},{"kind":"field","name":"_onPanelMouseEnter","privacy":"private"},{"kind":"field","name":"_onPanelMouseLeave","privacy":"private"},{"kind":"field","name":"_onNativeToggle","privacy":"private"},{"kind":"field","name":"_onKeyDown","privacy":"private"}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired when the popover opens","name":"btu-popover-show"},{"type":{"text":"CustomEvent"},"description":"Fired when the popover closes","name":"btu-popover-hide"}],"attributes":[{"name":"position","type":{"text":"'top' | 'bottom' | 'left' | 'right'"},"default":"'bottom'","description":"Position relative to the trigger element.\\nAuto-flips when constrained by the viewport.","fieldName":"position","attribute":"position"},{"name":"trigger","type":{"text":"'click' | 'hover' | 'focus'"},"default":"'click'","description":"How the popover is activated.\\n- 'click': Toggle on click with light dismiss\\n- 'hover': Show on mouseenter with delay\\n- 'focus': Show on focusin","fieldName":"trigger","attribute":"trigger"},{"name":"delay","type":{"text":"number"},"default":"300","description":"Show delay in milliseconds (hover trigger only).","fieldName":"delay","attribute":"delay"},{"name":"offset","type":{"text":"PopoverOffset | null"},"default":"null","description":"Gap between trigger and popover (sm=4px, md=8px, lg=12px, xl=16px).","fieldName":"offset","attribute":"offset"},{"name":"noArrow","type":{"text":"boolean"},"default":"false","description":"Hide the arrow pseudo-element.","fieldName":"noArrow"},{"name":"open","type":{"text":"boolean"},"default":"false","description":"Programmatic open/close state (reflected).","fieldName":"open","attribute":"open"},{"name":"panel-label","type":{"text":"string"},"default":"''","description":"Accessible label for the popover panel (applied as aria-label on the dialog).","fieldName":"panelLabel","attribute":"panel-label"},{"name":"no-arrow","type":{"text":"boolean"},"default":"false","description":"Hide the arrow pseudo-element.","attribute":"noArrow","fieldName":"noArrow"}],"mixins":[{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-popover","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"Popover","module":"src/components/popover/Popover.ts"}},{"kind":"custom-element-definition","name":"btu-popover","declaration":{"name":"Popover","module":"src/components/popover/Popover.ts"}}]},{"kind":"javascript-module","path":"src/components/switch/Switch.ts","declarations":[{"kind":"class","description":"A toggle switch component for binary on/off states.\\n\\nUses a hidden checkbox internally for accessibility, styled via the\\n\`btu-switch\` Tailwind plugin classes.","name":"Switch","cssProperties":[{"description":"Background color when the toggle is checked (default: var(--btu-theme-primary-700))","name":"--switch-color-track-on"},{"description":"Background color when the toggle is unchecked (default: var(--btu-theme-gray-300))","name":"--switch-color-track-off"},{"description":"Color of the sliding circular handle (default: var(--btu-theme-white))","name":"--switch-color-knob"},{"description":"Distance between the switch and the text label (default: 0.75rem)","name":"--switch-label-spacing"},{"description":"Size of the track icons (default: sm 0.5rem, md 0.625rem, lg 0.75rem)","name":"--switch-track-icon-size"}],"members":[{"kind":"field","name":"size","type":{"text":"'small' | 'medium' | 'large'"},"default":"'small'","description":"Controls the physical dimensions of the switch and the associated label typography.","attribute":"size"},{"kind":"field","name":"label","type":{"text":"string | undefined"},"description":"The primary text displayed next to the toggle.","attribute":"label"},{"kind":"field","name":"description","type":{"text":"string | undefined"},"description":"Optional helper text or secondary information displayed below the label.","attribute":"description"},{"kind":"field","name":"checked","type":{"text":"boolean"},"default":"false","description":"The current state of the switch (on/off).","attribute":"checked"},{"kind":"field","name":"disabled","type":{"text":"boolean"},"default":"false","description":"If true, the toggle is non-interactive and visually muted.","attribute":"disabled"},{"kind":"field","name":"name","type":{"text":"string | undefined"},"description":"Name of the control for form participation.","attribute":"name"},{"kind":"field","name":"labelPosition","type":{"text":"'start' | 'end'"},"default":"'end'","description":"Determines if the label appears to the left or right of the switch.","attribute":"label-position"},{"kind":"field","name":"onIcon","type":{"text":"string | undefined"},"description":"Lucide icon name shown on the track when the switch is checked (on).","attribute":"on-icon"},{"kind":"field","name":"offIcon","type":{"text":"string | undefined"},"description":"Lucide icon name shown on the track when the switch is unchecked (off).","attribute":"off-icon"},{"kind":"method","name":"_onInputChange","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"e","type":{"text":"Event"}}]},{"kind":"method","name":"_onFocus","privacy":"private","return":{"type":{"text":"void"}}},{"kind":"method","name":"_toggleInput","privacy":"private","return":{"type":{"text":"void"}}}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after the toggle is first rendered and initialized","name":"btu-switch-ready"},{"type":{"text":"CustomEvent<{ checked: boolean }>"},"description":"Fired when the user toggles the switch","name":"btu-switch-change"},{"type":{"text":"CustomEvent"},"description":"Fired when the component gains focus","name":"btu-switch-focus"}],"attributes":[{"name":"size","type":{"text":"'small' | 'medium' | 'large'"},"default":"'small'","description":"Controls the physical dimensions of the switch and the associated label typography.","fieldName":"size","attribute":"size"},{"name":"label","type":{"text":"string | undefined"},"description":"The primary text displayed next to the toggle.","fieldName":"label","attribute":"label"},{"name":"description","type":{"text":"string | undefined"},"description":"Optional helper text or secondary information displayed below the label.","fieldName":"description","attribute":"description"},{"name":"checked","type":{"text":"boolean"},"default":"false","description":"The current state of the switch (on/off).","fieldName":"checked","attribute":"checked"},{"name":"disabled","type":{"text":"boolean"},"default":"false","description":"If true, the toggle is non-interactive and visually muted.","fieldName":"disabled","attribute":"disabled"},{"name":"name","type":{"text":"string | undefined"},"description":"Name of the control for form participation.","fieldName":"name","attribute":"name"},{"name":"label-position","type":{"text":"'start' | 'end'"},"default":"'end'","description":"Determines if the label appears to the left or right of the switch.","fieldName":"labelPosition","attribute":"label-position"},{"name":"on-icon","type":{"text":"string | undefined"},"description":"Lucide icon name shown on the track when the switch is checked (on).","fieldName":"onIcon","attribute":"on-icon"},{"name":"off-icon","type":{"text":"string | undefined"},"description":"Lucide icon name shown on the track when the switch is unchecked (off).","fieldName":"offIcon","attribute":"off-icon"}],"mixins":[{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-switch","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"Switch","module":"src/components/switch/Switch.ts"}},{"kind":"custom-element-definition","name":"btu-switch","declaration":{"name":"Switch","module":"src/components/switch/Switch.ts"}}]},{"kind":"javascript-module","path":"src/components/widget/Widget.ts","declarations":[{"kind":"class","description":"A widget component for displaying content with header, body, and footer sections.\\n\\n## Architecture: Light DOM + Manager Pattern\\n\\nThis component uses **Light DOM** (no Shadow Root) with the **Manager Pattern**:\\n- User-provided children are physically moved into internal containers\\n- Movement is based on \`slot\` attributes (pseudo-slots)\\n- The \`onFind\` utility automatically redistributes dynamically-added content\\n\\n### Node Redistribution Rules\\n- \`slot=\\"controls\\"\` → Moved to header actions area (before system buttons)\\n- \`slot=\\"footer\\"\` → Moved to footer container\\n- *(no slot)* → Moved to body container (default)\\n\\n## Features\\n\\n- **Collapsible**: Optional chevron toggle to hide/show body and footer\\n- **Fullscreen**: Optional maximize button for fullscreen mode via \`:state(fullscreen)\` custom state\\n- **Dynamic Content**: \`onFind\` handles content added after initialization\\n- **Accessible**: Full ARIA support and keyboard navigation\\n- **Themeable**: CSS custom properties for colors and spacing\\n\\n## Accessibility\\n\\n- **Collapse toggle**: \`aria-expanded\`, \`aria-controls\`, \`aria-label\`\\n- **Fullscreen toggle**: \`aria-pressed\`, \`aria-label\`\\n- **Body region**: \`role=\\"region\\"\`, \`aria-labelledby\` linking to heading\\n- **Tab order**: Natural flow via physical DOM placement\\n- **Collapsed content**: Hidden via \`inert\` attribute and CSS grid collapse","name":"Widget","cssProperties":[{"description":"Body and footer background color (default: --btu-theme-white)","name":"--widget-background"},{"description":"Widget border and dividers (default: 1px solid gray-200)","name":"--widget-border"},{"description":"Header background color (default: transparent)","name":"--header-background"}],"slots":[{"description":"Default pseudo-slot: elements without slot attribute are moved to body","name":""},{"description":"Pseudo-slot: buttons/actions moved to header actions area","name":"controls"},{"description":"Pseudo-slot: content moved to footer container","name":"footer"}],"members":[{"kind":"field","name":"_idCounter","type":{"text":"number"},"privacy":"private","static":true,"default":"0"},{"kind":"field","name":"_internals","privacy":"private"},{"kind":"field","name":"heading","type":{"text":"string"},"default":"''","description":"Heading text displayed in the header.","attribute":"heading"},{"kind":"field","name":"collapsible","type":{"text":"boolean"},"default":"false","description":"Whether the widget can be collapsed/expanded.\\nWhen true, a chevron toggle button appears in the header.","attribute":"collapsible"},{"kind":"field","name":"collapsed","type":{"text":"boolean"},"default":"false","description":"Whether the widget is currently collapsed.\\nWhen true, body and footer are hidden. Implies collapsible.","attribute":"collapsed"},{"kind":"field","name":"fullscreenable","type":{"text":"boolean"},"default":"false","description":"Whether the widget can enter fullscreen mode.\\nWhen true, a fullscreen toggle button appears in the header.","attribute":"fullscreenable"},{"kind":"field","name":"_isFullscreen","type":{"text":"boolean"},"privacy":"private","default":"false"},{"kind":"field","name":"_collapseTooltip","privacy":"private","default":"new TooltipController(this, { target: 'button[data-tooltip=\\"collapse\\"]', text: () => (this.collapsed ? 'Expand' : 'Collapse'), position: 'bottom', noArrow: true, offset: 'sm', })"},{"kind":"field","name":"_fullscreenTooltip","privacy":"private","default":"new TooltipController(this, { target: 'button[data-tooltip=\\"fullscreen\\"]', text: () => (this._isFullscreen ? 'Exit fullscreen' : 'Enter fullscreen'), position: 'bottom', noArrow: true, offset: 'sm', })"},{"kind":"field","name":"isFullscreen","type":{"text":"boolean"},"description":"Whether the widget is currently in fullscreen mode (read-only).\\nUse \`btu-widget-fullscreen-changed\` event to react to changes.","readonly":true}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and redistribution","name":"btu-widget-ready"},{"type":{"text":"CustomEvent<{collapsed: boolean}>"},"description":"Fired when collapsed state changes","name":"btu-widget-collapse-changed"},{"type":{"text":"CustomEvent<{fullscreen: boolean}>"},"description":"Fired when fullscreen state changes","name":"btu-widget-fullscreen-changed"}],"attributes":[{"name":"heading","type":{"text":"string"},"default":"''","description":"Heading text displayed in the header.","fieldName":"heading","attribute":"heading"},{"name":"collapsible","type":{"text":"boolean"},"default":"false","description":"Whether the widget can be collapsed/expanded.\\nWhen true, a chevron toggle button appears in the header.","fieldName":"collapsible","attribute":"collapsible"},{"name":"collapsed","type":{"text":"boolean"},"default":"false","description":"Whether the widget is currently collapsed.\\nWhen true, body and footer are hidden. Implies collapsible.","fieldName":"collapsed","attribute":"collapsed"},{"name":"fullscreenable","type":{"text":"boolean"},"default":"false","description":"Whether the widget can enter fullscreen mode.\\nWhen true, a fullscreen toggle button appears in the header.","fieldName":"fullscreenable","attribute":"fullscreenable"},{"description":"When set, collapsed state is automatically persisted to LocalStorage","name":"id"}],"cssStates":[{"description":"Applied when the widget is collapsed, targetable via :state(collapsed)","name":"collapsed"},{"description":"Applied when the widget is in fullscreen mode, targetable via :state(fullscreen)","name":"fullscreen"}],"mixins":[{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-widget","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"Widget","module":"src/components/widget/Widget.ts"}},{"kind":"custom-element-definition","name":"btu-widget","declaration":{"name":"Widget","module":"src/components/widget/Widget.ts"}}]}]`),jz={schemaVersion:Nz,readme:Iz,modules:Mz};function ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ht.apply(null,arguments)}function kz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fi(e,t){return Fi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Fi(e,t)}function qz(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fi(e,t)}function Fc(e){return Fc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Fc(e)}function Lz(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function CS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(CS=function(){return!!e})()}function Dz(e,t,r){if(CS())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Fi(o,r.prototype),o}function Bc(e){var t=typeof Map=="function"?new Map:void 0;return Bc=function(r){if(r===null||!Lz(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return Dz(r,arguments,Fc(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Fi(n,r)},Bc(e)}var ir=(function(e){qz(t,e);function t(r){var n;return n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+r+" for more information.")||this,kz(n)}return t})(Bc(Error));function bu(e){return Math.round(e*255)}function $z(e,t,r){return bu(e)+","+bu(t)+","+bu(r)}function Rs(e,t,r,n){if(n===void 0&&(n=$z),t===0)return n(r,r,r);var o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*t,a=i*(1-Math.abs(o%2-1)),s=0,c=0,l=0;o>=0&&o<1?(s=i,c=a):o>=1&&o<2?(s=a,c=i):o>=2&&o<3?(c=i,l=a):o>=3&&o<4?(c=a,l=i):o>=4&&o<5?(s=a,l=i):o>=5&&o<6&&(s=i,l=a);var d=r-i/2,p=s+d,f=c+d,m=l+d;return n(p,f,m)}var Qy={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function Fz(e){if(typeof e!="string")return e;var t=e.toLowerCase();return Qy[t]?"#"+Qy[t]:e}var Bz=/^#[a-fA-F0-9]{6}$/,Uz=/^#[a-fA-F0-9]{8}$/,Jz=/^#[a-fA-F0-9]{3}$/,Hz=/^#[a-fA-F0-9]{4}$/,vu=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,Vz=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,zz=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Gz=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function co(e){if(typeof e!="string")throw new ir(3);var t=Fz(e);if(t.match(Bz))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(Uz)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(Jz))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(Hz)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var o=vu.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=Vz.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var a=zz.exec(t);if(a){var s=parseInt(""+a[1],10),c=parseInt(""+a[2],10)/100,l=parseInt(""+a[3],10)/100,d="rgb("+Rs(s,c,l)+")",p=vu.exec(d);if(!p)throw new ir(4,t,d);return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10)}}var f=Gz.exec(t.substring(0,50));if(f){var m=parseInt(""+f[1],10),y=parseInt(""+f[2],10)/100,g=parseInt(""+f[3],10)/100,v="rgb("+Rs(m,y,g)+")",b=vu.exec(v);if(!b)throw new ir(4,t,v);return{red:parseInt(""+b[1],10),green:parseInt(""+b[2],10),blue:parseInt(""+b[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new ir(5)}function Wz(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),i=Math.min(t,r,n),a=(o+i)/2;if(o===i)return e.alpha!==void 0?{hue:0,saturation:0,lightness:a,alpha:e.alpha}:{hue:0,saturation:0,lightness:a};var s,c=o-i,l=a>.5?c/(2-o-i):c/(o+i);switch(o){case t:s=(r-n)/c+(r<n?6:0);break;case r:s=(n-t)/c+2;break;default:s=(t-r)/c+4;break}return s*=60,e.alpha!==void 0?{hue:s,saturation:l,lightness:a,alpha:e.alpha}:{hue:s,saturation:l,lightness:a}}function Zr(e){return Wz(co(e))}var Yz=function(e){return e.length===7&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e},Uc=Yz;function hn(e){var t=e.toString(16);return t.length===1?"0"+t:t}function Eu(e){return hn(Math.round(e*255))}function Kz(e,t,r){return Uc("#"+Eu(e)+Eu(t)+Eu(r))}function NS(e,t,r){return Rs(e,t,r,Kz)}function Xz(e,t,r){if(typeof e=="object"&&t===void 0&&r===void 0)return NS(e.hue,e.saturation,e.lightness);throw new ir(1)}function Qz(e,t,r,n){if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?NS(e.hue,e.saturation,e.lightness):"rgba("+Rs(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new ir(2)}function Jc(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Uc("#"+hn(e)+hn(t)+hn(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Uc("#"+hn(e.red)+hn(e.green)+hn(e.blue));throw new ir(6)}function po(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=co(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?Jc(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Jc(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new ir(7)}var Zz=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},e9=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},t9=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},r9=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function en(e){if(typeof e!="object")throw new ir(8);if(e9(e))return po(e);if(Zz(e))return Jc(e);if(r9(e))return Qz(e);if(t9(e))return Xz(e);throw new ir(8)}function IS(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):IS(e,t,n)}}function It(e){return IS(e,e.length,[])}function n9(e,t){if(t==="transparent")return t;var r=Zr(t);return en(ht({},r,{hue:r.hue+parseFloat(e)}))}It(n9);function _o(e,t,r){return Math.max(e,Math.min(t,r))}function o9(e,t){if(t==="transparent")return t;var r=Zr(t);return en(ht({},r,{lightness:_o(0,1,r.lightness-parseFloat(e))}))}var i9=It(o9),a9=i9;function s9(e,t){if(t==="transparent")return t;var r=Zr(t);return en(ht({},r,{saturation:_o(0,1,r.saturation-parseFloat(e))}))}It(s9);function l9(e,t){if(t==="transparent")return t;var r=Zr(t);return en(ht({},r,{lightness:_o(0,1,r.lightness+parseFloat(e))}))}var u9=It(l9),c9=u9;function d9(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=co(t),o=ht({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),i=co(r),a=ht({},i,{alpha:typeof i.alpha=="number"?i.alpha:1}),s=o.alpha-a.alpha,c=parseFloat(e)*2-1,l=c*s===-1?c:c+s,d=1+c*s,p=(l/d+1)/2,f=1-p,m={red:Math.floor(o.red*p+a.red*f),green:Math.floor(o.green*p+a.green*f),blue:Math.floor(o.blue*p+a.blue*f),alpha:o.alpha*parseFloat(e)+a.alpha*(1-parseFloat(e))};return po(m)}var p9=It(d9),MS=p9;function f9(e,t){if(t==="transparent")return t;var r=co(t),n=typeof r.alpha=="number"?r.alpha:1,o=ht({},r,{alpha:_o(0,1,(n*100+parseFloat(e)*100)/100)});return po(o)}var m9=It(f9),h9=m9;function y9(e,t){if(t==="transparent")return t;var r=Zr(t);return en(ht({},r,{saturation:_o(0,1,r.saturation+parseFloat(e))}))}It(y9);function g9(e,t){return t==="transparent"?t:en(ht({},Zr(t),{hue:parseFloat(e)}))}It(g9);function b9(e,t){return t==="transparent"?t:en(ht({},Zr(t),{lightness:parseFloat(e)}))}It(b9);function v9(e,t){return t==="transparent"?t:en(ht({},Zr(t),{saturation:parseFloat(e)}))}It(v9);function E9(e,t){return t==="transparent"?t:MS(parseFloat(e),"rgb(0, 0, 0)",t)}It(E9);function w9(e,t){return t==="transparent"?t:MS(parseFloat(e),"rgb(255, 255, 255)",t)}It(w9);function _9(e,t){if(t==="transparent")return t;var r=co(t),n=typeof r.alpha=="number"?r.alpha:1,o=ht({},r,{alpha:_o(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return po(o)}var T9=It(_9),r4=T9,le={primary:"#FF4785",secondary:"#006DEB",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F6F9FC",light:"#EEF2F6",mediumlight:"#ECF2F9",medium:"#D9E5F2",mediumdark:"#737F8C",dark:"#5C6570",darker:"#454C54",darkest:"#2E3338",border:"hsl(212 50% 30% / 0.15)",positive:"#66BF3C",warning:"#E69D00",negative:"#FF4400",critical:"#FFFFFF",defaultText:"#2E3338",inverseText:"#FFFFFF",positiveText:"#427C27",warningText:"#955B1E",negativeText:"#C23400"},gr={app:"#F6F9FC",bar:le.lightest,content:le.lightest,preview:le.lightest,gridCellSize:10,positive:"#F1FFEB",warning:"#FFF9EB",negative:"#FFF0EB",critical:"#D13800"},_r={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},Hc={light:{fgColor:{default:le.darkest,muted:le.dark,accent:le.secondary,inverse:le.lightest,positive:"#427C27",warning:"#7A4100",negative:"#C23400",critical:"#FFFFFF"},bgColor:{default:le.lightest,muted:gr.app,positive:"#F1FFEB",warning:"#FFF7EB",negative:"#FFF0EB",critical:"#D13800"},borderColor:{default:le.border,muted:"hsl(0 0% 0% / 0.1)",inverse:"hsl(0 0% 100% / 0.1)",positive:"#BFE7AC",warning:"#FFCE85",negative:"#FFC3AD",critical:"hsl(16 100% 100% / 0)"}},dark:{fgColor:{default:"#C9CCCF",muted:"#95999D",accent:"#479DFF",inverse:"#1B1C1D",positive:"#86CE64",warning:"#FFAD33",negative:"#FF6933",critical:"#FF6933"},bgColor:{default:"#222325",muted:"#1B1C1D",positive:"hsl(101 100% 100% / 0)",warning:"hsl(101 100% 100% / 0)",negative:"hsl(101 100% 100% / 0)",critical:"hsl(101 100% 100% / 0)"},borderColor:{default:"hsl(0 0% 100% / 0.1)",muted:"hsl(0 0% 100% / 0.5)",inverse:"hsl(0 0% 0% / 0.1)",positive:"hsl(101 52% 64% / 0.15)",warning:"hsl(36 100% 64% / 0.15)",negative:"hsl(16 100% 64% / 0.15)",critical:"#FF6933"}}},S9={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#479DFF",appBg:"#1B1C1D",appContentBg:"#222325",appHoverBg:"#233952",appPreviewBg:le.lightest,appBorderColor:"hsl(0 0% 100% / 0.1)",appBorderRadius:4,fontBase:_r.fonts.base,fontCode:_r.fonts.mono,textColor:"#C9CCCF",textInverseColor:"#1B1C1D",textMutedColor:"#95999D",barTextColor:"#95999D",barHoverColor:"#70B3FF",barSelectedColor:"#479DFF",barBg:"#222325",buttonBg:"#1B1C1D",buttonBorder:"hsl(0 0% 100% / 0.1)",booleanBg:"#1B1C1D",booleanSelectedBg:"#292B2E",inputBg:"#1B1C1D",inputBorder:"hsl(0 0% 100% / 0.1)",inputTextColor:"#C9CCCF",inputBorderRadius:4},A9=S9,R9={base:"light",colorPrimary:le.primary,colorSecondary:le.secondary,appBg:gr.app,appContentBg:le.lightest,appHoverBg:"#DBECFF",appPreviewBg:le.lightest,appBorderColor:le.border,appBorderRadius:4,fontBase:_r.fonts.base,fontCode:_r.fonts.mono,textColor:le.darkest,textInverseColor:le.lightest,textMutedColor:le.dark,barTextColor:le.dark,barHoverColor:"#005CC7",barSelectedColor:"#0063D6",barBg:le.lightest,buttonBg:gr.app,buttonBorder:le.medium,booleanBg:le.mediumlight,booleanSelectedBg:le.lightest,inputBg:le.lightest,inputBorder:le.border,inputTextColor:le.darkest,inputBorderRadius:4},Vc=R9;const{logger:O9}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:x9}=__STORYBOOK_MODULE_GLOBAL__;var{window:wu}=x9,P9=e=>({color:e}),C9=e=>typeof e!="string"?(O9.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1):!0,N9=e=>!/(gradient|var|calc)/.test(e),I9=(e,t)=>e==="darken"?po(`${a9(1,t)}`,.95):e==="lighten"?po(`${c9(1,t)}`,.95):t,M9=e=>t=>{if(!C9(t)||!N9(t))return t;try{return I9(e,t)}catch{return t}},j9=M9("lighten"),bf=()=>!wu||!wu.matchMedia?"light":wu.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",Zy={light:Vc,dark:A9},Ha=bf(),mi={...Zy,normal:Zy[Ha]},vf=(e={base:Ha},t)=>{let r={...mi[Ha],...mi[e.base]||{},...e,base:mi[e.base]?e.base:Ha};return{...t,...r,barSelectedColor:e.barSelectedColor||r.colorSecondary}};function k9(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _u={exports:{}},he={};var eg;function q9(){if(eg)return he;eg=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"),l=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),f=Symbol.iterator;function m(L){return L===null||typeof L!="object"?null:(L=f&&L[f]||L["@@iterator"],typeof L=="function"?L:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,v={};function b(L,D,G){this.props=L,this.context=D,this.refs=v,this.updater=G||y}b.prototype.isReactComponent={},b.prototype.setState=function(L,D){if(typeof L!="object"&&typeof L!="function"&&L!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,L,D,"setState")},b.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function T(){}T.prototype=b.prototype;function R(L,D,G){this.props=L,this.context=D,this.refs=v,this.updater=G||y}var x=R.prototype=new T;x.constructor=R,g(x,b.prototype),x.isPureReactComponent=!0;var C=Array.isArray;function E(){}var _={H:null,A:null,T:null,S:null},S=Object.prototype.hasOwnProperty;function A(L,D,G){var Q=G.ref;return{$$typeof:e,type:L,key:D,ref:Q!==void 0?Q:null,props:G}}function $(L,D){return A(L.type,D,L.props)}function k(L){return typeof L=="object"&&L!==null&&L.$$typeof===e}function H(L){var D={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(G){return D[G]})}var I=/\/+/g;function O(L,D){return typeof L=="object"&&L!==null&&L.key!=null?H(""+L.key):D.toString(36)}function q(L){switch(L.status){case"fulfilled":return L.value;case"rejected":throw L.reason;default:switch(typeof L.status=="string"?L.then(E,E):(L.status="pending",L.then(function(D){L.status==="pending"&&(L.status="fulfilled",L.value=D)},function(D){L.status==="pending"&&(L.status="rejected",L.reason=D)})),L.status){case"fulfilled":return L.value;case"rejected":throw L.reason}}throw L}function F(L,D,G,Q,X){var Y=typeof L;(Y==="undefined"||Y==="boolean")&&(L=null);var ie=!1;if(L===null)ie=!0;else switch(Y){case"bigint":case"string":case"number":ie=!0;break;case"object":switch(L.$$typeof){case e:case t:ie=!0;break;case d:return ie=L._init,F(ie(L._payload),D,G,Q,X)}}if(ie)return X=X(L),ie=Q===""?"."+O(L,0):Q,C(X)?(G="",ie!=null&&(G=ie.replace(I,"$&/")+"/"),F(X,D,G,"",function(B){return B})):X!=null&&(k(X)&&(X=$(X,G+(X.key==null||L&&L.key===X.key?"":(""+X.key).replace(I,"$&/")+"/")+ie)),D.push(X)),1;ie=0;var se=Q===""?".":Q+":";if(C(L))for(var _e=0;_e<L.length;_e++)Q=L[_e],Y=se+O(Q,_e),ie+=F(Q,D,G,Y,X);else if(_e=m(L),typeof _e=="function")for(L=_e.call(L),_e=0;!(Q=L.next()).done;)Q=Q.value,Y=se+O(Q,_e++),ie+=F(Q,D,G,Y,X);else if(Y==="object"){if(typeof L.then=="function")return F(q(L),D,G,Q,X);throw D=String(L),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return ie}function V(L,D,G){if(L==null)return L;var Q=[],X=0;return F(L,Q,"","",function(Y){return D.call(G,Y,X++)}),Q}function K(L){if(L._status===-1){var D=L._result;D=D(),D.then(function(G){(L._status===0||L._status===-1)&&(L._status=1,L._result=G)},function(G){(L._status===0||L._status===-1)&&(L._status=2,L._result=G)}),L._status===-1&&(L._status=0,L._result=D)}if(L._status===1)return L._result.default;throw L._result}var oe=typeof reportError=="function"?reportError:function(L){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof L=="object"&&L!==null&&typeof L.message=="string"?String(L.message):String(L),error:L});if(!window.dispatchEvent(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",L);return}console.error(L)},ue={map:V,forEach:function(L,D,G){V(L,function(){D.apply(this,arguments)},G)},count:function(L){var D=0;return V(L,function(){D++}),D},toArray:function(L){return V(L,function(D){return D})||[]},only:function(L){if(!k(L))throw Error("React.Children.only expected to receive a single React element child.");return L}};return he.Activity=p,he.Children=ue,he.Component=b,he.Fragment=r,he.Profiler=o,he.PureComponent=R,he.StrictMode=n,he.Suspense=c,he.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_,he.__COMPILER_RUNTIME={__proto__:null,c:function(L){return _.H.useMemoCache(L)}},he.cache=function(L){return function(){return L.apply(null,arguments)}},he.cacheSignal=function(){return null},he.cloneElement=function(L,D,G){if(L==null)throw Error("The argument must be a React element, but you passed "+L+".");var Q=g({},L.props),X=L.key;if(D!=null)for(Y in D.key!==void 0&&(X=""+D.key),D)!S.call(D,Y)||Y==="key"||Y==="__self"||Y==="__source"||Y==="ref"&&D.ref===void 0||(Q[Y]=D[Y]);var Y=arguments.length-2;if(Y===1)Q.children=G;else if(1<Y){for(var ie=Array(Y),se=0;se<Y;se++)ie[se]=arguments[se+2];Q.children=ie}return A(L.type,X,Q)},he.createContext=function(L){return L={$$typeof:a,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null},L.Provider=L,L.Consumer={$$typeof:i,_context:L},L},he.createElement=function(L,D,G){var Q,X={},Y=null;if(D!=null)for(Q in D.key!==void 0&&(Y=""+D.key),D)S.call(D,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(X[Q]=D[Q]);var ie=arguments.length-2;if(ie===1)X.children=G;else if(1<ie){for(var se=Array(ie),_e=0;_e<ie;_e++)se[_e]=arguments[_e+2];X.children=se}if(L&&L.defaultProps)for(Q in ie=L.defaultProps,ie)X[Q]===void 0&&(X[Q]=ie[Q]);return A(L,Y,X)},he.createRef=function(){return{current:null}},he.forwardRef=function(L){return{$$typeof:s,render:L}},he.isValidElement=k,he.lazy=function(L){return{$$typeof:d,_payload:{_status:-1,_result:L},_init:K}},he.memo=function(L,D){return{$$typeof:l,type:L,compare:D===void 0?null:D}},he.startTransition=function(L){var D=_.T,G={};_.T=G;try{var Q=L(),X=_.S;X!==null&&X(G,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(E,oe)}catch(Y){oe(Y)}finally{D!==null&&G.types!==null&&(D.types=G.types),_.T=D}},he.unstable_useCacheRefresh=function(){return _.H.useCacheRefresh()},he.use=function(L){return _.H.use(L)},he.useActionState=function(L,D,G){return _.H.useActionState(L,D,G)},he.useCallback=function(L,D){return _.H.useCallback(L,D)},he.useContext=function(L){return _.H.useContext(L)},he.useDebugValue=function(){},he.useDeferredValue=function(L,D){return _.H.useDeferredValue(L,D)},he.useEffect=function(L,D){return _.H.useEffect(L,D)},he.useEffectEvent=function(L){return _.H.useEffectEvent(L)},he.useId=function(){return _.H.useId()},he.useImperativeHandle=function(L,D,G){return _.H.useImperativeHandle(L,D,G)},he.useInsertionEffect=function(L,D){return _.H.useInsertionEffect(L,D)},he.useLayoutEffect=function(L,D){return _.H.useLayoutEffect(L,D)},he.useMemo=function(L,D){return _.H.useMemo(L,D)},he.useOptimistic=function(L,D){return _.H.useOptimistic(L,D)},he.useReducer=function(L,D,G){return _.H.useReducer(L,D,G)},he.useRef=function(L){return _.H.useRef(L)},he.useState=function(L){return _.H.useState(L)},he.useSyncExternalStore=function(L,D,G){return _.H.useSyncExternalStore(L,D,G)},he.useTransition=function(){return _.H.useTransition()},he.version="19.2.0",he}var tg;function L9(){return tg||(tg=1,_u.exports=q9()),_u.exports}var Me=L9();const D9=k9(Me),n4=eA({__proto__:null,default:D9},[Me]);var $9=oa({"../../node_modules/react-is/cjs/react-is.production.min.js"(e){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,d=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,m=t?Symbol.for("react.suspense_list"):60120,y=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,T=t?Symbol.for("react.responder"):60118,R=t?Symbol.for("react.scope"):60119;function x(E){if(typeof E=="object"&&E!==null){var _=E.$$typeof;switch(_){case r:switch(E=E.type,E){case l:case d:case o:case a:case i:case f:return E;default:switch(E=E&&E.$$typeof,E){case c:case p:case g:case y:case s:return E;default:return _}}case n:return _}}}function C(E){return x(E)===d}e.AsyncMode=l,e.ConcurrentMode=d,e.ContextConsumer=c,e.ContextProvider=s,e.Element=r,e.ForwardRef=p,e.Fragment=o,e.Lazy=g,e.Memo=y,e.Portal=n,e.Profiler=a,e.StrictMode=i,e.Suspense=f,e.isAsyncMode=function(E){return C(E)||x(E)===l},e.isConcurrentMode=C,e.isContextConsumer=function(E){return x(E)===c},e.isContextProvider=function(E){return x(E)===s},e.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===r},e.isForwardRef=function(E){return x(E)===p},e.isFragment=function(E){return x(E)===o},e.isLazy=function(E){return x(E)===g},e.isMemo=function(E){return x(E)===y},e.isPortal=function(E){return x(E)===n},e.isProfiler=function(E){return x(E)===a},e.isStrictMode=function(E){return x(E)===i},e.isSuspense=function(E){return x(E)===f},e.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===o||E===d||E===a||E===i||E===f||E===m||typeof E=="object"&&E!==null&&(E.$$typeof===g||E.$$typeof===y||E.$$typeof===s||E.$$typeof===c||E.$$typeof===p||E.$$typeof===b||E.$$typeof===T||E.$$typeof===R||E.$$typeof===v)},e.typeOf=x}}),F9=oa({"../../node_modules/react-is/index.js"(e,t){t.exports=$9()}}),jS=oa({"../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(e,t){var r=F9(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[r.ForwardRef]=i,s[r.Memo]=a;function c(v){return r.isMemo(v)?a:s[v.$$typeof]||n}var l=Object.defineProperty,d=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,y=Object.prototype;function g(v,b,T){if(typeof b!="string"){if(y){var R=m(b);R&&R!==y&&g(v,R,T)}var x=d(b);p&&(x=x.concat(p(b)));for(var C=c(v),E=c(b),_=0;_<x.length;++_){var S=x[_];if(!o[S]&&!(T&&T[S])&&!(E&&E[S])&&!(C&&C[S])){var A=f(b,S);try{l(v,S,A)}catch{}}}}return v}t.exports=g}});function B9(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function U9(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var J9=(function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(U9(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=B9(n);try{o.insertRule(r,o.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var n;return(n=r.parentNode)==null?void 0:n.removeChild(r)}),this.tags=[],this.ctr=0},e})(),dt="-ms-",Os="-moz-",Pe="-webkit-",kS="comm",Ef="rule",wf="decl",H9="@import",qS="@keyframes",V9="@layer",z9=Math.abs,yl=String.fromCharCode,G9=Object.assign;function W9(e,t){return at(e,0)^45?(((t<<2^at(e,0))<<2^at(e,1))<<2^at(e,2))<<2^at(e,3):0}function LS(e){return e.trim()}function Y9(e,t){return(e=t.exec(e))?e[0]:e}function Ce(e,t,r){return e.replace(t,r)}function zc(e,t){return e.indexOf(t)}function at(e,t){return e.charCodeAt(t)|0}function Bi(e,t,r){return e.slice(t,r)}function tr(e){return e.length}function _f(e){return e.length}function Pa(e,t){return t.push(e),e}function K9(e,t){return e.map(t).join("")}var gl=1,fo=1,DS=0,_t=0,Xe=0,To="";function bl(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:gl,column:fo,length:a,return:""}}function Xo(e,t){return G9(bl("",null,null,"",null,null,0),e,{length:-e.length},t)}function X9(){return Xe}function Q9(){return Xe=_t>0?at(To,--_t):0,fo--,Xe===10&&(fo=1,gl--),Xe}function Pt(){return Xe=_t<DS?at(To,_t++):0,fo++,Xe===10&&(fo=1,gl++),Xe}function sr(){return at(To,_t)}function Va(){return _t}function sa(e,t){return Bi(To,e,t)}function Ui(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $S(e){return gl=fo=1,DS=tr(To=e),_t=0,[]}function FS(e){return To="",e}function za(e){return LS(sa(_t-1,Gc(e===91?e+2:e===40?e+1:e)))}function Z9(e){for(;(Xe=sr())&&Xe<33;)Pt();return Ui(e)>2||Ui(Xe)>3?"":" "}function eG(e,t){for(;--t&&Pt()&&!(Xe<48||Xe>102||Xe>57&&Xe<65||Xe>70&&Xe<97););return sa(e,Va()+(t<6&&sr()==32&&Pt()==32))}function Gc(e){for(;Pt();)switch(Xe){case e:return _t;case 34:case 39:e!==34&&e!==39&&Gc(Xe);break;case 40:e===41&&Gc(e);break;case 92:Pt();break}return _t}function tG(e,t){for(;Pt()&&e+Xe!==57&&!(e+Xe===84&&sr()===47););return"/*"+sa(t,_t-1)+"*"+yl(e===47?e:Pt())}function rG(e){for(;!Ui(sr());)Pt();return sa(e,_t)}function nG(e){return FS(Ga("",null,null,null,[""],e=$S(e),0,[0],e))}function Ga(e,t,r,n,o,i,a,s,c){for(var l=0,d=0,p=a,f=0,m=0,y=0,g=1,v=1,b=1,T=0,R="",x=o,C=i,E=n,_=R;v;)switch(y=T,T=Pt()){case 40:if(y!=108&&at(_,p-1)==58){zc(_+=Ce(za(T),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:_+=za(T);break;case 9:case 10:case 13:case 32:_+=Z9(y);break;case 92:_+=eG(Va()-1,7);continue;case 47:switch(sr()){case 42:case 47:Pa(oG(tG(Pt(),Va()),t,r),c);break;default:_+="/"}break;case 123*g:s[l++]=tr(_)*b;case 125*g:case 59:case 0:switch(T){case 0:case 125:v=0;case 59+d:b==-1&&(_=Ce(_,/\f/g,"")),m>0&&tr(_)-p&&Pa(m>32?ng(_+";",n,r,p-1):ng(Ce(_," ","")+";",n,r,p-2),c);break;case 59:_+=";";default:if(Pa(E=rg(_,t,r,l,d,o,s,R,x=[],C=[],p),i),T===123)if(d===0)Ga(_,t,E,E,x,i,p,s,C);else switch(f===99&&at(_,3)===110?100:f){case 100:case 108:case 109:case 115:Ga(e,E,E,n&&Pa(rg(e,E,E,0,0,o,s,R,o,x=[],p),C),o,C,p,s,n?x:C);break;default:Ga(_,E,E,E,[""],C,0,s,C)}}l=d=m=0,g=b=1,R=_="",p=a;break;case 58:p=1+tr(_),m=y;default:if(g<1){if(T==123)--g;else if(T==125&&g++==0&&Q9()==125)continue}switch(_+=yl(T),T*g){case 38:b=d>0?1:(_+="\f",-1);break;case 44:s[l++]=(tr(_)-1)*b,b=1;break;case 64:sr()===45&&(_+=za(Pt())),f=sr(),d=p=tr(R=_+=rG(Va())),T++;break;case 45:y===45&&tr(_)==2&&(g=0)}}return i}function rg(e,t,r,n,o,i,a,s,c,l,d){for(var p=o-1,f=o===0?i:[""],m=_f(f),y=0,g=0,v=0;y<n;++y)for(var b=0,T=Bi(e,p+1,p=z9(g=a[y])),R=e;b<m;++b)(R=LS(g>0?f[b]+" "+T:Ce(T,/&\f/g,f[b])))&&(c[v++]=R);return bl(e,t,r,o===0?Ef:s,c,l,d)}function oG(e,t,r){return bl(e,t,r,kS,yl(X9()),Bi(e,2,-2),0)}function ng(e,t,r,n){return bl(e,t,r,wf,Bi(e,0,n),Bi(e,n+1,-1),n)}function Gn(e,t){for(var r="",n=_f(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function iG(e,t,r,n){switch(e.type){case V9:if(e.children.length)break;case H9:case wf:return e.return=e.return||e.value;case kS:return"";case qS:return e.return=e.value+"{"+Gn(e.children,n)+"}";case Ef:e.value=e.props.join(",")}return tr(r=Gn(e.children,n))?e.return=e.value+"{"+r+"}":""}function aG(e){var t=_f(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}function sG(e){return function(t){t.root||(t=t.return)&&e(t)}}var og=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}};function BS(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var lG=function(e,t,r){for(var n=0,o=0;n=o,o=sr(),n===38&&o===12&&(t[r]=1),!Ui(o);)Pt();return sa(e,_t)},uG=function(e,t){var r=-1,n=44;do switch(Ui(n)){case 0:n===38&&sr()===12&&(t[r]=1),e[r]+=lG(_t-1,t,r);break;case 2:e[r]+=za(n);break;case 4:if(n===44){e[++r]=sr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=yl(n)}while(n=Pt());return e},cG=function(e,t){return FS(uG($S(e),t))},ig=new WeakMap,dG=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!ig.get(r))&&!n){ig.set(e,!0);for(var o=[],i=cG(t,o),a=r.props,s=0,c=0;s<i.length;s++)for(var l=0;l<a.length;l++,c++)e.props[c]=o[s]?i[s].replace(/&\f/g,a[l]):a[l]+" "+i[s]}}},pG=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function US(e,t){switch(W9(e,t)){case 5103:return Pe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Pe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Pe+e+Os+e+dt+e+e;case 6828:case 4268:return Pe+e+dt+e+e;case 6165:return Pe+e+dt+"flex-"+e+e;case 5187:return Pe+e+Ce(e,/(\w+).+(:[^]+)/,Pe+"box-$1$2"+dt+"flex-$1$2")+e;case 5443:return Pe+e+dt+"flex-item-"+Ce(e,/flex-|-self/,"")+e;case 4675:return Pe+e+dt+"flex-line-pack"+Ce(e,/align-content|flex-|-self/,"")+e;case 5548:return Pe+e+dt+Ce(e,"shrink","negative")+e;case 5292:return Pe+e+dt+Ce(e,"basis","preferred-size")+e;case 6060:return Pe+"box-"+Ce(e,"-grow","")+Pe+e+dt+Ce(e,"grow","positive")+e;case 4554:return Pe+Ce(e,/([^-])(transform)/g,"$1"+Pe+"$2")+e;case 6187:return Ce(Ce(Ce(e,/(zoom-|grab)/,Pe+"$1"),/(image-set)/,Pe+"$1"),e,"")+e;case 5495:case 3959:return Ce(e,/(image-set\([^]*)/,Pe+"$1$`$1");case 4968:return Ce(Ce(e,/(.+:)(flex-)?(.*)/,Pe+"box-pack:$3"+dt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Pe+e+e;case 4095:case 3583:case 4068:case 2532:return Ce(e,/(.+)-inline(.+)/,Pe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(tr(e)-1-t>6)switch(at(e,t+1)){case 109:if(at(e,t+4)!==45)break;case 102:return Ce(e,/(.+:)(.+)-([^]+)/,"$1"+Pe+"$2-$3$1"+Os+(at(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~zc(e,"stretch")?US(Ce(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(at(e,t+1)!==115)break;case 6444:switch(at(e,tr(e)-3-(~zc(e,"!important")&&10))){case 107:return Ce(e,":",":"+Pe)+e;case 101:return Ce(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Pe+(at(e,14)===45?"inline-":"")+"box$3$1"+Pe+"$2$3$1"+dt+"$2box$3")+e}break;case 5936:switch(at(e,t+11)){case 114:return Pe+e+dt+Ce(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Pe+e+dt+Ce(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Pe+e+dt+Ce(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Pe+e+dt+e+e}return e}var fG=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case wf:e.return=US(e.value,e.length);break;case qS:return Gn([Xo(e,{value:Ce(e.value,"@","@"+Pe)})],n);case Ef:if(e.length)return K9(e.props,function(o){switch(Y9(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Gn([Xo(e,{props:[Ce(o,/:(read-\w+)/,":"+Os+"$1")]})],n);case"::placeholder":return Gn([Xo(e,{props:[Ce(o,/:(plac\w+)/,":"+Pe+"input-$1")]}),Xo(e,{props:[Ce(o,/:(plac\w+)/,":"+Os+"$1")]}),Xo(e,{props:[Ce(o,/:(plac\w+)/,dt+"input-$1")]})],n)}return""})}},mG=[fG],JS=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var g=y.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var n=e.stylisPlugins||mG,o={},i,a=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(y){for(var g=y.getAttribute("data-emotion").split(" "),v=1;v<g.length;v++)o[g[v]]=!0;a.push(y)});var s,c=[dG,pG];{var l,d=[iG,sG(function(y){l.insert(y)})],p=aG(c.concat(n,d)),f=function(y){return Gn(nG(y),p)};s=function(y,g,v,b){l=v,f(y?y+"{"+g.styles+"}":g.styles),b&&(m.inserted[g.name]=!0)}}var m={key:t,sheet:new J9({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:s};return m.sheet.hydrate(a),m};pl(jS());var hG=!0;function Tf(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var vl=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||hG===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},El=function(e,t,r){vl(e,t,r);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var o=t;do e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function yG(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var gG={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},bG=/[A-Z]|^ms/g,vG=/_EMO_([^_]+?)_([^]*?)_EMO_/g,HS=function(e){return e.charCodeAt(1)===45},ag=function(e){return e!=null&&typeof e!="boolean"},Tu=BS(function(e){return HS(e)?e:e.replace(bG,"-$&").toLowerCase()}),sg=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(vG,function(r,n,o){return rr={name:n,styles:o,next:rr},n})}return gG[e]!==1&&!HS(e)&&typeof t=="number"&&t!==0?t+"px":t};function Ji(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return rr={name:o.name,styles:o.styles,next:rr},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)rr={name:a.name,styles:a.styles,next:rr},a=a.next;var s=i.styles+";";return s}return EG(e,t,r)}case"function":{if(e!==void 0){var c=rr,l=r(e);return rr=c,Ji(e,t,l)}break}}var d=r;if(t==null)return d;var p=t[d];return p!==void 0?p:d}function EG(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Ji(e,t,r[o])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=i+"{"+t[s]+"}":ag(s)&&(n+=Tu(i)+":"+sg(i,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)ag(a[c])&&(n+=Tu(i)+":"+sg(i,a[c])+";");else{var l=Ji(e,t,a);switch(i){case"animation":case"animationName":{n+=Tu(i)+":"+l+";";break}default:n+=i+"{"+l+"}"}}}return n}var lg=/label:\s*([^\s;{]+)\s*(;|$)/g,rr;function la(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";rr=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=Ji(r,t,i);else{var a=i;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=Ji(r,t,e[s]),n){var c=i;o+=c[s]}lg.lastIndex=0;for(var l="",d;(d=lg.exec(o))!==null;)l+="-"+d[1];var p=yG(o)+l;return{name:p,styles:o,next:rr}}var wG=function(e){return e()},VS=Me.useInsertionEffect?Me.useInsertionEffect:!1,Sf=VS||wG,ug=VS||Me.useLayoutEffect,zS=Me.createContext(typeof HTMLElement<"u"?JS({key:"css"}):null);zS.Provider;var wl=function(e){return Me.forwardRef(function(t,r){var n=Me.useContext(zS);return e(t,n,r)})},Cn=Me.createContext({}),_G=function(){return Me.useContext(Cn)},TG=function(e,t){if(typeof t=="function"){var r=t(e);return r}return ht({},e,t)},SG=og(function(e){return og(function(t){return TG(e,t)})}),AG=function(e){var t=Me.useContext(Cn);return e.theme!==t&&(t=SG(t)(e.theme)),Me.createElement(Cn.Provider,{value:t},e.children)},Af={}.hasOwnProperty,Wc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",RG=function(e,t){var r={};for(var n in t)Af.call(t,n)&&(r[n]=t[n]);return r[Wc]=e,r},OG=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return vl(t,r,n),Sf(function(){return El(t,r,n)}),null},xG=wl(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[Wc],i=[n],a="";typeof e.className=="string"?a=Tf(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=la(i,void 0,Me.useContext(Cn));a+=t.key+"-"+s.name;var c={};for(var l in e)Af.call(e,l)&&l!=="css"&&l!==Wc&&(c[l]=e[l]);return c.className=a,r&&(c.ref=r),Me.createElement(Me.Fragment,null,Me.createElement(OG,{cache:t,serialized:s,isStringTag:typeof o=="string"}),Me.createElement(o,c))}),PG=xG;pl(jS());var Yc=function(e,t){var r=arguments;if(t==null||!Af.call(t,"css"))return Me.createElement.apply(void 0,r);var n=r.length,o=new Array(n);o[0]=PG,o[1]=RG(e,t);for(var i=2;i<n;i++)o[i]=r[i];return Me.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Yc||(Yc={}));wl(function(e,t){var r=e.styles,n=la([r],void 0,Me.useContext(Cn)),o=Me.useRef();return ug(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,c=document.querySelector('style[data-emotion="'+i+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),c!==null&&(s=!0,c.setAttribute("data-emotion",i),a.hydrate([c])),o.current=[a,s],function(){a.flush()}},[t]),ug(function(){var i=o.current,a=i[0],s=i[1];if(s){i[1]=!1;return}if(n.next!==void 0&&El(t,n.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});function _l(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return la(t)}function ua(){var e=_l.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var CG=function e(t){for(var r=t.length,n=0,o="";n<r;n++){var i=t[n];if(i!=null){var a=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))a=e(i);else{a="";for(var s in i)i[s]&&s&&(a&&(a+=" "),a+=s)}break}default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function NG(e,t,r){var n=[],o=Tf(e,n,r);return n.length<2?r:o+t(n)}var IG=function(e){var t=e.cache,r=e.serializedArr;return Sf(function(){for(var n=0;n<r.length;n++)El(t,r[n],!1)}),null};wl(function(e,t){var r=[],n=function(){for(var s=arguments.length,c=new Array(s),l=0;l<s;l++)c[l]=arguments[l];var d=la(c,t.registered);return r.push(d),vl(t,d,!1),t.key+"-"+d.name},o=function(){for(var s=arguments.length,c=new Array(s),l=0;l<s;l++)c[l]=arguments[l];return NG(t.registered,n,CG(c))},i={css:n,cx:o,theme:Me.useContext(Cn)},a=e.children(i);return Me.createElement(Me.Fragment,null,Me.createElement(IG,{cache:t,serializedArr:r}),a)});var MG=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,GS=BS(function(e){return MG.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),jG=GS,kG=function(e){return e!=="theme"},cg=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?jG:kG},dg=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(i){return e.__emotion_forwardProp(i)&&o(i)}:o}return typeof n!="function"&&r&&(n=e.__emotion_forwardProp),n},qG=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return vl(t,r,n),Sf(function(){return El(t,r,n)}),null},LG=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var s=dg(t,r,n),c=s||cg(o),l=!c("as");return function(){var d=arguments,p=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)p.push.apply(p,d);else{var f=d[0];p.push(f[0]);for(var m=d.length,y=1;y<m;y++)p.push(d[y],f[y])}var g=wl(function(v,b,T){var R=l&&v.as||o,x="",C=[],E=v;if(v.theme==null){E={};for(var _ in v)E[_]=v[_];E.theme=Me.useContext(Cn)}typeof v.className=="string"?x=Tf(b.registered,C,v.className):v.className!=null&&(x=v.className+" ");var S=la(p.concat(C),b.registered,E);x+=b.key+"-"+S.name,a!==void 0&&(x+=" "+a);var A=l&&s===void 0?cg(R):c,$={};for(var k in v)l&&k==="as"||A(k)&&($[k]=v[k]);return $.className=x,T&&($.ref=T),Me.createElement(Me.Fragment,null,Me.createElement(qG,{cache:b,serialized:S,isStringTag:typeof R=="string"}),Me.createElement(R,$))});return g.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=o,g.__emotion_styles=p,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return"."+a}}),g.withComponent=function(v,b){var T=e(v,ht({},r,b,{shouldForwardProp:dg(g,b,!0)}));return T.apply(void 0,p)},g}},DG=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Kc=LG.bind(null);DG.forEach(function(e){Kc[e]=Kc(e)});var WS=pl(jV(),1),YS=(0,WS.default)(1)(({typography:e})=>({body:{fontFamily:e.fonts.base,fontSize:e.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:e.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:e.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}}));(0,WS.default)(1)(({color:e,background:t,typography:r})=>{let n=YS({typography:r});return{...n,body:{...n.body,position:"fixed",width:"100vw",height:"100vh",overflow:"hidden",color:e.defaultText,background:t.app},hr:{...n.hr,borderTop:`1px solid ${e.border}`},".sb-sr-only, .sb-hidden-until-focus:not(:focus)":{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",border:0},".sb-hidden-until-focus":{opacity:0,transition:"opacity 150ms ease-out"},".sb-hidden-until-focus:focus":{opacity:1},"[data-sb-landmark]":{position:"relative"},"[data-sb-landmark]:focus-visible":{outline:"none"},"[data-sb-landmark]:focus-visible::after":{outline:`2px solid ${e.primary}`,outlineOffset:"-2px"},"[data-sb-landmark]::after":{content:"''",position:"absolute",inset:0,pointerEvents:"none"},".react-aria-Popover:focus-visible":{outline:"none"}}});var $G={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},FG=ua`
1067
+ from {
1068
+ transform: rotate(0deg);
1069
+ }
1070
+ to {
1071
+ transform: rotate(360deg);
1072
+ }
1073
+ `,KS=ua`
1074
+ 0%, 100% { opacity: 1; }
1075
+ 50% { opacity: .4; }
1076
+ `,BG=ua`
1077
+ 0% { transform: translateY(1px); }
1078
+ 25% { transform: translateY(0px); }
1079
+ 50% { transform: translateY(-3px); }
1080
+ 100% { transform: translateY(1px); }
1081
+ `,UG=ua`
1082
+ 0%, 100% { transform:translate3d(0,0,0); }
1083
+ 12.5%, 62.5% { transform:translate3d(-4px,0,0); }
1084
+ 37.5%, 87.5% { transform: translate3d(4px,0,0); }
1085
+ `,JG=_l`
1086
+ animation: ${KS} 1.5s ease-in-out infinite;
1087
+ color: transparent;
1088
+ cursor: progress;
1089
+ `,HG=_l`
1090
+ transition: all 150ms ease-out;
1091
+ transform: translate3d(0, 0, 0);
1092
+
1093
+ &:hover {
1094
+ transform: translate3d(0, -2px, 0);
1095
+ }
1096
+
1097
+ &:active {
1098
+ transform: translate3d(0, 0, 0);
1099
+ }
1100
+ `,VG={rotate360:FG,glow:KS,float:BG,jiggle:UG,inlineGlow:JG,hoverable:HG},zG={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},GG={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},WG=e=>Object.entries(e).reduce((t,[r,n])=>({...t,[r]:P9(n)}),{}),YG=({colors:e,mono:t})=>{let r=WG(e);return{token:{fontFamily:t,WebkitFontSmoothing:"antialiased","&.tag":r.red3,"&.comment":{...r.green1,fontStyle:"italic"},"&.prolog":{...r.green1,fontStyle:"italic"},"&.doctype":{...r.green1,fontStyle:"italic"},"&.cdata":{...r.green1,fontStyle:"italic"},"&.string":r.red1,"&.url":r.cyan1,"&.symbol":r.cyan1,"&.number":r.cyan1,"&.boolean":r.cyan1,"&.variable":r.cyan1,"&.constant":r.cyan1,"&.inserted":r.cyan1,"&.atrule":r.blue1,"&.keyword":r.blue1,"&.attr-value":r.blue1,"&.punctuation":r.gray1,"&.operator":r.gray1,"&.function":r.gray1,"&.deleted":r.red2,"&.important":{fontWeight:"bold"},"&.bold":{fontWeight:"bold"},"&.italic":{fontStyle:"italic"},"&.class-name":r.cyan2,"&.selector":r.red3,"&.attr-name":r.red4,"&.property":r.red4,"&.regex":r.red4,"&.entity":r.red4,"&.directive.tag .tag":{background:"#ffff00",...r.gray1}},"language-json .token.boolean":r.blue1,"language-json .token.number":r.blue1,"language-json .token.property":r.cyan2,namespace:{opacity:.7}}},KG={green1:"#008000",red1:"#A31515",red2:"#9a050f",red3:"#800000",red4:"#eb0000",gray1:"#393A34",cyan1:"#008380",cyan2:"#007ca0",blue1:"#0000ff",blue2:"#00009f"},XG={green1:"#95999D",red1:"#92C379",red2:"#9a050f",red3:"#A8FF60",red4:"#96CBFE",gray1:"#EDEDED",cyan1:"#C6C5FE",cyan2:"#FFFFB6",blue1:"#B474DD",blue2:"#00009f"},QG=e=>({primary:e.colorPrimary,secondary:e.colorSecondary,tertiary:le.tertiary,ancillary:le.ancillary,orange:le.orange,gold:le.gold,green:le.green,seafoam:le.seafoam,purple:le.purple,ultraviolet:le.ultraviolet,lightest:le.lightest,lighter:le.lighter,light:le.light,mediumlight:le.mediumlight,medium:le.medium,mediumdark:le.mediumdark,dark:le.dark,darker:le.darker,darkest:le.darkest,border:le.border,positive:le.positive,negative:le.negative,warning:le.warning,critical:le.critical,defaultText:e.textColor||le.darkest,inverseText:e.textInverseColor||le.lightest,positiveText:le.positiveText,negativeText:le.negativeText,warningText:le.warningText}),Xc=(e=mi[bf()])=>{let{base:t,colorPrimary:r,colorSecondary:n,appBg:o,appContentBg:i,appHoverBg:a,appPreviewBg:s,appBorderColor:c,appBorderRadius:l,fontBase:d,fontCode:p,textColor:f,textInverseColor:m,barTextColor:y,barHoverColor:g,barSelectedColor:v,barBg:b,buttonBg:T,buttonBorder:R,booleanBg:x,booleanSelectedBg:C,inputBg:E,inputBorder:_,inputTextColor:S,inputBorderRadius:A,brandTitle:$,brandUrl:k,brandImage:H,brandTarget:I,gridCellSize:O,...q}=e;return{...q,base:t,...t==="dark"?Hc.dark:Hc.light,color:QG(e),background:{app:o,bar:b,content:i,preview:s,gridCellSize:O||gr.gridCellSize,hoverable:a,positive:gr.positive,negative:gr.negative,warning:gr.warning,critical:gr.critical},typography:{fonts:{base:d,mono:p},weight:_r.weight,size:_r.size},animation:VG,easing:$G,input:{background:E,border:_,borderRadius:A,color:S},button:{background:T||E,border:R||_},boolean:{background:x||_,selectedBackground:C||E},layoutMargin:10,appBorderColor:c,appBorderRadius:l,barTextColor:y,barHoverColor:g||n,barSelectedColor:v||n,barBg:b,brand:{title:$,url:k,image:H||($?null:void 0),target:I},code:YG({colors:t==="dark"?XG:KG,mono:p}),addonActionsTheme:{...t==="dark"?zG:GG,BASE_FONT_FAMILY:p,BASE_FONT_SIZE:_r.size.s2-1,BASE_LINE_HEIGHT:"18px",BASE_BACKGROUND_COLOR:"transparent",BASE_COLOR:f,ARROW_COLOR:h9(.2,c),ARROW_MARGIN_RIGHT:4,ARROW_FONT_SIZE:8,TREENODE_FONT_FAMILY:p,TREENODE_FONT_SIZE:_r.size.s2-1,TREENODE_LINE_HEIGHT:"18px",TREENODE_PADDING_LEFT:12}}};const{logger:ZG}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var e8=e=>Object.keys(e).length===0,Su=e=>e!=null&&typeof e=="object",t8=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),r8=()=>Object.create(null),XS=(e,t)=>e===t||!Su(e)||!Su(t)?{}:Object.keys(e).reduce((r,n)=>{if(t8(t,n)){let o=XS(e[n],t[n]);return Su(o)&&e8(o)||(r[n]=o),r}return r[n]=void 0,r},r8()),n8=XS,o8=e=>{if(!e)return Xc(Vc);let t=n8(Vc,e);return Object.keys(t).length&&ZG.warn(kV`
1101
+ Your theme is missing properties, you should update your theme!
1102
+
1103
+ theme-data missing:
1104
+ `,t),Xc(e)},i8="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */";const o4=Object.freeze(Object.defineProperty({__proto__:null,ThemeProvider:AG,background:gr,color:le,convert:Xc,create:vf,createCache:JS,createReset:YS,css:_l,ensure:o8,getPreferredColorScheme:bf,ignoreSsrWarning:i8,isPropValid:GS,get jsx(){return Yc},keyframes:ua,lighten:j9,styled:Kc,themes:mi,tokens:Hc,typography:_r,useTheme:_G},Symbol.toStringTag,{value:"Module"})),QS={brandTitle:"Brightspot UI",brandImage:"/brightspot-logo.svg",brandTarget:"_self"},Au=vf({base:"light",...QS,colorPrimary:"#F0433E",colorSecondary:"#144CEB",appBg:"#FCFCFD",appContentBg:"#FFFFFF",appPreviewBg:"#FFFFFF",appBorderColor:"#EAECF0",appBorderRadius:6,textColor:"#101828",textInverseColor:"#FFFFFF",textMutedColor:"#667085",barTextColor:"#667085",barHoverColor:"#1D2939",barSelectedColor:"#144CEB",barBg:"#F9FAFB",inputBg:"#FFFFFF",inputBorder:"#D0D5DD",inputTextColor:"#101828",inputBorderRadius:4,fontBase:'"Noto Sans", "Helvetica Neue", Arial, sans-serif',fontCode:"monospace"}),Ru=vf({base:"dark",...QS,colorPrimary:"#FDA398",colorSecondary:"#235CEF",appBg:"#1E1F21",appContentBg:"#1E1F21",appPreviewBg:"#1E1F21",appBorderColor:"#3E3E40",appBorderRadius:6,textColor:"#FAFAFA",textInverseColor:"#1E1F21",textMutedColor:"#B9B7B9",barTextColor:"#B9B7B9",barHoverColor:"#F5F5F5",barSelectedColor:"#D1E0FF",barBg:"#2A2B2D",inputBg:"#1E1F21",inputBorder:"#464648",inputTextColor:"#FAFAFA",inputBorderRadius:4,fontBase:'"Noto Sans", "Helvetica Neue", Arial, sans-serif',fontCode:"monospace"});S6(jz);const ZS=window.matchMedia("(prefers-color-scheme: dark)");ZS.addEventListener("change",()=>window.location.reload());Az({hideArgRef:!1,typeRef:{"lit-html":"https://lit.dev/docs/api/templates/"},renderDefaultValues:!0,categoryOrder:["attributes","properties","slots","methods","events","cssStates","cssProps"]});const a8={parameters:{docs:{theme:ZS.matches?Ru:Au},options:{storySort:{order:["Welcome","*"]}},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 n=(t.globals.theme||"light")==="dark";return document.body.style.backgroundColor=n?Ru.appBg:Au.appContentBg,document.body.style.color=n?Ru.textColor:Au.textColor,document.documentElement.classList.toggle("is-dark",n),rS`<div class="${n?"darkTheme is-dark":"lightTheme"}">${e()}</div>`}]},s8=Object.freeze(Object.defineProperty({__proto__:null,default:a8},Symbol.toStringTag,{value:"Module"}));G0();const{composeConfigs:l8,PreviewWeb:u8}=__STORYBOOK_MODULE_PREVIEW_API__,c8=(e=[])=>{const t=[e[0]??m6,e[1]??L6,e[2]??D6,e[3]??G6,e[4]??s8];return l8(t)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new u8(LV,c8);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{r4 as $,H8 as A,J8 as B,U8 as C,B8 as D,Ye as E,F8 as F,$8 as G,D8 as H,L8 as I,q8 as J,k8 as K,j8 as L,x8 as M,O8 as N,R8 as O,T8 as P,pl as Q,m8 as R,kV as S,Pn as T,L9 as U,k9 as V,D9 as W,Kc as X,jV as Y,vf as Z,oa as _,Q0 as a,ua as a0,a9 as a1,GS as a2,po as a3,c9 as a4,n4 as a5,j9 as a6,le as a7,ht as a8,i8 as a9,_r as aa,_G as ab,AG as ac,Xc as ad,mi as ae,o8 as af,G8 as ag,u6 as ah,Es as ai,e4 as aj,Z8 as ak,o4 as al,vS as b,hu as c,h8 as d,bS as e,X6 as f,t4 as g,y8 as h,Ua as i,b8 as j,P8 as k,v8 as l,A8 as m,_8 as n,w8 as o,E8 as p,N8 as q,Me as r,S8 as s,gS as t,Lc as u,g8 as v,I8 as w,rS as x,M8 as y,C8 as z};