@prozorro/prozorro-ui 0.0.7-beta → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/assets/{Color-FRDS63T2-D7DceWd3.js → Color-FRDS63T2-C5bQ2Iuy.js} +1 -1
- package/dist/app/assets/{Colors.stories-oSXYJENR.js → Colors.stories-B6EPF0nC.js} +1 -1
- package/dist/app/assets/{DocsRenderer-LL677BLK-CSnojeph.js → DocsRenderer-LL677BLK-6m2x0Slf.js} +200 -200
- package/dist/app/assets/{Grid.stories-Bs3kySs1.js → Grid.stories-DCpTvq1h.js} +1 -1
- package/dist/app/assets/PzArrayClamp-K4ObvvOV.css +1 -0
- package/dist/app/assets/PzArrayClamp.stories-DYjTyM_w.js +148 -0
- package/dist/app/assets/PzBreadcrumb-Dcs3weae.css +1 -0
- package/dist/app/assets/PzBreadcrumb.stories-b4V3GARM.js +120 -0
- package/dist/app/assets/PzBtn-Brjbpw1b.js +1 -0
- package/dist/app/assets/PzBtn-CzokGN-c.css +1 -0
- package/dist/app/assets/PzBtn-L_RpjK-U.css +1 -0
- package/dist/app/assets/PzBtn.stories-Bu5qPhtp.js +84 -0
- package/dist/app/assets/PzDomHandler-CRMzxUFs.css +1 -0
- package/dist/app/assets/PzDomHandler.stories-DqW3Mfem.js +170 -0
- package/dist/app/assets/PzDropdown-BnwR1ooa.css +1 -0
- package/dist/app/assets/PzDropdown.stories-CPjzWBvH.js +59 -0
- package/dist/app/assets/{PzGrid.stories-DHYDe1eo.js → PzGrid.stories-C1Y3nz5O.js} +2 -2
- package/dist/app/assets/PzHint-BSVVXtVq.css +1 -0
- package/dist/app/assets/PzHint-BwKGDkUu.js +1 -0
- package/dist/app/assets/PzHint-kEBemRXE.css +1 -0
- package/dist/app/assets/PzHint.stories-B6l3Ocr8.js +75 -0
- package/dist/app/assets/PzIcon-Don8TXO3.js +1 -0
- package/dist/app/assets/PzIcon.stories-DE4e2be_.js +63 -0
- package/dist/app/assets/{PzImage.stories-3xf5vq8I.js → PzImage.stories-DoGwhzIO.js} +2 -2
- package/dist/app/assets/PzInfoHint-CtK7BZOs.css +1 -0
- package/dist/app/assets/PzInfoHint.stories-CWDV-k9d.js +38 -0
- package/dist/app/assets/PzLink-BkfNrG4H.js +1 -0
- package/dist/app/assets/PzLink-CLsit3uW.css +1 -0
- package/dist/app/assets/PzLink-pGUmpCAv.css +1 -0
- package/dist/app/assets/PzLink.stories-D1DLILnY.js +99 -0
- package/dist/app/assets/PzModal-X71wpoOT.css +1 -0
- package/dist/app/assets/PzModal.stories-GJIUTcxR.js +168 -0
- package/dist/app/assets/PzNav-DRAXqlz0.css +1 -0
- package/dist/app/assets/PzNav.stories-vqArvp6y.js +197 -0
- package/dist/app/assets/PzPagination-DJVeW9lu.css +1 -0
- package/dist/app/assets/PzPagination.stories-D-kZtPzf.js +83 -0
- package/dist/app/assets/PzRouterLink.stories-CRcNmODE.js +54 -0
- package/dist/app/assets/PzScrollTo-GAEPiQFO.css +1 -0
- package/dist/app/assets/PzScrollTo.stories-C0m8oG4O.js +81 -0
- package/dist/app/assets/PzStatus-DlvKjmG7.css +1 -0
- package/dist/app/assets/PzStatus.stories-u5QAVco_.js +95 -0
- package/dist/app/assets/PzTabs-Cko9ewqz.css +1 -0
- package/dist/app/assets/PzTabs.stories-CEoVVF4Z.js +594 -0
- package/dist/app/assets/PzTag-rwtmuhv6.css +1 -0
- package/dist/app/assets/PzTag.stories-B2WKURWu.js +70 -0
- package/dist/app/assets/{PzText-B1cefxtz.js → PzText-LfRr6NF7.js} +1 -1
- package/dist/app/assets/{PzText.stories-BFfwzgRO.js → PzText.stories-CJhqWJtS.js} +6 -6
- package/dist/app/assets/PzTextClamp-BnSHv0R0.css +1 -0
- package/dist/app/assets/PzTextClamp.stories-B-2pPs9u.js +149 -0
- package/dist/app/assets/PzValidatorXSS-B6WBrYex.css +1 -0
- package/dist/app/assets/PzValidatorXSS.stories-DqA_mla7.js +163 -0
- package/dist/app/assets/{Spacing.stories-DhCjLNK2.js → Spacing.stories-55zVSJ08.js} +1 -1
- package/dist/app/assets/{Typography.stories-CSj6NWZS.js → Typography.stories-DEgPTqUk.js} +1 -1
- package/dist/app/assets/{WithTooltip-65CFNBJE-CXtzAlgs.js → WithTooltip-65CFNBJE-D3ytr0gE.js} +1 -1
- package/dist/app/assets/floating-vue-ydzBnlRK.js +1 -0
- package/dist/app/assets/formatter-EIJCOSYU-Ca5EM9Pa.js +1 -0
- package/dist/app/assets/iframe-B97zFSkg.css +1 -0
- package/dist/app/assets/iframe-XnrfGA2g.js +1115 -0
- package/dist/app/assets/{syntaxhighlighter-OH4MV7E3-C5g7sJvt.js → syntaxhighlighter-OH4MV7E3-meijqKce.js} +1 -1
- package/dist/app/iframe.html +2 -2
- package/dist/app/index.json +1 -1
- package/dist/app/project.json +1 -1
- package/dist/components/PzArrayClamp/PzArrayClamp.vue.d.ts +36 -0
- package/dist/components/PzArrayClamp/index.d.ts +2 -0
- package/dist/components/PzArrayClamp/types.d.ts +8 -0
- package/dist/components/PzBreadcrumb/PzBreadcrumb.vue.d.ts +35 -0
- package/dist/components/PzBreadcrumb/constants.d.ts +4 -0
- package/dist/components/PzBreadcrumb/index.d.ts +2 -0
- package/dist/components/PzBreadcrumb/types.d.ts +8 -0
- package/dist/components/PzBtn/PzBtn.vue.d.ts +24 -0
- package/dist/components/PzBtn/configs.d.ts +3 -0
- package/dist/components/PzBtn/index.d.ts +2 -0
- package/dist/components/PzBtn/types.d.ts +7 -0
- package/dist/components/PzDropdown/PzDropdown.vue.d.ts +18 -0
- package/dist/components/PzDropdown/index.d.ts +2 -0
- package/dist/components/PzDropdown/types.d.ts +1 -0
- package/dist/components/PzGrid/PzGrid.vue.d.ts +1 -1
- package/dist/components/PzGrid/PzGridItem.vue.d.ts +1 -1
- package/dist/components/PzGrid/configs.d.ts +2 -2
- package/dist/components/PzHint/PzHint.vue.d.ts +24 -0
- package/dist/components/PzHint/index.d.ts +2 -0
- package/dist/components/PzHint/types.d.ts +8 -0
- package/dist/components/PzIcon/PzIcon.vue.d.ts +1 -1
- package/dist/components/PzImage/configs.d.ts +1 -1
- package/dist/components/PzInfoHint/PzInfoHint.vue.d.ts +7 -0
- package/dist/components/PzInfoHint/index.d.ts +2 -0
- package/dist/components/PzInfoHint/types.d.ts +12 -0
- package/dist/components/PzLink/PzLink.vue.d.ts +29 -0
- package/dist/components/PzLink/configs.d.ts +2 -0
- package/dist/components/PzLink/constants.d.ts +1 -0
- package/dist/components/PzLink/index.d.ts +2 -0
- package/dist/components/PzLink/types.d.ts +13 -0
- package/dist/components/PzModal/PzModal.vue.d.ts +36 -0
- package/dist/components/PzModal/configs.d.ts +1 -0
- package/dist/components/PzModal/constants.d.ts +10 -0
- package/dist/components/PzModal/index.d.ts +2 -0
- package/dist/components/PzModal/types.d.ts +11 -0
- package/dist/components/PzNav/PzNav.vue.d.ts +23 -0
- package/dist/components/PzNav/index.d.ts +2 -0
- package/dist/components/PzNav/types.d.ts +9 -0
- package/dist/components/PzPagination/PzPagination.vue.d.ts +9 -0
- package/dist/components/PzPagination/index.d.ts +2 -0
- package/dist/components/PzPagination/types.d.ts +6 -0
- package/dist/components/PzRouterLink/PzRouterLink.vue.d.ts +30 -0
- package/dist/components/PzRouterLink/index.d.ts +2 -0
- package/dist/components/PzRouterLink/types.d.ts +7 -0
- package/dist/components/PzStatus/PzStatus.vue.d.ts +21 -0
- package/dist/components/PzStatus/configs.d.ts +2 -0
- package/dist/components/PzStatus/constants.d.ts +2 -0
- package/dist/components/PzStatus/index.d.ts +2 -0
- package/dist/components/PzStatus/types.d.ts +6 -0
- package/dist/components/PzTabs/PzTab.vue.d.ts +22 -0
- package/dist/components/PzTabs/PzTabs.vue.d.ts +21 -0
- package/dist/components/PzTabs/configs.d.ts +1 -0
- package/dist/components/PzTabs/constants.d.ts +5 -0
- package/dist/components/PzTabs/index.d.ts +3 -0
- package/dist/components/PzTabs/types.d.ts +14 -0
- package/dist/components/PzTag/PzTag.vue.d.ts +23 -0
- package/dist/components/PzTag/configs.d.ts +2 -0
- package/dist/components/PzTag/index.d.ts +2 -0
- package/dist/components/PzTag/types.d.ts +6 -0
- package/dist/components/PzText/configs.d.ts +1 -1
- package/dist/components/PzTextClamp/PzTextClamp.vue.d.ts +36 -0
- package/dist/components/PzTextClamp/constants.d.ts +2 -0
- package/dist/components/PzTextClamp/index.d.ts +2 -0
- package/dist/components/PzTextClamp/types.d.ts +10 -0
- package/dist/floating-vue.d.ts +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/package.json +8 -2
- package/dist/prozorro-ui.cjs +1 -1
- package/dist/prozorro-ui.js +3379 -75
- package/dist/style.css +1 -1
- package/dist/utils/PzDomHandler/PzDomHandler.d.ts +19 -0
- package/dist/utils/PzDomHandler/constants.d.ts +1 -0
- package/dist/utils/PzDomHandler/index.d.ts +2 -0
- package/dist/utils/PzDomHandler/types.d.ts +4 -0
- package/dist/utils/PzScrollTo/PzScrollTo.d.ts +9 -0
- package/dist/utils/PzScrollTo/configs.d.ts +1 -0
- package/dist/utils/PzScrollTo/constants.d.ts +3 -0
- package/dist/utils/PzScrollTo/index.d.ts +2 -0
- package/dist/utils/PzScrollTo/types.d.ts +8 -0
- package/dist/utils/PzValidatorXSS/PzValidatorXSS.d.ts +20 -0
- package/dist/utils/PzValidatorXSS/index.d.ts +2 -0
- package/dist/utils/PzValidatorXSS/types.d.ts +1 -0
- package/package.json +8 -2
- package/src/styles/abstract/_variables.scss +8 -2
- package/src/styles/main.scss +1 -0
- package/src/styles/vendors/_floating-vue.scss +59 -0
- package/dist/app/assets/PzIcon.stories-DnSfvny_.js +0 -63
- package/dist/app/assets/formatter-EIJCOSYU-BiTxXm4h.js +0 -1
- package/dist/app/assets/iframe-AHEBgGuT.js +0 -1107
- package/dist/app/assets/iframe-C7ls-B1-.css +0 -1
|
@@ -1,1107 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Typography.stories-CSj6NWZS.js","./PzText-B1cefxtz.js","./PzText-DsC8c6AJ.css","./preload-helper-C1FmrZbK.js","./Typography-Bgal0fkk.css","./Colors.stories-oSXYJENR.js","./Colors-fhEnNkJK.css","./Spacing.stories-DhCjLNK2.js","./Spacing-B5TnfKCB.css","./Grid.stories-Bs3kySs1.js","./Grid-B7NVrFKF.css","./PzText.stories-BFfwzgRO.js","./PzIcon.stories-DnSfvny_.js","./PzIcon-CyZkl7-f.css","./PzImage.stories-3xf5vq8I.js","./PzImage-BNrbMHP9.css","./PzGrid.stories-DHYDe1eo.js","./PzGrid-DES6s5R0.css","./DocsRenderer-LL677BLK-CSnojeph.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var nI=Object.defineProperty;var iI=(e,t,r)=>t in e?nI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ur=(e,t,r)=>iI(e,typeof t!="symbol"?t+"":t,r);import{_ as Pn}from"./preload-helper-C1FmrZbK.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var $p={},oI=Object.create,Rh=Object.defineProperty,sI=Object.getOwnPropertyDescriptor,nw=Object.getOwnPropertyNames,aI=Object.getPrototypeOf,lI=Object.prototype.hasOwnProperty,Dl=(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')}),U=(e,t)=>function(){return t||(0,e[nw(e)[0]])((t={exports:{}}).exports,t),t.exports},br=(e,t)=>{for(var r in t)Rh(e,r,{get:t[r],enumerable:!0})},uI=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of nw(t))!lI.call(e,i)&&i!==r&&Rh(e,i,{get:()=>t[i],enumerable:!(n=sI(t,i))||n.enumerable});return e},St=(e,t,r)=>(r=e!=null?oI(aI(e)):{},uI(t||!e||!e.__esModule?Rh(r,"default",{value:e,enumerable:!0}):r,e)),cI=U({"../../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(i){return Object.keys(i).concat(Object.getOwnPropertySymbols(i))}:Object.keys;return function(i,o){return function s(a,l,u){var d,p,f,h=t.call(a),y=t.call(l);if(a===l)return!0;if(a==null||l==null)return!1;if(u.indexOf(a)>-1&&u.indexOf(l)>-1)return!0;if(u.push(a,l),h!=y||(d=n(a),p=n(l),d.length!=p.length||d.some(function(g){return!s(a[g],l[g],u)})))return!1;switch(h.slice(8,-1)){case"Symbol":return a.valueOf()==l.valueOf();case"Date":case"Number":return+a==+l||+a!=+a&&+l!=+l;case"RegExp":case"Function":case"String":case"Boolean":return""+a==""+l;case"Set":case"Map":d=a.entries(),p=l.entries();do if(!s((f=d.next()).value,p.next().value,u))return!1;while(!f.done);return!0;case"ArrayBuffer":a=new Uint8Array(a),l=new Uint8Array(l);case"DataView":a=new Uint8Array(a.buffer),l=new Uint8Array(l.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(a.length!=l.length)return!1;for(f=0;f<a.length;f++)if((f in a||f in l)&&(f in a!=f in l||!s(a[f],l[f],u)))return!1;return!0;case"Object":return s(r(a),r(l),u);default:return!1}}(i,o,[])}}()}}),dI=U({"../../node_modules/min-indent/index.js"(e,t){t.exports=r=>{let n=r.match(/^[ \t]*(?=\S)/gm);return n?n.reduce((i,o)=>Math.min(i,o.length),1/0):0}}}),pI=U({"../../node_modules/strip-indent/index.js"(e,t){var r=dI();t.exports=n=>{let i=r(n);if(i===0)return n;let o=new RegExp(`^[ \\t]{${i}}`,"gm");return n.replace(o,"")}}}),fI=U({"../../node_modules/indent-string/index.js"(e,t){t.exports=(r,n=1,i)=>{if(i={indent:" ",includeEmptyLines:!1,...i},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 i.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof i.indent}\``);if(n===0)return r;let o=i.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return r.replace(o,i.indent.repeat(n))}}}),iw=U({"../../node_modules/redent/index.js"(e,t){var r=pI(),n=fI();t.exports=(i,o=0,s)=>n(r(i),o,s)}}),hI=U({"../../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,i={"@@iterator":function(){return i},next:function(){if(n<r.length){var o=r[n];return n=n+1,{done:!1,value:o}}else return{done:!0}}};return i}e.default=t}}),pl=U({"../../node_modules/aria-query/lib/util/iterationDecorator.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=r(hI());function r(o){return o&&o.__esModule?o:{default:o}}function n(o){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},n(o)}function i(o,s){return typeof Symbol=="function"&&n(Symbol.iterator)==="symbol"&&Object.defineProperty(o,Symbol.iterator,{value:t.default.bind(s)}),o}}}),mI=U({"../../node_modules/aria-query/lib/ariaPropsMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(pl());function r(p){return p&&p.__esModule?p:{default:p}}function n(p,f){return l(p)||a(p,f)||o(p,f)||i()}function i(){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 o(p,f){if(p){if(typeof p=="string")return s(p,f);var h={}.toString.call(p).slice(8,-1);return h==="Object"&&p.constructor&&(h=p.constructor.name),h==="Map"||h==="Set"?Array.from(p):h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)?s(p,f):void 0}}function s(p,f){(f==null||f>p.length)&&(f=p.length);for(var h=0,y=Array(f);h<f;h++)y[h]=p[h];return y}function a(p,f){var h=p==null?null:typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(h!=null){var y,g,v,b,E=[],w=!0,A=!1;try{if(v=(h=h.call(p)).next,f===0){if(Object(h)!==h)return;w=!1}else for(;!(w=(y=v.call(h)).done)&&(E.push(y.value),E.length!==f);w=!0);}catch(C){A=!0,g=C}finally{try{if(!w&&h.return!=null&&(b=h.return(),Object(b)!==b))return}finally{if(A)throw g}}return E}}function l(p){if(Array.isArray(p))return p}var u=[["aria-activedescendant",{type:"id"}],["aria-atomic",{type:"boolean"}],["aria-autocomplete",{type:"token",values:["inline","list","both","none"]}],["aria-braillelabel",{type:"string"}],["aria-brailleroledescription",{type:"string"}],["aria-busy",{type:"boolean"}],["aria-checked",{type:"tristate"}],["aria-colcount",{type:"integer"}],["aria-colindex",{type:"integer"}],["aria-colspan",{type:"integer"}],["aria-controls",{type:"idlist"}],["aria-current",{type:"token",values:["page","step","location","date","time",!0,!1]}],["aria-describedby",{type:"idlist"}],["aria-description",{type:"string"}],["aria-details",{type:"id"}],["aria-disabled",{type:"boolean"}],["aria-dropeffect",{type:"tokenlist",values:["copy","execute","link","move","none","popup"]}],["aria-errormessage",{type:"id"}],["aria-expanded",{type:"boolean",allowundefined:!0}],["aria-flowto",{type:"idlist"}],["aria-grabbed",{type:"boolean",allowundefined:!0}],["aria-haspopup",{type:"token",values:[!1,!0,"menu","listbox","tree","grid","dialog"]}],["aria-hidden",{type:"boolean",allowundefined:!0}],["aria-invalid",{type:"token",values:["grammar",!1,"spelling",!0]}],["aria-keyshortcuts",{type:"string"}],["aria-label",{type:"string"}],["aria-labelledby",{type:"idlist"}],["aria-level",{type:"integer"}],["aria-live",{type:"token",values:["assertive","off","polite"]}],["aria-modal",{type:"boolean"}],["aria-multiline",{type:"boolean"}],["aria-multiselectable",{type:"boolean"}],["aria-orientation",{type:"token",values:["vertical","undefined","horizontal"]}],["aria-owns",{type:"idlist"}],["aria-placeholder",{type:"string"}],["aria-posinset",{type:"integer"}],["aria-pressed",{type:"tristate"}],["aria-readonly",{type:"boolean"}],["aria-relevant",{type:"tokenlist",values:["additions","all","removals","text"]}],["aria-required",{type:"boolean"}],["aria-roledescription",{type:"string"}],["aria-rowcount",{type:"integer"}],["aria-rowindex",{type:"integer"}],["aria-rowspan",{type:"integer"}],["aria-selected",{type:"boolean",allowundefined:!0}],["aria-setsize",{type:"integer"}],["aria-sort",{type:"token",values:["ascending","descending","none","other"]}],["aria-valuemax",{type:"number"}],["aria-valuemin",{type:"number"}],["aria-valuenow",{type:"number"}],["aria-valuetext",{type:"string"}]],d={entries:function(){return u},forEach:function(p){for(var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,h=0,y=u;h<y.length;h++){var g=n(y[h],2),v=g[0],b=g[1];p.call(f,b,v,u)}},get:function(p){var f=u.filter(function(h){return h[0]===p})[0];return f&&f[1]},has:function(p){return!!d.get(p)},keys:function(){return u.map(function(p){var f=n(p,1),h=f[0];return h})},values:function(){return u.map(function(p){var f=n(p,2),h=f[1];return h})}};e.default=(0,t.default)(d,d.entries())}}),yI=U({"../../node_modules/aria-query/lib/domMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(pl());function r(p){return p&&p.__esModule?p:{default:p}}function n(p,f){return l(p)||a(p,f)||o(p,f)||i()}function i(){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 o(p,f){if(p){if(typeof p=="string")return s(p,f);var h={}.toString.call(p).slice(8,-1);return h==="Object"&&p.constructor&&(h=p.constructor.name),h==="Map"||h==="Set"?Array.from(p):h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)?s(p,f):void 0}}function s(p,f){(f==null||f>p.length)&&(f=p.length);for(var h=0,y=Array(f);h<f;h++)y[h]=p[h];return y}function a(p,f){var h=p==null?null:typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(h!=null){var y,g,v,b,E=[],w=!0,A=!1;try{if(v=(h=h.call(p)).next,f===0){if(Object(h)!==h)return;w=!1}else for(;!(w=(y=v.call(h)).done)&&(E.push(y.value),E.length!==f);w=!0);}catch(C){A=!0,g=C}finally{try{if(!w&&h.return!=null&&(b=h.return(),Object(b)!==b))return}finally{if(A)throw g}}return E}}function l(p){if(Array.isArray(p))return p}var u=[["a",{reserved:!1}],["abbr",{reserved:!1}],["acronym",{reserved:!1}],["address",{reserved:!1}],["applet",{reserved:!1}],["area",{reserved:!1}],["article",{reserved:!1}],["aside",{reserved:!1}],["audio",{reserved:!1}],["b",{reserved:!1}],["base",{reserved:!0}],["bdi",{reserved:!1}],["bdo",{reserved:!1}],["big",{reserved:!1}],["blink",{reserved:!1}],["blockquote",{reserved:!1}],["body",{reserved:!1}],["br",{reserved:!1}],["button",{reserved:!1}],["canvas",{reserved:!1}],["caption",{reserved:!1}],["center",{reserved:!1}],["cite",{reserved:!1}],["code",{reserved:!1}],["col",{reserved:!0}],["colgroup",{reserved:!0}],["content",{reserved:!1}],["data",{reserved:!1}],["datalist",{reserved:!1}],["dd",{reserved:!1}],["del",{reserved:!1}],["details",{reserved:!1}],["dfn",{reserved:!1}],["dialog",{reserved:!1}],["dir",{reserved:!1}],["div",{reserved:!1}],["dl",{reserved:!1}],["dt",{reserved:!1}],["em",{reserved:!1}],["embed",{reserved:!1}],["fieldset",{reserved:!1}],["figcaption",{reserved:!1}],["figure",{reserved:!1}],["font",{reserved:!1}],["footer",{reserved:!1}],["form",{reserved:!1}],["frame",{reserved:!1}],["frameset",{reserved:!1}],["h1",{reserved:!1}],["h2",{reserved:!1}],["h3",{reserved:!1}],["h4",{reserved:!1}],["h5",{reserved:!1}],["h6",{reserved:!1}],["head",{reserved:!0}],["header",{reserved:!1}],["hgroup",{reserved:!1}],["hr",{reserved:!1}],["html",{reserved:!0}],["i",{reserved:!1}],["iframe",{reserved:!1}],["img",{reserved:!1}],["input",{reserved:!1}],["ins",{reserved:!1}],["kbd",{reserved:!1}],["keygen",{reserved:!1}],["label",{reserved:!1}],["legend",{reserved:!1}],["li",{reserved:!1}],["link",{reserved:!0}],["main",{reserved:!1}],["map",{reserved:!1}],["mark",{reserved:!1}],["marquee",{reserved:!1}],["menu",{reserved:!1}],["menuitem",{reserved:!1}],["meta",{reserved:!0}],["meter",{reserved:!1}],["nav",{reserved:!1}],["noembed",{reserved:!0}],["noscript",{reserved:!0}],["object",{reserved:!1}],["ol",{reserved:!1}],["optgroup",{reserved:!1}],["option",{reserved:!1}],["output",{reserved:!1}],["p",{reserved:!1}],["param",{reserved:!0}],["picture",{reserved:!0}],["pre",{reserved:!1}],["progress",{reserved:!1}],["q",{reserved:!1}],["rp",{reserved:!1}],["rt",{reserved:!1}],["rtc",{reserved:!1}],["ruby",{reserved:!1}],["s",{reserved:!1}],["samp",{reserved:!1}],["script",{reserved:!0}],["section",{reserved:!1}],["select",{reserved:!1}],["small",{reserved:!1}],["source",{reserved:!0}],["spacer",{reserved:!1}],["span",{reserved:!1}],["strike",{reserved:!1}],["strong",{reserved:!1}],["style",{reserved:!0}],["sub",{reserved:!1}],["summary",{reserved:!1}],["sup",{reserved:!1}],["table",{reserved:!1}],["tbody",{reserved:!1}],["td",{reserved:!1}],["textarea",{reserved:!1}],["tfoot",{reserved:!1}],["th",{reserved:!1}],["thead",{reserved:!1}],["time",{reserved:!1}],["title",{reserved:!0}],["tr",{reserved:!1}],["track",{reserved:!0}],["tt",{reserved:!1}],["u",{reserved:!1}],["ul",{reserved:!1}],["var",{reserved:!1}],["video",{reserved:!1}],["wbr",{reserved:!1}],["xmp",{reserved:!1}]],d={entries:function(){return u},forEach:function(p){for(var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,h=0,y=u;h<y.length;h++){var g=n(y[h],2),v=g[0],b=g[1];p.call(f,b,v,u)}},get:function(p){var f=u.filter(function(h){return h[0]===p})[0];return f&&f[1]},has:function(p){return!!d.get(p)},keys:function(){return u.map(function(p){var f=n(p,1),h=f[0];return h})},values:function(){return u.map(function(p){var f=n(p,2),h=f[1];return h})}};e.default=(0,t.default)(d,d.entries())}}),gI=U({"../../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}}),bI=U({"../../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}}),vI=U({"../../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}}),EI=U({"../../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}}),TI=U({"../../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}}),wI=U({"../../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}}),_I=U({"../../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}}),SI=U({"../../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}}),RI=U({"../../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}}),OI=U({"../../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}}),AI=U({"../../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}}),PI=U({"../../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}}),CI=U({"../../node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=h(gI()),r=h(bI()),n=h(vI()),i=h(EI()),o=h(TI()),s=h(wI()),a=h(_I()),l=h(SI()),u=h(RI()),d=h(OI()),p=h(AI()),f=h(PI());function h(g){return g&&g.__esModule?g:{default:g}}var y=[["command",t.default],["composite",r.default],["input",n.default],["landmark",i.default],["range",o.default],["roletype",s.default],["section",a.default],["sectionhead",l.default],["select",u.default],["structure",d.default],["widget",p.default],["window",f.default]];e.default=y}}),xI=U({"../../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}}),NI=U({"../../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}}),II=U({"../../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}}),MI=U({"../../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}}),qI=U({"../../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}}),jI=U({"../../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}}),kI=U({"../../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}}),DI=U({"../../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}}),LI=U({"../../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}}),FI=U({"../../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}}),BI=U({"../../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}}),$I=U({"../../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}}),UI=U({"../../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}}),VI=U({"../../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}}),JI=U({"../../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}}),HI=U({"../../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}}),GI=U({"../../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}}),WI=U({"../../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}}),KI=U({"../../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}}),zI=U({"../../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}}),YI=U({"../../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}}),XI=U({"../../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}}),QI=U({"../../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}}),ZI=U({"../../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}}),e1=U({"../../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}}),t1=U({"../../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}}),r1=U({"../../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}}),n1=U({"../../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}}),i1=U({"../../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}}),o1=U({"../../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}}),s1=U({"../../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}}),a1=U({"../../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}}),l1=U({"../../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}}),u1=U({"../../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}}),c1=U({"../../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}}),d1=U({"../../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}}),p1=U({"../../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}}),f1=U({"../../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}}),h1=U({"../../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}}),m1=U({"../../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}}),y1=U({"../../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}}),g1=U({"../../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}}),b1=U({"../../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}}),v1=U({"../../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}}),E1=U({"../../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}}),T1=U({"../../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}}),w1=U({"../../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}}),_1=U({"../../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}}),S1=U({"../../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}}),R1=U({"../../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}}),O1=U({"../../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}}),A1=U({"../../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}}),P1=U({"../../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}}),C1=U({"../../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}}),x1=U({"../../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}}),N1=U({"../../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}}),I1=U({"../../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}}),M1=U({"../../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}}),q1=U({"../../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}}),j1=U({"../../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}}),k1=U({"../../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}}),D1=U({"../../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}}),L1=U({"../../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}}),F1=U({"../../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}}),B1=U({"../../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}}),$1=U({"../../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}}),U1=U({"../../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}}),V1=U({"../../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}}),J1=U({"../../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}}),H1=U({"../../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}}),G1=U({"../../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}}),W1=U({"../../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}}),K1=U({"../../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}}),z1=U({"../../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}}),Y1=U({"../../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}}),X1=U({"../../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}}),Q1=U({"../../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}}),Z1=U({"../../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}}),eM=U({"../../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}}),tM=U({"../../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}}),rM=U({"../../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}}),nM=U({"../../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}}),iM=U({"../../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}}),oM=U({"../../node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=ue(xI()),r=ue(NI()),n=ue(II()),i=ue(MI()),o=ue(qI()),s=ue(jI()),a=ue(kI()),l=ue(DI()),u=ue(LI()),d=ue(FI()),p=ue(BI()),f=ue($I()),h=ue(UI()),y=ue(VI()),g=ue(JI()),v=ue(HI()),b=ue(GI()),E=ue(WI()),w=ue(KI()),A=ue(zI()),C=ue(YI()),R=ue(XI()),S=ue(QI()),_=ue(ZI()),O=ue(e1()),M=ue(t1()),I=ue(r1()),k=ue(n1()),N=ue(i1()),P=ue(o1()),q=ue(s1()),F=ue(a1()),$=ue(l1()),G=ue(u1()),ie=ue(c1()),pe=ue(d1()),he=ue(p1()),Q=ue(f1()),Z=ue(h1()),ge=ue(m1()),ce=ue(y1()),re=ue(g1()),Re=ue(b1()),Te=ue(v1()),et=ue(E1()),V=ue(T1()),ae=ue(w1()),me=ue(_1()),j=ue(S1()),B=ue(R1()),W=ue(O1()),Y=ue(A1()),z=ue(P1()),ee=ue(C1()),le=ue(x1()),oe=ue(N1()),ne=ue(I1()),te=ue(M1()),ve=ue(q1()),de=ue(j1()),be=ue(k1()),Ee=ue(D1()),Me=ue(L1()),$e=ue(F1()),Je=ue(B1()),tt=ue($1()),it=ue(U1()),Dt=ue(V1()),Ot=ue(J1()),Ur=ue(H1()),ri=ue(G1()),At=ue(W1()),Ht=ue(K1()),ni=ue(z1()),ii=ue(Y1()),ks=ue(X1()),Di=ue(Q1()),Ds=ue(Z1()),vr=ue(eM()),we=ue(tM()),Li=ue(rM()),Vr=ue(nM()),Pt=ue(iM());function ue(oi){return oi&&oi.__esModule?oi:{default:oi}}var Ls=[["alert",t.default],["alertdialog",r.default],["application",n.default],["article",i.default],["banner",o.default],["blockquote",s.default],["button",a.default],["caption",l.default],["cell",u.default],["checkbox",d.default],["code",p.default],["columnheader",f.default],["combobox",h.default],["complementary",y.default],["contentinfo",g.default],["definition",v.default],["deletion",b.default],["dialog",E.default],["directory",w.default],["document",A.default],["emphasis",C.default],["feed",R.default],["figure",S.default],["form",_.default],["generic",O.default],["grid",M.default],["gridcell",I.default],["group",k.default],["heading",N.default],["img",P.default],["insertion",q.default],["link",F.default],["list",$.default],["listbox",G.default],["listitem",ie.default],["log",pe.default],["main",he.default],["mark",Q.default],["marquee",Z.default],["math",ge.default],["menu",ce.default],["menubar",re.default],["menuitem",Re.default],["menuitemcheckbox",Te.default],["menuitemradio",et.default],["meter",V.default],["navigation",ae.default],["none",me.default],["note",j.default],["option",B.default],["paragraph",W.default],["presentation",Y.default],["progressbar",z.default],["radio",ee.default],["radiogroup",le.default],["region",oe.default],["row",ne.default],["rowgroup",te.default],["rowheader",ve.default],["scrollbar",de.default],["search",be.default],["searchbox",Ee.default],["separator",Me.default],["slider",$e.default],["spinbutton",Je.default],["status",tt.default],["strong",it.default],["subscript",Dt.default],["superscript",Ot.default],["switch",Ur.default],["tab",ri.default],["table",At.default],["tablist",Ht.default],["tabpanel",ni.default],["term",ii.default],["textbox",ks.default],["time",Di.default],["timer",Ds.default],["toolbar",vr.default],["tooltip",we.default],["tree",Li.default],["treegrid",Vr.default],["treeitem",Pt.default]];e.default=Ls}}),sM=U({"../../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}}),aM=U({"../../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}}),lM=U({"../../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}}),uM=U({"../../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}}),cM=U({"../../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}}),dM=U({"../../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}}),pM=U({"../../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}}),fM=U({"../../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}}),hM=U({"../../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}}),mM=U({"../../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}}),yM=U({"../../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}}),gM=U({"../../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}}),bM=U({"../../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}}),vM=U({"../../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}}),EM=U({"../../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}}),TM=U({"../../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}}),wM=U({"../../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}}),_M=U({"../../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}}),SM=U({"../../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}}),RM=U({"../../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}}),OM=U({"../../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}}),AM=U({"../../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}}),PM=U({"../../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}}),CM=U({"../../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}}),xM=U({"../../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}}),NM=U({"../../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}}),IM=U({"../../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}}),MM=U({"../../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}}),qM=U({"../../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}}),jM=U({"../../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}}),kM=U({"../../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}}),DM=U({"../../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}}),LM=U({"../../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}}),FM=U({"../../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}}),BM=U({"../../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}}),$M=U({"../../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}}),UM=U({"../../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}}),VM=U({"../../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}}),JM=U({"../../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}}),HM=U({"../../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}}),GM=U({"../../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}}),WM=U({"../../node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=re(sM()),r=re(aM()),n=re(lM()),i=re(uM()),o=re(cM()),s=re(dM()),a=re(pM()),l=re(fM()),u=re(hM()),d=re(mM()),p=re(yM()),f=re(gM()),h=re(bM()),y=re(vM()),g=re(EM()),v=re(TM()),b=re(wM()),E=re(_M()),w=re(SM()),A=re(RM()),C=re(OM()),R=re(AM()),S=re(PM()),_=re(CM()),O=re(xM()),M=re(NM()),I=re(IM()),k=re(MM()),N=re(qM()),P=re(jM()),q=re(kM()),F=re(DM()),$=re(LM()),G=re(FM()),ie=re(BM()),pe=re($M()),he=re(UM()),Q=re(VM()),Z=re(JM()),ge=re(HM()),ce=re(GM());function re(Te){return Te&&Te.__esModule?Te:{default:Te}}var Re=[["doc-abstract",t.default],["doc-acknowledgments",r.default],["doc-afterword",n.default],["doc-appendix",i.default],["doc-backlink",o.default],["doc-biblioentry",s.default],["doc-bibliography",a.default],["doc-biblioref",l.default],["doc-chapter",u.default],["doc-colophon",d.default],["doc-conclusion",p.default],["doc-cover",f.default],["doc-credit",h.default],["doc-credits",y.default],["doc-dedication",g.default],["doc-endnote",v.default],["doc-endnotes",b.default],["doc-epigraph",E.default],["doc-epilogue",w.default],["doc-errata",A.default],["doc-example",C.default],["doc-footnote",R.default],["doc-foreword",S.default],["doc-glossary",_.default],["doc-glossref",O.default],["doc-index",M.default],["doc-introduction",I.default],["doc-noteref",k.default],["doc-notice",N.default],["doc-pagebreak",P.default],["doc-pagefooter",q.default],["doc-pageheader",F.default],["doc-pagelist",$.default],["doc-part",G.default],["doc-preface",ie.default],["doc-prologue",pe.default],["doc-pullquote",he.default],["doc-qna",Q.default],["doc-subtitle",Z.default],["doc-tip",ge.default],["doc-toc",ce.default]];e.default=Re}}),KM=U({"../../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}}),zM=U({"../../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}}),YM=U({"../../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}}),XM=U({"../../node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=i(KM()),r=i(zM()),n=i(YM());function i(s){return s&&s.__esModule?s:{default:s}}var o=[["graphics-document",t.default],["graphics-object",r.default],["graphics-symbol",n.default]];e.default=o}}),Oh=U({"../../node_modules/aria-query/lib/rolesMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=s(CI()),r=s(oM()),n=s(WM()),i=s(XM()),o=s(pl());function s(v){return v&&v.__esModule?v:{default:v}}function a(v,b){var E=typeof Symbol<"u"&&v[Symbol.iterator]||v["@@iterator"];if(!E){if(Array.isArray(v)||(E=d(v))||b){E&&(v=E);var w=0,A=function(){};return{s:A,n:function(){return w>=v.length?{done:!0}:{done:!1,value:v[w++]}},e:function(_){throw _},f:A}}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,R=!0,S=!1;return{s:function(){E=E.call(v)},n:function(){var _=E.next();return R=_.done,_},e:function(_){S=!0,C=_},f:function(){try{R||E.return==null||E.return()}finally{if(S)throw C}}}}function l(v,b){return h(v)||f(v,b)||d(v,b)||u()}function u(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d(v,b){if(v){if(typeof v=="string")return p(v,b);var E={}.toString.call(v).slice(8,-1);return E==="Object"&&v.constructor&&(E=v.constructor.name),E==="Map"||E==="Set"?Array.from(v):E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E)?p(v,b):void 0}}function p(v,b){(b==null||b>v.length)&&(b=v.length);for(var E=0,w=Array(b);E<b;E++)w[E]=v[E];return w}function f(v,b){var E=v==null?null:typeof Symbol<"u"&&v[Symbol.iterator]||v["@@iterator"];if(E!=null){var w,A,C,R,S=[],_=!0,O=!1;try{if(C=(E=E.call(v)).next,b===0){if(Object(E)!==E)return;_=!1}else for(;!(_=(w=C.call(E)).done)&&(S.push(w.value),S.length!==b);_=!0);}catch(M){O=!0,A=M}finally{try{if(!_&&E.return!=null&&(R=E.return(),Object(R)!==R))return}finally{if(O)throw A}}return S}}function h(v){if(Array.isArray(v))return v}var y=[].concat(t.default,r.default,n.default,i.default);y.forEach(function(v){var b=l(v,2),E=b[1],w=a(E.superClass),A;try{for(w.s();!(A=w.n()).done;){var C=A.value,R=a(C),S;try{var _=function(){var O=S.value,M=y.filter(function(q){var F=l(q,1),$=F[0];return $===O})[0];if(M)for(var I=M[1],k=0,N=Object.keys(I.props);k<N.length;k++){var P=N[k];Object.prototype.hasOwnProperty.call(E.props,P)||(E.props[P]=I.props[P])}};for(R.s();!(S=R.n()).done;)_()}catch(O){R.e(O)}finally{R.f()}}}catch(O){w.e(O)}finally{w.f()}});var g={entries:function(){return y},forEach:function(v){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,E=a(y),w;try{for(E.s();!(w=E.n()).done;){var A=l(w.value,2),C=A[0],R=A[1];v.call(b,R,C,y)}}catch(S){E.e(S)}finally{E.f()}},get:function(v){var b=y.filter(function(E){return E[0]===v})[0];return b&&b[1]},has:function(v){return!!g.get(v)},keys:function(){return y.map(function(v){var b=l(v,1),E=b[0];return E})},values:function(){return y.map(function(v){var b=l(v,2),E=b[1];return E})}};e.default=(0,o.default)(g,g.entries())}}),QM=U({"../../node_modules/aria-query/lib/elementRoleMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(pl()),r=n(Oh());function n(R){return R&&R.__esModule?R:{default:R}}function i(R,S){return u(R)||l(R,S)||s(R,S)||o()}function o(){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 s(R,S){if(R){if(typeof R=="string")return a(R,S);var _={}.toString.call(R).slice(8,-1);return _==="Object"&&R.constructor&&(_=R.constructor.name),_==="Map"||_==="Set"?Array.from(R):_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_)?a(R,S):void 0}}function a(R,S){(S==null||S>R.length)&&(S=R.length);for(var _=0,O=Array(S);_<S;_++)O[_]=R[_];return O}function l(R,S){var _=R==null?null:typeof Symbol<"u"&&R[Symbol.iterator]||R["@@iterator"];if(_!=null){var O,M,I,k,N=[],P=!0,q=!1;try{if(I=(_=_.call(R)).next,S===0){if(Object(_)!==_)return;P=!1}else for(;!(P=(O=I.call(_)).done)&&(N.push(O.value),N.length!==S);P=!0);}catch(F){q=!0,M=F}finally{try{if(!P&&_.return!=null&&(k=_.return(),Object(k)!==k))return}finally{if(q)throw M}}return N}}function u(R){if(Array.isArray(R))return R}var d=[],p=r.default.keys();for(b=0;b<p.length;b++)if(f=p[b],h=r.default.get(f),h)for(y=[].concat(h.baseConcepts,h.relatedConcepts),g=function(){var R=y[v];if(R.module==="HTML"){var S=R.concept;if(S){var _=d.filter(function(k){return w(k[0],S)})[0],O;_?O=_[1]:O=[];for(var M=!0,I=0;I<O.length;I++)if(O[I]===f){M=!1;break}M&&O.push(f),_||d.push([S,O])}}},v=0;v<y.length;v++)g();var f,h,y,g,v,b,E={entries:function(){return d},forEach:function(R){for(var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,_=0,O=d;_<O.length;_++){var M=i(O[_],2),I=M[0],k=M[1];R.call(S,k,I,d)}},get:function(R){var S=d.filter(function(_){return R.name===_[0].name&&C(R.attributes,_[0].attributes)})[0];return S&&S[1]},has:function(R){return!!E.get(R)},keys:function(){return d.map(function(R){var S=i(R,1),_=S[0];return _})},values:function(){return d.map(function(R){var S=i(R,2),_=S[1];return _})}};function w(R,S){return R.name===S.name&&A(R.constraints,S.constraints)&&C(R.attributes,S.attributes)}function A(R,S){if(R===void 0&&S!==void 0||R!==void 0&&S===void 0)return!1;if(R!==void 0&&S!==void 0){if(R.length!==S.length)return!1;for(var _=0;_<R.length;_++)if(R[_]!==S[_])return!1}return!0}function C(R,S){if(R===void 0&&S!==void 0||R!==void 0&&S===void 0)return!1;if(R!==void 0&&S!==void 0){if(R.length!==S.length)return!1;for(var _=0;_<R.length;_++){if(R[_].name!==S[_].name||R[_].value!==S[_].value||R[_].constraints===void 0&&S[_].constraints!==void 0||R[_].constraints!==void 0&&S[_].constraints===void 0)return!1;if(R[_].constraints!==void 0&&S[_].constraints!==void 0){if(R[_].constraints.length!==S[_].constraints.length)return!1;for(var O=0;O<R[_].constraints.length;O++)if(R[_].constraints[O]!==S[_].constraints[O])return!1}}}return!0}e.default=(0,t.default)(E,E.entries())}}),ZM=U({"../../node_modules/aria-query/lib/roleElementMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(pl()),r=n(Oh());function n(C){return C&&C.__esModule?C:{default:C}}function i(C,R){return u(C)||l(C,R)||s(C,R)||o()}function o(){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 s(C,R){if(C){if(typeof C=="string")return a(C,R);var S={}.toString.call(C).slice(8,-1);return S==="Object"&&C.constructor&&(S=C.constructor.name),S==="Map"||S==="Set"?Array.from(C):S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S)?a(C,R):void 0}}function a(C,R){(R==null||R>C.length)&&(R=C.length);for(var S=0,_=Array(R);S<R;S++)_[S]=C[S];return _}function l(C,R){var S=C==null?null:typeof Symbol<"u"&&C[Symbol.iterator]||C["@@iterator"];if(S!=null){var _,O,M,I,k=[],N=!0,P=!1;try{if(M=(S=S.call(C)).next,R===0){if(Object(S)!==S)return;N=!1}else for(;!(N=(_=M.call(S)).done)&&(k.push(_.value),k.length!==R);N=!0);}catch(q){P=!0,O=q}finally{try{if(!N&&S.return!=null&&(I=S.return(),Object(I)!==I))return}finally{if(P)throw O}}return k}}function u(C){if(Array.isArray(C))return C}var d=[],p=r.default.keys();for(w=0;w<p.length;w++)if(f=p[w],h=r.default.get(f),y=[],h){for(g=[].concat(h.baseConcepts,h.relatedConcepts),E=0;E<g.length;E++)v=g[E],v.module==="HTML"&&(b=v.concept,b!=null&&y.push(b));y.length>0&&d.push([f,y])}var f,h,y,g,v,b,E,w,A={entries:function(){return d},forEach:function(C){for(var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,S=0,_=d;S<_.length;S++){var O=i(_[S],2),M=O[0],I=O[1];C.call(R,I,M,d)}},get:function(C){var R=d.filter(function(S){return S[0]===C})[0];return R&&R[1]},has:function(C){return!!A.get(C)},keys:function(){return d.map(function(C){var R=i(C,1),S=R[0];return S})},values:function(){return d.map(function(C){var R=i(C,2),S=R[1];return S})}};e.default=(0,t.default)(A,A.entries())}}),Ah=U({"../../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=s(mI()),r=s(yI()),n=s(Oh()),i=s(QM()),o=s(ZM());function s(a){return a&&a.__esModule?a:{default:a}}e.aria=t.default,e.dom=r.default,e.roles=n.default,e.elementRoles=i.default,e.roleElements=o.default}}),ow=U({"../../node_modules/picocolors/picocolors.browser.js"(e,t){var r=String,n=function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r,blackBright:r,redBright:r,greenBright:r,yellowBright:r,blueBright:r,magentaBright:r,cyanBright:r,whiteBright:r,bgBlackBright:r,bgRedBright:r,bgGreenBright:r,bgYellowBright:r,bgBlueBright:r,bgMagentaBright:r,bgCyanBright:r,bgWhiteBright:r}};t.exports=n(),t.exports.createColors=n}}),sw=U({"../../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(i){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var o=String(i),s=o.length,a=-1,l,u="",d=o.charCodeAt(0);++a<s;){if(l=o.charCodeAt(a),l==0){u+="�";continue}if(l>=1&&l<=31||l==127||a==0&&l>=48&&l<=57||a==1&&l>=48&&l<=57&&d==45){u+="\\"+l.toString(16)+" ";continue}if(a==0&&s==1&&l==45){u+="\\"+o.charAt(a);continue}if(l>=128||l==45||l==95||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122){u+=o.charAt(a);continue}u+="\\"+o.charAt(a)}return u};return r.CSS||(r.CSS={}),r.CSS.escape=n,n})}}),aw=U({"../../node_modules/@testing-library/dom/node_modules/ansi-styles/index.js"(e,t){var r=(o=0)=>s=>`\x1B[${38+o};5;${s}m`,n=(o=0)=>(s,a,l)=>`\x1B[${38+o};2;${s};${a};${l}m`;function i(){let o=new Map,s={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]}};s.color.gray=s.color.blackBright,s.bgColor.bgGray=s.bgColor.bgBlackBright,s.color.grey=s.color.blackBright,s.bgColor.bgGrey=s.bgColor.bgBlackBright;for(let[a,l]of Object.entries(s)){for(let[u,d]of Object.entries(l))s[u]={open:`\x1B[${d[0]}m`,close:`\x1B[${d[1]}m`},l[u]=s[u],o.set(d[0],d[1]);Object.defineProperty(s,a,{value:l,enumerable:!1})}return Object.defineProperty(s,"codes",{value:o,enumerable:!1}),s.color.close="\x1B[39m",s.bgColor.close="\x1B[49m",s.color.ansi256=r(),s.color.ansi16m=n(),s.bgColor.ansi256=r(10),s.bgColor.ansi16m=n(10),Object.defineProperties(s,{rgbToAnsi256:{value:(a,l,u)=>a===l&&l===u?a<8?16:a>248?231:Math.round((a-8)/247*24)+232:16+36*Math.round(a/255*5)+6*Math.round(l/255*5)+Math.round(u/255*5),enumerable:!1},hexToRgb:{value:a=>{let l=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(a.toString(16));if(!l)return[0,0,0];let{colorString:u}=l.groups;u.length===3&&(u=u.split("").map(p=>p+p).join(""));let d=Number.parseInt(u,16);return[d>>16&255,d>>8&255,d&255]},enumerable:!1},hexToAnsi256:{value:a=>s.rgbToAnsi256(...s.hexToRgb(a)),enumerable:!1}}),s}Object.defineProperty(t,"exports",{enumerable:!0,get:i})}}),xc=U({"../../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=i,e.printObjectProperties=o;var t=(s,a)=>{let l=Object.keys(s).sort(a);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(s).forEach(u=>{Object.getOwnPropertyDescriptor(s,u).enumerable&&l.push(u)}),l};function r(s,a,l,u,d,p,f=": "){let h="",y=s.next();if(!y.done){h+=a.spacingOuter;let g=l+a.indent;for(;!y.done;){let v=p(y.value[0],a,g,u,d),b=p(y.value[1],a,g,u,d);h+=g+v+f+b,y=s.next(),y.done?a.min||(h+=","):h+=","+a.spacingInner}h+=a.spacingOuter+l}return h}function n(s,a,l,u,d,p){let f="",h=s.next();if(!h.done){f+=a.spacingOuter;let y=l+a.indent;for(;!h.done;)f+=y+p(h.value,a,y,u,d),h=s.next(),h.done?a.min||(f+=","):f+=","+a.spacingInner;f+=a.spacingOuter+l}return f}function i(s,a,l,u,d,p){let f="";if(s.length){f+=a.spacingOuter;let h=l+a.indent;for(let y=0;y<s.length;y++)f+=h,y in s&&(f+=p(s[y],a,h,u,d)),y<s.length-1?f+=","+a.spacingInner:a.min||(f+=",");f+=a.spacingOuter+l}return f}function o(s,a,l,u,d,p){let f="",h=t(s,a.compareKeys);if(h.length){f+=a.spacingOuter;let y=l+a.indent;for(let g=0;g<h.length;g++){let v=h[g],b=p(v,a,y,u,d),E=p(s[v],a,y,u,d);f+=y+b+": "+E,g<h.length-1?f+=","+a.spacingInner:a.min||(f+=",")}f+=a.spacingOuter+l}return f}}}),eq=U({"../../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=xc(),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,i=typeof n=="function"&&n.for?n.for("jest.asymmetricMatcher"):1267621,o=" ",s=(d,p,f,h,y,g)=>{let v=d.toString();return v==="ArrayContaining"||v==="ArrayNotContaining"?++h>p.maxDepth?"["+v+"]":v+o+"["+(0,t.printListItems)(d.sample,p,f,h,y,g)+"]":v==="ObjectContaining"||v==="ObjectNotContaining"?++h>p.maxDepth?"["+v+"]":v+o+"{"+(0,t.printObjectProperties)(d.sample,p,f,h,y,g)+"}":v==="StringMatching"||v==="StringNotMatching"||v==="StringContaining"||v==="StringNotContaining"?v+o+g(d.sample,p,f,h,y):d.toAsymmetricMatcher()};e.serialize=s;var a=d=>d&&d.$$typeof===i;e.test=a;var l={serialize:s,test:a},u=l;e.default=u}}),tq=U({"../../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")}}}),rq=U({"../../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(tq()),r=n(aw());function n(u){return u&&u.__esModule?u:{default:u}}var i=u=>u.replace((0,t.default)(),d=>{switch(d){case r.default.red.close:case r.default.green.close:case r.default.cyan.close:case r.default.gray.close:case r.default.white.close:case r.default.yellow.close:case r.default.bgRed.close:case r.default.bgGreen.close:case r.default.bgYellow.close:case r.default.inverse.close:case r.default.dim.close:case r.default.bold.close:case r.default.reset.open:case r.default.reset.close:return"</>";case r.default.red.open:return"<red>";case r.default.green.open:return"<green>";case r.default.cyan.open:return"<cyan>";case r.default.gray.open:return"<gray>";case r.default.white.open:return"<white>";case r.default.yellow.open:return"<yellow>";case r.default.bgRed.open:return"<bgRed>";case r.default.bgGreen.open:return"<bgGreen>";case r.default.bgYellow.open:return"<bgYellow>";case r.default.inverse.open:return"<inverse>";case r.default.dim.open:return"<dim>";case r.default.bold.open:return"<bold>";default:return""}}),o=u=>typeof u=="string"&&!!u.match((0,t.default)());e.test=o;var s=(u,d,p,f,h,y)=>y(i(u),d,p,f,h);e.serialize=s;var a={serialize:s,test:o},l=a;e.default=l}}),nq=U({"../../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=xc(),r=" ",n=["DOMStringMap","NamedNodeMap"],i=/^(HTML\w*Collection|NodeList)$/,o=p=>n.indexOf(p)!==-1||i.test(p),s=p=>p&&p.constructor&&!!p.constructor.name&&o(p.constructor.name);e.test=s;var a=p=>p.constructor.name==="NamedNodeMap",l=(p,f,h,y,g,v)=>{let b=p.constructor.name;return++y>f.maxDepth?"["+b+"]":(f.min?"":b+r)+(n.indexOf(b)!==-1?"{"+(0,t.printObjectProperties)(a(p)?Array.from(p).reduce((E,w)=>(E[w.name]=w.value,E),{}):{...p},f,h,y,g,v)+"}":"["+(0,t.printListItems)(Array.from(p),f,h,y,g,v)+"]")};e.serialize=l;var u={serialize:l,test:s},d=u;e.default=d}}),iq=U({"../../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,"<").replace(/>/g,">")}}}),Ph=U({"../../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(iq());function r(u){return u&&u.__esModule?u:{default:u}}var n=(u,d,p,f,h,y,g)=>{let v=f+p.indent,b=p.colors;return u.map(E=>{let w=d[E],A=g(w,p,v,h,y);return typeof w!="string"&&(A.indexOf(`
|
|
9
|
-
`)!==-1&&(A=p.spacingOuter+v+A+p.spacingOuter+f),A="{"+A+"}"),p.spacingInner+f+b.prop.open+E+b.prop.close+"="+b.value.open+A+b.value.close}).join("")};e.printProps=n;var i=(u,d,p,f,h,y)=>u.map(g=>d.spacingOuter+p+(typeof g=="string"?o(g,d):y(g,d,p,f,h))).join("");e.printChildren=i;var o=(u,d)=>{let p=d.colors.content;return p.open+(0,t.default)(u)+p.close};e.printText=o;var s=(u,d)=>{let p=d.colors.comment;return p.open+"<!--"+(0,t.default)(u)+"-->"+p.close};e.printComment=s;var a=(u,d,p,f,h)=>{let y=f.colors.tag;return y.open+"<"+u+(d&&y.close+d+f.spacingOuter+h+y.open)+(p?">"+y.close+p+f.spacingOuter+h+y.open+"</"+u:(d&&!f.min?"":" ")+"/")+">"+y.close};e.printElement=a;var l=(u,d)=>{let p=d.colors.tag;return p.open+"<"+u+p.close+" …"+p.open+" />"+p.close};e.printElementAsLeaf=l}}),oq=U({"../../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=Ph(),r=1,n=3,i=8,o=11,s=/^((HTML|SVG)\w*)?Element$/,a=v=>{try{return typeof v.hasAttribute=="function"&&v.hasAttribute("is")}catch{return!1}},l=v=>{let b=v.constructor.name,{nodeType:E,tagName:w}=v,A=typeof w=="string"&&w.includes("-")||a(v);return E===r&&(s.test(b)||A)||E===n&&b==="Text"||E===i&&b==="Comment"||E===o&&b==="DocumentFragment"},u=v=>{var b;return(v==null||(b=v.constructor)===null||b===void 0?void 0:b.name)&&l(v)};e.test=u;function d(v){return v.nodeType===n}function p(v){return v.nodeType===i}function f(v){return v.nodeType===o}var h=(v,b,E,w,A,C)=>{if(d(v))return(0,t.printText)(v.data,b);if(p(v))return(0,t.printComment)(v.data,b);let R=f(v)?"DocumentFragment":v.tagName.toLowerCase();return++w>b.maxDepth?(0,t.printElementAsLeaf)(R,b):(0,t.printElement)(R,(0,t.printProps)(f(v)?[]:Array.from(v.attributes).map(S=>S.name).sort(),f(v)?{}:Array.from(v.attributes).reduce((S,_)=>(S[_.name]=_.value,S),{}),b,E+b.indent,w,A,C),(0,t.printChildren)(Array.prototype.slice.call(v.childNodes||v.children),b,E+b.indent,w,A,C),b,E)};e.serialize=h;var y={serialize:h,test:u},g=y;e.default=g}}),sq=U({"../../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=xc(),r="@@__IMMUTABLE_ITERABLE__@@",n="@@__IMMUTABLE_LIST__@@",i="@@__IMMUTABLE_KEYED__@@",o="@@__IMMUTABLE_MAP__@@",s="@@__IMMUTABLE_ORDERED__@@",a="@@__IMMUTABLE_RECORD__@@",l="@@__IMMUTABLE_SEQ__@@",u="@@__IMMUTABLE_SET__@@",d="@@__IMMUTABLE_STACK__@@",p=_=>"Immutable."+_,f=_=>"["+_+"]",h=" ",y="…",g=(_,O,M,I,k,N,P)=>++I>O.maxDepth?f(p(P)):p(P)+h+"{"+(0,t.printIteratorEntries)(_.entries(),O,M,I,k,N)+"}";function v(_){let O=0;return{next(){if(O<_._keys.length){let M=_._keys[O++];return{done:!1,value:[M,_.get(M)]}}return{done:!0,value:void 0}}}}var b=(_,O,M,I,k,N)=>{let P=p(_._name||"Record");return++I>O.maxDepth?f(P):P+h+"{"+(0,t.printIteratorEntries)(v(_),O,M,I,k,N)+"}"},E=(_,O,M,I,k,N)=>{let P=p("Seq");return++I>O.maxDepth?f(P):_[i]?P+h+"{"+(_._iter||_._object?(0,t.printIteratorEntries)(_.entries(),O,M,I,k,N):y)+"}":P+h+"["+(_._iter||_._array||_._collection||_._iterable?(0,t.printIteratorValues)(_.values(),O,M,I,k,N):y)+"]"},w=(_,O,M,I,k,N,P)=>++I>O.maxDepth?f(p(P)):p(P)+h+"["+(0,t.printIteratorValues)(_.values(),O,M,I,k,N)+"]",A=(_,O,M,I,k,N)=>_[o]?g(_,O,M,I,k,N,_[s]?"OrderedMap":"Map"):_[n]?w(_,O,M,I,k,N,"List"):_[u]?w(_,O,M,I,k,N,_[s]?"OrderedSet":"Set"):_[d]?w(_,O,M,I,k,N,"Stack"):_[l]?E(_,O,M,I,k,N):b(_,O,M,I,k,N);e.serialize=A;var C=_=>_&&(_[r]===!0||_[a]===!0);e.test=C;var R={serialize:A,test:C},S=R;e.default=S}}),aq=U({"../../node_modules/@testing-library/dom/node_modules/react-is/cjs/react-is.production.min.js"(e){var t=60103,r=60106,n=60107,i=60108,o=60114,s=60109,a=60110,l=60112,u=60113,d=60120,p=60115,f=60116,h=60121,y=60122,g=60117,v=60129,b=60131;typeof Symbol=="function"&&Symbol.for&&(E=Symbol.for,t=E("react.element"),r=E("react.portal"),n=E("react.fragment"),i=E("react.strict_mode"),o=E("react.profiler"),s=E("react.provider"),a=E("react.context"),l=E("react.forward_ref"),u=E("react.suspense"),d=E("react.suspense_list"),p=E("react.memo"),f=E("react.lazy"),h=E("react.block"),y=E("react.server.block"),g=E("react.fundamental"),v=E("react.debug_trace_mode"),b=E("react.legacy_hidden"));var E;function w(P){if(typeof P=="object"&&P!==null){var q=P.$$typeof;switch(q){case t:switch(P=P.type,P){case n:case o:case i:case u:case d:return P;default:switch(P=P&&P.$$typeof,P){case a:case l:case f:case p:case s:return P;default:return q}}case r:return q}}}var A=s,C=t,R=l,S=n,_=f,O=p,M=r,I=o,k=i,N=u;e.ContextConsumer=a,e.ContextProvider=A,e.Element=C,e.ForwardRef=R,e.Fragment=S,e.Lazy=_,e.Memo=O,e.Portal=M,e.Profiler=I,e.StrictMode=k,e.Suspense=N,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function(P){return w(P)===a},e.isContextProvider=function(P){return w(P)===s},e.isElement=function(P){return typeof P=="object"&&P!==null&&P.$$typeof===t},e.isForwardRef=function(P){return w(P)===l},e.isFragment=function(P){return w(P)===n},e.isLazy=function(P){return w(P)===f},e.isMemo=function(P){return w(P)===p},e.isPortal=function(P){return w(P)===r},e.isProfiler=function(P){return w(P)===o},e.isStrictMode=function(P){return w(P)===i},e.isSuspense=function(P){return w(P)===u},e.isValidElementType=function(P){return typeof P=="string"||typeof P=="function"||P===n||P===o||P===v||P===i||P===u||P===d||P===b||typeof P=="object"&&P!==null&&(P.$$typeof===f||P.$$typeof===p||P.$$typeof===s||P.$$typeof===a||P.$$typeof===l||P.$$typeof===g||P.$$typeof===h||P[0]===y)},e.typeOf=w}}),lq=U({"../../node_modules/@testing-library/dom/node_modules/react-is/index.js"(e,t){t.exports=aq()}}),uq=U({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactElement.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=i(lq()),r=Ph();function n(f){if(typeof WeakMap!="function")return null;var h=new WeakMap,y=new WeakMap;return(n=function(g){return g?y:h})(f)}function i(f,h){if(f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var y=n(h);if(y&&y.has(f))return y.get(f);var g={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in f)if(b!=="default"&&Object.prototype.hasOwnProperty.call(f,b)){var E=v?Object.getOwnPropertyDescriptor(f,b):null;E&&(E.get||E.set)?Object.defineProperty(g,b,E):g[b]=f[b]}return g.default=f,y&&y.set(f,g),g}var o=(f,h=[])=>(Array.isArray(f)?f.forEach(y=>{o(y,h)}):f!=null&&f!==!1&&h.push(f),h),s=f=>{let h=f.type;if(typeof h=="string")return h;if(typeof h=="function")return h.displayName||h.name||"Unknown";if(t.isFragment(f))return"React.Fragment";if(t.isSuspense(f))return"React.Suspense";if(typeof h=="object"&&h!==null){if(t.isContextProvider(f))return"Context.Provider";if(t.isContextConsumer(f))return"Context.Consumer";if(t.isForwardRef(f)){if(h.displayName)return h.displayName;let y=h.render.displayName||h.render.name||"";return y!==""?"ForwardRef("+y+")":"ForwardRef"}if(t.isMemo(f)){let y=h.displayName||h.type.displayName||h.type.name||"";return y!==""?"Memo("+y+")":"Memo"}}return"UNDEFINED"},a=f=>{let{props:h}=f;return Object.keys(h).filter(y=>y!=="children"&&h[y]!==void 0).sort()},l=(f,h,y,g,v,b)=>++g>h.maxDepth?(0,r.printElementAsLeaf)(s(f),h):(0,r.printElement)(s(f),(0,r.printProps)(a(f),f.props,h,y+h.indent,g,v,b),(0,r.printChildren)(o(f.props.children),h,y+h.indent,g,v,b),h,y);e.serialize=l;var u=f=>f!=null&&t.isElement(f);e.test=u;var d={serialize:l,test:u},p=d;e.default=p}}),cq=U({"../../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=Ph(),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,i=typeof n=="function"&&n.for?n.for("react.test.json"):245830487,o=d=>{let{props:p}=d;return p?Object.keys(p).filter(f=>p[f]!==void 0).sort():[]},s=(d,p,f,h,y,g)=>++h>p.maxDepth?(0,t.printElementAsLeaf)(d.type,p):(0,t.printElement)(d.type,d.props?(0,t.printProps)(o(d),d.props,p,f+p.indent,h,y,g):"",d.children?(0,t.printChildren)(d.children,p,f+p.indent,h,y,g):"",p,f);e.serialize=s;var a=d=>d&&d.$$typeof===i;e.test=a;var l={serialize:s,test:a},u=l;e.default=u}}),dq=U({"../../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=Re,e.plugins=void 0;var t=d(aw()),r=xc(),n=d(eq()),i=d(rq()),o=d(nq()),s=d(oq()),a=d(sq()),l=d(uq()),u=d(cq());function d(V){return V&&V.__esModule?V:{default:V}}var p=Object.prototype.toString,f=Date.prototype.toISOString,h=Error.prototype.toString,y=RegExp.prototype.toString,g=V=>typeof V.constructor=="function"&&V.constructor.name||"Object",v=V=>typeof window<"u"&&V===window,b=/^Symbol\((.*)\)(.*)$/,E=/\n/gi,w=class extends Error{constructor(V,ae){super(V),this.stack=ae,this.name=this.constructor.name}};function A(V){return V==="[object Array]"||V==="[object ArrayBuffer]"||V==="[object DataView]"||V==="[object Float32Array]"||V==="[object Float64Array]"||V==="[object Int8Array]"||V==="[object Int16Array]"||V==="[object Int32Array]"||V==="[object Uint8Array]"||V==="[object Uint8ClampedArray]"||V==="[object Uint16Array]"||V==="[object Uint32Array]"}function C(V){return Object.is(V,-0)?"-0":String(V)}function R(V){return`${V}n`}function S(V,ae){return ae?"[Function "+(V.name||"anonymous")+"]":"[Function]"}function _(V){return String(V).replace(b,"Symbol($1)")}function O(V){return"["+h.call(V)+"]"}function M(V,ae,me,j){if(V===!0||V===!1)return""+V;if(V===void 0)return"undefined";if(V===null)return"null";let B=typeof V;if(B==="number")return C(V);if(B==="bigint")return R(V);if(B==="string")return j?'"'+V.replace(/"|\\/g,"\\$&")+'"':'"'+V+'"';if(B==="function")return S(V,ae);if(B==="symbol")return _(V);let W=p.call(V);return W==="[object WeakMap]"?"WeakMap {}":W==="[object WeakSet]"?"WeakSet {}":W==="[object Function]"||W==="[object GeneratorFunction]"?S(V,ae):W==="[object Symbol]"?_(V):W==="[object Date]"?isNaN(+V)?"Date { NaN }":f.call(V):W==="[object Error]"?O(V):W==="[object RegExp]"?me?y.call(V).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):y.call(V):V instanceof Error?O(V):null}function I(V,ae,me,j,B,W){if(B.indexOf(V)!==-1)return"[Circular]";B=B.slice(),B.push(V);let Y=++j>ae.maxDepth,z=ae.min;if(ae.callToJSON&&!Y&&V.toJSON&&typeof V.toJSON=="function"&&!W)return q(V.toJSON(),ae,me,j,B,!0);let ee=p.call(V);return ee==="[object Arguments]"?Y?"[Arguments]":(z?"":"Arguments ")+"["+(0,r.printListItems)(V,ae,me,j,B,q)+"]":A(ee)?Y?"["+V.constructor.name+"]":(z||!ae.printBasicPrototype&&V.constructor.name==="Array"?"":V.constructor.name+" ")+"["+(0,r.printListItems)(V,ae,me,j,B,q)+"]":ee==="[object Map]"?Y?"[Map]":"Map {"+(0,r.printIteratorEntries)(V.entries(),ae,me,j,B,q," => ")+"}":ee==="[object Set]"?Y?"[Set]":"Set {"+(0,r.printIteratorValues)(V.values(),ae,me,j,B,q)+"}":Y||v(V)?"["+g(V)+"]":(z||!ae.printBasicPrototype&&g(V)==="Object"?"":g(V)+" ")+"{"+(0,r.printObjectProperties)(V,ae,me,j,B,q)+"}"}function k(V){return V.serialize!=null}function N(V,ae,me,j,B,W){let Y;try{Y=k(V)?V.serialize(ae,me,j,B,W,q):V.print(ae,z=>q(z,me,j,B,W),z=>{let ee=j+me.indent;return ee+z.replace(E,`
|
|
10
|
-
`+ee)},{edgeSpacing:me.spacingOuter,min:me.min,spacing:me.spacingInner},me.colors)}catch(z){throw new w(z.message,z.stack)}if(typeof Y!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof Y}".`);return Y}function P(V,ae){for(let me=0;me<V.length;me++)try{if(V[me].test(ae))return V[me]}catch(j){throw new w(j.message,j.stack)}return null}function q(V,ae,me,j,B,W){let Y=P(ae.plugins,V);if(Y!==null)return N(Y,V,ae,me,j,B);let z=M(V,ae.printFunctionName,ae.escapeRegex,ae.escapeString);return z!==null?z:I(V,ae,me,j,B,W)}var F={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},$=Object.keys(F),G={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=G;function ie(V){if(Object.keys(V).forEach(ae=>{if(!G.hasOwnProperty(ae))throw new Error(`pretty-format: Unknown option "${ae}".`)}),V.min&&V.indent!==void 0&&V.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(V.theme!==void 0){if(V.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof V.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof V.theme}".`)}}var pe=V=>$.reduce((ae,me)=>{let j=V.theme&&V.theme[me]!==void 0?V.theme[me]:F[me],B=j&&t.default[j];if(B&&typeof B.close=="string"&&typeof B.open=="string")ae[me]=B;else throw new Error(`pretty-format: Option "theme" has a key "${me}" whose value "${j}" is undefined in ansi-styles.`);return ae},Object.create(null)),he=()=>$.reduce((V,ae)=>(V[ae]={close:"",open:""},V),Object.create(null)),Q=V=>V&&V.printFunctionName!==void 0?V.printFunctionName:G.printFunctionName,Z=V=>V&&V.escapeRegex!==void 0?V.escapeRegex:G.escapeRegex,ge=V=>V&&V.escapeString!==void 0?V.escapeString:G.escapeString,ce=V=>{var ae;return{callToJSON:V&&V.callToJSON!==void 0?V.callToJSON:G.callToJSON,colors:V&&V.highlight?pe(V):he(),compareKeys:V&&typeof V.compareKeys=="function"?V.compareKeys:G.compareKeys,escapeRegex:Z(V),escapeString:ge(V),indent:V&&V.min?"":re(V&&V.indent!==void 0?V.indent:G.indent),maxDepth:V&&V.maxDepth!==void 0?V.maxDepth:G.maxDepth,min:V&&V.min!==void 0?V.min:G.min,plugins:V&&V.plugins!==void 0?V.plugins:G.plugins,printBasicPrototype:(ae=V==null?void 0:V.printBasicPrototype)!==null&&ae!==void 0?ae:!0,printFunctionName:Q(V),spacingInner:V&&V.min?" ":`
|
|
11
|
-
`,spacingOuter:V&&V.min?"":`
|
|
12
|
-
`}};function re(V){return new Array(V+1).join(" ")}function Re(V,ae){if(ae&&(ie(ae),ae.plugins)){let j=P(ae.plugins,V);if(j!==null)return N(j,V,ce(ae),"",0,[])}let me=M(V,Q(ae),Z(ae),ge(ae));return me!==null?me:I(V,ce(ae),"",0,[])}var Te={AsymmetricMatcher:n.default,ConvertAnsi:i.default,DOMCollection:o.default,DOMElement:s.default,Immutable:a.default,ReactElement:l.default,ReactTestComponent:u.default};e.plugins=Te;var et=Re;e.default=et}}),pq=U({"../../node_modules/lz-string/libs/lz-string.js"(e,t){var r=function(){var n=String.fromCharCode,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function a(u,d){if(!s[u]){s[u]={};for(var p=0;p<u.length;p++)s[u][u.charAt(p)]=p}return s[u][d]}var l={compressToBase64:function(u){if(u==null)return"";var d=l._compress(u,6,function(p){return i.charAt(p)});switch(d.length%4){default:case 0:return d;case 1:return d+"===";case 2:return d+"==";case 3:return d+"="}},decompressFromBase64:function(u){return u==null?"":u==""?null:l._decompress(u.length,32,function(d){return a(i,u.charAt(d))})},compressToUTF16:function(u){return u==null?"":l._compress(u,15,function(d){return n(d+32)})+" "},decompressFromUTF16:function(u){return u==null?"":u==""?null:l._decompress(u.length,16384,function(d){return u.charCodeAt(d)-32})},compressToUint8Array:function(u){for(var d=l.compress(u),p=new Uint8Array(d.length*2),f=0,h=d.length;f<h;f++){var y=d.charCodeAt(f);p[f*2]=y>>>8,p[f*2+1]=y%256}return p},decompressFromUint8Array:function(u){if(u==null)return l.decompress(u);for(var d=new Array(u.length/2),p=0,f=d.length;p<f;p++)d[p]=u[p*2]*256+u[p*2+1];var h=[];return d.forEach(function(y){h.push(n(y))}),l.decompress(h.join(""))},compressToEncodedURIComponent:function(u){return u==null?"":l._compress(u,6,function(d){return o.charAt(d)})},decompressFromEncodedURIComponent:function(u){return u==null?"":u==""?null:(u=u.replace(/ /g,"+"),l._decompress(u.length,32,function(d){return a(o,u.charAt(d))}))},compress:function(u){return l._compress(u,16,function(d){return n(d)})},_compress:function(u,d,p){if(u==null)return"";var f,h,y={},g={},v="",b="",E="",w=2,A=3,C=2,R=[],S=0,_=0,O;for(O=0;O<u.length;O+=1)if(v=u.charAt(O),Object.prototype.hasOwnProperty.call(y,v)||(y[v]=A++,g[v]=!0),b=E+v,Object.prototype.hasOwnProperty.call(y,b))E=b;else{if(Object.prototype.hasOwnProperty.call(g,E)){if(E.charCodeAt(0)<256){for(f=0;f<C;f++)S=S<<1,_==d-1?(_=0,R.push(p(S)),S=0):_++;for(h=E.charCodeAt(0),f=0;f<8;f++)S=S<<1|h&1,_==d-1?(_=0,R.push(p(S)),S=0):_++,h=h>>1}else{for(h=1,f=0;f<C;f++)S=S<<1|h,_==d-1?(_=0,R.push(p(S)),S=0):_++,h=0;for(h=E.charCodeAt(0),f=0;f<16;f++)S=S<<1|h&1,_==d-1?(_=0,R.push(p(S)),S=0):_++,h=h>>1}w--,w==0&&(w=Math.pow(2,C),C++),delete g[E]}else for(h=y[E],f=0;f<C;f++)S=S<<1|h&1,_==d-1?(_=0,R.push(p(S)),S=0):_++,h=h>>1;w--,w==0&&(w=Math.pow(2,C),C++),y[b]=A++,E=String(v)}if(E!==""){if(Object.prototype.hasOwnProperty.call(g,E)){if(E.charCodeAt(0)<256){for(f=0;f<C;f++)S=S<<1,_==d-1?(_=0,R.push(p(S)),S=0):_++;for(h=E.charCodeAt(0),f=0;f<8;f++)S=S<<1|h&1,_==d-1?(_=0,R.push(p(S)),S=0):_++,h=h>>1}else{for(h=1,f=0;f<C;f++)S=S<<1|h,_==d-1?(_=0,R.push(p(S)),S=0):_++,h=0;for(h=E.charCodeAt(0),f=0;f<16;f++)S=S<<1|h&1,_==d-1?(_=0,R.push(p(S)),S=0):_++,h=h>>1}w--,w==0&&(w=Math.pow(2,C),C++),delete g[E]}else for(h=y[E],f=0;f<C;f++)S=S<<1|h&1,_==d-1?(_=0,R.push(p(S)),S=0):_++,h=h>>1;w--,w==0&&(w=Math.pow(2,C),C++)}for(h=2,f=0;f<C;f++)S=S<<1|h&1,_==d-1?(_=0,R.push(p(S)),S=0):_++,h=h>>1;for(;;)if(S=S<<1,_==d-1){R.push(p(S));break}else _++;return R.join("")},decompress:function(u){return u==null?"":u==""?null:l._decompress(u.length,32768,function(d){return u.charCodeAt(d)})},_decompress:function(u,d,p){var f=[],h=4,y=4,g=3,v="",b=[],E,w,A,C,R,S,_,O={val:p(0),position:d,index:1};for(E=0;E<3;E+=1)f[E]=E;for(A=0,R=Math.pow(2,2),S=1;S!=R;)C=O.val&O.position,O.position>>=1,O.position==0&&(O.position=d,O.val=p(O.index++)),A|=(C>0?1:0)*S,S<<=1;switch(A){case 0:for(A=0,R=Math.pow(2,8),S=1;S!=R;)C=O.val&O.position,O.position>>=1,O.position==0&&(O.position=d,O.val=p(O.index++)),A|=(C>0?1:0)*S,S<<=1;_=n(A);break;case 1:for(A=0,R=Math.pow(2,16),S=1;S!=R;)C=O.val&O.position,O.position>>=1,O.position==0&&(O.position=d,O.val=p(O.index++)),A|=(C>0?1:0)*S,S<<=1;_=n(A);break;case 2:return""}for(f[3]=_,w=_,b.push(_);;){if(O.index>u)return"";for(A=0,R=Math.pow(2,g),S=1;S!=R;)C=O.val&O.position,O.position>>=1,O.position==0&&(O.position=d,O.val=p(O.index++)),A|=(C>0?1:0)*S,S<<=1;switch(_=A){case 0:for(A=0,R=Math.pow(2,8),S=1;S!=R;)C=O.val&O.position,O.position>>=1,O.position==0&&(O.position=d,O.val=p(O.index++)),A|=(C>0?1:0)*S,S<<=1;f[y++]=n(A),_=y-1,h--;break;case 1:for(A=0,R=Math.pow(2,16),S=1;S!=R;)C=O.val&O.position,O.position>>=1,O.position==0&&(O.position=d,O.val=p(O.index++)),A|=(C>0?1:0)*S,S<<=1;f[y++]=n(A),_=y-1,h--;break;case 2:return b.join("")}if(h==0&&(h=Math.pow(2,g),g++),f[_])v=f[_];else if(_===y)v=w+w.charAt(0);else return null;b.push(v),f[y++]=w+v.charAt(0),h--,w=v,h==0&&(h=Math.pow(2,g),g++)}}};return l}();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})}}),lw=U({"../../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,i,o){function s(u,d){if(!i[u]){if(!n[u]){var p=typeof Dl=="function"&&Dl;if(!d&&p)return p(u,!0);if(a)return a(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var h=i[u]={exports:{}};n[u][0].call(h.exports,function(y){var g=n[u][1][y];return s(g||y)},h,h.exports,r,n,i,o)}return i[u].exports}for(var a=typeof Dl=="function"&&Dl,l=0;l<o.length;l++)s(o[l]);return s}({1:[function(r,n,i){n.exports=function(o){if(typeof Map!="function"||o){var s=r("./similar");return new s}else return new Map}},{"./similar":2}],2:[function(r,n,i){function o(){return this.list=[],this.lastItem=void 0,this.size=0,this}o.prototype.get=function(s){var a;if(this.lastItem&&this.isEqual(this.lastItem.key,s))return this.lastItem.val;if(a=this.indexOf(s),a>=0)return this.lastItem=this.list[a],this.list[a].val},o.prototype.set=function(s,a){var l;return this.lastItem&&this.isEqual(this.lastItem.key,s)?(this.lastItem.val=a,this):(l=this.indexOf(s),l>=0?(this.lastItem=this.list[l],this.list[l].val=a,this):(this.lastItem={key:s,val:a},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(s){var a;if(this.lastItem&&this.isEqual(this.lastItem.key,s)&&(this.lastItem=void 0),a=this.indexOf(s),a>=0)return this.size--,this.list.splice(a,1)[0]},o.prototype.has=function(s){var a;return this.lastItem&&this.isEqual(this.lastItem.key,s)?!0:(a=this.indexOf(s),a>=0?(this.lastItem=this.list[a],!0):!1)},o.prototype.forEach=function(s,a){var l;for(l=0;l<this.size;l++)s.call(a||this,this.list[l].val,this.list[l].key,this)},o.prototype.indexOf=function(s){var a;for(a=0;a<this.size;a++)if(this.isEqual(this.list[a].key,s))return a;return-1},o.prototype.isEqual=function(s,a){return s===a||s!==s&&a!==a},n.exports=o},{}],3:[function(r,n,i){var o=r("map-or-similar");n.exports=function(u){var d=new o(!1),p=[];return function(f){var h=function(){var y=d,g,v,b=arguments.length-1,E=Array(b+1),w=!0,A;if((h.numArgs||h.numArgs===0)&&h.numArgs!==b+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(A=0;A<b;A++){if(E[A]={cacheItem:y,arg:arguments[A]},y.has(arguments[A])){y=y.get(arguments[A]);continue}w=!1,g=new o(!1),y.set(arguments[A],g),y=g}return w&&(y.has(arguments[b])?v=y.get(arguments[b]):w=!1),w||(v=f.apply(null,arguments),y.set(arguments[b],v)),u>0&&(E[b]={cacheItem:y,arg:arguments[b]},w?s(p,E):p.push(E),p.length>u&&a(p.shift())),h.wasMemoized=w,h.numArgs=b+1,v};return h.limit=u,h.wasMemoized=!1,h.cache=d,h.lru=p,h}};function s(u,d){var p=u.length,f=d.length,h,y,g;for(y=0;y<p;y++){for(h=!0,g=0;g<f;g++)if(!l(u[y][g].arg,d[g].arg)){h=!1;break}if(h)break}u.push(u.splice(y,1)[0])}function a(u){var d=u.length,p=u[d-1],f,h;for(p.cacheItem.delete(p.arg),h=d-2;h>=0&&(p=u[h],f=p.cacheItem.get(p.arg),!f||!f.size);h--)p.cacheItem.delete(p.arg)}function l(u,d){return u===d||u!==u&&d!==d}},{"map-or-similar":1}]},{},[3])(3)})}}),uw=U({"../../node_modules/picoquery/lib/string-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=n;var t=Array.from({length:256},(i,o)=>"%"+((o<16?"0":"")+o.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(i){let o=i.length;if(o===0)return"";let s="",a=0,l=0;e:for(;l<o;l++){let u=i.charCodeAt(l);for(;u<128;){if(r[u]!==1&&(a<l&&(s+=i.slice(a,l)),a=l+1,s+=t[u]),++l===o)break e;u=i.charCodeAt(l)}if(a<l&&(s+=i.slice(a,l)),u<2048){a=l+1,s+=t[192|u>>6]+t[128|u&63];continue}if(u<55296||u>=57344){a=l+1,s+=t[224|u>>12]+t[128|u>>6&63]+t[128|u&63];continue}if(++l,l>=o)throw new Error("URI malformed");let d=i.charCodeAt(l)&1023;a=l+1,u=65536+((u&1023)<<10|d),s+=t[240|u>>18]+t[128|u>>12&63]+t[128|u>>6&63]+t[128|u&63]}return a===0?i:a<o?s+i.slice(a):s}}}),Ch=U({"../../node_modules/picoquery/lib/shared.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=uw(),r=o=>{switch(typeof o){case"string":return(0,t.encodeString)(o);case"bigint":case"boolean":return""+o;case"number":if(Number.isFinite(o))return o<1e21?""+o:(0,t.encodeString)(""+o);break}return o instanceof Date?(0,t.encodeString)(o.toISOString()):""};e.defaultValueSerializer=r;var n=o=>o instanceof Date;e.defaultShouldSerializeObject=n;var i=o=>o;e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:i,valueSerializer:e.defaultValueSerializer,keyDeserializer:i,shouldSerializeObject:e.defaultShouldSerializeObject}}}),cw=U({"../../node_modules/picoquery/lib/object-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=i,e.stringifyObject=d;var t=Ch(),r=uw();function n(p){return p==="__proto__"||p==="constructor"||p==="prototype"}function i(p,f,h,y,g){if(n(f))return p;let v=p[f];return typeof v=="object"&&v!==null?v:!y&&(g||typeof h=="number"||typeof h=="string"&&h*0===0&&h.indexOf(".")===-1)?p[f]=[]:p[f]={}}var o=20,s="[]",a="[",l="]",u=".";function d(p,f,h=0,y,g){let{nestingSyntax:v=t.defaultOptions.nestingSyntax,arrayRepeat:b=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:E=t.defaultOptions.arrayRepeatSyntax,nesting:w=t.defaultOptions.nesting,delimiter:A=t.defaultOptions.delimiter,valueSerializer:C=t.defaultOptions.valueSerializer,shouldSerializeObject:R=t.defaultOptions.shouldSerializeObject}=f,S=typeof A=="number"?String.fromCharCode(A):A,_=g===!0&&b,O=v==="dot"||v==="js"&&!g;if(h>o)return"";let M="",I=!0,k=!1;for(let N in p){let P=p[N];if(P===void 0)continue;let q;y?(q=y,_?E==="bracket"&&(q+=s):O?(q+=u,q+=N):(q+=a,q+=N,q+=l)):q=N,I||(M+=S),typeof P=="object"&&P!==null&&!R(P)?(k=P.pop!==void 0,(w||b&&k)&&(M+=d(P,f,h+1,q,k))):(M+=(0,r.encodeString)(q),M+="=",M+=C(P,N)),I&&(I=!1)}return M}}}),fq=U({"../../node_modules/picoquery/lib/decode-uri-component.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeURIComponent=i;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 i(a){let l=a.indexOf("%");if(l===-1)return a;let u=a.length,d="",p=0,f=0,h=l,y=t;for(;l>-1&&l<u;){let g=s(a[l+1],4),v=s(a[l+2],0),b=g|v,E=n[b];if(y=n[256+y+E],f=f<<6|b&n[364+E],y===t)d+=a.slice(p,h),d+=f<=65535?String.fromCharCode(f):String.fromCharCode(55232+(f>>10),56320+(f&1023)),f=0,p=l+3,l=h=a.indexOf("%",p);else{if(y===r)return null;if(l+=3,l<u&&a.charCodeAt(l)===37)continue;return null}}return d+a.slice(p)}var o={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 s(a,l){let u=o[a];return u===void 0?255:u<<l}}}),hq=U({"../../node_modules/picoquery/lib/parse.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=u;var t=cw(),r=Ch(),n=fq(),i=d=>{let p=Number(d);return Number.isNaN(p)?d:p};e.numberKeyDeserializer=i;var o=d=>{let p=Number(d);return Number.isNaN(p)?d:p};e.numberValueDeserializer=o;var s=/\+/g,a=function(){};a.prototype=Object.create(null);function l(d,p,f,h,y){let g=d.substring(p,f);return h&&(g=g.replace(s," ")),y&&(g=(0,n.decodeURIComponent)(g)||g),g}function u(d,p){let{valueDeserializer:f=r.defaultOptions.valueDeserializer,keyDeserializer:h=r.defaultOptions.keyDeserializer,arrayRepeatSyntax:y=r.defaultOptions.arrayRepeatSyntax,nesting:g=r.defaultOptions.nesting,arrayRepeat:v=r.defaultOptions.arrayRepeat,nestingSyntax:b=r.defaultOptions.nestingSyntax,delimiter:E=r.defaultOptions.delimiter}=p??{},w=typeof E=="string"?E.charCodeAt(0):E,A=b==="js",C=new a;if(typeof d!="string")return C;let R=d.length,S="",_=-1,O=-1,M=-1,I=C,k,N="",P="",q=!1,F=!1,$=!1,G=!1,ie=!1,pe=!1,he=0,Q=-1,Z=-1,ge=-1;for(let ce=0;ce<R+1;ce++){if(he=ce!==R?d.charCodeAt(ce):w,he===w){if(pe=O>_,pe||(O=ce),M!==O-1&&(P=l(d,M+1,Q>-1?Q:O,$,q),N=h(P),k!==void 0&&(I=(0,t.getDeepObject)(I,k,N,A&&ie,void 0))),pe||N!==""){pe&&(S=d.slice(O+1,ce),G&&(S=S.replace(s," ")),F&&(S=(0,n.decodeURIComponent)(S)||S));let re=f(S,N);if(v){let Re=I[N];Re===void 0?Q>-1?I[N]=[re]:I[N]=re:Re.pop?Re.push(re):I[N]=[Re,re]}else I[N]=re}S="",_=ce,O=ce,q=!1,F=!1,$=!1,G=!1,ie=!1,Q=-1,M=ce,I=C,k=void 0,N=""}else he===93?(v&&y==="bracket"&&ge===91&&(Q=Z),g&&(b==="index"||A)&&O<=_&&(M!==Z&&(P=l(d,M+1,ce,$,q),N=h(P),k!==void 0&&(I=(0,t.getDeepObject)(I,k,N,void 0,void 0)),k=N,$=!1,q=!1),M=ce,ie=!1)):he===46?g&&(b==="dot"||A)&&O<=_&&(M!==Z&&(P=l(d,M+1,ce,$,q),N=h(P),k!==void 0&&(I=(0,t.getDeepObject)(I,k,N,A)),k=N,$=!1,q=!1),ie=!0,M=ce):he===91?g&&(b==="index"||A)&&O<=_&&(M!==Z&&(P=l(d,M+1,ce,$,q),N=h(P),A&&k!==void 0&&(I=(0,t.getDeepObject)(I,k,N,A)),k=N,$=!1,q=!1,ie=!1),M=ce):he===61?O<=_?O=ce:F=!0:he===43?O>_?G=!0:$=!0:he===37&&(O>_?F=!0:q=!0);Z=ce,ge=he}return C}}}),mq=U({"../../node_modules/picoquery/lib/stringify.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=cw();function r(n,i){if(n===null||typeof n!="object")return"";let o=i??{};return(0,t.stringifyObject)(n,o)}}}),xh=U({"../../node_modules/picoquery/lib/main.js"(e){var t=e&&e.__createBinding||(Object.create?function(o,s,a,l){l===void 0&&(l=a);var u=Object.getOwnPropertyDescriptor(s,a);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return s[a]}}),Object.defineProperty(o,l,u)}:function(o,s,a,l){l===void 0&&(l=a),o[l]=s[a]}),r=e&&e.__exportStar||function(o,s){for(var a in o)a!=="default"&&!Object.prototype.hasOwnProperty.call(s,a)&&t(s,o,a)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n=hq();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return n.parse}});var i=mq();Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return i.stringify}}),r(Ch(),e)}}),dw=U({"../../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:`
|
|
13
|
-
`,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:""}}}),yq=U({"../../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:"ÿ"}}}),pw=U({"../../node_modules/entities/lib/maps/xml.json"(e,t){t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}}),gq=U({"../../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}}}),bq=U({"../../node_modules/entities/lib/decode_codepoint.js"(e){var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0});var r=t(gq()),n=String.fromCodePoint||function(o){var s="";return o>65535&&(o-=65536,s+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),s+=String.fromCharCode(o),s};function i(o){return o>=55296&&o<=57343||o>1114111?"�":(o in r.default&&(o=r.default[o]),n(o))}e.default=i}}),Pg=U({"../../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(dw()),n=t(yq()),i=t(pw()),o=t(bq()),s=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=a(i.default),e.decodeHTMLStrict=a(r.default);function a(d){var p=u(d);return function(f){return String(f).replace(s,p)}}var l=function(d,p){return d<p?1:-1};e.decodeHTML=function(){for(var d=Object.keys(n.default).sort(l),p=Object.keys(r.default).sort(l),f=0,h=0;f<p.length;f++)d[h]===p[f]?(p[f]+=";?",h++):p[f]+=";";var y=new RegExp("&(?:"+p.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),g=u(r.default);function v(b){return b.substr(-1)!==";"&&(b+=";"),g(b)}return function(b){return String(b).replace(y,v)}}();function u(d){return function(p){if(p.charAt(1)==="#"){var f=p.charAt(2);return f==="X"||f==="x"?o.default(parseInt(p.substr(3),16)):o.default(parseInt(p.substr(2),10))}return d[p.slice(1,-1)]||p}}}}),Cg=U({"../../node_modules/entities/lib/encode.js"(e){var t=e&&e.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(e,"__esModule",{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var r=t(pw()),n=l(r.default),i=u(n);e.encodeXML=b(n);var o=t(dw()),s=l(o.default),a=u(s);e.encodeHTML=h(s,a),e.encodeNonAsciiHTML=b(s);function l(E){return Object.keys(E).sort().reduce(function(w,A){return w[E[A]]="&"+A+";",w},{})}function u(E){for(var w=[],A=[],C=0,R=Object.keys(E);C<R.length;C++){var S=R[C];S.length===1?w.push("\\"+S):A.push(S)}w.sort();for(var _=0;_<w.length-1;_++){for(var O=_;O<w.length-1&&w[O].charCodeAt(1)+1===w[O+1].charCodeAt(1);)O+=1;var M=1+O-_;M<3||w.splice(_,M,w[_]+"-"+w[O])}return A.unshift("["+w.join("")+"]"),new RegExp(A.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(E){return E.codePointAt(0)}:function(E){return(E.charCodeAt(0)-55296)*1024+E.charCodeAt(1)-56320+65536};function f(E){return"&#x"+(E.length>1?p(E):E.charCodeAt(0)).toString(16).toUpperCase()+";"}function h(E,w){return function(A){return A.replace(w,function(C){return E[C]}).replace(d,f)}}var y=new RegExp(i.source+"|"+d.source,"g");function g(E){return E.replace(y,f)}e.escape=g;function v(E){return E.replace(i,f)}e.escapeUTF8=v;function b(E){return function(w){return w.replace(y,function(A){return E[A]||f(A)})}}}}),vq=U({"../../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=Pg(),r=Cg();function n(l,u){return(!u||u<=0?t.decodeXML:t.decodeHTML)(l)}e.decode=n;function i(l,u){return(!u||u<=0?t.decodeXML:t.decodeHTMLStrict)(l)}e.decodeStrict=i;function o(l,u){return(!u||u<=0?r.encodeXML:r.encodeHTML)(l)}e.encode=o;var s=Cg();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return s.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return s.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return s.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return s.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return s.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return s.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return s.encodeHTML}});var a=Pg();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return a.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return a.decodeXML}})}}),Eq=U({"../../node_modules/ansi-to-html/lib/ansi_to_html.js"(e,t){function r(P,q){if(!(P instanceof q))throw new TypeError("Cannot call a class as a function")}function n(P,q){for(var F=0;F<q.length;F++){var $=q[F];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(P,$.key,$)}}function i(P,q,F){return q&&n(P.prototype,q),P}function o(P,q){var F=typeof Symbol<"u"&&P[Symbol.iterator]||P["@@iterator"];if(!F){if(Array.isArray(P)||(F=s(P))||q){F&&(P=F);var $=0,G=function(){};return{s:G,n:function(){return $>=P.length?{done:!0}:{done:!1,value:P[$++]}},e:function(Q){throw Q},f:G}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
14
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ie=!0,pe=!1,he;return{s:function(){F=F.call(P)},n:function(){var Q=F.next();return ie=Q.done,Q},e:function(Q){pe=!0,he=Q},f:function(){try{!ie&&F.return!=null&&F.return()}finally{if(pe)throw he}}}}function s(P,q){if(P){if(typeof P=="string")return a(P,q);var F=Object.prototype.toString.call(P).slice(8,-1);if(F==="Object"&&P.constructor&&(F=P.constructor.name),F==="Map"||F==="Set")return Array.from(P);if(F==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(F))return a(P,q)}}function a(P,q){(q==null||q>P.length)&&(q=P.length);for(var F=0,$=new Array(q);F<q;F++)$[F]=P[F];return $}var l=vq(),u={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:d()};function d(){var P={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 E(0,5).forEach(function(q){E(0,5).forEach(function(F){E(0,5).forEach(function($){return p(q,F,$,P)})})}),E(0,23).forEach(function(q){var F=q+232,$=f(q*10+8);P[F]="#"+$+$+$}),P}function p(P,q,F,$){var G=16+P*36+q*6+F,ie=P>0?P*40+55:0,pe=q>0?q*40+55:0,he=F>0?F*40+55:0;$[G]=h([ie,pe,he])}function f(P){for(var q=P.toString(16);q.length<2;)q="0"+q;return q}function h(P){var q=[],F=o(P),$;try{for(F.s();!($=F.n()).done;){var G=$.value;q.push(f(G))}}catch(ie){F.e(ie)}finally{F.f()}return"#"+q.join("")}function y(P,q,F,$){var G;return q==="text"?G=C(F,$):q==="display"?G=v(P,F,$):q==="xterm256Foreground"?G=_(P,$.colors[F]):q==="xterm256Background"?G=O(P,$.colors[F]):q==="rgb"&&(G=g(P,F)),G}function g(P,q){q=q.substring(2).slice(0,-1);var F=+q.substr(0,2),$=q.substring(5).split(";"),G=$.map(function(ie){return("0"+Number(ie).toString(16)).substr(-2)}).join("");return S(P,(F===38?"color:#":"background-color:#")+G)}function v(P,q,F){q=parseInt(q,10);var $={"-1":function(){return"<br/>"},0:function(){return P.length&&b(P)},1:function(){return R(P,"b")},3:function(){return R(P,"i")},4:function(){return R(P,"u")},8:function(){return S(P,"display:none")},9:function(){return R(P,"strike")},22:function(){return S(P,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return M(P,"i")},24:function(){return M(P,"u")},39:function(){return _(P,F.fg)},49:function(){return O(P,F.bg)},53:function(){return S(P,"text-decoration:overline")}},G;return $[q]?G=$[q]():4<q&&q<7?G=R(P,"blink"):29<q&&q<38?G=_(P,F.colors[q-30]):39<q&&q<48?G=O(P,F.colors[q-40]):89<q&&q<98?G=_(P,F.colors[8+(q-90)]):99<q&&q<108&&(G=O(P,F.colors[8+(q-100)])),G}function b(P){var q=P.slice(0);return P.length=0,q.reverse().map(function(F){return"</"+F+">"}).join("")}function E(P,q){for(var F=[],$=P;$<=q;$++)F.push($);return F}function w(P){return function(q){return(P===null||q.category!==P)&&P!=="all"}}function A(P){P=parseInt(P,10);var q=null;return P===0?q="all":P===1?q="bold":2<P&&P<5?q="underline":4<P&&P<7?q="blink":P===8?q="hide":P===9?q="strike":29<P&&P<38||P===39||89<P&&P<98?q="foreground-color":(39<P&&P<48||P===49||99<P&&P<108)&&(q="background-color"),q}function C(P,q){return q.escapeXML?l.encodeXML(P):P}function R(P,q,F){return F||(F=""),P.push(q),"<".concat(q).concat(F?' style="'.concat(F,'"'):"",">")}function S(P,q){return R(P,"span",q)}function _(P,q){return R(P,"span","color:"+q)}function O(P,q){return R(P,"span","background-color:"+q)}function M(P,q){var F;if(P.slice(-1)[0]===q&&(F=P.pop()),F)return"</"+q+">"}function I(P,q,F){var $=!1,G=3;function ie(){return""}function pe(W,Y){return F("xterm256Foreground",Y),""}function he(W,Y){return F("xterm256Background",Y),""}function Q(W){return q.newline?F("display",-1):F("text",W),""}function Z(W,Y){$=!0,Y.trim().length===0&&(Y="0"),Y=Y.trimRight(";").split(";");var z=o(Y),ee;try{for(z.s();!(ee=z.n()).done;){var le=ee.value;F("display",le)}}catch(oe){z.e(oe)}finally{z.f()}return""}function ge(W){return F("text",W),""}function ce(W){return F("rgb",W),""}var re=[{pattern:/^\x08+/,sub:ie},{pattern:/^\x1b\[[012]?K/,sub:ie},{pattern:/^\x1b\[\(B/,sub:ie},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:ce},{pattern:/^\x1b\[38;5;(\d+)m/,sub:pe},{pattern:/^\x1b\[48;5;(\d+)m/,sub:he},{pattern:/^\n/,sub:Q},{pattern:/^\r+\n/,sub:Q},{pattern:/^\r/,sub:Q},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Z},{pattern:/^\x1b\[\d?J/,sub:ie},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:ie},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:ie},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:ge}];function Re(W,Y){Y>G&&$||($=!1,P=P.replace(W.pattern,W.sub))}var Te=[],et=P,V=et.length;e:for(;V>0;){for(var ae=0,me=0,j=re.length;me<j;ae=++me){var B=re[ae];if(Re(B,ae),P.length!==V){V=P.length;continue e}}if(P.length===V)break;Te.push(0),V=P.length}return Te}function k(P,q,F){return q!=="text"&&(P=P.filter(w(A(F))),P.push({token:q,data:F,category:A(F)})),P}var N=function(){function P(q){r(this,P),q=q||{},q.colors&&(q.colors=Object.assign({},u.colors,q.colors)),this.options=Object.assign({},u,q),this.stack=[],this.stickyStack=[]}return i(P,[{key:"toHtml",value:function(q){var F=this;q=typeof q=="string"?[q]:q;var $=this.stack,G=this.options,ie=[];return this.stickyStack.forEach(function(pe){var he=y($,pe.token,pe.data,G);he&&ie.push(he)}),I(q.join(""),G,function(pe,he){var Q=y($,pe,he,G);Q&&ie.push(Q),G.stream&&(F.stickyStack=k(F.stickyStack,pe,he))}),$.length&&ie.push(b($)),ie.join("")}}]),P}();t.exports=N}}),Tq=U({"../../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(c){return c.text!==void 0&&c.text!==""?`'${c.type}' with value '${c.text}'`:`'${c.type}'`}class i extends Error{constructor(m){super(`No parslet found for token: ${n(m)}`),this.token=m,Object.setPrototypeOf(this,i.prototype)}getToken(){return this.token}}class o extends Error{constructor(m){super(`The parsing ended early. The next token was: ${n(m)}`),this.token=m,Object.setPrototypeOf(this,o.prototype)}getToken(){return this.token}}class s extends Error{constructor(m,T){let x=`Unexpected type: '${m.type}'.`;T!==void 0&&(x+=` Message: ${T}`),super(x),Object.setPrototypeOf(this,s.prototype)}}function a(c){return m=>m.startsWith(c)?{type:c,text:c}:null}function l(c){let m=0,T,x=c[0],J=!1;if(x!=="'"&&x!=='"')return null;for(;m<c.length;){if(m++,T=c[m],!J&&T===x){m++;break}J=!J&&T==="\\"}if(T!==x)throw new Error("Unterminated String");return c.slice(0,m)}let u=new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u"),d=new RegExp("[$\\-\\p{ID_Continue}\\u200C\\u200D]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u");function p(c){let m=c[0];if(!u.test(m))return null;let T=1;do{if(m=c[T],!d.test(m))break;T++}while(T<c.length);return c.slice(0,T)}let f=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function h(c){var m,T;return(T=(m=f.exec(c))===null||m===void 0?void 0:m[0])!==null&&T!==void 0?T:null}let y=c=>{let m=p(c);return m==null?null:{type:"Identifier",text:m}};function g(c){return m=>{if(!m.startsWith(c))return null;let T=m[c.length];return T!==void 0&&d.test(T)?null:{type:c,text:c}}}let v=c=>{let m=l(c);return m==null?null:{type:"StringValue",text:m}},b=c=>c.length>0?null:{type:"EOF",text:""},E=c=>{let m=h(c);return m===null?null:{type:"Number",text:m}},w=[b,a("=>"),a("("),a(")"),a("{"),a("}"),a("["),a("]"),a("|"),a("&"),a("<"),a(">"),a(","),a(";"),a("*"),a("?"),a("!"),a("="),a(":"),a("..."),a("."),a("#"),a("~"),a("/"),a("@"),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"),E,y,v],A=/^\s*\n\s*/;class C{static create(m){let T=this.read(m);m=T.text;let x=this.read(m);return m=x.text,new C(m,void 0,T.token,x.token)}constructor(m,T,x,J){this.text="",this.text=m,this.previous=T,this.current=x,this.next=J}static read(m,T=!1){T=T||A.test(m),m=m.trim();for(let x of w){let J=x(m);if(J!==null){let X=Object.assign(Object.assign({},J),{startOfLine:T});return m=m.slice(X.text.length),{text:m,token:X}}}throw new Error("Unexpected Token "+m)}advance(){let m=C.read(this.text);return new C(m.text,this.current,this.next,m.token)}}function R(c){if(c===void 0)throw new Error("Unexpected undefined");if(c.type==="JsdocTypeKeyValue"||c.type==="JsdocTypeParameterList"||c.type==="JsdocTypeProperty"||c.type==="JsdocTypeReadonlyProperty"||c.type==="JsdocTypeObjectField"||c.type==="JsdocTypeJsdocObjectField"||c.type==="JsdocTypeIndexSignature"||c.type==="JsdocTypeMappedType"||c.type==="JsdocTypeTypeParameter")throw new s(c);return c}function S(c){return c.type==="JsdocTypeKeyValue"?O(c):R(c)}function _(c){return c.type==="JsdocTypeName"?c:O(c)}function O(c){if(c.type!=="JsdocTypeKeyValue")throw new s(c);return c}function M(c){var m;if(c.type==="JsdocTypeVariadic"){if(((m=c.element)===null||m===void 0?void 0:m.type)==="JsdocTypeName")return c;throw new s(c)}if(c.type!=="JsdocTypeNumber"&&c.type!=="JsdocTypeName")throw new s(c);return c}function I(c){if(c.type==="JsdocTypeTuple"||c.type==="JsdocTypeGeneric"&&c.meta.brackets==="square")return c;throw new s(c)}function k(c){return c.type==="JsdocTypeIndexSignature"||c.type==="JsdocTypeMappedType"}var N;(function(c){c[c.ALL=0]="ALL",c[c.PARAMETER_LIST=1]="PARAMETER_LIST",c[c.OBJECT=2]="OBJECT",c[c.KEY_VALUE=3]="KEY_VALUE",c[c.INDEX_BRACKETS=4]="INDEX_BRACKETS",c[c.UNION=5]="UNION",c[c.INTERSECTION=6]="INTERSECTION",c[c.PREFIX=7]="PREFIX",c[c.INFIX=8]="INFIX",c[c.TUPLE=9]="TUPLE",c[c.SYMBOL=10]="SYMBOL",c[c.OPTIONAL=11]="OPTIONAL",c[c.NULLABLE=12]="NULLABLE",c[c.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",c[c.FUNCTION=14]="FUNCTION",c[c.ARROW=15]="ARROW",c[c.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",c[c.GENERIC=17]="GENERIC",c[c.NAME_PATH=18]="NAME_PATH",c[c.PARENTHESIS=19]="PARENTHESIS",c[c.SPECIAL_TYPES=20]="SPECIAL_TYPES"})(N||(N={}));class P{constructor(m,T,x){this.grammar=m,typeof T=="string"?this._lexer=C.create(T):this._lexer=T,this.baseParser=x}get lexer(){return this._lexer}parse(){let m=this.parseType(N.ALL);if(this.lexer.current.type!=="EOF")throw new o(this.lexer.current);return m}parseType(m){return R(this.parseIntermediateType(m))}parseIntermediateType(m){let T=this.tryParslets(null,m);if(T===null)throw new i(this.lexer.current);return this.parseInfixIntermediateType(T,m)}parseInfixIntermediateType(m,T){let x=this.tryParslets(m,T);for(;x!==null;)m=x,x=this.tryParslets(m,T);return m}tryParslets(m,T){for(let x of this.grammar){let J=x(this,T,m);if(J!==null)return J}return null}consume(m){return Array.isArray(m)||(m=[m]),m.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(m){this._lexer=m.lexer}}function q(c){return c==="}"||c==="EOF"||c==="|"||c===","||c===")"||c===">"}let F=(c,m,T)=>{let x=c.lexer.current.type,J=c.lexer.next.type;return T==null&&x==="?"&&!q(J)||T!=null&&x==="?"?(c.consume("?"),T==null?{type:"JsdocTypeNullable",element:c.parseType(N.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:R(T),meta:{position:"suffix"}}):null};function $(c){let m=(T,x,J)=>{let X=T.lexer.current.type,se=T.lexer.next.type;if(J===null){if("parsePrefix"in c&&c.accept(X,se))return c.parsePrefix(T)}else if("parseInfix"in c&&c.precedence>x&&c.accept(X,se))return c.parseInfix(T,J);return null};return Object.defineProperty(m,"name",{value:c.name}),m}let G=$({name:"optionalParslet",accept:c=>c==="=",precedence:N.OPTIONAL,parsePrefix:c=>(c.consume("="),{type:"JsdocTypeOptional",element:c.parseType(N.OPTIONAL),meta:{position:"prefix"}}),parseInfix:(c,m)=>(c.consume("="),{type:"JsdocTypeOptional",element:R(m),meta:{position:"suffix"}})}),ie=$({name:"numberParslet",accept:c=>c==="Number",parsePrefix:c=>{let m=parseFloat(c.lexer.current.text);return c.consume("Number"),{type:"JsdocTypeNumber",value:m}}}),pe=$({name:"parenthesisParslet",accept:c=>c==="(",parsePrefix:c=>{if(c.consume("("),c.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let m=c.parseIntermediateType(N.ALL);if(!c.consume(")"))throw new Error("Unterminated parenthesis");return m.type==="JsdocTypeParameterList"?m:m.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[m]}:{type:"JsdocTypeParenthesis",element:R(m)}}}),he=$({name:"specialTypesParslet",accept:(c,m)=>c==="?"&&q(m)||c==="null"||c==="undefined"||c==="*",parsePrefix:c=>{if(c.consume("null"))return{type:"JsdocTypeNull"};if(c.consume("undefined"))return{type:"JsdocTypeUndefined"};if(c.consume("*"))return{type:"JsdocTypeAny"};if(c.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+c.lexer.current.text)}}),Q=$({name:"notNullableParslet",accept:c=>c==="!",precedence:N.NULLABLE,parsePrefix:c=>(c.consume("!"),{type:"JsdocTypeNotNullable",element:c.parseType(N.NULLABLE),meta:{position:"prefix"}}),parseInfix:(c,m)=>(c.consume("!"),{type:"JsdocTypeNotNullable",element:R(m),meta:{position:"suffix"}})});function Z({allowTrailingComma:c}){return $({name:"parameterListParslet",accept:m=>m===",",precedence:N.PARAMETER_LIST,parseInfix:(m,T)=>{let x=[S(T)];m.consume(",");do try{let J=m.parseIntermediateType(N.PARAMETER_LIST);x.push(S(J))}catch(J){if(J instanceof i)break;throw J}while(m.consume(","));if(x.length>0&&x.slice(0,-1).some(J=>J.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:x}}})}let ge=$({name:"genericParslet",accept:(c,m)=>c==="<"||c==="."&&m==="<",precedence:N.GENERIC,parseInfix:(c,m)=>{let T=c.consume(".");c.consume("<");let x=[],J=!1;if(c.consume("infer")){J=!0;let X=c.parseIntermediateType(N.SYMBOL);if(X.type!=="JsdocTypeName")throw new s(X,"A typescript asserts always has to have a name on the left side.");x.push(X)}else do x.push(c.parseType(N.PARAMETER_LIST));while(c.consume(","));if(!c.consume(">"))throw new Error("Unterminated generic parameter list");return Object.assign(Object.assign({type:"JsdocTypeGeneric",left:R(m),elements:x},J?{infer:!0}:{}),{meta:{brackets:"angle",dot:T}})}}),ce=$({name:"unionParslet",accept:c=>c==="|",precedence:N.UNION,parseInfix:(c,m)=>{c.consume("|");let T=[];do T.push(c.parseType(N.UNION));while(c.consume("|"));return{type:"JsdocTypeUnion",elements:[R(m),...T]}}}),re=[F,G,ie,pe,he,Q,Z({allowTrailingComma:!0}),ge,ce,G];function Re({allowSquareBracketsOnAnyType:c,allowJsdocNamePaths:m,pathGrammar:T}){return function(x,J,X){if(X==null||J>=N.NAME_PATH)return null;let se=x.lexer.current.type,Se=x.lexer.next.type;if(!(se==="."&&Se!=="<"||se==="["&&(c||X.type==="JsdocTypeName")||m&&(se==="~"||se==="#")))return null;let Oe,Ue=!1;x.consume(".")?Oe="property":x.consume("[")?(Oe="property-brackets",Ue=!0):x.consume("~")?Oe="inner":(x.consume("#"),Oe="instance");let Ct=T!==null?new P(T,x.lexer,x):x,pt=Ct.parseIntermediateType(N.NAME_PATH);x.acceptLexerState(Ct);let Jr;switch(pt.type){case"JsdocTypeName":Jr={type:"JsdocTypeProperty",value:pt.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":Jr={type:"JsdocTypeProperty",value:pt.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":Jr={type:"JsdocTypeProperty",value:pt.value,meta:{quote:pt.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(pt.specialType==="event")Jr=pt;else throw new s(pt,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new s(pt,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(Ue&&!x.consume("]")){let Bs=x.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${Bs.type}' with text '${Bs.text}'`)}return{type:"JsdocTypeNamePath",left:R(X),right:Jr,pathType:Oe}}}function Te({allowedAdditionalTokens:c}){return $({name:"nameParslet",accept:m=>m==="Identifier"||m==="this"||m==="new"||c.includes(m),parsePrefix:m=>{let{type:T,text:x}=m.lexer.current;return m.consume(T),{type:"JsdocTypeName",value:x}}})}let et=$({name:"stringValueParslet",accept:c=>c==="StringValue",parsePrefix:c=>{let m=c.lexer.current.text;return c.consume("StringValue"),{type:"JsdocTypeStringValue",value:m.slice(1,-1),meta:{quote:m[0]==="'"?"single":"double"}}}});function V({pathGrammar:c,allowedTypes:m}){return $({name:"specialNamePathParslet",accept:T=>m.includes(T),parsePrefix:T=>{let x=T.lexer.current.type;if(T.consume(x),!T.consume(":"))return{type:"JsdocTypeName",value:x};let J,X=T.lexer.current;if(T.consume("StringValue"))J={type:"JsdocTypeSpecialNamePath",value:X.text.slice(1,-1),specialType:x,meta:{quote:X.text[0]==="'"?"single":"double"}};else{let Oe="",Ue=["Identifier","@","/"];for(;Ue.some(Ct=>T.consume(Ct));)Oe+=X.text,X=T.lexer.current;J={type:"JsdocTypeSpecialNamePath",value:Oe,specialType:x,meta:{quote:void 0}}}let se=new P(c,T.lexer,T),Se=se.parseInfixIntermediateType(J,N.ALL);return T.acceptLexerState(se),R(Se)}})}let ae=[Te({allowedAdditionalTokens:["external","module"]}),et,ie,Re({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],me=[...ae,V({allowedTypes:["event"],pathGrammar:ae})];function j(c){let m;if(c.type==="JsdocTypeParameterList")m=c.elements;else if(c.type==="JsdocTypeParenthesis")m=[c.element];else throw new s(c);return m.map(T=>S(T))}function B(c){let m=j(c);if(m.some(T=>T.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return m}function W({allowNamedParameters:c,allowNoReturnType:m,allowWithoutParenthesis:T,allowNewAsFunctionKeyword:x}){return $({name:"functionParslet",accept:(J,X)=>J==="function"||x&&J==="new"&&X==="(",parsePrefix:J=>{let X=J.consume("new");J.consume("function");let se=J.lexer.current.type==="(";if(!se){if(!T)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let Se={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:X,parenthesis:se},Oe=J.parseIntermediateType(N.FUNCTION);if(c===void 0)Se.parameters=B(Oe);else{if(X&&Oe.type==="JsdocTypeFunction"&&Oe.arrow)return Se=Oe,Se.constructor=!0,Se;Se.parameters=j(Oe);for(let Ue of Se.parameters)if(Ue.type==="JsdocTypeKeyValue"&&!c.includes(Ue.key))throw new Error(`only allowed named parameters are ${c.join(", ")} but got ${Ue.type}`)}if(J.consume(":"))Se.returnType=J.parseType(N.PREFIX);else if(!m)throw new Error("function is missing return type");return Se}})}function Y({allowPostfix:c,allowEnclosingBrackets:m}){return $({name:"variadicParslet",accept:T=>T==="...",precedence:N.PREFIX,parsePrefix:T=>{T.consume("...");let x=m&&T.consume("[");try{let J=T.parseType(N.PREFIX);if(x&&!T.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:R(J),meta:{position:"prefix",squareBrackets:x}}}catch(J){if(J instanceof i){if(x)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw J}},parseInfix:c?(T,x)=>(T.consume("..."),{type:"JsdocTypeVariadic",element:R(x),meta:{position:"suffix",squareBrackets:!1}}):void 0})}let z=$({name:"symbolParslet",accept:c=>c==="(",precedence:N.SYMBOL,parseInfix:(c,m)=>{if(m.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");c.consume("(");let T={type:"JsdocTypeSymbol",value:m.value};if(!c.consume(")")){let x=c.parseIntermediateType(N.SYMBOL);if(T.element=M(x),!c.consume(")"))throw new Error("Symbol does not end after value")}return T}}),ee=$({name:"arrayBracketsParslet",precedence:N.ARRAY_BRACKETS,accept:(c,m)=>c==="["&&m==="]",parseInfix:(c,m)=>(c.consume("["),c.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[R(m)],meta:{brackets:"square",dot:!1}})});function le({objectFieldGrammar:c,allowKeyTypes:m}){return $({name:"objectParslet",accept:T=>T==="{",parsePrefix:T=>{T.consume("{");let x={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!T.consume("}")){let J,X=new P(c,T.lexer,T);for(;;){X.acceptLexerState(T);let se=X.parseIntermediateType(N.OBJECT);T.acceptLexerState(X),se===void 0&&m&&(se=T.parseIntermediateType(N.OBJECT));let Se=!1;if(se.type==="JsdocTypeNullable"&&(Se=!0,se=se.element),se.type==="JsdocTypeNumber"||se.type==="JsdocTypeName"||se.type==="JsdocTypeStringValue"){let Oe;se.type==="JsdocTypeStringValue"&&(Oe=se.meta.quote),x.elements.push({type:"JsdocTypeObjectField",key:se.value.toString(),right:void 0,optional:Se,readonly:!1,meta:{quote:Oe}})}else if(se.type==="JsdocTypeObjectField"||se.type==="JsdocTypeJsdocObjectField")x.elements.push(se);else throw new s(se);if(T.lexer.current.startOfLine)J="linebreak",T.consume(",")||T.consume(";");else if(T.consume(","))J="comma";else if(T.consume(";"))J="semicolon";else break;if(T.lexer.current.type==="}")break}if(x.meta.separator=J??"comma",J==="linebreak"&&(x.meta.propertyIndent=" "),!T.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return x}})}function oe({allowSquaredProperties:c,allowKeyTypes:m,allowReadonly:T,allowOptional:x}){return $({name:"objectFieldParslet",precedence:N.KEY_VALUE,accept:J=>J===":",parseInfix:(J,X)=>{var se;let Se=!1,Oe=!1;x&&X.type==="JsdocTypeNullable"&&(Se=!0,X=X.element),T&&X.type==="JsdocTypeReadonlyProperty"&&(Oe=!0,X=X.element);let Ue=(se=J.baseParser)!==null&&se!==void 0?se:J;if(Ue.acceptLexerState(J),X.type==="JsdocTypeNumber"||X.type==="JsdocTypeName"||X.type==="JsdocTypeStringValue"||k(X)){if(k(X)&&!c)throw new s(X);Ue.consume(":");let Ct;X.type==="JsdocTypeStringValue"&&(Ct=X.meta.quote);let pt=Ue.parseType(N.KEY_VALUE);return J.acceptLexerState(Ue),{type:"JsdocTypeObjectField",key:k(X)?X:X.value.toString(),right:pt,optional:Se,readonly:Oe,meta:{quote:Ct}}}else{if(!m)throw new s(X);Ue.consume(":");let Ct=Ue.parseType(N.KEY_VALUE);return J.acceptLexerState(Ue),{type:"JsdocTypeJsdocObjectField",left:R(X),right:Ct}}}})}function ne({allowOptional:c,allowVariadic:m}){return $({name:"keyValueParslet",precedence:N.KEY_VALUE,accept:T=>T===":",parseInfix:(T,x)=>{let J=!1,X=!1;if(c&&x.type==="JsdocTypeNullable"&&(J=!0,x=x.element),m&&x.type==="JsdocTypeVariadic"&&x.element!==void 0&&(X=!0,x=x.element),x.type!=="JsdocTypeName")throw new s(x);T.consume(":");let se=T.parseType(N.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:x.value,right:se,optional:J,variadic:X}}})}let te=[...re,W({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),et,V({allowedTypes:["module","external","event"],pathGrammar:me}),Y({allowEnclosingBrackets:!0,allowPostfix:!0}),Te({allowedAdditionalTokens:["keyof"]}),z,ee,Re({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:me})],ve=[...te,le({objectFieldGrammar:[Te({allowedAdditionalTokens:["typeof","module","in"]}),oe({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...te],allowKeyTypes:!0}),ne({allowOptional:!0,allowVariadic:!0})],de=$({name:"typeOfParslet",accept:c=>c==="typeof",parsePrefix:c=>(c.consume("typeof"),{type:"JsdocTypeTypeof",element:c.parseType(N.KEY_OF_TYPE_OF)})}),be=[Te({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),F,G,et,ie,oe({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],Ee=[...re,le({allowKeyTypes:!1,objectFieldGrammar:be}),Te({allowedAdditionalTokens:["event","external","in"]}),de,W({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),Y({allowEnclosingBrackets:!1,allowPostfix:!1}),Te({allowedAdditionalTokens:["keyof"]}),V({allowedTypes:["module"],pathGrammar:me}),Re({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:me}),ne({allowOptional:!1,allowVariadic:!1}),z],Me=$({name:"assertsParslet",accept:c=>c==="asserts",parsePrefix:c=>{c.consume("asserts");let m=c.parseIntermediateType(N.SYMBOL);if(m.type!=="JsdocTypeName")throw new s(m,"A typescript asserts always has to have a name on the left side.");return c.consume("is")?{type:"JsdocTypeAsserts",left:m,right:R(c.parseIntermediateType(N.INFIX))}:{type:"JsdocTypeAssertsPlain",element:m}}});function $e({allowQuestionMark:c}){return $({name:"tupleParslet",accept:m=>m==="[",parsePrefix:m=>{m.consume("[");let T={type:"JsdocTypeTuple",elements:[]};if(m.consume("]"))return T;let x=m.parseIntermediateType(N.ALL);if(x.type==="JsdocTypeParameterList"?x.elements[0].type==="JsdocTypeKeyValue"?T.elements=x.elements.map(O):T.elements=x.elements.map(R):x.type==="JsdocTypeKeyValue"?T.elements=[O(x)]:T.elements=[R(x)],!m.consume("]"))throw new Error("Unterminated '['");if(T.elements.some(J=>J.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return T}})}let Je=$({name:"keyOfParslet",accept:c=>c==="keyof",parsePrefix:c=>(c.consume("keyof"),{type:"JsdocTypeKeyof",element:R(c.parseType(N.KEY_OF_TYPE_OF))})}),tt=$({name:"importParslet",accept:c=>c==="import",parsePrefix:c=>{if(c.consume("import"),!c.consume("("))throw new Error("Missing parenthesis after import keyword");let m=c.parseType(N.PREFIX);if(m.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!c.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:m}}}),it=$({name:"readonlyPropertyParslet",accept:c=>c==="readonly",parsePrefix:c=>(c.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:c.parseIntermediateType(N.KEY_VALUE)})}),Dt=$({name:"arrowFunctionParslet",precedence:N.ARROW,accept:c=>c==="=>",parseInfix:(c,m)=>(c.consume("=>"),{type:"JsdocTypeFunction",parameters:j(m).map(_),arrow:!0,constructor:!1,parenthesis:!0,returnType:c.parseType(N.OBJECT)})}),Ot=$({name:"genericArrowFunctionParslet",accept:c=>c==="<",parsePrefix:c=>{let m=[];c.consume("<");do{let x,J=c.parseIntermediateType(N.SYMBOL);if(J.type==="JsdocTypeOptional"&&(J=J.element,x=c.parseType(N.SYMBOL)),J.type!=="JsdocTypeName")throw new s(J);let X;c.consume("extends")&&(X=c.parseType(N.SYMBOL),X.type==="JsdocTypeOptional"&&(X=X.element,x=c.parseType(N.SYMBOL)));let se={type:"JsdocTypeTypeParameter",name:J};if(X!==void 0&&(se.constraint=X),x!==void 0&&(se.defaultValue=x),m.push(se),c.consume(">"))break}while(c.consume(","));let T=c.parseIntermediateType(N.SYMBOL);return T.typeParameters=m,T}}),Ur=$({name:"intersectionParslet",accept:c=>c==="&",precedence:N.INTERSECTION,parseInfix:(c,m)=>{c.consume("&");let T=[];do T.push(c.parseType(N.INTERSECTION));while(c.consume("&"));return{type:"JsdocTypeIntersection",elements:[R(m),...T]}}}),ri=$({name:"predicateParslet",precedence:N.INFIX,accept:c=>c==="is",parseInfix:(c,m)=>{if(m.type!=="JsdocTypeName")throw new s(m,"A typescript predicate always has to have a name on the left side.");return c.consume("is"),{type:"JsdocTypePredicate",left:m,right:R(c.parseIntermediateType(N.INFIX))}}}),At=$({name:"objectSquareBracketPropertyParslet",accept:c=>c==="[",parsePrefix:c=>{if(c.baseParser===void 0)throw new Error("Only allowed inside object grammar");c.consume("[");let m=c.lexer.current.text;c.consume("Identifier");let T;if(c.consume(":")){let x=c.baseParser;x.acceptLexerState(c),T={type:"JsdocTypeIndexSignature",key:m,right:x.parseType(N.INDEX_BRACKETS)},c.acceptLexerState(x)}else if(c.consume("in")){let x=c.baseParser;x.acceptLexerState(c),T={type:"JsdocTypeMappedType",key:m,right:x.parseType(N.ARRAY_BRACKETS)},c.acceptLexerState(x)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!c.consume("]"))throw new Error("Unterminated square brackets");return T}}),Ht=$({name:"readonlyArrayParslet",accept:c=>c==="readonly",parsePrefix:c=>(c.consume("readonly"),{type:"JsdocTypeReadonlyArray",element:I(c.parseIntermediateType(N.ALL))})}),ni=$({name:"conditionalParslet",precedence:N.INFIX,accept:c=>c==="extends",parseInfix:(c,m)=>{c.consume("extends");let T=c.parseType(N.KEY_OF_TYPE_OF).element,x=c.parseType(N.INFIX);return c.consume(":"),{type:"JsdocTypeConditional",checksType:R(m),extendsType:T,trueType:x,falseType:c.parseType(N.INFIX)}}}),ii=[it,Te({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),F,G,et,ie,oe({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),At],ks=[...re,le({allowKeyTypes:!1,objectFieldGrammar:ii}),Ht,de,Je,tt,et,W({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),$e({allowQuestionMark:!1}),Y({allowEnclosingBrackets:!1,allowPostfix:!1}),Me,ni,Te({allowedAdditionalTokens:["event","external","in"]}),V({allowedTypes:["module"],pathGrammar:me}),ee,Dt,Ot,Re({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:me}),Ur,ri,ne({allowVariadic:!0,allowOptional:!0})];function Di(c,m){switch(m){case"closure":return new P(Ee,c).parse();case"jsdoc":return new P(ve,c).parse();case"typescript":return new P(ks,c).parse()}}function Ds(c,m=["typescript","closure","jsdoc"]){let T;for(let x of m)try{return Di(c,x)}catch(J){T=J}throw T}function vr(c,m){let T=c[m.type];if(T===void 0)throw new Error(`In this set of transform rules exists no rule for type ${m.type}.`);return T(m,x=>vr(c,x))}function we(c){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}function Li(c){let m={params:[]};for(let T of c.parameters)T.type==="JsdocTypeKeyValue"?T.key==="this"?m.this=T.right:T.key==="new"?m.new=T.right:m.params.push(T):m.params.push(T);return m}function Vr(c,m,T){return c==="prefix"?T+m:m+T}function Pt(c,m){switch(m){case"double":return`"${c}"`;case"single":return`'${c}'`;case void 0:return c}}function ue(){return{JsdocTypeParenthesis:(c,m)=>`(${c.element!==void 0?m(c.element):""})`,JsdocTypeKeyof:(c,m)=>`keyof ${m(c.element)}`,JsdocTypeFunction:(c,m)=>{var T;if(c.arrow){if(c.returnType===void 0)throw new Error("Arrow function needs a return type.");let x=`${c.typeParameters!==void 0?`<${(T=c.typeParameters.map(m).join(", "))!==null&&T!==void 0?T:""}>`:""}(${c.parameters.map(m).join(", ")}) => ${m(c.returnType)}`;return c.constructor&&(x="new "+x),x}else{let x=c.constructor?"new":"function";return c.parenthesis&&(x+=`(${c.parameters.map(m).join(", ")})`,c.returnType!==void 0&&(x+=`: ${m(c.returnType)}`)),x}},JsdocTypeName:c=>c.value,JsdocTypeTuple:(c,m)=>`[${c.elements.map(m).join(", ")}]`,JsdocTypeVariadic:(c,m)=>c.meta.position===void 0?"...":Vr(c.meta.position,m(c.element),"..."),JsdocTypeNamePath:(c,m)=>{let T=m(c.left),x=m(c.right);switch(c.pathType){case"inner":return`${T}~${x}`;case"instance":return`${T}#${x}`;case"property":return`${T}.${x}`;case"property-brackets":return`${T}[${x}]`}},JsdocTypeStringValue:c=>Pt(c.value,c.meta.quote),JsdocTypeAny:()=>"*",JsdocTypeGeneric:(c,m)=>{if(c.meta.brackets==="square"){let T=c.elements[0],x=m(T);return T.type==="JsdocTypeUnion"||T.type==="JsdocTypeIntersection"?`(${x})[]`:`${x}[]`}else return`${m(c.left)}${c.meta.dot?".":""}<${c.infer===!0?"infer ":""}${c.elements.map(m).join(", ")}>`},JsdocTypeImport:(c,m)=>`import(${m(c.element)})`,JsdocTypeObjectField:(c,m)=>{let T="";return c.readonly&&(T+="readonly "),typeof c.key=="string"?T+=Pt(c.key,c.meta.quote):T+=m(c.key),c.optional&&(T+="?"),c.right===void 0?T:T+`: ${m(c.right)}`},JsdocTypeJsdocObjectField:(c,m)=>`${m(c.left)}: ${m(c.right)}`,JsdocTypeKeyValue:(c,m)=>{let T=c.key;return c.optional&&(T+="?"),c.variadic&&(T="..."+T),c.right===void 0?T:T+`: ${m(c.right)}`},JsdocTypeSpecialNamePath:c=>`${c.specialType}:${Pt(c.value,c.meta.quote)}`,JsdocTypeNotNullable:(c,m)=>Vr(c.meta.position,m(c.element),"!"),JsdocTypeNull:()=>"null",JsdocTypeNullable:(c,m)=>Vr(c.meta.position,m(c.element),"?"),JsdocTypeNumber:c=>c.value.toString(),JsdocTypeObject:(c,m)=>{var T,x;return`{${(c.meta.separator==="linebreak"&&c.elements.length>1?`
|
|
15
|
-
`+((T=c.meta.propertyIndent)!==null&&T!==void 0?T:""):"")+c.elements.map(m).join(c.meta.separator==="comma"?", ":c.meta.separator==="linebreak"?`
|
|
16
|
-
`+((x=c.meta.propertyIndent)!==null&&x!==void 0?x:""):"; ")+(c.meta.separator==="linebreak"&&c.elements.length>1?`
|
|
17
|
-
`:"")}}`},JsdocTypeOptional:(c,m)=>Vr(c.meta.position,m(c.element),"="),JsdocTypeSymbol:(c,m)=>`${c.value}(${c.element!==void 0?m(c.element):""})`,JsdocTypeTypeof:(c,m)=>`typeof ${m(c.element)}`,JsdocTypeUndefined:()=>"undefined",JsdocTypeUnion:(c,m)=>c.elements.map(m).join(" | "),JsdocTypeUnknown:()=>"?",JsdocTypeIntersection:(c,m)=>c.elements.map(m).join(" & "),JsdocTypeProperty:c=>Pt(c.value,c.meta.quote),JsdocTypePredicate:(c,m)=>`${m(c.left)} is ${m(c.right)}`,JsdocTypeIndexSignature:(c,m)=>`[${c.key}: ${m(c.right)}]`,JsdocTypeMappedType:(c,m)=>`[${c.key} in ${m(c.right)}]`,JsdocTypeAsserts:(c,m)=>`asserts ${m(c.left)} is ${m(c.right)}`,JsdocTypeReadonlyArray:(c,m)=>`readonly ${m(c.element)}`,JsdocTypeAssertsPlain:(c,m)=>`asserts ${m(c.element)}`,JsdocTypeConditional:(c,m)=>`${m(c.checksType)} extends ${m(c.extendsType)} ? ${m(c.trueType)} : ${m(c.falseType)}`,JsdocTypeTypeParameter:(c,m)=>`${m(c.name)}${c.constraint!==void 0?` extends ${m(c.constraint)}`:""}${c.defaultValue!==void 0?` = ${m(c.defaultValue)}`:""}`}}let Ls=ue();function oi(c){return vr(Ls,c)}let jd=["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 Lt(c){let m={type:"NameExpression",name:c};return jd.includes(c)&&(m.reservedWord=!0),m}let kd={JsdocTypeOptional:(c,m)=>{let T=m(c.element);return T.optional=!0,T},JsdocTypeNullable:(c,m)=>{let T=m(c.element);return T.nullable=!0,T},JsdocTypeNotNullable:(c,m)=>{let T=m(c.element);return T.nullable=!1,T},JsdocTypeVariadic:(c,m)=>{if(c.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");let T=m(c.element);return T.repeatable=!0,T},JsdocTypeAny:()=>({type:"AllLiteral"}),JsdocTypeNull:()=>({type:"NullLiteral"}),JsdocTypeStringValue:c=>Lt(Pt(c.value,c.meta.quote)),JsdocTypeUndefined:()=>({type:"UndefinedLiteral"}),JsdocTypeUnknown:()=>({type:"UnknownLiteral"}),JsdocTypeFunction:(c,m)=>{let T=Li(c),x={type:"FunctionType",params:T.params.map(m)};return T.this!==void 0&&(x.this=m(T.this)),T.new!==void 0&&(x.new=m(T.new)),c.returnType!==void 0&&(x.result=m(c.returnType)),x},JsdocTypeGeneric:(c,m)=>({type:"TypeApplication",applications:c.elements.map(T=>m(T)),expression:m(c.left)}),JsdocTypeSpecialNamePath:c=>Lt(c.specialType+":"+Pt(c.value,c.meta.quote)),JsdocTypeName:c=>c.value!=="function"?Lt(c.value):{type:"FunctionType",params:[]},JsdocTypeNumber:c=>Lt(c.value.toString()),JsdocTypeObject:(c,m)=>{let T={type:"RecordType",fields:[]};for(let x of c.elements)x.type!=="JsdocTypeObjectField"&&x.type!=="JsdocTypeJsdocObjectField"?T.fields.push({type:"FieldType",key:m(x),value:void 0}):T.fields.push(m(x));return T},JsdocTypeObjectField:(c,m)=>{if(typeof c.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:Lt(Pt(c.key,c.meta.quote)),value:c.right===void 0?void 0:m(c.right)}},JsdocTypeJsdocObjectField:(c,m)=>({type:"FieldType",key:m(c.left),value:m(c.right)}),JsdocTypeUnion:(c,m)=>({type:"TypeUnion",elements:c.elements.map(T=>m(T))}),JsdocTypeKeyValue:(c,m)=>({type:"FieldType",key:Lt(c.key),value:c.right===void 0?void 0:m(c.right)}),JsdocTypeNamePath:(c,m)=>{let T=m(c.left),x;c.right.type==="JsdocTypeSpecialNamePath"?x=m(c.right).name:x=Pt(c.right.value,c.right.meta.quote);let J=c.pathType==="inner"?"~":c.pathType==="instance"?"#":".";return Lt(`${T.name}${J}${x}`)},JsdocTypeSymbol:c=>{let m="",T=c.element,x=!1;return(T==null?void 0:T.type)==="JsdocTypeVariadic"&&(T.meta.position==="prefix"?m="...":x=!0,T=T.element),(T==null?void 0:T.type)==="JsdocTypeName"?m+=T.value:(T==null?void 0:T.type)==="JsdocTypeNumber"&&(m+=T.value.toString()),x&&(m+="..."),Lt(`${c.value}(${m})`)},JsdocTypeParenthesis:(c,m)=>m(R(c.element)),JsdocTypeMappedType:we,JsdocTypeIndexSignature:we,JsdocTypeImport:we,JsdocTypeKeyof:we,JsdocTypeTuple:we,JsdocTypeTypeof:we,JsdocTypeIntersection:we,JsdocTypeProperty:we,JsdocTypePredicate:we,JsdocTypeAsserts:we,JsdocTypeReadonlyArray:we,JsdocTypeAssertsPlain:we,JsdocTypeConditional:we,JsdocTypeTypeParameter:we};function Dd(c){return vr(kd,c)}function ir(c){switch(c){case void 0:return"none";case"single":return"single";case"double":return"double"}}function Ld(c){switch(c){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}function Fi(c,m){return m.length===2?{type:c,left:m[0],right:m[1]}:{type:c,left:m[0],right:Fi(c,m.slice(1))}}let Fd={JsdocTypeOptional:(c,m)=>({type:"OPTIONAL",value:m(c.element),meta:{syntax:c.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),JsdocTypeNullable:(c,m)=>({type:"NULLABLE",value:m(c.element),meta:{syntax:c.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),JsdocTypeNotNullable:(c,m)=>({type:"NOT_NULLABLE",value:m(c.element),meta:{syntax:c.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),JsdocTypeVariadic:(c,m)=>{let T={type:"VARIADIC",meta:{syntax:c.meta.position==="prefix"?"PREFIX_DOTS":c.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return c.element!==void 0&&(T.value=m(c.element)),T},JsdocTypeName:c=>({type:"NAME",name:c.value}),JsdocTypeTypeof:(c,m)=>({type:"TYPE_QUERY",name:m(c.element)}),JsdocTypeTuple:(c,m)=>({type:"TUPLE",entries:c.elements.map(m)}),JsdocTypeKeyof:(c,m)=>({type:"KEY_QUERY",value:m(c.element)}),JsdocTypeImport:c=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:ir(c.element.meta.quote),string:c.element.value}}),JsdocTypeUndefined:()=>({type:"NAME",name:"undefined"}),JsdocTypeAny:()=>({type:"ANY"}),JsdocTypeFunction:(c,m)=>{let T=Li(c),x={type:c.arrow?"ARROW":"FUNCTION",params:T.params.map(J=>{if(J.type==="JsdocTypeKeyValue"){if(J.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:J.key,typeName:m(J.right)}}else return m(J)}),new:null,returns:null};return T.this!==void 0?x.this=m(T.this):c.arrow||(x.this=null),T.new!==void 0&&(x.new=m(T.new)),c.returnType!==void 0&&(x.returns=m(c.returnType)),x},JsdocTypeGeneric:(c,m)=>{let T={type:"GENERIC",subject:m(c.left),objects:c.elements.map(m),meta:{syntax:c.meta.brackets==="square"?"SQUARE_BRACKET":c.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return c.meta.brackets==="square"&&c.elements[0].type==="JsdocTypeFunction"&&!c.elements[0].parenthesis&&(T.objects[0]={type:"NAME",name:"function"}),T},JsdocTypeObjectField:(c,m)=>{if(typeof c.key!="string")throw new Error("Index signatures and mapped types are not supported");if(c.right===void 0)return{type:"RECORD_ENTRY",key:c.key,quoteStyle:ir(c.meta.quote),value:null,readonly:!1};let T=m(c.right);return c.optional&&(T={type:"OPTIONAL",value:T,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:c.key.toString(),quoteStyle:ir(c.meta.quote),value:T,readonly:!1}},JsdocTypeJsdocObjectField:()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},JsdocTypeKeyValue:(c,m)=>{if(c.right===void 0)return{type:"RECORD_ENTRY",key:c.key,quoteStyle:"none",value:null,readonly:!1};let T=m(c.right);return c.optional&&(T={type:"OPTIONAL",value:T,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:c.key,quoteStyle:"none",value:T,readonly:!1}},JsdocTypeObject:(c,m)=>{let T=[];for(let x of c.elements)(x.type==="JsdocTypeObjectField"||x.type==="JsdocTypeJsdocObjectField")&&T.push(m(x));return{type:"RECORD",entries:T}},JsdocTypeSpecialNamePath:c=>{if(c.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${c.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:ir(c.meta.quote),path:c.value}}},JsdocTypeNamePath:(c,m)=>{let T=!1,x,J;c.right.type==="JsdocTypeSpecialNamePath"&&c.right.specialType==="event"?(T=!0,x=c.right.value,J=ir(c.right.meta.quote)):(x=c.right.value,J=ir(c.right.meta.quote));let X={type:Ld(c.pathType),owner:m(c.left),name:x,quoteStyle:J,hasEventPrefix:T};if(X.owner.type==="MODULE"){let se=X.owner;return X.owner=X.owner.value,se.value=X,se}else return X},JsdocTypeUnion:(c,m)=>Fi("UNION",c.elements.map(m)),JsdocTypeParenthesis:(c,m)=>({type:"PARENTHESIS",value:m(R(c.element))}),JsdocTypeNull:()=>({type:"NAME",name:"null"}),JsdocTypeUnknown:()=>({type:"UNKNOWN"}),JsdocTypeStringValue:c=>({type:"STRING_VALUE",quoteStyle:ir(c.meta.quote),string:c.value}),JsdocTypeIntersection:(c,m)=>Fi("INTERSECTION",c.elements.map(m)),JsdocTypeNumber:c=>({type:"NUMBER_VALUE",number:c.value.toString()}),JsdocTypeSymbol:we,JsdocTypeProperty:we,JsdocTypePredicate:we,JsdocTypeMappedType:we,JsdocTypeIndexSignature:we,JsdocTypeAsserts:we,JsdocTypeReadonlyArray:we,JsdocTypeAssertsPlain:we,JsdocTypeConditional:we,JsdocTypeTypeParameter:we};function Bd(c){return vr(Fd,c)}function $d(){return{JsdocTypeIntersection:(c,m)=>({type:"JsdocTypeIntersection",elements:c.elements.map(m)}),JsdocTypeGeneric:(c,m)=>({type:"JsdocTypeGeneric",left:m(c.left),elements:c.elements.map(m),meta:{dot:c.meta.dot,brackets:c.meta.brackets}}),JsdocTypeNullable:c=>c,JsdocTypeUnion:(c,m)=>({type:"JsdocTypeUnion",elements:c.elements.map(m)}),JsdocTypeUnknown:c=>c,JsdocTypeUndefined:c=>c,JsdocTypeTypeof:(c,m)=>({type:"JsdocTypeTypeof",element:m(c.element)}),JsdocTypeSymbol:(c,m)=>{let T={type:"JsdocTypeSymbol",value:c.value};return c.element!==void 0&&(T.element=m(c.element)),T},JsdocTypeOptional:(c,m)=>({type:"JsdocTypeOptional",element:m(c.element),meta:{position:c.meta.position}}),JsdocTypeObject:(c,m)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:c.elements.map(m)}),JsdocTypeNumber:c=>c,JsdocTypeNull:c=>c,JsdocTypeNotNullable:(c,m)=>({type:"JsdocTypeNotNullable",element:m(c.element),meta:{position:c.meta.position}}),JsdocTypeSpecialNamePath:c=>c,JsdocTypeObjectField:(c,m)=>({type:"JsdocTypeObjectField",key:c.key,right:c.right===void 0?void 0:m(c.right),optional:c.optional,readonly:c.readonly,meta:c.meta}),JsdocTypeJsdocObjectField:(c,m)=>({type:"JsdocTypeJsdocObjectField",left:m(c.left),right:m(c.right)}),JsdocTypeKeyValue:(c,m)=>({type:"JsdocTypeKeyValue",key:c.key,right:c.right===void 0?void 0:m(c.right),optional:c.optional,variadic:c.variadic}),JsdocTypeImport:(c,m)=>({type:"JsdocTypeImport",element:m(c.element)}),JsdocTypeAny:c=>c,JsdocTypeStringValue:c=>c,JsdocTypeNamePath:c=>c,JsdocTypeVariadic:(c,m)=>{let T={type:"JsdocTypeVariadic",meta:{position:c.meta.position,squareBrackets:c.meta.squareBrackets}};return c.element!==void 0&&(T.element=m(c.element)),T},JsdocTypeTuple:(c,m)=>({type:"JsdocTypeTuple",elements:c.elements.map(m)}),JsdocTypeName:c=>c,JsdocTypeFunction:(c,m)=>{let T={type:"JsdocTypeFunction",arrow:c.arrow,parameters:c.parameters.map(m),constructor:c.constructor,parenthesis:c.parenthesis};return c.returnType!==void 0&&(T.returnType=m(c.returnType)),T},JsdocTypeKeyof:(c,m)=>({type:"JsdocTypeKeyof",element:m(c.element)}),JsdocTypeParenthesis:(c,m)=>({type:"JsdocTypeParenthesis",element:m(c.element)}),JsdocTypeProperty:c=>c,JsdocTypePredicate:(c,m)=>({type:"JsdocTypePredicate",left:m(c.left),right:m(c.right)}),JsdocTypeIndexSignature:(c,m)=>({type:"JsdocTypeIndexSignature",key:c.key,right:m(c.right)}),JsdocTypeMappedType:(c,m)=>({type:"JsdocTypeMappedType",key:c.key,right:m(c.right)}),JsdocTypeAsserts:(c,m)=>({type:"JsdocTypeAsserts",left:m(c.left),right:m(c.right)}),JsdocTypeReadonlyArray:(c,m)=>({type:"JsdocTypeReadonlyArray",element:m(c.element)}),JsdocTypeAssertsPlain:(c,m)=>({type:"JsdocTypeAssertsPlain",element:m(c.element)}),JsdocTypeConditional:(c,m)=>({type:"JsdocTypeConditional",checksType:m(c.checksType),extendsType:m(c.extendsType),trueType:m(c.trueType),falseType:m(c.falseType)}),JsdocTypeTypeParameter:(c,m)=>({type:"JsdocTypeTypeParameter",name:m(c.name),constraint:c.constraint!==void 0?m(c.constraint):void 0,defaultValue:c.defaultValue!==void 0?m(c.defaultValue):void 0})}}let Fs={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 Bi(c,m,T,x,J){x==null||x(c,m,T);let X=Fs[c.type];for(let se of X){let Se=c[se];if(Se!==void 0)if(Array.isArray(Se))for(let Oe of Se)Bi(Oe,c,se,x,J);else Bi(Se,c,se,x,J)}J==null||J(c,m,T)}function Ud(c,m,T){Bi(c,void 0,void 0,m,T)}r.catharsisTransform=Dd,r.identityTransformRules=$d,r.jtpTransform=Bd,r.parse=Di,r.stringify=oi,r.stringifyRules=ue,r.transform=vr,r.traverse=Ud,r.tryParse=Ds,r.visitorKeys=Fs})}}),wq=U({"../../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(l,u){for(var d=0;d<u.length;d++){var p=u[d];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(l,(f=p.key,h=void 0,typeof(h=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"?h:String(h)),p)}var f,h}var n={chrome:"Google Chrome",brave:"Brave",crios:"Google Chrome",edge:"Microsoft Edge",edg:"Microsoft Edge",edgios:"Microsoft Edge",fennec:"Mozilla Firefox",jsdom:"JsDOM",mozilla:"Mozilla Firefox",fxios:"Mozilla Firefox",msie:"Microsoft Internet Explorer",opera:"Opera",opios:"Opera",opr:"Opera",opt:"Opera",rv:"Microsoft Internet Explorer",safari:"Safari",samsungbrowser:"Samsung Browser",electron:"Electron"},i={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"},o=function(l){var u=new RegExp("^-?\\d+(?:.\\d{0,".concat(arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,"})?")),d=Number(l).toString().match(u);return d?d[0]:null},s=function(){return typeof window<"u"?window.navigator:null},a=function(){function l(f){var h;(function(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")})(this,l),this.userAgent=f||((h=s())===null||h===void 0?void 0:h.userAgent)||null}var u,d,p;return u=l,d=[{key:"parseUserAgent",value:function(f){var h,y,g,v={},b=f||this.userAgent||"",E=b.toLowerCase().replace(/\s\s+/g," "),w=/(edge)\/([\w.]+)/.exec(E)||/(edg)[/]([\w.]+)/.exec(E)||/(opr)[/]([\w.]+)/.exec(E)||/(opt)[/]([\w.]+)/.exec(E)||/(fxios)[/]([\w.]+)/.exec(E)||/(edgios)[/]([\w.]+)/.exec(E)||/(jsdom)[/]([\w.]+)/.exec(E)||/(samsungbrowser)[/]([\w.]+)/.exec(E)||/(electron)[/]([\w.]+)/.exec(E)||/(chrome)[/]([\w.]+)/.exec(E)||/(crios)[/]([\w.]+)/.exec(E)||/(opios)[/]([\w.]+)/.exec(E)||/(version)(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(E)||/(webkit)[/]([\w.]+).*(version)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(E)||/(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(E)||/(webkit)[/]([\w.]+)/.exec(E)||/(opera)(?:.*version|)[/]([\w.]+)/.exec(E)||/(msie) ([\w.]+)/.exec(E)||/(fennec)[/]([\w.]+)/.exec(E)||E.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(E)||E.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(E)||[],A=/(ipad)/.exec(E)||/(ipod)/.exec(E)||/(iphone)/.exec(E)||/(jsdom)/.exec(E)||/(windows phone)/.exec(E)||/(xbox)/.exec(E)||/(win)/.exec(E)||/(tablet)/.exec(E)||/(android)/.test(E)&&/(mobile)/.test(E)===!1&&["androidTablet"]||/(android)/.exec(E)||/(mac)/.exec(E)||/(linux)/.exec(E)||/(cros)/.exec(E)||[],C=w[5]||w[3]||w[1]||null,R=A[0]||null,S=w[4]||w[2]||null,_=s();C==="chrome"&&typeof(_==null||(h=_.brave)===null||h===void 0?void 0:h.isBrave)=="function"&&(C="brave"),C&&(v[C]=!0),R&&(v[R]=!0);var O=!!(v.tablet||v.android||v.androidTablet),M=!!(v.ipad||v.tablet||v.androidTablet),I=!!(v.android||v.androidTablet||v.tablet||v.ipad||v.ipod||v.iphone||v["windows phone"]),k=!!(v.cros||v.mac||v.linux||v.win),N=!!(v.brave||v.chrome||v.crios||v.opr||v.safari||v.edg||v.electron),P=!!(v.msie||v.rv);return{name:(y=n[C])!==null&&y!==void 0?y:null,platform:(g=i[R])!==null&&g!==void 0?g:null,userAgent:b,version:S,shortVersion:S?o(parseFloat(S),2):null,isAndroid:O,isTablet:M,isMobile:I,isDesktop:k,isWebkit:N,isIE:P}}},{key:"getBrowserInfo",value:function(){var f=this.parseUserAgent();return{name:f.name,platform:f.platform,userAgent:f.userAgent,version:f.version,shortVersion:f.shortVersion}}}],p=[{key:"VERSION",get:function(){return"3.4.0"}}],d&&r(u.prototype,d),p&&r(u,p),Object.defineProperty(u,"prototype",{writable:!1}),l}();return a})}}),Nh={};br(Nh,{ARGTYPES_INFO_REQUEST:()=>Mw,ARGTYPES_INFO_RESPONSE:()=>Hp,CHANNEL_CREATED:()=>Sq,CHANNEL_WS_DISCONNECT:()=>fw,CONFIG_ERROR:()=>hw,CREATE_NEW_STORYFILE_REQUEST:()=>Rq,CREATE_NEW_STORYFILE_RESPONSE:()=>Oq,CURRENT_STORY_WAS_SET:()=>Up,DOCS_PREPARED:()=>mw,DOCS_RENDERED:()=>Mh,FILE_COMPONENT_SEARCH_REQUEST:()=>Aq,FILE_COMPONENT_SEARCH_RESPONSE:()=>Pq,FORCE_REMOUNT:()=>Nu,FORCE_RE_RENDER:()=>qh,GHOST_STORIES_REQUEST:()=>Wq,GHOST_STORIES_RESPONSE:()=>Kq,GLOBALS_UPDATED:()=>Pa,MANAGER_INERT_ATTRIBUTE_CHANGED:()=>qw,NAVIGATE_URL:()=>Cq,OPEN_IN_EDITOR_REQUEST:()=>zq,OPEN_IN_EDITOR_RESPONSE:()=>Yq,PLAY_FUNCTION_THREW_EXCEPTION:()=>yw,PRELOAD_ENTRIES:()=>bw,PREVIEW_BUILDER_PROGRESS:()=>xq,PREVIEW_INITIALIZED:()=>vw,PREVIEW_KEYDOWN:()=>Ew,REGISTER_SUBSCRIPTION:()=>Nq,REQUEST_WHATS_NEW_DATA:()=>$q,RESET_STORY_ARGS:()=>jh,RESULT_WHATS_NEW_DATA:()=>Uq,SAVE_STORY_REQUEST:()=>Hq,SAVE_STORY_RESPONSE:()=>Gq,SELECT_STORY:()=>Iq,SET_CONFIG:()=>Mq,SET_CURRENT_STORY:()=>kh,SET_FILTER:()=>qq,SET_GLOBALS:()=>Tw,SET_INDEX:()=>jq,SET_STORIES:()=>kq,SET_WHATS_NEW_CACHE:()=>Vq,SHARED_STATE_CHANGED:()=>Dq,SHARED_STATE_SET:()=>Lq,SHARE_ISOLATE_MODE:()=>Qq,SHARE_POPOVER_OPENED:()=>Zq,SHARE_STORY_LINK:()=>Xq,STORIES_COLLAPSE_ALL:()=>Fq,STORIES_EXPAND_ALL:()=>Bq,STORY_ARGS_UPDATED:()=>ww,STORY_CHANGED:()=>_w,STORY_ERRORED:()=>Sw,STORY_FINISHED:()=>Jp,STORY_HOT_UPDATED:()=>xw,STORY_INDEX_INVALIDATED:()=>Rw,STORY_MISSING:()=>Vp,STORY_PREPARED:()=>Ow,STORY_RENDERED:()=>Iu,STORY_RENDER_PHASE_CHANGED:()=>po,STORY_SPECIFIED:()=>Aw,STORY_THREW_EXCEPTION:()=>Pw,STORY_UNCHANGED:()=>Cw,TELEMETRY_ERROR:()=>Iw,TOGGLE_WHATS_NEW_NOTIFICATIONS:()=>Jq,UNHANDLED_ERRORS_WHILE_PLAYING:()=>gw,UPDATE_GLOBALS:()=>Dh,UPDATE_QUERY_PARAMS:()=>Nw,UPDATE_STORY_ARGS:()=>Lh,default:()=>_q});var Ih=(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))(Ih||{}),_q=Ih,{CHANNEL_WS_DISCONNECT:fw,CHANNEL_CREATED:Sq,CONFIG_ERROR:hw,CREATE_NEW_STORYFILE_REQUEST:Rq,CREATE_NEW_STORYFILE_RESPONSE:Oq,CURRENT_STORY_WAS_SET:Up,DOCS_PREPARED:mw,DOCS_RENDERED:Mh,FILE_COMPONENT_SEARCH_REQUEST:Aq,FILE_COMPONENT_SEARCH_RESPONSE:Pq,FORCE_RE_RENDER:qh,FORCE_REMOUNT:Nu,GLOBALS_UPDATED:Pa,NAVIGATE_URL:Cq,PLAY_FUNCTION_THREW_EXCEPTION:yw,UNHANDLED_ERRORS_WHILE_PLAYING:gw,PRELOAD_ENTRIES:bw,PREVIEW_INITIALIZED:vw,PREVIEW_BUILDER_PROGRESS:xq,PREVIEW_KEYDOWN:Ew,REGISTER_SUBSCRIPTION:Nq,RESET_STORY_ARGS:jh,SELECT_STORY:Iq,SET_CONFIG:Mq,SET_CURRENT_STORY:kh,SET_FILTER:qq,SET_GLOBALS:Tw,SET_INDEX:jq,SET_STORIES:kq,SHARED_STATE_CHANGED:Dq,SHARED_STATE_SET:Lq,STORIES_COLLAPSE_ALL:Fq,STORIES_EXPAND_ALL:Bq,STORY_ARGS_UPDATED:ww,STORY_CHANGED:_w,STORY_ERRORED:Sw,STORY_INDEX_INVALIDATED:Rw,STORY_MISSING:Vp,STORY_PREPARED:Ow,STORY_RENDER_PHASE_CHANGED:po,STORY_RENDERED:Iu,STORY_FINISHED:Jp,STORY_SPECIFIED:Aw,STORY_THREW_EXCEPTION:Pw,STORY_UNCHANGED:Cw,STORY_HOT_UPDATED:xw,UPDATE_GLOBALS:Dh,UPDATE_QUERY_PARAMS:Nw,UPDATE_STORY_ARGS:Lh,REQUEST_WHATS_NEW_DATA:$q,RESULT_WHATS_NEW_DATA:Uq,SET_WHATS_NEW_CACHE:Vq,TOGGLE_WHATS_NEW_NOTIFICATIONS:Jq,TELEMETRY_ERROR:Iw,SAVE_STORY_REQUEST:Hq,SAVE_STORY_RESPONSE:Gq,ARGTYPES_INFO_REQUEST:Mw,ARGTYPES_INFO_RESPONSE:Hp,GHOST_STORIES_REQUEST:Wq,GHOST_STORIES_RESPONSE:Kq,OPEN_IN_EDITOR_REQUEST:zq,OPEN_IN_EDITOR_RESPONSE:Yq,MANAGER_INERT_ATTRIBUTE_CHANGED:qw,SHARE_STORY_LINK:Xq,SHARE_ISOLATE_MODE:Qq,SHARE_POPOVER_OPENED:Zq}=Ih,jw={};br(jw,{global:()=>fe});var fe=(()=>{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})(),kw={"@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__"},ej=Object.keys(kw),Dw={};br(Dw,{Channel:()=>Nc,HEARTBEAT_INTERVAL:()=>a_,HEARTBEAT_MAX_LATENCY:()=>l_,PostMessageTransport:()=>s_,WebsocketTransport:()=>u_,createBrowserChannel:()=>mL,default:()=>hL});function De(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 i=n.reduce(function(a,l){var u=l.match(/\n([\t ]+|(?!\s).)/g);return u?a.concat(u.map(function(d){var p,f;return(f=(p=d.match(/[\t ]/g))===null||p===void 0?void 0:p.length)!==null&&f!==void 0?f:0})):a},[]);if(i.length){var o=new RegExp(`
|
|
18
|
-
[ ]{`+Math.min.apply(Math,i)+"}","g");n=n.map(function(a){return a.replace(o,`
|
|
19
|
-
`)})}n[0]=n[0].replace(/^\r?\n/,"");var s=n[0];return t.forEach(function(a,l){var u=s.match(/(?:^|\n)( *)$/),d=u?u[1]:"",p=a;typeof a=="string"&&a.includes(`
|
|
20
|
-
`)&&(p=String(a).split(`
|
|
21
|
-
`).map(function(f,h){return h===0?f:""+d+f}).join(`
|
|
22
|
-
`)),s+=p+n[l+1]}),s}var xg=new Map,tj="UNIVERSAL_STORE:",xr={PENDING:"PENDING",RESOLVED:"RESOLVED",REJECTED:"REJECTED"},Wi=class Pe{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,i)=>{let o=typeof n=="function",s=o?"*":n,a=o?n:i;if(this.debug("subscribe",{eventType:s,listener:a}),!a)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(s)||this.listeners.set(s,new Set),this.listeners.get(s).add(a),()=>{var l;this.debug("unsubscribe",{eventType:s,listener:a}),this.listeners.has(s)&&(this.listeners.get(s).delete(a),((l=this.listeners.get(s))==null?void 0:l.size)===0&&this.listeners.delete(s))}},this.send=n=>{if(this.debug("send",{event:n}),this.status!==Pe.Status.READY)throw new TypeError(De`Cannot send event before store is ready. You can get the current status with store.status,
|
|
23
|
-
or await store.readyPromise to wait for the store to be ready before sending events.
|
|
24
|
-
${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,!Pe.isInternalConstructing)throw new TypeError("UniversalStore is not constructable - use UniversalStore.create() instead");if(Pe.isInternalConstructing=!1,this.id=t.id,this.actorId=Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?Pe.ActorType.LEADER:Pe.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${tj}${this.id}`,this.debug("constructor",{options:t,environmentOverrides:r,channelEventName:this.channelEventName}),this.actor.type===Pe.ActorType.LEADER)this.syncing={state:xr.RESOLVED,promise:Promise.resolve()};else{let n,i,o=new Promise((s,a)=>{n=()=>{this.syncing.state===xr.PENDING&&(this.syncing.state=xr.RESOLVED,s())},i=l=>{this.syncing.state===xr.PENDING&&(this.syncing.state=xr.REJECTED,a(l))}});this.syncing={state:xr.PENDING,promise:o,resolve:n,reject:i}}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==null?void 0:r.channel)??Pe.preparation.channel,this.environment=(r==null?void 0:r.environment)??Pe.preparation.environment,this.channel&&this.environment?(Pe.preparation.resolve({channel:this.channel,environment:this.environment}),this.prepareThis({channel:this.channel,environment:this.environment})):Pe.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,r,n=new Promise((i,o)=>{t=s=>{i(s)},r=(...s)=>{o(s)}});Pe.preparation={resolve:t,reject:r,promise:n}}get actor(){return Object.freeze({id:this.actorId,type:this.actorType,environment:this.environment??Pe.Environment.UNKNOWN})}get status(){var t;if(!this.channel||!this.environment)return Pe.Status.UNPREPARED;switch((t=this.syncing)==null?void 0:t.state){case xr.PENDING:case void 0:return Pe.Status.SYNCING;case xr.REJECTED:return Pe.Status.ERROR;case xr.RESOLVED:default:return Pe.Status.READY}}untilReady(){var t;return Promise.all([Pe.preparation.promise,(t=this.syncing)==null?void 0:t.promise])}static create(t){if(!t||typeof(t==null?void 0:t.id)!="string")throw new TypeError("id is required and must be a string, when creating a UniversalStore");t.debug&&console.debug(De`[UniversalStore]
|
|
25
|
-
create`,{options:t});let r=xg.get(t.id);if(r)return console.warn(De`UniversalStore with id "${t.id}" already exists in this environment, re-using existing.
|
|
26
|
-
You should reuse the existing instance instead of trying to create a new one.`),r;Pe.isInternalConstructing=!0;let n=new Pe(t);return xg.set(t.id,n),n}static __prepare(t,r){Pe.preparation.channel=t,Pe.preparation.environment=r,Pe.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!==Pe.Status.READY)throw new TypeError(De`Cannot set state before store is ready. You can get the current status with store.status,
|
|
27
|
-
or await store.readyPromise to wait for the store to be ready before sending events.
|
|
28
|
-
${JSON.stringify({newState:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.state=n;let i={type:Pe.InternalEventType.SET_STATE,payload:{state:n,previousState:r}};this.emitToChannel(i,{actor:this.actor}),this.emitToListeners(i,{actor:this.actor})}onStateChange(t){return this.debug("onStateChange",{listener:t}),this.subscribe(Pe.InternalEventType.SET_STATE,({payload:r},n)=>{t(r.state,r.previousState,n)})}emitToChannel(t,r){var n;this.debug("emitToChannel",{event:t,eventInfo:r,channel:!!this.channel}),(n=this.channel)==null||n.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===Pe.ActorType.LEADER?this.emitToChannel({type:Pe.InternalEventType.LEADER_CREATED},{actor:this.actor}):(this.emitToChannel({type:Pe.InternalEventType.FOLLOWER_CREATED},{actor:this.actor}),this.emitToChannel({type:Pe.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),i=this.listeners.get("*");this.debug("emitToListeners",{event:t,eventInfo:r,eventTypeListeners:n,everythingListeners:i}),[...n??[],...i??[]].forEach(o=>o(t,r))}handleChannelEvents(t){var i,o,s,a,l;let{event:r,eventInfo:n}=t;if([n.actor.id,(i=n.forwardingActor)==null?void 0:i.id].includes(this.actor.id)){this.debug("handleChannelEvents: Ignoring event from self",{channelEvent:t});return}else if(((o=this.syncing)==null?void 0:o.state)===xr.PENDING&&r.type!==Pe.InternalEventType.EXISTING_STATE_RESPONSE){this.debug("handleChannelEvents: Ignoring event while syncing",{channelEvent:t});return}if(this.debug("handleChannelEvents",{channelEvent:t}),this.actor.type===Pe.ActorType.LEADER){let u=!0;switch(r.type){case Pe.InternalEventType.EXISTING_STATE_REQUEST:u=!1;let d={type:Pe.InternalEventType.EXISTING_STATE_RESPONSE,payload:this.state};this.debug("handleChannelEvents: responding to existing state request",{responseEvent:d}),this.emitToChannel(d,{actor:this.actor}),this.emitToListeners(d,{actor:this.actor});break;case Pe.InternalEventType.LEADER_CREATED:u=!1,this.syncing.state=xr.REJECTED,this.debug("handleChannelEvents: erroring due to second leader being created",{event:r}),console.error(De`Detected multiple UniversalStore leaders created with the same id "${this.id}".
|
|
29
|
-
Only one leader can exists at a time, your stores are now in an invalid state.
|
|
30
|
-
Leaders detected:
|
|
31
|
-
this: ${JSON.stringify(this.actor,null,2)}
|
|
32
|
-
other: ${JSON.stringify(n.actor,null,2)}`);break}u&&(this.debug("handleChannelEvents: forwarding event",{channelEvent:t}),this.emitToChannel(r,{actor:n.actor,forwardingActor:this.actor}))}if(this.actor.type===Pe.ActorType.FOLLOWER)switch(r.type){case Pe.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug("handleChannelEvents: Setting state from leader's existing state response",{event:r}),((s=this.syncing)==null?void 0:s.state)!==xr.PENDING)break;(l=(a=this.syncing).resolve)==null||l.call(a);let u={type:Pe.InternalEventType.SET_STATE,payload:{state:r.payload,previousState:this.state}};this.state=r.payload,this.emitToListeners(u,n);break}switch(r.type){case Pe.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(De`[UniversalStore::${this.id}::${this.environment??Pe.Environment.UNKNOWN}]
|
|
33
|
-
${t}`,JSON.stringify({data:r,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){Pe.preparation.reject(new Error("reset")),Pe.setupPreparationPromise(),Pe.isInternalConstructing=!1}};Wi.ActorType={LEADER:"LEADER",FOLLOWER:"FOLLOWER"},Wi.Environment={SERVER:"SERVER",MANAGER:"MANAGER",PREVIEW:"PREVIEW",UNKNOWN:"UNKNOWN",MOCK:"MOCK"},Wi.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"},Wi.Status={UNPREPARED:"UNPREPARED",SYNCING:"SYNCING",READY:"READY",ERROR:"ERROR"},Wi.isInternalConstructing=!1,Wi.setupPreparationPromise();var Vd=Wi,rj=e=>e.transports!==void 0,nj=()=>Math.random().toString(16).slice(2),Nc=class{constructor(e={}){this.sender=nj(),this.events={},this.data={},this.transports=[],this.isAsync=e.async||!1,rj(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 i=()=>{this.transports.forEach(o=>{o.send(r,n)}),this.handleEvent(r)};this.isAsync?setImmediate(i):i()}last(e){return this.data[e]}eventNames(){return Object.keys(this.events)}listenerCount(e){let t=this.listeners(e);return t?t.length:0}listeners(e){return this.events[e]||void 0}once(e,t){let 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}},Lw={};br(Lw,{deprecate:()=>Fh,logger:()=>at,once:()=>gt,pretty:()=>Or});var{LOGLEVEL:ij}=fe,hi={trace:1,debug:2,info:3,warn:4,error:5,silent:10},oj=ij,No=hi[oj]||hi.info,at={trace:(e,...t)=>{No<=hi.trace&&console.trace(e,...t)},debug:(e,...t)=>{No<=hi.debug&&console.debug(e,...t)},info:(e,...t)=>{No<=hi.info&&console.info(e,...t)},warn:(e,...t)=>{No<=hi.warn&&console.warn(e,...t)},error:(e,...t)=>{No<=hi.error&&console.error(e,...t)},log:(e,...t)=>{No<hi.silent&&console.log(e,...t)}},Gp=new Set,gt=e=>(t,...r)=>{if(!Gp.has(t))return Gp.add(t),at[e](t,...r)};gt.clear=()=>Gp.clear();gt.trace=gt("trace");gt.debug=gt("debug");gt.info=gt("info");gt.warn=gt("warn");gt.error=gt("error");gt.log=gt("log");var Fh=gt("warn"),Or=e=>(...t)=>{let r=[];if(t.length){let n=/<span\s+style=(['"])([^'"]*)\1\s*>/gi,i=/<\/span>/gi,o;for(r.push(t[0].replace(n,"%c").replace(i,"%c"));o=n.exec(t[0]);)r.push(o[2]),r.push("");for(let s=1;s<t.length;s++)r.push(t[s])}at[e].apply(at,r)};Or.trace=Or("trace");Or.debug=Or("debug");Or.info=Or("info");Or.warn=Or("warn");Or.error=Or("error");var sj=Object.create,Fw=Object.defineProperty,aj=Object.getOwnPropertyDescriptor,Bw=Object.getOwnPropertyNames,lj=Object.getPrototypeOf,uj=Object.prototype.hasOwnProperty,Ne=(e,t)=>function(){return t||(0,e[Bw(e)[0]])((t={exports:{}}).exports,t),t.exports},cj=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Bw(t))!uj.call(e,i)&&i!==r&&Fw(e,i,{get:()=>t[i],enumerable:!(n=aj(t,i))||n.enumerable});return e},Bh=(e,t,r)=>(r=e!=null?sj(lj(e)):{},cj(!e||!e.__esModule?Fw(r,"default",{value:e,enumerable:!0}):r,e)),dj=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],pj=["detail"];function fj(e){let t=dj.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of pj.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var $w=Ne({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),hj=Ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),mj=Ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),yj=Ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),gj=Ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),bj=Ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),$h=Ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),vj=Ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),Ej=Ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),Tj=Ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),wj=Ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),_j=Ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),Sj=Ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),Rj=Ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),Oj=Ne({"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}}}),Aj=Ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=Oj();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),Pj=Ne({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),Uh=Ne({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=Pj();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),Cj=Ne({"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}}),Uw=Ne({"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"),i=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var o=42;r[n]=o;for(var s 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 a=Object.getOwnPropertySymbols(r);if(a.length!==1||a[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(r,n);if(l.value!==o||l.enumerable!==!0)return!1}return!0}}}),Vw=Ne({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=Uw();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),Jw=Ne({"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}}),Hw=Ne({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=$w();t.exports=r.getPrototypeOf||null}}),xj=Ne({"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,i=Math.max,o="[object Function]",s=function(u,d){for(var p=[],f=0;f<u.length;f+=1)p[f]=u[f];for(var h=0;h<d.length;h+=1)p[h+u.length]=d[h];return p},a=function(u,d){for(var p=[],f=d,h=0;f<u.length;f+=1,h+=1)p[h]=u[f];return p},l=function(u,d){for(var p="",f=0;f<u.length;f+=1)p+=u[f],f+1<u.length&&(p+=d);return p};t.exports=function(u){var d=this;if(typeof d!="function"||n.apply(d)!==o)throw new TypeError(r+d);for(var p=a(arguments,1),f,h=function(){if(this instanceof f){var E=d.apply(this,s(p,arguments));return Object(E)===E?E:this}return d.apply(u,s(p,arguments))},y=i(0,d.length-p.length),g=[],v=0;v<y;v++)g[v]="$"+v;if(f=Function("binder","return function ("+l(g,",")+"){ return binder.apply(this,arguments); }")(h),d.prototype){var b=function(){};b.prototype=d.prototype,f.prototype=new b,b.prototype=null}return f}}}),Ic=Ne({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=xj();t.exports=Function.prototype.bind||r}}),Vh=Ne({"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}}),Gw=Ne({"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}}),Nj=Ne({"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}}),Ij=Ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=Ic(),n=Gw(),i=Vh(),o=Nj();t.exports=o||r.call(i,n)}}),Ww=Ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=Ic(),n=$h(),i=Vh(),o=Ij();t.exports=function(s){if(s.length<1||typeof s[0]!="function")throw new n("a function is required");return o(r,i,s)}}}),Mj=Ne({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=Ww(),n=Uh(),i;try{i=[].__proto__===Array.prototype}catch(l){if(!l||typeof l!="object"||!("code"in l)||l.code!=="ERR_PROTO_ACCESS")throw l}var o=!!i&&n&&n(Object.prototype,"__proto__"),s=Object,a=s.getPrototypeOf;t.exports=o&&typeof o.get=="function"?r([o.get]):typeof a=="function"?function(l){return a(l==null?l:s(l))}:!1}}),qj=Ne({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=Jw(),n=Hw(),i=Mj();t.exports=r?function(o){return r(o)}:n?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return n(o)}:i?function(o){return i(o)}:null}}),Kw=Ne({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,i=Ic();t.exports=i.call(r,n)}}),jj=Ne({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=$w(),i=hj(),o=mj(),s=yj(),a=gj(),l=bj(),u=$h(),d=vj(),p=Ej(),f=Tj(),h=wj(),y=_j(),g=Sj(),v=Rj(),b=Aj(),E=Function,w=function(ae){try{return E('"use strict"; return ('+ae+").constructor;")()}catch{}},A=Uh(),C=Cj(),R=function(){throw new u},S=A?function(){try{return arguments.callee,R}catch{try{return A(arguments,"callee").get}catch{return R}}}():R,_=Vw()(),O=qj(),M=Hw(),I=Jw(),k=Gw(),N=Vh(),P={},q=typeof Uint8Array>"u"||!O?r:O(Uint8Array),F={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":_&&O?O([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":P,"%AsyncGenerator%":P,"%AsyncGeneratorFunction%":P,"%AsyncIteratorPrototype%":P,"%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%":i,"%eval%":eval,"%EvalError%":o,"%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%":E,"%GeneratorFunction%":P,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_&&O?O(O([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!_||!O?r:O(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":A,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":s,"%ReferenceError%":a,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!_||!O?r:O(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_&&O?O(""[Symbol.iterator]()):r,"%Symbol%":_?Symbol:r,"%SyntaxError%":l,"%ThrowTypeError%":S,"%TypedArray%":q,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":d,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":N,"%Function.prototype.apply%":k,"%Object.defineProperty%":C,"%Object.getPrototypeOf%":M,"%Math.abs%":p,"%Math.floor%":f,"%Math.max%":h,"%Math.min%":y,"%Math.pow%":g,"%Math.round%":v,"%Math.sign%":b,"%Reflect.getPrototypeOf%":I};if(O)try{null.error}catch(ae){$=O(O(ae)),F["%Error.prototype%"]=$}var $,G=function ae(me){var j;if(me==="%AsyncFunction%")j=w("async function () {}");else if(me==="%GeneratorFunction%")j=w("function* () {}");else if(me==="%AsyncGeneratorFunction%")j=w("async function* () {}");else if(me==="%AsyncGenerator%"){var B=ae("%AsyncGeneratorFunction%");B&&(j=B.prototype)}else if(me==="%AsyncIteratorPrototype%"){var W=ae("%AsyncGenerator%");W&&O&&(j=O(W.prototype))}return F[me]=j,j},ie={__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"]},pe=Ic(),he=Kw(),Q=pe.call(N,Array.prototype.concat),Z=pe.call(k,Array.prototype.splice),ge=pe.call(N,String.prototype.replace),ce=pe.call(N,String.prototype.slice),re=pe.call(N,RegExp.prototype.exec),Re=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Te=/\\(\\)?/g,et=function(ae){var me=ce(ae,0,1),j=ce(ae,-1);if(me==="%"&&j!=="%")throw new l("invalid intrinsic syntax, expected closing `%`");if(j==="%"&&me!=="%")throw new l("invalid intrinsic syntax, expected opening `%`");var B=[];return ge(ae,Re,function(W,Y,z,ee){B[B.length]=z?ge(ee,Te,"$1"):Y||W}),B},V=function(ae,me){var j=ae,B;if(he(ie,j)&&(B=ie[j],j="%"+B[0]+"%"),he(F,j)){var W=F[j];if(W===P&&(W=G(j)),typeof W>"u"&&!me)throw new u("intrinsic "+ae+" exists, but is not available. Please file an issue!");return{alias:B,name:j,value:W}}throw new l("intrinsic "+ae+" does not exist!")};t.exports=function(ae,me){if(typeof ae!="string"||ae.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof me!="boolean")throw new u('"allowMissing" argument must be a boolean');if(re(/^%?[^%]*%?$/,ae)===null)throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var j=et(ae),B=j.length>0?j[0]:"",W=V("%"+B+"%",me),Y=W.name,z=W.value,ee=!1,le=W.alias;le&&(B=le[0],Z(j,Q([0,1],le)));for(var oe=1,ne=!0;oe<j.length;oe+=1){var te=j[oe],ve=ce(te,0,1),de=ce(te,-1);if((ve==='"'||ve==="'"||ve==="`"||de==='"'||de==="'"||de==="`")&&ve!==de)throw new l("property names with quotes must have matching quotes");if((te==="constructor"||!ne)&&(ee=!0),B+="."+te,Y="%"+B+"%",he(F,Y))z=F[Y];else if(z!=null){if(!(te in z)){if(!me)throw new u("base intrinsic for "+ae+" exists, but the property is not available.");return}if(A&&oe+1>=j.length){var be=A(z,te);ne=!!be,ne&&"get"in be&&!("originalValue"in be.get)?z=be.get:z=z[te]}else ne=he(z,te),z=z[te];ne&&!ee&&(F[Y]=z)}}return z}}}),Jh=Ne({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=jj(),n=Ww(),i=n([r("%String.prototype.indexOf%")]);t.exports=function(o,s){var a=r(o,!!s);return typeof a=="function"&&i(o,".prototype.")>-1?n([a]):a}}}),kj=Ne({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=Uw();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),zw=Ne({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=Jh(),n=kj()(),i=Kw(),o=Uh(),s;n?(a=r("RegExp.prototype.exec"),l={},u=function(){throw l},d={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(d[Symbol.toPrimitive]=u),s=function(h){if(!h||typeof h!="object")return!1;var y=o(h,"lastIndex"),g=y&&i(y,"value");if(!g)return!1;try{a(h,d)}catch(v){return v===l}}):(p=r("Object.prototype.toString"),f="[object RegExp]",s=function(h){return!h||typeof h!="object"&&typeof h!="function"?!1:p(h)===f});var a,l,u,d,p,f;t.exports=s}}),Dj=Ne({"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(i){if(!i)return!1;var o=r.call(i);return o==="[object Function]"||typeof i=="function"&&o!=="[object RegExp]"||typeof window<"u"&&(i===window.setTimeout||i===window.alert||i===window.confirm||i===window.prompt)}}}),Lj=Ne({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=Jh(),n=zw(),i=r("RegExp.prototype.exec"),o=$h();t.exports=function(s){if(!n(s))throw new o("`regex` must be a RegExp");return function(a){return i(s,a)!==null}}}}),Fj=Ne({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=Jh(),n=r("Object.prototype.toString"),i=Vw()(),o=Lj();i?(s=r("Symbol.prototype.toString"),a=o(/^Symbol\(.*\)$/),l=function(u){return typeof u.valueOf()!="symbol"?!1:a(s(u))},t.exports=function(u){if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||n(u)!=="[object Symbol]")return!1;try{return l(u)}catch{return!1}}):t.exports=function(u){return!1};var s,a,l}}),Bj=Bh(zw()),$j=Bh(Dj()),Uj=Bh(Fj());function Vj(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var Jj=typeof global=="object"&&global&&global.Object===Object&&global,Hj=Jj,Gj=typeof self=="object"&&self&&self.Object===Object&&self,Wj=Hj||Gj||Function("return this")(),Hh=Wj,Kj=Hh.Symbol,is=Kj,Yw=Object.prototype,zj=Yw.hasOwnProperty,Yj=Yw.toString,$s=is?is.toStringTag:void 0;function Xj(e){var t=zj.call(e,$s),r=e[$s];try{e[$s]=void 0;var n=!0}catch{}var i=Yj.call(e);return n&&(t?e[$s]=r:delete e[$s]),i}var Qj=Xj,Zj=Object.prototype,ek=Zj.toString;function tk(e){return ek.call(e)}var rk=tk,nk="[object Null]",ik="[object Undefined]",Ng=is?is.toStringTag:void 0;function ok(e){return e==null?e===void 0?ik:nk:Ng&&Ng in Object(e)?Qj(e):rk(e)}var Xw=ok;function sk(e){return e!=null&&typeof e=="object"}var ak=sk,lk="[object Symbol]";function uk(e){return typeof e=="symbol"||ak(e)&&Xw(e)==lk}var Gh=uk;function ck(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var dk=ck,pk=Array.isArray,Wh=pk,Ig=is?is.prototype:void 0,Mg=Ig?Ig.toString:void 0;function Qw(e){if(typeof e=="string")return e;if(Wh(e))return dk(e,Qw)+"";if(Gh(e))return Mg?Mg.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var fk=Qw;function hk(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Zw=hk,mk="[object AsyncFunction]",yk="[object Function]",gk="[object GeneratorFunction]",bk="[object Proxy]";function vk(e){if(!Zw(e))return!1;var t=Xw(e);return t==yk||t==gk||t==mk||t==bk}var Ek=vk,Tk=Hh["__core-js_shared__"],Jd=Tk,qg=function(){var e=/[^.]+$/.exec(Jd&&Jd.keys&&Jd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function wk(e){return!!qg&&qg in e}var _k=wk,Sk=Function.prototype,Rk=Sk.toString;function Ok(e){if(e!=null){try{return Rk.call(e)}catch{}try{return e+""}catch{}}return""}var Ak=Ok,Pk=/[\\^$.*+?()[\]{}|]/g,Ck=/^\[object .+?Constructor\]$/,xk=Function.prototype,Nk=Object.prototype,Ik=xk.toString,Mk=Nk.hasOwnProperty,qk=RegExp("^"+Ik.call(Mk).replace(Pk,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function jk(e){if(!Zw(e)||_k(e))return!1;var t=Ek(e)?qk:Ck;return t.test(Ak(e))}var kk=jk;function Dk(e,t){return e==null?void 0:e[t]}var Lk=Dk;function Fk(e,t){var r=Lk(e,t);return kk(r)?r:void 0}var e_=Fk;function Bk(e,t){return e===t||e!==e&&t!==t}var $k=Bk,Uk=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Vk=/^\w*$/;function Jk(e,t){if(Wh(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Gh(e)?!0:Vk.test(e)||!Uk.test(e)||t!=null&&e in Object(t)}var Hk=Jk,Gk=e_(Object,"create"),Ca=Gk;function Wk(){this.__data__=Ca?Ca(null):{},this.size=0}var Kk=Wk;function zk(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Yk=zk,Xk="__lodash_hash_undefined__",Qk=Object.prototype,Zk=Qk.hasOwnProperty;function eD(e){var t=this.__data__;if(Ca){var r=t[e];return r===Xk?void 0:r}return Zk.call(t,e)?t[e]:void 0}var tD=eD,rD=Object.prototype,nD=rD.hasOwnProperty;function iD(e){var t=this.__data__;return Ca?t[e]!==void 0:nD.call(t,e)}var oD=iD,sD="__lodash_hash_undefined__";function aD(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ca&&t===void 0?sD:t,this}var lD=aD;function Os(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])}}Os.prototype.clear=Kk;Os.prototype.delete=Yk;Os.prototype.get=tD;Os.prototype.has=oD;Os.prototype.set=lD;var jg=Os;function uD(){this.__data__=[],this.size=0}var cD=uD;function dD(e,t){for(var r=e.length;r--;)if($k(e[r][0],t))return r;return-1}var Mc=dD,pD=Array.prototype,fD=pD.splice;function hD(e){var t=this.__data__,r=Mc(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():fD.call(t,r,1),--this.size,!0}var mD=hD;function yD(e){var t=this.__data__,r=Mc(t,e);return r<0?void 0:t[r][1]}var gD=yD;function bD(e){return Mc(this.__data__,e)>-1}var vD=bD;function ED(e,t){var r=this.__data__,n=Mc(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var TD=ED;function As(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])}}As.prototype.clear=cD;As.prototype.delete=mD;As.prototype.get=gD;As.prototype.has=vD;As.prototype.set=TD;var wD=As,_D=e_(Hh,"Map"),SD=_D;function RD(){this.size=0,this.__data__={hash:new jg,map:new(SD||wD),string:new jg}}var OD=RD;function AD(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var PD=AD;function CD(e,t){var r=e.__data__;return PD(t)?r[typeof t=="string"?"string":"hash"]:r.map}var qc=CD;function xD(e){var t=qc(this,e).delete(e);return this.size-=t?1:0,t}var ND=xD;function ID(e){return qc(this,e).get(e)}var MD=ID;function qD(e){return qc(this,e).has(e)}var jD=qD;function kD(e,t){var r=qc(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var DD=kD;function Ps(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])}}Ps.prototype.clear=OD;Ps.prototype.delete=ND;Ps.prototype.get=MD;Ps.prototype.has=jD;Ps.prototype.set=DD;var t_=Ps,LD="Expected a function";function Kh(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(LD);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(Kh.Cache||t_),r}Kh.Cache=t_;var FD=Kh,BD=500;function $D(e){var t=FD(e,function(n){return r.size===BD&&r.clear(),n}),r=t.cache;return t}var UD=$D,VD=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,JD=/\\(\\)?/g,HD=UD(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(VD,function(r,n,i,o){t.push(i?o.replace(JD,"$1"):n||r)}),t}),GD=HD;function WD(e){return e==null?"":fk(e)}var KD=WD;function zD(e,t){return Wh(e)?e:Hk(e,t)?[e]:GD(KD(e))}var YD=zD;function XD(e){if(typeof e=="string"||Gh(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var QD=XD;function ZD(e,t){t=YD(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[QD(t[r++])];return r&&r==n?e:void 0}var eL=ZD;function tL(e,t,r){var n=e==null?void 0:eL(e,t);return n===void 0?r:n}var rL=tL,zh=Vj,nL=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Yh=e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/);function r_(e){if(!zh(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=fj(t),r=!0),t=Object.keys(t).reduce((n,i)=>{try{t[i]&&t[i].toJSON,n[i]=t[i]}catch{r=!0}return n},{}),r?t:e}var iL=function(e){let t,r,n,i;return function(o,s){var a;try{if(o==="")return i=[],t=new Map([[s,"[]"]]),r=new Map,n=[],s;let l=r.get(this)||this;for(;n.length&&l!==n[0];)n.shift(),i.pop();if(typeof s=="boolean")return s;if(s===void 0)return e.allowUndefined?"_undefined_":void 0;if(s===null)return null;if(typeof s=="number")return s===Number.NEGATIVE_INFINITY?"_-Infinity_":s===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(s)?"_NaN_":s;if(typeof s=="bigint")return`_bigint_${s.toString()}`;if(typeof s=="string")return nL.test(s)?e.allowDate?`_date_${s}`:void 0:s;if((0,Bj.default)(s))return e.allowRegExp?`_regexp_${s.flags}|${s.source}`:void 0;if((0,$j.default)(s))return;if((0,Uj.default)(s)){if(!e.allowSymbol)return;let d=Symbol.keyFor(s);return d!==void 0?`_gsymbol_${d}`:`_symbol_${s.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(s)?`[Array(${s.length})]`:"[Object]";if(s===this)return`_duplicate_${JSON.stringify(i)}`;if(s instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...s.cause?{cause:s.cause}:{},...s,name:s.name,message:s.message,stack:s.stack,"_constructor-name_":s.constructor.name}};if((a=s==null?void 0:s.constructor)!=null&&a.name&&s.constructor.name!=="Object"&&!Array.isArray(s)){let d=t.get(s);if(!d){let p={__isClassInstance__:!0,__className__:s.constructor.name,...Object.getOwnPropertyNames(s).reduce((f,h)=>{try{f[h]=s[h]}catch{}return f},{})};return i.push(o),n.unshift(p),t.set(s,JSON.stringify(i)),s!==p&&r.set(s,p),p}return`_duplicate_${d}`}let u=t.get(s);if(!u){let d=Array.isArray(s)?s:r_(s);return i.push(o),n.unshift(d),t.set(s,JSON.stringify(i)),s!==d&&r.set(s,d),d}return`_duplicate_${u}`}catch{return}}},oL=function(e){let t=[],r;return function(n,i){if(n===""&&(r=i,t.forEach(({target:o,container:s,replacement:a})=>{let l=Yh(a)?JSON.parse(a):a.split(".");l.length===0?s[o]=r:s[o]=rL(r,l)})),n==="_constructor-name_")return i;if(zh(i)&&i.__isConvertedError__){let{message:o,...s}=i.errorProperties,a=new Error(o);return Object.assign(a,s),a}if(typeof i=="string"&&i.startsWith("_regexp_")&&e.allowRegExp){let[,o,s]=i.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(s,o)}return typeof i=="string"&&i.startsWith("_date_")&&e.allowDate?new Date(i.replace("_date_","")):typeof i=="string"&&i.startsWith("_duplicate_")?(t.push({target:n,container:this,replacement:i.replace(/^_duplicate_/,"")}),null):typeof i=="string"&&i.startsWith("_symbol_")&&e.allowSymbol?Symbol(i.replace("_symbol_","")):typeof i=="string"&&i.startsWith("_gsymbol_")&&e.allowSymbol?Symbol.for(i.replace("_gsymbol_","")):typeof i=="string"&&i==="_-Infinity_"?Number.NEGATIVE_INFINITY:typeof i=="string"&&i==="_Infinity_"?Number.POSITIVE_INFINITY:typeof i=="string"&&i==="_NaN_"?Number.NaN:typeof i=="string"&&i.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(i.replace("_bigint_","")):i}},n_={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},i_=(e,t={})=>{let r={...n_,...t};return JSON.stringify(r_(e),iL(r),t.space)},sL=()=>{let e=new Map;return function t(r){zh(r)&&Object.entries(r).forEach(([n,i])=>{i==="_undefined_"?r[n]=void 0:e.get(i)||(e.set(i,!0),t(i))}),Array.isArray(r)&&r.forEach((n,i)=>{n==="_undefined_"?(e.set(n,!0),r[i]=void 0):e.get(n)||(e.set(n,!0),t(n))})}},o_=(e,t={})=>{let r={...n_,...t},n=JSON.parse(e,oL(r));return sL()(n),n},aL="Invariant failed";function $n(e,t){if(!e)throw new Error(aL)}var lL=(e,t)=>{if(e.length===1)return e[0];if(!(e.length===0||!t))return e.find(r=>(r.getAttribute("src")??"").includes(`refId=${encodeURIComponent(t)}`))},uL=(e,t)=>{var i;let r=Array.from(document.querySelectorAll("iframe[data-is-storybook]")).filter(o=>{var l,u;try{return((l=o.contentWindow)==null?void 0:l.location.origin)===e.source.location.origin&&((u=o.contentWindow)==null?void 0:u.location.pathname)===e.source.location.pathname}catch{}try{return o.contentWindow===e.source}catch{}let s=o.getAttribute("src"),a;try{if(!s)return!1;({origin:a}=new URL(s,document.location.toString()))}catch{return!1}return a===e.origin}),n=(i=lL(r,t))==null?void 0:i.getAttribute("src");if(n){let{protocol:o,host:s,pathname:a}=new URL(n,document.location.toString());return`${o}//${s}${a}`}return r.length>1&&at.error("found multiple candidates for event source"),null},{document:Hd,location:Us}=fe,kg="storybook-channel",cL={maxDepth:25},s_=class{constructor(e){if(this.config=e,this.connected=!1,this.buffer=[],typeof(fe==null?void 0:fe.addEventListener)=="function"&&fe.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:i,allowDate:o,allowError:s,allowUndefined:a,maxDepth:l,space:u}=t||{},d=Object.fromEntries(Object.entries({allowRegExp:n,allowSymbol:i,allowDate:o,allowError:s,allowUndefined:a,maxDepth:l,space:u}).filter(([g,v])=>typeof v<"u")),p={...cL,...fe.CHANNEL_OPTIONS||{},...d},f=this.getFrames(r),h=new URLSearchParams((Us==null?void 0:Us.search)||""),y=i_({key:kg,event:e,refId:h.get("refId")},p);return f.length?(this.buffer.length&&this.flush(),f.forEach(g=>{try{g.postMessage(y,"*")}catch{at.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(Hd.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!=null&&t.length?t:this.getCurrentFrames()}return fe&&fe.parent&&fe.parent!==fe.self?[fe.parent]:[]}getCurrentFrames(){return this.config.page==="manager"?Array.from(Hd.querySelectorAll('[data-is-storybook="true"]')).flatMap(e=>e.contentWindow?[e.contentWindow]:[]):fe&&fe.parent?[fe.parent]:[]}getLocalFrame(){return this.config.page==="manager"?Array.from(Hd.querySelectorAll("#storybook-preview-iframe")).flatMap(e=>e.contentWindow?[e.contentWindow]:[]):fe&&fe.parent?[fe.parent]:[]}handleEvent(e){try{let{data:t}=e,{key:r,event:n,refId:i}=typeof t=="string"&&Yh(t)?o_(t,fe.CHANNEL_OPTIONS||{}):t;if(r===kg){let o=this.config.page==="manager"?'<span style="color: #37D5D3; background: black"> manager </span>':'<span style="color: #1EA7FD; background: black"> preview </span>',s=Object.values(Nh).includes(n.type)?`<span style="color: #FF4785">${n.type}</span>`:`<span style="color: #FFAE00">${n.type}</span>`;if(i&&(n.refId=i),n.source=this.config.page==="preview"?e.origin:uL(e,i),!n.source){Or.error(`${o} received ${s} but was unable to determine the source of the event`);return}let a=`${o} received ${s} (${t.length})`;Or.debug(Us.origin!==n.source?a:`${a} <span style="color: gray">(on ${Us.origin} from ${n.source})</span>`,...n.args),$n(this.handler,"ChannelHandler should be set"),this.handler(n)}}catch(t){at.error(t)}}},{WebSocket:dL}=fe,a_=15e3,l_=5e3,u_=class{constructor({url:e,onError:t,page:r}){this.buffer=[],this.isReady=!1,this.isClosed=!1,this.pingTimeout=0,this.socket=new dL(e),this.socket.onopen=()=>{this.isReady=!0,this.heartbeat(),this.flush()},this.socket.onmessage=({data:n})=>{let i=typeof n=="string"&&Yh(n)?o_(n):n;$n(this.handler),this.handler(i),i.type==="ping"&&(this.heartbeat(),this.send({type:"pong"}))},this.socket.onerror=n=>{t&&t(n)},this.socket.onclose=n=>{$n(this.handler),this.handler({type:fw,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")},a_+l_)}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=i_(e,{maxDepth:15,...fe.CHANNEL_OPTIONS});this.socket.send(t)}flush(){let{buffer:e}=this;this.buffer=[],e.forEach(t=>this.send(t))}},{CHANNEL_OPTIONS:pL,CONFIG_TYPE:fL}=fe,hL=Nc;function mL({page:e,extraTransports:t=[]}){let r=[new s_({page:e}),...t];if(fL==="DEVELOPMENT"){let i=window.location.protocol==="http:"?"ws":"wss",{hostname:o,port:s}=window.location,{wsToken:a}=pL||{},l=`${i}://${o}:${s}/storybook-server-channel?token=${a}`;r.push(new u_({url:l,onError:()=>{},page:e}))}let n=new Nc({transports:r});return Vd.__prepare(n,e==="manager"?Vd.Environment.MANAGER:Vd.Environment.PREVIEW),n}var c_={};br(c_,{CalledExtractOnStoreError:()=>m_,CalledPreviewMethodBeforeInitializationError:()=>Tr,Category:()=>p_,ElementA11yParameterError:()=>TL,EmptyIndexError:()=>v_,ImplicitActionsDuringRendering:()=>h_,MdxFileWithNoCsfReferencesError:()=>b_,MissingRenderToCanvasError:()=>y_,MissingStoryAfterHmrError:()=>f_,MissingStoryFromCsfFileError:()=>T_,MountMustBeDestructuredError:()=>Xh,NextJsSharpError:()=>gL,NextjsRouterMocksNotAvailable:()=>bL,NoRenderFunctionError:()=>__,NoStoryMatchError:()=>E_,NoStoryMountedError:()=>S_,StatusTypeIdMismatchError:()=>yL,StoryIndexFetchError:()=>g_,StoryStoreAccessedBeforeInitializationError:()=>w_,UnknownArgTypesError:()=>vL,UnsupportedViewportDimensionError:()=>EL});function Dg({code:e,category:t}){let r=String(e).padStart(4,"0");return`SB_${t}_${r}`}function Lg(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 Rt=class d_ extends Error{constructor(t){super(d_.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 Dg({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:i}){let o;return t===!0?o=`https://storybook.js.org/error/${Dg({code:r,category:n})}?ref=error`:typeof t=="string"?o=Lg(t):Array.isArray(t)&&(o=`
|
|
34
|
-
${t.map(s=>` - ${Lg(s)}`).join(`
|
|
35
|
-
`)}`),`${i}${o!=null?`
|
|
36
|
-
|
|
37
|
-
More info: ${o}
|
|
38
|
-
`:""}`}},p_=(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))(p_||{}),f_=class extends Rt{constructor(e){super({name:"MissingStoryAfterHmrError",category:"PREVIEW_API",code:1,message:De`
|
|
39
|
-
Couldn't find story matching id '${e.storyId}' after HMR.
|
|
40
|
-
- Did you just rename a story?
|
|
41
|
-
- Did you remove it from your CSF file?
|
|
42
|
-
- Are you sure a story with the id '${e.storyId}' exists?
|
|
43
|
-
- Please check the values in the stories field of your main.js config and see if they would match your CSF File.
|
|
44
|
-
- Also check the browser console and terminal for potential error messages.`}),this.data=e}},h_=class extends Rt{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:De`
|
|
45
|
-
We detected that you use an implicit action arg while ${e.phase} of your story.
|
|
46
|
-
${e.deprecated?`
|
|
47
|
-
This is deprecated and won't work in Storybook 8 anymore.
|
|
48
|
-
`:""}
|
|
49
|
-
Please provide an explicit spy to your args like this:
|
|
50
|
-
import { fn } from 'storybook/test';
|
|
51
|
-
...
|
|
52
|
-
args: {
|
|
53
|
-
${e.name}: fn()
|
|
54
|
-
}`}),this.data=e}},m_=class extends Rt{constructor(){super({name:"CalledExtractOnStoreError",category:"PREVIEW_API",code:3,message:De`
|
|
55
|
-
Cannot call \`storyStore.extract()\` without calling \`storyStore.cacheAllCsfFiles()\` first.
|
|
56
|
-
|
|
57
|
-
You probably meant to call \`await preview.extract()\` which does the above for you.`})}},y_=class extends Rt{constructor(){super({name:"MissingRenderToCanvasError",category:"PREVIEW_API",code:4,message:De`
|
|
58
|
-
Expected your framework's preset to export a \`renderToCanvas\` field.
|
|
59
|
-
|
|
60
|
-
Perhaps it needs to be upgraded for Storybook 7.0?`,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field"})}},Tr=class extends Rt{constructor(e){super({name:"CalledPreviewMethodBeforeInitializationError",category:"PREVIEW_API",code:5,message:De`
|
|
61
|
-
Called \`Preview.${e.methodName}()\` before initialization.
|
|
62
|
-
|
|
63
|
-
The preview needs to load the story index before most methods can be called. If you want
|
|
64
|
-
to call \`${e.methodName}\`, try \`await preview.initializationPromise;\` first.
|
|
65
|
-
|
|
66
|
-
If you didn't call the above code, then likely it was called by an addon that needs to
|
|
67
|
-
do the above.`}),this.data=e}},g_=class extends Rt{constructor(e){super({name:"StoryIndexFetchError",category:"PREVIEW_API",code:6,message:De`
|
|
68
|
-
Error fetching \`/index.json\`:
|
|
69
|
-
|
|
70
|
-
${e.text}
|
|
71
|
-
|
|
72
|
-
If you are in development, this likely indicates a problem with your Storybook process,
|
|
73
|
-
check the terminal for errors.
|
|
74
|
-
|
|
75
|
-
If you are in a deployed Storybook, there may have been an issue deploying the full Storybook
|
|
76
|
-
build.`}),this.data=e}},b_=class extends Rt{constructor(e){super({name:"MdxFileWithNoCsfReferencesError",category:"PREVIEW_API",code:7,message:De`
|
|
77
|
-
Tried to render docs entry ${e.storyId} but it is a MDX file that has no CSF
|
|
78
|
-
references, or autodocs for a CSF file that some doesn't refer to itself.
|
|
79
|
-
|
|
80
|
-
This likely is an internal error in Storybook's indexing, or you've attached the
|
|
81
|
-
\`attached-mdx\` tag to an MDX file that is not attached.`}),this.data=e}},v_=class extends Rt{constructor(){super({name:"EmptyIndexError",category:"PREVIEW_API",code:8,message:De`
|
|
82
|
-
Couldn't find any stories in your Storybook.
|
|
83
|
-
|
|
84
|
-
- Please check your stories field of your main.js config: does it match correctly?
|
|
85
|
-
- Also check the browser console and terminal for error messages.`})}},E_=class extends Rt{constructor(e){super({name:"NoStoryMatchError",category:"PREVIEW_API",code:9,message:De`
|
|
86
|
-
Couldn't find story matching '${e.storySpecifier}'.
|
|
87
|
-
|
|
88
|
-
- Are you sure a story with that id exists?
|
|
89
|
-
- Please check your stories field of your main.js config.
|
|
90
|
-
- Also check the browser console and terminal for error messages.`}),this.data=e}},T_=class extends Rt{constructor(e){super({name:"MissingStoryFromCsfFileError",category:"PREVIEW_API",code:10,message:De`
|
|
91
|
-
Couldn't find story matching id '${e.storyId}' after importing a CSF file.
|
|
92
|
-
|
|
93
|
-
The file was indexed as if the story was there, but then after importing the file in the browser
|
|
94
|
-
we didn't find the story. Possible reasons:
|
|
95
|
-
- You are using a custom story indexer that is misbehaving.
|
|
96
|
-
- You have a custom file loader that is removing or renaming exports.
|
|
97
|
-
|
|
98
|
-
Please check your browser console and terminal for errors that may explain the issue.`}),this.data=e}},w_=class extends Rt{constructor(){super({name:"StoryStoreAccessedBeforeInitializationError",category:"PREVIEW_API",code:11,message:De`
|
|
99
|
-
Cannot access the Story Store until the index is ready.
|
|
100
|
-
|
|
101
|
-
It is not recommended to use methods directly on the Story Store anyway, in Storybook 9 we will
|
|
102
|
-
remove access to the store entirely`})}},Xh=class extends Rt{constructor(e){super({name:"MountMustBeDestructuredError",category:"PREVIEW_API",code:12,message:De`
|
|
103
|
-
Incorrect use of mount in the play function.
|
|
104
|
-
|
|
105
|
-
To use mount in the play function, you must satisfy the following two requirements:
|
|
106
|
-
|
|
107
|
-
1. You *must* destructure the mount property from the \`context\` (the argument passed to your play function).
|
|
108
|
-
This makes sure that Storybook does not start rendering the story before the play function begins.
|
|
109
|
-
|
|
110
|
-
2. Your Storybook framework or builder must be configured to transpile to ES2017 or newer.
|
|
111
|
-
This is because destructuring statements and async/await usages are otherwise transpiled away,
|
|
112
|
-
which prevents Storybook from recognizing your usage of \`mount\`.
|
|
113
|
-
|
|
114
|
-
Note that Angular is not supported. As async/await is transpiled to support the zone.js polyfill.
|
|
115
|
-
|
|
116
|
-
More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#run-code-before-the-component-gets-rendered
|
|
117
|
-
|
|
118
|
-
Received the following play function:
|
|
119
|
-
${e.playFunction}`}),this.data=e}},__=class extends Rt{constructor(e){super({name:"NoRenderFunctionError",category:"PREVIEW_API",code:14,message:De`
|
|
120
|
-
No render function available for storyId '${e.id}'
|
|
121
|
-
`}),this.data=e}},S_=class extends Rt{constructor(){super({name:"NoStoryMountedError",category:"PREVIEW_API",code:15,message:De`
|
|
122
|
-
No component is mounted in your story.
|
|
123
|
-
|
|
124
|
-
This usually occurs when you destructure mount in the play function, but forget to call it.
|
|
125
|
-
|
|
126
|
-
For example:
|
|
127
|
-
|
|
128
|
-
async play({ mount, canvasElement }) {
|
|
129
|
-
// 👈 mount should be called: await mount();
|
|
130
|
-
const canvas = within(canvasElement);
|
|
131
|
-
const button = await canvas.findByRole('button');
|
|
132
|
-
await userEvent.click(button);
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
Make sure to either remove it or call mount in your play function.
|
|
136
|
-
`})}},yL=class extends Rt{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}},gL=class extends Rt{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:De`
|
|
137
|
-
You are importing avif images, but you don't have sharp installed.
|
|
138
|
-
|
|
139
|
-
You have to install sharp in order to use image optimization features in Next.js.
|
|
140
|
-
`})}},bL=class extends Rt{constructor(e){super({name:"NextjsRouterMocksNotAvailable",category:"FRAMEWORK_NEXTJS",code:2,message:De`
|
|
141
|
-
Tried to access router mocks from "${e.importType}" but they were not created yet. You might be running code in an unsupported environment.
|
|
142
|
-
`}),this.data=e}},vL=class extends Rt{constructor(t){super({name:"UnknownArgTypesError",category:"DOCS-TOOLS",code:1,documentation:"https://github.com/storybookjs/storybook/issues/26606",message:De`
|
|
143
|
-
There was a failure when generating detailed ArgTypes in ${t.language} for:
|
|
144
|
-
${JSON.stringify(t.type,null,2)}
|
|
145
|
-
|
|
146
|
-
Storybook will fall back to use a generic type description instead.
|
|
147
|
-
|
|
148
|
-
This type is either not supported or it is a bug in the docgen generation in Storybook.
|
|
149
|
-
If you think this is a bug, please detail it as much as possible in the Github issue.
|
|
150
|
-
`}),this.data=t}},EL=class extends Rt{constructor(e){super({name:"UnsupportedViewportDimensionError",category:"ADDON_VITEST",code:1,message:De`
|
|
151
|
-
Encountered an unsupported value "${e.value}" when setting the viewport ${e.dimension} dimension.
|
|
152
|
-
|
|
153
|
-
The Storybook plugin only supports values in the following units:
|
|
154
|
-
- px, vh, vw, em, rem and %.
|
|
155
|
-
|
|
156
|
-
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
|
|
157
|
-
`}),this.data=e}},TL=class extends Rt{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.'})}},R_={};br(R_,{Addon_TypesEnum:()=>O_,CoreWebpackCompiler:()=>C_,Feature:()=>N_,SupportedBuilder:()=>x_,SupportedFramework:()=>A_,SupportedLanguage:()=>I_,SupportedRenderer:()=>P_});var O_=(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))(O_||{}),A_=(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))(A_||{}),P_=(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))(P_||{}),C_=(e=>(e.Babel="babel",e.SWC="swc",e))(C_||{}),x_=(e=>(e.WEBPACK5="webpack5",e.VITE="vite",e.RSBUILD="rsbuild",e))(x_||{}),N_=(e=>(e.DOCS="docs",e.TEST="test",e.ONBOARDING="onboarding",e.A11Y="a11y",e))(N_||{}),I_=(e=>(e.JAVASCRIPT="javascript",e.TYPESCRIPT="typescript",e))(I_||{}),M_={};br(M_,{ADDON_ID:()=>jc,CLEAR_ID:()=>SL,CYCLIC_KEY:()=>RL,EVENT_ID:()=>q_,PANEL_ID:()=>_L,PARAM_KEY:()=>wL,action:()=>Rl,actions:()=>i8,config:()=>Ka,configureActions:()=>t8});var wL="actions",jc="storybook/actions",_L=`${jc}/panel`,q_=`${jc}/action-event`,SL=`${jc}/action-clear`,RL="$___storybook.isCyclic",Wp={};br(Wp,{DocsContext:()=>Ay,HooksContext:()=>Qh,Preview:()=>EP,PreviewWeb:()=>H5,PreviewWithSelection:()=>TP,ReporterAPI:()=>Oy,StoryStore:()=>bP,Tag:()=>dn,UrlStore:()=>OP,WebView:()=>PP,addons:()=>hr,applyHooks:()=>k_,combineArgs:()=>ec,combineParameters:()=>bo,composeConfigs:()=>gs,composeStepRunners:()=>fP,composeStories:()=>v5,composeStory:()=>gP,createPlaywrightTest:()=>E5,decorateStory:()=>oP,defaultDecorateStory:()=>aP,emitTransformCode:()=>e8,filterArgTypes:()=>pP,getCsfFactoryAnnotations:()=>yP,inferControls:()=>_y,makeDecorator:()=>FL,mockChannel:()=>j_,normalizeArrays:()=>nt,normalizeProjectAnnotations:()=>rc,normalizeStory:()=>ya,pauseAnimations:()=>Sy,prepareMeta:()=>lP,prepareStory:()=>wy,sanitizeStoryContextUpdate:()=>sP,setDefaultProjectAnnotations:()=>f5,setProjectAnnotations:()=>g5,simulateDOMContentLoaded:()=>Qf,simulatePageLoad:()=>z5,sortStoriesV7:()=>P5,useArgs:()=>DL,useCallback:()=>xa,useChannel:()=>jL,useEffect:()=>fo,useGlobals:()=>LL,useMemo:()=>L_,useParameter:()=>kL,useReducer:()=>qL,useRef:()=>NL,useState:()=>ML,useStoryContext:()=>Dc,userOrAutoTitle:()=>R5,userOrAutoTitleFromSpecifier:()=>vP,waitForAnimations:()=>Ry});function j_(){let e={setHandler:()=>{},send:()=>{}};return new Nc({transport:e})}var OL=class{constructor(){this.getChannel=()=>{if(!this.channel){let e=j_();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())})}},Gd="__STORYBOOK_ADDONS_PREVIEW";function AL(){return fe[Gd]||(fe[Gd]=new OL),fe[Gd]}var hr=AL(),Qh=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=>{var t;e===((t=this.currentContext)==null?void 0:t.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(),hr.getChannel().on(Iu,this.renderListener)}removeRenderListeners(){hr.getChannel().removeListener(Iu,this.renderListener)}};function Fg(e){let t=(...r)=>{let{hooks:n}=typeof r[0]=="function"?r[1]:r[0],i=n.currentPhase,o=n.currentHooks,s=n.nextHookIndex,a=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 l=fe.STORYBOOK_HOOKS_CONTEXT;fe.STORYBOOK_HOOKS_CONTEXT=n;let u=e(...r);if(fe.STORYBOOK_HOOKS_CONTEXT=l,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=i,n.currentHooks=o,n.nextHookIndex=s,n.currentDecoratorName=a,u};return t.originalFn=e,t}var Wd=0,PL=25,k_=e=>(t,r)=>{let n=e(Fg(t),r.map(i=>Fg(i)));return i=>{let{hooks:o}=i;o.prevMountedDecorators??(o.prevMountedDecorators=new Set),o.mountedDecorators=new Set([t,...r]),o.currentContext=i,o.hasUpdates=!1;let s=n(i);for(Wd=1;o.hasUpdates;)if(o.hasUpdates=!1,o.currentEffects=[],s=n(i),Wd+=1,Wd>PL)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return o.addRenderListeners(),s}},CL=(e,t)=>e.length===t.length&&e.every((r,n)=>r===t[n]),Zh=()=>new Error(`Storybook preview hooks can only be called inside decorators and story functions.
|
|
158
|
-
|
|
159
|
-
When combining Storybook hooks (e.g. useArgs) with framework hooks (e.g. React's useState, useEffect, useRef) in the same render function, use Storybook's equivalents from 'storybook/preview-api' instead: useState, useEffect, useRef, useMemo, useCallback, useReducer.`);function D_(){return fe.STORYBOOK_HOOKS_CONTEXT||null}function em(){let e=D_();if(e==null)throw Zh();return e}function xL(e,t,r){let n=em();if(n.currentPhase==="MOUNT"){r!=null&&!Array.isArray(r)&&at.warn(`${e} received a final argument that is not an array (instead, received ${r}). When specified, the final argument must be an array.`);let i={name:e,deps:r};return n.currentHooks.push(i),t(i),i}if(n.currentPhase==="UPDATE"){let i=n.getNextHook();if(i==null)throw new Error("Rendered more hooks than during the previous render.");return i.name!==e&&at.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&&i.deps==null&&at.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&&i.deps!=null&&r.length!==i.deps.length&&at.warn(`The final argument passed to ${e} changed size between renders. The order and size of this array must remain constant.
|
|
160
|
-
Previous: ${i.deps}
|
|
161
|
-
Incoming: ${r}`),(r==null||i.deps==null||!CL(r,i.deps))&&(t(i),i.deps=r),i}throw Zh()}function kc(e,t,r){let{memoizedState:n}=xL(e,i=>{i.memoizedState=t()},r);return n}function L_(e,t){return kc("useMemo",e,t)}function xa(e,t){return kc("useCallback",()=>e,t)}function F_(e,t){return kc(e,()=>({current:t}),[])}function NL(e){return F_("useRef",e)}function IL(){let e=D_();if(e!=null&&e.currentPhase!=="NONE")e.hasUpdates=!0;else try{hr.getChannel().emit(qh)}catch{at.warn("State updates of Storybook preview hooks work only in browser")}}function B_(e,t){let r=F_(e,typeof t=="function"?t():t),n=i=>{r.current=typeof i=="function"?i(r.current):i,IL()};return[r.current,n]}function ML(e){return B_("useState",e)}function qL(e,t,r){let n=r!=null?()=>r(t):t,[i,o]=B_("useReducer",n);return[i,s=>o(a=>e(a,s))]}function fo(e,t){let r=em(),n=kc("useEffect",()=>({create:e}),t);r.currentEffects.includes(n)||r.currentEffects.push(n)}function jL(e,t=[]){let r=hr.getChannel();return fo(()=>(Object.entries(e).forEach(([n,i])=>r.on(n,i)),()=>{Object.entries(e).forEach(([n,i])=>r.removeListener(n,i))}),[...Object.keys(e),...t]),xa(r.emit.bind(r),[r])}function Dc(){let{currentContext:e}=em();if(e==null)throw Zh();return e}function kL(e,t){let{parameters:r}=Dc();if(e)return r[e]??t}function DL(){let e=hr.getChannel(),{id:t,args:r}=Dc(),n=xa(o=>e.emit(Lh,{storyId:t,updatedArgs:o}),[e,t]),i=xa(o=>e.emit(jh,{storyId:t,argNames:o}),[e,t]);return[r,n,i]}function LL(){let e=hr.getChannel(),{globals:t}=Dc(),r=xa(n=>e.emit(Dh,{globals:n}),[e]);return[t,r]}var FL=({name:e,parameterName:t,wrapper:r,skipIfNoParametersOrOptions:n=!1})=>{let i=o=>(s,a)=>{let l=a.parameters&&a.parameters[t];return l&&l.disable||n&&!o&&!l?s(a):r(s,a,{options:o,parameters:l})};return(...o)=>typeof o[0]=="function"?i()(...o):(...s)=>{if(s.length>1)return o.length>1?i(o)(...s):i(...o)(...s);throw new Error(`Passing stories directly into ${e}() is not allowed,
|
|
162
|
-
instead use addDecorator(${e}) and pass options with the '${t}' parameter`)}};function BL(e){return e.replace(/_/g," ").replace(/-/g," ").replace(/\./g," ").replace(/([^\n])([A-Z])([a-z])/g,(t,r,n,i)=>`${r} ${n}${i}`).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 Bg=St(cI(),1),$_=e=>e.map(t=>typeof t<"u").filter(Boolean).length,$L=(e,t)=>{let{exists:r,eq:n,neq:i,truthy:o}=e;if($_([r,n,i,o])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:i})}`);if(typeof n<"u")return(0,Bg.isEqual)(t,n);if(typeof i<"u")return!(0,Bg.isEqual)(t,i);if(typeof r<"u"){let s=typeof t<"u";return r?s:!s}return typeof o>"u"||o?!!t:!t},UL=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:i}=e.if;if($_([n,i])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:i})}`);let o=n?t[n]:r[i];return $L(e.if,o)};function VL(e){return e!=null&&JL(e).includes("mount")}function JL(e){var a;let[,t,r]=e.toString().match(/[^(]*\(([^)]+)\)(?:.*{([^]+)})?/)||[];if(!t)return[];let[n]=Kd(t);if(!n)return[];let[,i]=n.match(/^{([^]+)}$/)||[];if(i)return Kd($g(i)).map(l=>l.replace(/:.*|=.*/g,"").trim());if(!n.match(/^[a-z_$][0-9a-z_$]*$/i))return[];let o=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),[,s]=((a=r==null?void 0:r.trim())==null?void 0:a.match(new RegExp(`^(?:const|let|var)\\s*{([^}]+)}\\s*=\\s*${o};`)))||[];return s?Kd($g(s)).map(l=>l.replace(/:.*|=.*/g,"").trim()):[]}function $g(e){return e=e.replace(/\/\/.*$/gm,""),e=e.replace(/\/\*[\s\S]*?\*\//g,""),e}function Kd(e){let t=[],r=[],n=0;for(let o=0;o<e.length;o++)if(e[o]==="{"||e[o]==="[")r.push(e[o]==="{"?"}":"]");else if(e[o]===r[r.length-1])r.pop();else if(!r.length&&e[o]===","){let s=e.substring(n,o).trim();s&&t.push(s),n=o+1}let i=e.substring(n).trim();return i&&t.push(i),t}var dn={AUTODOCS:"autodocs",ATTACHED_MDX:"attached-mdx",UNATTACHED_MDX:"unattached-mdx",PLAY_FN:"play-fn",TEST_FN:"test-fn",DEV:"dev",TEST:"test",MANIFEST:"manifest"},U_={};br(U_,{argsEnhancers:()=>WL});var V_=(e,t)=>typeof t[e]>"u"&&!(e in t),HL=e=>{let{initialArgs:t,argTypes:r,id:n,parameters:{actions:i}}=e;if(!i||i.disable||!i.argTypesRegex||!r)return{};let o=new RegExp(i.argTypesRegex);return Object.entries(r).filter(([s])=>!!o.test(s)).reduce((s,[a,l])=>(V_(a,t)&&(s[a]=Rl(a,{implicit:!0,id:n})),s),{})},GL=e=>{let{initialArgs:t,argTypes:r,parameters:{actions:n}}=e;return n!=null&&n.disable||!r?{}:Object.entries(r).filter(([i,o])=>!!o.action).reduce((i,[o,s])=>(V_(o,t)&&(i[o]=Rl(typeof s.action=="string"?s.action:o)),i),{})},WL=[GL,HL],J_={};br(J_,{loaders:()=>rK});var H_={};br(H_,{buildQueries:()=>j2,clearAllMocks:()=>jR,configure:()=>k2,createEvent:()=>D2,expect:()=>Z6,findAllByAltText:()=>F2,findAllByDisplayValue:()=>B2,findAllByLabelText:()=>$2,findAllByPlaceholderText:()=>U2,findAllByRole:()=>V2,findAllByTestId:()=>J2,findAllByText:()=>H2,findAllByTitle:()=>G2,findByAltText:()=>W2,findByDisplayValue:()=>K2,findByLabelText:()=>z2,findByPlaceholderText:()=>Y2,findByRole:()=>X2,findByTestId:()=>Q2,findByText:()=>Z2,findByTitle:()=>e6,fireEvent:()=>L2,fn:()=>MR,getAllByAltText:()=>t6,getAllByDisplayValue:()=>r6,getAllByLabelText:()=>n6,getAllByPlaceholderText:()=>i6,getAllByRole:()=>o6,getAllByTestId:()=>s6,getAllByText:()=>a6,getAllByTitle:()=>l6,getByAltText:()=>u6,getByDisplayValue:()=>c6,getByLabelText:()=>d6,getByPlaceholderText:()=>p6,getByRole:()=>f6,getByTestId:()=>h6,getByText:()=>m6,getByTitle:()=>y6,getConfig:()=>g6,getDefaultNormalizer:()=>b6,getElementError:()=>v6,getNodeText:()=>E6,getQueriesForElement:()=>T6,getRoles:()=>w6,getSuggestedQuery:()=>_6,isInaccessible:()=>S6,isMockFunction:()=>Go,logDOM:()=>R6,logRoles:()=>O6,mocked:()=>lH,mocks:()=>El,onMockCall:()=>IR,prettyDOM:()=>A6,prettyFormat:()=>X6,queries:()=>P6,queryAllByAltText:()=>C6,queryAllByAttribute:()=>x6,queryAllByDisplayValue:()=>N6,queryAllByLabelText:()=>I6,queryAllByPlaceholderText:()=>M6,queryAllByRole:()=>q6,queryAllByTestId:()=>j6,queryAllByText:()=>k6,queryAllByTitle:()=>D6,queryByAltText:()=>L6,queryByAttribute:()=>F6,queryByDisplayValue:()=>B6,queryByLabelText:()=>$6,queryByPlaceholderText:()=>U6,queryByRole:()=>V6,queryByTestId:()=>J6,queryByText:()=>H6,queryByTitle:()=>G6,queryHelpers:()=>W6,resetAllMocks:()=>kR,restoreAllMocks:()=>DR,sb:()=>eK,screen:()=>K6,spyOn:()=>aH,uninstrumentedUserEvent:()=>zA,userEvent:()=>Q6,waitFor:()=>z6,waitForElementToBeRemoved:()=>Y6,within:()=>KA});var KL={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]},G_=Object.entries(KL);function Lc(e){return String(e)}Lc.open="";Lc.close="";G_.reduce((e,[t])=>(e[t]=Lc,e),{isColorSupported:!1});function zL(e=!1){let t=typeof process<"u"?process:void 0,r=(t==null?void 0:t.env)||{},n=(t==null?void 0:t.argv)||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||(t==null?void 0:t.platform)==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function YL(e=!1){let t=zL(e),r=(s,a,l,u)=>{let d="",p=0;do d+=s.substring(p,u)+l,p=u+a.length,u=s.indexOf(a,p);while(~u);return d+s.substring(p)},n=(s,a,l=s)=>{let u=d=>{let p=String(d),f=p.indexOf(a,s.length);return~f?s+r(p,a,l,f)+a:s+p+a};return u.open=s,u.close=a,u},i={isColorSupported:t},o=s=>`\x1B[${s}m`;for(let[s,a]of G_)i[s]=t?n(o(a[0]),o(a[1]),a[2]):Lc;return i}var In=YL();function W_(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 i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(e)}function XL(e,t){let r=Object.keys(e),n=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(let i of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,i).enumerable&&n.push(i);return n}function fl(e,t,r,n,i,o,s=": "){let a="",l=0,u=e.next();if(!u.done){a+=t.spacingOuter;let d=r+t.indent;for(;!u.done;){if(a+=d,l++===t.maxWidth){a+="…";break}let p=o(u.value[0],t,d,n,i),f=o(u.value[1],t,d,n,i);a+=p+s+f,u=e.next(),u.done?t.min||(a+=","):a+=`,${t.spacingInner}`}a+=t.spacingOuter+r}return a}function tm(e,t,r,n,i,o){let s="",a=0,l=e.next();if(!l.done){s+=t.spacingOuter;let u=r+t.indent;for(;!l.done;){if(s+=u,a++===t.maxWidth){s+="…";break}s+=o(l.value,t,u,n,i),l=e.next(),l.done?t.min||(s+=","):s+=`,${t.spacingInner}`}s+=t.spacingOuter+r}return s}function Mu(e,t,r,n,i,o){let s="";e=e instanceof ArrayBuffer?new DataView(e):e;let a=u=>u instanceof DataView,l=a(e)?e.byteLength:e.length;if(l>0){s+=t.spacingOuter;let u=r+t.indent;for(let d=0;d<l;d++){if(s+=u,d===t.maxWidth){s+="…";break}(a(e)||d in e)&&(s+=o(a(e)?e.getInt8(d):e[d],t,u,n,i)),d<l-1?s+=`,${t.spacingInner}`:t.min||(s+=",")}s+=t.spacingOuter+r}return s}function rm(e,t,r,n,i,o){let s="",a=XL(e,t.compareKeys);if(a.length>0){s+=t.spacingOuter;let l=r+t.indent;for(let u=0;u<a.length;u++){let d=a[u],p=o(d,t,l,n,i),f=o(e[d],t,l,n,i);s+=`${l+p}: ${f}`,u<a.length-1?s+=`,${t.spacingInner}`:t.min||(s+=",")}s+=t.spacingOuter+r}return s}var QL=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,zd=" ",ZL=(e,t,r,n,i,o)=>{let s=e.toString();if(s==="ArrayContaining"||s==="ArrayNotContaining")return++n>t.maxDepth?`[${s}]`:`${s+zd}[${Mu(e.sample,t,r,n,i,o)}]`;if(s==="ObjectContaining"||s==="ObjectNotContaining")return++n>t.maxDepth?`[${s}]`:`${s+zd}{${rm(e.sample,t,r,n,i,o)}}`;if(s==="StringMatching"||s==="StringNotMatching"||s==="StringContaining"||s==="StringNotContaining")return s+zd+o(e.sample,t,r,n,i);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},eF=e=>e&&e.$$typeof===QL,tF={serialize:ZL,test:eF},rF=" ",K_=new Set(["DOMStringMap","NamedNodeMap"]),nF=/^(?:HTML\w*Collection|NodeList)$/;function iF(e){return K_.has(e)||nF.test(e)}var oF=e=>e&&e.constructor&&!!e.constructor.name&&iF(e.constructor.name);function sF(e){return e.constructor.name==="NamedNodeMap"}var aF=(e,t,r,n,i,o)=>{let s=e.constructor.name;return++n>t.maxDepth?`[${s}]`:(t.min?"":s+rF)+(K_.has(s)?`{${rm(sF(e)?[...e].reduce((a,l)=>(a[l.name]=l.value,a),{}):{...e},t,r,n,i,o)}}`:`[${Mu([...e],t,r,n,i,o)}]`)},lF={serialize:aF,test:oF};function z_(e){return e.replaceAll("<","<").replaceAll(">",">")}function nm(e,t,r,n,i,o,s){let a=n+r.indent,l=r.colors;return e.map(u=>{let d=t[u],p=s(d,r,a,i,o);return typeof d!="string"&&(p.includes(`
|
|
163
|
-
`)&&(p=r.spacingOuter+a+p+r.spacingOuter+n),p=`{${p}}`),`${r.spacingInner+n+l.prop.open+u+l.prop.close}=${l.value.open}${p}${l.value.close}`}).join("")}function im(e,t,r,n,i,o){return e.map(s=>t.spacingOuter+r+(typeof s=="string"?Y_(s,t):o(s,t,r,n,i))).join("")}function Y_(e,t){let r=t.colors.content;return r.open+z_(e)+r.close}function uF(e,t){let r=t.colors.comment;return`${r.open}<!--${z_(e)}-->${r.close}`}function om(e,t,r,n,i){let o=n.colors.tag;return`${o.open}<${e}${t&&o.close+t+n.spacingOuter+i+o.open}${r?`>${o.close}${r}${n.spacingOuter}${i}${o.open}</${e}`:`${t&&!n.min?"":" "}/`}>${o.close}`}function sm(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`}var cF=1,X_=3,Q_=8,Z_=11,dF=/^(?:(?:HTML|SVG)\w*)?Element$/;function pF(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function fF(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,i=typeof n=="string"&&n.includes("-")||pF(e);return r===cF&&(dF.test(t)||i)||r===X_&&t==="Text"||r===Q_&&t==="Comment"||r===Z_&&t==="DocumentFragment"}var hF=e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&fF(e)};function mF(e){return e.nodeType===X_}function yF(e){return e.nodeType===Q_}function Yd(e){return e.nodeType===Z_}var gF=(e,t,r,n,i,o)=>{if(mF(e))return Y_(e.data,t);if(yF(e))return uF(e.data,t);let s=Yd(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?sm(s,t):om(s,nm(Yd(e)?[]:Array.from(e.attributes,a=>a.name).sort(),Yd(e)?{}:[...e.attributes].reduce((a,l)=>(a[l.name]=l.value,a),{}),t,r+t.indent,n,i,o),im(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,i,o),t,r)},bF={serialize:gF,test:hF},vF="@@__IMMUTABLE_ITERABLE__@@",EF="@@__IMMUTABLE_LIST__@@",TF="@@__IMMUTABLE_KEYED__@@",wF="@@__IMMUTABLE_MAP__@@",Ug="@@__IMMUTABLE_ORDERED__@@",_F="@@__IMMUTABLE_RECORD__@@",SF="@@__IMMUTABLE_SEQ__@@",RF="@@__IMMUTABLE_SET__@@",OF="@@__IMMUTABLE_STACK__@@",os=e=>`Immutable.${e}`,Fc=e=>`[${e}]`,Na=" ",Vg="…";function AF(e,t,r,n,i,o,s){return++n>t.maxDepth?Fc(os(s)):`${os(s)+Na}{${fl(e.entries(),t,r,n,i,o)}}`}function PF(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 CF(e,t,r,n,i,o){let s=os(e._name||"Record");return++n>t.maxDepth?Fc(s):`${s+Na}{${fl(PF(e),t,r,n,i,o)}}`}function xF(e,t,r,n,i,o){let s=os("Seq");return++n>t.maxDepth?Fc(s):e[TF]?`${s+Na}{${e._iter||e._object?fl(e.entries(),t,r,n,i,o):Vg}}`:`${s+Na}[${e._iter||e._array||e._collection||e._iterable?tm(e.values(),t,r,n,i,o):Vg}]`}function Xd(e,t,r,n,i,o,s){return++n>t.maxDepth?Fc(os(s)):`${os(s)+Na}[${tm(e.values(),t,r,n,i,o)}]`}var NF=(e,t,r,n,i,o)=>e[wF]?AF(e,t,r,n,i,o,e[Ug]?"OrderedMap":"Map"):e[EF]?Xd(e,t,r,n,i,o,"List"):e[RF]?Xd(e,t,r,n,i,o,e[Ug]?"OrderedSet":"Set"):e[OF]?Xd(e,t,r,n,i,o,"Stack"):e[SF]?xF(e,t,r,n,i,o):CF(e,t,r,n,i,o),IF=e=>e&&(e[vF]===!0||e[_F]===!0),MF={serialize:NF,test:IF};function eS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Jg={exports:{}},Xe={},Hg;function qF(){if(Hg)return Xe;Hg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function y(g){if(typeof g=="object"&&g!==null){var v=g.$$typeof;switch(v){case e:switch(g=g.type,g){case r:case i:case n:case l:case u:case f:return g;default:switch(g=g&&g.$$typeof,g){case s:case a:case p:case d:return g;case o:return g;default:return v}}case t:return v}}}return Xe.ContextConsumer=o,Xe.ContextProvider=s,Xe.Element=e,Xe.ForwardRef=a,Xe.Fragment=r,Xe.Lazy=p,Xe.Memo=d,Xe.Portal=t,Xe.Profiler=i,Xe.StrictMode=n,Xe.Suspense=l,Xe.SuspenseList=u,Xe.isContextConsumer=function(g){return y(g)===o},Xe.isContextProvider=function(g){return y(g)===s},Xe.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},Xe.isForwardRef=function(g){return y(g)===a},Xe.isFragment=function(g){return y(g)===r},Xe.isLazy=function(g){return y(g)===p},Xe.isMemo=function(g){return y(g)===d},Xe.isPortal=function(g){return y(g)===t},Xe.isProfiler=function(g){return y(g)===i},Xe.isStrictMode=function(g){return y(g)===n},Xe.isSuspense=function(g){return y(g)===l},Xe.isSuspenseList=function(g){return y(g)===u},Xe.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===i||g===n||g===l||g===u||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===d||g.$$typeof===s||g.$$typeof===o||g.$$typeof===a||g.$$typeof===h||g.getModuleId!==void 0)},Xe.typeOf=y,Xe}var Gg;function jF(){return Gg||(Gg=1,Jg.exports=qF()),Jg.exports}var tS=jF(),kF=eS(tS),DF=W_({__proto__:null,default:kF},[tS]),Wg={exports:{}},Ye={},Kg;function LF(){if(Kg)return Ye;Kg=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function g(v){if(typeof v=="object"&&v!==null){var b=v.$$typeof;switch(b){case e:switch(v=v.type,v){case r:case i:case n:case u:case d:return v;default:switch(v=v&&v.$$typeof,v){case a:case s:case l:case f:case p:case o:return v;default:return b}}case t:return b}}}return Ye.ContextConsumer=s,Ye.ContextProvider=o,Ye.Element=e,Ye.ForwardRef=l,Ye.Fragment=r,Ye.Lazy=f,Ye.Memo=p,Ye.Portal=t,Ye.Profiler=i,Ye.StrictMode=n,Ye.Suspense=u,Ye.SuspenseList=d,Ye.isAsyncMode=function(){return!1},Ye.isConcurrentMode=function(){return!1},Ye.isContextConsumer=function(v){return g(v)===s},Ye.isContextProvider=function(v){return g(v)===o},Ye.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},Ye.isForwardRef=function(v){return g(v)===l},Ye.isFragment=function(v){return g(v)===r},Ye.isLazy=function(v){return g(v)===f},Ye.isMemo=function(v){return g(v)===p},Ye.isPortal=function(v){return g(v)===t},Ye.isProfiler=function(v){return g(v)===i},Ye.isStrictMode=function(v){return g(v)===n},Ye.isSuspense=function(v){return g(v)===u},Ye.isSuspenseList=function(v){return g(v)===d},Ye.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===i||v===n||v===u||v===d||v===h||typeof v=="object"&&v!==null&&(v.$$typeof===f||v.$$typeof===p||v.$$typeof===o||v.$$typeof===s||v.$$typeof===l||v.$$typeof===y||v.getModuleId!==void 0)},Ye.typeOf=g,Ye}var zg;function FF(){return zg||(zg=1,Wg.exports=LF()),Wg.exports}var rS=FF(),BF=eS(rS),$F=W_({__proto__:null,default:BF},[rS]),UF=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],Ki=Object.fromEntries(UF.map(e=>[e,t=>$F[e](t)||DF[e](t)]));function nS(e,t=[]){if(Array.isArray(e))for(let r of e)nS(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function Yg(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(Ki.isFragment(e))return"React.Fragment";if(Ki.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(Ki.isContextProvider(e))return"Context.Provider";if(Ki.isContextConsumer(e))return"Context.Consumer";if(Ki.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(Ki.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}function VF(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}var JF=(e,t,r,n,i,o)=>++n>t.maxDepth?sm(Yg(e),t):om(Yg(e),nm(VF(e),e.props,t,r+t.indent,n,i,o),im(nS(e.props.children),t,r+t.indent,n,i,o),t,r),HF=e=>e!=null&&Ki.isElement(e),GF={serialize:JF,test:HF},WF=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function KF(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}var zF=(e,t,r,n,i,o)=>++n>t.maxDepth?sm(e.type,t):om(e.type,e.props?nm(KF(e),e.props,t,r+t.indent,n,i,o):"",e.children?im(e.children,t,r+t.indent,n,i,o):"",t,r),YF=e=>e&&e.$$typeof===WF,XF={serialize:zF,test:YF},iS=Object.prototype.toString,QF=Date.prototype.toISOString,ZF=Error.prototype.toString,Xg=RegExp.prototype.toString;function pu(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function eB(e){return typeof window<"u"&&e===window}var tB=/^Symbol\((.*)\)(.*)$/,rB=/\n/g,oS=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function nB(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 iB(e){return Object.is(e,-0)?"-0":String(e)}function oB(e){return`${e}n`}function Qg(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function Zg(e){return String(e).replace(tB,"Symbol($1)")}function eb(e){return`[${ZF.call(e)}]`}function sS(e,t,r,n){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";let i=typeof e;if(i==="number")return iB(e);if(i==="bigint")return oB(e);if(i==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(i==="function")return Qg(e,t);if(i==="symbol")return Zg(e);let o=iS.call(e);return o==="[object WeakMap]"?"WeakMap {}":o==="[object WeakSet]"?"WeakSet {}":o==="[object Function]"||o==="[object GeneratorFunction]"?Qg(e,t):o==="[object Symbol]"?Zg(e):o==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":QF.call(e):o==="[object Error]"?eb(e):o==="[object RegExp]"?r?Xg.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):Xg.call(e):e instanceof Error?eb(e):null}function aS(e,t,r,n,i,o){if(i.includes(e))return"[Circular]";i=[...i],i.push(e);let s=++n>t.maxDepth,a=t.min;if(t.callToJSON&&!s&&e.toJSON&&typeof e.toJSON=="function"&&!o)return mi(e.toJSON(),t,r,n,i,!0);let l=iS.call(e);return l==="[object Arguments]"?s?"[Arguments]":`${a?"":"Arguments "}[${Mu(e,t,r,n,i,mi)}]`:nB(l)?s?`[${e.constructor.name}]`:`${a||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${Mu(e,t,r,n,i,mi)}]`:l==="[object Map]"?s?"[Map]":`Map {${fl(e.entries(),t,r,n,i,mi," => ")}}`:l==="[object Set]"?s?"[Set]":`Set {${tm(e.values(),t,r,n,i,mi)}}`:s||eB(e)?`[${pu(e)}]`:`${a||!t.printBasicPrototype&&pu(e)==="Object"?"":`${pu(e)} `}{${rm(e,t,r,n,i,mi)}}`}var sB={test:e=>e&&e instanceof Error,serialize(e,t,r,n,i,o){if(i.includes(e))return"[Circular]";i=[...i,e];let s=++n>t.maxDepth,{message:a,cause:l,...u}=e,d={message:a,...typeof l<"u"?{cause:l}:{},...e instanceof AggregateError?{errors:e.errors}:{},...u},p=e.name!=="Error"?e.name:pu(e);return s?`[${p}]`:`${p} {${fl(Object.entries(d).values(),t,r,n,i,o)}}`}};function aB(e){return e.serialize!=null}function lS(e,t,r,n,i,o){let s;try{s=aB(e)?e.serialize(t,r,n,i,o,mi):e.print(t,a=>mi(a,r,n,i,o),a=>{let l=n+r.indent;return l+a.replaceAll(rB,`
|
|
164
|
-
${l}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(a){throw new oS(a.message,a.stack)}if(typeof s!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof s}".`);return s}function uS(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new oS(n.message,n.stack)}return null}function mi(e,t,r,n,i,o){let s=uS(t.plugins,e);if(s!==null)return lS(s,e,t,r,n,i);let a=sS(e,t.printFunctionName,t.escapeRegex,t.escapeString);return a!==null?a:aS(e,t,r,n,i,o)}var am={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},cS=Object.keys(am),Hr={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:am};function lB(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(Hr,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 uB(){return cS.reduce((e,t)=>{let r=am[t],n=r&&In[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 cB(){return cS.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function dS(e){return(e==null?void 0:e.printFunctionName)??Hr.printFunctionName}function pS(e){return(e==null?void 0:e.escapeRegex)??Hr.escapeRegex}function fS(e){return(e==null?void 0:e.escapeString)??Hr.escapeString}function tb(e){return{callToJSON:(e==null?void 0:e.callToJSON)??Hr.callToJSON,colors:e!=null&&e.highlight?uB():cB(),compareKeys:typeof(e==null?void 0:e.compareKeys)=="function"||(e==null?void 0:e.compareKeys)===null?e.compareKeys:Hr.compareKeys,escapeRegex:pS(e),escapeString:fS(e),indent:e!=null&&e.min?"":dB((e==null?void 0:e.indent)??Hr.indent),maxDepth:(e==null?void 0:e.maxDepth)??Hr.maxDepth,maxWidth:(e==null?void 0:e.maxWidth)??Hr.maxWidth,min:(e==null?void 0:e.min)??Hr.min,plugins:(e==null?void 0:e.plugins)??Hr.plugins,printBasicPrototype:(e==null?void 0:e.printBasicPrototype)??!0,printFunctionName:dS(e),spacingInner:e!=null&&e.min?" ":`
|
|
165
|
-
`,spacingOuter:e!=null&&e.min?"":`
|
|
166
|
-
`}}function dB(e){return Array.from({length:e+1}).join(" ")}function pn(e,t){if(t&&(lB(t),t.plugins)){let n=uS(t.plugins,e);if(n!==null)return lS(n,e,tb(t),"",0,[])}let r=sS(e,dS(t),pS(t),fS(t));return r!==null?r:aS(e,tb(t),"",0,[])}var lm={AsymmetricMatcher:tF,DOMCollection:lF,DOMElement:bF,Immutable:MF,ReactElement:GF,ReactTestComponent:XF,Error:sB},rb={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"]},pB={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},ss="…";function fB(e,t){let r=rb[pB[t]]||rb[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}function hB({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:i=!1,maxArrayLength:o=1/0,breakLength:s=1/0,seen:a=[],truncate:l=1/0,stylize:u=String}={},d){let p={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!i,maxArrayLength:Number(o),breakLength:Number(s),truncate:Number(l),seen:a,inspect:d,stylize:u};return p.colors&&(p.stylize=fB),p}function mB(e){return e>="\uD800"&&e<="\uDBFF"}function qi(e,t,r=ss){e=String(e);let n=r.length,i=e.length;if(n>t&&i>n)return r;if(i>t&&i>n){let o=t-n;return o>0&&mB(e[o-1])&&(o=o-1),`${e.slice(0,o)}${r}`}return e}function Zr(e,t,r,n=", "){r=r||t.inspect;let i=e.length;if(i===0)return"";let o=t.truncate,s="",a="",l="";for(let u=0;u<i;u+=1){let d=u+1===e.length,p=u+2===e.length;l=`${ss}(${e.length-u})`;let f=e[u];t.truncate=o-s.length-(d?0:n.length);let h=a||r(f,t)+(d?"":n),y=s.length+h.length,g=y+l.length;if(d&&y>o&&s.length+l.length<=o||!d&&!p&&g>o||(a=d?"":r(e[u+1],t)+(p?"":n),!d&&p&&g>o&&y+a.length>o))break;if(s+=h,!d&&!p&&y+a.length>=o){l=`${ss}(${e.length-u-1})`;break}l=""}return`${s}${l}`}function yB(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function Ia([e,t],r){return r.truncate-=2,typeof e=="string"?e=yB(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}function gB(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=Zr(e,t);t.truncate-=n.length;let i="";return r.length&&(i=Zr(r.map(o=>[o,e[o]]),t,Ia)),`[ ${n}${i?`, ${i}`:""} ]`}var bB=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function Tn(e,t){let r=bB(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let i="";for(let s=0;s<e.length;s++){let a=`${t.stylize(qi(e[s],t.truncate),"number")}${s===e.length-1?"":", "}`;if(t.truncate-=a.length,e[s]!==e.length&&t.truncate<=3){i+=`${ss}(${e.length-e[s]+1})`;break}i+=a}let o="";return n.length&&(o=Zr(n.map(s=>[s,e[s]]),t,Ia)),`${r}[ ${i}${o?`, ${o}`:""} ]`}function vB(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),i=n[0];return t.stylize(`${i}T${qi(n[1],t.truncate-i.length-1)}`,"date")}function nb(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${qi(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}function EB([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}function TB(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}function wB(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Zr(TB(e),t,EB)} }`)}var _B=Number.isNaN||(e=>e!==e);function ib(e,t){return _B(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(qi(String(e),t.truncate),"number")}function ob(e,t){let r=qi(e.toString(),t.truncate-1);return r!==ss&&(r+="n"),t.stylize(r,"bigint")}function SB(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),i=e.source;return t.stylize(`/${qi(i,n)}/${r}`,"regexp")}function RB(e){let t=[];return e.forEach(r=>{t.push(r)}),t}function OB(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Zr(RB(e),t)} }`)}var sb=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),AB={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},PB=16;function CB(e){return AB[e]||`\\u${`0000${e.charCodeAt(0).toString(PB)}`.slice(-4)}`}function ab(e,t){return sb.test(e)&&(e=e.replace(sb,CB)),t.stylize(`'${qi(e,t.truncate-2)}'`,"string")}function lb(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var hS=()=>"Promise{…}";try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(hS=(n,i)=>{let[o,s]=e(n);return o===t?"Promise{<pending>}":`Promise${o===r?"!":""}{${i.inspect(s,i)}}`})}catch{}var xB=hS;function fu(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 i=Zr(r.map(a=>[a,e[a]]),t,Ia),o=Zr(n.map(a=>[a,e[a]]),t,Ia);t.seen.pop();let s="";return i&&o&&(s=", "),`{ ${i}${s}${o} }`}var Qd=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function NB(e,t){let r="";return Qd&&Qd in e&&(r=e[Qd]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${fu(e,t)}`}function IB(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Zr(e,t)} ]`)}var MB=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function qB(e,t){let r=Object.getOwnPropertyNames(e).filter(s=>MB.indexOf(s)===-1),n=e.name;t.truncate-=n.length;let i="";if(typeof e.message=="string"?i=qi(e.message,t.truncate):r.unshift("message"),i=i?`: ${i}`:"",t.truncate-=i.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=Zr(r.map(s=>[s,e[s]]),t,Ia);return`${n}${i}${o?` { ${o} }`:""}`}function jB([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}function Kp(e,t){return Zr(e,t,kB,`
|
|
167
|
-
`)}function kB(e,t){switch(e.nodeType){case 1:return mS(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function mS(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),i=t.stylize(`<${n}`,"special"),o=t.stylize(">","special"),s=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let a="";r.length>0&&(a+=" ",a+=Zr(r.map(d=>[d,e.getAttribute(d)]),t,jB," ")),t.truncate-=a.length;let l=t.truncate,u=Kp(e.children,t);return u&&u.length>l&&(u=`${ss}(${e.children.length})`),`${i}${a}${o}${u}${s}`}var DB=typeof Symbol=="function"&&typeof Symbol.for=="function",Zd=DB?Symbol.for("chai/inspect"):"@@chai/inspect",ep=Symbol.for("nodejs.util.inspect.custom"),ub=new WeakMap,cb={},db={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:ib,Number:ib,bigint:ob,BigInt:ob,string:ab,String:ab,function:nb,Function:nb,symbol:lb,Symbol:lb,Array:gB,Date:vB,Map:wB,Set:OB,RegExp:SB,Promise:xB,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:IB,Int8Array:Tn,Uint8Array:Tn,Uint8ClampedArray:Tn,Int16Array:Tn,Uint16Array:Tn,Int32Array:Tn,Uint32Array:Tn,Float32Array:Tn,Float64Array:Tn,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:qB,HTMLCollection:Kp,NodeList:Kp},LB=(e,t,r)=>Zd in e&&typeof e[Zd]=="function"?e[Zd](t):ep in e&&typeof e[ep]=="function"?e[ep](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&ub.has(e.constructor)?ub.get(e.constructor)(e,t):cb[r]?cb[r](e,t):"",FB=Object.prototype.toString;function zp(e,t={}){let r=hB(t,zp),{customInspect:n}=r,i=e===null?"null":typeof e;if(i==="object"&&(i=FB.call(e).slice(8,-1)),i in db)return db[i](e,r);if(n&&e){let s=LB(e,r,i);if(s)return typeof s=="string"?s:zp(s,r)}let o=e?Object.getPrototypeOf(e):!1;return o===Object.prototype||o===null?fu(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?mS(e,r):"constructor"in e?e.constructor!==Object?NB(e,r):fu(e,r):e===Object(e)?fu(e,r):r.stylize(String(e),i)}var{AsymmetricMatcher:BB,DOMCollection:$B,DOMElement:UB,Immutable:VB,ReactElement:JB,ReactTestComponent:HB}=lm,pb=[HB,JB,UB,$B,VB,BB];function Ar(e,t=10,{maxLength:r,...n}={}){let i=r??1e4,o;try{o=pn(e,{maxDepth:t,escapeString:!1,plugins:pb,...n})}catch{o=pn(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:pb,...n})}return o.length>=i&&t>1?Ar(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...n}):o}var GB=/%[sdjifoOc%]/g;function WB(...e){if(typeof e[0]!="string"){let o=[];for(let s=0;s<e.length;s++)o.push(Vs(e[s],{depth:0,colors:!1}));return o.join(" ")}let t=e.length,r=1,n=e[0],i=String(n).replace(GB,o=>{if(o==="%%")return"%";if(r>=t)return o;switch(o){case"%s":{let s=e[r++];return typeof s=="bigint"?`${s.toString()}n`:typeof s=="number"&&s===0&&1/s<0?"-0":typeof s=="object"&&s!==null?typeof s.toString=="function"&&s.toString!==Object.prototype.toString?s.toString():Vs(s,{depth:0,colors:!1}):String(s)}case"%d":{let s=e[r++];return typeof s=="bigint"?`${s.toString()}n`:Number(s).toString()}case"%i":{let s=e[r++];return typeof s=="bigint"?`${s.toString()}n`:Number.parseInt(String(s)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return Vs(e[r++],{showHidden:!0,showProxy:!0});case"%O":return Vs(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(s){let a=s.message;if(a.includes("circular structure")||a.includes("cyclic structures")||a.includes("cyclic object"))return"[Circular]";throw s}default:return o}});for(let o=e[r];r<t;o=e[++r])o===null||typeof o!="object"?i+=` ${o}`:i+=` ${Vs(o)}`;return i}function Vs(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),zp(e,t)}function yS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function wn(e,t,r){let n=typeof e;if(!r.includes(n))throw new TypeError(`${t} value must be ${r.join(" or ")}, received "${n}"`)}function hu(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function KB(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function qu(e){return Object.prototype.toString.apply(e).slice(8,-1)}function zB(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}function gS(e){let t=new Set;return KB(e)?[]:(zB(e,t),Array.from(t))}var bS={forceWritable:!1};function fb(e,t=bS){return Yp(e,new WeakMap,t)}function Yp(e,t,r=bS){let n,i;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(i=Array.from({length:n=e.length}),t.set(e,i);n--;)i[n]=Yp(e[n],t,r);return i}if(Object.prototype.toString.call(e)==="[object Object]"){i=Object.create(Object.getPrototypeOf(e)),t.set(e,i);let o=gS(e);for(let s of o){let a=Object.getOwnPropertyDescriptor(e,s);if(!a)continue;let l=Yp(e[s],t,r);r.forceWritable?Object.defineProperty(i,s,{enumerable:a.enumerable,configurable:!0,writable:!0,value:l}):"get"in a?Object.defineProperty(i,s,{...a,get(){return l}}):Object.defineProperty(i,s,{...a,value:l})}return i}return e}function YB(){}var Qt=-1,Ut=1,mt=0,ft=class{constructor(e,t){ur(this,0);ur(this,1);this[0]=e,this[1]=t}};function XB(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,n=Math.min(e.length,t.length),i=n,o=0;for(;r<i;)e.substring(o,i)===t.substring(o,i)?(r=i,o=r):n=i,i=Math.floor((n-r)/2+r);return i}function vS(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),i=n,o=0;for(;r<i;)e.substring(e.length-i,e.length-o)===t.substring(t.length-i,t.length-o)?(r=i,o=r):n=i,i=Math.floor((n-r)/2+r);return i}function hb(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 i=Math.min(r,n);if(e===t)return i;let o=0,s=1;for(;;){let a=e.substring(i-s),l=t.indexOf(a);if(l===-1)return o;s+=l,(l===0||e.substring(i-s)===t.substring(0,s))&&(o=s,s++)}}function QB(e){let t=!1,r=[],n=0,i=null,o=0,s=0,a=0,l=0,u=0;for(;o<e.length;)e[o][0]===mt?(r[n++]=o,s=l,a=u,l=0,u=0,i=e[o][1]):(e[o][0]===Ut?l+=e[o][1].length:u+=e[o][1].length,i&&i.length<=Math.max(s,a)&&i.length<=Math.max(l,u)&&(e.splice(r[n-1],0,new ft(Qt,i)),e[r[n-1]+1][0]=Ut,n--,n--,o=n>0?r[n-1]:-1,s=0,a=0,l=0,u=0,i=null,t=!0)),o++;for(t&&ES(e),t$(e),o=1;o<e.length;){if(e[o-1][0]===Qt&&e[o][0]===Ut){let d=e[o-1][1],p=e[o][1],f=hb(d,p),h=hb(p,d);f>=h?(f>=d.length/2||f>=p.length/2)&&(e.splice(o,0,new ft(mt,p.substring(0,f))),e[o-1][1]=d.substring(0,d.length-f),e[o+1][1]=p.substring(f),o++):(h>=d.length/2||h>=p.length/2)&&(e.splice(o,0,new ft(mt,d.substring(0,h))),e[o-1][0]=Ut,e[o-1][1]=p.substring(0,p.length-h),e[o+1][0]=Qt,e[o+1][1]=d.substring(h),o++),o++}o++}}var mb=/[^a-z0-9]/i,yb=/\s/,gb=/[\r\n]/,ZB=/\n\r?\n$/,e$=/^\r?\n\r?\n/;function t$(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===mt&&e[t+1][0]===mt){let r=e[t-1][1],n=e[t][1],i=e[t+1][1],o=vS(r,n);if(o){let d=n.substring(n.length-o);r=r.substring(0,r.length-o),n=d+n.substring(0,n.length-o),i=d+i}let s=r,a=n,l=i,u=Ll(r,n)+Ll(n,i);for(;n.charAt(0)===i.charAt(0);){r+=n.charAt(0),n=n.substring(1)+i.charAt(0),i=i.substring(1);let d=Ll(r,n)+Ll(n,i);d>=u&&(u=d,s=r,a=n,l=i)}e[t-1][1]!==s&&(s?e[t-1][1]=s:(e.splice(t-1,1),t--),e[t][1]=a,l?e[t+1][1]=l:(e.splice(t+1,1),t--))}t++}}function ES(e){e.push(new ft(mt,""));let t=0,r=0,n=0,i="",o="",s;for(;t<e.length;)switch(e[t][0]){case Ut:n++,o+=e[t][1],t++;break;case Qt:r++,i+=e[t][1],t++;break;case mt:r+n>1?(r!==0&&n!==0&&(s=XB(o,i),s!==0&&(t-r-n>0&&e[t-r-n-1][0]===mt?e[t-r-n-1][1]+=o.substring(0,s):(e.splice(0,0,new ft(mt,o.substring(0,s))),t++),o=o.substring(s),i=i.substring(s)),s=vS(o,i),s!==0&&(e[t][1]=o.substring(o.length-s)+e[t][1],o=o.substring(0,o.length-s),i=i.substring(0,i.length-s))),t-=r+n,e.splice(t,r+n),i.length&&(e.splice(t,0,new ft(Qt,i)),t++),o.length&&(e.splice(t,0,new ft(Ut,o)),t++),t++):t!==0&&e[t-1][0]===mt?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,i="",o="";break}e[e.length-1][1]===""&&e.pop();let a=!1;for(t=1;t<e.length-1;)e[t-1][0]===mt&&e[t+1][0]===mt&&(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),a=!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),a=!0)),t++;a&&ES(e)}function Ll(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),n=t.charAt(0),i=r.match(mb),o=n.match(mb),s=i&&r.match(yb),a=o&&n.match(yb),l=s&&r.match(gb),u=a&&n.match(gb),d=l&&e.match(ZB),p=u&&t.match(e$);return d||p?5:l||u?4:i&&!s&&a?3:s||a?2:i||o?1:0}var TS="Compared values have no visual difference.",r$="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",Fl={},bb;function n$(){if(bb)return Fl;bb=1,Object.defineProperty(Fl,"__esModule",{value:!0}),Fl.default=f;let e="diff-sequences",t=0,r=(h,y,g,v,b)=>{let E=0;for(;h<y&&g<v&&b(h,g);)h+=1,g+=1,E+=1;return E},n=(h,y,g,v,b)=>{let E=0;for(;h<=y&&g<=v&&b(y,v);)y-=1,v-=1,E+=1;return E},i=(h,y,g,v,b,E,w)=>{let A=0,C=-h,R=E[A],S=R;E[A]+=r(R+1,y,v+R-C+1,g,b);let _=h<w?h:w;for(A+=1,C+=2;A<=_;A+=1,C+=2){if(A!==h&&S<E[A])R=E[A];else if(R=S+1,y<=R)return A-1;S=E[A],E[A]=R+r(R+1,y,v+R-C+1,g,b)}return w},o=(h,y,g,v,b,E,w)=>{let A=0,C=h,R=E[A],S=R;E[A]-=n(y,R-1,g,v+R-C-1,b);let _=h<w?h:w;for(A+=1,C-=2;A<=_;A+=1,C-=2){if(A!==h&&E[A]<S)R=E[A];else if(R=S-1,R<y)return A-1;S=E[A],E[A]=R-n(y,R-1,g,v+R-C-1,b)}return w},s=(h,y,g,v,b,E,w,A,C,R,S)=>{let _=v-y,O=g-y,M=b-v-O,I=-M-(h-1),k=-M+(h-1),N=t,P=h<A?h:A;for(let q=0,F=-h;q<=P;q+=1,F+=2){let $=q===0||q!==h&&N<w[q],G=$?w[q]:N,ie=$?G:G+1,pe=_+ie-F,he=r(ie+1,g,pe+1,b,E),Q=ie+he;if(N=w[q],w[q]=Q,I<=F&&F<=k){let Z=(h-1-(F+M))/2;if(Z<=R&&C[Z]-1<=Q){let ge=_+G-($?F+1:F-1),ce=n(y,G,v,ge,E),re=G-ce,Re=ge-ce,Te=re+1,et=Re+1;S.nChangePreceding=h-1,h-1===Te+et-y-v?(S.aEndPreceding=y,S.bEndPreceding=v):(S.aEndPreceding=Te,S.bEndPreceding=et),S.nCommonPreceding=ce,ce!==0&&(S.aCommonPreceding=Te,S.bCommonPreceding=et),S.nCommonFollowing=he,he!==0&&(S.aCommonFollowing=ie+1,S.bCommonFollowing=pe+1);let V=Q+1,ae=pe+he+1;return S.nChangeFollowing=h-1,h-1===g+b-V-ae?(S.aStartFollowing=g,S.bStartFollowing=b):(S.aStartFollowing=V,S.bStartFollowing=ae),!0}}}return!1},a=(h,y,g,v,b,E,w,A,C,R,S)=>{let _=b-g,O=g-y,M=b-v-O,I=M-h,k=M+h,N=t,P=h<R?h:R;for(let q=0,F=h;q<=P;q+=1,F-=2){let $=q===0||q!==h&&C[q]<N,G=$?C[q]:N,ie=$?G:G-1,pe=_+ie-F,he=n(y,ie-1,v,pe-1,E),Q=ie-he;if(N=C[q],C[q]=Q,I<=F&&F<=k){let Z=(h+(F-M))/2;if(Z<=A&&Q-1<=w[Z]){let ge=pe-he;if(S.nChangePreceding=h,h===Q+ge-y-v?(S.aEndPreceding=y,S.bEndPreceding=v):(S.aEndPreceding=Q,S.bEndPreceding=ge),S.nCommonPreceding=he,he!==0&&(S.aCommonPreceding=Q,S.bCommonPreceding=ge),S.nChangeFollowing=h-1,h===1)S.nCommonFollowing=0,S.aStartFollowing=g,S.bStartFollowing=b;else{let ce=_+G-($?F-1:F+1),re=r(G,g,ce,b,E);S.nCommonFollowing=re,re!==0&&(S.aCommonFollowing=G,S.bCommonFollowing=ce);let Re=G+re,Te=ce+re;h-1===g+b-Re-Te?(S.aStartFollowing=g,S.bStartFollowing=b):(S.aStartFollowing=Re,S.bStartFollowing=Te)}return!0}}}return!1},l=(h,y,g,v,b,E,w,A,C)=>{let R=v-y,S=b-g,_=g-y,O=b-v,M=O-_,I=_,k=_;if(w[0]=y-1,A[0]=g,M%2===0){let N=(h||M)/2,P=(_+O)/2;for(let q=1;q<=P;q+=1)if(I=i(q,g,b,R,E,w,I),q<N)k=o(q,y,v,S,E,A,k);else if(a(q,y,g,v,b,E,w,I,A,k,C))return}else{let N=((h||M)+1)/2,P=(_+O+1)/2,q=1;for(I=i(q,g,b,R,E,w,I),q+=1;q<=P;q+=1)if(k=o(q-1,y,v,S,E,A,k),q<N)I=i(q,g,b,R,E,w,I);else if(s(q,y,g,v,b,E,w,I,A,k,C))return}throw new Error(`${e}: no overlap aStart=${y} aEnd=${g} bStart=${v} bEnd=${b}`)},u=(h,y,g,v,b,E,w,A,C,R)=>{if(b-v<g-y){if(E=!E,E&&w.length===1){let{foundSubsequence:Z,isCommon:ge}=w[0];w[1]={foundSubsequence:(ce,re,Re)=>{Z(ce,Re,re)},isCommon:(ce,re)=>ge(re,ce)}}let he=y,Q=g;y=v,g=b,v=he,b=Q}let{foundSubsequence:S,isCommon:_}=w[E?1:0];l(h,y,g,v,b,_,A,C,R);let{nChangePreceding:O,aEndPreceding:M,bEndPreceding:I,nCommonPreceding:k,aCommonPreceding:N,bCommonPreceding:P,nCommonFollowing:q,aCommonFollowing:F,bCommonFollowing:$,nChangeFollowing:G,aStartFollowing:ie,bStartFollowing:pe}=R;y<M&&v<I&&u(O,y,M,v,I,E,w,A,C,R),k!==0&&S(k,N,P),q!==0&&S(q,F,$),ie<g&&pe<b&&u(G,ie,g,pe,b,E,w,A,C,R)},d=(h,y)=>{if(typeof y!="number")throw new TypeError(`${e}: ${h} typeof ${typeof y} is not a number`);if(!Number.isSafeInteger(y))throw new RangeError(`${e}: ${h} value ${y} is not a safe integer`);if(y<0)throw new RangeError(`${e}: ${h} value ${y} is a negative integer`)},p=(h,y)=>{let g=typeof y;if(g!=="function")throw new TypeError(`${e}: ${h} typeof ${g} is not a function`)};function f(h,y,g,v){d("aLength",h),d("bLength",y),p("isCommon",g),p("foundSubsequence",v);let b=r(0,h,0,y,g);if(b!==0&&v(b,0,0),h!==b||y!==b){let E=b,w=b,A=n(E,h-1,w,y-1,g),C=h-A,R=y-A,S=b+A;h!==S&&y!==S&&u(0,E,C,w,R,!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}),A!==0&&v(A,C,R)}}return Fl}var i$=n$(),wS=yS(i$);function o$(e,t){return e.replace(/\s+$/,r=>t(r))}function um(e,t,r,n,i,o){return e.length!==0?r(`${n} ${o$(e,i)}`):n!==" "?r(n):t&&o.length!==0?r(`${n} ${o}`):""}function _S(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:o}){return um(e,t,r,n,i,o)}function SS(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:o}){return um(e,t,r,n,i,o)}function RS(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:o}){return um(e,t,r,n,i,o)}function vb(e,t,r,n,{patchColor:i}){return i(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}function s$(e,t){let r=e.length,n=t.contextLines,i=n+n,o=r,s=!1,a=0,l=0;for(;l!==r;){let A=l;for(;l!==r&&e[l][0]===mt;)l+=1;if(A!==l)if(A===0)l>n&&(o-=l-n,s=!0);else if(l===r){let C=l-A;C>n&&(o-=C-n,s=!0)}else{let C=l-A;C>i&&(o-=C-i,a+=1)}for(;l!==r&&e[l][0]!==mt;)l+=1}let u=a!==0||s;a!==0?o+=a+1:s&&(o+=1);let d=o-1,p=[],f=0;u&&p.push("");let h=0,y=0,g=0,v=0,b=A=>{let C=p.length;p.push(RS(A,C===0||C===d,t)),g+=1,v+=1},E=A=>{let C=p.length;p.push(_S(A,C===0||C===d,t)),g+=1},w=A=>{let C=p.length;p.push(SS(A,C===0||C===d,t)),v+=1};for(l=0;l!==r;){let A=l;for(;l!==r&&e[l][0]===mt;)l+=1;if(A!==l)if(A===0){l>n&&(A=l-n,h=A,y=A,g=h,v=y);for(let C=A;C!==l;C+=1)b(e[C][1])}else if(l===r){let C=l-A>n?A+n:l;for(let R=A;R!==C;R+=1)b(e[R][1])}else{let C=l-A;if(C>i){let R=A+n;for(let _=A;_!==R;_+=1)b(e[_][1]);p[f]=vb(h,g,y,v,t),f=p.length,p.push("");let S=C-i;h=g+S,y=v+S,g=h,v=y;for(let _=l-n;_!==l;_+=1)b(e[_][1])}else for(let R=A;R!==l;R+=1)b(e[R][1])}for(;l!==r&&e[l][0]===Qt;)E(e[l][1]),l+=1;for(;l!==r&&e[l][0]===Ut;)w(e[l][1]),l+=1}return u&&(p[f]=vb(h,g,y,v,t)),p.join(`
|
|
168
|
-
`)}function a$(e,t){return e.map((r,n,i)=>{let o=r[1],s=n===0||n===i.length-1;switch(r[0]){case Qt:return _S(o,s,t);case Ut:return SS(o,s,t);default:return RS(o,s,t)}}).join(`
|
|
169
|
-
`)}var tp=e=>e,OS=5,l$=0;function u$(){return{aAnnotation:"Expected",aColor:In.green,aIndicator:"-",bAnnotation:"Received",bColor:In.red,bIndicator:"+",changeColor:In.inverse,changeLineTrailingSpaceColor:tp,commonColor:In.dim,commonIndicator:" ",commonLineTrailingSpaceColor:tp,compareKeys:void 0,contextLines:OS,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:In.yellow,printBasicPrototype:!1,truncateThreshold:l$,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:tp}}function c$(e){return e&&typeof e=="function"?e:void 0}function d$(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:OS}function wo(e={}){return{...u$(),...e,compareKeys:c$(e.compareKeys),contextLines:d$(e.contextLines)}}function Lo(e){return e.length===1&&e[0].length===0}function p$(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case Qt:t+=1;break;case Ut:r+=1;break}}),{a:t,b:r}}function f$({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:i,bIndicator:o,includeChangeCounts:s,omitAnnotationLines:a},l){if(a)return"";let u="",d="";if(s){let h=String(l.a),y=String(l.b),g=n.length-e.length,v=" ".repeat(Math.max(0,g)),b=" ".repeat(Math.max(0,-g)),E=y.length-h.length,w=" ".repeat(Math.max(0,E)),A=" ".repeat(Math.max(0,-E));u=`${v} ${r} ${w}${h}`,d=`${b} ${o} ${A}${y}`}let p=`${r} ${e}${u}`,f=`${o} ${n}${d}`;return`${t(p)}
|
|
170
|
-
${i(f)}
|
|
171
|
-
|
|
172
|
-
`}function cm(e,t,r){return f$(r,p$(e))+(r.expand?a$(e,r):s$(e,r))+(t?r.truncateAnnotationColor(`
|
|
173
|
-
${r.truncateAnnotation}`):"")}function Bc(e,t,r){let n=wo(r),[i,o]=AS(Lo(e)?[]:e,Lo(t)?[]:t,n);return cm(i,o,n)}function h$(e,t,r,n,i){if(Lo(e)&&Lo(r)&&(e=[],r=[]),Lo(t)&&Lo(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return Bc(e,t,i);let[o,s]=AS(r,n,i),a=0,l=0;return o.forEach(u=>{switch(u[0]){case Qt:u[1]=e[a],a+=1;break;case Ut:u[1]=t[l],l+=1;break;default:u[1]=t[l],a+=1,l+=1}}),cm(o,s,wo(i))}function AS(e,t,r){let n=(r==null?void 0:r.truncateThreshold)??!1,i=Math.max(Math.floor((r==null?void 0:r.truncateThreshold)??0),0),o=n?Math.min(e.length,i):e.length,s=n?Math.min(t.length,i):t.length,a=o!==e.length||s!==t.length,l=(f,h)=>e[f]===t[h],u=[],d=0,p=0;for(wS(o,s,l,(f,h,y)=>{for(;d!==h;d+=1)u.push(new ft(Qt,e[d]));for(;p!==y;p+=1)u.push(new ft(Ut,t[p]));for(;f!==0;f-=1,d+=1,p+=1)u.push(new ft(mt,t[p]))});d!==o;d+=1)u.push(new ft(Qt,e[d]));for(;p!==s;p+=1)u.push(new ft(Ut,t[p]));return[u,a]}function Eb(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 Tb(e){return e.includes(`\r
|
|
174
|
-
`)?`\r
|
|
175
|
-
`:`
|
|
176
|
-
`}function m$(e,t,r){let n=(r==null?void 0:r.truncateThreshold)??!1,i=Math.max(Math.floor((r==null?void 0:r.truncateThreshold)??0),0),o=e.length,s=t.length;if(n){let f=e.includes(`
|
|
177
|
-
`),h=t.includes(`
|
|
178
|
-
`),y=Tb(e),g=Tb(t),v=f?`${e.split(y,i).join(y)}
|
|
179
|
-
`:e,b=h?`${t.split(g,i).join(g)}
|
|
180
|
-
`:t;o=v.length,s=b.length}let a=o!==e.length||s!==t.length,l=(f,h)=>e[f]===t[h],u=0,d=0,p=[];return wS(o,s,l,(f,h,y)=>{u!==h&&p.push(new ft(Qt,e.slice(u,h))),d!==y&&p.push(new ft(Ut,t.slice(d,y))),u=h+f,d=y+f,p.push(new ft(mt,t.slice(y,d)))}),u!==o&&p.push(new ft(Qt,e.slice(u))),d!==s&&p.push(new ft(Ut,t.slice(d))),[p,a]}function y$(e,t,r){return t.reduce((n,i)=>n+(i[0]===mt?i[1]:i[0]===e&&i[1].length!==0?r(i[1]):""),"")}var wb=class{constructor(e,t){ur(this,"op");ur(this,"line");ur(this,"lines");ur(this,"changeColor");this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new ft(this.op,e))}pushLine(){this.lines.push(this.line.length!==1?new ft(this.op,y$(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new ft(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(`
|
|
181
|
-
`)){let r=t.split(`
|
|
182
|
-
`),n=r.length-1;r.forEach((i,o)=>{o<n?(this.pushSubstring(i),this.pushLine()):i.length!==0&&this.pushSubstring(i)})}else this.pushDiff(e)}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0}},g$=class{constructor(e,t){ur(this,"deleteBuffer");ur(this,"insertBuffer");ur(this,"lines");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(`
|
|
183
|
-
`)){let n=r.split(`
|
|
184
|
-
`),i=n.length-1;n.forEach((o,s)=>{if(s===0){let a=new ft(t,o);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(a)):(this.pushDiffChangeLines(a),this.flushChangeLines())}else s<i?this.pushDiffCommonLine(new ft(t,o)):o.length!==0&&this.pushDiffChangeLines(new ft(t,o))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function b$(e,t){let r=new wb(Qt,t),n=new wb(Ut,t),i=new g$(r,n);return e.forEach(o=>{switch(o[0]){case Qt:r.align(o);break;case Ut:n.align(o);break;default:i.align(o)}}),i.getLines()}function v$(e,t){if(t){let r=e.length-1;return e.some((n,i)=>n[0]===mt&&(i!==r||n[1]!==`
|
|
185
|
-
`))}return e.some(r=>r[0]===mt)}function E$(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(`
|
|
186
|
-
`)||t.includes(`
|
|
187
|
-
`),[i,o]=PS(n?`${e}
|
|
188
|
-
`:e,n?`${t}
|
|
189
|
-
`:t,!0,r);if(v$(i,n)){let s=wo(r),a=b$(i,s.changeColor);return cm(a,o,s)}}return Bc(e.split(`
|
|
190
|
-
`),t.split(`
|
|
191
|
-
`),r)}function PS(e,t,r,n){let[i,o]=m$(e,t,n);return QB(i),[i,o]}function Xp(e,t){let{commonColor:r}=wo(t);return r(e)}var{AsymmetricMatcher:T$,DOMCollection:w$,DOMElement:_$,Immutable:S$,ReactElement:R$,ReactTestComponent:O$}=lm,CS=[O$,R$,_$,w$,S$,T$,lm.Error],Qp={maxDepth:20,plugins:CS},xS={callToJSON:!1,maxDepth:8,plugins:CS};function Cs(e,t,r){if(Object.is(e,t))return"";let n=Eb(e),i=n,o=!1;if(n==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;i=e.getExpectedType(),o=i==="string"}if(i!==Eb(t)){let s=function(w){return w.length<=v?w:`${w.slice(0,v)}...`},{aAnnotation:a,aColor:l,aIndicator:u,bAnnotation:d,bColor:p,bIndicator:f}=wo(r),h=Zp(xS,r),y=pn(e,h),g=pn(t,h),v=1e5;y=s(y),g=s(g);let b=`${l(`${u} ${a}:`)}
|
|
192
|
-
${y}`,E=`${p(`${f} ${d}:`)}
|
|
193
|
-
${g}`;return`${b}
|
|
194
|
-
|
|
195
|
-
${E}`}if(!o)switch(n){case"string":return Bc(e.split(`
|
|
196
|
-
`),t.split(`
|
|
197
|
-
`),r);case"boolean":case"number":return A$(e,t,r);case"map":return rp(_b(e),_b(t),r);case"set":return rp(Sb(e),Sb(t),r);default:return rp(e,t,r)}}function A$(e,t,r){let n=pn(e,Qp),i=pn(t,Qp);return n===i?"":Bc(n.split(`
|
|
198
|
-
`),i.split(`
|
|
199
|
-
`),r)}function _b(e){return new Map(Array.from(e.entries()).sort())}function Sb(e){return new Set(Array.from(e.values()).sort())}function rp(e,t,r){let n,i=!1;try{let s=Zp(Qp,r);n=Rb(e,t,s,r)}catch{i=!0}let o=Xp(TS,r);if(n===void 0||n===o){let s=Zp(xS,r);n=Rb(e,t,s,r),n!==o&&!i&&(n=`${Xp(r$,r)}
|
|
200
|
-
|
|
201
|
-
${n}`)}return n}function Zp(e,t){let{compareKeys:r,printBasicPrototype:n,maxDepth:i}=wo(t);return{...e,compareKeys:r,printBasicPrototype:n,maxDepth:i??e.maxDepth}}function Rb(e,t,r,n){let i={...r,indent:0},o=pn(e,i),s=pn(t,i);if(o===s)return Xp(TS,n);{let a=pn(e,r),l=pn(t,r);return h$(a.split(`
|
|
202
|
-
`),l.split(`
|
|
203
|
-
`),o.split(`
|
|
204
|
-
`),s.split(`
|
|
205
|
-
`),n)}}var Ob=2e4;function Ab(e){return qu(e)==="Object"&&typeof e.asymmetricMatch=="function"}function Pb(e,t){let r=qu(e),n=qu(t);return r===n&&(r==="Object"||r==="Array")}function NS(e,t,r){let{aAnnotation:n,bAnnotation:i}=wo(r);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=Ob&&e.length<=Ob&&t!==e){if(t.includes(`
|
|
206
|
-
`)||e.includes(`
|
|
207
|
-
`))return E$(t,e,r);let[u]=PS(t,e),d=u.some(y=>y[0]===mt),p=P$(n,i),f=p(n)+N$(Cb(u,Qt,d)),h=p(i)+x$(Cb(u,Ut,d));return`${f}
|
|
208
|
-
${h}`}let o=fb(t,{forceWritable:!0}),s=fb(e,{forceWritable:!0}),{replacedExpected:a,replacedActual:l}=IS(s,o);return Cs(a,l,r)}function IS(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}):Pb(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),gS(t).forEach(i=>{let o=t[i],s=e[i];if(Ab(o))o.asymmetricMatch(s)&&(e[i]=o);else if(Ab(s))s.asymmetricMatch(o)&&(t[i]=s);else if(Pb(s,o)){let a=IS(s,o,r,n);e[i]=a.replacedActual,t[i]=a.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function P$(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}var C$="·";function MS(e){return e.replace(/\s+$/gm,t=>C$.repeat(t.length))}function x$(e){return In.red(MS(Ar(e)))}function N$(e){return In.green(MS(Ar(e)))}function Cb(e,t,r){return e.reduce((n,i)=>n+(i[0]===mt?i[1]:i[0]===t?r?In.inverse(i[1]):i[1]:""),"")}var I$="@@__IMMUTABLE_RECORD__@@",M$="@@__IMMUTABLE_ITERABLE__@@";function q$(e){return e&&(e[M$]||e[I$])}var j$=Object.getPrototypeOf({});function xb(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function yi(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"&&Bl(()=>r.message??(r.message=e.message)),typeof e.stack=="string"&&Bl(()=>r.stack??(r.stack=e.stack)),typeof e.name=="string"&&Bl(()=>r.name??(r.name=e.name)),e.cause!=null&&Bl(()=>r.cause??(r.cause=yi(e.cause,t)))),yi(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(q$(e))return yi(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()} ${WB(e.sample)}`;if(typeof e.toJSON=="function")return yi(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,i)=>{try{r[i]=yi(n,t)}catch(o){r[i]=xb(o)}}),r}else{let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==j$;)Object.getOwnPropertyNames(n).forEach(i=>{if(!(i in r))try{r[i]=yi(e[i],t)}catch(o){delete r[i],r[i]=xb(o)}}),n=Object.getPrototypeOf(n);return r}}function Bl(e){try{return e()}catch{}}function k$(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function dm(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=NS(n.actual,n.expected,{...t,...n.diffOptions})),"expected"in n&&typeof n.expected!="string"&&(n.expected=Ar(n.expected,10)),"actual"in n&&typeof n.actual!="string"&&(n.actual=Ar(n.actual,10));try{typeof n.message=="string"&&(n.message=k$(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=dm(n.cause,t,r))}catch{}try{return yi(n)}catch(i){return yi(new Error(`Failed to fully serialize error: ${i==null?void 0:i.message}
|
|
209
|
-
Inner error message: ${n==null?void 0:n.message}`))}}var _n={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"},np=globalThis.__STORYBOOK_ADDONS_PREVIEW,D$=new Error("This function ran after the play function completed. Did you forget to `await` it?"),Nb=e=>Object.prototype.toString.call(e)==="[object Object]",L$=e=>Object.prototype.toString.call(e)==="[object Module]",F$=e=>{if(!Nb(e)&&!L$(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!Nb(t)},B$=e=>{try{return new e.constructor}catch{return{}}},ip=()=>({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}),Ib=(e,t=!1)=>{let r=(t?e.shadowCalls:e.calls).filter(i=>i.retain);if(!r.length)return;let n=new Map(Array.from(e.callRefsByResult.entries()).filter(([,i])=>i.retain));return{cursor:r.length,calls:r,callRefsByResult:n}},$$=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=()=>{var a,l;try{this.state=((l=(a=fe.window)==null?void 0:a.parent)==null?void 0:l.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__)||{}}catch{this.detached=!0}},this.updateParentWindowState=()=>{try{fe.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},this.loadParentWindowState();let e=({storyId:a,renderPhase:l,isPlaying:u=!0,isDebugging:d=!1})=>{let p=this.getState(a);this.setState(a,{...ip(),...Ib(p,d),renderPhase:l||p.renderPhase,shadowCalls:d?p.shadowCalls:[],chainedCallIds:d?p.chainedCallIds:new Set,playUntil:d?p.playUntil:void 0,isPlaying:u,isDebugging:d}),this.sync(a)},t=a=>({storyId:l,playUntil:u})=>{this.getState(l).isDebugging||this.setState(l,({calls:p})=>({calls:[],shadowCalls:p.map(f=>({...f,status:"waiting"})),isDebugging:!0}));let d=this.getLog(l);this.setState(l,({shadowCalls:p})=>{var h;if(u||!d.length)return{playUntil:u};let f=p.findIndex(y=>y.id===d[0].callId);return{playUntil:(h=p.slice(0,f).filter(y=>{var g;return y.interceptable&&!((g=y.ancestors)!=null&&g.length)}).slice(-1)[0])==null?void 0:h.id}}),a.emit(Nu,{storyId:l,isDebugging:!0})},r=a=>({storyId:l})=>{var p;let u=this.getLog(l).filter(f=>{var h;return!((h=f.ancestors)!=null&&h.length)}),d=u.reduceRight((f,h,y)=>f>=0||h.status==="waiting"?f:y,-1);t(a)({storyId:l,playUntil:(p=u[d-1])==null?void 0:p.callId})},n=a=>({storyId:l,callId:u})=>{var g;let{calls:d,shadowCalls:p,resolvers:f}=this.getState(l),h=d.find(({id:v})=>v===u),y=p.find(({id:v})=>v===u);if(!h&&y&&Object.values(f).length>0){let v=(g=this.getLog(l).find(b=>b.status==="waiting"))==null?void 0:g.callId;y.id!==v&&this.setState(l,{playUntil:y.id}),Object.values(f).forEach(b=>b())}else t(a)({storyId:l,playUntil:u})},i=a=>({storyId:l})=>{var d;let{resolvers:u}=this.getState(l);if(Object.values(u).length>0)Object.values(u).forEach(p=>p());else{let p=(d=this.getLog(l).find(f=>f.status==="waiting"))==null?void 0:d.callId;p?t(a)({storyId:l,playUntil:p}):o({storyId:l})}},o=({storyId:a})=>{this.setState(a,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(a).resolvers).forEach(l=>l())},s=({storyId:a,newPhase:l})=>{let{isDebugging:u}=this.getState(a);if(l==="preparing"&&u)return e({storyId:a,renderPhase:l,isDebugging:u});if(l==="playing")return e({storyId:a,renderPhase:l,isDebugging:u});l==="played"?this.setState(a,{renderPhase:l,isLocked:!1,isPlaying:!1,isDebugging:!1}):l==="errored"?this.setState(a,{renderPhase:l,isLocked:!1,isPlaying:!1}):l==="aborted"?this.setState(a,{renderPhase:l,isLocked:!0,isPlaying:!1}):this.setState(a,{renderPhase:l}),this.sync(a)};np&&np.ready().then(()=>{this.channel=np.getChannel(),this.channel.on(Nu,e),this.channel.on(po,s),this.channel.on(kh,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(_n.START,t(this.channel)),this.channel.on(_n.BACK,r(this.channel)),this.channel.on(_n.GOTO,n(this.channel)),this.channel.on(_n.NEXT,i(this.channel)),this.channel.on(_n.END,o)})}getState(e){return this.state[e]||ip()}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(){var t;this.state=Object.entries(this.state).reduce((r,[n,i])=>{let o=Ib(i);return o&&(r[n]=Object.assign(ip(),o)),r},{});let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};(t=this.channel)==null||t.emit(_n.SYNC,e),this.updateParentWindowState()}getLog(e){let{calls:t,shadowCalls:r}=this.getState(e),n=[...r];t.forEach((o,s)=>{n[s]=o});let i=new Set;return n.reduceRight((o,s)=>(s.args.forEach(a=>{a!=null&&a.__callId__&&i.add(a.__callId__)}),s.path.forEach(a=>{a.__callId__&&i.add(a.__callId__)}),(s.interceptable||s.exception)&&!i.has(s.id)&&(o.unshift({callId:s.id,status:s.status,ancestors:s.ancestors}),i.add(s.id)),o),[])}instrument(e,t,r=0){if(!F$(e))return e;let{mutate:n=!1,path:i=[]}=t,o=t.getKeys?t.getKeys(e,r):Object.keys(e);return r+=1,o.reduce((s,a)=>{let l=U$(e,a);if(typeof(l==null?void 0:l.get)=="function"){if(l.configurable){let d=()=>{var p,f;return(f=(p=l==null?void 0:l.get)==null?void 0:p.bind(e))==null?void 0:f()};Object.defineProperty(s,a,{get:()=>this.instrument(d(),{...t,path:i.concat(a)},r)})}return s}let u=e[a];return typeof u!="function"?(s[a]=this.instrument(u,{...t,path:i.concat(a)},r),s):"__originalFn__"in u&&typeof u.__originalFn__=="function"?(s[a]=u,s):(s[a]=(...d)=>this.track(a,u,e,d,t),s[a].__originalFn__=u,Object.defineProperty(s[a],"name",{value:a,writable:!1}),Object.keys(u).length>0&&Object.assign(s[a],this.instrument({...u},{...t,path:i.concat(a)},r)),s)},n?e:B$(e))}track(e,t,r,n,i){var g,v,b,E;let o=((g=n==null?void 0:n[0])==null?void 0:g.__storyId__)||((E=(b=(v=fe.__STORYBOOK_PREVIEW__)==null?void 0:v.selectionStore)==null?void 0:b.selection)==null?void 0:E.storyId),{cursor:s,ancestors:a}=this.getState(o);this.setState(o,{cursor:s+1});let l=`${a.slice(-1)[0]||o} [${s}] ${e}`,{path:u=[],intercept:d=!1,retain:p=!1}=i,f=typeof d=="function"?d(e,u):d,h={id:l,cursor:s,storyId:o,ancestors:a,path:u,method:e,args:n,interceptable:f,retain:p},y=(f&&!a.length?this.intercept:this.invoke).call(this,t,r,h,i);return this.instrument(y,{...i,mutate:!0,path:[{__callId__:h.id}]})}intercept(e,t,r,n){let{chainedCallIds:i,isDebugging:o,playUntil:s}=this.getState(r.storyId),a=i.has(r.id);return!o||a||s?(s===r.id&&this.setState(r.storyId,{playUntil:void 0}),this.invoke(e,t,r,n)):new Promise(l=>{this.setState(r.storyId,({resolvers:u})=>({isLocked:!1,resolvers:{...u,[r.id]:l}}))}).then(()=>(this.setState(r.storyId,l=>{let{[r.id]:u,...d}=l.resolvers;return{isLocked:!0,resolvers:d}}),this.invoke(e,t,r,n)))}invoke(e,t,r,n){let{callRefsByResult:i,renderPhase:o}=this.getState(r.storyId),s=25,a=(d,p,f)=>{var h,y,g;if(f.includes(d))return"[Circular]";if(f=[...f,d],p>s)return"...";if(i.has(d))return i.get(d);if(d instanceof Array)return d.map(v=>a(v,++p,f));if(d instanceof Date)return{__date__:{value:d.toISOString()}};if(d instanceof Error){let{name:v,message:b,stack:E}=d;return{__error__:{name:v,message:b,stack:E}}}if(d instanceof RegExp){let{flags:v,source:b}=d;return{__regexp__:{flags:v,source:b}}}if(d instanceof((h=fe.window)==null?void 0:h.HTMLElement)){let{prefix:v,localName:b,id:E,classList:w,innerText:A}=d,C=Array.from(w);return{__element__:{prefix:v,localName:b,id:E,classNames:C,innerText:A}}}return typeof d=="function"?{__function__:{name:"getMockName"in d?d.getMockName():d.name}}:typeof d=="symbol"?{__symbol__:{description:d.description}}:typeof d=="object"&&((y=d==null?void 0:d.constructor)!=null&&y.name)&&((g=d==null?void 0:d.constructor)==null?void 0:g.name)!=="Object"?{__class__:{name:d.constructor.name}}:Object.prototype.toString.call(d)==="[object Object]"?Object.fromEntries(Object.entries(d).map(([v,b])=>[v,a(b,++p,f)])):d},l={...r,args:r.args.map(d=>a(d,0,[]))};r.path.forEach(d=>{d!=null&&d.__callId__&&this.setState(r.storyId,({chainedCallIds:p})=>({chainedCallIds:new Set(Array.from(p).concat(d.__callId__))}))});let u=d=>{var p;if(d instanceof Error){let{name:f,message:h,stack:y,callId:g=r.id}=d,{showDiff:v=void 0,diff:b=void 0,actual:E=void 0,expected:w=void 0}=d.name==="AssertionError"?dm(d):d,A={name:f,message:h,stack:y,callId:g,showDiff:v,diff:b,actual:E,expected:w};if(this.update({...l,status:"error",exception:A}),this.setState(r.storyId,C=>({callRefsByResult:new Map([...Array.from(C.callRefsByResult.entries()),[d,{__callId__:r.id,retain:r.retain}]])})),(p=r.ancestors)==null?void 0:p.length)throw Object.prototype.hasOwnProperty.call(d,"callId")||Object.defineProperty(d,"callId",{value:r.id}),d}throw d};try{if(o==="played"&&!r.retain)throw D$;let d=(n.getArgs?n.getArgs(r,this.getState(r.storyId)):r.args).map(f=>typeof f!="function"||V$(f)||Object.keys(f).length?f:(...h)=>{let{cursor:y,ancestors:g}=this.getState(r.storyId);this.setState(r.storyId,{cursor:0,ancestors:[...g,r.id]});let v=()=>this.setState(r.storyId,{cursor:y,ancestors:g}),b=!1;try{let E=f(...h);return E instanceof Promise?(b=!0,E.finally(v)):E}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({...l,status:p instanceof Promise?"active":"done"}),p instanceof Promise?p.then(f=>(this.update({...l,status:"done"}),f),u):p}catch(d){return u(d)}}update(e){var t;(t=this.channel)==null||t.emit(_n.CALL,e),this.setState(e.storyId,({calls:r})=>{let n=r.concat(e).reduce((i,o)=>Object.assign(i,{[o.id]:o}),{});return{calls:Object.values(n).sort((i,o)=>i.id.localeCompare(o.id,void 0,{numeric:!0}))}}),this.sync(e.storyId)}sync(e){let t=()=>{var u,d,p;let{isLocked:r,isPlaying:n}=this.getState(e),i=this.getLog(e),o=(u=i.filter(({ancestors:f})=>!f.length).find(f=>f.status==="waiting"))==null?void 0:u.callId,s=i.some(f=>f.status==="active");if(this.detached||r||s||i.length===0){let f={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:i};(d=this.channel)==null||d.emit(_n.SYNC,f);return}let a=i.some(f=>f.status==="done"||f.status==="error"),l={controlStates:{detached:this.detached,start:a,back:a,goto:!0,next:n,end:n},logItems:i,pausedAt:o};(p=this.channel)==null||p.emit(_n.SYNC,l)};this.setState(e,({syncTimeout:r})=>(clearTimeout(r),{syncTimeout:setTimeout(t,0)}))}};function hl(e,t={}){var r,n,i,o,s,a,l,u;try{let d=!1,p=!1;return(i=(n=(r=fe.window)==null?void 0:r.location)==null?void 0:n.search)!=null&&i.includes("instrument=true")?d=!0:(a=(s=(o=fe.window)==null?void 0:o.location)==null?void 0:s.search)!=null&&a.includes("instrument=false")&&(p=!0),((l=fe.window)==null?void 0:l.parent)===fe.window&&!d||p?e:(fe.window&&!fe.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(fe.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new $$),((u=fe.window)==null?void 0:u.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(d){return gt.warn(d),e}}function U$(e,t){let r=e;for(;r!=null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function V$(e){if(typeof e!="function")return!1;let t=Object.getOwnPropertyDescriptor(e,"prototype");return t?!t.writable:!1}var qS=Object.defineProperty,K=(e,t)=>qS(e,"name",{value:t,configurable:!0}),pm=(e,t)=>{for(var r in t)qS(e,r,{get:t[r],enumerable:!0})},fn={};pm(fn,{addChainableMethod:()=>Sm,addLengthGuard:()=>gl,addMethod:()=>Tm,addProperty:()=>Em,checkError:()=>Er,compareByInspect:()=>Lu,eql:()=>a0,expectTypes:()=>$S,flag:()=>Ce,getActual:()=>Uc,getMessage:()=>mm,getName:()=>Jc,getOperator:()=>Pm,getOwnEnumerableProperties:()=>Am,getOwnEnumerablePropertySymbols:()=>Om,getPathInfo:()=>vm,hasProperty:()=>Vc,inspect:()=>Ve,isNaN:()=>Fu,isNumeric:()=>jt,isProxyEnabled:()=>yl,isRegExp:()=>Bu,objDisplay:()=>to,overwriteChainableMethod:()=>Rm,overwriteMethod:()=>_m,overwriteProperty:()=>wm,proxify:()=>xs,test:()=>fm,transferFlags:()=>en,type:()=>Qe});var Er={};pm(Er,{compatibleConstructor:()=>DS,compatibleInstance:()=>kS,compatibleMessage:()=>LS,getConstructorName:()=>FS,getMessage:()=>BS});function $c(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}K($c,"isErrorInstance");function jS(e){return Object.prototype.toString.call(e)==="[object RegExp]"}K(jS,"isRegExp");function kS(e,t){return $c(t)&&e===t}K(kS,"compatibleInstance");function DS(e,t){return $c(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t=="object"||typeof t=="function")&&t.prototype?e.constructor===t||e instanceof t:!1}K(DS,"compatibleConstructor");function LS(e,t){let r=typeof e=="string"?e:e.message;return jS(t)?t.test(r):typeof t=="string"?r.indexOf(t)!==-1:!1}K(LS,"compatibleMessage");function FS(e){let t=e;return $c(e)?t=e.constructor.name:typeof e=="function"&&(t=e.name,t===""&&(t=new e().name||t)),t}K(FS,"getConstructorName");function BS(e){let t="";return e&&e.message?t=e.message:typeof e=="string"&&(t=e),t}K(BS,"getMessage");function Ce(e,t,r){let n=e.__flags||(e.__flags=Object.create(null));if(arguments.length===3)n[t]=r;else return n[t]}K(Ce,"flag");function fm(e,t){let r=Ce(e,"negate"),n=t[0];return r?!n:n}K(fm,"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)}K(Qe,"type");var J$="captureStackTrace"in Error,$l,He=($l=class extends Error{constructor(t="Unspecified AssertionError",r,n){super(t);ur(this,"message");this.message=t,J$&&Error.captureStackTrace(this,n||$l);for(let i in r)i in this||(this[i]=r[i])}get name(){return"AssertionError"}get ok(){return!1}toJSON(t){return{...this,name:this.name,message:this.message,ok:!1,stack:t!==!1?this.stack:void 0}}},K($l,"AssertionError"),$l);function $S(e,t){let r=Ce(e,"message"),n=Ce(e,"ssfi");r=r?r+": ":"",e=Ce(e,"object"),t=t.map(function(s){return s.toLowerCase()}),t.sort();let i=t.map(function(s,a){let l=~["a","e","i","o","u"].indexOf(s.charAt(0))?"an":"a";return(t.length>1&&a===t.length-1?"or ":"")+l+" "+s}).join(", "),o=Qe(e).toLowerCase();if(!t.some(function(s){return o===s}))throw new He(r+"object tested must be "+i+", but "+o+" given",void 0,n)}K($S,"expectTypes");function Uc(e,t){return t.length>4?t[4]:e._obj}K(Uc,"getActual");var Mb={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"]},H$={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},as="…";function US(e,t){let r=Mb[H$[t]]||Mb[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}K(US,"colorise");function VS({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:i=!1,maxArrayLength:o=1/0,breakLength:s=1/0,seen:a=[],truncate:l=1/0,stylize:u=String}={},d){let p={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!i,maxArrayLength:Number(o),breakLength:Number(s),truncate:Number(l),seen:a,inspect:d,stylize:u};return p.colors&&(p.stylize=US),p}K(VS,"normaliseOptions");function JS(e){return e>="\uD800"&&e<="\uDBFF"}K(JS,"isHighSurrogate");function Xn(e,t,r=as){e=String(e);let n=r.length,i=e.length;if(n>t&&i>n)return r;if(i>t&&i>n){let o=t-n;return o>0&&JS(e[o-1])&&(o=o-1),`${e.slice(0,o)}${r}`}return e}K(Xn,"truncate");function Fr(e,t,r,n=", "){r=r||t.inspect;let i=e.length;if(i===0)return"";let o=t.truncate,s="",a="",l="";for(let u=0;u<i;u+=1){let d=u+1===e.length,p=u+2===e.length;l=`${as}(${e.length-u})`;let f=e[u];t.truncate=o-s.length-(d?0:n.length);let h=a||r(f,t)+(d?"":n),y=s.length+h.length,g=y+l.length;if(d&&y>o&&s.length+l.length<=o||!d&&!p&&g>o||(a=d?"":r(e[u+1],t)+(p?"":n),!d&&p&&g>o&&y+a.length>o))break;if(s+=h,!d&&!p&&y+a.length>=o){l=`${as}(${e.length-u-1})`;break}l=""}return`${s}${l}`}K(Fr,"inspectList");function HS(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}K(HS,"quoteComplexKey");function ls([e,t],r){return r.truncate-=2,typeof e=="string"?e=HS(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}K(ls,"inspectProperty");function GS(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=Fr(e,t);t.truncate-=n.length;let i="";return r.length&&(i=Fr(r.map(o=>[o,e[o]]),t,ls)),`[ ${n}${i?`, ${i}`:""} ]`}K(GS,"inspectArray");var G$=K(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function on(e,t){let r=G$(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let i="";for(let s=0;s<e.length;s++){let a=`${t.stylize(Xn(e[s],t.truncate),"number")}${s===e.length-1?"":", "}`;if(t.truncate-=a.length,e[s]!==e.length&&t.truncate<=3){i+=`${as}(${e.length-e[s]+1})`;break}i+=a}let o="";return n.length&&(o=Fr(n.map(s=>[s,e[s]]),t,ls)),`${r}[ ${i}${o?`, ${o}`:""} ]`}K(on,"inspectTypedArray");function WS(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),i=n[0];return t.stylize(`${i}T${Xn(n[1],t.truncate-i.length-1)}`,"date")}K(WS,"inspectDate");function ef(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${Xn(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}K(ef,"inspectFunction");function KS([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}K(KS,"inspectMapEntry");function zS(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}K(zS,"mapToEntries");function YS(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Fr(zS(e),t,KS)} }`)}K(YS,"inspectMap");var W$=Number.isNaN||(e=>e!==e);function tf(e,t){return W$(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(Xn(String(e),t.truncate),"number")}K(tf,"inspectNumber");function rf(e,t){let r=Xn(e.toString(),t.truncate-1);return r!==as&&(r+="n"),t.stylize(r,"bigint")}K(rf,"inspectBigInt");function XS(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),i=e.source;return t.stylize(`/${Xn(i,n)}/${r}`,"regexp")}K(XS,"inspectRegExp");function QS(e){let t=[];return e.forEach(r=>{t.push(r)}),t}K(QS,"arrayFromSet");function ZS(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Fr(QS(e),t)} }`)}K(ZS,"inspectSet");var qb=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),K$={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},z$=16;function e0(e){return K$[e]||`\\u${`0000${e.charCodeAt(0).toString(z$)}`.slice(-4)}`}K(e0,"escape");function nf(e,t){return qb.test(e)&&(e=e.replace(qb,e0)),t.stylize(`'${Xn(e,t.truncate-2)}'`,"string")}K(nf,"inspectString");function of(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}K(of,"inspectSymbol");var Y$=K(()=>"Promise{…}","getPromiseValue"),X$=Y$;function ca(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 i=Fr(r.map(a=>[a,e[a]]),t,ls),o=Fr(n.map(a=>[a,e[a]]),t,ls);t.seen.pop();let s="";return i&&o&&(s=", "),`{ ${i}${s}${o} }`}K(ca,"inspectObject");var op=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function t0(e,t){let r="";return op&&op in e&&(r=e[op]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${ca(e,t)}`}K(t0,"inspectClass");function r0(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Fr(e,t)} ]`)}K(r0,"inspectArguments");var Q$=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function n0(e,t){let r=Object.getOwnPropertyNames(e).filter(s=>Q$.indexOf(s)===-1),n=e.name;t.truncate-=n.length;let i="";if(typeof e.message=="string"?i=Xn(e.message,t.truncate):r.unshift("message"),i=i?`: ${i}`:"",t.truncate-=i.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=Fr(r.map(s=>[s,e[s]]),t,ls);return`${n}${i}${o?` { ${o} }`:""}`}K(n0,"inspectObject");function i0([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}K(i0,"inspectAttribute");function ju(e,t){return Fr(e,t,o0,`
|
|
210
|
-
`)}K(ju,"inspectNodeCollection");function o0(e,t){switch(e.nodeType){case 1:return hm(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}K(o0,"inspectNode");function hm(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),i=t.stylize(`<${n}`,"special"),o=t.stylize(">","special"),s=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let a="";r.length>0&&(a+=" ",a+=Fr(r.map(d=>[d,e.getAttribute(d)]),t,i0," ")),t.truncate-=a.length;let l=t.truncate,u=ju(e.children,t);return u&&u.length>l&&(u=`${as}(${e.children.length})`),`${i}${a}${o}${u}${s}`}K(hm,"inspectHTML");var Z$=typeof Symbol=="function"&&typeof Symbol.for=="function",sp=Z$?Symbol.for("chai/inspect"):"@@chai/inspect",ap=Symbol.for("nodejs.util.inspect.custom"),jb=new WeakMap,kb={},Db={undefined:K((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:K((e,t)=>t.stylize("null","null"),"null"),boolean:K((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:K((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:tf,Number:tf,bigint:rf,BigInt:rf,string:nf,String:nf,function:ef,Function:ef,symbol:of,Symbol:of,Array:GS,Date:WS,Map:YS,Set:ZS,RegExp:XS,Promise:X$,WeakSet:K((e,t)=>t.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:K((e,t)=>t.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:r0,Int8Array:on,Uint8Array:on,Uint8ClampedArray:on,Int16Array:on,Uint16Array:on,Int32Array:on,Uint32Array:on,Float32Array:on,Float64Array:on,Generator:K(()=>"","Generator"),DataView:K(()=>"","DataView"),ArrayBuffer:K(()=>"","ArrayBuffer"),Error:n0,HTMLCollection:ju,NodeList:ju},eU=K((e,t,r)=>sp in e&&typeof e[sp]=="function"?e[sp](t):ap in e&&typeof e[ap]=="function"?e[ap](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&jb.has(e.constructor)?jb.get(e.constructor)(e,t):kb[r]?kb[r](e,t):"","inspectCustom"),tU=Object.prototype.toString;function ku(e,t={}){let r=VS(t,ku),{customInspect:n}=r,i=e===null?"null":typeof e;if(i==="object"&&(i=tU.call(e).slice(8,-1)),i in Db)return Db[i](e,r);if(n&&e){let s=eU(e,r,i);if(s)return typeof s=="string"?s:ku(s,r)}let o=e?Object.getPrototypeOf(e):!1;return o===Object.prototype||o===null?ca(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?hm(e,r):"constructor"in e?e.constructor!==Object?t0(e,r):ca(e,r):e===Object(e)?ca(e,r):r.stylize(String(e),i)}K(ku,"inspect");var sr={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function Ve(e,t,r,n){let i={colors:n,depth:typeof r>"u"?2:r,showHidden:t,truncate:sr.truncateThreshold?sr.truncateThreshold:1/0};return ku(e,i)}K(Ve,"inspect");function to(e){let t=Ve(e),r=Object.prototype.toString.call(e);if(sr.truncateThreshold&&t.length>=sr.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}K(to,"objDisplay");function mm(e,t){let r=Ce(e,"negate"),n=Ce(e,"object"),i=t[3],o=Uc(e,t),s=r?t[2]:t[1],a=Ce(e,"message");return typeof s=="function"&&(s=s()),s=s||"",s=s.replace(/#\{this\}/g,function(){return to(n)}).replace(/#\{act\}/g,function(){return to(o)}).replace(/#\{exp\}/g,function(){return to(i)}),a?a+": "+s:s}K(mm,"getMessage");function en(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 i in n)(r||i!=="object"&&i!=="ssfi"&&i!=="lockSsfi"&&i!="message")&&(t.__flags[i]=n[i])}K(en,"transferFlags");function sf(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)}K(sf,"type");function ym(){this._key="chai/deep-eql__"+Math.random()+Date.now()}K(ym,"FakeMap");ym.prototype={get:K(function(e){return e[this._key]},"get"),set:K(function(e,t){Object.isExtensible(e)&&Object.defineProperty(e,this._key,{value:t,configurable:!0})},"set")};var s0=typeof WeakMap=="function"?WeakMap:ym;function af(e,t,r){if(!r||ho(e)||ho(t))return null;var n=r.get(e);if(n){var i=n.get(t);if(typeof i=="boolean")return i}return null}K(af,"memoizeCompare");function ea(e,t,r,n){if(!(!r||ho(e)||ho(t))){var i=r.get(e);i?i.set(t,n):(i=new s0,i.set(t,n),r.set(e,i))}}K(ea,"memoizeSet");var a0=ml;function ml(e,t,r){if(r&&r.comparator)return lf(e,t,r);var n=gm(e,t);return n!==null?n:lf(e,t,r)}K(ml,"deepEqual");function gm(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t?!0:ho(e)||ho(t)?!1:null}K(gm,"simpleEqual");function lf(e,t,r){r=r||{},r.memoize=r.memoize===!1?!1:r.memoize||new s0;var n=r&&r.comparator,i=af(e,t,r.memoize);if(i!==null)return i;var o=af(t,e,r.memoize);if(o!==null)return o;if(n){var s=n(e,t);if(s===!1||s===!0)return ea(e,t,r.memoize,s),s;var a=gm(e,t);if(a!==null)return a}var l=sf(e);if(l!==sf(t))return ea(e,t,r.memoize,!1),!1;ea(e,t,r.memoize,!0);var u=l0(e,t,l,r);return ea(e,t,r.memoize,u),u}K(lf,"extensiveDeepEqual");function l0(e,t,r,n){switch(r){case"String":case"Number":case"Boolean":case"Date":return ml(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return e===t;case"Error":return bm(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 _i(e,t,n);case"RegExp":return u0(e,t);case"Generator":return c0(e,t,n);case"DataView":return _i(new Uint8Array(e.buffer),new Uint8Array(t.buffer),n);case"ArrayBuffer":return _i(new Uint8Array(e),new Uint8Array(t),n);case"Set":return uf(e,t,n);case"Map":return uf(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 p0(e,t,n)}}K(l0,"extensiveDeepEqualByType");function u0(e,t){return e.toString()===t.toString()}K(u0,"regexpEqual");function uf(e,t,r){try{if(e.size!==t.size)return!1;if(e.size===0)return!0}catch{return!1}var n=[],i=[];return e.forEach(K(function(o,s){n.push([o,s])},"gatherEntries")),t.forEach(K(function(o,s){i.push([o,s])},"gatherEntries")),_i(n.sort(),i.sort(),r)}K(uf,"entriesEqual");function _i(e,t,r){var n=e.length;if(n!==t.length)return!1;if(n===0)return!0;for(var i=-1;++i<n;)if(ml(e[i],t[i],r)===!1)return!1;return!0}K(_i,"iterableEqual");function c0(e,t,r){return _i(Du(e),Du(t),r)}K(c0,"generatorEqual");function d0(e){return typeof Symbol<"u"&&typeof e=="object"&&typeof Symbol.iterator<"u"&&typeof e[Symbol.iterator]=="function"}K(d0,"hasIteratorFunction");function cf(e){if(d0(e))try{return Du(e[Symbol.iterator]())}catch{return[]}return[]}K(cf,"getIteratorEntries");function Du(e){for(var t=e.next(),r=[t.value];t.done===!1;)t=e.next(),r.push(t.value);return r}K(Du,"getGeneratorEntries");function df(e){var t=[];for(var r in e)t.push(r);return t}K(df,"getEnumerableKeys");function pf(e){for(var t=[],r=Object.getOwnPropertySymbols(e),n=0;n<r.length;n+=1){var i=r[n];Object.getOwnPropertyDescriptor(e,i).enumerable&&t.push(i)}return t}K(pf,"getEnumerableSymbols");function bm(e,t,r,n){var i=r.length;if(i===0)return!0;for(var o=0;o<i;o+=1)if(ml(e[r[o]],t[r[o]],n)===!1)return!1;return!0}K(bm,"keysEqual");function p0(e,t,r){var n=df(e),i=df(t),o=pf(e),s=pf(t);if(n=n.concat(o),i=i.concat(s),n.length&&n.length===i.length)return _i(ff(n).sort(),ff(i).sort())===!1?!1:bm(e,t,n,r);var a=cf(e),l=cf(t);return a.length&&a.length===l.length?(a.sort(),l.sort(),_i(a,l,r)):n.length===0&&a.length===0&&i.length===0&&l.length===0}K(p0,"objectEqual");function ho(e){return e===null||typeof e!="object"}K(ho,"isPrimitive");function ff(e){return e.map(K(function(t){return typeof t=="symbol"?t.toString():t},"mapSymbol"))}K(ff,"mapSymbols");function Vc(e,t){return typeof e>"u"||e===null?!1:t in Object(e)}K(Vc,"hasProperty");function f0(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})}K(f0,"parsePath");function hf(e,t,r){let n=e,i=null;r=typeof r>"u"?t.length:r;for(let o=0;o<r;o++){let s=t[o];n&&(typeof s.p>"u"?n=n[s.i]:n=n[s.p],o===r-1&&(i=n))}return i}K(hf,"internalGetPathValue");function vm(e,t){let r=f0(t),n=r[r.length-1],i={parent:r.length>1?hf(e,r,r.length-1):e,name:n.p||n.i,value:hf(e,r)};return i.exists=Vc(i.parent,i.name),i}K(vm,"getPathInfo");var Ul,L=(Ul=class{constructor(e,t,r,n){ur(this,"__flags",{});return Ce(this,"ssfi",r||Ul),Ce(this,"lockSsfi",n),Ce(this,"object",e),Ce(this,"message",t),Ce(this,"eql",sr.deepEqual||a0),xs(this)}static get includeStack(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),sr.includeStack}static set includeStack(e){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),sr.includeStack=e}static get showDiff(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),sr.showDiff}static set showDiff(e){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),sr.showDiff=e}static addProperty(e,t){Em(this.prototype,e,t)}static addMethod(e,t){Tm(this.prototype,e,t)}static addChainableMethod(e,t,r){Sm(this.prototype,e,t,r)}static overwriteProperty(e,t){wm(this.prototype,e,t)}static overwriteMethod(e,t){_m(this.prototype,e,t)}static overwriteChainableMethod(e,t,r){Rm(this.prototype,e,t,r)}assert(e,t,r,n,i,o){let s=fm(this,arguments);if(o!==!1&&(o=!0),n===void 0&&i===void 0&&(o=!1),sr.showDiff!==!0&&(o=!1),!s){t=mm(this,arguments);let a={actual:Uc(this,arguments),expected:n,showDiff:o},l=Pm(this,arguments);throw l&&(a.operator=l),new He(t,a,sr.includeStack?this.assert:Ce(this,"ssfi"))}}get _obj(){return Ce(this,"object")}set _obj(e){Ce(this,"object",e)}},K(Ul,"Assertion"),Ul);function yl(){return sr.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}K(yl,"isProxyEnabled");function Em(e,t,r){r=r===void 0?function(){}:r,Object.defineProperty(e,t,{get:K(function n(){!yl()&&!Ce(this,"lockSsfi")&&Ce(this,"ssfi",n);let i=r.call(this);if(i!==void 0)return i;let o=new L;return en(this,o),o},"propertyGetter"),configurable:!0})}K(Em,"addProperty");var rU=Object.getOwnPropertyDescriptor(function(){},"length");function gl(e,t,r){return rU.configurable&&Object.defineProperty(e,"length",{get:K(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}K(gl,"addLengthGuard");function h0(e){let t=Object.getOwnPropertyNames(e);function r(i){t.indexOf(i)===-1&&t.push(i)}K(r,"addProperty");let n=Object.getPrototypeOf(e);for(;n!==null;)Object.getOwnPropertyNames(n).forEach(r),n=Object.getPrototypeOf(n);return t}K(h0,"getProperties");var Lb=["__flags","__methods","_obj","assert"];function xs(e,t){return yl()?new Proxy(e,{get:K(function r(n,i){if(typeof i=="string"&&sr.proxyExcludedKeys.indexOf(i)===-1&&!Reflect.has(n,i)){if(t)throw Error("Invalid Chai property: "+t+"."+i+'. See docs for proper usage of "'+t+'".');let o=null,s=4;throw h0(n).forEach(function(a){if(!Object.prototype.hasOwnProperty(a)&&Lb.indexOf(a)===-1){let l=m0(i,a,s);l<s&&(o=a,s=l)}}),Error(o!==null?"Invalid Chai property: "+i+'. Did you mean "'+o+'"?':"Invalid Chai property: "+i)}return Lb.indexOf(i)===-1&&!Ce(n,"lockSsfi")&&Ce(n,"ssfi",r),Reflect.get(n,i)},"proxyGetter")}):e}K(xs,"proxify");function m0(e,t,r){if(Math.abs(e.length-t.length)>=r)return r;let n=[];for(let i=0;i<=e.length;i++)n[i]=Array(t.length+1).fill(0),n[i][0]=i;for(let i=0;i<t.length;i++)n[0][i]=i;for(let i=1;i<=e.length;i++){let o=e.charCodeAt(i-1);for(let s=1;s<=t.length;s++){if(Math.abs(i-s)>=r){n[i][s]=r;continue}n[i][s]=Math.min(n[i-1][s]+1,n[i][s-1]+1,n[i-1][s-1]+(o===t.charCodeAt(s-1)?0:1))}}return n[e.length][t.length]}K(m0,"stringDistanceCapped");function Tm(e,t,r){let n=K(function(){Ce(this,"lockSsfi")||Ce(this,"ssfi",n);let i=r.apply(this,arguments);if(i!==void 0)return i;let o=new L;return en(this,o),o},"methodWrapper");gl(n,t,!1),e[t]=xs(n,t)}K(Tm,"addMethod");function wm(e,t,r){let n=Object.getOwnPropertyDescriptor(e,t),i=K(function(){},"_super");n&&typeof n.get=="function"&&(i=n.get),Object.defineProperty(e,t,{get:K(function o(){!yl()&&!Ce(this,"lockSsfi")&&Ce(this,"ssfi",o);let s=Ce(this,"lockSsfi");Ce(this,"lockSsfi",!0);let a=r(i).call(this);if(Ce(this,"lockSsfi",s),a!==void 0)return a;let l=new L;return en(this,l),l},"overwritingPropertyGetter"),configurable:!0})}K(wm,"overwriteProperty");function _m(e,t,r){let n=e[t],i=K(function(){throw new Error(t+" is not a function")},"_super");n&&typeof n=="function"&&(i=n);let o=K(function(){Ce(this,"lockSsfi")||Ce(this,"ssfi",o);let s=Ce(this,"lockSsfi");Ce(this,"lockSsfi",!0);let a=r(i).apply(this,arguments);if(Ce(this,"lockSsfi",s),a!==void 0)return a;let l=new L;return en(this,l),l},"overwritingMethodWrapper");gl(o,t,!1),e[t]=xs(o,t)}K(_m,"overwriteMethod");var nU=typeof Object.setPrototypeOf=="function",Fb=K(function(){},"testFn"),iU=Object.getOwnPropertyNames(Fb).filter(function(e){let t=Object.getOwnPropertyDescriptor(Fb,e);return typeof t!="object"?!0:!t.configurable}),oU=Function.prototype.call,sU=Function.prototype.apply;function Sm(e,t,r,n){typeof n!="function"&&(n=K(function(){},"chainingBehavior"));let i={method:r,chainingBehavior:n};e.__methods||(e.__methods={}),e.__methods[t]=i,Object.defineProperty(e,t,{get:K(function(){i.chainingBehavior.call(this);let o=K(function(){Ce(this,"lockSsfi")||Ce(this,"ssfi",o);let s=i.method.apply(this,arguments);if(s!==void 0)return s;let a=new L;return en(this,a),a},"chainableMethodWrapper");if(gl(o,t,!0),nU){let s=Object.create(this);s.call=oU,s.apply=sU,Object.setPrototypeOf(o,s)}else Object.getOwnPropertyNames(e).forEach(function(s){if(iU.indexOf(s)!==-1)return;let a=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(o,s,a)});return en(this,o),xs(o)},"chainableMethodGetter"),configurable:!0})}K(Sm,"addChainableMethod");function Rm(e,t,r,n){let i=e.__methods[t],o=i.chainingBehavior;i.chainingBehavior=K(function(){let a=n(o).call(this);if(a!==void 0)return a;let l=new L;return en(this,l),l},"overwritingChainableMethodGetter");let s=i.method;i.method=K(function(){let a=r(s).apply(this,arguments);if(a!==void 0)return a;let l=new L;return en(this,l),l},"overwritingChainableMethodWrapper")}K(Rm,"overwriteChainableMethod");function Lu(e,t){return Ve(e)<Ve(t)?-1:1}K(Lu,"compareByInspect");function Om(e){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}K(Om,"getOwnEnumerablePropertySymbols");function Am(e){return Object.keys(e).concat(Om(e))}K(Am,"getOwnEnumerableProperties");var Fu=Number.isNaN;function y0(e){let t=Qe(e);return["Array","Object","Function"].indexOf(t)!==-1}K(y0,"isObjectType");function Pm(e,t){let r=Ce(e,"operator"),n=Ce(e,"negate"),i=t[3],o=n?t[2]:t[1];if(r)return r;if(typeof o=="function"&&(o=o()),o=o||"",!o||/\shave\s/.test(o))return;let s=y0(i);return/\snot\s/.test(o)?s?"notDeepStrictEqual":"notStrictEqual":s?"deepStrictEqual":"strictEqual"}K(Pm,"getOperator");function Jc(e){return e.name}K(Jc,"getName");function Bu(e){return Object.prototype.toString.call(e)==="[object RegExp]"}K(Bu,"isRegExp");function jt(e){return["Number","BigInt"].includes(Qe(e))}K(jt,"isNumeric");var{flag:H}=fn;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(e){L.addProperty(e)});L.addProperty("not",function(){H(this,"negate",!0)});L.addProperty("deep",function(){H(this,"deep",!0)});L.addProperty("nested",function(){H(this,"nested",!0)});L.addProperty("own",function(){H(this,"own",!0)});L.addProperty("ordered",function(){H(this,"ordered",!0)});L.addProperty("any",function(){H(this,"any",!0),H(this,"all",!1)});L.addProperty("all",function(){H(this,"all",!0),H(this,"any",!1)});var Bb={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function Cm(e,t){t&&H(this,"message",t),e=e.toLowerCase();let r=H(this,"object"),n=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ",i=Qe(r).toLowerCase();Bb.function.includes(e)?this.assert(Bb[e].includes(i),"expected #{this} to be "+n+e,"expected #{this} not to be "+n+e):this.assert(e===i,"expected #{this} to be "+n+e,"expected #{this} not to be "+n+e)}K(Cm,"an");L.addChainableMethod("an",Cm);L.addChainableMethod("a",Cm);function g0(e,t){return Fu(e)&&Fu(t)||e===t}K(g0,"SameValueZero");function bl(){H(this,"contains",!0)}K(bl,"includeChainingBehavior");function vl(e,t){t&&H(this,"message",t);let r=H(this,"object"),n=Qe(r).toLowerCase(),i=H(this,"message"),o=H(this,"negate"),s=H(this,"ssfi"),a=H(this,"deep"),l=a?"deep ":"",u=a?H(this,"eql"):g0;i=i?i+": ":"";let d=!1;switch(n){case"string":d=r.indexOf(e)!==-1;break;case"weakset":if(a)throw new He(i+"unable to use .deep.include with WeakSet",void 0,s);d=r.has(e);break;case"map":r.forEach(function(p){d=d||u(p,e)});break;case"set":a?r.forEach(function(p){d=d||u(p,e)}):d=r.has(e);break;case"array":a?d=r.some(function(p){return u(p,e)}):d=r.indexOf(e)!==-1;break;default:{if(e!==Object(e))throw new He(i+"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,s);let p=Object.keys(e),f=null,h=0;if(p.forEach(function(y){let g=new L(r);if(en(this,g,!0),H(g,"lockSsfi",!0),!o||p.length===1){g.property(y,e[y]);return}try{g.property(y,e[y])}catch(v){if(!Er.compatibleConstructor(v,He))throw v;f===null&&(f=v),h++}},this),o&&p.length>1&&h===p.length)throw f;return}}this.assert(d,"expected #{this} to "+l+"include "+Ve(e),"expected #{this} to not "+l+"include "+Ve(e))}K(vl,"include");L.addChainableMethod("include",vl,bl);L.addChainableMethod("contain",vl,bl);L.addChainableMethod("contains",vl,bl);L.addChainableMethod("includes",vl,bl);L.addProperty("ok",function(){this.assert(H(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")});L.addProperty("true",function(){this.assert(H(this,"object")===!0,"expected #{this} to be true","expected #{this} to be false",!H(this,"negate"))});L.addProperty("numeric",function(){let e=H(this,"object");this.assert(["Number","BigInt"].includes(Qe(e)),"expected #{this} to be numeric","expected #{this} to not be numeric",!H(this,"negate"))});L.addProperty("callable",function(){let e=H(this,"object"),t=H(this,"ssfi"),r=H(this,"message"),n=r?`${r}: `:"",i=H(this,"negate"),o=i?`${n}expected ${Ve(e)} not to be a callable function`:`${n}expected ${Ve(e)} to be a callable function`,s=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(Qe(e));if(s&&i||!s&&!i)throw new He(o,void 0,t)});L.addProperty("false",function(){this.assert(H(this,"object")===!1,"expected #{this} to be false","expected #{this} to be true",!!H(this,"negate"))});L.addProperty("null",function(){this.assert(H(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null")});L.addProperty("undefined",function(){this.assert(H(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined")});L.addProperty("NaN",function(){this.assert(Fu(H(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")});function xm(){let e=H(this,"object");this.assert(e!=null,"expected #{this} to exist","expected #{this} to not exist")}K(xm,"assertExist");L.addProperty("exist",xm);L.addProperty("exists",xm);L.addProperty("empty",function(){let e=H(this,"object"),t=H(this,"ssfi"),r=H(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 He(r+".empty was passed a weak collection",void 0,t);case"function":{let i=r+".empty was passed a function "+Jc(e);throw new He(i.trim(),void 0,t)}default:if(e!==Object(e))throw new He(r+".empty was passed non-string primitive "+Ve(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 Nm(){let e=H(this,"object"),t=Qe(e);this.assert(t==="Arguments","expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments")}K(Nm,"checkArguments");L.addProperty("arguments",Nm);L.addProperty("Arguments",Nm);function Hc(e,t){t&&H(this,"message",t);let r=H(this,"object");if(H(this,"deep")){let n=H(this,"lockSsfi");H(this,"lockSsfi",!0),this.eql(e),H(this,"lockSsfi",n)}else this.assert(e===r,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0)}K(Hc,"assertEqual");L.addMethod("equal",Hc);L.addMethod("equals",Hc);L.addMethod("eq",Hc);function Im(e,t){t&&H(this,"message",t);let r=H(this,"eql");this.assert(r(e,H(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0)}K(Im,"assertEql");L.addMethod("eql",Im);L.addMethod("eqls",Im);function Gc(e,t){t&&H(this,"message",t);let r=H(this,"object"),n=H(this,"doLength"),i=H(this,"message"),o=i?i+": ":"",s=H(this,"ssfi"),a=Qe(r).toLowerCase(),l=Qe(e).toLowerCase();if(n&&a!=="map"&&a!=="set"&&new L(r,i,s,!0).to.have.property("length"),!n&&a==="date"&&l!=="date")throw new He(o+"the argument to above must be a date",void 0,s);if(!jt(e)&&(n||jt(r)))throw new He(o+"the argument to above must be a number",void 0,s);if(!n&&a!=="date"&&!jt(r)){let u=a==="string"?"'"+r+"'":r;throw new He(o+"expected "+u+" to be a number or a date",void 0,s)}if(n){let u="length",d;a==="map"||a==="set"?(u="size",d=r.size):d=r.length,this.assert(d>e,"expected #{this} to have a "+u+" above #{exp} but got #{act}","expected #{this} to not have a "+u+" above #{exp}",e,d)}else this.assert(r>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e)}K(Gc,"assertAbove");L.addMethod("above",Gc);L.addMethod("gt",Gc);L.addMethod("greaterThan",Gc);function Wc(e,t){t&&H(this,"message",t);let r=H(this,"object"),n=H(this,"doLength"),i=H(this,"message"),o=i?i+": ":"",s=H(this,"ssfi"),a=Qe(r).toLowerCase(),l=Qe(e).toLowerCase(),u,d=!0;if(n&&a!=="map"&&a!=="set"&&new L(r,i,s,!0).to.have.property("length"),!n&&a==="date"&&l!=="date")u=o+"the argument to least must be a date";else if(!jt(e)&&(n||jt(r)))u=o+"the argument to least must be a number";else if(!n&&a!=="date"&&!jt(r)){let p=a==="string"?"'"+r+"'":r;u=o+"expected "+p+" to be a number or a date"}else d=!1;if(d)throw new He(u,void 0,s);if(n){let p="length",f;a==="map"||a==="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)}K(Wc,"assertLeast");L.addMethod("least",Wc);L.addMethod("gte",Wc);L.addMethod("greaterThanOrEqual",Wc);function Kc(e,t){t&&H(this,"message",t);let r=H(this,"object"),n=H(this,"doLength"),i=H(this,"message"),o=i?i+": ":"",s=H(this,"ssfi"),a=Qe(r).toLowerCase(),l=Qe(e).toLowerCase(),u,d=!0;if(n&&a!=="map"&&a!=="set"&&new L(r,i,s,!0).to.have.property("length"),!n&&a==="date"&&l!=="date")u=o+"the argument to below must be a date";else if(!jt(e)&&(n||jt(r)))u=o+"the argument to below must be a number";else if(!n&&a!=="date"&&!jt(r)){let p=a==="string"?"'"+r+"'":r;u=o+"expected "+p+" to be a number or a date"}else d=!1;if(d)throw new He(u,void 0,s);if(n){let p="length",f;a==="map"||a==="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)}K(Kc,"assertBelow");L.addMethod("below",Kc);L.addMethod("lt",Kc);L.addMethod("lessThan",Kc);function zc(e,t){t&&H(this,"message",t);let r=H(this,"object"),n=H(this,"doLength"),i=H(this,"message"),o=i?i+": ":"",s=H(this,"ssfi"),a=Qe(r).toLowerCase(),l=Qe(e).toLowerCase(),u,d=!0;if(n&&a!=="map"&&a!=="set"&&new L(r,i,s,!0).to.have.property("length"),!n&&a==="date"&&l!=="date")u=o+"the argument to most must be a date";else if(!jt(e)&&(n||jt(r)))u=o+"the argument to most must be a number";else if(!n&&a!=="date"&&!jt(r)){let p=a==="string"?"'"+r+"'":r;u=o+"expected "+p+" to be a number or a date"}else d=!1;if(d)throw new He(u,void 0,s);if(n){let p="length",f;a==="map"||a==="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)}K(zc,"assertMost");L.addMethod("most",zc);L.addMethod("lte",zc);L.addMethod("lessThanOrEqual",zc);L.addMethod("within",function(e,t,r){r&&H(this,"message",r);let n=H(this,"object"),i=H(this,"doLength"),o=H(this,"message"),s=o?o+": ":"",a=H(this,"ssfi"),l=Qe(n).toLowerCase(),u=Qe(e).toLowerCase(),d=Qe(t).toLowerCase(),p,f=!0,h=u==="date"&&d==="date"?e.toISOString()+".."+t.toISOString():e+".."+t;if(i&&l!=="map"&&l!=="set"&&new L(n,o,a,!0).to.have.property("length"),!i&&l==="date"&&(u!=="date"||d!=="date"))p=s+"the arguments to within must be dates";else if((!jt(e)||!jt(t))&&(i||jt(n)))p=s+"the arguments to within must be numbers";else if(!i&&l!=="date"&&!jt(n)){let y=l==="string"?"'"+n+"'":n;p=s+"expected "+y+" to be a number or a date"}else f=!1;if(f)throw new He(p,void 0,a);if(i){let y="length",g;l==="map"||l==="set"?(y="size",g=n.size):g=n.length,this.assert(g>=e&&g<=t,"expected #{this} to have a "+y+" within "+h,"expected #{this} to not have a "+y+" within "+h)}else this.assert(n>=e&&n<=t,"expected #{this} to be within "+h,"expected #{this} to not be within "+h)});function Mm(e,t){t&&H(this,"message",t);let r=H(this,"object"),n=H(this,"ssfi"),i=H(this,"message"),o;try{o=r instanceof e}catch(a){throw a instanceof TypeError?(i=i?i+": ":"",new He(i+"The instanceof assertion needs a constructor but "+Qe(e)+" was given.",void 0,n)):a}let s=Jc(e);s==null&&(s="an unnamed constructor"),this.assert(o,"expected #{this} to be an instance of "+s,"expected #{this} to not be an instance of "+s)}K(Mm,"assertInstanceOf");L.addMethod("instanceof",Mm);L.addMethod("instanceOf",Mm);function qm(e,t,r){r&&H(this,"message",r);let n=H(this,"nested"),i=H(this,"own"),o=H(this,"message"),s=H(this,"object"),a=H(this,"ssfi"),l=typeof e;if(o=o?o+": ":"",n){if(l!=="string")throw new He(o+"the argument to property must be a string when using nested syntax",void 0,a)}else if(l!=="string"&&l!=="number"&&l!=="symbol")throw new He(o+"the argument to property must be a string, number, or symbol",void 0,a);if(n&&i)throw new He(o+'The "nested" and "own" flags cannot be combined.',void 0,a);if(s==null)throw new He(o+"Target cannot be null or undefined.",void 0,a);let u=H(this,"deep"),d=H(this,"negate"),p=n?vm(s,e):null,f=n?p.value:s[e],h=u?H(this,"eql"):(v,b)=>v===b,y="";u&&(y+="deep "),i&&(y+="own "),n&&(y+="nested "),y+="property ";let g;i?g=Object.prototype.hasOwnProperty.call(s,e):n?g=p.exists:g=Vc(s,e),(!d||arguments.length===1)&&this.assert(g,"expected #{this} to have "+y+Ve(e),"expected #{this} to not have "+y+Ve(e)),arguments.length>1&&this.assert(g&&h(t,f),"expected #{this} to have "+y+Ve(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+y+Ve(e)+" of #{act}",t,f),H(this,"object",f)}K(qm,"assertProperty");L.addMethod("property",qm);function jm(e,t,r){H(this,"own",!0),qm.apply(this,arguments)}K(jm,"assertOwnProperty");L.addMethod("ownProperty",jm);L.addMethod("haveOwnProperty",jm);function km(e,t,r){typeof t=="string"&&(r=t,t=null),r&&H(this,"message",r);let n=H(this,"object"),i=Object.getOwnPropertyDescriptor(Object(n),e),o=H(this,"eql");i&&t?this.assert(o(t,i),"expected the own property descriptor for "+Ve(e)+" on #{this} to match "+Ve(t)+", got "+Ve(i),"expected the own property descriptor for "+Ve(e)+" on #{this} to not match "+Ve(t),t,i,!0):this.assert(i,"expected #{this} to have an own property descriptor for "+Ve(e),"expected #{this} to not have an own property descriptor for "+Ve(e)),H(this,"object",i)}K(km,"assertOwnPropertyDescriptor");L.addMethod("ownPropertyDescriptor",km);L.addMethod("haveOwnPropertyDescriptor",km);function Dm(){H(this,"doLength",!0)}K(Dm,"assertLengthChain");function Lm(e,t){t&&H(this,"message",t);let r=H(this,"object"),n=Qe(r).toLowerCase(),i=H(this,"message"),o=H(this,"ssfi"),s="length",a;switch(n){case"map":case"set":s="size",a=r.size;break;default:new L(r,i,o,!0).to.have.property("length"),a=r.length}this.assert(a==e,"expected #{this} to have a "+s+" of #{exp} but got #{act}","expected #{this} to not have a "+s+" of #{act}",e,a)}K(Lm,"assertLength");L.addChainableMethod("length",Lm,Dm);L.addChainableMethod("lengthOf",Lm,Dm);function Fm(e,t){t&&H(this,"message",t);let r=H(this,"object");this.assert(e.exec(r),"expected #{this} to match "+e,"expected #{this} not to match "+e)}K(Fm,"assertMatch");L.addMethod("match",Fm);L.addMethod("matches",Fm);L.addMethod("string",function(e,t){t&&H(this,"message",t);let r=H(this,"object"),n=H(this,"message"),i=H(this,"ssfi");new L(r,n,i,!0).is.a("string"),this.assert(~r.indexOf(e),"expected #{this} to contain "+Ve(e),"expected #{this} to not contain "+Ve(e))});function Bm(e){let t=H(this,"object"),r=Qe(t),n=Qe(e),i=H(this,"ssfi"),o=H(this,"deep"),s,a="",l,u=!0,d=H(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")a=o?"deeply ":"",l=[],t.forEach(function(b,E){l.push(E)}),n!=="Array"&&(e=Array.prototype.slice.call(arguments));else{switch(l=Am(t),n){case"Array":if(arguments.length>1)throw new He(p,void 0,i);break;case"Object":if(arguments.length>1)throw new He(p,void 0,i);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 He(d+"keys required",void 0,i);let f=e.length,h=H(this,"any"),y=H(this,"all"),g=e,v=o?H(this,"eql"):(b,E)=>b===E;if(!h&&!y&&(y=!0),h&&(u=g.some(function(b){return l.some(function(E){return v(b,E)})})),y&&(u=g.every(function(b){return l.some(function(E){return v(b,E)})}),H(this,"contains")||(u=u&&e.length==l.length)),f>1){e=e.map(function(E){return Ve(E)});let b=e.pop();y&&(s=e.join(", ")+", and "+b),h&&(s=e.join(", ")+", or "+b)}else s=Ve(e[0]);s=(f>1?"keys ":"key ")+s,s=(H(this,"contains")?"contain ":"have ")+s,this.assert(u,"expected #{this} to "+a+s,"expected #{this} to not "+a+s,g.slice(0).sort(Lu),l.sort(Lu),!0)}K(Bm,"assertKeys");L.addMethod("keys",Bm);L.addMethod("key",Bm);function Yc(e,t,r){r&&H(this,"message",r);let n=H(this,"object"),i=H(this,"ssfi"),o=H(this,"message"),s=H(this,"negate")||!1;new L(n,o,i,!0).is.a("function"),(Bu(e)||typeof e=="string")&&(t=e,e=null);let a,l=!1;try{n()}catch(h){l=!0,a=h}let u=e===void 0&&t===void 0,d=!!(e&&t),p=!1,f=!1;if(u||!u&&!s){let h="an error";e instanceof Error?h="#{exp}":e&&(h=Er.getConstructorName(e));let y=a;if(a instanceof Error)y=a.toString();else if(typeof a=="string")y=a;else if(a&&(typeof a=="object"||typeof a=="function"))try{y=Er.getConstructorName(a)}catch{}this.assert(l,"expected #{this} to throw "+h,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),y)}if(e&&a&&(e instanceof Error&&Er.compatibleInstance(a,e)===s&&(d&&s?p=!0:this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a&&!s?" but #{act} was thrown":""),e.toString(),a.toString())),Er.compatibleConstructor(a,e)===s&&(d&&s?p=!0:this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&Er.getConstructorName(e),a instanceof Error?a.toString():a&&Er.getConstructorName(a)))),a&&t!==void 0&&t!==null){let h="including";Bu(t)&&(h="matching"),Er.compatibleMessage(a,t)===s&&(d&&s?f=!0:this.assert(s,"expected #{this} to throw error "+h+" #{exp} but got #{act}","expected #{this} to throw error not "+h+" #{exp}",t,Er.getMessage(a)))}p&&f&&this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&Er.getConstructorName(e),a instanceof Error?a.toString():a&&Er.getConstructorName(a)),H(this,"object",a)}K(Yc,"assertThrows");L.addMethod("throw",Yc);L.addMethod("throws",Yc);L.addMethod("Throw",Yc);function $m(e,t){t&&H(this,"message",t);let r=H(this,"object"),n=H(this,"itself"),i=typeof r=="function"&&!n?r.prototype[e]:r[e];this.assert(typeof i=="function","expected #{this} to respond to "+Ve(e),"expected #{this} to not respond to "+Ve(e))}K($m,"respondTo");L.addMethod("respondTo",$m);L.addMethod("respondsTo",$m);L.addProperty("itself",function(){H(this,"itself",!0)});function Um(e,t){t&&H(this,"message",t);let r=H(this,"object"),n=e(r);this.assert(n,"expected #{this} to satisfy "+to(e),"expected #{this} to not satisfy"+to(e),!H(this,"negate"),n)}K(Um,"satisfy");L.addMethod("satisfy",Um);L.addMethod("satisfies",Um);function Vm(e,t,r){r&&H(this,"message",r);let n=H(this,"object"),i=H(this,"message"),o=H(this,"ssfi");new L(n,i,o,!0).is.numeric;let s="A `delta` value is required for `closeTo`";if(t==null)throw new He(i?`${i}: ${s}`:s,void 0,o);if(new L(t,i,o,!0).is.numeric,s="A `expected` value is required for `closeTo`",e==null)throw new He(i?`${i}: ${s}`:s,void 0,o);new L(e,i,o,!0).is.numeric;let a=K(u=>u<0n?-u:u,"abs"),l=K(u=>parseFloat(parseFloat(u).toPrecision(12)),"strip");this.assert(l(a(n-e))<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t)}K(Vm,"closeTo");L.addMethod("closeTo",Vm);L.addMethod("approximately",Vm);function b0(e,t,r,n,i){let o=Array.from(t),s=Array.from(e);if(!n){if(s.length!==o.length)return!1;o=o.slice()}return s.every(function(a,l){if(i)return r?r(a,o[l]):a===o[l];if(!r){let u=o.indexOf(a);return u===-1?!1:(n||o.splice(u,1),!0)}return o.some(function(u,d){return r(a,u)?(n||o.splice(d,1),!0):!1})})}K(b0,"isSubsetOf");L.addMethod("members",function(e,t){t&&H(this,"message",t);let r=H(this,"object"),n=H(this,"message"),i=H(this,"ssfi");new L(r,n,i,!0).to.be.iterable,new L(e,n,i,!0).to.be.iterable;let o=H(this,"contains"),s=H(this,"ordered"),a,l,u;o?(a=s?"an ordered superset":"a superset",l="expected #{this} to be "+a+" of #{exp}",u="expected #{this} to not be "+a+" of #{exp}"):(a=s?"ordered members":"members",l="expected #{this} to have the same "+a+" as #{exp}",u="expected #{this} to not have the same "+a+" as #{exp}");let d=H(this,"deep")?H(this,"eql"):void 0;this.assert(b0(e,r,d,o,s),l,u,e,r,!0)});L.addProperty("iterable",function(e){e&&H(this,"message",e);let t=H(this,"object");this.assert(t!=null&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t)});function v0(e,t){t&&H(this,"message",t);let r=H(this,"object"),n=H(this,"message"),i=H(this,"ssfi"),o=H(this,"contains"),s=H(this,"deep"),a=H(this,"eql");new L(e,n,i,!0).to.be.an("array"),o?this.assert(e.some(function(l){return r.indexOf(l)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,r):s?this.assert(e.some(function(l){return a(r,l)}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",e,r):this.assert(e.indexOf(r)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",e,r)}K(v0,"oneOf");L.addMethod("oneOf",v0);function Jm(e,t,r){r&&H(this,"message",r);let n=H(this,"object"),i=H(this,"message"),o=H(this,"ssfi");new L(n,i,o,!0).is.a("function");let s;t?(new L(e,i,o,!0).to.have.property(t),s=e[t]):(new L(e,i,o,!0).is.a("function"),s=e()),n();let a=t==null?e():e[t],l=t==null?s:"."+t;H(this,"deltaMsgObj",l),H(this,"initialDeltaValue",s),H(this,"finalDeltaValue",a),H(this,"deltaBehavior","change"),H(this,"realDelta",a!==s),this.assert(s!==a,"expected "+l+" to change","expected "+l+" to not change")}K(Jm,"assertChanges");L.addMethod("change",Jm);L.addMethod("changes",Jm);function Hm(e,t,r){r&&H(this,"message",r);let n=H(this,"object"),i=H(this,"message"),o=H(this,"ssfi");new L(n,i,o,!0).is.a("function");let s;t?(new L(e,i,o,!0).to.have.property(t),s=e[t]):(new L(e,i,o,!0).is.a("function"),s=e()),new L(s,i,o,!0).is.a("number"),n();let a=t==null?e():e[t],l=t==null?s:"."+t;H(this,"deltaMsgObj",l),H(this,"initialDeltaValue",s),H(this,"finalDeltaValue",a),H(this,"deltaBehavior","increase"),H(this,"realDelta",a-s),this.assert(a-s>0,"expected "+l+" to increase","expected "+l+" to not increase")}K(Hm,"assertIncreases");L.addMethod("increase",Hm);L.addMethod("increases",Hm);function Gm(e,t,r){r&&H(this,"message",r);let n=H(this,"object"),i=H(this,"message"),o=H(this,"ssfi");new L(n,i,o,!0).is.a("function");let s;t?(new L(e,i,o,!0).to.have.property(t),s=e[t]):(new L(e,i,o,!0).is.a("function"),s=e()),new L(s,i,o,!0).is.a("number"),n();let a=t==null?e():e[t],l=t==null?s:"."+t;H(this,"deltaMsgObj",l),H(this,"initialDeltaValue",s),H(this,"finalDeltaValue",a),H(this,"deltaBehavior","decrease"),H(this,"realDelta",s-a),this.assert(a-s<0,"expected "+l+" to decrease","expected "+l+" to not decrease")}K(Gm,"assertDecreases");L.addMethod("decrease",Gm);L.addMethod("decreases",Gm);function E0(e,t){t&&H(this,"message",t);let r=H(this,"deltaMsgObj"),n=H(this,"initialDeltaValue"),i=H(this,"finalDeltaValue"),o=H(this,"deltaBehavior"),s=H(this,"realDelta"),a;o==="change"?a=Math.abs(i-n)===Math.abs(e):a=s===Math.abs(e),this.assert(a,"expected "+r+" to "+o+" by "+e,"expected "+r+" to not "+o+" by "+e)}K(E0,"assertDelta");L.addMethod("by",E0);L.addProperty("extensible",function(){let e=H(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible")});L.addProperty("sealed",function(){let e=H(this,"object"),t=e===Object(e)?Object.isSealed(e):!0;this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed")});L.addProperty("frozen",function(){let e=H(this,"object"),t=e===Object(e)?Object.isFrozen(e):!0;this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen")});L.addProperty("finite",function(e){let t=H(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 $u(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 $u(r,n)})}):!1:e instanceof Date?t instanceof Date?e.getTime()===t.getTime():!1:Object.keys(e).every(function(r){let n=e[r],i=t[r];return typeof n=="object"&&n!==null&&i!==null?$u(n,i):typeof n=="function"?n(i):i===n}):!1}K($u,"compareSubset");L.addMethod("containSubset",function(e){let t=Ce(this,"object"),r=sr.showDiff;this.assert($u(e,t),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",e,t,r)});function ro(e,t){return new L(e,t)}K(ro,"expect");ro.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"expect.fail()",new He(r,{actual:e,expected:t,operator:n},ro.fail)};var T0={};pm(T0,{Should:()=>lU,should:()=>aU});function Wm(){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 L(this.valueOf(),null,e):new L(this,null,e)}K(e,"shouldGetter");function t(n){Object.defineProperty(this,"should",{value:n,enumerable:!0,configurable:!0,writable:!0})}K(t,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:t,get:e,configurable:!0});let r={};return r.fail=function(n,i,o,s){throw arguments.length<2&&(o=n,n=void 0),o=o||"should.fail()",new He(o,{actual:n,expected:i,operator:s},r.fail)},r.equal=function(n,i,o){new L(n,o).to.equal(i)},r.Throw=function(n,i,o,s){new L(n,s).to.Throw(i,o)},r.exist=function(n,i){new L(n,i).to.exist},r.not={},r.not.equal=function(n,i,o){new L(n,o).to.not.equal(i)},r.not.Throw=function(n,i,o,s){new L(n,s).to.not.Throw(i,o)},r.not.exist=function(n,i){new L(n,i).to.not.exist},r.throw=r.Throw,r.not.throw=r.not.Throw,r}K(Wm,"loadShould");var aU=Wm,lU=Wm;function D(e,t){new L(null,null,D,!0).assert(e,t,"[ negation message unavailable ]")}K(D,"assert");D.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"assert.fail()",new He(r,{actual:e,expected:t,operator:n},D.fail)};D.isOk=function(e,t){new L(e,t,D.isOk,!0).is.ok};D.isNotOk=function(e,t){new L(e,t,D.isNotOk,!0).is.not.ok};D.equal=function(e,t,r){let n=new L(e,r,D.equal,!0);n.assert(t==Ce(n,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,!0)};D.notEqual=function(e,t,r){let n=new L(e,r,D.notEqual,!0);n.assert(t!=Ce(n,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,!0)};D.strictEqual=function(e,t,r){new L(e,r,D.strictEqual,!0).to.equal(t)};D.notStrictEqual=function(e,t,r){new L(e,r,D.notStrictEqual,!0).to.not.equal(t)};D.deepEqual=D.deepStrictEqual=function(e,t,r){new L(e,r,D.deepEqual,!0).to.eql(t)};D.notDeepEqual=function(e,t,r){new L(e,r,D.notDeepEqual,!0).to.not.eql(t)};D.isAbove=function(e,t,r){new L(e,r,D.isAbove,!0).to.be.above(t)};D.isAtLeast=function(e,t,r){new L(e,r,D.isAtLeast,!0).to.be.least(t)};D.isBelow=function(e,t,r){new L(e,r,D.isBelow,!0).to.be.below(t)};D.isAtMost=function(e,t,r){new L(e,r,D.isAtMost,!0).to.be.most(t)};D.isTrue=function(e,t){new L(e,t,D.isTrue,!0).is.true};D.isNotTrue=function(e,t){new L(e,t,D.isNotTrue,!0).to.not.equal(!0)};D.isFalse=function(e,t){new L(e,t,D.isFalse,!0).is.false};D.isNotFalse=function(e,t){new L(e,t,D.isNotFalse,!0).to.not.equal(!1)};D.isNull=function(e,t){new L(e,t,D.isNull,!0).to.equal(null)};D.isNotNull=function(e,t){new L(e,t,D.isNotNull,!0).to.not.equal(null)};D.isNaN=function(e,t){new L(e,t,D.isNaN,!0).to.be.NaN};D.isNotNaN=function(e,t){new L(e,t,D.isNotNaN,!0).not.to.be.NaN};D.exists=function(e,t){new L(e,t,D.exists,!0).to.exist};D.notExists=function(e,t){new L(e,t,D.notExists,!0).to.not.exist};D.isUndefined=function(e,t){new L(e,t,D.isUndefined,!0).to.equal(void 0)};D.isDefined=function(e,t){new L(e,t,D.isDefined,!0).to.not.equal(void 0)};D.isCallable=function(e,t){new L(e,t,D.isCallable,!0).is.callable};D.isNotCallable=function(e,t){new L(e,t,D.isNotCallable,!0).is.not.callable};D.isObject=function(e,t){new L(e,t,D.isObject,!0).to.be.a("object")};D.isNotObject=function(e,t){new L(e,t,D.isNotObject,!0).to.not.be.a("object")};D.isArray=function(e,t){new L(e,t,D.isArray,!0).to.be.an("array")};D.isNotArray=function(e,t){new L(e,t,D.isNotArray,!0).to.not.be.an("array")};D.isString=function(e,t){new L(e,t,D.isString,!0).to.be.a("string")};D.isNotString=function(e,t){new L(e,t,D.isNotString,!0).to.not.be.a("string")};D.isNumber=function(e,t){new L(e,t,D.isNumber,!0).to.be.a("number")};D.isNotNumber=function(e,t){new L(e,t,D.isNotNumber,!0).to.not.be.a("number")};D.isNumeric=function(e,t){new L(e,t,D.isNumeric,!0).is.numeric};D.isNotNumeric=function(e,t){new L(e,t,D.isNotNumeric,!0).is.not.numeric};D.isFinite=function(e,t){new L(e,t,D.isFinite,!0).to.be.finite};D.isBoolean=function(e,t){new L(e,t,D.isBoolean,!0).to.be.a("boolean")};D.isNotBoolean=function(e,t){new L(e,t,D.isNotBoolean,!0).to.not.be.a("boolean")};D.typeOf=function(e,t,r){new L(e,r,D.typeOf,!0).to.be.a(t)};D.notTypeOf=function(e,t,r){new L(e,r,D.notTypeOf,!0).to.not.be.a(t)};D.instanceOf=function(e,t,r){new L(e,r,D.instanceOf,!0).to.be.instanceOf(t)};D.notInstanceOf=function(e,t,r){new L(e,r,D.notInstanceOf,!0).to.not.be.instanceOf(t)};D.include=function(e,t,r){new L(e,r,D.include,!0).include(t)};D.notInclude=function(e,t,r){new L(e,r,D.notInclude,!0).not.include(t)};D.deepInclude=function(e,t,r){new L(e,r,D.deepInclude,!0).deep.include(t)};D.notDeepInclude=function(e,t,r){new L(e,r,D.notDeepInclude,!0).not.deep.include(t)};D.nestedInclude=function(e,t,r){new L(e,r,D.nestedInclude,!0).nested.include(t)};D.notNestedInclude=function(e,t,r){new L(e,r,D.notNestedInclude,!0).not.nested.include(t)};D.deepNestedInclude=function(e,t,r){new L(e,r,D.deepNestedInclude,!0).deep.nested.include(t)};D.notDeepNestedInclude=function(e,t,r){new L(e,r,D.notDeepNestedInclude,!0).not.deep.nested.include(t)};D.ownInclude=function(e,t,r){new L(e,r,D.ownInclude,!0).own.include(t)};D.notOwnInclude=function(e,t,r){new L(e,r,D.notOwnInclude,!0).not.own.include(t)};D.deepOwnInclude=function(e,t,r){new L(e,r,D.deepOwnInclude,!0).deep.own.include(t)};D.notDeepOwnInclude=function(e,t,r){new L(e,r,D.notDeepOwnInclude,!0).not.deep.own.include(t)};D.match=function(e,t,r){new L(e,r,D.match,!0).to.match(t)};D.notMatch=function(e,t,r){new L(e,r,D.notMatch,!0).to.not.match(t)};D.property=function(e,t,r){new L(e,r,D.property,!0).to.have.property(t)};D.notProperty=function(e,t,r){new L(e,r,D.notProperty,!0).to.not.have.property(t)};D.propertyVal=function(e,t,r,n){new L(e,n,D.propertyVal,!0).to.have.property(t,r)};D.notPropertyVal=function(e,t,r,n){new L(e,n,D.notPropertyVal,!0).to.not.have.property(t,r)};D.deepPropertyVal=function(e,t,r,n){new L(e,n,D.deepPropertyVal,!0).to.have.deep.property(t,r)};D.notDeepPropertyVal=function(e,t,r,n){new L(e,n,D.notDeepPropertyVal,!0).to.not.have.deep.property(t,r)};D.ownProperty=function(e,t,r){new L(e,r,D.ownProperty,!0).to.have.own.property(t)};D.notOwnProperty=function(e,t,r){new L(e,r,D.notOwnProperty,!0).to.not.have.own.property(t)};D.ownPropertyVal=function(e,t,r,n){new L(e,n,D.ownPropertyVal,!0).to.have.own.property(t,r)};D.notOwnPropertyVal=function(e,t,r,n){new L(e,n,D.notOwnPropertyVal,!0).to.not.have.own.property(t,r)};D.deepOwnPropertyVal=function(e,t,r,n){new L(e,n,D.deepOwnPropertyVal,!0).to.have.deep.own.property(t,r)};D.notDeepOwnPropertyVal=function(e,t,r,n){new L(e,n,D.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,r)};D.nestedProperty=function(e,t,r){new L(e,r,D.nestedProperty,!0).to.have.nested.property(t)};D.notNestedProperty=function(e,t,r){new L(e,r,D.notNestedProperty,!0).to.not.have.nested.property(t)};D.nestedPropertyVal=function(e,t,r,n){new L(e,n,D.nestedPropertyVal,!0).to.have.nested.property(t,r)};D.notNestedPropertyVal=function(e,t,r,n){new L(e,n,D.notNestedPropertyVal,!0).to.not.have.nested.property(t,r)};D.deepNestedPropertyVal=function(e,t,r,n){new L(e,n,D.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,r)};D.notDeepNestedPropertyVal=function(e,t,r,n){new L(e,n,D.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,r)};D.lengthOf=function(e,t,r){new L(e,r,D.lengthOf,!0).to.have.lengthOf(t)};D.hasAnyKeys=function(e,t,r){new L(e,r,D.hasAnyKeys,!0).to.have.any.keys(t)};D.hasAllKeys=function(e,t,r){new L(e,r,D.hasAllKeys,!0).to.have.all.keys(t)};D.containsAllKeys=function(e,t,r){new L(e,r,D.containsAllKeys,!0).to.contain.all.keys(t)};D.doesNotHaveAnyKeys=function(e,t,r){new L(e,r,D.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)};D.doesNotHaveAllKeys=function(e,t,r){new L(e,r,D.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)};D.hasAnyDeepKeys=function(e,t,r){new L(e,r,D.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)};D.hasAllDeepKeys=function(e,t,r){new L(e,r,D.hasAllDeepKeys,!0).to.have.all.deep.keys(t)};D.containsAllDeepKeys=function(e,t,r){new L(e,r,D.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)};D.doesNotHaveAnyDeepKeys=function(e,t,r){new L(e,r,D.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)};D.doesNotHaveAllDeepKeys=function(e,t,r){new L(e,r,D.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)};D.throws=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null);let i=new L(e,n,D.throws,!0).to.throw(t,r);return Ce(i,"object")};D.doesNotThrow=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null),new L(e,n,D.doesNotThrow,!0).to.not.throw(t,r)};D.operator=function(e,t,r,n){let i;switch(t){case"==":i=e==r;break;case"===":i=e===r;break;case">":i=e>r;break;case">=":i=e>=r;break;case"<":i=e<r;break;case"<=":i=e<=r;break;case"!=":i=e!=r;break;case"!==":i=e!==r;break;default:throw n=n&&n+": ",new He(n+'Invalid operator "'+t+'"',void 0,D.operator)}let o=new L(i,n,D.operator,!0);o.assert(Ce(o,"object")===!0,"expected "+Ve(e)+" to be "+t+" "+Ve(r),"expected "+Ve(e)+" to not be "+t+" "+Ve(r))};D.closeTo=function(e,t,r,n){new L(e,n,D.closeTo,!0).to.be.closeTo(t,r)};D.approximately=function(e,t,r,n){new L(e,n,D.approximately,!0).to.be.approximately(t,r)};D.sameMembers=function(e,t,r){new L(e,r,D.sameMembers,!0).to.have.same.members(t)};D.notSameMembers=function(e,t,r){new L(e,r,D.notSameMembers,!0).to.not.have.same.members(t)};D.sameDeepMembers=function(e,t,r){new L(e,r,D.sameDeepMembers,!0).to.have.same.deep.members(t)};D.notSameDeepMembers=function(e,t,r){new L(e,r,D.notSameDeepMembers,!0).to.not.have.same.deep.members(t)};D.sameOrderedMembers=function(e,t,r){new L(e,r,D.sameOrderedMembers,!0).to.have.same.ordered.members(t)};D.notSameOrderedMembers=function(e,t,r){new L(e,r,D.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)};D.sameDeepOrderedMembers=function(e,t,r){new L(e,r,D.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)};D.notSameDeepOrderedMembers=function(e,t,r){new L(e,r,D.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)};D.includeMembers=function(e,t,r){new L(e,r,D.includeMembers,!0).to.include.members(t)};D.notIncludeMembers=function(e,t,r){new L(e,r,D.notIncludeMembers,!0).to.not.include.members(t)};D.includeDeepMembers=function(e,t,r){new L(e,r,D.includeDeepMembers,!0).to.include.deep.members(t)};D.notIncludeDeepMembers=function(e,t,r){new L(e,r,D.notIncludeDeepMembers,!0).to.not.include.deep.members(t)};D.includeOrderedMembers=function(e,t,r){new L(e,r,D.includeOrderedMembers,!0).to.include.ordered.members(t)};D.notIncludeOrderedMembers=function(e,t,r){new L(e,r,D.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)};D.includeDeepOrderedMembers=function(e,t,r){new L(e,r,D.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)};D.notIncludeDeepOrderedMembers=function(e,t,r){new L(e,r,D.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)};D.oneOf=function(e,t,r){new L(e,r,D.oneOf,!0).to.be.oneOf(t)};D.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${Ve(e)} to be an iterable`:`expected ${Ve(e)} to be an iterable`,new He(t,void 0,D.isIterable)};D.changes=function(e,t,r,n){arguments.length===3&&typeof t=="function"&&(n=r,r=null),new L(e,n,D.changes,!0).to.change(t,r)};D.changesBy=function(e,t,r,n,i){if(arguments.length===4&&typeof t=="function"){let o=n;n=r,i=o}else arguments.length===3&&(n=r,r=null);new L(e,i,D.changesBy,!0).to.change(t,r).by(n)};D.doesNotChange=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new L(e,n,D.doesNotChange,!0).to.not.change(t,r)};D.changesButNotBy=function(e,t,r,n,i){if(arguments.length===4&&typeof t=="function"){let o=n;n=r,i=o}else arguments.length===3&&(n=r,r=null);new L(e,i,D.changesButNotBy,!0).to.change(t,r).but.not.by(n)};D.increases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new L(e,n,D.increases,!0).to.increase(t,r)};D.increasesBy=function(e,t,r,n,i){if(arguments.length===4&&typeof t=="function"){let o=n;n=r,i=o}else arguments.length===3&&(n=r,r=null);new L(e,i,D.increasesBy,!0).to.increase(t,r).by(n)};D.doesNotIncrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new L(e,n,D.doesNotIncrease,!0).to.not.increase(t,r)};D.increasesButNotBy=function(e,t,r,n,i){if(arguments.length===4&&typeof t=="function"){let o=n;n=r,i=o}else arguments.length===3&&(n=r,r=null);new L(e,i,D.increasesButNotBy,!0).to.increase(t,r).but.not.by(n)};D.decreases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new L(e,n,D.decreases,!0).to.decrease(t,r)};D.decreasesBy=function(e,t,r,n,i){if(arguments.length===4&&typeof t=="function"){let o=n;n=r,i=o}else arguments.length===3&&(n=r,r=null);new L(e,i,D.decreasesBy,!0).to.decrease(t,r).by(n)};D.doesNotDecrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new L(e,n,D.doesNotDecrease,!0).to.not.decrease(t,r)};D.doesNotDecreaseBy=function(e,t,r,n,i){if(arguments.length===4&&typeof t=="function"){let o=n;n=r,i=o}else arguments.length===3&&(n=r,r=null);return new L(e,i,D.doesNotDecreaseBy,!0).to.not.decrease(t,r).by(n)};D.decreasesButNotBy=function(e,t,r,n,i){if(arguments.length===4&&typeof t=="function"){let o=n;n=r,i=o}else arguments.length===3&&(n=r,r=null);new L(e,i,D.decreasesButNotBy,!0).to.decrease(t,r).but.not.by(n)};D.ifError=function(e){if(e)throw e};D.isExtensible=function(e,t){new L(e,t,D.isExtensible,!0).to.be.extensible};D.isNotExtensible=function(e,t){new L(e,t,D.isNotExtensible,!0).to.not.be.extensible};D.isSealed=function(e,t){new L(e,t,D.isSealed,!0).to.be.sealed};D.isNotSealed=function(e,t){new L(e,t,D.isNotSealed,!0).to.not.be.sealed};D.isFrozen=function(e,t){new L(e,t,D.isFrozen,!0).to.be.frozen};D.isNotFrozen=function(e,t){new L(e,t,D.isNotFrozen,!0).to.not.be.frozen};D.isEmpty=function(e,t){new L(e,t,D.isEmpty,!0).to.be.empty};D.isNotEmpty=function(e,t){new L(e,t,D.isNotEmpty,!0).to.not.be.empty};D.containsSubset=function(e,t,r){new L(e,r).to.containSubset(t)};D.doesNotContainSubset=function(e,t,r){new L(e,r).to.not.containSubset(t)};var uU=[["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 uU)D[t]=D[e];var $b=[];function Jo(e){let t={use:Jo,AssertionError:He,util:fn,config:sr,expect:ro,assert:D,Assertion:L,...T0};return~$b.indexOf(e)||(e(t,fn),$b.push(e)),t}K(Jo,"use");var w0={};br(w0,{toAppearAfter:()=>sJ,toAppearBefore:()=>_f,toBeChecked:()=>lR,toBeDisabled:()=>eR,toBeEmpty:()=>F0,toBeEmptyDOMElement:()=>B0,toBeEnabled:()=>tR,toBeInTheDOM:()=>gf,toBeInTheDocument:()=>L0,toBeInvalid:()=>iR,toBePartiallyChecked:()=>cR,toBePartiallyPressed:()=>mR,toBePressed:()=>hR,toBeRequired:()=>rR,toBeValid:()=>oR,toBeVisible:()=>z0,toContainElement:()=>bf,toContainHTML:()=>$0,toHaveAccessibleDescription:()=>vf,toHaveAccessibleErrorMessage:()=>V0,toHaveAccessibleName:()=>Tf,toHaveAttribute:()=>J0,toHaveClass:()=>H0,toHaveDescription:()=>dR,toHaveDisplayValue:()=>aR,toHaveErrorMessage:()=>pR,toHaveFocus:()=>G0,toHaveFormValues:()=>W0,toHaveRole:()=>Ef,toHaveSelection:()=>fR,toHaveStyle:()=>wf,toHaveTextContent:()=>U0,toHaveValue:()=>sR});var Ub=St(iw(),1);function _0(e){Object.defineProperty(e,"__esModule",{value:!0,configurable:!0})}function Km(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var S0={};_0(S0);Km(S0,"default",()=>R0);var R0=class extends Error{constructor(e,t,r,n,i){super(e+":"+r+":"+n+": "+t),this.reason=t,this.filename=e,this.line=r,this.column=n,this.source=i}},O0={};_0(O0);Km(O0,"default",()=>A0);var A0=class{constructor(e,t,r){this.start=e,this.end=t,this.source=r}},cU={};Km(cU,"CssTypes",()=>Et);var Et;(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"})(Et||(Et={}));var lp=/\/\*[^]*?(?:\*\/|$)/g,dU=(e,t)=>{t=t||{};let r=1,n=1;function i(Q){let Z=Q.match(/\n/g);Z&&(r+=Z.length);let ge=Q.lastIndexOf(`
|
|
211
|
-
`);n=~ge?Q.length-ge:n+Q.length}function o(){let Q={line:r,column:n};return function(Z){return Z.position=new A0(Q,{line:r,column:n},(t==null?void 0:t.source)||""),h(),Z}}let s=[];function a(Q){let Z=new R0((t==null?void 0:t.source)||"",Q,r,n,e);if(t!=null&&t.silent)s.push(Z);else throw Z}function l(){let Q=p();return{type:Et.stylesheet,stylesheet:{source:t==null?void 0:t.source,rules:Q,parsingErrors:s}}}function u(){return f(/^{\s*/)}function d(){return f(/^}/)}function p(){let Q,Z=[];for(h(),y(Z);e.length&&e.charAt(0)!=="}"&&(Q=pe()||he());)Q&&(Z.push(Q),y(Z));return Z}function f(Q){let Z=Q.exec(e);if(!Z)return;let ge=Z[0];return i(ge),e=e.slice(ge.length),Z}function h(){f(/^\s*/)}function y(Q){let Z;for(Q=Q||[];Z=g();)Z&&Q.push(Z);return Q}function g(){let Q=o();if(e.charAt(0)!=="/"||e.charAt(1)!=="*")return;let Z=f(/^\/\*[^]*?\*\//);return Z?Q({type:Et.comment,comment:Z[0].slice(2,-2)}):a("End of comment missing")}function v(Q,Z,ge){let ce=Z+1,re=!1,Re=Q.indexOf(")",ce);for(;!re&&Re!==-1;){let Te=Q.indexOf("(",ce);Te!==-1&&Te<Re?(ce=v(Q,Te+1)+1,Re=Q.indexOf(")",ce)):re=!0}return re&&Re!==-1?Re:-1}function b(){let Q=f(/^([^{]+)/);if(!Q)return;let Z=Nr(Q[0]).replace(lp,"");if(Z.indexOf(",")===-1)return[Z];let ge=0,ce=Z.indexOf("(",ge);for(;ce!==-1;){let re=v(Z,ce);if(re===-1)break;ge=re+1,Z=Z.substring(0,ce)+Z.substring(ce,re).replace(/,/g,"")+Z.substring(re),ce=Z.indexOf("(",ge)}return Z=Z.replace(/("|')(?:\\\1|.)*?\1/g,re=>re.replace(/,/g,"")),Z.split(",").map(re=>Nr(re.replace(/\u200C/g,",")))}function E(){let Q=o(),Z=f(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!Z)return;let ge=Nr(Z[0]);if(!f(/^:\s*/))return a("property missing ':'");let ce=f(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),re=Q({type:Et.declaration,property:ge.replace(lp,""),value:ce?Nr(ce[0]).replace(lp,""):""});return f(/^[;\s]*/),re}function w(){let Q=[];if(!u())return a("missing '{'");y(Q);let Z;for(;Z=E();)Z&&(Q.push(Z),y(Q));return d()?Q:a("missing '}'")}function A(){let Q,Z=[],ge=o();for(;Q=f(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)Z.push(Q[1]),f(/^,\s*/);if(Z.length)return ge({type:Et.keyframe,values:Z,declarations:w()||[]})}function C(){let Q=o(),Z=f(/^@([-\w]+)?keyframes\s*/);if(!Z)return;let ge=Z[1],ce=f(/^([-\w]+)\s*/);if(!ce)return a("@keyframes missing name");let re=ce[1];if(!u())return a("@keyframes missing '{'");let Re,Te=y();for(;Re=A();)Te.push(Re),Te=Te.concat(y());return d()?Q({type:Et.keyframes,name:re,vendor:ge,keyframes:Te}):a("@keyframes missing '}'")}function R(){let Q=o(),Z=f(/^@supports *([^{]+)/);if(!Z)return;let ge=Nr(Z[1]);if(!u())return a("@supports missing '{'");let ce=y().concat(p());return d()?Q({type:Et.supports,supports:ge,rules:ce}):a("@supports missing '}'")}function S(){let Q=o();if(!f(/^@host\s*/))return;if(!u())return a("@host missing '{'");let Z=y().concat(p());return d()?Q({type:Et.host,rules:Z}):a("@host missing '}'")}function _(){let Q=o(),Z=f(/^@container *([^{]+)/);if(!Z)return;let ge=Nr(Z[1]);if(!u())return a("@container missing '{'");let ce=y().concat(p());return d()?Q({type:Et.container,container:ge,rules:ce}):a("@container missing '}'")}function O(){let Q=o(),Z=f(/^@layer *([^{;@]+)/);if(!Z)return;let ge=Nr(Z[1]);if(!u())return f(/^[;\s]*/),Q({type:Et.layer,layer:ge});let ce=y().concat(p());return d()?Q({type:Et.layer,layer:ge,rules:ce}):a("@layer missing '}'")}function M(){let Q=o(),Z=f(/^@media *([^{]+)/);if(!Z)return;let ge=Nr(Z[1]);if(!u())return a("@media missing '{'");let ce=y().concat(p());return d()?Q({type:Et.media,media:ge,rules:ce}):a("@media missing '}'")}function I(){let Q=o(),Z=f(/^@custom-media\s+(--\S+)\s*([^{;\s][^{;]*);/);if(Z)return Q({type:Et.customMedia,name:Nr(Z[1]),media:Nr(Z[2])})}function k(){let Q=o();if(!f(/^@page */))return;let Z=b()||[];if(!u())return a("@page missing '{'");let ge=y(),ce;for(;ce=E();)ge.push(ce),ge=ge.concat(y());return d()?Q({type:Et.page,selectors:Z,declarations:ge}):a("@page missing '}'")}function N(){let Q=o(),Z=f(/^@([-\w]+)?document *([^{]+)/);if(!Z)return;let ge=Nr(Z[1]),ce=Nr(Z[2]);if(!u())return a("@document missing '{'");let re=y().concat(p());return d()?Q({type:Et.document,document:ce,vendor:ge,rules:re}):a("@document missing '}'")}function P(){let Q=o();if(!f(/^@font-face\s*/))return;if(!u())return a("@font-face missing '{'");let Z=y(),ge;for(;ge=E();)Z.push(ge),Z=Z.concat(y());return d()?Q({type:Et.fontFace,declarations:Z}):a("@font-face missing '}'")}function q(){let Q=o();if(!f(/^@starting-style\s*/))return;if(!u())return a("@starting-style missing '{'");let Z=y().concat(p());return d()?Q({type:Et.startingStyle,rules:Z}):a("@starting-style missing '}'")}let F=ie("import"),$=ie("charset"),G=ie("namespace");function ie(Q){let Z=new RegExp("^@"+Q+`\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);return function(){let ge=o(),ce=f(Z);if(!ce)return;let re={type:Q};return re[Q]=ce[1].trim(),ge(re)}}function pe(){if(e[0]==="@")return C()||M()||I()||R()||F()||$()||G()||N()||k()||S()||P()||_()||q()||O()}function he(){let Q=o(),Z=b();return Z?(y(),Q({type:Et.rule,selectors:Z,declarations:w()||[]})):a("selector missing")}return mf(l())};function Nr(e){return e?e.trim():""}function mf(e,t){let r=e&&typeof e.type=="string",n=r?e:t;for(let i in e){let o=e[i];Array.isArray(o)?o.forEach(s=>{mf(s,n)}):o&&typeof o=="object"&&mf(o,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var pU=dU,fU=pU,hU=Object.prototype.toString;function mU(e){return typeof e=="function"||hU.call(e)==="[object Function]"}function yU(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var gU=Math.pow(2,53)-1;function bU(e){var t=yU(e);return Math.min(Math.max(t,0),gU)}function Gr(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 i=bU(n.length),o=mU(r)?Object(new r(i)):new Array(i),s=0,a;s<i;)a=n[s],o[s]=a,s+=1;return o.length=i,o}function Ma(e){"@babel/helpers - typeof";return Ma=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},Ma(e)}function vU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EU(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,P0(n.key),n)}}function TU(e,t,r){return t&&EU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wU(e,t,r){return t=P0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P0(e){var t=_U(e,"string");return Ma(t)==="symbol"?t:String(t)}function _U(e,t){if(Ma(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ma(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var SU=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];vU(this,e),wU(this,"items",void 0),this.items=t}return TU(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}(),RU=typeof Set>"u"?Set:SU;function er(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var OU={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"},AU={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 PU(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=AU[t])!==null&&n!==void 0&&n.has(r))})}function C0(e,t){return PU(e,t)}function CU(e){var t=NU(e);if(t===null||yf.indexOf(t)!==-1){var r=xU(e);if(yf.indexOf(t||"")===-1||C0(e,r||""))return r}return t}function xU(e){var t=OU[er(e)];if(t!==void 0)return t;switch(er(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!C0(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 NU(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}var yf=["presentation","none"];function ut(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function x0(e){return ut(e)&&er(e)==="caption"}function mu(e){return ut(e)&&er(e)==="input"}function IU(e){return ut(e)&&er(e)==="optgroup"}function MU(e){return ut(e)&&er(e)==="select"}function qU(e){return ut(e)&&er(e)==="table"}function jU(e){return ut(e)&&er(e)==="textarea"}function kU(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function DU(e){return ut(e)&&er(e)==="fieldset"}function LU(e){return ut(e)&&er(e)==="legend"}function FU(e){return ut(e)&&er(e)==="slot"}function BU(e){return ut(e)&&e.ownerSVGElement!==void 0}function $U(e){return ut(e)&&er(e)==="svg"}function UU(e){return BU(e)&&er(e)==="title"}function Uu(e,t){if(ut(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(i){return n.getElementById(i)}).filter(function(i){return i!==null})}return[]}function Dn(e,t){return ut(e)?t.indexOf(CU(e))!==-1:!1}function VU(e){return e.trim().replace(/\s\s+/g," ")}function JU(e,t){if(!ut(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 HU(e){return Dn(e,["button","combobox","listbox","textbox"])||N0(e,"range")}function N0(e,t){if(!ut(e))return!1;switch(t){case"range":return Dn(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function Vb(e,t){var r=Gr(e.querySelectorAll(t));return Uu(e,"aria-owns").forEach(function(n){r.push.apply(r,Gr(n.querySelectorAll(t)))}),r}function GU(e){return MU(e)?e.selectedOptions||Vb(e,"[selected]"):Vb(e,'[aria-selected="true"]')}function WU(e){return Dn(e,yf)}function KU(e){return x0(e)}function zU(e){return Dn(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function YU(e){return!1}function XU(e){return mu(e)||jU(e)?e.value:e.textContent||""}function Jb(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function I0(e){var t=er(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function M0(e){if(I0(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&ut(r)){var n=M0(r);n!==null&&(t=n)}}),t}function QU(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):M0(e)}function ZU(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return Gr(t);if(!I0(e))return null;var r=e.ownerDocument;return Gr(r.querySelectorAll("label")).filter(function(n){return QU(n)===e})}function eV(e){var t=e.assignedNodes();return t.length===0?Gr(e.childNodes):t}function q0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new RU,n=kU(e),i=t.compute,o=i===void 0?"name":i,s=t.computedStyleSupportsPseudoElements,a=s===void 0?t.getComputedStyle!==void 0:s,l=t.getComputedStyle,u=l===void 0?n.getComputedStyle.bind(n):l,d=t.hidden,p=d===void 0?!1:d;function f(b,E){var w="";if(ut(b)&&a){var A=u(b,"::before"),C=Jb(A);w="".concat(C," ").concat(w)}var R=FU(b)?eV(b):Gr(b.childNodes).concat(Uu(b,"aria-owns"));if(R.forEach(function(O){var M=v(O,{isEmbeddedInLabel:E.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),I=ut(O)?u(O).getPropertyValue("display"):"inline",k=I!=="inline"?" ":"";w+="".concat(k).concat(M).concat(k)}),ut(b)&&a){var S=u(b,"::after"),_=Jb(S);w="".concat(w," ").concat(_)}return w.trim()}function h(b,E){var w=b.getAttributeNode(E);return w!==null&&!r.has(w)&&w.value.trim()!==""?(r.add(w),w.value):null}function y(b){return ut(b)?h(b,"title"):null}function g(b){if(!ut(b))return null;if(DU(b)){r.add(b);for(var E=Gr(b.childNodes),w=0;w<E.length;w+=1){var A=E[w];if(LU(A))return v(A,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(qU(b)){r.add(b);for(var C=Gr(b.childNodes),R=0;R<C.length;R+=1){var S=C[R];if(x0(S))return v(S,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if($U(b)){r.add(b);for(var _=Gr(b.childNodes),O=0;O<_.length;O+=1){var M=_[O];if(UU(M))return M.textContent}return null}else if(er(b)==="img"||er(b)==="area"){var I=h(b,"alt");if(I!==null)return I}else if(IU(b)){var k=h(b,"label");if(k!==null)return k}if(mu(b)&&(b.type==="button"||b.type==="submit"||b.type==="reset")){var N=h(b,"value");if(N!==null)return N;if(b.type==="submit")return"Submit";if(b.type==="reset")return"Reset"}var P=ZU(b);if(P!==null&&P.length!==0)return r.add(b),Gr(P).map(function(G){return v(G,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(G){return G.length>0}).join(" ");if(mu(b)&&b.type==="image"){var q=h(b,"alt");if(q!==null)return q;var F=h(b,"title");return F!==null?F:"Submit Query"}if(Dn(b,["button"])){var $=f(b,{isEmbeddedInLabel:!1});if($!=="")return $}return null}function v(b,E){if(r.has(b))return"";if(!p&&JU(b,u)&&!E.isReferenced)return r.add(b),"";var w=ut(b)?b.getAttributeNode("aria-labelledby"):null,A=w!==null&&!r.has(w)?Uu(b,"aria-labelledby"):[];if(o==="name"&&!E.isReferenced&&A.length>0)return r.add(w),A.map(function(I){return v(I,{isEmbeddedInLabel:E.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var C=E.recursion&&HU(b)&&o==="name";if(!C){var R=(ut(b)&&b.getAttribute("aria-label")||"").trim();if(R!==""&&o==="name")return r.add(b),R;if(!WU(b)){var S=g(b);if(S!==null)return r.add(b),S}}if(Dn(b,["menu"]))return r.add(b),"";if(C||E.isEmbeddedInLabel||E.isReferenced){if(Dn(b,["combobox","listbox"])){r.add(b);var _=GU(b);return _.length===0?mu(b)?b.value:"":Gr(_).map(function(I){return v(I,{isEmbeddedInLabel:E.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(N0(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(Dn(b,["textbox"]))return r.add(b),XU(b)}if(zU(b)||ut(b)&&E.isReferenced||KU(b)||YU()){var O=f(b,{isEmbeddedInLabel:E.isEmbeddedInLabel});if(O!=="")return r.add(b),O}if(b.nodeType===b.TEXT_NODE)return r.add(b),b.textContent||"";if(E.recursion)return r.add(b),f(b,{isEmbeddedInLabel:E.isEmbeddedInLabel});var M=y(b);return M!==null?(r.add(b),M):(r.add(b),"")}return VU(v(e,{isEmbeddedInLabel:!1,isReferenced:o==="description",recursion:!1}))}function qa(e){"@babel/helpers - typeof";return qa=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},qa(e)}function Hb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hb(Object(r),!0).forEach(function(n){tV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tV(e,t,r){return t=rV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rV(e){var t=nV(e,"string");return qa(t)==="symbol"?t:String(t)}function nV(e,t){if(qa(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qa(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iV(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Uu(e,"aria-describedby").map(function(o){return q0(o,Gb(Gb({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("aria-description");r=n===null?"":n}if(r===""){var i=e.getAttribute("title");r=i===null?"":i}return r}function oV(e){return Dn(e,["caption","code","deletion","emphasis","generic","insertion","none","paragraph","presentation","strong","subscript","superscript"])}function sV(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return oV(e)?"":q0(e,t)}var zm=St(Ah(),1),aV=St(ow(),1),lV=St(sw(),1),j0=class extends Error{constructor(e,t,r,n){super(),Error.captureStackTrace&&Error.captureStackTrace(this,r);let i="";try{i=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}.`,i].join(`
|
|
212
|
-
`)}},Wb=class extends j0{constructor(...e){super("be an HTMLElement or an SVGElement",...e)}},Kb=class extends j0{constructor(...e){super("be a Node",...e)}};function k0(e,t,...r){if(!e||!e.ownerDocument||!e.ownerDocument.defaultView)throw new t(e,...r)}function uV(e,...t){k0(e,Kb,...t);let r=e.ownerDocument.defaultView;if(!(e instanceof r.Node))throw new Kb(e,...t)}function Be(e,...t){k0(e,Wb,...t);let r=e.ownerDocument.defaultView;if(!(e instanceof r.HTMLElement)&&!(e instanceof r.SVGElement))throw new Wb(e,...t)}var cV=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(`
|
|
213
|
-
`)}};function dV(e,...t){let r=fU(`selector { ${e} }`,{silent:!0}).stylesheet;if(r.parsingErrors&&r.parsingErrors.length>0){let{reason:n,line:i}=r.parsingErrors[0];throw new cV({css:e,message:`Syntax error parsing expected css: ${n} on line: ${i}`},...t)}return r.rules[0].declarations.filter(n=>n.type==="declaration").reduce((n,{property:i,value:o})=>Object.assign(n,{[i]:o}),{})}function zb(e,t){return typeof t=="string"?t:e.utils.stringify(t)}function Mt(e,t,r,n,i,o){return[`${t}
|
|
214
|
-
`,`${r}:
|
|
215
|
-
${e.utils.EXPECTED_COLOR((0,Ub.default)(zb(e,n),2))}`,`${i}:
|
|
216
|
-
${e.utils.RECEIVED_COLOR((0,Ub.default)(zb(e,o),2))}`].join(`
|
|
217
|
-
`)}function pV(e,t){return t instanceof RegExp?t.test(e):e.includes(String(t))}function Xc(e,t){console.warn(`Warning: ${e} has been deprecated and will be removed in future updates.`,t)}function Qc(e){return e.replace(/\s+/g," ").trim()}function Si(e){return e.tagName&&e.tagName.toLowerCase()}function fV({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 hV(e){switch(e.type){case"number":return e.value===""?null:Number(e.value);case"checkbox":return e.checked;default:return e.value}}var mV=["meter","progressbar","slider","spinbutton"];function yV(e){if(mV.includes(e.getAttribute("role")))return Number(e.getAttribute("aria-valuenow"))}function D0(e){if(e)switch(e.tagName.toLowerCase()){case"input":return hV(e);case"select":return fV(e);default:return e.value??yV(e)}}function gV(e,{wordConnector:t=", ",lastWordConnector:r=" and "}={}){return[e.slice(0,-1).join(t),e[e.length-1]].join(e.length>1?r:"")}function Ym(e,t){return Array.isArray(e)&&Array.isArray(t)?[...new Set(e)].every(r=>new Set(t).has(r)):e===t}function gf(e,t){return Xc("toBeInTheDOM","Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container."),e&&Be(e,gf,this),t&&Be(t,gf,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(`
|
|
218
|
-
`)}}function L0(e){(e!==null||!this.isNot)&&Be(e,L0,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(`
|
|
219
|
-
`)}}function F0(e){return Xc("toBeEmpty","Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM."),Be(e,F0,this),{pass:e.innerHTML==="",message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmpty`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
|
|
220
|
-
`)}}function B0(e){return Be(e,B0,this),{pass:bV(e),message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmptyDOMElement`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
|
|
221
|
-
`)}}function bV(e){return[...e.childNodes].filter(t=>t.nodeType!==8).length===0}function bf(e,t){return Be(e,bf,this),t!==null&&Be(t,bf,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))}
|
|
222
|
-
`)].join(`
|
|
223
|
-
`)}}function vV(e,t){let r=e.ownerDocument.createElement("div");return r.innerHTML=t,r.innerHTML}function $0(e,t){if(Be(e,$0,this),typeof t!="string")throw new Error(`.toContainHTML() expects a string value, got ${t}`);return{pass:e.outerHTML.includes(vV(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(`
|
|
224
|
-
`)}}function U0(e,t,r={normalizeWhitespace:!0}){uV(e,U0,this);let n=r.normalizeWhitespace?Qc(e.textContent):e.textContent.replace(/\u00a0/g," "),i=n!==""&&t==="";return{pass:!i&&pV(n,t),message:()=>{let o=this.isNot?"not to":"to";return Mt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveTextContent`,"element",""),i?"Checking with empty string will always match, use .toBeEmptyDOMElement() instead":`Expected element ${o} have text content`,t,"Received",n)}}}function vf(e,t){Be(e,vf,this);let r=iV(e),n=arguments.length===1,i=!1;return n?i=r!=="":i=t instanceof RegExp?t.test(r):this.equals(r,t),{pass:i,message:()=>{let o=this.isNot?"not to":"to";return Mt(this,this.utils.matcherHint(`${this.isNot?".not":""}.${vf.name}`,"element",""),`Expected element ${o} have accessible description`,t,"Received",r)}}}var Js="aria-invalid",EV=["false"];function V0(e,t){var a;Be(e,V0,this);let r=this.isNot?"not to":"to",n=this.isNot?".not.toHaveAccessibleErrorMessage":".toHaveAccessibleErrorMessage",i=e.getAttribute("aria-errormessage");if(i&&/\s+/.test(i))return{pass:!1,message:()=>Mt(this,this.utils.matcherHint(n,"element"),"Expected element's `aria-errormessage` attribute to be empty or a single, valid ID","","Received",`aria-errormessage="${i}"`)};let o=e.getAttribute(Js);if(!e.hasAttribute(Js)||EV.includes(o))return{pass:!1,message:()=>Mt(this,this.utils.matcherHint(n,"element"),"Expected element to be marked as invalid with attribute",`${Js}="${String(!0)}"`,"Received",e.hasAttribute("aria-invalid")?`${Js}="${e.getAttribute(Js)}`:null)};let s=Qc(((a=e.ownerDocument.getElementById(i))==null?void 0:a.textContent)??"");return{pass:t===void 0?!!s:t instanceof RegExp?t.test(s):this.equals(s,t),message:()=>Mt(this,this.utils.matcherHint(n,"element"),`Expected element ${r} have accessible error message`,t??"","Received",s)}}var TV=SV(zm.elementRoles);function Ef(e,t){Be(e,Ef,this);let r=wV(e);return{pass:r.some(n=>n===t),message:()=>{let n=this.isNot?"not to":"to";return Mt(this,this.utils.matcherHint(`${this.isNot?".not":""}.${Ef.name}`,"element",""),`Expected element ${n} have role`,t,"Received",r.join(", "))}}}function wV(e){return e.hasAttribute("role")?e.getAttribute("role").split(" ").filter(Boolean):_V(e)}function _V(e){for(let{match:t,roles:r}of TV)if(t(e))return[...r];return[]}function SV(e){function t({name:s,attributes:a}){return`${s}${a.map(({name:l,value:u,constraints:d=[]})=>d.indexOf("undefined")!==-1?`:not([${l}])`:u?`[${l}="${u}"]`:`[${l}]`).join("")}`}function r({attributes:s=[]}){return s.length}function n({specificity:s},{specificity:a}){return a-s}function i(s){let{attributes:a=[]}=s,l=a.findIndex(d=>d.value&&d.name==="type"&&d.value==="text");l>=0&&(a=[...a.slice(0,l),...a.slice(l+1)]);let u=t({...s,attributes:a});return d=>l>=0&&d.type!=="text"?!1:d.matches(u)}let o=[];for(let[s,a]of e.entries())o=[...o,{match:i(s),roles:Array.from(a),specificity:r(s)}];return o.sort(n)}function Tf(e,t){Be(e,Tf,this);let r=sV(e),n=arguments.length===1,i=!1;return n?i=r!=="":i=t instanceof RegExp?t.test(r):this.equals(r,t),{pass:i,message:()=>{let o=this.isNot?"not to":"to";return Mt(this,this.utils.matcherHint(`${this.isNot?".not":""}.${Tf.name}`,"element",""),`Expected element ${o} have accessible name`,t,"Received",r)}}}function Yb(e,t,r){return r===void 0?t:`${t}=${e(r)}`}function RV(e,t,r){return r===void 0?`element.hasAttribute(${e(t)})`:`element.getAttribute(${e(t)}) === ${e(r)}`}function J0(e,t,r){Be(e,J0,this);let n=r!==void 0,i=e.hasAttribute(t),o=e.getAttribute(t);return{pass:n?i&&this.equals(o,r):i,message:()=>{let s=this.isNot?"not to":"to",a=i?Yb(this.utils.stringify,t,o):null,l=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveAttribute`,"element",this.utils.printExpected(t),{secondArgument:n?this.utils.printExpected(r):void 0,comment:RV(this.utils.stringify,t,r)});return Mt(this,l,`Expected the element ${s} have attribute`,Yb(this.utils.stringify,t,r),"Received",a)}}}function OV(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 Xb(e){return e?e.split(/\s+/).filter(t=>t.length>0):[]}function Qb(e,t){return e.every(r=>typeof r=="string"?t.includes(r):t.some(n=>r.test(n)))}function H0(e,...t){Be(e,H0,this);let{expectedClassNames:r,options:n}=OV(t),i=Xb(e.getAttribute("class")),o=r.reduce((a,l)=>a.concat(typeof l=="string"||!l?Xb(l):l),[]),s=o.some(a=>a instanceof RegExp);if(n.exact&&s)throw new Error("Exact option does not support RegExp expected class names");return n.exact?{pass:Qb(o,i)&&o.length===i.length,message:()=>{let a=this.isNot?"not to":"to";return Mt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveClass`,"element",this.utils.printExpected(o.join(" "))),`Expected the element ${a} have EXACTLY defined classes`,o.join(" "),"Received",i.join(" "))}}:o.length>0?{pass:Qb(o,i),message:()=>{let a=this.isNot?"not to":"to";return Mt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveClass`,"element",this.utils.printExpected(o.join(" "))),`Expected the element ${a} have class`,o.join(" "),"Received",i.join(" "))}}:{pass:this.isNot?i.length>0:!1,message:()=>this.isNot?Mt(this,this.utils.matcherHint(".not.toHaveClass","element",""),"Expected the element to have classes","(none)","Received",i.join(" ")):[this.utils.matcherHint(".toHaveClass","element"),"At least one expected class must be provided."].join(`
|
|
225
|
-
`)}}function AV(e,t){let r={},n=e.createElement("div");return Object.keys(t).forEach(i=>{n.style[i]=t[i],r[i]=n.style[i]}),r}function PV(e,t){return!!Object.keys(e).length&&Object.entries(e).every(([r,n])=>{let i=r.startsWith("--"),o=[r];return i||o.push(r.toLowerCase()),o.some(s=>t[s]===n||t.getPropertyValue(s)===n)})}function Zb(e){return Object.keys(e).sort().map(t=>`${t}: ${e[t]};`).join(`
|
|
226
|
-
`)}function CV(e,t,r){let n=Array.from(r).filter(i=>t[i]!==void 0).reduce((i,o)=>Object.assign(i,{[o]:r.getPropertyValue(o)}),{});return e(Zb(t),Zb(n)).replace(`${aV.default.red("+ Received")}
|
|
227
|
-
`,"")}function wf(e,t){Be(e,wf,this);let r=typeof t=="object"?t:dV(t,wf,this),{getComputedStyle:n}=e.ownerDocument.defaultView,i=AV(e.ownerDocument,r),o=n(e);return{pass:PV(i,o),message:()=>{let s=`${this.isNot?".not":""}.toHaveStyle`;return[this.utils.matcherHint(s,"element",""),CV(this.utils.diff,i,o)].join(`
|
|
228
|
-
|
|
229
|
-
`)}}}function G0(e){return Be(e,G0,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(`
|
|
230
|
-
`)}}function xV(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 NV(e,t){let r=[...e.querySelectorAll(`[name="${(0,lV.default)(t)}"]`)];if(r.length!==0)switch(r.length){case 1:return D0(r[0]);default:return xV(r)}}function IV(e){return/\[\]$/.test(e)?e.slice(0,-2):e}function MV(e){return Array.from(e.elements).map(t=>t.name).reduce((t,r)=>({...t,[IV(r)]:NV(e,r)}),{})}function W0(e,t){if(Be(e,W0,this),!e.elements)throw new Error("toHaveFormValues must be called on a form or a fieldset");let r=MV(e);return{pass:Object.entries(t).every(([n,i])=>Ym(r[n],i)),message:()=>{let n=this.isNot?"not to":"to",i=`${this.isNot?".not":""}.toHaveFormValues`,o=Object.keys(r).filter(s=>t.hasOwnProperty(s)).reduce((s,a)=>({...s,[a]:r[a]}),{});return[this.utils.matcherHint(i,"element",""),`Expected the element ${n} have form values`,this.utils.diff(t,o)].join(`
|
|
231
|
-
|
|
232
|
-
`)}}}function qV(e){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:r,visibility:n,opacity:i}=t(e);return r!=="none"&&n!=="hidden"&&n!=="collapse"&&i!=="0"&&i!==0}function jV(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 K0(e,t){return qV(e)&&jV(e,t)&&(!e.parentElement||K0(e.parentElement,e))}function z0(e){Be(e,z0,this);let t=e.ownerDocument===e.getRootNode({composed:!0}),r=t&&K0(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(`
|
|
233
|
-
`)}}}var kV=["fieldset","input","select","optgroup","option","button","textarea"];function DV(e,t){return Si(e)==="legend"&&Si(t)==="fieldset"&&e.isSameNode(Array.from(t.children).find(r=>Si(r)==="legend"))}function LV(e,t){return X0(t)&&!DV(e,t)}function FV(e){return e.includes("-")}function Y0(e){let t=Si(e);return kV.includes(t)||FV(t)}function X0(e){return Y0(e)&&e.hasAttribute("disabled")}function Q0(e){let t=e.parentElement;return!!t&&(LV(e,t)||Q0(t))}function Z0(e){return Y0(e)&&(X0(e)||Q0(e))}function eR(e){Be(e,eR,this);let t=Z0(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(`
|
|
234
|
-
`)}}}function tR(e){Be(e,tR,this);let t=!Z0(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(`
|
|
235
|
-
`)}}}var BV=["select","textarea"],$V=["input","select","textarea"],UV=["color","hidden","range","submit","image","reset"],VV=["checkbox","combobox","gridcell","listbox","radiogroup","spinbutton","textbox","tree"];function JV(e){return BV.includes(Si(e))&&e.hasAttribute("required")}function HV(e){return Si(e)==="input"&&e.hasAttribute("required")&&(e.hasAttribute("type")&&!UV.includes(e.getAttribute("type"))||!e.hasAttribute("type"))}function GV(e){return e.hasAttribute("aria-required")&&e.getAttribute("aria-required")==="true"&&($V.includes(Si(e))||e.hasAttribute("role")&&VV.includes(e.getAttribute("role")))}function rR(e){Be(e,rR,this);let t=JV(e)||HV(e)||GV(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(`
|
|
236
|
-
`)}}}var WV=["form","input","select","textarea"];function KV(e){return e.hasAttribute("aria-invalid")&&e.getAttribute("aria-invalid")!=="false"}function zV(e){return WV.includes(Si(e))}function nR(e){let t=KV(e);return zV(e)?t||!e.checkValidity():t}function iR(e){Be(e,iR,this);let t=nR(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(`
|
|
237
|
-
`)}}}function oR(e){Be(e,oR,this);let t=!nR(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(`
|
|
238
|
-
`)}}}function sR(e,t){if(Be(e,sR,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=D0(e),n=t!==void 0,i=t,o=r;return t==r&&t!==r&&(i=`${t} (${typeof t})`,o=`${r} (${typeof r})`),{pass:n?Ym(r,t):!!r,message:()=>{let s=this.isNot?"not to":"to",a=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveValue`,"element",t);return Mt(this,a,`Expected the element ${s} have value`,n?i:"(any)","Received",o)}}}function aR(e,t){Be(e,aR,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=YV(r,e),i=XV(t),o=i.filter(l=>n.some(u=>l instanceof RegExp?l.test(u):this.equals(u,String(l)))).length,s=o===n.length,a=o===i.length;return{pass:s&&a,message:()=>Mt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDisplayValue`,"element",""),`Expected element ${this.isNot?"not ":""}to have display value`,t,"Received",n)}}function YV(e,t){return e==="select"?Array.from(t).filter(r=>r.selected).map(r=>r.textContent):[t.value]}function XV(e){return e instanceof Array?e:[e]}function lR(e){Be(e,lR,this);let t=()=>e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.type),r=()=>uR(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 ${QV()} 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 i=n()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeChecked`,"element",""),"",`Received element ${i} checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
239
|
-
`)}}}function QV(){return gV(ZV().map(e=>`role="${e}"`),{lastWordConnector:" or "})}function ZV(){return zm.roles.keys().filter(uR)}function uR(e){var t;return((t=zm.roles.get(e))==null?void 0:t.props["aria-checked"])!==void 0}function cR(e){Be(e,cR,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 i=e.getAttribute("aria-checked")==="mixed";return t()&&e.indeterminate||i};return{pass:n(),message:()=>{let i=n()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBePartiallyChecked`,"element",""),"",`Received element ${i} partially checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
240
|
-
`)}}}function dR(e,t){Xc("toHaveDescription","Please use toHaveAccessibleDescription."),Be(e,dR,this);let r=t!==void 0,n=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean),i="";if(n.length>0){let o=e.ownerDocument,s=n.map(a=>o.getElementById(a)).filter(Boolean);i=Qc(s.map(a=>a.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(i):this.equals(i,t):!!i,message:()=>{let o=this.isNot?"not to":"to";return Mt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDescription`,"element",""),`Expected the element ${o} have description`,this.utils.printExpected(t),"Received",this.utils.printReceived(i))}}}function pR(e,t){if(Xc("toHaveErrorMessage","Please use toHaveAccessibleErrorMessage."),Be(e,pR,this),!e.hasAttribute("aria-invalid")||e.getAttribute("aria-invalid")==="false"){let o=this.isNot?".not":"";return{pass:!1,message:()=>Mt(this,this.utils.matcherHint(`${o}.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),i="";if(n.length>0){let o=e.ownerDocument,s=n.map(a=>o.getElementById(a)).filter(Boolean);i=Qc(s.map(a=>a.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(i):this.equals(i,t):!!i,message:()=>{let o=this.isNot?"not to":"to";return Mt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveErrorMessage`,"element",""),`Expected the element ${o} have error message`,this.utils.printExpected(t),"Received",this.utils.printReceived(i))}}}function eJ(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 o=e===r.startContainer||e.contains(r.startContainer),s=e===r.endContainer||e.contains(r.endContainer);t.removeAllRanges(),(o||s)&&(n.selectNodeContents(e),o&&n.setStart(r.startContainer,r.startOffset),s&&n.setEnd(r.endContainer,r.endOffset),t.addRange(n))}let i=t.toString();return t.removeAllRanges(),t.addRange(r),i}function fR(e,t){Be(e,fR,this);let r=t!==void 0;if(r&&typeof t!="string")throw new Error("expected selection must be a string or undefined");let n=eJ(e);return{pass:r?Ym(n,t):!!n,message:()=>{let i=this.isNot?"not to":"to",o=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveSelection`,"element",t);return Mt(this,o,`Expected the element ${i} have selection`,r?t:"(any)","Received",n)}}}function hR(e){Be(e,hR,this);let t=(e.getAttribute("role")||"").split(" ").map(i=>i.trim()),r=e.tagName.toLowerCase()==="button"||e.tagName.toLowerCase()==="input"&&e.type==="button"||t.includes("button"),n=e.getAttribute("aria-pressed");return!r||!(n==="true"||n==="false")?{pass:!1,message:()=>'Only button or input with type="button" or element with role="button" and a valid aria-pressed attribute can be used with .toBePressed()'}:{pass:r&&n==="true",message:()=>{let i=this.utils.matcherHint(`${this.isNot?".not":""}.toBePressed`,"element","");return Mt(this,i,"Expected element to have",`aria-pressed="${this.isNot?"false":"true"}"`,"Received",`aria-pressed="${n}"`)}}}function mR(e){Be(e,mR,this);let t=(e.getAttribute("role")||"").split(" ").map(i=>i.trim()),r=e.tagName.toLowerCase()==="button"||e.tagName.toLowerCase()==="input"&&e.type==="button"||t.includes("button"),n=e.getAttribute("aria-pressed");return!r||!(n==="true"||n==="false"||n==="mixed")?{pass:!1,message:()=>'Only button or input with type="button" or element with role="button" and a valid aria-pressed attribute can be used with .toBePartiallyPressed()'}:{pass:r&&n==="mixed",message:()=>{let i=this.isNot?"not to":"to",o=this.utils.matcherHint(`${this.isNot?".not":""}.toBePartiallyPressed`,"element","");return Mt(this,o,`Expected element ${i} have`,'aria-pressed="mixed"',"Received",`aria-pressed="${n}"`)}}}var tJ=1,yR=2,gR=4,rJ=8,nJ=16,iJ=32,ev={[tJ]:"Node.DOCUMENT_POSITION_DISCONNECTED",[yR]:"Node.DOCUMENT_POSITION_PRECEDING",[gR]:"Node.DOCUMENT_POSITION_FOLLOWING",[rJ]:"Node.DOCUMENT_POSITION_CONTAINS",[nJ]:"Node.DOCUMENT_POSITION_CONTAINED_BY",[iJ]:"Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC"};function oJ(e){return e in ev?`${ev[e]} (${e})`:`Unknown document position (${e})`}function bR(e,t){return function(r,n){Be(r,_f,this),Be(n,_f,this);let i=r.compareDocumentPosition(n);return{pass:i===t,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.${e}`,"element","secondElement"),"",`Received: ${oJ(i)}`].join(`
|
|
241
|
-
`)}}}function _f(e,t){return bR("toAppearBefore",gR).apply(this,[e,t])}function sJ(e,t){return bR("toAppearAfter",yR).apply(this,[e,t])}St(iw(),1);St(Ah(),1);St(ow(),1);St(sw(),1);var up,tv;function aJ(){if(tv)return up;tv=1;var e,t,r,n,i,o,s,a,l,u,d,p,f,h,y,g,v,b,E;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,E=/[\t\v\f\ufeff\p{Zs}]+/yu,a=/\r?\n|[\r\u2028\u2029]/y,l=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,h=/\/\/.*/y,r=/[<>.:={}]|\/(?![\/*])/y,t=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,n=/(['"])(?:(?!\1)[^])*(\1)?/y,i=/[^<>{}]+/y,b=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,v=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,o=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,s=/^(?:return|throw|yield)$/,u=RegExp(a.source),up=function*(w,{jsx:A=!1}={}){var C,R,S,_,O,M,I,k,N,P,q,F,$,G;for({length:M}=w,_=0,O="",G=[{tag:"JS"}],C=[],q=0,F=!1;_<M;){switch(k=G[G.length-1],k.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(w[_]==="/"&&(b.test(O)||o.test(O))&&(f.lastIndex=_,I=f.exec(w))){_=f.lastIndex,O=I[0],F=!0,yield{type:"RegularExpressionLiteral",value:I[0],closed:I[1]!==void 0&&I[1]!=="\\"};continue}if(p.lastIndex=_,I=p.exec(w)){switch($=I[0],N=p.lastIndex,P=$,$){case"(":O==="?NonExpressionParenKeyword"&&G.push({tag:"JSNonExpressionParen",nesting:q}),q++,F=!1;break;case")":q--,F=!0,k.tag==="JSNonExpressionParen"&&q===k.nesting&&(G.pop(),P="?NonExpressionParenEnd",F=!1);break;case"{":p.lastIndex=0,S=!v.test(O)&&(b.test(O)||o.test(O)),C.push(S),F=!1;break;case"}":switch(k.tag){case"InterpolationInTemplate":if(C.length===k.nesting){g.lastIndex=_,I=g.exec(w),_=g.lastIndex,O=I[0],I[1]==="${"?(O="?InterpolationInTemplate",F=!1,yield{type:"TemplateMiddle",value:I[0]}):(G.pop(),F=!0,yield{type:"TemplateTail",value:I[0],closed:I[1]==="`"});continue}break;case"InterpolationInJSX":if(C.length===k.nesting){G.pop(),_+=1,O="}",yield{type:"JSXPunctuator",value:"}"};continue}}F=C.pop(),P=F?"?ExpressionBraceEnd":"}";break;case"]":F=!0;break;case"++":case"--":P=F?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(A&&(b.test(O)||o.test(O))){G.push({tag:"JSXTag"}),_+=1,O="<",yield{type:"JSXPunctuator",value:$};continue}F=!1;break;default:F=!1}_=N,O=P,yield{type:"Punctuator",value:$};continue}if(e.lastIndex=_,I=e.exec(w)){switch(_=e.lastIndex,P=I[0],I[0]){case"for":case"if":case"while":case"with":O!=="."&&O!=="?."&&(P="?NonExpressionParenKeyword")}O=P,F=!o.test(I[0]),yield{type:I[1]==="#"?"PrivateIdentifier":"IdentifierName",value:I[0]};continue}if(y.lastIndex=_,I=y.exec(w)){_=y.lastIndex,O=I[0],F=!0,yield{type:"StringLiteral",value:I[0],closed:I[2]!==void 0};continue}if(d.lastIndex=_,I=d.exec(w)){_=d.lastIndex,O=I[0],F=!0,yield{type:"NumericLiteral",value:I[0]};continue}if(g.lastIndex=_,I=g.exec(w)){_=g.lastIndex,O=I[0],I[1]==="${"?(O="?InterpolationInTemplate",G.push({tag:"InterpolationInTemplate",nesting:C.length}),F=!1,yield{type:"TemplateHead",value:I[0]}):(F=!0,yield{type:"NoSubstitutionTemplate",value:I[0],closed:I[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(r.lastIndex=_,I=r.exec(w)){switch(_=r.lastIndex,P=I[0],I[0]){case"<":G.push({tag:"JSXTag"});break;case">":G.pop(),O==="/"||k.tag==="JSXTagEnd"?(P="?JSX",F=!0):G.push({tag:"JSXChildren"});break;case"{":G.push({tag:"InterpolationInJSX",nesting:C.length}),P="?InterpolationInJSX",F=!1;break;case"/":O==="<"&&(G.pop(),G[G.length-1].tag==="JSXChildren"&&G.pop(),G.push({tag:"JSXTagEnd"}))}O=P,yield{type:"JSXPunctuator",value:I[0]};continue}if(t.lastIndex=_,I=t.exec(w)){_=t.lastIndex,O=I[0],yield{type:"JSXIdentifier",value:I[0]};continue}if(n.lastIndex=_,I=n.exec(w)){_=n.lastIndex,O=I[0],yield{type:"JSXString",value:I[0],closed:I[2]!==void 0};continue}break;case"JSXChildren":if(i.lastIndex=_,I=i.exec(w)){_=i.lastIndex,O=I[0],yield{type:"JSXText",value:I[0]};continue}switch(w[_]){case"<":G.push({tag:"JSXTag"}),_++,O="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":G.push({tag:"InterpolationInJSX",nesting:C.length}),_++,O="?InterpolationInJSX",F=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(E.lastIndex=_,I=E.exec(w)){_=E.lastIndex,yield{type:"WhiteSpace",value:I[0]};continue}if(a.lastIndex=_,I=a.exec(w)){_=a.lastIndex,F=!1,s.test(O)&&(O="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:I[0]};continue}if(l.lastIndex=_,I=l.exec(w)){_=l.lastIndex,u.test(I[0])&&(F=!1,s.test(O)&&(O="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:I[0],closed:I[1]!==void 0};continue}if(h.lastIndex=_,I=h.exec(w)){_=h.lastIndex,F=!1,yield{type:"SingleLineComment",value:I[0]};continue}R=String.fromCodePoint(w.codePointAt(_)),_+=R.length,O=R,F=!1,yield{type:k.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:R}}},up}var lJ=aJ();yS(lJ);var vR={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(vR.keyword);new Set(vR.strict);var uJ={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]},ER=Object.entries(uJ);function Zc(e){return String(e)}Zc.open="";Zc.close="";ER.reduce((e,[t])=>(e[t]=Zc,e),{isColorSupported:!1});function cJ(e=!1){let t=typeof process<"u"?process:void 0,r=(t==null?void 0:t.env)||{},n=(t==null?void 0:t.argv)||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||(t==null?void 0:t.platform)==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function dJ(e=!1){let t=cJ(e),r=(s,a,l,u)=>{let d="",p=0;do d+=s.substring(p,u)+l,p=u+a.length,u=s.indexOf(a,p);while(~u);return d+s.substring(p)},n=(s,a,l=s)=>{let u=d=>{let p=String(d),f=p.indexOf(a,s.length);return~f?s+r(p,a,l,f)+a:s+p+a};return u.open=s,u.close=a,u},i={isColorSupported:t},o=s=>`\x1B[${s}m`;for(let[s,a]of ER)i[s]=t?n(o(a[0]),o(a[1]),a[2]):Zc;return i}var Sr=dJ();function yu(e,t){if(!e)throw new Error(t)}function Fo(e,t){return typeof t===e}function pJ(e){return e instanceof Promise}function ja(e,t,r){Object.defineProperty(e,t,r)}function Ho(e,t,r){ja(e,t,{value:r,configurable:!0,writable:!0})}var Ri=Symbol.for("tinyspy:spy"),fJ=new Set,hJ=e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},mJ=e=>(ja(e,Ri,{value:{reset:()=>hJ(e[Ri])}}),e[Ri]),Sf=e=>e[Ri]||mJ(e);function yJ(e){yu(Fo("function",e)||Fo("undefined",e),"cannot spy on a non-function value");let t=function(...n){let i=Sf(t);i.called=!0,i.callCount++,i.calls.push(n);let o=i.next.shift();if(o){i.results.push(o);let[d,p]=o;if(d==="ok")return p;throw p}let s,a="ok",l=i.results.length;if(i.impl)try{new.target?s=Reflect.construct(i.impl,n,new.target):s=i.impl.apply(this,n),a="ok"}catch(d){throw s=d,a="error",i.results.push([a,d]),d}let u=[a,s];return pJ(s)&&s.then(d=>i.resolves[l]=["ok",d],d=>i.resolves[l]=["error",d]),i.results.push(u),s};Ho(t,"_isMockFunction",!0),Ho(t,"length",e?e.length:0),Ho(t,"name",e&&e.name||"spy");let r=Sf(t);return r.reset(),r.impl=e,t}function gJ(e){return!!e&&e._isMockFunction===!0}var TR=(e,t)=>{let r=Object.getOwnPropertyDescriptor(e,t);if(r)return[e,r];let n=Object.getPrototypeOf(e);for(;n!==null;){let i=Object.getOwnPropertyDescriptor(n,t);if(i)return[n,i];n=Object.getPrototypeOf(n)}},rv=(e,t)=>{t!=null&&typeof t=="function"&&t.prototype!=null&&Object.setPrototypeOf(e.prototype,t.prototype)};function wR(e,t,r){yu(!Fo("undefined",e),"spyOn could not find an object to spy upon"),yu(Fo("object",e)||Fo("function",e),"cannot spyOn on a primitive value");let[n,i]=(()=>{if(!Fo("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")})(),[o,s]=TR(e,n)||[];yu(s||n in e,`${String(n)} does not exist`);let a=!1;i==="value"&&s&&!s.value&&s.get&&(i="get",a=!0,r=s.get());let l;s?l=s[i]:i!=="value"?l=()=>e[n]:l=e[n],l&&TJ(l)&&(l=l[Ri].getOriginal());let u=h=>{let{value:y,...g}=s||{configurable:!0,writable:!0};i!=="value"&&delete g.writable,g[i]=h,ja(e,n,g)},d=()=>{o!==e?Reflect.deleteProperty(e,n):s&&!l?ja(e,n,s):u(l)};r||(r=l);let p=EJ(yJ(r),r);i==="value"&&rv(p,l);let f=p[Ri];return Ho(f,"restore",d),Ho(f,"getOriginal",()=>a?l():l),Ho(f,"willCall",h=>(f.impl=h,p)),u(a?()=>(rv(p,r),p):p),fJ.add(p),p}var bJ=new Set(["length","name","prototype"]);function vJ(e){let t=new Set,r={};for(;e&&e!==Object.prototype&&e!==Function.prototype;){let n=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let i of n)r[i]||bJ.has(i)||(t.add(i),r[i]=Object.getOwnPropertyDescriptor(e,i));e=Object.getPrototypeOf(e)}return{properties:t,descriptors:r}}function EJ(e,t){if(!t||Ri in t)return e;let{properties:r,descriptors:n}=vJ(t);for(let i of r){let o=n[i];TR(e,i)||ja(e,i,o)}return e}function TJ(e){return gJ(e)&&"getOriginal"in e[Ri]}var El=new Set;function Go(e){return typeof e=="function"&&"_isMockFunction"in e&&e._isMockFunction}function wJ(e,t,r){let n=r?{[{get:"getter",set:"setter"}[r]]:t}:t,i,o=SJ(e,t),s=o&&o[r||"value"];Go(s)&&(i=s.mock._state());try{let a=wR(e,n),l=_R(a);return i&&l.mock._state(i),l}catch(a){throw a instanceof TypeError&&Symbol.toStringTag&&e[Symbol.toStringTag]==="Module"&&(a.message.includes("Cannot redefine property")||a.message.includes("Cannot replace module namespace")||a.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:a}):a}}var _J=0;function _R(e){let t=e,r,n=[],i=!1,o=[],s=[],a=[],l=Sf(e),u={get calls(){return l.calls},get contexts(){return s},get instances(){return o},get invocationCallOrder(){return a},get results(){return l.results.map(([h,y])=>({type:h==="error"?"throw":"return",value:y}))},get settledResults(){return l.resolves.map(([h,y])=>({type:h==="error"?"rejected":"fulfilled",value:y}))},get lastCall(){return l.calls[l.calls.length-1]},_state(h){return h&&(r=h.implementation,n=h.onceImplementations,i=h.implementationChangedTemporarily),{implementation:r,onceImplementations:n,implementationChangedTemporarily:i}}};function d(...h){return o.push(this),s.push(this),a.push(++_J),(i?r:n.shift()||r||l.getOriginal()||(()=>{})).apply(this,h)}let p=t.name;t.getMockName=()=>p||"vi.fn()",t.mockName=h=>(p=h,t),t.mockClear=()=>(l.reset(),o=[],s=[],a=[],t),t.mockReset=()=>(t.mockClear(),r=void 0,n=[],t),t.mockRestore=()=>(t.mockReset(),l.restore(),t),Symbol.dispose&&(t[Symbol.dispose]=()=>t.mockRestore()),t.getMockImplementation=()=>i?r:n.at(0)||r,t.mockImplementation=h=>(r=h,l.willCall(d),t),t.mockImplementationOnce=h=>(n.push(h),t);function f(h,y){let g=r;r=h,l.willCall(d),i=!0;let v=()=>{r=g,i=!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=h=>t.mockImplementation(()=>h),t.mockReturnValueOnce=h=>t.mockImplementationOnce(()=>h),t.mockResolvedValue=h=>t.mockImplementation(()=>Promise.resolve(h)),t.mockResolvedValueOnce=h=>t.mockImplementationOnce(()=>Promise.resolve(h)),t.mockRejectedValue=h=>t.mockImplementation(()=>Promise.reject(h)),t.mockRejectedValueOnce=h=>t.mockImplementationOnce(()=>Promise.reject(h)),Object.defineProperty(t,"mock",{get:()=>u}),l.willCall(d),El.add(t),t}function nv(e){let t=_R(wR({spy:e||function(){}},"spy"));return e&&t.mockImplementation(e),t}function SJ(e,t){let r=Object.getOwnPropertyDescriptor(e,t);if(r)return r;let n=Object.getPrototypeOf(e);for(;n!==null;){let i=Object.getOwnPropertyDescriptor(n,t);if(i)return i;n=Object.getPrototypeOf(n)}}var ka=Symbol.for("matchers-object"),Da=Symbol.for("$$jest-matchers-object-storybook"),Xm=Symbol.for("expect-global"),Rf=Symbol.for("asymmetric-matchers-object"),RJ={toSatisfy(e,t,r){let{printReceived:n,printExpected:i,matcherHint:o}=this.utils,s=t(e);return{pass:s,message:()=>s?`${o(".not.toSatisfy","received","")}
|
|
242
|
-
|
|
243
|
-
Expected value to not satisfy:
|
|
244
|
-
${r||i(t)}
|
|
245
|
-
Received:
|
|
246
|
-
${n(e)}`:`${o(".toSatisfy","received","")}
|
|
247
|
-
|
|
248
|
-
Expected value to satisfy:
|
|
249
|
-
${r||i(t)}
|
|
250
|
-
|
|
251
|
-
Received:
|
|
252
|
-
${n(e)}`}},toBeOneOf(e,t){let{equals:r,customTesters:n}=this,{printReceived:i,printExpected:o,matcherHint:s}=this.utils;if(!Array.isArray(t))throw new TypeError(`You must provide an array to ${s(".toBeOneOf")}, not '${typeof t}'.`);let a=t.length===0||t.some(l=>r(l,e,n));return{pass:a,message:()=>a?`${s(".not.toBeOneOf","received","")}
|
|
253
|
-
|
|
254
|
-
Expected value to not be one of:
|
|
255
|
-
${o(t)}
|
|
256
|
-
Received:
|
|
257
|
-
${i(e)}`:`${s(".toBeOneOf","received","")}
|
|
258
|
-
|
|
259
|
-
Expected value to be one of:
|
|
260
|
-
${o(t)}
|
|
261
|
-
|
|
262
|
-
Received:
|
|
263
|
-
${i(e)}`}}},Vu=Sr.green,Qm=Sr.red,OJ=Sr.inverse,AJ=Sr.bold,pi=Sr.dim;function PJ(e,t="received",r="expected",n={}){let{comment:i="",isDirectExpectCall:o=!1,isNot:s=!1,promise:a="",secondArgument:l="",expectedColor:u=Vu,receivedColor:d=Qm,secondArgumentColor:p=Vu}=n,f="",h="expect";return!o&&t!==""&&(f+=pi(`${h}(`)+d(t),h=")"),a!==""&&(f+=pi(`${h}.`)+a,h=""),s&&(f+=`${pi(`${h}.`)}not`,h=""),e.includes(".")?h+=e:(f+=pi(`${h}.`)+e,h=""),r===""?h+="()":(f+=pi(`${h}(`)+u(r),l&&(f+=pi(", ")+p(l)),h=")"),i!==""&&(h+=` // ${i}`),h!==""&&(f+=pi(h)),f}var CJ="·";function SR(e){return e.replace(/\s+$/gm,t=>CJ.repeat(t.length))}function xJ(e){return Qm(SR(Ar(e)))}function NJ(e){return Vu(SR(Ar(e)))}function RR(){return{EXPECTED_COLOR:Vu,RECEIVED_COLOR:Qm,INVERTED_COLOR:OJ,BOLD_WEIGHT:AJ,DIM_COLOR:pi,diff:Cs,matcherHint:PJ,printReceived:xJ,printExpected:NJ,printDiffOrStringify:NS,printWithType:IJ}}function IJ(e,t,r){let n=qu(t),i=n!=="null"&&n!=="undefined"?`${e} has type: ${n}
|
|
264
|
-
`:"",o=`${e} has value: ${r(t)}`;return i+o}function Zm(){return globalThis[Da].customEqualityTesters}function We(e,t,r,n){return r=r||[],da(e,t,[],[],r,n?OR:jJ)}function iv(e){return!!e&&typeof e=="object"&&"asymmetricMatch"in e&&Yr("Function",e.asymmetricMatch)}function MJ(e,t){let r=iv(e),n=iv(t);if(!(r&&n)){if(r)return e.asymmetricMatch(t);if(n)return t.asymmetricMatch(e)}}function da(e,t,r,n,i,o){let s=!0,a=MJ(e,t);if(a!==void 0)return a;let l={equals:We};for(let y=0;y<i.length;y++){let g=i[y].call(l,e,t,i);if(g!==void 0)return g}if(typeof URL=="function"&&e instanceof URL&&t instanceof URL)return e.href===t.href;if(Object.is(e,t))return!0;if(e===null||t===null)return e===t;let u=Object.prototype.toString.call(e);if(u!==Object.prototype.toString.call(t))return!1;switch(u){case"[object Boolean]":case"[object String]":case"[object Number]":return typeof e!=typeof t?!1:typeof e!="object"&&typeof t!="object"?Object.is(e,t):Object.is(e.valueOf(),t.valueOf());case"[object Date]":{let y=+e,g=+t;return y===g||Number.isNaN(y)&&Number.isNaN(g)}case"[object RegExp]":return e.source===t.source&&e.flags===t.flags;case"[object Temporal.Instant]":case"[object Temporal.ZonedDateTime]":case"[object Temporal.PlainDateTime]":case"[object Temporal.PlainDate]":case"[object Temporal.PlainTime]":case"[object Temporal.PlainYearMonth]":case"[object Temporal.PlainMonthDay]":return e.equals(t);case"[object Temporal.Duration]":return e.toString()===t.toString()}if(typeof e!="object"||typeof t!="object")return!1;if(sv(e)&&sv(t))return e.isEqualNode(t);let d=r.length;for(;d--;){if(r[d]===e)return n[d]===t;if(n[d]===t)return!1}if(r.push(e),n.push(t),u==="[object Array]"&&e.length!==t.length)return!1;if(e instanceof Error&&t instanceof Error)try{return qJ(e,t,r,n,i,o)}finally{r.pop(),n.pop()}let p=ov(e,o),f,h=p.length;if(ov(t,o).length!==h)return!1;for(;h--;)if(f=p[h],s=o(t,f)&&da(e[f],t[f],r,n,i,o),!s)return!1;return r.pop(),n.pop(),s}function qJ(e,t,r,n,i,o){let s=Object.getPrototypeOf(e)===Object.getPrototypeOf(t)&&e.name===t.name&&e.message===t.message;return typeof t.cause<"u"&&s&&(s=da(e.cause,t.cause,r,n,i,o)),e instanceof AggregateError&&t instanceof AggregateError&&s&&(s=da(e.errors,t.errors,r,n,i,o)),s&&(s=da({...e},{...t},r,n,i,o)),s}function ov(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 jJ(e,t){return OR(e,t)&&e[t]!==void 0}function OR(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Yr(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}function sv(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 AR="@@__IMMUTABLE_KEYED__@@",PR="@@__IMMUTABLE_SET__@@",kJ="@@__IMMUTABLE_LIST__@@",ed="@@__IMMUTABLE_ORDERED__@@",DJ="@@__IMMUTABLE_RECORD__@@";function LJ(e){return!!(e&&e[AR]&&!e[ed])}function FJ(e){return!!(e&&e[PR]&&!e[ed])}function td(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function BJ(e){return!!(e&&td(e)&&e[kJ])}function $J(e){return!!(e&&td(e)&&e[AR]&&e[ed])}function UJ(e){return!!(e&&td(e)&&e[PR]&&e[ed])}function VJ(e){return!!(e&&td(e)&&e[DJ])}var CR=Symbol.iterator;function av(e){return!!(e!=null&&e[CR])}function jr(e,t,r=[],n=[],i=[]){if(typeof e!="object"||typeof t!="object"||Array.isArray(e)||Array.isArray(t)||!av(e)||!av(t))return;if(e.constructor!==t.constructor)return!1;let o=n.length;for(;o--;)if(n[o]===e)return i[o]===t;n.push(e),i.push(t);let s=[...r.filter(u=>u!==jr),a];function a(u,d){return jr(u,d,[...r],[...n],[...i])}if(e.size!==void 0){if(e.size!==t.size)return!1;if(Yr("Set",e)||FJ(e)){let u=!0;for(let d of e)if(!t.has(d)){let p=!1;for(let f of t)We(d,f,s)===!0&&(p=!0);if(p===!1){u=!1;break}}return n.pop(),i.pop(),u}else if(Yr("Map",e)||LJ(e)){let u=!0;for(let d of e)if(!t.has(d[0])||!We(d[1],t.get(d[0]),s)){let p=!1;for(let f of t){let h=We(d[0],f[0],s),y=!1;h===!0&&(y=We(d[1],f[1],s)),y===!0&&(p=!0)}if(p===!1){u=!1;break}}return n.pop(),i.pop(),u}}let l=t[CR]();for(let u of e){let d=l.next();if(d.done||!We(u,d.value,s))return!1}if(!l.next().done)return!1;if(!BJ(e)&&!$J(e)&&!UJ(e)&&!VJ(e)){let u=Object.entries(e),d=Object.entries(t);if(!We(u,d,s))return!1}return n.pop(),i.pop(),!0}function ey(e,t){return!e||typeof e!="object"||e===Object.prototype?!1:Object.prototype.hasOwnProperty.call(e,t)||ey(Object.getPrototypeOf(e),t)}function JJ(e){return hu(e)&&!(e instanceof Error)&&!Array.isArray(e)&&!(e instanceof Date)}function Tl(e,t,r=[]){let n=r.filter(o=>o!==Tl),i=(o=new WeakMap)=>(s,a)=>{if(JJ(a))return Object.keys(a).every(l=>{if(a[l]!=null&&typeof a[l]=="object"){if(o.has(a[l]))return We(s[l],a[l],n);o.set(a[l],!0)}let u=s!=null&&ey(s,l)&&We(s[l],a[l],[...n,i(o)]);return o.delete(a[l]),u})};return i()(e,t)}function lv(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return!1}function uv(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 i=0;i<r.byteLength;i++)if(r.getUint8(i)!==n.getUint8(i))return!1;return!0}function Of(e,t,r=[]){if(!Array.isArray(e)||!Array.isArray(t))return;let n=Object.keys(e),i=Object.keys(t),o=r.filter(s=>s!==Of);return We(e,t,o,!0)&&We(n,i)}function HJ(e,t="#{this}",r="#{exp}"){let n=`expected ${t} to be ${r} // Object.is equality`;return["toStrictEqual","toEqual"].includes(e)?`${n}
|
|
265
|
-
|
|
266
|
-
If it should pass with deep equality, replace "toBe" with "${e}"
|
|
267
|
-
|
|
268
|
-
Expected: ${t}
|
|
269
|
-
Received: serializes to the same string
|
|
270
|
-
`:n}function GJ(e,t){return`${t} ${e}${t===1?"":"s"}`}function cp(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 WJ(e,t,r){let n=0,i=(o=new WeakMap)=>(s,a)=>{if(Array.isArray(s)){if(Array.isArray(a)&&a.length===s.length)return a.map((l,u)=>i(o)(s[u],l))}else{if(s instanceof Date)return s;if(hu(s)&&hu(a)){if(We(s,a,[...r,jr,Tl]))return a;let l={};o.set(s,l),typeof s.constructor=="function"&&typeof s.constructor.name=="string"&&Object.defineProperty(l,"constructor",{enumerable:!1,value:s.constructor});for(let u of cp(s))ey(a,u)?l[u]=o.has(s[u])?o.get(s[u]):i(o)(s[u],a[u]):o.has(s[u])||(n+=1,hu(s[u])&&(n+=cp(s[u]).length),i(o)(s[u],a[u]));if(cp(l).length>0)return l}}return s};return{subset:i()(e,t),stripped:n}}if(!Object.prototype.hasOwnProperty.call(globalThis,ka)){let e=new WeakMap;Object.defineProperty(globalThis,ka,{get:()=>e})}if(!Object.prototype.hasOwnProperty.call(globalThis,Da)){let e=Object.create(null),t=[];Object.defineProperty(globalThis,Da,{configurable:!0,get:()=>({state:globalThis[ka].get(globalThis[Xm]),matchers:e,customEqualityTesters:t})})}if(!Object.prototype.hasOwnProperty.call(globalThis,Rf)){let e=Object.create(null);Object.defineProperty(globalThis,Rf,{get:()=>e})}function Ju(e){return globalThis[ka].get(e)}function dp(e,t){let r=globalThis[ka],n=r.get(t)||{},i=Object.defineProperties(n,{...Object.getOwnPropertyDescriptors(n),...Object.getOwnPropertyDescriptors(e)});r.set(t,i)}var Qn=class{constructor(e,t=!1){ur(this,"$$typeof",Symbol.for("jest.asymmetricMatcher"));this.sample=e,this.inverse=t}getMatcherContext(e){return{...Ju(e||globalThis[Xm]),equals:We,isNot:this.inverse,customTesters:Zm(),utils:{...RR(),diff:Cs,stringify:Ar,iterableEquality:jr,subsetEquality:Tl}}}};Qn.prototype[Symbol.for("chai/inspect")]=function(e){let t=Ar(this,e.depth,{min:!0});return t.length<=e.truncate?t:`${this.toString()}{…}`};var cv=class extends Qn{constructor(e,t=!1){if(!Yr("String",e))throw new Error("Expected is not a string");super(e,t)}asymmetricMatch(e){let t=Yr("String",e)&&e.includes(this.sample);return this.inverse?!t:t}toString(){return`String${this.inverse?"Not":""}Containing`}getExpectedType(){return"string"}},KJ=class extends Qn{asymmetricMatch(e){return e!=null}toString(){return"Anything"}toAsymmetricMatcher(){return"Anything"}},dv=class extends Qn{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)||!We(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"}},pv=class extends Qn{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(i=>We(n,i,t.customTesters)));return this.inverse?!r:r}toString(){return`Array${this.inverse?"Not":""}Containing`}getExpectedType(){return"array"}},zJ=class extends Qn{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)}>`}},fv=class extends Qn{constructor(e,t=!1){if(!Yr("String",e)&&!Yr("RegExp",e))throw new Error("Expected is not a String or a RegExp");super(new RegExp(e),t)}asymmetricMatch(e){let t=Yr("String",e)&&this.sample.test(e);return this.inverse?!t:t}toString(){return`String${this.inverse?"Not":""}Matching`}getExpectedType(){return"string"}},hv=class extends Qn{constructor(t,r=2,n=!1){if(!Yr("Number",t))throw new Error("Expected is not a Number");if(!Yr("Number",r))throw new Error("Precision is not a Number");super(t);ur(this,"precision");this.inverse=n,this.precision=r}asymmetricMatch(t){if(!Yr("Number",t))return!1;let r=!1;return t===Number.POSITIVE_INFINITY&&this.sample===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY&&this.sample===Number.NEGATIVE_INFINITY?r=!0:r=Math.abs(this.sample-t)<10**-this.precision/2,this.inverse?!r:r}toString(){return`Number${this.inverse?"Not":""}CloseTo`}getExpectedType(){return"number"}toAsymmetricMatcher(){return[this.toString(),this.sample,`(${GJ("digit",this.precision)})`].join(" ")}},YJ=(e,t)=>{t.addMethod(e.expect,"anything",()=>new KJ),t.addMethod(e.expect,"any",r=>new zJ(r)),t.addMethod(e.expect,"stringContaining",r=>new cv(r)),t.addMethod(e.expect,"objectContaining",r=>new dv(r)),t.addMethod(e.expect,"arrayContaining",r=>new pv(r)),t.addMethod(e.expect,"stringMatching",r=>new fv(r)),t.addMethod(e.expect,"closeTo",(r,n)=>new hv(r,n)),e.expect.not={stringContaining:r=>new cv(r,!0),objectContaining:r=>new dv(r,!0),arrayContaining:r=>new pv(r,!0),stringMatching:r=>new fv(r,!0),closeTo:(r,n)=>new hv(r,n,!0)}};function mv(e,t,r){let n=e.flag(t,"negate")?"not.":"",i=`${e.flag(t,"_name")}(${r?"expected":""})`,o=e.flag(t,"promise");return`expect(actual)${o?`.${o}`:""}.${n}${i}`}function yv(e,t,r,n){let i=e;if(i&&t instanceof Promise){t=t.finally(()=>{if(!i.promises)return;let s=i.promises.indexOf(t);s!==-1&&i.promises.splice(s,1)}),i.promises||(i.promises=[]),i.promises.push(t);let o=!1;return i.onFinished??(i.onFinished=[]),i.onFinished.push(()=>{if(!o){var s;let a=(((s=globalThis.__vitest_worker__)===null||s===void 0?void 0:s.onFilterStackTrace)||(l=>l||""))(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.
|
|
271
|
-
`,a].join(""))}}),{then(s,a){return o=!0,t.then(s,a)},catch(s){return t.catch(s)},finally(s){return t.finally(s)},[Symbol.toStringTag]:"Promise"}}return t}function gv(e,t){var r;e.result||(e.result={state:"fail"}),e.result.state="fail",(r=e.result).errors||(r.errors=[]),e.result.errors.push(dm(t))}function xR(e,t,r){return function(...n){if(t!=="withTest"&&e.flag(this,"_name",t),!e.flag(this,"soft"))return r.apply(this,n);let i=e.flag(this,"vitest-test");if(!i)throw new Error("expect.soft() can only be used inside a test");try{let o=r.apply(this,n);return o&&typeof o=="object"&&typeof o.then=="function"?o.then(YB,s=>{gv(i,s)}):o}catch(o){gv(i,o)}}}var XJ=(e,t)=>{let{AssertionError:r}=e,n=Zm();function i(u,d){let p=f=>{let h=xR(t,f,d);t.addMethod(e.Assertion.prototype,f,h),t.addMethod(globalThis[Da].matchers,f,h)};Array.isArray(u)?u.forEach(f=>p(f)):p(u)}["throw","throws","Throw"].forEach(u=>{t.overwriteMethod(e.Assertion.prototype,u,d=>function(...p){let f=t.flag(this,"promise"),h=t.flag(this,"object"),y=t.flag(this,"negate");if(f==="rejects")t.flag(this,"object",()=>{throw h});else if(f==="resolves"&&typeof h!="function"){if(y)return;{let g=t.flag(this,"message")||"expected promise to throw an error, but it didn't",v={showDiff:!1};throw new r(g,v,t.flag(this,"ssfi"))}}d.apply(this,p)})}),i("withTest",function(u){return t.flag(this,"vitest-test",u),this}),i("toEqual",function(u){let d=t.flag(this,"object"),p=We(d,u,[...n,jr]);return this.assert(p,"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",u,d)}),i("toStrictEqual",function(u){let d=t.flag(this,"object"),p=We(d,u,[...n,jr,lv,Of,uv],!0);return this.assert(p,"expected #{this} to strictly equal #{exp}","expected #{this} to not strictly equal #{exp}",u,d)}),i("toBe",function(u){let d=this._obj,p=Object.is(d,u),f="";return p||(We(d,u,[...n,jr,lv,Of,uv],!0)?f="toStrictEqual":We(d,u,[...n,jr])&&(f="toEqual")),this.assert(p,HJ(f),"expected #{this} not to be #{exp} // Object.is equality",u,d)}),i("toMatchObject",function(u){let d=this._obj,p=We(d,u,[...n,jr,Tl]),f=t.flag(this,"negate"),{subset:h,stripped:y}=WJ(d,u,n);if(p&&f||!p&&!f){let g=t.getMessage(this,[p,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",u,h,!1]),v=y===0?g:`${g}
|
|
272
|
-
(${y} matching ${y===1?"property":"properties"} omitted from actual)`;throw new r(v,{showDiff:!0,expected:u,actual:h})}}),i("toMatch",function(u){let d=this._obj;if(typeof d!="string")throw new TypeError(`.toMatch() expects to receive a string, but got ${typeof d}`);return this.assert(typeof u=="string"?d.includes(u):d.match(u),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",u,d)}),i("toContain",function(u){let d=this._obj;if(typeof Node<"u"&&d instanceof Node){if(!(u instanceof Node))throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof u}`);return this.assert(d.contains(u),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",u,d)}if(typeof DOMTokenList<"u"&&d instanceof DOMTokenList){wn(u,"class name",["string"]);let p=t.flag(this,"negate")?d.value.replace(u,"").trim():`${d.value} ${u}`;return this.assert(d.contains(u),`expected "${d.value}" to contain "${u}"`,`expected "${d.value}" not to contain "${u}"`,p,d.value)}return typeof d=="string"&&typeof u=="string"?this.assert(d.includes(u),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",u,d):(d!=null&&typeof d!="string"&&t.flag(this,"object",Array.from(d)),this.contain(u))}),i("toContainEqual",function(u){let d=t.flag(this,"object"),p=Array.from(d).findIndex(f=>We(f,u,n));this.assert(p!==-1,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",u)}),i("toBeTruthy",function(){let u=t.flag(this,"object");this.assert(!!u,"expected #{this} to be truthy","expected #{this} to not be truthy",!0,u)}),i("toBeFalsy",function(){let u=t.flag(this,"object");this.assert(!u,"expected #{this} to be falsy","expected #{this} to not be falsy",!1,u)}),i("toBeGreaterThan",function(u){let d=this._obj;return wn(d,"actual",["number","bigint"]),wn(u,"expected",["number","bigint"]),this.assert(d>u,`expected ${d} to be greater than ${u}`,`expected ${d} to be not greater than ${u}`,u,d,!1)}),i("toBeGreaterThanOrEqual",function(u){let d=this._obj;return wn(d,"actual",["number","bigint"]),wn(u,"expected",["number","bigint"]),this.assert(d>=u,`expected ${d} to be greater than or equal to ${u}`,`expected ${d} to be not greater than or equal to ${u}`,u,d,!1)}),i("toBeLessThan",function(u){let d=this._obj;return wn(d,"actual",["number","bigint"]),wn(u,"expected",["number","bigint"]),this.assert(d<u,`expected ${d} to be less than ${u}`,`expected ${d} to be not less than ${u}`,u,d,!1)}),i("toBeLessThanOrEqual",function(u){let d=this._obj;return wn(d,"actual",["number","bigint"]),wn(u,"expected",["number","bigint"]),this.assert(d<=u,`expected ${d} to be less than or equal to ${u}`,`expected ${d} to be not less than or equal to ${u}`,u,d,!1)}),i("toBeNaN",function(){let u=t.flag(this,"object");this.assert(Number.isNaN(u),"expected #{this} to be NaN","expected #{this} not to be NaN",Number.NaN,u)}),i("toBeUndefined",function(){let u=t.flag(this,"object");this.assert(u===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined",void 0,u)}),i("toBeNull",function(){let u=t.flag(this,"object");this.assert(u===null,"expected #{this} to be null","expected #{this} not to be null",null,u)}),i("toBeDefined",function(){let u=t.flag(this,"object");this.assert(typeof u<"u","expected #{this} to be defined","expected #{this} to be undefined",u)}),i("toBeTypeOf",function(u){let d=typeof this._obj,p=u===d;return this.assert(p,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",u,d)}),i("toBeInstanceOf",function(u){return this.instanceOf(u)}),i("toHaveLength",function(u){return this.have.length(u)}),i("toHaveProperty",function(...u){Array.isArray(u[0])&&(u[0]=u[0].map(E=>String(E).replace(/([.[\]])/g,"\\$1")).join("."));let d=this._obj,[p,f]=u,h=()=>Object.prototype.hasOwnProperty.call(d,p)?{value:d[p],exists:!0}:t.getPathInfo(d,p),{value:y,exists:g}=h(),v=g&&(u.length===1||We(f,y,n)),b=u.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)}),i("toBeCloseTo",function(u,d=2){let p=this._obj,f=!1,h=0,y=0;return u===Number.POSITIVE_INFINITY&&p===Number.POSITIVE_INFINITY||u===Number.NEGATIVE_INFINITY&&p===Number.NEGATIVE_INFINITY?f=!0:(h=10**-d/2,y=Math.abs(p-u),f=y<h),this.assert(f,`expected #{this} to be close to #{exp}, received difference is ${y}, but expected ${h}`,`expected #{this} to not be close to #{exp}, received difference is ${y}, but expected ${h}`,u,p,!1)});function o(u){if(!Go(u._obj))throw new TypeError(`${t.inspect(u._obj)} is not a spy or a call to a spy!`)}function s(u){return o(u),u._obj}i(["toHaveBeenCalledTimes","toBeCalledTimes"],function(u){let d=s(this),p=d.getMockName(),f=d.mock.calls.length;return this.assert(f===u,`expected "${p}" to be called #{exp} times, but got ${f} times`,`expected "${p}" to not be called #{exp} times`,u,f,!1)}),i("toHaveBeenCalledOnce",function(){let u=s(this),d=u.getMockName(),p=u.mock.calls.length;return this.assert(p===1,`expected "${d}" to be called once, but got ${p} times`,`expected "${d}" to not be called once`,1,p,!1)}),i(["toHaveBeenCalled","toBeCalled"],function(){let u=s(this),d=u.getMockName(),p=u.mock.calls.length,f=p>0,h=t.flag(this,"negate"),y=t.getMessage(this,[f,`expected "${d}" to be called at least once`,`expected "${d}" to not be called at all, but actually been called ${p} times`,!0,f]);if(f&&h&&(y=pp(u,y)),f&&h||!f&&!h)throw new r(y)});function a(u,d){return u.length===d.length&&u.every((p,f)=>We(p,d[f],[...n,jr]))}i(["toHaveBeenCalledWith","toBeCalledWith"],function(...u){let d=s(this),p=d.getMockName(),f=d.mock.calls.some(g=>a(g,u)),h=t.flag(this,"negate"),y=t.getMessage(this,[f,`expected "${p}" to be called with arguments: #{exp}`,`expected "${p}" to not be called with arguments: #{exp}`,u]);if(f&&h||!f&&!h)throw new r(pp(d,y,u))}),i("toHaveBeenCalledExactlyOnceWith",function(...u){let d=s(this),p=d.getMockName(),f=d.mock.calls.length,h=d.mock.calls.some(v=>a(v,u))&&f===1,y=t.flag(this,"negate"),g=t.getMessage(this,[h,`expected "${p}" to be called once with arguments: #{exp}`,`expected "${p}" to not be called once with arguments: #{exp}`,u]);if(h&&y||!h&&!y)throw new r(pp(d,g,u))}),i(["toHaveBeenNthCalledWith","nthCalledWith"],function(u,...d){let p=s(this),f=p.getMockName(),h=p.mock.calls[u-1],y=p.mock.calls.length,g=u<=y;this.assert(h&&a(h,d),`expected ${pa(u)} "${f}" call to have been called with #{exp}${g?"":`, but called only ${y} times`}`,`expected ${pa(u)} "${f}" call to not have been called with #{exp}`,d,h,g)}),i(["toHaveBeenLastCalledWith","lastCalledWith"],function(...u){let d=s(this),p=d.getMockName(),f=d.mock.calls[d.mock.calls.length-1];this.assert(f&&a(f,u),`expected last "${p}" call to have been called with #{exp}`,`expected last "${p}" call to not have been called with #{exp}`,u,f)});function l(u,d,p){let f=u.mock.invocationCallOrder,h=d.mock.invocationCallOrder;return f.length===0?!p:h.length===0?!1:f[0]<h[0]}i(["toHaveBeenCalledBefore"],function(u,d=!0){let p=s(this);if(!Go(u))throw new TypeError(`${t.inspect(u)} is not a spy or a call to a spy`);this.assert(l(p,u,d),`expected "${p.getMockName()}" to have been called before "${u.getMockName()}"`,`expected "${p.getMockName()}" to not have been called before "${u.getMockName()}"`,u,p)}),i(["toHaveBeenCalledAfter"],function(u,d=!0){let p=s(this);if(!Go(u))throw new TypeError(`${t.inspect(u)} is not a spy or a call to a spy`);this.assert(l(u,p,d),`expected "${p.getMockName()}" to have been called after "${u.getMockName()}"`,`expected "${p.getMockName()}" to not have been called after "${u.getMockName()}"`,u,p)}),i(["toThrow","toThrowError"],function(u){if(typeof u=="string"||typeof u>"u"||u instanceof RegExp)return this.throws(u===""?/^$/:u);let d=this._obj,p=t.flag(this,"promise"),f=t.flag(this,"negate"),h=null;if(p==="rejects")h=d;else if(p==="resolves"&&typeof d!="function"){if(f)return;{let y=t.flag(this,"message")||"expected promise to throw an error, but it didn't",g={showDiff:!1};throw new r(y,g,t.flag(this,"ssfi"))}}else{let y=!1;try{d()}catch(g){y=!0,h=g}if(!y&&!f){let g=t.flag(this,"message")||"expected function to throw an error, but it didn't",v={showDiff:!1};throw new r(g,v,t.flag(this,"ssfi"))}}if(typeof u=="function"){let y=u.name||u.prototype.constructor.name;return this.assert(h&&h instanceof u,`expected error to be instance of ${y}`,`expected error not to be instance of ${y}`,u,h)}if(u instanceof Error){let y=We(h,u,[...n,jr]);return this.assert(y,"expected a thrown error to be #{exp}","expected a thrown error not to be #{exp}",u,h)}if(typeof u=="object"&&"asymmetricMatch"in u&&typeof u.asymmetricMatch=="function"){let y=u;return this.assert(h&&y.asymmetricMatch(h),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",y,h)}throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof u}"`)}),[{name:"toHaveResolved",condition:u=>u.mock.settledResults.length>0&&u.mock.settledResults.some(({type:d})=>d==="fulfilled"),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:u=>u.mock.calls.length>0&&u.mock.results.some(({type:d})=>d!=="throw"),action:"called"}].forEach(({name:u,condition:d,action:p})=>{i(u,function(){let f=s(this),h=f.getMockName(),y=d(f);this.assert(y,`expected "${h}" to be successfully ${p} at least once`,`expected "${h}" to not be successfully ${p}`,y,!y,!1)})}),[{name:"toHaveResolvedTimes",condition:(u,d)=>u.mock.settledResults.reduce((p,{type:f})=>f==="fulfilled"?++p:p,0)===d,action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:(u,d)=>u.mock.results.reduce((p,{type:f})=>f==="throw"?p:++p,0)===d,action:"called"}].forEach(({name:u,condition:d,action:p})=>{i(u,function(f){let h=s(this),y=h.getMockName(),g=d(h,f);this.assert(g,`expected "${y}" to be successfully ${p} ${f} times`,`expected "${y}" to not be successfully ${p} ${f} times`,`expected resolved times: ${f}`,`received resolved times: ${g}`,!1)})}),[{name:"toHaveResolvedWith",condition:(u,d)=>u.mock.settledResults.some(({type:p,value:f})=>p==="fulfilled"&&We(d,f)),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:(u,d)=>u.mock.results.some(({type:p,value:f})=>p==="return"&&We(d,f)),action:"return"}].forEach(({name:u,condition:d,action:p})=>{i(u,function(f){let h=s(this),y=d(h,f),g=t.flag(this,"negate");if(y&&g||!y&&!g){let v=h.getMockName(),b=t.getMessage(this,[y,`expected "${v}" to ${p} with: #{exp} at least once`,`expected "${v}" to not ${p} with: #{exp}`,f]),E=p==="return"?h.mock.results:h.mock.settledResults;throw new r(QJ(h,E,b,f))}})}),[{name:"toHaveLastResolvedWith",condition:(u,d)=>{let p=u.mock.settledResults[u.mock.settledResults.length-1];return p&&p.type==="fulfilled"&&We(p.value,d)},action:"resolve"},{name:["toHaveLastReturnedWith","lastReturnedWith"],condition:(u,d)=>{let p=u.mock.results[u.mock.results.length-1];return p&&p.type==="return"&&We(p.value,d)},action:"return"}].forEach(({name:u,condition:d,action:p})=>{i(u,function(f){let h=s(this),y=p==="return"?h.mock.results:h.mock.settledResults,g=y[y.length-1],v=h.getMockName();this.assert(d(h,f),`expected last "${v}" call to ${p} #{exp}`,`expected last "${v}" call to not ${p} #{exp}`,f,g==null?void 0:g.value)})}),[{name:"toHaveNthResolvedWith",condition:(u,d,p)=>{let f=u.mock.settledResults[d-1];return f&&f.type==="fulfilled"&&We(f.value,p)},action:"resolve"},{name:["toHaveNthReturnedWith","nthReturnedWith"],condition:(u,d,p)=>{let f=u.mock.results[d-1];return f&&f.type==="return"&&We(f.value,p)},action:"return"}].forEach(({name:u,condition:d,action:p})=>{i(u,function(f,h){let y=s(this),g=y.getMockName(),v=(p==="return"?y.mock.results:y.mock.settledResults)[f-1],b=`${pa(f)} call`;this.assert(d(y,f,h),`expected ${b} "${g}" call to ${p} #{exp}`,`expected ${b} "${g}" call to not ${p} #{exp}`,h,v==null?void 0:v.value)})}),i("withContext",function(u){for(let d in u)t.flag(this,d,u[d]);return this}),t.addProperty(e.Assertion.prototype,"resolves",function(){let u=new Error("resolves");t.flag(this,"promise","resolves"),t.flag(this,"error",u);let d=t.flag(this,"vitest-test"),p=t.flag(this,"object");if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .resolves");if(typeof(p==null?void 0:p.then)!="function")throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof p}'.`);let f=new Proxy(this,{get:(h,y,g)=>{let v=Reflect.get(h,y,g);return typeof v!="function"?v instanceof e.Assertion?f:v:(...b)=>{t.flag(this,"_name",y);let E=p.then(w=>(t.flag(this,"object",w),v.call(this,...b)),w=>{let A=new r(`promise rejected "${t.inspect(w)}" instead of resolving`,{showDiff:!1});throw A.cause=w,A.stack=u.stack.replace(u.message,A.message),A});return yv(d,E,mv(t,this,!!b.length),u)}}});return f}),t.addProperty(e.Assertion.prototype,"rejects",function(){let u=new Error("rejects");t.flag(this,"promise","rejects"),t.flag(this,"error",u);let d=t.flag(this,"vitest-test"),p=t.flag(this,"object"),f=typeof p=="function"?p():p;if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .rejects");if(typeof(f==null?void 0:f.then)!="function")throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof f}'.`);let h=new Proxy(this,{get:(y,g,v)=>{let b=Reflect.get(y,g,v);return typeof b!="function"?b instanceof e.Assertion?h:b:(...E)=>{t.flag(this,"_name",g);let w=f.then(A=>{let C=new r(`promise resolved "${t.inspect(A)}" instead of rejecting`,{showDiff:!0,expected:new Error("rejected promise"),actual:A});throw C.stack=u.stack.replace(u.message,C.message),C},A=>(t.flag(this,"object",A),b.call(this,...E)));return yv(d,w,mv(t,this,!!E.length),u)}}});return h})};function pa(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 pp(e,t,r){return e.mock.calls.length&&(t+=Sr.gray(`
|
|
273
|
-
|
|
274
|
-
Received:
|
|
275
|
-
|
|
276
|
-
${e.mock.calls.map((n,i)=>{let o=Sr.bold(` ${pa(i+1)} ${e.getMockName()} call:
|
|
277
|
-
|
|
278
|
-
`);return r?o+=Cs(r,n,{omitAnnotationLines:!0}):o+=Ar(n).split(`
|
|
279
|
-
`).map(s=>` ${s}`).join(`
|
|
280
|
-
`),o+=`
|
|
281
|
-
`,o}).join(`
|
|
282
|
-
`)}`)),t+=Sr.gray(`
|
|
283
|
-
|
|
284
|
-
Number of calls: ${Sr.bold(e.mock.calls.length)}
|
|
285
|
-
`),t}function QJ(e,t,r,n){return t.length&&(r+=Sr.gray(`
|
|
286
|
-
|
|
287
|
-
Received:
|
|
288
|
-
|
|
289
|
-
${t.map((i,o)=>{let s=Sr.bold(` ${pa(o+1)} ${e.getMockName()} call return:
|
|
290
|
-
|
|
291
|
-
`);return n?s+=Cs(n,i.value,{omitAnnotationLines:!0}):s+=Ar(i).split(`
|
|
292
|
-
`).map(a=>` ${a}`).join(`
|
|
293
|
-
`),s+=`
|
|
294
|
-
`,s}).join(`
|
|
295
|
-
`)}`)),r+=Sr.gray(`
|
|
296
|
-
|
|
297
|
-
Number of calls: ${Sr.bold(e.mock.calls.length)}
|
|
298
|
-
`),r}function ZJ(e,t){let r=e._obj,n=fn.flag(e,"negate"),i=fn.flag(e,"promise")||"",o={...RR(),diff:Cs,stringify:Ar,iterableEquality:jr,subsetEquality:Tl};return{state:{...Ju(t),customTesters:Zm(),isNot:n,utils:o,promise:i,equals:We,suppressedErrors:[],soft:fn.flag(e,"soft"),poll:fn.flag(e,"poll")},isNot:n,obj:r}}var bv=class extends Error{constructor(e,t,r){super(e),this.actual=t,this.expected=r}};function eH(e,t,r){return(n,i)=>{Object.entries(r).forEach(([o,s])=>{function a(...p){let{state:f,isNot:h,obj:y}=ZJ(this,t),g=s.call(f,y,...p);if(g&&typeof g=="object"&&typeof g.then=="function")return g.then(({pass:A,message:C,actual:R,expected:S})=>{if(A&&h||!A&&!h)throw new bv(C(),R,S)});let{pass:v,message:b,actual:E,expected:w}=g;if(v&&h||!v&&!h)throw new bv(b(),E,w)}let l=xR(i,o,a);i.addMethod(globalThis[Da].matchers,o,l),i.addMethod(e.Assertion.prototype,o,l);class u extends Qn{constructor(f=!1,...h){super(h,f)}asymmetricMatch(f){let{pass:h}=s.call(this.getMatcherContext(t),f,...this.sample);return this.inverse?!h:h}toString(){return`${this.inverse?"not.":""}${o}`}getExpectedType(){return"any"}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map(f=>Ar(f)).join(", ")}>`}}let d=(...p)=>new u(!1,...p);Object.defineProperty(t,o,{configurable:!0,enumerable:!0,value:d,writable:!0}),Object.defineProperty(t.not,o,{configurable:!0,enumerable:!0,value:(...p)=>new u(!0,...p),writable:!0}),Object.defineProperty(globalThis[Rf],o,{configurable:!0,enumerable:!0,value:d,writable:!0})})}}var tH=(e,t)=>{t.addMethod(e.expect,"extend",(r,n)=>{Jo(eH(e,r,n))})};function rH(){Jo(tH),Jo(XJ),Jo(YJ);let e=(n,i)=>{let{assertionCalls:o}=Ju(e);return dp({assertionCalls:o+1,soft:!1},e),ro(n,i)};Object.assign(e,ro),e.getState=()=>Ju(e),e.setState=n=>dp(n,e),e.extend=n=>ro.extend(e,n),e.soft=(...n)=>{let i=e(...n);return e.setState({soft:!0}),i},e.extend(RJ),e.unreachable=n=>{D.fail(`expected${n?` "${n}" `:" "}not to be reached`)};function t(n){let i=()=>new Error(`expected number of assertions to be ${n}, but got ${e.getState().assertionCalls}`);"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i(),t),e.setState({expectedAssertionsNumber:n,expectedAssertionsNumberErrorGen:i})}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 dp({assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null},e),fn.addMethod(e,"assertions",t),fn.addMethod(e,"hasAssertions",r),e.extend(w0),e}var NR=rH();Object.defineProperty(globalThis,Xm,{value:NR,writable:!0,configurable:!0});function nH(e,t,r){Object.defineProperty(e,t,r)}var gu=Symbol.for("tinyspy:spy"),iH=e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},oH=e=>(nH(e,gu,{value:{reset:()=>iH(e[gu])}}),e[gu]),sH=e=>e[gu]||oH(e),ty=globalThis.__STORYBOOK_MODULE_MOCK_SPIES__??(globalThis.__STORYBOOK_MODULE_MOCK_SPIES__=new Set),Af=new Set;function IR(e){return Af.add(e),()=>void Af.delete(e)}var aH=(...e)=>{let t=wJ(...e);return qR(t)};function MR(e){let t=e?nv(e):nv();return qR(t)}function qR(e){let t=vv(e),r=t.mockImplementation.bind(null);return t.mockImplementation=n=>vv(r(n)),t}function vv(e){let t=sH(e),r=t.impl;return t.willCall(function(...n){return Af.forEach(i=>i(e,n)),r==null?void 0:r.apply(this,n)}),e}function jR(){El.forEach(e=>e.mockClear()),ty.forEach(e=>e.mockClear())}function kR(){El.forEach(e=>e.mockReset()),ty.forEach(e=>e.mockReset())}function DR(){El.forEach(e=>e.mockRestore()),ty.forEach(e=>e.mockClear())}function lH(e,t={}){return e}var LR={};br(LR,{buildQueries:()=>ei,configure:()=>T3,createEvent:()=>vu,findAllByAltText:()=>UO,findAllByDisplayValue:()=>kO,findAllByLabelText:()=>mO,findAllByPlaceholderText:()=>SO,findAllByRole:()=>tA,findAllByTestId:()=>aA,findAllByText:()=>xO,findAllByTitle:()=>KO,findByAltText:()=>VO,findByDisplayValue:()=>DO,findByLabelText:()=>yO,findByPlaceholderText:()=>RO,findByRole:()=>rA,findByTestId:()=>lA,findByText:()=>NO,findByTitle:()=>zO,fireEvent:()=>Ua,getAllByAltText:()=>BO,getAllByDisplayValue:()=>qO,getAllByLabelText:()=>gO,getAllByPlaceholderText:()=>wO,getAllByRole:()=>ZO,getAllByTestId:()=>oA,getAllByText:()=>PO,getAllByTitle:()=>GO,getByAltText:()=>$O,getByDisplayValue:()=>jO,getByLabelText:()=>bO,getByPlaceholderText:()=>_O,getByRole:()=>eA,getByTestId:()=>sA,getByText:()=>CO,getByTitle:()=>WO,getConfig:()=>Fe,getDefaultNormalizer:()=>ay,getElementError:()=>nd,getMultipleElementsFoundError:()=>id,getNodeText:()=>wl,getQueriesForElement:()=>Df,getRoles:()=>lO,getSuggestedQuery:()=>Gu,isInaccessible:()=>rd,logDOM:()=>Pf,logRoles:()=>O3,makeFindQuery:()=>cs,makeGetAllQuery:()=>cy,makeSingleQuery:()=>us,prettyDOM:()=>Ba,prettyFormat:()=>ry,queries:()=>Wu,queryAllByAltText:()=>LO,queryAllByAttribute:()=>So,queryAllByDisplayValue:()=>IO,queryAllByLabelText:()=>vO,queryAllByPlaceholderText:()=>EO,queryAllByRole:()=>XO,queryAllByTestId:()=>nA,queryAllByText:()=>OO,queryAllByTitle:()=>JO,queryByAltText:()=>FO,queryByAttribute:()=>cO,queryByDisplayValue:()=>MO,queryByLabelText:()=>fO,queryByPlaceholderText:()=>TO,queryByRole:()=>QO,queryByTestId:()=>iA,queryByText:()=>AO,queryByTitle:()=>HO,queryHelpers:()=>B3,screen:()=>hG,waitFor:()=>uy,waitForElementToBeRemoved:()=>aG,within:()=>Df,wrapAllByQueryWithSuggestion:()=>gr,wrapSingleQueryWithSuggestion:()=>Oi});var ry=St(dq()),uH=Object.prototype.toString;function cH(e){return typeof e=="function"||uH.call(e)==="[object Function]"}function dH(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var pH=Math.pow(2,53)-1;function fH(e){var t=dH(e);return Math.min(Math.max(t,0),pH)}function Wr(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 i=fH(n.length),o=cH(r)?Object(new r(i)):new Array(i),s=0,a;s<i;)a=n[s],o[s]=a,s+=1;return o.length=i,o}function La(e){"@babel/helpers - typeof";return La=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},La(e)}function hH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mH(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,FR(n.key),n)}}function yH(e,t,r){return t&&mH(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gH(e,t,r){return t=FR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FR(e){var t=bH(e,"string");return La(t)==="symbol"?t:String(t)}function bH(e,t){if(La(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(La(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vH=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];hH(this,e),gH(this,"items",void 0),this.items=t}return yH(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}(),EH=typeof Set>"u"?Set:vH;function tr(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var TH={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"},wH={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function _H(e,t){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some(function(r){var n;return e.hasAttribute(r)&&!((n=wH[t])!==null&&n!==void 0&&n.has(r))})}function BR(e,t){return _H(e,t)}function SH(e){var t=OH(e);if(t===null||t==="presentation"){var r=RH(e);if(t!=="presentation"||BR(e,r||""))return r}return t}function RH(e){var t=TH[tr(e)];if(t!==void 0)return t;switch(tr(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!BR(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 OH(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}function ct(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function $R(e){return ct(e)&&tr(e)==="caption"}function bu(e){return ct(e)&&tr(e)==="input"}function AH(e){return ct(e)&&tr(e)==="optgroup"}function PH(e){return ct(e)&&tr(e)==="select"}function CH(e){return ct(e)&&tr(e)==="table"}function xH(e){return ct(e)&&tr(e)==="textarea"}function NH(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function IH(e){return ct(e)&&tr(e)==="fieldset"}function MH(e){return ct(e)&&tr(e)==="legend"}function qH(e){return ct(e)&&tr(e)==="slot"}function jH(e){return ct(e)&&e.ownerSVGElement!==void 0}function kH(e){return ct(e)&&tr(e)==="svg"}function DH(e){return jH(e)&&tr(e)==="title"}function Hu(e,t){if(ct(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(i){return n.getElementById(i)}).filter(function(i){return i!==null})}return[]}function Ln(e,t){return ct(e)?t.indexOf(SH(e))!==-1:!1}function LH(e){return e.trim().replace(/\s\s+/g," ")}function FH(e,t){if(!ct(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 BH(e){return Ln(e,["button","combobox","listbox","textbox"])||UR(e,"range")}function UR(e,t){if(!ct(e))return!1;switch(t){case"range":return Ln(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function Ev(e,t){var r=Wr(e.querySelectorAll(t));return Hu(e,"aria-owns").forEach(function(n){r.push.apply(r,Wr(n.querySelectorAll(t)))}),r}function $H(e){return PH(e)?e.selectedOptions||Ev(e,"[selected]"):Ev(e,'[aria-selected="true"]')}function UH(e){return Ln(e,["none","presentation"])}function VH(e){return $R(e)}function JH(e){return Ln(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function HH(e){return!1}function GH(e){return bu(e)||xH(e)?e.value:e.textContent||""}function Tv(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function VR(e){var t=tr(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function JR(e){if(VR(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&ct(r)){var n=JR(r);n!==null&&(t=n)}}),t}function WH(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):JR(e)}function KH(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return Wr(t);if(!VR(e))return null;var r=e.ownerDocument;return Wr(r.querySelectorAll("label")).filter(function(n){return WH(n)===e})}function zH(e){var t=e.assignedNodes();return t.length===0?Wr(e.childNodes):t}function HR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new EH,n=NH(e),i=t.compute,o=i===void 0?"name":i,s=t.computedStyleSupportsPseudoElements,a=s===void 0?t.getComputedStyle!==void 0:s,l=t.getComputedStyle,u=l===void 0?n.getComputedStyle.bind(n):l,d=t.hidden,p=d===void 0?!1:d;function f(b,E){var w="";if(ct(b)&&a){var A=u(b,"::before"),C=Tv(A);w="".concat(C," ").concat(w)}var R=qH(b)?zH(b):Wr(b.childNodes).concat(Hu(b,"aria-owns"));if(R.forEach(function(O){var M=v(O,{isEmbeddedInLabel:E.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),I=ct(O)?u(O).getPropertyValue("display"):"inline",k=I!=="inline"?" ":"";w+="".concat(k).concat(M).concat(k)}),ct(b)&&a){var S=u(b,"::after"),_=Tv(S);w="".concat(w," ").concat(_)}return w.trim()}function h(b,E){var w=b.getAttributeNode(E);return w!==null&&!r.has(w)&&w.value.trim()!==""?(r.add(w),w.value):null}function y(b){return ct(b)?h(b,"title"):null}function g(b){if(!ct(b))return null;if(IH(b)){r.add(b);for(var E=Wr(b.childNodes),w=0;w<E.length;w+=1){var A=E[w];if(MH(A))return v(A,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(CH(b)){r.add(b);for(var C=Wr(b.childNodes),R=0;R<C.length;R+=1){var S=C[R];if($R(S))return v(S,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(kH(b)){r.add(b);for(var _=Wr(b.childNodes),O=0;O<_.length;O+=1){var M=_[O];if(DH(M))return M.textContent}return null}else if(tr(b)==="img"||tr(b)==="area"){var I=h(b,"alt");if(I!==null)return I}else if(AH(b)){var k=h(b,"label");if(k!==null)return k}if(bu(b)&&(b.type==="button"||b.type==="submit"||b.type==="reset")){var N=h(b,"value");if(N!==null)return N;if(b.type==="submit")return"Submit";if(b.type==="reset")return"Reset"}var P=KH(b);if(P!==null&&P.length!==0)return r.add(b),Wr(P).map(function(G){return v(G,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(G){return G.length>0}).join(" ");if(bu(b)&&b.type==="image"){var q=h(b,"alt");if(q!==null)return q;var F=h(b,"title");return F!==null?F:"Submit Query"}if(Ln(b,["button"])){var $=f(b,{isEmbeddedInLabel:!1});if($!=="")return $}return null}function v(b,E){if(r.has(b))return"";if(!p&&FH(b,u)&&!E.isReferenced)return r.add(b),"";var w=ct(b)?b.getAttributeNode("aria-labelledby"):null,A=w!==null&&!r.has(w)?Hu(b,"aria-labelledby"):[];if(o==="name"&&!E.isReferenced&&A.length>0)return r.add(w),A.map(function(I){return v(I,{isEmbeddedInLabel:E.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var C=E.recursion&&BH(b)&&o==="name";if(!C){var R=(ct(b)&&b.getAttribute("aria-label")||"").trim();if(R!==""&&o==="name")return r.add(b),R;if(!UH(b)){var S=g(b);if(S!==null)return r.add(b),S}}if(Ln(b,["menu"]))return r.add(b),"";if(C||E.isEmbeddedInLabel||E.isReferenced){if(Ln(b,["combobox","listbox"])){r.add(b);var _=$H(b);return _.length===0?bu(b)?b.value:"":Wr(_).map(function(I){return v(I,{isEmbeddedInLabel:E.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(UR(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(Ln(b,["textbox"]))return r.add(b),GH(b)}if(JH(b)||ct(b)&&E.isReferenced||VH(b)||HH()){var O=f(b,{isEmbeddedInLabel:E.isEmbeddedInLabel});if(O!=="")return r.add(b),O}if(b.nodeType===b.TEXT_NODE)return r.add(b),b.textContent||"";if(E.recursion)return r.add(b),f(b,{isEmbeddedInLabel:E.isEmbeddedInLabel});var M=y(b);return M!==null?(r.add(b),M):(r.add(b),"")}return LH(v(e,{isEmbeddedInLabel:!1,isReferenced:o==="description",recursion:!1}))}function Fa(e){"@babel/helpers - typeof";return Fa=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},Fa(e)}function wv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _v(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wv(Object(r),!0).forEach(function(n){YH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YH(e,t,r){return t=XH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XH(e){var t=QH(e,"string");return Fa(t)==="symbol"?t:String(t)}function QH(e,t){if(Fa(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fa(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Hu(e,"aria-describedby").map(function(i){return HR(i,_v(_v({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("title");r=n===null?"":n}return r}function ZH(e){return Ln(e,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}function ny(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ZH(e)?"":HR(e,t)}var qr=St(Ah()),e3=St(pq());function WR(e){return e.replace(/</g,"<").replace(/>/g,">")}var t3=(e,t,r,n,i,o,s)=>{let a=n+r.indent,l=r.colors;return e.map(u=>{let d=t[u],p=s(d,r,a,i,o);return typeof d!="string"&&(p.indexOf(`
|
|
299
|
-
`)!==-1&&(p=r.spacingOuter+a+p+r.spacingOuter+n),p="{"+p+"}"),r.spacingInner+n+l.prop.open+u+l.prop.close+"="+l.value.open+p+l.value.close}).join("")},r3=3,n3=(e,t,r,n,i,o)=>e.map(s=>{let a=typeof s=="string"?KR(s,t):o(s,t,r,n,i);return a===""&&typeof s=="object"&&s!==null&&s.nodeType!==r3?"":t.spacingOuter+r+a}).join(""),KR=(e,t)=>{let r=t.colors.content;return r.open+WR(e)+r.close},i3=(e,t)=>{let r=t.colors.comment;return r.open+"<!--"+WR(e)+"-->"+r.close},o3=(e,t,r,n,i)=>{let o=n.colors.tag;return o.open+"<"+e+(t&&o.close+t+n.spacingOuter+i+o.open)+(r?">"+o.close+r+n.spacingOuter+i+o.open+"</"+e:(t&&!n.min?"":" ")+"/")+">"+o.close},s3=(e,t)=>{let r=t.colors.tag;return r.open+"<"+e+r.close+" …"+r.open+" />"+r.close},a3=1,zR=3,YR=8,XR=11,l3=/^((HTML|SVG)\w*)?Element$/,QR=e=>{let{tagName:t}=e;return!!(typeof t=="string"&&t.includes("-")||typeof e.hasAttribute=="function"&&e.hasAttribute("is"))},u3=e=>{let t=e.constructor.name,{nodeType:r}=e;return r===a3&&(l3.test(t)||QR(e))||r===zR&&t==="Text"||r===YR&&t==="Comment"||r===XR&&t==="DocumentFragment"};function c3(e){return e.nodeType===zR}function d3(e){return e.nodeType===YR}function fp(e){return e.nodeType===XR}function p3(e){return{test:t=>{var r;return((t==null||(r=t.constructor)==null?void 0:r.name)||QR(t))&&u3(t)},serialize:(t,r,n,i,o,s)=>{if(c3(t))return KR(t.data,r);if(d3(t))return i3(t.data,r);let a=fp(t)?"DocumentFragment":t.tagName.toLowerCase();return++i>r.maxDepth?s3(a,r):o3(a,t3(fp(t)?[]:Array.from(t.attributes).map(l=>l.name).sort(),fp(t)?{}:Array.from(t.attributes).reduce((l,u)=>(l[u.name]=u.value,l),{}),r,n+r.indent,i,o,s),n3(Array.prototype.slice.call(t.childNodes||t.children).filter(e),r,n+r.indent,i,o,s),r,n)}}}var ZR=null,iy=null,oy=null;try{let e=module&&module.require;iy=e.call(module,"fs").readFileSync,oy=e.call(module,"@babel/code-frame").codeFrameColumns,ZR=e.call(module,"picocolors")}catch{}function f3(e){let t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.slice(t,r),i=n.split(":"),[o,s,a]=[i[0],parseInt(i[1],10),parseInt(i[2],10)],l="";try{l=iy(o,"utf-8")}catch{return""}let u=oy(l,{start:{line:s,column:a}},{highlightCode:!0,linesBelow:0});return ZR.dim(n)+`
|
|
300
|
-
`+u+`
|
|
301
|
-
`}function h3(){if(!iy||!oy)return"";let e=new Error().stack.split(`
|
|
302
|
-
`).slice(1).find(t=>!t.includes("node_modules/"));return f3(e)}var eO=3;function hp(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}function sy(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}function tO(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 Zn(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 m3=()=>{if(typeof process>"u")return!1;let e;try{var t;let r=(t=$p)==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:y3}=ry.plugins,g3=1,b3=8;function v3(e){return e.nodeType!==b3&&(e.nodeType!==g3||!e.matches(Fe().defaultIgnore))}function Ba(e,t,r){if(r===void 0&&(r={}),e||(e=sy().body),typeof t!="number"&&(t=typeof process<"u"&&typeof $p<"u"&&$p.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:i=v3,...o}=r,s=ry.format(e,{plugins:[p3(i),y3],printFunctionName:!1,highlight:m3(),...o});return t!==void 0&&e.outerHTML.length>t?s.slice(0,t)+"...":s}var Pf=function(){let e=h3();console.log(e?Ba(...arguments)+`
|
|
303
|
-
|
|
304
|
-
`+e:Ba(...arguments))},no={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=Ba(t),n=new Error([e,"Ignored nodes: comments, "+no.defaultIgnore+`
|
|
305
|
-
`+r].filter(Boolean).join(`
|
|
306
|
-
|
|
307
|
-
`));return n.name="TestingLibraryElementError",n},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function E3(e){try{return no._disableExpensiveErrorDiagnostics=!0,e()}finally{no._disableExpensiveErrorDiagnostics=!1}}function T3(e){typeof e=="function"&&(e=e(no)),no={...no,...e}}function Fe(){return no}var w3=["button","meter","output","progress","select","textarea","input"];function rO(e){return w3.includes(e.nodeName.toLowerCase())?"":e.nodeType===eO?e.textContent:Array.from(e.childNodes).map(t=>rO(t)).join("")}function Cf(e){let t;return e.tagName.toLowerCase()==="label"?t=rO(e):t=e.value||e.textContent,t}function nO(e){if(e.labels!==void 0){var t;return(t=e.labels)!=null?t:[]}if(!_3(e))return[];let r=e.ownerDocument.querySelectorAll("label");return Array.from(r).filter(n=>n.control===e)}function _3(e){return/BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName)||e.tagName==="INPUT"&&e.getAttribute("type")!=="hidden"}function iO(e,t,r){let{selector:n="*"}=r===void 0?{}:r,i=t.getAttribute("aria-labelledby"),o=i?i.split(" "):[];return o.length?o.map(s=>{let a=e.querySelector('[id="'+s+'"]');return a?{content:Cf(a),formControl:null}:{content:"",formControl:null}}):Array.from(nO(t)).map(s=>{let a=Cf(s),l=Array.from(s.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter(u=>u.matches(n))[0];return{content:a,formControl:l}})}function oO(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 Ns(e,t,r,n){if(typeof e!="string")return!1;oO(r);let i=n(e);return typeof r=="string"||typeof r=="number"?i.toLowerCase().includes(r.toString().toLowerCase()):typeof r=="function"?r(i,t):sO(r,i)}function Un(e,t,r,n){if(typeof e!="string")return!1;oO(r);let i=n(e);return r instanceof Function?r(i,t):r instanceof RegExp?sO(r,i):i===String(r)}function ay(e){let{trim:t=!0,collapseWhitespace:r=!0}=e===void 0?{}:e;return n=>{let i=n;return i=t?i.trim():i,i=r?i.replace(/\s+/g," "):i,i}}function _o(e){let{trim:t,collapseWhitespace:r,normalizer:n}=e;if(!n)return ay({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 sO(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 wl(e){return e.matches("input[type=submit], input[type=button], input[type=reset]")?e.value:Array.from(e.childNodes).filter(t=>t.nodeType===eO&&!!t.textContent).map(t=>t.textContent).join("")}var S3=R3(qr.elementRoles);function aO(e){return e.hidden===!0||e.getAttribute("aria-hidden")==="true"||e.ownerDocument.defaultView.getComputedStyle(e).display==="none"}function rd(e,t){t===void 0&&(t={});let{isSubtreeInaccessible:r=aO}=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 ly(e){for(let{match:t,roles:r}of S3)if(t(e))return[...r];return[]}function R3(e){function t(s){let{name:a,attributes:l}=s;return""+a+l.map(u=>{let{name:d,value:p,constraints:f=[]}=u,h=f.indexOf("undefined")!==-1,y=f.indexOf("set")!==-1;return typeof p<"u"?"["+d+'="'+p+'"]':h?":not(["+d+"])":y?"["+d+"]:not(["+d+'=""])':"["+d+"]"}).join("")}function r(s){let{attributes:a=[]}=s;return a.length}function n(s,a){let{specificity:l}=s,{specificity:u}=a;return u-l}function i(s){let{attributes:a=[]}=s,l=a.findIndex(d=>d.value&&d.name==="type"&&d.value==="text");l>=0&&(a=[...a.slice(0,l),...a.slice(l+1)]);let u=t({...s,attributes:a});return d=>l>=0&&d.type!=="text"?!1:d.matches(u)}let o=[];for(let[s,a]of e.entries())o=[...o,{match:i(s),roles:Array.from(a),specificity:r(s)}];return o.sort(n)}function lO(e,t){let{hidden:r=!1}=t===void 0?{}:t;function n(i){return[i,...Array.from(i.children).reduce((o,s)=>[...o,...n(s)],[])]}return n(e).filter(i=>r===!1?rd(i)===!1:!0).reduce((i,o)=>{let s=[];return o.hasAttribute("role")?s=o.getAttribute("role").split(" ").slice(0,1):s=ly(o),s.reduce((a,l)=>Array.isArray(a[l])?{...a,[l]:[...a[l],o]}:{...a,[l]:[o]},i)},{})}function uO(e,t){let{hidden:r,includeDescription:n}=t,i=lO(e,{hidden:r});return Object.entries(i).filter(o=>{let[s]=o;return s!=="generic"}).map(o=>{let[s,a]=o,l="-".repeat(50),u=a.map(d=>{let p='Name "'+ny(d,{computedStyleSupportsPseudoElements:Fe().computedStyleSupportsPseudoElements})+`":
|
|
308
|
-
`,f=Ba(d.cloneNode(!1));if(n){let h='Description "'+GR(d,{computedStyleSupportsPseudoElements:Fe().computedStyleSupportsPseudoElements})+`":
|
|
309
|
-
`;return""+p+h+f}return""+p+f}).join(`
|
|
310
|
-
|
|
311
|
-
`);return s+`:
|
|
312
|
-
|
|
313
|
-
`+u+`
|
|
314
|
-
|
|
315
|
-
`+l}).join(`
|
|
316
|
-
`)}var O3=function(e,t){let{hidden:r=!1}=t===void 0?{}:t;return console.log(uO(e,{hidden:r}))};function A3(e){return e.tagName==="OPTION"?e.selected:_l(e,"aria-selected")}function P3(e){return e.getAttribute("aria-busy")==="true"}function C3(e){if(!("indeterminate"in e&&e.indeterminate))return"checked"in e?e.checked:_l(e,"aria-checked")}function x3(e){return _l(e,"aria-pressed")}function N3(e){var t,r;return(t=(r=_l(e,"aria-current"))!=null?r:e.getAttribute("aria-current"))!=null?t:!1}function I3(e){return _l(e,"aria-expanded")}function _l(e,t){let r=e.getAttribute(t);if(r==="true")return!0;if(r==="false")return!1}function M3(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 q3(e){let t=e.getAttribute("aria-valuenow");return t===null?void 0:+t}function j3(e){let t=e.getAttribute("aria-valuemax");return t===null?void 0:+t}function k3(e){let t=e.getAttribute("aria-valuemin");return t===null?void 0:+t}function D3(e){let t=e.getAttribute("aria-valuetext");return t===null?void 0:t}var Sv=ay();function L3(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function Rv(e){return new RegExp(L3(e.toLowerCase()),"i")}function si(e,t,r,n){let{variant:i,name:o}=n,s="",a={},l=[["Role","TestId"].includes(e)?r:Rv(r)];o&&(a.name=Rv(o)),e==="Role"&&rd(t)&&(a.hidden=!0,s=`Element is inaccessible. This means that the element and all its children are invisible to screen readers.
|
|
317
|
-
If you are using the aria-hidden prop, make sure this is the right choice for your case.
|
|
318
|
-
`),Object.keys(a).length>0&&l.push(a);let u=i+"By"+e;return{queryName:e,queryMethod:u,queryArgs:l,variant:i,warning:s,toString(){s&&console.warn(s);let[d,p]=l;return d=typeof d=="string"?"'"+d+"'":d,p=p?", { "+Object.entries(p).map(f=>{let[h,y]=f;return h+": "+y}).join(", ")+" }":"",u+"("+d+p+")"}}}function ai(e,t,r){return r&&(!t||t.toLowerCase()===e.toLowerCase())}function Gu(e,t,r){var n,i;if(t===void 0&&(t="get"),e.matches(Fe().defaultIgnore))return;let o=(n=e.getAttribute("role"))!=null?n:(i=ly(e))==null?void 0:i[0];if(o!=="generic"&&ai("Role",r,o))return si("Role",e,o,{variant:t,name:ny(e,{computedStyleSupportsPseudoElements:Fe().computedStyleSupportsPseudoElements})});let s=iO(document,e).map(f=>f.content).join(" ");if(ai("LabelText",r,s))return si("LabelText",e,s,{variant:t});let a=e.getAttribute("placeholder");if(ai("PlaceholderText",r,a))return si("PlaceholderText",e,a,{variant:t});let l=Sv(wl(e));if(ai("Text",r,l))return si("Text",e,l,{variant:t});if(ai("DisplayValue",r,e.value))return si("DisplayValue",e,Sv(e.value),{variant:t});let u=e.getAttribute("alt");if(ai("AltText",r,u))return si("AltText",e,u,{variant:t});let d=e.getAttribute("title");if(ai("Title",r,d))return si("Title",e,d,{variant:t});let p=e.getAttribute(Fe().testIdAttribute);if(ai("TestId",r,p))return si("TestId",e,p,{variant:t})}function Vl(e,t){e.stack=t.stack.replace(t.message,e.message)}function F3(e,t){let{container:r=sy(),timeout:n=Fe().asyncUtilTimeout,showOriginalStackTrace:i=Fe().showOriginalStackTrace,stackTraceError:o,interval:s=50,onTimeout:a=u=>(Object.defineProperty(u,"message",{value:Fe().getElementError(u.message,r).message}),u),mutationObserverOptions:l={subtree:!0,childList:!0,attributes:!0,characterData:!0}}=t;if(typeof e!="function")throw new TypeError("Received `callback` arg must be a function");return new Promise(async(u,d)=>{let p,f,h,y=!1,g="idle",v=setTimeout(C,n),b=hp();if(b){let{unstable_advanceTimersWrapper:R}=Fe();for(A();!y;){if(!hp()){let S=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");i||Vl(S,o),d(S);return}if(await R(async()=>{jest.advanceTimersByTime(s)}),y)break;A()}}else{try{Zn(r)}catch(S){d(S);return}f=setInterval(w,s);let{MutationObserver:R}=tO(r);h=new R(w),h.observe(r,l),A()}function E(R,S){y=!0,clearTimeout(v),b||(clearInterval(f),h.disconnect()),R?d(R):u(S)}function w(){if(hp()){let R=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 i||Vl(R,o),d(R)}else return A()}function A(){if(g!=="pending")try{let R=E3(e);typeof(R==null?void 0:R.then)=="function"?(g="pending",R.then(S=>{g="resolved",E(null,S)},S=>{g="rejected",p=S})):E(null,R)}catch(R){p=R}}function C(){let R;p?(R=p,!i&&R.name==="TestingLibraryElementError"&&Vl(R,o)):(R=new Error("Timed out in waitFor."),i||Vl(R,o)),E(a(R),null)}})}function uy(e,t){let r=new Error("STACK_TRACE_MESSAGE");return Fe().asyncWrapper(()=>F3(e,{stackTraceError:r,...t}))}function nd(e,t){return Fe().getElementError(e,t)}function id(e,t){return nd(e+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",t)}function So(e,t,r,n){let{exact:i=!0,collapseWhitespace:o,trim:s,normalizer:a}=n===void 0?{}:n,l=i?Un:Ns,u=_o({collapseWhitespace:o,trim:s,normalizer:a});return Array.from(t.querySelectorAll("["+e+"]")).filter(d=>l(d.getAttribute(e),d,r,u))}function cO(e,t,r,n){let i=So(e,t,r,n);if(i.length>1)throw id("Found multiple elements by ["+e+"="+r+"]",t);return i[0]||null}function us(e,t){return function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];let s=e(r,...i);if(s.length>1){let a=s.map(l=>nd(null,l).message).join(`
|
|
319
|
-
|
|
320
|
-
`);throw id(t(r,...i)+`
|
|
321
|
-
|
|
322
|
-
Here are the matching elements:
|
|
323
|
-
|
|
324
|
-
`+a,r)}return s[0]||null}}function dO(e,t){return Fe().getElementError(`A better query is available, try this:
|
|
325
|
-
`+e.toString()+`
|
|
326
|
-
`,t)}function cy(e,t){return function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];let s=e(r,...i);if(!s.length)throw Fe().getElementError(t(r,...i),r);return s}}function cs(e){return(t,r,n,i)=>uy(()=>e(t,r,n),{container:t,...i})}var Oi=(e,t,r)=>function(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];let a=e(n,...o),[{suggest:l=Fe().throwSuggestions}={}]=o.slice(-1);if(a&&l){let u=Gu(a,r);if(u&&!t.endsWith(u.queryName))throw dO(u.toString(),n)}return a},gr=(e,t,r)=>function(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];let a=e(n,...o),[{suggest:l=Fe().throwSuggestions}={}]=o.slice(-1);if(a.length&&l){let u=[...new Set(a.map(d=>{var p;return(p=Gu(d,r))==null?void 0:p.toString()}))];if(u.length===1&&!t.endsWith(Gu(a[0],r).queryName))throw dO(u[0],n)}return a};function ei(e,t,r){let n=Oi(us(e,t),e.name,"query"),i=cy(e,r),o=us(i,t),s=Oi(o,e.name,"get"),a=gr(i,e.name.replace("query","get"),"getAll"),l=cs(gr(i,e.name,"findAll")),u=cs(Oi(o,e.name,"find"));return[n,a,s,l,u]}var B3=Object.freeze({__proto__:null,getElementError:nd,wrapAllByQueryWithSuggestion:gr,wrapSingleQueryWithSuggestion:Oi,getMultipleElementsFoundError:id,queryAllByAttribute:So,queryByAttribute:cO,makeSingleQuery:us,makeGetAllQuery:cy,makeFindQuery:cs,buildQueries:ei});function $3(e){return Array.from(e.querySelectorAll("label,input")).map(t=>({node:t,textToMatch:Cf(t)})).filter(t=>{let{textToMatch:r}=t;return r!==null})}var U3=function(e,t,r){let{exact:n=!0,trim:i,collapseWhitespace:o,normalizer:s}=r===void 0?{}:r,a=n?Un:Ns,l=_o({collapseWhitespace:o,trim:i,normalizer:s});return $3(e).filter(u=>{let{node:d,textToMatch:p}=u;return a(p,d,t,l)}).map(u=>{let{node:d}=u;return d})},$a=function(e,t,r){let{selector:n="*",exact:i=!0,collapseWhitespace:o,trim:s,normalizer:a}=r===void 0?{}:r;Zn(e);let l=i?Un:Ns,u=_o({collapseWhitespace:o,trim:s,normalizer:a}),d=Array.from(e.querySelectorAll("*")).filter(p=>nO(p).length||p.hasAttribute("aria-labelledby")).reduce((p,f)=>{let h=iO(e,f,{selector:n});h.filter(g=>!!g.formControl).forEach(g=>{l(g.content,g.formControl,t,u)&&g.formControl&&p.push(g.formControl)});let y=h.filter(g=>!!g.content).map(g=>g.content);return l(y.join(" "),f,t,u)&&p.push(f),y.length>1&&y.forEach((g,v)=>{l(g,f,t,u)&&p.push(f);let b=[...y];b.splice(v,1),b.length>1&&l(b.join(" "),f,t,u)&&p.push(f)}),p},[]).concat(So("aria-label",e,t,{exact:i,normalizer:u}));return Array.from(new Set(d)).filter(p=>p.matches(n))},mo=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];let o=$a(e,t,...n);if(!o.length){let s=U3(e,t,...n);if(s.length){let a=s.map(l=>V3(e,l)).filter(l=>!!l);throw a.length?Fe().getElementError(a.map(l=>"Found a label with the text of: "+t+", however the element associated with this label (<"+l+" />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <"+l+" />, you can use aria-label or aria-labelledby instead.").join(`
|
|
327
|
-
|
|
328
|
-
`),e):Fe().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 Fe().getElementError("Unable to find a label with the text of: "+t,e)}return o};function V3(e,t){let r=t.getAttribute("for");if(!r)return null;let n=e.querySelector('[id="'+r+'"]');return n?n.tagName.toLowerCase():null}var pO=(e,t)=>"Found multiple elements with the text of: "+t,fO=Oi(us($a,pO),$a.name,"query"),hO=us(mo,pO),mO=cs(gr(mo,mo.name,"findAll")),yO=cs(Oi(hO,mo.name,"find")),gO=gr(mo,mo.name,"getAll"),bO=Oi(hO,mo.name,"get"),vO=gr($a,$a.name,"queryAll"),xf=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Zn(t[0]),So("placeholder",...t)},J3=(e,t)=>"Found multiple elements with the placeholder text of: "+t,H3=(e,t)=>"Unable to find an element with the placeholder text of: "+t,EO=gr(xf,xf.name,"queryAll"),[TO,wO,_O,SO,RO]=ei(xf,J3,H3),Nf=function(e,t,r){let{selector:n="*",exact:i=!0,collapseWhitespace:o,trim:s,ignore:a=Fe().defaultIgnore,normalizer:l}=r===void 0?{}:r;Zn(e);let u=i?Un:Ns,d=_o({collapseWhitespace:o,trim:s,normalizer:l}),p=[];return typeof e.matches=="function"&&e.matches(n)&&(p=[e]),[...p,...Array.from(e.querySelectorAll(n))].filter(f=>!a||!f.matches(a)).filter(f=>u(wl(f),f,t,d))},G3=(e,t)=>"Found multiple elements with the text: "+t,W3=function(e,t,r){r===void 0&&(r={});let{collapseWhitespace:n,trim:i,normalizer:o,selector:s}=r,a=_o({collapseWhitespace:n,trim:i,normalizer:o})(t.toString()),l=a!==t.toString(),u=(s??"*")!=="*";return"Unable to find an element with the text: "+(l?a+" (normalized from '"+t+"')":t)+(u?", which matches selector '"+s+"'":"")+". 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."},OO=gr(Nf,Nf.name,"queryAll"),[AO,PO,CO,xO,NO]=ei(Nf,G3,W3),If=function(e,t,r){let{exact:n=!0,collapseWhitespace:i,trim:o,normalizer:s}=r===void 0?{}:r;Zn(e);let a=n?Un:Ns,l=_o({collapseWhitespace:i,trim:o,normalizer:s});return Array.from(e.querySelectorAll("input,textarea,select")).filter(u=>u.tagName==="SELECT"?Array.from(u.options).filter(d=>d.selected).some(d=>a(wl(d),d,t,l)):a(u.value,u,t,l))},K3=(e,t)=>"Found multiple elements with the display value: "+t+".",z3=(e,t)=>"Unable to find an element with the display value: "+t+".",IO=gr(If,If.name,"queryAll"),[MO,qO,jO,kO,DO]=ei(If,K3,z3),Y3=/^(img|input|area|.+-.+)$/i,Mf=function(e,t,r){return r===void 0&&(r={}),Zn(e),So("alt",e,t,r).filter(n=>Y3.test(n.tagName))},X3=(e,t)=>"Found multiple elements with the alt text: "+t,Q3=(e,t)=>"Unable to find an element with the alt text: "+t,LO=gr(Mf,Mf.name,"queryAll"),[FO,BO,$O,UO,VO]=ei(Mf,X3,Q3),Z3=e=>{var t;return e.tagName.toLowerCase()==="title"&&((t=e.parentElement)==null?void 0:t.tagName.toLowerCase())==="svg"},qf=function(e,t,r){let{exact:n=!0,collapseWhitespace:i,trim:o,normalizer:s}=r===void 0?{}:r;Zn(e);let a=n?Un:Ns,l=_o({collapseWhitespace:i,trim:o,normalizer:s});return Array.from(e.querySelectorAll("[title], svg > title")).filter(u=>a(u.getAttribute("title"),u,t,l)||Z3(u)&&a(wl(u),u,t,l))},eG=(e,t)=>"Found multiple elements with the title: "+t+".",tG=(e,t)=>"Unable to find an element with the title: "+t+".",JO=gr(qf,qf.name,"queryAll"),[HO,GO,WO,KO,zO]=ei(qf,eG,tG),jf=function(e,t,r){let{hidden:n=Fe().defaultHidden,name:i,description:o,queryFallbacks:s=!1,selected:a,busy:l,checked:u,pressed:d,current:p,level:f,expanded:h,value:{now:y,min:g,max:v,text:b}={}}=r===void 0?{}:r;if(Zn(e),a!==void 0){var E;if(((E=qr.roles.get(t))==null?void 0:E.props["aria-selected"])===void 0)throw new Error('"aria-selected" is not supported on role "'+t+'".')}if(l!==void 0){var w;if(((w=qr.roles.get(t))==null?void 0:w.props["aria-busy"])===void 0)throw new Error('"aria-busy" is not supported on role "'+t+'".')}if(u!==void 0){var A;if(((A=qr.roles.get(t))==null?void 0:A.props["aria-checked"])===void 0)throw new Error('"aria-checked" is not supported on role "'+t+'".')}if(d!==void 0){var C;if(((C=qr.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 R;if(((R=qr.roles.get(t))==null?void 0:R.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 S;if(((S=qr.roles.get(t))==null?void 0:S.props["aria-valuenow"])===void 0)throw new Error('"aria-valuenow" is not supported on role "'+t+'".')}if(v!==void 0){var _;if(((_=qr.roles.get(t))==null?void 0:_.props["aria-valuemax"])===void 0)throw new Error('"aria-valuemax" is not supported on role "'+t+'".')}if(g!==void 0){var O;if(((O=qr.roles.get(t))==null?void 0:O.props["aria-valuemin"])===void 0)throw new Error('"aria-valuemin" is not supported on role "'+t+'".')}if(b!==void 0){var M;if(((M=qr.roles.get(t))==null?void 0:M.props["aria-valuetext"])===void 0)throw new Error('"aria-valuetext" is not supported on role "'+t+'".')}if(h!==void 0){var I;if(((I=qr.roles.get(t))==null?void 0:I.props["aria-expanded"])===void 0)throw new Error('"aria-expanded" is not supported on role "'+t+'".')}let k=new WeakMap;function N(P){return k.has(P)||k.set(P,aO(P)),k.get(P)}return Array.from(e.querySelectorAll(rG(t))).filter(P=>{if(P.hasAttribute("role")){let q=P.getAttribute("role");if(s)return q.split(" ").filter(Boolean).some($=>$===t);let[F]=q.split(" ");return F===t}return ly(P).some(q=>q===t)}).filter(P=>{if(a!==void 0)return a===A3(P);if(l!==void 0)return l===P3(P);if(u!==void 0)return u===C3(P);if(d!==void 0)return d===x3(P);if(p!==void 0)return p===N3(P);if(h!==void 0)return h===I3(P);if(f!==void 0)return f===M3(P);if(y!==void 0||v!==void 0||g!==void 0||b!==void 0){let F=!0;if(y!==void 0&&F&&(F=y===q3(P)),v!==void 0&&F&&(F=v===j3(P)),g!==void 0&&F&&(F=g===k3(P)),b!==void 0){var q;F&&(F=Un((q=D3(P))!=null?q:null,P,b,$=>$))}return F}return!0}).filter(P=>i===void 0?!0:Un(ny(P,{computedStyleSupportsPseudoElements:Fe().computedStyleSupportsPseudoElements}),P,i,q=>q)).filter(P=>o===void 0?!0:Un(GR(P,{computedStyleSupportsPseudoElements:Fe().computedStyleSupportsPseudoElements}),P,o,q=>q)).filter(P=>n===!1?rd(P,{isSubtreeInaccessible:N})===!1:!0)};function rG(e){var t;let r='*[role~="'+e+'"]',n=(t=qr.roleElements.get(e))!=null?t:new Set,i=new Set(Array.from(n).map(o=>{let{name:s}=o;return s}));return[r].concat(Array.from(i)).join(",")}var YO=e=>{let t="";return e===void 0?t="":typeof e=="string"?t=' and name "'+e+'"':t=" and name `"+e+"`",t},nG=function(e,t,r){let{name:n}=r===void 0?{}:r;return'Found multiple elements with the role "'+t+'"'+YO(n)},iG=function(e,t,r){let{hidden:n=Fe().defaultHidden,name:i,description:o}=r===void 0?{}:r;if(Fe()._disableExpensiveErrorDiagnostics)return'Unable to find role="'+t+'"'+YO(i);let s="";Array.from(e.children).forEach(d=>{s+=uO(d,{hidden:n,includeDescription:o!==void 0})});let a;s.length===0?n===!1?a="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":a="There are no available roles.":a=(`
|
|
329
|
-
Here are the `+(n===!1?"accessible":"available")+` roles:
|
|
330
|
-
|
|
331
|
-
`+s.replace(/\n/g,`
|
|
332
|
-
`).replace(/\n\s\s\n/g,`
|
|
333
|
-
|
|
334
|
-
`)+`
|
|
335
|
-
`).trim();let l="";i===void 0?l="":typeof i=="string"?l=' and name "'+i+'"':l=" and name `"+i+"`";let u="";return o===void 0?u="":typeof o=="string"?u=' and description "'+o+'"':u=" and description `"+o+"`",(`
|
|
336
|
-
Unable to find an `+(n===!1?"accessible ":"")+'element with the role "'+t+'"'+l+u+`
|
|
337
|
-
|
|
338
|
-
`+a).trim()},XO=gr(jf,jf.name,"queryAll"),[QO,ZO,eA,tA,rA]=ei(jf,nG,iG),dy=()=>Fe().testIdAttribute,kf=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Zn(t[0]),So(dy(),...t)},oG=(e,t)=>"Found multiple elements by: ["+dy()+'="'+t+'"]',sG=(e,t)=>"Unable to find an element by: ["+dy()+'="'+t+'"]',nA=gr(kf,kf.name,"queryAll"),[iA,oA,sA,aA,lA]=ei(kf,oG,sG),Wu=Object.freeze({__proto__:null,queryAllByLabelText:vO,queryByLabelText:fO,getAllByLabelText:gO,getByLabelText:bO,findAllByLabelText:mO,findByLabelText:yO,queryByPlaceholderText:TO,queryAllByPlaceholderText:EO,getByPlaceholderText:_O,getAllByPlaceholderText:wO,findAllByPlaceholderText:SO,findByPlaceholderText:RO,queryByText:AO,queryAllByText:OO,getByText:CO,getAllByText:PO,findAllByText:xO,findByText:NO,queryByDisplayValue:MO,queryAllByDisplayValue:IO,getByDisplayValue:jO,getAllByDisplayValue:qO,findAllByDisplayValue:kO,findByDisplayValue:DO,queryByAltText:FO,queryAllByAltText:LO,getByAltText:$O,getAllByAltText:BO,findAllByAltText:UO,findByAltText:VO,queryByTitle:HO,queryAllByTitle:JO,getByTitle:WO,getAllByTitle:GO,findAllByTitle:KO,findByTitle:zO,queryByRole:QO,queryAllByRole:XO,getAllByRole:ZO,getByRole:eA,findAllByRole:tA,findByRole:rA,queryByTestId:iA,queryAllByTestId:nA,getByTestId:sA,getAllByTestId:oA,findAllByTestId:aA,findByTestId:lA});function Df(e,t,r){return t===void 0&&(t=Wu),r===void 0&&(r={}),Object.keys(t).reduce((n,i)=>{let o=t[i];return n[i]=o.bind(null,e),n},r)}var uA=e=>!e||Array.isArray(e)&&!e.length;function Ov(e){if(uA(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 aG(e,t){let r=new Error("Timed out in waitForElementToBeRemoved.");if(typeof e!="function"){Ov(e);let n=(Array.isArray(e)?e:[e]).map(i=>{let o=i.parentElement;if(o===null)return()=>null;for(;o.parentElement;)o=o.parentElement;return()=>o.contains(i)?i:null});e=()=>n.map(i=>i()).filter(Boolean)}return Ov(e()),uy(()=>{let n;try{n=e()}catch(i){if(i.name==="TestingLibraryElementError")return;throw i}if(!uA(n))throw r},t)}var Av={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}}},Pv={doubleClick:"dblClick"};function Ua(e,t){return Fe().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 vu(e,t,r,n){let{EventType:i="Event",defaultInit:o={}}=n===void 0?{}:n;if(!t)throw new Error('Unable to fire a "'+e+'" event - please provide a DOM element.');let s={...o,...r},{target:{value:a,files:l,...u}={}}=s;a!==void 0&&lG(t,a),l!==void 0&&Object.defineProperty(t,"files",{configurable:!0,enumerable:!0,writable:!0,value:l}),Object.assign(t,u);let d=tO(t),p=d[i]||d.Event,f;if(typeof p=="function")f=new p(e,s);else{f=d.document.createEvent(i);let{bubbles:h,cancelable:y,detail:g,...v}=s;f.initEvent(e,h,y,g),Object.keys(v).forEach(b=>{f[b]=v[b]})}return["dataTransfer","clipboardData"].forEach(h=>{let y=s[h];typeof y=="object"&&(typeof d.DataTransfer=="function"?Object.defineProperty(f,h,{value:Object.getOwnPropertyNames(y).reduce((g,v)=>(Object.defineProperty(g,v,{value:y[v]}),g),new d.DataTransfer)}):Object.defineProperty(f,h,{value:y}))}),f}Object.keys(Av).forEach(e=>{let{EventType:t,defaultInit:r}=Av[e],n=e.toLowerCase();vu[e]=(i,o)=>vu(n,i,o,{EventType:t,defaultInit:r}),Ua[e]=(i,o)=>Ua(i,vu[e](i,o))});function lG(e,t){let{set:r}=Object.getOwnPropertyDescriptor(e,"value")||{},n=Object.getPrototypeOf(e),{set:i}=Object.getOwnPropertyDescriptor(n,"value")||{};if(i&&r!==i)i.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(Pv).forEach(e=>{let t=Pv[e];Ua[e]=function(){return Ua[t](...arguments)}});function uG(e){return e.replace(/[ \t]*[\n][ \t]*/g,`
|
|
339
|
-
`)}function cG(e){return e3.default.compressToEncodedURIComponent(uG(e))}function dG(e){return"https://testing-playground.com/#markup="+cG(e)}var pG=(e,t,r)=>Array.isArray(e)?e.forEach(n=>Pf(n,t,r)):Pf(e,t,r),fG=function(e){if(e===void 0&&(e=sy().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=dG(e.innerHTML);return console.log(`Open this URL in your browser
|
|
340
|
-
|
|
341
|
-
`+t),t},Cv={debug:pG,logTestingPlaygroundURL:fG},hG=typeof document<"u"&&document.body?Df(document.body,Wu,Cv):Object.keys(Wu).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),Cv);function Ie(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,i])=>e[n]===i):!0}function $r(e){var t;if(mG(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 ${yG(e)}`)}function mG(e){return e.nodeType===9}function yG(e){return typeof e=="function"?`function ${e.name}`:e===null?"null":String(e)}function cA(e,t){return new Promise((r,n)=>{let i=new t;i.onerror=n,i.onabort=n,i.onload=()=>{r(String(i.result))},i.readAsText(e)})}function py(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 Ti(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var dA=class{getAsFile(){return this.file}getAsString(e){typeof this.data=="string"&&e(this.data)}webkitGetAsEntry(){throw new Error("not implemented")}constructor(e,t){Ti(this,"kind",void 0),Ti(this,"type",void 0),Ti(this,"file",null),Ti(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)}},gG=class extends Array{add(...e){let t=new dA(e[0],e[1]);return this.push(t),t}clear(){this.splice(0,this.length)}remove(e){this.splice(e,1)}};function Jl(e,t){let[r,n]=e.split("/"),i=!n||n==="*";return o=>t?o.type===(i?r:e):i?o.type.startsWith(`${r}/`):o.type===r}function bG(e){return new class{getData(t){var r;let n=(r=this.items.find(Jl(t,!0)))!==null&&r!==void 0?r:this.items.find(Jl(t,!1)),i="";return n==null||n.getAsString(o=>{i=o}),i}setData(t,r){let n=this.items.findIndex(Jl(t,!0)),i=new dA(r,t);n>=0?this.items.splice(n,1,i):this.items.push(i)}clearData(t){if(t){let r=this.items.findIndex(Jl(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(){Ti(this,"dropEffect","none"),Ti(this,"effectAllowed","uninitialized"),Ti(this,"items",new gG),Ti(this,"files",py(e,[]))}}}function fy(e,t=[]){let r=typeof e.DataTransfer>"u"?bG(e):new e.DataTransfer;return Object.defineProperty(r,"files",{get:()=>py(e,t)}),r}async function vG(e,t){return t.kind==="file"?t.getAsFile():new e.Blob([await new Promise(r=>t.getAsString(r))],{type:t.type})}function pA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fA(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 i=await this.data[n];if(!i)throw new Error(`${n} is not one of the available MIME types on this item.`);return i instanceof e.Blob?i:new e.Blob([i],{type:n})}constructor(n){pA(this,"data",void 0),this.data=n}}(r)}var ds=Symbol("Manage ClipboardSub");function xv(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 i=n.types.includes("text/plain")?"text/plain":n.types.find(o=>o.startsWith("text/"));i&&(r+=await n.getType(i).then(o=>cA(o,e.FileReader)))}return r}async write(r){this.items=r}async writeText(r){this.items=[fA(e,r)]}constructor(...r){super(...r),pA(this,"items",[])}},{[ds]:t})}function hy(e){return!!(e!=null&&e[ds])}function EG(e){if(hy(e.navigator.clipboard))return e.navigator.clipboard[ds];let t=Object.getOwnPropertyDescriptor(e.navigator,"clipboard"),r,n={resetClipboardStub:()=>{r=xv(e,n)},detachClipboardStub:()=>{t?Object.defineProperty(e.navigator,"clipboard",t):Object.defineProperty(e.navigator,"clipboard",{value:void 0,configurable:!0})}};return r=xv(e,n),Object.defineProperty(e.navigator,"clipboard",{get:()=>r,configurable:!0}),r[ds]}function TG(e){hy(e.navigator.clipboard)&&e.navigator.clipboard[ds].resetClipboardStub()}function wG(e){hy(e.navigator.clipboard)&&e.navigator.clipboard[ds].detachClipboardStub()}async function _G(e){let t=e.defaultView,r=t==null?void 0:t.navigator.clipboard,n=r&&await r.read();if(!n)throw new Error("The Clipboard API is unavailable.");let i=fy(t);for(let o of n)for(let s of o.types)i.setData(s,await o.getType(s).then(a=>cA(a,t.FileReader)));return i}async function hA(e,t){let r=$r(e),n=r.navigator.clipboard,i=[];for(let o=0;o<t.items.length;o++){let s=t.items[o],a=await vG(r,s);i.push(fA(r,a))}if(!(n&&await n.write(i).then(()=>!0,()=>!1)))throw new Error("The Clipboard API is unavailable.")}var Ku=globalThis;typeof Ku.afterEach=="function"&&Ku.afterEach(()=>{typeof globalThis.window<"u"&&TG(globalThis.window)});typeof Ku.afterAll=="function"&&Ku.afterAll(()=>{typeof globalThis.window<"u"&&wG(globalThis.window)});var mA=["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 my(e){return e.matches(mA)}function SG(e){return new e.constructor(e.type,e)}function Gn(e){for(let r=e;r;r=r.parentElement)if(Ie(r,["button","input","select","textarea","optgroup","option"])){if(r.hasAttribute("disabled"))return!0}else if(Ie(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 Sl(e){let t=e.activeElement;return t!=null&&t.shadowRoot?Sl(t.shadowRoot):Gn(t)?e.ownerDocument?e.ownerDocument.body:e.body:t}function mp(e){var t;return(t=Sl(e))!==null&&t!==void 0?t:e.body}function RG(e,t){let r=e;do{if(t(r))return r;r=r.parentElement}while(r&&r!==e.ownerDocument.body)}function yo(e){return e.hasAttribute("contenteditable")&&(e.getAttribute("contenteditable")=="true"||e.getAttribute("contenteditable")=="")}function Va(e){let t=OG(e);return t&&(t.closest('[contenteditable=""]')||t.closest('[contenteditable="true"]'))}function OG(e){return e.nodeType===1?e:e.parentElement}var yA=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}(yA||{});function gA(e){return Ie(e,"button")||Ie(e,"input")&&e.type in yA}function ps(e){return vA(e)&&!e.readOnly||yo(e)}var bA=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}(bA||{});function vA(e){return Ie(e,"textarea")||Ie(e,"input")&&e.type in bA}function vn(e){return EA(e)&&vA(e)}function AG(e){return EA(e)&&gA(e)}function EA(e){return e.nodeType===1}function PG(e){let t=e.ownerDocument.getSelection();if(t!=null&&t.focusNode&&vn(e)){let n=Va(t.focusNode);if(n){if(!t.isCollapsed){var r;let i=((r=n.firstChild)===null||r===void 0?void 0:r.nodeType)===3?n.firstChild:n;t.setBaseAndExtent(i,0,i,0)}}else t.setBaseAndExtent(e,0,e,0)}}function fs(e,t){return Fe().eventWrapper(e)}function Ni(e){let t=RG(e,my),r=Sl(e.ownerDocument);(t??e.ownerDocument.body)!==r&&(fs(t?()=>t.focus():()=>r==null?void 0:r.blur()),PG(t??e.ownerDocument.body))}function CG(e){!my(e)||Sl(e.ownerDocument)!==e||fs(()=>e.blur())}var Ii={};Ii.click=(e,t,r)=>{let n=t.closest("button,input,label,select,textarea"),i=n&&Ie(n,"label")&&n.control;if(i&&i!==t)return()=>{my(i)&&(Ni(i),r.dispatchEvent(i,SG(e)))};if(Ie(t,"input",{type:"file"}))return()=>{CG(t),t.dispatchEvent(new($r(t)).Event("fileDialog")),Ni(t)}};var hs=Symbol("Displayed value in UI"),Fn=Symbol("Displayed selection in UI"),zu=Symbol("Initial value to compare on blur");function xG(e){return typeof e=="object"&&hs in e}function NG(e){return!!e&&typeof e=="object"&&Fn in e}function IG(e,t){e[zu]===void 0&&(e[zu]=e.value),e[hs]=t,e.value=Object.assign(new String(t),{[hs]:!0})}function En(e){return e[hs]===void 0?e.value:String(e[hs])}function yy(e){e[hs]=void 0}function TA(e){e[zu]=void 0}function MG(e){return e[zu]}function qG(e,t){e[Fn]=t}function Is(e,{focusOffset:t,anchorOffset:r=t},n="replace"){let i=En(e).length,o=p=>Math.max(0,Math.min(i,p)),s=n==="replace"||e[Fn]===void 0?o(r):e[Fn].anchorOffset,a=o(t),l=Math.min(s,a),u=Math.max(s,a);if(e[Fn]={anchorOffset:s,focusOffset:a},e.selectionStart===l&&e.selectionEnd===u)return;let d=Object.assign(new Number(l),{[Fn]:!0});try{e.setSelectionRange(d,u)}catch{}}function Ja(e){var t,r,n;let i=(n=e[Fn])!==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{...i,startOffset:Math.min(i.anchorOffset,i.focusOffset),endOffset:Math.max(i.anchorOffset,i.focusOffset)}}function jG(e){return!!e[Fn]}function Eu(e){e[Fn]=void 0}var Yu=globalThis.parseInt;function kG(e){let t=e.replace(/\D/g,"");if(t.length<2)return e;let r=Yu(t[0],10),n=Yu(t[1],10);if(r>=3||r===2&&n>=4){let i;return r>=3?i=1:i=2,Nv(t,i)}return e.length===2?e:Nv(t,2)}function Nv(e,t){let r=e.slice(0,t),n=Math.min(Yu(r,10),23),i=e.slice(t),o=Yu(i,10),s=Math.min(o,59);return`${n.toString().padStart(2,"0")}:${s.toString().padStart(2,"0")}`}function wA(e,t){let r=e.cloneNode();return r.value=t,r.value===t}var _A=function(e){return e.email="email",e.password="password",e.search="search",e.telephone="telephone",e.text="text",e.url="url",e}(_A||{});function DG(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 LG(e){return Ie(e,"textarea")||Ie(e,"input")&&e.type in _A}function SA(e,t,r,n){if(Tu(e)&&t+r>=0&&t+r<=e.nodeValue.length)return{node:e,offset:t+r};let i=Iv(e,t,r);if(i){if(Tu(i))return{node:i,offset:r>0?Math.min(1,i.nodeValue.length):Math.max(i.nodeValue.length-1,0)};if(Ie(i,"br")){let o=Iv(i,void 0,r);return o?Tu(o)?{node:o,offset:r>0?0:o.nodeValue.length}:r<0&&Ie(o,"br")?{node:i.parentNode,offset:Hl(i)}:{node:o.parentNode,offset:Hl(o)+(r>0?0:1)}:r<0&&n==="deleteContentBackward"?{node:i.parentNode,offset:Hl(i)}:void 0}else return{node:i.parentNode,offset:Hl(i)+(r>0?1:0)}}}function Iv(e,t,r){let n=Number(t)+(r<0?-1:0);return t!==void 0&&gy(e)&&n>=0&&n<e.children.length&&(e=e.children[n]),BG(e,r===1?"next":"previous",FG)}function FG(e){if(Tu(e))return!0;if(gy(e)){if(Ie(e,["input","textarea"]))return e.type!=="hidden";if(Ie(e,"br"))return!0}return!1}function Hl(e){let t=0;for(;e.previousSibling;)t++,e=e.previousSibling;return t}function gy(e){return e.nodeType===1}function Tu(e){return e.nodeType===3}function BG(e,t,r){for(;;){var n;let i=e[`${t}Sibling`];if(i){if(e=$G(i,t==="next"?"first":"last"),r(e))return e}else if(e.parentNode&&(!gy(e.parentNode)||!yo(e.parentNode)&&e.parentNode!==((n=e.ownerDocument)===null||n===void 0?void 0:n.body)))e=e.parentNode;else break}}function $G(e,t){for(;e.hasChildNodes();)e=e[`${t}Child`];return e}var Ha=Symbol("Track programmatic changes for React workaround");function UG(e){return Object.getOwnPropertyNames(e).some(t=>t.startsWith("__react"))&&$r(e).REACT_VERSION===17}function VG(e){UG(e)&&(e[Ha]={previousValue:String(e.value),tracked:[]})}function JG(e,t){var r,n;(n=e[Ha])===null||n===void 0||(r=n.tracked)===null||r===void 0||r.push(t),e[Ha]||(yy(e),Is(e,{focusOffset:t.length}))}function HG(e,t){var r;let n=e[Ha];if(e[Ha]=void 0,!(!(n==null||(r=n.tracked)===null||r===void 0)&&r.length))return;let i=n.tracked.length===2&&n.tracked[0]===n.previousValue&&n.tracked[1]===e.value;i||yy(e),jG(e)&&Is(e,{focusOffset:i?t:e.value.length})}function RA(e){let t=GG(e);if(t&&vn(t))return{type:"input",selection:Ja(t)};let r=t==null?void 0:t.ownerDocument.getSelection();return{type:Va(e)&&(r!=null&&r.anchorNode)&&Va(r.anchorNode)?"contenteditable":"default",selection:r}}function GG(e){return e.nodeType===1?e:e.parentElement}function WG(e){let t=RA(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 go({focusNode:e,focusOffset:t,anchorNode:r=e,anchorOffset:n=t}){var i,o;if(RA(e).type==="input")return Is(e,{anchorOffset:n,focusOffset:t});(o=r.ownerDocument)===null||o===void 0||(i=o.getSelection())===null||i===void 0||i.setBaseAndExtent(r,n,e,t)}function OA(e){return Ie(e,"input")&&["date","time"].includes(e.type)}function ms(e,t,r,n="insertText"){let i=WG(t);i&&(!OA(t)&&!e.dispatchUIEvent(t,"beforeinput",{inputType:n,data:r})||("startContainer"in i?KG(e,t,i,r,n):zG(e,t,i,r,n)))}function KG(e,t,r,n,i){let o=!1;if(!r.collapsed)o=!0,r.deleteContents();else if(["deleteContentBackward","deleteContentForward"].includes(i)){let s=SA(r.startContainer,r.startOffset,i==="deleteContentBackward"?-1:1,i);if(s){o=!0;let a=r.cloneRange();a.comparePoint(s.node,s.offset)<0?a.setStart(s.node,s.offset):a.setEnd(s.node,s.offset),a.deleteContents()}}if(n)if(r.endContainer.nodeType===3){let s=r.endOffset;r.endContainer.insertData(s,n),r.setStart(r.endContainer,s+n.length),r.setEnd(r.endContainer,s+n.length)}else{let s=t.ownerDocument.createTextNode(n);r.insertNode(s),r.setStart(s,n.length),r.setEnd(s,n.length)}(o||n)&&e.dispatchUIEvent(t,"input",{inputType:i})}function zG(e,t,r,n,i){let o=n;if(LG(t)){let u=DG(t);if(u!==void 0&&n.length>0){let d=u-t.value.length;if(d>0)o=n.substring(0,d);else return}}let{newValue:s,newOffset:a,oldValue:l}=YG(o,t,r,i);s===l&&a===r.startOffset&&a===r.endOffset||Ie(t,"input",{type:"number"})&&!XG(s)||(IG(t,s),go({focusNode:t,anchorOffset:a,focusOffset:a}),OA(t)?wA(t,s)&&(Mv(e,t,a,{}),e.dispatchUIEvent(t,"change"),TA(t)):Mv(e,t,a,{data:n,inputType:i}))}function YG(e,t,{startOffset:r,endOffset:n},i){let o=En(t),s=Math.max(0,r===n&&i==="deleteContentBackward"?r-1:r),a=o.substring(0,s),l=Math.min(o.length,r===n&&i==="deleteContentForward"?r+1:n),u=o.substring(l,o.length),d=`${a}${e}${u}`,p=s+e.length;if(Ie(t,"input",{type:"time"})){let f=kG(d);f!==""&&wA(t,f)&&(d=f,p=f.length)}return{oldValue:o,newValue:d,newOffset:p}}function Mv(e,t,r,n){e.dispatchUIEvent(t,"input",n),HG(t,r)}function XG(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]))}Ii.cut=(e,t,r)=>()=>{ps(t)&&ms(r,t,"","deleteByCut")};function QG(e){return e?yo(e)?e.textContent:En(e):null}function ZG(e){let t=$r(e);for(let r=e;r!=null&&r.ownerDocument;r=r.parentElement){let{display:n,visibility:i}=t.getComputedStyle(r);if(n==="none"||i==="hidden")return!1}return!0}function eW(e,t){let r=e.ownerDocument,n=r.querySelectorAll(mA),i=Array.from(n).filter(l=>l===e||!(Number(l.getAttribute("tabindex"))<0||Gn(l)));Number(e.getAttribute("tabindex"))>=0&&i.sort((l,u)=>{let d=Number(l.getAttribute("tabindex")),p=Number(u.getAttribute("tabindex"));return d===p?0:d===0?1:p===0?-1:d-p});let o={},s=[r.body],a=Ie(e,"input",{type:"radio"})?e.name:void 0;i.forEach(l=>{let u=l;if(Ie(u,"input",{type:"radio"})&&u.name){if(u===e){s.push(u);return}else if(u.name===a)return;if(u.checked){s=s.filter(d=>!Ie(d,"input",{type:"radio",name:u.name})),s.push(u),o[u.name]=u;return}if(typeof o[u.name]<"u")return}s.push(u)});for(let l=s.findIndex(u=>u===e);;)if(l+=t?-1:1,l===s.length?l=0:l===-1&&(l=s.length-1),s[l]===e||s[l]===r.body||ZG(s[l]))return s[l]}function qv(e,t){if(vn(e)){let r=Ja(e);go({focusNode:e,focusOffset:r.startOffset===r.endOffset?r.focusOffset+t:t<0?r.startOffset:r.endOffset})}else{let r=e.ownerDocument.getSelection();if(!(r!=null&&r.focusNode))return;if(r.isCollapsed){let n=SA(r.focusNode,r.focusOffset,t);n&&go({focusNode:n.node,focusOffset:n.offset})}else r[t<0?"collapseToStart":"collapseToEnd"]()}}function AA(e){if(vn(e))return go({focusNode:e,anchorOffset:0,focusOffset:En(e).length});var t;let r=(t=Va(e))!==null&&t!==void 0?t:e.ownerDocument.body;go({focusNode:r,anchorOffset:0,focusOffset:r.childNodes.length})}function tW(e){if(vn(e))return Ja(e).startOffset===0&&Ja(e).endOffset===En(e).length;var t;let r=(t=Va(e))!==null&&t!==void 0?t:e.ownerDocument.body,n=e.ownerDocument.getSelection();return(n==null?void 0:n.anchorNode)===r&&n.focusNode===r&&n.anchorOffset===0&&n.focusOffset===r.childNodes.length}function ta(e,t,r){var n;if(vn(e))return go({focusNode:e,anchorOffset:t,focusOffset:r});if(yo(e)&&((n=e.firstChild)===null||n===void 0?void 0:n.nodeType)===3)return go({focusNode:e.firstChild,anchorOffset:t,focusOffset:r});throw new Error("Not implemented. The result of this interaction is unreliable.")}function Gl(e,t,r){let n=$r(t),i=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 o=i.findIndex(s=>s===t)+r;;o+=r){if(i[o]||(o=r>0?0:i.length-1),i[o]===t)return;if(!Gn(i[o])){Ni(i[o]),e.dispatchUIEvent(i[o],"click");return}}}Ii.keydown=(e,t,r)=>{var n,i;return(i=(n=jv[e.key])===null||n===void 0?void 0:n.call(jv,e,t,r))!==null&&i!==void 0?i:rW(e,t,r)};var jv={ArrowDown:(e,t,r)=>{if(Ie(t,"input",{type:"radio"}))return()=>Gl(r,t,1)},ArrowLeft:(e,t,r)=>Ie(t,"input",{type:"radio"})?()=>Gl(r,t,-1):()=>qv(t,-1),ArrowRight:(e,t,r)=>Ie(t,"input",{type:"radio"})?()=>Gl(r,t,1):()=>qv(t,1),ArrowUp:(e,t,r)=>{if(Ie(t,"input",{type:"radio"}))return()=>Gl(r,t,-1)},Backspace:(e,t,r)=>{if(ps(t))return()=>{ms(r,t,"","deleteContentBackward")}},Delete:(e,t,r)=>{if(ps(t))return()=>{ms(r,t,"","deleteContentForward")}},End:(e,t)=>{if(Ie(t,["input","textarea"])||yo(t))return()=>{var r,n;let i=(n=(r=QG(t))===null||r===void 0?void 0:r.length)!==null&&n!==void 0?n:0;ta(t,i,i)}},Home:(e,t)=>{if(Ie(t,["input","textarea"])||yo(t))return()=>{ta(t,0,0)}},PageDown:(e,t)=>{if(Ie(t,["input"]))return()=>{let r=En(t).length;ta(t,r,r)}},PageUp:(e,t)=>{if(Ie(t,["input"]))return()=>{ta(t,0,0)}},Tab:(e,t,r)=>()=>{let n=eW(t,r.system.keyboard.modifiers.Shift);Ni(n),vn(n)&&Is(n,{anchorOffset:0,focusOffset:n.value.length})}},rW=(e,t,r)=>{if(e.code==="KeyA"&&r.system.keyboard.modifiers.Control)return()=>AA(t)};Ii.keypress=(e,t,r)=>{if(e.key==="Enter"){if(Ie(t,"button")||Ie(t,"input")&&nW.includes(t.type)||Ie(t,"a")&&t.href)return()=>{r.dispatchUIEvent(t,"click")};if(Ie(t,"input")){let n=t.form,i=n==null?void 0:n.querySelector('input[type="submit"], button:not([type]), button[type="submit"]');return i?()=>r.dispatchUIEvent(i,"click"):n&&iW.includes(t.type)&&n.querySelectorAll("input").length===1?()=>r.dispatchUIEvent(n,"submit"):void 0}}if(ps(t)){let n=e.key==="Enter"?yo(t)&&!r.system.keyboard.modifiers.Shift?"insertParagraph":"insertLineBreak":"insertText",i=e.key==="Enter"?`
|
|
342
|
-
`:e.key;return()=>ms(r,t,i,n)}};var nW=["button","color","file","image","reset","submit"],iW=["email","month","password","search","tel","text","url","week"];Ii.keyup=(e,t,r)=>{var n;return(n=kv[e.key])===null||n===void 0?void 0:n.call(kv,e,t,r)};var kv={" ":(e,t,r)=>{if(gA(t))return()=>r.dispatchUIEvent(t,"click")}};Ii.paste=(e,t,r)=>{if(ps(t))return()=>{var n;let i=(n=e.clipboardData)===null||n===void 0?void 0:n.getData("text");i&&ms(r,t,i,"insertFromPaste")}};var PA={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 CA(e){return PA[e].EventType}var oW=["MouseEvent","PointerEvent"];function sW(e){return oW.includes(CA(e))}function aW(e){return CA(e)==="KeyboardEvent"}var lW={ClipboardEvent:[cW],Event:[],FocusEvent:[Hs,dW],InputEvent:[Hs,pW],MouseEvent:[Hs,yp,Dv],PointerEvent:[Hs,yp,Dv,hW],KeyboardEvent:[Hs,yp,fW]};function xA(e,t,r){let n=$r(t),{EventType:i,defaultInit:o}=PA[e],s=new(uW(n))[i](e,o);var a={};for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(a[l]=r[l]);return a.view=n,lW[i].forEach(function(u){u(s,a)}),s}function uW(e){var t;let r=(t=e.Event)!==null&&t!==void 0?t:class{};var n;let i=(n=e.AnimationEvent)!==null&&n!==void 0?n:class extends r{};var o;let s=(o=e.ClipboardEvent)!==null&&o!==void 0?o:class extends r{};var a;let l=(a=e.PopStateEvent)!==null&&a!==void 0?a:class extends r{};var u;let d=(u=e.ProgressEvent)!==null&&u!==void 0?u:class extends r{};var p;let f=(p=e.TransitionEvent)!==null&&p!==void 0?p:class extends r{};var h;let y=(h=e.UIEvent)!==null&&h!==void 0?h:class extends r{};var g;let v=(g=e.CompositionEvent)!==null&&g!==void 0?g:class extends y{};var b;let E=(b=e.FocusEvent)!==null&&b!==void 0?b:class extends y{};var w;let A=(w=e.InputEvent)!==null&&w!==void 0?w:class extends y{};var C;let R=(C=e.KeyboardEvent)!==null&&C!==void 0?C:class extends y{};var S;let _=(S=e.MouseEvent)!==null&&S!==void 0?S:class extends y{};var O;let M=(O=e.DragEvent)!==null&&O!==void 0?O:class extends _{};var I;let k=(I=e.PointerEvent)!==null&&I!==void 0?I:class extends _{};var N;let P=(N=e.TouchEvent)!==null&&N!==void 0?N:class extends y{};return{Event:r,AnimationEvent:i,ClipboardEvent:s,PopStateEvent:l,ProgressEvent:d,TransitionEvent:f,UIEvent:y,CompositionEvent:v,FocusEvent:E,InputEvent:A,KeyboardEvent:R,MouseEvent:_,DragEvent:M,PointerEvent:k,TouchEvent:P}}function ji(e,t){for(let[r,n]of Object.entries(t))Object.defineProperty(e,r,{get:()=>n??null})}function ht(e){return Number(e??0)}function cW(e,{clipboardData:t}){ji(e,{clipboardData:t})}function dW(e,{relatedTarget:t}){ji(e,{relatedTarget:t})}function pW(e,{data:t,inputType:r,isComposing:n}){ji(e,{data:t,isComposing:!!n,inputType:String(r)})}function Hs(e,{view:t,detail:r}){ji(e,{view:t,detail:ht(r??0)})}function yp(e,{altKey:t,ctrlKey:r,metaKey:n,shiftKey:i,modifierAltGraph:o,modifierCapsLock:s,modifierFn:a,modifierFnLock:l,modifierNumLock:u,modifierScrollLock:d,modifierSymbol:p,modifierSymbolLock:f}){ji(e,{altKey:!!t,ctrlKey:!!r,metaKey:!!n,shiftKey:!!i,getModifierState(h){return!!{Alt:t,AltGraph:o,CapsLock:s,Control:r,Fn:a,FnLock:l,Meta:n,NumLock:u,ScrollLock:d,Shift:i,Symbol:p,SymbolLock:f}[h]}})}function fW(e,{key:t,code:r,location:n,repeat:i,isComposing:o,charCode:s}){ji(e,{key:String(t),code:String(r),location:ht(n),repeat:!!i,isComposing:!!o,charCode:s})}function Dv(e,{x:t,y:r,screenX:n,screenY:i,clientX:o=t,clientY:s=r,button:a,buttons:l,relatedTarget:u,offsetX:d,offsetY:p,pageX:f,pageY:h}){ji(e,{screenX:ht(n),screenY:ht(i),clientX:ht(o),x:ht(o),clientY:ht(s),y:ht(s),button:ht(a),buttons:ht(l),relatedTarget:u,offsetX:ht(d),offsetY:ht(p),pageX:ht(f),pageY:ht(h)})}function hW(e,{pointerId:t,width:r,height:n,pressure:i,tangentialPressure:o,tiltX:s,tiltY:a,twist:l,pointerType:u,isPrimary:d}){ji(e,{pointerId:ht(t),width:ht(r??1),height:ht(n??1),pressure:ht(i),tangentialPressure:ht(o),tiltX:ht(s),tiltY:ht(a),twist:ht(l),pointerType:String(u),isPrimary:!!d})}function mW(e,t,r,n=!1){(sW(t)||aW(t))&&(r={...r,...this.system.getUIEventModifiers()});let i=xA(t,e,r);return NA.call(this,e,i,n)}function NA(e,t,r=!1){var n;let i=t.type,o=r?()=>{}:(n=Ii[i])===null||n===void 0?void 0:n.call(Ii,t,e,this);if(o){t.preventDefault();let s=!1;return Object.defineProperty(t,"defaultPrevented",{get:()=>s}),Object.defineProperty(t,"preventDefault",{value:()=>{s=t.cancelable}}),fs(()=>e.dispatchEvent(t)),s||o(),!s}return fs(()=>e.dispatchEvent(t))}function zi(e,t,r){let n=xA(t,e,r);fs(()=>e.dispatchEvent(n))}var Lv=Symbol("patched focus/blur methods");function IA(e){if(e.prototype[Lv])return;let{focus:t,blur:r}=e.prototype;Object.defineProperties(e.prototype,{focus:{configurable:!0,get:()=>i},blur:{configurable:!0,get:()=>o},[Lv]:{configurable:!0,get:()=>({focus:t,blur:r})}});let n;function i(s){if(this.ownerDocument.visibilityState!=="hidden")return t.call(this,s);let a=Fv(this.ownerDocument);if(a===this)return;let l=Symbol("focus call");n=l,a&&(r.call(a),zi(a,"blur",{relatedTarget:this}),zi(a,"focusout",{relatedTarget:n===l?this:null})),n===l&&(t.call(this,s),zi(this,"focus",{relatedTarget:a})),n===l&&zi(this,"focusin",{relatedTarget:a})}function o(){if(this.ownerDocument.visibilityState!=="hidden")return r.call(this);let s=Fv(this.ownerDocument);s===this&&(n=Symbol("blur call"),r.call(this),zi(s,"blur",{relatedTarget:null}),zi(s,"focusout",{relatedTarget:null}))}}function Fv(e){let t=Sl(e);return(t==null?void 0:t.tagName)==="BODY"?null:t}var gp=Symbol("Interceptor for programmatical calls");function Bo(e,t,r){let n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=Object.getOwnPropertyDescriptor(e,t),o=n!=null&&n.set?"set":"value";if(typeof(n==null?void 0:n[o])!="function"||n[o][gp])throw new Error(`Element ${e.tagName} does not implement "${String(t)}".`);function s(...a){let{applyNative:l=!1,realArgs:u,then:d}=r.call(this,...a),p=(!l&&i||n)[o];o==="set"?p.call(this,u):p.call(this,...u),d==null||d()}s[gp]=gp,Object.defineProperty(e,t,{...i??n,[o]:s})}function yW(e){Bo(e,"value",function(t){let r=xG(t);return r&&VG(this),{applyNative:!!r,realArgs:gW(this,t),then:r?void 0:()=>JG(this,String(t))}})}function gW(e,t){return Ie(e,"input",{type:"number"})&&String(t)!==""&&!Number.isNaN(Number(t))?String(Number(t)):String(t)}function bW(e){Bo(e,"setSelectionRange",function(t,...r){let n=NG(t);return{applyNative:!!n,realArgs:[Number(t),...r],then:()=>n?void 0:Eu(e)}}),Bo(e,"selectionStart",function(t){return{realArgs:t,then:()=>Eu(e)}}),Bo(e,"selectionEnd",function(t){return{realArgs:t,then:()=>Eu(e)}}),Bo(e,"select",function(){return{realArgs:[],then:()=>qG(e,{anchorOffset:0,focusOffset:En(e).length})}})}function vW(e){Bo(e,"setRangeText",function(...t){return{realArgs:t,then:()=>{yy(e),Eu(e)}}})}var Wo=Symbol("Node prepared with document state workarounds");function MA(e){e[Wo]||(e.addEventListener("focus",t=>{let r=t.target;Bv(r)},{capture:!0,passive:!0}),e.activeElement&&Bv(e.activeElement),e.addEventListener("blur",t=>{let r=t.target,n=MG(r);n!==void 0&&(r.value!==n&&zi(r,"change"),TA(r))},{capture:!0,passive:!0}),e[Wo]=Wo)}function Bv(e){e[Wo]||(Ie(e,["input","textarea"])&&(yW(e),bW(e),vW(e)),e[Wo]=Wo)}function EW(e){return TW(e)?e:e.ownerDocument}function TW(e){return e.nodeType===9}var wr=function(e){return e[e.Trigger=2]="Trigger",e[e.Call=1]="Call",e}({});function ra(e,t){e.levelRefs[t]={}}function Wl(e,t){return e.levelRefs[t]}function ys(e){let t=e.delay;if(typeof t=="number")return Promise.all([new Promise(r=>globalThis.setTimeout(()=>r(),t)),e.advanceTimers(t)])}var wu=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 $i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var nn=function(e){return e[e.STANDARD=0]="STANDARD",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.NUMPAD=3]="NUMPAD",e}({}),wW=["Alt","AltGraph","Control","Fn","Meta","Shift","Symbol"];function $v(e){return wW.includes(e)}var _W=["CapsLock","FnLock","NumLock","ScrollLock","SymbolLock"];function Uv(e){return _W.includes(e)}var SW=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),i=mp(e.config.document);this.setKeydownTarget(i),this.pressed.add(n,t),$v(r)&&(this.modifiers[r]=!0);let o=e.dispatchUIEvent(i,"keydown",{key:r,code:n});Uv(r)&&!this.modifiers[r]&&(this.modifiers[r]=!0,this.modifierLockStart[r]=!0),o&&this.pressed.setUnprevented(n),o&&this.hasKeyPress(r)&&e.dispatchUIEvent(mp(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),i=this.pressed.isUnprevented(n);this.pressed.delete(n),$v(r)&&!this.pressed.values().find(o=>o.keyDef.key===r)&&(this.modifiers[r]=!1),e.dispatchUIEvent(mp(e.config.document),"keyup",{key:r,code:n},!i),Uv(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){$i(this,"system",void 0),$i(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}),$i(this,"pressed",new class{add(t,r){var n,i,o;(o=(n=this.registry)[i=t])!==null&&o!==void 0||(n[i]={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(){$i(this,"registry",{})}}),$i(this,"carryChar",""),$i(this,"lastKeydownTarget",void 0),$i(this,"modifierLockStart",{}),this.system=e}},RW=[..."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:nn.LEFT},{code:"AltRight",key:"Alt",location:nn.RIGHT},{code:"ShiftLeft",key:"Shift",location:nn.LEFT},{code:"ShiftRight",key:"Shift",location:nn.RIGHT},{code:"ControlLeft",key:"Control",location:nn.LEFT},{code:"ControlRight",key:"Control",location:nn.RIGHT},{code:"MetaLeft",key:"Meta",location:nn.LEFT},{code:"MetaRight",key:"Meta",location:nn.RIGHT},{code:"OSLeft",key:"OS",location:nn.LEFT},{code:"OSRight",key:"OS",location:nn.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"}],OW=[{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 AW(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var qA=class{getButtons(){let e=0;for(let t of Object.keys(this.pressed))e|=2**Number(t);return e}down(e){let t=Lf(e.button);if(t in this.pressed){this.pressed[t].push(e);return}return this.pressed[t]=[e],t}up(e){let t=Lf(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(){AW(this,"pressed",{})}},Vv={primary:0,secondary:1,auxiliary:2,back:3,X1:3,forward:4,X2:4};function Lf(e=0){return e in Vv?Vv[e]:Number(e)}var Jv={1:2,2:1};function Ff(e){return e=Lf(e),e in Jv?Jv[e]:e}function PW(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var CW=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(){PW(this,"pressedKeys",new Set)}};function fa(e,t){let r=[];for(let o=e;o;o=o.parentElement)r.push(o);let n=[];for(let o=t;o;o=o.parentElement)n.push(o);let i=0;for(;!(i>=r.length||i>=n.length||r[r.length-1-i]!==n[n.length-1-i]);i++);return[r.slice(0,r.length-i),n.slice(0,n.length-i),n.slice(n.length-i)]}function Bf({target:e,node:t,offset:r}){return vn(e)?{node:e,offset:r??En(e).length}:t?{node:t,offset:r??(t.nodeType===3?t.nodeValue.length:t.childNodes.length)}:jA(e,r)}function jA(e,t,r=!0){let n=t===void 0?e.childNodes.length-1:0,i=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 o=e.childNodes.item(n),s=String(o.textContent);if(s.length)if(t!==void 0&&s.length<t)t-=s.length;else{if(o.nodeType===1)return jA(o,t,!1);if(o.nodeType===3)return{node:o,offset:t??o.nodeValue.length}}n+=i}return{node:e,offset:e.childNodes.length}}function xW({document:e,target:t,clickCount:r,node:n,offset:i}){if(AG(t))return;let o=vn(t),s=String(o?En(t):t.textContent),[a,l]=n?[i,i]:NW(s,i,r);if(o)return Is(t,{anchorOffset:a??s.length,focusOffset:l??s.length}),{node:t,start:a??0,end:l??s.length};{let{node:u,offset:d}=Bf({target:t,node:n,offset:a}),{node:p,offset:f}=Bf({target:t,node:n,offset:l}),h=t.ownerDocument.createRange();try{h.setStart(u,d),h.setEnd(p,f)}catch{throw new Error("The given offset is out of bounds.")}let y=e.getSelection();return y==null||y.removeAllRanges(),y==null||y.addRange(h.cloneRange()),h}}function NW(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 IW(e,{document:t,target:r,node:n,offset:i}){let o=Bf({target:r,node:n,offset:i});if("node"in e){if(o.node===e.node){let s=o.offset<e.start?e.end:e.start,a=o.offset>e.end||o.offset<e.start?o.offset:e.end;Is(e.node,{anchorOffset:s,focusOffset:a})}}else{let s=e.cloneRange(),a=s.comparePoint(o.node,o.offset);a<0?s.setStart(o.node,o.offset):a>0&&s.setEnd(o.node,o.offset);let l=t.getSelection();l==null||l.removeAllRanges(),l==null||l.addRange(s.cloneRange())}}function kA(e,t){var r,n,i,o,s,a,l,u,d,p,f,h,y,g,v,b,E,w,A,C,R,S,_,O;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)||((i=e.coords)===null||i===void 0?void 0:i.y)!==((o=t.coords)===null||o===void 0?void 0:o.y)||((s=e.coords)===null||s===void 0?void 0:s.clientX)!==((a=t.coords)===null||a===void 0?void 0:a.clientX)||((l=e.coords)===null||l===void 0?void 0:l.clientY)!==((u=t.coords)===null||u===void 0?void 0:u.clientY)||((d=e.coords)===null||d===void 0?void 0:d.offsetX)!==((p=t.coords)===null||p===void 0?void 0:p.offsetX)||((f=e.coords)===null||f===void 0?void 0:f.offsetY)!==((h=t.coords)===null||h===void 0?void 0:h.offsetY)||((y=e.coords)===null||y===void 0?void 0:y.pageX)!==((g=t.coords)===null||g===void 0?void 0:g.pageX)||((v=e.coords)===null||v===void 0?void 0:v.pageY)!==((b=t.coords)===null||b===void 0?void 0:b.pageY)||((E=e.coords)===null||E===void 0?void 0:E.screenX)!==((w=t.coords)===null||w===void 0?void 0:w.screenX)||((A=e.coords)===null||A===void 0?void 0:A.screenY)!==((C=t.coords)===null||C===void 0?void 0:C.screenY)||((R=e.caret)===null||R===void 0?void 0:R.node)!==((S=t.caret)===null||S===void 0?void 0:S.node)||((_=e.caret)===null||_===void 0?void 0:_.offset)!==((O=t.caret)===null||O===void 0?void 0:O.offset)}function Ui(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var MW=class{move(e,t,r){let n=this.position,i=this.getTarget(e);if(this.position=t,!kA(n,t))return;let o=this.getTarget(e),s=this.getEventInit("mousemove"),[a,l]=fa(i,o);return{leave:()=>{i!==o&&(e.dispatchUIEvent(i,"mouseout",s),a.forEach(u=>e.dispatchUIEvent(u,"mouseleave",s)))},enter:()=>{i!==o&&(e.dispatchUIEvent(o,"mouseover",s),l.forEach(u=>e.dispatchUIEvent(u,"mouseenter",s)))},move:()=>{r||(e.dispatchUIEvent(o,"mousemove",s),this.modifySelecting(e))}}}down(e,t,r){let n=this.buttons.down(t);if(n===void 0)return;let i=this.getTarget(e);this.buttonDownTarget[n]=i;let o=this.getEventInit("mousedown",t.button),s=Gn(i);!r&&(s||e.dispatchUIEvent(i,"mousedown",o))&&(this.startSelecting(e,o.detail),Ni(i)),!s&&Ff(t.button)===2&&e.dispatchUIEvent(i,"contextmenu",this.getEventInit("contextmenu",t.button))}up(e,t,r){let n=this.buttons.up(t);if(n===void 0)return;let i=this.getTarget(e);if(!Gn(i)){if(!r){let s=this.getEventInit("mouseup",t.button);e.dispatchUIEvent(i,"mouseup",s),this.endSelecting()}let o=fa(this.buttonDownTarget[n],i)[2][0];if(o){let s=this.getEventInit("click",t.button);s.detail&&(e.dispatchUIEvent(o,s.button===0?"click":"auxclick",s),s.button===0&&s.detail===2&&e.dispatchUIEvent(o,"dblclick",{...this.getEventInit("dblclick",t.button),detail:s.detail}))}}}resetClickCount(){this.clickCount.reset()}getEventInit(e,t){let r={...this.position.coords};return r.button=Ff(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=xW({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&&IW(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(){Ui(this,"position",{}),Ui(this,"buttons",new qA),Ui(this,"selecting",void 0),Ui(this,"buttonDownTarget",{}),Ui(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(){Ui(this,"down",{}),Ui(this,"count",{})}})}};function Xu(e,t){var r;return((r=DA(e,t))===null||r===void 0?void 0:r.pointerEvents)!=="none"}function qW(e){let t=$r(e);for(let r=e,n=[];r!=null&&r.ownerDocument;r=r.parentElement){n.push(r);let i=t.getComputedStyle(r).pointerEvents;if(i&&!["inherit","unset"].includes(i))return{pointerEvents:i,tree:n}}}var Hv=Symbol("Last check for pointer-events");function DA(e,t){let r=t[Hv];if(!(e.config.pointerEventsCheck!==wu.Never&&(!r||Gv(e.config.pointerEventsCheck,wu.EachApiCall)&&r[wr.Call]!==Wl(e,wr.Call)||Gv(e.config.pointerEventsCheck,wu.EachTrigger)&&r[wr.Trigger]!==Wl(e,wr.Trigger))))return r==null?void 0:r.result;let n=qW(t);return t[Hv]={[wr.Call]:Wl(e,wr.Call),[wr.Trigger]:Wl(e,wr.Trigger),result:n},n}function na(e,t){let r=DA(e,t);if((r==null?void 0:r.pointerEvents)==="none")throw new Error([`Unable to perform pointer interaction as the element ${r.tree.length>1?"inherits":"has"} \`pointer-events: none\`:`,"",jW(r.tree)].join(`
|
|
343
|
-
`))}function jW(e){return e.reverse().map((t,r)=>["".padEnd(r),t.tagName,t.id&&`#${t.id}`,t.hasAttribute("data-testid")&&`(testId=${t.getAttribute("data-testid")})`,kW(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(`
|
|
344
|
-
`)}function kW(e){var t;let r;if(e.hasAttribute("aria-label"))r=e.getAttribute("aria-label");else if(e.hasAttribute("aria-labelledby")){var n,i;r=(i=e.ownerDocument.getElementById(e.getAttribute("aria-labelledby")))===null||i===void 0||(n=i.textContent)===null||n===void 0?void 0:n.trim()}else if(Ie(e,["button","input","meter","output","progress","select","textarea"])&&!((t=e.labels)===null||t===void 0)&&t.length)r=Array.from(e.labels).map(s=>{var a;return(a=s.textContent)===null||a===void 0?void 0:a.trim()}).join("|");else if(Ie(e,"button")){var o;r=(o=e.textContent)===null||o===void 0?void 0:o.trim()}return r=r==null?void 0:r.replace(/\n/g," "),Number(r==null?void 0:r.length)>30&&(r=`${r==null?void 0:r.substring(0,29)}…`),r?`(label=${r})`:""}function Gv(e,t){return(e&t)>0}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 DW=class{init(e){let t=this.getTarget(e),[,r]=fa(null,t),n=this.getEventInit();return na(e,t),e.dispatchUIEvent(t,"pointerover",n),r.forEach(i=>e.dispatchUIEvent(i,"pointerenter",n)),this}move(e,t){let r=this.position,n=this.getTarget(e);if(this.position=t,!kA(r,t))return;let i=this.getTarget(e),o=this.getEventInit(-1),[s,a]=fa(n,i);return{leave:()=>{Xu(e,n)&&n!==i&&(e.dispatchUIEvent(n,"pointerout",o),s.forEach(l=>e.dispatchUIEvent(l,"pointerleave",o)))},enter:()=>{na(e,i),n!==i&&(e.dispatchUIEvent(i,"pointerover",o),a.forEach(l=>e.dispatchUIEvent(l,"pointerenter",o)))},move:()=>{e.dispatchUIEvent(i,"pointermove",o)}}}down(e,t=0){if(this.isDown)return;let r=this.getTarget(e);na(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);na(e,r),this.isPrevented=!1,this.isDown=!1,e.dispatchUIEvent(r,"pointerup",this.getEventInit(t))}release(e){let t=this.getTarget(e),[r]=fa(t,null),n=this.getEventInit();Xu(e,t)&&(e.dispatchUIEvent(t,"pointerout",n),r.forEach(i=>e.dispatchUIEvent(i,"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:Ff(e),buttons:this.buttons.getButtons()}}constructor({pointerId:e,pointerType:t,isPrimary:r},n){Sn(this,"pointerId",void 0),Sn(this,"pointerType",void 0),Sn(this,"isPrimary",void 0),Sn(this,"buttons",void 0),Sn(this,"isMultitouch",!1),Sn(this,"isCancelled",!1),Sn(this,"isDown",!1),Sn(this,"isPrevented",!1),Sn(this,"position",{}),this.pointerId=e,this.pointerType=t,this.isPrimary=r,this.isMultitouch=!r,this.buttons=n}};function li(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var LW=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),i=t.pointerType==="touch"?this.pointers.new(n,t.pointerType,this.buttons):this.pointers.get(n);i.position=r,i.pointerType!=="touch"&&(this.mouse.position=r),i.pointerType==="touch"&&i.init(e),i.down(e,t.button),i.pointerType!=="touch"&&this.mouse.down(e,t,i.isPrevented)}async move(e,t,r){let n=this.pointers.get(t),i=n.move(e,r),o=n.pointerType==="touch"?void 0:this.mouse.move(e,r,n.isPrevented);i==null||i.leave(),o==null||o.leave(),i==null||i.enter(),o==null||o.enter(),i==null||i.move(),o==null||o.move()}async release(e,t,r){let n=this.devices.get(t.pointerType);n.removePressed(t),this.buttons.up(t);let i=this.pointers.get(this.getPointerName(t)),o=i.isPrevented;if(i.position=r,i.pointerType!=="touch"&&(this.mouse.position=r),n.countPressed===0&&i.up(e,t.button),i.pointerType==="touch"&&i.release(e),i.pointerType==="touch"&&!i.isMultitouch){let s=this.mouse.move(e,r,o);s==null||s.leave(),s==null||s.enter(),s==null||s.move(),this.mouse.down(e,t,o)}if(!i.isMultitouch){let s=this.mouse.move(e,r,o);s==null||s.leave(),s==null||s.enter(),s==null||s.move(),this.mouse.up(e,t,o)}}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){li(this,"system",void 0),li(this,"mouse",void 0),li(this,"buttons",void 0),li(this,"devices",new class{get(t){var r,n,i;return(i=(r=this.registry)[n=t])!==null&&i!==void 0?i:r[n]=new CW}constructor(){li(this,"registry",{})}}),li(this,"pointers",new class{new(t,r,n){let i=r!=="touch"||!Object.values(this.registry).some(o=>o.pointerType==="touch"&&!o.isCancelled);return i||Object.values(this.registry).forEach(o=>{o.pointerType===r&&!o.isCancelled&&(o.isMultitouch=!0)}),this.registry[t]=new DW({pointerId:this.nextId++,pointerType:r,isPrimary:i},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(){li(this,"registry",{}),li(this,"nextId",1)}}),this.system=e,this.buttons=new qA,this.mouse=new MW,this.pointers.new("mouse","mouse",this.buttons)}};function Wv(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var LA=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(){Wv(this,"keyboard",new SW(this)),Wv(this,"pointer",new LW(this))}};async function FW(e){let t=[];return this.config.skipHover||t.push({target:e}),t.push({keys:"[MouseLeft]",target:e}),this.pointer(t)}async function BW(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft]"])}async function $W(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft][MouseLeft]"])}async function UW(e){return this.pointer({target:e})}async function VW(e){return na(this,this.system.pointer.getMouseTarget(this)),this.pointer({target:e.ownerDocument.body})}async function JW({shift:e}={}){return this.keyboard(e===!0?"{Shift>}{Tab}{/Shift}":e===!1?"[/ShiftLeft][/ShiftRight]{Tab}":"{Tab}")}var by=function(e){return e["{"]="}",e["["]="]",e}(by||{});function FA(e,t){let r=0,n=e[r]in by?e[r]:"";r+=n.length;let i=new RegExp(`^\\${n}{2}`).test(e)?"":n;return{type:i,...i===""?HW(e,r,t):GW(e,r,i,t)}}function HW(e,t,r){let n=e[t];return BA(n,e,t,r),t+=n.length,{consumedLength:t,descriptor:n,releasePrevious:!1,releaseSelf:!0,repeat:1}}function GW(e,t,r,n){var i,o;let s=e[t]==="/"?"/":"";t+=s.length;let a=r==="{"&&e[t]==="\\";t+=Number(a);let l=a?e[t]:(i=e.slice(t).match(r==="{"?/^\w+|^[^}>/]/:/^\w+/))===null||i===void 0?void 0:i[0];BA(l,e,t,n),t+=l.length;var u;let d=(u=(o=e.slice(t).match(/^>\d+/))===null||o===void 0?void 0:o[0])!==null&&u!==void 0?u:"";t+=d.length;let p=e[t]==="/"||!d&&e[t]===">"?e[t]:"";t+=p.length;let f=by[r],h=e[t]===f?f:"";if(!h)throw new Error($A([!d&&"repeat modifier",!p&&"release modifier",`"${f}"`].filter(Boolean).join(" or "),e[t],e,n));return t+=h.length,{consumedLength:t,descriptor:l,releasePrevious:!!s,repeat:d?Math.max(Number(d.substr(1)),1):1,releaseSelf:WW(p,d)}}function BA(e,t,r,n){if(!e)throw new Error($A("key descriptor",t[r],t,n))}function WW(e,t){if(e)return e==="/";if(t)return!1}function $A(e,t,r,n){return`Expected ${e} but found "${t??""}" in "${r}"
|
|
345
|
-
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"}
|
|
346
|
-
for more information about how userEvent parses your input.`}function KW(e,t){let r=[];do{let{type:i,descriptor:o,consumedLength:s,releasePrevious:a,releaseSelf:l=!0,repeat:u}=FA(t,"keyboard");var n;let d=(n=e.find(p=>{if(i==="["){var f;return((f=p.code)===null||f===void 0?void 0:f.toLowerCase())===o.toLowerCase()}else if(i==="{"){var h;return((h=p.key)===null||h===void 0?void 0:h.toLowerCase())===o.toLowerCase()}return p.key===o}))!==null&&n!==void 0?n:{key:"Unknown",code:"Unknown",[i==="["?"code":"key"]:o};r.push({keyDef:d,releasePrevious:a,releaseSelf:l,repeat:u}),t=t.slice(s)}while(t);return r}async function zW(e){let t=KW(this.config.keyboardMap,e);for(let r=0;r<t.length;r++)await ys(this.config),await YW(this,t[r])}async function YW(e,{keyDef:t,releasePrevious:r,releaseSelf:n,repeat:i}){let{system:o}=e;if(o.keyboard.isKeyPressed(t)&&await o.keyboard.keyup(e,t),!r){for(let s=1;s<=i;s++)await o.keyboard.keydown(e,t),s<i&&await ys(e.config);n&&await o.keyboard.keyup(e,t)}}async function XW(e){for(let t of e.system.keyboard.getPressedKeys())await e.system.keyboard.keyup(e,t)}function UA(e){let t=vn(e)?{"text/plain":QW(e)}:{"text/plain":String(e.ownerDocument.getSelection())},r=fy($r(e));for(let n in t)t[n]&&r.setData(n,t[n]);return r}function QW(e){let t=Ja(e);return En(e).substring(t.startOffset,t.endOffset)}async function ZW(){let e=this.config.document;var t;let r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=UA(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"copy",{clipboardData:n})&&this.config.writeToClipboard&&await hA(e,n),n}async function e2(){let e=this.config.document;var t;let r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=UA(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"cut",{clipboardData:n})&&this.config.writeToClipboard&&await hA(r.ownerDocument,n),n}async function t2(e){let t=this.config.document;var r;let n=(r=t.activeElement)!==null&&r!==void 0?r:t.body;var i;let o=(i=typeof e=="string"?r2(t,e):e)!==null&&i!==void 0?i:await _G(t).catch(()=>{throw new Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.")});this.dispatchUIEvent(n,"paste",{clipboardData:o})}function r2(e,t){let r=fy($r(e));return r.setData("text",t),r}function Kv(e,t){let r=[];do{let{descriptor:n,consumedLength:i,releasePrevious:o,releaseSelf:s=!0}=FA(t,"pointer"),a=e.find(l=>l.name===n);a&&r.push({keyDef:a,releasePrevious:o,releaseSelf:s}),t=t.slice(i)}while(t);return r}async function n2(e){let{pointerMap:t}=this.config,r=[];(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="string"?r.push(...Kv(t,n)):"keys"in n?r.push(...Kv(t,n.keys).map(i=>({...n,...i}))):r.push(n)});for(let n=0;n<r.length;n++)await ys(this.config),await i2(this,r[n]);this.system.pointer.resetClickCount()}async function i2(e,t){var r,n;let i="pointerName"in t&&t.pointerName?t.pointerName:"keyDef"in t?e.system.pointer.getPointerName(t.keyDef):"mouse",o=e.system.pointer.getPreviousPosition(i);var s,a,l,u;let d={target:(s=t.target)!==null&&s!==void 0?s:o2(e,o),coords:(a=t.coords)!==null&&a!==void 0?a:o==null?void 0:o.coords,caret:{node:(l=t.node)!==null&&l!==void 0?l:zv(t)||o==null||(r=o.caret)===null||r===void 0?void 0:r.node,offset:(u=t.offset)!==null&&u!==void 0?u:zv(t)||o==null||(n=o.caret)===null||n===void 0?void 0:n.offset}};"keyDef"in t?(e.system.pointer.isKeyPressed(t.keyDef)&&(ra(e,wr.Trigger),await e.system.pointer.release(e,t.keyDef,d)),t.releasePrevious||(ra(e,wr.Trigger),await e.system.pointer.press(e,t.keyDef,d),t.releaseSelf&&(ra(e,wr.Trigger),await e.system.pointer.release(e,t.keyDef,d)))):(ra(e,wr.Trigger),await e.system.pointer.move(e,i,d))}function zv(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 o2(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 s2(e){if(!ps(e)||Gn(e))throw new Error("clear()` is only supported on editable elements.");if(Ni(e),e.ownerDocument.activeElement!==e)throw new Error("The element to be cleared could not be focused.");if(AA(e),!tW(e))throw new Error("The element content to be cleared could not be selected.");ms(this,e,"","deleteContentBackward")}async function a2(e,t){return VA.call(this,!0,e,t)}async function l2(e,t){return VA.call(this,!1,e,t)}async function VA(e,t,r){if(!e&&!t.multiple)throw Fe().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],i=Array.from(t.querySelectorAll('option, [role="option"]')),o=n.map(a=>{if(typeof a!="string"&&i.includes(a))return a;{let l=i.find(u=>u.value===a||u.innerHTML===a);if(l)return l;throw Fe().getElementError(`Value "${String(a)}" not found in options`,t)}}).filter(a=>!Gn(a));if(Gn(t)||!o.length)return;let s=a=>{a.selected=e,this.dispatchUIEvent(t,"input",{bubbles:!0,cancelable:!1,composed:!0}),this.dispatchUIEvent(t,"change")};if(Ie(t,"select"))if(t.multiple)for(let a of o){let l=this.config.pointerEventsCheck===0?!0:Xu(this,a);l&&(this.dispatchUIEvent(a,"pointerover"),this.dispatchUIEvent(t,"pointerenter"),this.dispatchUIEvent(a,"mouseover"),this.dispatchUIEvent(t,"mouseenter"),this.dispatchUIEvent(a,"pointermove"),this.dispatchUIEvent(a,"mousemove"),this.dispatchUIEvent(a,"pointerdown"),this.dispatchUIEvent(a,"mousedown")),Ni(t),l&&(this.dispatchUIEvent(a,"pointerup"),this.dispatchUIEvent(a,"mouseup")),s(a),l&&this.dispatchUIEvent(a,"click"),await ys(this.config)}else if(o.length===1){let a=this.config.pointerEventsCheck===0?!0:Xu(this,t);a?await this.click(t):Ni(t),s(o[0]),a&&(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 ys(this.config)}else throw Fe().getElementError("Cannot select multiple options on a non-multiple select",t);else if(t.getAttribute("role")==="listbox")for(let a of o)await this.click(a),await this.unhover(a);else throw Fe().getElementError("Cannot select options on elements that are neither select nor listbox elements",t)}async function u2(e,t,{skipClick:r=this.config.skipClick,skipAutoClose:n=this.config.skipAutoClose,initialSelectionStart:i,initialSelectionEnd:o}={}){e.disabled||(r||await this.click(e),i!==void 0&&ta(e,i,o??i),await this.keyboard(t),n||await XW(this))}var Yv=Symbol("files and value properties are mocked");function bp(e,t,r){r?Object.defineProperty(e,t,r):delete e[t]}function c2(e,t){var r;(r=e[Yv])===null||r===void 0||r.restore();let n=Object.getOwnPropertyDescriptor(e,"type"),i=Object.getOwnPropertyDescriptor(e,"value"),o=Object.getOwnPropertyDescriptor(e,"files");function s(){bp(e,"type",n),bp(e,"value",i),bp(e,"files",o)}e[Yv]={restore:s},Object.defineProperties(e,{files:{configurable:!0,get:()=>t},value:{configurable:!0,get:()=>t.length?`C:\\fakepath\\${t[0].name}`:"",set(a){if(a==="")s();else{var l;i==null||(l=i.set)===null||l===void 0||l.call(e,a)}}},type:{configurable:!0,get:()=>"file",set(a){a!=="file"&&(s(),e.type=a)}}})}async function d2(e,t){let r=Ie(e,"label")?e.control:e;if(!r||!Ie(r,"input",{type:"file"}))throw new TypeError(`The ${r===e?"given":"associated"} ${r==null?void 0:r.tagName} element does not accept file uploads`);if(Gn(e))return;let n=(Array.isArray(t)?t:[t]).filter(o=>!this.config.applyAccept||p2(o,r.accept)).slice(0,r.multiple?void 0:1),i=()=>{var o;n.length===((o=r.files)===null||o===void 0?void 0:o.length)&&n.every((s,a)=>{var l;return s===((l=r.files)===null||l===void 0?void 0:l.item(a))})||(c2(r,py($r(e),n)),this.dispatchUIEvent(r,"input"),this.dispatchUIEvent(r,"change"))};r.addEventListener("fileDialog",i),await this.click(e),r.removeEventListener("fileDialog",i)}function Kl(e){return e.toLowerCase().replace(/(\.|\/)jpg\b/g,"$1jpeg")}function p2(e,t){if(!t)return!0;let r=["audio/*","image/*","video/*"];return Kl(t).trim().split(/\s*,\s*/).some(n=>n.startsWith(".")?Kl(e.name).endsWith(n):r.includes(n)?Kl(e.type).startsWith(n.replace("*","")):Kl(e.type)===n)}var Xv={click:FW,dblClick:BW,tripleClick:$W,hover:UW,unhover:VW,tab:JW,keyboard:zW,copy:ZW,cut:e2,paste:t2,pointer:n2,clear:s2,deselectOptions:l2,selectOptions:a2,type:u2,upload:d2};function f2(e){return Fe().asyncWrapper(e)}var JA={applyAccept:!0,autoModify:!0,delay:0,document:globalThis.document,keyboardMap:RW,pointerMap:OW,pointerEventsCheck:wu.EachApiCall,skipAutoClose:!1,skipClick:!1,skipHover:!1,writeToClipboard:!1,advanceTimers:()=>Promise.resolve()},h2={...JA,writeToClipboard:!0};function HA(e={},t=h2,r){let n=b2(e,r,t);return{...t,...e,document:n}}function m2(e={}){let t=HA(e);MA(t.document),IA($r(t.document).HTMLElement);var r;let n=(r=t.document.defaultView)!==null&&r!==void 0?r:globalThis.window;return EG(n),vy(t).api}function nr({keyboardState:e,pointerState:t,...r}={},n){let i=HA(r,JA,n);MA(i.document),IA($r(i.document).HTMLElement);var o;let s=(o=t??e)!==null&&o!==void 0?o:new LA;return{api:vy(i,s).api,system:s}}function y2(e){return vy({...this.config,...e},this.system).api}function g2(e,t){function r(...n){return ra(e,wr.Call),f2(()=>t.apply(e,n).then(async i=>(await ys(e.config),i)))}return Object.defineProperty(r,"name",{get:()=>t.name}),r}function vy(e,t=new LA){let r={};return Object.assign(r,{config:e,dispatchEvent:NA.bind(r),dispatchUIEvent:mW.bind(r),system:t,levelRefs:{},...Xv}),{instance:r,api:{...Object.fromEntries(Object.entries(Xv).map(([n,i])=>[n,g2(r,i)])),setup:y2.bind(r)}}}function b2(e,t,r){var n,i;return(i=(n=e.document)!==null&&n!==void 0?n:t&&EW(t))!==null&&i!==void 0?i:r.document}var GA={};br(GA,{clear:()=>v2,click:()=>E2,copy:()=>T2,cut:()=>w2,dblClick:()=>_2,deselectOptions:()=>S2,hover:()=>R2,keyboard:()=>O2,paste:()=>P2,pointer:()=>A2,selectOptions:()=>C2,tab:()=>q2,tripleClick:()=>x2,type:()=>N2,unhover:()=>I2,upload:()=>M2});function v2(e){return nr().api.clear(e)}function E2(e,t={}){return nr(t,e).api.click(e)}function T2(e={}){return nr(e).api.copy()}function w2(e={}){return nr(e).api.cut()}function _2(e,t={}){return nr(t).api.dblClick(e)}function S2(e,t,r={}){return nr(r).api.deselectOptions(e,t)}function R2(e,t={}){return nr(t).api.hover(e)}async function O2(e,t={}){let{api:r,system:n}=nr(t);return r.keyboard(e).then(()=>n)}async function A2(e,t={}){let{api:r,system:n}=nr(t);return r.pointer(e).then(()=>n)}function P2(e,t){return nr(t).api.paste(e)}function C2(e,t,r={}){return nr(r).api.selectOptions(e,t)}function x2(e,t={}){return nr(t).api.tripleClick(e)}function N2(e,t,r={}){return nr(r,e).api.type(e,t,r)}function I2(e,t={}){let{api:r,system:n}=nr(t);return n.pointer.setMousePosition({target:e}),r.unhover(e)}function M2(e,t,r={}){return nr(r).api.upload(e,t)}function q2(e={}){return nr().api.tab(e)}var WA={...GA,setup:m2},$f=hl({...LR},{getKeys:e=>Object.keys(e).filter(t=>t!=="eventWrapper"),intercept:(e,t)=>t[0]==="fireEvent"||e.startsWith("find")||e.startsWith("waitFor")});$f.screen=new Proxy($f.screen,{get(e,t,r){var n,i;return typeof window<"u"&&((i=(n=globalThis.location)==null?void 0:n.href)!=null&&i.includes("viewMode=docs"))&>.warn(De`
|
|
347
|
-
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.
|
|
348
|
-
|
|
349
|
-
More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#querying-the-canvas
|
|
350
|
-
`),Reflect.get(e,t,r)}});var{buildQueries:j2,configure:k2,createEvent:D2,fireEvent:L2,findAllByAltText:F2,findAllByDisplayValue:B2,findAllByLabelText:$2,findAllByPlaceholderText:U2,findAllByRole:V2,findAllByTestId:J2,findAllByText:H2,findAllByTitle:G2,findByAltText:W2,findByDisplayValue:K2,findByLabelText:z2,findByPlaceholderText:Y2,findByRole:X2,findByTestId:Q2,findByText:Z2,findByTitle:e6,getAllByAltText:t6,getAllByDisplayValue:r6,getAllByLabelText:n6,getAllByPlaceholderText:i6,getAllByRole:o6,getAllByTestId:s6,getAllByText:a6,getAllByTitle:l6,getByAltText:u6,getByDisplayValue:c6,getByLabelText:d6,getByPlaceholderText:p6,getByRole:f6,getByTestId:h6,getByText:m6,getByTitle:y6,getConfig:g6,getDefaultNormalizer:b6,getElementError:v6,getNodeText:E6,getQueriesForElement:T6,getRoles:w6,getSuggestedQuery:_6,isInaccessible:S6,logDOM:R6,logRoles:O6,prettyDOM:A6,queries:P6,queryAllByAltText:C6,queryAllByAttribute:x6,queryAllByDisplayValue:N6,queryAllByLabelText:I6,queryAllByPlaceholderText:M6,queryAllByRole:q6,queryAllByTestId:j6,queryAllByText:k6,queryAllByTitle:D6,queryByAltText:L6,queryByAttribute:F6,queryByDisplayValue:B6,queryByLabelText:$6,queryByPlaceholderText:U6,queryByRole:V6,queryByTestId:J6,queryByText:H6,queryByTitle:G6,queryHelpers:W6,screen:K6,waitFor:z6,waitForElementToBeRemoved:Y6,within:KA,prettyFormat:X6}=$f,zA=WA,{userEvent:Q6}=hl({userEvent:WA},{intercept:!0,getKeys:e=>Object.keys(e).filter(t=>t!=="eventWrapper")}),{expect:Z6}=hl({expect:NR},{getKeys:(e,t)=>{if("constructor"in e&&e.constructor===L){let r=["assert","__methods","__flags","_obj"],n=Object.keys(Object.getPrototypeOf(e)).filter(i=>!r.includes(i));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"}),eK={mock:()=>{}},Qv=!1,tK=e=>{var r;let{parameters:t}=e;(r=t==null?void 0:t.actions)!=null&&r.disable||Qv||(IR((n,i)=>{let o=n.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(s=>o.startsWith(s)))&&Rl(o)(i)}),Qv=!0)},rK=[tK],Zv=()=>({...U_,...J_}),Qu="backgrounds",nK={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}},{document:Kr}=globalThis,iK=()=>{var e;return globalThis!=null&&globalThis.matchMedia?!!((e=globalThis.matchMedia("(prefers-reduced-motion: reduce)"))!=null&&e.matches):!1},eE=e=>{(Array.isArray(e)?e:[e]).forEach(oK)},oK=e=>{if(!Kr)return;let t=Kr.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},sK=(e,t)=>{if(!Kr)return;let r=Kr.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=Kr.createElement("style");n.setAttribute("id",e),n.innerHTML=t,Kr.head.appendChild(n)}},aK=(e,t,r)=>{var i;if(!Kr)return;let n=Kr.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let o=Kr.createElement("style");o.setAttribute("id",e),o.innerHTML=t;let s=`addon-backgrounds-grid${r?`-docs-${r}`:""}`,a=Kr.getElementById(s);a?(i=a.parentElement)==null||i.insertBefore(o,a):Kr.head.appendChild(o)}},lK={cellSize:100,cellAmount:10,opacity:.8},tE="addon-backgrounds",rE="addon-backgrounds-grid",uK=iK()?"":"transition: background-color 0.3s;",cK=(e,t)=>{let{globals:r={},parameters:n={},viewMode:i,id:o}=t,{options:s=nK,disable:a,grid:l=lK}=n[Qu]||{},u=r[Qu]||{},d=typeof u=="string"?u:u==null?void 0:u.value,p=d?s[d]:void 0,f=typeof p=="string"?p:(p==null?void 0:p.value)||"transparent",h=typeof u=="string"?!1:u.grid||!1,y=!!p&&!a,g=i==="docs"?`#anchor--${o} .docs-story, #anchor--primary--${o} .docs-story`:".sb-show-main",v=i==="docs"?`#anchor--${o} .docs-story, #anchor--primary--${o} .docs-story`:".sb-show-main",b=n.layout===void 0||n.layout==="padded",E=i==="docs"?20:b?16:0,{cellAmount:w,cellSize:A,opacity:C,offsetX:R=E,offsetY:S=E}=l,_=i==="docs"?`${tE}-docs-${o}`:`${tE}-color`,O=i==="docs"?o:null;fo(()=>{let I=`
|
|
351
|
-
${g} {
|
|
352
|
-
background: ${f} !important;
|
|
353
|
-
${uK}
|
|
354
|
-
}`;if(!y){eE(_);return}aK(_,I,O)},[g,_,O,y,f]);let M=i==="docs"?`${rE}-docs-${o}`:`${rE}`;return fo(()=>{if(!h){eE(M);return}let I=[`${A*w}px ${A*w}px`,`${A*w}px ${A*w}px`,`${A}px ${A}px`,`${A}px ${A}px`].join(", "),k=`
|
|
355
|
-
${v} {
|
|
356
|
-
background-size: ${I} !important;
|
|
357
|
-
background-position: ${R}px ${S}px, ${R}px ${S}px, ${R}px ${S}px, ${R}px ${S}px !important;
|
|
358
|
-
background-blend-mode: difference !important;
|
|
359
|
-
background-image: linear-gradient(rgba(130, 130, 130, ${C}) 1px, transparent 1px),
|
|
360
|
-
linear-gradient(90deg, rgba(130, 130, 130, ${C}) 1px, transparent 1px),
|
|
361
|
-
linear-gradient(rgba(130, 130, 130, ${C/2}) 1px, transparent 1px),
|
|
362
|
-
linear-gradient(90deg, rgba(130, 130, 130, ${C/2}) 1px, transparent 1px) !important;
|
|
363
|
-
}
|
|
364
|
-
`;sK(M,k)},[w,A,v,M,h,R,S,C]),e()},ZT,dK=(ZT=globalThis.FEATURES)!=null&&ZT.backgrounds?[cK]:[],pK={[Qu]:{grid:{cellSize:20,opacity:.5,cellAmount:5},disable:!1}},fK={[Qu]:{value:void 0,grid:!1}},nE=()=>({decorators:dK,parameters:pK,initialGlobals:fK}),{step:hK}=hl({step:async(e,t,r)=>t(r)},{intercept:!0}),iE=()=>({parameters:{throwPlayFunctionExceptions:!1},runStep:hK}),mK=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")},yK=async({reporting:e,canvasElement:t,globals:r})=>{try{if(!r.ghostStories)return;let n=mK(t.firstElementChild??t);n&&e.addReport({type:"render-analysis",version:1,result:{emptyRender:n},status:"warning"})}catch{}},oE=()=>({afterEach:yK}),od="storybook/highlight",gK=`${od}/add`,bK=`${od}/remove`,vK=`${od}/reset`,EK=`${od}/scroll-into-view`,sE=2147483647,gi=28,aE={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"]},TK="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),xt=(e,t={},r)=>{let n=TK.includes(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return Object.entries(t).forEach(([i,o])=>{/[A-Z]/.test(i)?(i==="onClick"&&(n.addEventListener("click",o),n.addEventListener("keydown",s=>{(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),o())})),i==="onMouseEnter"&&n.addEventListener("mouseenter",o),i==="onMouseLeave"&&n.addEventListener("mouseleave",o)):n.setAttribute(i,o)}),r==null||r.forEach(i=>{if(!(i==null||i===!1))try{n.appendChild(i)}catch{n.appendChild(document.createTextNode(String(i)))}}),n},zl=e=>aE[e]&&xt("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},aE[e].map(t=>xt("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),wK=e=>{if("elements"in e){let{elements:n,color:i,style:o}=e;return{id:void 0,priority:0,selectors:n,styles:{outline:`2px ${o} ${i}`,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}},_K=e=>e instanceof Function,Gs=new Map,Vi=new Map,Yl=new Map,Rn=e=>{let t=Symbol();return Vi.set(t,[]),Gs.set(t,e),{get:()=>Gs.get(t),set:r=>{var o;let n=Gs.get(t),i=_K(r)?r(n):r;i!==n&&(Gs.set(t,i),(o=Vi.get(t))==null||o.forEach(s=>{var a;(a=Yl.get(s))==null||a(),Yl.set(s,s(i))}))},subscribe:r=>{var n;return(n=Vi.get(t))==null||n.push(r),()=>{let i=Vi.get(t);i&&Vi.set(t,i.filter(o=>o!==r))}},teardown:()=>{var r;(r=Vi.get(t))==null||r.forEach(n=>{var i;(i=Yl.get(n))==null||i(),Yl.delete(n)}),Vi.delete(t),Gs.delete(t)}}},lE=e=>{let t=document.getElementById("storybook-root"),r=new Map;for(let n of e){let{priority:i=0}=n;for(let o of n.selectors){let s=[...document.querySelectorAll(`:is(${o}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...(t==null?void 0:t.querySelectorAll(o))||[]];for(let a of s){let l=r.get(a);(!l||l.priority<=i)&&r.set(a,{...n,priority:i,selectors:Array.from(new Set(((l==null?void 0:l.selectors)||[]).concat(o)))})}}}return r},SK=e=>Array.from(e.entries()).map(([t,{selectors:r,styles:n,hoverStyles:i,focusStyles:o,menu:s}])=>{let{top:a,left:l,width:u,height:d}=t.getBoundingClientRect(),{position:p}=getComputedStyle(t);return{element:t,selectors:r,styles:n,hoverStyles:i,focusStyles:o,menu:s,top:p==="fixed"?a:a+window.scrollY,left:p==="fixed"?l:l+window.scrollX,width:u,height:d}}).sort((t,r)=>r.width*r.height-t.width*t.height),uE=(e,t)=>{let r=e.getBoundingClientRect(),{x:n,y:i}=t;return(r==null?void 0:r.top)&&(r==null?void 0:r.left)&&n>=r.left&&n<=r.left+r.width&&i>=r.top&&i<=r.top+r.height},cE=(e,t,r)=>{if(!t||!r)return!1;let{left:n,top:i,width:o,height:s}=e;s<gi&&(i=i-Math.round((gi-s)/2),s=gi),o<gi&&(n=n-Math.round((gi-o)/2),o=gi),t.style.position==="fixed"&&(n+=window.scrollX,i+=window.scrollY);let{x:a,y:l}=r;return a>=n&&a<=n+o&&l>=i&&l<=i+s},RK=(e,t,r={})=>{let{x:n,y:i}=t,{margin:o=5,topOffset:s=0,centered:a=!1}=r,{scrollX:l,scrollY:u,innerHeight:d,innerWidth:p}=window,f=Math.min(e.style.position==="fixed"?i-u:i,d-e.clientHeight-o-s+u),h=a?e.clientWidth/2:0,y=e.style.position==="fixed"?Math.max(Math.min(n-l,p-h-o),h+o):Math.max(Math.min(n,p-h-o+l),h+o+l);Object.assign(e.style,{...y!==n&&{left:`${y}px`},...f!==i&&{top:`${f}px`}})},dE=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()},OK=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()},AK=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}}),ot="storybook-highlights-menu",pE="storybook-highlights-root",PK="storybook-root",CK=e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,r=Rn([]),n=Rn(new Map),i=Rn([]),o=Rn(),s=Rn(),a=Rn([]),l=Rn([]),u=Rn(),d=Rn(),p=t.getElementById(pE);r.subscribe(()=>{p||(p=xt("div",{id:pE}),t.body.appendChild(p))}),r.subscribe(S=>{let _=t.getElementById(PK);if(!_)return;n.set(lE(S));let O=new MutationObserver(()=>n.set(lE(S)));return O.observe(_,{subtree:!0,childList:!0}),()=>{O.disconnect()}}),n.subscribe(S=>{let _=()=>requestAnimationFrame(()=>i.set(SK(S))),O=new ResizeObserver(_);O.observe(t.body),Array.from(S.keys()).forEach(I=>O.observe(I));let M=Array.from(t.body.querySelectorAll("*")).filter(I=>{let{overflow:k,overflowX:N,overflowY:P}=window.getComputedStyle(I);return["auto","scroll"].some(q=>[k,N,P].includes(q))});return M.forEach(I=>I.addEventListener("scroll",_)),()=>{O.disconnect(),M.forEach(I=>I.removeEventListener("scroll",_))}}),n.subscribe(S=>{let _=Array.from(S.keys()).filter(({style:M})=>M.position==="sticky"),O=()=>requestAnimationFrame(()=>{i.set(M=>M.map(I=>{if(_.includes(I.element)){let{top:k,left:N}=I.element.getBoundingClientRect();return{...I,top:k+window.scrollY,left:N+window.scrollX}}return I}))});return t.addEventListener("scroll",O),()=>t.removeEventListener("scroll",O)}),n.subscribe(S=>{a.set(_=>_.filter(({element:O})=>S.has(O)))}),a.subscribe(S=>{S.length?(d.set(_=>S.some(O=>O.element===(_==null?void 0:_.element))?_:void 0),u.set(_=>S.some(O=>O.element===(_==null?void 0:_.element))?_:void 0)):(d.set(void 0),u.set(void 0),o.set(void 0))});let f=new Map(new Map);r.subscribe(S=>{S.forEach(({keyframes:_})=>{if(_){let O=f.get(_);O||(O=t.createElement("style"),O.setAttribute("data-highlight","keyframes"),f.set(_,O),t.head.appendChild(O)),O.innerHTML=_}}),f.forEach((_,O)=>{S.some(M=>M.keyframes===O)||(_.remove(),f.delete(O))})});let h=new Map(new Map);i.subscribe(S=>{S.forEach(_=>{let O=h.get(_.element);if(p&&!O){let M={popover:"manual","data-highlight-dimensions":`w${_.width.toFixed(0)}h${_.height.toFixed(0)}`,"data-highlight-coordinates":`x${_.left.toFixed(0)}y${_.top.toFixed(0)}`};O=p.appendChild(xt("div",M,[xt("div")])),h.set(_.element,O)}}),h.forEach((_,O)=>{S.some(({element:M})=>M===O)||(_.remove(),h.delete(O))})}),i.subscribe(S=>{let _=S.filter(M=>M.menu);if(!_.length)return;let O=M=>{requestAnimationFrame(()=>{let I=t.getElementById(ot),k={x:M.pageX,y:M.pageY};if(I&&!uE(I,k)){let N=_.filter(P=>{let q=h.get(P.element);return cE(P,q,k)});o.set(N.length?k:void 0),a.set(N)}})};return t.addEventListener("click",O),()=>t.removeEventListener("click",O)});let y=()=>{let S=t.getElementById(ot),_=s.get();!_||S&&uE(S,_)||l.set(O=>{let M=i.get().filter(P=>{let q=h.get(P.element);return cE(P,q,_)}),I=O.filter(P=>M.includes(P)),k=M.filter(P=>!O.includes(P)),N=O.length-I.length;return k.length||N?[...I,...k]:O})};s.subscribe(y),i.subscribe(y);let g=()=>{let S=d.get(),_=S?[S]:a.get(),O=_.length===1?_[0]:u.get(),M=o.get()!==void 0;i.get().forEach(I=>{var N;let k=h.get(I.element);if(k){let P=O===I,q=M?O?P:_.includes(I):(N=l.get())==null?void 0:N.includes(I);Object.assign(k.style,{animation:"none",background:"transparent",border:"none",boxSizing:"border-box",outline:"none",outlineOffset:"0px",...I.styles,...q?I.hoverStyles:{},...P?I.focusStyles:{},position:getComputedStyle(I.element).position==="fixed"?"fixed":"absolute",zIndex:sE-10,top:`${I.top}px`,left:`${I.left}px`,width:`${I.width}px`,height:`${I.height}px`,margin:0,padding:0,cursor:I.menu&&q?"pointer":"default",pointerEvents:I.menu?"auto":"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),Object.assign(k.children[0].style,{width:"100%",height:"100%",minHeight:`${gi}px`,minWidth:`${gi}px`,boxSizing:"content-box",padding:k.style.outlineWidth||"0px"}),dE(k)}})};i.subscribe(g),a.subscribe(g),l.subscribe(g),u.subscribe(g),d.subscribe(g);let v=()=>{var I;if(!p)return;let S=t.getElementById(ot);if(S)S.innerHTML="";else{let k={id:ot,popover:"manual"};S=p.appendChild(xt("div",k)),p.appendChild(xt("style",{},[`
|
|
365
|
-
#${ot} {
|
|
366
|
-
position: absolute;
|
|
367
|
-
z-index: ${sE};
|
|
368
|
-
width: 300px;
|
|
369
|
-
padding: 0px;
|
|
370
|
-
margin: 15px 0 0 0;
|
|
371
|
-
transform: translateX(-50%);
|
|
372
|
-
font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
373
|
-
font-size: 12px;
|
|
374
|
-
background: white;
|
|
375
|
-
border: none;
|
|
376
|
-
border-radius: 6px;
|
|
377
|
-
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
|
|
378
|
-
color: #2E3438;
|
|
379
|
-
}
|
|
380
|
-
#${ot} ul {
|
|
381
|
-
list-style: none;
|
|
382
|
-
margin: 0;
|
|
383
|
-
padding: 0;
|
|
384
|
-
}
|
|
385
|
-
#${ot} > ul {
|
|
386
|
-
max-height: 300px;
|
|
387
|
-
overflow-y: auto;
|
|
388
|
-
padding: 4px 0;
|
|
389
|
-
}
|
|
390
|
-
#${ot} li {
|
|
391
|
-
padding: 0 4px;
|
|
392
|
-
margin: 0;
|
|
393
|
-
}
|
|
394
|
-
#${ot} li > :not(ul) {
|
|
395
|
-
display: flex;
|
|
396
|
-
padding: 8px;
|
|
397
|
-
margin: 0;
|
|
398
|
-
align-items: center;
|
|
399
|
-
gap: 8px;
|
|
400
|
-
border-radius: 4px;
|
|
401
|
-
}
|
|
402
|
-
#${ot} button {
|
|
403
|
-
width: 100%;
|
|
404
|
-
border: 0;
|
|
405
|
-
background: transparent;
|
|
406
|
-
color: inherit;
|
|
407
|
-
text-align: left;
|
|
408
|
-
font-family: inherit;
|
|
409
|
-
font-size: inherit;
|
|
410
|
-
}
|
|
411
|
-
#${ot} button:focus-visible {
|
|
412
|
-
outline-color: #029CFD;
|
|
413
|
-
}
|
|
414
|
-
#${ot} button:hover {
|
|
415
|
-
background: rgba(2, 156, 253, 0.07);
|
|
416
|
-
color: #029CFD;
|
|
417
|
-
cursor: pointer;
|
|
418
|
-
}
|
|
419
|
-
#${ot} li code {
|
|
420
|
-
white-space: nowrap;
|
|
421
|
-
overflow: hidden;
|
|
422
|
-
text-overflow: ellipsis;
|
|
423
|
-
line-height: 16px;
|
|
424
|
-
font-size: 11px;
|
|
425
|
-
}
|
|
426
|
-
#${ot} li svg {
|
|
427
|
-
flex-shrink: 0;
|
|
428
|
-
margin: 1px;
|
|
429
|
-
color: #73828C;
|
|
430
|
-
}
|
|
431
|
-
#${ot} li > button:hover svg, #${ot} li > button:focus-visible svg {
|
|
432
|
-
color: #029CFD;
|
|
433
|
-
}
|
|
434
|
-
#${ot} .element-list li svg {
|
|
435
|
-
display: none;
|
|
436
|
-
}
|
|
437
|
-
#${ot} li.selectable svg, #${ot} li.selected svg {
|
|
438
|
-
display: block;
|
|
439
|
-
}
|
|
440
|
-
#${ot} .menu-list {
|
|
441
|
-
border-top: 1px solid rgba(38, 85, 115, 0.15);
|
|
442
|
-
}
|
|
443
|
-
#${ot} .menu-list > li:not(:last-child) {
|
|
444
|
-
padding-bottom: 4px;
|
|
445
|
-
margin-bottom: 4px;
|
|
446
|
-
border-bottom: 1px solid rgba(38, 85, 115, 0.15);
|
|
447
|
-
}
|
|
448
|
-
#${ot} .menu-items, #${ot} .menu-items li {
|
|
449
|
-
padding: 0;
|
|
450
|
-
}
|
|
451
|
-
#${ot} .menu-item {
|
|
452
|
-
display: flex;
|
|
453
|
-
}
|
|
454
|
-
#${ot} .menu-item-content {
|
|
455
|
-
display: flex;
|
|
456
|
-
flex-direction: column;
|
|
457
|
-
flex-grow: 1;
|
|
458
|
-
}
|
|
459
|
-
`]))}let _=d.get(),O=_?[_]:a.get();if(O.length&&(S.style.position=getComputedStyle(O[0].element).position==="fixed"?"fixed":"absolute",S.appendChild(xt("ul",{class:"element-list"},O.map(k=>{var F;let N=O.length>1&&!!((F=k.menu)!=null&&F.some($=>$.some(G=>!G.selectors||G.selectors.some(ie=>k.selectors.includes(ie))))),P=N?{class:"selectable",onClick:()=>d.set(k),onMouseEnter:()=>u.set(k),onMouseLeave:()=>u.set(void 0)}:_?{class:"selected",onClick:()=>d.set(void 0)}:{},q=N||_;return xt("li",P,[xt(q?"button":"div",q?{type:"button"}:{},[_?zl("chevronLeft"):null,xt("code",{},[k.element.outerHTML]),N?zl("chevronRight"):null])])})))),d.get()||a.get().length===1){let k=d.get()||a.get()[0],N=(I=k.menu)==null?void 0:I.filter(P=>P.some(q=>!q.selectors||q.selectors.some(F=>k.selectors.includes(F))));N!=null&&N.length&&S.appendChild(xt("ul",{class:"menu-list"},N.map(P=>xt("li",{},[xt("ul",{class:"menu-items"},P.map(({id:q,title:F,description:$,iconLeft:G,iconRight:ie,clickEvent:pe})=>{let he=pe&&(()=>e.emit(pe,q,AK(k)));return xt("li",{},[xt(he?"button":"div",he?{class:"menu-item",type:"button",onClick:he}:{class:"menu-item"},[G?zl(G):null,xt("div",{class:"menu-item-content"},[xt($?"strong":"span",{},[F]),$&&xt("span",{},[$])]),ie?zl(ie):null])])}))]))))}let M=o.get();M?(Object.assign(S.style,{display:"block",left:`${S.style.position==="fixed"?M.x-window.scrollX:M.x}px`,top:`${S.style.position==="fixed"?M.y-window.scrollY:M.y}px`}),dE(S),requestAnimationFrame(()=>RK(S,M,{topOffset:15,centered:!0}))):(OK(S),Object.assign(S.style,{display:"none"}))};a.subscribe(v),d.subscribe(v);let b=S=>{let _=wK(S);r.set(O=>{var I;let M=_.id?O.filter(k=>k.id!==_.id):O;return(I=_.selectors)!=null&&I.length?[...M,_]:M})},E=S=>{S&&r.set(_=>_.filter(O=>O.id!==S))},w=()=>{r.set([]),n.set(new Map),i.set([]),o.set(void 0),s.set(void 0),a.set([]),l.set([]),u.set(void 0),d.set(void 0)},A,C=(S,_)=>{let O="scrollIntoView-highlight";clearTimeout(A),E(O);let M=t.querySelector(S);if(!M){console.warn(`Cannot scroll into view: ${S} not found`);return}M.scrollIntoView({behavior:"smooth",block:"center",..._});let I=`kf-${Math.random().toString(36).substring(2,15)}`;r.set(k=>[...k,{id:O,priority:1e3,selectors:[S],styles:{outline:"2px solid #1EA7FD",outlineOffset:"-1px",animation:`${I} 3s linear forwards`},keyframes:`@keyframes ${I} {
|
|
460
|
-
0% { outline: 2px solid #1EA7FD; }
|
|
461
|
-
20% { outline: 2px solid #1EA7FD00; }
|
|
462
|
-
40% { outline: 2px solid #1EA7FD; }
|
|
463
|
-
60% { outline: 2px solid #1EA7FD00; }
|
|
464
|
-
80% { outline: 2px solid #1EA7FD; }
|
|
465
|
-
100% { outline: 2px solid #1EA7FD00; }
|
|
466
|
-
}`}]),A=setTimeout(()=>E(O),3500)},R=S=>{requestAnimationFrame(()=>s.set({x:S.pageX,y:S.pageY}))};t.body.addEventListener("mousemove",R),e.on(gK,b),e.on(bK,E),e.on(vK,w),e.on(EK,C),e.on(po,({newPhase:S})=>{S==="loading"&&w()})},ew;(ew=globalThis==null?void 0:globalThis.FEATURES)!=null&&ew.highlight&&(hr!=null&&hr.ready)&&hr.ready().then(CK);var fE=()=>({}),xK="measureEnabled";function YA(){let e=fe.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function NK(){let e=fe.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");$n(t!=null);let{width:r,height:n}=YA();return Uf(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",fe.document.body.appendChild(e),{canvas:e,context:t,width:r,height:n}}function Uf(e,t,{width:r,height:n}){e.style.width=`${r}px`,e.style.height=`${n}px`;let i=fe.window.devicePixelRatio;e.width=Math.floor(r*i),e.height=Math.floor(n*i),t.scale(i,i)}var Nt={};function IK(){Nt.canvas||(Nt=NK())}function XA(){Nt.context&&Nt.context.clearRect(0,0,Nt.width??0,Nt.height??0)}function MK(e){XA(),e(Nt.context)}function qK(){$n(Nt.canvas),$n(Nt.context),Uf(Nt.canvas,Nt.context,{width:0,height:0});let{width:e,height:t}=YA();Uf(Nt.canvas,Nt.context,{width:e,height:t}),Nt.width=e,Nt.height=t}function jK(){var e;Nt.canvas&&(XA(),(e=Nt.canvas.parentNode)==null||e.removeChild(Nt.canvas),Nt={})}var Io={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},Bn=6;function hE(e,{x:t,y:r,w:n,h:i,r:o}){t=t-n/2,r=r-i/2,n<2*o&&(o=n/2),i<2*o&&(o=i/2),e.beginPath(),e.moveTo(t+o,r),e.arcTo(t+n,r,t+n,r+i,o),e.arcTo(t+n,r+i,t,r+i,o),e.arcTo(t,r+i,t,r,o),e.arcTo(t,r,t+n,r,o),e.closePath()}function kK(e,{padding:t,border:r,width:n,height:i,top:o,left:s}){let a=n-r.left-r.right-t.left-t.right,l=i-t.top-t.bottom-r.top-r.bottom,u=s+r.left+t.left,d=o+r.top+t.top;return e==="top"?u+=a/2:e==="right"?(u+=a,d+=l/2):e==="bottom"?(u+=a/2,d+=l):e==="left"?d+=l/2:e==="center"&&(u+=a/2,d+=l/2),{x:u,y:d}}function DK(e,t,{margin:r,border:n,padding:i},o,s){let a=f=>0,l=0,u=0,d=s?1:.5,p=s?o*2:0;return e==="padding"?a=f=>i[f]*d+p:e==="border"?a=f=>i[f]+n[f]*d+p:e==="margin"&&(a=f=>i[f]+n[f]+r[f]*d+p),t==="top"?u=-a("top"):t==="right"?l=a("right"):t==="bottom"?u=a("bottom"):t==="left"&&(l=-a("left")),{offsetX:l,offsetY:u}}function LK(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 FK(e,t,r){return e==="top"?t.y=r.y-r.h-Bn:e==="right"?t.x=r.x+r.w/2+Bn+t.w/2:e==="bottom"?t.y=r.y+r.h+Bn:e==="left"&&(t.x=r.x-r.w/2-Bn-t.w/2),{x:t.x,y:t.y}}function QA(e,t,{x:r,y:n,w:i,h:o},s){return hE(e,{x:r,y:n,w:i,h:o,r:3}),e.fillStyle=`${Io[t]}dd`,e.fill(),e.strokeStyle=Io[t],e.stroke(),e.fillStyle=Io.text,e.fillText(s,r,n),hE(e,{x:r,y:n,w:i,h:o,r:3}),e.fillStyle=`${Io[t]}dd`,e.fill(),e.strokeStyle=Io[t],e.stroke(),e.fillStyle=Io.text,e.fillText(s,r,n),{x:r,y:n,w:i,h:o}}function ZA(e,t){e.font="600 12px monospace",e.textBaseline="middle",e.textAlign="center";let r=e.measureText(t),n=r.actualBoundingBoxAscent+r.actualBoundingBoxDescent,i=r.width+Bn*2,o=n+Bn*2;return{w:i,h:o}}function BK(e,t,{type:r,position:n="center",text:i},o,s=!1){let{x:a,y:l}=kK(n,t),{offsetX:u,offsetY:d}=DK(r,n,t,Bn+1,s);a+=u,l+=d;let{w:p,h:f}=ZA(e,i);if(o&&LK({x:a,y:l,w:p,h:f},o)){let h=FK(n,{x:a,y:l,w:p},o);a=h.x,l=h.y}return QA(e,r,{x:a,y:l,w:p,h:f},i)}function $K(e,{w:t,h:r}){let n=t*.5+Bn,i=r*.5+Bn;return{offsetX:(e.x==="left"?-1:1)*n,offsetY:(e.y==="top"?-1:1)*i}}function UK(e,t,{type:r,text:n}){let{floatingAlignment:i,extremities:o}=t,s=o[i.x],a=o[i.y],{w:l,h:u}=ZA(e,n),{offsetX:d,offsetY:p}=$K(i,{w:l,h:u});return s+=d,a+=p,QA(e,r,{x:s,y:a,w:l,h:u},n)}function Ws(e,t,r,n){let i=[];r.forEach((o,s)=>{let a=n&&o.position==="center"?UK(e,t,o):BK(e,t,o,i[s-1],n);i[s]=a})}function VK(e,t,r,n){let i=r.reduce((o,s)=>{var a;return Object.prototype.hasOwnProperty.call(o,s.position)||(o[s.position]=[]),(a=o[s.position])==null||a.push(s),o},{});i.top&&Ws(e,t,i.top,n),i.right&&Ws(e,t,i.right,n),i.bottom&&Ws(e,t,i.bottom,n),i.left&&Ws(e,t,i.left,n),i.center&&Ws(e,t,i.center,n)}var sd={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},mE=30;function Ir(e){return parseInt(e.replace("px",""),10)}function $o(e){return Number.isInteger(e)?e:e.toFixed(2)}function Ey(e){return e.filter(t=>t.text!==0&&t.text!=="0")}function JK(e){let t={top:fe.window.scrollY,bottom:fe.window.scrollY+fe.window.innerHeight,left:fe.window.scrollX,right:fe.window.scrollX+fe.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 HK(e){let t=fe.getComputedStyle(e),{top:r,left:n,right:i,bottom:o,width:s,height:a}=e.getBoundingClientRect(),{marginTop:l,marginBottom:u,marginLeft:d,marginRight:p,paddingTop:f,paddingBottom:h,paddingLeft:y,paddingRight:g,borderBottomWidth:v,borderTopWidth:b,borderLeftWidth:E,borderRightWidth:w}=t;r=r+fe.window.scrollY,n=n+fe.window.scrollX,o=o+fe.window.scrollY,i=i+fe.window.scrollX;let A={top:Ir(l),bottom:Ir(u),left:Ir(d),right:Ir(p)},C={top:Ir(f),bottom:Ir(h),left:Ir(y),right:Ir(g)},R={top:Ir(b),bottom:Ir(v),left:Ir(E),right:Ir(w)},S={top:r-A.top,bottom:o+A.bottom,left:n-A.left,right:i+A.right};return{margin:A,padding:C,border:R,top:r,left:n,bottom:o,right:i,width:s,height:a,extremities:S,floatingAlignment:JK(S)}}function GK(e,{margin:t,width:r,height:n,top:i,left:o,bottom:s,right:a}){let l=n+t.bottom+t.top;e.fillStyle=sd.margin,e.fillRect(o,i-t.top,r,t.top),e.fillRect(a,i-t.top,t.right,l),e.fillRect(o,s,r,t.bottom),e.fillRect(o-t.left,i-t.top,t.left,l);let u=[{type:"margin",text:$o(t.top),position:"top"},{type:"margin",text:$o(t.right),position:"right"},{type:"margin",text:$o(t.bottom),position:"bottom"},{type:"margin",text:$o(t.left),position:"left"}];return Ey(u)}function WK(e,{padding:t,border:r,width:n,height:i,top:o,left:s,bottom:a,right:l}){let u=n-r.left-r.right,d=i-t.top-t.bottom-r.top-r.bottom;e.fillStyle=sd.padding,e.fillRect(s+r.left,o+r.top,u,t.top),e.fillRect(l-t.right-r.right,o+t.top+r.top,t.right,d),e.fillRect(s+r.left,a-t.bottom-r.bottom,u,t.bottom),e.fillRect(s+r.left,o+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 Ey(p)}function KK(e,{border:t,width:r,height:n,top:i,left:o,bottom:s,right:a}){let l=n-t.top-t.bottom;e.fillStyle=sd.border,e.fillRect(o,i,r,t.top),e.fillRect(o,s-t.bottom,r,t.bottom),e.fillRect(o,i+t.top,t.left,l),e.fillRect(a-t.right,i+t.top,t.right,l);let u=[{type:"border",text:t.top,position:"top"},{type:"border",text:t.right,position:"right"},{type:"border",text:t.bottom,position:"bottom"},{type:"border",text:t.left,position:"left"}];return Ey(u)}function zK(e,{padding:t,border:r,width:n,height:i,top:o,left:s}){let a=n-r.left-r.right-t.left-t.right,l=i-t.top-t.bottom-r.top-r.bottom;return e.fillStyle=sd.content,e.fillRect(s+r.left+t.left,o+r.top+t.top,a,l),[{type:"content",position:"center",text:`${$o(a)} x ${$o(l)}`}]}function YK(e){return t=>{if(e&&t){let r=HK(e),n=GK(t,r),i=WK(t,r),o=KK(t,r),s=zK(t,r),a=r.width<=mE*3||r.height<=mE;VK(t,r,[...s,...i,...o,...n],a)}}}function XK(e){MK(YK(e))}var QK=(e,t)=>{let r=fe.document.elementFromPoint(e,t),n=i=>{if(i&&i.shadowRoot){let o=i.shadowRoot.elementFromPoint(e,t);return i.isEqualNode(o)?i:o.shadowRoot?n(o):o}return i};return n(r)||r},yE,Xl={x:0,y:0};function gE(e,t){yE=QK(e,t),XK(yE)}var ZK=(e,t)=>{let{measureEnabled:r}=t.globals||{};return fo(()=>{if(typeof globalThis.document>"u")return;let n=i=>{window.requestAnimationFrame(()=>{i.stopPropagation(),Xl.x=i.clientX,Xl.y=i.clientY})};return globalThis.document.addEventListener("pointermove",n),()=>{globalThis.document.removeEventListener("pointermove",n)}},[]),fo(()=>{let n=o=>{window.requestAnimationFrame(()=>{o.stopPropagation(),gE(o.clientX,o.clientY)})},i=()=>{window.requestAnimationFrame(()=>{qK()})};return t.viewMode==="story"&&r&&(globalThis.document.addEventListener("pointerover",n),IK(),globalThis.window.addEventListener("resize",i),gE(Xl.x,Xl.y)),()=>{globalThis.window.removeEventListener("resize",i),jK()}},[r,t.viewMode]),e()},tw,ez=(tw=globalThis.FEATURES)!=null&&tw.measure?[ZK]:[],tz={[xK]:!1},bE=()=>({decorators:ez,initialGlobals:tz}),eP="outline",vE=e=>{(Array.isArray(e)?e:[e]).forEach(rz)},rz=e=>{let t=typeof e=="string"?e:e.join(""),r=fe.document.getElementById(t);r&&r.parentElement&&r.parentElement.removeChild(r)},nz=(e,t)=>{let r=fe.document.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=fe.document.createElement("style");n.setAttribute("id",e),n.innerHTML=t,fe.document.head.appendChild(n)}};function iz(e){return De`
|
|
467
|
-
${e} body {
|
|
468
|
-
outline: 1px solid #2980b9 !important;
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
${e} article {
|
|
472
|
-
outline: 1px solid #3498db !important;
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
${e} nav {
|
|
476
|
-
outline: 1px solid #0088c3 !important;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
${e} aside {
|
|
480
|
-
outline: 1px solid #33a0ce !important;
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
${e} section {
|
|
484
|
-
outline: 1px solid #66b8da !important;
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
${e} header {
|
|
488
|
-
outline: 1px solid #99cfe7 !important;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
${e} footer {
|
|
492
|
-
outline: 1px solid #cce7f3 !important;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
${e} h1 {
|
|
496
|
-
outline: 1px solid #162544 !important;
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
${e} h2 {
|
|
500
|
-
outline: 1px solid #314e6e !important;
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
${e} h3 {
|
|
504
|
-
outline: 1px solid #3e5e85 !important;
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
${e} h4 {
|
|
508
|
-
outline: 1px solid #449baf !important;
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
${e} h5 {
|
|
512
|
-
outline: 1px solid #c7d1cb !important;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
${e} h6 {
|
|
516
|
-
outline: 1px solid #4371d0 !important;
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
${e} main {
|
|
520
|
-
outline: 1px solid #2f4f90 !important;
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
${e} address {
|
|
524
|
-
outline: 1px solid #1a2c51 !important;
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
${e} div {
|
|
528
|
-
outline: 1px solid #036cdb !important;
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
${e} p {
|
|
532
|
-
outline: 1px solid #ac050b !important;
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
${e} hr {
|
|
536
|
-
outline: 1px solid #ff063f !important;
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
${e} pre {
|
|
540
|
-
outline: 1px solid #850440 !important;
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
${e} blockquote {
|
|
544
|
-
outline: 1px solid #f1b8e7 !important;
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
${e} ol {
|
|
548
|
-
outline: 1px solid #ff050c !important;
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
${e} ul {
|
|
552
|
-
outline: 1px solid #d90416 !important;
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
${e} li {
|
|
556
|
-
outline: 1px solid #d90416 !important;
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
${e} dl {
|
|
560
|
-
outline: 1px solid #fd3427 !important;
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
${e} dt {
|
|
564
|
-
outline: 1px solid #ff0043 !important;
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
${e} dd {
|
|
568
|
-
outline: 1px solid #e80174 !important;
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
${e} figure {
|
|
572
|
-
outline: 1px solid #ff00bb !important;
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
${e} figcaption {
|
|
576
|
-
outline: 1px solid #bf0032 !important;
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
${e} table {
|
|
580
|
-
outline: 1px solid #00cc99 !important;
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
${e} caption {
|
|
584
|
-
outline: 1px solid #37ffc4 !important;
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
${e} thead {
|
|
588
|
-
outline: 1px solid #98daca !important;
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
${e} tbody {
|
|
592
|
-
outline: 1px solid #64a7a0 !important;
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
${e} tfoot {
|
|
596
|
-
outline: 1px solid #22746b !important;
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
${e} tr {
|
|
600
|
-
outline: 1px solid #86c0b2 !important;
|
|
601
|
-
}
|
|
602
|
-
|
|
603
|
-
${e} th {
|
|
604
|
-
outline: 1px solid #a1e7d6 !important;
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
${e} td {
|
|
608
|
-
outline: 1px solid #3f5a54 !important;
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
${e} col {
|
|
612
|
-
outline: 1px solid #6c9a8f !important;
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
${e} colgroup {
|
|
616
|
-
outline: 1px solid #6c9a9d !important;
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
${e} button {
|
|
620
|
-
outline: 1px solid #da8301 !important;
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
${e} datalist {
|
|
624
|
-
outline: 1px solid #c06000 !important;
|
|
625
|
-
}
|
|
626
|
-
|
|
627
|
-
${e} fieldset {
|
|
628
|
-
outline: 1px solid #d95100 !important;
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
${e} form {
|
|
632
|
-
outline: 1px solid #d23600 !important;
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
${e} input {
|
|
636
|
-
outline: 1px solid #fca600 !important;
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
${e} keygen {
|
|
640
|
-
outline: 1px solid #b31e00 !important;
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
${e} label {
|
|
644
|
-
outline: 1px solid #ee8900 !important;
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
${e} legend {
|
|
648
|
-
outline: 1px solid #de6d00 !important;
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
${e} meter {
|
|
652
|
-
outline: 1px solid #e8630c !important;
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
${e} optgroup {
|
|
656
|
-
outline: 1px solid #b33600 !important;
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
${e} option {
|
|
660
|
-
outline: 1px solid #ff8a00 !important;
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
${e} output {
|
|
664
|
-
outline: 1px solid #ff9619 !important;
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
${e} progress {
|
|
668
|
-
outline: 1px solid #e57c00 !important;
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
${e} select {
|
|
672
|
-
outline: 1px solid #e26e0f !important;
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
${e} textarea {
|
|
676
|
-
outline: 1px solid #cc5400 !important;
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
${e} details {
|
|
680
|
-
outline: 1px solid #33848f !important;
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
${e} summary {
|
|
684
|
-
outline: 1px solid #60a1a6 !important;
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
${e} command {
|
|
688
|
-
outline: 1px solid #438da1 !important;
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
${e} menu {
|
|
692
|
-
outline: 1px solid #449da6 !important;
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
${e} del {
|
|
696
|
-
outline: 1px solid #bf0000 !important;
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
${e} ins {
|
|
700
|
-
outline: 1px solid #400000 !important;
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
${e} img {
|
|
704
|
-
outline: 1px solid #22746b !important;
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
${e} iframe {
|
|
708
|
-
outline: 1px solid #64a7a0 !important;
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
${e} embed {
|
|
712
|
-
outline: 1px solid #98daca !important;
|
|
713
|
-
}
|
|
714
|
-
|
|
715
|
-
${e} object {
|
|
716
|
-
outline: 1px solid #00cc99 !important;
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
${e} param {
|
|
720
|
-
outline: 1px solid #37ffc4 !important;
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
${e} video {
|
|
724
|
-
outline: 1px solid #6ee866 !important;
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
${e} audio {
|
|
728
|
-
outline: 1px solid #027353 !important;
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
${e} source {
|
|
732
|
-
outline: 1px solid #012426 !important;
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
${e} canvas {
|
|
736
|
-
outline: 1px solid #a2f570 !important;
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
${e} track {
|
|
740
|
-
outline: 1px solid #59a600 !important;
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
${e} map {
|
|
744
|
-
outline: 1px solid #7be500 !important;
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
${e} area {
|
|
748
|
-
outline: 1px solid #305900 !important;
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
${e} a {
|
|
752
|
-
outline: 1px solid #ff62ab !important;
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
${e} em {
|
|
756
|
-
outline: 1px solid #800b41 !important;
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
${e} strong {
|
|
760
|
-
outline: 1px solid #ff1583 !important;
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
${e} i {
|
|
764
|
-
outline: 1px solid #803156 !important;
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
${e} b {
|
|
768
|
-
outline: 1px solid #cc1169 !important;
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
${e} u {
|
|
772
|
-
outline: 1px solid #ff0430 !important;
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
${e} s {
|
|
776
|
-
outline: 1px solid #f805e3 !important;
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
${e} small {
|
|
780
|
-
outline: 1px solid #d107b2 !important;
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
${e} abbr {
|
|
784
|
-
outline: 1px solid #4a0263 !important;
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
${e} q {
|
|
788
|
-
outline: 1px solid #240018 !important;
|
|
789
|
-
}
|
|
790
|
-
|
|
791
|
-
${e} cite {
|
|
792
|
-
outline: 1px solid #64003c !important;
|
|
793
|
-
}
|
|
794
|
-
|
|
795
|
-
${e} dfn {
|
|
796
|
-
outline: 1px solid #b4005a !important;
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
${e} sub {
|
|
800
|
-
outline: 1px solid #dba0c8 !important;
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
${e} sup {
|
|
804
|
-
outline: 1px solid #cc0256 !important;
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
${e} time {
|
|
808
|
-
outline: 1px solid #d6606d !important;
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
${e} code {
|
|
812
|
-
outline: 1px solid #e04251 !important;
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
${e} kbd {
|
|
816
|
-
outline: 1px solid #5e001f !important;
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
${e} samp {
|
|
820
|
-
outline: 1px solid #9c0033 !important;
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
${e} var {
|
|
824
|
-
outline: 1px solid #d90047 !important;
|
|
825
|
-
}
|
|
826
|
-
|
|
827
|
-
${e} mark {
|
|
828
|
-
outline: 1px solid #ff0053 !important;
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
${e} bdi {
|
|
832
|
-
outline: 1px solid #bf3668 !important;
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
${e} bdo {
|
|
836
|
-
outline: 1px solid #6f1400 !important;
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
${e} ruby {
|
|
840
|
-
outline: 1px solid #ff7b93 !important;
|
|
841
|
-
}
|
|
842
|
-
|
|
843
|
-
${e} rt {
|
|
844
|
-
outline: 1px solid #ff2f54 !important;
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
${e} rp {
|
|
848
|
-
outline: 1px solid #803e49 !important;
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
${e} span {
|
|
852
|
-
outline: 1px solid #cc2643 !important;
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
${e} br {
|
|
856
|
-
outline: 1px solid #db687d !important;
|
|
857
|
-
}
|
|
858
|
-
|
|
859
|
-
${e} wbr {
|
|
860
|
-
outline: 1px solid #db175b !important;
|
|
861
|
-
}`}var oz=(e,t)=>{let r=t.globals||{},n=[!0,"true"].includes(r[eP]),i=t.viewMode==="docs",o=L_(()=>iz(i?'[data-story-block="true"]':".sb-show-main"),[t]);return fo(()=>{let s=i?`addon-outline-docs-${t.id}`:"addon-outline";return n?nz(s,o):vE(s),()=>{vE(s)}},[n,o,t]),e()},rw,sz=(rw=globalThis.FEATURES)!=null&&rw.outline?[oz]:[],az={[eP]:!1},EE=()=>({decorators:sz,initialGlobals:az}),lz=({parameters:e})=>{var t,r,n;((t=e==null?void 0:e.test)==null?void 0:t.mockReset)===!0?kR():((r=e==null?void 0:e.test)==null?void 0:r.clearMocks)===!0?jR():((n=e==null?void 0:e.test)==null?void 0:n.restoreMocks)!==!1&&DR()},Vf=(e,t=0,r)=>{var n,i;if(t>5||e==null)return e;if(Go(e))return r&&e.mockName(r),e;if(typeof e=="function"&&"isAction"in e&&e.isAction&&!("implicit"in e&&e.implicit)){let o=MR(e);return r&&o.mockName(r),o}if(Array.isArray(e)){t++;for(let o=0;o<e.length;o++)(n=Object.getOwnPropertyDescriptor(e,o))!=null&&n.writable&&(e[o]=Vf(e[o],t));return e}if(typeof e=="object"&&e.constructor===Object){t++;for(let[o,s]of Object.entries(e))(i=Object.getOwnPropertyDescriptor(e,o))!=null&&i.writable&&(e[o]=Vf(s,t,o));return e}return e},uz=({initialArgs:e})=>{Vf(e)},TE=!1,cz=async e=>{var t,r;globalThis.HTMLElement&&e.canvasElement instanceof globalThis.HTMLElement&&(e.canvas=KA(e.canvasElement));try{let n=(r=(t=globalThis.window)==null?void 0:t.navigator)==null?void 0:r.clipboard;if(n&&(e.userEvent=hl({userEvent:zA.setup()},{intercept:!0,getKeys:i=>Object.keys(i).filter(o=>o!=="eventWrapper")}).userEvent,Object.defineProperty(globalThis.window.navigator,"clipboard",{get:()=>n,configurable:!0}),!TE)){let i=HTMLElement.prototype.focus,o=HTMLElement.prototype.focus,s=new Set;Object.defineProperties(HTMLElement.prototype,{focus:{configurable:!0,set:a=>{o=a},get(){return s.has(this)?i:(s.add(this),setTimeout(()=>s.delete(this),0),o)}}}),TE=!0}}catch{}},wE=()=>({loaders:[lz,uz,cz]}),dz="viewport",pz={[dz]:{value:void 0,isRotated:!1}},_E=()=>({initialGlobals:pz});function tP(){return[(bE.default??bE)(),(nE.default??nE)(),(fE.default??fE)(),(EE.default??EE)(),(_E.default??_E)(),(Zv.default??Zv)(),(iE.default??iE)(),(wE.default??wE)(),(oE.default??oE)()]}function fz(e){return e!=null&&typeof e=="object"&&"_tag"in e&&(e==null?void 0:e._tag)==="Meta"}function Zu(e){return e!=null&&typeof e=="object"&&"_tag"in e&&(e==null?void 0:e._tag)==="Story"}function hz(e){return"__children"in e?e.__children:[]}var rP=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),Jf=(e,t)=>{let r=rP(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},mz=(e,t)=>`${Jf(e,"kind")}${t?`--${Jf(t,"name")}`:""}`,yz=(e,t)=>`${e}:${Jf(t,"test")}`,gz=e=>BL(e);function SE(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}function Hf(e,{includeStories:t,excludeStories:r}){return e!=="__esModule"&&(!t||SE(e,t))&&(!r||!SE(e,r))}var bz=(...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 RE(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function OE(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var vz="[object RegExp]",Ez="[object String]",Tz="[object Number]",wz="[object Boolean]",AE="[object Arguments]",_z="[object Symbol]",Sz="[object Date]",Rz="[object Map]",Oz="[object Set]",Az="[object Array]",Pz="[object Function]",Cz="[object ArrayBuffer]",vp="[object Object]",xz="[object Error]",Nz="[object DataView]",Iz="[object Uint8Array]",Mz="[object Uint8ClampedArray]",qz="[object Uint16Array]",jz="[object Uint32Array]",kz="[object BigUint64Array]",Dz="[object Int8Array]",Lz="[object Int16Array]",Fz="[object Int32Array]",Bz="[object BigInt64Array]",$z="[object Float32Array]",Uz="[object Float64Array]";function hn(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 Ga(e,t){let r={},n=Object.keys(e);for(let i=0;i<n.length;i++){let o=n[i],s=e[o];r[o]=t(s,o,e)}return r}function Vz(e,t){let r={},n=Object.keys(e);for(let i=0;i<n.length;i++){let o=n[i],s=e[o];t(s,o)&&(r[o]=s)}return r}var Ep=St(lw(),1);function Jz(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function Hz(e,t,r){return ia(e,t,void 0,void 0,void 0,void 0,r)}function ia(e,t,r,n,i,o,s){let a=s(e,t,r,n,i,o);if(a!==void 0)return a;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 ha(e,t,o,s)}return ha(e,t,o,s)}function ha(e,t,r,n){if(Object.is(e,t))return!0;let i=OE(e),o=OE(t);if(i===AE&&(i=vp),o===AE&&(o=vp),i!==o)return!1;switch(i){case Ez:return e.toString()===t.toString();case Tz:{let l=e.valueOf(),u=t.valueOf();return Jz(l,u)}case wz:case Sz:case _z:return Object.is(e.valueOf(),t.valueOf());case vz:return e.source===t.source&&e.flags===t.flags;case Pz:return e===t}r=r??new Map;let s=r.get(e),a=r.get(t);if(s!=null&&a!=null)return s===t;r.set(e,t),r.set(t,e);try{switch(i){case Rz:{if(e.size!==t.size)return!1;for(let[l,u]of e.entries())if(!t.has(l)||!ia(u,t.get(l),l,e,t,r,n))return!1;return!0}case Oz:{if(e.size!==t.size)return!1;let l=Array.from(e.values()),u=Array.from(t.values());for(let d=0;d<l.length;d++){let p=l[d],f=u.findIndex(h=>ia(p,h,void 0,e,t,r,n));if(f===-1)return!1;u.splice(f,1)}return!0}case Az:case Iz:case Mz:case qz:case jz:case kz:case Dz:case Lz:case Fz:case Bz:case $z:case Uz:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let l=0;l<e.length;l++)if(!ia(e[l],t[l],l,e,t,r,n))return!1;return!0}case Cz:return e.byteLength!==t.byteLength?!1:ha(new Uint8Array(e),new Uint8Array(t),r,n);case Nz:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:ha(new Uint8Array(e),new Uint8Array(t),r,n);case xz:return e.name===t.name&&e.message===t.message;case vp:{if(!(ha(e.constructor,t.constructor,r,n)||hn(e)&&hn(t)))return!1;let l=[...Object.keys(e),...RE(e)],u=[...Object.keys(t),...RE(t)];if(l.length!==u.length)return!1;for(let d=0;d<l.length;d++){let p=l[d],f=e[p];if(!Object.hasOwn(t,p))return!1;let h=t[p];if(!ia(f,h,p,e,t,r,n))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}function Gz(){}function Wz(e,t){return Hz(e,t,Gz)}var Yi=Symbol("incompatible"),Gf=(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)?Yi:e.reduce((n,i,o)=>{let s=Gf(i,{type:r.value});return s!==Yi&&(n[o]=s),n},new Array(e.length));case"object":return typeof e=="string"||typeof e=="number"?e:!r.value||typeof e!="object"?Yi:Object.entries(e).reduce((n,[i,o])=>{let s=Gf(o,{type:r.value[i]});return s===Yi?n:Object.assign(n,{[i]:s})},{});case"other":{let n=typeof e=="string"||typeof e=="number"||typeof e=="boolean";return r.value==="ReactNode"&&n?e:Yi}default:return Yi}},Kz=(e,t)=>Object.entries(e).reduce((r,[n,i])=>{if(!t[n])return r;let o=Gf(i,t[n]);return o===Yi?r:Object.assign(r,{[n]:o})},{}),ec=(e,t)=>Array.isArray(e)&&Array.isArray(t)?t.reduce((r,n,i)=>(r[i]=ec(e[i],t[i]),r),[...e]).filter(r=>r!==void 0):!hn(e)||!hn(t)?t:Object.keys({...e,...t}).reduce((r,n)=>{if(n in t){let i=ec(e[n],t[n]);i!==void 0&&(r[n]=i)}else r[n]=e[n];return r},{}),zz=(e,t)=>Object.entries(t).reduce((r,[n,{options:i}])=>{function o(){return n in e&&(r[n]=e[n]),r}if(!i)return o();if(!Array.isArray(i))return gt.error(De`
|
|
862
|
-
Invalid argType: '${n}.options' should be an array.
|
|
863
|
-
|
|
864
|
-
More info: https://storybook.js.org/docs/api/arg-types?ref=error
|
|
865
|
-
`),o();if(i.some(p=>p&&["object","function"].includes(typeof p)))return gt.error(De`
|
|
866
|
-
Invalid argType: '${n}.options' should only contain primitives. Use a 'mapping' for complex values.
|
|
867
|
-
|
|
868
|
-
More info: https://storybook.js.org/docs/writing-stories/args?ref=error#mapping-to-complex-arg-values
|
|
869
|
-
`),o();let s=Array.isArray(e[n]),a=s&&e[n].findIndex(p=>!i.includes(p)),l=s&&a===-1;if(e[n]===void 0||i.includes(e[n])||l)return o();let u=s?`${n}[${a}]`:n,d=i.map(p=>typeof p=="string"?`'${p}'`:String(p)).join(", ");return gt.warn(`Received illegal value for '${u}'. Supported options: ${d}`),r},{}),ma=Symbol("Deeply equal"),tc=(e,t)=>{if(typeof e!=typeof t)return t;if(Wz(e,t))return ma;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((n,i,o)=>{let s=tc(e[o],i);return s!==ma&&(n[o]=s),n},new Array(t.length));return t.length>=e.length?r:r.concat(new Array(e.length-t.length).fill(void 0))}return hn(e)&&hn(t)?Object.keys({...e,...t}).reduce((r,n)=>{let i=tc(e==null?void 0:e[n],t==null?void 0:t[n]);return i===ma?r:Object.assign(r,{[n]:i})},{}):t},nP="UNTARGETED";function Yz({args:e,argTypes:t}){let r={};return Object.entries(e).forEach(([n,i])=>{let{target:o=nP}=t[n]||{};r[o]=r[o]||{},r[o][n]=i}),r}function Xz(e){return Object.keys(e).forEach(t=>e[t]===void 0&&delete e[t]),e}var Qz=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=tc(this.initialArgsByStoryId[e.id],this.argsByStoryId[e.id]);this.initialArgsByStoryId[e.id]=e.initialArgs,this.argsByStoryId[e.id]=e.initialArgs,t!==ma&&this.updateFromDelta(e,t)}}updateFromDelta(e,t){let r=zz(t,e.argTypes);this.argsByStoryId[e.id]=ec(this.argsByStoryId[e.id],r)}updateFromPersisted(e,t){let r=Kz(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]=Xz({...this.argsByStoryId[e],...t})}},iP=(e={})=>Object.entries(e).reduce((t,[r,{defaultValue:n}])=>(typeof n<"u"&&(t[r]=n),t),{}),Zz=class{constructor({globals:e={},globalTypes:t={}}){this.set({globals:e,globalTypes:t})}set({globals:e={},globalTypes:t={}}){let r=this.initialGlobals&&tc(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(e),...Object.keys(t)]);let n=iP(t);this.initialGlobals={...n,...e},this.globals=this.initialGlobals,r&&r!==ma&&this.updateFromPersisted(r)}filterAllowedGlobals(e){return Object.entries(e).reduce((t,[r,n])=>(this.allowedGlobalNames.has(r)?t[r]=n:at.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])}},e5=St(lw(),1),t5=(0,e5.default)(1)(e=>Object.values(e).reduce((t,r)=>(t[r.importPath]=t[r.importPath]||r,t),{})),r5=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(i=>i.id.startsWith(e));let{name:r,title:n}=e;return t.find(i=>i.name===r&&i.title===n)}storyIdToEntry(e){let t=this.entries[e];if(!t)throw new f_({storyId:e});return t}importPathToEntry(e){return t5(this.entries)[e]}},n5=e=>typeof e=="string"?{name:e}:e,i5=e=>typeof e=="string"?{type:e,disable:!1}:e&&typeof e=="object"&&"type"in e&&!("disable"in e)?{...e,disable:!1}:e,o5=(e,t)=>{let{type:r,control:n,...i}=e,o={name:t,...i};return r&&(o.type=n5(r)),n?o.control=i5(n):n===!1&&(o.control={disable:!0}),o},Ty=e=>Ga(e,o5),nt=e=>Array.isArray(e)?e:e?[e]:[],s5=De`
|
|
870
|
-
CSF .story annotations deprecated; annotate story functions directly:
|
|
871
|
-
- StoryFn.story.name => StoryFn.storyName
|
|
872
|
-
- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
|
|
873
|
-
See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
|
|
874
|
-
`;function ya(e,t,r){let n=t,i=typeof t=="function"?t:null,{story:o}=n;o&&(at.debug("deprecated story",o),Fh(s5));let s=gz(e),a=typeof n!="function"&&n.name||n.storyName||(o==null?void 0:o.name)||s,l=[...nt(n.decorators),...nt(o==null?void 0:o.decorators)],u={...o==null?void 0:o.parameters,...n.parameters},d={...o==null?void 0:o.args,...n.args},p={...o==null?void 0:o.argTypes,...n.argTypes},f=[...nt(n.loaders),...nt(o==null?void 0:o.loaders)],h=[...nt(n.beforeEach),...nt(o==null?void 0:o.beforeEach)],y=[...nt(n.afterEach),...nt(o==null?void 0:o.afterEach)],{render:g,play:v,tags:b=[],globals:E={}}=n,w=u.__id||mz(r.id,s);return{moduleExport:t,id:w,name:a,tags:b,decorators:l,parameters:u,args:d,argTypes:Ty(p),loaders:f,beforeEach:h,afterEach:y,globals:E,...g&&{render:g},...i&&{userStoryFn:i},...v&&{play:v}}}function Wf(e,t=e.title,r){let{id:n,argTypes:i}=e;return{id:rP(n||t),...e,title:t,...i&&{argTypes:Ty(i)},parameters:{fileName:r,...e.parameters}}}var a5=e=>{let{globals:t,globalTypes:r}=e;(t||r)&&at.error("Global args/argTypes can only be set globally",JSON.stringify({globals:t,globalTypes:r}))},l5=e=>{let{options:t}=e;t!=null&&t.storySort&&at.error("The storySort option parameter can only be set globally")},Ql=e=>{e&&(a5(e),l5(e))};function u5(e,t,r){let{default:n,__namedExportsOrder:i,...o}=e,s=Object.values(o).find(u=>Zu(u));if(s){let u=Wf(s.meta.input,r,t);Ql(u.parameters);let d={meta:u,stories:{},moduleExports:e};return Object.keys(o).forEach(p=>{if(Hf(p,u)&&Zu(o[p])){let f=o[p],h=ya(p,f.input,u);Ql(h.parameters),d.stories[h.id]=h,hz(f).forEach(y=>{var b;let g=y.input.name,v=yz(h.id,g);(b=y.input).parameters??(b.parameters={}),y.input.parameters.__id=v,d.stories[v]=ya(g,y.input,u)})}}),d.projectAnnotations=s.meta.preview.composed,d}let a=Wf(n,r,t);Ql(a.parameters);let l={meta:a,stories:{},moduleExports:e};return Object.keys(o).forEach(u=>{if(Hf(u,a)){let d=ya(u,o[u],a);Ql(d.parameters),l.stories[d.id]=d}}),l}function oP(e,t,r){let n=r(e);return i=>t(n,i)}function sP({componentId:e,title:t,kind:r,id:n,name:i,story:o,parameters:s,initialArgs:a,argTypes:l,...u}={}){return u}function aP(e,t){let r={},n=o=>s=>{if(!r.value)throw new Error("Decorated function called without init");return r.value={...r.value,...sP(s)},o(r.value)},i=t.reduce((o,s)=>oP(o,s,n),e);return o=>(r.value=o,i(o))}var bo=(...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((i,o)=>(Object.entries(o).forEach(([s,a])=>{let l=i[s];Array.isArray(a)||typeof l>"u"?i[s]=a:hn(a)&&hn(l)?t[s]=!0:typeof a<"u"&&(i[s]=a)}),i),{});return Object.keys(t).forEach(i=>{let o=r.filter(Boolean).map(s=>s[i]).filter(s=>typeof s<"u");o.every(s=>hn(s))?n[i]=bo(...o):n[i]=o[o.length-1]}),n};function wy(e,t,r){let{moduleExport:n,id:i,name:o}=e||{},s=uP(e,t,r),a=async R=>{let S={};for(let _ of[nt(r.loaders),nt(t.loaders),nt(e.loaders)]){if(R.abortSignal.aborted)return S;let O=await Promise.all(_.map(M=>M(R)));Object.assign(S,...O)}return S},l=async R=>{let S=new Array;for(let _ of[...nt(r.beforeEach),...nt(t.beforeEach),...nt(e.beforeEach)]){if(R.abortSignal.aborted)return S;let O=await _(R);O&&S.push(O)}return S},u=async R=>{let S=[...nt(r.afterEach),...nt(t.afterEach),...nt(e.afterEach)].reverse();for(let _ of S){if(R.abortSignal.aborted)return;await _(R)}},d=R=>R.originalStoryFn(R.args,R),{applyDecorators:p=aP,runStep:f}=r,h=[...nt(e==null?void 0:e.decorators),...nt(t==null?void 0:t.decorators),...nt(r==null?void 0:r.decorators)],y=(e==null?void 0:e.userStoryFn)||(e==null?void 0:e.render)||t.render||r.render,g=k_(p)(d,h),v=R=>g(R),b=(e==null?void 0:e.play)??(t==null?void 0:t.play),E=VL(b);if(!y&&!E)throw new __({id:i});let w=R=>async()=>(await R.renderToCanvas(),R.canvas),A=e.mount??t.mount??r.mount??w,C=r.testingLibraryRender;return{storyGlobals:{},...s,moduleExport:n,id:i,name:o,story:o,originalStoryFn:y,undecoratedStoryFn:d,unboundStoryFn:v,applyLoaders:a,applyBeforeEach:l,applyAfterEach:u,playFunction:b,runStep:f,mount:A,testingLibraryRender:C,renderToCanvas:r.renderToCanvas,usesMount:E}}function lP(e,t,r){return{...uP(void 0,e,t),moduleExport:r}}function uP(e,t,r){var E,w;let n=[dn.DEV,dn.TEST],i=((E=fe.DOCS_OPTIONS)==null?void 0:E.autodocs)===!0?[dn.AUTODOCS]:[],o=(w=e==null?void 0:e.tags)!=null&&w.includes(dn.TEST_FN)?[`!${dn.AUTODOCS}`]:[],s=bz(...n,...i,...r.tags??[],...t.tags??[],...o,...(e==null?void 0:e.tags)??[]),a=bo(r.parameters,t.parameters,e==null?void 0:e.parameters),{argTypesEnhancers:l=[],argsEnhancers:u=[]}=r,d=bo(r.argTypes,t.argTypes,e==null?void 0:e.argTypes);if(e){let A=(e==null?void 0:e.userStoryFn)||(e==null?void 0:e.render)||t.render||r.render;a.__isArgsStory=A&&A.length>0}let p={...r.args,...t.args,...e==null?void 0:e.args},f={...t.globals,...e==null?void 0:e.globals},h={componentId:t.id,title:t.title,kind:t.title,id:(e==null?void 0:e.id)||t.id,name:(e==null?void 0:e.name)||"__meta",story:(e==null?void 0:e.name)||"__meta",component:t.component,subcomponents:t.subcomponents,tags:s,parameters:a,initialArgs:p,argTypes:d,storyGlobals:f};h.argTypes=l.reduce((A,C)=>C({...h,argTypes:A}),h.argTypes);let y={...p};h.initialArgs=[...u].reduce((A,C)=>({...A,...C({...h,initialArgs:A})}),y);let{name:g,story:v,...b}=h;return b}function cP(e){var o;let{args:t}=e,r={...e,allArgs:void 0,argsByTarget:void 0};if((o=fe.FEATURES)!=null&&o.argTypeTargetsV7){let s=Yz(e);r={...e,allArgs:e.args,argsByTarget:s,args:s[nP]||{}}}let n=Object.entries(r.args).reduce((s,[a,l])=>{var d;if(!((d=r.argTypes[a])!=null&&d.mapping))return s[a]=l,s;let u=p=>{let f=r.argTypes[a].mapping;return f&&p in f?f[p]:p};return s[a]=Array.isArray(l)?l.map(u):u(l),s},{}),i=Object.entries(n).reduce((s,[a,l])=>{let u=r.argTypes[a]||{};return UL(u,n,r.globals)&&(s[a]=l),s},{});return{...r,unmappedArgs:t,args:i}}var Kf=(e,t,r,n)=>{let i=typeof e;switch(i){case"boolean":case"string":case"number":case"function":case"symbol":return{name:i}}if(e){if(n.has(e))return n.get(e);if(r.has(e))return at.warn(De`
|
|
875
|
-
We've detected a cycle in arg '${t}'. Args should be JSON-serializable.
|
|
876
|
-
|
|
877
|
-
Consider using the mapping feature or fully custom args:
|
|
878
|
-
- Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
|
|
879
|
-
- Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args
|
|
880
|
-
`),{name:"other",value:"cyclic object"};r.add(e);let o;return Array.isArray(e)?o={name:"array",value:e.length>0?Kf(e[0],t,r,n):{name:"other",value:"unknown"}}:o={name:"object",value:Ga(e,s=>Kf(s,t,r,n))},r.delete(e),n.set(e,o),o}return{name:"object",value:{}}},dP=e=>{let{id:t,argTypes:r={},initialArgs:n={}}=e,i=new Map,o=Ga(n,(a,l)=>({name:l,type:Kf(a,`${t}.${l}`,new Set,i)})),s=Ga(r,(a,l)=>({name:l}));return bo(o,s,r)};dP.secondPass=!0;var PE=(e,t)=>Array.isArray(t)?t.includes(e):e.match(t),pP=(e,t,r)=>!t&&!r?e:e&&Vz(e,(n,i)=>{let o=n.name||i.toString();return!!(!t||PE(o,t))&&(!r||!PE(o,r))}),c5=(e,t,r)=>{let{type:n,options:i}=e;if(n){if(r.color&&r.color.test(t)){let o=n.name;if(o==="string")return{control:{type:"color"}};o!=="enum"&&at.warn(`Addon controls: Control of type color only supports string, received "${o}" 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:o}=n;return{control:{type:(o==null?void 0:o.length)<=5?"radio":"select"},options:o}}case"function":case"symbol":return null;default:return{control:{type:i?"select":"object"}}}}},_y=e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:i=null,matchers:o={}}={}}}=e;if(!r)return t;let s=pP(t,n,i),a=Ga(s,(l,u)=>(l==null?void 0:l.type)&&c5(l,u.toString(),o));return bo(a,s)};_y.secondPass=!0;function rc({argTypes:e,argTypesEnhancers:t,decorators:r,loaders:n,beforeEach:i,afterEach:o,initialGlobals:s,...a}){return{...e&&{argTypes:Ty(e)},decorators:nt(r),loaders:nt(n),beforeEach:nt(i),afterEach:nt(o),argTypesEnhancers:[...t||[],dP,_y],initialGlobals:s,...a}}var d5=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 fP(e){return async(t,r,n)=>{await e.reduceRight((i,o)=>async()=>o(t,i,n),async()=>r(n))()}}function Wa(e,t){return e.map(r=>{var n;return((n=r.default)==null?void 0:n[t])??r[t]}).filter(Boolean)}function ui(e,t,r={}){return Wa(e,t).reduce((n,i)=>{let o=nt(i);return r.reverseFileOrder?[...o,...n]:[...n,...o]},[])}function Zl(e,t){return Object.assign({},...Wa(e,t))}function Ks(e,t){return Wa(e,t).pop()}function gs(e){var i;let t=ui(e,"argTypesEnhancers"),r=Wa(e,"runStep"),n=ui(e,"beforeAll");return{parameters:bo(...Wa(e,"parameters")),decorators:ui(e,"decorators",{reverseFileOrder:!(((i=fe.FEATURES)==null?void 0:i.legacyDecoratorFileOrder)??!1)}),args:Zl(e,"args"),argsEnhancers:ui(e,"argsEnhancers"),argTypes:Zl(e,"argTypes"),argTypesEnhancers:[...t.filter(o=>!o.secondPass),...t.filter(o=>o.secondPass)],initialGlobals:Zl(e,"initialGlobals"),globalTypes:Zl(e,"globalTypes"),loaders:ui(e,"loaders"),beforeAll:d5(n),beforeEach:ui(e,"beforeEach"),afterEach:ui(e,"afterEach"),render:Ks(e,"render"),renderToCanvas:Ks(e,"renderToCanvas"),applyDecorators:Ks(e,"applyDecorators"),runStep:fP(r),tags:ui(e,"tags"),mount:Ks(e,"mount"),testingLibraryRender:Ks(e,"testingLibraryRender")}}function hP(){var e,t,r;try{return!!globalThis.__vitest_browser__||!!((r=(t=(e=globalThis.window)==null?void 0:e.navigator)==null?void 0:t.userAgent)!=null&&r.match(/StorybookTestRunner/))}catch{return!1}}function Sy(e=!0){if(!("document"in globalThis&&"createElement"in globalThis.document))return()=>{};let t=document.createElement("style");t.textContent=`*, *:before, *:after {
|
|
881
|
-
animation: none !important;
|
|
882
|
-
}`,document.head.appendChild(t);let r=document.createElement("style");return r.textContent=`*, *:before, *:after {
|
|
883
|
-
animation-delay: 0s !important;
|
|
884
|
-
animation-direction: ${e?"reverse":"normal"} !important;
|
|
885
|
-
animation-play-state: paused !important;
|
|
886
|
-
transition: none !important;
|
|
887
|
-
}`,document.head.appendChild(r),document.body.clientHeight,document.head.removeChild(t),()=>{var n;(n=r.parentNode)==null||n.removeChild(r)}}async function Ry(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,...mP(globalThis.document)],i=async()=>{if(t||e!=null&&e.aborted)return;let o=n.flatMap(s=>{var a;return((a=s==null?void 0:s.getAnimations)==null?void 0:a.call(s))||[]}).filter(s=>s.playState==="running"&&!p5(s));o.length>0&&(await Promise.allSettled(o.map(async s=>s.finished)),await i())};i().then(r)},100)}),new Promise(r=>setTimeout(()=>{t=!0,r(void 0)},5e3))])}function mP(e){return[e,...e.querySelectorAll("*")].reduce((t,r)=>("shadowRoot"in r&&r.shadowRoot&&t.push(r.shadowRoot,...mP(r.shadowRoot)),t),[])}function p5(e){var t;if(e instanceof CSSAnimation&&e.effect instanceof KeyframeEffect&&e.effect.target){let r=getComputedStyle(e.effect.target,e.effect.pseudoElement),n=(t=r.animationName)==null?void 0:t.split(", ").indexOf(e.animationName);return r.animationIterationCount.split(", ")[n]==="infinite"}return!1}var Oy=class{constructor(){this.reports=[]}async addReport(e){this.reports.push(e)}};function yP(e,t,r){return Zu(e)?{story:e.input,meta:e.meta.input,preview:e.meta.preview.composed}:{story:e,meta:fz(t)?t.input:t,preview:r}}function f5(e){globalThis.defaultProjectAnnotations=e}var h5="ComposedStory",m5="Unnamed Story";function y5(e){return e?gs([e]):{}}function g5(e){let t=Array.isArray(e)?e:[e];return globalThis.globalProjectAnnotations=gs([...tP(),globalThis.defaultProjectAnnotations??{},gs(t.map(y5))]),globalThis.globalProjectAnnotations??{}}var wi=[];function gP(e,t,r,n,i){var b;if(e===void 0)throw new Error("Expected a story but received undefined.");t.title=t.title??h5;let o=Wf(t),s=i||e.storyName||((b=e.story)==null?void 0:b.name)||e.name||m5,a=ya(s,e,o),l=rc(gs([n??globalThis.globalProjectAnnotations??{},r??{}])),u=wy(a,o,l),d={...iP(l.globalTypes),...l.initialGlobals,...u.storyGlobals},p=new Oy,f=()=>{let E=cP({hooks:new Qh,globals:d,args:{...u.initialArgs},viewMode:"story",reporting:p,loaded:{},abortSignal:new AbortController().signal,step:(w,A)=>u.runStep(w,A,E),canvasElement:null,canvas:{},userEvent:{},globalTypes:l.globalTypes,...u,context:null,mount:null});return E.parameters.__isPortableStory=!0,E.context=E,u.renderToCanvas&&(E.renderToCanvas=async()=>{var A;let w=await((A=u.renderToCanvas)==null?void 0:A.call(u,{componentId:u.componentId,title:u.title,id:u.id,name:u.name,tags:u.tags,showMain:()=>{},showError:C=>{throw new Error(`${C.title}
|
|
888
|
-
${C.description}`)},showException:C=>{throw C},forceRemount:!0,storyContext:E,storyFn:()=>u.unboundStoryFn(E),unboundStoryFn:u.unboundStoryFn},E.canvasElement));w&&wi.push(w)}),E.mount=u.mount(E),E},h,y=async E=>{var A;let w=f();return w.canvasElement??(w.canvasElement=(A=globalThis==null?void 0:globalThis.document)==null?void 0:A.body),h&&(w.loaded=h.loaded),Object.assign(w,E),u.playFunction(w)},g=E=>{let w=f();return Object.assign(w,E),T5(u,w)},v=u.playFunction?y:void 0;return Object.assign(function(E){let w=f();return h&&(w.loaded=h.loaded),w.args={...w.initialArgs,...E},u.unboundStoryFn(w)},{id:u.id,storyName:s,load:async()=>{for(let w of[...wi].reverse())await w();wi.length=0;let E=f();E.loaded=await u.applyLoaders(E),wi.push(...(await u.applyBeforeEach(E)).filter(Boolean)),h=E},globals:d,args:u.initialArgs,parameters:u.parameters,argTypes:u.argTypes,play:v,run:g,reporting:p,tags:u.tags})}var b5=(e,t,r,n)=>gP(e,t,r,{},n);function v5(e,t,r=b5){let{default:n,__esModule:i,__namedExportsOrder:o,...s}=e,a=n;return Object.entries(s).reduce((l,[u,d])=>{let{story:p,meta:f}=yP(d);return!a&&f&&(a=f),Hf(u,a)?Object.assign(l,{[u]:r(p,a,t,u)}):l},{})}function E5(e){return e.extend({mount:async({mount:t,page:r},n)=>{await n(async(i,...o)=>{if(!("__pw_type"in i)||"__pw_type"in i&&i.__pw_type!=="jsx")throw new Error(De`
|
|
889
|
-
Portable stories in Playwright CT only work when referencing JSX elements.
|
|
890
|
-
Please use JSX format for your components such as:
|
|
891
|
-
|
|
892
|
-
instead of:
|
|
893
|
-
await mount(MyComponent, { props: { foo: 'bar' } })
|
|
894
|
-
|
|
895
|
-
do:
|
|
896
|
-
await mount(<MyComponent foo="bar"/>)
|
|
897
|
-
|
|
898
|
-
More info: https://storybook.js.org/docs/api/portable-stories/portable-stories-playwright?ref=error
|
|
899
|
-
`);let{props:s,...a}=i;await r.evaluate(async u=>{var p,f,h;let d=await((p=globalThis.__pwUnwrapObject)==null?void 0:p.call(globalThis,u));return(h=(f="__pw_type"in d?d.type:d)==null?void 0:f.load)==null?void 0:h.call(f)},a);let l=await t(i,...o);return await r.evaluate(async u=>{var h,y;let d=await((h=globalThis.__pwUnwrapObject)==null?void 0:h.call(globalThis,u)),p="__pw_type"in d?d.type:d,f=document.querySelector("#root");return(y=p==null?void 0:p.play)==null?void 0:y.call(p,{canvasElement:f})},a),l})}})}async function T5(e,t){var o,s;for(let a of[...wi].reverse())await a();if(wi.length=0,!t.canvasElement){let a=document.createElement("div");(s=(o=globalThis==null?void 0:globalThis.document)==null?void 0:o.body)==null||s.appendChild(a),t.canvasElement=a,wi.push(()=>{var l,u,d,p;(u=(l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body)!=null&&u.contains(a)&&((p=(d=globalThis==null?void 0:globalThis.document)==null?void 0:d.body)==null||p.removeChild(a))})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;wi.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 Xh({playFunction:r.toString()})}),await r(t));let i;hP()?i=Sy():await Ry(t.abortSignal),await e.applyAfterEach(t),await(i==null?void 0:i())}var CE=1e3,w5=1e4,bP=class{constructor(e,t,r){this.importFn=t,this.storyIndex=new r5(e),this.projectAnnotations=rc(gs([...tP(),r]));let{initialGlobals:n,globalTypes:i}=this.projectAnnotations;this.args=new Qz,this.userGlobals=new Zz({globals:n,globalTypes:i}),this.hooks={},this.cleanupCallbacks={},this.processCSFFileWithCache=(0,Ep.default)(CE)(u5),this.prepareMetaWithCache=(0,Ep.default)(CE)(lP),this.prepareStoryWithCache=(0,Ep.default)(w5)(wy)}setProjectAnnotations(e){this.projectAnnotations=rc(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 T_({storyId:e});let n=t.meta,i=this.prepareStoryWithCache(r,n,t.projectAnnotations??this.projectAnnotations);return this.args.setInitial(i),this.hooks[i.id]=this.hooks[i.id]||new Qh,i}componentStoriesFromCSFFile({csfFile:e}){return Object.keys(this.storyIndex.entries).filter(t=>!!e.stories[t]).map(t=>this.storyFromCSFFile({storyId:t,csfFile:e}))}async loadEntry(e){let t=await this.storyIdToEntry(e),r=t.type==="docs"?t.storiesImports:[],[n,...i]=await Promise.all([this.importFn(t.importPath),...r.map(o=>{let s=this.storyIndex.importPathToEntry(o);return this.loadCSFFileByStoryId(s.id)})]);return{entryExports:n,csfFiles:i}}getStoryContext(e,{forceInitialArgs:t=!1}={}){let r=this.userGlobals.get(),{initialGlobals:n}=this.userGlobals,i=new Oy;return cP({...e,args:t?e.initialArgs:this.args.get(e.id),initialGlobals:n,globalTypes:this.projectAnnotations.globalTypes,userGlobals:r,reporting:i,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 m_;let r=Object.entries(this.storyIndex.entries).reduce((n,[i,o])=>{if(o.type==="docs")return n;let s=t[o.importPath],a=this.storyFromCSFFile({storyId:i,csfFile:s});return!e.includeDocsOnly&&a.parameters.docsOnly||(n[i]=Object.entries(a).reduce((l,[u,d])=>u==="story"&&o.subtype==="test"?{...l,story:o.parentName}:u==="moduleExport"||typeof d=="function"?l:Array.isArray(d)?Object.assign(l,{[u]:d.slice().sort()}):Object.assign(l,{[u]:d}),{args:a.initialArgs,globals:{...this.userGlobals.initialGlobals,...this.userGlobals.globals,...a.storyGlobals},storyId:o.parent?o.parent:i})),n},{});return console.log("extract: stories",r),r}};function _5(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}var S5=e=>{if(e.length===0)return e;let t=e[e.length-1],r=t==null?void 0: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 xE(e){return e.flatMap(t=>t.split("/")).filter(Boolean).join("/")}var vP=(e,t,r)=>{let{directory:n,importPathMatcher:i,titlePrefix:o=""}=t||{};typeof e=="number"&>.warn(De`
|
|
900
|
-
CSF Auto-title received a numeric fileName. This typically happens when
|
|
901
|
-
webpack is mis-configured in production mode. To force webpack to produce
|
|
902
|
-
filenames, set optimization.moduleIds = "named" in your webpack config.
|
|
903
|
-
`);let s=_5(String(e));if(i.exec(s)){if(!r){let a=s.replace(n,""),l=xE([o,a]).split("/");return l=S5(l),l.join("/")}return o?xE([o,r]):r}},R5=(e,t,r)=>{for(let n=0;n<t.length;n+=1){let i=vP(e,t[n],r);if(i)return i}return r||void 0},NE=/\s*\/\s*/,O5=(e={})=>(t,r)=>{if(t.title===r.title&&!e.includeNames)return 0;let n=e.method||"configure",i=e.order||[],o=t.title.trim().split(NE),s=r.title.trim().split(NE);e.includeNames&&(o.push(t.name),s.push(r.name));let a=0;for(;o[a]||s[a];){if(!o[a])return-1;if(!s[a])return 1;let l=o[a],u=s[a];if(l!==u){let p=i.indexOf(l),f=i.indexOf(u),h=i.indexOf("*");return p!==-1||f!==-1?(p===-1&&(h!==-1?p=h:p=i.length),f===-1&&(h!==-1?f=h:f=i.length),p-f):n==="configure"?0:l.localeCompare(u,e.locales?e.locales:void 0,{numeric:!0,sensitivity:"accent"})}let d=i.indexOf(l);d===-1&&(d=i.indexOf("*")),i=d!==-1&&Array.isArray(i[d+1])?i[d+1]:[],a+=1}return 0},A5=(e,t,r)=>{if(t){let n;typeof t=="function"?n=t:n=O5(t),e.sort(n)}else e.sort((n,i)=>r.indexOf(n.importPath)-r.indexOf(i.importPath));return e},P5=(e,t,r)=>{try{return A5(e,t,r)}catch(n){throw new Error(De`
|
|
904
|
-
Error sorting stories with sort parameter ${t}:
|
|
905
|
-
|
|
906
|
-
> ${n.message}
|
|
907
|
-
|
|
908
|
-
Are you using a V6-style sort function in V7 mode?
|
|
909
|
-
|
|
910
|
-
More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#v7-style-story-sort
|
|
911
|
-
`)}},ad=new Error("prepareAborted"),{AbortController:IE}=globalThis;function ME(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 zf=class{constructor(e,t,r,n,i,o,s={autoplay:!0,forceInitialArgs:!1},a){this.channel=e,this.store=t,this.renderToScreen=r,this.callbacks=n,this.id=i,this.viewMode=o,this.renderOptions=s,this.type="story",this.notYetRendered=!0,this.rerenderEnqueued=!1,this.disableKeyListeners=!1,this.teardownRender=()=>{},this.torndown=!1,this.abortController=new IE,this.renderId=Date.now(),a&&(this.story=a,this.phase="preparing")}async runPhase(e,t,r){this.phase=t,this.channel.emit(po,{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(po,{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),ad}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}={}){var E,w,A,C,R,S,_,O;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:i,componentId:o,title:s,name:a,tags:l,applyLoaders:u,applyBeforeEach:d,applyAfterEach:p,unboundStoryFn:f,playFunction:h,runStep:y}=n;t&&!e&&(this.cancelRender(),this.abortController=new IE);let g=this.abortController.signal,v=!1,b=n.usesMount;try{let M={...this.storyContext(),viewMode:this.viewMode,abortSignal:g,canvasElement:r,loaded:{},step:(pe,he)=>y(pe,he,M),context:null,canvas:{},userEvent:{},renderToCanvas:async()=>{let pe=await this.renderToScreen(I,r);this.teardownRender=pe||(()=>{}),v=!0},mount:async(...pe)=>{var Q,Z;(Z=(Q=this.callbacks).showStoryDuringRender)==null||Z.call(Q);let he=null;return await this.runPhase(g,"rendering",async()=>{he=await n.mount(M)(...pe)}),b&&await this.runPhase(g,"playing"),he}};M.context=M;let I={componentId:o,title:s,kind:s,id:i,name:a,story:a,tags:l,...this.callbacks,showError:pe=>(this.phase="errored",this.callbacks.showError(pe)),showException:pe=>(this.phase="errored",this.callbacks.showException(pe)),forceRemount:t||this.notYetRendered,storyContext:M,storyFn:()=>f(M),unboundStoryFn:f};if(await this.runPhase(g,"loading",async()=>{M.loaded=await u(M)}),g.aborted)return;let k=await d(M);if(this.store.addCleanupCallbacks(n,...k),this.checkIfAborted(g)||(!v&&!b&&await M.mount(),this.notYetRendered=!1,g.aborted))return;let N=((w=(E=this.story.parameters)==null?void 0:E.test)==null?void 0:w.dangerouslyIgnoreUnhandledErrors)===!0,P=new Set,q=pe=>{pe.error&&P.add(pe.error)},F=pe=>{pe.reason&&P.add(pe.reason)};if(this.renderOptions.autoplay&&t&&h&&this.phase!=="errored"){(A=window==null?void 0:window.addEventListener)==null||A.call(window,"error",q),(C=window==null?void 0:window.addEventListener)==null||C.call(window,"unhandledrejection",F),this.disableKeyListeners=!0;try{if(b?await h(M):(M.mount=async()=>{throw new Xh({playFunction:h.toString()})},await this.runPhase(g,"playing",async()=>h(M))),!v)throw new S_;this.checkIfAborted(g),!N&&P.size>0?await this.runPhase(g,"errored"):await this.runPhase(g,"played")}catch(pe){if((S=(R=this.callbacks).showStoryDuringRender)==null||S.call(R),await this.runPhase(g,"errored",async()=>{this.channel.emit(yw,ME(pe))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw pe;console.error(pe)}if(!N&&P.size>0&&this.channel.emit(gw,Array.from(P).map(ME)),this.disableKeyListeners=!1,(_=window==null?void 0:window.removeEventListener)==null||_.call(window,"unhandledrejection",F),(O=window==null?void 0:window.removeEventListener)==null||O.call(window,"error",q),g.aborted)return}await this.runPhase(g,"completing",async()=>{hP()?this.store.addCleanupCallbacks(n,Sy()):await Ry(g)}),await this.runPhase(g,"completed",async()=>{this.channel.emit(Iu,i)}),this.phase!=="errored"&&await this.runPhase(g,"afterEach",async()=>{await p(M)});let $=!N&&P.size>0,G=M.reporting.reports.some(pe=>pe.status==="failed"),ie=$||G;await this.runPhase(g,"finished",async()=>this.channel.emit(Jp,{storyId:i,status:ie?"error":"success",reporters:M.reporting.reports}))}catch(M){this.phase="errored",this.callbacks.showException(M),await this.runPhase(g,"finished",async()=>this.channel.emit(Jp,{storyId:i,status:"error",reporters:[]}))}this.rerenderEnqueued&&(this.rerenderEnqueued=!1,this.render())}async rerender(){if(this.isPending()&&this.phase!=="playing")this.rerenderEnqueued=!0;else return this.render()}async remount(){return await this.teardown(),this.render({forceRemount:!0})}cancelRender(){this.abortController.abort()}cancelPlayFunction(){this.phase==="playing"&&(this.abortController.abort(),this.runPhase(this.abortController.signal,"aborted"))}async teardown(){var e,t;this.torndown=!0,this.cancelRender(),this.story&&await this.store.cleanupStory(this.story);for(let r=0;r<3;r+=1){if(!this.isPending()){await this.teardownRender();return}await new Promise(n=>setTimeout(n,0))}(t=(e=window==null?void 0:window.location)==null?void 0:e.reload)==null||t.call(e),await new Promise(()=>{})}},{fetch:C5}=fe,x5="./index.json",EP=class{constructor(e,t,r=hr.getChannel(),n=!0){this.importFn=e,this.getProjectAnnotations=t,this.channel=r,this.storyRenders=[],this.storeInitializationPromise=new Promise((i,o)=>{this.resolveStoreInitializationPromise=i,this.rejectStoreInitializationPromise=o}),n&&this.initialize()}get storyStore(){return new Proxy({},{get:(e,t)=>{if(this.storyStoreValue)return Fh("Accessing the Story Store is deprecated and will be removed in 9.0"),this.storyStoreValue[t];throw new w_}})}async initialize(){var e;this.setupListeners();try{let t=await this.getProjectAnnotationsOrRenderError();await this.runBeforeAllHook(t),await this.initializeWithProjectAnnotations(t);let r=(e=globalThis==null?void 0:globalThis.navigator)==null?void 0:e.userAgent;await this.channel.emit(vw,{userAgent:r})}catch(t){this.rejectStoreInitializationPromise(t)}}ready(){return this.storeInitializationPromise}setupListeners(){this.channel.on(Rw,this.onStoryIndexChanged.bind(this)),this.channel.on(Dh,this.onUpdateGlobals.bind(this)),this.channel.on(Lh,this.onUpdateArgs.bind(this)),this.channel.on(Mw,this.onRequestArgTypesInfo.bind(this)),this.channel.on(jh,this.onResetArgs.bind(this)),this.channel.on(qh,this.onForceReRender.bind(this)),this.channel.on(Nu,this.onForceRemount.bind(this)),this.channel.on(xw,this.onStoryHotUpdated.bind(this))}async getProjectAnnotationsOrRenderError(){try{let e=await this.getProjectAnnotations();if(this.renderToCanvas=e.renderToCanvas,!this.renderToCanvas)throw new y_;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){var t,r;try{await((t=this.beforeAllCleanup)==null?void 0:t.call(this)),this.beforeAllCleanup=await((r=e.beforeAll)==null?void 0:r.call(e))}catch(n){throw this.renderPreviewEntryError("Error in beforeAll hook:",n),n}}async getStoryIndexFromServer(){let e=await C5(x5);if(e.status===200)return e.json();throw new g_({text:await e.text()})}initializeWithStoryIndex(e){if(!this.projectAnnotationsBeforeInitialization)throw new Error("Cannot call initializeWithStoryIndex until project annotations resolve");this.storyStoreValue=new bP(e,this.importFn,this.projectAnnotationsBeforeInitialization),delete this.projectAnnotationsBeforeInitialization,this.setInitialGlobals(),this.resolveStoreInitializationPromise()}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStoreValue)throw new Tr({methodName:"emitGlobals"});let e={globals:this.storyStoreValue.userGlobals.get()||{},globalTypes:this.storyStoreValue.projectAnnotations.globalTypes||{}};this.channel.emit(Tw,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 Tr({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 Tr({methodName:"onUpdateGlobals"});if(this.storyStoreValue.userGlobals.update(e),t){let{initialGlobals:r,storyGlobals:n,userGlobals:i,globals:o}=this.storyStoreValue.getStoryContext(t);this.channel.emit(Pa,{initialGlobals:r,userGlobals:i,storyGlobals:n,globals:o})}else{let{initialGlobals:r,globals:n}=this.storyStoreValue.userGlobals;this.channel.emit(Pa,{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 Tr({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(ww,{storyId:e,args:this.storyStoreValue.args.get(e)})}async onRequestArgTypesInfo({id:e,payload:t}){var r;try{await this.storeInitializationPromise;let n=await((r=this.storyStoreValue)==null?void 0:r.loadStory(t));this.channel.emit(Hp,{id:e,success:!0,payload:{argTypes:(n==null?void 0:n.argTypes)||{}},error:null})}catch(n){this.channel.emit(Hp,{id:e,success:!1,error:n==null?void 0:n.message})}}async onResetArgs({storyId:e,argNames:t}){var i;if(!this.storyStoreValue)throw new Tr({methodName:"onResetArgs"});let r=((i=this.storyRenders.find(o=>o.id===e))==null?void 0:i.story)||await this.storyStoreValue.loadStory({storyId:e}),n=(t||[...new Set([...Object.keys(r.initialArgs),...Object.keys(this.storyStoreValue.args.get(e))])]).reduce((o,s)=>(o[s]=r.initialArgs[s],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 Tr({methodName:"renderStoryToElement"});let i=new zf(this.channel,this.storyStoreValue,this.renderToCanvas,r,e.id,"docs",n,e);return i.renderToElement(t),this.storyRenders.push(i),async()=>{await this.teardownRender(i)}}async teardownRender(e,{viewModeChanged:t}={}){var r;this.storyRenders=this.storyRenders.filter(n=>n!==e),await((r=e==null?void 0:e.teardown)==null?void 0:r.call(e,{viewModeChanged:t}))}async loadStory({storyId:e}){if(!this.storyStoreValue)throw new Tr({methodName:"loadStory"});return this.storyStoreValue.loadStory({storyId:e})}getStoryContext(e,{forceInitialArgs:t=!1}={}){if(!this.storyStoreValue)throw new Tr({methodName:"getStoryContext"});return this.storyStoreValue.getStoryContext(e,{forceInitialArgs:t})}async extract(e){if(!this.storyStoreValue)throw new Tr({methodName:"extract"});if(this.previewEntryError)throw this.previewEntryError;return await this.storyStoreValue.cacheAllCSFFiles(),this.storyStoreValue.extract(e)}renderPreviewEntryError(e,t){this.previewEntryError=t,at.error(e),at.error(t),this.channel.emit(hw,t)}},Ay=class{constructor(e,t,r,n){this.channel=e,this.store=t,this.renderStoryToElement=r,this.storyIdByName=i=>{let o=this.nameToStoryId.get(i);if(o)return o;throw new Error(`No story found with that name: ${i}`)},this.componentStories=()=>this.componentStoriesValue,this.componentStoriesFromCSFFile=i=>this.store.componentStoriesFromCSFFile({csfFile:i}),this.storyById=i=>{if(!i){if(!this.primaryStory)throw new Error("No primary story defined for docs entry. Did you forget to use `<Meta>`?");return this.primaryStory}let o=this.storyIdToCSFFile.get(i);if(!o)throw new Error(`Called \`storyById\` for story that was never loaded: ${i}`);return this.store.storyFromCSFFile({storyId:i,csfFile:o})},this.getStoryContext=i=>({...this.store.getStoryContext(i),loaded:{},viewMode:"docs"}),this.loadStory=i=>this.store.loadStory({storyId:i}),this.componentStoriesValue=[],this.storyIdToCSFFile=new Map,this.exportToStory=new Map,this.exportsToCSFFile=new Map,this.nameToStoryId=new Map,this.attachedCSFFiles=new Set,n.forEach((i,o)=>{this.referenceCSFFile(i)})}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(Zu(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(De`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(", ")}.
|
|
912
|
-
- Did you pass a component to the 'of' prop when the block only supports a story or a meta?
|
|
913
|
-
- ... or vice versa?
|
|
914
|
-
- 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}}},qE=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 ad;let{importPath:r,title:n}=this.entry,i=this.store.processCSFFileWithCache(e,r,n),o=Object.keys(i.stories)[0];this.story=this.store.storyFromCSFFile({storyId:o,csfFile:i}),this.csfFiles=[i,...t],this.preparing=!1}isEqual(e){return!!(this.id===e.id&&this.story&&this.story===e.story)}docsContext(e){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");let t=new Ay(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 i=await n.renderer(),{render:o}=i,s=async()=>{try{await o(r,n,e),this.channel.emit(Mh,this.id)}catch(a){this.callbacks.showException(a)}};return this.rerender=async()=>s(),this.teardownRender=async({viewModeChanged:a})=>{!a||!e||i.unmount(e)},s()}async teardown({viewModeChanged:e}={}){var t;(t=this.teardownRender)==null||t.call(this,{viewModeChanged:e}),this.torndown=!0}},jE=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(){var r;this.preparing=!0;let{entryExports:e,csfFiles:t=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw ad;if(this.csfFiles=t,this.exports=e,this.attachedCsfFile=void 0,this.attachedStory=void 0,(r=this.entry.tags)==null?void 0:r.includes(dn.ATTACHED_MDX)){this.attachedCsfFile=t[0];let n=this.attachedCsfFile&&Object.keys(this.attachedCsfFile.stories)[0];this.attachedCsfFile&&n&&(this.attachedStory=this.store.storyFromCSFFile({storyId:n,csfFile:this.attachedCsfFile}))}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");let t=new Ay(this.channel,this.store,e,this.csfFiles);return this.attachedCsfFile&&t.attachCSFFile(this.attachedCsfFile),t}async renderToElement(e,t){var u,d;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??{},i=((d=(u=this.attachedStory)==null?void 0:u.parameters)==null?void 0:d.docs)??n;if(!i)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let o={...i,page:this.exports.default},s=await i.renderer(),{render:a}=s,l=async()=>{try{await a(r,o,e),this.channel.emit(Mh,this.id)}catch(p){this.callbacks.showException(p)}};return this.rerender=async()=>l(),this.teardownRender=async({viewModeChanged:p}={})=>{!p||!e||(s.unmount(e),this.torndown=!0)},l()}async teardown({viewModeChanged:e}={}){var t;(t=this.teardownRender)==null||t.call(this,{viewModeChanged:e}),this.torndown=!0}},N5=globalThis;function I5(e){let t=e.composedPath&&e.composedPath()[0]||e.target;return/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null}function M5({tags:e}){return(e==null?void 0:e.includes(dn.UNATTACHED_MDX))||(e==null?void 0:e.includes(dn.ATTACHED_MDX))}function Tp(e){return e.type==="story"}function q5(e){return e.type==="docs"}function j5(e){return q5(e)&&e.subtype==="csf"}var TP=class extends EP{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(),N5.onkeydown=this.onKeydown.bind(this),this.channel.on(kh,this.onSetCurrentStory.bind(this)),this.channel.on(Nw,this.onUpdateQueryParams.bind(this)),this.channel.on(bw,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStoreValue)throw new Tr({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 Tr({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 v_):this.renderStoryLoadingException(e,new E_({storySpecifier:e.toString()}));return}let{id:n,type:i}=r;this.selectionStore.setSelection({storyId:n,viewMode:i}),this.channel.emit(Aw,this.selectionStore.selection),this.channel.emit(Up,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)&&!I5(e)){let{altKey:t,ctrlKey:r,metaKey:n,shiftKey:i,key:o,code:s,keyCode:a}=e;this.channel.emit(Ew,{event:{altKey:t,ctrlKey:r,metaKey:n,shiftKey:i,key:o,code:s,keyCode:a}})}}async onSetCurrentStory(e){this.selectionStore.setSelection({viewMode:"story",...e}),await this.storeInitializationPromise,this.channel.emit(Up,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(e){this.selectionStore.setQueryParams(e)}async onUpdateGlobals({globals:e}){var r,n;let t=this.currentRender instanceof zf&&this.currentRender.story||void 0;super.onUpdateGlobals({globals:e,currentStory:t}),(this.currentRender instanceof jE||this.currentRender instanceof qE)&&await((n=(r=this.currentRender).rerender)==null?void 0:n.call(r))}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=>{var r;return(r=this.storyStoreValue)==null?void 0:r.loadEntry(t)}))}async renderSelection({persistedArgs:e}={}){var p,f,h,y;let{renderToCanvas:t}=this;if(!this.storyStoreValue||!t)throw new Tr({methodName:"renderSelection"});let{selection:r}=this.selectionStore;if(!r)throw new Error("Cannot call renderSelection as no selection was made");let{storyId:n}=r,i;try{i=await this.storyStoreValue.storyIdToEntry(n)}catch(g){this.currentRender&&await this.teardownRender(this.currentRender),this.renderStoryLoadingException(n,g);return}let o=((p=this.currentSelection)==null?void 0:p.storyId)!==n,s=((f=this.currentRender)==null?void 0:f.type)!==i.type;i.type==="story"?this.view.showPreparingStory({immediate:s}):this.view.showPreparingDocs({immediate:s}),(h=this.currentRender)!=null&&h.isPreparing()&&await this.teardownRender(this.currentRender);let a;i.type==="story"?a=new zf(this.channel,this.storyStoreValue,t,this.mainStoryCallbacks(n),n,"story"):M5(i)?a=new jE(this.channel,this.storyStoreValue,i,this.mainStoryCallbacks(n)):a=new qE(this.channel,this.storyStoreValue,i,this.mainStoryCallbacks(n));let l=this.currentSelection;this.currentSelection=r;let u=this.currentRender;this.currentRender=a;try{await a.prepare()}catch(g){u&&await this.teardownRender(u),g!==ad&&this.renderStoryLoadingException(n,g);return}let d=!o&&u&&!a.isEqual(u);if(e&&Tp(a)&&($n(!!a.story),this.storyStoreValue.args.updateFromPersisted(a.story,e)),u&&!u.torndown&&!o&&!d&&!s){this.currentRender=u,this.channel.emit(Cw,n),this.view.showMain();return}if(u&&await this.teardownRender(u,{viewModeChanged:s}),l&&(o||s)&&this.channel.emit(_w,n),Tp(a)){$n(!!a.story);let{parameters:g,initialArgs:v,argTypes:b,unmappedArgs:E,initialGlobals:w,userGlobals:A,storyGlobals:C,globals:R}=this.storyStoreValue.getStoryContext(a.story);this.channel.emit(Ow,{id:n,parameters:g,initialArgs:v,argTypes:b,args:E}),this.channel.emit(Pa,{userGlobals:A,storyGlobals:C,globals:R,initialGlobals:w})}else{let{parameters:g}=this.storyStoreValue.projectAnnotations,{initialGlobals:v,globals:b}=this.storyStoreValue.userGlobals;if(this.channel.emit(Pa,{globals:b,initialGlobals:v,storyGlobals:{},userGlobals:b}),j5(a)||((y=a.entry.tags)==null?void 0:y.includes(dn.ATTACHED_MDX))){if(!a.csfFiles)throw new b_({storyId:n});({parameters:g}=this.storyStoreValue.preparedMetaFromCSFFile({csfFile:a.csfFiles[0]}))}this.channel.emit(mw,{id:n,parameters:g})}Tp(a)?($n(!!a.story),this.storyRenders.push(a),this.currentRender.renderToElement(this.view.prepareForStory(a.story))):this.currentRender.renderToElement(this.view.prepareForDocs(),this.renderStoryToElement.bind(this))}async teardownRender(e,{viewModeChanged:t=!1}={}){var r;this.storyRenders=this.storyRenders.filter(n=>n!==e),await((r=e==null?void 0:e.teardown)==null?void 0:r.call(e,{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(Vp)}renderStoryLoadingException(e,t){at.error(t),this.view.showErrorDisplay(t),this.channel.emit(Vp,e)}renderException(e,t){var s;let{name:r="Error",message:n=String(t),stack:i}=t,o=(s=this.currentRender)==null?void 0:s.renderId;this.channel.emit(Pw,{name:r,message:n,stack:i}),this.channel.emit(po,{newPhase:"errored",renderId:o,storyId:e}),this.view.showErrorDisplay(t),at.error(`Error rendering story '${e}':`),at.error(t)}renderError(e,{title:t,description:r}){var i;let n=(i=this.currentRender)==null?void 0:i.renderId;this.channel.emit(Sw,{title:t,description:r}),this.channel.emit(po,{newPhase:"errored",renderId:n,storyId:e}),this.view.showErrorDisplay({message:t,stack:r}),at.error(`Error rendering story ${t}: ${r}`)}},Yf=St(xh(),1),k5=St(xh(),1),kE=/^[a-zA-Z0-9 _-]*$/,wP=/^-?[0-9]+(\.[0-9]+)?$/,D5=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,_P=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,Xf=(e="",t)=>e===null||e===""||!kE.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?kE.test(t)||wP.test(t)||D5.test(t)||_P.test(t):Array.isArray(t)?t.every(r=>Xf(e,r)):hn(t)?Object.entries(t).every(([r,n])=>Xf(r,n)):!1,L5={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(_P);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 wP.test(e)?Number(e):e}},DE=e=>{let t=e.split(";").map(r=>r.replace("=","~").replace(":","="));return Object.entries((0,k5.parse)(t.join(";"),L5)).reduce((r,[n,i])=>Xf(n,i)?Object.assign(r,{[n]:i}):(gt.warn(De`
|
|
915
|
-
Omitted potentially unsafe URL args.
|
|
916
|
-
|
|
917
|
-
More info: https://storybook.js.org/docs/writing-stories/args?ref=error#setting-args-through-the-url
|
|
918
|
-
`),r),{})},{history:SP,document:mn}=fe;function F5(e){let t=(e||"").match(/^\/story\/(.+)/);if(!t)throw new Error(`Invalid path '${e}', must start with '/story/'`);return t[1]}var RP=({selection:e,extraParams:t})=>{let r=mn==null?void 0:mn.location.search.slice(1),{path:n,selectedKind:i,selectedStory:o,...s}=(0,Yf.parse)(r);return`?${(0,Yf.stringify)({...s,...t,...e&&{id:e.storyId,viewMode:e.viewMode}})}`},B5=e=>{if(!e)return;let t=RP({selection:e}),{hash:r=""}=mn.location;mn.title=e.storyId,SP.replaceState({},"",`${mn.location.pathname}${t}${r}`)},$5=e=>e!=null&&typeof e=="object"&&Array.isArray(e)===!1,ga=e=>{if(e!==void 0){if(typeof e=="string")return e;if(Array.isArray(e))return ga(e[0]);if($5(e))return ga(Object.values(e).filter(Boolean))}},U5=()=>{if(typeof mn<"u"){let e=mn.location.search.slice(1),t=(0,Yf.parse)(e),r=typeof t.args=="string"?DE(t.args):void 0,n=typeof t.globals=="string"?DE(t.globals):void 0,i=ga(t.viewMode);if(typeof i!="string"||!i)i="story";else if(!i.match(/docs|story/))return null;let o=ga(t.path),s=o?F5(o):ga(t.id);if(s)return{storySpecifier:s,args:r,globals:n,viewMode:i}}return null},OP=class{constructor(){this.selectionSpecifier=U5()}setSelection(e){this.selection=e,B5(this.selection)}setQueryParams(e){let t=RP({extraParams:e}),{hash:r=""}=mn.location;SP.replaceState({},"",`${mn.location.pathname}${t}${r}`)}},V5=St(Eq(),1),J5=St(xh(),1),{document:Gt}=fe,LE=100,AP=(e=>(e.MAIN="MAIN",e.NOPREVIEW="NOPREVIEW",e.PREPARING_STORY="PREPARING_STORY",e.PREPARING_DOCS="PREPARING_DOCS",e.ERROR="ERROR",e))(AP||{}),wp={PREPARING_STORY:"sb-show-preparing-story",PREPARING_DOCS:"sb-show-preparing-docs",MAIN:"sb-show-main",NOPREVIEW:"sb-show-nopreview",ERROR:"sb-show-errordisplay"},_p={centered:"sb-main-centered",fullscreen:"sb-main-fullscreen",padded:"sb-main-padded"},FE=new V5.default({escapeXML:!0}),PP=class{constructor(){if(this.testing=!1,typeof Gt<"u"){let{__SPECIAL_TEST_PARAMETER__:e}=(0,J5.parse)(Gt.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),Gt.documentElement.scrollTop=0,Gt.documentElement.scrollLeft=0,this.storyRoot()}storyRoot(){return Gt.getElementById("storybook-root")}prepareForDocs(){return this.showMain(),this.showDocs(),this.applyLayout("fullscreen"),Gt.documentElement.scrollTop=0,Gt.documentElement.scrollLeft=0,this.docsRoot()}docsRoot(){return Gt.getElementById("storybook-docs")}applyLayout(e="padded"){if(e==="none"){Gt.body.classList.remove(this.currentLayoutClass),this.currentLayoutClass=null;return}this.checkIfLayoutExists(e);let t=_p[e];Gt.body.classList.remove(this.currentLayoutClass),Gt.body.classList.add(t),this.currentLayoutClass=t}checkIfLayoutExists(e){_p[e]||at.warn(De`
|
|
919
|
-
The desired layout: ${e} is not a valid option.
|
|
920
|
-
The possible options are: ${Object.keys(_p).join(", ")}, none.
|
|
921
|
-
`)}showMode(e){clearTimeout(this.preparingTimeout),Object.keys(AP).forEach(t=>{t===e?Gt.body.classList.add(wp[t]):Gt.body.classList.remove(wp[t])})}showErrorDisplay({message:e="",stack:t=""}){let r=e,n=t,i=e.split(`
|
|
922
|
-
`);i.length>1&&([r]=i,n=i.slice(1).join(`
|
|
923
|
-
`).replace(/^\n/,"")),Gt.getElementById("error-message").innerHTML=FE.toHtml(r),Gt.getElementById("error-stack").innerHTML=FE.toHtml(n),this.showMode("ERROR")}showNoPreview(){var e,t;this.testing||(this.showMode("NOPREVIEW"),(e=this.storyRoot())==null||e.setAttribute("hidden","true"),(t=this.docsRoot())==null||t.setAttribute("hidden","true"))}showPreparingStory({immediate:e=!1}={}){clearTimeout(this.preparingTimeout),e?this.showMode("PREPARING_STORY"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_STORY"),LE)}showPreparingDocs({immediate:e=!1}={}){clearTimeout(this.preparingTimeout),e?this.showMode("PREPARING_DOCS"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_DOCS"),LE)}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(){Gt.body.classList.add(wp.MAIN)}},H5=class extends TP{constructor(t,r){super(t,r,new OP,new PP),this.importFn=t,this.getProjectAnnotations=r,fe.__STORYBOOK_PREVIEW__=this}},{document:io}=fe,G5=["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"],W5="script",BE="scripts-root";function Qf(){let e=io.createEvent("Event");e.initEvent("DOMContentLoaded",!0,!0),io.dispatchEvent(e)}function K5(e,t,r){let n=io.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):io.head.appendChild(n),e.parentNode.removeChild(e),e.src||t()}function CP(e,t,r=0){e[r](()=>{r++,r===e.length?t():CP(e,t,r)})}function z5(e){let t=io.getElementById(BE);t?t.innerHTML="":(t=io.createElement("div"),t.id=BE,io.body.appendChild(t));let r=Array.from(e.querySelectorAll(W5));if(r.length){let n=[];r.forEach(i=>{let o=i.getAttribute("type");(!o||G5.includes(o))&&n.push(s=>K5(i,s,t))}),n.length&&CP(n,Qf,void 0)}else Qf()}var Sp;(function(e){e.start="/**",e.nostart="/***",e.delim="*",e.end="*/"})(Sp=Sp||(Sp={}));var Y5=St(Tq(),1),Ro=(0,Y5.stringifyRules)(),X5=Ro.JsdocTypeObject;Ro.JsdocTypeAny=()=>"any";Ro.JsdocTypeObject=(e,t)=>`(${X5(e,t)})`;Ro.JsdocTypeOptional=(e,t)=>t(e.element);Ro.JsdocTypeNullable=(e,t)=>t(e.element);Ro.JsdocTypeNotNullable=(e,t)=>t(e.element);Ro.JsdocTypeUnion=(e,t)=>e.elements.map(t).join("|");var Q5="storybook/docs",Z5=`${Q5}/snippet-rendered`;async function e8(e,t){var a,l,u;let r=(u=(l=(a=t.parameters)==null?void 0:a.docs)==null?void 0:l.source)==null?void 0:u.transform,{id:n,unmappedArgs:i}=t,o=r&&e?r==null?void 0:r(e,t):e,s=o?await o:void 0;hr.getChannel().emit(Z5,{id:n,source:s,args:i})}var Ka={depth:10,clearOnStoryChange:!0,limit:50},t8=(e={})=>{Object.assign(Ka,e)},xP=(e,t)=>{let r=Object.getPrototypeOf(e);return!r||t(r)?r:xP(r,t)},r8=e=>!!(typeof e=="object"&&e&&xP(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),n8=e=>{if(r8(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let r=Object.getOwnPropertyDescriptor(t,"view"),n=r==null?void 0:r.value;return typeof n=="object"&&(n==null?void 0:n.constructor.name)==="Window"&&Object.defineProperty(t,"view",{...r,value:Object.create(n.constructor.prototype)}),t}return e};function Rl(e,t={}){let r={...Ka,...t},n=function(...i){var p,f;if(t.implicit){let h=(p="__STORYBOOK_PREVIEW__"in fe?fe.__STORYBOOK_PREVIEW__:void 0)==null?void 0:p.storyRenders.find(y=>y.phase==="playing"||y.phase==="rendering");if(h){let y=!((f=globalThis==null?void 0:globalThis.FEATURES)!=null&&f.disallowImplicitActionsInRenderV8),g=new h_({phase:h.phase,name:e,deprecated:y});if(y)console.warn(g);else throw g}}let o=hr.getChannel(),s=Date.now().toString(36)+Math.random().toString(36).substring(2),a=5,l=i.map(n8),u=i.length>1?l:l[0],d={id:s,count:0,data:{name:e,args:u},options:{...r,maxDepth:a+(r.depth||3)}};o.emit(q_,d)};return n.isAction=!0,n.implicit=t.implicit,n}var i8=(...e)=>{let t=Ka,r=e;r.length===1&&Array.isArray(r[0])&&([r]=r),r.length!==1&&typeof r[r.length-1]!="string"&&(t={...Ka,...r.pop()});let n=r[0];(r.length!==1||typeof n=="string")&&(n={},r.forEach(o=>{n[o]=o}));let i={};return Object.keys(n).forEach(o=>{i[o]=Rl(n[o],t)}),i},o8={"@storybook/global":jw,"storybook/test":H_,"storybook/actions":M_,"storybook/preview-api":Wp,"storybook/internal/channels":Dw,"storybook/internal/client-logger":Lw,"storybook/internal/core-events":Nh,"storybook/internal/types":R_,"storybook/internal/preview-errors":c_,"storybook/internal/preview-api":Wp};async function s8(){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}a8(t,r)}var a8=async(e,t)=>{var a,l;let r={entries:{}};for(let u of Object.values(e.entries)){let d=u.title.split("/"),p=r;for(let f of d)p.entries||(p.entries={}),p.entries[f]?t===u.id&&(p.entries[f].isActive=!0):p.entries[f]={title:f,isActive:t===u.id,entries:{}},p=p.entries[f];p.entries||(p.entries={}),p.entries[u.name]={id:u.id,name:u.name,href:`?id=${u.id}&viewMode=${u.type}&navigator=true`,isActive:t===u.id}}let n=u=>{if("entries"in u&&"title"in u){let p=u;return`
|
|
924
|
-
<li class="sb-navigator-branch">
|
|
925
|
-
<details${p.isActive?" open":""}>
|
|
926
|
-
<summary class="sb-navigator-title">
|
|
927
|
-
${p.title}
|
|
928
|
-
</summary>
|
|
929
|
-
<ul class="sb-navigator-entries" aria-label="${p.title}">
|
|
930
|
-
${Object.values(p.entries).map(n).join("")}
|
|
931
|
-
</ul>
|
|
932
|
-
</details>
|
|
933
|
-
</li>
|
|
934
|
-
`}let d=u;return`
|
|
935
|
-
<li class="sb-navigator-story-item">
|
|
936
|
-
<a href="${d.href}"
|
|
937
|
-
class="sb-navigator-story-link${d.isActive?" active":""}"
|
|
938
|
-
aria-current="${d.isActive?"location":"false"}">${d.name}</a>
|
|
939
|
-
</li>
|
|
940
|
-
`},i=Object.values(r.entries).map(n).join(""),o=document.createElement("nav");o.id="sb-navigator-container",o.setAttribute("role","navigation"),o.setAttribute("aria-label","Story navigation"),o.innerHTML=`
|
|
941
|
-
<ul class="sb-navigator-list">${i}</ul>
|
|
942
|
-
`,document.body.insertBefore(o,document.body.firstChild);let s=document.createElement("style");s.id="sb-navigator-style",s.textContent=`
|
|
943
|
-
body {
|
|
944
|
-
display: grid !important;
|
|
945
|
-
grid-template-columns: 300px 1fr;
|
|
946
|
-
font-family: 'Nunito', sans-serif;
|
|
947
|
-
height: 100vh;
|
|
948
|
-
margin: 0;
|
|
949
|
-
|
|
950
|
-
--text-color: rgb(46, 52, 56);
|
|
951
|
-
--bg-color: rgb(246, 249, 252);
|
|
952
|
-
|
|
953
|
-
@media (prefers-color-scheme: dark) {
|
|
954
|
-
--text-color: rgb(201, 205, 207);
|
|
955
|
-
--bg-color: rgb(34, 36, 37);
|
|
956
|
-
}
|
|
957
|
-
}
|
|
958
|
-
#storybook-root, #storybook-docs {
|
|
959
|
-
overflow-y: auto;
|
|
960
|
-
max-height: 100vh;
|
|
961
|
-
max-width: 100%;
|
|
962
|
-
}
|
|
963
|
-
#sb-navigator-container, #sb-navigator-container * {
|
|
964
|
-
box-sizing: border-box;
|
|
965
|
-
}
|
|
966
|
-
#sb-navigator-container {
|
|
967
|
-
height: 100vh;
|
|
968
|
-
overflow-y: auto;
|
|
969
|
-
border-right: 1px solid #eee;
|
|
970
|
-
padding: 1rem;
|
|
971
|
-
font-size: 14px;
|
|
972
|
-
color: var(--text-color);
|
|
973
|
-
background-color: var(--bg-color);
|
|
974
|
-
align-self: start;
|
|
975
|
-
z-index: 1000;
|
|
976
|
-
}
|
|
977
|
-
.sb-main-padded #sb-navigator-container {
|
|
978
|
-
margin: -1rem 1rem -1rem -1rem;
|
|
979
|
-
}
|
|
980
|
-
.sb-navigator-list {
|
|
981
|
-
list-style-type: none;
|
|
982
|
-
padding: 0;
|
|
983
|
-
margin: 0;
|
|
984
|
-
}
|
|
985
|
-
.sb-navigator-branch {
|
|
986
|
-
list-style-type: none;
|
|
987
|
-
}
|
|
988
|
-
.sb-navigator-item {
|
|
989
|
-
margin-bottom: 15px;
|
|
990
|
-
}
|
|
991
|
-
.sb-navigator-title {
|
|
992
|
-
color: var(--text-color);
|
|
993
|
-
text-decoration: none;
|
|
994
|
-
padding-block: 5px;
|
|
995
|
-
cursor: pointer;
|
|
996
|
-
}
|
|
997
|
-
.sb-navigator-entries {
|
|
998
|
-
padding-left: 15px;
|
|
999
|
-
}
|
|
1000
|
-
.sb-navigator-story-item {
|
|
1001
|
-
margin-bottom: 8px;
|
|
1002
|
-
margin-left: 8px;
|
|
1003
|
-
}
|
|
1004
|
-
.sb-navigator-story-link {
|
|
1005
|
-
color: var(--text-color);
|
|
1006
|
-
}
|
|
1007
|
-
.sb-navigator-story-link.active {
|
|
1008
|
-
font-weight: bold;
|
|
1009
|
-
color: hsl(212 100 46);
|
|
1010
|
-
}
|
|
1011
|
-
`,document.head.appendChild(s),(l=(a=o.querySelector(".sb-navigator-story-link.active"))==null?void 0:a.closest("details"))==null||l.scrollIntoView({block:"center"})},l8=St(wq(),1),Rp;function u8(){var e;return Rp||(Rp=new l8.default((e=fe.navigator)==null?void 0:e.userAgent).getBrowserInfo()),Rp}function c8(e){return e.browserInfo=u8(),e}function d8(e){let t=e.error||e;t.fromStorybook&&fe.sendTelemetryError(t)}function p8({reason:e}){e.fromStorybook&&fe.sendTelemetryError(e)}function NP(){ej.forEach(e=>{fe[kw[e]]=o8[e]}),fe.sendTelemetryError=e=>{fe.__STORYBOOK_ADDONS_CHANNEL__.emit(Iw,c8(e))},document.addEventListener("DOMContentLoaded",()=>{fe.__STORYBOOK_ADDONS_CHANNEL__.on(qw,e=>{e?document.body.setAttribute("inert","true"):document.body.removeAttribute("inert")})}),fe.addEventListener("error",d8),fe.addEventListener("unhandledrejection",p8),s8()}NP();const{createBrowserChannel:f8}=__STORYBOOK_MODULE_CHANNELS__,{addons:h8}=__STORYBOOK_MODULE_PREVIEW_API__,Py=f8({page:"preview"});h8.setChannel(Py);window.__STORYBOOK_ADDONS_CHANNEL__=Py;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=Py);const m8={"./src/foundation/Typography/Typography.stories.ts":()=>Pn(()=>import("./Typography.stories-CSj6NWZS.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),"./src/foundation/Colors/Colors.stories.ts":()=>Pn(()=>import("./Colors.stories-oSXYJENR.js"),__vite__mapDeps([5,1,2,3,6]),import.meta.url),"./src/foundation/Spacing/Spacing.stories.ts":()=>Pn(()=>import("./Spacing.stories-DhCjLNK2.js"),__vite__mapDeps([7,1,2,3,8]),import.meta.url),"./src/foundation/Grid/Grid.stories.ts":()=>Pn(()=>import("./Grid.stories-Bs3kySs1.js"),__vite__mapDeps([9,1,2,3,10]),import.meta.url),"./src/components/PzText/PzText.stories.ts":()=>Pn(()=>import("./PzText.stories-BFfwzgRO.js"),__vite__mapDeps([11,1,2,3,4]),import.meta.url),"./src/components/PzIcon/PzIcon.stories.ts":()=>Pn(()=>import("./PzIcon.stories-DnSfvny_.js"),__vite__mapDeps([12,1,2,3,13]),import.meta.url),"./src/components/PzImage/PzImage.stories.ts":()=>Pn(()=>import("./PzImage.stories-3xf5vq8I.js"),__vite__mapDeps([14,1,2,3,15]),import.meta.url),"./src/components/PzGrid/PzGrid.stories.ts":()=>Pn(()=>import("./PzGrid.stories-DHYDe1eo.js"),__vite__mapDeps([16,1,2,3,17]),import.meta.url)};async function y8(e){return await m8[e]()}var g8=Object.defineProperty,IP=(e,t)=>{for(var r in t)g8(e,r,{get:t[r],enumerable:!0})};function oo(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 b8(e){return e==null||typeof e!="object"&&typeof e!="function"}function v8(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function qee(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function jee(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var kee="[object RegExp]",Dee="[object String]",Lee="[object Number]",Fee="[object Boolean]",Bee="[object Arguments]",$ee="[object Symbol]",Uee="[object Date]",Vee="[object Map]",Jee="[object Set]",Hee="[object Array]",Gee="[object Function]",Wee="[object ArrayBuffer]",Kee="[object Object]",zee="[object Error]",Yee="[object DataView]",Xee="[object Uint8Array]",Qee="[object Uint8ClampedArray]",Zee="[object Uint16Array]",ete="[object Uint32Array]",tte="[object BigUint64Array]",rte="[object Int8Array]",nte="[object Int16Array]",ite="[object Int32Array]",ote="[object BigInt64Array]",ste="[object Float32Array]",ate="[object Float64Array]";function E8(e,t){let r={},n=Object.keys(e);for(let i=0;i<n.length;i++){let o=n[i],s=e[o];r[o]=t(s,o,e)}return r}function T8(e){return e==="__proto__"}function Mn(e,t,r){let n=Object.keys(t);for(let i=0;i<n.length;i++){let o=n[i];if(T8(o))continue;let s=t[o],a=e[o],l=r(a,s,o,e,t);l!==void 0?e[o]=l:Array.isArray(s)?Array.isArray(a)?e[o]=Mn(a,s,r):e[o]=Mn([],s,r):oo(s)?oo(a)?e[o]=Mn(a,s,r):e[o]=Mn({},s,r):(a===void 0||s!==void 0)&&(e[o]=s)}return e}function lte(e,t){let r={};for(let n=0;n<t.length;n++){let i=t[n];Object.hasOwn(e,i)&&(r[i]=e[i])}return r}function Op(e){if(b8(e))return e;if(Array.isArray(e)||v8(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e),r=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new r(e);if(e instanceof RegExp){let n=new r(e);return n.lastIndex=e.lastIndex,n}if(e instanceof DataView)return new r(e.buffer.slice(0));if(e instanceof Error){let n=new r(e.message);return n.stack=e.stack,n.name=e.name,n.cause=e.cause,n}if(typeof File<"u"&&e instanceof File)return new r([e],e.name,{type:e.type,lastModified:e.lastModified});if(typeof e=="object"){let n=Object.create(t);return Object.assign(n,e)}return e}function ute(e,t){let r={...e};for(let n=0;n<t.length;n++){let i=t[n];delete r[i]}return r}function cte(e,t){return Mn(Op(e),t,function r(n,i){if(Array.isArray(i))return Array.isArray(n)?Mn(Op(n),i,r):Mn([],i,r);if(oo(i))return oo(n)?Mn(Op(n),i,r):Mn({},i,r)})}var w8=Object.create,Cy=Object.defineProperty,_8=Object.getOwnPropertyDescriptor,MP=Object.getOwnPropertyNames,S8=Object.getPrototypeOf,R8=Object.prototype.hasOwnProperty,dte=(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')}),O8=(e,t)=>function(){return t||(0,e[MP(e)[0]])((t={exports:{}}).exports,t),t.exports},pte=(e,t)=>{for(var r in t)Cy(e,r,{get:t[r],enumerable:!0})},A8=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of MP(t))!R8.call(e,i)&&i!==r&&Cy(e,i,{get:()=>t[i],enumerable:!(n=_8(t,i))||n.enumerable});return e},P8=(e,t,r)=>(r=e!=null?w8(S8(e)):{},A8(t||!e||!e.__esModule?Cy(r,"default",{value:e,enumerable:!0}):r,e)),C8=O8({"../../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(c){return c.text!==void 0&&c.text!==""?`'${c.type}' with value '${c.text}'`:`'${c.type}'`}class i extends Error{constructor(m){super(`No parslet found for token: ${n(m)}`),this.token=m,Object.setPrototypeOf(this,i.prototype)}getToken(){return this.token}}class o extends Error{constructor(m){super(`The parsing ended early. The next token was: ${n(m)}`),this.token=m,Object.setPrototypeOf(this,o.prototype)}getToken(){return this.token}}class s extends Error{constructor(m,T){let x=`Unexpected type: '${m.type}'.`;T!==void 0&&(x+=` Message: ${T}`),super(x),Object.setPrototypeOf(this,s.prototype)}}function a(c){return m=>m.startsWith(c)?{type:c,text:c}:null}function l(c){let m=0,T,x=c[0],J=!1;if(x!=="'"&&x!=='"')return null;for(;m<c.length;){if(m++,T=c[m],!J&&T===x){m++;break}J=!J&&T==="\\"}if(T!==x)throw new Error("Unterminated String");return c.slice(0,m)}let u=new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u"),d=new RegExp("[$\\-\\p{ID_Continue}\\u200C\\u200D]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u");function p(c){let m=c[0];if(!u.test(m))return null;let T=1;do{if(m=c[T],!d.test(m))break;T++}while(T<c.length);return c.slice(0,T)}let f=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function h(c){var m,T;return(T=(m=f.exec(c))===null||m===void 0?void 0:m[0])!==null&&T!==void 0?T:null}let y=c=>{let m=p(c);return m==null?null:{type:"Identifier",text:m}};function g(c){return m=>{if(!m.startsWith(c))return null;let T=m[c.length];return T!==void 0&&d.test(T)?null:{type:c,text:c}}}let v=c=>{let m=l(c);return m==null?null:{type:"StringValue",text:m}},b=c=>c.length>0?null:{type:"EOF",text:""},E=c=>{let m=h(c);return m===null?null:{type:"Number",text:m}},w=[b,a("=>"),a("("),a(")"),a("{"),a("}"),a("["),a("]"),a("|"),a("&"),a("<"),a(">"),a(","),a(";"),a("*"),a("?"),a("!"),a("="),a(":"),a("..."),a("."),a("#"),a("~"),a("/"),a("@"),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"),E,y,v],A=/^\s*\n\s*/;class C{static create(m){let T=this.read(m);m=T.text;let x=this.read(m);return m=x.text,new C(m,void 0,T.token,x.token)}constructor(m,T,x,J){this.text="",this.text=m,this.previous=T,this.current=x,this.next=J}static read(m,T=!1){T=T||A.test(m),m=m.trim();for(let x of w){let J=x(m);if(J!==null){let X=Object.assign(Object.assign({},J),{startOfLine:T});return m=m.slice(X.text.length),{text:m,token:X}}}throw new Error("Unexpected Token "+m)}advance(){let m=C.read(this.text);return new C(m.text,this.current,this.next,m.token)}}function R(c){if(c===void 0)throw new Error("Unexpected undefined");if(c.type==="JsdocTypeKeyValue"||c.type==="JsdocTypeParameterList"||c.type==="JsdocTypeProperty"||c.type==="JsdocTypeReadonlyProperty"||c.type==="JsdocTypeObjectField"||c.type==="JsdocTypeJsdocObjectField"||c.type==="JsdocTypeIndexSignature"||c.type==="JsdocTypeMappedType"||c.type==="JsdocTypeTypeParameter")throw new s(c);return c}function S(c){return c.type==="JsdocTypeKeyValue"?O(c):R(c)}function _(c){return c.type==="JsdocTypeName"?c:O(c)}function O(c){if(c.type!=="JsdocTypeKeyValue")throw new s(c);return c}function M(c){var m;if(c.type==="JsdocTypeVariadic"){if(((m=c.element)===null||m===void 0?void 0:m.type)==="JsdocTypeName")return c;throw new s(c)}if(c.type!=="JsdocTypeNumber"&&c.type!=="JsdocTypeName")throw new s(c);return c}function I(c){if(c.type==="JsdocTypeTuple"||c.type==="JsdocTypeGeneric"&&c.meta.brackets==="square")return c;throw new s(c)}function k(c){return c.type==="JsdocTypeIndexSignature"||c.type==="JsdocTypeMappedType"}var N;(function(c){c[c.ALL=0]="ALL",c[c.PARAMETER_LIST=1]="PARAMETER_LIST",c[c.OBJECT=2]="OBJECT",c[c.KEY_VALUE=3]="KEY_VALUE",c[c.INDEX_BRACKETS=4]="INDEX_BRACKETS",c[c.UNION=5]="UNION",c[c.INTERSECTION=6]="INTERSECTION",c[c.PREFIX=7]="PREFIX",c[c.INFIX=8]="INFIX",c[c.TUPLE=9]="TUPLE",c[c.SYMBOL=10]="SYMBOL",c[c.OPTIONAL=11]="OPTIONAL",c[c.NULLABLE=12]="NULLABLE",c[c.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",c[c.FUNCTION=14]="FUNCTION",c[c.ARROW=15]="ARROW",c[c.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",c[c.GENERIC=17]="GENERIC",c[c.NAME_PATH=18]="NAME_PATH",c[c.PARENTHESIS=19]="PARENTHESIS",c[c.SPECIAL_TYPES=20]="SPECIAL_TYPES"})(N||(N={}));class P{constructor(m,T,x){this.grammar=m,typeof T=="string"?this._lexer=C.create(T):this._lexer=T,this.baseParser=x}get lexer(){return this._lexer}parse(){let m=this.parseType(N.ALL);if(this.lexer.current.type!=="EOF")throw new o(this.lexer.current);return m}parseType(m){return R(this.parseIntermediateType(m))}parseIntermediateType(m){let T=this.tryParslets(null,m);if(T===null)throw new i(this.lexer.current);return this.parseInfixIntermediateType(T,m)}parseInfixIntermediateType(m,T){let x=this.tryParslets(m,T);for(;x!==null;)m=x,x=this.tryParslets(m,T);return m}tryParslets(m,T){for(let x of this.grammar){let J=x(this,T,m);if(J!==null)return J}return null}consume(m){return Array.isArray(m)||(m=[m]),m.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(m){this._lexer=m.lexer}}function q(c){return c==="}"||c==="EOF"||c==="|"||c===","||c===")"||c===">"}let F=(c,m,T)=>{let x=c.lexer.current.type,J=c.lexer.next.type;return T==null&&x==="?"&&!q(J)||T!=null&&x==="?"?(c.consume("?"),T==null?{type:"JsdocTypeNullable",element:c.parseType(N.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:R(T),meta:{position:"suffix"}}):null};function $(c){let m=(T,x,J)=>{let X=T.lexer.current.type,se=T.lexer.next.type;if(J===null){if("parsePrefix"in c&&c.accept(X,se))return c.parsePrefix(T)}else if("parseInfix"in c&&c.precedence>x&&c.accept(X,se))return c.parseInfix(T,J);return null};return Object.defineProperty(m,"name",{value:c.name}),m}let G=$({name:"optionalParslet",accept:c=>c==="=",precedence:N.OPTIONAL,parsePrefix:c=>(c.consume("="),{type:"JsdocTypeOptional",element:c.parseType(N.OPTIONAL),meta:{position:"prefix"}}),parseInfix:(c,m)=>(c.consume("="),{type:"JsdocTypeOptional",element:R(m),meta:{position:"suffix"}})}),ie=$({name:"numberParslet",accept:c=>c==="Number",parsePrefix:c=>{let m=parseFloat(c.lexer.current.text);return c.consume("Number"),{type:"JsdocTypeNumber",value:m}}}),pe=$({name:"parenthesisParslet",accept:c=>c==="(",parsePrefix:c=>{if(c.consume("("),c.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let m=c.parseIntermediateType(N.ALL);if(!c.consume(")"))throw new Error("Unterminated parenthesis");return m.type==="JsdocTypeParameterList"?m:m.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[m]}:{type:"JsdocTypeParenthesis",element:R(m)}}}),he=$({name:"specialTypesParslet",accept:(c,m)=>c==="?"&&q(m)||c==="null"||c==="undefined"||c==="*",parsePrefix:c=>{if(c.consume("null"))return{type:"JsdocTypeNull"};if(c.consume("undefined"))return{type:"JsdocTypeUndefined"};if(c.consume("*"))return{type:"JsdocTypeAny"};if(c.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+c.lexer.current.text)}}),Q=$({name:"notNullableParslet",accept:c=>c==="!",precedence:N.NULLABLE,parsePrefix:c=>(c.consume("!"),{type:"JsdocTypeNotNullable",element:c.parseType(N.NULLABLE),meta:{position:"prefix"}}),parseInfix:(c,m)=>(c.consume("!"),{type:"JsdocTypeNotNullable",element:R(m),meta:{position:"suffix"}})});function Z({allowTrailingComma:c}){return $({name:"parameterListParslet",accept:m=>m===",",precedence:N.PARAMETER_LIST,parseInfix:(m,T)=>{let x=[S(T)];m.consume(",");do try{let J=m.parseIntermediateType(N.PARAMETER_LIST);x.push(S(J))}catch(J){if(J instanceof i)break;throw J}while(m.consume(","));if(x.length>0&&x.slice(0,-1).some(J=>J.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:x}}})}let ge=$({name:"genericParslet",accept:(c,m)=>c==="<"||c==="."&&m==="<",precedence:N.GENERIC,parseInfix:(c,m)=>{let T=c.consume(".");c.consume("<");let x=[],J=!1;if(c.consume("infer")){J=!0;let X=c.parseIntermediateType(N.SYMBOL);if(X.type!=="JsdocTypeName")throw new s(X,"A typescript asserts always has to have a name on the left side.");x.push(X)}else do x.push(c.parseType(N.PARAMETER_LIST));while(c.consume(","));if(!c.consume(">"))throw new Error("Unterminated generic parameter list");return Object.assign(Object.assign({type:"JsdocTypeGeneric",left:R(m),elements:x},J?{infer:!0}:{}),{meta:{brackets:"angle",dot:T}})}}),ce=$({name:"unionParslet",accept:c=>c==="|",precedence:N.UNION,parseInfix:(c,m)=>{c.consume("|");let T=[];do T.push(c.parseType(N.UNION));while(c.consume("|"));return{type:"JsdocTypeUnion",elements:[R(m),...T]}}}),re=[F,G,ie,pe,he,Q,Z({allowTrailingComma:!0}),ge,ce,G];function Re({allowSquareBracketsOnAnyType:c,allowJsdocNamePaths:m,pathGrammar:T}){return function(x,J,X){if(X==null||J>=N.NAME_PATH)return null;let se=x.lexer.current.type,Se=x.lexer.next.type;if(!(se==="."&&Se!=="<"||se==="["&&(c||X.type==="JsdocTypeName")||m&&(se==="~"||se==="#")))return null;let Oe,Ue=!1;x.consume(".")?Oe="property":x.consume("[")?(Oe="property-brackets",Ue=!0):x.consume("~")?Oe="inner":(x.consume("#"),Oe="instance");let Ct=T!==null?new P(T,x.lexer,x):x,pt=Ct.parseIntermediateType(N.NAME_PATH);x.acceptLexerState(Ct);let Jr;switch(pt.type){case"JsdocTypeName":Jr={type:"JsdocTypeProperty",value:pt.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":Jr={type:"JsdocTypeProperty",value:pt.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":Jr={type:"JsdocTypeProperty",value:pt.value,meta:{quote:pt.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(pt.specialType==="event")Jr=pt;else throw new s(pt,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new s(pt,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(Ue&&!x.consume("]")){let Bs=x.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${Bs.type}' with text '${Bs.text}'`)}return{type:"JsdocTypeNamePath",left:R(X),right:Jr,pathType:Oe}}}function Te({allowedAdditionalTokens:c}){return $({name:"nameParslet",accept:m=>m==="Identifier"||m==="this"||m==="new"||c.includes(m),parsePrefix:m=>{let{type:T,text:x}=m.lexer.current;return m.consume(T),{type:"JsdocTypeName",value:x}}})}let et=$({name:"stringValueParslet",accept:c=>c==="StringValue",parsePrefix:c=>{let m=c.lexer.current.text;return c.consume("StringValue"),{type:"JsdocTypeStringValue",value:m.slice(1,-1),meta:{quote:m[0]==="'"?"single":"double"}}}});function V({pathGrammar:c,allowedTypes:m}){return $({name:"specialNamePathParslet",accept:T=>m.includes(T),parsePrefix:T=>{let x=T.lexer.current.type;if(T.consume(x),!T.consume(":"))return{type:"JsdocTypeName",value:x};let J,X=T.lexer.current;if(T.consume("StringValue"))J={type:"JsdocTypeSpecialNamePath",value:X.text.slice(1,-1),specialType:x,meta:{quote:X.text[0]==="'"?"single":"double"}};else{let Oe="",Ue=["Identifier","@","/"];for(;Ue.some(Ct=>T.consume(Ct));)Oe+=X.text,X=T.lexer.current;J={type:"JsdocTypeSpecialNamePath",value:Oe,specialType:x,meta:{quote:void 0}}}let se=new P(c,T.lexer,T),Se=se.parseInfixIntermediateType(J,N.ALL);return T.acceptLexerState(se),R(Se)}})}let ae=[Te({allowedAdditionalTokens:["external","module"]}),et,ie,Re({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],me=[...ae,V({allowedTypes:["event"],pathGrammar:ae})];function j(c){let m;if(c.type==="JsdocTypeParameterList")m=c.elements;else if(c.type==="JsdocTypeParenthesis")m=[c.element];else throw new s(c);return m.map(T=>S(T))}function B(c){let m=j(c);if(m.some(T=>T.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return m}function W({allowNamedParameters:c,allowNoReturnType:m,allowWithoutParenthesis:T,allowNewAsFunctionKeyword:x}){return $({name:"functionParslet",accept:(J,X)=>J==="function"||x&&J==="new"&&X==="(",parsePrefix:J=>{let X=J.consume("new");J.consume("function");let se=J.lexer.current.type==="(";if(!se){if(!T)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let Se={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:X,parenthesis:se},Oe=J.parseIntermediateType(N.FUNCTION);if(c===void 0)Se.parameters=B(Oe);else{if(X&&Oe.type==="JsdocTypeFunction"&&Oe.arrow)return Se=Oe,Se.constructor=!0,Se;Se.parameters=j(Oe);for(let Ue of Se.parameters)if(Ue.type==="JsdocTypeKeyValue"&&!c.includes(Ue.key))throw new Error(`only allowed named parameters are ${c.join(", ")} but got ${Ue.type}`)}if(J.consume(":"))Se.returnType=J.parseType(N.PREFIX);else if(!m)throw new Error("function is missing return type");return Se}})}function Y({allowPostfix:c,allowEnclosingBrackets:m}){return $({name:"variadicParslet",accept:T=>T==="...",precedence:N.PREFIX,parsePrefix:T=>{T.consume("...");let x=m&&T.consume("[");try{let J=T.parseType(N.PREFIX);if(x&&!T.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:R(J),meta:{position:"prefix",squareBrackets:x}}}catch(J){if(J instanceof i){if(x)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw J}},parseInfix:c?(T,x)=>(T.consume("..."),{type:"JsdocTypeVariadic",element:R(x),meta:{position:"suffix",squareBrackets:!1}}):void 0})}let z=$({name:"symbolParslet",accept:c=>c==="(",precedence:N.SYMBOL,parseInfix:(c,m)=>{if(m.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");c.consume("(");let T={type:"JsdocTypeSymbol",value:m.value};if(!c.consume(")")){let x=c.parseIntermediateType(N.SYMBOL);if(T.element=M(x),!c.consume(")"))throw new Error("Symbol does not end after value")}return T}}),ee=$({name:"arrayBracketsParslet",precedence:N.ARRAY_BRACKETS,accept:(c,m)=>c==="["&&m==="]",parseInfix:(c,m)=>(c.consume("["),c.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[R(m)],meta:{brackets:"square",dot:!1}})});function le({objectFieldGrammar:c,allowKeyTypes:m}){return $({name:"objectParslet",accept:T=>T==="{",parsePrefix:T=>{T.consume("{");let x={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!T.consume("}")){let J,X=new P(c,T.lexer,T);for(;;){X.acceptLexerState(T);let se=X.parseIntermediateType(N.OBJECT);T.acceptLexerState(X),se===void 0&&m&&(se=T.parseIntermediateType(N.OBJECT));let Se=!1;if(se.type==="JsdocTypeNullable"&&(Se=!0,se=se.element),se.type==="JsdocTypeNumber"||se.type==="JsdocTypeName"||se.type==="JsdocTypeStringValue"){let Oe;se.type==="JsdocTypeStringValue"&&(Oe=se.meta.quote),x.elements.push({type:"JsdocTypeObjectField",key:se.value.toString(),right:void 0,optional:Se,readonly:!1,meta:{quote:Oe}})}else if(se.type==="JsdocTypeObjectField"||se.type==="JsdocTypeJsdocObjectField")x.elements.push(se);else throw new s(se);if(T.lexer.current.startOfLine)J="linebreak",T.consume(",")||T.consume(";");else if(T.consume(","))J="comma";else if(T.consume(";"))J="semicolon";else break;if(T.lexer.current.type==="}")break}if(x.meta.separator=J??"comma",J==="linebreak"&&(x.meta.propertyIndent=" "),!T.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return x}})}function oe({allowSquaredProperties:c,allowKeyTypes:m,allowReadonly:T,allowOptional:x}){return $({name:"objectFieldParslet",precedence:N.KEY_VALUE,accept:J=>J===":",parseInfix:(J,X)=>{var se;let Se=!1,Oe=!1;x&&X.type==="JsdocTypeNullable"&&(Se=!0,X=X.element),T&&X.type==="JsdocTypeReadonlyProperty"&&(Oe=!0,X=X.element);let Ue=(se=J.baseParser)!==null&&se!==void 0?se:J;if(Ue.acceptLexerState(J),X.type==="JsdocTypeNumber"||X.type==="JsdocTypeName"||X.type==="JsdocTypeStringValue"||k(X)){if(k(X)&&!c)throw new s(X);Ue.consume(":");let Ct;X.type==="JsdocTypeStringValue"&&(Ct=X.meta.quote);let pt=Ue.parseType(N.KEY_VALUE);return J.acceptLexerState(Ue),{type:"JsdocTypeObjectField",key:k(X)?X:X.value.toString(),right:pt,optional:Se,readonly:Oe,meta:{quote:Ct}}}else{if(!m)throw new s(X);Ue.consume(":");let Ct=Ue.parseType(N.KEY_VALUE);return J.acceptLexerState(Ue),{type:"JsdocTypeJsdocObjectField",left:R(X),right:Ct}}}})}function ne({allowOptional:c,allowVariadic:m}){return $({name:"keyValueParslet",precedence:N.KEY_VALUE,accept:T=>T===":",parseInfix:(T,x)=>{let J=!1,X=!1;if(c&&x.type==="JsdocTypeNullable"&&(J=!0,x=x.element),m&&x.type==="JsdocTypeVariadic"&&x.element!==void 0&&(X=!0,x=x.element),x.type!=="JsdocTypeName")throw new s(x);T.consume(":");let se=T.parseType(N.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:x.value,right:se,optional:J,variadic:X}}})}let te=[...re,W({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),et,V({allowedTypes:["module","external","event"],pathGrammar:me}),Y({allowEnclosingBrackets:!0,allowPostfix:!0}),Te({allowedAdditionalTokens:["keyof"]}),z,ee,Re({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:me})],ve=[...te,le({objectFieldGrammar:[Te({allowedAdditionalTokens:["typeof","module","in"]}),oe({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...te],allowKeyTypes:!0}),ne({allowOptional:!0,allowVariadic:!0})],de=$({name:"typeOfParslet",accept:c=>c==="typeof",parsePrefix:c=>(c.consume("typeof"),{type:"JsdocTypeTypeof",element:c.parseType(N.KEY_OF_TYPE_OF)})}),be=[Te({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),F,G,et,ie,oe({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],Ee=[...re,le({allowKeyTypes:!1,objectFieldGrammar:be}),Te({allowedAdditionalTokens:["event","external","in"]}),de,W({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),Y({allowEnclosingBrackets:!1,allowPostfix:!1}),Te({allowedAdditionalTokens:["keyof"]}),V({allowedTypes:["module"],pathGrammar:me}),Re({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:me}),ne({allowOptional:!1,allowVariadic:!1}),z],Me=$({name:"assertsParslet",accept:c=>c==="asserts",parsePrefix:c=>{c.consume("asserts");let m=c.parseIntermediateType(N.SYMBOL);if(m.type!=="JsdocTypeName")throw new s(m,"A typescript asserts always has to have a name on the left side.");return c.consume("is")?{type:"JsdocTypeAsserts",left:m,right:R(c.parseIntermediateType(N.INFIX))}:{type:"JsdocTypeAssertsPlain",element:m}}});function $e({allowQuestionMark:c}){return $({name:"tupleParslet",accept:m=>m==="[",parsePrefix:m=>{m.consume("[");let T={type:"JsdocTypeTuple",elements:[]};if(m.consume("]"))return T;let x=m.parseIntermediateType(N.ALL);if(x.type==="JsdocTypeParameterList"?x.elements[0].type==="JsdocTypeKeyValue"?T.elements=x.elements.map(O):T.elements=x.elements.map(R):x.type==="JsdocTypeKeyValue"?T.elements=[O(x)]:T.elements=[R(x)],!m.consume("]"))throw new Error("Unterminated '['");if(T.elements.some(J=>J.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return T}})}let Je=$({name:"keyOfParslet",accept:c=>c==="keyof",parsePrefix:c=>(c.consume("keyof"),{type:"JsdocTypeKeyof",element:R(c.parseType(N.KEY_OF_TYPE_OF))})}),tt=$({name:"importParslet",accept:c=>c==="import",parsePrefix:c=>{if(c.consume("import"),!c.consume("("))throw new Error("Missing parenthesis after import keyword");let m=c.parseType(N.PREFIX);if(m.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!c.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:m}}}),it=$({name:"readonlyPropertyParslet",accept:c=>c==="readonly",parsePrefix:c=>(c.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:c.parseIntermediateType(N.KEY_VALUE)})}),Dt=$({name:"arrowFunctionParslet",precedence:N.ARROW,accept:c=>c==="=>",parseInfix:(c,m)=>(c.consume("=>"),{type:"JsdocTypeFunction",parameters:j(m).map(_),arrow:!0,constructor:!1,parenthesis:!0,returnType:c.parseType(N.OBJECT)})}),Ot=$({name:"genericArrowFunctionParslet",accept:c=>c==="<",parsePrefix:c=>{let m=[];c.consume("<");do{let x,J=c.parseIntermediateType(N.SYMBOL);if(J.type==="JsdocTypeOptional"&&(J=J.element,x=c.parseType(N.SYMBOL)),J.type!=="JsdocTypeName")throw new s(J);let X;c.consume("extends")&&(X=c.parseType(N.SYMBOL),X.type==="JsdocTypeOptional"&&(X=X.element,x=c.parseType(N.SYMBOL)));let se={type:"JsdocTypeTypeParameter",name:J};if(X!==void 0&&(se.constraint=X),x!==void 0&&(se.defaultValue=x),m.push(se),c.consume(">"))break}while(c.consume(","));let T=c.parseIntermediateType(N.SYMBOL);return T.typeParameters=m,T}}),Ur=$({name:"intersectionParslet",accept:c=>c==="&",precedence:N.INTERSECTION,parseInfix:(c,m)=>{c.consume("&");let T=[];do T.push(c.parseType(N.INTERSECTION));while(c.consume("&"));return{type:"JsdocTypeIntersection",elements:[R(m),...T]}}}),ri=$({name:"predicateParslet",precedence:N.INFIX,accept:c=>c==="is",parseInfix:(c,m)=>{if(m.type!=="JsdocTypeName")throw new s(m,"A typescript predicate always has to have a name on the left side.");return c.consume("is"),{type:"JsdocTypePredicate",left:m,right:R(c.parseIntermediateType(N.INFIX))}}}),At=$({name:"objectSquareBracketPropertyParslet",accept:c=>c==="[",parsePrefix:c=>{if(c.baseParser===void 0)throw new Error("Only allowed inside object grammar");c.consume("[");let m=c.lexer.current.text;c.consume("Identifier");let T;if(c.consume(":")){let x=c.baseParser;x.acceptLexerState(c),T={type:"JsdocTypeIndexSignature",key:m,right:x.parseType(N.INDEX_BRACKETS)},c.acceptLexerState(x)}else if(c.consume("in")){let x=c.baseParser;x.acceptLexerState(c),T={type:"JsdocTypeMappedType",key:m,right:x.parseType(N.ARRAY_BRACKETS)},c.acceptLexerState(x)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!c.consume("]"))throw new Error("Unterminated square brackets");return T}}),Ht=$({name:"readonlyArrayParslet",accept:c=>c==="readonly",parsePrefix:c=>(c.consume("readonly"),{type:"JsdocTypeReadonlyArray",element:I(c.parseIntermediateType(N.ALL))})}),ni=$({name:"conditionalParslet",precedence:N.INFIX,accept:c=>c==="extends",parseInfix:(c,m)=>{c.consume("extends");let T=c.parseType(N.KEY_OF_TYPE_OF).element,x=c.parseType(N.INFIX);return c.consume(":"),{type:"JsdocTypeConditional",checksType:R(m),extendsType:T,trueType:x,falseType:c.parseType(N.INFIX)}}}),ii=[it,Te({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),F,G,et,ie,oe({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),At],ks=[...re,le({allowKeyTypes:!1,objectFieldGrammar:ii}),Ht,de,Je,tt,et,W({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),$e({allowQuestionMark:!1}),Y({allowEnclosingBrackets:!1,allowPostfix:!1}),Me,ni,Te({allowedAdditionalTokens:["event","external","in"]}),V({allowedTypes:["module"],pathGrammar:me}),ee,Dt,Ot,Re({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:me}),Ur,ri,ne({allowVariadic:!0,allowOptional:!0})];function Di(c,m){switch(m){case"closure":return new P(Ee,c).parse();case"jsdoc":return new P(ve,c).parse();case"typescript":return new P(ks,c).parse()}}function Ds(c,m=["typescript","closure","jsdoc"]){let T;for(let x of m)try{return Di(c,x)}catch(J){T=J}throw T}function vr(c,m){let T=c[m.type];if(T===void 0)throw new Error(`In this set of transform rules exists no rule for type ${m.type}.`);return T(m,x=>vr(c,x))}function we(c){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}function Li(c){let m={params:[]};for(let T of c.parameters)T.type==="JsdocTypeKeyValue"?T.key==="this"?m.this=T.right:T.key==="new"?m.new=T.right:m.params.push(T):m.params.push(T);return m}function Vr(c,m,T){return c==="prefix"?T+m:m+T}function Pt(c,m){switch(m){case"double":return`"${c}"`;case"single":return`'${c}'`;case void 0:return c}}function ue(){return{JsdocTypeParenthesis:(c,m)=>`(${c.element!==void 0?m(c.element):""})`,JsdocTypeKeyof:(c,m)=>`keyof ${m(c.element)}`,JsdocTypeFunction:(c,m)=>{var T;if(c.arrow){if(c.returnType===void 0)throw new Error("Arrow function needs a return type.");let x=`${c.typeParameters!==void 0?`<${(T=c.typeParameters.map(m).join(", "))!==null&&T!==void 0?T:""}>`:""}(${c.parameters.map(m).join(", ")}) => ${m(c.returnType)}`;return c.constructor&&(x="new "+x),x}else{let x=c.constructor?"new":"function";return c.parenthesis&&(x+=`(${c.parameters.map(m).join(", ")})`,c.returnType!==void 0&&(x+=`: ${m(c.returnType)}`)),x}},JsdocTypeName:c=>c.value,JsdocTypeTuple:(c,m)=>`[${c.elements.map(m).join(", ")}]`,JsdocTypeVariadic:(c,m)=>c.meta.position===void 0?"...":Vr(c.meta.position,m(c.element),"..."),JsdocTypeNamePath:(c,m)=>{let T=m(c.left),x=m(c.right);switch(c.pathType){case"inner":return`${T}~${x}`;case"instance":return`${T}#${x}`;case"property":return`${T}.${x}`;case"property-brackets":return`${T}[${x}]`}},JsdocTypeStringValue:c=>Pt(c.value,c.meta.quote),JsdocTypeAny:()=>"*",JsdocTypeGeneric:(c,m)=>{if(c.meta.brackets==="square"){let T=c.elements[0],x=m(T);return T.type==="JsdocTypeUnion"||T.type==="JsdocTypeIntersection"?`(${x})[]`:`${x}[]`}else return`${m(c.left)}${c.meta.dot?".":""}<${c.infer===!0?"infer ":""}${c.elements.map(m).join(", ")}>`},JsdocTypeImport:(c,m)=>`import(${m(c.element)})`,JsdocTypeObjectField:(c,m)=>{let T="";return c.readonly&&(T+="readonly "),typeof c.key=="string"?T+=Pt(c.key,c.meta.quote):T+=m(c.key),c.optional&&(T+="?"),c.right===void 0?T:T+`: ${m(c.right)}`},JsdocTypeJsdocObjectField:(c,m)=>`${m(c.left)}: ${m(c.right)}`,JsdocTypeKeyValue:(c,m)=>{let T=c.key;return c.optional&&(T+="?"),c.variadic&&(T="..."+T),c.right===void 0?T:T+`: ${m(c.right)}`},JsdocTypeSpecialNamePath:c=>`${c.specialType}:${Pt(c.value,c.meta.quote)}`,JsdocTypeNotNullable:(c,m)=>Vr(c.meta.position,m(c.element),"!"),JsdocTypeNull:()=>"null",JsdocTypeNullable:(c,m)=>Vr(c.meta.position,m(c.element),"?"),JsdocTypeNumber:c=>c.value.toString(),JsdocTypeObject:(c,m)=>{var T,x;return`{${(c.meta.separator==="linebreak"&&c.elements.length>1?`
|
|
1012
|
-
`+((T=c.meta.propertyIndent)!==null&&T!==void 0?T:""):"")+c.elements.map(m).join(c.meta.separator==="comma"?", ":c.meta.separator==="linebreak"?`
|
|
1013
|
-
`+((x=c.meta.propertyIndent)!==null&&x!==void 0?x:""):"; ")+(c.meta.separator==="linebreak"&&c.elements.length>1?`
|
|
1014
|
-
`:"")}}`},JsdocTypeOptional:(c,m)=>Vr(c.meta.position,m(c.element),"="),JsdocTypeSymbol:(c,m)=>`${c.value}(${c.element!==void 0?m(c.element):""})`,JsdocTypeTypeof:(c,m)=>`typeof ${m(c.element)}`,JsdocTypeUndefined:()=>"undefined",JsdocTypeUnion:(c,m)=>c.elements.map(m).join(" | "),JsdocTypeUnknown:()=>"?",JsdocTypeIntersection:(c,m)=>c.elements.map(m).join(" & "),JsdocTypeProperty:c=>Pt(c.value,c.meta.quote),JsdocTypePredicate:(c,m)=>`${m(c.left)} is ${m(c.right)}`,JsdocTypeIndexSignature:(c,m)=>`[${c.key}: ${m(c.right)}]`,JsdocTypeMappedType:(c,m)=>`[${c.key} in ${m(c.right)}]`,JsdocTypeAsserts:(c,m)=>`asserts ${m(c.left)} is ${m(c.right)}`,JsdocTypeReadonlyArray:(c,m)=>`readonly ${m(c.element)}`,JsdocTypeAssertsPlain:(c,m)=>`asserts ${m(c.element)}`,JsdocTypeConditional:(c,m)=>`${m(c.checksType)} extends ${m(c.extendsType)} ? ${m(c.trueType)} : ${m(c.falseType)}`,JsdocTypeTypeParameter:(c,m)=>`${m(c.name)}${c.constraint!==void 0?` extends ${m(c.constraint)}`:""}${c.defaultValue!==void 0?` = ${m(c.defaultValue)}`:""}`}}let Ls=ue();function oi(c){return vr(Ls,c)}let jd=["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 Lt(c){let m={type:"NameExpression",name:c};return jd.includes(c)&&(m.reservedWord=!0),m}let kd={JsdocTypeOptional:(c,m)=>{let T=m(c.element);return T.optional=!0,T},JsdocTypeNullable:(c,m)=>{let T=m(c.element);return T.nullable=!0,T},JsdocTypeNotNullable:(c,m)=>{let T=m(c.element);return T.nullable=!1,T},JsdocTypeVariadic:(c,m)=>{if(c.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");let T=m(c.element);return T.repeatable=!0,T},JsdocTypeAny:()=>({type:"AllLiteral"}),JsdocTypeNull:()=>({type:"NullLiteral"}),JsdocTypeStringValue:c=>Lt(Pt(c.value,c.meta.quote)),JsdocTypeUndefined:()=>({type:"UndefinedLiteral"}),JsdocTypeUnknown:()=>({type:"UnknownLiteral"}),JsdocTypeFunction:(c,m)=>{let T=Li(c),x={type:"FunctionType",params:T.params.map(m)};return T.this!==void 0&&(x.this=m(T.this)),T.new!==void 0&&(x.new=m(T.new)),c.returnType!==void 0&&(x.result=m(c.returnType)),x},JsdocTypeGeneric:(c,m)=>({type:"TypeApplication",applications:c.elements.map(T=>m(T)),expression:m(c.left)}),JsdocTypeSpecialNamePath:c=>Lt(c.specialType+":"+Pt(c.value,c.meta.quote)),JsdocTypeName:c=>c.value!=="function"?Lt(c.value):{type:"FunctionType",params:[]},JsdocTypeNumber:c=>Lt(c.value.toString()),JsdocTypeObject:(c,m)=>{let T={type:"RecordType",fields:[]};for(let x of c.elements)x.type!=="JsdocTypeObjectField"&&x.type!=="JsdocTypeJsdocObjectField"?T.fields.push({type:"FieldType",key:m(x),value:void 0}):T.fields.push(m(x));return T},JsdocTypeObjectField:(c,m)=>{if(typeof c.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:Lt(Pt(c.key,c.meta.quote)),value:c.right===void 0?void 0:m(c.right)}},JsdocTypeJsdocObjectField:(c,m)=>({type:"FieldType",key:m(c.left),value:m(c.right)}),JsdocTypeUnion:(c,m)=>({type:"TypeUnion",elements:c.elements.map(T=>m(T))}),JsdocTypeKeyValue:(c,m)=>({type:"FieldType",key:Lt(c.key),value:c.right===void 0?void 0:m(c.right)}),JsdocTypeNamePath:(c,m)=>{let T=m(c.left),x;c.right.type==="JsdocTypeSpecialNamePath"?x=m(c.right).name:x=Pt(c.right.value,c.right.meta.quote);let J=c.pathType==="inner"?"~":c.pathType==="instance"?"#":".";return Lt(`${T.name}${J}${x}`)},JsdocTypeSymbol:c=>{let m="",T=c.element,x=!1;return(T==null?void 0:T.type)==="JsdocTypeVariadic"&&(T.meta.position==="prefix"?m="...":x=!0,T=T.element),(T==null?void 0:T.type)==="JsdocTypeName"?m+=T.value:(T==null?void 0:T.type)==="JsdocTypeNumber"&&(m+=T.value.toString()),x&&(m+="..."),Lt(`${c.value}(${m})`)},JsdocTypeParenthesis:(c,m)=>m(R(c.element)),JsdocTypeMappedType:we,JsdocTypeIndexSignature:we,JsdocTypeImport:we,JsdocTypeKeyof:we,JsdocTypeTuple:we,JsdocTypeTypeof:we,JsdocTypeIntersection:we,JsdocTypeProperty:we,JsdocTypePredicate:we,JsdocTypeAsserts:we,JsdocTypeReadonlyArray:we,JsdocTypeAssertsPlain:we,JsdocTypeConditional:we,JsdocTypeTypeParameter:we};function Dd(c){return vr(kd,c)}function ir(c){switch(c){case void 0:return"none";case"single":return"single";case"double":return"double"}}function Ld(c){switch(c){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}function Fi(c,m){return m.length===2?{type:c,left:m[0],right:m[1]}:{type:c,left:m[0],right:Fi(c,m.slice(1))}}let Fd={JsdocTypeOptional:(c,m)=>({type:"OPTIONAL",value:m(c.element),meta:{syntax:c.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),JsdocTypeNullable:(c,m)=>({type:"NULLABLE",value:m(c.element),meta:{syntax:c.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),JsdocTypeNotNullable:(c,m)=>({type:"NOT_NULLABLE",value:m(c.element),meta:{syntax:c.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),JsdocTypeVariadic:(c,m)=>{let T={type:"VARIADIC",meta:{syntax:c.meta.position==="prefix"?"PREFIX_DOTS":c.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return c.element!==void 0&&(T.value=m(c.element)),T},JsdocTypeName:c=>({type:"NAME",name:c.value}),JsdocTypeTypeof:(c,m)=>({type:"TYPE_QUERY",name:m(c.element)}),JsdocTypeTuple:(c,m)=>({type:"TUPLE",entries:c.elements.map(m)}),JsdocTypeKeyof:(c,m)=>({type:"KEY_QUERY",value:m(c.element)}),JsdocTypeImport:c=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:ir(c.element.meta.quote),string:c.element.value}}),JsdocTypeUndefined:()=>({type:"NAME",name:"undefined"}),JsdocTypeAny:()=>({type:"ANY"}),JsdocTypeFunction:(c,m)=>{let T=Li(c),x={type:c.arrow?"ARROW":"FUNCTION",params:T.params.map(J=>{if(J.type==="JsdocTypeKeyValue"){if(J.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:J.key,typeName:m(J.right)}}else return m(J)}),new:null,returns:null};return T.this!==void 0?x.this=m(T.this):c.arrow||(x.this=null),T.new!==void 0&&(x.new=m(T.new)),c.returnType!==void 0&&(x.returns=m(c.returnType)),x},JsdocTypeGeneric:(c,m)=>{let T={type:"GENERIC",subject:m(c.left),objects:c.elements.map(m),meta:{syntax:c.meta.brackets==="square"?"SQUARE_BRACKET":c.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return c.meta.brackets==="square"&&c.elements[0].type==="JsdocTypeFunction"&&!c.elements[0].parenthesis&&(T.objects[0]={type:"NAME",name:"function"}),T},JsdocTypeObjectField:(c,m)=>{if(typeof c.key!="string")throw new Error("Index signatures and mapped types are not supported");if(c.right===void 0)return{type:"RECORD_ENTRY",key:c.key,quoteStyle:ir(c.meta.quote),value:null,readonly:!1};let T=m(c.right);return c.optional&&(T={type:"OPTIONAL",value:T,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:c.key.toString(),quoteStyle:ir(c.meta.quote),value:T,readonly:!1}},JsdocTypeJsdocObjectField:()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},JsdocTypeKeyValue:(c,m)=>{if(c.right===void 0)return{type:"RECORD_ENTRY",key:c.key,quoteStyle:"none",value:null,readonly:!1};let T=m(c.right);return c.optional&&(T={type:"OPTIONAL",value:T,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:c.key,quoteStyle:"none",value:T,readonly:!1}},JsdocTypeObject:(c,m)=>{let T=[];for(let x of c.elements)(x.type==="JsdocTypeObjectField"||x.type==="JsdocTypeJsdocObjectField")&&T.push(m(x));return{type:"RECORD",entries:T}},JsdocTypeSpecialNamePath:c=>{if(c.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${c.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:ir(c.meta.quote),path:c.value}}},JsdocTypeNamePath:(c,m)=>{let T=!1,x,J;c.right.type==="JsdocTypeSpecialNamePath"&&c.right.specialType==="event"?(T=!0,x=c.right.value,J=ir(c.right.meta.quote)):(x=c.right.value,J=ir(c.right.meta.quote));let X={type:Ld(c.pathType),owner:m(c.left),name:x,quoteStyle:J,hasEventPrefix:T};if(X.owner.type==="MODULE"){let se=X.owner;return X.owner=X.owner.value,se.value=X,se}else return X},JsdocTypeUnion:(c,m)=>Fi("UNION",c.elements.map(m)),JsdocTypeParenthesis:(c,m)=>({type:"PARENTHESIS",value:m(R(c.element))}),JsdocTypeNull:()=>({type:"NAME",name:"null"}),JsdocTypeUnknown:()=>({type:"UNKNOWN"}),JsdocTypeStringValue:c=>({type:"STRING_VALUE",quoteStyle:ir(c.meta.quote),string:c.value}),JsdocTypeIntersection:(c,m)=>Fi("INTERSECTION",c.elements.map(m)),JsdocTypeNumber:c=>({type:"NUMBER_VALUE",number:c.value.toString()}),JsdocTypeSymbol:we,JsdocTypeProperty:we,JsdocTypePredicate:we,JsdocTypeMappedType:we,JsdocTypeIndexSignature:we,JsdocTypeAsserts:we,JsdocTypeReadonlyArray:we,JsdocTypeAssertsPlain:we,JsdocTypeConditional:we,JsdocTypeTypeParameter:we};function Bd(c){return vr(Fd,c)}function $d(){return{JsdocTypeIntersection:(c,m)=>({type:"JsdocTypeIntersection",elements:c.elements.map(m)}),JsdocTypeGeneric:(c,m)=>({type:"JsdocTypeGeneric",left:m(c.left),elements:c.elements.map(m),meta:{dot:c.meta.dot,brackets:c.meta.brackets}}),JsdocTypeNullable:c=>c,JsdocTypeUnion:(c,m)=>({type:"JsdocTypeUnion",elements:c.elements.map(m)}),JsdocTypeUnknown:c=>c,JsdocTypeUndefined:c=>c,JsdocTypeTypeof:(c,m)=>({type:"JsdocTypeTypeof",element:m(c.element)}),JsdocTypeSymbol:(c,m)=>{let T={type:"JsdocTypeSymbol",value:c.value};return c.element!==void 0&&(T.element=m(c.element)),T},JsdocTypeOptional:(c,m)=>({type:"JsdocTypeOptional",element:m(c.element),meta:{position:c.meta.position}}),JsdocTypeObject:(c,m)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:c.elements.map(m)}),JsdocTypeNumber:c=>c,JsdocTypeNull:c=>c,JsdocTypeNotNullable:(c,m)=>({type:"JsdocTypeNotNullable",element:m(c.element),meta:{position:c.meta.position}}),JsdocTypeSpecialNamePath:c=>c,JsdocTypeObjectField:(c,m)=>({type:"JsdocTypeObjectField",key:c.key,right:c.right===void 0?void 0:m(c.right),optional:c.optional,readonly:c.readonly,meta:c.meta}),JsdocTypeJsdocObjectField:(c,m)=>({type:"JsdocTypeJsdocObjectField",left:m(c.left),right:m(c.right)}),JsdocTypeKeyValue:(c,m)=>({type:"JsdocTypeKeyValue",key:c.key,right:c.right===void 0?void 0:m(c.right),optional:c.optional,variadic:c.variadic}),JsdocTypeImport:(c,m)=>({type:"JsdocTypeImport",element:m(c.element)}),JsdocTypeAny:c=>c,JsdocTypeStringValue:c=>c,JsdocTypeNamePath:c=>c,JsdocTypeVariadic:(c,m)=>{let T={type:"JsdocTypeVariadic",meta:{position:c.meta.position,squareBrackets:c.meta.squareBrackets}};return c.element!==void 0&&(T.element=m(c.element)),T},JsdocTypeTuple:(c,m)=>({type:"JsdocTypeTuple",elements:c.elements.map(m)}),JsdocTypeName:c=>c,JsdocTypeFunction:(c,m)=>{let T={type:"JsdocTypeFunction",arrow:c.arrow,parameters:c.parameters.map(m),constructor:c.constructor,parenthesis:c.parenthesis};return c.returnType!==void 0&&(T.returnType=m(c.returnType)),T},JsdocTypeKeyof:(c,m)=>({type:"JsdocTypeKeyof",element:m(c.element)}),JsdocTypeParenthesis:(c,m)=>({type:"JsdocTypeParenthesis",element:m(c.element)}),JsdocTypeProperty:c=>c,JsdocTypePredicate:(c,m)=>({type:"JsdocTypePredicate",left:m(c.left),right:m(c.right)}),JsdocTypeIndexSignature:(c,m)=>({type:"JsdocTypeIndexSignature",key:c.key,right:m(c.right)}),JsdocTypeMappedType:(c,m)=>({type:"JsdocTypeMappedType",key:c.key,right:m(c.right)}),JsdocTypeAsserts:(c,m)=>({type:"JsdocTypeAsserts",left:m(c.left),right:m(c.right)}),JsdocTypeReadonlyArray:(c,m)=>({type:"JsdocTypeReadonlyArray",element:m(c.element)}),JsdocTypeAssertsPlain:(c,m)=>({type:"JsdocTypeAssertsPlain",element:m(c.element)}),JsdocTypeConditional:(c,m)=>({type:"JsdocTypeConditional",checksType:m(c.checksType),extendsType:m(c.extendsType),trueType:m(c.trueType),falseType:m(c.falseType)}),JsdocTypeTypeParameter:(c,m)=>({type:"JsdocTypeTypeParameter",name:m(c.name),constraint:c.constraint!==void 0?m(c.constraint):void 0,defaultValue:c.defaultValue!==void 0?m(c.defaultValue):void 0})}}let Fs={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 Bi(c,m,T,x,J){x==null||x(c,m,T);let X=Fs[c.type];for(let se of X){let Se=c[se];if(Se!==void 0)if(Array.isArray(Se))for(let Oe of Se)Bi(Oe,c,se,x,J);else Bi(Se,c,se,x,J)}J==null||J(c,m,T)}function Ud(c,m,T){Bi(c,void 0,void 0,m,T)}r.catharsisTransform=Dd,r.identityTransformRules=$d,r.jtpTransform=Bd,r.parse=Di,r.stringify=oi,r.stringifyRules=ue,r.transform=vr,r.traverse=Ud,r.tryParse=Ds,r.visitorKeys=Fs})}});const{UnknownArgTypesError:x8}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var N8=e=>e.name==="literal",I8=e=>e.value.replace(/['|"]/g,""),M8=e=>{switch(e.type){case"function":return{name:"function"};case"object":let t={};return e.signature.properties.forEach(r=>{t[r.key]=ba(r.value)}),{name:"object",value:t};default:throw new x8({type:e,language:"Flow"})}},ba=e=>{var i,o,s,a;let{name:t,raw:r}=e,n={};switch(typeof r<"u"&&(n.raw=r),e.name){case"literal":return{...n,name:"other",value:e.value};case"string":case"number":case"symbol":case"boolean":return{...n,name:t};case"Array":return{...n,name:"array",value:e.elements.map(ba)};case"signature":return{...n,...M8(e)};case"union":return(i=e.elements)!=null&&i.every(N8)?{...n,name:"enum",value:(o=e.elements)==null?void 0:o.map(I8)}:{...n,name:t,value:(s=e.elements)==null?void 0:s.map(ba)};case"intersection":return{...n,name:t,value:(a=e.elements)==null?void 0:a.map(ba)};default:return{...n,name:"other",value:t}}},qP=/^['"]|['"]$/g,q8=e=>e.replace(qP,""),j8=e=>qP.test(e),jP=e=>{let t=q8(e);return j8(e)||Number.isNaN(Number(t))?t:Number(t)},k8=/^\(.*\) => /,oa=e=>{let{name:t,raw:r,computed:n,value:i}=e,o={};switch(typeof r<"u"&&(o.raw=r),t){case"enum":{let a=n?i:i.map(l=>jP(l.value));return{...o,name:t,value:a}}case"string":case"number":case"symbol":return{...o,name:t};case"func":return{...o,name:"function"};case"bool":case"boolean":return{...o,name:"boolean"};case"arrayOf":case"array":return{...o,name:"array",value:i&&oa(i)};case"object":return{...o,name:t};case"objectOf":return{...o,name:t,value:oa(i)};case"shape":case"exact":let s=E8(i,a=>oa(a));return{...o,name:"object",value:s};case"union":return{...o,name:"union",value:i.map(a=>oa(a))};case"instanceOf":case"element":case"elementType":default:{if((t==null?void 0:t.indexOf("|"))>0)try{let u=t.split("|").map(d=>JSON.parse(d));return{...o,name:"enum",value:u}}catch{}let a=i?`${t}(${i})`:t,l=k8.test(t)?"function":"other";return{...o,name:l,value:a}}}};const{UnknownArgTypesError:D8}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var $E=e=>e.name==="literal",L8=e=>e.name==="undefined",F8=e=>{switch(e.type){case"function":return{name:"function"};case"object":let t={};return e.signature.properties.forEach(r=>{t[r.key]=va(r.value)}),{name:"object",value:t};default:throw new D8({type:e,language:"Typescript"})}},va=e=>{let{name:t,raw:r}=e,n={};switch(typeof r<"u"&&(n.raw=r),e.name){case"string":case"number":case"symbol":case"boolean":return{...n,name:t};case"Array":return{...n,name:"array",value:e.elements.map(va)};case"signature":return{...n,...F8(e)};case"union":{let i=e.elements.filter(o=>!L8(o));if(i.length>0&&i.every($E)){let o=i.filter($E);return{...n,name:"enum",value:o.map(s=>jP(s.value))}}return{...n,name:t,value:e.elements.map(va)}}case"intersection":return{...n,name:t,value:e.elements.map(va)};default:return{...n,name:"other",value:t}}},ld=e=>{let{type:t,tsType:r,flowType:n}=e;try{if(t!=null)return oa(t);if(r!=null)return va(r);if(n!=null)return ba(n)}catch(i){console.error(i)}return null},B8=["null","undefined"];function xy(e){return B8.some(t=>t===e)}var $8=e=>{if(!e)return"";if(typeof e=="string")return e;throw new Error(`Description: expected string, got: ${JSON.stringify(e)}`)};function Ny(e){return!!e.__docgenInfo}function U8(e){return e!=null&&Object.keys(e).length>0}function V8(e,t){return Ny(e)?e.__docgenInfo[t]:null}function J8(e){return Ny(e)?$8(e.__docgenInfo.description):""}var Ai;(function(e){e.start="/**",e.nostart="/***",e.delim="*",e.end="*/"})(Ai=Ai||(Ai={}));function H8(e){return/^\s+$/.test(e)}function G8(e){let t=e.match(/\r+$/);return t==null?["",e]:[e.slice(-t[0].length),e.slice(0,-t[0].length)]}function Ko(e){let t=e.match(/^\s+/);return t==null?["",e]:[e.slice(0,t[0].length),e.slice(t[0].length)]}function W8(e){return e.split(/\n/)}function K8(e={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},e)}function z8(e={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},e)}var Y8=/^@\S+/;function X8({fence:e="```"}={}){let t=Q8(e),r=(n,i)=>t(n)?!i:i;return function(n){let i=[[]],o=!1;for(let s of n)Y8.test(s.tokens.description)&&!o?i.push([s]):i[i.length-1].push(s),o=r(s.tokens.description,o);return i}}function Q8(e){return typeof e=="string"?t=>t.split(e).length%2===0:e}function Z8({startLine:e=0,markers:t=Ai}={}){let r=null,n=e;return function(i){let o=i,s=z8();if([s.lineEnd,o]=G8(o),[s.start,o]=Ko(o),r===null&&o.startsWith(t.start)&&!o.startsWith(t.nostart)&&(r=[],s.delimiter=o.slice(0,t.start.length),o=o.slice(t.start.length),[s.postDelimiter,o]=Ko(o)),r===null)return n++,null;let a=o.trimRight().endsWith(t.end);if(s.delimiter===""&&o.startsWith(t.delim)&&!o.startsWith(t.end)&&(s.delimiter=t.delim,o=o.slice(t.delim.length),[s.postDelimiter,o]=Ko(o)),a){let l=o.trimRight();s.end=o.slice(l.length-t.end.length),o=l.slice(0,-t.end.length)}if(s.description=o,r.push({number:n,source:i,tokens:s}),n++,a){let l=r.slice();return r=null,l}return null}}function e9({tokenizers:e}){return function(t){var r;let n=K8({source:t});for(let i of e)if(n=i(n),!((r=n.problems[n.problems.length-1])===null||r===void 0)&&r.critical)break;return n}}function t9(){return e=>{let{tokens:t}=e.source[0],r=t.description.match(/\s*(@(\S+))(\s*)/);return r===null?(e.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:e.source[0].number,critical:!0}),e):(t.tag=r[1],t.postTag=r[3],t.description=t.description.slice(r[0].length),e.tag=r[2],e)}}function r9(e="compact"){let t=i9(e);return r=>{let n=0,i=[];for(let[a,{tokens:l}]of r.source.entries()){let u="";if(a===0&&l.description[0]!=="{")return r;for(let d of l.description)if(d==="{"&&n++,d==="}"&&n--,u+=d,n===0)break;if(i.push([l,u]),n===0)break}if(n!==0)return r.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:r.source[0].number,critical:!0}),r;let o=[],s=i[0][0].postDelimiter.length;for(let[a,[l,u]]of i.entries())l.type=u,a>0&&(l.type=l.postDelimiter.slice(s)+u,l.postDelimiter=l.postDelimiter.slice(0,s)),[l.postType,l.description]=Ko(l.description.slice(u.length)),o.push(l.type);return o[0]=o[0].slice(1),o[o.length-1]=o[o.length-1].slice(0,-1),r.type=t(o),r}}var n9=e=>e.trim();function i9(e){return e==="compact"?t=>t.map(n9).join(""):e==="preserve"?t=>t.join(`
|
|
1015
|
-
`):e}var o9=e=>e&&e.startsWith('"')&&e.endsWith('"');function s9(){let e=(t,{tokens:r},n)=>r.type===""?t:n;return t=>{let{tokens:r}=t.source[t.source.reduce(e,0)],n=r.description.trimLeft(),i=n.split('"');if(i.length>1&&i[0]===""&&i.length%2===1)return t.name=i[1],r.name=`"${i[1]}"`,[r.postName,r.description]=Ko(n.slice(r.name.length)),t;let o=0,s="",a=!1,l;for(let d of n){if(o===0&&H8(d))break;d==="["&&o++,d==="]"&&o--,s+=d}if(o!==0)return t.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:t.source[0].number,critical:!0}),t;let u=s;if(s[0]==="["&&s[s.length-1]==="]"){a=!0,s=s.slice(1,-1);let d=s.split("=");if(s=d[0].trim(),d[1]!==void 0&&(l=d.slice(1).join("=").trim()),s==="")return t.problems.push({code:"spec:name:empty-name",message:"empty name",line:t.source[0].number,critical:!0}),t;if(l==="")return t.problems.push({code:"spec:name:empty-default",message:"empty default value",line:t.source[0].number,critical:!0}),t;if(!o9(l)&&/=(?!>)/.test(l))return t.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:t.source[0].number,critical:!0}),t}return t.optional=a,t.name=s,r.name=u,l!==void 0&&(t.default=l),[r.postName,r.description]=Ko(n.slice(r.name.length)),t}}function a9(e="compact",t=Ai){let r=kP(e);return n=>(n.description=r(n.source,t),n)}function kP(e){return e==="compact"?l9:e==="preserve"?d9:e}function l9(e,t=Ai){return e.map(({tokens:{description:r}})=>r.trim()).filter(r=>r!=="").join(" ")}var u9=(e,{tokens:t},r)=>t.type===""?e:r,c9=({tokens:e})=>(e.delimiter===""?e.start:e.postDelimiter.slice(1))+e.description;function d9(e,t=Ai){if(e.length===0)return"";e[0].tokens.description===""&&e[0].tokens.delimiter===t.start&&(e=e.slice(1));let r=e[e.length-1];return r!==void 0&&r.tokens.description===""&&r.tokens.end.endsWith(t.end)&&(e=e.slice(0,-1)),e=e.slice(e.reduce(u9,0)),e.map(c9).join(`
|
|
1016
|
-
`)}function p9({startLine:e=0,fence:t="```",spacing:r="compact",markers:n=Ai,tokenizers:i=[t9(),r9(r),s9(),a9(r)]}={}){if(e<0||e%1>0)throw new Error("Invalid startLine");let o=Z8({startLine:e,markers:n}),s=X8({fence:t}),a=e9({tokenizers:i}),l=kP(r);return function(u){let d=[];for(let p of W8(u)){let f=o(p);if(f===null)continue;let h=s(f),y=h.slice(1).map(a);d.push({description:l(h[0],n),tags:y,source:f,problems:y.reduce((g,v)=>g.concat(v.problems),[])})}return d}}function f9(e,t={}){return p9(t)(e)}var Iy=P8(C8(),1);function h9(e){return e!=null&&e.includes("@")}function m9(e){let t=`/**
|
|
1017
|
-
`+(e??"").split(`
|
|
1018
|
-
`).map(n=>` * ${n}`).join(`
|
|
1019
|
-
`)+`
|
|
1020
|
-
*/`,r=f9(t,{spacing:"preserve"});if(!r||r.length===0)throw new Error("Cannot parse JSDoc tags.");return r[0]}var y9={tags:["param","arg","argument","returns","ignore","deprecated"]},g9=(e,t=y9)=>{if(!h9(e))return{includesJsDoc:!1,ignore:!1};let r=m9(e),n=b9(r,t.tags);return n.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:r.description.trim(),extractedTags:n}};function b9(e,t){let r={params:null,deprecated:null,returns:null,ignore:!1};for(let n of e.tags)if(!(t!==void 0&&!t.includes(n.tag)))if(n.tag==="ignore"){r.ignore=!0;break}else switch(n.tag){case"param":case"arg":case"argument":{let i=E9(n);i!=null&&(r.params==null&&(r.params=[]),r.params.push(i));break}case"deprecated":{let i=T9(n);i!=null&&(r.deprecated=i);break}case"returns":{let i=w9(n);i!=null&&(r.returns=i);break}}return r}function v9(e){return e.replace(/[\.-]$/,"")}function E9(e){if(!e.name||e.name==="-")return null;let t=FP(e.type);return{name:e.name,type:t,description:LP(e.description),getPrettyName:()=>v9(e.name),getTypeName:()=>t?BP(t):null}}function T9(e){return e.name?DP(e.name,e.description):null}function DP(e,t){let r=e===""?t:`${e} ${t}`;return LP(r)}function LP(e){let t=e.replace(/^- /g,"").trim();return t===""?null:t}function w9(e){let t=FP(e.type);return t?{type:t,description:DP(e.name,e.description),getTypeName:()=>BP(t)}:null}var ki=(0,Iy.stringifyRules)(),_9=ki.JsdocTypeObject;ki.JsdocTypeAny=()=>"any";ki.JsdocTypeObject=(e,t)=>`(${_9(e,t)})`;ki.JsdocTypeOptional=(e,t)=>t(e.element);ki.JsdocTypeNullable=(e,t)=>t(e.element);ki.JsdocTypeNotNullable=(e,t)=>t(e.element);ki.JsdocTypeUnion=(e,t)=>e.elements.map(t).join("|");function FP(e){try{return(0,Iy.parse)(e,"typescript")}catch{return null}}function BP(e){return(0,Iy.transform)(ki,e)}function $P(e){return e.length>90}function S9(e){return e.length>50}function kt(e,t){return e===t?{summary:e}:{summary:e,detail:t}}function R9(e,t){if(e!=null){let{value:r}=e;if(!xy(r))return S9(r)?kt(t==null?void 0:t.name,r):kt(r)}return null}function UP({name:e,value:t,elements:r,raw:n}){return t??(r!=null?r.map(UP).join(" | "):n??e)}function O9({name:e,raw:t,elements:r}){return r!=null?kt(r.map(UP).join(" | ")):t!=null?kt(t.replace(/^\|\s*/,"")):kt(e)}function A9({type:e,raw:t}){return t!=null?kt(t):kt(e)}function P9({type:e,raw:t}){return t!=null?$P(t)?kt(e,t):kt(t):kt(e)}function C9(e){let{type:t}=e;return t==="object"?P9(e):A9(e)}function x9({name:e,raw:t}){return t!=null?$P(t)?kt(e,t):kt(t):kt(e)}function N9(e){if(e==null)return null;switch(e.name){case"union":return O9(e);case"signature":return C9(e);default:return x9(e)}}var I9=(e,t)=>{let{flowType:r,description:n,required:i,defaultValue:o}=t;return{name:e,type:N9(r),required:i,description:n,defaultValue:R9(o??null,r??null)}};function M9({defaultValue:e}){if(e!=null){let{value:t}=e;if(!xy(t))return kt(t)}return null}function q9({tsType:e,required:t}){if(e==null)return null;let r=e.name;return t||(r=r.replace(" | undefined","")),kt(["Array","Record","signature"].includes(e.name)?e.raw:r)}var j9=(e,t)=>{let{description:r,required:n}=t;return{name:e,type:q9(t),required:n,description:r,defaultValue:M9(t)}};function k9(e){return e!=null?kt(e.name):null}function D9(e){let{computed:t,func:r}=e;return typeof t>"u"&&typeof r>"u"}function L9(e){return e?e.name==="string"?!0:e.name==="enum"?Array.isArray(e.value)&&e.value.every(({value:t})=>typeof t=="string"&&t[0]==='"'&&t[t.length-1]==='"'):!1:!1}function F9(e,t){if(e!=null){let{value:r}=e;if(!xy(r))return D9(e)&&L9(t)?kt(JSON.stringify(r)):kt(r)}return null}function VP(e,t,r){let{description:n,required:i,defaultValue:o}=r;return{name:e,type:k9(t),required:i,description:n,defaultValue:F9(o,t)}}function ud(e,t){var r;if(t!=null&&t.includesJsDoc){let{description:n,extractedTags:i}=t;n!=null&&(e.description=t.description);let o={...i,params:(r=i==null?void 0:i.params)==null?void 0:r.map(s=>({name:s.getPrettyName(),description:s.description}))};Object.values(o).filter(Boolean).length>0&&(e.jsDocTags=o)}return e}var B9=(e,t,r)=>{let n=VP(e,t.type,t);return n.sbType=ld(t),ud(n,r)},$9=(e,t,r)=>{let n=j9(e,t);return n.sbType=ld(t),ud(n,r)},U9=(e,t,r)=>{let n=I9(e,t);return n.sbType=ld(t),ud(n,r)},V9=(e,t,r)=>{let n=VP(e,{name:"unknown"},t);return ud(n,r)},JP=e=>{switch(e){case"JavaScript":return B9;case"TypeScript":return $9;case"Flow":return U9;default:return V9}},HP=e=>e.type!=null?"JavaScript":e.flowType!=null?"Flow":e.tsType!=null?"TypeScript":"Unknown",J9=e=>{let t=HP(e[0]),r=JP(t);return e.map(n=>{var o;let i=n;return(o=n.type)!=null&&o.elements&&(i={...n,type:{...n.type,value:n.type.elements}}),GP(i.name,i,t,r)})},H9=e=>{let t=Object.keys(e),r=HP(e[t[0]]),n=JP(r);return t.map(i=>{let o=e[i];return o!=null?GP(i,o,r,n):null}).filter(Boolean)},G9=(e,t)=>{let r=V8(e,t);return U8(r)?Array.isArray(r)?J9(r):H9(r):[]};function GP(e,t,r,n){let i=g9(t.description);return i.includesJsDoc&&i.ignore?null:{propDef:n(e,t,i),jsDocTags:i.extractedTags,docgenInfo:t,typeSystem:r}}function W9(e){return e!=null?J8(e):""}var WP=(...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((i,o)=>(Object.entries(o).forEach(([s,a])=>{let l=i[s];Array.isArray(a)||typeof l>"u"?i[s]=a:oo(a)&&oo(l)?t[s]=!0:typeof a<"u"&&(i[s]=a)}),i),{});return Object.keys(t).forEach(i=>{let o=r.filter(Boolean).map(s=>s[i]).filter(s=>typeof s<"u");o.every(s=>oo(s))?n[i]=WP(...o):n[i]=o[o.length-1]}),n},K9=e=>{let{component:t,argTypes:r,parameters:{docs:n={}}}=e,{extractArgTypes:i}=n;if(!i||!t)return r;let o=i(t);return o?WP(o,r):r},z9="storybook/docs",fte=`${z9}/snippet-rendered`,Zf=(e=>(e.AUTO="auto",e.CODE="code",e.DYNAMIC="dynamic",e))(Zf||{});/**
|
|
1021
|
-
* @vue/shared v3.5.32
|
|
1022
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1023
|
-
* @license MIT
|
|
1024
|
-
**/function Pr(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const ke={},zo=[],Jt=()=>{},Uo=()=>!1,Oo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),cd=e=>e.startsWith("onUpdate:"),qe=Object.assign,My=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},Y9=Object.prototype.hasOwnProperty,Ke=(e,t)=>Y9.call(e,t),ye=Array.isArray,Yo=e=>Ms(e)==="[object Map]",Ao=e=>Ms(e)==="[object Set]",UE=e=>Ms(e)==="[object Date]",X9=e=>Ms(e)==="[object RegExp]",_e=e=>typeof e=="function",Ae=e=>typeof e=="string",rr=e=>typeof e=="symbol",Ge=e=>e!==null&&typeof e=="object",qy=e=>(Ge(e)||_e(e))&&_e(e.then)&&_e(e.catch),KP=Object.prototype.toString,Ms=e=>KP.call(e),Q9=e=>Ms(e).slice(8,-1),dd=e=>Ms(e)==="[object Object]",pd=e=>Ae(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Vn=Pr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Z9=Pr("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),fd=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},eY=/-\w/g,Ze=fd(e=>e.replace(eY,t=>t.slice(1).toUpperCase())),tY=/\B([A-Z])/g,fr=fd(e=>e.replace(tY,"-$1").toLowerCase()),Po=fd(e=>e.charAt(0).toUpperCase()+e.slice(1)),Xo=fd(e=>e?`on${Po(e)}`:""),Bt=(e,t)=>!Object.is(e,t),Qo=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},zP=(e,t,r,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},hd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},nc=e=>{const t=Ae(e)?Number(e):NaN;return isNaN(t)?e:t};let VE;const md=()=>VE||(VE=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function rY(e,t){return e+JSON.stringify(t,(r,n)=>typeof n=="function"?n.toString():n)}const nY="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",iY=Pr(nY);function Ol(e){if(ye(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],i=Ae(n)?YP(n):Ol(n);if(i)for(const o in i)t[o]=i[o]}return t}else if(Ae(e)||Ge(e))return e}const oY=/;(?![^(]*\))/g,sY=/:([^]+)/,aY=/\/\*[^]*?\*\//g;function YP(e){const t={};return e.replace(aY,"").split(oY).forEach(r=>{if(r){const n=r.split(sY);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Al(e){let t="";if(Ae(e))t=e;else if(ye(e))for(let r=0;r<e.length;r++){const n=Al(e[r]);n&&(t+=n+" ")}else if(Ge(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function lY(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Ae(t)&&(e.class=Al(t)),r&&(e.style=Ol(r)),e}const uY="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",cY="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",dY="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",pY="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",fY=Pr(uY),hY=Pr(cY),mY=Pr(dY),yY=Pr(pY),gY="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",bY=Pr(gY);function XP(e){return!!e||e===""}function vY(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&n<e.length;n++)r=Wn(e[n],t[n]);return r}function Wn(e,t){if(e===t)return!0;let r=UE(e),n=UE(t);if(r||n)return r&&n?e.getTime()===t.getTime():!1;if(r=rr(e),n=rr(t),r||n)return e===t;if(r=ye(e),n=ye(t),r||n)return r&&n?vY(e,t):!1;if(r=Ge(e),n=Ge(t),r||n){if(!r||!n)return!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const s in e){const a=e.hasOwnProperty(s),l=t.hasOwnProperty(s);if(a&&!l||!a&&l||!Wn(e[s],t[s]))return!1}}return String(e)===String(t)}function yd(e,t){return e.findIndex(r=>Wn(r,t))}const QP=e=>!!(e&&e.__v_isRef===!0),ZP=e=>Ae(e)?e:e==null?"":ye(e)||Ge(e)&&(e.toString===KP||!_e(e.toString))?QP(e)?ZP(e.value):JSON.stringify(e,eC,2):String(e),eC=(e,t)=>QP(t)?eC(e,t.value):Yo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i],o)=>(r[Ap(n,o)+" =>"]=i,r),{})}:Ao(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Ap(r))}:rr(t)?Ap(t):Ge(t)&&!ye(t)&&!dd(t)?String(t):t,Ap=(e,t="")=>{var r;return rr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};function EY(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}/**
|
|
1025
|
-
* @vue/reactivity v3.5.32
|
|
1026
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1027
|
-
* @license MIT
|
|
1028
|
-
**/let Kt;class jy{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Kt,!t&&Kt&&(this.index=(Kt.scopes||(Kt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].pause();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].resume();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].resume()}}run(t){if(this._active){const r=Kt;try{return Kt=this,t()}finally{Kt=r}}}on(){++this._on===1&&(this.prevScope=Kt,Kt=this)}off(){this._on>0&&--this._on===0&&(Kt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(this.effects.length=0,r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function TY(e){return new jy(e)}function tC(){return Kt}function wY(e,t=!1){Kt&&Kt.cleanups.push(e)}let rt;const Pp=new WeakSet;class za{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Kt&&Kt.active&&Kt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Pp.has(this)&&(Pp.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||nC(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,JE(this),iC(this);const t=rt,r=Xr;rt=this,Xr=!0;try{return this.fn()}finally{oC(this),rt=t,Xr=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ly(t);this.deps=this.depsTail=void 0,JE(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Pp.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){eh(this)&&this.run()}get dirty(){return eh(this)}}let rC=0,Ea,Ta;function nC(e,t=!1){if(e.flags|=8,t){e.next=Ta,Ta=e;return}e.next=Ea,Ea=e}function ky(){rC++}function Dy(){if(--rC>0)return;if(Ta){let t=Ta;for(Ta=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Ea;){let t=Ea;for(Ea=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function iC(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function oC(e){let t,r=e.depsTail,n=r;for(;n;){const i=n.prevDep;n.version===-1?(n===r&&(r=i),Ly(n),_Y(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=r}function eh(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(sC(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function sC(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ya)||(e.globalVersion=Ya,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!eh(e))))return;e.flags|=2;const t=e.dep,r=rt,n=Xr;rt=e,Xr=!0;try{iC(e);const i=e.fn(e._value);(t.version===0||Bt(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{rt=r,Xr=n,oC(e),e.flags&=-3}}function Ly(e,t=!1){const{dep:r,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let o=r.computed.deps;o;o=o.nextDep)Ly(o,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function _Y(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}function SY(e,t){e.effect instanceof za&&(e=e.effect.fn);const r=new za(e);t&&qe(r,t);try{r.run()}catch(i){throw r.stop(),i}const n=r.run.bind(r);return n.effect=r,n}function RY(e){e.effect.stop()}let Xr=!0;const aC=[];function Kn(){aC.push(Xr),Xr=!1}function zn(){const e=aC.pop();Xr=e===void 0?!0:e}function JE(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=rt;rt=void 0;try{t()}finally{rt=r}}}let Ya=0;class OY{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class gd{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!rt||!Xr||rt===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==rt)r=this.activeLink=new OY(rt,this),rt.deps?(r.prevDep=rt.depsTail,rt.depsTail.nextDep=r,rt.depsTail=r):rt.deps=rt.depsTail=r,lC(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=rt.depsTail,r.nextDep=void 0,rt.depsTail.nextDep=r,rt.depsTail=r,rt.deps===r&&(rt.deps=n)}return r}trigger(t){this.version++,Ya++,this.notify(t)}notify(t){ky();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{Dy()}}}function lC(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)lC(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const ic=new WeakMap,so=Symbol(""),th=Symbol(""),Xa=Symbol("");function Yt(e,t,r){if(Xr&&rt){let n=ic.get(e);n||ic.set(e,n=new Map);let i=n.get(r);i||(n.set(r,i=new gd),i.map=n,i.key=r),i.track()}}function qn(e,t,r,n,i,o){const s=ic.get(e);if(!s){Ya++;return}const a=l=>{l&&l.trigger()};if(ky(),t==="clear")s.forEach(a);else{const l=ye(e),u=l&&pd(r);if(l&&r==="length"){const d=Number(n);s.forEach((p,f)=>{(f==="length"||f===Xa||!rr(f)&&f>=d)&&a(p)})}else switch((r!==void 0||s.has(void 0))&&a(s.get(r)),u&&a(s.get(Xa)),t){case"add":l?u&&a(s.get("length")):(a(s.get(so)),Yo(e)&&a(s.get(th)));break;case"delete":l||(a(s.get(so)),Yo(e)&&a(s.get(th)));break;case"set":Yo(e)&&a(s.get(so));break}}Dy()}function AY(e,t){const r=ic.get(e);return r&&r.get(t)}function Mo(e){const t=Le(e);return t===e?t:(Yt(t,"iterate",Xa),yr(e)?t:t.map(tn))}function bd(e){return Yt(e=Le(e),"iterate",Xa),e}function cn(e,t){return gn(e)?bs(yn(e)?tn(t):t):tn(t)}const PY={__proto__:null,[Symbol.iterator](){return Cp(this,Symbol.iterator,e=>cn(this,e))},concat(...e){return Mo(this).concat(...e.map(t=>ye(t)?Mo(t):t))},entries(){return Cp(this,"entries",e=>(e[1]=cn(this,e[1]),e))},every(e,t){return On(this,"every",e,t,void 0,arguments)},filter(e,t){return On(this,"filter",e,t,r=>r.map(n=>cn(this,n)),arguments)},find(e,t){return On(this,"find",e,t,r=>cn(this,r),arguments)},findIndex(e,t){return On(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return On(this,"findLast",e,t,r=>cn(this,r),arguments)},findLastIndex(e,t){return On(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return On(this,"forEach",e,t,void 0,arguments)},includes(...e){return xp(this,"includes",e)},indexOf(...e){return xp(this,"indexOf",e)},join(e){return Mo(this).join(e)},lastIndexOf(...e){return xp(this,"lastIndexOf",e)},map(e,t){return On(this,"map",e,t,void 0,arguments)},pop(){return zs(this,"pop")},push(...e){return zs(this,"push",e)},reduce(e,...t){return HE(this,"reduce",e,t)},reduceRight(e,...t){return HE(this,"reduceRight",e,t)},shift(){return zs(this,"shift")},some(e,t){return On(this,"some",e,t,void 0,arguments)},splice(...e){return zs(this,"splice",e)},toReversed(){return Mo(this).toReversed()},toSorted(e){return Mo(this).toSorted(e)},toSpliced(...e){return Mo(this).toSpliced(...e)},unshift(...e){return zs(this,"unshift",e)},values(){return Cp(this,"values",e=>cn(this,e))}};function Cp(e,t,r){const n=bd(e),i=n[t]();return n!==e&&!yr(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.done||(o.value=r(o.value)),o}),i}const CY=Array.prototype;function On(e,t,r,n,i,o){const s=bd(e),a=s!==e&&!yr(e),l=s[t];if(l!==CY[t]){const p=l.apply(e,o);return a?tn(p):p}let u=r;s!==e&&(a?u=function(p,f){return r.call(this,cn(e,p),f,e)}:r.length>2&&(u=function(p,f){return r.call(this,p,f,e)}));const d=l.call(s,u,n);return a&&i?i(d):d}function HE(e,t,r,n){const i=bd(e),o=i!==e&&!yr(e);let s=r,a=!1;i!==e&&(o?(a=n.length===0,s=function(u,d,p){return a&&(a=!1,u=cn(e,u)),r.call(this,u,cn(e,d),p,e)}):r.length>3&&(s=function(u,d,p){return r.call(this,u,d,p,e)}));const l=i[t](s,...n);return a?cn(e,l):l}function xp(e,t,r){const n=Le(e);Yt(n,"iterate",Xa);const i=n[t](...r);return(i===-1||i===!1)&&Pl(r[0])?(r[0]=Le(r[0]),n[t](...r)):i}function zs(e,t,r=[]){Kn(),ky();const n=Le(e)[t].apply(e,r);return Dy(),zn(),n}const xY=Pr("__proto__,__v_isRef,__isVue"),uC=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(rr));function NY(e){rr(e)||(e=String(e));const t=Le(this);return Yt(t,"has",e),t.hasOwnProperty(e)}class cC{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){if(r==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return o;if(r==="__v_raw")return n===(i?o?yC:mC:o?hC:fC).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const s=ye(t);if(!i){let l;if(s&&(l=PY[r]))return l;if(r==="hasOwnProperty")return NY}const a=Reflect.get(t,r,_t(t)?t:n);if((rr(r)?uC.has(r):xY(r))||(i||Yt(t,"get",r),o))return a;if(_t(a)){const l=s&&pd(r)?a:a.value;return i&&Ge(l)?oc(l):l}return Ge(a)?i?oc(a):Pi(a):a}}class dC extends cC{constructor(t=!1){super(!1,t)}set(t,r,n,i){let o=t[r];const s=ye(t)&&pd(r);if(!this._isShallow){const u=gn(o);if(!yr(n)&&!gn(n)&&(o=Le(o),n=Le(n)),!s&&_t(o)&&!_t(n))return u||(o.value=n),!0}const a=s?Number(r)<t.length:Ke(t,r),l=Reflect.set(t,r,n,_t(t)?t:i);return t===Le(i)&&(a?Bt(n,o)&&qn(t,"set",r,n):qn(t,"add",r,n)),l}deleteProperty(t,r){const n=Ke(t,r);t[r];const i=Reflect.deleteProperty(t,r);return i&&n&&qn(t,"delete",r,void 0),i}has(t,r){const n=Reflect.has(t,r);return(!rr(r)||!uC.has(r))&&Yt(t,"has",r),n}ownKeys(t){return Yt(t,"iterate",ye(t)?"length":so),Reflect.ownKeys(t)}}class pC extends cC{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const IY=new dC,MY=new pC,qY=new dC(!0),jY=new pC(!0),rh=e=>e,eu=e=>Reflect.getPrototypeOf(e);function kY(e,t,r){return function(...n){const i=this.__v_raw,o=Le(i),s=Yo(o),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,u=i[e](...n),d=r?rh:t?bs:tn;return!t&&Yt(o,"iterate",l?th:so),qe(Object.create(u),{next(){const{value:p,done:f}=u.next();return f?{value:p,done:f}:{value:a?[d(p[0]),d(p[1])]:d(p),done:f}}})}}function tu(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function DY(e,t){const r={get(i){const o=this.__v_raw,s=Le(o),a=Le(i);e||(Bt(i,a)&&Yt(s,"get",i),Yt(s,"get",a));const{has:l}=eu(s),u=t?rh:e?bs:tn;if(l.call(s,i))return u(o.get(i));if(l.call(s,a))return u(o.get(a));o!==s&&o.get(i)},get size(){const i=this.__v_raw;return!e&&Yt(Le(i),"iterate",so),i.size},has(i){const o=this.__v_raw,s=Le(o),a=Le(i);return e||(Bt(i,a)&&Yt(s,"has",i),Yt(s,"has",a)),i===a?o.has(i):o.has(i)||o.has(a)},forEach(i,o){const s=this,a=s.__v_raw,l=Le(a),u=t?rh:e?bs:tn;return!e&&Yt(l,"iterate",so),a.forEach((d,p)=>i.call(o,u(d),u(p),s))}};return qe(r,e?{add:tu("add"),set:tu("set"),delete:tu("delete"),clear:tu("clear")}:{add(i){const o=Le(this),s=eu(o),a=Le(i),l=!t&&!yr(i)&&!gn(i)?a:i;return s.has.call(o,l)||Bt(i,l)&&s.has.call(o,i)||Bt(a,l)&&s.has.call(o,a)||(o.add(l),qn(o,"add",l,l)),this},set(i,o){!t&&!yr(o)&&!gn(o)&&(o=Le(o));const s=Le(this),{has:a,get:l}=eu(s);let u=a.call(s,i);u||(i=Le(i),u=a.call(s,i));const d=l.call(s,i);return s.set(i,o),u?Bt(o,d)&&qn(s,"set",i,o):qn(s,"add",i,o),this},delete(i){const o=Le(this),{has:s,get:a}=eu(o);let l=s.call(o,i);l||(i=Le(i),l=s.call(o,i)),a&&a.call(o,i);const u=o.delete(i);return l&&qn(o,"delete",i,void 0),u},clear(){const i=Le(this),o=i.size!==0,s=i.clear();return o&&qn(i,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=kY(i,e,t)}),r}function vd(e,t){const r=DY(e,t);return(n,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(Ke(r,i)&&i in n?r:n,i,o)}const LY={get:vd(!1,!1)},FY={get:vd(!1,!0)},BY={get:vd(!0,!1)},$Y={get:vd(!0,!0)},fC=new WeakMap,hC=new WeakMap,mC=new WeakMap,yC=new WeakMap;function UY(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function VY(e){return e.__v_skip||!Object.isExtensible(e)?0:UY(Q9(e))}function Pi(e){return gn(e)?e:Ed(e,!1,IY,LY,fC)}function gC(e){return Ed(e,!1,qY,FY,hC)}function oc(e){return Ed(e,!0,MY,BY,mC)}function JY(e){return Ed(e,!0,jY,$Y,yC)}function Ed(e,t,r,n,i){if(!Ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=VY(e);if(o===0)return e;const s=i.get(e);if(s)return s;const a=new Proxy(e,o===2?n:r);return i.set(e,a),a}function yn(e){return gn(e)?yn(e.__v_raw):!!(e&&e.__v_isReactive)}function gn(e){return!!(e&&e.__v_isReadonly)}function yr(e){return!!(e&&e.__v_isShallow)}function Pl(e){return e?!!e.__v_raw:!1}function Le(e){const t=e&&e.__v_raw;return t?Le(t):e}function bC(e){return!Ke(e,"__v_skip")&&Object.isExtensible(e)&&zP(e,"__v_skip",!0),e}const tn=e=>Ge(e)?Pi(e):e,bs=e=>Ge(e)?oc(e):e;function _t(e){return e?e.__v_isRef===!0:!1}function wa(e){return EC(e,!1)}function vC(e){return EC(e,!0)}function EC(e,t){return _t(e)?e:new HY(e,t)}class HY{constructor(t,r){this.dep=new gd,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:Le(t),this._value=r?t:tn(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||yr(t)||gn(t);t=n?t:Le(t),Bt(t,r)&&(this._rawValue=t,this._value=n?t:tn(t),this.dep.trigger())}}function GY(e){e.dep&&e.dep.trigger()}function Cl(e){return _t(e)?e.value:e}function WY(e){return _e(e)?e():Cl(e)}const KY={get:(e,t,r)=>t==="__v_raw"?e:Cl(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return _t(i)&&!_t(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function Fy(e){return yn(e)?e:new Proxy(e,KY)}class zY{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new gd,{get:n,set:i}=t(r.track.bind(r),r.trigger.bind(r));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function TC(e){return new zY(e)}function YY(e){const t=ye(e)?new Array(e.length):{};for(const r in e)t[r]=wC(e,r);return t}class XY{constructor(t,r,n){this._object=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=rr(r)?r:String(r),this._raw=Le(t);let i=!0,o=t;if(!ye(t)||rr(this._key)||!pd(this._key))do i=!Pl(o)||yr(o);while(i&&(o=o.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=Cl(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&_t(this._raw[this._key])){const r=this._object[this._key];if(_t(r)){r.value=t;return}}this._object[this._key]=t}get dep(){return AY(this._raw,this._key)}}class QY{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ZY(e,t,r){return _t(e)?e:_e(e)?new QY(e):Ge(e)&&arguments.length>1?wC(e,t,r):wa(e)}function wC(e,t,r){return new XY(e,t,r)}class e4{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new gd(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ya-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&rt!==this)return nC(this,!0),!0}get value(){const t=this.dep.track();return sC(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function t4(e,t,r=!1){let n,i;return _e(e)?n=e:(n=e.get,i=e.set),new e4(n,i,r)}const r4={GET:"get",HAS:"has",ITERATE:"iterate"},n4={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},ru={},sc=new WeakMap;let bi;function i4(){return bi}function _C(e,t=!1,r=bi){if(r){let n=sc.get(r);n||sc.set(r,n=[]),n.push(e)}}function o4(e,t,r=ke){const{immediate:n,deep:i,once:o,scheduler:s,augmentJob:a,call:l}=r,u=A=>i?A:yr(A)||i===!1||i===0?jn(A,1):jn(A);let d,p,f,h,y=!1,g=!1;if(_t(e)?(p=()=>e.value,y=yr(e)):yn(e)?(p=()=>u(e),y=!0):ye(e)?(g=!0,y=e.some(A=>yn(A)||yr(A)),p=()=>e.map(A=>{if(_t(A))return A.value;if(yn(A))return u(A);if(_e(A))return l?l(A,2):A()})):_e(e)?t?p=l?()=>l(e,2):e:p=()=>{if(f){Kn();try{f()}finally{zn()}}const A=bi;bi=d;try{return l?l(e,3,[h]):e(h)}finally{bi=A}}:p=Jt,t&&i){const A=p,C=i===!0?1/0:i;p=()=>jn(A(),C)}const v=tC(),b=()=>{d.stop(),v&&v.active&&My(v.effects,d)};if(o&&t){const A=t;t=(...C)=>{A(...C),b()}}let E=g?new Array(e.length).fill(ru):ru;const w=A=>{if(!(!(d.flags&1)||!d.dirty&&!A))if(t){const C=d.run();if(i||y||(g?C.some((R,S)=>Bt(R,E[S])):Bt(C,E))){f&&f();const R=bi;bi=d;try{const S=[C,E===ru?void 0:g&&E[0]===ru?[]:E,h];E=C,l?l(t,3,S):t(...S)}finally{bi=R}}}else d.run()};return a&&a(w),d=new za(p),d.scheduler=s?()=>s(w,!1):w,h=A=>_C(A,!1,d),f=d.onStop=()=>{const A=sc.get(d);if(A){if(l)l(A,4);else for(const C of A)C();sc.delete(d)}},t?n?w(!0):E=d.run():s?s(w.bind(null,!0),!0):d.run(),b.pause=d.pause.bind(d),b.resume=d.resume.bind(d),b.stop=b,b}function jn(e,t=1/0,r){if(t<=0||!Ge(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,_t(e))jn(e.value,t,r);else if(ye(e))for(let n=0;n<e.length;n++)jn(e[n],t,r);else if(Ao(e)||Yo(e))e.forEach(n=>{jn(n,t,r)});else if(dd(e)){for(const n in e)jn(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&jn(e[n],t,r)}return e}/**
|
|
1029
|
-
* @vue/runtime-core v3.5.32
|
|
1030
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1031
|
-
* @license MIT
|
|
1032
|
-
**/const SC=[];function s4(e){SC.push(e)}function a4(){SC.pop()}function l4(e,t){}const u4={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},c4={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function qs(e,t,r,n){try{return n?e(...n):e()}catch(i){Co(i,t,r)}}function Br(e,t,r,n){if(_e(e)){const i=qs(e,t,r,n);return i&&qy(i)&&i.catch(o=>{Co(o,t,r)}),i}if(ye(e)){const i=[];for(let o=0;o<e.length;o++)i.push(Br(e[o],t,r,n));return i}}function Co(e,t,r,n=!0){const i=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||ke;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${r}`;for(;a;){const d=a.ec;if(d){for(let p=0;p<d.length;p++)if(d[p](e,l,u)===!1)return}a=a.parent}if(o){Kn(),qs(o,null,10,[e,l,u]),zn();return}}d4(e,r,i,n,s)}function d4(e,t,r,n=!0,i=!1){if(i)throw e;console.error(e)}const ar=[];let an=-1;const Zo=[];let vi=null,ko=0;const RC=Promise.resolve();let ac=null;function Td(e){const t=ac||RC;return e?t.then(this?e.bind(this):e):t}function p4(e){let t=an+1,r=ar.length;for(;t<r;){const n=t+r>>>1,i=ar[n],o=Za(i);o<e||o===e&&i.flags&2?t=n+1:r=n}return t}function By(e){if(!(e.flags&1)){const t=Za(e),r=ar[ar.length-1];!r||!(e.flags&2)&&t>=Za(r)?ar.push(e):ar.splice(p4(t),0,e),e.flags|=1,OC()}}function OC(){ac||(ac=RC.then(AC))}function Qa(e){ye(e)?Zo.push(...e):vi&&e.id===-1?vi.splice(ko+1,0,e):e.flags&1||(Zo.push(e),e.flags|=1),OC()}function GE(e,t,r=an+1){for(;r<ar.length;r++){const n=ar[r];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;ar.splice(r,1),r--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function lc(e){if(Zo.length){const t=[...new Set(Zo)].sort((r,n)=>Za(r)-Za(n));if(Zo.length=0,vi){vi.push(...t);return}for(vi=t,ko=0;ko<vi.length;ko++){const r=vi[ko];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}vi=null,ko=0}}const Za=e=>e.id==null?e.flags&2?-1:1/0:e.id;function AC(e){try{for(an=0;an<ar.length;an++){const t=ar[an];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),qs(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;an<ar.length;an++){const t=ar[an];t&&(t.flags&=-2)}an=-1,ar.length=0,lc(),ac=null,(ar.length||Zo.length)&&AC()}}let Do,nu=[];function PC(e,t){var r,n;Do=e,Do?(Do.enabled=!0,nu.forEach(({event:i,args:o})=>Do.emit(i,...o)),nu=[]):typeof window<"u"&&window.HTMLElement&&!((n=(r=window.navigator)==null?void 0:r.userAgent)!=null&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{PC(o,t)}),setTimeout(()=>{Do||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,nu=[])},3e3)):nu=[]}let Vt=null,wd=null;function el(e){const t=Vt;return Vt=e,wd=e&&e.type.__scopeId||null,t}function f4(e){wd=e}function h4(){wd=null}const m4=e=>$y;function $y(e,t=Vt,r){if(!t||e._n)return e;const n=(...i)=>{n._d&&il(-1);const o=el(t);let s;try{s=e(...i)}finally{el(o),n._d&&il(1)}return s};return n._n=!0,n._c=!0,n._d=!0,n}function y4(e,t){if(Vt===null)return e;const r=Ml(Vt),n=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,s,a,l=ke]=t[i];o&&(_e(o)&&(o={mounted:o,updated:o}),o.deep&&jn(s),n.push({dir:o,instance:r,value:s,oldValue:void 0,arg:a,modifiers:l}))}return e}function ln(e,t,r,n){const i=e.dirs,o=t&&t.dirs;for(let s=0;s<i.length;s++){const a=i[s];o&&(a.oldValue=o[s].value);let l=a.dir[n];l&&(Kn(),Br(l,r,8,[e.el,a,e,t]),zn())}}function CC(e,t){if($t){let r=$t.provides;const n=$t.parent&&$t.parent.provides;n===r&&(r=$t.provides=Object.create(n)),r[e]=t}}function _a(e,t,r=!1){const n=lr();if(n||ao){let i=ao?ao._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return r&&_e(t)?t.call(n&&n.proxy):t}}function g4(){return!!(lr()||ao)}const xC=Symbol.for("v-scx"),NC=()=>_a(xC);function b4(e,t){return xl(e,null,t)}function v4(e,t){return xl(e,null,{flush:"post"})}function IC(e,t){return xl(e,null,{flush:"sync"})}function es(e,t,r){return xl(e,t,r)}function xl(e,t,r=ke){const{immediate:n,deep:i,flush:o,once:s}=r,a=qe({},r),l=t&&n||!t&&o!=="post";let u;if(Eo){if(o==="sync"){const h=NC();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=Jt,h.resume=Jt,h.pause=Jt,h}}const d=$t;a.call=(h,y,g)=>Br(h,d,y,g);let p=!1;o==="post"?a.scheduler=h=>{Tt(h,d&&d.suspense)}:o!=="sync"&&(p=!0,a.scheduler=(h,y)=>{y?h():By(h)}),a.augmentJob=h=>{t&&(h.flags|=4),p&&(h.flags|=2,d&&(h.id=d.uid,h.i=d))};const f=o4(e,t,a);return Eo&&(u?u.push(f):l&&f()),f}function E4(e,t,r){const n=this.proxy,i=Ae(e)?e.includes(".")?MC(n,e):()=>n[e]:e.bind(n,n);let o;_e(t)?o=t:(o=t.handler,r=t);const s=js(this),a=xl(i,o.bind(n),r);return s(),a}function MC(e,t){const r=t.split(".");return()=>{let n=e;for(let i=0;i<r.length&&n;i++)n=n[r[i]];return n}}const Ji=new WeakMap,qC=Symbol("_vte"),jC=e=>e.__isTeleport,Qi=e=>e&&(e.disabled||e.disabled===""),T4=e=>e&&(e.defer||e.defer===""),WE=e=>typeof SVGElement<"u"&&e instanceof SVGElement,KE=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,nh=(e,t)=>{const r=e&&e.to;return Ae(r)?t?t(r):null:r},w4={name:"Teleport",__isTeleport:!0,process(e,t,r,n,i,o,s,a,l,u){const{mc:d,pc:p,pbc:f,o:{insert:h,querySelector:y,createText:g,createComment:v}}=u,b=Qi(t.props);let{dynamicChildren:E}=t;const w=(R,S,_)=>{R.shapeFlag&16&&d(R.children,S,_,i,o,s,a,l)},A=(R=t)=>{const S=Qi(R.props),_=R.target=nh(R.props,y),O=ih(_,R,g,h);_&&(s!=="svg"&&WE(_)?s="svg":s!=="mathml"&&KE(_)&&(s="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(_),S||(w(R,_,O),sa(R,!1)))},C=R=>{const S=()=>{Ji.get(R)===S&&(Ji.delete(R),Qi(R.props)&&(w(R,r,R.anchor),sa(R,!0)),A(R))};Ji.set(R,S),Tt(S,o)};if(e==null){const R=t.el=g(""),S=t.anchor=g("");if(h(R,r,n),h(S,r,n),T4(t.props)||o&&o.pendingBranch){C(t);return}b&&(w(t,r,S),sa(t,!0)),A()}else{t.el=e.el;const R=t.anchor=e.anchor,S=Ji.get(e);if(S){S.flags|=8,Ji.delete(e),C(t);return}t.targetStart=e.targetStart;const _=t.target=e.target,O=t.targetAnchor=e.targetAnchor,M=Qi(e.props),I=M?r:_,k=M?R:O;if(s==="svg"||WE(_)?s="svg":(s==="mathml"||KE(_))&&(s="mathml"),E?(f(e.dynamicChildren,E,I,i,o,s,a),Zy(e,t,!0)):l||p(e,t,I,k,i,o,s,a,!1),b)M?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):iu(t,r,R,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const N=t.target=nh(t.props,y);N&&iu(t,N,null,u,0)}else M&&iu(t,_,O,u,1);sa(t,b)}},remove(e,t,r,{um:n,o:{remove:i}},o){const{shapeFlag:s,children:a,anchor:l,targetStart:u,targetAnchor:d,target:p,props:f}=e;let h=o||!Qi(f);const y=Ji.get(e);if(y&&(y.flags|=8,Ji.delete(e),h=!1),p&&(i(u),i(d)),o&&i(l),s&16)for(let g=0;g<a.length;g++){const v=a[g];n(v,t,r,h,!!v.dynamicChildren)}},move:iu,hydrate:_4};function iu(e,t,r,{o:{insert:n},m:i},o=2){o===0&&n(e.targetAnchor,t,r);const{el:s,anchor:a,shapeFlag:l,children:u,props:d}=e,p=o===2;if(p&&n(s,t,r),(!p||Qi(d))&&l&16)for(let f=0;f<u.length;f++)i(u[f],t,r,2);p&&n(a,t,r)}function _4(e,t,r,n,i,o,{o:{nextSibling:s,parentNode:a,querySelector:l,insert:u,createText:d}},p){function f(v,b){let E=b;for(;E;){if(E&&E.nodeType===8){if(E.data==="teleport start anchor")t.targetStart=E;else if(E.data==="teleport anchor"){t.targetAnchor=E,v._lpa=t.targetAnchor&&s(t.targetAnchor);break}}E=s(E)}}function h(v,b){b.anchor=p(s(v),b,a(v),r,n,i,o)}const y=t.target=nh(t.props,l),g=Qi(t.props);if(y){const v=y._lpa||y.firstChild;t.shapeFlag&16&&(g?(h(e,t),f(y,v),t.targetAnchor||ih(y,t,d,u,a(e)===y?e:null)):(t.anchor=s(e),f(y,v),t.targetAnchor||ih(y,t,d,u),p(v&&s(v),t,y,r,n,i,o))),sa(t,g)}else g&&t.shapeFlag&16&&(h(e,t),t.targetStart=e,t.targetAnchor=s(e));return t.anchor&&s(t.anchor)}const S4=w4;function sa(e,t){const r=e.ctx;if(r&&r.ut){let n,i;for(t?(n=e.el,i=e.anchor):(n=e.targetStart,i=e.targetAnchor);n&&n!==i;)n.nodeType===1&&n.setAttribute("data-v-owner",r.uid),n=n.nextSibling;r.ut()}}function ih(e,t,r,n,i=null){const o=t.targetStart=r(""),s=t.targetAnchor=r("");return o[qC]=s,e&&(n(o,e,i),n(s,e,i)),s}const un=Symbol("_leaveCb"),Ys=Symbol("_enterCb");function Uy(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Il(()=>{e.isMounted=!0}),Od(()=>{e.isUnmounting=!0}),e}const Mr=[Function,Array],Vy={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Mr,onEnter:Mr,onAfterEnter:Mr,onEnterCancelled:Mr,onBeforeLeave:Mr,onLeave:Mr,onAfterLeave:Mr,onLeaveCancelled:Mr,onBeforeAppear:Mr,onAppear:Mr,onAfterAppear:Mr,onAppearCancelled:Mr},kC=e=>{const t=e.subTree;return t.component?kC(t.component):t},R4={name:"BaseTransition",props:Vy,setup(e,{slots:t}){const r=lr(),n=Uy();return()=>{const i=t.default&&_d(t.default(),!0);if(!i||!i.length)return;const o=DC(i),s=Le(e),{mode:a}=s;if(n.isLeaving)return Np(o);const l=zE(o);if(!l)return Np(o);let u=vs(l,s,n,r,p=>u=p);l.type!==vt&&Yn(l,u);let d=r.subTree&&zE(r.subTree);if(d&&d.type!==vt&&!zr(d,l)&&kC(r).type!==vt){let p=vs(d,s,n,r);if(Yn(d,p),a==="out-in"&&l.type!==vt)return n.isLeaving=!0,p.afterLeave=()=>{n.isLeaving=!1,r.job.flags&8||r.update(),delete p.afterLeave,d=void 0},Np(o);a==="in-out"&&l.type!==vt?p.delayLeave=(f,h,y)=>{const g=FC(n,d);g[String(d.key)]=d,f[un]=()=>{h(),f[un]=void 0,delete u.delayedLeave,d=void 0},u.delayedLeave=()=>{y(),delete u.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return o}}};function DC(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==vt){t=r;break}}return t}const LC=R4;function FC(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function vs(e,t,r,n,i){const{appear:o,mode:s,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:d,onEnterCancelled:p,onBeforeLeave:f,onLeave:h,onAfterLeave:y,onLeaveCancelled:g,onBeforeAppear:v,onAppear:b,onAfterAppear:E,onAppearCancelled:w}=t,A=String(e.key),C=FC(r,e),R=(O,M)=>{O&&Br(O,n,9,M)},S=(O,M)=>{const I=M[1];R(O,M),ye(O)?O.every(k=>k.length<=1)&&I():O.length<=1&&I()},_={mode:s,persisted:a,beforeEnter(O){let M=l;if(!r.isMounted)if(o)M=v||l;else return;O[un]&&O[un](!0);const I=C[A];I&&zr(e,I)&&I.el[un]&&I.el[un](),R(M,[O])},enter(O){if(C[A]===e)return;let M=u,I=d,k=p;if(!r.isMounted)if(o)M=b||u,I=E||d,k=w||p;else return;let N=!1;O[Ys]=q=>{N||(N=!0,q?R(k,[O]):R(I,[O]),_.delayedLeave&&_.delayedLeave(),O[Ys]=void 0)};const P=O[Ys].bind(null,!1);M?S(M,[O,P]):P()},leave(O,M){const I=String(e.key);if(O[Ys]&&O[Ys](!0),r.isUnmounting)return M();R(f,[O]);let k=!1;O[un]=P=>{k||(k=!0,M(),P?R(g,[O]):R(y,[O]),O[un]=void 0,C[I]===e&&delete C[I])};const N=O[un].bind(null,!1);C[I]=e,h?S(h,[O,N]):N()},clone(O){const M=vs(O,t,r,n,i);return i&&i(M),M}};return _}function Np(e){if(Nl(e))return e=bn(e),e.children=null,e}function zE(e){if(!Nl(e))return jC(e.type)&&e.children?DC(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&_e(r.default))return r.default()}}function Yn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Yn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function _d(e,t=!1,r){let n=[],i=0;for(let o=0;o<e.length;o++){let s=e[o];const a=r==null?s.key:String(r)+String(s.key!=null?s.key:o);s.type===qt?(s.patchFlag&128&&i++,n=n.concat(_d(s.children,t,a))):(t||s.type!==vt)&&n.push(a!=null?bn(s,{key:a}):s)}if(i>1)for(let o=0;o<n.length;o++)n[o].patchFlag=-2;return n}function Jy(e,t){return _e(e)?qe({name:e.name},t,{setup:e}):e}function O4(){const e=lr();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Hy(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function A4(e){const t=lr(),r=vC(null);if(t){const i=t.refs===ke?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>r.value,set:o=>r.value=o})}return r}function YE(e,t){let r;return!!((r=Object.getOwnPropertyDescriptor(e,t))&&!r.configurable)}const uc=new WeakMap;function ts(e,t,r,n,i=!1){if(ye(e)){e.forEach((g,v)=>ts(g,t&&(ye(t)?t[v]:t),r,n,i));return}if(Jn(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&ts(e,t,r,n.component.subTree);return}const o=n.shapeFlag&4?Ml(n.component):n.el,s=i?null:o,{i:a,r:l}=e,u=t&&t.r,d=a.refs===ke?a.refs={}:a.refs,p=a.setupState,f=Le(p),h=p===ke?Uo:g=>YE(d,g)?!1:Ke(f,g),y=(g,v)=>!(v&&YE(d,v));if(u!=null&&u!==l){if(XE(t),Ae(u))d[u]=null,h(u)&&(p[u]=null);else if(_t(u)){const g=t;y(u,g.k)&&(u.value=null),g.k&&(d[g.k]=null)}}if(_e(l))qs(l,a,12,[s,d]);else{const g=Ae(l),v=_t(l);if(g||v){const b=()=>{if(e.f){const E=g?h(l)?p[l]:d[l]:y()||!e.k?l.value:d[e.k];if(i)ye(E)&&My(E,o);else if(ye(E))E.includes(o)||E.push(o);else if(g)d[l]=[o],h(l)&&(p[l]=d[l]);else{const w=[o];y(l,e.k)&&(l.value=w),e.k&&(d[e.k]=w)}}else g?(d[l]=s,h(l)&&(p[l]=s)):v&&(y(l,e.k)&&(l.value=s),e.k&&(d[e.k]=s))};if(s){const E=()=>{b(),uc.delete(e)};E.id=-1,uc.set(e,E),Tt(E,r)}else XE(e),b()}}}function XE(e){const t=uc.get(e);t&&(t.flags|=8,uc.delete(e))}let QE=!1;const qo=()=>{QE||(console.error("Hydration completed but contains mismatches."),QE=!0)},P4=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",C4=e=>e.namespaceURI.includes("MathML"),ou=e=>{if(e.nodeType===1){if(P4(e))return"svg";if(C4(e))return"mathml"}},Vo=e=>e.nodeType===8;function x4(e){const{mt:t,p:r,o:{patchProp:n,createText:i,nextSibling:o,parentNode:s,remove:a,insert:l,createComment:u}}=e,d=(w,A)=>{if(!A.hasChildNodes()){r(null,w,A),lc(),A._vnode=w;return}p(A.firstChild,w,null,null,null),lc(),A._vnode=w},p=(w,A,C,R,S,_=!1)=>{_=_||!!A.dynamicChildren;const O=Vo(w)&&w.data==="[",M=()=>g(w,A,C,R,S,O),{type:I,ref:k,shapeFlag:N,patchFlag:P}=A;let q=w.nodeType;A.el=w,P===-2&&(_=!1,A.dynamicChildren=null);let F=null;switch(I){case Ci:q!==3?A.children===""?(l(A.el=i(""),s(w),w),F=w):F=M():(w.data!==A.children&&(qo(),w.data=A.children),F=o(w));break;case vt:E(w)?(F=o(w),b(A.el=w.content.firstChild,w,C)):q!==8||O?F=M():F=o(w);break;case lo:if(O&&(w=o(w),q=w.nodeType),q===1||q===3){F=w;const $=!A.children.length;for(let G=0;G<A.staticCount;G++)$&&(A.children+=F.nodeType===1?F.outerHTML:F.data),G===A.staticCount-1&&(A.anchor=F),F=o(F);return O?o(F):F}else M();break;case qt:O?F=y(w,A,C,R,S,_):F=M();break;default:if(N&1)(q!==1||A.type.toLowerCase()!==w.tagName.toLowerCase())&&!E(w)?F=M():F=f(w,A,C,R,S,_);else if(N&6){A.slotScopeIds=S;const $=s(w);if(O?F=v(w):Vo(w)&&w.data==="teleport start"?F=v(w,w.data,"teleport end"):F=o(w),t(A,$,null,C,R,ou($),_),Jn(A)&&!A.type.__asyncResolved){let G;O?(G=dt(qt),G.anchor=F?F.previousSibling:$.lastChild):G=w.nodeType===3?tg(""):dt("div"),G.el=w,A.component.subTree=G}}else N&64?q!==8?F=M():F=A.type.hydrate(w,A,C,R,S,_,e,h):N&128&&(F=A.type.hydrate(w,A,C,R,ou(s(w)),S,_,e,p))}return k!=null&&ts(k,null,R,A),F},f=(w,A,C,R,S,_)=>{_=_||!!A.dynamicChildren;const{type:O,props:M,patchFlag:I,shapeFlag:k,dirs:N,transition:P}=A,q=O==="input"||O==="option";if(q||I!==-1){N&&ln(A,null,C,"created");let F=!1;if(E(w)){F=px(null,P)&&C&&C.vnode.props&&C.vnode.props.appear;const G=w.content.firstChild;if(F){const ie=G.getAttribute("class");ie&&(G.$cls=ie),P.beforeEnter(G)}b(G,w,C),A.el=w=G}if(k&16&&!(M&&(M.innerHTML||M.textContent))){let G=h(w.firstChild,A,w,C,R,S,_);for(;G;){su(w,1)||qo();const ie=G;G=G.nextSibling,a(ie)}}else if(k&8){let G=A.children;G[0]===`
|
|
1033
|
-
`&&(w.tagName==="PRE"||w.tagName==="TEXTAREA")&&(G=G.slice(1));const{textContent:ie}=w;ie!==G&&ie!==G.replace(/\r\n|\r/g,`
|
|
1034
|
-
`)&&(su(w,0)||qo(),w.textContent=A.children)}if(M){if(q||!_||I&48){const G=w.tagName.includes("-");for(const ie in M)(q&&(ie.endsWith("value")||ie==="indeterminate")||Oo(ie)&&!Vn(ie)||ie[0]==="."||G&&!Vn(ie))&&n(w,ie,null,M[ie],void 0,C)}else if(M.onClick)n(w,"onClick",null,M.onClick,void 0,C);else if(I&4&&yn(M.style))for(const G in M.style)M.style[G]}let $;($=M&&M.onVnodeBeforeMount)&&dr($,C,A),N&&ln(A,null,C,"beforeMount"),(($=M&&M.onVnodeMounted)||N||F)&&yx(()=>{$&&dr($,C,A),F&&P.enter(w),N&&ln(A,null,C,"mounted")},R)}return w.nextSibling},h=(w,A,C,R,S,_,O)=>{O=O||!!A.dynamicChildren;const M=A.children,I=M.length;for(let k=0;k<I;k++){const N=O?M[k]:M[k]=pr(M[k]),P=N.type===Ci;w?(P&&!O&&k+1<I&&pr(M[k+1]).type===Ci&&(l(i(w.data.slice(N.children.length)),C,o(w)),w.data=N.children),w=p(w,N,R,S,_,O)):P&&!N.children?l(N.el=i(""),C):(su(C,1)||qo(),r(null,N,C,null,R,S,ou(C),_))}return w},y=(w,A,C,R,S,_)=>{const{slotScopeIds:O}=A;O&&(S=S?S.concat(O):O);const M=s(w),I=h(o(w),A,M,C,R,S,_);return I&&Vo(I)&&I.data==="]"?o(A.anchor=I):(qo(),l(A.anchor=u("]"),M,I),I)},g=(w,A,C,R,S,_)=>{if(su(w.parentElement,1)||qo(),A.el=null,_){const I=v(w);for(;;){const k=o(w);if(k&&k!==I)a(k);else break}}const O=o(w),M=s(w);return a(w),r(null,A,M,O,C,R,ou(M),S),C&&(C.vnode.el=A.el,Cd(C,A.el)),O},v=(w,A="[",C="]")=>{let R=0;for(;w;)if(w=o(w),w&&Vo(w)&&(w.data===A&&R++,w.data===C)){if(R===0)return o(w);R--}return w},b=(w,A,C)=>{const R=A.parentNode;R&&R.replaceChild(w,A);let S=C;for(;S;)S.vnode.el===A&&(S.vnode.el=S.subTree.el=w),S=S.parent},E=w=>w.nodeType===1&&w.tagName==="TEMPLATE";return[d,p]}const ZE="data-allow-mismatch",N4={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function su(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(ZE);)e=e.parentElement;const r=e&&e.getAttribute(ZE);if(r==null)return!1;if(r==="")return!0;{const n=r.split(",");return t===0&&n.includes("children")?!0:n.includes(N4[t])}}const I4=md().requestIdleCallback||(e=>setTimeout(e,1)),M4=md().cancelIdleCallback||(e=>clearTimeout(e)),q4=(e=1e4)=>t=>{const r=I4(t,{timeout:e});return()=>M4(r)};function j4(e){const{top:t,left:r,bottom:n,right:i}=e.getBoundingClientRect(),{innerHeight:o,innerWidth:s}=window;return(t>0&&t<o||n>0&&n<o)&&(r>0&&r<s||i>0&&i<s)}const k4=e=>(t,r)=>{const n=new IntersectionObserver(i=>{for(const o of i)if(o.isIntersecting){n.disconnect(),t();break}},e);return r(i=>{if(i instanceof Element){if(j4(i))return t(),n.disconnect(),!1;n.observe(i)}}),()=>n.disconnect()},D4=e=>t=>{if(e){const r=matchMedia(e);if(r.matches)t();else return r.addEventListener("change",t,{once:!0}),()=>r.removeEventListener("change",t)}},L4=(e=[])=>(t,r)=>{Ae(e)&&(e=[e]);let n=!1;const i=s=>{n||(n=!0,o(),t(),s.target.dispatchEvent(new s.constructor(s.type,s)))},o=()=>{r(s=>{for(const a of e)s.removeEventListener(a,i)})};return r(s=>{for(const a of e)s.addEventListener(a,i,{once:!0})}),o};function F4(e,t){if(Vo(e)&&e.data==="["){let r=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(Vo(n))if(n.data==="]"){if(--r===0)break}else n.data==="["&&r++;n=n.nextSibling}}else t(e)}const Jn=e=>!!e.type.__asyncLoader;function B4(e){_e(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:n,delay:i=200,hydrate:o,timeout:s,suspensible:a=!0,onError:l}=e;let u=null,d,p=0;const f=()=>(p++,u=null,h()),h=()=>{let y;return u||(y=u=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),l)return new Promise((v,b)=>{l(g,()=>v(f()),()=>b(g),p+1)});throw g}).then(g=>y!==u&&u?u:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),d=g,g)))};return Jy({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(y,g,v){let b=!1;(g.bu||(g.bu=[])).push(()=>b=!0);const E=()=>{b||v()},w=o?()=>{const A=o(E,C=>F4(y,C));A&&(g.bum||(g.bum=[])).push(A)}:E;d?w():h().then(()=>!g.isUnmounted&&w())},get __asyncResolved(){return d},setup(){const y=$t;if(Hy(y),d)return()=>au(d,y);const g=w=>{u=null,Co(w,y,13,!n)};if(a&&y.suspense||Eo)return h().then(w=>()=>au(w,y)).catch(w=>(g(w),()=>n?dt(n,{error:w}):null));const v=wa(!1),b=wa(),E=wa(!!i);return i&&setTimeout(()=>{E.value=!1},i),s!=null&&setTimeout(()=>{if(!v.value&&!b.value){const w=new Error(`Async component timed out after ${s}ms.`);g(w),b.value=w}},s),h().then(()=>{v.value=!0,y.parent&&Nl(y.parent.vnode)&&y.parent.update()}).catch(w=>{g(w),b.value=w}),()=>{if(v.value&&d)return au(d,y);if(b.value&&n)return dt(n,{error:b.value});if(r&&!E.value)return au(r,y)}}})}function au(e,t){const{ref:r,props:n,children:i,ce:o}=t.vnode,s=dt(e,n,i);return s.ref=r,s.ce=o,delete t.vnode.ce,s}const Nl=e=>e.type.__isKeepAlive,$4={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const r=lr(),n=r.ctx;if(!n.renderer)return()=>{const E=t.default&&t.default();return E&&E.length===1?E[0]:E};const i=new Map,o=new Set;let s=null;const a=r.suspense,{renderer:{p:l,m:u,um:d,o:{createElement:p}}}=n,f=p("div");n.activate=(E,w,A,C,R)=>{const S=E.component;u(E,w,A,0,a),l(S.vnode,E,w,A,S,a,C,E.slotScopeIds,R),Tt(()=>{S.isDeactivated=!1,S.a&&Qo(S.a);const _=E.props&&E.props.onVnodeMounted;_&&dr(_,S.parent,E)},a)},n.deactivate=E=>{const w=E.component;dc(w.m),dc(w.a),u(E,f,null,1,a),Tt(()=>{w.da&&Qo(w.da);const A=E.props&&E.props.onVnodeUnmounted;A&&dr(A,w.parent,E),w.isDeactivated=!0},a)};function h(E){Ip(E),d(E,r,a,!0)}function y(E){i.forEach((w,A)=>{const C=fh(Jn(w)?w.type.__asyncResolved||{}:w.type);C&&!E(C)&&g(A)})}function g(E){const w=i.get(E);w&&(!s||!zr(w,s))?h(w):s&&Ip(s),i.delete(E),o.delete(E)}es(()=>[e.include,e.exclude],([E,w])=>{E&&y(A=>aa(E,A)),w&&y(A=>!aa(w,A))},{flush:"post",deep:!0});let v=null;const b=()=>{v!=null&&(pc(r.subTree.type)?Tt(()=>{i.set(v,lu(r.subTree))},r.subTree.suspense):i.set(v,lu(r.subTree)))};return Il(b),Rd(b),Od(()=>{i.forEach(E=>{const{subTree:w,suspense:A}=r,C=lu(w);if(E.type===C.type&&E.key===C.key){Ip(C);const R=C.component.da;R&&Tt(R,A);return}h(E)})}),()=>{if(v=null,!t.default)return s=null;const E=t.default(),w=E[0];if(E.length>1)return s=null,E;if(!rn(w)||!(w.shapeFlag&4)&&!(w.shapeFlag&128))return s=null,w;let A=lu(w);if(A.type===vt)return s=null,A;const C=A.type,R=fh(Jn(A)?A.type.__asyncResolved||{}:C),{include:S,exclude:_,max:O}=e;if(S&&(!R||!aa(S,R))||_&&R&&aa(_,R))return A.shapeFlag&=-257,s=A,w;const M=A.key==null?C:A.key,I=i.get(M);return A.el&&(A=bn(A),w.shapeFlag&128&&(w.ssContent=A)),v=M,I?(A.el=I.el,A.component=I.component,A.transition&&Yn(A,A.transition),A.shapeFlag|=512,o.delete(M),o.add(M)):(o.add(M),O&&o.size>parseInt(O,10)&&g(o.values().next().value)),A.shapeFlag|=256,s=A,pc(w.type)?w:A}}},U4=$4;function aa(e,t){return ye(e)?e.some(r=>aa(r,t)):Ae(e)?e.split(",").includes(t):X9(e)?(e.lastIndex=0,e.test(t)):!1}function BC(e,t){UC(e,"a",t)}function $C(e,t){UC(e,"da",t)}function UC(e,t,r=$t){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Sd(t,n,r),r){let i=r.parent;for(;i&&i.parent;)Nl(i.parent.vnode)&&V4(n,t,r,i),i=i.parent}}function V4(e,t,r,n){const i=Sd(t,e,n,!0);Ad(()=>{My(n[t],i)},r)}function Ip(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function lu(e){return e.shapeFlag&128?e.ssContent:e}function Sd(e,t,r=$t,n=!1){if(r){const i=r[e]||(r[e]=[]),o=t.__weh||(t.__weh=(...s)=>{Kn();const a=js(r),l=Br(t,r,e,s);return a(),zn(),l});return n?i.unshift(o):i.push(o),o}}const ti=e=>(t,r=$t)=>{(!Eo||e==="sp")&&Sd(e,(...n)=>t(...n),r)},VC=ti("bm"),Il=ti("m"),Gy=ti("bu"),Rd=ti("u"),Od=ti("bum"),Ad=ti("um"),JC=ti("sp"),HC=ti("rtg"),GC=ti("rtc");function WC(e,t=$t){Sd("ec",e,t)}const Wy="components",J4="directives";function H4(e,t){return Ky(Wy,e,!0,t)||e}const KC=Symbol.for("v-ndc");function G4(e){return Ae(e)?Ky(Wy,e,!1)||e:e||KC}function W4(e){return Ky(J4,e)}function Ky(e,t,r=!0,n=!1){const i=Vt||$t;if(i){const o=i.type;if(e===Wy){const a=fh(o,!1);if(a&&(a===t||a===Ze(t)||a===Po(Ze(t))))return o}const s=eT(i[e]||o[e],t)||eT(i.appContext[e],t);return!s&&n?o:s}}function eT(e,t){return e&&(e[t]||e[Ze(t)]||e[Po(Ze(t))])}function K4(e,t,r,n){let i;const o=r&&r[n],s=ye(e);if(s||Ae(e)){const a=s&&yn(e);let l=!1,u=!1;a&&(l=!yr(e),u=gn(e),e=bd(e)),i=new Array(e.length);for(let d=0,p=e.length;d<p;d++)i[d]=t(l?u?bs(tn(e[d])):tn(e[d]):e[d],d,void 0,o&&o[d])}else if(typeof e=="number"){i=new Array(e);for(let a=0;a<e;a++)i[a]=t(a+1,a,void 0,o&&o[a])}else if(Ge(e))if(e[Symbol.iterator])i=Array.from(e,(a,l)=>t(a,l,void 0,o&&o[l]));else{const a=Object.keys(e);i=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const d=a[l];i[l]=t(e[d],d,l,o&&o[l])}}else i=[];return r&&(r[n]=i),i}function z4(e,t){for(let r=0;r<t.length;r++){const n=t[r];if(ye(n))for(let i=0;i<n.length;i++)e[n[i].name]=n[i].fn;else n&&(e[n.name]=n.key?(...i)=>{const o=n.fn(...i);return o&&(o.key=n.key),o}:n.fn)}return e}function Y4(e,t,r={},n,i){if(Vt.ce||Vt.parent&&Jn(Vt.parent)&&Vt.parent.ce){const u=Object.keys(r).length>0;return t!=="default"&&(r.name=t),nl(),fc(qt,null,[dt("slot",r,n&&n())],u?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),nl();const s=o&&zy(o(r)),a=r.key||s&&s.key,l=fc(qt,{key:(a&&!rr(a)?a:`_${t}`)+(!s&&n?"_fb":"")},s||(n?n():[]),s&&e._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function zy(e){return e.some(t=>rn(t)?!(t.type===vt||t.type===qt&&!zy(t.children)):!0)?e:null}function X4(e,t){const r={};for(const n in e)r[t&&/[A-Z]/.test(n)?`on:${n}`:Xo(n)]=e[n];return r}const oh=e=>e?_x(e)?Ml(e):oh(e.parent):null,Sa=qe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>oh(e.parent),$root:e=>oh(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Yy(e),$forceUpdate:e=>e.f||(e.f=()=>{By(e.update)}),$nextTick:e=>e.n||(e.n=Td.bind(e.proxy)),$watch:e=>E4.bind(e)}),Mp=(e,t)=>e!==ke&&!e.__isScriptSetup&&Ke(e,t),sh={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:i,props:o,accessCache:s,type:a,appContext:l}=e;if(t[0]!=="$"){const f=s[t];if(f!==void 0)switch(f){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return o[t]}else{if(Mp(n,t))return s[t]=1,n[t];if(i!==ke&&Ke(i,t))return s[t]=2,i[t];if(Ke(o,t))return s[t]=3,o[t];if(r!==ke&&Ke(r,t))return s[t]=4,r[t];ah&&(s[t]=0)}}const u=Sa[t];let d,p;if(u)return t==="$attrs"&&Yt(e.attrs,"get",""),u(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(r!==ke&&Ke(r,t))return s[t]=4,r[t];if(p=l.config.globalProperties,Ke(p,t))return p[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:o}=e;return Mp(i,t)?(i[t]=r,!0):n!==ke&&Ke(n,t)?(n[t]=r,!0):Ke(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:i,props:o,type:s}},a){let l;return!!(r[a]||e!==ke&&a[0]!=="$"&&Ke(e,a)||Mp(t,a)||Ke(o,a)||Ke(n,a)||Ke(Sa,a)||Ke(i.config.globalProperties,a)||(l=s.__cssModules)&&l[a])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:Ke(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}},Q4=qe({},sh,{get(e,t){if(t!==Symbol.unscopables)return sh.get(e,t,e)},has(e,t){return t[0]!=="_"&&!iY(t)}});function Z4(){return null}function e7(){return null}function t7(e){}function r7(e){}function n7(){return null}function i7(){}function o7(e,t){return null}function s7(){return zC().slots}function a7(){return zC().attrs}function zC(e){const t=lr();return t.setupContext||(t.setupContext=Ax(t))}function tl(e){return ye(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function l7(e,t){const r=tl(e);for(const n in t){if(n.startsWith("__skip"))continue;let i=r[n];i?ye(i)||_e(i)?i=r[n]={type:i,default:t[n]}:i.default=t[n]:i===null&&(i=r[n]={default:t[n]}),i&&t[`__skip_${n}`]&&(i.skipFactory=!0)}return r}function u7(e,t){return!e||!t?e||t:ye(e)&&ye(t)?e.concat(t):qe({},tl(e),tl(t))}function c7(e,t){const r={};for(const n in e)t.includes(n)||Object.defineProperty(r,n,{enumerable:!0,get:()=>e[n]});return r}function d7(e){const t=lr(),r=Eo;let n=e();ol(),r&&ns(!1);const i=()=>{js(t),r&&ns(!0)},o=()=>{lr()!==t&&t.scope.off(),ol(),r&&ns(!1)};return qy(n)&&(n=n.catch(s=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(o)),s})),[n,()=>{i(),Promise.resolve().then(o)}]}let ah=!0;function p7(e){const t=Yy(e),r=e.proxy,n=e.ctx;ah=!1,t.beforeCreate&&tT(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:s,watch:a,provide:l,inject:u,created:d,beforeMount:p,mounted:f,beforeUpdate:h,updated:y,activated:g,deactivated:v,beforeDestroy:b,beforeUnmount:E,destroyed:w,unmounted:A,render:C,renderTracked:R,renderTriggered:S,errorCaptured:_,serverPrefetch:O,expose:M,inheritAttrs:I,components:k,directives:N,filters:P}=t;if(u&&f7(u,n,null),s)for(const $ in s){const G=s[$];_e(G)&&(n[$]=G.bind(r))}if(i){const $=i.call(r,r);Ge($)&&(e.data=Pi($))}if(ah=!0,o)for(const $ in o){const G=o[$],ie=_e(G)?G.bind(r,r):_e(G.get)?G.get.bind(r,r):Jt,pe=!_e(G)&&_e(G.set)?G.set.bind(r):Jt,he=Px({get:ie,set:pe});Object.defineProperty(n,$,{enumerable:!0,configurable:!0,get:()=>he.value,set:Q=>he.value=Q})}if(a)for(const $ in a)YC(a[$],n,r,$);if(l){const $=_e(l)?l.call(r):l;Reflect.ownKeys($).forEach(G=>{CC(G,$[G])})}d&&tT(d,e,"c");function F($,G){ye(G)?G.forEach(ie=>$(ie.bind(r))):G&&$(G.bind(r))}if(F(VC,p),F(Il,f),F(Gy,h),F(Rd,y),F(BC,g),F($C,v),F(WC,_),F(GC,R),F(HC,S),F(Od,E),F(Ad,A),F(JC,O),ye(M))if(M.length){const $=e.exposed||(e.exposed={});M.forEach(G=>{Object.defineProperty($,G,{get:()=>r[G],set:ie=>r[G]=ie,enumerable:!0})})}else e.exposed||(e.exposed={});C&&e.render===Jt&&(e.render=C),I!=null&&(e.inheritAttrs=I),k&&(e.components=k),N&&(e.directives=N),O&&Hy(e)}function f7(e,t,r=Jt){ye(e)&&(e=lh(e));for(const n in e){const i=e[n];let o;Ge(i)?"default"in i?o=_a(i.from||n,i.default,!0):o=_a(i.from||n):o=_a(i),_t(o)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):t[n]=o}}function tT(e,t,r){Br(ye(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function YC(e,t,r,n){let i=n.includes(".")?MC(r,n):()=>r[n];if(Ae(e)){const o=t[e];_e(o)&&es(i,o)}else if(_e(e))es(i,e.bind(r));else if(Ge(e))if(ye(e))e.forEach(o=>YC(o,t,r,n));else{const o=_e(e.handler)?e.handler.bind(r):t[e.handler];_e(o)&&es(i,o,e)}}function Yy(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,a=o.get(t);let l;return a?l=a:!i.length&&!r&&!n?l=t:(l={},i.length&&i.forEach(u=>cc(l,u,s,!0)),cc(l,t,s)),Ge(t)&&o.set(t,l),l}function cc(e,t,r,n=!1){const{mixins:i,extends:o}=t;o&&cc(e,o,r,!0),i&&i.forEach(s=>cc(e,s,r,!0));for(const s in t)if(!(n&&s==="expose")){const a=h7[s]||r&&r[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const h7={data:rT,props:nT,emits:nT,methods:la,computed:la,beforeCreate:or,created:or,beforeMount:or,mounted:or,beforeUpdate:or,updated:or,beforeDestroy:or,beforeUnmount:or,destroyed:or,unmounted:or,activated:or,deactivated:or,errorCaptured:or,serverPrefetch:or,components:la,directives:la,watch:y7,provide:rT,inject:m7};function rT(e,t){return t?e?function(){return qe(_e(e)?e.call(this,this):e,_e(t)?t.call(this,this):t)}:t:e}function m7(e,t){return la(lh(e),lh(t))}function lh(e){if(ye(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function or(e,t){return e?[...new Set([].concat(e,t))]:t}function la(e,t){return e?qe(Object.create(null),e,t):t}function nT(e,t){return e?ye(e)&&ye(t)?[...new Set([...e,...t])]:qe(Object.create(null),tl(e),tl(t??{})):t}function y7(e,t){if(!e)return t;if(!t)return e;const r=qe(Object.create(null),e);for(const n in t)r[n]=or(e[n],t[n]);return r}function XC(){return{app:null,config:{isNativeTag:Uo,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let g7=0;function b7(e,t){return function(n,i=null){_e(n)||(n=qe({},n)),i!=null&&!Ge(i)&&(i=null);const o=XC(),s=new WeakSet,a=[];let l=!1;const u=o.app={_uid:g7++,_component:n,_props:i,_container:null,_context:o,_instance:null,version:xx,get config(){return o.config},set config(d){},use(d,...p){return s.has(d)||(d&&_e(d.install)?(s.add(d),d.install(u,...p)):_e(d)&&(s.add(d),d(u,...p))),u},mixin(d){return o.mixins.includes(d)||o.mixins.push(d),u},component(d,p){return p?(o.components[d]=p,u):o.components[d]},directive(d,p){return p?(o.directives[d]=p,u):o.directives[d]},mount(d,p,f){if(!l){const h=u._ceVNode||dt(n,i);return h.appContext=o,f===!0?f="svg":f===!1&&(f=void 0),p&&t?t(h,d):e(h,d,f),l=!0,u._container=d,d.__vue_app__=u,Ml(h.component)}},onUnmount(d){a.push(d)},unmount(){l&&(Br(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(d,p){return o.provides[d]=p,u},runWithContext(d){const p=ao;ao=u;try{return d()}finally{ao=p}}};return u}}let ao=null;function v7(e,t,r=ke){const n=lr(),i=Ze(t),o=fr(t),s=QC(e,i),a=TC((l,u)=>{let d,p=ke,f;return IC(()=>{const h=e[i];Bt(d,h)&&(d=h,u())}),{get(){return l(),r.get?r.get(d):d},set(h){const y=r.set?r.set(h):h;if(!Bt(y,d)&&!(p!==ke&&Bt(h,p)))return;const g=n.vnode.props;g&&(t in g||i in g||o in g)&&(`onUpdate:${t}`in g||`onUpdate:${i}`in g||`onUpdate:${o}`in g)||(d=h,u()),n.emit(`update:${t}`,y),Bt(h,y)&&Bt(h,p)&&!Bt(y,f)&&u(),p=h,f=y}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?s||ke:a,done:!1}:{done:!0}}}},a}const QC=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ze(t)}Modifiers`]||e[`${fr(t)}Modifiers`];function E7(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||ke;let i=r;const o=t.startsWith("update:"),s=o&&QC(n,t.slice(7));s&&(s.trim&&(i=r.map(d=>Ae(d)?d.trim():d)),s.number&&(i=r.map(hd)));let a,l=n[a=Xo(t)]||n[a=Xo(Ze(t))];!l&&o&&(l=n[a=Xo(fr(t))]),l&&Br(l,e,6,i);const u=n[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Br(u,e,6,i)}}const T7=new WeakMap;function ZC(e,t,r=!1){const n=r?T7:t.emitsCache,i=n.get(e);if(i!==void 0)return i;const o=e.emits;let s={},a=!1;if(!_e(e)){const l=u=>{const d=ZC(u,t,!0);d&&(a=!0,qe(s,d))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(Ge(e)&&n.set(e,null),null):(ye(o)?o.forEach(l=>s[l]=null):qe(s,o),Ge(e)&&n.set(e,s),s)}function Pd(e,t){return!e||!Oo(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ke(e,t[0].toLowerCase()+t.slice(1))||Ke(e,fr(t))||Ke(e,t))}function _u(e){const{type:t,vnode:r,proxy:n,withProxy:i,propsOptions:[o],slots:s,attrs:a,emit:l,render:u,renderCache:d,props:p,data:f,setupState:h,ctx:y,inheritAttrs:g}=e,v=el(e);let b,E;try{if(r.shapeFlag&4){const A=i||n,C=A;b=pr(u.call(C,A,d,p,h,f,y)),E=a}else{const A=t;b=pr(A.length>1?A(p,{attrs:a,slots:s,emit:l}):A(p,null)),E=t.props?a:_7(a)}}catch(A){Ra.length=0,Co(A,e,1),b=dt(vt)}let w=b;if(E&&g!==!1){const A=Object.keys(E),{shapeFlag:C}=w;A.length&&C&7&&(o&&A.some(cd)&&(E=S7(E,o)),w=bn(w,E,!1,!0))}return r.dirs&&(w=bn(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(r.dirs):r.dirs),r.transition&&Yn(w,r.transition),b=w,el(v),b}function w7(e,t=!0){let r;for(let n=0;n<e.length;n++){const i=e[n];if(rn(i)){if(i.type!==vt||i.children==="v-if"){if(r)return;r=i}}else return}return r}const _7=e=>{let t;for(const r in e)(r==="class"||r==="style"||Oo(r))&&((t||(t={}))[r]=e[r]);return t},S7=(e,t)=>{const r={};for(const n in e)(!cd(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function R7(e,t,r){const{props:n,children:i,component:o}=e,{props:s,children:a,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?iT(n,s,u):!!s;if(l&8){const d=t.dynamicProps;for(let p=0;p<d.length;p++){const f=d[p];if(ex(s,n,f)&&!Pd(u,f))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:n===s?!1:n?s?iT(n,s,u):!0:!!s;return!1}function iT(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let i=0;i<n.length;i++){const o=n[i];if(ex(t,e,o)&&!Pd(r,o))return!0}return!1}function ex(e,t,r){const n=e[r],i=t[r];return r==="style"&&Ge(n)&&Ge(i)?!Wn(n,i):n!==i}function Cd({vnode:e,parent:t,suspense:r},n){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.suspense.vnode.el=i.el=n,e=i),i===e)(e=t.vnode).el=n,t=t.parent;else break}r&&r.activeBranch===e&&(r.vnode.el=n)}const tx={},rx=()=>Object.create(tx),nx=e=>Object.getPrototypeOf(e)===tx;function O7(e,t,r,n=!1){const i={},o=rx();e.propsDefaults=Object.create(null),ix(e,t,i,o);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);r?e.props=n?i:gC(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function A7(e,t,r,n){const{props:i,attrs:o,vnode:{patchFlag:s}}=e,a=Le(i),[l]=e.propsOptions;let u=!1;if((n||s>0)&&!(s&16)){if(s&8){const d=e.vnode.dynamicProps;for(let p=0;p<d.length;p++){let f=d[p];if(Pd(e.emitsOptions,f))continue;const h=t[f];if(l)if(Ke(o,f))h!==o[f]&&(o[f]=h,u=!0);else{const y=Ze(f);i[y]=uh(l,a,y,h,e,!1)}else h!==o[f]&&(o[f]=h,u=!0)}}}else{ix(e,t,i,o)&&(u=!0);let d;for(const p in a)(!t||!Ke(t,p)&&((d=fr(p))===p||!Ke(t,d)))&&(l?r&&(r[p]!==void 0||r[d]!==void 0)&&(i[p]=uh(l,a,p,void 0,e,!0)):delete i[p]);if(o!==a)for(const p in o)(!t||!Ke(t,p))&&(delete o[p],u=!0)}u&&qn(e.attrs,"set","")}function ix(e,t,r,n){const[i,o]=e.propsOptions;let s=!1,a;if(t)for(let l in t){if(Vn(l))continue;const u=t[l];let d;i&&Ke(i,d=Ze(l))?!o||!o.includes(d)?r[d]=u:(a||(a={}))[d]=u:Pd(e.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,s=!0)}if(o){const l=Le(r),u=a||ke;for(let d=0;d<o.length;d++){const p=o[d];r[p]=uh(i,l,p,u[p],e,!Ke(u,p))}}return s}function uh(e,t,r,n,i,o){const s=e[r];if(s!=null){const a=Ke(s,"default");if(a&&n===void 0){const l=s.default;if(s.type!==Function&&!s.skipFactory&&_e(l)){const{propsDefaults:u}=i;if(r in u)n=u[r];else{const d=js(i);n=u[r]=l.call(null,t),d()}}else n=l;i.ce&&i.ce._setProp(r,n)}s[0]&&(o&&!a?n=!1:s[1]&&(n===""||n===fr(r))&&(n=!0))}return n}const P7=new WeakMap;function ox(e,t,r=!1){const n=r?P7:t.propsCache,i=n.get(e);if(i)return i;const o=e.props,s={},a=[];let l=!1;if(!_e(e)){const d=p=>{l=!0;const[f,h]=ox(p,t,!0);qe(s,f),h&&a.push(...h)};!r&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!l)return Ge(e)&&n.set(e,zo),zo;if(ye(o))for(let d=0;d<o.length;d++){const p=Ze(o[d]);oT(p)&&(s[p]=ke)}else if(o)for(const d in o){const p=Ze(d);if(oT(p)){const f=o[d],h=s[p]=ye(f)||_e(f)?{type:f}:qe({},f),y=h.type;let g=!1,v=!0;if(ye(y))for(let b=0;b<y.length;++b){const E=y[b],w=_e(E)&&E.name;if(w==="Boolean"){g=!0;break}else w==="String"&&(v=!1)}else g=_e(y)&&y.name==="Boolean";h[0]=g,h[1]=v,(g||Ke(h,"default"))&&a.push(p)}}const u=[s,a];return Ge(e)&&n.set(e,u),u}function oT(e){return e[0]!=="$"&&!Vn(e)}const Xy=e=>e==="_"||e==="_ctx"||e==="$stable",Qy=e=>ye(e)?e.map(pr):[pr(e)],C7=(e,t,r)=>{if(t._n)return t;const n=$y((...i)=>Qy(t(...i)),r);return n._c=!1,n},sx=(e,t,r)=>{const n=e._ctx;for(const i in e){if(Xy(i))continue;const o=e[i];if(_e(o))t[i]=C7(i,o,n);else if(o!=null){const s=Qy(o);t[i]=()=>s}}},ax=(e,t)=>{const r=Qy(t);e.slots.default=()=>r},lx=(e,t,r)=>{for(const n in t)(r||!Xy(n))&&(e[n]=t[n])},x7=(e,t,r)=>{const n=e.slots=rx();if(e.vnode.shapeFlag&32){const i=t._;i?(lx(n,t,r),r&&zP(n,"_",i,!0)):sx(t,n)}else t&&ax(e,t)},N7=(e,t,r)=>{const{vnode:n,slots:i}=e;let o=!0,s=ke;if(n.shapeFlag&32){const a=t._;a?r&&a===1?o=!1:lx(i,t,r):(o=!t.$stable,sx(t,i)),s=t}else t&&(ax(e,t),s={default:1});if(o)for(const a in i)!Xy(a)&&s[a]==null&&delete i[a]},Tt=yx;function ux(e){return dx(e)}function cx(e){return dx(e,x4)}function dx(e,t){const r=md();r.__VUE__=!0;const{insert:n,remove:i,patchProp:o,createElement:s,createText:a,createComment:l,setText:u,setElementText:d,parentNode:p,nextSibling:f,setScopeId:h=Jt,insertStaticContent:y}=e,g=(j,B,W,Y=null,z=null,ee=null,le=void 0,oe=null,ne=!!B.dynamicChildren)=>{if(j===B)return;j&&!zr(j,B)&&(Y=Re(j),Q(j,z,ee,!0),j=null),B.patchFlag===-2&&(ne=!1,B.dynamicChildren=null);const{type:te,ref:ve,shapeFlag:de}=B;switch(te){case Ci:v(j,B,W,Y);break;case vt:b(j,B,W,Y);break;case lo:j==null&&E(B,W,Y,le);break;case qt:k(j,B,W,Y,z,ee,le,oe,ne);break;default:de&1?C(j,B,W,Y,z,ee,le,oe,ne):de&6?N(j,B,W,Y,z,ee,le,oe,ne):(de&64||de&128)&&te.process(j,B,W,Y,z,ee,le,oe,ne,V)}ve!=null&&z?ts(ve,j&&j.ref,ee,B||j,!B):ve==null&&j&&j.ref!=null&&ts(j.ref,null,ee,j,!0)},v=(j,B,W,Y)=>{if(j==null)n(B.el=a(B.children),W,Y);else{const z=B.el=j.el;B.children!==j.children&&u(z,B.children)}},b=(j,B,W,Y)=>{j==null?n(B.el=l(B.children||""),W,Y):B.el=j.el},E=(j,B,W,Y)=>{[j.el,j.anchor]=y(j.children,B,W,Y,j.el,j.anchor)},w=({el:j,anchor:B},W,Y)=>{let z;for(;j&&j!==B;)z=f(j),n(j,W,Y),j=z;n(B,W,Y)},A=({el:j,anchor:B})=>{let W;for(;j&&j!==B;)W=f(j),i(j),j=W;i(B)},C=(j,B,W,Y,z,ee,le,oe,ne)=>{if(B.type==="svg"?le="svg":B.type==="math"&&(le="mathml"),j==null)R(B,W,Y,z,ee,le,oe,ne);else{const te=j.el&&j.el._isVueCE?j.el:null;try{te&&te._beginPatch(),O(j,B,z,ee,le,oe,ne)}finally{te&&te._endPatch()}}},R=(j,B,W,Y,z,ee,le,oe)=>{let ne,te;const{props:ve,shapeFlag:de,transition:be,dirs:Ee}=j;if(ne=j.el=s(j.type,ee,ve&&ve.is,ve),de&8?d(ne,j.children):de&16&&_(j.children,ne,null,Y,z,qp(j,ee),le,oe),Ee&&ln(j,null,Y,"created"),S(ne,j,j.scopeId,le,Y),ve){for(const $e in ve)$e!=="value"&&!Vn($e)&&o(ne,$e,null,ve[$e],ee,Y);"value"in ve&&o(ne,"value",null,ve.value,ee),(te=ve.onVnodeBeforeMount)&&dr(te,Y,j)}Ee&&ln(j,null,Y,"beforeMount");const Me=px(z,be);Me&&be.beforeEnter(ne),n(ne,B,W),((te=ve&&ve.onVnodeMounted)||Me||Ee)&&Tt(()=>{try{te&&dr(te,Y,j),Me&&be.enter(ne),Ee&&ln(j,null,Y,"mounted")}finally{}},z)},S=(j,B,W,Y,z)=>{if(W&&h(j,W),Y)for(let ee=0;ee<Y.length;ee++)h(j,Y[ee]);if(z){let ee=z.subTree;if(B===ee||pc(ee.type)&&(ee.ssContent===B||ee.ssFallback===B)){const le=z.vnode;S(j,le,le.scopeId,le.slotScopeIds,z.parent)}}},_=(j,B,W,Y,z,ee,le,oe,ne=0)=>{for(let te=ne;te<j.length;te++){const ve=j[te]=oe?Nn(j[te]):pr(j[te]);g(null,ve,B,W,Y,z,ee,le,oe)}},O=(j,B,W,Y,z,ee,le)=>{const oe=B.el=j.el;let{patchFlag:ne,dynamicChildren:te,dirs:ve}=B;ne|=j.patchFlag&16;const de=j.props||ke,be=B.props||ke;let Ee;if(W&&Hi(W,!1),(Ee=be.onVnodeBeforeUpdate)&&dr(Ee,W,B,j),ve&&ln(B,j,W,"beforeUpdate"),W&&Hi(W,!0),(de.innerHTML&&be.innerHTML==null||de.textContent&&be.textContent==null)&&d(oe,""),te?M(j.dynamicChildren,te,oe,W,Y,qp(B,z),ee):le||G(j,B,oe,null,W,Y,qp(B,z),ee,!1),ne>0){if(ne&16)I(oe,de,be,W,z);else if(ne&2&&de.class!==be.class&&o(oe,"class",null,be.class,z),ne&4&&o(oe,"style",de.style,be.style,z),ne&8){const Me=B.dynamicProps;for(let $e=0;$e<Me.length;$e++){const Je=Me[$e],tt=de[Je],it=be[Je];(it!==tt||Je==="value")&&o(oe,Je,tt,it,z,W)}}ne&1&&j.children!==B.children&&d(oe,B.children)}else!le&&te==null&&I(oe,de,be,W,z);((Ee=be.onVnodeUpdated)||ve)&&Tt(()=>{Ee&&dr(Ee,W,B,j),ve&&ln(B,j,W,"updated")},Y)},M=(j,B,W,Y,z,ee,le)=>{for(let oe=0;oe<B.length;oe++){const ne=j[oe],te=B[oe],ve=ne.el&&(ne.type===qt||!zr(ne,te)||ne.shapeFlag&198)?p(ne.el):W;g(ne,te,ve,null,Y,z,ee,le,!0)}},I=(j,B,W,Y,z)=>{if(B!==W){if(B!==ke)for(const ee in B)!Vn(ee)&&!(ee in W)&&o(j,ee,B[ee],null,z,Y);for(const ee in W){if(Vn(ee))continue;const le=W[ee],oe=B[ee];le!==oe&&ee!=="value"&&o(j,ee,oe,le,z,Y)}"value"in W&&o(j,"value",B.value,W.value,z)}},k=(j,B,W,Y,z,ee,le,oe,ne)=>{const te=B.el=j?j.el:a(""),ve=B.anchor=j?j.anchor:a("");let{patchFlag:de,dynamicChildren:be,slotScopeIds:Ee}=B;Ee&&(oe=oe?oe.concat(Ee):Ee),j==null?(n(te,W,Y),n(ve,W,Y),_(B.children||[],W,ve,z,ee,le,oe,ne)):de>0&&de&64&&be&&j.dynamicChildren&&j.dynamicChildren.length===be.length?(M(j.dynamicChildren,be,W,z,ee,le,oe),(B.key!=null||z&&B===z.subTree)&&Zy(j,B,!0)):G(j,B,W,ve,z,ee,le,oe,ne)},N=(j,B,W,Y,z,ee,le,oe,ne)=>{B.slotScopeIds=oe,j==null?B.shapeFlag&512?z.ctx.activate(B,W,Y,le,ne):P(B,W,Y,z,ee,le,ne):q(j,B,ne)},P=(j,B,W,Y,z,ee,le)=>{const oe=j.component=wx(j,Y,z);if(Nl(j)&&(oe.ctx.renderer=V),Sx(oe,!1,le),oe.asyncDep){if(z&&z.registerDep(oe,F,le),!j.el){const ne=oe.subTree=dt(vt);b(null,ne,B,W),j.placeholder=ne.el}}else F(oe,j,B,W,z,ee,le)},q=(j,B,W)=>{const Y=B.component=j.component;if(R7(j,B,W))if(Y.asyncDep&&!Y.asyncResolved){$(Y,B,W);return}else Y.next=B,Y.update();else B.el=j.el,Y.vnode=B},F=(j,B,W,Y,z,ee,le)=>{const oe=()=>{if(j.isMounted){let{next:de,bu:be,u:Ee,parent:Me,vnode:$e}=j;{const Ot=fx(j);if(Ot){de&&(de.el=$e.el,$(j,de,le)),Ot.asyncDep.then(()=>{Tt(()=>{j.isUnmounted||te()},z)});return}}let Je=de,tt;Hi(j,!1),de?(de.el=$e.el,$(j,de,le)):de=$e,be&&Qo(be),(tt=de.props&&de.props.onVnodeBeforeUpdate)&&dr(tt,Me,de,$e),Hi(j,!0);const it=_u(j),Dt=j.subTree;j.subTree=it,g(Dt,it,p(Dt.el),Re(Dt),j,z,ee),de.el=it.el,Je===null&&Cd(j,it.el),Ee&&Tt(Ee,z),(tt=de.props&&de.props.onVnodeUpdated)&&Tt(()=>dr(tt,Me,de,$e),z)}else{let de;const{el:be,props:Ee}=B,{bm:Me,m:$e,parent:Je,root:tt,type:it}=j,Dt=Jn(B);if(Hi(j,!1),Me&&Qo(Me),!Dt&&(de=Ee&&Ee.onVnodeBeforeMount)&&dr(de,Je,B),Hi(j,!0),be&&me){const Ot=()=>{j.subTree=_u(j),me(be,j.subTree,j,z,null)};Dt&&it.__asyncHydrate?it.__asyncHydrate(be,j,Ot):Ot()}else{tt.ce&&tt.ce._hasShadowRoot()&&tt.ce._injectChildStyle(it,j.parent?j.parent.type:void 0);const Ot=j.subTree=_u(j);g(null,Ot,W,Y,j,z,ee),B.el=Ot.el}if($e&&Tt($e,z),!Dt&&(de=Ee&&Ee.onVnodeMounted)){const Ot=B;Tt(()=>dr(de,Je,Ot),z)}(B.shapeFlag&256||Je&&Jn(Je.vnode)&&Je.vnode.shapeFlag&256)&&j.a&&Tt(j.a,z),j.isMounted=!0,B=W=Y=null}};j.scope.on();const ne=j.effect=new za(oe);j.scope.off();const te=j.update=ne.run.bind(ne),ve=j.job=ne.runIfDirty.bind(ne);ve.i=j,ve.id=j.uid,ne.scheduler=()=>By(ve),Hi(j,!0),te()},$=(j,B,W)=>{B.component=j;const Y=j.vnode.props;j.vnode=B,j.next=null,A7(j,B.props,Y,W),N7(j,B.children,W),Kn(),GE(j),zn()},G=(j,B,W,Y,z,ee,le,oe,ne=!1)=>{const te=j&&j.children,ve=j?j.shapeFlag:0,de=B.children,{patchFlag:be,shapeFlag:Ee}=B;if(be>0){if(be&128){pe(te,de,W,Y,z,ee,le,oe,ne);return}else if(be&256){ie(te,de,W,Y,z,ee,le,oe,ne);return}}Ee&8?(ve&16&&re(te,z,ee),de!==te&&d(W,de)):ve&16?Ee&16?pe(te,de,W,Y,z,ee,le,oe,ne):re(te,z,ee,!0):(ve&8&&d(W,""),Ee&16&&_(de,W,Y,z,ee,le,oe,ne))},ie=(j,B,W,Y,z,ee,le,oe,ne)=>{j=j||zo,B=B||zo;const te=j.length,ve=B.length,de=Math.min(te,ve);let be;for(be=0;be<de;be++){const Ee=B[be]=ne?Nn(B[be]):pr(B[be]);g(j[be],Ee,W,null,z,ee,le,oe,ne)}te>ve?re(j,z,ee,!0,!1,de):_(B,W,Y,z,ee,le,oe,ne,de)},pe=(j,B,W,Y,z,ee,le,oe,ne)=>{let te=0;const ve=B.length;let de=j.length-1,be=ve-1;for(;te<=de&&te<=be;){const Ee=j[te],Me=B[te]=ne?Nn(B[te]):pr(B[te]);if(zr(Ee,Me))g(Ee,Me,W,null,z,ee,le,oe,ne);else break;te++}for(;te<=de&&te<=be;){const Ee=j[de],Me=B[be]=ne?Nn(B[be]):pr(B[be]);if(zr(Ee,Me))g(Ee,Me,W,null,z,ee,le,oe,ne);else break;de--,be--}if(te>de){if(te<=be){const Ee=be+1,Me=Ee<ve?B[Ee].el:Y;for(;te<=be;)g(null,B[te]=ne?Nn(B[te]):pr(B[te]),W,Me,z,ee,le,oe,ne),te++}}else if(te>be)for(;te<=de;)Q(j[te],z,ee,!0),te++;else{const Ee=te,Me=te,$e=new Map;for(te=Me;te<=be;te++){const At=B[te]=ne?Nn(B[te]):pr(B[te]);At.key!=null&&$e.set(At.key,te)}let Je,tt=0;const it=be-Me+1;let Dt=!1,Ot=0;const Ur=new Array(it);for(te=0;te<it;te++)Ur[te]=0;for(te=Ee;te<=de;te++){const At=j[te];if(tt>=it){Q(At,z,ee,!0);continue}let Ht;if(At.key!=null)Ht=$e.get(At.key);else for(Je=Me;Je<=be;Je++)if(Ur[Je-Me]===0&&zr(At,B[Je])){Ht=Je;break}Ht===void 0?Q(At,z,ee,!0):(Ur[Ht-Me]=te+1,Ht>=Ot?Ot=Ht:Dt=!0,g(At,B[Ht],W,null,z,ee,le,oe,ne),tt++)}const ri=Dt?I7(Ur):zo;for(Je=ri.length-1,te=it-1;te>=0;te--){const At=Me+te,Ht=B[At],ni=B[At+1],ii=At+1<ve?ni.el||hx(ni):Y;Ur[te]===0?g(null,Ht,W,ii,z,ee,le,oe,ne):Dt&&(Je<0||te!==ri[Je]?he(Ht,W,ii,2):Je--)}}},he=(j,B,W,Y,z=null)=>{const{el:ee,type:le,transition:oe,children:ne,shapeFlag:te}=j;if(te&6){he(j.component.subTree,B,W,Y);return}if(te&128){j.suspense.move(B,W,Y);return}if(te&64){le.move(j,B,W,V);return}if(le===qt){n(ee,B,W);for(let de=0;de<ne.length;de++)he(ne[de],B,W,Y);n(j.anchor,B,W);return}if(le===lo){w(j,B,W);return}if(Y!==2&&te&1&&oe)if(Y===0)oe.beforeEnter(ee),n(ee,B,W),Tt(()=>oe.enter(ee),z);else{const{leave:de,delayLeave:be,afterLeave:Ee}=oe,Me=()=>{j.ctx.isUnmounted?i(ee):n(ee,B,W)},$e=()=>{ee._isLeaving&&ee[un](!0),de(ee,()=>{Me(),Ee&&Ee()})};be?be(ee,Me,$e):$e()}else n(ee,B,W)},Q=(j,B,W,Y=!1,z=!1)=>{const{type:ee,props:le,ref:oe,children:ne,dynamicChildren:te,shapeFlag:ve,patchFlag:de,dirs:be,cacheIndex:Ee,memo:Me}=j;if(de===-2&&(z=!1),oe!=null&&(Kn(),ts(oe,null,W,j,!0),zn()),Ee!=null&&(B.renderCache[Ee]=void 0),ve&256){B.ctx.deactivate(j);return}const $e=ve&1&&be,Je=!Jn(j);let tt;if(Je&&(tt=le&&le.onVnodeBeforeUnmount)&&dr(tt,B,j),ve&6)ce(j.component,W,Y);else{if(ve&128){j.suspense.unmount(W,Y);return}$e&&ln(j,null,B,"beforeUnmount"),ve&64?j.type.remove(j,B,W,V,Y):te&&!te.hasOnce&&(ee!==qt||de>0&&de&64)?re(te,B,W,!1,!0):(ee===qt&&de&384||!z&&ve&16)&&re(ne,B,W),Y&&Z(j)}const it=Me!=null&&Ee==null;(Je&&(tt=le&&le.onVnodeUnmounted)||$e||it)&&Tt(()=>{tt&&dr(tt,B,j),$e&&ln(j,null,B,"unmounted"),it&&(j.el=null)},W)},Z=j=>{const{type:B,el:W,anchor:Y,transition:z}=j;if(B===qt){ge(W,Y);return}if(B===lo){A(j);return}const ee=()=>{i(W),z&&!z.persisted&&z.afterLeave&&z.afterLeave()};if(j.shapeFlag&1&&z&&!z.persisted){const{leave:le,delayLeave:oe}=z,ne=()=>le(W,ee);oe?oe(j.el,ee,ne):ne()}else ee()},ge=(j,B)=>{let W;for(;j!==B;)W=f(j),i(j),j=W;i(B)},ce=(j,B,W)=>{const{bum:Y,scope:z,job:ee,subTree:le,um:oe,m:ne,a:te}=j;dc(ne),dc(te),Y&&Qo(Y),z.stop(),ee&&(ee.flags|=8,Q(le,j,B,W)),oe&&Tt(oe,B),Tt(()=>{j.isUnmounted=!0},B)},re=(j,B,W,Y=!1,z=!1,ee=0)=>{for(let le=ee;le<j.length;le++)Q(j[le],B,W,Y,z)},Re=j=>{if(j.shapeFlag&6)return Re(j.component.subTree);if(j.shapeFlag&128)return j.suspense.next();const B=f(j.anchor||j.el),W=B&&B[qC];return W?f(W):B};let Te=!1;const et=(j,B,W)=>{let Y;j==null?B._vnode&&(Q(B._vnode,null,null,!0),Y=B._vnode.component):g(B._vnode||null,j,B,null,null,null,W),B._vnode=j,Te||(Te=!0,GE(Y),lc(),Te=!1)},V={p:g,um:Q,m:he,r:Z,mt:P,mc:_,pc:G,pbc:M,n:Re,o:e};let ae,me;return t&&([ae,me]=t(V)),{render:et,hydrate:ae,createApp:b7(et,ae)}}function qp({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function Hi({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function px(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Zy(e,t,r=!1){const n=e.children,i=t.children;if(ye(n)&&ye(i))for(let o=0;o<n.length;o++){const s=n[o];let a=i[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[o]=Nn(i[o]),a.el=s.el),!r&&a.patchFlag!==-2&&Zy(s,a)),a.type===Ci&&(a.patchFlag===-1&&(a=i[o]=Nn(a)),a.el=s.el),a.type===vt&&!a.el&&(a.el=s.el)}}function I7(e){const t=e.slice(),r=[0];let n,i,o,s,a;const l=e.length;for(n=0;n<l;n++){const u=e[n];if(u!==0){if(i=r[r.length-1],e[i]<u){t[n]=i,r.push(n);continue}for(o=0,s=r.length-1;o<s;)a=o+s>>1,e[r[a]]<u?o=a+1:s=a;u<e[r[o]]&&(o>0&&(t[n]=r[o-1]),r[o]=n)}}for(o=r.length,s=r[o-1];o-- >0;)r[o]=s,s=t[s];return r}function fx(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:fx(t)}function dc(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function hx(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?hx(t.subTree):null}const pc=e=>e.__isSuspense;let ch=0;const M7={name:"Suspense",__isSuspense:!0,process(e,t,r,n,i,o,s,a,l,u){if(e==null)j7(t,r,n,i,o,s,a,l,u);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}k7(e,t,r,n,i,s,a,l,u)}},hydrate:D7,normalize:L7},q7=M7;function rl(e,t){const r=e.props&&e.props[t];_e(r)&&r()}function j7(e,t,r,n,i,o,s,a,l){const{p:u,o:{createElement:d}}=l,p=d("div"),f=e.suspense=mx(e,i,n,t,p,r,o,s,a,l);u(null,f.pendingBranch=e.ssContent,p,null,n,f,o,s),f.deps>0?(rl(e,"onPending"),rl(e,"onFallback"),u(null,e.ssFallback,t,r,n,null,o,s),rs(f,e.ssFallback)):f.resolve(!1,!0)}function k7(e,t,r,n,i,o,s,a,{p:l,um:u,o:{createElement:d}}){const p=t.suspense=e.suspense;p.vnode=t,t.el=e.el;const f=t.ssContent,h=t.ssFallback,{activeBranch:y,pendingBranch:g,isInFallback:v,isHydrating:b}=p;if(g)p.pendingBranch=f,zr(g,f)?(l(g,f,p.hiddenContainer,null,i,p,o,s,a),p.deps<=0?p.resolve():v&&(b||(l(y,h,r,n,i,null,o,s,a),rs(p,h)))):(p.pendingId=ch++,b?(p.isHydrating=!1,p.activeBranch=g):u(g,i,p),p.deps=0,p.effects.length=0,p.hiddenContainer=d("div"),v?(l(null,f,p.hiddenContainer,null,i,p,o,s,a),p.deps<=0?p.resolve():(l(y,h,r,n,i,null,o,s,a),rs(p,h))):y&&zr(y,f)?(l(y,f,r,n,i,p,o,s,a),p.resolve(!0)):(l(null,f,p.hiddenContainer,null,i,p,o,s,a),p.deps<=0&&p.resolve()));else if(y&&zr(y,f))l(y,f,r,n,i,p,o,s,a),rs(p,f);else if(rl(t,"onPending"),p.pendingBranch=f,f.shapeFlag&512?p.pendingId=f.component.suspenseId:p.pendingId=ch++,l(null,f,p.hiddenContainer,null,i,p,o,s,a),p.deps<=0)p.resolve();else{const{timeout:E,pendingId:w}=p;E>0?setTimeout(()=>{p.pendingId===w&&p.fallback(h)},E):E===0&&p.fallback(h)}}function mx(e,t,r,n,i,o,s,a,l,u,d=!1){const{p,m:f,um:h,n:y,o:{parentNode:g,remove:v}}=u;let b;const E=F7(e);E&&t&&t.pendingBranch&&(b=t.pendingId,t.deps++);const w=e.props?nc(e.props.timeout):void 0,A=o,C={vnode:e,parent:t,parentComponent:r,namespace:s,container:n,hiddenContainer:i,deps:0,pendingId:ch++,timeout:typeof w=="number"?w:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(R=!1,S=!1){const{vnode:_,activeBranch:O,pendingBranch:M,pendingId:I,effects:k,parentComponent:N,container:P,isInFallback:q}=C;let F=!1;C.isHydrating?C.isHydrating=!1:R||(F=O&&M.transition&&M.transition.mode==="out-in",F&&(O.transition.afterLeave=()=>{I===C.pendingId&&(f(M,P,o===A?y(O):o,0),Qa(k),q&&_.ssFallback&&(_.ssFallback.el=null))}),O&&!C.isFallbackMountPending&&(g(O.el)===P&&(o=y(O)),h(O,N,C,!0),!F&&q&&_.ssFallback&&Tt(()=>_.ssFallback.el=null,C)),F||f(M,P,o,0)),C.isFallbackMountPending=!1,rs(C,M),C.pendingBranch=null,C.isInFallback=!1;let $=C.parent,G=!1;for(;$;){if($.pendingBranch){$.effects.push(...k),G=!0;break}$=$.parent}!G&&!F&&Qa(k),C.effects=[],E&&t&&t.pendingBranch&&b===t.pendingId&&(t.deps--,t.deps===0&&!S&&t.resolve()),rl(_,"onResolve")},fallback(R){if(!C.pendingBranch)return;const{vnode:S,activeBranch:_,parentComponent:O,container:M,namespace:I}=C;rl(S,"onFallback");const k=y(_),N=()=>{C.isFallbackMountPending=!1,C.isInFallback&&(p(null,R,M,k,O,null,I,a,l),rs(C,R))},P=R.transition&&R.transition.mode==="out-in";P&&(C.isFallbackMountPending=!0,_.transition.afterLeave=N),C.isInFallback=!0,h(_,O,null,!0),P||N()},move(R,S,_){C.activeBranch&&f(C.activeBranch,R,S,_),C.container=R},next(){return C.activeBranch&&y(C.activeBranch)},registerDep(R,S,_){const O=!!C.pendingBranch;O&&C.deps++;const M=R.vnode.el;R.asyncDep.catch(I=>{Co(I,R,0)}).then(I=>{if(R.isUnmounted||C.isUnmounted||C.pendingId!==R.suspenseId)return;ol(),R.asyncResolved=!0;const{vnode:k}=R;dh(R,I,!1),M&&(k.el=M);const N=!M&&R.subTree.el;S(R,k,g(M||R.subTree.el),M?null:y(R.subTree),C,s,_),N&&(k.placeholder=null,v(N)),Cd(R,k.el),O&&--C.deps===0&&C.resolve()})},unmount(R,S){C.isUnmounted=!0,C.activeBranch&&h(C.activeBranch,r,R,S),C.pendingBranch&&h(C.pendingBranch,r,R,S)}};return C}function D7(e,t,r,n,i,o,s,a,l){const u=t.suspense=mx(t,n,r,e.parentNode,document.createElement("div"),null,i,o,s,a,!0),d=l(e,u.pendingBranch=t.ssContent,r,u,o,s);return u.deps===0&&u.resolve(!1,!0),d}function L7(e){const{shapeFlag:t,children:r}=e,n=t&32;e.ssContent=sT(n?r.default:r),e.ssFallback=n?sT(r.fallback):dt(vt)}function sT(e){let t;if(_e(e)){const r=vo&&e._c;r&&(e._d=!1,nl()),e=e(),r&&(e._d=!0,t=Xt,gx())}return ye(e)&&(e=w7(e)),e=pr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function yx(e,t){t&&t.pendingBranch?ye(e)?t.effects.push(...e):t.effects.push(e):Qa(e)}function rs(e,t){e.activeBranch=t;const{vnode:r,parentComponent:n}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;r.el=i,n&&n.subTree===r&&(n.vnode.el=i,Cd(n,i))}function F7(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const qt=Symbol.for("v-fgt"),Ci=Symbol.for("v-txt"),vt=Symbol.for("v-cmt"),lo=Symbol.for("v-stc"),Ra=[];let Xt=null;function nl(e=!1){Ra.push(Xt=e?null:[])}function gx(){Ra.pop(),Xt=Ra[Ra.length-1]||null}let vo=1;function il(e,t=!1){vo+=e,e<0&&Xt&&t&&(Xt.hasOnce=!0)}function bx(e){return e.dynamicChildren=vo>0?Xt||zo:null,gx(),vo>0&&Xt&&Xt.push(e),e}function B7(e,t,r,n,i,o){return bx(eg(e,t,r,n,i,o,!0))}function fc(e,t,r,n,i){return bx(dt(e,t,r,n,i,!0))}function rn(e){return e?e.__v_isVNode===!0:!1}function zr(e,t){return e.type===t.type&&e.key===t.key}function $7(e){}const vx=({key:e})=>e??null,Su=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Ae(e)||_t(e)||_e(e)?{i:Vt,r:e,k:t,f:!!r}:e:null);function eg(e,t=null,r=null,n=0,i=null,o=e===qt?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&vx(t),ref:t&&Su(t),scopeId:wd,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Vt};return a?(rg(l,r),o&128&&e.normalize(l)):r&&(l.shapeFlag|=Ae(r)?8:16),vo>0&&!s&&Xt&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Xt.push(l),l}const dt=U7;function U7(e,t=null,r=null,n=0,i=null,o=!1){if((!e||e===KC)&&(e=vt),rn(e)){const a=bn(e,t,!0);return r&&rg(a,r),vo>0&&!o&&Xt&&(a.shapeFlag&6?Xt[Xt.indexOf(e)]=a:Xt.push(a)),a.patchFlag=-2,a}if(Y7(e)&&(e=e.__vccOpts),t){t=Ex(t);let{class:a,style:l}=t;a&&!Ae(a)&&(t.class=Al(a)),Ge(l)&&(Pl(l)&&!ye(l)&&(l=qe({},l)),t.style=Ol(l))}const s=Ae(e)?1:pc(e)?128:jC(e)?64:Ge(e)?4:_e(e)?2:0;return eg(e,t,r,n,i,s,o,!0)}function Ex(e){return e?Pl(e)||nx(e)?qe({},e):e:null}function bn(e,t,r=!1,n=!1){const{props:i,ref:o,patchFlag:s,children:a,transition:l}=e,u=t?Tx(i||{},t):i,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&vx(u),ref:t&&t.ref?r&&o?ye(o)?o.concat(Su(t)):[o,Su(t)]:Su(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==qt?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&bn(e.ssContent),ssFallback:e.ssFallback&&bn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&Yn(d,l.clone(d)),d}function tg(e=" ",t=0){return dt(Ci,null,e,t)}function V7(e,t){const r=dt(lo,null,e);return r.staticCount=t,r}function J7(e="",t=!1){return t?(nl(),fc(vt,null,e)):dt(vt,null,e)}function pr(e){return e==null||typeof e=="boolean"?dt(vt):ye(e)?dt(qt,null,e.slice()):rn(e)?Nn(e):dt(Ci,null,String(e))}function Nn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:bn(e)}function rg(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ye(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),rg(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!nx(t)?t._ctx=Vt:i===3&&Vt&&(Vt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else _e(t)?(t={default:t,_ctx:Vt},r=32):(t=String(t),n&64?(r=16,t=[tg(t)]):r=8);e.children=t,e.shapeFlag|=r}function Tx(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=Al([t.class,n.class]));else if(i==="style")t.style=Ol([t.style,n.style]);else if(Oo(i)){const o=t[i],s=n[i];s&&o!==s&&!(ye(o)&&o.includes(s))?t[i]=o?[].concat(o,s):s:s==null&&o==null&&!cd(i)&&(t[i]=s)}else i!==""&&(t[i]=n[i])}return t}function dr(e,t,r,n=null){Br(e,t,7,[r,n])}const H7=XC();let G7=0;function wx(e,t,r){const n=e.type,i=(t?t.appContext:e.appContext)||H7,o={uid:G7++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new jy(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ox(n,i),emitsOptions:ZC(n,i),emit:null,emitted:null,propsDefaults:ke,inheritAttrs:n.inheritAttrs,ctx:ke,data:ke,props:ke,attrs:ke,slots:ke,refs:ke,setupState:ke,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=E7.bind(null,o),e.ce&&e.ce(o),o}let $t=null;const lr=()=>$t||Vt;let hc,ns;{const e=md(),t=(r,n)=>{let i;return(i=e[r])||(i=e[r]=[]),i.push(n),o=>{i.length>1?i.forEach(s=>s(o)):i[0](o)}};hc=t("__VUE_INSTANCE_SETTERS__",r=>$t=r),ns=t("__VUE_SSR_SETTERS__",r=>Eo=r)}const js=e=>{const t=$t;return hc(e),e.scope.on(),()=>{e.scope.off(),hc(t)}},ol=()=>{$t&&$t.scope.off(),hc(null)};function _x(e){return e.vnode.shapeFlag&4}let Eo=!1;function Sx(e,t=!1,r=!1){t&&ns(t);const{props:n,children:i}=e.vnode,o=_x(e);O7(e,n,o,t),x7(e,i,r||t);const s=o?W7(e,t):void 0;return t&&ns(!1),s}function W7(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,sh);const{setup:n}=r;if(n){Kn();const i=e.setupContext=n.length>1?Ax(e):null,o=js(e),s=qs(n,e,0,[e.props,i]),a=qy(s);if(zn(),o(),(a||e.sp)&&!Jn(e)&&Hy(e),a){if(s.then(ol,ol),t)return s.then(l=>{dh(e,l,t)}).catch(l=>{Co(l,e,0)});e.asyncDep=s}else dh(e,s,t)}else Ox(e,t)}function dh(e,t,r){_e(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ge(t)&&(e.setupState=Fy(t)),Ox(e,r)}let mc,ph;function Rx(e){mc=e,ph=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Q4))}}const K7=()=>!mc;function Ox(e,t,r){const n=e.type;if(!e.render){if(!t&&mc&&!n.render){const i=n.template||Yy(e).template;if(i){const{isCustomElement:o,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:l}=n,u=qe(qe({isCustomElement:o,delimiters:a},s),l);n.render=mc(i,u)}}e.render=n.render||Jt,ph&&ph(e)}{const i=js(e);Kn();try{p7(e)}finally{zn(),i()}}}const z7={get(e,t){return Yt(e,"get",""),e[t]}};function Ax(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,z7),slots:e.slots,emit:e.emit,expose:t}}function Ml(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Fy(bC(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Sa)return Sa[r](e)},has(t,r){return r in t||r in Sa}})):e.proxy}function fh(e,t=!0){return _e(e)?e.displayName||e.name:e.name||t&&e.__name}function Y7(e){return _e(e)&&"__vccOpts"in e}const Px=(e,t)=>t4(e,t,Eo);function xo(e,t,r){try{il(-1);const n=arguments.length;return n===2?Ge(t)&&!ye(t)?rn(t)?dt(e,null,[t]):dt(e,t):dt(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&rn(r)&&(r=[r]),dt(e,t,r))}finally{il(1)}}function X7(){}function Q7(e,t,r,n){const i=r[n];if(i&&Cx(i,e))return i;const o=t();return o.memo=e.slice(),o.cacheIndex=n,r[n]=o}function Cx(e,t){const r=e.memo;if(r.length!=t.length)return!1;for(let n=0;n<r.length;n++)if(Bt(r[n],t[n]))return!1;return vo>0&&Xt&&Xt.push(e),!0}const xx="3.5.32",Z7=Jt,eX=c4,tX=Do,rX=PC,nX={createComponentInstance:wx,setupComponent:Sx,renderComponentRoot:_u,setCurrentRenderingInstance:el,isVNode:rn,normalizeVNode:pr,getComponentPublicInstance:Ml,ensureValidVNode:zy,pushWarningContext:s4,popWarningContext:a4},iX=nX,oX=null,sX=null,aX=null;/**
|
|
1035
|
-
* @vue/runtime-dom v3.5.32
|
|
1036
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1037
|
-
* @license MIT
|
|
1038
|
-
**/let hh;const aT=typeof window<"u"&&window.trustedTypes;if(aT)try{hh=aT.createPolicy("vue",{createHTML:e=>e})}catch{}const Nx=hh?e=>hh.createHTML(e):e=>e,lX="http://www.w3.org/2000/svg",uX="http://www.w3.org/1998/Math/MathML",xn=typeof document<"u"?document:null,lT=xn&&xn.createElement("template"),Ix={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const i=t==="svg"?xn.createElementNS(lX,e):t==="mathml"?xn.createElementNS(uX,e):r?xn.createElement(e,{is:r}):xn.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>xn.createTextNode(e),createComment:e=>xn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>xn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,i,o){const s=r?r.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),r),!(i===o||!(i=i.nextSibling)););else{lT.innerHTML=Nx(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const a=lT.content;if(n==="svg"||n==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,r)}return[s?s.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},ci="transition",Xs="animation",Es=Symbol("_vtc"),Mx={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},qx=qe({},Vy,Mx),cX=e=>(e.displayName="Transition",e.props=qx,e),dX=cX((e,{slots:t})=>xo(LC,jx(e),t)),Gi=(e,t=[])=>{ye(e)?e.forEach(r=>r(...t)):e&&e(...t)},uT=e=>e?ye(e)?e.some(t=>t.length>1):e.length>1:!1;function jx(e){const t={};for(const k in e)k in Mx||(t[k]=e[k]);if(e.css===!1)return t;const{name:r="v",type:n,duration:i,enterFromClass:o=`${r}-enter-from`,enterActiveClass:s=`${r}-enter-active`,enterToClass:a=`${r}-enter-to`,appearFromClass:l=o,appearActiveClass:u=s,appearToClass:d=a,leaveFromClass:p=`${r}-leave-from`,leaveActiveClass:f=`${r}-leave-active`,leaveToClass:h=`${r}-leave-to`}=e,y=pX(i),g=y&&y[0],v=y&&y[1],{onBeforeEnter:b,onEnter:E,onEnterCancelled:w,onLeave:A,onLeaveCancelled:C,onBeforeAppear:R=b,onAppear:S=E,onAppearCancelled:_=w}=t,O=(k,N,P,q)=>{k._enterCancelled=q,fi(k,N?d:a),fi(k,N?u:s),P&&P()},M=(k,N)=>{k._isLeaving=!1,fi(k,p),fi(k,h),fi(k,f),N&&N()},I=k=>(N,P)=>{const q=k?S:E,F=()=>O(N,k,P);Gi(q,[N,F]),cT(()=>{fi(N,k?l:o),sn(N,k?d:a),uT(q)||dT(N,n,g,F)})};return qe(t,{onBeforeEnter(k){Gi(b,[k]),sn(k,o),sn(k,s)},onBeforeAppear(k){Gi(R,[k]),sn(k,l),sn(k,u)},onEnter:I(!1),onAppear:I(!0),onLeave(k,N){k._isLeaving=!0;const P=()=>M(k,N);sn(k,p),k._enterCancelled?(sn(k,f),mh(k)):(mh(k),sn(k,f)),cT(()=>{k._isLeaving&&(fi(k,p),sn(k,h),uT(A)||dT(k,n,v,P))}),Gi(A,[k,P])},onEnterCancelled(k){O(k,!1,void 0,!0),Gi(w,[k])},onAppearCancelled(k){O(k,!0,void 0,!0),Gi(_,[k])},onLeaveCancelled(k){M(k),Gi(C,[k])}})}function pX(e){if(e==null)return null;if(Ge(e))return[jp(e.enter),jp(e.leave)];{const t=jp(e);return[t,t]}}function jp(e){return nc(e)}function sn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Es]||(e[Es]=new Set)).add(t)}function fi(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[Es];r&&(r.delete(t),r.size||(e[Es]=void 0))}function cT(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let fX=0;function dT(e,t,r,n){const i=e._endId=++fX,o=()=>{i===e._endId&&n()};if(r!=null)return setTimeout(o,r);const{type:s,timeout:a,propCount:l}=kx(e,t);if(!s)return n();const u=s+"end";let d=0;const p=()=>{e.removeEventListener(u,f),o()},f=h=>{h.target===e&&++d>=l&&p()};setTimeout(()=>{d<l&&p()},a+1),e.addEventListener(u,f)}function kx(e,t){const r=window.getComputedStyle(e),n=y=>(r[y]||"").split(", "),i=n(`${ci}Delay`),o=n(`${ci}Duration`),s=pT(i,o),a=n(`${Xs}Delay`),l=n(`${Xs}Duration`),u=pT(a,l);let d=null,p=0,f=0;t===ci?s>0&&(d=ci,p=s,f=o.length):t===Xs?u>0&&(d=Xs,p=u,f=l.length):(p=Math.max(s,u),d=p>0?s>u?ci:Xs:null,f=d?d===ci?o.length:l.length:0);const h=d===ci&&/\b(?:transform|all)(?:,|$)/.test(n(`${ci}Property`).toString());return{type:d,timeout:p,propCount:f,hasTransform:h}}function pT(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>fT(r)+fT(e[n])))}function fT(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function mh(e){return(e?e.ownerDocument:document).body.offsetHeight}function hX(e,t,r){const n=e[Es];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const yc=Symbol("_vod"),Dx=Symbol("_vsh"),Lx={name:"show",beforeMount(e,{value:t},{transition:r}){e[yc]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Qs(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),Qs(e,!0),n.enter(e)):n.leave(e,()=>{Qs(e,!1)}):Qs(e,t))},beforeUnmount(e,{value:t}){Qs(e,t)}};function Qs(e,t){e.style.display=t?e[yc]:"none",e[Dx]=!t}function mX(){Lx.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Fx=Symbol("");function yX(e){const t=lr();if(!t)return;const r=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>gc(o,i))},n=()=>{const i=e(t.proxy);t.ce?gc(t.ce,i):yh(t.subTree,i),r(i)};Gy(()=>{Qa(n)}),Il(()=>{es(n,Jt,{flush:"post"});const i=new MutationObserver(n);i.observe(t.subTree.el.parentNode,{childList:!0}),Ad(()=>i.disconnect())})}function yh(e,t){if(e.shapeFlag&128){const r=e.suspense;e=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{yh(r.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)gc(e.el,t);else if(e.type===qt)e.children.forEach(r=>yh(r,t));else if(e.type===lo){let{el:r,anchor:n}=e;for(;r&&(gc(r,t),r!==n);)r=r.nextSibling}}function gc(e,t){if(e.nodeType===1){const r=e.style;let n="";for(const i in t){const o=EY(t[i]);r.setProperty(`--${i}`,o),n+=`--${i}: ${o};`}r[Fx]=n}}const gX=/(?:^|;)\s*display\s*:/;function bX(e,t,r){const n=e.style,i=Ae(r);let o=!1;if(r&&!i){if(t)if(Ae(t))for(const s of t.split(";")){const a=s.slice(0,s.indexOf(":")).trim();r[a]==null&&Ru(n,a,"")}else for(const s in t)r[s]==null&&Ru(n,s,"");for(const s in r)s==="display"&&(o=!0),Ru(n,s,r[s])}else if(i){if(t!==r){const s=n[Fx];s&&(r+=";"+s),n.cssText=r,o=gX.test(r)}}else t&&e.removeAttribute("style");yc in e&&(e[yc]=o?n.display:"",e[Dx]&&(n.display="none"))}const hT=/\s*!important$/;function Ru(e,t,r){if(ye(r))r.forEach(n=>Ru(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=vX(e,t);hT.test(r)?e.setProperty(fr(n),r.replace(hT,""),"important"):e[n]=r}}const mT=["Webkit","Moz","ms"],kp={};function vX(e,t){const r=kp[t];if(r)return r;let n=Ze(t);if(n!=="filter"&&n in e)return kp[t]=n;n=Po(n);for(let i=0;i<mT.length;i++){const o=mT[i]+n;if(o in e)return kp[t]=o}return t}const yT="http://www.w3.org/1999/xlink";function gT(e,t,r,n,i,o=bY(t)){n&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(yT,t.slice(6,t.length)):e.setAttributeNS(yT,t,r):r==null||o&&!XP(r)?e.removeAttribute(t):e.setAttribute(t,o?"":rr(r)?String(r):r)}function bT(e,t,r,n,i){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?Nx(r):r);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?e.getAttribute("value")||"":e.value,l=r==null?e.type==="checkbox"?"on":"":String(r);(a!==l||!("_value"in e))&&(e.value=l),r==null&&e.removeAttribute(t),e._value=r;return}let s=!1;if(r===""||r==null){const a=typeof e[t];a==="boolean"?r=XP(r):r==null&&a==="string"?(r="",s=!0):a==="number"&&(r=0,s=!0)}try{e[t]=r}catch{}s&&e.removeAttribute(i||t)}function kn(e,t,r,n){e.addEventListener(t,r,n)}function EX(e,t,r,n){e.removeEventListener(t,r,n)}const vT=Symbol("_vei");function TX(e,t,r,n,i=null){const o=e[vT]||(e[vT]={}),s=o[t];if(n&&s)s.value=n;else{const[a,l]=wX(t);if(n){const u=o[t]=RX(n,i);kn(e,a,u,l)}else s&&(EX(e,a,s,l),o[t]=void 0)}}const ET=/(?:Once|Passive|Capture)$/;function wX(e){let t;if(ET.test(e)){t={};let n;for(;n=e.match(ET);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):fr(e.slice(2)),t]}let Dp=0;const _X=Promise.resolve(),SX=()=>Dp||(_X.then(()=>Dp=0),Dp=Date.now());function RX(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Br(OX(n,r.value),t,5,[n])};return r.value=e,r.attached=SX(),r}function OX(e,t){if(ye(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const TT=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Bx=(e,t,r,n,i,o)=>{const s=i==="svg";t==="class"?hX(e,n,s):t==="style"?bX(e,r,n):Oo(t)?cd(t)||TX(e,t,r,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):AX(e,t,n,s))?(bT(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&gT(e,t,n,s,o,t!=="value")):e._isVueCE&&(PX(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Ae(n)))?bT(e,Ze(t),n,o,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),gT(e,t,n,s))};function AX(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&TT(t)&&_e(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return TT(t)&&Ae(r)?!1:t in e}function PX(e,t){const r=e._def.props;if(!r)return!1;const n=Ze(t);return Array.isArray(r)?r.some(i=>Ze(i)===n):Object.keys(r).some(i=>Ze(i)===n)}const wT={};function $x(e,t,r){let n=Jy(e,t);dd(n)&&(n=qe({},n,t));class i extends xd{constructor(s){super(n,s,r)}}return i.def=n,i}const CX=(e,t)=>$x(e,t,eN),xX=typeof HTMLElement<"u"?HTMLElement:class{};class xd extends xX{constructor(t,r={},n=Ec){super(),this._def=t,this._props=r,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==Ec?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(qe({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.assignedSlot||t.parentNode||t.host);)if(t instanceof xd){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,Td(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const r of t)this._setAttr(r.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(n,i=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:o,styles:s}=n;let a;if(o&&!ye(o))for(const l in o){const u=o[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=nc(this._props[l])),(a||(a=Object.create(null)))[Ze(l)]=!0)}this._numberProps=a,this._resolveProps(n),this.shadowRoot&&this._applyStyles(s),this._mount(n)},r=this._def.__asyncLoader;r?this._pendingResolve=r().then(n=>{n.configureApp=this._def.configureApp,t(this._def=n,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const r=this._instance&&this._instance.exposed;if(r)for(const n in r)Ke(this,n)||Object.defineProperty(this,n,{get:()=>Cl(r[n])})}_resolveProps(t){const{props:r}=t,n=ye(r)?r:Object.keys(r||{});for(const i of Object.keys(this))i[0]!=="_"&&n.includes(i)&&this._setProp(i,this[i]);for(const i of n.map(Ze))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(o){this._setProp(i,o,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const r=this.hasAttribute(t);let n=r?this.getAttribute(t):wT;const i=Ze(t);r&&this._numberProps&&this._numberProps[i]&&(n=nc(n)),this._setProp(i,n,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,r,n=!0,i=!1){if(r!==this._props[t]&&(this._dirty=!0,r===wT?delete this._props[t]:(this._props[t]=r,t==="key"&&this._app&&(this._app._ceVNode.key=r)),i&&this._instance&&this._update(),n)){const o=this._ob;o&&(this._processMutations(o.takeRecords()),o.disconnect()),r===!0?this.setAttribute(fr(t),""):typeof r=="string"||typeof r=="number"?this.setAttribute(fr(t),r+""):r||this.removeAttribute(fr(t)),o&&o.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),Zx(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const r=dt(this._def,qe(t,this._props));return this._instance||(r.ce=n=>{this._instance=n,n.ce=this,n.isCE=!0;const i=(o,s)=>{this.dispatchEvent(new CustomEvent(o,dd(s[0])?qe({detail:s},s[0]):{detail:s}))};n.emit=(o,...s)=>{i(o,s),fr(o)!==o&&i(fr(o),s)},this._setParent()}),r}_applyStyles(t,r,n){if(!t)return;if(r){if(r===this._def||this._styleChildren.has(r))return;this._styleChildren.add(r)}const i=this._nonce,o=this.shadowRoot,s=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(o);let a=null;for(let l=t.length-1;l>=0;l--){const u=document.createElement("style");i&&u.setAttribute("nonce",i),u.textContent=t[l],o.insertBefore(u,a||s),a=u,l===0&&(n||this._styleAnchors.set(this._def,u),r&&this._styleAnchors.set(r,u))}}_getStyleAnchor(t){if(!t)return null;const r=this._styleAnchors.get(t);return r&&r.parentNode===this.shadowRoot?r:(r&&this._styleAnchors.delete(t),null)}_getRootStyleInsertionAnchor(t){for(let r=0;r<t.childNodes.length;r++){const n=t.childNodes[r];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){const t=this._slots={};let r;for(;r=this.firstChild;){const n=r.nodeType===1&&r.getAttribute("slot")||"default";(t[n]||(t[n]=[])).push(r),this.removeChild(r)}}_renderSlots(){const t=this._getSlots(),r=this._instance.type.__scopeId;for(let n=0;n<t.length;n++){const i=t[n],o=i.getAttribute("name")||"default",s=this._slots[o],a=i.parentNode;if(s)for(const l of s){if(r&&l.nodeType===1){const u=r+"-s",d=document.createTreeWalker(l,1);l.setAttribute(u,"");let p;for(;p=d.nextNode();)p.setAttribute(u,"")}a.insertBefore(l,i)}else for(;i.firstChild;)a.insertBefore(i.firstChild,i);a.removeChild(i)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const r=new Set;for(const n of t){const i=n.querySelectorAll("slot");for(let o=0;o<i.length;o++)r.add(i[o])}return Array.from(r)}_injectChildStyle(t,r){this._applyStyles(t.styles,t,r)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(t){}}function Ux(e){const t=lr(),r=t&&t.ce;return r||null}function NX(){const e=Ux();return e&&e.shadowRoot}function IX(e="$style"){{const t=lr();if(!t)return ke;const r=t.type.__cssModules;if(!r)return ke;const n=r[e];return n||ke}}const Vx=new WeakMap,Jx=new WeakMap,bc=Symbol("_moveCb"),_T=Symbol("_enterCb"),MX=e=>(delete e.props.mode,e),qX=MX({name:"TransitionGroup",props:qe({},qx,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=lr(),n=Uy();let i,o;return Rd(()=>{if(!i.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!FX(i[0].el,r.vnode.el,s)){i=[];return}i.forEach(kX),i.forEach(DX);const a=i.filter(LX);mh(r.vnode.el),a.forEach(l=>{const u=l.el,d=u.style;sn(u,s),d.transform=d.webkitTransform=d.transitionDuration="";const p=u[bc]=f=>{f&&f.target!==u||(!f||f.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",p),u[bc]=null,fi(u,s))};u.addEventListener("transitionend",p)}),i=[]}),()=>{const s=Le(e),a=jx(s);let l=s.tag||qt;if(i=[],o)for(let u=0;u<o.length;u++){const d=o[u];d.el&&d.el instanceof Element&&(i.push(d),Yn(d,vs(d,a,n,r)),Vx.set(d,Hx(d.el)))}o=t.default?_d(t.default()):[];for(let u=0;u<o.length;u++){const d=o[u];d.key!=null&&Yn(d,vs(d,a,n,r))}return dt(l,null,o)}}}),jX=qX;function kX(e){const t=e.el;t[bc]&&t[bc](),t[_T]&&t[_T]()}function DX(e){Jx.set(e,Hx(e.el))}function LX(e){const t=Vx.get(e),r=Jx.get(e),n=t.left-r.left,i=t.top-r.top;if(n||i){const o=e.el,s=o.style,a=o.getBoundingClientRect();let l=1,u=1;return o.offsetWidth&&(l=a.width/o.offsetWidth),o.offsetHeight&&(u=a.height/o.offsetHeight),(!Number.isFinite(l)||l===0)&&(l=1),(!Number.isFinite(u)||u===0)&&(u=1),Math.abs(l-1)<.01&&(l=1),Math.abs(u-1)<.01&&(u=1),s.transform=s.webkitTransform=`translate(${n/l}px,${i/u}px)`,s.transitionDuration="0s",e}}function Hx(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function FX(e,t,r){const n=e.cloneNode(),i=e[Es];i&&i.forEach(a=>{a.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),r.split(/\s+/).forEach(a=>a&&n.classList.add(a)),n.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(n);const{hasTransform:s}=kx(n);return o.removeChild(n),s}const Mi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ye(t)?r=>Qo(t,r):t};function BX(e){e.target.composing=!0}function ST(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Lr=Symbol("_assign");function RT(e,t,r){return t&&(e=e.trim()),r&&(e=hd(e)),e}const vc={created(e,{modifiers:{lazy:t,trim:r,number:n}},i){e[Lr]=Mi(i);const o=n||i.props&&i.props.type==="number";kn(e,t?"change":"input",s=>{s.target.composing||e[Lr](RT(e.value,r,o))}),(r||o)&&kn(e,"change",()=>{e.value=RT(e.value,r,o)}),t||(kn(e,"compositionstart",BX),kn(e,"compositionend",ST),kn(e,"change",ST))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:i,number:o}},s){if(e[Lr]=Mi(s),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?hd(e.value):e.value,l=t??"";if(a===l)return;const u=e.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===e&&e.type!=="range"&&(n&&t===r||i&&e.value.trim()===l)||(e.value=l)}},ng={deep:!0,created(e,t,r){e[Lr]=Mi(r),kn(e,"change",()=>{const n=e._modelValue,i=Ts(e),o=e.checked,s=e[Lr];if(ye(n)){const a=yd(n,i),l=a!==-1;if(o&&!l)s(n.concat(i));else if(!o&&l){const u=[...n];u.splice(a,1),s(u)}}else if(Ao(n)){const a=new Set(n);o?a.add(i):a.delete(i),s(a)}else s(Wx(e,o))})},mounted:OT,beforeUpdate(e,t,r){e[Lr]=Mi(r),OT(e,t,r)}};function OT(e,{value:t,oldValue:r},n){e._modelValue=t;let i;if(ye(t))i=yd(t,n.props.value)>-1;else if(Ao(t))i=t.has(n.props.value);else{if(t===r)return;i=Wn(t,Wx(e,!0))}e.checked!==i&&(e.checked=i)}const ig={created(e,{value:t},r){e.checked=Wn(t,r.props.value),e[Lr]=Mi(r),kn(e,"change",()=>{e[Lr](Ts(e))})},beforeUpdate(e,{value:t,oldValue:r},n){e[Lr]=Mi(n),t!==r&&(e.checked=Wn(t,n.props.value))}},Gx={deep:!0,created(e,{value:t,modifiers:{number:r}},n){const i=Ao(t);kn(e,"change",()=>{const o=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>r?hd(Ts(s)):Ts(s));e[Lr](e.multiple?i?new Set(o):o:o[0]),e._assigning=!0,Td(()=>{e._assigning=!1})}),e[Lr]=Mi(n)},mounted(e,{value:t}){AT(e,t)},beforeUpdate(e,t,r){e[Lr]=Mi(r)},updated(e,{value:t}){e._assigning||AT(e,t)}};function AT(e,t){const r=e.multiple,n=ye(t);if(!(r&&!n&&!Ao(t))){for(let i=0,o=e.options.length;i<o;i++){const s=e.options[i],a=Ts(s);if(r)if(n){const l=typeof a;l==="string"||l==="number"?s.selected=t.some(u=>String(u)===String(a)):s.selected=yd(t,a)>-1}else s.selected=t.has(a);else if(Wn(Ts(s),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ts(e){return"_value"in e?e._value:e.value}function Wx(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const Kx={created(e,t,r){uu(e,t,r,null,"created")},mounted(e,t,r){uu(e,t,r,null,"mounted")},beforeUpdate(e,t,r,n){uu(e,t,r,n,"beforeUpdate")},updated(e,t,r,n){uu(e,t,r,n,"updated")}};function zx(e,t){switch(e){case"SELECT":return Gx;case"TEXTAREA":return vc;default:switch(t){case"checkbox":return ng;case"radio":return ig;default:return vc}}}function uu(e,t,r,n,i){const s=zx(e.tagName,r.props&&r.props.type)[i];s&&s(e,t,r,n)}function $X(){vc.getSSRProps=({value:e})=>({value:e}),ig.getSSRProps=({value:e},t)=>{if(t.props&&Wn(t.props.value,e))return{checked:!0}},ng.getSSRProps=({value:e},t)=>{if(ye(e)){if(t.props&&yd(e,t.props.value)>-1)return{checked:!0}}else if(Ao(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Kx.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const r=zx(t.type.toUpperCase(),t.props&&t.props.type);if(r.getSSRProps)return r.getSSRProps(e,t)}}const UX=["ctrl","shift","alt","meta"],VX={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>UX.some(r=>e[`${r}Key`]&&!t.includes(r))},JX=(e,t)=>{if(!e)return e;const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=(i,...o)=>{for(let s=0;s<t.length;s++){const a=VX[t[s]];if(a&&a(i,t))return}return e(i,...o)})},HX={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},GX=(e,t)=>{const r=e._withKeys||(e._withKeys={}),n=t.join(".");return r[n]||(r[n]=i=>{if(!("key"in i))return;const o=fr(i.key);if(t.some(s=>s===o||HX[s]===o))return e(i)})},Yx=qe({patchProp:Bx},Ix);let Oa,PT=!1;function Xx(){return Oa||(Oa=ux(Yx))}function Qx(){return Oa=PT?Oa:cx(Yx),PT=!0,Oa}const Zx=(...e)=>{Xx().render(...e)},WX=(...e)=>{Qx().hydrate(...e)},Ec=(...e)=>{const t=Xx().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=rN(n);if(!i)return;const o=t._component;!_e(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const s=r(i,!1,tN(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t},eN=(...e)=>{const t=Qx().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=rN(n);if(i)return r(i,!0,tN(i))},t};function tN(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function rN(e){return Ae(e)?document.querySelector(e):e}let CT=!1;const KX=()=>{CT||(CT=!0,$X(),mX())},zX=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:LC,BaseTransitionPropsValidators:Vy,Comment:vt,DeprecationTypes:aX,EffectScope:jy,ErrorCodes:u4,ErrorTypeStrings:eX,Fragment:qt,KeepAlive:U4,ReactiveEffect:za,Static:lo,Suspense:q7,Teleport:S4,Text:Ci,TrackOpTypes:r4,Transition:dX,TransitionGroup:jX,TriggerOpTypes:n4,VueElement:xd,assertNumber:l4,callWithAsyncErrorHandling:Br,callWithErrorHandling:qs,camelize:Ze,capitalize:Po,cloneVNode:bn,compatUtils:sX,computed:Px,createApp:Ec,createBlock:fc,createCommentVNode:J7,createElementBlock:B7,createElementVNode:eg,createHydrationRenderer:cx,createPropsRestProxy:c7,createRenderer:ux,createSSRApp:eN,createSlots:z4,createStaticVNode:V7,createTextVNode:tg,createVNode:dt,customRef:TC,defineAsyncComponent:B4,defineComponent:Jy,defineCustomElement:$x,defineEmits:e7,defineExpose:t7,defineModel:i7,defineOptions:r7,defineProps:Z4,defineSSRCustomElement:CX,defineSlots:n7,devtools:tX,effect:SY,effectScope:TY,getCurrentInstance:lr,getCurrentScope:tC,getCurrentWatcher:i4,getTransitionRawChildren:_d,guardReactiveProps:Ex,h:xo,handleError:Co,hasInjectionContext:g4,hydrate:WX,hydrateOnIdle:q4,hydrateOnInteraction:L4,hydrateOnMediaQuery:D4,hydrateOnVisible:k4,initCustomFormatter:X7,initDirectivesForSSR:KX,inject:_a,isMemoSame:Cx,isProxy:Pl,isReactive:yn,isReadonly:gn,isRef:_t,isRuntimeOnly:K7,isShallow:yr,isVNode:rn,markRaw:bC,mergeDefaults:l7,mergeModels:u7,mergeProps:Tx,nextTick:Td,nodeOps:Ix,normalizeClass:Al,normalizeProps:lY,normalizeStyle:Ol,onActivated:BC,onBeforeMount:VC,onBeforeUnmount:Od,onBeforeUpdate:Gy,onDeactivated:$C,onErrorCaptured:WC,onMounted:Il,onRenderTracked:GC,onRenderTriggered:HC,onScopeDispose:wY,onServerPrefetch:JC,onUnmounted:Ad,onUpdated:Rd,onWatcherCleanup:_C,openBlock:nl,patchProp:Bx,popScopeId:h4,provide:CC,proxyRefs:Fy,pushScopeId:f4,queuePostFlushCb:Qa,reactive:Pi,readonly:oc,ref:wa,registerRuntimeCompiler:Rx,render:Zx,renderList:K4,renderSlot:Y4,resolveComponent:H4,resolveDirective:W4,resolveDynamicComponent:G4,resolveFilter:oX,resolveTransitionHooks:vs,setBlockTracking:il,setDevtoolsHook:rX,setTransitionHooks:Yn,shallowReactive:gC,shallowReadonly:JY,shallowRef:vC,ssrContextKey:xC,ssrUtils:iX,stop:RY,toDisplayString:ZP,toHandlerKey:Xo,toHandlers:X4,toRaw:Le,toRef:ZY,toRefs:YY,toValue:WY,transformVNodeArgs:$7,triggerRef:GY,unref:Cl,useAttrs:a7,useCssModule:IX,useCssVars:yX,useHost:Ux,useId:O4,useModel:v7,useSSRContext:NC,useShadowRoot:NX,useSlots:s7,useTemplateRef:A4,useTransitionState:Uy,vModelCheckbox:ng,vModelDynamic:Kx,vModelRadio:ig,vModelSelect:Gx,vModelText:vc,vShow:Lx,version:xx,warn:Z7,watch:es,watchEffect:b4,watchPostEffect:v4,watchSyncEffect:IC,withAsyncContext:d7,withCtx:$y,withDefaults:o7,withDirectives:y4,withKeys:GX,withMemo:Q7,withModifiers:JX,withScopeId:m4},Symbol.toStringTag,{value:"Module"}));/**
|
|
1039
|
-
* @vue/compiler-core v3.5.32
|
|
1040
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1041
|
-
* @license MIT
|
|
1042
|
-
**/const sl=Symbol(""),Aa=Symbol(""),og=Symbol(""),Tc=Symbol(""),nN=Symbol(""),To=Symbol(""),iN=Symbol(""),oN=Symbol(""),sg=Symbol(""),ag=Symbol(""),ql=Symbol(""),lg=Symbol(""),sN=Symbol(""),ug=Symbol(""),cg=Symbol(""),dg=Symbol(""),pg=Symbol(""),fg=Symbol(""),hg=Symbol(""),aN=Symbol(""),lN=Symbol(""),Nd=Symbol(""),wc=Symbol(""),mg=Symbol(""),yg=Symbol(""),al=Symbol(""),jl=Symbol(""),gg=Symbol(""),gh=Symbol(""),YX=Symbol(""),bh=Symbol(""),_c=Symbol(""),XX=Symbol(""),QX=Symbol(""),bg=Symbol(""),ZX=Symbol(""),eQ=Symbol(""),vg=Symbol(""),uN=Symbol(""),ws={[sl]:"Fragment",[Aa]:"Teleport",[og]:"Suspense",[Tc]:"KeepAlive",[nN]:"BaseTransition",[To]:"openBlock",[iN]:"createBlock",[oN]:"createElementBlock",[sg]:"createVNode",[ag]:"createElementVNode",[ql]:"createCommentVNode",[lg]:"createTextVNode",[sN]:"createStaticVNode",[ug]:"resolveComponent",[cg]:"resolveDynamicComponent",[dg]:"resolveDirective",[pg]:"resolveFilter",[fg]:"withDirectives",[hg]:"renderList",[aN]:"renderSlot",[lN]:"createSlots",[Nd]:"toDisplayString",[wc]:"mergeProps",[mg]:"normalizeClass",[yg]:"normalizeStyle",[al]:"normalizeProps",[jl]:"guardReactiveProps",[gg]:"toHandlers",[gh]:"camelize",[YX]:"capitalize",[bh]:"toHandlerKey",[_c]:"setBlockTracking",[XX]:"pushScopeId",[QX]:"popScopeId",[bg]:"withCtx",[ZX]:"unref",[eQ]:"isRef",[vg]:"withMemo",[uN]:"isMemoSame"};function tQ(e){Object.getOwnPropertySymbols(e).forEach(t=>{ws[t]=e[t]})}const Cr={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function rQ(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:Cr}}function ll(e,t,r,n,i,o,s,a=!1,l=!1,u=!1,d=Cr){return e&&(a?(e.helper(To),e.helper(Rs(e.inSSR,u))):e.helper(Ss(e.inSSR,u)),s&&e.helper(fg)),{type:13,tag:t,props:r,children:n,patchFlag:i,dynamicProps:o,directives:s,isBlock:a,disableTracking:l,isComponent:u,loc:d}}function uo(e,t=Cr){return{type:17,loc:t,elements:e}}function Dr(e,t=Cr){return{type:15,loc:t,properties:e}}function wt(e,t){return{type:16,loc:Cr,key:Ae(e)?xe(e,!0):e,value:t}}function xe(e,t=!1,r=Cr,n=0){return{type:4,loc:r,content:e,isStatic:t,constType:t?3:n}}function Qr(e,t=Cr){return{type:8,loc:t,children:e}}function It(e,t=[],r=Cr){return{type:14,loc:r,callee:e,arguments:t}}function _s(e,t=void 0,r=!1,n=!1,i=Cr){return{type:18,params:e,returns:t,newline:r,isSlot:n,loc:i}}function vh(e,t,r,n=!0){return{type:19,test:e,consequent:t,alternate:r,newline:n,loc:Cr}}function nQ(e,t,r=!1,n=!1){return{type:20,index:e,value:t,needPauseTracking:r,inVOnce:n,needArraySpread:!1,loc:Cr}}function iQ(e){return{type:21,body:e,loc:Cr}}function Ss(e,t){return e||t?sg:ag}function Rs(e,t){return e||t?iN:oN}function Eg(e,{helper:t,removeHelper:r,inSSR:n}){e.isBlock||(e.isBlock=!0,r(Ss(n,e.isComponent)),t(To),t(Rs(n,e.isComponent)))}const xT=new Uint8Array([123,123]),NT=new Uint8Array([125,125]);function IT(e){return e>=97&&e<=122||e>=65&&e<=90}function _r(e){return e===32||e===10||e===9||e===12||e===13}function di(e){return e===47||e===62||_r(e)}function Sc(e){const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}const Wt={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class oQ{constructor(t,r){this.stack=t,this.cbs=r,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=xT,this.delimiterClose=NT,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=xT,this.delimiterClose=NT}getPos(t){let r=1,n=t+1;const i=this.newlines.length;let o=-1;if(i>100){let s=-1,a=i;for(;s+1<a;){const l=s+a>>>1;this.newlines[l]<t?s=l:a=l}o=s}else for(let s=i-1;s>=0;s--)if(t>this.newlines[s]){o=s;break}return o>=0&&(r=o+2,n=t-this.newlines[o]),{column:n,line:r,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const r=this.index+1-this.delimiterOpen.length;r>this.sectionStart&&this.cbs.ontext(this.sectionStart,r),this.state=3,this.sectionStart=r}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const r=this.sequenceIndex===this.currentSequence.length;if(!(r?di(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!r){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||_r(t)){const r=this.index-this.currentSequence.length;if(this.sectionStart<r){const n=this.index;this.index=r,this.cbs.ontext(this.sectionStart,r),this.index=n}this.sectionStart=r+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Wt.TitleEnd||this.currentSequence===Wt.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===Wt.Cdata[this.sequenceIndex]?++this.sequenceIndex===Wt.Cdata.length&&(this.state=28,this.currentSequence=Wt.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const r=this.buffer.charCodeAt(this.index);if(r===10&&this.newlines.push(this.index),r===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Wt.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,r){this.enterRCDATA(t,r),this.state=31}enterRCDATA(t,r){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=r}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):IT(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){di(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(di(t)){const r=this.buffer.slice(this.sectionStart,this.index);r!=="template"&&this.enterRCDATA(Sc("</"+r),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){_r(t)||(t===62?(this.state=1,this.sectionStart=this.index+1):(this.state=IT(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||_r(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?this.state=7:t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):_r(t)||this.handleAttrStart(t)}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):_r(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){(t===61||di(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t))}stateInDirName(t){t===61||di(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||di(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||di(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t))}stateInDirModifier(t){t===61||di(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):_r(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):_r(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,r){(t===r||this.fastForwardTo(r))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(r===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){_r(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=Wt.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===Wt.ScriptEnd[3]?this.startSpecial(Wt.ScriptEnd,4):t===Wt.StyleEnd[3]?this.startSpecial(Wt.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===Wt.TitleEnd[3]?this.startSpecial(Wt.TitleEnd,4):t===Wt.TextareaEnd[3]?this.startSpecial(Wt.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const r=this.buffer.charCodeAt(this.index);switch(r===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:{this.stateText(r);break}case 2:{this.stateInterpolationOpen(r);break}case 3:{this.stateInterpolation(r);break}case 4:{this.stateInterpolationClose(r);break}case 31:{this.stateSpecialStartSequence(r);break}case 32:{this.stateInRCDATA(r);break}case 26:{this.stateCDATASequence(r);break}case 19:{this.stateInAttrValueDoubleQuotes(r);break}case 12:{this.stateInAttrName(r);break}case 13:{this.stateInDirName(r);break}case 14:{this.stateInDirArg(r);break}case 15:{this.stateInDynamicDirArg(r);break}case 16:{this.stateInDirModifier(r);break}case 28:{this.stateInCommentLike(r);break}case 27:{this.stateInSpecialComment(r);break}case 11:{this.stateBeforeAttrName(r);break}case 6:{this.stateInTagName(r);break}case 34:{this.stateInSFCRootTagName(r);break}case 9:{this.stateInClosingTagName(r);break}case 5:{this.stateBeforeTagName(r);break}case 17:{this.stateAfterAttrName(r);break}case 20:{this.stateInAttrValueSingleQuotes(r);break}case 18:{this.stateBeforeAttrValue(r);break}case 8:{this.stateBeforeClosingTagName(r);break}case 10:{this.stateAfterClosingTagName(r);break}case 29:{this.stateBeforeSpecialS(r);break}case 30:{this.stateBeforeSpecialT(r);break}case 21:{this.stateInAttrValueNoQuotes(r);break}case 7:{this.stateInSelfClosingTag(r);break}case 23:{this.stateInDeclaration(r);break}case 22:{this.stateBeforeDeclaration(r);break}case 25:{this.stateBeforeComment(r);break}case 24:{this.stateInProcessingInstruction(r);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===Wt.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,r){}}function MT(e,{compatConfig:t}){const r=t&&t[e];return e==="MODE"?r||3:r}function co(e,t){const r=MT("MODE",t),n=MT(e,t);return r===3?n===!0:n!==!1}function ul(e,t,r,...n){return co(e,t)}function Tg(e){throw e}function cN(e){}function st(e,t,r,n){const i=`https://vuejs.org/error-reference/#compiler-${e}`,o=new SyntaxError(String(i));return o.code=e,o.loc=t,o}const mr=e=>e.type===4&&e.isStatic;function dN(e){switch(e){case"Teleport":case"teleport":return Aa;case"Suspense":case"suspense":return og;case"KeepAlive":case"keep-alive":return Tc;case"BaseTransition":case"base-transition":return nN}}const sQ=/^$|^\d|[^\$\w\xA0-\uFFFF]/,wg=e=>!sQ.test(e),pN=/[A-Za-z_$\xA0-\uFFFF]/,aQ=/[\.\?\w$\xA0-\uFFFF]/,lQ=/\s+[.[]\s*|\s*[.[]\s+/g,fN=e=>e.type===4?e.content:e.loc.source,uQ=e=>{const t=fN(e).trim().replace(lQ,a=>a.trim());let r=0,n=[],i=0,o=0,s=null;for(let a=0;a<t.length;a++){const l=t.charAt(a);switch(r){case 0:if(l==="[")n.push(r),r=1,i++;else if(l==="(")n.push(r),r=2,o++;else if(!(a===0?pN:aQ).test(l))return!1;break;case 1:l==="'"||l==='"'||l==="`"?(n.push(r),r=3,s=l):l==="["?i++:l==="]"&&(--i||(r=n.pop()));break;case 2:if(l==="'"||l==='"'||l==="`")n.push(r),r=3,s=l;else if(l==="(")o++;else if(l===")"){if(a===t.length-1)return!1;--o||(r=n.pop())}break;case 3:l===s&&(r=n.pop(),s=null);break}}return!i&&!o},hN=uQ,cQ=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,dQ=e=>cQ.test(fN(e)),pQ=dQ;function kr(e,t,r=!1){for(let n=0;n<e.props.length;n++){const i=e.props[n];if(i.type===7&&(r||i.exp)&&(Ae(t)?i.name===t:t.test(i.name)))return i}}function Id(e,t,r=!1,n=!1){for(let i=0;i<e.props.length;i++){const o=e.props[i];if(o.type===6){if(r)continue;if(o.name===t&&(o.value||n))return o}else if(o.name==="bind"&&(o.exp||n)&&Zi(o.arg,t))return o}}function Zi(e,t){return!!(e&&mr(e)&&e.content===t)}function fQ(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function Lp(e){return e.type===5||e.type===2}function qT(e){return e.type===7&&e.name==="pre"}function hQ(e){return e.type===7&&e.name==="slot"}function Rc(e){return e.type===1&&e.tagType===3}function Oc(e){return e.type===1&&e.tagType===2}const mQ=new Set([al,jl]);function mN(e,t=[]){if(e&&!Ae(e)&&e.type===14){const r=e.callee;if(!Ae(r)&&mQ.has(r))return mN(e.arguments[0],t.concat(e))}return[e,t]}function Ac(e,t,r){let n,i=e.type===13?e.props:e.arguments[2],o=[],s;if(i&&!Ae(i)&&i.type===14){const a=mN(i);i=a[0],o=a[1],s=o[o.length-1]}if(i==null||Ae(i))n=Dr([t]);else if(i.type===14){const a=i.arguments[0];!Ae(a)&&a.type===15?jT(t,a)||a.properties.unshift(t):i.callee===gg?n=It(r.helper(wc),[Dr([t]),i]):i.arguments.unshift(Dr([t])),!n&&(n=i)}else i.type===15?(jT(t,i)||i.properties.unshift(t),n=i):(n=It(r.helper(wc),[Dr([t]),i]),s&&s.callee===jl&&(s=o[o.length-2]));e.type===13?s?s.arguments[0]=n:e.props=n:s?s.arguments[0]=n:e.arguments[2]=n}function jT(e,t){let r=!1;if(e.key.type===4){const n=e.key.content;r=t.properties.some(i=>i.key.type===4&&i.key.content===n)}return r}function cl(e,t){return`_${t}_${e.replace(/[^\w]/g,(r,n)=>r==="-"?"_":e.charCodeAt(n).toString())}`}function yQ(e){return e.type===14&&e.callee===vg?e.arguments[1].returns:e}const gQ=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function yN(e){for(let t=0;t<e.length;t++)if(!_r(e.charCodeAt(t)))return!1;return!0}function _g(e){return e.type===2&&yN(e.content)||e.type===12&&_g(e.content)}function gN(e){return e.type===3||_g(e)}const bN={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:Uo,isPreTag:Uo,isIgnoreNewlineTag:Uo,isCustomElement:Uo,onError:Tg,onWarn:cN,comments:!1,prefixIdentifiers:!1};let ze=bN,dl=null,Hn="",zt=null,je=null,cr="",Cn=-1,Xi=-1,Sg=0,Ei=!1,Eh=null;const lt=[],yt=new oQ(lt,{onerr:An,ontext(e,t){cu(Ft(e,t),e,t)},ontextentity(e,t,r){cu(e,t,r)},oninterpolation(e,t){if(Ei)return cu(Ft(e,t),e,t);let r=e+yt.delimiterOpen.length,n=t-yt.delimiterClose.length;for(;_r(Hn.charCodeAt(r));)r++;for(;_r(Hn.charCodeAt(n-1));)n--;let i=Ft(r,n);i.includes("&")&&(i=ze.decodeEntities(i,!1)),Th({type:5,content:Au(i,!1,bt(r,n)),loc:bt(e,t)})},onopentagname(e,t){const r=Ft(e,t);zt={type:1,tag:r,ns:ze.getNamespace(r,lt[0],ze.ns),tagType:0,props:[],children:[],loc:bt(e-1,t),codegenNode:void 0}},onopentagend(e){DT(e)},onclosetag(e,t){const r=Ft(e,t);if(!ze.isVoidTag(r)){let n=!1;for(let i=0;i<lt.length;i++)if(lt[i].tag.toLowerCase()===r.toLowerCase()){n=!0,i>0&&An(24,lt[0].loc.start.offset);for(let s=0;s<=i;s++){const a=lt.shift();Ou(a,t,s<i)}break}n||An(23,vN(e,60))}},onselfclosingtag(e){const t=zt.tag;zt.isSelfClosing=!0,DT(e),lt[0]&<[0].tag===t&&Ou(lt.shift(),e)},onattribname(e,t){je={type:6,name:Ft(e,t),nameLoc:bt(e,t),value:void 0,loc:bt(e)}},ondirname(e,t){const r=Ft(e,t),n=r==="."||r===":"?"bind":r==="@"?"on":r==="#"?"slot":r.slice(2);if(!Ei&&n===""&&An(26,e),Ei||n==="")je={type:6,name:r,nameLoc:bt(e,t),value:void 0,loc:bt(e)};else if(je={type:7,name:n,rawName:r,exp:void 0,arg:void 0,modifiers:r==="."?[xe("prop")]:[],loc:bt(e)},n==="pre"){Ei=yt.inVPre=!0,Eh=zt;const i=zt.props;for(let o=0;o<i.length;o++)i[o].type===7&&(i[o]=AQ(i[o]))}},ondirarg(e,t){if(e===t)return;const r=Ft(e,t);if(Ei&&!qT(je))je.name+=r,eo(je.nameLoc,t);else{const n=r[0]!=="[";je.arg=Au(n?r:r.slice(1,-1),n,bt(e,t),n?3:0)}},ondirmodifier(e,t){const r=Ft(e,t);if(Ei&&!qT(je))je.name+="."+r,eo(je.nameLoc,t);else if(je.name==="slot"){const n=je.arg;n&&(n.content+="."+r,eo(n.loc,t))}else{const n=xe(r,!0,bt(e,t));je.modifiers.push(n)}},onattribdata(e,t){cr+=Ft(e,t),Cn<0&&(Cn=e),Xi=t},onattribentity(e,t,r){cr+=e,Cn<0&&(Cn=t),Xi=r},onattribnameend(e){const t=je.loc.start.offset,r=Ft(t,e);je.type===7&&(je.rawName=r),zt.props.some(n=>(n.type===7?n.rawName:n.name)===r)&&An(2,t)},onattribend(e,t){if(zt&&je){if(eo(je.loc,t),e!==0)if(cr.includes("&")&&(cr=ze.decodeEntities(cr,!0)),je.type===6)je.name==="class"&&(cr=TN(cr).trim()),e===1&&!cr&&An(13,t),je.value={type:2,content:cr,loc:e===1?bt(Cn,Xi):bt(Cn-1,Xi+1)},yt.inSFCRoot&&zt.tag==="template"&&je.name==="lang"&&cr&&cr!=="html"&&yt.enterRCDATA(Sc("</template"),0);else{let r=0;je.exp=Au(cr,!1,bt(Cn,Xi),0,r),je.name==="for"&&(je.forParseResult=vQ(je.exp));let n=-1;je.name==="bind"&&(n=je.modifiers.findIndex(i=>i.content==="sync"))>-1&&ul("COMPILER_V_BIND_SYNC",ze,je.loc,je.arg.loc.source)&&(je.name="model",je.modifiers.splice(n,1))}(je.type!==7||je.name!=="pre")&&zt.props.push(je)}cr="",Cn=Xi=-1},oncomment(e,t){ze.comments&&Th({type:3,content:Ft(e,t),loc:bt(e-4,t+3)})},onend(){const e=Hn.length;for(let t=0;t<lt.length;t++)Ou(lt[t],e-1),An(24,lt[t].loc.start.offset)},oncdata(e,t){lt[0].ns!==0?cu(Ft(e,t),e,t):An(1,e-9)},onprocessinginstruction(e){(lt[0]?lt[0].ns:ze.ns)===0&&An(21,e-1)}}),kT=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,bQ=/^\(|\)$/g;function vQ(e){const t=e.loc,r=e.content,n=r.match(gQ);if(!n)return;const[,i,o]=n,s=(p,f,h=!1)=>{const y=t.start.offset+f,g=y+p.length;return Au(p,!1,bt(y,g),0,h?1:0)},a={source:s(o.trim(),r.indexOf(o,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=i.trim().replace(bQ,"").trim();const u=i.indexOf(l),d=l.match(kT);if(d){l=l.replace(kT,"").trim();const p=d[1].trim();let f;if(p&&(f=r.indexOf(p,u+l.length),a.key=s(p,f,!0)),d[2]){const h=d[2].trim();h&&(a.index=s(h,r.indexOf(h,a.key?f+p.length:u+l.length),!0))}}return l&&(a.value=s(l,u,!0)),a}function Ft(e,t){return Hn.slice(e,t)}function DT(e){yt.inSFCRoot&&(zt.innerLoc=bt(e+1,e+1)),Th(zt);const{tag:t,ns:r}=zt;r===0&&ze.isPreTag(t)&&Sg++,ze.isVoidTag(t)?Ou(zt,e):(lt.unshift(zt),(r===1||r===2)&&(yt.inXML=!0)),zt=null}function cu(e,t,r){{const o=lt[0]&<[0].tag;o!=="script"&&o!=="style"&&e.includes("&")&&(e=ze.decodeEntities(e,!1))}const n=lt[0]||dl,i=n.children[n.children.length-1];i&&i.type===2?(i.content+=e,eo(i.loc,r)):n.children.push({type:2,content:e,loc:bt(t,r)})}function Ou(e,t,r=!1){r?eo(e.loc,vN(t,60)):eo(e.loc,EQ(t,62)+1),yt.inSFCRoot&&(e.children.length?e.innerLoc.end=qe({},e.children[e.children.length-1].loc.end):e.innerLoc.end=qe({},e.innerLoc.start),e.innerLoc.source=Ft(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:n,ns:i,children:o}=e;if(Ei||(n==="slot"?e.tagType=2:LT(e)?e.tagType=3:wQ(e)&&(e.tagType=1)),yt.inRCDATA||(e.children=EN(o)),i===0&&ze.isIgnoreNewlineTag(n)){const s=o[0];s&&s.type===2&&(s.content=s.content.replace(/^\r?\n/,""))}i===0&&ze.isPreTag(n)&&Sg--,Eh===e&&(Ei=yt.inVPre=!1,Eh=null),yt.inXML&&(lt[0]?lt[0].ns:ze.ns)===0&&(yt.inXML=!1);{const s=e.props;if(!yt.inSFCRoot&&co("COMPILER_NATIVE_TEMPLATE",ze)&&e.tag==="template"&&!LT(e)){const l=lt[0]||dl,u=l.children.indexOf(e);l.children.splice(u,1,...e.children)}const a=s.find(l=>l.type===6&&l.name==="inline-template");a&&ul("COMPILER_INLINE_TEMPLATE",ze,a.loc)&&e.children.length&&(a.value={type:2,content:Ft(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:a.loc})}}function EQ(e,t){let r=e;for(;Hn.charCodeAt(r)!==t&&r<Hn.length-1;)r++;return r}function vN(e,t){let r=e;for(;Hn.charCodeAt(r)!==t&&r>=0;)r--;return r}const TQ=new Set(["if","else","else-if","for","slot"]);function LT({tag:e,props:t}){if(e==="template"){for(let r=0;r<t.length;r++)if(t[r].type===7&&TQ.has(t[r].name))return!0}return!1}function wQ({tag:e,props:t}){if(ze.isCustomElement(e))return!1;if(e==="component"||_Q(e.charCodeAt(0))||dN(e)||ze.isBuiltInComponent&&ze.isBuiltInComponent(e)||ze.isNativeTag&&!ze.isNativeTag(e))return!0;for(let r=0;r<t.length;r++){const n=t[r];if(n.type===6){if(n.name==="is"&&n.value){if(n.value.content.startsWith("vue:"))return!0;if(ul("COMPILER_IS_ON_ELEMENT",ze,n.loc))return!0}}else if(n.name==="bind"&&Zi(n.arg,"is")&&ul("COMPILER_IS_ON_ELEMENT",ze,n.loc))return!0}return!1}function _Q(e){return e>64&&e<91}const SQ=/\r\n/g;function EN(e){const t=ze.whitespace!=="preserve";let r=!1;for(let n=0;n<e.length;n++){const i=e[n];if(i.type===2)if(Sg)i.content=i.content.replace(SQ,`
|
|
1043
|
-
`);else if(yN(i.content)){const o=e[n-1]&&e[n-1].type,s=e[n+1]&&e[n+1].type;!o||!s||t&&(o===3&&(s===3||s===1)||o===1&&(s===3||s===1&&RQ(i.content)))?(r=!0,e[n]=null):i.content=" "}else t&&(i.content=TN(i.content))}return r?e.filter(Boolean):e}function RQ(e){for(let t=0;t<e.length;t++){const r=e.charCodeAt(t);if(r===10||r===13)return!0}return!1}function TN(e){let t="",r=!1;for(let n=0;n<e.length;n++)_r(e.charCodeAt(n))?r||(t+=" ",r=!0):(t+=e[n],r=!1);return t}function Th(e){(lt[0]||dl).children.push(e)}function bt(e,t){return{start:yt.getPos(e),end:t==null?t:yt.getPos(t),source:t==null?t:Ft(e,t)}}function OQ(e){return bt(e.start.offset,e.end.offset)}function eo(e,t){e.end=yt.getPos(t),e.source=Ft(e.start.offset,t)}function AQ(e){const t={type:6,name:e.rawName,nameLoc:bt(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const r=e.exp.loc;r.end.offset<e.loc.end.offset&&(r.start.offset--,r.start.column--,r.end.offset++,r.end.column++),t.value={type:2,content:e.exp.content,loc:r}}return t}function Au(e,t=!1,r,n=0,i=0){return xe(e,t,r,n)}function An(e,t,r){ze.onError(st(e,bt(t,t)))}function PQ(){yt.reset(),zt=null,je=null,cr="",Cn=-1,Xi=-1,lt.length=0}function CQ(e,t){if(PQ(),Hn=e,ze=qe({},bN),t){let i;for(i in t)t[i]!=null&&(ze[i]=t[i])}yt.mode=ze.parseMode==="html"?1:ze.parseMode==="sfc"?2:0,yt.inXML=ze.ns===1||ze.ns===2;const r=t&&t.delimiters;r&&(yt.delimiterOpen=Sc(r[0]),yt.delimiterClose=Sc(r[1]));const n=dl=rQ([],e);return yt.parse(Hn),n.loc=bt(0,e.length),n.children=EN(n.children),dl=null,n}function xQ(e,t){Pu(e,void 0,t,!!wN(e))}function wN(e){const t=e.children.filter(r=>r.type!==3);return t.length===1&&t[0].type===1&&!Oc(t[0])?t[0]:null}function Pu(e,t,r,n=!1,i=!1){const{children:o}=e,s=[];for(let d=0;d<o.length;d++){const p=o[d];if(p.type===1&&p.tagType===0){const f=n?0:Rr(p,r);if(f>0){if(f>=2){p.codegenNode.patchFlag=-1,s.push(p);continue}}else{const h=p.codegenNode;if(h.type===13){const y=h.patchFlag;if((y===void 0||y===512||y===1)&&SN(p,r)>=2){const g=RN(p);g&&(h.props=r.hoist(g))}h.dynamicProps&&(h.dynamicProps=r.hoist(h.dynamicProps))}}}else if(p.type===12&&(n?0:Rr(p,r))>=2){p.codegenNode.type===14&&p.codegenNode.arguments.length>0&&p.codegenNode.arguments.push("-1"),s.push(p);continue}if(p.type===1){const f=p.tagType===1;f&&r.scopes.vSlot++,Pu(p,e,r,!1,i),f&&r.scopes.vSlot--}else if(p.type===11)Pu(p,e,r,p.children.length===1,!0);else if(p.type===9)for(let f=0;f<p.branches.length;f++)Pu(p.branches[f],e,r,p.branches[f].children.length===1,i)}let a=!1;if(s.length===o.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&ye(e.codegenNode.children))e.codegenNode.children=l(uo(e.codegenNode.children)),a=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!ye(e.codegenNode.children)&&e.codegenNode.children.type===15){const d=u(e.codegenNode,"default");d&&(d.returns=l(uo(d.returns)),a=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!ye(t.codegenNode.children)&&t.codegenNode.children.type===15){const d=kr(e,"slot",!0),p=d&&d.arg&&u(t.codegenNode,d.arg);p&&(p.returns=l(uo(p.returns)),a=!0)}}if(!a)for(const d of s)d.codegenNode=r.cache(d.codegenNode);function l(d){const p=r.cache(d);return p.needArraySpread=!0,p}function u(d,p){if(d.children&&!ye(d.children)&&d.children.type===15){const f=d.children.properties.find(h=>h.key===p||h.key.content===p);return f&&f.value}}s.length&&r.transformHoist&&r.transformHoist(o,r,e)}function Rr(e,t){const{constantCache:r}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const n=r.get(e);if(n!==void 0)return n;const i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(i.patchFlag===void 0){let s=3;const a=SN(e,t);if(a===0)return r.set(e,0),0;a<s&&(s=a);for(let l=0;l<e.children.length;l++){const u=Rr(e.children[l],t);if(u===0)return r.set(e,0),0;u<s&&(s=u)}if(s>1)for(let l=0;l<e.props.length;l++){const u=e.props[l];if(u.type===7&&u.name==="bind"&&u.exp){const d=Rr(u.exp,t);if(d===0)return r.set(e,0),0;d<s&&(s=d)}}if(i.isBlock){for(let l=0;l<e.props.length;l++)if(e.props[l].type===7)return r.set(e,0),0;t.removeHelper(To),t.removeHelper(Rs(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(Ss(t.inSSR,i.isComponent))}return r.set(e,s),s}else return r.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return Rr(e.content,t);case 4:return e.constType;case 8:let o=3;for(let s=0;s<e.children.length;s++){const a=e.children[s];if(Ae(a)||rr(a))continue;const l=Rr(a,t);if(l===0)return 0;l<o&&(o=l)}return o;case 20:return 2;default:return 0}}const NQ=new Set([mg,yg,al,jl]);function _N(e,t){if(e.type===14&&!Ae(e.callee)&&NQ.has(e.callee)){const r=e.arguments[0];if(r.type===4)return Rr(r,t);if(r.type===14)return _N(r,t)}return 0}function SN(e,t){let r=3;const n=RN(e);if(n&&n.type===15){const{properties:i}=n;for(let o=0;o<i.length;o++){const{key:s,value:a}=i[o],l=Rr(s,t);if(l===0)return l;l<r&&(r=l);let u;if(a.type===4?u=Rr(a,t):a.type===14?u=_N(a,t):u=0,u===0)return u;u<r&&(r=u)}}return r}function RN(e){const t=e.codegenNode;if(t.type===13)return t.props}function IQ(e,{filename:t="",prefixIdentifiers:r=!1,hoistStatic:n=!1,hmr:i=!1,cacheHandlers:o=!1,nodeTransforms:s=[],directiveTransforms:a={},transformHoist:l=null,isBuiltInComponent:u=Jt,isCustomElement:d=Jt,expressionPlugins:p=[],scopeId:f=null,slotted:h=!0,ssr:y=!1,inSSR:g=!1,ssrCssVars:v="",bindingMetadata:b=ke,inline:E=!1,isTS:w=!1,onError:A=Tg,onWarn:C=cN,compatConfig:R}){const S=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),_={filename:t,selfName:S&&Po(Ze(S[1])),prefixIdentifiers:r,hoistStatic:n,hmr:i,cacheHandlers:o,nodeTransforms:s,directiveTransforms:a,transformHoist:l,isBuiltInComponent:u,isCustomElement:d,expressionPlugins:p,scopeId:f,slotted:h,ssr:y,inSSR:g,ssrCssVars:v,bindingMetadata:b,inline:E,isTS:w,onError:A,onWarn:C,compatConfig:R,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(O){const M=_.helpers.get(O)||0;return _.helpers.set(O,M+1),O},removeHelper(O){const M=_.helpers.get(O);if(M){const I=M-1;I?_.helpers.set(O,I):_.helpers.delete(O)}},helperString(O){return`_${ws[_.helper(O)]}`},replaceNode(O){_.parent.children[_.childIndex]=_.currentNode=O},removeNode(O){const M=_.parent.children,I=O?M.indexOf(O):_.currentNode?_.childIndex:-1;!O||O===_.currentNode?(_.currentNode=null,_.onNodeRemoved()):_.childIndex>I&&(_.childIndex--,_.onNodeRemoved()),_.parent.children.splice(I,1)},onNodeRemoved:Jt,addIdentifiers(O){},removeIdentifiers(O){},hoist(O){Ae(O)&&(O=xe(O)),_.hoists.push(O);const M=xe(`_hoisted_${_.hoists.length}`,!1,O.loc,2);return M.hoisted=O,M},cache(O,M=!1,I=!1){const k=nQ(_.cached.length,O,M,I);return _.cached.push(k),k}};return _.filters=new Set,_}function MQ(e,t){const r=IQ(e,t);Md(e,r),t.hoistStatic&&xQ(e,r),t.ssr||qQ(e,r),e.helpers=new Set([...r.helpers.keys()]),e.components=[...r.components],e.directives=[...r.directives],e.imports=r.imports,e.hoists=r.hoists,e.temps=r.temps,e.cached=r.cached,e.transformed=!0,e.filters=[...r.filters]}function qQ(e,t){const{helper:r}=t,{children:n}=e;if(n.length===1){const i=wN(e);if(i&&i.codegenNode){const o=i.codegenNode;o.type===13&&Eg(o,t),e.codegenNode=o}else e.codegenNode=n[0]}else if(n.length>1){let i=64;e.codegenNode=ll(t,r(sl),void 0,e.children,i,void 0,void 0,!0,void 0,!1)}}function jQ(e,t){let r=0;const n=()=>{r--};for(;r<e.children.length;r++){const i=e.children[r];Ae(i)||(t.grandParent=t.parent,t.parent=e,t.childIndex=r,t.onNodeRemoved=n,Md(i,t))}}function Md(e,t){t.currentNode=e;const{nodeTransforms:r}=t,n=[];for(let o=0;o<r.length;o++){const s=r[o](e,t);if(s&&(ye(s)?n.push(...s):n.push(s)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(ql);break;case 5:t.ssr||t.helper(Nd);break;case 9:for(let o=0;o<e.branches.length;o++)Md(e.branches[o],t);break;case 10:case 11:case 1:case 0:jQ(e,t);break}t.currentNode=e;let i=n.length;for(;i--;)n[i]()}function ON(e,t){const r=Ae(e)?n=>n===e:n=>e.test(n);return(n,i)=>{if(n.type===1){const{props:o}=n;if(n.tagType===3&&o.some(hQ))return;const s=[];for(let a=0;a<o.length;a++){const l=o[a];if(l.type===7&&r(l.name)){o.splice(a,1),a--;const u=t(n,l,i);u&&s.push(u)}}return s}}}const qd="/*@__PURE__*/",AN=e=>`${ws[e]}: _${ws[e]}`;function kQ(e,{mode:t="function",prefixIdentifiers:r=t==="module",sourceMap:n=!1,filename:i="template.vue.html",scopeId:o=null,optimizeImports:s=!1,runtimeGlobalName:a="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:u="vue/server-renderer",ssr:d=!1,isTS:p=!1,inSSR:f=!1}){const h={mode:t,prefixIdentifiers:r,sourceMap:n,filename:i,scopeId:o,optimizeImports:s,runtimeGlobalName:a,runtimeModuleName:l,ssrRuntimeModuleName:u,ssr:d,isTS:p,inSSR:f,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(g){return`_${ws[g]}`},push(g,v=-2,b){h.code+=g},indent(){y(++h.indentLevel)},deindent(g=!1){g?--h.indentLevel:y(--h.indentLevel)},newline(){y(h.indentLevel)}};function y(g){h.push(`
|
|
1044
|
-
`+" ".repeat(g),0)}return h}function DQ(e,t={}){const r=kQ(e,t);t.onContextCreated&&t.onContextCreated(r);const{mode:n,push:i,prefixIdentifiers:o,indent:s,deindent:a,newline:l,scopeId:u,ssr:d}=r,p=Array.from(e.helpers),f=p.length>0,h=!o&&n!=="module";LQ(e,r);const g=d?"ssrRender":"render",b=(d?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(i(`function ${g}(${b}) {`),s(),h&&(i("with (_ctx) {"),s(),f&&(i(`const { ${p.map(AN).join(", ")} } = _Vue
|
|
1045
|
-
`,-1),l())),e.components.length&&(Fp(e.components,"component",r),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(Fp(e.directives,"directive",r),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),Fp(e.filters,"filter",r),l()),e.temps>0){i("let ");for(let E=0;E<e.temps;E++)i(`${E>0?", ":""}_temp${E}`)}return(e.components.length||e.directives.length||e.temps)&&(i(`
|
|
1046
|
-
`,0),l()),d||i("return "),e.codegenNode?Zt(e.codegenNode,r):i("null"),h&&(a(),i("}")),a(),i("}"),{ast:e,code:r.code,preamble:"",map:r.map?r.map.toJSON():void 0}}function LQ(e,t){const{ssr:r,prefixIdentifiers:n,push:i,newline:o,runtimeModuleName:s,runtimeGlobalName:a,ssrRuntimeModuleName:l}=t,u=a,d=Array.from(e.helpers);if(d.length>0&&(i(`const _Vue = ${u}
|
|
1047
|
-
`,-1),e.hoists.length)){const p=[sg,ag,ql,lg,sN].filter(f=>d.includes(f)).map(AN).join(", ");i(`const { ${p} } = _Vue
|
|
1048
|
-
`,-1)}FQ(e.hoists,t),o(),i("return ")}function Fp(e,t,{helper:r,push:n,newline:i,isTS:o}){const s=r(t==="filter"?pg:t==="component"?ug:dg);for(let a=0;a<e.length;a++){let l=e[a];const u=l.endsWith("__self");u&&(l=l.slice(0,-6)),n(`const ${cl(l,t)} = ${s}(${JSON.stringify(l)}${u?", true":""})${o?"!":""}`),a<e.length-1&&i()}}function FQ(e,t){if(!e.length)return;t.pure=!0;const{push:r,newline:n}=t;n();for(let i=0;i<e.length;i++){const o=e[i];o&&(r(`const _hoisted_${i+1} = `),Zt(o,t),n())}t.pure=!1}function Rg(e,t){const r=e.length>3||!1;t.push("["),r&&t.indent(),kl(e,t,r),r&&t.deindent(),t.push("]")}function kl(e,t,r=!1,n=!0){const{push:i,newline:o}=t;for(let s=0;s<e.length;s++){const a=e[s];Ae(a)?i(a,-3):ye(a)?Rg(a,t):Zt(a,t),s<e.length-1&&(r?(n&&i(","),o()):n&&i(", "))}}function Zt(e,t){if(Ae(e)){t.push(e,-3);return}if(rr(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:Zt(e.codegenNode,t);break;case 2:BQ(e,t);break;case 4:PN(e,t);break;case 5:$Q(e,t);break;case 12:Zt(e.codegenNode,t);break;case 8:CN(e,t);break;case 3:VQ(e,t);break;case 13:JQ(e,t);break;case 14:GQ(e,t);break;case 15:WQ(e,t);break;case 17:KQ(e,t);break;case 18:zQ(e,t);break;case 19:YQ(e,t);break;case 20:XQ(e,t);break;case 21:kl(e.body,t,!0,!1);break}}function BQ(e,t){t.push(JSON.stringify(e.content),-3,e)}function PN(e,t){const{content:r,isStatic:n}=e;t.push(n?JSON.stringify(r):r,-3,e)}function $Q(e,t){const{push:r,helper:n,pure:i}=t;i&&r(qd),r(`${n(Nd)}(`),Zt(e.content,t),r(")")}function CN(e,t){for(let r=0;r<e.children.length;r++){const n=e.children[r];Ae(n)?t.push(n,-3):Zt(n,t)}}function UQ(e,t){const{push:r}=t;if(e.type===8)r("["),CN(e,t),r("]");else if(e.isStatic){const n=wg(e.content)?e.content:JSON.stringify(e.content);r(n,-2,e)}else r(`[${e.content}]`,-3,e)}function VQ(e,t){const{push:r,helper:n,pure:i}=t;i&&r(qd),r(`${n(ql)}(${JSON.stringify(e.content)})`,-3,e)}function JQ(e,t){const{push:r,helper:n,pure:i}=t,{tag:o,props:s,children:a,patchFlag:l,dynamicProps:u,directives:d,isBlock:p,disableTracking:f,isComponent:h}=e;let y;l&&(y=String(l)),d&&r(n(fg)+"("),p&&r(`(${n(To)}(${f?"true":""}), `),i&&r(qd);const g=p?Rs(t.inSSR,h):Ss(t.inSSR,h);r(n(g)+"(",-2,e),kl(HQ([o,s,a,y,u]),t),r(")"),p&&r(")"),d&&(r(", "),Zt(d,t),r(")"))}function HQ(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(r=>r||"null")}function GQ(e,t){const{push:r,helper:n,pure:i}=t,o=Ae(e.callee)?e.callee:n(e.callee);i&&r(qd),r(o+"(",-2,e),kl(e.arguments,t),r(")")}function WQ(e,t){const{push:r,indent:n,deindent:i,newline:o}=t,{properties:s}=e;if(!s.length){r("{}",-2,e);return}const a=s.length>1||!1;r(a?"{":"{ "),a&&n();for(let l=0;l<s.length;l++){const{key:u,value:d}=s[l];UQ(u,t),r(": "),Zt(d,t),l<s.length-1&&(r(","),o())}a&&i(),r(a?"}":" }")}function KQ(e,t){Rg(e.elements,t)}function zQ(e,t){const{push:r,indent:n,deindent:i}=t,{params:o,returns:s,body:a,newline:l,isSlot:u}=e;u&&r(`_${ws[bg]}(`),r("(",-2,e),ye(o)?kl(o,t):o&&Zt(o,t),r(") => "),(l||a)&&(r("{"),n()),s?(l&&r("return "),ye(s)?Rg(s,t):Zt(s,t)):a&&Zt(a,t),(l||a)&&(i(),r("}")),u&&(e.isNonScopedSlot&&r(", undefined, true"),r(")"))}function YQ(e,t){const{test:r,consequent:n,alternate:i,newline:o}=e,{push:s,indent:a,deindent:l,newline:u}=t;if(r.type===4){const p=!wg(r.content);p&&s("("),PN(r,t),p&&s(")")}else s("("),Zt(r,t),s(")");o&&a(),t.indentLevel++,o||s(" "),s("? "),Zt(n,t),t.indentLevel--,o&&u(),o||s(" "),s(": ");const d=i.type===19;d||t.indentLevel++,Zt(i,t),d||t.indentLevel--,o&&l(!0)}function XQ(e,t){const{push:r,helper:n,indent:i,deindent:o,newline:s}=t,{needPauseTracking:a,needArraySpread:l}=e;l&&r("[...("),r(`_cache[${e.index}] || (`),a&&(i(),r(`${n(_c)}(-1`),e.inVOnce&&r(", true"),r("),"),s(),r("(")),r(`_cache[${e.index}] = `),Zt(e.value,t),a&&(r(`).cacheIndex = ${e.index},`),s(),r(`${n(_c)}(1),`),s(),r(`_cache[${e.index}]`),o()),r(")"),l&&r(")]")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const QQ=ON(/^(?:if|else|else-if)$/,(e,t,r)=>ZQ(e,t,r,(n,i,o)=>{const s=r.parent.children;let a=s.indexOf(n),l=0;for(;a-->=0;){const u=s[a];u&&u.type===9&&(l+=u.branches.length)}return()=>{if(o)n.codegenNode=BT(i,l,r);else{const u=eZ(n.codegenNode);u.alternate=BT(i,l+n.branches.length-1,r)}}}));function ZQ(e,t,r,n){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const i=t.exp?t.exp.loc:e.loc;r.onError(st(28,t.loc)),t.exp=xe("true",!1,i)}if(t.name==="if"){const i=FT(e,t),o={type:9,loc:OQ(e.loc),branches:[i]};if(r.replaceNode(o),n)return n(o,i,!0)}else{const i=r.parent.children;let o=i.indexOf(e);for(;o-->=-1;){const s=i[o];if(s&&gN(s)){r.removeNode(s);continue}if(s&&s.type===9){(t.name==="else-if"||t.name==="else")&&s.branches[s.branches.length-1].condition===void 0&&r.onError(st(30,e.loc)),r.removeNode();const a=FT(e,t);s.branches.push(a);const l=n&&n(s,a,!1);Md(a,r),l&&l(),r.currentNode=null}else r.onError(st(30,e.loc));break}}}function FT(e,t){const r=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:r&&!kr(e,"for")?e.children:[e],userKey:Id(e,"key"),isTemplateIf:r}}function BT(e,t,r){return e.condition?vh(e.condition,$T(e,t,r),It(r.helper(ql),['""',"true"])):$T(e,t,r)}function $T(e,t,r){const{helper:n}=r,i=wt("key",xe(`${t}`,!1,Cr,2)),{children:o}=e,s=o[0];if(o.length!==1||s.type!==1)if(o.length===1&&s.type===11){const l=s.codegenNode;return Ac(l,i,r),l}else return ll(r,n(sl),Dr([i]),o,64,void 0,void 0,!0,!1,!1,e.loc);else{const l=s.codegenNode,u=yQ(l);return u.type===13&&Eg(u,r),Ac(u,i,r),l}}function eZ(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const tZ=ON("for",(e,t,r)=>{const{helper:n,removeHelper:i}=r;return rZ(e,t,r,o=>{const s=It(n(hg),[o.source]),a=Rc(e),l=kr(e,"memo"),u=Id(e,"key",!1,!0);u&&u.type;let d=u&&(u.type===6?u.value?xe(u.value.content,!0):void 0:u.exp);const p=u&&d?wt("key",d):null,f=o.source.type===4&&o.source.constType>0,h=f?64:u?128:256;return o.codegenNode=ll(r,n(sl),void 0,s,h,void 0,void 0,!0,!f,!1,e.loc),()=>{let y;const{children:g}=o,v=g.length!==1||g[0].type!==1,b=Oc(e)?e:a&&e.children.length===1&&Oc(e.children[0])?e.children[0]:null;if(b?(y=b.codegenNode,a&&p&&Ac(y,p,r)):v?y=ll(r,n(sl),p?Dr([p]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(y=g[0].codegenNode,a&&p&&Ac(y,p,r),y.isBlock!==!f&&(y.isBlock?(i(To),i(Rs(r.inSSR,y.isComponent))):i(Ss(r.inSSR,y.isComponent))),y.isBlock=!f,y.isBlock?(n(To),n(Rs(r.inSSR,y.isComponent))):n(Ss(r.inSSR,y.isComponent))),l){const E=_s(wh(o.parseResult,[xe("_cached")]));E.body=iQ([Qr(["const _memo = (",l.exp,")"]),Qr(["if (_cached && _cached.el",...d?[" && _cached.key === ",d]:[],` && ${r.helperString(uN)}(_cached, _memo)) return _cached`]),Qr(["const _item = ",y]),xe("_item.memo = _memo"),xe("return _item")]),s.arguments.push(E,xe("_cache"),xe(String(r.cached.length))),r.cached.push(null)}else s.arguments.push(_s(wh(o.parseResult),y,!0))}})});function rZ(e,t,r,n){if(!t.exp){r.onError(st(31,t.loc));return}const i=t.forParseResult;if(!i){r.onError(st(32,t.loc));return}xN(i);const{addIdentifiers:o,removeIdentifiers:s,scopes:a}=r,{source:l,value:u,key:d,index:p}=i,f={type:11,loc:t.loc,source:l,valueAlias:u,keyAlias:d,objectIndexAlias:p,parseResult:i,children:Rc(e)?e.children:[e]};r.replaceNode(f),a.vFor++;const h=n&&n(f);return()=>{a.vFor--,h&&h()}}function xN(e,t){e.finalized||(e.finalized=!0)}function wh({value:e,key:t,index:r},n=[]){return nZ([e,t,r,...n])}function nZ(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((r,n)=>r||xe("_".repeat(n+1),!1))}const UT=xe("undefined",!1),iZ=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const r=kr(e,"slot");if(r)return r.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},oZ=(e,t,r,n)=>_s(e,r,!1,!0,r.length?r[0].loc:n);function sZ(e,t,r=oZ){t.helper(bg);const{children:n,loc:i}=e,o=[],s=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const l=kr(e,"slot",!0);if(l){const{arg:v,exp:b}=l;v&&!mr(v)&&(a=!0),o.push(wt(v||xe("default",!0),r(b,void 0,n,i)))}let u=!1,d=!1;const p=[],f=new Set;let h=0;for(let v=0;v<n.length;v++){const b=n[v];let E;if(!Rc(b)||!(E=kr(b,"slot",!0))){b.type!==3&&p.push(b);continue}if(l){t.onError(st(37,E.loc));break}u=!0;const{children:w,loc:A}=b,{arg:C=xe("default",!0),exp:R,loc:S}=E;let _;mr(C)?_=C?C.content:"default":a=!0;const O=kr(b,"for"),M=r(R,O,w,A);let I,k;if(I=kr(b,"if"))a=!0,s.push(vh(I.exp,du(C,M,h++),UT));else if(k=kr(b,/^else(?:-if)?$/,!0)){let N=v,P;for(;N--&&(P=n[N],!!gN(P)););if(P&&Rc(P)&&kr(P,/^(?:else-)?if$/)){let q=s[s.length-1];for(;q.alternate.type===19;)q=q.alternate;q.alternate=k.exp?vh(k.exp,du(C,M,h++),UT):du(C,M,h++)}else t.onError(st(30,k.loc))}else if(O){a=!0;const N=O.forParseResult;N?(xN(N),s.push(It(t.helper(hg),[N.source,_s(wh(N),du(C,M),!0)]))):t.onError(st(32,O.loc))}else{if(_){if(f.has(_)){t.onError(st(38,S));continue}f.add(_),_==="default"&&(d=!0)}o.push(wt(C,M))}}if(!l){const v=(b,E)=>{const w=r(b,void 0,E,i);return t.compatConfig&&(w.isNonScopedSlot=!0),wt("default",w)};u?p.length&&!p.every(_g)&&(d?t.onError(st(39,p[0].loc)):o.push(v(void 0,p))):o.push(v(void 0,n))}const y=a?2:Cu(e.children)?3:1;let g=Dr(o.concat(wt("_",xe(y+"",!1))),i);return s.length&&(g=It(t.helper(lN),[g,uo(s)])),{slots:g,hasDynamicSlots:a}}function du(e,t,r){const n=[wt("name",e),wt("fn",t)];return r!=null&&n.push(wt("key",xe(String(r),!0))),Dr(n)}function Cu(e){for(let t=0;t<e.length;t++){const r=e[t];switch(r.type){case 1:if(r.tagType===2||Cu(r.children))return!0;break;case 9:if(Cu(r.branches))return!0;break;case 10:case 11:if(Cu(r.children))return!0;break}}return!1}const NN=new WeakMap,aZ=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:n,props:i}=e,o=e.tagType===1;let s=o?lZ(e,t):`"${n}"`;const a=Ge(s)&&s.callee===cg;let l,u,d=0,p,f,h,y=a||s===Aa||s===og||!o&&(n==="svg"||n==="foreignObject"||n==="math");if(i.length>0){const g=IN(e,t,void 0,o,a);l=g.props,d=g.patchFlag,f=g.dynamicPropNames;const v=g.directives;h=v&&v.length?uo(v.map(b=>cZ(b,t))):void 0,g.shouldUseBlock&&(y=!0)}if(e.children.length>0)if(s===Tc&&(y=!0,d|=1024),o&&s!==Aa&&s!==Tc){const{slots:v,hasDynamicSlots:b}=sZ(e,t);u=v,b&&(d|=1024)}else if(e.children.length===1&&s!==Aa){const v=e.children[0],b=v.type,E=b===5||b===8;E&&Rr(v,t)===0&&(d|=1),E||b===2?u=v:u=e.children}else u=e.children;f&&f.length&&(p=dZ(f)),e.codegenNode=ll(t,s,l,u,d===0?void 0:d,p,h,!!y,!1,o,e.loc)};function lZ(e,t,r=!1){let{tag:n}=e;const i=_h(n),o=Id(e,"is",!1,!0);if(o)if(i||co("COMPILER_IS_ON_ELEMENT",t)){let a;if(o.type===6?a=o.value&&xe(o.value.content,!0):(a=o.exp,a||(a=xe("is",!1,o.arg.loc))),a)return It(t.helper(cg),[a])}else o.type===6&&o.value.content.startsWith("vue:")&&(n=o.value.content.slice(4));const s=dN(n)||t.isBuiltInComponent(n);return s?(r||t.helper(s),s):(t.helper(ug),t.components.add(n),cl(n,"component"))}function IN(e,t,r=e.props,n,i,o=!1){const{tag:s,loc:a,children:l}=e;let u=[];const d=[],p=[],f=l.length>0;let h=!1,y=0,g=!1,v=!1,b=!1,E=!1,w=!1,A=!1;const C=[],R=M=>{u.length&&(d.push(Dr(VT(u),a)),u=[]),M&&d.push(M)},S=()=>{t.scopes.vFor>0&&u.push(wt(xe("ref_for",!0),xe("true")))},_=({key:M,value:I})=>{if(mr(M)){const k=M.content,N=Oo(k);if(N&&(!n||i)&&k.toLowerCase()!=="onclick"&&k!=="onUpdate:modelValue"&&!Vn(k)&&(E=!0),N&&Vn(k)&&(A=!0),N&&I.type===14&&(I=I.arguments[0]),I.type===20||(I.type===4||I.type===8)&&Rr(I,t)>0)return;k==="ref"?g=!0:k==="class"?v=!0:k==="style"?b=!0:k!=="key"&&!C.includes(k)&&C.push(k),n&&(k==="class"||k==="style")&&!C.includes(k)&&C.push(k)}else w=!0};for(let M=0;M<r.length;M++){const I=r[M];if(I.type===6){const{loc:k,name:N,nameLoc:P,value:q}=I;let F=!0;if(N==="ref"&&(g=!0,S()),N==="is"&&(_h(s)||q&&q.content.startsWith("vue:")||co("COMPILER_IS_ON_ELEMENT",t)))continue;u.push(wt(xe(N,!0,P),xe(q?q.content:"",F,q?q.loc:k)))}else{const{name:k,arg:N,exp:P,loc:q,modifiers:F}=I,$=k==="bind",G=k==="on";if(k==="slot"){n||t.onError(st(40,q));continue}if(k==="once"||k==="memo"||k==="is"||$&&Zi(N,"is")&&(_h(s)||co("COMPILER_IS_ON_ELEMENT",t))||G&&o)continue;if(($&&Zi(N,"key")||G&&f&&Zi(N,"vue:before-update"))&&(h=!0),$&&Zi(N,"ref")&&S(),!N&&($||G)){if(w=!0,P)if($){if(R(),co("COMPILER_V_BIND_OBJECT_ORDER",t)){d.unshift(P);continue}S(),R(),d.push(P)}else R({type:14,loc:q,callee:t.helper(gg),arguments:n?[P]:[P,"true"]});else t.onError(st($?34:35,q));continue}$&&F.some(pe=>pe.content==="prop")&&(y|=32);const ie=t.directiveTransforms[k];if(ie){const{props:pe,needRuntime:he}=ie(I,e,t);!o&&pe.forEach(_),G&&N&&!mr(N)?R(Dr(pe,a)):u.push(...pe),he&&(p.push(I),rr(he)&&NN.set(I,he))}else Z9(k)||(p.push(I),f&&(h=!0))}}let O;if(d.length?(R(),d.length>1?O=It(t.helper(wc),d,a):O=d[0]):u.length&&(O=Dr(VT(u),a)),w?y|=16:(v&&!n&&(y|=2),b&&!n&&(y|=4),C.length&&(y|=8),E&&(y|=32)),!h&&(y===0||y===32)&&(g||A||p.length>0)&&(y|=512),!t.inSSR&&O)switch(O.type){case 15:let M=-1,I=-1,k=!1;for(let q=0;q<O.properties.length;q++){const F=O.properties[q].key;mr(F)?F.content==="class"?M=q:F.content==="style"&&(I=q):F.isHandlerKey||(k=!0)}const N=O.properties[M],P=O.properties[I];k?O=It(t.helper(al),[O]):(N&&!mr(N.value)&&(N.value=It(t.helper(mg),[N.value])),P&&(b||P.value.type===4&&P.value.content.trim()[0]==="["||P.value.type===17)&&(P.value=It(t.helper(yg),[P.value])));break;case 14:break;default:O=It(t.helper(al),[It(t.helper(jl),[O])]);break}return{props:O,directives:p,patchFlag:y,dynamicPropNames:C,shouldUseBlock:h}}function VT(e){const t=new Map,r=[];for(let n=0;n<e.length;n++){const i=e[n];if(i.key.type===8||!i.key.isStatic){r.push(i);continue}const o=i.key.content,s=t.get(o);s?(o==="style"||o==="class"||Oo(o))&&uZ(s,i):(t.set(o,i),r.push(i))}return r}function uZ(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=uo([e.value,t.value],e.loc)}function cZ(e,t){const r=[],n=NN.get(e);n?r.push(t.helperString(n)):(t.helper(dg),t.directives.add(e.name),r.push(cl(e.name,"directive")));const{loc:i}=e;if(e.exp&&r.push(e.exp),e.arg&&(e.exp||r.push("void 0"),r.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||r.push("void 0"),r.push("void 0"));const o=xe("true",!1,i);r.push(Dr(e.modifiers.map(s=>wt(s,o)),i))}return uo(r,e.loc)}function dZ(e){let t="[";for(let r=0,n=e.length;r<n;r++)t+=JSON.stringify(e[r]),r<n-1&&(t+=", ");return t+"]"}function _h(e){return e==="component"||e==="Component"}const pZ=(e,t)=>{if(Oc(e)){const{children:r,loc:n}=e,{slotName:i,slotProps:o}=fZ(e,t),s=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let a=2;o&&(s[2]=o,a=3),r.length&&(s[3]=_s([],r,!1,!1,n),a=4),t.scopeId&&!t.slotted&&(a=5),s.splice(a),e.codegenNode=It(t.helper(aN),s,n)}};function fZ(e,t){let r='"default"',n;const i=[];for(let o=0;o<e.props.length;o++){const s=e.props[o];if(s.type===6)s.value&&(s.name==="name"?r=JSON.stringify(s.value.content):(s.name=Ze(s.name),i.push(s)));else if(s.name==="bind"&&Zi(s.arg,"name")){if(s.exp)r=s.exp;else if(s.arg&&s.arg.type===4){const a=Ze(s.arg.content);r=s.exp=xe(a,!1,s.arg.loc)}}else s.name==="bind"&&s.arg&&mr(s.arg)&&(s.arg.content=Ze(s.arg.content)),i.push(s)}if(i.length>0){const{props:o,directives:s}=IN(e,t,i,!1,!1);n=o,s.length&&t.onError(st(36,s[0].loc))}return{slotName:r,slotProps:n}}const MN=(e,t,r,n)=>{const{loc:i,modifiers:o,arg:s}=e;!e.exp&&!o.length&&r.onError(st(35,i));let a;if(s.type===4)if(s.isStatic){let p=s.content;p.startsWith("vue:")&&(p=`vnode-${p.slice(4)}`);const f=t.tagType!==0||p.startsWith("vnode")||!/[A-Z]/.test(p)?Xo(Ze(p)):`on:${p}`;a=xe(f,!0,s.loc)}else a=Qr([`${r.helperString(bh)}(`,s,")"]);else a=s,a.children.unshift(`${r.helperString(bh)}(`),a.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let u=r.cacheHandlers&&!l&&!r.inVOnce;if(l){const p=hN(l),f=!(p||pQ(l)),h=l.content.includes(";");(f||u&&p)&&(l=Qr([`${f?"$event":"(...args)"} => ${h?"{":"("}`,l,h?"}":")"]))}let d={props:[wt(a,l||xe("() => {}",!1,i))]};return n&&(d=n(d)),u&&(d.props[0].value=r.cache(d.props[0].value)),d.props.forEach(p=>p.key.isHandlerKey=!0),d},hZ=(e,t,r)=>{const{modifiers:n,loc:i}=e,o=e.arg;let{exp:s}=e;return s&&s.type===4&&!s.content.trim()&&(s=void 0),o.type!==4?(o.children.unshift("("),o.children.push(') || ""')):o.isStatic||(o.content=o.content?`${o.content} || ""`:'""'),n.some(a=>a.content==="camel")&&(o.type===4?o.isStatic?o.content=Ze(o.content):o.content=`${r.helperString(gh)}(${o.content})`:(o.children.unshift(`${r.helperString(gh)}(`),o.children.push(")"))),r.inSSR||(n.some(a=>a.content==="prop")&&JT(o,"."),n.some(a=>a.content==="attr")&&JT(o,"^")),{props:[wt(o,s)]}},JT=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},mZ=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const r=e.children;let n,i=!1;for(let o=0;o<r.length;o++){const s=r[o];if(Lp(s)){i=!0;for(let a=o+1;a<r.length;a++){const l=r[a];if(Lp(l))n||(n=r[o]=Qr([s],s.loc)),n.children.push(" + ",l),r.splice(a,1),a--;else{n=void 0;break}}}}if(!(!i||r.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(o=>o.type===7&&!t.directiveTransforms[o.name])&&e.tag!=="template")))for(let o=0;o<r.length;o++){const s=r[o];if(Lp(s)||s.type===8){const a=[];(s.type!==2||s.content!==" ")&&a.push(s),!t.ssr&&Rr(s,t)===0&&a.push("1"),r[o]={type:12,content:s,loc:s.loc,codegenNode:It(t.helper(lg),a)}}}}},HT=new WeakSet,yZ=(e,t)=>{if(e.type===1&&kr(e,"once",!0))return HT.has(e)||t.inVOnce||t.inSSR?void 0:(HT.add(e),t.inVOnce=!0,t.helper(_c),()=>{t.inVOnce=!1;const r=t.currentNode;r.codegenNode&&(r.codegenNode=t.cache(r.codegenNode,!0,!0))})},qN=(e,t,r)=>{const{exp:n,arg:i}=e;if(!n)return r.onError(st(41,e.loc)),Zs();const o=n.loc.source.trim(),s=n.type===4?n.content:o,a=r.bindingMetadata[o];if(a==="props"||a==="props-aliased")return r.onError(st(44,n.loc)),Zs();if(a==="literal-const"||a==="setup-const")return r.onError(st(45,n.loc)),Zs();if(!s.trim()||!hN(n))return r.onError(st(42,n.loc)),Zs();const l=i||xe("modelValue",!0),u=i?mr(i)?`onUpdate:${Ze(i.content)}`:Qr(['"onUpdate:" + ',i]):"onUpdate:modelValue";let d;const p=r.isTS?"($event: any)":"$event";d=Qr([`${p} => ((`,n,") = $event)"]);const f=[wt(l,e.exp),wt(u,d)];if(e.modifiers.length&&t.tagType===1){const h=e.modifiers.map(g=>g.content).map(g=>(wg(g)?g:JSON.stringify(g))+": true").join(", "),y=i?mr(i)?`${i.content}Modifiers`:Qr([i,' + "Modifiers"']):"modelModifiers";f.push(wt(y,xe(`{ ${h} }`,!1,e.loc,2)))}return Zs(f)};function Zs(e=[]){return{props:e}}const gZ=/[\w).+\-_$\]]/,bZ=(e,t)=>{co("COMPILER_FILTERS",t)&&(e.type===5?Pc(e.content,t):e.type===1&&e.props.forEach(r=>{r.type===7&&r.name!=="for"&&r.exp&&Pc(r.exp,t)}))};function Pc(e,t){if(e.type===4)GT(e,t);else for(let r=0;r<e.children.length;r++){const n=e.children[r];typeof n=="object"&&(n.type===4?GT(n,t):n.type===8?Pc(e,t):n.type===5&&Pc(n.content,t))}}function GT(e,t){const r=e.content;let n=!1,i=!1,o=!1,s=!1,a=0,l=0,u=0,d=0,p,f,h,y,g=[];for(h=0;h<r.length;h++)if(f=p,p=r.charCodeAt(h),n)p===39&&f!==92&&(n=!1);else if(i)p===34&&f!==92&&(i=!1);else if(o)p===96&&f!==92&&(o=!1);else if(s)p===47&&f!==92&&(s=!1);else if(p===124&&r.charCodeAt(h+1)!==124&&r.charCodeAt(h-1)!==124&&!a&&!l&&!u)y===void 0?(d=h+1,y=r.slice(0,h).trim()):v();else{switch(p){case 34:i=!0;break;case 39:n=!0;break;case 96:o=!0;break;case 40:u++;break;case 41:u--;break;case 91:l++;break;case 93:l--;break;case 123:a++;break;case 125:a--;break}if(p===47){let b=h-1,E;for(;b>=0&&(E=r.charAt(b),E===" ");b--);(!E||!gZ.test(E))&&(s=!0)}}y===void 0?y=r.slice(0,h).trim():d!==0&&v();function v(){g.push(r.slice(d,h).trim()),d=h+1}if(g.length){for(h=0;h<g.length;h++)y=vZ(y,g[h],t);e.content=y,e.ast=void 0}}function vZ(e,t,r){r.helper(pg);const n=t.indexOf("(");if(n<0)return r.filters.add(t),`${cl(t,"filter")}(${e})`;{const i=t.slice(0,n),o=t.slice(n+1);return r.filters.add(i),`${cl(i,"filter")}(${e}${o!==")"?","+o:o}`}}const WT=new WeakSet,EZ=(e,t)=>{if(e.type===1){const r=kr(e,"memo");return!r||WT.has(e)||t.inSSR?void 0:(WT.add(e),()=>{const n=e.codegenNode||t.currentNode.codegenNode;n&&n.type===13&&(e.tagType!==1&&Eg(n,t),e.codegenNode=It(t.helper(vg),[r.exp,_s(void 0,n),"_cache",String(t.cached.length)]),t.cached.push(null))})}},TZ=(e,t)=>{if(e.type===1){for(const r of e.props)if(r.type===7&&r.name==="bind"&&(!r.exp||r.exp.type===4&&!r.exp.content.trim())&&r.arg){const n=r.arg;if(n.type!==4||!n.isStatic)t.onError(st(53,n.loc)),r.exp=xe("",!0,n.loc);else{const i=Ze(n.content);(pN.test(i[0])||i[0]==="-")&&(r.exp=xe(i,!1,n.loc))}}}};function wZ(e){return[[TZ,yZ,QQ,EZ,tZ,bZ,pZ,aZ,iZ,mZ],{on:MN,bind:hZ,model:qN}]}function _Z(e,t={}){const r=t.onError||Tg,n=t.mode==="module";t.prefixIdentifiers===!0?r(st(48)):n&&r(st(49));const i=!1;t.cacheHandlers&&r(st(50)),t.scopeId&&!n&&r(st(51));const o=qe({},t,{prefixIdentifiers:i}),s=Ae(e)?CQ(e,o):e,[a,l]=wZ();return MQ(s,qe({},o,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:qe({},l,t.directiveTransforms||{})})),DQ(s,o)}const SZ=()=>({props:[]});/**
|
|
1049
|
-
* @vue/compiler-dom v3.5.32
|
|
1050
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1051
|
-
* @license MIT
|
|
1052
|
-
**/const jN=Symbol(""),kN=Symbol(""),DN=Symbol(""),LN=Symbol(""),Sh=Symbol(""),FN=Symbol(""),BN=Symbol(""),$N=Symbol(""),UN=Symbol(""),VN=Symbol("");tQ({[jN]:"vModelRadio",[kN]:"vModelCheckbox",[DN]:"vModelText",[LN]:"vModelSelect",[Sh]:"vModelDynamic",[FN]:"withModifiers",[BN]:"withKeys",[$N]:"vShow",[UN]:"Transition",[VN]:"TransitionGroup"});let jo;function RZ(e,t=!1){return jo||(jo=document.createElement("div")),t?(jo.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,jo.children[0].getAttribute("foo")):(jo.innerHTML=e,jo.textContent)}const OZ={parseMode:"html",isVoidTag:yY,isNativeTag:e=>fY(e)||hY(e)||mY(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:RZ,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return UN;if(e==="TransitionGroup"||e==="transition-group")return VN},getNamespace(e,t,r){let n=t?t.ns:r;if(t&&n===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(i=>i.type===6&&i.name==="encoding"&&i.value!=null&&(i.value.content==="text/html"||i.value.content==="application/xhtml+xml"))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(n=0);else t&&n===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(n=0);if(n===0){if(e==="svg")return 1;if(e==="math")return 2}return n}},AZ=e=>{e.type===1&&e.props.forEach((t,r)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[r]={type:7,name:"bind",arg:xe("style",!0,t.loc),exp:PZ(t.value.content,t.loc),modifiers:[],loc:t.loc})})},PZ=(e,t)=>{const r=YP(e);return xe(JSON.stringify(r),!1,t,3)};function xi(e,t){return st(e,t)}const CZ=(e,t,r)=>{const{exp:n,loc:i}=e;return n||r.onError(xi(54,i)),t.children.length&&(r.onError(xi(55,i)),t.children.length=0),{props:[wt(xe("innerHTML",!0,i),n||xe("",!0))]}},xZ=(e,t,r)=>{const{exp:n,loc:i}=e;return n||r.onError(xi(56,i)),t.children.length&&(r.onError(xi(57,i)),t.children.length=0),{props:[wt(xe("textContent",!0),n?Rr(n,r)>0?n:It(r.helperString(Nd),[n],i):xe("",!0))]}},NZ=(e,t,r)=>{const n=qN(e,t,r);if(!n.props.length||t.tagType===1)return n;e.arg&&r.onError(xi(59,e.arg.loc));const{tag:i}=t,o=r.isCustomElement(i);if(i==="input"||i==="textarea"||i==="select"||o){let s=DN,a=!1;if(i==="input"||o){const l=Id(t,"type");if(l){if(l.type===7)s=Sh;else if(l.value)switch(l.value.content){case"radio":s=jN;break;case"checkbox":s=kN;break;case"file":a=!0,r.onError(xi(60,e.loc));break}}else fQ(t)&&(s=Sh)}else i==="select"&&(s=LN);a||(n.needRuntime=r.helper(s))}else r.onError(xi(58,e.loc));return n.props=n.props.filter(s=>!(s.key.type===4&&s.key.content==="modelValue")),n},IZ=Pr("passive,once,capture"),MZ=Pr("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),qZ=Pr("left,right"),JN=Pr("onkeyup,onkeydown,onkeypress"),jZ=(e,t,r,n)=>{const i=[],o=[],s=[];for(let a=0;a<t.length;a++){const l=t[a].content;l==="native"&&ul("COMPILER_V_ON_NATIVE",r)||IZ(l)?s.push(l):qZ(l)?mr(e)?JN(e.content.toLowerCase())?i.push(l):o.push(l):(i.push(l),o.push(l)):MZ(l)?o.push(l):i.push(l)}return{keyModifiers:i,nonKeyModifiers:o,eventOptionModifiers:s}},KT=(e,t)=>mr(e)&&e.content.toLowerCase()==="onclick"?xe(t,!0):e.type!==4?Qr(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,kZ=(e,t,r)=>MN(e,t,r,n=>{const{modifiers:i}=e;if(!i.length)return n;let{key:o,value:s}=n.props[0];const{keyModifiers:a,nonKeyModifiers:l,eventOptionModifiers:u}=jZ(o,i,r,e.loc);if(l.includes("right")&&(o=KT(o,"onContextmenu")),l.includes("middle")&&(o=KT(o,"onMouseup")),l.length&&(s=It(r.helper(FN),[s,JSON.stringify(l)])),a.length&&(!mr(o)||JN(o.content.toLowerCase()))&&(s=It(r.helper(BN),[s,JSON.stringify(a)])),u.length){const d=u.map(Po).join("");o=mr(o)?xe(`${o.content}${d}`,!0):Qr(["(",o,`) + "${d}"`])}return{props:[wt(o,s)]}}),DZ=(e,t,r)=>{const{exp:n,loc:i}=e;return n||r.onError(xi(62,i)),{props:[],needRuntime:r.helper($N)}},LZ=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&t.removeNode()},FZ=[AZ],BZ={cloak:SZ,html:CZ,text:xZ,model:NZ,on:kZ,show:DZ};function $Z(e,t={}){return _Z(e,qe({},OZ,t,{nodeTransforms:[LZ,...FZ,...t.nodeTransforms||[]],directiveTransforms:qe({},BZ,t.directiveTransforms||{}),transformHoist:null}))}/**
|
|
1053
|
-
* vue v3.5.32
|
|
1054
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1055
|
-
* @license MIT
|
|
1056
|
-
**/const zT=Object.create(null);function UZ(e,t){if(!Ae(e))if(e.nodeType)e=e.innerHTML;else return Jt;const r=rY(e,t),n=zT[r];if(n)return n;if(e[0]==="#"){const a=document.querySelector(e);e=a?a.innerHTML:""}const i=qe({hoistStatic:!0,onError:void 0,onWarn:Jt},t);!i.isCustomElement&&typeof customElements<"u"&&(i.isCustomElement=a=>!!customElements.get(a));const{code:o}=$Z(e,i),s=new Function("Vue",o)(zX);return s._rc=!0,zT[r]=s}Rx(UZ);var VZ={};IP(VZ,{applyDecorators:()=>WN,argTypesEnhancers:()=>YN,mount:()=>KN,parameters:()=>zN,render:()=>HN,renderToCanvas:()=>GN});var JZ=["props","events","slots","exposed","expose"],HZ=e=>{if(!Ny(e))return null;let t="exposed"in e.__docgenInfo?"vue-component-meta":"vue-docgen-api",r={};return JZ.forEach(n=>{G9(e,n).forEach(i=>{let o;if(t==="vue-docgen-api"){let s=i.docgenInfo;o=GZ(s,n,i)}else{let s=i.docgenInfo;o=WZ(s,n)}!o||r[o.name]||(["events","expose","exposed"].includes(n)&&(o.control={disable:!0}),r[o.name]=o)})}),r},GZ=(e,t,r)=>{var s,a,l;let n,i;if(t==="events"&&(n=(s=e.type)==null?void 0:s.names.join(),i={name:"other",value:n??"",required:!1}),t==="slots"){let u=(a=e.bindings)==null?void 0:a.filter(d=>!!d.name).map(d=>{var p;return`${d.name}: ${((p=d.type)==null?void 0:p.name)??"unknown"}`}).join("; ");n=u?`{ ${u} }`:void 0,i={name:"other",value:n??"",required:!1}}if(t==="props"){let u=e;if(n=(l=u.type)==null?void 0:l.name,i=r?ld(r.docgenInfo):{name:"other",value:n},u.type&&"elements"in u.type&&Array.isArray(u.type.elements)&&u.type.elements.length>0){let d=u.type.elements.map(p=>p.name);n==="Array"&&(n=`${d.length===1?d[0]:`(${d.join(" | ")})`}[]`),n==="union"?n=d.join(" | "):n==="intersection"&&(n=d.join(" & "))}}let o="required"in e?e.required??!1:!1;return{name:e.name,description:e.description,type:i?{...i,required:o}:{name:"other",value:n??""},table:{type:n?{summary:n}:void 0,defaultValue:(r==null?void 0:r.propDef.defaultValue)??void 0,jsDocTags:r==null?void 0:r.propDef.jsDocTags,category:t}}},WZ=(e,t)=>{if("global"in e&&e.global)return;let r={summary:e.type.replace(" | undefined","")};if(t==="props"){let n=e,i=n.default?{summary:n.default}:void 0;return{name:n.name,description:KZ(n.description,n.tags),defaultValue:i,type:ua(n),table:{type:r,defaultValue:i,category:t}}}else return{name:e.name,description:"description"in e?e.description:"",type:{name:"other",value:e.type},table:{type:r,category:t}}},ua=e=>{var o,s;let t=e.schema,r=e.required,n={name:"other",value:e.type,required:r},i=["string","number","function","boolean","symbol"];if(typeof t=="string")return i.includes(t)?{name:t,required:r}:n;switch(t.kind){case"enum":{let a=((o=t.schema)==null?void 0:o.filter(l=>l!=="undefined"))??[];return XZ(a)?{name:"boolean",required:r}:zZ(a)||YZ(a)?{name:"enum",value:a.map(l=>l.replace(/"/g,"")),required:r}:a.length===1?ua({schema:a[0],type:e.type,required:r}):(a.length>2&&a.includes("true")&&a.includes("false")&&(a=a.filter(l=>l!=="true"&&l!=="false"),a.push("boolean")),{name:"union",value:a.map(l=>ua(typeof l=="object"?{schema:l,type:l.type,required:!1}:{schema:l,type:l,required:!1})),required:r})}case"array":{let a=((s=t.schema)==null?void 0:s.filter(l=>l!=="undefined"))??[];return a.length===0?n:a.length===1?{name:"array",value:ua({schema:a[0],type:e.type,required:!1}),required:r}:{name:"union",value:a.map(l=>ua(typeof l=="object"?{schema:l,type:l.type,required:!1}:{schema:l,type:l,required:!1})),required:r}}case"object":return{name:"object",value:{},required:r};default:return n}},KZ=(e,t)=>!(t!=null&&t.length)||!e?e??"":`${t.map(r=>`@${r.name}: ${r.text}`).join("<br>")}<br><br>${e}`,zZ=e=>e.every(t=>typeof t=="string"&&t.startsWith('"')&&t.endsWith('"')),YZ=e=>e.every(t=>typeof t=="string"&&t.includes(".")),XZ=e=>e.length===2&&e.includes("true")&&e.includes("false"),HN=(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`);return()=>xo(n,e,ZZ(e,t))},QZ=async(e,t)=>{globalThis&&globalThis.PLUGINS_SETUP_FUNCTIONS&&await Promise.all([...globalThis.PLUGINS_SETUP_FUNCTIONS].map(r=>r(e,t)))},Cc=new Map;async function GN({storyFn:e,forceRemount:t,showMain:r,showException:n,storyContext:i,id:o},s){let a=Cc.get(s);if(a&&!t){let u=e(),d=YT(u,i);return XT(a.reactiveArgs,d),XT(a.reactiveGlobals,i.globals),()=>{Bp(a.vueApp,s)}}a&&t&&Bp(a.vueApp,s);let l=Ec({setup(){i.args=Pi(i.args),i.globals=Pi(i.globals);let u=e(),d=YT(u,i),p={vueApp:l,reactiveArgs:Pi(d),reactiveGlobals:i.globals};return Cc.set(s,p),()=>xo(u)}});return l.config.errorHandler=(u,d,p)=>{var f;(f=window.__STORYBOOK_PREVIEW__)!=null&&f.storyRenders.some(h=>h.id===o&&h.phase==="playing")?setTimeout(()=>{throw u},0):n(u)},await QZ(l,i),l.mount(s),r(),()=>{Bp(l,s)}}function ZZ(e,t){let{argTypes:r}=t,n=Object.entries(e).filter(([i])=>{var o,s;return((s=(o=r[i])==null?void 0:o.table)==null?void 0:s.category)==="slots"}).map(([i,o])=>[i,typeof o=="function"?o:()=>o]);return Object.fromEntries(n)}function YT(e,t){return e.props&&rn(e)?e.props:t.args}function XT(e,t){if(Object.keys(t).length===0)return;let r=yn(e)?e:Pi(e);Object.keys(r).forEach(n=>{n in t||delete r[n]}),Object.assign(r,t)}function Bp(e,t){e==null||e.unmount(),Cc.has(t)&&Cc.delete(t)}const{sanitizeStoryContextUpdate:eee}=__STORYBOOK_MODULE_PREVIEW_API__;function tee(e){return typeof e=="function"?{render:e,name:e.name}:e}function QT(e,t){let r=e;return r===null?null:typeof r=="function"?r:t?{...tee(r),components:{...r.components||{},story:t}}:{render(){return xo(r)}}}function WN(e,t){return t.reduce((r,n)=>i=>{let o,s=n(a=>{let l=eee(a);return a&&(l.args=Object.assign(i.args,l.args)),o=r({...i,...l}),o},i);return o||(o=r(i)),s===o?o:QT(s,()=>xo(o))},r=>QT(e(r)))}var KN=e=>async(t,r)=>(t&&(e.originalStoryFn=()=>()=>xo(t,r==null?void 0:r.props,r==null?void 0:r.slots)),await e.renderToCanvas(),e.canvas),zN={renderer:"vue3",docs:{story:{inline:!0},extractArgTypes:HZ,extractComponentDescription:W9}},YN=[K9];const ree=Object.freeze(Object.defineProperty({__proto__:null,applyDecorators:WN,argTypesEnhancers:YN,mount:KN,parameters:zN,render:HN,renderToCanvas:GN},Symbol.toStringTag,{value:"Module"}));var nee={};IP(nee,{decorators:()=>eI});const{emitTransformCode:iee,useEffect:oee}=__STORYBOOK_MODULE_PREVIEW_API__;var xu=Symbol("DEEP_ACCESS_SYMBOL"),see=e=>!!(e&&typeof e=="object"&&xu in e),aee=(e,t)=>{let r=e();return oee(()=>{let n=lee(t);uee(t)||iee(n,t)}),r},lee=e=>{let t={imports:{},scriptVariables:{}},{displayName:r,slotNames:n,eventNames:i}=cee(e.component),o=XN(e.args,n,i,t),s=QN(e.args,n,t),a=r||e.title.split("/").at(-1),l=s?`<${a} ${o}> ${s} </${a}>`:`<${a} ${o} />`,u=Object.entries(t.scriptVariables).map(([f,h])=>`const ${f} = ${h};`).join(`
|
|
1057
|
-
|
|
1058
|
-
`),d=Object.entries(t.imports).map(([f,h])=>`import { ${Array.from(h.values()).sort().join(", ")} } from "${f}";`).join(`
|
|
1059
|
-
`),p=`<template>
|
|
1060
|
-
${l}
|
|
1061
|
-
</template>`;return!d&&!u?p:`<script lang="ts" setup>
|
|
1062
|
-
${d?`${d}
|
|
1063
|
-
|
|
1064
|
-
${u}`:u}
|
|
1065
|
-
<\/script>
|
|
1066
|
-
|
|
1067
|
-
${p}`},uee=e=>{var r;let t=(r=e==null?void 0:e.parameters.docs)==null?void 0:r.source;return(t==null?void 0:t.type)===Zf.DYNAMIC?!1:!(e!=null&&e.parameters.__isArgsStory)||(t==null?void 0:t.code)||(t==null?void 0:t.type)===Zf.CODE},cee=e=>{if(!e||!("__docgenInfo"in e)||!e.__docgenInfo||typeof e.__docgenInfo!="object")return{displayName:e==null?void 0:e.__name,eventNames:[],slotNames:[]};let t=e.__docgenInfo,r="displayName"in t&&typeof t.displayName=="string"?t.displayName:void 0,n=i=>!(i in t)||!Array.isArray(t[i])?[]:t[i].map(o=>o&&typeof o=="object"&&"name"in o?o.name:void 0).filter(o=>typeof o=="string");return{displayName:r||e.__name,slotNames:n("slots").sort((i,o)=>i==="default"?-1:o==="default"?1:i.localeCompare(o)),eventNames:n("events")}},XN=(e,t,r,n)=>{let i=[];Object.entries(e).forEach(([s,a])=>{if(!t.includes(s)&&a!=null)switch(see(a)&&(a=a.toString()),typeof a){case"string":if(a==="")return;i.push({name:s,value:a.includes('"')?`'${a}'`:`"${a}"`,templateFn:(l,u)=>`${l}=${u}`});break;case"number":i.push({name:s,value:a.toString(),templateFn:(l,u)=>`:${l}="${u}"`});break;case"bigint":i.push({name:s,value:`BigInt(${a.toString()})`,templateFn:(l,u)=>`:${l}="${u}"`});break;case"boolean":i.push({name:s,value:a?"true":"false",templateFn:(l,u)=>u==="true"?l:`:${l}="false"`});break;case"symbol":i.push({name:s,value:`Symbol(${a.description?`'${a.description}'`:""})`,templateFn:(l,u)=>`:${l}="${u}"`});break;case"object":{i.push({name:s,value:hee(a??{}),templateFn:void 0});break}}}),i.sort((s,a)=>s.name.localeCompare(a.name));let o=[];return i.forEach(s=>{let a=r.includes(`update:${s.name}`);if(!a&&s.templateFn){o.push(s.templateFn(s.name,s.value));return}let l=s.name;if(l in n.scriptVariables){let u=1;do l=`${s.name}${u}`,u++;while(l in n.scriptVariables)}if(!a){n.scriptVariables[l]=s.value,o.push(`:${s.name}="${l}"`);return}n.scriptVariables[l]=`ref(${s.value})`,n.imports.vue||(n.imports.vue=new Set),n.imports.vue.add("ref"),s.name==="modelValue"?o.push(`v-model="${l}"`):o.push(`v-model:${s.name}="${l}"`)}),o.join(" ")},QN=(e,t,r)=>{let n=[];return t.forEach(i=>{let o=e[i];if(!o)return;let s=Og([o],r);if(!s)return;let a=typeof o=="function"?ZN(o):[];i==="default"&&!a.length?n.push(s):n.push(`<template ${fee(i,a)}>${s}</template>`)}),n.join(`
|
|
1068
|
-
|
|
1069
|
-
`)},Og=(e,t)=>{let r=[],n=i=>{if(rn(i))return dee(i,t);switch(typeof i){case"string":case"number":case"boolean":return i.toString();case"object":return i===null?"":Array.isArray(i)?i.map(n).filter(o=>o!=="").join(`
|
|
1070
|
-
`):JSON.stringify(i);case"function":{let o=ZN(i).filter(l=>!["{","}"].includes(l)),s={};o.forEach(l=>{s[l]=new Proxy({[xu]:!0},{get:(u,d)=>d===xu?u[xu]:[Symbol.toPrimitive,Symbol.toStringTag,"toString"].includes(d)?()=>`{{ ${l} }}`:d==="v-bind"?`${l}`:`{{ ${l}.${d.toString()} }}`,ownKeys:()=>["v-bind"],getOwnPropertyDescriptor:()=>({configurable:!0,enumerable:!0,value:l,writable:!0})})});let a=i(s);return Og([a],t).replaceAll(/ (\S+)="{{ (\S+) }}"/g,' :$1="$2"')}case"bigint":return`{{ BigInt(${i.toString()}) }}`;default:return""}};return e.forEach(i=>{let o=n(i);o!==""&&r.push(o)}),r.join(`
|
|
1071
|
-
`)},dee=(e,t)=>{let r=pee(e),n="";typeof e.children=="string"?n=e.children:Array.isArray(e.children)?n=Og(e.children,t):e.children&&(n=QN(e.children,Object.keys(e.children).filter(o=>o!=="$stable"),t));let i=e.props?XN(e.props,[],[],t):"";return n?`<${r}${i?` ${i}`:""}>${n}</${r}>`:`<${r}${i?` ${i}`:""} />`},pee=e=>{if(typeof e.type=="string")return e.type;if(typeof e.type=="object"){if("name"in e.type&&e.type.name)return e.type.name;if("__name"in e.type&&e.type.__name)return e.type.__name}return"component"},ZN=e=>{let t=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,r=/([^\s,]+)/g,n=e.toString().replace(t,""),i=n.slice(n.indexOf("(")+1,n.indexOf(")")).match(r);return i?i.flatMap(o=>{if(["{","}"].includes(o))return o;let s=o.split(":")[0].trim();return s.startsWith("{")?["{",s.substring(1)]:o.endsWith("}")&&!s.endsWith("}")?[s,"}"]:s}):[]},fee=(e,t)=>t.length?t.length===1?`#${e}="${t[0]}"`:`#${e}="{ ${t.filter(r=>!["{","}"].includes(r)).join(", ")} }"`:`#${e}`,hee=e=>Object.values(e).every(t=>t==null||typeof t!="object")?JSON.stringify(e):JSON.stringify(e,null,2),eI=[aee];const mee=Object.freeze(Object.defineProperty({__proto__:null,decorators:eI},Symbol.toStringTag,{value:"Module"}));var yee=Object.create,Ag=Object.defineProperty,gee=Object.getOwnPropertyDescriptor,tI=Object.getOwnPropertyNames,bee=Object.getPrototypeOf,vee=Object.prototype.hasOwnProperty,hte=(e,t)=>function(){return t||(0,e[tI(e)[0]])((t={exports:{}}).exports,t),t.exports},Eee=(e,t)=>{for(var r in t)Ag(e,r,{get:t[r],enumerable:!0})},Tee=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of tI(t))!vee.call(e,i)&&i!==r&&Ag(e,i,{get:()=>t[i],enumerable:!(n=gee(t,i))||n.enumerable});return e},mte=(e,t,r)=>(r=e!=null?yee(bee(e)):{},Tee(Ag(r,"default",{value:e,enumerable:!0}),e)),wee={};Eee(wee,{parameters:()=>rI});var _ee=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((e,t)=>{let[r,n]=t;return n.excludeFromDocsStories&&(e[r]=!0),e},{}),rI={docs:{renderer:async()=>{let{DocsRenderer:e}=await Pn(async()=>{const{DocsRenderer:t}=await import("./DocsRenderer-LL677BLK-CSnojeph.js").then(r=>r.D);return{DocsRenderer:t}},__vite__mapDeps([18,3]),import.meta.url);return new e},stories:{filter:e=>{var t;return(e.tags||[]).filter(r=>_ee[r]).length===0&&!((t=e.parameters.docs)!=null&&t.disable)}}}};const See=Object.freeze(Object.defineProperty({__proto__:null,parameters:rI},Symbol.toStringTag,{value:"Module"})),Ree={parameters:{layout:"fullscreen",options:{storySort:{order:["Foundation",["Typography","Colors","Spacing","Grid"],"Components",["PzText","PzIcon","PzImage","PzGrid"]]}},backgrounds:{disable:!0},controls:{expanded:!0,matchers:{color:/(background|color)$/i,date:/Date$/i}},docs:{codePanel:!0}},decorators:[(e,t)=>{const r=e(),n=t.parameters.prototype??{};return{components:{storyComponent:r},setup(){return{context:t,prototype:n}},template:`
|
|
1072
|
-
<div class="sb-prototype">
|
|
1073
|
-
<div class="sb-prototype-chrome">
|
|
1074
|
-
<div class="sb-prototype-traffic" aria-hidden="true">
|
|
1075
|
-
<span class="sb-prototype-traffic-dot sb-prototype-traffic-dot-red"></span>
|
|
1076
|
-
<span class="sb-prototype-traffic-dot sb-prototype-traffic-dot-amber"></span>
|
|
1077
|
-
<span class="sb-prototype-traffic-dot sb-prototype-traffic-dot-green"></span>
|
|
1078
|
-
</div>
|
|
1079
|
-
|
|
1080
|
-
<div class="sb-prototype-meta">
|
|
1081
|
-
<span class="sb-prototype-eyebrow">Figma prototype</span>
|
|
1082
|
-
<strong class="sb-prototype-title">{{ prototype.caption || context.title }}</strong>
|
|
1083
|
-
<span class="sb-prototype-path">{{ context.title }} / {{ context.name }}</span>
|
|
1084
|
-
</div>
|
|
1085
|
-
</div>
|
|
1086
|
-
|
|
1087
|
-
<div class="sb-prototype-board">
|
|
1088
|
-
<aside class="sb-prototype-rail">
|
|
1089
|
-
<div class="sb-prototype-rail-block">
|
|
1090
|
-
<span class="sb-prototype-label">Context</span>
|
|
1091
|
-
<p class="sb-prototype-copy">
|
|
1092
|
-
{{ prototype.note || "Storybook canvas styled as a design review frame for faster visual validation." }}
|
|
1093
|
-
</p>
|
|
1094
|
-
</div>
|
|
1095
|
-
|
|
1096
|
-
<div class="sb-prototype-rail-block">
|
|
1097
|
-
<span class="sb-prototype-label">Surface</span>
|
|
1098
|
-
<p class="sb-prototype-copy">Desktop review canvas with design-system chrome and neutral lighting.</p>
|
|
1099
|
-
</div>
|
|
1100
|
-
</aside>
|
|
1101
|
-
|
|
1102
|
-
<section class="sb-prototype-surface">
|
|
1103
|
-
<story-component />
|
|
1104
|
-
</section>
|
|
1105
|
-
</div>
|
|
1106
|
-
</div>
|
|
1107
|
-
`}}]},Oee=Object.freeze(Object.defineProperty({__proto__:null,default:Ree},Symbol.toStringTag,{value:"Module"})),{composeConfigs:Aee}=__STORYBOOK_MODULE_PREVIEW_API__;function Pee(e=[]){const t=[e[0]??ree,e[1]??mee,e[2]??See,e[3]??Oee];return Aee(t)}NP();const{PreviewWeb:Cee}=__STORYBOOK_MODULE_PREVIEW_API__;window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new Cee(y8,Pee);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{Yee as A,Wee as B,ate as C,ste as D,ote as E,ite as F,nte as G,rte as H,tte as I,ete as J,Zee as K,Qee as L,Xee as M,Hee as N,Jee as O,Vee as P,Bee as Q,dte as R,pte as S,lte as T,cte as U,Mn as V,E8 as W,ute as X,fte as Y,Zf as Z,mte as _,hte as a,P8 as b,O8 as c,Jy as d,fc as e,G4 as f,Px as g,B7 as h,Ol as i,jee as j,Gee as k,kee as l,Uee as m,Al as n,nl as o,Fee as p,Lee as q,Y4 as r,$ee as s,ZP as t,Dee as u,Kee as v,$y as w,oo as x,qee as y,zee as z};
|