@oliasoft-open-source/charts-library 5.7.0 → 5.7.1-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/Color-6BZIO3FS-BaAvX6Yp.js +1 -0
- package/dist/assets/DocsRenderer-LL677BLK-BK5C7Jzn.js +41 -0
- package/dist/assets/WithTooltip-65CFNBJE-BQ4nRetu.js +9 -0
- package/dist/assets/bar-chart.stories-D5i9vPgt.js +138 -0
- package/dist/assets/chunk-242VQQM5-DegdISsM.js +1 -0
- package/dist/assets/chunk-CYSK6WYR-BpIZnq_i.js +1 -0
- package/dist/assets/chunk-YKABRMAI-ChBkp0ra.js +18 -0
- package/dist/assets/components-DgLnPVTi.js +92 -0
- package/dist/assets/formatter-EIJCOSYU-By9veOc8.js +1 -0
- package/dist/assets/get-draggableData-C4qYyiBf.js +2 -0
- package/dist/assets/iframe-DvGneWFZ.js +1228 -0
- package/dist/assets/jsx-runtime-S4TgXXQD.js +1 -0
- package/dist/assets/legend-DnGwExsY.js +314 -0
- package/dist/assets/legend-context-DrT75Hl_.js +9 -0
- package/dist/assets/line-chart-Ds2L0-Ky.js +1 -0
- package/dist/assets/line-chart.stories-8UAM62iU.js +1207 -0
- package/dist/assets/{line-chart.test-case.stories-pOkiau3x.js → line-chart.test-case.stories-BPzBXXrt.js} +6 -6
- package/dist/assets/{noto-sans-cyrillic-700-italic-DaJcJxmx.woff → noto-sans-cyrillic-700-italic-Cmu_Qrsl.woff} +0 -0
- package/dist/assets/noto-sans-cyrillic-700-italic-D3UOC7d4.woff2 +0 -0
- package/dist/assets/noto-sans-cyrillic-700-normal-D8UNalU-.woff +0 -0
- package/dist/assets/noto-sans-cyrillic-700-normal-DYZmzPmX.woff2 +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-700-italic-B0vIy3Bn.woff +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-700-italic-MYAGlKQw.woff2 +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-700-normal-D83T7awq.woff +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-700-normal-OK-fZO_i.woff2 +0 -0
- package/dist/assets/noto-sans-devanagari-700-italic-B7b0Qocp.woff +0 -0
- package/dist/assets/noto-sans-devanagari-700-italic-DQbbFiZ1.woff2 +0 -0
- package/dist/assets/noto-sans-devanagari-700-normal-CT12sGlc.woff +0 -0
- package/dist/assets/noto-sans-devanagari-700-normal-DVs0dmkg.woff2 +0 -0
- package/dist/assets/noto-sans-greek-700-italic-DiFf_pN5.woff +0 -0
- package/dist/assets/noto-sans-greek-700-italic-Wr-Zu-Te.woff2 +0 -0
- package/dist/assets/noto-sans-greek-700-normal-DDNJsN3F.woff +0 -0
- package/dist/assets/noto-sans-greek-700-normal-x3kNWF-0.woff2 +0 -0
- package/dist/assets/noto-sans-greek-ext-700-italic-BWtLoNYq.woff2 +0 -0
- package/dist/assets/noto-sans-greek-ext-700-italic-D1odJgaI.woff +0 -0
- package/dist/assets/noto-sans-greek-ext-700-normal-BOmIwFkq.woff +0 -0
- package/dist/assets/noto-sans-greek-ext-700-normal-Dq1WA5-1.woff2 +0 -0
- package/dist/assets/noto-sans-latin-400-italic-4m5KtZ19.woff2 +0 -0
- package/dist/assets/{noto-sans-latin-400-italic-DfHMVQD-.woff → noto-sans-latin-400-italic-D8X3Awh8.woff} +0 -0
- package/dist/assets/noto-sans-latin-400-normal-BTkUljjl.woff2 +0 -0
- package/dist/assets/{noto-sans-latin-400-normal-DKQcY9Xy.woff → noto-sans-latin-400-normal-DPpKfCgK.woff} +0 -0
- package/dist/assets/noto-sans-latin-700-italic-CSXnTKie.woff2 +0 -0
- package/dist/assets/noto-sans-latin-700-italic-Dye4NHQ1.woff +0 -0
- package/dist/assets/noto-sans-latin-700-normal-CrvTEWhy.woff2 +0 -0
- package/dist/assets/noto-sans-latin-700-normal-ZyrKABVF.woff +0 -0
- package/dist/assets/noto-sans-latin-ext-700-italic-ClDAM8zy.woff +0 -0
- package/dist/assets/noto-sans-latin-ext-700-italic-DvsrmUw0.woff2 +0 -0
- package/dist/assets/noto-sans-latin-ext-700-normal-BypTtJma.woff2 +0 -0
- package/dist/assets/noto-sans-latin-ext-700-normal-CgsG9aVh.woff +0 -0
- package/dist/assets/noto-sans-vietnamese-700-italic-CKIaFk_d.woff2 +0 -0
- package/dist/assets/noto-sans-vietnamese-700-italic-CfCpOr03.woff +0 -0
- package/dist/assets/noto-sans-vietnamese-700-normal-1GL2JyGE.woff +0 -0
- package/dist/assets/noto-sans-vietnamese-700-normal-DayJ0F-f.woff2 +0 -0
- package/dist/assets/pie-chart.stories-qKjdYhwq.js +45 -0
- package/dist/assets/react-18-CaPDGmKz.js +1 -0
- package/dist/assets/react-B3R5p1NM.js +1 -0
- package/dist/assets/react-dom-DuTm0_Xz.js +8 -0
- package/dist/assets/scatter-chart.stories-CzYwqOiR.js +41 -0
- package/dist/assets/syntaxhighlighter-ED5Y7EFY-BHci-LOP.js +6 -0
- package/dist/assets/theming-Y5Cbkxro.js +39 -0
- package/dist/bar-chart/utils/use-bar-chart-config.d.ts +1 -1
- package/dist/bar-chart/utils/use-bar-chart-options.d.ts +1 -1
- package/dist/common/controls-portal.d.ts +1 -1
- package/dist/common/helpers/container.d.ts +1 -1
- package/dist/common/helpers/download-pgn.d.ts +1 -1
- package/dist/common/hooks/use-generated-labels.d.ts +1 -1
- package/dist/common/hooks/use-legend-state.d.ts +1 -1
- package/dist/common/hooks/use-reset.d.ts +1 -1
- package/dist/common/hooks/use-update-annotations.d.ts +1 -1
- package/dist/common/legend-component/legend-interface.d.ts +1 -1
- package/dist/common/legend-component/legend-panel.d.ts +1 -1
- package/dist/common/legend-component/state/legend-context.d.ts +1 -1
- package/dist/iframe.html +59 -41
- package/dist/index.html +8 -16
- package/dist/index.json +1 -1
- package/dist/line-chart/controls/axes-options/axes-options-interfaces.d.ts +1 -1
- package/dist/line-chart/controls/controls-interfaces.d.ts +1 -1
- package/dist/line-chart/hooks/use-chart-functions.d.ts +1 -1
- package/dist/line-chart/hooks/use-chart-options.d.ts +1 -1
- package/dist/line-chart/hooks/use-toggle-handler.d.ts +1 -1
- package/dist/line-chart/line-chart.interface.d.ts +1 -1
- package/dist/line-chart/state/helpers.d.ts +1 -1
- package/dist/line-chart/utils/get-axes-ranges-from-chart.d.ts +1 -1
- package/dist/line-chart/utils/get-axis-range-by-type.d.ts +1 -1
- package/dist/project.json +1 -1
- package/dist/sb-addons/docs-2/manager-bundle.js +1 -149
- package/dist/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +95 -438
- package/dist/sb-addons/themes-1/manager-bundle.js +1 -1
- package/dist/sb-manager/globals-runtime.js +73298 -65142
- package/dist/sb-manager/globals.js +6 -16
- package/dist/sb-manager/manager-stores.js +23 -0
- package/dist/sb-manager/runtime.js +17679 -10455
- package/dist/scatter-chart/hooks/use-scatter-chart-config.d.ts +1 -1
- package/dist/vite-inject-mocker-entry.js +4 -4
- package/package.json +2 -2
- package/dist/assets/Color-AVL7NMMY-BIf-DPKC.js +0 -1
- package/dist/assets/DocsRenderer-PQXLIZUC-qyGTV11Z.js +0 -2
- package/dist/assets/bar-chart.stories-BzVohUPy.js +0 -145
- package/dist/assets/client-D4qRJEjo.js +0 -1
- package/dist/assets/components-DLqsgYgq.js +0 -1
- package/dist/assets/get-draggableData-B1b9Fz-7.js +0 -2
- package/dist/assets/iframe-1jQmB0c2.js +0 -2349
- package/dist/assets/legend-DPe9PUI6.js +0 -1285
- package/dist/assets/legend-context-DFaDuXMy.js +0 -28
- package/dist/assets/line-chart-CClEihTw.js +0 -1
- package/dist/assets/line-chart.stories-1TWJzeri.js +0 -1207
- package/dist/assets/noto-sans-cyrillic-700-italic-DWLFq66Q.woff2 +0 -0
- package/dist/assets/noto-sans-cyrillic-700-normal-CgNbF-DS.woff +0 -0
- package/dist/assets/noto-sans-cyrillic-700-normal-Y97T0Ual.woff2 +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-700-italic-CJ2zNwEf.woff2 +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-700-italic-wfn8l9BI.woff +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-700-normal-Cpjpjy5f.woff2 +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-700-normal-DKaOP4w1.woff +0 -0
- package/dist/assets/noto-sans-devanagari-700-italic-BWxeZW2N.woff2 +0 -0
- package/dist/assets/noto-sans-devanagari-700-italic-DlNZooX8.woff +0 -0
- package/dist/assets/noto-sans-devanagari-700-normal-BeKZv04D.woff2 +0 -0
- package/dist/assets/noto-sans-devanagari-700-normal-DQ20I1k4.woff +0 -0
- package/dist/assets/noto-sans-greek-700-italic-BXqStIRT.woff +0 -0
- package/dist/assets/noto-sans-greek-700-italic-K6HhztJz.woff2 +0 -0
- package/dist/assets/noto-sans-greek-700-normal-C_NBFngB.woff2 +0 -0
- package/dist/assets/noto-sans-greek-700-normal-DspBLmJZ.woff +0 -0
- package/dist/assets/noto-sans-greek-ext-700-italic-BVb6BEPG.woff +0 -0
- package/dist/assets/noto-sans-greek-ext-700-italic-DrlV2HeE.woff2 +0 -0
- package/dist/assets/noto-sans-greek-ext-700-normal-BvxaxZ-t.woff +0 -0
- package/dist/assets/noto-sans-greek-ext-700-normal-CqXHsD66.woff2 +0 -0
- package/dist/assets/noto-sans-latin-400-italic-B5_wyGmT.woff2 +0 -0
- package/dist/assets/noto-sans-latin-400-normal-DBaOTIGl.woff2 +0 -0
- package/dist/assets/noto-sans-latin-700-italic-BcjsTJqQ.woff2 +0 -0
- package/dist/assets/noto-sans-latin-700-italic-Cy-hKh7h.woff +0 -0
- package/dist/assets/noto-sans-latin-700-normal-CG28WTf7.woff2 +0 -0
- package/dist/assets/noto-sans-latin-700-normal-DVIsH__v.woff +0 -0
- package/dist/assets/noto-sans-latin-ext-700-italic-S9i1fPgy.woff2 +0 -0
- package/dist/assets/noto-sans-latin-ext-700-italic-dYKfCWXj.woff +0 -0
- package/dist/assets/noto-sans-latin-ext-700-normal-CDZvJj8X.woff +0 -0
- package/dist/assets/noto-sans-latin-ext-700-normal-CnRwbtty.woff2 +0 -0
- package/dist/assets/noto-sans-vietnamese-700-italic-DTbX1pks.woff +0 -0
- package/dist/assets/noto-sans-vietnamese-700-italic-DgcmztT9.woff2 +0 -0
- package/dist/assets/noto-sans-vietnamese-700-normal-BpIrMy6S.woff +0 -0
- package/dist/assets/noto-sans-vietnamese-700-normal-Cg_u0UBD.woff2 +0 -0
- package/dist/assets/pie-chart.stories-iF28DB0o.js +0 -45
- package/dist/assets/react-18-ViQPJ3Pf.js +0 -1
- package/dist/assets/react-Dgi8gd0n.js +0 -1
- package/dist/assets/scatter-chart.stories-Ddc14Ixd.js +0 -41
- package/dist/sb-manager/globals-module-info.js +0 -799
- /package/dist/assets/{bar-chart-const-KaipikFs.js → bar-chart-const-Dmo8UTJN.js} +0 -0
- /package/dist/assets/{get-custom-legend-plugin-example-CGyRL0oI.js → get-custom-legend-plugin-example-Decjgf1l.js} +0 -0
- /package/dist/assets/{preload-helper-Dr7BywEQ.js → preload-helper-Bhb7V-Yo.js} +0 -0
|
@@ -0,0 +1,1228 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./bar-chart.stories-D5i9vPgt.js","./legend-DnGwExsY.js","./legend-context-DrT75Hl_.js","./jsx-runtime-S4TgXXQD.js","./react-dom-DuTm0_Xz.js","./get-draggableData-C4qYyiBf.js","./bar-chart-const-Dmo8UTJN.js","./get-custom-legend-plugin-example-Decjgf1l.js","./line-chart.stories-8UAM62iU.js","./line-chart-Ds2L0-Ky.js","./line-chart.test-case.stories-BPzBXXrt.js","./pie-chart.stories-qKjdYhwq.js","./scatter-chart.stories-CzYwqOiR.js","./react-18-CaPDGmKz.js","./DocsRenderer-LL677BLK-BK5C7Jzn.js","./preload-helper-Bhb7V-Yo.js","./chunk-CYSK6WYR-BpIZnq_i.js","./components-DgLnPVTi.js","./chunk-242VQQM5-DegdISsM.js","./theming-Y5Cbkxro.js","./chunk-YKABRMAI-ChBkp0ra.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{t as e}from"./preload-helper-Bhb7V-Yo.js";var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(e&&(t=e(e=0)),t),c=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),l=(e,t)=>{let r={};for(var i in e)n(r,i,{get:e[i],enumerable:!0});return t||n(r,Symbol.toStringTag,{value:`Module`}),r},u=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},d=(e,r,i)=>(i=e==null?{}:t(a(e)),u(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e)),f=e=>o.call(e,`module.exports`)?e[`module.exports`]:u(n({},`__esModule`,{value:!0}),e),p=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var m=Object.create,h=Object.defineProperty,g=Object.getOwnPropertyDescriptor,_=Object.getOwnPropertyNames,v=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty,b=(e=>typeof p<`u`?p:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof p<`u`?p:e)[t]}):e)(function(e){if(typeof p<`u`)return p.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)}),x=(e,t)=>function(){return t||(0,e[_(e)[0]])((t={exports:{}}).exports,t),t.exports},S=(e,t)=>{for(var n in t)h(e,n,{get:t[n],enumerable:!0})},C=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of _(t))!y.call(e,i)&&i!==n&&h(e,i,{get:()=>t[i],enumerable:!(r=g(t,i))||r.enumerable});return e},w=(e,t,n)=>(n=e==null?{}:m(v(e)),C(t||!e||!e.__esModule?h(n,`default`,{value:e,enumerable:!0}):n,e)),T=x({"../../node_modules/@ngard/tiny-isequal/index.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.isEqual=(function(){var e=Object.prototype.toString,t=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:Object.keys;return function(r,i){return(function r(i,a,o){var s,c,l,u=e.call(i),d=e.call(a);if(i===a)return!0;if(i==null||a==null)return!1;if(o.indexOf(i)>-1&&o.indexOf(a)>-1)return!0;if(o.push(i,a),u!=d||(s=n(i),c=n(a),s.length!=c.length||s.some(function(e){return!r(i[e],a[e],o)})))return!1;switch(u.slice(8,-1)){case`Symbol`:return i.valueOf()==a.valueOf();case`Date`:case`Number`:return+i==+a||+i!=+i&&+a!=+a;case`RegExp`:case`Function`:case`String`:case`Boolean`:return``+i==``+a;case`Set`:case`Map`:s=i.entries(),c=a.entries();do if(!r((l=s.next()).value,c.next().value,o))return!1;while(!l.done);return!0;case`ArrayBuffer`:i=new Uint8Array(i),a=new Uint8Array(a);case`DataView`:i=new Uint8Array(i.buffer),a=new Uint8Array(a.buffer);case`Float32Array`:case`Float64Array`:case`Int8Array`:case`Int16Array`:case`Int32Array`:case`Uint8Array`:case`Uint16Array`:case`Uint32Array`:case`Uint8ClampedArray`:case`Arguments`:case`Array`:if(i.length!=a.length)return!1;for(l=0;l<i.length;l++)if((l in i||l in a)&&(l in i!=l in a||!r(i[l],a[l],o)))return!1;return!0;case`Object`:return r(t(i),t(a),o);default:return!1}})(r,i,[])}})()}}),E=x({"../../node_modules/min-indent/index.js"(e,t){t.exports=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((e,t)=>Math.min(e,t.length),1/0):0}}}),D=x({"../../node_modules/strip-indent/index.js"(e,t){var n=E();t.exports=e=>{let t=n(e);if(t===0)return e;let r=RegExp(`^[ \\t]{${t}}`,`gm`);return e.replace(r,``)}}}),O=x({"../../node_modules/indent-string/index.js"(e,t){t.exports=(e,t=1,n)=>{if(n={indent:` `,includeEmptyLines:!1,...n},typeof e!=`string`)throw TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!=`number`)throw TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof n.indent!=`string`)throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``);if(t===0)return e;let r=n.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(r,n.indent.repeat(t))}}}),k=x({"../../node_modules/redent/index.js"(e,t){var n=D(),r=O();t.exports=(e,t=0,i)=>r(n(e),t,i)}}),A=x({"../../node_modules/aria-query/lib/util/iteratorProxy.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;function t(){var e=this,t=0,n={"@@iterator":function(){return n},next:function(){if(t<e.length){var n=e[t];return t+=1,{done:!1,value:n}}else return{done:!0}}};return n}e.default=t}}),j=x({"../../node_modules/aria-query/lib/util/iterationDecorator.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=i;var t=n(A());function n(e){return e&&e.__esModule?e:{default:e}}function r(e){"@babel/helpers - typeof";return r=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},r(e)}function i(e,n){return typeof Symbol==`function`&&r(Symbol.iterator)===`symbol`&&Object.defineProperty(e,Symbol.iterator,{value:t.default.bind(n)}),e}}}),M=x({"../../node_modules/aria-query/lib/ariaPropsMap.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=n(j());function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return c(e)||s(e,t)||a(e,t)||i()}function i(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(e,t){if(e){if(typeof e==`string`)return o(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function c(e){if(Array.isArray(e))return e}var l=[[`aria-activedescendant`,{type:`id`}],[`aria-atomic`,{type:`boolean`}],[`aria-autocomplete`,{type:`token`,values:[`inline`,`list`,`both`,`none`]}],[`aria-braillelabel`,{type:`string`}],[`aria-brailleroledescription`,{type:`string`}],[`aria-busy`,{type:`boolean`}],[`aria-checked`,{type:`tristate`}],[`aria-colcount`,{type:`integer`}],[`aria-colindex`,{type:`integer`}],[`aria-colspan`,{type:`integer`}],[`aria-controls`,{type:`idlist`}],[`aria-current`,{type:`token`,values:[`page`,`step`,`location`,`date`,`time`,!0,!1]}],[`aria-describedby`,{type:`idlist`}],[`aria-description`,{type:`string`}],[`aria-details`,{type:`id`}],[`aria-disabled`,{type:`boolean`}],[`aria-dropeffect`,{type:`tokenlist`,values:[`copy`,`execute`,`link`,`move`,`none`,`popup`]}],[`aria-errormessage`,{type:`id`}],[`aria-expanded`,{type:`boolean`,allowundefined:!0}],[`aria-flowto`,{type:`idlist`}],[`aria-grabbed`,{type:`boolean`,allowundefined:!0}],[`aria-haspopup`,{type:`token`,values:[!1,!0,`menu`,`listbox`,`tree`,`grid`,`dialog`]}],[`aria-hidden`,{type:`boolean`,allowundefined:!0}],[`aria-invalid`,{type:`token`,values:[`grammar`,!1,`spelling`,!0]}],[`aria-keyshortcuts`,{type:`string`}],[`aria-label`,{type:`string`}],[`aria-labelledby`,{type:`idlist`}],[`aria-level`,{type:`integer`}],[`aria-live`,{type:`token`,values:[`assertive`,`off`,`polite`]}],[`aria-modal`,{type:`boolean`}],[`aria-multiline`,{type:`boolean`}],[`aria-multiselectable`,{type:`boolean`}],[`aria-orientation`,{type:`token`,values:[`vertical`,`undefined`,`horizontal`]}],[`aria-owns`,{type:`idlist`}],[`aria-placeholder`,{type:`string`}],[`aria-posinset`,{type:`integer`}],[`aria-pressed`,{type:`tristate`}],[`aria-readonly`,{type:`boolean`}],[`aria-relevant`,{type:`tokenlist`,values:[`additions`,`all`,`removals`,`text`]}],[`aria-required`,{type:`boolean`}],[`aria-roledescription`,{type:`string`}],[`aria-rowcount`,{type:`integer`}],[`aria-rowindex`,{type:`integer`}],[`aria-rowspan`,{type:`integer`}],[`aria-selected`,{type:`boolean`,allowundefined:!0}],[`aria-setsize`,{type:`integer`}],[`aria-sort`,{type:`token`,values:[`ascending`,`descending`,`none`,`other`]}],[`aria-valuemax`,{type:`number`}],[`aria-valuemin`,{type:`number`}],[`aria-valuenow`,{type:`number`}],[`aria-valuetext`,{type:`string`}]],u={entries:function(){return l},forEach:function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=0,i=l;n<i.length;n++){var a=r(i[n],2),o=a[0],s=a[1];e.call(t,s,o,l)}},get:function(e){var t=l.filter(function(t){return t[0]===e})[0];return t&&t[1]},has:function(e){return!!u.get(e)},keys:function(){return l.map(function(e){return r(e,1)[0]})},values:function(){return l.map(function(e){return r(e,2)[1]})}};e.default=(0,t.default)(u,u.entries())}}),N=x({"../../node_modules/aria-query/lib/domMap.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=n(j());function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return c(e)||s(e,t)||a(e,t)||i()}function i(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(e,t){if(e){if(typeof e==`string`)return o(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function c(e){if(Array.isArray(e))return e}var l=[[`a`,{reserved:!1}],[`abbr`,{reserved:!1}],[`acronym`,{reserved:!1}],[`address`,{reserved:!1}],[`applet`,{reserved:!1}],[`area`,{reserved:!1}],[`article`,{reserved:!1}],[`aside`,{reserved:!1}],[`audio`,{reserved:!1}],[`b`,{reserved:!1}],[`base`,{reserved:!0}],[`bdi`,{reserved:!1}],[`bdo`,{reserved:!1}],[`big`,{reserved:!1}],[`blink`,{reserved:!1}],[`blockquote`,{reserved:!1}],[`body`,{reserved:!1}],[`br`,{reserved:!1}],[`button`,{reserved:!1}],[`canvas`,{reserved:!1}],[`caption`,{reserved:!1}],[`center`,{reserved:!1}],[`cite`,{reserved:!1}],[`code`,{reserved:!1}],[`col`,{reserved:!0}],[`colgroup`,{reserved:!0}],[`content`,{reserved:!1}],[`data`,{reserved:!1}],[`datalist`,{reserved:!1}],[`dd`,{reserved:!1}],[`del`,{reserved:!1}],[`details`,{reserved:!1}],[`dfn`,{reserved:!1}],[`dialog`,{reserved:!1}],[`dir`,{reserved:!1}],[`div`,{reserved:!1}],[`dl`,{reserved:!1}],[`dt`,{reserved:!1}],[`em`,{reserved:!1}],[`embed`,{reserved:!1}],[`fieldset`,{reserved:!1}],[`figcaption`,{reserved:!1}],[`figure`,{reserved:!1}],[`font`,{reserved:!1}],[`footer`,{reserved:!1}],[`form`,{reserved:!1}],[`frame`,{reserved:!1}],[`frameset`,{reserved:!1}],[`h1`,{reserved:!1}],[`h2`,{reserved:!1}],[`h3`,{reserved:!1}],[`h4`,{reserved:!1}],[`h5`,{reserved:!1}],[`h6`,{reserved:!1}],[`head`,{reserved:!0}],[`header`,{reserved:!1}],[`hgroup`,{reserved:!1}],[`hr`,{reserved:!1}],[`html`,{reserved:!0}],[`i`,{reserved:!1}],[`iframe`,{reserved:!1}],[`img`,{reserved:!1}],[`input`,{reserved:!1}],[`ins`,{reserved:!1}],[`kbd`,{reserved:!1}],[`keygen`,{reserved:!1}],[`label`,{reserved:!1}],[`legend`,{reserved:!1}],[`li`,{reserved:!1}],[`link`,{reserved:!0}],[`main`,{reserved:!1}],[`map`,{reserved:!1}],[`mark`,{reserved:!1}],[`marquee`,{reserved:!1}],[`menu`,{reserved:!1}],[`menuitem`,{reserved:!1}],[`meta`,{reserved:!0}],[`meter`,{reserved:!1}],[`nav`,{reserved:!1}],[`noembed`,{reserved:!0}],[`noscript`,{reserved:!0}],[`object`,{reserved:!1}],[`ol`,{reserved:!1}],[`optgroup`,{reserved:!1}],[`option`,{reserved:!1}],[`output`,{reserved:!1}],[`p`,{reserved:!1}],[`param`,{reserved:!0}],[`picture`,{reserved:!0}],[`pre`,{reserved:!1}],[`progress`,{reserved:!1}],[`q`,{reserved:!1}],[`rp`,{reserved:!1}],[`rt`,{reserved:!1}],[`rtc`,{reserved:!1}],[`ruby`,{reserved:!1}],[`s`,{reserved:!1}],[`samp`,{reserved:!1}],[`script`,{reserved:!0}],[`section`,{reserved:!1}],[`select`,{reserved:!1}],[`small`,{reserved:!1}],[`source`,{reserved:!0}],[`spacer`,{reserved:!1}],[`span`,{reserved:!1}],[`strike`,{reserved:!1}],[`strong`,{reserved:!1}],[`style`,{reserved:!0}],[`sub`,{reserved:!1}],[`summary`,{reserved:!1}],[`sup`,{reserved:!1}],[`table`,{reserved:!1}],[`tbody`,{reserved:!1}],[`td`,{reserved:!1}],[`textarea`,{reserved:!1}],[`tfoot`,{reserved:!1}],[`th`,{reserved:!1}],[`thead`,{reserved:!1}],[`time`,{reserved:!1}],[`title`,{reserved:!0}],[`tr`,{reserved:!1}],[`track`,{reserved:!0}],[`tt`,{reserved:!1}],[`u`,{reserved:!1}],[`ul`,{reserved:!1}],[`var`,{reserved:!1}],[`video`,{reserved:!1}],[`wbr`,{reserved:!1}],[`xmp`,{reserved:!1}]],u={entries:function(){return l},forEach:function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=0,i=l;n<i.length;n++){var a=r(i[n],2),o=a[0],s=a[1];e.call(t,s,o,l)}},get:function(e){var t=l.filter(function(t){return t[0]===e})[0];return t&&t[1]},has:function(e){return!!u.get(e)},keys:function(){return l.map(function(e){return r(e,1)[0]})},values:function(){return l.map(function(e){return r(e,2)[1]})}};e.default=(0,t.default)(u,u.entries())}}),P=x({"../../node_modules/aria-query/lib/etc/roles/abstract/commandRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`]]}}}),ee=x({"../../node_modules/aria-query/lib/etc/roles/abstract/compositeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`]]}}}),te=x({"../../node_modules/aria-query/lib/etc/roles/abstract/inputRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null},relatedConcepts:[{concept:{name:`input`},module:`XForms`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`]]}}}),ne=x({"../../node_modules/aria-query/lib/etc/roles/abstract/landmarkRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),F=x({"../../node_modules/aria-query/lib/etc/roles/abstract/rangeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`]]}}}),re=x({"../../node_modules/aria-query/lib/etc/roles/abstract/roletypeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{"aria-atomic":null,"aria-busy":null,"aria-controls":null,"aria-current":null,"aria-describedby":null,"aria-details":null,"aria-dropeffect":null,"aria-flowto":null,"aria-grabbed":null,"aria-hidden":null,"aria-keyshortcuts":null,"aria-label":null,"aria-labelledby":null,"aria-live":null,"aria-owns":null,"aria-relevant":null,"aria-roledescription":null},relatedConcepts:[{concept:{name:`role`},module:`XHTML`},{concept:{name:`type`},module:`Dublin Core`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]}}}),ie=x({"../../node_modules/aria-query/lib/etc/roles/abstract/sectionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`frontmatter`},module:`DTB`},{concept:{name:`level`},module:`DTB`},{concept:{name:`level`},module:`SMIL`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`]]}}}),ae=x({"../../node_modules/aria-query/lib/etc/roles/abstract/sectionheadRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`]]}}}),I=x({"../../node_modules/aria-query/lib/etc/roles/abstract/selectRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-orientation":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`composite`],[`roletype`,`structure`,`section`,`group`]]}}}),oe=x({"../../node_modules/aria-query/lib/etc/roles/abstract/structureRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`]]}}}),se=x({"../../node_modules/aria-query/lib/etc/roles/abstract/widgetRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`]]}}}),ce=x({"../../node_modules/aria-query/lib/etc/roles/abstract/windowRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`]]}}}),le=x({"../../node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=p(P()),n=p(ee()),r=p(te()),i=p(ne()),a=p(F()),o=p(re()),s=p(ie()),c=p(ae()),l=p(I()),u=p(oe()),d=p(se()),f=p(ce());function p(e){return e&&e.__esModule?e:{default:e}}e.default=[[`command`,t.default],[`composite`,n.default],[`input`,r.default],[`landmark`,i.default],[`range`,a.default],[`roletype`,o.default],[`section`,s.default],[`sectionhead`,c.default],[`select`,l.default],[`structure`,u.default],[`widget`,d.default],[`window`,f.default]]}}),ue=x({"../../node_modules/aria-query/lib/etc/roles/literal/alertRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-atomic":`true`,"aria-live":`assertive`},relatedConcepts:[{concept:{name:`alert`},module:`XForms`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),de=x({"../../node_modules/aria-query/lib/etc/roles/literal/alertdialogRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`alert`},module:`XForms`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`alert`],[`roletype`,`window`,`dialog`]]}}}),fe=x({"../../node_modules/aria-query/lib/etc/roles/literal/applicationRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`Device Independence Delivery Unit`}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`]]}}}),pe=x({"../../node_modules/aria-query/lib/etc/roles/literal/articleRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:`article`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`document`]]}}}),me=x({"../../node_modules/aria-query/lib/etc/roles/literal/bannerRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:[`scoped to the body element`],name:`header`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),he=x({"../../node_modules/aria-query/lib/etc/roles/literal/blockquoteRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`blockquote`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),ge=x({"../../node_modules/aria-query/lib/etc/roles/literal/buttonRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-pressed":null},relatedConcepts:[{concept:{attributes:[{name:`type`,value:`button`}],name:`input`},module:`HTML`},{concept:{attributes:[{name:`type`,value:`image`}],name:`input`},module:`HTML`},{concept:{attributes:[{name:`type`,value:`reset`}],name:`input`},module:`HTML`},{concept:{attributes:[{name:`type`,value:`submit`}],name:`input`},module:`HTML`},{concept:{name:`button`},module:`HTML`},{concept:{name:`trigger`},module:`XForms`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`command`]]}}}),_e=x({"../../node_modules/aria-query/lib/etc/roles/literal/captionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{name:`caption`},module:`HTML`}],requireContextRole:[`figure`,`grid`,`table`],requiredContextRole:[`figure`,`grid`,`table`],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),ve=x({"../../node_modules/aria-query/lib/etc/roles/literal/cellRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-colindex":null,"aria-colspan":null,"aria-rowindex":null,"aria-rowspan":null},relatedConcepts:[{concept:{constraints:[`ancestor table element has table role`],name:`td`},module:`HTML`}],requireContextRole:[`row`],requiredContextRole:[`row`],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),ye=x({"../../node_modules/aria-query/lib/etc/roles/literal/checkboxRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-checked":null,"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{name:`type`,value:`checkbox`}],name:`input`},module:`HTML`},{concept:{name:`option`},module:`ARIA`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[[`roletype`,`widget`,`input`]]}}}),be=x({"../../node_modules/aria-query/lib/etc/roles/literal/codeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{name:`code`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),xe=x({"../../node_modules/aria-query/lib/etc/roles/literal/columnheaderRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{name:`th`},module:`HTML`},{concept:{attributes:[{name:`scope`,value:`col`}],name:`th`},module:`HTML`},{concept:{attributes:[{name:`scope`,value:`colgroup`}],name:`th`},module:`HTML`}],requireContextRole:[`row`],requiredContextRole:[`row`],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`cell`],[`roletype`,`structure`,`section`,`cell`,`gridcell`],[`roletype`,`widget`,`gridcell`],[`roletype`,`structure`,`sectionhead`]]}}}),L=x({"../../node_modules/aria-query/lib/etc/roles/literal/comboboxRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-expanded":`false`,"aria-haspopup":`listbox`},relatedConcepts:[{concept:{attributes:[{constraints:[`set`],name:`list`},{name:`type`,value:`email`}],name:`input`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`list`},{name:`type`,value:`search`}],name:`input`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`list`},{name:`type`,value:`tel`}],name:`input`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`list`},{name:`type`,value:`text`}],name:`input`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`list`},{name:`type`,value:`url`}],name:`input`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`list`},{name:`type`,value:`url`}],name:`input`},module:`HTML`},{concept:{attributes:[{constraints:[`undefined`],name:`multiple`},{constraints:[`undefined`],name:`size`}],constraints:[`the multiple attribute is not set and the size attribute does not have a value greater than 1`],name:`select`},module:`HTML`},{concept:{name:`select`},module:`XForms`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-expanded":`false`},superClass:[[`roletype`,`widget`,`input`]]}}}),Se=x({"../../node_modules/aria-query/lib/etc/roles/literal/complementaryRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:[`scoped to the body element`,`scoped to the main element`],name:`aside`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`aria-label`}],constraints:[`scoped to a sectioning content element`,`scoped to a sectioning root element other than body`],name:`aside`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`aria-labelledby`}],constraints:[`scoped to a sectioning content element`,`scoped to a sectioning root element other than body`],name:`aside`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Ce=x({"../../node_modules/aria-query/lib/etc/roles/literal/contentinfoRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:[`scoped to the body element`],name:`footer`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),we=x({"../../node_modules/aria-query/lib/etc/roles/literal/definitionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`dd`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),R=x({"../../node_modules/aria-query/lib/etc/roles/literal/deletionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{name:`del`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Te=x({"../../node_modules/aria-query/lib/etc/roles/literal/dialogRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`dialog`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`window`]]}}}),Ee=x({"../../node_modules/aria-query/lib/etc/roles/literal/directoryRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{module:`DAISY Guide`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`list`]]}}}),De=x({"../../node_modules/aria-query/lib/etc/roles/literal/documentRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`Device Independence Delivery Unit`}},{concept:{name:`html`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`]]}}}),z=x({"../../node_modules/aria-query/lib/etc/roles/literal/emphasisRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{name:`em`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Oe=x({"../../node_modules/aria-query/lib/etc/roles/literal/feedRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`article`]],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`list`]]}}}),ke=x({"../../node_modules/aria-query/lib/etc/roles/literal/figureRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`figure`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Ae=x({"../../node_modules/aria-query/lib/etc/roles/literal/formRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:[`set`],name:`aria-label`}],name:`form`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`aria-labelledby`}],name:`form`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`name`}],name:`form`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),je=x({"../../node_modules/aria-query/lib/etc/roles/literal/genericRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{name:`a`},module:`HTML`},{concept:{name:`area`},module:`HTML`},{concept:{name:`aside`},module:`HTML`},{concept:{name:`b`},module:`HTML`},{concept:{name:`bdo`},module:`HTML`},{concept:{name:`body`},module:`HTML`},{concept:{name:`data`},module:`HTML`},{concept:{name:`div`},module:`HTML`},{concept:{constraints:[`scoped to the main element`,`scoped to a sectioning content element`,`scoped to a sectioning root element other than body`],name:`footer`},module:`HTML`},{concept:{constraints:[`scoped to the main element`,`scoped to a sectioning content element`,`scoped to a sectioning root element other than body`],name:`header`},module:`HTML`},{concept:{name:`hgroup`},module:`HTML`},{concept:{name:`i`},module:`HTML`},{concept:{name:`pre`},module:`HTML`},{concept:{name:`q`},module:`HTML`},{concept:{name:`samp`},module:`HTML`},{concept:{name:`section`},module:`HTML`},{concept:{name:`small`},module:`HTML`},{concept:{name:`span`},module:`HTML`},{concept:{name:`u`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`]]}}}),Me=x({"../../node_modules/aria-query/lib/etc/roles/literal/gridRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-multiselectable":null,"aria-readonly":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`row`],[`row`,`rowgroup`]],requiredProps:{},superClass:[[`roletype`,`widget`,`composite`],[`roletype`,`structure`,`section`,`table`]]}}}),Ne=x({"../../node_modules/aria-query/lib/etc/roles/literal/gridcellRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-selected":null},relatedConcepts:[{concept:{constraints:[`ancestor table element has grid role`,`ancestor table element has treegrid role`],name:`td`},module:`HTML`}],requireContextRole:[`row`],requiredContextRole:[`row`],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`cell`],[`roletype`,`widget`]]}}}),Pe=x({"../../node_modules/aria-query/lib/etc/roles/literal/groupRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[{concept:{name:`details`},module:`HTML`},{concept:{name:`fieldset`},module:`HTML`},{concept:{name:`optgroup`},module:`HTML`},{concept:{name:`address`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),B=x({"../../node_modules/aria-query/lib/etc/roles/literal/headingRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-level":`2`},relatedConcepts:[{concept:{name:`h1`},module:`HTML`},{concept:{name:`h2`},module:`HTML`},{concept:{name:`h3`},module:`HTML`},{concept:{name:`h4`},module:`HTML`},{concept:{name:`h5`},module:`HTML`},{concept:{name:`h6`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-level":`2`},superClass:[[`roletype`,`structure`,`sectionhead`]]}}}),Fe=x({"../../node_modules/aria-query/lib/etc/roles/literal/imgRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:[`set`],name:`alt`}],name:`img`},module:`HTML`},{concept:{attributes:[{constraints:[`undefined`],name:`alt`}],name:`img`},module:`HTML`},{concept:{name:`imggroup`},module:`DTB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Ie=x({"../../node_modules/aria-query/lib/etc/roles/literal/insertionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{name:`ins`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Le=x({"../../node_modules/aria-query/lib/etc/roles/literal/linkRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[{concept:{attributes:[{constraints:[`set`],name:`href`}],name:`a`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`href`}],name:`area`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`command`]]}}}),Re=x({"../../node_modules/aria-query/lib/etc/roles/literal/listRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`menu`},module:`HTML`},{concept:{name:`ol`},module:`HTML`},{concept:{name:`ul`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`listitem`]],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),ze=x({"../../node_modules/aria-query/lib/etc/roles/literal/listboxRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-multiselectable":null,"aria-readonly":null,"aria-required":null,"aria-orientation":`vertical`},relatedConcepts:[{concept:{attributes:[{constraints:[`>1`],name:`size`}],constraints:[`the size attribute value is greater than 1`],name:`select`},module:`HTML`},{concept:{attributes:[{name:`multiple`}],name:`select`},module:`HTML`},{concept:{name:`datalist`},module:`HTML`},{concept:{name:`list`},module:`ARIA`},{concept:{name:`select`},module:`XForms`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`option`,`group`],[`option`]],requiredProps:{},superClass:[[`roletype`,`widget`,`composite`,`select`],[`roletype`,`structure`,`section`,`group`,`select`]]}}}),Be=x({"../../node_modules/aria-query/lib/etc/roles/literal/listitemRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-level":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{constraints:[`direct descendant of ol`,`direct descendant of ul`,`direct descendant of menu`],name:`li`},module:`HTML`},{concept:{name:`item`},module:`XForms`}],requireContextRole:[`directory`,`list`],requiredContextRole:[`directory`,`list`],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Ve=x({"../../node_modules/aria-query/lib/etc/roles/literal/logRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-live":`polite`},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),He=x({"../../node_modules/aria-query/lib/etc/roles/literal/mainRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`main`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Ue=x({"../../node_modules/aria-query/lib/etc/roles/literal/markRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null},relatedConcepts:[{concept:{name:`mark`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),We=x({"../../node_modules/aria-query/lib/etc/roles/literal/marqueeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Ge=x({"../../node_modules/aria-query/lib/etc/roles/literal/mathRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`math`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Ke=x({"../../node_modules/aria-query/lib/etc/roles/literal/menuRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-orientation":`vertical`},relatedConcepts:[{concept:{name:`MENU`},module:`JAPI`},{concept:{name:`list`},module:`ARIA`},{concept:{name:`select`},module:`XForms`},{concept:{name:`sidebar`},module:`DTB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`menuitem`,`group`],[`menuitemradio`,`group`],[`menuitemcheckbox`,`group`],[`menuitem`],[`menuitemcheckbox`],[`menuitemradio`]],requiredProps:{},superClass:[[`roletype`,`widget`,`composite`,`select`],[`roletype`,`structure`,`section`,`group`,`select`]]}}}),qe=x({"../../node_modules/aria-query/lib/etc/roles/literal/menubarRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-orientation":`horizontal`},relatedConcepts:[{concept:{name:`toolbar`},module:`ARIA`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`menuitem`,`group`],[`menuitemradio`,`group`],[`menuitemcheckbox`,`group`],[`menuitem`],[`menuitemcheckbox`],[`menuitemradio`]],requiredProps:{},superClass:[[`roletype`,`widget`,`composite`,`select`,`menu`],[`roletype`,`structure`,`section`,`group`,`select`,`menu`]]}}}),V=x({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:`MENU_ITEM`},module:`JAPI`},{concept:{name:`listitem`},module:`ARIA`},{concept:{name:`option`},module:`ARIA`}],requireContextRole:[`group`,`menu`,`menubar`],requiredContextRole:[`group`,`menu`,`menubar`],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`command`]]}}}),Je=x({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemcheckboxRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`menuitem`},module:`ARIA`}],requireContextRole:[`group`,`menu`,`menubar`],requiredContextRole:[`group`,`menu`,`menubar`],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[[`roletype`,`widget`,`input`,`checkbox`],[`roletype`,`widget`,`command`,`menuitem`]]}}}),Ye=x({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemradioRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`menuitem`},module:`ARIA`}],requireContextRole:[`group`,`menu`,`menubar`],requiredContextRole:[`group`,`menu`,`menubar`],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[[`roletype`,`widget`,`input`,`checkbox`,`menuitemcheckbox`],[`roletype`,`widget`,`command`,`menuitem`,`menuitemcheckbox`],[`roletype`,`widget`,`input`,`radio`]]}}}),Xe=x({"../../node_modules/aria-query/lib/etc/roles/literal/meterRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`],prohibitedProps:[],props:{"aria-valuetext":null,"aria-valuemax":`100`,"aria-valuemin":`0`},relatedConcepts:[{concept:{name:`meter`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[[`roletype`,`structure`,`range`]]}}}),Ze=x({"../../node_modules/aria-query/lib/etc/roles/literal/navigationRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`nav`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Qe=x({"../../node_modules/aria-query/lib/etc/roles/literal/noneRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]}}}),$e=x({"../../node_modules/aria-query/lib/etc/roles/literal/noteRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),et=x({"../../node_modules/aria-query/lib/etc/roles/literal/optionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":`false`},relatedConcepts:[{concept:{name:`item`},module:`XForms`},{concept:{name:`listitem`},module:`ARIA`},{concept:{name:`option`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-selected":`false`},superClass:[[`roletype`,`widget`,`input`]]}}}),tt=x({"../../node_modules/aria-query/lib/etc/roles/literal/paragraphRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{name:`p`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),nt=x({"../../node_modules/aria-query/lib/etc/roles/literal/presentationRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{attributes:[{name:`alt`,value:``}],name:`img`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`]]}}}),rt=x({"../../node_modules/aria-query/lib/etc/roles/literal/progressbarRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`],prohibitedProps:[],props:{"aria-valuetext":null},relatedConcepts:[{concept:{name:`progress`},module:`HTML`},{concept:{name:`status`},module:`ARIA`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`range`],[`roletype`,`widget`]]}}}),it=x({"../../node_modules/aria-query/lib/etc/roles/literal/radioRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{attributes:[{name:`type`,value:`radio`}],name:`input`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[[`roletype`,`widget`,`input`]]}}}),at=x({"../../node_modules/aria-query/lib/etc/roles/literal/radiogroupRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{name:`list`},module:`ARIA`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`radio`]],requiredProps:{},superClass:[[`roletype`,`widget`,`composite`,`select`],[`roletype`,`structure`,`section`,`group`,`select`]]}}}),ot=x({"../../node_modules/aria-query/lib/etc/roles/literal/regionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:[`set`],name:`aria-label`}],name:`section`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`aria-labelledby`}],name:`section`},module:`HTML`},{concept:{name:`Device Independence Glossart perceivable unit`}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),st=x({"../../node_modules/aria-query/lib/etc/roles/literal/rowRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-colindex":null,"aria-expanded":null,"aria-level":null,"aria-posinset":null,"aria-rowindex":null,"aria-selected":null,"aria-setsize":null},relatedConcepts:[{concept:{name:`tr`},module:`HTML`}],requireContextRole:[`grid`,`rowgroup`,`table`,`treegrid`],requiredContextRole:[`grid`,`rowgroup`,`table`,`treegrid`],requiredOwnedElements:[[`cell`],[`columnheader`],[`gridcell`],[`rowheader`]],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`group`],[`roletype`,`widget`]]}}}),ct=x({"../../node_modules/aria-query/lib/etc/roles/literal/rowgroupRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`tbody`},module:`HTML`},{concept:{name:`tfoot`},module:`HTML`},{concept:{name:`thead`},module:`HTML`}],requireContextRole:[`grid`,`table`,`treegrid`],requiredContextRole:[`grid`,`table`,`treegrid`],requiredOwnedElements:[[`row`]],requiredProps:{},superClass:[[`roletype`,`structure`]]}}}),H=x({"../../node_modules/aria-query/lib/etc/roles/literal/rowheaderRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{attributes:[{name:`scope`,value:`row`}],name:`th`},module:`HTML`},{concept:{attributes:[{name:`scope`,value:`rowgroup`}],name:`th`},module:`HTML`}],requireContextRole:[`row`,`rowgroup`],requiredContextRole:[`row`,`rowgroup`],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`cell`],[`roletype`,`structure`,`section`,`cell`,`gridcell`],[`roletype`,`widget`,`gridcell`],[`roletype`,`structure`,`sectionhead`]]}}}),lt=x({"../../node_modules/aria-query/lib/etc/roles/literal/scrollbarRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-valuetext":null,"aria-orientation":`vertical`,"aria-valuemax":`100`,"aria-valuemin":`0`},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-valuenow":null},superClass:[[`roletype`,`structure`,`range`],[`roletype`,`widget`]]}}}),ut=x({"../../node_modules/aria-query/lib/etc/roles/literal/searchRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),dt=x({"../../node_modules/aria-query/lib/etc/roles/literal/searchboxRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:[`undefined`],name:`list`},{name:`type`,value:`search`}],constraints:[`the list attribute is not set`],name:`input`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`input`,`textbox`]]}}}),ft=x({"../../node_modules/aria-query/lib/etc/roles/literal/separatorRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-orientation":`horizontal`,"aria-valuemax":`100`,"aria-valuemin":`0`,"aria-valuenow":null,"aria-valuetext":null},relatedConcepts:[{concept:{name:`hr`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`]]}}}),pt=x({"../../node_modules/aria-query/lib/etc/roles/literal/sliderRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-valuetext":null,"aria-orientation":`horizontal`,"aria-valuemax":`100`,"aria-valuemin":`0`},relatedConcepts:[{concept:{attributes:[{name:`type`,value:`range`}],name:`input`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[[`roletype`,`widget`,`input`],[`roletype`,`structure`,`range`]]}}}),mt=x({"../../node_modules/aria-query/lib/etc/roles/literal/spinbuttonRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-valuetext":null,"aria-valuenow":`0`},relatedConcepts:[{concept:{attributes:[{name:`type`,value:`number`}],name:`input`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`composite`],[`roletype`,`widget`,`input`],[`roletype`,`structure`,`range`]]}}}),ht=x({"../../node_modules/aria-query/lib/etc/roles/literal/statusRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-atomic":`true`,"aria-live":`polite`},relatedConcepts:[{concept:{name:`output`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),gt=x({"../../node_modules/aria-query/lib/etc/roles/literal/strongRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{name:`strong`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),_t=x({"../../node_modules/aria-query/lib/etc/roles/literal/subscriptRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{name:`sub`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),vt=x({"../../node_modules/aria-query/lib/etc/roles/literal/superscriptRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{name:`sup`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),yt=x({"../../node_modules/aria-query/lib/etc/roles/literal/switchRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`button`},module:`ARIA`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[[`roletype`,`widget`,`input`,`checkbox`]]}}}),bt=x({"../../node_modules/aria-query/lib/etc/roles/literal/tabRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":`false`},relatedConcepts:[],requireContextRole:[`tablist`],requiredContextRole:[`tablist`],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`sectionhead`],[`roletype`,`widget`]]}}}),xt=x({"../../node_modules/aria-query/lib/etc/roles/literal/tableRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-colcount":null,"aria-rowcount":null},relatedConcepts:[{concept:{name:`table`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`row`],[`row`,`rowgroup`]],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),St=x({"../../node_modules/aria-query/lib/etc/roles/literal/tablistRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-level":null,"aria-multiselectable":null,"aria-orientation":`horizontal`},relatedConcepts:[{module:`DAISY`,concept:{name:`guide`}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`tab`]],requiredProps:{},superClass:[[`roletype`,`widget`,`composite`]]}}}),Ct=x({"../../node_modules/aria-query/lib/etc/roles/literal/tabpanelRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),wt=x({"../../node_modules/aria-query/lib/etc/roles/literal/termRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`dfn`},module:`HTML`},{concept:{name:`dt`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Tt=x({"../../node_modules/aria-query/lib/etc/roles/literal/textboxRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-multiline":null,"aria-placeholder":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{constraints:[`undefined`],name:`type`},{constraints:[`undefined`],name:`list`}],constraints:[`the list attribute is not set`],name:`input`},module:`HTML`},{concept:{attributes:[{constraints:[`undefined`],name:`list`},{name:`type`,value:`email`}],constraints:[`the list attribute is not set`],name:`input`},module:`HTML`},{concept:{attributes:[{constraints:[`undefined`],name:`list`},{name:`type`,value:`tel`}],constraints:[`the list attribute is not set`],name:`input`},module:`HTML`},{concept:{attributes:[{constraints:[`undefined`],name:`list`},{name:`type`,value:`text`}],constraints:[`the list attribute is not set`],name:`input`},module:`HTML`},{concept:{attributes:[{constraints:[`undefined`],name:`list`},{name:`type`,value:`url`}],constraints:[`the list attribute is not set`],name:`input`},module:`HTML`},{concept:{name:`input`},module:`XForms`},{concept:{name:`textarea`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`input`]]}}}),Et=x({"../../node_modules/aria-query/lib/etc/roles/literal/timeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`time`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Dt=x({"../../node_modules/aria-query/lib/etc/roles/literal/timerRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`status`]]}}}),Ot=x({"../../node_modules/aria-query/lib/etc/roles/literal/toolbarRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-orientation":`horizontal`},relatedConcepts:[{concept:{name:`menubar`},module:`ARIA`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`group`]]}}}),kt=x({"../../node_modules/aria-query/lib/etc/roles/literal/tooltipRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),At=x({"../../node_modules/aria-query/lib/etc/roles/literal/treeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-multiselectable":null,"aria-required":null,"aria-orientation":`vertical`},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`treeitem`,`group`],[`treeitem`]],requiredProps:{},superClass:[[`roletype`,`widget`,`composite`,`select`],[`roletype`,`structure`,`section`,`group`,`select`]]}}}),jt=x({"../../node_modules/aria-query/lib/etc/roles/literal/treegridRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`row`],[`row`,`rowgroup`]],requiredProps:{},superClass:[[`roletype`,`widget`,`composite`,`grid`],[`roletype`,`structure`,`section`,`table`,`grid`],[`roletype`,`widget`,`composite`,`select`,`tree`],[`roletype`,`structure`,`section`,`group`,`select`,`tree`]]}}}),Mt=x({"../../node_modules/aria-query/lib/etc/roles/literal/treeitemRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[],requireContextRole:[`group`,`tree`],requiredContextRole:[`group`,`tree`],requiredOwnedElements:[],requiredProps:{"aria-selected":null},superClass:[[`roletype`,`structure`,`section`,`listitem`],[`roletype`,`widget`,`input`,`option`]]}}}),Nt=x({"../../node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=U(ue()),n=U(de()),r=U(fe()),i=U(pe()),a=U(me()),o=U(he()),s=U(ge()),c=U(_e()),l=U(ve()),u=U(ye()),d=U(be()),f=U(xe()),p=U(L()),m=U(Se()),h=U(Ce()),g=U(we()),_=U(R()),v=U(Te()),y=U(Ee()),b=U(De()),x=U(z()),S=U(Oe()),C=U(ke()),w=U(Ae()),T=U(je()),E=U(Me()),D=U(Ne()),O=U(Pe()),k=U(B()),A=U(Fe()),j=U(Ie()),M=U(Le()),N=U(Re()),P=U(ze()),ee=U(Be()),te=U(Ve()),ne=U(He()),F=U(Ue()),re=U(We()),ie=U(Ge()),ae=U(Ke()),I=U(qe()),oe=U(V()),se=U(Je()),ce=U(Ye()),le=U(Xe()),Nt=U(Ze()),Pt=U(Qe()),Ft=U($e()),It=U(et()),Lt=U(tt()),Rt=U(nt()),zt=U(rt()),Bt=U(it()),Vt=U(at()),Ht=U(ot()),Ut=U(st()),Wt=U(ct()),Gt=U(H()),Kt=U(lt()),qt=U(ut()),Jt=U(dt()),Yt=U(ft()),Xt=U(pt()),Zt=U(mt()),Qt=U(ht()),$t=U(gt()),en=U(_t()),tn=U(vt()),nn=U(yt()),rn=U(bt()),an=U(xt()),on=U(St()),sn=U(Ct()),cn=U(wt()),ln=U(Tt()),un=U(Et()),dn=U(Dt()),fn=U(Ot()),pn=U(kt()),mn=U(At()),hn=U(jt()),gn=U(Mt());function U(e){return e&&e.__esModule?e:{default:e}}e.default=[[`alert`,t.default],[`alertdialog`,n.default],[`application`,r.default],[`article`,i.default],[`banner`,a.default],[`blockquote`,o.default],[`button`,s.default],[`caption`,c.default],[`cell`,l.default],[`checkbox`,u.default],[`code`,d.default],[`columnheader`,f.default],[`combobox`,p.default],[`complementary`,m.default],[`contentinfo`,h.default],[`definition`,g.default],[`deletion`,_.default],[`dialog`,v.default],[`directory`,y.default],[`document`,b.default],[`emphasis`,x.default],[`feed`,S.default],[`figure`,C.default],[`form`,w.default],[`generic`,T.default],[`grid`,E.default],[`gridcell`,D.default],[`group`,O.default],[`heading`,k.default],[`img`,A.default],[`insertion`,j.default],[`link`,M.default],[`list`,N.default],[`listbox`,P.default],[`listitem`,ee.default],[`log`,te.default],[`main`,ne.default],[`mark`,F.default],[`marquee`,re.default],[`math`,ie.default],[`menu`,ae.default],[`menubar`,I.default],[`menuitem`,oe.default],[`menuitemcheckbox`,se.default],[`menuitemradio`,ce.default],[`meter`,le.default],[`navigation`,Nt.default],[`none`,Pt.default],[`note`,Ft.default],[`option`,It.default],[`paragraph`,Lt.default],[`presentation`,Rt.default],[`progressbar`,zt.default],[`radio`,Bt.default],[`radiogroup`,Vt.default],[`region`,Ht.default],[`row`,Ut.default],[`rowgroup`,Wt.default],[`rowheader`,Gt.default],[`scrollbar`,Kt.default],[`search`,qt.default],[`searchbox`,Jt.default],[`separator`,Yt.default],[`slider`,Xt.default],[`spinbutton`,Zt.default],[`status`,Qt.default],[`strong`,$t.default],[`subscript`,en.default],[`superscript`,tn.default],[`switch`,nn.default],[`tab`,rn.default],[`table`,an.default],[`tablist`,on.default],[`tabpanel`,sn.default],[`term`,cn.default],[`textbox`,ln.default],[`time`,un.default],[`timer`,dn.default],[`toolbar`,fn.default],[`tooltip`,pn.default],[`tree`,mn.default],[`treegrid`,hn.default],[`treeitem`,gn.default]]}}),Pt=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docAbstractRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`abstract [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Ft=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`acknowledgments [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),It=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docAfterwordRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`afterword [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Lt=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docAppendixRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`appendix [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Rt=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docBacklinkRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`referrer [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`command`,`link`]]}}}),zt=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docBiblioentryRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`EPUB biblioentry [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[`doc-bibliography`],requiredContextRole:[`doc-bibliography`],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`listitem`]]}}}),Bt=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docBibliographyRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`bibliography [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`doc-biblioentry`]],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Vt=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docBibliorefRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`biblioref [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`command`,`link`]]}}}),Ht=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`chapter [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Ut=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docColophonRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`colophon [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Wt=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docConclusionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`conclusion [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Gt=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docCoverRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`cover [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`img`]]}}}),Kt=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docCreditRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`credit [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),qt=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docCreditsRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`credits [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Jt=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`dedication [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Yt=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docEndnoteRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`rearnote [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[`doc-endnotes`],requiredContextRole:[`doc-endnotes`],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`listitem`]]}}}),Xt=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docEndnotesRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`rearnotes [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`doc-endnote`]],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Zt=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docEpigraphRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`epigraph [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Qt=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docEpilogueRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`epilogue [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),$t=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docErrataRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`errata [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),en=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docExampleRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),tn=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docFootnoteRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`footnote [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),nn=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docForewordRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`foreword [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),rn=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docGlossaryRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`glossary [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`definition`],[`term`]],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),an=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docGlossrefRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`glossref [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`command`,`link`]]}}}),on=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docIndexRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`index [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`,`navigation`]]}}}),sn=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docIntroductionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`introduction [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),cn=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docNoterefRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`noteref [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`command`,`link`]]}}}),ln=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docNoticeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`notice [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`note`]]}}}),un=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagebreakRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`pagebreak [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`separator`]]}}}),dn=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagefooterRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),fn=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docPageheaderRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),pn=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagelistRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`page-list [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`,`navigation`]]}}}),mn=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docPartRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`part [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),hn=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docPrefaceRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`preface [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),gn=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docPrologueRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`prologue [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),U=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docPullquoteRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`pullquote [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`none`]]}}}),_n=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docQnaRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`qna [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),vn=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docSubtitleRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`subtitle [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`sectionhead`]]}}}),yn=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docTipRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`help [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`note`]]}}}),bn=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docTocRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`toc [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`,`navigation`]]}}}),xn=x({"../../node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=I(Pt()),n=I(Ft()),r=I(It()),i=I(Lt()),a=I(Rt()),o=I(zt()),s=I(Bt()),c=I(Vt()),l=I(Ht()),u=I(Ut()),d=I(Wt()),f=I(Gt()),p=I(Kt()),m=I(qt()),h=I(Jt()),g=I(Yt()),_=I(Xt()),v=I(Zt()),y=I(Qt()),b=I($t()),x=I(en()),S=I(tn()),C=I(nn()),w=I(rn()),T=I(an()),E=I(on()),D=I(sn()),O=I(cn()),k=I(ln()),A=I(un()),j=I(dn()),M=I(fn()),N=I(pn()),P=I(mn()),ee=I(hn()),te=I(gn()),ne=I(U()),F=I(_n()),re=I(vn()),ie=I(yn()),ae=I(bn());function I(e){return e&&e.__esModule?e:{default:e}}e.default=[[`doc-abstract`,t.default],[`doc-acknowledgments`,n.default],[`doc-afterword`,r.default],[`doc-appendix`,i.default],[`doc-backlink`,a.default],[`doc-biblioentry`,o.default],[`doc-bibliography`,s.default],[`doc-biblioref`,c.default],[`doc-chapter`,l.default],[`doc-colophon`,u.default],[`doc-conclusion`,d.default],[`doc-cover`,f.default],[`doc-credit`,p.default],[`doc-credits`,m.default],[`doc-dedication`,h.default],[`doc-endnote`,g.default],[`doc-endnotes`,_.default],[`doc-epigraph`,v.default],[`doc-epilogue`,y.default],[`doc-errata`,b.default],[`doc-example`,x.default],[`doc-footnote`,S.default],[`doc-foreword`,C.default],[`doc-glossary`,w.default],[`doc-glossref`,T.default],[`doc-index`,E.default],[`doc-introduction`,D.default],[`doc-noteref`,O.default],[`doc-notice`,k.default],[`doc-pagebreak`,A.default],[`doc-pagefooter`,j.default],[`doc-pageheader`,M.default],[`doc-pagelist`,N.default],[`doc-part`,P.default],[`doc-preface`,ee.default],[`doc-prologue`,te.default],[`doc-pullquote`,ne.default],[`doc-qna`,F.default],[`doc-subtitle`,re.default],[`doc-tip`,ie.default],[`doc-toc`,ae.default]]}}),Sn=x({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsDocumentRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:`GRAPHICS`,concept:{name:`graphics-object`}},{module:`ARIA`,concept:{name:`img`}},{module:`ARIA`,concept:{name:`article`}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`document`]]}}}),Cn=x({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsObjectRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:`GRAPHICS`,concept:{name:`graphics-document`}},{module:`ARIA`,concept:{name:`group`}},{module:`ARIA`,concept:{name:`img`}},{module:`GRAPHICS`,concept:{name:`graphics-symbol`}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`group`]]}}}),wn=x({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsSymbolRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`img`]]}}}),Tn=x({"../../node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=i(Sn()),n=i(Cn()),r=i(wn());function i(e){return e&&e.__esModule?e:{default:e}}e.default=[[`graphics-document`,t.default],[`graphics-object`,n.default],[`graphics-symbol`,r.default]]}}),En=x({"../../node_modules/aria-query/lib/rolesMap.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=o(le()),n=o(Nt()),r=o(xn()),i=o(Tn()),a=o(j());function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
5
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function c(e,t){return p(e)||f(e,t)||u(e,t)||l()}function l(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u(e,t){if(e){if(typeof e==`string`)return d(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function p(e){if(Array.isArray(e))return e}var m=[].concat(t.default,n.default,r.default,i.default);m.forEach(function(e){var t=c(e,2)[1],n=s(t.superClass),r;try{for(n.s();!(r=n.n()).done;){var i=r.value,a=s(i),o;try{var l=function(){var e=o.value,n=m.filter(function(t){return c(t,1)[0]===e})[0];if(n)for(var r=n[1],i=0,a=Object.keys(r.props);i<a.length;i++){var s=a[i];Object.prototype.hasOwnProperty.call(t.props,s)||(t.props[s]=r.props[s])}};for(a.s();!(o=a.n()).done;)l()}catch(e){a.e(e)}finally{a.f()}}}catch(e){n.e(e)}finally{n.f()}});var h={entries:function(){return m},forEach:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=s(m),r;try{for(n.s();!(r=n.n()).done;){var i=c(r.value,2),a=i[0],o=i[1];e.call(t,o,a,m)}}catch(e){n.e(e)}finally{n.f()}},get:function(e){var t=m.filter(function(t){return t[0]===e})[0];return t&&t[1]},has:function(e){return!!h.get(e)},keys:function(){return m.map(function(e){return c(e,1)[0]})},values:function(){return m.map(function(e){return c(e,2)[1]})}};e.default=(0,a.default)(h,h.entries())}}),Dn=x({"../../node_modules/aria-query/lib/elementRoleMap.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=r(j()),n=r(En());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){return l(e)||c(e,t)||o(e,t)||a()}function a(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
7
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(e,t){if(e){if(typeof e==`string`)return s(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function l(e){if(Array.isArray(e))return e}var u=[],d=n.default.keys();for(_=0;_<d.length;_++)if(f=d[_],p=n.default.get(f),p)for(m=[].concat(p.baseConcepts,p.relatedConcepts),h=function(){var e=m[g];if(e.module===`HTML`){var t=e.concept;if(t){for(var n=u.filter(function(e){return y(e[0],t)})[0],r=n?n[1]:[],i=!0,a=0;a<r.length;a++)if(r[a]===f){i=!1;break}i&&r.push(f),n||u.push([t,r])}}},g=0;g<m.length;g++)h();var f,p,m,h,g,_,v={entries:function(){return u},forEach:function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=0,r=u;n<r.length;n++){var a=i(r[n],2),o=a[0],s=a[1];e.call(t,s,o,u)}},get:function(e){var t=u.filter(function(t){return e.name===t[0].name&&x(e.attributes,t[0].attributes)})[0];return t&&t[1]},has:function(e){return!!v.get(e)},keys:function(){return u.map(function(e){return i(e,1)[0]})},values:function(){return u.map(function(e){return i(e,2)[1]})}};function y(e,t){return e.name===t.name&&b(e.constraints,t.constraints)&&x(e.attributes,t.attributes)}function b(e,t){if(e===void 0&&t!==void 0||e!==void 0&&t===void 0)return!1;if(e!==void 0&&t!==void 0){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1}return!0}function x(e,t){if(e===void 0&&t!==void 0||e!==void 0&&t===void 0)return!1;if(e!==void 0&&t!==void 0){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){if(e[n].name!==t[n].name||e[n].value!==t[n].value||e[n].constraints===void 0&&t[n].constraints!==void 0||e[n].constraints!==void 0&&t[n].constraints===void 0)return!1;if(e[n].constraints!==void 0&&t[n].constraints!==void 0){if(e[n].constraints.length!==t[n].constraints.length)return!1;for(var r=0;r<e[n].constraints.length;r++)if(e[n].constraints[r]!==t[n].constraints[r])return!1}}}return!0}e.default=(0,t.default)(v,v.entries())}}),On=x({"../../node_modules/aria-query/lib/roleElementMap.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=r(j()),n=r(En());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){return l(e)||c(e,t)||o(e,t)||a()}function a(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
8
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(e,t){if(e){if(typeof e==`string`)return s(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function l(e){if(Array.isArray(e))return e}var u=[],d=n.default.keys();for(y=0;y<d.length;y++)if(f=d[y],p=n.default.get(f),m=[],p){for(h=[].concat(p.baseConcepts,p.relatedConcepts),v=0;v<h.length;v++)g=h[v],g.module===`HTML`&&(_=g.concept,_!=null&&m.push(_));m.length>0&&u.push([f,m])}var f,p,m,h,g,_,v,y,b={entries:function(){return u},forEach:function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=0,r=u;n<r.length;n++){var a=i(r[n],2),o=a[0],s=a[1];e.call(t,s,o,u)}},get:function(e){var t=u.filter(function(t){return t[0]===e})[0];return t&&t[1]},has:function(e){return!!b.get(e)},keys:function(){return u.map(function(e){return i(e,1)[0]})},values:function(){return u.map(function(e){return i(e,2)[1]})}};e.default=(0,t.default)(b,b.entries())}}),kn=x({"../../node_modules/aria-query/lib/index.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.roles=e.roleElements=e.elementRoles=e.dom=e.aria=void 0;var t=o(M()),n=o(N()),r=o(En()),i=o(Dn()),a=o(On());function o(e){return e&&e.__esModule?e:{default:e}}e.aria=t.default,e.dom=n.default,e.roles=r.default,e.elementRoles=i.default,e.roleElements=a.default}}),An=x({"../../node_modules/color-name/index.js"(e,t){t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}}),jn=x({"../../node_modules/color-convert/conversions.js"(e,t){var n=An(),r={};for(let e of Object.keys(n))r[n[e]]=e;var i={rgb:{channels:3,labels:`rgb`},hsl:{channels:3,labels:`hsl`},hsv:{channels:3,labels:`hsv`},hwb:{channels:3,labels:`hwb`},cmyk:{channels:4,labels:`cmyk`},xyz:{channels:3,labels:`xyz`},lab:{channels:3,labels:`lab`},lch:{channels:3,labels:`lch`},hex:{channels:1,labels:[`hex`]},keyword:{channels:1,labels:[`keyword`]},ansi16:{channels:1,labels:[`ansi16`]},ansi256:{channels:1,labels:[`ansi256`]},hcg:{channels:3,labels:[`h`,`c`,`g`]},apple:{channels:3,labels:[`r16`,`g16`,`b16`]},gray:{channels:1,labels:[`gray`]}};t.exports=i;for(let e of Object.keys(i)){if(!(`channels`in i[e]))throw Error(`missing channels property: `+e);if(!(`labels`in i[e]))throw Error(`missing channel labels property: `+e);if(i[e].labels.length!==i[e].channels)throw Error(`channel and label counts mismatch: `+e);let{channels:t,labels:n}=i[e];delete i[e].channels,delete i[e].labels,Object.defineProperty(i[e],`channels`,{value:t}),Object.defineProperty(i[e],`labels`,{value:n})}i.rgb.hsl=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s,c;a===i?s=0:t===a?s=(n-r)/o:n===a?s=2+(r-t)/o:r===a&&(s=4+(t-n)/o),s=Math.min(s*60,360),s<0&&(s+=360);let l=(i+a)/2;return c=a===i?0:l<=.5?o/(a+i):o/(2-a-i),[s,c*100,l*100]},i.rgb.hsv=function(e){let t,n,r,i,a,o=e[0]/255,s=e[1]/255,c=e[2]/255,l=Math.max(o,s,c),u=l-Math.min(o,s,c),d=function(e){return(l-e)/6/u+1/2};return u===0?(i=0,a=0):(a=u/l,t=d(o),n=d(s),r=d(c),o===l?i=r-n:s===l?i=1/3+t-r:c===l&&(i=2/3+n-t),i<0?i+=1:i>1&&--i),[i*360,a*100,l*100]},i.rgb.hwb=function(e){let t=e[0],n=e[1],r=e[2],a=i.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[a,o*100,r*100]},i.rgb.cmyk=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r),a=(1-t-i)/(1-i)||0,o=(1-n-i)/(1-i)||0,s=(1-r-i)/(1-i)||0;return[a*100,o*100,s*100,i*100]};function a(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}i.rgb.keyword=function(e){let t=r[e];if(t)return t;let i=1/0,o;for(let t of Object.keys(n)){let r=n[t],s=a(e,r);s<i&&(i=s,o=t)}return o},i.keyword.rgb=function(e){return n[e]},i.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;let i=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,o=t*.0193+n*.1192+r*.9505;return[i*100,a*100,o*100]},i.rgb.lab=function(e){let t=i.rgb.xyz(e),n=t[0],r=t[1],a=t[2];return n/=95.047,r/=100,a/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,[116*r-16,500*(n-r),200*(r-a)]},i.hsl.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100,i,a,o;if(n===0)return o=r*255,[o,o,o];i=r<.5?r*(1+n):r+n-r*n;let s=2*r-i,c=[0,0,0];for(let e=0;e<3;e++)a=t+1/3*-(e-1),a<0&&a++,a>1&&a--,o=6*a<1?s+(i-s)*6*a:2*a<1?i:3*a<2?s+(i-s)*(2/3-a)*6:s,c[e]=o*255;return c},i.hsl.hsv=function(e){let t=e[0],n=e[1]/100,r=e[2]/100,i=n,a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=a<=1?a:2-a;let o=(r+n)/2;return[t,(r===0?2*i/(a+i):2*n/(r+n))*100,o*100]},i.hsv.rgb=function(e){let t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,a=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*a),c=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,c,o];case 1:return[s,r,o];case 2:return[o,r,c];case 3:return[o,s,r];case 4:return[c,o,r];case 5:return[r,o,s]}},i.hsv.hsl=function(e){let t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01),a,o;o=(2-n)*r;let s=(2-n)*i;return a=n*i,a/=s<=1?s:2-s,a||=0,o/=2,[t,a*100,o*100]},i.hwb.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100,i=n+r,a;i>1&&(n/=i,r/=i);let o=Math.floor(6*t),s=1-r;a=6*t-o,o&1&&(a=1-a);let c=n+a*(s-n),l,u,d;switch(o){default:case 6:case 0:l=s,u=c,d=n;break;case 1:l=c,u=s,d=n;break;case 2:l=n,u=s,d=c;break;case 3:l=n,u=c,d=s;break;case 4:l=c,u=n,d=s;break;case 5:l=s,u=n,d=c;break}return[l*255,u*255,d*255]},i.cmyk.rgb=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,n*(1-i)+i),s=1-Math.min(1,r*(1-i)+i);return[a*255,o*255,s*255]},i.xyz.rgb=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,i,a,o;return i=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,o=t*.0557+n*-.204+r*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[i*255,a*255,o*255]},i.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},i.lab.xyz=function(e){let t=e[0],n=e[1],r=e[2],i,a,o;a=(t+16)/116,i=n/500+a,o=a-r/200;let s=a**3,c=i**3,l=o**3;return a=s>.008856?s:(a-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,i*=95.047,a*=100,o*=108.883,[i,a,o]},i.lab.lch=function(e){let t=e[0],n=e[1],r=e[2],i;return i=Math.atan2(r,n)*360/2/Math.PI,i<0&&(i+=360),[t,Math.sqrt(n*n+r*r),i]},i.lch.lab=function(e){let t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},i.rgb.ansi16=function(e,t=null){let[n,r,a]=e,o=t===null?i.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let s=30+(Math.round(a/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return o===2&&(s+=60),s},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){let t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},i.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let n=(~~(e>50)+1)*.5;return[(t&1)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},i.ansi256.rgb=function(e){if(e>=232){let t=(e-232)*10+8;return[t,t,t]}e-=16;let t;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},i.rgb.hex=function(e){let t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return`000000`.substring(t.length)+t},i.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split(``).map(e=>e+e).join(``));let r=parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},i.rgb.hcg=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),o=i-a,s,c;return s=o<1?a/(1-o):0,c=o<=0?0:i===t?(n-r)/o%6:i===n?2+(r-t)/o:4+(t-n)/o,c/=6,c%=1,[c*360,o*100,s*100]},i.hsl.hcg=function(e){let t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n),i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],r*100,i*100]},i.hsv.hcg=function(e){let t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]},i.hcg.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];let i=[0,0,0],a=t%1*6,o=a%1,s=1-o,c=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return c=(1-n)*r,[(n*i[0]+c)*255,(n*i[1]+c)*255,(n*i[2]+c)*255]},i.hcg.hsv=function(e){let t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],r*100,n*100]},i.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],r*100,n*100]},i.hcg.hwb=function(e){let t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],(n-t)*100,(1-n)*100]},i.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=function(e){return[0,0,e[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return`000000`.substring(n.length)+n},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}}),Mn=x({"../../node_modules/color-convert/route.js"(e,t){var n=jn();function r(){let e={},t=Object.keys(n);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function i(e){let t=r(),i=[e];for(t[e].distance=0;i.length;){let e=i.pop(),r=Object.keys(n[e]);for(let n=r.length,a=0;a<n;a++){let n=r[a],o=t[n];o.distance===-1&&(o.distance=t[e].distance+1,o.parent=e,i.unshift(n))}}return t}function a(e,t){return function(n){return t(e(n))}}function o(e,t){let r=[t[e].parent,e],i=n[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)r.unshift(t[o].parent),i=a(n[t[o].parent][o],i),o=t[o].parent;return i.conversion=r,i}t.exports=function(e){let t=i(e),n={},r=Object.keys(t);for(let e=r.length,i=0;i<e;i++){let e=r[i];t[e].parent!==null&&(n[e]=o(e,t))}return n}}}),Nn=x({"../../node_modules/color-convert/index.js"(e,t){var n=jn(),r=Mn(),i={},a=Object.keys(n);function o(e){let t=function(...t){let n=t[0];return n==null?n:(n.length>1&&(t=n),e(t))};return`conversion`in e&&(t.conversion=e.conversion),t}function s(e){let t=function(...t){let n=t[0];if(n==null)return n;n.length>1&&(t=n);let r=e(t);if(typeof r==`object`)for(let e=r.length,t=0;t<e;t++)r[t]=Math.round(r[t]);return r};return`conversion`in e&&(t.conversion=e.conversion),t}a.forEach(e=>{i[e]={},Object.defineProperty(i[e],`channels`,{value:n[e].channels}),Object.defineProperty(i[e],`labels`,{value:n[e].labels});let t=r(e);Object.keys(t).forEach(n=>{let r=t[n];i[e][n]=s(r),i[e][n].raw=o(r)})}),t.exports=i}}),Pn=x({"../../node_modules/ansi-styles/index.js"(e,t){var n=(e,t)=>(...n)=>`\x1B[${e(...n)+t}m`,r=(e,t)=>(...n)=>{let r=e(...n);return`\x1B[${38+t};5;${r}m`},i=(e,t)=>(...n)=>{let r=e(...n);return`\x1B[${38+t};2;${r[0]};${r[1]};${r[2]}m`},a=e=>e,o=(e,t,n)=>[e,t,n],s=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{let r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})},c,l=(e,t,n,r)=>{c===void 0&&(c=Nn());let i=r?10:0,a={};for(let[r,o]of Object.entries(c)){let s=r===`ansi16`?`ansi`:r;r===t?a[s]=e(n,i):typeof o==`object`&&(a[s]=e(o[t],i))}return a};function u(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[n,r]of Object.entries(t)){for(let[n,i]of Object.entries(r))t[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=t[n],e.set(i[0],i[1]);Object.defineProperty(t,n,{value:r,enumerable:!1})}return Object.defineProperty(t,`codes`,{value:e,enumerable:!1}),t.color.close=`\x1B[39m`,t.bgColor.close=`\x1B[49m`,s(t.color,`ansi`,()=>l(n,`ansi16`,a,!1)),s(t.color,`ansi256`,()=>l(r,`ansi256`,a,!1)),s(t.color,`ansi16m`,()=>l(i,`rgb`,o,!1)),s(t.bgColor,`ansi`,()=>l(n,`ansi16`,a,!0)),s(t.bgColor,`ansi256`,()=>l(r,`ansi256`,a,!0)),s(t.bgColor,`ansi16m`,()=>l(i,`rgb`,o,!0)),t}Object.defineProperty(t,`exports`,{enumerable:!0,get:u})}}),Fn=x({"../../node_modules/supports-color/browser.js"(e,t){t.exports={stdout:!1,stderr:!1}}}),In=x({"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/util.js"(e,t){t.exports={stringReplaceAll:(e,t,n)=>{let r=e.indexOf(t);if(r===-1)return e;let i=t.length,a=0,o=``;do o+=e.substr(a,r-a)+t+n,a=r+i,r=e.indexOf(t,a);while(r!==-1);return o+=e.substr(a),o},stringEncaseCRLFWithFirstIndex:(e,t,n,r)=>{let i=0,a=``;do{let o=e[r-1]===`\r`;a+=e.substr(i,(o?r-1:r)-i)+t+(o?`\r
|
|
9
|
+
`:`
|
|
10
|
+
`)+n,i=r+1,r=e.indexOf(`
|
|
11
|
+
`,i)}while(r!==-1);return a+=e.substr(i),a}}}}),Ln=x({"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/templates.js"(e,t){var n=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,a=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,o=new Map([[`n`,`
|
|
12
|
+
`],[`r`,`\r`],[`t`,` `],[`b`,`\b`],[`f`,`\f`],[`v`,`\v`],[`0`,`\0`],[`\\`,`\\`],[`e`,`\x1B`],[`a`,`\x07`]]);function s(e){let t=e[0]===`u`,n=e[1]===`{`;return t&&!n&&e.length===5||e[0]===`x`&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):o.get(e)||e}function c(e,t){let n=[],r=t.trim().split(/\s*,\s*/g),o;for(let t of r){let r=Number(t);if(!Number.isNaN(r))n.push(r);else if(o=t.match(i))n.push(o[2].replace(a,(e,t,n)=>t?s(t):n));else throw Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}return n}function l(e){r.lastIndex=0;let t=[],n;for(;(n=r.exec(e))!==null;){let e=n[1];if(n[2]){let r=c(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function u(e,t){let n={};for(let e of t)for(let t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(let[e,t]of Object.entries(n))if(Array.isArray(t)){if(!(e in r))throw Error(`Unknown Chalk style: ${e}`);r=t.length>0?r[e](...t):r[e]}return r}t.exports=(e,t)=>{let r=[],i=[],a=[];if(t.replace(n,(t,n,o,c,d,f)=>{if(n)a.push(s(n));else if(c){let t=a.join(``);a=[],i.push(r.length===0?t:u(e,r)(t)),r.push({inverse:o,styles:l(c)})}else if(d){if(r.length===0)throw Error(`Found extraneous } in Chalk template literal`);i.push(u(e,r)(a.join(``))),a=[],r.pop()}else a.push(f)}),i.push(a.join(``)),r.length>0){let e=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?``:`s`} (\`}\`)`;throw Error(e)}return i.join(``)}}}),Rn=x({"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/index.js"(e,t){var n=Pn(),{stdout:r,stderr:i}=Fn(),{stringReplaceAll:a,stringEncaseCRLFWithFirstIndex:o}=In(),s=[`ansi`,`ansi`,`ansi256`,`ansi16m`],c=Object.create(null),l=(e,t={})=>{if(t.level>3||t.level<0)throw Error("The `level` option should be an integer from 0 to 3");let n=r?r.level:0;e.level=t.level===void 0?n:t.level},u=class{constructor(e){return d(e)}},d=e=>{let t={};return l(t,e),t.template=(...e)=>y(t.template,...e),Object.setPrototypeOf(t,f.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=u,t.template};function f(e){return d(e)}for(let[e,t]of Object.entries(n))c[e]={get(){let n=g(this,h(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:n}),n}};c.visible={get(){let e=g(this,this._styler,!0);return Object.defineProperty(this,`visible`,{value:e}),e}};var p=[`rgb`,`hex`,`keyword`,`hsl`,`hsv`,`hwb`,`ansi`,`ansi256`];for(let e of p)c[e]={get(){let{level:t}=this;return function(...r){let i=h(n.color[s[t]][e](...r),n.color.close,this._styler);return g(this,i,this._isEmpty)}}};for(let e of p){let t=`bg`+e[0].toUpperCase()+e.slice(1);c[t]={get(){let{level:t}=this;return function(...r){let i=h(n.bgColor[s[t]][e](...r),n.bgColor.close,this._styler);return g(this,i,this._isEmpty)}}}}var m=Object.defineProperties(()=>{},{...c,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),h=(e,t,n)=>{let r,i;return n===void 0?(r=e,i=t):(r=n.openAll+e,i=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:i,parent:n}},g=(e,t,n)=>{let r=(...e)=>_(r,e.length===1?``+e[0]:e.join(` `));return r.__proto__=m,r._generator=e,r._styler=t,r._isEmpty=n,r},_=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?``:t;let n=e._styler;if(n===void 0)return t;let{openAll:r,closeAll:i}=n;if(t.indexOf(`\x1B`)!==-1)for(;n!==void 0;)t=a(t,n.close,n.open),n=n.parent;let s=t.indexOf(`
|
|
13
|
+
`);return s!==-1&&(t=o(t,i,r,s)),r+t+i},v,y=(e,...t)=>{let[n]=t;if(!Array.isArray(n))return t.join(` `);let r=t.slice(1),i=[n.raw[0]];for(let e=1;e<n.length;e++)i.push(String(r[e-1]).replace(/[{}\\]/g,`\\$&`),String(n.raw[e]));return v===void 0&&(v=Ln()),v(e,i.join(``))};Object.defineProperties(f.prototype,c);var b=f();b.supportsColor=r,b.stderr=f({level:i?i.level:0}),b.stderr.supportsColor=i,b.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:`None`,1:`Basic`,2:`Ansi256`,3:`TrueColor`},t.exports=b}}),zn=x({"../../node_modules/lodash/_listCacheClear.js"(e,t){function n(){this.__data__=[],this.size=0}t.exports=n}}),Bn=x({"../../node_modules/lodash/eq.js"(e,t){function n(e,t){return e===t||e!==e&&t!==t}t.exports=n}}),Vn=x({"../../node_modules/lodash/_assocIndexOf.js"(e,t){var n=Bn();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r}}),Hn=x({"../../node_modules/lodash/_listCacheDelete.js"(e,t){var n=Vn(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i}}),Un=x({"../../node_modules/lodash/_listCacheGet.js"(e,t){var n=Vn();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r}}),Wn=x({"../../node_modules/lodash/_listCacheHas.js"(e,t){var n=Vn();function r(e){return n(this.__data__,e)>-1}t.exports=r}}),Gn=x({"../../node_modules/lodash/_listCacheSet.js"(e,t){var n=Vn();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r}}),Kn=x({"../../node_modules/lodash/_ListCache.js"(e,t){var n=zn(),r=Hn(),i=Un(),a=Wn(),o=Gn();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s}}),qn=x({"../../node_modules/lodash/_stackClear.js"(e,t){var n=Kn();function r(){this.__data__=new n,this.size=0}t.exports=r}}),Jn=x({"../../node_modules/lodash/_stackDelete.js"(e,t){function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}t.exports=n}}),Yn=x({"../../node_modules/lodash/_stackGet.js"(e,t){function n(e){return this.__data__.get(e)}t.exports=n}}),Xn=x({"../../node_modules/lodash/_stackHas.js"(e,t){function n(e){return this.__data__.has(e)}t.exports=n}}),Zn=x({"../../node_modules/lodash/_freeGlobal.js"(e,t){t.exports=typeof global==`object`&&global&&global.Object===Object&&global}}),Qn=x({"../../node_modules/lodash/_root.js"(e,t){var n=Zn(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()}}),$n=x({"../../node_modules/lodash/_Symbol.js"(e,t){t.exports=Qn().Symbol}}),er=x({"../../node_modules/lodash/_getRawTag.js"(e,t){var n=$n(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s}}),tr=x({"../../node_modules/lodash/_objectToString.js"(e,t){var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r}}),nr=x({"../../node_modules/lodash/_baseGetTag.js"(e,t){var n=$n(),r=er(),i=tr(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c}}),rr=x({"../../node_modules/lodash/isObject.js"(e,t){function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n}}),ir=x({"../../node_modules/lodash/isFunction.js"(e,t){var n=nr(),r=rr(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c}}),ar=x({"../../node_modules/lodash/_coreJsData.js"(e,t){t.exports=Qn()[`__core-js_shared__`]}}),or=x({"../../node_modules/lodash/_isMasked.js"(e,t){var n=ar(),r=(function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``})();function i(e){return!!r&&r in e}t.exports=i}}),sr=x({"../../node_modules/lodash/_toSource.js"(e,t){var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r}}),cr=x({"../../node_modules/lodash/_baseIsNative.js"(e,t){var n=ir(),r=or(),i=rr(),a=sr(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p}}),lr=x({"../../node_modules/lodash/_getValue.js"(e,t){function n(e,t){return e?.[t]}t.exports=n}}),ur=x({"../../node_modules/lodash/_getNative.js"(e,t){var n=cr(),r=lr();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i}}),dr=x({"../../node_modules/lodash/_Map.js"(e,t){t.exports=ur()(Qn(),`Map`)}}),fr=x({"../../node_modules/lodash/_nativeCreate.js"(e,t){t.exports=ur()(Object,`create`)}}),pr=x({"../../node_modules/lodash/_hashClear.js"(e,t){var n=fr();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r}}),mr=x({"../../node_modules/lodash/_hashDelete.js"(e,t){function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}t.exports=n}}),hr=x({"../../node_modules/lodash/_hashGet.js"(e,t){var n=fr(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a}}),gr=x({"../../node_modules/lodash/_hashHas.js"(e,t){var n=fr(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i}}),_r=x({"../../node_modules/lodash/_hashSet.js"(e,t){var n=fr(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=n&&t===void 0?r:t,this}t.exports=i}}),vr=x({"../../node_modules/lodash/_Hash.js"(e,t){var n=pr(),r=mr(),i=hr(),a=gr(),o=_r();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s}}),yr=x({"../../node_modules/lodash/_mapCacheClear.js"(e,t){var n=vr(),r=Kn(),i=dr();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a}}),br=x({"../../node_modules/lodash/_isKeyable.js"(e,t){function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n}}),xr=x({"../../node_modules/lodash/_getMapData.js"(e,t){var n=br();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r}}),Sr=x({"../../node_modules/lodash/_mapCacheDelete.js"(e,t){var n=xr();function r(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}t.exports=r}}),Cr=x({"../../node_modules/lodash/_mapCacheGet.js"(e,t){var n=xr();function r(e){return n(this,e).get(e)}t.exports=r}}),wr=x({"../../node_modules/lodash/_mapCacheHas.js"(e,t){var n=xr();function r(e){return n(this,e).has(e)}t.exports=r}}),Tr=x({"../../node_modules/lodash/_mapCacheSet.js"(e,t){var n=xr();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r}}),Er=x({"../../node_modules/lodash/_MapCache.js"(e,t){var n=yr(),r=Sr(),i=Cr(),a=wr(),o=Tr();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s}}),Dr=x({"../../node_modules/lodash/_stackSet.js"(e,t){var n=Kn(),r=dr(),i=Er(),a=200;function o(e,t){var o=this.__data__;if(o instanceof n){var s=o.__data__;if(!r||s.length<a-1)return s.push([e,t]),this.size=++o.size,this;o=this.__data__=new i(s)}return o.set(e,t),this.size=o.size,this}t.exports=o}}),Or=x({"../../node_modules/lodash/_Stack.js"(e,t){var n=Kn(),r=qn(),i=Jn(),a=Yn(),o=Xn(),s=Dr();function c(e){this.size=(this.__data__=new n(e)).size}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c}}),kr=x({"../../node_modules/lodash/_setCacheAdd.js"(e,t){var n=`__lodash_hash_undefined__`;function r(e){return this.__data__.set(e,n),this}t.exports=r}}),Ar=x({"../../node_modules/lodash/_setCacheHas.js"(e,t){function n(e){return this.__data__.has(e)}t.exports=n}}),jr=x({"../../node_modules/lodash/_SetCache.js"(e,t){var n=Er(),r=kr(),i=Ar();function a(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=r,a.prototype.has=i,t.exports=a}}),Mr=x({"../../node_modules/lodash/_arraySome.js"(e,t){function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}t.exports=n}}),Nr=x({"../../node_modules/lodash/_cacheHas.js"(e,t){function n(e,t){return e.has(t)}t.exports=n}}),Pr=x({"../../node_modules/lodash/_equalArrays.js"(e,t){var n=jr(),r=Mr(),i=Nr(),a=1,o=2;function s(e,t,s,c,l,u){var d=s&a,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var m=u.get(e),h=u.get(t);if(m&&h)return m==t&&h==e;var g=-1,_=!0,v=s&o?new n:void 0;for(u.set(e,t),u.set(t,e);++g<f;){var y=e[g],b=t[g];if(c)var x=d?c(b,y,g,t,e,u):c(y,b,g,e,t,u);if(x!==void 0){if(x)continue;_=!1;break}if(v){if(!r(t,function(e,t){if(!i(v,t)&&(y===e||l(y,e,s,c,u)))return v.push(t)})){_=!1;break}}else if(!(y===b||l(y,b,s,c,u))){_=!1;break}}return u.delete(e),u.delete(t),_}t.exports=s}}),Fr=x({"../../node_modules/lodash/_Uint8Array.js"(e,t){t.exports=Qn().Uint8Array}}),Ir=x({"../../node_modules/lodash/_mapToArray.js"(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}t.exports=n}}),Lr=x({"../../node_modules/lodash/_setToArray.js"(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.exports=n}}),Rr=x({"../../node_modules/lodash/_equalByTag.js"(e,t){var n=$n(),r=Fr(),i=Bn(),a=Pr(),o=Ir(),s=Lr(),c=1,l=2,u=`[object Boolean]`,d=`[object Date]`,f=`[object Error]`,p=`[object Map]`,m=`[object Number]`,h=`[object RegExp]`,g=`[object Set]`,_=`[object String]`,v=`[object Symbol]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=n?n.prototype:void 0,S=x?x.valueOf:void 0;function C(e,t,n,x,C,w,T){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!w(new r(e),new r(t)));case u:case d:case m:return i(+e,+t);case f:return e.name==t.name&&e.message==t.message;case h:case _:return e==t+``;case p:var E=o;case g:var D=x&c;if(E||=s,e.size!=t.size&&!D)return!1;var O=T.get(e);if(O)return O==t;x|=l,T.set(e,t);var k=a(E(e),E(t),x,C,w,T);return T.delete(e),k;case v:if(S)return S.call(e)==S.call(t)}return!1}t.exports=C}}),zr=x({"../../node_modules/lodash/_arrayPush.js"(e,t){function n(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}t.exports=n}}),Br=x({"../../node_modules/lodash/isArray.js"(e,t){t.exports=Array.isArray}}),Vr=x({"../../node_modules/lodash/_baseGetAllKeys.js"(e,t){var n=zr(),r=Br();function i(e,t,i){var a=t(e);return r(e)?a:n(a,i(e))}t.exports=i}}),Hr=x({"../../node_modules/lodash/_arrayFilter.js"(e,t){function n(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}t.exports=n}}),Ur=x({"../../node_modules/lodash/stubArray.js"(e,t){function n(){return[]}t.exports=n}}),Wr=x({"../../node_modules/lodash/_getSymbols.js"(e,t){var n=Hr(),r=Ur(),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;t.exports=a?function(e){return e==null?[]:(e=Object(e),n(a(e),function(t){return i.call(e,t)}))}:r}}),Gr=x({"../../node_modules/lodash/_baseTimes.js"(e,t){function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=n}}),Kr=x({"../../node_modules/lodash/isObjectLike.js"(e,t){function n(e){return typeof e==`object`&&!!e}t.exports=n}}),qr=x({"../../node_modules/lodash/_baseIsArguments.js"(e,t){var n=nr(),r=Kr(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a}}),Jr=x({"../../node_modules/lodash/isArguments.js"(e,t){var n=qr(),r=Kr(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n((function(){return arguments})())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}}}),Yr=x({"../../node_modules/lodash/stubFalse.js"(e,t){function n(){return!1}t.exports=n}}),Xr=x({"../../node_modules/lodash/isBuffer.js"(e,t){var n=Qn(),r=Yr(),i=typeof e==`object`&&e&&!e.nodeType&&e,a=i&&typeof t==`object`&&t&&!t.nodeType&&t,o=a&&a.exports===i?n.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||r}}),Zr=x({"../../node_modules/lodash/_isIndex.js"(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t??=n,!!t&&(i==`number`||i!=`symbol`&&r.test(e))&&e>-1&&e%1==0&&e<t}t.exports=i}}),Qr=x({"../../node_modules/lodash/isLength.js"(e,t){var n=9007199254740991;function r(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}t.exports=r}}),$r=x({"../../node_modules/lodash/_baseIsTypedArray.js"(e,t){var n=nr(),r=Qr(),i=Kr(),a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object Map]`,f=`[object Number]`,p=`[object Object]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,D=`[object Uint16Array]`,O=`[object Uint32Array]`,k={};k[b]=k[x]=k[S]=k[C]=k[w]=k[T]=k[E]=k[D]=k[O]=!0,k[a]=k[o]=k[v]=k[s]=k[y]=k[c]=k[l]=k[u]=k[d]=k[f]=k[p]=k[m]=k[h]=k[g]=k[_]=!1;function A(e){return i(e)&&r(e.length)&&!!k[n(e)]}t.exports=A}}),ei=x({"../../node_modules/lodash/_baseUnary.js"(e,t){function n(e){return function(t){return e(t)}}t.exports=n}}),ti=x({"../../node_modules/lodash/_nodeUtil.js"(e,t){var n=Zn(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r&&n.process;t.exports=(function(){try{return i&&i.require&&i.require(`util`).types||a&&a.binding&&a.binding(`util`)}catch{}})()}}),ni=x({"../../node_modules/lodash/isTypedArray.js"(e,t){var n=$r(),r=ei(),i=ti(),a=i&&i.isTypedArray;t.exports=a?r(a):n}}),ri=x({"../../node_modules/lodash/_arrayLikeKeys.js"(e,t){var n=Gr(),r=Jr(),i=Br(),a=Xr(),o=Zr(),s=ni(),c=Object.prototype.hasOwnProperty;function l(e,t){var l=i(e),u=!l&&r(e),d=!l&&!u&&a(e),f=!l&&!u&&!d&&s(e),p=l||u||d||f,m=p?n(e.length,String):[],h=m.length;for(var g in e)(t||c.call(e,g))&&!(p&&(g==`length`||d&&(g==`offset`||g==`parent`)||f&&(g==`buffer`||g==`byteLength`||g==`byteOffset`)||o(g,h)))&&m.push(g);return m}t.exports=l}}),ii=x({"../../node_modules/lodash/_isPrototype.js"(e,t){var n=Object.prototype;function r(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||n)}t.exports=r}}),ai=x({"../../node_modules/lodash/_overArg.js"(e,t){function n(e,t){return function(n){return e(t(n))}}t.exports=n}}),oi=x({"../../node_modules/lodash/_nativeKeys.js"(e,t){t.exports=ai()(Object.keys,Object)}}),si=x({"../../node_modules/lodash/_baseKeys.js"(e,t){var n=ii(),r=oi(),i=Object.prototype.hasOwnProperty;function a(e){if(!n(e))return r(e);var t=[];for(var a in Object(e))i.call(e,a)&&a!=`constructor`&&t.push(a);return t}t.exports=a}}),ci=x({"../../node_modules/lodash/isArrayLike.js"(e,t){var n=ir(),r=Qr();function i(e){return e!=null&&r(e.length)&&!n(e)}t.exports=i}}),li=x({"../../node_modules/lodash/keys.js"(e,t){var n=ri(),r=si(),i=ci();function a(e){return i(e)?n(e):r(e)}t.exports=a}}),ui=x({"../../node_modules/lodash/_getAllKeys.js"(e,t){var n=Vr(),r=Wr(),i=li();function a(e){return n(e,i,r)}t.exports=a}}),di=x({"../../node_modules/lodash/_equalObjects.js"(e,t){var n=ui(),r=1,i=Object.prototype.hasOwnProperty;function a(e,t,a,o,s,c){var l=a&r,u=n(e),d=u.length;if(d!=n(t).length&&!l)return!1;for(var f=d;f--;){var p=u[f];if(!(l?p in t:i.call(t,p)))return!1}var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var g=!0;c.set(e,t),c.set(t,e);for(var _=l;++f<d;){p=u[f];var v=e[p],y=t[p];if(o)var b=l?o(y,v,p,t,e,c):o(v,y,p,e,t,c);if(!(b===void 0?v===y||s(v,y,a,o,c):b)){g=!1;break}_||=p==`constructor`}if(g&&!_){var x=e.constructor,S=t.constructor;x!=S&&`constructor`in e&&`constructor`in t&&!(typeof x==`function`&&x instanceof x&&typeof S==`function`&&S instanceof S)&&(g=!1)}return c.delete(e),c.delete(t),g}t.exports=a}}),fi=x({"../../node_modules/lodash/_DataView.js"(e,t){t.exports=ur()(Qn(),`DataView`)}}),pi=x({"../../node_modules/lodash/_Promise.js"(e,t){t.exports=ur()(Qn(),`Promise`)}}),mi=x({"../../node_modules/lodash/_Set.js"(e,t){t.exports=ur()(Qn(),`Set`)}}),hi=x({"../../node_modules/lodash/_WeakMap.js"(e,t){t.exports=ur()(Qn(),`WeakMap`)}}),gi=x({"../../node_modules/lodash/_getTag.js"(e,t){var n=fi(),r=dr(),i=pi(),a=mi(),o=hi(),s=nr(),c=sr(),l=`[object Map]`,u=`[object Object]`,d=`[object Promise]`,f=`[object Set]`,p=`[object WeakMap]`,m=`[object DataView]`,h=c(n),g=c(r),_=c(i),v=c(a),y=c(o),b=s;(n&&b(new n(new ArrayBuffer(1)))!=m||r&&b(new r)!=l||i&&b(i.resolve())!=d||a&&b(new a)!=f||o&&b(new o)!=p)&&(b=function(e){var t=s(e),n=t==u?e.constructor:void 0,r=n?c(n):``;if(r)switch(r){case h:return m;case g:return l;case _:return d;case v:return f;case y:return p}return t}),t.exports=b}}),_i=x({"../../node_modules/lodash/_baseIsEqualDeep.js"(e,t){var n=Or(),r=Pr(),i=Rr(),a=di(),o=gi(),s=Br(),c=Xr(),l=ni(),u=1,d=`[object Arguments]`,f=`[object Array]`,p=`[object Object]`,m=Object.prototype.hasOwnProperty;function h(e,t,h,g,_,v){var y=s(e),b=s(t),x=y?f:o(e),S=b?f:o(t);x=x==d?p:x,S=S==d?p:S;var C=x==p,w=S==p,T=x==S;if(T&&c(e)){if(!c(t))return!1;y=!0,C=!1}if(T&&!C)return v||=new n,y||l(e)?r(e,t,h,g,_,v):i(e,t,x,h,g,_,v);if(!(h&u)){var E=C&&m.call(e,`__wrapped__`),D=w&&m.call(t,`__wrapped__`);if(E||D){var O=E?e.value():e,k=D?t.value():t;return v||=new n,_(O,k,h,g,v)}}return T?(v||=new n,a(e,t,h,g,_,v)):!1}t.exports=h}}),vi=x({"../../node_modules/lodash/_baseIsEqual.js"(e,t){var n=_i(),r=Kr();function i(e,t,a,o,s){return e===t?!0:e==null||t==null||!r(e)&&!r(t)?e!==e&&t!==t:n(e,t,a,o,i,s)}t.exports=i}}),yi=x({"../../node_modules/lodash/isEqualWith.js"(e,t){var n=vi();function r(e,t,r){r=typeof r==`function`?r:void 0;var i=r?r(e,t):void 0;return i===void 0?n(e,t,void 0,r):!!i}t.exports=r}}),bi=x({"../../node_modules/css.escape/css.escape.js"(e,t){(function(n,r){typeof e==`object`?t.exports=r(n):typeof define==`function`&&define.amd?define([],r.bind(n,n)):r(n)})(typeof global<`u`?global:e,function(e){if(e.CSS&&e.CSS.escape)return e.CSS.escape;var t=function(e){if(arguments.length==0)throw TypeError("`CSS.escape` requires an argument.");for(var t=String(e),n=t.length,r=-1,i,a=``,o=t.charCodeAt(0);++r<n;){if(i=t.charCodeAt(r),i==0){a+=`�`;continue}if(i>=1&&i<=31||i==127||r==0&&i>=48&&i<=57||r==1&&i>=48&&i<=57&&o==45){a+=`\\`+i.toString(16)+` `;continue}if(r==0&&n==1&&i==45){a+=`\\`+t.charAt(r);continue}if(i>=128||i==45||i==95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){a+=t.charAt(r);continue}a+=`\\`+t.charAt(r)}return a};return e.CSS||={},e.CSS.escape=t,t})}}),xi=x({"../../node_modules/@testing-library/dom/node_modules/ansi-styles/index.js"(e,t){var n=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,r=(e=0)=>(t,n,r)=>`\x1B[${38+e};2;${t};${n};${r}m`;function i(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[n,r]of Object.entries(t)){for(let[n,i]of Object.entries(r))t[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=t[n],e.set(i[0],i[1]);Object.defineProperty(t,n,{value:r,enumerable:!1})}return Object.defineProperty(t,`codes`,{value:e,enumerable:!1}),t.color.close=`\x1B[39m`,t.bgColor.close=`\x1B[49m`,t.color.ansi256=n(),t.color.ansi16m=r(),t.bgColor.ansi256=n(10),t.bgColor.ansi16m=r(10),Object.defineProperties(t,{rgbToAnsi256:{value:(e,t,n)=>e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:e=>{let t=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(e.toString(16));if(!t)return[0,0,0];let{colorString:n}=t.groups;n.length===3&&(n=n.split(``).map(e=>e+e).join(``));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:e=>t.rgbToAnsi256(...t.hexToRgb(e)),enumerable:!1}}),t}Object.defineProperty(t,`exports`,{enumerable:!0,get:i})}}),Si=x({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/collections.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.printIteratorEntries=n,e.printIteratorValues=r,e.printListItems=i,e.printObjectProperties=a;var t=(e,t)=>{let n=Object.keys(e).sort(t);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(t=>{Object.getOwnPropertyDescriptor(e,t).enumerable&&n.push(t)}),n};function n(e,t,n,r,i,a,o=`: `){let s=``,c=e.next();if(!c.done){s+=t.spacingOuter;let l=n+t.indent;for(;!c.done;){let n=a(c.value[0],t,l,r,i),u=a(c.value[1],t,l,r,i);s+=l+n+o+u,c=e.next(),c.done?t.min||(s+=`,`):s+=`,`+t.spacingInner}s+=t.spacingOuter+n}return s}function r(e,t,n,r,i,a){let o=``,s=e.next();if(!s.done){o+=t.spacingOuter;let c=n+t.indent;for(;!s.done;)o+=c+a(s.value,t,c,r,i),s=e.next(),s.done?t.min||(o+=`,`):o+=`,`+t.spacingInner;o+=t.spacingOuter+n}return o}function i(e,t,n,r,i,a){let o=``;if(e.length){o+=t.spacingOuter;let s=n+t.indent;for(let n=0;n<e.length;n++)o+=s,n in e&&(o+=a(e[n],t,s,r,i)),n<e.length-1?o+=`,`+t.spacingInner:t.min||(o+=`,`);o+=t.spacingOuter+n}return o}function a(e,n,r,i,a,o){let s=``,c=t(e,n.compareKeys);if(c.length){s+=n.spacingOuter;let t=r+n.indent;for(let r=0;r<c.length;r++){let l=c[r],u=o(l,n,t,i,a),d=o(e[l],n,t,i,a);s+=t+u+`: `+d,r<c.length-1?s+=`,`+n.spacingInner:n.min||(s+=`,`)}s+=n.spacingOuter+r}return s}}}),Ci=x({"../../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=Si(),n=(function(){return typeof globalThis<`u`?globalThis:typeof n<`u`?n:typeof self<`u`?self:typeof window<`u`?window:Function(`return this`)()})(),r=n[`jest-symbol-do-not-touch`]||n.Symbol,i=typeof r==`function`&&r.for?r.for(`jest.asymmetricMatcher`):1267621,a=` `,o=(e,n,r,i,o,s)=>{let c=e.toString();return c===`ArrayContaining`||c===`ArrayNotContaining`?++i>n.maxDepth?`[`+c+`]`:c+a+`[`+(0,t.printListItems)(e.sample,n,r,i,o,s)+`]`:c===`ObjectContaining`||c===`ObjectNotContaining`?++i>n.maxDepth?`[`+c+`]`:c+a+`{`+(0,t.printObjectProperties)(e.sample,n,r,i,o,s)+`}`:c===`StringMatching`||c===`StringNotMatching`||c===`StringContaining`||c===`StringNotContaining`?c+a+s(e.sample,n,r,i,o):e.toAsymmetricMatcher()};e.serialize=o;var s=e=>e&&e.$$typeof===i;e.test=s,e.default={serialize:o,test:s}}}),wi=x({"../../node_modules/@testing-library/dom/node_modules/ansi-regex/index.js"(e,t){t.exports=({onlyFirst:e=!1}={})=>{let t=[`[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)`,`(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))`].join(`|`);return new RegExp(t,e?void 0:`g`)}}}),Ti=x({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ConvertAnsi.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.test=e.serialize=e.default=void 0;var t=r(wi()),n=r(xi());function r(e){return e&&e.__esModule?e:{default:e}}var i=e=>e.replace((0,t.default)(),e=>{switch(e){case n.default.red.close:case n.default.green.close:case n.default.cyan.close:case n.default.gray.close:case n.default.white.close:case n.default.yellow.close:case n.default.bgRed.close:case n.default.bgGreen.close:case n.default.bgYellow.close:case n.default.inverse.close:case n.default.dim.close:case n.default.bold.close:case n.default.reset.open:case n.default.reset.close:return`</>`;case n.default.red.open:return`<red>`;case n.default.green.open:return`<green>`;case n.default.cyan.open:return`<cyan>`;case n.default.gray.open:return`<gray>`;case n.default.white.open:return`<white>`;case n.default.yellow.open:return`<yellow>`;case n.default.bgRed.open:return`<bgRed>`;case n.default.bgGreen.open:return`<bgGreen>`;case n.default.bgYellow.open:return`<bgYellow>`;case n.default.inverse.open:return`<inverse>`;case n.default.dim.open:return`<dim>`;case n.default.bold.open:return`<bold>`;default:return``}}),a=e=>typeof e==`string`&&!!e.match((0,t.default)());e.test=a;var o=(e,t,n,r,a,o)=>o(i(e),t,n,r,a);e.serialize=o,e.default={serialize:o,test:a}}}),Ei=x({"../../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=Si(),n=` `,r=[`DOMStringMap`,`NamedNodeMap`],i=/^(HTML\w*Collection|NodeList)$/,a=e=>r.indexOf(e)!==-1||i.test(e),o=e=>e&&e.constructor&&!!e.constructor.name&&a(e.constructor.name);e.test=o;var s=e=>e.constructor.name===`NamedNodeMap`,c=(e,i,a,o,c,l)=>{let u=e.constructor.name;return++o>i.maxDepth?`[`+u+`]`:(i.min?``:u+n)+(r.indexOf(u)===-1?`[`+(0,t.printListItems)(Array.from(e),i,a,o,c,l)+`]`:`{`+(0,t.printObjectProperties)(s(e)?Array.from(e).reduce((e,t)=>(e[t.name]=t.value,e),{}):{...e},i,a,o,c,l)+`}`)};e.serialize=c,e.default={serialize:c,test:o}}}),Di=x({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=t;function t(e){return e.replace(/</g,`<`).replace(/>/g,`>`)}}}),Oi=x({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/markup.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.printText=e.printProps=e.printElementAsLeaf=e.printElement=e.printComment=e.printChildren=void 0;var t=n(Di());function n(e){return e&&e.__esModule?e:{default:e}}e.printProps=(e,t,n,r,i,a,o)=>{let s=r+n.indent,c=n.colors;return e.map(e=>{let l=t[e],u=o(l,n,s,i,a);return typeof l!=`string`&&(u.indexOf(`
|
|
14
|
+
`)!==-1&&(u=n.spacingOuter+s+u+n.spacingOuter+r),u=`{`+u+`}`),n.spacingInner+r+c.prop.open+e+c.prop.close+`=`+c.value.open+u+c.value.close}).join(``)},e.printChildren=(e,t,n,i,a,o)=>e.map(e=>t.spacingOuter+n+(typeof e==`string`?r(e,t):o(e,t,n,i,a))).join(``);var r=(e,n)=>{let r=n.colors.content;return r.open+(0,t.default)(e)+r.close};e.printText=r,e.printComment=(e,n)=>{let r=n.colors.comment;return r.open+`<!--`+(0,t.default)(e)+`-->`+r.close},e.printElement=(e,t,n,r,i)=>{let a=r.colors.tag;return a.open+`<`+e+(t&&a.close+t+r.spacingOuter+i+a.open)+(n?`>`+a.close+n+r.spacingOuter+i+a.open+`</`+e:(t&&!r.min?``:` `)+`/`)+`>`+a.close},e.printElementAsLeaf=(e,t)=>{let n=t.colors.tag;return n.open+`<`+e+n.close+` …`+n.open+` />`+n.close}}}),ki=x({"../../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=Oi(),n=1,r=3,i=8,a=11,o=/^((HTML|SVG)\w*)?Element$/,s=e=>{try{return typeof e.hasAttribute==`function`&&e.hasAttribute(`is`)}catch{return!1}},c=e=>{let t=e.constructor.name,{nodeType:c,tagName:l}=e,u=typeof l==`string`&&l.includes(`-`)||s(e);return c===n&&(o.test(t)||u)||c===r&&t===`Text`||c===i&&t===`Comment`||c===a&&t===`DocumentFragment`},l=e=>{var t;return(e==null||(t=e.constructor)==null?void 0:t.name)&&c(e)};e.test=l;function u(e){return e.nodeType===r}function d(e){return e.nodeType===i}function f(e){return e.nodeType===a}var p=(e,n,r,i,a,o)=>{if(u(e))return(0,t.printText)(e.data,n);if(d(e))return(0,t.printComment)(e.data,n);let s=f(e)?`DocumentFragment`:e.tagName.toLowerCase();return++i>n.maxDepth?(0,t.printElementAsLeaf)(s,n):(0,t.printElement)(s,(0,t.printProps)(f(e)?[]:Array.from(e.attributes).map(e=>e.name).sort(),f(e)?{}:Array.from(e.attributes).reduce((e,t)=>(e[t.name]=t.value,e),{}),n,r+n.indent,i,a,o),(0,t.printChildren)(Array.prototype.slice.call(e.childNodes||e.children),n,r+n.indent,i,a,o),n,r)};e.serialize=p,e.default={serialize:p,test:l}}}),Ai=x({"../../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=Si(),n=`@@__IMMUTABLE_ITERABLE__@@`,r=`@@__IMMUTABLE_LIST__@@`,i=`@@__IMMUTABLE_KEYED__@@`,a=`@@__IMMUTABLE_MAP__@@`,o=`@@__IMMUTABLE_ORDERED__@@`,s=`@@__IMMUTABLE_RECORD__@@`,c=`@@__IMMUTABLE_SEQ__@@`,l=`@@__IMMUTABLE_SET__@@`,u=`@@__IMMUTABLE_STACK__@@`,d=e=>`Immutable.`+e,f=e=>`[`+e+`]`,p=` `,m=`…`,h=(e,n,r,i,a,o,s)=>++i>n.maxDepth?f(d(s)):d(s)+p+`{`+(0,t.printIteratorEntries)(e.entries(),n,r,i,a,o)+`}`;function g(e){let t=0;return{next(){if(t<e._keys.length){let n=e._keys[t++];return{done:!1,value:[n,e.get(n)]}}return{done:!0,value:void 0}}}}var _=(e,n,r,i,a,o)=>{let s=d(e._name||`Record`);return++i>n.maxDepth?f(s):s+p+`{`+(0,t.printIteratorEntries)(g(e),n,r,i,a,o)+`}`},v=(e,n,r,a,o,s)=>{let c=d(`Seq`);return++a>n.maxDepth?f(c):e[i]?c+p+`{`+(e._iter||e._object?(0,t.printIteratorEntries)(e.entries(),n,r,a,o,s):m)+`}`:c+p+`[`+(e._iter||e._array||e._collection||e._iterable?(0,t.printIteratorValues)(e.values(),n,r,a,o,s):m)+`]`},y=(e,n,r,i,a,o,s)=>++i>n.maxDepth?f(d(s)):d(s)+p+`[`+(0,t.printIteratorValues)(e.values(),n,r,i,a,o)+`]`,b=(e,t,n,i,s,d)=>e[a]?h(e,t,n,i,s,d,e[o]?`OrderedMap`:`Map`):e[r]?y(e,t,n,i,s,d,`List`):e[l]?y(e,t,n,i,s,d,e[o]?`OrderedSet`:`Set`):e[u]?y(e,t,n,i,s,d,`Stack`):e[c]?v(e,t,n,i,s,d):_(e,t,n,i,s,d);e.serialize=b;var x=e=>e&&(e[n]===!0||e[s]===!0);e.test=x,e.default={serialize:b,test:x}}}),ji=x({"../../node_modules/@testing-library/dom/node_modules/react-is/cjs/react-is.production.min.js"(e){var t=60103,n=60106,r=60107,i=60108,a=60114,o=60109,s=60110,c=60112,l=60113,u=60120,d=60115,f=60116,p=60121,m=60122,h=60117,g=60129,_=60131;typeof Symbol==`function`&&Symbol.for&&(v=Symbol.for,t=v(`react.element`),n=v(`react.portal`),r=v(`react.fragment`),i=v(`react.strict_mode`),a=v(`react.profiler`),o=v(`react.provider`),s=v(`react.context`),c=v(`react.forward_ref`),l=v(`react.suspense`),u=v(`react.suspense_list`),d=v(`react.memo`),f=v(`react.lazy`),p=v(`react.block`),m=v(`react.server.block`),h=v(`react.fundamental`),g=v(`react.debug_trace_mode`),_=v(`react.legacy_hidden`));var v;function y(e){if(typeof e==`object`&&e){var p=e.$$typeof;switch(p){case t:switch(e=e.type,e){case r:case a:case i:case l:case u:return e;default:switch(e&&=e.$$typeof,e){case s:case c:case f:case d:case o:return e;default:return p}}case n:return p}}}var b=o,x=t,S=c,C=r,w=f,T=d,E=n,D=a,O=i,k=l;e.ContextConsumer=s,e.ContextProvider=b,e.Element=x,e.ForwardRef=S,e.Fragment=C,e.Lazy=w,e.Memo=T,e.Portal=E,e.Profiler=D,e.StrictMode=O,e.Suspense=k,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function(e){return y(e)===s},e.isContextProvider=function(e){return y(e)===o},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===t},e.isForwardRef=function(e){return y(e)===c},e.isFragment=function(e){return y(e)===r},e.isLazy=function(e){return y(e)===f},e.isMemo=function(e){return y(e)===d},e.isPortal=function(e){return y(e)===n},e.isProfiler=function(e){return y(e)===a},e.isStrictMode=function(e){return y(e)===i},e.isSuspense=function(e){return y(e)===l},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===r||e===a||e===g||e===i||e===l||e===u||e===_||typeof e==`object`&&!!e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===o||e.$$typeof===s||e.$$typeof===c||e.$$typeof===h||e.$$typeof===p||e[0]===m)},e.typeOf=y}}),Mi=x({"../../node_modules/@testing-library/dom/node_modules/react-is/index.js"(e,t){t.exports=ji()}}),Ni=x({"../../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(Mi()),n=Oi();function r(e){if(typeof WeakMap!=`function`)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function i(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!=`object`&&typeof e!=`function`)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!==`default`&&Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=e[o]}return i.default=e,n&&n.set(e,i),i}var a=(e,t=[])=>(Array.isArray(e)?e.forEach(e=>{a(e,t)}):e!=null&&e!==!1&&t.push(e),t),o=e=>{let n=e.type;if(typeof n==`string`)return n;if(typeof n==`function`)return n.displayName||n.name||`Unknown`;if(t.isFragment(e))return`React.Fragment`;if(t.isSuspense(e))return`React.Suspense`;if(typeof n==`object`&&n){if(t.isContextProvider(e))return`Context.Provider`;if(t.isContextConsumer(e))return`Context.Consumer`;if(t.isForwardRef(e)){if(n.displayName)return n.displayName;let e=n.render.displayName||n.render.name||``;return e===``?`ForwardRef`:`ForwardRef(`+e+`)`}if(t.isMemo(e)){let e=n.displayName||n.type.displayName||n.type.name||``;return e===``?`Memo`:`Memo(`+e+`)`}}return`UNDEFINED`},s=e=>{let{props:t}=e;return Object.keys(t).filter(e=>e!==`children`&&t[e]!==void 0).sort()},c=(e,t,r,i,c,l)=>++i>t.maxDepth?(0,n.printElementAsLeaf)(o(e),t):(0,n.printElement)(o(e),(0,n.printProps)(s(e),e.props,t,r+t.indent,i,c,l),(0,n.printChildren)(a(e.props.children),t,r+t.indent,i,c,l),t,r);e.serialize=c;var l=e=>e!=null&&t.isElement(e);e.test=l,e.default={serialize:c,test:l}}}),Pi=x({"../../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=Oi(),n=(function(){return typeof globalThis<`u`?globalThis:typeof n<`u`?n:typeof self<`u`?self:typeof window<`u`?window:Function(`return this`)()})(),r=n[`jest-symbol-do-not-touch`]||n.Symbol,i=typeof r==`function`&&r.for?r.for(`react.test.json`):245830487,a=e=>{let{props:t}=e;return t?Object.keys(t).filter(e=>t[e]!==void 0).sort():[]},o=(e,n,r,i,o,s)=>++i>n.maxDepth?(0,t.printElementAsLeaf)(e.type,n):(0,t.printElement)(e.type,e.props?(0,t.printProps)(a(e),e.props,n,r+n.indent,i,o,s):``,e.children?(0,t.printChildren)(e.children,n,r+n.indent,i,o,s):``,n,r);e.serialize=o;var s=e=>e&&e.$$typeof===i;e.test=s,e.default={serialize:o,test:s}}}),Fi=x({"../../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=oe,e.plugins=void 0;var t=u(xi()),n=Si(),r=u(Ci()),i=u(Ti()),a=u(Ei()),o=u(ki()),s=u(Ai()),c=u(Ni()),l=u(Pi());function u(e){return e&&e.__esModule?e:{default:e}}var d=Object.prototype.toString,f=Date.prototype.toISOString,p=Error.prototype.toString,m=RegExp.prototype.toString,h=e=>typeof e.constructor==`function`&&e.constructor.name||`Object`,g=e=>typeof window<`u`&&e===window,_=/^Symbol\((.*)\)(.*)$/,v=/\n/gi,y=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function b(e){return e===`[object Array]`||e===`[object ArrayBuffer]`||e===`[object DataView]`||e===`[object Float32Array]`||e===`[object Float64Array]`||e===`[object Int8Array]`||e===`[object Int16Array]`||e===`[object Int32Array]`||e===`[object Uint8Array]`||e===`[object Uint8ClampedArray]`||e===`[object Uint16Array]`||e===`[object Uint32Array]`}function x(e){return Object.is(e,-0)?`-0`:String(e)}function S(e){return`${e}n`}function C(e,t){return t?`[Function `+(e.name||`anonymous`)+`]`:`[Function]`}function w(e){return String(e).replace(_,`Symbol($1)`)}function T(e){return`[`+p.call(e)+`]`}function E(e,t,n,r){if(e===!0||e===!1)return``+e;if(e===void 0)return`undefined`;if(e===null)return`null`;let i=typeof e;if(i===`number`)return x(e);if(i===`bigint`)return S(e);if(i===`string`)return r?`"`+e.replace(/"|\\/g,`\\$&`)+`"`:`"`+e+`"`;if(i===`function`)return C(e,t);if(i===`symbol`)return w(e);let a=d.call(e);return a===`[object WeakMap]`?`WeakMap {}`:a===`[object WeakSet]`?`WeakSet {}`:a===`[object Function]`||a===`[object GeneratorFunction]`?C(e,t):a===`[object Symbol]`?w(e):a===`[object Date]`?isNaN(+e)?`Date { NaN }`:f.call(e):a===`[object Error]`?T(e):a===`[object RegExp]`?n?m.call(e).replace(/[\\^$*+?.()|[\]{}]/g,`\\$&`):m.call(e):e instanceof Error?T(e):null}function D(e,t,r,i,a,o){if(a.indexOf(e)!==-1)return`[Circular]`;a=a.slice(),a.push(e);let s=++i>t.maxDepth,c=t.min;if(t.callToJSON&&!s&&e.toJSON&&typeof e.toJSON==`function`&&!o)return j(e.toJSON(),t,r,i,a,!0);let l=d.call(e);return l===`[object Arguments]`?s?`[Arguments]`:(c?``:`Arguments `)+`[`+(0,n.printListItems)(e,t,r,i,a,j)+`]`:b(l)?s?`[`+e.constructor.name+`]`:(c||!t.printBasicPrototype&&e.constructor.name===`Array`?``:e.constructor.name+` `)+`[`+(0,n.printListItems)(e,t,r,i,a,j)+`]`:l===`[object Map]`?s?`[Map]`:`Map {`+(0,n.printIteratorEntries)(e.entries(),t,r,i,a,j,` => `)+`}`:l===`[object Set]`?s?`[Set]`:`Set {`+(0,n.printIteratorValues)(e.values(),t,r,i,a,j)+`}`:s||g(e)?`[`+h(e)+`]`:(c||!t.printBasicPrototype&&h(e)===`Object`?``:h(e)+` `)+`{`+(0,n.printObjectProperties)(e,t,r,i,a,j)+`}`}function O(e){return e.serialize!=null}function k(e,t,n,r,i,a){let o;try{o=O(e)?e.serialize(t,n,r,i,a,j):e.print(t,e=>j(e,n,r,i,a),e=>{let t=r+n.indent;return t+e.replace(v,`
|
|
15
|
+
`+t)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(e){throw new y(e.message,e.stack)}if(typeof o!=`string`)throw Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof o}".`);return o}function A(e,t){for(let n=0;n<e.length;n++)try{if(e[n].test(t))return e[n]}catch(e){throw new y(e.message,e.stack)}return null}function j(e,t,n,r,i,a){let o=A(t.plugins,e);if(o!==null)return k(o,e,t,n,r,i);let s=E(e,t.printFunctionName,t.escapeRegex,t.escapeString);return s===null?D(e,t,n,r,i,a):s}var M={comment:`gray`,content:`reset`,prop:`yellow`,tag:`cyan`,value:`green`},N=Object.keys(M),P={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:M};e.DEFAULT_OPTIONS=P;function ee(e){if(Object.keys(e).forEach(e=>{if(!P.hasOwnProperty(e))throw Error(`pretty-format: Unknown option "${e}".`)}),e.min&&e.indent!==void 0&&e.indent!==0)throw Error(`pretty-format: Options "min" and "indent" cannot be used together.`);if(e.theme!==void 0){if(e.theme===null)throw Error(`pretty-format: Option "theme" must not be null.`);if(typeof e.theme!=`object`)throw Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof e.theme}".`)}}var te=e=>N.reduce((n,r)=>{let i=e.theme&&e.theme[r]!==void 0?e.theme[r]:M[r],a=i&&t.default[i];if(a&&typeof a.close==`string`&&typeof a.open==`string`)n[r]=a;else throw Error(`pretty-format: Option "theme" has a key "${r}" whose value "${i}" is undefined in ansi-styles.`);return n},Object.create(null)),ne=()=>N.reduce((e,t)=>(e[t]={close:``,open:``},e),Object.create(null)),F=e=>e&&e.printFunctionName!==void 0?e.printFunctionName:P.printFunctionName,re=e=>e&&e.escapeRegex!==void 0?e.escapeRegex:P.escapeRegex,ie=e=>e&&e.escapeString!==void 0?e.escapeString:P.escapeString,ae=e=>({callToJSON:e&&e.callToJSON!==void 0?e.callToJSON:P.callToJSON,colors:e&&e.highlight?te(e):ne(),compareKeys:e&&typeof e.compareKeys==`function`?e.compareKeys:P.compareKeys,escapeRegex:re(e),escapeString:ie(e),indent:e&&e.min?``:I(e&&e.indent!==void 0?e.indent:P.indent),maxDepth:e&&e.maxDepth!==void 0?e.maxDepth:P.maxDepth,min:e&&e.min!==void 0?e.min:P.min,plugins:e&&e.plugins!==void 0?e.plugins:P.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:F(e),spacingInner:e&&e.min?` `:`
|
|
16
|
+
`,spacingOuter:e&&e.min?``:`
|
|
17
|
+
`});function I(e){return Array(e+1).join(` `)}function oe(e,t){if(t&&(ee(t),t.plugins)){let n=A(t.plugins,e);if(n!==null)return k(n,e,ae(t),``,0,[])}let n=E(e,F(t),re(t),ie(t));return n===null?D(e,ae(t),``,0,[]):n}e.plugins={AsymmetricMatcher:r.default,ConvertAnsi:i.default,DOMCollection:a.default,DOMElement:o.default,Immutable:s.default,ReactElement:c.default,ReactTestComponent:l.default},e.default=oe}}),Ii=x({"../../node_modules/lz-string/libs/lz-string.js"(e,t){var n=(function(){var e=String.fromCharCode,t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`,n=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$`,r={};function i(e,t){if(!r[e]){r[e]={};for(var n=0;n<e.length;n++)r[e][e.charAt(n)]=n}return r[e][t]}var a={compressToBase64:function(e){if(e==null)return``;var n=a._compress(e,6,function(e){return t.charAt(e)});switch(n.length%4){default:case 0:return n;case 1:return n+`===`;case 2:return n+`==`;case 3:return n+`=`}},decompressFromBase64:function(e){return e==null?``:e==``?null:a._decompress(e.length,32,function(n){return i(t,e.charAt(n))})},compressToUTF16:function(t){return t==null?``:a._compress(t,15,function(t){return e(t+32)})+` `},decompressFromUTF16:function(e){return e==null?``:e==``?null:a._decompress(e.length,16384,function(t){return e.charCodeAt(t)-32})},compressToUint8Array:function(e){for(var t=a.compress(e),n=new Uint8Array(t.length*2),r=0,i=t.length;r<i;r++){var o=t.charCodeAt(r);n[r*2]=o>>>8,n[r*2+1]=o%256}return n},decompressFromUint8Array:function(t){if(t==null)return a.decompress(t);for(var n=Array(t.length/2),r=0,i=n.length;r<i;r++)n[r]=t[r*2]*256+t[r*2+1];var o=[];return n.forEach(function(t){o.push(e(t))}),a.decompress(o.join(``))},compressToEncodedURIComponent:function(e){return e==null?``:a._compress(e,6,function(e){return n.charAt(e)})},decompressFromEncodedURIComponent:function(e){return e==null?``:e==``?null:(e=e.replace(/ /g,`+`),a._decompress(e.length,32,function(t){return i(n,e.charAt(t))}))},compress:function(t){return a._compress(t,16,function(t){return e(t)})},_compress:function(e,t,n){if(e==null)return``;var r,i,a={},o={},s=``,c=``,l=``,u=2,d=3,f=2,p=[],m=0,h=0,g;for(g=0;g<e.length;g+=1)if(s=e.charAt(g),Object.prototype.hasOwnProperty.call(a,s)||(a[s]=d++,o[s]=!0),c=l+s,Object.prototype.hasOwnProperty.call(a,c))l=c;else{if(Object.prototype.hasOwnProperty.call(o,l)){if(l.charCodeAt(0)<256){for(r=0;r<f;r++)m<<=1,h==t-1?(h=0,p.push(n(m)),m=0):h++;for(i=l.charCodeAt(0),r=0;r<8;r++)m=m<<1|i&1,h==t-1?(h=0,p.push(n(m)),m=0):h++,i>>=1}else{for(i=1,r=0;r<f;r++)m=m<<1|i,h==t-1?(h=0,p.push(n(m)),m=0):h++,i=0;for(i=l.charCodeAt(0),r=0;r<16;r++)m=m<<1|i&1,h==t-1?(h=0,p.push(n(m)),m=0):h++,i>>=1}u--,u==0&&(u=2**f,f++),delete o[l]}else for(i=a[l],r=0;r<f;r++)m=m<<1|i&1,h==t-1?(h=0,p.push(n(m)),m=0):h++,i>>=1;u--,u==0&&(u=2**f,f++),a[c]=d++,l=String(s)}if(l!==``){if(Object.prototype.hasOwnProperty.call(o,l)){if(l.charCodeAt(0)<256){for(r=0;r<f;r++)m<<=1,h==t-1?(h=0,p.push(n(m)),m=0):h++;for(i=l.charCodeAt(0),r=0;r<8;r++)m=m<<1|i&1,h==t-1?(h=0,p.push(n(m)),m=0):h++,i>>=1}else{for(i=1,r=0;r<f;r++)m=m<<1|i,h==t-1?(h=0,p.push(n(m)),m=0):h++,i=0;for(i=l.charCodeAt(0),r=0;r<16;r++)m=m<<1|i&1,h==t-1?(h=0,p.push(n(m)),m=0):h++,i>>=1}u--,u==0&&(u=2**f,f++),delete o[l]}else for(i=a[l],r=0;r<f;r++)m=m<<1|i&1,h==t-1?(h=0,p.push(n(m)),m=0):h++,i>>=1;u--,u==0&&(u=2**f,f++)}for(i=2,r=0;r<f;r++)m=m<<1|i&1,h==t-1?(h=0,p.push(n(m)),m=0):h++,i>>=1;for(;;)if(m<<=1,h==t-1){p.push(n(m));break}else h++;return p.join(``)},decompress:function(e){return e==null?``:e==``?null:a._decompress(e.length,32768,function(t){return e.charCodeAt(t)})},_decompress:function(t,n,r){var i=[],a=4,o=4,s=3,c=``,l=[],u,d,f,p,m,h,g,_={val:r(0),position:n,index:1};for(u=0;u<3;u+=1)i[u]=u;for(f=0,m=2**2,h=1;h!=m;)p=_.val&_.position,_.position>>=1,_.position==0&&(_.position=n,_.val=r(_.index++)),f|=(p>0?1:0)*h,h<<=1;switch(f){case 0:for(f=0,m=2**8,h=1;h!=m;)p=_.val&_.position,_.position>>=1,_.position==0&&(_.position=n,_.val=r(_.index++)),f|=(p>0?1:0)*h,h<<=1;g=e(f);break;case 1:for(f=0,m=2**16,h=1;h!=m;)p=_.val&_.position,_.position>>=1,_.position==0&&(_.position=n,_.val=r(_.index++)),f|=(p>0?1:0)*h,h<<=1;g=e(f);break;case 2:return``}for(i[3]=g,d=g,l.push(g);;){if(_.index>t)return``;for(f=0,m=2**s,h=1;h!=m;)p=_.val&_.position,_.position>>=1,_.position==0&&(_.position=n,_.val=r(_.index++)),f|=(p>0?1:0)*h,h<<=1;switch(g=f){case 0:for(f=0,m=2**8,h=1;h!=m;)p=_.val&_.position,_.position>>=1,_.position==0&&(_.position=n,_.val=r(_.index++)),f|=(p>0?1:0)*h,h<<=1;i[o++]=e(f),g=o-1,a--;break;case 1:for(f=0,m=2**16,h=1;h!=m;)p=_.val&_.position,_.position>>=1,_.position==0&&(_.position=n,_.val=r(_.index++)),f|=(p>0?1:0)*h,h<<=1;i[o++]=e(f),g=o-1,a--;break;case 2:return l.join(``)}if(a==0&&(a=2**s,s++),i[g])c=i[g];else if(g===o)c=d+d.charAt(0);else return null;l.push(c),i[o++]=d+c.charAt(0),a--,d=c,a==0&&(a=2**s,s++)}}};return a})();typeof define==`function`&&define.amd?define(function(){return n}):typeof t<`u`&&t!=null?t.exports=n:typeof angular<`u`&&angular!=null&&angular.module(`LZString`,[]).factory(`LZString`,function(){return n})}}),Li=x({"../../node_modules/memoizerific/memoizerific.js"(e,t){(function(n){if(typeof e==`object`&&typeof t<`u`)t.exports=n();else if(typeof define==`function`&&define.amd)define([],n);else{var r=typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:this;r.memoizerific=n()}})(function(){return(function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){var c=typeof b==`function`&&b;if(!s&&c)return c(o,!0);if(a)return a(o,!0);var l=Error(`Cannot find module '`+o+`'`);throw l.code=`MODULE_NOT_FOUND`,l}var u=n[o]={exports:{}};t[o][0].call(u.exports,function(e){var n=t[o][1][e];return i(n||e)},u,u.exports,e,t,n,r)}return n[o].exports}for(var a=typeof b==`function`&&b,o=0;o<r.length;o++)i(r[o]);return i})({1:[function(e,t,n){t.exports=function(t){return typeof Map!=`function`||t?new(e(`./similar`)):new Map}},{"./similar":2}],2:[function(e,t,n){function r(){return this.list=[],this.lastItem=void 0,this.size=0,this}r.prototype.get=function(e){var t;if(this.lastItem&&this.isEqual(this.lastItem.key,e))return this.lastItem.val;if(t=this.indexOf(e),t>=0)return this.lastItem=this.list[t],this.list[t].val},r.prototype.set=function(e,t){var n;return this.lastItem&&this.isEqual(this.lastItem.key,e)?(this.lastItem.val=t,this):(n=this.indexOf(e),n>=0?(this.lastItem=this.list[n],this.list[n].val=t,this):(this.lastItem={key:e,val:t},this.list.push(this.lastItem),this.size++,this))},r.prototype.delete=function(e){var t;if(this.lastItem&&this.isEqual(this.lastItem.key,e)&&(this.lastItem=void 0),t=this.indexOf(e),t>=0)return this.size--,this.list.splice(t,1)[0]},r.prototype.has=function(e){var t;return this.lastItem&&this.isEqual(this.lastItem.key,e)?!0:(t=this.indexOf(e),t>=0?(this.lastItem=this.list[t],!0):!1)},r.prototype.forEach=function(e,t){var n;for(n=0;n<this.size;n++)e.call(t||this,this.list[n].val,this.list[n].key,this)},r.prototype.indexOf=function(e){var t;for(t=0;t<this.size;t++)if(this.isEqual(this.list[t].key,e))return t;return-1},r.prototype.isEqual=function(e,t){return e===t||e!==e&&t!==t},t.exports=r},{}],3:[function(e,t,n){var r=e(`map-or-similar`);t.exports=function(e){var t=new r(!1),n=[];return function(o){var s=function(){var c=t,l,u,d=arguments.length-1,f=Array(d+1),p=!0,m;if((s.numArgs||s.numArgs===0)&&s.numArgs!==d+1)throw Error(`Memoizerific functions should always be called with the same number of arguments`);for(m=0;m<d;m++){if(f[m]={cacheItem:c,arg:arguments[m]},c.has(arguments[m])){c=c.get(arguments[m]);continue}p=!1,l=new r(!1),c.set(arguments[m],l),c=l}return p&&(c.has(arguments[d])?u=c.get(arguments[d]):p=!1),p||(u=o.apply(null,arguments),c.set(arguments[d],u)),e>0&&(f[d]={cacheItem:c,arg:arguments[d]},p?i(n,f):n.push(f),n.length>e&&a(n.shift())),s.wasMemoized=p,s.numArgs=d+1,u};return s.limit=e,s.wasMemoized=!1,s.cache=t,s.lru=n,s}};function i(e,t){var n=e.length,r=t.length,i,a,s;for(a=0;a<n;a++){for(i=!0,s=0;s<r;s++)if(!o(e[a][s].arg,t[s].arg)){i=!1;break}if(i)break}e.push(e.splice(a,1)[0])}function a(e){var t=e.length,n=e[t-1],r,i;for(n.cacheItem.delete(n.arg),i=t-2;i>=0&&(n=e[i],r=n.cacheItem.get(n.arg),!r||!r.size);i--)n.cacheItem.delete(n.arg)}function o(e,t){return e===t||e!==e&&t!==t}},{"map-or-similar":1}]},{},[3])(3)})}}),Ri=x({"../../node_modules/picoquery/lib/string-util.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.encodeString=r;var t=Array.from({length:256},(e,t)=>`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase()),n=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function r(e){let r=e.length;if(r===0)return``;let i=``,a=0,o=0;outer:for(;o<r;o++){let s=e.charCodeAt(o);for(;s<128;){if(n[s]!==1&&(a<o&&(i+=e.slice(a,o)),a=o+1,i+=t[s]),++o===r)break outer;s=e.charCodeAt(o)}if(a<o&&(i+=e.slice(a,o)),s<2048){a=o+1,i+=t[192|s>>6]+t[128|s&63];continue}if(s<55296||s>=57344){a=o+1,i+=t[224|s>>12]+t[128|s>>6&63]+t[128|s&63];continue}if(++o,o>=r)throw Error(`URI malformed`);let c=e.charCodeAt(o)&1023;a=o+1,s=65536+((s&1023)<<10|c),i+=t[240|s>>18]+t[128|s>>12&63]+t[128|s>>6&63]+t[128|s&63]}return a===0?e:a<r?i+e.slice(a):i}}}),zi=x({"../../node_modules/picoquery/lib/shared.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=Ri();e.defaultValueSerializer=e=>{switch(typeof e){case`string`:return(0,t.encodeString)(e);case`bigint`:case`boolean`:return``+e;case`number`:if(Number.isFinite(e))return e<1e21?``+e:(0,t.encodeString)(``+e);break}return e instanceof Date?(0,t.encodeString)(e.toISOString()):``},e.defaultShouldSerializeObject=e=>e instanceof Date;var n=e=>e;e.defaultOptions={nesting:!0,nestingSyntax:`dot`,arrayRepeat:!1,arrayRepeatSyntax:`repeat`,delimiter:38,valueDeserializer:n,valueSerializer:e.defaultValueSerializer,keyDeserializer:n,shouldSerializeObject:e.defaultShouldSerializeObject}}}),Bi=x({"../../node_modules/picoquery/lib/object-util.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.getDeepObject=i,e.stringifyObject=u;var t=zi(),n=Ri();function r(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function i(e,t,n,i,a){if(r(t))return e;let o=e[t];return typeof o==`object`&&o?o:!i&&(a||typeof n==`number`||typeof n==`string`&&n*0==0&&n.indexOf(`.`)===-1)?e[t]=[]:e[t]={}}var a=20,o=`[]`,s=`[`,c=`]`,l=`.`;function u(e,r,i=0,d,f){let{nestingSyntax:p=t.defaultOptions.nestingSyntax,arrayRepeat:m=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:h=t.defaultOptions.arrayRepeatSyntax,nesting:g=t.defaultOptions.nesting,delimiter:_=t.defaultOptions.delimiter,valueSerializer:v=t.defaultOptions.valueSerializer,shouldSerializeObject:y=t.defaultOptions.shouldSerializeObject}=r,b=typeof _==`number`?String.fromCharCode(_):_,x=f===!0&&m,S=p===`dot`||p===`js`&&!f;if(i>a)return``;let C=``,w=!0,T=!1;for(let t in e){let a=e[t];if(a===void 0)continue;let f;d?(f=d,x?h===`bracket`&&(f+=o):S?(f+=l,f+=t):(f+=s,f+=t,f+=c)):f=t,w||(C+=b),typeof a==`object`&&a&&!y(a)?(T=a.pop!==void 0,(g||m&&T)&&(C+=u(a,r,i+1,f,T))):(C+=(0,n.encodeString)(f),C+=`=`,C+=v(a,t)),w&&=!1}return C}}}),Vi=x({"../../node_modules/picoquery/lib/decode-uri-component.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.decodeURIComponent=i;var t=12,n=0,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function i(e){let i=e.indexOf(`%`);if(i===-1)return e;let a=e.length,s=``,c=0,l=0,u=i,d=t;for(;i>-1&&i<a;){let f=o(e[i+1],4)|o(e[i+2],0),p=r[f];if(d=r[256+d+p],l=l<<6|f&r[364+p],d===t)s+=e.slice(c,u),s+=l<=65535?String.fromCharCode(l):String.fromCharCode(55232+(l>>10),56320+(l&1023)),l=0,c=i+3,i=u=e.indexOf(`%`,c);else{if(d===n)return null;if(i+=3,i<a&&e.charCodeAt(i)===37)continue;return null}}return s+e.slice(c)}var a={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function o(e,t){let n=a[e];return n===void 0?255:n<<t}}}),Hi=x({"../../node_modules/picoquery/lib/parse.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=s;var t=Bi(),n=zi(),r=Vi();e.numberKeyDeserializer=e=>{let t=Number(e);return Number.isNaN(t)?e:t},e.numberValueDeserializer=e=>{let t=Number(e);return Number.isNaN(t)?e:t};var i=/\+/g,a=function(){};a.prototype=Object.create(null);function o(e,t,n,a,o){let s=e.substring(t,n);return a&&(s=s.replace(i,` `)),o&&(s=(0,r.decodeURIComponent)(s)||s),s}function s(e,s){let{valueDeserializer:c=n.defaultOptions.valueDeserializer,keyDeserializer:l=n.defaultOptions.keyDeserializer,arrayRepeatSyntax:u=n.defaultOptions.arrayRepeatSyntax,nesting:d=n.defaultOptions.nesting,arrayRepeat:f=n.defaultOptions.arrayRepeat,nestingSyntax:p=n.defaultOptions.nestingSyntax,delimiter:m=n.defaultOptions.delimiter}=s??{},h=typeof m==`string`?m.charCodeAt(0):m,g=p===`js`,_=new a;if(typeof e!=`string`)return _;let v=e.length,y=``,b=-1,x=-1,S=-1,C=_,w,T=``,E=``,D=!1,O=!1,k=!1,A=!1,j=!1,M=!1,N=0,P=-1,ee=-1,te=-1;for(let n=0;n<v+1;n++){if(N=n===v?h:e.charCodeAt(n),N===h){if(M=x>b,M||(x=n),S!==x-1&&(E=o(e,S+1,P>-1?P:x,k,D),T=l(E),w!==void 0&&(C=(0,t.getDeepObject)(C,w,T,g&&j,void 0))),M||T!==``){M&&(y=e.slice(x+1,n),A&&(y=y.replace(i,` `)),O&&(y=(0,r.decodeURIComponent)(y)||y));let t=c(y,T);if(f){let e=C[T];e===void 0?P>-1?C[T]=[t]:C[T]=t:e.pop?e.push(t):C[T]=[e,t]}else C[T]=t}y=``,b=n,x=n,D=!1,O=!1,k=!1,A=!1,j=!1,P=-1,S=n,C=_,w=void 0,T=``}else N===93?(f&&u===`bracket`&&te===91&&(P=ee),d&&(p===`index`||g)&&x<=b&&(S!==ee&&(E=o(e,S+1,n,k,D),T=l(E),w!==void 0&&(C=(0,t.getDeepObject)(C,w,T,void 0,void 0)),w=T,k=!1,D=!1),S=n,j=!1)):N===46?d&&(p===`dot`||g)&&x<=b&&(S!==ee&&(E=o(e,S+1,n,k,D),T=l(E),w!==void 0&&(C=(0,t.getDeepObject)(C,w,T,g)),w=T,k=!1,D=!1),j=!0,S=n):N===91?d&&(p===`index`||g)&&x<=b&&(S!==ee&&(E=o(e,S+1,n,k,D),T=l(E),g&&w!==void 0&&(C=(0,t.getDeepObject)(C,w,T,g)),w=T,k=!1,D=!1,j=!1),S=n):N===61?x<=b?x=n:O=!0:N===43?x>b?A=!0:k=!0:N===37&&(x>b?O=!0:D=!0);ee=n,te=N}return _}}}),Ui=x({"../../node_modules/picoquery/lib/stringify.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.stringify=n;var t=Bi();function n(e,n){if(typeof e!=`object`||!e)return``;let r=n??{};return(0,t.stringifyObject)(e,r)}}}),Wi=x({"../../node_modules/picoquery/lib/main.js"(e){var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.stringify=e.parse=void 0;var r=Hi();Object.defineProperty(e,`parse`,{enumerable:!0,get:function(){return r.parse}});var i=Ui();Object.defineProperty(e,`stringify`,{enumerable:!0,get:function(){return i.stringify}}),n(zi(),e)}}),Gi=x({"../../node_modules/entities/lib/maps/entities.json"(e,t){t.exports={Aacute:`Á`,aacute:`á`,Abreve:`Ă`,abreve:`ă`,ac:`∾`,acd:`∿`,acE:`∾̳`,Acirc:`Â`,acirc:`â`,acute:`´`,Acy:`А`,acy:`а`,AElig:`Æ`,aelig:`æ`,af:``,Afr:`𝔄`,afr:`𝔞`,Agrave:`À`,agrave:`à`,alefsym:`ℵ`,aleph:`ℵ`,Alpha:`Α`,alpha:`α`,Amacr:`Ā`,amacr:`ā`,amalg:`⨿`,amp:`&`,AMP:`&`,andand:`⩕`,And:`⩓`,and:`∧`,andd:`⩜`,andslope:`⩘`,andv:`⩚`,ang:`∠`,ange:`⦤`,angle:`∠`,angmsdaa:`⦨`,angmsdab:`⦩`,angmsdac:`⦪`,angmsdad:`⦫`,angmsdae:`⦬`,angmsdaf:`⦭`,angmsdag:`⦮`,angmsdah:`⦯`,angmsd:`∡`,angrt:`∟`,angrtvb:`⊾`,angrtvbd:`⦝`,angsph:`∢`,angst:`Å`,angzarr:`⍼`,Aogon:`Ą`,aogon:`ą`,Aopf:`𝔸`,aopf:`𝕒`,apacir:`⩯`,ap:`≈`,apE:`⩰`,ape:`≊`,apid:`≋`,apos:`'`,ApplyFunction:``,approx:`≈`,approxeq:`≊`,Aring:`Å`,aring:`å`,Ascr:`𝒜`,ascr:`𝒶`,Assign:`≔`,ast:`*`,asymp:`≈`,asympeq:`≍`,Atilde:`Ã`,atilde:`ã`,Auml:`Ä`,auml:`ä`,awconint:`∳`,awint:`⨑`,backcong:`≌`,backepsilon:`϶`,backprime:`‵`,backsim:`∽`,backsimeq:`⋍`,Backslash:`∖`,Barv:`⫧`,barvee:`⊽`,barwed:`⌅`,Barwed:`⌆`,barwedge:`⌅`,bbrk:`⎵`,bbrktbrk:`⎶`,bcong:`≌`,Bcy:`Б`,bcy:`б`,bdquo:`„`,becaus:`∵`,because:`∵`,Because:`∵`,bemptyv:`⦰`,bepsi:`϶`,bernou:`ℬ`,Bernoullis:`ℬ`,Beta:`Β`,beta:`β`,beth:`ℶ`,between:`≬`,Bfr:`𝔅`,bfr:`𝔟`,bigcap:`⋂`,bigcirc:`◯`,bigcup:`⋃`,bigodot:`⨀`,bigoplus:`⨁`,bigotimes:`⨂`,bigsqcup:`⨆`,bigstar:`★`,bigtriangledown:`▽`,bigtriangleup:`△`,biguplus:`⨄`,bigvee:`⋁`,bigwedge:`⋀`,bkarow:`⤍`,blacklozenge:`⧫`,blacksquare:`▪`,blacktriangle:`▴`,blacktriangledown:`▾`,blacktriangleleft:`◂`,blacktriangleright:`▸`,blank:`␣`,blk12:`▒`,blk14:`░`,blk34:`▓`,block:`█`,bne:`=⃥`,bnequiv:`≡⃥`,bNot:`⫭`,bnot:`⌐`,Bopf:`𝔹`,bopf:`𝕓`,bot:`⊥`,bottom:`⊥`,bowtie:`⋈`,boxbox:`⧉`,boxdl:`┐`,boxdL:`╕`,boxDl:`╖`,boxDL:`╗`,boxdr:`┌`,boxdR:`╒`,boxDr:`╓`,boxDR:`╔`,boxh:`─`,boxH:`═`,boxhd:`┬`,boxHd:`╤`,boxhD:`╥`,boxHD:`╦`,boxhu:`┴`,boxHu:`╧`,boxhU:`╨`,boxHU:`╩`,boxminus:`⊟`,boxplus:`⊞`,boxtimes:`⊠`,boxul:`┘`,boxuL:`╛`,boxUl:`╜`,boxUL:`╝`,boxur:`└`,boxuR:`╘`,boxUr:`╙`,boxUR:`╚`,boxv:`│`,boxV:`║`,boxvh:`┼`,boxvH:`╪`,boxVh:`╫`,boxVH:`╬`,boxvl:`┤`,boxvL:`╡`,boxVl:`╢`,boxVL:`╣`,boxvr:`├`,boxvR:`╞`,boxVr:`╟`,boxVR:`╠`,bprime:`‵`,breve:`˘`,Breve:`˘`,brvbar:`¦`,bscr:`𝒷`,Bscr:`ℬ`,bsemi:`⁏`,bsim:`∽`,bsime:`⋍`,bsolb:`⧅`,bsol:`\\`,bsolhsub:`⟈`,bull:`•`,bullet:`•`,bump:`≎`,bumpE:`⪮`,bumpe:`≏`,Bumpeq:`≎`,bumpeq:`≏`,Cacute:`Ć`,cacute:`ć`,capand:`⩄`,capbrcup:`⩉`,capcap:`⩋`,cap:`∩`,Cap:`⋒`,capcup:`⩇`,capdot:`⩀`,CapitalDifferentialD:`ⅅ`,caps:`∩︀`,caret:`⁁`,caron:`ˇ`,Cayleys:`ℭ`,ccaps:`⩍`,Ccaron:`Č`,ccaron:`č`,Ccedil:`Ç`,ccedil:`ç`,Ccirc:`Ĉ`,ccirc:`ĉ`,Cconint:`∰`,ccups:`⩌`,ccupssm:`⩐`,Cdot:`Ċ`,cdot:`ċ`,cedil:`¸`,Cedilla:`¸`,cemptyv:`⦲`,cent:`¢`,centerdot:`·`,CenterDot:`·`,cfr:`𝔠`,Cfr:`ℭ`,CHcy:`Ч`,chcy:`ч`,check:`✓`,checkmark:`✓`,Chi:`Χ`,chi:`χ`,circ:`ˆ`,circeq:`≗`,circlearrowleft:`↺`,circlearrowright:`↻`,circledast:`⊛`,circledcirc:`⊚`,circleddash:`⊝`,CircleDot:`⊙`,circledR:`®`,circledS:`Ⓢ`,CircleMinus:`⊖`,CirclePlus:`⊕`,CircleTimes:`⊗`,cir:`○`,cirE:`⧃`,cire:`≗`,cirfnint:`⨐`,cirmid:`⫯`,cirscir:`⧂`,ClockwiseContourIntegral:`∲`,CloseCurlyDoubleQuote:`”`,CloseCurlyQuote:`’`,clubs:`♣`,clubsuit:`♣`,colon:`:`,Colon:`∷`,Colone:`⩴`,colone:`≔`,coloneq:`≔`,comma:`,`,commat:`@`,comp:`∁`,compfn:`∘`,complement:`∁`,complexes:`ℂ`,cong:`≅`,congdot:`⩭`,Congruent:`≡`,conint:`∮`,Conint:`∯`,ContourIntegral:`∮`,copf:`𝕔`,Copf:`ℂ`,coprod:`∐`,Coproduct:`∐`,copy:`©`,COPY:`©`,copysr:`℗`,CounterClockwiseContourIntegral:`∳`,crarr:`↵`,cross:`✗`,Cross:`⨯`,Cscr:`𝒞`,cscr:`𝒸`,csub:`⫏`,csube:`⫑`,csup:`⫐`,csupe:`⫒`,ctdot:`⋯`,cudarrl:`⤸`,cudarrr:`⤵`,cuepr:`⋞`,cuesc:`⋟`,cularr:`↶`,cularrp:`⤽`,cupbrcap:`⩈`,cupcap:`⩆`,CupCap:`≍`,cup:`∪`,Cup:`⋓`,cupcup:`⩊`,cupdot:`⊍`,cupor:`⩅`,cups:`∪︀`,curarr:`↷`,curarrm:`⤼`,curlyeqprec:`⋞`,curlyeqsucc:`⋟`,curlyvee:`⋎`,curlywedge:`⋏`,curren:`¤`,curvearrowleft:`↶`,curvearrowright:`↷`,cuvee:`⋎`,cuwed:`⋏`,cwconint:`∲`,cwint:`∱`,cylcty:`⌭`,dagger:`†`,Dagger:`‡`,daleth:`ℸ`,darr:`↓`,Darr:`↡`,dArr:`⇓`,dash:`‐`,Dashv:`⫤`,dashv:`⊣`,dbkarow:`⤏`,dblac:`˝`,Dcaron:`Ď`,dcaron:`ď`,Dcy:`Д`,dcy:`д`,ddagger:`‡`,ddarr:`⇊`,DD:`ⅅ`,dd:`ⅆ`,DDotrahd:`⤑`,ddotseq:`⩷`,deg:`°`,Del:`∇`,Delta:`Δ`,delta:`δ`,demptyv:`⦱`,dfisht:`⥿`,Dfr:`𝔇`,dfr:`𝔡`,dHar:`⥥`,dharl:`⇃`,dharr:`⇂`,DiacriticalAcute:`´`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,DiacriticalGrave:"`",DiacriticalTilde:`˜`,diam:`⋄`,diamond:`⋄`,Diamond:`⋄`,diamondsuit:`♦`,diams:`♦`,die:`¨`,DifferentialD:`ⅆ`,digamma:`ϝ`,disin:`⋲`,div:`÷`,divide:`÷`,divideontimes:`⋇`,divonx:`⋇`,DJcy:`Ђ`,djcy:`ђ`,dlcorn:`⌞`,dlcrop:`⌍`,dollar:`$`,Dopf:`𝔻`,dopf:`𝕕`,Dot:`¨`,dot:`˙`,DotDot:`⃜`,doteq:`≐`,doteqdot:`≑`,DotEqual:`≐`,dotminus:`∸`,dotplus:`∔`,dotsquare:`⊡`,doublebarwedge:`⌆`,DoubleContourIntegral:`∯`,DoubleDot:`¨`,DoubleDownArrow:`⇓`,DoubleLeftArrow:`⇐`,DoubleLeftRightArrow:`⇔`,DoubleLeftTee:`⫤`,DoubleLongLeftArrow:`⟸`,DoubleLongLeftRightArrow:`⟺`,DoubleLongRightArrow:`⟹`,DoubleRightArrow:`⇒`,DoubleRightTee:`⊨`,DoubleUpArrow:`⇑`,DoubleUpDownArrow:`⇕`,DoubleVerticalBar:`∥`,DownArrowBar:`⤓`,downarrow:`↓`,DownArrow:`↓`,Downarrow:`⇓`,DownArrowUpArrow:`⇵`,DownBreve:`̑`,downdownarrows:`⇊`,downharpoonleft:`⇃`,downharpoonright:`⇂`,DownLeftRightVector:`⥐`,DownLeftTeeVector:`⥞`,DownLeftVectorBar:`⥖`,DownLeftVector:`↽`,DownRightTeeVector:`⥟`,DownRightVectorBar:`⥗`,DownRightVector:`⇁`,DownTeeArrow:`↧`,DownTee:`⊤`,drbkarow:`⤐`,drcorn:`⌟`,drcrop:`⌌`,Dscr:`𝒟`,dscr:`𝒹`,DScy:`Ѕ`,dscy:`ѕ`,dsol:`⧶`,Dstrok:`Đ`,dstrok:`đ`,dtdot:`⋱`,dtri:`▿`,dtrif:`▾`,duarr:`⇵`,duhar:`⥯`,dwangle:`⦦`,DZcy:`Џ`,dzcy:`џ`,dzigrarr:`⟿`,Eacute:`É`,eacute:`é`,easter:`⩮`,Ecaron:`Ě`,ecaron:`ě`,Ecirc:`Ê`,ecirc:`ê`,ecir:`≖`,ecolon:`≕`,Ecy:`Э`,ecy:`э`,eDDot:`⩷`,Edot:`Ė`,edot:`ė`,eDot:`≑`,ee:`ⅇ`,efDot:`≒`,Efr:`𝔈`,efr:`𝔢`,eg:`⪚`,Egrave:`È`,egrave:`è`,egs:`⪖`,egsdot:`⪘`,el:`⪙`,Element:`∈`,elinters:`⏧`,ell:`ℓ`,els:`⪕`,elsdot:`⪗`,Emacr:`Ē`,emacr:`ē`,empty:`∅`,emptyset:`∅`,EmptySmallSquare:`◻`,emptyv:`∅`,EmptyVerySmallSquare:`▫`,emsp13:` `,emsp14:` `,emsp:` `,ENG:`Ŋ`,eng:`ŋ`,ensp:` `,Eogon:`Ę`,eogon:`ę`,Eopf:`𝔼`,eopf:`𝕖`,epar:`⋕`,eparsl:`⧣`,eplus:`⩱`,epsi:`ε`,Epsilon:`Ε`,epsilon:`ε`,epsiv:`ϵ`,eqcirc:`≖`,eqcolon:`≕`,eqsim:`≂`,eqslantgtr:`⪖`,eqslantless:`⪕`,Equal:`⩵`,equals:`=`,EqualTilde:`≂`,equest:`≟`,Equilibrium:`⇌`,equiv:`≡`,equivDD:`⩸`,eqvparsl:`⧥`,erarr:`⥱`,erDot:`≓`,escr:`ℯ`,Escr:`ℰ`,esdot:`≐`,Esim:`⩳`,esim:`≂`,Eta:`Η`,eta:`η`,ETH:`Ð`,eth:`ð`,Euml:`Ë`,euml:`ë`,euro:`€`,excl:`!`,exist:`∃`,Exists:`∃`,expectation:`ℰ`,exponentiale:`ⅇ`,ExponentialE:`ⅇ`,fallingdotseq:`≒`,Fcy:`Ф`,fcy:`ф`,female:`♀`,ffilig:`ffi`,fflig:`ff`,ffllig:`ffl`,Ffr:`𝔉`,ffr:`𝔣`,filig:`fi`,FilledSmallSquare:`◼`,FilledVerySmallSquare:`▪`,fjlig:`fj`,flat:`♭`,fllig:`fl`,fltns:`▱`,fnof:`ƒ`,Fopf:`𝔽`,fopf:`𝕗`,forall:`∀`,ForAll:`∀`,fork:`⋔`,forkv:`⫙`,Fouriertrf:`ℱ`,fpartint:`⨍`,frac12:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`,frown:`⌢`,fscr:`𝒻`,Fscr:`ℱ`,gacute:`ǵ`,Gamma:`Γ`,gamma:`γ`,Gammad:`Ϝ`,gammad:`ϝ`,gap:`⪆`,Gbreve:`Ğ`,gbreve:`ğ`,Gcedil:`Ģ`,Gcirc:`Ĝ`,gcirc:`ĝ`,Gcy:`Г`,gcy:`г`,Gdot:`Ġ`,gdot:`ġ`,ge:`≥`,gE:`≧`,gEl:`⪌`,gel:`⋛`,geq:`≥`,geqq:`≧`,geqslant:`⩾`,gescc:`⪩`,ges:`⩾`,gesdot:`⪀`,gesdoto:`⪂`,gesdotol:`⪄`,gesl:`⋛︀`,gesles:`⪔`,Gfr:`𝔊`,gfr:`𝔤`,gg:`≫`,Gg:`⋙`,ggg:`⋙`,gimel:`ℷ`,GJcy:`Ѓ`,gjcy:`ѓ`,gla:`⪥`,gl:`≷`,glE:`⪒`,glj:`⪤`,gnap:`⪊`,gnapprox:`⪊`,gne:`⪈`,gnE:`≩`,gneq:`⪈`,gneqq:`≩`,gnsim:`⋧`,Gopf:`𝔾`,gopf:`𝕘`,grave:"`",GreaterEqual:`≥`,GreaterEqualLess:`⋛`,GreaterFullEqual:`≧`,GreaterGreater:`⪢`,GreaterLess:`≷`,GreaterSlantEqual:`⩾`,GreaterTilde:`≳`,Gscr:`𝒢`,gscr:`ℊ`,gsim:`≳`,gsime:`⪎`,gsiml:`⪐`,gtcc:`⪧`,gtcir:`⩺`,gt:`>`,GT:`>`,Gt:`≫`,gtdot:`⋗`,gtlPar:`⦕`,gtquest:`⩼`,gtrapprox:`⪆`,gtrarr:`⥸`,gtrdot:`⋗`,gtreqless:`⋛`,gtreqqless:`⪌`,gtrless:`≷`,gtrsim:`≳`,gvertneqq:`≩︀`,gvnE:`≩︀`,Hacek:`ˇ`,hairsp:` `,half:`½`,hamilt:`ℋ`,HARDcy:`Ъ`,hardcy:`ъ`,harrcir:`⥈`,harr:`↔`,hArr:`⇔`,harrw:`↭`,Hat:`^`,hbar:`ℏ`,Hcirc:`Ĥ`,hcirc:`ĥ`,hearts:`♥`,heartsuit:`♥`,hellip:`…`,hercon:`⊹`,hfr:`𝔥`,Hfr:`ℌ`,HilbertSpace:`ℋ`,hksearow:`⤥`,hkswarow:`⤦`,hoarr:`⇿`,homtht:`∻`,hookleftarrow:`↩`,hookrightarrow:`↪`,hopf:`𝕙`,Hopf:`ℍ`,horbar:`―`,HorizontalLine:`─`,hscr:`𝒽`,Hscr:`ℋ`,hslash:`ℏ`,Hstrok:`Ħ`,hstrok:`ħ`,HumpDownHump:`≎`,HumpEqual:`≏`,hybull:`⁃`,hyphen:`‐`,Iacute:`Í`,iacute:`í`,ic:``,Icirc:`Î`,icirc:`î`,Icy:`И`,icy:`и`,Idot:`İ`,IEcy:`Е`,iecy:`е`,iexcl:`¡`,iff:`⇔`,ifr:`𝔦`,Ifr:`ℑ`,Igrave:`Ì`,igrave:`ì`,ii:`ⅈ`,iiiint:`⨌`,iiint:`∭`,iinfin:`⧜`,iiota:`℩`,IJlig:`IJ`,ijlig:`ij`,Imacr:`Ī`,imacr:`ī`,image:`ℑ`,ImaginaryI:`ⅈ`,imagline:`ℐ`,imagpart:`ℑ`,imath:`ı`,Im:`ℑ`,imof:`⊷`,imped:`Ƶ`,Implies:`⇒`,incare:`℅`,in:`∈`,infin:`∞`,infintie:`⧝`,inodot:`ı`,intcal:`⊺`,int:`∫`,Int:`∬`,integers:`ℤ`,Integral:`∫`,intercal:`⊺`,Intersection:`⋂`,intlarhk:`⨗`,intprod:`⨼`,InvisibleComma:``,InvisibleTimes:``,IOcy:`Ё`,iocy:`ё`,Iogon:`Į`,iogon:`į`,Iopf:`𝕀`,iopf:`𝕚`,Iota:`Ι`,iota:`ι`,iprod:`⨼`,iquest:`¿`,iscr:`𝒾`,Iscr:`ℐ`,isin:`∈`,isindot:`⋵`,isinE:`⋹`,isins:`⋴`,isinsv:`⋳`,isinv:`∈`,it:``,Itilde:`Ĩ`,itilde:`ĩ`,Iukcy:`І`,iukcy:`і`,Iuml:`Ï`,iuml:`ï`,Jcirc:`Ĵ`,jcirc:`ĵ`,Jcy:`Й`,jcy:`й`,Jfr:`𝔍`,jfr:`𝔧`,jmath:`ȷ`,Jopf:`𝕁`,jopf:`𝕛`,Jscr:`𝒥`,jscr:`𝒿`,Jsercy:`Ј`,jsercy:`ј`,Jukcy:`Є`,jukcy:`є`,Kappa:`Κ`,kappa:`κ`,kappav:`ϰ`,Kcedil:`Ķ`,kcedil:`ķ`,Kcy:`К`,kcy:`к`,Kfr:`𝔎`,kfr:`𝔨`,kgreen:`ĸ`,KHcy:`Х`,khcy:`х`,KJcy:`Ќ`,kjcy:`ќ`,Kopf:`𝕂`,kopf:`𝕜`,Kscr:`𝒦`,kscr:`𝓀`,lAarr:`⇚`,Lacute:`Ĺ`,lacute:`ĺ`,laemptyv:`⦴`,lagran:`ℒ`,Lambda:`Λ`,lambda:`λ`,lang:`⟨`,Lang:`⟪`,langd:`⦑`,langle:`⟨`,lap:`⪅`,Laplacetrf:`ℒ`,laquo:`«`,larrb:`⇤`,larrbfs:`⤟`,larr:`←`,Larr:`↞`,lArr:`⇐`,larrfs:`⤝`,larrhk:`↩`,larrlp:`↫`,larrpl:`⤹`,larrsim:`⥳`,larrtl:`↢`,latail:`⤙`,lAtail:`⤛`,lat:`⪫`,late:`⪭`,lates:`⪭︀`,lbarr:`⤌`,lBarr:`⤎`,lbbrk:`❲`,lbrace:`{`,lbrack:`[`,lbrke:`⦋`,lbrksld:`⦏`,lbrkslu:`⦍`,Lcaron:`Ľ`,lcaron:`ľ`,Lcedil:`Ļ`,lcedil:`ļ`,lceil:`⌈`,lcub:`{`,Lcy:`Л`,lcy:`л`,ldca:`⤶`,ldquo:`“`,ldquor:`„`,ldrdhar:`⥧`,ldrushar:`⥋`,ldsh:`↲`,le:`≤`,lE:`≦`,LeftAngleBracket:`⟨`,LeftArrowBar:`⇤`,leftarrow:`←`,LeftArrow:`←`,Leftarrow:`⇐`,LeftArrowRightArrow:`⇆`,leftarrowtail:`↢`,LeftCeiling:`⌈`,LeftDoubleBracket:`⟦`,LeftDownTeeVector:`⥡`,LeftDownVectorBar:`⥙`,LeftDownVector:`⇃`,LeftFloor:`⌊`,leftharpoondown:`↽`,leftharpoonup:`↼`,leftleftarrows:`⇇`,leftrightarrow:`↔`,LeftRightArrow:`↔`,Leftrightarrow:`⇔`,leftrightarrows:`⇆`,leftrightharpoons:`⇋`,leftrightsquigarrow:`↭`,LeftRightVector:`⥎`,LeftTeeArrow:`↤`,LeftTee:`⊣`,LeftTeeVector:`⥚`,leftthreetimes:`⋋`,LeftTriangleBar:`⧏`,LeftTriangle:`⊲`,LeftTriangleEqual:`⊴`,LeftUpDownVector:`⥑`,LeftUpTeeVector:`⥠`,LeftUpVectorBar:`⥘`,LeftUpVector:`↿`,LeftVectorBar:`⥒`,LeftVector:`↼`,lEg:`⪋`,leg:`⋚`,leq:`≤`,leqq:`≦`,leqslant:`⩽`,lescc:`⪨`,les:`⩽`,lesdot:`⩿`,lesdoto:`⪁`,lesdotor:`⪃`,lesg:`⋚︀`,lesges:`⪓`,lessapprox:`⪅`,lessdot:`⋖`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,LessEqualGreater:`⋚`,LessFullEqual:`≦`,LessGreater:`≶`,lessgtr:`≶`,LessLess:`⪡`,lesssim:`≲`,LessSlantEqual:`⩽`,LessTilde:`≲`,lfisht:`⥼`,lfloor:`⌊`,Lfr:`𝔏`,lfr:`𝔩`,lg:`≶`,lgE:`⪑`,lHar:`⥢`,lhard:`↽`,lharu:`↼`,lharul:`⥪`,lhblk:`▄`,LJcy:`Љ`,ljcy:`љ`,llarr:`⇇`,ll:`≪`,Ll:`⋘`,llcorner:`⌞`,Lleftarrow:`⇚`,llhard:`⥫`,lltri:`◺`,Lmidot:`Ŀ`,lmidot:`ŀ`,lmoustache:`⎰`,lmoust:`⎰`,lnap:`⪉`,lnapprox:`⪉`,lne:`⪇`,lnE:`≨`,lneq:`⪇`,lneqq:`≨`,lnsim:`⋦`,loang:`⟬`,loarr:`⇽`,lobrk:`⟦`,longleftarrow:`⟵`,LongLeftArrow:`⟵`,Longleftarrow:`⟸`,longleftrightarrow:`⟷`,LongLeftRightArrow:`⟷`,Longleftrightarrow:`⟺`,longmapsto:`⟼`,longrightarrow:`⟶`,LongRightArrow:`⟶`,Longrightarrow:`⟹`,looparrowleft:`↫`,looparrowright:`↬`,lopar:`⦅`,Lopf:`𝕃`,lopf:`𝕝`,loplus:`⨭`,lotimes:`⨴`,lowast:`∗`,lowbar:`_`,LowerLeftArrow:`↙`,LowerRightArrow:`↘`,loz:`◊`,lozenge:`◊`,lozf:`⧫`,lpar:`(`,lparlt:`⦓`,lrarr:`⇆`,lrcorner:`⌟`,lrhar:`⇋`,lrhard:`⥭`,lrm:``,lrtri:`⊿`,lsaquo:`‹`,lscr:`𝓁`,Lscr:`ℒ`,lsh:`↰`,Lsh:`↰`,lsim:`≲`,lsime:`⪍`,lsimg:`⪏`,lsqb:`[`,lsquo:`‘`,lsquor:`‚`,Lstrok:`Ł`,lstrok:`ł`,ltcc:`⪦`,ltcir:`⩹`,lt:`<`,LT:`<`,Lt:`≪`,ltdot:`⋖`,lthree:`⋋`,ltimes:`⋉`,ltlarr:`⥶`,ltquest:`⩻`,ltri:`◃`,ltrie:`⊴`,ltrif:`◂`,ltrPar:`⦖`,lurdshar:`⥊`,luruhar:`⥦`,lvertneqq:`≨︀`,lvnE:`≨︀`,macr:`¯`,male:`♂`,malt:`✠`,maltese:`✠`,Map:`⤅`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,mapstoleft:`↤`,mapstoup:`↥`,marker:`▮`,mcomma:`⨩`,Mcy:`М`,mcy:`м`,mdash:`—`,mDDot:`∺`,measuredangle:`∡`,MediumSpace:` `,Mellintrf:`ℳ`,Mfr:`𝔐`,mfr:`𝔪`,mho:`℧`,micro:`µ`,midast:`*`,midcir:`⫰`,mid:`∣`,middot:`·`,minusb:`⊟`,minus:`−`,minusd:`∸`,minusdu:`⨪`,MinusPlus:`∓`,mlcp:`⫛`,mldr:`…`,mnplus:`∓`,models:`⊧`,Mopf:`𝕄`,mopf:`𝕞`,mp:`∓`,mscr:`𝓂`,Mscr:`ℳ`,mstpos:`∾`,Mu:`Μ`,mu:`μ`,multimap:`⊸`,mumap:`⊸`,nabla:`∇`,Nacute:`Ń`,nacute:`ń`,nang:`∠⃒`,nap:`≉`,napE:`⩰̸`,napid:`≋̸`,napos:`ʼn`,napprox:`≉`,natural:`♮`,naturals:`ℕ`,natur:`♮`,nbsp:`\xA0`,nbump:`≎̸`,nbumpe:`≏̸`,ncap:`⩃`,Ncaron:`Ň`,ncaron:`ň`,Ncedil:`Ņ`,ncedil:`ņ`,ncong:`≇`,ncongdot:`⩭̸`,ncup:`⩂`,Ncy:`Н`,ncy:`н`,ndash:`–`,nearhk:`⤤`,nearr:`↗`,neArr:`⇗`,nearrow:`↗`,ne:`≠`,nedot:`≐̸`,NegativeMediumSpace:``,NegativeThickSpace:``,NegativeThinSpace:``,NegativeVeryThinSpace:``,nequiv:`≢`,nesear:`⤨`,nesim:`≂̸`,NestedGreaterGreater:`≫`,NestedLessLess:`≪`,NewLine:`
|
|
18
|
+
`,nexist:`∄`,nexists:`∄`,Nfr:`𝔑`,nfr:`𝔫`,ngE:`≧̸`,nge:`≱`,ngeq:`≱`,ngeqq:`≧̸`,ngeqslant:`⩾̸`,nges:`⩾̸`,nGg:`⋙̸`,ngsim:`≵`,nGt:`≫⃒`,ngt:`≯`,ngtr:`≯`,nGtv:`≫̸`,nharr:`↮`,nhArr:`⇎`,nhpar:`⫲`,ni:`∋`,nis:`⋼`,nisd:`⋺`,niv:`∋`,NJcy:`Њ`,njcy:`њ`,nlarr:`↚`,nlArr:`⇍`,nldr:`‥`,nlE:`≦̸`,nle:`≰`,nleftarrow:`↚`,nLeftarrow:`⇍`,nleftrightarrow:`↮`,nLeftrightarrow:`⇎`,nleq:`≰`,nleqq:`≦̸`,nleqslant:`⩽̸`,nles:`⩽̸`,nless:`≮`,nLl:`⋘̸`,nlsim:`≴`,nLt:`≪⃒`,nlt:`≮`,nltri:`⋪`,nltrie:`⋬`,nLtv:`≪̸`,nmid:`∤`,NoBreak:``,NonBreakingSpace:`\xA0`,nopf:`𝕟`,Nopf:`ℕ`,Not:`⫬`,not:`¬`,NotCongruent:`≢`,NotCupCap:`≭`,NotDoubleVerticalBar:`∦`,NotElement:`∉`,NotEqual:`≠`,NotEqualTilde:`≂̸`,NotExists:`∄`,NotGreater:`≯`,NotGreaterEqual:`≱`,NotGreaterFullEqual:`≧̸`,NotGreaterGreater:`≫̸`,NotGreaterLess:`≹`,NotGreaterSlantEqual:`⩾̸`,NotGreaterTilde:`≵`,NotHumpDownHump:`≎̸`,NotHumpEqual:`≏̸`,notin:`∉`,notindot:`⋵̸`,notinE:`⋹̸`,notinva:`∉`,notinvb:`⋷`,notinvc:`⋶`,NotLeftTriangleBar:`⧏̸`,NotLeftTriangle:`⋪`,NotLeftTriangleEqual:`⋬`,NotLess:`≮`,NotLessEqual:`≰`,NotLessGreater:`≸`,NotLessLess:`≪̸`,NotLessSlantEqual:`⩽̸`,NotLessTilde:`≴`,NotNestedGreaterGreater:`⪢̸`,NotNestedLessLess:`⪡̸`,notni:`∌`,notniva:`∌`,notnivb:`⋾`,notnivc:`⋽`,NotPrecedes:`⊀`,NotPrecedesEqual:`⪯̸`,NotPrecedesSlantEqual:`⋠`,NotReverseElement:`∌`,NotRightTriangleBar:`⧐̸`,NotRightTriangle:`⋫`,NotRightTriangleEqual:`⋭`,NotSquareSubset:`⊏̸`,NotSquareSubsetEqual:`⋢`,NotSquareSuperset:`⊐̸`,NotSquareSupersetEqual:`⋣`,NotSubset:`⊂⃒`,NotSubsetEqual:`⊈`,NotSucceeds:`⊁`,NotSucceedsEqual:`⪰̸`,NotSucceedsSlantEqual:`⋡`,NotSucceedsTilde:`≿̸`,NotSuperset:`⊃⃒`,NotSupersetEqual:`⊉`,NotTilde:`≁`,NotTildeEqual:`≄`,NotTildeFullEqual:`≇`,NotTildeTilde:`≉`,NotVerticalBar:`∤`,nparallel:`∦`,npar:`∦`,nparsl:`⫽⃥`,npart:`∂̸`,npolint:`⨔`,npr:`⊀`,nprcue:`⋠`,nprec:`⊀`,npreceq:`⪯̸`,npre:`⪯̸`,nrarrc:`⤳̸`,nrarr:`↛`,nrArr:`⇏`,nrarrw:`↝̸`,nrightarrow:`↛`,nRightarrow:`⇏`,nrtri:`⋫`,nrtrie:`⋭`,nsc:`⊁`,nsccue:`⋡`,nsce:`⪰̸`,Nscr:`𝒩`,nscr:`𝓃`,nshortmid:`∤`,nshortparallel:`∦`,nsim:`≁`,nsime:`≄`,nsimeq:`≄`,nsmid:`∤`,nspar:`∦`,nsqsube:`⋢`,nsqsupe:`⋣`,nsub:`⊄`,nsubE:`⫅̸`,nsube:`⊈`,nsubset:`⊂⃒`,nsubseteq:`⊈`,nsubseteqq:`⫅̸`,nsucc:`⊁`,nsucceq:`⪰̸`,nsup:`⊅`,nsupE:`⫆̸`,nsupe:`⊉`,nsupset:`⊃⃒`,nsupseteq:`⊉`,nsupseteqq:`⫆̸`,ntgl:`≹`,Ntilde:`Ñ`,ntilde:`ñ`,ntlg:`≸`,ntriangleleft:`⋪`,ntrianglelefteq:`⋬`,ntriangleright:`⋫`,ntrianglerighteq:`⋭`,Nu:`Ν`,nu:`ν`,num:`#`,numero:`№`,numsp:` `,nvap:`≍⃒`,nvdash:`⊬`,nvDash:`⊭`,nVdash:`⊮`,nVDash:`⊯`,nvge:`≥⃒`,nvgt:`>⃒`,nvHarr:`⤄`,nvinfin:`⧞`,nvlArr:`⤂`,nvle:`≤⃒`,nvlt:`<⃒`,nvltrie:`⊴⃒`,nvrArr:`⤃`,nvrtrie:`⊵⃒`,nvsim:`∼⃒`,nwarhk:`⤣`,nwarr:`↖`,nwArr:`⇖`,nwarrow:`↖`,nwnear:`⤧`,Oacute:`Ó`,oacute:`ó`,oast:`⊛`,Ocirc:`Ô`,ocirc:`ô`,ocir:`⊚`,Ocy:`О`,ocy:`о`,odash:`⊝`,Odblac:`Ő`,odblac:`ő`,odiv:`⨸`,odot:`⊙`,odsold:`⦼`,OElig:`Œ`,oelig:`œ`,ofcir:`⦿`,Ofr:`𝔒`,ofr:`𝔬`,ogon:`˛`,Ograve:`Ò`,ograve:`ò`,ogt:`⧁`,ohbar:`⦵`,ohm:`Ω`,oint:`∮`,olarr:`↺`,olcir:`⦾`,olcross:`⦻`,oline:`‾`,olt:`⧀`,Omacr:`Ō`,omacr:`ō`,Omega:`Ω`,omega:`ω`,Omicron:`Ο`,omicron:`ο`,omid:`⦶`,ominus:`⊖`,Oopf:`𝕆`,oopf:`𝕠`,opar:`⦷`,OpenCurlyDoubleQuote:`“`,OpenCurlyQuote:`‘`,operp:`⦹`,oplus:`⊕`,orarr:`↻`,Or:`⩔`,or:`∨`,ord:`⩝`,order:`ℴ`,orderof:`ℴ`,ordf:`ª`,ordm:`º`,origof:`⊶`,oror:`⩖`,orslope:`⩗`,orv:`⩛`,oS:`Ⓢ`,Oscr:`𝒪`,oscr:`ℴ`,Oslash:`Ø`,oslash:`ø`,osol:`⊘`,Otilde:`Õ`,otilde:`õ`,otimesas:`⨶`,Otimes:`⨷`,otimes:`⊗`,Ouml:`Ö`,ouml:`ö`,ovbar:`⌽`,OverBar:`‾`,OverBrace:`⏞`,OverBracket:`⎴`,OverParenthesis:`⏜`,para:`¶`,parallel:`∥`,par:`∥`,parsim:`⫳`,parsl:`⫽`,part:`∂`,PartialD:`∂`,Pcy:`П`,pcy:`п`,percnt:`%`,period:`.`,permil:`‰`,perp:`⊥`,pertenk:`‱`,Pfr:`𝔓`,pfr:`𝔭`,Phi:`Φ`,phi:`φ`,phiv:`ϕ`,phmmat:`ℳ`,phone:`☎`,Pi:`Π`,pi:`π`,pitchfork:`⋔`,piv:`ϖ`,planck:`ℏ`,planckh:`ℎ`,plankv:`ℏ`,plusacir:`⨣`,plusb:`⊞`,pluscir:`⨢`,plus:`+`,plusdo:`∔`,plusdu:`⨥`,pluse:`⩲`,PlusMinus:`±`,plusmn:`±`,plussim:`⨦`,plustwo:`⨧`,pm:`±`,Poincareplane:`ℌ`,pointint:`⨕`,popf:`𝕡`,Popf:`ℙ`,pound:`£`,prap:`⪷`,Pr:`⪻`,pr:`≺`,prcue:`≼`,precapprox:`⪷`,prec:`≺`,preccurlyeq:`≼`,Precedes:`≺`,PrecedesEqual:`⪯`,PrecedesSlantEqual:`≼`,PrecedesTilde:`≾`,preceq:`⪯`,precnapprox:`⪹`,precneqq:`⪵`,precnsim:`⋨`,pre:`⪯`,prE:`⪳`,precsim:`≾`,prime:`′`,Prime:`″`,primes:`ℙ`,prnap:`⪹`,prnE:`⪵`,prnsim:`⋨`,prod:`∏`,Product:`∏`,profalar:`⌮`,profline:`⌒`,profsurf:`⌓`,prop:`∝`,Proportional:`∝`,Proportion:`∷`,propto:`∝`,prsim:`≾`,prurel:`⊰`,Pscr:`𝒫`,pscr:`𝓅`,Psi:`Ψ`,psi:`ψ`,puncsp:` `,Qfr:`𝔔`,qfr:`𝔮`,qint:`⨌`,qopf:`𝕢`,Qopf:`ℚ`,qprime:`⁗`,Qscr:`𝒬`,qscr:`𝓆`,quaternions:`ℍ`,quatint:`⨖`,quest:`?`,questeq:`≟`,quot:`"`,QUOT:`"`,rAarr:`⇛`,race:`∽̱`,Racute:`Ŕ`,racute:`ŕ`,radic:`√`,raemptyv:`⦳`,rang:`⟩`,Rang:`⟫`,rangd:`⦒`,range:`⦥`,rangle:`⟩`,raquo:`»`,rarrap:`⥵`,rarrb:`⇥`,rarrbfs:`⤠`,rarrc:`⤳`,rarr:`→`,Rarr:`↠`,rArr:`⇒`,rarrfs:`⤞`,rarrhk:`↪`,rarrlp:`↬`,rarrpl:`⥅`,rarrsim:`⥴`,Rarrtl:`⤖`,rarrtl:`↣`,rarrw:`↝`,ratail:`⤚`,rAtail:`⤜`,ratio:`∶`,rationals:`ℚ`,rbarr:`⤍`,rBarr:`⤏`,RBarr:`⤐`,rbbrk:`❳`,rbrace:`}`,rbrack:`]`,rbrke:`⦌`,rbrksld:`⦎`,rbrkslu:`⦐`,Rcaron:`Ř`,rcaron:`ř`,Rcedil:`Ŗ`,rcedil:`ŗ`,rceil:`⌉`,rcub:`}`,Rcy:`Р`,rcy:`р`,rdca:`⤷`,rdldhar:`⥩`,rdquo:`”`,rdquor:`”`,rdsh:`↳`,real:`ℜ`,realine:`ℛ`,realpart:`ℜ`,reals:`ℝ`,Re:`ℜ`,rect:`▭`,reg:`®`,REG:`®`,ReverseElement:`∋`,ReverseEquilibrium:`⇋`,ReverseUpEquilibrium:`⥯`,rfisht:`⥽`,rfloor:`⌋`,rfr:`𝔯`,Rfr:`ℜ`,rHar:`⥤`,rhard:`⇁`,rharu:`⇀`,rharul:`⥬`,Rho:`Ρ`,rho:`ρ`,rhov:`ϱ`,RightAngleBracket:`⟩`,RightArrowBar:`⇥`,rightarrow:`→`,RightArrow:`→`,Rightarrow:`⇒`,RightArrowLeftArrow:`⇄`,rightarrowtail:`↣`,RightCeiling:`⌉`,RightDoubleBracket:`⟧`,RightDownTeeVector:`⥝`,RightDownVectorBar:`⥕`,RightDownVector:`⇂`,RightFloor:`⌋`,rightharpoondown:`⇁`,rightharpoonup:`⇀`,rightleftarrows:`⇄`,rightleftharpoons:`⇌`,rightrightarrows:`⇉`,rightsquigarrow:`↝`,RightTeeArrow:`↦`,RightTee:`⊢`,RightTeeVector:`⥛`,rightthreetimes:`⋌`,RightTriangleBar:`⧐`,RightTriangle:`⊳`,RightTriangleEqual:`⊵`,RightUpDownVector:`⥏`,RightUpTeeVector:`⥜`,RightUpVectorBar:`⥔`,RightUpVector:`↾`,RightVectorBar:`⥓`,RightVector:`⇀`,ring:`˚`,risingdotseq:`≓`,rlarr:`⇄`,rlhar:`⇌`,rlm:``,rmoustache:`⎱`,rmoust:`⎱`,rnmid:`⫮`,roang:`⟭`,roarr:`⇾`,robrk:`⟧`,ropar:`⦆`,ropf:`𝕣`,Ropf:`ℝ`,roplus:`⨮`,rotimes:`⨵`,RoundImplies:`⥰`,rpar:`)`,rpargt:`⦔`,rppolint:`⨒`,rrarr:`⇉`,Rrightarrow:`⇛`,rsaquo:`›`,rscr:`𝓇`,Rscr:`ℛ`,rsh:`↱`,Rsh:`↱`,rsqb:`]`,rsquo:`’`,rsquor:`’`,rthree:`⋌`,rtimes:`⋊`,rtri:`▹`,rtrie:`⊵`,rtrif:`▸`,rtriltri:`⧎`,RuleDelayed:`⧴`,ruluhar:`⥨`,rx:`℞`,Sacute:`Ś`,sacute:`ś`,sbquo:`‚`,scap:`⪸`,Scaron:`Š`,scaron:`š`,Sc:`⪼`,sc:`≻`,sccue:`≽`,sce:`⪰`,scE:`⪴`,Scedil:`Ş`,scedil:`ş`,Scirc:`Ŝ`,scirc:`ŝ`,scnap:`⪺`,scnE:`⪶`,scnsim:`⋩`,scpolint:`⨓`,scsim:`≿`,Scy:`С`,scy:`с`,sdotb:`⊡`,sdot:`⋅`,sdote:`⩦`,searhk:`⤥`,searr:`↘`,seArr:`⇘`,searrow:`↘`,sect:`§`,semi:`;`,seswar:`⤩`,setminus:`∖`,setmn:`∖`,sext:`✶`,Sfr:`𝔖`,sfr:`𝔰`,sfrown:`⌢`,sharp:`♯`,SHCHcy:`Щ`,shchcy:`щ`,SHcy:`Ш`,shcy:`ш`,ShortDownArrow:`↓`,ShortLeftArrow:`←`,shortmid:`∣`,shortparallel:`∥`,ShortRightArrow:`→`,ShortUpArrow:`↑`,shy:``,Sigma:`Σ`,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,sim:`∼`,simdot:`⩪`,sime:`≃`,simeq:`≃`,simg:`⪞`,simgE:`⪠`,siml:`⪝`,simlE:`⪟`,simne:`≆`,simplus:`⨤`,simrarr:`⥲`,slarr:`←`,SmallCircle:`∘`,smallsetminus:`∖`,smashp:`⨳`,smeparsl:`⧤`,smid:`∣`,smile:`⌣`,smt:`⪪`,smte:`⪬`,smtes:`⪬︀`,SOFTcy:`Ь`,softcy:`ь`,solbar:`⌿`,solb:`⧄`,sol:`/`,Sopf:`𝕊`,sopf:`𝕤`,spades:`♠`,spadesuit:`♠`,spar:`∥`,sqcap:`⊓`,sqcaps:`⊓︀`,sqcup:`⊔`,sqcups:`⊔︀`,Sqrt:`√`,sqsub:`⊏`,sqsube:`⊑`,sqsubset:`⊏`,sqsubseteq:`⊑`,sqsup:`⊐`,sqsupe:`⊒`,sqsupset:`⊐`,sqsupseteq:`⊒`,square:`□`,Square:`□`,SquareIntersection:`⊓`,SquareSubset:`⊏`,SquareSubsetEqual:`⊑`,SquareSuperset:`⊐`,SquareSupersetEqual:`⊒`,SquareUnion:`⊔`,squarf:`▪`,squ:`□`,squf:`▪`,srarr:`→`,Sscr:`𝒮`,sscr:`𝓈`,ssetmn:`∖`,ssmile:`⌣`,sstarf:`⋆`,Star:`⋆`,star:`☆`,starf:`★`,straightepsilon:`ϵ`,straightphi:`ϕ`,strns:`¯`,sub:`⊂`,Sub:`⋐`,subdot:`⪽`,subE:`⫅`,sube:`⊆`,subedot:`⫃`,submult:`⫁`,subnE:`⫋`,subne:`⊊`,subplus:`⪿`,subrarr:`⥹`,subset:`⊂`,Subset:`⋐`,subseteq:`⊆`,subseteqq:`⫅`,SubsetEqual:`⊆`,subsetneq:`⊊`,subsetneqq:`⫋`,subsim:`⫇`,subsub:`⫕`,subsup:`⫓`,succapprox:`⪸`,succ:`≻`,succcurlyeq:`≽`,Succeeds:`≻`,SucceedsEqual:`⪰`,SucceedsSlantEqual:`≽`,SucceedsTilde:`≿`,succeq:`⪰`,succnapprox:`⪺`,succneqq:`⪶`,succnsim:`⋩`,succsim:`≿`,SuchThat:`∋`,sum:`∑`,Sum:`∑`,sung:`♪`,sup1:`¹`,sup2:`²`,sup3:`³`,sup:`⊃`,Sup:`⋑`,supdot:`⪾`,supdsub:`⫘`,supE:`⫆`,supe:`⊇`,supedot:`⫄`,Superset:`⊃`,SupersetEqual:`⊇`,suphsol:`⟉`,suphsub:`⫗`,suplarr:`⥻`,supmult:`⫂`,supnE:`⫌`,supne:`⊋`,supplus:`⫀`,supset:`⊃`,Supset:`⋑`,supseteq:`⊇`,supseteqq:`⫆`,supsetneq:`⊋`,supsetneqq:`⫌`,supsim:`⫈`,supsub:`⫔`,supsup:`⫖`,swarhk:`⤦`,swarr:`↙`,swArr:`⇙`,swarrow:`↙`,swnwar:`⤪`,szlig:`ß`,Tab:` `,target:`⌖`,Tau:`Τ`,tau:`τ`,tbrk:`⎴`,Tcaron:`Ť`,tcaron:`ť`,Tcedil:`Ţ`,tcedil:`ţ`,Tcy:`Т`,tcy:`т`,tdot:`⃛`,telrec:`⌕`,Tfr:`𝔗`,tfr:`𝔱`,there4:`∴`,therefore:`∴`,Therefore:`∴`,Theta:`Θ`,theta:`θ`,thetasym:`ϑ`,thetav:`ϑ`,thickapprox:`≈`,thicksim:`∼`,ThickSpace:` `,ThinSpace:` `,thinsp:` `,thkap:`≈`,thksim:`∼`,THORN:`Þ`,thorn:`þ`,tilde:`˜`,Tilde:`∼`,TildeEqual:`≃`,TildeFullEqual:`≅`,TildeTilde:`≈`,timesbar:`⨱`,timesb:`⊠`,times:`×`,timesd:`⨰`,tint:`∭`,toea:`⤨`,topbot:`⌶`,topcir:`⫱`,top:`⊤`,Topf:`𝕋`,topf:`𝕥`,topfork:`⫚`,tosa:`⤩`,tprime:`‴`,trade:`™`,TRADE:`™`,triangle:`▵`,triangledown:`▿`,triangleleft:`◃`,trianglelefteq:`⊴`,triangleq:`≜`,triangleright:`▹`,trianglerighteq:`⊵`,tridot:`◬`,trie:`≜`,triminus:`⨺`,TripleDot:`⃛`,triplus:`⨹`,trisb:`⧍`,tritime:`⨻`,trpezium:`⏢`,Tscr:`𝒯`,tscr:`𝓉`,TScy:`Ц`,tscy:`ц`,TSHcy:`Ћ`,tshcy:`ћ`,Tstrok:`Ŧ`,tstrok:`ŧ`,twixt:`≬`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,Uacute:`Ú`,uacute:`ú`,uarr:`↑`,Uarr:`↟`,uArr:`⇑`,Uarrocir:`⥉`,Ubrcy:`Ў`,ubrcy:`ў`,Ubreve:`Ŭ`,ubreve:`ŭ`,Ucirc:`Û`,ucirc:`û`,Ucy:`У`,ucy:`у`,udarr:`⇅`,Udblac:`Ű`,udblac:`ű`,udhar:`⥮`,ufisht:`⥾`,Ufr:`𝔘`,ufr:`𝔲`,Ugrave:`Ù`,ugrave:`ù`,uHar:`⥣`,uharl:`↿`,uharr:`↾`,uhblk:`▀`,ulcorn:`⌜`,ulcorner:`⌜`,ulcrop:`⌏`,ultri:`◸`,Umacr:`Ū`,umacr:`ū`,uml:`¨`,UnderBar:`_`,UnderBrace:`⏟`,UnderBracket:`⎵`,UnderParenthesis:`⏝`,Union:`⋃`,UnionPlus:`⊎`,Uogon:`Ų`,uogon:`ų`,Uopf:`𝕌`,uopf:`𝕦`,UpArrowBar:`⤒`,uparrow:`↑`,UpArrow:`↑`,Uparrow:`⇑`,UpArrowDownArrow:`⇅`,updownarrow:`↕`,UpDownArrow:`↕`,Updownarrow:`⇕`,UpEquilibrium:`⥮`,upharpoonleft:`↿`,upharpoonright:`↾`,uplus:`⊎`,UpperLeftArrow:`↖`,UpperRightArrow:`↗`,upsi:`υ`,Upsi:`ϒ`,upsih:`ϒ`,Upsilon:`Υ`,upsilon:`υ`,UpTeeArrow:`↥`,UpTee:`⊥`,upuparrows:`⇈`,urcorn:`⌝`,urcorner:`⌝`,urcrop:`⌎`,Uring:`Ů`,uring:`ů`,urtri:`◹`,Uscr:`𝒰`,uscr:`𝓊`,utdot:`⋰`,Utilde:`Ũ`,utilde:`ũ`,utri:`▵`,utrif:`▴`,uuarr:`⇈`,Uuml:`Ü`,uuml:`ü`,uwangle:`⦧`,vangrt:`⦜`,varepsilon:`ϵ`,varkappa:`ϰ`,varnothing:`∅`,varphi:`ϕ`,varpi:`ϖ`,varpropto:`∝`,varr:`↕`,vArr:`⇕`,varrho:`ϱ`,varsigma:`ς`,varsubsetneq:`⊊︀`,varsubsetneqq:`⫋︀`,varsupsetneq:`⊋︀`,varsupsetneqq:`⫌︀`,vartheta:`ϑ`,vartriangleleft:`⊲`,vartriangleright:`⊳`,vBar:`⫨`,Vbar:`⫫`,vBarv:`⫩`,Vcy:`В`,vcy:`в`,vdash:`⊢`,vDash:`⊨`,Vdash:`⊩`,VDash:`⊫`,Vdashl:`⫦`,veebar:`⊻`,vee:`∨`,Vee:`⋁`,veeeq:`≚`,vellip:`⋮`,verbar:`|`,Verbar:`‖`,vert:`|`,Vert:`‖`,VerticalBar:`∣`,VerticalLine:`|`,VerticalSeparator:`❘`,VerticalTilde:`≀`,VeryThinSpace:` `,Vfr:`𝔙`,vfr:`𝔳`,vltri:`⊲`,vnsub:`⊂⃒`,vnsup:`⊃⃒`,Vopf:`𝕍`,vopf:`𝕧`,vprop:`∝`,vrtri:`⊳`,Vscr:`𝒱`,vscr:`𝓋`,vsubnE:`⫋︀`,vsubne:`⊊︀`,vsupnE:`⫌︀`,vsupne:`⊋︀`,Vvdash:`⊪`,vzigzag:`⦚`,Wcirc:`Ŵ`,wcirc:`ŵ`,wedbar:`⩟`,wedge:`∧`,Wedge:`⋀`,wedgeq:`≙`,weierp:`℘`,Wfr:`𝔚`,wfr:`𝔴`,Wopf:`𝕎`,wopf:`𝕨`,wp:`℘`,wr:`≀`,wreath:`≀`,Wscr:`𝒲`,wscr:`𝓌`,xcap:`⋂`,xcirc:`◯`,xcup:`⋃`,xdtri:`▽`,Xfr:`𝔛`,xfr:`𝔵`,xharr:`⟷`,xhArr:`⟺`,Xi:`Ξ`,xi:`ξ`,xlarr:`⟵`,xlArr:`⟸`,xmap:`⟼`,xnis:`⋻`,xodot:`⨀`,Xopf:`𝕏`,xopf:`𝕩`,xoplus:`⨁`,xotime:`⨂`,xrarr:`⟶`,xrArr:`⟹`,Xscr:`𝒳`,xscr:`𝓍`,xsqcup:`⨆`,xuplus:`⨄`,xutri:`△`,xvee:`⋁`,xwedge:`⋀`,Yacute:`Ý`,yacute:`ý`,YAcy:`Я`,yacy:`я`,Ycirc:`Ŷ`,ycirc:`ŷ`,Ycy:`Ы`,ycy:`ы`,yen:`¥`,Yfr:`𝔜`,yfr:`𝔶`,YIcy:`Ї`,yicy:`ї`,Yopf:`𝕐`,yopf:`𝕪`,Yscr:`𝒴`,yscr:`𝓎`,YUcy:`Ю`,yucy:`ю`,yuml:`ÿ`,Yuml:`Ÿ`,Zacute:`Ź`,zacute:`ź`,Zcaron:`Ž`,zcaron:`ž`,Zcy:`З`,zcy:`з`,Zdot:`Ż`,zdot:`ż`,zeetrf:`ℨ`,ZeroWidthSpace:``,Zeta:`Ζ`,zeta:`ζ`,zfr:`𝔷`,Zfr:`ℨ`,ZHcy:`Ж`,zhcy:`ж`,zigrarr:`⇝`,zopf:`𝕫`,Zopf:`ℤ`,Zscr:`𝒵`,zscr:`𝓏`,zwj:``,zwnj:``}}}),Ki=x({"../../node_modules/entities/lib/maps/legacy.json"(e,t){t.exports={Aacute:`Á`,aacute:`á`,Acirc:`Â`,acirc:`â`,acute:`´`,AElig:`Æ`,aelig:`æ`,Agrave:`À`,agrave:`à`,amp:`&`,AMP:`&`,Aring:`Å`,aring:`å`,Atilde:`Ã`,atilde:`ã`,Auml:`Ä`,auml:`ä`,brvbar:`¦`,Ccedil:`Ç`,ccedil:`ç`,cedil:`¸`,cent:`¢`,copy:`©`,COPY:`©`,curren:`¤`,deg:`°`,divide:`÷`,Eacute:`É`,eacute:`é`,Ecirc:`Ê`,ecirc:`ê`,Egrave:`È`,egrave:`è`,ETH:`Ð`,eth:`ð`,Euml:`Ë`,euml:`ë`,frac12:`½`,frac14:`¼`,frac34:`¾`,gt:`>`,GT:`>`,Iacute:`Í`,iacute:`í`,Icirc:`Î`,icirc:`î`,iexcl:`¡`,Igrave:`Ì`,igrave:`ì`,iquest:`¿`,Iuml:`Ï`,iuml:`ï`,laquo:`«`,lt:`<`,LT:`<`,macr:`¯`,micro:`µ`,middot:`·`,nbsp:`\xA0`,not:`¬`,Ntilde:`Ñ`,ntilde:`ñ`,Oacute:`Ó`,oacute:`ó`,Ocirc:`Ô`,ocirc:`ô`,Ograve:`Ò`,ograve:`ò`,ordf:`ª`,ordm:`º`,Oslash:`Ø`,oslash:`ø`,Otilde:`Õ`,otilde:`õ`,Ouml:`Ö`,ouml:`ö`,para:`¶`,plusmn:`±`,pound:`£`,quot:`"`,QUOT:`"`,raquo:`»`,reg:`®`,REG:`®`,sect:`§`,shy:``,sup1:`¹`,sup2:`²`,sup3:`³`,szlig:`ß`,THORN:`Þ`,thorn:`þ`,times:`×`,Uacute:`Ú`,uacute:`ú`,Ucirc:`Û`,ucirc:`û`,Ugrave:`Ù`,ugrave:`ù`,uml:`¨`,Uuml:`Ü`,uuml:`ü`,Yacute:`Ý`,yacute:`ý`,yen:`¥`,yuml:`ÿ`}}}),qi=x({"../../node_modules/entities/lib/maps/xml.json"(e,t){t.exports={amp:`&`,apos:`'`,gt:`>`,lt:`<`,quot:`"`}}}),Ji=x({"../../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}}}),Yi=x({"../../node_modules/entities/lib/decode_codepoint.js"(e){var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var n=t(Ji()),r=String.fromCodePoint||function(e){var t=``;return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function i(e){return e>=55296&&e<=57343||e>1114111?`�`:(e in n.default&&(e=n.default[e]),r(e))}e.default=i}}),Xi=x({"../../node_modules/entities/lib/decode.js"(e){var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var n=t(Gi()),r=t(Ki()),i=t(qi()),a=t(Yi()),o=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=s(i.default),e.decodeHTMLStrict=s(n.default);function s(e){var t=l(e);return function(e){return String(e).replace(o,t)}}var c=function(e,t){return e<t?1:-1};e.decodeHTML=(function(){for(var e=Object.keys(r.default).sort(c),t=Object.keys(n.default).sort(c),i=0,a=0;i<t.length;i++)e[a]===t[i]?(t[i]+=`;?`,a++):t[i]+=`;`;var o=RegExp(`&(?:`+t.join(`|`)+`|#[xX][\\da-fA-F]+;?|#\\d+;?)`,`g`),s=l(n.default);function u(e){return e.substr(-1)!==`;`&&(e+=`;`),s(e)}return function(e){return String(e).replace(o,u)}})();function l(e){return function(t){if(t.charAt(1)===`#`){var n=t.charAt(2);return n===`X`||n===`x`?a.default(parseInt(t.substr(3),16)):a.default(parseInt(t.substr(2),10))}return e[t.slice(1,-1)]||t}}}}),Zi=x({"../../node_modules/entities/lib/encode.js"(e){var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var n=a(t(qi()).default),r=o(n);e.encodeXML=m(n);var i=a(t(Gi()).default);e.encodeHTML=u(i,o(i)),e.encodeNonAsciiHTML=m(i);function a(e){return Object.keys(e).sort().reduce(function(t,n){return t[e[n]]=`&`+n+`;`,t},{})}function o(e){for(var t=[],n=[],r=0,i=Object.keys(e);r<i.length;r++){var a=i[r];a.length===1?t.push(`\\`+a):n.push(a)}t.sort();for(var o=0;o<t.length-1;o++){for(var s=o;s<t.length-1&&t[s].charCodeAt(1)+1===t[s+1].charCodeAt(1);)s+=1;var c=1+s-o;c<3||t.splice(o,c,t[o]+`-`+t[s])}return n.unshift(`[`+t.join(``)+`]`),new RegExp(n.join(`|`),`g`)}var s=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,c=String.prototype.codePointAt==null?(function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536}):(function(e){return e.codePointAt(0)});function l(e){return`&#x`+(e.length>1?c(e):e.charCodeAt(0)).toString(16).toUpperCase()+`;`}function u(e,t){return function(n){return n.replace(t,function(t){return e[t]}).replace(s,l)}}var d=RegExp(r.source+`|`+s.source,`g`);function f(e){return e.replace(d,l)}e.escape=f;function p(e){return e.replace(r,l)}e.escapeUTF8=p;function m(e){return function(t){return t.replace(d,function(t){return e[t]||l(t)})}}}}),Qi=x({"../../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=Xi(),n=Zi();function r(e,n){return(!n||n<=0?t.decodeXML:t.decodeHTML)(e)}e.decode=r;function i(e,n){return(!n||n<=0?t.decodeXML:t.decodeHTMLStrict)(e)}e.decodeStrict=i;function a(e,t){return(!t||t<=0?n.encodeXML:n.encodeHTML)(e)}e.encode=a;var o=Zi();Object.defineProperty(e,`encodeXML`,{enumerable:!0,get:function(){return o.encodeXML}}),Object.defineProperty(e,`encodeHTML`,{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(e,`encodeNonAsciiHTML`,{enumerable:!0,get:function(){return o.encodeNonAsciiHTML}}),Object.defineProperty(e,`escape`,{enumerable:!0,get:function(){return o.escape}}),Object.defineProperty(e,`escapeUTF8`,{enumerable:!0,get:function(){return o.escapeUTF8}}),Object.defineProperty(e,`encodeHTML4`,{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(e,`encodeHTML5`,{enumerable:!0,get:function(){return o.encodeHTML}});var s=Xi();Object.defineProperty(e,`decodeXML`,{enumerable:!0,get:function(){return s.decodeXML}}),Object.defineProperty(e,`decodeHTML`,{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,`decodeHTMLStrict`,{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,`decodeHTML4`,{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,`decodeHTML5`,{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,`decodeHTML4Strict`,{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,`decodeHTML5Strict`,{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,`decodeXMLStrict`,{enumerable:!0,get:function(){return s.decodeXML}})}}),$i=x({"../../node_modules/ansi-to-html/lib/ansi_to_html.js"(e,t){function n(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function a(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=o(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
19
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,s=!1,c;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,c=e},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(s)throw c}}}}function o(e,t){if(e){if(typeof e==`string`)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}}function s(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var c=Qi(),l={fg:`#FFF`,bg:`#000`,newline:!1,escapeXML:!1,stream:!1,colors:u()};function u(){var e={0:`#000`,1:`#A00`,2:`#0A0`,3:`#A50`,4:`#00A`,5:`#A0A`,6:`#0AA`,7:`#AAA`,8:`#555`,9:`#F55`,10:`#5F5`,11:`#FF5`,12:`#55F`,13:`#F5F`,14:`#5FF`,15:`#FFF`};return v(0,5).forEach(function(t){v(0,5).forEach(function(n){v(0,5).forEach(function(r){return d(t,n,r,e)})})}),v(0,23).forEach(function(t){var n=t+232,r=f(t*10+8);e[n]=`#`+r+r+r}),e}function d(e,t,n,r){var i=16+e*36+t*6+n;r[i]=p([e>0?e*40+55:0,t>0?t*40+55:0,n>0?n*40+55:0])}function f(e){for(var t=e.toString(16);t.length<2;)t=`0`+t;return t}function p(e){var t=[],n=a(e),r;try{for(n.s();!(r=n.n()).done;){var i=r.value;t.push(f(i))}}catch(e){n.e(e)}finally{n.f()}return`#`+t.join(``)}function m(e,t,n,r){var i;return t===`text`?i=x(n,r):t===`display`?i=g(e,n,r):t===`xterm256Foreground`?i=w(e,r.colors[n]):t===`xterm256Background`?i=T(e,r.colors[n]):t===`rgb`&&(i=h(e,n)),i}function h(e,t){t=t.substring(2).slice(0,-1);var n=+t.substr(0,2),r=t.substring(5).split(`;`).map(function(e){return(`0`+Number(e).toString(16)).substr(-2)}).join(``);return C(e,(n===38?`color:#`:`background-color:#`)+r)}function g(e,t,n){t=parseInt(t,10);var r={"-1":function(){return`<br/>`},0:function(){return e.length&&_(e)},1:function(){return S(e,`b`)},3:function(){return S(e,`i`)},4:function(){return S(e,`u`)},8:function(){return C(e,`display:none`)},9:function(){return S(e,`strike`)},22:function(){return C(e,`font-weight:normal;text-decoration:none;font-style:normal`)},23:function(){return E(e,`i`)},24:function(){return E(e,`u`)},39:function(){return w(e,n.fg)},49:function(){return T(e,n.bg)},53:function(){return C(e,`text-decoration:overline`)}},i;return r[t]?i=r[t]():4<t&&t<7?i=S(e,`blink`):29<t&&t<38?i=w(e,n.colors[t-30]):39<t&&t<48?i=T(e,n.colors[t-40]):89<t&&t<98?i=w(e,n.colors[8+(t-90)]):99<t&&t<108&&(i=T(e,n.colors[8+(t-100)])),i}function _(e){var t=e.slice(0);return e.length=0,t.reverse().map(function(e){return`</`+e+`>`}).join(``)}function v(e,t){for(var n=[],r=e;r<=t;r++)n.push(r);return n}function y(e){return function(t){return(e===null||t.category!==e)&&e!==`all`}}function b(e){e=parseInt(e,10);var t=null;return e===0?t=`all`:e===1?t=`bold`:2<e&&e<5?t=`underline`:4<e&&e<7?t=`blink`:e===8?t=`hide`:e===9?t=`strike`:29<e&&e<38||e===39||89<e&&e<98?t=`foreground-color`:(39<e&&e<48||e===49||99<e&&e<108)&&(t=`background-color`),t}function x(e,t){return t.escapeXML?c.encodeXML(e):e}function S(e,t,n){return n||=``,e.push(t),`<${t}${n?` style="${n}"`:``}>`}function C(e,t){return S(e,`span`,t)}function w(e,t){return S(e,`span`,`color:`+t)}function T(e,t){return S(e,`span`,`background-color:`+t)}function E(e,t){var n;if(e.slice(-1)[0]===t&&(n=e.pop()),n)return`</`+t+`>`}function D(e,t,n){var r=!1,i=3;function o(){return``}function s(e,t){return n(`xterm256Foreground`,t),``}function c(e,t){return n(`xterm256Background`,t),``}function l(e){return t.newline?n(`display`,-1):n(`text`,e),``}function u(e,t){r=!0,t.trim().length===0&&(t=`0`),t=t.trimRight(`;`).split(`;`);var i=a(t),o;try{for(i.s();!(o=i.n()).done;){var s=o.value;n(`display`,s)}}catch(e){i.e(e)}finally{i.f()}return``}function d(e){return n(`text`,e),``}function f(e){return n(`rgb`,e),``}var p=[{pattern:/^\x08+/,sub:o},{pattern:/^\x1b\[[012]?K/,sub:o},{pattern:/^\x1b\[\(B/,sub:o},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:f},{pattern:/^\x1b\[38;5;(\d+)m/,sub:s},{pattern:/^\x1b\[48;5;(\d+)m/,sub:c},{pattern:/^\n/,sub:l},{pattern:/^\r+\n/,sub:l},{pattern:/^\r/,sub:l},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:u},{pattern:/^\x1b\[\d?J/,sub:o},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:o},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:o},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:d}];function m(t,n){n>i&&r||(r=!1,e=e.replace(t.pattern,t.sub))}var h=[],g=e.length;outer:for(;g>0;){for(var _=0,v=0,y=p.length;v<y;_=++v){var b=p[_];if(m(b,_),e.length!==g){g=e.length;continue outer}}if(e.length===g)break;h.push(0),g=e.length}return h}function O(e,t,n){return t!==`text`&&(e=e.filter(y(b(n))),e.push({token:t,data:n,category:b(n)})),e}t.exports=(function(){function e(t){n(this,e),t||={},t.colors&&=Object.assign({},l.colors,t.colors),this.options=Object.assign({},l,t),this.stack=[],this.stickyStack=[]}return i(e,[{key:`toHtml`,value:function(e){var t=this;e=typeof e==`string`?[e]:e;var n=this.stack,r=this.options,i=[];return this.stickyStack.forEach(function(e){var t=m(n,e.token,e.data,r);t&&i.push(t)}),D(e.join(``),r,function(e,a){var o=m(n,e,a,r);o&&i.push(o),r.stream&&(t.stickyStack=O(t.stickyStack,e,a))}),n.length&&i.push(_(n)),i.join(``)}}]),e})()}}),ea=x({"../../node_modules/jsdoc-type-pratt-parser/dist/index.js"(e,t){(function(n,r){typeof e==`object`&&typeof t<`u`?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n=typeof globalThis<`u`?globalThis:n||self,r(n.jtpp={}))})(e,(function(e){function t(e){return e.text!==void 0&&e.text!==``?`'${e.type}' with value '${e.text}'`:`'${e.type}'`}class n extends Error{constructor(e){super(`No parslet found for token: ${t(e)}`),this.token=e,Object.setPrototypeOf(this,n.prototype)}getToken(){return this.token}}class r extends Error{constructor(e){super(`The parsing ended early. The next token was: ${t(e)}`),this.token=e,Object.setPrototypeOf(this,r.prototype)}getToken(){return this.token}}class i extends Error{constructor(e,t){let n=`Unexpected type: '${e.type}'.`;t!==void 0&&(n+=` Message: ${t}`),super(n),Object.setPrototypeOf(this,i.prototype)}}function a(e){return t=>t.startsWith(e)?{type:e,text:e}:null}function o(e){let t=0,n,r=e[0],i=!1;if(r!==`'`&&r!==`"`)return null;for(;t<e.length;){if(t++,n=e[t],!i&&n===r){t++;break}i=!i&&n===`\\`}if(n!==r)throw Error(`Unterminated String`);return e.slice(0,t)}let s=RegExp(`[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}`,`u`),c=RegExp(`[$\\-\\p{ID_Continue}\\u200C\\u200D]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}`,`u`);function l(e){let t=e[0];if(!s.test(t))return null;let n=1;do{if(t=e[n],!c.test(t))break;n++}while(n<e.length);return e.slice(0,n)}let u=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function d(e){return u.exec(e)?.[0]??null}let f=e=>{let t=l(e);return t==null?null:{type:`Identifier`,text:t}};function p(e){return t=>{if(!t.startsWith(e))return null;let n=t[e.length];return n!==void 0&&c.test(n)?null:{type:e,text:e}}}let m=[e=>e.length>0?null:{type:`EOF`,text:``},a(`=>`),a(`(`),a(`)`),a(`{`),a(`}`),a(`[`),a(`]`),a(`|`),a(`&`),a(`<`),a(`>`),a(`,`),a(`;`),a(`*`),a(`?`),a(`!`),a(`=`),a(`:`),a(`...`),a(`.`),a(`#`),a(`~`),a(`/`),a(`@`),p(`undefined`),p(`null`),p(`function`),p(`this`),p(`new`),p(`module`),p(`event`),p(`extends`),p(`external`),p(`infer`),p(`typeof`),p(`keyof`),p(`readonly`),p(`import`),p(`is`),p(`in`),p(`asserts`),e=>{let t=d(e);return t===null?null:{type:`Number`,text:t}},f,e=>{let t=o(e);return t==null?null:{type:`StringValue`,text:t}}],h=/^\s*\n\s*/;class g{static create(e){let t=this.read(e);e=t.text;let n=this.read(e);return e=n.text,new g(e,void 0,t.token,n.token)}constructor(e,t,n,r){this.text=``,this.text=e,this.previous=t,this.current=n,this.next=r}static read(e,t=!1){t||=h.test(e),e=e.trim();for(let n of m){let r=n(e);if(r!==null){let n=Object.assign(Object.assign({},r),{startOfLine:t});return e=e.slice(n.text.length),{text:e,token:n}}}throw Error(`Unexpected Token `+e)}advance(){let e=g.read(this.text);return new g(e.text,this.current,this.next,e.token)}}function _(e){if(e===void 0)throw Error(`Unexpected undefined`);if(e.type===`JsdocTypeKeyValue`||e.type===`JsdocTypeParameterList`||e.type===`JsdocTypeProperty`||e.type===`JsdocTypeReadonlyProperty`||e.type===`JsdocTypeObjectField`||e.type===`JsdocTypeJsdocObjectField`||e.type===`JsdocTypeIndexSignature`||e.type===`JsdocTypeMappedType`||e.type===`JsdocTypeTypeParameter`)throw new i(e);return e}function v(e){return e.type===`JsdocTypeKeyValue`?b(e):_(e)}function y(e){return e.type===`JsdocTypeName`?e:b(e)}function b(e){if(e.type!==`JsdocTypeKeyValue`)throw new i(e);return e}function x(e){if(e.type===`JsdocTypeVariadic`){if(e.element?.type===`JsdocTypeName`)return e;throw new i(e)}if(e.type!==`JsdocTypeNumber`&&e.type!==`JsdocTypeName`)throw new i(e);return e}function S(e){if(e.type===`JsdocTypeTuple`||e.type===`JsdocTypeGeneric`&&e.meta.brackets===`square`)return e;throw new i(e)}function C(e){return e.type===`JsdocTypeIndexSignature`||e.type===`JsdocTypeMappedType`}var w;(function(e){e[e.ALL=0]=`ALL`,e[e.PARAMETER_LIST=1]=`PARAMETER_LIST`,e[e.OBJECT=2]=`OBJECT`,e[e.KEY_VALUE=3]=`KEY_VALUE`,e[e.INDEX_BRACKETS=4]=`INDEX_BRACKETS`,e[e.UNION=5]=`UNION`,e[e.INTERSECTION=6]=`INTERSECTION`,e[e.PREFIX=7]=`PREFIX`,e[e.INFIX=8]=`INFIX`,e[e.TUPLE=9]=`TUPLE`,e[e.SYMBOL=10]=`SYMBOL`,e[e.OPTIONAL=11]=`OPTIONAL`,e[e.NULLABLE=12]=`NULLABLE`,e[e.KEY_OF_TYPE_OF=13]=`KEY_OF_TYPE_OF`,e[e.FUNCTION=14]=`FUNCTION`,e[e.ARROW=15]=`ARROW`,e[e.ARRAY_BRACKETS=16]=`ARRAY_BRACKETS`,e[e.GENERIC=17]=`GENERIC`,e[e.NAME_PATH=18]=`NAME_PATH`,e[e.PARENTHESIS=19]=`PARENTHESIS`,e[e.SPECIAL_TYPES=20]=`SPECIAL_TYPES`})(w||={});class T{constructor(e,t,n){this.grammar=e,typeof t==`string`?this._lexer=g.create(t):this._lexer=t,this.baseParser=n}get lexer(){return this._lexer}parse(){let e=this.parseType(w.ALL);if(this.lexer.current.type!==`EOF`)throw new r(this.lexer.current);return e}parseType(e){return _(this.parseIntermediateType(e))}parseIntermediateType(e){let t=this.tryParslets(null,e);if(t===null)throw new n(this.lexer.current);return this.parseInfixIntermediateType(t,e)}parseInfixIntermediateType(e,t){let n=this.tryParslets(e,t);for(;n!==null;)e=n,n=this.tryParslets(e,t);return e}tryParslets(e,t){for(let n of this.grammar){let r=n(this,t,e);if(r!==null)return r}return null}consume(e){return Array.isArray(e)||(e=[e]),e.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(e){this._lexer=e.lexer}}function E(e){return e===`}`||e===`EOF`||e===`|`||e===`,`||e===`)`||e===`>`}let D=(e,t,n)=>{let r=e.lexer.current.type,i=e.lexer.next.type;return n==null&&r===`?`&&!E(i)||n!=null&&r===`?`?(e.consume(`?`),n==null?{type:`JsdocTypeNullable`,element:e.parseType(w.NULLABLE),meta:{position:`prefix`}}:{type:`JsdocTypeNullable`,element:_(n),meta:{position:`suffix`}}):null};function O(e){let t=(t,n,r)=>{let i=t.lexer.current.type,a=t.lexer.next.type;if(r===null){if(`parsePrefix`in e&&e.accept(i,a))return e.parsePrefix(t)}else if(`parseInfix`in e&&e.precedence>n&&e.accept(i,a))return e.parseInfix(t,r);return null};return Object.defineProperty(t,`name`,{value:e.name}),t}let k=O({name:`optionalParslet`,accept:e=>e===`=`,precedence:w.OPTIONAL,parsePrefix:e=>(e.consume(`=`),{type:`JsdocTypeOptional`,element:e.parseType(w.OPTIONAL),meta:{position:`prefix`}}),parseInfix:(e,t)=>(e.consume(`=`),{type:`JsdocTypeOptional`,element:_(t),meta:{position:`suffix`}})}),A=O({name:`numberParslet`,accept:e=>e===`Number`,parsePrefix:e=>{let t=parseFloat(e.lexer.current.text);return e.consume(`Number`),{type:`JsdocTypeNumber`,value:t}}}),j=O({name:`parenthesisParslet`,accept:e=>e===`(`,parsePrefix:e=>{if(e.consume(`(`),e.consume(`)`))return{type:`JsdocTypeParameterList`,elements:[]};let t=e.parseIntermediateType(w.ALL);if(!e.consume(`)`))throw Error(`Unterminated parenthesis`);return t.type===`JsdocTypeParameterList`?t:t.type===`JsdocTypeKeyValue`?{type:`JsdocTypeParameterList`,elements:[t]}:{type:`JsdocTypeParenthesis`,element:_(t)}}}),M=O({name:`specialTypesParslet`,accept:(e,t)=>e===`?`&&E(t)||e===`null`||e===`undefined`||e===`*`,parsePrefix:e=>{if(e.consume(`null`))return{type:`JsdocTypeNull`};if(e.consume(`undefined`))return{type:`JsdocTypeUndefined`};if(e.consume(`*`))return{type:`JsdocTypeAny`};if(e.consume(`?`))return{type:`JsdocTypeUnknown`};throw Error(`Unacceptable token: `+e.lexer.current.text)}}),N=O({name:`notNullableParslet`,accept:e=>e===`!`,precedence:w.NULLABLE,parsePrefix:e=>(e.consume(`!`),{type:`JsdocTypeNotNullable`,element:e.parseType(w.NULLABLE),meta:{position:`prefix`}}),parseInfix:(e,t)=>(e.consume(`!`),{type:`JsdocTypeNotNullable`,element:_(t),meta:{position:`suffix`}})});function P({allowTrailingComma:e}){return O({name:`parameterListParslet`,accept:e=>e===`,`,precedence:w.PARAMETER_LIST,parseInfix:(e,t)=>{let r=[v(t)];e.consume(`,`);do try{let t=e.parseIntermediateType(w.PARAMETER_LIST);r.push(v(t))}catch(e){if(e instanceof n)break;throw e}while(e.consume(`,`));if(r.length>0&&r.slice(0,-1).some(e=>e.type===`JsdocTypeVariadic`))throw Error(`Only the last parameter may be a rest parameter`);return{type:`JsdocTypeParameterList`,elements:r}}})}let ee=O({name:`genericParslet`,accept:(e,t)=>e===`<`||e===`.`&&t===`<`,precedence:w.GENERIC,parseInfix:(e,t)=>{let n=e.consume(`.`);e.consume(`<`);let r=[],a=!1;if(e.consume(`infer`)){a=!0;let t=e.parseIntermediateType(w.SYMBOL);if(t.type!==`JsdocTypeName`)throw new i(t,`A typescript asserts always has to have a name on the left side.`);r.push(t)}else do r.push(e.parseType(w.PARAMETER_LIST));while(e.consume(`,`));if(!e.consume(`>`))throw Error(`Unterminated generic parameter list`);return Object.assign(Object.assign({type:`JsdocTypeGeneric`,left:_(t),elements:r},a?{infer:!0}:{}),{meta:{brackets:`angle`,dot:n}})}}),te=O({name:`unionParslet`,accept:e=>e===`|`,precedence:w.UNION,parseInfix:(e,t)=>{e.consume(`|`);let n=[];do n.push(e.parseType(w.UNION));while(e.consume(`|`));return{type:`JsdocTypeUnion`,elements:[_(t),...n]}}}),ne=[D,k,A,j,M,N,P({allowTrailingComma:!0}),ee,te,k];function F({allowSquareBracketsOnAnyType:e,allowJsdocNamePaths:t,pathGrammar:n}){return function(r,a,o){if(o==null||a>=w.NAME_PATH)return null;let s=r.lexer.current.type,c=r.lexer.next.type;if(!(s===`.`&&c!==`<`||s===`[`&&(e||o.type===`JsdocTypeName`)||t&&(s===`~`||s===`#`)))return null;let l,u=!1;r.consume(`.`)?l=`property`:r.consume(`[`)?(l=`property-brackets`,u=!0):r.consume(`~`)?l=`inner`:(r.consume(`#`),l=`instance`);let d=n===null?r:new T(n,r.lexer,r),f=d.parseIntermediateType(w.NAME_PATH);r.acceptLexerState(d);let p;switch(f.type){case`JsdocTypeName`:p={type:`JsdocTypeProperty`,value:f.value,meta:{quote:void 0}};break;case`JsdocTypeNumber`:p={type:`JsdocTypeProperty`,value:f.value.toString(10),meta:{quote:void 0}};break;case`JsdocTypeStringValue`:p={type:`JsdocTypeProperty`,value:f.value,meta:{quote:f.meta.quote}};break;case`JsdocTypeSpecialNamePath`:if(f.specialType===`event`)p=f;else throw new i(f,`Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'`);break;default:throw new i(f,`Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'`)}if(u&&!r.consume(`]`)){let e=r.lexer.current;throw Error(`Unterminated square brackets. Next token is '${e.type}' with text '${e.text}'`)}return{type:`JsdocTypeNamePath`,left:_(o),right:p,pathType:l}}}function re({allowedAdditionalTokens:e}){return O({name:`nameParslet`,accept:t=>t===`Identifier`||t===`this`||t===`new`||e.includes(t),parsePrefix:e=>{let{type:t,text:n}=e.lexer.current;return e.consume(t),{type:`JsdocTypeName`,value:n}}})}let ie=O({name:`stringValueParslet`,accept:e=>e===`StringValue`,parsePrefix:e=>{let t=e.lexer.current.text;return e.consume(`StringValue`),{type:`JsdocTypeStringValue`,value:t.slice(1,-1),meta:{quote:t[0]===`'`?`single`:`double`}}}});function ae({pathGrammar:e,allowedTypes:t}){return O({name:`specialNamePathParslet`,accept:e=>t.includes(e),parsePrefix:t=>{let n=t.lexer.current.type;if(t.consume(n),!t.consume(`:`))return{type:`JsdocTypeName`,value:n};let r,i=t.lexer.current;if(t.consume(`StringValue`))r={type:`JsdocTypeSpecialNamePath`,value:i.text.slice(1,-1),specialType:n,meta:{quote:i.text[0]===`'`?`single`:`double`}};else{let e=``,a=[`Identifier`,`@`,`/`];for(;a.some(e=>t.consume(e));)e+=i.text,i=t.lexer.current;r={type:`JsdocTypeSpecialNamePath`,value:e,specialType:n,meta:{quote:void 0}}}let a=new T(e,t.lexer,t),o=a.parseInfixIntermediateType(r,w.ALL);return t.acceptLexerState(a),_(o)}})}let I=[re({allowedAdditionalTokens:[`external`,`module`]}),ie,A,F({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],oe=[...I,ae({allowedTypes:[`event`],pathGrammar:I})];function se(e){let t;if(e.type===`JsdocTypeParameterList`)t=e.elements;else if(e.type===`JsdocTypeParenthesis`)t=[e.element];else throw new i(e);return t.map(e=>v(e))}function ce(e){let t=se(e);if(t.some(e=>e.type===`JsdocTypeKeyValue`))throw Error(`No parameter should be named`);return t}function le({allowNamedParameters:e,allowNoReturnType:t,allowWithoutParenthesis:n,allowNewAsFunctionKeyword:r}){return O({name:`functionParslet`,accept:(e,t)=>e===`function`||r&&e===`new`&&t===`(`,parsePrefix:r=>{let i=r.consume(`new`);r.consume(`function`);let a=r.lexer.current.type===`(`;if(!a){if(!n)throw Error(`function is missing parameter list`);return{type:`JsdocTypeName`,value:`function`}}let o={type:`JsdocTypeFunction`,parameters:[],arrow:!1,constructor:i,parenthesis:a},s=r.parseIntermediateType(w.FUNCTION);if(e===void 0)o.parameters=ce(s);else{if(i&&s.type===`JsdocTypeFunction`&&s.arrow)return o=s,o.constructor=!0,o;o.parameters=se(s);for(let t of o.parameters)if(t.type===`JsdocTypeKeyValue`&&!e.includes(t.key))throw Error(`only allowed named parameters are ${e.join(`, `)} but got ${t.type}`)}if(r.consume(`:`))o.returnType=r.parseType(w.PREFIX);else if(!t)throw Error(`function is missing return type`);return o}})}function ue({allowPostfix:e,allowEnclosingBrackets:t}){return O({name:`variadicParslet`,accept:e=>e===`...`,precedence:w.PREFIX,parsePrefix:e=>{e.consume(`...`);let r=t&&e.consume(`[`);try{let t=e.parseType(w.PREFIX);if(r&&!e.consume(`]`))throw Error(`Unterminated variadic type. Missing ']'`);return{type:`JsdocTypeVariadic`,element:_(t),meta:{position:`prefix`,squareBrackets:r}}}catch(e){if(e instanceof n){if(r)throw Error(`Empty square brackets for variadic are not allowed.`);return{type:`JsdocTypeVariadic`,meta:{position:void 0,squareBrackets:!1}}}else throw e}},parseInfix:e?(e,t)=>(e.consume(`...`),{type:`JsdocTypeVariadic`,element:_(t),meta:{position:`suffix`,squareBrackets:!1}}):void 0})}let de=O({name:`symbolParslet`,accept:e=>e===`(`,precedence:w.SYMBOL,parseInfix:(e,t)=>{if(t.type!==`JsdocTypeName`)throw Error(`Symbol expects a name on the left side. (Reacting on '(')`);e.consume(`(`);let n={type:`JsdocTypeSymbol`,value:t.value};if(!e.consume(`)`)&&(n.element=x(e.parseIntermediateType(w.SYMBOL)),!e.consume(`)`)))throw Error(`Symbol does not end after value`);return n}}),fe=O({name:`arrayBracketsParslet`,precedence:w.ARRAY_BRACKETS,accept:(e,t)=>e===`[`&&t===`]`,parseInfix:(e,t)=>(e.consume(`[`),e.consume(`]`),{type:`JsdocTypeGeneric`,left:{type:`JsdocTypeName`,value:`Array`},elements:[_(t)],meta:{brackets:`square`,dot:!1}})});function pe({objectFieldGrammar:e,allowKeyTypes:t}){return O({name:`objectParslet`,accept:e=>e===`{`,parsePrefix:n=>{n.consume(`{`);let r={type:`JsdocTypeObject`,meta:{separator:`comma`},elements:[]};if(!n.consume(`}`)){let a,o=new T(e,n.lexer,n);for(;;){o.acceptLexerState(n);let e=o.parseIntermediateType(w.OBJECT);n.acceptLexerState(o),e===void 0&&t&&(e=n.parseIntermediateType(w.OBJECT));let s=!1;if(e.type===`JsdocTypeNullable`&&(s=!0,e=e.element),e.type===`JsdocTypeNumber`||e.type===`JsdocTypeName`||e.type===`JsdocTypeStringValue`){let t;e.type===`JsdocTypeStringValue`&&(t=e.meta.quote),r.elements.push({type:`JsdocTypeObjectField`,key:e.value.toString(),right:void 0,optional:s,readonly:!1,meta:{quote:t}})}else if(e.type===`JsdocTypeObjectField`||e.type===`JsdocTypeJsdocObjectField`)r.elements.push(e);else throw new i(e);if(n.lexer.current.startOfLine)a=`linebreak`,n.consume(`,`)||n.consume(`;`);else if(n.consume(`,`))a=`comma`;else if(n.consume(`;`))a=`semicolon`;else break;if(n.lexer.current.type===`}`)break}if(r.meta.separator=a??`comma`,a===`linebreak`&&(r.meta.propertyIndent=` `),!n.consume(`}`))throw Error(`Unterminated record type. Missing '}'`)}return r}})}function me({allowSquaredProperties:e,allowKeyTypes:t,allowReadonly:n,allowOptional:r}){return O({name:`objectFieldParslet`,precedence:w.KEY_VALUE,accept:e=>e===`:`,parseInfix:(a,o)=>{let s=!1,c=!1;r&&o.type===`JsdocTypeNullable`&&(s=!0,o=o.element),n&&o.type===`JsdocTypeReadonlyProperty`&&(c=!0,o=o.element);let l=a.baseParser??a;if(l.acceptLexerState(a),o.type===`JsdocTypeNumber`||o.type===`JsdocTypeName`||o.type===`JsdocTypeStringValue`||C(o)){if(C(o)&&!e)throw new i(o);l.consume(`:`);let t;o.type===`JsdocTypeStringValue`&&(t=o.meta.quote);let n=l.parseType(w.KEY_VALUE);return a.acceptLexerState(l),{type:`JsdocTypeObjectField`,key:C(o)?o:o.value.toString(),right:n,optional:s,readonly:c,meta:{quote:t}}}else{if(!t)throw new i(o);l.consume(`:`);let e=l.parseType(w.KEY_VALUE);return a.acceptLexerState(l),{type:`JsdocTypeJsdocObjectField`,left:_(o),right:e}}}})}function he({allowOptional:e,allowVariadic:t}){return O({name:`keyValueParslet`,precedence:w.KEY_VALUE,accept:e=>e===`:`,parseInfix:(n,r)=>{let a=!1,o=!1;if(e&&r.type===`JsdocTypeNullable`&&(a=!0,r=r.element),t&&r.type===`JsdocTypeVariadic`&&r.element!==void 0&&(o=!0,r=r.element),r.type!==`JsdocTypeName`)throw new i(r);n.consume(`:`);let s=n.parseType(w.KEY_VALUE);return{type:`JsdocTypeKeyValue`,key:r.value,right:s,optional:a,variadic:o}}})}let ge=[...ne,le({allowWithoutParenthesis:!0,allowNamedParameters:[`this`,`new`],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),ie,ae({allowedTypes:[`module`,`external`,`event`],pathGrammar:oe}),ue({allowEnclosingBrackets:!0,allowPostfix:!0}),re({allowedAdditionalTokens:[`keyof`]}),de,fe,F({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:oe})],_e=[...ge,pe({objectFieldGrammar:[re({allowedAdditionalTokens:[`typeof`,`module`,`in`]}),me({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...ge],allowKeyTypes:!0}),he({allowOptional:!0,allowVariadic:!0})],ve=O({name:`typeOfParslet`,accept:e=>e===`typeof`,parsePrefix:e=>(e.consume(`typeof`),{type:`JsdocTypeTypeof`,element:e.parseType(w.KEY_OF_TYPE_OF)})}),ye=[re({allowedAdditionalTokens:[`typeof`,`module`,`keyof`,`event`,`external`,`in`]}),D,k,ie,A,me({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],be=[...ne,pe({allowKeyTypes:!1,objectFieldGrammar:ye}),re({allowedAdditionalTokens:[`event`,`external`,`in`]}),ve,le({allowWithoutParenthesis:!1,allowNamedParameters:[`this`,`new`],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),ue({allowEnclosingBrackets:!1,allowPostfix:!1}),re({allowedAdditionalTokens:[`keyof`]}),ae({allowedTypes:[`module`],pathGrammar:oe}),F({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:oe}),he({allowOptional:!1,allowVariadic:!1}),de],xe=O({name:`assertsParslet`,accept:e=>e===`asserts`,parsePrefix:e=>{e.consume(`asserts`);let t=e.parseIntermediateType(w.SYMBOL);if(t.type!==`JsdocTypeName`)throw new i(t,`A typescript asserts always has to have a name on the left side.`);return e.consume(`is`)?{type:`JsdocTypeAsserts`,left:t,right:_(e.parseIntermediateType(w.INFIX))}:{type:`JsdocTypeAssertsPlain`,element:t}}});function L({allowQuestionMark:e}){return O({name:`tupleParslet`,accept:e=>e===`[`,parsePrefix:e=>{e.consume(`[`);let t={type:`JsdocTypeTuple`,elements:[]};if(e.consume(`]`))return t;let n=e.parseIntermediateType(w.ALL);if(n.type===`JsdocTypeParameterList`?n.elements[0].type===`JsdocTypeKeyValue`?t.elements=n.elements.map(b):t.elements=n.elements.map(_):n.type===`JsdocTypeKeyValue`?t.elements=[b(n)]:t.elements=[_(n)],!e.consume(`]`))throw Error(`Unterminated '['`);if(t.elements.some(e=>e.type===`JsdocTypeUnknown`))throw Error(`Question mark in tuple not allowed`);return t}})}let Se=O({name:`keyOfParslet`,accept:e=>e===`keyof`,parsePrefix:e=>(e.consume(`keyof`),{type:`JsdocTypeKeyof`,element:_(e.parseType(w.KEY_OF_TYPE_OF))})}),Ce=O({name:`importParslet`,accept:e=>e===`import`,parsePrefix:e=>{if(e.consume(`import`),!e.consume(`(`))throw Error(`Missing parenthesis after import keyword`);let t=e.parseType(w.PREFIX);if(t.type!==`JsdocTypeStringValue`)throw Error(`Only string values are allowed as paths for imports`);if(!e.consume(`)`))throw Error(`Missing closing parenthesis after import keyword`);return{type:`JsdocTypeImport`,element:t}}}),we=O({name:`readonlyPropertyParslet`,accept:e=>e===`readonly`,parsePrefix:e=>(e.consume(`readonly`),{type:`JsdocTypeReadonlyProperty`,element:e.parseIntermediateType(w.KEY_VALUE)})}),R=O({name:`arrowFunctionParslet`,precedence:w.ARROW,accept:e=>e===`=>`,parseInfix:(e,t)=>(e.consume(`=>`),{type:`JsdocTypeFunction`,parameters:se(t).map(y),arrow:!0,constructor:!1,parenthesis:!0,returnType:e.parseType(w.OBJECT)})}),Te=O({name:`genericArrowFunctionParslet`,accept:e=>e===`<`,parsePrefix:e=>{let t=[];e.consume(`<`);do{let n,r=e.parseIntermediateType(w.SYMBOL);if(r.type===`JsdocTypeOptional`&&(r=r.element,n=e.parseType(w.SYMBOL)),r.type!==`JsdocTypeName`)throw new i(r);let a;e.consume(`extends`)&&(a=e.parseType(w.SYMBOL),a.type===`JsdocTypeOptional`&&(a=a.element,n=e.parseType(w.SYMBOL)));let o={type:`JsdocTypeTypeParameter`,name:r};if(a!==void 0&&(o.constraint=a),n!==void 0&&(o.defaultValue=n),t.push(o),e.consume(`>`))break}while(e.consume(`,`));let n=e.parseIntermediateType(w.SYMBOL);return n.typeParameters=t,n}}),Ee=O({name:`intersectionParslet`,accept:e=>e===`&`,precedence:w.INTERSECTION,parseInfix:(e,t)=>{e.consume(`&`);let n=[];do n.push(e.parseType(w.INTERSECTION));while(e.consume(`&`));return{type:`JsdocTypeIntersection`,elements:[_(t),...n]}}}),De=O({name:`predicateParslet`,precedence:w.INFIX,accept:e=>e===`is`,parseInfix:(e,t)=>{if(t.type!==`JsdocTypeName`)throw new i(t,`A typescript predicate always has to have a name on the left side.`);return e.consume(`is`),{type:`JsdocTypePredicate`,left:t,right:_(e.parseIntermediateType(w.INFIX))}}}),z=O({name:`objectSquareBracketPropertyParslet`,accept:e=>e===`[`,parsePrefix:e=>{if(e.baseParser===void 0)throw Error(`Only allowed inside object grammar`);e.consume(`[`);let t=e.lexer.current.text;e.consume(`Identifier`);let n;if(e.consume(`:`)){let r=e.baseParser;r.acceptLexerState(e),n={type:`JsdocTypeIndexSignature`,key:t,right:r.parseType(w.INDEX_BRACKETS)},e.acceptLexerState(r)}else if(e.consume(`in`)){let r=e.baseParser;r.acceptLexerState(e),n={type:`JsdocTypeMappedType`,key:t,right:r.parseType(w.ARRAY_BRACKETS)},e.acceptLexerState(r)}else throw Error(`Missing ':' or 'in' inside square bracketed property.`);if(!e.consume(`]`))throw Error(`Unterminated square brackets`);return n}}),Oe=O({name:`readonlyArrayParslet`,accept:e=>e===`readonly`,parsePrefix:e=>(e.consume(`readonly`),{type:`JsdocTypeReadonlyArray`,element:S(e.parseIntermediateType(w.ALL))})}),ke=O({name:`conditionalParslet`,precedence:w.INFIX,accept:e=>e===`extends`,parseInfix:(e,t)=>{e.consume(`extends`);let n=e.parseType(w.KEY_OF_TYPE_OF).element,r=e.parseType(w.INFIX);return e.consume(`:`),{type:`JsdocTypeConditional`,checksType:_(t),extendsType:n,trueType:r,falseType:e.parseType(w.INFIX)}}}),Ae=[we,re({allowedAdditionalTokens:[`typeof`,`module`,`keyof`,`event`,`external`,`in`]}),D,k,ie,A,me({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),z],je=[...ne,pe({allowKeyTypes:!1,objectFieldGrammar:Ae}),Oe,ve,Se,Ce,ie,le({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:[`this`,`new`,`args`],allowNewAsFunctionKeyword:!0}),L({allowQuestionMark:!1}),ue({allowEnclosingBrackets:!1,allowPostfix:!1}),xe,ke,re({allowedAdditionalTokens:[`event`,`external`,`in`]}),ae({allowedTypes:[`module`],pathGrammar:oe}),fe,R,Te,F({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:oe}),Ee,De,he({allowVariadic:!0,allowOptional:!0})];function Me(e,t){switch(t){case`closure`:return new T(be,e).parse();case`jsdoc`:return new T(_e,e).parse();case`typescript`:return new T(je,e).parse()}}function Ne(e,t=[`typescript`,`closure`,`jsdoc`]){let n;for(let r of t)try{return Me(e,r)}catch(e){n=e}throw n}function Pe(e,t){let n=e[t.type];if(n===void 0)throw Error(`In this set of transform rules exists no rule for type ${t.type}.`);return n(t,t=>Pe(e,t))}function B(e){throw Error(`This transform is not available. Are you trying the correct parsing mode?`)}function Fe(e){let t={params:[]};for(let n of e.parameters)n.type===`JsdocTypeKeyValue`?n.key===`this`?t.this=n.right:n.key===`new`?t.new=n.right:t.params.push(n):t.params.push(n);return t}function Ie(e,t,n){return e===`prefix`?n+t:t+n}function Le(e,t){switch(t){case`double`:return`"${e}"`;case`single`:return`'${e}'`;case void 0:return e}}function Re(){return{JsdocTypeParenthesis:(e,t)=>`(${e.element===void 0?``:t(e.element)})`,JsdocTypeKeyof:(e,t)=>`keyof ${t(e.element)}`,JsdocTypeFunction:(e,t)=>{if(e.arrow){if(e.returnType===void 0)throw Error(`Arrow function needs a return type.`);let n=`${e.typeParameters===void 0?``:`<${e.typeParameters.map(t).join(`, `)??``}>`}(${e.parameters.map(t).join(`, `)}) => ${t(e.returnType)}`;return e.constructor&&(n=`new `+n),n}else{let n=e.constructor?`new`:`function`;return e.parenthesis&&(n+=`(${e.parameters.map(t).join(`, `)})`,e.returnType!==void 0&&(n+=`: ${t(e.returnType)}`)),n}},JsdocTypeName:e=>e.value,JsdocTypeTuple:(e,t)=>`[${e.elements.map(t).join(`, `)}]`,JsdocTypeVariadic:(e,t)=>e.meta.position===void 0?`...`:Ie(e.meta.position,t(e.element),`...`),JsdocTypeNamePath:(e,t)=>{let n=t(e.left),r=t(e.right);switch(e.pathType){case`inner`:return`${n}~${r}`;case`instance`:return`${n}#${r}`;case`property`:return`${n}.${r}`;case`property-brackets`:return`${n}[${r}]`}},JsdocTypeStringValue:e=>Le(e.value,e.meta.quote),JsdocTypeAny:()=>`*`,JsdocTypeGeneric:(e,t)=>{if(e.meta.brackets===`square`){let n=e.elements[0],r=t(n);return n.type===`JsdocTypeUnion`||n.type===`JsdocTypeIntersection`?`(${r})[]`:`${r}[]`}else return`${t(e.left)}${e.meta.dot?`.`:``}<${e.infer===!0?`infer `:``}${e.elements.map(t).join(`, `)}>`},JsdocTypeImport:(e,t)=>`import(${t(e.element)})`,JsdocTypeObjectField:(e,t)=>{let n=``;return e.readonly&&(n+=`readonly `),typeof e.key==`string`?n+=Le(e.key,e.meta.quote):n+=t(e.key),e.optional&&(n+=`?`),e.right===void 0?n:n+`: ${t(e.right)}`},JsdocTypeJsdocObjectField:(e,t)=>`${t(e.left)}: ${t(e.right)}`,JsdocTypeKeyValue:(e,t)=>{let n=e.key;return e.optional&&(n+=`?`),e.variadic&&(n=`...`+n),e.right===void 0?n:n+`: ${t(e.right)}`},JsdocTypeSpecialNamePath:e=>`${e.specialType}:${Le(e.value,e.meta.quote)}`,JsdocTypeNotNullable:(e,t)=>Ie(e.meta.position,t(e.element),`!`),JsdocTypeNull:()=>`null`,JsdocTypeNullable:(e,t)=>Ie(e.meta.position,t(e.element),`?`),JsdocTypeNumber:e=>e.value.toString(),JsdocTypeObject:(e,t)=>`{${(e.meta.separator===`linebreak`&&e.elements.length>1?`
|
|
20
|
+
`+(e.meta.propertyIndent??``):``)+e.elements.map(t).join(e.meta.separator===`comma`?`, `:e.meta.separator===`linebreak`?`
|
|
21
|
+
`+(e.meta.propertyIndent??``):`; `)+(e.meta.separator===`linebreak`&&e.elements.length>1?`
|
|
22
|
+
`:``)}}`,JsdocTypeOptional:(e,t)=>Ie(e.meta.position,t(e.element),`=`),JsdocTypeSymbol:(e,t)=>`${e.value}(${e.element===void 0?``:t(e.element)})`,JsdocTypeTypeof:(e,t)=>`typeof ${t(e.element)}`,JsdocTypeUndefined:()=>`undefined`,JsdocTypeUnion:(e,t)=>e.elements.map(t).join(` | `),JsdocTypeUnknown:()=>`?`,JsdocTypeIntersection:(e,t)=>e.elements.map(t).join(` & `),JsdocTypeProperty:e=>Le(e.value,e.meta.quote),JsdocTypePredicate:(e,t)=>`${t(e.left)} is ${t(e.right)}`,JsdocTypeIndexSignature:(e,t)=>`[${e.key}: ${t(e.right)}]`,JsdocTypeMappedType:(e,t)=>`[${e.key} in ${t(e.right)}]`,JsdocTypeAsserts:(e,t)=>`asserts ${t(e.left)} is ${t(e.right)}`,JsdocTypeReadonlyArray:(e,t)=>`readonly ${t(e.element)}`,JsdocTypeAssertsPlain:(e,t)=>`asserts ${t(e.element)}`,JsdocTypeConditional:(e,t)=>`${t(e.checksType)} extends ${t(e.extendsType)} ? ${t(e.trueType)} : ${t(e.falseType)}`,JsdocTypeTypeParameter:(e,t)=>`${t(e.name)}${e.constraint===void 0?``:` extends ${t(e.constraint)}`}${e.defaultValue===void 0?``:` = ${t(e.defaultValue)}`}`}}let ze=Re();function Be(e){return Pe(ze,e)}let Ve=`null.true.false.break.case.catch.class.const.continue.debugger.default.delete.do.else.export.extends.finally.for.function.if.import.in.instanceof.new.return.super.switch.this.throw.try.typeof.var.void.while.with.yield`.split(`.`);function He(e){let t={type:`NameExpression`,name:e};return Ve.includes(e)&&(t.reservedWord=!0),t}let Ue={JsdocTypeOptional:(e,t)=>{let n=t(e.element);return n.optional=!0,n},JsdocTypeNullable:(e,t)=>{let n=t(e.element);return n.nullable=!0,n},JsdocTypeNotNullable:(e,t)=>{let n=t(e.element);return n.nullable=!1,n},JsdocTypeVariadic:(e,t)=>{if(e.element===void 0)throw Error(`dots without value are not allowed in catharsis mode`);let n=t(e.element);return n.repeatable=!0,n},JsdocTypeAny:()=>({type:`AllLiteral`}),JsdocTypeNull:()=>({type:`NullLiteral`}),JsdocTypeStringValue:e=>He(Le(e.value,e.meta.quote)),JsdocTypeUndefined:()=>({type:`UndefinedLiteral`}),JsdocTypeUnknown:()=>({type:`UnknownLiteral`}),JsdocTypeFunction:(e,t)=>{let n=Fe(e),r={type:`FunctionType`,params:n.params.map(t)};return n.this!==void 0&&(r.this=t(n.this)),n.new!==void 0&&(r.new=t(n.new)),e.returnType!==void 0&&(r.result=t(e.returnType)),r},JsdocTypeGeneric:(e,t)=>({type:`TypeApplication`,applications:e.elements.map(e=>t(e)),expression:t(e.left)}),JsdocTypeSpecialNamePath:e=>He(e.specialType+`:`+Le(e.value,e.meta.quote)),JsdocTypeName:e=>e.value===`function`?{type:`FunctionType`,params:[]}:He(e.value),JsdocTypeNumber:e=>He(e.value.toString()),JsdocTypeObject:(e,t)=>{let n={type:`RecordType`,fields:[]};for(let r of e.elements)r.type!==`JsdocTypeObjectField`&&r.type!==`JsdocTypeJsdocObjectField`?n.fields.push({type:`FieldType`,key:t(r),value:void 0}):n.fields.push(t(r));return n},JsdocTypeObjectField:(e,t)=>{if(typeof e.key!=`string`)throw Error(`Index signatures and mapped types are not supported`);return{type:`FieldType`,key:He(Le(e.key,e.meta.quote)),value:e.right===void 0?void 0:t(e.right)}},JsdocTypeJsdocObjectField:(e,t)=>({type:`FieldType`,key:t(e.left),value:t(e.right)}),JsdocTypeUnion:(e,t)=>({type:`TypeUnion`,elements:e.elements.map(e=>t(e))}),JsdocTypeKeyValue:(e,t)=>({type:`FieldType`,key:He(e.key),value:e.right===void 0?void 0:t(e.right)}),JsdocTypeNamePath:(e,t)=>{let n=t(e.left),r;r=e.right.type===`JsdocTypeSpecialNamePath`?t(e.right).name:Le(e.right.value,e.right.meta.quote);let i=e.pathType===`inner`?`~`:e.pathType===`instance`?`#`:`.`;return He(`${n.name}${i}${r}`)},JsdocTypeSymbol:e=>{let t=``,n=e.element,r=!1;return n?.type===`JsdocTypeVariadic`&&(n.meta.position===`prefix`?t=`...`:r=!0,n=n.element),n?.type===`JsdocTypeName`?t+=n.value:n?.type===`JsdocTypeNumber`&&(t+=n.value.toString()),r&&(t+=`...`),He(`${e.value}(${t})`)},JsdocTypeParenthesis:(e,t)=>t(_(e.element)),JsdocTypeMappedType:B,JsdocTypeIndexSignature:B,JsdocTypeImport:B,JsdocTypeKeyof:B,JsdocTypeTuple:B,JsdocTypeTypeof:B,JsdocTypeIntersection:B,JsdocTypeProperty:B,JsdocTypePredicate:B,JsdocTypeAsserts:B,JsdocTypeReadonlyArray:B,JsdocTypeAssertsPlain:B,JsdocTypeConditional:B,JsdocTypeTypeParameter:B};function We(e){return Pe(Ue,e)}function Ge(e){switch(e){case void 0:return`none`;case`single`:return`single`;case`double`:return`double`}}function Ke(e){switch(e){case`inner`:return`INNER_MEMBER`;case`instance`:return`INSTANCE_MEMBER`;case`property`:return`MEMBER`;case`property-brackets`:return`MEMBER`}}function qe(e,t){return t.length===2?{type:e,left:t[0],right:t[1]}:{type:e,left:t[0],right:qe(e,t.slice(1))}}let V={JsdocTypeOptional:(e,t)=>({type:`OPTIONAL`,value:t(e.element),meta:{syntax:e.meta.position===`prefix`?`PREFIX_EQUAL_SIGN`:`SUFFIX_EQUALS_SIGN`}}),JsdocTypeNullable:(e,t)=>({type:`NULLABLE`,value:t(e.element),meta:{syntax:e.meta.position===`prefix`?`PREFIX_QUESTION_MARK`:`SUFFIX_QUESTION_MARK`}}),JsdocTypeNotNullable:(e,t)=>({type:`NOT_NULLABLE`,value:t(e.element),meta:{syntax:e.meta.position===`prefix`?`PREFIX_BANG`:`SUFFIX_BANG`}}),JsdocTypeVariadic:(e,t)=>{let n={type:`VARIADIC`,meta:{syntax:e.meta.position===`prefix`?`PREFIX_DOTS`:e.meta.position===`suffix`?`SUFFIX_DOTS`:`ONLY_DOTS`}};return e.element!==void 0&&(n.value=t(e.element)),n},JsdocTypeName:e=>({type:`NAME`,name:e.value}),JsdocTypeTypeof:(e,t)=>({type:`TYPE_QUERY`,name:t(e.element)}),JsdocTypeTuple:(e,t)=>({type:`TUPLE`,entries:e.elements.map(t)}),JsdocTypeKeyof:(e,t)=>({type:`KEY_QUERY`,value:t(e.element)}),JsdocTypeImport:e=>({type:`IMPORT`,path:{type:`STRING_VALUE`,quoteStyle:Ge(e.element.meta.quote),string:e.element.value}}),JsdocTypeUndefined:()=>({type:`NAME`,name:`undefined`}),JsdocTypeAny:()=>({type:`ANY`}),JsdocTypeFunction:(e,t)=>{let n=Fe(e),r={type:e.arrow?`ARROW`:`FUNCTION`,params:n.params.map(e=>{if(e.type===`JsdocTypeKeyValue`){if(e.right===void 0)throw Error(`Function parameter without ':' is not expected to be 'KEY_VALUE'`);return{type:`NAMED_PARAMETER`,name:e.key,typeName:t(e.right)}}else return t(e)}),new:null,returns:null};return n.this===void 0?e.arrow||(r.this=null):r.this=t(n.this),n.new!==void 0&&(r.new=t(n.new)),e.returnType!==void 0&&(r.returns=t(e.returnType)),r},JsdocTypeGeneric:(e,t)=>{let n={type:`GENERIC`,subject:t(e.left),objects:e.elements.map(t),meta:{syntax:e.meta.brackets===`square`?`SQUARE_BRACKET`:e.meta.dot?`ANGLE_BRACKET_WITH_DOT`:`ANGLE_BRACKET`}};return e.meta.brackets===`square`&&e.elements[0].type===`JsdocTypeFunction`&&!e.elements[0].parenthesis&&(n.objects[0]={type:`NAME`,name:`function`}),n},JsdocTypeObjectField:(e,t)=>{if(typeof e.key!=`string`)throw Error(`Index signatures and mapped types are not supported`);if(e.right===void 0)return{type:`RECORD_ENTRY`,key:e.key,quoteStyle:Ge(e.meta.quote),value:null,readonly:!1};let n=t(e.right);return e.optional&&(n={type:`OPTIONAL`,value:n,meta:{syntax:`SUFFIX_KEY_QUESTION_MARK`}}),{type:`RECORD_ENTRY`,key:e.key.toString(),quoteStyle:Ge(e.meta.quote),value:n,readonly:!1}},JsdocTypeJsdocObjectField:()=>{throw Error(`Keys may not be typed in jsdoctypeparser.`)},JsdocTypeKeyValue:(e,t)=>{if(e.right===void 0)return{type:`RECORD_ENTRY`,key:e.key,quoteStyle:`none`,value:null,readonly:!1};let n=t(e.right);return e.optional&&(n={type:`OPTIONAL`,value:n,meta:{syntax:`SUFFIX_KEY_QUESTION_MARK`}}),{type:`RECORD_ENTRY`,key:e.key,quoteStyle:`none`,value:n,readonly:!1}},JsdocTypeObject:(e,t)=>{let n=[];for(let r of e.elements)(r.type===`JsdocTypeObjectField`||r.type===`JsdocTypeJsdocObjectField`)&&n.push(t(r));return{type:`RECORD`,entries:n}},JsdocTypeSpecialNamePath:e=>{if(e.specialType!==`module`)throw Error(`jsdoctypeparser does not support type ${e.specialType} at this point.`);return{type:`MODULE`,value:{type:`FILE_PATH`,quoteStyle:Ge(e.meta.quote),path:e.value}}},JsdocTypeNamePath:(e,t)=>{let n=!1,r,i;e.right.type===`JsdocTypeSpecialNamePath`&&e.right.specialType===`event`?(n=!0,r=e.right.value,i=Ge(e.right.meta.quote)):(r=e.right.value,i=Ge(e.right.meta.quote));let a={type:Ke(e.pathType),owner:t(e.left),name:r,quoteStyle:i,hasEventPrefix:n};if(a.owner.type===`MODULE`){let e=a.owner;return a.owner=a.owner.value,e.value=a,e}else return a},JsdocTypeUnion:(e,t)=>qe(`UNION`,e.elements.map(t)),JsdocTypeParenthesis:(e,t)=>({type:`PARENTHESIS`,value:t(_(e.element))}),JsdocTypeNull:()=>({type:`NAME`,name:`null`}),JsdocTypeUnknown:()=>({type:`UNKNOWN`}),JsdocTypeStringValue:e=>({type:`STRING_VALUE`,quoteStyle:Ge(e.meta.quote),string:e.value}),JsdocTypeIntersection:(e,t)=>qe(`INTERSECTION`,e.elements.map(t)),JsdocTypeNumber:e=>({type:`NUMBER_VALUE`,number:e.value.toString()}),JsdocTypeSymbol:B,JsdocTypeProperty:B,JsdocTypePredicate:B,JsdocTypeMappedType:B,JsdocTypeIndexSignature:B,JsdocTypeAsserts:B,JsdocTypeReadonlyArray:B,JsdocTypeAssertsPlain:B,JsdocTypeConditional:B,JsdocTypeTypeParameter:B};function Je(e){return Pe(V,e)}function Ye(){return{JsdocTypeIntersection:(e,t)=>({type:`JsdocTypeIntersection`,elements:e.elements.map(t)}),JsdocTypeGeneric:(e,t)=>({type:`JsdocTypeGeneric`,left:t(e.left),elements:e.elements.map(t),meta:{dot:e.meta.dot,brackets:e.meta.brackets}}),JsdocTypeNullable:e=>e,JsdocTypeUnion:(e,t)=>({type:`JsdocTypeUnion`,elements:e.elements.map(t)}),JsdocTypeUnknown:e=>e,JsdocTypeUndefined:e=>e,JsdocTypeTypeof:(e,t)=>({type:`JsdocTypeTypeof`,element:t(e.element)}),JsdocTypeSymbol:(e,t)=>{let n={type:`JsdocTypeSymbol`,value:e.value};return e.element!==void 0&&(n.element=t(e.element)),n},JsdocTypeOptional:(e,t)=>({type:`JsdocTypeOptional`,element:t(e.element),meta:{position:e.meta.position}}),JsdocTypeObject:(e,t)=>({type:`JsdocTypeObject`,meta:{separator:`comma`},elements:e.elements.map(t)}),JsdocTypeNumber:e=>e,JsdocTypeNull:e=>e,JsdocTypeNotNullable:(e,t)=>({type:`JsdocTypeNotNullable`,element:t(e.element),meta:{position:e.meta.position}}),JsdocTypeSpecialNamePath:e=>e,JsdocTypeObjectField:(e,t)=>({type:`JsdocTypeObjectField`,key:e.key,right:e.right===void 0?void 0:t(e.right),optional:e.optional,readonly:e.readonly,meta:e.meta}),JsdocTypeJsdocObjectField:(e,t)=>({type:`JsdocTypeJsdocObjectField`,left:t(e.left),right:t(e.right)}),JsdocTypeKeyValue:(e,t)=>({type:`JsdocTypeKeyValue`,key:e.key,right:e.right===void 0?void 0:t(e.right),optional:e.optional,variadic:e.variadic}),JsdocTypeImport:(e,t)=>({type:`JsdocTypeImport`,element:t(e.element)}),JsdocTypeAny:e=>e,JsdocTypeStringValue:e=>e,JsdocTypeNamePath:e=>e,JsdocTypeVariadic:(e,t)=>{let n={type:`JsdocTypeVariadic`,meta:{position:e.meta.position,squareBrackets:e.meta.squareBrackets}};return e.element!==void 0&&(n.element=t(e.element)),n},JsdocTypeTuple:(e,t)=>({type:`JsdocTypeTuple`,elements:e.elements.map(t)}),JsdocTypeName:e=>e,JsdocTypeFunction:(e,t)=>{let n={type:`JsdocTypeFunction`,arrow:e.arrow,parameters:e.parameters.map(t),constructor:e.constructor,parenthesis:e.parenthesis};return e.returnType!==void 0&&(n.returnType=t(e.returnType)),n},JsdocTypeKeyof:(e,t)=>({type:`JsdocTypeKeyof`,element:t(e.element)}),JsdocTypeParenthesis:(e,t)=>({type:`JsdocTypeParenthesis`,element:t(e.element)}),JsdocTypeProperty:e=>e,JsdocTypePredicate:(e,t)=>({type:`JsdocTypePredicate`,left:t(e.left),right:t(e.right)}),JsdocTypeIndexSignature:(e,t)=>({type:`JsdocTypeIndexSignature`,key:e.key,right:t(e.right)}),JsdocTypeMappedType:(e,t)=>({type:`JsdocTypeMappedType`,key:e.key,right:t(e.right)}),JsdocTypeAsserts:(e,t)=>({type:`JsdocTypeAsserts`,left:t(e.left),right:t(e.right)}),JsdocTypeReadonlyArray:(e,t)=>({type:`JsdocTypeReadonlyArray`,element:t(e.element)}),JsdocTypeAssertsPlain:(e,t)=>({type:`JsdocTypeAssertsPlain`,element:t(e.element)}),JsdocTypeConditional:(e,t)=>({type:`JsdocTypeConditional`,checksType:t(e.checksType),extendsType:t(e.extendsType),trueType:t(e.trueType),falseType:t(e.falseType)}),JsdocTypeTypeParameter:(e,t)=>({type:`JsdocTypeTypeParameter`,name:t(e.name),constraint:e.constraint===void 0?void 0:t(e.constraint),defaultValue:e.defaultValue===void 0?void 0:t(e.defaultValue)})}}let Xe={JsdocTypeAny:[],JsdocTypeFunction:[`parameters`,`returnType`],JsdocTypeGeneric:[`left`,`elements`],JsdocTypeImport:[],JsdocTypeIndexSignature:[`right`],JsdocTypeIntersection:[`elements`],JsdocTypeKeyof:[`element`],JsdocTypeKeyValue:[`right`],JsdocTypeMappedType:[`right`],JsdocTypeName:[],JsdocTypeNamePath:[`left`,`right`],JsdocTypeNotNullable:[`element`],JsdocTypeNull:[],JsdocTypeNullable:[`element`],JsdocTypeNumber:[],JsdocTypeObject:[`elements`],JsdocTypeObjectField:[`right`],JsdocTypeJsdocObjectField:[`left`,`right`],JsdocTypeOptional:[`element`],JsdocTypeParenthesis:[`element`],JsdocTypeSpecialNamePath:[],JsdocTypeStringValue:[],JsdocTypeSymbol:[`element`],JsdocTypeTuple:[`elements`],JsdocTypeTypeof:[`element`],JsdocTypeUndefined:[],JsdocTypeUnion:[`elements`],JsdocTypeUnknown:[],JsdocTypeVariadic:[`element`],JsdocTypeProperty:[],JsdocTypePredicate:[`left`,`right`],JsdocTypeAsserts:[`left`,`right`],JsdocTypeReadonlyArray:[`element`],JsdocTypeAssertsPlain:[`element`],JsdocTypeConditional:[`checksType`,`extendsType`,`trueType`,`falseType`],JsdocTypeTypeParameter:[`name`,`constraint`,`defaultValue`]};function Ze(e,t,n,r,i){r?.(e,t,n);let a=Xe[e.type];for(let t of a){let n=e[t];if(n!==void 0)if(Array.isArray(n))for(let a of n)Ze(a,e,t,r,i);else Ze(n,e,t,r,i)}i?.(e,t,n)}function Qe(e,t,n){Ze(e,void 0,void 0,t,n)}e.catharsisTransform=We,e.identityTransformRules=Ye,e.jtpTransform=Je,e.parse=Me,e.stringify=Be,e.stringifyRules=Re,e.transform=Pe,e.traverse=Qe,e.tryParse=Ne,e.visitorKeys=Xe}))}}),ta=x({"../../node_modules/browser-dtector/browser-dtector.umd.min.js"(e,t){(function(n,r){typeof e==`object`&&typeof t<`u`?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).BrowserDetector=r()})(e,(function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,(i=r.key,a=void 0,typeof(a=(function(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)})(i,`string`))==`symbol`?a:String(a)),r)}var i,a}var t={chrome:`Google Chrome`,brave:`Brave`,crios:`Google Chrome`,edge:`Microsoft Edge`,edg:`Microsoft Edge`,edgios:`Microsoft Edge`,fennec:`Mozilla Firefox`,jsdom:`JsDOM`,mozilla:`Mozilla Firefox`,fxios:`Mozilla Firefox`,msie:`Microsoft Internet Explorer`,opera:`Opera`,opios:`Opera`,opr:`Opera`,opt:`Opera`,rv:`Microsoft Internet Explorer`,safari:`Safari`,samsungbrowser:`Samsung Browser`,electron:`Electron`},n={android:`Android`,androidTablet:`Android Tablet`,cros:`Chrome OS`,fennec:`Android Tablet`,ipad:`IPad`,iphone:`IPhone`,jsdom:`JsDOM`,linux:`Linux`,mac:`Macintosh`,tablet:`Android Tablet`,win:`Windows`,"windows phone":`Windows Phone`,xbox:`Microsoft Xbox`},r=function(e){var t=RegExp(`^-?\\d+(?:.\\d{0,${arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1}})?`),n=Number(e).toString().match(t);return n?n[0]:null},i=function(){return typeof window<`u`?window.navigator:null};return(function(){function a(e){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,a),this.userAgent=e||i()?.userAgent||null}var o,s,c;return o=a,s=[{key:`parseUserAgent`,value:function(e){var a,o={},s=e||this.userAgent||``,c=s.toLowerCase().replace(/\s\s+/g,` `),l=/(edge)\/([\w.]+)/.exec(c)||/(edg)[/]([\w.]+)/.exec(c)||/(opr)[/]([\w.]+)/.exec(c)||/(opt)[/]([\w.]+)/.exec(c)||/(fxios)[/]([\w.]+)/.exec(c)||/(edgios)[/]([\w.]+)/.exec(c)||/(jsdom)[/]([\w.]+)/.exec(c)||/(samsungbrowser)[/]([\w.]+)/.exec(c)||/(electron)[/]([\w.]+)/.exec(c)||/(chrome)[/]([\w.]+)/.exec(c)||/(crios)[/]([\w.]+)/.exec(c)||/(opios)[/]([\w.]+)/.exec(c)||/(version)(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(c)||/(webkit)[/]([\w.]+).*(version)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(c)||/(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(c)||/(webkit)[/]([\w.]+)/.exec(c)||/(opera)(?:.*version|)[/]([\w.]+)/.exec(c)||/(msie) ([\w.]+)/.exec(c)||/(fennec)[/]([\w.]+)/.exec(c)||c.indexOf(`trident`)>=0&&/(rv)(?::| )([\w.]+)/.exec(c)||c.indexOf(`compatible`)<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(c)||[],u=/(ipad)/.exec(c)||/(ipod)/.exec(c)||/(iphone)/.exec(c)||/(jsdom)/.exec(c)||/(windows phone)/.exec(c)||/(xbox)/.exec(c)||/(win)/.exec(c)||/(tablet)/.exec(c)||/(android)/.test(c)&&/(mobile)/.test(c)===!1&&[`androidTablet`]||/(android)/.exec(c)||/(mac)/.exec(c)||/(linux)/.exec(c)||/(cros)/.exec(c)||[],d=l[5]||l[3]||l[1]||null,f=u[0]||null,p=l[4]||l[2]||null,m=i();d===`chrome`&&typeof(m==null||(a=m.brave)==null?void 0:a.isBrave)==`function`&&(d=`brave`),d&&(o[d]=!0),f&&(o[f]=!0);var h=!!(o.tablet||o.android||o.androidTablet),g=!!(o.ipad||o.tablet||o.androidTablet),_=!!(o.android||o.androidTablet||o.tablet||o.ipad||o.ipod||o.iphone||o[`windows phone`]),v=!!(o.cros||o.mac||o.linux||o.win),y=!!(o.brave||o.chrome||o.crios||o.opr||o.safari||o.edg||o.electron),b=!!(o.msie||o.rv);return{name:t[d]??null,platform:n[f]??null,userAgent:s,version:p,shortVersion:p?r(parseFloat(p),2):null,isAndroid:h,isTablet:g,isMobile:_,isDesktop:v,isWebkit:y,isIE:b}}},{key:`getBrowserInfo`,value:function(){var e=this.parseUserAgent();return{name:e.name,platform:e.platform,userAgent:e.userAgent,version:e.version,shortVersion:e.shortVersion}}}],c=[{key:`VERSION`,get:function(){return`3.4.0`}}],s&&e(o.prototype,s),c&&e(o,c),Object.defineProperty(o,`prototype`,{writable:!1}),a})()}))}}),na={};S(na,{ARGTYPES_INFO_REQUEST:()=>so,ARGTYPES_INFO_RESPONSE:()=>co,CHANNEL_CREATED:()=>oa,CHANNEL_WS_DISCONNECT:()=>aa,CONFIG_ERROR:()=>sa,CREATE_NEW_STORYFILE_REQUEST:()=>ca,CREATE_NEW_STORYFILE_RESPONSE:()=>la,CURRENT_STORY_WAS_SET:()=>ua,DOCS_PREPARED:()=>da,DOCS_RENDERED:()=>fa,FILE_COMPONENT_SEARCH_REQUEST:()=>pa,FILE_COMPONENT_SEARCH_RESPONSE:()=>ma,FORCE_REMOUNT:()=>ga,FORCE_RE_RENDER:()=>ha,GHOST_STORIES_REQUEST:()=>lo,GHOST_STORIES_RESPONSE:()=>uo,GLOBALS_UPDATED:()=>_a,MANAGER_INERT_ATTRIBUTE_CHANGED:()=>mo,NAVIGATE_URL:()=>va,OPEN_IN_EDITOR_REQUEST:()=>fo,OPEN_IN_EDITOR_RESPONSE:()=>po,PLAY_FUNCTION_THREW_EXCEPTION:()=>ya,PRELOAD_ENTRIES:()=>xa,PREVIEW_BUILDER_PROGRESS:()=>Ca,PREVIEW_INITIALIZED:()=>Sa,PREVIEW_KEYDOWN:()=>wa,REGISTER_SUBSCRIPTION:()=>Ta,REQUEST_WHATS_NEW_DATA:()=>eo,RESET_STORY_ARGS:()=>Ea,RESULT_WHATS_NEW_DATA:()=>to,SAVE_STORY_REQUEST:()=>ao,SAVE_STORY_RESPONSE:()=>oo,SELECT_STORY:()=>Da,SET_CONFIG:()=>Oa,SET_CURRENT_STORY:()=>ka,SET_FILTER:()=>Aa,SET_GLOBALS:()=>ja,SET_INDEX:()=>Ma,SET_STORIES:()=>Na,SET_WHATS_NEW_CACHE:()=>no,SHARED_STATE_CHANGED:()=>Pa,SHARED_STATE_SET:()=>Fa,SHARE_ISOLATE_MODE:()=>go,SHARE_POPOVER_OPENED:()=>_o,SHARE_STORY_LINK:()=>ho,STORIES_COLLAPSE_ALL:()=>Ia,STORIES_EXPAND_ALL:()=>La,STORY_ARGS_UPDATED:()=>Ra,STORY_CHANGED:()=>za,STORY_ERRORED:()=>Ba,STORY_FINISHED:()=>Ka,STORY_HOT_UPDATED:()=>Xa,STORY_INDEX_INVALIDATED:()=>Va,STORY_MISSING:()=>Ha,STORY_PREPARED:()=>Ua,STORY_RENDERED:()=>Ga,STORY_RENDER_PHASE_CHANGED:()=>Wa,STORY_SPECIFIED:()=>qa,STORY_THREW_EXCEPTION:()=>Ja,STORY_UNCHANGED:()=>Ya,TELEMETRY_ERROR:()=>io,TOGGLE_WHATS_NEW_NOTIFICATIONS:()=>ro,UNHANDLED_ERRORS_WHILE_PLAYING:()=>ba,UPDATE_GLOBALS:()=>Za,UPDATE_QUERY_PARAMS:()=>Qa,UPDATE_STORY_ARGS:()=>$a,default:()=>ia});var ra=(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))(ra||{}),ia=ra,{CHANNEL_WS_DISCONNECT:aa,CHANNEL_CREATED:oa,CONFIG_ERROR:sa,CREATE_NEW_STORYFILE_REQUEST:ca,CREATE_NEW_STORYFILE_RESPONSE:la,CURRENT_STORY_WAS_SET:ua,DOCS_PREPARED:da,DOCS_RENDERED:fa,FILE_COMPONENT_SEARCH_REQUEST:pa,FILE_COMPONENT_SEARCH_RESPONSE:ma,FORCE_RE_RENDER:ha,FORCE_REMOUNT:ga,GLOBALS_UPDATED:_a,NAVIGATE_URL:va,PLAY_FUNCTION_THREW_EXCEPTION:ya,UNHANDLED_ERRORS_WHILE_PLAYING:ba,PRELOAD_ENTRIES:xa,PREVIEW_INITIALIZED:Sa,PREVIEW_BUILDER_PROGRESS:Ca,PREVIEW_KEYDOWN:wa,REGISTER_SUBSCRIPTION:Ta,RESET_STORY_ARGS:Ea,SELECT_STORY:Da,SET_CONFIG:Oa,SET_CURRENT_STORY:ka,SET_FILTER:Aa,SET_GLOBALS:ja,SET_INDEX:Ma,SET_STORIES:Na,SHARED_STATE_CHANGED:Pa,SHARED_STATE_SET:Fa,STORIES_COLLAPSE_ALL:Ia,STORIES_EXPAND_ALL:La,STORY_ARGS_UPDATED:Ra,STORY_CHANGED:za,STORY_ERRORED:Ba,STORY_INDEX_INVALIDATED:Va,STORY_MISSING:Ha,STORY_PREPARED:Ua,STORY_RENDER_PHASE_CHANGED:Wa,STORY_RENDERED:Ga,STORY_FINISHED:Ka,STORY_SPECIFIED:qa,STORY_THREW_EXCEPTION:Ja,STORY_UNCHANGED:Ya,STORY_HOT_UPDATED:Xa,UPDATE_GLOBALS:Za,UPDATE_QUERY_PARAMS:Qa,UPDATE_STORY_ARGS:$a,REQUEST_WHATS_NEW_DATA:eo,RESULT_WHATS_NEW_DATA:to,SET_WHATS_NEW_CACHE:no,TOGGLE_WHATS_NEW_NOTIFICATIONS:ro,TELEMETRY_ERROR:io,SAVE_STORY_REQUEST:ao,SAVE_STORY_RESPONSE:oo,ARGTYPES_INFO_REQUEST:so,ARGTYPES_INFO_RESPONSE:co,GHOST_STORIES_REQUEST:lo,GHOST_STORIES_RESPONSE:uo,OPEN_IN_EDITOR_REQUEST:fo,OPEN_IN_EDITOR_RESPONSE:po,MANAGER_INERT_ATTRIBUTE_CHANGED:mo,SHARE_STORY_LINK:ho,SHARE_ISOLATE_MODE:go,SHARE_POPOVER_OPENED:_o}=ra,vo={};S(vo,{global:()=>W});var W=(()=>{let e;return e=typeof window<`u`?window:typeof globalThis<`u`?globalThis:typeof global<`u`?global:typeof self<`u`?self:{},e})(),yo={"@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__`},bo=Object.keys(yo),xo={};S(xo,{Channel:()=>Ao,HEARTBEAT_INTERVAL:()=>Nu,HEARTBEAT_MAX_LATENCY:()=>Pu,PostMessageTransport:()=>ju,WebsocketTransport:()=>Fu,createBrowserChannel:()=>Ru,default:()=>Lu});function So(e){var t=[...arguments].slice(1),n=Array.from(typeof e==`string`?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,``);var r=n.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){return e.match(/[\t ]/g)?.length??0})):e},[]);if(r.length){var i=RegExp(`
|
|
23
|
+
[ ]{`+Math.min.apply(Math,r)+`}`,`g`);n=n.map(function(e){return e.replace(i,`
|
|
24
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,``);var a=n[0];return t.forEach(function(e,t){var r=a.match(/(?:^|\n)( *)$/),i=r?r[1]:``,o=e;typeof e==`string`&&e.includes(`
|
|
25
|
+
`)&&(o=String(e).split(`
|
|
26
|
+
`).map(function(e,t){return t===0?e:``+i+e}).join(`
|
|
27
|
+
`)),a+=o+n[t+1]}),a}var Co=new Map,wo=`UNIVERSAL_STORE:`,To={PENDING:`PENDING`,RESOLVED:`RESOLVED`,REJECTED:`REJECTED`},Eo=class e{constructor(t,n){if(this.debugging=!1,this.listeners=new Map([[`*`,new Set]]),this.getState=()=>(this.debug(`getState`,{state:this.state}),this.state),this.subscribe=(e,t)=>{let n=typeof e==`function`,r=n?`*`:e,i=n?e:t;if(this.debug(`subscribe`,{eventType:r,listener:i}),!i)throw TypeError(`Missing first subscribe argument, or second if first is the event type, when subscribing to a UniversalStore with id '${this.id}'`);return this.listeners.has(r)||this.listeners.set(r,new Set),this.listeners.get(r).add(i),()=>{this.debug(`unsubscribe`,{eventType:r,listener:i}),this.listeners.has(r)&&(this.listeners.get(r).delete(i),this.listeners.get(r)?.size===0&&this.listeners.delete(r))}},this.send=t=>{if(this.debug(`send`,{event:t}),this.status!==e.Status.READY)throw TypeError(So`Cannot send event before store is ready. You can get the current status with store.status,
|
|
28
|
+
or await store.readyPromise to wait for the store to be ready before sending events.
|
|
29
|
+
${JSON.stringify({event:t,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.emitToListeners(t,{actor:this.actor}),this.emitToChannel(t,{actor:this.actor})},this.debugging=t.debug??!1,!e.isInternalConstructing)throw TypeError(`UniversalStore is not constructable - use UniversalStore.create() instead`);if(e.isInternalConstructing=!1,this.id=t.id,this.actorId=Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?e.ActorType.LEADER:e.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${wo}${this.id}`,this.debug(`constructor`,{options:t,environmentOverrides:n,channelEventName:this.channelEventName}),this.actor.type===e.ActorType.LEADER)this.syncing={state:To.RESOLVED,promise:Promise.resolve()};else{let e,t,n=new Promise((n,r)=>{e=()=>{this.syncing.state===To.PENDING&&(this.syncing.state=To.RESOLVED,n())},t=e=>{this.syncing.state===To.PENDING&&(this.syncing.state=To.REJECTED,r(e))}});this.syncing={state:To.PENDING,promise:n,resolve:e,reject:t}}this.getState=this.getState.bind(this),this.setState=this.setState.bind(this),this.subscribe=this.subscribe.bind(this),this.onStateChange=this.onStateChange.bind(this),this.send=this.send.bind(this),this.emitToChannel=this.emitToChannel.bind(this),this.prepareThis=this.prepareThis.bind(this),this.emitToListeners=this.emitToListeners.bind(this),this.handleChannelEvents=this.handleChannelEvents.bind(this),this.debug=this.debug.bind(this),this.channel=n?.channel??e.preparation.channel,this.environment=n?.environment??e.preparation.environment,this.channel&&this.environment?(e.preparation.resolve({channel:this.channel,environment:this.environment}),this.prepareThis({channel:this.channel,environment:this.environment})):e.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,n,r=new Promise((e,r)=>{t=t=>{e(t)},n=(...e)=>{r(e)}});e.preparation={resolve:t,reject:n,promise:r}}get actor(){return Object.freeze({id:this.actorId,type:this.actorType,environment:this.environment??e.Environment.UNKNOWN})}get status(){if(!this.channel||!this.environment)return e.Status.UNPREPARED;switch(this.syncing?.state){case To.PENDING:case void 0:return e.Status.SYNCING;case To.REJECTED:return e.Status.ERROR;case To.RESOLVED:default:return e.Status.READY}}untilReady(){return Promise.all([e.preparation.promise,this.syncing?.promise])}static create(t){if(!t||typeof t?.id!=`string`)throw TypeError(`id is required and must be a string, when creating a UniversalStore`);t.debug&&console.debug(So`[UniversalStore]
|
|
30
|
+
create`,{options:t});let n=Co.get(t.id);if(n)return console.warn(So`UniversalStore with id "${t.id}" already exists in this environment, re-using existing.
|
|
31
|
+
You should reuse the existing instance instead of trying to create a new one.`),n;e.isInternalConstructing=!0;let r=new e(t);return Co.set(t.id,r),r}static __prepare(t,n){e.preparation.channel=t,e.preparation.environment=n,e.preparation.resolve({channel:t,environment:n})}setState(t){let n=this.state,r=typeof t==`function`?t(n):t;if(this.debug(`setState`,{newState:r,previousState:n,updater:t}),this.status!==e.Status.READY)throw TypeError(So`Cannot set state before store is ready. You can get the current status with store.status,
|
|
32
|
+
or await store.readyPromise to wait for the store to be ready before sending events.
|
|
33
|
+
${JSON.stringify({newState:r,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.state=r;let i={type:e.InternalEventType.SET_STATE,payload:{state:r,previousState:n}};this.emitToChannel(i,{actor:this.actor}),this.emitToListeners(i,{actor:this.actor})}onStateChange(t){return this.debug(`onStateChange`,{listener:t}),this.subscribe(e.InternalEventType.SET_STATE,({payload:e},n)=>{t(e.state,e.previousState,n)})}emitToChannel(e,t){this.debug(`emitToChannel`,{event:e,eventInfo:t,channel:!!this.channel}),this.channel?.emit(this.channelEventName,{event:e,eventInfo:t})}prepareThis({channel:t,environment:n}){this.channel=t,this.environment=n,this.debug(`prepared`,{channel:!!t,environment:n}),this.channel.on(this.channelEventName,this.handleChannelEvents),this.actor.type===e.ActorType.LEADER?this.emitToChannel({type:e.InternalEventType.LEADER_CREATED},{actor:this.actor}):(this.emitToChannel({type:e.InternalEventType.FOLLOWER_CREATED},{actor:this.actor}),this.emitToChannel({type:e.InternalEventType.EXISTING_STATE_REQUEST},{actor:this.actor}),setTimeout(()=>{this.syncing.reject(TypeError(`No existing state found for follower with id: '${this.id}'. Make sure a leader with the same id exists before creating a follower.`))},1e3))}emitToListeners(e,t){let n=this.listeners.get(e.type),r=this.listeners.get(`*`);this.debug(`emitToListeners`,{event:e,eventInfo:t,eventTypeListeners:n,everythingListeners:r}),[...n??[],...r??[]].forEach(n=>n(e,t))}handleChannelEvents(t){let{event:n,eventInfo:r}=t;if([r.actor.id,r.forwardingActor?.id].includes(this.actor.id)){this.debug(`handleChannelEvents: Ignoring event from self`,{channelEvent:t});return}else if(this.syncing?.state===To.PENDING&&n.type!==e.InternalEventType.EXISTING_STATE_RESPONSE){this.debug(`handleChannelEvents: Ignoring event while syncing`,{channelEvent:t});return}if(this.debug(`handleChannelEvents`,{channelEvent:t}),this.actor.type===e.ActorType.LEADER){let i=!0;switch(n.type){case e.InternalEventType.EXISTING_STATE_REQUEST:i=!1;let t={type:e.InternalEventType.EXISTING_STATE_RESPONSE,payload:this.state};this.debug(`handleChannelEvents: responding to existing state request`,{responseEvent:t}),this.emitToChannel(t,{actor:this.actor}),this.emitToListeners(t,{actor:this.actor});break;case e.InternalEventType.LEADER_CREATED:i=!1,this.syncing.state=To.REJECTED,this.debug(`handleChannelEvents: erroring due to second leader being created`,{event:n}),console.error(So`Detected multiple UniversalStore leaders created with the same id "${this.id}".
|
|
34
|
+
Only one leader can exists at a time, your stores are now in an invalid state.
|
|
35
|
+
Leaders detected:
|
|
36
|
+
this: ${JSON.stringify(this.actor,null,2)}
|
|
37
|
+
other: ${JSON.stringify(r.actor,null,2)}`);break}i&&(this.debug(`handleChannelEvents: forwarding event`,{channelEvent:t}),this.emitToChannel(n,{actor:r.actor,forwardingActor:this.actor}))}if(this.actor.type===e.ActorType.FOLLOWER)switch(n.type){case e.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug(`handleChannelEvents: Setting state from leader's existing state response`,{event:n}),this.syncing?.state!==To.PENDING)break;this.syncing.resolve?.();let t={type:e.InternalEventType.SET_STATE,payload:{state:n.payload,previousState:this.state}};this.state=n.payload,this.emitToListeners(t,r);break}switch(n.type){case e.InternalEventType.SET_STATE:this.debug(`handleChannelEvents: Setting state`,{event:n}),this.state=n.payload.state;break}this.emitToListeners(n,{actor:r.actor})}debug(t,n){this.debugging&&console.debug(So`[UniversalStore::${this.id}::${this.environment??e.Environment.UNKNOWN}]
|
|
38
|
+
${t}`,JSON.stringify({data:n,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){e.preparation.reject(Error(`reset`)),e.setupPreparationPromise(),e.isInternalConstructing=!1}};Eo.ActorType={LEADER:`LEADER`,FOLLOWER:`FOLLOWER`},Eo.Environment={SERVER:`SERVER`,MANAGER:`MANAGER`,PREVIEW:`PREVIEW`,UNKNOWN:`UNKNOWN`,MOCK:`MOCK`},Eo.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`},Eo.Status={UNPREPARED:`UNPREPARED`,SYNCING:`SYNCING`,READY:`READY`,ERROR:`ERROR`},Eo.isInternalConstructing=!1,Eo.setupPreparationPromise();var Do=Eo,Oo=e=>e.transports!==void 0,ko=()=>Math.random().toString(16).slice(2),Ao=class{constructor(e={}){this.sender=ko(),this.events={},this.data={},this.transports=[],this.isAsync=e.async||!1,Oo(e)?(this.transports=e.transports||[],this.transports.forEach(e=>{e.setHandler(e=>this.handleEvent(e))})):this.transports=e.transport?[e.transport]:[],this.transports.forEach(e=>{e.setHandler(e=>this.handleEvent(e))})}get hasTransport(){return this.transports.length>0}addListener(e,t){this.events[e]=this.events[e]||[],this.events[e].push(t)}emit(e,...t){let n={type:e,args:t,from:this.sender},r={};t.length>=1&&t[0]&&t[0].options&&(r=t[0].options);let i=()=>{this.transports.forEach(e=>{e.send(n,r)}),this.handleEvent(n)};this.isAsync?setImmediate(i):i()}last(e){return this.data[e]}eventNames(){return Object.keys(this.events)}listenerCount(e){let t=this.listeners(e);return t?t.length:0}listeners(e){return this.events[e]||void 0}once(e,t){let n=this.onceListener(e,t);this.addListener(e,n)}removeAllListeners(e){e?this.events[e]&&delete this.events[e]:this.events={}}removeListener(e,t){let n=this.listeners(e);n&&(this.events[e]=n.filter(e=>e!==t))}on(e,t){this.addListener(e,t)}off(e,t){this.removeListener(e,t)}handleEvent(e){let t=this.listeners(e.type);t&&t.length&&t.forEach(t=>{t.apply(e,e.args)}),this.data[e.type]=e.args}onceListener(e,t){let n=(...r)=>(this.removeListener(e,n),t(...r));return n}},jo={};S(jo,{deprecate:()=>Ro,logger:()=>Fo,once:()=>Lo,pretty:()=>zo});var{LOGLEVEL:Mo}=W,No={trace:1,debug:2,info:3,warn:4,error:5,silent:10},Po=No[Mo]||No.info,Fo={trace:(e,...t)=>{Po<=No.trace&&console.trace(e,...t)},debug:(e,...t)=>{Po<=No.debug&&console.debug(e,...t)},info:(e,...t)=>{Po<=No.info&&console.info(e,...t)},warn:(e,...t)=>{Po<=No.warn&&console.warn(e,...t)},error:(e,...t)=>{Po<=No.error&&console.error(e,...t)},log:(e,...t)=>{Po<No.silent&&console.log(e,...t)}},Io=new Set,Lo=e=>(t,...n)=>{if(!Io.has(t))return Io.add(t),Fo[e](t,...n)};Lo.clear=()=>Io.clear(),Lo.trace=Lo(`trace`),Lo.debug=Lo(`debug`),Lo.info=Lo(`info`),Lo.warn=Lo(`warn`),Lo.error=Lo(`error`),Lo.log=Lo(`log`);var Ro=Lo(`warn`),zo=e=>(...t)=>{let n=[];if(t.length){let e=/<span\s+style=(['"])([^'"]*)\1\s*>/gi,r=/<\/span>/gi,i;for(n.push(t[0].replace(e,`%c`).replace(r,`%c`));i=e.exec(t[0]);)n.push(i[2]),n.push(``);for(let e=1;e<t.length;e++)n.push(t[e])}Fo[e].apply(Fo,n)};zo.trace=zo(`trace`),zo.debug=zo(`debug`),zo.info=zo(`info`),zo.warn=zo(`warn`),zo.error=zo(`error`);var Bo=Object.create,Vo=Object.defineProperty,Ho=Object.getOwnPropertyDescriptor,Uo=Object.getOwnPropertyNames,Wo=Object.getPrototypeOf,Go=Object.prototype.hasOwnProperty,G=(e,t)=>function(){return t||(0,e[Uo(e)[0]])((t={exports:{}}).exports,t),t.exports},Ko=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of Uo(t))!Go.call(e,i)&&i!==n&&Vo(e,i,{get:()=>t[i],enumerable:!(r=Ho(t,i))||r.enumerable});return e},qo=(e,t,n)=>(n=e==null?{}:Bo(Wo(e)),Ko(t||!e||!e.__esModule?Vo(n,`default`,{value:e,enumerable:!0}):n,e)),Jo=[`bubbles`,`cancelBubble`,`cancelable`,`composed`,`currentTarget`,`defaultPrevented`,`eventPhase`,`isTrusted`,`returnValue`,`srcElement`,`target`,`timeStamp`,`type`],Yo=[`detail`];function Xo(e){let t=Jo.filter(t=>e[t]!==void 0).reduce((t,n)=>(t[n]=e[n],t),{});if(e instanceof CustomEvent)for(let n of Yo.filter(t=>e[t]!==void 0))t[n]=e[n];return t}var Zo=G({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),Qo=G({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),$o=G({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),es=G({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),ts=G({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),ns=G({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),rs=G({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),is=G({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),as=G({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),os=G({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),ss=G({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),cs=G({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),ls=G({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),us=G({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),ds=G({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(e){return e!==e}}}),fs=G({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var n=ds();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}}}),ps=G({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),ms=G({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var n=ps();if(n)try{n([],`length`)}catch{n=null}t.exports=n}}),hs=G({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n}}),gs=G({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}}}),_s=G({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var n=typeof Symbol<`u`&&Symbol,r=gs();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}}}),vs=G({"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}}),ys=G({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){t.exports=Zo().getPrototypeOf||null}}),bs=G({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}}}),xs=G({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var n=bs();t.exports=Function.prototype.bind||n}}),Ss=G({"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}}),Cs=G({"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}}),ws=G({"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}}),Ts=G({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var n=xs(),r=Cs(),i=Ss();t.exports=ws()||n.call(i,r)}}),Es=G({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var n=xs(),r=rs(),i=Ss(),a=Ts();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}}}),Ds=G({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var n=Es(),r=ms(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?(function(e){return s(e==null?e:o(e))}):!1}}),Os=G({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var n=vs(),r=ys(),i=Ds();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null}}),ks=G({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=xs().call(n,r)}}),As=G({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var n,r=Zo(),i=Qo(),a=$o(),o=es(),s=ts(),c=ns(),l=rs(),u=is(),d=as(),f=os(),p=ss(),m=cs(),h=ls(),g=us(),_=fs(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=ms(),x=hs(),S=function(){throw new l},C=b?(function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}})():S,w=_s()(),T=Os(),E=ys(),D=vs(),O=Cs(),k=Ss(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){N=T(T(e)),M[`%Error.prototype%`]=N}var N,P=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},ee={__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`]},te=xs(),ne=ks(),F=te.call(k,Array.prototype.concat),re=te.call(O,Array.prototype.splice),ie=te.call(k,String.prototype.replace),ae=te.call(k,String.prototype.slice),I=te.call(k,RegExp.prototype.exec),oe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,se=/\\(\\)?/g,ce=function(e){var t=ae(e,0,1),n=ae(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return ie(e,oe,function(e,t,n,i){r[r.length]=n?ie(i,se,`$1`):t||e}),r},le=function(e,t){var n=e,r;if(ne(ee,n)&&(r=ee[n],n=`%`+r[0]+`%`),ne(M,n)){var i=M[n];if(i===A&&(i=P(n)),typeof i>`u`&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(I(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ce(e),r=n.length>0?n[0]:``,i=le(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],re(n,F([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=ae(p,0,1),h=ae(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,ne(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=ne(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}}}),js=G({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var n=As(),r=Es(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}}}),Ms=G({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var n=gs();t.exports=function(){return n()&&!!Symbol.toStringTag}}}),Ns=G({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var n=js(),r=Ms()(),i=ks(),a=ms(),o;r?(s=n(`RegExp.prototype.exec`),c={},l=function(){throw c},u={toString:l,valueOf:l},typeof Symbol.toPrimitive==`symbol`&&(u[Symbol.toPrimitive]=l),o=function(e){if(!e||typeof e!=`object`)return!1;var t=a(e,`lastIndex`);if(!(t&&i(t,`value`)))return!1;try{s(e,u)}catch(e){return e===c}}):(d=n(`Object.prototype.toString`),f=`[object RegExp]`,o=function(e){return!e||typeof e!=`object`&&typeof e!=`function`?!1:d(e)===f});var s,c,l,u,d,f;t.exports=o}}),Ps=G({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=r;var n=Object.prototype.toString;function r(e){if(!e)return!1;var t=n.call(e);return t===`[object Function]`||typeof e==`function`&&t!==`[object RegExp]`||typeof window<`u`&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}}}),Fs=G({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var n=js(),r=Ns(),i=n(`RegExp.prototype.exec`),a=rs();t.exports=function(e){if(!r(e))throw new a("`regex` must be a RegExp");return function(t){return i(e,t)!==null}}}}),Is=G({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var n=js(),r=n(`Object.prototype.toString`),i=_s()(),a=Fs();i?(o=n(`Symbol.prototype.toString`),s=a(/^Symbol\(.*\)$/),c=function(e){return typeof e.valueOf()==`symbol`?s(o(e)):!1},t.exports=function(e){if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||r(e)!==`[object Symbol]`)return!1;try{return c(e)}catch{return!1}}):t.exports=function(e){return!1};var o,s,c}}),Ls=qo(Ns()),Rs=qo(Ps()),zs=qo(Is());function Bs(e){return typeof e==`object`&&!!e&&Array.isArray(e)===!1}var Vs=typeof global==`object`&&global&&global.Object===Object&&global,Hs=typeof self==`object`&&self&&self.Object===Object&&self,Us=Vs||Hs||Function(`return this`)(),Ws=Us.Symbol,Gs=Object.prototype,Ks=Gs.hasOwnProperty,qs=Gs.toString,Js=Ws?Ws.toStringTag:void 0;function Ys(e){var t=Ks.call(e,Js),n=e[Js];try{e[Js]=void 0;var r=!0}catch{}var i=qs.call(e);return r&&(t?e[Js]=n:delete e[Js]),i}var Xs=Ys,Zs=Object.prototype.toString;function Qs(e){return Zs.call(e)}var $s=Qs,ec=`[object Null]`,tc=`[object Undefined]`,nc=Ws?Ws.toStringTag:void 0;function rc(e){return e==null?e===void 0?tc:ec:nc&&nc in Object(e)?Xs(e):$s(e)}var ic=rc;function ac(e){return typeof e==`object`&&!!e}var oc=ac,sc=`[object Symbol]`;function cc(e){return typeof e==`symbol`||oc(e)&&ic(e)==sc}var lc=cc;function uc(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var dc=uc,fc=Array.isArray,pc=1/0,mc=Ws?Ws.prototype:void 0,hc=mc?mc.toString:void 0;function gc(e){if(typeof e==`string`)return e;if(fc(e))return dc(e,gc)+``;if(lc(e))return hc?hc.call(e):``;var t=e+``;return t==`0`&&1/e==-pc?`-0`:t}var _c=gc;function vc(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var yc=vc,bc=`[object AsyncFunction]`,xc=`[object Function]`,Sc=`[object GeneratorFunction]`,Cc=`[object Proxy]`;function wc(e){if(!yc(e))return!1;var t=ic(e);return t==xc||t==Sc||t==bc||t==Cc}var Tc=wc,Ec=Us[`__core-js_shared__`],Dc=(function(){var e=/[^.]+$/.exec(Ec&&Ec.keys&&Ec.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``})();function Oc(e){return!!Dc&&Dc in e}var kc=Oc,Ac=Function.prototype.toString;function jc(e){if(e!=null){try{return Ac.call(e)}catch{}try{return e+``}catch{}}return``}var Mc=jc,Nc=/[\\^$.*+?()[\]{}|]/g,Pc=/^\[object .+?Constructor\]$/,Fc=Function.prototype,Ic=Object.prototype,Lc=Fc.toString,Rc=Ic.hasOwnProperty,zc=RegExp(`^`+Lc.call(Rc).replace(Nc,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function Bc(e){return!yc(e)||kc(e)?!1:(Tc(e)?zc:Pc).test(Mc(e))}var Vc=Bc;function Hc(e,t){return e?.[t]}var Uc=Hc;function Wc(e,t){var n=Uc(e,t);return Vc(n)?n:void 0}var Gc=Wc;function Kc(e,t){return e===t||e!==e&&t!==t}var qc=Kc,Jc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Yc=/^\w*$/;function Xc(e,t){if(fc(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||lc(e)?!0:Yc.test(e)||!Jc.test(e)||t!=null&&e in Object(t)}var Zc=Xc,Qc=Gc(Object,`create`);function $c(){this.__data__=Qc?Qc(null):{},this.size=0}var el=$c;function tl(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var nl=tl,rl=`__lodash_hash_undefined__`,il=Object.prototype.hasOwnProperty;function al(e){var t=this.__data__;if(Qc){var n=t[e];return n===rl?void 0:n}return il.call(t,e)?t[e]:void 0}var ol=al,sl=Object.prototype.hasOwnProperty;function cl(e){var t=this.__data__;return Qc?t[e]!==void 0:sl.call(t,e)}var ll=cl,ul=`__lodash_hash_undefined__`;function dl(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Qc&&t===void 0?ul:t,this}var fl=dl;function pl(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}pl.prototype.clear=el,pl.prototype.delete=nl,pl.prototype.get=ol,pl.prototype.has=ll,pl.prototype.set=fl;var ml=pl;function hl(){this.__data__=[],this.size=0}var gl=hl;function _l(e,t){for(var n=e.length;n--;)if(qc(e[n][0],t))return n;return-1}var vl=_l,yl=Array.prototype.splice;function bl(e){var t=this.__data__,n=vl(t,e);return n<0?!1:(n==t.length-1?t.pop():yl.call(t,n,1),--this.size,!0)}var xl=bl;function Sl(e){var t=this.__data__,n=vl(t,e);return n<0?void 0:t[n][1]}var Cl=Sl;function wl(e){return vl(this.__data__,e)>-1}var Tl=wl;function El(e,t){var n=this.__data__,r=vl(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Dl=El;function Ol(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ol.prototype.clear=gl,Ol.prototype.delete=xl,Ol.prototype.get=Cl,Ol.prototype.has=Tl,Ol.prototype.set=Dl;var kl=Ol,Al=Gc(Us,`Map`);function jl(){this.size=0,this.__data__={hash:new ml,map:new(Al||kl),string:new ml}}var Ml=jl;function Nl(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}var Pl=Nl;function Fl(e,t){var n=e.__data__;return Pl(t)?n[typeof t==`string`?`string`:`hash`]:n.map}var Il=Fl;function Ll(e){var t=Il(this,e).delete(e);return this.size-=t?1:0,t}var Rl=Ll;function zl(e){return Il(this,e).get(e)}var Bl=zl;function Vl(e){return Il(this,e).has(e)}var Hl=Vl;function Ul(e,t){var n=Il(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Wl=Ul;function Gl(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Gl.prototype.clear=Ml,Gl.prototype.delete=Rl,Gl.prototype.get=Bl,Gl.prototype.has=Hl,Gl.prototype.set=Wl;var Kl=Gl,ql=`Expected a function`;function Jl(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(ql);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Jl.Cache||Kl),n}Jl.Cache=Kl;var Yl=Jl,Xl=500;function Zl(e){var t=Yl(e,function(e){return n.size===Xl&&n.clear(),e}),n=t.cache;return t}var Ql=Zl,$l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,eu=/\\(\\)?/g,tu=Ql(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace($l,function(e,n,r,i){t.push(r?i.replace(eu,`$1`):n||e)}),t});function nu(e){return e==null?``:_c(e)}var ru=nu;function iu(e,t){return fc(e)?e:Zc(e,t)?[e]:tu(ru(e))}var au=iu,ou=1/0;function su(e){if(typeof e==`string`||lc(e))return e;var t=e+``;return t==`0`&&1/e==-ou?`-0`:t}var cu=su;function lu(e,t){t=au(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[cu(t[n++])];return n&&n==r?e:void 0}var uu=lu;function du(e,t,n){var r=e==null?void 0:uu(e,t);return r===void 0?n:r}var fu=du,pu=Bs,mu=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,hu=e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/);function gu(e){if(!pu(e))return e;let t=e,n=!1;return typeof Event<`u`&&e instanceof Event&&(t=Xo(t),n=!0),t=Object.keys(t).reduce((e,r)=>{try{t[r]&&t[r].toJSON,e[r]=t[r]}catch{n=!0}return e},{}),n?t:e}var _u=function(e){let t,n,r,i;return function(a,o){try{if(a===``)return i=[],t=new Map([[o,`[]`]]),n=new Map,r=[],o;let s=n.get(this)||this;for(;r.length&&s!==r[0];)r.shift(),i.pop();if(typeof o==`boolean`)return o;if(o===void 0)return e.allowUndefined?`_undefined_`:void 0;if(o===null)return null;if(typeof o==`number`)return o===-1/0?`_-Infinity_`:o===1/0?`_Infinity_`:Number.isNaN(o)?`_NaN_`:o;if(typeof o==`bigint`)return`_bigint_${o.toString()}`;if(typeof o==`string`)return mu.test(o)?e.allowDate?`_date_${o}`:void 0:o;if((0,Ls.default)(o))return e.allowRegExp?`_regexp_${o.flags}|${o.source}`:void 0;if((0,Rs.default)(o))return;if((0,zs.default)(o)){if(!e.allowSymbol)return;let t=Symbol.keyFor(o);return t===void 0?`_symbol_${o.toString().slice(7,-1)}`:`_gsymbol_${t}`}if(r.length>=e.maxDepth)return Array.isArray(o)?`[Array(${o.length})]`:`[Object]`;if(o===this)return`_duplicate_${JSON.stringify(i)}`;if(o instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...o.cause?{cause:o.cause}:{},...o,name:o.name,message:o.message,stack:o.stack,"_constructor-name_":o.constructor.name}};if(o?.constructor?.name&&o.constructor.name!==`Object`&&!Array.isArray(o)){let e=t.get(o);if(!e){let e={__isClassInstance__:!0,__className__:o.constructor.name,...Object.getOwnPropertyNames(o).reduce((e,t)=>{try{e[t]=o[t]}catch{}return e},{})};return i.push(a),r.unshift(e),t.set(o,JSON.stringify(i)),o!==e&&n.set(o,e),e}return`_duplicate_${e}`}let c=t.get(o);if(!c){let e=Array.isArray(o)?o:gu(o);return i.push(a),r.unshift(e),t.set(o,JSON.stringify(i)),o!==e&&n.set(o,e),e}return`_duplicate_${c}`}catch{return}}},vu=function(e){let t=[],n;return function(r,i){if(r===``&&(n=i,t.forEach(({target:e,container:t,replacement:r})=>{let i=hu(r)?JSON.parse(r):r.split(`.`);i.length===0?t[e]=n:t[e]=fu(n,i)})),r===`_constructor-name_`)return i;if(pu(i)&&i.__isConvertedError__){let{message:e,...t}=i.errorProperties,n=Error(e);return Object.assign(n,t),n}if(typeof i==`string`&&i.startsWith(`_regexp_`)&&e.allowRegExp){let[,e,t]=i.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(t,e)}return typeof i==`string`&&i.startsWith(`_date_`)&&e.allowDate?new Date(i.replace(`_date_`,``)):typeof i==`string`&&i.startsWith(`_duplicate_`)?(t.push({target:r,container:this,replacement:i.replace(/^_duplicate_/,``)}),null):typeof i==`string`&&i.startsWith(`_symbol_`)&&e.allowSymbol?Symbol(i.replace(`_symbol_`,``)):typeof i==`string`&&i.startsWith(`_gsymbol_`)&&e.allowSymbol?Symbol.for(i.replace(`_gsymbol_`,``)):typeof i==`string`&&i===`_-Infinity_`?-1/0:typeof i==`string`&&i===`_Infinity_`?1/0:typeof i==`string`&&i===`_NaN_`?NaN:typeof i==`string`&&i.startsWith(`_bigint_`)&&typeof BigInt==`function`?BigInt(i.replace(`_bigint_`,``)):i}},yu={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},bu=(e,t={})=>{let n={...yu,...t};return JSON.stringify(gu(e),_u(n),t.space)},xu=()=>{let e=new Map;return function t(n){pu(n)&&Object.entries(n).forEach(([r,i])=>{i===`_undefined_`?n[r]=void 0:e.get(i)||(e.set(i,!0),t(i))}),Array.isArray(n)&&n.forEach((r,i)=>{r===`_undefined_`?(e.set(r,!0),n[i]=void 0):e.get(r)||(e.set(r,!0),t(r))})}},Su=(e,t={})=>{let n={...yu,...t},r=JSON.parse(e,vu(n));return xu()(r),r},Cu=!0,wu=`Invariant failed`;function Tu(e,t){if(!e){if(Cu)throw Error(wu);var n=typeof t==`function`?t():t,r=n?`${wu}: ${n}`:wu;throw Error(r)}}var Eu=e=>{let[t,...n]=Array.from(document.querySelectorAll(`iframe[data-is-storybook]`)).filter(t=>{try{return t.contentWindow?.location.origin===e.source.location.origin&&t.contentWindow?.location.pathname===e.source.location.pathname}catch{}try{return t.contentWindow===e.source}catch{}let n=t.getAttribute(`src`),r;try{if(!n)return!1;({origin:r}=new URL(n,document.location.toString()))}catch{return!1}return r===e.origin}),r=t?.getAttribute(`src`);if(r&&n.length===0){let{protocol:e,host:t,pathname:n}=new URL(r,document.location.toString());return`${e}//${t}${n}`}return n.length>0&&Fo.error(`found multiple candidates for event source`),null},{document:Du,location:Ou}=W,ku=`storybook-channel`,Au={maxDepth:25},ju=class{constructor(e){if(this.config=e,this.connected=!1,this.buffer=[],typeof W?.addEventListener==`function`&&W.addEventListener(`message`,this.handleEvent.bind(this),!1),e.page!==`manager`&&e.page!==`preview`)throw Error(`postmsg-channel: "config.page" cannot be "${e.page}"`)}setHandler(e){this.handler=(...t)=>{e.apply(this,t),!this.connected&&this.getLocalFrame().length&&(this.flush(),this.connected=!0)}}send(e,t){let{target:n,allowRegExp:r,allowSymbol:i,allowDate:a,allowError:o,allowUndefined:s,maxDepth:c,space:l}=t||{},u=Object.fromEntries(Object.entries({allowRegExp:r,allowSymbol:i,allowDate:a,allowError:o,allowUndefined:s,maxDepth:c,space:l}).filter(([e,t])=>typeof t<`u`)),d={...Au,...W.CHANNEL_OPTIONS||{},...u},f=this.getFrames(n),p=bu({key:ku,event:e,refId:new URLSearchParams(Ou?.search||``).get(`refId`)},d);return f.length?(this.buffer.length&&this.flush(),f.forEach(e=>{try{e.postMessage(p,`*`)}catch{Fo.error(`sending over postmessage fail`)}}),Promise.resolve(null)):new Promise((t,n)=>{this.buffer.push({event:e,resolve:t,reject:n})})}flush(){let{buffer:e}=this;this.buffer=[],e.forEach(e=>{this.send(e.event).then(e.resolve).catch(e.reject)})}getFrames(e){if(this.config.page===`manager`){let t=Array.from(Du.querySelectorAll(`iframe[data-is-storybook][data-is-loaded]`)).flatMap(t=>{try{return t.contentWindow&&t.dataset.isStorybook!==void 0&&t.id===e?[t.contentWindow]:[]}catch{return[]}});return t?.length?t:this.getCurrentFrames()}return W&&W.parent&&W.parent!==W.self?[W.parent]:[]}getCurrentFrames(){return this.config.page===`manager`?Array.from(Du.querySelectorAll(`[data-is-storybook="true"]`)).flatMap(e=>e.contentWindow?[e.contentWindow]:[]):W&&W.parent?[W.parent]:[]}getLocalFrame(){return this.config.page===`manager`?Array.from(Du.querySelectorAll(`#storybook-preview-iframe`)).flatMap(e=>e.contentWindow?[e.contentWindow]:[]):W&&W.parent?[W.parent]:[]}handleEvent(e){try{let{data:t}=e,{key:n,event:r,refId:i}=typeof t==`string`&&hu(t)?Su(t,W.CHANNEL_OPTIONS||{}):t;if(n===ku){let n=this.config.page===`manager`?`<span style="color: #37D5D3; background: black"> manager </span>`:`<span style="color: #1EA7FD; background: black"> preview </span>`,a=Object.values(na).includes(r.type)?`<span style="color: #FF4785">${r.type}</span>`:`<span style="color: #FFAE00">${r.type}</span>`;if(i&&(r.refId=i),r.source=this.config.page===`preview`?e.origin:Eu(e),!r.source){zo.error(`${n} received ${a} but was unable to determine the source of the event`);return}let o=`${n} received ${a} (${t.length})`;zo.debug(Ou.origin===r.source?`${o} <span style="color: gray">(on ${Ou.origin} from ${r.source})</span>`:o,...r.args),Tu(this.handler,`ChannelHandler should be set`),this.handler(r)}}catch(e){Fo.error(e)}}},{WebSocket:Mu}=W,Nu=15e3,Pu=5e3,Fu=class{constructor({url:e,onError:t,page:n}){this.buffer=[],this.isReady=!1,this.isClosed=!1,this.pingTimeout=0,this.socket=new Mu(e),this.socket.onopen=()=>{this.isReady=!0,this.heartbeat(),this.flush()},this.socket.onmessage=({data:e})=>{let t=typeof e==`string`&&hu(e)?Su(e):e;Tu(this.handler,`WebsocketTransport handler should be set`),this.handler(t),t.type===`ping`&&(this.heartbeat(),this.send({type:`pong`}))},this.socket.onerror=e=>{t&&t(e)},this.socket.onclose=e=>{Tu(this.handler,`WebsocketTransport handler should be set`),this.handler({type:aa,args:[{reason:e.reason,code:e.code}],from:n||`preview`}),this.isClosed=!0,clearTimeout(this.pingTimeout)}}heartbeat(){clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout(()=>{this.socket.close(3008,`timeout`)},Nu+Pu)}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=bu(e,{maxDepth:15,...W.CHANNEL_OPTIONS});this.socket.send(t)}flush(){let{buffer:e}=this;this.buffer=[],e.forEach(e=>this.send(e))}},{CONFIG_TYPE:Iu}=W,Lu=Ao;function Ru({page:e,extraTransports:t=[]}){let n=[new ju({page:e}),...t];if(Iu===`DEVELOPMENT`){let t=window.location.protocol===`http:`?`ws`:`wss`,{hostname:r,port:i}=window.location,a=`${t}://${r}:${i}/storybook-server-channel`;n.push(new Fu({url:a,onError:()=>{},page:e}))}let r=new Ao({transports:n});return Do.__prepare(r,e===`manager`?Do.Environment.MANAGER:Do.Environment.PREVIEW),r}var zu={};S(zu,{CalledExtractOnStoreError:()=>Ku,CalledPreviewMethodBeforeInitializationError:()=>Ju,Category:()=>Uu,ElementA11yParameterError:()=>ld,EmptyIndexError:()=>Zu,ImplicitActionsDuringRendering:()=>Gu,MdxFileWithNoCsfReferencesError:()=>Xu,MissingRenderToCanvasError:()=>qu,MissingStoryAfterHmrError:()=>Wu,MissingStoryFromCsfFileError:()=>$u,MountMustBeDestructuredError:()=>td,NextJsSharpError:()=>ad,NextjsRouterMocksNotAvailable:()=>od,NoRenderFunctionError:()=>nd,NoStoryMatchError:()=>Qu,NoStoryMountedError:()=>rd,StatusTypeIdMismatchError:()=>id,StoryIndexFetchError:()=>Yu,StoryStoreAccessedBeforeInitializationError:()=>ed,UnknownArgTypesError:()=>sd,UnsupportedViewportDimensionError:()=>cd});function Bu({code:e,category:t}){return`SB_${t}_${String(e).padStart(4,`0`)}`}function Vu(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 Hu=class e extends Error{constructor(t){super(e.getFullMessage(t)),this.data={},this.fromStorybook=!0,this.isHandledError=!1,this.subErrors=[],this.category=t.category,this.documentation=t.documentation??!1,this.code=t.code,this.isHandledError=t.isHandledError??!1,this.name=t.name,this.subErrors=t.subErrors??[]}get fullErrorCode(){return Bu({code:this.code,category:this.category})}get name(){let e=this._name||this.constructor.name;return`${this.fullErrorCode} (${e})`}set name(e){this._name=e}static getFullMessage({documentation:e,code:t,category:n,message:r}){let i;return e===!0?i=`https://storybook.js.org/error/${Bu({code:t,category:n})}?ref=error`:typeof e==`string`?i=Vu(e):Array.isArray(e)&&(i=`
|
|
39
|
+
${e.map(e=>` - ${Vu(e)}`).join(`
|
|
40
|
+
`)}`),`${r}${i==null?``:`
|
|
41
|
+
|
|
42
|
+
More info: ${i}
|
|
43
|
+
`}`}},Uu=(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))(Uu||{}),Wu=class extends Hu{constructor(e){super({name:`MissingStoryAfterHmrError`,category:`PREVIEW_API`,code:1,message:So`
|
|
44
|
+
Couldn't find story matching id '${e.storyId}' after HMR.
|
|
45
|
+
- Did you just rename a story?
|
|
46
|
+
- Did you remove it from your CSF file?
|
|
47
|
+
- Are you sure a story with the id '${e.storyId}' exists?
|
|
48
|
+
- Please check the values in the stories field of your main.js config and see if they would match your CSF File.
|
|
49
|
+
- Also check the browser console and terminal for potential error messages.`}),this.data=e}},Gu=class extends Hu{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:So`
|
|
50
|
+
We detected that you use an implicit action arg while ${e.phase} of your story.
|
|
51
|
+
${e.deprecated?`
|
|
52
|
+
This is deprecated and won't work in Storybook 8 anymore.
|
|
53
|
+
`:``}
|
|
54
|
+
Please provide an explicit spy to your args like this:
|
|
55
|
+
import { fn } from 'storybook/test';
|
|
56
|
+
...
|
|
57
|
+
args: {
|
|
58
|
+
${e.name}: fn()
|
|
59
|
+
}`}),this.data=e}},Ku=class extends Hu{constructor(){super({name:`CalledExtractOnStoreError`,category:`PREVIEW_API`,code:3,message:So`
|
|
60
|
+
Cannot call \`storyStore.extract()\` without calling \`storyStore.cacheAllCsfFiles()\` first.
|
|
61
|
+
|
|
62
|
+
You probably meant to call \`await preview.extract()\` which does the above for you.`})}},qu=class extends Hu{constructor(){super({name:`MissingRenderToCanvasError`,category:`PREVIEW_API`,code:4,message:So`
|
|
63
|
+
Expected your framework's preset to export a \`renderToCanvas\` field.
|
|
64
|
+
|
|
65
|
+
Perhaps it needs to be upgraded for Storybook 7.0?`,documentation:`https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field`})}},Ju=class extends Hu{constructor(e){super({name:`CalledPreviewMethodBeforeInitializationError`,category:`PREVIEW_API`,code:5,message:So`
|
|
66
|
+
Called \`Preview.${e.methodName}()\` before initialization.
|
|
67
|
+
|
|
68
|
+
The preview needs to load the story index before most methods can be called. If you want
|
|
69
|
+
to call \`${e.methodName}\`, try \`await preview.initializationPromise;\` first.
|
|
70
|
+
|
|
71
|
+
If you didn't call the above code, then likely it was called by an addon that needs to
|
|
72
|
+
do the above.`}),this.data=e}},Yu=class extends Hu{constructor(e){super({name:`StoryIndexFetchError`,category:`PREVIEW_API`,code:6,message:So`
|
|
73
|
+
Error fetching \`/index.json\`:
|
|
74
|
+
|
|
75
|
+
${e.text}
|
|
76
|
+
|
|
77
|
+
If you are in development, this likely indicates a problem with your Storybook process,
|
|
78
|
+
check the terminal for errors.
|
|
79
|
+
|
|
80
|
+
If you are in a deployed Storybook, there may have been an issue deploying the full Storybook
|
|
81
|
+
build.`}),this.data=e}},Xu=class extends Hu{constructor(e){super({name:`MdxFileWithNoCsfReferencesError`,category:`PREVIEW_API`,code:7,message:So`
|
|
82
|
+
Tried to render docs entry ${e.storyId} but it is a MDX file that has no CSF
|
|
83
|
+
references, or autodocs for a CSF file that some doesn't refer to itself.
|
|
84
|
+
|
|
85
|
+
This likely is an internal error in Storybook's indexing, or you've attached the
|
|
86
|
+
\`attached-mdx\` tag to an MDX file that is not attached.`}),this.data=e}},Zu=class extends Hu{constructor(){super({name:`EmptyIndexError`,category:`PREVIEW_API`,code:8,message:So`
|
|
87
|
+
Couldn't find any stories in your Storybook.
|
|
88
|
+
|
|
89
|
+
- Please check your stories field of your main.js config: does it match correctly?
|
|
90
|
+
- Also check the browser console and terminal for error messages.`})}},Qu=class extends Hu{constructor(e){super({name:`NoStoryMatchError`,category:`PREVIEW_API`,code:9,message:So`
|
|
91
|
+
Couldn't find story matching '${e.storySpecifier}'.
|
|
92
|
+
|
|
93
|
+
- Are you sure a story with that id exists?
|
|
94
|
+
- Please check your stories field of your main.js config.
|
|
95
|
+
- Also check the browser console and terminal for error messages.`}),this.data=e}},$u=class extends Hu{constructor(e){super({name:`MissingStoryFromCsfFileError`,category:`PREVIEW_API`,code:10,message:So`
|
|
96
|
+
Couldn't find story matching id '${e.storyId}' after importing a CSF file.
|
|
97
|
+
|
|
98
|
+
The file was indexed as if the story was there, but then after importing the file in the browser
|
|
99
|
+
we didn't find the story. Possible reasons:
|
|
100
|
+
- You are using a custom story indexer that is misbehaving.
|
|
101
|
+
- You have a custom file loader that is removing or renaming exports.
|
|
102
|
+
|
|
103
|
+
Please check your browser console and terminal for errors that may explain the issue.`}),this.data=e}},ed=class extends Hu{constructor(){super({name:`StoryStoreAccessedBeforeInitializationError`,category:`PREVIEW_API`,code:11,message:So`
|
|
104
|
+
Cannot access the Story Store until the index is ready.
|
|
105
|
+
|
|
106
|
+
It is not recommended to use methods directly on the Story Store anyway, in Storybook 9 we will
|
|
107
|
+
remove access to the store entirely`})}},td=class extends Hu{constructor(e){super({name:`MountMustBeDestructuredError`,category:`PREVIEW_API`,code:12,message:So`
|
|
108
|
+
Incorrect use of mount in the play function.
|
|
109
|
+
|
|
110
|
+
To use mount in the play function, you must satisfy the following two requirements:
|
|
111
|
+
|
|
112
|
+
1. You *must* destructure the mount property from the \`context\` (the argument passed to your play function).
|
|
113
|
+
This makes sure that Storybook does not start rendering the story before the play function begins.
|
|
114
|
+
|
|
115
|
+
2. Your Storybook framework or builder must be configured to transpile to ES2017 or newer.
|
|
116
|
+
This is because destructuring statements and async/await usages are otherwise transpiled away,
|
|
117
|
+
which prevents Storybook from recognizing your usage of \`mount\`.
|
|
118
|
+
|
|
119
|
+
Note that Angular is not supported. As async/await is transpiled to support the zone.js polyfill.
|
|
120
|
+
|
|
121
|
+
More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#run-code-before-the-component-gets-rendered
|
|
122
|
+
|
|
123
|
+
Received the following play function:
|
|
124
|
+
${e.playFunction}`}),this.data=e}},nd=class extends Hu{constructor(e){super({name:`NoRenderFunctionError`,category:`PREVIEW_API`,code:14,message:So`
|
|
125
|
+
No render function available for storyId '${e.id}'
|
|
126
|
+
`}),this.data=e}},rd=class extends Hu{constructor(){super({name:`NoStoryMountedError`,category:`PREVIEW_API`,code:15,message:So`
|
|
127
|
+
No component is mounted in your story.
|
|
128
|
+
|
|
129
|
+
This usually occurs when you destructure mount in the play function, but forget to call it.
|
|
130
|
+
|
|
131
|
+
For example:
|
|
132
|
+
|
|
133
|
+
async play({ mount, canvasElement }) {
|
|
134
|
+
// 👈 mount should be called: await mount();
|
|
135
|
+
const canvas = within(canvasElement);
|
|
136
|
+
const button = await canvas.findByRole('button');
|
|
137
|
+
await userEvent.click(button);
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
Make sure to either remove it or call mount in your play function.
|
|
141
|
+
`})}},id=class extends Hu{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}},ad=class extends Hu{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:So`
|
|
142
|
+
You are importing avif images, but you don't have sharp installed.
|
|
143
|
+
|
|
144
|
+
You have to install sharp in order to use image optimization features in Next.js.
|
|
145
|
+
`})}},od=class extends Hu{constructor(e){super({name:`NextjsRouterMocksNotAvailable`,category:`FRAMEWORK_NEXTJS`,code:2,message:So`
|
|
146
|
+
Tried to access router mocks from "${e.importType}" but they were not created yet. You might be running code in an unsupported environment.
|
|
147
|
+
`}),this.data=e}},sd=class extends Hu{constructor(e){super({name:`UnknownArgTypesError`,category:`DOCS-TOOLS`,code:1,documentation:`https://github.com/storybookjs/storybook/issues/26606`,message:So`
|
|
148
|
+
There was a failure when generating detailed ArgTypes in ${e.language} for:
|
|
149
|
+
${JSON.stringify(e.type,null,2)}
|
|
150
|
+
|
|
151
|
+
Storybook will fall back to use a generic type description instead.
|
|
152
|
+
|
|
153
|
+
This type is either not supported or it is a bug in the docgen generation in Storybook.
|
|
154
|
+
If you think this is a bug, please detail it as much as possible in the Github issue.
|
|
155
|
+
`}),this.data=e}},cd=class extends Hu{constructor(e){super({name:`UnsupportedViewportDimensionError`,category:`ADDON_VITEST`,code:1,message:So`
|
|
156
|
+
Encountered an unsupported value "${e.value}" when setting the viewport ${e.dimension} dimension.
|
|
157
|
+
|
|
158
|
+
The Storybook plugin only supports values in the following units:
|
|
159
|
+
- px, vh, vw, em, rem and %.
|
|
160
|
+
|
|
161
|
+
You can either change the viewport for this story to use one of the supported units or skip the test by adding '!test' to the story's tags per https://storybook.js.org/docs/writing-stories/tags
|
|
162
|
+
`}),this.data=e}},ld=class extends Hu{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.`})}},ud={};S(ud,{Addon_TypesEnum:()=>dd,CoreWebpackCompiler:()=>md,Feature:()=>gd,SupportedBuilder:()=>hd,SupportedFramework:()=>fd,SupportedLanguage:()=>_d,SupportedRenderer:()=>pd});var dd=(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))(dd||{}),fd=(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))(fd||{}),pd=(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))(pd||{}),md=(e=>(e.Babel=`babel`,e.SWC=`swc`,e))(md||{}),hd=(e=>(e.WEBPACK5=`webpack5`,e.VITE=`vite`,e.RSBUILD=`rsbuild`,e))(hd||{}),gd=(e=>(e.DOCS=`docs`,e.TEST=`test`,e.ONBOARDING=`onboarding`,e.A11Y=`a11y`,e))(gd||{}),_d=(e=>(e.JAVASCRIPT=`javascript`,e.TYPESCRIPT=`typescript`,e))(_d||{}),vd={};S(vd,{ADDON_ID:()=>bd,CLEAR_ID:()=>Cd,CYCLIC_KEY:()=>wd,EVENT_ID:()=>Sd,PANEL_ID:()=>xd,PARAM_KEY:()=>yd,action:()=>bU,actions:()=>xU,config:()=>hU,configureActions:()=>gU});var yd=`actions`,bd=`storybook/actions`,xd=`${bd}/panel`,Sd=`${bd}/action-event`,Cd=`${bd}/action-clear`,wd=`$___storybook.isCyclic`,Td={};S(Td,{DocsContext:()=>_H,HooksContext:()=>jd,Preview:()=>gH,PreviewWeb:()=>eU,PreviewWithSelection:()=>EH,ReporterAPI:()=>zV,StoryStore:()=>eH,Tag:()=>pf,UrlStore:()=>WH,WebView:()=>$H,addons:()=>Ad,applyHooks:()=>Fd,combineArgs:()=>HB,combineParameters:()=>hV,composeConfigs:()=>NV,composeStepRunners:()=>OV,composeStories:()=>YV,composeStory:()=>qV,createPlaywrightTest:()=>XV,decorateStory:()=>fV,defaultDecorateStory:()=>mV,emitTransformCode:()=>mU,filterArgTypes:()=>CV,getCsfFactoryAnnotations:()=>BV,inferControls:()=>TV,makeDecorator:()=>nf,mockChannel:()=>Ed,normalizeArrays:()=>iV,normalizeProjectAnnotations:()=>EV,normalizeStory:()=>oV,pauseAnimations:()=>FV,prepareMeta:()=>_V,prepareStory:()=>gV,sanitizeStoryContextUpdate:()=>pV,setDefaultProjectAnnotations:()=>VV,setProjectAnnotations:()=>GV,simulateDOMContentLoaded:()=>aU,simulatePageLoad:()=>cU,sortStoriesV7:()=>lH,useArgs:()=>ef,useCallback:()=>Ud,useChannel:()=>Zd,useEffect:()=>Xd,useGlobals:()=>tf,useMemo:()=>Hd,useParameter:()=>$d,useReducer:()=>Yd,useRef:()=>Gd,useState:()=>Jd,useStoryContext:()=>Qd,userOrAutoTitle:()=>aH,userOrAutoTitleFromSpecifier:()=>iH,waitForAnimations:()=>IV});function Ed(){return new Ao({transport:{setHandler:()=>{},send:()=>{}}})}var Dd=class{constructor(){this.getChannel=()=>{if(!this.channel){let e=Ed();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())})}},Od=`__STORYBOOK_ADDONS_PREVIEW`;function kd(){return W[Od]||(W[Od]=new Dd),W[Od]}var Ad=kd(),jd=class{constructor(){this.hookListsMap=void 0,this.mountedDecorators=void 0,this.prevMountedDecorators=void 0,this.currentHooks=void 0,this.nextHookIndex=void 0,this.currentPhase=void 0,this.currentEffects=void 0,this.prevEffects=void 0,this.currentDecoratorName=void 0,this.hasUpdates=void 0,this.currentContext=void 0,this.renderListener=e=>{e===this.currentContext?.id&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},this.init()}init(){this.hookListsMap=new WeakMap,this.mountedDecorators=new Set,this.prevMountedDecorators=new Set,this.currentHooks=[],this.nextHookIndex=0,this.currentPhase=`NONE`,this.currentEffects=[],this.prevEffects=[],this.currentDecoratorName=null,this.hasUpdates=!1,this.currentContext=null}clean(){this.prevEffects.forEach(e=>{e.destroy&&e.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){let e=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,e}triggerEffects(){this.prevEffects.forEach(e=>{!this.currentEffects.includes(e)&&e.destroy&&e.destroy()}),this.currentEffects.forEach(e=>{this.prevEffects.includes(e)||(e.destroy=e.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),Ad.getChannel().on(Ga,this.renderListener)}removeRenderListeners(){Ad.getChannel().removeListener(Ga,this.renderListener)}};function Md(e){let t=(...t)=>{let{hooks:n}=typeof t[0]==`function`?t[1]:t[0],r=n.currentPhase,i=n.currentHooks,a=n.nextHookIndex,o=n.currentDecoratorName;n.currentDecoratorName=e.name,n.prevMountedDecorators.has(e)?(n.currentPhase=`UPDATE`,n.currentHooks=n.hookListsMap.get(e)||[]):(n.currentPhase=`MOUNT`,n.currentHooks=[],n.hookListsMap.set(e,n.currentHooks),n.prevMountedDecorators.add(e)),n.nextHookIndex=0;let s=W.STORYBOOK_HOOKS_CONTEXT;W.STORYBOOK_HOOKS_CONTEXT=n;let c=e(...t);if(W.STORYBOOK_HOOKS_CONTEXT=s,n.currentPhase===`UPDATE`&&n.getNextHook()!=null)throw Error(`Rendered fewer hooks than expected. This may be caused by an accidental early return statement.`);return n.currentPhase=r,n.currentHooks=i,n.nextHookIndex=a,n.currentDecoratorName=o,c};return t.originalFn=e,t}var Nd=0,Pd=25,Fd=e=>(t,n)=>{let r=e(Md(t),n.map(e=>Md(e)));return e=>{let{hooks:i}=e;i.prevMountedDecorators??=new Set,i.mountedDecorators=new Set([t,...n]),i.currentContext=e,i.hasUpdates=!1;let a=r(e);for(Nd=1;i.hasUpdates;)if(i.hasUpdates=!1,i.currentEffects=[],a=r(e),Nd+=1,Nd>Pd)throw Error(`Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.`);return i.addRenderListeners(),a}},Id=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),Ld=()=>Error(`Storybook preview hooks can only be called inside decorators and story functions.`);function Rd(){return W.STORYBOOK_HOOKS_CONTEXT||null}function zd(){let e=Rd();if(e==null)throw Ld();return e}function Bd(e,t,n){let r=zd();if(r.currentPhase===`MOUNT`){n!=null&&!Array.isArray(n)&&Fo.warn(`${e} received a final argument that is not an array (instead, received ${n}). When specified, the final argument must be an array.`);let i={name:e,deps:n};return r.currentHooks.push(i),t(i),i}if(r.currentPhase===`UPDATE`){let i=r.getNextHook();if(i==null)throw Error(`Rendered more hooks than during the previous render.`);return i.name!==e&&Fo.warn(`Storybook has detected a change in the order of Hooks${r.currentDecoratorName?` called by ${r.currentDecoratorName}`:``}. This will lead to bugs and errors if not fixed.`),n!=null&&i.deps==null&&Fo.warn(`${e} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`),n!=null&&i.deps!=null&&n.length!==i.deps.length&&Fo.warn(`The final argument passed to ${e} changed size between renders. The order and size of this array must remain constant.
|
|
163
|
+
Previous: ${i.deps}
|
|
164
|
+
Incoming: ${n}`),(n==null||i.deps==null||!Id(n,i.deps))&&(t(i),i.deps=n),i}throw Ld()}function Vd(e,t,n){let{memoizedState:r}=Bd(e,e=>{e.memoizedState=t()},n);return r}function Hd(e,t){return Vd(`useMemo`,e,t)}function Ud(e,t){return Vd(`useCallback`,()=>e,t)}function Wd(e,t){return Vd(e,()=>({current:t}),[])}function Gd(e){return Wd(`useRef`,e)}function Kd(){let e=Rd();if(e!=null&&e.currentPhase!==`NONE`)e.hasUpdates=!0;else try{Ad.getChannel().emit(ha)}catch{Fo.warn(`State updates of Storybook preview hooks work only in browser`)}}function qd(e,t){let n=Wd(e,typeof t==`function`?t():t);return[n.current,e=>{n.current=typeof e==`function`?e(n.current):e,Kd()}]}function Jd(e){return qd(`useState`,e)}function Yd(e,t,n){let[r,i]=qd(`useReducer`,n==null?t:()=>n(t));return[r,t=>i(n=>e(n,t))]}function Xd(e,t){let n=zd(),r=Vd(`useEffect`,()=>({create:e}),t);n.currentEffects.includes(r)||n.currentEffects.push(r)}function Zd(e,t=[]){let n=Ad.getChannel();return Xd(()=>(Object.entries(e).forEach(([e,t])=>n.on(e,t)),()=>{Object.entries(e).forEach(([e,t])=>n.removeListener(e,t))}),[...Object.keys(e),...t]),Ud(n.emit.bind(n),[n])}function Qd(){let{currentContext:e}=zd();if(e==null)throw Ld();return e}function $d(e,t){let{parameters:n}=Qd();if(e)return n[e]??t}function ef(){let e=Ad.getChannel(),{id:t,args:n}=Qd();return[n,Ud(n=>e.emit($a,{storyId:t,updatedArgs:n}),[e,t]),Ud(n=>e.emit(Ea,{storyId:t,argNames:n}),[e,t])]}function tf(){let e=Ad.getChannel(),{globals:t}=Qd();return[t,Ud(t=>e.emit(Za,{globals:t}),[e])]}var nf=({name:e,parameterName:t,wrapper:n,skipIfNoParametersOrOptions:r=!1})=>{let i=e=>(i,a)=>{let o=a.parameters&&a.parameters[t];return o&&o.disable||r&&!e&&!o?i(a):n(i,a,{options:e,parameters:o})};return(...n)=>typeof n[0]==`function`?i()(...n):(...r)=>{if(r.length>1)return n.length>1?i(n)(...r):i(...n)(...r);throw Error(`Passing stories directly into ${e}() is not allowed,
|
|
165
|
+
instead use addDecorator(${e}) and pass options with the '${t}' parameter`)}};function rf(e){return e.replace(/_/g,` `).replace(/-/g,` `).replace(/\./g,` `).replace(/([^\n])([A-Z])([a-z])/g,(e,t,n,r)=>`${t} ${n}${r}`).replace(/([a-z])([A-Z])/g,(e,t,n)=>`${t} ${n}`).replace(/([a-z])([0-9])/gi,(e,t,n)=>`${t} ${n}`).replace(/([0-9])([a-z])/gi,(e,t,n)=>`${t} ${n}`).replace(/(\s|^)(\w)/g,(e,t,n)=>`${t}${n.toUpperCase()}`).replace(/ +/g,` `).trim()}var af=w(T(),1),of=e=>e.map(e=>typeof e<`u`).filter(Boolean).length,sf=(e,t)=>{let{exists:n,eq:r,neq:i,truthy:a}=e;if(of([n,r,i,a])>1)throw Error(`Invalid conditional test ${JSON.stringify({exists:n,eq:r,neq:i})}`);if(typeof r<`u`)return(0,af.isEqual)(t,r);if(typeof i<`u`)return!(0,af.isEqual)(t,i);if(typeof n<`u`){let e=typeof t<`u`;return n?e:!e}return typeof a>`u`||a?!!t:!t},cf=(e,t,n)=>{if(!e.if)return!0;let{arg:r,global:i}=e.if;if(of([r,i])!==1)throw Error(`Invalid conditional value ${JSON.stringify({arg:r,global:i})}`);let a=r?t[r]:n[i];return sf(e.if,a)};function lf(e){return e!=null&&uf(e).includes(`mount`)}function uf(e){let[,t,n]=e.toString().match(/[^(]*\(([^)]+)\)(?:.*{([^]+)})?/)||[];if(!t)return[];let[r]=ff(t);if(!r)return[];let[,i]=r.match(/^{([^]+)}$/)||[];if(i)return ff(df(i)).map(e=>e.replace(/:.*|=.*/g,``).trim());if(!r.match(/^[a-z_$][0-9a-z_$]*$/i))return[];let a=r.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),[,o]=n?.trim()?.match(RegExp(`^(?:const|let|var)\\s*{([^}]+)}\\s*=\\s*${a};`))||[];return o?ff(df(o)).map(e=>e.replace(/:.*|=.*/g,``).trim()):[]}function df(e){return e=e.replace(/\/\/.*$/gm,``),e=e.replace(/\/\*[\s\S]*?\*\//g,``),e}function ff(e){let t=[],n=[],r=0;for(let i=0;i<e.length;i++)if(e[i]===`{`||e[i]===`[`)n.push(e[i]===`{`?`}`:`]`);else if(e[i]===n[n.length-1])n.pop();else if(!n.length&&e[i]===`,`){let n=e.substring(r,i).trim();n&&t.push(n),r=i+1}let i=e.substring(r).trim();return i&&t.push(i),t}var pf={AUTODOCS:`autodocs`,ATTACHED_MDX:`attached-mdx`,UNATTACHED_MDX:`unattached-mdx`,PLAY_FN:`play-fn`,TEST_FN:`test-fn`,DEV:`dev`,TEST:`test`,MANIFEST:`manifest`},mf={};S(mf,{argsEnhancers:()=>gf});var hf=(e,t)=>typeof t[e]>`u`&&!(e in t),gf=[e=>{let{initialArgs:t,argTypes:n,parameters:{actions:r}}=e;return r?.disable||!n?{}:Object.entries(n).filter(([e,t])=>!!t.action).reduce((e,[n,r])=>(hf(n,t)&&(e[n]=bU(typeof r.action==`string`?r.action:n)),e),{})},e=>{let{initialArgs:t,argTypes:n,id:r,parameters:{actions:i}}=e;if(!i||i.disable||!i.argTypesRegex||!n)return{};let a=new RegExp(i.argTypesRegex);return Object.entries(n).filter(([e])=>!!a.test(e)).reduce((e,[n,i])=>(hf(n,t)&&(e[n]=bU(n,{implicit:!0,id:r})),e),{})}],_f={};S(_f,{loaders:()=>FL});var vf={};S(vf,{buildQueries:()=>fI,clearAllMocks:()=>PE,configure:()=>pI,createEvent:()=>mI,expect:()=>ML,findAllByAltText:()=>gI,findAllByDisplayValue:()=>_I,findAllByLabelText:()=>vI,findAllByPlaceholderText:()=>yI,findAllByRole:()=>bI,findAllByTestId:()=>xI,findAllByText:()=>SI,findAllByTitle:()=>CI,findByAltText:()=>wI,findByDisplayValue:()=>TI,findByLabelText:()=>EI,findByPlaceholderText:()=>DI,findByRole:()=>OI,findByTestId:()=>kI,findByText:()=>AI,findByTitle:()=>jI,fireEvent:()=>hI,fn:()=>jE,getAllByAltText:()=>MI,getAllByDisplayValue:()=>NI,getAllByLabelText:()=>PI,getAllByPlaceholderText:()=>FI,getAllByRole:()=>II,getAllByTestId:()=>LI,getAllByText:()=>RI,getAllByTitle:()=>zI,getByAltText:()=>BI,getByDisplayValue:()=>VI,getByLabelText:()=>HI,getByPlaceholderText:()=>UI,getByRole:()=>WI,getByTestId:()=>GI,getByText:()=>KI,getByTitle:()=>qI,getConfig:()=>JI,getDefaultNormalizer:()=>YI,getElementError:()=>XI,getNodeText:()=>ZI,getQueriesForElement:()=>QI,getRoles:()=>$I,getSuggestedQuery:()=>eL,isInaccessible:()=>tL,isMockFunction:()=>qw,logDOM:()=>nL,logRoles:()=>rL,mocked:()=>LE,mocks:()=>Kw,onMockCall:()=>kE,prettyDOM:()=>iL,prettyFormat:()=>kL,queries:()=>aL,queryAllByAltText:()=>oL,queryAllByAttribute:()=>sL,queryAllByDisplayValue:()=>cL,queryAllByLabelText:()=>lL,queryAllByPlaceholderText:()=>uL,queryAllByRole:()=>dL,queryAllByTestId:()=>fL,queryAllByText:()=>pL,queryAllByTitle:()=>mL,queryByAltText:()=>hL,queryByAttribute:()=>gL,queryByDisplayValue:()=>_L,queryByLabelText:()=>vL,queryByPlaceholderText:()=>yL,queryByRole:()=>bL,queryByTestId:()=>xL,queryByText:()=>SL,queryByTitle:()=>CL,queryHelpers:()=>wL,resetAllMocks:()=>FE,restoreAllMocks:()=>IE,sb:()=>NL,screen:()=>TL,spyOn:()=>AE,uninstrumentedUserEvent:()=>AL,userEvent:()=>jL,waitFor:()=>EL,waitForElementToBeRemoved:()=>DL,within:()=>OL});var yf=Object.entries({reset:[0,0],bold:[1,22,`\x1B[22m\x1B[1m`],dim:[2,22,`\x1B[22m\x1B[2m`],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]});function bf(e){return String(e)}bf.open=``,bf.close=``,yf.reduce((e,[t])=>(e[t]=bf,e),{isColorSupported:!1});function xf(e=!1){let t=typeof process<`u`?process:void 0,n=t?.env||{},r=t?.argv||[];return!(`NO_COLOR`in n||r.includes(`--no-color`))&&(`FORCE_COLOR`in n||r.includes(`--color`)||t?.platform===`win32`||e&&n.TERM!==`dumb`||`CI`in n)||typeof window<`u`&&!!window.chrome}function Sf(e=!1){let t=xf(e),n=(e,t,n,r)=>{let i=``,a=0;do i+=e.substring(a,r)+n,a=r+t.length,r=e.indexOf(t,a);while(~r);return i+e.substring(a)},r=(e,t,r=e)=>{let i=i=>{let a=String(i),o=a.indexOf(t,e.length);return~o?e+n(a,t,r,o)+t:e+a+t};return i.open=e,i.close=t,i},i={isColorSupported:t},a=e=>`\x1B[${e}m`;for(let[e,n]of yf)i[e]=t?r(a(n[0]),a(n[1]),n[2]):bf;return i}var Cf=Sf();function wf(e,t){return t.forEach(function(t){t&&typeof t!=`string`&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if(n!==`default`&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}function Tf(e,t){let n=Object.keys(e),r=t===null?n:n.sort(t);if(Object.getOwnPropertySymbols)for(let t of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,t).enumerable&&r.push(t);return r}function Ef(e,t,n,r,i,a,o=`: `){let s=``,c=0,l=e.next();if(!l.done){s+=t.spacingOuter;let u=n+t.indent;for(;!l.done;){if(s+=u,c++===t.maxWidth){s+=`…`;break}let n=a(l.value[0],t,u,r,i),d=a(l.value[1],t,u,r,i);s+=n+o+d,l=e.next(),l.done?t.min||(s+=`,`):s+=`,${t.spacingInner}`}s+=t.spacingOuter+n}return s}function Df(e,t,n,r,i,a){let o=``,s=0,c=e.next();if(!c.done){o+=t.spacingOuter;let l=n+t.indent;for(;!c.done;){if(o+=l,s++===t.maxWidth){o+=`…`;break}o+=a(c.value,t,l,r,i),c=e.next(),c.done?t.min||(o+=`,`):o+=`,${t.spacingInner}`}o+=t.spacingOuter+n}return o}function Of(e,t,n,r,i,a){let o=``;e=e instanceof ArrayBuffer?new DataView(e):e;let s=e=>e instanceof DataView,c=s(e)?e.byteLength:e.length;if(c>0){o+=t.spacingOuter;let l=n+t.indent;for(let n=0;n<c;n++){if(o+=l,n===t.maxWidth){o+=`…`;break}(s(e)||n in e)&&(o+=a(s(e)?e.getInt8(n):e[n],t,l,r,i)),n<c-1?o+=`,${t.spacingInner}`:t.min||(o+=`,`)}o+=t.spacingOuter+n}return o}function kf(e,t,n,r,i,a){let o=``,s=Tf(e,t.compareKeys);if(s.length>0){o+=t.spacingOuter;let c=n+t.indent;for(let n=0;n<s.length;n++){let l=s[n],u=a(l,t,c,r,i),d=a(e[l],t,c,r,i);o+=`${c+u}: ${d}`,n<s.length-1?o+=`,${t.spacingInner}`:t.min||(o+=`,`)}o+=t.spacingOuter+n}return o}var Af=typeof Symbol==`function`&&Symbol.for?Symbol.for(`jest.asymmetricMatcher`):1267621,jf=` `,Mf={serialize:(e,t,n,r,i,a)=>{let o=e.toString();if(o===`ArrayContaining`||o===`ArrayNotContaining`)return++r>t.maxDepth?`[${o}]`:`${o+jf}[${Of(e.sample,t,n,r,i,a)}]`;if(o===`ObjectContaining`||o===`ObjectNotContaining`)return++r>t.maxDepth?`[${o}]`:`${o+jf}{${kf(e.sample,t,n,r,i,a)}}`;if(o===`StringMatching`||o===`StringNotMatching`||o===`StringContaining`||o===`StringNotContaining`)return o+jf+a(e.sample,t,n,r,i);if(typeof e.toAsymmetricMatcher!=`function`)throw TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},test:e=>e&&e.$$typeof===Af},Nf=` `,Pf=new Set([`DOMStringMap`,`NamedNodeMap`]),Ff=/^(?:HTML\w*Collection|NodeList)$/;function If(e){return Pf.has(e)||Ff.test(e)}var Lf=e=>e&&e.constructor&&!!e.constructor.name&&If(e.constructor.name);function Rf(e){return e.constructor.name===`NamedNodeMap`}var zf={serialize:(e,t,n,r,i,a)=>{let o=e.constructor.name;return++r>t.maxDepth?`[${o}]`:(t.min?``:o+Nf)+(Pf.has(o)?`{${kf(Rf(e)?[...e].reduce((e,t)=>(e[t.name]=t.value,e),{}):{...e},t,n,r,i,a)}}`:`[${Of([...e],t,n,r,i,a)}]`)},test:Lf};function Bf(e){return e.replaceAll(`<`,`<`).replaceAll(`>`,`>`)}function Vf(e,t,n,r,i,a,o){let s=r+n.indent,c=n.colors;return e.map(e=>{let l=t[e],u=o(l,n,s,i,a);return typeof l!=`string`&&(u.includes(`
|
|
166
|
+
`)&&(u=n.spacingOuter+s+u+n.spacingOuter+r),u=`{${u}}`),`${n.spacingInner+r+c.prop.open+e+c.prop.close}=${c.value.open}${u}${c.value.close}`}).join(``)}function Hf(e,t,n,r,i,a){return e.map(e=>t.spacingOuter+n+(typeof e==`string`?Uf(e,t):a(e,t,n,r,i))).join(``)}function Uf(e,t){let n=t.colors.content;return n.open+Bf(e)+n.close}function Wf(e,t){let n=t.colors.comment;return`${n.open}<!--${Bf(e)}-->${n.close}`}function Gf(e,t,n,r,i){let a=r.colors.tag;return`${a.open}<${e}${t&&a.close+t+r.spacingOuter+i+a.open}${n?`>${a.close}${n}${r.spacingOuter}${i}${a.open}</${e}`:`${t&&!r.min?``:` `}/`}>${a.close}`}function Kf(e,t){let n=t.colors.tag;return`${n.open}<${e}${n.close} \u2026${n.open} />${n.close}`}var qf=1,Jf=3,Yf=8,Xf=11,Zf=/^(?:(?:HTML|SVG)\w*)?Element$/;function Qf(e){try{return typeof e.hasAttribute==`function`&&e.hasAttribute(`is`)}catch{return!1}}function $f(e){let t=e.constructor.name,{nodeType:n,tagName:r}=e,i=typeof r==`string`&&r.includes(`-`)||Qf(e);return n===qf&&(Zf.test(t)||i)||n===Jf&&t===`Text`||n===Yf&&t===`Comment`||n===Xf&&t===`DocumentFragment`}var ep=e=>{var t;return(e==null||(t=e.constructor)==null?void 0:t.name)&&$f(e)};function tp(e){return e.nodeType===Jf}function np(e){return e.nodeType===Yf}function rp(e){return e.nodeType===Xf}var ip={serialize:(e,t,n,r,i,a)=>{if(tp(e))return Uf(e.data,t);if(np(e))return Wf(e.data,t);let o=rp(e)?`DocumentFragment`:e.tagName.toLowerCase();return++r>t.maxDepth?Kf(o,t):Gf(o,Vf(rp(e)?[]:Array.from(e.attributes,e=>e.name).sort(),rp(e)?{}:[...e.attributes].reduce((e,t)=>(e[t.name]=t.value,e),{}),t,n+t.indent,r,i,a),Hf(Array.prototype.slice.call(e.childNodes||e.children),t,n+t.indent,r,i,a),t,n)},test:ep},ap=`@@__IMMUTABLE_ITERABLE__@@`,op=`@@__IMMUTABLE_LIST__@@`,sp=`@@__IMMUTABLE_KEYED__@@`,cp=`@@__IMMUTABLE_MAP__@@`,lp=`@@__IMMUTABLE_ORDERED__@@`,up=`@@__IMMUTABLE_RECORD__@@`,dp=`@@__IMMUTABLE_SEQ__@@`,fp=`@@__IMMUTABLE_SET__@@`,pp=`@@__IMMUTABLE_STACK__@@`,mp=e=>`Immutable.${e}`,hp=e=>`[${e}]`,gp=` `,_p=`…`;function vp(e,t,n,r,i,a,o){return++r>t.maxDepth?hp(mp(o)):`${mp(o)+gp}{${Ef(e.entries(),t,n,r,i,a)}}`}function yp(e){let t=0;return{next(){if(t<e._keys.length){let n=e._keys[t++];return{done:!1,value:[n,e.get(n)]}}return{done:!0,value:void 0}}}}function bp(e,t,n,r,i,a){let o=mp(e._name||`Record`);return++r>t.maxDepth?hp(o):`${o+gp}{${Ef(yp(e),t,n,r,i,a)}}`}function xp(e,t,n,r,i,a){let o=mp(`Seq`);return++r>t.maxDepth?hp(o):e[sp]?`${o+gp}{${e._iter||e._object?Ef(e.entries(),t,n,r,i,a):_p}}`:`${o+gp}[${e._iter||e._array||e._collection||e._iterable?Df(e.values(),t,n,r,i,a):_p}]`}function Sp(e,t,n,r,i,a,o){return++r>t.maxDepth?hp(mp(o)):`${mp(o)+gp}[${Df(e.values(),t,n,r,i,a)}]`}var Cp={serialize:(e,t,n,r,i,a)=>e[cp]?vp(e,t,n,r,i,a,e[lp]?`OrderedMap`:`Map`):e[op]?Sp(e,t,n,r,i,a,`List`):e[fp]?Sp(e,t,n,r,i,a,e[lp]?`OrderedSet`:`Set`):e[pp]?Sp(e,t,n,r,i,a,`Stack`):e[dp]?xp(e,t,n,r,i,a):bp(e,t,n,r,i,a),test:e=>e&&(e[ap]===!0||e[up]===!0)};function wp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var Tp={exports:{}},Ep={},Dp;function Op(){if(Dp)return Ep;Dp=1;var e=Symbol.for(`react.transitional.element`),t=Symbol.for(`react.portal`),n=Symbol.for(`react.fragment`),r=Symbol.for(`react.strict_mode`),i=Symbol.for(`react.profiler`),a=Symbol.for(`react.consumer`),o=Symbol.for(`react.context`),s=Symbol.for(`react.forward_ref`),c=Symbol.for(`react.suspense`),l=Symbol.for(`react.suspense_list`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.view_transition`),p=Symbol.for(`react.client.reference`);function m(p){if(typeof p==`object`&&p){var m=p.$$typeof;switch(m){case e:switch(p=p.type,p){case n:case i:case r:case c:case l:case f:return p;default:switch(p&&=p.$$typeof,p){case o:case s:case d:case u:return p;case a:return p;default:return m}}case t:return m}}}return Ep.ContextConsumer=a,Ep.ContextProvider=o,Ep.Element=e,Ep.ForwardRef=s,Ep.Fragment=n,Ep.Lazy=d,Ep.Memo=u,Ep.Portal=t,Ep.Profiler=i,Ep.StrictMode=r,Ep.Suspense=c,Ep.SuspenseList=l,Ep.isContextConsumer=function(e){return m(e)===a},Ep.isContextProvider=function(e){return m(e)===o},Ep.isElement=function(t){return typeof t==`object`&&!!t&&t.$$typeof===e},Ep.isForwardRef=function(e){return m(e)===s},Ep.isFragment=function(e){return m(e)===n},Ep.isLazy=function(e){return m(e)===d},Ep.isMemo=function(e){return m(e)===u},Ep.isPortal=function(e){return m(e)===t},Ep.isProfiler=function(e){return m(e)===i},Ep.isStrictMode=function(e){return m(e)===r},Ep.isSuspense=function(e){return m(e)===c},Ep.isSuspenseList=function(e){return m(e)===l},Ep.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===n||e===i||e===r||e===c||e===l||typeof e==`object`&&!!e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===o||e.$$typeof===a||e.$$typeof===s||e.$$typeof===p||e.getModuleId!==void 0)},Ep.typeOf=m,Ep}var kp;function Ap(){return kp||(kp=1,Tp.exports=Op()),Tp.exports}var jp=Ap(),Mp=wf({__proto__:null,default:wp(jp)},[jp]),Np={exports:{}},Pp={},Fp;function Ip(){if(Fp)return Pp;Fp=1;var e=Symbol.for(`react.element`),t=Symbol.for(`react.portal`),n=Symbol.for(`react.fragment`),r=Symbol.for(`react.strict_mode`),i=Symbol.for(`react.profiler`),a=Symbol.for(`react.provider`),o=Symbol.for(`react.context`),s=Symbol.for(`react.server_context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.suspense_list`),d=Symbol.for(`react.memo`),f=Symbol.for(`react.lazy`),p=Symbol.for(`react.offscreen`),m=Symbol.for(`react.module.reference`);function h(p){if(typeof p==`object`&&p){var m=p.$$typeof;switch(m){case e:switch(p=p.type,p){case n:case i:case r:case l:case u:return p;default:switch(p&&=p.$$typeof,p){case s:case o:case c:case f:case d:case a:return p;default:return m}}case t:return m}}}return Pp.ContextConsumer=o,Pp.ContextProvider=a,Pp.Element=e,Pp.ForwardRef=c,Pp.Fragment=n,Pp.Lazy=f,Pp.Memo=d,Pp.Portal=t,Pp.Profiler=i,Pp.StrictMode=r,Pp.Suspense=l,Pp.SuspenseList=u,Pp.isAsyncMode=function(){return!1},Pp.isConcurrentMode=function(){return!1},Pp.isContextConsumer=function(e){return h(e)===o},Pp.isContextProvider=function(e){return h(e)===a},Pp.isElement=function(t){return typeof t==`object`&&!!t&&t.$$typeof===e},Pp.isForwardRef=function(e){return h(e)===c},Pp.isFragment=function(e){return h(e)===n},Pp.isLazy=function(e){return h(e)===f},Pp.isMemo=function(e){return h(e)===d},Pp.isPortal=function(e){return h(e)===t},Pp.isProfiler=function(e){return h(e)===i},Pp.isStrictMode=function(e){return h(e)===r},Pp.isSuspense=function(e){return h(e)===l},Pp.isSuspenseList=function(e){return h(e)===u},Pp.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===n||e===i||e===r||e===l||e===u||e===p||typeof e==`object`&&!!e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===a||e.$$typeof===o||e.$$typeof===c||e.$$typeof===m||e.getModuleId!==void 0)},Pp.typeOf=h,Pp}var Lp;function Rp(){return Lp||(Lp=1,Np.exports=Ip()),Np.exports}var zp=Rp(),Bp=wf({__proto__:null,default:wp(zp)},[zp]),Vp=Object.fromEntries([`isAsyncMode`,`isConcurrentMode`,`isContextConsumer`,`isContextProvider`,`isElement`,`isForwardRef`,`isFragment`,`isLazy`,`isMemo`,`isPortal`,`isProfiler`,`isStrictMode`,`isSuspense`,`isSuspenseList`,`isValidElementType`].map(e=>[e,t=>Bp[e](t)||Mp[e](t)]));function Hp(e,t=[]){if(Array.isArray(e))for(let n of e)Hp(n,t);else e!=null&&e!==!1&&e!==``&&t.push(e);return t}function Up(e){let t=e.type;if(typeof t==`string`)return t;if(typeof t==`function`)return t.displayName||t.name||`Unknown`;if(Vp.isFragment(e))return`React.Fragment`;if(Vp.isSuspense(e))return`React.Suspense`;if(typeof t==`object`&&t){if(Vp.isContextProvider(e))return`Context.Provider`;if(Vp.isContextConsumer(e))return`Context.Consumer`;if(Vp.isForwardRef(e)){if(t.displayName)return t.displayName;let e=t.render.displayName||t.render.name||``;return e===``?`ForwardRef`:`ForwardRef(${e})`}if(Vp.isMemo(e)){let e=t.displayName||t.type.displayName||t.type.name||``;return e===``?`Memo`:`Memo(${e})`}}return`UNDEFINED`}function Wp(e){let{props:t}=e;return Object.keys(t).filter(e=>e!==`children`&&t[e]!==void 0).sort()}var Gp={serialize:(e,t,n,r,i,a)=>++r>t.maxDepth?Kf(Up(e),t):Gf(Up(e),Vf(Wp(e),e.props,t,n+t.indent,r,i,a),Hf(Hp(e.props.children),t,n+t.indent,r,i,a),t,n),test:e=>e!=null&&Vp.isElement(e)},Kp=typeof Symbol==`function`&&Symbol.for?Symbol.for(`react.test.json`):245830487;function qp(e){let{props:t}=e;return t?Object.keys(t).filter(e=>t[e]!==void 0).sort():[]}var Jp={serialize:(e,t,n,r,i,a)=>++r>t.maxDepth?Kf(e.type,t):Gf(e.type,e.props?Vf(qp(e),e.props,t,n+t.indent,r,i,a):``,e.children?Hf(e.children,t,n+t.indent,r,i,a):``,t,n),test:e=>e&&e.$$typeof===Kp},Yp=Object.prototype.toString,Xp=Date.prototype.toISOString,Zp=Error.prototype.toString,Qp=RegExp.prototype.toString;function $p(e){return typeof e.constructor==`function`&&e.constructor.name||`Object`}function em(e){return typeof window<`u`&&e===window}var tm=/^Symbol\((.*)\)(.*)$/,nm=/\n/g,rm=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function im(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 am(e){return Object.is(e,-0)?`-0`:String(e)}function om(e){return`${e}n`}function sm(e,t){return t?`[Function ${e.name||`anonymous`}]`:`[Function]`}function cm(e){return String(e).replace(tm,`Symbol($1)`)}function lm(e){return`[${Zp.call(e)}]`}function um(e,t,n,r){if(e===!0||e===!1)return`${e}`;if(e===void 0)return`undefined`;if(e===null)return`null`;let i=typeof e;if(i===`number`)return am(e);if(i===`bigint`)return om(e);if(i===`string`)return r?`"${e.replaceAll(/"|\\/g,`\\$&`)}"`:`"${e}"`;if(i===`function`)return sm(e,t);if(i===`symbol`)return cm(e);let a=Yp.call(e);return a===`[object WeakMap]`?`WeakMap {}`:a===`[object WeakSet]`?`WeakSet {}`:a===`[object Function]`||a===`[object GeneratorFunction]`?sm(e,t):a===`[object Symbol]`?cm(e):a===`[object Date]`?Number.isNaN(+e)?`Date { NaN }`:Xp.call(e):a===`[object Error]`?lm(e):a===`[object RegExp]`?n?Qp.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,`\\$&`):Qp.call(e):e instanceof Error?lm(e):null}function dm(e,t,n,r,i,a){if(i.includes(e))return`[Circular]`;i=[...i],i.push(e);let o=++r>t.maxDepth,s=t.min;if(t.callToJSON&&!o&&e.toJSON&&typeof e.toJSON==`function`&&!a)return gm(e.toJSON(),t,n,r,i,!0);let c=Yp.call(e);return c===`[object Arguments]`?o?`[Arguments]`:`${s?``:`Arguments `}[${Of(e,t,n,r,i,gm)}]`:im(c)?o?`[${e.constructor.name}]`:`${s||!t.printBasicPrototype&&e.constructor.name===`Array`?``:`${e.constructor.name} `}[${Of(e,t,n,r,i,gm)}]`:c===`[object Map]`?o?`[Map]`:`Map {${Ef(e.entries(),t,n,r,i,gm,` => `)}}`:c===`[object Set]`?o?`[Set]`:`Set {${Df(e.values(),t,n,r,i,gm)}}`:o||em(e)?`[${$p(e)}]`:`${s||!t.printBasicPrototype&&$p(e)===`Object`?``:`${$p(e)} `}{${kf(e,t,n,r,i,gm)}}`}var fm={test:e=>e&&e instanceof Error,serialize(e,t,n,r,i,a){if(i.includes(e))return`[Circular]`;i=[...i,e];let o=++r>t.maxDepth,{message:s,cause:c,...l}=e,u={message:s,...typeof c<`u`?{cause:c}:{},...e instanceof AggregateError?{errors:e.errors}:{},...l},d=e.name===`Error`?$p(e):e.name;return o?`[${d}]`:`${d} {${Ef(Object.entries(u).values(),t,n,r,i,a)}}`}};function pm(e){return e.serialize!=null}function mm(e,t,n,r,i,a){let o;try{o=pm(e)?e.serialize(t,n,r,i,a,gm):e.print(t,e=>gm(e,n,r,i,a),e=>{let t=r+n.indent;return t+e.replaceAll(nm,`
|
|
167
|
+
${t}`)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(e){throw new rm(e.message,e.stack)}if(typeof o!=`string`)throw TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof o}".`);return o}function hm(e,t){for(let n of e)try{if(n.test(t))return n}catch(e){throw new rm(e.message,e.stack)}return null}function gm(e,t,n,r,i,a){let o=hm(t.plugins,e);if(o!==null)return mm(o,e,t,n,r,i);let s=um(e,t.printFunctionName,t.escapeRegex,t.escapeString);return s===null?dm(e,t,n,r,i,a):s}var _m={comment:`gray`,content:`reset`,prop:`yellow`,tag:`cyan`,value:`green`},vm=Object.keys(_m),ym={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,maxWidth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:_m};function bm(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(ym,t))throw Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw Error(`pretty-format: Options "min" and "indent" cannot be used together.`)}function xm(){return vm.reduce((e,t)=>{let n=_m[t],r=n&&Cf[n];if(r&&typeof r.close==`string`&&typeof r.open==`string`)e[t]=r;else throw Error(`pretty-format: Option "theme" has a key "${t}" whose value "${n}" is undefined in ansi-styles.`);return e},Object.create(null))}function Sm(){return vm.reduce((e,t)=>(e[t]={close:``,open:``},e),Object.create(null))}function Cm(e){return e?.printFunctionName??ym.printFunctionName}function wm(e){return e?.escapeRegex??ym.escapeRegex}function Tm(e){return e?.escapeString??ym.escapeString}function Em(e){return{callToJSON:e?.callToJSON??ym.callToJSON,colors:e?.highlight?xm():Sm(),compareKeys:typeof e?.compareKeys==`function`||e?.compareKeys===null?e.compareKeys:ym.compareKeys,escapeRegex:wm(e),escapeString:Tm(e),indent:e?.min?``:Dm(e?.indent??ym.indent),maxDepth:e?.maxDepth??ym.maxDepth,maxWidth:e?.maxWidth??ym.maxWidth,min:e?.min??ym.min,plugins:e?.plugins??ym.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:Cm(e),spacingInner:e?.min?` `:`
|
|
168
|
+
`,spacingOuter:e?.min?``:`
|
|
169
|
+
`}}function Dm(e){return Array.from({length:e+1}).join(` `)}function Om(e,t){if(t&&(bm(t),t.plugins)){let n=hm(t.plugins,e);if(n!==null)return mm(n,e,Em(t),``,0,[])}let n=um(e,Cm(t),wm(t),Tm(t));return n===null?dm(e,Em(t),``,0,[]):n}var km={AsymmetricMatcher:Mf,DOMCollection:zf,DOMElement:ip,Immutable:Cp,ReactElement:Gp,ReactTestComponent:Jp,Error:fm},Am={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`]},jm={special:`cyan`,number:`yellow`,bigint:`yellow`,boolean:`yellow`,undefined:`grey`,null:`bold`,string:`green`,symbol:`green`,date:`magenta`,regexp:`red`},Mm=`…`;function Nm(e,t){let n=Am[jm[t]]||Am[t]||``;return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}function Pm({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:r=!0,showProxy:i=!1,maxArrayLength:a=1/0,breakLength:o=1/0,seen:s=[],truncate:c=1/0,stylize:l=String}={},u){let d={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!i,maxArrayLength:Number(a),breakLength:Number(o),truncate:Number(c),seen:s,inspect:u,stylize:l};return d.colors&&(d.stylize=Nm),d}function Fm(e){return e>=`\ud800`&&e<=`\udbff`}function Im(e,t,n=Mm){e=String(e);let r=n.length,i=e.length;if(r>t&&i>r)return n;if(i>t&&i>r){let i=t-r;return i>0&&Fm(e[i-1])&&--i,`${e.slice(0,i)}${n}`}return e}function Lm(e,t,n,r=`, `){n||=t.inspect;let i=e.length;if(i===0)return``;let a=t.truncate,o=``,s=``,c=``;for(let l=0;l<i;l+=1){let i=l+1===e.length,u=l+2===e.length;c=`${Mm}(${e.length-l})`;let d=e[l];t.truncate=a-o.length-(i?0:r.length);let f=s||n(d,t)+(i?``:r),p=o.length+f.length,m=p+c.length;if(i&&p>a&&o.length+c.length<=a||!i&&!u&&m>a||(s=i?``:n(e[l+1],t)+(u?``:r),!i&&u&&m>a&&p+s.length>a))break;if(o+=f,!i&&!u&&p+s.length>=a){c=`${Mm}(${e.length-l-1})`;break}c=``}return`${o}${c}`}function Rm(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,`\\'`).replace(/\\"/g,`"`).replace(/(^"|"$)/g,`'`)}function zm([e,t],n){return n.truncate-=2,typeof e==`string`?e=Rm(e):typeof e!=`number`&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}function Bm(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`[]`;t.truncate-=4;let r=Lm(e,t);t.truncate-=r.length;let i=``;return n.length&&(i=Lm(n.map(t=>[t,e[t]]),t,zm)),`[ ${r}${i?`, ${i}`:``} ]`}var Vm=e=>typeof Buffer==`function`&&e instanceof Buffer?`Buffer`:e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function Hm(e,t){let n=Vm(e);t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return`${n}[]`;let i=``;for(let n=0;n<e.length;n++){let r=`${t.stylize(Im(e[n],t.truncate),`number`)}${n===e.length-1?``:`, `}`;if(t.truncate-=r.length,e[n]!==e.length&&t.truncate<=3){i+=`${Mm}(${e.length-e[n]+1})`;break}i+=r}let a=``;return r.length&&(a=Lm(r.map(t=>[t,e[t]]),t,zm)),`${n}[ ${i}${a?`, ${a}`:``} ]`}function Um(e,t){let n=e.toJSON();if(n===null)return`Invalid Date`;let r=n.split(`T`),i=r[0];return t.stylize(`${i}T${Im(r[1],t.truncate-i.length-1)}`,`date`)}function Wm(e,t){let n=e[Symbol.toStringTag]||`Function`,r=e.name;return r?t.stylize(`[${n} ${Im(r,t.truncate-11)}]`,`special`):t.stylize(`[${n}]`,`special`)}function Gm([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}function Km(e){let t=[];return e.forEach((e,n)=>{t.push([n,e])}),t}function qm(e,t){return e.size===0?`Map{}`:(t.truncate-=7,`Map{ ${Lm(Km(e),t,Gm)} }`)}var Jm=Number.isNaN||(e=>e!==e);function Ym(e,t){return Jm(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(Im(String(e),t.truncate),`number`)}function Xm(e,t){let n=Im(e.toString(),t.truncate-1);return n!==Mm&&(n+=`n`),t.stylize(n,`bigint`)}function Zm(e,t){let n=e.toString().split(`/`)[2],r=t.truncate-(2+n.length),i=e.source;return t.stylize(`/${Im(i,r)}/${n}`,`regexp`)}function Qm(e){let t=[];return e.forEach(e=>{t.push(e)}),t}function $m(e,t){return e.size===0?`Set{}`:(t.truncate-=7,`Set{ ${Lm(Qm(e),t)} }`)}var eh=RegExp(`['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]`,`g`),th={"\b":`\\b`," ":`\\t`,"\n":`\\n`,"\f":`\\f`,"\r":`\\r`,"'":`\\'`,"\\":`\\\\`},nh=16,rh=4;function ih(e){return th[e]||`\\u${`0000${e.charCodeAt(0).toString(nh)}`.slice(-rh)}`}function ah(e,t){return eh.test(e)&&(e=e.replace(eh,ih)),t.stylize(`'${Im(e,t.truncate-2)}'`,`string`)}function oh(e){return`description`in Symbol.prototype?e.description?`Symbol(${e.description})`:`Symbol()`:e.toString()}var sh=()=>`Promise{…}`;try{let{getPromiseDetails:e,kPending:t,kRejected:n}=process.binding(`util`);Array.isArray(e(Promise.resolve()))&&(sh=(r,i)=>{let[a,o]=e(r);return a===t?`Promise{<pending>}`:`Promise${a===n?`!`:``}{${i.inspect(o,i)}}`})}catch{}var ch=sh;function lh(e,t){let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&r.length===0)return`{}`;if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return`[Circular]`;t.seen.push(e);let i=Lm(n.map(t=>[t,e[t]]),t,zm),a=Lm(r.map(t=>[t,e[t]]),t,zm);t.seen.pop();let o=``;return i&&a&&(o=`, `),`{ ${i}${o}${a} }`}var uh=typeof Symbol<`u`&&Symbol.toStringTag?Symbol.toStringTag:!1;function dh(e,t){let n=``;return uh&&uh in e&&(n=e[uh]),n||=e.constructor.name,(!n||n===`_class`)&&(n=`<Anonymous Class>`),t.truncate-=n.length,`${n}${lh(e,t)}`}function fh(e,t){return e.length===0?`Arguments[]`:(t.truncate-=13,`Arguments[ ${Lm(e,t)} ]`)}var ph=[`stack`,`line`,`column`,`name`,`message`,`fileName`,`lineNumber`,`columnNumber`,`number`,`description`,`cause`];function mh(e,t){let n=Object.getOwnPropertyNames(e).filter(e=>ph.indexOf(e)===-1),r=e.name;t.truncate-=r.length;let i=``;if(typeof e.message==`string`?i=Im(e.message,t.truncate):n.unshift(`message`),i=i?`: ${i}`:``,t.truncate-=i.length+5,t.seen=t.seen||[],t.seen.includes(e))return`[Circular]`;t.seen.push(e);let a=Lm(n.map(t=>[t,e[t]]),t,zm);return`${r}${i}${a?` { ${a} }`:``}`}function hh([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),`yellow`)}=${n.stylize(`"${t}"`,`string`)}`:`${n.stylize(String(e),`yellow`)}`}function gh(e,t){return Lm(e,t,_h,`
|
|
170
|
+
`)}function _h(e,t){switch(e.nodeType){case 1:return vh(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function vh(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),i=t.stylize(`<${r}`,`special`),a=t.stylize(`>`,`special`),o=t.stylize(`</${r}>`,`special`);t.truncate-=r.length*2+5;let s=``;n.length>0&&(s+=` `,s+=Lm(n.map(t=>[t,e.getAttribute(t)]),t,hh,` `)),t.truncate-=s.length;let c=t.truncate,l=gh(e.children,t);return l&&l.length>c&&(l=`${Mm}(${e.children.length})`),`${i}${s}${a}${l}${o}`}var yh=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`chai/inspect`):`@@chai/inspect`,bh=Symbol.for(`nodejs.util.inspect.custom`),xh=new WeakMap,Sh={},Ch={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:Ym,Number:Ym,bigint:Xm,BigInt:Xm,string:ah,String:ah,function:Wm,Function:Wm,symbol:oh,Symbol:oh,Array:Bm,Date:Um,Map:qm,Set:$m,RegExp:Zm,Promise:ch,WeakSet:(e,t)=>t.stylize(`WeakSet{…}`,`special`),WeakMap:(e,t)=>t.stylize(`WeakMap{…}`,`special`),Arguments:fh,Int8Array:Hm,Uint8Array:Hm,Uint8ClampedArray:Hm,Int16Array:Hm,Uint16Array:Hm,Int32Array:Hm,Uint32Array:Hm,Float32Array:Hm,Float64Array:Hm,Generator:()=>``,DataView:()=>``,ArrayBuffer:()=>``,Error:mh,HTMLCollection:gh,NodeList:gh},wh=(e,t,n)=>yh in e&&typeof e[yh]==`function`?e[yh](t):bh in e&&typeof e[bh]==`function`?e[bh](t.depth,t):`inspect`in e&&typeof e.inspect==`function`?e.inspect(t.depth,t):`constructor`in e&&xh.has(e.constructor)?xh.get(e.constructor)(e,t):Sh[n]?Sh[n](e,t):``,Th=Object.prototype.toString;function Eh(e,t={}){let n=Pm(t,Eh),{customInspect:r}=n,i=e===null?`null`:typeof e;if(i===`object`&&(i=Th.call(e).slice(8,-1)),i in Ch)return Ch[i](e,n);if(r&&e){let t=wh(e,n,i);if(t)return typeof t==`string`?t:Eh(t,n)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?lh(e,n):e&&typeof HTMLElement==`function`&&e instanceof HTMLElement?vh(e,n):`constructor`in e?e.constructor===Object?lh(e,n):dh(e,n):e===Object(e)?lh(e,n):n.stylize(String(e),i)}var{AsymmetricMatcher:Dh,DOMCollection:Oh,DOMElement:kh,Immutable:Ah,ReactElement:jh,ReactTestComponent:Mh}=km,Nh=[Mh,jh,kh,Oh,Ah,Dh];function Ph(e,t=10,{maxLength:n,...r}={}){let i=n??1e4,a;try{a=Om(e,{maxDepth:t,escapeString:!1,plugins:Nh,...r})}catch{a=Om(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:Nh,...r})}return a.length>=i&&t>1?Ph(e,Math.floor(Math.min(t,2**53-1)/2),{maxLength:n,...r}):a}var Fh=/%[sdjifoOc%]/g;function Ih(...e){if(typeof e[0]!=`string`){let t=[];for(let n=0;n<e.length;n++)t.push(Lh(e[n],{depth:0,colors:!1}));return t.join(` `)}let t=e.length,n=1,r=e[0],i=String(r).replace(Fh,r=>{if(r===`%%`)return`%`;if(n>=t)return r;switch(r){case`%s`:{let t=e[n++];return typeof t==`bigint`?`${t.toString()}n`:typeof t==`number`&&t===0&&1/t<0?`-0`:typeof t==`object`&&t?typeof t.toString==`function`&&t.toString!==Object.prototype.toString?t.toString():Lh(t,{depth:0,colors:!1}):String(t)}case`%d`:{let t=e[n++];return typeof t==`bigint`?`${t.toString()}n`:Number(t).toString()}case`%i`:{let t=e[n++];return typeof t==`bigint`?`${t.toString()}n`:Number.parseInt(String(t)).toString()}case`%f`:return Number.parseFloat(String(e[n++])).toString();case`%o`:return Lh(e[n++],{showHidden:!0,showProxy:!0});case`%O`:return Lh(e[n++]);case`%c`:return n++,``;case`%j`:try{return JSON.stringify(e[n++])}catch(e){let t=e.message;if(t.includes(`circular structure`)||t.includes(`cyclic structures`)||t.includes(`cyclic object`))return`[Circular]`;throw e}default:return r}});for(let r=e[n];n<t;r=e[++n])typeof r!=`object`||!r?i+=` ${r}`:i+=` ${Lh(r)}`;return i}function Lh(e,t={}){return t.truncate===0&&(t.truncate=1/0),Eh(e,t)}function Rh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function zh(e,t,n){let r=typeof e;if(!n.includes(r))throw TypeError(`${t} value must be ${n.join(` or `)}, received "${r}"`)}function Bh(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Vh(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function Hh(e){return Object.prototype.toString.apply(e).slice(8,-1)}function Uh(e,t){let n=typeof t==`function`?t:e=>t.add(e);Object.getOwnPropertyNames(e).forEach(n),Object.getOwnPropertySymbols(e).forEach(n)}function Wh(e){let t=new Set;return Vh(e)?[]:(Uh(e,t),Array.from(t))}var Gh={forceWritable:!1};function Kh(e,t=Gh){return qh(e,new WeakMap,t)}function qh(e,t,n=Gh){let r,i;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(i=Array.from({length:r=e.length}),t.set(e,i);r--;)i[r]=qh(e[r],t,n);return i}if(Object.prototype.toString.call(e)===`[object Object]`){i=Object.create(Object.getPrototypeOf(e)),t.set(e,i);let r=Wh(e);for(let a of r){let r=Object.getOwnPropertyDescriptor(e,a);if(!r)continue;let o=qh(e[a],t,n);n.forceWritable?Object.defineProperty(i,a,{enumerable:r.enumerable,configurable:!0,writable:!0,value:o}):`get`in r?Object.defineProperty(i,a,{...r,get(){return o}}):Object.defineProperty(i,a,{...r,value:o})}return i}return e}function Jh(){}var Yh=-1,Xh=1,Zh=0,Qh=class{0;1;constructor(e,t){this[0]=e,this[1]=t}};function $h(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let n=0,r=Math.min(e.length,t.length),i=r,a=0;for(;n<i;)e.substring(a,i)===t.substring(a,i)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return i}function eg(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let n=0,r=Math.min(e.length,t.length),i=r,a=0;for(;n<i;)e.substring(e.length-i,e.length-a)===t.substring(t.length-i,t.length-a)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return i}function tg(e,t){let n=e.length,r=t.length;if(n===0||r===0)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));let i=Math.min(n,r);if(e===t)return i;let a=0,o=1;for(;;){let n=e.substring(i-o),r=t.indexOf(n);if(r===-1)return a;o+=r,(r===0||e.substring(i-o)===t.substring(0,o))&&(a=o,o++)}}function ng(e){let t=!1,n=[],r=0,i=null,a=0,o=0,s=0,c=0,l=0;for(;a<e.length;)e[a][0]===Zh?(n[r++]=a,o=c,s=l,c=0,l=0,i=e[a][1]):(e[a][0]===Xh?c+=e[a][1].length:l+=e[a][1].length,i&&i.length<=Math.max(o,s)&&i.length<=Math.max(c,l)&&(e.splice(n[r-1],0,new Qh(Yh,i)),e[n[r-1]+1][0]=Xh,r--,r--,a=r>0?n[r-1]:-1,o=0,s=0,c=0,l=0,i=null,t=!0)),a++;for(t&&lg(e),cg(e),a=1;a<e.length;){if(e[a-1][0]===Yh&&e[a][0]===Xh){let t=e[a-1][1],n=e[a][1],r=tg(t,n),i=tg(n,t);r>=i?(r>=t.length/2||r>=n.length/2)&&(e.splice(a,0,new Qh(Zh,n.substring(0,r))),e[a-1][1]=t.substring(0,t.length-r),e[a+1][1]=n.substring(r),a++):(i>=t.length/2||i>=n.length/2)&&(e.splice(a,0,new Qh(Zh,t.substring(0,i))),e[a-1][0]=Xh,e[a-1][1]=n.substring(0,n.length-i),e[a+1][0]=Yh,e[a+1][1]=t.substring(i),a++),a++}a++}}var rg=/[^a-z0-9]/i,ig=/\s/,ag=/[\r\n]/,og=/\n\r?\n$/,sg=/^\r?\n\r?\n/;function cg(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===Zh&&e[t+1][0]===Zh){let n=e[t-1][1],r=e[t][1],i=e[t+1][1],a=eg(n,r);if(a){let e=r.substring(r.length-a);n=n.substring(0,n.length-a),r=e+r.substring(0,r.length-a),i=e+i}let o=n,s=r,c=i,l=ug(n,r)+ug(r,i);for(;r.charAt(0)===i.charAt(0);){n+=r.charAt(0),r=r.substring(1)+i.charAt(0),i=i.substring(1);let e=ug(n,r)+ug(r,i);e>=l&&(l=e,o=n,s=r,c=i)}e[t-1][1]!==o&&(o?e[t-1][1]=o:(e.splice(t-1,1),t--),e[t][1]=s,c?e[t+1][1]=c:(e.splice(t+1,1),t--))}t++}}function lg(e){e.push(new Qh(Zh,``));let t=0,n=0,r=0,i=``,a=``,o;for(;t<e.length;)switch(e[t][0]){case Xh:r++,a+=e[t][1],t++;break;case Yh:n++,i+=e[t][1],t++;break;case Zh:n+r>1?(n!==0&&r!==0&&(o=$h(a,i),o!==0&&(t-n-r>0&&e[t-n-r-1][0]===Zh?e[t-n-r-1][1]+=a.substring(0,o):(e.splice(0,0,new Qh(Zh,a.substring(0,o))),t++),a=a.substring(o),i=i.substring(o)),o=eg(a,i),o!==0&&(e[t][1]=a.substring(a.length-o)+e[t][1],a=a.substring(0,a.length-o),i=i.substring(0,i.length-o))),t-=n+r,e.splice(t,n+r),i.length&&(e.splice(t,0,new Qh(Yh,i)),t++),a.length&&(e.splice(t,0,new Qh(Xh,a)),t++),t++):t!==0&&e[t-1][0]===Zh?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,r=0,n=0,i=``,a=``;break}e[e.length-1][1]===``&&e.pop();let s=!1;for(t=1;t<e.length-1;)e[t-1][0]===Zh&&e[t+1][0]===Zh&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),s=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),s=!0)),t++;s&&lg(e)}function ug(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),i=n.match(rg),a=r.match(rg),o=i&&n.match(ig),s=a&&r.match(ig),c=o&&n.match(ag),l=s&&r.match(ag),u=c&&e.match(og),d=l&&t.match(sg);return u||d?5:c||l?4:i&&!o&&s?3:o||s?2:i||a?1:0}var dg=`Compared values have no visual difference.`,fg="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",pg={},mg;function hg(){if(mg)return pg;mg=1,Object.defineProperty(pg,`__esModule`,{value:!0}),pg.default=d;let e=`diff-sequences`,t=(e,t,n,r,i)=>{let a=0;for(;e<t&&n<r&&i(e,n);)e+=1,n+=1,a+=1;return a},n=(e,t,n,r,i)=>{let a=0;for(;e<=t&&n<=r&&i(t,r);)--t,--r,a+=1;return a},r=(e,n,r,i,a,o,s)=>{let c=0,l=-e,u=o[c],d=u;o[c]+=t(u+1,n,i+u-l+1,r,a);let f=e<s?e:s;for(c+=1,l+=2;c<=f;c+=1,l+=2){if(c!==e&&d<o[c])u=o[c];else if(u=d+1,n<=u)return c-1;d=o[c],o[c]=u+t(u+1,n,i+u-l+1,r,a)}return s},i=(e,t,r,i,a,o,s)=>{let c=0,l=e,u=o[c],d=u;o[c]-=n(t,u-1,r,i+u-l-1,a);let f=e<s?e:s;for(c+=1,l-=2;c<=f;c+=1,l-=2){if(c!==e&&o[c]<d)u=o[c];else if(u=d-1,u<t)return c-1;d=o[c],o[c]=u-n(t,u-1,r,i+u-l-1,a)}return s},a=(e,r,i,a,o,s,c,l,u,d,f)=>{let p=a-r,m=i-r,h=o-a-m,g=-h-(e-1),_=-h+(e-1),v=0,y=e<l?e:l;for(let l=0,m=-e;l<=y;l+=1,m+=2){let y=l===0||l!==e&&v<c[l],b=y?c[l]:v,x=y?b:b+1,S=p+x-m,C=t(x+1,i,S+1,o,s),w=x+C;if(v=c[l],c[l]=w,g<=m&&m<=_){let t=(e-1-(m+h))/2;if(t<=d&&u[t]-1<=w){let t=p+b-(y?m+1:m-1),c=n(r,b,a,t,s),l=b-c,u=t-c,d=l+1,h=u+1;f.nChangePreceding=e-1,e-1===d+h-r-a?(f.aEndPreceding=r,f.bEndPreceding=a):(f.aEndPreceding=d,f.bEndPreceding=h),f.nCommonPreceding=c,c!==0&&(f.aCommonPreceding=d,f.bCommonPreceding=h),f.nCommonFollowing=C,C!==0&&(f.aCommonFollowing=x+1,f.bCommonFollowing=S+1);let g=w+1,_=S+C+1;return f.nChangeFollowing=e-1,e-1===i+o-g-_?(f.aStartFollowing=i,f.bStartFollowing=o):(f.aStartFollowing=g,f.bStartFollowing=_),!0}}}return!1},o=(e,r,i,a,o,s,c,l,u,d,f)=>{let p=o-i,m=i-r,h=o-a-m,g=h-e,_=h+e,v=0,y=e<d?e:d;for(let d=0,m=e;d<=y;d+=1,m-=2){let y=d===0||d!==e&&u[d]<v,b=y?u[d]:v,x=y?b:b-1,S=p+x-m,C=n(r,x-1,a,S-1,s),w=x-C;if(v=u[d],u[d]=w,g<=m&&m<=_){let n=(e+(m-h))/2;if(n<=l&&w-1<=c[n]){let n=S-C;if(f.nChangePreceding=e,e===w+n-r-a?(f.aEndPreceding=r,f.bEndPreceding=a):(f.aEndPreceding=w,f.bEndPreceding=n),f.nCommonPreceding=C,C!==0&&(f.aCommonPreceding=w,f.bCommonPreceding=n),f.nChangeFollowing=e-1,e===1)f.nCommonFollowing=0,f.aStartFollowing=i,f.bStartFollowing=o;else{let n=p+b-(y?m-1:m+1),r=t(b,i,n,o,s);f.nCommonFollowing=r,r!==0&&(f.aCommonFollowing=b,f.bCommonFollowing=n);let a=b+r,c=n+r;e-1===i+o-a-c?(f.aStartFollowing=i,f.bStartFollowing=o):(f.aStartFollowing=a,f.bStartFollowing=c)}return!0}}}return!1},s=(t,n,s,c,l,u,d,f,p)=>{let m=c-n,h=l-s,g=s-n,_=l-c,v=_-g,y=g,b=g;if(d[0]=n-1,f[0]=s,v%2==0){let e=(t||v)/2,a=(g+_)/2;for(let t=1;t<=a;t+=1)if(y=r(t,s,l,m,u,d,y),t<e)b=i(t,n,c,h,u,f,b);else if(o(t,n,s,c,l,u,d,y,f,b,p))return}else{let e=((t||v)+1)/2,o=(g+_+1)/2,x=1;for(y=r(x,s,l,m,u,d,y),x+=1;x<=o;x+=1)if(b=i(x-1,n,c,h,u,f,b),x<e)y=r(x,s,l,m,u,d,y);else if(a(x,n,s,c,l,u,d,y,f,b,p))return}throw Error(`${e}: no overlap aStart=${n} aEnd=${s} bStart=${c} bEnd=${l}`)},c=(e,t,n,r,i,a,o,l,u,d)=>{if(i-r<n-t){if(a=!a,a&&o.length===1){let{foundSubsequence:e,isCommon:t}=o[0];o[1]={foundSubsequence:(t,n,r)=>{e(t,r,n)},isCommon:(e,n)=>t(n,e)}}let e=t,s=n;t=r,n=i,r=e,i=s}let{foundSubsequence:f,isCommon:p}=o[a?1:0];s(e,t,n,r,i,p,l,u,d);let{nChangePreceding:m,aEndPreceding:h,bEndPreceding:g,nCommonPreceding:_,aCommonPreceding:v,bCommonPreceding:y,nCommonFollowing:b,aCommonFollowing:x,bCommonFollowing:S,nChangeFollowing:C,aStartFollowing:w,bStartFollowing:T}=d;t<h&&r<g&&c(m,t,h,r,g,a,o,l,u,d),_!==0&&f(_,v,y),b!==0&&f(b,x,S),w<n&&T<i&&c(C,w,n,T,i,a,o,l,u,d)},l=(t,n)=>{if(typeof n!=`number`)throw TypeError(`${e}: ${t} typeof ${typeof n} is not a number`);if(!Number.isSafeInteger(n))throw RangeError(`${e}: ${t} value ${n} is not a safe integer`);if(n<0)throw RangeError(`${e}: ${t} value ${n} is a negative integer`)},u=(t,n)=>{let r=typeof n;if(r!==`function`)throw TypeError(`${e}: ${t} typeof ${r} is not a function`)};function d(e,r,i,a){l(`aLength`,e),l(`bLength`,r),u(`isCommon`,i),u(`foundSubsequence`,a);let o=t(0,e,0,r,i);if(o!==0&&a(o,0,0),e!==o||r!==o){let t=o,s=o,l=n(t,e-1,s,r-1,i),u=e-l,d=r-l,f=o+l;e!==f&&r!==f&&c(0,t,u,s,d,!1,[{foundSubsequence:a,isCommon:i}],[0],[0],{aCommonFollowing:0,aCommonPreceding:0,aEndPreceding:0,aStartFollowing:0,bCommonFollowing:0,bCommonPreceding:0,bEndPreceding:0,bStartFollowing:0,nChangeFollowing:0,nChangePreceding:0,nCommonFollowing:0,nCommonPreceding:0}),l!==0&&a(l,u,d)}}return pg}var gg=Rh(hg());function _g(e,t){return e.replace(/\s+$/,e=>t(e))}function vg(e,t,n,r,i,a){return e.length===0?r===` `?t&&a.length!==0?n(`${r} ${a}`):``:n(r):n(`${r} ${_g(e,i)}`)}function yg(e,t,{aColor:n,aIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return vg(e,t,n,r,i,a)}function bg(e,t,{bColor:n,bIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return vg(e,t,n,r,i,a)}function xg(e,t,{commonColor:n,commonIndicator:r,commonLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return vg(e,t,n,r,i,a)}function Sg(e,t,n,r,{patchColor:i}){return i(`@@ -${e+1},${t-e} +${n+1},${r-n} @@`)}function Cg(e,t){let n=e.length,r=t.contextLines,i=r+r,a=n,o=!1,s=0,c=0;for(;c!==n;){let t=c;for(;c!==n&&e[c][0]===Zh;)c+=1;if(t!==c)if(t===0)c>r&&(a-=c-r,o=!0);else if(c===n){let e=c-t;e>r&&(a-=e-r,o=!0)}else{let e=c-t;e>i&&(a-=e-i,s+=1)}for(;c!==n&&e[c][0]!==Zh;)c+=1}let l=s!==0||o;s===0?o&&(a+=1):a+=s+1;let u=a-1,d=[],f=0;l&&d.push(``);let p=0,m=0,h=0,g=0,_=e=>{let n=d.length;d.push(xg(e,n===0||n===u,t)),h+=1,g+=1},v=e=>{let n=d.length;d.push(yg(e,n===0||n===u,t)),h+=1},y=e=>{let n=d.length;d.push(bg(e,n===0||n===u,t)),g+=1};for(c=0;c!==n;){let a=c;for(;c!==n&&e[c][0]===Zh;)c+=1;if(a!==c)if(a===0){c>r&&(a=c-r,p=a,m=a,h=p,g=m);for(let t=a;t!==c;t+=1)_(e[t][1])}else if(c===n){let t=c-a>r?a+r:c;for(let n=a;n!==t;n+=1)_(e[n][1])}else{let n=c-a;if(n>i){let o=a+r;for(let t=a;t!==o;t+=1)_(e[t][1]);d[f]=Sg(p,h,m,g,t),f=d.length,d.push(``);let s=n-i;p=h+s,m=g+s,h=p,g=m;for(let t=c-r;t!==c;t+=1)_(e[t][1])}else for(let t=a;t!==c;t+=1)_(e[t][1])}for(;c!==n&&e[c][0]===Yh;)v(e[c][1]),c+=1;for(;c!==n&&e[c][0]===Xh;)y(e[c][1]),c+=1}return l&&(d[f]=Sg(p,h,m,g,t)),d.join(`
|
|
171
|
+
`)}function wg(e,t){return e.map((e,n,r)=>{let i=e[1],a=n===0||n===r.length-1;switch(e[0]){case Yh:return yg(i,a,t);case Xh:return bg(i,a,t);default:return xg(i,a,t)}}).join(`
|
|
172
|
+
`)}var Tg=e=>e,Eg=5,Dg=0;function Og(){return{aAnnotation:`Expected`,aColor:Cf.green,aIndicator:`-`,bAnnotation:`Received`,bColor:Cf.red,bIndicator:`+`,changeColor:Cf.inverse,changeLineTrailingSpaceColor:Tg,commonColor:Cf.dim,commonIndicator:` `,commonLineTrailingSpaceColor:Tg,compareKeys:void 0,contextLines:Eg,emptyFirstOrLastLinePlaceholder:``,expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:Cf.yellow,printBasicPrototype:!1,truncateThreshold:Dg,truncateAnnotation:`... Diff result is truncated`,truncateAnnotationColor:Tg}}function kg(e){return e&&typeof e==`function`?e:void 0}function Ag(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>=0?e:Eg}function jg(e={}){return{...Og(),...e,compareKeys:kg(e.compareKeys),contextLines:Ag(e.contextLines)}}function Mg(e){return e.length===1&&e[0].length===0}function Ng(e){let t=0,n=0;return e.forEach(e=>{switch(e[0]){case Yh:t+=1;break;case Xh:n+=1;break}}),{a:t,b:n}}function Pg({aAnnotation:e,aColor:t,aIndicator:n,bAnnotation:r,bColor:i,bIndicator:a,includeChangeCounts:o,omitAnnotationLines:s},c){if(s)return``;let l=``,u=``;if(o){let t=String(c.a),i=String(c.b),o=r.length-e.length,s=` `.repeat(Math.max(0,o)),d=` `.repeat(Math.max(0,-o)),f=i.length-t.length,p=` `.repeat(Math.max(0,f)),m=` `.repeat(Math.max(0,-f));l=`${s} ${n} ${p}${t}`,u=`${d} ${a} ${m}${i}`}let d=`${n} ${e}${l}`,f=`${a} ${r}${u}`;return`${t(d)}
|
|
173
|
+
${i(f)}
|
|
174
|
+
|
|
175
|
+
`}function Fg(e,t,n){return Pg(n,Ng(e))+(n.expand?wg(e,n):Cg(e,n))+(t?n.truncateAnnotationColor(`
|
|
176
|
+
${n.truncateAnnotation}`):``)}function Ig(e,t,n){let r=jg(n),[i,a]=Rg(Mg(e)?[]:e,Mg(t)?[]:t,r);return Fg(i,a,r)}function Lg(e,t,n,r,i){if(Mg(e)&&Mg(n)&&(e=[],n=[]),Mg(t)&&Mg(r)&&(t=[],r=[]),e.length!==n.length||t.length!==r.length)return Ig(e,t,i);let[a,o]=Rg(n,r,i),s=0,c=0;return a.forEach(n=>{switch(n[0]){case Yh:n[1]=e[s],s+=1;break;case Xh:n[1]=t[c],c+=1;break;default:n[1]=t[c],s+=1,c+=1}}),Fg(a,o,jg(i))}function Rg(e,t,n){let r=n?.truncateThreshold??!1,i=Math.max(Math.floor(n?.truncateThreshold??0),0),a=r?Math.min(e.length,i):e.length,o=r?Math.min(t.length,i):t.length,s=a!==e.length||o!==t.length,c=(n,r)=>e[n]===t[r],l=[],u=0,d=0;for(gg(a,o,c,(n,r,i)=>{for(;u!==r;u+=1)l.push(new Qh(Yh,e[u]));for(;d!==i;d+=1)l.push(new Qh(Xh,t[d]));for(;n!==0;--n,u+=1,d+=1)l.push(new Qh(Zh,t[d]))});u!==a;u+=1)l.push(new Qh(Yh,e[u]));for(;d!==o;d+=1)l.push(new Qh(Xh,t[d]));return[l,s]}function zg(e){if(e===void 0)return`undefined`;if(e===null)return`null`;if(Array.isArray(e))return`array`;if(typeof e==`boolean`)return`boolean`;if(typeof e==`function`)return`function`;if(typeof e==`number`)return`number`;if(typeof e==`string`)return`string`;if(typeof e==`bigint`)return`bigint`;if(typeof e==`object`){if(e!=null){if(e.constructor===RegExp)return`regexp`;if(e.constructor===Map)return`map`;if(e.constructor===Set)return`set`;if(e.constructor===Date)return`date`}return`object`}else if(typeof e==`symbol`)return`symbol`;throw Error(`value of unknown type: ${e}`)}function Bg(e){return e.includes(`\r
|
|
177
|
+
`)?`\r
|
|
178
|
+
`:`
|
|
179
|
+
`}function Vg(e,t,n){let r=n?.truncateThreshold??!1,i=Math.max(Math.floor(n?.truncateThreshold??0),0),a=e.length,o=t.length;if(r){let n=e.includes(`
|
|
180
|
+
`),r=t.includes(`
|
|
181
|
+
`),s=Bg(e),c=Bg(t),l=n?`${e.split(s,i).join(s)}
|
|
182
|
+
`:e,u=r?`${t.split(c,i).join(c)}
|
|
183
|
+
`:t;a=l.length,o=u.length}let s=a!==e.length||o!==t.length,c=(n,r)=>e[n]===t[r],l=0,u=0,d=[];return gg(a,o,c,(n,r,i)=>{l!==r&&d.push(new Qh(Yh,e.slice(l,r))),u!==i&&d.push(new Qh(Xh,t.slice(u,i))),l=r+n,u=i+n,d.push(new Qh(Zh,t.slice(i,u)))}),l!==a&&d.push(new Qh(Yh,e.slice(l))),u!==o&&d.push(new Qh(Xh,t.slice(u))),[d,s]}function Hg(e,t,n){return t.reduce((t,r)=>t+(r[0]===Zh?r[1]:r[0]===e&&r[1].length!==0?n(r[1]):``),``)}var Ug=class{op;line;lines;changeColor;constructor(e,t){this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new Qh(this.op,e))}pushLine(){this.lines.push(this.line.length===1?this.line[0][0]===this.op?this.line[0]:new Qh(this.op,this.line[0][1]):new Qh(this.op,Hg(this.op,this.line,this.changeColor))),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e)}align(e){let t=e[1];if(t.includes(`
|
|
184
|
+
`)){let e=t.split(`
|
|
185
|
+
`),n=e.length-1;e.forEach((e,t)=>{t<n?(this.pushSubstring(e),this.pushLine()):e.length!==0&&this.pushSubstring(e)})}else this.pushDiff(e)}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0}},Wg=class{deleteBuffer;insertBuffer;lines;constructor(e,t){this.deleteBuffer=e,this.insertBuffer=t,this.lines=[]}pushDiffCommonLine(e){this.lines.push(e)}pushDiffChangeLines(e){let t=e[1].length===0;(!t||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(e),(!t||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(e)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(e){let t=e[0],n=e[1];if(n.includes(`
|
|
186
|
+
`)){let e=n.split(`
|
|
187
|
+
`),r=e.length-1;e.forEach((e,n)=>{if(n===0){let n=new Qh(t,e);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(n)):(this.pushDiffChangeLines(n),this.flushChangeLines())}else n<r?this.pushDiffCommonLine(new Qh(t,e)):e.length!==0&&this.pushDiffChangeLines(new Qh(t,e))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function Gg(e,t){let n=new Ug(Yh,t),r=new Ug(Xh,t),i=new Wg(n,r);return e.forEach(e=>{switch(e[0]){case Yh:n.align(e);break;case Xh:r.align(e);break;default:i.align(e)}}),i.getLines()}function Kg(e,t){if(t){let t=e.length-1;return e.some((e,n)=>e[0]===Zh&&(n!==t||e[1]!==`
|
|
188
|
+
`))}return e.some(e=>e[0]===Zh)}function qg(e,t,n){if(e!==t&&e.length!==0&&t.length!==0){let r=e.includes(`
|
|
189
|
+
`)||t.includes(`
|
|
190
|
+
`),[i,a]=Jg(r?`${e}
|
|
191
|
+
`:e,r?`${t}
|
|
192
|
+
`:t,!0,n);if(Kg(i,r)){let e=jg(n);return Fg(Gg(i,e.changeColor),a,e)}}return Ig(e.split(`
|
|
193
|
+
`),t.split(`
|
|
194
|
+
`),n)}function Jg(e,t,n,r){let[i,a]=Vg(e,t,r);return n&&ng(i),[i,a]}function Yg(e,t){let{commonColor:n}=jg(t);return n(e)}var{AsymmetricMatcher:Xg,DOMCollection:Zg,DOMElement:Qg,Immutable:$g,ReactElement:e_,ReactTestComponent:t_}=km,n_=[t_,e_,Qg,Zg,$g,Xg,km.Error],r_={maxDepth:20,plugins:n_},i_={callToJSON:!1,maxDepth:8,plugins:n_};function a_(e,t,n){if(Object.is(e,t))return``;let r=zg(e),i=r,a=!1;if(r===`object`&&typeof e.asymmetricMatch==`function`){if(e.$$typeof!==Symbol.for(`jest.asymmetricMatcher`)||typeof e.getExpectedType!=`function`)return;i=e.getExpectedType(),a=i===`string`}if(i!==zg(t)){let r=function(e){return e.length<=p?e:`${e.slice(0,p)}...`},{aAnnotation:i,aColor:a,aIndicator:o,bAnnotation:s,bColor:c,bIndicator:l}=jg(n),u=u_(i_,n),d=Om(e,u),f=Om(t,u),p=1e5;return d=r(d),f=r(f),`${`${a(`${o} ${i}:`)}
|
|
195
|
+
${d}`}
|
|
196
|
+
|
|
197
|
+
${`${c(`${l} ${s}:`)}
|
|
198
|
+
${f}`}`}if(!a)switch(r){case`string`:return Ig(e.split(`
|
|
199
|
+
`),t.split(`
|
|
200
|
+
`),n);case`boolean`:case`number`:return o_(e,t,n);case`map`:return l_(s_(e),s_(t),n);case`set`:return l_(c_(e),c_(t),n);default:return l_(e,t,n)}}function o_(e,t,n){let r=Om(e,r_),i=Om(t,r_);return r===i?``:Ig(r.split(`
|
|
201
|
+
`),i.split(`
|
|
202
|
+
`),n)}function s_(e){return new Map(Array.from(e.entries()).sort())}function c_(e){return new Set(Array.from(e.values()).sort())}function l_(e,t,n){let r,i=!1;try{r=d_(e,t,u_(r_,n),n)}catch{i=!0}let a=Yg(dg,n);return(r===void 0||r===a)&&(r=d_(e,t,u_(i_,n),n),r!==a&&!i&&(r=`${Yg(fg,n)}
|
|
203
|
+
|
|
204
|
+
${r}`)),r}function u_(e,t){let{compareKeys:n,printBasicPrototype:r,maxDepth:i}=jg(t);return{...e,compareKeys:n,printBasicPrototype:r,maxDepth:i??e.maxDepth}}function d_(e,t,n,r){let i={...n,indent:0},a=Om(e,i),o=Om(t,i);if(a===o)return Yg(dg,r);{let i=Om(e,n),s=Om(t,n);return Lg(i.split(`
|
|
205
|
+
`),s.split(`
|
|
206
|
+
`),a.split(`
|
|
207
|
+
`),o.split(`
|
|
208
|
+
`),r)}}var f_=2e4;function p_(e){return Hh(e)===`Object`&&typeof e.asymmetricMatch==`function`}function m_(e,t){let n=Hh(e);return n===Hh(t)&&(n===`Object`||n===`Array`)}function h_(e,t,n){let{aAnnotation:r,bAnnotation:i}=jg(n);if(typeof t==`string`&&typeof e==`string`&&t.length>0&&e.length>0&&t.length<=f_&&e.length<=f_&&t!==e){if(t.includes(`
|
|
209
|
+
`)||e.includes(`
|
|
210
|
+
`))return qg(t,e,n);let[a]=Jg(t,e,!0),o=a.some(e=>e[0]===Zh),s=__(r,i);return`${s(r)+x_(S_(a,Yh,o))}
|
|
211
|
+
${s(i)+b_(S_(a,Xh,o))}`}let a=Kh(t,{forceWritable:!0}),{replacedExpected:o,replacedActual:s}=g_(Kh(e,{forceWritable:!0}),a);return a_(o,s,n)}function g_(e,t,n=new WeakSet,r=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<`u`&&typeof t.cause>`u`?(delete e.cause,{replacedActual:e,replacedExpected:t}):m_(e,t)?n.has(e)||r.has(t)?{replacedActual:e,replacedExpected:t}:(n.add(e),r.add(t),Wh(t).forEach(i=>{let a=t[i],o=e[i];if(p_(a))a.asymmetricMatch(o)&&(e[i]=a);else if(p_(o))o.asymmetricMatch(a)&&(t[i]=o);else if(m_(o,a)){let s=g_(o,a,n,r);e[i]=s.replacedActual,t[i]=s.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function __(...e){let t=e.reduce((e,t)=>t.length>e?t.length:e,0);return e=>`${e}: ${` `.repeat(t-e.length)}`}var v_=`·`;function y_(e){return e.replace(/\s+$/gm,e=>v_.repeat(e.length))}function b_(e){return Cf.red(y_(Ph(e)))}function x_(e){return Cf.green(y_(Ph(e)))}function S_(e,t,n){return e.reduce((e,r)=>e+(r[0]===Zh?r[1]:r[0]===t?n?Cf.inverse(r[1]):r[1]:``),``)}var C_=`@@__IMMUTABLE_RECORD__@@`,w_=`@@__IMMUTABLE_ITERABLE__@@`;function T_(e){return e&&(e[w_]||e[C_])}var E_=Object.getPrototypeOf({});function D_(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e==`string`?`<unserializable>: ${e}`:`<unserializable>`}function O_(e,t=new WeakMap){if(!e||typeof e==`string`)return e;if(e instanceof Error&&`toJSON`in e&&typeof e.toJSON==`function`){let n=e.toJSON();return n&&n!==e&&typeof n==`object`&&(typeof e.message==`string`&&k_(()=>n.message??=e.message),typeof e.stack==`string`&&k_(()=>n.stack??=e.stack),typeof e.name==`string`&&k_(()=>n.name??=e.name),e.cause!=null&&k_(()=>n.cause??=O_(e.cause,t))),O_(n,t)}if(typeof e==`function`)return`Function<${e.name||`anonymous`}>`;if(typeof e==`symbol`)return e.toString();if(typeof e!=`object`)return e;if(typeof Buffer<`u`&&e instanceof Buffer)return`<Buffer(${e.length}) ...>`;if(typeof Uint8Array<`u`&&e instanceof Uint8Array)return`<Uint8Array(${e.length}) ...>`;if(T_(e))return O_(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()} ${Ih(e.sample)}`;if(typeof e.toJSON==`function`)return O_(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let n=Array(e.length);return t.set(e,n),e.forEach((e,r)=>{try{n[r]=O_(e,t)}catch(e){n[r]=D_(e)}}),n}else{let n=Object.create(null);t.set(e,n);let r=e;for(;r&&r!==E_;)Object.getOwnPropertyNames(r).forEach(r=>{if(!(r in n))try{n[r]=O_(e[r],t)}catch(e){delete n[r],n[r]=D_(e)}}),r=Object.getPrototypeOf(r);return n}}function k_(e){try{return e()}catch{}}function A_(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,``)}function j_(e,t,n=new WeakSet){if(!e||typeof e!=`object`)return{message:String(e)};let r=e;(r.showDiff||r.showDiff===void 0&&r.expected!==void 0&&r.actual!==void 0)&&(r.diff=h_(r.actual,r.expected,{...t,...r.diffOptions})),`expected`in r&&typeof r.expected!=`string`&&(r.expected=Ph(r.expected,10)),`actual`in r&&typeof r.actual!=`string`&&(r.actual=Ph(r.actual,10));try{typeof r.message==`string`&&(r.message=A_(r.message))}catch{}try{!n.has(r)&&typeof r.cause==`object`&&(n.add(r),r.cause=j_(r.cause,t,n))}catch{}try{return O_(r)}catch(e){return O_(Error(`Failed to fully serialize error: ${e?.message}
|
|
212
|
+
Inner error message: ${r?.message}`))}}var M_={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`},N_=globalThis.__STORYBOOK_ADDONS_PREVIEW,P_=Error("This function ran after the play function completed. Did you forget to `await` it?"),F_=e=>Object.prototype.toString.call(e)===`[object Object]`,I_=e=>Object.prototype.toString.call(e)===`[object Module]`,L_=e=>{if(!F_(e)&&!I_(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!F_(t)},R_=e=>{try{return new e.constructor}catch{return{}}},z_=()=>({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}),B_=(e,t=!1)=>{let n=(t?e.shadowCalls:e.calls).filter(e=>e.retain);if(!n.length)return;let r=new Map(Array.from(e.callRefsByResult.entries()).filter(([,e])=>e.retain));return{cursor:n.length,calls:n,callRefsByResult:r}},V_=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=()=>{try{this.state=W.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}},this.updateParentWindowState=()=>{try{W.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},this.loadParentWindowState();let e=({storyId:e,renderPhase:t,isPlaying:n=!0,isDebugging:r=!1})=>{let i=this.getState(e);this.setState(e,{...z_(),...B_(i,r),renderPhase:t||i.renderPhase,shadowCalls:r?i.shadowCalls:[],chainedCallIds:r?i.chainedCallIds:new Set,playUntil:r?i.playUntil:void 0,isPlaying:n,isDebugging:r}),this.sync(e)},t=e=>({storyId:t,playUntil:n})=>{this.getState(t).isDebugging||this.setState(t,({calls:e})=>({calls:[],shadowCalls:e.map(e=>({...e,status:`waiting`})),isDebugging:!0}));let r=this.getLog(t);this.setState(t,({shadowCalls:e})=>{if(n||!r.length)return{playUntil:n};let t=e.findIndex(e=>e.id===r[0].callId);return{playUntil:e.slice(0,t).filter(e=>e.interceptable&&!e.ancestors?.length).slice(-1)[0]?.id}}),e.emit(ga,{storyId:t,isDebugging:!0})},n=e=>({storyId:n})=>{let r=this.getLog(n).filter(e=>!e.ancestors?.length),i=r.reduceRight((e,t,n)=>e>=0||t.status===`waiting`?e:n,-1);t(e)({storyId:n,playUntil:r[i-1]?.callId})},r=e=>({storyId:n,callId:r})=>{let{calls:i,shadowCalls:a,resolvers:o}=this.getState(n),s=i.find(({id:e})=>e===r),c=a.find(({id:e})=>e===r);if(!s&&c&&Object.values(o).length>0){let e=this.getLog(n).find(e=>e.status===`waiting`)?.callId;c.id!==e&&this.setState(n,{playUntil:c.id}),Object.values(o).forEach(e=>e())}else t(e)({storyId:n,playUntil:r})},i=e=>({storyId:n})=>{let{resolvers:r}=this.getState(n);if(Object.values(r).length>0)Object.values(r).forEach(e=>e());else{let r=this.getLog(n).find(e=>e.status===`waiting`)?.callId;r?t(e)({storyId:n,playUntil:r}):a({storyId:n})}},a=({storyId:e})=>{this.setState(e,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(e).resolvers).forEach(e=>e())},o=({storyId:t,newPhase:n})=>{let{isDebugging:r}=this.getState(t);if(n===`preparing`&&r||n===`playing`)return e({storyId:t,renderPhase:n,isDebugging:r});n===`played`?this.setState(t,{renderPhase:n,isLocked:!1,isPlaying:!1,isDebugging:!1}):n===`errored`?this.setState(t,{renderPhase:n,isLocked:!1,isPlaying:!1}):n===`aborted`?this.setState(t,{renderPhase:n,isLocked:!0,isPlaying:!1}):this.setState(t,{renderPhase:n}),this.sync(t)};N_&&N_.ready().then(()=>{this.channel=N_.getChannel(),this.channel.on(ga,e),this.channel.on(Wa,o),this.channel.on(ka,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(M_.START,t(this.channel)),this.channel.on(M_.BACK,n(this.channel)),this.channel.on(M_.GOTO,r(this.channel)),this.channel.on(M_.NEXT,i(this.channel)),this.channel.on(M_.END,a)})}getState(e){return this.state[e]||z_()}setState(e,t){if(e){let n=this.getState(e),r=typeof t==`function`?t(n):t;this.state={...this.state,[e]:{...n,...r}},this.updateParentWindowState()}}cleanup(){this.state=Object.entries(this.state).reduce((e,[t,n])=>{let r=B_(n);return r&&(e[t]=Object.assign(z_(),r)),e},{});let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(M_.SYNC,e),this.updateParentWindowState()}getLog(e){let{calls:t,shadowCalls:n}=this.getState(e),r=[...n];t.forEach((e,t)=>{r[t]=e});let i=new Set;return r.reduceRight((e,t)=>(t.args.forEach(e=>{e?.__callId__&&i.add(e.__callId__)}),t.path.forEach(e=>{e.__callId__&&i.add(e.__callId__)}),(t.interceptable||t.exception)&&!i.has(t.id)&&(e.unshift({callId:t.id,status:t.status,ancestors:t.ancestors}),i.add(t.id)),e),[])}instrument(e,t,n=0){if(!L_(e))return e;let{mutate:r=!1,path:i=[]}=t,a=t.getKeys?t.getKeys(e,n):Object.keys(e);return n+=1,a.reduce((r,a)=>{let o=U_(e,a);if(typeof o?.get==`function`){if(o.configurable){let s=()=>o?.get?.bind(e)?.();Object.defineProperty(r,a,{get:()=>this.instrument(s(),{...t,path:i.concat(a)},n)})}return r}let s=e[a];return typeof s==`function`?`__originalFn__`in s&&typeof s.__originalFn__==`function`?(r[a]=s,r):(r[a]=(...n)=>this.track(a,s,e,n,t),r[a].__originalFn__=s,Object.defineProperty(r[a],`name`,{value:a,writable:!1}),Object.keys(s).length>0&&Object.assign(r[a],this.instrument({...s},{...t,path:i.concat(a)},n)),r):(r[a]=this.instrument(s,{...t,path:i.concat(a)},n),r)},r?e:R_(e))}track(e,t,n,r,i){let a=r?.[0]?.__storyId__||W.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:o,ancestors:s}=this.getState(a);this.setState(a,{cursor:o+1});let c=`${s.slice(-1)[0]||a} [${o}] ${e}`,{path:l=[],intercept:u=!1,retain:d=!1}=i,f=typeof u==`function`?u(e,l):u,p={id:c,cursor:o,storyId:a,ancestors:s,path:l,method:e,args:r,interceptable:f,retain:d},m=(f&&!s.length?this.intercept:this.invoke).call(this,t,n,p,i);return this.instrument(m,{...i,mutate:!0,path:[{__callId__:p.id}]})}intercept(e,t,n,r){let{chainedCallIds:i,isDebugging:a,playUntil:o}=this.getState(n.storyId),s=i.has(n.id);return!a||s||o?(o===n.id&&this.setState(n.storyId,{playUntil:void 0}),this.invoke(e,t,n,r)):new Promise(e=>{this.setState(n.storyId,({resolvers:t})=>({isLocked:!1,resolvers:{...t,[n.id]:e}}))}).then(()=>(this.setState(n.storyId,e=>{let{[n.id]:t,...r}=e.resolvers;return{isLocked:!0,resolvers:r}}),this.invoke(e,t,n,r)))}invoke(e,t,n,r){let{callRefsByResult:i,renderPhase:a}=this.getState(n.storyId),o=(e,t,n)=>{if(n.includes(e))return`[Circular]`;if(n=[...n,e],t>25)return`...`;if(i.has(e))return i.get(e);if(e instanceof Array)return e.map(e=>o(e,++t,n));if(e instanceof Date)return{__date__:{value:e.toISOString()}};if(e instanceof Error){let{name:t,message:n,stack:r}=e;return{__error__:{name:t,message:n,stack:r}}}if(e instanceof RegExp){let{flags:t,source:n}=e;return{__regexp__:{flags:t,source:n}}}if(e instanceof W.window?.HTMLElement){let{prefix:t,localName:n,id:r,classList:i,innerText:a}=e;return{__element__:{prefix:t,localName:n,id:r,classNames:Array.from(i),innerText:a}}}return typeof e==`function`?{__function__:{name:`getMockName`in e?e.getMockName():e.name}}:typeof e==`symbol`?{__symbol__:{description:e.description}}:typeof e==`object`&&e?.constructor?.name&&e?.constructor?.name!==`Object`?{__class__:{name:e.constructor.name}}:Object.prototype.toString.call(e)===`[object Object]`?Object.fromEntries(Object.entries(e).map(([e,r])=>[e,o(r,++t,n)])):e},s={...n,args:n.args.map(e=>o(e,0,[]))};n.path.forEach(e=>{e?.__callId__&&this.setState(n.storyId,({chainedCallIds:t})=>({chainedCallIds:new Set(Array.from(t).concat(e.__callId__))}))});let c=e=>{if(e instanceof Error){let{name:t,message:r,stack:i,callId:a=n.id}=e,{showDiff:o=void 0,diff:c=void 0,actual:l=void 0,expected:u=void 0}=e.name===`AssertionError`?j_(e):e,d={name:t,message:r,stack:i,callId:a,showDiff:o,diff:c,actual:l,expected:u};if(this.update({...s,status:`error`,exception:d}),this.setState(n.storyId,t=>({callRefsByResult:new Map([...Array.from(t.callRefsByResult.entries()),[e,{__callId__:n.id,retain:n.retain}]])})),n.ancestors?.length)throw Object.prototype.hasOwnProperty.call(e,`callId`)||Object.defineProperty(e,`callId`,{value:n.id}),e}throw e};try{if(a===`played`&&!n.retain)throw P_;let i=(r.getArgs?r.getArgs(n,this.getState(n.storyId)):n.args).map(e=>typeof e!=`function`||W_(e)||Object.keys(e).length?e:(...t)=>{let{cursor:r,ancestors:i}=this.getState(n.storyId);this.setState(n.storyId,{cursor:0,ancestors:[...i,n.id]});let a=()=>this.setState(n.storyId,{cursor:r,ancestors:i}),o=!1;try{let n=e(...t);return n instanceof Promise?(o=!0,n.finally(a)):n}finally{o||a()}}),o=e.apply(t,i);return o&&[`object`,`function`,`symbol`].includes(typeof o)&&this.setState(n.storyId,e=>({callRefsByResult:new Map([...Array.from(e.callRefsByResult.entries()),[o,{__callId__:n.id,retain:n.retain}]])})),this.update({...s,status:o instanceof Promise?`active`:`done`}),o instanceof Promise?o.then(e=>(this.update({...s,status:`done`}),e),c):o}catch(e){return c(e)}}update(e){this.channel?.emit(M_.CALL,e),this.setState(e.storyId,({calls:t})=>{let n=t.concat(e).reduce((e,t)=>Object.assign(e,{[t.id]:t}),{});return{calls:Object.values(n).sort((e,t)=>e.id.localeCompare(t.id,void 0,{numeric:!0}))}}),this.sync(e.storyId)}sync(e){let t=()=>{let{isLocked:t,isPlaying:n}=this.getState(e),r=this.getLog(e),i=r.filter(({ancestors:e})=>!e.length).find(e=>e.status===`waiting`)?.callId,a=r.some(e=>e.status===`active`);if(this.detached||t||a||r.length===0){let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:r};this.channel?.emit(M_.SYNC,e);return}let o=r.some(e=>e.status===`done`||e.status===`error`),s={controlStates:{detached:this.detached,start:o,back:o,goto:!0,next:n,end:n},logItems:r,pausedAt:i};this.channel?.emit(M_.SYNC,s)};this.setState(e,({syncTimeout:e})=>(clearTimeout(e),{syncTimeout:setTimeout(t,0)}))}};function H_(e,t={}){try{let n=!1,r=!1;return W.window?.location?.search?.includes(`instrument=true`)?n=!0:W.window?.location?.search?.includes(`instrument=false`)&&(r=!0),W.window?.parent===W.window&&!n||r?e:(W.window&&!W.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(W.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new V_),(W.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(t){return Lo.warn(t),e}}function U_(e,t){let n=e;for(;n!=null;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Object.getPrototypeOf(n)}}function W_(e){if(typeof e!=`function`)return!1;let t=Object.getOwnPropertyDescriptor(e,`prototype`);return t?!t.writable:!1}var G_=Object.defineProperty,K=(e,t)=>G_(e,`name`,{value:t,configurable:!0}),K_=(e,t)=>{for(var n in t)G_(e,n,{get:t[n],enumerable:!0})},q_={};K_(q_,{addChainableMethod:()=>eb,addLengthGuard:()=>Vy,addMethod:()=>Ky,addProperty:()=>zy,checkError:()=>J_,compareByInspect:()=>nb,eql:()=>hy,expectTypes:()=>sv,flag:()=>q,getActual:()=>cv,getMessage:()=>cy,getName:()=>cb,getOperator:()=>sb,getOwnEnumerableProperties:()=>ib,getOwnEnumerablePropertySymbols:()=>rb,getPathInfo:()=>Iy,hasProperty:()=>Ny,inspect:()=>oy,isNaN:()=>ab,isNumeric:()=>ub,isProxyEnabled:()=>Ry,isRegExp:()=>lb,objDisplay:()=>sy,overwriteChainableMethod:()=>tb,overwriteMethod:()=>Jy,overwriteProperty:()=>qy,proxify:()=>Wy,test:()=>nv,transferFlags:()=>ly,type:()=>rv});var J_={};K_(J_,{compatibleConstructor:()=>Q_,compatibleInstance:()=>Z_,compatibleMessage:()=>$_,getConstructorName:()=>ev,getMessage:()=>tv});function Y_(e){return e instanceof Error||Object.prototype.toString.call(e)===`[object Error]`}K(Y_,`isErrorInstance`);function X_(e){return Object.prototype.toString.call(e)===`[object RegExp]`}K(X_,`isRegExp`);function Z_(e,t){return Y_(t)&&e===t}K(Z_,`compatibleInstance`);function Q_(e,t){return Y_(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(Q_,`compatibleConstructor`);function $_(e,t){let n=typeof e==`string`?e:e.message;return X_(t)?t.test(n):typeof t==`string`?n.indexOf(t)!==-1:!1}K($_,`compatibleMessage`);function ev(e){let t=e;return Y_(e)?t=e.constructor.name:typeof e==`function`&&(t=e.name,t===``&&(t=new e().name||t)),t}K(ev,`getConstructorName`);function tv(e){let t=``;return e&&e.message?t=e.message:typeof e==`string`&&(t=e),t}K(tv,`getMessage`);function q(e,t,n){let r=e.__flags||=Object.create(null);if(arguments.length===3)r[t]=n;else return r[t]}K(q,`flag`);function nv(e,t){let n=q(e,`negate`),r=t[0];return n?!r:r}K(nv,`test`);function rv(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(rv,`type`);var iv=`captureStackTrace`in Error,av,ov=(av=class extends Error{message;get name(){return`AssertionError`}get ok(){return!1}constructor(e=`Unspecified AssertionError`,t,n){super(e),this.message=e,iv&&Error.captureStackTrace(this,n||av);for(let e in t)e in this||(this[e]=t[e])}toJSON(e){return{...this,name:this.name,message:this.message,ok:!1,stack:e===!1?void 0:this.stack}}},K(av,`AssertionError`),av);function sv(e,t){let n=q(e,`message`),r=q(e,`ssfi`);n=n?n+`: `:``,e=q(e,`object`),t=t.map(function(e){return e.toLowerCase()}),t.sort();let i=t.map(function(e,n){let r=~[`a`,`e`,`i`,`o`,`u`].indexOf(e.charAt(0))?`an`:`a`;return(t.length>1&&n===t.length-1?`or `:``)+r+` `+e}).join(`, `),a=rv(e).toLowerCase();if(!t.some(function(e){return a===e}))throw new ov(n+`object tested must be `+i+`, but `+a+` given`,void 0,r)}K(sv,`expectTypes`);function cv(e,t){return t.length>4?t[4]:e._obj}K(cv,`getActual`);var lv={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`]},uv={special:`cyan`,number:`yellow`,bigint:`yellow`,boolean:`yellow`,undefined:`grey`,null:`bold`,string:`green`,symbol:`green`,date:`magenta`,regexp:`red`},dv=`…`;function fv(e,t){let n=lv[uv[t]]||lv[t]||``;return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}K(fv,`colorise`);function pv({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:r=!0,showProxy:i=!1,maxArrayLength:a=1/0,breakLength:o=1/0,seen:s=[],truncate:c=1/0,stylize:l=String}={},u){let d={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!i,maxArrayLength:Number(a),breakLength:Number(o),truncate:Number(c),seen:s,inspect:u,stylize:l};return d.colors&&(d.stylize=fv),d}K(pv,`normaliseOptions`);function mv(e){return e>=`\ud800`&&e<=`\udbff`}K(mv,`isHighSurrogate`);function hv(e,t,n=dv){e=String(e);let r=n.length,i=e.length;if(r>t&&i>r)return n;if(i>t&&i>r){let i=t-r;return i>0&&mv(e[i-1])&&--i,`${e.slice(0,i)}${n}`}return e}K(hv,`truncate`);function gv(e,t,n,r=`, `){n||=t.inspect;let i=e.length;if(i===0)return``;let a=t.truncate,o=``,s=``,c=``;for(let l=0;l<i;l+=1){let i=l+1===e.length,u=l+2===e.length;c=`${dv}(${e.length-l})`;let d=e[l];t.truncate=a-o.length-(i?0:r.length);let f=s||n(d,t)+(i?``:r),p=o.length+f.length,m=p+c.length;if(i&&p>a&&o.length+c.length<=a||!i&&!u&&m>a||(s=i?``:n(e[l+1],t)+(u?``:r),!i&&u&&m>a&&p+s.length>a))break;if(o+=f,!i&&!u&&p+s.length>=a){c=`${dv}(${e.length-l-1})`;break}c=``}return`${o}${c}`}K(gv,`inspectList`);function _v(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,`\\'`).replace(/\\"/g,`"`).replace(/(^"|"$)/g,`'`)}K(_v,`quoteComplexKey`);function vv([e,t],n){return n.truncate-=2,typeof e==`string`?e=_v(e):typeof e!=`number`&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}K(vv,`inspectProperty`);function yv(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`[]`;t.truncate-=4;let r=gv(e,t);t.truncate-=r.length;let i=``;return n.length&&(i=gv(n.map(t=>[t,e[t]]),t,vv)),`[ ${r}${i?`, ${i}`:``} ]`}K(yv,`inspectArray`);var bv=K(e=>typeof Buffer==`function`&&e instanceof Buffer?`Buffer`:e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,`getArrayName`);function xv(e,t){let n=bv(e);t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return`${n}[]`;let i=``;for(let n=0;n<e.length;n++){let r=`${t.stylize(hv(e[n],t.truncate),`number`)}${n===e.length-1?``:`, `}`;if(t.truncate-=r.length,e[n]!==e.length&&t.truncate<=3){i+=`${dv}(${e.length-e[n]+1})`;break}i+=r}let a=``;return r.length&&(a=gv(r.map(t=>[t,e[t]]),t,vv)),`${n}[ ${i}${a?`, ${a}`:``} ]`}K(xv,`inspectTypedArray`);function Sv(e,t){let n=e.toJSON();if(n===null)return`Invalid Date`;let r=n.split(`T`),i=r[0];return t.stylize(`${i}T${hv(r[1],t.truncate-i.length-1)}`,`date`)}K(Sv,`inspectDate`);function Cv(e,t){let n=e[Symbol.toStringTag]||`Function`,r=e.name;return r?t.stylize(`[${n} ${hv(r,t.truncate-11)}]`,`special`):t.stylize(`[${n}]`,`special`)}K(Cv,`inspectFunction`);function wv([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}K(wv,`inspectMapEntry`);function Tv(e){let t=[];return e.forEach((e,n)=>{t.push([n,e])}),t}K(Tv,`mapToEntries`);function Ev(e,t){return e.size===0?`Map{}`:(t.truncate-=7,`Map{ ${gv(Tv(e),t,wv)} }`)}K(Ev,`inspectMap`);var Dv=Number.isNaN||(e=>e!==e);function Ov(e,t){return Dv(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(hv(String(e),t.truncate),`number`)}K(Ov,`inspectNumber`);function kv(e,t){let n=hv(e.toString(),t.truncate-1);return n!==dv&&(n+=`n`),t.stylize(n,`bigint`)}K(kv,`inspectBigInt`);function Av(e,t){let n=e.toString().split(`/`)[2],r=t.truncate-(2+n.length),i=e.source;return t.stylize(`/${hv(i,r)}/${n}`,`regexp`)}K(Av,`inspectRegExp`);function jv(e){let t=[];return e.forEach(e=>{t.push(e)}),t}K(jv,`arrayFromSet`);function Mv(e,t){return e.size===0?`Set{}`:(t.truncate-=7,`Set{ ${gv(jv(e),t)} }`)}K(Mv,`inspectSet`);var Nv=RegExp(`['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]`,`g`),Pv={"\b":`\\b`," ":`\\t`,"\n":`\\n`,"\f":`\\f`,"\r":`\\r`,"'":`\\'`,"\\":`\\\\`},Fv=16,Iv=4;function Lv(e){return Pv[e]||`\\u${`0000${e.charCodeAt(0).toString(Fv)}`.slice(-Iv)}`}K(Lv,`escape`);function Rv(e,t){return Nv.test(e)&&(e=e.replace(Nv,Lv)),t.stylize(`'${hv(e,t.truncate-2)}'`,`string`)}K(Rv,`inspectString`);function zv(e){return`description`in Symbol.prototype?e.description?`Symbol(${e.description})`:`Symbol()`:e.toString()}K(zv,`inspectSymbol`);var Bv=K(()=>`Promise{…}`,`getPromiseValue`);function Vv(e,t){let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&r.length===0)return`{}`;if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return`[Circular]`;t.seen.push(e);let i=gv(n.map(t=>[t,e[t]]),t,vv),a=gv(r.map(t=>[t,e[t]]),t,vv);t.seen.pop();let o=``;return i&&a&&(o=`, `),`{ ${i}${o}${a} }`}K(Vv,`inspectObject`);var Hv=typeof Symbol<`u`&&Symbol.toStringTag?Symbol.toStringTag:!1;function Uv(e,t){let n=``;return Hv&&Hv in e&&(n=e[Hv]),n||=e.constructor.name,(!n||n===`_class`)&&(n=`<Anonymous Class>`),t.truncate-=n.length,`${n}${Vv(e,t)}`}K(Uv,`inspectClass`);function Wv(e,t){return e.length===0?`Arguments[]`:(t.truncate-=13,`Arguments[ ${gv(e,t)} ]`)}K(Wv,`inspectArguments`);var Gv=[`stack`,`line`,`column`,`name`,`message`,`fileName`,`lineNumber`,`columnNumber`,`number`,`description`,`cause`];function Kv(e,t){let n=Object.getOwnPropertyNames(e).filter(e=>Gv.indexOf(e)===-1),r=e.name;t.truncate-=r.length;let i=``;if(typeof e.message==`string`?i=hv(e.message,t.truncate):n.unshift(`message`),i=i?`: ${i}`:``,t.truncate-=i.length+5,t.seen=t.seen||[],t.seen.includes(e))return`[Circular]`;t.seen.push(e);let a=gv(n.map(t=>[t,e[t]]),t,vv);return`${r}${i}${a?` { ${a} }`:``}`}K(Kv,`inspectObject`);function qv([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),`yellow`)}=${n.stylize(`"${t}"`,`string`)}`:`${n.stylize(String(e),`yellow`)}`}K(qv,`inspectAttribute`);function Jv(e,t){return gv(e,t,Yv,`
|
|
213
|
+
`)}K(Jv,`inspectNodeCollection`);function Yv(e,t){switch(e.nodeType){case 1:return Xv(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}K(Yv,`inspectNode`);function Xv(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),i=t.stylize(`<${r}`,`special`),a=t.stylize(`>`,`special`),o=t.stylize(`</${r}>`,`special`);t.truncate-=r.length*2+5;let s=``;n.length>0&&(s+=` `,s+=gv(n.map(t=>[t,e.getAttribute(t)]),t,qv,` `)),t.truncate-=s.length;let c=t.truncate,l=Jv(e.children,t);return l&&l.length>c&&(l=`${dv}(${e.children.length})`),`${i}${s}${a}${l}${o}`}K(Xv,`inspectHTML`);var Zv=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`chai/inspect`):`@@chai/inspect`,Qv=Symbol.for(`nodejs.util.inspect.custom`),$v=new WeakMap,ey={},ty={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:Ov,Number:Ov,bigint:kv,BigInt:kv,string:Rv,String:Rv,function:Cv,Function:Cv,symbol:zv,Symbol:zv,Array:yv,Date:Sv,Map:Ev,Set:Mv,RegExp:Av,Promise:Bv,WeakSet:K((e,t)=>t.stylize(`WeakSet{…}`,`special`),`WeakSet`),WeakMap:K((e,t)=>t.stylize(`WeakMap{…}`,`special`),`WeakMap`),Arguments:Wv,Int8Array:xv,Uint8Array:xv,Uint8ClampedArray:xv,Int16Array:xv,Uint16Array:xv,Int32Array:xv,Uint32Array:xv,Float32Array:xv,Float64Array:xv,Generator:K(()=>``,`Generator`),DataView:K(()=>``,`DataView`),ArrayBuffer:K(()=>``,`ArrayBuffer`),Error:Kv,HTMLCollection:Jv,NodeList:Jv},ny=K((e,t,n)=>Zv in e&&typeof e[Zv]==`function`?e[Zv](t):Qv in e&&typeof e[Qv]==`function`?e[Qv](t.depth,t):`inspect`in e&&typeof e.inspect==`function`?e.inspect(t.depth,t):`constructor`in e&&$v.has(e.constructor)?$v.get(e.constructor)(e,t):ey[n]?ey[n](e,t):``,`inspectCustom`),ry=Object.prototype.toString;function iy(e,t={}){let n=pv(t,iy),{customInspect:r}=n,i=e===null?`null`:typeof e;if(i===`object`&&(i=ry.call(e).slice(8,-1)),i in ty)return ty[i](e,n);if(r&&e){let t=ny(e,n,i);if(t)return typeof t==`string`?t:iy(t,n)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?Vv(e,n):e&&typeof HTMLElement==`function`&&e instanceof HTMLElement?Xv(e,n):`constructor`in e?e.constructor===Object?Vv(e,n):Uv(e,n):e===Object(e)?Vv(e,n):n.stylize(String(e),i)}K(iy,`inspect`);var ay={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:[`then`,`catch`,`inspect`,`toJSON`],deepEqual:null};function oy(e,t,n,r){return iy(e,{colors:r,depth:typeof n>`u`?2:n,showHidden:t,truncate:ay.truncateThreshold?ay.truncateThreshold:1/0})}K(oy,`inspect`);function sy(e){let t=oy(e),n=Object.prototype.toString.call(e);if(ay.truncateThreshold&&t.length>=ay.truncateThreshold){if(n===`[object Function]`)return!e.name||e.name===``?`[Function]`:`[Function: `+e.name+`]`;if(n===`[object Array]`)return`[ Array(`+e.length+`) ]`;if(n===`[object Object]`){let t=Object.keys(e);return`{ Object (`+(t.length>2?t.splice(0,2).join(`, `)+`, ...`:t.join(`, `))+`) }`}else return t}else return t}K(sy,`objDisplay`);function cy(e,t){let n=q(e,`negate`),r=q(e,`object`),i=t[3],a=cv(e,t),o=n?t[2]:t[1],s=q(e,`message`);return typeof o==`function`&&(o=o()),o||=``,o=o.replace(/#\{this\}/g,function(){return sy(r)}).replace(/#\{act\}/g,function(){return sy(a)}).replace(/#\{exp\}/g,function(){return sy(i)}),s?s+`: `+o:o}K(cy,`getMessage`);function ly(e,t,n){let r=e.__flags||=Object.create(null);t.__flags||=Object.create(null),n=arguments.length===3?n:!0;for(let e in r)(n||e!==`object`&&e!==`ssfi`&&e!==`lockSsfi`&&e!=`message`)&&(t.__flags[e]=r[e])}K(ly,`transferFlags`);function uy(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(uy,`type`);function dy(){this._key=`chai/deep-eql__`+Math.random()+Date.now()}K(dy,`FakeMap`),dy.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 fy=typeof WeakMap==`function`?WeakMap:dy;function py(e,t,n){if(!n||jy(e)||jy(t))return null;var r=n.get(e);if(r){var i=r.get(t);if(typeof i==`boolean`)return i}return null}K(py,`memoizeCompare`);function my(e,t,n,r){if(!(!n||jy(e)||jy(t))){var i=n.get(e);i?i.set(t,r):(i=new fy,i.set(t,r),n.set(e,i))}}K(my,`memoizeSet`);var hy=gy;function gy(e,t,n){if(n&&n.comparator)return vy(e,t,n);var r=_y(e,t);return r===null?vy(e,t,n):r}K(gy,`deepEqual`);function _y(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t?!0:jy(e)||jy(t)?!1:null}K(_y,`simpleEqual`);function vy(e,t,n){n||={},n.memoize=n.memoize===!1?!1:n.memoize||new fy;var r=n&&n.comparator,i=py(e,t,n.memoize);if(i!==null)return i;var a=py(t,e,n.memoize);if(a!==null)return a;if(r){var o=r(e,t);if(o===!1||o===!0)return my(e,t,n.memoize,o),o;var s=_y(e,t);if(s!==null)return s}var c=uy(e);if(c!==uy(t))return my(e,t,n.memoize,!1),!1;my(e,t,n.memoize,!0);var l=yy(e,t,c,n);return my(e,t,n.memoize,l),l}K(vy,`extensiveDeepEqual`);function yy(e,t,n,r){switch(n){case`String`:case`Number`:case`Boolean`:case`Date`:return gy(e.valueOf(),t.valueOf());case`Promise`:case`Symbol`:case`function`:case`WeakMap`:case`WeakSet`:return e===t;case`Error`:return ky(e,t,[`name`,`message`,`code`],r);case`Arguments`:case`Int8Array`:case`Uint8Array`:case`Uint8ClampedArray`:case`Int16Array`:case`Uint16Array`:case`Int32Array`:case`Uint32Array`:case`Float32Array`:case`Float64Array`:case`Array`:return Sy(e,t,r);case`RegExp`:return by(e,t);case`Generator`:return Cy(e,t,r);case`DataView`:return Sy(new Uint8Array(e.buffer),new Uint8Array(t.buffer),r);case`ArrayBuffer`:return Sy(new Uint8Array(e),new Uint8Array(t),r);case`Set`:return xy(e,t,r);case`Map`:return xy(e,t,r);case`Temporal.PlainDate`:case`Temporal.PlainTime`:case`Temporal.PlainDateTime`:case`Temporal.Instant`:case`Temporal.ZonedDateTime`:case`Temporal.PlainYearMonth`:case`Temporal.PlainMonthDay`:return e.equals(t);case`Temporal.Duration`:return e.total(`nanoseconds`)===t.total(`nanoseconds`);case`Temporal.TimeZone`:case`Temporal.Calendar`:return e.toString()===t.toString();default:return Ay(e,t,r)}}K(yy,`extensiveDeepEqualByType`);function by(e,t){return e.toString()===t.toString()}K(by,`regexpEqual`);function xy(e,t,n){try{if(e.size!==t.size)return!1;if(e.size===0)return!0}catch{return!1}var r=[],i=[];return e.forEach(K(function(e,t){r.push([e,t])},`gatherEntries`)),t.forEach(K(function(e,t){i.push([e,t])},`gatherEntries`)),Sy(r.sort(),i.sort(),n)}K(xy,`entriesEqual`);function Sy(e,t,n){var r=e.length;if(r!==t.length)return!1;if(r===0)return!0;for(var i=-1;++i<r;)if(gy(e[i],t[i],n)===!1)return!1;return!0}K(Sy,`iterableEqual`);function Cy(e,t,n){return Sy(Ey(e),Ey(t),n)}K(Cy,`generatorEqual`);function wy(e){return typeof Symbol<`u`&&typeof e==`object`&&typeof Symbol.iterator<`u`&&typeof e[Symbol.iterator]==`function`}K(wy,`hasIteratorFunction`);function Ty(e){if(wy(e))try{return Ey(e[Symbol.iterator]())}catch{return[]}return[]}K(Ty,`getIteratorEntries`);function Ey(e){for(var t=e.next(),n=[t.value];t.done===!1;)t=e.next(),n.push(t.value);return n}K(Ey,`getGeneratorEntries`);function Dy(e){var t=[];for(var n in e)t.push(n);return t}K(Dy,`getEnumerableKeys`);function Oy(e){for(var t=[],n=Object.getOwnPropertySymbols(e),r=0;r<n.length;r+=1){var i=n[r];Object.getOwnPropertyDescriptor(e,i).enumerable&&t.push(i)}return t}K(Oy,`getEnumerableSymbols`);function ky(e,t,n,r){var i=n.length;if(i===0)return!0;for(var a=0;a<i;a+=1)if(gy(e[n[a]],t[n[a]],r)===!1)return!1;return!0}K(ky,`keysEqual`);function Ay(e,t,n){var r=Dy(e),i=Dy(t),a=Oy(e),o=Oy(t);if(r=r.concat(a),i=i.concat(o),r.length&&r.length===i.length)return Sy(My(r).sort(),My(i).sort())===!1?!1:ky(e,t,r,n);var s=Ty(e),c=Ty(t);return s.length&&s.length===c.length?(s.sort(),c.sort(),Sy(s,c,n)):r.length===0&&s.length===0&&i.length===0&&c.length===0}K(Ay,`objectEqual`);function jy(e){return typeof e!=`object`||!e}K(jy,`isPrimitive`);function My(e){return e.map(K(function(e){return typeof e==`symbol`?e.toString():e},`mapSymbol`))}K(My,`mapSymbols`);function Ny(e,t){return typeof e>`u`||e===null?!1:t in Object(e)}K(Ny,`hasProperty`);function Py(e){return e.replace(/([^\\])\[/g,`$1.[`).match(/(\\\.|[^.]+?)+/g).map(e=>{if(e===`constructor`||e===`__proto__`||e===`prototype`)return{};let t=/^\[(\d+)\]$/.exec(e),n=null;return n=t?{i:parseFloat(t[1])}:{p:e.replace(/\\([.[\]])/g,`$1`)},n})}K(Py,`parsePath`);function Fy(e,t,n){let r=e,i=null;n=typeof n>`u`?t.length:n;for(let e=0;e<n;e++){let a=t[e];r&&(r=typeof a.p>`u`?r[a.i]:r[a.p],e===n-1&&(i=r))}return i}K(Fy,`internalGetPathValue`);function Iy(e,t){let n=Py(t),r=n[n.length-1],i={parent:n.length>1?Fy(e,n,n.length-1):e,name:r.p||r.i,value:Fy(e,n)};return i.exists=Ny(i.parent,i.name),i}K(Iy,`getPathInfo`);var Ly,J=(Ly=class{__flags={};constructor(e,t,n,r){return q(this,`ssfi`,n||Ly),q(this,`lockSsfi`,r),q(this,`object`,e),q(this,`message`,t),q(this,`eql`,ay.deepEqual||hy),Wy(this)}static get includeStack(){return console.warn(`Assertion.includeStack is deprecated, use chai.config.includeStack instead.`),ay.includeStack}static set includeStack(e){console.warn(`Assertion.includeStack is deprecated, use chai.config.includeStack instead.`),ay.includeStack=e}static get showDiff(){return console.warn(`Assertion.showDiff is deprecated, use chai.config.showDiff instead.`),ay.showDiff}static set showDiff(e){console.warn(`Assertion.showDiff is deprecated, use chai.config.showDiff instead.`),ay.showDiff=e}static addProperty(e,t){zy(this.prototype,e,t)}static addMethod(e,t){Ky(this.prototype,e,t)}static addChainableMethod(e,t,n){eb(this.prototype,e,t,n)}static overwriteProperty(e,t){qy(this.prototype,e,t)}static overwriteMethod(e,t){Jy(this.prototype,e,t)}static overwriteChainableMethod(e,t,n){tb(this.prototype,e,t,n)}assert(e,t,n,r,i,a){let o=nv(this,arguments);if(a!==!1&&(a=!0),r===void 0&&i===void 0&&(a=!1),ay.showDiff!==!0&&(a=!1),!o){t=cy(this,arguments);let e={actual:cv(this,arguments),expected:r,showDiff:a},n=sb(this,arguments);throw n&&(e.operator=n),new ov(t,e,ay.includeStack?this.assert:q(this,`ssfi`))}}get _obj(){return q(this,`object`)}set _obj(e){q(this,`object`,e)}},K(Ly,`Assertion`),Ly);function Ry(){return ay.useProxy&&typeof Proxy<`u`&&typeof Reflect<`u`}K(Ry,`isProxyEnabled`);function zy(e,t,n){n=n===void 0?function(){}:n,Object.defineProperty(e,t,{get:K(function e(){!Ry()&&!q(this,`lockSsfi`)&&q(this,`ssfi`,e);let t=n.call(this);if(t!==void 0)return t;let r=new J;return ly(this,r),r},`propertyGetter`),configurable:!0})}K(zy,`addProperty`);var By=Object.getOwnPropertyDescriptor(function(){},`length`);function Vy(e,t,n){return By.configurable&&Object.defineProperty(e,`length`,{get:K(function(){throw Error(n?`Invalid Chai property: `+t+`.length. Due to a compatibility issue, "length" cannot directly follow "`+t+`". Use "`+t+`.lengthOf" instead.`:`Invalid Chai property: `+t+`.length. See docs for proper usage of "`+t+`".`)},`get`)}),e}K(Vy,`addLengthGuard`);function Hy(e){let t=Object.getOwnPropertyNames(e);function n(e){t.indexOf(e)===-1&&t.push(e)}K(n,`addProperty`);let r=Object.getPrototypeOf(e);for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n),r=Object.getPrototypeOf(r);return t}K(Hy,`getProperties`);var Uy=[`__flags`,`__methods`,`_obj`,`assert`];function Wy(e,t){return Ry()?new Proxy(e,{get:K(function e(n,r){if(typeof r==`string`&&ay.proxyExcludedKeys.indexOf(r)===-1&&!Reflect.has(n,r)){if(t)throw Error(`Invalid Chai property: `+t+`.`+r+`. See docs for proper usage of "`+t+`".`);let e=null,i=4;throw Hy(n).forEach(function(t){if(!Object.prototype.hasOwnProperty(t)&&Uy.indexOf(t)===-1){let n=Gy(r,t,i);n<i&&(e=t,i=n)}}),Error(e===null?`Invalid Chai property: `+r:`Invalid Chai property: `+r+`. Did you mean "`+e+`"?`)}return Uy.indexOf(r)===-1&&!q(n,`lockSsfi`)&&q(n,`ssfi`,e),Reflect.get(n,r)},`proxyGetter`)}):e}K(Wy,`proxify`);function Gy(e,t,n){if(Math.abs(e.length-t.length)>=n)return n;let r=[];for(let n=0;n<=e.length;n++)r[n]=Array(t.length+1).fill(0),r[n][0]=n;for(let e=0;e<t.length;e++)r[0][e]=e;for(let i=1;i<=e.length;i++){let a=e.charCodeAt(i-1);for(let e=1;e<=t.length;e++){if(Math.abs(i-e)>=n){r[i][e]=n;continue}r[i][e]=Math.min(r[i-1][e]+1,r[i][e-1]+1,r[i-1][e-1]+(a===t.charCodeAt(e-1)?0:1))}}return r[e.length][t.length]}K(Gy,`stringDistanceCapped`);function Ky(e,t,n){let r=K(function(){q(this,`lockSsfi`)||q(this,`ssfi`,r);let e=n.apply(this,arguments);if(e!==void 0)return e;let t=new J;return ly(this,t),t},`methodWrapper`);Vy(r,t,!1),e[t]=Wy(r,t)}K(Ky,`addMethod`);function qy(e,t,n){let r=Object.getOwnPropertyDescriptor(e,t),i=K(function(){},`_super`);r&&typeof r.get==`function`&&(i=r.get),Object.defineProperty(e,t,{get:K(function e(){!Ry()&&!q(this,`lockSsfi`)&&q(this,`ssfi`,e);let t=q(this,`lockSsfi`);q(this,`lockSsfi`,!0);let r=n(i).call(this);if(q(this,`lockSsfi`,t),r!==void 0)return r;let a=new J;return ly(this,a),a},`overwritingPropertyGetter`),configurable:!0})}K(qy,`overwriteProperty`);function Jy(e,t,n){let r=e[t],i=K(function(){throw Error(t+` is not a function`)},`_super`);r&&typeof r==`function`&&(i=r);let a=K(function(){q(this,`lockSsfi`)||q(this,`ssfi`,a);let e=q(this,`lockSsfi`);q(this,`lockSsfi`,!0);let t=n(i).apply(this,arguments);if(q(this,`lockSsfi`,e),t!==void 0)return t;let r=new J;return ly(this,r),r},`overwritingMethodWrapper`);Vy(a,t,!1),e[t]=Wy(a,t)}K(Jy,`overwriteMethod`);var Yy=typeof Object.setPrototypeOf==`function`,Xy=K(function(){},`testFn`),Zy=Object.getOwnPropertyNames(Xy).filter(function(e){let t=Object.getOwnPropertyDescriptor(Xy,e);return typeof t==`object`?!t.configurable:!0}),Qy=Function.prototype.call,$y=Function.prototype.apply;function eb(e,t,n,r){typeof r!=`function`&&(r=K(function(){},`chainingBehavior`));let i={method:n,chainingBehavior:r};e.__methods||={},e.__methods[t]=i,Object.defineProperty(e,t,{get:K(function(){i.chainingBehavior.call(this);let n=K(function(){q(this,`lockSsfi`)||q(this,`ssfi`,n);let e=i.method.apply(this,arguments);if(e!==void 0)return e;let t=new J;return ly(this,t),t},`chainableMethodWrapper`);if(Vy(n,t,!0),Yy){let e=Object.create(this);e.call=Qy,e.apply=$y,Object.setPrototypeOf(n,e)}else Object.getOwnPropertyNames(e).forEach(function(t){if(Zy.indexOf(t)!==-1)return;let r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r)});return ly(this,n),Wy(n)},`chainableMethodGetter`),configurable:!0})}K(eb,`addChainableMethod`);function tb(e,t,n,r){let i=e.__methods[t],a=i.chainingBehavior;i.chainingBehavior=K(function(){let e=r(a).call(this);if(e!==void 0)return e;let t=new J;return ly(this,t),t},`overwritingChainableMethodGetter`);let o=i.method;i.method=K(function(){let e=n(o).apply(this,arguments);if(e!==void 0)return e;let t=new J;return ly(this,t),t},`overwritingChainableMethodWrapper`)}K(tb,`overwriteChainableMethod`);function nb(e,t){return oy(e)<oy(t)?-1:1}K(nb,`compareByInspect`);function rb(e){return typeof Object.getOwnPropertySymbols==`function`?Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}):[]}K(rb,`getOwnEnumerablePropertySymbols`);function ib(e){return Object.keys(e).concat(rb(e))}K(ib,`getOwnEnumerableProperties`);var ab=Number.isNaN;function ob(e){let t=rv(e);return[`Array`,`Object`,`Function`].indexOf(t)!==-1}K(ob,`isObjectType`);function sb(e,t){let n=q(e,`operator`),r=q(e,`negate`),i=t[3],a=r?t[2]:t[1];if(n)return n;if(typeof a==`function`&&(a=a()),a||=``,!a||/\shave\s/.test(a))return;let o=ob(i);return/\snot\s/.test(a)?o?`notDeepStrictEqual`:`notStrictEqual`:o?`deepStrictEqual`:`strictEqual`}K(sb,`getOperator`);function cb(e){return e.name}K(cb,`getName`);function lb(e){return Object.prototype.toString.call(e)===`[object RegExp]`}K(lb,`isRegExp`);function ub(e){return[`Number`,`BigInt`].includes(rv(e))}K(ub,`isNumeric`);var{flag:Y}=q_;[`to`,`be`,`been`,`is`,`and`,`has`,`have`,`with`,`that`,`which`,`at`,`of`,`same`,`but`,`does`,`still`,`also`].forEach(function(e){J.addProperty(e)}),J.addProperty(`not`,function(){Y(this,`negate`,!0)}),J.addProperty(`deep`,function(){Y(this,`deep`,!0)}),J.addProperty(`nested`,function(){Y(this,`nested`,!0)}),J.addProperty(`own`,function(){Y(this,`own`,!0)}),J.addProperty(`ordered`,function(){Y(this,`ordered`,!0)}),J.addProperty(`any`,function(){Y(this,`any`,!0),Y(this,`all`,!1)}),J.addProperty(`all`,function(){Y(this,`all`,!0),Y(this,`any`,!1)});var db={function:[`function`,`asyncfunction`,`generatorfunction`,`asyncgeneratorfunction`],asyncfunction:[`asyncfunction`,`asyncgeneratorfunction`],generatorfunction:[`generatorfunction`,`asyncgeneratorfunction`],asyncgeneratorfunction:[`asyncgeneratorfunction`]};function fb(e,t){t&&Y(this,`message`,t),e=e.toLowerCase();let n=Y(this,`object`),r=~[`a`,`e`,`i`,`o`,`u`].indexOf(e.charAt(0))?`an `:`a `,i=rv(n).toLowerCase();db.function.includes(e)?this.assert(db[e].includes(i),`expected #{this} to be `+r+e,`expected #{this} not to be `+r+e):this.assert(e===i,`expected #{this} to be `+r+e,`expected #{this} not to be `+r+e)}K(fb,`an`),J.addChainableMethod(`an`,fb),J.addChainableMethod(`a`,fb);function pb(e,t){return ab(e)&&ab(t)||e===t}K(pb,`SameValueZero`);function mb(){Y(this,`contains`,!0)}K(mb,`includeChainingBehavior`);function hb(e,t){t&&Y(this,`message`,t);let n=Y(this,`object`),r=rv(n).toLowerCase(),i=Y(this,`message`),a=Y(this,`negate`),o=Y(this,`ssfi`),s=Y(this,`deep`),c=s?`deep `:``,l=s?Y(this,`eql`):pb;i=i?i+`: `:``;let u=!1;switch(r){case`string`:u=n.indexOf(e)!==-1;break;case`weakset`:if(s)throw new ov(i+`unable to use .deep.include with WeakSet`,void 0,o);u=n.has(e);break;case`map`:n.forEach(function(t){u||=l(t,e)});break;case`set`:s?n.forEach(function(t){u||=l(t,e)}):u=n.has(e);break;case`array`:u=s?n.some(function(t){return l(t,e)}):n.indexOf(e)!==-1;break;default:{if(e!==Object(e))throw new ov(i+`the given combination of arguments (`+r+` and `+rv(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 `+rv(e).toLowerCase(),void 0,o);let t=Object.keys(e),s=null,c=0;if(t.forEach(function(r){let i=new J(n);if(ly(this,i,!0),Y(i,`lockSsfi`,!0),!a||t.length===1){i.property(r,e[r]);return}try{i.property(r,e[r])}catch(e){if(!J_.compatibleConstructor(e,ov))throw e;s===null&&(s=e),c++}},this),a&&t.length>1&&c===t.length)throw s;return}}this.assert(u,`expected #{this} to `+c+`include `+oy(e),`expected #{this} to not `+c+`include `+oy(e))}K(hb,`include`),J.addChainableMethod(`include`,hb,mb),J.addChainableMethod(`contain`,hb,mb),J.addChainableMethod(`contains`,hb,mb),J.addChainableMethod(`includes`,hb,mb),J.addProperty(`ok`,function(){this.assert(Y(this,`object`),`expected #{this} to be truthy`,`expected #{this} to be falsy`)}),J.addProperty(`true`,function(){this.assert(Y(this,`object`)===!0,`expected #{this} to be true`,`expected #{this} to be false`,!Y(this,`negate`))}),J.addProperty(`numeric`,function(){let e=Y(this,`object`);this.assert([`Number`,`BigInt`].includes(rv(e)),`expected #{this} to be numeric`,`expected #{this} to not be numeric`,!Y(this,`negate`))}),J.addProperty(`callable`,function(){let e=Y(this,`object`),t=Y(this,`ssfi`),n=Y(this,`message`),r=n?`${n}: `:``,i=Y(this,`negate`),a=i?`${r}expected ${oy(e)} not to be a callable function`:`${r}expected ${oy(e)} to be a callable function`,o=[`Function`,`AsyncFunction`,`GeneratorFunction`,`AsyncGeneratorFunction`].includes(rv(e));if(o&&i||!o&&!i)throw new ov(a,void 0,t)}),J.addProperty(`false`,function(){this.assert(Y(this,`object`)===!1,`expected #{this} to be false`,`expected #{this} to be true`,!!Y(this,`negate`))}),J.addProperty(`null`,function(){this.assert(Y(this,`object`)===null,`expected #{this} to be null`,`expected #{this} not to be null`)}),J.addProperty(`undefined`,function(){this.assert(Y(this,`object`)===void 0,`expected #{this} to be undefined`,`expected #{this} not to be undefined`)}),J.addProperty(`NaN`,function(){this.assert(ab(Y(this,`object`)),`expected #{this} to be NaN`,`expected #{this} not to be NaN`)});function gb(){let e=Y(this,`object`);this.assert(e!=null,`expected #{this} to exist`,`expected #{this} to not exist`)}K(gb,`assertExist`),J.addProperty(`exist`,gb),J.addProperty(`exists`,gb),J.addProperty(`empty`,function(){let e=Y(this,`object`),t=Y(this,`ssfi`),n=Y(this,`message`),r;switch(n=n?n+`: `:``,rv(e).toLowerCase()){case`array`:case`string`:r=e.length;break;case`map`:case`set`:r=e.size;break;case`weakmap`:case`weakset`:throw new ov(n+`.empty was passed a weak collection`,void 0,t);case`function`:throw new ov((n+`.empty was passed a function `+cb(e)).trim(),void 0,t);default:if(e!==Object(e))throw new ov(n+`.empty was passed non-string primitive `+oy(e),void 0,t);r=Object.keys(e).length}this.assert(r===0,`expected #{this} to be empty`,`expected #{this} not to be empty`)});function _b(){let e=rv(Y(this,`object`));this.assert(e===`Arguments`,`expected #{this} to be arguments but got `+e,`expected #{this} to not be arguments`)}K(_b,`checkArguments`),J.addProperty(`arguments`,_b),J.addProperty(`Arguments`,_b);function vb(e,t){t&&Y(this,`message`,t);let n=Y(this,`object`);if(Y(this,`deep`)){let t=Y(this,`lockSsfi`);Y(this,`lockSsfi`,!0),this.eql(e),Y(this,`lockSsfi`,t)}else this.assert(e===n,`expected #{this} to equal #{exp}`,`expected #{this} to not equal #{exp}`,e,this._obj,!0)}K(vb,`assertEqual`),J.addMethod(`equal`,vb),J.addMethod(`equals`,vb),J.addMethod(`eq`,vb);function yb(e,t){t&&Y(this,`message`,t);let n=Y(this,`eql`);this.assert(n(e,Y(this,`object`)),`expected #{this} to deeply equal #{exp}`,`expected #{this} to not deeply equal #{exp}`,e,this._obj,!0)}K(yb,`assertEql`),J.addMethod(`eql`,yb),J.addMethod(`eqls`,yb);function bb(e,t){t&&Y(this,`message`,t);let n=Y(this,`object`),r=Y(this,`doLength`),i=Y(this,`message`),a=i?i+`: `:``,o=Y(this,`ssfi`),s=rv(n).toLowerCase(),c=rv(e).toLowerCase();if(r&&s!==`map`&&s!==`set`&&new J(n,i,o,!0).to.have.property(`length`),!r&&s===`date`&&c!==`date`)throw new ov(a+`the argument to above must be a date`,void 0,o);if(!ub(e)&&(r||ub(n)))throw new ov(a+`the argument to above must be a number`,void 0,o);if(!r&&s!==`date`&&!ub(n)){let e=s===`string`?`'`+n+`'`:n;throw new ov(a+`expected `+e+` to be a number or a date`,void 0,o)}if(r){let t=`length`,r;s===`map`||s===`set`?(t=`size`,r=n.size):r=n.length,this.assert(r>e,`expected #{this} to have a `+t+` above #{exp} but got #{act}`,`expected #{this} to not have a `+t+` above #{exp}`,e,r)}else this.assert(n>e,`expected #{this} to be above #{exp}`,`expected #{this} to be at most #{exp}`,e)}K(bb,`assertAbove`),J.addMethod(`above`,bb),J.addMethod(`gt`,bb),J.addMethod(`greaterThan`,bb);function xb(e,t){t&&Y(this,`message`,t);let n=Y(this,`object`),r=Y(this,`doLength`),i=Y(this,`message`),a=i?i+`: `:``,o=Y(this,`ssfi`),s=rv(n).toLowerCase(),c=rv(e).toLowerCase(),l,u=!0;if(r&&s!==`map`&&s!==`set`&&new J(n,i,o,!0).to.have.property(`length`),!r&&s===`date`&&c!==`date`)l=a+`the argument to least must be a date`;else if(!ub(e)&&(r||ub(n)))l=a+`the argument to least must be a number`;else if(!r&&s!==`date`&&!ub(n)){let e=s===`string`?`'`+n+`'`:n;l=a+`expected `+e+` to be a number or a date`}else u=!1;if(u)throw new ov(l,void 0,o);if(r){let t=`length`,r;s===`map`||s===`set`?(t=`size`,r=n.size):r=n.length,this.assert(r>=e,`expected #{this} to have a `+t+` at least #{exp} but got #{act}`,`expected #{this} to have a `+t+` below #{exp}`,e,r)}else this.assert(n>=e,`expected #{this} to be at least #{exp}`,`expected #{this} to be below #{exp}`,e)}K(xb,`assertLeast`),J.addMethod(`least`,xb),J.addMethod(`gte`,xb),J.addMethod(`greaterThanOrEqual`,xb);function Sb(e,t){t&&Y(this,`message`,t);let n=Y(this,`object`),r=Y(this,`doLength`),i=Y(this,`message`),a=i?i+`: `:``,o=Y(this,`ssfi`),s=rv(n).toLowerCase(),c=rv(e).toLowerCase(),l,u=!0;if(r&&s!==`map`&&s!==`set`&&new J(n,i,o,!0).to.have.property(`length`),!r&&s===`date`&&c!==`date`)l=a+`the argument to below must be a date`;else if(!ub(e)&&(r||ub(n)))l=a+`the argument to below must be a number`;else if(!r&&s!==`date`&&!ub(n)){let e=s===`string`?`'`+n+`'`:n;l=a+`expected `+e+` to be a number or a date`}else u=!1;if(u)throw new ov(l,void 0,o);if(r){let t=`length`,r;s===`map`||s===`set`?(t=`size`,r=n.size):r=n.length,this.assert(r<e,`expected #{this} to have a `+t+` below #{exp} but got #{act}`,`expected #{this} to not have a `+t+` below #{exp}`,e,r)}else this.assert(n<e,`expected #{this} to be below #{exp}`,`expected #{this} to be at least #{exp}`,e)}K(Sb,`assertBelow`),J.addMethod(`below`,Sb),J.addMethod(`lt`,Sb),J.addMethod(`lessThan`,Sb);function Cb(e,t){t&&Y(this,`message`,t);let n=Y(this,`object`),r=Y(this,`doLength`),i=Y(this,`message`),a=i?i+`: `:``,o=Y(this,`ssfi`),s=rv(n).toLowerCase(),c=rv(e).toLowerCase(),l,u=!0;if(r&&s!==`map`&&s!==`set`&&new J(n,i,o,!0).to.have.property(`length`),!r&&s===`date`&&c!==`date`)l=a+`the argument to most must be a date`;else if(!ub(e)&&(r||ub(n)))l=a+`the argument to most must be a number`;else if(!r&&s!==`date`&&!ub(n)){let e=s===`string`?`'`+n+`'`:n;l=a+`expected `+e+` to be a number or a date`}else u=!1;if(u)throw new ov(l,void 0,o);if(r){let t=`length`,r;s===`map`||s===`set`?(t=`size`,r=n.size):r=n.length,this.assert(r<=e,`expected #{this} to have a `+t+` at most #{exp} but got #{act}`,`expected #{this} to have a `+t+` above #{exp}`,e,r)}else this.assert(n<=e,`expected #{this} to be at most #{exp}`,`expected #{this} to be above #{exp}`,e)}K(Cb,`assertMost`),J.addMethod(`most`,Cb),J.addMethod(`lte`,Cb),J.addMethod(`lessThanOrEqual`,Cb),J.addMethod(`within`,function(e,t,n){n&&Y(this,`message`,n);let r=Y(this,`object`),i=Y(this,`doLength`),a=Y(this,`message`),o=a?a+`: `:``,s=Y(this,`ssfi`),c=rv(r).toLowerCase(),l=rv(e).toLowerCase(),u=rv(t).toLowerCase(),d,f=!0,p=l===`date`&&u===`date`?e.toISOString()+`..`+t.toISOString():e+`..`+t;if(i&&c!==`map`&&c!==`set`&&new J(r,a,s,!0).to.have.property(`length`),!i&&c===`date`&&(l!==`date`||u!==`date`))d=o+`the arguments to within must be dates`;else if((!ub(e)||!ub(t))&&(i||ub(r)))d=o+`the arguments to within must be numbers`;else if(!i&&c!==`date`&&!ub(r)){let e=c===`string`?`'`+r+`'`:r;d=o+`expected `+e+` to be a number or a date`}else f=!1;if(f)throw new ov(d,void 0,s);if(i){let n=`length`,i;c===`map`||c===`set`?(n=`size`,i=r.size):i=r.length,this.assert(i>=e&&i<=t,`expected #{this} to have a `+n+` within `+p,`expected #{this} to not have a `+n+` within `+p)}else this.assert(r>=e&&r<=t,`expected #{this} to be within `+p,`expected #{this} to not be within `+p)});function wb(e,t){t&&Y(this,`message`,t);let n=Y(this,`object`),r=Y(this,`ssfi`),i=Y(this,`message`),a;try{a=n instanceof e}catch(t){throw t instanceof TypeError?(i=i?i+`: `:``,new ov(i+`The instanceof assertion needs a constructor but `+rv(e)+` was given.`,void 0,r)):t}let o=cb(e);o??=`an unnamed constructor`,this.assert(a,`expected #{this} to be an instance of `+o,`expected #{this} to not be an instance of `+o)}K(wb,`assertInstanceOf`),J.addMethod(`instanceof`,wb),J.addMethod(`instanceOf`,wb);function Tb(e,t,n){n&&Y(this,`message`,n);let r=Y(this,`nested`),i=Y(this,`own`),a=Y(this,`message`),o=Y(this,`object`),s=Y(this,`ssfi`),c=typeof e;if(a=a?a+`: `:``,r){if(c!==`string`)throw new ov(a+`the argument to property must be a string when using nested syntax`,void 0,s)}else if(c!==`string`&&c!==`number`&&c!==`symbol`)throw new ov(a+`the argument to property must be a string, number, or symbol`,void 0,s);if(r&&i)throw new ov(a+`The "nested" and "own" flags cannot be combined.`,void 0,s);if(o==null)throw new ov(a+`Target cannot be null or undefined.`,void 0,s);let l=Y(this,`deep`),u=Y(this,`negate`),d=r?Iy(o,e):null,f=r?d.value:o[e],p=l?Y(this,`eql`):(e,t)=>e===t,m=``;l&&(m+=`deep `),i&&(m+=`own `),r&&(m+=`nested `),m+=`property `;let h;h=i?Object.prototype.hasOwnProperty.call(o,e):r?d.exists:Ny(o,e),(!u||arguments.length===1)&&this.assert(h,`expected #{this} to have `+m+oy(e),`expected #{this} to not have `+m+oy(e)),arguments.length>1&&this.assert(h&&p(t,f),`expected #{this} to have `+m+oy(e)+` of #{exp}, but got #{act}`,`expected #{this} to not have `+m+oy(e)+` of #{act}`,t,f),Y(this,`object`,f)}K(Tb,`assertProperty`),J.addMethod(`property`,Tb);function Eb(e,t,n){Y(this,`own`,!0),Tb.apply(this,arguments)}K(Eb,`assertOwnProperty`),J.addMethod(`ownProperty`,Eb),J.addMethod(`haveOwnProperty`,Eb);function Db(e,t,n){typeof t==`string`&&(n=t,t=null),n&&Y(this,`message`,n);let r=Y(this,`object`),i=Object.getOwnPropertyDescriptor(Object(r),e),a=Y(this,`eql`);i&&t?this.assert(a(t,i),`expected the own property descriptor for `+oy(e)+` on #{this} to match `+oy(t)+`, got `+oy(i),`expected the own property descriptor for `+oy(e)+` on #{this} to not match `+oy(t),t,i,!0):this.assert(i,`expected #{this} to have an own property descriptor for `+oy(e),`expected #{this} to not have an own property descriptor for `+oy(e)),Y(this,`object`,i)}K(Db,`assertOwnPropertyDescriptor`),J.addMethod(`ownPropertyDescriptor`,Db),J.addMethod(`haveOwnPropertyDescriptor`,Db);function Ob(){Y(this,`doLength`,!0)}K(Ob,`assertLengthChain`);function kb(e,t){t&&Y(this,`message`,t);let n=Y(this,`object`),r=rv(n).toLowerCase(),i=Y(this,`message`),a=Y(this,`ssfi`),o=`length`,s;switch(r){case`map`:case`set`:o=`size`,s=n.size;break;default:new J(n,i,a,!0).to.have.property(`length`),s=n.length}this.assert(s==e,`expected #{this} to have a `+o+` of #{exp} but got #{act}`,`expected #{this} to not have a `+o+` of #{act}`,e,s)}K(kb,`assertLength`),J.addChainableMethod(`length`,kb,Ob),J.addChainableMethod(`lengthOf`,kb,Ob);function Ab(e,t){t&&Y(this,`message`,t);let n=Y(this,`object`);this.assert(e.exec(n),`expected #{this} to match `+e,`expected #{this} not to match `+e)}K(Ab,`assertMatch`),J.addMethod(`match`,Ab),J.addMethod(`matches`,Ab),J.addMethod(`string`,function(e,t){t&&Y(this,`message`,t);let n=Y(this,`object`);new J(n,Y(this,`message`),Y(this,`ssfi`),!0).is.a(`string`),this.assert(~n.indexOf(e),`expected #{this} to contain `+oy(e),`expected #{this} to not contain `+oy(e))});function jb(e){let t=Y(this,`object`),n=rv(t),r=rv(e),i=Y(this,`ssfi`),a=Y(this,`deep`),o,s=``,c,l=!0,u=Y(this,`message`);u=u?u+`: `:``;let d=u+`when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments`;if(n===`Map`||n===`Set`)s=a?`deeply `:``,c=[],t.forEach(function(e,t){c.push(t)}),r!==`Array`&&(e=Array.prototype.slice.call(arguments));else{switch(c=ib(t),r){case`Array`:if(arguments.length>1)throw new ov(d,void 0,i);break;case`Object`:if(arguments.length>1)throw new ov(d,void 0,i);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map(function(e){return typeof e==`symbol`?e:String(e)})}if(!e.length)throw new ov(u+`keys required`,void 0,i);let f=e.length,p=Y(this,`any`),m=Y(this,`all`),h=e,g=a?Y(this,`eql`):(e,t)=>e===t;if(!p&&!m&&(m=!0),p&&(l=h.some(function(e){return c.some(function(t){return g(e,t)})})),m&&(l=h.every(function(e){return c.some(function(t){return g(e,t)})}),Y(this,`contains`)||(l&&=e.length==c.length)),f>1){e=e.map(function(e){return oy(e)});let t=e.pop();m&&(o=e.join(`, `)+`, and `+t),p&&(o=e.join(`, `)+`, or `+t)}else o=oy(e[0]);o=(f>1?`keys `:`key `)+o,o=(Y(this,`contains`)?`contain `:`have `)+o,this.assert(l,`expected #{this} to `+s+o,`expected #{this} to not `+s+o,h.slice(0).sort(nb),c.sort(nb),!0)}K(jb,`assertKeys`),J.addMethod(`keys`,jb),J.addMethod(`key`,jb);function Mb(e,t,n){n&&Y(this,`message`,n);let r=Y(this,`object`),i=Y(this,`ssfi`),a=Y(this,`message`),o=Y(this,`negate`)||!1;new J(r,a,i,!0).is.a(`function`),(lb(e)||typeof e==`string`)&&(t=e,e=null);let s,c=!1;try{r()}catch(e){c=!0,s=e}let l=e===void 0&&t===void 0,u=!!(e&&t),d=!1,f=!1;if(l||!l&&!o){let t=`an error`;e instanceof Error?t=`#{exp}`:e&&(t=J_.getConstructorName(e));let n=s;if(s instanceof Error)n=s.toString();else if(typeof s==`string`)n=s;else if(s&&(typeof s==`object`||typeof s==`function`))try{n=J_.getConstructorName(s)}catch{}this.assert(c,`expected #{this} to throw `+t,`expected #{this} to not throw an error but #{act} was thrown`,e&&e.toString(),n)}if(e&&s&&(e instanceof Error&&J_.compatibleInstance(s,e)===o&&(u&&o?d=!0:this.assert(o,`expected #{this} to throw #{exp} but #{act} was thrown`,`expected #{this} to not throw #{exp}`+(s&&!o?` but #{act} was thrown`:``),e.toString(),s.toString())),J_.compatibleConstructor(s,e)===o&&(u&&o?d=!0:this.assert(o,`expected #{this} to throw #{exp} but #{act} was thrown`,`expected #{this} to not throw #{exp}`+(s?` but #{act} was thrown`:``),e instanceof Error?e.toString():e&&J_.getConstructorName(e),s instanceof Error?s.toString():s&&J_.getConstructorName(s)))),s&&t!=null){let e=`including`;lb(t)&&(e=`matching`),J_.compatibleMessage(s,t)===o&&(u&&o?f=!0:this.assert(o,`expected #{this} to throw error `+e+` #{exp} but got #{act}`,`expected #{this} to throw error not `+e+` #{exp}`,t,J_.getMessage(s)))}d&&f&&this.assert(o,`expected #{this} to throw #{exp} but #{act} was thrown`,`expected #{this} to not throw #{exp}`+(s?` but #{act} was thrown`:``),e instanceof Error?e.toString():e&&J_.getConstructorName(e),s instanceof Error?s.toString():s&&J_.getConstructorName(s)),Y(this,`object`,s)}K(Mb,`assertThrows`),J.addMethod(`throw`,Mb),J.addMethod(`throws`,Mb),J.addMethod(`Throw`,Mb);function Nb(e,t){t&&Y(this,`message`,t);let n=Y(this,`object`),r=Y(this,`itself`),i=typeof n==`function`&&!r?n.prototype[e]:n[e];this.assert(typeof i==`function`,`expected #{this} to respond to `+oy(e),`expected #{this} to not respond to `+oy(e))}K(Nb,`respondTo`),J.addMethod(`respondTo`,Nb),J.addMethod(`respondsTo`,Nb),J.addProperty(`itself`,function(){Y(this,`itself`,!0)});function Pb(e,t){t&&Y(this,`message`,t);let n=e(Y(this,`object`));this.assert(n,`expected #{this} to satisfy `+sy(e),`expected #{this} to not satisfy`+sy(e),!Y(this,`negate`),n)}K(Pb,`satisfy`),J.addMethod(`satisfy`,Pb),J.addMethod(`satisfies`,Pb);function Fb(e,t,n){n&&Y(this,`message`,n);let r=Y(this,`object`),i=Y(this,`message`),a=Y(this,`ssfi`);new J(r,i,a,!0).is.numeric;let o="A `delta` value is required for `closeTo`";if(t==null||(new J(t,i,a,!0).is.numeric,o="A `expected` value is required for `closeTo`",e==null))throw new ov(i?`${i}: ${o}`:o,void 0,a);new J(e,i,a,!0).is.numeric;let s=K(e=>e<0n?-e:e,`abs`),c=K(e=>parseFloat(parseFloat(e).toPrecision(12)),`strip`);this.assert(c(s(r-e))<=t,`expected #{this} to be close to `+e+` +/- `+t,`expected #{this} not to be close to `+e+` +/- `+t)}K(Fb,`closeTo`),J.addMethod(`closeTo`,Fb),J.addMethod(`approximately`,Fb);function Ib(e,t,n,r,i){let a=Array.from(t),o=Array.from(e);if(!r){if(o.length!==a.length)return!1;a=a.slice()}return o.every(function(e,t){if(i)return n?n(e,a[t]):e===a[t];if(!n){let t=a.indexOf(e);return t===-1?!1:(r||a.splice(t,1),!0)}return a.some(function(t,i){return n(e,t)?(r||a.splice(i,1),!0):!1})})}K(Ib,`isSubsetOf`),J.addMethod(`members`,function(e,t){t&&Y(this,`message`,t);let n=Y(this,`object`),r=Y(this,`message`),i=Y(this,`ssfi`);new J(n,r,i,!0).to.be.iterable,new J(e,r,i,!0).to.be.iterable;let a=Y(this,`contains`),o=Y(this,`ordered`),s,c,l;a?(s=o?`an ordered superset`:`a superset`,c=`expected #{this} to be `+s+` of #{exp}`,l=`expected #{this} to not be `+s+` of #{exp}`):(s=o?`ordered members`:`members`,c=`expected #{this} to have the same `+s+` as #{exp}`,l=`expected #{this} to not have the same `+s+` as #{exp}`);let u=Y(this,`deep`)?Y(this,`eql`):void 0;this.assert(Ib(e,n,u,a,o),c,l,e,n,!0)}),J.addProperty(`iterable`,function(e){e&&Y(this,`message`,e);let t=Y(this,`object`);this.assert(t!=null&&t[Symbol.iterator],`expected #{this} to be an iterable`,`expected #{this} to not be an iterable`,t)});function Lb(e,t){t&&Y(this,`message`,t);let n=Y(this,`object`),r=Y(this,`message`),i=Y(this,`ssfi`),a=Y(this,`contains`),o=Y(this,`deep`),s=Y(this,`eql`);new J(e,r,i,!0).to.be.an(`array`),a?this.assert(e.some(function(e){return n.indexOf(e)>-1}),`expected #{this} to contain one of #{exp}`,`expected #{this} to not contain one of #{exp}`,e,n):o?this.assert(e.some(function(e){return s(n,e)}),`expected #{this} to deeply equal one of #{exp}`,`expected #{this} to deeply equal one of #{exp}`,e,n):this.assert(e.indexOf(n)>-1,`expected #{this} to be one of #{exp}`,`expected #{this} to not be one of #{exp}`,e,n)}K(Lb,`oneOf`),J.addMethod(`oneOf`,Lb);function Rb(e,t,n){n&&Y(this,`message`,n);let r=Y(this,`object`),i=Y(this,`message`),a=Y(this,`ssfi`);new J(r,i,a,!0).is.a(`function`);let o;t?(new J(e,i,a,!0).to.have.property(t),o=e[t]):(new J(e,i,a,!0).is.a(`function`),o=e()),r();let s=t==null?e():e[t],c=t==null?o:`.`+t;Y(this,`deltaMsgObj`,c),Y(this,`initialDeltaValue`,o),Y(this,`finalDeltaValue`,s),Y(this,`deltaBehavior`,`change`),Y(this,`realDelta`,s!==o),this.assert(o!==s,`expected `+c+` to change`,`expected `+c+` to not change`)}K(Rb,`assertChanges`),J.addMethod(`change`,Rb),J.addMethod(`changes`,Rb);function zb(e,t,n){n&&Y(this,`message`,n);let r=Y(this,`object`),i=Y(this,`message`),a=Y(this,`ssfi`);new J(r,i,a,!0).is.a(`function`);let o;t?(new J(e,i,a,!0).to.have.property(t),o=e[t]):(new J(e,i,a,!0).is.a(`function`),o=e()),new J(o,i,a,!0).is.a(`number`),r();let s=t==null?e():e[t],c=t==null?o:`.`+t;Y(this,`deltaMsgObj`,c),Y(this,`initialDeltaValue`,o),Y(this,`finalDeltaValue`,s),Y(this,`deltaBehavior`,`increase`),Y(this,`realDelta`,s-o),this.assert(s-o>0,`expected `+c+` to increase`,`expected `+c+` to not increase`)}K(zb,`assertIncreases`),J.addMethod(`increase`,zb),J.addMethod(`increases`,zb);function Bb(e,t,n){n&&Y(this,`message`,n);let r=Y(this,`object`),i=Y(this,`message`),a=Y(this,`ssfi`);new J(r,i,a,!0).is.a(`function`);let o;t?(new J(e,i,a,!0).to.have.property(t),o=e[t]):(new J(e,i,a,!0).is.a(`function`),o=e()),new J(o,i,a,!0).is.a(`number`),r();let s=t==null?e():e[t],c=t==null?o:`.`+t;Y(this,`deltaMsgObj`,c),Y(this,`initialDeltaValue`,o),Y(this,`finalDeltaValue`,s),Y(this,`deltaBehavior`,`decrease`),Y(this,`realDelta`,o-s),this.assert(s-o<0,`expected `+c+` to decrease`,`expected `+c+` to not decrease`)}K(Bb,`assertDecreases`),J.addMethod(`decrease`,Bb),J.addMethod(`decreases`,Bb);function Vb(e,t){t&&Y(this,`message`,t);let n=Y(this,`deltaMsgObj`),r=Y(this,`initialDeltaValue`),i=Y(this,`finalDeltaValue`),a=Y(this,`deltaBehavior`),o=Y(this,`realDelta`),s;s=a===`change`?Math.abs(i-r)===Math.abs(e):o===Math.abs(e),this.assert(s,`expected `+n+` to `+a+` by `+e,`expected `+n+` to not `+a+` by `+e)}K(Vb,`assertDelta`),J.addMethod(`by`,Vb),J.addProperty(`extensible`,function(){let e=Y(this,`object`),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,`expected #{this} to be extensible`,`expected #{this} to not be extensible`)}),J.addProperty(`sealed`,function(){let e=Y(this,`object`),t=e===Object(e)?Object.isSealed(e):!0;this.assert(t,`expected #{this} to be sealed`,`expected #{this} to not be sealed`)}),J.addProperty(`frozen`,function(){let e=Y(this,`object`),t=e===Object(e)?Object.isFrozen(e):!0;this.assert(t,`expected #{this} to be frozen`,`expected #{this} to not be frozen`)}),J.addProperty(`finite`,function(e){let t=Y(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 Hb(e,t){return e===t?!0:typeof t==typeof e?typeof e!=`object`||!e?e===t:t?Array.isArray(e)?Array.isArray(t)?e.every(function(e){return t.some(function(t){return Hb(e,t)})}):!1:e instanceof Date?t instanceof Date?e.getTime()===t.getTime():!1:Object.keys(e).every(function(n){let r=e[n],i=t[n];return typeof r==`object`&&r&&i!==null?Hb(r,i):typeof r==`function`?r(i):i===r}):!1:!1}K(Hb,`compareSubset`),J.addMethod(`containSubset`,function(e){let t=q(this,`object`),n=ay.showDiff;this.assert(Hb(e,t),`expected #{act} to contain subset #{exp}`,`expected #{act} to not contain subset #{exp}`,e,t,n)});function Ub(e,t){return new J(e,t)}K(Ub,`expect`),Ub.fail=function(e,t,n,r){throw arguments.length<2&&(n=e,e=void 0),n||=`expect.fail()`,new ov(n,{actual:e,expected:t,operator:r},Ub.fail)};var Wb={};K_(Wb,{Should:()=>qb,should:()=>Kb});function Gb(){function e(){return this instanceof String||this instanceof Number||this instanceof Boolean||typeof Symbol==`function`&&this instanceof Symbol||typeof BigInt==`function`&&this instanceof BigInt?new J(this.valueOf(),null,e):new J(this,null,e)}K(e,`shouldGetter`);function t(e){Object.defineProperty(this,`should`,{value:e,enumerable:!0,configurable:!0,writable:!0})}K(t,`shouldSetter`),Object.defineProperty(Object.prototype,`should`,{set:t,get:e,configurable:!0});let n={};return n.fail=function(e,t,r,i){throw arguments.length<2&&(r=e,e=void 0),r||=`should.fail()`,new ov(r,{actual:e,expected:t,operator:i},n.fail)},n.equal=function(e,t,n){new J(e,n).to.equal(t)},n.Throw=function(e,t,n,r){new J(e,r).to.Throw(t,n)},n.exist=function(e,t){new J(e,t).to.exist},n.not={},n.not.equal=function(e,t,n){new J(e,n).to.not.equal(t)},n.not.Throw=function(e,t,n,r){new J(e,r).to.not.Throw(t,n)},n.not.exist=function(e,t){new J(e,t).to.not.exist},n.throw=n.Throw,n.not.throw=n.not.Throw,n}K(Gb,`loadShould`);var Kb=Gb,qb=Gb;function X(e,t){new J(null,null,X,!0).assert(e,t,`[ negation message unavailable ]`)}K(X,`assert`),X.fail=function(e,t,n,r){throw arguments.length<2&&(n=e,e=void 0),n||=`assert.fail()`,new ov(n,{actual:e,expected:t,operator:r},X.fail)},X.isOk=function(e,t){new J(e,t,X.isOk,!0).is.ok},X.isNotOk=function(e,t){new J(e,t,X.isNotOk,!0).is.not.ok},X.equal=function(e,t,n){let r=new J(e,n,X.equal,!0);r.assert(t==q(r,`object`),`expected #{this} to equal #{exp}`,`expected #{this} to not equal #{act}`,t,e,!0)},X.notEqual=function(e,t,n){let r=new J(e,n,X.notEqual,!0);r.assert(t!=q(r,`object`),`expected #{this} to not equal #{exp}`,`expected #{this} to equal #{act}`,t,e,!0)},X.strictEqual=function(e,t,n){new J(e,n,X.strictEqual,!0).to.equal(t)},X.notStrictEqual=function(e,t,n){new J(e,n,X.notStrictEqual,!0).to.not.equal(t)},X.deepEqual=X.deepStrictEqual=function(e,t,n){new J(e,n,X.deepEqual,!0).to.eql(t)},X.notDeepEqual=function(e,t,n){new J(e,n,X.notDeepEqual,!0).to.not.eql(t)},X.isAbove=function(e,t,n){new J(e,n,X.isAbove,!0).to.be.above(t)},X.isAtLeast=function(e,t,n){new J(e,n,X.isAtLeast,!0).to.be.least(t)},X.isBelow=function(e,t,n){new J(e,n,X.isBelow,!0).to.be.below(t)},X.isAtMost=function(e,t,n){new J(e,n,X.isAtMost,!0).to.be.most(t)},X.isTrue=function(e,t){new J(e,t,X.isTrue,!0).is.true},X.isNotTrue=function(e,t){new J(e,t,X.isNotTrue,!0).to.not.equal(!0)},X.isFalse=function(e,t){new J(e,t,X.isFalse,!0).is.false},X.isNotFalse=function(e,t){new J(e,t,X.isNotFalse,!0).to.not.equal(!1)},X.isNull=function(e,t){new J(e,t,X.isNull,!0).to.equal(null)},X.isNotNull=function(e,t){new J(e,t,X.isNotNull,!0).to.not.equal(null)},X.isNaN=function(e,t){new J(e,t,X.isNaN,!0).to.be.NaN},X.isNotNaN=function(e,t){new J(e,t,X.isNotNaN,!0).not.to.be.NaN},X.exists=function(e,t){new J(e,t,X.exists,!0).to.exist},X.notExists=function(e,t){new J(e,t,X.notExists,!0).to.not.exist},X.isUndefined=function(e,t){new J(e,t,X.isUndefined,!0).to.equal(void 0)},X.isDefined=function(e,t){new J(e,t,X.isDefined,!0).to.not.equal(void 0)},X.isCallable=function(e,t){new J(e,t,X.isCallable,!0).is.callable},X.isNotCallable=function(e,t){new J(e,t,X.isNotCallable,!0).is.not.callable},X.isObject=function(e,t){new J(e,t,X.isObject,!0).to.be.a(`object`)},X.isNotObject=function(e,t){new J(e,t,X.isNotObject,!0).to.not.be.a(`object`)},X.isArray=function(e,t){new J(e,t,X.isArray,!0).to.be.an(`array`)},X.isNotArray=function(e,t){new J(e,t,X.isNotArray,!0).to.not.be.an(`array`)},X.isString=function(e,t){new J(e,t,X.isString,!0).to.be.a(`string`)},X.isNotString=function(e,t){new J(e,t,X.isNotString,!0).to.not.be.a(`string`)},X.isNumber=function(e,t){new J(e,t,X.isNumber,!0).to.be.a(`number`)},X.isNotNumber=function(e,t){new J(e,t,X.isNotNumber,!0).to.not.be.a(`number`)},X.isNumeric=function(e,t){new J(e,t,X.isNumeric,!0).is.numeric},X.isNotNumeric=function(e,t){new J(e,t,X.isNotNumeric,!0).is.not.numeric},X.isFinite=function(e,t){new J(e,t,X.isFinite,!0).to.be.finite},X.isBoolean=function(e,t){new J(e,t,X.isBoolean,!0).to.be.a(`boolean`)},X.isNotBoolean=function(e,t){new J(e,t,X.isNotBoolean,!0).to.not.be.a(`boolean`)},X.typeOf=function(e,t,n){new J(e,n,X.typeOf,!0).to.be.a(t)},X.notTypeOf=function(e,t,n){new J(e,n,X.notTypeOf,!0).to.not.be.a(t)},X.instanceOf=function(e,t,n){new J(e,n,X.instanceOf,!0).to.be.instanceOf(t)},X.notInstanceOf=function(e,t,n){new J(e,n,X.notInstanceOf,!0).to.not.be.instanceOf(t)},X.include=function(e,t,n){new J(e,n,X.include,!0).include(t)},X.notInclude=function(e,t,n){new J(e,n,X.notInclude,!0).not.include(t)},X.deepInclude=function(e,t,n){new J(e,n,X.deepInclude,!0).deep.include(t)},X.notDeepInclude=function(e,t,n){new J(e,n,X.notDeepInclude,!0).not.deep.include(t)},X.nestedInclude=function(e,t,n){new J(e,n,X.nestedInclude,!0).nested.include(t)},X.notNestedInclude=function(e,t,n){new J(e,n,X.notNestedInclude,!0).not.nested.include(t)},X.deepNestedInclude=function(e,t,n){new J(e,n,X.deepNestedInclude,!0).deep.nested.include(t)},X.notDeepNestedInclude=function(e,t,n){new J(e,n,X.notDeepNestedInclude,!0).not.deep.nested.include(t)},X.ownInclude=function(e,t,n){new J(e,n,X.ownInclude,!0).own.include(t)},X.notOwnInclude=function(e,t,n){new J(e,n,X.notOwnInclude,!0).not.own.include(t)},X.deepOwnInclude=function(e,t,n){new J(e,n,X.deepOwnInclude,!0).deep.own.include(t)},X.notDeepOwnInclude=function(e,t,n){new J(e,n,X.notDeepOwnInclude,!0).not.deep.own.include(t)},X.match=function(e,t,n){new J(e,n,X.match,!0).to.match(t)},X.notMatch=function(e,t,n){new J(e,n,X.notMatch,!0).to.not.match(t)},X.property=function(e,t,n){new J(e,n,X.property,!0).to.have.property(t)},X.notProperty=function(e,t,n){new J(e,n,X.notProperty,!0).to.not.have.property(t)},X.propertyVal=function(e,t,n,r){new J(e,r,X.propertyVal,!0).to.have.property(t,n)},X.notPropertyVal=function(e,t,n,r){new J(e,r,X.notPropertyVal,!0).to.not.have.property(t,n)},X.deepPropertyVal=function(e,t,n,r){new J(e,r,X.deepPropertyVal,!0).to.have.deep.property(t,n)},X.notDeepPropertyVal=function(e,t,n,r){new J(e,r,X.notDeepPropertyVal,!0).to.not.have.deep.property(t,n)},X.ownProperty=function(e,t,n){new J(e,n,X.ownProperty,!0).to.have.own.property(t)},X.notOwnProperty=function(e,t,n){new J(e,n,X.notOwnProperty,!0).to.not.have.own.property(t)},X.ownPropertyVal=function(e,t,n,r){new J(e,r,X.ownPropertyVal,!0).to.have.own.property(t,n)},X.notOwnPropertyVal=function(e,t,n,r){new J(e,r,X.notOwnPropertyVal,!0).to.not.have.own.property(t,n)},X.deepOwnPropertyVal=function(e,t,n,r){new J(e,r,X.deepOwnPropertyVal,!0).to.have.deep.own.property(t,n)},X.notDeepOwnPropertyVal=function(e,t,n,r){new J(e,r,X.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,n)},X.nestedProperty=function(e,t,n){new J(e,n,X.nestedProperty,!0).to.have.nested.property(t)},X.notNestedProperty=function(e,t,n){new J(e,n,X.notNestedProperty,!0).to.not.have.nested.property(t)},X.nestedPropertyVal=function(e,t,n,r){new J(e,r,X.nestedPropertyVal,!0).to.have.nested.property(t,n)},X.notNestedPropertyVal=function(e,t,n,r){new J(e,r,X.notNestedPropertyVal,!0).to.not.have.nested.property(t,n)},X.deepNestedPropertyVal=function(e,t,n,r){new J(e,r,X.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,n)},X.notDeepNestedPropertyVal=function(e,t,n,r){new J(e,r,X.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,n)},X.lengthOf=function(e,t,n){new J(e,n,X.lengthOf,!0).to.have.lengthOf(t)},X.hasAnyKeys=function(e,t,n){new J(e,n,X.hasAnyKeys,!0).to.have.any.keys(t)},X.hasAllKeys=function(e,t,n){new J(e,n,X.hasAllKeys,!0).to.have.all.keys(t)},X.containsAllKeys=function(e,t,n){new J(e,n,X.containsAllKeys,!0).to.contain.all.keys(t)},X.doesNotHaveAnyKeys=function(e,t,n){new J(e,n,X.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)},X.doesNotHaveAllKeys=function(e,t,n){new J(e,n,X.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)},X.hasAnyDeepKeys=function(e,t,n){new J(e,n,X.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)},X.hasAllDeepKeys=function(e,t,n){new J(e,n,X.hasAllDeepKeys,!0).to.have.all.deep.keys(t)},X.containsAllDeepKeys=function(e,t,n){new J(e,n,X.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)},X.doesNotHaveAnyDeepKeys=function(e,t,n){new J(e,n,X.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)},X.doesNotHaveAllDeepKeys=function(e,t,n){new J(e,n,X.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)},X.throws=function(e,t,n,r){return(typeof t==`string`||t instanceof RegExp)&&(n=t,t=null),q(new J(e,r,X.throws,!0).to.throw(t,n),`object`)},X.doesNotThrow=function(e,t,n,r){(typeof t==`string`||t instanceof RegExp)&&(n=t,t=null),new J(e,r,X.doesNotThrow,!0).to.not.throw(t,n)},X.operator=function(e,t,n,r){let i;switch(t){case`==`:i=e==n;break;case`===`:i=e===n;break;case`>`:i=e>n;break;case`>=`:i=e>=n;break;case`<`:i=e<n;break;case`<=`:i=e<=n;break;case`!=`:i=e!=n;break;case`!==`:i=e!==n;break;default:throw r&&=r+`: `,new ov(r+`Invalid operator "`+t+`"`,void 0,X.operator)}let a=new J(i,r,X.operator,!0);a.assert(q(a,`object`)===!0,`expected `+oy(e)+` to be `+t+` `+oy(n),`expected `+oy(e)+` to not be `+t+` `+oy(n))},X.closeTo=function(e,t,n,r){new J(e,r,X.closeTo,!0).to.be.closeTo(t,n)},X.approximately=function(e,t,n,r){new J(e,r,X.approximately,!0).to.be.approximately(t,n)},X.sameMembers=function(e,t,n){new J(e,n,X.sameMembers,!0).to.have.same.members(t)},X.notSameMembers=function(e,t,n){new J(e,n,X.notSameMembers,!0).to.not.have.same.members(t)},X.sameDeepMembers=function(e,t,n){new J(e,n,X.sameDeepMembers,!0).to.have.same.deep.members(t)},X.notSameDeepMembers=function(e,t,n){new J(e,n,X.notSameDeepMembers,!0).to.not.have.same.deep.members(t)},X.sameOrderedMembers=function(e,t,n){new J(e,n,X.sameOrderedMembers,!0).to.have.same.ordered.members(t)},X.notSameOrderedMembers=function(e,t,n){new J(e,n,X.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)},X.sameDeepOrderedMembers=function(e,t,n){new J(e,n,X.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)},X.notSameDeepOrderedMembers=function(e,t,n){new J(e,n,X.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)},X.includeMembers=function(e,t,n){new J(e,n,X.includeMembers,!0).to.include.members(t)},X.notIncludeMembers=function(e,t,n){new J(e,n,X.notIncludeMembers,!0).to.not.include.members(t)},X.includeDeepMembers=function(e,t,n){new J(e,n,X.includeDeepMembers,!0).to.include.deep.members(t)},X.notIncludeDeepMembers=function(e,t,n){new J(e,n,X.notIncludeDeepMembers,!0).to.not.include.deep.members(t)},X.includeOrderedMembers=function(e,t,n){new J(e,n,X.includeOrderedMembers,!0).to.include.ordered.members(t)},X.notIncludeOrderedMembers=function(e,t,n){new J(e,n,X.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)},X.includeDeepOrderedMembers=function(e,t,n){new J(e,n,X.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)},X.notIncludeDeepOrderedMembers=function(e,t,n){new J(e,n,X.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)},X.oneOf=function(e,t,n){new J(e,n,X.oneOf,!0).to.be.oneOf(t)},X.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${oy(e)} to be an iterable`:`expected ${oy(e)} to be an iterable`,new ov(t,void 0,X.isIterable)},X.changes=function(e,t,n,r){arguments.length===3&&typeof t==`function`&&(r=n,n=null),new J(e,r,X.changes,!0).to.change(t,n)},X.changesBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new J(e,i,X.changesBy,!0).to.change(t,n).by(r)},X.doesNotChange=function(e,t,n,r){return arguments.length===3&&typeof t==`function`&&(r=n,n=null),new J(e,r,X.doesNotChange,!0).to.not.change(t,n)},X.changesButNotBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new J(e,i,X.changesButNotBy,!0).to.change(t,n).but.not.by(r)},X.increases=function(e,t,n,r){return arguments.length===3&&typeof t==`function`&&(r=n,n=null),new J(e,r,X.increases,!0).to.increase(t,n)},X.increasesBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new J(e,i,X.increasesBy,!0).to.increase(t,n).by(r)},X.doesNotIncrease=function(e,t,n,r){return arguments.length===3&&typeof t==`function`&&(r=n,n=null),new J(e,r,X.doesNotIncrease,!0).to.not.increase(t,n)},X.increasesButNotBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new J(e,i,X.increasesButNotBy,!0).to.increase(t,n).but.not.by(r)},X.decreases=function(e,t,n,r){return arguments.length===3&&typeof t==`function`&&(r=n,n=null),new J(e,r,X.decreases,!0).to.decrease(t,n)},X.decreasesBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new J(e,i,X.decreasesBy,!0).to.decrease(t,n).by(r)},X.doesNotDecrease=function(e,t,n,r){return arguments.length===3&&typeof t==`function`&&(r=n,n=null),new J(e,r,X.doesNotDecrease,!0).to.not.decrease(t,n)},X.doesNotDecreaseBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);return new J(e,i,X.doesNotDecreaseBy,!0).to.not.decrease(t,n).by(r)},X.decreasesButNotBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new J(e,i,X.decreasesButNotBy,!0).to.decrease(t,n).but.not.by(r)},X.ifError=function(e){if(e)throw e},X.isExtensible=function(e,t){new J(e,t,X.isExtensible,!0).to.be.extensible},X.isNotExtensible=function(e,t){new J(e,t,X.isNotExtensible,!0).to.not.be.extensible},X.isSealed=function(e,t){new J(e,t,X.isSealed,!0).to.be.sealed},X.isNotSealed=function(e,t){new J(e,t,X.isNotSealed,!0).to.not.be.sealed},X.isFrozen=function(e,t){new J(e,t,X.isFrozen,!0).to.be.frozen},X.isNotFrozen=function(e,t){new J(e,t,X.isNotFrozen,!0).to.not.be.frozen},X.isEmpty=function(e,t){new J(e,t,X.isEmpty,!0).to.be.empty},X.isNotEmpty=function(e,t){new J(e,t,X.isNotEmpty,!0).to.not.be.empty},X.containsSubset=function(e,t,n){new J(e,n).to.containSubset(t)},X.doesNotContainSubset=function(e,t,n){new J(e,n).to.not.containSubset(t)};for(let[e,t]of[[`isOk`,`ok`],[`isNotOk`,`notOk`],[`throws`,`throw`],[`throws`,`Throw`],[`isExtensible`,`extensible`],[`isNotExtensible`,`notExtensible`],[`isSealed`,`sealed`],[`isNotSealed`,`notSealed`],[`isFrozen`,`frozen`],[`isNotFrozen`,`notFrozen`],[`isEmpty`,`empty`],[`isNotEmpty`,`notEmpty`],[`isCallable`,`isFunction`],[`isNotCallable`,`isNotFunction`],[`containsSubset`,`containSubset`]])X[t]=X[e];var Jb=[];function Yb(e){let t={use:Yb,AssertionError:ov,util:q_,config:ay,expect:Ub,assert:X,Assertion:J,...Wb};return~Jb.indexOf(e)||(e(t,q_),Jb.push(e)),t}K(Yb,`use`);var Xb={};S(Xb,{toBeChecked:()=>lw,toBeDisabled:()=>UC,toBeEmpty:()=>XS,toBeEmptyDOMElement:()=>ZS,toBeEnabled:()=>WC,toBeInTheDOM:()=>JS,toBeInTheDocument:()=>YS,toBeInvalid:()=>rw,toBePartiallyChecked:()=>pw,toBeRequired:()=>QC,toBeValid:()=>iw,toBeVisible:()=>PC,toContainElement:()=>$S,toContainHTML:()=>tC,toHaveAccessibleDescription:()=>rC,toHaveAccessibleErrorMessage:()=>oC,toHaveAccessibleName:()=>fC,toHaveAttribute:()=>hC,toHaveClass:()=>yC,toHaveDescription:()=>mw,toHaveDisplayValue:()=>ow,toHaveErrorMessage:()=>hw,toHaveFocus:()=>TC,toHaveFormValues:()=>AC,toHaveRole:()=>cC,toHaveSelection:()=>_w,toHaveStyle:()=>wC,toHaveTextContent:()=>nC,toHaveValue:()=>aw});var Zb=w(k(),1);function Qb(e){Object.defineProperty(e,`__esModule`,{value:!0,configurable:!0})}function $b(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var ex={};Qb(ex),$b(ex,`default`,()=>tx);var tx=class extends Error{constructor(e,t,n,r,i){super(e+`:`+n+`:`+r+`: `+t),this.reason=t,this.filename=e,this.line=n,this.column=r,this.source=i}},nx={};Qb(nx),$b(nx,`default`,()=>rx);var rx=class{constructor(e,t,n){this.start=e,this.end=t,this.source=n}};$b({},`CssTypes`,()=>ix);var ix;(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`})(ix||={});var ax=/\/\*[^]*?(?:\*\/|$)/g,ox=(e,t)=>{t||={};let n=1,r=1;function i(e){let t=e.match(/\n/g);t&&(n+=t.length);let i=e.lastIndexOf(`
|
|
214
|
+
`);r=~i?e.length-i:r+e.length}function a(){let e={line:n,column:r};return function(i){return i.position=new rx(e,{line:n,column:r},t?.source||``),p(),i}}let o=[];function s(i){let a=new tx(t?.source||``,i,n,r,e);if(t?.silent)o.push(a);else throw a}function c(){let e=d();return{type:ix.stylesheet,stylesheet:{source:t?.source,rules:e,parsingErrors:o}}}function l(){return f(/^{\s*/)}function u(){return f(/^}/)}function d(){let t,n=[];for(p(),m(n);e.length&&e.charAt(0)!==`}`&&(t=te()||ne());)t&&(n.push(t),m(n));return n}function f(t){let n=t.exec(e);if(!n)return;let r=n[0];return i(r),e=e.slice(r.length),n}function p(){f(/^\s*/)}function m(e){let t;for(e||=[];t=h();)t&&e.push(t);return e}function h(){let t=a();if(e.charAt(0)!==`/`||e.charAt(1)!==`*`)return;let n=f(/^\/\*[^]*?\*\//);return n?t({type:ix.comment,comment:n[0].slice(2,-2)}):s(`End of comment missing`)}function g(e,t,n){let r=t+1,i=!1,a=e.indexOf(`)`,r);for(;!i&&a!==-1;){let t=e.indexOf(`(`,r);t!==-1&&t<a?(r=g(e,t+1,n+1)+1,a=e.indexOf(`)`,r)):i=!0}return i&&a!==-1?a:-1}function _(){let e=f(/^([^{]+)/);if(!e)return;let t=sx(e[0]).replace(ax,``);if(t.indexOf(`,`)===-1)return[t];let n=0,r=t.indexOf(`(`,n);for(;r!==-1;){let e=g(t,r,0);if(e===-1)break;n=e+1,t=t.substring(0,r)+t.substring(r,e).replace(/,/g,``)+t.substring(e),r=t.indexOf(`(`,n)}return t=t.replace(/("|')(?:\\\1|.)*?\1/g,e=>e.replace(/,/g,``)),t.split(`,`).map(e=>sx(e.replace(/\u200C/g,`,`)))}function v(){let e=a(),t=f(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!t)return;let n=sx(t[0]);if(!f(/^:\s*/))return s(`property missing ':'`);let r=f(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),i=e({type:ix.declaration,property:n.replace(ax,``),value:r?sx(r[0]).replace(ax,``):``});return f(/^[;\s]*/),i}function y(){let e=[];if(!l())return s(`missing '{'`);m(e);let t;for(;t=v();)t&&(e.push(t),m(e));return u()?e:s(`missing '}'`)}function b(){let e,t=[],n=a();for(;e=f(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),f(/^,\s*/);if(t.length)return n({type:ix.keyframe,values:t,declarations:y()||[]})}function x(){let e=a(),t=f(/^@([-\w]+)?keyframes\s*/);if(!t)return;let n=t[1],r=f(/^([-\w]+)\s*/);if(!r)return s(`@keyframes missing name`);let i=r[1];if(!l())return s(`@keyframes missing '{'`);let o,c=m();for(;o=b();)c.push(o),c=c.concat(m());return u()?e({type:ix.keyframes,name:i,vendor:n,keyframes:c}):s(`@keyframes missing '}'`)}function S(){let e=a(),t=f(/^@supports *([^{]+)/);if(!t)return;let n=sx(t[1]);if(!l())return s(`@supports missing '{'`);let r=m().concat(d());return u()?e({type:ix.supports,supports:n,rules:r}):s(`@supports missing '}'`)}function C(){let e=a();if(!f(/^@host\s*/))return;if(!l())return s(`@host missing '{'`);let t=m().concat(d());return u()?e({type:ix.host,rules:t}):s(`@host missing '}'`)}function w(){let e=a(),t=f(/^@container *([^{]+)/);if(!t)return;let n=sx(t[1]);if(!l())return s(`@container missing '{'`);let r=m().concat(d());return u()?e({type:ix.container,container:n,rules:r}):s(`@container missing '}'`)}function T(){let e=a(),t=f(/^@layer *([^{;@]+)/);if(!t)return;let n=sx(t[1]);if(!l())return f(/^[;\s]*/),e({type:ix.layer,layer:n});let r=m().concat(d());return u()?e({type:ix.layer,layer:n,rules:r}):s(`@layer missing '}'`)}function E(){let e=a(),t=f(/^@media *([^{]+)/);if(!t)return;let n=sx(t[1]);if(!l())return s(`@media missing '{'`);let r=m().concat(d());return u()?e({type:ix.media,media:n,rules:r}):s(`@media missing '}'`)}function D(){let e=a(),t=f(/^@custom-media\s+(--\S+)\s*([^{;\s][^{;]*);/);if(t)return e({type:ix.customMedia,name:sx(t[1]),media:sx(t[2])})}function O(){let e=a();if(!f(/^@page */))return;let t=_()||[];if(!l())return s(`@page missing '{'`);let n=m(),r;for(;r=v();)n.push(r),n=n.concat(m());return u()?e({type:ix.page,selectors:t,declarations:n}):s(`@page missing '}'`)}function k(){let e=a(),t=f(/^@([-\w]+)?document *([^{]+)/);if(!t)return;let n=sx(t[1]),r=sx(t[2]);if(!l())return s(`@document missing '{'`);let i=m().concat(d());return u()?e({type:ix.document,document:r,vendor:n,rules:i}):s(`@document missing '}'`)}function A(){let e=a();if(!f(/^@font-face\s*/))return;if(!l())return s(`@font-face missing '{'`);let t=m(),n;for(;n=v();)t.push(n),t=t.concat(m());return u()?e({type:ix.fontFace,declarations:t}):s(`@font-face missing '}'`)}function j(){let e=a();if(!f(/^@starting-style\s*/))return;if(!l())return s(`@starting-style missing '{'`);let t=m().concat(d());return u()?e({type:ix.startingStyle,rules:t}):s(`@starting-style missing '}'`)}let M=ee(`import`),N=ee(`charset`),P=ee(`namespace`);function ee(e){let t=RegExp(`^@`+e+`\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);return function(){let n=a(),r=f(t);if(!r)return;let i={type:e};return i[e]=r[1].trim(),n(i)}}function te(){if(e[0]===`@`)return x()||E()||D()||S()||M()||N()||P()||k()||O()||C()||A()||w()||j()||T()}function ne(){let e=a(),t=_();return t?(m(),e({type:ix.rule,selectors:t,declarations:y()||[]})):s(`selector missing`)}return cx(c())};function sx(e){return e?e.trim():``}function cx(e,t){let n=e&&typeof e.type==`string`,r=n?e:t;for(let t in e){let n=e[t];Array.isArray(n)?n.forEach(e=>{cx(e,r)}):n&&typeof n==`object`&&cx(n,r)}return n&&Object.defineProperty(e,`parent`,{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var lx=ox,ux=Object.prototype.toString;function dx(e){return typeof e==`function`||ux.call(e)===`[object Function]`}function fx(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var px=2**53-1;function mx(e){var t=fx(e);return Math.min(Math.max(t,0),px)}function hx(e,t){var n=Array,r=Object(e);if(e==null)throw TypeError(`Array.from requires an array-like object - not null or undefined`);if(typeof t<`u`&&!dx(t))throw TypeError(`Array.from: when provided, the second argument must be a function`);for(var i=mx(r.length),a=dx(n)?Object(new n(i)):Array(i),o=0,s;o<i;)s=r[o],t?a[o]=t(s,o):a[o]=s,o+=1;return a.length=i,a}function gx(e){"@babel/helpers - typeof";return gx=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},gx(e)}function _x(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function vx(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,xx(r.key),r)}}function yx(e,t,n){return t&&vx(e.prototype,t),n&&vx(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function bx(e,t,n){return t=xx(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xx(e){var t=Sx(e,`string`);return gx(t)===`symbol`?t:String(t)}function Sx(e,t){if(gx(e)!==`object`||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(gx(r)!==`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Cx=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];_x(this,e),bx(this,`items`,void 0),this.items=t}return yx(e,[{key:`add`,value:function(e){return this.has(e)===!1&&this.items.push(e),this}},{key:`clear`,value:function(){this.items=[]}},{key:`delete`,value:function(e){var t=this.items.length;return this.items=this.items.filter(function(t){return t!==e}),t!==this.items.length}},{key:`forEach`,value:function(e){var t=this;this.items.forEach(function(n){e(n,n,t)})}},{key:`has`,value:function(e){return this.items.indexOf(e)!==-1}},{key:`size`,get:function(){return this.items.length}}]),e})(),wx=typeof Set>`u`?Set:Cx;function Tx(e){return e.localName??e.tagName.toLowerCase()}var Ex={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`},Dx={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 Ox(e,t){return[`aria-atomic`,`aria-busy`,`aria-controls`,`aria-current`,`aria-description`,`aria-describedby`,`aria-details`,`aria-dropeffect`,`aria-flowto`,`aria-grabbed`,`aria-hidden`,`aria-keyshortcuts`,`aria-label`,`aria-labelledby`,`aria-live`,`aria-owns`,`aria-relevant`,`aria-roledescription`].some(function(n){var r;return e.hasAttribute(n)&&!((r=Dx[t])!=null&&r.has(n))})}function kx(e,t){return Ox(e,t)}function Ax(e){var t=Mx(e);if(t===null||Nx.indexOf(t)!==-1){var n=jx(e);if(Nx.indexOf(t||``)===-1||kx(e,n||``))return n}return t}function jx(e){var t=Ex[Tx(e)];if(t!==void 0)return t;switch(Tx(e)){case`a`:case`area`:case`link`:if(e.hasAttribute(`href`))return`link`;break;case`img`:return e.getAttribute(`alt`)===``&&!kx(e,`img`)?`presentation`:`img`;case`input`:var n=e.type;switch(n){case`button`:case`image`:case`reset`:case`submit`:return`button`;case`checkbox`:case`radio`:return n;case`range`:return`slider`;case`email`:case`tel`:case`text`:case`url`:return e.hasAttribute(`list`)?`combobox`:`textbox`;case`search`:return e.hasAttribute(`list`)?`combobox`:`searchbox`;case`number`:return`spinbutton`;default:return null}case`select`:return e.hasAttribute(`multiple`)||e.size>1?`listbox`:`combobox`}return null}function Mx(e){var t=e.getAttribute(`role`);if(t!==null){var n=t.trim().split(` `)[0];if(n.length>0)return n}return null}var Nx=[`presentation`,`none`];function Px(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function Fx(e){return Px(e)&&Tx(e)===`caption`}function Ix(e){return Px(e)&&Tx(e)===`input`}function Lx(e){return Px(e)&&Tx(e)===`optgroup`}function Rx(e){return Px(e)&&Tx(e)===`select`}function zx(e){return Px(e)&&Tx(e)===`table`}function Bx(e){return Px(e)&&Tx(e)===`textarea`}function Vx(e){var t=(e.ownerDocument===null?e:e.ownerDocument).defaultView;if(t===null)throw TypeError(`no window available`);return t}function Hx(e){return Px(e)&&Tx(e)===`fieldset`}function Ux(e){return Px(e)&&Tx(e)===`legend`}function Wx(e){return Px(e)&&Tx(e)===`slot`}function Gx(e){return Px(e)&&e.ownerSVGElement!==void 0}function Kx(e){return Px(e)&&Tx(e)===`svg`}function qx(e){return Gx(e)&&Tx(e)===`title`}function Jx(e,t){if(Px(e)&&e.hasAttribute(t)){var n=e.getAttribute(t).split(` `),r=e.getRootNode?e.getRootNode():e.ownerDocument;return n.map(function(e){return r.getElementById(e)}).filter(function(e){return e!==null})}return[]}function Yx(e,t){return Px(e)?t.indexOf(Ax(e))!==-1:!1}function Xx(e){return e.trim().replace(/\s\s+/g,` `)}function Zx(e,t){if(!Px(e))return!1;if(e.hasAttribute(`hidden`)||e.getAttribute(`aria-hidden`)===`true`)return!0;var n=t(e);return n.getPropertyValue(`display`)===`none`||n.getPropertyValue(`visibility`)===`hidden`}function Qx(e){return Yx(e,[`button`,`combobox`,`listbox`,`textbox`])||$x(e,`range`)}function $x(e,t){if(!Px(e))return!1;switch(t){case`range`:return Yx(e,[`meter`,`progressbar`,`scrollbar`,`slider`,`spinbutton`]);default:throw TypeError(`No knowledge about abstract role '${t}'. This is likely a bug :(`)}}function eS(e,t){var n=hx(e.querySelectorAll(t));return Jx(e,`aria-owns`).forEach(function(e){n.push.apply(n,hx(e.querySelectorAll(t)))}),n}function tS(e){return Rx(e)?e.selectedOptions||eS(e,`[selected]`):eS(e,`[aria-selected="true"]`)}function nS(e){return Yx(e,Nx)}function rS(e){return Fx(e)}function iS(e){return Yx(e,[`button`,`cell`,`checkbox`,`columnheader`,`gridcell`,`heading`,`label`,`legend`,`link`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`row`,`rowheader`,`switch`,`tab`,`tooltip`,`treeitem`])}function aS(e){return!1}function oS(e){return Ix(e)||Bx(e)?e.value:e.textContent||``}function sS(e){var t=e.getPropertyValue(`content`);return/^["'].*["']$/.test(t)?t.slice(1,-1):``}function cS(e){var t=Tx(e);return t===`button`||t===`input`&&e.getAttribute(`type`)!==`hidden`||t===`meter`||t===`output`||t===`progress`||t===`select`||t===`textarea`}function lS(e){if(cS(e))return e;var t=null;return e.childNodes.forEach(function(e){if(t===null&&Px(e)){var n=lS(e);n!==null&&(t=n)}}),t}function uS(e){if(e.control!==void 0)return e.control;var t=e.getAttribute(`for`);return t===null?lS(e):e.ownerDocument.getElementById(t)}function dS(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return hx(t);if(!cS(e))return null;var n=e.ownerDocument;return hx(n.querySelectorAll(`label`)).filter(function(t){return uS(t)===e})}function fS(e){var t=e.assignedNodes();return t.length===0?hx(e.childNodes):t}function pS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new wx,r=Vx(e),i=t.compute,a=i===void 0?`name`:i,o=t.computedStyleSupportsPseudoElements,s=o===void 0?t.getComputedStyle!==void 0:o,c=t.getComputedStyle,l=c===void 0?r.getComputedStyle.bind(r):c,u=t.hidden,d=u===void 0?!1:u;function f(e,t){var n=``;if(Px(e)&&s&&(n=`${sS(l(e,`::before`))} ${n}`),(Wx(e)?fS(e):hx(e.childNodes).concat(Jx(e,`aria-owns`))).forEach(function(e){var r=g(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),i=(Px(e)?l(e).getPropertyValue(`display`):`inline`)===`inline`?``:` `;n+=`${i}${r}${i}`}),Px(e)&&s){var r=sS(l(e,`::after`));n=`${n} ${r}`}return n.trim()}function p(e,t){var r=e.getAttributeNode(t);return r!==null&&!n.has(r)&&r.value.trim()!==``?(n.add(r),r.value):null}function m(e){return Px(e)?p(e,`title`):null}function h(e){if(!Px(e))return null;if(Hx(e)){n.add(e);for(var t=hx(e.childNodes),r=0;r<t.length;r+=1){var i=t[r];if(Ux(i))return g(i,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(zx(e)){n.add(e);for(var a=hx(e.childNodes),o=0;o<a.length;o+=1){var s=a[o];if(Fx(s))return g(s,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(Kx(e)){n.add(e);for(var c=hx(e.childNodes),l=0;l<c.length;l+=1){var u=c[l];if(qx(u))return u.textContent}return null}else if(Tx(e)===`img`||Tx(e)===`area`){var d=p(e,`alt`);if(d!==null)return d}else if(Lx(e)){var m=p(e,`label`);if(m!==null)return m}if(Ix(e)&&(e.type===`button`||e.type===`submit`||e.type===`reset`)){var h=p(e,`value`);if(h!==null)return h;if(e.type===`submit`)return`Submit`;if(e.type===`reset`)return`Reset`}var _=dS(e);if(_!==null&&_.length!==0)return n.add(e),hx(_).map(function(e){return g(e,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(e){return e.length>0}).join(` `);if(Ix(e)&&e.type===`image`){var v=p(e,`alt`);if(v!==null)return v;var y=p(e,`title`);return y===null?`Submit Query`:y}if(Yx(e,[`button`])){var b=f(e,{isEmbeddedInLabel:!1,isReferenced:!1});if(b!==``)return b}return null}function g(e,t){if(n.has(e))return``;if(!d&&Zx(e,l)&&!t.isReferenced)return n.add(e),``;var r=Px(e)?e.getAttributeNode(`aria-labelledby`):null,i=r!==null&&!n.has(r)?Jx(e,`aria-labelledby`):[];if(a===`name`&&!t.isReferenced&&i.length>0)return n.add(r),i.map(function(e){return g(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(` `);var o=t.recursion&&Qx(e)&&a===`name`;if(!o){var s=(Px(e)&&e.getAttribute(`aria-label`)||``).trim();if(s!==``&&a===`name`)return n.add(e),s;if(!nS(e)){var c=h(e);if(c!==null)return n.add(e),c}}if(Yx(e,[`menu`]))return n.add(e),``;if(o||t.isEmbeddedInLabel||t.isReferenced){if(Yx(e,[`combobox`,`listbox`])){n.add(e);var u=tS(e);return u.length===0?Ix(e)?e.value:``:hx(u).map(function(e){return g(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(` `)}if($x(e,`range`))return n.add(e),e.hasAttribute(`aria-valuetext`)?e.getAttribute(`aria-valuetext`):e.hasAttribute(`aria-valuenow`)?e.getAttribute(`aria-valuenow`):e.getAttribute(`value`)||``;if(Yx(e,[`textbox`]))return n.add(e),oS(e)}if(iS(e)||Px(e)&&t.isReferenced||rS(e)||aS(e)){var p=f(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1});if(p!==``)return n.add(e),p}if(e.nodeType===e.TEXT_NODE)return n.add(e),e.textContent||``;if(t.recursion)return n.add(e),f(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1});var _=m(e);return _===null?(n.add(e),``):(n.add(e),_)}return Xx(g(e,{isEmbeddedInLabel:!1,isReferenced:a===`description`,recursion:!1}))}function mS(e){"@babel/helpers - typeof";return mS=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},mS(e)}function hS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?hS(Object(n),!0).forEach(function(t){_S(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _S(e,t,n){return t=vS(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vS(e){var t=yS(e,`string`);return mS(t)===`symbol`?t:String(t)}function yS(e,t){if(mS(e)!==`object`||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(mS(r)!==`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function bS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Jx(e,`aria-describedby`).map(function(e){return pS(e,gS(gS({},t),{},{compute:`description`}))}).join(` `);if(n===``){var r=e.getAttribute(`aria-description`);n=r===null?``:r}if(n===``){var i=e.getAttribute(`title`);n=i===null?``:i}return n}function xS(e){return Yx(e,[`caption`,`code`,`deletion`,`emphasis`,`generic`,`insertion`,`none`,`paragraph`,`presentation`,`strong`,`subscript`,`superscript`])}function SS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return xS(e)?``:pS(e,t)}var CS=w(kn(),1),wS=w(Rn(),1),TS=w(yi(),1),ES=w(bi(),1),DS=class extends Error{constructor(e,t,n,r){super(),Error.captureStackTrace&&Error.captureStackTrace(this,n);let i=``;try{i=r.utils.printWithType(`Received`,t,r.utils.printReceived)}catch{}this.message=[r.utils.matcherHint(`${r.isNot?`.not`:``}.${n.name}`,`received`,``),``,`${r.utils.RECEIVED_COLOR(`received`)} value must ${e}.`,i].join(`
|
|
215
|
+
`)}},OS=class extends DS{constructor(...e){super(`be an HTMLElement or an SVGElement`,...e)}},kS=class extends DS{constructor(...e){super(`be a Node`,...e)}};function AS(e,t,...n){if(!e||!e.ownerDocument||!e.ownerDocument.defaultView)throw new t(e,...n)}function jS(e,...t){if(AS(e,kS,...t),!(e instanceof e.ownerDocument.defaultView.Node))throw new kS(e,...t)}function MS(e,...t){AS(e,OS,...t);let n=e.ownerDocument.defaultView;if(!(e instanceof n.HTMLElement)&&!(e instanceof n.SVGElement))throw new OS(e,...t)}var NS=class extends Error{constructor(e,t,n){super(),Error.captureStackTrace&&Error.captureStackTrace(this,t),this.message=[e.message,``,n.utils.RECEIVED_COLOR(`Failing css:`),n.utils.RECEIVED_COLOR(`${e.css}`)].join(`
|
|
216
|
+
`)}};function PS(e,...t){let n=lx(`selector { ${e} }`,{silent:!0}).stylesheet;if(n.parsingErrors&&n.parsingErrors.length>0){let{reason:r,line:i}=n.parsingErrors[0];throw new NS({css:e,message:`Syntax error parsing expected css: ${r} on line: ${i}`},...t)}return n.rules[0].declarations.filter(e=>e.type===`declaration`).reduce((e,{property:t,value:n})=>Object.assign(e,{[t]:n}),{})}function FS(e,t){return typeof t==`string`?t:e.utils.stringify(t)}function IS(e,t,n,r,i,a){return[`${t}
|
|
217
|
+
`,`${n}:
|
|
218
|
+
${e.utils.EXPECTED_COLOR((0,Zb.default)(FS(e,r),2))}`,`${i}:
|
|
219
|
+
${e.utils.RECEIVED_COLOR((0,Zb.default)(FS(e,a),2))}`].join(`
|
|
220
|
+
`)}function LS(e,t){return t instanceof RegExp?t.test(e):e.includes(String(t))}function RS(e,t){console.warn(`Warning: ${e} has been deprecated and will be removed in future updates.`,t)}function zS(e){return e.replace(/\s+/g,` `).trim()}function BS(e){return e.tagName&&e.tagName.toLowerCase()}function VS({multiple:e,options:t}){let n=[...t].filter(e=>e.selected);if(e)return[...n].map(e=>e.value);if(n.length!==0)return n[0].value}function HS(e){switch(e.type){case`number`:return e.value===``?null:Number(e.value);case`checkbox`:return e.checked;default:return e.value}}var US=[`meter`,`progressbar`,`slider`,`spinbutton`];function WS(e){if(US.includes(e.getAttribute(`role`)))return Number(e.getAttribute(`aria-valuenow`))}function GS(e){if(e)switch(e.tagName.toLowerCase()){case`input`:return HS(e);case`select`:return VS(e);default:return e.value??WS(e)}}function KS(e,{wordConnector:t=`, `,lastWordConnector:n=` and `}={}){return[e.slice(0,-1).join(t),e[e.length-1]].join(e.length>1?n:``)}function qS(e,t){if(Array.isArray(e)&&Array.isArray(t))return[...new Set(e)].every(e=>new Set(t).has(e))}function JS(e,t){return RS(`toBeInTheDOM`,`Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container.`),e&&MS(e,JS,this),t&&MS(t,JS,this),{pass:t?t.contains(e):!!e,message:()=>[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeInTheDOM`,`element`,``),``,`Received:`,` ${this.utils.printReceived(e&&e.cloneNode(!1))}`].join(`
|
|
221
|
+
`)}}function YS(e){(e!==null||!this.isNot)&&MS(e,YS,this);let t=e===null?!1:e.ownerDocument===e.getRootNode({composed:!0}),n=()=>`expected document not to contain element, found ${this.utils.stringify(e.cloneNode(!0))} instead`,r=()=>`element could not be found in the document`;return{pass:t,message:()=>[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeInTheDocument`,`element`,``),``,this.utils.RECEIVED_COLOR(this.isNot?n():r())].join(`
|
|
222
|
+
`)}}function XS(e){return RS(`toBeEmpty`,`Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM.`),MS(e,XS,this),{pass:e.innerHTML===``,message:()=>[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeEmpty`,`element`,``),``,`Received:`,` ${this.utils.printReceived(e.innerHTML)}`].join(`
|
|
223
|
+
`)}}function ZS(e){return MS(e,ZS,this),{pass:QS(e),message:()=>[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeEmptyDOMElement`,`element`,``),``,`Received:`,` ${this.utils.printReceived(e.innerHTML)}`].join(`
|
|
224
|
+
`)}}function QS(e){return[...e.childNodes].filter(e=>e.nodeType!==8).length===0}function $S(e,t){return MS(e,$S,this),t!==null&&MS(t,$S,this),{pass:e.contains(t),message:()=>[this.utils.matcherHint(`${this.isNot?`.not`:``}.toContainElement`,`element`,`element`),``,this.utils.RECEIVED_COLOR(`${this.utils.stringify(e.cloneNode(!1))} ${this.isNot?`contains:`:`does not contain:`} ${this.utils.stringify(t&&t.cloneNode(!1))}
|
|
225
|
+
`)].join(`
|
|
226
|
+
`)}}function eC(e,t){let n=e.ownerDocument.createElement(`div`);return n.innerHTML=t,n.innerHTML}function tC(e,t){if(MS(e,tC,this),typeof t!=`string`)throw Error(`.toContainHTML() expects a string value, got ${t}`);return{pass:e.outerHTML.includes(eC(e,t)),message:()=>[this.utils.matcherHint(`${this.isNot?`.not`:``}.toContainHTML`,`element`,``),`Expected:`,` ${this.utils.EXPECTED_COLOR(t)}`,`Received:`,` ${this.utils.printReceived(e.cloneNode(!0))}`].join(`
|
|
227
|
+
`)}}function nC(e,t,n={normalizeWhitespace:!0}){jS(e,nC,this);let r=n.normalizeWhitespace?zS(e.textContent):e.textContent.replace(/\u00a0/g,` `),i=r!==``&&t===``;return{pass:!i&&LS(r,t),message:()=>{let e=this.isNot?`not to`:`to`;return IS(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveTextContent`,`element`,``),i?`Checking with empty string will always match, use .toBeEmptyDOMElement() instead`:`Expected element ${e} have text content`,t,`Received`,r)}}}function rC(e,t){MS(e,rC,this);let n=bS(e),r=arguments.length===1,i=!1;return i=r?n!==``:t instanceof RegExp?t.test(n):this.equals(n,t),{pass:i,message:()=>{let e=this.isNot?`not to`:`to`;return IS(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.${rC.name}`,`element`,``),`Expected element ${e} have accessible description`,t,`Received`,n)}}}var iC=`aria-invalid`,aC=[`false`];function oC(e,t){MS(e,oC,this);let n=this.isNot?`not to`:`to`,r=this.isNot?`.not.toHaveAccessibleErrorMessage`:`.toHaveAccessibleErrorMessage`,i=e.getAttribute(`aria-errormessage`);if(i&&/\s+/.test(i))return{pass:!1,message:()=>IS(this,this.utils.matcherHint(r,`element`),"Expected element's `aria-errormessage` attribute to be empty or a single, valid ID",``,`Received`,`aria-errormessage="${i}"`)};let a=e.getAttribute(iC);if(!e.hasAttribute(iC)||aC.includes(a))return{pass:!1,message:()=>IS(this,this.utils.matcherHint(r,`element`),`Expected element to be marked as invalid with attribute`,`${iC}="true"`,`Received`,e.hasAttribute(`aria-invalid`)?`${iC}="${e.getAttribute(iC)}`:null)};let o=zS(e.ownerDocument.getElementById(i)?.textContent??``);return{pass:t===void 0?!!o:t instanceof RegExp?t.test(o):this.equals(o,t),message:()=>IS(this,this.utils.matcherHint(r,`element`),`Expected element ${n} have accessible error message`,t??``,`Received`,o)}}var sC=dC(CS.elementRoles);function cC(e,t){MS(e,cC,this);let n=lC(e);return{pass:n.some(e=>e===t),message:()=>{let e=this.isNot?`not to`:`to`;return IS(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.${cC.name}`,`element`,``),`Expected element ${e} have role`,t,`Received`,n.join(`, `))}}}function lC(e){return e.hasAttribute(`role`)?e.getAttribute(`role`).split(` `).filter(Boolean):uC(e)}function uC(e){for(let{match:t,roles:n}of sC)if(t(e))return[...n];return[]}function dC(e){function t({name:e,attributes:t}){return`${e}${t.map(({name:e,value:t,constraints:n=[]})=>n.indexOf(`undefined`)===-1?t?`[${e}="${t}"]`:`[${e}]`:`:not([${e}])`).join(``)}`}function n({attributes:e=[]}){return e.length}function r({specificity:e},{specificity:t}){return t-e}function i(e){let{attributes:n=[]}=e,r=n.findIndex(e=>e.value&&e.name===`type`&&e.value===`text`);r>=0&&(n=[...n.slice(0,r),...n.slice(r+1)]);let i=t({...e,attributes:n});return e=>r>=0&&e.type!==`text`?!1:e.matches(i)}let a=[];for(let[t,r]of e.entries())a=[...a,{match:i(t),roles:Array.from(r),specificity:n(t)}];return a.sort(r)}function fC(e,t){MS(e,fC,this);let n=SS(e),r=arguments.length===1,i=!1;return i=r?n!==``:t instanceof RegExp?t.test(n):this.equals(n,t),{pass:i,message:()=>{let e=this.isNot?`not to`:`to`;return IS(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.${fC.name}`,`element`,``),`Expected element ${e} have accessible name`,t,`Received`,n)}}}function pC(e,t,n){return n===void 0?t:`${t}=${e(n)}`}function mC(e,t,n){return n===void 0?`element.hasAttribute(${e(t)})`:`element.getAttribute(${e(t)}) === ${e(n)}`}function hC(e,t,n){MS(e,hC,this);let r=n!==void 0,i=e.hasAttribute(t),a=e.getAttribute(t);return{pass:r?i&&this.equals(a,n):i,message:()=>{let e=this.isNot?`not to`:`to`,o=i?pC(this.utils.stringify,t,a):null,s=this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveAttribute`,`element`,this.utils.printExpected(t),{secondArgument:r?this.utils.printExpected(n):void 0,comment:mC(this.utils.stringify,t,n)});return IS(this,s,`Expected the element ${e} have attribute`,pC(this.utils.stringify,t,n),`Received`,o)}}}function gC(e){let t=e.pop(),n,r;return typeof t==`object`&&!(t instanceof RegExp)?(n=e,r=t):(n=e.concat(t),r={exact:!1}),{expectedClassNames:n,options:r}}function _C(e){return e?e.split(/\s+/).filter(e=>e.length>0):[]}function vC(e,t){return e.every(e=>typeof e==`string`?t.includes(e):t.some(t=>e.test(t)))}function yC(e,...t){MS(e,yC,this);let{expectedClassNames:n,options:r}=gC(t),i=_C(e.getAttribute(`class`)),a=n.reduce((e,t)=>e.concat(typeof t==`string`||!t?_C(t):t),[]),o=a.some(e=>e instanceof RegExp);if(r.exact&&o)throw Error(`Exact option does not support RegExp expected class names`);return r.exact?{pass:vC(a,i)&&a.length===i.length,message:()=>{let e=this.isNot?`not to`:`to`;return IS(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveClass`,`element`,this.utils.printExpected(a.join(` `))),`Expected the element ${e} have EXACTLY defined classes`,a.join(` `),`Received`,i.join(` `))}}:a.length>0?{pass:vC(a,i),message:()=>{let e=this.isNot?`not to`:`to`;return IS(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveClass`,`element`,this.utils.printExpected(a.join(` `))),`Expected the element ${e} have class`,a.join(` `),`Received`,i.join(` `))}}:{pass:this.isNot?i.length>0:!1,message:()=>this.isNot?IS(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(`
|
|
228
|
+
`)}}function bC(e,t){let n={},r=e.createElement(`div`);return Object.keys(t).forEach(e=>{r.style[e]=t[e],n[e]=r.style[e]}),n}function xC(e,t){return!!Object.keys(e).length&&Object.entries(e).every(([e,n])=>{let r=e.startsWith(`--`),i=[e];return r||i.push(e.toLowerCase()),i.some(e=>t[e]===n||t.getPropertyValue(e)===n)})}function SC(e){return Object.keys(e).sort().map(t=>`${t}: ${e[t]};`).join(`
|
|
229
|
+
`)}function CC(e,t,n){let r=Array.from(n).filter(e=>t[e]!==void 0).reduce((e,t)=>Object.assign(e,{[t]:n.getPropertyValue(t)}),{});return e(SC(t),SC(r)).replace(`${wS.default.red(`+ Received`)}
|
|
230
|
+
`,``)}function wC(e,t){MS(e,wC,this);let n=typeof t==`object`?t:PS(t,wC,this),{getComputedStyle:r}=e.ownerDocument.defaultView,i=bC(e.ownerDocument,n),a=r(e);return{pass:xC(i,a),message:()=>{let e=`${this.isNot?`.not`:``}.toHaveStyle`;return[this.utils.matcherHint(e,`element`,``),CC(this.utils.diff,i,a)].join(`
|
|
231
|
+
|
|
232
|
+
`)}}}function TC(e){return MS(e,TC,this),{pass:e.ownerDocument.activeElement===e,message:()=>[this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveFocus`,`element`,``),``,...this.isNot?[`Received element is focused:`,` ${this.utils.printReceived(e)}`]:[`Expected element with focus:`,` ${this.utils.printExpected(e)}`,`Received element with focus:`,` ${this.utils.printReceived(e.ownerDocument.activeElement)}`]].join(`
|
|
233
|
+
`)}}function EC(e){let t=[...new Set(e.map(e=>e.type))];if(t.length!==1)throw Error(`Multiple form elements with the same name must be of the same type`);switch(t[0]){case`radio`:{let t=e.find(e=>e.checked);return t?t.value:void 0}case`checkbox`:return e.filter(e=>e.checked).map(e=>e.value);default:return e.map(e=>e.value)}}function DC(e,t){let n=[...e.querySelectorAll(`[name="${(0,ES.default)(t)}"]`)];if(n.length!==0)switch(n.length){case 1:return GS(n[0]);default:return EC(n)}}function OC(e){return/\[\]$/.test(e)?e.slice(0,-2):e}function kC(e){return Array.from(e.elements).map(e=>e.name).reduce((t,n)=>({...t,[OC(n)]:DC(e,n)}),{})}function AC(e,t){if(MS(e,AC,this),!e.elements)throw Error(`toHaveFormValues must be called on a form or a fieldset`);let n=kC(e);return{pass:Object.entries(t).every(([e,t])=>(0,TS.default)(n[e],t,qS)),message:()=>{let e=this.isNot?`not to`:`to`,r=`${this.isNot?`.not`:``}.toHaveFormValues`,i=Object.keys(n).filter(e=>t.hasOwnProperty(e)).reduce((e,t)=>({...e,[t]:n[t]}),{});return[this.utils.matcherHint(r,`element`,``),`Expected the element ${e} have form values`,this.utils.diff(t,i)].join(`
|
|
234
|
+
|
|
235
|
+
`)}}}function jC(e){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:n,visibility:r,opacity:i}=t(e);return n!==`none`&&r!==`hidden`&&r!==`collapse`&&i!==`0`&&i!==0}function MC(e,t){let n;return n=t?e.nodeName===`DETAILS`&&t.nodeName!==`SUMMARY`?e.hasAttribute(`open`):!0:e.nodeName===`DETAILS`?e.hasAttribute(`open`):!0,!e.hasAttribute(`hidden`)&&n}function NC(e,t){return jC(e)&&MC(e,t)&&(!e.parentElement||NC(e.parentElement,e))}function PC(e){MS(e,PC,this);let t=e.ownerDocument===e.getRootNode({composed:!0}),n=t&&NC(e);return{pass:n,message:()=>{let r=n?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeVisible`,`element`,``),``,`Received element ${r} visible${t?``:` (element is not in the document)`}:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
236
|
+
`)}}}var FC=[`fieldset`,`input`,`select`,`optgroup`,`option`,`button`,`textarea`];function IC(e,t){return BS(e)===`legend`&&BS(t)===`fieldset`&&e.isSameNode(Array.from(t.children).find(e=>BS(e)===`legend`))}function LC(e,t){return BC(t)&&!IC(e,t)}function RC(e){return e.includes(`-`)}function zC(e){let t=BS(e);return FC.includes(t)||RC(t)}function BC(e){return zC(e)&&e.hasAttribute(`disabled`)}function VC(e){let t=e.parentElement;return!!t&&(LC(e,t)||VC(t))}function HC(e){return zC(e)&&(BC(e)||VC(e))}function UC(e){MS(e,UC,this);let t=HC(e);return{pass:t,message:()=>{let n=t?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeDisabled`,`element`,``),``,`Received element ${n} disabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
237
|
+
`)}}}function WC(e){MS(e,WC,this);let t=!HC(e);return{pass:t,message:()=>{let n=t?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeEnabled`,`element`,``),``,`Received element ${n} enabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
238
|
+
`)}}}var GC=[`select`,`textarea`],KC=[`input`,`select`,`textarea`],qC=[`color`,`hidden`,`range`,`submit`,`image`,`reset`],JC=[`checkbox`,`combobox`,`gridcell`,`listbox`,`radiogroup`,`spinbutton`,`textbox`,`tree`];function YC(e){return GC.includes(BS(e))&&e.hasAttribute(`required`)}function XC(e){return BS(e)===`input`&&e.hasAttribute(`required`)&&(e.hasAttribute(`type`)&&!qC.includes(e.getAttribute(`type`))||!e.hasAttribute(`type`))}function ZC(e){return e.hasAttribute(`aria-required`)&&e.getAttribute(`aria-required`)===`true`&&(KC.includes(BS(e))||e.hasAttribute(`role`)&&JC.includes(e.getAttribute(`role`)))}function QC(e){MS(e,QC,this);let t=YC(e)||XC(e)||ZC(e);return{pass:t,message:()=>{let n=t?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeRequired`,`element`,``),``,`Received element ${n} required:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
239
|
+
`)}}}var $C=[`form`,`input`,`select`,`textarea`];function ew(e){return e.hasAttribute(`aria-invalid`)&&e.getAttribute(`aria-invalid`)!==`false`}function tw(e){return $C.includes(BS(e))}function nw(e){let t=ew(e);return tw(e)?t||!e.checkValidity():t}function rw(e){MS(e,rw,this);let t=nw(e);return{pass:t,message:()=>{let n=t?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeInvalid`,`element`,``),``,`Received element ${n} currently invalid:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
240
|
+
`)}}}function iw(e){MS(e,iw,this);let t=!nw(e);return{pass:t,message:()=>{let n=t?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeValid`,`element`,``),``,`Received element ${n} currently valid:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
241
|
+
`)}}}function aw(e,t){if(MS(e,aw,this),e.tagName.toLowerCase()===`input`&&[`checkbox`,`radio`].includes(e.type))throw Error(`input with type=checkbox or type=radio cannot be used with .toHaveValue(). Use .toBeChecked() for type=checkbox or .toHaveFormValues() instead`);let n=GS(e),r=t!==void 0,i=t,a=n;return t==n&&t!==n&&(i=`${t} (${typeof t})`,a=`${n} (${typeof n})`),{pass:r?(0,TS.default)(n,t,qS):!!n,message:()=>{let e=this.isNot?`not to`:`to`,n=this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveValue`,`element`,t);return IS(this,n,`Expected the element ${e} have value`,r?i:`(any)`,`Received`,a)}}}function ow(e,t){MS(e,ow,this);let n=e.tagName.toLowerCase();if(![`select`,`input`,`textarea`].includes(n))throw Error(`.toHaveDisplayValue() currently supports only input, textarea or select elements, try with another matcher instead.`);if(n===`input`&&[`radio`,`checkbox`].includes(e.type))throw Error(`.toHaveDisplayValue() currently does not support input[type="${e.type}"], try with another matcher instead.`);let r=sw(n,e),i=cw(t),a=i.filter(e=>r.some(t=>e instanceof RegExp?e.test(t):this.equals(t,String(e)))).length,o=a===r.length,s=a===i.length;return{pass:o&&s,message:()=>IS(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveDisplayValue`,`element`,``),`Expected element ${this.isNot?`not `:``}to have display value`,t,`Received`,r)}}function sw(e,t){return e===`select`?Array.from(t).filter(e=>e.selected).map(e=>e.textContent):[t.value]}function cw(e){return e instanceof Array?e:[e]}function lw(e){MS(e,lw,this);let t=()=>e.tagName.toLowerCase()===`input`&&[`checkbox`,`radio`].includes(e.type);if(!t()&&!(fw(e.getAttribute(`role`))&&[`true`,`false`].includes(e.getAttribute(`aria-checked`))))return{pass:!1,message:()=>`only inputs with type="checkbox" or type="radio" or elements with ${uw()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`};let n=()=>t()?e.checked:e.getAttribute(`aria-checked`)===`true`;return{pass:n(),message:()=>{let t=n()?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeChecked`,`element`,``),``,`Received element ${t} checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
242
|
+
`)}}}function uw(){return KS(dw().map(e=>`role="${e}"`),{lastWordConnector:` or `})}function dw(){return CS.roles.keys().filter(fw)}function fw(e){return CS.roles.get(e)?.props[`aria-checked`]!==void 0}function pw(e){MS(e,pw,this);let t=()=>e.tagName.toLowerCase()===`input`&&e.type===`checkbox`;if(!t()&&e.getAttribute(`role`)!==`checkbox`)return{pass:!1,message:()=>`only inputs with type="checkbox" or elements with role="checkbox" and a valid aria-checked attribute can be used with .toBePartiallyChecked(). Use .toHaveValue() instead`};let n=()=>{let n=e.getAttribute(`aria-checked`)===`mixed`;return t()&&e.indeterminate||n};return{pass:n(),message:()=>{let t=n()?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBePartiallyChecked`,`element`,``),``,`Received element ${t} partially checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
243
|
+
`)}}}function mw(e,t){RS(`toHaveDescription`,`Please use toHaveAccessibleDescription.`),MS(e,mw,this);let n=t!==void 0,r=(e.getAttribute(`aria-describedby`)||``).split(/\s+/).filter(Boolean),i=``;if(r.length>0){let t=e.ownerDocument;i=zS(r.map(e=>t.getElementById(e)).filter(Boolean).map(e=>e.textContent).join(` `))}return{pass:n?t instanceof RegExp?t.test(i):this.equals(i,t):!!i,message:()=>{let e=this.isNot?`not to`:`to`;return IS(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveDescription`,`element`,``),`Expected the element ${e} have description`,this.utils.printExpected(t),`Received`,this.utils.printReceived(i))}}}function hw(e,t){if(RS(`toHaveErrorMessage`,`Please use toHaveAccessibleErrorMessage.`),MS(e,hw,this),!e.hasAttribute(`aria-invalid`)||e.getAttribute(`aria-invalid`)===`false`){let t=this.isNot?`.not`:``;return{pass:!1,message:()=>IS(this,this.utils.matcherHint(`${t}.toHaveErrorMessage`,`element`,``),`Expected the element to have invalid state indicated by`,`aria-invalid="true"`,`Received`,e.hasAttribute(`aria-invalid`)?`aria-invalid="${e.getAttribute(`aria-invalid`)}"`:this.utils.printReceived(``))}}let n=t!==void 0,r=(e.getAttribute(`aria-errormessage`)||``).split(/\s+/).filter(Boolean),i=``;if(r.length>0){let t=e.ownerDocument;i=zS(r.map(e=>t.getElementById(e)).filter(Boolean).map(e=>e.textContent).join(` `))}return{pass:n?t instanceof RegExp?t.test(i):this.equals(i,t):!!i,message:()=>{let e=this.isNot?`not to`:`to`;return IS(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveErrorMessage`,`element`,``),`Expected the element ${e} have error message`,this.utils.printExpected(t),`Received`,this.utils.printReceived(i))}}}function gw(e){let t=e.ownerDocument.getSelection();if([`input`,`textarea`].includes(e.tagName.toLowerCase()))return[`radio`,`checkbox`].includes(e.type)?``:e.value.toString().substring(e.selectionStart,e.selectionEnd);if(t.anchorNode===null||t.focusNode===null)return``;let n=t.getRangeAt(0),r=e.ownerDocument.createRange();if(t.containsNode(e,!1))r.selectNodeContents(e),t.removeAllRanges(),t.addRange(r);else if(!(e.contains(t.anchorNode)&&e.contains(t.focusNode))){let i=e===n.startContainer||e.contains(n.startContainer),a=e===n.endContainer||e.contains(n.endContainer);t.removeAllRanges(),(i||a)&&(r.selectNodeContents(e),i&&r.setStart(n.startContainer,n.startOffset),a&&r.setEnd(n.endContainer,n.endOffset),t.addRange(r))}let i=t.toString();return t.removeAllRanges(),t.addRange(n),i}function _w(e,t){MS(e,_w,this);let n=t!==void 0;if(n&&typeof t!=`string`)throw Error(`expected selection must be a string or undefined`);let r=gw(e);return{pass:n?(0,TS.default)(r,t,qS):!!r,message:()=>{let e=this.isNot?`not to`:`to`,i=this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveSelection`,`element`,t);return IS(this,i,`Expected the element ${e} have selection`,n?t:`(any)`,`Received`,r)}}}Object.freeze({__proto__:null,toBeChecked:lw,toBeDisabled:UC,toBeEmpty:XS,toBeEmptyDOMElement:ZS,toBeEnabled:WC,toBeInTheDOM:JS,toBeInTheDocument:YS,toBeInvalid:rw,toBePartiallyChecked:pw,toBeRequired:QC,toBeValid:iw,toBeVisible:PC,toContainElement:$S,toContainHTML:tC,toHaveAccessibleDescription:rC,toHaveAccessibleErrorMessage:oC,toHaveAccessibleName:fC,toHaveAttribute:hC,toHaveClass:yC,toHaveDescription:mw,toHaveDisplayValue:ow,toHaveErrorMessage:hw,toHaveFocus:TC,toHaveFormValues:AC,toHaveRole:cC,toHaveSelection:_w,toHaveStyle:wC,toHaveTextContent:nC,toHaveValue:aw}),w(k(),1),w(kn(),1),w(Rn(),1),w(yi(),1),w(bi(),1);var vw,yw;function bw(){if(yw)return vw;yw=1;var e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v;return f=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/uy,d=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,e=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/uy,m=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,u=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,h=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,v=/[\t\v\f\ufeff\p{Zs}]+/uy,s=/\r?\n|[\r\u2028\u2029]/y,c=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,p=/\/\/.*/y,n=/[<>.:={}]|\/(?![\/*])/y,t=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/uy,r=/(['"])(?:(?!\1)[^])*(\1)?/y,i=/[^<>{}]+/y,_=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,g=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,a=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,o=/^(?:return|throw|yield)$/,l=RegExp(s.source),vw=function*(y,{jsx:b=!1}={}){var x,S,C,w,T,E,D,O,k,A,j,M,N,P;for({length:E}=y,w=0,T=``,P=[{tag:`JS`}],x=[],j=0,M=!1;w<E;){switch(O=P[P.length-1],O.tag){case`JS`:case`JSNonExpressionParen`:case`InterpolationInTemplate`:case`InterpolationInJSX`:if(y[w]===`/`&&(_.test(T)||a.test(T))&&(f.lastIndex=w,D=f.exec(y))){w=f.lastIndex,T=D[0],M=!0,yield{type:`RegularExpressionLiteral`,value:D[0],closed:D[1]!==void 0&&D[1]!==`\\`};continue}if(d.lastIndex=w,D=d.exec(y)){switch(N=D[0],k=d.lastIndex,A=N,N){case`(`:T===`?NonExpressionParenKeyword`&&P.push({tag:`JSNonExpressionParen`,nesting:j}),j++,M=!1;break;case`)`:j--,M=!0,O.tag===`JSNonExpressionParen`&&j===O.nesting&&(P.pop(),A=`?NonExpressionParenEnd`,M=!1);break;case`{`:d.lastIndex=0,C=!g.test(T)&&(_.test(T)||a.test(T)),x.push(C),M=!1;break;case`}`:switch(O.tag){case`InterpolationInTemplate`:if(x.length===O.nesting){h.lastIndex=w,D=h.exec(y),w=h.lastIndex,T=D[0],D[1]==="${"?(T=`?InterpolationInTemplate`,M=!1,yield{type:`TemplateMiddle`,value:D[0]}):(P.pop(),M=!0,yield{type:`TemplateTail`,value:D[0],closed:D[1]==="`"});continue}break;case`InterpolationInJSX`:if(x.length===O.nesting){P.pop(),w+=1,T=`}`,yield{type:`JSXPunctuator`,value:`}`};continue}}M=x.pop(),A=M?`?ExpressionBraceEnd`:`}`;break;case`]`:M=!0;break;case`++`:case`--`:A=M?`?PostfixIncDec`:`?UnaryIncDec`;break;case`<`:if(b&&(_.test(T)||a.test(T))){P.push({tag:`JSXTag`}),w+=1,T=`<`,yield{type:`JSXPunctuator`,value:N};continue}M=!1;break;default:M=!1}w=k,T=A,yield{type:`Punctuator`,value:N};continue}if(e.lastIndex=w,D=e.exec(y)){switch(w=e.lastIndex,A=D[0],D[0]){case`for`:case`if`:case`while`:case`with`:T!==`.`&&T!==`?.`&&(A=`?NonExpressionParenKeyword`)}T=A,M=!a.test(D[0]),yield{type:D[1]===`#`?`PrivateIdentifier`:`IdentifierName`,value:D[0]};continue}if(m.lastIndex=w,D=m.exec(y)){w=m.lastIndex,T=D[0],M=!0,yield{type:`StringLiteral`,value:D[0],closed:D[2]!==void 0};continue}if(u.lastIndex=w,D=u.exec(y)){w=u.lastIndex,T=D[0],M=!0,yield{type:`NumericLiteral`,value:D[0]};continue}if(h.lastIndex=w,D=h.exec(y)){w=h.lastIndex,T=D[0],D[1]==="${"?(T=`?InterpolationInTemplate`,P.push({tag:`InterpolationInTemplate`,nesting:x.length}),M=!1,yield{type:`TemplateHead`,value:D[0]}):(M=!0,yield{type:`NoSubstitutionTemplate`,value:D[0],closed:D[1]==="`"});continue}break;case`JSXTag`:case`JSXTagEnd`:if(n.lastIndex=w,D=n.exec(y)){switch(w=n.lastIndex,A=D[0],D[0]){case`<`:P.push({tag:`JSXTag`});break;case`>`:P.pop(),T===`/`||O.tag===`JSXTagEnd`?(A=`?JSX`,M=!0):P.push({tag:`JSXChildren`});break;case`{`:P.push({tag:`InterpolationInJSX`,nesting:x.length}),A=`?InterpolationInJSX`,M=!1;break;case`/`:T===`<`&&(P.pop(),P[P.length-1].tag===`JSXChildren`&&P.pop(),P.push({tag:`JSXTagEnd`}))}T=A,yield{type:`JSXPunctuator`,value:D[0]};continue}if(t.lastIndex=w,D=t.exec(y)){w=t.lastIndex,T=D[0],yield{type:`JSXIdentifier`,value:D[0]};continue}if(r.lastIndex=w,D=r.exec(y)){w=r.lastIndex,T=D[0],yield{type:`JSXString`,value:D[0],closed:D[2]!==void 0};continue}break;case`JSXChildren`:if(i.lastIndex=w,D=i.exec(y)){w=i.lastIndex,T=D[0],yield{type:`JSXText`,value:D[0]};continue}switch(y[w]){case`<`:P.push({tag:`JSXTag`}),w++,T=`<`,yield{type:`JSXPunctuator`,value:`<`};continue;case`{`:P.push({tag:`InterpolationInJSX`,nesting:x.length}),w++,T=`?InterpolationInJSX`,M=!1,yield{type:`JSXPunctuator`,value:`{`};continue}}if(v.lastIndex=w,D=v.exec(y)){w=v.lastIndex,yield{type:`WhiteSpace`,value:D[0]};continue}if(s.lastIndex=w,D=s.exec(y)){w=s.lastIndex,M=!1,o.test(T)&&(T=`?NoLineTerminatorHere`),yield{type:`LineTerminatorSequence`,value:D[0]};continue}if(c.lastIndex=w,D=c.exec(y)){w=c.lastIndex,l.test(D[0])&&(M=!1,o.test(T)&&(T=`?NoLineTerminatorHere`)),yield{type:`MultiLineComment`,value:D[0],closed:D[1]!==void 0};continue}if(p.lastIndex=w,D=p.exec(y)){w=p.lastIndex,M=!1,yield{type:`SingleLineComment`,value:D[0]};continue}S=String.fromCodePoint(y.codePointAt(w)),w+=S.length,T=S,M=!1,yield{type:O.tag.startsWith(`JSX`)?`JSXInvalid`:`Invalid`,value:S}}},vw}Rh(bw());var xw={keyword:`break.case.catch.continue.debugger.default.do.else.finally.for.function.if.return.switch.throw.try.var.const.while.with.new.this.super.class.extends.export.import.null.true.false.in.instanceof.typeof.void.delete`.split(`.`),strict:[`implements`,`interface`,`let`,`package`,`private`,`protected`,`public`,`static`,`yield`]};new Set(xw.keyword),new Set(xw.strict);var Sw=Object.entries({reset:[0,0],bold:[1,22,`\x1B[22m\x1B[1m`],dim:[2,22,`\x1B[22m\x1B[2m`],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]});function Cw(e){return String(e)}Cw.open=``,Cw.close=``,Sw.reduce((e,[t])=>(e[t]=Cw,e),{isColorSupported:!1});function ww(e=!1){let t=typeof process<`u`?process:void 0,n=t?.env||{},r=t?.argv||[];return!(`NO_COLOR`in n||r.includes(`--no-color`))&&(`FORCE_COLOR`in n||r.includes(`--color`)||t?.platform===`win32`||e&&n.TERM!==`dumb`||`CI`in n)||typeof window<`u`&&!!window.chrome}function Tw(e=!1){let t=ww(e),n=(e,t,n,r)=>{let i=``,a=0;do i+=e.substring(a,r)+n,a=r+t.length,r=e.indexOf(t,a);while(~r);return i+e.substring(a)},r=(e,t,r=e)=>{let i=i=>{let a=String(i),o=a.indexOf(t,e.length);return~o?e+n(a,t,r,o)+t:e+a+t};return i.open=e,i.close=t,i},i={isColorSupported:t},a=e=>`\x1B[${e}m`;for(let[e,n]of Sw)i[e]=t?r(a(n[0]),a(n[1]),n[2]):Cw;return i}var Ew=Tw();function Dw(e,t){if(!e)throw Error(t)}function Ow(e,t){return typeof t===e}function kw(e){return e instanceof Promise}function Aw(e,t,n){Object.defineProperty(e,t,n)}function jw(e,t,n){Aw(e,t,{value:n,configurable:!0,writable:!0})}var Mw=Symbol.for(`tinyspy:spy`),Nw=new Set,Pw=e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},Fw=e=>(Aw(e,Mw,{value:{reset:()=>Pw(e[Mw])}}),e[Mw]),Iw=e=>e[Mw]||Fw(e);function Lw(e){Dw(Ow(`function`,e)||Ow(`undefined`,e),`cannot spy on a non-function value`);let t=function(...e){let n=Iw(t);n.called=!0,n.callCount++,n.calls.push(e);let r=n.next.shift();if(r){n.results.push(r);let[e,t]=r;if(e===`ok`)return t;throw t}let i,a=`ok`,o=n.results.length;if(n.impl)try{i=new.target?Reflect.construct(n.impl,e,new.target):n.impl.apply(this,e),a=`ok`}catch(e){throw i=e,a=`error`,n.results.push([a,e]),e}let s=[a,i];return kw(i)&&i.then(e=>n.resolves[o]=[`ok`,e],e=>n.resolves[o]=[`error`,e]),n.results.push(s),i};jw(t,`_isMockFunction`,!0),jw(t,`length`,e?e.length:0),jw(t,`name`,e&&e.name||`spy`);let n=Iw(t);return n.reset(),n.impl=e,t}function Rw(e){return!!e&&e._isMockFunction===!0}var zw=(e,t)=>{let n=Object.getOwnPropertyDescriptor(e,t);if(n)return[e,n];let r=Object.getPrototypeOf(e);for(;r!==null;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return[r,e];r=Object.getPrototypeOf(r)}},Bw=(e,t)=>{t!=null&&typeof t==`function`&&t.prototype!=null&&Object.setPrototypeOf(e.prototype,t.prototype)};function Vw(e,t,n){Dw(!Ow(`undefined`,e),`spyOn could not find an object to spy upon`),Dw(Ow(`object`,e)||Ow(`function`,e),`cannot spyOn on a primitive value`);let[r,i]=(()=>{if(!Ow(`object`,t))return[t,`value`];if(`getter`in t&&`setter`in t)throw Error(`cannot spy on both getter and setter`);if(`getter`in t)return[t.getter,`get`];if(`setter`in t)return[t.setter,`set`];throw Error(`specify getter or setter to spy on`)})(),[a,o]=zw(e,r)||[];Dw(o||r in e,`${String(r)} does not exist`);let s=!1;i===`value`&&o&&!o.value&&o.get&&(i=`get`,s=!0,n=o.get());let c;c=o?o[i]:i===`value`?e[r]:()=>e[r],c&&Gw(c)&&(c=c[Mw].getOriginal());let l=t=>{let{value:n,...a}=o||{configurable:!0,writable:!0};i!==`value`&&delete a.writable,a[i]=t,Aw(e,r,a)},u=()=>{a===e?o&&!c?Aw(e,r,o):l(c):Reflect.deleteProperty(e,r)};n||=c;let d=Ww(Lw(n),n);i===`value`&&Bw(d,c);let f=d[Mw];return jw(f,`restore`,u),jw(f,`getOriginal`,()=>s?c():c),jw(f,`willCall`,e=>(f.impl=e,d)),l(s?()=>(Bw(d,n),d):d),Nw.add(d),d}var Hw=new Set([`length`,`name`,`prototype`]);function Uw(e){let t=new Set,n={};for(;e&&e!==Object.prototype&&e!==Function.prototype;){let r=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let i of r)n[i]||Hw.has(i)||(t.add(i),n[i]=Object.getOwnPropertyDescriptor(e,i));e=Object.getPrototypeOf(e)}return{properties:t,descriptors:n}}function Ww(e,t){if(!t||Mw in t)return e;let{properties:n,descriptors:r}=Uw(t);for(let t of n){let n=r[t];zw(e,t)||Aw(e,t,n)}return e}function Gw(e){return Rw(e)&&`getOriginal`in e[Mw]}var Kw=new Set;function qw(e){return typeof e==`function`&&`_isMockFunction`in e&&e._isMockFunction}function Jw(e,t,n){let r=n?{[{get:`getter`,set:`setter`}[n]]:t}:t,i,a=Qw(e,t),o=a&&a[n||`value`];qw(o)&&(i=o.mock._state());try{let t=Xw(Vw(e,r));return i&&t.mock._state(i),t}catch(t){throw t instanceof TypeError&&Symbol.toStringTag&&e[Symbol.toStringTag]===`Module`&&(t.message.includes(`Cannot redefine property`)||t.message.includes(`Cannot replace module namespace`)||t.message.includes(`can't redefine non-configurable property`))?TypeError(`Cannot spy on export "${String(r)}". Module namespace is not configurable in ESM. See: https://vitest.dev/guide/browser/#limitations`,{cause:t}):t}}var Yw=0;function Xw(e){let t=e,n,r=[],i=!1,a=[],o=[],s=[],c=Iw(e),l={get calls(){return c.calls},get contexts(){return o},get instances(){return a},get invocationCallOrder(){return s},get results(){return c.results.map(([e,t])=>({type:e===`error`?`throw`:`return`,value:t}))},get settledResults(){return c.resolves.map(([e,t])=>({type:e===`error`?`rejected`:`fulfilled`,value:t}))},get lastCall(){return c.calls[c.calls.length-1]},_state(e){return e&&(n=e.implementation,r=e.onceImplementations,i=e.implementationChangedTemporarily),{implementation:n,onceImplementations:r,implementationChangedTemporarily:i}}};function u(...e){return a.push(this),o.push(this),s.push(++Yw),(i?n:r.shift()||n||c.getOriginal()||(()=>{})).apply(this,e)}let d=t.name;t.getMockName=()=>d||`vi.fn()`,t.mockName=e=>(d=e,t),t.mockClear=()=>(c.reset(),a=[],o=[],s=[],t),t.mockReset=()=>(t.mockClear(),n=void 0,r=[],t),t.mockRestore=()=>(t.mockReset(),c.restore(),t),Symbol.dispose&&(t[Symbol.dispose]=()=>t.mockRestore()),t.getMockImplementation=()=>i?n:r.at(0)||n,t.mockImplementation=e=>(n=e,c.willCall(u),t),t.mockImplementationOnce=e=>(r.push(e),t);function f(e,r){let a=n;n=e,c.willCall(u),i=!0;let o=()=>{n=a,i=!1},s=r();return typeof s==`object`&&s&&typeof s.then==`function`?s.then(()=>(o(),t)):(o(),t)}return t.withImplementation=f,t.mockReturnThis=()=>t.mockImplementation(function(){return this}),t.mockReturnValue=e=>t.mockImplementation(()=>e),t.mockReturnValueOnce=e=>t.mockImplementationOnce(()=>e),t.mockResolvedValue=e=>t.mockImplementation(()=>Promise.resolve(e)),t.mockResolvedValueOnce=e=>t.mockImplementationOnce(()=>Promise.resolve(e)),t.mockRejectedValue=e=>t.mockImplementation(()=>Promise.reject(e)),t.mockRejectedValueOnce=e=>t.mockImplementationOnce(()=>Promise.reject(e)),Object.defineProperty(t,`mock`,{get:()=>l}),c.willCall(u),Kw.add(t),t}function Zw(e){let t=Xw(Vw({spy:e||function(){}},`spy`));return e&&t.mockImplementation(e),t}function Qw(e,t){let n=Object.getOwnPropertyDescriptor(e,t);if(n)return n;let r=Object.getPrototypeOf(e);for(;r!==null;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Object.getPrototypeOf(r)}}var $w=Symbol.for(`matchers-object`),eT=Symbol.for(`$$jest-matchers-object-storybook`),tT=Symbol.for(`expect-global`),nT=Symbol.for(`asymmetric-matchers-object`),rT={toSatisfy(e,t,n){let{printReceived:r,printExpected:i,matcherHint:a}=this.utils,o=t(e);return{pass:o,message:()=>o?`${a(`.not.toSatisfy`,`received`,``)}
|
|
244
|
+
|
|
245
|
+
Expected value to not satisfy:
|
|
246
|
+
${n||i(t)}
|
|
247
|
+
Received:
|
|
248
|
+
${r(e)}`:`${a(`.toSatisfy`,`received`,``)}
|
|
249
|
+
|
|
250
|
+
Expected value to satisfy:
|
|
251
|
+
${n||i(t)}
|
|
252
|
+
|
|
253
|
+
Received:
|
|
254
|
+
${r(e)}`}},toBeOneOf(e,t){let{equals:n,customTesters:r}=this,{printReceived:i,printExpected:a,matcherHint:o}=this.utils;if(!Array.isArray(t))throw TypeError(`You must provide an array to ${o(`.toBeOneOf`)}, not '${typeof t}'.`);let s=t.length===0||t.some(t=>n(t,e,r));return{pass:s,message:()=>s?`${o(`.not.toBeOneOf`,`received`,``)}
|
|
255
|
+
|
|
256
|
+
Expected value to not be one of:
|
|
257
|
+
${a(t)}
|
|
258
|
+
Received:
|
|
259
|
+
${i(e)}`:`${o(`.toBeOneOf`,`received`,``)}
|
|
260
|
+
|
|
261
|
+
Expected value to be one of:
|
|
262
|
+
${a(t)}
|
|
263
|
+
|
|
264
|
+
Received:
|
|
265
|
+
${i(e)}`}}},iT=Ew.green,aT=Ew.red,oT=Ew.inverse,sT=Ew.bold,cT=Ew.dim;function lT(e,t=`received`,n=`expected`,r={}){let{comment:i=``,isDirectExpectCall:a=!1,isNot:o=!1,promise:s=``,secondArgument:c=``,expectedColor:l=iT,receivedColor:u=aT,secondArgumentColor:d=iT}=r,f=``,p=`expect`;return!a&&t!==``&&(f+=cT(`${p}(`)+u(t),p=`)`),s!==``&&(f+=cT(`${p}.`)+s,p=``),o&&(f+=`${cT(`${p}.`)}not`,p=``),e.includes(`.`)?p+=e:(f+=cT(`${p}.`)+e,p=``),n===``?p+=`()`:(f+=cT(`${p}(`)+l(n),c&&(f+=cT(`, `)+d(c)),p=`)`),i!==``&&(p+=` // ${i}`),p!==``&&(f+=cT(p)),f}var uT=`·`;function dT(e){return e.replace(/\s+$/gm,e=>uT.repeat(e.length))}function fT(e){return aT(dT(Ph(e)))}function pT(e){return iT(dT(Ph(e)))}function mT(){return{EXPECTED_COLOR:iT,RECEIVED_COLOR:aT,INVERTED_COLOR:oT,BOLD_WEIGHT:sT,DIM_COLOR:cT,diff:a_,matcherHint:lT,printReceived:fT,printExpected:pT,printDiffOrStringify:h_,printWithType:hT}}function hT(e,t,n){let r=Hh(t);return(r!==`null`&&r!==`undefined`?`${e} has type: ${r}
|
|
266
|
+
`:``)+`${e} has value: ${n(t)}`}function gT(){return globalThis[eT].customEqualityTesters}function _T(e,t,n,r){return n||=[],bT(e,t,[],[],n,r?wT:CT)}Function.prototype.toString;function vT(e){return!!e&&typeof e==`object`&&`asymmetricMatch`in e&&TT(`Function`,e.asymmetricMatch)}function yT(e,t){let n=vT(e),r=vT(t);if(!(n&&r)){if(n)return e.asymmetricMatch(t);if(r)return t.asymmetricMatch(e)}}function bT(e,t,n,r,i,a){let o=!0,s=yT(e,t);if(s!==void 0)return s;let c={equals:_T};for(let n=0;n<i.length;n++){let r=i[n].call(c,e,t,i);if(r!==void 0)return r}if(typeof URL==`function`&&e instanceof URL&&t instanceof URL)return e.href===t.href;if(Object.is(e,t))return!0;if(e===null||t===null)return e===t;let l=Object.prototype.toString.call(e);if(l!==Object.prototype.toString.call(t))return!1;switch(l){case`[object Boolean]`:case`[object String]`:case`[object Number]`:return typeof e==typeof t?typeof e!=`object`&&typeof t!=`object`?Object.is(e,t):Object.is(e.valueOf(),t.valueOf()):!1;case`[object Date]`:{let n=+e,r=+t;return n===r||Number.isNaN(n)&&Number.isNaN(r)}case`[object RegExp]`:return e.source===t.source&&e.flags===t.flags;case`[object Temporal.Instant]`:case`[object Temporal.ZonedDateTime]`:case`[object Temporal.PlainDateTime]`:case`[object Temporal.PlainDate]`:case`[object Temporal.PlainTime]`:case`[object Temporal.PlainYearMonth]`:case`[object Temporal.PlainMonthDay]`:return e.equals(t);case`[object Temporal.Duration]`:return e.toString()===t.toString()}if(typeof e!=`object`||typeof t!=`object`)return!1;if(ET(e)&&ET(t))return e.isEqualNode(t);let u=n.length;for(;u--;){if(n[u]===e)return r[u]===t;if(r[u]===t)return!1}if(n.push(e),r.push(t),l===`[object Array]`&&e.length!==t.length)return!1;if(e instanceof Error&&t instanceof Error)try{return xT(e,t,n,r,i,a)}finally{n.pop(),r.pop()}let d=ST(e,a),f,p=d.length;if(ST(t,a).length!==p)return!1;for(;p--;)if(f=d[p],o=a(t,f)&&bT(e[f],t[f],n,r,i,a),!o)return!1;return n.pop(),r.pop(),o}function xT(e,t,n,r,i,a){let o=Object.getPrototypeOf(e)===Object.getPrototypeOf(t)&&e.name===t.name&&e.message===t.message;return typeof t.cause<`u`&&o&&(o=bT(e.cause,t.cause,n,r,i,a)),e instanceof AggregateError&&t instanceof AggregateError&&o&&(o=bT(e.errors,t.errors,n,r,i,a)),o&&=bT({...e},{...t},n,r,i,a),o}function ST(e,t){let n=[];for(let r in e)t(e,r)&&n.push(r);return n.concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable))}function CT(e,t){return wT(e,t)&&e[t]!==void 0}function wT(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function TT(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}function ET(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`&&`nodeName`in e&&typeof e.nodeName==`string`&&`isEqualNode`in e&&typeof e.isEqualNode==`function`}var DT=`@@__IMMUTABLE_KEYED__@@`,OT=`@@__IMMUTABLE_SET__@@`,kT=`@@__IMMUTABLE_LIST__@@`,AT=`@@__IMMUTABLE_ORDERED__@@`,jT=`@@__IMMUTABLE_RECORD__@@`;function MT(e){return!!(e&&e[DT]&&!e[AT])}function NT(e){return!!(e&&e[OT]&&!e[AT])}function PT(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function FT(e){return!!(e&&PT(e)&&e[kT])}function IT(e){return!!(e&&PT(e)&&e[DT]&&e[AT])}function LT(e){return!!(e&&PT(e)&&e[OT]&&e[AT])}function RT(e){return!!(e&&PT(e)&&e[jT])}var zT=Symbol.iterator;function BT(e){return!!(e!=null&&e[zT])}function VT(e,t,n=[],r=[],i=[]){if(typeof e!=`object`||typeof t!=`object`||Array.isArray(e)||Array.isArray(t)||!BT(e)||!BT(t))return;if(e.constructor!==t.constructor)return!1;let a=r.length;for(;a--;)if(r[a]===e)return i[a]===t;r.push(e),i.push(t);let o=[...n.filter(e=>e!==VT),s];function s(e,t){return VT(e,t,[...n],[...r],[...i])}if(e.size!==void 0){if(e.size!==t.size)return!1;if(TT(`Set`,e)||NT(e)){let n=!0;for(let r of e)if(!t.has(r)){let e=!1;for(let n of t)_T(r,n,o)===!0&&(e=!0);if(e===!1){n=!1;break}}return r.pop(),i.pop(),n}else if(TT(`Map`,e)||MT(e)){let n=!0;for(let r of e)if(!t.has(r[0])||!_T(r[1],t.get(r[0]),o)){let e=!1;for(let n of t){let t=_T(r[0],n[0],o),i=!1;t===!0&&(i=_T(r[1],n[1],o)),i===!0&&(e=!0)}if(e===!1){n=!1;break}}return r.pop(),i.pop(),n}}let c=t[zT]();for(let t of e){let e=c.next();if(e.done||!_T(t,e.value,o))return!1}return!c.next().done||!FT(e)&&!IT(e)&&!LT(e)&&!RT(e)&&!_T(Object.entries(e),Object.entries(t),o)?!1:(r.pop(),i.pop(),!0)}function HT(e,t){return!e||typeof e!=`object`||e===Object.prototype?!1:Object.prototype.hasOwnProperty.call(e,t)||HT(Object.getPrototypeOf(e),t)}function UT(e){return Bh(e)&&!(e instanceof Error)&&!Array.isArray(e)&&!(e instanceof Date)}function WT(e,t,n=[]){let r=n.filter(e=>e!==WT),i=(e=new WeakMap)=>(t,n)=>{if(UT(n))return Object.keys(n).every(a=>{if(n[a]!=null&&typeof n[a]==`object`){if(e.has(n[a]))return _T(t[a],n[a],r);e.set(n[a],!0)}let o=t!=null&&HT(t,a)&&_T(t[a],n[a],[...r,i(e)]);return e.delete(n[a]),o})};return i()(e,t)}function GT(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return!1}function KT(e,t){let n=e,r=t;if(!(e instanceof DataView&&t instanceof DataView)){if(!(e instanceof ArrayBuffer)||!(t instanceof ArrayBuffer))return;try{n=new DataView(e),r=new DataView(t)}catch{return}}if(n.byteLength!==r.byteLength)return!1;for(let e=0;e<n.byteLength;e++)if(n.getUint8(e)!==r.getUint8(e))return!1;return!0}function qT(e,t,n=[]){if(!Array.isArray(e)||!Array.isArray(t))return;let r=Object.keys(e),i=Object.keys(t);return _T(e,t,n.filter(e=>e!==qT),!0)&&_T(r,i)}function JT(e,t=`#{this}`,n=`#{exp}`){let r=`expected ${t} to be ${n} // Object.is equality`;return[`toStrictEqual`,`toEqual`].includes(e)?`${r}
|
|
267
|
+
|
|
268
|
+
If it should pass with deep equality, replace "toBe" with "${e}"
|
|
269
|
+
|
|
270
|
+
Expected: ${t}
|
|
271
|
+
Received: serializes to the same string
|
|
272
|
+
`:r}function YT(e,t){return`${t} ${e}${t===1?``:`s`}`}function XT(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t)?.enumerable)]}function ZT(e,t,n){let r=0,i=(e=new WeakMap)=>(t,a)=>{if(Array.isArray(t)){if(Array.isArray(a)&&a.length===t.length)return a.map((n,r)=>i(e)(t[r],n))}else{if(t instanceof Date)return t;if(Bh(t)&&Bh(a)){if(_T(t,a,[...n,VT,WT]))return a;let o={};e.set(t,o),typeof t.constructor==`function`&&typeof t.constructor.name==`string`&&Object.defineProperty(o,`constructor`,{enumerable:!1,value:t.constructor});for(let n of XT(t))HT(a,n)?o[n]=e.has(t[n])?e.get(t[n]):i(e)(t[n],a[n]):e.has(t[n])||(r+=1,Bh(t[n])&&(r+=XT(t[n]).length),i(e)(t[n],a[n]));if(XT(o).length>0)return o}}return t};return{subset:i()(e,t),stripped:r}}if(!Object.prototype.hasOwnProperty.call(globalThis,$w)){let e=new WeakMap;Object.defineProperty(globalThis,$w,{get:()=>e})}if(!Object.prototype.hasOwnProperty.call(globalThis,eT)){let e=Object.create(null),t=[];Object.defineProperty(globalThis,eT,{configurable:!0,get:()=>({state:globalThis[$w].get(globalThis[tT]),matchers:e,customEqualityTesters:t})})}if(!Object.prototype.hasOwnProperty.call(globalThis,nT)){let e=Object.create(null);Object.defineProperty(globalThis,nT,{get:()=>e})}function QT(e){return globalThis[$w].get(e)}function $T(e,t){let n=globalThis[$w],r=n.get(t)||{},i=Object.defineProperties(r,{...Object.getOwnPropertyDescriptors(r),...Object.getOwnPropertyDescriptors(e)});n.set(t,i)}var eE=class{$$typeof=Symbol.for(`jest.asymmetricMatcher`);constructor(e,t=!1){this.sample=e,this.inverse=t}getMatcherContext(e){return{...QT(e||globalThis[tT]),equals:_T,isNot:this.inverse,customTesters:gT(),utils:{...mT(),diff:a_,stringify:Ph,iterableEquality:VT,subsetEquality:WT}}}};eE.prototype[Symbol.for(`chai/inspect`)]=function(e){let t=Ph(this,e.depth,{min:!0});return t.length<=e.truncate?t:`${this.toString()}{\u2026}`};var tE=class extends eE{constructor(e,t=!1){if(!TT(`String`,e))throw Error(`Expected is not a string`);super(e,t)}asymmetricMatch(e){let t=TT(`String`,e)&&e.includes(this.sample);return this.inverse?!t:t}toString(){return`String${this.inverse?`Not`:``}Containing`}getExpectedType(){return`string`}},nE=class extends eE{asymmetricMatch(e){return e!=null}toString(){return`Anything`}toAsymmetricMatcher(){return`Anything`}},rE=class extends eE{constructor(e,t=!1){super(e,t)}getPrototype(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.constructor.prototype===e?null:e.constructor.prototype}hasProperty(e,t){return e?Object.prototype.hasOwnProperty.call(e,t)?!0:this.hasProperty(this.getPrototype(e),t):!1}asymmetricMatch(e){if(typeof this.sample!=`object`)throw TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let t=!0,n=this.getMatcherContext();for(let r in this.sample)if(!this.hasProperty(e,r)||!_T(this.sample[r],e[r],n.customTesters)){t=!1;break}return this.inverse?!t:t}toString(){return`Object${this.inverse?`Not`:``}Containing`}getExpectedType(){return`object`}},iE=class extends eE{constructor(e,t=!1){super(e,t)}asymmetricMatch(e){if(!Array.isArray(this.sample))throw TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);let t=this.getMatcherContext(),n=this.sample.length===0||Array.isArray(e)&&this.sample.every(n=>e.some(e=>_T(n,e,t.customTesters)));return this.inverse?!n:n}toString(){return`Array${this.inverse?`Not`:``}Containing`}getExpectedType(){return`array`}},aE=class extends eE{constructor(e){if(typeof e>`u`)throw TypeError(`any() expects to be passed a constructor function. Please pass one or use anything() to match any object.`);super(e)}fnNameFor(e){if(e.name)return e.name;let t=Function.prototype.toString.call(e).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return t?t[1]:`<anonymous>`}asymmetricMatch(e){return this.sample===String?typeof e==`string`||e instanceof String:this.sample===Number?typeof e==`number`||e instanceof Number:this.sample===Function?typeof e==`function`||typeof e==`function`:this.sample===Boolean?typeof e==`boolean`||e instanceof Boolean:this.sample===BigInt?typeof e==`bigint`||e instanceof BigInt:this.sample===Symbol?typeof e==`symbol`||e instanceof Symbol:this.sample===Object?typeof e==`object`:e instanceof this.sample}toString(){return`Any`}getExpectedType(){return this.sample===String?`string`:this.sample===Number?`number`:this.sample===Function?`function`:this.sample===Object?`object`:this.sample===Boolean?`boolean`:this.fnNameFor(this.sample)}toAsymmetricMatcher(){return`Any<${this.fnNameFor(this.sample)}>`}},oE=class extends eE{constructor(e,t=!1){if(!TT(`String`,e)&&!TT(`RegExp`,e))throw Error(`Expected is not a String or a RegExp`);super(new RegExp(e),t)}asymmetricMatch(e){let t=TT(`String`,e)&&this.sample.test(e);return this.inverse?!t:t}toString(){return`String${this.inverse?`Not`:``}Matching`}getExpectedType(){return`string`}},sE=class extends eE{precision;constructor(e,t=2,n=!1){if(!TT(`Number`,e))throw Error(`Expected is not a Number`);if(!TT(`Number`,t))throw Error(`Precision is not a Number`);super(e),this.inverse=n,this.precision=t}asymmetricMatch(e){if(!TT(`Number`,e))return!1;let t=!1;return t=e===1/0&&this.sample===1/0||e===-1/0&&this.sample===-1/0?!0:Math.abs(this.sample-e)<10**-this.precision/2,this.inverse?!t:t}toString(){return`Number${this.inverse?`Not`:``}CloseTo`}getExpectedType(){return`number`}toAsymmetricMatcher(){return[this.toString(),this.sample,`(${YT(`digit`,this.precision)})`].join(` `)}},cE=(e,t)=>{t.addMethod(e.expect,`anything`,()=>new nE),t.addMethod(e.expect,`any`,e=>new aE(e)),t.addMethod(e.expect,`stringContaining`,e=>new tE(e)),t.addMethod(e.expect,`objectContaining`,e=>new rE(e)),t.addMethod(e.expect,`arrayContaining`,e=>new iE(e)),t.addMethod(e.expect,`stringMatching`,e=>new oE(e)),t.addMethod(e.expect,`closeTo`,(e,t)=>new sE(e,t)),e.expect.not={stringContaining:e=>new tE(e,!0),objectContaining:e=>new rE(e,!0),arrayContaining:e=>new iE(e,!0),stringMatching:e=>new oE(e,!0),closeTo:(e,t)=>new sE(e,t,!0)}};function lE(e,t,n){let r=e.flag(t,`negate`)?`not.`:``,i=`${e.flag(t,`_name`)}(${n?`expected`:``})`,a=e.flag(t,`promise`);return`expect(actual)${a?`.${a}`:``}.${r}${i}`}function uE(e,t,n,r){let i=e;if(i&&t instanceof Promise){t=t.finally(()=>{if(!i.promises)return;let e=i.promises.indexOf(t);e!==-1&&i.promises.splice(e,1)}),i.promises||=[],i.promises.push(t);let e=!1;return i.onFinished??=[],i.onFinished.push(()=>{if(!e){let e=(globalThis.__vitest_worker__?.onFilterStackTrace||(e=>e||``))(r.stack);console.warn([`Promise returned by \`${n}\` was not awaited. `,`Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. `,`Please remember to await the assertion.
|
|
273
|
+
`,e].join(``))}}),{then(n,r){return e=!0,t.then(n,r)},catch(e){return t.catch(e)},finally(e){return t.finally(e)},[Symbol.toStringTag]:`Promise`}}return t}function dE(e,t){var n;e.result||={state:`fail`},e.result.state=`fail`,(n=e.result).errors||(n.errors=[]),e.result.errors.push(j_(t))}function fE(e,t,n){return function(...r){if(t!==`withTest`&&e.flag(this,`_name`,t),!e.flag(this,`soft`))return n.apply(this,r);let i=e.flag(this,`vitest-test`);if(!i)throw Error(`expect.soft() can only be used inside a test`);try{let e=n.apply(this,r);return e&&typeof e==`object`&&typeof e.then==`function`?e.then(Jh,e=>{dE(i,e)}):e}catch(e){dE(i,e)}}}var pE=(e,t)=>{let{AssertionError:n}=e,r=gT();function i(n,r){let i=n=>{let i=fE(t,n,r);t.addMethod(e.Assertion.prototype,n,i),t.addMethod(globalThis[eT].matchers,n,i)};Array.isArray(n)?n.forEach(e=>i(e)):i(n)}[`throw`,`throws`,`Throw`].forEach(r=>{t.overwriteMethod(e.Assertion.prototype,r,e=>function(...r){let i=t.flag(this,`promise`),a=t.flag(this,`object`),o=t.flag(this,`negate`);if(i===`rejects`)t.flag(this,`object`,()=>{throw a});else if(i===`resolves`&&typeof a!=`function`){if(o)return;throw new n(t.flag(this,`message`)||`expected promise to throw an error, but it didn't`,{showDiff:!1},t.flag(this,`ssfi`))}e.apply(this,r)})}),i(`withTest`,function(e){return t.flag(this,`vitest-test`,e),this}),i(`toEqual`,function(e){let n=t.flag(this,`object`),i=_T(n,e,[...r,VT]);return this.assert(i,`expected #{this} to deeply equal #{exp}`,`expected #{this} to not deeply equal #{exp}`,e,n)}),i(`toStrictEqual`,function(e){let n=t.flag(this,`object`),i=_T(n,e,[...r,VT,GT,qT,KT],!0);return this.assert(i,`expected #{this} to strictly equal #{exp}`,`expected #{this} to not strictly equal #{exp}`,e,n)}),i(`toBe`,function(e){let t=this._obj,n=Object.is(t,e),i=``;return n||(_T(t,e,[...r,VT,GT,qT,KT],!0)?i=`toStrictEqual`:_T(t,e,[...r,VT])&&(i=`toEqual`)),this.assert(n,JT(i),`expected #{this} not to be #{exp} // Object.is equality`,e,t)}),i(`toMatchObject`,function(e){let i=this._obj,a=_T(i,e,[...r,VT,WT]),o=t.flag(this,`negate`),{subset:s,stripped:c}=ZT(i,e,r);if(a&&o||!a&&!o){let r=t.getMessage(this,[a,`expected #{this} to match object #{exp}`,`expected #{this} to not match object #{exp}`,e,s,!1]);throw new n(c===0?r:`${r}
|
|
274
|
+
(${c} matching ${c===1?`property`:`properties`} omitted from actual)`,{showDiff:!0,expected:e,actual:s})}}),i(`toMatch`,function(e){let t=this._obj;if(typeof t!=`string`)throw TypeError(`.toMatch() expects to receive a string, but got ${typeof t}`);return this.assert(typeof e==`string`?t.includes(e):t.match(e),`expected #{this} to match #{exp}`,`expected #{this} not to match #{exp}`,e,t)}),i(`toContain`,function(e){let n=this._obj;if(typeof Node<`u`&&n instanceof Node){if(!(e instanceof Node))throw TypeError(`toContain() expected a DOM node as the argument, but got ${typeof e}`);return this.assert(n.contains(e),`expected #{this} to contain element #{exp}`,`expected #{this} not to contain element #{exp}`,e,n)}if(typeof DOMTokenList<`u`&&n instanceof DOMTokenList){zh(e,`class name`,[`string`]);let r=t.flag(this,`negate`)?n.value.replace(e,``).trim():`${n.value} ${e}`;return this.assert(n.contains(e),`expected "${n.value}" to contain "${e}"`,`expected "${n.value}" not to contain "${e}"`,r,n.value)}return typeof n==`string`&&typeof e==`string`?this.assert(n.includes(e),`expected #{this} to contain #{exp}`,`expected #{this} not to contain #{exp}`,e,n):(n!=null&&typeof n!=`string`&&t.flag(this,`object`,Array.from(n)),this.contain(e))}),i(`toContainEqual`,function(e){let n=t.flag(this,`object`),i=Array.from(n).findIndex(t=>_T(t,e,r));this.assert(i!==-1,`expected #{this} to deep equally contain #{exp}`,`expected #{this} to not deep equally contain #{exp}`,e)}),i(`toBeTruthy`,function(){let e=t.flag(this,`object`);this.assert(!!e,`expected #{this} to be truthy`,`expected #{this} to not be truthy`,!0,e)}),i(`toBeFalsy`,function(){let e=t.flag(this,`object`);this.assert(!e,`expected #{this} to be falsy`,`expected #{this} to not be falsy`,!1,e)}),i(`toBeGreaterThan`,function(e){let t=this._obj;return zh(t,`actual`,[`number`,`bigint`]),zh(e,`expected`,[`number`,`bigint`]),this.assert(t>e,`expected ${t} to be greater than ${e}`,`expected ${t} to be not greater than ${e}`,e,t,!1)}),i(`toBeGreaterThanOrEqual`,function(e){let t=this._obj;return zh(t,`actual`,[`number`,`bigint`]),zh(e,`expected`,[`number`,`bigint`]),this.assert(t>=e,`expected ${t} to be greater than or equal to ${e}`,`expected ${t} to be not greater than or equal to ${e}`,e,t,!1)}),i(`toBeLessThan`,function(e){let t=this._obj;return zh(t,`actual`,[`number`,`bigint`]),zh(e,`expected`,[`number`,`bigint`]),this.assert(t<e,`expected ${t} to be less than ${e}`,`expected ${t} to be not less than ${e}`,e,t,!1)}),i(`toBeLessThanOrEqual`,function(e){let t=this._obj;return zh(t,`actual`,[`number`,`bigint`]),zh(e,`expected`,[`number`,`bigint`]),this.assert(t<=e,`expected ${t} to be less than or equal to ${e}`,`expected ${t} to be not less than or equal to ${e}`,e,t,!1)}),i(`toBeNaN`,function(){let e=t.flag(this,`object`);this.assert(Number.isNaN(e),`expected #{this} to be NaN`,`expected #{this} not to be NaN`,NaN,e)}),i(`toBeUndefined`,function(){let e=t.flag(this,`object`);this.assert(e===void 0,`expected #{this} to be undefined`,`expected #{this} not to be undefined`,void 0,e)}),i(`toBeNull`,function(){let e=t.flag(this,`object`);this.assert(e===null,`expected #{this} to be null`,`expected #{this} not to be null`,null,e)}),i(`toBeDefined`,function(){let e=t.flag(this,`object`);this.assert(typeof e<`u`,`expected #{this} to be defined`,`expected #{this} to be undefined`,e)}),i(`toBeTypeOf`,function(e){let t=typeof this._obj,n=e===t;return this.assert(n,`expected #{this} to be type of #{exp}`,`expected #{this} not to be type of #{exp}`,e,t)}),i(`toBeInstanceOf`,function(e){return this.instanceOf(e)}),i(`toHaveLength`,function(e){return this.have.length(e)}),i(`toHaveProperty`,function(...e){Array.isArray(e[0])&&(e[0]=e[0].map(e=>String(e).replace(/([.[\]])/g,`\\$1`)).join(`.`));let n=this._obj,[i,a]=e,{value:o,exists:s}=Object.prototype.hasOwnProperty.call(n,i)?{value:n[i],exists:!0}:t.getPathInfo(n,i),c=s&&(e.length===1||_T(a,o,r)),l=e.length===1?``:` with value ${t.objDisplay(a)}`;return this.assert(c,`expected #{this} to have property "${i}"${l}`,`expected #{this} to not have property "${i}"${l}`,a,s?o:void 0)}),i(`toBeCloseTo`,function(e,t=2){let n=this._obj,r=!1,i=0,a=0;return e===1/0&&n===1/0||e===-1/0&&n===-1/0?r=!0:(i=10**-t/2,a=Math.abs(n-e),r=a<i),this.assert(r,`expected #{this} to be close to #{exp}, received difference is ${a}, but expected ${i}`,`expected #{this} to not be close to #{exp}, received difference is ${a}, but expected ${i}`,e,n,!1)});function a(e){if(!qw(e._obj))throw TypeError(`${t.inspect(e._obj)} is not a spy or a call to a spy!`)}function o(e){return a(e),e._obj}i([`toHaveBeenCalledTimes`,`toBeCalledTimes`],function(e){let t=o(this),n=t.getMockName(),r=t.mock.calls.length;return this.assert(r===e,`expected "${n}" to be called #{exp} times, but got ${r} times`,`expected "${n}" to not be called #{exp} times`,e,r,!1)}),i(`toHaveBeenCalledOnce`,function(){let e=o(this),t=e.getMockName(),n=e.mock.calls.length;return this.assert(n===1,`expected "${t}" to be called once, but got ${n} times`,`expected "${t}" to not be called once`,1,n,!1)}),i([`toHaveBeenCalled`,`toBeCalled`],function(){let e=o(this),r=e.getMockName(),i=e.mock.calls.length,a=i>0,s=t.flag(this,`negate`),c=t.getMessage(this,[a,`expected "${r}" to be called at least once`,`expected "${r}" to not be called at all, but actually been called ${i} times`,!0,a]);if(a&&s&&(c=hE(e,c)),a&&s||!a&&!s)throw new n(c)});function s(e,t){return e.length===t.length&&e.every((e,n)=>_T(e,t[n],[...r,VT]))}i([`toHaveBeenCalledWith`,`toBeCalledWith`],function(...e){let r=o(this),i=r.getMockName(),a=r.mock.calls.some(t=>s(t,e)),c=t.flag(this,`negate`),l=t.getMessage(this,[a,`expected "${i}" to be called with arguments: #{exp}`,`expected "${i}" to not be called with arguments: #{exp}`,e]);if(a&&c||!a&&!c)throw new n(hE(r,l,e))}),i(`toHaveBeenCalledExactlyOnceWith`,function(...e){let r=o(this),i=r.getMockName(),a=r.mock.calls.length,c=r.mock.calls.some(t=>s(t,e))&&a===1,l=t.flag(this,`negate`),u=t.getMessage(this,[c,`expected "${i}" to be called once with arguments: #{exp}`,`expected "${i}" to not be called once with arguments: #{exp}`,e]);if(c&&l||!c&&!l)throw new n(hE(r,u,e))}),i([`toHaveBeenNthCalledWith`,`nthCalledWith`],function(e,...t){let n=o(this),r=n.getMockName(),i=n.mock.calls[e-1],a=n.mock.calls.length,c=e<=a;this.assert(i&&s(i,t),`expected ${mE(e)} "${r}" call to have been called with #{exp}${c?``:`, but called only ${a} times`}`,`expected ${mE(e)} "${r}" call to not have been called with #{exp}`,t,i,c)}),i([`toHaveBeenLastCalledWith`,`lastCalledWith`],function(...e){let t=o(this),n=t.getMockName(),r=t.mock.calls[t.mock.calls.length-1];this.assert(r&&s(r,e),`expected last "${n}" call to have been called with #{exp}`,`expected last "${n}" call to not have been called with #{exp}`,e,r)});function c(e,t,n){let r=e.mock.invocationCallOrder,i=t.mock.invocationCallOrder;return r.length===0?!n:i.length===0?!1:r[0]<i[0]}i([`toHaveBeenCalledBefore`],function(e,n=!0){let r=o(this);if(!qw(e))throw TypeError(`${t.inspect(e)} is not a spy or a call to a spy`);this.assert(c(r,e,n),`expected "${r.getMockName()}" to have been called before "${e.getMockName()}"`,`expected "${r.getMockName()}" to not have been called before "${e.getMockName()}"`,e,r)}),i([`toHaveBeenCalledAfter`],function(e,n=!0){let r=o(this);if(!qw(e))throw TypeError(`${t.inspect(e)} is not a spy or a call to a spy`);this.assert(c(e,r,n),`expected "${r.getMockName()}" to have been called after "${e.getMockName()}"`,`expected "${r.getMockName()}" to not have been called after "${e.getMockName()}"`,e,r)}),i([`toThrow`,`toThrowError`],function(e){if(typeof e==`string`||typeof e>`u`||e instanceof RegExp)return this.throws(e===``?/^$/:e);let i=this._obj,a=t.flag(this,`promise`),o=t.flag(this,`negate`),s=null;if(a===`rejects`)s=i;else if(a===`resolves`&&typeof i!=`function`){if(o)return;throw new n(t.flag(this,`message`)||`expected promise to throw an error, but it didn't`,{showDiff:!1},t.flag(this,`ssfi`))}else{let e=!1;try{i()}catch(t){e=!0,s=t}if(!e&&!o)throw new n(t.flag(this,`message`)||`expected function to throw an error, but it didn't`,{showDiff:!1},t.flag(this,`ssfi`))}if(typeof e==`function`){let t=e.name||e.prototype.constructor.name;return this.assert(s&&s instanceof e,`expected error to be instance of ${t}`,`expected error not to be instance of ${t}`,e,s)}if(e instanceof Error){let t=_T(s,e,[...r,VT]);return this.assert(t,`expected a thrown error to be #{exp}`,`expected a thrown error not to be #{exp}`,e,s)}if(typeof e==`object`&&`asymmetricMatch`in e&&typeof e.asymmetricMatch==`function`){let t=e;return this.assert(s&&t.asymmetricMatch(s),`expected error to match asymmetric matcher`,`expected error not to match asymmetric matcher`,t,s)}throw Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof e}"`)}),[{name:`toHaveResolved`,condition:e=>e.mock.settledResults.length>0&&e.mock.settledResults.some(({type:e})=>e===`fulfilled`),action:`resolved`},{name:[`toHaveReturned`,`toReturn`],condition:e=>e.mock.calls.length>0&&e.mock.results.some(({type:e})=>e!==`throw`),action:`called`}].forEach(({name:e,condition:t,action:n})=>{i(e,function(){let e=o(this),r=e.getMockName(),i=t(e);this.assert(i,`expected "${r}" to be successfully ${n} at least once`,`expected "${r}" to not be successfully ${n}`,i,!i,!1)})}),[{name:`toHaveResolvedTimes`,condition:(e,t)=>e.mock.settledResults.reduce((e,{type:t})=>t===`fulfilled`?++e:e,0)===t,action:`resolved`},{name:[`toHaveReturnedTimes`,`toReturnTimes`],condition:(e,t)=>e.mock.results.reduce((e,{type:t})=>t===`throw`?e:++e,0)===t,action:`called`}].forEach(({name:e,condition:t,action:n})=>{i(e,function(e){let r=o(this),i=r.getMockName(),a=t(r,e);this.assert(a,`expected "${i}" to be successfully ${n} ${e} times`,`expected "${i}" to not be successfully ${n} ${e} times`,`expected resolved times: ${e}`,`received resolved times: ${a}`,!1)})}),[{name:`toHaveResolvedWith`,condition:(e,t)=>e.mock.settledResults.some(({type:e,value:n})=>e===`fulfilled`&&_T(t,n)),action:`resolve`},{name:[`toHaveReturnedWith`,`toReturnWith`],condition:(e,t)=>e.mock.results.some(({type:e,value:n})=>e===`return`&&_T(t,n)),action:`return`}].forEach(({name:e,condition:r,action:a})=>{i(e,function(e){let i=o(this),s=r(i,e),c=t.flag(this,`negate`);if(s&&c||!s&&!c){let r=i.getMockName(),o=t.getMessage(this,[s,`expected "${r}" to ${a} with: #{exp} at least once`,`expected "${r}" to not ${a} with: #{exp}`,e]);throw new n(gE(i,a===`return`?i.mock.results:i.mock.settledResults,o,e))}})}),[{name:`toHaveLastResolvedWith`,condition:(e,t)=>{let n=e.mock.settledResults[e.mock.settledResults.length-1];return n&&n.type===`fulfilled`&&_T(n.value,t)},action:`resolve`},{name:[`toHaveLastReturnedWith`,`lastReturnedWith`],condition:(e,t)=>{let n=e.mock.results[e.mock.results.length-1];return n&&n.type===`return`&&_T(n.value,t)},action:`return`}].forEach(({name:e,condition:t,action:n})=>{i(e,function(e){let r=o(this),i=n===`return`?r.mock.results:r.mock.settledResults,a=i[i.length-1],s=r.getMockName();this.assert(t(r,e),`expected last "${s}" call to ${n} #{exp}`,`expected last "${s}" call to not ${n} #{exp}`,e,a?.value)})}),[{name:`toHaveNthResolvedWith`,condition:(e,t,n)=>{let r=e.mock.settledResults[t-1];return r&&r.type===`fulfilled`&&_T(r.value,n)},action:`resolve`},{name:[`toHaveNthReturnedWith`,`nthReturnedWith`],condition:(e,t,n)=>{let r=e.mock.results[t-1];return r&&r.type===`return`&&_T(r.value,n)},action:`return`}].forEach(({name:e,condition:t,action:n})=>{i(e,function(e,r){let i=o(this),a=i.getMockName(),s=(n===`return`?i.mock.results:i.mock.settledResults)[e-1],c=`${mE(e)} call`;this.assert(t(i,e,r),`expected ${c} "${a}" call to ${n} #{exp}`,`expected ${c} "${a}" call to not ${n} #{exp}`,r,s?.value)})}),i(`withContext`,function(e){for(let n in e)t.flag(this,n,e[n]);return this}),t.addProperty(e.Assertion.prototype,`resolves`,function(){let r=Error(`resolves`);t.flag(this,`promise`,`resolves`),t.flag(this,`error`,r);let i=t.flag(this,`vitest-test`),a=t.flag(this,`object`);if(t.flag(this,`poll`))throw SyntaxError(`expect.poll() is not supported in combination with .resolves`);if(typeof a?.then!=`function`)throw TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof a}'.`);let o=new Proxy(this,{get:(s,c,l)=>{let u=Reflect.get(s,c,l);return typeof u==`function`?(...e)=>(t.flag(this,`_name`,c),uE(i,a.then(n=>(t.flag(this,`object`,n),u.call(this,...e)),e=>{let i=new n(`promise rejected "${t.inspect(e)}" instead of resolving`,{showDiff:!1});throw i.cause=e,i.stack=r.stack.replace(r.message,i.message),i}),lE(t,this,!!e.length),r)):u instanceof e.Assertion?o:u}});return o}),t.addProperty(e.Assertion.prototype,`rejects`,function(){let r=Error(`rejects`);t.flag(this,`promise`,`rejects`),t.flag(this,`error`,r);let i=t.flag(this,`vitest-test`),a=t.flag(this,`object`),o=typeof a==`function`?a():a;if(t.flag(this,`poll`))throw SyntaxError(`expect.poll() is not supported in combination with .rejects`);if(typeof o?.then!=`function`)throw TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof o}'.`);let s=new Proxy(this,{get:(a,c,l)=>{let u=Reflect.get(a,c,l);return typeof u==`function`?(...e)=>(t.flag(this,`_name`,c),uE(i,o.then(e=>{let i=new n(`promise resolved "${t.inspect(e)}" instead of rejecting`,{showDiff:!0,expected:Error(`rejected promise`),actual:e});throw i.stack=r.stack.replace(r.message,i.message),i},n=>(t.flag(this,`object`,n),u.call(this,...e))),lE(t,this,!!e.length),r)):u instanceof e.Assertion?s:u}});return s})};function mE(e){let t=e%10,n=e%100;return t===1&&n!==11?`${e}st`:t===2&&n!==12?`${e}nd`:t===3&&n!==13?`${e}rd`:`${e}th`}function hE(e,t,n){return e.mock.calls.length&&(t+=Ew.gray(`
|
|
275
|
+
|
|
276
|
+
Received:
|
|
277
|
+
|
|
278
|
+
${e.mock.calls.map((t,r)=>{let i=Ew.bold(` ${mE(r+1)} ${e.getMockName()} call:
|
|
279
|
+
|
|
280
|
+
`);return n?i+=a_(n,t,{omitAnnotationLines:!0}):i+=Ph(t).split(`
|
|
281
|
+
`).map(e=>` ${e}`).join(`
|
|
282
|
+
`),i+=`
|
|
283
|
+
`,i}).join(`
|
|
284
|
+
`)}`)),t+=Ew.gray(`
|
|
285
|
+
|
|
286
|
+
Number of calls: ${Ew.bold(e.mock.calls.length)}
|
|
287
|
+
`),t}function gE(e,t,n,r){return t.length&&(n+=Ew.gray(`
|
|
288
|
+
|
|
289
|
+
Received:
|
|
290
|
+
|
|
291
|
+
${t.map((t,n)=>{let i=Ew.bold(` ${mE(n+1)} ${e.getMockName()} call return:
|
|
292
|
+
|
|
293
|
+
`);return r?i+=a_(r,t.value,{omitAnnotationLines:!0}):i+=Ph(t).split(`
|
|
294
|
+
`).map(e=>` ${e}`).join(`
|
|
295
|
+
`),i+=`
|
|
296
|
+
`,i}).join(`
|
|
297
|
+
`)}`)),n+=Ew.gray(`
|
|
298
|
+
|
|
299
|
+
Number of calls: ${Ew.bold(e.mock.calls.length)}
|
|
300
|
+
`),n}function _E(e,t){let n=e._obj,r=q_.flag(e,`negate`),i=q_.flag(e,`promise`)||``,a={...mT(),diff:a_,stringify:Ph,iterableEquality:VT,subsetEquality:WT};return{state:{...QT(t),customTesters:gT(),isNot:r,utils:a,promise:i,equals:_T,suppressedErrors:[],soft:q_.flag(e,`soft`),poll:q_.flag(e,`poll`)},isNot:r,obj:n}}var vE=class extends Error{constructor(e,t,n){super(e),this.actual=t,this.expected=n}};function yE(e,t,n){return(r,i)=>{Object.entries(n).forEach(([n,r])=>{function a(...e){let{state:n,isNot:i,obj:a}=_E(this,t),o=r.call(n,a,...e);if(o&&typeof o==`object`&&typeof o.then==`function`)return o.then(({pass:e,message:t,actual:n,expected:r})=>{if(e&&i||!e&&!i)throw new vE(t(),n,r)});let{pass:s,message:c,actual:l,expected:u}=o;if(s&&i||!s&&!i)throw new vE(c(),l,u)}let o=fE(i,n,a);i.addMethod(globalThis[eT].matchers,n,o),i.addMethod(e.Assertion.prototype,n,o);class s extends eE{constructor(e=!1,...t){super(t,e)}asymmetricMatch(e){let{pass:n}=r.call(this.getMatcherContext(t),e,...this.sample);return this.inverse?!n:n}toString(){return`${this.inverse?`not.`:``}${n}`}getExpectedType(){return`any`}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map(e=>Ph(e)).join(`, `)}>`}}let c=(...e)=>new s(!1,...e);Object.defineProperty(t,n,{configurable:!0,enumerable:!0,value:c,writable:!0}),Object.defineProperty(t.not,n,{configurable:!0,enumerable:!0,value:(...e)=>new s(!0,...e),writable:!0}),Object.defineProperty(globalThis[nT],n,{configurable:!0,enumerable:!0,value:c,writable:!0})})}}var bE=(e,t)=>{t.addMethod(e.expect,`extend`,(t,n)=>{Yb(yE(e,t,n))})};function xE(){Yb(bE),Yb(pE),Yb(cE);let e=((t,n)=>{let{assertionCalls:r}=QT(e);return $T({assertionCalls:r+1,soft:!1},e),Ub(t,n)});Object.assign(e,Ub),e.getState=()=>QT(e),e.setState=t=>$T(t,e),e.extend=t=>Ub.extend(e,t),e.soft=(...t)=>{let n=e(...t);return e.setState({soft:!0}),n},e.extend(rT),e.unreachable=e=>{X.fail(`expected${e?` "${e}" `:` `}not to be reached`)};function t(n){let r=()=>Error(`expected number of assertions to be ${n}, but got ${e.getState().assertionCalls}`);`captureStackTrace`in Error&&typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(r(),t),e.setState({expectedAssertionsNumber:n,expectedAssertionsNumberErrorGen:r})}function n(){let t=Error(`expected any number of assertion, but got none`);`captureStackTrace`in Error&&typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(t,n),e.setState({isExpectingAssertions:!0,isExpectingAssertionsError:t})}return $T({assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null},e),q_.addMethod(e,`assertions`,t),q_.addMethod(e,`hasAssertions`,n),e.extend(Xb),e}var SE=xE();Object.defineProperty(globalThis,tT,{value:SE,writable:!0,configurable:!0});function CE(e,t,n){Object.defineProperty(e,t,n)}var wE=Symbol.for(`tinyspy:spy`),TE=e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},EE=e=>(CE(e,wE,{value:{reset:()=>TE(e[wE])}}),e[wE]),DE=e=>e[wE]||EE(e),OE=new Set;function kE(e){return OE.add(e),()=>void OE.delete(e)}var AE=(...e)=>ME(Jw(...e));function jE(e){return ME(e?Zw(e):Zw())}function ME(e){let t=NE(e),n=t.mockImplementation.bind(null);return t.mockImplementation=e=>NE(n(e)),t}function NE(e){let t=DE(e),n=t.impl;return t.willCall(function(...t){return OE.forEach(n=>n(e,t)),n?.apply(this,t)}),e}function PE(){Kw.forEach(e=>e.mockClear())}function FE(){Kw.forEach(e=>e.mockReset())}function IE(){Kw.forEach(e=>e.mockRestore())}function LE(e,t={}){return e}var RE={};S(RE,{buildQueries:()=>Rk,configure:()=>RO,createEvent:()=>xj,findAllByAltText:()=>PA,findAllByDisplayValue:()=>wA,findAllByLabelText:()=>Jk,findAllByPlaceholderText:()=>oA,findAllByRole:()=>tj,findAllByTestId:()=>dj,findAllByText:()=>hA,findAllByTitle:()=>WA,findByAltText:()=>FA,findByDisplayValue:()=>TA,findByLabelText:()=>Yk,findByPlaceholderText:()=>sA,findByRole:()=>nj,findByTestId:()=>fj,findByText:()=>gA,findByTitle:()=>GA,fireEvent:()=>bj,getAllByAltText:()=>MA,getAllByDisplayValue:()=>SA,getAllByLabelText:()=>Xk,getAllByPlaceholderText:()=>iA,getAllByRole:()=>$A,getAllByTestId:()=>lj,getAllByText:()=>pA,getAllByTitle:()=>HA,getByAltText:()=>NA,getByDisplayValue:()=>CA,getByLabelText:()=>Zk,getByPlaceholderText:()=>aA,getByRole:()=>ej,getByTestId:()=>uj,getByText:()=>mA,getByTitle:()=>UA,getConfig:()=>zO,getDefaultNormalizer:()=>YO,getElementError:()=>Ok,getMultipleElementsFoundError:()=>kk,getNodeText:()=>QO,getQueriesForElement:()=>mj,getRoles:()=>ik,getSuggestedQuery:()=>wk,isInaccessible:()=>tk,logDOM:()=>FO,logRoles:()=>ok,makeFindQuery:()=>Fk,makeGetAllQuery:()=>Pk,makeSingleQuery:()=>Mk,prettyDOM:()=>PO,prettyFormat:()=>zE,queries:()=>pj,queryAllByAltText:()=>AA,queryAllByAttribute:()=>Ak,queryAllByDisplayValue:()=>bA,queryAllByLabelText:()=>Qk,queryAllByPlaceholderText:()=>nA,queryAllByRole:()=>ZA,queryAllByTestId:()=>sj,queryAllByText:()=>dA,queryAllByTitle:()=>BA,queryByAltText:()=>jA,queryByAttribute:()=>jk,queryByDisplayValue:()=>xA,queryByLabelText:()=>Kk,queryByPlaceholderText:()=>rA,queryByRole:()=>QA,queryByTestId:()=>cj,queryByText:()=>fA,queryByTitle:()=>VA,queryHelpers:()=>zk,screen:()=>Dj,waitFor:()=>Dk,waitForElementToBeRemoved:()=>_j,within:()=>mj,wrapAllByQueryWithSuggestion:()=>Lk,wrapSingleQueryWithSuggestion:()=>Ik});var zE=w(Fi()),BE=Object.prototype.toString;function VE(e){return typeof e==`function`||BE.call(e)===`[object Function]`}function HE(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var UE=2**53-1;function WE(e){var t=HE(e);return Math.min(Math.max(t,0),UE)}function GE(e,t){var n=Array,r=Object(e);if(e==null)throw TypeError(`Array.from requires an array-like object - not null or undefined`);if(typeof t<`u`&&!VE(t))throw TypeError(`Array.from: when provided, the second argument must be a function`);for(var i=WE(r.length),a=VE(n)?Object(new n(i)):Array(i),o=0,s;o<i;)s=r[o],t?a[o]=t(s,o):a[o]=s,o+=1;return a.length=i,a}function KE(e){"@babel/helpers - typeof";return KE=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},KE(e)}function qE(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function JE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,ZE(r.key),r)}}function YE(e,t,n){return t&&JE(e.prototype,t),n&&JE(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function XE(e,t,n){return t=ZE(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZE(e){var t=QE(e,`string`);return KE(t)===`symbol`?t:String(t)}function QE(e,t){if(KE(e)!==`object`||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(KE(r)!==`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var $E=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];qE(this,e),XE(this,`items`,void 0),this.items=t}return YE(e,[{key:`add`,value:function(e){return this.has(e)===!1&&this.items.push(e),this}},{key:`clear`,value:function(){this.items=[]}},{key:`delete`,value:function(e){var t=this.items.length;return this.items=this.items.filter(function(t){return t!==e}),t!==this.items.length}},{key:`forEach`,value:function(e){var t=this;this.items.forEach(function(n){e(n,n,t)})}},{key:`has`,value:function(e){return this.items.indexOf(e)!==-1}},{key:`size`,get:function(){return this.items.length}}]),e})(),eD=typeof Set>`u`?Set:$E;function tD(e){return e.localName??e.tagName.toLowerCase()}var nD={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`},rD={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 iD(e,t){return[`aria-atomic`,`aria-busy`,`aria-controls`,`aria-current`,`aria-describedby`,`aria-details`,`aria-dropeffect`,`aria-flowto`,`aria-grabbed`,`aria-hidden`,`aria-keyshortcuts`,`aria-label`,`aria-labelledby`,`aria-live`,`aria-owns`,`aria-relevant`,`aria-roledescription`].some(function(n){var r;return e.hasAttribute(n)&&!((r=rD[t])!=null&&r.has(n))})}function aD(e,t){return iD(e,t)}function oD(e){var t=cD(e);if(t===null||t===`presentation`){var n=sD(e);if(t!==`presentation`||aD(e,n||``))return n}return t}function sD(e){var t=nD[tD(e)];if(t!==void 0)return t;switch(tD(e)){case`a`:case`area`:case`link`:if(e.hasAttribute(`href`))return`link`;break;case`img`:return e.getAttribute(`alt`)===``&&!aD(e,`img`)?`presentation`:`img`;case`input`:var n=e.type;switch(n){case`button`:case`image`:case`reset`:case`submit`:return`button`;case`checkbox`:case`radio`:return n;case`range`:return`slider`;case`email`:case`tel`:case`text`:case`url`:return e.hasAttribute(`list`)?`combobox`:`textbox`;case`search`:return e.hasAttribute(`list`)?`combobox`:`searchbox`;case`number`:return`spinbutton`;default:return null}case`select`:return e.hasAttribute(`multiple`)||e.size>1?`listbox`:`combobox`}return null}function cD(e){var t=e.getAttribute(`role`);if(t!==null){var n=t.trim().split(` `)[0];if(n.length>0)return n}return null}function lD(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function uD(e){return lD(e)&&tD(e)===`caption`}function dD(e){return lD(e)&&tD(e)===`input`}function fD(e){return lD(e)&&tD(e)===`optgroup`}function pD(e){return lD(e)&&tD(e)===`select`}function mD(e){return lD(e)&&tD(e)===`table`}function hD(e){return lD(e)&&tD(e)===`textarea`}function gD(e){var t=(e.ownerDocument===null?e:e.ownerDocument).defaultView;if(t===null)throw TypeError(`no window available`);return t}function _D(e){return lD(e)&&tD(e)===`fieldset`}function vD(e){return lD(e)&&tD(e)===`legend`}function yD(e){return lD(e)&&tD(e)===`slot`}function bD(e){return lD(e)&&e.ownerSVGElement!==void 0}function xD(e){return lD(e)&&tD(e)===`svg`}function SD(e){return bD(e)&&tD(e)===`title`}function CD(e,t){if(lD(e)&&e.hasAttribute(t)){var n=e.getAttribute(t).split(` `),r=e.getRootNode?e.getRootNode():e.ownerDocument;return n.map(function(e){return r.getElementById(e)}).filter(function(e){return e!==null})}return[]}function wD(e,t){return lD(e)?t.indexOf(oD(e))!==-1:!1}function TD(e){return e.trim().replace(/\s\s+/g,` `)}function ED(e,t){if(!lD(e))return!1;if(e.hasAttribute(`hidden`)||e.getAttribute(`aria-hidden`)===`true`)return!0;var n=t(e);return n.getPropertyValue(`display`)===`none`||n.getPropertyValue(`visibility`)===`hidden`}function DD(e){return wD(e,[`button`,`combobox`,`listbox`,`textbox`])||OD(e,`range`)}function OD(e,t){if(!lD(e))return!1;switch(t){case`range`:return wD(e,[`meter`,`progressbar`,`scrollbar`,`slider`,`spinbutton`]);default:throw TypeError(`No knowledge about abstract role '${t}'. This is likely a bug :(`)}}function kD(e,t){var n=GE(e.querySelectorAll(t));return CD(e,`aria-owns`).forEach(function(e){n.push.apply(n,GE(e.querySelectorAll(t)))}),n}function AD(e){return pD(e)?e.selectedOptions||kD(e,`[selected]`):kD(e,`[aria-selected="true"]`)}function jD(e){return wD(e,[`none`,`presentation`])}function MD(e){return uD(e)}function ND(e){return wD(e,[`button`,`cell`,`checkbox`,`columnheader`,`gridcell`,`heading`,`label`,`legend`,`link`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`row`,`rowheader`,`switch`,`tab`,`tooltip`,`treeitem`])}function PD(e){return!1}function FD(e){return dD(e)||hD(e)?e.value:e.textContent||``}function ID(e){var t=e.getPropertyValue(`content`);return/^["'].*["']$/.test(t)?t.slice(1,-1):``}function LD(e){var t=tD(e);return t===`button`||t===`input`&&e.getAttribute(`type`)!==`hidden`||t===`meter`||t===`output`||t===`progress`||t===`select`||t===`textarea`}function RD(e){if(LD(e))return e;var t=null;return e.childNodes.forEach(function(e){if(t===null&&lD(e)){var n=RD(e);n!==null&&(t=n)}}),t}function zD(e){if(e.control!==void 0)return e.control;var t=e.getAttribute(`for`);return t===null?RD(e):e.ownerDocument.getElementById(t)}function BD(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return GE(t);if(!LD(e))return null;var n=e.ownerDocument;return GE(n.querySelectorAll(`label`)).filter(function(t){return zD(t)===e})}function VD(e){var t=e.assignedNodes();return t.length===0?GE(e.childNodes):t}function HD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new eD,r=gD(e),i=t.compute,a=i===void 0?`name`:i,o=t.computedStyleSupportsPseudoElements,s=o===void 0?t.getComputedStyle!==void 0:o,c=t.getComputedStyle,l=c===void 0?r.getComputedStyle.bind(r):c,u=t.hidden,d=u===void 0?!1:u;function f(e,t){var n=``;if(lD(e)&&s&&(n=`${ID(l(e,`::before`))} ${n}`),(yD(e)?VD(e):GE(e.childNodes).concat(CD(e,`aria-owns`))).forEach(function(e){var r=g(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),i=(lD(e)?l(e).getPropertyValue(`display`):`inline`)===`inline`?``:` `;n+=`${i}${r}${i}`}),lD(e)&&s){var r=ID(l(e,`::after`));n=`${n} ${r}`}return n.trim()}function p(e,t){var r=e.getAttributeNode(t);return r!==null&&!n.has(r)&&r.value.trim()!==``?(n.add(r),r.value):null}function m(e){return lD(e)?p(e,`title`):null}function h(e){if(!lD(e))return null;if(_D(e)){n.add(e);for(var t=GE(e.childNodes),r=0;r<t.length;r+=1){var i=t[r];if(vD(i))return g(i,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(mD(e)){n.add(e);for(var a=GE(e.childNodes),o=0;o<a.length;o+=1){var s=a[o];if(uD(s))return g(s,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(xD(e)){n.add(e);for(var c=GE(e.childNodes),l=0;l<c.length;l+=1){var u=c[l];if(SD(u))return u.textContent}return null}else if(tD(e)===`img`||tD(e)===`area`){var d=p(e,`alt`);if(d!==null)return d}else if(fD(e)){var m=p(e,`label`);if(m!==null)return m}if(dD(e)&&(e.type===`button`||e.type===`submit`||e.type===`reset`)){var h=p(e,`value`);if(h!==null)return h;if(e.type===`submit`)return`Submit`;if(e.type===`reset`)return`Reset`}var _=BD(e);if(_!==null&&_.length!==0)return n.add(e),GE(_).map(function(e){return g(e,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(e){return e.length>0}).join(` `);if(dD(e)&&e.type===`image`){var v=p(e,`alt`);if(v!==null)return v;var y=p(e,`title`);return y===null?`Submit Query`:y}if(wD(e,[`button`])){var b=f(e,{isEmbeddedInLabel:!1,isReferenced:!1});if(b!==``)return b}return null}function g(e,t){if(n.has(e))return``;if(!d&&ED(e,l)&&!t.isReferenced)return n.add(e),``;var r=lD(e)?e.getAttributeNode(`aria-labelledby`):null,i=r!==null&&!n.has(r)?CD(e,`aria-labelledby`):[];if(a===`name`&&!t.isReferenced&&i.length>0)return n.add(r),i.map(function(e){return g(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(` `);var o=t.recursion&&DD(e)&&a===`name`;if(!o){var s=(lD(e)&&e.getAttribute(`aria-label`)||``).trim();if(s!==``&&a===`name`)return n.add(e),s;if(!jD(e)){var c=h(e);if(c!==null)return n.add(e),c}}if(wD(e,[`menu`]))return n.add(e),``;if(o||t.isEmbeddedInLabel||t.isReferenced){if(wD(e,[`combobox`,`listbox`])){n.add(e);var u=AD(e);return u.length===0?dD(e)?e.value:``:GE(u).map(function(e){return g(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(` `)}if(OD(e,`range`))return n.add(e),e.hasAttribute(`aria-valuetext`)?e.getAttribute(`aria-valuetext`):e.hasAttribute(`aria-valuenow`)?e.getAttribute(`aria-valuenow`):e.getAttribute(`value`)||``;if(wD(e,[`textbox`]))return n.add(e),FD(e)}if(ND(e)||lD(e)&&t.isReferenced||MD(e)||PD(e)){var p=f(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1});if(p!==``)return n.add(e),p}if(e.nodeType===e.TEXT_NODE)return n.add(e),e.textContent||``;if(t.recursion)return n.add(e),f(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1});var _=m(e);return _===null?(n.add(e),``):(n.add(e),_)}return TD(g(e,{isEmbeddedInLabel:!1,isReferenced:a===`description`,recursion:!1}))}function UD(e){"@babel/helpers - typeof";return UD=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},UD(e)}function WD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function GD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?WD(Object(n),!0).forEach(function(t){KD(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function KD(e,t,n){return t=qD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qD(e){var t=JD(e,`string`);return UD(t)===`symbol`?t:String(t)}function JD(e,t){if(UD(e)!==`object`||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(UD(r)!==`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function YD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=CD(e,`aria-describedby`).map(function(e){return HD(e,GD(GD({},t),{},{compute:`description`}))}).join(` `);if(n===``){var r=e.getAttribute(`title`);n=r===null?``:r}return n}function XD(e){return wD(e,[`caption`,`code`,`deletion`,`emphasis`,`generic`,`insertion`,`paragraph`,`presentation`,`strong`,`subscript`,`superscript`])}function ZD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return XD(e)?``:HD(e,t)}var QD=w(kn()),$D=w(Ii());function eO(e){return e.replace(/</g,`<`).replace(/>/g,`>`)}var tO=(e,t,n,r,i,a,o)=>{let s=r+n.indent,c=n.colors;return e.map(e=>{let l=t[e],u=o(l,n,s,i,a);return typeof l!=`string`&&(u.indexOf(`
|
|
301
|
+
`)!==-1&&(u=n.spacingOuter+s+u+n.spacingOuter+r),u=`{`+u+`}`),n.spacingInner+r+c.prop.open+e+c.prop.close+`=`+c.value.open+u+c.value.close}).join(``)},nO=3,rO=(e,t,n,r,i,a)=>e.map(e=>{let o=typeof e==`string`?iO(e,t):a(e,t,n,r,i);return o===``&&typeof e==`object`&&e&&e.nodeType!==nO?``:t.spacingOuter+n+o}).join(``),iO=(e,t)=>{let n=t.colors.content;return n.open+eO(e)+n.close},aO=(e,t)=>{let n=t.colors.comment;return n.open+`<!--`+eO(e)+`-->`+n.close},oO=(e,t,n,r,i)=>{let a=r.colors.tag;return a.open+`<`+e+(t&&a.close+t+r.spacingOuter+i+a.open)+(n?`>`+a.close+n+r.spacingOuter+i+a.open+`</`+e:(t&&!r.min?``:` `)+`/`)+`>`+a.close},sO=(e,t)=>{let n=t.colors.tag;return n.open+`<`+e+n.close+` …`+n.open+` />`+n.close},cO=1,lO=3,uO=8,dO=11,fO=/^((HTML|SVG)\w*)?Element$/,pO=e=>{let{tagName:t}=e;return!!(typeof t==`string`&&t.includes(`-`)||typeof e.hasAttribute==`function`&&e.hasAttribute(`is`))},mO=e=>{let t=e.constructor.name,{nodeType:n}=e;return n===cO&&(fO.test(t)||pO(e))||n===lO&&t===`Text`||n===uO&&t===`Comment`||n===dO&&t===`DocumentFragment`};function hO(e){return e.nodeType===lO}function gO(e){return e.nodeType===uO}function _O(e){return e.nodeType===dO}function vO(e){return{test:e=>{var t;return((e==null||(t=e.constructor)==null?void 0:t.name)||pO(e))&&mO(e)},serialize:(t,n,r,i,a,o)=>{if(hO(t))return iO(t.data,n);if(gO(t))return aO(t.data,n);let s=_O(t)?`DocumentFragment`:t.tagName.toLowerCase();return++i>n.maxDepth?sO(s,n):oO(s,tO(_O(t)?[]:Array.from(t.attributes).map(e=>e.name).sort(),_O(t)?{}:Array.from(t.attributes).reduce((e,t)=>(e[t.name]=t.value,e),{}),n,r+n.indent,i,a,o),rO(Array.prototype.slice.call(t.childNodes||t.children).filter(e),n,r+n.indent,i,a,o),n,r)}}}var yO=null,bO=null,xO=null;try{let e=module&&module.require;bO=e.call(module,`fs`).readFileSync,xO=e.call(module,`@babel/code-frame`).codeFrameColumns,yO=e.call(module,`picocolors`)}catch{}function SO(e){let t=e.indexOf(`(`)+1,n=e.indexOf(`)`),r=e.slice(t,n),i=r.split(`:`),[a,o,s]=[i[0],parseInt(i[1],10),parseInt(i[2],10)],c=``;try{c=bO(a,`utf-8`)}catch{return``}let l=xO(c,{start:{line:o,column:s}},{highlightCode:!0,linesBelow:0});return yO.dim(r)+`
|
|
302
|
+
`+l+`
|
|
303
|
+
`}function CO(){return!bO||!xO?``:SO(Error().stack.split(`
|
|
304
|
+
`).slice(1).find(e=>!e.includes(`node_modules/`)))}var wO=3;function TO(){return typeof jest<`u`&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,`clock`):!1}function EO(){if(typeof window>`u`)throw Error(`Could not find default container`);return window.document}function DO(e){if(e.defaultView)return e.defaultView;if(e.ownerDocument&&e.ownerDocument.defaultView)return e.ownerDocument.defaultView;if(e.window)return e.window;throw e.ownerDocument&&e.ownerDocument.defaultView===null?Error(`It looks like the window object is not available for the provided node.`):e.then instanceof Function?Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?"):Array.isArray(e)?Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?"):typeof e.debug==`function`&&typeof e.logTestingPlaygroundURL==`function`?Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?"):Error(`The given node is not an Element, the node type is: `+typeof e+`.`)}function OO(e){if(!e||typeof e.querySelector!=`function`||typeof e.querySelectorAll!=`function`)throw TypeError(`Expected container to be an Element, a Document or a DocumentFragment but got `+t(e)+`.`);function t(e){return typeof e==`object`?e===null?`null`:e.constructor.name:typeof e}}var kO=()=>{if(typeof process>`u`)return!1;let e;try{let t={}?.COLORS;t&&(e=JSON.parse(t))}catch{}return typeof e==`boolean`?e:process.versions!==void 0&&process.versions.node!==void 0},{DOMCollection:AO}=zE.plugins,jO=1,MO=8;function NO(e){return e.nodeType!==MO&&(e.nodeType!==jO||!e.matches(zO().defaultIgnore))}function PO(e,t,n){if(n===void 0&&(n={}),e||=EO().body,typeof t!=`number`&&(t=typeof process<`u`&&{}.DEBUG_PRINT_LIMIT||7e3),t===0)return``;e.documentElement&&(e=e.documentElement);let r=typeof e;if(r===`object`?r=e.constructor.name:e={},!(`outerHTML`in e))throw TypeError(`Expected an element or document but got `+r);let{filterNode:i=NO,...a}=n,o=zE.format(e,{plugins:[vO(i),AO],printFunctionName:!1,highlight:kO(),...a});return t!==void 0&&e.outerHTML.length>t?o.slice(0,t)+`...`:o}var FO=function(){let e=CO();console.log(e?PO(...arguments)+`
|
|
305
|
+
|
|
306
|
+
`+e:PO(...arguments))},IO={testIdAttribute:`data-testid`,asyncUtilTimeout:1e3,asyncWrapper:e=>e(),unstable_advanceTimersWrapper:e=>e(),eventWrapper:e=>e(),defaultHidden:!1,defaultIgnore:`script, style`,showOriginalStackTrace:!1,throwSuggestions:!1,getElementError(e,t){let n=PO(t),r=Error([e,`Ignored nodes: comments, `+IO.defaultIgnore+`
|
|
307
|
+
`+n].filter(Boolean).join(`
|
|
308
|
+
|
|
309
|
+
`));return r.name=`TestingLibraryElementError`,r},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function LO(e){try{return IO._disableExpensiveErrorDiagnostics=!0,e()}finally{IO._disableExpensiveErrorDiagnostics=!1}}function RO(e){typeof e==`function`&&(e=e(IO)),IO={...IO,...e}}function zO(){return IO}var BO=[`button`,`meter`,`output`,`progress`,`select`,`textarea`,`input`];function VO(e){return BO.includes(e.nodeName.toLowerCase())?``:e.nodeType===wO?e.textContent:Array.from(e.childNodes).map(e=>VO(e)).join(``)}function HO(e){let t;return t=e.tagName.toLowerCase()===`label`?VO(e):e.value||e.textContent,t}function UO(e){if(e.labels!==void 0)return e.labels??[];if(!WO(e))return[];let t=e.ownerDocument.querySelectorAll(`label`);return Array.from(t).filter(t=>t.control===e)}function WO(e){return/BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName)||e.tagName===`INPUT`&&e.getAttribute(`type`)!==`hidden`}function GO(e,t,n){let{selector:r=`*`}=n===void 0?{}:n,i=t.getAttribute(`aria-labelledby`),a=i?i.split(` `):[];return a.length?a.map(t=>{let n=e.querySelector(`[id="`+t+`"]`);return n?{content:HO(n),formControl:null}:{content:``,formControl:null}}):Array.from(UO(t)).map(e=>({content:HO(e),formControl:Array.from(e.querySelectorAll(`button, input, meter, output, progress, select, textarea`)).filter(e=>e.matches(r))[0]}))}function KO(e){if(e==null)throw Error(`It looks like `+e+` was passed instead of a matcher. Did you do something like getByText(`+e+`)?`)}function qO(e,t,n,r){if(typeof e!=`string`)return!1;KO(n);let i=r(e);return typeof n==`string`||typeof n==`number`?i.toLowerCase().includes(n.toString().toLowerCase()):typeof n==`function`?n(i,t):ZO(n,i)}function JO(e,t,n,r){if(typeof e!=`string`)return!1;KO(n);let i=r(e);return n instanceof Function?n(i,t):n instanceof RegExp?ZO(n,i):i===String(n)}function YO(e){let{trim:t=!0,collapseWhitespace:n=!0}=e===void 0?{}:e;return e=>{let r=e;return r=t?r.trim():r,r=n?r.replace(/\s+/g,` `):r,r}}function XO(e){let{trim:t,collapseWhitespace:n,normalizer:r}=e;if(!r)return YO({trim:t,collapseWhitespace:n});if(typeof t<`u`||typeof n<`u`)throw Error(`trim and collapseWhitespace are not supported with a normalizer. If you want to use the default trim and collapseWhitespace logic in your normalizer, use "getDefaultNormalizer({trim, collapseWhitespace})" and compose that into your normalizer`);return r}function ZO(e,t){let n=e.test(t);return e.global&&e.lastIndex!==0&&(console.warn(`To match all elements we had to reset the lastIndex of the RegExp because the global flag is enabled. We encourage to remove the global flag from the RegExp.`),e.lastIndex=0),n}function QO(e){return e.matches(`input[type=submit], input[type=button], input[type=reset]`)?e.value:Array.from(e.childNodes).filter(e=>e.nodeType===wO&&!!e.textContent).map(e=>e.textContent).join(``)}var $O=rk(QD.elementRoles);function ek(e){return e.hidden===!0||e.getAttribute(`aria-hidden`)===`true`||e.ownerDocument.defaultView.getComputedStyle(e).display===`none`}function tk(e,t){t===void 0&&(t={});let{isSubtreeInaccessible:n=ek}=t;if(e.ownerDocument.defaultView.getComputedStyle(e).visibility===`hidden`)return!0;let r=e;for(;r;){if(n(r))return!0;r=r.parentElement}return!1}function nk(e){for(let{match:t,roles:n}of $O)if(t(e))return[...n];return[]}function rk(e){function t(e){let{name:t,attributes:n}=e;return``+t+n.map(e=>{let{name:t,value:n,constraints:r=[]}=e,i=r.indexOf(`undefined`)!==-1,a=r.indexOf(`set`)!==-1;return typeof n<`u`?`[`+t+`="`+n+`"]`:i?`:not([`+t+`])`:a?`[`+t+`]:not([`+t+`=""])`:`[`+t+`]`}).join(``)}function n(e){let{attributes:t=[]}=e;return t.length}function r(e,t){let{specificity:n}=e,{specificity:r}=t;return r-n}function i(e){let{attributes:n=[]}=e,r=n.findIndex(e=>e.value&&e.name===`type`&&e.value===`text`);r>=0&&(n=[...n.slice(0,r),...n.slice(r+1)]);let i=t({...e,attributes:n});return e=>r>=0&&e.type!==`text`?!1:e.matches(i)}let a=[];for(let[t,r]of e.entries())a=[...a,{match:i(t),roles:Array.from(r),specificity:n(t)}];return a.sort(r)}function ik(e,t){let{hidden:n=!1}=t===void 0?{}:t;function r(e){return[e,...Array.from(e.children).reduce((e,t)=>[...e,...r(t)],[])]}return r(e).filter(e=>n===!1?tk(e)===!1:!0).reduce((e,t)=>{let n=[];return n=t.hasAttribute(`role`)?t.getAttribute(`role`).split(` `).slice(0,1):nk(t),n.reduce((e,n)=>Array.isArray(e[n])?{...e,[n]:[...e[n],t]}:{...e,[n]:[t]},e)},{})}function ak(e,t){let{hidden:n,includeDescription:r}=t,i=ik(e,{hidden:n});return Object.entries(i).filter(e=>{let[t]=e;return t!==`generic`}).map(e=>{let[t,n]=e,i=`-`.repeat(50),a=n.map(e=>{let t=`Name "`+ZD(e,{computedStyleSupportsPseudoElements:zO().computedStyleSupportsPseudoElements})+`":
|
|
310
|
+
`,n=PO(e.cloneNode(!1));if(r){let r=`Description "`+YD(e,{computedStyleSupportsPseudoElements:zO().computedStyleSupportsPseudoElements})+`":
|
|
311
|
+
`;return``+t+r+n}return``+t+n}).join(`
|
|
312
|
+
|
|
313
|
+
`);return t+`:
|
|
314
|
+
|
|
315
|
+
`+a+`
|
|
316
|
+
|
|
317
|
+
`+i}).join(`
|
|
318
|
+
`)}var ok=function(e,t){let{hidden:n=!1}=t===void 0?{}:t;return console.log(ak(e,{hidden:n}))};function sk(e){return e.tagName===`OPTION`?e.selected:pk(e,`aria-selected`)}function ck(e){return e.getAttribute(`aria-busy`)===`true`}function lk(e){if(!(`indeterminate`in e&&e.indeterminate))return`checked`in e?e.checked:pk(e,`aria-checked`)}function uk(e){return pk(e,`aria-pressed`)}function dk(e){return pk(e,`aria-current`)??e.getAttribute(`aria-current`)??!1}function fk(e){return pk(e,`aria-expanded`)}function pk(e,t){let n=e.getAttribute(t);if(n===`true`)return!0;if(n===`false`)return!1}function mk(e){return e.getAttribute(`aria-level`)&&Number(e.getAttribute(`aria-level`))||{H1:1,H2:2,H3:3,H4:4,H5:5,H6:6}[e.tagName]}function hk(e){let t=e.getAttribute(`aria-valuenow`);return t===null?void 0:+t}function gk(e){let t=e.getAttribute(`aria-valuemax`);return t===null?void 0:+t}function _k(e){let t=e.getAttribute(`aria-valuemin`);return t===null?void 0:+t}function vk(e){let t=e.getAttribute(`aria-valuetext`);return t===null?void 0:t}var yk=YO();function bk(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,`\\$&`)}function xk(e){return new RegExp(bk(e.toLowerCase()),`i`)}function Sk(e,t,n,r){let{variant:i,name:a}=r,o=``,s={},c=[[`Role`,`TestId`].includes(e)?n:xk(n)];a&&(s.name=xk(a)),e===`Role`&&tk(t)&&(s.hidden=!0,o=`Element is inaccessible. This means that the element and all its children are invisible to screen readers.
|
|
319
|
+
If you are using the aria-hidden prop, make sure this is the right choice for your case.
|
|
320
|
+
`),Object.keys(s).length>0&&c.push(s);let l=i+`By`+e;return{queryName:e,queryMethod:l,queryArgs:c,variant:i,warning:o,toString(){o&&console.warn(o);let[e,t]=c;return e=typeof e==`string`?`'`+e+`'`:e,t=t?`, { `+Object.entries(t).map(e=>{let[t,n]=e;return t+`: `+n}).join(`, `)+` }`:``,l+`(`+e+t+`)`}}}function Ck(e,t,n){return n&&(!t||t.toLowerCase()===e.toLowerCase())}function wk(e,t,n){if(t===void 0&&(t=`get`),e.matches(zO().defaultIgnore))return;let r=e.getAttribute(`role`)??nk(e)?.[0];if(r!==`generic`&&Ck(`Role`,n,r))return Sk(`Role`,e,r,{variant:t,name:ZD(e,{computedStyleSupportsPseudoElements:zO().computedStyleSupportsPseudoElements})});let i=GO(document,e).map(e=>e.content).join(` `);if(Ck(`LabelText`,n,i))return Sk(`LabelText`,e,i,{variant:t});let a=e.getAttribute(`placeholder`);if(Ck(`PlaceholderText`,n,a))return Sk(`PlaceholderText`,e,a,{variant:t});let o=yk(QO(e));if(Ck(`Text`,n,o))return Sk(`Text`,e,o,{variant:t});if(Ck(`DisplayValue`,n,e.value))return Sk(`DisplayValue`,e,yk(e.value),{variant:t});let s=e.getAttribute(`alt`);if(Ck(`AltText`,n,s))return Sk(`AltText`,e,s,{variant:t});let c=e.getAttribute(`title`);if(Ck(`Title`,n,c))return Sk(`Title`,e,c,{variant:t});let l=e.getAttribute(zO().testIdAttribute);if(Ck(`TestId`,n,l))return Sk(`TestId`,e,l,{variant:t})}function Tk(e,t){e.stack=t.stack.replace(t.message,e.message)}function Ek(e,t){let{container:n=EO(),timeout:r=zO().asyncUtilTimeout,showOriginalStackTrace:i=zO().showOriginalStackTrace,stackTraceError:a,interval:o=50,onTimeout:s=e=>(Object.defineProperty(e,`message`,{value:zO().getElementError(e.message,n).message}),e),mutationObserverOptions:c={subtree:!0,childList:!0,attributes:!0,characterData:!0}}=t;if(typeof e!=`function`)throw TypeError("Received `callback` arg must be a function");return new Promise(async(t,l)=>{let u,d,f,p=!1,m=`idle`,h=setTimeout(b,r),g=TO();if(g){let{unstable_advanceTimersWrapper:e}=zO();for(y();!p;){if(!TO()){let e=Error(`Changed from using fake timers to real timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to real timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830`);i||Tk(e,a),l(e);return}if(await e(async()=>{jest.advanceTimersByTime(o)}),p)break;y()}}else{try{OO(n)}catch(e){l(e);return}d=setInterval(v,o);let{MutationObserver:e}=DO(n);f=new e(v),f.observe(n,c),y()}function _(e,n){p=!0,clearTimeout(h),g||(clearInterval(d),f.disconnect()),e?l(e):t(n)}function v(){if(TO()){let e=Error(`Changed from using real timers to fake timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to fake timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830`);return i||Tk(e,a),l(e)}else return y()}function y(){if(m!==`pending`)try{let t=LO(e);typeof t?.then==`function`?(m=`pending`,t.then(e=>{m=`resolved`,_(null,e)},e=>{m=`rejected`,u=e})):_(null,t)}catch(e){u=e}}function b(){let e;u?(e=u,!i&&e.name===`TestingLibraryElementError`&&Tk(e,a)):(e=Error(`Timed out in waitFor.`),i||Tk(e,a)),_(s(e),null)}})}function Dk(e,t){let n=Error(`STACK_TRACE_MESSAGE`);return zO().asyncWrapper(()=>Ek(e,{stackTraceError:n,...t}))}function Ok(e,t){return zO().getElementError(e,t)}function kk(e,t){return Ok(e+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",t)}function Ak(e,t,n,r){let{exact:i=!0,collapseWhitespace:a,trim:o,normalizer:s}=r===void 0?{}:r,c=i?JO:qO,l=XO({collapseWhitespace:a,trim:o,normalizer:s});return Array.from(t.querySelectorAll(`[`+e+`]`)).filter(t=>c(t.getAttribute(e),t,n,l))}function jk(e,t,n,r){let i=Ak(e,t,n,r);if(i.length>1)throw kk(`Found multiple elements by [`+e+`=`+n+`]`,t);return i[0]||null}function Mk(e,t){return function(n){var r=[...arguments].slice(1);let i=e(n,...r);if(i.length>1){let e=i.map(e=>Ok(null,e).message).join(`
|
|
321
|
+
|
|
322
|
+
`);throw kk(t(n,...r)+`
|
|
323
|
+
|
|
324
|
+
Here are the matching elements:
|
|
325
|
+
|
|
326
|
+
`+e,n)}return i[0]||null}}function Nk(e,t){return zO().getElementError(`A better query is available, try this:
|
|
327
|
+
`+e.toString()+`
|
|
328
|
+
`,t)}function Pk(e,t){return function(n){var r=[...arguments].slice(1);let i=e(n,...r);if(!i.length)throw zO().getElementError(t(n,...r),n);return i}}function Fk(e){return(t,n,r,i)=>Dk(()=>e(t,n,r),{container:t,...i})}var Ik=(e,t,n)=>function(r){var i=[...arguments].slice(1);let a=e(r,...i),[{suggest:o=zO().throwSuggestions}={}]=i.slice(-1);if(a&&o){let e=wk(a,n);if(e&&!t.endsWith(e.queryName))throw Nk(e.toString(),r)}return a},Lk=(e,t,n)=>function(r){var i=[...arguments].slice(1);let a=e(r,...i),[{suggest:o=zO().throwSuggestions}={}]=i.slice(-1);if(a.length&&o){let e=[...new Set(a.map(e=>wk(e,n)?.toString()))];if(e.length===1&&!t.endsWith(wk(a[0],n).queryName))throw Nk(e[0],r)}return a};function Rk(e,t,n){let r=Ik(Mk(e,t),e.name,`query`),i=Pk(e,n),a=Mk(i,t),o=Ik(a,e.name,`get`);return[r,Lk(i,e.name.replace(`query`,`get`),`getAll`),o,Fk(Lk(i,e.name,`findAll`)),Fk(Ik(a,e.name,`find`))]}var zk=Object.freeze({__proto__:null,getElementError:Ok,wrapAllByQueryWithSuggestion:Lk,wrapSingleQueryWithSuggestion:Ik,getMultipleElementsFoundError:kk,queryAllByAttribute:Ak,queryByAttribute:jk,makeSingleQuery:Mk,makeGetAllQuery:Pk,makeFindQuery:Fk,buildQueries:Rk});function Bk(e){return Array.from(e.querySelectorAll(`label,input`)).map(e=>({node:e,textToMatch:HO(e)})).filter(e=>{let{textToMatch:t}=e;return t!==null})}var Vk=function(e,t,n){let{exact:r=!0,trim:i,collapseWhitespace:a,normalizer:o}=n===void 0?{}:n,s=r?JO:qO,c=XO({collapseWhitespace:a,trim:i,normalizer:o});return Bk(e).filter(e=>{let{node:n,textToMatch:r}=e;return s(r,n,t,c)}).map(e=>{let{node:t}=e;return t})},Hk=function(e,t,n){let{selector:r=`*`,exact:i=!0,collapseWhitespace:a,trim:o,normalizer:s}=n===void 0?{}:n;OO(e);let c=i?JO:qO,l=XO({collapseWhitespace:a,trim:o,normalizer:s}),u=Array.from(e.querySelectorAll(`*`)).filter(e=>UO(e).length||e.hasAttribute(`aria-labelledby`)).reduce((n,i)=>{let a=GO(e,i,{selector:r});a.filter(e=>!!e.formControl).forEach(e=>{c(e.content,e.formControl,t,l)&&e.formControl&&n.push(e.formControl)});let o=a.filter(e=>!!e.content).map(e=>e.content);return c(o.join(` `),i,t,l)&&n.push(i),o.length>1&&o.forEach((e,r)=>{c(e,i,t,l)&&n.push(i);let a=[...o];a.splice(r,1),a.length>1&&c(a.join(` `),i,t,l)&&n.push(i)}),n},[]).concat(Ak(`aria-label`,e,t,{exact:i,normalizer:l}));return Array.from(new Set(u)).filter(e=>e.matches(r))},Uk=function(e,t){var n=[...arguments].slice(2);let r=Hk(e,t,...n);if(!r.length){let r=Vk(e,t,...n);if(r.length){let n=r.map(t=>Wk(e,t)).filter(e=>!!e);throw n.length?zO().getElementError(n.map(e=>`Found a label with the text of: `+t+`, however the element associated with this label (<`+e+` />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <`+e+` />, you can use aria-label or aria-labelledby instead.`).join(`
|
|
329
|
+
|
|
330
|
+
`),e):zO().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 zO().getElementError(`Unable to find a label with the text of: `+t,e)}return r};function Wk(e,t){let n=t.getAttribute(`for`);if(!n)return null;let r=e.querySelector(`[id="`+n+`"]`);return r?r.tagName.toLowerCase():null}var Gk=(e,t)=>`Found multiple elements with the text of: `+t,Kk=Ik(Mk(Hk,Gk),Hk.name,`query`),qk=Mk(Uk,Gk),Jk=Fk(Lk(Uk,Uk.name,`findAll`)),Yk=Fk(Ik(qk,Uk.name,`find`)),Xk=Lk(Uk,Uk.name,`getAll`),Zk=Ik(qk,Uk.name,`get`),Qk=Lk(Hk,Hk.name,`queryAll`),$k=function(){var e=[...arguments];return OO(e[0]),Ak(`placeholder`,...e)},eA=(e,t)=>`Found multiple elements with the placeholder text of: `+t,tA=(e,t)=>`Unable to find an element with the placeholder text of: `+t,nA=Lk($k,$k.name,`queryAll`),[rA,iA,aA,oA,sA]=Rk($k,eA,tA),cA=function(e,t,n){let{selector:r=`*`,exact:i=!0,collapseWhitespace:a,trim:o,ignore:s=zO().defaultIgnore,normalizer:c}=n===void 0?{}:n;OO(e);let l=i?JO:qO,u=XO({collapseWhitespace:a,trim:o,normalizer:c}),d=[];return typeof e.matches==`function`&&e.matches(r)&&(d=[e]),[...d,...Array.from(e.querySelectorAll(r))].filter(e=>!s||!e.matches(s)).filter(e=>l(QO(e),e,t,u))},lA=(e,t)=>`Found multiple elements with the text: `+t,uA=function(e,t,n){n===void 0&&(n={});let{collapseWhitespace:r,trim:i,normalizer:a,selector:o}=n,s=XO({collapseWhitespace:r,trim:i,normalizer:a})(t.toString()),c=s!==t.toString(),l=(o??`*`)!==`*`;return`Unable to find an element with the text: `+(c?s+` (normalized from '`+t+`')`:t)+(l?`, which matches selector '`+o+`'`:``)+`. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.`},dA=Lk(cA,cA.name,`queryAll`),[fA,pA,mA,hA,gA]=Rk(cA,lA,uA),_A=function(e,t,n){let{exact:r=!0,collapseWhitespace:i,trim:a,normalizer:o}=n===void 0?{}:n;OO(e);let s=r?JO:qO,c=XO({collapseWhitespace:i,trim:a,normalizer:o});return Array.from(e.querySelectorAll(`input,textarea,select`)).filter(e=>e.tagName===`SELECT`?Array.from(e.options).filter(e=>e.selected).some(e=>s(QO(e),e,t,c)):s(e.value,e,t,c))},vA=(e,t)=>`Found multiple elements with the display value: `+t+`.`,yA=(e,t)=>`Unable to find an element with the display value: `+t+`.`,bA=Lk(_A,_A.name,`queryAll`),[xA,SA,CA,wA,TA]=Rk(_A,vA,yA),EA=/^(img|input|area|.+-.+)$/i,DA=function(e,t,n){return n===void 0&&(n={}),OO(e),Ak(`alt`,e,t,n).filter(e=>EA.test(e.tagName))},OA=(e,t)=>`Found multiple elements with the alt text: `+t,kA=(e,t)=>`Unable to find an element with the alt text: `+t,AA=Lk(DA,DA.name,`queryAll`),[jA,MA,NA,PA,FA]=Rk(DA,OA,kA),IA=e=>e.tagName.toLowerCase()===`title`&&e.parentElement?.tagName.toLowerCase()===`svg`,LA=function(e,t,n){let{exact:r=!0,collapseWhitespace:i,trim:a,normalizer:o}=n===void 0?{}:n;OO(e);let s=r?JO:qO,c=XO({collapseWhitespace:i,trim:a,normalizer:o});return Array.from(e.querySelectorAll(`[title], svg > title`)).filter(e=>s(e.getAttribute(`title`),e,t,c)||IA(e)&&s(QO(e),e,t,c))},RA=(e,t)=>`Found multiple elements with the title: `+t+`.`,zA=(e,t)=>`Unable to find an element with the title: `+t+`.`,BA=Lk(LA,LA.name,`queryAll`),[VA,HA,UA,WA,GA]=Rk(LA,RA,zA),KA=function(e,t,n){let{hidden:r=zO().defaultHidden,name:i,description:a,queryFallbacks:o=!1,selected:s,busy:c,checked:l,pressed:u,current:d,level:f,expanded:p,value:{now:m,min:h,max:g,text:_}={}}=n===void 0?{}:n;if(OO(e),s!==void 0&&QD.roles.get(t)?.props[`aria-selected`]===void 0)throw Error(`"aria-selected" is not supported on role "`+t+`".`);if(c!==void 0&&QD.roles.get(t)?.props[`aria-busy`]===void 0)throw Error(`"aria-busy" is not supported on role "`+t+`".`);if(l!==void 0&&QD.roles.get(t)?.props[`aria-checked`]===void 0)throw Error(`"aria-checked" is not supported on role "`+t+`".`);if(u!==void 0&&QD.roles.get(t)?.props[`aria-pressed`]===void 0)throw Error(`"aria-pressed" is not supported on role "`+t+`".`);if(d!==void 0&&QD.roles.get(t)?.props[`aria-current`]===void 0)throw Error(`"aria-current" is not supported on role "`+t+`".`);if(f!==void 0&&t!==`heading`)throw Error(`Role "`+t+`" cannot have "level" property.`);if(m!==void 0&&QD.roles.get(t)?.props[`aria-valuenow`]===void 0)throw Error(`"aria-valuenow" is not supported on role "`+t+`".`);if(g!==void 0&&QD.roles.get(t)?.props[`aria-valuemax`]===void 0)throw Error(`"aria-valuemax" is not supported on role "`+t+`".`);if(h!==void 0&&QD.roles.get(t)?.props[`aria-valuemin`]===void 0)throw Error(`"aria-valuemin" is not supported on role "`+t+`".`);if(_!==void 0&&QD.roles.get(t)?.props[`aria-valuetext`]===void 0)throw Error(`"aria-valuetext" is not supported on role "`+t+`".`);if(p!==void 0&&QD.roles.get(t)?.props[`aria-expanded`]===void 0)throw Error(`"aria-expanded" is not supported on role "`+t+`".`);let v=new WeakMap;function y(e){return v.has(e)||v.set(e,ek(e)),v.get(e)}return Array.from(e.querySelectorAll(qA(t))).filter(e=>{if(e.hasAttribute(`role`)){let n=e.getAttribute(`role`);if(o)return n.split(` `).filter(Boolean).some(e=>e===t);let[r]=n.split(` `);return r===t}return nk(e).some(e=>e===t)}).filter(e=>{if(s!==void 0)return s===sk(e);if(c!==void 0)return c===ck(e);if(l!==void 0)return l===lk(e);if(u!==void 0)return u===uk(e);if(d!==void 0)return d===dk(e);if(p!==void 0)return p===fk(e);if(f!==void 0)return f===mk(e);if(m!==void 0||g!==void 0||h!==void 0||_!==void 0){let t=!0;return m!==void 0&&t&&(t=m===hk(e)),g!==void 0&&t&&(t=g===gk(e)),h!==void 0&&t&&(t=h===_k(e)),_!==void 0&&(t&&=JO(vk(e)??null,e,_,e=>e)),t}return!0}).filter(e=>i===void 0?!0:JO(ZD(e,{computedStyleSupportsPseudoElements:zO().computedStyleSupportsPseudoElements}),e,i,e=>e)).filter(e=>a===void 0?!0:JO(YD(e,{computedStyleSupportsPseudoElements:zO().computedStyleSupportsPseudoElements}),e,a,e=>e)).filter(e=>r===!1?tk(e,{isSubtreeInaccessible:y})===!1:!0)};function qA(e){let t=`*[role~="`+e+`"]`,n=QD.roleElements.get(e)??new Set,r=new Set(Array.from(n).map(e=>{let{name:t}=e;return t}));return[t].concat(Array.from(r)).join(`,`)}var JA=e=>{let t=``;return t=e===void 0?``:typeof e==`string`?` and name "`+e+`"`:" and name `"+e+"`",t},YA=function(e,t,n){let{name:r}=n===void 0?{}:n;return`Found multiple elements with the role "`+t+`"`+JA(r)},XA=function(e,t,n){let{hidden:r=zO().defaultHidden,name:i,description:a}=n===void 0?{}:n;if(zO()._disableExpensiveErrorDiagnostics)return`Unable to find role="`+t+`"`+JA(i);let o=``;Array.from(e.children).forEach(e=>{o+=ak(e,{hidden:r,includeDescription:a!==void 0})});let s;s=o.length===0?r===!1?"There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole":`There are no available roles.`:(`
|
|
331
|
+
Here are the `+(r===!1?`accessible`:`available`)+` roles:
|
|
332
|
+
|
|
333
|
+
`+o.replace(/\n/g,`
|
|
334
|
+
`).replace(/\n\s\s\n/g,`
|
|
335
|
+
|
|
336
|
+
`)+`
|
|
337
|
+
`).trim();let c=``;c=i===void 0?``:typeof i==`string`?` and name "`+i+`"`:" and name `"+i+"`";let l=``;return l=a===void 0?``:typeof a==`string`?` and description "`+a+`"`:" and description `"+a+"`",(`
|
|
338
|
+
Unable to find an `+(r===!1?`accessible `:``)+`element with the role "`+t+`"`+c+l+`
|
|
339
|
+
|
|
340
|
+
`+s).trim()},ZA=Lk(KA,KA.name,`queryAll`),[QA,$A,ej,tj,nj]=Rk(KA,YA,XA),rj=()=>zO().testIdAttribute,ij=function(){var e=[...arguments];return OO(e[0]),Ak(rj(),...e)},aj=(e,t)=>`Found multiple elements by: [`+rj()+`="`+t+`"]`,oj=(e,t)=>`Unable to find an element by: [`+rj()+`="`+t+`"]`,sj=Lk(ij,ij.name,`queryAll`),[cj,lj,uj,dj,fj]=Rk(ij,aj,oj),pj=Object.freeze({__proto__:null,queryAllByLabelText:Qk,queryByLabelText:Kk,getAllByLabelText:Xk,getByLabelText:Zk,findAllByLabelText:Jk,findByLabelText:Yk,queryByPlaceholderText:rA,queryAllByPlaceholderText:nA,getByPlaceholderText:aA,getAllByPlaceholderText:iA,findAllByPlaceholderText:oA,findByPlaceholderText:sA,queryByText:fA,queryAllByText:dA,getByText:mA,getAllByText:pA,findAllByText:hA,findByText:gA,queryByDisplayValue:xA,queryAllByDisplayValue:bA,getByDisplayValue:CA,getAllByDisplayValue:SA,findAllByDisplayValue:wA,findByDisplayValue:TA,queryByAltText:jA,queryAllByAltText:AA,getByAltText:NA,getAllByAltText:MA,findAllByAltText:PA,findByAltText:FA,queryByTitle:VA,queryAllByTitle:BA,getByTitle:UA,getAllByTitle:HA,findAllByTitle:WA,findByTitle:GA,queryByRole:QA,queryAllByRole:ZA,getAllByRole:$A,getByRole:ej,findAllByRole:tj,findByRole:nj,queryByTestId:cj,queryAllByTestId:sj,getByTestId:uj,getAllByTestId:lj,findAllByTestId:dj,findByTestId:fj});function mj(e,t,n){return t===void 0&&(t=pj),n===void 0&&(n={}),Object.keys(t).reduce((n,r)=>(n[r]=t[r].bind(null,e),n),n)}var hj=e=>!e||Array.isArray(e)&&!e.length;function gj(e){if(hj(e))throw Error(`The element(s) given to waitForElementToBeRemoved are already removed. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal.`)}async function _j(e,t){let n=Error(`Timed out in waitForElementToBeRemoved.`);if(typeof e!=`function`){gj(e);let t=(Array.isArray(e)?e:[e]).map(e=>{let t=e.parentElement;if(t===null)return()=>null;for(;t.parentElement;)t=t.parentElement;return()=>t.contains(e)?e:null});e=()=>t.map(e=>e()).filter(Boolean)}return gj(e()),Dk(()=>{let t;try{t=e()}catch(e){if(e.name===`TestingLibraryElementError`)return;throw e}if(!hj(t))throw n},t)}var vj={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}}},yj={doubleClick:`dblClick`};function bj(e,t){return zO().eventWrapper(()=>{if(!t)throw Error(`Unable to fire an event - please provide an event object.`);if(!e)throw Error(`Unable to fire a "`+t.type+`" event - please provide a DOM element.`);return e.dispatchEvent(t)})}function xj(e,t,n,r){let{EventType:i=`Event`,defaultInit:a={}}=r===void 0?{}:r;if(!t)throw Error(`Unable to fire a "`+e+`" event - please provide a DOM element.`);let o={...a,...n},{target:{value:s,files:c,...l}={}}=o;s!==void 0&&Sj(t,s),c!==void 0&&Object.defineProperty(t,`files`,{configurable:!0,enumerable:!0,writable:!0,value:c}),Object.assign(t,l);let u=DO(t),d=u[i]||u.Event,f;if(typeof d==`function`)f=new d(e,o);else{f=u.document.createEvent(i);let{bubbles:t,cancelable:n,detail:r,...a}=o;f.initEvent(e,t,n,r),Object.keys(a).forEach(e=>{f[e]=a[e]})}return[`dataTransfer`,`clipboardData`].forEach(e=>{let t=o[e];typeof t==`object`&&(typeof u.DataTransfer==`function`?Object.defineProperty(f,e,{value:Object.getOwnPropertyNames(t).reduce((e,n)=>(Object.defineProperty(e,n,{value:t[n]}),e),new u.DataTransfer)}):Object.defineProperty(f,e,{value:t}))}),f}Object.keys(vj).forEach(e=>{let{EventType:t,defaultInit:n}=vj[e],r=e.toLowerCase();xj[e]=(e,i)=>xj(r,e,i,{EventType:t,defaultInit:n}),bj[e]=(t,n)=>bj(t,xj[e](t,n))});function Sj(e,t){let{set:n}=Object.getOwnPropertyDescriptor(e,`value`)||{},r=Object.getPrototypeOf(e),{set:i}=Object.getOwnPropertyDescriptor(r,`value`)||{};if(i&&n!==i)i.call(e,t);else if(n)n.call(e,t);else throw Error(`The given element does not have a value setter`)}Object.keys(yj).forEach(e=>{let t=yj[e];bj[e]=function(){return bj[t](...arguments)}});function Cj(e){return e.replace(/[ \t]*[\n][ \t]*/g,`
|
|
341
|
+
`)}function wj(e){return $D.default.compressToEncodedURIComponent(Cj(e))}function Tj(e){return`https://testing-playground.com/#markup=`+wj(e)}var Ej={debug:(e,t,n)=>Array.isArray(e)?e.forEach(e=>FO(e,t,n)):FO(e,t,n),logTestingPlaygroundURL:function(e){if(e===void 0&&(e=EO().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=Tj(e.innerHTML);return console.log(`Open this URL in your browser
|
|
342
|
+
|
|
343
|
+
`+t),t}},Dj=typeof document<`u`&&document.body?mj(document.body,pj,Ej):Object.keys(pj).reduce((e,t)=>(e[t]=()=>{throw TypeError(`For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error`)},e),Ej);function Z(e,t,n){return e.namespaceURI&&e.namespaceURI!==`http://www.w3.org/1999/xhtml`||(t=Array.isArray(t)?t:[t],!t.includes(e.tagName.toLowerCase()))?!1:n?Object.entries(n).every(([t,n])=>e[t]===n):!0}function Oj(e){var t;if(kj(e)&&e.defaultView)return e.defaultView;if((t=e.ownerDocument)!=null&&t.defaultView)return e.ownerDocument.defaultView;throw Error(`Could not determine window of node. Node was ${Aj(e)}`)}function kj(e){return e.nodeType===9}function Aj(e){return typeof e==`function`?`function ${e.name}`:e===null?`null`:String(e)}function jj(e,t){return new Promise((n,r)=>{let i=new t;i.onerror=r,i.onabort=r,i.onload=()=>{n(String(i.result))},i.readAsText(e)})}function Mj(e,t){let n={...t,length:t.length,item:e=>n[e],[Symbol.iterator]:function*(){for(let e=0;e<n.length;e++)yield n[e]}};return n.constructor=e.FileList,e.FileList&&Object.setPrototypeOf(n,e.FileList.prototype),Object.freeze(n),n}function Nj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pj=class{getAsFile(){return this.file}getAsString(e){typeof this.data==`string`&&e(this.data)}webkitGetAsEntry(){throw Error(`not implemented`)}constructor(e,t){Nj(this,`kind`,void 0),Nj(this,`type`,void 0),Nj(this,`file`,null),Nj(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)}},Fj=class extends Array{add(...e){let t=new Pj(e[0],e[1]);return this.push(t),t}clear(){this.splice(0,this.length)}remove(e){this.splice(e,1)}};function Ij(e,t){let[n,r]=e.split(`/`),i=!r||r===`*`;return r=>t?r.type===(i?n:e):i?r.type.startsWith(`${n}/`):r.type===n}function Lj(e){return new class{getData(e){let t=this.items.find(Ij(e,!0))??this.items.find(Ij(e,!1)),n=``;return t?.getAsString(e=>{n=e}),n}setData(e,t){let n=this.items.findIndex(Ij(e,!0)),r=new Pj(t,e);n>=0?this.items.splice(n,1,r):this.items.push(r)}clearData(e){if(e){let t=this.items.findIndex(Ij(e,!0));t>=0&&this.items.remove(t)}else this.items.clear()}get types(){let e=[];return this.files.length&&e.push(`Files`),this.items.forEach(t=>e.push(t.type)),Object.freeze(e),e}setDragImage(){}constructor(){Nj(this,`dropEffect`,`none`),Nj(this,`effectAllowed`,`uninitialized`),Nj(this,`items`,new Fj),Nj(this,`files`,Mj(e,[]))}}}function Rj(e,t=[]){let n=typeof e.DataTransfer>`u`?Lj(e):new e.DataTransfer;return Object.defineProperty(n,`files`,{get:()=>Mj(e,t)}),n}async function zj(e,t){return t.kind===`file`?t.getAsFile():new e.Blob([await new Promise(e=>t.getAsString(e))],{type:t.type})}function Bj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vj(e,...t){let n=Object.fromEntries(t.map(e=>[typeof e==`string`?`text/plain`:e.type,Promise.resolve(e)]));return typeof e.ClipboardItem<`u`?new e.ClipboardItem(n):new class{get types(){return Array.from(Object.keys(this.data))}async getType(t){let n=await this.data[t];if(!n)throw Error(`${t} is not one of the available MIME types on this item.`);return n instanceof e.Blob?n:new e.Blob([n],{type:t})}constructor(e){Bj(this,`data`,void 0),this.data=e}}(n)}var Hj=Symbol(`Manage ClipboardSub`);function Uj(e,t){return Object.assign(new class extends e.EventTarget{async read(){return Array.from(this.items)}async readText(){let t=``;for(let n of this.items){let r=n.types.includes(`text/plain`)?`text/plain`:n.types.find(e=>e.startsWith(`text/`));r&&(t+=await n.getType(r).then(t=>jj(t,e.FileReader)))}return t}async write(e){this.items=e}async writeText(t){this.items=[Vj(e,t)]}constructor(...e){super(...e),Bj(this,`items`,[])}},{[Hj]:t})}function Wj(e){return!!e?.[Hj]}function Gj(e){if(Wj(e.navigator.clipboard))return e.navigator.clipboard[Hj];let t=Object.getOwnPropertyDescriptor(e.navigator,`clipboard`),n,r={resetClipboardStub:()=>{n=Uj(e,r)},detachClipboardStub:()=>{t?Object.defineProperty(e.navigator,`clipboard`,t):Object.defineProperty(e.navigator,`clipboard`,{value:void 0,configurable:!0})}};return n=Uj(e,r),Object.defineProperty(e.navigator,`clipboard`,{get:()=>n,configurable:!0}),n[Hj]}function Kj(e){Wj(e.navigator.clipboard)&&e.navigator.clipboard[Hj].resetClipboardStub()}function qj(e){Wj(e.navigator.clipboard)&&e.navigator.clipboard[Hj].detachClipboardStub()}async function Jj(e){let t=e.defaultView,n=t?.navigator.clipboard,r=n&&await n.read();if(!r)throw Error(`The Clipboard API is unavailable.`);let i=Rj(t);for(let e of r)for(let n of e.types)i.setData(n,await e.getType(n).then(e=>jj(e,t.FileReader)));return i}async function Yj(e,t){let n=Oj(e),r=n.navigator.clipboard,i=[];for(let e=0;e<t.items.length;e++){let r=t.items[e],a=await zj(n,r);i.push(Vj(n,a))}if(!(r&&await r.write(i).then(()=>!0,()=>!1)))throw Error(`The Clipboard API is unavailable.`)}var Xj=globalThis;typeof Xj.afterEach==`function`&&Xj.afterEach(()=>{typeof globalThis.window<`u`&&Kj(globalThis.window)}),typeof Xj.afterAll==`function`&&Xj.afterAll(()=>{typeof globalThis.window<`u`&&qj(globalThis.window)});var Zj=[`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 Qj(e){return e.matches(Zj)}function $j(e){return new e.constructor(e.type,e)}function eM(e){for(let n=e;n;n=n.parentElement)if(Z(n,[`button`,`input`,`select`,`textarea`,`optgroup`,`option`])){if(n.hasAttribute(`disabled`))return!0}else if(Z(n,`fieldset`)){var t;if(n.hasAttribute(`disabled`)&&!((t=n.querySelector(`:scope > legend`))!=null&&t.contains(e)))return!0}else if(n.tagName.includes(`-`)&&n.constructor.formAssociated&&n.hasAttribute(`disabled`))return!0;return!1}function tM(e){let t=e.activeElement;return t?.shadowRoot?tM(t.shadowRoot):eM(t)?e.ownerDocument?e.ownerDocument.body:e.body:t}function nM(e){return tM(e)??e.body}function rM(e,t){let n=e;do{if(t(n))return n;n=n.parentElement}while(n&&n!==e.ownerDocument.body)}function iM(e){return e.hasAttribute(`contenteditable`)&&(e.getAttribute(`contenteditable`)==`true`||e.getAttribute(`contenteditable`)==``)}function aM(e){let t=oM(e);return t&&(t.closest(`[contenteditable=""]`)||t.closest(`[contenteditable="true"]`))}function oM(e){return e.nodeType===1?e:e.parentElement}var sM=(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})(sM||{});function cM(e){return Z(e,`button`)||Z(e,`input`)&&e.type in sM}function lM(e){return dM(e)&&!e.readOnly||iM(e)}var uM=(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})(uM||{});function dM(e){return Z(e,`textarea`)||Z(e,`input`)&&e.type in uM}function fM(e){return mM(e)&&dM(e)}function pM(e){return mM(e)&&cM(e)}function mM(e){return e.nodeType===1}function hM(e){let t=e.ownerDocument.getSelection();if(t?.focusNode&&fM(e)){let n=aM(t.focusNode);if(n){if(!t.isCollapsed){let e=n.firstChild?.nodeType===3?n.firstChild:n;t.setBaseAndExtent(e,0,e,0)}}else t.setBaseAndExtent(e,0,e,0)}}function gM(e,t){return zO().eventWrapper(e)}function _M(e){let t=rM(e,Qj),n=tM(e.ownerDocument);(t??e.ownerDocument.body)!==n&&(gM(t?()=>t.focus():()=>n?.blur()),hM(t??e.ownerDocument.body))}function vM(e){!Qj(e)||tM(e.ownerDocument)!==e||gM(()=>e.blur())}var yM={};yM.click=(e,t,n)=>{let r=t.closest(`button,input,label,select,textarea`),i=r&&Z(r,`label`)&&r.control;if(i&&i!==t)return()=>{Qj(i)&&(_M(i),n.dispatchEvent(i,$j(e)))};if(Z(t,`input`,{type:`file`}))return()=>{vM(t),t.dispatchEvent(new(Oj(t)).Event(`fileDialog`)),_M(t)}};var bM=Symbol(`Displayed value in UI`),xM=Symbol(`Displayed selection in UI`),SM=Symbol(`Initial value to compare on blur`);function CM(e){return typeof e==`object`&&bM in e}function wM(e){return!!e&&typeof e==`object`&&xM in e}function TM(e,t){e[SM]===void 0&&(e[SM]=e.value),e[bM]=t,e.value=Object.assign(new String(t),{[bM]:!0})}function EM(e){return e[bM]===void 0?e.value:String(e[bM])}function DM(e){e[bM]=void 0}function OM(e){e[SM]=void 0}function kM(e){return e[SM]}function AM(e,t){e[xM]=t}function jM(e,{focusOffset:t,anchorOffset:n=t},r=`replace`){let i=EM(e).length,a=e=>Math.max(0,Math.min(i,e)),o=r===`replace`||e[xM]===void 0?a(n):e[xM].anchorOffset,s=a(t),c=Math.min(o,s),l=Math.max(o,s);if(e[xM]={anchorOffset:o,focusOffset:s},e.selectionStart===c&&e.selectionEnd===l)return;let u=Object.assign(new Number(c),{[xM]:!0});try{e.setSelectionRange(u,l)}catch{}}function MM(e){let t=e[xM]??{anchorOffset:e.selectionStart??0,focusOffset:e.selectionEnd??0};return{...t,startOffset:Math.min(t.anchorOffset,t.focusOffset),endOffset:Math.max(t.anchorOffset,t.focusOffset)}}function NM(e){return!!e[xM]}function PM(e){e[xM]=void 0}var FM=globalThis.parseInt;function IM(e){let t=e.replace(/\D/g,``);if(t.length<2)return e;let n=FM(t[0],10),r=FM(t[1],10);if(n>=3||n===2&&r>=4){let e;return e=n>=3?1:2,LM(t,e)}return e.length===2?e:LM(t,2)}function LM(e,t){let n=e.slice(0,t),r=Math.min(FM(n,10),23),i=FM(e.slice(t),10),a=Math.min(i,59);return`${r.toString().padStart(2,`0`)}:${a.toString().padStart(2,`0`)}`}function RM(e,t){let n=e.cloneNode();return n.value=t,n.value===t}var zM=(function(e){return e.email=`email`,e.password=`password`,e.search=`search`,e.telephone=`telephone`,e.text=`text`,e.url=`url`,e})(zM||{});function BM(e){let t=e.getAttribute(`maxlength`)??``;return/^\d+$/.test(t)&&Number(t)>=0?Number(t):void 0}function VM(e){return Z(e,`textarea`)||Z(e,`input`)&&e.type in zM}function HM(e,t,n,r){if(qM(e)&&t+n>=0&&t+n<=e.nodeValue.length)return{node:e,offset:t+n};let i=UM(e,t,n);if(i){if(qM(i))return{node:i,offset:n>0?Math.min(1,i.nodeValue.length):Math.max(i.nodeValue.length-1,0)};if(Z(i,`br`)){let e=UM(i,void 0,n);return e?qM(e)?{node:e,offset:n>0?0:e.nodeValue.length}:n<0&&Z(e,`br`)?{node:i.parentNode,offset:GM(i)}:{node:e.parentNode,offset:GM(e)+(n>0?0:1)}:n<0&&r===`deleteContentBackward`?{node:i.parentNode,offset:GM(i)}:void 0}else return{node:i.parentNode,offset:GM(i)+(n>0?1:0)}}}function UM(e,t,n){let r=Number(t)+(n<0?-1:0);return t!==void 0&&KM(e)&&r>=0&&r<e.children.length&&(e=e.children[r]),JM(e,n===1?`next`:`previous`,WM)}function WM(e){if(qM(e))return!0;if(KM(e)){if(Z(e,[`input`,`textarea`]))return e.type!==`hidden`;if(Z(e,`br`))return!0}return!1}function GM(e){let t=0;for(;e.previousSibling;)t++,e=e.previousSibling;return t}function KM(e){return e.nodeType===1}function qM(e){return e.nodeType===3}function JM(e,t,n){for(;;){let r=e[`${t}Sibling`];if(r){if(e=YM(r,t===`next`?`first`:`last`),n(e))return e}else if(e.parentNode&&(!KM(e.parentNode)||!iM(e.parentNode)&&e.parentNode!==e.ownerDocument?.body))e=e.parentNode;else break}}function YM(e,t){for(;e.hasChildNodes();)e=e[`${t}Child`];return e}var XM=Symbol(`Track programmatic changes for React workaround`);function ZM(e){return Object.getOwnPropertyNames(e).some(e=>e.startsWith(`__react`))&&Oj(e).REACT_VERSION===17}function QM(e){ZM(e)&&(e[XM]={previousValue:String(e.value),tracked:[]})}function $M(e,t){var n,r;(r=e[XM])==null||(n=r.tracked)==null||n.push(t),e[XM]||(DM(e),jM(e,{focusOffset:t.length}))}function eN(e,t){var n;let r=e[XM];if(e[XM]=void 0,!(!(r==null||(n=r.tracked)==null)&&n.length))return;let i=r.tracked.length===2&&r.tracked[0]===r.previousValue&&r.tracked[1]===e.value;i||DM(e),NM(e)&&jM(e,{focusOffset:i?t:e.value.length})}function tN(e){let t=nN(e);if(t&&fM(t))return{type:`input`,selection:MM(t)};let n=t?.ownerDocument.getSelection();return{type:aM(e)&&n?.anchorNode&&aM(n.anchorNode)?`contenteditable`:`default`,selection:n}}function nN(e){return e.nodeType===1?e:e.parentElement}function rN(e){let t=tN(e);if(t.type===`input`)return t.selection;if(t.type===`contenteditable`)return t.selection?.getRangeAt(0)}function iN({focusNode:e,focusOffset:t,anchorNode:n=e,anchorOffset:r=t}){var i,a;if(tN(e).type===`input`)return jM(e,{anchorOffset:r,focusOffset:t});(a=n.ownerDocument)==null||(i=a.getSelection())==null||i.setBaseAndExtent(n,r,e,t)}function aN(e){return Z(e,`input`)&&[`date`,`time`].includes(e.type)}function oN(e,t,n,r=`insertText`){let i=rN(t);i&&(!aN(t)&&!e.dispatchUIEvent(t,`beforeinput`,{inputType:r,data:n})||(`startContainer`in i?sN(e,t,i,n,r):cN(e,t,i,n,r)))}function sN(e,t,n,r,i){let a=!1;if(!n.collapsed)a=!0,n.deleteContents();else if([`deleteContentBackward`,`deleteContentForward`].includes(i)){let e=HM(n.startContainer,n.startOffset,i===`deleteContentBackward`?-1:1,i);if(e){a=!0;let t=n.cloneRange();t.comparePoint(e.node,e.offset)<0?t.setStart(e.node,e.offset):t.setEnd(e.node,e.offset),t.deleteContents()}}if(r)if(n.endContainer.nodeType===3){let e=n.endOffset;n.endContainer.insertData(e,r),n.setStart(n.endContainer,e+r.length),n.setEnd(n.endContainer,e+r.length)}else{let e=t.ownerDocument.createTextNode(r);n.insertNode(e),n.setStart(e,r.length),n.setEnd(e,r.length)}(a||r)&&e.dispatchUIEvent(t,`input`,{inputType:i})}function cN(e,t,n,r,i){let a=r;if(VM(t)){let e=BM(t);if(e!==void 0&&r.length>0){let n=e-t.value.length;if(n>0)a=r.substring(0,n);else return}}let{newValue:o,newOffset:s,oldValue:c}=lN(a,t,n,i);o===c&&s===n.startOffset&&s===n.endOffset||Z(t,`input`,{type:`number`})&&!dN(o)||(TM(t,o),iN({focusNode:t,anchorOffset:s,focusOffset:s}),aN(t)?RM(t,o)&&(uN(e,t,s,{}),e.dispatchUIEvent(t,`change`),OM(t)):uN(e,t,s,{data:r,inputType:i}))}function lN(e,t,{startOffset:n,endOffset:r},i){let a=EM(t),o=Math.max(0,n===r&&i===`deleteContentBackward`?n-1:n),s=a.substring(0,o),c=Math.min(a.length,n===r&&i===`deleteContentForward`?n+1:r),l=`${s}${e}${a.substring(c,a.length)}`,u=o+e.length;if(Z(t,`input`,{type:`time`})){let e=IM(l);e!==``&&RM(t,e)&&(l=e,u=e.length)}return{oldValue:a,newValue:l,newOffset:u}}function uN(e,t,n,r){e.dispatchUIEvent(t,`input`,r),eN(t,n)}function dN(e){let t=e.split(`e`,2);return!(/[^\d.\-e]/.test(e)||Number(e.match(/-/g)?.length)>2||Number(e.match(/\./g)?.length)>1||t[1]&&!/^-?\d*$/.test(t[1]))}yM.cut=(e,t,n)=>()=>{lM(t)&&oN(n,t,``,`deleteByCut`)};function fN(e){return e?iM(e)?e.textContent:EM(e):null}function pN(e){let t=Oj(e);for(let n=e;n?.ownerDocument;n=n.parentElement){let{display:e,visibility:r}=t.getComputedStyle(n);if(e===`none`||r===`hidden`)return!1}return!0}function mN(e,t){let n=e.ownerDocument,r=n.querySelectorAll(Zj),i=Array.from(r).filter(t=>t===e||!(Number(t.getAttribute(`tabindex`))<0||eM(t)));Number(e.getAttribute(`tabindex`))>=0&&i.sort((e,t)=>{let n=Number(e.getAttribute(`tabindex`)),r=Number(t.getAttribute(`tabindex`));return n===r?0:n===0?1:r===0?-1:n-r});let a={},o=[n.body],s=Z(e,`input`,{type:`radio`})?e.name:void 0;i.forEach(t=>{let n=t;if(Z(n,`input`,{type:`radio`})&&n.name){if(n===e){o.push(n);return}else if(n.name===s)return;if(n.checked){o=o.filter(e=>!Z(e,`input`,{type:`radio`,name:n.name})),o.push(n),a[n.name]=n;return}if(typeof a[n.name]<`u`)return}o.push(n)});for(let r=o.findIndex(t=>t===e);;)if(r+=t?-1:1,r===o.length?r=0:r===-1&&(r=o.length-1),o[r]===e||o[r]===n.body||pN(o[r]))return o[r]}function hN(e,t){if(fM(e)){let n=MM(e);iN({focusNode:e,focusOffset:n.startOffset===n.endOffset?n.focusOffset+t:t<0?n.startOffset:n.endOffset})}else{let n=e.ownerDocument.getSelection();if(!n?.focusNode)return;if(n.isCollapsed){let e=HM(n.focusNode,n.focusOffset,t);e&&iN({focusNode:e.node,focusOffset:e.offset})}else n[t<0?`collapseToStart`:`collapseToEnd`]()}}function gN(e){if(fM(e))return iN({focusNode:e,anchorOffset:0,focusOffset:EM(e).length});let t=aM(e)??e.ownerDocument.body;iN({focusNode:t,anchorOffset:0,focusOffset:t.childNodes.length})}function _N(e){if(fM(e))return MM(e).startOffset===0&&MM(e).endOffset===EM(e).length;let t=aM(e)??e.ownerDocument.body,n=e.ownerDocument.getSelection();return n?.anchorNode===t&&n.focusNode===t&&n.anchorOffset===0&&n.focusOffset===t.childNodes.length}function vN(e,t,n){if(fM(e))return iN({focusNode:e,anchorOffset:t,focusOffset:n});if(iM(e)&&e.firstChild?.nodeType===3)return iN({focusNode:e.firstChild,anchorOffset:t,focusOffset:n});throw Error(`Not implemented. The result of this interaction is unreliable.`)}function yN(e,t,n){let r=Oj(t),i=Array.from(t.ownerDocument.querySelectorAll(t.name?`input[type="radio"][name="${r.CSS.escape(t.name)}"]`:`input[type="radio"][name=""], input[type="radio"]:not([name])`));for(let r=i.findIndex(e=>e===t)+n;;r+=n){if(i[r]||(r=n>0?0:i.length-1),i[r]===t)return;if(!eM(i[r])){_M(i[r]),e.dispatchUIEvent(i[r],`click`);return}}}yM.keydown=(e,t,n)=>bN[e.key]?.call(bN,e,t,n)??xN(e,t,n);var bN={ArrowDown:(e,t,n)=>{if(Z(t,`input`,{type:`radio`}))return()=>yN(n,t,1)},ArrowLeft:(e,t,n)=>Z(t,`input`,{type:`radio`})?()=>yN(n,t,-1):()=>hN(t,-1),ArrowRight:(e,t,n)=>Z(t,`input`,{type:`radio`})?()=>yN(n,t,1):()=>hN(t,1),ArrowUp:(e,t,n)=>{if(Z(t,`input`,{type:`radio`}))return()=>yN(n,t,-1)},Backspace:(e,t,n)=>{if(lM(t))return()=>{oN(n,t,``,`deleteContentBackward`)}},Delete:(e,t,n)=>{if(lM(t))return()=>{oN(n,t,``,`deleteContentForward`)}},End:(e,t)=>{if(Z(t,[`input`,`textarea`])||iM(t))return()=>{let e=fN(t)?.length??0;vN(t,e,e)}},Home:(e,t)=>{if(Z(t,[`input`,`textarea`])||iM(t))return()=>{vN(t,0,0)}},PageDown:(e,t)=>{if(Z(t,[`input`]))return()=>{let e=EM(t).length;vN(t,e,e)}},PageUp:(e,t)=>{if(Z(t,[`input`]))return()=>{vN(t,0,0)}},Tab:(e,t,n)=>()=>{let e=mN(t,n.system.keyboard.modifiers.Shift);_M(e),fM(e)&&jM(e,{anchorOffset:0,focusOffset:e.value.length})}},xN=(e,t,n)=>{if(e.code===`KeyA`&&n.system.keyboard.modifiers.Control)return()=>gN(t)};yM.keypress=(e,t,n)=>{if(e.key===`Enter`){if(Z(t,`button`)||Z(t,`input`)&&SN.includes(t.type)||Z(t,`a`)&&t.href)return()=>{n.dispatchUIEvent(t,`click`)};if(Z(t,`input`)){let e=t.form,r=e?.querySelector(`input[type="submit"], button:not([type]), button[type="submit"]`);return r?()=>n.dispatchUIEvent(r,`click`):e&&CN.includes(t.type)&&e.querySelectorAll(`input`).length===1?()=>n.dispatchUIEvent(e,`submit`):void 0}}if(lM(t)){let r=e.key===`Enter`?iM(t)&&!n.system.keyboard.modifiers.Shift?`insertParagraph`:`insertLineBreak`:`insertText`,i=e.key===`Enter`?`
|
|
344
|
+
`:e.key;return()=>oN(n,t,i,r)}};var SN=[`button`,`color`,`file`,`image`,`reset`,`submit`],CN=[`email`,`month`,`password`,`search`,`tel`,`text`,`url`,`week`];yM.keyup=(e,t,n)=>wN[e.key]?.call(wN,e,t,n);var wN={" ":(e,t,n)=>{if(cM(t))return()=>n.dispatchUIEvent(t,`click`)}};yM.paste=(e,t,n)=>{if(lM(t))return()=>{let r=e.clipboardData?.getData(`text`);r&&oN(n,t,r,`insertFromPaste`)}};var TN={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 EN(e){return TN[e].EventType}var DN=[`MouseEvent`,`PointerEvent`];function ON(e){return DN.includes(EN(e))}function kN(e){return EN(e)===`KeyboardEvent`}var AN={ClipboardEvent:[FN],Event:[],FocusEvent:[RN,IN],InputEvent:[RN,LN],MouseEvent:[RN,zN,VN],PointerEvent:[RN,zN,VN,HN],KeyboardEvent:[RN,zN,BN]};function jN(e,t,n){let r=Oj(t),{EventType:i,defaultInit:a}=TN[e],o=new(MN(r))[i](e,a);var s={};for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(s[c]=n[c]);return s.view=r,AN[i].forEach(function(e){e(o,s)}),o}function MN(e){let t=e.Event??class{},n=e.AnimationEvent??class extends t{},r=e.ClipboardEvent??class extends t{},i=e.PopStateEvent??class extends t{},a=e.ProgressEvent??class extends t{},o=e.TransitionEvent??class extends t{},s=e.UIEvent??class extends t{},c=e.CompositionEvent??class extends s{},l=e.FocusEvent??class extends s{},u=e.InputEvent??class extends s{},d=e.KeyboardEvent??class extends s{},f=e.MouseEvent??class extends s{};return{Event:t,AnimationEvent:n,ClipboardEvent:r,PopStateEvent:i,ProgressEvent:a,TransitionEvent:o,UIEvent:s,CompositionEvent:c,FocusEvent:l,InputEvent:u,KeyboardEvent:d,MouseEvent:f,DragEvent:e.DragEvent??class extends f{},PointerEvent:e.PointerEvent??class extends f{},TouchEvent:e.TouchEvent??class extends s{}}}function NN(e,t){for(let[n,r]of Object.entries(t))Object.defineProperty(e,n,{get:()=>r??null})}function PN(e){return Number(e??0)}function FN(e,{clipboardData:t}){NN(e,{clipboardData:t})}function IN(e,{relatedTarget:t}){NN(e,{relatedTarget:t})}function LN(e,{data:t,inputType:n,isComposing:r}){NN(e,{data:t,isComposing:!!r,inputType:String(n)})}function RN(e,{view:t,detail:n}){NN(e,{view:t,detail:PN(n??0)})}function zN(e,{altKey:t,ctrlKey:n,metaKey:r,shiftKey:i,modifierAltGraph:a,modifierCapsLock:o,modifierFn:s,modifierFnLock:c,modifierNumLock:l,modifierScrollLock:u,modifierSymbol:d,modifierSymbolLock:f}){NN(e,{altKey:!!t,ctrlKey:!!n,metaKey:!!r,shiftKey:!!i,getModifierState(e){return!!{Alt:t,AltGraph:a,CapsLock:o,Control:n,Fn:s,FnLock:c,Meta:r,NumLock:l,ScrollLock:u,Shift:i,Symbol:d,SymbolLock:f}[e]}})}function BN(e,{key:t,code:n,location:r,repeat:i,isComposing:a,charCode:o}){NN(e,{key:String(t),code:String(n),location:PN(r),repeat:!!i,isComposing:!!a,charCode:o})}function VN(e,{x:t,y:n,screenX:r,screenY:i,clientX:a=t,clientY:o=n,button:s,buttons:c,relatedTarget:l,offsetX:u,offsetY:d,pageX:f,pageY:p}){NN(e,{screenX:PN(r),screenY:PN(i),clientX:PN(a),x:PN(a),clientY:PN(o),y:PN(o),button:PN(s),buttons:PN(c),relatedTarget:l,offsetX:PN(u),offsetY:PN(d),pageX:PN(f),pageY:PN(p)})}function HN(e,{pointerId:t,width:n,height:r,pressure:i,tangentialPressure:a,tiltX:o,tiltY:s,twist:c,pointerType:l,isPrimary:u}){NN(e,{pointerId:PN(t),width:PN(n??1),height:PN(r??1),pressure:PN(i),tangentialPressure:PN(a),tiltX:PN(o),tiltY:PN(s),twist:PN(c),pointerType:String(l),isPrimary:!!u})}function UN(e,t,n,r=!1){(ON(t)||kN(t))&&(n={...n,...this.system.getUIEventModifiers()});let i=jN(t,e,n);return WN.call(this,e,i,r)}function WN(e,t,n=!1){let r=t.type,i=n?()=>{}:yM[r]?.call(yM,t,e,this);if(i){t.preventDefault();let n=!1;return Object.defineProperty(t,`defaultPrevented`,{get:()=>n}),Object.defineProperty(t,`preventDefault`,{value:()=>{n=t.cancelable}}),gM(()=>e.dispatchEvent(t)),n||i(),!n}return gM(()=>e.dispatchEvent(t))}function GN(e,t,n){let r=jN(t,e,n);gM(()=>e.dispatchEvent(r))}var KN=Symbol(`patched focus/blur methods`);function qN(e){if(e.prototype[KN])return;let{focus:t,blur:n}=e.prototype;Object.defineProperties(e.prototype,{focus:{configurable:!0,get:()=>i},blur:{configurable:!0,get:()=>a},[KN]:{configurable:!0,get:()=>({focus:t,blur:n})}});let r;function i(e){if(this.ownerDocument.visibilityState!==`hidden`)return t.call(this,e);let i=JN(this.ownerDocument);if(i===this)return;let a=Symbol(`focus call`);r=a,i&&(n.call(i),GN(i,`blur`,{relatedTarget:this}),GN(i,`focusout`,{relatedTarget:r===a?this:null})),r===a&&(t.call(this,e),GN(this,`focus`,{relatedTarget:i})),r===a&&GN(this,`focusin`,{relatedTarget:i})}function a(){if(this.ownerDocument.visibilityState!==`hidden`)return n.call(this);let e=JN(this.ownerDocument);e===this&&(r=Symbol(`blur call`),n.call(this),GN(e,`blur`,{relatedTarget:null}),GN(e,`focusout`,{relatedTarget:null}))}}function JN(e){let t=tM(e);return t?.tagName===`BODY`?null:t}var YN=Symbol(`Interceptor for programmatical calls`);function XN(e,t,n){let r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=Object.getOwnPropertyDescriptor(e,t),a=r?.set?`set`:`value`;if(typeof r?.[a]!=`function`||r[a][YN])throw Error(`Element ${e.tagName} does not implement "${String(t)}".`);function o(...e){let{applyNative:t=!1,realArgs:o,then:s}=n.call(this,...e),c=(!t&&i||r)[a];a===`set`?c.call(this,o):c.call(this,...o),s?.()}o[YN]=YN,Object.defineProperty(e,t,{...i??r,[a]:o})}function ZN(e){XN(e,`value`,function(e){let t=CM(e);return t&&QM(this),{applyNative:!!t,realArgs:QN(this,e),then:t?void 0:()=>$M(this,String(e))}})}function QN(e,t){return Z(e,`input`,{type:`number`})&&String(t)!==``&&!Number.isNaN(Number(t))?String(Number(t)):String(t)}function $N(e){XN(e,`setSelectionRange`,function(t,...n){let r=wM(t);return{applyNative:!!r,realArgs:[Number(t),...n],then:()=>r?void 0:PM(e)}}),XN(e,`selectionStart`,function(t){return{realArgs:t,then:()=>PM(e)}}),XN(e,`selectionEnd`,function(t){return{realArgs:t,then:()=>PM(e)}}),XN(e,`select`,function(){return{realArgs:[],then:()=>AM(e,{anchorOffset:0,focusOffset:EM(e).length})}})}function eP(e){XN(e,`setRangeText`,function(...t){return{realArgs:t,then:()=>{DM(e),PM(e)}}})}var tP=Symbol(`Node prepared with document state workarounds`);function nP(e){e[tP]||(e.addEventListener(`focus`,e=>{let t=e.target;rP(t)},{capture:!0,passive:!0}),e.activeElement&&rP(e.activeElement),e.addEventListener(`blur`,e=>{let t=e.target,n=kM(t);n!==void 0&&(t.value!==n&&GN(t,`change`),OM(t))},{capture:!0,passive:!0}),e[tP]=tP)}function rP(e){e[tP]||(Z(e,[`input`,`textarea`])&&(ZN(e),$N(e),eP(e)),e[tP]=tP)}function iP(e){return aP(e)?e:e.ownerDocument}function aP(e){return e.nodeType===9}var oP=(function(e){return e[e.Trigger=2]=`Trigger`,e[e.Call=1]=`Call`,e})({});function sP(e,t){e.levelRefs[t]={}}function cP(e,t){return e.levelRefs[t]}function lP(e){let t=e.delay;if(typeof t==`number`)return Promise.all([new Promise(e=>globalThis.setTimeout(()=>e(),t)),e.advanceTimers(t)])}var uP=(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 dP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fP=(function(e){return e[e.STANDARD=0]=`STANDARD`,e[e.LEFT=1]=`LEFT`,e[e.RIGHT=2]=`RIGHT`,e[e.NUMPAD=3]=`NUMPAD`,e})({}),pP=[`Alt`,`AltGraph`,`Control`,`Fn`,`Meta`,`Shift`,`Symbol`];function mP(e){return pP.includes(e)}var hP=[`CapsLock`,`FnLock`,`NumLock`,`ScrollLock`,`SymbolLock`];function gP(e){return hP.includes(e)}var _P=class{isKeyPressed(e){return this.pressed.has(String(e.code))}getPressedKeys(){return this.pressed.values().map(e=>e.keyDef)}async keydown(e,t){let n=String(t.key),r=String(t.code),i=nM(e.config.document);this.setKeydownTarget(i),this.pressed.add(r,t),mP(n)&&(this.modifiers[n]=!0);let a=e.dispatchUIEvent(i,`keydown`,{key:n,code:r});gP(n)&&!this.modifiers[n]&&(this.modifiers[n]=!0,this.modifierLockStart[n]=!0),a&&this.pressed.setUnprevented(r),a&&this.hasKeyPress(n)&&e.dispatchUIEvent(nM(e.config.document),`keypress`,{key:n,code:r,charCode:t.key===`Enter`?13:String(t.key).charCodeAt(0)})}async keyup(e,t){let n=String(t.key),r=String(t.code),i=this.pressed.isUnprevented(r);this.pressed.delete(r),mP(n)&&!this.pressed.values().find(e=>e.keyDef.key===n)&&(this.modifiers[n]=!1),e.dispatchUIEvent(nM(e.config.document),`keyup`,{key:n,code:r},!i),gP(n)&&this.modifiers[n]&&(this.modifierLockStart[n]?this.modifierLockStart[n]=!1:this.modifiers[n]=!1)}setKeydownTarget(e){e!==this.lastKeydownTarget&&(this.carryChar=``),this.lastKeydownTarget=e}hasKeyPress(e){return(e.length===1||e===`Enter`)&&!this.modifiers.Control&&!this.modifiers.Alt}constructor(e){dP(this,`system`,void 0),dP(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}),dP(this,`pressed`,new class{add(e,t){var n,r;(n=this.registry)[r=e]??(n[r]={keyDef:t,unpreventedDefault:!1})}has(e){return!!this.registry[e]}setUnprevented(e){let t=this.registry[e];t&&(t.unpreventedDefault=!0)}isUnprevented(e){var t;return!!((t=this.registry[e])!=null&&t.unpreventedDefault)}delete(e){delete this.registry[e]}values(){return Object.values(this.registry)}constructor(){dP(this,`registry`,{})}}),dP(this,`carryChar`,``),dP(this,`lastKeydownTarget`,void 0),dP(this,`modifierLockStart`,{}),this.system=e}},vP=[...`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:fP.LEFT},{code:`AltRight`,key:`Alt`,location:fP.RIGHT},{code:`ShiftLeft`,key:`Shift`,location:fP.LEFT},{code:`ShiftRight`,key:`Shift`,location:fP.RIGHT},{code:`ControlLeft`,key:`Control`,location:fP.LEFT},{code:`ControlRight`,key:`Control`,location:fP.RIGHT},{code:`MetaLeft`,key:`Meta`,location:fP.LEFT},{code:`MetaRight`,key:`Meta`,location:fP.RIGHT},{code:`OSLeft`,key:`OS`,location:fP.LEFT},{code:`OSRight`,key:`OS`,location:fP.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`}],yP=[{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 bP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xP=class{getButtons(){let e=0;for(let t of Object.keys(this.pressed))e|=2**Number(t);return e}down(e){let t=CP(e.button);if(t in this.pressed){this.pressed[t].push(e);return}return this.pressed[t]=[e],t}up(e){let t=CP(e.button);if(t in this.pressed&&(this.pressed[t]=this.pressed[t].filter(t=>t.name!==e.name),this.pressed[t].length===0))return delete this.pressed[t],t}constructor(){bP(this,`pressed`,{})}},SP={primary:0,secondary:1,auxiliary:2,back:3,X1:3,forward:4,X2:4};function CP(e=0){return e in SP?SP[e]:Number(e)}var wP={1:2,2:1};function TP(e){return e=CP(e),e in wP?wP[e]:e}function EP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var DP=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(){EP(this,`pressedKeys`,new Set)}};function OP(e,t){let n=[];for(let t=e;t;t=t.parentElement)n.push(t);let r=[];for(let e=t;e;e=e.parentElement)r.push(e);let i=0;for(;!(i>=n.length||i>=r.length||n[n.length-1-i]!==r[r.length-1-i]);i++);return[n.slice(0,n.length-i),r.slice(0,r.length-i),r.slice(r.length-i)]}function kP({target:e,node:t,offset:n}){return fM(e)?{node:e,offset:n??EM(e).length}:t?{node:t,offset:n??(t.nodeType===3?t.nodeValue.length:t.childNodes.length)}:AP(e,n)}function AP(e,t,n=!0){let r=t===void 0?e.childNodes.length-1:0,i=t===void 0?-1:1;for(;t===void 0?r>=(n?Math.max(e.childNodes.length-1,0):0):r<=e.childNodes.length;){if(t&&r===e.childNodes.length)throw Error(`The given offset is out of bounds.`);let n=e.childNodes.item(r),a=String(n.textContent);if(a.length)if(t!==void 0&&a.length<t)t-=a.length;else{if(n.nodeType===1)return AP(n,t,!1);if(n.nodeType===3)return{node:n,offset:t??n.nodeValue.length}}r+=i}return{node:e,offset:e.childNodes.length}}function jP({document:e,target:t,clickCount:n,node:r,offset:i}){if(pM(t))return;let a=fM(t),o=String(a?EM(t):t.textContent),[s,c]=r?[i,i]:MP(o,i,n);if(a)return jM(t,{anchorOffset:s??o.length,focusOffset:c??o.length}),{node:t,start:s??0,end:c??o.length};{let{node:n,offset:i}=kP({target:t,node:r,offset:s}),{node:a,offset:o}=kP({target:t,node:r,offset:c}),l=t.ownerDocument.createRange();try{l.setStart(n,i),l.setEnd(a,o)}catch{throw Error(`The given offset is out of bounds.`)}let u=e.getSelection();return u?.removeAllRanges(),u?.addRange(l.cloneRange()),l}}function MP(e,t,n){if(n%3==1||e.length===0)return[t,t];let r=t??e.length;return n%3==2?[r-e.substr(0,t).match(/(\w+|\s+|\W)?$/)[0].length,t===void 0?t:t+e.substr(t).match(/^(\w+|\s+|\W)?/)[0].length]:[r-e.substr(0,t).match(/[^\r\n]*$/)[0].length,t===void 0?t:t+e.substr(t).match(/^[^\r\n]*/)[0].length]}function NP(e,{document:t,target:n,node:r,offset:i}){let a=kP({target:n,node:r,offset:i});if(`node`in e){if(a.node===e.node){let t=a.offset<e.start?e.end:e.start,n=a.offset>e.end||a.offset<e.start?a.offset:e.end;jM(e.node,{anchorOffset:t,focusOffset:n})}}else{let n=e.cloneRange(),r=n.comparePoint(a.node,a.offset);r<0?n.setStart(a.node,a.offset):r>0&&n.setEnd(a.node,a.offset);let i=t.getSelection();i?.removeAllRanges(),i?.addRange(n.cloneRange())}}function PP(e,t){return e.target!==t.target||e.coords?.x!==t.coords?.x||e.coords?.y!==t.coords?.y||e.coords?.clientX!==t.coords?.clientX||e.coords?.clientY!==t.coords?.clientY||e.coords?.offsetX!==t.coords?.offsetX||e.coords?.offsetY!==t.coords?.offsetY||e.coords?.pageX!==t.coords?.pageX||e.coords?.pageY!==t.coords?.pageY||e.coords?.screenX!==t.coords?.screenX||e.coords?.screenY!==t.coords?.screenY||e.caret?.node!==t.caret?.node||e.caret?.offset!==t.caret?.offset}function FP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var IP=class{move(e,t,n){let r=this.position,i=this.getTarget(e);if(this.position=t,!PP(r,t))return;let a=this.getTarget(e),o=this.getEventInit(`mousemove`),[s,c]=OP(i,a);return{leave:()=>{i!==a&&(e.dispatchUIEvent(i,`mouseout`,o),s.forEach(t=>e.dispatchUIEvent(t,`mouseleave`,o)))},enter:()=>{i!==a&&(e.dispatchUIEvent(a,`mouseover`,o),c.forEach(t=>e.dispatchUIEvent(t,`mouseenter`,o)))},move:()=>{n||(e.dispatchUIEvent(a,`mousemove`,o),this.modifySelecting(e))}}}down(e,t,n){let r=this.buttons.down(t);if(r===void 0)return;let i=this.getTarget(e);this.buttonDownTarget[r]=i;let a=this.getEventInit(`mousedown`,t.button),o=eM(i);!n&&(o||e.dispatchUIEvent(i,`mousedown`,a))&&(this.startSelecting(e,a.detail),_M(i)),!o&&TP(t.button)===2&&e.dispatchUIEvent(i,`contextmenu`,this.getEventInit(`contextmenu`,t.button))}up(e,t,n){let r=this.buttons.up(t);if(r===void 0)return;let i=this.getTarget(e);if(!eM(i)){if(!n){let n=this.getEventInit(`mouseup`,t.button);e.dispatchUIEvent(i,`mouseup`,n),this.endSelecting()}let a=OP(this.buttonDownTarget[r],i)[2][0];if(a){let n=this.getEventInit(`click`,t.button);n.detail&&(e.dispatchUIEvent(a,n.button===0?`click`:`auxclick`,n),n.button===0&&n.detail===2&&e.dispatchUIEvent(a,`dblclick`,{...this.getEventInit(`dblclick`,t.button),detail:n.detail}))}}}resetClickCount(){this.clickCount.reset()}getEventInit(e,t){let n={...this.position.coords};return n.button=TP(t),n.buttons=this.buttons.getButtons(),e===`mousedown`?n.detail=this.clickCount.getOnDown(n.button):e===`mouseup`?n.detail=this.clickCount.getOnUp(n.button):(e===`click`||e===`auxclick`)&&(n.detail=this.clickCount.incOnClick(n.button)),n}getTarget(e){return this.position.target??e.config.document.body}startSelecting(e,t){this.selecting=jP({document:e.config.document,target:this.getTarget(e),node:this.position.caret?.node,offset:this.position.caret?.offset,clickCount:t})}modifySelecting(e){this.selecting&&NP(this.selecting,{document:e.config.document,target:this.getTarget(e),node:this.position.caret?.node,offset:this.position.caret?.offset})}endSelecting(){this.selecting=void 0}constructor(){FP(this,`position`,{}),FP(this,`buttons`,new xP),FP(this,`selecting`,void 0),FP(this,`buttonDownTarget`,{}),FP(this,`clickCount`,new class{incOnClick(e){let t=this.down[e]===void 0?void 0:Number(this.down[e])+1;return this.count=this.count[e]===void 0?{}:{[e]:Number(this.count[e])+1},t}getOnDown(e){return this.down={[e]:this.count[e]??0},this.count={[e]:this.count[e]??0},Number(this.count[e])+1}getOnUp(e){return this.down[e]===void 0?void 0:Number(this.down[e])+1}reset(){this.count={}}constructor(){FP(this,`down`,{}),FP(this,`count`,{})}})}};function LP(e,t){return BP(e,t)?.pointerEvents!==`none`}function RP(e){let t=Oj(e);for(let n=e,r=[];n?.ownerDocument;n=n.parentElement){r.push(n);let e=t.getComputedStyle(n).pointerEvents;if(e&&![`inherit`,`unset`].includes(e))return{pointerEvents:e,tree:r}}}var zP=Symbol(`Last check for pointer-events`);function BP(e,t){let n=t[zP];if(!(e.config.pointerEventsCheck!==uP.Never&&(!n||WP(e.config.pointerEventsCheck,uP.EachApiCall)&&n[oP.Call]!==cP(e,oP.Call)||WP(e.config.pointerEventsCheck,uP.EachTrigger)&&n[oP.Trigger]!==cP(e,oP.Trigger))))return n?.result;let r=RP(t);return t[zP]={[oP.Call]:cP(e,oP.Call),[oP.Trigger]:cP(e,oP.Trigger),result:r},r}function VP(e,t){let n=BP(e,t);if(n?.pointerEvents===`none`)throw Error([`Unable to perform pointer interaction as the element ${n.tree.length>1?`inherits`:`has`} \`pointer-events: none\`:`,``,HP(n.tree)].join(`
|
|
345
|
+
`))}function HP(e){return e.reverse().map((t,n)=>[``.padEnd(n),t.tagName,t.id&&`#${t.id}`,t.hasAttribute(`data-testid`)&&`(testId=${t.getAttribute(`data-testid`)})`,UP(t),e.length>1&&n===0&&" <-- This element declared `pointer-events: none`",e.length>1&&n===e.length-1&&` <-- Asserted pointer events here`].filter(Boolean).join(``)).join(`
|
|
346
|
+
`)}function UP(e){var t;let n;if(e.hasAttribute(`aria-label`))n=e.getAttribute(`aria-label`);else if(e.hasAttribute(`aria-labelledby`)){var r,i;n=(i=e.ownerDocument.getElementById(e.getAttribute(`aria-labelledby`)))==null||(r=i.textContent)==null?void 0:r.trim()}else Z(e,[`button`,`input`,`meter`,`output`,`progress`,`select`,`textarea`])&&(t=e.labels)!=null&&t.length?n=Array.from(e.labels).map(e=>e.textContent?.trim()).join(`|`):Z(e,`button`)&&(n=e.textContent?.trim());return n=n?.replace(/\n/g,` `),Number(n?.length)>30&&(n=`${n?.substring(0,29)}\u2026`),n?`(label=${n})`:``}function WP(e,t){return(e&t)>0}function GP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var KP=class{init(e){let t=this.getTarget(e),[,n]=OP(null,t),r=this.getEventInit();return VP(e,t),e.dispatchUIEvent(t,`pointerover`,r),n.forEach(t=>e.dispatchUIEvent(t,`pointerenter`,r)),this}move(e,t){let n=this.position,r=this.getTarget(e);if(this.position=t,!PP(n,t))return;let i=this.getTarget(e),a=this.getEventInit(-1),[o,s]=OP(r,i);return{leave:()=>{LP(e,r)&&r!==i&&(e.dispatchUIEvent(r,`pointerout`,a),o.forEach(t=>e.dispatchUIEvent(t,`pointerleave`,a)))},enter:()=>{VP(e,i),r!==i&&(e.dispatchUIEvent(i,`pointerover`,a),s.forEach(t=>e.dispatchUIEvent(t,`pointerenter`,a)))},move:()=>{e.dispatchUIEvent(i,`pointermove`,a)}}}down(e,t=0){if(this.isDown)return;let n=this.getTarget(e);VP(e,n),this.isDown=!0,this.isPrevented=!e.dispatchUIEvent(n,`pointerdown`,this.getEventInit(t))}up(e,t=0){if(!this.isDown)return;let n=this.getTarget(e);VP(e,n),this.isPrevented=!1,this.isDown=!1,e.dispatchUIEvent(n,`pointerup`,this.getEventInit(t))}release(e){let t=this.getTarget(e),[n]=OP(t,null),r=this.getEventInit();LP(e,t)&&(e.dispatchUIEvent(t,`pointerout`,r),n.forEach(t=>e.dispatchUIEvent(t,`pointerleave`,r))),this.isCancelled=!0}getTarget(e){return this.position.target??e.config.document.body}getEventInit(e){return{...this.position.coords,pointerId:this.pointerId,pointerType:this.pointerType,isPrimary:this.isPrimary,button:TP(e),buttons:this.buttons.getButtons()}}constructor({pointerId:e,pointerType:t,isPrimary:n},r){GP(this,`pointerId`,void 0),GP(this,`pointerType`,void 0),GP(this,`isPrimary`,void 0),GP(this,`buttons`,void 0),GP(this,`isMultitouch`,!1),GP(this,`isCancelled`,!1),GP(this,`isDown`,!1),GP(this,`isPrevented`,!1),GP(this,`position`,{}),this.pointerId=e,this.pointerType=t,this.isPrimary=n,this.isMultitouch=!n,this.buttons=r}};function qP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var JP=class{isKeyPressed(e){return this.devices.get(e.pointerType).isPressed(e)}async press(e,t,n){this.devices.get(t.pointerType).addPressed(t),this.buttons.down(t);let r=this.getPointerName(t),i=t.pointerType===`touch`?this.pointers.new(r,t.pointerType,this.buttons):this.pointers.get(r);i.position=n,i.pointerType!==`touch`&&(this.mouse.position=n),i.pointerType===`touch`&&i.init(e),i.down(e,t.button),i.pointerType!==`touch`&&this.mouse.down(e,t,i.isPrevented)}async move(e,t,n){let r=this.pointers.get(t),i=r.move(e,n),a=r.pointerType===`touch`?void 0:this.mouse.move(e,n,r.isPrevented);i?.leave(),a?.leave(),i?.enter(),a?.enter(),i?.move(),a?.move()}async release(e,t,n){let r=this.devices.get(t.pointerType);r.removePressed(t),this.buttons.up(t);let i=this.pointers.get(this.getPointerName(t)),a=i.isPrevented;if(i.position=n,i.pointerType!==`touch`&&(this.mouse.position=n),r.countPressed===0&&i.up(e,t.button),i.pointerType===`touch`&&i.release(e),i.pointerType===`touch`&&!i.isMultitouch){let r=this.mouse.move(e,n,a);r?.leave(),r?.enter(),r?.move(),this.mouse.down(e,t,a)}if(!i.isMultitouch){let r=this.mouse.move(e,n,a);r?.leave(),r?.enter(),r?.move(),this.mouse.up(e,t,a)}}getPointerName(e){return e.pointerType===`touch`?e.name:e.pointerType}getPreviousPosition(e){return this.pointers.has(e)?this.pointers.get(e).position:void 0}resetClickCount(){this.mouse.resetClickCount()}getMouseTarget(e){return this.mouse.position.target??e.config.document.body}setMousePosition(e){this.mouse.position=e,this.pointers.get(`mouse`).position=e}constructor(e){qP(this,`system`,void 0),qP(this,`mouse`,void 0),qP(this,`buttons`,void 0),qP(this,`devices`,new class{get(e){var t,n;return(t=this.registry)[n=e]??(t[n]=new DP)}constructor(){qP(this,`registry`,{})}}),qP(this,`pointers`,new class{new(e,t,n){let r=t!==`touch`||!Object.values(this.registry).some(e=>e.pointerType===`touch`&&!e.isCancelled);return r||Object.values(this.registry).forEach(e=>{e.pointerType===t&&!e.isCancelled&&(e.isMultitouch=!0)}),this.registry[e]=new KP({pointerId:this.nextId++,pointerType:t,isPrimary:r},n),this.registry[e]}get(e){if(!this.has(e))throw Error(`Trying to access pointer "${e}" which does not exist.`);return this.registry[e]}has(e){return e in this.registry}constructor(){qP(this,`registry`,{}),qP(this,`nextId`,1)}}),this.system=e,this.buttons=new xP,this.mouse=new IP,this.pointers.new(`mouse`,`mouse`,this.buttons)}};function YP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var XP=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(){YP(this,`keyboard`,new _P(this)),YP(this,`pointer`,new JP(this))}};async function ZP(e){let t=[];return this.config.skipHover||t.push({target:e}),t.push({keys:`[MouseLeft]`,target:e}),this.pointer(t)}async function QP(e){return this.pointer([{target:e},`[MouseLeft][MouseLeft]`])}async function $P(e){return this.pointer([{target:e},`[MouseLeft][MouseLeft][MouseLeft]`])}async function eF(e){return this.pointer({target:e})}async function tF(e){return VP(this,this.system.pointer.getMouseTarget(this)),this.pointer({target:e.ownerDocument.body})}async function nF({shift:e}={}){return this.keyboard(e===!0?`{Shift>}{Tab}{/Shift}`:e===!1?`[/ShiftLeft][/ShiftRight]{Tab}`:`{Tab}`)}var rF=(function(e){return e[`{`]=`}`,e[`[`]=`]`,e})(rF||{});function iF(e,t){let n=0,r=e[n]in rF?e[n]:``;n+=r.length;let i=RegExp(`^\\${r}{2}`).test(e)?``:r;return{type:i,...i===``?aF(e,n,t):oF(e,n,i,t)}}function aF(e,t,n){let r=e[t];return sF(r,e,t,n),t+=r.length,{consumedLength:t,descriptor:r,releasePrevious:!1,releaseSelf:!0,repeat:1}}function oF(e,t,n,r){let i=e[t]===`/`?`/`:``;t+=i.length;let a=n===`{`&&e[t]===`\\`;t+=Number(a);let o=a?e[t]:e.slice(t).match(n===`{`?/^\w+|^[^}>/]/:/^\w+/)?.[0];sF(o,e,t,r),t+=o.length;let s=e.slice(t).match(/^>\d+/)?.[0]??``;t+=s.length;let c=e[t]===`/`||!s&&e[t]===`>`?e[t]:``;t+=c.length;let l=rF[n],u=e[t]===l?l:``;if(!u)throw Error(lF([!s&&`repeat modifier`,!c&&`release modifier`,`"${l}"`].filter(Boolean).join(` or `),e[t],e,r));return t+=u.length,{consumedLength:t,descriptor:o,releasePrevious:!!i,repeat:s?Math.max(Number(s.substr(1)),1):1,releaseSelf:cF(c,s)}}function sF(e,t,n,r){if(!e)throw Error(lF(`key descriptor`,t[n],t,r))}function cF(e,t){if(e)return e===`/`;if(t)return!1}function lF(e,t,n,r){return`Expected ${e} but found "${t??``}" in "${n}"
|
|
347
|
+
See ${r===`pointer`?`https://testing-library.com/docs/user-event/pointer#pressing-a-button-or-touching-the-screen`:`https://testing-library.com/docs/user-event/keyboard`}
|
|
348
|
+
for more information about how userEvent parses your input.`}function uF(e,t){let n=[];do{let{type:r,descriptor:i,consumedLength:a,releasePrevious:o,releaseSelf:s=!0,repeat:c}=iF(t,`keyboard`),l=e.find(e=>r===`[`?e.code?.toLowerCase()===i.toLowerCase():r===`{`?e.key?.toLowerCase()===i.toLowerCase():e.key===i)??{key:`Unknown`,code:`Unknown`,[r===`[`?`code`:`key`]:i};n.push({keyDef:l,releasePrevious:o,releaseSelf:s,repeat:c}),t=t.slice(a)}while(t);return n}async function dF(e){let t=uF(this.config.keyboardMap,e);for(let e=0;e<t.length;e++)await lP(this.config),await fF(this,t[e])}async function fF(e,{keyDef:t,releasePrevious:n,releaseSelf:r,repeat:i}){let{system:a}=e;if(a.keyboard.isKeyPressed(t)&&await a.keyboard.keyup(e,t),!n){for(let n=1;n<=i;n++)await a.keyboard.keydown(e,t),n<i&&await lP(e.config);r&&await a.keyboard.keyup(e,t)}}async function pF(e){for(let t of e.system.keyboard.getPressedKeys())await e.system.keyboard.keyup(e,t)}function mF(e){let t=fM(e)?{"text/plain":hF(e)}:{"text/plain":String(e.ownerDocument.getSelection())},n=Rj(Oj(e));for(let e in t)t[e]&&n.setData(e,t[e]);return n}function hF(e){let t=MM(e);return EM(e).substring(t.startOffset,t.endOffset)}async function gF(){let e=this.config.document,t=e.activeElement??e.body,n=mF(t);if(n.items.length!==0)return this.dispatchUIEvent(t,`copy`,{clipboardData:n})&&this.config.writeToClipboard&&await Yj(e,n),n}async function _F(){let e=this.config.document,t=e.activeElement??e.body,n=mF(t);if(n.items.length!==0)return this.dispatchUIEvent(t,`cut`,{clipboardData:n})&&this.config.writeToClipboard&&await Yj(t.ownerDocument,n),n}async function vF(e){let t=this.config.document,n=t.activeElement??t.body,r=(typeof e==`string`?yF(t,e):e)??await Jj(t).catch(()=>{throw Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.")});this.dispatchUIEvent(n,`paste`,{clipboardData:r})}function yF(e,t){let n=Rj(Oj(e));return n.setData(`text`,t),n}function bF(e,t){let n=[];do{let{descriptor:r,consumedLength:i,releasePrevious:a,releaseSelf:o=!0}=iF(t,`pointer`),s=e.find(e=>e.name===r);s&&n.push({keyDef:s,releasePrevious:a,releaseSelf:o}),t=t.slice(i)}while(t);return n}async function xF(e){let{pointerMap:t}=this.config,n=[];(Array.isArray(e)?e:[e]).forEach(e=>{typeof e==`string`?n.push(...bF(t,e)):`keys`in e?n.push(...bF(t,e.keys).map(t=>({...e,...t}))):n.push(e)});for(let e=0;e<n.length;e++)await lP(this.config),await SF(this,n[e]);this.system.pointer.resetClickCount()}async function SF(e,t){var n,r;let i=`pointerName`in t&&t.pointerName?t.pointerName:`keyDef`in t?e.system.pointer.getPointerName(t.keyDef):`mouse`,a=e.system.pointer.getPreviousPosition(i),o={target:t.target??wF(e,a),coords:t.coords??a?.coords,caret:{node:t.node??(CF(t)||a==null||(n=a.caret)==null?void 0:n.node),offset:t.offset??(CF(t)||a==null||(r=a.caret)==null?void 0:r.offset)}};`keyDef`in t?(e.system.pointer.isKeyPressed(t.keyDef)&&(sP(e,oP.Trigger),await e.system.pointer.release(e,t.keyDef,o)),t.releasePrevious||(sP(e,oP.Trigger),await e.system.pointer.press(e,t.keyDef,o),t.releaseSelf&&(sP(e,oP.Trigger),await e.system.pointer.release(e,t.keyDef,o)))):(sP(e,oP.Trigger),await e.system.pointer.move(e,i,o))}function CF(e){return!!(e.target??e.node??e.offset!==void 0)}function wF(e,t){if(!t)throw Error(`This pointer has no previous position. Provide a target property!`);return t.target??e.config.document.body}async function TF(e){if(!lM(e)||eM(e))throw Error("clear()` is only supported on editable elements.");if(_M(e),e.ownerDocument.activeElement!==e)throw Error(`The element to be cleared could not be focused.`);if(gN(e),!_N(e))throw Error(`The element content to be cleared could not be selected.`);oN(this,e,``,`deleteContentBackward`)}async function EF(e,t){return OF.call(this,!0,e,t)}async function DF(e,t){return OF.call(this,!1,e,t)}async function OF(e,t,n){if(!e&&!t.multiple)throw zO().getElementError(`Unable to deselect an option in a non-multiple select. Use selectOptions to change the selection instead.`,t);let r=Array.isArray(n)?n:[n],i=Array.from(t.querySelectorAll(`option, [role="option"]`)),a=r.map(e=>{if(typeof e!=`string`&&i.includes(e))return e;{let n=i.find(t=>t.value===e||t.innerHTML===e);if(n)return n;throw zO().getElementError(`Value "${String(e)}" not found in options`,t)}}).filter(e=>!eM(e));if(eM(t)||!a.length)return;let o=n=>{n.selected=e,this.dispatchUIEvent(t,`input`,{bubbles:!0,cancelable:!1,composed:!0}),this.dispatchUIEvent(t,`change`)};if(Z(t,`select`))if(t.multiple)for(let e of a){let n=this.config.pointerEventsCheck===0?!0:LP(this,e);n&&(this.dispatchUIEvent(e,`pointerover`),this.dispatchUIEvent(t,`pointerenter`),this.dispatchUIEvent(e,`mouseover`),this.dispatchUIEvent(t,`mouseenter`),this.dispatchUIEvent(e,`pointermove`),this.dispatchUIEvent(e,`mousemove`),this.dispatchUIEvent(e,`pointerdown`),this.dispatchUIEvent(e,`mousedown`)),_M(t),n&&(this.dispatchUIEvent(e,`pointerup`),this.dispatchUIEvent(e,`mouseup`)),o(e),n&&this.dispatchUIEvent(e,`click`),await lP(this.config)}else if(a.length===1){let e=this.config.pointerEventsCheck===0?!0:LP(this,t);e?await this.click(t):_M(t),o(a[0]),e&&(this.dispatchUIEvent(t,`pointerover`),this.dispatchUIEvent(t,`pointerenter`),this.dispatchUIEvent(t,`mouseover`),this.dispatchUIEvent(t,`mouseenter`),this.dispatchUIEvent(t,`pointerup`),this.dispatchUIEvent(t,`mouseup`),this.dispatchUIEvent(t,`click`)),await lP(this.config)}else throw zO().getElementError(`Cannot select multiple options on a non-multiple select`,t);else if(t.getAttribute(`role`)===`listbox`)for(let e of a)await this.click(e),await this.unhover(e);else throw zO().getElementError(`Cannot select options on elements that are neither select nor listbox elements`,t)}async function kF(e,t,{skipClick:n=this.config.skipClick,skipAutoClose:r=this.config.skipAutoClose,initialSelectionStart:i,initialSelectionEnd:a}={}){e.disabled||(n||await this.click(e),i!==void 0&&vN(e,i,a??i),await this.keyboard(t),r||await pF(this))}var AF=Symbol(`files and value properties are mocked`);function jF(e,t,n){n?Object.defineProperty(e,t,n):delete e[t]}function MF(e,t){var n;(n=e[AF])==null||n.restore();let r=Object.getOwnPropertyDescriptor(e,`type`),i=Object.getOwnPropertyDescriptor(e,`value`),a=Object.getOwnPropertyDescriptor(e,`files`);function o(){jF(e,`type`,r),jF(e,`value`,i),jF(e,`files`,a)}e[AF]={restore:o},Object.defineProperties(e,{files:{configurable:!0,get:()=>t},value:{configurable:!0,get:()=>t.length?`C:\\fakepath\\${t[0].name}`:``,set(t){if(t===``)o();else{var n;i==null||(n=i.set)==null||n.call(e,t)}}},type:{configurable:!0,get:()=>`file`,set(t){t!==`file`&&(o(),e.type=t)}}})}async function NF(e,t){let n=Z(e,`label`)?e.control:e;if(!n||!Z(n,`input`,{type:`file`}))throw TypeError(`The ${n===e?`given`:`associated`} ${n?.tagName} element does not accept file uploads`);if(eM(e))return;let r=(Array.isArray(t)?t:[t]).filter(e=>!this.config.applyAccept||FF(e,n.accept)).slice(0,n.multiple?void 0:1),i=()=>{r.length===n.files?.length&&r.every((e,t)=>e===n.files?.item(t))||(MF(n,Mj(Oj(e),r)),this.dispatchUIEvent(n,`input`),this.dispatchUIEvent(n,`change`))};n.addEventListener(`fileDialog`,i),await this.click(e),n.removeEventListener(`fileDialog`,i)}function PF(e){return e.toLowerCase().replace(/(\.|\/)jpg\b/g,`$1jpeg`)}function FF(e,t){if(!t)return!0;let n=[`audio/*`,`image/*`,`video/*`];return PF(t).trim().split(/\s*,\s*/).some(t=>t.startsWith(`.`)?PF(e.name).endsWith(t):n.includes(t)?PF(e.type).startsWith(t.replace(`*`,``)):PF(e.type)===t)}var IF={click:ZP,dblClick:QP,tripleClick:$P,hover:eF,unhover:tF,tab:nF,keyboard:dF,copy:gF,cut:_F,paste:vF,pointer:xF,clear:TF,deselectOptions:DF,selectOptions:EF,type:kF,upload:NF};function LF(e){return zO().asyncWrapper(e)}var RF={applyAccept:!0,autoModify:!0,delay:0,document:globalThis.document,keyboardMap:vP,pointerMap:yP,pointerEventsCheck:uP.EachApiCall,skipAutoClose:!1,skipClick:!1,skipHover:!1,writeToClipboard:!1,advanceTimers:()=>Promise.resolve()},zF={...RF,writeToClipboard:!0};function BF(e={},t=zF,n){let r=KF(e,n,t);return{...t,...e,document:r}}function VF(e={}){let t=BF(e);return nP(t.document),qN(Oj(t.document).HTMLElement),Gj(t.document.defaultView??globalThis.window),GF(t).api}function HF({keyboardState:e,pointerState:t,...n}={},r){let i=BF(n,RF,r);nP(i.document),qN(Oj(i.document).HTMLElement);let a=t??e??new XP;return{api:GF(i,a).api,system:a}}function UF(e){return GF({...this.config,...e},this.system).api}function WF(e,t){function n(...n){return sP(e,oP.Call),LF(()=>t.apply(e,n).then(async t=>(await lP(e.config),t)))}return Object.defineProperty(n,`name`,{get:()=>t.name}),n}function GF(e,t=new XP){let n={};return Object.assign(n,{config:e,dispatchEvent:WN.bind(n),dispatchUIEvent:UN.bind(n),system:t,levelRefs:{},...IF}),{instance:n,api:{...Object.fromEntries(Object.entries(IF).map(([e,t])=>[e,WF(n,t)])),setup:UF.bind(n)}}}function KF(e,t,n){return e.document??(t&&iP(t))??n.document}var qF={};S(qF,{clear:()=>JF,click:()=>YF,copy:()=>XF,cut:()=>ZF,dblClick:()=>QF,deselectOptions:()=>$F,hover:()=>eI,keyboard:()=>tI,paste:()=>rI,pointer:()=>nI,selectOptions:()=>iI,tab:()=>lI,tripleClick:()=>aI,type:()=>oI,unhover:()=>sI,upload:()=>cI});function JF(e){return HF().api.clear(e)}function YF(e,t={}){return HF(t,e).api.click(e)}function XF(e={}){return HF(e).api.copy()}function ZF(e={}){return HF(e).api.cut()}function QF(e,t={}){return HF(t).api.dblClick(e)}function $F(e,t,n={}){return HF(n).api.deselectOptions(e,t)}function eI(e,t={}){return HF(t).api.hover(e)}async function tI(e,t={}){let{api:n,system:r}=HF(t);return n.keyboard(e).then(()=>r)}async function nI(e,t={}){let{api:n,system:r}=HF(t);return n.pointer(e).then(()=>r)}function rI(e,t){return HF(t).api.paste(e)}function iI(e,t,n={}){return HF(n).api.selectOptions(e,t)}function aI(e,t={}){return HF(t).api.tripleClick(e)}function oI(e,t,n={}){return HF(n,e).api.type(e,t,n)}function sI(e,t={}){let{api:n,system:r}=HF(t);return r.pointer.setMousePosition({target:e}),n.unhover(e)}function cI(e,t,n={}){return HF(n).api.upload(e,t)}function lI(e={}){return HF().api.tab(e)}var uI={...qF,setup:VF},dI=H_({...RE},{getKeys:e=>Object.keys(e).filter(e=>e!==`eventWrapper`),intercept:(e,t)=>t[0]===`fireEvent`||e.startsWith(`find`)||e.startsWith(`waitFor`)});dI.screen=new Proxy(dI.screen,{get(e,t,n){return typeof window<`u`&&globalThis.location?.href?.includes(`viewMode=docs`)&&Lo.warn(So`
|
|
349
|
+
You are using Testing Library's \`screen\` object while the story is rendered in docs mode. This will likely lead to issues, as multiple stories are rendered in the same page and therefore screen will potentially find multiple elements. Use the \`canvas\` utility from the story context instead, which will scope the queries to each story's canvas.
|
|
350
|
+
|
|
351
|
+
More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#querying-the-canvas
|
|
352
|
+
`),Reflect.get(e,t,n)}});var{buildQueries:fI,configure:pI,createEvent:mI,fireEvent:hI,findAllByAltText:gI,findAllByDisplayValue:_I,findAllByLabelText:vI,findAllByPlaceholderText:yI,findAllByRole:bI,findAllByTestId:xI,findAllByText:SI,findAllByTitle:CI,findByAltText:wI,findByDisplayValue:TI,findByLabelText:EI,findByPlaceholderText:DI,findByRole:OI,findByTestId:kI,findByText:AI,findByTitle:jI,getAllByAltText:MI,getAllByDisplayValue:NI,getAllByLabelText:PI,getAllByPlaceholderText:FI,getAllByRole:II,getAllByTestId:LI,getAllByText:RI,getAllByTitle:zI,getByAltText:BI,getByDisplayValue:VI,getByLabelText:HI,getByPlaceholderText:UI,getByRole:WI,getByTestId:GI,getByText:KI,getByTitle:qI,getConfig:JI,getDefaultNormalizer:YI,getElementError:XI,getNodeText:ZI,getQueriesForElement:QI,getRoles:$I,getSuggestedQuery:eL,isInaccessible:tL,logDOM:nL,logRoles:rL,prettyDOM:iL,queries:aL,queryAllByAltText:oL,queryAllByAttribute:sL,queryAllByDisplayValue:cL,queryAllByLabelText:lL,queryAllByPlaceholderText:uL,queryAllByRole:dL,queryAllByTestId:fL,queryAllByText:pL,queryAllByTitle:mL,queryByAltText:hL,queryByAttribute:gL,queryByDisplayValue:_L,queryByLabelText:vL,queryByPlaceholderText:yL,queryByRole:bL,queryByTestId:xL,queryByText:SL,queryByTitle:CL,queryHelpers:wL,screen:TL,waitFor:EL,waitForElementToBeRemoved:DL,within:OL,prettyFormat:kL}=dI,AL=uI,{userEvent:jL}=H_({userEvent:uI},{intercept:!0,getKeys:e=>Object.keys(e).filter(e=>e!==`eventWrapper`)}),{expect:ML}=H_({expect:SE},{getKeys:(e,t)=>{if(`constructor`in e&&e.constructor===J){let n=[`assert`,`__methods`,`__flags`,`_obj`],r=Object.keys(Object.getPrototypeOf(e)).filter(e=>!n.includes(e));return t>2?r:[...r,`not`]}return`any`in e?Object.keys(e).filter(e=>e!==`any`):Object.keys(e)},mutate:!0,intercept:e=>e!==`expect`}),NL={mock:()=>{}},PL=!1,FL=[e=>{let{parameters:t}=e;t?.actions?.disable||PL||(kE((e,t)=>{let n=e.getMockName();n!==`spy`&&n!==`vi.fn()`&&(!/^next\/.*::/.test(n)||[`next/router::useRouter()`,`next/navigation::useRouter()`,`next/navigation::redirect`,`next/cache::`,`next/headers::cookies().set`,`next/headers::cookies().delete`,`next/headers::headers().set`,`next/headers::headers().delete`].some(e=>n.startsWith(e)))&&bU(n)(t)}),PL=!0)}],IL=()=>({...mf,..._f}),LL=`storybook/background`,RL=`backgrounds`;`${LL}`;var zL={light:{name:`light`,value:`#F8F8F8`},dark:{name:`dark`,value:`#333`}},{document:BL}=globalThis,VL=()=>globalThis?.matchMedia?!!globalThis.matchMedia(`(prefers-reduced-motion: reduce)`)?.matches:!1,HL=e=>{(Array.isArray(e)?e:[e]).forEach(UL)},UL=e=>{if(!BL)return;let t=BL.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},WL=(e,t)=>{if(!BL)return;let n=BL.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let n=BL.createElement(`style`);n.setAttribute(`id`,e),n.innerHTML=t,BL.head.appendChild(n)}},GL=(e,t,n)=>{if(!BL)return;let r=BL.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let r=BL.createElement(`style`);r.setAttribute(`id`,e),r.innerHTML=t;let i=`addon-backgrounds-grid${n?`-docs-${n}`:``}`,a=BL.getElementById(i);a?a.parentElement?.insertBefore(r,a):BL.head.appendChild(r)}},KL={cellSize:100,cellAmount:10,opacity:.8},qL=`addon-backgrounds`,JL=`addon-backgrounds-grid`,YL=VL()?``:`transition: background-color 0.3s;`,XL=globalThis.FEATURES?.backgrounds?[(e,t)=>{let{globals:n={},parameters:r={},viewMode:i,id:a}=t,{options:o=zL,disable:s,grid:c=KL}=r[RL]||{},l=n[RL]||{},u=typeof l==`string`?l:l?.value,d=u?o[u]:void 0,f=typeof d==`string`?d:d?.value||`transparent`,p=typeof l==`string`?!1:l.grid||!1,m=!!d&&!s,h=i===`docs`?`#anchor--${a} .docs-story`:`.sb-show-main`,g=i===`docs`?`#anchor--${a} .docs-story`:`.sb-show-main`,_=r.layout===void 0||r.layout===`padded`,v=i===`docs`?20:_?16:0,{cellAmount:y,cellSize:b,opacity:x,offsetX:S=v,offsetY:C=v}=c,w=i===`docs`?`${qL}-docs-${a}`:`${qL}-color`,T=i===`docs`?a:null;Xd(()=>{let e=`
|
|
353
|
+
${h} {
|
|
354
|
+
background: ${f} !important;
|
|
355
|
+
${YL}
|
|
356
|
+
}`;if(!m){HL(w);return}GL(w,e,T)},[h,w,T,m,f]);let E=i===`docs`?`${JL}-docs-${a}`:`${JL}`;return Xd(()=>{if(!p){HL(E);return}WL(E,`
|
|
357
|
+
${g} {
|
|
358
|
+
background-size: ${[`${b*y}px ${b*y}px`,`${b*y}px ${b*y}px`,`${b}px ${b}px`,`${b}px ${b}px`].join(`, `)} !important;
|
|
359
|
+
background-position: ${S}px ${C}px, ${S}px ${C}px, ${S}px ${C}px, ${S}px ${C}px !important;
|
|
360
|
+
background-blend-mode: difference !important;
|
|
361
|
+
background-image: linear-gradient(rgba(130, 130, 130, ${x}) 1px, transparent 1px),
|
|
362
|
+
linear-gradient(90deg, rgba(130, 130, 130, ${x}) 1px, transparent 1px),
|
|
363
|
+
linear-gradient(rgba(130, 130, 130, ${x/2}) 1px, transparent 1px),
|
|
364
|
+
linear-gradient(90deg, rgba(130, 130, 130, ${x/2}) 1px, transparent 1px) !important;
|
|
365
|
+
}
|
|
366
|
+
`)},[y,b,g,E,p,S,C,x]),e()}]:[],ZL={[RL]:{grid:{cellSize:20,opacity:.5,cellAmount:5},disable:!1}},QL={[RL]:{value:void 0,grid:!1}},$L=()=>({decorators:XL,parameters:ZL,initialGlobals:QL}),{step:eR}=H_({step:async(e,t,n)=>t(n)},{intercept:!0}),tR=()=>({parameters:{throwPlayFunctionExceptions:!1},runStep:eR}),nR=e=>{let t=getComputedStyle(e),n=e.getBoundingClientRect();return!(n.width>0&&n.height>0&&t.visibility!==`hidden`&&Number(t.opacity)>0&&t.display!==`none`)},rR=async({reporting:e,canvasElement:t,globals:n})=>{try{if(!n.ghostStories)return;let r=nR(t.firstElementChild??t);r&&e.addReport({type:`render-analysis`,version:1,result:{emptyRender:r},status:`warning`})}catch{}},iR=()=>({afterEach:rR}),aR=`storybook/highlight`,oR=`${aR}/add`,sR=`${aR}/remove`,cR=`${aR}/reset`,lR=`${aR}/scroll-into-view`,uR=2147483647,dR=28,fR={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`]},pR=`svg,path,rect,circle,line,polyline,polygon,ellipse,text`.split(`,`),mR=(e,t={},n)=>{let r=pR.includes(e)?document.createElementNS(`http://www.w3.org/2000/svg`,e):document.createElement(e);return Object.entries(t).forEach(([e,t])=>{/[A-Z]/.test(e)?(e===`onClick`&&(r.addEventListener(`click`,t),r.addEventListener(`keydown`,e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),t())})),e===`onMouseEnter`&&r.addEventListener(`mouseenter`,t),e===`onMouseLeave`&&r.addEventListener(`mouseleave`,t)):r.setAttribute(e,t)}),n?.forEach(e=>{if(!(e==null||e===!1))try{r.appendChild(e)}catch{r.appendChild(document.createTextNode(String(e)))}}),r},hR=e=>fR[e]&&mR(`svg`,{width:`14`,height:`14`,viewBox:`0 0 14 14`,xmlns:`http://www.w3.org/2000/svg`},fR[e].map(e=>mR(`path`,{fill:`currentColor`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:e}))),gR=e=>{if(`elements`in e){let{elements:t,color:n,style:r}=e;return{id:void 0,priority:0,selectors:t,styles:{outline:`2px ${r} ${n}`,outlineOffset:`2px`,boxShadow:`0 0 0 6px rgba(255,255,255,0.6)`},menu:void 0}}let{menu:t,...n}=e;return{id:void 0,priority:0,styles:{outline:`2px dashed #029cfd`},...n,menu:Array.isArray(t)?t.every(Array.isArray)?t:[t]:void 0}},_R=e=>e instanceof Function,vR=new Map,yR=new Map,bR=new Map,xR=e=>{let t=Symbol();return yR.set(t,[]),vR.set(t,e),{get:()=>vR.get(t),set:e=>{let n=vR.get(t),r=_R(e)?e(n):e;r!==n&&(vR.set(t,r),yR.get(t)?.forEach(e=>{bR.get(e)?.(),bR.set(e,e(r))}))},subscribe:e=>(yR.get(t)?.push(e),()=>{let n=yR.get(t);n&&yR.set(t,n.filter(t=>t!==e))}),teardown:()=>{yR.get(t)?.forEach(e=>{bR.get(e)?.(),bR.delete(e)}),yR.delete(t),vR.delete(t)}}},SR=e=>{let t=document.getElementById(`storybook-root`),n=new Map;for(let r of e){let{priority:e=0}=r;for(let i of r.selectors){let a=[...document.querySelectorAll(`:is(${i}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...t?.querySelectorAll(i)||[]];for(let t of a){let a=n.get(t);(!a||a.priority<=e)&&n.set(t,{...r,priority:e,selectors:Array.from(new Set((a?.selectors||[]).concat(i)))})}}}return n},CR=e=>Array.from(e.entries()).map(([e,{selectors:t,styles:n,hoverStyles:r,focusStyles:i,menu:a}])=>{let{top:o,left:s,width:c,height:l}=e.getBoundingClientRect(),{position:u}=getComputedStyle(e);return{element:e,selectors:t,styles:n,hoverStyles:r,focusStyles:i,menu:a,top:u===`fixed`?o:o+window.scrollY,left:u===`fixed`?s:s+window.scrollX,width:c,height:l}}).sort((e,t)=>t.width*t.height-e.width*e.height),wR=(e,t)=>{let n=e.getBoundingClientRect(),{x:r,y:i}=t;return n?.top&&n?.left&&r>=n.left&&r<=n.left+n.width&&i>=n.top&&i<=n.top+n.height},TR=(e,t,n)=>{if(!t||!n)return!1;let{left:r,top:i,width:a,height:o}=e;o<dR&&(i-=Math.round((dR-o)/2),o=dR),a<dR&&(r-=Math.round((dR-a)/2),a=dR),t.style.position===`fixed`&&(r+=window.scrollX,i+=window.scrollY);let{x:s,y:c}=n;return s>=r&&s<=r+a&&c>=i&&c<=i+o},ER=(e,t,n={})=>{let{x:r,y:i}=t,{margin:a=5,topOffset:o=0,centered:s=!1}=n,{scrollX:c,scrollY:l,innerHeight:u,innerWidth:d}=window,f=Math.min(e.style.position===`fixed`?i-l:i,u-e.clientHeight-a-o+l),p=s?e.clientWidth/2:0,m=e.style.position===`fixed`?Math.max(Math.min(r-c,d-p-a),p+a):Math.max(Math.min(r,d-p-a+c),p+a+c);Object.assign(e.style,{...m!==r&&{left:`${m}px`},...f!==i&&{top:`${f}px`}})},DR=e=>{window.HTMLElement.prototype.hasOwnProperty(`showPopover`)&&e.showPopover()},OR=e=>{window.HTMLElement.prototype.hasOwnProperty(`showPopover`)&&e.hidePopover()},kR=e=>({top:e.top,left:e.left,width:e.width,height:e.height,selectors:e.selectors,element:{attributes:Object.fromEntries(Array.from(e.element.attributes).map(e=>[e.name,e.value])),localName:e.element.localName,tagName:e.element.tagName,outerHTML:e.element.outerHTML}}),AR=`storybook-highlights-menu`,jR=`storybook-highlights-root`,MR=`storybook-root`;globalThis?.FEATURES?.highlight&&Ad?.ready&&Ad.ready().then(e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,n=xR([]),r=xR(new Map),i=xR([]),a=xR(),o=xR(),s=xR([]),c=xR([]),l=xR(),u=xR(),d=t.getElementById(jR);n.subscribe(()=>{d||(d=mR(`div`,{id:jR}),t.body.appendChild(d))}),n.subscribe(e=>{let n=t.getElementById(MR);if(!n)return;r.set(SR(e));let i=new MutationObserver(()=>r.set(SR(e)));return i.observe(n,{subtree:!0,childList:!0}),()=>{i.disconnect()}}),r.subscribe(e=>{let n=()=>requestAnimationFrame(()=>i.set(CR(e))),r=new ResizeObserver(n);r.observe(t.body),Array.from(e.keys()).forEach(e=>r.observe(e));let a=Array.from(t.body.querySelectorAll(`*`)).filter(e=>{let{overflow:t,overflowX:n,overflowY:r}=window.getComputedStyle(e);return[`auto`,`scroll`].some(e=>[t,n,r].includes(e))});return a.forEach(e=>e.addEventListener(`scroll`,n)),()=>{r.disconnect(),a.forEach(e=>e.removeEventListener(`scroll`,n))}}),r.subscribe(e=>{let n=Array.from(e.keys()).filter(({style:e})=>e.position===`sticky`),r=()=>requestAnimationFrame(()=>{i.set(e=>e.map(e=>{if(n.includes(e.element)){let{top:t,left:n}=e.element.getBoundingClientRect();return{...e,top:t+window.scrollY,left:n+window.scrollX}}return e}))});return t.addEventListener(`scroll`,r),()=>t.removeEventListener(`scroll`,r)}),r.subscribe(e=>{s.set(t=>t.filter(({element:t})=>e.has(t)))}),s.subscribe(e=>{e.length?(u.set(t=>e.some(e=>e.element===t?.element)?t:void 0),l.set(t=>e.some(e=>e.element===t?.element)?t:void 0)):(u.set(void 0),l.set(void 0),a.set(void 0))});let f=new Map(new Map);n.subscribe(e=>{e.forEach(({keyframes:e})=>{if(e){let n=f.get(e);n||(n=t.createElement(`style`),n.setAttribute(`data-highlight`,`keyframes`),f.set(e,n),t.head.appendChild(n)),n.innerHTML=e}}),f.forEach((t,n)=>{e.some(e=>e.keyframes===n)||(t.remove(),f.delete(n))})});let p=new Map(new Map);i.subscribe(e=>{e.forEach(e=>{let t=p.get(e.element);if(d&&!t){let n={popover:`manual`,"data-highlight-dimensions":`w${e.width.toFixed(0)}h${e.height.toFixed(0)}`,"data-highlight-coordinates":`x${e.left.toFixed(0)}y${e.top.toFixed(0)}`};t=d.appendChild(mR(`div`,n,[mR(`div`)])),p.set(e.element,t)}}),p.forEach((t,n)=>{e.some(({element:e})=>e===n)||(t.remove(),p.delete(n))})}),i.subscribe(e=>{let n=e.filter(e=>e.menu);if(!n.length)return;let r=e=>{requestAnimationFrame(()=>{let r=t.getElementById(AR),i={x:e.pageX,y:e.pageY};if(r&&!wR(r,i)){let e=n.filter(e=>TR(e,p.get(e.element),i));a.set(e.length?i:void 0),s.set(e)}})};return t.addEventListener(`click`,r),()=>t.removeEventListener(`click`,r)});let m=()=>{let e=t.getElementById(AR),n=o.get();!n||e&&wR(e,n)||c.set(e=>{let t=i.get().filter(e=>TR(e,p.get(e.element),n)),r=e.filter(e=>t.includes(e)),a=t.filter(t=>!e.includes(t)),o=e.length-r.length;return a.length||o?[...r,...a]:e})};o.subscribe(m),i.subscribe(m);let h=()=>{let e=u.get(),t=e?[e]:s.get(),n=t.length===1?t[0]:l.get(),r=a.get()!==void 0;i.get().forEach(e=>{let i=p.get(e.element);if(i){let a=n===e,o=r?n?a:t.includes(e):c.get()?.includes(e);Object.assign(i.style,{animation:`none`,background:`transparent`,border:`none`,boxSizing:`border-box`,outline:`none`,outlineOffset:`0px`,...e.styles,...o?e.hoverStyles:{},...a?e.focusStyles:{},position:getComputedStyle(e.element).position===`fixed`?`fixed`:`absolute`,zIndex:uR-10,top:`${e.top}px`,left:`${e.left}px`,width:`${e.width}px`,height:`${e.height}px`,margin:0,padding:0,cursor:e.menu&&o?`pointer`:`default`,pointerEvents:e.menu?`auto`:`none`,display:`flex`,alignItems:`center`,justifyContent:`center`,overflow:`visible`}),Object.assign(i.children[0].style,{width:`100%`,height:`100%`,minHeight:`${dR}px`,minWidth:`${dR}px`,boxSizing:`content-box`,padding:i.style.outlineWidth||`0px`}),DR(i)}})};i.subscribe(h),s.subscribe(h),c.subscribe(h),l.subscribe(h),u.subscribe(h);let g=()=>{if(!d)return;let n=t.getElementById(AR);if(n)n.innerHTML=``;else{let e={id:AR,popover:`manual`};n=d.appendChild(mR(`div`,e)),d.appendChild(mR(`style`,{},[`
|
|
367
|
+
#${AR} {
|
|
368
|
+
position: absolute;
|
|
369
|
+
z-index: ${uR};
|
|
370
|
+
width: 300px;
|
|
371
|
+
padding: 0px;
|
|
372
|
+
margin: 15px 0 0 0;
|
|
373
|
+
transform: translateX(-50%);
|
|
374
|
+
font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
375
|
+
font-size: 12px;
|
|
376
|
+
background: white;
|
|
377
|
+
border: none;
|
|
378
|
+
border-radius: 6px;
|
|
379
|
+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
|
|
380
|
+
color: #2E3438;
|
|
381
|
+
}
|
|
382
|
+
#${AR} ul {
|
|
383
|
+
list-style: none;
|
|
384
|
+
margin: 0;
|
|
385
|
+
padding: 0;
|
|
386
|
+
}
|
|
387
|
+
#${AR} > ul {
|
|
388
|
+
max-height: 300px;
|
|
389
|
+
overflow-y: auto;
|
|
390
|
+
padding: 4px 0;
|
|
391
|
+
}
|
|
392
|
+
#${AR} li {
|
|
393
|
+
padding: 0 4px;
|
|
394
|
+
margin: 0;
|
|
395
|
+
}
|
|
396
|
+
#${AR} li > :not(ul) {
|
|
397
|
+
display: flex;
|
|
398
|
+
padding: 8px;
|
|
399
|
+
margin: 0;
|
|
400
|
+
align-items: center;
|
|
401
|
+
gap: 8px;
|
|
402
|
+
border-radius: 4px;
|
|
403
|
+
}
|
|
404
|
+
#${AR} button {
|
|
405
|
+
width: 100%;
|
|
406
|
+
border: 0;
|
|
407
|
+
background: transparent;
|
|
408
|
+
color: inherit;
|
|
409
|
+
text-align: left;
|
|
410
|
+
font-family: inherit;
|
|
411
|
+
font-size: inherit;
|
|
412
|
+
}
|
|
413
|
+
#${AR} button:focus-visible {
|
|
414
|
+
outline-color: #029CFD;
|
|
415
|
+
}
|
|
416
|
+
#${AR} button:hover {
|
|
417
|
+
background: rgba(2, 156, 253, 0.07);
|
|
418
|
+
color: #029CFD;
|
|
419
|
+
cursor: pointer;
|
|
420
|
+
}
|
|
421
|
+
#${AR} li code {
|
|
422
|
+
white-space: nowrap;
|
|
423
|
+
overflow: hidden;
|
|
424
|
+
text-overflow: ellipsis;
|
|
425
|
+
line-height: 16px;
|
|
426
|
+
font-size: 11px;
|
|
427
|
+
}
|
|
428
|
+
#${AR} li svg {
|
|
429
|
+
flex-shrink: 0;
|
|
430
|
+
margin: 1px;
|
|
431
|
+
color: #73828C;
|
|
432
|
+
}
|
|
433
|
+
#${AR} li > button:hover svg, #${AR} li > button:focus-visible svg {
|
|
434
|
+
color: #029CFD;
|
|
435
|
+
}
|
|
436
|
+
#${AR} .element-list li svg {
|
|
437
|
+
display: none;
|
|
438
|
+
}
|
|
439
|
+
#${AR} li.selectable svg, #${AR} li.selected svg {
|
|
440
|
+
display: block;
|
|
441
|
+
}
|
|
442
|
+
#${AR} .menu-list {
|
|
443
|
+
border-top: 1px solid rgba(38, 85, 115, 0.15);
|
|
444
|
+
}
|
|
445
|
+
#${AR} .menu-list > li:not(:last-child) {
|
|
446
|
+
padding-bottom: 4px;
|
|
447
|
+
margin-bottom: 4px;
|
|
448
|
+
border-bottom: 1px solid rgba(38, 85, 115, 0.15);
|
|
449
|
+
}
|
|
450
|
+
#${AR} .menu-items, #${AR} .menu-items li {
|
|
451
|
+
padding: 0;
|
|
452
|
+
}
|
|
453
|
+
#${AR} .menu-item {
|
|
454
|
+
display: flex;
|
|
455
|
+
}
|
|
456
|
+
#${AR} .menu-item-content {
|
|
457
|
+
display: flex;
|
|
458
|
+
flex-direction: column;
|
|
459
|
+
flex-grow: 1;
|
|
460
|
+
}
|
|
461
|
+
`]))}let r=u.get(),i=r?[r]:s.get();if(i.length&&(n.style.position=getComputedStyle(i[0].element).position===`fixed`?`fixed`:`absolute`,n.appendChild(mR(`ul`,{class:`element-list`},i.map(e=>{let t=i.length>1&&!!e.menu?.some(t=>t.some(t=>!t.selectors||t.selectors.some(t=>e.selectors.includes(t)))),n=t?{class:`selectable`,onClick:()=>u.set(e),onMouseEnter:()=>l.set(e),onMouseLeave:()=>l.set(void 0)}:r?{class:`selected`,onClick:()=>u.set(void 0)}:{},a=t||r;return mR(`li`,n,[mR(a?`button`:`div`,a?{type:`button`}:{},[r?hR(`chevronLeft`):null,mR(`code`,{},[e.element.outerHTML]),t?hR(`chevronRight`):null])])})))),u.get()||s.get().length===1){let t=u.get()||s.get()[0],r=t.menu?.filter(e=>e.some(e=>!e.selectors||e.selectors.some(e=>t.selectors.includes(e))));r?.length&&n.appendChild(mR(`ul`,{class:`menu-list`},r.map(n=>mR(`li`,{},[mR(`ul`,{class:`menu-items`},n.map(({id:n,title:r,description:i,iconLeft:a,iconRight:o,clickEvent:s})=>{let c=s&&(()=>e.emit(s,n,kR(t)));return mR(`li`,{},[mR(c?`button`:`div`,c?{class:`menu-item`,type:`button`,onClick:c}:{class:`menu-item`},[a?hR(a):null,mR(`div`,{class:`menu-item-content`},[mR(i?`strong`:`span`,{},[r]),i&&mR(`span`,{},[i])]),o?hR(o):null])])}))]))))}let o=a.get();o?(Object.assign(n.style,{display:`block`,left:`${n.style.position===`fixed`?o.x-window.scrollX:o.x}px`,top:`${n.style.position===`fixed`?o.y-window.scrollY:o.y}px`}),DR(n),requestAnimationFrame(()=>ER(n,o,{topOffset:15,centered:!0}))):(OR(n),Object.assign(n.style,{display:`none`}))};s.subscribe(g),u.subscribe(g);let _=e=>{let t=gR(e);n.set(e=>{let n=t.id?e.filter(e=>e.id!==t.id):e;return t.selectors?.length?[...n,t]:n})},v=e=>{e&&n.set(t=>t.filter(t=>t.id!==e))},y=()=>{n.set([]),r.set(new Map),i.set([]),a.set(void 0),o.set(void 0),s.set([]),c.set([]),l.set(void 0),u.set(void 0)},b;t.body.addEventListener(`mousemove`,e=>{requestAnimationFrame(()=>o.set({x:e.pageX,y:e.pageY}))}),e.on(oR,_),e.on(sR,v),e.on(cR,y),e.on(lR,(e,r)=>{let i=`scrollIntoView-highlight`;clearTimeout(b),v(i);let a=t.querySelector(e);if(!a){console.warn(`Cannot scroll into view: ${e} not found`);return}a.scrollIntoView({behavior:`smooth`,block:`center`,...r});let o=`kf-${Math.random().toString(36).substring(2,15)}`;n.set(t=>[...t,{id:i,priority:1e3,selectors:[e],styles:{outline:`2px solid #1EA7FD`,outlineOffset:`-1px`,animation:`${o} 3s linear forwards`},keyframes:`@keyframes ${o} {
|
|
462
|
+
0% { outline: 2px solid #1EA7FD; }
|
|
463
|
+
20% { outline: 2px solid #1EA7FD00; }
|
|
464
|
+
40% { outline: 2px solid #1EA7FD; }
|
|
465
|
+
60% { outline: 2px solid #1EA7FD00; }
|
|
466
|
+
80% { outline: 2px solid #1EA7FD; }
|
|
467
|
+
100% { outline: 2px solid #1EA7FD00; }
|
|
468
|
+
}`}]),b=setTimeout(()=>v(i),3500)}),e.on(Wa,({newPhase:e})=>{e===`loading`&&y()})});var NR=()=>({}),PR=`storybook/measure-addon`;`${PR}`;var FR=`measureEnabled`;`${PR}`,`${PR}`,`${PR}`;function IR(){let e=W.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function LR(){let e=W.document.createElement(`canvas`);e.id=`storybook-addon-measure`;let t=e.getContext(`2d`);Tu(t!=null);let{width:n,height:r}=IR();return RR(e,t,{width:n,height:r}),e.style.position=`absolute`,e.style.left=`0`,e.style.top=`0`,e.style.zIndex=`2147483647`,e.style.pointerEvents=`none`,W.document.body.appendChild(e),{canvas:e,context:t,width:n,height:r}}function RR(e,t,{width:n,height:r}){e.style.width=`${n}px`,e.style.height=`${r}px`;let i=W.window.devicePixelRatio;e.width=Math.floor(n*i),e.height=Math.floor(r*i),t.scale(i,i)}var zR={};function BR(){zR.canvas||(zR=LR())}function VR(){zR.context&&zR.context.clearRect(0,0,zR.width??0,zR.height??0)}function HR(e){VR(),e(zR.context)}function UR(){Tu(zR.canvas,`Canvas should exist in the state.`),Tu(zR.context,`Context should exist in the state.`),RR(zR.canvas,zR.context,{width:0,height:0});let{width:e,height:t}=IR();RR(zR.canvas,zR.context,{width:e,height:t}),zR.width=e,zR.height=t}function WR(){zR.canvas&&(VR(),zR.canvas.parentNode?.removeChild(zR.canvas),zR={})}var GR={margin:`#f6b26b`,border:`#ffe599`,padding:`#93c47d`,content:`#6fa8dc`,text:`#232020`},KR=6;function qR(e,{x:t,y:n,w:r,h:i,r:a}){t-=r/2,n-=i/2,r<2*a&&(a=r/2),i<2*a&&(a=i/2),e.beginPath(),e.moveTo(t+a,n),e.arcTo(t+r,n,t+r,n+i,a),e.arcTo(t+r,n+i,t,n+i,a),e.arcTo(t,n+i,t,n,a),e.arcTo(t,n,t+r,n,a),e.closePath()}function JR(e,{padding:t,border:n,width:r,height:i,top:a,left:o}){let s=r-n.left-n.right-t.left-t.right,c=i-t.top-t.bottom-n.top-n.bottom,l=o+n.left+t.left,u=a+n.top+t.top;return e===`top`?l+=s/2:e===`right`?(l+=s,u+=c/2):e===`bottom`?(l+=s/2,u+=c):e===`left`?u+=c/2:e===`center`&&(l+=s/2,u+=c/2),{x:l,y:u}}function YR(e,t,{margin:n,border:r,padding:i},a,o){let s=e=>0,c=0,l=0,u=o?1:.5,d=o?a*2:0;return e===`padding`?s=e=>i[e]*u+d:e===`border`?s=e=>i[e]+r[e]*u+d:e===`margin`&&(s=e=>i[e]+r[e]+n[e]*u+d),t===`top`?l=-s(`top`):t===`right`?c=s(`right`):t===`bottom`?l=s(`bottom`):t===`left`&&(c=-s(`left`)),{offsetX:c,offsetY:l}}function XR(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 ZR(e,t,n){return e===`top`?t.y=n.y-n.h-KR:e===`right`?t.x=n.x+n.w/2+KR+t.w/2:e===`bottom`?t.y=n.y+n.h+KR:e===`left`&&(t.x=n.x-n.w/2-KR-t.w/2),{x:t.x,y:t.y}}function QR(e,t,{x:n,y:r,w:i,h:a},o){return qR(e,{x:n,y:r,w:i,h:a,r:3}),e.fillStyle=`${GR[t]}dd`,e.fill(),e.strokeStyle=GR[t],e.stroke(),e.fillStyle=GR.text,e.fillText(o,n,r),qR(e,{x:n,y:r,w:i,h:a,r:3}),e.fillStyle=`${GR[t]}dd`,e.fill(),e.strokeStyle=GR[t],e.stroke(),e.fillStyle=GR.text,e.fillText(o,n,r),{x:n,y:r,w:i,h:a}}function $R(e,t){e.font=`600 12px monospace`,e.textBaseline=`middle`,e.textAlign=`center`;let n=e.measureText(t),r=n.actualBoundingBoxAscent+n.actualBoundingBoxDescent;return{w:n.width+KR*2,h:r+KR*2}}function ez(e,t,{type:n,position:r=`center`,text:i},a,o=!1){let{x:s,y:c}=JR(r,t),{offsetX:l,offsetY:u}=YR(n,r,t,KR+1,o);s+=l,c+=u;let{w:d,h:f}=$R(e,i);if(a&&XR({x:s,y:c,w:d,h:f},a)){let e=ZR(r,{x:s,y:c,w:d,h:f},a);s=e.x,c=e.y}return QR(e,n,{x:s,y:c,w:d,h:f},i)}function tz(e,{w:t,h:n}){let r=t*.5+KR,i=n*.5+KR;return{offsetX:(e.x===`left`?-1:1)*r,offsetY:(e.y===`top`?-1:1)*i}}function nz(e,t,{type:n,text:r}){let{floatingAlignment:i,extremities:a}=t,o=a[i.x],s=a[i.y],{w:c,h:l}=$R(e,r),{offsetX:u,offsetY:d}=tz(i,{w:c,h:l});return o+=u,s+=d,QR(e,n,{x:o,y:s,w:c,h:l},r)}function rz(e,t,n,r){let i=[];n.forEach((n,a)=>{i[a]=r&&n.position===`center`?nz(e,t,n):ez(e,t,n,i[a-1],r)})}function iz(e,t,n,r){let i=n.reduce((e,t)=>(Object.prototype.hasOwnProperty.call(e,t.position)||(e[t.position]=[]),e[t.position]?.push(t),e),{});i.top&&rz(e,t,i.top,r),i.right&&rz(e,t,i.right,r),i.bottom&&rz(e,t,i.bottom,r),i.left&&rz(e,t,i.left,r),i.center&&rz(e,t,i.center,r)}var az={margin:`#f6b26ba8`,border:`#ffe599a8`,padding:`#93c47d8c`,content:`#6fa8dca8`},oz=30;function sz(e){return parseInt(e.replace(`px`,``),10)}function cz(e){return Number.isInteger(e)?e:e.toFixed(2)}function lz(e){return e.filter(e=>e.text!==0&&e.text!==`0`)}function uz(e){let t={top:W.window.scrollY,bottom:W.window.scrollY+W.window.innerHeight,left:W.window.scrollX,right:W.window.scrollX+W.window.innerWidth},n={top:Math.abs(t.top-e.top),bottom:Math.abs(t.bottom-e.bottom),left:Math.abs(t.left-e.left),right:Math.abs(t.right-e.right)};return{x:n.left>n.right?`left`:`right`,y:n.top>n.bottom?`top`:`bottom`}}function dz(e){let t=W.getComputedStyle(e),{top:n,left:r,right:i,bottom:a,width:o,height:s}=e.getBoundingClientRect(),{marginTop:c,marginBottom:l,marginLeft:u,marginRight:d,paddingTop:f,paddingBottom:p,paddingLeft:m,paddingRight:h,borderBottomWidth:g,borderTopWidth:_,borderLeftWidth:v,borderRightWidth:y}=t;n+=W.window.scrollY,r+=W.window.scrollX,a+=W.window.scrollY,i+=W.window.scrollX;let b={top:sz(c),bottom:sz(l),left:sz(u),right:sz(d)},x={top:sz(f),bottom:sz(p),left:sz(m),right:sz(h)},S={top:sz(_),bottom:sz(g),left:sz(v),right:sz(y)},C={top:n-b.top,bottom:a+b.bottom,left:r-b.left,right:i+b.right};return{margin:b,padding:x,border:S,top:n,left:r,bottom:a,right:i,width:o,height:s,extremities:C,floatingAlignment:uz(C)}}function fz(e,{margin:t,width:n,height:r,top:i,left:a,bottom:o,right:s}){let c=r+t.bottom+t.top;return e.fillStyle=az.margin,e.fillRect(a,i-t.top,n,t.top),e.fillRect(s,i-t.top,t.right,c),e.fillRect(a,o,n,t.bottom),e.fillRect(a-t.left,i-t.top,t.left,c),lz([{type:`margin`,text:cz(t.top),position:`top`},{type:`margin`,text:cz(t.right),position:`right`},{type:`margin`,text:cz(t.bottom),position:`bottom`},{type:`margin`,text:cz(t.left),position:`left`}])}function pz(e,{padding:t,border:n,width:r,height:i,top:a,left:o,bottom:s,right:c}){let l=r-n.left-n.right,u=i-t.top-t.bottom-n.top-n.bottom;return e.fillStyle=az.padding,e.fillRect(o+n.left,a+n.top,l,t.top),e.fillRect(c-t.right-n.right,a+t.top+n.top,t.right,u),e.fillRect(o+n.left,s-t.bottom-n.bottom,l,t.bottom),e.fillRect(o+n.left,a+t.top+n.top,t.left,u),lz([{type:`padding`,text:t.top,position:`top`},{type:`padding`,text:t.right,position:`right`},{type:`padding`,text:t.bottom,position:`bottom`},{type:`padding`,text:t.left,position:`left`}])}function mz(e,{border:t,width:n,height:r,top:i,left:a,bottom:o,right:s}){let c=r-t.top-t.bottom;return e.fillStyle=az.border,e.fillRect(a,i,n,t.top),e.fillRect(a,o-t.bottom,n,t.bottom),e.fillRect(a,i+t.top,t.left,c),e.fillRect(s-t.right,i+t.top,t.right,c),lz([{type:`border`,text:t.top,position:`top`},{type:`border`,text:t.right,position:`right`},{type:`border`,text:t.bottom,position:`bottom`},{type:`border`,text:t.left,position:`left`}])}function hz(e,{padding:t,border:n,width:r,height:i,top:a,left:o}){let s=r-n.left-n.right-t.left-t.right,c=i-t.top-t.bottom-n.top-n.bottom;return e.fillStyle=az.content,e.fillRect(o+n.left+t.left,a+n.top+t.top,s,c),[{type:`content`,position:`center`,text:`${cz(s)} x ${cz(c)}`}]}function gz(e){return t=>{if(e&&t){let n=dz(e),r=fz(t,n),i=pz(t,n),a=mz(t,n),o=hz(t,n),s=n.width<=oz*3||n.height<=oz;iz(t,n,[...o,...i,...a,...r],s)}}}function _z(e){HR(gz(e))}var vz=(e,t)=>{let n=W.document.elementFromPoint(e,t),r=n=>{if(n&&n.shadowRoot){let i=n.shadowRoot.elementFromPoint(e,t);return n.isEqualNode(i)?n:i.shadowRoot?r(i):i}return n};return r(n)||n},yz,bz={x:0,y:0};function xz(e,t){yz=vz(e,t),_z(yz)}var Sz=globalThis.FEATURES?.measure?[(e,t)=>{let{measureEnabled:n}=t.globals||{};return Xd(()=>{if(typeof globalThis.document>`u`)return;let e=e=>{window.requestAnimationFrame(()=>{e.stopPropagation(),bz.x=e.clientX,bz.y=e.clientY})};return globalThis.document.addEventListener(`pointermove`,e),()=>{globalThis.document.removeEventListener(`pointermove`,e)}},[]),Xd(()=>{let e=e=>{window.requestAnimationFrame(()=>{e.stopPropagation(),xz(e.clientX,e.clientY)})},r=()=>{window.requestAnimationFrame(()=>{UR()})};return t.viewMode===`story`&&n&&(globalThis.document.addEventListener(`pointerover`,e),BR(),globalThis.window.addEventListener(`resize`,r),xz(bz.x,bz.y)),()=>{globalThis.window.removeEventListener(`resize`,r),WR()}},[n,t.viewMode]),e()}]:[],Cz={[FR]:!1},wz=()=>({decorators:Sz,initialGlobals:Cz}),Tz=`outline`,Ez=e=>{(Array.isArray(e)?e:[e]).forEach(Dz)},Dz=e=>{let t=typeof e==`string`?e:e.join(``),n=W.document.getElementById(t);n&&n.parentElement&&n.parentElement.removeChild(n)},Oz=(e,t)=>{let n=W.document.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let n=W.document.createElement(`style`);n.setAttribute(`id`,e),n.innerHTML=t,W.document.head.appendChild(n)}};function kz(e){return So`
|
|
469
|
+
${e} body {
|
|
470
|
+
outline: 1px solid #2980b9 !important;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
${e} article {
|
|
474
|
+
outline: 1px solid #3498db !important;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
${e} nav {
|
|
478
|
+
outline: 1px solid #0088c3 !important;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
${e} aside {
|
|
482
|
+
outline: 1px solid #33a0ce !important;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
${e} section {
|
|
486
|
+
outline: 1px solid #66b8da !important;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
${e} header {
|
|
490
|
+
outline: 1px solid #99cfe7 !important;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
${e} footer {
|
|
494
|
+
outline: 1px solid #cce7f3 !important;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
${e} h1 {
|
|
498
|
+
outline: 1px solid #162544 !important;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
${e} h2 {
|
|
502
|
+
outline: 1px solid #314e6e !important;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
${e} h3 {
|
|
506
|
+
outline: 1px solid #3e5e85 !important;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
${e} h4 {
|
|
510
|
+
outline: 1px solid #449baf !important;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
${e} h5 {
|
|
514
|
+
outline: 1px solid #c7d1cb !important;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
${e} h6 {
|
|
518
|
+
outline: 1px solid #4371d0 !important;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
${e} main {
|
|
522
|
+
outline: 1px solid #2f4f90 !important;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
${e} address {
|
|
526
|
+
outline: 1px solid #1a2c51 !important;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
${e} div {
|
|
530
|
+
outline: 1px solid #036cdb !important;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
${e} p {
|
|
534
|
+
outline: 1px solid #ac050b !important;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
${e} hr {
|
|
538
|
+
outline: 1px solid #ff063f !important;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
${e} pre {
|
|
542
|
+
outline: 1px solid #850440 !important;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
${e} blockquote {
|
|
546
|
+
outline: 1px solid #f1b8e7 !important;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
${e} ol {
|
|
550
|
+
outline: 1px solid #ff050c !important;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
${e} ul {
|
|
554
|
+
outline: 1px solid #d90416 !important;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
${e} li {
|
|
558
|
+
outline: 1px solid #d90416 !important;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
${e} dl {
|
|
562
|
+
outline: 1px solid #fd3427 !important;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
${e} dt {
|
|
566
|
+
outline: 1px solid #ff0043 !important;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
${e} dd {
|
|
570
|
+
outline: 1px solid #e80174 !important;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
${e} figure {
|
|
574
|
+
outline: 1px solid #ff00bb !important;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
${e} figcaption {
|
|
578
|
+
outline: 1px solid #bf0032 !important;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
${e} table {
|
|
582
|
+
outline: 1px solid #00cc99 !important;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
${e} caption {
|
|
586
|
+
outline: 1px solid #37ffc4 !important;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
${e} thead {
|
|
590
|
+
outline: 1px solid #98daca !important;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
${e} tbody {
|
|
594
|
+
outline: 1px solid #64a7a0 !important;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
${e} tfoot {
|
|
598
|
+
outline: 1px solid #22746b !important;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
${e} tr {
|
|
602
|
+
outline: 1px solid #86c0b2 !important;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
${e} th {
|
|
606
|
+
outline: 1px solid #a1e7d6 !important;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
${e} td {
|
|
610
|
+
outline: 1px solid #3f5a54 !important;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
${e} col {
|
|
614
|
+
outline: 1px solid #6c9a8f !important;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
${e} colgroup {
|
|
618
|
+
outline: 1px solid #6c9a9d !important;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
${e} button {
|
|
622
|
+
outline: 1px solid #da8301 !important;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
${e} datalist {
|
|
626
|
+
outline: 1px solid #c06000 !important;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
${e} fieldset {
|
|
630
|
+
outline: 1px solid #d95100 !important;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
${e} form {
|
|
634
|
+
outline: 1px solid #d23600 !important;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
${e} input {
|
|
638
|
+
outline: 1px solid #fca600 !important;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
${e} keygen {
|
|
642
|
+
outline: 1px solid #b31e00 !important;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
${e} label {
|
|
646
|
+
outline: 1px solid #ee8900 !important;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
${e} legend {
|
|
650
|
+
outline: 1px solid #de6d00 !important;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
${e} meter {
|
|
654
|
+
outline: 1px solid #e8630c !important;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
${e} optgroup {
|
|
658
|
+
outline: 1px solid #b33600 !important;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
${e} option {
|
|
662
|
+
outline: 1px solid #ff8a00 !important;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
${e} output {
|
|
666
|
+
outline: 1px solid #ff9619 !important;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
${e} progress {
|
|
670
|
+
outline: 1px solid #e57c00 !important;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
${e} select {
|
|
674
|
+
outline: 1px solid #e26e0f !important;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
${e} textarea {
|
|
678
|
+
outline: 1px solid #cc5400 !important;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
${e} details {
|
|
682
|
+
outline: 1px solid #33848f !important;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
${e} summary {
|
|
686
|
+
outline: 1px solid #60a1a6 !important;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
${e} command {
|
|
690
|
+
outline: 1px solid #438da1 !important;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
${e} menu {
|
|
694
|
+
outline: 1px solid #449da6 !important;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
${e} del {
|
|
698
|
+
outline: 1px solid #bf0000 !important;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
${e} ins {
|
|
702
|
+
outline: 1px solid #400000 !important;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
${e} img {
|
|
706
|
+
outline: 1px solid #22746b !important;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
${e} iframe {
|
|
710
|
+
outline: 1px solid #64a7a0 !important;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
${e} embed {
|
|
714
|
+
outline: 1px solid #98daca !important;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
${e} object {
|
|
718
|
+
outline: 1px solid #00cc99 !important;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
${e} param {
|
|
722
|
+
outline: 1px solid #37ffc4 !important;
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
${e} video {
|
|
726
|
+
outline: 1px solid #6ee866 !important;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
${e} audio {
|
|
730
|
+
outline: 1px solid #027353 !important;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
${e} source {
|
|
734
|
+
outline: 1px solid #012426 !important;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
${e} canvas {
|
|
738
|
+
outline: 1px solid #a2f570 !important;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
${e} track {
|
|
742
|
+
outline: 1px solid #59a600 !important;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
${e} map {
|
|
746
|
+
outline: 1px solid #7be500 !important;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
${e} area {
|
|
750
|
+
outline: 1px solid #305900 !important;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
${e} a {
|
|
754
|
+
outline: 1px solid #ff62ab !important;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
${e} em {
|
|
758
|
+
outline: 1px solid #800b41 !important;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
${e} strong {
|
|
762
|
+
outline: 1px solid #ff1583 !important;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
${e} i {
|
|
766
|
+
outline: 1px solid #803156 !important;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
${e} b {
|
|
770
|
+
outline: 1px solid #cc1169 !important;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
${e} u {
|
|
774
|
+
outline: 1px solid #ff0430 !important;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
${e} s {
|
|
778
|
+
outline: 1px solid #f805e3 !important;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
${e} small {
|
|
782
|
+
outline: 1px solid #d107b2 !important;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
${e} abbr {
|
|
786
|
+
outline: 1px solid #4a0263 !important;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
${e} q {
|
|
790
|
+
outline: 1px solid #240018 !important;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
${e} cite {
|
|
794
|
+
outline: 1px solid #64003c !important;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
${e} dfn {
|
|
798
|
+
outline: 1px solid #b4005a !important;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
${e} sub {
|
|
802
|
+
outline: 1px solid #dba0c8 !important;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
${e} sup {
|
|
806
|
+
outline: 1px solid #cc0256 !important;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
${e} time {
|
|
810
|
+
outline: 1px solid #d6606d !important;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
${e} code {
|
|
814
|
+
outline: 1px solid #e04251 !important;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
${e} kbd {
|
|
818
|
+
outline: 1px solid #5e001f !important;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
${e} samp {
|
|
822
|
+
outline: 1px solid #9c0033 !important;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
${e} var {
|
|
826
|
+
outline: 1px solid #d90047 !important;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
${e} mark {
|
|
830
|
+
outline: 1px solid #ff0053 !important;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
${e} bdi {
|
|
834
|
+
outline: 1px solid #bf3668 !important;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
${e} bdo {
|
|
838
|
+
outline: 1px solid #6f1400 !important;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
${e} ruby {
|
|
842
|
+
outline: 1px solid #ff7b93 !important;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
${e} rt {
|
|
846
|
+
outline: 1px solid #ff2f54 !important;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
${e} rp {
|
|
850
|
+
outline: 1px solid #803e49 !important;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
${e} span {
|
|
854
|
+
outline: 1px solid #cc2643 !important;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
${e} br {
|
|
858
|
+
outline: 1px solid #db687d !important;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
${e} wbr {
|
|
862
|
+
outline: 1px solid #db175b !important;
|
|
863
|
+
}`}var Az=globalThis.FEATURES?.outline?[(e,t)=>{let n=t.globals||{},r=[!0,`true`].includes(n[Tz]),i=t.viewMode===`docs`,a=Hd(()=>kz(i?`[data-story-block="true"]`:`.sb-show-main`),[t]);return Xd(()=>{let e=i?`addon-outline-docs-${t.id}`:`addon-outline`;return r?Oz(e,a):Ez(e),()=>{Ez(e)}},[r,a,t]),e()}]:[],jz={[Tz]:!1},Mz=()=>({decorators:Az,initialGlobals:jz}),Nz=({parameters:e})=>{e?.test?.mockReset===!0?FE():e?.test?.clearMocks===!0?PE():e?.test?.restoreMocks!==!1&&IE()},Pz=(e,t=0,n)=>{if(t>5||e==null)return e;if(qw(e))return n&&e.mockName(n),e;if(typeof e==`function`&&`isAction`in e&&e.isAction&&!(`implicit`in e&&e.implicit)){let t=jE(e);return n&&t.mockName(n),t}if(Array.isArray(e)){t++;for(let n=0;n<e.length;n++)Object.getOwnPropertyDescriptor(e,n)?.writable&&(e[n]=Pz(e[n],t));return e}if(typeof e==`object`&&e.constructor===Object){t++;for(let[n,r]of Object.entries(e))Object.getOwnPropertyDescriptor(e,n)?.writable&&(e[n]=Pz(r,t,n));return e}return e},Fz=({initialArgs:e})=>{Pz(e)},Iz=!1,Lz=async e=>{globalThis.HTMLElement&&e.canvasElement instanceof globalThis.HTMLElement&&(e.canvas=OL(e.canvasElement));try{let t=globalThis.window?.navigator?.clipboard;if(t&&(e.userEvent=H_({userEvent:AL.setup()},{intercept:!0,getKeys:e=>Object.keys(e).filter(e=>e!==`eventWrapper`)}).userEvent,Object.defineProperty(globalThis.window.navigator,`clipboard`,{get:()=>t,configurable:!0}),!Iz)){let e=HTMLElement.prototype.focus,t=HTMLElement.prototype.focus,n=new Set;Object.defineProperties(HTMLElement.prototype,{focus:{configurable:!0,set:e=>{t=e},get(){return n.has(this)?e:(n.add(this),setTimeout(()=>n.delete(this),0),t)}}}),Iz=!0}}catch{}},Rz=()=>({loaders:[Nz,Fz,Lz]}),zz=`storybook/viewport`,Bz=`viewport`;`${zz}`,`${zz}`;var Vz={[Bz]:{value:void 0,isRotated:!1}},Hz=()=>({initialGlobals:Vz});function Uz(){return[(wz.default??wz)(),($L.default??$L)(),(NR.default??NR)(),(Mz.default??Mz)(),(Hz.default??Hz)(),(IL.default??IL)(),(tR.default??tR)(),(Rz.default??Rz)(),(iR.default??iR)()]}function Wz(e){return typeof e==`object`&&!!e&&`_tag`in e&&e?._tag===`Meta`}function Gz(e){return typeof e==`object`&&!!e&&`_tag`in e&&e?._tag===`Story`}function Kz(e){return`__children`in e?e.__children:[]}var qz=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,`-`).replace(/-+/g,`-`).replace(/^-+/,``).replace(/-+$/,``),Jz=(e,t)=>{let n=qz(e);if(n===``)throw Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return n},Yz=(e,t)=>`${Jz(e,`kind`)}${t?`--${Jz(t,`name`)}`:``}`,Xz=(e,t)=>`${e}:${Jz(t,`test`)}`,Zz=e=>rf(e);function Qz(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}function $z(e,{includeStories:t,excludeStories:n}){return e!==`__esModule`&&(!t||Qz(e,t))&&(!n||!Qz(e,n))}var eB=(...e)=>{let t=e.reduce((e,t)=>(t.startsWith(`!`)?e.delete(t.slice(1)):e.add(t),e),new Set);return Array.from(t)};function tB(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function nB(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var rB=`[object RegExp]`,iB=`[object String]`,aB=`[object Number]`,oB=`[object Boolean]`,sB=`[object Arguments]`,cB=`[object Symbol]`,lB=`[object Date]`,uB=`[object Map]`,dB=`[object Set]`,fB=`[object Array]`,pB=`[object Function]`,mB=`[object ArrayBuffer]`,hB=`[object Object]`,gB=`[object Error]`,_B=`[object DataView]`,vB=`[object Uint8Array]`,yB=`[object Uint8ClampedArray]`,bB=`[object Uint16Array]`,xB=`[object Uint32Array]`,SB=`[object BigUint64Array]`,CB=`[object Int8Array]`,wB=`[object Int16Array]`,TB=`[object Int32Array]`,EB=`[object BigInt64Array]`,DB=`[object Float32Array]`,OB=`[object Float64Array]`;function kB(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 AB(e,t){let n={},r=Object.keys(e);for(let i=0;i<r.length;i++){let a=r[i],o=e[a];n[a]=t(o,a,e)}return n}function jB(e,t){let n={},r=Object.keys(e);for(let i=0;i<r.length;i++){let a=r[i],o=e[a];t(o,a)&&(n[a]=o)}return n}var MB=w(Li(),1);function NB(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function PB(e,t,n){return FB(e,t,void 0,void 0,void 0,void 0,n)}function FB(e,t,n,r,i,a,o){let s=o(e,t,n,r,i,a);if(s!==void 0)return s;if(typeof e==typeof t)switch(typeof e){case`bigint`:case`string`:case`boolean`:case`symbol`:case`undefined`:return e===t;case`number`:return e===t||Object.is(e,t);case`function`:return e===t;case`object`:return IB(e,t,a,o)}return IB(e,t,a,o)}function IB(e,t,n,r){if(Object.is(e,t))return!0;let i=nB(e),a=nB(t);if(i===sB&&(i=hB),a===sB&&(a=hB),i!==a)return!1;switch(i){case iB:return e.toString()===t.toString();case aB:return NB(e.valueOf(),t.valueOf());case oB:case lB:case cB:return Object.is(e.valueOf(),t.valueOf());case rB:return e.source===t.source&&e.flags===t.flags;case pB:return e===t}n??=new Map;let o=n.get(e),s=n.get(t);if(o!=null&&s!=null)return o===t;n.set(e,t),n.set(t,e);try{switch(i){case uB:if(e.size!==t.size)return!1;for(let[i,a]of e.entries())if(!t.has(i)||!FB(a,t.get(i),i,e,t,n,r))return!1;return!0;case dB:{if(e.size!==t.size)return!1;let i=Array.from(e.values()),a=Array.from(t.values());for(let o=0;o<i.length;o++){let s=i[o],c=a.findIndex(i=>FB(s,i,void 0,e,t,n,r));if(c===-1)return!1;a.splice(c,1)}return!0}case fB:case vB:case yB:case bB:case xB:case SB:case CB:case wB:case TB:case EB:case DB:case OB:if(typeof Buffer<`u`&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!FB(e[i],t[i],i,e,t,n,r))return!1;return!0;case mB:return e.byteLength===t.byteLength?IB(new Uint8Array(e),new Uint8Array(t),n,r):!1;case _B:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:IB(new Uint8Array(e),new Uint8Array(t),n,r);case gB:return e.name===t.name&&e.message===t.message;case hB:{if(!(IB(e.constructor,t.constructor,n,r)||kB(e)&&kB(t)))return!1;let i=[...Object.keys(e),...tB(e)],a=[...Object.keys(t),...tB(t)];if(i.length!==a.length)return!1;for(let a=0;a<i.length;a++){let o=i[a],s=e[o];if(!Object.hasOwn(t,o))return!1;let c=t[o];if(!FB(s,c,o,e,t,n,r))return!1}return!0}default:return!1}}finally{n.delete(e),n.delete(t)}}function LB(){}function RB(e,t){return PB(e,t,LB)}var zB=Symbol(`incompatible`),BB=(e,t)=>{let n=t.type;if(e==null||!n||t.mapping)return e;switch(n.name){case`string`:return String(e);case`enum`:return e;case`number`:return Number(e);case`boolean`:return String(e)===`true`;case`array`:return!n.value||!Array.isArray(e)?zB:e.reduce((e,t,r)=>{let i=BB(t,{type:n.value});return i!==zB&&(e[r]=i),e},Array(e.length));case`object`:return typeof e==`string`||typeof e==`number`?e:!n.value||typeof e!=`object`?zB:Object.entries(e).reduce((e,[t,r])=>{let i=BB(r,{type:n.value[t]});return i===zB?e:Object.assign(e,{[t]:i})},{});case`other`:{let t=typeof e==`string`||typeof e==`number`||typeof e==`boolean`;return n.value===`ReactNode`&&t?e:zB}default:return zB}},VB=(e,t)=>Object.entries(e).reduce((e,[n,r])=>{if(!t[n])return e;let i=BB(r,t[n]);return i===zB?e:Object.assign(e,{[n]:i})},{}),HB=(e,t)=>Array.isArray(e)&&Array.isArray(t)?t.reduce((n,r,i)=>(n[i]=HB(e[i],t[i]),n),[...e]).filter(e=>e!==void 0):!kB(e)||!kB(t)?t:Object.keys({...e,...t}).reduce((n,r)=>{if(r in t){let i=HB(e[r],t[r]);i!==void 0&&(n[r]=i)}else n[r]=e[r];return n},{}),UB=(e,t)=>Object.entries(t).reduce((t,[n,{options:r}])=>{function i(){return n in e&&(t[n]=e[n]),t}if(!r)return i();if(!Array.isArray(r))return Lo.error(So`
|
|
864
|
+
Invalid argType: '${n}.options' should be an array.
|
|
865
|
+
|
|
866
|
+
More info: https://storybook.js.org/docs/api/arg-types?ref=error
|
|
867
|
+
`),i();if(r.some(e=>e&&[`object`,`function`].includes(typeof e)))return Lo.error(So`
|
|
868
|
+
Invalid argType: '${n}.options' should only contain primitives. Use a 'mapping' for complex values.
|
|
869
|
+
|
|
870
|
+
More info: https://storybook.js.org/docs/writing-stories/args?ref=error#mapping-to-complex-arg-values
|
|
871
|
+
`),i();let a=Array.isArray(e[n]),o=a&&e[n].findIndex(e=>!r.includes(e)),s=a&&o===-1;if(e[n]===void 0||r.includes(e[n])||s)return i();let c=a?`${n}[${o}]`:n,l=r.map(e=>typeof e==`string`?`'${e}'`:String(e)).join(`, `);return Lo.warn(`Received illegal value for '${c}'. Supported options: ${l}`),t},{}),WB=Symbol(`Deeply equal`),GB=(e,t)=>{if(typeof e!=typeof t)return t;if(RB(e,t))return WB;if(Array.isArray(e)&&Array.isArray(t)){let n=t.reduce((t,n,r)=>{let i=GB(e[r],n);return i!==WB&&(t[r]=i),t},Array(t.length));return t.length>=e.length?n:n.concat(Array(e.length-t.length).fill(void 0))}return kB(e)&&kB(t)?Object.keys({...e,...t}).reduce((n,r)=>{let i=GB(e?.[r],t?.[r]);return i===WB?n:Object.assign(n,{[r]:i})},{}):t},KB=`UNTARGETED`;function qB({args:e,argTypes:t}){let n={};return Object.entries(e).forEach(([e,r])=>{let{target:i=KB}=t[e]||{};n[i]=n[i]||{},n[i][e]=r}),n}function JB(e){return Object.keys(e).forEach(t=>e[t]===void 0&&delete e[t]),e}var YB=class{constructor(){this.initialArgsByStoryId={},this.argsByStoryId={}}get(e){if(!(e in this.argsByStoryId))throw Error(`No args known for ${e} -- has it been rendered yet?`);return this.argsByStoryId[e]}setInitial(e){if(!this.initialArgsByStoryId[e.id])this.initialArgsByStoryId[e.id]=e.initialArgs,this.argsByStoryId[e.id]=e.initialArgs;else if(this.initialArgsByStoryId[e.id]!==e.initialArgs){let t=GB(this.initialArgsByStoryId[e.id],this.argsByStoryId[e.id]);this.initialArgsByStoryId[e.id]=e.initialArgs,this.argsByStoryId[e.id]=e.initialArgs,t!==WB&&this.updateFromDelta(e,t)}}updateFromDelta(e,t){let n=UB(t,e.argTypes);this.argsByStoryId[e.id]=HB(this.argsByStoryId[e.id],n)}updateFromPersisted(e,t){let n=VB(t,e.argTypes);return this.updateFromDelta(e,n)}update(e,t){if(!(e in this.argsByStoryId))throw Error(`No args known for ${e} -- has it been rendered yet?`);this.argsByStoryId[e]=JB({...this.argsByStoryId[e],...t})}},XB=(e={})=>Object.entries(e).reduce((e,[t,{defaultValue:n}])=>(typeof n<`u`&&(e[t]=n),e),{}),ZB=class{constructor({globals:e={},globalTypes:t={}}){this.set({globals:e,globalTypes:t})}set({globals:e={},globalTypes:t={}}){let n=this.initialGlobals&&GB(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(e),...Object.keys(t)]),this.initialGlobals={...XB(t),...e},this.globals=this.initialGlobals,n&&n!==WB&&this.updateFromPersisted(n)}filterAllowedGlobals(e){return Object.entries(e).reduce((e,[t,n])=>(this.allowedGlobalNames.has(t)?e[t]=n:Fo.warn(`Attempted to set a global (${t}) that is not defined in initial globals or globalTypes`),e),{})}updateFromPersisted(e){let t=this.filterAllowedGlobals(e);this.globals={...this.globals,...t}}get(){return this.globals}update(e){this.globals={...this.globals,...this.filterAllowedGlobals(e)};for(let t in e)e[t]===void 0&&(this.globals[t]=this.initialGlobals[t])}},QB=(0,w(Li(),1).default)(1)(e=>Object.values(e).reduce((e,t)=>(e[t.importPath]=e[t.importPath]||t,e),{})),$B=class{constructor({entries:e}={v:5,entries:{}}){this.entries=e}entryFromSpecifier(e){let t=Object.values(this.entries);if(e===`*`)return t[0];if(typeof e==`string`)return this.entries[e]?this.entries[e]:t.find(t=>t.id.startsWith(e));let{name:n,title:r}=e;return t.find(e=>e.name===n&&e.title===r)}storyIdToEntry(e){let t=this.entries[e];if(!t)throw new Wu({storyId:e});return t}importPathToEntry(e){return QB(this.entries)[e]}},eV=e=>typeof e==`string`?{name:e}:e,tV=e=>typeof e==`string`?{type:e}:e,nV=(e,t)=>{let{type:n,control:r,...i}=e,a={name:t,...i};return n&&(a.type=eV(n)),r?a.control=tV(r):r===!1&&(a.control={disable:!0}),a},rV=e=>AB(e,nV),iV=e=>Array.isArray(e)?e:e?[e]:[],aV=So`
|
|
872
|
+
CSF .story annotations deprecated; annotate story functions directly:
|
|
873
|
+
- StoryFn.story.name => StoryFn.storyName
|
|
874
|
+
- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
|
|
875
|
+
See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
|
|
876
|
+
`;function oV(e,t,n){let r=t,i=typeof t==`function`?t:null,{story:a}=r;a&&(Fo.debug(`deprecated story`,a),Ro(aV));let o=Zz(e),s=typeof r!=`function`&&r.name||r.storyName||a?.name||o,c=[...iV(r.decorators),...iV(a?.decorators)],l={...a?.parameters,...r.parameters},u={...a?.args,...r.args},d={...a?.argTypes,...r.argTypes},f=[...iV(r.loaders),...iV(a?.loaders)],p=[...iV(r.beforeEach),...iV(a?.beforeEach)],m=[...iV(r.afterEach),...iV(a?.afterEach)],{render:h,play:g,tags:_=[],globals:v={}}=r;return{moduleExport:t,id:l.__id||Yz(n.id,o),name:s,tags:_,decorators:c,parameters:l,args:u,argTypes:rV(d),loaders:f,beforeEach:p,afterEach:m,globals:v,...h&&{render:h},...i&&{userStoryFn:i},...g&&{play:g}}}function sV(e,t=e.title,n){let{id:r,argTypes:i}=e;return{id:qz(r||t),...e,title:t,...i&&{argTypes:rV(i)},parameters:{fileName:n,...e.parameters}}}var cV=e=>{let{globals:t,globalTypes:n}=e;(t||n)&&Fo.error(`Global args/argTypes can only be set globally`,JSON.stringify({globals:t,globalTypes:n}))},lV=e=>{let{options:t}=e;t?.storySort&&Fo.error(`The storySort option parameter can only be set globally`)},uV=e=>{e&&(cV(e),lV(e))};function dV(e,t,n){let{default:r,__namedExportsOrder:i,...a}=e,o=Object.values(a).find(e=>Gz(e));if(o){let r=sV(o.meta.input,n,t);uV(r.parameters);let i={meta:r,stories:{},moduleExports:e};return Object.keys(a).forEach(e=>{if($z(e,r)&&Gz(a[e])){let t=a[e],n=oV(e,t.input,r);uV(n.parameters),i.stories[n.id]=n,Kz(t).forEach(e=>{let t=e.input.name,a=Xz(n.id,t);e.input.parameters??={},e.input.parameters.__id=a,i.stories[a]=oV(t,e.input,r)})}}),i.projectAnnotations=o.meta.preview.composed,i}let s=sV(r,n,t);uV(s.parameters);let c={meta:s,stories:{},moduleExports:e};return Object.keys(a).forEach(e=>{if($z(e,s)){let t=oV(e,a[e],s);uV(t.parameters),c.stories[t.id]=t}}),c}function fV(e,t,n){let r=n(e);return e=>t(r,e)}function pV({componentId:e,title:t,kind:n,id:r,name:i,story:a,parameters:o,initialArgs:s,argTypes:c,...l}={}){return l}function mV(e,t){let n={},r=e=>t=>{if(!n.value)throw Error(`Decorated function called without init`);return n.value={...n.value,...pV(t)},e(n.value)},i=t.reduce((e,t)=>fV(e,t,r),e);return e=>(n.value=e,i(e))}var hV=(...e)=>{let t={},n=e.filter(Boolean),r=n.reduce((e,n)=>(Object.entries(n).forEach(([n,r])=>{let i=e[n];Array.isArray(r)||typeof i>`u`?e[n]=r:kB(r)&&kB(i)?t[n]=!0:typeof r<`u`&&(e[n]=r)}),e),{});return Object.keys(t).forEach(e=>{let t=n.filter(Boolean).map(t=>t[e]).filter(e=>typeof e<`u`);t.every(e=>kB(e))?r[e]=hV(...t):r[e]=t[t.length-1]}),r};function gV(e,t,n){let{moduleExport:r,id:i,name:a}=e||{},o=vV(e,t,n),s=async r=>{let i={};for(let a of[iV(n.loaders),iV(t.loaders),iV(e.loaders)]){if(r.abortSignal.aborted)return i;let e=await Promise.all(a.map(e=>e(r)));Object.assign(i,...e)}return i},c=async r=>{let i=[];for(let a of[...iV(n.beforeEach),...iV(t.beforeEach),...iV(e.beforeEach)]){if(r.abortSignal.aborted)return i;let e=await a(r);e&&i.push(e)}return i},l=async r=>{let i=[...iV(n.afterEach),...iV(t.afterEach),...iV(e.afterEach)].reverse();for(let e of i){if(r.abortSignal.aborted)return;await e(r)}},u=e=>e.originalStoryFn(e.args,e),{applyDecorators:d=mV,runStep:f}=n,p=[...iV(e?.decorators),...iV(t?.decorators),...iV(n?.decorators)],m=e?.userStoryFn||e?.render||t.render||n.render,h=Fd(d)(u,p),g=e=>h(e),_=e?.play??t?.play,v=lf(_);if(!m&&!v)throw new nd({id:i});let y=e.mount??t.mount??n.mount??(e=>async()=>(await e.renderToCanvas(),e.canvas)),b=n.testingLibraryRender;return{storyGlobals:{},...o,moduleExport:r,id:i,name:a,story:a,originalStoryFn:m,undecoratedStoryFn:u,unboundStoryFn:g,applyLoaders:s,applyBeforeEach:c,applyAfterEach:l,playFunction:_,runStep:f,mount:y,testingLibraryRender:b,renderToCanvas:n.renderToCanvas,usesMount:v}}function _V(e,t,n){return{...vV(void 0,e,t),moduleExport:n}}function vV(e,t,n){let r=[pf.DEV,pf.TEST],i=W.DOCS_OPTIONS?.autodocs===!0?[pf.AUTODOCS]:[],a=e?.tags?.includes(pf.TEST_FN)?[`!${pf.AUTODOCS}`]:[],o=eB(...r,...i,...n.tags??[],...t.tags??[],...a,...e?.tags??[]),s=hV(n.parameters,t.parameters,e?.parameters),{argTypesEnhancers:c=[],argsEnhancers:l=[]}=n,u=hV(n.argTypes,t.argTypes,e?.argTypes);if(e){let r=e?.userStoryFn||e?.render||t.render||n.render;s.__isArgsStory=r&&r.length>0}let d={...n.args,...t.args,...e?.args},f={...t.globals,...e?.globals},p={componentId:t.id,title:t.title,kind:t.title,id:e?.id||t.id,name:e?.name||`__meta`,story:e?.name||`__meta`,component:t.component,subcomponents:t.subcomponents,tags:o,parameters:s,initialArgs:d,argTypes:u,storyGlobals:f};p.argTypes=c.reduce((e,t)=>t({...p,argTypes:e}),p.argTypes);let m={...d};p.initialArgs=[...l].reduce((e,t)=>({...e,...t({...p,initialArgs:e})}),m);let{name:h,story:g,..._}=p;return _}function yV(e){let{args:t}=e,n={...e,allArgs:void 0,argsByTarget:void 0};if(W.FEATURES?.argTypeTargetsV7){let t=qB(e);n={...e,allArgs:e.args,argsByTarget:t,args:t[KB]||{}}}let r=Object.entries(n.args).reduce((e,[t,r])=>{if(!n.argTypes[t]?.mapping)return e[t]=r,e;let i=e=>{let r=n.argTypes[t].mapping;return r&&e in r?r[e]:e};return e[t]=Array.isArray(r)?r.map(i):i(r),e},{}),i=Object.entries(r).reduce((e,[t,i])=>(cf(n.argTypes[t]||{},r,n.globals)&&(e[t]=i),e),{});return{...n,unmappedArgs:t,args:i}}var bV=(e,t,n)=>{let r=typeof e;switch(r){case`boolean`:case`string`:case`number`:case`function`:case`symbol`:return{name:r};default:break}return e?n.has(e)?(Fo.warn(So`
|
|
877
|
+
We've detected a cycle in arg '${t}'. Args should be JSON-serializable.
|
|
878
|
+
|
|
879
|
+
Consider using the mapping feature or fully custom args:
|
|
880
|
+
- Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
|
|
881
|
+
- Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args
|
|
882
|
+
`),{name:`other`,value:`cyclic object`}):(n.add(e),Array.isArray(e)?{name:`array`,value:e.length>0?bV(e[0],t,new Set(n)):{name:`other`,value:`unknown`}}:{name:`object`,value:AB(e,e=>bV(e,t,new Set(n)))}):{name:`object`,value:{}}},xV=e=>{let{id:t,argTypes:n={},initialArgs:r={}}=e;return hV(AB(r,(e,n)=>({name:n,type:bV(e,`${t}.${n}`,new Set)})),AB(n,(e,t)=>({name:t})),n)};xV.secondPass=!0;var SV=(e,t)=>Array.isArray(t)?t.includes(e):e.match(t),CV=(e,t,n)=>!t&&!n?e:e&&jB(e,(e,r)=>{let i=e.name||r.toString();return!!(!t||SV(i,t))&&(!n||!SV(i,n))}),wV=(e,t,n)=>{let{type:r,options:i}=e;if(r){if(n.color&&n.color.test(t)){let e=r.name;if(e===`string`)return{control:{type:`color`}};e!==`enum`&&Fo.warn(`Addon controls: Control of type color only supports string, received "${e}" instead`)}if(n.date&&n.date.test(t))return{control:{type:`date`}};switch(r.name){case`array`:return{control:{type:`object`}};case`boolean`:return{control:{type:`boolean`}};case`string`:return{control:{type:`text`}};case`number`:return{control:{type:`number`}};case`enum`:{let{value:e}=r;return{control:{type:e?.length<=5?`radio`:`select`},options:e}}case`function`:case`symbol`:return null;default:return{control:{type:i?`select`:`object`}}}}},TV=e=>{let{argTypes:t,parameters:{__isArgsStory:n,controls:{include:r=null,exclude:i=null,matchers:a={}}={}}}=e;if(!n)return t;let o=CV(t,r,i);return hV(AB(o,(e,t)=>e?.type&&wV(e,t.toString(),a)),o)};TV.secondPass=!0;function EV({argTypes:e,argTypesEnhancers:t,decorators:n,loaders:r,beforeEach:i,afterEach:a,initialGlobals:o,...s}){return{...e&&{argTypes:rV(e)},decorators:iV(n),loaders:iV(r),beforeEach:iV(i),afterEach:iV(a),argTypesEnhancers:[...t||[],xV,TV],initialGlobals:o,...s}}var DV=e=>async()=>{let t=[];for(let n of e){let e=await n();e&&t.unshift(e)}return async()=>{for(let e of t)await e()}};function OV(e){return async(t,n,r)=>{await e.reduceRight((e,n)=>async()=>n(t,e,r),async()=>n(r))()}}function kV(e,t){return e.map(e=>e.default?.[t]??e[t]).filter(Boolean)}function AV(e,t,n={}){return kV(e,t).reduce((e,t)=>{let r=iV(t);return n.reverseFileOrder?[...r,...e]:[...e,...r]},[])}function jV(e,t){return Object.assign({},...kV(e,t))}function MV(e,t){return kV(e,t).pop()}function NV(e){let t=AV(e,`argTypesEnhancers`),n=kV(e,`runStep`),r=AV(e,`beforeAll`);return{parameters:hV(...kV(e,`parameters`)),decorators:AV(e,`decorators`,{reverseFileOrder:!(W.FEATURES?.legacyDecoratorFileOrder??!1)}),args:jV(e,`args`),argsEnhancers:AV(e,`argsEnhancers`),argTypes:jV(e,`argTypes`),argTypesEnhancers:[...t.filter(e=>!e.secondPass),...t.filter(e=>e.secondPass)],initialGlobals:jV(e,`initialGlobals`),globalTypes:jV(e,`globalTypes`),loaders:AV(e,`loaders`),beforeAll:DV(r),beforeEach:AV(e,`beforeEach`),afterEach:AV(e,`afterEach`),render:MV(e,`render`),renderToCanvas:MV(e,`renderToCanvas`),applyDecorators:MV(e,`applyDecorators`),runStep:OV(n),tags:AV(e,`tags`),mount:MV(e,`mount`),testingLibraryRender:MV(e,`testingLibraryRender`)}}function PV(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}function FV(e=!0){if(!(`document`in globalThis&&`createElement`in globalThis.document))return()=>{};let t=document.createElement(`style`);t.textContent=`*, *:before, *:after {
|
|
883
|
+
animation: none !important;
|
|
884
|
+
}`,document.head.appendChild(t);let n=document.createElement(`style`);return n.textContent=`*, *:before, *:after {
|
|
885
|
+
animation-delay: 0s !important;
|
|
886
|
+
animation-direction: ${e?`reverse`:`normal`} !important;
|
|
887
|
+
animation-play-state: paused !important;
|
|
888
|
+
transition: none !important;
|
|
889
|
+
}`,document.head.appendChild(n),document.body.clientHeight,document.head.removeChild(t),()=>{n.parentNode?.removeChild(n)}}async function IV(e){if(!(`document`in globalThis&&`getAnimations`in globalThis.document&&`querySelectorAll`in globalThis.document))return;let t=!1;await Promise.race([new Promise(n=>{setTimeout(()=>{let r=[globalThis.document,...LV(globalThis.document)],i=async()=>{if(t||e?.aborted)return;let n=r.flatMap(e=>e?.getAnimations?.()||[]).filter(e=>e.playState===`running`&&!RV(e));n.length>0&&(await Promise.allSettled(n.map(async e=>e.finished)),await i())};i().then(n)},100)}),new Promise(e=>setTimeout(()=>{t=!0,e(void 0)},5e3))])}function LV(e){return[e,...e.querySelectorAll(`*`)].reduce((e,t)=>(`shadowRoot`in t&&t.shadowRoot&&e.push(t.shadowRoot,...LV(t.shadowRoot)),e),[])}function RV(e){if(e instanceof CSSAnimation&&e.effect instanceof KeyframeEffect&&e.effect.target){let t=getComputedStyle(e.effect.target,e.effect.pseudoElement),n=t.animationName?.split(`, `).indexOf(e.animationName);return t.animationIterationCount.split(`, `)[n]===`infinite`}return!1}var zV=class{constructor(){this.reports=[]}async addReport(e){this.reports.push(e)}};function BV(e,t,n){return Gz(e)?{story:e.input,meta:e.meta.input,preview:e.meta.preview.composed}:{story:e,meta:Wz(t)?t.input:t,preview:n}}function VV(e){globalThis.defaultProjectAnnotations=e}var HV=`ComposedStory`,UV=`Unnamed Story`;function WV(e){return e?NV([e]):{}}function GV(e){let t=Array.isArray(e)?e:[e];return globalThis.globalProjectAnnotations=NV([...Uz(),globalThis.defaultProjectAnnotations??{},NV(t.map(WV))]),globalThis.globalProjectAnnotations??{}}var KV=[];function qV(e,t,n,r,i){if(e===void 0)throw Error(`Expected a story but received undefined.`);t.title=t.title??HV;let a=sV(t),o=i||e.storyName||e.story?.name||e.name||UV,s=oV(o,e,a),c=EV(NV([r??globalThis.globalProjectAnnotations??{},n??{}])),l=gV(s,a,c),u={...XB(c.globalTypes),...c.initialGlobals,...l.storyGlobals},d=new zV,f=()=>{let e=yV({hooks:new jd,globals:u,args:{...l.initialArgs},viewMode:`story`,reporting:d,loaded:{},abortSignal:new AbortController().signal,step:(t,n)=>l.runStep(t,n,e),canvasElement:null,canvas:{},userEvent:{},globalTypes:c.globalTypes,...l,context:null,mount:null});return e.parameters.__isPortableStory=!0,e.context=e,l.renderToCanvas&&(e.renderToCanvas=async()=>{let t=await l.renderToCanvas?.({componentId:l.componentId,title:l.title,id:l.id,name:l.name,tags:l.tags,showMain:()=>{},showError:e=>{throw Error(`${e.title}
|
|
890
|
+
${e.description}`)},showException:e=>{throw e},forceRemount:!0,storyContext:e,storyFn:()=>l.unboundStoryFn(e),unboundStoryFn:l.unboundStoryFn},e.canvasElement);t&&KV.push(t)}),e.mount=l.mount(e),e},p,m=async e=>{let t=f();return t.canvasElement??=globalThis?.document?.body,p&&(t.loaded=p.loaded),Object.assign(t,e),l.playFunction(t)},h=e=>{let t=f();return Object.assign(t,e),ZV(l,t)},g=l.playFunction?m:void 0;return Object.assign(function(e){let t=f();return p&&(t.loaded=p.loaded),t.args={...t.initialArgs,...e},l.unboundStoryFn(t)},{id:l.id,storyName:o,load:async()=>{for(let e of[...KV].reverse())await e();KV.length=0;let e=f();e.loaded=await l.applyLoaders(e),KV.push(...(await l.applyBeforeEach(e)).filter(Boolean)),p=e},globals:u,args:l.initialArgs,parameters:l.parameters,argTypes:l.argTypes,play:g,run:h,reporting:d,tags:l.tags})}var JV=(e,t,n,r)=>qV(e,t,n,{},r);function YV(e,t,n=JV){let{default:r,__esModule:i,__namedExportsOrder:a,...o}=e,s=r;return Object.entries(o).reduce((e,[r,i])=>{let{story:a,meta:o}=BV(i);return!s&&o&&(s=o),$z(r,s)?Object.assign(e,{[r]:n(a,s,t,r)}):e},{})}function XV(e){return e.extend({mount:async({mount:e,page:t},n)=>{await n(async(n,...r)=>{if(!(`__pw_type`in n)||`__pw_type`in n&&n.__pw_type!==`jsx`)throw Error(So`
|
|
891
|
+
Portable stories in Playwright CT only work when referencing JSX elements.
|
|
892
|
+
Please use JSX format for your components such as:
|
|
893
|
+
|
|
894
|
+
instead of:
|
|
895
|
+
await mount(MyComponent, { props: { foo: 'bar' } })
|
|
896
|
+
|
|
897
|
+
do:
|
|
898
|
+
await mount(<MyComponent foo="bar"/>)
|
|
899
|
+
|
|
900
|
+
More info: https://storybook.js.org/docs/api/portable-stories/portable-stories-playwright?ref=error
|
|
901
|
+
`);let{props:i,...a}=n;await t.evaluate(async e=>{let t=await globalThis.__pwUnwrapObject?.(e);return(`__pw_type`in t?t.type:t)?.load?.()},a);let o=await e(n,...r);return await t.evaluate(async e=>{let t=await globalThis.__pwUnwrapObject?.(e),n=`__pw_type`in t?t.type:t,r=document.querySelector(`#root`);return n?.play?.({canvasElement:r})},a),o})}})}async function ZV(e,t){for(let e of[...KV].reverse())await e();if(KV.length=0,!t.canvasElement){let e=document.createElement(`div`);globalThis?.document?.body?.appendChild(e),t.canvasElement=e,KV.push(()=>{globalThis?.document?.body?.contains(e)&&globalThis?.document?.body?.removeChild(e)})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;KV.push(...(await e.applyBeforeEach(t)).filter(Boolean));let n=e.playFunction,r=e.usesMount;if(r||await t.mount(),t.abortSignal.aborted)return;n&&(r||(t.mount=async()=>{throw new td({playFunction:n.toString()})}),await n(t));let i;PV()?i=FV():await IV(t.abortSignal),await e.applyAfterEach(t),await i?.()}var QV=1e3,$V=1e4,eH=class{constructor(e,t,n){this.importFn=t,this.storyIndex=new $B(e),this.projectAnnotations=EV(NV([...Uz(),n]));let{initialGlobals:r,globalTypes:i}=this.projectAnnotations;this.args=new YB,this.userGlobals=new ZB({globals:r,globalTypes:i}),this.hooks={},this.cleanupCallbacks={},this.processCSFFileWithCache=(0,MB.default)(QV)(dV),this.prepareMetaWithCache=(0,MB.default)(QV)(_V),this.prepareStoryWithCache=(0,MB.default)($V)(gV)}setProjectAnnotations(e){this.projectAnnotations=EV(e);let{initialGlobals:t,globalTypes:n}=e;this.userGlobals.set({globals:t,globalTypes:n})}async onStoriesChanged({importFn:e,storyIndex:t}){e&&(this.importFn=e),t&&(this.storyIndex.entries=t.entries),this.cachedCSFFiles&&await this.cacheAllCSFFiles()}async storyIdToEntry(e){return this.storyIndex.storyIdToEntry(e)}async loadCSFFileByStoryId(e){let{importPath:t,title:n}=this.storyIndex.storyIdToEntry(e),r=await this.importFn(t);return this.processCSFFileWithCache(r,t,n)}async loadAllCSFFiles(){let e={};return Object.entries(this.storyIndex.entries).forEach(([t,{importPath:n}])=>{e[n]=t}),(await Promise.all(Object.entries(e).map(async([e,t])=>({importPath:e,csfFile:await this.loadCSFFileByStoryId(t)})))).reduce((e,{importPath:t,csfFile:n})=>(e[t]=n,e),{})}async cacheAllCSFFiles(){this.cachedCSFFiles=await this.loadAllCSFFiles()}preparedMetaFromCSFFile({csfFile:e}){let t=e.meta;return this.prepareMetaWithCache(t,this.projectAnnotations,e.moduleExports.default)}async loadStory({storyId:e}){let t=await this.loadCSFFileByStoryId(e);return this.storyFromCSFFile({storyId:e,csfFile:t})}storyFromCSFFile({storyId:e,csfFile:t}){let n=t.stories[e];if(!n)throw new $u({storyId:e});let r=t.meta,i=this.prepareStoryWithCache(n,r,t.projectAnnotations??this.projectAnnotations);return this.args.setInitial(i),this.hooks[i.id]=this.hooks[i.id]||new jd,i}componentStoriesFromCSFFile({csfFile:e}){return Object.keys(this.storyIndex.entries).filter(t=>!!e.stories[t]).map(t=>this.storyFromCSFFile({storyId:t,csfFile:e}))}async loadEntry(e){let t=await this.storyIdToEntry(e),n=t.type===`docs`?t.storiesImports:[],[r,...i]=await Promise.all([this.importFn(t.importPath),...n.map(e=>{let t=this.storyIndex.importPathToEntry(e);return this.loadCSFFileByStoryId(t.id)})]);return{entryExports:r,csfFiles:i}}getStoryContext(e,{forceInitialArgs:t=!1}={}){let n=this.userGlobals.get(),{initialGlobals:r}=this.userGlobals,i=new zV;return yV({...e,args:t?e.initialArgs:this.args.get(e.id),initialGlobals:r,globalTypes:this.projectAnnotations.globalTypes,userGlobals:n,reporting:i,globals:{...n,...e.storyGlobals},hooks:this.hooks[e.id]})}addCleanupCallbacks(e,...t){this.cleanupCallbacks[e.id]=(this.cleanupCallbacks[e.id]||[]).concat(t)}async cleanupStory(e){this.hooks[e.id].clean();let t=this.cleanupCallbacks[e.id];if(t)for(let e of[...t].reverse())await e();delete this.cleanupCallbacks[e.id]}extract(e={includeDocsOnly:!1}){let{cachedCSFFiles:t}=this;if(console.log(`extract: extracting stories`,t),!t)throw new Ku;let n=Object.entries(this.storyIndex.entries).reduce((n,[r,i])=>{if(i.type===`docs`)return n;let a=t[i.importPath],o=this.storyFromCSFFile({storyId:r,csfFile:a});return!e.includeDocsOnly&&o.parameters.docsOnly||(n[r]=Object.entries(o).reduce((e,[t,n])=>t===`story`&&i.subtype===`test`?{...e,story:i.parentName}:t===`moduleExport`||typeof n==`function`?e:Array.isArray(n)?Object.assign(e,{[t]:n.slice().sort()}):Object.assign(e,{[t]:n}),{args:o.initialArgs,globals:{...this.userGlobals.initialGlobals,...this.userGlobals.globals,...o.storyGlobals},storyId:i.parent?i.parent:r})),n},{});return console.log(`extract: stories`,n),n}};function tH(e){return e.startsWith(`\\\\?\\`)?e:e.replace(/\\/g,`/`)}var nH=e=>{if(e.length===0)return e;let t=e[e.length-1],n=t?.replace(/(?:[.](?:story|stories))?([.][^.]+)$/i,``);if(e.length===1)return[n];let r=e[e.length-2];return n&&r&&n.toLowerCase()===r.toLowerCase()?[...e.slice(0,-2),n]:n&&(/^(story|stories)([.][^.]+)$/i.test(t)||/^index$/i.test(n))?e.slice(0,-1):[...e.slice(0,-1),n]};function rH(e){return e.flatMap(e=>e.split(`/`)).filter(Boolean).join(`/`)}var iH=(e,t,n)=>{let{directory:r,importPathMatcher:i,titlePrefix:a=``}=t||{};typeof e==`number`&&Lo.warn(So`
|
|
902
|
+
CSF Auto-title received a numeric fileName. This typically happens when
|
|
903
|
+
webpack is mis-configured in production mode. To force webpack to produce
|
|
904
|
+
filenames, set optimization.moduleIds = "named" in your webpack config.
|
|
905
|
+
`);let o=tH(String(e));if(i.exec(o)){if(!n){let e=rH([a,o.replace(r,``)]).split(`/`);return e=nH(e),e.join(`/`)}return a?rH([a,n]):n}},aH=(e,t,n)=>{for(let r=0;r<t.length;r+=1){let i=iH(e,t[r],n);if(i)return i}return n||void 0},oH=/\s*\/\s*/,sH=(e={})=>(t,n)=>{if(t.title===n.title&&!e.includeNames)return 0;let r=e.method||`configure`,i=e.order||[],a=t.title.trim().split(oH),o=n.title.trim().split(oH);e.includeNames&&(a.push(t.name),o.push(n.name));let s=0;for(;a[s]||o[s];){if(!a[s])return-1;if(!o[s])return 1;let t=a[s],n=o[s];if(t!==n){let a=i.indexOf(t),o=i.indexOf(n),s=i.indexOf(`*`);return a!==-1||o!==-1?(a===-1&&(a=s===-1?i.length:s),o===-1&&(o=s===-1?i.length:s),a-o):r===`configure`?0:t.localeCompare(n,e.locales?e.locales:void 0,{numeric:!0,sensitivity:`accent`})}let c=i.indexOf(t);c===-1&&(c=i.indexOf(`*`)),i=c!==-1&&Array.isArray(i[c+1])?i[c+1]:[],s+=1}return 0},cH=(e,t,n)=>{if(t){let n;n=typeof t==`function`?t:sH(t),e.sort(n)}else e.sort((e,t)=>n.indexOf(e.importPath)-n.indexOf(t.importPath));return e},lH=(e,t,n)=>{try{return cH(e,t,n)}catch(e){throw Error(So`
|
|
906
|
+
Error sorting stories with sort parameter ${t}:
|
|
907
|
+
|
|
908
|
+
> ${e.message}
|
|
909
|
+
|
|
910
|
+
Are you using a V6-style sort function in V7 mode?
|
|
911
|
+
|
|
912
|
+
More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#v7-style-story-sort
|
|
913
|
+
`)}},uH=Error(`prepareAborted`),{AbortController:dH}=globalThis;function fH(e){try{let{name:t=`Error`,message:n=String(e),stack:r}=e;return{name:t,message:n,stack:r}}catch{return{name:`Error`,message:String(e)}}}var pH=class{constructor(e,t,n,r,i,a,o={autoplay:!0,forceInitialArgs:!1},s){this.channel=e,this.store=t,this.renderToScreen=n,this.callbacks=r,this.id=i,this.viewMode=a,this.renderOptions=o,this.type=`story`,this.notYetRendered=!0,this.rerenderEnqueued=!1,this.disableKeyListeners=!1,this.teardownRender=()=>{},this.torndown=!1,this.abortController=new dH,this.renderId=Date.now(),s&&(this.story=s,this.phase=`preparing`)}async runPhase(e,t,n){this.phase=t,this.channel.emit(Wa,{newPhase:this.phase,renderId:this.renderId,storyId:this.id}),n&&(await n(),this.checkIfAborted(e))}checkIfAborted(e){return e.aborted&&![`finished`,`aborted`,`errored`].includes(this.phase)&&(this.phase=`aborted`,this.channel.emit(Wa,{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),uH}isEqual(e){return!!(this.id===e.id&&this.story&&this.story===e.story)}isPreparing(){return[`preparing`].includes(this.phase)}isPending(){return[`loading`,`beforeEach`,`rendering`,`playing`,`afterEach`].includes(this.phase)}async renderToElement(e){return this.canvasElement=e,this.render({initial:!0,forceRemount:!0})}storyContext(){if(!this.story)throw Error(`Cannot call storyContext before preparing`);let{forceInitialArgs:e}=this.renderOptions;return this.store.getStoryContext(this.story,{forceInitialArgs:e})}async render({initial:e=!1,forceRemount:t=!1}={}){let{canvasElement:n}=this;if(!this.story)throw Error(`cannot render when not prepared`);let r=this.story;if(!n)throw Error(`cannot render when canvasElement is unset`);let{id:i,componentId:a,title:o,name:s,tags:c,applyLoaders:l,applyBeforeEach:u,applyAfterEach:d,unboundStoryFn:f,playFunction:p,runStep:m}=r;t&&!e&&(this.cancelRender(),this.abortController=new dH);let h=this.abortController.signal,g=!1,_=r.usesMount;try{let e={...this.storyContext(),viewMode:this.viewMode,abortSignal:h,canvasElement:n,loaded:{},step:(t,n)=>m(t,n,e),context:null,canvas:{},userEvent:{},renderToCanvas:async()=>{this.teardownRender=await this.renderToScreen(v,n)||(()=>{}),g=!0},mount:async(...t)=>{this.callbacks.showStoryDuringRender?.();let n=null;return await this.runPhase(h,`rendering`,async()=>{n=await r.mount(e)(...t)}),_&&await this.runPhase(h,`playing`),n}};e.context=e;let v={componentId:a,title:o,kind:o,id:i,name:s,story:s,tags:c,...this.callbacks,showError:e=>(this.phase=`errored`,this.callbacks.showError(e)),showException:e=>(this.phase=`errored`,this.callbacks.showException(e)),forceRemount:t||this.notYetRendered,storyContext:e,storyFn:()=>f(e),unboundStoryFn:f};if(await this.runPhase(h,`loading`,async()=>{e.loaded=await l(e)}),h.aborted)return;let y=await u(e);if(this.store.addCleanupCallbacks(r,...y),this.checkIfAborted(h)||(!g&&!_&&await e.mount(),this.notYetRendered=!1,h.aborted))return;let b=this.story.parameters?.test?.dangerouslyIgnoreUnhandledErrors===!0,x=new Set,S=e=>{e.error&&x.add(e.error)},C=e=>{e.reason&&x.add(e.reason)};if(this.renderOptions.autoplay&&t&&p&&this.phase!==`errored`){window?.addEventListener?.(`error`,S),window?.addEventListener?.(`unhandledrejection`,C),this.disableKeyListeners=!0;try{if(_?await p(e):(e.mount=async()=>{throw new td({playFunction:p.toString()})},await this.runPhase(h,`playing`,async()=>p(e))),!g)throw new rd;this.checkIfAborted(h),!b&&x.size>0?await this.runPhase(h,`errored`):await this.runPhase(h,`played`)}catch(e){if(this.callbacks.showStoryDuringRender?.(),await this.runPhase(h,`errored`,async()=>{this.channel.emit(ya,fH(e))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw e;console.error(e)}if(!b&&x.size>0&&this.channel.emit(ba,Array.from(x).map(fH)),this.disableKeyListeners=!1,window?.removeEventListener?.(`unhandledrejection`,C),window?.removeEventListener?.(`error`,S),h.aborted)return}await this.runPhase(h,`completing`,async()=>{PV()?this.store.addCleanupCallbacks(r,FV()):await IV(h)}),await this.runPhase(h,`completed`,async()=>{this.channel.emit(Ga,i)}),this.phase!==`errored`&&await this.runPhase(h,`afterEach`,async()=>{await d(e)});let w=!b&&x.size>0,T=e.reporting.reports.some(e=>e.status===`failed`),E=w||T;await this.runPhase(h,`finished`,async()=>this.channel.emit(Ka,{storyId:i,status:E?`error`:`success`,reporters:e.reporting.reports}))}catch(e){this.phase=`errored`,this.callbacks.showException(e),await this.runPhase(h,`finished`,async()=>this.channel.emit(Ka,{storyId:i,status:`error`,reporters:[]}))}this.rerenderEnqueued&&(this.rerenderEnqueued=!1,this.render())}async rerender(){if(this.isPending()&&this.phase!==`playing`)this.rerenderEnqueued=!0;else return this.render()}async remount(){return await this.teardown(),this.render({forceRemount:!0})}cancelRender(){this.abortController.abort()}cancelPlayFunction(){this.phase===`playing`&&(this.abortController.abort(),this.runPhase(this.abortController.signal,`aborted`))}async teardown(){this.torndown=!0,this.cancelRender(),this.story&&await this.store.cleanupStory(this.story);for(let e=0;e<3;e+=1){if(!this.isPending()){await this.teardownRender();return}await new Promise(e=>setTimeout(e,0))}window?.location?.reload?.(),await new Promise(()=>{})}},{fetch:mH}=W,hH=`./index.json`,gH=class{constructor(e,t,n=Ad.getChannel(),r=!0){this.importFn=e,this.getProjectAnnotations=t,this.channel=n,this.storyRenders=[],this.storeInitializationPromise=new Promise((e,t)=>{this.resolveStoreInitializationPromise=e,this.rejectStoreInitializationPromise=t}),r&&this.initialize()}get storyStore(){return new Proxy({},{get:(e,t)=>{if(this.storyStoreValue)return Ro(`Accessing the Story Store is deprecated and will be removed in 9.0`),this.storyStoreValue[t];throw new ed}})}async initialize(){this.setupListeners();try{let e=await this.getProjectAnnotationsOrRenderError();await this.runBeforeAllHook(e),await this.initializeWithProjectAnnotations(e);let t=globalThis?.navigator?.userAgent;await this.channel.emit(Sa,{userAgent:t})}catch(e){this.rejectStoreInitializationPromise(e)}}ready(){return this.storeInitializationPromise}setupListeners(){this.channel.on(Va,this.onStoryIndexChanged.bind(this)),this.channel.on(Za,this.onUpdateGlobals.bind(this)),this.channel.on($a,this.onUpdateArgs.bind(this)),this.channel.on(so,this.onRequestArgTypesInfo.bind(this)),this.channel.on(Ea,this.onResetArgs.bind(this)),this.channel.on(ha,this.onForceReRender.bind(this)),this.channel.on(ga,this.onForceRemount.bind(this)),this.channel.on(Xa,this.onStoryHotUpdated.bind(this))}async getProjectAnnotationsOrRenderError(){try{let e=await this.getProjectAnnotations();if(this.renderToCanvas=e.renderToCanvas,!this.renderToCanvas)throw new qu;return e}catch(e){throw this.renderPreviewEntryError(`Error reading preview.js:`,e),e}}async initializeWithProjectAnnotations(e){this.projectAnnotationsBeforeInitialization=e;try{let e=await this.getStoryIndexFromServer();return this.initializeWithStoryIndex(e)}catch(e){throw this.renderPreviewEntryError(`Error loading story index:`,e),e}}async runBeforeAllHook(e){try{await this.beforeAllCleanup?.(),this.beforeAllCleanup=await e.beforeAll?.()}catch(e){throw this.renderPreviewEntryError(`Error in beforeAll hook:`,e),e}}async getStoryIndexFromServer(){let e=await mH(hH);if(e.status===200)return e.json();throw new Yu({text:await e.text()})}initializeWithStoryIndex(e){if(!this.projectAnnotationsBeforeInitialization)throw Error(`Cannot call initializeWithStoryIndex until project annotations resolve`);this.storyStoreValue=new eH(e,this.importFn,this.projectAnnotationsBeforeInitialization),delete this.projectAnnotationsBeforeInitialization,this.setInitialGlobals(),this.resolveStoreInitializationPromise()}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStoreValue)throw new Ju({methodName:`emitGlobals`});let e={globals:this.storyStoreValue.userGlobals.get()||{},globalTypes:this.storyStoreValue.projectAnnotations.globalTypes||{}};this.channel.emit(ja,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 Ju({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 Ju({methodName:`onUpdateGlobals`});if(this.storyStoreValue.userGlobals.update(e),t){let{initialGlobals:e,storyGlobals:n,userGlobals:r,globals:i}=this.storyStoreValue.getStoryContext(t);this.channel.emit(_a,{initialGlobals:e,userGlobals:r,storyGlobals:n,globals:i})}else{let{initialGlobals:e,globals:t}=this.storyStoreValue.userGlobals;this.channel.emit(_a,{initialGlobals:e,userGlobals:t,storyGlobals:{},globals:t})}await Promise.all(this.storyRenders.map(e=>e.rerender()))}async onUpdateArgs({storyId:e,updatedArgs:t}){if(!this.storyStoreValue)throw new Ju({methodName:`onUpdateArgs`});this.storyStoreValue.args.update(e,t),await Promise.all(this.storyRenders.filter(t=>t.id===e&&!t.renderOptions.forceInitialArgs).map(e=>e.story&&e.story.usesMount?e.remount():e.rerender())),this.channel.emit(Ra,{storyId:e,args:this.storyStoreValue.args.get(e)})}async onRequestArgTypesInfo({id:e,payload:t}){try{await this.storeInitializationPromise;let n=await this.storyStoreValue?.loadStory(t);this.channel.emit(co,{id:e,success:!0,payload:{argTypes:n?.argTypes||{}},error:null})}catch(t){this.channel.emit(co,{id:e,success:!1,error:t?.message})}}async onResetArgs({storyId:e,argNames:t}){if(!this.storyStoreValue)throw new Ju({methodName:`onResetArgs`});let n=this.storyRenders.find(t=>t.id===e)?.story||await this.storyStoreValue.loadStory({storyId:e}),r=(t||[...new Set([...Object.keys(n.initialArgs),...Object.keys(this.storyStoreValue.args.get(e))])]).reduce((e,t)=>(e[t]=n.initialArgs[t],e),{});await this.onUpdateArgs({storyId:e,updatedArgs:r})}async onForceReRender(){await Promise.all(this.storyRenders.map(e=>e.rerender()))}async onForceRemount({storyId:e}){await Promise.all(this.storyRenders.filter(t=>t.id===e).map(e=>e.remount()))}async onStoryHotUpdated(){await Promise.all(this.storyRenders.map(e=>e.cancelPlayFunction()))}renderStoryToElement(e,t,n,r){if(!this.renderToCanvas||!this.storyStoreValue)throw new Ju({methodName:`renderStoryToElement`});let i=new pH(this.channel,this.storyStoreValue,this.renderToCanvas,n,e.id,`docs`,r,e);return i.renderToElement(t),this.storyRenders.push(i),async()=>{await this.teardownRender(i)}}async teardownRender(e,{viewModeChanged:t}={}){this.storyRenders=this.storyRenders.filter(t=>t!==e),await e?.teardown?.({viewModeChanged:t})}async loadStory({storyId:e}){if(!this.storyStoreValue)throw new Ju({methodName:`loadStory`});return this.storyStoreValue.loadStory({storyId:e})}getStoryContext(e,{forceInitialArgs:t=!1}={}){if(!this.storyStoreValue)throw new Ju({methodName:`getStoryContext`});return this.storyStoreValue.getStoryContext(e,{forceInitialArgs:t})}async extract(e){if(!this.storyStoreValue)throw new Ju({methodName:`extract`});if(this.previewEntryError)throw this.previewEntryError;return await this.storyStoreValue.cacheAllCSFFiles(),this.storyStoreValue.extract(e)}renderPreviewEntryError(e,t){this.previewEntryError=t,Fo.error(e),Fo.error(t),this.channel.emit(sa,t)}},_H=class{constructor(e,t,n,r){this.channel=e,this.store=t,this.renderStoryToElement=n,this.storyIdByName=e=>{let t=this.nameToStoryId.get(e);if(t)return t;throw Error(`No story found with that name: ${e}`)},this.componentStories=()=>this.componentStoriesValue,this.componentStoriesFromCSFFile=e=>this.store.componentStoriesFromCSFFile({csfFile:e}),this.storyById=e=>{if(!e){if(!this.primaryStory)throw Error("No primary story defined for docs entry. Did you forget to use `<Meta>`?");return this.primaryStory}let t=this.storyIdToCSFFile.get(e);if(!t)throw Error(`Called \`storyById\` for story that was never loaded: ${e}`);return this.store.storyFromCSFFile({storyId:e,csfFile:t})},this.getStoryContext=e=>({...this.store.getStoryContext(e),loaded:{},viewMode:`docs`}),this.loadStory=e=>this.store.loadStory({storyId:e}),this.componentStoriesValue=[],this.storyIdToCSFFile=new Map,this.exportToStory=new Map,this.exportsToCSFFile=new Map,this.nameToStoryId=new Map,this.attachedCSFFiles=new Set,r.forEach((e,t)=>{this.referenceCSFFile(e)})}referenceCSFFile(e){this.exportsToCSFFile.set(e.moduleExports,e),this.exportsToCSFFile.set(e.moduleExports.default,e),this.store.componentStoriesFromCSFFile({csfFile:e}).forEach(t=>{let n=e.stories[t.id];this.storyIdToCSFFile.set(n.id,e),this.exportToStory.set(n.moduleExport,t)})}attachCSFFile(e){if(!this.exportsToCSFFile.has(e.moduleExports))throw Error(`Cannot attach a CSF file that has not been referenced`);this.attachedCSFFiles.has(e)||(this.attachedCSFFiles.add(e),this.store.componentStoriesFromCSFFile({csfFile:e}).forEach(e=>{this.nameToStoryId.set(e.name,e.id),this.componentStoriesValue.push(e),this.primaryStory||=e}))}referenceMeta(e,t){let n=this.resolveModuleExport(e);if(n.type!==`meta`)throw Error(`<Meta of={} /> must reference a CSF file module export or meta export. Did you mistakenly reference your component instead of your CSF file?`);t&&this.attachCSFFile(n.csfFile)}get projectAnnotations(){let{projectAnnotations:e}=this.store;if(!e)throw Error(`Can't get projectAnnotations from DocsContext before they are initialized`);return e}resolveAttachedModuleExportType(e){if(e===`story`){if(!this.primaryStory)throw Error(`No primary story attached to this docs file, did you forget to use <Meta of={} />?`);return{type:`story`,story:this.primaryStory}}if(this.attachedCSFFiles.size===0)throw Error(`No CSF file attached to this docs file, did you forget to use <Meta of={} />?`);let t=Array.from(this.attachedCSFFiles)[0];if(e===`meta`)return{type:`meta`,csfFile:t};let{component:n}=t.meta;if(!n)throw Error(`Attached CSF file does not defined a component, did you forget to export one?`);return{type:`component`,component:n}}resolveModuleExport(e){let t=this.exportsToCSFFile.get(e);if(!t&&e&&typeof e==`object`&&`default`in e&&(t=this.exportsToCSFFile.get(e.default)),t)return{type:`meta`,csfFile:t};let n=this.exportToStory.get(Gz(e)?e.input:e);return n?{type:`story`,story:n}:{type:`component`,component:e}}resolveOf(e,t=[]){let n;if([`component`,`meta`,`story`].includes(e)){let t=e;n=this.resolveAttachedModuleExportType(t)}else n=this.resolveModuleExport(e);if(t.length&&!t.includes(n.type)){let e=n.type===`component`?`component or unknown`:n.type;throw Error(So`Invalid value passed to the 'of' prop. The value was resolved to a '${e}' type but the only types for this block are: ${t.join(`, `)}.
|
|
914
|
+
- Did you pass a component to the 'of' prop when the block only supports a story or a meta?
|
|
915
|
+
- ... or vice versa?
|
|
916
|
+
- Did you pass a story, CSF file or meta to the 'of' prop that is not indexed, ie. is not targeted by the 'stories' globs in the main configuration?`)}switch(n.type){case`component`:return{...n,projectAnnotations:this.projectAnnotations};case`meta`:return{...n,preparedMeta:this.store.preparedMetaFromCSFFile({csfFile:n.csfFile})};default:return n}}},vH=class{constructor(e,t,n,r){this.channel=e,this.store=t,this.entry=n,this.callbacks=r,this.type=`docs`,this.subtype=`csf`,this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=n.id,this.renderId=Date.now()}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:e,csfFiles:t=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw uH;let{importPath:n,title:r}=this.entry,i=this.store.processCSFFileWithCache(e,n,r),a=Object.keys(i.stories)[0];this.story=this.store.storyFromCSFFile({storyId:a,csfFile:i}),this.csfFiles=[i,...t],this.preparing=!1}isEqual(e){return!!(this.id===e.id&&this.story&&this.story===e.story)}docsContext(e){if(!this.csfFiles)throw Error(`Cannot render docs before preparing`);let t=new _H(this.channel,this.store,e,this.csfFiles);return this.csfFiles.forEach(e=>t.attachCSFFile(e)),t}async renderToElement(e,t){if(!this.story||!this.csfFiles)throw Error(`Cannot render docs before preparing`);let n=this.docsContext(t),{docs:r}=this.story.parameters||{};if(!r)throw Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let i=await r.renderer(),{render:a}=i,o=async()=>{try{await a(n,r,e),this.channel.emit(fa,this.id)}catch(e){this.callbacks.showException(e)}};return this.rerender=async()=>o(),this.teardownRender=async({viewModeChanged:t})=>{!t||!e||i.unmount(e)},o()}async teardown({viewModeChanged:e}={}){this.teardownRender?.({viewModeChanged:e}),this.torndown=!0}},yH=class{constructor(e,t,n,r){this.channel=e,this.store=t,this.entry=n,this.callbacks=r,this.type=`docs`,this.subtype=`mdx`,this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=n.id,this.renderId=Date.now()}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:e,csfFiles:t=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw uH;this.csfFiles=t,this.exports=e,this.preparing=!1}isEqual(e){return!!(this.id===e.id&&this.exports&&this.exports===e.exports)}docsContext(e){if(!this.csfFiles)throw Error(`Cannot render docs before preparing`);return new _H(this.channel,this.store,e,this.csfFiles)}async renderToElement(e,t){if(!this.exports||!this.csfFiles||!this.store.projectAnnotations)throw Error(`Cannot render docs before preparing`);let n=this.docsContext(t),{docs:r}=this.store.projectAnnotations.parameters??{};if(!r)throw Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let i={...r,page:this.exports.default},a=await r.renderer(),{render:o}=a,s=async()=>{try{await o(n,i,e),this.channel.emit(fa,this.id)}catch(e){this.callbacks.showException(e)}};return this.rerender=async()=>s(),this.teardownRender=async({viewModeChanged:t}={})=>{!t||!e||(a.unmount(e),this.torndown=!0)},s()}async teardown({viewModeChanged:e}={}){this.teardownRender?.({viewModeChanged:e}),this.torndown=!0}},bH=globalThis;function xH(e){let t=e.composedPath&&e.composedPath()[0]||e.target;return/input|textarea/i.test(t.tagName)||t.getAttribute(`contenteditable`)!==null}function SH({tags:e}){return e?.includes(pf.UNATTACHED_MDX)||e?.includes(pf.ATTACHED_MDX)}function CH(e){return e.type===`story`}function wH(e){return e.type===`docs`}function TH(e){return wH(e)&&e.subtype===`csf`}var EH=class extends gH{constructor(e,t,n,r){super(e,t,void 0,!1),this.importFn=e,this.getProjectAnnotations=t,this.selectionStore=n,this.view=r,this.initialize()}setupListeners(){super.setupListeners(),bH.onkeydown=this.onKeydown.bind(this),this.channel.on(ka,this.onSetCurrentStory.bind(this)),this.channel.on(Qa,this.onUpdateQueryParams.bind(this)),this.channel.on(xa,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStoreValue)throw new Ju({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 Ju({methodName:`selectSpecifiedStory`});if(this.selectionStore.selection){await this.renderSelection();return}if(!this.selectionStore.selectionSpecifier){this.renderMissingStory();return}let{storySpecifier:e,args:t}=this.selectionStore.selectionSpecifier,n=this.storyStoreValue.storyIndex.entryFromSpecifier(e);if(!n){e===`*`?this.renderStoryLoadingException(e,new Zu):this.renderStoryLoadingException(e,new Qu({storySpecifier:e.toString()}));return}let{id:r,type:i}=n;this.selectionStore.setSelection({storyId:r,viewMode:i}),this.channel.emit(qa,this.selectionStore.selection),this.channel.emit(ua,this.selectionStore.selection),await this.renderSelection({persistedArgs:t})}async onGetProjectAnnotationsChanged({getProjectAnnotations:e}){await super.onGetProjectAnnotationsChanged({getProjectAnnotations:e}),this.selectionStore.selection&&this.renderSelection()}async onStoriesChanged({importFn:e,storyIndex:t}){await super.onStoriesChanged({importFn:e,storyIndex:t}),this.selectionStore.selection?await this.renderSelection():await this.selectSpecifiedStory()}onKeydown(e){if(!this.storyRenders.find(e=>e.disableKeyListeners)&&!xH(e)){let{altKey:t,ctrlKey:n,metaKey:r,shiftKey:i,key:a,code:o,keyCode:s}=e;this.channel.emit(wa,{event:{altKey:t,ctrlKey:n,metaKey:r,shiftKey:i,key:a,code:o,keyCode:s}})}}async onSetCurrentStory(e){this.selectionStore.setSelection({viewMode:`story`,...e}),await this.storeInitializationPromise,this.channel.emit(ua,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(e){this.selectionStore.setQueryParams(e)}async onUpdateGlobals({globals:e}){let t=this.currentRender instanceof pH&&this.currentRender.story||void 0;super.onUpdateGlobals({globals:e,currentStory:t}),(this.currentRender instanceof yH||this.currentRender instanceof vH)&&await this.currentRender.rerender?.()}async onUpdateArgs({storyId:e,updatedArgs:t}){super.onUpdateArgs({storyId:e,updatedArgs:t})}async onPreloadStories({ids:e}){await this.storeInitializationPromise,this.storyStoreValue&&await Promise.allSettled(e.map(e=>this.storyStoreValue?.loadEntry(e)))}async renderSelection({persistedArgs:e}={}){let{renderToCanvas:t}=this;if(!this.storyStoreValue||!t)throw new Ju({methodName:`renderSelection`});let{selection:n}=this.selectionStore;if(!n)throw Error(`Cannot call renderSelection as no selection was made`);let{storyId:r}=n,i;try{i=await this.storyStoreValue.storyIdToEntry(r)}catch(e){this.currentRender&&await this.teardownRender(this.currentRender),this.renderStoryLoadingException(r,e);return}let a=this.currentSelection?.storyId!==r,o=this.currentRender?.type!==i.type;i.type===`story`?this.view.showPreparingStory({immediate:o}):this.view.showPreparingDocs({immediate:o}),this.currentRender?.isPreparing()&&await this.teardownRender(this.currentRender);let s;s=i.type===`story`?new pH(this.channel,this.storyStoreValue,t,this.mainStoryCallbacks(r),r,`story`):SH(i)?new yH(this.channel,this.storyStoreValue,i,this.mainStoryCallbacks(r)):new vH(this.channel,this.storyStoreValue,i,this.mainStoryCallbacks(r));let c=this.currentSelection;this.currentSelection=n;let l=this.currentRender;this.currentRender=s;try{await s.prepare()}catch(e){l&&await this.teardownRender(l),e!==uH&&this.renderStoryLoadingException(r,e);return}let u=!a&&l&&!s.isEqual(l);if(e&&CH(s)&&(Tu(!!s.story),this.storyStoreValue.args.updateFromPersisted(s.story,e)),l&&!l.torndown&&!a&&!u&&!o){this.currentRender=l,this.channel.emit(Ya,r),this.view.showMain();return}if(l&&await this.teardownRender(l,{viewModeChanged:o}),c&&(a||o)&&this.channel.emit(za,r),CH(s)){Tu(!!s.story);let{parameters:e,initialArgs:t,argTypes:n,unmappedArgs:i,initialGlobals:a,userGlobals:o,storyGlobals:c,globals:l}=this.storyStoreValue.getStoryContext(s.story);this.channel.emit(Ua,{id:r,parameters:e,initialArgs:t,argTypes:n,args:i}),this.channel.emit(_a,{userGlobals:o,storyGlobals:c,globals:l,initialGlobals:a})}else{let{parameters:e}=this.storyStoreValue.projectAnnotations,{initialGlobals:t,globals:n}=this.storyStoreValue.userGlobals;if(this.channel.emit(_a,{globals:n,initialGlobals:t,storyGlobals:{},userGlobals:n}),TH(s)||s.entry.tags?.includes(pf.ATTACHED_MDX)){if(!s.csfFiles)throw new Xu({storyId:r});({parameters:e}=this.storyStoreValue.preparedMetaFromCSFFile({csfFile:s.csfFiles[0]}))}this.channel.emit(da,{id:r,parameters:e})}CH(s)?(Tu(!!s.story),this.storyRenders.push(s),this.currentRender.renderToElement(this.view.prepareForStory(s.story))):this.currentRender.renderToElement(this.view.prepareForDocs(),this.renderStoryToElement.bind(this))}async teardownRender(e,{viewModeChanged:t=!1}={}){this.storyRenders=this.storyRenders.filter(t=>t!==e),await e?.teardown?.({viewModeChanged:t})}mainStoryCallbacks(e){return{showStoryDuringRender:()=>this.view.showStoryDuringRender(),showMain:()=>this.view.showMain(),showError:t=>this.renderError(e,t),showException:t=>this.renderException(e,t)}}renderPreviewEntryError(e,t){super.renderPreviewEntryError(e,t),this.view.showErrorDisplay(t)}renderMissingStory(){this.view.showNoPreview(),this.channel.emit(Ha)}renderStoryLoadingException(e,t){Fo.error(t),this.view.showErrorDisplay(t),this.channel.emit(Ha,e)}renderException(e,t){let{name:n=`Error`,message:r=String(t),stack:i}=t,a=this.currentRender?.renderId;this.channel.emit(Ja,{name:n,message:r,stack:i}),this.channel.emit(Wa,{newPhase:`errored`,renderId:a,storyId:e}),this.view.showErrorDisplay(t),Fo.error(`Error rendering story '${e}':`),Fo.error(t)}renderError(e,{title:t,description:n}){let r=this.currentRender?.renderId;this.channel.emit(Ba,{title:t,description:n}),this.channel.emit(Wa,{newPhase:`errored`,renderId:r,storyId:e}),this.view.showErrorDisplay({message:t,stack:n}),Fo.error(`Error rendering story ${t}: ${n}`)}},DH=w(Wi(),1),OH=w(Wi(),1),kH=/^[a-zA-Z0-9 _-]*$/,AH=/^-?[0-9]+(\.[0-9]+)?$/,jH=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,MH=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,NH=(e=``,t)=>e===null||e===``||!kH.test(e)?!1:t==null||t instanceof Date||typeof t==`number`||typeof t==`boolean`?!0:typeof t==`string`?kH.test(t)||AH.test(t)||jH.test(t)||MH.test(t):Array.isArray(t)?t.every(t=>NH(e,t)):kB(t)?Object.entries(t).every(([e,t])=>NH(e,t)):!1,PH={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(MH);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 AH.test(e)?Number(e):e}},FH=e=>{let t=e.split(`;`).map(e=>e.replace(`=`,`~`).replace(`:`,`=`));return Object.entries((0,OH.parse)(t.join(`;`),PH)).reduce((e,[t,n])=>NH(t,n)?Object.assign(e,{[t]:n}):(Lo.warn(So`
|
|
917
|
+
Omitted potentially unsafe URL args.
|
|
918
|
+
|
|
919
|
+
More info: https://storybook.js.org/docs/writing-stories/args?ref=error#setting-args-through-the-url
|
|
920
|
+
`),e),{})},{history:IH,document:LH}=W;function RH(e){let t=(e||``).match(/^\/story\/(.+)/);if(!t)throw Error(`Invalid path '${e}', must start with '/story/'`);return t[1]}var zH=({selection:e,extraParams:t})=>{let n=LH?.location.search.slice(1),{path:r,selectedKind:i,selectedStory:a,...o}=(0,DH.parse)(n);return`?${(0,DH.stringify)({...o,...t,...e&&{id:e.storyId,viewMode:e.viewMode}})}`},BH=e=>{if(!e)return;let t=zH({selection:e}),{hash:n=``}=LH.location;LH.title=e.storyId,IH.replaceState({},``,`${LH.location.pathname}${t}${n}`)},VH=e=>typeof e==`object`&&!!e&&Array.isArray(e)===!1,HH=e=>{if(e!==void 0){if(typeof e==`string`)return e;if(Array.isArray(e))return HH(e[0]);if(VH(e))return HH(Object.values(e).filter(Boolean))}},UH=()=>{if(typeof LH<`u`){let e=LH.location.search.slice(1),t=(0,DH.parse)(e),n=typeof t.args==`string`?FH(t.args):void 0,r=typeof t.globals==`string`?FH(t.globals):void 0,i=HH(t.viewMode);if(typeof i!=`string`||!i)i=`story`;else if(!i.match(/docs|story/))return null;let a=HH(t.path),o=a?RH(a):HH(t.id);if(o)return{storySpecifier:o,args:n,globals:r,viewMode:i}}return null},WH=class{constructor(){this.selectionSpecifier=UH()}setSelection(e){this.selection=e,BH(this.selection)}setQueryParams(e){let t=zH({extraParams:e}),{hash:n=``}=LH.location;IH.replaceState({},``,`${LH.location.pathname}${t}${n}`)}},GH=w($i(),1),KH=w(Wi(),1),{document:qH}=W,JH=100,YH=(e=>(e.MAIN=`MAIN`,e.NOPREVIEW=`NOPREVIEW`,e.PREPARING_STORY=`PREPARING_STORY`,e.PREPARING_DOCS=`PREPARING_DOCS`,e.ERROR=`ERROR`,e))(YH||{}),XH={PREPARING_STORY:`sb-show-preparing-story`,PREPARING_DOCS:`sb-show-preparing-docs`,MAIN:`sb-show-main`,NOPREVIEW:`sb-show-nopreview`,ERROR:`sb-show-errordisplay`},ZH={centered:`sb-main-centered`,fullscreen:`sb-main-fullscreen`,padded:`sb-main-padded`},QH=new GH.default({escapeXML:!0}),$H=class{constructor(){if(this.testing=!1,typeof qH<`u`){let{__SPECIAL_TEST_PARAMETER__:e}=(0,KH.parse)(qH.location.search.slice(1));switch(e){case`preparing-story`:this.showPreparingStory(),this.testing=!0;break;case`preparing-docs`:this.showPreparingDocs(),this.testing=!0;break;default:}}}prepareForStory(e){return this.showStory(),this.applyLayout(e.parameters.layout),qH.documentElement.scrollTop=0,qH.documentElement.scrollLeft=0,this.storyRoot()}storyRoot(){return qH.getElementById(`storybook-root`)}prepareForDocs(){return this.showMain(),this.showDocs(),this.applyLayout(`fullscreen`),qH.documentElement.scrollTop=0,qH.documentElement.scrollLeft=0,this.docsRoot()}docsRoot(){return qH.getElementById(`storybook-docs`)}applyLayout(e=`padded`){if(e===`none`){qH.body.classList.remove(this.currentLayoutClass),this.currentLayoutClass=null;return}this.checkIfLayoutExists(e);let t=ZH[e];qH.body.classList.remove(this.currentLayoutClass),qH.body.classList.add(t),this.currentLayoutClass=t}checkIfLayoutExists(e){ZH[e]||Fo.warn(So`
|
|
921
|
+
The desired layout: ${e} is not a valid option.
|
|
922
|
+
The possible options are: ${Object.keys(ZH).join(`, `)}, none.
|
|
923
|
+
`)}showMode(e){clearTimeout(this.preparingTimeout),Object.keys(YH).forEach(t=>{t===e?qH.body.classList.add(XH[t]):qH.body.classList.remove(XH[t])})}showErrorDisplay({message:e=``,stack:t=``}){let n=e,r=t,i=e.split(`
|
|
924
|
+
`);i.length>1&&([n]=i,r=i.slice(1).join(`
|
|
925
|
+
`).replace(/^\n/,``)),qH.getElementById(`error-message`).innerHTML=QH.toHtml(n),qH.getElementById(`error-stack`).innerHTML=QH.toHtml(r),this.showMode(`ERROR`)}showNoPreview(){this.testing||(this.showMode(`NOPREVIEW`),this.storyRoot()?.setAttribute(`hidden`,`true`),this.docsRoot()?.setAttribute(`hidden`,`true`))}showPreparingStory({immediate:e=!1}={}){clearTimeout(this.preparingTimeout),e?this.showMode(`PREPARING_STORY`):this.preparingTimeout=setTimeout(()=>this.showMode(`PREPARING_STORY`),JH)}showPreparingDocs({immediate:e=!1}={}){clearTimeout(this.preparingTimeout),e?this.showMode(`PREPARING_DOCS`):this.preparingTimeout=setTimeout(()=>this.showMode(`PREPARING_DOCS`),JH)}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(){qH.body.classList.add(XH.MAIN)}},eU=class extends EH{constructor(e,t){super(e,t,new WH,new $H),this.importFn=e,this.getProjectAnnotations=t,W.__STORYBOOK_PREVIEW__=this}},{document:tU}=W,nU=[`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`],rU=`script`,iU=`scripts-root`;function aU(){let e=tU.createEvent(`Event`);e.initEvent(`DOMContentLoaded`,!0,!0),tU.dispatchEvent(e)}function oU(e,t,n){let r=tU.createElement(`script`);r.type=e.type===`module`?`module`:`text/javascript`,e.src?(r.onload=t,r.onerror=t,r.src=e.src):r.textContent=e.innerText,n?n.appendChild(r):tU.head.appendChild(r),e.parentNode.removeChild(e),e.src||t()}function sU(e,t,n=0){e[n](()=>{n++,n===e.length?t():sU(e,t,n)})}function cU(e){let t=tU.getElementById(iU);t?t.innerHTML=``:(t=tU.createElement(`div`),t.id=iU,tU.body.appendChild(t));let n=Array.from(e.querySelectorAll(rU));if(n.length){let e=[];n.forEach(n=>{let r=n.getAttribute(`type`);(!r||nU.includes(r))&&e.push(e=>oU(n,e,t))}),e.length&&sU(e,aU,void 0)}else aU()}var lU;(function(e){e.start=`/**`,e.nostart=`/***`,e.delim=`*`,e.end=`*/`})(lU=lU||={});var uU=(0,w(ea(),1).stringifyRules)(),dU=uU.JsdocTypeObject;uU.JsdocTypeAny=()=>`any`,uU.JsdocTypeObject=(e,t)=>`(${dU(e,t)})`,uU.JsdocTypeOptional=(e,t)=>t(e.element),uU.JsdocTypeNullable=(e,t)=>t(e.element),uU.JsdocTypeNotNullable=(e,t)=>t(e.element),uU.JsdocTypeUnion=(e,t)=>e.elements.map(t).join(`|`);var fU=`storybook/docs`;`${fU}`;var pU=`${fU}/snippet-rendered`;async function mU(e,t){let n=t.parameters?.docs?.source?.transform,{id:r,unmappedArgs:i}=t,a=n&&e?n?.(e,t):e,o=a?await a:void 0;Ad.getChannel().emit(pU,{id:r,source:o,args:i})}var hU={depth:10,clearOnStoryChange:!0,limit:50},gU=(e={})=>{Object.assign(hU,e)},_U=(e,t)=>{let n=Object.getPrototypeOf(e);return!n||t(n)?n:_U(n,t)},vU=e=>!!(typeof e==`object`&&e&&_U(e,e=>/^Synthetic(?:Base)?Event$/.test(e.constructor.name))&&typeof e.persist==`function`),yU=e=>{if(vU(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let n=Object.getOwnPropertyDescriptor(t,`view`),r=n?.value;return typeof r==`object`&&r?.constructor.name===`Window`&&Object.defineProperty(t,`view`,{...n,value:Object.create(r.constructor.prototype)}),t}return e};function bU(e,t={}){let n={...hU,...t},r=function(...r){if(t.implicit){let t=(`__STORYBOOK_PREVIEW__`in W?W.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(e=>e.phase===`playing`||e.phase===`rendering`);if(t){let n=!globalThis?.FEATURES?.disallowImplicitActionsInRenderV8,r=new Gu({phase:t.phase,name:e,deprecated:n});if(n)console.warn(r);else throw r}}let i=Ad.getChannel(),a=Date.now().toString(36)+Math.random().toString(36).substring(2),o=r.map(yU),s={id:a,count:0,data:{name:e,args:r.length>1?o:o[0]},options:{...n,maxDepth:5+(n.depth||3)}};i.emit(Sd,s)};return r.isAction=!0,r.implicit=t.implicit,r}var xU=(...e)=>{let t=hU,n=e;n.length===1&&Array.isArray(n[0])&&([n]=n),n.length!==1&&typeof n[n.length-1]!=`string`&&(t={...hU,...n.pop()});let r=n[0];(n.length!==1||typeof r==`string`)&&(r={},n.forEach(e=>{r[e]=e}));let i={};return Object.keys(r).forEach(e=>{i[e]=bU(r[e],t)}),i},SU={"@storybook/global":vo,"storybook/test":vf,"storybook/actions":vd,"storybook/preview-api":Td,"storybook/internal/channels":xo,"storybook/internal/client-logger":jo,"storybook/internal/core-events":na,"storybook/internal/types":ud,"storybook/internal/preview-errors":zu,"storybook/internal/preview-api":Td};async function CU(){let e=new URL(window.location.href);if(e.searchParams.get(`navigator`)!==`true`||globalThis.__STORYBOOK_PREVIEW_NAVIGATOR__)return;globalThis.__STORYBOOK_PREVIEW_NAVIGATOR__=!0;let t=await(await fetch(`/index.json`)).json(),n=e.searchParams.get(`id`);if(!n){let n=Object.values(t.entries)[0];n&&(e.searchParams.set(`id`,n.id),e.searchParams.set(`viewMode`,n.type),window.location.href=e.toString());return}wU(t,n)}var wU=async(e,t)=>{let n={title:``,entries:{},isActive:!0};for(let r of Object.values(e.entries)){let e=r.title.split(`/`),i=n;for(let n of e)i.entries||={},i.entries[n]?t===r.id&&(i.entries[n].isActive=!0):i.entries[n]={title:n,isActive:t===r.id,entries:{}},i=i.entries[n];i.entries||={},i.entries[r.name]={id:r.id,name:r.name,href:`?id=${r.id}&viewMode=${r.type}&navigator=true`,isActive:t===r.id}}let r=e=>{if(`entries`in e&&`title`in e){let t=e;return`
|
|
926
|
+
<li class="sb-navigator-branch">
|
|
927
|
+
<details${t.isActive?` open`:``}>
|
|
928
|
+
<summary class="sb-navigator-title">
|
|
929
|
+
${t.title}
|
|
930
|
+
</summary>
|
|
931
|
+
<ul class="sb-navigator-entries" aria-label="${t.title}">
|
|
932
|
+
${Object.values(t.entries).map(r).join(``)}
|
|
933
|
+
</ul>
|
|
934
|
+
</details>
|
|
935
|
+
</li>
|
|
936
|
+
`}let t=e;return`
|
|
937
|
+
<li class="sb-navigator-story-item">
|
|
938
|
+
<a href="${t.href}"
|
|
939
|
+
class="sb-navigator-story-link${t.isActive?` active`:``}"
|
|
940
|
+
aria-current="${t.isActive?`location`:`false`}">${t.name}</a>
|
|
941
|
+
</li>
|
|
942
|
+
`},i=Object.values(n.entries).map(r).join(``),a=document.createElement(`nav`);a.id=`sb-navigator-container`,a.setAttribute(`role`,`navigation`),a.setAttribute(`aria-label`,`Story navigation`),a.innerHTML=`
|
|
943
|
+
<ul class="sb-navigator-list">${i}</ul>
|
|
944
|
+
`,document.body.insertBefore(a,document.body.firstChild);let o=document.createElement(`style`);o.id=`sb-navigator-style`,o.textContent=`
|
|
945
|
+
body {
|
|
946
|
+
display: grid !important;
|
|
947
|
+
grid-template-columns: 300px 1fr;
|
|
948
|
+
font-family: 'Nunito', sans-serif;
|
|
949
|
+
height: 100vh;
|
|
950
|
+
margin: 0;
|
|
951
|
+
|
|
952
|
+
--text-color: rgb(46, 52, 56);
|
|
953
|
+
--bg-color: rgb(246, 249, 252);
|
|
954
|
+
|
|
955
|
+
@media (prefers-color-scheme: dark) {
|
|
956
|
+
--text-color: rgb(201, 205, 207);
|
|
957
|
+
--bg-color: rgb(34, 36, 37);
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
#storybook-root, #storybook-docs {
|
|
961
|
+
overflow-y: auto;
|
|
962
|
+
max-height: 100vh;
|
|
963
|
+
max-width: 100%;
|
|
964
|
+
}
|
|
965
|
+
#sb-navigator-container, #sb-navigator-container * {
|
|
966
|
+
box-sizing: border-box;
|
|
967
|
+
}
|
|
968
|
+
#sb-navigator-container {
|
|
969
|
+
height: 100vh;
|
|
970
|
+
overflow-y: auto;
|
|
971
|
+
border-right: 1px solid #eee;
|
|
972
|
+
padding: 1rem;
|
|
973
|
+
font-size: 14px;
|
|
974
|
+
color: var(--text-color);
|
|
975
|
+
background-color: var(--bg-color);
|
|
976
|
+
align-self: start;
|
|
977
|
+
z-index: 1000;
|
|
978
|
+
}
|
|
979
|
+
.sb-main-padded #sb-navigator-container {
|
|
980
|
+
margin: -1rem 1rem -1rem -1rem;
|
|
981
|
+
}
|
|
982
|
+
.sb-navigator-list {
|
|
983
|
+
list-style-type: none;
|
|
984
|
+
padding: 0;
|
|
985
|
+
margin: 0;
|
|
986
|
+
}
|
|
987
|
+
.sb-navigator-branch {
|
|
988
|
+
list-style-type: none;
|
|
989
|
+
}
|
|
990
|
+
.sb-navigator-item {
|
|
991
|
+
margin-bottom: 15px;
|
|
992
|
+
}
|
|
993
|
+
.sb-navigator-title {
|
|
994
|
+
color: var(--text-color);
|
|
995
|
+
text-decoration: none;
|
|
996
|
+
padding-block: 5px;
|
|
997
|
+
cursor: pointer;
|
|
998
|
+
}
|
|
999
|
+
.sb-navigator-entries {
|
|
1000
|
+
padding-left: 15px;
|
|
1001
|
+
}
|
|
1002
|
+
.sb-navigator-story-item {
|
|
1003
|
+
margin-bottom: 8px;
|
|
1004
|
+
margin-left: 8px;
|
|
1005
|
+
}
|
|
1006
|
+
.sb-navigator-story-link {
|
|
1007
|
+
color: var(--text-color);
|
|
1008
|
+
}
|
|
1009
|
+
.sb-navigator-story-link.active {
|
|
1010
|
+
font-weight: bold;
|
|
1011
|
+
color: hsl(212 100 46);
|
|
1012
|
+
}
|
|
1013
|
+
`,document.head.appendChild(o),a.querySelector(`.sb-navigator-story-link.active`)?.closest(`details`)?.scrollIntoView({block:`center`})},TU=w(ta(),1),EU;function DU(){return EU||=new TU.default(W.navigator?.userAgent).getBrowserInfo(),EU}function OU(e){return e.browserInfo=DU(),e}function kU(e){let t=e.error||e;t.fromStorybook&&W.sendTelemetryError(t)}function AU({reason:e}){e.fromStorybook&&W.sendTelemetryError(e)}function jU(){bo.forEach(e=>{W[yo[e]]=SU[e]}),W.sendTelemetryError=e=>{W.__STORYBOOK_ADDONS_CHANNEL__.emit(io,OU(e))},document.addEventListener(`DOMContentLoaded`,()=>{W.__STORYBOOK_ADDONS_CHANNEL__.on(mo,e=>{e?document.body.setAttribute(`inert`,`true`):document.body.removeAttribute(`inert`)})}),W.addEventListener(`error`,kU),W.addEventListener(`unhandledrejection`,AU),CU()}jU();var{createBrowserChannel:MU}=__STORYBOOK_MODULE_CHANNELS__,{addons:NU}=__STORYBOOK_MODULE_PREVIEW_API__,PU=MU({page:`preview`});NU.setChannel(PU),window.__STORYBOOK_ADDONS_CHANNEL__=PU,window.CONFIG_TYPE===`DEVELOPMENT`&&(window.__STORYBOOK_SERVER_CHANNEL__=PU);var FU=`storybook/measure-addon`;`${FU}`,`${FU}`,`${FU}`,`${FU}`;function IU(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}var LU={AUTODOCS:`autodocs`,ATTACHED_MDX:`attached-mdx`,UNATTACHED_MDX:`unattached-mdx`,PLAY_FN:`play-fn`,TEST_FN:`test-fn`,DEV:`dev`,TEST:`test`,MANIFEST:`manifest`},RU=Object.create,zU=Object.defineProperty,BU=Object.getOwnPropertyDescriptor,VU=Object.getOwnPropertyNames,HU=Object.getPrototypeOf,UU=Object.prototype.hasOwnProperty,WU=(e=>typeof p<`u`?p:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof p<`u`?p:e)[t]}):e)(function(e){if(typeof p<`u`)return p.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)}),GU=(e,t)=>function(){return t||(0,e[VU(e)[0]])((t={exports:{}}).exports,t),t.exports},KU=(e,t)=>{for(var n in t)zU(e,n,{get:t[n],enumerable:!0})},qU=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of VU(t))!UU.call(e,i)&&i!==n&&zU(e,i,{get:()=>t[i],enumerable:!(r=BU(t,i))||r.enumerable});return e},JU=(e,t,n)=>(n=e==null?{}:RU(HU(e)),qU(t||!e||!e.__esModule?zU(n,`default`,{value:e,enumerable:!0}):n,e)),YU=GU({"../../node_modules/picoquery/lib/string-util.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.encodeString=r;var t=Array.from({length:256},(e,t)=>`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase()),n=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function r(e){let r=e.length;if(r===0)return``;let i=``,a=0,o=0;outer:for(;o<r;o++){let s=e.charCodeAt(o);for(;s<128;){if(n[s]!==1&&(a<o&&(i+=e.slice(a,o)),a=o+1,i+=t[s]),++o===r)break outer;s=e.charCodeAt(o)}if(a<o&&(i+=e.slice(a,o)),s<2048){a=o+1,i+=t[192|s>>6]+t[128|s&63];continue}if(s<55296||s>=57344){a=o+1,i+=t[224|s>>12]+t[128|s>>6&63]+t[128|s&63];continue}if(++o,o>=r)throw Error(`URI malformed`);let c=e.charCodeAt(o)&1023;a=o+1,s=65536+((s&1023)<<10|c),i+=t[240|s>>18]+t[128|s>>12&63]+t[128|s>>6&63]+t[128|s&63]}return a===0?e:a<r?i+e.slice(a):i}}}),XU=GU({"../../node_modules/picoquery/lib/shared.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=YU();e.defaultValueSerializer=e=>{switch(typeof e){case`string`:return(0,t.encodeString)(e);case`bigint`:case`boolean`:return``+e;case`number`:if(Number.isFinite(e))return e<1e21?``+e:(0,t.encodeString)(``+e);break}return e instanceof Date?(0,t.encodeString)(e.toISOString()):``},e.defaultShouldSerializeObject=e=>e instanceof Date;var n=e=>e;e.defaultOptions={nesting:!0,nestingSyntax:`dot`,arrayRepeat:!1,arrayRepeatSyntax:`repeat`,delimiter:38,valueDeserializer:n,valueSerializer:e.defaultValueSerializer,keyDeserializer:n,shouldSerializeObject:e.defaultShouldSerializeObject}}}),ZU=GU({"../../node_modules/picoquery/lib/object-util.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.getDeepObject=i,e.stringifyObject=u;var t=XU(),n=YU();function r(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function i(e,t,n,i,a){if(r(t))return e;let o=e[t];return typeof o==`object`&&o?o:!i&&(a||typeof n==`number`||typeof n==`string`&&n*0==0&&n.indexOf(`.`)===-1)?e[t]=[]:e[t]={}}var a=20,o=`[]`,s=`[`,c=`]`,l=`.`;function u(e,r,i=0,d,f){let{nestingSyntax:p=t.defaultOptions.nestingSyntax,arrayRepeat:m=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:h=t.defaultOptions.arrayRepeatSyntax,nesting:g=t.defaultOptions.nesting,delimiter:_=t.defaultOptions.delimiter,valueSerializer:v=t.defaultOptions.valueSerializer,shouldSerializeObject:y=t.defaultOptions.shouldSerializeObject}=r,b=typeof _==`number`?String.fromCharCode(_):_,x=f===!0&&m,S=p===`dot`||p===`js`&&!f;if(i>a)return``;let C=``,w=!0,T=!1;for(let t in e){let a=e[t];if(a===void 0)continue;let f;d?(f=d,x?h===`bracket`&&(f+=o):S?(f+=l,f+=t):(f+=s,f+=t,f+=c)):f=t,w||(C+=b),typeof a==`object`&&a&&!y(a)?(T=a.pop!==void 0,(g||m&&T)&&(C+=u(a,r,i+1,f,T))):(C+=(0,n.encodeString)(f),C+=`=`,C+=v(a,t)),w&&=!1}return C}}}),QU=GU({"../../node_modules/picoquery/lib/decode-uri-component.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.decodeURIComponent=i;var t=12,n=0,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function i(e){let i=e.indexOf(`%`);if(i===-1)return e;let a=e.length,s=``,c=0,l=0,u=i,d=t;for(;i>-1&&i<a;){let f=o(e[i+1],4)|o(e[i+2],0),p=r[f];if(d=r[256+d+p],l=l<<6|f&r[364+p],d===t)s+=e.slice(c,u),s+=l<=65535?String.fromCharCode(l):String.fromCharCode(55232+(l>>10),56320+(l&1023)),l=0,c=i+3,i=u=e.indexOf(`%`,c);else{if(d===n)return null;if(i+=3,i<a&&e.charCodeAt(i)===37)continue;return null}}return s+e.slice(c)}var a={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function o(e,t){let n=a[e];return n===void 0?255:n<<t}}}),$U=GU({"../../node_modules/picoquery/lib/parse.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=s;var t=ZU(),n=XU(),r=QU();e.numberKeyDeserializer=e=>{let t=Number(e);return Number.isNaN(t)?e:t},e.numberValueDeserializer=e=>{let t=Number(e);return Number.isNaN(t)?e:t};var i=/\+/g,a=function(){};a.prototype=Object.create(null);function o(e,t,n,a,o){let s=e.substring(t,n);return a&&(s=s.replace(i,` `)),o&&(s=(0,r.decodeURIComponent)(s)||s),s}function s(e,s){let{valueDeserializer:c=n.defaultOptions.valueDeserializer,keyDeserializer:l=n.defaultOptions.keyDeserializer,arrayRepeatSyntax:u=n.defaultOptions.arrayRepeatSyntax,nesting:d=n.defaultOptions.nesting,arrayRepeat:f=n.defaultOptions.arrayRepeat,nestingSyntax:p=n.defaultOptions.nestingSyntax,delimiter:m=n.defaultOptions.delimiter}=s??{},h=typeof m==`string`?m.charCodeAt(0):m,g=p===`js`,_=new a;if(typeof e!=`string`)return _;let v=e.length,y=``,b=-1,x=-1,S=-1,C=_,w,T=``,E=``,D=!1,O=!1,k=!1,A=!1,j=!1,M=!1,N=0,P=-1,ee=-1,te=-1;for(let n=0;n<v+1;n++){if(N=n===v?h:e.charCodeAt(n),N===h){if(M=x>b,M||(x=n),S!==x-1&&(E=o(e,S+1,P>-1?P:x,k,D),T=l(E),w!==void 0&&(C=(0,t.getDeepObject)(C,w,T,g&&j,void 0))),M||T!==``){M&&(y=e.slice(x+1,n),A&&(y=y.replace(i,` `)),O&&(y=(0,r.decodeURIComponent)(y)||y));let t=c(y,T);if(f){let e=C[T];e===void 0?P>-1?C[T]=[t]:C[T]=t:e.pop?e.push(t):C[T]=[e,t]}else C[T]=t}y=``,b=n,x=n,D=!1,O=!1,k=!1,A=!1,j=!1,P=-1,S=n,C=_,w=void 0,T=``}else N===93?(f&&u===`bracket`&&te===91&&(P=ee),d&&(p===`index`||g)&&x<=b&&(S!==ee&&(E=o(e,S+1,n,k,D),T=l(E),w!==void 0&&(C=(0,t.getDeepObject)(C,w,T,void 0,void 0)),w=T,k=!1,D=!1),S=n,j=!1)):N===46?d&&(p===`dot`||g)&&x<=b&&(S!==ee&&(E=o(e,S+1,n,k,D),T=l(E),w!==void 0&&(C=(0,t.getDeepObject)(C,w,T,g)),w=T,k=!1,D=!1),j=!0,S=n):N===91?d&&(p===`index`||g)&&x<=b&&(S!==ee&&(E=o(e,S+1,n,k,D),T=l(E),g&&w!==void 0&&(C=(0,t.getDeepObject)(C,w,T,g)),w=T,k=!1,D=!1,j=!1),S=n):N===61?x<=b?x=n:O=!0:N===43?x>b?A=!0:k=!0:N===37&&(x>b?O=!0:D=!0);ee=n,te=N}return _}}}),eW=GU({"../../node_modules/picoquery/lib/stringify.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.stringify=n;var t=ZU();function n(e,n){if(typeof e!=`object`||!e)return``;let r=n??{};return(0,t.stringifyObject)(e,r)}}}),tW=GU({"../../node_modules/picoquery/lib/main.js"(e){var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.stringify=e.parse=void 0;var r=$U();Object.defineProperty(e,`parse`,{enumerable:!0,get:function(){return r.parse}});var i=eW();Object.defineProperty(e,`stringify`,{enumerable:!0,get:function(){return i.stringify}}),n(XU(),e)}});function nW(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 rW(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function iW(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function aW(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function oW(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var sW=`[object RegExp]`,cW=`[object String]`,lW=`[object Number]`,uW=`[object Boolean]`,dW=`[object Symbol]`,fW=`[object Date]`,pW=`[object Map]`,mW=`[object Set]`,hW=`[object Array]`,gW=`[object Function]`,_W=`[object ArrayBuffer]`,vW=`[object Object]`,yW=`[object Error]`,bW=`[object DataView]`,xW=`[object Uint8Array]`,SW=`[object Uint8ClampedArray]`,CW=`[object Uint16Array]`,wW=`[object Uint32Array]`,TW=`[object BigUint64Array]`,EW=`[object Int8Array]`,DW=`[object Int16Array]`,OW=`[object Int32Array]`,kW=`[object BigInt64Array]`,AW=`[object Float32Array]`,jW=`[object Float64Array]`;function MW(e,t){let n={},r=Object.keys(e);for(let i=0;i<r.length;i++){let a=r[i],o=e[a];n[a]=t(o,a,e)}return n}function NW(e){return e===`__proto__`}function PW(e,t,n){let r=Object.keys(t);for(let i=0;i<r.length;i++){let a=r[i];if(NW(a))continue;let o=t[a],s=e[a],c=n(s,o,a,e,t);c===void 0?Array.isArray(o)?Array.isArray(s)?e[a]=PW(s,o,n):e[a]=PW([],o,n):nW(o)?nW(s)?e[a]=PW(s,o,n):e[a]=PW({},o,n):(s===void 0||o!==void 0)&&(e[a]=o):e[a]=c}return e}function FW(e,t){let n={};for(let r=0;r<t.length;r++){let i=t[r];Object.hasOwn(e,i)&&(n[i]=e[i])}return n}function IW(e){if(rW(e))return e;if(Array.isArray(e)||iW(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e),n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){let t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t=new n(e.message);return t.stack=e.stack,t.name=e.name,t.cause=e.cause,t}if(typeof File<`u`&&e instanceof File)return new n([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 LW(e,t){let n={...e};for(let e=0;e<t.length;e++){let r=t[e];delete n[r]}return n}function RW(e,t){return PW(IW(e),t,function e(t,n){if(Array.isArray(n))return PW(Array.isArray(t)?IW(t):[],n,e);if(nW(n))return nW(t)?PW(IW(t),n,e):PW({},n,e)})}var zW=GU({"../../node_modules/jsdoc-type-pratt-parser/dist/index.js"(e,t){(function(n,r){typeof e==`object`&&typeof t<`u`?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n=typeof globalThis<`u`?globalThis:n||self,r(n.jtpp={}))})(e,(function(e){function t(e){return e.text!==void 0&&e.text!==``?`'${e.type}' with value '${e.text}'`:`'${e.type}'`}class n extends Error{constructor(e){super(`No parslet found for token: ${t(e)}`),this.token=e,Object.setPrototypeOf(this,n.prototype)}getToken(){return this.token}}class r extends Error{constructor(e){super(`The parsing ended early. The next token was: ${t(e)}`),this.token=e,Object.setPrototypeOf(this,r.prototype)}getToken(){return this.token}}class i extends Error{constructor(e,t){let n=`Unexpected type: '${e.type}'.`;t!==void 0&&(n+=` Message: ${t}`),super(n),Object.setPrototypeOf(this,i.prototype)}}function a(e){return t=>t.startsWith(e)?{type:e,text:e}:null}function o(e){let t=0,n,r=e[0],i=!1;if(r!==`'`&&r!==`"`)return null;for(;t<e.length;){if(t++,n=e[t],!i&&n===r){t++;break}i=!i&&n===`\\`}if(n!==r)throw Error(`Unterminated String`);return e.slice(0,t)}let s=RegExp(`[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}`,`u`),c=RegExp(`[$\\-\\p{ID_Continue}\\u200C\\u200D]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}`,`u`);function l(e){let t=e[0];if(!s.test(t))return null;let n=1;do{if(t=e[n],!c.test(t))break;n++}while(n<e.length);return e.slice(0,n)}let u=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function d(e){return u.exec(e)?.[0]??null}let f=e=>{let t=l(e);return t==null?null:{type:`Identifier`,text:t}};function p(e){return t=>{if(!t.startsWith(e))return null;let n=t[e.length];return n!==void 0&&c.test(n)?null:{type:e,text:e}}}let m=[e=>e.length>0?null:{type:`EOF`,text:``},a(`=>`),a(`(`),a(`)`),a(`{`),a(`}`),a(`[`),a(`]`),a(`|`),a(`&`),a(`<`),a(`>`),a(`,`),a(`;`),a(`*`),a(`?`),a(`!`),a(`=`),a(`:`),a(`...`),a(`.`),a(`#`),a(`~`),a(`/`),a(`@`),p(`undefined`),p(`null`),p(`function`),p(`this`),p(`new`),p(`module`),p(`event`),p(`extends`),p(`external`),p(`infer`),p(`typeof`),p(`keyof`),p(`readonly`),p(`import`),p(`is`),p(`in`),p(`asserts`),e=>{let t=d(e);return t===null?null:{type:`Number`,text:t}},f,e=>{let t=o(e);return t==null?null:{type:`StringValue`,text:t}}],h=/^\s*\n\s*/;class g{static create(e){let t=this.read(e);e=t.text;let n=this.read(e);return e=n.text,new g(e,void 0,t.token,n.token)}constructor(e,t,n,r){this.text=``,this.text=e,this.previous=t,this.current=n,this.next=r}static read(e,t=!1){t||=h.test(e),e=e.trim();for(let n of m){let r=n(e);if(r!==null){let n=Object.assign(Object.assign({},r),{startOfLine:t});return e=e.slice(n.text.length),{text:e,token:n}}}throw Error(`Unexpected Token `+e)}advance(){let e=g.read(this.text);return new g(e.text,this.current,this.next,e.token)}}function _(e){if(e===void 0)throw Error(`Unexpected undefined`);if(e.type===`JsdocTypeKeyValue`||e.type===`JsdocTypeParameterList`||e.type===`JsdocTypeProperty`||e.type===`JsdocTypeReadonlyProperty`||e.type===`JsdocTypeObjectField`||e.type===`JsdocTypeJsdocObjectField`||e.type===`JsdocTypeIndexSignature`||e.type===`JsdocTypeMappedType`||e.type===`JsdocTypeTypeParameter`)throw new i(e);return e}function v(e){return e.type===`JsdocTypeKeyValue`?b(e):_(e)}function y(e){return e.type===`JsdocTypeName`?e:b(e)}function b(e){if(e.type!==`JsdocTypeKeyValue`)throw new i(e);return e}function x(e){if(e.type===`JsdocTypeVariadic`){if(e.element?.type===`JsdocTypeName`)return e;throw new i(e)}if(e.type!==`JsdocTypeNumber`&&e.type!==`JsdocTypeName`)throw new i(e);return e}function S(e){if(e.type===`JsdocTypeTuple`||e.type===`JsdocTypeGeneric`&&e.meta.brackets===`square`)return e;throw new i(e)}function C(e){return e.type===`JsdocTypeIndexSignature`||e.type===`JsdocTypeMappedType`}var w;(function(e){e[e.ALL=0]=`ALL`,e[e.PARAMETER_LIST=1]=`PARAMETER_LIST`,e[e.OBJECT=2]=`OBJECT`,e[e.KEY_VALUE=3]=`KEY_VALUE`,e[e.INDEX_BRACKETS=4]=`INDEX_BRACKETS`,e[e.UNION=5]=`UNION`,e[e.INTERSECTION=6]=`INTERSECTION`,e[e.PREFIX=7]=`PREFIX`,e[e.INFIX=8]=`INFIX`,e[e.TUPLE=9]=`TUPLE`,e[e.SYMBOL=10]=`SYMBOL`,e[e.OPTIONAL=11]=`OPTIONAL`,e[e.NULLABLE=12]=`NULLABLE`,e[e.KEY_OF_TYPE_OF=13]=`KEY_OF_TYPE_OF`,e[e.FUNCTION=14]=`FUNCTION`,e[e.ARROW=15]=`ARROW`,e[e.ARRAY_BRACKETS=16]=`ARRAY_BRACKETS`,e[e.GENERIC=17]=`GENERIC`,e[e.NAME_PATH=18]=`NAME_PATH`,e[e.PARENTHESIS=19]=`PARENTHESIS`,e[e.SPECIAL_TYPES=20]=`SPECIAL_TYPES`})(w||={});class T{constructor(e,t,n){this.grammar=e,typeof t==`string`?this._lexer=g.create(t):this._lexer=t,this.baseParser=n}get lexer(){return this._lexer}parse(){let e=this.parseType(w.ALL);if(this.lexer.current.type!==`EOF`)throw new r(this.lexer.current);return e}parseType(e){return _(this.parseIntermediateType(e))}parseIntermediateType(e){let t=this.tryParslets(null,e);if(t===null)throw new n(this.lexer.current);return this.parseInfixIntermediateType(t,e)}parseInfixIntermediateType(e,t){let n=this.tryParslets(e,t);for(;n!==null;)e=n,n=this.tryParslets(e,t);return e}tryParslets(e,t){for(let n of this.grammar){let r=n(this,t,e);if(r!==null)return r}return null}consume(e){return Array.isArray(e)||(e=[e]),e.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(e){this._lexer=e.lexer}}function E(e){return e===`}`||e===`EOF`||e===`|`||e===`,`||e===`)`||e===`>`}let D=(e,t,n)=>{let r=e.lexer.current.type,i=e.lexer.next.type;return n==null&&r===`?`&&!E(i)||n!=null&&r===`?`?(e.consume(`?`),n==null?{type:`JsdocTypeNullable`,element:e.parseType(w.NULLABLE),meta:{position:`prefix`}}:{type:`JsdocTypeNullable`,element:_(n),meta:{position:`suffix`}}):null};function O(e){let t=(t,n,r)=>{let i=t.lexer.current.type,a=t.lexer.next.type;if(r===null){if(`parsePrefix`in e&&e.accept(i,a))return e.parsePrefix(t)}else if(`parseInfix`in e&&e.precedence>n&&e.accept(i,a))return e.parseInfix(t,r);return null};return Object.defineProperty(t,`name`,{value:e.name}),t}let k=O({name:`optionalParslet`,accept:e=>e===`=`,precedence:w.OPTIONAL,parsePrefix:e=>(e.consume(`=`),{type:`JsdocTypeOptional`,element:e.parseType(w.OPTIONAL),meta:{position:`prefix`}}),parseInfix:(e,t)=>(e.consume(`=`),{type:`JsdocTypeOptional`,element:_(t),meta:{position:`suffix`}})}),A=O({name:`numberParslet`,accept:e=>e===`Number`,parsePrefix:e=>{let t=parseFloat(e.lexer.current.text);return e.consume(`Number`),{type:`JsdocTypeNumber`,value:t}}}),j=O({name:`parenthesisParslet`,accept:e=>e===`(`,parsePrefix:e=>{if(e.consume(`(`),e.consume(`)`))return{type:`JsdocTypeParameterList`,elements:[]};let t=e.parseIntermediateType(w.ALL);if(!e.consume(`)`))throw Error(`Unterminated parenthesis`);return t.type===`JsdocTypeParameterList`?t:t.type===`JsdocTypeKeyValue`?{type:`JsdocTypeParameterList`,elements:[t]}:{type:`JsdocTypeParenthesis`,element:_(t)}}}),M=O({name:`specialTypesParslet`,accept:(e,t)=>e===`?`&&E(t)||e===`null`||e===`undefined`||e===`*`,parsePrefix:e=>{if(e.consume(`null`))return{type:`JsdocTypeNull`};if(e.consume(`undefined`))return{type:`JsdocTypeUndefined`};if(e.consume(`*`))return{type:`JsdocTypeAny`};if(e.consume(`?`))return{type:`JsdocTypeUnknown`};throw Error(`Unacceptable token: `+e.lexer.current.text)}}),N=O({name:`notNullableParslet`,accept:e=>e===`!`,precedence:w.NULLABLE,parsePrefix:e=>(e.consume(`!`),{type:`JsdocTypeNotNullable`,element:e.parseType(w.NULLABLE),meta:{position:`prefix`}}),parseInfix:(e,t)=>(e.consume(`!`),{type:`JsdocTypeNotNullable`,element:_(t),meta:{position:`suffix`}})});function P({allowTrailingComma:e}){return O({name:`parameterListParslet`,accept:e=>e===`,`,precedence:w.PARAMETER_LIST,parseInfix:(e,t)=>{let r=[v(t)];e.consume(`,`);do try{let t=e.parseIntermediateType(w.PARAMETER_LIST);r.push(v(t))}catch(e){if(e instanceof n)break;throw e}while(e.consume(`,`));if(r.length>0&&r.slice(0,-1).some(e=>e.type===`JsdocTypeVariadic`))throw Error(`Only the last parameter may be a rest parameter`);return{type:`JsdocTypeParameterList`,elements:r}}})}let ee=O({name:`genericParslet`,accept:(e,t)=>e===`<`||e===`.`&&t===`<`,precedence:w.GENERIC,parseInfix:(e,t)=>{let n=e.consume(`.`);e.consume(`<`);let r=[],a=!1;if(e.consume(`infer`)){a=!0;let t=e.parseIntermediateType(w.SYMBOL);if(t.type!==`JsdocTypeName`)throw new i(t,`A typescript asserts always has to have a name on the left side.`);r.push(t)}else do r.push(e.parseType(w.PARAMETER_LIST));while(e.consume(`,`));if(!e.consume(`>`))throw Error(`Unterminated generic parameter list`);return Object.assign(Object.assign({type:`JsdocTypeGeneric`,left:_(t),elements:r},a?{infer:!0}:{}),{meta:{brackets:`angle`,dot:n}})}}),te=O({name:`unionParslet`,accept:e=>e===`|`,precedence:w.UNION,parseInfix:(e,t)=>{e.consume(`|`);let n=[];do n.push(e.parseType(w.UNION));while(e.consume(`|`));return{type:`JsdocTypeUnion`,elements:[_(t),...n]}}}),ne=[D,k,A,j,M,N,P({allowTrailingComma:!0}),ee,te,k];function F({allowSquareBracketsOnAnyType:e,allowJsdocNamePaths:t,pathGrammar:n}){return function(r,a,o){if(o==null||a>=w.NAME_PATH)return null;let s=r.lexer.current.type,c=r.lexer.next.type;if(!(s===`.`&&c!==`<`||s===`[`&&(e||o.type===`JsdocTypeName`)||t&&(s===`~`||s===`#`)))return null;let l,u=!1;r.consume(`.`)?l=`property`:r.consume(`[`)?(l=`property-brackets`,u=!0):r.consume(`~`)?l=`inner`:(r.consume(`#`),l=`instance`);let d=n===null?r:new T(n,r.lexer,r),f=d.parseIntermediateType(w.NAME_PATH);r.acceptLexerState(d);let p;switch(f.type){case`JsdocTypeName`:p={type:`JsdocTypeProperty`,value:f.value,meta:{quote:void 0}};break;case`JsdocTypeNumber`:p={type:`JsdocTypeProperty`,value:f.value.toString(10),meta:{quote:void 0}};break;case`JsdocTypeStringValue`:p={type:`JsdocTypeProperty`,value:f.value,meta:{quote:f.meta.quote}};break;case`JsdocTypeSpecialNamePath`:if(f.specialType===`event`)p=f;else throw new i(f,`Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'`);break;default:throw new i(f,`Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'`)}if(u&&!r.consume(`]`)){let e=r.lexer.current;throw Error(`Unterminated square brackets. Next token is '${e.type}' with text '${e.text}'`)}return{type:`JsdocTypeNamePath`,left:_(o),right:p,pathType:l}}}function re({allowedAdditionalTokens:e}){return O({name:`nameParslet`,accept:t=>t===`Identifier`||t===`this`||t===`new`||e.includes(t),parsePrefix:e=>{let{type:t,text:n}=e.lexer.current;return e.consume(t),{type:`JsdocTypeName`,value:n}}})}let ie=O({name:`stringValueParslet`,accept:e=>e===`StringValue`,parsePrefix:e=>{let t=e.lexer.current.text;return e.consume(`StringValue`),{type:`JsdocTypeStringValue`,value:t.slice(1,-1),meta:{quote:t[0]===`'`?`single`:`double`}}}});function ae({pathGrammar:e,allowedTypes:t}){return O({name:`specialNamePathParslet`,accept:e=>t.includes(e),parsePrefix:t=>{let n=t.lexer.current.type;if(t.consume(n),!t.consume(`:`))return{type:`JsdocTypeName`,value:n};let r,i=t.lexer.current;if(t.consume(`StringValue`))r={type:`JsdocTypeSpecialNamePath`,value:i.text.slice(1,-1),specialType:n,meta:{quote:i.text[0]===`'`?`single`:`double`}};else{let e=``,a=[`Identifier`,`@`,`/`];for(;a.some(e=>t.consume(e));)e+=i.text,i=t.lexer.current;r={type:`JsdocTypeSpecialNamePath`,value:e,specialType:n,meta:{quote:void 0}}}let a=new T(e,t.lexer,t),o=a.parseInfixIntermediateType(r,w.ALL);return t.acceptLexerState(a),_(o)}})}let I=[re({allowedAdditionalTokens:[`external`,`module`]}),ie,A,F({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],oe=[...I,ae({allowedTypes:[`event`],pathGrammar:I})];function se(e){let t;if(e.type===`JsdocTypeParameterList`)t=e.elements;else if(e.type===`JsdocTypeParenthesis`)t=[e.element];else throw new i(e);return t.map(e=>v(e))}function ce(e){let t=se(e);if(t.some(e=>e.type===`JsdocTypeKeyValue`))throw Error(`No parameter should be named`);return t}function le({allowNamedParameters:e,allowNoReturnType:t,allowWithoutParenthesis:n,allowNewAsFunctionKeyword:r}){return O({name:`functionParslet`,accept:(e,t)=>e===`function`||r&&e===`new`&&t===`(`,parsePrefix:r=>{let i=r.consume(`new`);r.consume(`function`);let a=r.lexer.current.type===`(`;if(!a){if(!n)throw Error(`function is missing parameter list`);return{type:`JsdocTypeName`,value:`function`}}let o={type:`JsdocTypeFunction`,parameters:[],arrow:!1,constructor:i,parenthesis:a},s=r.parseIntermediateType(w.FUNCTION);if(e===void 0)o.parameters=ce(s);else{if(i&&s.type===`JsdocTypeFunction`&&s.arrow)return o=s,o.constructor=!0,o;o.parameters=se(s);for(let t of o.parameters)if(t.type===`JsdocTypeKeyValue`&&!e.includes(t.key))throw Error(`only allowed named parameters are ${e.join(`, `)} but got ${t.type}`)}if(r.consume(`:`))o.returnType=r.parseType(w.PREFIX);else if(!t)throw Error(`function is missing return type`);return o}})}function ue({allowPostfix:e,allowEnclosingBrackets:t}){return O({name:`variadicParslet`,accept:e=>e===`...`,precedence:w.PREFIX,parsePrefix:e=>{e.consume(`...`);let r=t&&e.consume(`[`);try{let t=e.parseType(w.PREFIX);if(r&&!e.consume(`]`))throw Error(`Unterminated variadic type. Missing ']'`);return{type:`JsdocTypeVariadic`,element:_(t),meta:{position:`prefix`,squareBrackets:r}}}catch(e){if(e instanceof n){if(r)throw Error(`Empty square brackets for variadic are not allowed.`);return{type:`JsdocTypeVariadic`,meta:{position:void 0,squareBrackets:!1}}}else throw e}},parseInfix:e?(e,t)=>(e.consume(`...`),{type:`JsdocTypeVariadic`,element:_(t),meta:{position:`suffix`,squareBrackets:!1}}):void 0})}let de=O({name:`symbolParslet`,accept:e=>e===`(`,precedence:w.SYMBOL,parseInfix:(e,t)=>{if(t.type!==`JsdocTypeName`)throw Error(`Symbol expects a name on the left side. (Reacting on '(')`);e.consume(`(`);let n={type:`JsdocTypeSymbol`,value:t.value};if(!e.consume(`)`)&&(n.element=x(e.parseIntermediateType(w.SYMBOL)),!e.consume(`)`)))throw Error(`Symbol does not end after value`);return n}}),fe=O({name:`arrayBracketsParslet`,precedence:w.ARRAY_BRACKETS,accept:(e,t)=>e===`[`&&t===`]`,parseInfix:(e,t)=>(e.consume(`[`),e.consume(`]`),{type:`JsdocTypeGeneric`,left:{type:`JsdocTypeName`,value:`Array`},elements:[_(t)],meta:{brackets:`square`,dot:!1}})});function pe({objectFieldGrammar:e,allowKeyTypes:t}){return O({name:`objectParslet`,accept:e=>e===`{`,parsePrefix:n=>{n.consume(`{`);let r={type:`JsdocTypeObject`,meta:{separator:`comma`},elements:[]};if(!n.consume(`}`)){let a,o=new T(e,n.lexer,n);for(;;){o.acceptLexerState(n);let e=o.parseIntermediateType(w.OBJECT);n.acceptLexerState(o),e===void 0&&t&&(e=n.parseIntermediateType(w.OBJECT));let s=!1;if(e.type===`JsdocTypeNullable`&&(s=!0,e=e.element),e.type===`JsdocTypeNumber`||e.type===`JsdocTypeName`||e.type===`JsdocTypeStringValue`){let t;e.type===`JsdocTypeStringValue`&&(t=e.meta.quote),r.elements.push({type:`JsdocTypeObjectField`,key:e.value.toString(),right:void 0,optional:s,readonly:!1,meta:{quote:t}})}else if(e.type===`JsdocTypeObjectField`||e.type===`JsdocTypeJsdocObjectField`)r.elements.push(e);else throw new i(e);if(n.lexer.current.startOfLine)a=`linebreak`,n.consume(`,`)||n.consume(`;`);else if(n.consume(`,`))a=`comma`;else if(n.consume(`;`))a=`semicolon`;else break;if(n.lexer.current.type===`}`)break}if(r.meta.separator=a??`comma`,a===`linebreak`&&(r.meta.propertyIndent=` `),!n.consume(`}`))throw Error(`Unterminated record type. Missing '}'`)}return r}})}function me({allowSquaredProperties:e,allowKeyTypes:t,allowReadonly:n,allowOptional:r}){return O({name:`objectFieldParslet`,precedence:w.KEY_VALUE,accept:e=>e===`:`,parseInfix:(a,o)=>{let s=!1,c=!1;r&&o.type===`JsdocTypeNullable`&&(s=!0,o=o.element),n&&o.type===`JsdocTypeReadonlyProperty`&&(c=!0,o=o.element);let l=a.baseParser??a;if(l.acceptLexerState(a),o.type===`JsdocTypeNumber`||o.type===`JsdocTypeName`||o.type===`JsdocTypeStringValue`||C(o)){if(C(o)&&!e)throw new i(o);l.consume(`:`);let t;o.type===`JsdocTypeStringValue`&&(t=o.meta.quote);let n=l.parseType(w.KEY_VALUE);return a.acceptLexerState(l),{type:`JsdocTypeObjectField`,key:C(o)?o:o.value.toString(),right:n,optional:s,readonly:c,meta:{quote:t}}}else{if(!t)throw new i(o);l.consume(`:`);let e=l.parseType(w.KEY_VALUE);return a.acceptLexerState(l),{type:`JsdocTypeJsdocObjectField`,left:_(o),right:e}}}})}function he({allowOptional:e,allowVariadic:t}){return O({name:`keyValueParslet`,precedence:w.KEY_VALUE,accept:e=>e===`:`,parseInfix:(n,r)=>{let a=!1,o=!1;if(e&&r.type===`JsdocTypeNullable`&&(a=!0,r=r.element),t&&r.type===`JsdocTypeVariadic`&&r.element!==void 0&&(o=!0,r=r.element),r.type!==`JsdocTypeName`)throw new i(r);n.consume(`:`);let s=n.parseType(w.KEY_VALUE);return{type:`JsdocTypeKeyValue`,key:r.value,right:s,optional:a,variadic:o}}})}let ge=[...ne,le({allowWithoutParenthesis:!0,allowNamedParameters:[`this`,`new`],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),ie,ae({allowedTypes:[`module`,`external`,`event`],pathGrammar:oe}),ue({allowEnclosingBrackets:!0,allowPostfix:!0}),re({allowedAdditionalTokens:[`keyof`]}),de,fe,F({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:oe})],_e=[...ge,pe({objectFieldGrammar:[re({allowedAdditionalTokens:[`typeof`,`module`,`in`]}),me({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...ge],allowKeyTypes:!0}),he({allowOptional:!0,allowVariadic:!0})],ve=O({name:`typeOfParslet`,accept:e=>e===`typeof`,parsePrefix:e=>(e.consume(`typeof`),{type:`JsdocTypeTypeof`,element:e.parseType(w.KEY_OF_TYPE_OF)})}),ye=[re({allowedAdditionalTokens:[`typeof`,`module`,`keyof`,`event`,`external`,`in`]}),D,k,ie,A,me({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],be=[...ne,pe({allowKeyTypes:!1,objectFieldGrammar:ye}),re({allowedAdditionalTokens:[`event`,`external`,`in`]}),ve,le({allowWithoutParenthesis:!1,allowNamedParameters:[`this`,`new`],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),ue({allowEnclosingBrackets:!1,allowPostfix:!1}),re({allowedAdditionalTokens:[`keyof`]}),ae({allowedTypes:[`module`],pathGrammar:oe}),F({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:oe}),he({allowOptional:!1,allowVariadic:!1}),de],xe=O({name:`assertsParslet`,accept:e=>e===`asserts`,parsePrefix:e=>{e.consume(`asserts`);let t=e.parseIntermediateType(w.SYMBOL);if(t.type!==`JsdocTypeName`)throw new i(t,`A typescript asserts always has to have a name on the left side.`);return e.consume(`is`)?{type:`JsdocTypeAsserts`,left:t,right:_(e.parseIntermediateType(w.INFIX))}:{type:`JsdocTypeAssertsPlain`,element:t}}});function L({allowQuestionMark:e}){return O({name:`tupleParslet`,accept:e=>e===`[`,parsePrefix:e=>{e.consume(`[`);let t={type:`JsdocTypeTuple`,elements:[]};if(e.consume(`]`))return t;let n=e.parseIntermediateType(w.ALL);if(n.type===`JsdocTypeParameterList`?n.elements[0].type===`JsdocTypeKeyValue`?t.elements=n.elements.map(b):t.elements=n.elements.map(_):n.type===`JsdocTypeKeyValue`?t.elements=[b(n)]:t.elements=[_(n)],!e.consume(`]`))throw Error(`Unterminated '['`);if(t.elements.some(e=>e.type===`JsdocTypeUnknown`))throw Error(`Question mark in tuple not allowed`);return t}})}let Se=O({name:`keyOfParslet`,accept:e=>e===`keyof`,parsePrefix:e=>(e.consume(`keyof`),{type:`JsdocTypeKeyof`,element:_(e.parseType(w.KEY_OF_TYPE_OF))})}),Ce=O({name:`importParslet`,accept:e=>e===`import`,parsePrefix:e=>{if(e.consume(`import`),!e.consume(`(`))throw Error(`Missing parenthesis after import keyword`);let t=e.parseType(w.PREFIX);if(t.type!==`JsdocTypeStringValue`)throw Error(`Only string values are allowed as paths for imports`);if(!e.consume(`)`))throw Error(`Missing closing parenthesis after import keyword`);return{type:`JsdocTypeImport`,element:t}}}),we=O({name:`readonlyPropertyParslet`,accept:e=>e===`readonly`,parsePrefix:e=>(e.consume(`readonly`),{type:`JsdocTypeReadonlyProperty`,element:e.parseIntermediateType(w.KEY_VALUE)})}),R=O({name:`arrowFunctionParslet`,precedence:w.ARROW,accept:e=>e===`=>`,parseInfix:(e,t)=>(e.consume(`=>`),{type:`JsdocTypeFunction`,parameters:se(t).map(y),arrow:!0,constructor:!1,parenthesis:!0,returnType:e.parseType(w.OBJECT)})}),Te=O({name:`genericArrowFunctionParslet`,accept:e=>e===`<`,parsePrefix:e=>{let t=[];e.consume(`<`);do{let n,r=e.parseIntermediateType(w.SYMBOL);if(r.type===`JsdocTypeOptional`&&(r=r.element,n=e.parseType(w.SYMBOL)),r.type!==`JsdocTypeName`)throw new i(r);let a;e.consume(`extends`)&&(a=e.parseType(w.SYMBOL),a.type===`JsdocTypeOptional`&&(a=a.element,n=e.parseType(w.SYMBOL)));let o={type:`JsdocTypeTypeParameter`,name:r};if(a!==void 0&&(o.constraint=a),n!==void 0&&(o.defaultValue=n),t.push(o),e.consume(`>`))break}while(e.consume(`,`));let n=e.parseIntermediateType(w.SYMBOL);return n.typeParameters=t,n}}),Ee=O({name:`intersectionParslet`,accept:e=>e===`&`,precedence:w.INTERSECTION,parseInfix:(e,t)=>{e.consume(`&`);let n=[];do n.push(e.parseType(w.INTERSECTION));while(e.consume(`&`));return{type:`JsdocTypeIntersection`,elements:[_(t),...n]}}}),De=O({name:`predicateParslet`,precedence:w.INFIX,accept:e=>e===`is`,parseInfix:(e,t)=>{if(t.type!==`JsdocTypeName`)throw new i(t,`A typescript predicate always has to have a name on the left side.`);return e.consume(`is`),{type:`JsdocTypePredicate`,left:t,right:_(e.parseIntermediateType(w.INFIX))}}}),z=O({name:`objectSquareBracketPropertyParslet`,accept:e=>e===`[`,parsePrefix:e=>{if(e.baseParser===void 0)throw Error(`Only allowed inside object grammar`);e.consume(`[`);let t=e.lexer.current.text;e.consume(`Identifier`);let n;if(e.consume(`:`)){let r=e.baseParser;r.acceptLexerState(e),n={type:`JsdocTypeIndexSignature`,key:t,right:r.parseType(w.INDEX_BRACKETS)},e.acceptLexerState(r)}else if(e.consume(`in`)){let r=e.baseParser;r.acceptLexerState(e),n={type:`JsdocTypeMappedType`,key:t,right:r.parseType(w.ARRAY_BRACKETS)},e.acceptLexerState(r)}else throw Error(`Missing ':' or 'in' inside square bracketed property.`);if(!e.consume(`]`))throw Error(`Unterminated square brackets`);return n}}),Oe=O({name:`readonlyArrayParslet`,accept:e=>e===`readonly`,parsePrefix:e=>(e.consume(`readonly`),{type:`JsdocTypeReadonlyArray`,element:S(e.parseIntermediateType(w.ALL))})}),ke=O({name:`conditionalParslet`,precedence:w.INFIX,accept:e=>e===`extends`,parseInfix:(e,t)=>{e.consume(`extends`);let n=e.parseType(w.KEY_OF_TYPE_OF).element,r=e.parseType(w.INFIX);return e.consume(`:`),{type:`JsdocTypeConditional`,checksType:_(t),extendsType:n,trueType:r,falseType:e.parseType(w.INFIX)}}}),Ae=[we,re({allowedAdditionalTokens:[`typeof`,`module`,`keyof`,`event`,`external`,`in`]}),D,k,ie,A,me({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),z],je=[...ne,pe({allowKeyTypes:!1,objectFieldGrammar:Ae}),Oe,ve,Se,Ce,ie,le({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:[`this`,`new`,`args`],allowNewAsFunctionKeyword:!0}),L({allowQuestionMark:!1}),ue({allowEnclosingBrackets:!1,allowPostfix:!1}),xe,ke,re({allowedAdditionalTokens:[`event`,`external`,`in`]}),ae({allowedTypes:[`module`],pathGrammar:oe}),fe,R,Te,F({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:oe}),Ee,De,he({allowVariadic:!0,allowOptional:!0})];function Me(e,t){switch(t){case`closure`:return new T(be,e).parse();case`jsdoc`:return new T(_e,e).parse();case`typescript`:return new T(je,e).parse()}}function Ne(e,t=[`typescript`,`closure`,`jsdoc`]){let n;for(let r of t)try{return Me(e,r)}catch(e){n=e}throw n}function Pe(e,t){let n=e[t.type];if(n===void 0)throw Error(`In this set of transform rules exists no rule for type ${t.type}.`);return n(t,t=>Pe(e,t))}function B(e){throw Error(`This transform is not available. Are you trying the correct parsing mode?`)}function Fe(e){let t={params:[]};for(let n of e.parameters)n.type===`JsdocTypeKeyValue`?n.key===`this`?t.this=n.right:n.key===`new`?t.new=n.right:t.params.push(n):t.params.push(n);return t}function Ie(e,t,n){return e===`prefix`?n+t:t+n}function Le(e,t){switch(t){case`double`:return`"${e}"`;case`single`:return`'${e}'`;case void 0:return e}}function Re(){return{JsdocTypeParenthesis:(e,t)=>`(${e.element===void 0?``:t(e.element)})`,JsdocTypeKeyof:(e,t)=>`keyof ${t(e.element)}`,JsdocTypeFunction:(e,t)=>{if(e.arrow){if(e.returnType===void 0)throw Error(`Arrow function needs a return type.`);let n=`${e.typeParameters===void 0?``:`<${e.typeParameters.map(t).join(`, `)??``}>`}(${e.parameters.map(t).join(`, `)}) => ${t(e.returnType)}`;return e.constructor&&(n=`new `+n),n}else{let n=e.constructor?`new`:`function`;return e.parenthesis&&(n+=`(${e.parameters.map(t).join(`, `)})`,e.returnType!==void 0&&(n+=`: ${t(e.returnType)}`)),n}},JsdocTypeName:e=>e.value,JsdocTypeTuple:(e,t)=>`[${e.elements.map(t).join(`, `)}]`,JsdocTypeVariadic:(e,t)=>e.meta.position===void 0?`...`:Ie(e.meta.position,t(e.element),`...`),JsdocTypeNamePath:(e,t)=>{let n=t(e.left),r=t(e.right);switch(e.pathType){case`inner`:return`${n}~${r}`;case`instance`:return`${n}#${r}`;case`property`:return`${n}.${r}`;case`property-brackets`:return`${n}[${r}]`}},JsdocTypeStringValue:e=>Le(e.value,e.meta.quote),JsdocTypeAny:()=>`*`,JsdocTypeGeneric:(e,t)=>{if(e.meta.brackets===`square`){let n=e.elements[0],r=t(n);return n.type===`JsdocTypeUnion`||n.type===`JsdocTypeIntersection`?`(${r})[]`:`${r}[]`}else return`${t(e.left)}${e.meta.dot?`.`:``}<${e.infer===!0?`infer `:``}${e.elements.map(t).join(`, `)}>`},JsdocTypeImport:(e,t)=>`import(${t(e.element)})`,JsdocTypeObjectField:(e,t)=>{let n=``;return e.readonly&&(n+=`readonly `),typeof e.key==`string`?n+=Le(e.key,e.meta.quote):n+=t(e.key),e.optional&&(n+=`?`),e.right===void 0?n:n+`: ${t(e.right)}`},JsdocTypeJsdocObjectField:(e,t)=>`${t(e.left)}: ${t(e.right)}`,JsdocTypeKeyValue:(e,t)=>{let n=e.key;return e.optional&&(n+=`?`),e.variadic&&(n=`...`+n),e.right===void 0?n:n+`: ${t(e.right)}`},JsdocTypeSpecialNamePath:e=>`${e.specialType}:${Le(e.value,e.meta.quote)}`,JsdocTypeNotNullable:(e,t)=>Ie(e.meta.position,t(e.element),`!`),JsdocTypeNull:()=>`null`,JsdocTypeNullable:(e,t)=>Ie(e.meta.position,t(e.element),`?`),JsdocTypeNumber:e=>e.value.toString(),JsdocTypeObject:(e,t)=>`{${(e.meta.separator===`linebreak`&&e.elements.length>1?`
|
|
1014
|
+
`+(e.meta.propertyIndent??``):``)+e.elements.map(t).join(e.meta.separator===`comma`?`, `:e.meta.separator===`linebreak`?`
|
|
1015
|
+
`+(e.meta.propertyIndent??``):`; `)+(e.meta.separator===`linebreak`&&e.elements.length>1?`
|
|
1016
|
+
`:``)}}`,JsdocTypeOptional:(e,t)=>Ie(e.meta.position,t(e.element),`=`),JsdocTypeSymbol:(e,t)=>`${e.value}(${e.element===void 0?``:t(e.element)})`,JsdocTypeTypeof:(e,t)=>`typeof ${t(e.element)}`,JsdocTypeUndefined:()=>`undefined`,JsdocTypeUnion:(e,t)=>e.elements.map(t).join(` | `),JsdocTypeUnknown:()=>`?`,JsdocTypeIntersection:(e,t)=>e.elements.map(t).join(` & `),JsdocTypeProperty:e=>Le(e.value,e.meta.quote),JsdocTypePredicate:(e,t)=>`${t(e.left)} is ${t(e.right)}`,JsdocTypeIndexSignature:(e,t)=>`[${e.key}: ${t(e.right)}]`,JsdocTypeMappedType:(e,t)=>`[${e.key} in ${t(e.right)}]`,JsdocTypeAsserts:(e,t)=>`asserts ${t(e.left)} is ${t(e.right)}`,JsdocTypeReadonlyArray:(e,t)=>`readonly ${t(e.element)}`,JsdocTypeAssertsPlain:(e,t)=>`asserts ${t(e.element)}`,JsdocTypeConditional:(e,t)=>`${t(e.checksType)} extends ${t(e.extendsType)} ? ${t(e.trueType)} : ${t(e.falseType)}`,JsdocTypeTypeParameter:(e,t)=>`${t(e.name)}${e.constraint===void 0?``:` extends ${t(e.constraint)}`}${e.defaultValue===void 0?``:` = ${t(e.defaultValue)}`}`}}let ze=Re();function Be(e){return Pe(ze,e)}let Ve=`null.true.false.break.case.catch.class.const.continue.debugger.default.delete.do.else.export.extends.finally.for.function.if.import.in.instanceof.new.return.super.switch.this.throw.try.typeof.var.void.while.with.yield`.split(`.`);function He(e){let t={type:`NameExpression`,name:e};return Ve.includes(e)&&(t.reservedWord=!0),t}let Ue={JsdocTypeOptional:(e,t)=>{let n=t(e.element);return n.optional=!0,n},JsdocTypeNullable:(e,t)=>{let n=t(e.element);return n.nullable=!0,n},JsdocTypeNotNullable:(e,t)=>{let n=t(e.element);return n.nullable=!1,n},JsdocTypeVariadic:(e,t)=>{if(e.element===void 0)throw Error(`dots without value are not allowed in catharsis mode`);let n=t(e.element);return n.repeatable=!0,n},JsdocTypeAny:()=>({type:`AllLiteral`}),JsdocTypeNull:()=>({type:`NullLiteral`}),JsdocTypeStringValue:e=>He(Le(e.value,e.meta.quote)),JsdocTypeUndefined:()=>({type:`UndefinedLiteral`}),JsdocTypeUnknown:()=>({type:`UnknownLiteral`}),JsdocTypeFunction:(e,t)=>{let n=Fe(e),r={type:`FunctionType`,params:n.params.map(t)};return n.this!==void 0&&(r.this=t(n.this)),n.new!==void 0&&(r.new=t(n.new)),e.returnType!==void 0&&(r.result=t(e.returnType)),r},JsdocTypeGeneric:(e,t)=>({type:`TypeApplication`,applications:e.elements.map(e=>t(e)),expression:t(e.left)}),JsdocTypeSpecialNamePath:e=>He(e.specialType+`:`+Le(e.value,e.meta.quote)),JsdocTypeName:e=>e.value===`function`?{type:`FunctionType`,params:[]}:He(e.value),JsdocTypeNumber:e=>He(e.value.toString()),JsdocTypeObject:(e,t)=>{let n={type:`RecordType`,fields:[]};for(let r of e.elements)r.type!==`JsdocTypeObjectField`&&r.type!==`JsdocTypeJsdocObjectField`?n.fields.push({type:`FieldType`,key:t(r),value:void 0}):n.fields.push(t(r));return n},JsdocTypeObjectField:(e,t)=>{if(typeof e.key!=`string`)throw Error(`Index signatures and mapped types are not supported`);return{type:`FieldType`,key:He(Le(e.key,e.meta.quote)),value:e.right===void 0?void 0:t(e.right)}},JsdocTypeJsdocObjectField:(e,t)=>({type:`FieldType`,key:t(e.left),value:t(e.right)}),JsdocTypeUnion:(e,t)=>({type:`TypeUnion`,elements:e.elements.map(e=>t(e))}),JsdocTypeKeyValue:(e,t)=>({type:`FieldType`,key:He(e.key),value:e.right===void 0?void 0:t(e.right)}),JsdocTypeNamePath:(e,t)=>{let n=t(e.left),r;r=e.right.type===`JsdocTypeSpecialNamePath`?t(e.right).name:Le(e.right.value,e.right.meta.quote);let i=e.pathType===`inner`?`~`:e.pathType===`instance`?`#`:`.`;return He(`${n.name}${i}${r}`)},JsdocTypeSymbol:e=>{let t=``,n=e.element,r=!1;return n?.type===`JsdocTypeVariadic`&&(n.meta.position===`prefix`?t=`...`:r=!0,n=n.element),n?.type===`JsdocTypeName`?t+=n.value:n?.type===`JsdocTypeNumber`&&(t+=n.value.toString()),r&&(t+=`...`),He(`${e.value}(${t})`)},JsdocTypeParenthesis:(e,t)=>t(_(e.element)),JsdocTypeMappedType:B,JsdocTypeIndexSignature:B,JsdocTypeImport:B,JsdocTypeKeyof:B,JsdocTypeTuple:B,JsdocTypeTypeof:B,JsdocTypeIntersection:B,JsdocTypeProperty:B,JsdocTypePredicate:B,JsdocTypeAsserts:B,JsdocTypeReadonlyArray:B,JsdocTypeAssertsPlain:B,JsdocTypeConditional:B,JsdocTypeTypeParameter:B};function We(e){return Pe(Ue,e)}function Ge(e){switch(e){case void 0:return`none`;case`single`:return`single`;case`double`:return`double`}}function Ke(e){switch(e){case`inner`:return`INNER_MEMBER`;case`instance`:return`INSTANCE_MEMBER`;case`property`:return`MEMBER`;case`property-brackets`:return`MEMBER`}}function qe(e,t){return t.length===2?{type:e,left:t[0],right:t[1]}:{type:e,left:t[0],right:qe(e,t.slice(1))}}let V={JsdocTypeOptional:(e,t)=>({type:`OPTIONAL`,value:t(e.element),meta:{syntax:e.meta.position===`prefix`?`PREFIX_EQUAL_SIGN`:`SUFFIX_EQUALS_SIGN`}}),JsdocTypeNullable:(e,t)=>({type:`NULLABLE`,value:t(e.element),meta:{syntax:e.meta.position===`prefix`?`PREFIX_QUESTION_MARK`:`SUFFIX_QUESTION_MARK`}}),JsdocTypeNotNullable:(e,t)=>({type:`NOT_NULLABLE`,value:t(e.element),meta:{syntax:e.meta.position===`prefix`?`PREFIX_BANG`:`SUFFIX_BANG`}}),JsdocTypeVariadic:(e,t)=>{let n={type:`VARIADIC`,meta:{syntax:e.meta.position===`prefix`?`PREFIX_DOTS`:e.meta.position===`suffix`?`SUFFIX_DOTS`:`ONLY_DOTS`}};return e.element!==void 0&&(n.value=t(e.element)),n},JsdocTypeName:e=>({type:`NAME`,name:e.value}),JsdocTypeTypeof:(e,t)=>({type:`TYPE_QUERY`,name:t(e.element)}),JsdocTypeTuple:(e,t)=>({type:`TUPLE`,entries:e.elements.map(t)}),JsdocTypeKeyof:(e,t)=>({type:`KEY_QUERY`,value:t(e.element)}),JsdocTypeImport:e=>({type:`IMPORT`,path:{type:`STRING_VALUE`,quoteStyle:Ge(e.element.meta.quote),string:e.element.value}}),JsdocTypeUndefined:()=>({type:`NAME`,name:`undefined`}),JsdocTypeAny:()=>({type:`ANY`}),JsdocTypeFunction:(e,t)=>{let n=Fe(e),r={type:e.arrow?`ARROW`:`FUNCTION`,params:n.params.map(e=>{if(e.type===`JsdocTypeKeyValue`){if(e.right===void 0)throw Error(`Function parameter without ':' is not expected to be 'KEY_VALUE'`);return{type:`NAMED_PARAMETER`,name:e.key,typeName:t(e.right)}}else return t(e)}),new:null,returns:null};return n.this===void 0?e.arrow||(r.this=null):r.this=t(n.this),n.new!==void 0&&(r.new=t(n.new)),e.returnType!==void 0&&(r.returns=t(e.returnType)),r},JsdocTypeGeneric:(e,t)=>{let n={type:`GENERIC`,subject:t(e.left),objects:e.elements.map(t),meta:{syntax:e.meta.brackets===`square`?`SQUARE_BRACKET`:e.meta.dot?`ANGLE_BRACKET_WITH_DOT`:`ANGLE_BRACKET`}};return e.meta.brackets===`square`&&e.elements[0].type===`JsdocTypeFunction`&&!e.elements[0].parenthesis&&(n.objects[0]={type:`NAME`,name:`function`}),n},JsdocTypeObjectField:(e,t)=>{if(typeof e.key!=`string`)throw Error(`Index signatures and mapped types are not supported`);if(e.right===void 0)return{type:`RECORD_ENTRY`,key:e.key,quoteStyle:Ge(e.meta.quote),value:null,readonly:!1};let n=t(e.right);return e.optional&&(n={type:`OPTIONAL`,value:n,meta:{syntax:`SUFFIX_KEY_QUESTION_MARK`}}),{type:`RECORD_ENTRY`,key:e.key.toString(),quoteStyle:Ge(e.meta.quote),value:n,readonly:!1}},JsdocTypeJsdocObjectField:()=>{throw Error(`Keys may not be typed in jsdoctypeparser.`)},JsdocTypeKeyValue:(e,t)=>{if(e.right===void 0)return{type:`RECORD_ENTRY`,key:e.key,quoteStyle:`none`,value:null,readonly:!1};let n=t(e.right);return e.optional&&(n={type:`OPTIONAL`,value:n,meta:{syntax:`SUFFIX_KEY_QUESTION_MARK`}}),{type:`RECORD_ENTRY`,key:e.key,quoteStyle:`none`,value:n,readonly:!1}},JsdocTypeObject:(e,t)=>{let n=[];for(let r of e.elements)(r.type===`JsdocTypeObjectField`||r.type===`JsdocTypeJsdocObjectField`)&&n.push(t(r));return{type:`RECORD`,entries:n}},JsdocTypeSpecialNamePath:e=>{if(e.specialType!==`module`)throw Error(`jsdoctypeparser does not support type ${e.specialType} at this point.`);return{type:`MODULE`,value:{type:`FILE_PATH`,quoteStyle:Ge(e.meta.quote),path:e.value}}},JsdocTypeNamePath:(e,t)=>{let n=!1,r,i;e.right.type===`JsdocTypeSpecialNamePath`&&e.right.specialType===`event`?(n=!0,r=e.right.value,i=Ge(e.right.meta.quote)):(r=e.right.value,i=Ge(e.right.meta.quote));let a={type:Ke(e.pathType),owner:t(e.left),name:r,quoteStyle:i,hasEventPrefix:n};if(a.owner.type===`MODULE`){let e=a.owner;return a.owner=a.owner.value,e.value=a,e}else return a},JsdocTypeUnion:(e,t)=>qe(`UNION`,e.elements.map(t)),JsdocTypeParenthesis:(e,t)=>({type:`PARENTHESIS`,value:t(_(e.element))}),JsdocTypeNull:()=>({type:`NAME`,name:`null`}),JsdocTypeUnknown:()=>({type:`UNKNOWN`}),JsdocTypeStringValue:e=>({type:`STRING_VALUE`,quoteStyle:Ge(e.meta.quote),string:e.value}),JsdocTypeIntersection:(e,t)=>qe(`INTERSECTION`,e.elements.map(t)),JsdocTypeNumber:e=>({type:`NUMBER_VALUE`,number:e.value.toString()}),JsdocTypeSymbol:B,JsdocTypeProperty:B,JsdocTypePredicate:B,JsdocTypeMappedType:B,JsdocTypeIndexSignature:B,JsdocTypeAsserts:B,JsdocTypeReadonlyArray:B,JsdocTypeAssertsPlain:B,JsdocTypeConditional:B,JsdocTypeTypeParameter:B};function Je(e){return Pe(V,e)}function Ye(){return{JsdocTypeIntersection:(e,t)=>({type:`JsdocTypeIntersection`,elements:e.elements.map(t)}),JsdocTypeGeneric:(e,t)=>({type:`JsdocTypeGeneric`,left:t(e.left),elements:e.elements.map(t),meta:{dot:e.meta.dot,brackets:e.meta.brackets}}),JsdocTypeNullable:e=>e,JsdocTypeUnion:(e,t)=>({type:`JsdocTypeUnion`,elements:e.elements.map(t)}),JsdocTypeUnknown:e=>e,JsdocTypeUndefined:e=>e,JsdocTypeTypeof:(e,t)=>({type:`JsdocTypeTypeof`,element:t(e.element)}),JsdocTypeSymbol:(e,t)=>{let n={type:`JsdocTypeSymbol`,value:e.value};return e.element!==void 0&&(n.element=t(e.element)),n},JsdocTypeOptional:(e,t)=>({type:`JsdocTypeOptional`,element:t(e.element),meta:{position:e.meta.position}}),JsdocTypeObject:(e,t)=>({type:`JsdocTypeObject`,meta:{separator:`comma`},elements:e.elements.map(t)}),JsdocTypeNumber:e=>e,JsdocTypeNull:e=>e,JsdocTypeNotNullable:(e,t)=>({type:`JsdocTypeNotNullable`,element:t(e.element),meta:{position:e.meta.position}}),JsdocTypeSpecialNamePath:e=>e,JsdocTypeObjectField:(e,t)=>({type:`JsdocTypeObjectField`,key:e.key,right:e.right===void 0?void 0:t(e.right),optional:e.optional,readonly:e.readonly,meta:e.meta}),JsdocTypeJsdocObjectField:(e,t)=>({type:`JsdocTypeJsdocObjectField`,left:t(e.left),right:t(e.right)}),JsdocTypeKeyValue:(e,t)=>({type:`JsdocTypeKeyValue`,key:e.key,right:e.right===void 0?void 0:t(e.right),optional:e.optional,variadic:e.variadic}),JsdocTypeImport:(e,t)=>({type:`JsdocTypeImport`,element:t(e.element)}),JsdocTypeAny:e=>e,JsdocTypeStringValue:e=>e,JsdocTypeNamePath:e=>e,JsdocTypeVariadic:(e,t)=>{let n={type:`JsdocTypeVariadic`,meta:{position:e.meta.position,squareBrackets:e.meta.squareBrackets}};return e.element!==void 0&&(n.element=t(e.element)),n},JsdocTypeTuple:(e,t)=>({type:`JsdocTypeTuple`,elements:e.elements.map(t)}),JsdocTypeName:e=>e,JsdocTypeFunction:(e,t)=>{let n={type:`JsdocTypeFunction`,arrow:e.arrow,parameters:e.parameters.map(t),constructor:e.constructor,parenthesis:e.parenthesis};return e.returnType!==void 0&&(n.returnType=t(e.returnType)),n},JsdocTypeKeyof:(e,t)=>({type:`JsdocTypeKeyof`,element:t(e.element)}),JsdocTypeParenthesis:(e,t)=>({type:`JsdocTypeParenthesis`,element:t(e.element)}),JsdocTypeProperty:e=>e,JsdocTypePredicate:(e,t)=>({type:`JsdocTypePredicate`,left:t(e.left),right:t(e.right)}),JsdocTypeIndexSignature:(e,t)=>({type:`JsdocTypeIndexSignature`,key:e.key,right:t(e.right)}),JsdocTypeMappedType:(e,t)=>({type:`JsdocTypeMappedType`,key:e.key,right:t(e.right)}),JsdocTypeAsserts:(e,t)=>({type:`JsdocTypeAsserts`,left:t(e.left),right:t(e.right)}),JsdocTypeReadonlyArray:(e,t)=>({type:`JsdocTypeReadonlyArray`,element:t(e.element)}),JsdocTypeAssertsPlain:(e,t)=>({type:`JsdocTypeAssertsPlain`,element:t(e.element)}),JsdocTypeConditional:(e,t)=>({type:`JsdocTypeConditional`,checksType:t(e.checksType),extendsType:t(e.extendsType),trueType:t(e.trueType),falseType:t(e.falseType)}),JsdocTypeTypeParameter:(e,t)=>({type:`JsdocTypeTypeParameter`,name:t(e.name),constraint:e.constraint===void 0?void 0:t(e.constraint),defaultValue:e.defaultValue===void 0?void 0:t(e.defaultValue)})}}let Xe={JsdocTypeAny:[],JsdocTypeFunction:[`parameters`,`returnType`],JsdocTypeGeneric:[`left`,`elements`],JsdocTypeImport:[],JsdocTypeIndexSignature:[`right`],JsdocTypeIntersection:[`elements`],JsdocTypeKeyof:[`element`],JsdocTypeKeyValue:[`right`],JsdocTypeMappedType:[`right`],JsdocTypeName:[],JsdocTypeNamePath:[`left`,`right`],JsdocTypeNotNullable:[`element`],JsdocTypeNull:[],JsdocTypeNullable:[`element`],JsdocTypeNumber:[],JsdocTypeObject:[`elements`],JsdocTypeObjectField:[`right`],JsdocTypeJsdocObjectField:[`left`,`right`],JsdocTypeOptional:[`element`],JsdocTypeParenthesis:[`element`],JsdocTypeSpecialNamePath:[],JsdocTypeStringValue:[],JsdocTypeSymbol:[`element`],JsdocTypeTuple:[`elements`],JsdocTypeTypeof:[`element`],JsdocTypeUndefined:[],JsdocTypeUnion:[`elements`],JsdocTypeUnknown:[],JsdocTypeVariadic:[`element`],JsdocTypeProperty:[],JsdocTypePredicate:[`left`,`right`],JsdocTypeAsserts:[`left`,`right`],JsdocTypeReadonlyArray:[`element`],JsdocTypeAssertsPlain:[`element`],JsdocTypeConditional:[`checksType`,`extendsType`,`trueType`,`falseType`],JsdocTypeTypeParameter:[`name`,`constraint`,`defaultValue`]};function Ze(e,t,n,r,i){r?.(e,t,n);let a=Xe[e.type];for(let t of a){let n=e[t];if(n!==void 0)if(Array.isArray(n))for(let a of n)Ze(a,e,t,r,i);else Ze(n,e,t,r,i)}i?.(e,t,n)}function Qe(e,t,n){Ze(e,void 0,void 0,t,n)}e.catharsisTransform=We,e.identityTransformRules=Ye,e.jtpTransform=Je,e.parse=Me,e.stringify=Be,e.stringifyRules=Re,e.transform=Pe,e.traverse=Qe,e.tryParse=Ne,e.visitorKeys=Xe}))}}),{UnknownArgTypesError:BW}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,VW=e=>e.name===`literal`,HW=e=>e.value.replace(/['|"]/g,``),UW=e=>{switch(e.type){case`function`:return{name:`function`};case`object`:let t={};return e.signature.properties.forEach(e=>{t[e.key]=WW(e.value)}),{name:`object`,value:t};default:throw new BW({type:e,language:`Flow`})}},WW=e=>{let{name:t,raw:n}=e,r={};switch(typeof n<`u`&&(r.raw=n),e.name){case`literal`:return{...r,name:`other`,value:e.value};case`string`:case`number`:case`symbol`:case`boolean`:return{...r,name:t};case`Array`:return{...r,name:`array`,value:e.elements.map(WW)};case`signature`:return{...r,...UW(e)};case`union`:return e.elements?.every(VW)?{...r,name:`enum`,value:e.elements?.map(HW)}:{...r,name:t,value:e.elements?.map(WW)};case`intersection`:return{...r,name:t,value:e.elements?.map(WW)};default:return{...r,name:`other`,value:t}}},GW=/^['"]|['"]$/g,KW=e=>e.replace(GW,``),qW=e=>GW.test(e),JW=e=>{let t=KW(e);return qW(e)||Number.isNaN(Number(t))?t:Number(t)},YW=/^\(.*\) => /,XW=e=>{let{name:t,raw:n,computed:r,value:i}=e,a={};switch(typeof n<`u`&&(a.raw=n),t){case`enum`:{let e=r?i:i.map(e=>JW(e.value));return{...a,name:t,value:e}}case`string`:case`number`:case`symbol`:return{...a,name:t};case`func`:return{...a,name:`function`};case`bool`:case`boolean`:return{...a,name:`boolean`};case`arrayOf`:case`array`:return{...a,name:`array`,value:i&&XW(i)};case`object`:return{...a,name:t};case`objectOf`:return{...a,name:t,value:XW(i)};case`shape`:case`exact`:let e=MW(i,e=>XW(e));return{...a,name:`object`,value:e};case`union`:return{...a,name:`union`,value:i.map(e=>XW(e))};default:{if(t?.indexOf(`|`)>0)try{let e=t.split(`|`).map(e=>JSON.parse(e));return{...a,name:`enum`,value:e}}catch{}let e=i?`${t}(${i})`:t,n=YW.test(t)?`function`:`other`;return{...a,name:n,value:e}}}},{UnknownArgTypesError:ZW}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,QW=e=>e.name===`literal`,$W=e=>e.name===`undefined`,eG=e=>{switch(e.type){case`function`:return{name:`function`};case`object`:let t={};return e.signature.properties.forEach(e=>{t[e.key]=tG(e.value)}),{name:`object`,value:t};default:throw new ZW({type:e,language:`Typescript`})}},tG=e=>{let{name:t,raw:n}=e,r={};switch(typeof n<`u`&&(r.raw=n),e.name){case`string`:case`number`:case`symbol`:case`boolean`:return{...r,name:t};case`Array`:return{...r,name:`array`,value:e.elements.map(tG)};case`signature`:return{...r,...eG(e)};case`union`:{let n=e.elements.filter(e=>!$W(e));if(n.length>0&&n.every(QW)){let e=n.filter(QW);return{...r,name:`enum`,value:e.map(e=>JW(e.value))}}return{...r,name:t,value:e.elements.map(tG)}}case`intersection`:return{...r,name:t,value:e.elements.map(tG)};default:return{...r,name:`other`,value:t}}},nG=e=>{let{type:t,tsType:n,flowType:r}=e;try{if(t!=null)return XW(t);if(n!=null)return tG(n);if(r!=null)return WW(r)}catch(e){console.error(e)}return null},rG=(e=>(e.JAVASCRIPT=`JavaScript`,e.FLOW=`Flow`,e.TYPESCRIPT=`TypeScript`,e.UNKNOWN=`Unknown`,e))(rG||{}),iG=[`null`,`undefined`];function aG(e){return iG.some(t=>t===e)}var oG=e=>{if(!e)return``;if(typeof e==`string`)return e;throw Error(`Description: expected string, got: ${JSON.stringify(e)}`)};function sG(e){return!!e.__docgenInfo}function cG(e){return e!=null&&Object.keys(e).length>0}function lG(e,t){return sG(e)?e.__docgenInfo[t]:null}function uG(e){return sG(e)?oG(e.__docgenInfo.description):``}var dG;(function(e){e.start=`/**`,e.nostart=`/***`,e.delim=`*`,e.end=`*/`})(dG=dG||={});function fG(e){return/^\s+$/.test(e)}function pG(e){let t=e.match(/\r+$/);return t==null?[``,e]:[e.slice(-t[0].length),e.slice(0,-t[0].length)]}function mG(e){let t=e.match(/^\s+/);return t==null?[``,e]:[e.slice(0,t[0].length),e.slice(t[0].length)]}function hG(e){return e.split(/\n/)}function gG(e={}){return Object.assign({tag:``,name:``,type:``,optional:!1,description:``,problems:[],source:[]},e)}function _G(e={}){return Object.assign({start:``,delimiter:``,postDelimiter:``,tag:``,postTag:``,name:``,postName:``,type:``,postType:``,description:``,end:``,lineEnd:``},e)}var vG=/^@\S+/;function yG({fence:e="```"}={}){let t=bG(e),n=(e,n)=>t(e)?!n:n;return function(e){let t=[[]],r=!1;for(let i of e)vG.test(i.tokens.description)&&!r?t.push([i]):t[t.length-1].push(i),r=n(i.tokens.description,r);return t}}function bG(e){return typeof e==`string`?t=>t.split(e).length%2==0:e}function xG({startLine:e=0,markers:t=dG}={}){let n=null,r=e;return function(e){let i=e,a=_G();if([a.lineEnd,i]=pG(i),[a.start,i]=mG(i),n===null&&i.startsWith(t.start)&&!i.startsWith(t.nostart)&&(n=[],a.delimiter=i.slice(0,t.start.length),i=i.slice(t.start.length),[a.postDelimiter,i]=mG(i)),n===null)return r++,null;let o=i.trimRight().endsWith(t.end);if(a.delimiter===``&&i.startsWith(t.delim)&&!i.startsWith(t.end)&&(a.delimiter=t.delim,i=i.slice(t.delim.length),[a.postDelimiter,i]=mG(i)),o){let e=i.trimRight();a.end=i.slice(e.length-t.end.length),i=e.slice(0,-t.end.length)}if(a.description=i,n.push({number:r,source:e,tokens:a}),r++,o){let e=n.slice();return n=null,e}return null}}function SG({tokenizers:e}){return function(t){var n;let r=gG({source:t});for(let t of e)if(r=t(r),(n=r.problems[r.problems.length-1])!=null&&n.critical)break;return r}}function CG(){return e=>{let{tokens:t}=e.source[0],n=t.description.match(/\s*(@(\S+))(\s*)/);return n===null?(e.problems.push({code:`spec:tag:prefix`,message:`tag should start with "@" symbol`,line:e.source[0].number,critical:!0}),e):(t.tag=n[1],t.postTag=n[3],t.description=t.description.slice(n[0].length),e.tag=n[2],e)}}function wG(e=`compact`){let t=EG(e);return e=>{let n=0,r=[];for(let[t,{tokens:i}]of e.source.entries()){let a=``;if(t===0&&i.description[0]!==`{`)return e;for(let e of i.description)if(e===`{`&&n++,e===`}`&&n--,a+=e,n===0)break;if(r.push([i,a]),n===0)break}if(n!==0)return e.problems.push({code:`spec:type:unpaired-curlies`,message:`unpaired curlies`,line:e.source[0].number,critical:!0}),e;let i=[],a=r[0][0].postDelimiter.length;for(let[e,[t,n]]of r.entries())t.type=n,e>0&&(t.type=t.postDelimiter.slice(a)+n,t.postDelimiter=t.postDelimiter.slice(0,a)),[t.postType,t.description]=mG(t.description.slice(n.length)),i.push(t.type);return i[0]=i[0].slice(1),i[i.length-1]=i[i.length-1].slice(0,-1),e.type=t(i),e}}var TG=e=>e.trim();function EG(e){return e===`compact`?e=>e.map(TG).join(``):e===`preserve`?e=>e.join(`
|
|
1017
|
+
`):e}var DG=e=>e&&e.startsWith(`"`)&&e.endsWith(`"`);function OG(){let e=(e,{tokens:t},n)=>t.type===``?e:n;return t=>{let{tokens:n}=t.source[t.source.reduce(e,0)],r=n.description.trimLeft(),i=r.split(`"`);if(i.length>1&&i[0]===``&&i.length%2==1)return t.name=i[1],n.name=`"${i[1]}"`,[n.postName,n.description]=mG(r.slice(n.name.length)),t;let a=0,o=``,s=!1,c;for(let e of r){if(a===0&&fG(e))break;e===`[`&&a++,e===`]`&&a--,o+=e}if(a!==0)return t.problems.push({code:`spec:name:unpaired-brackets`,message:`unpaired brackets`,line:t.source[0].number,critical:!0}),t;let l=o;if(o[0]===`[`&&o[o.length-1]===`]`){s=!0,o=o.slice(1,-1);let e=o.split(`=`);if(o=e[0].trim(),e[1]!==void 0&&(c=e.slice(1).join(`=`).trim()),o===``)return t.problems.push({code:`spec:name:empty-name`,message:`empty name`,line:t.source[0].number,critical:!0}),t;if(c===``)return t.problems.push({code:`spec:name:empty-default`,message:`empty default value`,line:t.source[0].number,critical:!0}),t;if(!DG(c)&&/=(?!>)/.test(c))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=s,t.name=o,n.name=l,c!==void 0&&(t.default=c),[n.postName,n.description]=mG(r.slice(n.name.length)),t}}function kG(e=`compact`,t=dG){let n=AG(e);return e=>(e.description=n(e.source,t),e)}function AG(e){return e===`compact`?jG:e===`preserve`?PG:e}function jG(e,t=dG){return e.map(({tokens:{description:e}})=>e.trim()).filter(e=>e!==``).join(` `)}var MG=(e,{tokens:t},n)=>t.type===``?e:n,NG=({tokens:e})=>(e.delimiter===``?e.start:e.postDelimiter.slice(1))+e.description;function PG(e,t=dG){if(e.length===0)return``;e[0].tokens.description===``&&e[0].tokens.delimiter===t.start&&(e=e.slice(1));let n=e[e.length-1];return n!==void 0&&n.tokens.description===``&&n.tokens.end.endsWith(t.end)&&(e=e.slice(0,-1)),e=e.slice(e.reduce(MG,0)),e.map(NG).join(`
|
|
1018
|
+
`)}function FG({startLine:e=0,fence:t="```",spacing:n=`compact`,markers:r=dG,tokenizers:i=[CG(),wG(n),OG(),kG(n)]}={}){if(e<0||e%1>0)throw Error(`Invalid startLine`);let a=xG({startLine:e,markers:r}),o=yG({fence:t}),s=SG({tokenizers:i}),c=AG(n);return function(e){let t=[];for(let n of hG(e)){let e=a(n);if(e===null)continue;let i=o(e),l=i.slice(1).map(s);t.push({description:c(i[0],r),tags:l,source:e,problems:l.reduce((e,t)=>e.concat(t.problems),[])})}return t}}function IG(e,t={}){return FG(t)(e)}var LG=JU(zW(),1);function RG(e){return e!=null&&e.includes(`@`)}function zG(e){let t=IG(`/**
|
|
1019
|
+
`+(e??``).split(`
|
|
1020
|
+
`).map(e=>` * ${e}`).join(`
|
|
1021
|
+
`)+`
|
|
1022
|
+
*/`,{spacing:`preserve`});if(!t||t.length===0)throw Error(`Cannot parse JSDoc tags.`);return t[0]}var BG={tags:[`param`,`arg`,`argument`,`returns`,`ignore`,`deprecated`]},VG=(e,t=BG)=>{if(!RG(e))return{includesJsDoc:!1,ignore:!1};let n=zG(e),r=HG(n,t.tags);return r.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:n.description.trim(),extractedTags:r}};function HG(e,t){let n={params:null,deprecated:null,returns:null,ignore:!1};for(let r of e.tags)if(!(t!==void 0&&!t.includes(r.tag)))if(r.tag===`ignore`){n.ignore=!0;break}else switch(r.tag){case`param`:case`arg`:case`argument`:{let e=WG(r);e!=null&&(n.params??=[],n.params.push(e));break}case`deprecated`:{let e=GG(r);e!=null&&(n.deprecated=e);break}case`returns`:{let e=JG(r);e!=null&&(n.returns=e);break}default:break}return n}function UG(e){return e.replace(/[\.-]$/,``)}function WG(e){if(!e.name||e.name===`-`)return null;let t=ZG(e.type);return{name:e.name,type:t,description:qG(e.description),getPrettyName:()=>UG(e.name),getTypeName:()=>t?QG(t):null}}function GG(e){return e.name?KG(e.name,e.description):null}function KG(e,t){return qG(e===``?t:`${e} ${t}`)}function qG(e){let t=e.replace(/^- /g,``).trim();return t===``?null:t}function JG(e){let t=ZG(e.type);return t?{type:t,description:KG(e.name,e.description),getTypeName:()=>QG(t)}:null}var YG=(0,LG.stringifyRules)(),XG=YG.JsdocTypeObject;YG.JsdocTypeAny=()=>`any`,YG.JsdocTypeObject=(e,t)=>`(${XG(e,t)})`,YG.JsdocTypeOptional=(e,t)=>t(e.element),YG.JsdocTypeNullable=(e,t)=>t(e.element),YG.JsdocTypeNotNullable=(e,t)=>t(e.element),YG.JsdocTypeUnion=(e,t)=>e.elements.map(t).join(`|`);function ZG(e){try{return(0,LG.parse)(e,`typescript`)}catch{return null}}function QG(e){return(0,LG.transform)(YG,e)}function $G(e){return e.length>90}function eK(e){return e.length>50}function Q(e,t){return e===t?{summary:e}:{summary:e,detail:t}}function tK(e,t){if(e!=null){let{value:n}=e;if(!aG(n))return eK(n)?Q(t?.name,n):Q(n)}return null}function nK({name:e,value:t,elements:n,raw:r}){return t??(n==null?r??e:n.map(nK).join(` | `))}function rK({name:e,raw:t,elements:n}){return Q(n==null?t==null?e:t.replace(/^\|\s*/,``):n.map(nK).join(` | `))}function iK({type:e,raw:t}){return Q(t??e)}function aK({type:e,raw:t}){return t==null?Q(e):$G(t)?Q(e,t):Q(t)}function oK(e){let{type:t}=e;return t===`object`?aK(e):iK(e)}function sK({name:e,raw:t}){return t==null?Q(e):$G(t)?Q(e,t):Q(t)}function cK(e){if(e==null)return null;switch(e.name){case`union`:return rK(e);case`signature`:return oK(e);default:return sK(e)}}var lK=(e,t)=>{let{flowType:n,description:r,required:i,defaultValue:a}=t;return{name:e,type:cK(n),required:i,description:r,defaultValue:tK(a??null,n??null)}};function uK({defaultValue:e}){if(e!=null){let{value:t}=e;if(!aG(t))return Q(t)}return null}function dK({tsType:e,required:t}){if(e==null)return null;let n=e.name;return t||(n=n.replace(` | undefined`,``)),Q([`Array`,`Record`,`signature`].includes(e.name)?e.raw:n)}var fK=(e,t)=>{let{description:n,required:r}=t;return{name:e,type:dK(t),required:r,description:n,defaultValue:uK(t)}};function pK(e){return e==null?null:Q(e.name)}function mK(e){let{computed:t,func:n}=e;return typeof t>`u`&&typeof n>`u`}function hK(e){return e?e.name===`string`?!0:e.name===`enum`?Array.isArray(e.value)&&e.value.every(({value:e})=>typeof e==`string`&&e[0]===`"`&&e[e.length-1]===`"`):!1:!1}function gK(e,t){if(e!=null){let{value:n}=e;if(!aG(n))return mK(e)&&hK(t)?Q(JSON.stringify(n)):Q(n)}return null}function _K(e,t,n){let{description:r,required:i,defaultValue:a}=n;return{name:e,type:pK(t),required:i,description:r,defaultValue:gK(a,t)}}function vK(e,t){if(t?.includesJsDoc){let{description:n,extractedTags:r}=t;n!=null&&(e.description=t.description);let i={...r,params:r?.params?.map(e=>({name:e.getPrettyName(),description:e.description}))};Object.values(i).filter(Boolean).length>0&&(e.jsDocTags=i)}return e}var yK=(e,t,n)=>{let r=_K(e,t.type,t);return r.sbType=nG(t),vK(r,n)},bK=(e,t,n)=>{let r=fK(e,t);return r.sbType=nG(t),vK(r,n)},xK=(e,t,n)=>{let r=lK(e,t);return r.sbType=nG(t),vK(r,n)},SK=(e,t,n)=>vK(_K(e,{name:`unknown`},t),n),CK=e=>{switch(e){case`JavaScript`:return yK;case`TypeScript`:return bK;case`Flow`:return xK;default:return SK}},wK=e=>e.type==null?e.flowType==null?e.tsType==null?`Unknown`:`TypeScript`:`Flow`:`JavaScript`,TK=e=>{let t=wK(e[0]),n=CK(t);return e.map(e=>{let r=e;return e.type?.elements&&(r={...e,type:{...e.type,value:e.type.elements}}),OK(r.name,r,t,n)})},EK=e=>{let t=Object.keys(e),n=wK(e[t[0]]),r=CK(n);return t.map(t=>{let i=e[t];return i==null?null:OK(t,i,n,r)}).filter(Boolean)},DK=(e,t)=>{let n=lG(e,t);return cG(n)?Array.isArray(n)?TK(n):EK(n):[]};function OK(e,t,n,r){let i=VG(t.description);return i.includesJsDoc&&i.ignore?null:{propDef:r(e,t,i),jsDocTags:i.extractedTags,docgenInfo:t,typeSystem:n}}function kK(e){return e==null?``:uG(e)}var AK=(...e)=>{let t={},n=e.filter(Boolean),r=n.reduce((e,n)=>(Object.entries(n).forEach(([n,r])=>{let i=e[n];Array.isArray(r)||typeof i>`u`?e[n]=r:nW(r)&&nW(i)?t[n]=!0:typeof r<`u`&&(e[n]=r)}),e),{});return Object.keys(t).forEach(e=>{let t=n.filter(Boolean).map(t=>t[e]).filter(e=>typeof e<`u`);t.every(e=>nW(e))?r[e]=AK(...t):r[e]=t[t.length-1]}),r},jK=e=>{let{component:t,argTypes:n,parameters:{docs:r={}}}=e,{extractArgTypes:i}=r;if(!i||!t)return n;let a=i(t);return a?AK(a,n):n},MK=`storybook/docs`;`${MK}`;var NK=`${MK}/snippet-rendered`,PK=(e=>(e.AUTO=`auto`,e.CODE=`code`,e.DYNAMIC=`dynamic`,e))(PK||{});function FK(){}function IK(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function LK(e,t,n){return RK(e,t,void 0,void 0,void 0,void 0,n)}function RK(e,t,n,r,i,a,o){let s=o(e,t,n,r,i,a);if(s!==void 0)return s;if(typeof e==typeof t)switch(typeof e){case`bigint`:case`string`:case`boolean`:case`symbol`:case`undefined`:return e===t;case`number`:return e===t||Object.is(e,t);case`function`:return e===t;case`object`:return zK(e,t,a,o)}return zK(e,t,a,o)}function zK(e,t,n,r){if(Object.is(e,t))return!0;let i=oW(e),a=oW(t);if(i===`[object Arguments]`&&(i=`[object Object]`),a===`[object Arguments]`&&(a=`[object Object]`),i!==a)return!1;switch(i){case cW:return e.toString()===t.toString();case lW:return IK(e.valueOf(),t.valueOf());case uW:case fW:case dW:return Object.is(e.valueOf(),t.valueOf());case sW:return e.source===t.source&&e.flags===t.flags;case gW:return e===t}n??=new Map;let o=n.get(e),s=n.get(t);if(o!=null&&s!=null)return o===t;n.set(e,t),n.set(t,e);try{switch(i){case pW:if(e.size!==t.size)return!1;for(let[i,a]of e.entries())if(!t.has(i)||!RK(a,t.get(i),i,e,t,n,r))return!1;return!0;case mW:{if(e.size!==t.size)return!1;let i=Array.from(e.values()),a=Array.from(t.values());for(let o=0;o<i.length;o++){let s=i[o],c=a.findIndex(i=>RK(s,i,void 0,e,t,n,r));if(c===-1)return!1;a.splice(c,1)}return!0}case hW:case xW:case SW:case CW:case wW:case TW:case EW:case DW:case OW:case kW:case AW:case jW:if(typeof Buffer<`u`&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!RK(e[i],t[i],i,e,t,n,r))return!1;return!0;case _W:return e.byteLength===t.byteLength?zK(new Uint8Array(e),new Uint8Array(t),n,r):!1;case bW:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:zK(new Uint8Array(e),new Uint8Array(t),n,r);case yW:return e.name===t.name&&e.message===t.message;case vW:{if(!(zK(e.constructor,t.constructor,n,r)||nW(e)&&nW(t)))return!1;let i=[...Object.keys(e),...aW(e)],a=[...Object.keys(t),...aW(t)];if(i.length!==a.length)return!1;for(let a=0;a<i.length;a++){let o=i[a],s=e[o];if(!Object.hasOwn(t,o))return!1;let c=t[o];if(!RK(s,c,o,e,t,n,r))return!1}return!0}default:return!1}}finally{n.delete(e),n.delete(t)}}function BK(e,t){return LK(e,t,FK)}var VK=GU({"../../node_modules/memoizerific/memoizerific.js"(e,t){(function(n){if(typeof e==`object`&&typeof t<`u`)t.exports=n();else if(typeof define==`function`&&define.amd)define([],n);else{var r=typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:this;r.memoizerific=n()}})(function(){return(function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){var c=typeof WU==`function`&&WU;if(!s&&c)return c(o,!0);if(a)return a(o,!0);var l=Error(`Cannot find module '`+o+`'`);throw l.code=`MODULE_NOT_FOUND`,l}var u=n[o]={exports:{}};t[o][0].call(u.exports,function(e){var n=t[o][1][e];return i(n||e)},u,u.exports,e,t,n,r)}return n[o].exports}for(var a=typeof WU==`function`&&WU,o=0;o<r.length;o++)i(r[o]);return i})({1:[function(e,t,n){t.exports=function(t){return typeof Map!=`function`||t?new(e(`./similar`)):new Map}},{"./similar":2}],2:[function(e,t,n){function r(){return this.list=[],this.lastItem=void 0,this.size=0,this}r.prototype.get=function(e){var t;if(this.lastItem&&this.isEqual(this.lastItem.key,e))return this.lastItem.val;if(t=this.indexOf(e),t>=0)return this.lastItem=this.list[t],this.list[t].val},r.prototype.set=function(e,t){var n;return this.lastItem&&this.isEqual(this.lastItem.key,e)?(this.lastItem.val=t,this):(n=this.indexOf(e),n>=0?(this.lastItem=this.list[n],this.list[n].val=t,this):(this.lastItem={key:e,val:t},this.list.push(this.lastItem),this.size++,this))},r.prototype.delete=function(e){var t;if(this.lastItem&&this.isEqual(this.lastItem.key,e)&&(this.lastItem=void 0),t=this.indexOf(e),t>=0)return this.size--,this.list.splice(t,1)[0]},r.prototype.has=function(e){var t;return this.lastItem&&this.isEqual(this.lastItem.key,e)?!0:(t=this.indexOf(e),t>=0?(this.lastItem=this.list[t],!0):!1)},r.prototype.forEach=function(e,t){var n;for(n=0;n<this.size;n++)e.call(t||this,this.list[n].val,this.list[n].key,this)},r.prototype.indexOf=function(e){var t;for(t=0;t<this.size;t++)if(this.isEqual(this.list[t].key,e))return t;return-1},r.prototype.isEqual=function(e,t){return e===t||e!==e&&t!==t},t.exports=r},{}],3:[function(e,t,n){var r=e(`map-or-similar`);t.exports=function(e){var t=new r(!1),n=[];return function(o){var s=function(){var c=t,l,u,d=arguments.length-1,f=Array(d+1),p=!0,m;if((s.numArgs||s.numArgs===0)&&s.numArgs!==d+1)throw Error(`Memoizerific functions should always be called with the same number of arguments`);for(m=0;m<d;m++){if(f[m]={cacheItem:c,arg:arguments[m]},c.has(arguments[m])){c=c.get(arguments[m]);continue}p=!1,l=new r(!1),c.set(arguments[m],l),c=l}return p&&(c.has(arguments[d])?u=c.get(arguments[d]):p=!1),p||(u=o.apply(null,arguments),c.set(arguments[d],u)),e>0&&(f[d]={cacheItem:c,arg:arguments[d]},p?i(n,f):n.push(f),n.length>e&&a(n.shift())),s.wasMemoized=p,s.numArgs=d+1,u};return s.limit=e,s.wasMemoized=!1,s.cache=t,s.lru=n,s}};function i(e,t){var n=e.length,r=t.length,i,a,s;for(a=0;a<n;a++){for(i=!0,s=0;s<r;s++)if(!o(e[a][s].arg,t[s].arg)){i=!1;break}if(i)break}e.push(e.splice(a,1)[0])}function a(e){var t=e.length,n=e[t-1],r,i;for(n.cacheItem.delete(n.arg),i=t-2;i>=0&&(n=e[i],r=n.cacheItem.get(n.arg),!r||!r.size);i--)n.cacheItem.delete(n.arg)}function o(e,t){return e===t||e!==e&&t!==t}},{"map-or-similar":1}]},{},[3])(3)})}});function HK(e){var t=[...arguments].slice(1),n=Array.from(typeof e==`string`?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,``);var r=n.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){return e.match(/[\t ]/g)?.length??0})):e},[]);if(r.length){var i=RegExp(`
|
|
1023
|
+
[ ]{`+Math.min.apply(Math,r)+`}`,`g`);n=n.map(function(e){return e.replace(i,`
|
|
1024
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,``);var a=n[0];return t.forEach(function(e,t){var r=a.match(/(?:^|\n)( *)$/),i=r?r[1]:``,o=e;typeof e==`string`&&e.includes(`
|
|
1025
|
+
`)&&(o=String(e).split(`
|
|
1026
|
+
`).map(function(e,t){return t===0?e:``+i+e}).join(`
|
|
1027
|
+
`)),a+=o+n[t+1]}),a}var UK=`storybook/highlight`,WK=`${UK}/add`,GK=`${UK}/remove`,KK=`${UK}/reset`,qK=`${UK}/scroll-into-view`,JK=2147483647,YK=`storybook/actions`;`${YK}`;var XK=`${YK}/action-event`;`${YK}`;var ZK={depth:10,clearOnStoryChange:!0,limit:50},{ImplicitActionsDuringRendering:QK}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{global:$K}=__STORYBOOK_MODULE_GLOBAL__,{addons:eq}=__STORYBOOK_MODULE_PREVIEW_API__,tq=(e,t)=>{let n=Object.getPrototypeOf(e);return!n||t(n)?n:tq(n,t)},nq=e=>!!(typeof e==`object`&&e&&tq(e,e=>/^Synthetic(?:Base)?Event$/.test(e.constructor.name))&&typeof e.persist==`function`),rq=e=>{if(nq(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let n=Object.getOwnPropertyDescriptor(t,`view`),r=n?.value;return typeof r==`object`&&r?.constructor.name===`Window`&&Object.defineProperty(t,`view`,{...n,value:Object.create(r.constructor.prototype)}),t}return e};function iq(e,t={}){let n={...ZK,...t},r=function(...r){if(t.implicit){let t=(`__STORYBOOK_PREVIEW__`in $K?$K.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(e=>e.phase===`playing`||e.phase===`rendering`);if(t){let n=!globalThis?.FEATURES?.disallowImplicitActionsInRenderV8,r=new QK({phase:t.phase,name:e,deprecated:n});if(n)console.warn(r);else throw r}}let i=eq.getChannel(),a=Date.now().toString(36)+Math.random().toString(36).substring(2),o=r.map(rq),s={id:a,count:0,data:{name:e,args:r.length>1?o:o[0]},options:{...n,maxDepth:5+(n.depth||3)}};i.emit(XK,s)};return r.isAction=!0,r.implicit=t.implicit,r}var aq=`storybook/viewport`;`${aq}`,`${aq}`;var oq={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`},sq=Object.entries({reset:[0,0],bold:[1,22,`\x1B[22m\x1B[1m`],dim:[2,22,`\x1B[22m\x1B[2m`],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]});function cq(e){return String(e)}cq.open=``,cq.close=``,sq.reduce((e,[t])=>(e[t]=cq,e),{isColorSupported:!1});function lq(e=!1){let t=typeof process<`u`?process:void 0,n=t?.env||{},r=t?.argv||[];return!(`NO_COLOR`in n||r.includes(`--no-color`))&&(`FORCE_COLOR`in n||r.includes(`--color`)||t?.platform===`win32`||e&&n.TERM!==`dumb`||`CI`in n)||typeof window<`u`&&!!window.chrome}function uq(e=!1){let t=lq(e),n=(e,t,n,r)=>{let i=``,a=0;do i+=e.substring(a,r)+n,a=r+t.length,r=e.indexOf(t,a);while(~r);return i+e.substring(a)},r=(e,t,r=e)=>{let i=i=>{let a=String(i),o=a.indexOf(t,e.length);return~o?e+n(a,t,r,o)+t:e+a+t};return i.open=e,i.close=t,i},i={isColorSupported:t},a=e=>`\x1B[${e}m`;for(let[e,n]of sq)i[e]=t?r(a(n[0]),a(n[1]),n[2]):cq;return i}var dq=uq();function fq(e,t){return t.forEach(function(t){t&&typeof t!=`string`&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if(n!==`default`&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}function pq(e,t){let n=Object.keys(e),r=t===null?n:n.sort(t);if(Object.getOwnPropertySymbols)for(let t of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,t).enumerable&&r.push(t);return r}function mq(e,t,n,r,i,a,o=`: `){let s=``,c=0,l=e.next();if(!l.done){s+=t.spacingOuter;let u=n+t.indent;for(;!l.done;){if(s+=u,c++===t.maxWidth){s+=`…`;break}let n=a(l.value[0],t,u,r,i),d=a(l.value[1],t,u,r,i);s+=n+o+d,l=e.next(),l.done?t.min||(s+=`,`):s+=`,${t.spacingInner}`}s+=t.spacingOuter+n}return s}function hq(e,t,n,r,i,a){let o=``,s=0,c=e.next();if(!c.done){o+=t.spacingOuter;let l=n+t.indent;for(;!c.done;){if(o+=l,s++===t.maxWidth){o+=`…`;break}o+=a(c.value,t,l,r,i),c=e.next(),c.done?t.min||(o+=`,`):o+=`,${t.spacingInner}`}o+=t.spacingOuter+n}return o}function gq(e,t,n,r,i,a){let o=``;e=e instanceof ArrayBuffer?new DataView(e):e;let s=e=>e instanceof DataView,c=s(e)?e.byteLength:e.length;if(c>0){o+=t.spacingOuter;let l=n+t.indent;for(let n=0;n<c;n++){if(o+=l,n===t.maxWidth){o+=`…`;break}(s(e)||n in e)&&(o+=a(s(e)?e.getInt8(n):e[n],t,l,r,i)),n<c-1?o+=`,${t.spacingInner}`:t.min||(o+=`,`)}o+=t.spacingOuter+n}return o}function _q(e,t,n,r,i,a){let o=``,s=pq(e,t.compareKeys);if(s.length>0){o+=t.spacingOuter;let c=n+t.indent;for(let n=0;n<s.length;n++){let l=s[n],u=a(l,t,c,r,i),d=a(e[l],t,c,r,i);o+=`${c+u}: ${d}`,n<s.length-1?o+=`,${t.spacingInner}`:t.min||(o+=`,`)}o+=t.spacingOuter+n}return o}var vq=typeof Symbol==`function`&&Symbol.for?Symbol.for(`jest.asymmetricMatcher`):1267621,yq=` `,bq={serialize:(e,t,n,r,i,a)=>{let o=e.toString();if(o===`ArrayContaining`||o===`ArrayNotContaining`)return++r>t.maxDepth?`[${o}]`:`${o+yq}[${gq(e.sample,t,n,r,i,a)}]`;if(o===`ObjectContaining`||o===`ObjectNotContaining`)return++r>t.maxDepth?`[${o}]`:`${o+yq}{${_q(e.sample,t,n,r,i,a)}}`;if(o===`StringMatching`||o===`StringNotMatching`||o===`StringContaining`||o===`StringNotContaining`)return o+yq+a(e.sample,t,n,r,i);if(typeof e.toAsymmetricMatcher!=`function`)throw TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},test:e=>e&&e.$$typeof===vq},xq=` `,Sq=new Set([`DOMStringMap`,`NamedNodeMap`]),Cq=/^(?:HTML\w*Collection|NodeList)$/;function wq(e){return Sq.has(e)||Cq.test(e)}var Tq=e=>e&&e.constructor&&!!e.constructor.name&&wq(e.constructor.name);function Eq(e){return e.constructor.name===`NamedNodeMap`}var Dq={serialize:(e,t,n,r,i,a)=>{let o=e.constructor.name;return++r>t.maxDepth?`[${o}]`:(t.min?``:o+xq)+(Sq.has(o)?`{${_q(Eq(e)?[...e].reduce((e,t)=>(e[t.name]=t.value,e),{}):{...e},t,n,r,i,a)}}`:`[${gq([...e],t,n,r,i,a)}]`)},test:Tq};function Oq(e){return e.replaceAll(`<`,`<`).replaceAll(`>`,`>`)}function kq(e,t,n,r,i,a,o){let s=r+n.indent,c=n.colors;return e.map(e=>{let l=t[e],u=o(l,n,s,i,a);return typeof l!=`string`&&(u.includes(`
|
|
1028
|
+
`)&&(u=n.spacingOuter+s+u+n.spacingOuter+r),u=`{${u}}`),`${n.spacingInner+r+c.prop.open+e+c.prop.close}=${c.value.open}${u}${c.value.close}`}).join(``)}function Aq(e,t,n,r,i,a){return e.map(e=>t.spacingOuter+n+(typeof e==`string`?jq(e,t):a(e,t,n,r,i))).join(``)}function jq(e,t){let n=t.colors.content;return n.open+Oq(e)+n.close}function Mq(e,t){let n=t.colors.comment;return`${n.open}<!--${Oq(e)}-->${n.close}`}function Nq(e,t,n,r,i){let a=r.colors.tag;return`${a.open}<${e}${t&&a.close+t+r.spacingOuter+i+a.open}${n?`>${a.close}${n}${r.spacingOuter}${i}${a.open}</${e}`:`${t&&!r.min?``:` `}/`}>${a.close}`}function Pq(e,t){let n=t.colors.tag;return`${n.open}<${e}${n.close} \u2026${n.open} />${n.close}`}var Fq=1,Iq=3,Lq=8,Rq=11,zq=/^(?:(?:HTML|SVG)\w*)?Element$/;function Bq(e){try{return typeof e.hasAttribute==`function`&&e.hasAttribute(`is`)}catch{return!1}}function Vq(e){let t=e.constructor.name,{nodeType:n,tagName:r}=e,i=typeof r==`string`&&r.includes(`-`)||Bq(e);return n===Fq&&(zq.test(t)||i)||n===Iq&&t===`Text`||n===Lq&&t===`Comment`||n===Rq&&t===`DocumentFragment`}var Hq=e=>{var t;return(e==null||(t=e.constructor)==null?void 0:t.name)&&Vq(e)};function Uq(e){return e.nodeType===Iq}function Wq(e){return e.nodeType===Lq}function Gq(e){return e.nodeType===Rq}var Kq={serialize:(e,t,n,r,i,a)=>{if(Uq(e))return jq(e.data,t);if(Wq(e))return Mq(e.data,t);let o=Gq(e)?`DocumentFragment`:e.tagName.toLowerCase();return++r>t.maxDepth?Pq(o,t):Nq(o,kq(Gq(e)?[]:Array.from(e.attributes,e=>e.name).sort(),Gq(e)?{}:[...e.attributes].reduce((e,t)=>(e[t.name]=t.value,e),{}),t,n+t.indent,r,i,a),Aq(Array.prototype.slice.call(e.childNodes||e.children),t,n+t.indent,r,i,a),t,n)},test:Hq},qq=`@@__IMMUTABLE_ITERABLE__@@`,Jq=`@@__IMMUTABLE_LIST__@@`,Yq=`@@__IMMUTABLE_KEYED__@@`,Xq=`@@__IMMUTABLE_MAP__@@`,Zq=`@@__IMMUTABLE_ORDERED__@@`,Qq=`@@__IMMUTABLE_RECORD__@@`,$q=`@@__IMMUTABLE_SEQ__@@`,eJ=`@@__IMMUTABLE_SET__@@`,tJ=`@@__IMMUTABLE_STACK__@@`,nJ=e=>`Immutable.${e}`,rJ=e=>`[${e}]`,iJ=` `,aJ=`…`;function oJ(e,t,n,r,i,a,o){return++r>t.maxDepth?rJ(nJ(o)):`${nJ(o)+iJ}{${mq(e.entries(),t,n,r,i,a)}}`}function sJ(e){let t=0;return{next(){if(t<e._keys.length){let n=e._keys[t++];return{done:!1,value:[n,e.get(n)]}}return{done:!0,value:void 0}}}}function cJ(e,t,n,r,i,a){let o=nJ(e._name||`Record`);return++r>t.maxDepth?rJ(o):`${o+iJ}{${mq(sJ(e),t,n,r,i,a)}}`}function lJ(e,t,n,r,i,a){let o=nJ(`Seq`);return++r>t.maxDepth?rJ(o):e[Yq]?`${o+iJ}{${e._iter||e._object?mq(e.entries(),t,n,r,i,a):aJ}}`:`${o+iJ}[${e._iter||e._array||e._collection||e._iterable?hq(e.values(),t,n,r,i,a):aJ}]`}function uJ(e,t,n,r,i,a,o){return++r>t.maxDepth?rJ(nJ(o)):`${nJ(o)+iJ}[${hq(e.values(),t,n,r,i,a)}]`}var dJ={serialize:(e,t,n,r,i,a)=>e[Xq]?oJ(e,t,n,r,i,a,e[Zq]?`OrderedMap`:`Map`):e[Jq]?uJ(e,t,n,r,i,a,`List`):e[eJ]?uJ(e,t,n,r,i,a,e[Zq]?`OrderedSet`:`Set`):e[tJ]?uJ(e,t,n,r,i,a,`Stack`):e[$q]?lJ(e,t,n,r,i,a):cJ(e,t,n,r,i,a),test:e=>e&&(e[qq]===!0||e[Qq]===!0)};function fJ(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var pJ={exports:{}},mJ={},hJ;function gJ(){if(hJ)return mJ;hJ=1;var e=Symbol.for(`react.transitional.element`),t=Symbol.for(`react.portal`),n=Symbol.for(`react.fragment`),r=Symbol.for(`react.strict_mode`),i=Symbol.for(`react.profiler`),a=Symbol.for(`react.consumer`),o=Symbol.for(`react.context`),s=Symbol.for(`react.forward_ref`),c=Symbol.for(`react.suspense`),l=Symbol.for(`react.suspense_list`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.view_transition`),p=Symbol.for(`react.client.reference`);function m(p){if(typeof p==`object`&&p){var m=p.$$typeof;switch(m){case e:switch(p=p.type,p){case n:case i:case r:case c:case l:case f:return p;default:switch(p&&=p.$$typeof,p){case o:case s:case d:case u:return p;case a:return p;default:return m}}case t:return m}}}return mJ.ContextConsumer=a,mJ.ContextProvider=o,mJ.Element=e,mJ.ForwardRef=s,mJ.Fragment=n,mJ.Lazy=d,mJ.Memo=u,mJ.Portal=t,mJ.Profiler=i,mJ.StrictMode=r,mJ.Suspense=c,mJ.SuspenseList=l,mJ.isContextConsumer=function(e){return m(e)===a},mJ.isContextProvider=function(e){return m(e)===o},mJ.isElement=function(t){return typeof t==`object`&&!!t&&t.$$typeof===e},mJ.isForwardRef=function(e){return m(e)===s},mJ.isFragment=function(e){return m(e)===n},mJ.isLazy=function(e){return m(e)===d},mJ.isMemo=function(e){return m(e)===u},mJ.isPortal=function(e){return m(e)===t},mJ.isProfiler=function(e){return m(e)===i},mJ.isStrictMode=function(e){return m(e)===r},mJ.isSuspense=function(e){return m(e)===c},mJ.isSuspenseList=function(e){return m(e)===l},mJ.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===n||e===i||e===r||e===c||e===l||typeof e==`object`&&!!e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===o||e.$$typeof===a||e.$$typeof===s||e.$$typeof===p||e.getModuleId!==void 0)},mJ.typeOf=m,mJ}var _J;function vJ(){return _J||(_J=1,pJ.exports=gJ()),pJ.exports}var yJ=vJ(),bJ=fq({__proto__:null,default:fJ(yJ)},[yJ]),xJ={exports:{}},SJ={},CJ;function wJ(){if(CJ)return SJ;CJ=1;var e=Symbol.for(`react.element`),t=Symbol.for(`react.portal`),n=Symbol.for(`react.fragment`),r=Symbol.for(`react.strict_mode`),i=Symbol.for(`react.profiler`),a=Symbol.for(`react.provider`),o=Symbol.for(`react.context`),s=Symbol.for(`react.server_context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.suspense_list`),d=Symbol.for(`react.memo`),f=Symbol.for(`react.lazy`),p=Symbol.for(`react.offscreen`),m=Symbol.for(`react.module.reference`);function h(p){if(typeof p==`object`&&p){var m=p.$$typeof;switch(m){case e:switch(p=p.type,p){case n:case i:case r:case l:case u:return p;default:switch(p&&=p.$$typeof,p){case s:case o:case c:case f:case d:case a:return p;default:return m}}case t:return m}}}return SJ.ContextConsumer=o,SJ.ContextProvider=a,SJ.Element=e,SJ.ForwardRef=c,SJ.Fragment=n,SJ.Lazy=f,SJ.Memo=d,SJ.Portal=t,SJ.Profiler=i,SJ.StrictMode=r,SJ.Suspense=l,SJ.SuspenseList=u,SJ.isAsyncMode=function(){return!1},SJ.isConcurrentMode=function(){return!1},SJ.isContextConsumer=function(e){return h(e)===o},SJ.isContextProvider=function(e){return h(e)===a},SJ.isElement=function(t){return typeof t==`object`&&!!t&&t.$$typeof===e},SJ.isForwardRef=function(e){return h(e)===c},SJ.isFragment=function(e){return h(e)===n},SJ.isLazy=function(e){return h(e)===f},SJ.isMemo=function(e){return h(e)===d},SJ.isPortal=function(e){return h(e)===t},SJ.isProfiler=function(e){return h(e)===i},SJ.isStrictMode=function(e){return h(e)===r},SJ.isSuspense=function(e){return h(e)===l},SJ.isSuspenseList=function(e){return h(e)===u},SJ.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===n||e===i||e===r||e===l||e===u||e===p||typeof e==`object`&&!!e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===a||e.$$typeof===o||e.$$typeof===c||e.$$typeof===m||e.getModuleId!==void 0)},SJ.typeOf=h,SJ}var TJ;function EJ(){return TJ||(TJ=1,xJ.exports=wJ()),xJ.exports}var DJ=EJ(),OJ=fq({__proto__:null,default:fJ(DJ)},[DJ]),kJ=Object.fromEntries([`isAsyncMode`,`isConcurrentMode`,`isContextConsumer`,`isContextProvider`,`isElement`,`isForwardRef`,`isFragment`,`isLazy`,`isMemo`,`isPortal`,`isProfiler`,`isStrictMode`,`isSuspense`,`isSuspenseList`,`isValidElementType`].map(e=>[e,t=>OJ[e](t)||bJ[e](t)]));function AJ(e,t=[]){if(Array.isArray(e))for(let n of e)AJ(n,t);else e!=null&&e!==!1&&e!==``&&t.push(e);return t}function jJ(e){let t=e.type;if(typeof t==`string`)return t;if(typeof t==`function`)return t.displayName||t.name||`Unknown`;if(kJ.isFragment(e))return`React.Fragment`;if(kJ.isSuspense(e))return`React.Suspense`;if(typeof t==`object`&&t){if(kJ.isContextProvider(e))return`Context.Provider`;if(kJ.isContextConsumer(e))return`Context.Consumer`;if(kJ.isForwardRef(e)){if(t.displayName)return t.displayName;let e=t.render.displayName||t.render.name||``;return e===``?`ForwardRef`:`ForwardRef(${e})`}if(kJ.isMemo(e)){let e=t.displayName||t.type.displayName||t.type.name||``;return e===``?`Memo`:`Memo(${e})`}}return`UNDEFINED`}function MJ(e){let{props:t}=e;return Object.keys(t).filter(e=>e!==`children`&&t[e]!==void 0).sort()}var NJ={serialize:(e,t,n,r,i,a)=>++r>t.maxDepth?Pq(jJ(e),t):Nq(jJ(e),kq(MJ(e),e.props,t,n+t.indent,r,i,a),Aq(AJ(e.props.children),t,n+t.indent,r,i,a),t,n),test:e=>e!=null&&kJ.isElement(e)},PJ=typeof Symbol==`function`&&Symbol.for?Symbol.for(`react.test.json`):245830487;function FJ(e){let{props:t}=e;return t?Object.keys(t).filter(e=>t[e]!==void 0).sort():[]}var IJ={serialize:(e,t,n,r,i,a)=>++r>t.maxDepth?Pq(e.type,t):Nq(e.type,e.props?kq(FJ(e),e.props,t,n+t.indent,r,i,a):``,e.children?Aq(e.children,t,n+t.indent,r,i,a):``,t,n),test:e=>e&&e.$$typeof===PJ},LJ=Object.prototype.toString,RJ=Date.prototype.toISOString,zJ=Error.prototype.toString,BJ=RegExp.prototype.toString;function VJ(e){return typeof e.constructor==`function`&&e.constructor.name||`Object`}function HJ(e){return typeof window<`u`&&e===window}var UJ=/^Symbol\((.*)\)(.*)$/,WJ=/\n/g,GJ=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function KJ(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 qJ(e){return Object.is(e,-0)?`-0`:String(e)}function JJ(e){return`${e}n`}function YJ(e,t){return t?`[Function ${e.name||`anonymous`}]`:`[Function]`}function XJ(e){return String(e).replace(UJ,`Symbol($1)`)}function ZJ(e){return`[${zJ.call(e)}]`}function QJ(e,t,n,r){if(e===!0||e===!1)return`${e}`;if(e===void 0)return`undefined`;if(e===null)return`null`;let i=typeof e;if(i===`number`)return qJ(e);if(i===`bigint`)return JJ(e);if(i===`string`)return r?`"${e.replaceAll(/"|\\/g,`\\$&`)}"`:`"${e}"`;if(i===`function`)return YJ(e,t);if(i===`symbol`)return XJ(e);let a=LJ.call(e);return a===`[object WeakMap]`?`WeakMap {}`:a===`[object WeakSet]`?`WeakSet {}`:a===`[object Function]`||a===`[object GeneratorFunction]`?YJ(e,t):a===`[object Symbol]`?XJ(e):a===`[object Date]`?Number.isNaN(+e)?`Date { NaN }`:RJ.call(e):a===`[object Error]`?ZJ(e):a===`[object RegExp]`?n?BJ.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,`\\$&`):BJ.call(e):e instanceof Error?ZJ(e):null}function $J(e,t,n,r,i,a){if(i.includes(e))return`[Circular]`;i=[...i],i.push(e);let o=++r>t.maxDepth,s=t.min;if(t.callToJSON&&!o&&e.toJSON&&typeof e.toJSON==`function`&&!a)return iY(e.toJSON(),t,n,r,i,!0);let c=LJ.call(e);return c===`[object Arguments]`?o?`[Arguments]`:`${s?``:`Arguments `}[${gq(e,t,n,r,i,iY)}]`:KJ(c)?o?`[${e.constructor.name}]`:`${s||!t.printBasicPrototype&&e.constructor.name===`Array`?``:`${e.constructor.name} `}[${gq(e,t,n,r,i,iY)}]`:c===`[object Map]`?o?`[Map]`:`Map {${mq(e.entries(),t,n,r,i,iY,` => `)}}`:c===`[object Set]`?o?`[Set]`:`Set {${hq(e.values(),t,n,r,i,iY)}}`:o||HJ(e)?`[${VJ(e)}]`:`${s||!t.printBasicPrototype&&VJ(e)===`Object`?``:`${VJ(e)} `}{${_q(e,t,n,r,i,iY)}}`}var eY={test:e=>e&&e instanceof Error,serialize(e,t,n,r,i,a){if(i.includes(e))return`[Circular]`;i=[...i,e];let o=++r>t.maxDepth,{message:s,cause:c,...l}=e,u={message:s,...typeof c<`u`?{cause:c}:{},...e instanceof AggregateError?{errors:e.errors}:{},...l},d=e.name===`Error`?VJ(e):e.name;return o?`[${d}]`:`${d} {${mq(Object.entries(u).values(),t,n,r,i,a)}}`}};function tY(e){return e.serialize!=null}function nY(e,t,n,r,i,a){let o;try{o=tY(e)?e.serialize(t,n,r,i,a,iY):e.print(t,e=>iY(e,n,r,i,a),e=>{let t=r+n.indent;return t+e.replaceAll(WJ,`
|
|
1029
|
+
${t}`)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(e){throw new GJ(e.message,e.stack)}if(typeof o!=`string`)throw TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof o}".`);return o}function rY(e,t){for(let n of e)try{if(n.test(t))return n}catch(e){throw new GJ(e.message,e.stack)}return null}function iY(e,t,n,r,i,a){let o=rY(t.plugins,e);if(o!==null)return nY(o,e,t,n,r,i);let s=QJ(e,t.printFunctionName,t.escapeRegex,t.escapeString);return s===null?$J(e,t,n,r,i,a):s}var aY={comment:`gray`,content:`reset`,prop:`yellow`,tag:`cyan`,value:`green`},oY=Object.keys(aY),sY={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,maxWidth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:aY};function cY(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(sY,t))throw Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw Error(`pretty-format: Options "min" and "indent" cannot be used together.`)}function lY(){return oY.reduce((e,t)=>{let n=aY[t],r=n&&dq[n];if(r&&typeof r.close==`string`&&typeof r.open==`string`)e[t]=r;else throw Error(`pretty-format: Option "theme" has a key "${t}" whose value "${n}" is undefined in ansi-styles.`);return e},Object.create(null))}function uY(){return oY.reduce((e,t)=>(e[t]={close:``,open:``},e),Object.create(null))}function dY(e){return e?.printFunctionName??sY.printFunctionName}function fY(e){return e?.escapeRegex??sY.escapeRegex}function pY(e){return e?.escapeString??sY.escapeString}function mY(e){return{callToJSON:e?.callToJSON??sY.callToJSON,colors:e?.highlight?lY():uY(),compareKeys:typeof e?.compareKeys==`function`||e?.compareKeys===null?e.compareKeys:sY.compareKeys,escapeRegex:fY(e),escapeString:pY(e),indent:e?.min?``:hY(e?.indent??sY.indent),maxDepth:e?.maxDepth??sY.maxDepth,maxWidth:e?.maxWidth??sY.maxWidth,min:e?.min??sY.min,plugins:e?.plugins??sY.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:dY(e),spacingInner:e?.min?` `:`
|
|
1030
|
+
`,spacingOuter:e?.min?``:`
|
|
1031
|
+
`}}function hY(e){return Array.from({length:e+1}).join(` `)}function gY(e,t){if(t&&(cY(t),t.plugins)){let n=rY(t.plugins,e);if(n!==null)return nY(n,e,mY(t),``,0,[])}let n=QJ(e,dY(t),fY(t),pY(t));return n===null?$J(e,mY(t),``,0,[]):n}var _Y={AsymmetricMatcher:bq,DOMCollection:Dq,DOMElement:Kq,Immutable:dJ,ReactElement:NJ,ReactTestComponent:IJ,Error:eY},vY={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`]},yY={special:`cyan`,number:`yellow`,bigint:`yellow`,boolean:`yellow`,undefined:`grey`,null:`bold`,string:`green`,symbol:`green`,date:`magenta`,regexp:`red`},bY=`…`;function xY(e,t){let n=vY[yY[t]]||vY[t]||``;return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}function SY({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:r=!0,showProxy:i=!1,maxArrayLength:a=1/0,breakLength:o=1/0,seen:s=[],truncate:c=1/0,stylize:l=String}={},u){let d={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!i,maxArrayLength:Number(a),breakLength:Number(o),truncate:Number(c),seen:s,inspect:u,stylize:l};return d.colors&&(d.stylize=xY),d}function CY(e){return e>=`\ud800`&&e<=`\udbff`}function wY(e,t,n=bY){e=String(e);let r=n.length,i=e.length;if(r>t&&i>r)return n;if(i>t&&i>r){let i=t-r;return i>0&&CY(e[i-1])&&--i,`${e.slice(0,i)}${n}`}return e}function TY(e,t,n,r=`, `){n||=t.inspect;let i=e.length;if(i===0)return``;let a=t.truncate,o=``,s=``,c=``;for(let l=0;l<i;l+=1){let i=l+1===e.length,u=l+2===e.length;c=`${bY}(${e.length-l})`;let d=e[l];t.truncate=a-o.length-(i?0:r.length);let f=s||n(d,t)+(i?``:r),p=o.length+f.length,m=p+c.length;if(i&&p>a&&o.length+c.length<=a||!i&&!u&&m>a||(s=i?``:n(e[l+1],t)+(u?``:r),!i&&u&&m>a&&p+s.length>a))break;if(o+=f,!i&&!u&&p+s.length>=a){c=`${bY}(${e.length-l-1})`;break}c=``}return`${o}${c}`}function EY(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,`\\'`).replace(/\\"/g,`"`).replace(/(^"|"$)/g,`'`)}function DY([e,t],n){return n.truncate-=2,typeof e==`string`?e=EY(e):typeof e!=`number`&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}function OY(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`[]`;t.truncate-=4;let r=TY(e,t);t.truncate-=r.length;let i=``;return n.length&&(i=TY(n.map(t=>[t,e[t]]),t,DY)),`[ ${r}${i?`, ${i}`:``} ]`}var kY=e=>typeof Buffer==`function`&&e instanceof Buffer?`Buffer`:e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function AY(e,t){let n=kY(e);t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return`${n}[]`;let i=``;for(let n=0;n<e.length;n++){let r=`${t.stylize(wY(e[n],t.truncate),`number`)}${n===e.length-1?``:`, `}`;if(t.truncate-=r.length,e[n]!==e.length&&t.truncate<=3){i+=`${bY}(${e.length-e[n]+1})`;break}i+=r}let a=``;return r.length&&(a=TY(r.map(t=>[t,e[t]]),t,DY)),`${n}[ ${i}${a?`, ${a}`:``} ]`}function jY(e,t){let n=e.toJSON();if(n===null)return`Invalid Date`;let r=n.split(`T`),i=r[0];return t.stylize(`${i}T${wY(r[1],t.truncate-i.length-1)}`,`date`)}function MY(e,t){let n=e[Symbol.toStringTag]||`Function`,r=e.name;return r?t.stylize(`[${n} ${wY(r,t.truncate-11)}]`,`special`):t.stylize(`[${n}]`,`special`)}function NY([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}function PY(e){let t=[];return e.forEach((e,n)=>{t.push([n,e])}),t}function FY(e,t){return e.size===0?`Map{}`:(t.truncate-=7,`Map{ ${TY(PY(e),t,NY)} }`)}var IY=Number.isNaN||(e=>e!==e);function LY(e,t){return IY(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(wY(String(e),t.truncate),`number`)}function RY(e,t){let n=wY(e.toString(),t.truncate-1);return n!==bY&&(n+=`n`),t.stylize(n,`bigint`)}function zY(e,t){let n=e.toString().split(`/`)[2],r=t.truncate-(2+n.length),i=e.source;return t.stylize(`/${wY(i,r)}/${n}`,`regexp`)}function BY(e){let t=[];return e.forEach(e=>{t.push(e)}),t}function VY(e,t){return e.size===0?`Set{}`:(t.truncate-=7,`Set{ ${TY(BY(e),t)} }`)}var HY=RegExp(`['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]`,`g`),UY={"\b":`\\b`," ":`\\t`,"\n":`\\n`,"\f":`\\f`,"\r":`\\r`,"'":`\\'`,"\\":`\\\\`},WY=16,GY=4;function KY(e){return UY[e]||`\\u${`0000${e.charCodeAt(0).toString(WY)}`.slice(-GY)}`}function qY(e,t){return HY.test(e)&&(e=e.replace(HY,KY)),t.stylize(`'${wY(e,t.truncate-2)}'`,`string`)}function JY(e){return`description`in Symbol.prototype?e.description?`Symbol(${e.description})`:`Symbol()`:e.toString()}var YY=()=>`Promise{…}`;try{let{getPromiseDetails:e,kPending:t,kRejected:n}=process.binding(`util`);Array.isArray(e(Promise.resolve()))&&(YY=(r,i)=>{let[a,o]=e(r);return a===t?`Promise{<pending>}`:`Promise${a===n?`!`:``}{${i.inspect(o,i)}}`})}catch{}var XY=YY;function ZY(e,t){let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&r.length===0)return`{}`;if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return`[Circular]`;t.seen.push(e);let i=TY(n.map(t=>[t,e[t]]),t,DY),a=TY(r.map(t=>[t,e[t]]),t,DY);t.seen.pop();let o=``;return i&&a&&(o=`, `),`{ ${i}${o}${a} }`}var QY=typeof Symbol<`u`&&Symbol.toStringTag?Symbol.toStringTag:!1;function $Y(e,t){let n=``;return QY&&QY in e&&(n=e[QY]),n||=e.constructor.name,(!n||n===`_class`)&&(n=`<Anonymous Class>`),t.truncate-=n.length,`${n}${ZY(e,t)}`}function eX(e,t){return e.length===0?`Arguments[]`:(t.truncate-=13,`Arguments[ ${TY(e,t)} ]`)}var tX=[`stack`,`line`,`column`,`name`,`message`,`fileName`,`lineNumber`,`columnNumber`,`number`,`description`,`cause`];function nX(e,t){let n=Object.getOwnPropertyNames(e).filter(e=>tX.indexOf(e)===-1),r=e.name;t.truncate-=r.length;let i=``;if(typeof e.message==`string`?i=wY(e.message,t.truncate):n.unshift(`message`),i=i?`: ${i}`:``,t.truncate-=i.length+5,t.seen=t.seen||[],t.seen.includes(e))return`[Circular]`;t.seen.push(e);let a=TY(n.map(t=>[t,e[t]]),t,DY);return`${r}${i}${a?` { ${a} }`:``}`}function rX([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),`yellow`)}=${n.stylize(`"${t}"`,`string`)}`:`${n.stylize(String(e),`yellow`)}`}function iX(e,t){return TY(e,t,aX,`
|
|
1032
|
+
`)}function aX(e,t){switch(e.nodeType){case 1:return oX(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function oX(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),i=t.stylize(`<${r}`,`special`),a=t.stylize(`>`,`special`),o=t.stylize(`</${r}>`,`special`);t.truncate-=r.length*2+5;let s=``;n.length>0&&(s+=` `,s+=TY(n.map(t=>[t,e.getAttribute(t)]),t,rX,` `)),t.truncate-=s.length;let c=t.truncate,l=iX(e.children,t);return l&&l.length>c&&(l=`${bY}(${e.children.length})`),`${i}${s}${a}${l}${o}`}var sX=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`chai/inspect`):`@@chai/inspect`,cX=Symbol.for(`nodejs.util.inspect.custom`),lX=new WeakMap,uX={},dX={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:LY,Number:LY,bigint:RY,BigInt:RY,string:qY,String:qY,function:MY,Function:MY,symbol:JY,Symbol:JY,Array:OY,Date:jY,Map:FY,Set:VY,RegExp:zY,Promise:XY,WeakSet:(e,t)=>t.stylize(`WeakSet{…}`,`special`),WeakMap:(e,t)=>t.stylize(`WeakMap{…}`,`special`),Arguments:eX,Int8Array:AY,Uint8Array:AY,Uint8ClampedArray:AY,Int16Array:AY,Uint16Array:AY,Int32Array:AY,Uint32Array:AY,Float32Array:AY,Float64Array:AY,Generator:()=>``,DataView:()=>``,ArrayBuffer:()=>``,Error:nX,HTMLCollection:iX,NodeList:iX},fX=(e,t,n)=>sX in e&&typeof e[sX]==`function`?e[sX](t):cX in e&&typeof e[cX]==`function`?e[cX](t.depth,t):`inspect`in e&&typeof e.inspect==`function`?e.inspect(t.depth,t):`constructor`in e&&lX.has(e.constructor)?lX.get(e.constructor)(e,t):uX[n]?uX[n](e,t):``,pX=Object.prototype.toString;function mX(e,t={}){let n=SY(t,mX),{customInspect:r}=n,i=e===null?`null`:typeof e;if(i===`object`&&(i=pX.call(e).slice(8,-1)),i in dX)return dX[i](e,n);if(r&&e){let t=fX(e,n,i);if(t)return typeof t==`string`?t:mX(t,n)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?ZY(e,n):e&&typeof HTMLElement==`function`&&e instanceof HTMLElement?oX(e,n):`constructor`in e?e.constructor===Object?ZY(e,n):$Y(e,n):e===Object(e)?ZY(e,n):n.stylize(String(e),i)}var{AsymmetricMatcher:hX,DOMCollection:gX,DOMElement:_X,Immutable:vX,ReactElement:yX,ReactTestComponent:bX}=_Y,xX=[bX,yX,_X,gX,vX,hX];function SX(e,t=10,{maxLength:n,...r}={}){let i=n??1e4,a;try{a=gY(e,{maxDepth:t,escapeString:!1,plugins:xX,...r})}catch{a=gY(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:xX,...r})}return a.length>=i&&t>1?SX(e,Math.floor(Math.min(t,2**53-1)/2),{maxLength:n,...r}):a}var CX=/%[sdjifoOc%]/g;function wX(...e){if(typeof e[0]!=`string`){let t=[];for(let n=0;n<e.length;n++)t.push(TX(e[n],{depth:0,colors:!1}));return t.join(` `)}let t=e.length,n=1,r=e[0],i=String(r).replace(CX,r=>{if(r===`%%`)return`%`;if(n>=t)return r;switch(r){case`%s`:{let t=e[n++];return typeof t==`bigint`?`${t.toString()}n`:typeof t==`number`&&t===0&&1/t<0?`-0`:typeof t==`object`&&t?typeof t.toString==`function`&&t.toString!==Object.prototype.toString?t.toString():TX(t,{depth:0,colors:!1}):String(t)}case`%d`:{let t=e[n++];return typeof t==`bigint`?`${t.toString()}n`:Number(t).toString()}case`%i`:{let t=e[n++];return typeof t==`bigint`?`${t.toString()}n`:Number.parseInt(String(t)).toString()}case`%f`:return Number.parseFloat(String(e[n++])).toString();case`%o`:return TX(e[n++],{showHidden:!0,showProxy:!0});case`%O`:return TX(e[n++]);case`%c`:return n++,``;case`%j`:try{return JSON.stringify(e[n++])}catch(e){let t=e.message;if(t.includes(`circular structure`)||t.includes(`cyclic structures`)||t.includes(`cyclic object`))return`[Circular]`;throw e}default:return r}});for(let r=e[n];n<t;r=e[++n])typeof r!=`object`||!r?i+=` ${r}`:i+=` ${TX(r)}`;return i}function TX(e,t={}){return t.truncate===0&&(t.truncate=1/0),mX(e,t)}function EX(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function DX(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function OX(e){return Object.prototype.toString.apply(e).slice(8,-1)}function kX(e,t){let n=typeof t==`function`?t:e=>t.add(e);Object.getOwnPropertyNames(e).forEach(n),Object.getOwnPropertySymbols(e).forEach(n)}function AX(e){let t=new Set;return DX(e)?[]:(kX(e,t),Array.from(t))}var jX={forceWritable:!1};function MX(e,t=jX){return NX(e,new WeakMap,t)}function NX(e,t,n=jX){let r,i;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(i=Array.from({length:r=e.length}),t.set(e,i);r--;)i[r]=NX(e[r],t,n);return i}if(Object.prototype.toString.call(e)===`[object Object]`){i=Object.create(Object.getPrototypeOf(e)),t.set(e,i);let r=AX(e);for(let a of r){let r=Object.getOwnPropertyDescriptor(e,a);if(!r)continue;let o=NX(e[a],t,n);n.forceWritable?Object.defineProperty(i,a,{enumerable:r.enumerable,configurable:!0,writable:!0,value:o}):`get`in r?Object.defineProperty(i,a,{...r,get(){return o}}):Object.defineProperty(i,a,{...r,value:o})}return i}return e}var PX=-1,FX=1,IX=0,LX=class{0;1;constructor(e,t){this[0]=e,this[1]=t}};function RX(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let n=0,r=Math.min(e.length,t.length),i=r,a=0;for(;n<i;)e.substring(a,i)===t.substring(a,i)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return i}function zX(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let n=0,r=Math.min(e.length,t.length),i=r,a=0;for(;n<i;)e.substring(e.length-i,e.length-a)===t.substring(t.length-i,t.length-a)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return i}function BX(e,t){let n=e.length,r=t.length;if(n===0||r===0)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));let i=Math.min(n,r);if(e===t)return i;let a=0,o=1;for(;;){let n=e.substring(i-o),r=t.indexOf(n);if(r===-1)return a;o+=r,(r===0||e.substring(i-o)===t.substring(0,o))&&(a=o,o++)}}function VX(e){let t=!1,n=[],r=0,i=null,a=0,o=0,s=0,c=0,l=0;for(;a<e.length;)e[a][0]===IX?(n[r++]=a,o=c,s=l,c=0,l=0,i=e[a][1]):(e[a][0]===FX?c+=e[a][1].length:l+=e[a][1].length,i&&i.length<=Math.max(o,s)&&i.length<=Math.max(c,l)&&(e.splice(n[r-1],0,new LX(PX,i)),e[n[r-1]+1][0]=FX,r--,r--,a=r>0?n[r-1]:-1,o=0,s=0,c=0,l=0,i=null,t=!0)),a++;for(t&&JX(e),qX(e),a=1;a<e.length;){if(e[a-1][0]===PX&&e[a][0]===FX){let t=e[a-1][1],n=e[a][1],r=BX(t,n),i=BX(n,t);r>=i?(r>=t.length/2||r>=n.length/2)&&(e.splice(a,0,new LX(IX,n.substring(0,r))),e[a-1][1]=t.substring(0,t.length-r),e[a+1][1]=n.substring(r),a++):(i>=t.length/2||i>=n.length/2)&&(e.splice(a,0,new LX(IX,t.substring(0,i))),e[a-1][0]=FX,e[a-1][1]=n.substring(0,n.length-i),e[a+1][0]=PX,e[a+1][1]=t.substring(i),a++),a++}a++}}var HX=/[^a-z0-9]/i,UX=/\s/,WX=/[\r\n]/,GX=/\n\r?\n$/,KX=/^\r?\n\r?\n/;function qX(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===IX&&e[t+1][0]===IX){let n=e[t-1][1],r=e[t][1],i=e[t+1][1],a=zX(n,r);if(a){let e=r.substring(r.length-a);n=n.substring(0,n.length-a),r=e+r.substring(0,r.length-a),i=e+i}let o=n,s=r,c=i,l=YX(n,r)+YX(r,i);for(;r.charAt(0)===i.charAt(0);){n+=r.charAt(0),r=r.substring(1)+i.charAt(0),i=i.substring(1);let e=YX(n,r)+YX(r,i);e>=l&&(l=e,o=n,s=r,c=i)}e[t-1][1]!==o&&(o?e[t-1][1]=o:(e.splice(t-1,1),t--),e[t][1]=s,c?e[t+1][1]=c:(e.splice(t+1,1),t--))}t++}}function JX(e){e.push(new LX(IX,``));let t=0,n=0,r=0,i=``,a=``,o;for(;t<e.length;)switch(e[t][0]){case FX:r++,a+=e[t][1],t++;break;case PX:n++,i+=e[t][1],t++;break;case IX:n+r>1?(n!==0&&r!==0&&(o=RX(a,i),o!==0&&(t-n-r>0&&e[t-n-r-1][0]===IX?e[t-n-r-1][1]+=a.substring(0,o):(e.splice(0,0,new LX(IX,a.substring(0,o))),t++),a=a.substring(o),i=i.substring(o)),o=zX(a,i),o!==0&&(e[t][1]=a.substring(a.length-o)+e[t][1],a=a.substring(0,a.length-o),i=i.substring(0,i.length-o))),t-=n+r,e.splice(t,n+r),i.length&&(e.splice(t,0,new LX(PX,i)),t++),a.length&&(e.splice(t,0,new LX(FX,a)),t++),t++):t!==0&&e[t-1][0]===IX?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,r=0,n=0,i=``,a=``;break}e[e.length-1][1]===``&&e.pop();let s=!1;for(t=1;t<e.length-1;)e[t-1][0]===IX&&e[t+1][0]===IX&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),s=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),s=!0)),t++;s&&JX(e)}function YX(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),i=n.match(HX),a=r.match(HX),o=i&&n.match(UX),s=a&&r.match(UX),c=o&&n.match(WX),l=s&&r.match(WX),u=c&&e.match(GX),d=l&&t.match(KX);return u||d?5:c||l?4:i&&!o&&s?3:o||s?2:i||a?1:0}var XX=`Compared values have no visual difference.`,ZX="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",QX={},$X;function eZ(){if($X)return QX;$X=1,Object.defineProperty(QX,`__esModule`,{value:!0}),QX.default=d;let e=`diff-sequences`,t=(e,t,n,r,i)=>{let a=0;for(;e<t&&n<r&&i(e,n);)e+=1,n+=1,a+=1;return a},n=(e,t,n,r,i)=>{let a=0;for(;e<=t&&n<=r&&i(t,r);)--t,--r,a+=1;return a},r=(e,n,r,i,a,o,s)=>{let c=0,l=-e,u=o[c],d=u;o[c]+=t(u+1,n,i+u-l+1,r,a);let f=e<s?e:s;for(c+=1,l+=2;c<=f;c+=1,l+=2){if(c!==e&&d<o[c])u=o[c];else if(u=d+1,n<=u)return c-1;d=o[c],o[c]=u+t(u+1,n,i+u-l+1,r,a)}return s},i=(e,t,r,i,a,o,s)=>{let c=0,l=e,u=o[c],d=u;o[c]-=n(t,u-1,r,i+u-l-1,a);let f=e<s?e:s;for(c+=1,l-=2;c<=f;c+=1,l-=2){if(c!==e&&o[c]<d)u=o[c];else if(u=d-1,u<t)return c-1;d=o[c],o[c]=u-n(t,u-1,r,i+u-l-1,a)}return s},a=(e,r,i,a,o,s,c,l,u,d,f)=>{let p=a-r,m=i-r,h=o-a-m,g=-h-(e-1),_=-h+(e-1),v=0,y=e<l?e:l;for(let l=0,m=-e;l<=y;l+=1,m+=2){let y=l===0||l!==e&&v<c[l],b=y?c[l]:v,x=y?b:b+1,S=p+x-m,C=t(x+1,i,S+1,o,s),w=x+C;if(v=c[l],c[l]=w,g<=m&&m<=_){let t=(e-1-(m+h))/2;if(t<=d&&u[t]-1<=w){let t=p+b-(y?m+1:m-1),c=n(r,b,a,t,s),l=b-c,u=t-c,d=l+1,h=u+1;f.nChangePreceding=e-1,e-1===d+h-r-a?(f.aEndPreceding=r,f.bEndPreceding=a):(f.aEndPreceding=d,f.bEndPreceding=h),f.nCommonPreceding=c,c!==0&&(f.aCommonPreceding=d,f.bCommonPreceding=h),f.nCommonFollowing=C,C!==0&&(f.aCommonFollowing=x+1,f.bCommonFollowing=S+1);let g=w+1,_=S+C+1;return f.nChangeFollowing=e-1,e-1===i+o-g-_?(f.aStartFollowing=i,f.bStartFollowing=o):(f.aStartFollowing=g,f.bStartFollowing=_),!0}}}return!1},o=(e,r,i,a,o,s,c,l,u,d,f)=>{let p=o-i,m=i-r,h=o-a-m,g=h-e,_=h+e,v=0,y=e<d?e:d;for(let d=0,m=e;d<=y;d+=1,m-=2){let y=d===0||d!==e&&u[d]<v,b=y?u[d]:v,x=y?b:b-1,S=p+x-m,C=n(r,x-1,a,S-1,s),w=x-C;if(v=u[d],u[d]=w,g<=m&&m<=_){let n=(e+(m-h))/2;if(n<=l&&w-1<=c[n]){let n=S-C;if(f.nChangePreceding=e,e===w+n-r-a?(f.aEndPreceding=r,f.bEndPreceding=a):(f.aEndPreceding=w,f.bEndPreceding=n),f.nCommonPreceding=C,C!==0&&(f.aCommonPreceding=w,f.bCommonPreceding=n),f.nChangeFollowing=e-1,e===1)f.nCommonFollowing=0,f.aStartFollowing=i,f.bStartFollowing=o;else{let n=p+b-(y?m-1:m+1),r=t(b,i,n,o,s);f.nCommonFollowing=r,r!==0&&(f.aCommonFollowing=b,f.bCommonFollowing=n);let a=b+r,c=n+r;e-1===i+o-a-c?(f.aStartFollowing=i,f.bStartFollowing=o):(f.aStartFollowing=a,f.bStartFollowing=c)}return!0}}}return!1},s=(t,n,s,c,l,u,d,f,p)=>{let m=c-n,h=l-s,g=s-n,_=l-c,v=_-g,y=g,b=g;if(d[0]=n-1,f[0]=s,v%2==0){let e=(t||v)/2,a=(g+_)/2;for(let t=1;t<=a;t+=1)if(y=r(t,s,l,m,u,d,y),t<e)b=i(t,n,c,h,u,f,b);else if(o(t,n,s,c,l,u,d,y,f,b,p))return}else{let e=((t||v)+1)/2,o=(g+_+1)/2,x=1;for(y=r(x,s,l,m,u,d,y),x+=1;x<=o;x+=1)if(b=i(x-1,n,c,h,u,f,b),x<e)y=r(x,s,l,m,u,d,y);else if(a(x,n,s,c,l,u,d,y,f,b,p))return}throw Error(`${e}: no overlap aStart=${n} aEnd=${s} bStart=${c} bEnd=${l}`)},c=(e,t,n,r,i,a,o,l,u,d)=>{if(i-r<n-t){if(a=!a,a&&o.length===1){let{foundSubsequence:e,isCommon:t}=o[0];o[1]={foundSubsequence:(t,n,r)=>{e(t,r,n)},isCommon:(e,n)=>t(n,e)}}let e=t,s=n;t=r,n=i,r=e,i=s}let{foundSubsequence:f,isCommon:p}=o[a?1:0];s(e,t,n,r,i,p,l,u,d);let{nChangePreceding:m,aEndPreceding:h,bEndPreceding:g,nCommonPreceding:_,aCommonPreceding:v,bCommonPreceding:y,nCommonFollowing:b,aCommonFollowing:x,bCommonFollowing:S,nChangeFollowing:C,aStartFollowing:w,bStartFollowing:T}=d;t<h&&r<g&&c(m,t,h,r,g,a,o,l,u,d),_!==0&&f(_,v,y),b!==0&&f(b,x,S),w<n&&T<i&&c(C,w,n,T,i,a,o,l,u,d)},l=(t,n)=>{if(typeof n!=`number`)throw TypeError(`${e}: ${t} typeof ${typeof n} is not a number`);if(!Number.isSafeInteger(n))throw RangeError(`${e}: ${t} value ${n} is not a safe integer`);if(n<0)throw RangeError(`${e}: ${t} value ${n} is a negative integer`)},u=(t,n)=>{let r=typeof n;if(r!==`function`)throw TypeError(`${e}: ${t} typeof ${r} is not a function`)};function d(e,r,i,a){l(`aLength`,e),l(`bLength`,r),u(`isCommon`,i),u(`foundSubsequence`,a);let o=t(0,e,0,r,i);if(o!==0&&a(o,0,0),e!==o||r!==o){let t=o,s=o,l=n(t,e-1,s,r-1,i),u=e-l,d=r-l,f=o+l;e!==f&&r!==f&&c(0,t,u,s,d,!1,[{foundSubsequence:a,isCommon:i}],[0],[0],{aCommonFollowing:0,aCommonPreceding:0,aEndPreceding:0,aStartFollowing:0,bCommonFollowing:0,bCommonPreceding:0,bEndPreceding:0,bStartFollowing:0,nChangeFollowing:0,nChangePreceding:0,nCommonFollowing:0,nCommonPreceding:0}),l!==0&&a(l,u,d)}}return QX}var tZ=EX(eZ());function nZ(e,t){return e.replace(/\s+$/,e=>t(e))}function rZ(e,t,n,r,i,a){return e.length===0?r===` `?t&&a.length!==0?n(`${r} ${a}`):``:n(r):n(`${r} ${nZ(e,i)}`)}function iZ(e,t,{aColor:n,aIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return rZ(e,t,n,r,i,a)}function aZ(e,t,{bColor:n,bIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return rZ(e,t,n,r,i,a)}function oZ(e,t,{commonColor:n,commonIndicator:r,commonLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return rZ(e,t,n,r,i,a)}function sZ(e,t,n,r,{patchColor:i}){return i(`@@ -${e+1},${t-e} +${n+1},${r-n} @@`)}function cZ(e,t){let n=e.length,r=t.contextLines,i=r+r,a=n,o=!1,s=0,c=0;for(;c!==n;){let t=c;for(;c!==n&&e[c][0]===IX;)c+=1;if(t!==c)if(t===0)c>r&&(a-=c-r,o=!0);else if(c===n){let e=c-t;e>r&&(a-=e-r,o=!0)}else{let e=c-t;e>i&&(a-=e-i,s+=1)}for(;c!==n&&e[c][0]!==IX;)c+=1}let l=s!==0||o;s===0?o&&(a+=1):a+=s+1;let u=a-1,d=[],f=0;l&&d.push(``);let p=0,m=0,h=0,g=0,_=e=>{let n=d.length;d.push(oZ(e,n===0||n===u,t)),h+=1,g+=1},v=e=>{let n=d.length;d.push(iZ(e,n===0||n===u,t)),h+=1},y=e=>{let n=d.length;d.push(aZ(e,n===0||n===u,t)),g+=1};for(c=0;c!==n;){let a=c;for(;c!==n&&e[c][0]===IX;)c+=1;if(a!==c)if(a===0){c>r&&(a=c-r,p=a,m=a,h=p,g=m);for(let t=a;t!==c;t+=1)_(e[t][1])}else if(c===n){let t=c-a>r?a+r:c;for(let n=a;n!==t;n+=1)_(e[n][1])}else{let n=c-a;if(n>i){let o=a+r;for(let t=a;t!==o;t+=1)_(e[t][1]);d[f]=sZ(p,h,m,g,t),f=d.length,d.push(``);let s=n-i;p=h+s,m=g+s,h=p,g=m;for(let t=c-r;t!==c;t+=1)_(e[t][1])}else for(let t=a;t!==c;t+=1)_(e[t][1])}for(;c!==n&&e[c][0]===PX;)v(e[c][1]),c+=1;for(;c!==n&&e[c][0]===FX;)y(e[c][1]),c+=1}return l&&(d[f]=sZ(p,h,m,g,t)),d.join(`
|
|
1033
|
+
`)}function lZ(e,t){return e.map((e,n,r)=>{let i=e[1],a=n===0||n===r.length-1;switch(e[0]){case PX:return iZ(i,a,t);case FX:return aZ(i,a,t);default:return oZ(i,a,t)}}).join(`
|
|
1034
|
+
`)}var uZ=e=>e,dZ=5,fZ=0;function pZ(){return{aAnnotation:`Expected`,aColor:dq.green,aIndicator:`-`,bAnnotation:`Received`,bColor:dq.red,bIndicator:`+`,changeColor:dq.inverse,changeLineTrailingSpaceColor:uZ,commonColor:dq.dim,commonIndicator:` `,commonLineTrailingSpaceColor:uZ,compareKeys:void 0,contextLines:dZ,emptyFirstOrLastLinePlaceholder:``,expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:dq.yellow,printBasicPrototype:!1,truncateThreshold:fZ,truncateAnnotation:`... Diff result is truncated`,truncateAnnotationColor:uZ}}function mZ(e){return e&&typeof e==`function`?e:void 0}function hZ(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>=0?e:dZ}function gZ(e={}){return{...pZ(),...e,compareKeys:mZ(e.compareKeys),contextLines:hZ(e.contextLines)}}function _Z(e){return e.length===1&&e[0].length===0}function vZ(e){let t=0,n=0;return e.forEach(e=>{switch(e[0]){case PX:t+=1;break;case FX:n+=1;break}}),{a:t,b:n}}function yZ({aAnnotation:e,aColor:t,aIndicator:n,bAnnotation:r,bColor:i,bIndicator:a,includeChangeCounts:o,omitAnnotationLines:s},c){if(s)return``;let l=``,u=``;if(o){let t=String(c.a),i=String(c.b),o=r.length-e.length,s=` `.repeat(Math.max(0,o)),d=` `.repeat(Math.max(0,-o)),f=i.length-t.length,p=` `.repeat(Math.max(0,f)),m=` `.repeat(Math.max(0,-f));l=`${s} ${n} ${p}${t}`,u=`${d} ${a} ${m}${i}`}let d=`${n} ${e}${l}`,f=`${a} ${r}${u}`;return`${t(d)}
|
|
1035
|
+
${i(f)}
|
|
1036
|
+
|
|
1037
|
+
`}function bZ(e,t,n){return yZ(n,vZ(e))+(n.expand?lZ(e,n):cZ(e,n))+(t?n.truncateAnnotationColor(`
|
|
1038
|
+
${n.truncateAnnotation}`):``)}function xZ(e,t,n){let r=gZ(n),[i,a]=CZ(_Z(e)?[]:e,_Z(t)?[]:t,r);return bZ(i,a,r)}function SZ(e,t,n,r,i){if(_Z(e)&&_Z(n)&&(e=[],n=[]),_Z(t)&&_Z(r)&&(t=[],r=[]),e.length!==n.length||t.length!==r.length)return xZ(e,t,i);let[a,o]=CZ(n,r,i),s=0,c=0;return a.forEach(n=>{switch(n[0]){case PX:n[1]=e[s],s+=1;break;case FX:n[1]=t[c],c+=1;break;default:n[1]=t[c],s+=1,c+=1}}),bZ(a,o,gZ(i))}function CZ(e,t,n){let r=n?.truncateThreshold??!1,i=Math.max(Math.floor(n?.truncateThreshold??0),0),a=r?Math.min(e.length,i):e.length,o=r?Math.min(t.length,i):t.length,s=a!==e.length||o!==t.length,c=(n,r)=>e[n]===t[r],l=[],u=0,d=0;for(tZ(a,o,c,(n,r,i)=>{for(;u!==r;u+=1)l.push(new LX(PX,e[u]));for(;d!==i;d+=1)l.push(new LX(FX,t[d]));for(;n!==0;--n,u+=1,d+=1)l.push(new LX(IX,t[d]))});u!==a;u+=1)l.push(new LX(PX,e[u]));for(;d!==o;d+=1)l.push(new LX(FX,t[d]));return[l,s]}function wZ(e){if(e===void 0)return`undefined`;if(e===null)return`null`;if(Array.isArray(e))return`array`;if(typeof e==`boolean`)return`boolean`;if(typeof e==`function`)return`function`;if(typeof e==`number`)return`number`;if(typeof e==`string`)return`string`;if(typeof e==`bigint`)return`bigint`;if(typeof e==`object`){if(e!=null){if(e.constructor===RegExp)return`regexp`;if(e.constructor===Map)return`map`;if(e.constructor===Set)return`set`;if(e.constructor===Date)return`date`}return`object`}else if(typeof e==`symbol`)return`symbol`;throw Error(`value of unknown type: ${e}`)}function TZ(e){return e.includes(`\r
|
|
1039
|
+
`)?`\r
|
|
1040
|
+
`:`
|
|
1041
|
+
`}function EZ(e,t,n){let r=n?.truncateThreshold??!1,i=Math.max(Math.floor(n?.truncateThreshold??0),0),a=e.length,o=t.length;if(r){let n=e.includes(`
|
|
1042
|
+
`),r=t.includes(`
|
|
1043
|
+
`),s=TZ(e),c=TZ(t),l=n?`${e.split(s,i).join(s)}
|
|
1044
|
+
`:e,u=r?`${t.split(c,i).join(c)}
|
|
1045
|
+
`:t;a=l.length,o=u.length}let s=a!==e.length||o!==t.length,c=(n,r)=>e[n]===t[r],l=0,u=0,d=[];return tZ(a,o,c,(n,r,i)=>{l!==r&&d.push(new LX(PX,e.slice(l,r))),u!==i&&d.push(new LX(FX,t.slice(u,i))),l=r+n,u=i+n,d.push(new LX(IX,t.slice(i,u)))}),l!==a&&d.push(new LX(PX,e.slice(l))),u!==o&&d.push(new LX(FX,t.slice(u))),[d,s]}function DZ(e,t,n){return t.reduce((t,r)=>t+(r[0]===IX?r[1]:r[0]===e&&r[1].length!==0?n(r[1]):``),``)}var OZ=class{op;line;lines;changeColor;constructor(e,t){this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new LX(this.op,e))}pushLine(){this.lines.push(this.line.length===1?this.line[0][0]===this.op?this.line[0]:new LX(this.op,this.line[0][1]):new LX(this.op,DZ(this.op,this.line,this.changeColor))),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e)}align(e){let t=e[1];if(t.includes(`
|
|
1046
|
+
`)){let e=t.split(`
|
|
1047
|
+
`),n=e.length-1;e.forEach((e,t)=>{t<n?(this.pushSubstring(e),this.pushLine()):e.length!==0&&this.pushSubstring(e)})}else this.pushDiff(e)}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0}},kZ=class{deleteBuffer;insertBuffer;lines;constructor(e,t){this.deleteBuffer=e,this.insertBuffer=t,this.lines=[]}pushDiffCommonLine(e){this.lines.push(e)}pushDiffChangeLines(e){let t=e[1].length===0;(!t||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(e),(!t||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(e)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(e){let t=e[0],n=e[1];if(n.includes(`
|
|
1048
|
+
`)){let e=n.split(`
|
|
1049
|
+
`),r=e.length-1;e.forEach((e,n)=>{if(n===0){let n=new LX(t,e);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(n)):(this.pushDiffChangeLines(n),this.flushChangeLines())}else n<r?this.pushDiffCommonLine(new LX(t,e)):e.length!==0&&this.pushDiffChangeLines(new LX(t,e))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function AZ(e,t){let n=new OZ(PX,t),r=new OZ(FX,t),i=new kZ(n,r);return e.forEach(e=>{switch(e[0]){case PX:n.align(e);break;case FX:r.align(e);break;default:i.align(e)}}),i.getLines()}function jZ(e,t){if(t){let t=e.length-1;return e.some((e,n)=>e[0]===IX&&(n!==t||e[1]!==`
|
|
1050
|
+
`))}return e.some(e=>e[0]===IX)}function MZ(e,t,n){if(e!==t&&e.length!==0&&t.length!==0){let r=e.includes(`
|
|
1051
|
+
`)||t.includes(`
|
|
1052
|
+
`),[i,a]=NZ(r?`${e}
|
|
1053
|
+
`:e,r?`${t}
|
|
1054
|
+
`:t,!0,n);if(jZ(i,r)){let e=gZ(n);return bZ(AZ(i,e.changeColor),a,e)}}return xZ(e.split(`
|
|
1055
|
+
`),t.split(`
|
|
1056
|
+
`),n)}function NZ(e,t,n,r){let[i,a]=EZ(e,t,r);return n&&VX(i),[i,a]}function PZ(e,t){let{commonColor:n}=gZ(t);return n(e)}var{AsymmetricMatcher:FZ,DOMCollection:IZ,DOMElement:LZ,Immutable:RZ,ReactElement:zZ,ReactTestComponent:BZ}=_Y,VZ=[BZ,zZ,LZ,IZ,RZ,FZ,_Y.Error],HZ={maxDepth:20,plugins:VZ},UZ={callToJSON:!1,maxDepth:8,plugins:VZ};function WZ(e,t,n){if(Object.is(e,t))return``;let r=wZ(e),i=r,a=!1;if(r===`object`&&typeof e.asymmetricMatch==`function`){if(e.$$typeof!==Symbol.for(`jest.asymmetricMatcher`)||typeof e.getExpectedType!=`function`)return;i=e.getExpectedType(),a=i===`string`}if(i!==wZ(t)){let r=function(e){return e.length<=p?e:`${e.slice(0,p)}...`},{aAnnotation:i,aColor:a,aIndicator:o,bAnnotation:s,bColor:c,bIndicator:l}=gZ(n),u=YZ(UZ,n),d=gY(e,u),f=gY(t,u),p=1e5;return d=r(d),f=r(f),`${`${a(`${o} ${i}:`)}
|
|
1057
|
+
${d}`}
|
|
1058
|
+
|
|
1059
|
+
${`${c(`${l} ${s}:`)}
|
|
1060
|
+
${f}`}`}if(!a)switch(r){case`string`:return xZ(e.split(`
|
|
1061
|
+
`),t.split(`
|
|
1062
|
+
`),n);case`boolean`:case`number`:return GZ(e,t,n);case`map`:return JZ(KZ(e),KZ(t),n);case`set`:return JZ(qZ(e),qZ(t),n);default:return JZ(e,t,n)}}function GZ(e,t,n){let r=gY(e,HZ),i=gY(t,HZ);return r===i?``:xZ(r.split(`
|
|
1063
|
+
`),i.split(`
|
|
1064
|
+
`),n)}function KZ(e){return new Map(Array.from(e.entries()).sort())}function qZ(e){return new Set(Array.from(e.values()).sort())}function JZ(e,t,n){let r,i=!1;try{r=XZ(e,t,YZ(HZ,n),n)}catch{i=!0}let a=PZ(XX,n);return(r===void 0||r===a)&&(r=XZ(e,t,YZ(UZ,n),n),r!==a&&!i&&(r=`${PZ(ZX,n)}
|
|
1065
|
+
|
|
1066
|
+
${r}`)),r}function YZ(e,t){let{compareKeys:n,printBasicPrototype:r,maxDepth:i}=gZ(t);return{...e,compareKeys:n,printBasicPrototype:r,maxDepth:i??e.maxDepth}}function XZ(e,t,n,r){let i={...n,indent:0},a=gY(e,i),o=gY(t,i);if(a===o)return PZ(XX,r);{let i=gY(e,n),s=gY(t,n);return SZ(i.split(`
|
|
1067
|
+
`),s.split(`
|
|
1068
|
+
`),a.split(`
|
|
1069
|
+
`),o.split(`
|
|
1070
|
+
`),r)}}var ZZ=2e4;function QZ(e){return OX(e)===`Object`&&typeof e.asymmetricMatch==`function`}function $Z(e,t){let n=OX(e);return n===OX(t)&&(n===`Object`||n===`Array`)}function eQ(e,t,n){let{aAnnotation:r,bAnnotation:i}=gZ(n);if(typeof t==`string`&&typeof e==`string`&&t.length>0&&e.length>0&&t.length<=ZZ&&e.length<=ZZ&&t!==e){if(t.includes(`
|
|
1071
|
+
`)||e.includes(`
|
|
1072
|
+
`))return MZ(t,e,n);let[a]=NZ(t,e,!0),o=a.some(e=>e[0]===IX),s=nQ(r,i);return`${s(r)+oQ(sQ(a,PX,o))}
|
|
1073
|
+
${s(i)+aQ(sQ(a,FX,o))}`}let a=MX(t,{forceWritable:!0}),{replacedExpected:o,replacedActual:s}=tQ(MX(e,{forceWritable:!0}),a);return WZ(o,s,n)}function tQ(e,t,n=new WeakSet,r=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<`u`&&typeof t.cause>`u`?(delete e.cause,{replacedActual:e,replacedExpected:t}):$Z(e,t)?n.has(e)||r.has(t)?{replacedActual:e,replacedExpected:t}:(n.add(e),r.add(t),AX(t).forEach(i=>{let a=t[i],o=e[i];if(QZ(a))a.asymmetricMatch(o)&&(e[i]=a);else if(QZ(o))o.asymmetricMatch(a)&&(t[i]=o);else if($Z(o,a)){let s=tQ(o,a,n,r);e[i]=s.replacedActual,t[i]=s.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function nQ(...e){let t=e.reduce((e,t)=>t.length>e?t.length:e,0);return e=>`${e}: ${` `.repeat(t-e.length)}`}var rQ=`·`;function iQ(e){return e.replace(/\s+$/gm,e=>rQ.repeat(e.length))}function aQ(e){return dq.red(iQ(SX(e)))}function oQ(e){return dq.green(iQ(SX(e)))}function sQ(e,t,n){return e.reduce((e,r)=>e+(r[0]===IX?r[1]:r[0]===t?n?dq.inverse(r[1]):r[1]:``),``)}var cQ=`@@__IMMUTABLE_RECORD__@@`,lQ=`@@__IMMUTABLE_ITERABLE__@@`;function uQ(e){return e&&(e[lQ]||e[cQ])}var dQ=Object.getPrototypeOf({});function fQ(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e==`string`?`<unserializable>: ${e}`:`<unserializable>`}function pQ(e,t=new WeakMap){if(!e||typeof e==`string`)return e;if(e instanceof Error&&`toJSON`in e&&typeof e.toJSON==`function`){let n=e.toJSON();return n&&n!==e&&typeof n==`object`&&(typeof e.message==`string`&&mQ(()=>n.message??=e.message),typeof e.stack==`string`&&mQ(()=>n.stack??=e.stack),typeof e.name==`string`&&mQ(()=>n.name??=e.name),e.cause!=null&&mQ(()=>n.cause??=pQ(e.cause,t))),pQ(n,t)}if(typeof e==`function`)return`Function<${e.name||`anonymous`}>`;if(typeof e==`symbol`)return e.toString();if(typeof e!=`object`)return e;if(typeof Buffer<`u`&&e instanceof Buffer)return`<Buffer(${e.length}) ...>`;if(typeof Uint8Array<`u`&&e instanceof Uint8Array)return`<Uint8Array(${e.length}) ...>`;if(uQ(e))return pQ(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()} ${wX(e.sample)}`;if(typeof e.toJSON==`function`)return pQ(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let n=Array(e.length);return t.set(e,n),e.forEach((e,r)=>{try{n[r]=pQ(e,t)}catch(e){n[r]=fQ(e)}}),n}else{let n=Object.create(null);t.set(e,n);let r=e;for(;r&&r!==dQ;)Object.getOwnPropertyNames(r).forEach(r=>{if(!(r in n))try{n[r]=pQ(e[r],t)}catch(e){delete n[r],n[r]=fQ(e)}}),r=Object.getPrototypeOf(r);return n}}function mQ(e){try{return e()}catch{}}function hQ(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,``)}function gQ(e,t,n=new WeakSet){if(!e||typeof e!=`object`)return{message:String(e)};let r=e;(r.showDiff||r.showDiff===void 0&&r.expected!==void 0&&r.actual!==void 0)&&(r.diff=eQ(r.actual,r.expected,{...t,...r.diffOptions})),`expected`in r&&typeof r.expected!=`string`&&(r.expected=SX(r.expected,10)),`actual`in r&&typeof r.actual!=`string`&&(r.actual=SX(r.actual,10));try{typeof r.message==`string`&&(r.message=hQ(r.message))}catch{}try{!n.has(r)&&typeof r.cause==`object`&&(n.add(r),r.cause=gQ(r.cause,t,n))}catch{}try{return pQ(r)}catch(e){return pQ(Error(`Failed to fully serialize error: ${e?.message}
|
|
1074
|
+
Inner error message: ${r?.message}`))}}var{once:_Q}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{FORCE_REMOUNT:vQ,SET_CURRENT_STORY:yQ,STORY_RENDER_PHASE_CHANGED:bQ}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:xQ}=__STORYBOOK_MODULE_GLOBAL__,SQ=globalThis.__STORYBOOK_ADDONS_PREVIEW,CQ=Error("This function ran after the play function completed. Did you forget to `await` it?"),wQ=e=>Object.prototype.toString.call(e)===`[object Object]`,TQ=e=>Object.prototype.toString.call(e)===`[object Module]`,EQ=e=>{if(!wQ(e)&&!TQ(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!wQ(t)},DQ=e=>{try{return new e.constructor}catch{return{}}},OQ=()=>({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}),kQ=(e,t=!1)=>{let n=(t?e.shadowCalls:e.calls).filter(e=>e.retain);if(!n.length)return;let r=new Map(Array.from(e.callRefsByResult.entries()).filter(([,e])=>e.retain));return{cursor:n.length,calls:n,callRefsByResult:r}},AQ=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=()=>{try{this.state=xQ.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}},this.updateParentWindowState=()=>{try{xQ.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},this.loadParentWindowState();let e=({storyId:e,renderPhase:t,isPlaying:n=!0,isDebugging:r=!1})=>{let i=this.getState(e);this.setState(e,{...OQ(),...kQ(i,r),renderPhase:t||i.renderPhase,shadowCalls:r?i.shadowCalls:[],chainedCallIds:r?i.chainedCallIds:new Set,playUntil:r?i.playUntil:void 0,isPlaying:n,isDebugging:r}),this.sync(e)},t=e=>({storyId:t,playUntil:n})=>{this.getState(t).isDebugging||this.setState(t,({calls:e})=>({calls:[],shadowCalls:e.map(e=>({...e,status:`waiting`})),isDebugging:!0}));let r=this.getLog(t);this.setState(t,({shadowCalls:e})=>{if(n||!r.length)return{playUntil:n};let t=e.findIndex(e=>e.id===r[0].callId);return{playUntil:e.slice(0,t).filter(e=>e.interceptable&&!e.ancestors?.length).slice(-1)[0]?.id}}),e.emit(vQ,{storyId:t,isDebugging:!0})},n=e=>({storyId:n})=>{let r=this.getLog(n).filter(e=>!e.ancestors?.length),i=r.reduceRight((e,t,n)=>e>=0||t.status===`waiting`?e:n,-1);t(e)({storyId:n,playUntil:r[i-1]?.callId})},r=e=>({storyId:n,callId:r})=>{let{calls:i,shadowCalls:a,resolvers:o}=this.getState(n),s=i.find(({id:e})=>e===r),c=a.find(({id:e})=>e===r);if(!s&&c&&Object.values(o).length>0){let e=this.getLog(n).find(e=>e.status===`waiting`)?.callId;c.id!==e&&this.setState(n,{playUntil:c.id}),Object.values(o).forEach(e=>e())}else t(e)({storyId:n,playUntil:r})},i=e=>({storyId:n})=>{let{resolvers:r}=this.getState(n);if(Object.values(r).length>0)Object.values(r).forEach(e=>e());else{let r=this.getLog(n).find(e=>e.status===`waiting`)?.callId;r?t(e)({storyId:n,playUntil:r}):a({storyId:n})}},a=({storyId:e})=>{this.setState(e,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(e).resolvers).forEach(e=>e())},o=({storyId:t,newPhase:n})=>{let{isDebugging:r}=this.getState(t);if(n===`preparing`&&r||n===`playing`)return e({storyId:t,renderPhase:n,isDebugging:r});n===`played`?this.setState(t,{renderPhase:n,isLocked:!1,isPlaying:!1,isDebugging:!1}):n===`errored`?this.setState(t,{renderPhase:n,isLocked:!1,isPlaying:!1}):n===`aborted`?this.setState(t,{renderPhase:n,isLocked:!0,isPlaying:!1}):this.setState(t,{renderPhase:n}),this.sync(t)};SQ&&SQ.ready().then(()=>{this.channel=SQ.getChannel(),this.channel.on(vQ,e),this.channel.on(bQ,o),this.channel.on(yQ,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(oq.START,t(this.channel)),this.channel.on(oq.BACK,n(this.channel)),this.channel.on(oq.GOTO,r(this.channel)),this.channel.on(oq.NEXT,i(this.channel)),this.channel.on(oq.END,a)})}getState(e){return this.state[e]||OQ()}setState(e,t){if(e){let n=this.getState(e),r=typeof t==`function`?t(n):t;this.state={...this.state,[e]:{...n,...r}},this.updateParentWindowState()}}cleanup(){this.state=Object.entries(this.state).reduce((e,[t,n])=>{let r=kQ(n);return r&&(e[t]=Object.assign(OQ(),r)),e},{});let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(oq.SYNC,e),this.updateParentWindowState()}getLog(e){let{calls:t,shadowCalls:n}=this.getState(e),r=[...n];t.forEach((e,t)=>{r[t]=e});let i=new Set;return r.reduceRight((e,t)=>(t.args.forEach(e=>{e?.__callId__&&i.add(e.__callId__)}),t.path.forEach(e=>{e.__callId__&&i.add(e.__callId__)}),(t.interceptable||t.exception)&&!i.has(t.id)&&(e.unshift({callId:t.id,status:t.status,ancestors:t.ancestors}),i.add(t.id)),e),[])}instrument(e,t,n=0){if(!EQ(e))return e;let{mutate:r=!1,path:i=[]}=t,a=t.getKeys?t.getKeys(e,n):Object.keys(e);return n+=1,a.reduce((r,a)=>{let o=MQ(e,a);if(typeof o?.get==`function`){if(o.configurable){let s=()=>o?.get?.bind(e)?.();Object.defineProperty(r,a,{get:()=>this.instrument(s(),{...t,path:i.concat(a)},n)})}return r}let s=e[a];return typeof s==`function`?`__originalFn__`in s&&typeof s.__originalFn__==`function`?(r[a]=s,r):(r[a]=(...n)=>this.track(a,s,e,n,t),r[a].__originalFn__=s,Object.defineProperty(r[a],`name`,{value:a,writable:!1}),Object.keys(s).length>0&&Object.assign(r[a],this.instrument({...s},{...t,path:i.concat(a)},n)),r):(r[a]=this.instrument(s,{...t,path:i.concat(a)},n),r)},r?e:DQ(e))}track(e,t,n,r,i){let a=r?.[0]?.__storyId__||xQ.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:o,ancestors:s}=this.getState(a);this.setState(a,{cursor:o+1});let c=`${s.slice(-1)[0]||a} [${o}] ${e}`,{path:l=[],intercept:u=!1,retain:d=!1}=i,f=typeof u==`function`?u(e,l):u,p={id:c,cursor:o,storyId:a,ancestors:s,path:l,method:e,args:r,interceptable:f,retain:d},m=(f&&!s.length?this.intercept:this.invoke).call(this,t,n,p,i);return this.instrument(m,{...i,mutate:!0,path:[{__callId__:p.id}]})}intercept(e,t,n,r){let{chainedCallIds:i,isDebugging:a,playUntil:o}=this.getState(n.storyId),s=i.has(n.id);return!a||s||o?(o===n.id&&this.setState(n.storyId,{playUntil:void 0}),this.invoke(e,t,n,r)):new Promise(e=>{this.setState(n.storyId,({resolvers:t})=>({isLocked:!1,resolvers:{...t,[n.id]:e}}))}).then(()=>(this.setState(n.storyId,e=>{let{[n.id]:t,...r}=e.resolvers;return{isLocked:!0,resolvers:r}}),this.invoke(e,t,n,r)))}invoke(e,t,n,r){let{callRefsByResult:i,renderPhase:a}=this.getState(n.storyId),o=(e,t,n)=>{if(n.includes(e))return`[Circular]`;if(n=[...n,e],t>25)return`...`;if(i.has(e))return i.get(e);if(e instanceof Array)return e.map(e=>o(e,++t,n));if(e instanceof Date)return{__date__:{value:e.toISOString()}};if(e instanceof Error){let{name:t,message:n,stack:r}=e;return{__error__:{name:t,message:n,stack:r}}}if(e instanceof RegExp){let{flags:t,source:n}=e;return{__regexp__:{flags:t,source:n}}}if(e instanceof xQ.window?.HTMLElement){let{prefix:t,localName:n,id:r,classList:i,innerText:a}=e;return{__element__:{prefix:t,localName:n,id:r,classNames:Array.from(i),innerText:a}}}return typeof e==`function`?{__function__:{name:`getMockName`in e?e.getMockName():e.name}}:typeof e==`symbol`?{__symbol__:{description:e.description}}:typeof e==`object`&&e?.constructor?.name&&e?.constructor?.name!==`Object`?{__class__:{name:e.constructor.name}}:Object.prototype.toString.call(e)===`[object Object]`?Object.fromEntries(Object.entries(e).map(([e,r])=>[e,o(r,++t,n)])):e},s={...n,args:n.args.map(e=>o(e,0,[]))};n.path.forEach(e=>{e?.__callId__&&this.setState(n.storyId,({chainedCallIds:t})=>({chainedCallIds:new Set(Array.from(t).concat(e.__callId__))}))});let c=e=>{if(e instanceof Error){let{name:t,message:r,stack:i,callId:a=n.id}=e,{showDiff:o=void 0,diff:c=void 0,actual:l=void 0,expected:u=void 0}=e.name===`AssertionError`?gQ(e):e,d={name:t,message:r,stack:i,callId:a,showDiff:o,diff:c,actual:l,expected:u};if(this.update({...s,status:`error`,exception:d}),this.setState(n.storyId,t=>({callRefsByResult:new Map([...Array.from(t.callRefsByResult.entries()),[e,{__callId__:n.id,retain:n.retain}]])})),n.ancestors?.length)throw Object.prototype.hasOwnProperty.call(e,`callId`)||Object.defineProperty(e,`callId`,{value:n.id}),e}throw e};try{if(a===`played`&&!n.retain)throw CQ;let i=(r.getArgs?r.getArgs(n,this.getState(n.storyId)):n.args).map(e=>typeof e!=`function`||NQ(e)||Object.keys(e).length?e:(...t)=>{let{cursor:r,ancestors:i}=this.getState(n.storyId);this.setState(n.storyId,{cursor:0,ancestors:[...i,n.id]});let a=()=>this.setState(n.storyId,{cursor:r,ancestors:i}),o=!1;try{let n=e(...t);return n instanceof Promise?(o=!0,n.finally(a)):n}finally{o||a()}}),o=e.apply(t,i);return o&&[`object`,`function`,`symbol`].includes(typeof o)&&this.setState(n.storyId,e=>({callRefsByResult:new Map([...Array.from(e.callRefsByResult.entries()),[o,{__callId__:n.id,retain:n.retain}]])})),this.update({...s,status:o instanceof Promise?`active`:`done`}),o instanceof Promise?o.then(e=>(this.update({...s,status:`done`}),e),c):o}catch(e){return c(e)}}update(e){this.channel?.emit(oq.CALL,e),this.setState(e.storyId,({calls:t})=>{let n=t.concat(e).reduce((e,t)=>Object.assign(e,{[t.id]:t}),{});return{calls:Object.values(n).sort((e,t)=>e.id.localeCompare(t.id,void 0,{numeric:!0}))}}),this.sync(e.storyId)}sync(e){let t=()=>{let{isLocked:t,isPlaying:n}=this.getState(e),r=this.getLog(e),i=r.filter(({ancestors:e})=>!e.length).find(e=>e.status===`waiting`)?.callId,a=r.some(e=>e.status===`active`);if(this.detached||t||a||r.length===0){let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:r};this.channel?.emit(oq.SYNC,e);return}let o=r.some(e=>e.status===`done`||e.status===`error`),s={controlStates:{detached:this.detached,start:o,back:o,goto:!0,next:n,end:n},logItems:r,pausedAt:i};this.channel?.emit(oq.SYNC,s)};this.setState(e,({syncTimeout:e})=>(clearTimeout(e),{syncTimeout:setTimeout(t,0)}))}};function jQ(e,t={}){try{let n=!1,r=!1;return xQ.window?.location?.search?.includes(`instrument=true`)?n=!0:xQ.window?.location?.search?.includes(`instrument=false`)&&(r=!0),xQ.window?.parent===xQ.window&&!n||r?e:(xQ.window&&!xQ.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(xQ.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new AQ),(xQ.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(t){return _Q.warn(t),e}}function MQ(e,t){let n=e;for(;n!=null;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Object.getPrototypeOf(n)}}function NQ(e){if(typeof e!=`function`)return!1;let t=Object.getOwnPropertyDescriptor(e,`prototype`);return t?!t.writable:!1}var PQ=JU(GU({"../../node_modules/@ngard/tiny-isequal/index.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.isEqual=(function(){var e=Object.prototype.toString,t=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:Object.keys;return function(r,i){return(function r(i,a,o){var s,c,l,u=e.call(i),d=e.call(a);if(i===a)return!0;if(i==null||a==null)return!1;if(o.indexOf(i)>-1&&o.indexOf(a)>-1)return!0;if(o.push(i,a),u!=d||(s=n(i),c=n(a),s.length!=c.length||s.some(function(e){return!r(i[e],a[e],o)})))return!1;switch(u.slice(8,-1)){case`Symbol`:return i.valueOf()==a.valueOf();case`Date`:case`Number`:return+i==+a||+i!=+i&&+a!=+a;case`RegExp`:case`Function`:case`String`:case`Boolean`:return``+i==``+a;case`Set`:case`Map`:s=i.entries(),c=a.entries();do if(!r((l=s.next()).value,c.next().value,o))return!1;while(!l.done);return!0;case`ArrayBuffer`:i=new Uint8Array(i),a=new Uint8Array(a);case`DataView`:i=new Uint8Array(i.buffer),a=new Uint8Array(a.buffer);case`Float32Array`:case`Float64Array`:case`Int8Array`:case`Int16Array`:case`Int32Array`:case`Uint8Array`:case`Uint16Array`:case`Uint32Array`:case`Uint8ClampedArray`:case`Arguments`:case`Array`:if(i.length!=a.length)return!1;for(l=0;l<i.length;l++)if((l in i||l in a)&&(l in i!=l in a||!r(i[l],a[l],o)))return!1;return!0;case`Object`:return r(t(i),t(a),o);default:return!1}})(r,i,[])}})()}})(),1),FQ=e=>e.map(e=>typeof e<`u`).filter(Boolean).length,IQ=(e,t)=>{let{exists:n,eq:r,neq:i,truthy:a}=e;if(FQ([n,r,i,a])>1)throw Error(`Invalid conditional test ${JSON.stringify({exists:n,eq:r,neq:i})}`);if(typeof r<`u`)return(0,PQ.isEqual)(t,r);if(typeof i<`u`)return!(0,PQ.isEqual)(t,i);if(typeof n<`u`){let e=typeof t<`u`;return n?e:!e}return typeof a>`u`||a?!!t:!t},LQ=(e,t,n)=>{if(!e.if)return!0;let{arg:r,global:i}=e.if;if(FQ([r,i])!==1)throw Error(`Invalid conditional value ${JSON.stringify({arg:r,global:i})}`);let a=r?t[r]:n[i];return IQ(e.if,a)};KU({},{argsEnhancers:()=>zQ});var RQ=(e,t)=>typeof t[e]>`u`&&!(e in t),zQ=[e=>{let{initialArgs:t,argTypes:n,parameters:{actions:r}}=e;return r?.disable||!n?{}:Object.entries(n).filter(([e,t])=>!!t.action).reduce((e,[n,r])=>(RQ(n,t)&&(e[n]=iq(typeof r.action==`string`?r.action:n)),e),{})},e=>{let{initialArgs:t,argTypes:n,id:r,parameters:{actions:i}}=e;if(!i||i.disable||!i.argTypesRegex||!n)return{};let a=new RegExp(i.argTypesRegex);return Object.entries(n).filter(([e])=>!!a.test(e)).reduce((e,[n,i])=>(RQ(n,t)&&(e[n]=iq(n,{implicit:!0,id:r})),e),{})}];KU({},{loaders:()=>HQ});var{onMockCall:BQ}=__STORYBOOK_MODULE_TEST__,VQ=!1,HQ=[e=>{let{parameters:t}=e;t?.actions?.disable||VQ||(BQ((e,t)=>{let n=e.getMockName();n!==`spy`&&n!==`vi.fn()`&&(!/^next\/.*::/.test(n)||[`next/router::useRouter()`,`next/navigation::useRouter()`,`next/navigation::redirect`,`next/cache::`,`next/headers::cookies().set`,`next/headers::cookies().delete`,`next/headers::headers().set`,`next/headers::headers().delete`].some(e=>n.startsWith(e)))&&iq(n)(t)}),VQ=!0)}],{useEffect:UQ}=__STORYBOOK_MODULE_PREVIEW_API__,{document:WQ}=globalThis;globalThis?.matchMedia&&globalThis.matchMedia(`(prefers-reduced-motion: reduce)`)?.matches,globalThis.FEATURES?.backgrounds;var{step:GQ}=jQ({step:async(e,t,n)=>t(n)},{intercept:!0}),{addons:KQ}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_RENDER_PHASE_CHANGED:qQ}=__STORYBOOK_MODULE_CORE_EVENTS__,JQ={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`]},YQ=`svg,path,rect,circle,line,polyline,polygon,ellipse,text`.split(`,`),XQ=(e,t={},n)=>{let r=YQ.includes(e)?document.createElementNS(`http://www.w3.org/2000/svg`,e):document.createElement(e);return Object.entries(t).forEach(([e,t])=>{/[A-Z]/.test(e)?(e===`onClick`&&(r.addEventListener(`click`,t),r.addEventListener(`keydown`,e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),t())})),e===`onMouseEnter`&&r.addEventListener(`mouseenter`,t),e===`onMouseLeave`&&r.addEventListener(`mouseleave`,t)):r.setAttribute(e,t)}),n?.forEach(e=>{if(!(e==null||e===!1))try{r.appendChild(e)}catch{r.appendChild(document.createTextNode(String(e)))}}),r},ZQ=e=>JQ[e]&&XQ(`svg`,{width:`14`,height:`14`,viewBox:`0 0 14 14`,xmlns:`http://www.w3.org/2000/svg`},JQ[e].map(e=>XQ(`path`,{fill:`currentColor`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:e}))),QQ=e=>{if(`elements`in e){let{elements:t,color:n,style:r}=e;return{id:void 0,priority:0,selectors:t,styles:{outline:`2px ${r} ${n}`,outlineOffset:`2px`,boxShadow:`0 0 0 6px rgba(255,255,255,0.6)`},menu:void 0}}let{menu:t,...n}=e;return{id:void 0,priority:0,styles:{outline:`2px dashed #029cfd`},...n,menu:Array.isArray(t)?t.every(Array.isArray)?t:[t]:void 0}},$Q=e=>e instanceof Function,e$=new Map,t$=new Map,n$=new Map,r$=e=>{let t=Symbol();return t$.set(t,[]),e$.set(t,e),{get:()=>e$.get(t),set:e=>{let n=e$.get(t),r=$Q(e)?e(n):e;r!==n&&(e$.set(t,r),t$.get(t)?.forEach(e=>{n$.get(e)?.(),n$.set(e,e(r))}))},subscribe:e=>(t$.get(t)?.push(e),()=>{let n=t$.get(t);n&&t$.set(t,n.filter(t=>t!==e))}),teardown:()=>{t$.get(t)?.forEach(e=>{n$.get(e)?.(),n$.delete(e)}),t$.delete(t),e$.delete(t)}}},i$=e=>{let t=document.getElementById(`storybook-root`),n=new Map;for(let r of e){let{priority:e=0}=r;for(let i of r.selectors){let a=[...document.querySelectorAll(`:is(${i}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...t?.querySelectorAll(i)||[]];for(let t of a){let a=n.get(t);(!a||a.priority<=e)&&n.set(t,{...r,priority:e,selectors:Array.from(new Set((a?.selectors||[]).concat(i)))})}}}return n},a$=e=>Array.from(e.entries()).map(([e,{selectors:t,styles:n,hoverStyles:r,focusStyles:i,menu:a}])=>{let{top:o,left:s,width:c,height:l}=e.getBoundingClientRect(),{position:u}=getComputedStyle(e);return{element:e,selectors:t,styles:n,hoverStyles:r,focusStyles:i,menu:a,top:u===`fixed`?o:o+window.scrollY,left:u===`fixed`?s:s+window.scrollX,width:c,height:l}}).sort((e,t)=>t.width*t.height-e.width*e.height),o$=(e,t)=>{let n=e.getBoundingClientRect(),{x:r,y:i}=t;return n?.top&&n?.left&&r>=n.left&&r<=n.left+n.width&&i>=n.top&&i<=n.top+n.height},s$=(e,t,n)=>{if(!t||!n)return!1;let{left:r,top:i,width:a,height:o}=e;o<28&&(i-=Math.round((28-o)/2),o=28),a<28&&(r-=Math.round((28-a)/2),a=28),t.style.position===`fixed`&&(r+=window.scrollX,i+=window.scrollY);let{x:s,y:c}=n;return s>=r&&s<=r+a&&c>=i&&c<=i+o},c$=(e,t,n={})=>{let{x:r,y:i}=t,{margin:a=5,topOffset:o=0,centered:s=!1}=n,{scrollX:c,scrollY:l,innerHeight:u,innerWidth:d}=window,f=Math.min(e.style.position===`fixed`?i-l:i,u-e.clientHeight-a-o+l),p=s?e.clientWidth/2:0,m=e.style.position===`fixed`?Math.max(Math.min(r-c,d-p-a),p+a):Math.max(Math.min(r,d-p-a+c),p+a+c);Object.assign(e.style,{...m!==r&&{left:`${m}px`},...f!==i&&{top:`${f}px`}})},l$=e=>{window.HTMLElement.prototype.hasOwnProperty(`showPopover`)&&e.showPopover()},u$=e=>{window.HTMLElement.prototype.hasOwnProperty(`showPopover`)&&e.hidePopover()},d$=e=>({top:e.top,left:e.left,width:e.width,height:e.height,selectors:e.selectors,element:{attributes:Object.fromEntries(Array.from(e.element.attributes).map(e=>[e.name,e.value])),localName:e.element.localName,tagName:e.element.tagName,outerHTML:e.element.outerHTML}}),f$=`storybook-highlights-menu`,p$=`storybook-highlights-root`,m$=`storybook-root`;globalThis?.FEATURES?.highlight&&KQ?.ready&&KQ.ready().then(e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,n=r$([]),r=r$(new Map),i=r$([]),a=r$(),o=r$(),s=r$([]),c=r$([]),l=r$(),u=r$(),d=t.getElementById(p$);n.subscribe(()=>{d||(d=XQ(`div`,{id:p$}),t.body.appendChild(d))}),n.subscribe(e=>{let n=t.getElementById(m$);if(!n)return;r.set(i$(e));let i=new MutationObserver(()=>r.set(i$(e)));return i.observe(n,{subtree:!0,childList:!0}),()=>{i.disconnect()}}),r.subscribe(e=>{let n=()=>requestAnimationFrame(()=>i.set(a$(e))),r=new ResizeObserver(n);r.observe(t.body),Array.from(e.keys()).forEach(e=>r.observe(e));let a=Array.from(t.body.querySelectorAll(`*`)).filter(e=>{let{overflow:t,overflowX:n,overflowY:r}=window.getComputedStyle(e);return[`auto`,`scroll`].some(e=>[t,n,r].includes(e))});return a.forEach(e=>e.addEventListener(`scroll`,n)),()=>{r.disconnect(),a.forEach(e=>e.removeEventListener(`scroll`,n))}}),r.subscribe(e=>{let n=Array.from(e.keys()).filter(({style:e})=>e.position===`sticky`),r=()=>requestAnimationFrame(()=>{i.set(e=>e.map(e=>{if(n.includes(e.element)){let{top:t,left:n}=e.element.getBoundingClientRect();return{...e,top:t+window.scrollY,left:n+window.scrollX}}return e}))});return t.addEventListener(`scroll`,r),()=>t.removeEventListener(`scroll`,r)}),r.subscribe(e=>{s.set(t=>t.filter(({element:t})=>e.has(t)))}),s.subscribe(e=>{e.length?(u.set(t=>e.some(e=>e.element===t?.element)?t:void 0),l.set(t=>e.some(e=>e.element===t?.element)?t:void 0)):(u.set(void 0),l.set(void 0),a.set(void 0))});let f=new Map(new Map);n.subscribe(e=>{e.forEach(({keyframes:e})=>{if(e){let n=f.get(e);n||(n=t.createElement(`style`),n.setAttribute(`data-highlight`,`keyframes`),f.set(e,n),t.head.appendChild(n)),n.innerHTML=e}}),f.forEach((t,n)=>{e.some(e=>e.keyframes===n)||(t.remove(),f.delete(n))})});let p=new Map(new Map);i.subscribe(e=>{e.forEach(e=>{let t=p.get(e.element);if(d&&!t){let n={popover:`manual`,"data-highlight-dimensions":`w${e.width.toFixed(0)}h${e.height.toFixed(0)}`,"data-highlight-coordinates":`x${e.left.toFixed(0)}y${e.top.toFixed(0)}`};t=d.appendChild(XQ(`div`,n,[XQ(`div`)])),p.set(e.element,t)}}),p.forEach((t,n)=>{e.some(({element:e})=>e===n)||(t.remove(),p.delete(n))})}),i.subscribe(e=>{let n=e.filter(e=>e.menu);if(!n.length)return;let r=e=>{requestAnimationFrame(()=>{let r=t.getElementById(f$),i={x:e.pageX,y:e.pageY};if(r&&!o$(r,i)){let e=n.filter(e=>s$(e,p.get(e.element),i));a.set(e.length?i:void 0),s.set(e)}})};return t.addEventListener(`click`,r),()=>t.removeEventListener(`click`,r)});let m=()=>{let e=t.getElementById(f$),n=o.get();!n||e&&o$(e,n)||c.set(e=>{let t=i.get().filter(e=>s$(e,p.get(e.element),n)),r=e.filter(e=>t.includes(e)),a=t.filter(t=>!e.includes(t)),o=e.length-r.length;return a.length||o?[...r,...a]:e})};o.subscribe(m),i.subscribe(m);let h=()=>{let e=u.get(),t=e?[e]:s.get(),n=t.length===1?t[0]:l.get(),r=a.get()!==void 0;i.get().forEach(e=>{let i=p.get(e.element);if(i){let a=n===e,o=r?n?a:t.includes(e):c.get()?.includes(e);Object.assign(i.style,{animation:`none`,background:`transparent`,border:`none`,boxSizing:`border-box`,outline:`none`,outlineOffset:`0px`,...e.styles,...o?e.hoverStyles:{},...a?e.focusStyles:{},position:getComputedStyle(e.element).position===`fixed`?`fixed`:`absolute`,zIndex:JK-10,top:`${e.top}px`,left:`${e.left}px`,width:`${e.width}px`,height:`${e.height}px`,margin:0,padding:0,cursor:e.menu&&o?`pointer`:`default`,pointerEvents:e.menu?`auto`:`none`,display:`flex`,alignItems:`center`,justifyContent:`center`,overflow:`visible`}),Object.assign(i.children[0].style,{width:`100%`,height:`100%`,minHeight:`28px`,minWidth:`28px`,boxSizing:`content-box`,padding:i.style.outlineWidth||`0px`}),l$(i)}})};i.subscribe(h),s.subscribe(h),c.subscribe(h),l.subscribe(h),u.subscribe(h);let g=()=>{if(!d)return;let n=t.getElementById(f$);if(n)n.innerHTML=``;else{let e={id:f$,popover:`manual`};n=d.appendChild(XQ(`div`,e)),d.appendChild(XQ(`style`,{},[`
|
|
1075
|
+
#${f$} {
|
|
1076
|
+
position: absolute;
|
|
1077
|
+
z-index: ${JK};
|
|
1078
|
+
width: 300px;
|
|
1079
|
+
padding: 0px;
|
|
1080
|
+
margin: 15px 0 0 0;
|
|
1081
|
+
transform: translateX(-50%);
|
|
1082
|
+
font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
1083
|
+
font-size: 12px;
|
|
1084
|
+
background: white;
|
|
1085
|
+
border: none;
|
|
1086
|
+
border-radius: 6px;
|
|
1087
|
+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
|
|
1088
|
+
color: #2E3438;
|
|
1089
|
+
}
|
|
1090
|
+
#${f$} ul {
|
|
1091
|
+
list-style: none;
|
|
1092
|
+
margin: 0;
|
|
1093
|
+
padding: 0;
|
|
1094
|
+
}
|
|
1095
|
+
#${f$} > ul {
|
|
1096
|
+
max-height: 300px;
|
|
1097
|
+
overflow-y: auto;
|
|
1098
|
+
padding: 4px 0;
|
|
1099
|
+
}
|
|
1100
|
+
#${f$} li {
|
|
1101
|
+
padding: 0 4px;
|
|
1102
|
+
margin: 0;
|
|
1103
|
+
}
|
|
1104
|
+
#${f$} li > :not(ul) {
|
|
1105
|
+
display: flex;
|
|
1106
|
+
padding: 8px;
|
|
1107
|
+
margin: 0;
|
|
1108
|
+
align-items: center;
|
|
1109
|
+
gap: 8px;
|
|
1110
|
+
border-radius: 4px;
|
|
1111
|
+
}
|
|
1112
|
+
#${f$} button {
|
|
1113
|
+
width: 100%;
|
|
1114
|
+
border: 0;
|
|
1115
|
+
background: transparent;
|
|
1116
|
+
color: inherit;
|
|
1117
|
+
text-align: left;
|
|
1118
|
+
font-family: inherit;
|
|
1119
|
+
font-size: inherit;
|
|
1120
|
+
}
|
|
1121
|
+
#${f$} button:focus-visible {
|
|
1122
|
+
outline-color: #029CFD;
|
|
1123
|
+
}
|
|
1124
|
+
#${f$} button:hover {
|
|
1125
|
+
background: rgba(2, 156, 253, 0.07);
|
|
1126
|
+
color: #029CFD;
|
|
1127
|
+
cursor: pointer;
|
|
1128
|
+
}
|
|
1129
|
+
#${f$} li code {
|
|
1130
|
+
white-space: nowrap;
|
|
1131
|
+
overflow: hidden;
|
|
1132
|
+
text-overflow: ellipsis;
|
|
1133
|
+
line-height: 16px;
|
|
1134
|
+
font-size: 11px;
|
|
1135
|
+
}
|
|
1136
|
+
#${f$} li svg {
|
|
1137
|
+
flex-shrink: 0;
|
|
1138
|
+
margin: 1px;
|
|
1139
|
+
color: #73828C;
|
|
1140
|
+
}
|
|
1141
|
+
#${f$} li > button:hover svg, #${f$} li > button:focus-visible svg {
|
|
1142
|
+
color: #029CFD;
|
|
1143
|
+
}
|
|
1144
|
+
#${f$} .element-list li svg {
|
|
1145
|
+
display: none;
|
|
1146
|
+
}
|
|
1147
|
+
#${f$} li.selectable svg, #${f$} li.selected svg {
|
|
1148
|
+
display: block;
|
|
1149
|
+
}
|
|
1150
|
+
#${f$} .menu-list {
|
|
1151
|
+
border-top: 1px solid rgba(38, 85, 115, 0.15);
|
|
1152
|
+
}
|
|
1153
|
+
#${f$} .menu-list > li:not(:last-child) {
|
|
1154
|
+
padding-bottom: 4px;
|
|
1155
|
+
margin-bottom: 4px;
|
|
1156
|
+
border-bottom: 1px solid rgba(38, 85, 115, 0.15);
|
|
1157
|
+
}
|
|
1158
|
+
#${f$} .menu-items, #${f$} .menu-items li {
|
|
1159
|
+
padding: 0;
|
|
1160
|
+
}
|
|
1161
|
+
#${f$} .menu-item {
|
|
1162
|
+
display: flex;
|
|
1163
|
+
}
|
|
1164
|
+
#${f$} .menu-item-content {
|
|
1165
|
+
display: flex;
|
|
1166
|
+
flex-direction: column;
|
|
1167
|
+
flex-grow: 1;
|
|
1168
|
+
}
|
|
1169
|
+
`]))}let r=u.get(),i=r?[r]:s.get();if(i.length&&(n.style.position=getComputedStyle(i[0].element).position===`fixed`?`fixed`:`absolute`,n.appendChild(XQ(`ul`,{class:`element-list`},i.map(e=>{let t=i.length>1&&!!e.menu?.some(t=>t.some(t=>!t.selectors||t.selectors.some(t=>e.selectors.includes(t)))),n=t?{class:`selectable`,onClick:()=>u.set(e),onMouseEnter:()=>l.set(e),onMouseLeave:()=>l.set(void 0)}:r?{class:`selected`,onClick:()=>u.set(void 0)}:{},a=t||r;return XQ(`li`,n,[XQ(a?`button`:`div`,a?{type:`button`}:{},[r?ZQ(`chevronLeft`):null,XQ(`code`,{},[e.element.outerHTML]),t?ZQ(`chevronRight`):null])])})))),u.get()||s.get().length===1){let t=u.get()||s.get()[0],r=t.menu?.filter(e=>e.some(e=>!e.selectors||e.selectors.some(e=>t.selectors.includes(e))));r?.length&&n.appendChild(XQ(`ul`,{class:`menu-list`},r.map(n=>XQ(`li`,{},[XQ(`ul`,{class:`menu-items`},n.map(({id:n,title:r,description:i,iconLeft:a,iconRight:o,clickEvent:s})=>{let c=s&&(()=>e.emit(s,n,d$(t)));return XQ(`li`,{},[XQ(c?`button`:`div`,c?{class:`menu-item`,type:`button`,onClick:c}:{class:`menu-item`},[a?ZQ(a):null,XQ(`div`,{class:`menu-item-content`},[XQ(i?`strong`:`span`,{},[r]),i&&XQ(`span`,{},[i])]),o?ZQ(o):null])])}))]))))}let o=a.get();o?(Object.assign(n.style,{display:`block`,left:`${n.style.position===`fixed`?o.x-window.scrollX:o.x}px`,top:`${n.style.position===`fixed`?o.y-window.scrollY:o.y}px`}),l$(n),requestAnimationFrame(()=>c$(n,o,{topOffset:15,centered:!0}))):(u$(n),Object.assign(n.style,{display:`none`}))};s.subscribe(g),u.subscribe(g);let _=e=>{let t=QQ(e);n.set(e=>{let n=t.id?e.filter(e=>e.id!==t.id):e;return t.selectors?.length?[...n,t]:n})},v=e=>{e&&n.set(t=>t.filter(t=>t.id!==e))},y=()=>{n.set([]),r.set(new Map),i.set([]),a.set(void 0),o.set(void 0),s.set([]),c.set([]),l.set(void 0),u.set(void 0)},b;t.body.addEventListener(`mousemove`,e=>{requestAnimationFrame(()=>o.set({x:e.pageX,y:e.pageY}))}),e.on(WK,_),e.on(GK,v),e.on(KK,y),e.on(qK,(e,r)=>{let i=`scrollIntoView-highlight`;clearTimeout(b),v(i);let a=t.querySelector(e);if(!a){console.warn(`Cannot scroll into view: ${e} not found`);return}a.scrollIntoView({behavior:`smooth`,block:`center`,...r});let o=`kf-${Math.random().toString(36).substring(2,15)}`;n.set(t=>[...t,{id:i,priority:1e3,selectors:[e],styles:{outline:`2px solid #1EA7FD`,outlineOffset:`-1px`,animation:`${o} 3s linear forwards`},keyframes:`@keyframes ${o} {
|
|
1170
|
+
0% { outline: 2px solid #1EA7FD; }
|
|
1171
|
+
20% { outline: 2px solid #1EA7FD00; }
|
|
1172
|
+
40% { outline: 2px solid #1EA7FD; }
|
|
1173
|
+
60% { outline: 2px solid #1EA7FD00; }
|
|
1174
|
+
80% { outline: 2px solid #1EA7FD; }
|
|
1175
|
+
100% { outline: 2px solid #1EA7FD00; }
|
|
1176
|
+
}`}]),b=setTimeout(()=>v(i),3500)}),e.on(qQ,({newPhase:e})=>{e===`loading`&&y()})});var{useEffect:h$}=__STORYBOOK_MODULE_PREVIEW_API__,{global:g$}=__STORYBOOK_MODULE_GLOBAL__,{global:_$}=__STORYBOOK_MODULE_GLOBAL__,{global:v$}=__STORYBOOK_MODULE_GLOBAL__;globalThis.FEATURES?.measure;var{useEffect:y$,useMemo:b$}=__STORYBOOK_MODULE_PREVIEW_API__,{global:x$}=__STORYBOOK_MODULE_GLOBAL__;globalThis.FEATURES?.outline;var{clearAllMocks:S$,fn:C$,isMockFunction:w$,resetAllMocks:T$,restoreAllMocks:E$,uninstrumentedUserEvent:D$,within:O$}=__STORYBOOK_MODULE_TEST__,k$=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,`-`).replace(/-+/g,`-`).replace(/^-+/,``).replace(/-+$/,``),A$=(e,t)=>{let n=k$(e);if(n===``)throw Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return n},j$=(e,t)=>`${A$(e,`kind`)}${t?`--${A$(t,`name`)}`:``}`,M$={"./src/components/bar-chart/bar-chart.stories.jsx":()=>e(()=>import(`./bar-chart.stories-D5i9vPgt.js`),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url),"./src/components/line-chart/line-chart.stories.jsx":()=>e(()=>import(`./line-chart.stories-8UAM62iU.js`),__vite__mapDeps([8,1,2,3,4,9,5,7]),import.meta.url),"./src/components/line-chart/line-chart.test-case.stories.jsx":()=>e(()=>import(`./line-chart.test-case.stories-BPzBXXrt.js`),__vite__mapDeps([10,1,2,3,4,9,5]),import.meta.url),"./src/components/pie-chart/pie-chart.stories.jsx":()=>e(()=>import(`./pie-chart.stories-qKjdYhwq.js`),__vite__mapDeps([11,2,3,6]),import.meta.url),"./src/components/scatter-chart/scatter-chart.stories.jsx":()=>e(()=>import(`./scatter-chart.stories-CzYwqOiR.js`),__vite__mapDeps([12,1,2,3,4,6]),import.meta.url)};async function N$(e){return await M$[e]()}var P$=c((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.iterator;function p(e){return typeof e!=`object`||!e?null:(e=f&&e[f]||e[`@@iterator`],typeof e==`function`?e:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`setState(...): takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function v(){}v.prototype=_.prototype;function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}var b=y.prototype=new v;b.constructor=y,h(b,_.prototype),b.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function T(e,n,r){var i,a={},o=null,s=null;if(n!=null)for(i in n.ref!==void 0&&(s=n.ref),n.key!==void 0&&(o=``+n.key),n)S.call(n,i)&&!w.hasOwnProperty(i)&&(a[i]=n[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)a[i]===void 0&&(a[i]=c[i]);return{$$typeof:t,type:e,key:o,ref:s,props:a,_owner:C.current}}function E(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function D(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function O(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var k=/\/+/g;function A(e,t){return typeof e==`object`&&e&&e.key!=null?O(``+e.key):t.toString(36)}function j(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0}}if(c)return c=e,o=o(c),e=a===``?`.`+A(c,0):a,x(o)?(i=``,e!=null&&(i=e.replace(k,`$&/`)+`/`),j(o,r,i,``,function(e){return e})):o!=null&&(D(o)&&(o=E(o,i+(!o.key||c&&c.key===o.key?``:(``+o.key).replace(k,`$&/`)+`/`)+e)),r.push(o)),1;if(c=0,a=a===``?`.`:a+`:`,x(e))for(var l=0;l<e.length;l++){s=e[l];var u=a+A(s,l);c+=j(s,r,i,u,o)}else if(u=p(e),typeof u==`function`)for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=a+A(s,l++),c+=j(s,r,i,u,o);else if(s===`object`)throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`);return c}function M(e,t,n){if(e==null)return e;var r=[],i=0;return j(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function N(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var P={current:null},ee={transition:null},te={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:ee,ReactCurrentOwner:C};function ne(){throw Error(`act(...) is not supported in production builds of React.`)}e.Children={map:M,forEach:function(e,t,n){M(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return M(e,function(){t++}),t},toArray:function(e){return M(e,function(e){return e})||[]},only:function(e){if(!D(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}},e.Component=_,e.Fragment=r,e.Profiler=a,e.PureComponent=y,e.StrictMode=i,e.Suspense=l,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=te,e.act=ne,e.cloneElement=function(e,n,r){if(e==null)throw Error(`React.cloneElement(...): The argument must be a React element, but you passed `+e+`.`);var i=h({},e.props),a=e.key,o=e.ref,s=e._owner;if(n!=null){if(n.ref!==void 0&&(o=n.ref,s=C.current),n.key!==void 0&&(a=``+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)S.call(n,l)&&!w.hasOwnProperty(l)&&(i[l]=n[l]===void 0&&c!==void 0?c[l]:n[l])}var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:t,type:e.type,key:a,ref:o,props:i,_owner:s}},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:o,_context:e},e.Consumer=e},e.createElement=T,e.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=D,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:N}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=ee.transition;ee.transition={};try{e()}finally{ee.transition=t}},e.unstable_act=ne,e.useCallback=function(e,t){return P.current.useCallback(e,t)},e.useContext=function(e){return P.current.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e){return P.current.useDeferredValue(e)},e.useEffect=function(e,t){return P.current.useEffect(e,t)},e.useId=function(){return P.current.useId()},e.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},e.useMemo=function(e,t){return P.current.useMemo(e,t)},e.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},e.useRef=function(e){return P.current.useRef(e)},e.useState=function(e){return P.current.useState(e)},e.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},e.useTransition=function(){return P.current.useTransition()},e.version=`18.3.1`})),F$=c(((e,t)=>{t.exports=P$()})),I$=d(F$(),1),{defaultDecorateStory:L$}=__STORYBOOK_MODULE_PREVIEW_API__,R$=(e,t)=>L$(t=>I$.createElement(e,t),t),z$=Object.create,B$=Object.defineProperty,V$=Object.getOwnPropertyDescriptor,H$=Object.getOwnPropertyNames,U$=Object.getPrototypeOf,W$=Object.prototype.hasOwnProperty,G$=(e,t)=>function(){return t||(0,e[H$(e)[0]])((t={exports:{}}).exports,t),t.exports},K$=(e,t)=>{for(var n in t)B$(e,n,{get:t[n],enumerable:!0})},q$=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of H$(t))!W$.call(e,i)&&i!==n&&B$(e,i,{get:()=>t[i],enumerable:!(r=V$(t,i))||r.enumerable});return e},J$=(e,t,n)=>(n=e==null?{}:z$(U$(e)),q$(t||!e||!e.__esModule?B$(n,`default`,{value:e,enumerable:!0}):n,e));K$({},{applyDecorators:()=>R$,beforeAll:()=>p1,decorators:()=>d1,mount:()=>u1,parameters:()=>f1,render:()=>t1,renderToCanvas:()=>l1});var{Tag:Y$}=__STORYBOOK_MODULE_PREVIEW_API__,{global:X$}=__STORYBOOK_MODULE_GLOBAL__,{configure:Z$}=__STORYBOOK_MODULE_TEST__;({...I$});function Q$(e){globalThis.IS_REACT_ACT_ENVIRONMENT=e}function $$(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var e1=async({disableAct:e=!1}={})=>e=>e(),t1=(e,t)=>{let{id:n,component:r}=t;if(!r)throw Error(`Unable to render story ${n} as the component annotation is missing from the default export`);return I$.createElement(r,{...e})},{global:n1}=__STORYBOOK_MODULE_GLOBAL__,{FRAMEWORK_OPTIONS:r1}=n1,i1=class extends I$.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidMount(){let{hasError:e}=this.state,{showMain:t}=this.props;e||t()}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:t}},a1=r1?.strictMode?I$.StrictMode:I$.Fragment,o1=[],s1=!1,c1=async()=>{if(s1||o1.length===0)return;s1=!0;let e=o1.shift();e&&await e(),s1=!1,c1()};async function l1({storyContext:t,unboundStoryFn:n,showMain:r,showException:i,forceRemount:a},o){let{renderElement:s,unmountElement:c}=await e(async()=>{let{renderElement:e,unmountElement:t}=await import(`./react-18-CaPDGmKz.js`).then(e=>e.t);return{renderElement:e,unmountElement:t}},__vite__mapDeps([13,4]),import.meta.url),l=n,u=t.parameters.__isPortableStory?I$.createElement(l,{...t}):I$.createElement(i1,{key:t.id,showMain:r,showException:i},I$.createElement(l,{...t})),d=a1?I$.createElement(a1,null,u):u;a&&c(o);let f=await e1({disableAct:t.viewMode===`docs`});return await new Promise(async(e,n)=>{o1.push(async()=>{try{await f(async()=>{await s(d,o,t?.parameters?.react?.rootOptions)}),e()}catch(e){n(e)}}),c1()}),async()=>{await f(()=>{c(o)})}}var u1=e=>async t=>(t!=null&&(e.originalStoryFn=()=>t),await e.renderToCanvas(),e.canvas),d1=[(e,t)=>{if(!t.parameters?.react?.rsc)return e();let[n,r]=`18.3.1`.split(`.`).map(e=>parseInt(e,10));if(!Number.isInteger(n)||!Number.isInteger(r))throw Error(`Unable to parse React version`);if(n<18||n===18&&r<3)throw Error(`React Server Components require React >= 18.3`);return I$.createElement(I$.Suspense,null,e())},(e,t)=>{if(t.tags?.includes(Y$.TEST_FN)&&!X$.FEATURES?.experimentalTestSyntax)throw Error(`To use the experimental test function, you must enable the experimentalTestSyntax feature flag. See https://storybook.js.org/docs/api/main-config/main-config-features#experimentaltestsyntax`);return e()}],f1={renderer:`react`},p1=async()=>{try{let e=await e1();Z$({unstable_advanceTimersWrapper:t=>e(t),asyncWrapper:async e=>{let t=$$();Q$(!1);try{let t=await e();return await new Promise(e=>{setTimeout(()=>{e()},0),m1()&&jest.advanceTimersByTime(0)}),t}finally{Q$(t)}},eventWrapper:t=>{let n;return e(()=>(n=t(),n)),n}})}catch{}};function m1(){return typeof jest<`u`&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,`clock`):!1}var h1=l({applyDecorators:()=>R$,beforeAll:()=>p1,decorators:()=>d1,mount:()=>u1,parameters:()=>f1,render:()=>t1,renderToCanvas:()=>l1}),g1=G$({"../../../node_modules/@base2/pretty-print-object/dist/index.js"(e){var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)},n=e&&e.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};Object.defineProperty(e,`__esModule`,{value:!0});var r=[];function i(e){var t=typeof e;return e!==null&&(t===`object`||t===`function`)}function a(e){return Object.prototype.toString.call(e)===`[object RegExp]`}function o(e){return Object.getOwnPropertySymbols(e).filter(function(t){return Object.prototype.propertyIsEnumerable.call(e,t)})}function s(e,c,l){l===void 0&&(l=``);var u=t(t({},{indent:` `,singleQuotes:!0}),c),d=u.inlineCharacterLimit===void 0?{newLine:`
|
|
1177
|
+
`,newLineOrSpace:`
|
|
1178
|
+
`,pad:l,indent:l+u.indent}:{newLine:`@@__PRETTY_PRINT_NEW_LINE__@@`,newLineOrSpace:`@@__PRETTY_PRINT_NEW_LINE_OR_SPACE__@@`,pad:`@@__PRETTY_PRINT_PAD__@@`,indent:`@@__PRETTY_PRINT_INDENT__@@`},f=function(e){if(u.inlineCharacterLimit===void 0)return e;var t=e.replace(new RegExp(d.newLine,`g`),``).replace(new RegExp(d.newLineOrSpace,`g`),` `).replace(RegExp(d.pad+`|`+d.indent,`g`),``);return t.length<=u.inlineCharacterLimit?t:e.replace(RegExp(d.newLine+`|`+d.newLineOrSpace,`g`),`
|
|
1179
|
+
`).replace(new RegExp(d.pad,`g`),l).replace(new RegExp(d.indent,`g`),l+u.indent)};if(r.indexOf(e)!==-1)return`"[Circular]"`;if(e==null||typeof e==`number`||typeof e==`boolean`||typeof e==`function`||typeof e==`symbol`||a(e))return String(e);if(e instanceof Date)return`new Date('`+e.toISOString()+`')`;if(Array.isArray(e)){if(e.length===0)return`[]`;r.push(e);var p=`[`+d.newLine+e.map(function(t,n){var r=e.length-1===n?d.newLine:`,`+d.newLineOrSpace,i=s(t,u,l+u.indent);return u.transform&&(i=u.transform(e,n,i)),d.indent+i+r}).join(``)+d.pad+`]`;return r.pop(),f(p)}if(i(e)){var m=n(Object.keys(e),o(e));if(u.filter&&(m=m.filter(function(t){return u.filter&&u.filter(e,t)})),m.length===0)return`{}`;r.push(e);var p=`{`+d.newLine+m.map(function(t,n){var r=m.length-1===n?d.newLine:`,`+d.newLineOrSpace,i=typeof t==`symbol`,a=!i&&/^[a-z$_][a-z$_0-9]*$/i.test(t.toString()),o=i||a?t:s(t,u),c=s(e[t],u,l+u.indent);return u.transform&&(c=u.transform(e,t,c)),d.indent+String(o)+`: `+c+r}).join(``)+d.pad+`}`;return r.pop(),f(p)}return e=String(e).replace(/[\r\n]/g,function(e){return e===`
|
|
1180
|
+
`?`\\n`:`\\r`}),u.singleQuotes?(e=e.replace(/\\?'/g,`\\'`),`'`+e+`'`):(e=e.replace(/"/g,`\\"`),`"`+e+`"`)}e.prettyPrint=s}}),_1=G$({"../../../node_modules/react-element-to-jsx-string/node_modules/react-is/cjs/react-is.production.min.js"(e){var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.server_context`),l=Symbol.for(`react.forward_ref`),u=Symbol.for(`react.suspense`),d=Symbol.for(`react.suspense_list`),f=Symbol.for(`react.memo`),p=Symbol.for(`react.lazy`),m=Symbol.for(`react.offscreen`),h=Symbol.for(`react.module.reference`);function g(e){if(typeof e==`object`&&e){var m=e.$$typeof;switch(m){case t:switch(e=e.type,e){case r:case a:case i:case u:case d:return e;default:switch(e&&=e.$$typeof,e){case c:case s:case l:case p:case f:case o:return e;default:return m}}case n:return m}}}e.ContextConsumer=s,e.ContextProvider=o,e.Element=t,e.ForwardRef=l,e.Fragment=r,e.Lazy=p,e.Memo=f,e.Portal=n,e.Profiler=a,e.StrictMode=i,e.Suspense=u,e.SuspenseList=d,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function(e){return g(e)===s},e.isContextProvider=function(e){return g(e)===o},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===t},e.isForwardRef=function(e){return g(e)===l},e.isFragment=function(e){return g(e)===r},e.isLazy=function(e){return g(e)===p},e.isMemo=function(e){return g(e)===f},e.isPortal=function(e){return g(e)===n},e.isProfiler=function(e){return g(e)===a},e.isStrictMode=function(e){return g(e)===i},e.isSuspense=function(e){return g(e)===u},e.isSuspenseList=function(e){return g(e)===d},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===r||e===a||e===i||e===u||e===d||e===m||typeof e==`object`&&!!e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===o||e.$$typeof===s||e.$$typeof===l||e.$$typeof===h||e.getModuleId!==void 0)},e.typeOf=g}}),v1=G$({"../../../node_modules/react-element-to-jsx-string/node_modules/react-is/index.js"(e,t){t.exports=_1()}}),y1=e=>e.$$typeof===Symbol.for(`react.memo`),b1=e=>e.$$typeof===Symbol.for(`react.forward_ref`);function x1(e){return Object.prototype.toString.call(e)===`[object Object]`}function S1(e){var t,n;return x1(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(x1(n)===!1||n.hasOwnProperty(`isPrototypeOf`)===!1)))}var C1=J$(g1()),w1=J$(v1()),T1=(function(e,t){return e===0?``:Array(e*t).fill(` `).join(``)});function E1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function D1(e){if(Array.isArray(e))return E1(e)}function O1(e,t,n){return(t=F1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k1(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function A1(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1181
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function M1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?j1(Object(n),!0).forEach(function(t){O1(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function N1(e){return D1(e)||k1(e)||L1(e)||A1()}function P1(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function F1(e){var t=P1(e,`string`);return typeof t==`symbol`?t:t+``}function I1(e){"@babel/helpers - typeof";return I1=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},I1(e)}function L1(e,t){if(e){if(typeof e==`string`)return E1(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E1(e,t):void 0}}function R1(e,t){if(e===null||I1(e)!==`object`||e instanceof Date||e instanceof RegExp)return e;if(I$.isValidElement(e)){var n=M1({},e);return delete n._owner,n}return t.add(e),Array.isArray(e)?e.map(function(e){return R1(e,t)}):Object.keys(e).sort().reduce(function(n,r){return r===`current`||t.has(e[r])?n[r]=`[Circular]`:n[r]=R1(e[r],t),n},{})}function z1(e){return R1(e,new WeakSet)}var B1=function(e){return{type:`string`,value:e}},V1=function(e){return{type:`number`,value:e}},H1=function(e,t,n,r){return{type:`ReactElement`,displayName:e,props:t,defaultProps:n,childrens:r}},U1=function(e,t){return{type:`ReactFragment`,key:e,childrens:t}},W1=!!I$.Fragment,G1=function(e){return!e.name||e.name===`_default`?`No Display Name`:e.name},K1=function(e){switch(!0){case!!e.displayName:return e.displayName;case e.$$typeof===w1.Memo:return K1(e.type);case e.$$typeof===w1.ForwardRef:return K1(e.render);default:return G1(e)}},q1=function(e){switch(!0){case typeof e.type==`string`:return e.type;case typeof e.type==`function`:return e.type.displayName?e.type.displayName:G1(e.type);case(0,w1.isForwardRef)(e):case(0,w1.isMemo)(e):return K1(e.type);case(0,w1.isContextConsumer)(e):return`${e.type._context.displayName||`Context`}.Consumer`;case(0,w1.isContextProvider)(e):return`${e.type._context.displayName||`Context`}.Provider`;case(0,w1.isLazy)(e):return`Lazy`;case(0,w1.isProfiler)(e):return`Profiler`;case(0,w1.isStrictMode)(e):return`StrictMode`;case(0,w1.isSuspense)(e):return`Suspense`;default:return`UnknownElementType`}},J1=function(e,t){return t!==`children`},Y1=function(e){return e!==!0&&e!==!1&&e!==null&&e!==``},X1=function(e,t){var n={};return Object.keys(e).filter(function(n){return t(e[n],n)}).forEach(function(t){return n[t]=e[t]}),n},Z1=function(e,t){var n=t.displayName,r=n===void 0?q1:n;if(typeof e==`string`)return B1(e);if(typeof e==`number`)return V1(e);if(!I$.isValidElement(e))throw Error(`react-element-to-jsx-string: Expected a React.Element, got \`${I1(e)}\``);var i=r(e),a=X1(e.props,J1);e.ref!==null&&(a.ref=e.ref);var o=e.key;typeof o==`string`&&o.search(/^\./)&&(a.key=o);var s=X1(e.type.defaultProps||{},J1),c=I$.Children.toArray(e.props.children).filter(Y1).map(function(e){return Z1(e,t)});return W1&&e.type===I$.Fragment?U1(o,c):H1(i,a,s,c)};function Q1(){}var $1=function(e){return e.toString().split(`
|
|
1182
|
+
`).map(function(e){return e.trim()}).join(``)},e0=(function(e,t){var n=t.functionValue,r=n===void 0?$1:n,i=t.showFunctions;return r(!i&&r===$1?Q1:e)}),t0=(function(e,t,n,r){var i=z1(e),a=(0,C1.prettyPrint)(i,{transform:function(e,t,i){var a=e[t];return a&&(0,I$.isValidElement)(a)?T0(Z1(a,r),!0,n,r):typeof a==`function`?e0(a,r):i}});return t?a.replace(/\s+/g,` `).replace(/{ /g,`{`).replace(/ }/g,`}`).replace(/\[ /g,`[`).replace(/ ]/g,`]`):a.replace(/\t/g,T1(1,r.tabStop)).replace(/\n([^$])/g,`
|
|
1183
|
+
${T1(n+1,r.tabStop)}\$1`)}),n0=function(e){return e.replace(/"/g,`"`)},r0=function(e,t,n,r){if(typeof e==`number`)return`{${String(e)}}`;if(typeof e==`string`)return`"${n0(e)}"`;if(I1(e)===`symbol`){var i=e.valueOf().toString().replace(/Symbol\((.*)\)/,`$1`);return i?`{Symbol('${i}')}`:`{Symbol()}`}return typeof e==`function`?`{${e0(e,r)}}`:(0,I$.isValidElement)(e)?`{${T0(Z1(e,r),!0,n,r)}}`:e instanceof Date?isNaN(e.valueOf())?`{new Date(NaN)}`:`{new Date("${e.toISOString()}")}`:S1(e)||Array.isArray(e)?`{${t0(e,t,n,r)}}`:`{${String(e)}}`},i0=(function(e,t,n,r,i,a,o,s){if(!t&&!r)throw Error(`The prop "${e}" has no value and no default: could not be formatted`);var c=t?n:i,l=s.useBooleanShorthandSyntax,u=s.tabStop,d=r0(c,a,o,s),f=` `,p=`
|
|
1184
|
+
${T1(o+1,u)}`,m=d.includes(`
|
|
1185
|
+
`);return l&&d===`{false}`&&!r?(f=``,p=``):l&&d===`{true}`?(f+=`${e}`,p+=`${e}`):(f+=`${e}=${d}`,p+=`${e}=${d}`),{attributeFormattedInline:f,attributeFormattedMultiline:p,isMultilineAttribute:m}}),a0=(function(e,t){var n=e.slice(0,e.length>0?e.length-1:0),r=e[e.length-1];return r&&(t.type===`string`||t.type===`number`)&&(r.type===`string`||r.type===`number`)?n.push(B1(String(r.value)+String(t.value))):(r&&n.push(r),n.push(t)),n}),o0=function(e){return[`key`,`ref`].includes(e)},s0=(function(e){return function(t){var n=t.includes(`key`),r=t.includes(`ref`),i=t.filter(function(e){return!o0(e)}),a=N1(e?i.sort():i);return r&&a.unshift(`ref`),n&&a.unshift(`key`),a}});function c0(e,t){return Array.isArray(t)?function(e){return t.indexOf(e)===-1}:function(n){return t(e[n],n)}}var l0=function(e,t,n,r,i){var a=i.tabStop;return e.type===`string`?t.split(`
|
|
1186
|
+
`).map(function(e,t){return t===0?e:`${T1(r,a)}${e}`}).join(`
|
|
1187
|
+
`):t},u0=function(e,t,n){return function(r){return l0(r,T0(r,e,t,n),e,t,n)}},d0=function(e,t){return function(n){var r=Object.keys(e).includes(n);return!r||r&&e[n]!==t[n]}},f0=function(e,t,n,r,i){return i?T1(n,r).length+t.length>i:e.length>1},p0=function(e,t,n,r,i,a,o){return(f0(e,t,i,a,o)||n)&&!r},m0=(function(e,t,n,r){var i=e.type,a=e.displayName,o=a===void 0?``:a,s=e.childrens,c=e.props,l=c===void 0?{}:c,u=e.defaultProps,d=u===void 0?{}:u;if(i!==`ReactElement`)throw Error(`The "formatReactElementNode" function could only format node of type "ReactElement". Given: ${i}`);var f=r.filterProps,p=r.maxInlineAttributesLineLength,m=r.showDefaultProps,h=r.sortProps,g=r.tabStop,_=`<${o}`,v=_,y=_,b=!1,x=[],S=c0(l,f);Object.keys(l).filter(S).filter(d0(d,l)).forEach(function(e){return x.push(e)}),Object.keys(d).filter(S).filter(function(){return m}).filter(function(e){return!x.includes(e)}).forEach(function(e){return x.push(e)});var C=s0(h)(x);if(C.forEach(function(e){var i=i0(e,Object.keys(l).includes(e),l[e],Object.keys(d).includes(e),d[e],t,n,r),a=i.attributeFormattedInline,o=i.attributeFormattedMultiline;i.isMultilineAttribute&&(b=!0),v+=a,y+=o}),y+=`
|
|
1188
|
+
${T1(n,g)}`,_=p0(C,v,b,t,n,g,p)?y:v,s&&s.length>0){var w=n+1;_+=`>`,t||(_+=`
|
|
1189
|
+
`,_+=T1(w,g)),_+=s.reduce(a0,[]).map(u0(t,w,r)).join(t?``:`
|
|
1190
|
+
${T1(w,g)}`),t||(_+=`
|
|
1191
|
+
`,_+=T1(w-1,g)),_+=`</${o}>`}else f0(C,v,n,g,p)||(_+=` `),_+=`/>`;return _}),h0=``,g0=`React.Fragment`,_0=function(e,t,n){var r={};return t&&(r={key:t}),{type:`ReactElement`,displayName:e,props:r,defaultProps:{},childrens:n}},v0=function(e){return!!e.key},y0=function(e){return e.childrens.length===0},b0=(function(e,t,n,r){var i=e.type,a=e.key,o=e.childrens;if(i!==`ReactFragment`)throw Error(`The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: ${i}`);var s=r.useFragmentShortSyntax,c;return c=s?y0(e)||v0(e)?g0:h0:g0,m0(_0(c,a,o),t,n,r)}),x0=[`<`,`>`,`{`,`}`],S0=function(e){return x0.some(function(t){return e.includes(t)})},C0=function(e){return S0(e)?`{\`${e}\`}`:e},w0=function(e){var t=e;return t.endsWith(` `)&&(t=t.replace(/^(.*?)(\s+)$/,`$1{'$2'}`)),t.startsWith(` `)&&(t=t.replace(/^(\s+)(.*)$/,`{'$1'}$2`)),t},T0=(function(e,t,n,r){if(e.type===`number`)return String(e.value);if(e.type===`string`)return e.value?`${w0(C0(String(e.value)))}`:``;if(e.type===`ReactElement`)return m0(e,t,n,r);if(e.type===`ReactFragment`)return b0(e,t,n,r);throw TypeError(`Unknow format type "${e.type}"`)}),E0=(function(e,t){return T0(e,!1,0,t)}),D0=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.filterProps,r=n===void 0?[]:n,i=t.showDefaultProps,a=i===void 0?!0:i,o=t.showFunctions,s=o===void 0?!1:o,c=t.functionValue,l=t.tabStop,u=l===void 0?2:l,d=t.useBooleanShorthandSyntax,f=d===void 0?!0:d,p=t.useFragmentShortSyntax,m=p===void 0?!0:p,h=t.sortProps,g=h===void 0?!0:h,_=t.maxInlineAttributesLineLength,v=t.displayName;if(!e)throw Error(`react-element-to-jsx-string: Expected a ReactElement`);var y={filterProps:r,showDefaultProps:a,showFunctions:s,functionValue:c,tabStop:u,useBooleanShorthandSyntax:f,useFragmentShortSyntax:m,sortProps:g,maxInlineAttributesLineLength:_,displayName:v};return E0(Z1(e,y),y)},O0=G$({"../../../node_modules/estraverse/estraverse.js"(e){(function e(t){var n,r,i,a,o,s;function c(e){var t={},n,r;for(n in e)e.hasOwnProperty(n)&&(r=e[n],typeof r==`object`&&r?t[n]=c(r):t[n]=r);return t}function l(e,t){var n,r,i,a;for(r=e.length,i=0;r;)n=r>>>1,a=i+n,t(e[a])?r=n:(i=a+1,r-=n+1);return i}n={AssignmentExpression:`AssignmentExpression`,AssignmentPattern:`AssignmentPattern`,ArrayExpression:`ArrayExpression`,ArrayPattern:`ArrayPattern`,ArrowFunctionExpression:`ArrowFunctionExpression`,AwaitExpression:`AwaitExpression`,BlockStatement:`BlockStatement`,BinaryExpression:`BinaryExpression`,BreakStatement:`BreakStatement`,CallExpression:`CallExpression`,CatchClause:`CatchClause`,ChainExpression:`ChainExpression`,ClassBody:`ClassBody`,ClassDeclaration:`ClassDeclaration`,ClassExpression:`ClassExpression`,ComprehensionBlock:`ComprehensionBlock`,ComprehensionExpression:`ComprehensionExpression`,ConditionalExpression:`ConditionalExpression`,ContinueStatement:`ContinueStatement`,DebuggerStatement:`DebuggerStatement`,DirectiveStatement:`DirectiveStatement`,DoWhileStatement:`DoWhileStatement`,EmptyStatement:`EmptyStatement`,ExportAllDeclaration:`ExportAllDeclaration`,ExportDefaultDeclaration:`ExportDefaultDeclaration`,ExportNamedDeclaration:`ExportNamedDeclaration`,ExportSpecifier:`ExportSpecifier`,ExpressionStatement:`ExpressionStatement`,ForStatement:`ForStatement`,ForInStatement:`ForInStatement`,ForOfStatement:`ForOfStatement`,FunctionDeclaration:`FunctionDeclaration`,FunctionExpression:`FunctionExpression`,GeneratorExpression:`GeneratorExpression`,Identifier:`Identifier`,IfStatement:`IfStatement`,ImportExpression:`ImportExpression`,ImportDeclaration:`ImportDeclaration`,ImportDefaultSpecifier:`ImportDefaultSpecifier`,ImportNamespaceSpecifier:`ImportNamespaceSpecifier`,ImportSpecifier:`ImportSpecifier`,Literal:`Literal`,LabeledStatement:`LabeledStatement`,LogicalExpression:`LogicalExpression`,MemberExpression:`MemberExpression`,MetaProperty:`MetaProperty`,MethodDefinition:`MethodDefinition`,ModuleSpecifier:`ModuleSpecifier`,NewExpression:`NewExpression`,ObjectExpression:`ObjectExpression`,ObjectPattern:`ObjectPattern`,PrivateIdentifier:`PrivateIdentifier`,Program:`Program`,Property:`Property`,PropertyDefinition:`PropertyDefinition`,RestElement:`RestElement`,ReturnStatement:`ReturnStatement`,SequenceExpression:`SequenceExpression`,SpreadElement:`SpreadElement`,Super:`Super`,SwitchStatement:`SwitchStatement`,SwitchCase:`SwitchCase`,TaggedTemplateExpression:`TaggedTemplateExpression`,TemplateElement:`TemplateElement`,TemplateLiteral:`TemplateLiteral`,ThisExpression:`ThisExpression`,ThrowStatement:`ThrowStatement`,TryStatement:`TryStatement`,UnaryExpression:`UnaryExpression`,UpdateExpression:`UpdateExpression`,VariableDeclaration:`VariableDeclaration`,VariableDeclarator:`VariableDeclarator`,WhileStatement:`WhileStatement`,WithStatement:`WithStatement`,YieldExpression:`YieldExpression`},i={AssignmentExpression:[`left`,`right`],AssignmentPattern:[`left`,`right`],ArrayExpression:[`elements`],ArrayPattern:[`elements`],ArrowFunctionExpression:[`params`,`body`],AwaitExpression:[`argument`],BlockStatement:[`body`],BinaryExpression:[`left`,`right`],BreakStatement:[`label`],CallExpression:[`callee`,`arguments`],CatchClause:[`param`,`body`],ChainExpression:[`expression`],ClassBody:[`body`],ClassDeclaration:[`id`,`superClass`,`body`],ClassExpression:[`id`,`superClass`,`body`],ComprehensionBlock:[`left`,`right`],ComprehensionExpression:[`blocks`,`filter`,`body`],ConditionalExpression:[`test`,`consequent`,`alternate`],ContinueStatement:[`label`],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:[`body`,`test`],EmptyStatement:[],ExportAllDeclaration:[`source`],ExportDefaultDeclaration:[`declaration`],ExportNamedDeclaration:[`declaration`,`specifiers`,`source`],ExportSpecifier:[`exported`,`local`],ExpressionStatement:[`expression`],ForStatement:[`init`,`test`,`update`,`body`],ForInStatement:[`left`,`right`,`body`],ForOfStatement:[`left`,`right`,`body`],FunctionDeclaration:[`id`,`params`,`body`],FunctionExpression:[`id`,`params`,`body`],GeneratorExpression:[`blocks`,`filter`,`body`],Identifier:[],IfStatement:[`test`,`consequent`,`alternate`],ImportExpression:[`source`],ImportDeclaration:[`specifiers`,`source`],ImportDefaultSpecifier:[`local`],ImportNamespaceSpecifier:[`local`],ImportSpecifier:[`imported`,`local`],Literal:[],LabeledStatement:[`label`,`body`],LogicalExpression:[`left`,`right`],MemberExpression:[`object`,`property`],MetaProperty:[`meta`,`property`],MethodDefinition:[`key`,`value`],ModuleSpecifier:[],NewExpression:[`callee`,`arguments`],ObjectExpression:[`properties`],ObjectPattern:[`properties`],PrivateIdentifier:[],Program:[`body`],Property:[`key`,`value`],PropertyDefinition:[`key`,`value`],RestElement:[`argument`],ReturnStatement:[`argument`],SequenceExpression:[`expressions`],SpreadElement:[`argument`],Super:[],SwitchStatement:[`discriminant`,`cases`],SwitchCase:[`test`,`consequent`],TaggedTemplateExpression:[`tag`,`quasi`],TemplateElement:[],TemplateLiteral:[`quasis`,`expressions`],ThisExpression:[],ThrowStatement:[`argument`],TryStatement:[`block`,`handler`,`finalizer`],UnaryExpression:[`argument`],UpdateExpression:[`argument`],VariableDeclaration:[`declarations`],VariableDeclarator:[`id`,`init`],WhileStatement:[`test`,`body`],WithStatement:[`object`,`body`],YieldExpression:[`argument`]},a={},o={},s={},r={Break:a,Skip:o,Remove:s};function u(e,t){this.parent=e,this.key=t}u.prototype.replace=function(e){this.parent[this.key]=e},u.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function d(e,t,n,r){this.node=e,this.path=t,this.wrap=n,this.ref=r}function f(){}f.prototype.path=function(){var e,t,n,r,i,a;function o(e,t){if(Array.isArray(t))for(n=0,r=t.length;n<r;++n)e.push(t[n]);else e.push(t)}if(!this.__current.path)return null;for(i=[],e=2,t=this.__leavelist.length;e<t;++e)a=this.__leavelist[e],o(i,a.path);return o(i,this.__current.path),i},f.prototype.type=function(){return this.current().type||this.__current.wrap},f.prototype.parents=function(){var e,t,n;for(n=[],e=1,t=this.__leavelist.length;e<t;++e)n.push(this.__leavelist[e].node);return n},f.prototype.current=function(){return this.__current.node},f.prototype.__execute=function(e,t){var n,r;return r=void 0,n=this.__current,this.__current=t,this.__state=null,e&&(r=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=n,r},f.prototype.notify=function(e){this.__state=e},f.prototype.skip=function(){this.notify(o)},f.prototype.break=function(){this.notify(a)},f.prototype.remove=function(){this.notify(s)},f.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,t.fallback===`iteration`?this.__fallback=Object.keys:typeof t.fallback==`function`&&(this.__fallback=t.fallback),this.__keys=i,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))};function p(e){return e==null?!1:typeof e==`object`&&typeof e.type==`string`}function m(e,t){return(e===n.ObjectExpression||e===n.ObjectPattern)&&t===`properties`}function h(e,t){for(var n=e.length-1;n>=0;--n)if(e[n].node===t)return!0;return!1}f.prototype.traverse=function(e,t){var n,r,i,s,c,l,u,f,g,_,v,y;for(this.__initialize(e,t),y={},n=this.__worklist,r=this.__leavelist,n.push(new d(e,null,null,null)),r.push(new d(null,null,null,null));n.length;){if(i=n.pop(),i===y){if(i=r.pop(),l=this.__execute(t.leave,i),this.__state===a||l===a)return;continue}if(i.node){if(l=this.__execute(t.enter,i),this.__state===a||l===a)return;if(n.push(y),r.push(i),this.__state===o||l===o)continue;if(s=i.node,c=s.type||i.wrap,_=this.__keys[c],!_)if(this.__fallback)_=this.__fallback(s);else throw Error(`Unknown node type `+c+`.`);for(f=_.length;--f>=0;)if(u=_[f],v=s[u],v){if(Array.isArray(v)){for(g=v.length;--g>=0;)if(v[g]&&!h(r,v[g])){if(m(c,_[f]))i=new d(v[g],[u,g],`Property`,null);else if(p(v[g]))i=new d(v[g],[u,g],null,null);else continue;n.push(i)}}else if(p(v)){if(h(r,v))continue;n.push(new d(v,u,null,null))}}}}},f.prototype.replace=function(e,t){var n,r,i,c,l,f,h,g,_,v,y,b,x;function S(e){var t,r,i,a;if(e.ref.remove()){for(r=e.ref.key,a=e.ref.parent,t=n.length;t--;)if(i=n[t],i.ref&&i.ref.parent===a){if(i.ref.key<r)break;--i.ref.key}}}for(this.__initialize(e,t),y={},n=this.__worklist,r=this.__leavelist,b={root:e},f=new d(e,null,null,new u(b,`root`)),n.push(f),r.push(f);n.length;){if(f=n.pop(),f===y){if(f=r.pop(),l=this.__execute(t.leave,f),l!==void 0&&l!==a&&l!==o&&l!==s&&f.ref.replace(l),(this.__state===s||l===s)&&S(f),this.__state===a||l===a)return b.root;continue}if(l=this.__execute(t.enter,f),l!==void 0&&l!==a&&l!==o&&l!==s&&(f.ref.replace(l),f.node=l),(this.__state===s||l===s)&&(S(f),f.node=null),this.__state===a||l===a)return b.root;if(i=f.node,i&&(n.push(y),r.push(f),!(this.__state===o||l===o))){if(c=i.type||f.wrap,_=this.__keys[c],!_)if(this.__fallback)_=this.__fallback(i);else throw Error(`Unknown node type `+c+`.`);for(h=_.length;--h>=0;)if(x=_[h],v=i[x],v)if(Array.isArray(v)){for(g=v.length;--g>=0;)if(v[g]){if(m(c,_[h]))f=new d(v[g],[x,g],`Property`,new u(v,g));else if(p(v[g]))f=new d(v[g],[x,g],null,new u(v,g));else continue;n.push(f)}}else p(v)&&n.push(new d(v,x,null,new u(i,x)))}}return b.root};function g(e,t){return new f().traverse(e,t)}function _(e,t){return new f().replace(e,t)}function v(e,t){var n;return n=l(t,function(t){return t.range[0]>e.range[0]}),e.extendedRange=[e.range[0],e.range[1]],n!==t.length&&(e.extendedRange[1]=t[n].range[0]),--n,n>=0&&(e.extendedRange[0]=t[n].range[1]),e}function y(e,t,n){var i=[],a,o,s,l;if(!e.range)throw Error(`attachComments needs range information`);if(!n.length){if(t.length){for(s=0,o=t.length;s<o;s+=1)a=c(t[s]),a.extendedRange=[0,e.range[0]],i.push(a);e.leadingComments=i}return e}for(s=0,o=t.length;s<o;s+=1)i.push(v(c(t[s]),n));return l=0,g(e,{enter:function(e){for(var t;l<i.length&&(t=i[l],!(t.extendedRange[1]>e.range[0]));)t.extendedRange[1]===e.range[0]?(e.leadingComments||=[],e.leadingComments.push(t),i.splice(l,1)):l+=1;if(l===i.length)return r.Break;if(i[l].extendedRange[0]>e.range[1])return r.Skip}}),l=0,g(e,{leave:function(e){for(var t;l<i.length&&(t=i[l],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||=[],e.trailingComments.push(t),i.splice(l,1)):l+=1;if(l===i.length)return r.Break;if(i[l].extendedRange[0]>e.range[1])return r.Skip}}),e}return t.Syntax=n,t.traverse=g,t.replace=_,t.attachComments=y,t.VisitorKeys=i,t.VisitorOption=r,t.Controller=f,t.cloneEnvironment=function(){return e({})},t})(e)}}),k0=G$({"../../../node_modules/esutils/lib/ast.js"(e,t){(function(){function e(e){if(e==null)return!1;switch(e.type){case`ArrayExpression`:case`AssignmentExpression`:case`BinaryExpression`:case`CallExpression`:case`ConditionalExpression`:case`FunctionExpression`:case`Identifier`:case`Literal`:case`LogicalExpression`:case`MemberExpression`:case`NewExpression`:case`ObjectExpression`:case`SequenceExpression`:case`ThisExpression`:case`UnaryExpression`:case`UpdateExpression`:return!0}return!1}function n(e){if(e==null)return!1;switch(e.type){case`DoWhileStatement`:case`ForInStatement`:case`ForStatement`:case`WhileStatement`:return!0}return!1}function r(e){if(e==null)return!1;switch(e.type){case`BlockStatement`:case`BreakStatement`:case`ContinueStatement`:case`DebuggerStatement`:case`DoWhileStatement`:case`EmptyStatement`:case`ExpressionStatement`:case`ForInStatement`:case`ForStatement`:case`IfStatement`:case`LabeledStatement`:case`ReturnStatement`:case`SwitchStatement`:case`ThrowStatement`:case`TryStatement`:case`VariableDeclaration`:case`WhileStatement`:case`WithStatement`:return!0}return!1}function i(e){return r(e)||e!=null&&e.type===`FunctionDeclaration`}function a(e){switch(e.type){case`IfStatement`:return e.alternate==null?e.consequent:e.alternate;case`LabeledStatement`:case`ForStatement`:case`ForInStatement`:case`WhileStatement`:case`WithStatement`:return e.body}return null}function o(e){var t;if(e.type!==`IfStatement`||e.alternate==null)return!1;t=e.consequent;do{if(t.type===`IfStatement`&&t.alternate==null)return!0;t=a(t)}while(t);return!1}t.exports={isExpression:e,isStatement:r,isIterationStatement:n,isSourceElement:i,isProblematicIfStatement:o,trailingStatement:a}})()}}),A0=G$({"../../../node_modules/esutils/lib/code.js"(e,t){(function(){var e,n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},r,i,a,o;e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function s(e){return 48<=e&&e<=57}function c(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70}function l(e){return e>=48&&e<=55}r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function u(e){return e===32||e===9||e===11||e===12||e===160||e>=5760&&r.indexOf(e)>=0}function d(e){return e===10||e===13||e===8232||e===8233}function f(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(i=Array(128),o=0;o<128;++o)i[o]=o>=97&&o<=122||o>=65&&o<=90||o===36||o===95;for(a=Array(128),o=0;o<128;++o)a[o]=o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===36||o===95;function p(e){return e<128?i[e]:n.NonAsciiIdentifierStart.test(f(e))}function m(e){return e<128?a[e]:n.NonAsciiIdentifierPart.test(f(e))}function h(t){return t<128?i[t]:e.NonAsciiIdentifierStart.test(f(t))}function g(t){return t<128?a[t]:e.NonAsciiIdentifierPart.test(f(t))}t.exports={isDecimalDigit:s,isHexDigit:c,isOctalDigit:l,isWhiteSpace:u,isLineTerminator:d,isIdentifierStartES5:p,isIdentifierPartES5:m,isIdentifierStartES6:h,isIdentifierPartES6:g}})()}}),j0=G$({"../../../node_modules/esutils/lib/keyword.js"(e,t){(function(){var e=A0();function n(e){switch(e){case`implements`:case`interface`:case`package`:case`private`:case`protected`:case`public`:case`static`:case`let`:return!0;default:return!1}}function r(e,t){return!t&&e===`yield`?!1:i(e,t)}function i(e,t){if(t&&n(e))return!0;switch(e.length){case 2:return e===`if`||e===`in`||e===`do`;case 3:return e===`var`||e===`for`||e===`new`||e===`try`;case 4:return e===`this`||e===`else`||e===`case`||e===`void`||e===`with`||e===`enum`;case 5:return e===`while`||e===`break`||e===`catch`||e===`throw`||e===`const`||e===`yield`||e===`class`||e===`super`;case 6:return e===`return`||e===`typeof`||e===`delete`||e===`switch`||e===`export`||e===`import`;case 7:return e===`default`||e===`finally`||e===`extends`;case 8:return e===`function`||e===`continue`||e===`debugger`;case 10:return e===`instanceof`;default:return!1}}function a(e,t){return e===`null`||e===`true`||e===`false`||r(e,t)}function o(e,t){return e===`null`||e===`true`||e===`false`||i(e,t)}function s(e){return e===`eval`||e===`arguments`}function c(t){var n,r,i;if(t.length===0||(i=t.charCodeAt(0),!e.isIdentifierStartES5(i)))return!1;for(n=1,r=t.length;n<r;++n)if(i=t.charCodeAt(n),!e.isIdentifierPartES5(i))return!1;return!0}function l(e,t){return(e-55296)*1024+(t-56320)+65536}function u(t){var n,r,i,a,o;if(t.length===0)return!1;for(o=e.isIdentifierStartES6,n=0,r=t.length;n<r;++n){if(i=t.charCodeAt(n),55296<=i&&i<=56319){if(++n,n>=r||(a=t.charCodeAt(n),!(56320<=a&&a<=57343)))return!1;i=l(i,a)}if(!o(i))return!1;o=e.isIdentifierPartES6}return!0}function d(e,t){return c(e)&&!a(e,t)}function f(e,t){return u(e)&&!o(e,t)}t.exports={isKeywordES5:r,isKeywordES6:i,isReservedWordES5:a,isReservedWordES6:o,isRestrictedWord:s,isIdentifierNameES5:c,isIdentifierNameES6:u,isIdentifierES5:d,isIdentifierES6:f}})()}}),M0=G$({"../../../node_modules/esutils/lib/utils.js"(e){(function(){e.ast=k0(),e.code=A0(),e.keyword=j0()})()}}),N0=G$({"../../../node_modules/escodegen/node_modules/source-map/lib/base64.js"(e){var t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``);e.encode=function(e){if(0<=e&&e<t.length)return t[e];throw TypeError(`Must be between 0 and 63: `+e)},e.decode=function(e){var t=65,n=90,r=97,i=122,a=48;return t<=e&&e<=n?e-t:r<=e&&e<=i?e-r+26:a<=e&&e<=57?e-a+52:e==43?62:e==47?63:-1}}}),P0=G$({"../../../node_modules/escodegen/node_modules/source-map/lib/base64-vlq.js"(e){var t=N0(),n=5,r=1<<n,i=r-1,a=r;function o(e){return e<0?(-e<<1)+1:(e<<1)+0}function s(e){var t=(e&1)==1,n=e>>1;return t?-n:n}e.encode=function(e){var r=``,s,c=o(e);do s=c&i,c>>>=n,c>0&&(s|=a),r+=t.encode(s);while(c>0);return r},e.decode=function(e,r,o){var c=e.length,l=0,u=0,d,f;do{if(r>=c)throw Error(`Expected more digits in base 64 VLQ value.`);if(f=t.decode(e.charCodeAt(r++)),f===-1)throw Error(`Invalid base64 digit: `+e.charAt(r-1));d=!!(f&a),f&=i,l+=f<<u,u+=n}while(d);o.value=s(l),o.rest=r}}}),F0=G$({"../../../node_modules/escodegen/node_modules/source-map/lib/util.js"(e){function t(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw Error(`"`+t+`" is a required argument.`)}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}e.urlParse=i;function a(e){var t=``;return e.scheme&&(t+=e.scheme+`:`),t+=`//`,e.auth&&(t+=e.auth+`@`),e.host&&(t+=e.host),e.port&&(t+=`:`+e.port),e.path&&(t+=e.path),t}e.urlGenerate=a;function o(t){var n=t,r=i(t);if(r){if(!r.path)return t;n=r.path}for(var o=e.isAbsolute(n),s=n.split(/\/+/),c,l=0,u=s.length-1;u>=0;u--)c=s[u],c===`.`?s.splice(u,1):c===`..`?l++:l>0&&(c===``?(s.splice(u+1,l),l=0):(s.splice(u,2),l--));return n=s.join(`/`),n===``&&(n=o?`/`:`.`),r?(r.path=n,a(r)):n}e.normalize=o;function s(e,t){e===``&&(e=`.`),t===``&&(t=`.`);var n=i(t),s=i(e);if(s&&(e=s.path||`/`),n&&!n.scheme)return s&&(n.scheme=s.scheme),a(n);if(n||t.match(r))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var c=t.charAt(0)===`/`?t:o(e.replace(/\/+$/,``)+`/`+t);return s?(s.path=c,a(s)):c}e.join=s,e.isAbsolute=function(e){return e.charAt(0)===`/`||n.test(e)};function c(e,t){e===``&&(e=`.`),e=e.replace(/\/$/,``);for(var n=0;t.indexOf(e+`/`)!==0;){var r=e.lastIndexOf(`/`);if(r<0||(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/)))return t;++n}return Array(n+1).join(`../`)+t.substr(e.length+1)}e.relative=c;var l=(function(){return!(`__proto__`in Object.create(null))})();function u(e){return e}function d(e){return p(e)?`$`+e:e}e.toSetString=l?u:d;function f(e){return p(e)?e.slice(1):e}e.fromSetString=l?u:f;function p(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var n=t-10;n>=0;n--)if(e.charCodeAt(n)!==36)return!1;return!0}function m(e,t,n){var r=g(e.source,t.source);return r!==0||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:g(e.name,t.name)}e.compareByOriginalPositions=m;function h(e,t,n){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||n)||(r=g(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:g(e.name,t.name)}e.compareByGeneratedPositionsDeflated=h;function g(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function _(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=g(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:g(e.name,t.name)}e.compareByGeneratedPositionsInflated=_;function v(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,``))}e.parseSourceMapInput=v;function y(e,t,n){if(t||=``,e&&(e[e.length-1]!==`/`&&t[0]!==`/`&&(e+=`/`),t=e+t),n){var r=i(n);if(!r)throw Error(`sourceMapURL could not be parsed`);if(r.path){var c=r.path.lastIndexOf(`/`);c>=0&&(r.path=r.path.substring(0,c+1))}t=s(a(r),t)}return o(t)}e.computeSourceURL=y}}),I0=G$({"../../../node_modules/escodegen/node_modules/source-map/lib/array-set.js"(e){var t=F0(),n=Object.prototype.hasOwnProperty,r=typeof Map<`u`;function i(){this._array=[],this._set=r?new Map:Object.create(null)}i.fromArray=function(e,t){for(var n=new i,r=0,a=e.length;r<a;r++)n.add(e[r],t);return n},i.prototype.size=function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},i.prototype.add=function(e,i){var a=r?e:t.toSetString(e),o=r?this.has(e):n.call(this._set,a),s=this._array.length;(!o||i)&&this._array.push(e),o||(r?this._set.set(e,s):this._set[a]=s)},i.prototype.has=function(e){if(r)return this._set.has(e);var i=t.toSetString(e);return n.call(this._set,i)},i.prototype.indexOf=function(e){if(r){var i=this._set.get(e);if(i>=0)return i}else{var a=t.toSetString(e);if(n.call(this._set,a))return this._set[a]}throw Error(`"`+e+`" is not in the set.`)},i.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw Error(`No element indexed by `+e)},i.prototype.toArray=function(){return this._array.slice()},e.ArraySet=i}}),L0=G$({"../../../node_modules/escodegen/node_modules/source-map/lib/mapping-list.js"(e){var t=F0();function n(e,n){var r=e.generatedLine,i=n.generatedLine,a=e.generatedColumn,o=n.generatedColumn;return i>r||i==r&&o>=a||t.compareByGeneratedPositionsInflated(e,n)<=0}function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}r.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},r.prototype.add=function(e){n(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},r.prototype.toArray=function(){return this._sorted||=(this._array.sort(t.compareByGeneratedPositionsInflated),!0),this._array},e.MappingList=r}}),R0=G$({"../../../node_modules/escodegen/node_modules/source-map/lib/source-map-generator.js"(e){var t=P0(),n=F0(),r=I0().ArraySet,i=L0().MappingList;function a(e){e||={},this._file=n.getArg(e,`file`,null),this._sourceRoot=n.getArg(e,`sourceRoot`,null),this._skipValidation=n.getArg(e,`skipValidation`,!1),this._sources=new r,this._names=new r,this._mappings=new i,this._sourcesContents=null}a.prototype._version=3,a.fromSourceMap=function(e){var t=e.sourceRoot,r=new a({file:e.file,sourceRoot:t});return e.eachMapping(function(e){var i={generated:{line:e.generatedLine,column:e.generatedColumn}};e.source!=null&&(i.source=e.source,t!=null&&(i.source=n.relative(t,i.source)),i.original={line:e.originalLine,column:e.originalColumn},e.name!=null&&(i.name=e.name)),r.addMapping(i)}),e.sources.forEach(function(i){var a=i;t!==null&&(a=n.relative(t,i)),r._sources.has(a)||r._sources.add(a);var o=e.sourceContentFor(i);o!=null&&r.setSourceContent(i,o)}),r},a.prototype.addMapping=function(e){var t=n.getArg(e,`generated`),r=n.getArg(e,`original`,null),i=n.getArg(e,`source`,null),a=n.getArg(e,`name`,null);this._skipValidation||this._validateMapping(t,r,i,a),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),a!=null&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:i,name:a})},a.prototype.setSourceContent=function(e,t){var r=e;this._sourceRoot!=null&&(r=n.relative(this._sourceRoot,r)),t==null?this._sourcesContents&&(delete this._sourcesContents[n.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null)):(this._sourcesContents||=Object.create(null),this._sourcesContents[n.toSetString(r)]=t)},a.prototype.applySourceMap=function(e,t,i){var a=t;if(t==null){if(e.file==null)throw Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);a=e.file}var o=this._sourceRoot;o!=null&&(a=n.relative(o,a));var s=new r,c=new r;this._mappings.unsortedForEach(function(t){if(t.source===a&&t.originalLine!=null){var r=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});r.source!=null&&(t.source=r.source,i!=null&&(t.source=n.join(i,t.source)),o!=null&&(t.source=n.relative(o,t.source)),t.originalLine=r.line,t.originalColumn=r.column,r.name!=null&&(t.name=r.name))}var l=t.source;l!=null&&!s.has(l)&&s.add(l);var u=t.name;u!=null&&!c.has(u)&&c.add(u)},this),this._sources=s,this._names=c,e.sources.forEach(function(t){var r=e.sourceContentFor(t);r!=null&&(i!=null&&(t=n.join(i,t)),o!=null&&(t=n.relative(o,t)),this.setSourceContent(t,r))},this)},a.prototype._validateMapping=function(e,t,n,r){if(t&&typeof t.line!=`number`&&typeof t.column!=`number`)throw Error(`original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.`);if(!(e&&`line`in e&&`column`in e&&e.line>0&&e.column>=0&&!t&&!n&&!r)){if(e&&`line`in e&&`column`in e&&t&&`line`in t&&`column`in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n)return;throw Error(`Invalid mapping: `+JSON.stringify({generated:e,source:n,original:t,name:r}))}},a.prototype._serializeMappings=function(){for(var e=0,r=1,i=0,a=0,o=0,s=0,c=``,l,u,d,f,p=this._mappings.toArray(),m=0,h=p.length;m<h;m++){if(u=p[m],l=``,u.generatedLine!==r)for(e=0;u.generatedLine!==r;)l+=`;`,r++;else if(m>0){if(!n.compareByGeneratedPositionsInflated(u,p[m-1]))continue;l+=`,`}l+=t.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(f=this._sources.indexOf(u.source),l+=t.encode(f-s),s=f,l+=t.encode(u.originalLine-1-a),a=u.originalLine-1,l+=t.encode(u.originalColumn-i),i=u.originalColumn,u.name!=null&&(d=this._names.indexOf(u.name),l+=t.encode(d-o),o=d)),c+=l}return c},a.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;t!=null&&(e=n.relative(t,e));var r=n.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},a.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=a}}),z0=G$({"../../../node_modules/escodegen/node_modules/source-map/lib/binary-search.js"(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,r,i,a,o,s){var c=Math.floor((r-n)/2)+n,l=o(i,a[c],!0);return l===0?c:l>0?r-c>1?t(c,r,i,a,o,s):s==e.LEAST_UPPER_BOUND?r<a.length?r:-1:c:c-n>1?t(n,c,i,a,o,s):s==e.LEAST_UPPER_BOUND?c:n<0?-1:n}e.search=function(n,r,i,a){if(r.length===0)return-1;var o=t(-1,r.length,n,r,i,a||e.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&i(r[o],r[o-1],!0)===0;)--o;return o}}}),B0=G$({"../../../node_modules/escodegen/node_modules/source-map/lib/quick-sort.js"(e){function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function n(e,t){return Math.round(e+Math.random()*(t-e))}function r(e,i,a,o){if(a<o){var s=n(a,o),c=a-1;t(e,s,o);for(var l=e[o],u=a;u<o;u++)i(e[u],l)<=0&&(c+=1,t(e,c,u));t(e,c+1,u);var d=c+1;r(e,i,a,d-1),r(e,i,d+1,o)}}e.quickSort=function(e,t){r(e,t,0,e.length-1)}}}),V0=G$({"../../../node_modules/escodegen/node_modules/source-map/lib/source-map-consumer.js"(e){var t=F0(),n=z0(),r=I0().ArraySet,i=P0(),a=B0().quickSort;function o(e,n){var r=e;return typeof e==`string`&&(r=t.parseSourceMapInput(e)),r.sections==null?new s(r,n):new l(r,n)}o.fromSourceMap=function(e,t){return s.fromSourceMap(e,t)},o.prototype._version=3,o.prototype.__generatedMappings=null,Object.defineProperty(o.prototype,`_generatedMappings`,{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),o.prototype.__originalMappings=null,Object.defineProperty(o.prototype,`_originalMappings`,{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),o.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return n===`;`||n===`,`},o.prototype._parseMappings=function(e,t){throw Error(`Subclasses must implement _parseMappings`)},o.GENERATED_ORDER=1,o.ORIGINAL_ORDER=2,o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2,o.prototype.eachMapping=function(e,n,r){var i=n||null,a=r||o.GENERATED_ORDER,s;switch(a){case o.GENERATED_ORDER:s=this._generatedMappings;break;case o.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw Error(`Unknown order of iteration.`)}var c=this.sourceRoot;s.map(function(e){var n=e.source===null?null:this._sources.at(e.source);return n=t.computeSourceURL(c,n,this._sourceMapURL),{source:n,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:e.name===null?null:this._names.at(e.name)}},this).forEach(e,i)},o.prototype.allGeneratedPositionsFor=function(e){var r=t.getArg(e,`line`),i={source:t.getArg(e,`source`),originalLine:r,originalColumn:t.getArg(e,`column`,0)};if(i.source=this._findSourceIndex(i.source),i.source<0)return[];var a=[],o=this._findMapping(i,this._originalMappings,`originalLine`,`originalColumn`,t.compareByOriginalPositions,n.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(e.column===void 0)for(var c=s.originalLine;s&&s.originalLine===c;)a.push({line:t.getArg(s,`generatedLine`,null),column:t.getArg(s,`generatedColumn`,null),lastColumn:t.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o];else for(var l=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==l;)a.push({line:t.getArg(s,`generatedLine`,null),column:t.getArg(s,`generatedColumn`,null),lastColumn:t.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o]}return a},e.SourceMapConsumer=o;function s(e,n){var i=e;typeof e==`string`&&(i=t.parseSourceMapInput(e));var a=t.getArg(i,`version`),o=t.getArg(i,`sources`),s=t.getArg(i,`names`,[]),c=t.getArg(i,`sourceRoot`,null),l=t.getArg(i,`sourcesContent`,null),u=t.getArg(i,`mappings`),d=t.getArg(i,`file`,null);if(a!=this._version)throw Error(`Unsupported version: `+a);c&&=t.normalize(c),o=o.map(String).map(t.normalize).map(function(e){return c&&t.isAbsolute(c)&&t.isAbsolute(e)?t.relative(c,e):e}),this._names=r.fromArray(s.map(String),!0),this._sources=r.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map(function(e){return t.computeSourceURL(c,e,n)}),this.sourceRoot=c,this.sourcesContent=l,this._mappings=u,this._sourceMapURL=n,this.file=d}s.prototype=Object.create(o.prototype),s.prototype.consumer=o,s.prototype._findSourceIndex=function(e){var n=e;if(this.sourceRoot!=null&&(n=t.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1},s.fromSourceMap=function(e,n){var i=Object.create(s.prototype),o=i._names=r.fromArray(e._names.toArray(),!0),l=i._sources=r.fromArray(e._sources.toArray(),!0);i.sourceRoot=e._sourceRoot,i.sourcesContent=e._generateSourcesContent(i._sources.toArray(),i.sourceRoot),i.file=e._file,i._sourceMapURL=n,i._absoluteSources=i._sources.toArray().map(function(e){return t.computeSourceURL(i.sourceRoot,e,n)});for(var u=e._mappings.toArray().slice(),d=i.__generatedMappings=[],f=i.__originalMappings=[],p=0,m=u.length;p<m;p++){var h=u[p],g=new c;g.generatedLine=h.generatedLine,g.generatedColumn=h.generatedColumn,h.source&&(g.source=l.indexOf(h.source),g.originalLine=h.originalLine,g.originalColumn=h.originalColumn,h.name&&(g.name=o.indexOf(h.name)),f.push(g)),d.push(g)}return a(i.__originalMappings,t.compareByOriginalPositions),i},s.prototype._version=3,Object.defineProperty(s.prototype,`sources`,{get:function(){return this._absoluteSources.slice()}});function c(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s.prototype._parseMappings=function(e,n){for(var r=1,o=0,s=0,l=0,u=0,d=0,f=e.length,p=0,m={},h={},g=[],_=[],v,y,b,x,S;p<f;)if(e.charAt(p)===`;`)r++,p++,o=0;else if(e.charAt(p)===`,`)p++;else{for(v=new c,v.generatedLine=r,x=p;x<f&&!this._charIsMappingSeparator(e,x);x++);if(y=e.slice(p,x),b=m[y],b)p+=y.length;else{for(b=[];p<x;)i.decode(e,p,h),S=h.value,p=h.rest,b.push(S);if(b.length===2)throw Error(`Found a source, but no line and column`);if(b.length===3)throw Error(`Found a source and line, but no column`);m[y]=b}v.generatedColumn=o+b[0],o=v.generatedColumn,b.length>1&&(v.source=u+b[1],u+=b[1],v.originalLine=s+b[2],s=v.originalLine,v.originalLine+=1,v.originalColumn=l+b[3],l=v.originalColumn,b.length>4&&(v.name=d+b[4],d+=b[4])),_.push(v),typeof v.originalLine==`number`&&g.push(v)}a(_,t.compareByGeneratedPositionsDeflated),this.__generatedMappings=_,a(g,t.compareByOriginalPositions),this.__originalMappings=g},s.prototype._findMapping=function(e,t,r,i,a,o){if(e[r]<=0)throw TypeError(`Line must be greater than or equal to 1, got `+e[r]);if(e[i]<0)throw TypeError(`Column must be greater than or equal to 0, got `+e[i]);return n.search(e,t,a,o)},s.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},s.prototype.originalPositionFor=function(e){var n={generatedLine:t.getArg(e,`line`),generatedColumn:t.getArg(e,`column`)},r=this._findMapping(n,this._generatedMappings,`generatedLine`,`generatedColumn`,t.compareByGeneratedPositionsDeflated,t.getArg(e,`bias`,o.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===n.generatedLine){var a=t.getArg(i,`source`,null);a!==null&&(a=this._sources.at(a),a=t.computeSourceURL(this.sourceRoot,a,this._sourceMapURL));var s=t.getArg(i,`name`,null);return s!==null&&(s=this._names.at(s)),{source:a,line:t.getArg(i,`originalLine`,null),column:t.getArg(i,`originalColumn`,null),name:s}}}return{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1},s.prototype.sourceContentFor=function(e,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var i=e;this.sourceRoot!=null&&(i=t.relative(this.sourceRoot,i));var a;if(this.sourceRoot!=null&&(a=t.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,``);if(a.scheme==`file`&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!a.path||a.path==`/`)&&this._sources.has(`/`+i))return this.sourcesContent[this._sources.indexOf(`/`+i)]}if(n)return null;throw Error(`"`+i+`" is not in the SourceMap.`)},s.prototype.generatedPositionFor=function(e){var n=t.getArg(e,`source`);if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:t.getArg(e,`line`),originalColumn:t.getArg(e,`column`)},i=this._findMapping(r,this._originalMappings,`originalLine`,`originalColumn`,t.compareByOriginalPositions,t.getArg(e,`bias`,o.GREATEST_LOWER_BOUND));if(i>=0){var a=this._originalMappings[i];if(a.source===r.source)return{line:t.getArg(a,`generatedLine`,null),column:t.getArg(a,`generatedColumn`,null),lastColumn:t.getArg(a,`lastGeneratedColumn`,null)}}return{line:null,column:null,lastColumn:null}},e.BasicSourceMapConsumer=s;function l(e,n){var i=e;typeof e==`string`&&(i=t.parseSourceMapInput(e));var a=t.getArg(i,`version`),s=t.getArg(i,`sections`);if(a!=this._version)throw Error(`Unsupported version: `+a);this._sources=new r,this._names=new r;var c={line:-1,column:0};this._sections=s.map(function(e){if(e.url)throw Error(`Support for url field in sections not implemented.`);var r=t.getArg(e,`offset`),i=t.getArg(r,`line`),a=t.getArg(r,`column`);if(i<c.line||i===c.line&&a<c.column)throw Error(`Section offsets must be ordered and non-overlapping.`);return c=r,{generatedOffset:{generatedLine:i+1,generatedColumn:a+1},consumer:new o(t.getArg(e,`map`),n)}})}l.prototype=Object.create(o.prototype),l.prototype.constructor=o,l.prototype._version=3,Object.defineProperty(l.prototype,`sources`,{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),l.prototype.originalPositionFor=function(e){var r={generatedLine:t.getArg(e,`line`),generatedColumn:t.getArg(e,`column`)},i=n.search(r,this._sections,function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn}),a=this._sections[i];return a?a.consumer.originalPositionFor({line:r.generatedLine-(a.generatedOffset.generatedLine-1),column:r.generatedColumn-(a.generatedOffset.generatedLine===r.generatedLine?a.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},l.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},l.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw Error(`"`+e+`" is not in the SourceMap.`)},l.prototype.generatedPositionFor=function(e){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(r.consumer._findSourceIndex(t.getArg(e,`source`))!==-1){var i=r.consumer.generatedPositionFor(e);if(i)return{line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},l.prototype._parseMappings=function(e,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var i=this._sections[r],o=i.consumer._generatedMappings,s=0;s<o.length;s++){var c=o[s],l=i.consumer._sources.at(c.source);l=t.computeSourceURL(i.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var u=null;c.name&&(u=i.consumer._names.at(c.name),this._names.add(u),u=this._names.indexOf(u));var d={source:l,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:u};this.__generatedMappings.push(d),typeof d.originalLine==`number`&&this.__originalMappings.push(d)}a(this.__generatedMappings,t.compareByGeneratedPositionsDeflated),a(this.__originalMappings,t.compareByOriginalPositions)},e.IndexedSourceMapConsumer=l}}),H0=G$({"../../../node_modules/escodegen/node_modules/source-map/lib/source-node.js"(e){var t=R0().SourceMapGenerator,n=F0(),r=/(\r?\n)/,i=10,a=`$$$isSourceNode$$$`;function o(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=n??null,this.name=i??null,this[a]=!0,r!=null&&this.add(r)}o.fromStringWithSourceMap=function(e,t,i){var a=new o,s=e.split(r),c=0,l=function(){return e()+(e()||``);function e(){return c<s.length?s[c++]:void 0}},u=1,d=0,f=null;return t.eachMapping(function(e){if(f!==null)if(u<e.generatedLine)p(f,l()),u++,d=0;else{var t=s[c]||``,n=t.substr(0,e.generatedColumn-d);s[c]=t.substr(e.generatedColumn-d),d=e.generatedColumn,p(f,n),f=e;return}for(;u<e.generatedLine;)a.add(l()),u++;if(d<e.generatedColumn){var t=s[c]||``;a.add(t.substr(0,e.generatedColumn)),s[c]=t.substr(e.generatedColumn),d=e.generatedColumn}f=e},this),c<s.length&&(f&&p(f,l()),a.add(s.splice(c).join(``))),t.sources.forEach(function(e){var r=t.sourceContentFor(e);r!=null&&(i!=null&&(e=n.join(i,e)),a.setSourceContent(e,r))}),a;function p(e,t){if(e===null||e.source===void 0)a.add(t);else{var r=i?n.join(i,e.source):e.source;a.add(new o(e.originalLine,e.originalColumn,r,t,e.name))}}},o.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else if(e[a]||typeof e==`string`)e&&this.children.push(e);else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got `+e);return this},o.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[a]||typeof e==`string`)this.children.unshift(e);else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got `+e);return this},o.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)t=this.children[n],t[a]?t.walk(e):t!==``&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},o.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},o.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[a]?n.replaceRight(e,t):typeof n==`string`?this.children[this.children.length-1]=n.replace(e,t):this.children.push(``.replace(e,t)),this},o.prototype.setSourceContent=function(e,t){this.sourceContents[n.toSetString(e)]=t},o.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][a]&&this.children[t].walkSourceContents(e);for(var i=Object.keys(this.sourceContents),t=0,r=i.length;t<r;t++)e(n.fromSetString(i[t]),this.sourceContents[i[t]])},o.prototype.toString=function(){var e=``;return this.walk(function(t){e+=t}),e},o.prototype.toStringWithSourceMap=function(e){var n={code:``,line:1,column:0},r=new t(e),a=!1,o=null,s=null,c=null,l=null;return this.walk(function(e,t){n.code+=e,t.source!==null&&t.line!==null&&t.column!==null?((o!==t.source||s!==t.line||c!==t.column||l!==t.name)&&r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name}),o=t.source,s=t.line,c=t.column,l=t.name,a=!0):a&&=(r.addMapping({generated:{line:n.line,column:n.column}}),o=null,!1);for(var u=0,d=e.length;u<d;u++)e.charCodeAt(u)===i?(n.line++,n.column=0,u+1===d?(o=null,a=!1):a&&r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name})):n.column++}),this.walkSourceContents(function(e,t){r.setSourceContent(e,t)}),{code:n.code,map:r}},e.SourceNode=o}}),U0=G$({"../../../node_modules/escodegen/node_modules/source-map/source-map.js"(e){e.SourceMapGenerator=R0().SourceMapGenerator,e.SourceMapConsumer=V0().SourceMapConsumer,e.SourceNode=H0().SourceNode}}),W0=G$({"../../../node_modules/escodegen/package.json"(e,t){t.exports={name:`escodegen`,description:`ECMAScript code generator`,homepage:`http://github.com/estools/escodegen`,main:`escodegen.js`,bin:{esgenerate:`./bin/esgenerate.js`,escodegen:`./bin/escodegen.js`},files:[`LICENSE.BSD`,`README.md`,`bin`,`escodegen.js`,`package.json`],version:`2.1.0`,engines:{node:`>=6.0`},maintainers:[{name:`Yusuke Suzuki`,email:`utatane.tea@gmail.com`,web:`http://github.com/Constellation`}],repository:{type:`git`,url:`http://github.com/estools/escodegen.git`},dependencies:{estraverse:`^5.2.0`,esutils:`^2.0.2`,esprima:`^4.0.1`},optionalDependencies:{"source-map":`~0.6.1`},devDependencies:{acorn:`^8.0.4`,bluebird:`^3.4.7`,"bower-registry-client":`^1.0.0`,chai:`^4.2.0`,"chai-exclude":`^2.0.2`,"commonjs-everywhere":`^0.9.7`,gulp:`^4.0.2`,"gulp-eslint":`^6.0.0`,"gulp-mocha":`^7.0.2`,minimist:`^1.2.5`,optionator:`^0.9.1`,semver:`^7.3.4`},license:`BSD-2-Clause`,scripts:{test:`gulp travis`,"unit-test":`gulp test`,lint:`gulp lint`,release:`node tools/release.js`,"build-min":`./node_modules/.bin/cjsify -ma path: tools/entry-point.js > escodegen.browser.min.js`,build:`./node_modules/.bin/cjsify -a path: tools/entry-point.js > escodegen.browser.js`}}}}),G0=G$({"../../../node_modules/escodegen/escodegen.js"(e){(function(){var t,n,r,i,a=O0(),o=M0(),s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E;t=a.Syntax;function D(e){return Pe.Expression.hasOwnProperty(e.type)}function O(e){return Pe.Statement.hasOwnProperty(e.type)}n={Sequence:0,Yield:1,Assignment:1,Conditional:2,ArrowFunction:2,Coalesce:3,LogicalOR:4,LogicalAND:5,BitwiseOR:6,BitwiseXOR:7,BitwiseAND:8,Equality:9,Relational:10,BitwiseSHIFT:11,Additive:12,Multiplicative:13,Exponentiation:14,Await:15,Unary:15,Postfix:16,OptionalChaining:17,Call:18,New:19,TaggedTemplate:20,Member:21,Primary:22},r={"??":n.Coalesce,"||":n.LogicalOR,"&&":n.LogicalAND,"|":n.BitwiseOR,"^":n.BitwiseXOR,"&":n.BitwiseAND,"==":n.Equality,"!=":n.Equality,"===":n.Equality,"!==":n.Equality,is:n.Equality,isnt:n.Equality,"<":n.Relational,">":n.Relational,"<=":n.Relational,">=":n.Relational,in:n.Relational,instanceof:n.Relational,"<<":n.BitwiseSHIFT,">>":n.BitwiseSHIFT,">>>":n.BitwiseSHIFT,"+":n.Additive,"-":n.Additive,"*":n.Multiplicative,"%":n.Multiplicative,"/":n.Multiplicative,"**":n.Exponentiation};var k=1,A=2,j=4,M=8,N=16,P=32,ee=64,te=A|j,ne=k|A,F=k|A|j,re=k,ie=j,ae=k|j,I=k,oe=k|P,se=0,ce=k|N,le=k|M;function ue(){return{indent:null,base:null,parse:null,comment:!1,format:{indent:{style:` `,base:0,adjustMultilineComment:!1},newline:`
|
|
1192
|
+
`,space:` `,json:!1,renumber:!1,hexadecimal:!1,quotes:`single`,escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},moz:{comprehensionExpressionStartsWithAssignment:!1,starlessGenerator:!1},sourceMap:null,sourceMapRoot:null,sourceMapWithCode:!1,directive:!1,raw:!0,verbatim:null,sourceCode:null}}function de(e,t){var n=``;for(t|=0;t>0;t>>>=1,e+=e)t&1&&(n+=e);return n}function fe(e){return/[\r\n]/g.test(e)}function pe(e){var t=e.length;return t&&o.code.isLineTerminator(e.charCodeAt(t-1))}function me(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function he(e,t){var n,r;function i(e){return typeof e==`object`&&e instanceof Object&&!(e instanceof RegExp)}for(n in t)t.hasOwnProperty(n)&&(r=t[n],i(r)?i(e[n])?he(e[n],r):e[n]=he({},r):e[n]=r);return e}function ge(e){var t,n,r,i,a;if(e!==e)throw Error(`Numeric literal whose value is NaN`);if(e<0||e===0&&1/e<0)throw Error(`Numeric literal whose value is negative`);if(e===1/0)return l?`null`:u?`1e400`:`1e+400`;if(t=``+e,!u||t.length<3)return t;for(n=t.indexOf(`.`),!l&&t.charCodeAt(0)===48&&n===1&&(n=0,t=t.slice(1)),r=t,t=t.replace(`e+`,`e`),i=0,(a=r.indexOf(`e`))>0&&(i=+r.slice(a+1),r=r.slice(0,a)),n>=0&&(i-=r.length-n-1,r=+(r.slice(0,n)+r.slice(n+1))+``),a=0;r.charCodeAt(r.length+a-1)===48;)--a;return a!==0&&(i-=a,r=r.slice(0,a)),i!==0&&(r+=`e`+i),(r.length<t.length||d&&e>0xe8d4a51000&&Math.floor(e)===e&&(r=`0x`+e.toString(16)).length<t.length)&&+r===e&&(t=r),t}function _e(e,t){return(e&-2)==8232?(t?`u`:`\\u`)+(e===8232?`2028`:`2029`):e===10||e===13?(t?``:`\\`)+(e===10?`n`:`r`):String.fromCharCode(e)}function ve(e){var t,n,r,i,a,o,s,c;if(n=e.toString(),e.source){if(t=n.match(/\/([^/]*)$/),!t)return n;for(r=t[1],n=``,s=!1,c=!1,i=0,a=e.source.length;i<a;++i)o=e.source.charCodeAt(i),c?(n+=_e(o,c),c=!1):(s?o===93&&(s=!1):o===47?n+=`\\`:o===91&&(s=!0),n+=_e(o,c),c=o===92);return`/`+n+`/`+r}return n}function ye(e,t){var n;return e===8?`\\b`:e===12?`\\f`:e===9?`\\t`:(n=e.toString(16).toUpperCase(),l||e>255?`\\u`+`0000`.slice(n.length)+n:e===0&&!o.code.isDecimalDigit(t)?`\\0`:e===11?`\\x0B`:`\\x`+`00`.slice(n.length)+n)}function be(e){if(e===92)return`\\\\`;if(e===10)return`\\n`;if(e===13)return`\\r`;if(e===8232)return`\\u2028`;if(e===8233)return`\\u2029`;throw Error(`Incorrectly classified character`)}function xe(e){var t,n,r,i;for(i=f===`double`?`"`:`'`,t=0,n=e.length;t<n;++t)if(r=e.charCodeAt(t),r===39){i=`"`;break}else if(r===34){i=`'`;break}else r===92&&++t;return i+e+i}function L(e){var t=``,n,r,i,a=0,s=0,c,u;for(n=0,r=e.length;n<r;++n){if(i=e.charCodeAt(n),i===39)++a;else if(i===34)++s;else if(i===47&&l)t+=`\\`;else if(o.code.isLineTerminator(i)||i===92){t+=be(i);continue}else if(!o.code.isIdentifierPartES5(i)&&(l&&i<32||!l&&!p&&(i<32||i>126))){t+=ye(i,e.charCodeAt(n+1));continue}t+=String.fromCharCode(i)}if(c=!(f===`double`||f===`auto`&&s<a),u=c?`'`:`"`,!(c?a:s))return u+t+u;for(e=t,t=u,n=0,r=e.length;n<r;++n)i=e.charCodeAt(n),(i===39&&c||i===34&&!c)&&(t+=`\\`),t+=String.fromCharCode(i);return t+u}function Se(e){var t,n,r,i=``;for(t=0,n=e.length;t<n;++t)r=e[t],i+=Array.isArray(r)?Se(r):r;return i}function Ce(e,t){if(!S)return Array.isArray(e)?Se(e):e;if(t==null){if(e instanceof i)return e;t={}}return t.loc==null?new i(null,null,S,e,t.name||null):new i(t.loc.start.line,t.loc.start.column,S===!0?t.loc.source||null:S,e,t.name||null)}function we(){return h||` `}function R(e,t){var n,r,i,a;return n=Ce(e).toString(),n.length===0?[t]:(r=Ce(t).toString(),r.length===0?[e]:(i=n.charCodeAt(n.length-1),a=r.charCodeAt(0),(i===43||i===45)&&i===a||o.code.isIdentifierPartES5(i)&&o.code.isIdentifierPartES5(a)||i===47&&a===105?[e,we(),t]:o.code.isWhiteSpace(i)||o.code.isLineTerminator(i)||o.code.isWhiteSpace(a)||o.code.isLineTerminator(a)?[e,t]:[e,h,t]))}function Te(e){return[s,e]}function Ee(e){var t=s;s+=c,e(s),s=t}function De(e){var t;for(t=e.length-1;t>=0&&!o.code.isLineTerminator(e.charCodeAt(t));--t);return e.length-1-t}function z(e,t){var n,r,i,a,c,l,u,d;for(n=e.split(/\r\n|[\r\n]/),l=Number.MAX_VALUE,r=1,i=n.length;r<i;++r){for(a=n[r],c=0;c<a.length&&o.code.isWhiteSpace(a.charCodeAt(c));)++c;l>c&&(l=c)}for(typeof t<`u`?(u=s,n[1][l]===`*`&&(t+=` `),s=t):(l&1&&--l,u=s),r=1,i=n.length;r<i;++r)d=Ce(Te(n[r].slice(l))),n[r]=S?d.join(``):d;return s=u,n.join(`
|
|
1193
|
+
`)}function Oe(e,t){if(e.type===`Line`){if(pe(e.value))return`//`+e.value;var n=`//`+e.value;return w||(n+=`
|
|
1194
|
+
`),n}return b.format.indent.adjustMultilineComment&&/[\n\r]/.test(e.value)?z(`/*`+e.value+`*/`,t):`/*`+e.value+`*/`}function ke(e,n){var r,i,a,o,l,u,d,f,p,m,h,g,_,y;if(e.leadingComments&&e.leadingComments.length>0){if(o=n,w){for(a=e.leadingComments[0],n=[],f=a.extendedRange,p=a.range,h=C.substring(f[0],p[0]),y=(h.match(/\n/g)||[]).length,y>0?(n.push(de(`
|
|
1195
|
+
`,y)),n.push(Te(Oe(a)))):(n.push(h),n.push(Oe(a))),m=p,r=1,i=e.leadingComments.length;r<i;r++)a=e.leadingComments[r],p=a.range,g=C.substring(m[1],p[0]),y=(g.match(/\n/g)||[]).length,n.push(de(`
|
|
1196
|
+
`,y)),n.push(Te(Oe(a))),m=p;_=C.substring(p[1],f[1]),y=(_.match(/\n/g)||[]).length,n.push(de(`
|
|
1197
|
+
`,y))}else for(a=e.leadingComments[0],n=[],v&&e.type===t.Program&&e.body.length===0&&n.push(`
|
|
1198
|
+
`),n.push(Oe(a)),pe(Ce(n).toString())||n.push(`
|
|
1199
|
+
`),r=1,i=e.leadingComments.length;r<i;++r)a=e.leadingComments[r],d=[Oe(a)],pe(Ce(d).toString())||d.push(`
|
|
1200
|
+
`),n.push(Te(d));n.push(Te(o))}if(e.trailingComments)if(w)a=e.trailingComments[0],f=a.extendedRange,p=a.range,h=C.substring(f[0],p[0]),y=(h.match(/\n/g)||[]).length,y>0?(n.push(de(`
|
|
1201
|
+
`,y)),n.push(Te(Oe(a)))):(n.push(h),n.push(Oe(a)));else for(l=!pe(Ce(n).toString()),u=de(` `,De(Ce([s,n,c]).toString())),r=0,i=e.trailingComments.length;r<i;++r)a=e.trailingComments[r],l?(n=r===0?[n,c]:[n,u],n.push(Oe(a,u))):n=[n,Te(Oe(a))],r!==i-1&&!pe(Ce(n).toString())&&(n=[n,`
|
|
1202
|
+
`]);return n}function Ae(e,t,n){var r,i=0;for(r=e;r<t;r++)C[r]===`
|
|
1203
|
+
`&&i++;for(r=1;r<i;r++)n.push(m)}function je(e,t,n){return t<n?[`(`,e,`)`]:e}function Me(e){var t,n,r;for(r=e.split(/\r\n|\n/),t=1,n=r.length;t<n;t++)r[t]=m+s+r[t];return r}function Ne(e,t){var r,i,a;return r=e[b.verbatim],typeof r==`string`?i=je(Me(r),n.Sequence,t):(i=Me(r.content),a=r.precedence==null?n.Sequence:r.precedence,i=je(i,a,t)),Ce(i,e)}function Pe(){}Pe.prototype.maybeBlock=function(e,n){var r,i,a=this;return i=!b.comment||!e.leadingComments,e.type===t.BlockStatement&&i?[h,this.generateStatement(e,n)]:e.type===t.EmptyStatement&&i?`;`:(Ee(function(){r=[m,Te(a.generateStatement(e,n))]}),r)},Pe.prototype.maybeBlockSuffix=function(e,n){var r=pe(Ce(n).toString());return e.type===t.BlockStatement&&(!b.comment||!e.leadingComments)&&!r?[n,h]:r?[n,s]:[n,m,s]};function B(e){return Ce(e.name,e)}function Fe(e,t){return e.async?`async`+(t?we():h):``}function Ie(e){return e.generator&&!b.moz.starlessGenerator?`*`+h:``}function Le(e){var t=e.value,n=``;return t.async&&(n+=Fe(t,!e.computed)),t.generator&&(n+=Ie(t)?`*`:``),n}Pe.prototype.generatePattern=function(e,n,r){return e.type===t.Identifier?B(e):this.generateExpression(e,n,r)},Pe.prototype.generateFunctionParams=function(e){var r,i,a,o;if(o=!1,e.type===t.ArrowFunctionExpression&&!e.rest&&(!e.defaults||e.defaults.length===0)&&e.params.length===1&&e.params[0].type===t.Identifier)a=[Fe(e,!0),B(e.params[0])];else{for(a=e.type===t.ArrowFunctionExpression?[Fe(e,!1)]:[],a.push(`(`),e.defaults&&(o=!0),r=0,i=e.params.length;r<i;++r)o&&e.defaults[r]?a.push(this.generateAssignment(e.params[r],e.defaults[r],`=`,n.Assignment,F)):a.push(this.generatePattern(e.params[r],n.Assignment,F)),r+1<i&&a.push(`,`+h);e.rest&&(e.params.length&&a.push(`,`+h),a.push(`...`),a.push(B(e.rest))),a.push(`)`)}return a},Pe.prototype.generateFunctionBody=function(e){var r,i;return r=this.generateFunctionParams(e),e.type===t.ArrowFunctionExpression&&(r.push(h),r.push(`=>`)),e.expression?(r.push(h),i=this.generateExpression(e.body,n.Assignment,F),i.toString().charAt(0)===`{`&&(i=[`(`,i,`)`]),r.push(i)):r.push(this.maybeBlock(e.body,le)),r},Pe.prototype.generateIterationForStatement=function(e,r,i){var a=[`for`+(r.await?we()+`await`:``)+h+`(`],o=this;return Ee(function(){r.left.type===t.VariableDeclaration?Ee(function(){a.push(r.left.kind+we()),a.push(o.generateStatement(r.left.declarations[0],se))}):a.push(o.generateExpression(r.left,n.Call,F)),a=R(a,e),a=[R(a,o.generateExpression(r.right,n.Assignment,F)),`)`]}),a.push(this.maybeBlock(r.body,i)),a},Pe.prototype.generatePropertyKey=function(e,t){var r=[];return t&&r.push(`[`),r.push(this.generateExpression(e,n.Assignment,F)),t&&r.push(`]`),r},Pe.prototype.generateAssignment=function(e,t,r,i,a){return n.Assignment<i&&(a|=k),je([this.generateExpression(e,n.Call,a),h+r+h,this.generateExpression(t,n.Assignment,a)],n.Assignment,i)},Pe.prototype.semicolon=function(e){return!_&&e&P?``:`;`},Pe.Statement={BlockStatement:function(e,t){var n,r,i=[`{`,m],a=this;return Ee(function(){e.body.length===0&&w&&(n=e.range,n[1]-n[0]>2&&(r=C.substring(n[0]+1,n[1]-1),r[0]===`
|
|
1204
|
+
`&&(i=[`{`]),i.push(r)));var o,s,c,l;for(l=I,t&M&&(l|=N),o=0,s=e.body.length;o<s;++o)w&&(o===0&&(e.body[0].leadingComments&&(n=e.body[0].leadingComments[0].extendedRange,r=C.substring(n[0],n[1]),r[0]===`
|
|
1205
|
+
`&&(i=[`{`])),e.body[0].leadingComments||Ae(e.range[0],e.body[0].range[0],i)),o>0&&!e.body[o-1].trailingComments&&!e.body[o].leadingComments&&Ae(e.body[o-1].range[1],e.body[o].range[0],i)),o===s-1&&(l|=P),c=e.body[o].leadingComments&&w?a.generateStatement(e.body[o],l):Te(a.generateStatement(e.body[o],l)),i.push(c),pe(Ce(c).toString())||w&&o<s-1&&e.body[o+1].leadingComments||i.push(m),w&&o===s-1&&(e.body[o].trailingComments||Ae(e.body[o].range[1],e.range[1],i))}),i.push(Te(`}`)),i},BreakStatement:function(e,t){return e.label?`break `+e.label.name+this.semicolon(t):`break`+this.semicolon(t)},ContinueStatement:function(e,t){return e.label?`continue `+e.label.name+this.semicolon(t):`continue`+this.semicolon(t)},ClassBody:function(e,t){var r=[`{`,m],i=this;return Ee(function(t){var a,o;for(a=0,o=e.body.length;a<o;++a)r.push(t),r.push(i.generateExpression(e.body[a],n.Sequence,F)),a+1<o&&r.push(m)}),pe(Ce(r).toString())||r.push(m),r.push(s),r.push(`}`),r},ClassDeclaration:function(e,t){var r,i;return r=[`class`],e.id&&(r=R(r,this.generateExpression(e.id,n.Sequence,F))),e.superClass&&(i=R(`extends`,this.generateExpression(e.superClass,n.Unary,F)),r=R(r,i)),r.push(h),r.push(this.generateStatement(e.body,oe)),r},DirectiveStatement:function(e,t){return b.raw&&e.raw?e.raw+this.semicolon(t):xe(e.directive)+this.semicolon(t)},DoWhileStatement:function(e,t){var r=R(`do`,this.maybeBlock(e.body,I));return r=this.maybeBlockSuffix(e.body,r),R(r,[`while`+h+`(`,this.generateExpression(e.test,n.Sequence,F),`)`+this.semicolon(t)])},CatchClause:function(e,t){var r,i=this;return Ee(function(){var t;e.param?(r=[`catch`+h+`(`,i.generateExpression(e.param,n.Sequence,F),`)`],e.guard&&(t=i.generateExpression(e.guard,n.Sequence,F),r.splice(2,0,` if `,t))):r=[`catch`]}),r.push(this.maybeBlock(e.body,I)),r},DebuggerStatement:function(e,t){return`debugger`+this.semicolon(t)},EmptyStatement:function(e,t){return`;`},ExportDefaultDeclaration:function(e,t){var r=[`export`],i;return i=t&P?oe:I,r=R(r,`default`),r=O(e.declaration)?R(r,this.generateStatement(e.declaration,i)):R(r,this.generateExpression(e.declaration,n.Assignment,F)+this.semicolon(t)),r},ExportNamedDeclaration:function(e,r){var i=[`export`],a,o=this;return a=r&P?oe:I,e.declaration?R(i,this.generateStatement(e.declaration,a)):(e.specifiers&&(e.specifiers.length===0?i=R(i,`{`+h+`}`):e.specifiers[0].type===t.ExportBatchSpecifier?i=R(i,this.generateExpression(e.specifiers[0],n.Sequence,F)):(i=R(i,`{`),Ee(function(t){var r,a;for(i.push(m),r=0,a=e.specifiers.length;r<a;++r)i.push(t),i.push(o.generateExpression(e.specifiers[r],n.Sequence,F)),r+1<a&&i.push(`,`+m)}),pe(Ce(i).toString())||i.push(m),i.push(s+`}`)),e.source?i=R(i,[`from`+h,this.generateExpression(e.source,n.Sequence,F),this.semicolon(r)]):i.push(this.semicolon(r))),i)},ExportAllDeclaration:function(e,t){return[`export`+h,`*`+h,`from`+h,this.generateExpression(e.source,n.Sequence,F),this.semicolon(t)]},ExpressionStatement:function(e,r){var i,a;function s(e){var t;return e.slice(0,5)===`class`?(t=e.charCodeAt(5),t===123||o.code.isWhiteSpace(t)||o.code.isLineTerminator(t)):!1}function c(e){var t;return e.slice(0,8)===`function`?(t=e.charCodeAt(8),t===40||o.code.isWhiteSpace(t)||t===42||o.code.isLineTerminator(t)):!1}function l(e){var t,n,r;if(e.slice(0,5)!==`async`||!o.code.isWhiteSpace(e.charCodeAt(5)))return!1;for(n=6,r=e.length;n<r&&o.code.isWhiteSpace(e.charCodeAt(n));++n);return n===r||e.slice(n,n+8)!==`function`?!1:(t=e.charCodeAt(n+8),t===40||o.code.isWhiteSpace(t)||t===42||o.code.isLineTerminator(t))}return i=[this.generateExpression(e.expression,n.Sequence,F)],a=Ce(i).toString(),a.charCodeAt(0)===123||s(a)||c(a)||l(a)||y&&r&N&&e.expression.type===t.Literal&&typeof e.expression.value==`string`?i=[`(`,i,`)`+this.semicolon(r)]:i.push(this.semicolon(r)),i},ImportDeclaration:function(e,r){var i,a,o=this;return e.specifiers.length===0?[`import`,h,this.generateExpression(e.source,n.Sequence,F),this.semicolon(r)]:(i=[`import`],a=0,e.specifiers[a].type===t.ImportDefaultSpecifier&&(i=R(i,[this.generateExpression(e.specifiers[a],n.Sequence,F)]),++a),e.specifiers[a]&&(a!==0&&i.push(`,`),e.specifiers[a].type===t.ImportNamespaceSpecifier?i=R(i,[h,this.generateExpression(e.specifiers[a],n.Sequence,F)]):(i.push(h+`{`),e.specifiers.length-a===1?(i.push(h),i.push(this.generateExpression(e.specifiers[a],n.Sequence,F)),i.push(h+`}`+h)):(Ee(function(t){var r,s;for(i.push(m),r=a,s=e.specifiers.length;r<s;++r)i.push(t),i.push(o.generateExpression(e.specifiers[r],n.Sequence,F)),r+1<s&&i.push(`,`+m)}),pe(Ce(i).toString())||i.push(m),i.push(s+`}`+h)))),i=R(i,[`from`+h,this.generateExpression(e.source,n.Sequence,F),this.semicolon(r)]),i)},VariableDeclarator:function(e,t){var r=t&k?F:te;return e.init?[this.generateExpression(e.id,n.Assignment,r),h,`=`,h,this.generateExpression(e.init,n.Assignment,r)]:this.generatePattern(e.id,n.Assignment,r)},VariableDeclaration:function(e,t){var n,r,i,a,o,s=this;n=[e.kind],o=t&k?I:se;function c(){for(a=e.declarations[0],b.comment&&a.leadingComments?(n.push(`
|
|
1206
|
+
`),n.push(Te(s.generateStatement(a,o)))):(n.push(we()),n.push(s.generateStatement(a,o))),r=1,i=e.declarations.length;r<i;++r)a=e.declarations[r],b.comment&&a.leadingComments?(n.push(`,`+m),n.push(Te(s.generateStatement(a,o)))):(n.push(`,`+h),n.push(s.generateStatement(a,o)))}return e.declarations.length>1?Ee(c):c(),n.push(this.semicolon(t)),n},ThrowStatement:function(e,t){return[R(`throw`,this.generateExpression(e.argument,n.Sequence,F)),this.semicolon(t)]},TryStatement:function(e,t){var n,r,i,a;if(n=[`try`,this.maybeBlock(e.block,I)],n=this.maybeBlockSuffix(e.block,n),e.handlers)for(r=0,i=e.handlers.length;r<i;++r)n=R(n,this.generateStatement(e.handlers[r],I)),(e.finalizer||r+1!==i)&&(n=this.maybeBlockSuffix(e.handlers[r].body,n));else{for(a=e.guardedHandlers||[],r=0,i=a.length;r<i;++r)n=R(n,this.generateStatement(a[r],I)),(e.finalizer||r+1!==i)&&(n=this.maybeBlockSuffix(a[r].body,n));if(e.handler)if(Array.isArray(e.handler))for(r=0,i=e.handler.length;r<i;++r)n=R(n,this.generateStatement(e.handler[r],I)),(e.finalizer||r+1!==i)&&(n=this.maybeBlockSuffix(e.handler[r].body,n));else n=R(n,this.generateStatement(e.handler,I)),e.finalizer&&(n=this.maybeBlockSuffix(e.handler.body,n))}return e.finalizer&&(n=R(n,[`finally`,this.maybeBlock(e.finalizer,I)])),n},SwitchStatement:function(e,t){var r,i,a,o,s,c=this;if(Ee(function(){r=[`switch`+h+`(`,c.generateExpression(e.discriminant,n.Sequence,F),`)`+h+`{`+m]}),e.cases)for(s=I,a=0,o=e.cases.length;a<o;++a)a===o-1&&(s|=P),i=Te(this.generateStatement(e.cases[a],s)),r.push(i),pe(Ce(i).toString())||r.push(m);return r.push(Te(`}`)),r},SwitchCase:function(e,r){var i,a,o,s,c,l=this;return Ee(function(){for(i=e.test?[R(`case`,l.generateExpression(e.test,n.Sequence,F)),`:`]:[`default:`],o=0,s=e.consequent.length,s&&e.consequent[0].type===t.BlockStatement&&(a=l.maybeBlock(e.consequent[0],I),i.push(a),o=1),o!==s&&!pe(Ce(i).toString())&&i.push(m),c=I;o<s;++o)o===s-1&&r&P&&(c|=P),a=Te(l.generateStatement(e.consequent[o],c)),i.push(a),o+1!==s&&!pe(Ce(a).toString())&&i.push(m)}),i},IfStatement:function(e,r){var i,a,o,s=this;return Ee(function(){i=[`if`+h+`(`,s.generateExpression(e.test,n.Sequence,F),`)`]}),o=r&P,a=I,o&&(a|=P),e.alternate?(i.push(this.maybeBlock(e.consequent,I)),i=this.maybeBlockSuffix(e.consequent,i),i=e.alternate.type===t.IfStatement?R(i,[`else `,this.generateStatement(e.alternate,a)]):R(i,R(`else`,this.maybeBlock(e.alternate,a)))):i.push(this.maybeBlock(e.consequent,a)),i},ForStatement:function(e,r){var i,a=this;return Ee(function(){i=[`for`+h+`(`],e.init?e.init.type===t.VariableDeclaration?i.push(a.generateStatement(e.init,se)):(i.push(a.generateExpression(e.init,n.Sequence,te)),i.push(`;`)):i.push(`;`),e.test&&(i.push(h),i.push(a.generateExpression(e.test,n.Sequence,F))),i.push(`;`),e.update&&(i.push(h),i.push(a.generateExpression(e.update,n.Sequence,F))),i.push(`)`)}),i.push(this.maybeBlock(e.body,r&P?oe:I)),i},ForInStatement:function(e,t){return this.generateIterationForStatement(`in`,e,t&P?oe:I)},ForOfStatement:function(e,t){return this.generateIterationForStatement(`of`,e,t&P?oe:I)},LabeledStatement:function(e,t){return[e.label.name+`:`,this.maybeBlock(e.body,t&P?oe:I)]},Program:function(e,t){var n,r,i,a,o;for(a=e.body.length,n=[v&&a>0?`
|
|
1207
|
+
`:``],o=ce,i=0;i<a;++i)!v&&i===a-1&&(o|=P),w&&(i===0&&(e.body[0].leadingComments||Ae(e.range[0],e.body[i].range[0],n)),i>0&&!e.body[i-1].trailingComments&&!e.body[i].leadingComments&&Ae(e.body[i-1].range[1],e.body[i].range[0],n)),r=Te(this.generateStatement(e.body[i],o)),n.push(r),i+1<a&&!pe(Ce(r).toString())&&(w&&e.body[i+1].leadingComments||n.push(m)),w&&i===a-1&&(e.body[i].trailingComments||Ae(e.body[i].range[1],e.range[1],n));return n},FunctionDeclaration:function(e,t){return[Fe(e,!0),`function`,Ie(e)||we(),e.id?B(e.id):``,this.generateFunctionBody(e)]},ReturnStatement:function(e,t){return e.argument?[R(`return`,this.generateExpression(e.argument,n.Sequence,F)),this.semicolon(t)]:[`return`+this.semicolon(t)]},WhileStatement:function(e,t){var r,i=this;return Ee(function(){r=[`while`+h+`(`,i.generateExpression(e.test,n.Sequence,F),`)`]}),r.push(this.maybeBlock(e.body,t&P?oe:I)),r},WithStatement:function(e,t){var r,i=this;return Ee(function(){r=[`with`+h+`(`,i.generateExpression(e.object,n.Sequence,F),`)`]}),r.push(this.maybeBlock(e.body,t&P?oe:I)),r}},me(Pe.prototype,Pe.Statement),Pe.Expression={SequenceExpression:function(e,t,r){var i,a,o;for(n.Sequence<t&&(r|=k),i=[],a=0,o=e.expressions.length;a<o;++a)i.push(this.generateExpression(e.expressions[a],n.Assignment,r)),a+1<o&&i.push(`,`+h);return je(i,n.Sequence,t)},AssignmentExpression:function(e,t,n){return this.generateAssignment(e.left,e.right,e.operator,t,n)},ArrowFunctionExpression:function(e,t,r){return je(this.generateFunctionBody(e),n.ArrowFunction,t)},ConditionalExpression:function(e,t,r){return n.Conditional<t&&(r|=k),je([this.generateExpression(e.test,n.Coalesce,r),h+`?`+h,this.generateExpression(e.consequent,n.Assignment,r),h+`:`+h,this.generateExpression(e.alternate,n.Assignment,r)],n.Conditional,t)},LogicalExpression:function(e,t,n){return e.operator===`??`&&(n|=ee),this.BinaryExpression(e,t,n)},BinaryExpression:function(e,t,i){var a,s,c,l,u,d;return l=r[e.operator],s=e.operator===`**`?n.Postfix:l,c=e.operator===`**`?l:l+1,l<t&&(i|=k),u=this.generateExpression(e.left,s,i),d=u.toString(),a=d.charCodeAt(d.length-1)===47&&o.code.isIdentifierPartES5(e.operator.charCodeAt(0))?[u,we(),e.operator]:R(u,e.operator),u=this.generateExpression(e.right,c,i),e.operator===`/`&&u.toString().charAt(0)===`/`||e.operator.slice(-1)===`<`&&u.toString().slice(0,3)===`!--`?(a.push(we()),a.push(u)):a=R(a,u),e.operator===`in`&&!(i&k)||(e.operator===`||`||e.operator===`&&`)&&i&ee?[`(`,a,`)`]:je(a,l,t)},CallExpression:function(e,t,r){var i,a,o;for(i=[this.generateExpression(e.callee,n.Call,ne)],e.optional&&i.push(`?.`),i.push(`(`),a=0,o=e.arguments.length;a<o;++a)i.push(this.generateExpression(e.arguments[a],n.Assignment,F)),a+1<o&&i.push(`,`+h);return i.push(`)`),r&A?je(i,n.Call,t):[`(`,i,`)`]},ChainExpression:function(e,t,r){return n.OptionalChaining<t&&(r|=A),je(this.generateExpression(e.expression,n.OptionalChaining,r),n.OptionalChaining,t)},NewExpression:function(e,t,r){var i,a,o,s,c;if(a=e.arguments.length,c=r&j&&!g&&a===0?ae:re,i=R(`new`,this.generateExpression(e.callee,n.New,c)),!(r&j)||g||a>0){for(i.push(`(`),o=0,s=a;o<s;++o)i.push(this.generateExpression(e.arguments[o],n.Assignment,F)),o+1<s&&i.push(`,`+h);i.push(`)`)}return je(i,n.New,t)},MemberExpression:function(e,r,i){var a,s;return a=[this.generateExpression(e.object,n.Call,i&A?ne:re)],e.computed?(e.optional&&a.push(`?.`),a.push(`[`),a.push(this.generateExpression(e.property,n.Sequence,i&A?F:ae)),a.push(`]`)):(!e.optional&&e.object.type===t.Literal&&typeof e.object.value==`number`&&(s=Ce(a).toString(),s.indexOf(`.`)<0&&!/[eExX]/.test(s)&&o.code.isDecimalDigit(s.charCodeAt(s.length-1))&&!(s.length>=2&&s.charCodeAt(0)===48)&&a.push(` `)),a.push(e.optional?`?.`:`.`),a.push(B(e.property))),je(a,n.Member,r)},MetaProperty:function(e,t,r){var i;return i=[],i.push(typeof e.meta==`string`?e.meta:B(e.meta)),i.push(`.`),i.push(typeof e.property==`string`?e.property:B(e.property)),je(i,n.Member,t)},UnaryExpression:function(e,t,r){var i,a,s,c,l;return a=this.generateExpression(e.argument,n.Unary,F),h===``?i=R(e.operator,a):(i=[e.operator],e.operator.length>2?i=R(i,a):(c=Ce(i).toString(),l=c.charCodeAt(c.length-1),s=a.toString().charCodeAt(0),((l===43||l===45)&&l===s||o.code.isIdentifierPartES5(l)&&o.code.isIdentifierPartES5(s))&&i.push(we()),i.push(a))),je(i,n.Unary,t)},YieldExpression:function(e,t,r){var i;return i=e.delegate?`yield*`:`yield`,e.argument&&(i=R(i,this.generateExpression(e.argument,n.Yield,F))),je(i,n.Yield,t)},AwaitExpression:function(e,t,r){return je(R(e.all?`await*`:`await`,this.generateExpression(e.argument,n.Await,F)),n.Await,t)},UpdateExpression:function(e,t,r){return e.prefix?je([e.operator,this.generateExpression(e.argument,n.Unary,F)],n.Unary,t):je([this.generateExpression(e.argument,n.Postfix,F),e.operator],n.Postfix,t)},FunctionExpression:function(e,t,n){var r=[Fe(e,!0),`function`];return e.id?(r.push(Ie(e)||we()),r.push(B(e.id))):r.push(Ie(e)||h),r.push(this.generateFunctionBody(e)),r},ArrayPattern:function(e,t,n){return this.ArrayExpression(e,t,n,!0)},ArrayExpression:function(e,t,r,i){var a,o,c=this;return e.elements.length?(o=i?!1:e.elements.length>1,a=[`[`,o?m:``],Ee(function(t){var r,i;for(r=0,i=e.elements.length;r<i;++r)e.elements[r]?(a.push(o?t:``),a.push(c.generateExpression(e.elements[r],n.Assignment,F))):(o&&a.push(t),r+1===i&&a.push(`,`)),r+1<i&&a.push(`,`+(o?m:h))}),o&&!pe(Ce(a).toString())&&a.push(m),a.push(o?s:``),a.push(`]`),a):`[]`},RestElement:function(e,t,n){return`...`+this.generatePattern(e.argument)},ClassExpression:function(e,t,r){var i,a;return i=[`class`],e.id&&(i=R(i,this.generateExpression(e.id,n.Sequence,F))),e.superClass&&(a=R(`extends`,this.generateExpression(e.superClass,n.Unary,F)),i=R(i,a)),i.push(h),i.push(this.generateStatement(e.body,oe)),i},MethodDefinition:function(e,t,n){var r,i;return r=e.static?[`static`+h]:[],i=e.kind===`get`||e.kind===`set`?[R(e.kind,this.generatePropertyKey(e.key,e.computed)),this.generateFunctionBody(e.value)]:[Le(e),this.generatePropertyKey(e.key,e.computed),this.generateFunctionBody(e.value)],R(r,i)},Property:function(e,t,r){return e.kind===`get`||e.kind===`set`?[e.kind,we(),this.generatePropertyKey(e.key,e.computed),this.generateFunctionBody(e.value)]:e.shorthand?e.value.type===`AssignmentPattern`?this.AssignmentPattern(e.value,n.Sequence,F):this.generatePropertyKey(e.key,e.computed):e.method?[Le(e),this.generatePropertyKey(e.key,e.computed),this.generateFunctionBody(e.value)]:[this.generatePropertyKey(e.key,e.computed),`:`+h,this.generateExpression(e.value,n.Assignment,F)]},ObjectExpression:function(e,t,r){var i,a,o,c=this;return e.properties.length?(i=e.properties.length>1,Ee(function(){o=c.generateExpression(e.properties[0],n.Sequence,F)}),!i&&!fe(Ce(o).toString())?[`{`,h,o,h,`}`]:(Ee(function(t){var r,s;if(a=[`{`,m,t,o],i)for(a.push(`,`+m),r=1,s=e.properties.length;r<s;++r)a.push(t),a.push(c.generateExpression(e.properties[r],n.Sequence,F)),r+1<s&&a.push(`,`+m)}),pe(Ce(a).toString())||a.push(m),a.push(s),a.push(`}`),a)):`{}`},AssignmentPattern:function(e,t,n){return this.generateAssignment(e.left,e.right,`=`,t,n)},ObjectPattern:function(e,r,i){var a,o,c,l,u,d=this;if(!e.properties.length)return`{}`;if(l=!1,e.properties.length===1)u=e.properties[0],u.type===t.Property&&u.value.type!==t.Identifier&&(l=!0);else for(o=0,c=e.properties.length;o<c;++o)if(u=e.properties[o],u.type===t.Property&&!u.shorthand){l=!0;break}return a=[`{`,l?m:``],Ee(function(t){var r,i;for(r=0,i=e.properties.length;r<i;++r)a.push(l?t:``),a.push(d.generateExpression(e.properties[r],n.Sequence,F)),r+1<i&&a.push(`,`+(l?m:h))}),l&&!pe(Ce(a).toString())&&a.push(m),a.push(l?s:``),a.push(`}`),a},ThisExpression:function(e,t,n){return`this`},Super:function(e,t,n){return`super`},Identifier:function(e,t,n){return B(e)},ImportDefaultSpecifier:function(e,t,n){return B(e.id||e.local)},ImportNamespaceSpecifier:function(e,t,n){var r=[`*`],i=e.id||e.local;return i&&r.push(h+`as`+we()+B(i)),r},ImportSpecifier:function(e,t,n){var r=e.imported,i=[r.name],a=e.local;return a&&a.name!==r.name&&i.push(we()+`as`+we()+B(a)),i},ExportSpecifier:function(e,t,n){var r=e.local,i=[r.name],a=e.exported;return a&&a.name!==r.name&&i.push(we()+`as`+we()+B(a)),i},Literal:function(e,n,r){var i;if(e.hasOwnProperty(`raw`)&&x&&b.raw)try{if(i=x(e.raw).body[0].expression,i.type===t.Literal&&i.value===e.value)return e.raw}catch{}return e.regex?`/`+e.regex.pattern+`/`+e.regex.flags:typeof e.value==`bigint`?e.value.toString()+`n`:e.bigint?e.bigint+`n`:e.value===null?`null`:typeof e.value==`string`?L(e.value):typeof e.value==`number`?ge(e.value):typeof e.value==`boolean`?e.value?`true`:`false`:ve(e.value)},GeneratorExpression:function(e,t,n){return this.ComprehensionExpression(e,t,n)},ComprehensionExpression:function(e,r,i){var a,o,s,c,l=this;return a=e.type===t.GeneratorExpression?[`(`]:[`[`],b.moz.comprehensionExpressionStartsWithAssignment&&(c=this.generateExpression(e.body,n.Assignment,F),a.push(c)),e.blocks&&Ee(function(){for(o=0,s=e.blocks.length;o<s;++o)c=l.generateExpression(e.blocks[o],n.Sequence,F),o>0||b.moz.comprehensionExpressionStartsWithAssignment?a=R(a,c):a.push(c)}),e.filter&&(a=R(a,`if`+h),c=this.generateExpression(e.filter,n.Sequence,F),a=R(a,[`(`,c,`)`])),b.moz.comprehensionExpressionStartsWithAssignment||(c=this.generateExpression(e.body,n.Assignment,F),a=R(a,c)),a.push(e.type===t.GeneratorExpression?`)`:`]`),a},ComprehensionBlock:function(e,r,i){var a;return a=e.left.type===t.VariableDeclaration?[e.left.kind,we(),this.generateStatement(e.left.declarations[0],se)]:this.generateExpression(e.left,n.Call,F),a=R(a,e.of?`of`:`in`),a=R(a,this.generateExpression(e.right,n.Sequence,F)),[`for`+h+`(`,a,`)`]},SpreadElement:function(e,t,r){return[`...`,this.generateExpression(e.argument,n.Assignment,F)]},TaggedTemplateExpression:function(e,t,r){var i=ne;return r&A||(i=re),je([this.generateExpression(e.tag,n.Call,i),this.generateExpression(e.quasi,n.Primary,ie)],n.TaggedTemplate,t)},TemplateElement:function(e,t,n){return e.value.raw},TemplateLiteral:function(e,t,r){var i,a,o;for(i=["`"],a=0,o=e.quasis.length;a<o;++a)i.push(this.generateExpression(e.quasis[a],n.Primary,F)),a+1<o&&(i.push("${"+h),i.push(this.generateExpression(e.expressions[a],n.Sequence,F)),i.push(h+`}`));return i.push("`"),i},ModuleSpecifier:function(e,t,n){return this.Literal(e,t,n)},ImportExpression:function(e,t,r){return je([`import(`,this.generateExpression(e.source,n.Assignment,F),`)`],n.Call,t)}},me(Pe.prototype,Pe.Expression),Pe.prototype.generateExpression=function(e,n,r){var i,a;return a=e.type||t.Property,b.verbatim&&e.hasOwnProperty(b.verbatim)?Ne(e,n):(i=this[a](e,n,r),b.comment&&(i=ke(e,i)),Ce(i,e))},Pe.prototype.generateStatement=function(e,n){var r,i;return r=this[e.type](e,n),b.comment&&(r=ke(e,r)),i=Ce(r).toString(),e.type===t.Program&&!v&&m===``&&i.charAt(i.length-1)===`
|
|
1208
|
+
`&&(r=S?Ce(r).replaceRight(/\s+$/,``):i.replace(/\s+$/,``)),Ce(r,e)};function Re(e){var t;if(t=new Pe,O(e))return t.generateStatement(e,I);if(D(e))return t.generateExpression(e,n.Sequence,F);throw Error(`Unknown node type: `+e.type)}function ze(t,n){var r=ue(),a,o;return n==null?(n=r,c=n.format.indent.style,s=de(c,n.format.indent.base)):(typeof n.indent==`string`&&(r.format.indent.style=n.indent),typeof n.base==`number`&&(r.format.indent.base=n.base),n=he(r,n),c=n.format.indent.style,s=typeof n.base==`string`?n.base:de(c,n.format.indent.base)),l=n.format.json,u=n.format.renumber,d=l?!1:n.format.hexadecimal,f=l?`double`:n.format.quotes,p=n.format.escapeless,m=n.format.newline,h=n.format.space,n.format.compact&&(m=h=c=s=``),g=n.format.parentheses,_=n.format.semicolons,v=n.format.safeConcatenation,y=n.directive,x=l?null:n.parse,S=n.sourceMap,C=n.sourceCode,w=n.format.preserveBlankLines&&C!==null,b=n,S&&(i=e.browser?global.sourceMap.SourceNode:U0().SourceNode),a=Re(t),S?(o=a.toStringWithSourceMap({file:n.file,sourceRoot:n.sourceMapRoot}),n.sourceContent&&o.map.setSourceContent(n.sourceMap,n.sourceContent),n.sourceMapWithCode?o:o.map.toString()):(o={code:a.toString(),map:null},n.sourceMapWithCode?o:o.code)}T={indent:{style:``,base:0},renumber:!0,hexadecimal:!0,quotes:`auto`,escapeless:!0,compact:!0,parentheses:!1,semicolons:!1},E=ue().format,e.version=W0().version,e.generate=ze,e.attachComments=a.attachComments,e.Precedence=he({},n),e.browser=!1,e.FORMAT_MINIFY=T,e.FORMAT_DEFAULTS=E})()}}),K0=G$({"../../../node_modules/acorn/dist/acorn.js"(e,t){(function(n,r){typeof e==`object`&&typeof t<`u`?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n||=self,r(n.acorn={}))})(e,(function(e){var t={3:`abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile`,5:`class enum extends super const export import`,6:`enum`,strict:`implements interface let package private protected public static yield`,strictBind:`eval arguments`},n=`break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this`,r={5:n,"5module":n+` export import`,6:n+` const class extends export import super`},i=/^in(stanceof)?$/,a=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,o=`·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_`,s=RegExp(`[`+a+`]`),c=RegExp(`[`+a+o+`]`);a=o=null;var l=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],u=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function d(e,t){for(var n=65536,r=0;r<t.length;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}}function f(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&s.test(String.fromCharCode(e)):t===!1?!1:d(e,l)}function p(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&c.test(String.fromCharCode(e)):t===!1?!1:d(e,l)||d(e,u)}var m=function(e,t){t===void 0&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function h(e,t){return new m(e,{beforeExpr:!0,binop:t})}var g={beforeExpr:!0},_={startsExpr:!0},v={};function y(e,t){return t===void 0&&(t={}),t.keyword=e,v[e]=new m(e,t)}var b={num:new m(`num`,_),regexp:new m(`regexp`,_),string:new m(`string`,_),name:new m(`name`,_),eof:new m(`eof`),bracketL:new m(`[`,{beforeExpr:!0,startsExpr:!0}),bracketR:new m(`]`),braceL:new m(`{`,{beforeExpr:!0,startsExpr:!0}),braceR:new m(`}`),parenL:new m(`(`,{beforeExpr:!0,startsExpr:!0}),parenR:new m(`)`),comma:new m(`,`,g),semi:new m(`;`,g),colon:new m(`:`,g),dot:new m(`.`),question:new m(`?`,g),questionDot:new m(`?.`),arrow:new m(`=>`,g),template:new m(`template`),invalidTemplate:new m(`invalidTemplate`),ellipsis:new m(`...`,g),backQuote:new m("`",_),dollarBraceL:new m("${",{beforeExpr:!0,startsExpr:!0}),eq:new m(`=`,{beforeExpr:!0,isAssign:!0}),assign:new m(`_=`,{beforeExpr:!0,isAssign:!0}),incDec:new m(`++/--`,{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new m(`!/~`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:h(`||`,1),logicalAND:h(`&&`,2),bitwiseOR:h(`|`,3),bitwiseXOR:h(`^`,4),bitwiseAND:h(`&`,5),equality:h(`==/!=/===/!==`,6),relational:h(`</>/<=/>=`,7),bitShift:h(`<</>>/>>>`,8),plusMin:new m(`+/-`,{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:h(`%`,10),star:h(`*`,10),slash:h(`/`,10),starstar:new m(`**`,{beforeExpr:!0}),coalesce:h(`??`,1),_break:y(`break`),_case:y(`case`,g),_catch:y(`catch`),_continue:y(`continue`),_debugger:y(`debugger`),_default:y(`default`,g),_do:y(`do`,{isLoop:!0,beforeExpr:!0}),_else:y(`else`,g),_finally:y(`finally`),_for:y(`for`,{isLoop:!0}),_function:y(`function`,_),_if:y(`if`),_return:y(`return`,g),_switch:y(`switch`),_throw:y(`throw`,g),_try:y(`try`),_var:y(`var`),_const:y(`const`),_while:y(`while`,{isLoop:!0}),_with:y(`with`),_new:y(`new`,{beforeExpr:!0,startsExpr:!0}),_this:y(`this`,_),_super:y(`super`,_),_class:y(`class`,_),_extends:y(`extends`,g),_export:y(`export`),_import:y(`import`,_),_null:y(`null`,_),_true:y(`true`,_),_false:y(`false`,_),_in:y(`in`,{beforeExpr:!0,binop:7}),_instanceof:y(`instanceof`,{beforeExpr:!0,binop:7}),_typeof:y(`typeof`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:y(`void`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:y(`delete`,{beforeExpr:!0,prefix:!0,startsExpr:!0})},x=/\r\n?|\n|\u2028|\u2029/,S=new RegExp(x.source,`g`);function C(e,t){return e===10||e===13||!t&&(e===8232||e===8233)}var w=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,T=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,E=Object.prototype,D=E.hasOwnProperty,O=E.toString;function k(e,t){return D.call(e,t)}var A=Array.isArray||(function(e){return O.call(e)===`[object Array]`});function j(e){return RegExp(`^(?:`+e.replace(/ /g,`|`)+`)$`)}var M=function(e,t){this.line=e,this.column=t};M.prototype.offset=function(e){return new M(this.line,this.column+e)};var N=function(e,t,n){this.start=t,this.end=n,e.sourceFile!==null&&(this.source=e.sourceFile)};function P(e,t){for(var n=1,r=0;;){S.lastIndex=r;var i=S.exec(e);if(i&&i.index<t)++n,r=i.index+i[0].length;else return new M(n,t-r)}}var ee={ecmaVersion:10,sourceType:`script`,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};function te(e){var t={};for(var n in ee)t[n]=e&&k(e,n)?e[n]:ee[n];if(t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved??=t.ecmaVersion<5,A(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return A(t.onComment)&&(t.onComment=ne(t,t.onComment)),t}function ne(e,t){return function(n,r,i,a,o,s){var c={type:n?`Block`:`Line`,value:r,start:i,end:a};e.locations&&(c.loc=new N(this,o,s)),e.ranges&&(c.range=[i,a]),t.push(c)}}var F=1,re=2,ie=F|re,ae=4,I=8,oe=16,se=32,ce=64,le=128;function ue(e,t){return re|(e?ae:0)|(t?I:0)}var de=0,fe=1,pe=2,me=3,he=4,ge=5,_e=function(e,n,i){this.options=e=te(e),this.sourceFile=e.sourceFile,this.keywords=j(r[e.ecmaVersion>=6?6:e.sourceType===`module`?`5module`:5]);var a=``;if(e.allowReserved!==!0){for(var o=e.ecmaVersion;!(a=t[o]);o--);e.sourceType===`module`&&(a+=` await`)}this.reservedWords=j(a);var s=(a?a+` `:``)+t.strict;this.reservedWordsStrict=j(s),this.reservedWordsStrictBind=j(s+` `+t.strictBind),this.input=String(n),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf(`
|
|
1209
|
+
`,i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(x).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=b.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=e.sourceType===`module`,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},this.pos===0&&e.allowHashBang&&this.input.slice(0,2)===`#!`&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(F),this.regexpState=null},ve={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};_e.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},ve.inFunction.get=function(){return(this.currentVarScope().flags&re)>0},ve.inGenerator.get=function(){return(this.currentVarScope().flags&I)>0},ve.inAsync.get=function(){return(this.currentVarScope().flags&ae)>0},ve.allowSuper.get=function(){return(this.currentThisScope().flags&ce)>0},ve.allowDirectSuper.get=function(){return(this.currentThisScope().flags&le)>0},ve.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},_e.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags&re)>0},_e.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},_e.parse=function(e,t){return new this(t,e).parse()},_e.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},_e.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(_e.prototype,ve);var ye=_e.prototype,be=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;ye.strictDirective=function(e){for(;;){T.lastIndex=e,e+=T.exec(this.input)[0].length;var t=be.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])===`use strict`){T.lastIndex=e+t[0].length;var n=T.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return i===`;`||i===`}`||x.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i===`!`&&this.input.charAt(r+1)===`=`)}e+=t[0].length,T.lastIndex=e,e+=T.exec(this.input)[0].length,this.input[e]===`;`&&e++}},ye.eat=function(e){return this.type===e?(this.next(),!0):!1},ye.isContextual=function(e){return this.type===b.name&&this.value===e&&!this.containsEsc},ye.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},ye.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},ye.canInsertSemicolon=function(){return this.type===b.eof||this.type===b.braceR||x.test(this.input.slice(this.lastTokEnd,this.start))},ye.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},ye.semicolon=function(){!this.eat(b.semi)&&!this.insertSemicolon()&&this.unexpected()},ye.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},ye.expect=function(e){this.eat(e)||this.unexpected()},ye.unexpected=function(e){this.raise(e??this.start,`Unexpected token`)};function xe(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}ye.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,`Comma is not permitted after the rest element`);var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,`Parenthesized pattern`)}},ye.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,`Shorthand property assignments are valid only in destructuring patterns`),r>=0&&this.raiseRecoverable(r,`Redefinition of __proto__ property`)},ye.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,`Yield expression cannot be a default value`),this.awaitPos&&this.raise(this.awaitPos,`Await expression cannot be a default value`)},ye.isSimpleAssignTarget=function(e){return e.type===`ParenthesizedExpression`?this.isSimpleAssignTarget(e.expression):e.type===`Identifier`||e.type===`MemberExpression`};var L=_e.prototype;L.parseTopLevel=function(e){var t={};for(e.body||=[];this.type!==b.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var a=i[r];this.raiseRecoverable(this.undefinedExports[a].start,`Export '`+a+`' is not defined`)}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,`Program`)};var Se={kind:`loop`},Ce={kind:`switch`};L.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual(`let`))return!1;T.lastIndex=this.pos;var t=T.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(r===91)return!0;if(e)return!1;if(r===123)return!0;if(f(r,!0)){for(var a=n+1;p(this.input.charCodeAt(a),!0);)++a;var o=this.input.slice(n,a);if(!i.test(o))return!0}return!1},L.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual(`async`))return!1;T.lastIndex=this.pos;var e=T.exec(this.input),t=this.pos+e[0].length;return!x.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)===`function`&&(t+8===this.input.length||!p(this.input.charAt(t+8)))},L.parseStatement=function(e,t,n){var r=this.type,i=this.startNode(),a;switch(this.isLet(e)&&(r=b._var,a=`let`),r){case b._break:case b._continue:return this.parseBreakContinueStatement(i,r.keyword);case b._debugger:return this.parseDebuggerStatement(i);case b._do:return this.parseDoStatement(i);case b._for:return this.parseForStatement(i);case b._function:return e&&(this.strict||e!==`if`&&e!==`label`)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case b._class:return e&&this.unexpected(),this.parseClass(i,!0);case b._if:return this.parseIfStatement(i);case b._return:return this.parseReturnStatement(i);case b._switch:return this.parseSwitchStatement(i);case b._throw:return this.parseThrowStatement(i);case b._try:return this.parseTryStatement(i);case b._const:case b._var:return a||=this.value,e&&a!==`var`&&this.unexpected(),this.parseVarStatement(i,a);case b._while:return this.parseWhileStatement(i);case b._with:return this.parseWithStatement(i);case b.braceL:return this.parseBlock(!0,i);case b.semi:return this.parseEmptyStatement(i);case b._export:case b._import:if(this.options.ecmaVersion>10&&r===b._import){T.lastIndex=this.pos;var o=T.exec(this.input),s=this.pos+o[0].length,c=this.input.charCodeAt(s);if(c===40||c===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,`'import' and 'export' may only appear at the top level`),this.inModule||this.raise(this.start,`'import' and 'export' may appear only with 'sourceType: module'`)),r===b._import?this.parseImport(i):this.parseExport(i,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var l=this.value,u=this.parseExpression();return r===b.name&&u.type===`Identifier`&&this.eat(b.colon)?this.parseLabeledStatement(i,l,u,e):this.parseExpressionStatement(i,u)}},L.parseBreakContinueStatement=function(e,t){var n=t===`break`;this.next(),this.eat(b.semi)||this.insertSemicolon()?e.label=null:this.type===b.name?(e.label=this.parseIdent(),this.semicolon()):this.unexpected();for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(n||i.kind===`loop`)||e.label&&n))break}return r===this.labels.length&&this.raise(e.start,`Unsyntactic `+t),this.finishNode(e,n?`BreakStatement`:`ContinueStatement`)},L.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,`DebuggerStatement`)},L.parseDoStatement=function(e){return this.next(),this.labels.push(Se),e.body=this.parseStatement(`do`),this.labels.pop(),this.expect(b._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(b.semi):this.semicolon(),this.finishNode(e,`DoWhileStatement`)},L.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual(`await`)?this.lastTokStart:-1;if(this.labels.push(Se),this.enterScope(0),this.expect(b.parenL),this.type===b.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===b._var||this.type===b._const||n){var r=this.startNode(),i=n?`let`:this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,`VariableDeclaration`),(this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))&&r.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===b._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var a=new xe,o=this.parseExpression(!0,a);return this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual(`of`)?(this.options.ecmaVersion>=9&&(this.type===b._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(o,!1,a),this.checkLVal(o),this.parseForIn(e,o)):(this.checkExpressionErrors(a,!0),t>-1&&this.unexpected(t),this.parseFor(e,o))},L.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,R|(n?0:Te),!1,t)},L.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(`if`),e.alternate=this.eat(b._else)?this.parseStatement(`if`):null,this.finishNode(e,`IfStatement`)},L.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,`'return' outside of function`),this.next(),this.eat(b.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,`ReturnStatement`)},L.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(b.braceL),this.labels.push(Ce),this.enterScope(0);for(var t,n=!1;this.type!==b.braceR;)if(this.type===b._case||this.type===b._default){var r=this.type===b._case;t&&this.finishNode(t,`SwitchCase`),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,`Multiple default clauses`),n=!0,t.test=null),this.expect(b.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,`SwitchCase`),this.next(),this.labels.pop(),this.finishNode(e,`SwitchStatement`)},L.parseThrowStatement=function(e){return this.next(),x.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,`Illegal newline after throw`),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,`ThrowStatement`)};var we=[];L.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===b._catch){var t=this.startNode();if(this.next(),this.eat(b.parenL)){t.param=this.parseBindingAtom();var n=t.param.type===`Identifier`;this.enterScope(n?se:0),this.checkLVal(t.param,n?he:pe),this.expect(b.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,`CatchClause`)}return e.finalizer=this.eat(b._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,`Missing catch or finally clause`),this.finishNode(e,`TryStatement`)},L.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,`VariableDeclaration`)},L.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Se),e.body=this.parseStatement(`while`),this.labels.pop(),this.finishNode(e,`WhileStatement`)},L.parseWithStatement=function(e){return this.strict&&this.raise(this.start,`'with' in strict mode`),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement(`with`),this.finishNode(e,`WithStatement`)},L.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,`EmptyStatement`)},L.parseLabeledStatement=function(e,t,n,r){for(var i=0,a=this.labels;i<a.length;i+=1)a[i].name===t&&this.raise(n.start,`Label '`+t+`' is already declared`);for(var o=this.type.isLoop?`loop`:this.type===b._switch?`switch`:null,s=this.labels.length-1;s>=0;s--){var c=this.labels[s];if(c.statementStart===e.start)c.statementStart=this.start,c.kind=o;else break}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(r?r.indexOf(`label`)===-1?r+`label`:r:`label`),this.labels.pop(),e.label=n,this.finishNode(e,`LabeledStatement`)},L.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,`ExpressionStatement`)},L.parseBlock=function(e,t,n){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(b.braceL),e&&this.enterScope(0);this.type!==b.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,`BlockStatement`)},L.parseFor=function(e,t){return e.init=t,this.expect(b.semi),e.test=this.type===b.semi?null:this.parseExpression(),this.expect(b.semi),e.update=this.type===b.parenR?null:this.parseExpression(),this.expect(b.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,`ForStatement`)},L.parseForIn=function(e,t){var n=this.type===b._in;return this.next(),t.type===`VariableDeclaration`&&t.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||t.kind!==`var`||t.declarations[0].id.type!==`Identifier`)?this.raise(t.start,(n?`for-in`:`for-of`)+` loop variable declaration may not have an initializer`):t.type===`AssignmentPattern`&&this.raise(t.start,`Invalid left-hand side in for-loop`),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(b.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,n?`ForInStatement`:`ForOfStatement`)},L.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(b.eq)?r.init=this.parseMaybeAssign(t):n===`const`&&!(this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))?this.unexpected():r.id.type!==`Identifier`&&!(t&&(this.type===b._in||this.isContextual(`of`)))?this.raise(this.lastTokEnd,`Complex binding patterns require an initialization value`):r.init=null,e.declarations.push(this.finishNode(r,`VariableDeclarator`)),!this.eat(b.comma))break}return e},L.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLVal(e.id,t===`var`?fe:pe,!1)};var R=1,Te=2,Ee=4;L.parseFunction=function(e,t,n,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===b.star&&t&Te&&this.unexpected(),e.generator=this.eat(b.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&R&&(e.id=t&Ee&&this.type!==b.name?null:this.parseIdent(),e.id&&!(t&Te)&&this.checkLVal(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?fe:pe:me));var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ue(e.async,e.generator)),t&R||(e.id=this.type===b.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,t&R?`FunctionDeclaration`:`FunctionExpression`)},L.parseFunctionParams=function(e){this.expect(b.parenL),e.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},L.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.startNode(),i=!1;for(r.body=[],this.expect(b.braceL);this.type!==b.braceR;){var a=this.parseClassElement(e.superClass!==null);a&&(r.body.push(a),a.type===`MethodDefinition`&&a.kind===`constructor`&&(i&&this.raise(a.start,`Duplicate constructor in the same class`),i=!0))}return this.strict=n,this.next(),e.body=this.finishNode(r,`ClassBody`),this.finishNode(e,t?`ClassDeclaration`:`ClassExpression`)},L.parseClassElement=function(e){var t=this;if(this.eat(b.semi))return null;var n=this.startNode(),r=function(e,r){r===void 0&&(r=!1);var i=t.start,a=t.startLoc;return t.eatContextual(e)?t.type!==b.parenL&&(!r||!t.canInsertSemicolon())?!0:(n.key&&t.unexpected(),n.computed=!1,n.key=t.startNodeAt(i,a),n.key.name=e,t.finishNode(n.key,`Identifier`),!1):!1};n.kind=`method`,n.static=r(`static`);var i=this.eat(b.star),a=!1;i||(this.options.ecmaVersion>=8&&r(`async`,!0)?(a=!0,i=this.options.ecmaVersion>=9&&this.eat(b.star)):r(`get`)?n.kind=`get`:r(`set`)&&(n.kind=`set`)),n.key||this.parsePropertyName(n);var o=n.key,s=!1;return!n.computed&&!n.static&&(o.type===`Identifier`&&o.name===`constructor`||o.type===`Literal`&&o.value===`constructor`)?(n.kind!==`method`&&this.raise(o.start,`Constructor can't have get/set modifier`),i&&this.raise(o.start,`Constructor can't be a generator`),a&&this.raise(o.start,`Constructor can't be an async method`),n.kind=`constructor`,s=e):n.static&&o.type===`Identifier`&&o.name===`prototype`&&this.raise(o.start,`Classes may not have a static property named prototype`),this.parseClassMethod(n,i,a,s),n.kind===`get`&&n.value.params.length!==0&&this.raiseRecoverable(n.value.start,`getter should have no params`),n.kind===`set`&&n.value.params.length!==1&&this.raiseRecoverable(n.value.start,`setter should have exactly one param`),n.kind===`set`&&n.value.params[0].type===`RestElement`&&this.raiseRecoverable(n.value.params[0].start,`Setter cannot use rest params`),n},L.parseClassMethod=function(e,t,n,r){return e.value=this.parseMethod(t,n,r),this.finishNode(e,`MethodDefinition`)},L.parseClassId=function(e,t){this.type===b.name?(e.id=this.parseIdent(),t&&this.checkLVal(e.id,pe,!1)):(t===!0&&this.unexpected(),e.id=null)},L.parseClassSuper=function(e){e.superClass=this.eat(b._extends)?this.parseExprSubscripts():null},L.parseExport=function(e,t){if(this.next(),this.eat(b.star))return this.options.ecmaVersion>=11&&(this.eatContextual(`as`)?(e.exported=this.parseIdent(!0),this.checkExport(t,e.exported.name,this.lastTokStart)):e.exported=null),this.expectContextual(`from`),this.type!==b.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,`ExportAllDeclaration`);if(this.eat(b._default)){this.checkExport(t,`default`,this.lastTokStart);var n;if(this.type===b._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(r,R|Ee,!1,n)}else if(this.type===b._class){var i=this.startNode();e.declaration=this.parseClass(i,`nullableID`)}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,`ExportDefaultDeclaration`)}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),e.declaration.type===`VariableDeclaration`?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual(`from`))this.type!==b.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var a=0,o=e.specifiers;a<o.length;a+=1){var s=o[a];this.checkUnreserved(s.local),this.checkLocalExport(s.local)}e.source=null}this.semicolon()}return this.finishNode(e,`ExportNamedDeclaration`)},L.checkExport=function(e,t,n){e&&(k(e,t)&&this.raiseRecoverable(n,`Duplicate export '`+t+`'`),e[t]=!0)},L.checkPatternExport=function(e,t){var n=t.type;if(n===`Identifier`)this.checkExport(e,t.name,t.start);else if(n===`ObjectPattern`)for(var r=0,i=t.properties;r<i.length;r+=1){var a=i[r];this.checkPatternExport(e,a)}else if(n===`ArrayPattern`)for(var o=0,s=t.elements;o<s.length;o+=1){var c=s[o];c&&this.checkPatternExport(e,c)}else n===`Property`?this.checkPatternExport(e,t.value):n===`AssignmentPattern`?this.checkPatternExport(e,t.left):n===`RestElement`?this.checkPatternExport(e,t.argument):n===`ParenthesizedExpression`&&this.checkPatternExport(e,t.expression)},L.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},L.shouldParseExportStatement=function(){return this.type.keyword===`var`||this.type.keyword===`const`||this.type.keyword===`class`||this.type.keyword===`function`||this.isLet()||this.isAsyncFunction()},L.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(b.braceL);!this.eat(b.braceR);){if(n)n=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;var r=this.startNode();r.local=this.parseIdent(!0),r.exported=this.eatContextual(`as`)?this.parseIdent(!0):r.local,this.checkExport(e,r.exported.name,r.exported.start),t.push(this.finishNode(r,`ExportSpecifier`))}return t},L.parseImport=function(e){return this.next(),this.type===b.string?(e.specifiers=we,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual(`from`),e.source=this.type===b.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,`ImportDeclaration`)},L.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===b.name){var n=this.startNode();if(n.local=this.parseIdent(),this.checkLVal(n.local,pe),e.push(this.finishNode(n,`ImportDefaultSpecifier`)),!this.eat(b.comma))return e}if(this.type===b.star){var r=this.startNode();return this.next(),this.expectContextual(`as`),r.local=this.parseIdent(),this.checkLVal(r.local,pe),e.push(this.finishNode(r,`ImportNamespaceSpecifier`)),e}for(this.expect(b.braceL);!this.eat(b.braceR);){if(t)t=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;var i=this.startNode();i.imported=this.parseIdent(!0),this.eatContextual(`as`)?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLVal(i.local,pe),e.push(this.finishNode(i,`ImportSpecifier`))}return e},L.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},L.isDirectiveCandidate=function(e){return e.type===`ExpressionStatement`&&e.expression.type===`Literal`&&typeof e.expression.value==`string`&&(this.input[e.start]===`"`||this.input[e.start]===`'`)};var De=_e.prototype;De.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case`Identifier`:this.inAsync&&e.name===`await`&&this.raise(e.start,`Cannot use 'await' as identifier inside an async function`);break;case`ObjectPattern`:case`ArrayPattern`:case`RestElement`:break;case`ObjectExpression`:e.type=`ObjectPattern`,n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.toAssignable(a,t),a.type===`RestElement`&&(a.argument.type===`ArrayPattern`||a.argument.type===`ObjectPattern`)&&this.raise(a.argument.start,`Unexpected token`)}break;case`Property`:e.kind!==`init`&&this.raise(e.key.start,`Object pattern can't contain getter or setter`),this.toAssignable(e.value,t);break;case`ArrayExpression`:e.type=`ArrayPattern`,n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case`SpreadElement`:e.type=`RestElement`,this.toAssignable(e.argument,t),e.argument.type===`AssignmentPattern`&&this.raise(e.argument.start,`Rest elements cannot have a default value`);break;case`AssignmentExpression`:e.operator!==`=`&&this.raise(e.left.end,`Only '=' operator can be used for specifying default value.`),e.type=`AssignmentPattern`,delete e.operator,this.toAssignable(e.left,t);case`AssignmentPattern`:break;case`ParenthesizedExpression`:this.toAssignable(e.expression,t,n);break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:if(!t)break;default:this.raise(e.start,`Assigning to rvalue`)}else n&&this.checkPatternErrors(n,!0);return e},De.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var a=e[n-1];this.options.ecmaVersion===6&&t&&a&&a.type===`RestElement`&&a.argument.type!==`Identifier`&&this.unexpected(a.argument.start)}return e},De.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,`SpreadElement`)},De.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==b.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,`RestElement`)},De.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case b.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(b.bracketR,!0,!0),this.finishNode(e,`ArrayPattern`);case b.braceL:return this.parseObj(!0)}return this.parseIdent()},De.parseBindingList=function(e,t,n){for(var r=[],i=!0;!this.eat(e);)if(i?i=!1:this.expect(b.comma),t&&this.type===b.comma)r.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===b.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),r.push(a),this.type===b.comma&&this.raise(this.start,`Comma is not permitted after the rest element`),this.expect(e);break}else{var o=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(o),r.push(o)}}return r},De.parseBindingListItem=function(e){return e},De.parseMaybeDefault=function(e,t,n){if(n||=this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(b.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,`AssignmentPattern`)},De.checkLVal=function(e,t,n){switch(t===void 0&&(t=de),e.type){case`Identifier`:t===pe&&e.name===`let`&&this.raiseRecoverable(e.start,`let is disallowed as a lexically bound name`),this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(t?`Binding `:`Assigning to `)+e.name+` in strict mode`),n&&(k(n,e.name)&&this.raiseRecoverable(e.start,`Argument name clash`),n[e.name]=!0),t!==de&&t!==ge&&this.declareName(e.name,t,e.start);break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:t&&this.raiseRecoverable(e.start,`Binding member expression`);break;case`ObjectPattern`:for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.checkLVal(a,t,n)}break;case`Property`:this.checkLVal(e.value,t,n);break;case`ArrayPattern`:for(var o=0,s=e.elements;o<s.length;o+=1){var c=s[o];c&&this.checkLVal(c,t,n)}break;case`AssignmentPattern`:this.checkLVal(e.left,t,n);break;case`RestElement`:this.checkLVal(e.argument,t,n);break;case`ParenthesizedExpression`:this.checkLVal(e.expression,t,n);break;default:this.raise(e.start,(t?`Binding`:`Assigning to`)+` rvalue`)}};var z=_e.prototype;z.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&e.type===`SpreadElement`)&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r=e.key,i;switch(r.type){case`Identifier`:i=r.name;break;case`Literal`:i=String(r.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6){i===`__proto__`&&a===`init`&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=r.start):this.raiseRecoverable(r.start,`Redefinition of __proto__ property`)),t.proto=!0);return}i=`$`+i;var o=t[i];o?(a===`init`?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(r.start,`Redefinition of property`):o=t[i]={init:!1,get:!1,set:!1},o[a]=!0}},z.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===b.comma){var a=this.startNodeAt(n,r);for(a.expressions=[i];this.eat(b.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,`SequenceExpression`)}return i},z.parseMaybeAssign=function(e,t,n){if(this.isContextual(`yield`)){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,a=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,t.parenthesizedAssign=t.trailingComma=-1):(t=new xe,r=!0);var o=this.start,s=this.startLoc;(this.type===b.parenL||this.type===b.name)&&(this.potentialArrowAt=this.start);var c=this.parseMaybeConditional(e,t);if(n&&(c=n.call(this,c,o,s)),this.type.isAssign){var l=this.startNodeAt(o,s);return l.operator=this.value,l.left=this.type===b.eq?this.toAssignable(c,!1,t):c,r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.left.start&&(t.shorthandAssign=-1),this.checkLVal(c),this.next(),l.right=this.parseMaybeAssign(e),this.finishNode(l,`AssignmentExpression`)}else r&&this.checkExpressionErrors(t,!0);return i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),c},z.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(b.question)){var a=this.startNodeAt(n,r);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(b.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,`ConditionalExpression`)}return i},z.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1);return this.checkExpressionErrors(t)||i.start===n&&i.type===`ArrowFunctionExpression`?i:this.parseExprOp(i,n,r,-1,e)},z.parseExprOp=function(e,t,n,r,i){var a=this.type.binop;if(a!=null&&(!i||this.type!==b._in)&&a>r){var o=this.type===b.logicalOR||this.type===b.logicalAND,s=this.type===b.coalesce;s&&(a=b.logicalAND.binop);var c=this.value;this.next();var l=this.start,u=this.startLoc,d=this.parseExprOp(this.parseMaybeUnary(null,!1),l,u,a,i),f=this.buildBinary(t,n,e,d,c,o||s);return(o&&this.type===b.coalesce||s&&(this.type===b.logicalOR||this.type===b.logicalAND))&&this.raiseRecoverable(this.start,`Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses`),this.parseExprOp(f,t,n,r,i)}return e},z.buildBinary=function(e,t,n,r,i,a){var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,a?`LogicalExpression`:`BinaryExpression`)},z.parseMaybeUnary=function(e,t){var n=this.start,r=this.startLoc,i;if(this.isContextual(`await`)&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))i=this.parseAwait(),t=!0;else if(this.type.prefix){var a=this.startNode(),o=this.type===b.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),o?this.checkLVal(a.argument):this.strict&&a.operator===`delete`&&a.argument.type===`Identifier`?this.raiseRecoverable(a.start,`Deleting local variable in strict mode`):t=!0,i=this.finishNode(a,o?`UpdateExpression`:`UnaryExpression`)}else{if(i=this.parseExprSubscripts(e),this.checkExpressionErrors(e))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var s=this.startNodeAt(n,r);s.operator=this.value,s.prefix=!1,s.argument=i,this.checkLVal(i),this.next(),i=this.finishNode(s,`UpdateExpression`)}}return!t&&this.eat(b.starstar)?this.buildBinary(n,r,i,this.parseMaybeUnary(null,!1),`**`,!1):i},z.parseExprSubscripts=function(e){var t=this.start,n=this.startLoc,r=this.parseExprAtom(e);if(r.type===`ArrowFunctionExpression`&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==`)`)return r;var i=this.parseSubscripts(r,t,n);return e&&i.type===`MemberExpression`&&(e.parenthesizedAssign>=i.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=i.start&&(e.parenthesizedBind=-1)),i},z.parseSubscripts=function(e,t,n,r){for(var i=this.options.ecmaVersion>=8&&e.type===`Identifier`&&e.name===`async`&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,a=!1;;){var o=this.parseSubscript(e,t,n,r,i,a);if(o.optional&&(a=!0),o===e||o.type===`ArrowFunctionExpression`){if(a){var s=this.startNodeAt(t,n);s.expression=o,o=this.finishNode(s,`ChainExpression`)}return o}e=o}},z.parseSubscript=function(e,t,n,r,i,a){var o=this.options.ecmaVersion>=11,s=o&&this.eat(b.questionDot);r&&s&&this.raise(this.lastTokStart,`Optional chaining cannot appear in the callee of new expressions`);var c=this.eat(b.bracketL);if(c||s&&this.type!==b.parenL&&this.type!==b.backQuote||this.eat(b.dot)){var l=this.startNodeAt(t,n);l.object=e,l.property=c?this.parseExpression():this.parseIdent(this.options.allowReserved!==`never`),l.computed=!!c,c&&this.expect(b.bracketR),o&&(l.optional=s),e=this.finishNode(l,`MemberExpression`)}else if(!r&&this.eat(b.parenL)){var u=new xe,d=this.yieldPos,f=this.awaitPos,p=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1,u);if(i&&!s&&!this.canInsertSemicolon()&&this.eat(b.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,`Cannot use 'await' as identifier inside an async function`),this.yieldPos=d,this.awaitPos=f,this.awaitIdentPos=p,this.parseArrowExpression(this.startNodeAt(t,n),m,!0);this.checkExpressionErrors(u,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=f||this.awaitPos,this.awaitIdentPos=p||this.awaitIdentPos;var h=this.startNodeAt(t,n);h.callee=e,h.arguments=m,o&&(h.optional=s),e=this.finishNode(h,`CallExpression`)}else if(this.type===b.backQuote){(s||a)&&this.raise(this.start,`Optional chaining cannot appear in the tag of tagged template expressions`);var g=this.startNodeAt(t,n);g.tag=e,g.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(g,`TaggedTemplateExpression`)}return e},z.parseExprAtom=function(e){this.type===b.slash&&this.readRegexp();var t,n=this.potentialArrowAt===this.start;switch(this.type){case b._super:return this.allowSuper||this.raise(this.start,`'super' keyword outside a method`),t=this.startNode(),this.next(),this.type===b.parenL&&!this.allowDirectSuper&&this.raise(t.start,`super() call outside constructor of a subclass`),this.type!==b.dot&&this.type!==b.bracketL&&this.type!==b.parenL&&this.unexpected(),this.finishNode(t,`Super`);case b._this:return t=this.startNode(),this.next(),this.finishNode(t,`ThisExpression`);case b.name:var r=this.start,i=this.startLoc,a=this.containsEsc,o=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!a&&o.name===`async`&&!this.canInsertSemicolon()&&this.eat(b._function))return this.parseFunction(this.startNodeAt(r,i),0,!1,!0);if(n&&!this.canInsertSemicolon()){if(this.eat(b.arrow))return this.parseArrowExpression(this.startNodeAt(r,i),[o],!1);if(this.options.ecmaVersion>=8&&o.name===`async`&&this.type===b.name&&!a)return o=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(b.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(r,i),[o],!0)}return o;case b.regexp:var s=this.value;return t=this.parseLiteral(s.value),t.regex={pattern:s.pattern,flags:s.flags},t;case b.num:case b.string:return this.parseLiteral(this.value);case b._null:case b._true:case b._false:return t=this.startNode(),t.value=this.type===b._null?null:this.type===b._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,`Literal`);case b.parenL:var c=this.start,l=this.parseParenAndDistinguishExpression(n);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(l)&&(e.parenthesizedAssign=c),e.parenthesizedBind<0&&(e.parenthesizedBind=c)),l;case b.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(b.bracketR,!0,!0,e),this.finishNode(t,`ArrayExpression`);case b.braceL:return this.parseObj(!1,e);case b._function:return t=this.startNode(),this.next(),this.parseFunction(t,0);case b._class:return this.parseClass(this.startNode(),!1);case b._new:return this.parseNew();case b.backQuote:return this.parseTemplate();case b._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},z.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword import`);var t=this.parseIdent(!0);switch(this.type){case b.parenL:return this.parseDynamicImport(e);case b.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},z.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(b.parenR)){var t=this.start;this.eat(b.comma)&&this.eat(b.parenR)?this.raiseRecoverable(t,`Trailing comma is not allowed in import()`):this.unexpected(t)}return this.finishNode(e,`ImportExpression`)},z.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`meta`&&this.raiseRecoverable(e.property.start,`The only valid meta property for import is 'import.meta'`),t&&this.raiseRecoverable(e.start,`'import.meta' must not contain escaped characters`),this.options.sourceType!==`module`&&this.raiseRecoverable(e.start,`Cannot use 'import.meta' outside a module`),this.finishNode(e,`MetaProperty`)},z.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,``)),this.next(),this.finishNode(t,`Literal`)},z.parseParenExpression=function(){this.expect(b.parenL);var e=this.parseExpression();return this.expect(b.parenR),e},z.parseParenAndDistinguishExpression=function(e){var t=this.start,n=this.startLoc,r,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a=this.start,o=this.startLoc,s=[],c=!0,l=!1,u=new xe,d=this.yieldPos,f=this.awaitPos,p;for(this.yieldPos=0,this.awaitPos=0;this.type!==b.parenR;)if(c?c=!1:this.expect(b.comma),i&&this.afterTrailingComma(b.parenR,!0)){l=!0;break}else if(this.type===b.ellipsis){p=this.start,s.push(this.parseParenItem(this.parseRestBinding())),this.type===b.comma&&this.raise(this.start,`Comma is not permitted after the rest element`);break}else s.push(this.parseMaybeAssign(!1,u,this.parseParenItem));var m=this.start,h=this.startLoc;if(this.expect(b.parenR),e&&!this.canInsertSemicolon()&&this.eat(b.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=f,this.parseParenArrowList(t,n,s);(!s.length||l)&&this.unexpected(this.lastTokStart),p&&this.unexpected(p),this.checkExpressionErrors(u,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=f||this.awaitPos,s.length>1?(r=this.startNodeAt(a,o),r.expressions=s,this.finishNodeAt(r,`SequenceExpression`,m,h)):r=s[0]}else r=this.parseParenExpression();if(this.options.preserveParens){var g=this.startNodeAt(t,n);return g.expression=r,this.finishNode(g,`ParenthesizedExpression`)}else return r},z.parseParenItem=function(e){return e},z.parseParenArrowList=function(e,t,n){return this.parseArrowExpression(this.startNodeAt(e,t),n)};var Oe=[];z.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword new`);var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(b.dot)){e.meta=t;var n=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`target`&&this.raiseRecoverable(e.property.start,`The only valid meta property for new is 'new.target'`),n&&this.raiseRecoverable(e.start,`'new.target' must not contain escaped characters`),this.inNonArrowFunction()||this.raiseRecoverable(e.start,`'new.target' can only be used in functions`),this.finishNode(e,`MetaProperty`)}var r=this.start,i=this.startLoc,a=this.type===b._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0),a&&e.callee.type===`ImportExpression`&&this.raise(r,`Cannot use new with import()`),this.eat(b.parenL)?e.arguments=this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Oe,this.finishNode(e,`NewExpression`)},z.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===b.invalidTemplate?(t||this.raiseRecoverable(this.start,`Bad escape sequence in untagged template literal`),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
1210
|
+
`),cooked:this.value},this.next(),n.tail=this.type===b.backQuote,this.finishNode(n,`TemplateElement`)},z.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===b.eof&&this.raise(this.pos,`Unterminated template literal`),this.expect(b.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(b.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,`TemplateLiteral`)},z.isAsyncProp=function(e){return!e.computed&&e.key.type===`Identifier`&&e.key.name===`async`&&(this.type===b.name||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===b.star)&&!x.test(this.input.slice(this.lastTokEnd,this.start))},z.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(b.braceR);){if(r)r=!1;else if(this.expect(b.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(b.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?`ObjectPattern`:`ObjectExpression`)},z.parseProperty=function(e,t){var n=this.startNode(),r,i,a,o;if(this.options.ecmaVersion>=9&&this.eat(b.ellipsis))return e?(n.argument=this.parseIdent(!1),this.type===b.comma&&this.raise(this.start,`Comma is not permitted after the rest element`),this.finishNode(n,`RestElement`)):(this.type===b.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),n.argument=this.parseMaybeAssign(!1,t),this.type===b.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(n,`SpreadElement`));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(e||t)&&(a=this.start,o=this.startLoc),e||(r=this.eat(b.star)));var s=this.containsEsc;return this.parsePropertyName(n),!e&&!s&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(n)?(i=!0,r=this.options.ecmaVersion>=9&&this.eat(b.star),this.parsePropertyName(n,t)):i=!1,this.parsePropertyValue(n,e,r,i,a,o,t,s),this.finishNode(n,`Property`)},z.parsePropertyValue=function(e,t,n,r,i,a,o,s){if((n||r)&&this.type===b.colon&&this.unexpected(),this.eat(b.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind=`init`;else if(this.options.ecmaVersion>=6&&this.type===b.parenL)t&&this.unexpected(),e.kind=`init`,e.method=!0,e.value=this.parseMethod(n,r);else if(!t&&!s&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type===`Identifier`&&(e.key.name===`get`||e.key.name===`set`)&&this.type!==b.comma&&this.type!==b.braceR&&this.type!==b.eq){(n||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var c=e.kind===`get`?0:1;if(e.value.params.length!==c){var l=e.value.start;e.kind===`get`?this.raiseRecoverable(l,`getter should have no params`):this.raiseRecoverable(l,`setter should have exactly one param`)}else e.kind===`set`&&e.value.params[0].type===`RestElement`&&this.raiseRecoverable(e.value.params[0].start,`Setter cannot use rest params`)}else this.options.ecmaVersion>=6&&!e.computed&&e.key.type===`Identifier`?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=i),e.kind=`init`,t?e.value=this.parseMaybeDefault(i,a,e.key):this.type===b.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,e.key)):e.value=e.key,e.shorthand=!0):this.unexpected()},z.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(b.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(b.bracketR),e.key;e.computed=!1}return e.key=this.type===b.num||this.type===b.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`)},z.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},z.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ue(t,r.generator)|ce|(n?le:0)),this.expect(b.parenL),r.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(r,`FunctionExpression`)},z.parseArrowExpression=function(e,t,n){var r=this.yieldPos,i=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(ue(n,!1)|oe),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1),this.yieldPos=r,this.awaitPos=i,this.awaitIdentPos=a,this.finishNode(e,`ArrowFunctionExpression`)},z.parseFunctionBody=function(e,t,n){var r=t&&this.type!==b.braceL,i=this.strict,a=!1;if(r)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!i||o)&&(a=this.strictDirective(this.end),a&&o&&this.raiseRecoverable(e.start,`Illegal 'use strict' directive in function with non-simple parameter list`));var s=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!i&&!a&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLVal(e.id,ge),e.body=this.parseBlock(!1,void 0,a&&!i),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=s}this.exitScope()},z.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1)if(n[t].type!==`Identifier`)return!1;return!0},z.checkParams=function(e,t){for(var n={},r=0,i=e.params;r<i.length;r+=1){var a=i[r];this.checkLVal(a,fe,t?null:n)}},z.parseExprList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(b.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===b.comma?o=null:this.type===b.ellipsis?(o=this.parseSpread(r),r&&this.type===b.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i},z.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;this.inGenerator&&r===`yield`&&this.raiseRecoverable(t,`Cannot use 'yield' as identifier inside a generator`),this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use 'await' as identifier inside an async function`),this.keywords.test(r)&&this.raise(t,`Unexpected keyword '`+r+`'`),!(this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf(`\\`)!==-1)&&(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(!this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use keyword 'await' outside an async function`),this.raiseRecoverable(t,`The keyword '`+r+`' is reserved`))},z.parseIdent=function(e,t){var n=this.startNode();return this.type===b.name?n.name=this.value:this.type.keyword?(n.name=this.type.keyword,(n.name===`class`||n.name===`function`)&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(n,`Identifier`),e||(this.checkUnreserved(n),n.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=n.start)),n},z.parseYield=function(e){this.yieldPos||=this.start;var t=this.startNode();return this.next(),this.type===b.semi||this.canInsertSemicolon()||this.type!==b.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(b.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,`YieldExpression`)},z.parseAwait=function(){this.awaitPos||=this.start;var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!1),this.finishNode(e,`AwaitExpression`)};var ke=_e.prototype;ke.raise=function(e,t){var n=P(this.input,e);t+=` (`+n.line+`:`+n.column+`)`;var r=SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},ke.raiseRecoverable=ke.raise,ke.curPosition=function(){if(this.options.locations)return new M(this.curLine,this.pos-this.lineStart)};var Ae=_e.prototype,je=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};Ae.enterScope=function(e){this.scopeStack.push(new je(e))},Ae.exitScope=function(){this.scopeStack.pop()},Ae.treatFunctionsAsVarInScope=function(e){return e.flags&re||!this.inModule&&e.flags&F},Ae.declareName=function(e,t,n){var r=!1;if(t===pe){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&F&&delete this.undefinedExports[e]}else if(t===he)this.currentScope().lexical.push(e);else if(t===me){var a=this.currentScope();r=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var s=this.scopeStack[o];if(s.lexical.indexOf(e)>-1&&!(s.flags&se&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){r=!0;break}if(s.var.push(e),this.inModule&&s.flags&F&&delete this.undefinedExports[e],s.flags&ie)break}r&&this.raiseRecoverable(n,`Identifier '`+e+`' has already been declared`)},Ae.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},Ae.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Ae.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&ie)return t}},Ae.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&ie&&!(t.flags&oe))return t}};var Me=function(e,t,n){this.type=``,this.start=t,this.end=0,e.options.locations&&(this.loc=new N(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},Ne=_e.prototype;Ne.startNode=function(){return new Me(this,this.start,this.startLoc)},Ne.startNodeAt=function(e,t){return new Me(this,e,t)};function Pe(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}Ne.finishNode=function(e,t){return Pe.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},Ne.finishNodeAt=function(e,t,n,r){return Pe.call(this,e,t,n,r)};var B=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},Fe={b_stat:new B(`{`,!1),b_expr:new B(`{`,!0),b_tmpl:new B("${",!1),p_stat:new B(`(`,!1),p_expr:new B(`(`,!0),q_tmpl:new B("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new B(`function`,!1),f_expr:new B(`function`,!0),f_expr_gen:new B(`function`,!0,!1,null,!0),f_gen:new B(`function`,!1,!1,null,!0)},Ie=_e.prototype;Ie.initialContext=function(){return[Fe.b_stat]},Ie.braceIsBlock=function(e){var t=this.curContext();return t===Fe.f_expr||t===Fe.f_stat?!0:e===b.colon&&(t===Fe.b_stat||t===Fe.b_expr)?!t.isExpr:e===b._return||e===b.name&&this.exprAllowed?x.test(this.input.slice(this.lastTokEnd,this.start)):e===b._else||e===b.semi||e===b.eof||e===b.parenR||e===b.arrow?!0:e===b.braceL?t===Fe.b_stat:e===b._var||e===b._const||e===b.name?!1:!this.exprAllowed},Ie.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token===`function`)return t.generator}return!1},Ie.updateContext=function(e){var t,n=this.type;n.keyword&&e===b.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},b.parenR.updateContext=b.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===Fe.b_stat&&this.curContext().token===`function`&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},b.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?Fe.b_stat:Fe.b_expr),this.exprAllowed=!0},b.dollarBraceL.updateContext=function(){this.context.push(Fe.b_tmpl),this.exprAllowed=!0},b.parenL.updateContext=function(e){var t=e===b._if||e===b._for||e===b._with||e===b._while;this.context.push(t?Fe.p_stat:Fe.p_expr),this.exprAllowed=!0},b.incDec.updateContext=function(){},b._function.updateContext=b._class.updateContext=function(e){e.beforeExpr&&e!==b.semi&&e!==b._else&&!(e===b._return&&x.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===b.colon||e===b.braceL)&&this.curContext()===Fe.b_stat)?this.context.push(Fe.f_expr):this.context.push(Fe.f_stat),this.exprAllowed=!1},b.backQuote.updateContext=function(){this.curContext()===Fe.q_tmpl?this.context.pop():this.context.push(Fe.q_tmpl),this.exprAllowed=!1},b.star.updateContext=function(e){if(e===b._function){var t=this.context.length-1;this.context[t]===Fe.f_expr?this.context[t]=Fe.f_expr_gen:this.context[t]=Fe.f_gen}this.exprAllowed=!0},b.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==b.dot&&(this.value===`of`&&!this.exprAllowed||this.value===`yield`&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var Le=`ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS`,Re=Le+` Extended_Pictographic`,ze=Re,Be={9:Le,10:Re,11:ze},Ve=`Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu`,He=`Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb`,Ue=He+` Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd`,We=Ue+` Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho`,Ge={9:He,10:Ue,11:We},Ke={};function qe(e){var t=Ke[e]={binary:j(Be[e]+` `+Ve),nonBinary:{General_Category:j(Ve),Script:j(Ge[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}qe(9),qe(10),qe(11);var V=_e.prototype,Je=function(e){this.parser=e,this.validFlags=`gim`+(e.options.ecmaVersion>=6?`uy`:``)+(e.options.ecmaVersion>=9?`s`:``),this.unicodeProperties=Ke[e.options.ecmaVersion>=11?11:e.options.ecmaVersion],this.source=``,this.flags=``,this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue=``,this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};Je.prototype.reset=function(e,t,n){var r=n.indexOf(`u`)!==-1;this.start=e|0,this.source=t+``,this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},Je.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,`Invalid regular expression: /`+this.source+`/: `+e)},Je.prototype.at=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!(t||this.switchU)||i<=55295||i>=57344||e+1>=r)return i;var a=n.charCodeAt(e+1);return a>=56320&&a<=57343?(i<<10)+a-56613888:i},Je.prototype.nextIndex=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i=n.charCodeAt(e),a;return!(t||this.switchU)||i<=55295||i>=57344||e+1>=r||(a=n.charCodeAt(e+1))<56320||a>57343?e+1:e+2},Je.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)},Je.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Je.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Je.prototype.eat=function(e,t){return t===void 0&&(t=!1),this.current(t)===e?(this.advance(t),!0):!1};function Ye(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}V.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=0;r<n.length;r++){var i=n.charAt(r);t.indexOf(i)===-1&&this.raise(e.start,`Invalid regular expression flag`),n.indexOf(i,r+1)>-1&&this.raise(e.start,`Duplicate regular expression flag`)}},V.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},V.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue=``,e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise(`Unmatched ')'`),(e.eat(93)||e.eat(125))&&e.raise(`Lone quantifier brackets`)),e.maxBackReference>e.numCapturingParens&&e.raise(`Invalid escape`);for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];e.groupNames.indexOf(r)===-1&&e.raise(`Invalid named capture referenced`)}},V.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise(`Nothing to repeat`),e.eat(123)&&e.raise(`Lone quantifier brackets`)},V.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},V.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise(`Invalid quantifier`),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1},V.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise(`Unterminated group`),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},V.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},V.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},V.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i<r&&!t&&e.raise(`numbers out of order in {} quantifier`),!0;e.switchU&&!t&&e.raise(`Incomplete quantifier`),e.pos=n}return!1},V.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},V.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},V.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise(`Unterminated group`)}e.pos=t}return!1},V.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise(`Invalid group`),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise(`Unterminated group`)}return!1},V.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},V.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise(`Nothing to repeat`),!1},V.regexp_eatSyntaxCharacter=function(e){var t=e.current();return Xe(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Xe(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}V.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!Xe(n);)e.advance();return e.pos!==t},V.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1},V.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise(`Duplicate capture group name`),e.groupNames.push(e.lastStringValue);return}e.raise(`Invalid group`)}},V.regexp_eatGroupName=function(e){if(e.lastStringValue=``,e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise(`Invalid capture group name`)}return!1},V.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue=``,this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Ye(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Ye(e.lastIntValue);return!0}return!1},V.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),Ze(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function Ze(e){return f(e,!0)||e===36||e===95}V.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),Qe(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function Qe(e){return p(e,!0)||e===36||e===95||e===8204||e===8205}V.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise(`Invalid unicode escape`),e.raise(`Invalid escape`)),!1)},V.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},V.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise(`Invalid named reference`)}return!1},V.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},V.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},V.regexp_eatZero=function(e){return e.current()===48&&!it(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1},V.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1},V.regexp_eatControlLetter=function(e){var t=e.current();return $e(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function $e(e){return e>=65&&e<=90||e>=97&&e<=122}V.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(r&&i>=55296&&i<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(i-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=i}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&et(e.lastIntValue))return!0;r&&e.raise(`Invalid unicode escape`),e.pos=n}return!1};function et(e){return e>=0&&e<=1114111}V.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1},V.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1},V.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(tt(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(t===80||t===112)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise(`Invalid property name`)}return!1};function tt(e){return e===100||e===68||e===115||e===83||e===119||e===87}V.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},V.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){k(e.unicodeProperties.nonBinary,t)||e.raise(`Invalid property name`),e.unicodeProperties.nonBinary[t].test(n)||e.raise(`Invalid property value`)},V.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise(`Invalid property name`)},V.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue=``;nt(t=e.current());)e.lastStringValue+=Ye(t),e.advance();return e.lastStringValue!==``};function nt(e){return $e(e)||e===95}V.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue=``;rt(t=e.current());)e.lastStringValue+=Ye(t),e.advance();return e.lastStringValue!==``};function rt(e){return nt(e)||it(e)}V.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},V.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise(`Unterminated character class`)}return!1},V.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;e.switchU&&(t===-1||n===-1)&&e.raise(`Invalid character class`),t!==-1&&n!==-1&&t>n&&e.raise(`Range out of order in character class`)}}},V.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(n===99||st(n))&&e.raise(`Invalid class escape`),e.raise(`Invalid escape`)}e.pos=t}var r=e.current();return r===93?!1:(e.lastIntValue=r,e.advance(),!0)},V.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},V.regexp_eatClassControlLetter=function(e){var t=e.current();return it(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},V.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise(`Invalid escape`),e.pos=t}return!1},V.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;it(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function it(e){return e>=48&&e<=57}V.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;at(n=e.current());)e.lastIntValue=16*e.lastIntValue+ot(n),e.advance();return e.pos!==t};function at(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function ot(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}V.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+n*8+e.lastIntValue:e.lastIntValue=t*8+n}else e.lastIntValue=t;return!0}return!1},V.regexp_eatOctalDigit=function(e){var t=e.current();return st(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function st(e){return e>=48&&e<=55}V.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!at(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+ot(i),e.advance()}return!0};var ct=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new N(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},H=_e.prototype;H.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword `+this.type.keyword),this.options.onToken&&this.options.onToken(new ct(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},H.getToken=function(){return this.next(),new ct(this)},typeof Symbol<`u`&&(H[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===b.eof,value:t}}}}),H.curContext=function(){return this.context[this.context.length-1]},H.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(b.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},H.readToken=function(e){return f(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},H.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=57344)return e;var t=this.input.charCodeAt(this.pos+1);return(e<<10)+t-56613888},H.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf(`*/`,this.pos+=2);if(n===-1&&this.raise(this.pos-2,`Unterminated comment`),this.pos=n+2,this.options.locations){S.lastIndex=t;for(var r;(r=S.exec(this.input))&&r.index<this.pos;)++this.curLine,this.lineStart=r.index+r[0].length}this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},H.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!C(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},H.skipSpace=function(){loop:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break loop}break;default:if(e>8&&e<14||e>=5760&&w.test(String.fromCharCode(e)))++this.pos;else break loop}}},H.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},H.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(b.ellipsis)):(++this.pos,this.finishToken(b.dot))},H.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(b.assign,2):this.finishOp(b.slash,1)},H.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=e===42?b.star:b.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,r=b.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(b.assign,n+1):this.finishOp(r,n)},H.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(b.assign,3):this.finishOp(e===124?b.logicalOR:b.logicalAND,2):t===61?this.finishOp(b.assign,2):this.finishOp(e===124?b.bitwiseOR:b.bitwiseAND,1)},H.readToken_caret=function(){return this.input.charCodeAt(this.pos+1)===61?this.finishOp(b.assign,2):this.finishOp(b.bitwiseXOR,1)},H.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||x.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(b.incDec,2):t===61?this.finishOp(b.assign,2):this.finishOp(b.plusMin,1)},H.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(b.assign,n+1):this.finishOp(b.bitShift,n)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(n=2),this.finishOp(b.relational,n))},H.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(b.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(b.arrow)):this.finishOp(e===61?b.eq:b.prefix,1)},H.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(b.questionDot,2)}if(t===63)return e>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(b.assign,3):this.finishOp(b.coalesce,2)}return this.finishOp(b.question,1)},H.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(b.parenL);case 41:return++this.pos,this.finishToken(b.parenR);case 59:return++this.pos,this.finishToken(b.semi);case 44:return++this.pos,this.finishToken(b.comma);case 91:return++this.pos,this.finishToken(b.bracketL);case 93:return++this.pos,this.finishToken(b.bracketR);case 123:return++this.pos,this.finishToken(b.braceL);case 125:return++this.pos,this.finishToken(b.braceR);case 58:return++this.pos,this.finishToken(b.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(b.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(b.prefix,1)}this.raise(this.pos,`Unexpected character '`+dt(e)+`'`)},H.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},H.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,`Unterminated regular expression`);var r=this.input.charAt(this.pos);if(x.test(r)&&this.raise(n,`Unterminated regular expression`),e)e=!1;else{if(r===`[`)t=!0;else if(r===`]`&&t)t=!1;else if(r===`/`&&!t)break;e=r===`\\`}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||=new Je(this);s.reset(n,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var c=null;try{c=new RegExp(i,o)}catch{}return this.finishToken(b.regexp,{pattern:i,flags:o,value:c})},H.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&t===void 0,i=n&&this.input.charCodeAt(this.pos)===48,a=this.pos,o=0,s=0,c=0,l=t??1/0;c<l;++c,++this.pos){var u=this.input.charCodeAt(this.pos),d=void 0;if(r&&u===95){i&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed in legacy octal numeric literals`),s===95&&this.raiseRecoverable(this.pos,`Numeric separator must be exactly one underscore`),c===0&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed at the first of digits`),s=u;continue}if(d=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0,d>=e)break;s=u,o=o*e+d}return r&&s===95&&this.raiseRecoverable(this.pos-1,`Numeric separator is not allowed at the last of digits`),this.pos===a||t!=null&&this.pos-a!==t?null:o};function lt(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,``))}function ut(e){return typeof BigInt==`function`?BigInt(e.replace(/_/g,``)):null}H.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return n??this.raise(this.start+2,`Expected number in radix `+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=ut(this.input.slice(t,this.pos)),++this.pos):f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(b.num,n)},H.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,`Invalid number`);var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;n&&this.strict&&this.raise(t,`Invalid number`);var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&r===110){var i=ut(this.input.slice(t,this.pos));return++this.pos,f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(b.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),r===46&&!n&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),(r===69||r===101)&&!n&&(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,`Invalid number`)),f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`);var a=lt(this.input.slice(t,this.pos),n);return this.finishToken(b.num,a)},H.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;t=this.readHexChar(this.input.indexOf(`}`,this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(n,`Code point out of bounds`)}else t=this.readHexChar(4);return t};function dt(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}H.readString=function(e){for(var t=``,n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);var r=this.input.charCodeAt(this.pos);if(r===e)break;r===92?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):(C(r,this.options.ecmaVersion>=10)&&this.raise(this.start,`Unterminated string constant`),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(b.string,t)};var ft={};H.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===ft)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},H.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw ft;this.raise(e,t)},H.readTmplToken=function(){for(var e=``,t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated template`);var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===b.template||this.type===b.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(b.dollarBraceL)):(++this.pos,this.finishToken(b.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(b.template,e));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(C(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
|
|
1211
|
+
`;break;default:e+=String.fromCharCode(n);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else ++this.pos}},H.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case`\\`:++this.pos;break;case`$`:if(this.input[this.pos+1]!==`{`)break;case"`":return this.finishToken(b.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,`Unterminated template`)},H.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
|
|
1212
|
+
`;case 114:return`\r`;case 120:return String.fromCharCode(this.readHexChar(2));case 117:return dt(this.readCodePoint());case 116:return` `;case 98:return`\b`;case 118:return`\v`;case 102:return`\f`;case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),``;case 56:case 57:if(e){var n=this.pos-1;return this.invalidStringToken(n,`Invalid escape sequence in template string`),null}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),(r!==`0`||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?`Octal literal in template string`:`Octal literal in strict mode`),String.fromCharCode(i)}return C(t)?``:String.fromCharCode(t)}},H.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,`Bad character escape sequence`),n},H.readWord1=function(){this.containsEsc=!1;for(var e=``,t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(p(i,r))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,e+=this.input.slice(n,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,`Expecting Unicode escape sequence \\uXXXX`),++this.pos;var o=this.readCodePoint();(t?f:p)(o,r)||this.invalidStringToken(a,`Invalid Unicode escape`),e+=dt(o),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)},H.readWord=function(){var e=this.readWord1(),t=b.name;return this.keywords.test(e)&&(t=v[e]),this.finishToken(t,e)};var pt=`7.4.1`;_e.acorn={Parser:_e,version:pt,defaultOptions:ee,Position:M,SourceLocation:N,getLineInfo:P,Node:Me,TokenType:m,tokTypes:b,keywordTypes:v,TokContext:B,tokContexts:Fe,isIdentifierChar:p,isIdentifierStart:f,Token:ct,isNewLine:C,lineBreak:x,lineBreakG:S,nonASCIIwhitespace:w};function mt(e,t){return _e.parse(e,t)}function ht(e,t,n){return _e.parseExpressionAt(e,t,n)}function gt(e,t){return _e.tokenizer(e,t)}e.Node=Me,e.Parser=_e,e.Position=M,e.SourceLocation=N,e.TokContext=B,e.Token=ct,e.TokenType=m,e.defaultOptions=ee,e.getLineInfo=P,e.isIdentifierChar=p,e.isIdentifierStart=f,e.isNewLine=C,e.keywordTypes=v,e.lineBreak=x,e.lineBreakG=S,e.nonASCIIwhitespace=w,e.parse=mt,e.parseExpressionAt=ht,e.tokContexts=Fe,e.tokTypes=b,e.tokenizer=gt,e.version=pt,Object.defineProperty(e,`__esModule`,{value:!0})}))}}),q0=G$({"../../../node_modules/acorn-jsx/xhtml.js"(e,t){t.exports={quot:`"`,amp:`&`,apos:`'`,lt:`<`,gt:`>`,nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:``,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,fnof:`ƒ`,circ:`ˆ`,tilde:`˜`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,ensp:` `,emsp:` `,thinsp:` `,zwnj:``,zwj:``,lrm:``,rlm:``,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,bull:`•`,hellip:`…`,permil:`‰`,prime:`′`,Prime:`″`,lsaquo:`‹`,rsaquo:`›`,oline:`‾`,frasl:`⁄`,euro:`€`,image:`ℑ`,weierp:`℘`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,lang:`〈`,rang:`〉`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`}}}),J0=G$({"../../../node_modules/acorn-jsx/index.js"(e,t){var n=q0(),r=/^[\da-fA-F]+$/,i=/^\d+$/,a=new WeakMap;function o(e){e=e.Parser.acorn||e;let t=a.get(e);if(!t){let n=e.tokTypes,r=e.TokContext,i=e.TokenType,o=new r(`<tag`,!1),s=new r(`</tag`,!1),c=new r(`<tag>...</tag>`,!0,!0),l={tc_oTag:o,tc_cTag:s,tc_expr:c},u={jsxName:new i(`jsxName`),jsxText:new i(`jsxText`,{beforeExpr:!0}),jsxTagStart:new i(`jsxTagStart`,{startsExpr:!0}),jsxTagEnd:new i(`jsxTagEnd`)};u.jsxTagStart.updateContext=function(){this.context.push(c),this.context.push(o),this.exprAllowed=!1},u.jsxTagEnd.updateContext=function(e){let t=this.context.pop();t===o&&e===n.slash||t===s?(this.context.pop(),this.exprAllowed=this.curContext()===c):this.exprAllowed=!0},t={tokContexts:l,tokTypes:u},a.set(e,t)}return t}function s(e){if(!e)return e;if(e.type===`JSXIdentifier`)return e.name;if(e.type===`JSXNamespacedName`)return e.namespace.name+`:`+e.name.name;if(e.type===`JSXMemberExpression`)return s(e.object)+`.`+s(e.property)}t.exports=function(e){return e||={},function(t){return c({allowNamespaces:e.allowNamespaces!==!1,allowNamespacedObjects:!!e.allowNamespacedObjects},t)}},Object.defineProperty(t.exports,`tokTypes`,{get:function(){return o(K0()).tokTypes},configurable:!0,enumerable:!0});function c(e,t){let a=t.acorn||K0(),c=o(a),l=a.tokTypes,u=c.tokTypes,d=a.tokContexts,f=c.tokContexts.tc_oTag,p=c.tokContexts.tc_cTag,m=c.tokContexts.tc_expr,h=a.isNewLine,g=a.isIdentifierStart,_=a.isIdentifierChar;return class extends t{static get acornJsx(){return c}jsx_readToken(){let e=``,t=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated JSX contents`);let n=this.input.charCodeAt(this.pos);switch(n){case 60:case 123:return this.pos===this.start?n===60&&this.exprAllowed?(++this.pos,this.finishToken(u.jsxTagStart)):this.getTokenFromCode(n):(e+=this.input.slice(t,this.pos),this.finishToken(u.jsxText,e));case 38:e+=this.input.slice(t,this.pos),e+=this.jsx_readEntity(),t=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(n===62?`>`:`}`)+'` or `{"'+this.input[this.pos]+'"}`?');default:h(n)?(e+=this.input.slice(t,this.pos),e+=this.jsx_readNewLine(!0),t=this.pos):++this.pos}}}jsx_readNewLine(e){let t=this.input.charCodeAt(this.pos),n;return++this.pos,t===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,n=e?`
|
|
1213
|
+
`:`\r
|
|
1214
|
+
`):n=String.fromCharCode(t),this.options.locations&&(++this.curLine,this.lineStart=this.pos),n}jsx_readString(e){let t=``,n=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);let r=this.input.charCodeAt(this.pos);if(r===e)break;r===38?(t+=this.input.slice(n,this.pos),t+=this.jsx_readEntity(),n=this.pos):h(r)?(t+=this.input.slice(n,this.pos),t+=this.jsx_readNewLine(!1),n=this.pos):++this.pos}return t+=this.input.slice(n,this.pos++),this.finishToken(l.string,t)}jsx_readEntity(){let e=``,t=0,a,o=this.input[this.pos];o!==`&`&&this.raise(this.pos,`Entity must start with an ampersand`);let s=++this.pos;for(;this.pos<this.input.length&&t++<10;){if(o=this.input[this.pos++],o===`;`){e[0]===`#`?e[1]===`x`?(e=e.substr(2),r.test(e)&&(a=String.fromCharCode(parseInt(e,16)))):(e=e.substr(1),i.test(e)&&(a=String.fromCharCode(parseInt(e,10)))):a=n[e];break}e+=o}return a||(this.pos=s,`&`)}jsx_readWord(){let e,t=this.pos;do e=this.input.charCodeAt(++this.pos);while(_(e)||e===45);return this.finishToken(u.jsxName,this.input.slice(t,this.pos))}jsx_parseIdentifier(){let e=this.startNode();return this.type===u.jsxName?e.name=this.value:this.type.keyword?e.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(e,`JSXIdentifier`)}jsx_parseNamespacedName(){let t=this.start,n=this.startLoc,r=this.jsx_parseIdentifier();if(!e.allowNamespaces||!this.eat(l.colon))return r;var i=this.startNodeAt(t,n);return i.namespace=r,i.name=this.jsx_parseIdentifier(),this.finishNode(i,`JSXNamespacedName`)}jsx_parseElementName(){if(this.type===u.jsxTagEnd)return``;let t=this.start,n=this.startLoc,r=this.jsx_parseNamespacedName();for(this.type===l.dot&&r.type===`JSXNamespacedName`&&!e.allowNamespacedObjects&&this.unexpected();this.eat(l.dot);){let e=this.startNodeAt(t,n);e.object=r,e.property=this.jsx_parseIdentifier(),r=this.finishNode(e,`JSXMemberExpression`)}return r}jsx_parseAttributeValue(){switch(this.type){case l.braceL:let e=this.jsx_parseExpressionContainer();return e.expression.type===`JSXEmptyExpression`&&this.raise(e.start,`JSX attributes must only be assigned a non-empty expression`),e;case u.jsxTagStart:case l.string:return this.parseExprAtom();default:this.raise(this.start,`JSX value should be either an expression or a quoted JSX text`)}}jsx_parseEmptyExpression(){let e=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(e,`JSXEmptyExpression`,this.start,this.startLoc)}jsx_parseExpressionContainer(){let e=this.startNode();return this.next(),e.expression=this.type===l.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(l.braceR),this.finishNode(e,`JSXExpressionContainer`)}jsx_parseAttribute(){let e=this.startNode();return this.eat(l.braceL)?(this.expect(l.ellipsis),e.argument=this.parseMaybeAssign(),this.expect(l.braceR),this.finishNode(e,`JSXSpreadAttribute`)):(e.name=this.jsx_parseNamespacedName(),e.value=this.eat(l.eq)?this.jsx_parseAttributeValue():null,this.finishNode(e,`JSXAttribute`))}jsx_parseOpeningElementAt(e,t){let n=this.startNodeAt(e,t);n.attributes=[];let r=this.jsx_parseElementName();for(r&&(n.name=r);this.type!==l.slash&&this.type!==u.jsxTagEnd;)n.attributes.push(this.jsx_parseAttribute());return n.selfClosing=this.eat(l.slash),this.expect(u.jsxTagEnd),this.finishNode(n,r?`JSXOpeningElement`:`JSXOpeningFragment`)}jsx_parseClosingElementAt(e,t){let n=this.startNodeAt(e,t),r=this.jsx_parseElementName();return r&&(n.name=r),this.expect(u.jsxTagEnd),this.finishNode(n,r?`JSXClosingElement`:`JSXClosingFragment`)}jsx_parseElementAt(e,t){let n=this.startNodeAt(e,t),r=[],i=this.jsx_parseOpeningElementAt(e,t),a=null;if(!i.selfClosing){contents:for(;;)switch(this.type){case u.jsxTagStart:if(e=this.start,t=this.startLoc,this.next(),this.eat(l.slash)){a=this.jsx_parseClosingElementAt(e,t);break contents}r.push(this.jsx_parseElementAt(e,t));break;case u.jsxText:r.push(this.parseExprAtom());break;case l.braceL:r.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}s(a.name)!==s(i.name)&&this.raise(a.start,`Expected corresponding JSX closing tag for <`+s(i.name)+`>`)}let o=i.name?`Element`:`Fragment`;return n[`opening`+o]=i,n[`closing`+o]=a,n.children=r,this.type===l.relational&&this.value===`<`&&this.raise(this.start,`Adjacent JSX elements must be wrapped in an enclosing tag`),this.finishNode(n,`JSX`+o)}jsx_parseText(){let e=this.parseLiteral(this.value);return e.type=`JSXText`,e}jsx_parseElement(){let e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)}parseExprAtom(e){return this.type===u.jsxText?this.jsx_parseText():this.type===u.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let t=this.curContext();if(t===m)return this.jsx_readToken();if(t===f||t===p){if(g(e))return this.jsx_readWord();if(e==62)return++this.pos,this.finishToken(u.jsxTagEnd);if((e===34||e===39)&&t==f)return this.jsx_readString(e)}return e===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(u.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==l.braceL){var t=this.curContext();t==f?this.context.push(d.b_expr):t==m?this.context.push(d.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else if(this.type===l.slash&&e===u.jsxTagStart)this.context.length-=2,this.context.push(p),this.exprAllowed=!1;else return super.updateContext(e)}}}}}),Y0=G$({"../../../node_modules/html-tags/html-tags.json"(e,t){t.exports=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.link.main.map.mark.math.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rb.rp.rt.rtc.ruby.s.samp.script.search.section.select.slot.small.source.span.strong.style.sub.summary.sup.svg.table.tbody.td.template.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr`.split(`.`)}}),X0=G$({"../../../node_modules/html-tags/index.js"(e,t){t.exports=Y0()}});K$({},{argTypesEnhancers:()=>L4,parameters:()=>I4});var Z0=`custom`,Q0=`object`,$0=`array`,e2=`class`,t2=`func`,n2=`element`,r2=J$(G0(),1);function i2(e){var t=[...arguments].slice(1),n=Array.from(typeof e==`string`?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,``);var r=n.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){return e.match(/[\t ]/g)?.length??0})):e},[]);if(r.length){var i=RegExp(`
|
|
1215
|
+
[ ]{`+Math.min.apply(Math,r)+`}`,`g`);n=n.map(function(e){return e.replace(i,`
|
|
1216
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,``);var a=n[0];return t.forEach(function(e,t){var r=a.match(/(?:^|\n)( *)$/),i=r?r[1]:``,o=e;typeof e==`string`&&e.includes(`
|
|
1217
|
+
`)&&(o=String(e).split(`
|
|
1218
|
+
`).map(function(e,t){return t===0?e:``+i+e}).join(`
|
|
1219
|
+
`)),a+=o+n[t+1]}),a}var a2={format:{indent:{style:` `},semicolons:!1}},o2={...a2,format:{newline:``}},s2={...a2};function c2(e,t=!1){return(0,r2.generate)(e,t?o2:s2)}function l2(e,t=!1){return t?u2(e):c2(e)}function u2(e){let t=c2(e,!0);return t.endsWith(` }`)||(t=`${t.slice(0,-1)} }`),t}function d2(e,t=!1){return t?p2(e):f2(e)}function f2(e){let t=c2(e);return t.endsWith(` }]`)&&(t=i2(t)),t}function p2(e){let t=c2(e,!0);return t.startsWith(`[ `)&&(t=t.replace(`[ `,`[`)),t}var m2=J$(K0(),1),h2=J$(J0(),1);function g2(e,t,n,r,i){n||=$,(function e(r,i,a){var o=a||r.type,s=t[o];n[o](r,i,e),s&&s(r,i)})(e,r,i)}function _2(e,t,n,r,i){var a=[];n||=$,(function e(r,i,o){var s=o||r.type,c=t[s],l=r!==a[a.length-1];l&&a.push(r),n[s](r,i,e),c&&c(r,i||a,a),l&&a.pop()})(e,r,i)}function v2(e,t,n){n(e,t)}function y2(e,t,n){}var $={};$.Program=$.BlockStatement=function(e,t,n){for(var r=0,i=e.body;r<i.length;r+=1){var a=i[r];n(a,t,`Statement`)}},$.Statement=v2,$.EmptyStatement=y2,$.ExpressionStatement=$.ParenthesizedExpression=$.ChainExpression=function(e,t,n){return n(e.expression,t,`Expression`)},$.IfStatement=function(e,t,n){n(e.test,t,`Expression`),n(e.consequent,t,`Statement`),e.alternate&&n(e.alternate,t,`Statement`)},$.LabeledStatement=function(e,t,n){return n(e.body,t,`Statement`)},$.BreakStatement=$.ContinueStatement=y2,$.WithStatement=function(e,t,n){n(e.object,t,`Expression`),n(e.body,t,`Statement`)},$.SwitchStatement=function(e,t,n){n(e.discriminant,t,`Expression`);for(var r=0,i=e.cases;r<i.length;r+=1){var a=i[r];a.test&&n(a.test,t,`Expression`);for(var o=0,s=a.consequent;o<s.length;o+=1){var c=s[o];n(c,t,`Statement`)}}},$.SwitchCase=function(e,t,n){e.test&&n(e.test,t,`Expression`);for(var r=0,i=e.consequent;r<i.length;r+=1){var a=i[r];n(a,t,`Statement`)}},$.ReturnStatement=$.YieldExpression=$.AwaitExpression=function(e,t,n){e.argument&&n(e.argument,t,`Expression`)},$.ThrowStatement=$.SpreadElement=function(e,t,n){return n(e.argument,t,`Expression`)},$.TryStatement=function(e,t,n){n(e.block,t,`Statement`),e.handler&&n(e.handler,t),e.finalizer&&n(e.finalizer,t,`Statement`)},$.CatchClause=function(e,t,n){e.param&&n(e.param,t,`Pattern`),n(e.body,t,`Statement`)},$.WhileStatement=$.DoWhileStatement=function(e,t,n){n(e.test,t,`Expression`),n(e.body,t,`Statement`)},$.ForStatement=function(e,t,n){e.init&&n(e.init,t,`ForInit`),e.test&&n(e.test,t,`Expression`),e.update&&n(e.update,t,`Expression`),n(e.body,t,`Statement`)},$.ForInStatement=$.ForOfStatement=function(e,t,n){n(e.left,t,`ForInit`),n(e.right,t,`Expression`),n(e.body,t,`Statement`)},$.ForInit=function(e,t,n){e.type===`VariableDeclaration`?n(e,t):n(e,t,`Expression`)},$.DebuggerStatement=y2,$.FunctionDeclaration=function(e,t,n){return n(e,t,`Function`)},$.VariableDeclaration=function(e,t,n){for(var r=0,i=e.declarations;r<i.length;r+=1){var a=i[r];n(a,t)}},$.VariableDeclarator=function(e,t,n){n(e.id,t,`Pattern`),e.init&&n(e.init,t,`Expression`)},$.Function=function(e,t,n){e.id&&n(e.id,t,`Pattern`);for(var r=0,i=e.params;r<i.length;r+=1){var a=i[r];n(a,t,`Pattern`)}n(e.body,t,e.expression?`Expression`:`Statement`)},$.Pattern=function(e,t,n){e.type===`Identifier`?n(e,t,`VariablePattern`):e.type===`MemberExpression`?n(e,t,`MemberPattern`):n(e,t)},$.VariablePattern=y2,$.MemberPattern=v2,$.RestElement=function(e,t,n){return n(e.argument,t,`Pattern`)},$.ArrayPattern=function(e,t,n){for(var r=0,i=e.elements;r<i.length;r+=1){var a=i[r];a&&n(a,t,`Pattern`)}},$.ObjectPattern=function(e,t,n){for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];a.type===`Property`?(a.computed&&n(a.key,t,`Expression`),n(a.value,t,`Pattern`)):a.type===`RestElement`&&n(a.argument,t,`Pattern`)}},$.Expression=v2,$.ThisExpression=$.Super=$.MetaProperty=y2,$.ArrayExpression=function(e,t,n){for(var r=0,i=e.elements;r<i.length;r+=1){var a=i[r];a&&n(a,t,`Expression`)}},$.ObjectExpression=function(e,t,n){for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];n(a,t)}},$.FunctionExpression=$.ArrowFunctionExpression=$.FunctionDeclaration,$.SequenceExpression=function(e,t,n){for(var r=0,i=e.expressions;r<i.length;r+=1){var a=i[r];n(a,t,`Expression`)}},$.TemplateLiteral=function(e,t,n){for(var r=0,i=e.quasis;r<i.length;r+=1){var a=i[r];n(a,t)}for(var o=0,s=e.expressions;o<s.length;o+=1){var c=s[o];n(c,t,`Expression`)}},$.TemplateElement=y2,$.UnaryExpression=$.UpdateExpression=function(e,t,n){n(e.argument,t,`Expression`)},$.BinaryExpression=$.LogicalExpression=function(e,t,n){n(e.left,t,`Expression`),n(e.right,t,`Expression`)},$.AssignmentExpression=$.AssignmentPattern=function(e,t,n){n(e.left,t,`Pattern`),n(e.right,t,`Expression`)},$.ConditionalExpression=function(e,t,n){n(e.test,t,`Expression`),n(e.consequent,t,`Expression`),n(e.alternate,t,`Expression`)},$.NewExpression=$.CallExpression=function(e,t,n){if(n(e.callee,t,`Expression`),e.arguments)for(var r=0,i=e.arguments;r<i.length;r+=1){var a=i[r];n(a,t,`Expression`)}},$.MemberExpression=function(e,t,n){n(e.object,t,`Expression`),e.computed&&n(e.property,t,`Expression`)},$.ExportNamedDeclaration=$.ExportDefaultDeclaration=function(e,t,n){e.declaration&&n(e.declaration,t,e.type===`ExportNamedDeclaration`||e.declaration.id?`Statement`:`Expression`),e.source&&n(e.source,t,`Expression`)},$.ExportAllDeclaration=function(e,t,n){e.exported&&n(e.exported,t),n(e.source,t,`Expression`)},$.ImportDeclaration=function(e,t,n){for(var r=0,i=e.specifiers;r<i.length;r+=1){var a=i[r];n(a,t)}n(e.source,t,`Expression`)},$.ImportExpression=function(e,t,n){n(e.source,t,`Expression`)},$.ImportSpecifier=$.ImportDefaultSpecifier=$.ImportNamespaceSpecifier=$.Identifier=$.Literal=y2,$.TaggedTemplateExpression=function(e,t,n){n(e.tag,t,`Expression`),n(e.quasi,t,`Expression`)},$.ClassDeclaration=$.ClassExpression=function(e,t,n){return n(e,t,`Class`)},$.Class=function(e,t,n){e.id&&n(e.id,t,`Pattern`),e.superClass&&n(e.superClass,t,`Expression`),n(e.body,t)},$.ClassBody=function(e,t,n){for(var r=0,i=e.body;r<i.length;r+=1){var a=i[r];n(a,t)}},$.MethodDefinition=$.Property=function(e,t,n){e.computed&&n(e.key,t,`Expression`),n(e.value,t,`Expression`)};var b2={...$,JSXElement:()=>{}},x2=m2.Parser.extend((0,h2.default)());function S2(e){return e==null?null:e.name}function C2(e){return e.filter(e=>e.type===`ObjectExpression`||e.type===`ArrayExpression`)}function w2(e){let t=[];return _2(e,{ObjectExpression(e,n){t.push(C2(n).length)},ArrayExpression(e,n){t.push(C2(n).length)}},b2),Math.max(...t)}function T2(e){return{inferredType:{type:`Identifier`,identifier:S2(e)},ast:e}}function E2(e){return{inferredType:{type:`Literal`},ast:e}}function D2(e){let t;g2(e.body,{JSXElement(e){t=e}},b2);let n={type:t==null?`Function`:`Element`,params:e.params,hasParams:e.params.length!==0},r=S2(e.id);return r!=null&&(n.identifier=r),{inferredType:n,ast:e}}function O2(e){let t;return g2(e.body,{JSXElement(e){t=e}},b2),{inferredType:{type:t==null?`Class`:`Element`,identifier:S2(e.id)},ast:e}}function k2(e){let t={type:`Element`},n=S2(e.openingElement.name);return n!=null&&(t.identifier=n),{inferredType:t,ast:e}}function A2(e){return S2(e.callee.type===`MemberExpression`?e.callee.property:e.callee)===`shape`?j2(e.arguments[0]):null}function j2(e){return{inferredType:{type:`Object`,depth:w2(e)},ast:e}}function M2(e){return{inferredType:{type:`Array`,depth:w2(e)},ast:e}}function N2(e){switch(e.type){case`Identifier`:return T2(e);case`Literal`:return E2(e);case`FunctionExpression`:case`ArrowFunctionExpression`:return D2(e);case`ClassExpression`:return O2(e);case`JSXElement`:return k2(e);case`CallExpression`:return A2(e);case`ObjectExpression`:return j2(e);case`ArrayExpression`:return M2(e);default:return null}}function P2(e){let t=x2.parse(`(${e})`,{ecmaVersion:2020}),n={inferredType:{type:`Unknown`},ast:t};if(t.body[0]!=null){let e=t.body[0];switch(e.type){case`ExpressionStatement`:{let t=N2(e.expression);t!=null&&(n=t);break}default:break}}return n}function F2(e){try{return{...P2(e)}}catch{}return{inferredType:{type:`Unknown`}}}var I2=J$(X0(),1);function L2(e){return I2.default.includes(e.toLowerCase())}function R2({inferredType:e,ast:t}){let{depth:n}=e;if(n<=2){let e=d2(t,!0);if(!eK(e))return Q(e)}return Q($0,d2(t))}function z2({inferredType:e,ast:t}){let{depth:n}=e;if(n===1){let e=l2(t,!0);if(!eK(e))return Q(e)}return Q(Q0,l2(t))}function B2(e,t){return t?`${e}( ... )`:`${e}()`}function V2(e){return`<${e} />`}function H2(e){let{type:t,identifier:n}=e;switch(t){case`Function`:return B2(n,e.hasParams);case`Element`:return V2(n);default:return n}}function U2({inferredType:e,ast:t}){let{identifier:n}=e;if(n!=null)return Q(H2(e),c2(t));let r=c2(t,!0);return eK(r)?Q(t2,c2(t)):Q(r)}function W2(e,t){let{inferredType:n}=t,{identifier:r}=n;return r!=null&&!L2(r)?Q(H2(n),e):eK(e)?Q(n2,e):Q(e)}function G2(e){try{let t=F2(e);switch(t.inferredType.type){case`Object`:return z2(t);case`Function`:return U2(t);case`Element`:return W2(e,t);case`Array`:return R2(t);default:return null}}catch(e){console.error(e)}return null}function K2(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 q2(e){return typeof e==`function`}function J2(e){return typeof e==`string`}var Y2=D0;function X2(e){return e.$$typeof!=null}function Z2(e,t){let{name:n}=e;return n!==``&&n!==`anonymous`&&n!==t?n:null}var Q2=e=>Q(JSON.stringify(e));function $2(e){let{type:t}=e,{displayName:n}=t,r=Y2(e,{});if(n!=null)return Q(V2(n),r);if(J2(t)&&L2(t)){let t=Y2(e,{tabStop:0}).replace(/\r?\n|\r/g,``);if(!eK(t))return Q(t)}return Q(n2,r)}var e4={string:Q2,object:e=>X2(e)&&e.type!=null?$2(e):K2(e)?z2(F2(JSON.stringify(e))):Array.isArray(e)?R2(F2(JSON.stringify(e))):Q(Q0),function:(e,t)=>{let n=!1,r;if(q2(e.render))n=!0;else if(e.prototype!=null&&q2(e.prototype.render))n=!0;else{let t;try{r=F2(e.toString());let{hasParams:i,params:a}=r.inferredType;i?a.length===1&&a[0].type===`ObjectPattern`&&(t=e({})):t=e(),t!=null&&X2(t)&&(n=!0)}catch{}}let i=Z2(e,t.name);if(i!=null){if(n)return Q(V2(i));r!=null&&(r=F2(e.toString()));let{hasParams:t}=r.inferredType;return Q(B2(i,t))}return Q(n?n2:t2)},default:e=>Q(e.toString())};function t4(e={}){return{...e4,...e}}function n4(e,t,n=e4){try{switch(typeof e){case`string`:return n.string(e,t);case`object`:return n.object(e,t);case`function`:return n.function(e,t);default:return n.default(e,t)}}catch(e){console.error(e)}return null}function r4(e,t){let n=e!=null,r=t!=null;if(!n&&!r)return``;let i=[];if(n){let t=e.map(e=>{let t=e.getPrettyName(),n=e.getTypeName();return n==null?t:`${t}: ${n}`});i.push(`(${t.join(`, `)})`)}else i.push(`()`);return r&&i.push(`=> ${t.getTypeName()}`),i.join(` `)}function i4(e,t){let n=e!=null,r=t!=null;if(!n&&!r)return``;let i=[];return n?i.push(`( ... )`):i.push(`()`),r&&i.push(`=> ${t.getTypeName()}`),i.join(` `)}function a4(e){return e.replace(/,/g,`,\r
|
|
1220
|
+
`)}var o4=150;function s4({name:e,short:t,compact:n,full:r,inferredType:i}){return{name:e,short:t,compact:n,full:r??t,inferredType:i}}function c4(e){return e.replace(/PropTypes./g,``).replace(/.isRequired/g,``)}function l4(e){return e.split(/\r?\n/)}function u4(e,t=!1){return c4(l2(e,t))}function d4(e,t=!1){return c4(c2(e,t))}function f4(e){switch(e){case`Object`:return Q0;case`Array`:return $0;case`Class`:return e2;case`Function`:return t2;case`Element`:return n2;default:return Z0}}function p4(e,t){let{inferredType:n,ast:r}=F2(e),{type:i}=n,a,o,s;switch(i){case`Identifier`:case`Literal`:a=e,o=e;break;case`Object`:{let{depth:e}=n;a=Q0,o=e===1?u4(r,!0):null,s=u4(r);break}case`Element`:{let{identifier:t}=n;a=t!=null&&!L2(t)?t:n2,o=l4(e).length===1?e:null,s=e;break}case`Array`:{let{depth:e}=n;a=$0,o=e<=2?d4(r,!0):null,s=d4(r);break}default:a=f4(i),o=l4(e).length===1?e:null,s=e;break}return s4({name:t,short:a,compact:o,full:s,inferredType:i})}function m4({raw:e}){return e==null?s4({name:`custom`,short:Z0,compact:Z0}):p4(e,`custom`)}function h4(e){let{jsDocTags:t}=e;return t!=null&&(t.params!=null||t.returns!=null)?s4({name:`func`,short:i4(t.params,t.returns),compact:null,full:r4(t.params,t.returns)}):s4({name:`func`,short:t2,compact:t2})}function g4(e,t){let{inferredType:n,ast:r}=F2(`{ ${Object.keys(e.value).map(n=>`${n}: ${E4(e.value[n],t).full}`).join(`, `)} }`),{depth:i}=n;return s4({name:`shape`,short:Q0,compact:i===1&&r?u4(r,!0):null,full:r?u4(r):null})}function _4(e){return`objectOf(${e})`}function v4(e,t){let{short:n,compact:r,full:i}=E4(e.value,t);return s4({name:`objectOf`,short:_4(n),compact:r==null?null:_4(r),full:i&&_4(i)})}function y4(e,t){if(Array.isArray(e.value)){let n=e.value.reduce((e,n)=>{let{short:r,compact:i,full:a}=E4(n,t);return e.short.push(r),e.compact.push(i),e.full.push(a),e},{short:[],compact:[],full:[]});return s4({name:`union`,short:n.short.join(` | `),compact:n.compact.every(e=>e!=null)?n.compact.join(` | `):null,full:n.full.join(` | `)})}return s4({name:`union`,short:e.value,compact:null})}function b4({value:e,computed:t}){return t?p4(e,`enumvalue`):s4({name:`enumvalue`,short:e,compact:e})}function x4(e){if(Array.isArray(e.value)){let t=e.value.reduce((e,t)=>{let{short:n,compact:r,full:i}=b4(t);return e.short.push(n),e.compact.push(r),e.full.push(i),e},{short:[],compact:[],full:[]});return s4({name:`enum`,short:t.short.join(` | `),compact:t.compact.every(e=>e!=null)?t.compact.join(` | `):null,full:t.full.join(` | `)})}return s4({name:`enum`,short:e.value,compact:e.value})}function S4(e){return`${e}[]`}function C4(e){return`[${e}]`}function w4(e,t,n){return s4({name:`arrayOf`,short:S4(e),compact:t==null?null:C4(t),full:n&&C4(n)})}function T4(e,t){let{name:n,short:r,compact:i,full:a,inferredType:o}=E4(e.value,t);if(n===`custom`){if(o===`Object`)return w4(r,i,a)}else if(n===`shape`)return w4(r,i,a);return s4({name:`arrayOf`,short:S4(r),compact:S4(r)})}function E4(e,t){try{switch(e.name){case`custom`:return m4(e);case`func`:return h4(t);case`shape`:return g4(e,t);case`instanceOf`:return s4({name:`instanceOf`,short:e.value,compact:e.value});case`objectOf`:return v4(e,t);case`union`:return y4(e,t);case`enum`:return x4(e);case`arrayOf`:return T4(e,t);default:return s4({name:e.name,short:e.name,compact:e.name})}}catch(e){console.error(e)}return s4({name:`unknown`,short:`unknown`,compact:`unknown`})}function D4(e){let{type:t}=e.docgenInfo;if(t==null)return null;try{switch(t.name){case`custom`:case`shape`:case`instanceOf`:case`objectOf`:case`union`:case`enum`:case`arrayOf`:{let{short:n,compact:r,full:i}=E4(t,e);return r!=null&&!$G(r)?Q(r):i?Q(n,i):Q(n)}case`func`:{let{short:n,full:r}=E4(t,e),i=n,a;return r&&r.length<o4?i=r:r&&(a=a4(r)),Q(i,a)}default:return null}}catch(e){console.error(e)}return null}var O4=t4({function:(e,{name:t,type:n})=>{let r=n?.summary===`element`||n?.summary===`elementType`,i=Z2(e,t);if(i!=null){if(r)return Q(V2(i));let{hasParams:t}=F2(e.toString()).inferredType;return Q(B2(i,t))}return Q(r?n2:t2)}});function k4(e,t){let{propTypes:n}=t;return n==null?e:Object.keys(n).map(t=>e.find(e=>e.name===t)).filter(Boolean)}function A4(e,t){let{propDef:n}=e,r=D4(e);r!=null&&(n.type=r);let{defaultValue:i}=e.docgenInfo;if(i!=null&&i.value!=null){let e=G2(i.value);e!=null&&(n.defaultValue=e)}else if(t!=null){let e=n4(t,n,O4);e!=null&&(n.defaultValue=e)}return n}function j4(e,t){let n=t.defaultProps==null?{}:t.defaultProps;return k4(e.map(e=>A4(e,n[e.propDef.name])),t)}function M4(e,t){let{propDef:n}=e,{defaultValue:r}=e.docgenInfo;if(r!=null&&r.value!=null){let e=G2(r.value);e!=null&&(n.defaultValue=e)}else if(t!=null){let e=n4(t,n);e!=null&&(n.defaultValue=e)}return n}function N4(e){return e.map(e=>M4(e))}function P4(e,t){let n=e;!sG(e)&&!e.propTypes&&y1(e)&&(n=e.type);let r=DK(n,t);if(r.length===0)return[];switch(r[0].typeSystem){case rG.JAVASCRIPT:return j4(r,e);case rG.TYPESCRIPT:return N4(r);default:return r.map(e=>e.propDef)}}var F4=e=>({rows:P4(e,`props`)}),I4={docs:{extractArgTypes:e=>{if(e){let{rows:t}=F4(e);if(t)return t.reduce((e,t)=>{let{name:n,description:r,type:i,sbType:a,defaultValue:o,jsDocTags:s,required:c}=t;return e[n]={name:n,description:r,type:{required:c,...a},table:{type:i??void 0,jsDocTags:s,defaultValue:o??void 0}},e},{})}return null},extractComponentDescription:kK}},L4=[jK],R4=l({argTypesEnhancers:()=>L4,parameters:()=>I4});K$({},{applyDecorators:()=>$4,decorators:()=>e3,parameters:()=>t3});var{logger:z4}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{emitTransformCode:B4,useEffect:V4,useRef:H4}=__STORYBOOK_MODULE_PREVIEW_API__,U4=D0,W4=e=>e.charAt(0).toUpperCase()+e.slice(1),G4=e=>(e.$$typeof||e).toString().replace(/^Symbol\((.*)\)$/,`$1`).split(`.`).map(e=>e.split(`_`).map(W4).join(``)).join(`.`);function K4(e){if((0,I$.isValidElement)(e)){let t=Object.keys(e.props).reduce((t,n)=>(t[n]=K4(e.props[n]),t),{});return{...e,props:t,_owner:null}}return Array.isArray(e)?e.map(K4):e}var q4=(e,t)=>{if(typeof e>`u`)return z4.warn(`Too many skip or undefined component`),null;let n=e,r=n.type;for(let e=0;e<t?.skip;e+=1){if(typeof n>`u`)return z4.warn(`Cannot skip undefined element`),null;if(I$.Children.count(n)>1)return z4.warn(`Trying to skip an array of elements`),null;typeof n.props.children>`u`?(z4.warn(`Not enough children to skip elements.`),typeof n.type==`function`&&n.type.name===``&&(n=I$.createElement(r,{...n.props}))):n=typeof n.props.children==`function`?n.props.children():n.props.children}let i;i=typeof t?.displayName==`string`?{showFunctions:!0,displayName:()=>t.displayName}:{displayName:e=>e.type.displayName?e.type.displayName:lG(e.type,`displayName`)?lG(e.type,`displayName`):e.type.render?.displayName?e.type.render.displayName:typeof e.type==`symbol`||e.type.$$typeof&&typeof e.type.$$typeof==`symbol`?G4(e.type):e.type.name&&e.type.name!==`_default`?e.type.name:typeof e.type==`function`?`No Display Name`:b1(e.type)?e.type.render.name:y1(e.type)?e.type.type.name:e.type};let a={...i,filterProps:(e,t)=>e!==void 0,...t};return I$.Children.map(e,e=>{let t=typeof e==`number`?e.toString():e,n=(typeof U4==`function`?U4:U4.default)(K4(t),a);if(n.indexOf(`"`)>-1){let e=n.match(/\S+=\\"([^"]*)\\"/g);e&&e.forEach(e=>{n=n.replace(e,e.replace(/"/g,`'`))})}return n}).join(`
|
|
1221
|
+
`).replace(/function\s+noRefCheck\(\)\s*\{\}/g,`() => {}`)},J4={skip:0,showFunctions:!1,enableBeautify:!0,showDefaultProps:!1},Y4=e=>{let t=e?.parameters.docs?.source,n=e?.parameters.__isArgsStory;return t?.type===PK.DYNAMIC?!1:!n||t?.code||t?.type===PK.CODE},X4=e=>e.type?.displayName===`MDXCreateElement`&&!!e.props?.mdxType,Z4=e=>{if(!X4(e))return e;let{mdxType:t,originalType:n,children:r,...i}=e.props,a=[];return r&&(a=(Array.isArray(r)?r:[r]).map(Z4)),(0,I$.createElement)(n,i,...a)},Q4=(e,t)=>{let n=H4(void 0),r=e(),i=Y4(t),a={...J4,...t?.parameters.jsx||{}},o=t.originalStoryFn(t.args,t);return V4(()=>{if(i)return;let e=q4(Z4(o),a);e&&n.current!==e&&(B4(e,t),n.current=e)}),r},$4=(e,t)=>{let n=t.findIndex(e=>e.originalFn===Q4);return R$(e,n===-1?t:[...t.splice(n,1),...t])},e3=`FEATURES`in globalThis&&globalThis?.FEATURES?.experimentalCodeExamples?[]:[Q4],t3={docs:{story:{inline:!0}}},n3=l({applyDecorators:()=>$4,decorators:()=>e3,parameters:()=>t3}),r3=Object.defineProperty,i3=(e,t)=>{for(var n in t)r3(e,n,{get:t[n],enumerable:!0})},a3=`themes`,o3=`storybook/${a3}`,s3=`theme`;`${o3}`;var c3={},l3={REGISTER_THEMES:`${o3}/REGISTER_THEMES`};i3({},{initialGlobals:()=>u3});var u3={[s3]:``},d3=l({initialGlobals:()=>u3}),f3=Object.create,p3=Object.defineProperty,m3=Object.getOwnPropertyDescriptor,h3=Object.getOwnPropertyNames,g3=Object.getPrototypeOf,_3=Object.prototype.hasOwnProperty,v3=(e,t)=>function(){return t||(0,e[h3(e)[0]])((t={exports:{}}).exports,t),t.exports},y3=(e,t)=>{for(var n in t)p3(e,n,{get:t[n],enumerable:!0})},b3=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of h3(t))!_3.call(e,i)&&i!==n&&p3(e,i,{get:()=>t[i],enumerable:!(r=m3(t,i))||r.enumerable});return e},x3=(e,t,n)=>(n=e==null?{}:f3(g3(e)),b3(t||!e||!e.__esModule?p3(n,`default`,{value:e,enumerable:!0}):n,e));y3({},{parameters:()=>C3});var S3=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((e,t)=>{let[n,r]=t;return r.excludeFromDocsStories&&(e[n]=!0),e},{}),C3={docs:{renderer:async()=>{let{DocsRenderer:t}=await e(async()=>{let{DocsRenderer:e}=await import(`./DocsRenderer-LL677BLK-BK5C7Jzn.js`);return{DocsRenderer:e}},__vite__mapDeps([14,15,16,17,4,3,18,19,20,13]),import.meta.url);return new t},stories:{filter:e=>(e.tags||[]).filter(e=>S3[e]).length===0&&!e.parameters.docs?.disable}}},w3=l({parameters:()=>C3});function T3(e){var t=[...arguments].slice(1),n=Array.from(typeof e==`string`?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,``);var r=n.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){return e.match(/[\t ]/g)?.length??0})):e},[]);if(r.length){var i=RegExp(`
|
|
1222
|
+
[ ]{`+Math.min.apply(Math,r)+`}`,`g`);n=n.map(function(e){return e.replace(i,`
|
|
1223
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,``);var a=n[0];return t.forEach(function(e,t){var r=a.match(/(?:^|\n)( *)$/),i=r?r[1]:``,o=e;typeof e==`string`&&e.includes(`
|
|
1224
|
+
`)&&(o=String(e).split(`
|
|
1225
|
+
`).map(function(e,t){return t===0?e:``+i+e}).join(`
|
|
1226
|
+
`)),a+=o+n[t+1]}),a}var{useEffect:E3}=__STORYBOOK_MODULE_PREVIEW_API__;i3({},{initializeThemeState:()=>M3,pluckThemeFromContext:()=>A3,useThemeParameters:()=>j3});var{deprecate:D3}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{addons:O3,useParameter:k3}=__STORYBOOK_MODULE_PREVIEW_API__;function A3({globals:e}){return e.theme||``}function j3(e){return D3(T3`The useThemeParameters function is deprecated. Please access parameters via the context directly instead e.g.
|
|
1227
|
+
- const { themeOverride } = context.parameters.themes ?? {};
|
|
1228
|
+
`),e?e.parameters.themes??c3:k3(a3,c3)}function M3(e,t){O3.getChannel().emit(l3.REGISTER_THEMES,{defaultTheme:t,themes:e})}var{useEffect:N3}=__STORYBOOK_MODULE_PREVIEW_API__,P3=`html`,F3=`data-theme`,I3=({themes:e,defaultTheme:t,parentSelector:n=P3,attributeName:r=F3})=>(M3(Object.keys(e),t),(i,a)=>{let{themeOverride:o}=a.parameters.themes??{},s=A3(a);return N3(()=>{let i=document.querySelector(n),a=o||s||t;i&&i.setAttribute(r,e[a])},[o,s]),i()}),{useMemo:L3}=__STORYBOOK_MODULE_PREVIEW_API__,R3=l({decorators:()=>z3,parameters:()=>B3,tags:()=>V3});const z3=[I3({themes:{light:`default`,dark:`dark`},defaultTheme:`light`,attributeName:`data-theme`})],B3={themes:{default:`light`,list:[{name:`light`,class:`default`,color:`#ffffff`},{name:`dark`,class:`dark`,color:`#1e1e1e`}]}},V3=[`autodocs`];jU();var{composeConfigs:H3,PreviewWeb:U3}=__STORYBOOK_MODULE_PREVIEW_API__,W3=(e=[])=>H3([e[0]??h1,e[1]??R4,e[2]??n3,e[3]??d3,e[4]??w3,e[5]??R3]);window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new U3(N$,W3),window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{d as A,LU as C,l as D,s as E,p as O,JU as S,c as T,RW as _,LQ as a,GU as b,HK as c,NK as d,PK as f,FW as g,LW as h,F$ as i,f as k,VK as l,PW as m,v3 as n,k$ as o,MW as p,x3 as r,j$ as s,T3 as t,BK as u,nW as v,IU as w,KU as x,tW as y};
|